PageSourceSearch

https://beyalan.ai/_next/static/chunks/9566.75765828641ba157.js

js beyalan.ai collected 2026-10-05 15:28:45 UTC 3,706 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},d=(new e.Error).stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="33be08a3-5de8-46b2-9514-504491763331",e._sentryDebugIdIdentifier="sentry-dbid-33be08a3-5de8-46b2-9514-504491763331")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9566],{9566:(e,d,t)=>{t.d(d,{downloadBlob:()=>h,exportVolSurfaceToWorkbook:()=>s});var a=t(39280),i=t.n(a);let o={type:"pattern",pattern:"solid",fgColor:{argb:"FF1F1F23"}},r={color:{argb:"FFA1A1AA"},bold:!0,size:10};function n(e){e.eachCell(e=>{e.fill=o,e.font=r,e.alignment={vertical:"middle"}}),e.height=18}function l(e){return"number"==typeof e&&Number.isFinite(e)?e:""}async function s(e){let d=new(i()).Workbook;d.creator="Beyalan Vol Surface",d.created=new Date;let t=d.addWorksheet("Summary");if(t.columns=[{header:"Field",key:"field",width:28},{header:"Value",key:"value",width:40}],n(t.getRow(1)),t.addRow({field:"Symbol",value:e.symbol}),t.addRow({field:"As of",value:e.asOf}),t.addRow({field:"Spot",value:l(e.spot)}),t.addRow({field:"Risk-free rate",value:l(e.riskFree)}),t.addRow({field:"Dividend yield",value:l(e.divYield)}),t.addRow({field:"Available",value:e.available?"yes":"no"}),e.reason&&t.addRow({field:"Reason",value:e.reason}),t.addRow({field:"Raw chain rows",value:l(e.rawCount)}),t.addRow({field:"Fetched at",value:e.fetchedAt}),e.surface&&(t.addRow({field:"Kept points",value:l(e.surface.points.length)}),t.addRow({field:"Expirations",value:l(e.surface.expirations.length)}),t.addRow({field:"Dropped (no mid)",value:l(e.surface.diagnostics.droppedNoMid)}),t.addRow({field:"Dropped (band)",value:l(e.surface.diagnostics.droppedBand)}),t.addRow({field:"Dropped (solve)",value:l(e.surface.diagnostics.droppedSolveFail)})),e.surface){let t=d.addWorksheet("Points",{views:[{state:"frozen",ySplit:1}]});for(let d of(t.columns=[{header:"Expiration",key:"expiration",width:12},{header:"Strike",key:"strike",width:10},{header:"Type",key:"type",width:8},{header:"Moneyness",key:"moneyness",width:12},{header:"DTE",key:"dte",width:8},{header:"T (years)",key:"t",width:10},{header:"Mid",key:"mid",width:10},{header:"IV",key:"iv",width:10},{header:"FMP IV",key:"fmpIv",width:10},{header:"Method",key:"method",width:8},{header:"Iters",key:"iters",width:8}],n(t.getRow(1)),e.surface.points))t.addRow({expiration:d.expiration,strike:l(d.strike),type:d.type,moneyness:l(d.moneyness),dte:l(d.daysToExpiry),t:l(d.T),mid:l(d.mid),iv:l(d.iv),fmpIv:l(d.fmpIv),method:d.ivMethod,iters:l(d.ivIterations)});let a=d.addWorksheet("Smile (nearest)");for(let d of(a.columns=[{header:"Strike",key:"strike",width:10},{header:"Moneyness",key:"moneyness",width:12},{header:"Call IV",key:"call",width:10},{header:"Put IV",key:"put",width:10},{header:"Best IV",key:"iv",width:10}],n(a.getRow(1)),e.surface.smile))a.addRow({strike:l(d.strike),moneyness:l(d.moneyness),call:l(d.call),put:l(d.put),iv:l(d.iv)});let i=d.addWorksheet("Term Structure");for(let d of(i.columns=[{header:"Expiration",key:"expiration",width:12},{header:"DTE",key:"dte",width:8},{header:"T (yrs)",key:"t",width:10},{header:"ATM IV",key:"atmIv",width:10},{header:"Count",key:"count",width:8}],n(i.getRow(1)),e.surface.termStructure))i.addRow({expiration:d.expiration,dte:l(d.daysToExpiry),t:l(d.T),atmIv:l(d.atmIv),count:l(d.count)})}return new Blob([await d.xlsx.writeBuffer()],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})}function h(e,d){let t=URL.createObjectURL(e),a=document.createElement("a");a.href=t,a.download=d,a.click(),URL.revokeObjectURL(t)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.