PageSourceSearch

https://gptchart.ai/_next/static/chunks/3115-440e645af2625576.js

js gptchart.ai collected 2026-10-05 13:58:58 UTC 13,291 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3115],{63115:(e,t,n)=>{n.r(t),n.d(t,{getFontEmbedCSS:()=>er,toBlob:()=>en,toCanvas:()=>Y,toJpeg:()=>et,toPixelData:()=>Z,toPng:()=>ee,toSvg:()=>K});let r=(()=>{let e=0;return()=>(e+=1,`u${`0000${(1679616*Math.random()|0).toString(36)}`.slice(-4)}${e}`)})();function i(e){let t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}let a=null;function l(e={}){return a||(a=e.includeStyleProperties?e.includeStyleProperties:i(window.getComputedStyle(document.documentElement)))}function o(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function c(e,t={}){return{width:t.width||function(e){let t=o(e,"border-left-width"),n=o(e,"border-right-width");return e.clientWidth+t+n}(e),height:t.height||function(e){let t=o(e,"border-top-width"),n=o(e,"border-bottom-width");return e.clientHeight+t+n}(e)}}function u(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function s(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function h(e,t,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),s(i)}let d=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||d(n,t))};function f(e,t,n,i){let a=window.getComputedStyle(e,n),o=a.getPropertyValue("content");if(""===o||"none"===o)return;let c=r();try{t.className=`${t.className} ${c}`}catch(e){return}let u=document.createElement("style");u.appendChild(function(e,t,n,r){let i=`.${e}:${t}`,a=n.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):l(r).map(e=>{let t=n.getPropertyValue(e),r=n.getPropertyPriority(e);return`${e}: ${t}${r?" !important":""};`}).join(" ");return document.createTextNode(`${i}{${a}}`)}(c,n,a,i)),t.appendChild(u)}let g="application/font-woff",m="image/jpeg",p={woff:g,woff2:g,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:m,jpeg:m,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function y(e){return p[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function w(e){return -1!==e.search(/^(data:)/)}function b(e,t){return`data:${t};base64,${e}`}async function S(e,t,n){let r=await fetch(e,t);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((e,t)=>{let a=new FileReader;a.onerror=t,a.onloadend=()=>{try{e(n({res:r,result:a.result}))}catch(e){t(e)}},a.readAsDataURL(i)})}let E={};async function x(e,t,n){var r,i,a;let l,o,c=(r=e,i=t,a=n.includeQueryParams,o=r.replace(/\?.*/,""),a&&(o=r),/ttf|otf|eot|woff2?/i.test(o)&&(o=o.replace(/.*\//,"")),i?`[${i}]${o}`:o);if(null!=E[c])return E[c];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let r=await S(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1]));l=b(r,t)}catch(r){l=n.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;r&&(t="string"==typeof r?r:r.message),t&&console.warn(t)}return E[c]=l,l}async function C(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):u(t)}async function $(e,t){if(e.currentSrc){let t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),u(t.toDataURL())}let n=e.poster,r=y(n);return u(await x(n,r,t))}async function v(e,t){var n;try{if(null==(n=null==e?void 0:e.contentDocument)?void 0:n.body)return await N(e.contentDocument.body,t,!0)}catch(e){}return e.cloneNode(!1)}async function P(e,t){return d(e,HTMLCanvasElement)?C(e):d(e,HTMLVideoElement)?$(e,t):d(e,HTMLIFrameElement)?v(e,t):e.cloneNode(R(e))}let R=e=>null!=e.tagName&&"SVG"===e.tagName.toUpperCase();async function T(e,t,n){var r,a;if(R(t))return t;let l=[];return 0===(l=null!=e.tagName&&"SLOT"===e.tagName.toUpperCase()&&e.assignedNodes?i(e.assignedNodes()):d(e,HTMLIFrameElement)&&(null==(r=e.contentDocument)?void 0:r.body)?i(e.contentDocument.body.childNodes):i((null!=(a=e.shadowRoot)?a:e).childNodes)).length||d(e,HTMLVideoElement)||await l.reduce((e,r)=>e.then(()=>N(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function A(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let r={};for(let i=0;i<n.length;i++){let a=n[i].getAttribute("xlink:href");if(a){let n=e.querySelector(a),i=document.querySelector(a);n||!i||r[a]||(r[a]=await N(i,t,!0))}}let i=Object.values(r);if(i.length){let t="http://www.w3.org/1999/xhtml",n=document.createElementNS(t,"svg");n.setAttribute("xmlns",t),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";let r=document.createElementNS(t,"defs");n.appendChild(r);for(let e=0;e<i.length;e++)r.appendChild(i[e]);e.appendChild(n)}return e}async function N(e,t,n){return n||!t.filter||t.filter(e)?Promise.resolve(e).then(e=>P(e,t)).then(n=>T(e,n,t)).then(n=>(function(e,t,n){if(d(t,Element)&&(!function(e,t,n){let r=t.style;if(!r)return;let i=window.getComputedStyle(e);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):l(n).forEac
1h(n=>{let a=i.getPropertyValue(n);if("font-size"===n&&a.endsWith("px")){let e=Math.floor(parseFloat(a.substring(0,a.length-2)))-.1;a=`${e}px`}d(e,HTMLIFrameElement)&&"display"===n&&"inline"===a&&(a="block"),"d"===n&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),r.setProperty(n,a,i.getPropertyPriority(n))})}(e,t,n),f(e,t,":before",n),f(e,t,":after",n),d(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),d(e,HTMLInputElement)&&t.setAttribute("value",e.value),d(e,HTMLSelectElement))){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}return t})(e,n,t)).then(e=>A(e,t)):null}let k=/url\((['"]?)([^'"]+?)\1\)/g,L=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,I=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function D(e,t,n,r,i){try{let a,l=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}(t,n):t,o=y(t);if(i){let e=await i(l);a=b(e,o)}else a=await x(l,o,r);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${a}$3`)}catch(e){}return e}function H(e){return -1!==e.search(k)}async function M(e,t,n){if(!H(e))return e;let r=function(e,{preferredFontFormat:t}){return t?e.replace(I,e=>{for(;;){let[n,,r]=L.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}(e,n);return(function(e){let t=[];return e.replace(k,(e,n,r)=>(t.push(r),e)),t.filter(e=>!w(e))})(r).reduce((e,r)=>e.then(e=>D(e,r,t,n)),Promise.resolve(r))}async function F(e,t,n){var r;let i=null==(r=t.style)?void 0:r.getPropertyValue(e);if(i){let r=await M(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function V(e,t){await F("background",e,t)||await F("background-image",e,t),await F("mask",e,t)||await F("-webkit-mask",e,t)||await F("mask-image",e,t)||await F("-webkit-mask-image",e,t)}async function q(e,t){let n=d(e,HTMLImageElement);if(!(n&&!w(e.src))&&!(d(e,SVGImageElement)&&!w(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await x(r,y(r),t);await new Promise((r,a)=>{e.onload=r,e.onerror=t.onImageErrorHandler?(...e)=>{try{r(t.onImageErrorHandler(...e))}catch(e){a(e)}}:a,e.decode&&(e.decode=r),"lazy"===e.loading&&(e.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function U(e,t){let n=i(e.childNodes).map(e=>j(e,t));await Promise.all(n).then(()=>e)}async function j(e,t){d(e,Element)&&(await V(e,t),await q(e,t),await U(e,t))}let O={};async function _(e){let t=O[e];if(null!=t)return t;let n=await fetch(e);return t={url:e,cssText:await n.text()},O[e]=t,t}async function B(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),S(a,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))})).then(()=>n)}function z(e){if(null==e)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)}
1)","gi");for(;;){let e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(null===(e=a.exec(n)))break;i.lastIndex=a.lastIndex}else a.lastIndex=i.lastIndex;t.push(e[0])}return t}async function W(e,t){let n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{i(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let a=i+1,l=e.href,o=_(l).then(e=>B(e,t)).then(e=>z(e).forEach(e=>{try{n.insertRule(e,e.startsWith("@import")?a+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});r.push(o)}})}catch(a){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(_(n.href).then(e=>B(e,t)).then(e=>z(e).forEach(e=>{i.insertRule(e,i.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(e=>{if("cssRules"in e)try{i(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function G(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=i(e.ownerDocument.styleSheets);return(await W(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>H(e.style.getPropertyValue("src")))}function J(e){return e.trim().replace(/["']/g,"")}async function Q(e,t){let n=await G(e,t),r=function(e){let t=new Set;return!function e(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(e=>{t.add(J(e))}),Array.from(n.children).forEach(t=>{t instanceof HTMLElement&&e(t)}
1)}(e),t}(e);return(await Promise.all(n.filter(e=>r.has(J(e.style.fontFamily))).map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return M(e.cssText,n,t)}))).join("\n")}async function X(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await Q(e,t);if(n){let t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function K(e,t={}){let{width:n,height:r}=c(e,t),i=await N(e,t,!0);return await X(i,t),await j(i,t),!function(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;null!=r&&Object.keys(r).forEach(e=>{n[e]=r[e]})}(i,t),await h(i,n,r)}async function Y(e,t={}){let{width:n,height:r}=c(e,t),i=await K(e,t),a=await u(i),l=document.createElement("canvas"),o=l.getContext("2d"),s=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&Number.isNaN(e=parseInt(n,10))&&(e=1),e||window.devicePixelRatio||1}(),h=t.canvasWidth||n,d=t.canvasHeight||r;return l.width=h*s,l.height=d*s,!t.skipAutoScale&&(l.width>16384||l.height>16384)&&(l.width>16384&&l.height>16384?l.width>l.height?(l.height*=16384/l.width,l.width=16384):(l.width*=16384/l.height,l.height=16384):l.width>16384?(l.height*=16384/l.width,l.width=16384):(l.width*=16384/l.height,l.height=16384)),l.style.width=`${h}`,l.style.height=`${d}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,l.width,l.height)),o.drawImage(a,0,0,l.width,l.height),l}async function Z(e,t={}){let{width:n,height:r}=c(e,t);return(await Y(e,t)).getContext("2d").getImageData(0,0,n,r).data}async function ee(e,t={}){return(await Y(e,t)).toDataURL()}async function et(e,t={}){return(await Y(e,t)).toDataURL("image/jpeg",t.quality||1)}async function en(e,t={}){let n=await Y(e,t);return await function(e,t={}){return new Promise(e.toBlob?n=>{e.toBlob(n,t.type?t.type:"image/png",t.quality?t.quality:1)}:n=>{let r=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(",")[1]),i=r.length,a=new Uint8Array(i);for(let e=0;e<i;e+=1)a[e]=r.charCodeAt(e);n(new Blob([a],{type:t.type?t.type:"image/png"}))})}(n)}async function er(e,t={}){return Q(e,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.