UNPKG

kara-module-downloader

Version:

kara module download

2 lines 57.7 kB
module.exports=function(e){var t={};function r(n){if(t[n]){return t[n].exports}var i=t[n]={i:n,l:false,exports:{}};e[n].call(i.exports,i,i.exports,r);i.l=true;return i.exports}r.m=e;r.c=t;r.d=function(e,t,n){if(!r.o(e,t)){Object.defineProperty(e,t,{enumerable:true,get:n})}};r.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})};r.t=function(e,t){if(t&1)e=r(e);if(t&8)return e;if(t&4&&typeof e==="object"&&e&&e.__esModule)return e;var n=Object.create(null);r.r(n);Object.defineProperty(n,"default",{enumerable:true,value:e});if(t&2&&typeof e!="string")for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n};r.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};r.d(t,"a",t);return t};r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};r.p="";return r(r.s=114)}([function(e,t){e.exports=require("react")},function(e,t,r){e.exports={download:"download-download-3vrIV",modal:"download-modal-7fsGK",main:"download-main-144h5",title:"download-title-3BhWs",status:"download-status-1NN8w",handle:"download-handle-2rlHW",cartoon:"download-cartoon-1Noee",windmill:"download-windmill-4LJw4",progress:"download-progress-1jO0w",bar:"download-bar-2g2eh",percent:"download-percent-1TMQx",tost:"download-tost-2_kzS",nt:"download-nt-2qCR1",rotate:"download-rotate-1T3-r"}},function(e,t){var r=e.exports={version:"2.5.5"};if(typeof __e=="number")__e=r},function(e,t){var r=e.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=r},function(e,t,r){e.exports=!r(12)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(e,t,r){var n=r(13);var i=r(44);var o=r(30);var a=Object.defineProperty;t.f=r(4)?Object.defineProperty:function e(t,r,u){n(t);r=o(r,true);n(u);if(i)try{return a(t,r,u)}catch(e){}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");if("value"in u)t[r]=u.value;return t}},function(e,t,r){var n=r(3);var i=r(2);var o=r(45);var a=r(11);var u=r(7);var f="prototype";var s=function(e,t,r){var c=e&s.F;var l=e&s.G;var d=e&s.S;var p=e&s.P;var v=e&s.B;var h=e&s.W;var g=l?i:i[t]||(i[t]={});var m=g[f];var y=l?n:d?n[t]:(n[t]||{})[f];var b,w,S;if(l)r=t;for(b in r){w=!c&&y&&y[b]!==undefined;if(w&&u(g,b))continue;S=w?y[b]:r[b];g[b]=l&&typeof y[b]!="function"?r[b]:v&&w?o(S,n):h&&y[b]==S?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};t[f]=e[f];return t}(S):p&&typeof S=="function"?o(Function.call,S):S;if(p){(g.virtual||(g.virtual={}))[b]=S;if(e&s.R&&m&&!m[b])a(m,b,S)}}};s.F=1;s.G=2;s.S=4;s.P=8;s.B=16;s.W=32;s.U=64;s.R=128;e.exports=s},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(31)("wks");var i=r(16);var o=r(3).Symbol;var a=typeof o=="function";var u=e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))};u.store=n},function(e,t,r){var n=r(100);var i=r(33);e.exports=function(e){return n(i(e))}},function(e,t){e.exports=function(e){return typeof e==="object"?e!==null:typeof e==="function"}},function(e,t,r){var n=r(5);var i=r(15);e.exports=r(4)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){e[t]=r;return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return true}}},function(e,t,r){var n=r(10);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){var i,o;(function(){var r=false;var a=this;var u=function(e){if(e instanceof u)return e;if(!(this instanceof u))return new u(e);this.EXIFwrapped=e};if(true){if(typeof e!=="undefined"&&e.exports){t=e.exports=u}t.EXIF=u}else{}var f=u.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"};var s=u.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"};var c=u.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"};var l=u.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"};var d=u.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 p(e,t,r){if(e.addEventListener){e.addEventListener(t,r,false)}else if(e.attachEvent){e.attachEvent("on"+t,r)}}function v(e){return!!e.exifdata}function h(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"";e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");var r=atob(e);var n=r.length;var i=new ArrayBuffer(n);var o=new Uint8Array(i);for(var a=0;a<n;a++){o[a]=r.charCodeAt(a)}return i}function g(e,t){var r=new XMLHttpRequest;r.open("GET",e,true);r.responseType="blob";r.onload=function(e){if(this.status==200||this.status===0){t(this.response)}};r.send()}function m(e,t){function n(r){var n=y(r);e.exifdata=n||{};var i=b(r);e.iptcdata=i||{};if(u.isXmpEnabled){var o=C(r);e.xmpdata=o||{}}if(t){t.call(e)}}if(e.src){if(/^data\:/i.test(e.src)){var i=h(e.src);n(i)}else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(e){n(e.target.result)};g(e.src,function(e){o.readAsArrayBuffer(e)})}else{var a=new XMLHttpRequest;a.onload=function(){if(this.status==200||this.status===0){n(a.response)}else{throw"Could not load image"}a=null};a.open("GET",e.src,true);a.responseType="arraybuffer";a.send(null)}}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var o=new FileReader;o.onload=function(e){if(r)console.log("Got file of length "+e.target.result.byteLength);n(e.target.result)};o.readAsArrayBuffer(e)}}function y(e){var t=new DataView(e);if(r)console.log("Got file of length "+e.byteLength);if(t.getUint8(0)!=255||t.getUint8(1)!=216){if(r)console.log("Not a valid JPEG");return false}var n=2,i=e.byteLength,o;while(n<i){if(t.getUint8(n)!=255){if(r)console.log("Not a valid marker at offset "+n+", found: "+t.getUint8(n));return false}o=t.getUint8(n+1);if(r)console.log(o);if(o==225){if(r)console.log("Found 0xFFE1 marker");return E(t,n+4,t.getUint16(n+2)-2)}else{n+=2+t.getUint16(n+2)}}}function b(e){var t=new DataView(e);if(r)console.log("Got file of length "+e.byteLength);if(t.getUint8(0)!=255||t.getUint8(1)!=216){if(r)console.log("Not a valid JPEG");return false}var n=2,i=e.byteLength;var o=function(e,t){return e.getUint8(t)===56&&e.getUint8(t+1)===66&&e.getUint8(t+2)===73&&e.getUint8(t+3)===77&&e.getUint8(t+4)===4&&e.getUint8(t+5)===4};while(n<i){if(o(t,n)){var a=t.getUint8(n+7);if(a%2!==0)a+=1;if(a===0){a=4}var u=n+8+a;var f=t.getUint16(n+6+a);return S(e,u,f);break}n++}}var w={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function S(e,t,r){var n=new DataView(e);var i={};var o,a,u,f,s;var c=t;while(c<t+r){if(n.getUint8(c)===28&&n.getUint8(c+1)===2){f=n.getUint8(c+2);if(f in w){u=n.getInt16(c+3);s=u+5;a=w[f];o=I(n,c+5,u);if(i.hasOwnProperty(a)){if(i[a]instanceof Array){i[a].push(o)}else{i[a]=[i[a],o]}}else{i[a]=o}}}c++}return i}function _(e,t,n,i,o){var a=e.getUint16(n,!o),u={},f,s,c;for(c=0;c<a;c++){f=n+c*12+2;s=i[e.getUint16(f,!o)];if(!s&&r)console.log("Unknown tag: "+e.getUint16(f,!o));u[s]=x(e,f,t,n,o)}return u}function x(e,t,r,n,i){var o=e.getUint16(t+2,!i),a=e.getUint32(t+4,!i),u=e.getUint32(t+8,!i)+r,f,s,c,l,d,p;switch(o){case 1:case 7:if(a==1){return e.getUint8(t+8,!i)}else{f=a>4?u:t+8;s=[];for(l=0;l<a;l++){s[l]=e.getUint8(f+l)}return s}case 2:f=a>4?u:t+8;return I(e,f,a-1);case 3:if(a==1){return e.getUint16(t+8,!i)}else{f=a>2?u:t+8;s=[];for(l=0;l<a;l++){s[l]=e.getUint16(f+2*l,!i)}return s}case 4:if(a==1){return e.getUint32(t+8,!i)}else{s=[];for(l=0;l<a;l++){s[l]=e.getUint32(u+4*l,!i)}return s}case 5:if(a==1){d=e.getUint32(u,!i);p=e.getUint32(u+4,!i);c=new Number(d/p);c.numerator=d;c.denominator=p;return c}else{s=[];for(l=0;l<a;l++){d=e.getUint32(u+8*l,!i);p=e.getUint32(u+4+8*l,!i);s[l]=new Number(d/p);s[l].numerator=d;s[l].denominator=p}return s}case 9:if(a==1){return e.getInt32(t+8,!i)}else{s=[];for(l=0;l<a;l++){s[l]=e.getInt32(u+4*l,!i)}return s}case 10:if(a==1){return e.getInt32(u,!i)/e.getInt32(u+4,!i)}else{s=[];for(l=0;l<a;l++){s[l]=e.getInt32(u+8*l,!i)/e.getInt32(u+4+8*l,!i)}return s}}}function O(e,t,r){var n=e.getUint16(t,!r);return e.getUint32(t+2+n*12,!r)}function P(e,t,r,n){var i=O(e,t+r,n);if(!i){return{}}else if(i>e.byteLength){return{}}var o=_(e,t,t+i,l,n);if(o["Compression"]){switch(o["Compression"]){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var a=t+o.JpegIFOffset;var u=o.JpegIFByteCount;o["blob"]=new Blob([new Uint8Array(e.buffer,a,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 if(o["PhotometricInterpretation"]==2){console.log("Thumbnail image format is RGB, which is not implemented.")}return o}function I(e,t,r){var i="";for(n=t;n<t+r;n++){i+=String.fromCharCode(e.getUint8(n))}return i}function E(e,t){if(I(e,t,4)!="Exif"){if(r)console.log("Not valid EXIF data! "+I(e,t,4));return false}var n,i,o,a,u,l=t+6;if(e.getUint16(l)==18761){n=false}else if(e.getUint16(l)==19789){n=true}else{if(r)console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)");return false}if(e.getUint16(l+2,!n)!=42){if(r)console.log("Not valid TIFF data! (no 0x002A)");return false}var p=e.getUint32(l+4,!n);if(p<8){if(r)console.log("Not valid TIFF data! (First offset less than 8)",e.getUint32(l+4,!n));return false}i=_(e,l,l+p,s,n);if(i.ExifIFDPointer){a=_(e,l,l+i.ExifIFDPointer,f,n);for(o in a){switch(o){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":a[o]=d[o][a[o]];break;case"ExifVersion":case"FlashpixVersion":a[o]=String.fromCharCode(a[o][0],a[o][1],a[o][2],a[o][3]);break;case"ComponentsConfiguration":a[o]=d.Components[a[o][0]]+d.Components[a[o][1]]+d.Components[a[o][2]]+d.Components[a[o][3]];break}i[o]=a[o]}}if(i.GPSInfoIFDPointer){u=_(e,l,l+i.GPSInfoIFDPointer,c,n);for(o in u){switch(o){case"GPSVersionID":u[o]=u[o][0]+"."+u[o][1]+"."+u[o][2]+"."+u[o][3];break}i[o]=u[o]}}i["thumbnail"]=P(e,l,p,n);return i}function C(e){if(!("DOMParser"in self)){return}var t=new DataView(e);if(r)console.log("Got file of length "+e.byteLength);if(t.getUint8(0)!=255||t.getUint8(1)!=216){if(r)console.log("Not a valid JPEG");return false}var n=2,i=e.byteLength,o=new DOMParser;while(n<i-4){if(I(t,n,4)=="http"){var a=n-1;var u=t.getUint16(n-2)-1;var f=I(t,a,u);var s=f.indexOf("xmpmeta>")+8;f=f.substring(f.indexOf("<x:xmpmeta"),s);var c=f.indexOf("x:xmpmeta")+10;f=f.slice(0,c)+'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/" '+f.slice(c);var l=o.parseFromString(f,"text/xml");return A(l)}else{n++}}}function F(e){var t={};if(e.nodeType==1){if(e.attributes.length>0){t["@attributes"]={};for(var r=0;r<e.attributes.length;r++){var n=e.attributes.item(r);t["@attributes"][n.nodeName]=n.nodeValue}}}else if(e.nodeType==3){return e.nodeValue}if(e.hasChildNodes()){for(var i=0;i<e.childNodes.length;i++){var o=e.childNodes.item(i);var a=o.nodeName;if(t[a]==null){t[a]=F(o)}else{if(t[a].push==null){var u=t[a];t[a]=[];t[a].push(u)}t[a].push(F(o))}}}return t}function A(e){try{var t={};if(e.children.length>0){for(var r=0;r<e.children.length;r++){var n=e.children.item(r);var i=n.attributes;for(var o in i){var a=i[o];var u=a.nodeName;var f=a.nodeValue;if(u!==undefined){t[u]=f}}var s=n.nodeName;if(typeof t[s]=="undefined"){t[s]=F(n)}else{if(typeof t[s].push=="undefined"){var c=t[s];t[s]=[];t[s].push(c)}t[s].push(F(n))}}}else{t=e.textContent}return t}catch(e){console.log(e.message)}}u.enableXmp=function(){u.isXmpEnabled=true};u.disableXmp=function(){u.isXmpEnabled=false};u.getData=function(e,t){if((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete)return false;if(!v(e)){m(e,t)}else{if(t){t.call(e)}}return true};u.getTag=function(e,t){if(!v(e))return;return e.exifdata[t]};u.getIptcTag=function(e,t){if(!v(e))return;return e.iptcdata[t]};u.getAllTags=function(e){if(!v(e))return{};var t,r=e.exifdata,n={};for(t in r){if(r.hasOwnProperty(t)){n[t]=r[t]}}return n};u.getAllIptcTags=function(e){if(!v(e))return{};var t,r=e.iptcdata,n={};for(t in r){if(r.hasOwnProperty(t)){n[t]=r[t]}}return n};u.pretty=function(e){if(!v(e))return"";var t,r=e.exifdata,n="";for(t in r){if(r.hasOwnProperty(t)){if(typeof r[t]=="object"){if(r[t]instanceof Number){n+=t+" : "+r[t]+" ["+r[t].numerator+"/"+r[t].denominator+"]\r\n"}else{n+=t+" : ["+r[t].length+" values]\r\n"}}else{n+=t+" : "+r[t]+"\r\n"}}}return n};u.readFromBinaryFile=function(e){return y(e)};if(true){!(i=[],o=function(){return u}.apply(t,i),o!==undefined&&(e.exports=o))}}).call(this)},function(e,t){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},function(e,t){var r=0;var n=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++r+n).toString(36))}},function(e,t,r){"use strict";t.__esModule=true;var n=r(109);var i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;(0,i.default)(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}()},function(e,t,r){"use strict";t.__esModule=true;t.default=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}},function(e,t,r){"use strict";var n=r(65)();e.exports=function(e){return e!==n&&e!==null}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var n=r(3);var i=r(2);var o=r(28);var a=r(22);var u=r(5).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});if(e.charAt(0)!="_"&&!(e in t))u(t,e,{value:a.f(e)})}},function(e,t,r){t.f=r(8)},function(e,t,r){var n=r(5).f;var i=r(7);var o=r(8)("toStringTag");e.exports=function(e,t,r){if(e&&!i(e=r?e:e.prototype,o))n(e,o,{configurable:true,value:t})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(39);var i=r(24);e.exports=Object.keys||function e(t){return n(t,i)}},function(e,t,r){var n=r(13);var i=r(101);var o=r(24);var a=r(32)("IE_PROTO");var u=function(){};var f="prototype";var s=function(){var e=r(43)("iframe");var t=o.length;var n="<";var i=">";var a;e.style.display="none";r(97).appendChild(e);e.src="javascript:";a=e.contentWindow.document;a.open();a.write(n+"script"+i+"document.F=Object"+n+"/script"+i);a.close();s=a.F;while(t--)delete s[f][o[t]];return s()};e.exports=Object.create||function e(t,r){var o;if(t!==null){u[f]=n(t);o=new u;u[f]=null;o[a]=t}else o=s();return r===undefined?o:i(o,r)}},function(e,t){e.exports={}},function(e,t){e.exports=true},function(e,t){var r=Math.ceil;var n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(10);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&typeof(r=e.toString)=="function"&&!n(i=r.call(e)))return i;if(typeof(r=e.valueOf)=="function"&&!n(i=r.call(e)))return i;if(!t&&typeof(r=e.toString)=="function"&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(3);var i="__core-js_shared__";var o=n[i]||(n[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,r){var n=r(31)("keys");var i=r(16);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(20);var i=r(15);var o=r(9);var a=r(30);var u=r(7);var f=r(44);var s=Object.getOwnPropertyDescriptor;t.f=r(4)?s:function e(t,r){t=o(t);r=a(r,true);if(f)try{return s(t,r)}catch(e){}if(u(t,r))return i(!n.f.call(t,r),t[r])}},function(e,t,r){var n=r(39);var i=r(24).concat("length","prototype");t.f=Object.getOwnPropertyNames||function e(t){return n(t,i)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(29);var i=Math.max;var o=Math.min;e.exports=function(e,t){e=n(e);return e<0?i(e+t,0):o(e,t)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(7);var i=r(9);var o=r(99)(false);var a=r(32)("IE_PROTO");e.exports=function(e,t){var r=i(e);var u=0;var f=[];var s;for(s in r)if(s!=a)n(r,s)&&f.push(s);while(t.length>u)if(n(r,s=t[u++])){~o(f,s)||f.push(s)}return f}},function(e,t,r){e.exports=r(11)},function(e,t,r){"use strict";var n=r(28);var i=r(6);var o=r(40);var a=r(11);var u=r(27);var f=r(102);var s=r(23);var c=r(46);var l=r(8)("iterator");var d=!([].keys&&"next"in[].keys());var p="@@iterator";var v="keys";var h="values";var g=function(){return this};e.exports=function(e,t,r,m,y,b,w){f(r,t,m);var S=function(e){if(!d&&e in P)return P[e];switch(e){case v:return function t(){return new r(this,e)};case h:return function t(){return new r(this,e)}}return function t(){return new r(this,e)}};var _=t+" Iterator";var x=y==h;var O=false;var P=e.prototype;var I=P[l]||P[p]||y&&P[y];var E=I||S(y);var C=y?!x?E:S("entries"):undefined;var F=t=="Array"?P.entries||I:I;var A,L,T;if(F){T=c(F.call(new e));if(T!==Object.prototype&&T.next){s(T,_,true);if(!n&&typeof T[l]!="function")a(T,l,g)}}if(x&&I&&I.name!==h){O=true;E=function e(){return I.call(this)}}if((!n||w)&&(d||O||!P[l])){a(P,l,E)}u[t]=E;u[_]=g;if(y){A={values:x?E:S(h),keys:b?E:S(v),entries:C};if(w)for(L in A){if(!(L in P))o(P,L,A[L])}else i(i.P+i.F*(d||O),t,A)}return A}},function(e,t,r){"use strict";t.__esModule=true;var n=r(106);var i=f(n);var o=r(92);var a=f(o);var u=typeof a.default==="function"&&typeof i.default==="symbol"?function(e){return typeof e}:function(e){return e&&typeof a.default==="function"&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function f(e){return e&&e.__esModule?e:{default:e}}t.default=typeof a.default==="function"&&u(i.default)==="symbol"?function(e){return typeof e==="undefined"?"undefined":u(e)}:function(e){return e&&typeof a.default==="function"&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e==="undefined"?"undefined":u(e)}},function(e,t,r){var n=r(10);var i=r(3).document;var o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){e.exports=!r(4)&&!r(12)(function(){return Object.defineProperty(r(43)("div"),"a",{get:function(){return 7}}).a!=7})},function(e,t,r){var n=r(110);e.exports=function(e,t,r){n(e);if(t===undefined)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(7);var i=r(47);var o=r(32)("IE_PROTO");var a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){e=i(e);if(n(e,o))return e[o];if(typeof e.constructor=="function"&&e instanceof e.constructor){return e.constructor.prototype}return e instanceof Object?a:null}},function(e,t,r){var n=r(33);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n; /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */var i=i||function(e){"use strict";if(typeof e==="undefined"||typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var t=e.document,r=function(){return e.URL||e.webkitURL||e},n=t.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in n,o=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},a=/constructor/i.test(e.HTMLElement)||e.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent),f=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},s="application/octet-stream",c=1e3*40,l=function(e){var t=function(){if(typeof e==="string"){r().revokeObjectURL(e)}else{e.remove()}};setTimeout(t,c)},d=function(e,t,r){t=[].concat(t);var n=t.length;while(n--){var i=e["on"+t[n]];if(typeof i==="function"){try{i.call(e,r||e)}catch(e){f(e)}}}},p=function(e){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)){return new Blob([String.fromCharCode(65279),e],{type:e.type})}return e},v=function(t,f,c){if(!c){t=p(t)}var v=this,h=t.type,g=h===s,m,y=function(){d(v,"writestart progress write writeend".split(" "))},b=function(){if((u||g&&a)&&e.FileReader){var n=new FileReader;n.onloadend=function(){var t=u?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");var r=e.open(t,"_blank");if(!r)e.location.href=t;t=undefined;v.readyState=v.DONE;y()};n.readAsDataURL(t);v.readyState=v.INIT;return}if(!m){m=r().createObjectURL(t)}if(g){e.location.href=m}else{var i=e.open(m,"_blank");if(!i){e.location.href=m}}v.readyState=v.DONE;y();l(m)};v.readyState=v.INIT;if(i){m=r().createObjectURL(t);setTimeout(function(){n.href=m;n.download=f;o(n);y();l(m);v.readyState=v.DONE});return}b()},h=v.prototype,g=function(e,t,r){return new v(e,t||e.name||"download",r)};if(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob){return function(e,t,r){t=t||e.name||"download";if(!r){e=p(e)}return navigator.msSaveOrOpenBlob(e,t)}}h.abort=function(){};h.readyState=h.INIT=0;h.WRITING=1;h.DONE=2;h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null;return g}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||this.content);if(typeof e!=="undefined"&&e.exports){e.exports.saveAs=i}else if("function"!=="undefined"&&r(57)!==null&&r(56)!==null){!(n=function(){return i}.call(t,r,t,e),n!==undefined&&(e.exports=n))}},function(e,t,r){"use strict";var n=r(72),i=r(58),o=Function.prototype.apply,a=Function.prototype.call,u=Object.create,f=Object.defineProperty,s=Object.defineProperties,c=Object.prototype.hasOwnProperty,l={configurable:true,enumerable:false,writable:true},d,p,v,h,g,m,y;d=function(e,t){var r;i(t);if(!c.call(this,"__ee__")){r=l.value=u(null);f(this,"__ee__",l);l.value=null}else{r=this.__ee__}if(!r[e])r[e]=t;else if(typeof r[e]==="object")r[e].push(t);else r[e]=[r[e],t];return this};p=function(e,t){var r,n;i(t);n=this;d.call(this,e,r=function(){v.call(n,e,r);o.call(t,this,arguments)});r.__eeOnceListener__=t;return this};v=function(e,t){var r,n,o,a;i(t);if(!c.call(this,"__ee__"))return this;r=this.__ee__;if(!r[e])return this;n=r[e];if(typeof n==="object"){for(a=0;o=n[a];++a){if(o===t||o.__eeOnceListener__===t){if(n.length===2)r[e]=n[a?0:1];else n.splice(a,1)}}}else{if(n===t||n.__eeOnceListener__===t){delete r[e]}}return this};h=function(e){var t,r,n,i,u;if(!c.call(this,"__ee__"))return;i=this.__ee__[e];if(!i)return;if(typeof i==="object"){r=arguments.length;u=new Array(r-1);for(t=1;t<r;++t)u[t-1]=arguments[t];i=i.slice();for(t=0;n=i[t];++t){o.call(n,this,u)}}else{switch(arguments.length){case 1:a.call(i,this);break;case 2:a.call(i,this,arguments[1]);break;case 3:a.call(i,this,arguments[1],arguments[2]);break;default:r=arguments.length;u=new Array(r-1);for(t=1;t<r;++t){u[t-1]=arguments[t]}o.call(i,this,u)}}};g={on:d,once:p,off:v,emit:h};m={on:n(d),once:n(p),off:n(v),emit:n(h)};y=s({},m);e.exports=t=function(e){return e==null?u(y):s(Object(e),m)};t.methods=g},function(e,t,r){(function(t){if(true){e.exports=t()}else{var r}})(function(e){"use strict";var t=function(e,t){return e+t&4294967295},r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,r,n,i,o,a){r=t(t(r,e),t(i,a));return t(r<<o|r>>>32-o,n)}function i(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-680876936|0;r=(r<<7|r>>>25)+n|0;o+=(r&n|~r&i)+t[1]-389564586|0;o=(o<<12|o>>>20)+r|0;i+=(o&r|~o&n)+t[2]+606105819|0;i=(i<<17|i>>>15)+o|0;n+=(i&o|~i&r)+t[3]-1044525330|0;n=(n<<22|n>>>10)+i|0;r+=(n&i|~n&o)+t[4]-176418897|0;r=(r<<7|r>>>25)+n|0;o+=(r&n|~r&i)+t[5]+1200080426|0;o=(o<<12|o>>>20)+r|0;i+=(o&r|~o&n)+t[6]-1473231341|0;i=(i<<17|i>>>15)+o|0;n+=(i&o|~i&r)+t[7]-45705983|0;n=(n<<22|n>>>10)+i|0;r+=(n&i|~n&o)+t[8]+1770035416|0;r=(r<<7|r>>>25)+n|0;o+=(r&n|~r&i)+t[9]-1958414417|0;o=(o<<12|o>>>20)+r|0;i+=(o&r|~o&n)+t[10]-42063|0;i=(i<<17|i>>>15)+o|0;n+=(i&o|~i&r)+t[11]-1990404162|0;n=(n<<22|n>>>10)+i|0;r+=(n&i|~n&o)+t[12]+1804603682|0;r=(r<<7|r>>>25)+n|0;o+=(r&n|~r&i)+t[13]-40341101|0;o=(o<<12|o>>>20)+r|0;i+=(o&r|~o&n)+t[14]-1502002290|0;i=(i<<17|i>>>15)+o|0;n+=(i&o|~i&r)+t[15]+1236535329|0;n=(n<<22|n>>>10)+i|0;r+=(n&o|i&~o)+t[1]-165796510|0;r=(r<<5|r>>>27)+n|0;o+=(r&i|n&~i)+t[6]-1069501632|0;o=(o<<9|o>>>23)+r|0;i+=(o&n|r&~n)+t[11]+643717713|0;i=(i<<14|i>>>18)+o|0;n+=(i&r|o&~r)+t[0]-373897302|0;n=(n<<20|n>>>12)+i|0;r+=(n&o|i&~o)+t[5]-701558691|0;r=(r<<5|r>>>27)+n|0;o+=(r&i|n&~i)+t[10]+38016083|0;o=(o<<9|o>>>23)+r|0;i+=(o&n|r&~n)+t[15]-660478335|0;i=(i<<14|i>>>18)+o|0;n+=(i&r|o&~r)+t[4]-405537848|0;n=(n<<20|n>>>12)+i|0;r+=(n&o|i&~o)+t[9]+568446438|0;r=(r<<5|r>>>27)+n|0;o+=(r&i|n&~i)+t[14]-1019803690|0;o=(o<<9|o>>>23)+r|0;i+=(o&n|r&~n)+t[3]-187363961|0;i=(i<<14|i>>>18)+o|0;n+=(i&r|o&~r)+t[8]+1163531501|0;n=(n<<20|n>>>12)+i|0;r+=(n&o|i&~o)+t[13]-1444681467|0;r=(r<<5|r>>>27)+n|0;o+=(r&i|n&~i)+t[2]-51403784|0;o=(o<<9|o>>>23)+r|0;i+=(o&n|r&~n)+t[7]+1735328473|0;i=(i<<14|i>>>18)+o|0;n+=(i&r|o&~r)+t[12]-1926607734|0;n=(n<<20|n>>>12)+i|0;r+=(n^i^o)+t[5]-378558|0;r=(r<<4|r>>>28)+n|0;o+=(r^n^i)+t[8]-2022574463|0;o=(o<<11|o>>>21)+r|0;i+=(o^r^n)+t[11]+1839030562|0;i=(i<<16|i>>>16)+o|0;n+=(i^o^r)+t[14]-35309556|0;n=(n<<23|n>>>9)+i|0;r+=(n^i^o)+t[1]-1530992060|0;r=(r<<4|r>>>28)+n|0;o+=(r^n^i)+t[4]+1272893353|0;o=(o<<11|o>>>21)+r|0;i+=(o^r^n)+t[7]-155497632|0;i=(i<<16|i>>>16)+o|0;n+=(i^o^r)+t[10]-1094730640|0;n=(n<<23|n>>>9)+i|0;r+=(n^i^o)+t[13]+681279174|0;r=(r<<4|r>>>28)+n|0;o+=(r^n^i)+t[0]-358537222|0;o=(o<<11|o>>>21)+r|0;i+=(o^r^n)+t[3]-722521979|0;i=(i<<16|i>>>16)+o|0;n+=(i^o^r)+t[6]+76029189|0;n=(n<<23|n>>>9)+i|0;r+=(n^i^o)+t[9]-640364487|0;r=(r<<4|r>>>28)+n|0;o+=(r^n^i)+t[12]-421815835|0;o=(o<<11|o>>>21)+r|0;i+=(o^r^n)+t[15]+530742520|0;i=(i<<16|i>>>16)+o|0;n+=(i^o^r)+t[2]-995338651|0;n=(n<<23|n>>>9)+i|0;r+=(i^(n|~o))+t[0]-198630844|0;r=(r<<6|r>>>26)+n|0;o+=(n^(r|~i))+t[7]+1126891415|0;o=(o<<10|o>>>22)+r|0;i+=(r^(o|~n))+t[14]-1416354905|0;i=(i<<15|i>>>17)+o|0;n+=(o^(i|~r))+t[5]-57434055|0;n=(n<<21|n>>>11)+i|0;r+=(i^(n|~o))+t[12]+1700485571|0;r=(r<<6|r>>>26)+n|0;o+=(n^(r|~i))+t[3]-1894986606|0;o=(o<<10|o>>>22)+r|0;i+=(r^(o|~n))+t[10]-1051523|0;i=(i<<15|i>>>17)+o|0;n+=(o^(i|~r))+t[1]-2054922799|0;n=(n<<21|n>>>11)+i|0;r+=(i^(n|~o))+t[8]+1873313359|0;r=(r<<6|r>>>26)+n|0;o+=(n^(r|~i))+t[15]-30611744|0;o=(o<<10|o>>>22)+r|0;i+=(r^(o|~n))+t[6]-1560198380|0;i=(i<<15|i>>>17)+o|0;n+=(o^(i|~r))+t[13]+1309151649|0;n=(n<<21|n>>>11)+i|0;r+=(i^(n|~o))+t[4]-145523070|0;r=(r<<6|r>>>26)+n|0;o+=(n^(r|~i))+t[11]-1120210379|0;o=(o<<10|o>>>22)+r|0;i+=(r^(o|~n))+t[2]+718787259|0;i=(i<<15|i>>>17)+o|0;n+=(o^(i|~r))+t[9]-343485551|0;n=(n<<21|n>>>11)+i|0;e[0]=r+e[0]|0;e[1]=n+e[1]|0;e[2]=i+e[2]|0;e[3]=o+e[3]|0}function o(e){var t=[],r;for(r=0;r<64;r+=4){t[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24)}return t}function a(e){var t=[],r;for(r=0;r<64;r+=4){t[r>>2]=e[r]+(e[r+1]<<8)+(e[r+2]<<16)+(e[r+3]<<24)}return t}function u(e){var t=e.length,r=[1732584193,-271733879,-1732584194,271733878],n,a,u,f,s,c;for(n=64;n<=t;n+=64){i(r,o(e.substring(n-64,n)))}e=e.substring(n-64);a=e.length;u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<a;n+=1){u[n>>2]|=e.charCodeAt(n)<<(n%4<<3)}u[n>>2]|=128<<(n%4<<3);if(n>55){i(r,u);for(n=0;n<16;n+=1){u[n]=0}}f=t*8;f=f.toString(16).match(/(.*?)(.{0,8})$/);s=parseInt(f[2],16);c=parseInt(f[1],16)||0;u[14]=s;u[15]=c;i(r,u);return r}function f(e){var t=e.length,r=[1732584193,-271733879,-1732584194,271733878],n,o,u,f,s,c;for(n=64;n<=t;n+=64){i(r,a(e.subarray(n-64,n)))}e=n-64<t?e.subarray(n-64):new Uint8Array(0);o=e.length;u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<o;n+=1){u[n>>2]|=e[n]<<(n%4<<3)}u[n>>2]|=128<<(n%4<<3);if(n>55){i(r,u);for(n=0;n<16;n+=1){u[n]=0}}f=t*8;f=f.toString(16).match(/(.*?)(.{0,8})$/);s=parseInt(f[2],16);c=parseInt(f[1],16)||0;u[14]=s;u[15]=c;i(r,u);return r}function s(e){var t="",n;for(n=0;n<4;n+=1){t+=r[e>>n*8+4&15]+r[e>>n*8&15]}return t}function c(e){var t;for(t=0;t<e.length;t+=1){e[t]=s(e[t])}return e.join("")}if(c(u("hello"))!=="5d41402abc4b2a76b9719d911017c592"){t=function(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}}if(typeof ArrayBuffer!=="undefined"&&!ArrayBuffer.prototype.slice){(function(){function t(e,t){e=e|0||0;if(e<0){return Math.max(e+t,0)}return Math.min(e,t)}ArrayBuffer.prototype.slice=function(r,n){var i=this.byteLength,o=t(r,i),a=i,u,f,s,c;if(n!==e){a=t(n,i)}if(o>a){return new ArrayBuffer(0)}u=a-o;f=new ArrayBuffer(u);s=new Uint8Array(f);c=new Uint8Array(this,o,u);s.set(c);return f}})()}function l(e){if(/[\u0080-\uFFFF]/.test(e)){e=unescape(encodeURIComponent(e))}return e}function d(e,t){var r=e.length,n=new ArrayBuffer(r),i=new Uint8Array(n),o;for(o=0;o<r;o+=1){i[o]=e.charCodeAt(o)}return t?i:n}function p(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function v(e,t,r){var n=new Uint8Array(e.byteLength+t.byteLength);n.set(new Uint8Array(e));n.set(new Uint8Array(t),e.byteLength);return r?n:n.buffer}function h(e){var t=[],r=e.length,n;for(n=0;n<r-1;n+=2){t.push(parseInt(e.substr(n,2),16))}return String.fromCharCode.apply(String,t)}function g(){this.reset()}g.prototype.append=function(e){this.appendBinary(l(e));return this};g.prototype.appendBinary=function(e){this._buff+=e;this._length+=e.length;var t=this._buff.length,r;for(r=64;r<=t;r+=64){i(this._hash,o(this._buff.substring(r-64,r)))}this._buff=this._buff.substring(r-64);return this};g.prototype.end=function(e){var t=this._buff,r=t.length,n,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o;for(n=0;n<r;n+=1){i[n>>2]|=t.charCodeAt(n)<<(n%4<<3)}this._finish(i,r);o=c(this._hash);if(e){o=h(o)}this.reset();return o};g.prototype.reset=function(){this._buff="";this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this};g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}};g.prototype.setState=function(e){this._buff=e.buff;this._length=e.length;this._hash=e.hash;return this};g.prototype.destroy=function(){delete this._hash;delete this._buff;delete this._length};g.prototype._finish=function(e,t){var r=t,n,o,a;e[r>>2]|=128<<(r%4<<3);if(r>55){i(this._hash,e);for(r=0;r<16;r+=1){e[r]=0}}n=this._length*8;n=n.toString(16).match(/(.*?)(.{0,8})$/);o=parseInt(n[2],16);a=parseInt(n[1],16)||0;e[14]=o;e[15]=a;i(this._hash,e)};g.hash=function(e,t){return g.hashBinary(l(e),t)};g.hashBinary=function(e,t){var r=u(e),n=c(r);return t?h(n):n};g.ArrayBuffer=function(){this.reset()};g.ArrayBuffer.prototype.append=function(e){var t=v(this._buff.buffer,e,true),r=t.length,n;this._length+=e.byteLength;for(n=64;n<=r;n+=64){i(this._hash,a(t.subarray(n-64,n)))}this._buff=n-64<r?new Uint8Array(t.buffer.slice(n-64)):new Uint8Array(0);return this};g.ArrayBuffer.prototype.end=function(e){var t=this._buff,r=t.length,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i,o;for(i=0;i<r;i+=1){n[i>>2]|=t[i]<<(i%4<<3)}this._finish(n,r);o=c(this._hash);if(e){o=h(o)}this.reset();return o};g.ArrayBuffer.prototype.reset=function(){this._buff=new Uint8Array(0);this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this};g.ArrayBuffer.prototype.getState=function(){var e=g.prototype.getState.call(this);e.buff=p(e.buff);return e};g.ArrayBuffer.prototype.setState=function(e){e.buff=d(e.buff,true);return g.prototype.setState.call(this,e)};g.ArrayBuffer.prototype.destroy=g.prototype.destroy;g.ArrayBuffer.prototype._finish=g.prototype._finish;g.ArrayBuffer.hash=function(e,t){var r=f(new Uint8Array(e)),n=c(r);return t?h(n):n};return g})},function(e,t,r){e.exports={default:r(74),__esModule:true}},function(e,t,r){"use strict";t.__esModule=true;var n=r(82);var i=s(n);var o=r(78);var a=s(o);var u=r(42);var f=s(u);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+(typeof t==="undefined"?"undefined":(0,f.default)(t)))}e.prototype=(0,a.default)(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)i.default?(0,i.default)(e,t):e.__proto__=t}},function(e,t,r){"use strict";t.__esModule=true;var n=r(42);var i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&((typeof t==="undefined"?"undefined":(0,i.default)(t))==="object"||typeof t==="function")?t:e}},function(e,t,r){e.exports={default:r(113),__esModule:true}},function(e,t,r){"use strict";r.r(t);var n=r(54);var i=r.n(n);var o=r(18);var a=r.n(o);var u=r(17);var f=r.n(u);var s=r(53);var c=r.n(s);var l=r(52);var d=r.n(l);var p=r(0);var v=r.n(p);var h=r(1);var g=r.n(h);var m=r(51);var y=r.n(m);var b=r(50);var w=r.n(b);var S=r(14);var x=r.n(S);var O=r(49);var P=r.n(O);var I=r(48);var E=r.n(I);if(!window.$emit){window.$emitter=P()()}var C=function(){function e(){a()(this,e);this.CHUNK_SIZE=1024*1024;this.UPDATE_INTERVAL=1e3;this.DB={};this.token="";this.apiRoot="";window.$file=window.$file||this}f()(e,[{key:"_toast",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"error";window.$emitter.emit("TOAST",{msg:t,level:r})}},{key:"_naming",value:function e(t,r){var n="";if(r){n=r.replace(/(-)/g,"").substring(0,8)}if(t.name){return encodeURIComponent(t.name)}else if(["jpeg","gif","png","jpg","bmp"].includes(t.type.split("/")[1])){if(n){return n+".png"}return Date.now()+".png"}if(n){return""+n}return""+Date.now()}},{key:"_hash",value:function e(t){var r=new w.a;var n=new Uint8Array(t);var i=32768;var o=0;var a=n.length;var u="";var f=null;while(o<a){f=n.subarray(o,Math.min(o+i,a));u+=y.a.apply(null,f);o+=i}r.appendBinary(u);return r.end()}},{key:"_base64ArrayBuffer",value:function e(t){var r="";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var i=new Uint8Array(t);var o=i.byteLength;var a=o%3;var u=o-a;var f=void 0;var s=void 0;var c=void 0;var l=void 0;var d=void 0;for(var p=0;p<u;p+=3){d=i[p]<<16|i[p+1]<<8|i[p+2];f=(d&16515072)>>18;s=(d&258048)>>12;c=(d&4032)>>6;l=d&63;r+=n[f]+n[s]+n[c]+n[l]}if(a===1){d=i[u];f=(d&252)>>2;s=(d&3)<<4;r+=""+n[f]+n[s]+"=="}else if(a===2){d=i[u]<<8|i[u+1];f=(d&64512)>>10;s=(d&1008)>>4;c=(d&15)<<2;r+=""+n[f]+n[s]+n[c]+"="}return r}},{key:"_dealWithImage",value:function e(t,r,n){var i=this;if(!["jpeg","gif","png","jpg","bmp"].includes(r.split("/")[1]))return;var o=this._base64ArrayBuffer(t);var a=new Image;a.onload=function(){var e={width:a.width>320?320:a.width,height:a.width>320?a.height*320/a.width:a.height};x.a.getData(a,function(){if(x.a.getTag(this,"Orientation")===3){e.transform="rotate(180deg) translate("+e.width+", "+e.height+")"}else if(x.a.getTag(this,"Orientation")===6){e.transform="rotate(90deg) translate("+e.width+", "+e.height+")"}else if(x.a.getTag(this,"Orientation")===8){e.transform="rotate(-90deg) translate("+e.width+", "+e.height+")"}});i._update({thumbnailUrl:"data:"+r+";base64,"+o,imageStyle:e,progress:"uploading"},n)};a.src="data:"+r+";base64,"+o}},{key:"download",value:function e(t,r){var n=this;var i=0;var o=new XMLHttpRequest;o.open("GET",this.apiRoot+"/v1.0.0/file/download/"+t+"/"+r);o.setRequestHeader("Content-type","application/json");o.setRequestHeader("Authorization","bearer "+this.token);o.responseType="blob";o.addEventListener("loadstart",function(e){window.$emitter.emit("DOWNLOAD_FILE",{fileId:t,percent:0,progress:"start"})});o.addEventListener("progress",function(e){var r=Date.now();var a=true;if(e.total>10*1024*1024){a=r-i>n.UPDATE_INTERVAL}else{a=r-i>n.UPDATE_INTERVAL/2}if(e.loaded!==e.total&&!a){return}else{i=r}window.$emitter.emit("DOWNLOAD_FILE",{fileId:t,percent:e.loaded/e.total,progress:"downloading",cancel:function e(){o.abort()}})});o.addEventListener("abort",function(e){window.$emitter.emit("DOWNLOAD_FILE",{fileId:t,progress:"cancel"})});o.addEventListener("error",function(e){n._toast("文件下载失败");window.$emitter.emit("DOWNLOAD_FILE",{fileId:t,progress:"failure"})});o.addEventListener("loadend",function(e){i=null;if(o.status===200){window.$emitter.emit("DOWNLOAD_FILE",{fileId:t,percent:e.loaded/e.total,progress:"end"});E.a.saveAs(o.response,decodeURIComponent(o.getResponseHeader("filename")))}else if(o.status===401){n._toast("认证失败");window.$emitter.emit("DOWNLOAD_FILE",{fileId:t,progress:"failure"})}});o.send()}}]);return e}();r.d(t,"default",function(){return F});var F=function(e){d()(t,e);function t(e){a()(this,t);var r=c()(this,(t.__proto__||i()(t)).call(this,e));r.modalFold=function(){r.setState({fold:true})};r.modalUnFold=function(){r.setState({fold:false})};r.cancelDownLoad=function(){r.cancel=true};r.state={fold:false,fileIds:[],percent:0};return r}f()(t,[{key:"componentDidMount",value:function e(){var t=this;var r=new C;r.token=this.props.token;r.apiRoot=this.props.apiRoot;window.$emitter.on("DOWNLOAD_FILE",function(e){var r=e.fileId,n=e.percent,i=e.progress,o=e.cancel;var a=t.state.fileIds;var u=a.length>0?a[a.length-1]:null;if(i==="start"){t.setState(function(e){return{fold:false,fileIds:e.fileIds.concat(r),percent:0}})}else if(i==="downloading"&&u&&u===r){if(t.cancel){o();var f=t.state.fileIds;if(f.length===1){t.setState({fileIds:[]})}else{var s=f.slice();_.remove(s,function(e){return e===r});t.setState({fileIds:s,fold:true})}t.cancel=false}t.setState({percent:parseInt(n*100,10)})}else if(i==="end"){var c=a.slice();_.remove(c,function(e){return e===r});t.setState({fileIds:c})}})}},{key:"render",value:function e(){var t=this.state,r=t.fold,n=t.percent,i=t.fileIds;if(i.length===0){return null}return v.a.createElement("div",{className:g.a.download},r?v.a.createElement("div",{className:""+g.a.tost},v.a.createElement("i",{style:{width:n+"%"}}),v.a.createElement("span",null,n,"%"),v.a.createElement("a",{onClick:this.modalUnFold},"还原")):v.a.createElement("div",{className:g.a.modal},v.a.createElement("div",{className:g.a.main},v.a.createElement("div",{className:g.a.title},v.a.createElement("span",{className:g.a.status},"正在加载..."),v.a.createElement("span",{className:g.a.handle},v.a.createElement("i",{className:"i-f i-min",onClick:this.modalFold}),v.a.createElement("i",{className:"i-f i-close",onClick:this.cancelDownLoad}))),v.a.createElement("div",{className:g.a.cartoon},v.a.createElement("i",{className:g.a.windmill+" "+g.a.rotate})),v.a.createElement("div",{className:g.a.progress},v.a.createElement("span",{className:g.a.bar},v.a.createElement("i",{style:{width:n+"%"}})),v.a.createElement("span",{className:g.a.percent},v.a.createElement("em",null,n),v.a.createElement("i",null,"%"))))))}}]);return t}(v.a.Component)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,r){"use strict";e.exports=function(e){if(typeof e!=="function")throw new TypeError(e+" is not a function");return e}},function(e,t,r){"use strict";var n=String.prototype.indexOf;e.exports=function(e){return n.call(this,e,arguments[1])>-1}},function(e,t,r){"use strict";var n="razdwatrzy";e.exports=function(){if(typeof n.contains!=="function")return false;return n.contains("dwa")===true&&n.contains("foo")===false}},function(e,t,r){"use strict";e.exports=r(60)()?String.prototype.contains:r(59)},function(e,t,r){"use strict";e.exports=function(e){return typeof e==="function"}},function(e,t,r){"use strict";var n=r(19);var i=Array.prototype.forEach,o=Object.create;var a=function(e,t){var r;for(r in e)t[r]=e[r]};e.exports=function(e){var t=o(null);i.call(arguments,function(e){if(!n(e))return;a(Object(e),t)});return t}},function(e,t,r){"use strict";var n=r(19);e.exports=function(e){if(!n(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,r){"use strict";e.exports=function(){}},function(e,t,r){"use strict";var n=r(19);var i=Object.keys;e.exports=function(e){return i(n(e)?Object(e):e)}},function(e,t,r){"use strict";e.exports=function(){try{Object.keys("primitive");return true}catch(e){return false}}},function(e,t,r){"use strict";e.exports=r(67)()?Object.keys:r(66)},function(e,t,r){"use strict";var n=r(68),i=r(64),o=Math.max;e.exports=function(e,t){var r,a,u=o(arguments.length,2),f;e=Object(i(e));f=function(n){try{e[n]=t[n]}catch(e){if(!r)r=e}};for(a=1;a<u;++a){t=arguments[a];n(t).forEach(f)}if(r!==undefined)throw r;return e}},function(e,t,r){"use strict";e.exports=function(){var e=Object.assign,t;if(typeof e!=="function")return false;t={foo:"raz"};e(t,{bar:"dwa"},{trzy:"trzy"});return t.foo+t.bar+t.trzy==="razdwatrzy"}},function(e,t,r){"use strict";e.exports=r(70)()?Object.assign:r(69)},function(e,t,r){"use strict";var n=r(71),i=r(63),o=r(62),a=r(61),u;u=e.exports=function(e,t){var r,o,u,f,s;if(arguments.length<2||typeof e!=="string"){f=t;t=e;e=null}else{f=arguments[2]}if(e==null){r=u=true;o=false}else{r=a.call(e,"c");o=a.call(e,"e");u=a.call(e,"w")}s={value:t,configurable:r,enumerable:o,writable:u};return!f?s:n(i(f),s)};u.gs=function(e,t,r){var u,f,s,c;if(typeof e!=="string"){s=r;r=t;t=e;e=null}else{s=arguments[3]}if(t==null){t=undefined}else if(!o(t)){s=t;t=r=undefined}else if(r==null){r=undefined}else if(!o(r)){s=r;r=undefined}if(e==null){u=true;f=false}else{u=a.call(e,"c");f=a.call(e,"e")}c={get:t,set:r,configurable:u,enumerable:f};return!s?c:n(i(s),c)}},function(e,t,r){var n=r(6);var i=r(37);var o=String.fromCharCode;var a=String.fromCodePoint;n(n.S+n.F*(!!a&&a.length!=1),"String",{fromCodePoint:function e(t){var r=[];var n=arguments.length;var a=0;var u;while(n>a){u=+arguments[a++];if(i(u,1114111)!==u)throw RangeError(u+" is not a valid code point");r.push(u<65536?o(u):o(((u-=65536)>>10)+55296,u%1024+56320))}return r.join("")}})},function(e,t,r){r(73);e.exports=r(2).String.fromCodePoint},,function(e,t,r){var n=r(6);n(n.S,"Object",{create:r(26)})},function(e,t,r){r(76);var n=r(2).Object;e.exports=function e(t,r){return n.create(t,r)}},function(e,t,r){e.exports={default:r(77),__esModule:true}},function(e,t,r){var n=r(10);var i=r(13);var o=function(e,t){i(e);if(!n(t)&&t!==null)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=r(45)(Function.call,r(34).f(Object.prototype,"__proto__").set,2);n(e,[]);t=!(e instanceof Array)}catch(e){t=true}return function e(r,i){o(r,i);if(t)r.__proto__=i;else n(r,i);return r}}({},false):undefined),check:o}},function(e,t,r){var n=r(6);n(n.S,"Object",{setPrototypeOf:r(79).set})},function(e,t,r){r(80);e.exports=r(2).Object.setPrototypeOf},function(e,t,r){e.exports={default:r(81),__esModule:true}},function(e,t,r){r(21)("observable")},function(e,t,r){r(21)("asyncIterator")},function(e,t){},function(e,t,r){var n=r(9);var i=r(35).f;var o={}.toString;var a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var u=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function e(t){return a&&o.call(t)=="[object Window]"?u(t):i(n(t))}},function(e,t,r){var n=r(38);e.exports=Array.isArray||function e(t){return n(t)=="Array"}},function(e,t,r){var n=r(25);var i=r(36);var o=r(20);e.exports=function(e){var t=n(e);var r=i.f;if(r){var a=r(e);var u=o.f;var f=0;var s;while(a.length>f)if(u.call(e,s=a[f++]))t.push(s)}return t}},function(e,t,r){var n=r(16)("meta");var i=r(10);var o=r(7);var a=r(5).f;var u=0;var f=Object.isExtensible||function(){return true};var s=!r(12)(function(){return f(Object.preve