PageSourceSearch

http://www.kitco.com/_next/static/chunks/pages/markets/futures/energies-a4f01b28058825b3.js

js kitco.com collected 2026-09-24 08:35:59 UTC 14,688 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9077],{96740:function(e){var t;t=function(){function e(a,i){if(!(this instanceof e))return new e(a,i);var l=Math.pow(10,(i=Object.assign({},r,i)).precision);this.intValue=a=t(a,i),this.value=a/l,i.increment=i.increment||1/l,i.groups=i.useVedic?n:s,this.s=i,this.p=l}function t(t,r){var s=!(2<arguments.length)||void 0===arguments[2]||arguments[2],n=r.decimal,a=r.errorOnInvalid,i=r.fromCents,l=Math.pow(10,r.precision),o=t instanceof e;if(o&&i)return t.intValue;if("number"==typeof t||o)n=o?t.value:t;else if("string"==typeof t)a=RegExp("[^-\\d"+n+"]","g"),n=RegExp("\\"+n,"g"),n=(n=t.replace(/\((.*)\)/,"-$1").replace(a,"").replace(n,"."))||0;else{if(a)throw Error("Invalid Input");n=0}return i||(n=(n*l).toFixed(4)),s?Math.round(n):n}var r={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(e,t){var r=t.pattern,s=t.negativePattern,n=t.symbol,a=t.separator,i=t.decimal;t=t.groups;var l=(""+e).replace(/^-/,"").split("."),o=l[0];return l=l[1],(0<=e.value?r:s).replace("!",n).replace("#",o.replace(t,"$1"+a)+(l?i+l:""))},fromCents:!1},s=/(\d)(?=(\d{3})+\b)/g,n=/(\d)(?=(\d\d)+\d\b)/g;return e.prototype={add:function(r){var s=this.s,n=this.p;return e((this.intValue+t(r,s))/(s.fromCents?1:n),s)},subtract:function(r){var s=this.s,n=this.p;return e((this.intValue-t(r,s))/(s.fromCents?1:n),s)},multiply:function(t){var r=this.s;return e(this.intValue*t/(r.fromCents?1:Math.pow(10,r.precision)),r)},divide:function(r){var s=this.s;return e(this.intValue/t(r,s,!1),s)},distribute:function(t){var r=this.intValue,s=this.p,n=this.s,a=[],i=Math[0<=r?"floor":"ceil"](r/t),l=Math.abs(r-i*t);for(s=n.fromCents?1:s;0!==t;t--){var o=e(i/s,n);0<l--&&(o=o[0<=r?"add":"subtract"](1/s)),a.push(o)}return a},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(e){var t=this.s;return"function"==typeof e?e(this,t):t.format(this,Object.assign({},t,e))},toString:function(){var e=this.s,t=e.increment;return(Math.round(this.intValue/this.p/t)*t).toFixed(e.precision)},toJSON:function(){return this.value}},e},e.exports=t()},66607:function(e){var t;t=function(){return function(e,t,r){t.prototype.isBetween=function(e,t,s,n){var a=r(e),i=r(t),l="("===(n=n||"()")[0],o=")"===n[1];return(l?this.isAfter(a,s):!this.isBefore(a,s))&&(o?this.isBefore(i,s):!this.isAfter(i,s))||(l?this.isBefore(a,s):!this.isAfter(a,s))&&(o?this.isAfter(i,s):!this.isBefore(i,s))}}},e.exports=t()},40195:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/markets/futures/energies",function(){return r(37060)}])},69803:function(e,t,r){"use strict";var s=r(85893);t.Z=e=>{let{children:t,columns:r}=e;return(0,s.jsx)("div",{className:"mb-8 grid lg:gap-8 lg:grid-cols-".concat(JSON.stringify(r)," sm:grid-cols-1 sm:gap-0"),children:t})}},17702:function(e,t,r){"use strict";var s,n,a=r(67294),i=r(63658),l=r(83193);(s=n||(n={})).Crude="Crude Oil WTI",s.Harbor="ULSD NY Harbor",s.Brent="Crude Oil Brent (F)",s.Rbob="Gasoline RBOB",s.Natural="Natural Gas",s.Ethanol="Ethanol Futures",t.Z=()=>{let{data:e}=(0,l.ZP)(i.U.futuresByExchange({variables:{category:"Energies",exchange:"CBOT"}})),{data:t}=(0,l.ZP)(i.U.futuresByExchange({variables:{category:"Energies",exchange:"NYMEX"}})),[r,s]=(0,a.useState)(!0),[n,o]=(0,a.useState)([]);return(0,a.useEffect)(()=>{(async()=>{e&&t&&(o(await function(e,t){let r=[];if(t&&e){var s,n;let a={},i=null==t?void 0:null===(s=t.GetBarchartFuturesByExchange)||void 0===s?void 0:s.results,l=null==e?void 0:null===(n=e.GetBarchartFuturesByExchange)||void 0===n?void 0:n.results;for(let e=0;e<l.length;e++)Object.prototype.hasOwnProperty.call(a,l[e].name)||(a[l[e].name]={...l[e],exchange:"CBOT",category:"Energies"});for(let e=0;e<i.length;e++)Object.prototype.hasOwnProperty.call(a,i[e].name)||(a[i[e].name]={...i[e],exchange:"NYMEX",category:"Energies"});Object.keys(a).map(e=>{switch(e){case"Crude Oil WTI":r=[...r,a["Crude Oil WTI"]];break;case"ULSD NY Harbor":r=[...r,a["ULSD NY Harbor"]];break;
1case"Crude Oil Brent (F)":r=[...r,a["Crude Oil Brent (F)"]];break;case"Gasoline RBOB":r=[...r,a["Gasoline RBOB"]];break;case"Natural Gas":r=[...r,a["Natural Gas"]];break;case"Ethanol Futures":r=[...r,a["Ethanol Futures"]];break;default:return}})}return r}(e,t)),s(!1))})()},[e,t]),[n,r]}},60078:function(e,t,r){"use strict";var s=r(85893);t.Z=e=>{let{children:t}=e;return(0,s.jsx)("div",{className:"grid max-w-full gap-8 px-6 md:grid-cols-1 lg:grid-cols-layout-2",children:t})}},96285:function(e,t,r){"use strict";var s=r(85893),n=r(96740),a=r.n(n),i=r(41664),l=r.n(i),o=r(83239),c=r(46761),u=r(71912),d=r(59062),m=r(16252),h=r(79799),f=r.n(h);t.Z=e=>{let{data:t,section:r,title:n,showMore:i,isLoading:m}=e,h=e=>(0,d.Z)(e)?(0,c.Z)([f().colorRed,f().bold]):(0,c.Z)([f().colorGreen,f().bold]),b=e=>{let t=e.split("");return t.includes("$")||t.includes("^")?e.substring(1):e};return(0,s.jsx)(o.Z,{title:n+" — "+u.ZP.dayTime(),children:(0,s.jsxs)("ul",{children:[(0,s.jsx)(x,{}),m&&(0,s.jsx)(g,{}),null==t?void 0:t.map((e,t)=>{var n,i;return(0,s.jsx)("li",{className:t%2?f().item:(0,c.Z)([f().item,f().altBg]),children:(0,s.jsx)(l(),{href:"/markets/".concat(r,"/[symbol]"),as:"/markets/".concat(r,"/").concat(encodeURIComponent("stocks"===r&&e["symbol-fullname"]||e.symbol)),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"hidden md:block lg:block",children:(0,s.jsx)("p",{className:"font-semibold",children:b(e.symbol)})}),(0,s.jsx)("p",{className:"mt-1 text-xs",children:(null==e?void 0:e.name)||(null==e?void 0:e.symbolName)}),(0,s.jsx)("p",{className:"text-right font-semibold",children:a()(null==e?void 0:e.lastPrice).format()}),(0,s.jsx)("div",{className:"hidden md:block lg:block",children:(0,s.jsxs)("p",{className:(0,c.Z)([h((null==e?void 0:e.netChange)||(null==e?void 0:e.priceNetChange)),"text-right"]),children:[(null==e?void 0:e.netChange)?a()(null==e?void 0:e.netChange).format():a()(null==e?void 0:e.priceNetChange).format(),"\xa0","(",(null==e?void 0:null===(n=e.percentChange)||void 0===n?void 0:n.toFixed(2))||(null==e?void 0:null===(i=e.pricePercentChange)||void 0===i?void 0:i.toFixed(2)),"%",")"]})})]})})},e.symbol)}),i&&(0,s.jsx)("li",{className:f().itemMoreLink,children:(0,s.jsx)("div",{className:"flex-shrink-1 mx-auto flex max-w-xs justify-center",children:(0,s.jsxs)(l(),{href:"/markets/".concat(r),className:"moreLink",children:["More\xa0",r,"\xa0+"]})})})]})})};let x=()=>(0,s.jsxs)("li",{className:(0,c.Z)([f().item,f().titles]),children:[(0,s.jsx)("p",{className:"hidden md:block lg:block",children:"Symbol"}),(0,s.jsx)("p",{children:"Name"}),(0,s.jsx)("p",{className:"text-right",children:"Last"}),(0,s.jsx)("p",{className:"hidden text-right md:block lg:block",children:"Change"})]}),g=()=>(0,s.jsx)(s.Fragment,{children:[1,2,3,4,5].map(e=>(0,s.jsxs)("li",{className:(0,c.Z)([f().item,f().loading]),children:[(0,s.jsx)(m.Z,{}),(0,s.jsx)("div",{className:"hidden md:flex",children:(0,s.jsx)(m.Z,{})}),(0,s.jsx)("div",{className:"hidden justify-end md:flex",children:(0,s.jsx)(m.Z,{})}),(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(m.Z,{})})]},e))})},91155:function(e,t,r){"use strict";var s=r(85893),n=r(90512),a=r(69803);t.Z=e=>{let{columns:t}=e;return(0,s.jsx)(a.Z,{columns:t,children:(()=>{let e=[];for(let r=0;r<t;r++)e.push((0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:(0,n.Z)("animate-loading h-[24px] w-[280px]")}),(0,s.jsx)("div",{className:"animate-loading h-[280px] w-[280px] rounded-md !bg-black/10"})]},r));return e})()})}},16252:function(e,t,r){"use strict";var s=r(85893);r(67294),t.Z=()=>(0,s.jsx)("div",{className:"animate-loading !h-[16px] !w-[50%] !bg-black/10"})},47149:function(e,t,r){"use strict";var s=r(85893),n=r(41664),a=r.n(n),i=r(11163);t.Z=e=>{let{items:t}=e,r=(0,i.useRouter)();return(0,s.jsx)("ul",{className:"flex flex-wrap",children:t.map((e,t)=>(0,s.jsx)("li",{className:e.href===r.asPath?"mr-4 border-b-2 border-solid border-gray-900":"mr-4",children:(0,s.jsx)(a(),{className:"text-gray-700",href:e.href,children:(0,s.jsx)("button",{type:"button",className:"tab","aria-current":e.href===r.asPath,children:e.name})})},t))})}},83239:function(e,t,r){"use strict";var s=r(85893),n=r(41664),a=r.n(n),i=r(48593),l=r.n(i);t.Z=e=>{let{title:t,children:r,href:n=null}=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)("header",{className:l().head,children:(0,s.jsx)("h2",{className:l().txt,children:n?(0,s.jsx)(a(),{className:"text-white",href:n,children:t}):(0,s.jsx)(s.Fragment,{children:t})})}),(0,s.jsx)("div",{className:"border",children:r})]})}},18105:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var s=r(85893),n=r(44478),a=r(42080),i=r(51411),l=r(60078),o=r(47149),c=[{name:"All",href:"/markets/futures"},{name:"Metals",href:"/markets/futures/metals"},{name:"Energies",href:"/markets/futures/energies"},{name:"Grains",href:"/markets/futures/grains"},{name:"Indices",href:"/markets/futures/indices"},{name:"Meats",href:"/markets/futures/meats"},{name:"Currencies",href:"/markets/futures/currencies"}],u=e=>{let{children:t,category:r}=e;return(0,s.jsx)(i.Z,{title:"".concat(r," Futures"),children:(0,s.jsxs)(l.Z,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mb-8",children:(0,s.jsx)(o.Z,{items:c})}),t]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(n.Z,{id:"right-rail-1",className:"mx-auto mb-10 h-[250px] w-[300px] desktop:mb-4"}),(0,s.jsx)(a.Z,{})]})]})})}},63658:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});var s=r(37340),n=r(47273),a=r(68442),i=r(5409);function l(){let e=(0,s._)(["\n            query MarketStatus {\n              GetMarketStatus {\n                status\n                next\n              }\n            }\n          "]);return l=function(){return e},e}let o={marketStatus:e=>({...null==e?void 0:e.options,queryKey:["marketStatus"],refetchInterval:i.zP,queryFn:async()=>await a.P.pricesFetch((0,n.Ps)(l()),null==e?void 0:e.variables)}),barchartsGoldIndicators:e=>({...null==e?void 0:e.options,refetchInterval:i.zP,queryKey:["barchartsGoldIndicators-disabled",null==e?void 0:e.variables],queryFn:async()=>({data:{GetBarchartQuotes:{__typename:"BarchartGetQuote",timestamp:0,symbols:"",results:[]}},GetBarchartQuotes:{__typename:"BarchartGetQuote",timestamp:0,symbols:"",results:[]}})}),barchartsLeaders:e=>({...null==e?void 0:e.options,refetchInterval:i.zP,queryKey:["barchartsLeaders-disabled",null==e?void 0:e.variables],queryFn:async()=>({data:{leaders:{results:[]}},leaders:{results:[]}})}),regionIndices:e=>({...null==e?void 0:e.options,refetchInterval:i.zP,queryKey:["regionIndices-disabled",null==e?void 0:e.variables],queryFn:async()=>({data:{USquotes:{results:[]},EUquotes:{results:[]},ASIAquotes:{results:[]}}})}),futuresByExchange:e=>({...null==e?void 0:e.options,refetchInterval:i.zP,queryKey:["futuresByExchange-disabled",null==e?void 0:e.variables],queryFn:async()=>({data:{GetBarchartFuturesByExchange:{__typename:"BarchartGetFuturesByExchange",timestamp:0,exchange:"",results:[]}},GetBarchartFuturesByExchange:{__typename:"BarchartGetFuturesByExchange",timestamp:0,exchange:"",results:[]}})})}},37060:function(e,t,r){"use strict";r.r(t);var s=r(85893),n=r(69803),a=r(17702),i=r(18105),l=r(96285),o=r(91155),c=r(89256);t.default=()=>{let[e,t]=(0,a.Z)();return(0,s.jsx)(i.Z,{category:"Energies",children:(0,s.jsxs)(s.Fragment,{children:[e.length>0?(0,s.jsxs)(n.Z,{columns:2,children:[(0,s.jsx)(c.q,{symbol:e[0].symbol,title:e[0].name,href:"/markets/futures/".concat(e[0].symbol)}),(0,s.jsx)("div",{className:"hidden md:block lg:block",children:(0,s.jsx)(c.q,{symbol:e[1].symbol,title:e[1].name,href:"/markets/futures/".concat(e[1].symbol)})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"hidden md:block lg:block",children:(0,s.jsx)(o.Z,{columns:2})}),(0,s.jsx)("div",{className:"block md:hidden lg:hidden",children:(0,s.jsx)(o.Z,{columns:1})})]}),(0,s.jsx)("div",{className:"mb-8",children:(0,s.jsx)(l.Z,{title:"Energies",section:"futures",data:e,isLoading:t})})]})})}},46761:function(e,t){"use strict";t.Z=function(e){return e.filter(e=>e).join(" ")}},71912:function(e,t,r){"use strict";r.d(t,{rm:function(){return n}});var s,n,a=r(27484),i=r.n(a),l=r(29387),o=r.n(l),c=r(70178),u=r.n(c);i().extend(u()),i().extend(o()),(s=n||(n={}
1)).NY="America/New_York",s.UK="Europe/London",s.IS="Asia/Kolkata",s.HK="Asia/Hong_Kong",t.ZP={day:()=>i()().tz("America/New_York").format("MMM DD, YYYY"),dayTime:e=>e?i()(e).tz("America/New_York").format("MMM DD, YYYY h:mm A"):i()().tz("America/New_York").format("MMM DD, YYYY h:mm A"),clock:(e,t)=>i().unix(t).tz(e).format("h:mm A"),fmtUnix:(e,t)=>i().unix(e).tz("America/New_York").format(t||"MMM DD, YYYY"),tenAMunix:e=>{let t=i()().tz(e,!1).hour(10).minute(0).second(0).format();return i()(t).unix()},timeNow:e=>i()().tz("America/New_York").format(e||"h:mm A"),timeThen:e=>i()(e).tz("America/New_York").format("h:mm A"),timeThenZone:(e,t)=>i().unix(e).tz(t).format("h:mm A"),unixNow:()=>i()().unix(),yesterday:()=>15*Math.floor(i()().subtract(1,"day").unix()/15),midnight:()=>i()().tz("America/New_York").hour(0).minute(0).second(0).unix()}},59062:function(e,t){"use strict";t.Z=e=>-1==Math.sign(e)},5409:function(e,t,r){"use strict";r.d(t,{Vk:function(){return d},zP:function(){return h}});var s=r(27484),n=r.n(s),a=r(66607),i=r.n(a),l=r(29387),o=r.n(l),c=r(70178),u=r.n(c);n().extend(u()),n().extend(o()),n().extend(i());let d=()=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30,t=n()(),r=t.second();return t.second(Math.floor(r/e)*e).millisecond(0).unix()})(),m=()=>{let e=n()().tz("America/New_York");if(0===e.day()){let t=e.clone().set("hour",17).set("minute",0).set("second",0).set("millisecond",0);e.isBefore(t)&&(e=e.subtract(1,"day"))}let t=e.startOf("week").add(5,"day").set("hour",17),r=t.add(2,"day").set("hour",17);return{weekendStart:t,weekendEnd:r,isWeekend:e.isBetween(t,r,null,"[]")}},h=()=>!m().isWeekend&&3e4},79799:function(e){e.exports={item:"QuotesTable_item__SS9fp",itemMoreLink:"QuotesTable_itemMoreLink__06AVS",titles:"QuotesTable_titles__yFvh0",colorRed:"QuotesTable_colorRed__epYsL",colorGreen:"QuotesTable_colorGreen__E6TIZ",bold:"QuotesTable_bold__t6_qH",altBg:"QuotesTable_altBg__s8xZC",alignRight:"QuotesTable_alignRight__EqxND",loading:"QuotesTable_loading__DzWHm",pulse:"QuotesTable_pulse__YROdG"}},48593:function(e){e.exports={head:"Table_head__Cgr4F",txt:"Table_txt__EIIHI",more:"Table_more__zPmKF"}}},function(e){e.O(0,[4396,6724,5026,4738,3365,648,7472,4034,7128,7035,6660,4817,594,509,4321,4873,1595,7536,9652,362,9574,9177,8506,8953,1172,2888,9774,179],function(){return e(e.s=40195)}),_N_E=e.O()}]);

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.