1import{g as W,c as J}from"./index-C2nMzIGe.js";function Y(h,F){for(var f=0;f<F.length;f++){const g=F[f];if(typeof g!="string"&&!Array.isArray(g)){for(const p in g)if(p!=="default"&&!(p in h)){const v=Object.getOwnPropertyDescriptor(g,p);v&&Object.defineProperty(h,p,v.get?v:{enumerable:!0,get:()=>g[p]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var A={exports:{}};(function(h,F){(function(){var f=function(e){if(e instanceof f)return e;if(!(this instanceof f))return new f(e);this.EXIFwrapped=e};h.exports&&(F=h.exports=f),F.EXIF=f;var g=f.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"E
1xposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},p=f.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},v=f.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},G=f.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},C=f.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function m(e){return!!e.exifdata}function b(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/mi)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var a=atob(e),s=a.length,r=new ArrayBuffer(s),o=new Uint8Array(r),i=0;i<s;
1i++)o[i]=a.charCodeAt(i);return r}function R(e,t){var a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="blob",a.onload=function(s){(this.status==200||this.status===0)&&t(this.response)},a.send()}function B(e,t){function a(i){var u=w(i);e.exifdata=u||{};var x=M(i);if(e.iptcdata=x||{},f.isXmpEnabled){var l=X(i);e.xmpdata=l||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src)){var s=b(e.src);a(s)}else if(/^blob\:/i.test(e.src)){var r=new FileReader;r.onload=function(i){a(i.target.result)},R(e.src,function(i){r.readAsArrayBuffer(i)})}else{var o=new XMLHttpRequest;o.onload=function(){if(this.status==200||this.status===0)a(o.response);else throw"Could not load image";o=null},o.open("GET",e.src,!0),o.responseType="arraybuffer",o.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var r=new FileReader;r.onload=function(u){a(u.target.result)},r.readAsArrayBuffer(e)}}function w(e){var t=new DataView(e);if(t.getUint8(0)!=255||t.getUint8(1)!=216)return!1;for(var a=2,s=e.byteLength,r;a<s;){if(t.getUint8(a)!=255)return!1;if(r=t.getUint8(a+1),r==225)return V(t,a+4,t.getUint16(a+2)-2);a+=2+t.getUint16(a+2)}}function M(e){var t=new DataView(e);if(t.getUint8(0)!=255||t.getUint8(1)!=216)return!1;for(var a=2,s=e.byteLength,r=function(x,l){return x.getUint8(l)===56&&x.getUint8(l+1)===66&&x.getUint8(l+2)===73&&x.getUint8(l+3)===77&&x.getUint8(l+4)===4&&x.getUint8(l+5)===4};a<s;){if(r(t,a)){var o=t.getUint8(a+7);o%2!==0&&(o+=1),o===0&&(o=4);var i=a+8+o,u=t.getUint16(a+6+o);return E(e,i,u)}a++}}var T={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function E(e,t,a){for(var s=new DataView(e),r={},o,i,u,x,l=t;l<t+a;)s.getUint8(l)===28&&s.getUint8(l+1)===2&&(x=s.getUint8(l+2),x in T&&(u=s.getInt16(l+3),i=T[x],o=D(s,l+5,u),r.hasOwnProperty(i)?r[i]instanceof Array?r[i].push(o):r[i]=[r[i],o]:r[i]=o)),l++;return r}function y(e,t,a,s,r){var o=e.getUint16(a,!r),i={},u,x,l;for(l=0;l<o;l++)u=a+l*12+2,x=s[e.getUint16(u,!r)],i[x]=O(e,u,t,a,r);return i}function O(e,t,a,s,r){var o=e.getUint16(t+2,!r),i=e.getUint32(t+4,!r),u=e.getUint32(t+8,!r)+a,x,l,d,c,S,P;switch(o){case 1:case 7:if(i==1)return e.getUint8(t+8,!r);for(x=i>4?u:t+8,l=[],c=0;c<i;c++)l[c]=e.getUint8(x+c);return l;case 2:return x=i>4?u:t+8,D(e,x,i-1);case 3:if(i==1)return e.getUint16(t+8,!r);for(x=i>2?u:t+8,l=[],c=0;c<i;c++)l[c]=e.getUint16(x+2*c,!r);return l;case 4:if(i==1)return e.getUint32(t+8,!r);for(l=[],c=0;c<i;c++)l[c]=e.getUint32(u+4*c,!r);return l;case 5:if(i==1)return S=e.getUint32(u,!r),P=e.getUint32(u+4,!r),d=new Number(S/P),d.numerator=S,d.denominator=P,d;for(l=[],c=0;c<i;c++)S=e.getUint32(u+8*c,!r),P=e.getUint32(u+4+8*c,!r),l[c]=new Number(S/P),l[c].numerator=S,l[c].denominator=P;return l;case 9:if(i==1)return e.getInt32(t+8,!r);for(l=[],c=0;c<i;c++)l[c]=e.getInt32(u+4*c,!r);return l;case 10:if(i==1)return e.getInt32(u,!r)/e.getInt32(u+4,!r);for(l=[],c=0;c<i;c++)l[c]=e.getInt32(u+8*c,!r)/e.getInt32(u+4+8*c,!r);return l}}function L(e,t,a){var s=e.getUint16(t,!a);return e.getUint32(t+2+s*12,!a)}function k(e,t,a,s){var r=L(e,t+a,s);if(r){if(r>e.byteLength)return{}}else return{};var o=y(e,t,t+r,G,s);if(o.Compression)switch(o.Compression){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var i=t+o.JpegIFOffset,u=o.JpegIFByteCount;o.blob=new Blob([new Uint8Array(e.buffer,i,u)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o.Compression)}else o.PhotometricInterpretation==2&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}function D(e,t,a){var s="";for(n=t;n<t+a;n++)s+=String.fromCharCode(e.getUint8(n));return s}function V(e,t){if(D(e,t,4)!="Exif")return!1;var a,s,r,o,i,u=t+6;if(e.getUint16(u)==18761)a=!1;else if(e.getUint16(u)==19789)a=!0;else return!1;if(e.getUint16(u+2,!a)!=42)return!1;var x=e.getUint32(u+4,!a);if(x<8)return!1;if(s=y(e,u,u+x,p,a),s.ExifIFDPointer){o=y(e,u,u+s.ExifIFDPointer,g,a);for(r in o){switch(r){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":o[r]=C[r][o[r]];break;case"ExifVersion":case"FlashpixVersion":o[r]=String.fromCharCode(o[r][0],o[r][1],o[r][2],o[r][3]);break;case"ComponentsConfiguration":o[r]=C.Components[o[r][0]]+C.Components[o[r][1]]+C.Components[o[r][2]]+C.Components[o[r][3]];break}s[r]=o[r]}}if(s.GPSInfoIFDPointer){i=y(e,u,u+s.GPSInfoIFDPointer,v,a);for(r in i){switch(r){case"GPSVersionID":i[r]=i[r][0]+"."+i[r][1]+"."+i[r][2]+"."+i[r][3];break}s[r]=i[r]}}return s.thumbnail=k(e,u,x,a),s}function X(e){if("DOMParser"in self){var t=new DataView(e);if(t.getUint8(0)!=255||t.getUint8(1)!=216)return!1;for(var a=2,s=e.byteLength,r=new DOMParser;a<s-4;)if(D(t,a,4)=="http"){var o=a-1,i=t.getUint16(a-2)-1,u=D(t,o,i),x=u.indexOf("xmpmeta>")+8;u=u.substring(u.indexOf("<x:xmpmeta"),x);var l=u.indexOf("x:xmpmeta")+10;u=u.slice(0,l)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.
10/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+u.slice(l);var d=r.parseFromString(u,"text/xml");return N(d)}else a++}}function I(e){var t={};if(e.nodeType==1){if(e.attributes.length>0){t["@attributes"]={};for(var a=0;a<e.attributes.length;a++){var s=e.attributes.item(a);t["@attributes"][s.nodeName]=s.nodeValue}}}else if(e.nodeType==3)return e.nodeValue;if(e.hasChildNodes())for(var r=0;r<e.childNodes.length;r++){var o=e.childNodes.item(r),i=o.nodeName;if(t[i]==null)t[i]=I(o);else{if(t[i].push==null){var u=t[i];t[i]=[],t[i].push(u)}t[i].push(I(o))}}return t}function N(e){try{var t={};if(e.children.length>0)for(var a=0;a<e.children.length;a++){var s=e.children.item(a),r=s.attributes;for(var o in r){var i=r[o],u=i.nodeName,x=i.nodeValue;u!==void 0&&(t[u]=x)}var l=s.nodeName;if(typeof t[l]>"u")t[l]=I(s);else{if(typeof t[l].push>"u"){var d=t[l];t[l]=[],t[l].push(d)}t[l].push(I(s))}}else t=e.textContent;return t}catch(c){console.log(c.message)}}f.enableXmp=function(){f.isXmpEnabled=!0},f.disableXmp=function(){f.isXmpEnabled=!1},f.getData=function(e,t){return(self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete?!1:(m(e)?t&&t.call(e):B(e,t),!0)},f.getTag=function(e,t){if(m(e))return e.exifdata[t]},f.getIptcTag=function(e,t){if(m(e))return e.iptcdata[t]},f.getAllTags=function(e){if(!m(e))return{};var t,a=e.exifdata,s={};for(t in a)a.hasOwnProperty(t)&&(s[t]=a[t]);return s},f.getAllIptcTags=function(e){if(!m(e))return{};var t,a=e.iptcdata,s={};for(t in a)a.hasOwnProperty(t)&&(s[t]=a[t]);return s},f.pretty=function(e){if(!m(e))return"";var t,a=e.exifdata,s="";for(t in a)a.hasOwnProperty(t)&&(typeof a[t]=="object"?a[t]instanceof Number?s+=t+" : "+a[t]+" ["+a[t].numerator+"/"+a[t].denominator+`]\r 2`:s+=t+" : ["+a[t].length+` values]\r 3`:s+=t+" : "+a[t]+`\r 4`);return s},f.readFromBinaryFile=function(e){return w(e)}}).call(J)})(A,A.exports);var U=A.exports;const H=W(U),_=Y({__proto__:null,default:H},[U]);export{_ as e}; 5//# sourceMappingURL=exif-CzlD5kfj.js.map
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.