(self.webpackChunk_studyhub_co_react_comments_django_client=self.webpackChunk_studyhub_co_react_comments_django_client||[]).push([[2967],{14787:n=>{"use strict";function t(n){return function(t){var e=-1,r=n.length;if(t<0)return{};for(;++e<r;)if(n[e]>t)return{line:e+1,column:t-(n[e-1]||0)+1,offset:t};return{}}}function e(n){return function(t){var e=t&&t.line,r=t&&t.column;if(!isNaN(e)&&!isNaN(r)&&e-1 in n)return(n[e-2]||0)+r-1||0;return-1}}n.exports=function(n){var r=function(n){var t=[],e=n.indexOf("\n");for(;-1!==e;)t.push(e+1),e=n.indexOf("\n",e+1);return t.push(n.length+1),t}(String(n));return{toPosition:t(r),toOffset:e(r)}}}}]);