b&&(b=S),d=(h*d+k)/++h):(_(),s.lineTo(k,S),g=x,h=0,p=b=S),m=S}_()}function Po(s){let t=s.options,e=t.borderDash&&t.borderDash.length;return!s._decimated&&!s._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?tf:Ju}function ef(s){return s.stepped?ua:s.tension||s.cubicInterpolationMode==="monotone"?fa:_e}function sf(s,t,e,n){let i=t._path;i||(i=t._path=new Path2D,t.path(i,e,n)&&i.closePath()),Ll(s,t.options),s.stroke(i)}function nf(s,t,e,n){let{segments:i,options:o}=t,r=Po(t);for(let a of i)Ll(s,o,a.style),s.beginPath(),r(s,t,a,{start:e,end:e+n-1})&&s.closePath(),s.stroke()}function rf(s,t,e,n){of&&!t.options.segment?sf(s,t,e,n):nf(s,t,e,n)}function Ua(s,t,e,n){let i=s.options,{[e]:o}=s.getProps([e],n);return Math.abs(t-o) b&&(b=S),d=(h*d+k)/++h):(_(),s.lineTo(k,S),g=x,h=0,p=b=S),m=S}_()}function Po(s){let t=s.options,e=t.borderDash&&t.borderDash.length;return!s._decimated&&!s._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?tf:Ju}function ef(s){return s.stepped?ua:s.tension||s.cubicInterpolationMode==="monotone"?fa:_e}function sf(s,t,e,n){let i=t._path;i||(i=t._path=new Path2D,t.path(i,e,n)&&i.closePath()),Ll(s,t.options),s.stroke(i)}function nf(s,t,e,n){let{segments:i,options:o}=t,r=Po(t);for(let a of i)Ll(s,o,a.style),s.beginPath(),r(s,t,a,{start:e,end:e+n-1})&&s.closePath(),s.stroke()}function rf(s,t,e,n){of&&!t.options.segment?sf(s,t,e,n):nf(s,t,e,n)}function Ua(s,t,e,n){let i=s.options,{[e]:o}=s.getProps([e],n);return Math.abs(t-o) =0;--u)if(!g()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){let e=this._cachedMeta._parsed,n=[],i,o,r;for(i=0,o=e.length;i =0;--u)if(!g()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){let e=this._cachedMeta._parsed,n=[],i,o,r;for(i=0,o=e.length;i
")}async function _r(s){if(!s.file)return;let t=td(s);if(!t){new ye.Notice("No column to use as the Anki card front.",6e3);return}let e=s.file.basename,n=s.rows.filter(o=>{var r;return((r=o[t])!=null?r:"").trim()});if(!n.length){new ye.Notice(`Nothing to sync \u2014 no rows with a "${t}" value.`,6e3);return}let i=new ye.Notice(`Syncing ${n.length} cards to Anki deck \u201C${e}\u201D\u2026`,0);try{await Cr("createDeck",{deck:e});let o=n.map(c=>({deckName:e,modelName:"Basic",fields:{Front:Li(c[t].trim()),Back:ed(s,c,t)},options:{allowDuplicate:!1,duplicateScope:"deck"},tags:["datadeck"]})),r=await Cr("addNotes",{notes:o}),a=r.filter(c=>c!=null).length,l=r.length-a;i.hide(),new ye.Notice(`Anki sync: ${a} added${l?`, ${l} already present`:""} (deck \u201C${e}\u201D).`,6e3)}catch(o){i.hide(),new ye.Notice(`Anki sync failed: ${o instanceof Error?o.message:String(o)}`,8e3)}}var Ze=require("obsidian");var Vo=null;async function Qe(){if(Vo)return Vo;let s=await Promise.resolve().then(()=>(Ql(),Xl));return s.Chart.register(s.LineController,s.ScatterController,s.BarController,s.LineElement,s.PointElement,s.BarElement,s.LinearScale,s.CategoryScale,s.Filler,s.Tooltip,s.Legend),Vo=s,s}var Zl={pi:Math.PI,e:Math.E},Jl={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sqrt:Math.sqrt,log:Math.log10,ln:Math.log,exp:Math.exp,abs:Math.abs,floor:Math.floor,ceil:Math.ceil,round:Math.round,sign:Math.sign},No={min:Math.min,max:Math.max,pow:Math.pow,atan2:Math.atan2};function _g(s){let t=[],e=0;for(;e
")}async function _r(s){if(!s.file)return;let t=td(s);if(!t){new ye.Notice("No column to use as the Anki card front.",6e3);return}let e=s.file.basename,n=s.rows.filter(o=>{var r;return((r=o[t])!=null?r:"").trim()});if(!n.length){new ye.Notice(`Nothing to sync \u2014 no rows with a "${t}" value.`,6e3);return}let i=new ye.Notice(`Syncing ${n.length} cards to Anki deck \u201C${e}\u201D\u2026`,0);try{await Cr("createDeck",{deck:e});let o=n.map(c=>({deckName:e,modelName:"Basic",fields:{Front:Li(c[t].trim()),Back:ed(s,c,t)},options:{allowDuplicate:!1,duplicateScope:"deck"},tags:["datadeck"]})),r=await Cr("addNotes",{notes:o}),a=r.filter(c=>c!=null).length,l=r.length-a;i.hide(),new ye.Notice(`Anki sync: ${a} added${l?`, ${l} already present`:""} (deck \u201C${e}\u201D).`,6e3)}catch(o){i.hide(),new ye.Notice(`Anki sync failed: ${o instanceof Error?o.message:String(o)}`,8e3)}}var Ze=require("obsidian");var Vo=null;async function Qe(){if(Vo)return Vo;let s=await Promise.resolve().then(()=>(Ql(),Xl));return s.Chart.register(s.LineController,s.ScatterController,s.BarController,s.LineElement,s.PointElement,s.BarElement,s.LinearScale,s.CategoryScale,s.Filler,s.Tooltip,s.Legend),Vo=s,s}var Zl={pi:Math.PI,e:Math.E},Jl={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sqrt:Math.sqrt,log:Math.log10,ln:Math.log,exp:Math.exp,abs:Math.abs,floor:Math.floor,ceil:Math.ceil,round:Math.round,sign:Math.sign},No={min:Math.min,max:Math.max,pow:Math.pow,atan2:Math.atan2};function _g(s){let t=[],e=0;for(;e