photos/js/photos-node_modules_blurhas...

2 lines
18 KiB
JavaScript
Raw Permalink Normal View History

"use strict";(self.webpackChunkphotos=self.webpackChunkphotos||[]).push([["node_modules_blurhash_dist_esm_index_js-node_modules_vue-material-design-icons_PackageVariant-6bf9ec"],{43985:(t,e,i)=>{i.d(e,{Jx:()=>p});var n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],l=t=>{let e=0;for(let i=0;i<t.length;i++){let l=t[i];e=83*e+n.indexOf(l)}return e},a=t=>{let e=t/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},o=t=>{let e=Math.max(0,Math.min(1,t));return e<=.0031308?Math.trunc(12.92*e*255+.5):Math.trunc(255*(1.055*Math.pow(e,.4166666666666667)-.055)+.5)},s=(t,e)=>(t=>t<0?-1:1)(t)*Math.pow(Math.abs(t),e),r=class extends Error{constructor(t){super(t),this.name="ValidationError",this.message=t}},c=t=>{if(!t||t.length<6)throw new r("The blurhash string must be at least 6 characters");let e=l(t[0]),i=Math.floor(e/9)+1,n=e%9+1;if(t.length!==4+2*n*i)throw new r(`blurhash length mismatch: length is ${t.length} but it should be ${4+2*n*i}`)},d=t=>{let e=t>>8&255,i=255&t;return[a(t>>16),a(e),a(i)]},A=(t,e)=>{let i=Math.floor(t/361),n=Math.floor(t/19)%19,l=t%19;return[s((i-9)/9,2)*e,s((n-9)/9,2)*e,s((l-9)/9,2)*e]},p=(t,e,i,n)=>{c(t),n|=1;let a=l(t[0]),s=Math.floor(a/9)+1,r=a%9+1,p=(l(t[1])+1)/166,h=new Array(r*s);for(let e=0;e<h.length;e++)if(0===e){let i=l(t.substring(2,6));h[e]=d(i)}else{let i=l(t.substring(4+2*e,6+2*e));h[e]=A(i,p*n)}let f=4*e,u=new Uint8ClampedArray(f*i);for(let t=0;t<i;t++)for(let n=0;n<e;n++){let l=0,a=0,c=0;for(let o=0;o<s;o++)for(let s=0;s<r;s++){let d=Math.cos(Math.PI*n*s/e)*Math.cos(Math.PI*t*o/i),A=h[s+o*r];l+=A[0]*d,a+=A[1]*d,c+=A[2]*d}let d=o(l),A=o(a),p=o(c);u[4*n+0+t*f]=d,u[4*n+1+t*f]=A,u[4*n+2+t*f]=p,u[4*n+3+t*f]=255}return u}},34858:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(87537),l=i.n(n),a=i(23645),o=i.n(a)()(l());o.push([t.id,".face[data-v-37dd8d11]{display:flex;flex-direction:column}.face__empty[data-v-37dd8d11]{display:flex;flex-direction:column;align-items:center}.face__empty__button[data-v-37dd8d11]{margin-top:32px}.face__header[data-v-37dd8d11]{display:flex;min-height:60px;align-items:center;justify-content:space-between;position:-webkit-sticky;position:sticky;z-index:3;background:var(--color-main-background);padding:0 64px}@media only screen and (max-width: 1020px){.face__header[data-v-37dd8d11]{padding:0;padding-left:64px}}.face__header__left[data-v-37dd8d11]{height:100%;display:flex;align-items:center}.face__header__title[data-v-37dd8d11]{margin-left:10px}.face__header__title h2[data-v-37dd8d11]{margin-bottom:0}.face__header__loader[data-v-37dd8d11]{margin-left:32px}.face__header__actions[data-v-37dd8d11]{display:flex;align-items:center}.face__header__actions button[data-v-37dd8d11]{margin-left:16px}.face__photos[data-v-37dd8d11]{margin-top:16px;height:100%;min-height:0;padding:0 64px}@media only screen and (max-width: 1020px){.face__photos[data-v-37dd8d11]{padding:0}}.empty-content-with-illustration[data-v-37dd8d11] .empty-content__icon{width:200px;height:200px}.empty-content-with-illustration[data-v-37dd8d11] .empty-content__icon svg{width:200px;height:200px}.rename-form[data-v-37dd8d11]{display:flex;flex-direction:row;align-items:center;height:70px;padding:16px}.rename-form input[data-v-37dd8d11]{width:100%}","",{version:3,sources:["webpack://./src/mixins/FaceContent.scss"],names:[],mappings:"AAIA,uBACC,YAAA,CACA,qBAAA,CAEA,8BACC,YAAA,CACA,qBAAA,CACA,kBAAA,CAEA,sCACC,eAAA,CAKF,+BACC,YAAA,CACA,eAAA,CACA,kBAAA,CACA,6BAAA,CACA,uBAAA,CAAA,eAAA,CACA,SAAA,CACA,uCAAA,CACA,cAAA,CAEA,2CAVD,+BAWE,SAAA,CACA,iBAAA,CAAA,CAGD,qCACC,WAAA,CACA,YAAA,CACA,kBAAA,CAGD,sCACC,gBAAA,CACA,yCACC,eAAA,CAIF,uCACC,gBAAA,CAGD,wCACC,YAAA,CACA,kBAAA,CAEA,+CACC,gBAAA,CAKH,+BACC,eAAA,CACA,WAAA,CACA,YAAA,CACA,cAAA,CAEA,2CAND,+BAOE,SAAA,CAAA,CAKH,uEACC,WAAA,CACA,YAAA,CAEA,2EACC,WAAA,CACA,YAAA,CAIF,8BACC,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,
//# sourceMappingURL=photos-node_modules_blurhash_dist_esm_index_js-node_modules_vue-material-design-icons_PackageVariant-6bf9ec.js.map?v=a001e7f2315245bd1091