function xml2json_translator(){var n={err:function(n){alert("Error: "+n)},toObj:function(t,i){var u,e,r;if(t.nodeType==9)return n.toObj(t.documentElement,i);if(u={},!i||i instanceof Array)return t.nodeType==1?u[t.nodeName]=n.toObj(t,u):n.err("unhandled node type: "+t.nodeType),u;if(t.nodeType==1){if(t.attributes.length)for(e=0;e<t.attributes.length;e++)i[t.nodeName+"@"+t.attributes[e].nodeName]=t.attributes[e].nodeValue;if(t.firstChild){var s=0,o=0,h=!1,f=!1,c={};for(r=t.firstChild;r;r=r.nextSibling)r.nodeType==1?(h=!0,c[r.nodeName]=c[r.nodeName]?c[r.nodeName]+1:1,c[r.nodeName]>1&&(f=!0)):r.nodeType==3&&r.nodeValue.match(/[^ \f\n\r\t\v]/)?s++:r.nodeType==4&&o++;if(h&&s&&(f=!0),h&&o&&(f=!0),s&&o&&(f=!0),o>1&&(f=!0),h&&!f)for(n.removeWhite(t),r=t.firstChild;r;r=r.nextSibling)r.nodeType==3?u["#text"]=n.escape(r.nodeValue):r.nodeType==4?u["#cdata"]=n.escape(r.nodeValue):u[r.nodeName]?u[r.nodeName]instanceof Array?u[r.nodeName][u[r.nodeName].length]=n.toObj(r,u):u[r.nodeName]=[u[r.nodeName],n.toObj(r,u)]:u[r.nodeName]=n.toObj(r,u);else if(f)for(u=[],n.removeWhite(t),r=t.firstChild;r;r=r.nextSibling)u[u.length]=r.nodeType==3?n.escape(r.nodeValue):r.nodeType==4?{"#cdata":n.escape(r.nodeValue)}:n.toObj(r,u);else s?u=n.escape(n.innerXml(t)):o&&(n.removeWhite(t),u["#cdata"]=n.escape(t.firstChild.nodeValue))}t.firstChild||(u=null)}else n.err("unhandled node type: "+t.nodeType);return u},toJson:function(t,i){var u="",o,e,r,f;if(t instanceof Array){for(r=0,o=t.length;r<o;r++)e="",typeof t[r]=="string"&&(e=i+"\t"),t[r]=e+n.toJson(t[r],i+"\t");u+="["+(t.length>1?"\n"+t.join(",\n")+"\n"+i:t.join(""))+"]"}else if(t==null)u+="null";else if(typeof t=="string")u+='"'+t.toString()+'"';else if(typeof t=="object"){u+=i+"{";r=0;for(f in t)r++;for(f in t)u+="\n"+i+'\t"'+f+'":'+n.toJson(t[f],i+"\t"),u+=r>1?",":"\n"+i,r--;u+="}"}else u+=t.toString();return u},innerXml:function(n){var i="",r,t;if("innerHTML"in n)i=n.innerHTML;else for(r=function(n){var t="",i,u;if(n.nodeType==1){for(t+="<"+n.nodeName,i=0;i<n.attributes.length;i++)t+=" "+n.attributes[i].nodeName+'="'+(n.attributes[i].nodeValue||"").toString()+'"';if(n.firstChild){for(t+=">",u=n.firstChild;u;u=u.nextSibling)t+=r(u);t+="<\/"+n.nodeName+">"}else t+="/>"}else n.nodeType==3?t+=n.nodeValue:n.nodeType==4&&(t+="<![CDATA["+n.nodeValue+"]\]>");return t},t=n.firstChild;t;t=t.nextSibling)i+=r(t);return i},escape:function(n){return n.replace(/[\\]/g,"\\\\").replace(/[\"]/g,'\\"').replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r")},removeWhite:function(t){var i,r;for(t.normalize(),i=t.firstChild;i;)i.nodeType==3?i.nodeValue.match(/[^ \f\n\r\t\v]/)?i=i.nextSibling:(r=i.nextSibling,t.removeChild(i),i=r):i.nodeType==1?(n.removeWhite(i),i=i.nextSibling):i=i.nextSibling;return t},parseXml:function(n){var t=require("libxml");return t.parseFromString(n)}};return n}function xml2json(n,t){var i=xml2json_translator(),u,r;return n.nodeType==9&&(n=n.documentElement),u=i.toObj(i.removeWhite(n)),r=i.toJson(u,""),t?r.replace(/\t/g,t):r.replace(/\t|\n/g,"")}typeof module!="undefined"&&(module.exports=xml2json_translator()),function(){function r(n){return!!n.exifdata}function y(n,t){var i;t=t||n.match(/^data\:([^\;]+)\;base64,/mi)[1]||"";n=n.replace(/^data\:([^\;]+)\;base64,/gmi,"");var r=atob(n),u=r.length,f=new ArrayBuffer(u),e=new Uint8Array(f);for(i=0;i<u;i++)e[i]=r.charCodeAt(i);return f}function p(n,t){var i=new XMLHttpRequest;i.open("GET",n,!0);i.responseType="blob";i.onload=function(){(this.status==200||this.status===0)&&t(this.response)};i.send()}function w(n,t){function f(i){var r=s(i),u=b(i),f=it(i);n.exifdata=r||{};n.iptcdata=u||{};n.xmpdata=f||{};t&&t.call(n)}var e,r,u;n.src?/^data\:/i.test(n.src)?(e=y(n.src),f(e)):/^blob\:/i.test(n.src)?(u=new FileReader,u.onload=function(n){f(n.target.result)},p(n.src,function(n){u.readAsArrayBuffer(n)})):(r=new XMLHttpRequest,r.onload=function(){if(this.status==200||this.status===0)f(r.response);else throw"Could not load image";r=null},r.open("GET",n.src,!0),r.responseType="arraybuffer",r.send(null)):self.FileReader&&(n instanceof self.Blob||n instanceof self.File)&&(u=new FileReader,u.onload=function(n){i&&console.log("Got file of length "+n.target.result.byteLength);f(n.target.result)},u.readAsArrayBuffer(n))}function s(n){var r=new DataView(n),t,f,u;if(i&&console.log("Got file of length "+n.byteLength),r.getUint8(0)!=255||r.getUint8(1)!=216)return i&&console.log("Not a valid JPEG"),!1;for(t=2,f=n.byteLength;t<f;){if(r.getUint8(t)!=255)return i&&console.log("Not a valid marker at offset "+t+", found: "+r.getUint8(t)),!1;if(u=r.getUint8(t+1),i&&console.log(u),u==225)return i&&console.log("Found 0xFFE1 marker"),tt(r,t+4,r.getUint16(t+2)-2);t+=2+r.getUint16(t+2)}}function b(n){var u=new DataView(n),t,f,e;if(i&&console.log("Got file of length "+n.byteLength),u.getUint8(0)!=255||u.getUint8(1)!=216)return i&&console.log("Not a valid JPEG"),!1;for(var r=2,o=n.byteLength,s=function(n,t){return n.getUint8(t)===56&&n.getUint8(t+1)===66&&n.getUint8(t+2)===73&&n.getUint8(t+3)===77&&n.getUint8(t+4)===4&&n.getUint8(t+5)===4};r<o;){if(s(u,r))return t=u.getUint8(r+7),t%2!=0&&(t+=1),t===0&&(t=4),f=r+8+t,e=u.getUint16(r+6+t),k(n,f,e);r++}}function k(n,t,i){for(var s=new DataView(n),r={},h,f,c,l,a,e=t;e<t+i;)s.getUint8(e)===28&&s.getUint8(e+1)===2&&(l=s.getUint8(e+2),l in o&&(c=s.getInt16(e+3),a=c+5,f=o[l],h=u(s,e+5,c),r.hasOwnProperty(f)?r[f]instanceof Array?r[f].push(h):r[f]=[r[f],h]:r[f]=h)),e++;return r}function e(n,t,r,u,f){for(var c=n.getUint16(r,!f),h={},e,s,o=0;o<c;o++)e=r+o*12+2,s=u[n.getUint16(e,!f)],!s&&i&&console.log("Unknown tag: "+n.getUint16(e,!f)),h[s]=d(n,e,t,r,f);return h}function d(n,t,i,r,f){var y=n.getUint16(t+2,!f),s=n.getUint32(t+4,!f),h=n.getUint32(t+8,!f)+i,c,o,v,e,l,a;switch(y){case 1:case 7:if(s==1)return n.getUint8(t+8,!f);for(c=s>4?h:t+8,o=[],e=0;e<s;e++)o[e]=n.getUint8(c+e);return o;case 2:return c=s>4?h:t+8,u(n,c,s-1);case 3:if(s==1)return n.getUint16(t+8,!f);for(c=s>2?h:t+8,o=[],e=0;e<s;e++)o[e]=n.getUint16(c+2*e,!f);return o;case 4:if(s==1)return n.getUint32(t+8,!f);for(o=[],e=0;e<s;e++)o[e]=n.getUint32(h+4*e,!f);return o;case 5:if(s==1)return l=n.getUint32(h,!f),a=n.getUint32(h+4,!f),v=new Number(l/a),v.numerator=l,v.denominator=a,v;for(o=[],e=0;e<s;e++)l=n.getUint32(h+8*e,!f),a=n.getUint32(h+4+8*e,!f),o[e]=new Number(l/a),o[e].numerator=l,o[e].denominator=a;return o;case 9:if(s==1)return n.getInt32(t+8,!f);for(o=[],e=0;e<s;e++)o[e]=n.getInt32(h+4*e,!f);return o;case 10:if(s==1)return n.getInt32(h,!f)/n.getInt32(h+4,!f);for(o=[],e=0;e<s;e++)o[e]=n.getInt32(h+8*e,!f)/n.getInt32(h+4+8*e,!f);return o}}function g(n,t,i){var r=n.getUint16(t,!i);return n.getUint32(t+2+r*12,!i)}function nt(n,t,i,r){var f=g(n,t+i,r),u,o,s;if(f){if(f>n.byteLength)return{}}else return{};if(u=e(n,t,t+f,v,r),u.Compression)switch(u.Compression){case 6:u.JpegIFOffset&&u.JpegIFByteCount&&(o=t+u.JpegIFOffset,s=u.JpegIFByteCount,u.blob=new Blob([new Uint8Array(n.buffer,o,s)],{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'",u.Compression)}else u.PhotometricInterpretation==2&&console.log("Thumbnail image format is RGB, which is not implemented.");return u}function u(t,i,r){var u="";for(n=i;n<i+r;n++)u+=String.fromCharCode(t.getUint8(n));return u}function tt(n,t){var h,v,r,o,y,s,p;if(u(n,t,4)!="Exif")return i&&console.log("Not valid EXIF data! "+u(n,t,4)),!1;if(s=t+6,n.getUint16(s)==18761)h=!1;else if(n.getUint16(s)==19789)h=!0;else return i&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;if(n.getUint16(s+2,!h)!=42)return i&&console.log("Not valid TIFF data! (no 0x002A)"),!1;if(p=n.getUint32(s+4,!h),p<8)return i&&console.log("Not valid TIFF data! (First offset less than 8)",n.getUint32(s+4,!h)),!1;if(v=e(n,s,s+p,l,h),v.ExifIFDPointer){o=e(n,s,s+v.ExifIFDPointer,c,h);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]=f[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]=f.Components[o[r][0]]+f.Components[o[r][1]]+f.Components[o[r][2]]+f.Components[o[r][3]]}v[r]=o[r]}}if(v.GPSInfoIFDPointer){y=e(n,s,s+v.GPSInfoIFDPointer,a,h);for(r in y){switch(r){case"GPSVersionID":y[r]=y[r][0]+"."+y[r][1]+"."+y[r][2]+"."+y[r][3]}v[r]=y[r]}}return v.thumbnail=nt(n,s,p,h),v}function it(n){var r,e,o;if("DOMParser"in self){if(r=new DataView(n),i&&console.log("Got file of length "+n.byteLength),r.getUint8(0)!=255||r.getUint8(1)!=216)return i&&console.log("Not a valid JPEG"),!1;for(var f=2,s=n.byteLength,h=new DOMParser;f<s-4;){if(u(r,f,4)=="http"){var c=f-1,l=r.getUint16(f-2)-1,t=u(r,c,l),a=t.indexOf("xmpmeta>")+8;return t=t.substring(t.indexOf("<x:xmpmeta"),a),e=t.indexOf("x:xmpmeta")+10,t=t.slice(0,e)+'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.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+t.slice(e),o=h.parseFromString(t,"text/xml"),rt(o)}f++}}}function rt(n){var t,u,r,f,e,i,h;try{if(t={},n.children.length>0)for(u=0;u<n.children.length;u++){r=n.children.item(u);f=r.attributes;for(e in f){var o=f[e],s=o.nodeName,c=o.nodeValue;s!==undefined&&(t[s]=c)}i=r.nodeName;typeof t[i]=="undefined"?t[i]=xml2json(r):(typeof t[i].push=="undefined"&&(h=t[i],t[i]=[],t[i].push(h)),t[i].push(xml2json(r)))}else t=n.textContent;return t}catch(l){console.log(l.message)}}var i=!1,h=this,t=function(n){if(n instanceof t)return n;if(!(this instanceof t))return new t(n);this.EXIFwrapped=n},o;typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=t),exports.EXIF=t):h.EXIF=t;var c=t.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:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},l=t.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"},a=t.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"},v=t.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"},f=t.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"}};o={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};t.getData=function(n,t){return(self.Image&&n instanceof self.Image||self.HTMLImageElement&&n instanceof self.HTMLImageElement)&&!n.complete?!1:(r(n)?t&&t.call(n):w(n,t),!0)};t.getTag=function(n,t){if(r(n))return n.exifdata[t]};t.getIptcTag=function(n,t){if(r(n))return n.iptcdata[t]};t.getAllTags=function(n){if(!r(n))return{};var t,i=n.exifdata,u={};for(t in i)i.hasOwnProperty(t)&&(u[t]=i[t]);return u};t.getAllIptcTags=function(n){if(!r(n))return{};var t,i=n.iptcdata,u={};for(t in i)i.hasOwnProperty(t)&&(u[t]=i[t]);return u};t.pretty=function(n){if(!r(n))return"";var t,i=n.exifdata,u="";for(t in i)i.hasOwnProperty(t)&&(u+=typeof i[t]=="object"?i[t]instanceof Number?t+" : "+i[t]+" ["+i[t].numerator+"/"+i[t].denominator+"]\r\n":t+" : ["+i[t].length+" values]\r\n":t+" : "+i[t]+"\r\n");return u};t.readFromBinaryFile=function(n){return s(n)};typeof define=="function"&&define.amd&&define("exif-js",[],function(){return t})}.call(this),function(n,t,i,r){"use strict";t(function(){t(r).ready(function(){function c(){t.ajax(f.data("url"),{type:"GET"}).done(function(n){var i=t(n).css("opacity",0);f.html(i);i.animate({opacity:1})}).error(function(){f.append(n.noticeDanger("Unable to load albums"));s.button("reset")})}function v(){var i=t("<table />").addClass("table table-striped table-bordered table-condensed"),r=EXIF.getData(l[0],function(){var r=EXIF.getAllTags(this),f=_.size(r);if(f<=0){t(".modal-body",u).html(n.alertDanger("No EXIF data for image"));return}_.each(r,function(n,r){if(typeof n!="undefined"&&n!==null&&typeof r!="undefined"&&r!==null&&r!=="undefined"){if(n instanceof Number)n=n+" ("+n.numerator+"/"+n.denominator+")";else if(typeof n=="object"){var u=_.size(n);u>10&&(n=u+" values")}n=n.toString();i.append(t("<tr />").append(t("<td />").addClass("text-semi-bold").text(r)).append(t("<td />").text(n)))}});t(".modal-body",u).html(i)});r||t(".modal-body",u).html(n.alertDanger("No EXIF data for image"))}var a=i.plyr||{},s,f,l,u;a.setup({iconUrl:"/Assets/css/plyr/plyr.svg"});var r=t(".js_Like"),e=t(".js_LikeCount"),h=t(".js_LikeText"),o=!1;r.on("click",function(){var i=r.data("url"),n=parseInt(e.data("like-count"));return o?!1:(r.html(t("<i><\/i>").addClass("fa fa-refresh fa-spin fa-fw")),o=!0,t.ajax(i,{type:"POST"}).done(function(i){i.success&&setTimeout(function(){r.toggleClass("liked",i.liked);n=i.liked?n+1:n-1;i.liked?(r.html(t("<i><\/i>").addClass("fa fa-star fa-fw")),e.data("like-count",n).text(n)):(r.html(t("<i><\/i>").addClass("fa fa-star-o fa-fw")),e.data("like-count",n).text(n));n===1?h.text("like"):h.text("likes")},750)}).always(function(){setTimeout(function(){o=!1},750)}),!1)});s=t(".js_ViewAllAlbums");f=t(".js_AssociatedAlbumsContainer");s.on("click",function(){return c(),!1});t(".js_AlbumModal").on("hide.bs.modal",function(){c()});l=t(".js_ExifImage");u=t(".js_ExifModal");u.on("show.bs.modal",function(){v()})})})}(window.framework=window.framework||{},window.jQuery,window,document)