PageSourceSearch

https://www.ums.ac.id/_nuxt/puHORNpQ.js

js ums.ac.id collected 2026-10-01 10:24:28 UTC 4,589 bytes, 1 lines download raw bytes

1import{aH as t,aL as e,aq as i,ar as r,aM as n,a as s,d as o}from"./8DpF8wzA.js";async function d(t,e){const i=await async function(t){if("undefined"==typeof Image)throw new TypeError("Image not supported");return new Promise((e,i)=>{const r=new Image;r.onload=()=>{const t={width:r.width,height:r.height,ratio:r.width/r.height};e(t)},r.onerror=t=>i(t),r.src=t})}(e).catch(t=>({width:0,height:0,ratio:0}));return i}function a(t=""){return"number"==typeof t?t:"string"==typeof t&&t.replace("px","").match(/^\d+$/g)?Number.parseInt(t,10):void 0}function c(e){const i={options:e},r=(t,e={})=>f(i,t,e),n=(e,i={},n={})=>r(e,{...n,modifiers:t(i,n.modifiers||{})}).url;for(const t in e.presets)n[t]=(i,r,s)=>n(i,r,{...e.presets[t],...s});return n.options=e,n.getImage=r,n.getMeta=(t,e)=>async function(t,e,i){const r=f(t,e,{...i});return"function"==typeof r.getMeta?await r.getMeta():await d(0,r.url)}(i,t,e),n.getSizes=(t,e)=>function(t,e,i){const r=a(i.modifiers?.width),n=a(i.modifiers?.height),s=function(t){const e={};if("string"==typeof t)for(const i of t.split(/[\s,]+/).filter(t=>t)){const t=i.split(":");2!==t.length?e["1px"]=t[0].trim():e[t[0].trim()]=t[1].trim()}else Object.assign(e,t);return e}(i.sizes),o=i.densities?.trim()?function(t=""){if(void 0===t||!t.length)return[];const e=new Set;for(const i of t.split(" ")){const t=Number.parseInt(i.replace("x",""));t&&e.add(t)}return Array.from(e)}(i.densities.trim()):t.options.densities;!function(t){if(0===t.length)throw new Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}(o);const d=r&&n?n/r:0,c=[],f=[];if(Object.keys(s).length>=1){for(const r in s){const a=h(r,String(s[r]),n,d,t);if(void 0!==a){c.push({size:a.size,screenMaxWidth:a.screenMaxWidth,media:`(max-width: ${a.screenMaxWidth}px)`});for(const r of o)f.push({width:a._cWidth*r,src:p(t,e,i,a,r)})}}!function(t){t.sort((t,e)=>t.screenMaxWidth-e.screenMaxWidth);let e=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.media===e&&t.splice(i,1),e=r.media}for(let i=0;i<t.length;i++)t[i].media=t[i+1]?.media||""}(c)}else for(const a of o){const r=Object.keys(s)[0];let o=r?h(r,String(s[r]),n,d,t):void 0;void 0===o&&(o={size:"",screenMaxWidth:0,_cWidth:i.modifiers?.width,_cHeight:i.modifiers?.height}),f.push({width:a,src:p(t,e,i,o,a)})}!function(t){t.sort((t,e)=>t.width-e.width);let e=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.width===e&&t.splice(i,1),e=r.width}}(f);const u=f[f.length-1],m=c.length?c.map(t=>`${t.media?t.media+" ":""}${t.size}`).join(", "):void 0,g=m?"w":"x",l=f.map(t=>`${t.src} ${t.width}${g}`).join(", ");return{sizes:m,srcset:l,src:u?.src}}(i,t,e),i.$img=n,n}function f(s,o,d){if(o&&"string"!=typeof o)throw new TypeError(`input must be a string (received ${typeof o}: ${JSON.stringify(o)})`);if(!o||o.startsWith("data:"))return{url:o};const{provider:c,defaults:f}=function(t,e){const i=t.options.providers[e];if(!i)throw new Error("Unknown provider: "+e);return i}(s,d.provider||s.options.provider),h=function(t,e){if(!e)return{};if(!t.options.presets[e])throw new Error("Unknown preset: "+e);return t.options.presets[e]}(s,d.preset);if(o=i(o)?o:e(o),!c.supportsAlias)for(const t in s.options.alias)if(o.startsWith(t)){const e=s.options.alias[t];e&&(o=r(e,o.slice(t.length)))}if(c.validateDomains&&i(o)){const t=n(o).host;if(!s.options.domains.find(e=>e===t))return{url:o}}const p=t(d,h,f);p.modifiers={...p.modifiers};const u=p.modifiers.format;p.modifiers?.width&&(p.modifiers.width=a(p.modifiers.width)),p.modifiers?.height&&(p.modifiers.height=a(p.modifiers.height));const m=c.getImage(o,p,s);return m.format=m.format||u||"",m}function h(t,e,i,r,n){const s=n.options.screens&&n.options.screens[t]||Number.parseInt(t),o=e.endsWith("vw");if(!o&&/^\d+$/.test(e)&&(e+="px"),!o&&!e.endsWith("px"))return;let d=Number.parseInt(e);if(!s||!d)return;o&&(d=Math.round(d/100*s));return{size:e,screenMaxWidth:s,_cWidth:d,_cHeight:r?Math.round(d*r):i}}function p(t,e,i,r,n){return t.$img(e,{...i.modifiers,width:r._cWidth?r._cWidth*n:void 0,height:r._cHeight?r._cHeight*n:void 0},i)}const u={screens:{xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,"2xl":1536},presets:{},provider:"none",domains:["www.ums.ac.id","storage.googleapis.com"],alias:{},densities:[1,2],format:["webp"],quality:80,providers:{none:{provider:Object.freeze(Object.defineProperty({__proto__:null,getImage:t=>({url:t})},Symbol.toStringTag,{value:"Module"})),defaults:{}}}},m=t=>{const e=o(),i=s();return i.$img||i._img||(i._img=c({...u,event:i.ssrContext?.event,nuxt:{baseURL:e.app.baseURL}
1,runtimeConfig:e}))};export{a as p,m as u};

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.