text: /**
   * @license uploadcare-widget v3.10.2
   * 
   * Copyright (c) 2020 Uploadcare, Inc.
   * 
   * This source code is licensed under the BSD 2-Clause License 
   * found in the LICENSE file in the root directory of this source tree.
   */
  
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).uploadcare=t(e.$)}(this,(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,a){return t&&n(e.prototype,t),a&&n(e,a),e}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){o(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,i=d(e);if(t){var n=d(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return h(this,a)}}function g(e,t,a){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,a){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(i){var n=Object.getOwnPropertyDescriptor(i,t);return n.get?n.get.call(a):n.value}})(e,t,a||e)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var a=[],i=!0,n=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(i=(o=l.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(e){n=!0,r=e}finally{try{i||null==l.return||l.return()}finally{if(n)throw r}}return a}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return y(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var w=function(){return"object"===("undefined"==typeof window?"undefined":t(window))},x=Object.freeze({__proto__:null,isWindowDefined:w});w()&&window.XDomainRequest&&e.ajaxTransport((function(e){var t;if(e.crossDomain&&e.async)return e.timeout&&(e.xdrTimeout=e.timeout,delete e.timeout),{send:function(a,i){function n(e,a,n,r){t.onload=t.onerror=t.ontimeout=function(){},t=void 0,i(e,a,n,r)}(t=new XDomainRequest).onload=function(){n(200,"OK",{text:t.responseText},"Content-Type: "+t.contentType)},t.onerror=function(){n(404,"Not Found")},t.onprogress=function(){},t.ontimeout=function(){n(0,"timeout")},t.timeout=e.xdrTimeout||Number.MAX_VALUE,t.open(e.type,e.url.replace(/^https?:/,"")),t.send(e.hasContent&&e.data||null)},abort:function(){t&&(t.onerror=function(){},t.abort())}}}));var k=w()&&!!(window.File&&window.FileList&&window.FileReader),z=w()&&!(!window.FormData||!k),A=w()&&function(){var e;return"draggable"in(e=document.createElement("div"))||"ondragstart"in e&&"ondrop"in e}(),C=w()&&function(){var e;return!(!(e=document.createElement("canvas")).getContext||!e.getContext("2d"))}(),S=k&&A,F=null,T=w()&&/^[^(]+\(iP(?:hone|od|ad);\s*(.+?)\)/.exec(navigator.userAgent);if(T){var j=/OS (\d)_(\d)/.exec(T[1]);j&&(F=+j[1]+j[2]/10)}var D=!1;try{w()&&new window.Blob&&(D=window.Blob)}catch(e){}var I,P,M,O,E,U,B,R,L,V,N,q,K,W,H,G,Y,X,J,Z=w()&&(window.URL||window.webkitURL||!1),Q=Z&&Z.createObjectURL&&Z,$=w()&&(null!=window.FileReader?window.FileReader.prototype.readAsArrayBuffer:void 0)&&window.FileReader,ee=function(){var e;try{var t;return null!=(e=window.console)&&"function"==typeof e.log?(t=e).log.apply(t,arguments):void 0}catch(e){}},te=function(){var e;if(!(null!=(e=window.console)?e.debug:void 0))return ee.apply(void 0,["Debug:"].concat(Array.prototype.slice.call(arguments)));try{var t;return(t=window.console).debug.apply(t,arguments)}catch(e){}},ae=function(){var e;if(!(null!=(e=window.console)?e.warn:void 0))return ee.apply(void 0,["Warning:"].concat(Array.prototype.slice.call(arguments)));try{var t;return(t=window.console).warn.apply(t,arguments)}catch(e){}},ie={},ne=function(e){if(null==ie[e])return ie[e]=!0,ae(e)},re=[].indexOf,oe=function(e){var t,a,i,n;for(n=[],a=0,i=e.length;a<i;a++)t=e[a],re.call(n,t)<0&&n.push(t);return n},le=function(e){return setTimeout(e,0)},se=function(e,t){for(var a;t;)a=e%t,e=t,t=a;return e},ce=function(e){var t,a;return t=!1,a=null,function(){return t||(a=e.apply(this,arguments),t=!0),a}},ue=function(t){return e.Deferred().resolve(t).promise()},de=function(t,a,i,n){var r,o;return o=e.Deferred(),r=function(e,t){return e&&t?function(){return t.call(this,e.apply(this,arguments))}:e||t},t.then(r(a,o.resolve),r(i,o.reject),r(n,o.notify)),o.promise()},pe=function(t,a){var i;return i={},e.each(a,(function(a,n){var r=t[n];e.isFunction(r)?i[n]=function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];var o=r.apply(t,a);return o===t?i:o}:i[n]=r})),i},fe=function(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()},he=function(e){var t;return(t=e.add).add=e.add,t.remove=e.remove,t},me=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},ge=/^(?:([^:/?#]+):)?(?:\/\/([^/?#]*))?([^?#]*)\??([^#]*)#?(.*)$/,_e=/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i,ve=new RegExp("".concat(_e.source,"~[0-9]+"),"i"),be=new RegExp("^/?(".concat(_e.source,")(?:/(-/(?:[^/]+/)+)?([^/]*))?$"),"i"),ye=function(e){return be.exec(ge.exec(e)[3])},we=function(e){return e.replace(/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},xe=function(t){var a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i";return a=e.map(t.split("*"),we),new RegExp("^"+a.join(".+")+"$",i)},ke=function(e){var t;return"http:"!==(t=document.location.protocol)&&(t="https:"),e.replace(/^\/\//,t+"//").replace(/\/+$/,"")},ze=function(e,t){if(e.length>t){var a=Math.ceil((t-3)/2),i=Math.floor((t-3)/2);return e.slice(0,a)+"..."+e.slice(-i)}return e},Ae=function(e,t,a){var i,n;return e[0]>t[0]||e[1]>t[1]||a?(n=t[0]/e[0],i=t[1]/e[1],!t[0]||t[1]&&n>i?[Math.round(i*e[0]),t[1]]:[t[0],Math.round(n*e[1])]):e.slice()},Ce=function(t,a,i,n){var r,o,l,s,c,u,d;if(u=n.width,o=n.height,s=a.preferedSize,l="",(d=u===i[0]&&o===i[1])||(l+="-/crop/".concat(u,"x").concat(o,"/").concat(n.left,",").concat(n.top,"/")),r=a.downscale&&(u>s[0]||o>s[1]),c=a.upscale&&(u<s[0]||o<s[1]),r||c){var p=_(s,2);n.sw=p[0],n.sh=p[1],l+="-/resize/".concat(s.join("x"),"/")}else d||(l+="-/preview/");return(t=e.extend({},t)).cdnUrlModifiers=l,t.cdnUrl="".concat(t.originalUrl).concat(l||""),t.crop=n,t},Se=function(t,a,i){var n,r,o;return r=null,""===(n=a.inputAcceptTypes)&&(n=a.imagesOnly?"image/*":null),(o=function(){return r=(a.multiple?e('<input type="file" multiple>'):e('<input type="file">')).attr("accept",n).css({position:"absolute",top:0,opacity:0,margin:0,padding:0,width:"auto",height:"auto",cursor:t.css("cursor")}).on("change",(function(){return i(this),e(this).hide(),o()})),t.append(r)})(),t.css({position:"relative",overflow:"hidden"}).mousemove((function(t){var a,i,n,o=e(this).offset();return a=o.left,i=o.top,n=r.width(),r.css({left:t.pageX-a-n+10,top:t.pageY-i-10})}))},Fe=function(t,a,i){var n,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return""===(n=a.inputAcceptTypes)&&(n=a.imagesOnly?"image/*":null),e(a.multiple?'<input type="file" multiple>':'<input type="file">').attr("accept",n).attr(r).css({position:"fixed",bottom:0,opacity:0}).on("change",(function(){return i(this),e(this).remove()})).appendTo(t).focus().click().hide()},Te="B KB MB GB TB PB EB ZB YB".split(" "),je=function(e){var t,a,i,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e=parseInt(e,10),isNaN(e))return r;for(t=2,i=0,n=1e3-5*Math.pow(10,2-Math.max(t,3));e>n&&i<Te.length-1;)i++,e/=1024;return e+=1e-15,a=Math.max(0,t-Math.floor(e).toFixed(0).length),e=Number(e.toFixed(a)),"".concat(o).concat(e," ").concat(Te[i]).concat(l)},De={dataType:"json",crossDomain:!0,cache:!1},Ie=function(t,a,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e.ajax(e.extend({url:t,type:a,data:i},n,De)).then((function(t){var a;return t.error?(a=t.error.content||t.error,e.Deferred().reject(a)):t}),(function(e,a,i){var n;return n="".concat(a," (").concat(i,")"),ae("JSONP unexpected error: ".concat(n," while loading ").concat(t)),n}))},Pe=function(e,t,a,i){var n,r,o,l,s,c;if(window.HTMLCanvasElement.prototype.toBlob)return e.toBlob(i,t,a);for(o=(o=e.toDataURL(t,a)).split(","),r=window.atob(o[1]),n=new Uint8Array(r.length),l=s=0,c=r.length;s<c;l=s+=1)n[l]=r.charCodeAt(l);return i(new window.Blob([n],{type:/:(.+\/.+);/.exec(o[0])[1]}))},Me=function(e){var t,a,i;return i=0,t=[],a=function(){var e;return t.length?(e=t.shift(),le((function(){return e(a)}))):i-=1},function(n){return!e||i<e?(i+=1,le((function(){return n(a)}))):t.push(n)}},Oe=[["notify","progress",2],["resolve","done",0],["reject","fail",1]],Ee=function(t){for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n<a;n++)i[n-1]=arguments[n];return e.Deferred((function(a){return e.each(Oe,(function(n,r){var o;return o=e.isFunction(i[r[2]])&&i[r[2]],t[r[1]]((function(){var i;return(i=o&&o.apply(this,arguments))&&e.isFunction(i.promise)?i.promise().progress(a.notify).done(a.resolve).fail(a.reject):a[r[0]+"With"](this===t?a.promise():this,o?[i]:arguments)}))}))})).promise()},Ue=[].indexOf;E={live:!0,manualStart:!1,locale:null,localePluralize:null,localeTranslations:null,systemDialog:!1,crop:!1,previewStep:!1,imagesOnly:!1,clearable:!1,multiple:!1,multipleMax:1e3,multipleMin:1,multipleMaxStrict:!1,imageShrink:!1,pathValue:!0,tabs:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive",preferredTypes:"",inputAcceptTypes:"",doNotStore:!1,publicKey:null,secureSignature:"",secureExpire:"",pusherKey:"79ae88bd931ea68464d9",cdnBase:"https://ucarecdn.com",urlBase:"https://upload.uploadcare.com",socialBase:"https://social.uploadcare.com",previewProxy:null,previewUrlCallback:null,imagePreviewMaxSize:26214400,multipartMinSize:10485760,multipartPartSize:5242880,multipartMinLastPartSize:1048576,multipartConcurrency:4,multipartMaxAttempts:3,parallelDirectUploads:10,passWindowOpen:!1,cameraMirrorDefault:!0,videoPreferredMimeTypes:null,audioBitsPerSecond:null,videoBitsPerSecond:null,scriptBase:"//ucarecdn.com/widget/".concat("3.10.2","/uploadcare/"),debugUploads:!1,integration:""},Y={multipleMax:{from:0,to:1e3}},M={multipleMax:{min:1,max:1e3}},K={tabs:{all:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive box vk huddle",default:E.tabs}},W=w()&&(document.currentScript||(J=document.getElementsByTagName("script"))[J.length-1]),(R=w()&&e(W).data("integration"))&&null!=R&&(E=e.extend(E,{integration:R})),H=function(t){return e.isArray(t)||(t=(t=e.trim(t))?t.split(" "):[]),t},I=function(e,t){var a,i,n,r,o,l,s,c,u=Object.prototype.hasOwnProperty;for(a=0,o=t.length;a<o;a++){if(r=t[a],c=s=H(e[r]),u.apply(K,[r]))for(c=[],n=0,l=s.length;n<l;n++)i=s[n],u.apply(K[r],[i])?c=c.concat(H(K[r][i])):c.push(i);e[r]=oe(c)}return e},X=function(e,t){var a,i,n;for(a=0,n=t.length;a<n;a++)null!=e[i=t[a]]&&(e[i]=ke(e[i]));return e},U=function(t,a){var i,n,r,o;for(i=0,r=a.length;i<r;i++)null!=t[n=a[i]]&&("string"==typeof(o=t[n])?(o=e.trim(o).toLowerCase(),t[n]=!("false"===o||"disabled"===o)):t[n]=!!o);return t},B=function(e,t){var a,i,n;for(a=0,n=t.length;a<n;a++)null!=e[i=t[a]]&&(e[i]=parseInt(e[i]));return e},L=function(e){return e._userAgent="UploadcareWidget/".concat("3.10.2","/").concat(e.publicKey," (JavaScript").concat(e.integration?"; ".concat(e.integration):"",")"),e},G=function(e,t){var a,i;for(a in t)i=t[a],null!=e[a]&&e[a]===i.from&&(e[a]=i.to);return e},P=function(e,t){var a,i,n;for(a in t){var r=t[a];n=r.min,i=r.max,null!=e[a]&&(e[a]=Math.min(Math.max(e[a],n),i))}return e},N=function(t){var a;return{downscale:"x"===(a=/^([0-9]+)([x:])([0-9]+)\s*(|upscale|minimum)$/i.exec(e.trim(t.toLowerCase()))||[])[2],upscale:!!a[4],notLess:"minimum"===a[4],preferedSize:a.length?[+a[1],+a[3]]:void 0}},q=function(t){var a,i;return!!(a=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i.exec(e.trim(t.toLowerCase()))||[]).length&&((i=a[1]*a[2])>5e6?(ne("Shrinked size can not be larger than 5MP. "+"You have set ".concat(a[1],"x").concat(a[2]," (")+"".concat(Math.ceil(i/1e3/100)/10,"MP).")),!1):{quality:a[3]?a[3]/100:void 0,size:i})},O=function(e,t){var a,i,n,r;return this.previewProxy?(i=(n=!/\?/.test(this.previewProxy))||!/=$/.test(this.previewProxy),a=!n&&!/[&?=]$/.test(this.previewProxy),r=encodeURIComponent(e),i&&(r="url="+r),a&&(r="&"+r),n&&(r="?"+r),this.previewProxy+r):e},V=function(t){var a;return I(t,["tabs","preferredTypes","videoPreferredMimeTypes"]),X(t,["cdnBase","socialBase","urlBase","scriptBase"]),U(t,["doNotStore","imagesOnly","multiple","clearable","pathValue","previewStep","systemDialog","debugUploads","multipleMaxStrict","cameraMirrorDefault"]),B(t,["multipleMax","multipleMin","multipartMinSize","multipartPartSize","multipartMinLastPartSize","multipartConcurrency","multipartMaxAttempts","parallelDirectUploads"]),G(t,Y),P(t,M),L(t),!1===t.crop||e.isArray(t.crop)||(/^(disabled?|false|null)$/i.test(t.crop)?t.crop=!1:e.isPlainObject(t.crop)?t.crop=[t.crop]:t.crop=e.map((""+t.crop).split(","),N)),t.imageShrink&&!e.isPlainObject(t.imageShrink)&&(t.imageShrink=q(t.imageShrink)),(t.crop||t.multiple)&&(t.previewStep=!0),z||(t.systemDialog=!1),t.validators&&(t.validators=t.validators.slice()),t.previewProxy&&!t.previewUrlCallback&&(t.previewUrlCallback=O),-1!==(a=t.tabs.indexOf("skydrive"))&&(t.tabs[a]="onedrive"),t};var Be,Re=function(){var e,t,a;for(e in t={},E)null!=(a=window["UPLOADCARE_".concat(fe(e))])&&(t[e]=a);return t},Le=ce((function(t,a){var i;return a||(E=e.extend(E,Re())),i=V(e.extend(E,t||{})),Ne.fire(i),i})),Ve=function(t){var a;return a=e.extend({},Le()),e.isEmptyObject(t)||(a=V(e.extend(a,t))),a},Ne=w()&&e.Callbacks("once memory"),qe=function(){function e(){a(this,e),this.urls=[],this.styles=[]}return r(e,[{key:"addUrl",value:function(e){if(!/^https?:\/\//i.test(e))throw new Error("Embedded urls should be absolute. "+e);if(!(Ue.call(this.urls,e)>=0))return this.urls.push(e)}},{key:"addStyle",value:function(e){return this.styles.push(e)}}]),e}(),Ke=function(t,a){var i;return i=e.Deferred(),a&&(t.src=a),t.complete?i.resolve(t):(e(t).one("load",(function(){return i.resolve(t)})),e(t).one("error",(function(){return i.reject(t)}))),i.promise()},We=function t(a){return e.isArray(a)?e.when.apply(null,e.map(a,t)):a.src?Ke(a):Ke(new window.Image,a)},He=function(t){var a=e.Deferred();return e("<video/>").on("loadeddata",a.resolve).on("error",a.reject).attr("src",t).get(0).load(),a.promise()},Ge=function(){var t=e.Deferred();if(void 0!==Be)t.resolve(Be);else{var a=new window.Image;a.onload=function(){Be=a.naturalWidth<a.naturalHeight,a.src="//:0",t.resolve(Be)},a.src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k="}return t.promise()},Ye=w()&&window.DataView,Xe=Me(1),Je=function(t,a){var i;return i=e.Deferred(),Q&&Ye&&D?(Xe((function(n){var r;return i.always(n),(r=We(Q.createObjectURL(t))).always((function(e){return Q.revokeObjectURL(e.src)})),r.fail((function(){return i.reject("not image")})),r.done((function(n){i.notify(.1);var o=e.when(tt(t),Ge()).always((function(e,t){var l;return i.notify(.2),l="resolved"===o.state(),(r=Ze(n,a)).progress((function(e){return i.notify(.2+.6*e)})),r.fail(i.reject),r.done((function(n){var o,s;return o="image/jpeg",s=a.quality||.8,!l&&rt(n)&&(o="image/png",s=void 0),Pe(n,o,s,(function(a){return n.width=n.height=1,i.notify(.9),e?(t&&at(e,1),(r=et(a,225,[e.buffer])).done(i.resolve),r.fail((function(){return i.resolve(a)}))):i.resolve(a)}))})),null,null}));return o}))})),i.promise()):i.reject("support")},Ze=function(t,a){var i,n,r,o,l,s,c,u,d;return i=e.Deferred(),.71,.71*t.width*t.height*.71<a.size?i.reject("not required"):(u=r=t.width,c=t.height,o=u/c,d=Math.floor(Math.sqrt(a.size*o)),n=Math.floor(a.size/Math.sqrt(a.size*o)),5e6,4096,l=function(){if(!(u<=d))return le((function(){var e;return u=Math.round(.71*u),c=Math.round(.71*c),.71*u<d&&(u=d,c=n),u*c>5e6&&(u=Math.floor(Math.sqrt(5e6*o)),c=Math.floor(5e6/Math.sqrt(5e6*o))),u>4096&&(u=4096,c=Math.round(u/o)),c>4096&&(c=4096,u=Math.round(o*c)),(e=document.createElement("canvas")).width=u,e.height=c,e.getContext("2d").drawImage(t,0,0,u,c),t.src="//:0",t.width=t.height=1,t=e,i.notify((r-u)/(r-d)),l()}));i.resolve(t)},s=function(){var e,a;return(e=document.createElement("canvas")).width=d,e.height=n,(a=e.getContext("2d")).imageSmoothingQuality="high",a.drawImage(t,0,0,d,n),t.src="//:0",t.width=t.height=1,i.resolve(e)},"imageSmoothingQuality"in document.createElement("canvas").getContext("2d")?s():l(),i.promise())},Qe=function(t,a,i,n,r){var o,l;return o=e.Deferred(),Q?((l=We(Q.createObjectURL(t))).always((function(e){return Q.revokeObjectURL(e.src)})),l.fail((function(){return o.reject("not image")})),l.done((function(l){return o.always((function(){l.src="//:0"})),r&&l.width*l.height>r?o.reject("max source"):e.when(tt(t),Ge()).always((function(e,t){var r=t?1:it(e)||1,s=r>4,c=s?[l.height,l.width]:[l.width,l.height],u=_(Ae(c,[a,i]),2),d=u[0],p=u[1],f=[[1,0,0,1,0,0],[-1,0,0,1,d,0],[-1,0,0,-1,d,p],[1,0,0,-1,0,p],[0,1,1,0,0,0],[0,1,-1,0,d,0],[0,-1,-1,0,d,p],[0,-1,1,0,0,p]][r-1];if(!f)return o.reject("bad image");var h=document.createElement("canvas");h.width=d,h.height=p;var m=h.getContext("2d");if(m.transform.apply(m,f),s){var g=[p,d];d=g[0],p=g[1]}return n&&(m.fillStyle=n,m.fillRect(0,0,d,p)),m.drawImage(l,0,0,d,p),o.resolve(h,c)}))})),o.promise()):o.reject("support")},$e=function(t){var a,i,n,r,o;return o=function(e,t){var i;return(i=new $).onload=function(){return t(new Ye(i.result))},i.onerror=function(e){return a.reject("reader",e)},i.readAsArrayBuffer(e)},n=function(){return o(t.slice(i,i+128),(function(e){var t,a,n;for(t=a=0,n=e.byteLength;n>=0?a<n:a>n;t=n>=0?++a:--a)if(255===e.getUint8(t)){i+=t;break}return r()}))},r=function(){var e;return e=i,o(t.slice(i,i+=4),(function(r){var l,s;return 4!==r.byteLength||255!==r.getUint8(0)?a.reject("corrupted"):218===(s=r.getUint8(1))?a.resolve():(l=r.getUint16(2)-2,o(t.slice(i,i+=l),(function(t){return t.byteLength!==l?a.reject("corrupted"):(a.notify(e,l,s,t),n())})))}))},a=e.Deferred(),$&&Ye?(i=2,o(t.slice(0,2),(function(e){return 65496!==e.getUint16(0)?a.reject("not jpeg"):n()})),a.promise()):a.reject("support")},et=function(t,a,i){var n,r,o,l;return n=e.Deferred(),o=[],r=[],(l=$e(t)).fail(n.reject),l.progress((function(e,t,i){if(i===a)return o.push(e),r.push(t)})),l.done((function(){var e,l,s,c,u,d,p,f,h;for(p=[t.slice(0,2)],c=0,d=i.length;c<d;c++)e=i[c],(s=new Ye(new ArrayBuffer(4))).setUint16(0,65280+a),s.setUint16(2,e.byteLength+2),p.push(s.buffer),p.push(e);for(f=2,l=u=0,h=o.length;h>=0?u<h:u>h;l=h>=0?++u:--u)o[l]>f&&p.push(t.slice(f,o[l])),f=o[l]+r[l]+4;return p.push(t.slice(f,t.size)),n.resolve(new D(p,{type:t.type}))})),n.promise()},tt=function(t){var a,i;return a=null,(i=$e(t)).progress((function(e,t,i,n){if(!a&&225===i&&n.byteLength>=14&&1165519206===n.getUint32(0)&&0===n.getUint16(4))return a=n})),i.then((function(){return a}),(function(t){return e.Deferred().reject(a,t)}))},at=function(e,t){nt(e,(function(a,i){return e.setUint16(a,t,i)}))},it=function(e){return nt(e,(function(t,a){return e.getUint16(t,a)}))},nt=function(e,t){var a,i,n,r;if(!e||e.byteLength<14||1165519206!==e.getUint32(0)||0!==e.getUint16(4))return null;if(18761===e.getUint16(6))i=!0;else{if(19789!==e.getUint16(6))return null;i=!1}if(42!==e.getUint16(8,i))return null;for(n=8+e.getUint32(10,i),a=0,r=e.getUint16(n-2,i);r>=0?a<r:a>r;r>=0?++a:--a){if(e.byteLength<n+10)return null;if(274===e.getUint16(n,i))return t(n+8,i);n+=12}return null},rt=function(e){var t,a,i,n,r,o;for(50,(t=document.createElement("canvas")).width=t.height=50,(a=t.getContext("2d")).drawImage(e,0,0,50,50),i=a.getImageData(0,0,50,50).data,t.width=t.height=1,n=r=3,o=i.length;r<o;n=r+=4)if(i[n]<254)return!0;return!1},ot=function(){function t(e,i){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(this,t),this.settings=i,this.sourceInfo=r,this.fileId=null,this.fileName=null,this.sanitizedName=null,this.fileSize=null,this.isStored=null,this.cdnUrlModifiers=null,this.isImage=null,this.imageInfo=null,this.mimeType=null,this.s3Bucket=null,(n=this.sourceInfo).source||(n.source=this.sourceName),this.__setupValidation(),this.__initApi()}return r(t,[{key:"__startUpload",value:function(){return e.Deferred().resolve()}},{key:"__completeUpload",value:function(){var e,t,a,i,n=this;return a=0,this.settings.debugUploads&&(te("Load file info.",this.fileId,this.settings.publicKey),t=setInterval((function(){return te("Still waiting for file ready.",a,n.fileId,n.settings.publicKey)}),5e3),this.apiDeferred.done((function(){return te("File uploaded.",a,n.fileId,n.settings.publicKey)})).always((function(){return clearInterval(t)}))),i=100,(e=function(){if("pending"===n.apiDeferred.state())return a+=1,n.__updateInfo().done((function(){return setTimeout(e,i),i+=50}))})()}},{key:"__updateInfo",value:function(){var e=this;return Ie("".concat(this.settings.urlBase,"/info/"),"GET",{jsonerrors:1,file_id:this.fileId,pub_key:this.settings.publicKey,wait_is_ready:+(null===this.isImage)},{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail((function(t){return e.settings.debugUploads&&ee("Can't load file info. Probably removed.",e.fileId,e.settings.publicKey,t),e.__rejectApi("info")})).done(this.__handleFileData.bind(this))}},{key:"__handleFileData",value:function(e){if(this.fileName=e.original_filename,this.sanitizedName=e.filename,this.fileSize=e.size,this.isImage=e.is_image,this.imageInfo=e.image_info,this.mimeType=e.mime_type,this.isStored=e.is_stored,this.s3Bucket=e.s3_bucket,e.default_effects&&(this.cdnUrlModifiers="-/"+e.default_effects),this.s3Bucket&&this.cdnUrlModifiers&&this.__rejectApi("baddata"),this.__runValidators(),e.is_ready)return this.__resolveApi()}},{key:"__progressInfo",value:function(){var e;return{state:this.__progressState,uploadProgress:this.__progress,progress:"ready"===(e=this.__progressState)||"error"===e?1:.9*this.__progress,incompleteFileInfo:this.__fileInfo()}}},{key:"__fileInfo",value:function(){var e;return e=this.s3Bucket?"https://".concat(this.s3Bucket,".s3.amazonaws.com/").concat(this.fileId,"/").concat(this.sanitizedName):"".concat(this.settings.cdnBase,"/").concat(this.fileId,"/"),{uuid:this.fileId,name:this.fileName,size:this.fileSize,isStored:this.isStored,isImage:!this.s3Bucket&&this.isImage,originalImageInfo:this.imageInfo,mimeType:this.mimeType,originalUrl:this.fileId?e:null,cdnUrl:this.fileId?"".concat(e).concat(this.cdnUrlModifiers||""):null,cdnUrlModifiers:this.cdnUrlModifiers,sourceInfo:this.sourceInfo}}},{key:"__setupValidation",value:function(){if(this.validators=this.settings.validators||this.settings.__validators||[],this.settings.imagesOnly)return this.validators.push((function(e){if(!1===e.isImage)throw new Error("image")}))}},{key:"__runValidators",value:function(){var e,t,a,i,n,r,o;a=this.__fileInfo();try{for(n=this.validators,r=[],t=0,i=n.length;t<i;t++)o=n[t],r.push(o(a));return r}catch(t){return e=t,this.__rejectApi(e.message)}}},{key:"__initApi",value:function(){return this.apiDeferred=e.Deferred(),this.__progressState="uploading",this.__progress=0,this.__notifyApi()}},{key:"__notifyApi",value:function(){return this.apiDeferred.notify(this.__progressInfo())}},{key:"__rejectApi",value:function(e){return this.__progressState="error",this.__notifyApi(),this.apiDeferred.reject(e,this.__fileInfo())}},{key:"__resolveApi",value:function(){return this.__progressState="ready",this.__notifyApi(),this.apiDeferred.resolve(this.__fileInfo())}},{key:"__cancel",value:function(){return this.__rejectApi("user")}},{key:"__extendApi",value:function(e){var t=this;return e.cancel=this.__cancel.bind(this),e.pipe=e.then=function(){for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];return t.__extendApi(Ee.apply(void 0,[e].concat(i)))},e}},{key:"promise",value:function(){var e,t=this;return this.__apiPromise||(this.__apiPromise=this.__extendApi(this.apiDeferred.promise()),this.__runValidators(),"pending"===this.apiDeferred.state()&&((e=this.__startUpload()).done((function(){return t.__progressState="uploaded",t.__progress=1,t.__notifyApi(),t.__completeUpload()})),e.progress((function(e){if(e>t.__progress)return t.__progress=e,t.__notifyApi()})),e.fail((function(){return t.__rejectApi("upload")})),this.apiDeferred.always(e.reject))),this.__apiPromise}}]),t}(),lt=null,st=function(t){u(n,t);var i=m(n);function n(e){var t;return a(this,n),(t=i.apply(this,arguments)).__file=e,t.fileName=t.__file.name||"original",t.__notifyApi(),t}return r(n,[{key:"setFile",value:function(e){if(e&&(this.__file=e),this.sourceInfo.file=this.__file,this.__file)return this.fileSize=this.__file.size,this.fileType=this.__file.type||"application/octet-stream",this.settings.debugUploads&&te("Use local file.",this.fileName,this.fileType,this.fileSize),this.__runValidators(),this.__notifyApi()}},{key:"__startUpload",value:function(){var t,a,i,n=this;return this.apiDeferred.always((function(){return n.__file=null,n.__file})),this.__file.size>=this.settings.multipartMinSize&&D?(this.setFile(),this.multipartUpload()):(a=F,!this.settings.imageShrink||a&&a<8?(this.setFile(),this.directUpload()):(t=e.Deferred(),i=.4,Je(this.__file,this.settings.imageShrink).progress((function(e){return t.notify(e*i)})).done(this.setFile.bind(this)).fail((function(){return n.setFile(),i*=.1})).always((function(){return t.notify(i),n.directUpload().done(t.resolve).fail(t.reject).progress((function(e){return t.notify(i+e*(1-i))}))})),t))}},{key:"__autoAbort",value:function(e){return this.apiDeferred.fail(e.abort),e}},{key:"directRunner",value:function(e){return lt||(lt=Me(this.settings.parallelDirectUploads)),lt(e)}},{key:"directUpload",value:function(){var t,a=this;return t=e.Deferred(),this.__file?this.fileSize>104857600?(this.__rejectApi("size"),t):(this.directRunner((function(i){var n;if(t.always(i),"pending"===a.apiDeferred.state())return(n=new window.FormData).append("UPLOADCARE_PUB_KEY",a.settings.publicKey),n.append("signature",a.settings.secureSignature),n.append("expire",a.settings.secureExpire),n.append("UPLOADCARE_STORE",a.settings.doNotStore?"":"auto"),n.append("file",a.__file,a.fileName),n.append("file_name",a.fileName),n.append("source",a.sourceInfo.source),a.__autoAbort(e.ajax({xhr:function(){var a;return a=e.ajaxSettings.xhr(),a.upload&&a.upload.addEventListener("progress",(function(e){return t.notify(e.loaded/e.total)}),!1),a},crossDomain:!0,type:"POST",url:"".concat(a.settings.urlBase,"/base/?jsonerrors=1"),headers:{"X-UC-User-Agent":a.settings._userAgent},contentType:!1,processData:!1,data:n,dataType:"json",error:t.reject,success:function(e){return(null!=e?e.file:void 0)?(a.fileId=e.file,t.resolve()):t.reject()}}))})),t):(this.__rejectApi("baddata"),t)}},{key:"multipartUpload",value:function(){var t,a=this;return t=e.Deferred(),this.__file?(this.multipartStart().done((function(e){return a.uploadParts(e.parts,e.uuid).done((function(){return a.multipartComplete(e.uuid).done((function(e){return a.fileId=e.uuid,a.__handleFileData(e),t.resolve()})).fail(t.reject)})).progress(t.notify).fail(t.reject)})).fail(t.reject),t):t}},{key:"multipartStart",value:function(){var e,t=this;return e={UPLOADCARE_PUB_KEY:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,filename:this.fileName,source:this.sourceInfo.source,size:this.fileSize,content_type:this.fileType,part_size:this.settings.multipartPartSize,UPLOADCARE_STORE:this.settings.doNotStore?"":"auto"},this.__autoAbort(Ie("".concat(this.settings.urlBase,"/multipart/start/?jsonerrors=1"),"POST",e,{headers:{"X-UC-User-Agent":this.settings._userAgent}})).fail((function(a){if(t.settings.debugUploads)return ee("Can't start multipart upload.",a,e)}))}},{key:"uploadParts",value:function(t,a){var i,n,r,o,l,s,c,u,d,p,f=this;for(l=[],o=Date.now(),p=function(e,t){var a,n,r;if(l[e]=t,!(Date.now()-o<250)){for(o=Date.now(),r=0,a=0,n=l.length;a<n;a++)r+=t=l[a];return i.notify(r/f.fileSize)}},i=e.Deferred(),n=0,d=0,u=0,c=function(){var r,o,s,h,m;if(!(u>=f.fileSize))return s=u+f.settings.multipartPartSize,f.fileSize<s+f.settings.multipartMinLastPartSize&&(s=f.fileSize),o=f.__file.slice(u,s),u=s,h=d,n+=1,d+=1,r=0,(m=function(){if("pending"===f.apiDeferred.state())return l[h]=0,f.__autoAbort(e.ajax({xhr:function(){var t;return t=e.ajaxSettings.xhr(),t.responseType="text",t.upload&&t.upload.addEventListener("progress",(function(e){return p(h,e.loaded)}),!1),t},url:t[h],crossDomain:!0,type:"PUT",processData:!1,contentType:f.fileType,data:o,error:function(){return(r+=1)>f.settings.multipartMaxAttempts?(f.settings.debugUploads&&ee("Part #".concat(h," and file upload is failed."),a),i.reject()):(f.settings.debugUploads&&te("Part #".concat(h,"(").concat(r,") upload is failed."),a),m())},success:function(){if(n-=1,c(),!n)return i.resolve()}}))})()},r=0,s=this.settings.multipartConcurrency;s>=0?r<s:r>s;s>=0?++r:--r)c();return i}},{key:"multipartComplete",value:function(e){var t,a=this;return t={UPLOADCARE_PUB_KEY:this.settings.publicKey,uuid:e},this.__autoAbort(Ie("".concat(this.settings.urlBase,"/multipart/complete/?jsonerrors=1"),"POST",t,{headers:{"X-UC-User-Agent":this.settings._userAgent}})).fail((function(t){if(a.settings.debugUploads)return ee("Can't complete multipart upload.",e,a.settings.publicKey,t)}))}}]),n}(ot);st.prototype.sourceName="local";var ct=function(t){u(n,t);var i=m(n);function n(t){var r;return a(this,n),(r=i.apply(this,arguments)).__input=t,r.fileId=me(),r.fileName=e(r.__input).val().split("\\").pop(),r.__notifyApi(),r}return r(n,[{key:"__startUpload",value:function(){var t,a,i,n;return t=e.Deferred(),n="".concat(this.settings.urlBase,"/iframe/"),i="uploadcare--iframe-".concat(this.fileId),this.__iframe=e("<iframe>").attr({id:i,name:i}).css("display","none").appendTo("body").on("load",t.resolve).on("error",t.reject),a=function(t,a){return e("<input/>",{type:"hidden",name:t,value:a})},e(this.__input).attr("name","file"),this.__iframeForm=e("<form>").attr({method:"POST",action:n,enctype:"multipart/form-data",target:i}).append(a("UPLOADCARE_PUB_KEY",this.settings.publicKey)).append(a("UPLOADCARE_SIGNATURE",this.settings.secureSignature)).append(a("UPLOADCARE_EXPIRE",this.settings.secureExpire)).append(a("UPLOADCARE_FILE_ID",this.fileId)).append(a("UPLOADCARE_STORE",this.settings.doNotStore?"":"auto")).append(a("UPLOADCARE_SOURCE",this.sourceInfo.source)).append(this.__input).css("display","none").appendTo("body").submit(),t.always(this.__cleanUp.bind(this))}},{key:"__cleanUp",value:function(){var e,t;return null!=(e=this.__iframe)&&e.off("load error").remove(),null!=(t=this.__iframeForm)&&t.remove(),this.__iframe=null,this.__iframeForm=null,this.__iframeForm}}]),n}(ot);ct.prototype.sourceName="local-compat";var ut=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){
  /*!
     * Pusher JavaScript Library v1.12.2
     * http://pusherapp.com/
     *
     * Copyright 2011, Pusher
     * Released under the MIT licence.
     */
  var a=x.isWindowDefined;(function(){var e,t;(e=function(t,a){this.options=a||{},this.key=t,this.channels=new e.Channels,this.global_emitter=new e.EventsDispatcher;var i=this;this.checkAppKey(),this.connection=new e.Connection(this.key,this.options),this.connection.bind("connected",(function(){i.subscribeAll()})).bind("message",(function(e){var t,a=0===e.event.indexOf("pusher_internal:");e.channel&&(t=i.channel(e.channel))&&t.emit(e.event,e.data),a||i.global_emitter.emit(e.event,e.data)})).bind("disconnected",(function(){i.channels.disconnect()})).bind("error",(function(t){e.warn("Error",t)})),e.instances.push(this),e.isReady&&i.connect()}).instances=[],e.prototype={channel:function(e){return this.channels.find(e)},connect:function(){this.connection.connect()},disconnect:function(){this.connection.disconnect()},bind:function(e,t){return this.global_emitter.bind(e,t),this},bind_all:function(e){return this.global_emitter.bind_all(e),this},subscribeAll:function(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)},subscribe:function(e){var t=this,a=this.channels.add(e,this);return"connected"===this.connection.state&&a.authorize(this.connection.socket_id,this.options,(function(i,n){i?a.emit("pusher:subscription_error",n):t.send_event("pusher:subscribe",{channel:e,auth:n.auth,channel_data:n.channel_data})})),a},unsubscribe:function(e){this.channels.remove(e),"connected"===this.connection.state&&this.send_event("pusher:unsubscribe",{channel:e})},send_event:function(e,t,a){return this.connection.send_event(e,t,a)},checkAppKey:function(){null!==this.key&&void 0!==this.key||e.warn("Warning","You must pass your app key when you instantiate Pusher.")}},e.Util={extend:function e(t,a){for(var i in a)a[i]&&a[i].constructor&&a[i].constructor===Object?t[i]=e(t[i]||{},a[i]):t[i]=a[i];return t},stringify:function(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):null==window.JSON?e.push(arguments[t].toString()):e.push(JSON.stringify(arguments[t]));return e.join(" : ")},arrayIndexOf:function(e,t){var a=Array.prototype.indexOf;if(null==e)return-1;if(a&&e.indexOf===a)return e.indexOf(t);for(i=0,l=e.length;i<l;i++)if(e[i]===t)return i;return-1}},e.debug=function(){e.log&&e.log(e.Util.stringify.apply(this,arguments))},e.warn=function(){if(window.console&&window.console.warn)window.console.warn(e.Util.stringify.apply(this,arguments));else{if(!e.log)return;e.log(e.Util.stringify.apply(this,arguments))}},e.VERSION="1.12.2",e.host="ws.pusherapp.com",e.ws_port=80,e.wss_port=443,e.channel_auth_endpoint="/pusher/auth",e.cdn_http="http://js.pusher.com/",e.cdn_https="https://d3dy5gmtp8yhk7.cloudfront.net/",e.dependency_suffix=".min",e.channel_auth_transport="ajax",e.activity_timeout=12e4,e.pong_timeout=3e4,e.isReady=!1,e.ready=function(){e.isReady=!0;for(var t=0,a=e.instances.length;t<a;t++)e.instances[t].connect()},function(){function t(){this._callbacks={}}function a(e){this.callbacks=new t,this.global_callbacks=[],this.failThrough=e}t.prototype.get=function(e){return this._callbacks[this._prefix(e)]},t.prototype.add=function(e,t){var a=this._prefix(e);this._callbacks[a]=this._callbacks[a]||[],this._callbacks[a].push(t)},t.prototype.remove=function(t,a){if(this.get(t)){var i=e.Util.arrayIndexOf(this.get(t),a);this._callbacks[this._prefix(t)].splice(i,1)}},t.prototype._prefix=function(e){return"_"+e},a.prototype.bind=function(e,t){return this.callbacks.add(e,t),this},a.prototype.unbind=function(e,t){return this.callbacks.remove(e,t),this},a.prototype.emit=function(e,t){for(var a=0;a<this.global_callbacks.length;a++)this.global_callbacks[a](e,t);var i=this.callbacks.get(e);if(i)for(a=0;a<i.length;a++)i[a](t);else this.failThrough&&this.failThrough(e,t);return this},a.prototype.bind_all=function(e){return this.global_callbacks.push(e),this},e.EventsDispatcher=a}(),function(){function t(e,t,a){void 0!==t[e]&&t[e](a)}function a(t,a,i){e.EventsDispatcher.call(this),this.state=void 0,this.errors=[],this.stateActions=i,this.transitions=a,this.transition(t)}a.prototype.transition=function(a,i){var n,r=this.state,o=this.stateActions;if(r&&-1==e.Util.arrayIndexOf(this.transitions[r],a))throw this.emit("invalid_transition_attempt",{oldState:r,newState:a}),new Error("Invalid transition ["+r+" to "+a+"]");t(r+"Exit",o,i),t(r+"To"+((n=a).substr(0,1).toUpperCase()+n.substr(1)),o,i),t(a+"Pre",o,i),this.state=a,this.emit("state_change",{oldState:r,newState:a}),t(a+"Post",o,i)},a.prototype.is=function(e){return this.state===e},a.prototype.isNot=function(e){return this.state!==e},e.Util.extend(a.prototype,e.EventsDispatcher.prototype),e.Machine=a}(),(t=function(){var t=this;e.EventsDispatcher.call(this),void 0!==window.addEventListener&&(window.addEventListener("online",(function(){t.emit("online",null)}),!1),window.addEventListener("offline",(function(){t.emit("offline",null)}),!1))}).prototype.isOnLine=function(){return void 0===window.navigator.onLine||window.navigator.onLine},e.Util.extend(t.prototype,e.EventsDispatcher.prototype),e.NetInfo=t,function(){var t={initialized:["waiting","failed"],waiting:["connecting","permanentlyClosed"],connecting:["open","permanentlyClosing","impermanentlyClosing","waiting"],open:["connected","permanentlyClosing","impermanentlyClosing","waiting"],connected:["permanentlyClosing","waiting"],impermanentlyClosing:["waiting","permanentlyClosing"],permanentlyClosing:["permanentlyClosed"],permanentlyClosed:["waiting","failed"],failed:["permanentlyClosed"]};function a(t){t.connectionWait=0,"flash"===e.TransportType?t.openTimeout=5e3:t.openTimeout=2e3,t.connectedTimeout=2e3,t.connectionSecure=t.compulsorySecure,t.connectionAttempts=0}function i(i,n){var r=this;function o(){r.connectionWait<1e4&&(r.connectionWait+=2e3),r.openTimeout<1e4&&(r.openTimeout+=2e3),r.connectedTimeout<1e4&&(r.connectedTimeout+=2e3),!0!==r.compulsorySecure&&(r.connectionSecure=!r.connectionSecure),r.connectionAttempts++}function l(){r._machine.transition("impermanentlyClosing")}function s(){r._activityTimer&&clearTimeout(r._activityTimer),r._activityTimer=setTimeout((function(){r.send_event("pusher:ping",{}),r._activityTimer=setTimeout((function(){r.socket.close()}),r.options.pong_timeout||e.pong_timeout)}),r.options.activity_timeout||e.activity_timeout)}function c(){r._machine.transition("open")}function u(e){var t,a,i=p(e);void 0!==i&&("pusher:connection_established"===i.event?r._machine.transition("connected",i.data.socket_id):"pusher:error"===i.event&&(t=i.data.code,a=i.data.message,r.emit("error",{type:"PusherError",data:{code:t,message:a}}),4e3===t?(r.compulsorySecure=!0,r.connectionSecure=!0,r.options.encrypted=!0,l()):t<4100?r._machine.transition("permanentlyClosing"):t<4200?(r.connectionWait=1e3,r._machine.transition("waiting")):t<4300?l():r._machine.transition("permanentlyClosing")))}function d(t){s();var a=p(t);if(void 0!==a){switch(e.debug("Event recd",a),a.event){case"pusher:error":r.emit("error",{type:"PusherError",data:a.data});break;case"pusher:ping":r.send_event("pusher:pong",{})}r.emit("message",a)}}function p(e){try{var t=JSON.parse(e.data);if("string"==typeof t.data)try{t.data=JSON.parse(t.data)}catch(e){if(!(e instanceof SyntaxError))throw e}return t}catch(t){r.emit("error",{type:"MessageParseError",error:t,data:e.data})}}function f(){r._machine.transition("waiting")}function h(e){r.emit("error",{type:"WebSocketError",error:e})}function m(t,a){var i=r.state;r.state=t,i!==t&&(e.debug("State changed",i+" -> "+t),r.emit("state_change",{previous:i,current:t}),r.emit(t,a))}e.EventsDispatcher.call(this),this.options=e.Util.extend({encrypted:!1},n),this.netInfo=new e.NetInfo,this.netInfo.bind("online",(function(){r._machine.is("waiting")&&(r._machine.transition("connecting"),m("connecting"))})),this.netInfo.bind("offline",(function(){r._machine.is("connected")&&(r.socket.onclose=void 0,r.socket.onmessage=void 0,r.socket.onerror=void 0,r.socket.onopen=void 0,r.socket.close(),r.socket=void 0,r._machine.transition("waiting"))})),this._machine=new e.Machine("initialized",t,{initializedPre:function(){r.compulsorySecure=r.options.encrypted,r.key=i,r.socket=null,r.socket_id=null,r.state="initialized"},waitingPre:function(){r.connectionWait>0&&r.emit("connecting_in",r.connectionWait),r.netInfo.isOnLine()&&r.connectionAttempts<=4?m("connecting"):m("unavailable"),r.netInfo.isOnLine()&&(r._waitingTimer=setTimeout((function(){r._machine.transition("connecting")}),function(){var e=r.connectionWait;if(0===e&&r.connectedAt){var t=(new Date).getTime()-r.connectedAt;t<1e3&&(e=1e3-t)}return e}()))},waitingExit:function(){clearTimeout(r._waitingTimer)},connectingPre:function(){if(!1===r.netInfo.isOnLine())return r._machine.transition("waiting"),void m("unavailable");var t=function(t,a){var i=e.ws_port,n="ws://";(a||"https:"===document.location.protocol)&&(i=e.wss_port,n="wss://");var r="flash"===e.TransportType?"true":"false";return n+e.host+":"+i+"/app/"+t+"?protocol=5&client=js&version="+e.VERSION+"&flash="+r}(r.key,r.connectionSecure);e.debug("Connecting",t),r.socket=new e.Transport(t),r.socket.onopen=c,r.socket.onclose=f,r.socket.onerror=h,r._connectingTimer=setTimeout(l,r.openTimeout)},connectingExit:function(){clearTimeout(r._connectingTimer),r.socket.onopen=void 0},connectingToWaiting:function(){o()},connectingToImpermanentlyClosing:function(){o()},openPre:function(){r.socket.onmessage=u,r.socket.onerror=h,r.socket.onclose=f,r._openTimer=setTimeout(l,r.connectedTimeout)},openExit:function(){clearTimeout(r._openTimer),r.socket.onmessage=void 0},openToWaiting:function(){o()},openToImpermanentlyClosing:function(){o()},connectedPre:function(e){r.socket_id=e,r.socket.onmessage=d,r.socket.onerror=h,r.socket.onclose=f,a(r),r.connectedAt=(new Date).getTime(),s()},connectedPost:function(){m("connected")},connectedExit:function(){r._activityTimer&&clearTimeout(r._activityTimer),m("disconnected")},impermanentlyClosingPost:function(){r.socket&&(r.socket.onclose=f,r.socket.close())},permanentlyClosingPost:function(){r.socket?(r.socket.onclose=function(){a(r),r._machine.transition("permanentlyClosed")},r.socket.close()):(a(r),r._machine.transition("permanentlyClosed"))},failedPre:function(){m("failed"),e.debug("WebSockets are not available in this browser.")},permanentlyClosedPost:function(){m("disconnected")}})}i.prototype.connect=function(){this._machine.is("failed")||e.Transport?this._machine.is("initialized")?(a(this),this._machine.transition("waiting")):this._machine.is("waiting")&&!0===this.netInfo.isOnLine()?this._machine.transition("connecting"):this._machine.is("permanentlyClosed")&&(a(this),this._machine.transition("waiting")):this._machine.transition("failed")},i.prototype.send=function(e){if(this._machine.is("connected")){var t=this;return setTimeout((function(){t.socket.send(e)}),0),!0}return!1},i.prototype.send_event=function(t,a,i){var n={event:t,data:a};return i&&(n.channel=i),e.debug("Event sent",n),this.send(JSON.stringify(n))},i.prototype.disconnect=function(){this._machine.is("permanentlyClosed")||(this._machine.is("waiting")||this._machine.is("failed")?this._machine.transition("permanentlyClosed"):this._machine.transition("permanentlyClosing"))},e.Util.extend(i.prototype,e.EventsDispatcher.prototype),e.Connection=i}(),function(){e.Channels=function(){this.channels={}},e.Channels.prototype={add:function(t,a){var i=this.find(t);if(i)return i;var n=e.Channel.factory(t,a);return this.channels[t]=n,n},find:function(e){return this.channels[e]},remove:function(e){delete this.channels[e]},disconnect:function(){for(var e in this.channels)this.channels[e].disconnect()}},e.Channel=function(t,a){var i=this;e.EventsDispatcher.call(this,(function(a,i){e.debug("No callbacks on "+t+" for "+a)})),this.pusher=a,this.name=t,this.subscribed=!1,this.bind("pusher_internal:subscription_succeeded",(function(e){i.onSubscriptionSucceeded(e)}))},e.Channel.prototype={init:function(){},disconnect:function(){this.subscribed=!1,this.emit("pusher_internal:disconnected")},onSubscriptionSucceeded:function(e){this.subscribed=!0,this.emit("pusher:subscription_succeeded")},authorize:function(e,t,a){return a(!1,{})},trigger:function(e,t){return this.pusher.send_event(e,t,this.name)}},e.Util.extend(e.Channel.prototype,e.EventsDispatcher.prototype),e.Channel.PrivateChannel={authorize:function(t,a,i){var n=this;return new e.Channel.Authorizer(this,e.channel_auth_transport,a).authorize(t,(function(e,t){e||n.emit("pusher_internal:authorized",t),i(e,t)}))}},e.Channel.PresenceChannel={init:function(){this.members=new t(this)},onSubscriptionSucceeded:function(e){this.subscribed=!0}};var t=function(e){var t=this,a=function(){this._members_map={},this.count=0,this.me=null};a.call(this),e.bind("pusher_internal:authorized",(function(a){var i=JSON.parse(a.channel_data);e.bind("pusher_internal:subscription_succeeded",(function(a){t._members_map=a.presence.hash,t.count=a.presence.count,t.me=t.get(i.user_id),e.emit("pusher:subscription_succeeded",t)}))})),e.bind("pusher_internal:member_added",(function(a){null===t.get(a.user_id)&&t.count++,t._members_map[a.user_id]=a.user_info,e.emit("pusher:member_added",t.get(a.user_id))})),e.bind("pusher_internal:member_removed",(function(a){var i=t.get(a.user_id);i&&(delete t._members_map[a.user_id],t.count--,e.emit("pusher:member_removed",i))})),e.bind("pusher_internal:disconnected",(function(){a.call(t)}))};t.prototype={each:function(e){for(var t in this._members_map)e(this.get(t))},get:function(e){return this._members_map.hasOwnProperty(e)?{id:e,info:this._members_map[e]}:null}},e.Channel.factory=function(t,a){var i=new e.Channel(t,a);return 0===t.indexOf("private-")?e.Util.extend(i,e.Channel.PrivateChannel):0===t.indexOf("presence-")&&(e.Util.extend(i,e.Channel.PrivateChannel),e.Util.extend(i,e.Channel.PresenceChannel)),i.init(),i}}(),e.Channel.Authorizer=function(e,t,a){this.channel=e,this.type=t,this.authOptions=(a||{}).auth||{}},e.Channel.Authorizer.prototype={composeQuery:function(e){var t="&socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name);for(var a in this.authOptions.params)t+="&"+encodeURIComponent(a)+"="+encodeURIComponent(this.authOptions.params[a]);return t},authorize:function(t,a){return e.authorizers[this.type].call(this,t,a)}},e.auth_callbacks={},e.authorizers={ajax:function(t,a){var i;for(var n in(i=e.XHR?new e.XHR:window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).open("POST",e.channel_auth_endpoint,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.authOptions.headers)i.setRequestHeader(n,this.authOptions.headers[n]);return i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status){var t,n=!1;try{t=JSON.parse(i.responseText),n=!0}catch(e){a(!0,"JSON returned from webapp was invalid, yet status code was 200. Data was: "+i.responseText)}n&&a(!1,t)}else e.warn("Couldn't get auth info from your webapp",i.status),a(!0,i.status)},i.send(this.composeQuery(t)),i},jsonp:function(t,a){void 0!==this.authOptions.headers&&e.warn("Warn","To send headers with the auth request, you must use AJAX, rather than JSONP.");var i=document.createElement("script");e.auth_callbacks[this.channel.name]=function(e){a(!1,e)};var n="Pusher.auth_callbacks['"+this.channel.name+"']";i.src=e.channel_auth_endpoint+"?callback="+encodeURIComponent(n)+this.composeQuery(t);var r=document.getElementsByTagName("head")[0]||document.documentElement;r.insertBefore(i,r.firstChild)}};var n=function(){function e(e,t){var a=document.getElementsByTagName("head")[0],i=document.createElement("script");i.setAttribute("src",e),i.setAttribute("type","text/javascript"),i.setAttribute("async",!0),function(e,t){document.addEventListener?e.addEventListener("load",t,!1):e.attachEvent("onreadystatechange",(function(){"loaded"!=e.readyState&&"complete"!=e.readyState||t()}))}(i,(function(){t()})),a.appendChild(i)}return function(t,a){for(var i=0,n=0;n<t.length;n++)e(t[n],(function(){t.length==++i&&setTimeout(a,0)}))}}();!function(){a()&&!window.WebSocket&&window.MozWebSocket&&(window.WebSocket=window.MozWebSocket),a()&&window.WebSocket&&(e.Transport=window.WebSocket,e.TransportType="native");var t=(a()&&("http:"==document.location.protocol?e.cdn_http:e.cdn_https))+e.VERSION,i=[];a()&&!window.JSON&&i.push(t+"/json2"+e.dependency_suffix+".js"),a()&&!window.WebSocket&&(window.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION=!0,i.push(t+"/flashfallback"+e.dependency_suffix+".js"));var r=a()&&window.WebSocket?function(){e.ready()}:function(){window.WebSocket?(e.Transport=window.WebSocket,e.TransportType="flash",window.WEB_SOCKET_SWF_LOCATION="https://s3.amazonaws.com/uploadcare-static/WebSocketMainInsecure.swf",WebSocket.__addTask((function(){e.ready()})),WebSocket.__initialize()):(e.Transport=null,e.TransportType="none",e.ready())},o=function(){var e;e=r,function t(){a()&&(document.body?e():setTimeout(t,0))}()};i.length>0?n(i,o):o()}(),this.Pusher=e}).call(t)})).Pusher,dt={};ut.prototype.constructor=ut;var pt=function(t){u(n,t);var i=m(n);function n(){return a(this,n),i.apply(this,arguments)}return r(n,[{key:"subscribe",value:function(e){return this.disconnectTimeout&&(clearTimeout(this.disconnectTimeout),this.disconnectTimeout=null),this.connect(),g(d(n.prototype),"subscribe",this).apply(this,arguments)}},{key:"unsubscribe",value:function(t){var a=this;g(d(n.prototype),"unsubscribe",this).apply(this,arguments),e.isEmptyObject(this.channels.channels)&&(this.disconnectTimeout=setTimeout((function(){return a.disconnectTimeout=null,a.disconnect()}),5e3))}}]),n}(ut),ft=function(e){return null==dt[e]&&(dt[e]=new pt(e)),dt[e].connect(),dt[e]},ht=function(t){u(n,t);var i=m(n);function n(e){var t,r;if(a(this,n),(t=i.apply(this,arguments)).__url=e,r=ge.exec(t.__url)[3].split("/").pop())try{t.fileName=decodeURIComponent(r)}catch(e){t.fileName=r}return t.__notifyApi(),t}return r(n,[{key:"setName",value:function(e){return this.fileName=e,this.__realFileName=e,this.__notifyApi()}},{key:"setIsImage",value:function(e){return this.isImage=e,this.__notifyApi()}},{key:"__startUpload",value:function(){var t,a,i,n,r=this;return a=e.Deferred(),n=new mt(this.settings),i=new gt(this.settings),t={pub_key:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,source_url:this.__url,filename:this.__realFileName||"",source:this.sourceInfo.source,store:this.settings.doNotStore?"":"auto",jsonerrors:1},le((function(){if("pending"===r.apiDeferred.state())return Ie("".concat(r.settings.urlBase,"/from_url/"),"GET",t,{headers:{"X-UC-User-Agent":r.settings._userAgent}}).fail((function(e){return r.settings.debugUploads&&te("Can't start upload from URL.",e,t),a.reject()})).done((function(t){var o;if("pending"===r.apiDeferred.state())return r.settings.debugUploads&&(te("Start watchers.",t.token),o=setInterval((function(){return te("Still watching.",t.token)}),5e3),a.done((function(){return te("Stop watchers.",t.token)})).always((function(){return clearInterval(o)}))),r.__listenWatcher(a,e([n,i])),a.always((function(){return e([n,i]).off(r.allEvents),n.stopWatching(),i.stopWatching()})),e(n).one(r.allEvents,(function(){if(i.interval)return r.settings.debugUploads&&te("Start using pusher.",t.token),i.stopWatching()})),n.watch(t.token),i.watch(t.token)}))})),a}},{key:"__listenWatcher",value:function(t,a){var i=this;return a.on("progress",(function(e,a){return i.fileSize=a.total,t.notify(a.done/a.total)})).on("success",(function(a,n){return e(a.target).trigger("progress",n),i.fileId=n.uuid,i.__handleFileData(n),t.resolve()})).on("error fail",t.reject)}}]),n}(ot);ht.prototype.sourceName="url",ht.prototype.allEvents="progress success error fail";var mt=function(){function t(e){a(this,t),this.settings=e;try{this.pusher=ft(this.settings.pusherKey)}catch(e){this.pusher=null}}return r(t,[{key:"watch",value:function(t){var a=this;if(this.token=t,this.pusher)return this.pusher.subscribe("task-status-".concat(this.token)).bind_all((function(t,i){return e(a).trigger(t,i)}))}},{key:"stopWatching",value:function(){if(this.pusher)return this.pusher.unsubscribe("task-status-".concat(this.token))}}]),t}(),gt=function(){function t(e){a(this,t),this.settings=e,this.poolUrl="".concat(this.settings.urlBase,"/from_url/status/")}return r(t,[{key:"watch",value:function(e){var t=this;this.token=e;return function e(){return t.interval=setTimeout((function(){t.__updateStatus().done((function(){t.interval&&e()}))}),333),t.interval}()}},{key:"stopWatching",value:function(){return this.interval&&clearTimeout(this.interval),this.interval=null,this.interval}},{key:"__updateStatus",value:function(){var t=this;return Ie(this.poolUrl,"GET",{token:this.token},{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail((function(a){return e(t).trigger("error")})).done((function(a){return e(t).trigger(a.status,a)}))}}]),t}(),_t=function(e){u(i,e);var t=m(i);function i(e){var n,r;return a(this,i),n=t.apply(this,arguments),(r=ye(e))?(n.fileId=r[1],r[2]&&(n.cdnUrlModifiers=r[2])):n.__rejectApi("baddata"),n}return i}(ot);_t.prototype.sourceName="uploaded";var vt=function(e){u(i,e);var t=m(i);function i(e){var n;return a(this,i),n=t.apply(this,arguments),e?(n.fileId=e.uuid,n.__handleFileData(e)):n.__rejectApi("deleted"),n}return i}(ot);vt.prototype.sourceName="uploaded";var bt={object:st,input:ct,url:ht,uploaded:_t,ready:vt},yt=function(e,t,a){return wt(e,[t],a)[0]},wt=function(t,a,i){var n,r,o,l,s;for(i=Ve(i||{}),s=[],n=0,o=a.length;n<o;n++)l=a[n],r=void 0,e.isArray(l)&&(r=l[1],l=l[0]),s.push(new bt[t](l,i,r).promise());return s},xt=function(e){return e&&e.done&&e.fail&&e.cancel},kt=function(e,t){return e&&!xt(e)&&(e=yt("uploaded",e,t)),e||null},zt=function(e){return e&&e.files&&e.promise},At=function(t,a){var i,n;if(t)if(e.isArray(t))i=function(){var e,i,r;for(r=[],e=0,i=t.length;e<i;e++)n=t[e],r.push(kt(n,a));return r}(),t=Rt(i,a);else if(!zt(t))return Lt(t,a);return ue(t||null)},Ct=function(e,t){var a,i,n,r,o;if(e===t)return!0;if(!zt(e)||!zt(t))return!1;if(a=e.files(),i=t.files(),a.length!==i.length)return!1;for(n=r=0,o=a.length;r<o;n=++r)if(a[n]!==i[n])return!1;return!0},St=[].indexOf,Ft=function(){function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a(this,t),this.onAdd=e.Callbacks(),this.onRemove=e.Callbacks(),this.onSort=e.Callbacks(),this.onReplace=e.Callbacks(),this.__items=[],n||this.init(i)}return r(t,[{key:"init",value:function(e){var t,a,i;for(a=0,i=e.length;a<i;a++)t=e[a],this.add(t)}},{key:"add",value:function(e){return this.__add(e,this.__items.length)}},{key:"__add",value:function(e,t){return this.__items.splice(t,0,e),this.onAdd.fire(e,t)}},{key:"remove",value:function(t){var a;if(-1!==(a=e.inArray(t,this.__items)))return this.__remove(t,a)}},{key:"__remove",value:function(e,t){return this.__items.splice(t,1),this.onRemove.fire(e,t)}},{key:"clear",value:function(){var e,t,a,i,n,r;for(a=this.get(),this.__items.length=0,r=[],e=i=0,n=a.length;i<n;e=++i)t=a[e],r.push(this.onRemove.fire(t,e));return r}},{key:"replace",value:function(t,a){var i;if(t!==a&&-1!==(i=e.inArray(t,this.__items)))return this.__replace(t,a,i)}},{key:"__replace",value:function(e,t,a){return this.__items[a]=t,this.onReplace.fire(e,t,a)}},{key:"sort",value:function(e){return this.__items.sort(e),this.onSort.fire()}},{key:"get",value:function(e){return null!=e?this.__items[e]:this.__items.slice(0)}},{key:"length",value:function(){return this.__items.length}}]),t}(),Tt=function(e){u(i,e);var t=m(i);function i(){return a(this,i),t.apply(this,arguments)}return r(i,[{key:"add",value:function(e){if(!(St.call(this.__items,e)>=0))return g(d(i.prototype),"add",this).apply(this,arguments)}},{key:"__replace",value:function(e,t,a){return St.call(this.__items,t)>=0?this.remove(e):g(d(i.prototype),"__replace",this).apply(this,arguments)}}]),i}(Ft),jt=function(t){u(n,t);var i=m(n);function n(){var t,r;return a(this,n),(r=i.call.apply(i,[this].concat(Array.prototype.slice.call(arguments),[!0]))).anyDoneList=e.Callbacks(),r.anyFailList=e.Callbacks(),r.anyProgressList=e.Callbacks(),r._thenArgs=null,r.anyProgressList.add((function(t,a){return e(t).data("lastProgress",a)})),g((t=f(r),d(n.prototype)),"init",t).call(t,arguments[0]),r}return r(n,[{key:"onAnyDone",value:function(e){var t,a,i,n,r;for(this.anyDoneList.add(e),r=[],a=0,i=(n=this.__items).length;a<i;a++)"resolved"===(t=n[a]).state()?r.push(t.done((function(){for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];return e.apply(void 0,[t].concat(i))}))):r.push(void 0);return r}},{key:"onAnyFail",value:function(e){var t,a,i,n,r;for(this.anyFailList.add(e),r=[],a=0,i=(n=this.__items).length;a<i;a++)"rejected"===(t=n[a]).state()?r.push(t.fail((function(){for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];return e.apply(void 0,[t].concat(i))}))):r.push(void 0);return r}},{key:"onAnyProgress",value:function(t){var a,i,n,r,o;for(this.anyProgressList.add(t),o=[],i=0,n=(r=this.__items).length;i<n;i++)a=r[i],o.push(t(a,e(a).data("lastProgress")));return o}},{key:"lastProgresses",value:function(){var t,a,i,n,r;for(r=[],a=0,i=(n=this.__items).length;a<i;a++)t=n[a],r.push(e(t).data("lastProgress"));return r}},{key:"add",value:function(e){if(e&&e.then){var t;if(this._thenArgs)e=(t=e).then.apply(t,v(this._thenArgs));return g(d(n.prototype),"add",this).call(this,e),this.__watchItem(e)}}},{key:"__replace",value:function(e,t,a){return t&&t.then?(g(d(n.prototype),"__replace",this).apply(this,arguments),this.__watchItem(t)):this.remove(e)}},{key:"__watchItem",value:function(e){var t=this,a=function(a){return function(){if(St.call(t.__items,e)>=0){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return a.fire.apply(a,[e].concat(n))}}};return e.then(a(this.anyDoneList),a(this.anyFailList),a(this.anyProgressList))}},{key:"autoThen",value:function(){var e,t,a,i,n,r;if(this._thenArgs)throw new Error("CollectionOfPromises.then() could be used only once");for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];for(this._thenArgs=l,r=[],e=a=0,i=(n=this.__items).length;a<i;e=++a){var c;t=n[e],r.push(this.__replace(t,(c=t).then.apply(c,v(this._thenArgs)),e))}return r}}]),n}(Tt),Dt={ar:{translations:{uploading:"جاري الرفع... الرجاء الانتظار",loadingInfo:"جار تحميل المعلومات ...",errors:{default:"خطأ",baddata:"قيمة غير صحيحة",size:"ملف كبير جداً",upload:"يتعذر الرفع",user:"تم إلغاء الرفع",info:"يتعذر تحميل المعلومات",image:"يسمح بالصور فقط",createGroup:"لا يمكن إنشاء مجموعة ملفات",deleted:"تم حذف الملف"},draghere:"أسقط ملف هنا",file:{one:"%1 ملف",other:"%1 ملفات"},buttons:{cancel:"إلغاء",remove:"إزالة",choose:{files:{one:"اختر ملف",other:"اختر ملفات"},images:{one:"اختر صورة",other:"اختر صور"}}},dialog:{close:"أغلق",openMenu:"افتح القائمة",done:"موافق",showFiles:"اظهار الملفات",tabs:{names:{"empty-pubkey":"مرحبا!",preview:"معاينة",file:"ملفات محلية",url:"رابط مباشر",camera:"كاميرا",facebook:"فيس بوك",dropbox:"دروب بوكس",gdrive:"جوجل دريف",gphotos:"صور غوغل",instagram:"إينستجرام",vk:"في كي",evernote:"إيفرنوت",box:"بوكس",onedrive:"ون درايف",flickr:"فليكر",huddle:"هادل"},file:{drag:"سحب وإفلات<br>أي ملف",nodrop:"رفع ملفات من&nbsp;الحاسوب",cloudsTip:"مخازن على السحابة<br>والشبكات الاجتماعية",or:"أو",button:"اختر ملف محلي",also:"أو اختر من"},url:{title:"ملفات من شبكة الإنترنت",line1:"التقاط أي ملف من على شبكة الإنترنت",line2:"فقط قم بتوفير الرابط",input:"الصق الرابط هنا...",button:"رفع"},camera:{title:"ملف من كاميرا الويب",capture:"التقاط صورة",mirror:"عكس الصورة",startRecord:"سجل فيديو",stopRecord:"توقف",cancelRecord:"إلغاء",retry:"طلب الإذن مرة أخرى",pleaseAllow:{title:"يرجى السماح بالوصول إلى الكاميرا",text:"تمت مطالبتك بالسماح بالدخول إلى الكاميرا من هذا الموقع<br>من أجل التقاط الصور من الكاميرا يجب عليك الموافقة على هذا الطلب"},notFound:{title:"لم يتم اكتشاف أي كاميرا",text:"يبدو أنه ليس لديك كاميرا متصلة بهذا الجهاز"}},preview:{unknownName:"غير معروف",change:"إلغاء",back:"الرجوع",done:"إضافة",unknown:{title:"جار الرفع ... يرجى الانتظار للحصول على معاينة",done:"تخطي المعاينة والقبول"},regular:{title:"إضافة هذا الملف؟",line1:"أنت على وشك إضافة الملف أعلاه",line2:"يرجى التأكيد"},image:{title:"إضافة هذة الصورة",change:"إلغاء"},crop:{title:"قص وإضافة هذه الصورة",done:"موافق",free:"حر"},video:{title:"إضافة هذا الفيديو",change:"إلغاء"},error:{default:{title:"عفوا آسف",text:"حدث خطأ أثناء الرفع",back:"حاول مرة اخرى"},image:{title:"يتم قبول ملفات الصور فقط",text:"الرجاء إعادة المحاولة باستخدام ملف آخر",back:"اختر صورة"},size:{title:"الملف الذي حددتة يتجاوز الحد المسموح بة",text:"الرجاء إعادة المحاولة باستخدام ملف آخر"},loadImage:{title:"خطأ",text:"لا يمكن تحميل الصورة"}},multiple:{title:"لقد اخترت %files%",question:"إضافة %files%?",tooManyFiles:"لقد اخترت عددا كبيرا جدا من الملفات %max% هو الحد الأقصى",tooFewFiles:"لقد اخترت %files%. على الأقل %min% مطلوب",clear:"حذف الكل",done:"إضافة",file:{preview:"معاينة %file%",remove:"حذف %file%"}}}},footer:{text:"مدعوم بواسطة",link:"ابلود كير"}}},pluralize:function(e){var t;return 0===e?"zero":1===e?"one":2===e?"two":(t=e%100)>=3&&t<=10?"few":t>=11&&t<=99?"many":"other"}},az:{translations:{uploading:"Yüklənilir... Lütfən, gözləyin.",loadingInfo:"İnfo yüklənilir...",errors:{default:"Xəta",baddata:"Yanlış dəyər",size:"Fayl çox böyükdür",upload:"Yüklənilə bilmədi",user:"Yükləmə ləğv edildi",info:"İnfo yüklənə bilmədi",image:"Yalnız təsvirlərə icazə verilir",createGroup:"Fayl qrupu yaradıla bilmir",deleted:"Fayl silindi"},draghere:"Faylı bura atın",file:{one:"%1 fayl",other:"%1 fayl"},buttons:{cancel:"Ləğv edin",remove:"Silin",choose:{files:{one:"Fayl seçin",other:"Fayllar seçin"},images:{one:"Təsvir seçin",other:"Təsvirlər seçin"}}},dialog:{done:"Hazırdır",showFiles:"Faylları göstərin",tabs:{names:{"empty-pubkey":"Xoş gəlmisiniz",preview:"Önbaxış",file:"Lokal Fayllar",url:"İxtiyari linklər",camera:"Kamera",gdrive:"Google Disk"},file:{drag:"Faylı bura atın",nodrop:"Kompüterinizdən faylları yükləyin",cloudsTip:"Bulud yaddaşlar <br>və sosial xidmətlər",or:"or",button:"Lokal fayl seçin",also:"Həmçinin, buradan seçə bilərsiniz"},url:{title:"Vebdən fayllar",line1:"Vebdən istənilən faylı götürün.",line2:"Sadəcə, link verin.",input:"Linkinizi bura yerləşdirin...",button:"Yükləyin"},camera:{capture:"Şəkil çəkin",mirror:"Güzgü",retry:"Yenidən icazə sorğusu göndərin.",pleaseAllow:{title:"Lütfən, kameranıza giriş hüququ verin",text:"Bu saytdan kameranıza daxil olmaq icazəsi verildi. Kameranız ilə şəkil çəkmək üçün bu sorğunu təsdiq etməlisiniz."},notFound:{title:"Kamera aşkar edilmədi",text:"Görünür, bu cihaza kamera qoşulmayıb."}},preview:{unknownName:"naməlum",change:"Ləğv edin",back:"Geri",done:"Əlavə edin",unknown:{title:"Yüklənilir... Lütfən, önbaxış üçün gözləyin.",done:"Önbaxışı ötürün və qəbul edin"},regular:{title:"Bu fayl əlavə edilsin?",line1:"Yuxarıdakı faylı əlavə etmək üzrəsiniz.",line2:"Lütfən, təsdiq edin."},image:{title:"Bu təsvir əlavə edilsin?",change:"Ləğv edin"},crop:{title:"Bu təsviri kəsin və əlavə edin",done:"Hazırdır",free:"pulsuz"},error:{default:{title:"Ups!",text:"Yükləmə zamanı nəsə xəta baş verdi.",back:"Lütfən, y enidən cəhd edin."},image:{title:"Yaınız təsvir faylları qəbul olunur.",text:"Lütfən, başqa fayl ilə cəhd edin.",back:"Təsvir seçin"},size:{title:"Seçdiyiniz fayl limiti keçir.",text:"Lütfən, başqa fayl ilə cəhd edin."},loadImage:{title:"Xəta",text:"Təsvir yüklənilə bilmir"}},multiple:{title:"%files% fayl seçdiniz.",question:"Bütün bu faylları əlavə etmək istəyirsiniz?",tooManyFiles:"Həddindən çox fayl seçdiniz. %max% maksimumdur.",tooFewFiles:"%files% fayl seçdiniz. Ən azı %min% tələb olunur.",clear:"Hamısını silin",done:"Hazırdır"}}}}},pluralize:function(e){return"other"}},ca:{translations:{uploading:"Carregant... Si us plau esperi.",loadingInfo:"Carregant informació...",errors:{default:"Error",baddata:"Valor incorrecte",size:"Massa gran",upload:"No s'ha pogut carregar",user:"Carrega cancel·lada",info:"No s'ha pogut carregar la informació",image:"Només es permeten imatges",createGroup:"No es pot crear el grup d'arxius",deleted:"Fitxer eliminat"},draghere:"Arrossega els fitxers fins aquí",file:{one:"%1 fitxer",other:"%1 fitxers"},buttons:{cancel:"Cancel·lar",remove:"Eliminar",choose:{files:{one:"Escull un fitxer",other:"Escull fitxers"},images:{one:"Escull una imatge",other:"Escull imatges"}}},dialog:{done:"Fet",showFiles:"Mostra fitxers",tabs:{names:{"empty-pubkey":"Benvingut",preview:"Avanci",file:"Ordinador",url:"Enllaços arbitraris",camera:"Càmera"},file:{drag:"Arrossega un fitxer aquí",nodrop:"Carrega fitxers des del teu ordinador",cloudsTip:"Emmagatzematge al núvol<br>i xarxes socials",or:"o",button:"Escull un fitxer des del teu ordinador",also:"També pots seleccionar-lo de"},url:{title:"Fitxers de la web",line1:"Selecciona qualsevol fitxer de la web.",line2:"Només proporcioni el link.",input:"Copiï el link aquí...",button:"Pujar"},camera:{capture:"Realitza una foto",mirror:"Mirall",retry:"Demanar permisos una altra vegada",pleaseAllow:{title:"Si us plau, permet accés a la teva càmera",text:"Aquest lloc t'ha demanat de permetre accés a la càmera. Per tal de realitzar imatges amb la teva càmera has d'acceptar aquesta petició."},notFound:{title:"No s'ha detectat cap càmera",text:"Sembla que no tens cap càmera connectada a aquest dispositiu."}},preview:{unknownName:"desconegut",change:"Cancel·lar",back:"Endarrere",done:"Pujar",unknown:{title:"Carregant. Si us plau esperi per la visualització prèvia.",done:"Saltar visualització prèvia i acceptar"},regular:{title:"Vols pujar aquest fitxer?",line1:"Estàs a punt de pujar el fitxer superior.",line2:"Confirmi, si us plau."},image:{title:"Vols pujar aquesta imatge?",change:"Cancel·lar"},crop:{title:"Tallar i pujar aquesta imatge",done:"Fet",free:"lliure"},error:{default:{title:"La pujada ha fallat!",text:"S'ha produït un error durant la pujada.",back:"Si us plau, provi-ho de nou."},image:{title:"Només s'accepten fitxers d'imatges.",text:"Si us plau, provi-ho de nou amb un altre fitxer.",back:"Escull imatge"},size:{title:"La mida del fitxer que has seleccionat sobrepassa el límit.",text:"Si us plau, provi-ho de nou amb un altre fitxer."},loadImage:{title:"Error",text:"No s'ha pogut carregar la imatge"}},multiple:{title:"N'has escollit %files%",question:"Vols afegir tots aquests fitxers?",tooManyFiles:"Has escollit massa fitxers. %max% és el màxim.",tooFewFiles:"Has escollit %files%. Com a mínim en calen %min%.",clear:"Eliminar-los tots",done:"Fet"}}}}},pluralize:function(e){return 1===e?"one":"other"}},cs:{translations:{uploading:"Nahrávám... Malý moment.",loadingInfo:"Nahrávám informace...",errors:{default:"Chyba",baddata:"Neplatná hodnota",size:"Soubor je příliš velký",upload:"Nelze nahrát",user:"Nahrávání zrušeno",info:"Nelze nahrát informace",image:"Lze nahrát pouze obrázky",createGroup:"Nelze vytvořit adresář",deleted:"Soubor byl smazán"},draghere:"Přetáhněte soubor sem",file:{one:"%1 soubor",few:"%1 soubory",many:"%1 souborů"},buttons:{cancel:"Zrušit",remove:"Odstranit",choose:{files:{one:"Vyberte soubor",other:"Vyberte soubory"},images:{one:"Vyberte obrázek",other:"Vyberte obrázky"}}},dialog:{done:"Hotovo",showFiles:"Zobrazit soubory",tabs:{names:{"empty-pubkey":"Vítejte",preview:"Náhled",file:"Soubor z počítače",url:"Soubor z internetu",camera:"Webkamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Přetáhněte soubor sem",nodrop:"Nahrajte soubory z vašeho počítače",cloudsTip:"Cloudové úložiště<br>a sociální sítě",or:"nebo",button:"Vyberte soubor z počítače",also:"Můžete také nahrát soubor z"},url:{title:"Soubory z internetu",line1:"Nahrajte jakýkoliv soubor z internetu.",line2:"Stačí vložit odkaz.",input:"Odkaz vložte zde...",button:"Nahrát"},camera:{capture:"Pořídit fotografii",mirror:"Zrcadlo",retry:"Znovu požádat o povolení",pleaseAllow:{title:"Prosím povolte přístup k webkameře",text:"Byl(a) jste požádán(a) o přístup k webkameře. Abyste mohl(a) pořídit fotografii, musíte přístup povolit."},notFound:{title:"Nebyla nalezena webkamera",text:"Zdá se, že k tomuto zařízení není připojena žádná webkamera."}},preview:{unknownName:"neznámý",change:"Zrušit",back:"Zpět",done:"Přidat",unknown:{title:"Nahrávám... Prosím vyčkejte na náhled.",done:"Přeskočit náhled a odeslat"},regular:{title:"Přidat tento soubor?",line1:"Tímto přidáte výše vybraný soubor.",line2:"Prosím potvrďte."},image:{title:"Přidat tento obrázek?",change:"Zrušit"},crop:{title:"Oříznout a přidat tento obrázek",done:"Hotovo",free:"zdarma"},error:{default:{title:"Jejda!",text:"Něco se v průběhu nahrávání nepodařilo.",back:"Zkuste to prosím znovu."},image:{title:"Lze nahrávat pouze obrázky.",text:"Zkuste to prosím s jiným souborem.",back:"Vyberte obrázek"},size:{title:"Soubor přesahuje povolenou velikost.",text:"Prosím zkuste to s jiným souborem."},loadImage:{title:"Chyba",text:"Nelze nahrát obrázek"}},multiple:{title:"Bylo vybráno %files% souborů",question:"Chcete přidat všechny tyto soubory?",tooManyFiles:"Bylo vybráno moc souborů. Maximum je %max%",tooFewFiles:"Bylo vybráno %files% souborů. Musíte vybrat minimálně %min%",clear:"Odstranit vše",done:"Hotovo"}}}}},pluralize:function(e){return 1===e?"one":e>=2&&e<=4?"few":"many"}},da:{translations:{uploading:"Uploader... Vent venligst.",loadingInfo:"Henter information...",errors:{default:"Fejl",baddata:"Forkert værdi",size:"Filen er for stor",upload:"Kan ikke uploade / sende fil",user:"Upload fortrudt",info:"Kan ikke hente information",image:"Kun billeder er tilladt",createGroup:"Kan ikke oprette fil gruppe",deleted:"Filen blev slettet"},draghere:"Drop en fil her",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Annuller",remove:"Fjern",choose:{files:{one:"Vælg en fil",other:"Vælg filer"},images:{one:"Vælg et billede",other:"Vælg billeder"}}},dialog:{done:"Færdig",showFiles:"Vis filer",tabs:{names:{preview:"Vis",file:"Computer",gdrive:"Google Drev",url:"Direkte link"},file:{drag:"Drop en fil her",nodrop:"Hent filer fra din computer",or:"eller",button:"Hent fil fra din computer",also:"Du kan også hente fra"},url:{title:"Filer fra en Web adresse",line1:"Vælg en fil fra en web adresse.",line2:"Skriv bare linket til filen.",input:"Indsæt link her...",button:"Upload / Send"},preview:{unknownName:"ukendt",change:"Annuller",back:"Tilbage",done:"Fortsæt",unknown:{title:"Uploader / sender... Vent for at se mere.",done:"Fortsæt uden at vente på resultat"},regular:{title:"Tilføje fil?",line1:"Du er ved at tilføje filen ovenfor.",line2:"Venligst accepter."},image:{title:"Tilføj billede?",change:"Annuller"},crop:{title:"Beskær og tilføj dette billede",done:"Udfør"},error:{default:{title:"Hov!",text:"Noget gik galt under upload.",back:"Venligst prøv igen"},image:{title:"Du kan kun vælge billeder.",text:"Prøv igen med en billedfil.",back:"Vælg billede"},size:{title:"Den fil du valgte, er desværre større end tilladt.",text:"Venligst prøv med en mindre fil."},loadImage:{title:"Fejl",text:"Kan ikke åbne billede"}},multiple:{title:"Du har valgt %files% filer",question:"Vil du tilføje alle disse filer?",tooManyFiles:"Du har valgt for mange filer. %max% er maximum.",tooFewFiles:"Du har valgt %files% filer. Men du skal vælge mindst %min%.",clear:"Fjern alle",done:"Fortsæt"}}}}},pluralize:function(e){return 1===e?"one":"other"}},de:{translations:{uploading:"Upload läuft… Bitte warten…",loadingInfo:"Informationen werden geladen…",errors:{default:"Fehler",baddata:"Falscher Wert",size:"Datei zu groß",upload:"Kann nicht hochgeladen werden",user:"Hochladen abgebrochen",info:"Informationen können nicht geladen werden",image:"Nur Bilder sind erlaubt",createGroup:"Datei-Gruppe kann nicht erstellt werden",deleted:"Datei wurde gelöscht"},draghere:"Ziehen Sie eine Datei hierhin",file:{one:"%1 Datei",other:"%1 Dateien"},buttons:{cancel:"Abbrechen",remove:"Löschen",choose:{files:{one:"Datei auswählen",other:"Dateien auswählen"},images:{one:"Bild auswählen",other:"Bilder auswählen"}}},dialog:{close:"Schließen",openMenu:"Menü öffnen",done:"Fertig",showFiles:"Dateien anzeigen",tabs:{names:{"empty-pubkey":"Willkommen",preview:"Vorschau",file:"Lokale Dateien",url:"Web-Links",camera:"Kamera"},file:{drag:"Ziehen Sie eine Datei hierhin",nodrop:"Laden Sie Dateien von Ihrem PC hoch",cloudsTip:"Cloud-Speicher<br>und soziale Dienste",or:"oder",button:"Wählen Sie eine Datei",also:"Sie können sie auch Dateien wählen aus"},url:{title:"Eine Datei aus dem Web hochladen",line1:"Sie können eine Datei aus dem Internet hochladen.",line2:"Geben Sie hier einfach den Link ein.",input:"Bitte geben Sie hier den Link ein…",button:"Hochladen"},camera:{title:"Foto mit Webcam aufnehmen",capture:"Machen Sie ein Foto",mirror:"Andere Kamera",retry:"Berechtigungen erneut anfordern",pleaseAllow:{title:"Bitte erlauben Sie den Zugriff auf Ihre Kamera",text:"Sie wurden gebeten, dieser Website den Zugriff auf Ihre Kamera zu erlauben. Um mit Ihrer Kamera Fotos machen zu können, müssen Sie diese Erlaubnis erteilen."},notFound:{title:"Keine Kamera gefunden",text:"Es sieht so aus, als hätten Sie keine Kamera an dieses Gerät angeschlossen."}},preview:{unknownName:"nicht bekannt",change:"Abbrechen",back:"Zurück",done:"Hinzufügen",unknown:{title:"Upload läuft… Bitte warten Sie auf die Vorschau.",done:"Vorschau überspringen und Datei annehmen"},regular:{title:"Diese Datei hinzufügen?",line1:"Diese Datei wird nun hinzugefügt.",line2:"Bitte bestätigen Sie."},image:{title:"Nur Bilder sind akzeptiert.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei.",back:"Bild wählen"},error:{default:{title:"Oops!",text:"Etwas ist während dem Hochladen schief gelaufen.",back:"Bitte versuchen Sie es erneut"},image:{title:"Nur Bilder sind akzeptiert.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei.",back:"Bild wählen"},size:{title:"Die gewählte Datei ist zu groß.",text:"Bitte versuchen Sie es erneut mit einer anderen Datei."},loadImage:{title:"Fehler",text:"Das Bild kann nicht geladen werden"}},multiple:{title:"Sie haben %files% Dateien gewählt",question:"Möchten Sie all diese Dateien hinzufügen?",tooManyFiles:"Sie haben zu viele Dateien gewählt. %max% ist das Maximum.",tooFewFiles:"Sie haben %files% Dateien gewählt. Es sind mindestens %min% nötig.",clear:"Alle löschen",done:"Fertig",file:{preview:"Vorschau: %file%",remove:"Datei löschen: %file%"}}}}}},pluralize:function(e){return 1===e?"one":"other"}},el:{translations:{loadingInfo:"Φόρτωση πληροφοριών...",errors:{default:"Σφάλμα",baddata:"Λανθασμένη αξία",size:"Πολύ μεγάλο αρχείο",upload:"Δεν μπορεί να γίνει φόρτωση",user:"Η φόρτωση ακυρώθηκε",info:"Δεν μπορούν να φορτωθούν πληροφορίες",image:"Μόνο εικόνες επιτρέπονται",createGroup:"Δεν μπορεί να δημιουργηθεί ομάδα αρχείων",deleted:"Το αρχείο διαγράφηκε"},uploading:"Φόρτωση... Παρακαλούμε περιμένετε.",draghere:"Αποθέστε ένα αρχείο εδώ",file:{one:"%1 αρχείο",other:"%1 αρχεία"},buttons:{cancel:"Ακύρωση",remove:"Κατάργηση",choose:{files:{one:"Επιλέξτε ένα αρχείο",other:"Επιλέξτε αρχεία"},images:{one:"Επιλέξτε μία εικόνα",other:"Επιλέξτε εικόνες"}}},dialog:{close:"Κλείσιμο",openMenu:"Άνοιγμα μενού",done:"Εντάξει",showFiles:"Προβολή αρχείων",tabs:{names:{"empty-pubkey":"Καλώς ήρθατε",preview:"Προεπισκόπηση",file:"Τοπικά αρχεία",url:"Απευθείας σύνδεσμος",camera:"Κάμερα",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",gphotos:"Google Photos",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"σύρετε & αποθέστε<br>οποιαδήποτε αρχεία",nodrop:"Φορτώστε αρχεία από τον&nbsp;υπολογιστή σας",cloudsTip:"Αποθήκευση νέφους<br>και κοινωνικά δίκτυα",or:"ή",button:"Επιλέξτε ένα τοπικό αρχείο",also:"ή επιλέξτε από"},url:{title:"Αρχεία από τον Ιστό",line1:"Πάρτε οποιοδήποτε αρχείο από το διαδίκτυο.",line2:"Γράψτε απλώς τον σύνδεσμο.",input:"Επικολλήστε τον σύνδεσμό σας εδώ...",button:"Φόρτωση"},camera:{title:"Αρχείο από κάμερα web",capture:"Τραβήξτε μια φωτογραφία",mirror:"Καθρέφτης",startRecord:"Εγγραφή βίντεο",cancelRecord:"Ακύρωση",stopRecord:"Διακοπή",retry:"Νέο αίτημα για άδεια",pleaseAllow:{text:"Έχετε δεχτεί υπόδειξη να επιτρέψετε την πρόσβαση στην κάμερα από αυτόν τον ιστότοπο.<br>Για να τραβήξετε φωτογραφίες με την κάμερά σας πρέπει να εγκρίνετε αυτό το αίτημα.",title:"Παρακαλούμε επιτρέψτε την πρόσβαση στην κάμερά σας"},notFound:{title:"Δεν εντοπίστηκε κάμερα",text:"Φαίνεται ότι δεν έχετε κάμερα συνδεδεμένη με αυτή τη συσκευή."}},preview:{unknownName:"άγνωστο",change:"Ακύρωση",back:"Πίσω",done:"Προσθήκη",unknown:{title:"Φόρτωση... Παρακαλούμε περιμένετε για προεπισκόπηση.",done:"Παράλειψη επισκόπησης και αποδοχή"},regular:{title:"Να προστεθεί αυτό το αρχείο;",line1:"Πρόκειται να προσθέσετε το παραπάνω αρχείο.",line2:"Παρακαλούμε επιβεβαιώστε."},image:{title:"Να προστεθεί αυτή η εικόνα;",change:"Ακύρωση"},crop:{title:"Περικοπή και προσθήκη αυτής της εικόνας",done:"Εντάξει",free:"δωρεάν"},video:{title:"Να προστεθεί αυτό το βίντεο;",change:"Ακύρωση"},error:{default:{title:"Ουπς!",back:"Παρακαλούμε προσπαθήστε ξανά",text:"Κάτι πήγε στραβά κατά τη φόρτωση."},image:{title:"Μόνο αρχεία εικόνων γίνονται δεκτά.",text:"Δοκιμάστε ξανά με άλλο αρχείο.",back:"Επιλέξτε εικόνα"},size:{title:"Το αρχείο που επιλέξατε υπερβαίνει το όριο.",text:"Δοκιμάστε ξανά με άλλο αρχείο."},loadImage:{title:"Σφάλμα",text:"Δεν μπορεί να φορτωθεί η εικόνα"}},multiple:{title:"Έχετε επιλέξει %files%",question:"Προσθήκη %files%;",tooManyFiles:"Έχετε επιλέξει πάρα πολλά αρχεία. Το μέγιστο είναι %max%.",tooFewFiles:"Έχετε επιλέξει %files%. Απαιτούνται τουλάχιστον %min%.",clear:"Κατάργηση όλων",file:{preview:"Προεπισκόπηση %file%",remove:"Αφαίρεση %file%"},done:"Προσθήκη"}}},footer:{text:"παρέχεται από",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},en:{pluralize:function(e){return 1===e?"one":"other"},translations:{uploading:"Uploading... Please wait.",loadingInfo:"Loading info...",errors:{default:"Error",baddata:"Incorrect value",size:"File too big",upload:"Can’t upload",user:"Upload canceled",info:"Can’t load info",image:"Only images allowed",createGroup:"Can’t create file group",deleted:"File was deleted"},draghere:"Drop a file here",file:{one:"%1 file",other:"%1 files"},buttons:{cancel:"Cancel",remove:"Remove",choose:{files:{one:"Choose a file",other:"Choose files"},images:{one:"Choose an image",other:"Choose images"}}},dialog:{close:"Close",openMenu:"Open menu",done:"Done",showFiles:"Show files",tabs:{names:{"empty-pubkey":"Welcome",preview:"Preview",file:"Local Files",url:"Direct Link",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"drag & drop<br>any files",nodrop:"Upload files from your&nbsp;computer",cloudsTip:"Cloud storages<br>and social networks",or:"or",button:"Choose a local file",also:"or choose from"},url:{title:"Files from the Web",line1:"Grab any file off the web.",line2:"Just provide the link.",input:"Paste your link here...",button:"Upload"},camera:{title:"File from web camera",capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site.<br>In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"unknown",change:"Cancel",back:"Back",done:"Add",unknown:{title:"Uploading... Please wait for a preview.",done:"Skip preview and accept"},regular:{title:"Add this file?",line1:"You are about to add the file above.",line2:"Please confirm."},image:{title:"Add this image?",change:"Cancel"},crop:{title:"Crop and add this image",done:"Done",free:"free"},video:{title:"Add this video?",change:"Cancel"},error:{default:{title:"Oops!",text:"Something went wrong during the upload.",back:"Please try again"},image:{title:"Only image files are accepted.",text:"Please try again with another file.",back:"Choose image"},size:{title:"The file you selected exceeds the limit.",text:"Please try again with another file."},loadImage:{title:"Error",text:"Can’t load image"}},multiple:{title:"You’ve chosen %files%.",question:"Add %files%?",tooManyFiles:"You’ve chosen too many files. %max% is maximum.",tooFewFiles:"You’ve chosen %files%. At least %min% required.",clear:"Remove all",done:"Add",file:{preview:"Preview %file%",remove:"Remove %file%"}}}},footer:{text:"powered by",link:"uploadcare"}}}},es:{translations:{uploading:"Subiendo... Por favor espere.",loadingInfo:"Cargando información...",errors:{default:"Error",baddata:"Valor incorrecto",size:"Archivo demasiado grande",upload:"No se puede subir",user:"Subida cancelada",info:"No se puede cargar la información",image:"Solo se permiten imágenes",createGroup:"No se puede crear el grupo de archivos",deleted:"El archivo fue eliminado"},draghere:"Arrastra un archivo aquí",file:{one:"%1 archivo",other:"%1 archivos"},buttons:{cancel:"Cancelar",remove:"Eliminar",choose:{files:{one:"Escoge un archivo",other:"Escoge archivos"},images:{one:"Escoge una imagen",other:"Escoge imágenes"}}},dialog:{close:"Cerrar",openMenu:"Menú abierto",done:"Hecho",showFiles:"Mostrar archivos",tabs:{names:{"empty-pubkey":"Bienvenido",preview:"Previsualización",file:"Archivos locales",url:"Enlaces arbitrarios",camera:"Cámara"},file:{drag:"Arrastra un archivo aquí",nodrop:"Sube fotos desde tu dispositivo",cloudsTip:"Almacenamiento en la nube<br>y redes sociales",or:"o",button:"Elige un archivo de tu dispositivo",also:"Tambien puedes seleccionarlo de"},url:{title:"Archivos de la Web",line1:"Coge cualquier archivo de la web.",line2:"Solo danos el link.",input:"Pega tu link aquí...",button:"Subir"},camera:{title:"Archivo desde la cámara web",capture:"Hacer una foto",mirror:"Espejo",startRecord:"Grabar un video",stopRecord:"Detener",cancelRecord:"Cancelar",retry:"Solicitar permisos de nuevo",pleaseAllow:{title:"Por favor, permite el acceso a tu cámara",text:"Este sitio ha pedido permiso para acceder a la cámara. Para tomar imágenes con tu cámara debes aceptar esta petición."},notFound:{title:"No se ha detectado ninguna cámara",text:"Parece que no tienes ninguna cámara conectada a este dispositivo."}},preview:{unknownName:"desconocido",change:"Cancelar",back:"Atrás",done:"Añadir",unknown:{title:"Subiendo. Por favor espera para una vista previa.",done:"Saltar vista previa y aceptar"},regular:{title:"¿Quieres subir este archivo?",line1:"Estás a punto de subir el archivo de arriba.",line2:"Confírmalo por favor."},image:{title:"¿Quieres subir esta imagen?",change:"Cancelar"},crop:{title:"Cortar y añadir esta imagen",done:"Listo",free:"libre"},video:{title:"¿Añadir este video?",change:"Cancelar"},error:{default:{title:"Ups!",text:"Algo salió mal durante la subida.",back:"Por favor, inténtalo de nuevo."},image:{title:"Solo se aceptan archivos de imagen.",text:"Por favor, inténtalo de nuevo con otro archivo.",back:"Escoger imagen"},size:{title:"El archivo que has seleccinado excede el límite.",text:"Por favor, inténtalo de nuevo con otro archivo."},loadImage:{title:"Error",text:"No puede cargar la imagen"}},multiple:{title:"Has escogido %files%",question:"¿Quieres añadir todos estos archivos?",tooManyFiles:"Has escogido demasiados archivos. %max% es el máximo.",tooFewFiles:"Has escogido %files%. Hacen falta al menos %min%.",clear:"Eliminar todo",done:"Hecho",file:{preview:"Vista previa %file%",remove:"Quitar %file%"}}}},footer:{text:"alimentado por"}}},pluralize:function(e){return 1===e?"one":"other"}},et:{translations:{uploading:"Üleslaadimine… Palun oota.",loadingInfo:"Info laadimine...",errors:{default:"Viga",baddata:"Incorrect value",size:"Fail on liiga suur",upload:"Ei saa üles laadida",user:"Üleslaadimine tühistatud",info:"Ei saa infot laadida",image:"Ainult pildid lubatud",createGroup:"Ei saa luua failigruppi",deleted:"Fail on kustutatud"},draghere:"Tiri fail siia",file:{one:"%1 fail",other:"%1 failid"},buttons:{cancel:"Tühista",remove:"Kustuta",choose:{files:{one:"Vali fail",other:"Vali failid"},images:{one:"Vali pilt",other:"Vali pildid"}}},dialog:{done:"Valmis",showFiles:"Näita faile",tabs:{names:{"empty-pubkey":"Tere",preview:"Eelvaade",file:"Failid Kõvakettalt",url:"Veebilink",camera:"Kaamera"},file:{drag:"Tiri failid siia",nodrop:"Lae failid arvutist",cloudsTip:"Pilv<br>ja sotsiaalmeedia",or:"või",button:"Vali fail kõvakettalt",also:"Saad samuti valida"},url:{title:"Failid veebist",line1:"Ükskõik mis fail otse veebist.",line2:"Lihtsalt sisesta URL.",input:"Kleebi link siia...",button:"Lae üles"},camera:{capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site. In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"teadmata",change:"Tühista",back:"Tagasi",done:"Lisa",unknown:{title:"Üleslaadimine... Palun oota eelvaadet.",done:"Jäta eelvaade vahele ja nõustu"},regular:{title:"Lisa see fail?",line1:"Oled lisamas ülaltoodud faili.",line2:"Palun kinnita."},image:{title:"Lisa pilt?",change:"Tühista"},crop:{title:"Lõika ja lisa pilt",done:"Valmis",free:"vaba"},video:{title:"Lisa video?",change:"Tühista"},error:{default:{title:"Oihh!",text:"Midagi läks üleslaadimisel valesti.",back:"Palun proovi uuesti"},image:{title:"Ainult pildifailid on lubatud.",text:"Palun proovi uuesti teise failiga.",back:"Vali pilt"},size:{title:"Valitud fail ületab maksimaalse suuruse.",text:"Palun proovi uuesti teise failiga."},loadImage:{title:"Viga",text:"Ei saa pilti laadida"}},multiple:{title:"Oled valinud %files%",question:"Kas sa soovid lisada kõik failid?",tooManyFiles:"Oled valinud liiga suure hulga faile. %max% on maksimaalne.",tooFewFiles:"Oled valinud %files%. Vähemalt %min% nõutud.",clear:"Eemalda kõik",done:"Valmis"}}}}},pluralize:function(e){return 1===e?"one":"other"}},fr:{translations:{uploading:"Envoi en cours... Merci de patienter.",loadingInfo:"Chargement des informations...",errors:{default:"Erreur",baddata:"Valeur incorrecte",size:"Fichier trop volumineux",upload:"Envoi impossible",user:"Envoi annulé",info:"Impossible de charger les informations",image:"Seules les images sont autorisées",createGroup:"Création d'1 groupe impossible",deleted:"Le fichier a été supprimé"},draghere:"Glissez-déposez un fichier ici",file:{one:"%1 fichier",other:"%1 fichiers"},buttons:{cancel:"Annuler",remove:"Supprimer",choose:{files:{one:"Sélectionner un fichier",other:"Sélectionner des fichiers"},images:{one:"Sélectionner une image",other:"Sélectionner des images"}}},dialog:{close:"Fermer",openMenu:"Ouvrir le menu",done:"Terminer",showFiles:"Voir les fichiers",tabs:{names:{"empty-pubkey":"Bienvenue",preview:"Avant-première",file:"Fichier en local",url:"Une adresse web",camera:"Caméra",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Glissez-déposez un fichier ici",nodrop:"Envoyez des fichiers depuis votre ordinateur",cloudsTip:"Stockage sur le cloud<br>et réseaux sociaux",or:"ou",button:"Choisir un fichier local",also:"Vous pouvez également le sélectionner depuis"},url:{title:"Fichiers depuis le Web",line1:"Prenez n'importe quel fichier depuis un site web.",line2:"Saisissez simplement son adresse.",input:"Collez le lien ici...",button:"Envoi"},camera:{title:"Fichier depuis la caméra",capture:"Prendre une photo",mirror:"Miroir",startRecord:"Enregistrer une vidéo",stopRecord:"Arrêter",cancelRecord:"Annuler",retry:"Envoyer une nouvelle demande de permission",pleaseAllow:{title:"Autorisez l'accès à votre appareil photo",text:"Vous avez été invité à autoriser l'accès à votre appareil photo. Pour prendre des photos avec votre caméra vous devez approuver cette demande."},notFound:{title:"Aucun appareil photo détecté",text:"Il semblerait que vous n'ayez pas d'appareil photo connecté à cet appareil."}},preview:{unknownName:"inconnu",change:"Annuler",back:"Retour",done:"Ajouter",unknown:{title:"Envoi en cours... Merci de patienter pour prévisualiser.",done:"Passer la prévisualisation et accepter"},regular:{title:"Ajouter ce fichier ?",line1:"Vous êtes sur le point d'ajouter le fichier ci-dessus.",line2:"Merci de confirmer."},image:{title:"Ajouter cette image ?",change:"Annuler"},crop:{title:"Recadrer et ajouter cette image",done:"Terminer",free:"libre"},video:{title:"Ajouter cette vidéo ?",change:"Annuler"},error:{default:{title:"Oups!",text:"Quelque chose n'a pas fonctionné pendant l'envoi.",back:"Merci de bien vouloir recommencer"},image:{title:"Seules les images sont acceptées.",text:"Merci de bien vouloir recommencer avec un autre fichier.",back:"Choisir une image"},size:{title:"Le fichier sélectionné est trop volumineux.",text:"Merci de bien vouloir recommencer avec un autre fichier."},loadImage:{title:"Erreur",text:"Impossible de charger l'image"}},multiple:{title:"Vous avez choisi %files%",question:"Voulez vous ajouter tous ces fichiers ?",tooManyFiles:"Vous avez choisi trop de fichiers. %max% est le maximum.",tooFewFiles:"Vous avez choisi %fichiers%. %min% est le minimum.",clear:"Tout retirer",done:"Terminer",file:{preview:"Prévisualiser %file%",remove:"Supprimer %file%"}}}}}},pluralize:function(e){return 1===e?"one":"other"}},he:{translations:{uploading:"טוען... אנא המתן.",loadingInfo:"טוען מידע...",errors:{default:"שגיאה",baddata:"ערך שגוי",size:"קובץ גדול מידי",upload:"לא ניתן להעלות",user:"העלאה בוטלה",info:"לא ניתן לטעון מידע",image:"ניתן להעלות רק תמונות",createGroup:"לא ניתן ליצור קבוצה",deleted:"הקובץ נמחק"},draghere:"שחרר כאן קובץ",file:{one:"קובץ %1",other:"%1 קבצים"},buttons:{cancel:"ביטול",remove:"הסר",choose:{files:{one:"בחר קובץ",other:"בחר קבצים"},images:{one:"בחר תמונה",other:"בחר תמונות"}}},dialog:{done:"סיום",showFiles:"הצג קבצים",tabs:{names:{facebook:"פייסבוק",dropbox:"דרופבוקס",gdrive:"כונן גוגל",instagram:"אינסטגרם",url:"לינק מהאינטרנט"},file:{drag:"שחרר כאן קובץ",nodrop:"העלה קבצים מהמחשב",or:"או",button:"בחר קובץ מהמחשב",also:"ניתן לבחור גם מ"},url:{title:"קובץ מהאינטרנט",line1:"גרור קובץ מהאינטרנט",line2:"ספק את כתובת הקובץ",input:"הדבק את כתובת הקובץ...",button:"העלה"},preview:{unknownName:"לא ידוע",change:"ביטול",back:"חזרה",done:"הוסף",unknown:{title:"מעלה... נא המתן לתצוגה מקדימה.",done:"דלג על תצוגה מקדימה"},regular:{title:"להוסיף קובץ זה?",line1:"קובץ זה יועלה",line2:"נא אשר."},image:{title:"להוסיף תמונה זו?",change:"ביטול"},crop:{title:"חתוך והוסף תמונה זו",done:"סיום"},error:{default:{title:"אופס!",text:"משהו השתבש בזמן ההעלאה.",back:"נא נסה שוב"},image:{title:"ניתן לקבל רק קבצי תמונות.",text:"נא נסה שוב עם קובץ אחר.",back:"בחר תמונה"},size:{title:"הקובץ שבחרת חורג מהגבול.",text:"נא נסה שוב עם קובץ אחר."},loadImage:{title:"שגיאה",text:"טעינת התמונה נכשלה"}},multiple:{title:"בחרת %files%",question:"אתה מעוניין להוסיף את כל הקבצים האלו?",tooManyFiles:"בחרת יותר מידי קבצים. יש לבחור מקסימום %max% קבצים.",tooFewFiles:"בחרת %files%. יש לבחור לפחות %min%.",clear:"הסר הכל",done:"סיום"}}}}},pluralize:function(e){return 1===e?"one":"other"}},it:{translations:{uploading:"Caricamento in corso... Si prega di attendere.",loadingInfo:"Caricamento informazioni in corso...",errors:{default:"Errore",baddata:"Valore errato",size:"Il file è troppo grande",upload:"Impossibile fare l’upload",user:"Upload cancellato",info:"Impossibile caricare le informazioni",image:"Sono ammesse solo immagini",createGroup:"Impossibile creare gruppo di file",deleted:"Il file è stato eliminato"},draghere:"Trascina un file qui",file:{one:"file %1",other:"file %1"},buttons:{cancel:"Cancella",remove:"Rimuovi",choose:{files:{one:"Seleziona un file",other:"Seleziona file"},images:{one:"Seleziona un’immagine",other:"Seleziona immagini"}}},dialog:{done:"Fatto",showFiles:"Mostra file",tabs:{names:{"empty-pubkey":"Benvenuto",preview:"Anteprima",file:"File locali",url:"Link arbitrari",camera:"Fotocamera"},file:{drag:"Trascina un file qui",nodrop:"Carica file dal tuo computer",cloudsTip:"Salvataggi nel cloud<br>e servizi sociali",or:"o",button:"Seleziona un file locale",also:"Puoi anche scegliere da"},url:{title:"File dal web",line1:"Preleva un file dal web.",line2:"È sufficiente fornire il link.",input:"Incolla il tuo link qui...",button:"Carica"},camera:{capture:"Scatta una foto",mirror:"Specchio",retry:"Richiedi di nuovo le autorizzazioni",pleaseAllow:{title:"Consenti l’accesso alla tua fotocamera",text:"Ti è stato richiesto di consentire l’accesso alla fotocamera da questo sito. Per scattare le foto con la tua fotocamera devi accettare questa richiesta."},notFound:{title:"Nessuna fotocamera rilevata",text:"Non risulta che tu non abbia una fotocamera collegata a questo dispositivo."}},preview:{unknownName:"sconosciuto",change:"Cancella",back:"Indietro",done:"Aggiungi",unknown:{title:"Caricamento in corso... Attendi l’anteprima.",done:"Salta l’anteprima e accetta"},regular:{title:"Vuoi aggiungere questo file?",line1:"Stai per aggiungere il file sopra.",line2:"Conferma."},image:{title:"Vuoi aggiungere questa immagine?",change:"Cancella"},crop:{title:"Ritaglia e aggiungi questa immagine",done:"Fatto",free:"gratis"},error:{default:{title:"Ops!",text:"Si è verificato un problema durante l’upload.",back:"Si prega di riprovare"},image:{title:"Sono accettati solo file immagine.",text:"Riprova con un altro file.",back:"Scegli immagine"},size:{title:"Il file selezionato supera il limite.",text:"Riprova con un altro file."},loadImage:{title:"Errore",text:"Impossibile caricare l’immagine"}},multiple:{title:"Hai selezionato %files%",question:"Vuoi aggiungere tutti questi file?",tooManyFiles:"Hai selezionato troppi file. %max% è il massimo.",tooFewFiles:"Hai selezionato %files%. È richiesto almeno %min%.",clear:"Rimuovi tutto",done:"Fatto"}}}}},pluralize:function(e){return 1===e?"one":"other"}},ja:{translations:{uploading:"アップロードしています… 完了までお待ち下さい。",loadingInfo:"読み込み中…",errors:{default:"エラー",baddata:"間違った値",size:"ファイルが大きすぎます",upload:"アップロードできませんでした",user:"アップロードがキャンセルされました",info:"読み込みに失敗しました",image:"アップロードできるのは画像ファイルのみです",createGroup:"グループの作成に失敗しました",deleted:"削除されたファイルです"},draghere:"ここにファイルをドロップ",file:{other:"%1ファイル"},buttons:{cancel:"キャンセル",remove:"削除",choose:{files:{one:"ファイルを選択",other:"ファイルを選択"},images:{one:"画像を選択",other:"画像を選択"}}},dialog:{done:"完了",showFiles:"ファイルを表示",tabs:{names:{preview:"プレビュー",file:"ローカルファイル",url:"URLを直接入力"},file:{drag:"ここにファイルをドロップ",nodrop:"ファイルを選択してアップロード",cloudsTip:"クラウドストレージ<br>およびソーシャルサービス",or:"もしくは",button:"ローカルのファイルを選択",also:"次からも選択可能です："},url:{title:"ウェブ上のファイル",line1:"ウェブ上からファイルを取得します。",line2:"URLを入力してください。",input:"ここにURLを貼り付けしてください…",button:"アップロード"},preview:{unknownName:"不明なファイル",change:"キャンセル",back:"戻る",done:"追加",unknown:{title:"アップロードしています… プレビューの表示をお待ちください。",done:"プレビューの確認をスキップして完了"},regular:{title:"このファイルを追加しますか？",line1:"こちらのファイルを追加しようとしています。",line2:"確認してください。"},image:{title:"この画像を追加しますか？",change:"キャンセル"},crop:{title:"画像の切り取りと追加",done:"完了",free:"リセット"},error:{default:{title:"失敗しました",text:"アップロード中に不明なエラーが発生しました。",back:"もう一度お試し下さい"},image:{title:"画像ファイルのみ許可されています",text:"他のファイルで再度お試し下さい。",back:"画像を選択"},size:{title:"ファイルサイズが大きすぎます。",text:"他のファイルで再度お試し下さい。"},loadImage:{title:"エラー",text:"画像のロードに失敗しました。"}},multiple:{title:"%files%つのファイルを選択中",question:"これら全てのファイルを追加しますか？",tooManyFiles:"選択ファイルが多すぎます。%max%つ以下にしてください。",tooFewFiles:"選択ファイルが少なすぎます。%files%つ選択中です。少なくとも%min%つ選択してください。",clear:"全て削除",done:"完了"}}}}},pluralize:function(e){return"other"}},ko:{translations:{uploading:"업로드중 기다려주세요",loadingInfo:"정보 로드중...",errors:{default:"오류",baddata:"잘못된 값",size:"파일용량 초과",upload:"업로드 실패",user:"업로드 취소됨",info:"정보를 불러올 수 없습니다",image:"허용된 이미지만 가능",createGroup:"파일 그룹 만들기 실패",deleted:"파일이 삭제되었습니다"},draghere:"여기에 끌어다 놓기",file:{one:"%1 파일",other:"%1 파일"},buttons:{cancel:"취소",remove:"삭제",choose:{files:{one:"파일 첨부",other:"파일 첨부"},images:{one:"이미지 첨부",other:"이미지 첨부"}}},dialog:{close:"닫기",openMenu:"메뉴 열기",done:"완료",showFiles:"파일 표시",tabs:{names:{"empty-pubkey":"반갑습니다",preview:"미리보기",file:"파일 첨부",url:"링크 연결",camera:"카메라",facebook:"페이스북",dropbox:"드롭박스",gdrive:"구글 드라이브",gphotos:"구글 포토",instagram:"인스타그램",evernote:"에버노트",box:"박스",onedrive:"스카이드라이브",flickr:"플리커"},file:{drag:"모든 파일을<br>드래그 & 드롭",nodrop:"파일 업로드",cloudsTip:"클라우드 스토리지 및 소셜",or:"또는",button:"파일 선택",also:"또는 선택하십시오"},url:{title:"웹에서 파일 링크 연결",line1:"웹에서 모든파일을 가져옵니다",line2:"링크만 연결합니다.",input:"링크 붙여 넣기...",button:"업로드"},camera:{title:"카메라 연결",capture:"사진 찍기",mirror:"거울",startRecord:"비디오 녹화",stopRecord:"정지",cancelRecord:"취소",retry:"재 시도",pleaseAllow:{title:"카메라 접근 허용",text:"카메라 접근을 허용하시겠습니까?<br>승인 요청을 해주셔야 합니다"},notFound:{title:"카메라가 없습니다",text:"이 기기에 연결된 카메라가 없습니다"}},preview:{unknownName:"알수없음",change:"취소",back:"뒤로",done:"추가",unknown:{title:"업로드중, 기다려주세요",done:"미리보기 건너뛰기"},regular:{title:"이 파일을 추가하시겠습니까?",line1:"위 파일을 추가하려고 합니다",line2:"확인 하십시오"},image:{title:"이미지를 추가하시겠습니까?",change:"취소"},crop:{title:"이미지 자르기 및 추가",done:"완료",free:"무료"},video:{title:"비디오를 추가하시겠습니까?",change:"취소"},error:{default:{title:"죄송합니다",text:"업로드에 문제가 있습니다",back:"다시 시도해 주세요"},image:{title:"이미지 파일만 허용됩니다",text:"다른 파일로 다시 시도하세요",back:"이미지 선택"},size:{title:"선택한 파일이 한도 초과하였습니다",text:"다른 파일로 다시 시도하세요"},loadImage:{title:"오류",text:"이미지를 불러올 수 없습니다"}},multiple:{title:"%files%을(를) 선택하였습니다",question:"%files%을 추가하시겠습니까?",tooManyFiles:"너무 많은 파일을 추가하셨습니다. %max%가 최대 한도입니다",tooFewFiles:"%files%을(를) 선택하였습니다 최소 %min%이상 필요합니다",clear:"모두 삭제",done:"추가",file:{preview:"%file% 미리보기",remove:"%file% 삭제"}}}},footer:{text:"powered by",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},lv:{translations:{uploading:"Augšupielādē... Lūdzu, gaidiet.",errors:{default:"Kļūda",image:"Atļauti tikai attēli"},draghere:"Velciet failus šeit",file:{zero:"%1 failu",one:"%1 fails",other:"%1 faili"},buttons:{cancel:"Atcelt",remove:"Dzēst"},dialog:{title:"Ielādēt jebko no jebkurienes",poweredby:"Darbināts ar",support:{images:"Attēli",audio:"Audio",video:"Video",documents:"Dokumenti"},tabs:{file:{title:"Mans dators",line1:"Paņemiet jebkuru failu no jūsu datora.",line2:"Izvēlēties ar dialogu vai ievelciet iekšā.",button:"Meklēt failus"},url:{title:"Faili no tīmekļa",line1:"Paņemiet jebkuru failu no tīmekļa.",line2:"Tikai uzrādiet linku.",input:"Ielīmējiet linku šeit...",button:"Ielādēt"}}}},pluralize:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"}},nb:{translations:{uploading:"Laster opp... Vennligst vent.",loadingInfo:"Laster inn info...",errors:{default:"Feil",baddata:"Ugyldig verdi",size:"Filen er for stor",upload:"Kan ikke laste opp",user:"Opplasting avbrutt",info:"Kan ikke laste inn info",image:"Kun bilder er tillatt",createGroup:"Kan ikke opprette filgruppe",deleted:"Filen er slettet"},draghere:"Dra en fil hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Fjern",choose:{files:{one:"Velg en fil",other:"Velg filer"},images:{one:"Velg et bilde",other:"Velg bilder"}}},dialog:{done:"Ferdig",showFiles:"Vis filer",tabs:{names:{preview:"Forhåndsvising",file:"Lokale filer",url:"Direktelink"},file:{drag:"Dra og slipp en fil her",nodrop:"Last opp filer fra datamaskinen",cloudsTip:"Skylagring<br>og sosiale tjenester",or:"eller",button:"Velg en lokal fil",also:"Du kan også velge det fra"},url:{title:"Filer fra internett",line1:"Velg hvilken som helst fil fra internett.",line2:"Bare gi oss linken.",input:"Lim inn linken her...",button:"Last opp"},preview:{unknownName:"ukjent",change:"Avbryt",back:"Tilbake",done:"Legg til",unknown:{title:"Laster opp... Vennligst vent på forhåndsvisning.",done:"Hopp over forhåndsvisning og godkjenn"},regular:{title:"Legge til denne filen?",line1:"Filen legges nå til.",line2:"Vennligst bekreft."},image:{title:"Legge til dette bildet?",change:"Avbryt"},crop:{title:"Kutt og legg til dette bildet",done:"Ferdig",free:"frigjør"},error:{default:{title:"Ops!",text:"Noe gikk galt under opplastingen.",back:"Vennligst prøv igjen"},image:{title:"Kun bilder er akseptert.",text:"Prøv igjen med en annen fil.",back:"Velg bilde"},size:{title:"Den valgte filen overskrider tilatt størrelse.",text:"Vennligst prøv igjen med en annen fil."},loadImage:{title:"Feil",text:"Kan ikke laste bildet"}},multiple:{title:"Du har valgt %files%",question:"Ønsker du å legge til alle filene?",tooManyFiles:"Du har valgt for mange filer. %max% er maksimum.",tooFewFiles:"Du har valgt %files%. Minimum %min% er påkrevd.",clear:"Fjern alle",done:"Ferdig"}}}}},pluralize:function(e){return 1===e?"one":"other"}},nl:{translations:{uploading:"Uploaden... Even geduld.",loadingInfo:"Laden informatie...",errors:{default:"Fout",baddata:"Ongeldige waarde",size:"Bestand is te groot",upload:"Kan niet uploaden",user:"Upload geannuleerd",info:"Kan informatie niet laden",image:"Alleen afbeeldingen toegestaan",createGroup:"Kan bestandsgroep niet maken",deleted:"Bestand is verwijderd"},draghere:"Drop hier een bestand",file:{one:"%1 bestand",other:"%1 bestanden"},buttons:{cancel:"Annuleren",remove:"Verwijderen",choose:{files:{one:"Kies een bestand",other:"Kies bestanden"},images:{one:"Kies een afbeelding",other:"Kies afbeeldingen"}}},dialog:{done:"Klaar",showFiles:"Toon bestanden",tabs:{names:{preview:"Voorvertoning",file:"Computer",url:"Directe links"},file:{drag:"Drop hier een bestand",nodrop:"Upload bestanden van je computer",or:"of",button:"Selecteer een bestand op je computer",also:"Je kan ook selecteren van"},camera:{title:"Bestand van webcamera",retry:"Opnieuw toegang aanvragen"},url:{title:"Bestanden op het web",line1:"Selecteer een bestand op het web.",line2:"Voer de link in.",input:"Plak de link hier...",button:"Upload"},preview:{unknownName:"onbekend",change:"Annuleren",back:"Terug",done:"Toevoegen",unknown:{title:"Uploaden... Wacht op de voorvertoning.",done:"Voorvertoning overslaan an accepteren"},regular:{title:"Dit bestand toevoegen?",line1:"Je staat op het punt bovenstaand bestand toe te voegen.",line2:"Bevestig"},image:{title:"Voeg deze afbeelding toe?",change:"Annuleren"},crop:{title:"Afbeelding bijknippen en toevoegen",done:"Klaar"},error:{default:{title:"Oeps!",text:"Er is een fout opgetreden tijdens het uploaden.",back:"Probeer opnieuw"},image:{title:"Alleen afbeeldingen worden geaccepteerd.",text:"Probeer opnieuw met een andere bestand.",back:"Selecteer afbeelding"},size:{title:"Het geselecteerd bestand is groter dan de limiet.",text:"Probeer opnieuw met een andere bestand."},loadImage:{title:"Fout",text:"Kan afbeelding niet laden"}},multiple:{title:"Je hebt de volgende bestanden geselecteerd %files%",question:"Wil je al deze bestanden toevoegen?",tooManyFiles:"Je hebt teveel bestanden geselecteerd. %max% is het maximum.",tooFewFiles:"Je hebt de volgende bestanden geselecteerd %files%. Minimaal %min% is verplicht.",clear:"Verwijder alle bestanden",done:"Klaar"}}}}},pluralize:function(e){return 1===e?"one":"other"}},pl:{translations:{uploading:"Przesyłanie... Proszę czekać.",loadingInfo:"Ładowanie...",errors:{default:"Błąd",baddata:"Niepoprawna wartość",size:"Plik zbyt duży",upload:"Nie udało się przesłać",user:"Przesyłanie anulowane",info:"Nie udało się załadować informacji",image:"Dozwolone są tylko obrazy",createGroup:"Nie udało się utworzyć grupy plików",deleted:"Plik został usunięty"},draghere:"Upuść plik tutaj",file:{one:"%1 plik",few:"%1 pliki",many:"%1 plików"},buttons:{cancel:"Anuluj",remove:"Usuń",choose:{files:{one:"Wybierz plik",other:"Wybierz pliki"},images:{one:"Wybierz obraz",other:"Wybierz obrazy"}}},dialog:{close:"Zamknij",openMenu:"Otwórz menu",done:"Wykonano",showFiles:"Pokaż pliki",tabs:{names:{"empty-pubkey":"Witaj",preview:"Podgląd",file:"Pliki lokalne",url:"Plik z Sieci",camera:"Aparat"},file:{drag:"Upuść plik tutaj",nodrop:"Prześlij pliki z Twojego komputera",cloudsTip:"Dane w chmurze<br>i sieci społecznościowe",or:"lub",button:"Wybierz plik lokalny",also:"Możesz również wybrać z"},url:{title:"Pliki z Sieci",line1:"Złap jakikolwiej plik z sieci.",line2:"Podaj adres.",input:"Wklej link...",button:"Prześlij"},camera:{title:"Plik z kamery internetowej",capture:"Zrób zdjęcie",mirror:"Odbicie lustrzane",startRecord:"Nagraj film",stopRecord:"Zakończ",cancelRecord:"Anuluj",retry:"Poproś ponownie o dostęp",pleaseAllow:{title:"Prośba o udostępnienie aparatu",text:"Zostałeś poproszony przez tę stronę o dostęp do aparatu. Aby robić zdjecia, musisz zaakceptować tę prośbę."},notFound:{title:"Nie wykryto aparatu.",text:"Wygląda na to, że nie masz podłączonego aparatu do tego urządzenia."}},preview:{unknownName:"nieznany",change:"Anuluj",back:"Wstecz",done:"Dodaj",unknown:{title:"Przesyłanie... Proszę czekać na podgląd.",done:"Omiń podgląd i zaakceptuj."},regular:{title:"Dodać ten plik?",line1:"Zamierzasz dodać nowy plik.",line2:"Potwierdź, proszę."},image:{title:"Dodać ten obraz?",change:"Anuluj"},crop:{title:"Przytnij i dodaj ten obraz",done:"Wykonano",free:"wolny"},video:{title:"Dodać ten film?",change:"Anuluj"},error:{default:{title:"Oops!",text:"Coś poszło nie tak podczas przesyłania.",back:"Spróbuj ponownie"},image:{title:"Akceptowane są tylko obrazy.",text:"Spróbuj ponownie z innym plikiem.",back:"Wybierz obraz"},size:{title:"Plik, który wybrałeś, przekracza dopuszczalny rozmiar",text:"Spróbuj ponownie z innym plikiem."},loadImage:{title:"Błąd",text:"Nie udało się załadować obrazu"}},multiple:{title:"Wybrałeś %files%",question:"Czy chcesz dodać wszystkie te pliki?",tooManyFiles:"Wybrałeś zbyt wiele plików. Maksimum to %max%.",tooFewFiles:"Wybrałeś %files%. Wymagane jest co najmniej %min%.",clear:"Usuń wszystkie",done:"Wykonano",file:{preview:"Zobacz %file%",remove:"Usuń %file%"}}}}}},pluralize:function(e){var t;return 1===e?"one":(t=e%10)>=2&&t<=4&&1!=(e/10%10|0)?"few":"many"}},pt:{translations:{uploading:"Fazendo upload... Aguarde.",loadingInfo:"Carregando informações...",errors:{default:"Erro",baddata:"Valor incorreto",size:"Arquivo muito grande",upload:"Não foi possível fazer o upload",user:"Upload cancelado",info:"Não foi possível carregar as informações",image:"Apenas imagens são permitidas",createGroup:"Não foi possível criar o grupo de arquivos",deleted:"O arquivo foi excluído"},draghere:"Arraste um arquivo aqui",file:{one:"%1 arquivo",other:"%1 arquivos"},buttons:{cancel:"Cancelar",remove:"Excluir",choose:{files:{one:"Escolha um arquivo",other:"Escolha arquivos"},images:{one:"Escolha uma imagem",other:"Escolha imagens"}}},dialog:{done:"OK",showFiles:"Mostrar arquivos",tabs:{names:{preview:"Visualizar",file:"Computador",url:"Link da web"},file:{drag:"Arraste um arquivo aqui",nodrop:"Faça upload de arquivos do seu computador",or:"ou",button:"Escolha um arquivo do computador",also:"Você também pode escolher arquivos de"},url:{title:"Arquivos da web",line1:"Faça upload de qualquer arquivo da web.",line2:"Apenas informe o link.",input:"Cole seu link aqui...",button:"Upload"},camera:{capture:"Tirar uma foto",mirror:"Espelhar",startRecord:"Gravar um vídeo",stopRecord:"Parar",cancelRecord:"Cancelar",retry:"Requisitar permissão novamente",pleaseAllow:{title:"Por favor permita o acesso a sua câmera",text:"Você foi solicitado a permitir o acesso à câmera a partir deste site. Para tirar fotos com sua câmera, você deve aprovar este pedido."},notFoud:{title:"Câmera não detectada",text:"Parece que você não tem uma câmera conectada a este dispositivo"}},preview:{unknownName:"desconhecido",change:"Cancelar",back:"Voltar",done:"Adicionar",unknown:{title:"Fazendo upload... Aguarde a visualização.",done:"Pular visualização e aceitar"},regular:{title:"Adicionar esse arquivo?",line1:"Você está prestes a adicionar o arquivo acima.",line2:"Por favor, confirme."},image:{title:"Adicionar essa imagem?",change:"Cancelar"},crop:{title:"Cortar e adicionar essa imagem",done:"OK",free:"livre"},error:{default:{title:"Oops!",text:"Alguma coisa deu errado durante o upload.",back:"Por favor, tente novamente"},image:{title:"Apenas arquivos de imagem são aceitos.",text:"Por favor, tente novamente com outro arquivo.",back:"Escolher a imagem"},size:{title:"O arquivo que você escolheu excede o limite.",text:"Por favor, tente novamente com outro arquivo."},loadImage:{title:"Erro",text:"Não foi possível carregar a imagem"}},multiple:{title:"Você escolheu",question:"Você quer adicionar todos esses arquivos?",clear:"Excluir todos",done:"OK"}}}}},pluralize:function(e){return 1===e?"one":"other"}},ro:{translations:{uploading:"Se încarcă... Răbdare.",loadingInfo:"Info încărcare...",errors:{default:"Eroare",baddata:"Valoare incorectă",size:"Fișier prea mare",upload:"Nu pot încărca",user:"Încărcare anulată",info:"Nu pot încărca info",image:"Doar imagini, vă rog",createGroup:"Nu pot crea grup de fișiere",deleted:"Fișierul a fost șters"},draghere:"Trage un fișier aici",file:{one:"%1 fișier",other:"%1 fișiere"},buttons:{cancel:"Anulare",remove:"Șterge",choose:{files:{one:"Alege un fișier",other:"Alege fișiere"},images:{one:"Alege o imagine",other:"Alege imagini"}}},dialog:{close:"Închide",openMenu:"Deschide meniu",done:"Gata",showFiles:"Arată fișiere",tabs:{names:{"empty-pubkey":"Bine ai venit",preview:"Previzualizare",file:"Fișiere locale",url:"Link direct",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"trage aici<br>fișierele",nodrop:"Încarcă fișiere din computer",cloudsTip:"Cloud <br>și rețle sociale",or:"sau",button:"Alege un fișier local",also:"sau alege din"},url:{title:"Fișiere din Web",line1:"Ia orice fișier din Web.",line2:"Trebuie să ai doar linkul.",input:"Lipește linkul aici...",button:"Încarcă"},camera:{title:"Fișier din camera web",capture:"Fă o fotografie",mirror:"Mirror",startRecord:"Înregistrează un video",stopRecord:"Stop",cancelRecord:"Anulează",retry:"Cere permisiune din nou",pleaseAllow:{title:"Te rog sa-mi dai acces la cameră",text:"Ai fost rugat să dai acces la cameră de acest site.<br>Pentru a putea face fotografii cu camera, trebuie să aprobi această cerere."},notFound:{title:"Nicio cameră detectată",text:"Se pare că nu ai nicio cameră atașată acestui device."}},preview:{unknownName:"necunoscut",change:"Anulează",back:"Înapoi",done:"Adaugă",unknown:{title:"Se încarcă... Te rog așteaptă previzualizarea.",done:"Sari peste previzualizare și acceptă"},regular:{title:"Adaug acest fișier?",line1:"Ești pe punctul de a adăuga fișierul de mai sus.",line2:"Te rog confirmă."},image:{title:"Adaug această imagine?",change:"Anulează"},crop:{title:"Decupează și adaugă aceasta imagine",done:"Gata",free:"gratis"},video:{title:"Adaug acest video?",change:"anulează"},error:{default:{title:"Oops!",text:"A intervenit o problemă la încărcare.",back:"te rog încearcă din nou"},image:{title:"Sunt acceptate doar imagini.",text:"Te rog încearcă din nou cu un alt fișier.",back:"Alege imagine"},size:{title:"Fișierul selectat de tine este prea mare.",text:"Te rog să încerci cu alt fișier."},loadImage:{title:"Eroare",text:"Nu pot încărca imaginea"}},multiple:{title:"Ai ales %files%.",question:"Adaug %files%?",tooManyFiles:"Ai ales prea multe fișiere. %max% is maximum.",tooFewFiles:"Ai ales %files%. Minimul este %min% .",clear:"Șterge toate",done:"Adaugă",file:{preview:"Previzualizare %file%",remove:"Șterge %file%"}}}},footer:{text:"powered by",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},ru:{translations:{uploading:"Идет загрузка",loadingInfo:"Загрузка информации...",errors:{default:"Ошибка",baddata:"Некорректные данные",size:"Слишком большой файл",upload:"Ошибка при загрузке",user:"Загрузка прервана",info:"Ошибка при загрузке информации",image:"Разрешены только изображения",createGroup:"Не удалось создать группу файлов",deleted:"Файл удалён"},draghere:"Перетащите файл сюда",file:{one:"%1 файл",few:"%1 файла",many:"%1 файлов"},buttons:{cancel:"Отмена",remove:"Удалить",choose:{files:{one:"Выбрать файл",other:"Выбрать файлы"},images:{one:"Выбрать изображение",other:"Выбрать изображения"}}},dialog:{done:"Готово",showFiles:"Показать файлы",tabs:{names:{preview:"Предпросмотр","empty-pubkey":"Приветствие",file:"Локальные файлы",vk:"ВКонтакте",url:"Ссылка",camera:"Камера"},file:{drag:"Перетащите файл сюда",nodrop:"Загрузка файлов с вашего компьютера",cloudsTip:"Облачные хранилища<br>и социальные сети",or:"или",button:"Выберите локальный файл",also:"Вы также можете загрузить файлы, используя:"},url:{title:"Файлы с других сайтов",line1:"Загрузите любой файл из сети.",line2:"",input:"Укажите здесь ссылку...",button:"Загрузить"},camera:{title:"Файл из видеокамеры",capture:"Сделать снимок",mirror:"Отразить",retry:"Повторно запросить разрешение",pleaseAllow:{title:"Пожалуйста, разрешите доступ к камере",text:"Для того, чтобы сделать снимок, мы запросили разрешение на доступ к камере с этого сайта."},notFound:{title:"Камера не найдена",text:"Скорее всего камера не подключена или не настроена."}},preview:{unknownName:"неизвестно",change:"Отмена",back:"Назад",done:"Добавить",unknown:{title:"Загрузка... Пожалуйста подождите.",done:"Пропустить предварительный просмотр"},regular:{title:"Загрузить этот файл?",line1:"Вы собираетесь добавить этот файл:",line2:"Пожалуйста, подтвердите."},image:{title:"Добавить это изображение?",change:"Отмена"},video:{title:"Добавить это видео?",change:"Отмена"},crop:{title:"Обрезать и добавить это изображение",done:"Готово",free:"произв."},error:{default:{title:"Ой!",text:"Что-то пошло не так во время загрузки.",back:"Пожалуйста, попробуйте ещё раз"},image:{title:"Можно загружать только изображения.",text:"Попробуйте загрузить другой файл.",back:"Выберите изображение"},size:{title:"Размер выбранного файла превышает лимит.",text:"Попробуйте загрузить другой файл."},loadImage:{title:"Ошибка",text:"Изображение не удалось загрузить"}},multiple:{title:"Вы выбрали %files%",question:"Добавить все эти файлы?",tooManyFiles:"Вы выбрали слишком много файлов. %max% максимум.",tooFewFiles:"Вы выбрали %files%. Нужно не меньше %min%.",clear:"Удалить все",done:"Добавить",file:{preview:"Предпросмотр %file%",remove:"Удалить %file%"}}}}}},pluralize:function(e){return 1==(e/10%10|0)||e%10==0||e%10>4?"many":e%10==1?"one":"few"}},sk:{translations:{uploading:"Nahrávam... Prosím počkajte.",loadingInfo:"Nahrávam informácie...",errors:{default:"Chyba",baddata:"Nesprávna hodnota",size:"Súbor je príliš veľký",upload:"Nedá sa nahrať",user:"Nahrávanie bolo zrušené",info:"Informácie sa nedajú nahrať",image:"Povolené sú len obrázky",createGroup:"Nie je možné vytvoriť priečinok",deleted:"Súbor bol odstránený"},draghere:"Sem presuňte súbor",file:{one:"%1 súbor",few:"%1 súbory",other:"%1 súborov"},buttons:{cancel:"Zrušiť",remove:"Odstrániť",choose:{files:{one:"Vyberte súbor",other:"Vyberte súbory"},images:{one:"Vyberte obrázok",other:"Vyberte obrázky"}}},dialog:{close:"Zavrieť",openMenu:"Otvoriť menu",done:"Hotovo",showFiles:"Ukázať súbory",tabs:{names:{"empty-pubkey":"Vitajte",preview:"Náhľad",file:"Z počítača",url:"Z internetu",camera:"Kamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Disk Google",gphotos:"Google Obrázky",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"presuňte a vložte<br>akékoľvek súbory",nodrop:"Nahrajte súbory z vášho&nbsp;počítača",cloudsTip:"Cloud úložiská<br>a sociálne siete",or:"alebo",button:"Vyberte súbor z počítača",also:"alebo vyberte z"},url:{title:"Súbory z internetu",line1:"Uložte akýkoľvek súbor z internetu.",line2:"Stačí pridať odkaz na neho.",input:"Vložte svoj odkaz sem...",button:"Nahrať"},camera:{title:"Súbor z webkamery",capture:"Odfotiť",mirror:"Zrkadliť",startRecord:"Natočte video",stopRecord:"Prestať natáčať",cancelRecord:"Zrušiť",retry:"Znovu požiadať o prístup",pleaseAllow:{title:"Prosím povoľte prístup k vašej kamere",text:"Boli ste vyzvaní aby ste umožnili tejto stránke prístup ku kamere.<br>Prístup musíte povolit aby ste mohli fotiť s vašou kamerou."},notFound:{title:"Kamera nebola nájdená",text:"Zdá sa, že k tomuto zariadeniu nemáte pripojenú kameru."}},preview:{unknownName:"neznámy",change:"Zrušiť",back:"Späť",done:"Pridať",unknown:{title:"Nahráva sa... Prosím počkajte na náhľad.",done:"Preskočiť náhľad a nahrať"},regular:{title:"Pridať tento súbor?",line1:"Chystáte sa pridať vyššie uvedený súbor.",line2:"Prosím potvrďte váš výber."},image:{title:"Pridať tento obrázok?",change:"Zrušiť"},crop:{title:"Orezať a pridať túto fotku",done:"Hotovo",free:"obnoviť"},video:{title:"Pridať toto video?",change:"Zrušiť"},error:{default:{title:"Ejha!",text:"Pri nahrávaní sa vyskytla chyba.",back:"Skúste to znovu"},image:{title:"Je možné nahrávať len obrázky",text:"Skúste to znovu s iným súborom.",back:"Vybrať obrázok"},size:{title:"Súbor, ktorý ste vybrali presahuje povolenú veľkosť.",text:"Skúste to znovu s iným súborom."},loadImage:{title:"Chyba",text:"Obrázok nie je možné vyhľadať"}},multiple:{title:"Vybrali ste %files%.",question:"Pridať %files%?",tooManyFiles:"Vybrali ste príliš veľa súborov. Maximum je %max%.",tooFewFiles:"Vybrali ste %files%. Potrebných je aspoň %min%.",clear:"Odstrániť všetky",done:"Pridať",file:{preview:"Nahliadnuť na %file%",remove:"Odstrániť %file%"}}}}}},pluralize:function(e){return 1===e?"one":e>=2&&e<=4?"few":"many"}},sr:{translations:{uploading:"Шаљем... Молимо сачекајте.",loadingInfo:"Учитавам информације...",errors:{default:"Грешка",baddata:"Погрешна вредност",size:"Фајл је сувише велик",upload:"Не могу да пошаљем",user:"Слање прекинуто",info:"Не могу да учитам информације",image:"Дозвољене су само слике",createGroup:"Не могу да направим групу фајлова",deleted:"Фајл је обрисан"},draghere:"Убаците фајл овде",file:{one:"%1 фајл",other:"%1 фајлова"},buttons:{cancel:"Поништи",remove:"Избаци",choose:{files:{one:"Изабери фајл",other:"Изабери фајлове"},images:{one:"Изабери слику",other:"Изабери слике"}}},dialog:{close:"Затвори",openMenu:"Отвори мени",done:"Готово",showFiles:"Покажи фајлове",tabs:{names:{"empty-pubkey":"Добродошли",preview:"Погледај",file:"Локални фајлови",url:"Директан линк",camera:"Камера",facebook:"Фејсбук",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Инстаграм",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"превуци<br>било које фајлове",nodrop:"Пошаљи фајлове са твог&nbsp;компјутера",cloudsTip:"Клауд<br>и социјалне мреже",or:"или",button:"Изабери локални фајл",also:"или изабери"},url:{title:"Фајлове са Интернета",line1:"Изабери било који фајл са Интернета.",line2:"Само убаци линк.",input:"Убаци линк овде...",button:"Пошаљи"},camera:{title:"Фајл са камере",capture:"Усликај",mirror:"Огледало",startRecord:"Сними видео",stopRecord:"Заустави",cancelRecord:"Поништи",retry:"Тражи дозволу поново",pleaseAllow:{title:"Молимо вас да дозволите приступ вашој камери",text:"Упитани сте да дозволите приступ вашој камери са овог сајта.<br>Уколико желите да сликате, морате одобрити овај захтев."},notFound:{title:"Камера није препозната",text:"Изгледа да немате камеру на овом уређају."}},preview:{unknownName:"непознато",change:"Поништи",back:"Назад",done:"Додај",unknown:{title:"Шаљем... Сачекајте за приказ.",done:"Прескочи приказ и прихвати"},regular:{title:"Додај овај фајл?",line1:"Управо ћете додати овај фајл изнад.",line2:"Молимо потврдите."},image:{title:"Додај ову слику?",change:"Поништи"},crop:{title:"Кропуј и додај ову слику",done:"Урађено",free:"слободно"},video:{title:"Додај овај видео?",change:"Поништи"},error:{default:{title:"Ооопс!",text:"Нешто је искрсло у току слања.",back:"Молимо покушајте поново"},image:{title:"Дозвљене су само слике.",text:"Молимо покушајте са другим фајлом.",back:"Изабери слику"},size:{title:"Фајл који сте изабрали премашује лимит.",text:"Молимо покушајте са другим фајлом."},loadImage:{title:"Грешка",text:"Не могу да учитам слику"}},multiple:{title:"Изабрали сте %files%.",question:"Додај %files%?",tooManyFiles:"Изабрали сте превише фајлова. %max% је максимално.",tooFewFiles:"Изабрали сте %files%. Морате најмање %min% фајла.",clear:"Избаци све",done:"Додај",file:{preview:"Прегледај %file%",remove:"Избаци %file%"}}}},footer:{text:"направио",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},sv:{translations:{uploading:"Laddar... Var god vänta.",loadingInfo:"Laddar info...",errors:{default:"Fel",baddata:"Felaktigt värde",size:"Filen är för stor",upload:"Kan inte ladda upp",user:"Uppladdning avbruten",info:"Kan inte ladda informationen",image:"Endast bilder tillåtna",createGroup:"Kan inte skapa filgrupp",deleted:"Fil raderad"},draghere:"Dra filen hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Ta bort",choose:{files:{one:"Välj fil",other:"Välj filer"},images:{one:"Välj en bild",other:"Välj bilder"}}},dialog:{done:"Klar",showFiles:"Visa filer",tabs:{names:{"empty-pubkey":"Välkommen",preview:"Förhandsgranskning",file:"Lokala filer",url:"Direkta länkar",camera:"Kamera"},file:{drag:"Släpp filen här",nodrop:"Ladda upp filer från din dator",cloudsTip:"Molnlagring<br>och sociala nätverk",or:"eller",button:"Välj en lokal fil",also:"Du kan också välja den från"},url:{title:"Filer från webben",line1:"Välj en fil från en webbadress.",line2:"Ange bara länken till filen.",input:"Klistra in din länk här...",button:"Ladda upp"},camera:{capture:"Ta ett foto",mirror:"Spegel",retry:"Begär tillstånd igen",pleaseAllow:{title:"Vänligen ge tillgång till din kamera",text:"Du har uppmanats att tillåta att denna webbplats får tillgång till din kamera.För att ta bilder med din kamera måste du godkänna denna begäran."},notFound:{title:"Ingen kamera hittades",text:"Det verkar som att du inte har någon kamera ansluten till denna enheten."}},preview:{unknownName:"okänd",change:"Avbryt",back:"Tillbaka",done:"Lägg till",unknown:{title:"Laddar... Vänligen vänta på förhandsgranskning.",done:"Skippa förhandsgranskning och acceptera"},regular:{title:"Lägg till denna filen?",line1:"Du håller på att lägga till filen ovan.",line2:"Vänligen bekräfta."},image:{title:"Lägg till denna bilden?",change:"Avbryt"},crop:{title:"Beskär och lägg till denna bild",done:"Klar",free:"fri"},error:{default:{title:"Oops!",text:"Någonting gick fel under uppladdningen.",back:"Vänligen försök igen"},image:{title:"Endast bildfiler accepteras.",text:"Vänligen försök igen med en annan fil.",back:"Välj bild"},size:{title:"Filen du har valt är för stor.",text:"Vänligen försök igen med en annan fil."},loadImage:{title:"Fel",text:"Kan inte ladda bild"}},multiple:{title:"Du har valt %files%",question:"Vill du lägga till alla dessa filer?",tooManyFiles:"Du har valt för många filer. %max% är max.",tooFewFiles:"Du har valt %files%. Minst %min% krävs.",clear:"Ta bort alla",done:"Klar"}}}}},pluralize:function(e){return 1===e?"one":"other"}},tr:{translations:{uploading:"Yükleniyor... Lütfen bekleyin.",loadingInfo:"Bilgiler yükleniyor...",errors:{default:"Hata",baddata:"Geçersiz değer",size:"Dosya çok büyük",upload:"Yüklenemedi",user:"Yükleme iptal edildi",info:"Bilgiler getirilemedi",image:"Sadece resim dosyası yüklenebilir",createGroup:"Dosya grubu yaratılamıyor",deleted:"Dosya silinmiş"},draghere:"Buraya bir dosya bırakın",file:{other:"%1 dosya"},buttons:{cancel:"İptal",remove:"Kaldır",choose:{files:{one:"Dosya Seçin",other:"Dosya Seçin"},images:{one:"Resim Dosyası Seçin",other:"Resim Dosyası Seçin"}}},dialog:{done:"Bitti",showFiles:"Dosyaları Göster",tabs:{names:{"empty-pubkey":"Hoş geldiniz",preview:"Önizleme",file:"Bilgisayar",url:"Dış Bağlantılar",camera:"Kamera"},file:{drag:"Buraya bir dosya bırakın",nodrop:"Bilgisayarınızdan dosya yükleyin",or:"ya da",button:"Bilgisayardan bir dosya seç",also:"Diğer yükleme seçenekleri",cloudsTip:"Bulut depolamalar<br>ve sosyal hizmetler"},url:{title:"Webden dosyalar",line1:"Webden herhangi bir dosya seçin.",line2:"Dosya bağlantısını sağlayın.",input:"Bağlantınızı buraya yapıştırın...",button:"Yükle"},camera:{capture:"Fotoğraf çek",mirror:"Ayna",retry:"Tekrar izin iste",pleaseAllow:{title:"Lütfen kameranıza erişilmesine izin verin",text:"Bu siteden kamera erişimine izin vermeniz talep ediliyor. Kameranızla fotoğraf çekmek için bu isteği onaylamanız gerekmektedir."},notFound:{title:"Kamera algılanamadı",text:"Bu cihaza kamera bağlantısının olmadığı görünüyor."}},preview:{unknownName:"bilinmeyen",change:"İptal",back:"Geri",done:"Ekle",unknown:{title:"Yükleniyor... Önizleme için lütfen bekleyin.",done:"Önizlemeyi geç ve kabul et"},regular:{title:"Bu dosya eklensin mi?",line1:"Yukarıdaki dosyayı eklemek üzeresiniz.",line2:"Lütfen onaylayın."},image:{title:"Bu görsel eklensin mi?",change:"İptal"},crop:{title:"Bu görseli kes ve ekle",done:"Bitti"},error:{default:{title:"Aman!",text:"Yükleme sırasında bir hata oluştu.",back:"Lütfen tekrar deneyin."},image:{title:"Sadece resim dosyaları kabul edilmektedir.",text:"Lütfen başka bir dosya ile tekrar deneyin.",back:"Resim dosyası seç"},size:{title:"Seçtiğiniz dosya limitleri aşıyor.",text:"Lütfen başka bir dosya ile tekrar deneyin."},loadImage:{title:"Hata",text:"Resim dosyası yüklenemedi"}},multiple:{title:"%files% dosya seçtiniz",question:"Bu dosyaların hepsini eklemek istiyor musunuz?",tooManyFiles:"Fazla sayıda dosya seçtiniz, en fazla %max% dosya olabilir.",tooFewFiles:"%files% dosya seçtiniz, en az %min% dosya olmalıdır.",clear:"Hepsini kaldır",done:"Bitti"}}}}},pluralize:function(e){return"other"}},uk:{translations:{uploading:"Завантаження... Зачекайте.",loadingInfo:"Завантаження інформації...",errors:{default:"Помилка",baddata:"Неправильне значення",size:"Завеликий файл",upload:"Помилка завантаження",user:"Завантаження скасовано",info:"Помилка завантаження інформації",image:"Дозволені лише зображення",createGroup:"Неможливо створити групу файлів",deleted:"Файл видалено"},draghere:"Перетягніть файл сюди",file:{one:"%1 файл",few:"%1 файли",many:"%1 файлів"},buttons:{cancel:"Скасувати",remove:"Видалити",choose:{files:{one:"Вибрати файл",other:"Вибрати файли"},images:{one:"Вибрати зображення",other:"Вибрати зображення"}}},dialog:{close:"Закрити",openMenu:"Відкрити меню",done:"Готово",showFiles:"Показати файли",tabs:{names:{"empty-pubkey":"Вітання",preview:"Попередній перегляд",file:"Локальні файли",url:"Пряме посилання",camera:"Камера"},file:{drag:"Перетягніть<br>будь-які файли",nodrop:"Завантаження файлів з вашого комп'ютера",cloudsTip:"Хмарні сховища<br>та соціальні мережі",or:"або",button:"Обрати локальний файл",also:"або обрати з"},url:{title:"Файли з інших сайтів",line1:"Візьміть будь-який файл з Інтернету..",line2:"Вкажіть тут посилання.",input:"Вставте ваше посилання тут...",button:"Завантажити"},camera:{title:"Файл із відеокамери",capture:"Зробити знімок",mirror:"Віддзеркалити",startRecord:"Записати відео",stopRecord:"Стоп",cancelRecord:"Скасувати",retry:"Повторний запит дозволу",pleaseAllow:{title:"Будь ласка, надайте доступ до вашої камери",text:"Вам буде запропоновано дозволити доступ до камери з цього сайту.<br>Для того, щоб фотографувати за допомогою камери, ви повинні схвалити цей запит."},notFound:{title:"Камера не виявлена",text:"Схоже, у вас немає камери, підключеної до цього пристрою."}},preview:{unknownName:"невідомо",change:"Скасувати",back:"Назад",done:"Додати",unknown:{title:"Завантаження... Зачекайте на попередній перегляд.",done:"Пропустити перегляд і прийняти"},regular:{title:"Додати цей файл?",line1:"Ви збираєтеся додати файл вище.",line2:"Будь ласка, підтвердіть."},image:{title:"Додати це зображення?",change:"Скасувати"},crop:{title:"Обрізати та додати це зображення",done:"Готово",free:"довільно"},video:{title:"Додати це відео?",change:"Скасувати"},error:{default:{title:"Ой!",text:"Під час завантаження сталася помилка.",back:"Будь ласка, спробуйте ще раз"},image:{title:"Приймаються лише файли зображень.",text:"Повторіть спробу з іншим файлом.",back:"Виберіть зображення"},size:{title:"Розмір вибраного файлу перевищує ліміт.",text:"Повторіть спробу з іншим файлом."},loadImage:{title:"Помилка",text:"Помилка завантаження зображення"}},multiple:{title:"Ви вибрали %files%.",question:"Додати %files%?",tooManyFiles:"Ви вибрали забагато файлів. Максимальна кількість %max%.",tooFewFiles:"Ви вибрали %files%. Мінімальна кількість %min%.",clear:"Видалити все",done:"Додати",file:{preview:"Попередній перегляд %file%",remove:"Видалити %file%"}}}},footer:{text:"працює на",link:"uploadcare"}}},pluralize:function(e){return 1==(e/10%10|0)||e%10==0||e%10>4?"many":e%10==1?"one":"few"}},vi:{translations:{loadingInfo:"Đang tải thông tin...",errors:{default:"Lỗi",baddata:"Giá trị không đúng",size:"Tệp quá lớn",upload:"Không thể tải lên",user:"Tải lên bị hủy",info:"Không thể nạp thông tin",image:"Chỉ cho phép các hình ảnh",createGroup:"Không thể tạo nhóm tệp",deleted:"Tệp đã bị xóa"},uploading:"Đang tải lên... Vui lòng chờ đợi.",draghere:"Thả một tệp vào đây",file:{other:"%1 tệp"},buttons:{cancel:"Hủy",remove:"Xóa",choose:{files:{other:"Lựa chọn các tệp"},images:{other:"Lựa chọn hình ảnh"}}},dialog:{close:"Đóng",openMenu:"Mở menu",done:"Xong",showFiles:"Hiển thị tệp",tabs:{names:{"empty-pubkey":"Chào mừng",preview:"Xem trước",file:"Các tệp trên máy",url:"Liên kết tr.tiếp",camera:"Máy ảnh",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",gphotos:"Google Photos",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"kéo & thả<br>bất kỳ tệp nào",nodrop:"Tải lên các tệp từ &nbsp;máy tính của bạn",cloudsTip:"Lưu trữ Đám mây<br>và các mạng xã hội",or:"hoặc",button:"Lựa chọn một tệp trên máy",also:"hoặc lựa chọn từ"},url:{title:"Các tệp trên Web",line1:"Chọn bất từ tệp nào từ web.",line2:"Chỉ cần cung cấp liên kết.",input:"Dán liên kết của bạn xuống đây...",button:"Tải lên"},camera:{title:"Tệp từ web cam",capture:"Chụp một bức ảnh",mirror:"Gương",startRecord:"Quay một video",cancelRecord:"Hủy",stopRecord:"Dừng",retry:"Yêu cầu cấp phép lần nữa",pleaseAllow:{text:"Bạn đã được nhắc nhở để cho phép truy cập vào camera từ trang này.<br>Để có thể chụp ảnh với camera, bạn phải chấp thuận yêu cầu này.",title:"Vui lòng cho phép truy cập tới camera của bạn"},notFound:{title:"Không tìm thấy camera nào",text:"Có vẻ như bạn không có camera nào nối với thiết bị này."}},preview:{unknownName:"vô danh",change:"Hủy",back:"Quay lại",done:"Thêm",unknown:{title:"Đang tải lên...Vui lòng đợi để xem trước.",done:"Bỏ qua và chấp nhận"},regular:{title:"Thêm tệp này?",line1:"Bạn dự định thêm tệp ở trên.",line2:"Vui lòng chấp thuận."},image:{title:"Thêm hình ảnh này?",change:"Hủy"},crop:{title:"Cắt và thêm ảnh này",done:"Xong",free:"miễn phí"},video:{title:"Thêm video này?",change:"Hủy"},error:{default:{title:"Ồ!",back:"Vui lòng thử lại",text:"Có lỗi gì đó trong quá trình tải lên."},image:{title:"Chỉ chấp thuận các tệp hình ảnh.",text:"Vui lòng thử lại với một tệp mới.",back:"Lựa chọn hình ảnh"},size:{title:"Tệp bạn đã lựa chọn vượt quá giới hạn",text:"Vui lòng thử lại với một tệp khác."},loadImage:{title:"Lỗi",text:"Không thể tải hình ảnh"}},multiple:{title:"Bạn đã lựa chọn %files%",question:"Thêm %files%?",tooManyFiles:"Bạn đã lựa chọn quá nhiều tệp. %max% là tối đa.",tooFewFiles:"Bạn đã lựa chọn %files%. Ít nhất cần %min%",clear:"Xoá Tất cả",file:{preview:"Xem trước %file%",remove:"Xóa %file%"},done:"Thêm"}}},footer:{text:"được hỗ trợ bởi",link:"uploadcare"}}},pluralize:function(e){return"other"}},zhTW:{translations:{uploading:"上傳中...請等待",loadingInfo:"正在讀取資訊...",errors:{default:"錯誤",baddata:"錯誤資料",size:"檔案太大",upload:"無法上傳",user:"上傳被取消",info:"無法讀取資訊",image:"只允許圖片檔案",createGroup:"無法建立檔案群組",deleted:"檔案已被刪除"},draghere:"拖放檔案到這裡",file:{other:"%1 個檔案"},buttons:{cancel:"取消",remove:"刪除",choose:{files:{one:"選擇檔案",other:"選擇檔案"},images:{one:"選擇圖片",other:"選擇圖片"}}},dialog:{done:"完成",showFiles:"顯示檔案",tabs:{names:{"empty-pubkey":"歡迎",preview:"預覽",file:"從本機上傳",url:"任意圖片連結",camera:"相機"},file:{drag:"拖放檔案到這裡",nodrop:"從你的本機中上傳",cloudsTip:"雲端硬碟<br>與社群網站",or:"或者",button:"從本機中選取檔案",also:"你也可以選自"},url:{title:"來自網際網路的檔案",line1:"從網際網路選取檔案",line2:"只需提供連結",input:"將連結複製至此...",button:"上傳"},camera:{capture:"拍照",mirror:"鏡像",retry:"重新取得相機權限",pleaseAllow:{title:"請允許使存取您的相機",text:"你一直在提示允許來自這個網站的訪問攝像頭。為了拍照用你的相機，你必須批准這一請求。"},notFound:{title:"沒有找到相機",text:"看起來你有沒有將連接相機。"}},preview:{unknownName:"未知",change:"取消",back:"返回",done:"加入",unknown:{title:"上傳中...請等待預覽",done:"跳過預覽，直接接受"},regular:{title:"加入這個檔案？",line1:"你將加入上面的檔案。",line2:"請確認。"},image:{title:"加入這個圖片？",change:"取消"},crop:{title:"裁切並加入這個圖片",done:"完成",free:"自由裁切"},error:{default:{title:"錯誤！",text:"上傳過程中出錯。",back:"請重試"},image:{title:"只允許上傳圖片檔案。",text:"請選擇其他檔案重新上傳。",back:"選擇圖片"},size:{title:"你選取的檔案超過了100MB的上限",text:"請用另一個檔案再試一次。"},loadImage:{title:"錯誤",text:"無法讀取圖片"}},multiple:{title:"你已經選擇 %files%",question:"你要加入所有檔案嗎？",tooManyFiles:"你選了太多的檔案. 最多可選擇%max%. 請刪除一些。",tooFewFiles:"你所選擇的檔案 %files%. 至少要 %min% .",clear:"清空",done:"完成"}}}}},pluralize:function(e){return"other"}},zh:{translations:{uploading:"上传中...请等待",loadingInfo:"正在读取信息...",errors:{default:"错误",baddata:"错误数据",size:"文件太大",upload:"无法上传",user:"上传被取消",info:"无法读取信息",image:"只允许图形文件",createGroup:"无法建立文件组",deleted:"文件已被删除"},draghere:"拖放文件到这里",file:{other:"%1 个文件"},buttons:{cancel:"取消",remove:"删除"},dialog:{done:"完成",showFiles:"显示文件",tabs:{names:{url:"任意图片链接"},file:{drag:"拖放文件到这里",nodrop:"从你的电脑中上传",or:"或者",button:"从电脑中选取文件",also:"你也可以选自"},url:{title:"来自互联网的文件",line1:"从互联网选取文件",line2:"只需提供链接",input:"将链接拷贝至此...",button:"上传"},preview:{unknownName:"未知",change:"取消",back:"返回",done:"添加",unknown:{title:"上传中...请等待预览",done:"跳过预览，直接接受"},regular:{title:"添加这个文件?",line1:"你将添加上面的文件。",line2:"请确认。"},image:{title:"添加这个图片?",change:"取消"},crop:{title:"剪裁并添加这个图片",done:"完成"},error:{default:{title:"错误!",text:"上传过程中出错。",back:"请重试"},image:{title:"只允许上传图片文件。",text:"请选择其他文件重新上传。",back:"选择图片"},size:{title:"你选取的文件超过了100MB的上限",text:"请用另一个文件再试一次。"},loadImage:{title:"错误",text:"无法读取图片"}},multiple:{title:"你已经选择 %files%",question:"你要添加所有文件吗？",tooManyFiles:"你选了太多的文件. 最多可选择%max%. 请删除一些。",clear:"清空",done:"完成"}}}}},pluralize:function(e){return"other"}}},It=null,Pt={translations:Object.keys(Dt).reduce((function(e,t){return e[t]=Dt[t].translations,e}),{}),pluralize:Object.keys(Dt).reduce((function(e,t){return e[t]=Dt[t].pluralize,e}),{}),rebuild:function(e){return It=null,Ot(e)},t:function(e,t){var a,i,n;return a=Ot(),null==(n=Et(e,a.translations))&&a.lang!==Mt.lang&&(n=Et(e,(a=Mt).translations)),null!=t&&(n=null!=a.pluralize?(null!=(i=n[a.pluralize(t)])?i.replace("%1",t):void 0)||t:""),n||""}},Mt={lang:"en",translations:Dt.en.translations,pluralize:Dt.en.pluralize},Ot=function(t){if(!It){var a=Ve(t),i=a.locale||Mt.lang,n=e.extend(!0,{},Pt.translations[i],a.localeTranslations),r=e.isFunction(a.localePluralize)?a.localePluralize:Pt.pluralize[i];It={lang:i,translations:n,pluralize:r}}return It},Et=function(e,t){for(var a=e.split("."),i=0,n=a.length;i<n;i++){var r=a[i];if(null==t)return null;t=t[r]}return t},Ut=function(){function t(i,n){var r,o=this;a(this,t),this.__uuid=null,this.settings=Ve(n),this.__fileColl=new jt(i),this.__allFilesDf=e.when.apply(e,v(this.files())),this.__fileInfosDf=(i=function(){var t,a,i,n;for(n=[],t=0,a=(i=this.files()).length;t<a;t++)r=i[t],n.push(r.then(null,(function(t,a){return e.when(a)})));return n}.call(o),e.when.apply(e,v(i))),this.__createGroupDf=e.Deferred(),this.__initApiDeferred()}return r(t,[{key:"files",value:function(){return this.__fileColl.get()}},{key:"__save",value:function(){var e=this;if(!this.__saved)return this.__saved=!0,this.__allFilesDf.done((function(){return e.__createGroup().done((function(t){return e.__uuid=t.id,e.__buildInfo((function(t){return e.settings.imagesOnly&&!t.isImage?e.__createGroupDf.reject("image",t):e.__createGroupDf.resolve(t)}))})).fail((function(){return e.__createGroupDf.reject("createGroup")}))}))}},{key:"promise",value:function(){return this.__save(),this.__apiDf.promise()}},{key:"__initApiDeferred",value:function(){var t,a,i,n=this;return this.__apiDf=e.Deferred(),this.__progressState="uploading",a=function(e){return n.__buildInfo((function(t){return n.__apiDf.reject(e,t)}))},i=function(e){return n.__apiDf.resolve(e)},(t=function(){return n.__apiDf.notify(n.__progressInfo())})(),this.__fileColl.onAnyProgress(t),this.__allFilesDf.done((function(){return n.__progressState="uploaded",t()})).fail(a),this.__createGroupDf.done((function(e){return n.__progressState="ready",t(),i(e)})).fail(a)}},{key:"__progressInfo",value:function(){var e,t,a,i,n;for(a=0,e=0,t=(n=this.__fileColl.lastProgresses()).length;e<t;e++)a+=((null!=(i=n[e])?i.progress:void 0)||0)/n.length;return{state:this.__progressState,uploadProgress:a,progress:"ready"===this.__progressState?1:.9*a}}},{key:"__buildInfo",value:function(e){var t;return t={uuid:this.__uuid,cdnUrl:this.__uuid?"".concat(this.settings.cdnBase,"/").concat(this.__uuid,"/"):null,name:Pt.t("file",this.__fileColl.length()),count:this.__fileColl.length(),size:0,isImage:!0,isStored:!0},this.__fileInfosDf.done((function(){for(var a,i,n,r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];for(i=0,n=o.length;i<n;i++)a=o[i],t.size+=a.size,a.isImage||(t.isImage=!1),a.isStored||(t.isStored=!1);return e(t)}))}},{key:"__createGroup",value:function(){var t,a=this;return t=e.Deferred(),this.__fileColl.length()?this.__fileInfosDf.done((function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];var r;return Ie("".concat(a.settings.urlBase,"/group/"),"POST",{pub_key:a.settings.publicKey,signature:a.settings.secureSignature,expire:a.settings.secureExpire,files:function(){var e,t,a;for(a=[],e=0,t=i.length;e<t;e++)r=i[e],a.push("/".concat(r.uuid,"/").concat(r.cdnUrlModifiers||""));return a}()},{headers:{"X-UC-User-Agent":a.settings._userAgent}}).fail((function(e){return a.settings.debugUploads&&ee("Can't create group.",a.settings.publicKey,e),t.reject()})).done(t.resolve)})):t.reject(),t.promise()}},{key:"api",value:function(){return this.__api||(this.__api=pe(this,["promise","files"])),this.__api}}]),t}(),Bt=function(e){u(i,e);var t=m(i);function i(e,n){var r,o;return a(this,i),o=wt("ready",e.files,n),(r=t.call(this,o,n)).__data=e,r}return r(i,[{key:"__createGroup",value:function(){return ue(this.__data)}}]),i}(Ut),Rt=function(){var e,t,a,i,n,r,o,l,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0;for(t=[],i=0,r=s.length;i<r;i++)if(a=s[i],xt(a))t.push(a);else if(zt(a))for(n=0,o=(l=a.files()).length;n<o;n++)e=l[n],t.push(e);return new Ut(t,c).api()},Lt=function(t,a){var i,n;return a=Ve(a),i=e.Deferred(),(n=ve.exec(t))?Ie("".concat(a.urlBase,"/group/info/"),"GET",{jsonerrors:1,pub_key:a.publicKey,group_id:n[0]},{headers:{"X-UC-User-Agent":a._userAgent}}).fail((function(e){return a.debugUploads&&ee("Can't load group info. Probably removed.",n[0],a.publicKey,e),i.reject()})).done((function(e){var t;return t=new Bt(e,a),i.resolve(t.api())})):i.reject(),i.promise()},Vt={};w()&&e(window).on("message",(function(e){var t,a,i,n,r,o,l=e.originalEvent;try{n=JSON.parse(l.data)}catch(e){return}if((null!=n?n.type:void 0)&&n.type in Vt){for(o=[],t=0,i=(r=Vt[n.type]).length;t<i;t++)a=r[t],l.source===a[0]?o.push(a[1](n)):o.push(void 0);return o}}));var Nt=function(e,t,a){return e in Vt||(Vt[e]=[]),Vt[e].push([t,a])},qt=function(t,a){if(t in Vt)return Vt[t]=e.grep(Vt[t],(function(e){return e[0]!==a})),Vt[t]},Kt=new qe,Wt=function(){function t(e,i,n,r,o){var l=this;a(this,t),this.__createIframe=this.__createIframe.bind(this),this.container=e,this.tabButton=i,this.dialogApi=n,this.settings=r,this.name=o,this.dialogApi.progress((function(e){return e===l.name&&(l.__createIframe(),l.container.find(".uploadcare--tab__iframe").focus()),l.__sendMessage({type:"visibility-changed",visible:e===l.name})}))}return r(t,[{key:"remoteUrl",value:function(){return"".concat(this.settings.socialBase,"/window3/").concat(this.name,"?")+e.param({lang:this.settings.locale,public_key:this.settings.publicKey,widget_version:"3.10.2",images_only:this.settings.imagesOnly,pass_window_open:this.settings.passWindowOpen})}},{key:"__sendMessage",value:function(e){var t,a;return null!=(t=this.iframe)&&null!=(a=t[0].contentWindow)?a.postMessage(JSON.stringify(e),"*"):void 0}},{key:"__createIframe",value:function(){var t,a=this;if(!this.iframe)return this.iframe=e("<iframe>",{src:this.remoteUrl(),marginheight:0,marginwidth:0,frameborder:0,allowTransparency:"true"}).addClass("uploadcare--tab__iframe").appendTo(this.container).on("load",(function(){var e,t,i,n,r,o,l,s;for(a.iframe.css("opacity","1"),e=0,i=(r=Kt.urls).length;e<i;e++)s=r[e],a.__sendMessage({type:"embed-css",url:s});for(t=0,n=(o=Kt.styles).length;t<n;t++)l=o[t],a.__sendMessage({type:"embed-css",style:l})})),this.container.addClass("uploadcare--tab_remote"),t=this.iframe[0].contentWindow,Nt("file-selected",t,(function(t){var i,n,r;return r=function(){var e,i,n,r,o;if(t.alternatives)for(e=0,n=(r=a.settings.preferredTypes).length;e<n;e++)for(i in o=r[e],o=xe(o),t.alternatives)if(o.test(i))return t.alternatives[i];return t.url}(),n=e.extend({source:a.name},t.info||{}),i=new ht(r,a.settings,n),t.filename&&i.setName(t.filename),null!=t.is_image&&i.setIsImage(t.is_image),a.dialogApi.addFiles([i.promise()])})),Nt("open-new-window",t,(function(e){var t,i,n;if(a.settings.debugUploads&&te("Open new window message.",a.name),i=window.open(e.url,"_blank"))return n=function(){return a.settings.debugUploads&&te("Window is closed.",a.name),a.__sendMessage({type:"navigate",fragment:""})},"closed"in i?t=setInterval((function(){if(i.closed)return clearInterval(t),n()}),100):i.addEventListener("exit",n);ae("Can't open new window. Possible blocked.",a.name)})),this.dialogApi.done((function(){return qt("file-selected",t),qt("open-new-window",t)}))}}]),t}(),Ht={version:"3.10.2",jQuery:e,utils:{abilities:{fileAPI:k,sendFileAPI:z,dragAndDrop:A,canvas:C,fileDragAndDrop:S,iOSVersion:F,Blob:D,URL:Q,FileReader:$},Collection:Ft,UniqCollection:Tt,CollectionOfPromises:jt,imageLoader:We,videoLoader:He,log:ee,debug:te,warn:ae,warnOnce:ne,registerMessage:Nt,unregisterMessage:qt,unique:oe,defer:le,gcd:se,once:ce,wrapToPromise:ue,then:de,bindAll:pe,upperCase:fe,publicCallbacks:he,uuid:me,splitUrlRegex:ge,uuidRegex:_e,groupIdRegex:ve,cdnUrlRegex:be,splitCdnUrl:ye,escapeRegExp:we,globRegexp:xe,normalizeUrl:ke,fitText:ze,fitSizeInCdnLimit:function(e){return Ae(e,[2048,2048])},fitSize:Ae,applyCropCoordsToInfo:Ce,fileInput:Se,fileSelectDialog:Fe,fileSizeLabels:Te,readableFileSize:je,ajaxDefaults:De,jsonp:Ie,canvasToBlob:Pe,taskRunner:Me,fixedPipe:Ee,isFile:xt,valueToFile:kt,image:{shrinkFile:Je,shrinkImage:Ze,drawFileToCanvas:Qe,readJpegChunks:$e,replaceJpegChunk:et,getExif:tt,parseExifOrientation:it,hasTransparency:rt},pusher:{getPusher:ft},isFileGroup:zt,valueToGroup:At,isFileGroupsEqual:Ct},settings:{globals:Re,build:Ve,common:Le,waitForSettings:Ne,CssCollector:qe},locale:Pt,tabsCss:Kt,files:{BaseFile:ot,ObjectFile:st,InputFile:ct,UrlFile:ht,UploadedFile:_t,ReadyFile:vt,FileGroup:Ut,SavedFileGroup:Bt},Pusher:ut,FileGroup:Rt,loadFileGroup:Lt,fileFrom:yt,filesFrom:wt,__exports:{},namespace:function(e,t){var a=Ht;if(e)for(var i=e.split("."),n=0,r=i.length;n<r;n++){var o=i[n];a[o]||(a[o]={}),a=a[o]}return t(a)},expose:function(e,t){for(var a=e.split("."),i=a.pop(),n=Ht.__exports,r=Ht,o=0,l=a.length;o<l;o++){var s=a[o];n[s]||(n[s]={}),n=n[s],r=null!=r?r[s]:void 0}n[i]=t||r[i]}};function Gt(e){return function(t){return t(e)}}var Yt={plugin:Gt(Ht),version:"3.10.2",jQuery:e,defaults:c(c({},E),{},{allTabs:K.tabs.all}),globals:Le,start:Le,fileFrom:yt,filesFrom:wt,FileGroup:Rt,loadFileGroup:Lt,locales:["en"]},Xt=/["'&<>]/,Jt=function(e){var t,a=""+e,i=Xt.exec(a);if(!i)return a;var n="",r=0,o=0;for(r=i.index;r<a.length;r++){switch(a.charCodeAt(r)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==r&&(n+=a.substring(o,r)),o=r+1,n+=t}return o!==r?n+a.substring(o,r):n};var Zt={dialog:function(){return'<div class="uploadcare--dialog"><div class="uploadcare--dialog__container"><button type="button" title="'.concat(Pt.t("dialog.close"),'" aria-label="').concat(Pt.t("dialog.close"),'" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--dialog__close"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-close"></use></svg></button><div class="uploadcare--dialog__placeholder"></div></div><div class="uploadcare--powered-by uploadcare--dialog__powered-by">').concat(Pt.t("dialog.footer.text"),' <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/uploader/').concat("3.10.2",'/" target="_blank"><svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg> ').concat(Pt.t("dialog.footer.link"),"</a></div></div>")},dialog__panel:function(){return'<div class="uploadcare--panel"><div class="uploadcare--menu uploadcare--panel__menu"><button type="button" title="'.concat(Pt.t("dialog.openMenu"),'" aria-label="').concat(Pt.t("dialog.openMenu"),'" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--menu__toggle"><svg role="presentation" width="32" height="32" class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_menu"><use xlink:href="#uploadcare--icon-menu"></use></svg> <svg role="presentation" width="32" height="32" class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_back"><use xlink:href="#uploadcare--icon-back"></use></svg></button><div class="uploadcare--menu__items"></div></div><div class="uploadcare--panel__content"><div class="uploadcare--footer uploadcare--panel__footer"><div class="uploadcare--footer__additions uploadcare--panel__message"></div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--panel__show-files">').concat(Pt.t("dialog.showFiles"),'<div class="uploadcare--panel__file-counter"></div></button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--panel__done">').concat(Pt.t("dialog.done"),'</button></div><div class="uploadcare--powered-by uploadcare--panel__powered-by">').concat(Pt.t("dialog.footer.text"),' <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/uploader/').concat("3.10.2",'/" target="_blank"><svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg> ').concat(Pt.t("dialog.footer.link"),"</a></div></div></div>")},progress__text:function(){return'<div class="uploadcare--progress__text-container"><div class="uploadcare--progress__text"></div></div>'},"tab-camera-capture":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(Pt.t("dialog.tabs.camera.title"),'</div><div class="uploadcare--camera__controls"><button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_photo">').concat(Pt.t("dialog.tabs.camera.capture"),'</button> <button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_video">').concat(Pt.t("dialog.tabs.camera.startRecord"),"</button></div></div>")},"tab-camera":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(Pt.t("dialog.tabs.camera.title"),'</div><div class="uploadcare--media uploadcare--camera__video-container"><video muted class="uploadcare--media__video uploadcare--camera__video uploadcare--camera__video_mirrored"></video><button type="button" class="uploadcare--button uploadcare--button_size_small uploadcare--button_overlay uploadcare--camera__button uploadcare--camera__button_type_mirror">').concat(Pt.t("dialog.tabs.camera.mirror"),'</button></div><div class="uploadcare--camera__controls"><button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_start-record">').concat(Pt.t("dialog.tabs.camera.startRecord"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_capture">').concat(Pt.t("dialog.tabs.camera.capture"),'</button> <button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_cancel-record">').concat(Pt.t("dialog.tabs.camera.cancelRecord"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_stop-record">').concat(Pt.t("dialog.tabs.camera.stopRecord"),'</button></div><div class="uploadcare--camera__please-allow"><div class="uploadcare--text uploadcare--text_size_medium">').concat(Pt.t("dialog.tabs.camera.pleaseAllow.title"),'</div><div class="uploadcare--text">').concat(Pt.t("dialog.tabs.camera.pleaseAllow.text"),'</div></div><div class="uploadcare--camera__not-found"><div class="uploadcare--text uploadcare--text_size_medium">').concat(Pt.t("dialog.tabs.camera.notFound.title"),'</div><div class="uploadcare--text">').concat(Pt.t("dialog.tabs.camera.notFound.text"),'</div></div><button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_retry">').concat(Pt.t("dialog.tabs.camera.retry"),"</button></div>")},"tab-file":function(){return'<div class="uploadcare--tab__content uploadcare--draganddrop"><div class="uploadcare--text uploadcare--text_size_extra-large uploadcare--dragging__show">'.concat(Pt.t("draghere"),'</div><div class="uploadcare--draganddrop__title uploadcare--dragging__hide"><div class="uploadcare--draganddrop__supported"><div class="uploadcare--text uploadcare--text_size_extra-large">').concat(Pt.t("dialog.tabs.file.drag"),'</div><div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted">').concat(Pt.t("dialog.tabs.file.or"),'</div></div><div class="uploadcare--text uploadcare--text_size_large uploadcare--draganddrop__not-supported">').concat(Pt.t("dialog.tabs.file.nodrop"),'</div></div><button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--tab__action-button needsclick uploadcare--dragging__hide">').concat(Pt.t("dialog.tabs.file.button"),'</button><div class="uploadcare--file-sources uploadcare--dragging__hide"><div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted uploadcare--file-sources__caption">').concat(Pt.t("dialog.tabs.file.also"),'</div><div class="uploadcare--file-sources__items"><button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--file-source uploadcare--file-source_all uploadcare--file-sources_item"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-more"></use></svg></button></div></div></div>')},"tab-preview-error":function(e){var t=e.error;return'<div class="uploadcare--tab__content uploadcare--preview__content uploadcare--error"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(Pt.t("dialog.tabs.preview.error."+t+".title")||Pt.t("dialog.tabs.preview.error.default.title"),'</div><div class="uploadcare--text">').concat(Pt.t("dialog.tabs.preview.error."+t+".text")||Pt.t("dialog.tabs.preview.error.default.text"),'</div><button type="button" class="uploadcare--button uploadcare--preview__back">').concat(Pt.t("dialog.tabs.preview.error."+t+".back")||Pt.t("dialog.tabs.preview.error.default.back"),"</button></div>")},"tab-preview-image":function(e){var t=e.src,a=e.name,i=void 0===a?"":a,n=e.crop;return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(Pt.t("dialog.tabs.preview.image.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--media"><img src="').concat(t,'" title="').concat(Jt(i),'" alt="').concat(Jt(i),'" class="uploadcare--media__image uploadcare--preview__image"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><div class="uploadcare--footer__additions">').concat(n?'<div class="uploadcare--crop-sizes"><div role="button" tabindex="0" class="uploadcare--button uploadcare--button_icon uploadcare--crop-sizes__item" data-caption="free"><div class="uploadcare--crop-sizes__icon"></div></div></div>':"",'</div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(Pt.t("dialog.tabs.preview.image.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(Pt.t("dialog.tabs.preview.done"),"</button></div>")},"tab-preview-multiple-file":function(){return'<div class="uploadcare--file uploadcare--files__item uploadcare--file_status_uploading"><div class="uploadcare--file__description" tabindex="0"><div class="uploadcare--file__preview"></div><div class="uploadcare--file__name">'.concat(Pt.t("dialog.tabs.preview.unknownName"),'</div><div class="uploadcare--file__size"></div><div class="uploadcare--file__error"></div></div><div class="uploadcare--file__progressbar"><div class="uploadcare--progressbar"><div class="uploadcare--progressbar__value"></div></div></div><button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--file__remove"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-remove"></use></svg></button></div>')},"tab-preview-multiple":function(){return'<div class="uploadcare--tab__header"><div id="preview__title" class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title" role="status" aria-live="assertive"></div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--files"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><div class="uploadcare--footer__additions uploadcare--preview__message"></div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">'.concat(Pt.t("dialog.tabs.preview.multiple.clear"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done" aria-describedby="preview_title">').concat(Pt.t("dialog.tabs.preview.multiple.done"),"</button></div>")},"tab-preview-regular":function(e){var t=e.file;return'<div class="uploadcare--tab__header"><div id="tab__title" class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title" role="status" aria-live="assertive">'.concat(Pt.t("dialog.tabs.preview.regular.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--text uploadcare--preview__file-name">').concat(Jt(t.name)||Pt.t("dialog.tabs.preview.unknownName")," ").concat(je(t.size,"",", "),'</div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(Pt.t("dialog.tabs.preview.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done" aria-describedby="tab__title">').concat(Pt.t("dialog.tabs.preview.done"),"</button></div>")},"tab-preview-unknown":function(){return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(Pt.t("dialog.tabs.preview.unknown.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--text uploadcare--preview__file-name"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(Pt.t("dialog.tabs.preview.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(Pt.t("dialog.tabs.preview.unknown.done"),"</button></div>")},"tab-preview-video":function(){return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(Pt.t("dialog.tabs.preview.video.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--media"><video controls class="uploadcare--media__video uploadcare--preview__video"></video></div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(Pt.t("dialog.tabs.preview.video.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(Pt.t("dialog.tabs.preview.done"),"</button></div>")},"tab-url":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(Pt.t("dialog.tabs.url.title"),'</div><div class="uploadcare--text">').concat(Pt.t("dialog.tabs.url.line1"),'</div><div class="uploadcare--text">').concat(Pt.t("dialog.tabs.url.line2"),'</div><form class="uploadcare--form"><input type="text" class="uploadcare--input" placeholder="').concat(Pt.t("dialog.tabs.url.input"),'"> <button type="submit" class="uploadcare--button uploadcare--button_primary uploadcare--tab__action-button" type="submit">').concat(Pt.t("dialog.tabs.url.button"),"</button></form></div>")},"widget-button":function(e){var t=e.caption,a=e.name;return'<button type="button" class="uploadcare--widget__button uploadcare--widget__button_type_'.concat(a,'">').concat(t,"</button>")},"widget-file-name":function(e){var t=e.name,a=e.size;return'<div class="uploadcare--link uploadcare--widget__file-name" tabindex="0" role="link">'.concat(Jt(ze(t,20)),'</div><div class="uploadcare--widget__file-size">, ').concat(je(a),"</div>")},widget:function(){return'<div class="uploadcare--widget" aria-describedby="uploadcare--widget__text uploadcare--widget__progress"><div class="uploadcare--widget__dragndrop-area">'.concat(Pt.t("draghere"),'</div><div id="uploadcare--widget__progress" class="uploadcare--widget__progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div><div id="uploadcare--widget__text" class="uploadcare--widget__text" aria-live="polite"></div></div>')},icons:function(){return'<svg width="0" height="0" style="position:absolute"><symbol viewBox="0 0 32 32" id="uploadcare--icon-back" xmlns="http://www.w3.org/2000/svg"><path d="M21.132 9.06a1.5 1.5 0 00-2.122-2.12L9.88 16.07l9.06 9.061a1.5 1.5 0 102.122-2.121l-6.94-6.94 7.01-7.01z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-box" xmlns="http://www.w3.org/2000/svg"><path d="M4.962 9C4.385 9 4 9.384 4 9.96v8.243C4 20.793 6.213 23 8.811 23c1.829 0 3.464-1.043 4.33-2.578.866 1.535 2.406 2.578 4.33 2.578 2.695 0 4.812-2.206 4.812-4.797 0-2.686-2.117-4.886-4.811-4.886-1.829 0-3.465 1.043-4.33 2.578-.77-1.535-2.406-2.578-4.33-2.578a4.957 4.957 0 00-2.887.96V9.958c0-.48-.482-.959-.963-.959zm17.08 4.257a.841.841 0 00-.33.15c-.385.288-.5.965-.211 1.349l2.526 3.357-2.526 3.358c-.289.384-.174 1.061.21 1.35.385.287 1.065.173 1.354-.21l2.105-2.879 2.105 2.878c.288.384.968.498 1.353.21.385-.288.499-.965.21-1.349l-2.526-3.358 2.526-3.357c.289-.384.175-1.061-.21-1.35-.385-.287-1.065-.203-1.353.18l-2.105 2.879-2.105-2.878c-.217-.288-.657-.406-1.023-.33zm-13.23 2.068c1.539 0 2.886 1.344 2.886 2.878.096 1.535-1.25 2.878-2.887 2.878a2.89 2.89 0 01-2.886-2.878c0-1.63 1.347-2.878 2.886-2.878zm8.66 0a2.89 2.89 0 012.886 2.878c0 1.535-1.347 2.878-2.886 2.878a2.89 2.89 0 01-2.887-2.878c0-1.63 1.347-2.878 2.887-2.878z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-camera" xmlns="http://www.w3.org/2000/svg"><path d="M21 10h3c1.653 0 3 1.343 3 3v9c0 1.656-1.344 3-3.001 3H8A3 3 0 015 22v-9a3 3 0 013-3h3v-.999C11 7.901 11.895 7 13 7h6c1.113 0 2 .896 2 2.001V10zm-5 12a4.5 4.5 0 100-9 4.5 4.5 0 000 9zm0-2a2.5 2.5 0 110-5 2.5 2.5 0 010 5z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-close" xmlns="http://www.w3.org/2000/svg"><path d="M10.06 7.94a1.5 1.5 0 00-2.12 2.12L13.878 16l-5.94 5.94a1.5 1.5 0 002.122 2.12L16 18.122l5.94 5.94a1.5 1.5 0 002.12-2.122L18.122 16l5.94-5.94a1.5 1.5 0 00-2.122-2.12L16 13.878l-5.94-5.94z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-crop-free" xmlns="http://www.w3.org/2000/svg"><path d="M8 12a2.004 2.004 0 01-2-2.01V8.01C6 6.897 6.893 6 8.01 6h1.98c1.109 0 2.005.888 2.01 2h8c.005-1.107.896-2 2.01-2h1.98C25.103 6 26 6.893 26 8.01v1.98A2.004 2.004 0 0124 12v8c1.107.005 2 .896 2 2.01v1.98c0 1.112-.893 2.01-2.01 2.01h-1.98A2.004 2.004 0 0120 24h-8a2.004 2.004 0 01-2.01 2H8.01A2.004 2.004 0 016 23.99v-1.98c0-1.109.888-2.005 2-2.01v-8zm2 0v8a2.004 2.004 0 012 2h8a2.004 2.004 0 012-2v-8a2.004 2.004 0 01-2-2h-8a2.004 2.004 0 01-2 2zm12 10.01v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01h-1.98c-.01 0-.01 0-.01.01zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C24 8 24 8 23.99 8h-1.98C22 8 22 8 22 8.01zm-14 14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01H8.01C8 22 8 22 8 22.01zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C10 8 10 8 9.99 8H8.01C8 8 8 8 8 8.01z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-dropbox" xmlns="http://www.w3.org/2000/svg"><path d="M9.5 5L16 9.141l-6.5 4.141L3 9.141 9.5 5zm13 0L29 9.141l-6.5 4.141L16 9.141 22.5 5zM3 17.423l6.5-4.141 6.5 4.141-6.5 4.141L3 17.423zm19.5-4.141l6.5 4.141-6.5 4.141-6.5-4.141 6.5-4.141zm-13 9.662l6.5-4.14 6.5 4.14-6.5 4.141-6.5-4.14z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-empty-pubkey" xmlns="http://www.w3.org/2000/svg"><path d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-13.704a1.296 1.296 0 100-2.592 1.296 1.296 0 000 2.592z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-error" xmlns="http://www.w3.org/2000/svg"><path d="M18.122 23.93V21a.583.583 0 00-.179-.434.585.585 0 00-.423-.175h-2.616a.585.585 0 00-.424.175.583.583 0 00-.179.434v2.93c0 .172.06.316.18.433.118.117.26.175.423.175h2.616a.585.585 0 00.423-.175.583.583 0 00.18-.434zm-.037-6.326l.339-9.05a.404.404 0 00-.189-.351c-.163-.135-.313-.203-.452-.203H14.64c-.138 0-.288.068-.452.203-.125.086-.188.215-.188.388l.32 9.013c0 .123.063.224.188.304.126.08.277.12.452.12h2.484c.176 0 .324-.04.443-.12a.41.41 0 00.198-.304z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-evernote" xmlns="http://www.w3.org/2000/svg"><path d="M7.998 8.648h2.245a.233.233 0 00.232-.233s-.028-1.931-.028-2.468v-.006c0-.441.093-.825.253-1.148l.077-.144a.05.05 0 00-.026.014l-4.359 4.34a.05.05 0 00-.016.025c.09-.044.213-.106.23-.113.38-.172.84-.267 1.392-.267M24.196 6.56c-.553-.2-1.675-.408-3.084-.575-1.134-.134-2.467-.123-3.272-.098-.097-.665-.56-1.272-1.08-1.482-1.384-.56-3.523-.424-4.071-.27-.437.123-.92.373-1.188.76-.18.258-.297.59-.298 1.051 0 .262.007.878.014 1.426.006.548.014 1.04.014 1.043a.887.887 0 01-.884.888H8.103c-.479 0-.845.08-1.124.208-.28.127-.478.3-.628.503-.3.404-.352.902-.351 1.411 0 0 .004.416.104 1.22.083.622.756 4.971 1.394 6.294.248.514.413.73.9.956 1.083.466 3.559.984 4.72 1.133 1.158.148 1.885.46 2.318-.451.002-.003.087-.227.204-.557.377-1.144.43-2.16.43-2.894 0-.075.108-.078.108 0 0 .519-.098 2.354 1.283 2.847.545.194 1.676.367 2.826.502 1.039.12 1.793.53 1.793 3.208 0 1.628-.34 1.851-2.122 1.851-1.444 0-1.994.038-1.994-1.113 0-.932.917-.834 1.596-.834.304 0 .083-.226.083-.8 0-.572.357-.902.02-.91-2.35-.066-3.733-.003-3.733 2.947 0 2.679 1.021 3.176 4.357 3.176 2.614 0 3.536-.086 4.616-3.45.213-.663.73-2.69 1.043-6.092.197-2.15-.187-8.644-.491-10.282-.178-.958-.746-1.43-1.259-1.616zm-3.3 8.792a4.75 4.75 0 00-.923.056c.081-.66.353-1.473 1.316-1.439 1.066.037 1.216 1.049 1.22 1.734-.45-.201-1.006-.33-1.613-.35"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-facebook" xmlns="http://www.w3.org/2000/svg"><path d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.99 4.388 10.954 10.125 11.854V19.47h-3.047V16h3.047v-2.644c0-3.007 1.792-4.668 4.533-4.668 1.312 0 2.686.234 2.686.234v2.953H19.83c-1.491 0-1.956.925-1.956 1.875V16h3.328l-.532 3.469h-2.796v8.385C23.612 26.954 28 21.99 28 16z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-file" xmlns="http://www.w3.org/2000/svg"><path d="M19 6l5 5h-4c-.556 0-1-.448-1-1V6zm5 7v11.192c0 .995-.808 1.808-1.804 1.808H9.804A1.808 1.808 0 018 24.2V7.74C8 6.602 8.627 6 9.778 6H17v4.994c0 1.12.898 2.006 2.006 2.006H24z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-flickr" xmlns="http://www.w3.org/2000/svg"><path d="M11 20c-2.212 0-4-1.79-4-4s1.79-4 4-4a4 4 0 010 8zm10.001 0a4 4 0 11-.002-8 4 4 0 01.002 8z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gdrive" xmlns="http://www.w3.org/2000/svg"><path d="M19.461 6l7.109 12h-7.004L12.539 6h6.922zm-9.27 19l3.467-6H27l-3.466 6H10.192zM5 18.841l6.618-11.36 3.566 5.929-6.722 11.36L5 18.84z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gphotos" xmlns="http://www.w3.org/2000/svg"><path d="M8.797 9.5l-5.632 5.841c-.064.07-.165.228-.165.33 0 .202.127.329.33.329h8.869c1.444 0 2.501-1.09 2.501-2.534V9.5H8.797zM28.67 16H19.8c-1.444 0-2.501 1.09-2.501 2.534V22.5h5.903l5.632-5.841c.064-.07.165-.228.165-.33 0-.202-.127-.329-.33-.329zM16.659 3.165C16.589 3.1 16.43 3 16.329 3c-.202 0-.329.127-.329.33v8.869c0 1.444 1.09 2.501 2.534 2.501H22.5V8.797l-5.841-5.632zM13.466 17.3H9.5v5.903l5.841 5.632c.07.064.228.165.33.165.202 0 .329-.127.329-.33v-8.869c0-1.444-1.09-2.501-2.534-2.501z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-huddle" xmlns="http://www.w3.org/2000/svg"><path d="M13.63 14.39c.07-.102.17-.26.2-.313 1.474-2.683 6.857-2.686 8.49 1.002.43.968.67 1.97.675 3.023.008 1.978.004 3.957.002 5.936 0 1.192-.68 1.945-1.763 1.962-1.087.016-1.856-.766-1.865-1.944-.014-1.874.003-3.749-.006-5.623-.006-1.351-.654-2.388-1.719-2.793-1.775-.675-3.59.305-3.892 2.159-.122.747-.104 1.52-.114 2.281-.016 1.336-.002 2.673-.005 4.01-.003 1.125-.669 1.866-1.707 1.907-1.06.042-1.828-.668-1.922-1.78-.007-.086-.003-.173-.003-.26 0-5.31-.002-10.622.002-15.932 0-1.2.731-2.016 1.79-2.025 1.05-.01 1.832.74 1.837 1.792.01 2.013.003 4.026.005 6.04 0 .12.002.391-.005.558"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-instagram" xmlns="http://www.w3.org/2000/svg"><path d="M16 5c2.987 0 3.362.013 4.535.066 1.171.054 1.97.24 2.67.511a5.391 5.391 0 011.949 1.27 5.392 5.392 0 011.269 1.948c.272.7.457 1.499.51 2.67.054 1.173.067 1.548.067 4.535s-.013 3.362-.066 4.535c-.054 1.171-.24 1.97-.511 2.67a5.392 5.392 0 01-1.27 1.949 5.391 5.391 0 01-1.948 1.269c-.7.271-1.499.457-2.67.51-1.173.054-1.548.067-4.535.067s-3.362-.013-4.535-.066c-1.171-.054-1.97-.24-2.67-.511a5.392 5.392 0 01-1.949-1.27 5.391 5.391 0 01-1.268-1.948c-.273-.7-.458-1.499-.512-2.67C5.013 19.362 5 18.987 5 16s.013-3.362.066-4.535c.054-1.171.24-1.97.512-2.67a5.391 5.391 0 011.268-1.949 5.392 5.392 0 011.949-1.269c.7-.271 1.499-.457 2.67-.51C12.638 5.012 13.013 5 16 5zm0 1.982c-2.937 0-3.285.011-4.445.064-1.072.049-1.655.228-2.042.379-.514.2-.88.438-1.265.823a3.41 3.41 0 00-.823 1.264c-.15.388-.33.97-.379 2.043-.053 1.16-.064 1.508-.064 4.445 0 2.937.011 3.285.064 4.445.049 1.072.228 1.655.379 2.043.2.513.438.88.823 1.264.385.385.751.624 1.265.823.387.15.97.33 2.042.379 1.16.053 1.508.064 4.445.064 2.937 0 3.285-.011 4.445-.064 1.072-.049 1.655-.228 2.042-.379.514-.2.88-.438 1.265-.823.385-.385.624-.751.823-1.264.15-.388.33-.97.379-2.043.053-1.16.064-1.508.064-4.445 0-2.937-.011-3.285-.064-4.445-.049-1.072-.228-1.655-.379-2.043-.2-.513-.438-.88-.823-1.264a3.408 3.408 0 00-1.265-.823c-.387-.15-.97-.33-2.042-.379-1.16-.053-1.508-.064-4.445-.064zm0 3.37a5.649 5.649 0 110 11.297 5.649 5.649 0 010-11.298zm0 9.315a3.667 3.667 0 100-7.334 3.667 3.667 0 000 7.334zm7.192-9.539a1.32 1.32 0 11-2.64 0 1.32 1.32 0 012.64 0z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-menu" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 10a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17zm0 7a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17zm0 7a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-more" xmlns="http://www.w3.org/2000/svg"><path d="M21 16a3 3 0 116 0 3 3 0 01-6 0zm-8 0a3 3 0 116 0 3 3 0 01-6 0zm-8 0a3 3 0 116 0 3 3 0 01-6 0z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-onedrive" xmlns="http://www.w3.org/2000/svg"><path d="M11.715 16.427c.584-2.413 2.699-4.177 5.209-4.177 1.483 0 2.873.621 3.878 1.7.425-.14.922-.248 1.364-.258v-.16c0-3.054-2.214-5.532-4.944-5.532-1.952 0-3.624 1.278-4.428 3.115a3.55 3.55 0 00-2.033-.658c-2.142 0-3.877 1.94-3.877 4.336 0 .258.028.51.068.754-1.652.167-2.946 1.9-2.946 3.79 0 .02.005.037.005.056-.001.017-.011.035-.011.052 0 .757.257 1.449.673 2.007a3.14 3.14 0 002.568 1.317h1.513a4.49 4.49 0 01-.477-1.987c-.001-2.138 1.476-3.93 3.438-4.355zm13.752 2.375c-.03 0-.06.01-.09.01.008-.09.026-.18.026-.273 0-1.812-1.431-3.279-3.198-3.279-.703 0-1.347.24-1.877.635-.655-1.249-1.924-2.107-3.405-2.107-2.146 0-3.885 1.784-3.885 3.984 0 .029.008.053.009.082a2.764 2.764 0 00-.431-.045c-1.602 0-2.898 1.33-2.898 2.973 0 .205.02.406.059.599C10.05 22.87 11.322 24 12.856 24h12.847v-.023C26.99 23.85 28 22.753 28 21.402c0-1.435-1.134-2.6-2.533-2.6z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-remove" xmlns="http://www.w3.org/2000/svg"><path d="M22.142 24.009c-.078 1.1-1.044 1.991-2.15 1.991h-7.983c-1.11 0-2.073-.897-2.151-1.991l-.786-11.002A.924.924 0 0110.007 12h11.986c.556 0 .975.45.935 1.007l-.786 11.002zM13 7V6c0-.556.444-1 .99-1h4.02A1 1 0 0119 6v1h4c.556 0 1 .447 1 .999v1.002A.997.997 0 0123 10H9c-.555 0-1-.447-1-.999V7.999A.996.996 0 019 7h4z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-uploadcare" xmlns="http://www.w3.org/2000/svg"><path fill="#ffd800" d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-13.704a1.296 1.296 0 100-2.592 1.296 1.296 0 000 2.592z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-url" xmlns="http://www.w3.org/2000/svg"><path d="M16 5c6.074 0 11 4.926 11 11s-4.926 11-11 11S5 22.074 5 16 9.926 5 16 5zm6.076 6.327a.992.992 0 10-1.403-1.403l-1.128 1.128c-1.431-.92-3.47-.768-4.697.461l-3.186 3.185a3.7 3.7 0 00-1.09 2.636c0 .748.22 1.46.624 2.067l-1.272 1.272a.992.992 0 101.402 1.403l1.273-1.272c.606.405 1.32.623 2.067.623.997 0 1.933-.386 2.634-1.089l3.187-3.186a3.729 3.729 0 00.464-4.7l1.125-1.125zm-4.252 3.841a.982.982 0 00.701-.29l.95-.95c.067.188.114.385.114.591 0 .466-.178.904-.505 1.23l-3.186 3.187c-.472.47-1.197.588-1.813.382l.793-.792a.992.992 0 10-1.404-1.404l-.801.802a1.752 1.752 0 01-.115-.59c0-.468.179-.905.506-1.232l3.186-3.186a1.736 1.736 0 011.23-.507c.207 0 .404.049.592.116l-.948.95a.992.992 0 00.7 1.693z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-vk" xmlns="http://www.w3.org/2000/svg"><path d="M27.791 21.484c-.416-.767-1.212-1.708-2.386-2.824l-.038-.038c-.558-.532-.895-.882-1.037-1.06-.258-.341-.316-.686-.175-1.036.1-.264.475-.821 1.125-1.673.341-.451.612-.813.812-1.086 1.441-1.959 2.066-3.21 1.874-3.756l-.074-.127c-.05-.077-.18-.147-.387-.211-.209-.064-.475-.075-.8-.032l-3.599.025a.457.457 0 00-.25.007l-.163.038-.062.032-.05.039a.56.56 0 00-.137.134.882.882 0 00-.125.223 21.072 21.072 0 01-1.337 2.875 27.31 27.31 0 01-.85 1.373c-.258.388-.475.673-.65.856a4.57 4.57 0 01-.475.44c-.141.112-.25.158-.324.141a8.987 8.987 0 01-.213-.05.843.843 0 01-.281-.314 1.425 1.425 0 01-.144-.498c-.025-.2-.04-.373-.044-.518-.003-.144-.002-.349.007-.613.008-.264.012-.443.012-.536 0-.324.007-.675.019-1.054l.031-.901c.009-.222.013-.456.013-.703 0-.247-.015-.44-.044-.581a2.02 2.02 0 00-.131-.409.684.684 0 00-.256-.307 1.426 1.426 0 00-.419-.172c-.441-.102-1.004-.158-1.687-.166-1.55-.017-2.545.085-2.986.307a1.69 1.69 0 00-.475.383c-.15.187-.171.29-.063.306.5.077.854.26 1.062.55l.075.153c.059.11.117.307.175.588.059.28.096.592.113.932.041.622.041 1.154 0 1.597-.042.443-.081.788-.119 1.035a2.107 2.107 0 01-.169.6 2.55 2.55 0 01-.15.281.217.217 0 01-.062.064.918.918 0 01-.337.064c-.117 0-.259-.06-.425-.179a3.024 3.024 0 01-.519-.492c-.179-.208-.38-.5-.606-.875a15.385 15.385 0 01-.7-1.328l-.2-.37a32.156 32.156 0 01-.512-1.042 20.306 20.306 0 01-.575-1.323.84.84 0 00-.3-.408l-.062-.039a.85.85 0 00-.2-.108 1.304 1.304 0 00-.287-.083L4.8 9.64c-.35 0-.587.081-.712.243l-.05.077a.421.421 0 00-.038.204c0 .094.025.209.075.345.5 1.201 1.043 2.36 1.63 3.475C6.294 15.1 6.804 16 7.237 16.68c.433.681.875 1.324 1.325 1.929.45.604.748.992.893 1.162.146.17.26.298.344.384l.312.306c.2.205.494.45.881.735.388.285.817.566 1.287.843.471.277 1.019.503 1.644.677a5.564 5.564 0 001.824.211h1.437c.292-.026.512-.12.662-.281l.05-.064a.858.858 0 00.094-.236c.029-.107.044-.224.044-.351a4.301 4.301 0 01.08-.99c.063-.294.134-.516.213-.665a1.632 1.632 0 01.482-.562.806.806 0 01.1-.045c.2-.068.434-.002.705.199.271.2.525.447.763.74.237.295.522.625.856.99.333.367.625.64.874.818l.25.154c.167.102.384.196.65.28.266.086.5.107.7.065l3.199-.051c.316 0 .562-.054.737-.16.175-.107.279-.224.312-.351.034-.128.035-.273.007-.435a1.632 1.632 0 00-.088-.338 1.694 1.694 0 00-.082-.16z"/></symbol></svg>'},styles:function(){return'.uploadcare--jcrop-handle{box-sizing:border-box;padding:12.5px;width:45px;height:45px;background:transparent;z-index:2147483621}@media (min-width:760px){.uploadcare--jcrop-handle{height:35px;width:35px;padding:10px}}.uploadcare--jcrop-handle:before{content:"";display:block;width:20px;height:20px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border-radius:50%}@media (min-width:760px){.uploadcare--jcrop-handle:before{height:15px;width:15px}}.uploadcare--jcrop-handle.ord-nw{margin-top:-22.5px;margin-left:-22.5px;top:0;left:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-nw{margin-left:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-ne{margin-top:-22.5px;margin-right:-22.5px;top:0;right:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-ne{margin-right:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-se{margin-bottom:-22.5px;margin-right:-22.5px;bottom:0;right:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-se{margin-right:-17.5px;margin-bottom:-17.5px}}.uploadcare--jcrop-handle.ord-sw{margin-bottom:-22.5px;margin-left:-22.5px;bottom:0;left:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-sw{margin-left:-17.5px;margin-bottom:-17.5px}}.uploadcare--jcrop-hline{width:100%;height:1px!important;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);z-index:2147483620}.uploadcare--jcrop-hline.bottom{bottom:0}.uploadcare--jcrop-vline{width:1px!important;height:100%;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);z-index:2147483620}.uploadcare--jcrop-vline.right{right:0}.uploadcare--jcrop-tracker{height:100%;width:100%;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.uploadcare--jcrop-holder img{max-width:none;max-height:none}.uploadcare--text{margin:0 0 10px;padding:0;font-size:17.5px;line-height:25px}.uploadcare--text:empty{display:none}.uploadcare--text_muted{color:#a4a2a1}.uploadcare--text_pre{box-sizing:border-box;overflow-x:auto;padding:20px;max-width:100%;background:#e3e1e1;font-family:monospace;white-space:pre;text-align:left}.uploadcare--text_size_small{font-size:15px;line-height:20px}.uploadcare--text_size_medium{font-size:20px;font-weight:700;line-height:25px}.uploadcare--text_size_large{font-size:22px;font-weight:700;line-height:25px}.uploadcare--text_size_extra-large{font-size:35px;line-height:45px}@media (min-width:760px){.uploadcare--text_size_extra-large{font-size:42.5px;line-height:50px}}.uploadcare--icon{all:initial;color:inherit;fill:currentColor;margin:0;padding:0;max-width:100%;width:32px;height:32px;cursor:inherit}.uploadcare--link,.uploadcare--link:link,.uploadcare--link:visited{cursor:pointer;color:#157cfc;text-decoration:underline}.uploadcare--link:focus,.uploadcare--link:hover{color:#3891ff;text-decoration:none}.uploadcare--link:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--link:active{color:#0969ee}.uploadcare--button{all:initial;-ms-flex-negative:0;flex-shrink:0;display:inline-block;overflow:hidden;box-sizing:border-box;margin:0;padding:10px;width:auto;min-width:100px;height:auto;min-height:0;border-radius:6px;border:1px solid #157cfc;background:transparent;color:#157cfc;cursor:default;white-space:nowrap;text-overflow:ellipsis;text-align:center;font-family:inherit;font-size:15px;font-weight:400;font-style:normal;line-height:20px;box-shadow:none;text-shadow:none;transition:background .3s,color .3s,border .3s}.uploadcare--button svg{pointer-events:none}.uploadcare--button:focus,.uploadcare--button:hover{background:transparent;border-color:#3891ff;color:#3891ff;font-weight:400;font-style:normal;box-shadow:none;text-shadow:none}.uploadcare--button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--button:active{border-color:#0969ee;color:#0969ee}.uploadcare--button:disabled,.uploadcare--button[aria-disabled=true]{background:transparent!important;border-color:#d4d2d2!important;color:#d4d2d2!important;cursor:not-allowed}@media (min-width:760px){.uploadcare--button{padding:10px 20px;font-size:17.5px;line-height:25px}}.uploadcare--button_icon{padding:14px;min-width:0;width:60px;height:60px}.uploadcare--button_muted{border-color:transparent!important;color:#a4a2a1;border-radius:0}.uploadcare--button_muted:focus,.uploadcare--button_muted:hover{color:#157cfc}.uploadcare--button_muted:disabled,.uploadcare--button_muted[aria-disabled=true]{border-color:transparent!important}.uploadcare--button_overlay{background:rgba(53,53,53,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:focus,.uploadcare--button_overlay:hover{background:hsla(0,0%,40%,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:active{background:rgba(33,33,33,.5)}.uploadcare--button_primary{background:#157cfc;border-color:#157cfc;color:#fff}.uploadcare--button_primary:focus,.uploadcare--button_primary:hover{background:#3891ff;border-color:#3891ff;color:#fff}.uploadcare--button_primary:active{background:#0969ee;border-color:#0969ee}.uploadcare--button_primary:disabled,.uploadcare--button_primary[aria-disabled=true]{background:#d4d2d2!important;border-color:#d4d2d2!important;color:#fff!important}.uploadcare--button_size_big{padding:10px 25px;font-size:20px;line-height:30px}.uploadcare--button_size_small{padding:5px 10px;min-width:80px;font-size:15px;line-height:20px}.uploadcare--input{-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-negative:0;flex-shrink:0;display:block;box-sizing:border-box;margin:5px 0 15px;padding:10px 15px;width:100%;font-size:17.5px;line-height:25px;background:#fff;color:#353535;border:1px solid #a4a2a1;border-radius:2px;box-shadow:none}.uploadcare--input:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--input::-webkit-input-placeholder{color:#a4a2a1}.uploadcare--input::-ms-input-placeholder{color:#a4a2a1}.uploadcare--input::placeholder{color:#a4a2a1}.uploadcare--form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;box-sizing:border-box;max-width:400px;width:100%}.uploadcare--error{color:#e66a6a}.uploadcare--powered-by{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:7.5px 0;font-size:12.5px;line-height:15px;color:#fff;text-align:center}.uploadcare--powered-by__link{display:-ms-inline-flexbox;display:inline-flex;color:inherit!important;text-decoration:none!important}.uploadcare--powered-by__logo{display:-ms-inline-flexbox;display:inline-flex;width:20px;height:15px;vertical-align:text-bottom}.uploadcare--progress__canvas{width:100%;height:100%}.uploadcare--progress__text{display:table-cell;vertical-align:middle;text-align:center;font-size:60%;line-height:1}.uploadcare--progress__text-container{width:100%;height:100%;display:table;white-space:normal}.uploadcare--progress_type_canvas{padding:2px;width:32px;height:32px;color:#ffd800;border-color:#e3e1e1}.uploadcare--progressbar{overflow:hidden;width:100%;height:100%;background:#e3e1e1;border-radius:6px}.uploadcare--progressbar__value{width:0;height:100%;background:#ffd800}.uploadcare--menu{-ms-flex-negative:0;flex-shrink:0;width:100%;width:100vw;max-width:100%;height:100%;overflow:hidden}@media (min-width:760px){.uploadcare--menu{width:60px}}@media (max-width:759px){.uploadcare--menu{height:60px}}.uploadcare--menu__icon{-ms-flex-negative:0;flex-shrink:0;margin:14px}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__item_current:not(.uploadcare--menu__item_tab_file) .uploadcare--menu__icon{position:absolute;top:0;left:50%;transform:translateX(-50%);margin-left:0}}.uploadcare--menu__item{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100vw;height:60px;overflow:hidden;cursor:default;background:#e3e1e1;color:#666;transition:background .3s,color .3s}@media (min-width:760px){.uploadcare--menu__item{width:60px}}.uploadcare--menu__item:focus,.uploadcare--menu__item:hover{color:#157cfc}.uploadcare--menu__item:active{background-color:#fff;color:#0969ee}.uploadcare--menu__item:focus{outline:none;box-shadow:inset 0 0 0 2px rgba(21,124,252,.5)}.uploadcare--menu__item[aria-disabled=true]{background:#e3e1e1!important;color:#666!important;cursor:not-allowed}.uploadcare--menu__item:after{content:attr(title);-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;height:30px;font-size:17px;line-height:30px;white-space:nowrap}@media (min-width:760px){.uploadcare--menu__item:after{overflow:hidden;max-width:170px;text-overflow:ellipsis}}.uploadcare--menu__item_current,.uploadcare--menu__item_current:active,.uploadcare--menu__item_current:focus,.uploadcare--menu__item_current:hover{background-color:#fff;color:#353535}.uploadcare--menu__item_hidden{display:none}.uploadcare--menu__items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;padding-right:100vw;overflow-y:auto;overflow-x:hidden;background:#e3e1e1}.uploadcare--menu__toggle{width:60px;height:60px;transition:none}.uploadcare--menu__toggle:focus{outline-offset:-2px}@media (min-width:760px){.uploadcare--menu__toggle{display:none}}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__toggle-icon_back{display:none}}@media (max-width:759px){.uploadcare--menu_opened{position:relative;z-index:1000;height:100%}.uploadcare--menu_opened .uploadcare--menu__toggle{-ms-flex-pack:start;justify-content:flex-start;width:100%;text-align:left;background:#e3e1e1}.uploadcare--menu_opened .uploadcare--menu__toggle-icon_menu{display:none}.uploadcare--menu_opened .uploadcare--menu__items{height:calc(100% - 60px)}}.uploadcare--footer{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;box-sizing:border-box;width:100%;margin-top:10px;padding:5px 20px 15px}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer{display:block}}.uploadcare--footer:empty{display:none}.uploadcare--footer__additions{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;padding:0 0 15px;text-align:center}@media (max-width:759px) and (orientation:landscape){.uploadcare--footer__additions{padding:0 20px}}@media (max-width:500px) and (orientation:landscape){.uploadcare--footer__additions{display:none}}@media (min-width:760px){.uploadcare--footer__additions{padding:0 20px}}.uploadcare--footer__additions:empty{visibility:hidden;padding:0}.uploadcare--footer__button{margin-top:5px;margin-bottom:5px}.uploadcare--footer__button:first-of-type{-ms-flex-order:0;order:0}.uploadcare--footer__button:nth-of-type(2){-ms-flex-order:2;order:2}@media (max-width:759px){.uploadcare--footer__button{max-width:calc(50% - 20px)}}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer__button:first-of-type{float:left}.uploadcare--footer__button:nth-of-type(2){float:right}}.uploadcare--dragging .uploadcare--draganddrop{margin:20px;background:#e3e1e1;color:#a4a2a1;border:2px dashed;border-radius:20px}.uploadcare--draganddrop.uploadcare--dragging{color:#157cfc!important}@media (max-width:759px){.uploadcare--draganddrop__title{display:none}}.uploadcare--draganddrop:not(.uploadcare--draganddrop_supported) .uploadcare--draganddrop__supported,.uploadcare--draganddrop_supported .uploadcare--draganddrop__not-supported,.uploadcare--dragging .uploadcare--dialog__close,.uploadcare--dragging__show{display:none}.uploadcare--dragging .uploadcare--dragging__show{display:block}.uploadcare--dragging .uploadcare--dragging__hide{display:none}.uploadcare--file{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:justify;justify-content:space-between;box-sizing:border-box;padding:5px 0 5px 20px;color:#353535;cursor:default}.uploadcare--file:hover{background:rgba(21,124,252,.1)}.uploadcare--file__description{-ms-flex-positive:1;flex-grow:1;min-width:0;padding-right:20px;text-align:left}.uploadcare--file__description:focus,.uploadcare--file__description:focus .uploadcare--file__preview,.uploadcare--file__description:hover,.uploadcare--file__description:hover .uploadcare--file__preview{color:#157cfc}.uploadcare--file__description:active,.uploadcare--file__description:active .uploadcare--file__preview{color:#0969ee}.uploadcare--file__description:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:2px}.uploadcare--file__icon{max-width:100%;max-height:100%}.uploadcare--file__name{overflow:hidden;margin:0;max-width:calc(100vw - 200px);line-height:25px;white-space:nowrap;text-overflow:ellipsis;transition:color .3s}@media (min-width:760px){.uploadcare--file__name{max-width:350px}}.uploadcare--file__preview{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;float:left;box-sizing:border-box;margin-right:10px;padding:2px;width:60px;height:60px;overflow:hidden;border:1px solid;border-radius:6px;background:transparent;color:#e3e1e1;transition:border .3s}.uploadcare--file__progressbar{-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:center;align-self:center;margin:0 10px;width:60px;height:10px}.uploadcare--file__size{font-size:12.5px;color:#a4a2a1}.uploadcare--file_status_error,.uploadcare--file_status_error .uploadcare--file__description,.uploadcare--file_status_error .uploadcare--file__preview{color:#e66a6a!important}.uploadcare--file_status_error .uploadcare--file__name{color:hsla(0,71%,66%,.5)!important}.uploadcare--file_status_error .uploadcare--file__progressbar,.uploadcare--file_status_error .uploadcare--file__size,.uploadcare--file_status_uploaded .uploadcare--file__progressbar{display:none}.uploadcare--file_status_uploading,.uploadcare--file_status_uploading .uploadcare--file__description{color:#353535!important}.uploadcare--file_status_uploading .uploadcare--file__name{max-width:calc(100vw - 280px)}@media (min-width:760px){.uploadcare--file_status_uploading .uploadcare--file__name{max-width:270px}}.uploadcare--file_status_uploading .uploadcare--file__preview{background:#ffd800;color:#ffd800!important}.uploadcare--files{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;width:100%;height:100%}.uploadcare--files__item{-ms-flex-negative:0;flex-shrink:0}.uploadcare--crop-sizes{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.uploadcare--crop-sizes__item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;padding:0;height:65px;background:transparent;border-color:transparent;color:#353535}.uploadcare--crop-sizes__item:focus,.uploadcare--crop-sizes__item:hover{background:transparent;border-color:transparent;color:#157cfc}.uploadcare--crop-sizes__item:active{background:transparent;border-color:transparent;color:#0969ee}.uploadcare--crop-sizes__item:disabled,.uploadcare--crop-sizes__item[aria-disabled=true]{border-color:transparent!important}.uploadcare--crop-sizes__item:after{content:attr(data-caption);display:block;font-size:14px;line-height:25px;text-transform:uppercase}@media (max-width:400px),(max-width:600px) and (orientation:landscape){.uploadcare--crop-sizes__item:after{font-size:12px}}.uploadcare--crop-sizes__item:before{content:"";display:block;-ms-flex-order:1;order:1;margin:1px 0;width:6px;height:6px;background:transparent;border-radius:50%}.uploadcare--crop-sizes__item_current:active,.uploadcare--crop-sizes__item_current:focus,.uploadcare--crop-sizes__item_current:hover{color:#353535}.uploadcare--crop-sizes__item_current:before{background:#157cfc}.uploadcare--crop-sizes__icon{box-sizing:border-box;width:30px;height:30px;border:2px solid;border-radius:2px;color:inherit;transform:scale(.666)}.uploadcare--crop-sizes__icon_free{border:none;border-radius:0;transform:none}.uploadcare--file-source{margin:10px;border-color:#e3e1e1;background:#e3e1e1;color:#353535}.uploadcare--file-source_all{-ms-flex-order:1;order:1;border-color:currentColor;background:transparent;color:#157cfc}.uploadcare--file-sources{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%}@media (max-width:759px) and (max-height:450px),(min-width:760px){.uploadcare--file-sources{display:none}}.uploadcare--file-sources__caption{margin:15px 0 5px}@media (max-width:759px) and (max-height:550px){.uploadcare--file-sources__item:nth-child(4),.uploadcare--file-sources__item:nth-child(5),.uploadcare--file-sources__item:nth-child(6){display:none}}.uploadcare--file-sources__items{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;max-width:300px}.uploadcare--file-sources__items:empty,.uploadcare--file-sources__items:not(.uploadcare--file-sources__items_many) .uploadcare--file-source__all{display:none}.uploadcare--media{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;width:100%}.uploadcare--media__image{position:absolute;top:50%;left:50%;max-width:100%;max-height:100%;transform:translateX(-50%) translateY(-50%)}.uploadcare--media__video{all:initial;width:auto;max-width:100%;height:auto;min-height:100px;max-height:100%}@media (max-width:759px) and (max-height:379px){.uploadcare--media__video{max-height:120px}}@media (max-width:759px) and (min-height:380px) and (max-height:499px){.uploadcare--media__video{max-height:160px}}@media (max-width:759px) and (min-height:500px),(min-width:760px){.uploadcare--media__video{max-height:300px}}.uploadcare--camera__button{margin:5px 10px}.uploadcare--camera__button_type_mirror{position:absolute;top:15px;left:50%;margin:0;transform:translateX(-50%)}.uploadcare--camera__video{transition:transform .8s cubic-bezier(.23,1,.32,1)}.uploadcare--camera__video_mirrored{transform:scaleX(-1)}.uploadcare--camera__video-container{-ms-flex-positive:0;flex-grow:0;position:relative;margin-bottom:10px}.uploadcare--camera_status_denied .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_capture,.uploadcare--camera_status_denied .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_denied .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_denied .uploadcare--camera__controls,.uploadcare--camera_status_denied .uploadcare--camera__not-found,.uploadcare--camera_status_denied .uploadcare--camera__please-allow,.uploadcare--camera_status_denied .uploadcare--camera__video-container,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_capture,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_retry,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_not-founded .uploadcare--camera__controls,.uploadcare--camera_status_not-founded .uploadcare--camera__please-allow,.uploadcare--camera_status_not-founded .uploadcare--camera__video-container,.uploadcare--camera_status_ready .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_ready .uploadcare--camera__button_type_retry,.uploadcare--camera_status_ready .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_ready .uploadcare--camera__not-found,.uploadcare--camera_status_ready .uploadcare--camera__please-allow,.uploadcare--camera_status_recording .uploadcare--camera__button_type_capture,.uploadcare--camera_status_recording .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_recording .uploadcare--camera__button_type_retry,.uploadcare--camera_status_recording .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_recording .uploadcare--camera__not-found,.uploadcare--camera_status_recording .uploadcare--camera__please-allow,.uploadcare--camera_status_requested .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_capture,.uploadcare--camera_status_requested .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_requested .uploadcare--camera__button_type_retry,.uploadcare--camera_status_requested .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_requested .uploadcare--camera__controls,.uploadcare--camera_status_requested .uploadcare--camera__not-found,.uploadcare--camera_status_requested .uploadcare--camera__video-container{display:none}.uploadcare--crop-widget>.uploadcare--preview__image{-webkit-filter:brightness(60%);filter:brightness(60%);transform:none}.uploadcare--tab{-ms-flex-align:stretch;align-items:stretch;text-align:center}.uploadcare--tab,.uploadcare--tab__content{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.uploadcare--tab__content{-ms-flex-negative:1;flex-shrink:1;-ms-flex-align:center;align-items:center;overflow-y:auto;padding:0 20px}.uploadcare--tab__header{-ms-flex-negative:0;flex-shrink:0;padding:0 20px;overflow:hidden}@media (min-width:760px){.uploadcare--tab__header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding-right:60px;height:60px}}.uploadcare--tab__iframe{-ms-flex-positive:1;flex-grow:1;width:100%;height:100%;border:0;opacity:0}.uploadcare--tab__title{margin-top:10px;margin-bottom:10px}.uploadcare--tab:not(.uploadcare--tab_current),.uploadcare--tab_name_preview.uploadcare--tab_current~.uploadcare--panel__footer{display:none}.uploadcare--tab_remote.uploadcare--tab_current~.uploadcare--panel__footer{margin-top:0}.uploadcare--panel{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;box-sizing:border-box;overflow:hidden;width:100%;height:500px;border:1px solid #a4a2a1;border-radius:6px;background:#fff;color:#353535;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-weight:400;font-size:15px;line-height:20px}@media (min-width:760px){.uploadcare--panel{-ms-flex-direction:row;flex-direction:row}}.uploadcare--panel__content{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.uploadcare--panel__file-counter{display:inline}.uploadcare--panel__footer{padding-top:15px;background:#fff9d8}.uploadcare--panel__icon{box-sizing:border-box;padding:3px}.uploadcare--panel__menu_hidden{display:none}.uploadcare--panel__message_hidden{color:#d4d2d2}.uploadcare--panel__powered-by{background:#353535;color:hsla(0,0%,100%,.5)}@media (min-width:760px){.uploadcare--panel__powered-by{display:none}}.uploadcare--tab:not(:nth-child(2)).uploadcare--tab_current~.uploadcare--panel__powered-by{display:none}@media (max-width:759px){.uploadcare--panel_menu-hidden .uploadcare--tab__header{padding:6px 60px 0;min-height:60px}}.uploadcare--panel:not(.uploadcare--panel_multiple) .uploadcare--panel__footer{display:none}.uploadcare--panel_multiple .uploadcare--tab_name_preview{height:100%}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__content{padding-left:0;padding-right:0}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer{position:relative;margin-top:0;padding-top:15px}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer:before{content:"";position:absolute;top:0;left:20px;width:calc(100% - 40px);height:1px;background:#e3e1e1}.uploadcare--preview__content{overflow:hidden}.uploadcare--preview__content_crop{padding:10px 20px}.uploadcare--dialog{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:stretch;align-items:stretch;position:fixed;top:0;left:0;z-index:2147483647;box-sizing:border-box;overflow:hidden;width:100%;height:100%;background:#fff;color:#353535;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-weight:400;font-size:15px;line-height:20px;opacity:0;transition:opacity .33s cubic-bezier(.05,.7,.25,1)}@media (min-width:760px){.uploadcare--dialog{-ms-flex-align:center;align-items:center;overflow-y:auto;background:rgba(0,0,0,.5)}}@media (min-width:760px) and (max-height:559px){.uploadcare--dialog{padding-top:30px}}@media (min-width:760px) and (min-height:560px){.uploadcare--dialog{-ms-flex-pack:center;justify-content:center}}.uploadcare--dialog__close{position:absolute;top:0;right:0;z-index:49}.uploadcare--dialog__close:focus{outline-offset:-2px}.uploadcare--dialog__container{display:-ms-flexbox;display:flex;position:relative;overflow:hidden}@media (max-width:759px){.uploadcare--dialog__container{-ms-flex-positive:1;flex-grow:1;height:100%}}@media (min-width:760px){.uploadcare--dialog__container{width:calc(100% - 60px);max-width:900px;height:calc(100% - 60px);min-height:500px;max-height:660px;border-radius:6px}}@media (min-width:1210px){.uploadcare--dialog__container{max-width:1050px}}.uploadcare--dialog__panel{height:100%;border:none;border-radius:0}@media (min-width:1210px){.uploadcare--dialog__panel .uploadcare--menu,.uploadcare--dialog__panel .uploadcare--menu__item{width:250px}}.uploadcare--dialog__powered-by{-ms-flex-negative:0;flex-shrink:0}@media (max-width:759px){.uploadcare--dialog__powered-by{display:none}}.uploadcare--dialog_status_active{opacity:1}.uploadcare--widget{display:inline-block;vertical-align:baseline}.uploadcare--dragging .uploadcare--widget,.uploadcare--widget.uploadcare--dragging{position:relative}.uploadcare--widget__button{all:initial;display:inline-block;box-sizing:border-box;margin:0;padding:.4em 1em;width:auto;min-width:0;height:auto;min-height:0;border-radius:6px;border:none;background:#c3c3c3;color:#fff;cursor:default;text-align:center;white-space:nowrap;font:inherit;line-height:inherit;box-shadow:none;text-shadow:inherit;transition:background .3s}.uploadcare--widget__button:focus,.uploadcare--widget__button:hover{background:#b3b3b3;color:#fff;font:inherit;box-shadow:none;text-shadow:inherit}.uploadcare--widget__button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--widget__button:active{background:#b3b3b3}.uploadcare--widget__button:disabled{background:#c3c3c3;color:#fff;cursor:not-allowed}.uploadcare--widget__button_type_open{background:#157cfc;color:#fff}.uploadcare--widget__button_type_open:focus,.uploadcare--widget__button_type_open:hover{background:#3891ff}.uploadcare--widget__button_type_open:active{background:#0969ee}.uploadcare--widget__button_type_open:disabled{background:#c3c3c3}.uploadcare--widget__dragndrop-area{position:absolute;top:0;left:0;box-sizing:border-box;min-width:100%;min-height:100%;margin:0;padding:calc(.4em - 1.5px) 1em;font:inherit;line-height:inherit;text-align:center;white-space:nowrap;border:1.5px dashed;border-radius:6px;background:#e3e1e1;color:#a4a2a1;transition:color .3s;display:none}.uploadcare--dragging .uploadcare--widget__dragndrop-area{display:block}.uploadcare--widget.uploadcare--dragging .uploadcare--widget__dragndrop-area{color:#157cfc}.uploadcare--widget__file-name,.uploadcare--widget__file-size{display:inline}.uploadcare--widget__progress{display:inline-block;width:1.8em;height:1.8em;margin:0 .2em 0 0;padding:0;line-height:0;vertical-align:middle}.uploadcare--widget__text{display:inline-block;box-sizing:border-box;margin-right:.2em;padding:.4em 0;white-space:nowrap}.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_error .uploadcare--widget__button_type_remove,.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_loaded .uploadcare--widget__button_type_remove,.uploadcare--widget_option_clearable.uploadcare--widget_status_error .uploadcare--widget__button_type_open,.uploadcare--widget_status_error .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_error .uploadcare--widget__progress,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_open,.uploadcare--widget_status_loaded .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_ready .uploadcare--widget__button_type_remove,.uploadcare--widget_status_ready .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__text,.uploadcare--widget_status_started .uploadcare--widget__button_type_open,.uploadcare--widget_status_started .uploadcare--widget__button_type_remove{display:none}.uploadcare--page{width:auto;min-width:0;max-width:100%;height:auto;min-height:0;max-height:100%;overflow:hidden}.uploadcare--mouse-focused:focus{outline:none}'}},Qt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=Zt[e];return null!=a?a(c({},t)):""};w()&&Ne.add((function(t){var a=Qt("styles",{settings:t}),i=document.createElement("style");return i.setAttribute("type","text/css"),null!=i.styleSheet?i.styleSheet.cssText=a:i.appendChild(document.createTextNode(a)),e("head").prepend(i)}));var $t=function(e){return"[data-status=started], [data-status=error]",!e.find(".uploadcare--widget").is("[data-status=started], [data-status=error]")},ea=function(e,t){return e.attr("data-uploadcare-submitted",t),e.find(":submit").attr("disabled",t)},ta='[role~="uploadcare-upload-form"]',aa=ta+"[data-uploadcare-submitted]";if(w()){e(document).on("submit",ta,(function(){var t;return t=e(this),!!$t(t)||(ea(t,!0),!1)})),e(document).on("loaded.uploadcare",aa,(function(){return e(this).submit()}));e(document).on("ready.uploadcare error.uploadcare",aa,(function(){var t;if(t=e(this),$t(t))return ea(t,!1)}))}var ia=[".uploadcare--menu__item",".uploadcare--file__description",".uploadcare--crop-sizes__item"].join(", ");w()&&e(document.documentElement).on("mousedown",ia,(function(t){return le((function(){var t;if((t=document.activeElement)&&t!==document.body)return e(t).addClass("uploadcare--mouse-focused").one("blur",(function(){return e(t).removeClass("uploadcare--mouse-focused")}))}))})).on("keypress",ia,(function(t){if(13===t.which||32===t.which)return e(this).click(),t.preventDefault(),t.stopPropagation()}));var na=function(){function e(t){a(this,e),this.renderer=C?new la(t):new oa(t),this.observed=null}return r(e,[{key:"listen",value:function(e,t){var a,i=this;return this.reset(),a=null!=t?function(e){return e[t]}:function(e){return e},this.observed=e,"resolved"===this.observed.state()?this.renderer.setValue(1,!0):this.observed.progress((function(t){if(e===i.observed)return i.renderer.setValue(a(t))})).always((function(t){if(e===i.observed)return i.renderer.setValue(1,!1)})),this}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.observed=null,this.renderer.setValue(e?1:0,!0)}},{key:"update",value:function(){return this.renderer.update()}}]),e}(),ra=function(){function t(i){a(this,t),this.element=e(i),this.element.data("uploadcare-progress-renderer",this),this.element.addClass("uploadcare--progress")}return r(t,[{key:"update",value:function(){}}]),t}(),oa=function(e){u(i,e);var t=m(i);function i(){var e;return a(this,i),(e=t.apply(this,arguments)).element.addClass("uploadcare--progress_type_text"),e.element.html(Qt("progress__text")),e.text=e.element.find(".uploadcare--progress__text"),e}return r(i,[{key:"setValue",value:function(e){return e=Math.round(100*e),this.text.html("".concat(e," %"))}}]),i}(ra),la=function(t){u(n,t);var i=m(n);function n(){var t;return a(this,n),(t=i.apply(this,arguments)).canvasEl=e("<canvas>").addClass("uploadcare--progress__canvas").get(0),t.element.addClass("uploadcare--progress_type_canvas"),t.element.html(t.canvasEl),t.setValue(0,!0),t}return r(n,[{key:"update",value:function(){var e,t,a,i;if(i=2*(a=Math.floor(Math.min(this.element.width(),this.element.height()))),a)return this.canvasEl.width===i&&this.canvasEl.height===i||(this.canvasEl.width=i,this.canvasEl.height=i),e=function(e,i){var n;return n=-Math.PI/2,t.beginPath(),t.moveTo(a,a),t.arc(a,a,e,n,n+2*Math.PI*i,!1),t.fill()},(t=this.canvasEl.getContext("2d")).clearRect(0,0,i,i),t.globalCompositeOperation="source-over",t.fillStyle=this.element.css("border-left-color"),e(a-.5,1),t.fillStyle=this.element.css("color"),e(a,this.val),t.globalCompositeOperation="destination-out",e(a/7,1)}},{key:"__animateValue",value:function(e){var t,a,i,n=this;return i=this.val,a=new Date,t=e>i?2:-2,this.__animIntervalId=setInterval((function(){var r;return r=i+(new Date-a)/1e3*t,(r=(t>0?Math.min:Math.max)(r,e))===e&&n.__stopAnimation(),n.__setValue(r)}),15),this.__animIntervalId}},{key:"__stopAnimation",value:function(){return this.__animIntervalId&&clearInterval(this.__animIntervalId),this.__animIntervalId=null,this.__animIntervalId}},{key:"__setValue",value:function(e){return this.val=e,this.element.attr("aria-valuenow",(100*e).toFixed(0)),this.update()}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.__stopAnimation(),t?this.__setValue(e):this.__animateValue(e)}}]),n}(ra),sa=S,ca=function(e,t,a){return a=Ve(a),ua(e,(function(e,i){return t(a.multiple?wt(e,i,a):yt(e,i[0],a))}))},ua=sa?function(t,a){da(t),e(t).on({dragover:function(e){e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="copy"},drop:function(t){var i,n,r,o,l,s;if(t.preventDefault(),i=t.originalEvent.dataTransfer){if(i.files.length)return a("object",i.files);for(s=[],n=0,r=(o=i.getData("text/uri-list").split()).length;n<r;n++)l=o[n],(l=e.trim(l))&&"#"!==l[0]&&s.push(l);return s?a("url",s):void 0}}})}:function(){},da=sa?function(t,a){var i,n,r;return r=!1,n=0,i=function(a){if(r!==a)return r=a,e(t).toggleClass("uploadcare--dragging",a)},e(a||t).on({dragenter:function(){return n+=1,i(!0)},dragleave:function(){if(0===(n-=1))return i(!1)},"drop mouseenter":function(){return n=0,i(!1)}})}:function(){};w()&&da("body",document);var pa,fa,ha=function(){function t(i,n){a(this,t),this.settings=i,this.element=n,this.content=e(Qt("widget")),this.element.after(this.content),this.circle=new na(this.content.find(".uploadcare--widget__progress").removeClass("uploadcare--widget__progress")),this.content.find(".uploadcare--progress").addClass("uploadcare--widget__progress"),this.statusText=this.content.find(".uploadcare--widget__text"),this.content.toggleClass("uploadcare--widget_option_clearable",this.settings.clearable)}return r(t,[{key:"addButton",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e(Qt("widget-button",{name:t,caption:a})).appendTo(this.content)}},{key:"setStatus",value:function(e){var t;return t="uploadcare--widget_status_",this.content.removeClass(t+this.content.attr("data-status")),this.content.attr("data-status",e),this.content.addClass(t+e),this.element.trigger("".concat(e,".uploadcare"))}},{key:"reset",value:function(){return this.circle.reset(),this.setStatus("ready"),this.content.attr("aria-busy",!1),this.__file=void 0,this.__file}},{key:"loaded",value:function(){return this.setStatus("loaded"),this.content.attr("aria-busy",!1),this.circle.reset(!0)}},{key:"listen",value:function(e){var t=this;return this.__file=e,this.circle.listen(e,"uploadProgress"),this.setStatus("started"),this.content.attr("aria-busy",!0),e.progress((function(a){if(e===t.__file)switch(a.state){case"uploading":return t.statusText.text(Pt.t("uploading"));case"uploaded":return t.statusText.text(Pt.t("loadingInfo"))}}))}},{key:"error",value:function(e){return this.statusText.text(Pt.t("errors.".concat(e||"default"))),this.content.attr("aria-busy",!1),this.setStatus("error")}},{key:"setFileInfo",value:function(e){return this.statusText.html(Qt("widget-file-name",e)).find(".uploadcare--widget__file-name").toggleClass("needsclick",this.settings.systemDialog)}}]),t}(),ma=function(){function t(e,i,n,r,o){a(this,t),this.__initTabsList=this.__initTabsList.bind(this),this.container=e,this.tabButton=i,this.dialogApi=n,this.settings=r,this.name=o,this.container.append(Qt("tab-file")),this.__setupFileButton(),this.__initDragNDrop(),this.__initTabsList()}return r(t,[{key:"__initDragNDrop",value:function(){var e,t=this;if(e=this.container.find(".uploadcare--draganddrop"),S)return ua(e,(function(e,a){return t.settings.multiple?t.dialogApi.addFiles(e,a):t.dialogApi.addFiles(e,[a[0]]),t.dialogApi.switchTab("preview")})),e.addClass("uploadcare--draganddrop_supported")}},{key:"__setupFileButton",value:function(){var e,t=this;return e=this.container.find(".uploadcare--tab__action-button"),z?e.on("click",(function(){return Fe(t.container,t.settings,(function(e){return t.dialogApi.addFiles("object",e.files),t.dialogApi.switchTab("preview")})),!1})):Se(e,this.settings,(function(e){return t.dialogApi.addFiles("input",[e]),t.dialogApi.switchTab("preview")}))}},{key:"__initTabsList",value:function(){var e,t,a,i,n,r,o=this;for((a=this.container.find(".uploadcare--file-sources__items")).remove(".uploadcare--file-sources__item:not(.uploadcare--file-source_all)"),i=0,e=0,t=(n=this.settings.tabs).length;e<t;e++)"file"!==(r=n[e])&&"url"!==r&&"camera"!==r&&this.dialogApi.isTabVisible(r)&&((i+=1)>5||a.append([this.__tabButton(r)," "]));return a.find(".uploadcare--file-source_all").on("click",(function(){return o.dialogApi.openMenu()})),i>5&&a.addClass("uploadcare--file-sources__items_many"),this.container.find(".uploadcare--file-sources").attr("hidden",0===i)}},{key:"__tabButton",value:function(t){var a,i=this;return a=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(t,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--file-source__icon"),e("<button>").addClass("uploadcare--button").addClass("uploadcare--button_icon").addClass("uploadcare--file-source").addClass("uploadcare--file-source_".concat(t)).addClass("uploadcare--file-sources__item").attr("type","button").attr("title",Pt.t("dialog.tabs.names.".concat(t))).attr("data-tab",t).append(a).on("click",(function(){return i.dialogApi.switchTab(t)}))}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--tab__action-button").focus()}}]),t}(),ga=function(){function t(i,n,r,o,l){var s,c,u=this;a(this,t),this.container=i,this.tabButton=n,this.dialogApi=r,this.settings=o,this.name=l,this.container.append(Qt("tab-url")),(c=this.container.find(".uploadcare--input")).on("change keyup input",(function(){var t=!e.trim(this.value);return s.attr("disabled",t).attr("aria-disabled",t)})),s=this.container.find(".uploadcare--button[type=submit]").attr("disabled",!0),this.container.find(".uploadcare--form").on("submit",(function(){var e=pa(c.val());return e&&(u.dialogApi.addFiles("url",[[e,{source:"url-tab"}]]),c.val("").trigger("change")),!1}))}return r(t,[{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--input").focus()}}]),t}();fa=/^[a-z][a-z0-9+\-.]*:?\/\//,pa=function(t){return t=e.trim(t),fa.test(t)?t:"http://"+t};var _a=w()&&"https:"===document.location.protocol,va=function(){function t(e,i,n,r,o){var l;if(a(this,t),this.__captureInput=this.__captureInput.bind(this),this.__captureInputHandle=this.__captureInputHandle.bind(this),this.__setState=this.__setState.bind(this),this.__requestCamera=this.__requestCamera.bind(this),this.__revoke=this.__revoke.bind(this),this.__mirror=this.__mirror.bind(this),this.__capture=this.__capture.bind(this),this.__startRecording=this.__startRecording.bind(this),this.__stopRecording=this.__stopRecording.bind(this),this.__cancelRecording=this.__cancelRecording.bind(this),this.container=e,this.tabButton=i,this.dialogApi=n,this.settings=r,this.name=o,this.__checkCapture())this.container.append(Qt("tab-camera-capture")),this.container.addClass("uploadcare--camera"),this.container.find(".uploadcare--camera__button_type_photo").on("click",this.__captureInput("image/*")),l=this.container.find(".uploadcare--camera__button_type_video").on("click",this.__captureInput("video/*")),this.settings.imagesOnly&&l.hide();else{if(!this.__checkCompatibility())return void this.dialogApi.hideTab(this.name);this.__initCamera()}}return r(t,[{key:"__captureInput",value:function(e){var t=this;return function(){return Fe(t.container,{inputAcceptTypes:e},t.__captureInputHandle,{capture:"camera"})}}},{key:"__captureInputHandle",value:function(e){return this.dialogApi.addFiles("object",e.files),this.dialogApi.switchTab("preview")}},{key:"__initCamera",value:function(){var e,t=this;return this.__loaded=!1,this.mirrored=this.settings.cameraMirrorDefault,this.container.append(Qt("tab-camera")),this.container.addClass("uploadcare--camera"),this.container.addClass("uploadcare--camera_status_requested"),this.container.find(".uploadcare--camera__button_type_capture").on("click",this.__capture),e=this.container.find(".uploadcare--camera__button_type_start-record").on("click",this.__startRecording),this.container.find(".uploadcare--camera__button_type_stop-record").on("click",this.__stopRecording),this.container.find(".uploadcare--camera__button_type_cancel-record").on("click",this.__cancelRecording),this.container.find(".uploadcare--camera__button_type_mirror").on("click",this.__mirror),this.container.find(".uploadcare--camera__button_type_retry").on("click",this.__requestCamera),this.MediaRecorder&&!this.settings.imagesOnly||e.hide(),this.video=this.container.find(".uploadcare--camera__video"),this.video.toggleClass("uploadcare--camera__video_mirrored",this.mirrored),this.video.on("loadeddata",(function(){return this.play()})),this.dialogApi.progress((function(e){if(e===t.name){if(!t.__loaded)return t.__requestCamera()}else if(t.__loaded&&_a)return t.__revoke()})),this.dialogApi.always(this.__revoke)}},{key:"__checkCompatibility",value:function(){var e;return navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?this.getUserMedia=function(e,t,a){return navigator.mediaDevices.getUserMedia(e).then(t).catch(a)}:this.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia,this.URL=window.URL||window.webkitURL,this.MediaRecorder=window.MediaRecorder,_a||ae("Camera is not allowed for HTTP. Please use HTTPS connection."),e="localhost"===document.location.hostname,!!this.getUserMedia&&Uint8Array&&(_a||e)}},{key:"__checkCapture",value:function(){var e;return(e=document.createElement("input")).setAttribute("capture","camera"),!!e.capture}},{key:"__setState",value:function(e){var t=["","ready","requested","denied","not-founded","recording","error"].join(" uploadcare--camera_status_");this.container.removeClass(t).addClass("uploadcare--camera_status_".concat(e)),this.container.find(".uploadcare--camera__button").focus()}},{key:"__requestCamera",value:function(){var e=this;return this.__loaded=!0,this.getUserMedia.call(navigator,{audio:!0,video:{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30}}},(function(t){return e.__setState("ready"),e.__stream=t,"srcObject"in e.video[0]?(e.video.prop("srcObject",t),e.video.on("loadedmetadata",(function(){return e.video[0].play()}))):(e.URL?(e.__streamObject=e.URL.createObjectURL(t),e.video.prop("src",e.__streamObject)):e.video.prop("src",t),e.video[0].play())}),(function(t){var a=Object.create(null);return a.NotFoundError=function(){e.__setState("not-founded")},a.NotAllowedError=function(){e.__setState("denied")},a.other=function(){e.__setState("denied"),console.warn("Camera error occurred: "+t.name)},(a[t.name]||a.other)(),e.__loaded=!1,e.__loaded}))}},{key:"__revoke",value:function(){var t;if(this.__setState("requested"),this.__loaded=!1,this.__stream)return this.__streamObject&&this.URL.revokeObjectURL(this.__streamObject),this.__stream.getTracks?e.each(this.__stream.getTracks(),(function(){return"function"==typeof this.stop?this.stop():void 0})):"function"==typeof(t=this.__stream).stop&&t.stop(),this.__stream=null,this.__stream}},{key:"__mirror",value:function(){return this.mirrored=!this.mirrored,this.video.toggleClass("uploadcare--camera__video_mirrored",this.mirrored)}},{key:"__capture",value:function(){var e,t,a,i,n,r=this;return n=(i=this.video[0]).videoWidth,a=i.videoHeight,(e=document.createElement("canvas")).width=n,e.height=a,t=e.getContext("2d"),this.mirrored&&(t.translate(n,0),t.scale(-1,1)),t.drawImage(i,0,0,n,a),Pe(e,"image/jpeg",.9,(function(t){return e.width=e.height=1,t.name="camera.jpg",r.dialogApi.addFiles("object",[[t,{source:"camera"}]]),r.dialogApi.switchTab("preview")}))}},{key:"__startRecording",value:function(){var t=this;this.__setState("recording"),this.__chunks=[];var a={},i=this.settings.videoPreferredMimeTypes;if(null!=i){var n=function(e,t){for(var a=e.length,i=0;i<a;){var n=e[i];if(t(n))return n;i++}}(e.isArray(i)?i:[i],(function(e){return t.MediaRecorder.isTypeSupported(e)}));null!=n&&(a.mimeType=n)}var r=navigator.userAgent.toLowerCase().indexOf("firefox")>-1;return null==a.mimeType&&r&&this.MediaRecorder.isTypeSupported("video/webm")&&(a.mimeType="video/webm"),null!==this.settings.audioBitsPerSecond&&(a.audioBitsPerSecond=this.settings.audioBitsPerSecond),null!==this.settings.videoBitsPerSecond&&(a.videoBitsPerSecond=this.settings.videoBitsPerSecond),0!==Object.keys(a).length?this.__recorder=new this.MediaRecorder(this.__stream,a):this.__recorder=new this.MediaRecorder(this.__stream),this.__recorder.start(),this.__recorder.ondataavailable=function(e){return t.__chunks.push(e.data)},this.__recorder.ondataavailable}},{key:"__stopRecording",value:function(){var e=this;return this.__setState("ready"),this.__recorder.onstop=function(){var t,a;return t=new window.Blob(e.__chunks,{type:e.__recorder.mimeType}),a=e.__guessExtensionByMime(e.__recorder.mimeType),t.name="record.".concat(a),e.dialogApi.addFiles("object",[[t,{source:"camera"}]]),e.dialogApi.switchTab("preview"),e.__chunks=[],e.__chunks},this.__recorder.stop()}},{key:"__cancelRecording",value:function(){return this.__setState("ready"),this.__recorder.stop(),this.__chunks=[],this.__chunks}},{key:"__guessExtensionByMime",value:function(e){var t={mp4:"mp4",ogg:"ogg",webm:"webm",quicktime:"mov","x-matroska":"mkv"};if(""===e)return"webm";if(e&&"video"===(e=e.split("/"))[0]){var a=(e=e.slice(1).join("/")).split(";")[0];if(t[a])return t[a]}return"avi"}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--camera__button").focus()}}]),t}();w()&&function(e){e.Jcrop=function(a,i){var n,r=e.extend({},e.Jcrop.defaults);function o(e){return Math.round(e)+"px"}function l(e){return r.baseClass+"-"+e}function s(t){var a=e(t).offset();return[a.left,a.top]}function c(e){return[e.pageX-n[0],e.pageY-n[1]]}function u(a){"object"!==t(a)&&(a={}),r=e.extend(r,a),e.each(["onChange","onSelect","onRelease","onDblClick"],(function(e,t){"function"!=typeof r[t]&&(r[t]=function(){})}))}function d(e,t){if(n=s(C),"move"===e)return Y.activateHandlers(function(e){var t=e;return X.watchKeys(),function(e){W.moveOffset([e[0]-t[0],e[1]-t[1]]),t=e,G.update()}}(t),m);var a=W.getFixed(),i=p(e),o=W.getCorner(p(i));W.setPressed(W.getCorner(i)),W.setCurrent(o),Y.activateHandlers(function(e,t){return function(a){if(r.aspectRatio)switch(e){case"e":case"w":a[1]=t.y+1;break;case"n":case"s":a[0]=t.x+1}else switch(e){case"e":case"w":a[1]=t.y2;break;case"n":case"s":a[0]=t.x2}W.setCurrent(a),G.update()}}(e,a),m)}function p(e){switch(e){case"n":return"sw";case"s":case"e":return"nw";case"w":return"ne";case"ne":return"sw";case"nw":return"se";case"se":return"nw";case"sw":return"ne"}}function f(e){return function(t){return!r.disabled&&(!("move"===e&&!r.allowMove)&&(n=s(C),R=!0,d(e,c(t)),t.stopPropagation(),t.preventDefault(),!1))}}function h(e){return{x:e.x*U,y:e.y*B,x2:e.x2*U,y2:e.y2*B,w:e.w*U,h:e.h*B}}function m(e){W.getFixed();G.enableHandles(),G.done()}function g(){var t=e("<div></div>").addClass(l("tracker"));return t.css({opacity:0,backgroundColor:"white"}),t}"object"!==t(a)&&(a=e(a)[0]),"object"!==t(i)&&(i={}),u(i);var _,v,b,y,w,x={border:"none",visibility:"visible",margin:0,padding:0,position:"absolute",top:0,left:0},k=e(a),z=!0;if("IMG"==a.tagName){if(0!=k[0].width&&0!=k[0].height)k.width(k[0].width),k.height(k[0].height);else{var A=new Image;A.src=k[0].src,k.width(A.width),k.height(A.height)}var C=k.clone().removeAttr("id").css(x).show();C.width(k.width()),C.height(k.height()),k.after(C).hide()}else C=k.css(x).show(),z=!1,null===r.shade&&(r.shade=!0);_=C,v=r.boxWidth,b=r.boxHeight,y=_.width(),w=_.height(),y>v&&v>0&&(y=v,w=v/_.width()*_.height()),w>b&&b>0&&(w=b,y=b/_.height()*_.width()),U=_.width()/y,B=_.height()/w,_.width(y).height(w);var S=C.width(),F=C.height(),T=e("<div />").width(S).height(F).addClass(l("holder")).css({position:"relative",backgroundColor:r.bgColor}).insertAfter(k).append(C);r.addClass&&T.addClass(r.addClass);var j=e("<div />"),D=e("<div />").width("100%").height("100%").css({zIndex:310,position:"absolute",overflow:"hidden"}),I=e("<div />").css({position:"absolute",zIndex:600}).dblclick((function(){var e=W.getFixed();r.onDblClick.call($,e)})).insertBefore(C).append(D);z&&(j=e("<img />").attr("src",C.attr("src")).css(x).width(S).height(F),D.append(j));var P,M,O,E,U,B,R,L=r.boundary,V=g().width(S+2*L).height(F+2*L).css({position:"absolute",top:o(-L),left:o(-L),zIndex:290}),N=r.bgColor,q=r.bgOpacity;n=s(C);var K=function(){function e(){var e,t={},a=["touchstart","touchmove","touchend"],i=document.createElement("div");try{for(e=0;e<a.length;e++){var n=a[e],r=(n="on"+n)in i;r||(i.setAttribute(n,"return;"),r="function"==typeof i[n]),t[a[e]]=r}return t.touchstart&&t.touchend&&t.touchmove}catch(e){return!1}}return{createDragger:function(e){return function(t){return t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,!r.disabled&&(!("move"===e&&!r.allowMove)&&(R=!0,d(e,c(t)),t.stopPropagation(),t.preventDefault(),!1))}},isSupported:e,support:!0===r.touchSupport||!1===r.touchSupport?r.touchSupport:e()}}(),W=function(){var e,t,a=0,i=0,n=0,o=0;function l(){if(!r.aspectRatio)return function(){var e,t=n-a,r=o-i;P&&Math.abs(t)>P&&(n=t>0?a+P:a-P);M&&Math.abs(r)>M&&(o=r>0?i+M:i-M);E/B&&Math.abs(r)<E/B&&(o=r>0?i+E/B:i-E/B);O/U&&Math.abs(t)<O/U&&(n=t>0?a+O/U:a-O/U);a<0&&(n-=a,a-=a);i<0&&(o-=i,i-=i);n<0&&(a-=n,n-=n);o<0&&(i-=o,o-=o);n>S&&(a-=e=n-S,n-=e);o>F&&(i-=e=o-F,o-=e);a>S&&(o-=e=a-F,i-=e);i>F&&(o-=e=i-F,i-=e);return u(c(a,i,n,o))}();var e,t,l,s,d=r.aspectRatio,p=r.minSize[0]/U,f=r.maxSize[0]/U,h=r.maxSize[1]/B,m=n-a,g=o-i,_=Math.abs(m),v=Math.abs(g);return 0===f&&(f=10*S),0===h&&(h=10*F),_/v<d?(t=o,l=v*d,(e=m<0?a-l:l+a)<0?(e=0,s=Math.abs((e-a)/d),t=g<0?i-s:s+i):e>S&&(e=S,s=Math.abs((e-a)/d),t=g<0?i-s:s+i)):(e=n,s=_/d,(t=g<0?i-s:i+s)<0?(t=0,l=Math.abs((t-i)*d),e=m<0?a-l:l+a):t>F&&(t=F,l=Math.abs(t-i)*d,e=m<0?a-l:l+a)),e>a?(e-a<p?e=a+p:e-a>f&&(e=a+f),t=t>i?i+(e-a)/d:i-(e-a)/d):e<a&&(a-e<p?e=a-p:a-e>f&&(e=a-f),t=t>i?i+(a-e)/d:i-(a-e)/d),e<0?(a-=e,e=0):e>S&&(a-=e-S,e=S),t<0?(i-=t,t=0):t>F&&(i-=t-F,t=F),u(c(a,i,e,t))}function s(e){return e[0]<0&&(e[0]=0),e[1]<0&&(e[1]=0),e[0]>S&&(e[0]=S),e[1]>F&&(e[1]=F),[e[0],e[1]]}function c(e,t,a,i){var n=e,r=a,o=t,l=i;return a<e&&(n=a,r=e),i<t&&(o=i,l=t),[n,o,r,l]}function u(e){return{x:e[0],y:e[1],x2:e[2],y2:e[3],w:e[2]-e[0],h:e[3]-e[1]}}return{flipCoords:c,setPressed:function(e){e=s(e),n=a=e[0],o=i=e[1]},setCurrent:function(a){a=s(a),e=a[0]-n,t=a[1]-o,n=a[0],o=a[1]},getOffset:function(){return[e,t]},moveOffset:function(e){var t=e[0],r=e[1];0>a+t&&(t-=t+a),0>i+r&&(r-=r+i),F<o+r&&(r+=F-(o+r)),S<n+t&&(t+=S-(n+t)),a+=t,n+=t,i+=r,o+=r},getCorner:function(e){var t=l();switch(e){case"ne":return[t.x2,t.y];case"nw":return[t.x,t.y];case"se":return[t.x2,t.y2];case"sw":return[t.x,t.y2]}},getFixed:l}}(),H=function(){var t=!1,a=e("<div />").css({position:"absolute",zIndex:240,opacity:0}),i={top:s(),left:s().height(F),right:s().height(F),bottom:s()};function n(){return l(W.getFixed())}function l(e){i.top.css({left:o(e.x),width:o(e.w),height:o(e.y)}),i.bottom.css({top:o(e.y2),left:o(e.x),width:o(e.w),height:o(F-e.y2)}),i.right.css({left:o(e.x2),width:o(S-e.x2)}),i.left.css({width:o(e.x)})}function s(){return e("<div />").css({position:"absolute",backgroundColor:r.shadeColor||r.bgColor}).appendTo(a)}function c(){t||(t=!0,a.insertBefore(C),n(),G.setBgOpacity(1,0,1),j.hide(),u(r.shadeColor||r.bgColor,1),G.isAwake()?p(r.bgOpacity,1):p(1,1))}function u(e,t){Z(f(),e,t)}function d(){t&&(a.remove(),j.show(),t=!1,G.isAwake()?G.setBgOpacity(r.bgOpacity,1,1):(G.setBgOpacity(1,1,1),G.disableHandles()),Z(T,0,1))}function p(e,i){t&&(r.bgFade&&!i?a.animate({opacity:1-e},{queue:!1,duration:r.fadeTime}):a.css({opacity:1-e}))}function f(){return a.children()}return{update:n,updateRaw:l,getShades:f,setBgColor:u,enable:c,disable:d,resize:function(e,t){i.left.css({height:o(t)}),i.right.css({height:o(t)})},refresh:function(){r.shade?c():d(),G.isAwake()&&p(r.bgOpacity)},opacity:p}}(),G=function(){var t,a={},i={};function n(t){return function(t){var a=e("<div />").mousedown(f(t)).css({cursor:t+"-resize",position:"absolute"}).append("<div/>").addClass("ord-"+t);return K.support&&a.on("touchstart.jcrop",K.createDragger(t)),I.append(a),a}(t).addClass(l("handle"))}function s(){var e=W.getFixed();W.setPressed([e.x,e.y]),W.setCurrent([e.x2,e.y2]),c()}function c(e){if(t)return u(e)}function u(e){var a,i,n=W.getFixed();!function(e,t){I.width(Math.round(e)).height(Math.round(t))}(n.w,n.h),a=n.x,i=n.y,r.shade||j.css({top:o(-i),left:o(-a)}),I.css({top:o(i),left:o(a)}),r.shade&&H.updateRaw(n),t||function(){I.show(),r.shade?H.opacity(q):d(q,!0);t=!0}(),e?r.onSelect.call($,h(n)):r.onChange.call($,h(n))}function d(e,a,i){(t||a)&&(r.bgFade&&!i?C.animate({opacity:e},{queue:!1,duration:r.fadeTime}):C.css("opacity",e))}function p(){if(r.allowResize)return!0}function m(e){e||p()}e.isArray(r.createHandles)&&function(e){var t;for(t=0;t<e.length;t++)i[e[t]]=n(e[t])}(r.createHandles),r.drawBorders&&e.isArray(r.createBorders)&&function(t){var i,n,r,o;for(n=0;n<t.length;n++){switch(t[n]){case"n":i="hline";break;case"s":i="hline bottom";break;case"e":i="vline right";break;case"w":i="vline"}a[t[n]]=(r=i,o=void 0,o=e("<div />").css({position:"absolute"}).addClass(l(r)),I.append(o),o)}}(r.createBorders),e(document).on("touchstart.jcrop-ios",(function(t){e(t.currentTarget).hasClass("jcrop-tracker")&&t.stopPropagation()}));var _=g().mousedown(f("move")).css({cursor:"move",position:"absolute",zIndex:360});return K.support&&_.on("touchstart.jcrop",K.createDragger("move")),D.append(_),{updateVisible:c,update:u,release:function(){I.hide(),r.shade?H.opacity(1):d(1),t=!1,r.onRelease.call($)},refresh:s,isAwake:function(){return t},setCursor:function(e){_.css("cursor",e)},enableHandles:p,enableOnly:function(){},disableHandles:function(){},animMode:m,setBgOpacity:d,done:function(){m(!1),s()}}}(),Y=function(){var t=function(){},a=function(){},i=r.trackDocument;function n(e){return t(c(e)),!1}function o(i){return i.preventDefault(),i.stopPropagation(),R&&(R=!1,a(c(i)),G.isAwake()&&r.onSelect.call($,h(W.getFixed())),V.css({zIndex:290}),e(document).off(".jcrop"),t=function(){},a=function(){}),!1}function l(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,n(e)}function s(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,o(e)}return i||V.mousemove(n).mouseup(o).mouseout(o),C.before(V),{activateHandlers:function(r,c){return R=!0,t=r,a=c,V.css({zIndex:450}),K.support&&e(document).on("touchmove.jcrop",l).on("touchend.jcrop",s),i&&e(document).on("mousemove.jcrop",n).on("mouseup.jcrop",o),!1}}}(),X=function(){var t=e('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}).addClass("jcrop-keymgr"),a=e("<div />").css({position:"absolute",overflow:"hidden"}).append(t);function i(e,t,a){r.allowMove&&(W.moveOffset([t,a]),G.updateVisible(!0)),e.preventDefault(),e.stopPropagation()}return r.keySupport&&(t.keydown((function(e){if(e.ctrlKey||e.metaKey)return!0;var t=!!e.shiftKey?10:1;switch(e.keyCode){case 37:i(e,-t,0);break;case 39:i(e,t,0);break;case 38:i(e,0,-t);break;case 40:i(e,0,t);break;case 9:return!0}return!1})).blur((function(e){t.hide()})),t.css({position:"absolute",left:"-20px"}),a.append(t).insertBefore(C)),{watchKeys:function(){r.keySupport&&(t.show(),t.focus())}}}();function J(e){!function(e){W.setPressed([e[0],e[1]]),W.setCurrent([e[2],e[3]]),G.update()}([e[0]/U,e[1]/B,e[2]/U,e[3]/B]),r.onSelect.call($,h(W.getFixed())),G.enableHandles()}function Z(t,a,i){var n=a||r.bgColor;r.bgFade&&e.fx.step.hasOwnProperty("backgroundColor")&&r.fadeTime&&!i?t.animate({backgroundColor:n},{queue:!1,duration:r.fadeTime}):t.css("backgroundColor",n)}function Q(e){r.allowResize?e?G.enableOnly():G.enableHandles():G.disableHandles(),G.setCursor(r.allowMove?"move":"default"),r.hasOwnProperty("trueSize")&&(U=r.trueSize[0]/S,B=r.trueSize[1]/F),r.hasOwnProperty("setSelect")&&(J(r.setSelect),G.done(),delete r.setSelect),H.refresh(),r.bgColor!=N&&(Z(r.shade?H.getShades():T,r.shade&&r.shadeColor||r.bgColor),N=r.bgColor),q!=r.bgOpacity&&(q=r.bgOpacity,r.shade?H.refresh():G.setBgOpacity(q)),P=r.maxSize[0]||0,M=r.maxSize[1]||0,O=r.minSize[0]||0,E=r.minSize[1]||0,r.hasOwnProperty("outerImage")&&(C.attr("src",r.outerImage),delete r.outerImage),G.refresh()}Q(!0);var $={setSelect:J,setOptions:function(e){u(e),Q()},tellSelect:function(){return h(W.getFixed())},tellScaled:function(){return W.getFixed()},setClass:function(e){T.removeClass().addClass(l("holder")).addClass(e)},disable:function(){r.disabled=!0,G.disableHandles(),G.setCursor("default")},enable:function(){r.disabled=!1,Q()},cancel:function(){G.done(),Y.activateHandlers(null,null)},release:G.release,destroy:function(){T.remove(),k.show(),k.css("visibility","visible"),e(a).removeData("Jcrop")},focus:X.watchKeys,getBounds:function(){return[S*U,F*B]},getWidgetSize:function(){return[S,F]},getScaleFactor:function(){return[U,B]},getOptions:function(){return r},ui:{holder:T,selection:I}};return k.data("Jcrop",$),$},e.fn.Jcrop=function(t,a){var i;return this.each((function(){if(e(this).data("Jcrop")){if("api"===t)return e(this).data("Jcrop");e(this).data("Jcrop").setOptions(t)}else"IMG"==this.tagName?e.Jcrop.Loader(this,(function(){e(this).css({display:"block",visibility:"hidden"}),i=e.Jcrop(this,t),e.isFunction(a)&&a.call(i)})):(e(this).css({display:"block",visibility:"hidden"}),i=e.Jcrop(this,t),e.isFunction(a)&&a.call(i))})),this},e.Jcrop.Loader=function(t,a,i){var n=e(t),r=n[0];n.on("load.jcloader",(function t(){r.complete?(n.off(".jcloader"),e.isFunction(a)&&a.call(r)):window.setTimeout(t,50)})).on("error.jcloader",(function(t){n.off(".jcloader"),e.isFunction(i)&&i.call(r)})),r.complete&&e.isFunction(a)&&(n.off(".jcloader"),a.call(r))},e.Jcrop.defaults={allowMove:!0,allowResize:!0,trackDocument:!0,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:.6,bgFade:!1,aspectRatio:0,keySupport:!0,createHandles:["n","s","e","w","nw","ne","se","sw"],createBorders:["n","s","e","w"],drawBorders:!0,dragEdges:!0,fixedSupport:!0,touchSupport:null,shade:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onDblClick:function(){},onRelease:function(){}}}(e);var ba=/-\/crop\/([0-9]+)x([0-9]+)(\/(center|([0-9]+),([0-9]+)))?\//i,ya=function(){function t(i,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(this,t),this.element=i,this.originalSize=n,this.__api=e.Jcrop(this.element[0],{trueSize:this.originalSize,baseClass:"uploadcare--jcrop",addClass:"uploadcare--crop-widget",createHandles:["nw","ne","se","sw"],bgColor:"transparent",bgOpacity:.8}),this.setCrop(r),this.setSelection()}return r(t,[{key:"setCrop",value:function(e){return this.crop=e,this.__api.setOptions({aspectRatio:e.preferedSize?e.preferedSize[0]/e.preferedSize[1]:0,minSize:e.notLess?Ae(e.preferedSize,this.originalSize):[0,0]})}},{key:"setSelection",value:function(e){var t,a,i,n;return e?(t=e.center,i=[e.width,e.height]):(t=!0,i=this.originalSize),this.crop.preferedSize&&(i=Ae(this.crop.preferedSize,i,!0)),t?(a=(this.originalSize[0]-i[0])/2,n=(this.originalSize[1]-i[1])/2):(a=e.left||0,n=e.top||0),this.__api.setSelect([a,n,i[0]+a,i[1]+n])}},{key:"__parseModifiers",value:function(e){var t=null!=e?e.match(ba):void 0;if(t)return{width:parseInt(t[1],10),height:parseInt(t[2],10),center:"center"===t[4],left:parseInt(t[5],10)||void 0,top:parseInt(t[6],10)||void 0}}},{key:"setSelectionFromModifiers",value:function(e){return this.setSelection(this.__parseModifiers(e))}},{key:"getSelection",value:function(){var e,t,a;return e=this.__api.tellSelect(),{left:t=Math.round(Math.max(0,e.x)),top:a=Math.round(Math.max(0,e.y)),width:Math.round(Math.min(this.originalSize[0],e.x2))-t,height:Math.round(Math.min(this.originalSize[1],e.y2))-a}}},{key:"applySelectionToFile",value:function(e){var t=this;return e.then((function(e){return Ce(e,t.crop,t.originalSize,t.getSelection())}))}}]),t}(),wa=function(){function t(e,i,n,r,o){var l=this;a(this,t),this.container=e,this.tabButton=i,this.dialogApi=n,this.settings=r,this.name=o,this.__initTabButtonCircle(),this.container.addClass("uploadcare--preview"),this.container.on("click",".uploadcare--preview__back:not(:disabled)",(function(){return l.dialogApi.fileColl.clear()})),this.container.on("click",".uploadcare--preview__done:not(:disabled)",this.dialogApi.resolve)}return r(t,[{key:"__initTabButtonCircle",value:function(){var t,a,i,n,r=this;return i=this.tabButton.find(".uploadcare--panel__icon"),a=e.Deferred(),n=function(){var e,t,i,n,o;for(n=0,e=0,i=(t=r.dialogApi.fileColl.lastProgresses()).length;e<i;e++)n+=((null!=(o=t[e])?o.progress:void 0)||0)/t.length;return a.notify(n)},this.dialogApi.fileColl.onAnyProgress(n),this.dialogApi.fileColl.onAdd.add(n),this.dialogApi.fileColl.onRemove.add(n),n(),t=new na(i).listen(a.promise()),this.dialogApi.progress((function(){var e;return(e=t).update.apply(e,arguments)}))}}]),t}(),xa=function(t){u(n,t);var i=m(n);function n(t,r,o,l,s){var c;return a(this,n),(c=i.apply(this,arguments)).container=t,c.tabButton=r,c.dialogApi=o,c.settings=l,c.name=s,e.each(c.dialogApi.fileColl.get(),(function(e,t){return c.__setFile(t)})),c.dialogApi.fileColl.onAdd.add(c.__setFile.bind(f(c))),c.widget=null,c.__state=null,c}return r(n,[{key:"__setFile",value:function(e){var t,a,i,n=this;return this.file=e,t=function(t){return function(){if(e===n.file){for(var a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return t.apply(null,i)}}},a=ce(this.__tryToLoadImagePreview.bind(this)),i=ce(this.__tryToLoadVideoPreview.bind(this)),this.__setState("unknown",{}),this.file.progress(t((function(t){var r,o,l;if(o=((t=t.incompleteFileInfo).name||"")+je(t.size,"",", "),n.container.find(".uploadcare--preview__file-name").text(o),l=t.sourceInfo,r=D,l.file&&r&&l.file instanceof r)return l.file.type&&-1!==l.file.type.search(/^image\//i)?a(e,l.file):l.file.type&&-1!==l.file.type.search(/^video\//i)?i(e,l.file):a(e,l.file).fail((function(){return i(e,l.file)}))}))),this.file.done(t((function(e){var t,a;if("video"!==n.__state)return e.isImage?"image"!==n.__state?(a=e.originalUrl,a+="-/preview/1162x693/-/setfill/ffffff/-/format/jpeg/-/progressive/yes/",n.settings.previewUrlCallback&&(a=n.settings.previewUrlCallback(a,e)),t=e.originalImageInfo,n.__setState("image",{src:a,name:e.name,info:e}),n.initImage([t.width,t.height],e.cdnUrlModifiers)):void 0:n.__setState("regular",{file:e})}))),this.file.fail(t((function(e,t){return n.__setState("error",{error:e,file:t})})))}},{key:"__tryToLoadImagePreview",value:function(t,a){var i,n=this;return i=e.Deferred(),"pending"!==t.state()||!a.size||a.size>=this.settings.multipartMinSize?i.reject().promise():(Qe(a,1550,924,"#ffffff",this.settings.imagePreviewMaxSize).done((function(e,a){return Pe(e,"image/jpeg",.95,(function(r){var o;if(i.resolve(),e.width=e.height=1,"pending"===t.state()&&"pending"===n.dialogApi.state()&&n.file===t)return o=Q.createObjectURL(r),n.dialogApi.always((function(){return Q.revokeObjectURL(o)})),"image"!==n.__state?(n.__setState("image",{src:o,name:""}),n.initImage(a)):void 0}))})).fail(i.reject),i.promise())}},{key:"__tryToLoadVideoPreview",value:function(t,a){var i,n,r=this;return i=e.Deferred(),Q&&a.size?(n=Q.createObjectURL(a),He(n).fail((function(){return Q.revokeObjectURL(n),i.reject()})).done((function(){if("pending"===t.state()&&"pending"===r.dialogApi.state()&&r.file===t){r.dialogApi.always((function(){return Q.revokeObjectURL(n)})),i.resolve(),r.__setState("video");var e=r.container.find(".uploadcare--preview__video");return e.on("loadeddata",(function(){return e.get(0).currentTime=36e4,e.off("loadeddata")})),e.on("ended",(function(){return e.get(0).currentTime=0,e.off("ended")})),e.attr("src",n),e.get(0).load()}Q.revokeObjectURL(n)})),i.promise()):i.reject().promise()}},{key:"__setState",value:function(e,t){this.__state=e,(t=t||{}).crop=this.settings.crop,this.container.empty().append(Qt("tab-preview-".concat(e),t)),this.container.removeClass((function(e,t){return t.split(" ").filter((function(e){return!!~e.indexOf("uploadcare--preview_status_")})).join(" ")})),"unknown"===e&&this.settings.crop&&this.container.find(".uploadcare--preview__done").hide(),"error"===e&&this.container.addClass("uploadcare--preview_status_error-"+t.error),this.container.find(".uploadcare--preview__done").focus()}},{key:"initImage",value:function(e,t){var a,i,n,r,o=this;if(i=this.container.find(".uploadcare--preview__image"),a=this.container.find(".uploadcare--preview__done"),n=We(i[0]).done((function(){return o.container.addClass("uploadcare--preview_status_loaded")})).fail((function(){return o.file=null,o.__setState("error",{error:"loadImage"})})),r=function(){return o.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!1).attr("tabindex",0),a.attr("disabled",!1).attr("aria-disabled",!1),o.widget=new ya(i,e,o.settings.crop[0]),t&&o.widget.setSelectionFromModifiers(t),a.on("click",(function(){var e;return e=o.widget.applySelectionToFile(o.file),o.dialogApi.fileColl.replace(o.file,e),!0}))},this.settings.crop)return this.container.find(".uploadcare--preview__title").text(Pt.t("dialog.tabs.preview.crop.title")),this.container.find(".uploadcare--preview__content").addClass("uploadcare--preview__content_crop"),a.attr("disabled",!0).attr("aria-disabled",!0),a.text(Pt.t("dialog.tabs.preview.crop.done")),this.populateCropSizes(),this.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!0).attr("tabindex",-1),n.done((function(){return le(r)}))}},{key:"populateCropSizes",value:function(){var t,a,i,n=this;return t=this.container.find(".uploadcare--crop-sizes"),i=t.children(),a="uploadcare--crop-sizes__item_current",e.each(this.settings.crop,(function(r,o){var l,s,c,u,d,p;return(d=o.preferedSize)?(s=se(d[0],d[1]),l="".concat(d[0]/s,":").concat(d[1]/s)):l=Pt.t("dialog.tabs.preview.crop.free"),u=i.clone().appendTo(t).attr("data-caption",l).on("click",(function(i){"true"!==e(i.currentTarget).attr("aria-disabled")&&!e(i.currentTarget).hasClass(a)&&n.settings.crop.length>1&&n.widget&&(n.widget.setCrop(o),t.find(">*").removeClass(a),u.addClass(a))})),d?(p=Ae(d,[30,30],!0),u.children().css({width:Math.max(20,p[0]),height:Math.max(12,p[1])})):(c=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-crop-free'/></svg>").attr("role","presentation").attr("class","uploadcare--icon"),u.children().append(c).addClass("uploadcare--crop-sizes__icon_free"))})),i.remove(),t.find(">*").eq(0).addClass(a)}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--preview__done").focus()}}]),n}(wa);w()&&function(e){function t(e){this.targets=e,this.last=null,this.update()}t.prototype={update:function(){var t={};this.targets.each((function(a){var i=e(this).offset();i.top in t||(t[i.top]=[]),t[i.top].push([i.left+this.offsetWidth/2,this])})),this.rows=t},find:function(e,t){var a,i,n,r=1/0,o=this.rows;for(i in o){(s=Math.abs(i-t))<r&&(r=s,a=o[i])}r=Math.abs(a[0][0]-e),n=a[0][1];for(var l=1;l<a.length;l++){var s;(s=Math.abs(a[l][0]-e))<r&&(r=s,n=a[l][1])}return n},findNotLast:function(e,t){var a=this.find(e,t);return this.last&&a&&this.last==a?null:this.last=a}};var a="uploadcareMovable",i={uploadcareMovable:function(t){function i(e){if(t.touch){var a,i;if((i=e.originalEvent.touches)&&i.length)a=i[0];else{if(!(i=e.originalEvent.changedTouches)||!i.length)return;a=i[0]}e.pageX=a.pageX,e.pageY=a.pageY,e.which=1}}t=e.extend({distance:4,anyButton:!1,axis:!1,zIndex:1e3,start:e.noop,move:e.noop,finish:e.noop,items:null,keepFake:!1,touch:!0},t);var n="mousedown.{} touchstart.{}".replace(/\{}/g,a);this.on(n,t.items,null,(function(n){if(i(n),t.anyButton||1==n.which){n.preventDefault();var r=!1,o=e(this),l=!1,s=o.position();s.top+=o.offsetParent().scrollTop(),s.left+=o.offsetParent().scrollLeft();var c="mousemove.{} touchmove.{}".replace(/\{}/g,a);e(document).on(c,(function(e){if(i(e),!r&&(Math.abs(e.pageX-n.pageX)>t.distance||Math.abs(e.pageY-n.pageY)>t.distance)&&(r=!0,l=o.clone().css({position:"absolute",zIndex:t.zIndex,width:o.width()}).appendTo(o.offsetParent()),t.start({event:e,dragged:o,fake:l})),r){e.preventDefault();var a="y"==t.axis?0:e.pageX-n.pageX,c="x"==t.axis?0:e.pageY-n.pageY;l.css({left:a+s.left,top:c+s.top}),t.move({event:e,dragged:o,fake:l,dx:a,dy:c})}}));c="mouseup.{} touchend.{} touchcancel.{} touchleave.{}";e(document).on(c.replace(/\{}/g,a),(function(s){i(s);if(e(document).off("mousemove.{} touchmove.{} mouseup.{} touchend.{} touchcancel.{} touchleave.{}".replace(/\{}/g,a)),r){s.preventDefault();var c=s.pageX-n.pageX,u=s.pageY-n.pageY;r=!1,t.finish({event:s,dragged:o,fake:l,dx:c,dy:u}),t.keepFake||l.remove()}}))}}))},uploadcareSortable:function(i){var n,r=e.extend({items:">*"},i),o=(i=e.extend({checkBounds:function(){return!0},start:e.noop,attach:e.noop,move:e.noop,finish:e.noop},i),!1),l=this;return r.start=function(e){i.start(e),n=new t(l.find(r.items).not(e.fake)),o=e.dragged.next()},r.move=function(t){if(t.nearest=null,i.checkBounds(t)){var a=t.fake.offset(),r=n.findNotLast(a.left+t.dragged.width()/2,a.top);t.nearest=e(r),r&&r!=t.dragged[0]&&(t.dragged.nextAll().filter(r).length>0?t.dragged.insertAfter(r):t.dragged.insertBefore(r),i.attach(t),n.last=null,n.update())}else null!==n.last&&(n.last=null,o.length?t.dragged.insertBefore(o):t.dragged.parent().append(t.dragged),i.attach(t),n.update());i.move(t)},r.finish=function(t){var a=t.fake.offset();t.nearest=null,i.checkBounds(t)&&(t.nearest=e(n.find(a.left+t.dragged.width()/2,a.top))),i.finish(t),n=null},this[a](r)}};e.fn.extend(i)}(e);var ka=function(t){u(n,t);var i=m(n);function n(){var t;return a(this,n),(t=i.apply(this,arguments)).container.append(Qt("tab-preview-multiple")),t.__fileTpl=e(Qt("tab-preview-multiple-file")),t.fileListEl=t.container.find(".uploadcare--files"),t.doneBtnEl=t.container.find(".uploadcare--preview__done"),e.each(t.dialogApi.fileColl.get(),(function(e,a){return t.__fileAdded(a)})),t.__updateContainerView(),t.dialogApi.fileColl.onAdd.add(t.__fileAdded.bind(f(t)),(function(){return t.__updateContainerView()})),t.dialogApi.fileColl.onRemove.add(t.__fileRemoved.bind(f(t)),(function(){return t.__updateContainerView()})),t.dialogApi.fileColl.onReplace.add(t.__fileReplaced.bind(f(t)),(function(){return t.__updateContainerView()})),t.dialogApi.fileColl.onAnyProgress(t.__fileProgress.bind(f(t))),t.dialogApi.fileColl.onAnyDone(t.__fileDone.bind(f(t))),t.dialogApi.fileColl.onAnyFail(t.__fileFailed.bind(f(t))),t.fileListEl.addClass(t.settings.imagesOnly?"uploadcare--files_type_tiles":"uploadcare--files_type_table"),t.__setupSorting(),t}return r(n,[{key:"__setupSorting",value:function(){var e=this;return this.fileListEl.uploadcareSortable({touch:!1,axis:this.settings.imagesOnly?"xy":"y",start:function(e){return e.dragged.css("visibility","hidden")},finish:function(t){var a,i;return t.dragged.css("visibility","visible"),a=e.container.find(".uploadcare--file"),i=function(t){return a.index(e.__fileToEl(t))},e.dialogApi.fileColl.sort((function(e,t){return i(e)-i(t)}))}})}},{key:"__updateContainerView",value:function(){var e,t,a,i,n,r,o;if(r=(t=this.dialogApi.fileColl.length())>this.settings.multipleMax,n=t<this.settings.multipleMin,a=r||n,this.doneBtnEl.attr("disabled",a).attr("aria-disabled",a),i=Pt.t("dialog.tabs.preview.multiple.question").replace("%files%",Pt.t("file",t)),this.container.find(".uploadcare--preview__title").text(i),(e=this.container.find(".uploadcare--preview__message")).empty(),a)return o=r?Pt.t("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):t&&n?Pt.t("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin).replace("%files%",Pt.t("file",t)):void 0,e.addClass("uploadcare--error").text(o)}},{key:"__updateFileInfo",value:function(e,t){var a;return a=t.name||Pt.t("dialog.tabs.preview.unknownName"),e.find(".uploadcare--file__name").text(a),e.find(".uploadcare--file__description").attr("aria-label",Pt.t("dialog.tabs.preview.multiple.file.preview").replace("%file%",a)),e.find(".uploadcare--file__remove").attr("title",Pt.t("dialog.tabs.preview.multiple.file.remove").replace("%file%",a)).attr("aria-label",Pt.t("dialog.tabs.preview.multiple.file.remove").replace("%file%",a)),e.find(".uploadcare--file__size").text(je(t.size,"–"))}},{key:"__fileProgress",value:function(e,t){var a;return(a=this.__fileToEl(e)).find(".uploadcare--progressbar__value").css("width",Math.round(100*t.progress)+"%"),this.__updateFileInfo(a,t.incompleteFileInfo)}},{key:"__fileDone",value:function(t,a){var i,n,r,o,l=this;return(n=this.__fileToEl(t).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_uploaded")).find(".uploadcare--progressbar__value").css("width","100%"),this.__updateFileInfo(n,a),a.isImage?(i="".concat(a.cdnUrl,"-/quality/lightest/-/preview/108x108/"),this.settings.previewUrlCallback&&(i=this.settings.previewUrlCallback(i,a)),o=n.find(".uploadcare--file__name").text(),r=e("<img>").attr("src",i).attr("alt",o).addClass("uploadcare--file__icon")):r=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-file'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon"),n.find(".uploadcare--file__preview").html(r),n.find(".uploadcare--file__description").on("click",(function(){return ja(t,l.settings).done((function(e){return l.dialogApi.fileColl.replace(t,e)}))}))}},{key:"__fileFailed",value:function(t,a,i){var n,r;return(n=this.__fileToEl(t).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_error")).find(".uploadcare--file__error").text(Pt.t("errors.".concat(a))),r=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-error'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon"),n.find(".uploadcare--file__preview").html(r)}},{key:"__fileAdded",value:function(e){return this.__createFileEl(e).appendTo(this.fileListEl)}},{key:"__fileRemoved",value:function(t){return this.__fileToEl(t).remove(),e(t).removeData()}},{key:"__fileReplaced",value:function(e,t){return this.__createFileEl(t).insertAfter(this.__fileToEl(e)),this.__fileRemoved(e)}},{key:"__fileToEl",value:function(t){return e(t).data("dpm-el")||e()}},{key:"__createFileEl",value:function(t){var a,i=this;return a=this.__fileTpl.clone().on("click",".uploadcare--file__remove",(function(){return i.dialogApi.fileColl.remove(t)})),e(t).data("dpm-el",a),a}},{key:"displayed",value:function(){this.container.find(".uploadcare--preview__done").focus()}}]),n}(wa);w()&&e(window).on("keydown",(function(e){if(Sa()&&(27===e.which&&(e.stopImmediatePropagation(),null!=za&&za.reject()),9===e.which))return function(e){return!e.shiftKey&&Ca.last().is(e.target)?(e.preventDefault(),Ca.first().focus()):e.shiftKey&&Ca.first().is(e.target)?(e.preventDefault(),Ca.last().focus()):void 0}(e)}));var za=null,Aa=null,Ca=null,Sa=function(){return null!==za},Fa=function(){za&&(za.reject(),za=null)},Ta=function(t,a,i){var n,r,o;return Fa(),Aa=document.activeElement,r=e(Qt("dialog")).appendTo("body"),o=Da(r.find(".uploadcare--dialog__placeholder"),t,a,i,{inModal:!0}),r.find(".uploadcare--panel").addClass("uploadcare--dialog__panel"),r.addClass("uploadcare--dialog_status_active"),o.dialogElement=r,(Ca=r.find("select, input, textarea, button, a[href]")).first().focus(),n=function(e,t){var a,i;return i=e.scrollTop(),a=e.scrollLeft(),t&&e.scrollTop(0).scrollLeft(0),function(){return e.scrollTop(i).scrollLeft(a)}}(e(window),"absolute"===r.css("position")),e("html, body").addClass("uploadcare--page"),r.find(".uploadcare--dialog__close").on("click",o.reject),r.on("dblclick",(function(t){var a;if(e.contains(document.documentElement,t.target)&&(a=".uploadcare--dialog__panel, .uploadcare--dialog__powered-by",!e(t.target).is(a)&&!e(t.target).parents(a).length))return o.reject()})),za=o.always((function(){return e("html, body").removeClass("uploadcare--page"),za=null,r.remove(),n(),Aa.focus()}))},ja=function(t,a){var i,n;return n=za,za=null,a=e.extend({},a,{multiple:!1,tabs:""}),i=Ta(t,"preview",a),null!=n&&n.dialogElement.addClass("uploadcare--dialog_status_inactive"),i.always((function(){if(za=n,null!=n)return e("html, body").addClass("uploadcare--page"),n.dialogElement.removeClass("uploadcare--dialog_status_inactive")})),i.onTabVisibility((function(e,t){if("preview"===e&&!t)return i.reject()})),i},Da=function(t,a,i,n){var r,o,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{inModal:!1};return e.isPlainObject(i)&&(n=i,i=null),a?zt(a)?a=a.files():e.isArray(a)||(a=[a]):a=[],n=Ve(n),o=new Ma(n,t,a,i,l).publicPromise(),de(o,r=function(e){return n.multiple?Rt(e,n):e[0]},r).promise(o)},Ia={},Pa=function(e,t){return Ia[e]=t,Ia[e]};Pa("file",ma),Pa("url",ga),Pa("camera",va),Pa("facebook",Wt),Pa("dropbox",Wt),Pa("gdrive",Wt),Pa("gphotos",Wt),Pa("instagram",Wt),Pa("flickr",Wt),Pa("vk",Wt),Pa("evernote",Wt),Pa("box",Wt),Pa("onedrive",Wt),Pa("huddle",Wt),Pa("empty-pubkey",(function(e,t,a,i){return e.append('<div class="uploadcare--tab__content">\n<div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">Hello!</div>\n<div class="uploadcare--text">Your <a class="uploadcare--link" href="https://uploadcare.com/dashboard/">public key</a> is not set.</div>\n<div class="uploadcare--text">Add this to the &lt;head&gt; tag to start uploading files:</div>\n<div class="uploadcare--text uploadcare--text_pre">&lt;script&gt;\nUPLOADCARE_PUBLIC_KEY = \'your_public_key\';\n&lt;/script&gt;</div>\n</div>')})),Pa("preview",(function(e,t,a,i,n){if(i.previewStep||0!==a.fileColl.length())return new(i.multiple?ka:xa)(e,t,a,i,n)}));var Ma=function(){function t(i,n,r,o,l){var s,c=this;a(this,t),this.inModal=l.inModal||!1,this.addFiles=this.addFiles.bind(this),this.__resolve=this.__resolve.bind(this),this.__reject=this.__reject.bind(this),this.__updateFooter=this.__updateFooter.bind(this),this.__closePanel=this.__closePanel.bind(this),this.switchTab=this.switchTab.bind(this),this.showTab=this.showTab.bind(this),this.hideTab=this.hideTab.bind(this),this.isTabVisible=this.isTabVisible.bind(this),this.openMenu=this.openMenu.bind(this),this.settings=i,this.dfd=e.Deferred(),this.dfd.always(this.__closePanel),s=".uploadcare--panel",this.content=e(Qt("dialog__panel")),this.panel=this.content.find(s).add(this.content.filter(s)),this.placeholder=e(n),this.placeholder.replaceWith(this.content),this.panel.append(e(Qt("icons"))),this.settings.multiple&&this.panel.addClass("uploadcare--panel_multiple"),this.panel.find(".uploadcare--menu__toggle").on("click",(function(){return c.panel.find(".uploadcare--menu").toggleClass("uploadcare--menu_opened")})),this.files=new jt(r),this.files.onRemove.add((function(){if(0===c.files.length())return c.hideTab("preview")})),this.__autoCrop(this.files),this.tabs={},this.__prepareFooter(),this.onTabVisibility=e.Callbacks().add((function(e,t){return c.panel.find(".uploadcare--menu__item_tab_".concat(e)).toggleClass("uploadcare--menu__item_hidden",!t)})),this.settings.publicKey?this.__prepareTabs(o):this.__welcome()}return r(t,[{key:"takeFocus",value:function(){return this.inModal}},{key:"publicPromise",value:function(){return this.promise||(this.promise=this.dfd.promise({reject:this.__reject,resolve:this.__resolve,fileColl:this.files,addFiles:this.addFiles,switchTab:this.switchTab,hideTab:this.hideTab,showTab:this.showTab,isTabVisible:this.isTabVisible,openMenu:this.openMenu,takeFocus:this.takeFocus.bind(this),onTabVisibility:he(this.onTabVisibility)})),this.promise}},{key:"addFiles",value:function(e,t){var a,i,n;for(t&&(e=wt(e,t,this.settings)),this.settings.multiple||(this.files.clear(),e=[e[0]]),i=0,n=e.length;i<n;i++)a=e[i],this.settings.multipleMaxStrict&&this.files.length()>=this.settings.multipleMax?a.cancel():this.files.add(a);return this.settings.previewStep?(this.showTab("preview"),this.settings.multiple?void 0:this.switchTab("preview")):this.__resolve()}},{key:"__autoCrop",value:function(e){var t,a,i,n=this;if(this.settings.crop&&this.settings.multiple){for(t=0,a=(i=this.settings.crop).length;t<a;t++)if(!i[t].preferedSize)return;return e.autoThen((function(e){var t,a;return!e.isImage||e.cdnUrlModifiers||e.crop?e:(t=e.originalImageInfo,a=Ae(n.settings.crop[0].preferedSize,[t.width,t.height],!0),Ce(e,n.settings.crop[0],[t.width,t.height],{width:a[0],height:a[1],left:Math.round((t.width-a[0])/2),top:Math.round((t.height-a[1])/2)}))}))}}},{key:"__resolve",value:function(){return this.dfd.resolve(this.files.get())}},{key:"__reject",value:function(){return this.dfd.reject(this.files.get())}},{key:"__prepareTabs",value:function(e){var t,a,i,n;for(this.addTab("preview"),t=0,a=(i=this.settings.tabs).length;t<a;t++)n=i[t],this.addTab(n);if(this.files.length()?(this.showTab("preview"),this.switchTab("preview")):(this.hideTab("preview"),this.switchTab(e||this.__firstVisibleTab())),0===this.settings.tabs.length)return this.panel.addClass("uploadcare--panel_menu-hidden"),this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--panel__menu_hidden")}},{key:"__prepareFooter",value:function(){var e=this;return this.footer=this.panel.find(".uploadcare--panel__footer"),":not(:disabled)",this.footer.on("click",".uploadcare--panel__show-files:not(:disabled)",(function(){return e.switchTab("preview")})),this.footer.on("click",".uploadcare--panel__done:not(:disabled)",this.__resolve),this.__updateFooter(),this.files.onAdd.add(this.__updateFooter),this.files.onRemove.add(this.__updateFooter)}},{key:"__updateFooter",value:function(){var e,t,a,i=this.files.length();return a=i>this.settings.multipleMax,t=i<this.settings.multipleMin,this.footer.find(".uploadcare--panel__done").attr("disabled",a||t).attr("aria-disabled",a||t),this.footer.find(".uploadcare--panel__show-files").attr("disabled",0===i).attr("aria-disabled",0===i),e=a?Pt.t("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):i&&t?Pt.t("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin):Pt.t("dialog.tabs.preview.multiple.title"),this.footer.find(".uploadcare--panel__message").toggleClass("uploadcare--panel__message_hidden",0===i).toggleClass("uploadcare--error",a||t).text(e.replace("%files%",Pt.t("file",i))),this.footer.find(".uploadcare--panel__file-counter").toggleClass("uploadcare--error",a||t).text(i?"(".concat(i,")"):"")}},{key:"__closePanel",value:function(){return this.panel.replaceWith(this.placeholder),this.content.remove()}},{key:"addTab",value:function(t){var a,i,n,r,o=this;if(!(t in this.tabs)){if(!(a=Ia[t]))throw new Error("No such tab: ".concat(t));return r=e("<div>").addClass("uploadcare--tab").addClass("uploadcare--tab_name_".concat(t)).insertBefore(this.footer),n="preview"===t?e('<div class="uploadcare--menu__icon uploadcare--panel__icon" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">'):e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(t,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),i=e("<div>",{role:"button",tabindex:"0"}).addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_".concat(t)).attr("title",Pt.t("dialog.tabs.names.".concat(t))).append(n).appendTo(this.panel.find(".uploadcare--menu__items")).on("click",(function(){return t===o.currentTab?o.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened"):o.switchTab(t)})),this.tabs[t]=new a(r,i,this.publicPromise(),this.settings,t),this.tabs[t]}}},{key:"switchTab",value:function(e){var t;if(e&&this.currentTab!==e)return this.currentTab=e,this.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened").attr("data-current",e),this.panel.find(".uploadcare--menu__item").removeClass("uploadcare--menu__item_current").filter(".uploadcare--menu__item_tab_".concat(e)).addClass("uploadcare--menu__item_current"),t="uploadcare--tab",this.panel.find(".".concat(t)).removeClass("".concat(t,"_current")).filter(".".concat(t,"_name_").concat(e)).addClass("".concat(t,"_current")),this.tabs[e].displayed&&this.tabs[e].displayed(),this.dfd.notify(e)}},{key:"showTab",value:function(e){return this.onTabVisibility.fire(e,!0)}},{key:"hideTab",value:function(e){if(this.onTabVisibility.fire(e,!1),this.currentTab===e)return this.switchTab(this.__firstVisibleTab())}},{key:"isTabVisible",value:function(e){return!this.panel.find(".uploadcare--menu__item_tab_".concat(e)).is(".uploadcare--menu__item_hidden")}},{key:"openMenu",value:function(){return this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--menu_opened")}},{key:"__firstVisibleTab",value:function(){var e,t,a,i;for(e=0,t=(a=this.settings.tabs).length;e<t;e++)if(i=a[e],this.isTabVisible(i))return i}},{key:"__welcome",value:function(){var e,t,a,i;for(this.addTab("empty-pubkey"),this.switchTab("empty-pubkey"),e=0,t=(a=this.settings.tabs).length;e<t;e++)i=a[e],this.__addFakeTab(i);return null}},{key:"__addFakeTab",value:function(t){var a;return a=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(t,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),"empty-pubkey"===t&&a.addClass("uploadcare--panel__icon"),e("<div>").addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_".concat(t)).attr("aria-disabled",!0).attr("title",Pt.t("dialog.tabs.names.".concat(t))).append(a).appendTo(this.panel.find(".uploadcare--menu__items"))}}]),t}(),Oa=function(){function t(i,n){var r=this;a(this,t),this.element=i,this.settings=n,this.validators=this.settings.validators=[],this.currentObject=null,this.__onDialogOpen=e.Callbacks(),this.__onUploadComplete=e.Callbacks(),this.__onChange=e.Callbacks().add((function(e){return null!=e?e.promise().done((function(e){return r.__onUploadComplete.fire(e)})):void 0})),this.__setupWidget(),this.element.on("change.uploadcare",this.reloadInfo.bind(this)),this.__hasValue=!1,le((function(){if(!r.__hasValue)return r.reloadInfo()}))}return r(t,[{key:"__setupWidget",value:function(){var e,t=this;return this.template=new ha(this.settings,this.element),(e=["buttons.choose"]).push(this.settings.imagesOnly?"images":"files"),e.push(this.settings.multiple?"other":"one"),this.template.addButton("open",Pt.t(e.join("."))).toggleClass("needsclick",this.settings.systemDialog).on("click",(function(){return t.openDialog()})),this.template.addButton("cancel",Pt.t("buttons.cancel")).on("click",(function(){return t.__setObject(null)})),this.template.addButton("remove",Pt.t("buttons.remove")).on("click",(function(){return t.__setObject(null)})),this.template.content.on("click",".uploadcare--widget__file-name",(function(){return t.openDialog()})),ua(this.template.content,this.__handleDirectSelection.bind(this)),this.template.reset()}},{key:"__infoToValue",value:function(e){return e.cdnUrlModifiers||this.settings.pathValue?e.cdnUrl:e.uuid}},{key:"__reset",value:function(){var e;return e=this.currentObject,this.currentObject=null,null!=e&&"function"==typeof e.cancel&&e.cancel(),this.template.reset()}},{key:"__setObject",value:function(e){if(e!==this.currentObject)return this.__reset(),e?(this.currentObject=e,this.__watchCurrentObject()):this.element.val(""),this.__onChange.fire(this.currentObject)}},{key:"__watchCurrentObject",value:function(){var e,t=this;if(e=this.__currentFile())return this.template.listen(e),e.done((function(a){if(e===t.__currentFile())return t.__onUploadingDone(a)})).fail((function(a){if(e===t.__currentFile())return t.__onUploadingFailed(a)}))}},{key:"__onUploadingDone",value:function(e){return this.element.val(this.__infoToValue(e)),this.template.setFileInfo(e),this.template.loaded()}},{key:"__onUploadingFailed",value:function(e){return this.template.reset(),this.template.error(e)}},{key:"__setExternalValue",value:function(e){return this.__setObject(kt(e,this.settings))}},{key:"value",value:function(e){return void 0!==e?(this.__hasValue=!0,this.__setExternalValue(e),this):this.currentObject}},{key:"reloadInfo",value:function(){return this.value(this.element.val())}},{key:"openDialog",value:function(e){var t=this;return this.settings.systemDialog?Fe(this.template.content,this.settings,(function(e){return t.__handleDirectSelection("object",e.files)})):this.__openDialog(e)}},{key:"__openDialog",value:function(e){var t;return t=Ta(this.currentObject,e,this.settings),this.__onDialogOpen.fire(t),t.done(this.__setObject.bind(this))}},{key:"api",value:function(){return this.__api||(this.__api=pe(this,["openDialog","reloadInfo","value","validators"]),this.__api.onChange=he(this.__onChange),this.__api.onUploadComplete=he(this.__onUploadComplete),this.__api.onDialogOpen=he(this.__onDialogOpen),this.__api.inputElement=this.element.get(0)),this.__api}}]),t}(),Ea=function(e){u(i,e);var t=m(i);function i(){return a(this,i),t.apply(this,arguments)}return r(i,[{key:"__currentFile",value:function(){return this.currentObject}},{key:"__handleDirectSelection",value:function(e,t){var a=yt(e,t[0],this.settings);return this.settings.systemDialog||!this.settings.previewStep?this.__setObject(a):this.__openDialog("preview").addFiles([a])}}]),i}(Oa);Ea._name="SingleWidget";var Ua=function(e){u(i,e);var t=m(i);function i(){return a(this,i),t.apply(this,arguments)}return r(i,[{key:"__currentFile",value:function(){var e;return null!=(e=this.currentObject)?e.promise():void 0}},{key:"__setObject",value:function(e){return Ct(this.currentObject,e)?e?void 0:(this.__reset(),this.element.val("")):g(d(i.prototype),"__setObject",this).call(this,e)}},{key:"__setExternalValue",value:function(e){var t,a=this;return this.__lastGroupPr=t=At(e,this.settings),e&&(this.template.setStatus("started"),this.template.statusText.text(Pt.t("loadingInfo"))),t.done((function(e){if(a.__lastGroupPr===t)return a.__setObject(e)})).fail((function(){if(a.__lastGroupPr===t)return a.__onUploadingFailed("createGroup")}))}},{key:"__handleDirectSelection",value:function(e,t){var a=wt(e,t,this.settings);return this.settings.systemDialog?this.__setObject(Rt(a,this.settings)):this.__openDialog("preview").addFiles(a)}}]),i}(Oa);Ua._name="MultipleWidget";var Ba="uploadcareWidget",Ra='[role~="uploadcare-uploader"]',La=function(){var t,a,i,n,r,o,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":root";for(r=[],a=0,i=(n=e(l)).length;a<i;a++)t=n[a],o=Va(t.querySelectorAll(Ra)),r=r.concat(o);return r},Va=function(t){var a,i,n,r,o;for(n=[],a=0,i=t.length;a<i;a++)r=t[a],(o=e(r).data(Ba))&&o.inputElement===r||n.push(Wa(r));return n},Na=function(e){return Wa(e,Ea)},qa=function(e){return Wa(e,Ua)},Ka=function(e){return Wa(e)},Wa=function(t,a){var i=e(t);if(0===i.length)throw new Error("No DOM elements found matching selector");i.length>1&&ae("There are multiple DOM elements matching selector"),t=i.eq(0);var n=Ve(t.data()),r=n.multiple?Ua:Ea;if(a&&r!==a)throw new Error("This element should be processed using ".concat(r._name));var o=t.data(Ba);if(!o||o.inputElement!==t[0]){Ha(t);var l=new r(t,n);o=l.api(),t.data(Ba,o),l.template.content.data(Ba,o)}return o},Ha=function(t){return t.off(".uploadcare").each((function(){var t,a;if((t=(a=e(this).next(".uploadcare--widget")).data(Ba))&&t.inputElement===this)return a.remove()}))},Ga=ce((function(e,t){if(e=Le(e,t),!t)return e.live&&setInterval(La,100),La()}));w()&&e((function(){window.UPLOADCARE_MANUAL_START||Ga()}));var Ya=c(c({},Ht),{},{templates:{JST:Zt,tpl:Qt},crop:{CropWidget:ya},dragdrop:{support:sa,uploadDrop:ca,watchDragging:da,receiveDrop:ua},ui:{progress:{Circle:na,BaseRenderer:ra,TextRenderer:oa,CanvasRenderer:la}},widget:{tabs:{FileTab:ma,UrlTab:ga,CameraTab:va,RemoteTab:Wt,BasePreviewTab:wa,PreviewTab:xa,PreviewTabMultiple:ka},Template:ha,BaseWidget:Oa,Widget:Ea,MultipleWidget:Ua},isDialogOpened:Sa,closeDialog:Fa,openDialog:Ta,openPreviewDialog:ja,openPanel:Da,registerTab:Pa,initialize:La,SingleWidget:Na,MultipleWidget:qa,Widget:Ka,start:Ga}),Xa=Gt(Ya),Ja=c(c({},Yt),{},{plugin:Xa,start:Ga,initialize:La,openDialog:Ta,closeDialog:Fa,openPanel:Da,registerTab:Pa,Circle:na,SingleWidget:Na,MultipleWidget:qa,Widget:Ka,tabsCss:Kt,dragdrop:{receiveDrop:ua,support:sa,uploadDrop:ca}}),Za=Gt(Ya);return c(c({},Ja),{},{plugin:Za,locales:Object.keys(Pt.translations)})}));
  