webupscale / _next /static /chunks /12.2245e6e037fcf5cb.js
WGNW's picture
Upload 36 files
3ec53f0 verified
raw
history blame
No virus
3.34 kB
!function(){var t,e,n,r,o,i,u,c,a={2525:function(){},7147:function(){},1418:function(){},3380:function(){},319:function(){},8386:function(){},3342:function(){},436:function(t,e,n){"use strict";var r=n(1008);r.OBj.allowLocalModels=!1;class o{static async getInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===this.instance&&(this.instance=(0,r.EUT)(this.task,this.model,{progress_callback:t})),this.instance}}o.task="image-to-image",o.model="Xenova/swin2SR-classical-sr-x2-64",o.instance=null,self.addEventListener("message",async t=>{let e=await o.getInstance(t=>{self.postMessage(t)}),n=await e(t.data.image,{callback_function:t=>{self.postMessage({status:"update",output:t})}});self.postMessage({status:"complete",output:n})})}},s={};function f(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}},r=!0;try{a[t](n,n.exports,f),r=!1}finally{r&&delete s[t]}return n.exports}f.m=a,f.x=function(){var t=f.O(void 0,[165,132,15,766],function(){return f(436)});return f.O(t)},t=[],f.O=function(e,n,r,o){if(n){o=o||0;for(var i=t.length;i>0&&t[i-1][2]>o;i--)t[i]=t[i-1];t[i]=[n,r,o];return}for(var u=1/0,i=0;i<t.length;i++){for(var n=t[i][0],r=t[i][1],o=t[i][2],c=!0,a=0;a<n.length;a++)u>=o&&Object.keys(f.O).every(function(t){return f.O[t](n[a])})?n.splice(a--,1):(c=!1,o<u&&(u=o));if(c){t.splice(i--,1);var s=r();void 0!==s&&(e=s)}}return e},n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},f.t=function(t,r){if(1&r&&(t=this(t)),8&r||"object"==typeof t&&t&&(4&r&&t.__esModule||16&r&&"function"==typeof t.then))return t;var o=Object.create(null);f.r(o);var i={};e=e||[null,n({}),n([]),n(n)];for(var u=2&r&&t;"object"==typeof u&&!~e.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach(function(e){i[e]=function(){return t[e]}});return i.default=function(){return t},f.d(o,i),o},f.d=function(t,e){for(var n in e)f.o(e,n)&&!f.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},f.f={},f.e=function(t){return Promise.all(Object.keys(f.f).reduce(function(e,n){return f.f[n](t,e),e},[]))},f.u=function(t){return"static/chunks/"+(({15:"b2db8554",132:"6139e184",165:"590caa2a"})[t]||t)+"."+({15:"64d1a60571cad9c0",132:"961bc22caabc9bfd",165:"66f426e0dccf530e",766:"0cd721cdb05598ed"})[t]+".js"},f.miniCssF=function(t){},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.tt=function(){return void 0===r&&(r={createScriptURL:function(t){return t}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(r=trustedTypes.createPolicy("nextjs#bundler",r))),r},f.tu=function(t){return f.tt().createScriptURL(t)},f.p="/_next/",o={12:1},f.f.i=function(t,e){o[t]||importScripts(f.tu(f.p+f.u(t)))},u=(i=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push.bind(i),i.push=function(t){var e=t[0],n=t[1],r=t[2];for(var i in n)f.o(n,i)&&(f.m[i]=n[i]);for(r&&r(f);e.length;)o[e.pop()]=1;u(t)},c=f.x,f.x=function(){return Promise.all([165,132,15,766].map(f.e,f)).then(c)},_N_E=f.x()}();