diff --git a/asset-manifest.json b/asset-manifest.json index 921f197..35a3b97 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,12 +1,12 @@ { "files": { "main.css": "/SD-piXL/static/css/main.31d6cfe0.css", - "main.js": "/SD-piXL/static/js/main.a14560b8.js", + "main.js": "/SD-piXL/static/js/main.077192f1.js", "index.html": "/SD-piXL/index.html", - "main.a14560b8.js.map": "/SD-piXL/static/js/main.a14560b8.js.map" + "main.077192f1.js.map": "/SD-piXL/static/js/main.077192f1.js.map" }, "entrypoints": [ "static/css/main.31d6cfe0.css", - "static/js/main.a14560b8.js" + "static/js/main.077192f1.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 0bd9815..f43e6d8 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -SD-πXL: Generating Low-Resolution Quantized Imagery via Score Distillation
\ No newline at end of file +SD-πXL: Generating Low-Resolution Quantized Imagery via Score Distillation
\ No newline at end of file diff --git a/media/gallery/pixelization/input/32/14.png b/media/gallery/pixelization/input/32/14.png new file mode 100644 index 0000000..bf51226 Binary files /dev/null and b/media/gallery/pixelization/input/32/14.png differ diff --git a/media/gallery/pixelization/input/32/2.png b/media/gallery/pixelization/input/32/2.png new file mode 100644 index 0000000..f37f005 Binary files /dev/null and b/media/gallery/pixelization/input/32/2.png differ diff --git a/media/gallery/pixelization/input/32/25.png b/media/gallery/pixelization/input/32/25.png new file mode 100644 index 0000000..d1f9268 Binary files /dev/null and b/media/gallery/pixelization/input/32/25.png differ diff --git a/media/gallery/pixelization/input/32/3.png b/media/gallery/pixelization/input/32/3.png new file mode 100644 index 0000000..033a228 Binary files /dev/null and b/media/gallery/pixelization/input/32/3.png differ diff --git a/media/gallery/pixelization/input/32/35.png b/media/gallery/pixelization/input/32/35.png new file mode 100644 index 0000000..6eb2043 Binary files /dev/null and b/media/gallery/pixelization/input/32/35.png differ diff --git a/media/gallery/pixelization/input/32/37.png b/media/gallery/pixelization/input/32/37.png new file mode 100644 index 0000000..baffca7 Binary files /dev/null and b/media/gallery/pixelization/input/32/37.png differ diff --git a/media/gallery/pixelization/input/32/4.png b/media/gallery/pixelization/input/32/4.png new file mode 100644 index 0000000..36cb821 Binary files /dev/null and b/media/gallery/pixelization/input/32/4.png differ diff --git a/media/gallery/pixelization/input/32/6.png b/media/gallery/pixelization/input/32/6.png new file mode 100644 index 0000000..2fd17fb Binary files /dev/null and b/media/gallery/pixelization/input/32/6.png differ diff --git a/media/gallery/pixelization/input/32/7.png b/media/gallery/pixelization/input/32/7.png new file mode 100644 index 0000000..d9c21c9 Binary files /dev/null and b/media/gallery/pixelization/input/32/7.png differ diff --git a/media/gallery/pixelization/input/48/10.png b/media/gallery/pixelization/input/48/10.png new file mode 100644 index 0000000..2abdd8e Binary files /dev/null and b/media/gallery/pixelization/input/48/10.png differ diff --git a/media/gallery/pixelization/input/48/14.png b/media/gallery/pixelization/input/48/14.png new file mode 100644 index 0000000..ede18c6 Binary files /dev/null and b/media/gallery/pixelization/input/48/14.png differ diff --git a/media/gallery/pixelization/input/48/2.png b/media/gallery/pixelization/input/48/2.png new file mode 100644 index 0000000..d71c838 Binary files /dev/null and b/media/gallery/pixelization/input/48/2.png differ diff --git a/media/gallery/pixelization/input/48/20.png b/media/gallery/pixelization/input/48/20.png new file mode 100644 index 0000000..4c1eec2 Binary files /dev/null and b/media/gallery/pixelization/input/48/20.png differ diff --git a/media/gallery/pixelization/input/48/27.png b/media/gallery/pixelization/input/48/27.png new file mode 100644 index 0000000..aa65cc3 Binary files /dev/null and b/media/gallery/pixelization/input/48/27.png differ diff --git a/media/gallery/pixelization/input/48/41.png b/media/gallery/pixelization/input/48/41.png new file mode 100644 index 0000000..fbdbc9c Binary files /dev/null and b/media/gallery/pixelization/input/48/41.png differ diff --git a/media/gallery/pixelization/input/48/44.png b/media/gallery/pixelization/input/48/44.png new file mode 100644 index 0000000..8750b8d Binary files /dev/null and b/media/gallery/pixelization/input/48/44.png differ diff --git a/media/gallery/pixelization/input/48/8.png b/media/gallery/pixelization/input/48/8.png new file mode 100644 index 0000000..c49f2bc Binary files /dev/null and b/media/gallery/pixelization/input/48/8.png differ diff --git a/media/gallery/pixelization/input/64/17.png b/media/gallery/pixelization/input/64/17.png new file mode 100644 index 0000000..e5ebe94 Binary files /dev/null and b/media/gallery/pixelization/input/64/17.png differ diff --git a/media/gallery/pixelization/input/64/20.png b/media/gallery/pixelization/input/64/20.png new file mode 100644 index 0000000..1daae3c Binary files /dev/null and b/media/gallery/pixelization/input/64/20.png differ diff --git a/media/gallery/pixelization/input/64/25.png b/media/gallery/pixelization/input/64/25.png new file mode 100644 index 0000000..d9c18fe Binary files /dev/null and b/media/gallery/pixelization/input/64/25.png differ diff --git a/media/gallery/pixelization/input/64/3.png b/media/gallery/pixelization/input/64/3.png new file mode 100644 index 0000000..0f98ea4 Binary files /dev/null and b/media/gallery/pixelization/input/64/3.png differ diff --git a/media/gallery/pixelization/input/64/43.png b/media/gallery/pixelization/input/64/43.png new file mode 100644 index 0000000..6166591 Binary files /dev/null and b/media/gallery/pixelization/input/64/43.png differ diff --git a/media/gallery/pixelization/input/64/46.png b/media/gallery/pixelization/input/64/46.png new file mode 100644 index 0000000..778aaf5 Binary files /dev/null and b/media/gallery/pixelization/input/64/46.png differ diff --git a/media/gallery/pixelization/input/64/47.png b/media/gallery/pixelization/input/64/47.png new file mode 100644 index 0000000..a90aca2 Binary files /dev/null and b/media/gallery/pixelization/input/64/47.png differ diff --git a/media/gallery/pixelization/input/64/48.png b/media/gallery/pixelization/input/64/48.png new file mode 100644 index 0000000..5db6f24 Binary files /dev/null and b/media/gallery/pixelization/input/64/48.png differ diff --git a/media/gallery/pixelization/input/64/5.png b/media/gallery/pixelization/input/64/5.png new file mode 100644 index 0000000..f5e2cdd Binary files /dev/null and b/media/gallery/pixelization/input/64/5.png differ diff --git a/media/gallery/pixelization/kmeans/32/14.png b/media/gallery/pixelization/kmeans/32/14.png new file mode 100644 index 0000000..62e4d9c Binary files /dev/null and b/media/gallery/pixelization/kmeans/32/14.png differ diff --git a/media/gallery/pixelization/kmeans/32/25.png b/media/gallery/pixelization/kmeans/32/25.png new file mode 100644 index 0000000..49f316e Binary files /dev/null and b/media/gallery/pixelization/kmeans/32/25.png differ diff --git a/media/gallery/pixelization/kmeans/32/4.png b/media/gallery/pixelization/kmeans/32/4.png new file mode 100644 index 0000000..25ea975 Binary files /dev/null and b/media/gallery/pixelization/kmeans/32/4.png differ diff --git a/media/gallery/pixelization/kmeans/32/7.png b/media/gallery/pixelization/kmeans/32/7.png new file mode 100644 index 0000000..06efb84 Binary files /dev/null and b/media/gallery/pixelization/kmeans/32/7.png differ diff --git a/media/gallery/pixelization/kmeans/48/10.png b/media/gallery/pixelization/kmeans/48/10.png new file mode 100644 index 0000000..e0feee2 Binary files /dev/null and b/media/gallery/pixelization/kmeans/48/10.png differ diff --git a/media/gallery/pixelization/kmeans/48/20.png b/media/gallery/pixelization/kmeans/48/20.png new file mode 100644 index 0000000..a7174d6 Binary files /dev/null and b/media/gallery/pixelization/kmeans/48/20.png differ diff --git a/media/gallery/pixelization/kmeans/48/27.png b/media/gallery/pixelization/kmeans/48/27.png new file mode 100644 index 0000000..b27997d Binary files /dev/null and b/media/gallery/pixelization/kmeans/48/27.png differ diff --git a/media/gallery/pixelization/kmeans/48/44.png b/media/gallery/pixelization/kmeans/48/44.png new file mode 100644 index 0000000..f9c1773 Binary files /dev/null and b/media/gallery/pixelization/kmeans/48/44.png differ diff --git a/media/gallery/pixelization/kmeans/64/3.png b/media/gallery/pixelization/kmeans/64/3.png new file mode 100644 index 0000000..bb651d8 Binary files /dev/null and b/media/gallery/pixelization/kmeans/64/3.png differ diff --git a/media/gallery/pixelization/kmeans/64/43.png b/media/gallery/pixelization/kmeans/64/43.png new file mode 100644 index 0000000..ca984e1 Binary files /dev/null and b/media/gallery/pixelization/kmeans/64/43.png differ diff --git a/media/gallery/pixelization/kmeans/64/48.png b/media/gallery/pixelization/kmeans/64/48.png new file mode 100644 index 0000000..9c831c6 Binary files /dev/null and b/media/gallery/pixelization/kmeans/64/48.png differ diff --git a/media/gallery/pixelization/kmeans/64/5.png b/media/gallery/pixelization/kmeans/64/5.png new file mode 100644 index 0000000..b7e706d Binary files /dev/null and b/media/gallery/pixelization/kmeans/64/5.png differ diff --git a/media/gallery/pixelization/palette/32/2.png b/media/gallery/pixelization/palette/32/2.png new file mode 100644 index 0000000..7a534f6 Binary files /dev/null and b/media/gallery/pixelization/palette/32/2.png differ diff --git a/media/gallery/pixelization/palette/32/3.png b/media/gallery/pixelization/palette/32/3.png new file mode 100644 index 0000000..b825066 Binary files /dev/null and b/media/gallery/pixelization/palette/32/3.png differ diff --git a/media/gallery/pixelization/palette/32/35.png b/media/gallery/pixelization/palette/32/35.png new file mode 100644 index 0000000..e013213 Binary files /dev/null and b/media/gallery/pixelization/palette/32/35.png differ diff --git a/media/gallery/pixelization/palette/32/37.png b/media/gallery/pixelization/palette/32/37.png new file mode 100644 index 0000000..0f276ae Binary files /dev/null and b/media/gallery/pixelization/palette/32/37.png differ diff --git a/media/gallery/pixelization/palette/32/6.png b/media/gallery/pixelization/palette/32/6.png new file mode 100644 index 0000000..002d9ba Binary files /dev/null and b/media/gallery/pixelization/palette/32/6.png differ diff --git a/media/gallery/pixelization/palette/48/14.png b/media/gallery/pixelization/palette/48/14.png new file mode 100644 index 0000000..1338c7a Binary files /dev/null and b/media/gallery/pixelization/palette/48/14.png differ diff --git a/media/gallery/pixelization/palette/48/2.png b/media/gallery/pixelization/palette/48/2.png new file mode 100644 index 0000000..2a594ff Binary files /dev/null and b/media/gallery/pixelization/palette/48/2.png differ diff --git a/media/gallery/pixelization/palette/48/41.png b/media/gallery/pixelization/palette/48/41.png new file mode 100644 index 0000000..9c67a3c Binary files /dev/null and b/media/gallery/pixelization/palette/48/41.png differ diff --git a/media/gallery/pixelization/palette/48/8.png b/media/gallery/pixelization/palette/48/8.png new file mode 100644 index 0000000..bbba48a Binary files /dev/null and b/media/gallery/pixelization/palette/48/8.png differ diff --git a/media/gallery/pixelization/palette/64/17.png b/media/gallery/pixelization/palette/64/17.png new file mode 100644 index 0000000..4b6d616 Binary files /dev/null and b/media/gallery/pixelization/palette/64/17.png differ diff --git a/media/gallery/pixelization/palette/64/20.png b/media/gallery/pixelization/palette/64/20.png new file mode 100644 index 0000000..ece6e29 Binary files /dev/null and b/media/gallery/pixelization/palette/64/20.png differ diff --git a/media/gallery/pixelization/palette/64/25.png b/media/gallery/pixelization/palette/64/25.png new file mode 100644 index 0000000..6671345 Binary files /dev/null and b/media/gallery/pixelization/palette/64/25.png differ diff --git a/media/gallery/pixelization/palette/64/46.png b/media/gallery/pixelization/palette/64/46.png new file mode 100644 index 0000000..434eda3 Binary files /dev/null and b/media/gallery/pixelization/palette/64/46.png differ diff --git a/media/gallery/pixelization/palette/64/47.png b/media/gallery/pixelization/palette/64/47.png new file mode 100644 index 0000000..5fca201 Binary files /dev/null and b/media/gallery/pixelization/palette/64/47.png differ diff --git a/static/js/main.a14560b8.js b/static/js/main.077192f1.js similarity index 82% rename from static/js/main.a14560b8.js rename to static/js/main.077192f1.js index 60a929c..43640c5 100644 --- a/static/js/main.a14560b8.js +++ b/static/js/main.077192f1.js @@ -1,5 +1,5 @@ -/*! For license information please see main.a14560b8.js.LICENSE.txt */ -(()=>{var e={270:(e,t,n)=>{"use strict";var r=n(139),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},219:(e,t,n)=>{"use strict";var r=n(763),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},763:(e,t,n)=>{"use strict";e.exports=n(983)},611:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",u="[object Null]",c="[object Object]",d="[object Proxy]",f="[object Undefined]",p=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[i]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[c]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var g="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),b=t&&!t.nodeType&&t,x=b&&e&&!e.nodeType&&e,w=x&&x.exports===b,S=w&&g.process,k=function(){try{var e=x&&x.require&&x.require("util").types;return e||S&&S.binding&&S.binding("util")}catch(t){}}(),C=k&&k.isTypedArray;var E,_,P=Array.prototype,T=Function.prototype,j=Object.prototype,z=y["__core-js_shared__"],A=T.toString,R=j.hasOwnProperty,O=function(){var e=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),M=j.toString,D=A.call(Object),L=RegExp("^"+A.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=w?y.Buffer:void 0,$=y.Symbol,N=y.Uint8Array,F=I?I.allocUnsafe:void 0,B=(E=Object.getPrototypeOf,_=Object,function(e){return E(_(e))}),V=Object.create,W=j.propertyIsEnumerable,U=P.splice,H=$?$.toStringTag:void 0,X=function(){try{var e=ye(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),q=I?I.isBuffer:void 0,Y=Math.max,G=Date.now,K=ye(y,"Map"),Q=ye(Object,"create"),Z=function(){function e(){}return function(t){if(!ze(t))return{};if(V)return V(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var n=this.__data__,r=ae(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(K||ee),string:new J}},te.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return ve(this,e).get(e)},te.prototype.has=function(e){return ve(this,e).has(e)},te.prototype.set=function(e,t){var n=ve(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ne.prototype.clear=function(){this.__data__=new ee,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ee){var r=n.__data__;if(!K||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new te(r)}return n.set(e,t),this.size=n.size,this};var le,ue=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[le?a:++r];if(!1===t(o[s],s,o))break}return e};function ce(e){return null==e?void 0===e?f:u:H&&H in Object(e)?function(e){var t=R.call(e,H),n=e[H];try{e[H]=void 0;var r=!0}catch(i){}var o=M.call(e);r&&(t?e[H]=n:delete e[H]);return o}(e):function(e){return M.call(e)}(e)}function de(e){return Ae(e)&&ce(e)==i}function fe(e){return!(!ze(e)||function(e){return!!O&&O in e}(e))&&(Te(e)?L:p).test(function(e){if(null!=e){try{return A.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function pe(e){if(!ze(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=xe(e),n=[];for(var r in e)("constructor"!=r||!t&&R.call(e,r))&&n.push(r);return n}function he(e,t,n,r,o){e!==t&&ue(t,(function(i,a){if(o||(o=new ne),ze(i))!function(e,t,n,r,o,i,a){var s=we(e,n),l=we(t,n),u=a.get(l);if(u)return void oe(e,n,u);var d=i?i(s,l,n+"",e,t,a):void 0,f=void 0===d;if(f){var p=Ee(l),h=!p&&Pe(l),m=!p&&!h&&Re(l);d=l,p||h||m?Ee(s)?d=s:Ae(g=s)&&_e(g)?d=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ge);function ke(e,t){return e===t||e!==e&&t!==t}var Ce=de(function(){return arguments}())?de:function(e){return Ae(e)&&R.call(e,"callee")&&!W.call(e,"callee")},Ee=Array.isArray;function _e(e){return null!=e&&je(e.length)&&!Te(e)}var Pe=q||function(){return!1};function Te(e){if(!ze(e))return!1;var t=ce(e);return t==s||t==l||t==a||t==d}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ze(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ae(e){return null!=e&&"object"==typeof e}var Re=C?function(e){return function(t){return e(t)}}(C):function(e){return Ae(e)&&je(e.length)&&!!m[ce(e)]};function Oe(e){return _e(e)?re(e,!0):pe(e)}var Me,De=(Me=function(e,t,n,r){he(e,t,n,r)},me((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Me.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!ze(n))return!1;var r=typeof t;return!!("number"==r?_e(n)&&be(t,n.length):"string"==r&&t in n)&&ke(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n{(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};t.r(r),t.d(r,{default:()=>u});const o=n(43);var i=t.n(o);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{const{aspectRatio:t="taller",handle:n=null,handleSize:r=40,hover:a=!1,leftImage:l,leftImageAlt:u="",leftImageCss:c={},leftImageLabel:d=null,onSliderPositionChange:f=()=>{},rightImage:p,rightImageAlt:h="",rightImageCss:m={},rightImageLabel:g=null,skeleton:v=null,sliderLineColor:y="#ffffff",sliderLineWidth:b=2,sliderPositionPercentage:x=.5,vertical:w=!1}=e,S=!w,[k,C]=(0,o.useState)(x),[E,_]=(0,o.useState)(0),[P,T]=(0,o.useState)(0),[j,z]=(0,o.useState)(!1),[A,R]=(0,o.useState)(!1),[O,M]=(0,o.useState)(!1),D=(0,o.useRef)(null),L=(0,o.useRef)(null),I=(0,o.useRef)(null);(0,o.useEffect)((()=>{const e=D.current,t=new ResizeObserver((e=>{let[t,...n]=e;const r=t.target.getBoundingClientRect().width;_(r)}));return t.observe(e),()=>t.disconnect()}),[]),(0,o.useEffect)((()=>(I.current.complete&&z(!0),()=>{z(!1)})),[l]),(0,o.useEffect)((()=>(L.current.complete&&R(!0),()=>{R(!1)})),[p]);const $=A&&j;(0,o.useEffect)((()=>{const e=e=>{const t=e||window.event,n=t.touches?t.touches[0].pageX:t.pageX,r=t.touches?t.touches[0].pageY:t.pageY,o=n-window.pageXOffset,i=r-window.pageYOffset,a=L.current.getBoundingClientRect();let s=S?o-a.left:i-a.top;const l=0+b/2,u=S?E-b/2:P-b/2;su&&(s=u),C(S?s/E:s/P),f&&f(S?s/E:s/P)},n=t=>{M(!0),"touches"in t||t.preventDefault(),e(t),window.addEventListener("mousemove",e),window.addEventListener("touchmove",e)},r=()=>{M(!1),window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",e)},o=D.current;if($){o.addEventListener("touchstart",n),window.addEventListener("touchend",r),a?(o.addEventListener("mousemove",e),o.addEventListener("mouseleave",r)):(o.addEventListener("mousedown",n),window.addEventListener("mouseup",r));const i=I.current.naturalHeight/I.current.naturalWidth,s=L.current.naturalHeight/L.current.naturalWidth,l="taller"===t?Math.max(i,s):Math.min(i,s);T(E*l)}return()=>{o.removeEventListener("touchstart",n),window.removeEventListener("touchend",r),o.removeEventListener("mousemove",e),o.removeEventListener("mouseleave",r),o.removeEventListener("mousedown",n),window.removeEventListener("mouseup",r),window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",e)}}),[$,t,P,E,S,a,b,w]);const N={container:{boxSizing:"border-box",position:"relative",width:"100%",height:`${P}px`,overflow:"hidden"},rightImage:s({clip:S?`rect(auto, auto, auto, ${E*k}px)`:`rect(${P*k}px, auto, auto, auto)`,display:"block",height:"100%",objectFit:"cover",position:"absolute",width:"100%"},m),leftImage:s({clip:S?`rect(auto, ${E*k}px, auto, auto)`:`rect(auto, auto, ${P*k}px, auto)`,display:"block",height:"100%",objectFit:"cover",position:"absolute",width:"100%"},c),slider:{alignItems:"center",cursor:!a&&S?"ew-resize":!a&&!S&&"ns-resize",display:"flex",flexDirection:S?"column":"row",height:S?"100%":`${r}px`,justifyContent:"center",left:S?E*k-r/2+"px":0,position:"absolute",top:S?0:P*k-r/2+"px",width:S?`${r}px`:"100%"},line:{background:y,boxShadow:"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)",flex:"0 1 auto",height:S?"100%":`${b}px`,width:S?`${b}px`:"100%"},handleCustom:{alignItems:"center",boxSizing:"border-box",display:"flex",flex:"1 0 auto",height:"auto",justifyContent:"center",width:"auto"},handleDefault:{alignItems:"center",border:`${b}px solid ${y}`,borderRadius:"100%",boxShadow:"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)",boxSizing:"border-box",display:"flex",flex:"1 0 auto",height:`${r}px`,justifyContent:"center",width:`${r}px`,transform:S?"none":"rotate(90deg)"},leftArrow:{border:`inset ${.15*r}px rgba(0,0,0,0)`,borderRight:`${.15*r}px solid ${y}`,height:"0px",marginLeft:`-${.25*r}px`,marginRight:.25*r+"px",width:"0px"},rightArrow:{border:`inset ${.15*r}px rgba(0,0,0,0)`,borderLeft:`${.15*r}px solid ${y}`,height:"0px",marginRight:`-${.25*r}px`,width:"0px"},leftLabel:{background:"rgba(0, 0, 0, 0.5)",color:"white",left:S?"5%":"50%",opacity:O?0:1,padding:"10px 20px",position:"absolute",top:S?"50%":"3%",transform:S?"translate(0,-50%)":"translate(-50%, 0)",transition:"opacity 0.1s ease-out"},rightLabel:{background:"rgba(0, 0, 0, 0.5)",color:"white",opacity:O?0:1,padding:"10px 20px",position:"absolute",left:S?null:"50%",right:S?"5%":null,top:S?"50%":null,bottom:S?null:"3%",transform:S?"translate(0,-50%)":"translate(-50%, 0)",transition:"opacity 0.1s ease-out"},leftLabelContainer:{clip:S?`rect(auto, ${E*k}px, auto, auto)`:`rect(auto, auto, ${P*k}px, auto)`,height:"100%",position:"absolute",width:"100%"},rightLabelContainer:{clip:S?`rect(auto, auto, auto, ${E*k}px)`:`rect(${P*k}px, auto, auto, auto)`,height:"100%",position:"absolute",width:"100%"}};return i().createElement(i().Fragment,null,v&&!$&&i().createElement("div",{style:s({},N.container)},v),i().createElement("div",{style:s(s({},N.container),{},{display:$?"block":"none"}),ref:D,"data-testid":"container"},i().createElement("img",{onLoad:()=>R(!0),alt:h,"data-testid":"right-image",ref:L,src:p,style:N.rightImage}),i().createElement("img",{onLoad:()=>z(!0),alt:u,"data-testid":"left-image",ref:I,src:l,style:N.leftImage}),i().createElement("div",{style:N.slider},i().createElement("div",{style:N.line}),n?i().createElement("div",{style:N.handleCustom},n):i().createElement("div",{style:N.handleDefault},i().createElement("div",{style:N.leftArrow}),i().createElement("div",{style:N.rightArrow})),i().createElement("div",{style:N.line})),d&&i().createElement("div",{style:N.leftLabelContainer},i().createElement("div",{style:N.leftLabel},d)),g&&i().createElement("div",{style:N.rightLabelContainer},i().createElement("div",{style:N.rightLabel},g))))};e.exports=r})()},730:(e,t,n)=>{"use strict";var r=n(43),o=n(853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n