@interlace/eslint-devkit 1.19.0 → 1.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interlace/eslint-devkit",
3
- "version": "1.19.0",
3
+ "version": "1.19.2",
4
4
  "description": "Toolkit for building ESLint plugins in TypeScript — AST helpers, type utilities, rule-creation scaffolding, security benchmarks, and SARIF output.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.memberPropertyName=exports.namesOneOf=exports.isStaticString=void 0;exports.staticString=staticString;exports.propertyName=propertyName;exports.objectKeyName=objectKeyName;exports.memberPath=memberPath;exports.readsRequestShape=readsRequestShape;const ast_node_types_1=require("../ast-node-types");function staticString(node){if(!node)return null;if(node.type===ast_node_types_1.AST_NODE_TYPES.Literal){return typeof node.value==="string"?node.value:null}if(node.type===ast_node_types_1.AST_NODE_TYPES.TemplateLiteral&&node.expressions.length===0){const[only]=node.quasis;return only.value.cooked}return null}const isStaticString=(node,value)=>staticString(node)===value;exports.isStaticString=isStaticString;function propertyName(node){if(!node.computed){return node.property.type===ast_node_types_1.AST_NODE_TYPES.Identifier?node.property.name:null}return staticString(node.property)}function objectKeyName(node){const key=node.key;if(!node.computed&&key.type===ast_node_types_1.AST_NODE_TYPES.Identifier)return key.name;if(key.type===ast_node_types_1.AST_NODE_TYPES.Literal&&typeof key.value==="number")return String(key.value);return staticString(key)}function memberPath(node){if(node.type===ast_node_types_1.AST_NODE_TYPES.Identifier)return[node.name];if(node.type!==ast_node_types_1.AST_NODE_TYPES.MemberExpression)return null;const head=memberPath(node.object);if(head===null)return null;const tail=propertyName(node);return tail===null?null:[...head,tail]}const REQUEST_SHAPE=new Set(["query","params","headers","cookies","queryStringParameters","pathParameters","multiValueHeaders"]);const REQUEST_SHAPE_NEEDS_DEPTH=new Set(["body"]);function readsRequestShape(node,sourceCode,options={}){let current=node;let firstProperty=null;let secondProperty=null;let depth=0;while(current.type===ast_node_types_1.AST_NODE_TYPES.MemberExpression){const name=propertyName(current);if(name!==null){secondProperty=firstProperty;firstProperty=name}depth+=1;current=current.object}if(current.type!==ast_node_types_1.AST_NODE_TYPES.Identifier)return false;if(firstProperty===null)return false;if((firstProperty==="request"||firstProperty==="req")&&secondProperty!==null){firstProperty=secondProperty;depth-=1}const known=REQUEST_SHAPE.has(firstProperty);const needsDepth=REQUEST_SHAPE_NEEDS_DEPTH.has(firstProperty);if(!known&&!needsDepth)return false;if(needsDepth&&(options.bodyNeedsDepth??true)&&depth<2)return false;const scope=sourceCode.getScope(current);for(let s=scope;s!==null;s=s.upper){const variable=s.set.get(current.name);if(variable===void 0)continue;return variable.defs.some(d=>d.type==="Parameter")}return false}const namesOneOf=(name,names)=>name!==null&&(Array.isArray(names)?names.includes(name):names.has(name));exports.namesOneOf=namesOneOf;const memberPropertyName=node=>node!=null&&node.type===ast_node_types_1.AST_NODE_TYPES.MemberExpression?propertyName(node):null;exports.memberPropertyName=memberPropertyName;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.memberPropertyName=exports.namesOneOf=exports.isStaticString=void 0;exports.staticString=staticString;exports.propertyName=propertyName;exports.objectKeyName=objectKeyName;exports.memberPath=memberPath;exports.readsRequestShape=readsRequestShape;const ast_node_types_1=require("../ast-node-types");function staticString(node){if(!node)return null;if(node.type===ast_node_types_1.AST_NODE_TYPES.Literal){return typeof node.value==="string"?node.value:null}if(node.type===ast_node_types_1.AST_NODE_TYPES.TemplateLiteral&&node.expressions.length===0){const[only]=node.quasis;return only.value.cooked??only.value.raw}return null}const isStaticString=(node,value)=>staticString(node)===value;exports.isStaticString=isStaticString;function propertyName(node){if(!node.computed){return node.property.type===ast_node_types_1.AST_NODE_TYPES.Identifier?node.property.name:null}return staticString(node.property)}function objectKeyName(node){const key=node.key;if(!node.computed&&key.type===ast_node_types_1.AST_NODE_TYPES.Identifier)return key.name;if(key.type===ast_node_types_1.AST_NODE_TYPES.Literal&&typeof key.value==="number")return String(key.value);return staticString(key)}function memberPath(node){if(node.type===ast_node_types_1.AST_NODE_TYPES.Identifier)return[node.name];if(node.type!==ast_node_types_1.AST_NODE_TYPES.MemberExpression)return null;const head=memberPath(node.object);if(head===null)return null;const tail=propertyName(node);return tail===null?null:[...head,tail]}const REQUEST_SHAPE=new Set(["query","params","headers","cookies","queryStringParameters","pathParameters","multiValueHeaders"]);const REQUEST_SHAPE_NEEDS_DEPTH=new Set(["body"]);function readsRequestShape(node,sourceCode,options={}){let current=node;let firstProperty=null;let secondProperty=null;let depth=0;while(current.type===ast_node_types_1.AST_NODE_TYPES.MemberExpression){const name=propertyName(current);if(name!==null){secondProperty=firstProperty;firstProperty=name}depth+=1;current=current.object}if(current.type!==ast_node_types_1.AST_NODE_TYPES.Identifier)return false;if(firstProperty===null)return false;if((firstProperty==="request"||firstProperty==="req")&&secondProperty!==null){firstProperty=secondProperty;depth-=1}const known=REQUEST_SHAPE.has(firstProperty);const needsDepth=REQUEST_SHAPE_NEEDS_DEPTH.has(firstProperty);if(!known&&!needsDepth)return false;if(needsDepth&&(options.bodyNeedsDepth??true)&&depth<2)return false;const scope=sourceCode.getScope(current);for(let s=scope;s!==null;s=s.upper){const variable=s.set.get(current.name);if(variable===void 0)continue;return variable.defs.some(d=>d.type==="Parameter")}return false}const namesOneOf=(name,names)=>name!==null&&(Array.isArray(names)?names.includes(name):names.has(name));exports.namesOneOf=namesOneOf;const memberPropertyName=node=>node!=null&&node.type===ast_node_types_1.AST_NODE_TYPES.MemberExpression?propertyName(node):null;exports.memberPropertyName=memberPropertyName;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.urlEmbedsCredentials=urlEmbedsCredentials;exports.staticStringValue=staticStringValue;exports.isLiteralSecret=isLiteralSecret;exports.createHardcodedCredentialsRule=createHardcodedCredentialsRule;const ast_node_types_1=require("../ast-node-types");const messaging_1=require("../messaging");const unscoped_mutation_rule_1=require("./unscoped-mutation-rule");const require_tls_rule_1=require("./require-tls-rule");const CREDENTIAL_KEYS=["password","pass","pwd","secret","passwd","auth"];const DEFAULT_CONNECTION_KEYS=["host","hostname","port","database","connectionString","socketPath","uri","url","connection","pool","schema"];function urlEmbedsCredentials(value,schemes){const match=/^([a-z][a-z0-9+.-]*):\/\/([^/@\s:]*:[^/@\s]+)@/i.exec(value);if(match===null)return false;return schemes.some(scheme=>scheme.toLowerCase()===match[1].toLowerCase())}function staticStringValue(node){if(node.type===ast_node_types_1.AST_NODE_TYPES.Literal){return typeof node.value==="string"?node.value:void 0}if(node.type===ast_node_types_1.AST_NODE_TYPES.TemplateLiteral&&node.expressions.length===0){return node.quasis[0].value.cooked}return void 0}function isLiteralSecret(node){const value=staticStringValue(node);return value!==void 0&&value.length>0}function createHardcodedCredentialsRule(config){const connectionKeys=[...DEFAULT_CONNECTION_KEYS,...config.connectionKeys??[]];return{meta:{type:config.meta.type,docs:{...config.meta.docs},messages:{hardcodedPassword:(0,messaging_1.formatLLMMessage)({icon:messaging_1.MessageIcons.SECURITY,issueName:"Hardcoded Credentials",description:"A database password is written as a literal. It is in git history, every fork, and the built image \u2014 rotating it means rewriting history, so it never gets rotated.",severity:"CRITICAL",cwe:config.meta.docs.cwe,owasp:"A07:2021",compliance:["SOC2","PCI-DSS","ISO27001","NIST-CSF"],effort:"low",fix:config.fix,documentationLink:config.documentationLink}),credentialsInUrl:(0,messaging_1.formatLLMMessage)({icon:messaging_1.MessageIcons.SECURITY,issueName:"Hardcoded Credentials",description:"A connection URL embeds a password in its userinfo section, so the secret is committed with the string.",severity:"CRITICAL",cwe:config.meta.docs.cwe,owasp:"A07:2021",compliance:["SOC2","PCI-DSS","ISO27001","NIST-CSF"],effort:"low",fix:config.urlFix,documentationLink:config.documentationLink})},schema:[]},defaultOptions:[],create(context){let bindings=new Set;let reported=new WeakSet;let scanned=new WeakSet;const report=(node,messageId)=>{if(reported.has(node))return;reported.add(node);context.report({node,messageId})};const scanConfig=obj=>{if(scanned.has(obj))return;scanned.add(obj);for(const prop of obj.properties){if(prop.type!==ast_node_types_1.AST_NODE_TYPES.Property)continue;const name=(0,unscoped_mutation_rule_1.propertyKeyName)(prop);if(name===void 0)continue;if(CREDENTIAL_KEYS.includes(name.toLowerCase())){if(isLiteralSecret(prop.value))report(prop.value,"hardcodedPassword");continue}const url=staticStringValue(prop.value);if(url!==void 0&&urlEmbedsCredentials(url,config.urlSchemes)){report(prop.value,"credentialsInUrl");continue}if(prop.value.type===ast_node_types_1.AST_NODE_TYPES.ObjectExpression&&connectionKeys.includes(name)){scanConfig(prop.value)}}};return{Program(program){bindings=(0,unscoped_mutation_rule_1.driverBindings)(program,config.modules);reported=new WeakSet;scanned=new WeakSet},ObjectExpression(node){if(bindings.size===0)return;if(!(0,require_tls_rule_1.looksLikeConnectionConfig)(node,connectionKeys))return;scanConfig(node)},"Literal, TemplateLiteral"(node){if(bindings.size===0)return;const value=staticStringValue(node);if(value===void 0)return;if(!urlEmbedsCredentials(value,config.urlSchemes))return;if(!(0,require_tls_rule_1.inConnectionPosition)(node,connectionKeys,bindings))return;report(node,"credentialsInUrl")}}}}}
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.urlEmbedsCredentials=urlEmbedsCredentials;exports.staticStringValue=staticStringValue;exports.isLiteralSecret=isLiteralSecret;exports.createHardcodedCredentialsRule=createHardcodedCredentialsRule;const ast_node_types_1=require("../ast-node-types");const messaging_1=require("../messaging");const unscoped_mutation_rule_1=require("./unscoped-mutation-rule");const require_tls_rule_1=require("./require-tls-rule");const CREDENTIAL_KEYS=["password","pass","pwd","secret","passwd","auth"];const DEFAULT_CONNECTION_KEYS=["host","hostname","port","database","connectionString","socketPath","uri","url","connection","pool","schema"];function urlEmbedsCredentials(value,schemes){const match=/^([a-z][a-z0-9+.-]*):\/\/([^/@\s:]*:[^/@\s]+)@/i.exec(value);if(match===null)return false;return schemes.some(scheme=>scheme.toLowerCase()===match[1].toLowerCase())}function staticStringValue(node){if(node.type===ast_node_types_1.AST_NODE_TYPES.Literal){return typeof node.value==="string"?node.value:void 0}if(node.type===ast_node_types_1.AST_NODE_TYPES.TemplateLiteral&&node.expressions.length===0){const[{value}]=node.quasis;return value.cooked??value.raw}return void 0}function isLiteralSecret(node){const value=staticStringValue(node);return value!==void 0&&value.length>0}function createHardcodedCredentialsRule(config){const connectionKeys=[...DEFAULT_CONNECTION_KEYS,...config.connectionKeys??[]];return{meta:{type:config.meta.type,docs:{...config.meta.docs},messages:{hardcodedPassword:(0,messaging_1.formatLLMMessage)({icon:messaging_1.MessageIcons.SECURITY,issueName:"Hardcoded Credentials",description:"A database password is written as a literal. It is in git history, every fork, and the built image \u2014 rotating it means rewriting history, so it never gets rotated.",severity:"CRITICAL",cwe:config.meta.docs.cwe,owasp:"A07:2021",compliance:["SOC2","PCI-DSS","ISO27001","NIST-CSF"],effort:"low",fix:config.fix,documentationLink:config.documentationLink}),credentialsInUrl:(0,messaging_1.formatLLMMessage)({icon:messaging_1.MessageIcons.SECURITY,issueName:"Hardcoded Credentials",description:"A connection URL embeds a password in its userinfo section, so the secret is committed with the string.",severity:"CRITICAL",cwe:config.meta.docs.cwe,owasp:"A07:2021",compliance:["SOC2","PCI-DSS","ISO27001","NIST-CSF"],effort:"low",fix:config.urlFix,documentationLink:config.documentationLink})},schema:[]},defaultOptions:[],create(context){let bindings=new Set;let reported=new WeakSet;let scanned=new WeakSet;const report=(node,messageId)=>{if(reported.has(node))return;reported.add(node);context.report({node,messageId})};const scanConfig=obj=>{if(scanned.has(obj))return;scanned.add(obj);for(const prop of obj.properties){if(prop.type!==ast_node_types_1.AST_NODE_TYPES.Property)continue;const name=(0,unscoped_mutation_rule_1.propertyKeyName)(prop);if(name===void 0)continue;if(CREDENTIAL_KEYS.includes(name.toLowerCase())){if(isLiteralSecret(prop.value))report(prop.value,"hardcodedPassword");continue}const url=staticStringValue(prop.value);if(url!==void 0&&urlEmbedsCredentials(url,config.urlSchemes)){report(prop.value,"credentialsInUrl");continue}if(prop.value.type===ast_node_types_1.AST_NODE_TYPES.ObjectExpression&&connectionKeys.includes(name)){scanConfig(prop.value)}}};return{Program(program){bindings=(0,unscoped_mutation_rule_1.driverBindings)(program,config.modules);reported=new WeakSet;scanned=new WeakSet},ObjectExpression(node){if(bindings.size===0)return;if(!(0,require_tls_rule_1.looksLikeConnectionConfig)(node,connectionKeys))return;scanConfig(node)},"Literal, TemplateLiteral"(node){if(bindings.size===0)return;const value=staticStringValue(node);if(value===void 0)return;if(!urlEmbedsCredentials(value,config.urlSchemes))return;if(!(0,require_tls_rule_1.inConnectionPosition)(node,connectionKeys,bindings))return;report(node,"credentialsInUrl")}}}}}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.stripIdentifierGap=stripIdentifierGap;exports.lastClause=lastClause;exports.identifierPosition=identifierPosition;exports.calleeText=calleeText;exports.isExemptExpression=isExemptExpression;exports.tagName=tagName;exports.createRawIdentifierRule=createRawIdentifierRule;const ast_node_types_1=require("../ast-node-types");const messaging_1=require("../messaging");const unscoped_mutation_rule_1=require("./unscoped-mutation-rule");const IDENTIFIER_KEYWORDS=/\b(?:from|join|into|update|table|order\s+by|group\s+by|select|distinct\s+on)$/i;const GAP_CHAR=/[\s"'`[]/;function stripIdentifierGap(text){let end=text.length;while(end>0&&GAP_CHAR.test(text[end-1]))end--;return text.slice(0,end)}const CLAUSE_KEYWORDS=/\b(select|from|where|group\s+by|having|order\s+by|limit|offset|union|returning|values|set)\b/gi;function lastClause(text){const matches=[...text.matchAll(CLAUSE_KEYWORDS)];const last=matches.at(-1);return last?last[1].toLowerCase().replace(/\s+/g," "):""}function identifierPosition(precedingText){if(IDENTIFIER_KEYWORDS.test(stripIdentifierGap(precedingText)))return"identifier";if(lastClause(precedingText)==="order by")return"sortDirection";return false}function calleeText(node){if(node.type===ast_node_types_1.AST_NODE_TYPES.Identifier)return node.name;if(node.type===ast_node_types_1.AST_NODE_TYPES.MemberExpression&&!node.computed){const object=calleeText(node.object);const property=calleeText(node.property);return object&&property?`${object}.${property}`:""}return""}function isExemptExpression(expr,identifierHelpers,tags){if(expr.type===ast_node_types_1.AST_NODE_TYPES.Literal)return true;if(expr.type===ast_node_types_1.AST_NODE_TYPES.CallExpression){if(identifierHelpers.includes(calleeText(expr.callee)))return true}if(expr.type===ast_node_types_1.AST_NODE_TYPES.TaggedTemplateExpression){const nested=tagName(expr.tag);return nested!==void 0&&tags.includes(nested)}return false}function tagName(tag){if(tag.type===ast_node_types_1.AST_NODE_TYPES.Identifier)return tag.name;if(tag.type===ast_node_types_1.AST_NODE_TYPES.MemberExpression&&!tag.computed&&tag.property.type===ast_node_types_1.AST_NODE_TYPES.Identifier){return tag.property.name}return void 0}function createRawIdentifierRule(config){const tags=new Set(config.tags);return{meta:{type:config.meta.type,docs:{...config.meta.docs},messages:{identifierInterpolation:(0,messaging_1.formatLLMMessage)({icon:messaging_1.MessageIcons.SECURITY,issueName:"SQL Injection Risk",description:"A table or column name is interpolated into a parameterized query. Bind parameters only ever substitute values, so this identifier is spliced into the SQL as text.",severity:"CRITICAL",cwe:config.meta.docs.cwe,owasp:"A03:2021",compliance:["SOC2","PCI-DSS","NIST-CSF"],effort:"medium",fix:config.fix,documentationLink:config.documentationLink}),sortDirectionInterpolation:(0,messaging_1.formatLLMMessage)({icon:messaging_1.MessageIcons.SECURITY,issueName:"SQL Injection Risk",description:"A value is interpolated inside an ORDER BY clause, where a bind parameter cannot reach.",severity:"HIGH",cwe:config.meta.docs.cwe,owasp:"A03:2021",compliance:["SOC2","PCI-DSS","NIST-CSF"],effort:"low",fix:config.sortDirectionFix,documentationLink:config.documentationLink})},schema:[]},defaultOptions:[],create(context){let bindings=new Set;return{Program(program){bindings=(0,unscoped_mutation_rule_1.driverBindings)(program,config.modules)},TaggedTemplateExpression(node){const name=tagName(node.tag);if(name===void 0||!tags.has(name))return;if(config.requireImport){if(node.tag.type!==ast_node_types_1.AST_NODE_TYPES.Identifier)return;if(!bindings.has(name))return}const{quasis,expressions}=node.quasi;expressions.forEach((expr,index)=>{if(isExemptExpression(expr,config.identifierHelpers,config.tags))return;const preceding=quasis.slice(0,index+1).map(q=>q.value.raw).join(" ");const position=identifierPosition(preceding);if(position===false)return;context.report({node:expr,messageId:position==="identifier"?"identifierInterpolation":"sortDirectionInterpolation"})})}}}}}
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.stripIdentifierGap=stripIdentifierGap;exports.lastClause=lastClause;exports.identifierPosition=identifierPosition;exports.calleeText=calleeText;exports.isExemptExpression=isExemptExpression;exports.tagName=tagName;exports.createRawIdentifierRule=createRawIdentifierRule;const ast_node_types_1=require("../ast-node-types");const spellings_1=require("../ast/spellings");const messaging_1=require("../messaging");const unscoped_mutation_rule_1=require("./unscoped-mutation-rule");const IDENTIFIER_KEYWORDS=/\b(?:from|join|into|update|table|order\s+by|group\s+by|select|distinct\s+on)$/i;const GAP_CHAR=/[\s"'`[]/;function stripIdentifierGap(text){let end=text.length;while(end>0&&GAP_CHAR.test(text[end-1]))end--;return text.slice(0,end)}const CLAUSE_KEYWORDS=/\b(select|from|where|group\s+by|having|order\s+by|limit|offset|union|returning|values|set)\b/gi;function lastClause(text){const matches=[...text.matchAll(CLAUSE_KEYWORDS)];const last=matches.at(-1);return last?last[1].toLowerCase().replace(/\s+/g," "):""}function identifierPosition(precedingText){if(IDENTIFIER_KEYWORDS.test(stripIdentifierGap(precedingText)))return"identifier";if(lastClause(precedingText)==="order by")return"sortDirection";return false}function calleeText(node){if(node.type===ast_node_types_1.AST_NODE_TYPES.Identifier)return node.name;if(node.type===ast_node_types_1.AST_NODE_TYPES.MemberExpression){const object=calleeText(node.object);const property=(0,spellings_1.propertyName)(node);return object&&property?`${object}.${property}`:""}return""}function isExemptExpression(expr,identifierHelpers,tags){if(expr.type===ast_node_types_1.AST_NODE_TYPES.Literal)return true;if(expr.type===ast_node_types_1.AST_NODE_TYPES.CallExpression){if(identifierHelpers.includes(calleeText(expr.callee)))return true}if(expr.type===ast_node_types_1.AST_NODE_TYPES.TaggedTemplateExpression){const nested=tagName(expr.tag);return nested!==void 0&&tags.includes(nested)}return false}function tagName(tag){if(tag.type===ast_node_types_1.AST_NODE_TYPES.Identifier)return tag.name;if(tag.type===ast_node_types_1.AST_NODE_TYPES.MemberExpression){return(0,spellings_1.propertyName)(tag)??void 0}return void 0}function createRawIdentifierRule(config){const tags=new Set(config.tags);return{meta:{type:config.meta.type,docs:{...config.meta.docs},messages:{identifierInterpolation:(0,messaging_1.formatLLMMessage)({icon:messaging_1.MessageIcons.SECURITY,issueName:"SQL Injection Risk",description:"A table or column name is interpolated into a parameterized query. Bind parameters only ever substitute values, so this identifier is spliced into the SQL as text.",severity:"CRITICAL",cwe:config.meta.docs.cwe,owasp:"A03:2021",compliance:["SOC2","PCI-DSS","NIST-CSF"],effort:"medium",fix:config.fix,documentationLink:config.documentationLink}),sortDirectionInterpolation:(0,messaging_1.formatLLMMessage)({icon:messaging_1.MessageIcons.SECURITY,issueName:"SQL Injection Risk",description:"A value is interpolated inside an ORDER BY clause, where a bind parameter cannot reach.",severity:"HIGH",cwe:config.meta.docs.cwe,owasp:"A03:2021",compliance:["SOC2","PCI-DSS","NIST-CSF"],effort:"low",fix:config.sortDirectionFix,documentationLink:config.documentationLink})},schema:[]},defaultOptions:[],create(context){let bindings=new Set;return{Program(program){bindings=(0,unscoped_mutation_rule_1.driverBindings)(program,config.modules)},TaggedTemplateExpression(node){const name=tagName(node.tag);if(name===void 0||!tags.has(name))return;if(config.requireImport){if(node.tag.type!==ast_node_types_1.AST_NODE_TYPES.Identifier)return;if(!bindings.has(name))return}const{quasis,expressions}=node.quasi;expressions.forEach((expr,index)=>{if(isExemptExpression(expr,config.identifierHelpers,config.tags))return;const preceding=quasis.slice(0,index+1).map(q=>q.value.raw).join(" ");const position=identifierPosition(preceding);if(position===false)return;context.report({node:expr,messageId:position==="identifier"?"identifierInterpolation":"sortDirectionInterpolation"})})}}}}}