o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1366900019.122757: @value"õ{I" class:ETI"ProcessedAsset;FI"logical_path;TI"/jquery-fileupload/vendor/canvas-to-blob.js;FI" pathname;TI"–/Users/jfriesen/.rvm/gems/ruby-2.0.0-p0@curate/gems/jquery-fileupload-rails-0.4.1/vendor/assets/javascripts/jquery-fileupload/vendor/canvas-to-blob.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-04-17T13:44:39-04:00;TI" length;TiÙ I" digest;TI"%3d965e507de799ee0944f824b37f4b0f;FI" source;TI"Ù /* * JavaScript Canvas to Blob 2.0.3 * https://github.com/blueimp/JavaScript-Canvas-to-Blob * * Copyright 2012, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT * * Based on stackoverflow user Stoive's code snippet: * http://stackoverflow.com/q/4998908 */ /*jslint nomen: true, regexp: true */ /*global window, atob, Blob, ArrayBuffer, Uint8Array, define */ (function (window) { 'use strict'; var CanvasPrototype = window.HTMLCanvasElement && window.HTMLCanvasElement.prototype, hasBlobConstructor = window.Blob && (function () { try { return Boolean(new Blob()); } catch (e) { return false; } }()), hasArrayBufferViewSupport = hasBlobConstructor && window.Uint8Array && (function () { try { return new Blob([new Uint8Array(100)]).size === 100; } catch (e) { return false; } }()), BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder, dataURLtoBlob = (hasBlobConstructor || BlobBuilder) && window.atob && window.ArrayBuffer && window.Uint8Array && function (dataURI) { var byteString, arrayBuffer, intArray, i, mimeString, bb; if (dataURI.split(',')[0].indexOf('base64') >= 0) { // Convert base64 to raw binary data held in a string: byteString = atob(dataURI.split(',')[1]); } else { // Convert base64/URLEncoded data component to raw binary data: byteString = decodeURIComponent(dataURI.split(',')[1]); } // Write the bytes of the string to an ArrayBuffer: arrayBuffer = new ArrayBuffer(byteString.length); intArray = new Uint8Array(arrayBuffer); for (i = 0; i < byteString.length; i += 1) { intArray[i] = byteString.charCodeAt(i); } // Separate out the mime component: mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0]; // Write the ArrayBuffer (or ArrayBufferView) to a blob: if (hasBlobConstructor) { return new Blob( [hasArrayBufferViewSupport ? intArray : arrayBuffer], {type: mimeString} ); } bb = new BlobBuilder(); bb.append(arrayBuffer); return bb.getBlob(mimeString); }; if (window.HTMLCanvasElement && !CanvasPrototype.toBlob) { if (CanvasPrototype.mozGetAsFile) { CanvasPrototype.toBlob = function (callback, type) { callback(this.mozGetAsFile('blob', type)); }; } else if (CanvasPrototype.toDataURL && dataURLtoBlob) { CanvasPrototype.toBlob = function (callback, type) { callback(dataURLtoBlob(this.toDataURL(type))); }; } } if (typeof define === 'function' && define.amd) { define(function () { return dataURLtoBlob; }); } else { window.dataURLtoBlob = dataURLtoBlob; } }(this)); ;TI"dependency_digest;TI"%d5c71a0f85fbc7ed744c60f68dc1e069;FI"required_paths;T[I"–/Users/jfriesen/.rvm/gems/ruby-2.0.0-p0@curate/gems/jquery-fileupload-rails-0.4.1/vendor/assets/javascripts/jquery-fileupload/vendor/canvas-to-blob.js;FI"dependency_paths;T[{I" path;TI"–/Users/jfriesen/.rvm/gems/ruby-2.0.0-p0@curate/gems/jquery-fileupload-rails-0.4.1/vendor/assets/javascripts/jquery-fileupload/vendor/canvas-to-blob.js;FI" mtime;TI"2013-04-17T13:44:39-04:00;TI" digest;TI"%1ea0ed8ea652cd0daabf377168cd7431;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F