1this.filestackLegacy=this.filestackLegacy||{};this.filestackLegacy.pick=function(){var a={css:{main:"https://static.filestackapi.com/picker/1.2.0/main.css"},vendor:{opentok:"/assets/vendor/javascripts/filestackLegacyOpentok.js",fabric:"/assets/vendor/javascripts/filestackLegacyFabric.js",cropper:"/assets/vendor/javascripts/filestackLegacyCropper.js"},sentryDSN:"https://[email protected]/210196"};var f=Object.freeze({});function L(e){return e===undefined||e===null}function P(e){return e!==undefined&&e!==null}function O(e){return e===true}function t(e){return e===false}function g(e){return typeof e==="string"||typeof e==="number"||typeof e==="symbol"||typeof e==="boolean"}function N(e){return e!==null&&typeof e==="object"}var r=Object.prototype.toString;function i(e){return r.call(e).slice(8,-1)}function l(e){return r.call(e)==="[object Object]"}function n(e){return r.call(e)==="[object RegExp]"}function o(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function s(e){return e==null?"":typeof e==="object"?JSON.stringify(e,null,2):String(e)}function M(e){var t=parseFloat(e);return isNaN(t)?e:t}function d(e,t){var r=Object.create(null);var i=e.split(",");for(var n=0;n<i.length;n++){r[i[n]]=true}return t?function(e){return r[e.toLowerCase()]}:function(e){return r[e]}}var e=d("slot,component",true);var c=d("key,ref,slot,slot-scope,is");function p(e,t){if(e.length){var r=e.indexOf(t);if(r>-1){return e.splice(r,1)}}}var u=Object.prototype.hasOwnProperty;function h(e,t){return u.call(e,t)}function v(i){var n=Object.create(null);return function e(t){var r=n[t];return r||(n[t]=i(t))}}var m=/-(\w)/g;var _=v(function(e){return e.replace(m,function(e,t){return t?t.toUpperCase():""})});var y=v(function(e){return e.charAt(0).toUpperCase()+e.slice(1)});var b=/\B([A-Z])/g;var w=v(function(e){return e.replace(b,"-$1").toLowerCase()});function A(r,i){function e(e){var t=arguments.length;return t?t>1?r.apply(i,arguments):r.call(i,e):r.call(i)}e._length=r.length;return e}function C(e,t){t=t||0;var r=e.length-t;var i=new Array(r);while(r--){i[r]=e[r+t]}return i}function E(e,t){for(var r in t){e[r]=t[r]}return e}function S(e){var t={};for(var r=0;r<e.length;r++){if(e[r]){E(t,e[r])}}return t}function k(e,t,r){}var F=function(e,t,r){return false};var I=function(e){return e};function x(t,r){if(t===r){return true}var e=N(t);var i=N(r);if(e&&i){try{var n=Array.isArray(t);var a=Array.isArray(r);if(n&&a){return t.length===r.length&&t.every(function(e,t){return x(e,r[t])})}else if(!n&&!a){var o=Object.keys(t);var s=Object.keys(r);return o.length===s.length&&o.every(function(e){return x(t[e],r[e])})}else{return false}}catch(e){return false}}else if(!e&&!i){return String(t)===String(r)}else{return false}}function T(e,t){for(var r=0;r<e.length;r++){if(x(e[r],t)){return r}}return-1}function B(e){var t=false;return function(){if(!t){t=true;e.apply(this,arguments)}}}var R="data-server-rendered";var D=["component","directive","filter"];var U=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"];var j={optionMergeStrategies:Object.create(null),silent:false,productionTip:"production"!=="production",devtools:"production"!=="production",performance:false,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:k,parsePlatformTagName:I,mustUseProp:F,_lifecycleHooks:U};function $(e){var t=(e+"").charCodeAt(0);return t===36||t===95}function z(e,t,r,i){Object.defineProperty(e,t,{value:r,enumerable:!!i,writable:true,configurable:true})}var W=/[^\w.$]/;function H(e){if(W.test(e)){return}var r=e.split(".");return function(e){for(var t=0;t<r.length;t++){if(!e){return}e=e[r[t]]}return e}}var G="__proto__"in{};var V=typeof window!=="undefined";var Q=typeof WXEnvironment!=="undefined"&&!!WXEnvironment.platform;var q=Q&&WXEnvironment.platform.toLowerCase();var K=V&&window.navigator.userAgent.toLowerCase();var Y=K&&/msie|trident/.test(K);var X=K&&K.indexOf("msie 9.0")>0;var Z=K&&K.indexOf("edge/")>0;var J=K&&K.indexOf("android")>0||q==="android";var ee=K&&/iphone|ipad|ipod|ios/.test(K)||q==="ios";var te=K&&/chrome\/\d+/.test(K)&&!Z;var re={}.watch;var ie=false;if(V){try{var ne={};Object.defineProperty(ne,"passive",{get:function e(){ie=true}});window.addEventListener("test-passive",null,ne)}catch(e){}}var ae;var oe=function(){if(ae===undefined){if(!V&&typeof global!=="undefined"){ae=global["process"].env.VUE_ENV==="server"}else{ae=false}}return ae};var se=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return typeof e==="function"&&/native code/.test(e.toString())}var ce=typeof Symbol!=="undefined"&&le(Symbol)&&typeof Reflect!=="undefined"&&le(Reflect.ownKeys);var ue;if(typeof Set!=="undefined"&&le(Set)){ue=Set}else{ue=function(){function e(){this.set=Object.create(null)}e.prototype.has=function e(t){return this.set[t]===true};e.prototype.add=function e(t){this.set[t]=true};e.prototype.clear=function e(){this.set=Object.create(null)};return e}()}var fe=k;var de=0;var pe=function e(){this.id=de++;this.subs=[]};pe.prototype.addSub=function e(t){this.subs.push(t)};pe.prototype.removeSub=function e(t){p(this.subs,t)};
1pe.prototype.depend=function e(){if(pe.target){pe.target.addDep(this)}};pe.prototype.notify=function e(){var t=this.subs.slice();for(var r=0,i=t.length;r<i;r++){t[r].update()}};pe.target=null;var he=[];function ve(e){if(pe.target){he.push(pe.target)}pe.target=e}function me(){pe.target=he.pop()}var ge=function e(t,r,i,n,a,o,s,l){this.tag=t;this.data=r;this.children=i;this.text=n;this.elm=a;this.ns=undefined;this.context=o;this.fnContext=undefined;this.fnOptions=undefined;this.fnScopeId=undefined;this.key=r&&r.key;this.componentOptions=s;this.componentInstance=undefined;this.parent=undefined;this.raw=false;this.isStatic=false;this.isRootInsert=true;this.isComment=false;this.isCloned=false;this.isOnce=false;this.asyncFactory=l;this.asyncMeta=undefined;this.isAsyncPlaceholder=false};var _e={child:{configurable:true}};_e.child.get=function(){return this.componentInstance};Object.defineProperties(ge.prototype,_e);var ye=function(e){if(e===void 0)e="";var t=new ge;t.text=e;t.isComment=true;return t};function be(e){return new ge(undefined,undefined,undefined,String(e))}function we(e,t){var r=e.componentOptions;var i=new ge(e.tag,e.data,e.children,e.text,e.elm,e.context,r,e.asyncFactory);i.ns=e.ns;i.isStatic=e.isStatic;i.key=e.key;i.isComment=e.isComment;i.fnContext=e.fnContext;i.fnOptions=e.fnOptions;i.fnScopeId=e.fnScopeId;i.isCloned=true;if(t){if(e.children){i.children=Ae(e.children,true)}if(r&&r.children){r.children=Ae(r.children,true)}}return i}function Ae(e,t){var r=e.length;var i=new Array(r);for(var n=0;n<r;n++){i[n]=we(e[n],t)}return i}var Ce=Array.prototype;var Ee=Object.create(Ce);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(o){var s=Ce[o];z(Ee,o,function e(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var i=s.apply(this,t);var n=this.__ob__;var a;switch(o){case"push":case"unshift":a=t;break;case"splice":a=t.slice(2);break}if(a){n.observeArray(a)}n.dep.notify();return i})});var Se=Object.getOwnPropertyNames(Ee);var ke={shouldConvert:true};var Fe=function e(t){this.value=t;this.dep=new pe;this.vmCount=0;z(t,"__ob__",this);if(Array.isArray(t)){var r=G?Ie:xe;r(t,Ee,Se);this.observeArray(t)}else{this.walk(t)}};Fe.prototype.walk=function e(t){var r=Object.keys(t);for(var i=0;i<r.length;i++){Te(t,r[i],t[r[i]])}};Fe.prototype.observeArray=function e(t){for(var r=0,i=t.length;r<i;r++){Oe(t[r])}};function Ie(e,t,r){e.__proto__=t}function xe(e,t,r){for(var i=0,n=r.length;i<n;i++){var a=r[i];z(e,a,t[a])}}function Oe(e,t){if(!N(e)||e instanceof ge){return}var r;if(h(e,"__ob__")&&e.__ob__ instanceof Fe){r=e.__ob__}else if(ke.shouldConvert&&!oe()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue){r=new Fe(e)}if(t&&r){r.vmCount++}return r}function Te(i,e,n,t,a){var o=new pe;var r=Object.getOwnPropertyDescriptor(i,e);if(r&&r.configurable===false){return}var s=r&&r.get;var l=r&&r.set;var c=!a&&Oe(n);Object.defineProperty(i,e,{enumerable:true,configurable:true,get:function e(){var t=s?s.call(i):n;if(pe.target){o.depend();if(c){c.dep.depend();if(Array.isArray(t)){Ue(t)}}}return t},set:function e(t){var r=s?s.call(i):n;if(t===r||t!==t&&r!==r){return}if(l){l.call(i,t)}else{n=t}c=!a&&Oe(t);o.notify()}})}function Re(e,t,r){if(Array.isArray(e)&&o(t)){e.length=Math.max(e.length,t);e.splice(t,1,r);return r}if(t in e&&!(t in Object.prototype)){e[t]=r;return r}var i=e.__ob__;if(e._isVue||i&&i.vmCount){return r}if(!i){e[t]=r;return r}Te(i.value,t,r);i.dep.notify();return r}function De(e,t){if(Array.isArray(e)&&o(t)){e.splice(t,1);return}var r=e.__ob__;if(e._isVue||r&&r.vmCount){return}if(!h(e,t)){return}delete e[t];if(!r){return}r.dep.notify()}function Ue(e){for(var t=void 0,r=0,i=e.length;r<i;r++){t=e[r];t&&t.__ob__&&t.__ob__.dep.depend();if(Array.isArray(t)){Ue(t)}}}var Le=j.optionMergeStrategies;function Pe(e,t){if(!t){return e}var r,i,n;var a=Object.keys(t);for(var o=0;o<a.length;o++){r=a[o];i=e[r];n=t[r];if(!h(e,r)){Re(e,r,n)}else if(l(i)&&l(n)){Pe(i,n)}}return e}function Ne(i,n,a){if(!a){if(!n){return i}if(!i){return n}return function e(){return Pe(typeof n==="function"?n.call(this,this):n,typeof i==="function"?i.call(this,this):i)}}else{return function e(){var t=typeof n==="function"?n.call(a,a):n;var r=typeof i==="function"?i.call(a,a):i;if(t){return Pe(t,r)}else{return r}}}}Le.data=function(e,t,r){if(!r){if(t&&typeof t!=="function"){return e}return Ne(e,t)}return Ne(e,t,r)};function Me(e,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}U.forEach(function(e){Le[e]=Me});
1function Be(e,t,r,i){var n=Object.create(e||null);if(t){return E(n,t)}else{return n}}D.forEach(function(e){Le[e+"s"]=Be});Le.watch=function(e,t,r,i){if(e===re){e=undefined}if(t===re){t=undefined}if(!t){return Object.create(e||null)}if(!e){return t}var n={};E(n,e);for(var a in t){var o=n[a];var s=t[a];if(o&&!Array.isArray(o)){o=[o]}n[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return n};Le.props=Le.methods=Le.inject=Le.computed=function(e,t,r,i){if(t&&"production"!=="production"){He(i,t,r)}if(!e){return t}var n=Object.create(null);E(n,e);if(t){E(n,t)}return n};Le.provide=Ne;var je=function(e,t){return t===undefined?e:t};function $e(e,t){var r=e.props;if(!r){return}var i={};var n,a,o;if(Array.isArray(r)){n=r.length;while(n--){a=r[n];if(typeof a==="string"){o=_(a);i[o]={type:null}}else{}}}else if(l(r)){for(var s in r){a=r[s];o=_(s);i[o]=l(a)?a:{type:a}}}else{}e.props=i}function ze(e,t){var r=e.inject;if(!r){return}var i=e.inject={};if(Array.isArray(r)){for(var n=0;n<r.length;n++){i[r[n]]={from:r[n]}}}else if(l(r)){for(var a in r){var o=r[a];i[a]=l(o)?E({from:a},o):{from:o}}}else{}}function We(e){var t=e.directives;if(t){for(var r in t){var i=t[r];if(typeof i==="function"){t[r]={bind:i,update:i}}}}}function He(e,t,r){if(!l(t)){fe('Invalid value for option "'+e+'": expected an Object, '+"but got "+i(t)+".",r)}}function Ge(r,i,n){if(typeof i==="function"){i=i.options}$e(i,n);ze(i,n);We(i);var e=i.extends;if(e){r=Ge(r,e,n)}if(i.mixins){for(var t=0,a=i.mixins.length;t<a;t++){r=Ge(r,i.mixins[t],n)}}var o={};var s;for(s in r){l(s)}for(s in i){if(!h(r,s)){l(s)}}function l(e){var t=Le[e]||je;o[e]=t(r[e],i[e],n,e)}return o}function Ve(e,t,r,i){if(typeof r!=="string"){return}var n=e[t];if(h(n,r)){return n[r]}var a=_(r);if(h(n,a)){return n[a]}var o=y(a);if(h(n,o)){return n[o]}var s=n[r]||n[a]||n[o];return s}function Qe(e,t,r,i){var n=t[e];var a=!h(r,e);var o=r[e];if(Ye(Boolean,n.type)){if(a&&!h(n,"default")){o=false}else if(!Ye(String,n.type)&&(o===""||o===w(e))){o=true}}if(o===undefined){o=qe(i,n,e);var s=ke.shouldConvert;ke.shouldConvert=true;Oe(o);ke.shouldConvert=s}return o}function qe(e,t,r){if(!h(t,"default")){return undefined}var i=t.default;if(e&&e.$options.propsData&&e.$options.propsData[r]===undefined&&e._props[r]!==undefined){return e._props[r]}return typeof i==="function"&&Ke(t.type)!=="Function"?i.call(e):i}function Ke(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Ye(e,t){if(!Array.isArray(t)){return Ke(t)===Ke(e)}for(var r=0,i=t.length;r<i;r++){if(Ke(t[r])===Ke(e)){return true}}return false}function Xe(e,t,r){if(t){var i=t;while(i=i.$parent){var n=i.$options.errorCaptured;if(n){for(var a=0;a<n.length;a++){try{var o=n[a].call(i,e,t,r)===false;if(o){return}}catch(e){Ze(e,i,"errorCaptured hook")}}}}}Ze(e,t,r)}function Ze(e,t,r){if(j.errorHandler){try{return j.errorHandler.call(null,e,t,r)}catch(e){Je(e,null,"config.errorHandler")}}Je(e,t,r)}function Je(e,t,r){if((V||Q)&&typeof console!=="undefined"){console.error(e)}else{throw e}}var et=[];var tt=false;function rt(){tt=false;var e=et.slice(0);et.length=0;for(var t=0;t<e.length;t++){e[t]()}}var it;var nt;var at=false;if(typeof setImmediate!=="undefined"&&le(setImmediate)){nt=function(){setImmediate(rt)}}else if(typeof MessageChannel!=="undefined"&&(le(MessageChannel)||MessageChannel.toString()==="[object MessageChannelConstructor]")){var ot=new MessageChannel;var st=ot.port2;ot.port1.onmessage=rt;nt=function(){st.postMessage(1)}}else{nt=function(){setTimeout(rt,0)}}if(typeof Promise!=="undefined"&&le(Promise)){var lt=Promise.resolve();it=function(){lt.then(rt);if(ee){setTimeout(k)}}}else{it=nt}function ct(t){return t._withTask||(t._withTask=function(){at=true;var e=t.apply(null,arguments);at=false;return e})}function ut(e,t){var r;et.push(function(){if(e){try{e.call(t)}catch(e){Xe(e,t,"nextTick")}}else if(r){r(t)}});if(!tt){tt=true;if(at){nt()}else{it()}}if(!e&&typeof Promise!=="undefined"){return new Promise(function(e){r=e})}}var ft=new ue;function dt(e){pt(e,ft);ft.clear()}function pt(e,t){var r,i;var n=Array.isArray(e);if(!n&&!N(e)||Object.isFrozen(e)){return}if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a)){return}t.add(a)}if(n){r=e.length;while(r--){pt(e[r],t)}}else{i=Object.keys(e);r=i.length;while(r--){pt(e[i[r]],t)}}}var ht;var vt=v(function(e){var t=e.charAt(0)==="&";e=t?e.slice(1):e;var r=e.charAt(0)==="~";e=r?e.slice(1):e;var i=e.charAt(0)==="!";
1e=i?e.slice(1):e;return{name:e,once:r,capture:i,passive:t}});function mt(e){function n(){var e=arguments;var t=n.fns;if(Array.isArray(t)){var r=t.slice();for(var i=0;i<r.length;i++){r[i].apply(null,e)}}else{return t.apply(null,arguments)}}n.fns=e;return n}function gt(e,t,r,i,n){var a,o,s,l,c;for(a in e){o=s=e[a];l=t[a];c=vt(a);if(L(s)){}else if(L(l)){if(L(s.fns)){s=e[a]=mt(s)}r(c.name,s,c.once,c.capture,c.passive,c.params)}else if(s!==l){l.fns=s;e[a]=l}}for(a in t){if(L(e[a])){c=vt(a);i(c.name,t[a],c.capture)}}}function _t(e,t,r){if(e instanceof ge){e=e.data.hook||(e.data.hook={})}var i;var n=e[t];function a(){r.apply(this,arguments);p(i.fns,a)}if(L(n)){i=mt([a])}else{if(P(n.fns)&&O(n.merged)){i=n;i.fns.push(a)}else{i=mt([n,a])}}i.merged=true;e[t]=i}function yt(e,t,r){var i=t.options.props;if(L(i)){return}var n={};var a=e.attrs;var o=e.props;if(P(a)||P(o)){for(var s in i){var l=w(s);bt(n,o,s,l,true)||bt(n,a,s,l,false)}}return n}function bt(e,t,r,i,n){if(P(t)){if(h(t,r)){e[r]=t[r];if(!n){delete t[r]}return true}else if(h(t,i)){e[r]=t[i];if(!n){delete t[i]}return true}}return false}function wt(e){for(var t=0;t<e.length;t++){if(Array.isArray(e[t])){return Array.prototype.concat.apply([],e)}}return e}function At(e){return g(e)?[be(e)]:Array.isArray(e)?Et(e):undefined}function Ct(e){return P(e)&&P(e.text)&&t(e.isComment)}function Et(e,t){var r=[];var i,n,a,o;for(i=0;i<e.length;i++){n=e[i];if(L(n)||typeof n==="boolean"){continue}a=r.length-1;o=r[a];if(Array.isArray(n)){if(n.length>0){n=Et(n,(t||"")+"_"+i);if(Ct(n[0])&&Ct(o)){r[a]=be(o.text+n[0].text);n.shift()}r.push.apply(r,n)}}else if(g(n)){if(Ct(o)){r[a]=be(o.text+n)}else if(n!==""){r.push(be(n))}}else{if(Ct(n)&&Ct(o)){r[a]=be(o.text+n.text)}else{if(O(e._isVList)&&P(n.tag)&&L(n.key)&&P(t)){n.key="__vlist"+t+"_"+i+"__"}r.push(n)}}}return r}function St(e,t){if(e.__esModule||ce&&e[Symbol.toStringTag]==="Module"){e=e.default}return N(e)?t.extend(e):e}function kt(e,t,r,i,n){var a=ye();a.asyncFactory=e;a.asyncMeta={data:t,context:r,children:i,tag:n};return a}function Ft(t,r,e){if(O(t.error)&&P(t.errorComp)){return t.errorComp}if(P(t.resolved)){return t.resolved}if(O(t.loading)&&P(t.loadingComp)){return t.loadingComp}if(P(t.contexts)){t.contexts.push(e)}else{var i=t.contexts=[e];var n=true;var a=function(){for(var e=0,t=i.length;e<t;e++){i[e].$forceUpdate()}};var o=B(function(e){t.resolved=St(e,r);if(!n){a()}});var s=B(function(e){if(P(t.errorComp)){t.error=true;a()}});var l=t(o,s);if(N(l)){if(typeof l.then==="function"){if(L(t.resolved)){l.then(o,s)}}else if(P(l.component)&&typeof l.component.then==="function"){l.component.then(o,s);if(P(l.error)){t.errorComp=St(l.error,r)}if(P(l.loading)){t.loadingComp=St(l.loading,r);if(l.delay===0){t.loading=true}else{setTimeout(function(){if(L(t.resolved)&&L(t.error)){t.loading=true;a()}},l.delay||200)}}if(P(l.timeout)){setTimeout(function(){if(L(t.resolved)){s(null)}},l.timeout)}}}n=false;return t.loading?t.loadingComp:t.resolved}}function It(e){return e.isComment&&e.asyncFactory}function xt(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++){var r=e[t];if(P(r)&&(P(r.componentOptions)||It(r))){return r}}}}function Ot(e){e._events=Object.create(null);e._hasHookEvent=false;var t=e.$options._parentListeners;if(t){Ut(e,t)}}var Tt;function Rt(e,t,r){if(r){Tt.$once(e,t)}else{Tt.$on(e,t)}}function Dt(e,t){Tt.$off(e,t)}function Ut(e,t,r){Tt=e;gt(t,r||{},Rt,Dt,e);Tt=undefined}function Lt(e){var o=/^hook:/;e.prototype.$on=function(e,t){var r=this;var i=this;if(Array.isArray(e)){for(var n=0,a=e.length;n<a;n++){r.$on(e[n],t)}}else{(i._events[e]||(i._events[e]=[])).push(t);if(o.test(e)){i._hasHookEvent=true}}return i};e.prototype.$once=function(e,t){var r=this;function i(){r.$off(e,i);t.apply(r,arguments)}i.fn=t;r.$on(e,i);return r};e.prototype.$off=function(e,t){var r=this;var i=this;if(!arguments.length){i._events=Object.create(null);return i}if(Array.isArray(e)){for(var n=0,a=e.length;n<a;n++){r.$off(e[n],t)}return i}var o=i._events[e];if(!o){return i}if(!t){i._events[e]=null;return i}if(t){var s;var l=o.length;while(l--){s=o[l];if(s===t||s.fn===t){o.splice(l,1);break}}}return i};e.prototype.$emit=function(t){var r=this;var e=r._events[t];if(e){e=e.length>1?C(e):e;
1var i=C(arguments,1);for(var n=0,a=e.length;n<a;n++){try{e[n].apply(r,i)}catch(e){Xe(e,r,'event handler for "'+t+'"')}}}return r}}function Pt(e,t){var r={};if(!e){return r}for(var i=0,n=e.length;i<n;i++){var a=e[i];var o=a.data;if(o&&o.attrs&&o.attrs.slot){delete o.attrs.slot}if((a.context===t||a.fnContext===t)&&o&&o.slot!=null){var s=o.slot;var l=r[s]||(r[s]=[]);if(a.tag==="template"){l.push.apply(l,a.children||[])}else{l.push(a)}}else{(r.default||(r.default=[])).push(a)}}for(var c in r){if(r[c].every(Nt)){delete r[c]}}return r}function Nt(e){return e.isComment&&!e.asyncFactory||e.text===" "}function Mt(e,t){t=t||{};for(var r=0;r<e.length;r++){if(Array.isArray(e[r])){Mt(e[r],t)}else{t[e[r].key]=e[r].fn}}return t}var Bt=null;function jt(e){var t=e.$options;var r=t.parent;if(r&&!t.abstract){while(r.$options.abstract&&r.$parent){r=r.$parent}r.$children.push(e)}e.$parent=r;e.$root=r?r.$root:e;e.$children=[];e.$refs={};e._watcher=null;e._inactive=null;e._directInactive=false;e._isMounted=false;e._isDestroyed=false;e._isBeingDestroyed=false}function $t(e){e.prototype._update=function(e,t){var r=this;if(r._isMounted){Qt(r,"beforeUpdate")}var i=r.$el;var n=r._vnode;var a=Bt;Bt=r;r._vnode=e;if(!n){r.$el=r.__patch__(r.$el,e,t,false,r.$options._parentElm,r.$options._refElm);r.$options._parentElm=r.$options._refElm=null}else{r.$el=r.__patch__(n,e)}Bt=a;if(i){i.__vue__=null}if(r.$el){r.$el.__vue__=r}if(r.$vnode&&r.$parent&&r.$vnode===r.$parent._vnode){r.$parent.$el=r.$el}};e.prototype.$forceUpdate=function(){var e=this;if(e._watcher){e._watcher.update()}};e.prototype.$destroy=function(){var e=this;if(e._isBeingDestroyed){return}Qt(e,"beforeDestroy");e._isBeingDestroyed=true;var t=e.$parent;if(t&&!t._isBeingDestroyed&&!e.$options.abstract){p(t.$children,e)}if(e._watcher){e._watcher.teardown()}var r=e._watchers.length;while(r--){e._watchers[r].teardown()}if(e._data.__ob__){e._data.__ob__.vmCount--}e._isDestroyed=true;e.__patch__(e._vnode,null);Qt(e,"destroyed");e.$off();if(e.$el){e.$el.__vue__=null}if(e.$vnode){e.$vnode.parent=null}}}function zt(e,t,r){e.$el=t;if(!e.$options.render){e.$options.render=ye}Qt(e,"beforeMount");var i;{i=function(){e._update(e._render(),r)}}new sr(e,i,k,null,true);r=false;if(e.$vnode==null){e._isMounted=true;Qt(e,"mounted")}return e}function Wt(e,t,r,i,n){var a=!!(n||e.$options._renderChildren||i.data.scopedSlots||e.$scopedSlots!==f);e.$options._parentVnode=i;e.$vnode=i;if(e._vnode){e._vnode.parent=i}e.$options._renderChildren=n;e.$attrs=i.data&&i.data.attrs||f;e.$listeners=r||f;if(t&&e.$options.props){ke.shouldConvert=false;var o=e._props;var s=e.$options._propKeys||[];for(var l=0;l<s.length;l++){var c=s[l];o[c]=Qe(c,e.$options.props,t,e)}ke.shouldConvert=true;e.$options.propsData=t}if(r){var u=e.$options._parentListeners;e.$options._parentListeners=r;Ut(e,r,u)}if(a){e.$slots=Pt(n,i.context);e.$forceUpdate()}}function Ht(e){while(e&&(e=e.$parent)){if(e._inactive){return true}}return false}function Gt(e,t){if(t){e._directInactive=false;if(Ht(e)){return}}else if(e._directInactive){return}if(e._inactive||e._inactive===null){e._inactive=false;for(var r=0;r<e.$children.length;r++){Gt(e.$children[r])}Qt(e,"activated")}}function Vt(e,t){if(t){e._directInactive=true;if(Ht(e)){return}}if(!e._inactive){e._inactive=true;for(var r=0;r<e.$children.length;r++){Vt(e.$children[r])}Qt(e,"deactivated")}}function Qt(t,r){var e=t.$options[r];if(e){for(var i=0,n=e.length;i<n;i++){try{e[i].call(t)}catch(e){Xe(e,t,r+" hook")}}}if(t._hasHookEvent){t.$emit("hook:"+r)}}var qt=[];var Kt=[];var Yt={};var Xt=false;var Zt=false;var Jt=0;function er(){Jt=qt.length=Kt.length=0;Yt={};Xt=Zt=false}function tr(){Zt=true;var e,t;qt.sort(function(e,t){return e.id-t.id});for(Jt=0;Jt<qt.length;Jt++){e=qt[Jt];t=e.id;Yt[t]=null;e.run()}var r=Kt.slice();var i=qt.slice();er();nr(r);rr(i);if(se&&j.devtools){se.emit("flush")}}function rr(e){var t=e.length;while(t--){var r=e[t];var i=r.vm;if(i._watcher===r&&i._isMounted){Qt(i,"updated")}}}function ir(e){e._inactive=false;Kt.push(e)}function nr(e){for(var t=0;t<e.length;t++){e[t]._inactive=true;Gt(e[t],true)}}function ar(e){var t=e.id;if(Yt[t]==null){Yt[t]=true;if(!Zt){qt.push(e)}else{var r=qt.length-1;while(r>Jt&&qt[r].id>e.id){r--}qt.splice(r+1,0,e)}if(!Xt){Xt=true;ut(tr)}}}var or=0;var sr=function e(t,r,i,n,a){this.vm=t;if(a){t._watcher=this}t._watchers.push(this);if(n){this.deep=!!n.deep;this.user=!!n.user;this.lazy=!!n.lazy;this.sync=!!n.sync}else{this.deep=this.user=this.lazy=this.sync=false}this.cb=i;this.id=++or;this.active=true;this.dirty=this.lazy;this.deps=[];this.newDeps=[];this.depIds=new ue;this.newDepIds=new ue;this.expression="";if(typeof r==="function"){this.getter=r}else{this.getter=H(r);if(!this.getter){this.getter=function(){}}}this.value=this.lazy?undefined:this.get()};sr.prototype.get=function e(){ve(this);var t;var r=this.vm;try{t=this.getter.call(r,r)}catch(e){if(this.user){Xe(e,r,'getter for watcher "'+this.expression+'"')}else{throw e}}finally{if(this.deep){dt(t)}me();this.cleanupDeps()}return t};sr.prototype.addDep=function e(t){var r=t.id;if(!this.newDepIds.has(r)){this.newDepIds.add(r);this.newDeps.push(t);if(!this.depIds.has(r)){t.addSub(this)}}};sr.prototype.cleanupDeps=function e(){var t=this;var r=this.deps.length;while(r--){var i=t.deps[r];if(!t.newDepIds.has(i.id)){i.removeSub(t)}}var n=this.depIds;this.depIds=this.newDepIds;this.newDepIds=n;this.newDepIds.clear();n=this.deps;this.deps=this.newDeps;this.newDeps=n;this.newDeps.length=0};sr.prototype.update=function e(){if(this.lazy){this.dirty=true}else if(this.sync){this.run()}else{ar(this)}};sr.prototype.run=function e(){if(this.active){var t=this.get();if(t!==this.value||N(t)||this.deep){var r=this.value;this.value=t;if(this.user){try{this.cb.call(this.vm,t,r)}catch(e){Xe(e,this.vm,'callback for watcher "'+this.expression+'"')}}else{this.cb.call(this.vm,t,r)}}}};sr.prototype.evaluate=function e(){this.value=this.get();this.dirty=false};
1sr.prototype.depend=function e(){var t=this;var r=this.deps.length;while(r--){t.deps[r].depend()}};sr.prototype.teardown=function e(){var t=this;if(this.active){if(!this.vm._isBeingDestroyed){p(this.vm._watchers,this)}var r=this.deps.length;while(r--){t.deps[r].removeSub(t)}this.active=false}};var lr={enumerable:true,configurable:true,get:k,set:k};function cr(e,r,i){lr.get=function e(){return this[r][i]};lr.set=function e(t){this[r][i]=t};Object.defineProperty(e,i,lr)}function ur(e){e._watchers=[];var t=e.$options;if(t.props){fr(e,t.props)}if(t.methods){_r(e,t.methods)}if(t.data){dr(e)}else{Oe(e._data={},true)}if(t.computed){vr(e,t.computed)}if(t.watch&&t.watch!==re){yr(e,t.watch)}}function fr(r,i){var n=r.$options.propsData||{};var a=r._props={};var o=r.$options._propKeys=[];var e=!r.$parent;ke.shouldConvert=e;var t=function(e){o.push(e);var t=Qe(e,i,n,r);{Te(a,e,t)}if(!(e in r)){cr(r,"_props",e)}};for(var s in i)t(s);ke.shouldConvert=true}function dr(e){var t=e.$options.data;t=e._data=typeof t==="function"?pr(t,e):t||{};if(!l(t)){t={}}var r=Object.keys(t);var i=e.$options.props;var n=e.$options.methods;var a=r.length;while(a--){var o=r[a];if(i&&h(i,o)){}else if(!$(o)){cr(e,"_data",o)}}Oe(t,true)}function pr(e,t){try{return e.call(t,t)}catch(e){Xe(e,t,"data()");return{}}}var hr={lazy:true};function vr(e,t){var r=e._computedWatchers=Object.create(null);var i=oe();for(var n in t){var a=t[n];var o=typeof a==="function"?a:a.get;if(!i){r[n]=new sr(e,o||k,k,hr)}if(!(n in e)){mr(e,n,a)}else{}}}function mr(e,t,r){var i=!oe();if(typeof r==="function"){lr.get=i?gr(t):r;lr.set=k}else{lr.get=r.get?i&&r.cache!==false?gr(t):r.get:k;lr.set=r.set?r.set:k}Object.defineProperty(e,t,lr)}function gr(r){return function e(){var t=this._computedWatchers&&this._computedWatchers[r];if(t){if(t.dirty){t.evaluate()}if(pe.target){t.depend()}return t.value}}}function _r(e,t){var r=e.$options.props;for(var i in t){e[i]=t[i]==null?k:A(t[i],e)}}function yr(e,t){for(var r in t){var i=t[r];if(Array.isArray(i)){for(var n=0;n<i.length;n++){br(e,r,i[n])}}else{br(e,r,i)}}}function br(e,t,r,i){if(l(r)){i=r;r=r.handler}if(typeof r==="string"){r=e[r]}return e.$watch(t,r,i)}function wr(e){var t={};t.get=function(){return this._data};var r={};r.get=function(){return this._props};Object.defineProperty(e.prototype,"$data",t);Object.defineProperty(e.prototype,"$props",r);e.prototype.$set=Re;e.prototype.$delete=De;e.prototype.$watch=function(e,t,r){var i=this;if(l(t)){return br(i,e,t,r)}r=r||{};r.user=true;var n=new sr(i,e,t,r);if(r.immediate){t.call(i,n.value)}return function e(){n.teardown()}}}function Ar(e){var t=e.$options.provide;if(t){e._provided=typeof t==="function"?t.call(e):t}}function Cr(t){var r=Er(t.$options.inject,t);if(r){ke.shouldConvert=false;Object.keys(r).forEach(function(e){{Te(t,e,r[e])}});ke.shouldConvert=true}}function Er(t,e){if(t){var r=Object.create(null);var i=ce?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):Object.keys(t);for(var n=0;n<i.length;n++){var a=i[n];var o=t[a].from;var s=e;while(s){if(s._provided&&o in s._provided){r[a]=s._provided[o];break}s=s.$parent}if(!s){if("default"in t[a]){var l=t[a].default;r[a]=typeof l==="function"?l.call(e):l}else{}}}return r}}function Sr(e,t){var r,i,n,a,o;if(Array.isArray(e)||typeof e==="string"){r=new Array(e.length);for(i=0,n=e.length;i<n;i++){r[i]=t(e[i],i)}}else if(typeof e==="number"){r=new Array(e);for(i=0;i<e;i++){r[i]=t(i+1,i)}}else if(N(e)){a=Object.keys(e);r=new Array(a.length);for(i=0,n=a.length;i<n;i++){o=a[i];r[i]=t(e[o],o,i)}}if(P(r)){r._isVList=true}return r}function kr(e,t,r,i){var n=this.$scopedSlots[e];var a;if(n){r=r||{};if(i){r=E(E({},i),r)}a=n(r)||t}else{var o=this.$slots[e];if(o){o._rendered=true}a=o||t}var s=r&&r.slot;if(s){return this.$createElement("template",{slot:s},a)}else{return a}}function Fr(e){return Ve(this.$options,"filters",e,true)||I}function Ir(e,t,r,i){var n=j.keyCodes[t]||r;if(n){if(Array.isArray(n)){return n.indexOf(e)===-1}else{return n!==e}}else if(i){return w(i)!==t}}function xr(i,n,a,o,s){if(a){if(!N(a)){}else{if(Array.isArray(a)){a=S(a)}var l;var e=function(t){if(t==="class"||t==="style"||c(t)){l=i}else{var e=i.attrs&&i.attrs.type;l=o||j.mustUseProp(n,e,t)?i.domProps||(i.domProps={}):i.attrs||(i.attrs={})}if(!(t in l)){l[t]=a[t];if(s){var r=i.on||(i.on={});r["update:"+t]=function(e){a[t]=e}}}};for(var t in a)e(t)}}return i}function Or(e,t){var r=this._staticTrees||(this._staticTrees=[]);var i=r[e];if(i&&!t){return Array.isArray(i)?Ae(i):we(i)}i=r[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this);Rr(i,"__static__"+e,false);return i}function Tr(e,t,r){Rr(e,"__once__"+t+(r?"_"+r:""),true);return e}function Rr(e,t,r){if(Array.isArray(e)){for(var i=0;i<e.length;i++){if(e[i]&&typeof e[i]!=="string"){Dr(e[i],t+"_"+i,r)}}}else{Dr(e,t,r)}}function Dr(e,t,r){e.isStatic=true;e.key=t;e.isOnce=r}function Ur(e,t){if(t){if(!l(t)){}else{var r=e.on=e.on?E({},e.on):{};for(var i in t){var n=r[i];var a=t[i];r[i]=n?[].concat(n,a):a}}}return e}function Lr(e){e._o=Tr;e._n=M;e._s=s;e._l=Sr;e._t=kr;e._q=x;e._i=T;e._m=Or;e._f=Fr;e._k=Ir;e._b=xr;e._v=be;e._e=ye;e._u=Mt;e._g=Ur}function Pr(e,t,r,a,i){var o=i.options;this.data=e;this.props=t;this.children=r;this.parent=a;this.listeners=e.on||f;this.injections=Er(o.inject,a);this.slots=function(){return Pt(r,a)};var s=Object.create(a);var n=O(o._compiled);var l=!n;if(n){this.$options=o;this.$slots=this.slots();this.$scopedSlots=e.scopedSlots||f}if(o._scopeId){this._c=function(e,t,r,i){var n=qr(s,e,t,r,i,l);if(n){n.fnScopeId=o._scopeId;n.fnContext=a}return n}}else{this._c=function(e,t,r,i){return qr(s,e,t,r,i,l)}}}Lr(Pr.prototype);function Nr(e,t,r,i,n){var a=e.options;var o={};var s=a.props;if(P(s)){for(var l in s){o[l]=Qe(l,s,t||f)}}else{if(P(r.attrs)){Mr(o,r.attrs)}if(P(r.props)){Mr(o,r.props)}}var c=new Pr(r,o,n,i,e);var u=a.render.call(null,c._c,c);
1if(u instanceof ge){u.fnContext=i;u.fnOptions=a;if(r.slot){(u.data||(u.data={})).slot=r.slot}}return u}function Mr(e,t){for(var r in t){e[_(r)]=t[r]}}var Br={init:function e(t,r,i,n){if(!t.componentInstance||t.componentInstance._isDestroyed){var a=t.componentInstance=zr(t,Bt,i,n);a.$mount(r?t.elm:undefined,r)}else if(t.data.keepAlive){var o=t;Br.prepatch(o,o)}},prepatch:function e(t,r){var i=r.componentOptions;var n=r.componentInstance=t.componentInstance;Wt(n,i.propsData,i.listeners,r,i.children)},insert:function e(t){var r=t.context;var i=t.componentInstance;if(!i._isMounted){i._isMounted=true;Qt(i,"mounted")}if(t.data.keepAlive){if(r._isMounted){ir(i)}else{Gt(i,true)}}},destroy:function e(t){var r=t.componentInstance;if(!r._isDestroyed){if(!t.data.keepAlive){r.$destroy()}else{Vt(r,true)}}}};var jr=Object.keys(Br);function $r(e,t,r,i,n){if(L(e)){return}var a=r.$options._base;if(N(e)){e=a.extend(e)}if(typeof e!=="function"){return}var o;if(L(e.cid)){o=e;e=Ft(o,a,r);if(e===undefined){return kt(o,t,r,i,n)}}t=t||{};ri(e);if(P(t.model)){Gr(e.options,t)}var s=yt(t,e,n);if(O(e.options.functional)){return Nr(e,s,t,r,i)}var l=t.on;t.on=t.nativeOn;if(O(e.options.abstract)){var c=t.slot;t={};if(c){t.slot=c}}Wr(t);var u=e.options.name||n;var f=new ge("vue-component-"+e.cid+(u?"-"+u:""),t,undefined,undefined,undefined,r,{Ctor:e,propsData:s,listeners:l,tag:n,children:i},o);return f}function zr(e,t,r,i){var n={_isComponent:true,parent:t,_parentVnode:e,_parentElm:r||null,_refElm:i||null};var a=e.data.inlineTemplate;if(P(a)){n.render=a.render;n.staticRenderFns=a.staticRenderFns}return new e.componentOptions.Ctor(n)}function Wr(e){if(!e.hook){e.hook={}}for(var t=0;t<jr.length;t++){var r=jr[t];var i=e.hook[r];var n=Br[r];e.hook[r]=i?Hr(n,i):n}}function Hr(n,a){return function(e,t,r,i){n(e,t,r,i);a(e,t,r,i)}}function Gr(e,t){var r=e.model&&e.model.prop||"value";var i=e.model&&e.model.event||"input";(t.props||(t.props={}))[r]=t.model.value;var n=t.on||(t.on={});if(P(n[i])){n[i]=[t.model.callback].concat(n[i])}else{n[i]=t.model.callback}}var Vr=1;var Qr=2;function qr(e,t,r,i,n,a){if(Array.isArray(r)||g(r)){n=i;i=r;r=undefined}if(O(a)){n=Qr}return Kr(e,t,r,i,n)}function Kr(e,t,r,i,n){if(P(r)&&P(r.__ob__)){return ye()}if(P(r)&&P(r.is)){t=r.is}if(!t){return ye()}if(Array.isArray(i)&&typeof i[0]==="function"){r=r||{};r.scopedSlots={default:i[0]};i.length=0}if(n===Qr){i=At(i)}else if(n===Vr){i=wt(i)}var a,o;if(typeof t==="string"){var s;o=e.$vnode&&e.$vnode.ns||j.getTagNamespace(t);if(j.isReservedTag(t)){a=new ge(j.parsePlatformTagName(t),r,i,undefined,undefined,e)}else if(P(s=Ve(e.$options,"components",t))){a=$r(s,r,e,i,t)}else{a=new ge(t,r,i,undefined,undefined,e)}}else{a=$r(t,r,e,i)}if(P(a)){if(o){Yr(a,o)}return a}else{return ye()}}function Yr(e,t,r){e.ns=t;if(e.tag==="foreignObject"){t=undefined;r=true}if(P(e.children)){for(var i=0,n=e.children.length;i<n;i++){var a=e.children[i];if(P(a.tag)&&(L(a.ns)||O(r))){Yr(a,t,r)}}}}function Xr(n){n._vnode=null;n._staticTrees=null;var e=n.$options;var t=n.$vnode=e._parentVnode;var r=t&&t.context;n.$slots=Pt(e._renderChildren,r);n.$scopedSlots=f;n._c=function(e,t,r,i){return qr(n,e,t,r,i,false)};n.$createElement=function(e,t,r,i){return qr(n,e,t,r,i,true)};var i=t&&t.data;{Te(n,"$attrs",i&&i.attrs||f,null,true);Te(n,"$listeners",e._parentListeners||f,null,true)}}function Zr(e){Lr(e.prototype);e.prototype.$nextTick=function(e){return ut(e,this)};e.prototype._render=function(){var t=this;var e=t.$options;var r=e.render;var i=e._parentVnode;if(t._isMounted){for(var n in t.$slots){var a=t.$slots[n];if(a._rendered||a[0]&&a[0].elm){t.$slots[n]=Ae(a,true)}}}t.$scopedSlots=i&&i.data.scopedSlots||f;t.$vnode=i;var o;try{o=r.call(t._renderProxy,t.$createElement)}catch(e){Xe(e,t,"render");{o=t._vnode}}if(!(o instanceof ge)){o=ye()}o.parent=i;return o}}var Jr=0;function ei(e){e.prototype._init=function(e){var t=this;t._uid=Jr++;t._isVue=true;if(e&&e._isComponent){ti(t,e)}else{t.$options=Ge(ri(t.constructor),e||{},t)}{t._renderProxy=t}t._self=t;jt(t);Ot(t);Xr(t);Qt(t,"beforeCreate");Cr(t);ur(t);Ar(t);Qt(t,"created");if(t.$options.el){t.$mount(t.$options.el)}}}function ti(e,t){var r=e.$options=Object.create(e.constructor.options);var i=t._parentVnode;r.parent=t.parent;r._parentVnode=i;r._parentElm=t._parentElm;r._refElm=t._refElm;var n=i.componentOptions;r.propsData=n.propsData;r._parentListeners=n.listeners;r._renderChildren=n.children;
1r._componentTag=n.tag;if(t.render){r.render=t.render;r.staticRenderFns=t.staticRenderFns}}function ri(e){var t=e.options;if(e.super){var r=ri(e.super);var i=e.superOptions;if(r!==i){e.superOptions=r;var n=ii(e);if(n){E(e.extendOptions,n)}t=e.options=Ge(r,e.extendOptions);if(t.name){t.components[t.name]=e}}}return t}function ii(e){var t;var r=e.options;var i=e.extendOptions;var n=e.sealedOptions;for(var a in r){if(r[a]!==n[a]){if(!t){t={}}t[a]=ni(r[a],i[a],n[a])}}return t}function ni(e,t,r){if(Array.isArray(e)){var i=[];r=Array.isArray(r)?r:[r];t=Array.isArray(t)?t:[t];for(var n=0;n<e.length;n++){if(t.indexOf(e[n])>=0||r.indexOf(e[n])<0){i.push(e[n])}}return i}else{return e}}function ai(e){this._init(e)}ei(ai);wr(ai);Lt(ai);$t(ai);Zr(ai);function oi(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1){return this}var r=C(arguments,1);r.unshift(this);if(typeof e.install==="function"){e.install.apply(e,r)}else if(typeof e==="function"){e.apply(null,r)}t.push(e);return this}}function si(e){e.mixin=function(e){this.options=Ge(this.options,e);return this}}function li(e){e.cid=0;var o=1;e.extend=function(e){e=e||{};var t=this;var r=t.cid;var i=e._Ctor||(e._Ctor={});if(i[r]){return i[r]}var n=e.name||t.options.name;var a=function e(t){this._init(t)};a.prototype=Object.create(t.prototype);a.prototype.constructor=a;a.cid=o++;a.options=Ge(t.options,e);a["super"]=t;if(a.options.props){ci(a)}if(a.options.computed){ui(a)}a.extend=t.extend;a.mixin=t.mixin;a.use=t.use;D.forEach(function(e){a[e]=t[e]});if(n){a.options.components[n]=a}a.superOptions=t.options;a.extendOptions=e;a.sealedOptions=E({},a.options);i[r]=a;return a}}function ci(e){var t=e.options.props;for(var r in t){cr(e.prototype,"_props",r)}}function ui(e){var t=e.options.computed;for(var r in t){mr(e.prototype,r,t[r])}}function fi(e){D.forEach(function(r){e[r]=function(e,t){if(!t){return this.options[r+"s"][e]}else{if(r==="component"&&l(t)){t.name=t.name||e;t=this.options._base.extend(t)}if(r==="directive"&&typeof t==="function"){t={bind:t,update:t}}this.options[r+"s"][e]=t;return t}}})}function di(e){return e&&(e.Ctor.options.name||e.tag)}function pi(e,t){if(Array.isArray(e)){return e.indexOf(t)>-1}else if(typeof e==="string"){return e.split(",").indexOf(t)>-1}else if(n(e)){return e.test(t)}return false}function hi(e,t){var r=e.cache;var i=e.keys;var n=e._vnode;for(var a in r){var o=r[a];if(o){var s=di(o.componentOptions);if(s&&!t(s)){vi(r,a,i,n)}}}}function vi(e,t,r,i){var n=e[t];if(n&&(!i||n.tag!==i.tag)){n.componentInstance.$destroy()}e[t]=null;p(r,t)}var mi=[String,RegExp,Array];var gi={name:"keep-alive",abstract:true,props:{include:mi,exclude:mi,max:[String,Number]},created:function e(){this.cache=Object.create(null);this.keys=[]},destroyed:function e(){var t=this;for(var r in t.cache){vi(t.cache,r,t.keys)}},watch:{include:function e(t){hi(this,function(e){return pi(t,e)})},exclude:function e(t){hi(this,function(e){return!pi(t,e)})}},render:function e(){var t=this.$slots.default;var r=xt(t);var i=r&&r.componentOptions;if(i){var n=di(i);var a=this;var o=a.include;var s=a.exclude;if(o&&(!n||!pi(o,n))||s&&n&&pi(s,n)){return r}var l=this;var c=l.cache;var u=l.keys;var f=r.key==null?i.Ctor.cid+(i.tag?"::"+i.tag:""):r.key;if(c[f]){r.componentInstance=c[f].componentInstance;p(u,f);u.push(f)}else{c[f]=r;u.push(f);if(this.max&&u.length>parseInt(this.max)){vi(c,u[0],u,this._vnode)}}r.data.keepAlive=true}return r||t&&t[0]}};var _i={KeepAlive:gi};function yi(t){var e={};e.get=function(){return j};Object.defineProperty(t,"config",e);t.util={warn:fe,extend:E,mergeOptions:Ge,defineReactive:Te};t.set=Re;t.delete=De;t.nextTick=ut;t.options=Object.create(null);D.forEach(function(e){t.options[e+"s"]=Object.create(null)});t.options._base=t;E(t.options.components,_i);oi(t);si(t);li(t);fi(t)}yi(ai);Object.defineProperty(ai.prototype,"$isServer",{get:oe});Object.defineProperty(ai.prototype,"$ssrContext",{get:function e(){return this.$vnode&&this.$vnode.ssrContext}});ai.version="2.5.13";var bi=d("style,class");var wi=d("input,textarea,option,select,progress");var Ai=function(e,t,r){return r==="value"&&wi(e)&&t!=="button"||r==="selected"&&e==="option"||r==="checked"&&e==="input"||r==="muted"&&e==="video"};var Ci=d("contenteditable,draggable,spellcheck");var Ei=d("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,"+"default,defaultchecked,defaultmuted,defaultselected,defer,disabled,"+"enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,"+"muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,"+"required,reversed,scoped,seamless,selected,sortable,translate,"+"truespeed,typemustmatch,visible");var Si="http://www.w3.org/1999/xlink";var ki=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"};var Fi=function(e){return ki(e)?e.slice(6,e.length):""};var Ii=function(e){return e==null||e===false};function xi(e){var t=e.data;var r=e;var i=e;while(P(i.componentInstance)){i=i.componentInstance._vnode;if(i&&i.data){t=Oi(i.data,t)}}while(P(r=r.parent)){if(r&&r.data){t=Oi(t,r.data)}}return Ti(t.staticClass,t.class)}function Oi(e,t){return{staticClass:Ri(e.staticClass,t.staticClass),class:P(e.class)?[e.class,t.class]:t.class}}function Ti(e,t){if(P(e)||P(t)){return Ri(e,Di(t))}return""}function Ri(e,t){return e?t?e+" "+t:e:t||""}function Di(e){if(Array.isArray(e)){return Ui(e)}if(N(e)){return Li(e)}if(typeof e==="string"){return e}return""}function Ui(e){var t="";var r;for(var i=0,n=e.length;i<n;i++){if(P(r=Di(e[i]))&&r!==""){if(t){t+=" "}t+=r}}return t}function Li(e){var t="";for(var r in e){if(e[r]){if(t){t+=" "}t+=r}}return t}var Pi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"};var Ni=d("html,body,base,head,link,meta,style,title,"+"address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,"+"div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,"+"a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,"+"s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,"+"embed,object,param,source,canvas,script,noscript,del,ins,"+"caption,col,colgroup,table,thead,tbody,td,th,tr,"+"button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,"+"output,progress,select,textarea,"+"details,dialog,menu,menuitem,summary,"+"content,element,shadow,template,blockquote,iframe,tfoot");var Mi=d("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,"+"foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,"+"polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",true);var Bi=function(e){return Ni(e)||Mi(e)};function ji(e){if(Mi(e)){return"svg"}if(e==="math"){return"math"}}var $i=Object.create(null);function zi(e){if(!V){return true}if(Bi(e)){return false}e=e.toLowerCase();if($i[e]!=null){return $i[e]}var t=document.createElement(e);
1if(e.indexOf("-")>-1){return $i[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement}else{return $i[e]=/HTMLUnknownElement/.test(t.toString())}}var Wi=d("text,number,password,search,email,tel,url");function Hi(e){if(typeof e==="string"){var t=document.querySelector(e);if(!t){return document.createElement("div")}return t}else{return e}}function Gi(e,t){var r=document.createElement(e);if(e!=="select"){return r}if(t.data&&t.data.attrs&&t.data.attrs.multiple!==undefined){r.setAttribute("multiple","multiple")}return r}function Vi(e,t){return document.createElementNS(Pi[e],t)}function Qi(e){return document.createTextNode(e)}function qi(e){return document.createComment(e)}function Ki(e,t,r){e.insertBefore(t,r)}function Yi(e,t){e.removeChild(t)}function Xi(e,t){e.appendChild(t)}function Zi(e){return e.parentNode}function Ji(e){return e.nextSibling}function en(e){return e.tagName}function tn(e,t){e.textContent=t}function rn(e,t,r){e.setAttribute(t,r)}var nn=Object.freeze({createElement:Gi,createElementNS:Vi,createTextNode:Qi,createComment:qi,insertBefore:Ki,removeChild:Yi,appendChild:Xi,parentNode:Zi,nextSibling:Ji,tagName:en,setTextContent:tn,setAttribute:rn});var an={create:function e(t,r){on(r)},update:function e(t,r){if(t.data.ref!==r.data.ref){on(t,true);on(r)}},destroy:function e(t){on(t,true)}};function on(e,t){var r=e.data.ref;if(!r){return}var i=e.context;var n=e.componentInstance||e.elm;var a=i.$refs;if(t){if(Array.isArray(a[r])){p(a[r],n)}else if(a[r]===n){a[r]=undefined}}else{if(e.data.refInFor){if(!Array.isArray(a[r])){a[r]=[n]}else if(a[r].indexOf(n)<0){a[r].push(n)}}else{a[r]=n}}}var sn=new ge("",{},[]);var ln=["create","activate","update","remove","destroy"];function cn(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&P(e.data)===P(t.data)&&un(e,t)||O(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&L(t.asyncFactory.error))}function un(e,t){if(e.tag!=="input"){return true}var r;var i=P(r=e.data)&&P(r=r.attrs)&&r.type;var n=P(r=t.data)&&P(r=r.attrs)&&r.type;return i===n||Wi(i)&&Wi(n)}function fn(e,t,r){var i,n;var a={};for(i=t;i<=r;++i){n=e[i].key;if(P(n)){a[n]=i}}return a}function dn(e){var i,t;var _={};var r=e.modules;var y=e.nodeOps;for(i=0;i<ln.length;++i){_[ln[i]]=[];for(t=0;t<r.length;++t){if(P(r[t][ln[i]])){_[ln[i]].push(r[t][ln[i]])}}}function b(e){return new ge(y.tagName(e).toLowerCase(),{},[],undefined,e)}function n(e,t){function r(){if(--r.listeners===0){a(e)}}r.listeners=t;return r}function a(e){var t=y.parentNode(e);if(P(t)){y.removeChild(t,e)}}function w(e,t,r,i,n){e.isRootInsert=!n;if(l(e,t,r,i)){return}var a=e.data;var o=e.children;var s=e.tag;if(P(s)){e.elm=e.ns?y.createElementNS(e.ns,s):y.createElement(s,e);u(e);{h(e,o,t);if(P(a)){v(e,t)}c(r,e.elm,i)}}else if(O(e.isComment)){e.elm=y.createComment(e.text);c(r,e.elm,i)}else{e.elm=y.createTextNode(e.text);c(r,e.elm,i)}}function l(e,t,r,i){var n=e.data;if(P(n)){var a=P(e.componentInstance)&&n.keepAlive;if(P(n=n.hook)&&P(n=n.init)){n(e,false,r,i)}if(P(e.componentInstance)){p(e,t);if(O(a)){o(e,t,r,i)}return true}}}function p(e,t){if(P(e.data.pendingInsert)){t.push.apply(t,e.data.pendingInsert);e.data.pendingInsert=null}e.elm=e.componentInstance.$el;if(A(e)){v(e,t);u(e)}else{on(e);t.push(e)}}function o(e,t,r,i){var n;var a=e;while(a.componentInstance){a=a.componentInstance._vnode;if(P(n=a.data)&&P(n=n.transition)){for(n=0;n<_.activate.length;++n){_.activate[n](sn,a)}t.push(a);break}}c(r,e.elm,i)}function c(e,t,r){if(P(e)){if(P(r)){if(r.parentNode===e){y.insertBefore(e,t,r)}}else{y.appendChild(e,t)}}}function h(e,t,r){if(Array.isArray(t)){for(var i=0;i<t.length;++i){w(t[i],r,e.elm,null,true)}}else if(g(e.text)){y.appendChild(e.elm,y.createTextNode(String(e.text)))}}function A(e){while(e.componentInstance){e=e.componentInstance._vnode}return P(e.tag)}function v(e,t){for(var r=0;r<_.create.length;++r){_.create[r](sn,e)}i=e.data.hook;if(P(i)){if(P(i.create)){i.create(sn,e)}if(P(i.insert)){t.push(e)}}}function u(e){var t;if(P(t=e.fnScopeId)){y.setAttribute(e.elm,t,"")}else{var r=e;while(r){if(P(t=r.context)&&P(t=t.$options._scopeId)){y.setAttribute(e.elm,t,"")}r=r.parent}}if(P(t=Bt)&&t!==e.context&&t!==e.fnContext&&P(t=t.$options._scopeId)){y.setAttribute(e.elm,t,"")}}function C(e,t,r,i,n,a){for(;i<=n;++i){w(r[i],a,e,t)}}function E(e){var t,r;var i=e.data;
1if(P(i)){if(P(t=i.hook)&&P(t=t.destroy)){t(e)}for(t=0;t<_.destroy.length;++t){_.destroy[t](e)}}if(P(t=e.children)){for(r=0;r<e.children.length;++r){E(e.children[r])}}}function S(e,t,r,i){for(;r<=i;++r){var n=t[r];if(P(n)){if(P(n.tag)){s(n);E(n)}else{a(n.elm)}}}}function s(e,t){if(P(t)||P(e.data)){var r;var i=_.remove.length+1;if(P(t)){t.listeners+=i}else{t=n(e.elm,i)}if(P(r=e.componentInstance)&&P(r=r._vnode)&&P(r.data)){s(r,t)}for(r=0;r<_.remove.length;++r){_.remove[r](e,t)}if(P(r=e.data.hook)&&P(r=r.remove)){r(e,t)}else{t()}}else{a(e.elm)}}function f(e,t,r,i,n){var a=0;var o=0;var s=t.length-1;var l=t[0];var c=t[s];var u=r.length-1;var f=r[0];var d=r[u];var p,h,v,m;var g=!n;while(a<=s&&o<=u){if(L(l)){l=t[++a]}else if(L(c)){c=t[--s]}else if(cn(l,f)){F(l,f,i);l=t[++a];f=r[++o]}else if(cn(c,d)){F(c,d,i);c=t[--s];d=r[--u]}else if(cn(l,d)){F(l,d,i);g&&y.insertBefore(e,l.elm,y.nextSibling(c.elm));l=t[++a];d=r[--u]}else if(cn(c,f)){F(c,f,i);g&&y.insertBefore(e,c.elm,l.elm);c=t[--s];f=r[++o]}else{if(L(p)){p=fn(t,a,s)}h=P(f.key)?p[f.key]:k(f,t,a,s);if(L(h)){w(f,i,e,l.elm)}else{v=t[h];if(cn(v,f)){F(v,f,i);t[h]=undefined;g&&y.insertBefore(e,v.elm,l.elm)}else{w(f,i,e,l.elm)}}f=r[++o]}}if(a>s){m=L(r[u+1])?null:r[u+1].elm;C(e,m,r,o,u,i)}else if(o>u){S(e,t,a,s)}}function k(e,t,r,i){for(var n=r;n<i;n++){var a=t[n];if(P(a)&&cn(e,a)){return n}}}function F(e,t,r,i){if(e===t){return}var n=t.elm=e.elm;if(O(e.isAsyncPlaceholder)){if(P(t.asyncFactory.resolved)){x(e.elm,t,r)}else{t.isAsyncPlaceholder=true}return}if(O(t.isStatic)&&O(e.isStatic)&&t.key===e.key&&(O(t.isCloned)||O(t.isOnce))){t.componentInstance=e.componentInstance;return}var a;var o=t.data;if(P(o)&&P(a=o.hook)&&P(a=a.prepatch)){a(e,t)}var s=e.children;var l=t.children;if(P(o)&&A(t)){for(a=0;a<_.update.length;++a){_.update[a](e,t)}if(P(a=o.hook)&&P(a=a.update)){a(e,t)}}if(L(t.text)){if(P(s)&&P(l)){if(s!==l){f(n,s,l,r,i)}}else if(P(l)){if(P(e.text)){y.setTextContent(n,"")}C(n,null,l,0,l.length-1,r)}else if(P(s)){S(n,s,0,s.length-1)}else if(P(e.text)){y.setTextContent(n,"")}}else if(e.text!==t.text){y.setTextContent(n,t.text)}if(P(o)){if(P(a=o.hook)&&P(a=a.postpatch)){a(e,t)}}}function I(e,t,r){if(O(r)&&P(e.parent)){e.parent.data.pendingInsert=t}else{for(var i=0;i<t.length;++i){t[i].data.hook.insert(t[i])}}}var m=d("attrs,class,staticClass,staticStyle,key");function x(e,t,r,i){var n;var a=t.tag;var o=t.data;var s=t.children;i=i||o&&o.pre;t.elm=e;if(O(t.isComment)&&P(t.asyncFactory)){t.isAsyncPlaceholder=true;return true}if(P(o)){if(P(n=o.hook)&&P(n=n.init)){n(t,true)}if(P(n=t.componentInstance)){p(t,r);return true}}
1if(P(a)){if(P(s)){if(!e.hasChildNodes()){h(t,s,r)}else{if(P(n=o)&&P(n=n.domProps)&&P(n=n.innerHTML)){if(n!==e.innerHTML){return false}}else{var l=true;var c=e.firstChild;for(var u=0;u<s.length;u++){if(!c||!x(c,s[u],r,i)){l=false;break}c=c.nextSibling}if(!l||c){return false}}}}if(P(o)){var f=false;for(var d in o){if(!m(d)){f=true;v(t,r);break}}if(!f&&o["class"]){dt(o["class"])}}}else if(e.data!==t.text){e.data=t.text}return true}return function e(t,r,i,n,a,o){if(L(r)){if(P(t)){E(t)}return}var s=false;var l=[];if(L(t)){s=true;w(r,l,a,o)}else{var c=P(t.nodeType);if(!c&&cn(t,r)){F(t,r,l,n)}else{if(c){if(t.nodeType===1&&t.hasAttribute(R)){t.removeAttribute(R);i=true}if(O(i)){if(x(t,r,l)){I(r,l,true);return t}else{}}t=b(t)}var u=t.elm;var f=y.parentNode(u);w(r,l,u._leaveCb?null:f,y.nextSibling(u));if(P(r.parent)){var d=r.parent;var p=A(r);while(d){for(var h=0;h<_.destroy.length;++h){_.destroy[h](d)}d.elm=r.elm;if(p){for(var v=0;v<_.create.length;++v){_.create[v](sn,d)}var m=d.data.hook.insert;if(m.merged){for(var g=1;g<m.fns.length;g++){m.fns[g]()}}}else{on(d)}d=d.parent}}if(P(f)){S(f,[t],0,0)}else if(P(t.tag)){E(t)}}}I(r,l,s);return r.elm}}var pn={create:hn,update:hn,destroy:function e(t){hn(t,sn)}};function hn(e,t){if(e.data.directives||t.data.directives){vn(e,t)}}function vn(t,r){var e=t===sn;var i=r===sn;var n=gn(t.data.directives,t.context);var a=gn(r.data.directives,r.context);var o=[];var s=[];var l,c,u;for(l in a){c=n[l];u=a[l];if(!c){yn(u,"bind",r,t);if(u.def&&u.def.inserted){o.push(u)}}else{u.oldValue=c.value;yn(u,"update",r,t);if(u.def&&u.def.componentUpdated){s.push(u)}}}if(o.length){var f=function(){for(var e=0;e<o.length;e++){yn(o[e],"inserted",r,t)}};if(e){_t(r,"insert",f)}else{f()}}if(s.length){_t(r,"postpatch",function(){for(var e=0;e<s.length;e++){yn(s[e],"componentUpdated",r,t)}})}if(!e){for(l in n){if(!a[l]){yn(n[l],"unbind",t,t,i)}}}}var mn=Object.create(null);function gn(e,t){var r=Object.create(null);if(!e){return r}var i,n;for(i=0;i<e.length;i++){n=e[i];if(!n.modifiers){n.modifiers=mn}r[_n(n)]=n;n.def=Ve(t.$options,"directives",n.name,true)}return r}function _n(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function yn(t,r,i,e,n){var a=t.def&&t.def[r];if(a){try{a(i.elm,t,i,e,n)}catch(e){Xe(e,i.context,"directive "+t.name+" "+r+" hook")}}}var bn=[an,pn];function wn(e,t){var r=t.componentOptions;if(P(r)&&r.Ctor.options.inheritAttrs===false){return}if(L(e.data.attrs)&&L(t.data.attrs)){return}var i,n,a;var o=t.elm;var s=e.data.attrs||{};var l=t.data.attrs||{};if(P(l.__ob__)){l=t.data.attrs=E({},l)}for(i in l){n=l[i];a=s[i];if(a!==n){An(o,i,n)}}if((Y||Z)&&l.value!==s.value){An(o,"value",l.value)}for(i in s){if(L(l[i])){if(ki(i)){o.removeAttributeNS(Si,Fi(i))}else if(!Ci(i)){o.removeAttribute(i)}}}}function An(t,e,r){if(Ei(e)){if(Ii(r)){t.removeAttribute(e)}else{r=e==="allowfullscreen"&&t.tagName==="EMBED"?"true":e;t.setAttribute(e,r)}}else if(Ci(e)){t.setAttribute(e,Ii(r)||r==="false"?"false":"true")}else if(ki(e)){if(Ii(r)){t.removeAttributeNS(Si,Fi(e))}else{t.setAttributeNS(Si,e,r)}}else{if(Ii(r)){t.removeAttribute(e)}else{if(Y&&!X&&t.tagName==="TEXTAREA"&&e==="placeholder"&&!t.__ieph){var i=function(e){e.stopImmediatePropagation();t.removeEventListener("input",i)};t.addEventListener("input",i);t.__ieph=true}t.setAttribute(e,r)}}}var Cn={create:wn,update:wn};function En(e,t){var r=t.elm;var i=t.data;var n=e.data;if(L(i.staticClass)&&L(i.class)&&(L(n)||L(n.staticClass)&&L(n.class))){return}var a=xi(t);var o=r._transitionClasses;if(P(o)){a=Ri(a,Di(o))}if(a!==r._prevClass){r.setAttribute("class",a);r._prevClass=a}}var Sn={create:En,update:En};var kn="__r";var Fn="__c";function In(e){if(P(e[kn])){var t=Y?"change":"input";e[t]=[].concat(e[kn],e[t]||[]);delete e[kn]}if(P(e[Fn])){e.change=[].concat(e[Fn],e.change||[]);delete e[Fn]}}var xn;function On(r,i,n){var a=xn;return function e(){var t=r.apply(null,arguments);if(t!==null){Rn(i,e,n,a)}}}function Tn(e,t,r,i,n){t=ct(t);if(r){t=On(t,e,i)}xn.addEventListener(e,t,ie?{capture:i,passive:n}:i)}function Rn(e,t,r,i){(i||xn).removeEventListener(e,t._withTask||t,r)}function Dn(e,t){if(L(e.data.on)&&L(t.data.on)){return}var r=t.data.on||{};var i=e.data.on||{};xn=t.elm;In(r);gt(r,i,Tn,Rn,t.context);xn=undefined}var Un={create:Dn,update:Dn}
1;function Ln(e,t){if(L(e.data.domProps)&&L(t.data.domProps)){return}var r,i;var n=t.elm;var a=e.data.domProps||{};var o=t.data.domProps||{};if(P(o.__ob__)){o=t.data.domProps=E({},o)}for(r in a){if(L(o[r])){n[r]=""}}for(r in o){i=o[r];if(r==="textContent"||r==="innerHTML"){if(t.children){t.children.length=0}if(i===a[r]){continue}if(n.childNodes.length===1){n.removeChild(n.childNodes[0])}}if(r==="value"){n._value=i;var s=L(i)?"":String(i);if(Pn(n,s)){n.value=s}}else{n[r]=i}}}function Pn(e,t){return!e.composing&&(e.tagName==="OPTION"||Nn(e,t)||Mn(e,t))}function Nn(e,t){var r=true;try{r=document.activeElement!==e}catch(e){}return r&&e.value!==t}function Mn(e,t){var r=e.value;var i=e._vModifiers;if(P(i)){if(i.lazy){return false}if(i.number){return M(r)!==M(t)}if(i.trim){return r.trim()!==t.trim()}}return r!==t}var Bn={create:Ln,update:Ln};var jn=v(function(e){var r={};var t=/;(?![^(]*\))/g;var i=/:(.+)/;e.split(t).forEach(function(e){if(e){var t=e.split(i);t.length>1&&(r[t[0].trim()]=t[1].trim())}});return r});function $n(e){var t=zn(e.style);return e.staticStyle?E(e.staticStyle,t):t}function zn(e){if(Array.isArray(e)){return S(e)}if(typeof e==="string"){return jn(e)}return e}function Wn(e,t){var r={};var i;if(t){var n=e;while(n.componentInstance){n=n.componentInstance._vnode;if(n&&n.data&&(i=$n(n.data))){E(r,i)}}}if(i=$n(e.data)){E(r,i)}var a=e;while(a=a.parent){if(a.data&&(i=$n(a.data))){E(r,i)}}return r}var Hn=/^--/;var Gn=/\s*!important$/;var Vn=function(e,t,r){if(Hn.test(t)){e.style.setProperty(t,r)}else if(Gn.test(r)){e.style.setProperty(t,r.replace(Gn,""),"important")}else{var i=Kn(t);if(Array.isArray(r)){for(var n=0,a=r.length;n<a;n++){e.style[i]=r[n]}}else{e.style[i]=r}}};var Qn=["Webkit","Moz","ms"];var qn;var Kn=v(function(e){qn=qn||document.createElement("div").style;e=_(e);if(e!=="filter"&&e in qn){return e}var t=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0;r<Qn.length;r++){var i=Qn[r]+t;if(i in qn){return i}}});function Yn(e,t){var r=t.data;var i=e.data;if(L(r.staticStyle)&&L(r.style)&&L(i.staticStyle)&&L(i.style)){return}var n,a;var o=t.elm;var s=i.staticStyle;var l=i.normalizedStyle||i.style||{};var c=s||l;var u=zn(t.data.style)||{};t.data.normalizedStyle=P(u.__ob__)?E({},u):u;var f=Wn(t,true);for(a in c){if(L(f[a])){Vn(o,a,"")}}for(a in f){n=f[a];if(n!==c[a]){Vn(o,a,n==null?"":n)}}}var Xn={create:Yn,update:Yn};function Zn(t,e){if(!e||!(e=e.trim())){return}if(t.classList){if(e.indexOf(" ")>-1){e.split(/\s+/).forEach(function(e){return t.classList.add(e)})}else{t.classList.add(e)}}else{var r=" "+(t.getAttribute("class")||"")+" ";if(r.indexOf(" "+e+" ")<0){t.setAttribute("class",(r+e).trim())}}}function Jn(t,e){if(!e||!(e=e.trim())){return}if(t.classList){if(e.indexOf(" ")>-1){e.split(/\s+/).forEach(function(e){return t.classList.remove(e)})}else{t.classList.remove(e)}if(!t.classList.length){t.removeAttribute("class")}}else{var r=" "+(t.getAttribute("class")||"")+" ";var i=" "+e+" ";while(r.indexOf(i)>=0){r=r.replace(i," ")}r=r.trim();if(r){t.setAttribute("class",r)}else{t.removeAttribute("class")}}}function ea(e){if(!e){return}if(typeof e==="object"){var t={};if(e.css!==false){E(t,ta(e.name||"v"))}E(t,e);return t}else if(typeof e==="string"){return ta(e)}}var ta=v(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}});var ra=V&&!X;var ia="transition";var na="animation";var aa="transition";var oa="transitionend";var sa="animation";var la="animationend";if(ra){if(window.ontransitionend===undefined&&window.onwebkittransitionend!==undefined){aa="WebkitTransition";oa="webkitTransitionEnd"}if(window.onanimationend===undefined&&window.onwebkitanimationend!==undefined){sa="WebkitAnimation";la="webkitAnimationEnd"}}var ca=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ua(e){ca(function(){ca(e)})}function fa(e,t){var r=e._transitionClasses||(e._transitionClasses=[]);if(r.indexOf(t)<0){r.push(t);Zn(e,t)}}function da(e,t){if(e._transitionClasses){p(e._transitionClasses,t)}Jn(e,t)}function pa(t,e,r){var i=va(t,e);var n=i.type;var a=i.timeout;var o=i.propCount;if(!n){return r()}var s=n===ia?oa:la;var l=0;var c=function(){t.removeEventListener(s,u);r()};var u=function(e){if(e.target===t){if(++l>=o){c()}}};setTimeout(function(){if(l<o){c()}},a+1);t.addEventListener(s,u)}var ha=/\b(transform|all)(,|$)/;function va(e,t){var r=window.getComputedStyle(e);var i=r[aa+"Delay"].split(", ");var n=r[aa+"Duration"].split(", ");var a=ma(i,n);var o=r[sa+"Delay"].split(", ");var s=r[sa+"Duration"].split(", ");var l=ma(o,s);var c;var u=0;var f=0;if(t===ia){if(a>0){c=ia;u=a;f=n.length}}else if(t===na){if(l>0){c=na;u=l;f=s.length}}else{u=Math.max(a,l);c=u>0?a>l?ia:na:null;f=c?c===ia?n.length:s.length:0}var d=c===ia&&ha.test(r[aa+"Property"]);return{type:c,timeout:u,propCount:f,hasTransform:d}}function ma(r,e){while(r.length<e.length){r=r.concat(r)}return Math.max.apply(null,e.map(function(e,t){return ga(e)+ga(r[t])}))}function ga(e){return Number(e.slice(0,-1))*1e3}function _a(r,e){var i=r.elm;if(P(i._leaveCb)){i._leaveCb.cancelled=true;i._leaveCb()}var t=ea(r.data.transition);if(L(t)){return}if(P(i._enterCb)||i.nodeType!==1){return}var n=t.css;var a=t.type;var o=t.enterClass;var s=t.enterToClass;
1var l=t.enterActiveClass;var c=t.appearClass;var u=t.appearToClass;var f=t.appearActiveClass;var d=t.beforeEnter;var p=t.enter;var h=t.afterEnter;var v=t.enterCancelled;var m=t.beforeAppear;var g=t.appear;var _=t.afterAppear;var y=t.appearCancelled;var b=t.duration;var w=Bt;var A=Bt.$vnode;while(A&&A.parent){A=A.parent;w=A.context}var C=!w._isMounted||!r.isRootInsert;if(C&&!g&&g!==""){return}var E=C&&c?c:o;var S=C&&f?f:l;var k=C&&u?u:s;var F=C?m||d:d;var I=C?typeof g==="function"?g:p:p;var x=C?_||h:h;var O=C?y||v:v;var T=M(N(b)?b.enter:b);var R=n!==false&&!X;var D=wa(I);var U=i._enterCb=B(function(){if(R){da(i,k);da(i,S)}if(U.cancelled){if(R){da(i,E)}O&&O(i)}else{x&&x(i)}i._enterCb=null});if(!r.data.show){_t(r,"insert",function(){var e=i.parentNode;var t=e&&e._pending&&e._pending[r.key];if(t&&t.tag===r.tag&&t.elm._leaveCb){t.elm._leaveCb()}I&&I(i,U)})}F&&F(i);if(R){fa(i,E);fa(i,S);ua(function(){fa(i,k);da(i,E);if(!U.cancelled&&!D){if(ba(T)){setTimeout(U,T)}else{pa(i,a,U)}}})}if(r.data.show){e&&e();I&&I(i,U)}if(!R&&!D){U()}}function ya(e,t){var r=e.elm;if(P(r._enterCb)){r._enterCb.cancelled=true;r._enterCb()}var i=ea(e.data.transition);if(L(i)||r.nodeType!==1){return t()}if(P(r._leaveCb)){return}var n=i.css;var a=i.type;var o=i.leaveClass;var s=i.leaveToClass;var l=i.leaveActiveClass;var c=i.beforeLeave;var u=i.leave;var f=i.afterLeave;var d=i.leaveCancelled;var p=i.delayLeave;var h=i.duration;var v=n!==false&&!X;var m=wa(u);var g=M(N(h)?h.leave:h);var _=r._leaveCb=B(function(){if(r.parentNode&&r.parentNode._pending){r.parentNode._pending[e.key]=null}if(v){da(r,s);da(r,l)}if(_.cancelled){if(v){da(r,o)}d&&d(r)}else{t();f&&f(r)}r._leaveCb=null});if(p){p(y)}else{y()}function y(){if(_.cancelled){return}if(!e.data.show){(r.parentNode._pending||(r.parentNode._pending={}))[e.key]=e}c&&c(r);if(v){fa(r,o);fa(r,l);ua(function(){fa(r,s);da(r,o);if(!_.cancelled&&!m){if(ba(g)){setTimeout(_,g)}else{pa(r,a,_)}}})}u&&u(r,_);if(!v&&!m){_()}}}function ba(e){return typeof e==="number"&&!isNaN(e)}function wa(e){if(L(e)){return false}var t=e.fns;if(P(t)){return wa(Array.isArray(t)?t[0]:t)}else{return(e._length||e.length)>1}}function Aa(e,t){if(t.data.show!==true){_a(t)}}var Ca=V?{create:Aa,activate:Aa,remove:function e(t,r){if(t.data.show!==true){ya(t,r)}else{r()}}}:{};var Ea=[Cn,Sn,Un,Bn,Xn,Ca];var Sa=Ea.concat(bn);var ka=dn({nodeOps:nn,modules:Sa});if(X){document.addEventListener("selectionchange",function(){var e=document.activeElement;if(e&&e.vmodel){Ua(e,"input")}})}var Fa={inserted:function e(t,r,i,n){if(i.tag==="select"){if(n.elm&&!n.elm._vOptions){_t(i,"postpatch",function(){Fa.componentUpdated(t,r,i)})}else{Ia(t,r,i.context)}t._vOptions=[].map.call(t.options,Ta)}else if(i.tag==="textarea"||Wi(t.type)){t._vModifiers=r.modifiers;if(!r.modifiers.lazy){t.addEventListener("change",Da);if(!J){t.addEventListener("compositionstart",Ra);t.addEventListener("compositionend",Da)}if(X){t.vmodel=true}}}},componentUpdated:function e(t,r,i){if(i.tag==="select"){Ia(t,r,i.context);var n=t._vOptions;var a=t._vOptions=[].map.call(t.options,Ta);if(a.some(function(e,t){return!x(e,n[t])})){var o=t.multiple?r.value.some(function(e){return Oa(e,a)}):r.value!==r.oldValue&&Oa(r.value,a);if(o){Ua(t,"change")}}}}};function Ia(e,t,r){xa(e,t,r);if(Y||Z){setTimeout(function(){xa(e,t,r)},0)}}function xa(e,t,r){var i=t.value;var n=e.multiple;if(n&&!Array.isArray(i)){return}var a,o;for(var s=0,l=e.options.length;s<l;s++){o=e.options[s];if(n){a=T(i,Ta(o))>-1;if(o.selected!==a){o.selected=a}}else{if(x(Ta(o),i)){if(e.selectedIndex!==s){e.selectedIndex=s}return}}}if(!n){e.selectedIndex=-1}}function Oa(t,e){return e.every(function(e){return!x(e,t)})}function Ta(e){return"_value"in e?e._value:e.value}function Ra(e){e.target.composing=true}function Da(e){if(!e.target.composing){return}e.target.composing=false;Ua(e.target,"input")}function Ua(e,t){var r=document.createEvent("HTMLEvents");r.initEvent(t,true,true);e.dispatchEvent(r)}function La(e){return e.componentInstance&&(!e.data||!e.data.transition)?La(e.componentInstance._vnode):e}var Pa={bind:function e(t,r,i){var n=r.value;i=La(i);var a=i.data&&i.data.transition;var o=t.__vOriginalDisplay=t.style.display==="none"?"":t.style.display;
1if(n&&a){i.data.show=true;_a(i,function(){t.style.display=o})}else{t.style.display=n?o:"none"}},update:function e(t,r,i){var n=r.value;var a=r.oldValue;if(n===a){return}i=La(i);var o=i.data&&i.data.transition;if(o){i.data.show=true;if(n){_a(i,function(){t.style.display=t.__vOriginalDisplay})}else{ya(i,function(){t.style.display="none"})}}else{t.style.display=n?t.__vOriginalDisplay:"none"}},unbind:function e(t,r,i,n,a){if(!a){t.style.display=t.__vOriginalDisplay}}};var Na={model:Fa,show:Pa};var Ma={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ba(e){var t=e&&e.componentOptions;if(t&&t.Ctor.options.abstract){return Ba(xt(t.children))}else{return e}}function ja(e){var t={};var r=e.$options;for(var i in r.propsData){t[i]=e[i]}var n=r._parentListeners;for(var a in n){t[_(a)]=n[a]}return t}function $a(e,t){if(/\d-keep-alive$/.test(t.tag)){return e("keep-alive",{props:t.componentOptions.propsData})}}function za(e){while(e=e.parent){if(e.data.transition){return true}}}function Wa(e,t){return t.key===e.key&&t.tag===e.tag}var Ha={name:"transition",props:Ma,abstract:true,render:function e(t){var r=this;var i=this.$slots.default;if(!i){return}i=i.filter(function(e){return e.tag||It(e)});if(!i.length){return}var n=this.mode;var a=i[0];if(za(this.$vnode)){return a}var o=Ba(a);if(!o){return a}if(this._leaving){return $a(t,a)}var s="__transition-"+this._uid+"-";o.key=o.key==null?o.isComment?s+"comment":s+o.tag:g(o.key)?String(o.key).indexOf(s)===0?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=ja(this);var c=this._vnode;var u=Ba(c);if(o.data.directives&&o.data.directives.some(function(e){return e.name==="show"})){o.data.show=true}if(u&&u.data&&!Wa(o,u)&&!It(u)&&!(u.componentInstance&&u.componentInstance._vnode.isComment)){var f=u.data.transition=E({},l);if(n==="out-in"){this._leaving=true;_t(f,"afterLeave",function(){r._leaving=false;r.$forceUpdate()});return $a(t,a)}else if(n==="in-out"){if(It(o)){return c}var d;var p=function(){d()};_t(l,"afterEnter",p);_t(l,"enterCancelled",p);_t(f,"delayLeave",function(e){d=e})}}return a}};var Ga=E({tag:String,moveClass:String},Ma);delete Ga.mode;var Va={props:Ga,render:function e(t){var r=this.tag||this.$vnode.data.tag||"span";var i=Object.create(null);var n=this.prevChildren=this.children;var a=this.$slots.default||[];var o=this.children=[];var s=ja(this);for(var l=0;l<a.length;l++){var c=a[l];if(c.tag){if(c.key!=null&&String(c.key).indexOf("__vlist")!==0){o.push(c);i[c.key]=c;(c.data||(c.data={})).transition=s}else{}}}if(n){var u=[];var f=[];for(var d=0;d<n.length;d++){var p=n[d];p.data.transition=s;p.data.pos=p.elm.getBoundingClientRect();if(i[p.key]){u.push(p)}else{f.push(p)}}this.kept=t(r,null,u);this.removed=f}return t(r,null,o)},beforeUpdate:function e(){this.__patch__(this._vnode,this.kept,false,true);this._vnode=this.kept},updated:function e(){var t=this.prevChildren;var i=this.moveClass||(this.name||"v")+"-move";if(!t.length||!this.hasMove(t[0].elm,i)){return}t.forEach(Qa);t.forEach(qa);t.forEach(Ka);this._reflow=document.body.offsetHeight;t.forEach(function(e){if(e.data.moved){var r=e.elm;var t=r.style;fa(r,i);t.transform=t.WebkitTransform=t.transitionDuration="";r.addEventListener(oa,r._moveCb=function e(t){if(!t||/transform$/.test(t.propertyName)){r.removeEventListener(oa,e);r._moveCb=null;da(r,i)}})}})},methods:{hasMove:function e(t,r){if(!ra){return false}if(this._hasMove){return this._hasMove}var i=t.cloneNode();if(t._transitionClasses){t._transitionClasses.forEach(function(e){Jn(i,e)})}Zn(i,r);i.style.display="none";this.$el.appendChild(i);var n=va(i);this.$el.removeChild(i);return this._hasMove=n.hasTransform}}};function Qa(e){if(e.elm._moveCb){e.elm._moveCb()}if(e.elm._enterCb){e.elm._enterCb()}}function qa(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ka(e){var t=e.data.pos;var r=e.data.newPos;var i=t.left-r.left;var n=t.top-r.top;if(i||n){e.data.moved=true;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+i+"px,"+n+"px)";a.transitionDuration="0s"}}var Ya={Transition:Ha,TransitionGroup:Va};ai.config.mustUseProp=Ai;ai.config.isReservedTag=Bi;ai.config.isReservedAttr=bi;ai.config.getTagNamespace=ji;ai.config.isUnknownElement=zi;E(ai.options.directives,Na);E(ai.options.components,Ya);ai.prototype.__patch__=V?ka:k;ai.prototype.$mount=function(e,t){e=e&&V?Hi(e):undefined;return zt(this,e,t)};ai.nextTick(function(){if(j.devtools){if(se){se.emit("init",ai)}else{}}},0);var Xa=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function Za(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}
1function Ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function eo(e,t){return t={exports:{}},e(t,t.exports),t.exports}var to=eo(function(e,t){var r=null;var i={install:function(i){var e;var t=i.version[0];if(!r){r=new i({data:function(){return{current:"",locales:{}}},computed:{lang:function(){return this.current},locale:function(){if(!this.locales[this.current])return null;return this.locales[this.current]}},methods:{setLang:function(e){if(this.current!==e){if(this.current===""){this.$emit("language:init",e)}else{this.$emit("language:changed",e)}}this.current=e;this.$emit("language:modified",e)},setLocales:function(e){if(!e)return;var t=Object.create(this.locales);for(var r in e){if(!t[r])t[r]={};i.util.extend(t[r],e[r])}this.locales=Object.create(t);this.$emit("locales:loaded",e)},text:function(e){if(!this.locale||!this.locale[e]){return e}return this.locale[e]}}});i.prototype.$translate=r}i.mixin((e={},e[t==="1"?"init":"beforeCreate"]=function(){this.$translate.setLocales(this.$options.locales)},e.methods={t:function(e){return this.$translate.text(e)}},e.directives={translate:function(e){if(!e.$translateKey)e.$translateKey=e.innerText;var t=this.$translate.text(e.$translateKey);e.innerText=t}.bind(r)},e));i.locales=function(e){r.$translate.setLocales(e)}}};{e.exports=i}});var ro=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var io=function e(){var t=void 0;if((typeof window==="undefined"?"undefined":ro(window))==="object"){t=window.filestackLegacyInternals;if(!t){t={};window.filestackLegacyInternals=t}if(!t.loader){t.loader={modules:{}}}}return t};var no=io();var ao=no&&no.loader.modules;var oo=function e(n,a){var o=ao[n];if(!o){ao[n]={};o=ao[n]}if(o.instance){return Promise.resolve(o.instance)}if(o.promise){return o.promise}var t=new Promise(function(r,i){var t=function e(){o.resolvePromise=r;var t=document.createElement("script");t.src=n;t.onerror=i;if(a)t.id=a;document.body.appendChild(t)};var e=function e(){if(document.readyState==="complete"){t()}else{setTimeout(e,50)}};e()});o.promise=t;return t};var so=function e(t,r){var i=void 0;if(r&&document.getElementById(r)){i=document.getElementById(r)}else{var n=document.getElementsByTagName("script");i=n[n.length-1]}var a=i.getAttribute("src");var o=ao[a];if(o&&o.resolvePromise){o.instance=t;o.resolvePromise(t);delete o.promise;delete o.resolvePromise}};var lo=function e(n){var t=document.querySelector('link[href="'+n+'"]');if(t!==null){return Promise.resolve()}return new Promise(function(t){var e=document.getElementsByTagName("head")[0];var r=document.createElement("link");var i=function e(){t();r.removeEventListener("load",e)};r.rel="stylesheet";r.href=n;r.addEventListener("load",i);e.appendChild(r)})};var co={picker:"__filestack-picker-module-legacy"};var uo={init:function e(){window.filestackLegacyInternals.logger.working=false},isWorking:function e(){return window.filestackLegacyInternals.logger.working},on:function e(){window.filestackLegacyInternals.logger.working=true},off:function e(){window.filestackLegacyInternals.logger.working=false}};var fo=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var po=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else{return Array.from(e)}};var ho=function t(o,s){var e=function e(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++){r[i]=arguments[i]}var n=[].concat(r).map(function(e){if((typeof e==="undefined"?"undefined":fo(e))==="object"){return JSON.stringify(e,function(e,t){if(typeof t==="function"){if(e==="json"){try{return t()}catch(e){}}return"[Function]"}if(t instanceof File){return"[File name: "+t.name+", mimetype: "+t.type+", size: "+t.size+"]"}return t},2)}return e});if(s.isWorking()){var a;(a=console).log.apply(a,["["+o+"]"].concat(po(n)))}};e.context=function(e){return t(o+"]["+e,s)};e.on=s.on;e.off=s.off;return e};var vo=ho("filestackLegacy",uo);var mo=function e(){var t=void 0;if((typeof window==="undefined"?"undefined":fo(window))==="object"){t=window.filestackLegacyInternals;if(!t){t={};
1window.filestackLegacyInternals=t}if(!t.logger){t.logger=vo;uo.init()}}return t};mo();var go=eo(function(r,e){!function(e,t){r.exports=t()}(Xa,function(){return function(r){function i(e){if(n[e])return n[e].exports;var t=n[e]={exports:{},id:e,loaded:!1};return r[e].call(t.exports,t,t.exports,i),t.loaded=!0,t.exports}var n={};return i.m=r,i.c=n,i.p="",i(0)}([function(e,t,r){function i(e){return e&&e.__esModule?e:{default:e}}var n=r(2),a=i(n),o=r(1),s=i(o);window.sessionStorage||(window.sessionStorage=s.default);var l={install:function(e,t){e.prototype.$session=new a.default}};e.exports=l},function(e,t){function r(){this.data={},this.setItem=function(e,t){this.data[e]=t},this.getItem=function(e){return this.data[e]}}e.exports=r},function(e,t){function r(){this.key=null,this.__getRandomString=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t="";e--;)t+=String.fromCharCode(48+~~(42*Math.random()));return t},this.__getKey=function(){var e=window.sessionStorage.getItem("sessionKey");e||(e=this.__getRandomString(),window.sessionStorage.setItem("sessionKey",e)),this.key=e},this.__get=function(){this.key||this.__getKey();var e=JSON.parse(window.sessionStorage.getItem(this.key));return e||{}},this.get=function(e){var t=this.__get();return t[e]},this.__set=function(e){this.key||this.__getKey(),window.sessionStorage.setItem(this.key,JSON.stringify(e))},this.set=function(e,t){var r=this.__get();r[e]=t,this.__set(r)},this.exists=function(e){var t=this.__get();return e in t},this.remove=function(e){var t=this.__get();delete t[e],this.__set(t)},this.clear=function(){this.__set({})}}e.exports=r}])})});var _o=Ja(go);var yo=go.VueSessionStorage;var bo=typeof window!=="undefined"?window:typeof Xa!=="undefined"?Xa:typeof self!=="undefined"?self:{};function wo(e){return typeof e==="object"&&e!==null}function Ao(e){switch({}.toString.call(e)){case"[object Error]":return true;case"[object Exception]":return true;case"[object DOMException]":return true;default:return e instanceof Error}}function Co(e){return Oo()&&{}.toString.call(e)==="[object ErrorEvent]"}function Eo(e){return e===void 0}function So(e){return typeof e==="function"}function ko(e){return Object.prototype.toString.call(e)==="[object Object]"}function Fo(e){return Object.prototype.toString.call(e)==="[object String]"}function Io(e){return Object.prototype.toString.call(e)==="[object Array]"}function xo(e){if(!ko(e))return false;for(var t in e){if(e.hasOwnProperty(t)){return false}}return true}function Oo(){try{new ErrorEvent("");return true}catch(e){return false}}function To(){if(!("fetch"in bo))return false;try{new Headers;new Request("");new Response;return true}catch(e){return false}}function Ro(i){function e(e,t){var r=i(e)||e;if(t){return t(r)||r}return r}return e}function Do(e,t){var r,i;if(Eo(e.length)){for(r in e){if(No(e,r)){t.call(null,r,e[r])}}}else{i=e.length;if(i){for(r=0;r<i;r++){t.call(null,r,e[r])}}}}function Uo(r,e){if(!e){return r}Do(e,function(e,t){r[e]=t});return r}function Lo(e){if(!Object.isFrozen){return false}return Object.isFrozen(e)}function Po(e,t){return!t||e.length<=t?e:e.substr(0,t)+"â¦"}function No(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Mo(e){var t=[],r=0,i=e.length,n;for(;r<i;r++){n=e[r];if(Fo(n)){t.push(n.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"))}else if(n&&n.source){t.push(n.source)}}return new RegExp(t.join("|"),"i")}function Bo(e){var r=[];Do(e,function(e,t){r.push(encodeURIComponent(e)+"="+encodeURIComponent(t))});return r.join("&")}function jo(e){if(typeof e!=="string")return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);var r=t[6]||"";var i=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+r+i}}function $o(){var e=bo.crypto||bo.msCrypto;if(!Eo(e)&&e.getRandomValues){var t=new Uint16Array(8);e.getRandomValues(t);t[3]=t[3]&4095|16384;t[4]=t[4]&16383|32768;var r=function(e){var t=e.toString(16);while(t.length<4){t="0"+t}return t};return r(t[0])+r(t[1])+r(t[2])+r(t[3])+r(t[4])+r(t[5])+r(t[6])+r(t[7])}else{return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e==="x"?t:t&3|8;return r.toString(16)})}}function zo(e){var t=5,r=80,i=[],n=0,a=0,o=" > ",s=o.length,l;while(e&&n++<t){l=Wo(e);if(l==="html"||n>1&&a+i.length*s+l.length>=r){break}i.push(l);a+=l.length;e=e.parentNode}return i.reverse().join(o)}function Wo(e){var t=[],r,i,n,a,o;if(!e||!e.tagName){return""}t.push(e.tagName.toLowerCase());if(e.id){t.push("#"+e.id)}r=e.className;if(r&&Fo(r)){i=r.split(/\s+/);for(o=0;o<i.length;o++){t.push("."+i[o])}}var s=["type","name","title","alt"];for(o=0;o<s.length;o++){n=s[o];a=e.getAttribute(n);if(a){t.push("["+n+'="'+a+'"]')}}return t.join("")}function Ho(e,t){return!!(!!e^!!t)}function Go(e,t){return Eo(e)&&Eo(t)}function Vo(e,t){if(Ho(e,t))return false;e=e.values[0];t=t.values[0];if(e.type!==t.type||e.value!==t.value)return false;if(Go(e.stacktrace,t.stacktrace))return false;return Qo(e.stacktrace,t.stacktrace)}function Qo(e,t){if(Ho(e,t))return false;var r=e.frames;var i=t.frames;if(r.length!==i.length)return false;var n,a;for(var o=0;o<r.length;o++){n=r[o];a=i[o];if(n.filename!==a.filename||n.lineno!==a.lineno||n.colno!==a.colno||n["function"]!==a["function"])return false}return true}function qo(e,t,r,i){var n=e[t];e[t]=r(n);e[t].__raven__=true;e[t].__orig__=n;if(i){i.push([e,t,n])}}var Ko={isObject:wo,isError:Ao,isErrorEvent:Co,isUndefined:Eo,isFunction:So,isPlainObject:ko,isString:Fo,isArray:Io,isEmptyObject:xo,supportsErrorEvent:Oo,supportsFetch:To,wrappedCallback:Ro,each:Do,objectMerge:Uo,truncate:Po,objectFrozen:Lo,hasKey:No,joinRegExp:Mo,urlencode:Bo,uuid4:$o,htmlTreeAsString:zo,htmlElementAsString:Wo,isSameException:Vo,isSameStacktrace:Qo,parseUrl:jo,fill:qo};var Yo={collectWindowErrors:true,debug:false};var Xo=typeof window!=="undefined"?window:typeof Xa!=="undefined"?Xa:typeof self!=="undefined"?self:{};var Zo=[].slice;var Jo="?";var es=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function ts(){if(typeof document==="undefined"||document.location==null)return"";return document.location.href}Yo.report=function e(){var n=[],a=null,o=null,f=null;function t(e){c();n.push(e)}function r(e){for(var t=n.length-1;t>=0;--t){if(n[t]===e){n.splice(t,1)}}}function i(){u();n=[]}function d(e,t){var r=null;if(t&&!Yo.collectWindowErrors){return}for(var i in n){if(n.hasOwnProperty(i)){try{n[i].apply(null,[e].concat(Zo.call(arguments,2)))}catch(e){r=e}}}if(r){throw r}}var p,s;function l(e,t,r,i,n){var a=null;var o=Ko.isErrorEvent(n)?n.error:n;var s=Ko.isErrorEvent(e)?e.message:e;if(f){Yo.computeStackTrace.augmentStackTraceWithInitialElement(f,t,r,s);h()}else if(o&&Ko.isError(o)){a=Yo.computeStackTrace(o);d(a,true)}else{var l={url:t,line:r,column:i};var c=undefined;var u;if({}.toString.call(s)==="[object String]"){var u=s.match(es);if(u){c=u[1];s=u[2]}}l.func=Jo;a={name:c,message:s,url:ts(),stack:[l]};d(a,true)}if(p){return p.apply(this,arguments)}return false}function c(){if(s){return}p=Xo.onerror;Xo.onerror=l;s=true}function u(){if(!s){return}Xo.onerror=p;s=false;p=undefined}function h(){var e=f,t=a;a=null;f=null;o=null;d.apply(null,[e,false].concat(t))}
1function v(e,t){var r=Zo.call(arguments,1);if(f){if(o===e){return}else{h()}}var i=Yo.computeStackTrace(e);f=i;o=e;a=r;setTimeout(function(){if(o===e){h()}},i.incomplete?2e3:0);if(t!==false){throw e}}v.subscribe=t;v.unsubscribe=r;v.uninstall=i;return v}();Yo.computeStackTrace=function e(){function i(e){if(typeof e.stack==="undefined"||!e.stack)return;var t=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,i=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,n=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,a=/\((\S*)(?::(\d+))(?::(\d+))\)/,o=e.stack.split("\n"),s=[],l,c,u,f=/^(.*) is undefined$/.exec(e.message);for(var d=0,p=o.length;d<p;++d){if(c=t.exec(o[d])){var h=c[2]&&c[2].indexOf("native")===0;var v=c[2]&&c[2].indexOf("eval")===0;if(v&&(l=a.exec(c[2]))){c[2]=l[1];c[3]=l[2];c[4]=l[3]}u={url:!h?c[2]:null,func:c[1]||Jo,args:h?[c[2]]:[],line:c[3]?+c[3]:null,column:c[4]?+c[4]:null}}else if(c=i.exec(o[d])){u={url:c[2],func:c[1]||Jo,args:[],line:+c[3],column:c[4]?+c[4]:null}}else if(c=r.exec(o[d])){var v=c[3]&&c[3].indexOf(" > eval")>-1;if(v&&(l=n.exec(c[3]))){c[3]=l[1];c[4]=l[2];c[5]=null}else if(d===0&&!c[5]&&typeof e.columnNumber!=="undefined"){s[0].c
1olumn=e.columnNumber+1}u={url:c[3],func:c[1]||Jo,args:c[2]?c[2].split(","):[],line:c[4]?+c[4]:null,column:c[5]?+c[5]:null}}else{continue}if(!u.func&&u.line){u.func=Jo}s.push(u)}if(!s.length){return null}return{name:e.name,message:e.message,url:ts(),stack:s}}function u(e,t,r,i){var n={url:t,line:r};if(n.url&&n.line){e.incomplete=false;if(!n.func){n.func=Jo}if(e.stack.length>0){if(e.stack[0].url===n.url){if(e.stack[0].line===n.line){return false}else if(!e.stack[0].line&&e.stack[0].func===n.func){e.stack[0].line=n.line;return false}}}e.stack.unshift(n);e.partial=true;return true}else{e.incomplete=true}return false}function f(e,t){var r=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,i=[],n={},a=false,o,s;for(var l=f.caller;l&&!a;l=l.caller){if(l===d||l===Yo.report){continue}s={url:null,func:Jo,line:null,column:null};if(l.name){s.func=l.name}else if(o=r.exec(l.toString())){s.func=o[1]}if(typeof s.func==="undefined"){try{s.func=o.input.substring(0,o.input.indexOf("{"))}catch(e){}}if(n[""+l]){a=true}else{n[""+l]=true}i.push(s)}if(t){i.splice(0,t)}var c={name:e.name,message:e.message,url:ts(),stack:i};u(c,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description);return c}function d(e,t){var r=null;t=t==null?0:+t;try{r=i(e);if(r){return r}}catch(e){if(Yo.debug){throw e}}try{r=f(e,t+1);if(r){return r}}catch(e){if(Yo.debug){throw e}}return{name:e.name,message:e.message,url:ts()}}d.augmentStackTraceWithInitialElement=u;d.computeStackTraceFromStackProp=i;return d}();var rs=Yo;var is=eo(function(e,t){t=e.exports=r;t.getSerialize=n;function s(e,t){for(var r=0;r<e.length;++r){if(e[r]===t)return r}return-1}function r(e,t,r,i){return JSON.stringify(e,n(t,i),r)}function l(e){var t={stack:e.stack,message:e.message,name:e.name};for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){t[r]=e[r]}}return t}function n(i,n){var a=[];var o=[];if(n==null){n=function(e,t){if(a[0]===t){return"[Circular ~]"}return"[Circular ~."+o.slice(0,s(a,t)).join(".")+"]"}}return function(e,t){if(a.length>0){var r=s(a,this);~r?a.splice(r+1):a.push(this);~r?o.splice(r,Infinity,e):o.push(e);if(~s(a,t)){t=n.call(this,e,t)}}else{a.push(t)}return i==null?t instanceof Error?l(t):t:i.call(this,e,t)}}});var ns=is.getSerialize;function as(e){this.name="RavenConfigError";this.message=e}as.prototype=new Error;as.prototype.constructor=as;var os=as;var ss=function(e,i,n){var a=e[i];var o=e;if(!(i in e)){return}var s=i==="warn"?"warning":i;e[i]=function(){var e=[].slice.call(arguments);var t=""+e.join(" ");var r={level:s,logger:"console",extra:{arguments:e}};if(i==="assert"){if(e[0]===false){t="Assertion failed: "+(e.slice(1).join(" ")||"console.assert");r.extra.arguments=e.slice(1);n&&n(t,r)}}else{n&&n(t,r)}if(a){Function.prototype.apply.call(a,o,e)}}};var ls={wrapMethod:ss};var cs=Ko.isError;var us=Ko.isObject;var fs=Ko.isErrorEvent;var ds=Ko.isUndefined;var ps=Ko.isFunction;var hs=Ko.isString;var vs=Ko.isArray;var ms=Ko.isEmptyObject;var gs=Ko.each;var _s=Ko.objectMerge;var ys=Ko.truncate;var bs=Ko.objectFrozen;var ws=Ko.hasKey;var As=Ko.joinRegExp;var Cs=Ko.urlencode;var Es=Ko.uuid4;var Ss=Ko.htmlTreeAsString;var ks=Ko.isSameException;var Fs=Ko.isSameStacktrace;var Is=Ko.parseUrl;var xs=Ko.fill;var Os=Ko.supportsFetch;var Ts=ls.wrapMethod;var Rs="source protocol user pass host port path".split(" "),Ds=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function Us(){return+new Date}var Ls=typeof window!=="undefined"?window:typeof Xa!=="undefined"?Xa:typeof self!=="undefined"?self:{};var Ps=Ls.document;var Ns=Ls.navigator;function Ms(t,r){return ps(r)?function(e){return r(e,t)}:r}function Bs(){this._hasJSON=!!(typeof JSON==="object"&&JSON.stringify);this._hasDocument=!ds(Ps);this._hasNavigator=!ds(Ns);this._lastCapturedException=null;this._lastData=null;this._lastEventId=null;this._globalServer=null;this._globalKey=null;this._globalProject=null;this._globalContext={};this._globalOptions={release:Ls.SENTRY_RELEASE&&Ls.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:true,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:true,instrument:true,sampleRate:1};this._fetchDefaults={method:"POST",keepalive:true,referrerPolicy:"origin"};this._ignoreOnError=0;this._isRavenInstalled=false;this._originalErrorStackTraceLimit=Error.stackTraceLimit;this._originalConsole=Ls.console||{};this._originalConsoleMethods={};this._plugins=[];this._startTime=Us();this._wrappedBuiltIns=[];this._breadcrumbs=[];this._lastCapturedEvent=null;this._keypressTimeout;this._location=Ls.location;this._lastHref=this._location&&this._location.href;this._resetBackoff();for(var e in this._originalConsole){this._originalConsoleMethods[e]=this._originalConsole[e]}}Bs.prototype={VERSION:"3.22.1",debug:false,TraceKit:rs,config:function(e,t){var r=this;if(r._globalServer){this._logDebug("error","Error: Raven has already been configured");return r}if(!e)return r;var i=r._globalOptions;if(t){gs(t,function(e,t){if(e==="tags"||e==="extra"||e==="user"){r._globalContext[e]=t}else{i[e]=t}})}r.setDSN(e);i.ignoreErrors.push(/^Script error\.?$/);i.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/);i.ignoreErrors=As(i.ignoreErrors);i.ignoreUrls=i.ignoreUrls.length?As(i.ignoreUrls):false;i.whitelistUrls=i.whitelistUrls.length?As(i.whitelistUrls):false;i.includePaths=As(i.includePaths);i.maxBreadcrumbs=Math.max(0,Math.min(i.maxBreadcrumbs||100,100));var n={xhr:true,console:true,dom:true,location:true,sentry:true};var a=i.autoBreadcrumbs;if({}.toString.call(a)==="[object Object]"){a=_s(n,a)}else if(a!==false){a=n}i.autoBreadcrumbs=a;var o={tryCatch:true};var s=i.instrument;if({}.toString.call(s)==="[object Object]"){s=_s(o,s)}else if(s!==false){s=o}i.instrument=s;rs.collectWindowErrors=!!i.collectWindowErrors;return r},install:function(){var e=this;if(e.isSetup()&&!e._isRavenInstalled){rs.report.subscribe(function(){e._handleOnErrorStackInfo.apply(e,arguments)});e._patchFunctionToString();if(e._globalOptions.instrument&&e._globalOptions.instrument.tryCatch){e._instrumentTryCatch()}if(e._globalOptions.autoBreadcrumbs)e._instrumentBreadcrumbs();e._drainPlugins();e._isRavenInstalled=true}Error.stackTraceLimit=e._globalOptions.stackTraceLimit;return this},setDSN:function(e){var t=this,r=t._parseDSN(e),i=r.path.lastIndexOf("/"),n=r.path.substr(1,i);t._dsn=e;t._globalKey=r.user;t._globalSecret=r.pass&&r.pass.substr(1);t._globalProject=r.path.substr(i+1);t._globalServer=t._getGlobalServer(r);t._globalEndpoint=t._globalServer+"/"+n+"api/"+t._globalProject+"/store/";this._resetBackoff()},context:function(e,t,r){if(ps(e)){r=t||[];t=e;e=undefined}return this.wrap(e,t).apply(this,r)},wrap:function(i,n,a){var o=this;if(ds(n)&&!ps(i)){return i}if(ps(i)){n=i;i=undefined}if(!ps(n)){return n}try{if(n.__raven__){return n}if(n.__raven_wrapper__){return n.__raven_wrapper__}}catch(e){return n}function e(){var e=[],t=arguments.length,r=!i||i&&i.deep!==false;if(a&&ps(a)){a.apply(this,arguments)}while(t--)e[t]=r?o.wrap(i,arguments[t]):arguments[t];try{return n.apply(this,e)}catch(e){o._ignoreNextOnError();o.captureException(e,i);throw e}}for(var t in n){if(ws(n,t)){e[t]=n[t]}}e.prototype=n.prototype;n.__raven_wrapper__=e;e.__raven__=true;e.__orig__=n;return e},uninstall:function(){rs.report.uninstall();this._unpatchFunctionToString();this._restoreBuiltIns();Error.stackTraceLimit=this._originalErrorStackTraceLimit;this._isRavenInstalled=false;return this},captureException:function(t,e){var r=!cs(t);var i=!fs(t);var n=fs(t)&&!t.error;if(r&&i||n){return this.captureMessage(t,_s({trimHeadFrames:1,stacktrace:true},e))}if(fs(t))t=t.error;this._lastCapturedException=t;try{var a=rs.computeStackTrace(t);this._handleStackInfo(a,e)}catch(e){if(t!==e){throw e}}return this},captureMessage:function(e,t){if(!!this._globalOptions.ignoreErrors.test&&this._globalOptions.ignoreErrors.test(e)){return}t=t||{};var r=_s({message:e+""},t);var i;try{throw new Error(e)}catch(e){i=e}i.name=null;
1var n=rs.computeStackTrace(i);var a=vs(n.stack)&&n.stack[1];var o=a&&a.url||"";if(!!this._globalOptions.ignoreUrls.test&&this._globalOptions.ignoreUrls.test(o)){return}if(!!this._globalOptions.whitelistUrls.test&&!this._globalOptions.whitelistUrls.test(o)){return}if(this._globalOptions.stacktrace||t&&t.stacktrace){t=_s({fingerprint:e,trimHeadFrames:(t.trimHeadFrames||0)+1},t);var s=this._prepareFrames(n,t);r.stacktrace={frames:s.reverse()}}this._send(r);return this},captureBreadcrumb:function(e){var t=_s({timestamp:Us()/1e3},e);if(ps(this._globalOptions.breadcrumbCallback)){var r=this._globalOptions.breadcrumbCallback(t);if(us(r)&&!ms(r)){t=r}else if(r===false){return this}}this._breadcrumbs.push(t);if(this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs){this._breadcrumbs.shift()}return this},addPlugin:function(e){var t=[].slice.call(arguments,1);this._plugins.push([e,t]);if(this._isRavenInstalled){this._drainPlugins()}return this},setUserContext:function(e){this._globalContext.user=e;return this},setExtraContext:function(e){this._mergeContext("extra",e);return this},setTagsContext:function(e){this._mergeContext("tags",e);return this},clearContext:function(){this._globalContext={};return this},getContext:function(){return JSON.parse(is(this._globalContext))},setEnvironment:function(e){this._globalOptions.environment=e;return this},setRelease:function(e){this._globalOptions.release=e;return this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;this._globalOptions.dataCallback=Ms(t,e);return this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;this._globalOptions.breadcrumbCallback=Ms(t,e);return this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;this._globalOptions.shouldSendCallback=Ms(t,e);return this},setTransport:function(e){this._globalOptions.transport=e;return this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){if(!this._hasJSON)return false;if(!this._globalServer){if(!this.ravenNotConfiguredError){this.ravenNotConfiguredError=true;this._logDebug("error","Error: Raven has not been configured.")}return false}return true},afterLoad:function(){var e=Ls.RavenConfig;if(e){this.config(e.dsn,e.config).install()}},showReportDialog:function(e){if(!Ps)return;e=e||{};var t=e.eventId||this.lastEventId();if(!t){throw new os("Missing eventId")}var r=e.dsn||this._dsn;if(!r){throw new os("Missing DSN")}var i=encodeURIComponent;var n="";n+="?eventId="+i(t);n+="&dsn="+i(r);var a=e.user||this._globalContext.user;if(a){if(a.name)n+="&name="+i(a.name);if(a.email)n+="&email="+i(a.email)}var o=this._getGlobalServer(this._parseDSN(r));var s=Ps.createElement("script");s.async=true;s.src=o+"/api/embed/error-page/"+n;(Ps.head||Ps.body).appendChild(s)},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1;setTimeout(function(){e._ignoreOnError-=1})},_triggerEvent:function(e,t){var r,i;if(!this._hasDocument)return;t=t||{};e="raven"+e.substr(0,1).toUpperCase()+e.substr(1);if(Ps.createEvent){r=Ps.createEvent("HTMLEvents");r.initEvent(e,true,true)}else{r=Ps.createEventObject();r.eventType=e}for(i in t)if(ws(t,i)){r[i]=t[i]}if(Ps.createEvent){Ps.dispatchEvent(r)}else{try{Ps.fireEvent("on"+r.eventType.toLowerCase(),r)}catch(e){}}},_breadcrumbEventHandler:function(r){var i=this;return function(e){i._keypressTimeout=null;if(i._lastCapturedEvent===e)return;i._lastCapturedEvent=e;var t;try{t=Ss(e.target)}catch(e){t="<unknown>"}i.captureBreadcrumb({category:"ui."+r,message:t})}},_keypressEventHandler:function(){var n=this,a=1e3;return function(e){var t;try{t=e.target}catch(e){return}var r=t&&t.tagName;if(!r||r!=="INPUT"&&r!=="TEXTAREA"&&!t.isContentEditable)return;var i=n._keypressTimeout;if(!i){n._breadcrumbEventHandler("input")(e)}clearTimeout(i);n._keypressTimeout=setTimeout(function(){n._keypressTimeout=null},a)}},_captureUrlChange:function(e,t){var r=Is(this._location.href);var i=Is(t);var n=Is(e);this._lastHref=t;if(r.protocol===i.protocol&&r.host===i.host)t=i.relative;if(r.protocol===n.protocol&&r.host===n.host)e=n.relative;this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_patchFunctionToString:function(){var e=this;e._originalFunctionToString=Function.prototype.toString;Function.prototype.toString=function(){if(typeof this==="function"&&this.__raven__){return e._originalFunctionToString.apply(this.__orig__,arguments)}return e._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){if(this._originalFunctionToString){Function.prototype.toString=this._originalFunctionToString}},_instrumentTryCatch:function(){var c=this;var t=c._wrappedBuiltIns;function e(a){return function(e,t){var r=new Array(arguments.length);for(var i=0;i<r.length;++i){r[i]=arguments[i]}var n=r[0];if(ps(n)){r[0]=c.wrap(n)}
1if(a.apply){return a.apply(this,r)}else{return a(r[0],r[1])}}}var u=this._globalOptions.autoBreadcrumbs;function r(l){var e=Ls[l]&&Ls[l].prototype;if(e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")){xs(e,"addEventListener",function(s){return function(e,t,r,i){try{if(t&&t.handleEvent){t.handleEvent=c.wrap(t.handleEvent)}}catch(e){}var n,a,o;if(u&&u.dom&&(l==="EventTarget"||l==="Node")){a=c._breadcrumbEventHandler("click");o=c._keypressEventHandler();n=function(e){if(!e)return;var t;try{t=e.type}catch(e){return}if(t==="click")return a(e);else if(t==="keypress")return o(e)}}return s.call(this,e,c.wrap(t,undefined,n),r,i)}},t);xs(e,"removeEventListener",function(n){return function(e,t,r,i){try{t=t&&(t.__raven_wrapper__?t.__raven_wrapper__:t)}catch(e){}return n.call(this,e,t,r,i)}},t)}}xs(Ls,"setTimeout",e,t);xs(Ls,"setInterval",e,t);if(Ls.requestAnimationFrame){xs(Ls,"requestAnimationFrame",function(t){return function(e){return t(c.wrap(e))}},t)}var i=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];for(var n=0;n<i.length;n++){r(i[n])}},_instrumentBreadcrumbs:function(){var s=this;var e=this._globalOptions.autoBreadcrumbs;var t=s._wrappedBuiltIns;function a(e,t){if(e in t&&ps(t[e])){xs(t,e,function(e){return s.wrap(e)})}}if(e.xhr&&"XMLHttpRequest"in Ls){var r=XMLHttpRequest.prototype;xs(r,"open",function(r){return function(e,t){if(hs(t)&&t.indexOf(s._globalKey)===-1){this.__raven_xhr={method:e,url:t,status_code:null}}return r.apply(this,arguments)}},t);xs(r,"send",function(n){return function(){var e=this;function t(){if(e.__raven_xhr&&e.readyState===4){try{e.__raven_xhr.status_code=e.status}catch(e){}s.captureBreadcrumb({type:"http",category:"xhr",data:e.__raven_xhr})}}
1var r=["onload","onerror","onprogress"];for(var i=0;i<r.length;i++){a(r[i],e)}if("onreadystatechange"in e&&ps(e.onreadystatechange)){xs(e,"onreadystatechange",function(e){return s.wrap(e,undefined,t)})}else{e.onreadystatechange=t}return n.apply(this,arguments)}},t)}if(e.xhr&&Os()){xs(Ls,"fetch",function(o){return function(){var e=new Array(arguments.length);for(var t=0;t<e.length;++t){e[t]=arguments[t]}var r=e[0];var i="GET";var n;if(typeof r==="string"){n=r}else if("Request"in Ls&&r instanceof Ls.Request){n=r.url;if(r.method){i=r.method}}else{n=""+r}if(n.indexOf(s._globalKey)!==-1){return o.apply(this,e)}if(e[1]&&e[1].method){i=e[1].method}var a={method:i,url:n,status_code:null};return o.apply(this,e).then(function(e){a.status_code=e.status;s.captureBreadcrumb({type:"http",category:"fetch",data:a});return e})}},t)}if(e.dom&&this._hasDocument){if(Ps.addEventListener){Ps.addEventListener("click",s._breadcrumbEventHandler("click"),false);Ps.addEventListener("keypress",s._keypressEventHandler(),false)}else{Ps.attachEvent("onclick",s._breadcrumbEventHandler("click"));Ps.attachEvent("onkeypress",s._keypressEventHandler())}}var i=Ls.chrome;var n=i&&i.app&&i.app.runtime;var o=!n&&Ls.history&&history.pushState&&history.replaceState;if(e.location&&o){var l=Ls.onpopstate;Ls.onpopstate=function(){var e=s._location.href;s._captureUrlChange(s._lastHref,e);if(l){return l.apply(this,arguments)}};var c=function(t){return function(){var e=arguments.length>2?arguments[2]:undefined;if(e){s._captureUrlChange(s._lastHref,e+"")}return t.apply(this,arguments)}};xs(history,"pushState",c,t);xs(history,"replaceState",c,t)}if(e.console&&"console"in Ls&&console.log){var u=function(e,t){s.captureBreadcrumb({message:e,level:t.level,category:"console"})};gs(["debug","info","warn","error","log"],function(e,t){Ts(console,t,u)})}},_restoreBuiltIns:function(){var e;while(this._wrappedBuiltIns.length){e=this._wrappedBuiltIns.shift();var t=e[0],r=e[1],i=e[2];t[r]=i}},_drainPlugins:function(){var n=this;gs(this._plugins,function(e,t){var r=t[0];var i=t[1];r.apply(n,[n].concat(i))})},_parseDSN:function(t){var e=Ds.exec(t),r={},i=7;try{while(i--)r[Rs[i]]=e[i]||""}catch(e){throw new os("Invalid DSN: "+t)}if(r.pass&&!this._globalOptions.allowSecretKey){throw new os("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key")}return r},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");if(e.protocol){t=e.protocol+":"+t}return t},_handleOnErrorStackInfo:function(){if(!this._ignoreOnError){this._handleStackInfo.apply(this,arguments)}},_handleStackInfo:function(e,t){var r=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t});this._processException(e.name,e.message,e.url,e.lineno,r,t)},_prepareFrames:function(i,e){var n=this;var a=[];if(i.stack&&i.stack.length){gs(i.stack,function(e,t){var r=n._normalizeFrame(t,i.url);if(r){a.push(r)}});if(e&&e.trimHeadFrames){for(var t=0;t<e.trimHeadFrames&&t<a.length;t++){a[t].in_app=false}}}a=a.slice(0,this._globalOptions.stackTraceLimit);return a},_normalizeFrame:function(e,t){var r={filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"};if(!e.url){r.filename=t}r.in_app=!(!!this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(r.filename)||/(Raven|TraceKit)\./.test(r["function"])||/raven\.(min\.)?js$/.test(r.filename));return r},_processException:function(e,t,r,i,n,a){var o=(e?e+": ":"")+(t||"");if(!!this._globalOptions.ignoreErrors.test&&(this._globalOptions.ignoreErrors.test(t)||this._globalOptions.ignoreErrors.test(o))){return}var s;if(n&&n.length){r=n[0].filename||r;n.reverse();s={frames:n}}else if(r){s={frames:[{filename:r,lineno:i,in_app:true}]}}if(!!this._globalOptions.ignoreUrls.test&&this._globalOptions.ignoreUrls.test(r)){return}if(!!this._globalOptions.whitelistUrls.test&&!this._globalOptions.whitelistUrls.test(r)){return}var l=_s({exception:{values:[{type:e,value:t,stacktrace:s}]},culprit:r},a);this._send(l)},_trimPacket:function(e){var t=this._globalOptions.maxMessageLength;if(e.message){e.message=ys(e.message,t)}if(e.exception){var r=e.exception.values[0];r.value=ys(r.value,t)}var i=e.request;if(i){if(i.url){i.url=ys(i.url,this._globalOptions.maxUrlLength)}if(i.Referer){i.Referer=ys(i.Referer,this._globalOptions.maxUrlLength)}}if(e.breadcrumbs&&e.breadcrumbs.values)this._trimBreadcrumbs(e.breadcrumbs);return e},_trimBreadcrumbs:function(e){var t=["to","from","url"],r,i,n;for(var a=0;a<e.values.length;++a){i=e.values[a];if(!i.hasOwnProperty("data")||!us(i.data)||bs(i.data))continue;n=_s({},i.data);for(var o=0;o<t.length;++o){r=t[o];if(n.hasOwnProperty(r)&&n[r]){n[r]=ys(n[r],this._globalOptions.maxUrlLength)}}e.values[a].data=n}},_getHttpData:function(){if(!this._hasNavigator&&!this._hasDocument)return;var e={};if(this._hasNavigator&&Ns.userAgent){e.headers={"User-Agent":navigator.userAgent}}if(Ls.location&&Ls.location.href){e.url=Ls.location.href}if(this._hasDocument&&Ps.referrer){if(!e.headers)e.headers={};e.headers.Referer=Ps.referrer}return e},_resetBackoff:function(){this._backoffDuration=0;this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&Us()-this._backoffStart<this._backoffDuration},_isRepeatData:function(e){var t=this._lastData;if(!t||e.message!==t.message||e.culprit!==t.culprit)return false;if(e.stacktrace||t.stacktrace){return Fs(e.stacktrace,t.stacktrace)}else if(e.exception||t.exception){return ks(e.exception,t.exception)}return true},_setBackoffState:function(e){if(this._shouldBackoff()){return}var t=e.status;if(!(t===400||t===401||t===429))return;var r;try{if(Os()){r=e.headers.get("Retry-After")}else{r=e.getResponseHeader("Retry-After")}r=parseInt(r,10)*1e3}catch(e){}this._backoffDuration=r?r:this._backoffDuration*2||1e3;this._backoffStart=Us()},_send:function(t){var e=this._globalOptions;var r={project:this._globalProject,logger:e.logger,platform:"javascript"},i=this._getHttpData();if(i){r.request=i}if(t.trimHeadFrames)delete t.trimHeadFrames;t=_s(r,t);t.tags=_s(_s({},this._globalContext.tags),t.tags);t.extra=_s(_s({},this._globalContext.extra),t.extra);t.extra["session:duration"]=Us()-this._startTime;if(this._breadcrumbs&&this._breadcrumbs.length>0){t.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}}if(this._globalContext.user){t.user=this._globalContext.user}if(e.environment)t.environment=e.environment;if(e.release)t.release=e.release;if(e.serverName)t.server_name=e.serverName;Object.keys(t).forEach(function(e){if(t[e]==null||t[e]===""||ms(t[e])){delete t[e]}});if(ps(e.dataCallback)){t=e.dataCallback(t)||t}if(!t||ms(t)){return}
1if(ps(e.shouldSendCallback)&&!e.shouldSendCallback(t)){return}if(this._shouldBackoff()){this._logDebug("warn","Raven dropped error due to backoff: ",t);return}if(typeof e.sampleRate==="number"){if(Math.random()<e.sampleRate){this._sendProcessedPayload(t)}}else{this._sendProcessedPayload(t)}},_getUuid:function(){return Es()},_sendProcessedPayload:function(r,i){var n=this;var e=this._globalOptions;if(!this.isSetup())return;r=this._trimPacket(r);if(!this._globalOptions.allowDuplicates&&this._isRepeatData(r)){this._logDebug("warn","Raven dropped repeat event: ",r);return}this._lastEventId=r.event_id||(r.event_id=this._getUuid());this._lastData=r;this._logDebug("debug","Raven about to send:",r);var t={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};if(this._globalSecret){t.sentry_secret=this._globalSecret}var a=r.exception&&r.exception.values[0];if(this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry){this.captureBreadcrumb({category:"sentry",message:a?(a.type?a.type+": ":"")+a.value:r.message,event_id:r.event_id,level:r.level||"error"})}var o=this._globalEndpoint;(e.transport||this._makeRequest).call(this,{url:o,auth:t,data:r,options:e,onSuccess:function e(){n._resetBackoff();n._triggerEvent("success",{data:r,src:o});i&&i()},onError:function e(t){n._logDebug("error","Raven transport failed to send: ",t);if(t.request){n._setBackoffState(t.request)}n._triggerEvent("failure",{data:r,src:o});t=t||new Error("Raven send failed (no additional details provided)");i&&i(t)}})},_makeRequest:function(r){var e=r.url+"?"+Cs(r.auth);var t=null;var i={};if(r.options.headers){t=this._evaluateHash(r.options.headers)}if(r.options.fetchParameters){i=this._evaluateHash(r.options.fetchParameters)}if(Os()){i.body=is(r.data);var n=_s({},this._fetchDefaults);var a=_s(n,i);if(t){a.headers=t}return Ls.fetch(e,a).then(function(e){if(e.ok){r.onSuccess&&r.onSuccess()}else{var t=new Error("Sentry error code: "+e.status);t.request=e;r.onError&&r.onError(t)}})["catch"](function(){r.onError&&r.onError(new Error("Sentry error code: network unavailable"))})}var o=Ls.XMLHttpRequest&&new Ls.XMLHttpRequest;if(!o)return;var s="withCredentials"in o||typeof XDomainRequest!=="undefined";if(!s)return;if("withCredentials"in o){o.onreadystatechange=function(){if(o.readyState!==4){return}else if(o.status===200){r.onSuccess&&r.onSuccess()}else if(r.onError){var e=new Error("Sentry error code: "+o.status);e.request=o;r.onError(e)}}}else{o=new XDomainRequest;e=e.replace(/^https?:/,"");if(r.onSuccess){o.onload=r.onSuccess}if(r.onError){o.onerror=function(){var e=new Error("Sentry error code: XDomainRequest");e.request=o;r.onError(e)}}}o.open("POST",e);if(t){gs(t,function(e,t){o.setRequestHeader(e,t)})}o.send(is(r.data))},_evaluateHash:function(e){var t={};for(var r in e){if(e.hasOwnProperty(r)){var i=e[r];t[r]=typeof i==="function"?i():i}}return t},_logDebug:function(e){if(this._originalConsoleMethods[e]&&this.debug){Function.prototype.apply.call(this._originalConsoleMethods[e],this._originalConsole,[].slice.call(arguments,1))}},_mergeContext:function(e,t){if(ds(t)){delete this._globalContext[e]}else{this._globalContext[e]=_s(this._globalContext[e]||{},t)}}};Bs.prototype.setUser=Bs.prototype.setUserContext;Bs.prototype.setReleaseContext=Bs.prototype.setRelease;var js=Bs;var $s=typeof window!=="undefined"?window:typeof Xa!=="undefined"?Xa:typeof self!=="undefined"?self:{};var zs=$s.Raven;var Ws=new js;Ws.noConflict=function(){$s.Raven=zs;return Ws};Ws.afterLoad();var Hs=Ws;function Gs(e){if(e.$root===e){return"root instance"}var t=e._isVue?e.$options.name||e.$options._componentTag:e.name;return(t?"component <"+t+">":"anonymous component")+(e._isVue&&e.$options.__file?" at "+e.$options.__file:"")}function Vs(a,e){e=e||window.Vue;if(!e||!e.config)return;var o=e.config.errorHandler;e.config.errorHandler=function e(t,r,i){var n={};if(Object.prototype.toString.call(r)==="[object Object]"){n.componentName=Gs(r);n.propsData=r.$options.propsData}if(typeof i!=="undefined"){n.lifecycleHook=i}a.captureException(t,{extra:n});if(typeof o==="function"){o.call(this,t,r,i)}}}var Qs=Vs;var qs=function(e,t,r){Hs.setUserContext({apikey:t.session.apikey,config:r});Hs.config(a.sentryDSN,{instrument:false,autoBreadcrumbs:false,whitelistUrls:["static.filestackapi.com/picker/v3/picker-1.2.0.js"]}).addPlugin(Qs,e).install()};var Ks=function(e){var t=Number(e.version.split(".")[0]);if(t>=2){e.mixin({beforeCreate:i})}else{var r=e.prototype._init;e.prototype._init=function(e){if(e===void 0)e={};e.init=e.init?[i].concat(e.init):i;r.call(this,e)}}function i(){var e=this.$options;if(e.store){this.$store=typeof e.store==="function"?e.store():e.store}else if(e.parent&&e.parent.$store){this.$store=e.parent.$store}}};var Ys=typeof window!=="undefined"&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
1function Xs(t){if(!Ys){return}t._devtoolHook=Ys;Ys.emit("vuex:init",t);Ys.on("vuex:travel-to-state",function(e){t.replaceState(e)});t.subscribe(function(e,t){Ys.emit("vuex:mutation",e,t)})}function Zs(t,r){Object.keys(t).forEach(function(e){return r(t[e],e)})}function Js(e){return e!==null&&typeof e==="object"}function el(e){return e&&typeof e.then==="function"}var tl=function e(t,r){this.runtime=r;this._children=Object.create(null);this._rawModule=t;var i=t.state;this.state=(typeof i==="function"?i():i)||{}};var rl={namespaced:{configurable:true}};rl.namespaced.get=function(){return!!this._rawModule.namespaced};tl.prototype.addChild=function e(t,r){this._children[t]=r};tl.prototype.removeChild=function e(t){delete this._children[t]};tl.prototype.getChild=function e(t){return this._children[t]};tl.prototype.update=function e(t){this._rawModule.namespaced=t.namespaced;if(t.actions){this._rawModule.actions=t.actions}if(t.mutations){this._rawModule.mutations=t.mutations}if(t.getters){this._rawModule.getters=t.getters}};tl.prototype.forEachChild=function e(t){Zs(this._children,t)};tl.prototype.forEachGetter=function e(t){if(this._rawModule.getters){Zs(this._rawModule.getters,t)}};tl.prototype.forEachAction=function e(t){if(this._rawModule.actions){Zs(this._rawModule.actions,t)}};tl.prototype.forEachMutation=function e(t){if(this._rawModule.mutations){Zs(this._rawModule.mutations,t)}};Object.defineProperties(tl.prototype,rl);var il=function e(t){this.register([],t,false)};il.prototype.get=function e(t){return t.reduce(function(e,t){return e.getChild(t)},this.root)};il.prototype.getNamespace=function e(t){var r=this.root;return t.reduce(function(e,t){r=r.getChild(t);return e+(r.namespaced?t+"/":"")},"")};il.prototype.update=function e(t){nl([],this.root,t)};il.prototype.register=function e(r,t,i){var n=this;if(i===void 0)i=true;var a=new tl(t,i);if(r.length===0){this.root=a}else{var o=this.get(r.slice(0,-1));o.addChild(r[r.length-1],a)}if(t.modules){Zs(t.modules,function(e,t){n.register(r.concat(t),e,i)})}};il.prototype.unregister=function e(t){var r=this.get(t.slice(0,-1));var i=t[t.length-1];if(!r.getChild(i).runtime){return}r.removeChild(i)};function nl(e,t,r){t.update(r);if(r.modules){for(var i in r.modules){if(!t.getChild(i)){return}nl(e.concat(i),t.getChild(i),r.modules[i])}}}var al;var ol=function e(t){var r=this;if(t===void 0)t={};if(!al&&typeof window!=="undefined"&&window.Vue){bl(window.Vue)}var i=t.plugins;if(i===void 0)i=[];var n=t.strict;if(n===void 0)n=false;var a=t.state;if(a===void 0)a={};if(typeof a==="function"){a=a()||{}}this._committing=false;this._actions=Object.create(null);this._actionSubscribers=[];this._mutations=Object.create(null);this._wrappedGetters=Object.create(null);this._modules=new il(t);this._modulesNamespaceMap=Object.create(null);this._subscribers=[];this._watcherVM=new al;var o=this;var s=this;var l=s.dispatch;var c=s.commit;this.dispatch=function e(t,r){return l.call(o,t,r)};this.commit=function e(t,r,i){return c.call(o,t,r,i)};this.strict=n;fl(this,a,[],this._modules.root);ul(this,a);i.forEach(function(e){return e(r)});if(al.config.devtools){Xs(this)}};var sl={state:{configurable:true}};sl.state.get=function(){return this._vm._data.$$state};sl.state.set=function(e){};ol.prototype.commit=function e(t,r,i){var n=this;var a=yl(t,r,i);var o=a.type;var s=a.payload;var l={type:o,payload:s};var c=this._mutations[o];if(!c){return}this._withCommit(function(){c.forEach(function e(t){t(s)})});this._subscribers.forEach(function(e){return e(l,n.state)})};ol.prototype.dispatch=function e(t,r){var i=this;var n=yl(t,r);var a=n.type;var o=n.payload;var s={type:a,payload:o};var l=this._actions[a];if(!l){return}this._actionSubscribers.forEach(function(e){return e(s,i.state)});return l.length>1?Promise.all(l.map(function(e){return e(o)})):l[0](o)};ol.prototype.subscribe=function e(t){return ll(t,this._subscribers)};ol.prototype.subscribeAction=function e(t){return ll(t,this._actionSubscribers)};ol.prototype.watch=function e(t,r,i){var n=this;return this._watcherVM.$watch(function(){return t(n.state,n.getters)},r,i)};ol.prototype.replaceState=function e(t){var r=this;this._withCommit(function(){r._vm._data.$$state=t})};ol.prototype.registerModule=function e(t,r,i){if(i===void 0)i={};if(typeof t==="string"){t=[t]}this._modules.register(t,r);fl(this,this.state,t,this._modules.get(t),i.preserveState);ul(this,this.state)};ol.prototype.unregisterModule=function e(t){var r=this;if(typeof t==="string"){t=[t]}this._modules.unregister(t);this._withCommit(function(){var e=_l(r.state,t.slice(0,-1));al.delete(e,t[t.length-1])});cl(this)};ol.prototype.hotUpdate=function e(t){this._modules.update(t);cl(this,true)};ol.prototype._withCommit=function e(t){var r=this._committing;this._committing=true;t();this._committing=r};Object.defineProperties(ol.prototype,sl);function ll(t,r){if(r.indexOf(t)<0){r.push(t)}return function(){var e=r.indexOf(t);if(e>-1){r.splice(e,1)}}}function cl(e,t){e._actions=Object.create(null);e._mutations=Object.create(null);e._wrappedGetters=Object.create(null);e._modulesNamespaceMap=Object.create(null);var r=e.state;fl(e,r,[],e._modules.root,true);ul(e,r,t)}function ul(r,e,t){var i=r._vm;r.getters={};var n=r._wrappedGetters;var a={};Zs(n,function(e,t){a[t]=function(){return e(r)};Object.defineProperty(r.getters,t,{get:function(){return r._vm[t]},enumerable:true})});var o=al.config.silent;al.config.silent=true;r._vm=new al({data:{$$state:e},computed:a});al.config.silent=o;if(r.strict){gl(r)}if(i){if(t){r._withCommit(function(){i._data.$$state=null})}al.nextTick(function(){return i.$destroy()})}}function fl(n,r,i,e,a){var t=!i.length;var o=n._modules.getNamespace(i);if(e.namespaced){n._modulesNamespaceMap[o]=e}if(!t&&!a){var s=_l(r,i.slice(0,-1));var l=i[i.length-1];n._withCommit(function(){al.set(s,l,e.state)})}var c=e.context=dl(n,o,i);e.forEachMutation(function(e,t){var r=o+t;hl(n,r,e,c)});e.forEachAction(function(e,t){var r=e.root?t:o+t;var i=e.handler||e;vl(n,r,i,c)});e.forEachGetter(function(e,t){var r=o+t;ml(n,r,e,c)});e.forEachChild(function(e,t){fl(n,r,i.concat(t),e,a)})}function dl(s,l,e){var t=l==="";var r={dispatch:t?s.dispatch:function(e,t,r){var i=yl(e,t,r);var n=i.payload;var a=i.options;
1var o=i.type;if(!a||!a.root){o=l+o}return s.dispatch(o,n)},commit:t?s.commit:function(e,t,r){var i=yl(e,t,r);var n=i.payload;var a=i.options;var o=i.type;if(!a||!a.root){o=l+o}s.commit(o,n,a)}};Object.defineProperties(r,{getters:{get:t?function(){return s.getters}:function(){return pl(s,l)}},state:{get:function(){return _l(s.state,e)}}});return r}function pl(r,i){var n={};var a=i.length;Object.keys(r.getters).forEach(function(e){if(e.slice(0,a)!==i){return}var t=e.slice(a);Object.defineProperty(n,t,{get:function(){return r.getters[e]},enumerable:true})});return n}function hl(r,e,i,n){var t=r._mutations[e]||(r._mutations[e]=[]);t.push(function e(t){i.call(r,n.state,t)})}function vl(n,e,a,o){var t=n._actions[e]||(n._actions[e]=[]);t.push(function e(t,r){var i=a.call(n,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:n.getters,rootState:n.state},t,r);if(!el(i)){i=Promise.resolve(i)}if(n._devtoolHook){return i.catch(function(e){n._devtoolHook.emit("vuex:error",e);throw e})}else{return i}})}function ml(e,t,r,i){if(e._wrappedGetters[t]){return}e._wrappedGetters[t]=function e(t){return r(i.state,i.getters,t.state,t.getters)}}function gl(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:true,sync:true})}function _l(e,t){return t.length?t.reduce(function(e,t){return e[t]},e):e}function yl(e,t,r){if(Js(e)&&e.type){r=t;t=e;e=e.type}return{type:e,payload:t,options:r}}function bl(e){if(al&&e===al){return}al=e;Ks(al)}var wl=Fl(function(a,e){var r={};kl(e).forEach(function(e){var t=e.key;var n=e.val;r[t]=function e(){var t=this.$store.state;var r=this.$store.getters;if(a){var i=Il(this.$store,"mapState",a);if(!i){return}t=i.context.state;r=i.context.getters}return typeof n==="function"?n.call(this,t,r):t[n]};r[t].vuex=true});return r});var Al=Fl(function(o,e){var r={};kl(e).forEach(function(e){var t=e.key;var a=e.val;r[t]=function e(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var i=this.$store.commit;if(o){var n=Il(this.$store,"mapMutations",o);if(!n){return}i=n.context.commit}return typeof a==="function"?a.apply(this,[i].concat(t)):i.apply(this.$store,[a].concat(t))}});return r});var Cl=Fl(function(i,e){var n={};kl(e).forEach(function(e){var t=e.key;var r=e.val;r=i+r;n[t]=function e(){if(i&&!Il(this.$store,"mapGetters",i)){return}return this.$store.getters[r]};n[t].vuex=true});return n});var El=Fl(function(o,e){var r={};kl(e).forEach(function(e){var t=e.key;var a=e.val;r[t]=function e(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var i=this.$store.dispatch;if(o){var n=Il(this.$store,"mapActions",o);if(!n){return}i=n.context.dispatch}return typeof a==="function"?a.apply(this,[i].concat(t)):i.apply(this.$store,[a].concat(t))}});return r});var Sl=function(e){return{mapState:wl.bind(null,e),mapGetters:Cl.bind(null,e),mapMutations:Al.bind(null,e),mapActions:El.bind(null,e)}};function kl(t){return Array.isArray(t)?t.map(function(e){return{key:e,val:e}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function Fl(r){return function(e,t){if(typeof e!=="string"){t=e;e=""}else if(e.charAt(e.length-1)!=="/"){e+="/"}return r(e,t)}}function Il(e,t,r){var i=e._modulesNamespaceMap[r];return i}var xl={Store:ol,install:bl,version:"3.0.1",mapState:wl,mapMutations:Al,mapGetters:Cl,mapActions:El,createNamespacedHelpers:Sl};var Ol=function e(t){if(typeof t.getAsEntry==="function"){return t.getAsEntry()}else if(typeof t.webkitGetAsEntry==="function"){return t.webkitGetAsEntry()}return undefined};var Tl=function e(t){var r=[".DS_Store"];return r.indexOf(t)===-1};var Rl=function e(t,r){return t+"/"+r};var Dl=function e(t){var s=[];var r=function i(n){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var o=[];return new Promise(function(r){if(n.isDirectory){var e=n.createReader();var t=function t(){e.readEntries(function(e){e.forEach(function(e){o.push(i(e,Rl(a,n.name)))});if(e.length){t()}else{Promise.all(o).then(r)}})};t()}else if(n.isFile){n.file(function(e){if(Tl(e.name)){e.path=Rl(a,e.name);s.push(e)}r()})}})};var i=function e(r){return new Promise(function(t){r.getAsString(function(e){s.push({url:e,source:"dragged-from-web"});t()})})};var n=[];for(var a=0;a<t.length;a+=1){var o=t[a];if(o.kind==="file"&&o.type&&o.type!=="application/x-moz-file"){var l=o.getAsFile();if(l){s.push(l);
1n.push(Promise.resolve())}}else if(o.kind==="file"){var c=Ol(o);if(c){n.push(r(c))}}else if(o.kind==="string"&&o.type==="text/uri-list"){n.push(i(o))}}return Promise.all(n).then(function(){return s})};var Ul=function e(i){return new Promise(function(e){var t=[];for(var r=0;r<i.length;r+=1){t.push(i[r])}e(t)})};var Ll=function(e){if(!e){return Promise.resolve([])}if(e.items){return Dl(e.items)}if(e.files){return Ul(e.files)}return Promise.resolve([])};var Pl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var Nl={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.fileAboutToBeDropped,expression:"fileAboutToBeDropped"}],ref:"dropZone",staticClass:"fsp-dropzone-overlay"},[i("div",{staticClass:"fsp-dropzone-overlay__text"})])},staticRenderFns:[],data:function e(){return{fileAboutToBeDropped:false}},methods:Pl({},xl.mapActions(["addFile","updateSelectLabelActive"]),{dragenter:function e(t){t.preventDefault();this.fileAboutToBeDropped=true;this.updateSelectLabelActive(true)},dragover:function e(t){t.preventDefault()},dragleave:function e(){this.fileAboutToBeDropped=false;this.updateSelectLabelActive(false)},drop:function e(t){var r=this;t.preventDefault();this.fileAboutToBeDropped=false;Ll(t.dataTransfer).then(function(e){e.forEach(function(e){r.addFile(e)})})},paste:function e(t){var r=this;Ll(t.clipboardData).then(function(e){e.forEach(function(e){e.name="pasted file";r.addFile(e)})})}}),mounted:function e(){var t=this.$root.$el;var r=this.$refs.dropZone;t.addEventListener("dragenter",this.dragenter,false);t.addEventListener("paste",this.paste,false);r.addEventListener("dragover",this.dragover,false);r.addEventListener("dragleave",this.dragleave,false);r.addEventListener("drop",this.drop,false)},beforeDestroy:function e(){var t=this.$root.$el;t.removeEventListener("dragenter",this.dragenter);t.removeEventListener("paste",this.paste)}};var Ml=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var Bl={render:function e(){var r=this;var t=r.$createElement;var i=r._self._c||t;return i("div",{staticClass:"fsp-mobile-menu",on:{click:function e(t){r.toggleNav()}}})},staticRenderFns:[],computed:Ml({},xl.mapGetters(["mobileNavActive"])),methods:Ml({},xl.mapActions(["updateMobileNavActive"]),{toggleNav:function e(){this.updateMobileNavActive(!this.mobileNavActive)}})};var jl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var $l={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("div",{staticClass:"fsp-header",class:{"fsp-header--hide":t.hideHeader}},[t.source&&!t.mobileNavActive?i("span",{staticClass:"fsp-header-icon",class:"fsp-navbar--"+t.source.name,attrs:{title:t.t(t.source.label)}}):t._e(),t._v(" "),t.source&&t.isCustomSource&&!t.mobileNavActive?i("span",{staticClass:"fsp-header-text--visible"},[t._v(" "+t._s(t.t(t.customSourceLabel))+" ")]):t._e(),t._v(" "),t.mobileNavActive?i("span",{staticClass:"fsp-header-text"},[t._v(" "+t._s(t.t("Select From"))+" ")]):t._e(),t._v(" "),!t.mobileNavActive?t._t("default"):t._e(),t._v(" "),!t.hideMenu&&!t.cropFiles?i("mobile-menu-button"):t._e()],2)},staticRenderFns:[],computed:jl({},xl.mapGetters(["cropFiles","customSourceName","fromSources","mobileNavActive"]),{customSourceLabel:function e(){return this.customSourceName||"Custom Source"},isCustomSource:function e(){return this.source.name==="customsource"}}),components:{MobileMenuButton:Bl},props:["source","hideHeader","hideMenu"]};var zl="Expected a function";var Wl=0/0;var Hl="[object Symbol]";var Gl=/^\s+|\s+$/g;var Vl=/^[-+]0x[0-9a-f]+$/i;var Ql=/^0b[01]+$/i;var ql=/^0o[0-7]+$/i;var Kl=parseInt;var Yl=typeof Xa=="object"&&Xa&&Xa.Object===Object&&Xa;var Xl=typeof self=="object"&&self&&self.Object===Object&&self;var Zl=Yl||Xl||Function("return this")();var Jl=Object.prototype;var ec=Jl.toString;var tc=Math.max,rc=Math.min;var ic=function(){return Zl.Date.now()};function nc(i,n,e){var a,o,s,l,r,c,u=0,t=false,f=false,d=true;if(typeof i!="function"){throw new TypeError(zl)}n=cc(n)||0;if(oc(e)){t=!!e.leading;f="maxWait"in e;s=f?tc(cc(e.maxWait)||0,n):s;d="trailing"in e?!!e.trailing:d}function p(e){var t=a,r=o;a=o=undefined;u=e;l=i.apply(r,t);return l}function h(e){u=e;r=setTimeout(g,n);return t?p(e):l}function v(e){var t=e-c,r=e-u,i=n-t;return f?rc(i,s-r):i}function m(e){var t=e-c,r=e-u;return c===undefined||t>=n||t<0||f&&r>=s}function g(){var e=ic();if(m(e)){return _(e)}r=setTimeout(g,v(e))}function _(e){r=undefined;if(d&&a){return p(e)}a=o=undefined;return l}function y(){if(r!==undefined){clearTimeout(r)}u=0;a=c=o=r=undefined}function b(){return r===undefined?l:_(ic())}function w(){var e=ic(),t=m(e);a=arguments;o=this;c=e;if(t){if(r===undefined){return h(c)}if(f){r=setTimeout(g,n);return p(c)}}if(r===undefined){r=setTimeout(g,n)}return l}w.cancel=y;w.flush=b;return w}function ac(e,t,r){var i=true,n=true;if(typeof e!="function"){throw new TypeError(zl)}if(oc(r)){i="leading"in r?!!r.leading:i;n="trailing"in r?!!r.trailing:n}return nc(e,t,{leading:i,maxWait:t,trailing:n})}function oc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function sc(e){return!!e&&typeof e=="object"}function lc(e){return typeof e=="symbol"||sc(e)&&ec.call(e)==Hl}function cc(e){if(typeof e=="number"){return e}if(lc(e)){return Wl}if(oc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oc(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=e.replace(Gl,"");var r=Ql.test(e);return r||ql.test(e)?Kl(e.slice(2),r?2:8):Vl.test(e)?Wl:+e}var uc=ac;var fc=eo(function(i){!function(e,t,r){if("object"!="undefined"&&i.exports
1)i.exports=r();else if(typeof undefined=="function"&&undefined.amd)undefined(t,r);else e[t]=r()}(Xa,"bowser",function(){var F=true;function o(r){function e(e){var t=r.match(e);return t&&t.length>1&&t[1]||""}function t(e){var t=r.match(e);return t&&t.length>1&&t[2]||""}var i=e(/(ipod|iphone|ipad)/i).toLowerCase(),n=/like android/i.test(r),a=!n&&/android/i.test(r),o=/nexus\s*[0-6]\s*/i.test(r),s=!o&&/nexus\s*[0-9]+/i.test(r),l=/CrOS/.test(r),c=/silk/i.test(r),u=/sailfish/i.test(r),f=/tizen/i.test(r),d=/(web|hpw)os/i.test(r),p=/windows phone/i.test(r),h=/SamsungBrowser/i.test(r),v=!p&&/windows/i.test(r),m=!i&&!c&&/macintosh/i.test(r),g=!a&&!u&&!f&&!d&&/linux/i.test(r),_=t(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),y=e(/version\/(\d+(\.\d+)?)/i),b=/tablet/i.test(r)&&!/tablet pc/i.test(r),w=!b&&/[^-]mobi/i.test(r),A=/xbox/i.test(r),C;if(/opera/i.test(r)){C={name:"Opera",opera:F,version:y||e(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}}else if(/opr\/|opios/i.test(r)){C={name:"Opera",opera:F,version:e(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||y}}else if(/SamsungBrowser/i.test(r)){C={name:"Samsung Internet for Android",samsungBrowser:F,version:y||e(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}}else if(/coast/i.test(r)){C={name:"Opera Coast",coast:F,version:y||e(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}}else if(/yabrowser/i.test(r)){C={name:"Yandex Browser",yandexbrowser:F,version:y||e(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}}else if(/ucbrowser/i.test(r)){C={name:"UC Browser",ucbrowser:F,version:e(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}}else if(/mxios/i.test(r)){C={name:"Maxthon",maxthon:F,version:e(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}}else if(/epiphany/i.test(r)){C={name:"Epiphany",epiphany:F,version:e(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}}else if(/puffin/i.test(r)){C={name:"Puffin",puffin:F,version:e(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}}else if(/sleipnir/i.test(r)){C={name:"Sleipnir",sleipnir:F,version:e(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}}else if(/k-meleon/i.test(r)){C={name:"K-Meleon",kMeleon:F,version:e(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}}else if(p){C={name:"Windows Phone",osname:"Windows Phone",windowsphone:F};if(_){C.msedge=F;C.version=_}else{C.msie=F;C.version=e(/iemobile\/(\d+(\.\d+)?)/i)}}else if(/msie|trident/i.test(r)){C={name:"Internet Explorer",msie:F,version:e(/(?:msie |rv:)(\d+(\.\d+)?)/i)}}else if(l){C={name:"Chrome",osname:"Chrome OS",chromeos:F,chromeBook:F,chrome:F,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}}else if(/edg([ea]|ios)/i.test(r)){C={name:"Microsoft Edge",msedge:F,version:_}}else if(/vivaldi/i.test(r)){C={name:"Vivaldi",vivaldi:F,version:e(/vivaldi\/(\d+(\.\d+)?)/i)||y}}else if(u){C={name:"Sailfish",osname:"Sailfish OS",sailfish:F,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}}else if(/seamonkey\//i.test(r)){C={name:"SeaMonkey",seamonkey:F,version:e(/seamonkey\/(\d+(\.\d+)?)/i)}}else if(/firefox|iceweasel|fxios/i.test(r)){C={name:"Firefox",firefox:F,version:e(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)};if(/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(r)){C.firefoxos=F;C.osname="Firefox OS"}}else if(c){C={name:"Amazon Silk",silk:F,version:e(/silk\/(\d+(\.\d+)?)/i)}}else if(/phantom/i.test(r)){C={name:"PhantomJS",phantom:F,version:e(/phantomjs\/(\d+(\.\d+)?)/i)}}else if(/slimerjs/i.test(r)){C={name:"SlimerJS",slimer:F,version:e(/slimerjs\/(\d+(\.\d+)?)/i)}}else if(/blackberry|\bbb\d+/i.test(r)||/rim\stablet/i.test(r)){C={name:"BlackBerry",osname:"BlackBerry OS",blackberry:F,version:y||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}}else if(d){C={name:"WebOS",osname:"WebOS",webos:F,version:y||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)};/touchpad\//i.test(r)&&(C.touchpad=F)}else if(/bada/i.test(r)){C={name:"Bada",osname:"Bada",bada:F,version:e(/dolfin\/(\d+(\.\d+)?)/i)}}else if(f){C={name:"Tizen",osname:"Tizen",tizen:F,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||y}}else if(/qupzilla/i.test(r)){C={name:"QupZilla",qupzilla:F,version:e(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||y}}else if(/chromium/i.test(r)){C={name:"Chromium",chromium:F,version:e(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||y}}
1else if(/chrome|crios|crmo/i.test(r)){C={name:"Chrome",chrome:F,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}}else if(a){C={name:"Android",version:y}}else if(/safari|applewebkit/i.test(r)){C={name:"Safari",safari:F};if(y){C.version=y}}else if(i){C={name:i=="iphone"?"iPhone":i=="ipad"?"iPad":"iPod"};if(y){C.version=y}}else if(/googlebot/i.test(r)){C={name:"Googlebot",googlebot:F,version:e(/googlebot\/(\d+(\.\d+))/i)||y}}else{C={name:e(/^(.*)\/(.*) /),version:t(/^(.*)\/(.*) /)}}if(!C.msedge&&/(apple)?webkit/i.test(r)){if(/(apple)?webkit\/537\.36/i.test(r)){C.name=C.name||"Blink";C.blink=F}else{C.name=C.name||"Webkit";C.webkit=F}if(!C.version&&y){C.version=y}}else if(!C.opera&&/gecko\//i.test(r)){C.name=C.name||"Gecko";C.gecko=F;C.version=C.version||e(/gecko\/(\d+(\.\d+)?)/i)}if(!C.windowsphone&&(a||C.silk)){C.android=F;C.osname="Android"}else if(!C.windowsphone&&i){C[i]=F;C.ios=F;C.osname="iOS"}else if(m){C.mac=F;C.osname="macOS"}else if(A){C.xbox=F;C.osname="Xbox"}else if(v){C.windows=F;C.osname="Windows"}else if(g){C.linux=F;C.osname="Linux"}function E(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return undefined}}var S="";if(C.windows){S=E(e(/Windows ((NT|XP)( \d\d?.\d)?)/i))}else if(C.windowsphone){S=e(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i)}else if(C.mac){S=e(/Mac OS X (\d+([_\.\s]\d+)*)/i);S=S.replace(/[_\s]/g,".")}else if(i){S=e(/os (\d+([_\s]\d+)*) like mac os x/i);S=S.replace(/[_\s]/g,".")}else if(a){S=e(/android[ \/-](\d+(\.\d+)*)/i)}else if(C.webos){S=e(/(?:web|hpw)os\/(\d+(\.\d+)*)/i)}else if(C.blackberry){S=e(/rim\stablet\sos\s(\d+(\.\d+)*)/i)}else if(C.bada){S=e(/bada\/(\d+(\.\d+)*)/i)}else if(C.tizen){S=e(/tizen[\/\s](\d+(\.\d+)*)/i)}if(S){C.osversion=S}var k=!C.windows&&S.split(".")[0];if(b||s||i=="ipad"||a&&(k==3||k>=4&&!w)||C.silk){C.tablet=F}else if(w||i=="iphone"||i=="ipod"||a||o||C.blackberry||C.webos||C.bada){C.mobile=F}if(C.msedge||C.msie&&C.version>=10||C.yandexbrowser&&C.version>=15||C.vivaldi&&C.version>=1||C.chrome&&C.version>=20||C.samsungBrowser&&C.version>=4||C.firefox&&C.version>=20||C.safari&&C.version>=6||C.opera&&C.version>=10||C.ios&&C.osversion&&C.osversion.split(".")[0]>=6||C.blackberry&&C.version>=10.1||C.chromium&&C.version>=20){C.a=F}else if(C.msie&&C.version<10||C.chrome&&C.version<20||C.firefox&&C.version<20||C.safari&&C.version<6||C.opera&&C.version<10||C.ios&&C.osversion&&C.osversion.split(".")[0]<6||C.chromium&&C.version<20){C.c=F}else C.x=F;return C}var s=o(typeof navigator!=="undefined"?navigator.userAgent||"":"");s.test=function(e){for(var t=0;t<e.length;++t){var r=e[t];if(typeof r==="string"){if(r in s){return true}}}return false};function i(e){return e.split(".").length}function n(e,t){var r=[],i;if(Array.prototype.map){return Array.prototype.map.call(e,t)}for(i=0;i<e.length;i++){r.push(t(e[i]))}return r}function l(e){var r=Math.max(i(e[0]),i(e[1]));var t=n(e,function(e){var t=r-i(e);e=e+new Array(t+1).join(".0");return n(e.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});while(--r>=0){if(t[0][r]>t[1][r]){return 1}else if(t[0][r]===t[1][r]){if(r===0){return 0}}else{return-1}}}function a(e,t,r){var i=s;if(typeof t==="string"){r=t;t=void 0}if(t===void 0){t=false}if(r){i=o(r)}var n=""+i.version;for(var a in e){if(e.hasOwnProperty(a)){if(i[a]){if(typeof e[a]!=="string"){throw new Error("Browser version in the minVersion map should be a string: "+a+": "+String(e))}return l([n,e[a]])<0}}}return t}function e(e,t,r){return!a(e,t,r)}s.isUnsupportedBrowser=a;s.compareVersions=l;s.check=e;s._detect=o;s.detect=o;return s})});var dc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var pc={render:function e(){var r=this;var t=r.$createElement;var i=r._self._c||t;return i("div",{class:r.itemClasses,attrs:{title:r.t(r.itemLabel)},on:{click:function e(t){r.onNavClick(r.sourceName)}}},[r.sourceSelectedCount?i("span",{staticClass:"fsp-badge--source"},[r._v(r._s(r.sourceSelectedCount))]):r._e(),r._v(" "),i("span",{staticClass:"fsp-source-list__icon fsp-icon",class:"fsp-icon--"+r.sourceName}),r._v(" "),i("span",{staticClass:"fsp-source-list__label"},[r._v(r._s(r.t(r.itemLabel)))]),r._v(" "),r.isAuthorized?i("span",{staticClass:"fsp-source-list__logout",on:{click:function e(t){t.stopPropagation();r.logout(r.sourceName)}}},[r._v(" "+r._s(r.t("Sign Out")))]):r._e(),r._v(" "),r.isMobileLocal?i("input",{ref:"mobileLoca
1Input",staticClass:"fsp-local-source__fileinput",attrs:{type:"file",accept:r.acceptStr,multiple:r.multiple,disabled:!r.canAddMoreFiles},on:{change:function e(t){r.onFilesSelected(t)},click:function e(t){r.clearEvent(t)}}}):r._e()])},staticRenderFns:[],props:["sourceName","sourceLabel"],computed:dc({},xl.mapGetters(["accept","canAddMoreFiles","clouds","customSourceName","filesWaiting","route","maxFiles","mobileNavActive","uploadStarted"]),{acceptStr:function e(){if(this.accept){return this.accept.join(",")}return undefined},itemClasses:function e(){return{"fsp-source-list__item":true,"fsp-source-list__item--active":this.isSelectedSource,"fsp-source-list__item--disabled":this.uploadStarted}},itemLabel:function e(){if(this.sourceName==="customsource"){return this.customSourceName||"Custom Source"}return this.sourceLabel},isSelectedSource:function e(){if(this.route[0]==="summary"){return false}var t=this.route.length>1?this.route[1]:"local_file_system";return t===this.sourceName},isAuthorized:function e(){if(this.sourceName==="customsource"){return false}var t=this.clouds[this.sourceName];return t&&t.status==="ready"},isMobileLocal:function e(){if(fc.mobile&&this.mobileNavActive){return this.sourceName==="local_file_system"||this.sourceName==="video"||this.sourceName==="audio"||this.sourceName==="webcam"}return false},multiple:function e(){return this.maxFiles>1},sourceSelectedCount:function e(){var t=this;var r=this.filesWaiting.filter(function(e){return e.source===t.sourceName});return r.length}}),methods:dc({},xl.mapActions(["updateMobileNavActive","addFile","logout"]),{clearEvent:function e(t){t.target.value=null},onNavClick:function e(t){if(this.isMobileLocal){this.openSelectFile()}else{this.updateMobileNavActive(false);this.$store.dispatch("goToLastPath",t)}},openSelectFile:function e(){this.$refs.mobileLocaInput.click()},onFilesSelected:function e(t){var r=t.target.files;for(var i=0;i<r.length;i+=1){this.addFile(r[i])}}})};var hc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var vc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return!t.cropFiles&&!t.isSidebarHidden?i("div",{class:t.sidebarClasses},[i("div",{staticClass:"fsp-source-list"},t._l(t.fromSources,function(e){return i("source-nav-item",{key:e.name,attrs:{"source-name":e.name,"source-label":e.label}})}))]):t._e()},staticRenderFns:[],components:{SourceNavItem:pc},computed:hc({},xl.mapGetters(["isSidebarHidden","cropFiles","fromSources","mobileNavActive"]),{sidebarClasses:function e(){return{"fsp-modal__sidebar--mobile":this.mobileNavActive,"fsp-modal__sidebar":true}}})};var mc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var gc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return!t.isInlineDisplay?i("div",{staticClass:"fsp-picker__brand-container"},[i("transition",{attrs:{name:"fsp-picker-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:!t.isInlineDisplay&&!t.whitelabel,expression:"!isInlineDisplay && !whitelabel"}],staticClass:"fsp-picker__brand"},[t._v(" Powered by "),i("span",{staticClass:"fsp-icon--filestack"}),t._v(" Filestack ")])])],1):t._e()},staticRenderFns:[],data:function e(){return{whitelabel:true}},computed:mc({},xl.mapGetters(["cloudClient","isInlineDisplay","prefetched"])),mounted:function e(){var t=this;if(!this.prefetched){this.cloudClient.prefetch().then(function(e){t.$store.commit("PREFETCH_DONE");t.whitelabel=e.whitelabel}).catch(function(){return undefined})}}};var _c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var yc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("div",{staticClass:"fsp-picker"},[i("div",{staticClass:"fsp-modal"},[i("span",{staticClass:"fsp-picker__close-button fsp-icon--close-modal",attrs:{title:"Click here or hit ESC to close picker"},on:{click:t.closePicker}}),t._v(" "),t._t("sidebar"),t._v(" "),i("div",{staticClass:"fsp-modal__body",class:t.getModalClasses},[t._t("header"),t._v(" "),i("div",{ref:"content",staticClass:"fsp-content",class:t.getContentClasses,on:{scroll:t.handleScroll}},[t._t("body")],2),t._v(" "),t._t("footer")],2)],2),t._v(" "),i("branding")],1)},staticRenderFns:[],components:{Branding:gc,Sidebar:vc},computed:_c({},xl.mapGetters(["cropFiles","currentCloud","filesWaiting","isInlineDis
1play","isSidebarHidden","route","uploadStarted"]),{isCloud:function e(){return Object.keys(this.currentCloud).length>0},isLocal:function e(){return this.route[1]==="local_file_system"},isWebcam:function e(){return["webcam","audio","video"].indexOf(this.route[1]!==-1)},isTransformer:function e(){return this.route[0]==="transform"},getContentClasses:function e(){return{"fsp-content--selected-items":this.isTransformer||!this.isLocal&&!this.isWebcam&&(this.filesWaiting.length>0||this.uploadStarted),"fsp-content--transformer":this.isTransformer}},getModalClasses:function e(){return{"fsp-modal__body--full-width":this.isSidebarHidden&&!this.isTransformer,"fsp-modal__body--transformer":this.isTransformer,"fsp-modal__body--sidebar-disabled":!this.isTransformer&&this.cropFiles}}}),methods:{closePicker:function e(){this.$store.dispatch("cancelPick");this.$root.$destroy()},handleScroll:function e(){var t=this;var r=this.$refs.content;if(r&&this.isCloud){var i=r.scrollHeight-Math.round(r.scrollTop,10);var n=[r.clientHeight,r.clientHeight-1,r.clientHeight+1];var a=n.indexOf(i)!==-1;this.getNext=this.getNext||uc(function(){if(!t.isCloud){return}t.$store.dispatch("fetchCloudPath",{name:t.currentCloud.name,path:t.currentCloud.lastPath,next:t.currentCloud.next,load:false})},3e3);if(a&&this.currentCloud.next&&!this.currentCloud.isLoading){this.getNext()}}}}};var bc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var wc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("modal",[i("content-header",{attrs:{slot:"header","hide-menu":true},slot:"header"},[i("span",{staticClass:"fsp-header-text--visible"},[t._v(t._s(t.t(t.headerText)))])]),t._v(" "),i("div",{staticClass:"fsp-blocked__container",attrs:{slot:"body"},slot:"body"},[i("div",{staticClass:"fsp-blocked__icon"}),t._v(" "),i("div",{staticClass:"fsp-blocked__title"},[t._v(t._s(t.t(t.titleText)))]),t._v(" "),i("div",{staticClass:"fsp-text__subheader"},[t._v(t._s(t.t(t.subheaderText)))]),t._v(" "),i("div",{staticClass:"fsp-text__subheader"},[t._v(" Please contact the owner of this page. ")])]),t._v(" "),i("modal")],1)},staticRenderFns:[],components:{ContentHeader:$l,Modal:yc},computed:bc({},xl.mapGetters(["isBlocked"]),{headerText:function e(){return this.isBlocked?"Application Blocked":"Application Unavailable"},titleText:function e(){return this.isBlocked?"This application is blocked":"This application is unavailable"},subheaderText:function e(){return this.isBlocked?"For some reason this application is blocked.":"For some reason this application is unavailable."}})};var Ac=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var Cc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return t.notifications.length>0?i("div",{staticClass:"fsp-notifications__container",class:t.getClasses},[i("div",{staticClass:"fsp-notifications__message"},[t._v(" "+t._s(t.t(t.mostRecentNotification.message))+" ")]),t._v(" "),i("span",{staticClass:"fsp-icon fsp-notifications__close-button",on:{click:t.removeAllNotifications}})]):t._e()},staticRenderFns:[],computed:Ac({},xl.mapGetters(["notifications"]),{getClasses:function e(){return{"fsp-notifications__success":!!this.mostRecentNotification.success}},mostRecentNotification:function e(){return this.notifications[this.notifications.length-1]}}),methods:Ac({},xl.mapActions(["removeAllNotifications"]))};var Ec=[{name:"local_file_system",label:"My Device",ui:"local"},{name:"webcam",label:"Take Photo",ui:"webcam"},{name:"video",label:"Record Video",ui:"opentok"},{name:"audio",label:"Record Audio",ui:"opentok"},{name:"customsource",label:"Custom Source",ui:"cloud",layout:"list"},{name:"dropbox",label:"Dropbox",ui:"cloud",layout:"list"},{name:"evernote",label:"Evernote",ui:"cloud",layout:"list"},{name:"facebook",label:"Facebook",ui:"cloud",layout:"hybrid"},{name:"flickr",label:"Flickr",ui:"cloud",layout:"grid"},{name:"instagram",label:"Instagram",ui:"cloud",layout:"grid"},{name:"box",label:"Box",ui:"cloud",layout:"list"},{name:"googledrive",label:"Google Drive",ui:"cloud",layout:"list"},{name:"github",label:"Github",ui:"cloud",layout:"list"},{name:"gmail",label:"Gmail",ui:"cloud",layout:"list"},{name:"picasa",label:"Google Photos",ui:"cloud",layout:"hybrid"},{name:"onedrive",label:"OneDrive",ui:"cloud",layout:"list"},{name:"onedriveforbusiness",label:"OneDrive Business",ui:"cloud",layout:"list"},{name:"clouddrive",label:"Cloud Drive",ui:"cloud",layout:"list"},{name:"imagesearch",label:"Web Search",ui:"imagesearch"},{name:"url",label:"Link (URL)",ui:"url"}];var Sc=function e(t){var r=void 0;Ec.forEach(function(e){if(e.name===t){r=e}});if(!r){throw new Error('Unknown source "'+t+'"')}return r};var kc=function e(t){if(t.folder){return t.path}var r=t.path.split("/").map(function(e){return e.toLowerCase()});r.pop();return r.join("/")+"/"};var Fc=function e(t,r){var i=kc(t);var n=r.path.split("/").map(function(e){return e.toLowerCase()}).join("/");var a=n+"/";return i===n||i===a};var Ic=function e(t){var r=t.mimetype||t.type;return r&&r.indexOf("image/")!==-1};var xc=function e(t){var r=t.name&&t.name.split(".").pop().toLowerCase();var i=t.type||t.mimetype;var n=["bmp","jpg","jpeg","png","gif","svg"].indexOf(r)>=0;var a=["image/jpeg","image/jpg","image/png","image/bmp","image/gif","
1image/svg","image/svg+xml"].indexOf(i)>=0;return n||a};var Oc=function e(t){var r=t.name&&t.name.split(".").pop().toLowerCase();var i=t.type||t.mimetype;var n=["image/svg","image/svg+xml"].indexOf(i)>=0;return r==="svg"||n};var Tc=function e(t){var r=t.mimetype||t.type;return r&&r.indexOf("audio/")!==-1};var Rc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};function Dc(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Uc={render:function e(){var i=this;var t=i.$createElement;var n=i._self._c||t;return i.files.length>0?n("div",{staticClass:"fsp-grid",class:"fps-grid__type-"+i.cloudViewType},[i._l(i.onlyFolders,function(r){return n("div",{key:r.path,staticClass:"fsp-grid__cell",class:{"fsp-grid__cell--selected":i.isSelected(r)},attrs:{title:r.name},on:{click:function e(t){i.handleFolderClick(t,r)}}},[i.isSelected(r)?n("span",{staticClass:"fsp-badge fsp-badge--bright fsp-badge--file"},[i._v(" "+i._s(i.getFileCount(r))+" ")]):i._e(),i._v(" "),!i.isSelected(r)||i.cloudViewType==="grid"?n("span",{staticClass:"fsp-grid__icon",class:i.getIconClass("fsp-grid__icon-folder",r)}):i._e(),i._v(" "),n("span",{staticClass:"fsp-grid__text",class:{"fsp-grid__text--selected":i.isSelected(r)}},[i._v(i._s(r.name))]),i._v(" "),i.isSelected(r)?n("span",{staticClass:"fsp-grid__icon--selected",attrs:{title:"Deselect folder"},on:{click:function e(t){t.stopPropagation();i.deselectFolder(r)}}}):i._e(),i._v(" "),!i.isLoading(r)&&!i.isSelected(r)?n("span",{staticClass:"fsp-grid__icon-folder-add",attrs:{title:"Add folder"},on:{click:function e(t){t.stopPropagation();i.addFile(r)}}}):i._e(),i._v(" "),i.isLoading(r)?n("div",{staticClass:"fsp-loading--folder"}):i._e()])}),i._v(" "),i._l(i.onlyFiles,function(r){return n("div",{key:r.path,staticClass:"fsp-grid__cell",class:{"fsp-grid__cell--selected":i.isSelected(r),"fsp-grid__cell--thumbnail":i.isImage(r)},attrs:{title:r.name},on:{click:function e(t){i.handleClickFile(t,r)}}},[i.isAudio(r)?n("span",{staticClass:"fsp-grid__icon",class:i.getIconClass("fsp-grid__icon-audio",r)}):i.isImage(r)?n("img",{staticClass:"fsp-grid__icon fsp-grid__thumbnail",attrs:{src:r.thumbnail,alt:r.name}}):r.mimetype==="application/pdf"?n("span",{staticClass:"fsp-grid__icon",class:i.getIconClass("fsp-grid__icon-pdf",r)}):r.mimetype==="application/zip"?n("span",{staticClass:"fsp-grid__icon",class:i.getIconClass("fsp-grid__icon-zip",r)}):n("span",{staticClass:"fsp-grid__icon",class:i.getIconClass("fsp-grid__icon-file",r)}),i._v(" "),n("span",{staticClass:"fsp-grid__text",class:{"fsp-grid__text--selected":i.isSelected(r)}},[i._v(i._s(r.name))]),i._v(" "),i.isSelected(r)?n("span",{staticClass:"fsp-grid__icon--selected"}):i._e(),i._v(" "),n("div",{staticClass:"fsp-grid__cell--dark"})])})],2):i._e()},staticRenderFns:[],props:["files"],data:function e(){return{lastClicked:null}},computed:Rc({},xl.mapGetters(["cloudFolders","filesWaiting","cloudViewType"]),{onlyFolders:function e(){return this.files.filter(function(e){return e.folder})},onlyFiles:function e(){return this.files.filter(function(e){return!e.folder})}}),methods:Rc({},xl.mapActions(["setCloudViewType","addFile","deselectFolder","goToDirectory"]),{handleClickFile:function e(t,r){if(!this.lastClicked){this.lastClicked=r}if(t.shiftKey){var i=this.files.indexOf(r);var n=this.files.indexOf(this.lastClicked);var a=Math.min(i,n);var o=Math.max(i,n)+1;for(var s=a;s<o;s+=1){if(!this.files[s]||this.files[s]===this.lastClicked||this.files[s].state===this.lastClicked.state){continue}this.addFile(this.files[s])}this.lastClicked=r;return}this.lastClicked=r;this.addFile(r)},handleFolderClick:function e(t,r){if(t.shiftKey){this.handleClickFile(t,r);return}this.goToDirectory(r)},getIconClass:function e(t,r){var i;return i={},Dc(i,t,!this.isSelected(r)),Dc(i,t+"--selected",this.isSelected(r)),i},isAudio:function e(t){return Tc(t)},isImage:function e(t){return Ic(t)},isLoading:function e(t){if(t.folder){return this.cloudFolders[t.path]&&this.cloudFolders[t.path].loading}return false},isSelected:function e(t){if(t.folder){return this.getFileCount(t)>0}return t.state},getFileCount:function e(t){return this.filesWaiting.filter(function(e){return Fc(e,t)}).length}})};var Lc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("div",{staticClass:"fsp-empty"},[i("div",{staticClass:"fsp-empty__message"},[t._v("This folder is empty.")]),t._v(" "),i("span",{staticClass:"fsp-empty__back-button",on:{click:t.goBack}
1},[t._v("Go back")])])},staticRenderFns:[],methods:{goBack:function e(){this.$store.commit("GO_BACK_WITH_ROUTE")}}};var Pc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("div",{staticClass:"fsp-cloud__folder-view"},[t.folderIsEmpty?i("empty-folder"):i("grid-array",{attrs:{files:t.files}})],1)},staticRenderFns:[],props:["files"],components:{GridArray:Uc,EmptyFolder:Lc},computed:{folderIsEmpty:function e(){return!this.$store.getters.currentCloud.isLoading&&!this.$store.getters.currentCloud.isErrored&&!this.$store.getters.currentCloudFiles.length}}};function Nc(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++){r[t]=e[t]}return r}else{return Array.from(e)}}var Mc={render:function e(){var i=this;var t=i.$createElement;var n=i._self._c||t;return n("div",{staticClass:"fsp-breadcrumb__container"},[i.crumbs.length<=3?n("span",{staticStyle:{display:"flex"}},i._l(i.crumbs,function(r){return n("span",{key:r.path,staticClass:"fsp-breadcrumb__label",on:{click:function e(t){i.handleClick(r)}}},[i._v(" "+i._s(r.label)+" ")])})):n("span",{staticStyle:{display:"flex"}},i._l(i.truncateCrumbs(i.crumbs),function(r){return n("span",{key:r.path,staticClass:"fsp-breadcrumb__label",on:{click:function e(t){i.handleClick(r)}}},[i._v(" "+i._s(r.label)+" ")])}))])},staticRenderFns:[],props:["crumbs","onClick"],methods:{truncateCrumbs:function e(r){var t=[].concat(r[0]);var i=r.filter(function(e,t){return t>=r.length-2});t.push.apply(t,[{path:"",label:"..."}].concat(Nc(i)));return t},handleClick:function e(t){if(t.path&&t.label){this.onClick(t)}}}};var Bc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("transition",{attrs:{name:"fsp-loading--fade"}},[i("div",{staticClass:"fsp-loading"})])},staticRenderFns:[]};var jc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var $c={render:function e(){var r=this;var t=r.$createElement;var i=r._self._c||t;return i("div",{staticClass:"fsp-cloud__container"},[r.currentCloud.isLoading?i("loading"):r._e(),r._v(" "),r.currentCloud.isErrored?i("div",{staticClass:"fsp-cloud-error"},[i("div",{staticClass:"fsp-cloud-error__text"},[r._v("Something went wrong.")]),r._v(" "),i("div",{key:"retryCall",staticClass:"fsp-button fsp-button--outline",on:{click:r.tryAgain}},[r._v(" Retry ")])]):r.currentCloud.isUnauthorized?i("div",{staticClass:"fsp-source-auth__wrapper"},[i("span",{staticClass:"fsp-icon fsp-icon--auth fsp-source-auth__el",class:"fsp-icon--"+r.currentCloud.name}),r._v(" "),i("div",{staticClass:"fsp-text__title fsp-source-auth__el"},[r._v(r._s(r.t("Select Files from"))+" "+r._s(r.currentDisplay.label))]),r._v(" "),i("div",{staticClass:"fsp-source-auth__el"},[i("span",{staticClass:"fsp-text__subheader"},[r._v(" "+r._s(r.t("You need to authenticate with "))+" "),i("span",{staticClass:"fsp-cloudname"},[r._v(r._s(r.currentDisplay.label))]),r._v(". "),i("div",[r._v(r._s(r.t("We only extract images and never modify or delete them.")))])])]),r._v(" "),i("button",{staticClass:"fsp-button fsp-button--auth fsp-source-auth__el",attrs:{type:"button"},on:{click:r.authorize}},[r._v(" "+r._s(r.t("Connect"))+" "),i("span",{staticClass:"fsp-cloudname"},[r._v(r._s(r.currentDisplay.label))])]),r._v(" "),i("div",{staticClass:"fsp-source-auth__el"},[i("span",{staticClass:"fsp-text__subheader"},[r._v(" "+r._s(r.t("A new page will open to connect your account."))+" ")])])]):!r.currentCloud.isLoading?i("div",{staticClass:"fsp-cloud__files-container"},[i("div",{staticClass:"fsp-cloud__breadcrumbs"},[r.currentDisplay.layout!=="grid"?i("breadcrumbs",{attrs:{crumbs:r.currentCrumbs,"on-click":r.updatePath}}):r._e(),r._v(" "),i("div",{staticClass:"fsp-cloud_view-type",on:{click:function e(t){t.preventDefault();r.setViewType()}}},[i("span",{staticClass:"fsp-cloud_view-type-icon",class:this.getViewTypeIconClass()})])],1),r._v(" "),i("cloud-grid",{attrs:{files:r.currentCloudFiles}})],1):r._e()],1)},staticRenderFns:[],components:{CloudGrid:Pc,Breadcrumbs:Mc,Loading:Bc},computed:jc({},xl.mapGetters(["apiClient","cloudFolders","currentCloud","currentCloudFiles","customSourceName","cloudViewType"]),{currentDisplay:function e(){return Sc(this.currentCloud.name)},currentLabel:function e(){if(this.currentCloud.name==="customsource"){return this.customSourceName||"Custom Source"}return this.currentDisplay.label},currentCrumbs:function e(){var t=this;return this.currentCloud.path.map(function(e){if(e==="/"){return{label:t.currentLabel,path:e}}return{label:t.cloudFolders[e].name,path:e}})},currentSource:function e(){if(!this.$store.getters.currentCloud||!Object.keys(this.$store.getters.currentCloud).length){return null}return Sc(this.$store.getters.currentCloud.name)}}),mounted:function e(){var t=this.$session.get("cloud-grid-view");if(t){this.setCloudViewType(t);return}else if(this.currentCloudFiles.every(Ic)&&this.currentSource&&this.currentSource.layout==="hybrid"){this.setCloudViewType("grid");return}this.setCloudViewType("list")},methods:jc({},xl.mapActions(["fetchCloudPath","setCloudViewType"]),{setViewType:function e(){var t=this.cloudViewType==="list"?"grid":"list";this.$session.set("cloud-grid-view",t);this.setCloudViewType(t)},getViewTypeIconClass:function e(){return"fsp-cloud_view-type-icon-"+(this.cloudViewType==="list"?"grid":"list")},authorize:function e(){var t=this;var r=this.currentCloud.redirect;var i=window.open(r,"_blank");var n=function e(){setTimeout(function(){if(i&&i.closed!==true){setTimeout(e,100)}else{setTimeout(function(){t.fetchCloudPath({name:t.currentCloud.name})},100)}},1e3)};n()}
1,tryAgain:function e(){return this.fetchCloudPath({name:this.currentCloud.name})},updatePath:function e(t){var r=this.currentCloud.path.indexOf(t.path);if(r===this.currentCloud.path.length-1){return}var i=this.currentCloud.path.filter(function(e,t){return t<=r});var n=["source",this.currentCloud.name];if(t.path==="/"){this.$store.commit("CHANGE_ROUTE",n)}else{n.push(i);this.$store.commit("CHANGE_ROUTE",n)}}})};var zc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("div",{staticClass:"fsp-footer",class:{"fsp-footer--appeared":t.isVisible}},[i("div",{staticClass:"fsp-footer__nav"},[i("span",{staticClass:"fsp-footer__nav--left"},[t._t("nav-left")],2),t._v(" "),i("span",{staticClass:"fsp-footer__nav--center",style:{width:t.fullWidth?"100%":null}},[t._t("nav-center")],2),t._v(" "),i("span",{staticClass:"fsp-footer__nav--right"},[t._t("nav-right")],2)])])},staticRenderFns:[],props:["isVisible","fullWidth"]};var Wc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var Hc={render:function e(){var r=this;var t=r.$createElement;var i=r._self._c||t;return i("div",{staticClass:"fsp-image-search"},[r.isSearching?i("loading"):r._e(),r._v(" "),i("div",{staticClass:"fsp-image-search__form-container",class:{"fsp-image-search__form-container--results":r.resultsFound}},[i("form",{staticClass:"fsp-url-source__form",on:{submit:function e(t){t.preventDefault();r.fetch(t)}}},[i("input",{ref:"searchInput",staticClass:"fsp-url-source__input",attrs:{placeholder:r.placeholderText,disabled:r.isSearching},domProps:{value:r.imageSearchInput},on:{input:r.updateInput}}),r._v(" "),r._m(0)])]),r._v(" "),i("div",{staticClass:"fsp-image-search__results",class:{"fsp-content--selected-items":r.resultsFound&&r.filesWaiting.length}},[r.resultsFound?i("grid-array",{staticStyle:{"padding-top":"0px"},attrs:{files:r.imageSearchResults}}):r._e()],1)],1)},staticRenderFns:[function(){var e=this;var t=e.$createElement;var r=e._self._c||t;return r("button",{staticClass:"fsp-button fsp-url-source__submit-button",attrs:{type:"submit"}},[r("div",{staticClass:"fsp-icon fsp-image-search__submit-icon"})])}],components:{GridArray:Uc,Loading:Bc},computed:Wc({},xl.mapGetters(["isSearching","noResultsFound","resultsFound","imageSearchInput","imageSearchResults","filesWaiting"]),{placeholderText:function e(){return this.t("Search images")+"..."}}),mounted:function e(){this.setCloudViewType("grid")},methods:Wc({},xl.mapActions(["updateSearchInput","fetchImages","setCloudViewType"]),{fetch:function e(){this.fetchImages();this.$refs.searchInput.blur()},updateInput:function e(t){this.updateSearchInput(t.target.value)},clearSearch:function e(){this.updateSearchInput("")}})};var Gc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var Vc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("div",{staticClass:"fsp-select-labels",class:{"fsp-select-labels--active":t.selectLabelIsActive}},[i("div",{staticClass:"fsp-drop-area__title fsp-text__title"},[t._v(" "+t._s(t.t("Select Files to Upload"))+" ")]),t._v(" "),i("div",{staticClass:"fsp-drop-area__subtitle fsp-text__subheader"},[t._v(" "+t._s(t.t("or Drag and Drop, Copy and Paste Files"))+" ")])])},staticRenderFns:[],computed:Gc({},xl.mapGetters(["selectLabelIsActive"]))};var Qc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var qc={render:function e(){var r=this;var t=r.$createElement;var i=r._self._c||t;return i("div",{staticClass:"fsp-drop-area-container"},[i("div",{ref:"dropArea",staticClass:"fsp-drop-area",on:{click:r.openSelectFile}},[i("select-files-label"),r._v(" "),i("input",{ref:"fileUploadInput",staticClass:"fsp-local-source__fileinput",attrs:{type:"file",id:"fsp-fileUpload",accept:r.acceptStr,multiple:r.multiple,disabled:!r.canAddMoreFiles},on:{change:function e(t){r.onFilesSelected(t)},click:function e(t){r.clearEvent(t)}}})],1)])},staticRenderFns:[],components:{SelectFilesLabel:Vc},computed:Qc({},xl.mapGetters(["accept","canAddMoreFiles","maxFiles"]),{acceptStr:function e(){if(this.accept){return this.accept.join(",")}return undefined},multiple:function e(){return this.maxFiles>1}}),methods:Qc({},xl.mapActions(["addFile","updateSelectLabelActive"]),{clearEvent:function e(t){t.target.value=null},onMouseover:function e(){this.updateSelectLabelActive(true)},onMouseout:function e(){this.updateSelectLabelActive(false)},onFilesSelected:function e(t){var r=t.target.files;for(var i=0;i<r.length;i+=1){this.addFile(r[i])}},openSelectFile:function e(){this.$refs.fileUploadInput.click()}}
1),mounted:function e(){var t=this.$refs.dropArea;if(t){t.addEventListener("mouseover",this.onMouseover);t.addEventListener("mouseout",this.onMouseout)}}};var Kc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var Yc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("div",{staticClass:"fsp-webcam__container"},[t.webCamError?i("div",[t.webCamError==="disabled"?i("div",{staticClass:"fsp-source-auth__wrapper"},[i("span",{staticClass:"fsp-icon fsp-icon--auth fsp-source-auth__el fsp-icon--webcam-disabled"}),t._v(" "),i("div",{staticClass:"fsp-text__title fsp-source-auth__el"},[t._v(t._s(t.t("Webcam Disabled")))]),t._v(" "),i("div",{staticClass:"fsp-source-auth__el"},[i("span",{staticClass:"fsp-text__subheader"},[t._v(" "+t._s(t.t("Please enable your webcam to take a photo."))+" ")])])]):t._e(),t._v(" "),t.webCamError==="browser"?i("div",{staticClass:"fsp-source-auth__wrapper"},[i("span",{staticClass:"fsp-icon fsp-icon--auth fsp-source-auth__el fsp-icon--webcam-disabled"}),t._v(" "),i("div",{staticClass:"fsp-text__title fsp-source-auth__el"},[t._v(t._s(t.t("Webcam Not Supported")))]),t._v(" "),i("div",{staticClass:"fsp-source-auth__el"},[i("span",{staticClass:"fsp-text__subheader"},[t._v(" "+t._s(t.t("Your current browser does not support webcam functionality."))+" ")]),t._v(" "),i("br"),t._v(" "),i("span",{staticClass:"fsp-text__subheader"},[t._v(" "+t._s(t.t("We suggest using Chrome or Firefox."))+" ")])])]):t._e()]):t._e(),t._v(" "),!t.webCamError?i("div",{staticClass:"fsp-webcam"},[i("img",{directives:[{name:"show",rawName:"v-show",value:t.pictureTaken,expression:"pictureTaken"}],ref:"photo",staticClass:"fsp-webcam__image"}),t._v(" "),i("video",{directives:[{name:"show",rawName:"v-show",value:!t.pictureTaken,expression:"!pictureTaken"}],ref:"video",staticClass:"fsp-webcam__video",attrs:{src:t.src}})]):t._e(),t._v(" "),!t.webCamError?i("footer-nav",{attrs:{slot:"footer","is-visible":true},slot:"footer"},[i("span",{attrs:{slot:"nav-center"},slot:"nav-center"},[!t.pictureTaken?i("span",{staticClass:"fsp-button fsp-button--primary fsp-button--webcam",on:{click:t.getPhoto}},[i("span",{staticClass:"fsp-icon--webcam-start"})]):t._e(),t._v(" "),t.pictureTaken?i("span",{staticClass:"fsp-button fsp-button--cancel fsp-button--webcam",on:{click:t.clearPhoto}},[i("span",{staticClass:"fsp-icon--webcam-stop"})]):t._e()]),t._v(" "),t.pictureTaken?i("span",{staticClass:"fsp-button fsp-button--primary",attrs:{slot:"nav-right",title:"Next"},on:{click:t.addPhoto},slot:"nav-right"},[t._v(" "+t._s(t.t("Next"))+" ")]):t._e()]):t._e()],1)},staticRenderFns:[],components:{FooterNav:zc},data:function e(){return{pictureTaken:false,webCamImageSrc:"",webCamError:"",hasUserMedia:false}},methods:Kc({},xl.mapActions(["addFile"]),{webCamReady:function e(){var t=this;navigator.mediaDevices.getUserMedia({video:true,audio:false}).then(function(e){t.$refs.video.srcObject=e;t.$refs.video.play();t.hasUserMedia=true}).catch(function(){t.webCamError="disabled"})},turnWebCamOff:function e(){if(this.$refs.video&&this.$refs.video.srcObject){this.$refs.video.srcObject.getTracks().forEach(function(e){e.stop()})}},clearPhoto:function e(){var t=document.createElement("canvas");var r=t.getContext("2d");r.fillRect(0,0,t.width,t.height);this.webCamImageSrc="";this.$refs.photo.setAttribute("src",this.webCamImageSrc);this.pictureTaken=false;this.webCamReady()},getPhoto:function e(){if(!this.hasUserMedia)return null;var t=this.$refs.video;var r=document.createElement("canvas");var i=r.getContext("2d");r.height=t.clientHeight;r.width=t.clientWidth;i.drawImage(t,0,0);this.webCamImageSrc=r.toDataURL();this.$refs.photo.setAttribute("src",this.webCamImageSrc);this.canvas=r;this.pictureTaken=true;this.turnWebCamOff();return r},addPhoto:function e(){var t=this;var r=this.$store.getters.lang;this.canvas.toBlob(function(e){e.name="webcam-"+(new Date).toLocaleString(r)+".png";t.addFile(e)})}}),beforeMount:function e(){if(navigator.mediaDevices){this.webCamReady()}else{this.webCamError="browser"}this.pictureTaken=false},beforeDestroy:function e(){this.turnWebCamOff()}};var Xc={render:function e(){var r=this;var t=r.$createElement;var i=r._self._c||t;return i("div",{staticClass:"fsp-url-source"},[r.isUrlFetching?i("loading"):r._e(),r._v(" "),i("div",{staticClass:"fsp-url-source__container"},[i("form",{staticClass:"fsp-url-source__form",on:{submit:function e(t){t.preventDefault();r.fetchUrl(t)}}},[i("input",{directives:[{name:"model",rawName:"v-model",value:r.url,expression:"url"}],staticClass:"fsp-url-source__input",attrs:{type:"url",placeholder:r.t("Enter a URL")},domProps:{value:r.url},on:{input:function e(t){if(t.target.composing){return}r.url=t.target.value}}}
1),r._v(" "),r._m(0)])])],1)},staticRenderFns:[function(){var e=this;var t=e.$createElement;var r=e._self._c||t;return r("button",{staticClass:"fsp-button fsp-url-source__submit-button",attrs:{type:"submit"}},[r("div",{staticClass:"fsp-icon fsp-url-source__submit-icon"})])}],components:{Loading:Bc},data:function e(){return{url:""}},computed:{isUrlFetching:function e(){return this.$store.getters.isUrlFetching}},methods:{fetchUrl:function e(){var t=this;if(this.url){this.$store.dispatch("fetchUrl",this.url).then(function(e){if(e&&t.$store.getters.maxFiles>1){t.$store.commit("CHANGE_ROUTE",["summary"])}})}}}};var Zc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var Jc={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("div",{staticClass:"fsp-video"},[t.filesList.length>0?i("div",{staticClass:"fsp-summary__go-back",attrs:{title:"Go to summary"},on:{click:t.goToSummary}}):t._e(),t._v(" "),t.state==="connecting"?i("loading"):t.state==="accessDenied"?i("div",{staticClass:"fsp-source-auth__wrapper"},[i("span",{staticClass:"fsp-icon fsp-icon--auth fsp-source-auth__el fsp-icon--video-disabled"}),t._v(" "),i("div",{staticClass:"fsp-text__title fsp-source-auth__el"},[t._v(t._s(t.t("Webcam Disabled")))]),t._v(" "),i("div",{staticClass:"fsp-source-auth__el"},[i("span",{staticClass:"fsp-text__subheader"},[t._v(" "+t._s(t.t("Please enable your webcam to record video or audio."))+" ")])]),t._v(" "),i("div",{key:"retryCam",staticClass:"fsp-button fsp-button--outline",on:{click:t.reset}},[t._v(" Retry ")])]):t.state==="scripterror"?i("div",{staticClass:"fsp-source-auth__wrapper"},[i("span",{staticClass:"fsp-icon fsp-icon--auth fsp-source-auth__el fsp-icon--video-disabled"}),t._v(" "),i("div",{staticClass:"fsp-text__title fsp-source-auth__el"},[t._v(t._s("Failed to load "+t.type))]),t._v(" "),i("div",{staticClass:"fsp-source-auth__el"},[i("div",{key:"retryCall",staticClass:"fsp-button fsp-button--outline",on:{click:t.reset}},[t._v(" Retry ")])])]):t.state==="browsererror"?i("div",{staticClass:"fsp-source-auth__wrapper"},[i("span",{staticClass:"fsp-icon fsp-icon--auth fsp-source-auth__el fsp-icon--webcam-disabled"}),t._v(" "),i("div",{staticClass:"fsp-text__title fsp-source-auth__el"},[t._v(t._s(t.t("Webcam Not Supported")))]),t._v(" "),i("div",{staticClass:"fsp-source-auth__el"},[i("span",{staticClass:"fsp-text__subheader"},[t._v(" "+t._s(t.t("Your current browser does not support webcam functionality."))+" ")]),t._v(" "),i("br"),t._v(" "),i("span",{staticClass:"fsp-text__subheader"},[t._v(" "+t._s(t.t("We suggest using Chrome or Firefox."))+" ")])])]):t._e(),t._v(" "),i("div",{ref:"video",staticClass:"fsp-video__container"}),t._v(" "),i("footer-nav",{attrs:{slot:"footer","is-visible":t.state!=="connecting"&&!t.isErrored},slot:"footer"},[i("span",{attrs:{slot:"nav-left"},slot:"nav-left"}),t._v(" "),i("span",{attrs:{slot:"nav-center"},slot:"nav-center"},[t.state==="ready"?i("span",{staticClass:"fsp-button fsp-button--primary fsp-button--video",attrs:{title:"Start"},on:{click:t.start}},[i("span",{staticClass:"fsp-icon--video-start"})]):t._e(),t._v(" "),t.state==="recording"?i("span",{staticClass:"fsp-button fsp-button--cancel fsp-button--video",attrs:{title:"Stop"},on:{click:t.stop}},[i("span",{staticClass:"fsp-icon--video-stop"})]):t._e()])])],1)},staticRenderFns:[],props:{type:String},components:{FooterNav:zc,Loading:Bc},computed:{client:function e(){return this.$store.getters.cloudClient},filesList:function e(){return this.$store.getters.filesList},maxFiles:function e(){return this.$store.getters.maxFiles},routesHistory:function e(){return this.$store.getters.routesHistory},isErrored:function e(){return["browsererror","scripterror","accessDenied"].indexOf(this.state)!==-1}},data:function e(){return{archiveId:null,attempt:0,json:{},state:"connecting",publisher:null,session:null,publisherOptions:{insertMode:"append",width:"100%",height:"100%"}}},methods:Zc({},xl.mapActions(["addFile"]),{goToSummary:function e(){this.$store.commit("CHANGE_ROUTE",["summary"]);this.$store.dispatch("updateMobileNavActive",false)},loadOpenTok:function e(){var t=this;this.state="connecting";
1return oo(a.vendor.opentok+"?"+this.attempt).catch(function(){t.state="scripterror"})},reset:function e(){var t=this;if(this.session){if(this.publisher)this.session.unpublish(this.publisher);this.session.disconnect()}this.attempt+=1;this.loadOpenTok().then(function(e){t.initialize(e)})},initialize:function e(i){var n=this;if(i){this.client.tokInit(this.$props.type).then(function(e){var t=JSON.parse(e.text);var r=Zc({},n.publisherOptions,{mirror:false,resolution:n.$store.getters.videoResolution,publishVideo:n.$props.type==="video"});n.json=t;n.session=i.initSession(t.key,t.ot_session_id);n.session.connect(t.ot_token,function(e){if(!e&&n.$refs&&n.$refs.video){n.publisher=i.initPublisher(n.$refs.video,r);n.session.publish(n.publisher);n.publisher.on("accessAllowed",function(){n.state="ready"});n.publisher.on("accessDenied",function(){n.state="accessDenied"})}else{n.state="errored"}});n.session.on("archiveStarted",function(e){n.archiveId=e.id;n.state="recording"});n.session.on("archiveStopped",function(e){n.archiveId=e.id})}).catch(function(){n.state="errored"})}},start:function e(){var t=this;this.state="recording";this.client.tokStart(this.$props.type,this.json.key,this.json.ot_session_id).catch(function(e){t.state="errored";console.log(e)})},stop:function e(){var n=this;if(!this.archiveId){console.log("No archive ID");return}this.state="ready";this.client.tokStop(this.$props.type,this.json.key,this.json.ot_session_id,this.archiveId).then(function(){var e=n.$store.getters.lang;var t=(new Date).toLocaleString(e,{month:"short",day:"numeric",hour:"numeric",minute:"numeric",year:"numeric"});var r=n.$props.type==="audio"?"mp3":"mp4";var i=n.$props.type==="audio"?"audio/mp3":"video/mp4";n.addFile({source:n.$props.type,sourceKind:"cloud",path:"/"+n.archiveId+"/recording-"+t+"."+r,name:"recording-"+t+"."+r,mimetype:i});if(n.maxFiles>1){n.goToSummary()}}).catch(function(e){n.state="errored";console.log(e)})}}),beforeMount:function e(){if(!navigator.mediaDevices){this.state="browsererror"}},mounted:function e(){var t=this;if(this.state!=="browsererror"){this.loadOpenTok().then(function(e){t.initialize(e)})}},destroyed:function e(){if(this.session){if(this.publisher)this.session.unpublish(this.publisher);this.session.disconnect()}},watch:{type:function e(){var t=this;if(this.session){if(this.publisher)this.session.unpublish(this.publisher);this.session.disconnect();this.loadOpenTok().then(function(e){t.initialize(e)})}}}};var eu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var tu={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("modal",[i("div",{attrs:{slot:"header"},slot:"header"},[t.isInsideCloudFolder?i("div",{staticClass:"fsp-summary__go-back",attrs:{title:"Go back"},on:{click:t.goBack}}):t._e(),t._v(" "),i("content-header",{attrs:{source:t.currentSource}})],1),t._v(" "),i("sidebar",{attrs:{slot:"sidebar"},slot:"sidebar"}),t._v(" "),t.currentSource.ui==="local"?i("local",{attrs:{slot:"body"},slot:"body"}):t._e(),t._v(" "),t.currentSource.ui==="cloud"?i("cloud",{attrs:{slot:"body"},slot:"body"}):t._e(),t._v(" "),t.currentSource.ui==="webcam"?i("webcam",{attrs:{slot:"body"},slot:"body"}):t._e(),t._v(" "),t.currentSource.ui==="opentok"?i("open-tok",{attrs:{slot:"body",type:t.currentSource.name},slot:"body"}):t._e(),t._v(" "),t.currentSource.ui==="imagesearch"?i("image-search",{attrs:{slot:"body"},slot:"body"}):t._e(),t._v(" "),t.currentSource.ui==="url"?i("url",{attrs:{slot:"body"},slot:"body"}):t._e(),t._v(" "),i("footer-nav",{attrs:{slot:"footer","is-visible":t.filesWaiting.length>0&&t.currentSource.ui!=="webcam"&&t.currentSource.ui!=="opentok"},slot:"footer"},[i("span",{staticClass:"fsp-footer-text",attrs:{slot:"nav-left"},slot:"nav-left"},[i("span",[t._v(t._s(t.t("Selected Files"))+": "+t._s(t.filesWaiting.length))])]),t._v(" "),i("span",{staticClass:"fsp-button fsp-button--primary",class:{"fsp-button--disabled":!t.canStartUpload},attrs:{slot:"nav-right",title:"Next"},on:{click:t.goToSummary},slot:"nav-right"},[!t.canStartUpload&&t.filesWaiting.length!==0?i("span",[t._v(" "+t._s(t.minFilesMessage)+" ")]):i("span",[t._v(t._s(t.t("View/Edit Selected")))])])])],1
1)},staticRenderFns:[],components:{Cloud:$c,ContentHeader:$l,FooterNav:zc,ImageSearch:Hc,Local:qc,Modal:yc,OpenTok:Jc,Sidebar:vc,Url:Xc,Webcam:Yc},computed:eu({},xl.mapGetters(["canStartUpload","filesNeededCount","filesWaiting","mobileNavActive","minFiles","route"]),{currentSource:function e(){var t=this.route[1];return Sc(t)},minFilesMessage:function e(){if(this.filesNeededCount===1){return this.t("Add")+" 1 "+this.t("more file")}if(this.filesNeededCount>1){return this.t("Add")+" "+this.filesNeededCount+" "+this.t("more files")}return null},isInsideCloudFolder:function e(){return this.currentSource.ui==="cloud"&&!this.mobileNavActive&&this.route[2]&&this.route[2].length}}),methods:eu({},xl.mapActions(["deselectAllFiles","updateMobileNavActive"]),{goBack:function e(){this.$store.commit("GO_BACK_WITH_ROUTE_CURRENT_TYPE")},goToSummary:function e(){if(this.canStartUpload){this.$store.commit("CHANGE_ROUTE",["summary"]);this.updateMobileNavActive(false)}}})};var ru=eo(function(t){(function(e){var n=e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype;var u=e.Blob&&function(){try{return Boolean(new Blob)}catch(e){return false}}();var f=u&&e.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch(e){return false}}();var d=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||e.MSBlobBuilder;var p=/^data:((.*?)(;charset=.*?)?)(;base64)?,/;var a=(u||d)&&e.atob&&e.ArrayBuffer&&e.Uint8Array&&function(e){var t,r,i,n,a,o,s,l,c;t=e.match(p);if(!t){throw new Error("invalid data URI")}r=t[2]?t[1]:"text/plain"+(t[3]||";charset=US-ASCII");i=!!t[4];n=e.slice(t[0].length);if(i){a=atob(n)}else{a=decodeURIComponent(n)}o=new ArrayBuffer(a.length);s=new Uint8Array(o);for(l=0;l<a.length;l+=1){s[l]=a.charCodeAt(l)}if(u){return new Blob([f?s:o],{type:r})}c=new d;c.append(o);return c.getBlob(r)};if(e.HTMLCanvasElement&&!n.toBlob){if(n.mozGetAsFile){n.toBlob=function(e,t,r){var i=this;setTimeout(function(){if(r&&n.toDataURL&&a){e(a(i.toDataURL(t,r)))}else{e(i.mozGetAsFile("blob",t))}})}}else if(n.toDataURL&&a){n.toBlob=function(e,t,r){var i=this;setTimeout(function(){e(a(i.toDataURL(t,r)))})}}}if(typeof undefined==="function"&&undefined.amd){undefined(function(){return a})}else if("object"==="object"&&t.exports){t.exports=a}else{e.dataURLtoBlob=a}})(window)});var iu={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("div",{staticClass:"fsp-progress-bar"},[i("div",{staticClass:"fsp-progress-bar__container"},[i("div",{ref:"bar",staticClass:"fsp-progress-bar__bar",staticStyle:{width:"0"}})])])},staticRenderFns:[],watch:{progress:function e(t){this.$refs.bar.style.width=t+"%"}},props:["progress"]};var nu=function e(t){var r=new DataView(t);var i=t.byteLength;var n={};var a=void 0;var o=2;var s=void 0;var l=void 0;if(r.getUint8(0)!==255||r.getUint8(1)!==216){return}while(o<i){if(r.getUint8(o)!==255){return}a=r.getUint8(o+1);s=o;l=o+2+r.getUint16(o+2);if(a>=225&&a<=239){if(n.startOffset===undefined){n.startOffset=s}n.endOffset=l}else if(n.startOffset!==undefined){return n}else if(a===218){return}o=l}};var au=function e(t){var r=new DataView(t);var i=192;var n=194;var a=224;var o=t.byteLength;var s=2;var l=void 0;var c=void 0;var u=void 0;while(s<o){l=r.getUint8(s+1);c=s+2+r.getUint16(s+2);if(l===i||l===n||l===a){u={startOffset:c,endOffset:c}}else{break}s=c}return u};var ou=function e(t){var r=nu(t);if(!r){return new ArrayBuffer(0)}return t.slice(r.startOffset,r.endOffset)};var su=function e(t,r){var i=nu(t);if(!i){i=au(t)}if(!i){return t}var n=t.slice(0,i.startOffset);var a=t.slice(i.endOffset);var o=new Uint8Array(n.byteLength+r.byteLength+a.byteLength);o.set(new Uint8Array(n),0);o.set(new Uint8Array(r),n.byteLength);o.set(new Uint8Array(a),n.byteLength+r.byteLength);return o.buffer};var lu=function e(t,r){var i=new DataView(t);var n=10;var a=void 0;if(t.byteLength<=n){return}if(i.getUint16(n)===18761){a=false}else if(i.getUint16(n)===19789){a=true}else{return}if(i.getUint16(n+2,!a)!==42){return}var o=i.getUint32(n+4,!a);if(o<8){return}var s=n+o;var l=i.getUint16(s,!a);var c=274;var u=void 0;var f=void 0;for(var d=0;d<l;d+=1){u=s+d*12+2;f=i.getUint16(u,!a);if(f===c){i.setUint16(u+8,r,!a)}}};
1var cu={extractFrom:ou,overwriteInFile:su,setOrientation:lu};var uu=9007199254740991;var fu="[object Arguments]",du="[object Function]",pu="[object GeneratorFunction]";var hu=/^(?:0|[1-9]\d*)$/;function vu(e,t){var r=-1,i=e?e.length:0,n=Array(i);while(++r<i){n[r]=t(e[r],r,e)}return n}function mu(e,t){var r=-1,i=Array(e);while(++r<e){i[r]=t(r)}return i}function gu(t,e){return vu(e,function(e){return t[e]})}function _u(t,r){return function(e){return t(r(e))}}var yu=Object.prototype;var bu=yu.hasOwnProperty;var wu=yu.toString;var Au=yu.propertyIsEnumerable;var Cu=_u(Object.keys,Object);function Eu(e,t){var r=xu(e)||Iu(e)?mu(e.length,String):[];var i=r.length,n=!!i;for(var a in e){if((t||bu.call(e,a))&&!(n&&(a=="length"||ku(a,i)))){r.push(a)}}return r}function Su(e){if(!Fu(e)){return Cu(e)}var t=[];for(var r in Object(e)){if(bu.call(e,r)&&r!="constructor"){t.push(r)}}return t}function ku(e,t){t=t==null?uu:t;return!!t&&(typeof e=="number"||hu.test(e))&&(e>-1&&e%1==0&&e<t)}function Fu(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||yu;return e===r}function Iu(e){return Tu(e)&&bu.call(e,"callee")&&(!Au.call(e,"callee")||wu.call(e)==fu)}var xu=Array.isArray;function Ou(e){return e!=null&&Du(e.length)&&!Ru(e)}function Tu(e){return Lu(e)&&Ou(e)}function Ru(e){var t=Uu(e)?wu.call(e):"";return t==du||t==pu}function Du(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uu}function Uu(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Lu(e){return!!e&&typeof e=="object"}function Pu(e){return Ou(e)?Eu(e):Su(e)}function Nu(e){return e?gu(e,Pu(e)):[]}var Mu=Nu;var Bu=function e(t){return t.indexOf("/")!==-1};var ju=function e(t,r){if(t.mimetype&&r==="image/*"){return t.mimetype.indexOf("image/")!==-1}if(t.mimetype&&r==="video/*"){return t.mimetype.indexOf("video/")!==-1}if(t.mimetype&&r==="audio/*"){return t.mimetype.indexOf("audio/")!==-1}if(t.mimetype&&r==="application/*"){return t.mimetype.indexOf("application/")!==-1}if(t.mimetype&&r==="text/*"){return t.mimetype.indexOf("text/")!==-1}return t.mimetype===r};var $u=function e(t){var r=/\.\w+$/.exec(t);return r&&r.length&&r[0]};var zu=function e(t){return t.replace(".","").toLowerCase()};var Wu=function e(t,r){var i=$u(t.name)||"";var n=zu(i);var a=zu(r);return n===a};var Hu=function(t,e){if(e===undefined){return true}return e.some(function(e){if(Bu(e)){return ju(t,e)}return Wu(t,e)})};var Gu=function e(t,r){var i=r.exposeOriginalFile;var n={filename:t.name,handle:t.handle,mimetype:t.mimetype||t.type,originalPath:t.originalPath||t.path,size:t.size,source:t.source,url:t.url,uploadId:t.uploadId};if(t.originalFile){if(i){n.originalFile=t.originalFile}else{n.originalFile={name:t.originalFile.name,type:t.originalFile.type,size:t.originalFile.size}}}if(t.status)n.status=t.status;if(t.key)n.key=t.key;if(t.container)n.container=t.container;if(t.cropData)n.cropped=JSON.parse(JSON.stringify(t.cropData));if(t.rotated)n.rotated=JSON.parse(JSON.stringify(t.rotated));return n};var Vu=function e(t,r){return t.map(function(e){return Gu(e,r)})};var Qu=function(e){if(e>=1048576){return Math.round(e/1048576)+"MB"}if(e>=1024){return Math.round(e/1024)+"KB"}return e+"B"};var qu=function(e){if(e.name.length<45){return e.name}var t=e.name.split(".");if(t.length===2){var r=t[0].substring(0,42)+"..";var i=t[1];return r+"."+i}if(t.length>2){var n=e.name.substring(0,42)+"..";var a=t[t.length-1];return n+"."+a}return e.name.substring(0,42)+"..."};var Ku=function e(){return Math.round(Math.random()*255).toString(16)};var Yu=function(e){var t="";while(t.length<e*2){t+=Ku()}return t};var Xu={Upload:"Carrega","Deselect All":"Desfés tota la selecció","View/Edit Selected":"Visualitza/Edita les seleccionades","Sign Out":"Surt","My Device":"El meu dispositiu","Web Search":"Cerca al web","Take Photo":"Fes una foto","Link (URL)":"URL","Record Video":"Grava vÃdeo","Record Audio":"Grava l'à udio","Custom Source":"Origen personalitzada",Add:"Afegeix","more file":"més arxiu","more files":"més arxius",Connect:"Connecta","Select Files from":"Selecciona arxius de","You need to authenticate with ":"Cal que t'identifiquis amb","A new page will open to connect your account.":"S'obrirà una nova pà gina per a connectar-te al teu compte","We only extract images and never modify or delete them.":"Tan sols agafem les imatges, però mai les modifiquem o eliminem.",Files:"Arxius",Images:"Imatges",Uploaded:"Carregada",Uploading:"Carregant",Completed:"Finalitzat",Filter:"Filtra","Cropped Images":"Imatges escapçades","Edited Images":"Imatges editades","Selected Files":"Arxius seleccionats","Crop is required on images":"Es requereix un cultiu a les imatges",Crop:"Escapça",Circle:"Cercle",Rotate:"Gira",Mask:"Emmascara",Revert:"Reverteix",Edit:"Edita",Reset:"Reinicia",Done:"Fet",Save:"Guardar",Next:"Pròxim","Edit Image":"Edita la imatge","This image cannot be edited":"Aquesta imatge no es pot editar","Connection Lost":"S'ha perdut la connexió","Failed While Uploading":"Error de cà rrega","Retrying in":"Reintentant en","Try again":"Torna-ho a intentar","Try now":"Prova-ho ara","or Drag and Drop, Copy and Paste Files":"o arrosega, c
1opia i enganxa els arxius","Select Files to Upload":"Selecciona els arxius a carregar","Select From":"Selecciona de","Drop your files anywhere":"","Enter a URL":"Introduïu un URL","Search images":"Cerca imatges","Webcam Disabled":"Webcam inhabilitada","Webcam Not Supported":"Webcam no admesa","Please enable your webcam to take a photo.":"Sisplau, habilita la webcam per a fer la foto","Your current browser does not support webcam functionality.":"El teu navegador no admet la funcionalitat de webcam","We suggest using Chrome or Firefox.":"Recomanem utilitzar Chrome o Firefox.","File {displayName} is not an accepted file type. The accepted file types are {types}":"L'arxiu {displayName} no té un format và lid. Els formats acceptats són {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"L'arxiu {displayName} és massa gran. El tamany mà xim acceptat és {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"El lÃmit de cà rrega és {maxFiles} {filesText}"};var Zu={Upload:"Upload","Deselect All":"Fravælg alle","View/Edit Selected":"Vis/rediger valgte","Sign Out":"Log ud","My Device":"Min enhed","Web Search":"Søgning pÃ¥ internettet","Take Photo":"Tag billede","Link (URL)":"Link (URL)","Record Video":"Optag video","Record Audio":"Optag lyd","Custom Source":"Brugerdefineret Kilde",Add:"Tilføj","more file":"fil mere","more files":"flere filer",Connect:"Forbind","Select Files from":"Vælg filer fra","You need to authenticate with ":"Du skal godkende med ","A new page will open to connect your account.":"En ny side vil Ã¥bne for at forbinde med din konto","We only extract images and never modify or delete them.":"Vi hiver kun billeder og modificerer eller sletter dem aldrig",Files:"Filer",Images:"Billeder",Uploaded:"Uploaded",Uploading:"Uploader",Completed:"Fuldført",Filter:"Filtrer","Cropped Images":"Beskærede billeder","Edited Images":"Redigerede filer","Selected Files":"Valgte filer","Crop is required on images":"Beskæring er pÃ¥krævet",Crop:"Klippe",Circle:"Cirkel",Rotate:"Rotere",Mask:"Form",Revert:"Gør om",Edit:"Rediger",Reset:"Nulstil",Done:"Færdig",Save:"Gemme",Next:"Næste","Edit Image":"Rediger billede","This image cannot be edited":"","Connection Lost":"Forbindelse tabt","Failed While Uploading":"Mislykkedes under upload","Retrying in":"Prøver igen om","Try again":"Prøv igen","Try now":"Prøv nu","or Drag and Drop, Copy and Paste Files":"Eller træk og slip, kopier og indsæt filer","Select Files to Upload":"Vælg filer til upload","Select From":"Vælg fra","Drop your files anywhere":"Drop dine filer overalt","Enter a URL":"Skriv en webadresse","Search images":"Søg billeder","Webcam Disabled":"Webkamera deaktiveret","Webcam Not Supported":"Webkamera understøttes ikke","Please enable your webcam to take a photo.":"Aktivér dit webcam for at tage et billede","Your current browser does not support webcam functionality.":"Din nuværende browser understøtter ikke webcam","We suggest using Chrome or Firefox.":"Vi foreslÃ¥r at bruge Chrome eller Firefox","File {displayName} is not an accepted file type. The accepted file types are {types}":"Filen {displayName} er ikke i et acceptabelt format. De accepterede formater er {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":" Filen {displayName} er for stor. Den accepterede filstørrelse er {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":" Vores filstørrelse er begrænset til {maxFiles} {filesText}"};var Ju={Upload:"Hochladen","Deselect All":"Deaktivieren Sie alle","View/Edit Selected":"Anzeigen/Bearbeiten ausgewählt","Sign Out":"Abmelden","My Device":"Mein Gerät","Web Search":"Internetsuche","Take Photo":"Foto machen","Link (URL)":"URL-Adresse","Record Video":"Ein Video aufnehmen","Record Audio":"Ton aufnehmen","Custom Source":"Benutzerdefinierte Quelle",Add:"Hinzufügen","more file":"weitere Datei","more files":"weitere Dateien",Connect:"Verbinden mit","Select Files from":"Wählen Sie Dateien aus","You need to authenticate with ":"Sie müssen sich mit anmelden ","A new page will open to connect your account.":"Eine neue Seite wird geöffnet, um Ihr Konto zu verbinden","We only extract images and never modify or delete them.":"Wir extrahieren Bilder nur und modifizieren oder löschen sie niemals",Files:"Dateien",Images:"Bilder",Uploaded:"Hochgeladen",Uploading:"Wird hochgeladen",Completed:"Abgeschlossen",Filter:"Filtern","Cropped Images":"Freigestellte Bilder","Edited Images":"Bearbeitete Bilder","Selected Files":"Ausgewählten Dateien","Crop is required on images":"Zuschneiden ist für Bilder erforderlich",Crop:"Scheren",Circle:"Kreis",Rotate:"Rotieren",Mask:"Verdecken",Revert:"Rückgängig",Edit:"Bearbeiten",Reset:"Zurücksetzen",Done:"Fertig",Save:"Sparen",Next:"Nächster","Edit Image":"Bild bearbeiten","This image cannot be edited":"Dieses Bild kann nicht bearbeitet werden","Connection Lost":"Keine Verbindung","Failed While Uploading":"Beim Hochladen fehlgeschlagen","Retrying in":"Wiederholen in","Try again":"Versuch es noch einmal","Try now":"Versuche es jetzt","or Drag and Drop, Copy and Paste Files":"oder ziehen, kopieren und Einfügen von Dateien","Select Files to Upload":"Wählen Sie Dateien hochladen","Select From":"Wählen Sie aus","Drop your files anywhere":"","Enter a URL":"Geben Sie eine URL ein","Search images":"Suche bilder","Webcam Disabled":"Webcam ausgeschaltet","Webcam Not Supported":"Webcam nicht unterstützt","Please enable your webcam to take a photo.":"Bitte aktivieren Sie Ihre Webcam, um ein Foto zu machen","Your current browser does not support webcam functionality.":"Ihr aktueller Browser unterstützt keine Webcam-Funktionen.","We suggest using Chrome or Firefox.":"Wir empfehlen, mit Chrome oder Firefox.","File {displayName} is not an accepted file type. The accepted file types are {types}
1":"Datei-{displayName} ist keine anerkannte Dateityp. Die akzeptierten Dateitypen sind {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"{displayName} Datei ist zu groÃ. Die akzeptierten DateigröÃe beträgt {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"Unser DateigröÃenlimit ist {maxFiles} {filesText}"};var ef={"File {displayName} is not an accepted file type. The accepted file types are {types}":"File {displayName} is not an accepted file type. The accepted file types are {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"File {displayName} is too big. The accepted file size is less than {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"Our file upload limit is {maxFiles} {filesText}"};var tf={Upload:"Subir","Deselect All":"Deseleccionar Todo","View/Edit Selected":"Ver/Editar Seleccionado","Sign Out":"Desconectar","My Device":"Mi Dispositivo","Web Search":"Búsqueda de Internet","Take Photo":"Tomar la foto","Link (URL)":"Dirección URL","Record Video":"Grabar video","Record Audio":"Grabar audio","Custom Source":"Fuente personalizada",Add:"Añadir","more file":"el archivo más","more files":"el archivo más",Connect:"Conectar","Select Files from":"Seleccione Archivos de","You need to authenticate with ":"Debe autenticarse con","A new page will open to connect your account.":"Se abrirá una nueva página para conectar tu cuenta.","We only extract images and never modify or delete them.":"Sólo extraemos imágenes y nunca las modificamos o eliminamos",Files:"Archivos",Images:"Imágenes",Uploaded:"Subido",Uploading:"Subiendo",Completed:"Completado",Filter:"Filtrar","Cropped Images":"Imágenes recortadas","Edited Images":"Imágenes editadas","Selected Files":"Archivos seleccionados","Crop is required on images":"Se requiere cultivo en las imágenes",Crop:"Corta",Circle:"Circulo",Rotate:"Rotar",Mask:"Encubrir",Revert:"Deshacer",Edit:"Editar",Reset:"Recomponer",Done:"Terminado",Save:"Salvar",Next:"Siguiente","Edit Image":"Editar imagen","This image cannot be edited":"Esta imagen no puede ser editada","Connection Lost":"Se ha perdido la conexión","Failed While Uploading":"Error durante la subida","Retrying in":"Volver a intentar en","Try again":"Inténtalo de nuevo","Try now":"Probar ahora","or Drag and Drop, Copy and Paste Files":"O arrastrar y soltar, copiar y pegar archivos","Select Files to Upload":"Seleccionar archivos para cargar","Select From":"Seleccione de","Drop your files anywhere":"","Enter a URL":"Ingresa una URL","Search images":"Búsqueda de imágenes","Webcam Disabled":"Webcam deshabilitada","Webcam Not Supported":"Webcam no soportada","Please enable your webcam to take a photo.":"Por favor, habilite su webcam para tomar una foto","Your current browser does not support webcam functionality.":"Su navegador actual no admite la funcionalidad de webcam","We suggest using Chrome or Firefox.":"Sugerimos usar Chrome o Firefox","File {displayName} is not an accepted file type. The accepted file types are {types}":"Archivo {displayName} no es un tipo de archivo aceptado. Los tipos de archivo aceptados son {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"{displayName} De archivo es demasiado grande. El tamaño aceptado es {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"Nuestro lÃmite de upload de archivo es {maxFiles} {filesText}"};var rf={Upload:"Ajouter","Deselect All":"Tout déselectionner","View/Edit Selected":"AVoir/Modifier la sélection","Sign Out":"Se déconnecter","My Device":"Mon appareil","Web Search":"Recherche Internet","Take Photo":"Prendre une Photo","Link (URL)":"Adresse URL","Record Video":"Enregistrer une vidéo","Record Audio":"Enregistrement audio","Custom Source":"Source personnalisée",Add:"Ajouter","more file":"plus de fichier","more files":"plus de fichiers",Connect:"Se connecter avec","Select Files from":"Sélectionnez des fichiers à partir de","You need to authenticate with ":"Vous devez vous connecter avec ","A new page will open to connect your account.":"Une nouvelle page s'ouvrira pour connecter votre compte.","We only extract images and never modify or delete them.":"Nous utilisons les images sans les modifier, ni les supprimer",Files:"Fichiers",Images:"Images",Uploaded:"Ajouté",Uploading:"Ajouté",Completed:"Terminé",Filter:"Filtrer","Cropped Images":"Images Rognées","Edited Images":"Images Ãdit
1ées","Selected Files":"Fichiers sélectionnés","Crop is required on images":"La culture est requise sur les images",Crop:"Rogner",Circle:"Rond",Rotate:"Pivoter",Mask:"Cache",Revert:"Annuler",Edit:"Modifier",Reset:"Annuler",Done:"Fini",Save:"Appliquer",Next:"Prochain","Edit Image":"Image Ãditer","This image cannot be edited":"Cette image ne peut pas être modifiée","Connection Lost":"Connexion perdue","Failed While Uploading":"Ãchec du chargement","Retrying in":"Réessayer dans","Try again":"Réessayer","Try now":"Essayez maintenant","or Drag and Drop, Copy and Paste Files":"ou faites glisser, copier et coller des fichiers","Select Files to Upload":"Sélectionnez des fichiers à ajouter","Select From":"Sélectionnez depuis","Drop your files anywhere":"","Enter a URL":"Entrez une URL","Search images":"Rechercher des images","Webcam Disabled":"Webcam désactivé","Webcam Not Supported":"Webcam non prise en charge","Please enable your webcam to take a photo.":"S'il vous plaît activer votre webcam pour prendre une photo","Your current browser does not support webcam functionality.":"Votre navigateur actuel ne prend pas en charge la fonctionnalité webcam","We suggest using Chrome or Firefox.":"Nous vous suggérons d'utiliser Chrome ou Firefox.","File {displayName} is not an accepted file type. The accepted file types are {types}":"{displayName} De fichier nâest pas un type de fichier accepté. Les types de fichiers acceptés sont {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"Le fichier {displayName} est trop grand. La taille de fichier acceptée est {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"Notre limite de téléchargement de fichier est {maxFiles} {filesText}"};var nf={Upload:"××¢××","Deselect All":"××× ×××ר×","View/Edit Selected":"צפ×/ער×× ×××ר×","Sign Out":"××ª× ×ª×§","My Device":"×××ש×ר ש××","Web Search":"××פ×ש ת××× ×ת","Take Photo":"×צ××","Link (URL)":"×ת××ת ×תר","Record Video":"×××§××× ×¡×¨×××","Record Audio":"××§×× ×©××¢","Custom Source":"××§×ר ××ת×× ××ש×ת",Add:"××סף","more file":"×¢×× ×§×××¥","more files":"×¢×× ×§×צ××",Connect:"××ר","Select Files from":"××ר ×§×צ×× ×-","You need to authenticate with ":"×ש צ××¨× ××××××ת ×¢×","A new page will open to connect your account.":"×¢××× ××ש ××¤×ª× ×¢× ×× ×ª ×××ר ×ת ×ש××× ×","We only extract images and never modify or delete them.":"××¢××× ×× × ×©× × ×× × ×××§ ×ת ×ת××× ×ת",Files:"×§×צ××",Images:"ת××× ×ת",Uploaded:"×××¢××",Uploading:"××¢××",Completed:"××ש××",Filter:"×¡× ×","Cropped Images":"ת××× ×ת ×ת×××ת","Edited Images":"ת××× ×ת ער×××ת","Selected Files":"×§×צ×× ×©× ××ר×","Crop is required on images":"××ת×× × ×רש ×ת××× ×ת",Crop:"×Ö´×××Ö¹×",Circle:"××Ö¼×",Rotate:"×Ö°×ִסְת×Ö¹×Öµ×",Mask:"×Ö°×ַס×ֹת ×Ö¼Ö°×ַסֵ×Ö¸×",Revert:"××× ×©×× ××××",Edit:"ער××",Reset:"×Ö°×ַת×Öµ×",Done:"××צע",Save:"××צ××",Next:"×Ö·×Ö¼Ö¸×","Edit Image":"ער×× ×ª××× ×","This image cannot be edited":"×× × ××ª× ×ער×× ×ª××× × ××","Connection Lost":"××××ר × ×¢××","Failed While Uploading":"× ××©× ×עת ××¢×××","Retrying in":"×× ×¡× ×©×× ××¢××","Try again":"× ×¡× ×©××","Try now":"× ×¡× ×¢×ש××","or Drag and Drop, Copy and Paste Files":"×× ×ר×ר / ×עתק ×××××§ ×ת ××§×צ××","Select Files to Upload":"××ר ×§×צ×× ×××¢××ת","Select From":"××ר ×-","Drop your files anywhere":"","Enter a URL":"××× ×ת××ת ×תר","Search images":"××פ×ש ת××× ×ת","Webcam Disabled":"×צ××× ××××ת","Webcam Not Supported":"×צ××× ×× × ×ª××ת","Please enable your webcam to take a photo.":"× × ××××§ ×ת ××צ××× ×¢× ×× ×ª ×צ××","Your current browser does not support webcam functionality.":"××פ××¤× ×× ××ª× ×שת×ש ××× × ×ª××× ×ש×××ש ××צ×××","We suggest using Chrome or Firefox.":"×× × ××××צ×× ×¢× ×פ××¤× ×¤××רפ×קס ×× ×ר××","File {displayName} is not an accepted file type. The accepted file types are {types}":"{types} ××× ×× ×ס×× ×©× ××× ××§××.ס××× ××§×צ×× ×××תר ×× {displayName} ××§×××¥","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"{roundFileSize} ×××× ×××. ××××× ×××תר ×× × {displayName} ××§×××¥","Our file upload limit is {maxFiles} {filesText}":"{filesText} {maxFiles} ××××ת ×××× ××§×××¥ ×××"};var af={Upload:"Caricare","Deselect All":"Deselezionare tutto","View/Edit Selected":"Visualizza/Modifica selezionato","Sign Out":"Esci","My Device":"Il mio dispositivo","Web Search":"Ricerca sul Web","Take Photo":"Fare una foto","Link (URL)":"Indirizzo URL","Record Video":"Registra video","Record Audio":"Registra audio","Custom Source":"Fonte personalizzata",Add:"Aggiungere","more file":"più file","more files":"più file",Connect:"Collegare","Select Files from":"Selezionare i file da","You need to authenticate with ":"à necessario autenticarsi con","A new page will open to connect your account.":"Si aprirà una nuova pagina per collegare il tuo account","We only extract images and never modify or delete them.":"Abbiamo estratto solo immagini e non modificarli o cancellarli.",Files:"File",Images:"Immagini",Uploaded:"Caricato",Uploading:"Caricamento",Completed:"Completato",Filter:"Filtrare","Cropped Images":"Immagini Ritagliate","Edited Images":"Immagini Modificate","Selected Files":"File selezionati","Crop is required on images":"Il ritaglio è richiesto sulle immagini",Crop:"Potare",Circle:"Circolo",Rotate:"Ruotare",Mask:"Mascherare",Revert:"Annulla",Edit:"Modifica",Reset:"Reset",Done:"Finito",Save:"Salvare",Next:"Il prossimo","Edit Image":"Modifica Immagine","This image cannot be edited":"Questa immagine non può essere modificata","Connection Lost":"Connessione Persa","Failed While Uploading":"Errore Durante il Caricamento","Retrying in":"Riprovare tra","Try again":"Riprova","Try now":"Prova ora","or Drag and Drop, Copy and Paste Files":"o trascinare, copiare e incollare file","Select Files to Upload":"Selezionare i file da caricare","Select From":"Selezionare da","Drop your files anywhere":"","Enter a URL":"Inserisci un URL","Search images":"Ricerca immagini","Webcam Disabled":"Webcam spenta","Webcam Not Supported":"Webcam non supportato","Please enable your webcam to take a photo.":"Si prega di attivare la webcam per scattare una foto.","Your current browser does not support webcam functionality.":"Il browser corrente non supporta la funzionalità webcam.","We suggest using Chrome or Firefox.":"Suggeriamo usando Chrome o Firefox.","File {displayName} is not an accepted file type. The accepted file types are {types}":"{displayName} File non è un tipo di file accettato. I tipi di file accettati sono {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"{displayName} Il file è molto grande. La dimensione massima accettata per i file è {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"à il nostro limite di upload di file {maxFiles} {filesText}"};var of={Upload:"ã¢ãããã¼ã","Deselect All":"鏿ãå
¨ã¦è§£é¤","View/Edit Selected":"鏿ãããã¡ã¤ã«ãé²è¦§/ç·¨é","Sign Out":"ãµã¤ã³ã¢ã¦ã","My Device":"ãã¤ããã¤ã¹","Web Search":"ã¦ã§ãæ¤ç´¢","Take Photo":"åçãæ®ã","Link (URL)":"URLã¢ãã¬ã¹","Record Video":"é²ç»æ å","Record Audio":"ã¬ã³ã¼ããªã¼ãã£ãª","Custom Source":"ã«ã¹ã¿ã ã½ã¼ã¹",Add:"追å ","more file":"追å ãã¡ã¤ã«","more files":"追å ãã¡ã¤ã«",Connect:"æ¥ç¶","Select Files from":"ãããã¡ã¤ã«ã鏿","You need to authenticate with ":"ãèªè¨¼ãã¦ãã ãã ","A new page will open to connect your account.":"ãã¤ãã¼ã¸ã«ç§»åãã¾ã","We only extract images and never modify or delete them.":"ç»åã®æ½åºã ããè¡ããä¿®æ£ãåé¤ããããã¨ã¯ããã¾ãã",Files:"ãã¡ã¤ã«",Images:"ç»å",Uploaded:"ã¢ãããã¼ãå®äº",Uploading:"ã¢ãããã¼ãä¸",Completed:"å®äº",Filter:"ãã£ã«ã¿ã¼","Failed While Uploading":"ã¢ãããã¼ãä¸ã«å¤±æãã¾ãã","Cropped Images":"åãæãããç»å","Edited Images":"ç·¨éãããç»å","Selected Files":"鏿æ¸ã®ãã¡ã¤ã«","Crop is required on images":"ç»åã«ä½ç©ãå¿
è¦ã§ã","This image cannot be edited":"ãã®ç»åã¯ç·¨éã§ãã¾ãã",Crop:"åªã",Cir
1cle:"åå",Rotate:"å»»ã",Mask:"è¦ã",Revert:"å
ã«æ»ã",Edit:"ç·¨é",Reset:"ã»ãããããªãã",Done:"çµãã",Save:"é©ç¨ãã",Next:"次","Edit Image":"ç»åç·¨é","Connection Lost":"æ¥ç¶ãåæããã¾ãã","Retrying in":"以ä¸ã§å試è¡ï¼","Try again":"å試è¡ãã","Try now":"ä»ãããã£ã¦ã¿ã¦ä¸ãã","or Drag and Drop, Copy and Paste Files":"ã¾ãã¯ããã¡ã¤ã«ããã©ãã°ã»ã¢ã³ãã»ãããããã³ãã¼ã»ã¢ã³ãã»ãã¼ã¹ããã","Select Files to Upload":"ã¢ãããã¼ããããã¡ã¤ã«ã鏿","Select From":"ãã鏿","Drop your files anywhere":"","Enter a URL":"URLãå
¥å","Search images":"ç»åãæ¤ç´¢","Webcam Disabled":"ã¦ã§ãã«ã¡ã©ã¯ãªã","Webcam Not Supported":"ã¦ã§ãã«ã¡ã©ã¯ãµãã¼ãããã¾ãã","Please enable your webcam to take a photo.":"åçãæ®ãããã«ã¦ã§ãã«ã¡ã©ãæå¹ã«ãã¦ãã ããã","Your current browser does not support webcam functionality.":"ç¾å¨ã®ãã©ã¦ã¶ã¯ã¦ã§ãã«ã¡ã©æ©è½ããµãã¼ããã¦ãã¾ããã","We suggest using Chrome or Firefox.":"ç§é㯠firefox ã使ç¨ãããã¨ãææ¡ããã","File {displayName} is not an accepted file type. The accepted file types are {types}":"ãã¡ã¤ã«å{displayName}ã¯ãéåä¿¡å¯è½ãªãã¡ã¤ã«å½¢å¼ã§ã¯ããã¾ãããåãå
¥ãå¯è½ãªãã¡ã¤ã«å½¢å¼ã¯{types}ã§ã","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"ãã¡ã¤ã«å{displayName}ã®å®¹éã大ãããã¾ããéåä¿¡å¯è½ãªãã¡ã¤ã«ã®ãµã¤ãºã¯{roundFileSize}ã§ã","Our file upload limit is {maxFiles} {filesText}":"ä¸åº¦ã«ã¢ãããã¼ãã§ãããã¡ã¤ã«ã®ä¸é㯠{maxFiles} {filesText}"};var sf={Upload:"ì
ë¡ëí기","Deselect All":"모ë ì·¨ìí기","View/Edit Selected":"ì íí íì¼ë¤ 보기/ìì í기","Sign Out":"ë¡ê·¸ìì","My Device":"ë´ ê¸°ê¸°","Web Search":"ì¹ ê²ì","Take Photo":"ì¬ì§ì ì°ì´","Link (URL)":"ë§í¬","Record Video":"ë¹ëì¤ ë
¹í","Record Audio":"ì¤ëì¤ ë
¹ì",Facebook:"íì´ì¤ë¶",Instagram:"ì¸ì¤íê·¸ë¨",Dropbox:"ëëë°ì¤","Google Photos":"êµ¬ê¸ í¬í ","Google Drive":"êµ¬ê¸ ëë¼ì´ë¸","Custom Source":"ë§ì¶¤ ìì¤",Add:"ì¶ê°","more file":"ë¤ë¥¸ íì¼","more files":"ë¤ë¥¸ íì¼ë¤",Connect:"ì°ê²°í기 ","Select Files from":" ","You need to authenticate with":"ì ë¡ê·¸ì¸í´ì¼ í©ëë¤ ","A new page will open to connect your account.":"ê³ì ì ì°ê²°í기 ìí´ ìë¡ì´ ì°½ì´ ì´ë¦½ëë¤","We only extract images and never modify or delete them.":"ì´ë¯¸ì§ë¥¼ ìì ëë ìì íì§ ìê³ ë¶ë¬ë¤ì
ëë¤",Files:"íì¼ë¤",Images:"ì´ë¯¸ì§",Uploaded:"ì
ë¡ëëììµëë¤",Uploading:"ì
ë¡ë ì¤",Completed:"ìë£ ë¨",Filter:"íí°","Cropped Images":"ì른 ì´ë¯¸ì§","Edited Images":"ìì ë íì¼","Selected Files":"ì íë íì¼","Crop is required on images":"ì´ë¯¸ì§ì ìë¥´ê¸°ê° íìí©ëë¤.",Crop:"ìíê³ ",Circle:"ì",Rotate:"íì íë¤",Mask:"ê°ì¶ë¤",Revert:"ë³µì",Edit:"ìì ",Reset:"ë¤ì ë기",Done:"ëë",Save:"구íë¤",Next:"ë¤ì ê²","Edit Image":"ì´ë¯¸ì§ í¸ì§","This image cannot be edited":"ì´ ì´ë¯¸ì§ë í¸ì§ í ì ììµëë¤.","Go back":"ëìê°ê¸°","Connection Lost":"ì°ê²°ì´ ëì´ì§","Failed While Uploading":"ì
ë¡ëíë ëì ì¤í¨íìµëë¤","Retrying in":"ìì ë¤ì ìë","Try again":"ë¤ì ìëí´ë³´ììì¤","Try now":"ì§ê¸ ìë","or Drag and Drop, Copy and Paste Files":"ëë íì¼ì ì´ê³³ì ëì´ë¤ ëê±°ë, ë³µì¬ ë¶ì¬ë£ê¸°ë¥¼ í ì ììµëë¤","Select Files to Upload":"í´ë¦í´ì ì
ë¡ëí íì¼ì ì íí´ì£¼ì¸ì","Select From":" ","Drop your files anywhere":"","Enter a URL":"URL ì
ë ¥","Search images":"ì´ë¯¸ì§ ê²ìí기","Webcam Disabled":"ì¹ìº 기ë¥ì´ ë¹íì±íëììµëë¤","Webcam Not Supported":"ì¹ìº ì´ ì§ìëì§ ìë 기기ì
ëë¤","Please enable your webcam to take a photo.":"ì¬ì§ì ì°ì¼ë ¤ë©´ ì¹ìº 기ë¥ì íì±íí´ì£¼ì¸ì","Your current browser does not support webcam functionality.":"íì¬ ë¸ë¼ì°ì ë ì¹ìº 기ë¥ì ì§ìíì§ ììµëë¤","We suggest using Chrome or Firefox.":"í¬ë¡¬ ëë íì´ì´íì¤ë¥¼ ì´ì©í´ì£¼ì¸ì","File {displayName} is not an accepted file type. The accepted file types are {types}":"{displayName}: ì
ë¡ë ê°ë¥í íì¼ íì({types})ì´ ìëë¼ ì
ë¡ëí ì ììµëë¤","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"{displayName}: ì
ë¡ë ê°ë¥í íì¼ ì¬ì´ì¦({roundFileSize})ë³´ë¤ ì»¤ì ì
ë¡ëí ì ììµëë¤","Our file upload limit is {maxFiles} {filesText}":"ìµë {maxFiles}
1ê° íì¼ì ì
ë¡ëí ì ììµëë¤ ({filesText})"};var lf={Upload:"Uploaden","Deselect All":"Deselecteer alles","View/Edit Selected":"Selectie bekijken/aanpassen","Sign Out":"Afmelden","My Device":"Mijn apparaat","Web Search":"Zoeken op het web","Take Photo":"Foto nemen","Link (URL)":"Link (URL)","Record Video":"Video opnemen","Record Audio":"Geluid opnemen","Custom Source":"Aangepaste bron",Add:"Toevoegen","more file":"meer bestand","more files":"meer bestanden",Connect:"Verbinding maken met","Select Files from":"Selecteer uw bestanden van","You need to authenticate with ":"U moet verbinding maken met ","A new page will open to connect your account.":"Een nieuwe pagina wordt geopend om verbinding te maken met uw account","We only extract images and never modify or delete them.":"We halen alleen uw afbeeldingen op en zullen deze nooit aanpassen of verwijderen",Files:"Bestanden",Images:"Afbeeldingen",Uploaded:"Geüpload",Uploading:"Aan het uploaden",Completed:"Voltooid",Filter:"Zoeken","Cropped Images":"Bijgesneden afbeeldingen","Edited Images":"Bewerkte afbeeldingen","Selected Files":"Geselecteerde bestanden","Crop is required on images":"Uitsnede is vereist op afbeeldingen",Crop:"Verkleinen",Circle:"Cirkel",Rotate:"Draaien",Mask:"Maskeren",Revert:"Ongedaan maken",Edit:"Bewerken",Reset:"Opnieuw zetten",Done:"Gedaan",Save:"Opslaan",Next:"Volgende","Edit Image":"Bewerk afbeelding","This image cannot be edited":"Deze afbeelding kan niet worden bewerkt","Connection Lost":"Verbinding verbroken","Failed While Uploading":"Mislukt tijdens het uploaden","Retrying in":"Opnieuw proberen over","Try again":"Probeer het nog eens","Try now":"Probeer nu","or Drag and Drop, Copy and Paste Files":"of slepen, kopiëren en plakken van bestanden","Select Files to Upload":"Selecteer bestanden om te uploaden","Select From":"Selecteren","Drop your files anywhere":"","Enter a URL":"Voer een URL in","Search images":"Zoek beelden","Webcam Disabled":"Webcam uitgeschakeld","Webcam Not Supported":"Webcam niet ondersteund","Please enable your webcam to take a photo.":"Schakel de webcam in om een foto te maken","Your current browser does not support webcam functionality.":"Deze browser heeft geen ondersteuning voor een webcam","We suggest using Chrome or Firefox.":"Wij raden aan om Chrome of Firefox te gebruiken.","File {displayName} is not an accepted file type. The accepted file types are {types}":"Het bestandstype van {displayName} wordt niet geaccepteerd. Wel toegestane bestandstypen zijn: {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"Het {displayName} is te groot. De maximaal toegestane bestandsgrootte is: {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"Het maximaal aantal, te uploaden, bestanden is {maxFiles} {filesText}"};var cf={Upload:"Last opp","Deselect All":"Opphev alle","View/Edit Selected":"Vis/ rediger valgte","Sign Out":"Logg ut","My Device":"Min enhet","Web Search":"Nettsøk","Take Photo":"Ta bilde","Link (URL)":"Link (URL)","Record Video":"Ta opp video","Record Audio":"Ta opp lyd","Custom Source":"Egendefinert kilde",Add:"Legg til","more file":"flere filer","more files":"flere filer",Connect:"Koble til","Select Files from":"Velg filer fra","You need to authenticate with ":"Du mÃ¥ autentisere med","A new page will open to connect your account.":"En ny side vil Ã¥pnes for Ã¥ koble til din konto","We only extract images and never modify or delete them.":"Vi trekker kun ut bilder og vil aldri endre eller slette dem",Files:"Filer",Images:"Bilder",Uploaded:"Lastet opp",Uploading:"Laster opp",Completed:"Fullført",Filter:"Filtrer","Cropped Images":"Filer og mapper","Edited Images":"Redigerte bilder","Selected Files":"Valgte filer","Crop is required on images":"Beskjæring er pÃ¥krevd for bilder",Crop:"Beskjær",Circle:"Sirkel",Rotate:"Rotere",Mask:"Maske",Revert:"Tilbakestill",Edit:"Rediger",Reset:"Tilbakestill",Done:"Ferdig",Save:"Lagre",Next:"Neste","Edit Image":"Rediger bilde ","This image cannot be edited":"Dette bildet kan ikke redigeres","Connection Lost":"Forbindelse mistet","Failed While Uploading":"Mislyktes under opplasting","Retrying in":"Prøver pÃ¥ nytt om","Try again":"Prøv igjen","Try now":"Prøv nÃ¥","or Drag and Drop, Copy and Paste Files":"eller dra og slipp, kopier og lim inn filer","Select Files to Upload":"Velg filer som skal lastes opp","Select From":"Velg fra","Drop your files anywhere":"","Enter a URL":"Skriv inn URL","Search images":"Søk bilder","Webcam Disabled":"Webkamera deaktivert","Webcam Not Supported":"Webkamera ikke støttet","Please enable your webcam to take a photo.":"Vennligst aktiver ditt webkamera for Ã¥ ta et bilde.","Your current browser does not support webcam functionality.":"Din nÃ¥værende nettleser støtter ikke webkamera funksjonalitet.","We suggest using Chrome or Firefox.":"Vi foreslÃ¥r Chrome eller Firefox","File {displayName} is not an accepted file type. The accepted file types are {types}":"Filen {displayName} er ikke en akseptert filtype. De godkjente filtyper er {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"Filen {displayName} er for stor. Akseptert filstørrelse er {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"VÃ¥r filopplastingsgrense er {maxFiles} {filesText}"};var uf={Upload:"PrzeÅlij pliki","Deselect All":"Odznacz wszystko","View/Edit Selected":"WyÅwietl/Edytuj zaznaczone","Sign Out":"Wyloguj siÄ","My Device":"Moje urzÄ
dzenie","Web Search":"Grafika z internetu","Take Photo":"Zrób zdjÄcie","Link (URL)":"Adres URL","Record Video":"NagraÄ wideo","Record Audio":"NagraÄ dźwiÄk","Custom Source":"Niestandardowe źródÅo",Add:"Dodaj","more file":"wiÄcej plików","more files":"wiÄcej plików",Connect:"PoÅÄ
czyÄ","Select Files from":"Wybierz pliki z","You need to authenticate with ":"Musisz uwierzytelniÄ","A new page will open to connect your account.":"Nowa strona zostanie otwarta w celu poÅÄ
czenia z Twoim kontem.","We only extract images and never modify or delete them.":"Mamy tylko wyodrÄbniÄ obrazy i nigdy zmodyfikowaÄ lub usunÄ
Ä je",Files:"Pliki",Images:"Obrazy",Uploaded:"PrzesÅany",Uploading:"PrzesyÅanie danych",Completed:"UkoÅczono",Filter:"Szukaj","Cropped Images":"PrzyciÄte obrazy","Edited Images":"Edytowane obrazy","Selected Files":"Wybrane pliki","Crop is required on images":"Przycinanie jest wymagane na obrazach",Crop:"przytnij",Circle:"przytnij w ksztaÅcie koÅa",Rotate:"obróÄ",Mask:"dodaj warstwÄ",Revert:"Cofnij",Edit:"Edytuj",Reset:"przywrÃ³Ä oryginaÅ",Done:"Gotowe",Save:"ZapisaÄ",Next:"Kolejny","Edit Image":"Edytuj zdjÄcie","This image cannot be edited":"Tego obrazu nie można edytowaÄ","Connection Lost":"Utracono poÅÄ
czenie","Failed While Uploading":"WystÄ
piÅ bÅÄ
d podczas przesyÅania","Retrying in":"Ponawiam próbÄ","Try again":"Spróbuj ponownie","Try now":"Spróbuj teraz","or Drag and Drop, Copy and Paste Files":"lub przeciÄ
gnij i upuÅÄ, kopiowaÄ i wklejaÄ pliki","Select Files to Upload":"Wybierz pliki do przesÅania","Select From":"Wybierz z","Drop your files anywhere":"","Enter a URL":"Wprowadź adres URL","Search images":"Szukaj obrazów","Webcam Disabled":"Kamera wyÅÄ
czona","Webcam Not Supported":"Kamera nie jest obsÅugiwana","Please enable your webcam to take a photo.":"ProszÄ wÅÄ
czyÄ kamerÄ internetowÄ
, aby zrobiÄ zdjÄcie","Your current browser does not support webcam functionality.":"Twoja przeglÄ
darka obecnie nie obsÅuguje funkcji kamery internetowej.","We suggest using Chrome or Firefox.":"Zalecamy użycie Chrome lub Firefox","File {displayName} is not an accepted file type. The accepted file types are {types}":"{displayName} Plik nie jest typem plików akceptowane. Typy plików akceptowane sÄ
{types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"{displayName} Plik jest zbyt duże. Rozmiar plików akceptowane jest {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"Nasz limit uploadu pliku jest {maxFiles} {filesText}"};
1var ff={Upload:"Carregar","Deselect All":"Desmarcar todos","View/Edit Selected":"Exibir/Editar selecionada","Sign Out":"Desconectar","My Device":"Meu dispositivo","Web Search":"Buscar imagens na Web","Take Photo":"Tirar Foto","Link (URL)":"Link (URL)","Record Video":"Gravar vÃdeo","Record Audio":"Gravar audio","Custom Source":"Fonte Personalizada",Add:"Adicionar","more file":"arquivo mais","more files":"mais arquivos",Connect:"Conetar-se ao","Select Files from":"Selecione Arquivos No","You need to authenticate with ":"Você precisar se autenticar com","A new page will open to connect your account.":"Uma nova página será aberta para conectar a sua conta.","We only extract images and never modify or delete them.":"Nós apenas extraÃmos os arquivos selecionados e nunca os modificamos ou os removemos.",Files:"Ficheiros",Images:"Imagens",Uploaded:"Carregado",Uploading:"A Enviar",Completed:"ConcluÃdo",Filter:"Ordenar","Cropped Images":"Imagens Cortadas","Edited Images":"Imagens Editadas","Selected Files":"Arquivos selecionados","Crop is required on images":"A colheita é necessária em imagens",Crop:"Cortar",Circle:"CÃrculo",Rotate:"Rodar",Mask:"Mascarar",Revert:"Desfazer",Edit:"Editar",Reset:"Recompor",Done:"Feito",Save:"Salve",Next:"Próximo","Edit Image":"Editar Imagem","This image cannot be edited":"Esta imagem não pode ser editada","Failed While Uploading":"Falha ao enviar","Retrying in":"A Tentar Novamente em","Connection Lost":"Ligação perdida","Try again":"Tente novamente","Try now":"Tente agora","or Drag and Drop, Copy and Paste Files":"ou arrastar, copiar e colar arquivos","Select Files to Upload":"Selecionar arquivos para upload","Select From":"Selecione de","Drop your files anywhere":"","Enter a URL":"Insira um URL","Search images":"Procurar fotos","Webcam Disabled":"Webcam Desativada","Webcam Not Supported":"Webcam Não Suportada","Please enable your webcam to take a photo.":"Por favor, ative sua webcam para tirar uma foto","Your current browser does not support webcam functionality.":"Seu navegador atual não suporta conexão com a webcam.","We suggest using Chrome or Firefox.":"Nós sugerimos Chrome ou Firefox.","File {displayName} is not an accepted file type. The accepted file types are {types}":" Arquivo {displayName} não é um tipo de arquivo aceitos. Os tipos de arquivo aceitos são {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"{displayName} Arquivo é muito grande. O tamanho de arquivo aceito é {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"à o nosso limite de upload de arquivo {maxFiles} {filesText}"};var df={Upload:"загÑÑзиÑÑ","Deselect All":"оÑмена","View/Edit Selected":"пÑоÑмоÑÑеÑÑ/ÑедакÑиÑоваÑÑ","Sign Out":"вÑйÑи","My Device":"ÐÐ¾Ñ ÑÑÑÑойÑÑво","Web Search":"ÐоиÑк изобÑажений в ÑеÑи","Take Photo":"ФоÑогÑаÑиÑоваÑÑ","Link (URL)":"URL-адÑеÑ","Record Video":"ÐапиÑÑ Ð²Ð¸Ð´ÐµÐ¾","Record Audio":"ÐапиÑÑ Ð°Ñдио","Custom Source":"ÐолÑзоваÑелÑÑкий иÑÑоÑник",Add:"ÐобавиÑÑ","more file":"более Ñайла","more files":"болÑÑе Ñайлов",Connect:"подклÑÑиÑÑ","Select Files from":"ÐÑбÑаÑÑ ÑайлÑ","You need to authenticate with ":"ТÑебÑеÑÑÑ Ð°ÑÑенÑиÑикаÑÐ¸Ñ Ð°ÐºÐºÐ°ÑнÑа Ñ ","A new page will open to connect your account.":"ÐÐ¾Ð²Ð°Ñ ÑÑÑаниÑа оÑкÑÑваеÑÑÑ ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð´ÐºÐ»ÑÑиÑÑ Ð²Ð°Ñ Ð°ÐºÐºÐ°ÑнÑ","We only extract images and never modify or delete them.":"ÐÑ Ð¿ÑоÑÑо извлекаем ÑоÑо, а никогда не иÑ
изменÑем или Ñдалим",Files:"ÑайлÑ",Images:"ÑоÑо",Uploaded:"загÑÑженÑ",Uploading:"ÐагÑÑжаеÑÑÑ",Completed:"ÐавеÑÑено",Filter:"ÑоÑÑиÑоваÑÑ Ð¿Ð¾ даÑе","Cropped Images":"ÐбÑезаннÑе изобÑажениÑ","Edited Images":"ÐÑÑедакÑиÑованнÑе изобÑажениÑ","Selected Files":"ÐÑбÑаннÑе ÑайлÑ","Crop is required on images":"УÑожай ÑÑебÑеÑÑÑ Ð´Ð»Ñ Ð¸Ð·Ð¾Ð±Ñажений",Crop:"оÑделка",Circle:"кÑÑг",Rotate:"вÑаÑаÑÑÑÑ",Mask:"ÑкÑÑваÑÑ",Revert:"ÐÑмениÑÑ",Edit:"ÐзмениÑÑ",Reset:"ÑбÑоÑ",Done:"законÑеннÑй",Save:"СоÑ
ÑаниÑÑ",Next:"СледÑÑÑий","Edit Image":"ÑедакÑиÑоваÑÑ Ð¸Ð·Ð¾Ð±Ñажение","This image cannot be edited":"ÐÑо изобÑажение нелÑÐ·Ñ Ð¾ÑÑедакÑиÑоваÑÑ","Connection Lost":"Соединение поÑеÑÑно","Failed While Uploading":"ÐÑибка пÑи загÑÑзке","Retrying in":"ÐовÑоÑÐ½Ð°Ñ Ð¿Ð¾Ð¿ÑÑка ÑеÑез","Try again":"ÐопÑобÑй еÑе Ñаз","Try now":"ÐопÑобÑй","or Drag and Drop, Copy and Paste Files":"или пеÑеÑаÑкиваÑÑ, копиÑоваÑÑ Ð¸ вÑÑавлÑÑÑ ÑайлÑ","Select Files to Upload":"ÐÑбеÑиÑе ÑÐ°Ð¹Ð»Ñ Ð´Ð»Ñ Ð·Ð°Ð³ÑÑзки","Select From":"вÑбÑаÑÑ Ð²...","Drop your files anywhere":"","Enter a URL":"ÐведиÑе URL-адÑеÑ","Search images":"поиÑк ÑоÑо","Webcam Disabled":"Ðеб-камеÑа оÑклÑÑена","Webcam Not Supported":"Ðеб-камеÑа не поддеÑживаеÑÑÑ","Please enable your webcam to take a photo.":"ÐожалÑйÑÑа, вклÑÑиÑе ÑоÑокамеÑÑ, ÑÑÐ¾Ð±Ñ ÑделаÑÑ ÑоÑогÑаÑиÑ","Your current browser does not support webcam functionality.":"ТекÑÑий бÑаÑÐ·ÐµÑ Ð½Ðµ поддеÑÐ¶Ð¸Ð²Ð°ÐµÑ ÑÑнкÑионалÑноÑÑÑ Ð²ÐµÐ±-камеÑÑ","We suggest using Chrome or Firefox.":"ÐÑ Ð¿Ñедлагаем иÑполÑзоваÑÑ Firefox","File {displayName} is not an accepted file type. The accepted file types are {types}":"{displayName}
1 Файлов не ÑвлÑеÑÑÑ Ñипом пÑикладÑваемÑÑ
Ñайлов. Ð¢Ð¸Ð¿Ñ Ð¿ÑикладÑваемÑÑ
Ñайлов ÑвлÑÑÑÑÑ {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"{displayName} Файл ÑлиÑком болÑÑой. ÐÑизнаннÑÑ
Ñайл Ð¸Ð¼ÐµÐµÑ ÑÐ°Ð·Ð¼ÐµÑ {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"ÐÐ°Ñ Ð¿Ñедел загÑÑзки Ñайлов {maxFiles} {filesText}"};var pf={Upload:"Ladda upp","Deselect All":"Avmarkera Alla","View/Edit Selected":"Visa/Editera Valda","Sign Out":"Logga ut","My Device":"Min enhet","Web Search":"Webbsökning","Take Photo":"Ta Ett Foto","Link (URL)":"URL-adress","Record Video":"Spela in video","Record Audio":"Spela in ljud","Custom Source":"Anpassad källa",Add:"Lägg till","more file":"more fil","more files":"fler filer",Connect:"Ansluta","Select Files from":"Välj Filer frÃ¥n","You need to authenticate with ":"Du mÃ¥ste verifiera med","A new page will open to connect your account.":"En ny sida öppnas för att ansluta ditt konto","We only extract images and never modify or delete them.":"Vi använder bara bildern och ändrar aldrig eller tar bort dem",Files:"Filer",Images:"Bilder",Uploaded:"Uppladdade",Uploading:"Uppladdning",Completed:"Avslutad",Filter:"Filter","Cropped Images":"Beskurna Bilder","Edited Images":"Redigerad Bild","Selected Files":"Valda filer","Crop is required on images":"Beskär krävs pÃ¥ bilder",Crop:"Beskära",Circle:"Cirkel",Rotate:"Rotera",Mask:"Maskera",Revert:"Invertera",Edit:"Editera",Reset:"Ã
terställ",Done:"Gjort",Save:"Spara",Next:"Nästa","Edit Image":"Redigera Bild","This image cannot be edited":"Den här bilden kan inte redigeras","Connection Lost":"Anslutning förlorad","Failed While Uploading":"Misslyckades Vid Uppladdning","Retrying in":"Försöker Igen","Try again":"Försök Igen","Try now":"Prova nu","or Drag and Drop, Copy and Paste Files":"Eller Dra och Släpp, Kopiera och Klistra In Filer","Select Files to Upload":"Välj Dina Filer För Att Ladda Upp","Select From":"Välj frÃ¥n","Drop your files anywhere":"","Enter a URL":"Ange en webbadress","Search images":"Sök bilder","Webcam Disabled":"Webkameran Avaktiverad","Webcam Not Supported":"Webkameran är inte kompatibel","Please enable your webcam to take a photo.":"Vänligen aktivera din webkamera för att ta ett foto","Your current browser does not support webcam functionality.":"Din nuvarande webbläsare stöder inte webbkamera","We suggest using Chrome or Firefox.":"Vi föreslÃ¥r att du använder Chrome eller Firefox.","File {displayName} is not an accepted file type. The accepted file types are {types}":"Fil {displayName} är inte en accepterad filtyp. De accepterade filtyperna är {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"Fil {displayName} är för stor. Den accepterade filstorleken är mindre än {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"VÃ¥r Filöverföringsgräns är {maxFiles} {filesText}"};var hf={Upload:"Tải lên","Deselect All":"Bá» chá»n tất cả","View/Edit Selected":"Xem/Chá»nh sá»a táºp tin Äã chá»n","Sign Out":"ÄÄng xuất","My Device":"Thiết bá» cá»§a tôi","Web Search":"Tìm kiếm trên web","Take Photo":"Chụp ảnh","Link (URL)":"Äá»a chá» URL","Record Video":"Quay video","Record Audio":"Ghi âm","Custom Source":"Nguá»n tùy chá»nh",Add:"Thêm","more file":"Thêm táºp tin","more files":"Thêm táºp tin",Connect:"Kết ná»i","Select Files from":"Chá»n táºp tin từ","You need to authenticate with ":"Bạn cần phải xác thá»±c vá»i","A new page will open to connect your account.":"Má»t trang kết ná»i vá»i tà i khoản cá»§a bạn sẽ ÄÆ°á»£c má»","We only extract images and never modify or delete them.":"Chúng tôi chá» trÃch xuất hình ảnh và không bao giá» sá»a Äá»i hoặc xóa chúng",Files:"Các táºp tin",Images:"Hình ảnh",Uploaded:"Äã tải lên",Uploading:"Tải lên",Completed:"Äã hoà n thà nh",Filter:"Bá» lá»c","Cropped Images":"Hình ảnh bá» cắt","Edited Images":"Chá»nh sá»a hình ảnh","Selected Files":"Táºp t
1in Äã ÄÆ°á»£c chá»n","Crop is required on images":"Cây trá»ng ÄÆ°á»£c yêu cầu trên hình ảnh",Crop:"là m xong",Circle:"GiÆ¡Íi",Rotate:"Quay",Mask:"Mặt nạ",Revert:"Quay lại",Edit:"Chá»nh sá»a",Reset:"Cà i lại",Done:"Là m xong",Save:"Tiết kiá»m",Next:"Kế tiếp","Edit Image":"Chá»nh sá»a hình ảnh","This image cannot be edited":"Không thá» chá»nh sá»a hình ảnh nà y","Connection Lost":"Kết ná»i bá» mất","Failed While Uploading":"Không thá» tải lên","Retrying in":"Äang thá» lại","Try again":"Thá» lại","Try now":"Thá» ngay bây giá»","or Drag and Drop, Copy and Paste Files":"hoặc Kéo và Thả, Sao chép và Dán Táºp tin","Select Files to Upload":"Chá»n táºp tin Äá» tải lên","Select From":"Chá»n từ","Drop your files anywhere":"","Enter a URL":"Nháºp URL","Search images":"Tìm kiá»m hình ảnh","Webcam Disabled":"Webcam bá» vô hiá»u hóa","Webcam Not Supported":"Webcam không ÄÆ°á»£c há» trợ","Please enable your webcam to take a photo.":"Hãy kÃch hoạt webcam cá»§a bạn Äá» chụp ảnh.","Your current browser does not support webcam functionality.":"Trình duyá»t hiá»n tại cá»§a bạn không há» trợ chức nÄng webcam.","We suggest using Chrome or Firefox.":"Chúng tôi khuyên bạn sá» dụng Chrome hoặc Firefox.","File {displayName} is not an accepted file type. The accepted file types are {types}":"Táºp tin {displayName} không phải là loại táºp tin ÄÆ°á»£c chấp nháºn. Các loại táºp tin ÄÆ°á»£c chấp nháºn là {types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":"Táºp tin {displayName} quá lá»n. KÃch thưá»c táºp tin ÄÆ°á»£c chấp nháºn là {roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"Giá»i hạn táºp tin tải lên là {maxFiles} {filesText}"};var vf={Upload:"ä¸ä¼ ","Deselect All":"åæ¶éæ©å
¨é¨","View/Edit Selected":"æ¥ç/ç¼è¾æé项","Sign Out":"ç»åº","My Device":"æç设å¤","Web Search":"为å¾çæç´¢ç½ç»","Take Photo":"æç
§","Link (URL)":"ç½å","Record Video":"å½è§é¢","Record Audio":"å½å¶é³é¢","Custom Source":"èªå®ä¹æ¥æº",Add:"åæ·»å ","more file":"æ´å¤æä»¶","more files":"æ´å¤æä»¶",Connect:"è¿æ¥","Select Files from":"ä»ä¸éæ©æä»¶","You need to authenticate with":"æ¨éè¦éªè¯","A new page will open to connect your account.":"ä¸ä¸ªæ°é¡µé¢ä¼æå¼ä»¥å
³èæ¨ç叿·","We only extract images and never modify or delete them.":"æä»¬åªæåå¾åï¼ä»ä¸ä¿®æ¹æå é¤å®ä»¬",Files:"æä»¶",Images:"å¾ç",Uploaded:"å·²ä¸ä¼ ",Uploading:"æ£å¨ä¸ä¼ ",Completed:"已宿",Filter:"è¿æ»¤","Cropped Images":"è£åªå¾ç","Edited Images":"ç¼è¾çå¾å","Selected Files":"æéæä»¶","Crop is required on images":"å¾åä¸éè¦è£åª",Crop:"åª",Circle:"å",Rotate:"å转",Mask:"éæ°çä¸",Revert:"è¿å",Edit:"ç¼è¾",Reset:"éå¯",Done:"æ¯",Save:"ä¿å",Next:"ä¸ä¸ä¸ª","Edit Image":"ç¼è¾å¾å","This image cannot be edited":"æ¤å¾åæ æ³ç¼è¾","Connection Lost":"è¿æ¥ä¸æ","Failed While Uploading":"ä¸ä¼ 失败","Retrying in":"éè¯å计æ¶","Try again":"åè¯ä¸æ¬¡","Try now":"ç°å¨è¯è¯","or Drag and Drop, Copy and Paste Files":"æææ¾ï¼å¤å¶åç²è´´æä»¶","Select Files to Upload":"éæ©è¦ä¸ä¼ çæä»¶","Select From":"éæ©èª","Drop your files anywhere":"","Enter a URL":"è¾å
¥ä¸ä¸ªç½å","Search images":"æç´¢å¾å","Webcam Disabled":"æå头å
³é","Webcam Not Supported":"䏿¯ææå头","Please enable your webcam to take a photo.":"请æå¼æå头","Your current browser does not support webcam functionality.":"æ¨çæµè§å¨ä¸æ¯æç½ç»æå头åè½ã","We suggest using Chrome or Firefox.":"æä»¬å»ºè®®ä½¿ç¨ç«çã","File {displayName} is not an accepted file type. The accepted file types are {types}":" æä»¶{displayName}䏿¯å¯æ¥åçæä»¶ç±»åã 坿¥åçæä»¶ç±»å为{types}","File {displayName} is too big. The accepted file size is less than {roundFileSize}":" æä»¶{displayName}太大ã 坿¥åçæä»¶å¤§å°ä¸º{roundFileSize}","Our file upload limit is {maxFiles} {filesText}":"æä»¬çæä»¶ä¸ä¼ éå¶ä¸º {maxFiles} {filesText}"};var mf={ca:Xu,da:Zu,de:Ju,en:ef,es:tf,fr:rf,he:nf,it:af,ja:of,ko:sf,nl:lf,no:cf,pl:uf,pt:ff,ru:df,sv:pf,vi:hf,zh:vf};var gf=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"en";var t=mf[e];return{ERROR_FILE_NOT_ACCEPTABLE:t["File {displayName} is not an accepted file type. The accepted file types are {types}"],ERROR_FILE_TOO_BIG:t["File {displayName} is too big. The accepted file size is less than {roundFileSize}"],ERROR_MAX_FILES_REACHED:t["Our file upload limit is {maxFiles} {filesText}"]}};var _f=eo(function(t,e){(function(e){{t.exports=e()}})(function(){return function(){function u(a,o,s){function l(r,e){if(!o[r]){if(!a[r]){var t="function"==typeof Za&&Za;if(!e&&t)return t(r,!0);if(c)return c(r,!0);var i=new Error("Cannot find module '"+r+"'");throw i.code="MODULE_NOT_FOUND",i}var n=o[r]={exports:{}};a[r][0].call(n.exports,function(e){var t=a[r][1][e];return l(t||e)},n,n.exports,u,a,o,s)}return o[r].exports}for(var c="function"==typeof Za&&Za,e=0;e<s.length;e++)l(s[e]);return l}return u}()({1:[function(e,t,r){var i=e("inherits");var n=e("multimath");var a=e("multimath/lib/unsharp_mask");var o=e("./mm_resize");function s(e){var t=e||[];
1var r={js:t.indexOf("js")>=0,wasm:t.indexOf("wasm")>=0};n.call(this,r);this.features={js:r.js,wasm:r.wasm&&this.has_wasm};this.use(a);this.use(o)}i(s,n);s.prototype.resizeAndUnsharp=function e(t,r){var i=this.resize(t,r);if(t.unsharpAmount){this.unsharp_mask(i,t.toWidth,t.toHeight,t.unsharpAmount,t.unsharpRadius,t.unsharpThreshold)}return i};t.exports=s},{"./mm_resize":4,inherits:15,multimath:16,"multimath/lib/unsharp_mask":19}],2:[function(e,t,r){function y(e){return e<0?0:e>255?255:e}function i(e,t,r,i,n,a){var o,s,l,c;var u,f,d;var p,h,v,m;var g=0,_=0;for(h=0;h<i;h++){u=0;for(v=0;v<n;v++){f=a[u++];d=a[u++];p=g+f*4|0;o=s=l=c=0;for(;d>0;d--){m=a[u++];c=c+m*e[p+3]|0;l=l+m*e[p+2]|0;s=s+m*e[p+1]|0;o=o+m*e[p]|0;p=p+4|0}t[_+3]=y(c+(1<<13)>>14);t[_+2]=y(l+(1<<13)>>14);t[_+1]=y(s+(1<<13)>>14);t[_]=y(o+(1<<13)>>14);_=_+i*4|0}_=(h+1)*4|0;g=(h+1)*r*4|0}}function n(e,t,r,i,n,a){var o,s,l,c;var u,f,d;var p,h,v,m;var g=0,_=0;for(h=0;h<i;h++){u=0;for(v=0;v<n;v++){f=a[u++];d=a[u++];p=g+f*4|0;o=s=l=c=0;for(;d>0;d--){m=a[u++];c=c+m*e[p+3]|0;l=l+m*e[p+2]|0;s=s+m*e[p+1]|0;o=o+m*e[p]|0;p=p+4|0}t[_+3]=y(c+(1<<13)>>14);t[_+2]=y(l+(1<<13)>>14);t[_+1]=y(s+(1<<13)>>14);t[_]=y(o+(1<<13)>>14);_=_+i*4|0}_=(h+1)*4|0;g=(h+1)*r*4|0}}t.exports={convolveHorizontally:i,convolveVertically:n}},{}],3:[function(e,t,r){t.exports="AGFzbQEAAAABFAJgBn9/f39/fwBgB39/f39/f38AAg8BA2VudgZtZW1vcnkCAAEDAwIAAQQEAXAAAAcZAghjb252b2x2ZQAACmNvbnZvbHZlSFYAAQkBAArmAwLBAwEQfwJAIANFDQAgBEUNACAFQQRqIRVBACEMQQAhDQNAIA0hDkEAIRFBACEHA0AgB0ECaiESAn8gBSAHQQF0IgdqIgZBAmouAQAiEwRAQQAhCEEAIBNrIRQgFSAHaiEPIAAgDCAGLgEAakECdGohEEEAIQlBACEKQQAhCwNAIBAoAgAiB0EYdiAPLgEAIgZsIAtqIQsgB0H/AXEgBmwgCGohCCAHQRB2Qf8BcSAGbCAKaiEKIAdBCHZB/wFxIAZsIAlqIQkgD0ECaiEPIBBBBGohECAUQQFqIhQNAAsgEiATagwBC0EAIQtBACEKQQAhCUEAIQggEgshByABIA5BAnRqIApBgMAAakEOdSIGQf8BIAZB/wFIG0EQdEGAgPwHcUEAIAZBAEobIAtBgMAAakEOdSIGQf8BIAZB/wFIG0EYdEEAIAZBAEobciAJQYDAAGpBDnUiBkH/ASAGQf8BSBtBCHRBgP4DcUEAIAZBAEobciAIQYDAAGpBDnUiBkH/ASAGQf8BSBtB/wFxQQAgBkEAShtyNgIAIA4gA2ohDiARQQFqIhEgBEcNAAsgDCACaiEMIA1BAWoiDSADRw0ACwsLIQACQEEAIAIgAyAEIAUgABAAIAJBACAEIAUgBiABEAALCw=="},{}],4:[function(e,t,r){t.exports={name:"resize",fn:e("./resize"),wasm_fn:e("./resize_wasm"),wasm_src:e("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(e,t,r){var g=e("./resize_filter_gen");var _=e("./convolve").convolveHorizontally;var y=e("./convolve").convolveVertically;function b(e,t,r){var i=3,n=t*r*4|0;while(i<n){e[i]=255;i=i+4|0}}t.exports=function e(t){var r=t.src;var i=t.width;var n=t.height;var a=t.toWidth;var o=t.toHeight;var s=t.scaleX||t.toWidth/t.width;var l=t.scaleY||t.toHeight/t.height;var c=t.offsetX||0;var u=t.offsetY||0;var f=t.dest||new Uint8Array(a*o*4);var d=typeof t.quality==="undefined"?3:t.quality;var p=t.alpha||false;
1var h=g(d,i,a,s,c),v=g(d,n,o,l,u);var m=new Uint8Array(a*n*4);_(r,m,i,n,a,h);y(m,f,n,a,o,v);if(!p)b(f,a,o);return f}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(e,t,r){var T=e("./resize_filter_info");var i=14;function R(e){return Math.round(e*((1<<i)-1))}t.exports=function e(t,r,i,n,a){var o=T[t].filter;var s=1/n;var l=Math.min(1,n);var c=T[t].win/l;var u,f,d,p,h,v,m,g,_,y,b,w,A;var C,E,S,k;var F=Math.floor((c+1)*2);var I=new Int16Array((F+2)*i);var x=0;var O=!I.subarray||!I.set;for(u=0;u<i;u++){f=(u+.5)*s+a;d=Math.max(0,Math.floor(f-c));p=Math.min(r-1,Math.ceil(f+c));h=p-d+1;v=new Float32Array(h);m=new Int16Array(h);g=0;for(_=d,y=0;_<=p;_++,y++){b=o((_+.5-f)*l);g+=b;v[y]=b}w=0;for(y=0;y<v.length;y++){A=v[y]/g;w+=A;m[y]=R(A)}m[i>>1]+=R(1-w);C=0;while(C<m.length&&m[C]===0){C++}if(C<m.length){E=m.length-1;while(E>0&&m[E]===0){E--}S=d+C;k=E-C+1;I[x++]=S;I[x++]=k;if(!O){I.set(m.subarray(C,E+1),x);x+=k}else{for(y=C;y<=E;y++){I[x++]=m[y]}}}else{I[x++]=0;I[x++]=0}}return I}},{"./resize_filter_info":7}],7:[function(e,t,r){t.exports=[{win:.5,filter:function e(t){return t>=-.5&&t<.5?1:0}},{win:1,filter:function e(t){if(t<=-1||t>=1){return 0}if(t>-1.1920929e-7&&t<1.1920929e-7){return 1}var r=t*Math.PI;return Math.sin(r)/r*(.54+.46*Math.cos(r/1))}},{win:2,filter:function e(t){if(t<=-2||t>=2){return 0}if(t>-1.1920929e-7&&t<1.1920929e-7){return 1}var r=t*Math.PI;return Math.sin(r)/r*Math.sin(r/2)/(r/2)}},{win:3,filter:function e(t){if(t<=-3||t>=3){return 0}if(t>-1.1920929e-7&&t<1.1920929e-7){return 1}var r=t*Math.PI;return Math.sin(r)/r*Math.sin(r/3)/(r/3)}}]},{}],8:[function(e,t,r){var F=e("./resize_filter_gen");function I(e,t,r){var i=3,n=t*r*4|0;while(i<n){e[i]=255;i=i+4|0}}function o(e){return new Uint8Array(e.buffer,0,e.byteLength)}var s=true;try{s=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1}catch(e){}function x(e,t,r){if(s){t.set(o(e),r);return}for(var i=r,n=0;n<e.length;n++){var a=e[n];t[i++]=a&255;t[i++]=a>>8&255}}t.exports=function e(t){var r=t.src;var i=t.width;var n=t.height;var a=t.toWidth;var o=t.toHeight;var s=t.scaleX||t.toWidth/t.width;var l=t.scaleY||t.toHeight/t.height;var c=t.offsetX||0;var u=t.offsetY||0;var f=t.dest||new Uint8Array(a*o*4);var d=typeof t.quality==="undefined"?3:t.quality;var p=t.alpha||false;var h=F(d,i,a,s,c),v=F(d,n,o,l,u);var m=0;var g=this.__align(m+Math.max(r.byteLength,f.byteLength));var _=this.__align(g+n*a*4);var y=this.__align(_+h.byteLength);var b=y+v.byteLength;var w=this.__instance("resize",b);var A=new Uint8Array(this.__memory.buffer);var C=new Uint32Array(this.__memory.buffer);var E=new Uint32Array(r.buffer);C.set(E);x(h,A,_);x(v,A,y);var S=w.exports.convolveHV||w.exports._convolveHV;S(_,y,g,i,n,a,o);var k=new Uint32Array(f.buffer);k.set(new Uint32Array(this.__memory.buffer,0,o*a));if(!p)I(f,a,o);return f}},{"./resize_filter_gen":6}],9:[function(e,t,r){var i=100;function n(e,t){this.create=e;this.available=[];this.acquired={};this.lastId=1;this.timeoutId=0;this.idle=t||2e3}n.prototype.acquire=function(){var e=this;var t=void 0;if(this.available.length!==0){t=this.available.pop()}else{t=this.create();t.id=this.lastId++;t.release=function(){return e.release(t)}}this.acquired[t.id]=t;return t};n.prototype.release=function(e){var t=this;delete this.acquired[e.id];e.lastUsed=Date.now();this.available.push(e);if(this.timeoutId===0){this.timeoutId=setTimeout(function(){return t.gc()},i)}};n.prototype.gc=function(){var t=this;var r=Date.now();this.available=this.available.filter(function(e){if(r-e.lastUsed>t.idle){e.destroy();return false}return true});if(this.available.length!==0){this.timeoutId=setTimeout(function(){return t.gc()},i)}else{this.timeoutId=0}};t.exports=n},{}],10:[function(e,t,r){var v=2;t.exports=function e(t,r,i,n,a,o){var s=i/t;var l=n/r;var c=(2*o+v+1)/a;if(c>.5)return[[i,n]];var u=Math.ceil(Math.log(Math.min(s,l))/Math.log(c));if(u<=1)return[[i,n]];var f=[];for(var d=0;d<u;d++){var p=Math.round(Math.pow(Math.pow(t,u-d-1)*Math.pow(i,d+1),1/u));var h=Math.round(Math.pow(Math.pow(r,u-d-1)*Math.pow(n,d+1),1/u));f.push([p,h])}return f}},{}],11:[function(e,t,r){var i=1e-5;function h(e){var t=Math.round(e);if(Math.abs(e-t)<i){return t}return Math.floor(e)}function v(e){var t=Math.round(e);if(Math.abs(e-t)<i){return t}return Math.ceil(e)}t.exports=function e(t){var r=t.toWidth/t.width;var i=t.toHeight/t.height;var n=h(t.srcTileSize*r)-2*t.destTileBorder;var a=h(t.srcTileSize*i)-2*t.destTileBorder;if(n<1||a<1){throw new Error("Internal error in pica: target tile width/height is too small.")}var o,s;var l,c,u,f;var d=[];var p;for(c=0;c<t.toHeight;c+=a){for(l=0;l<t.toWidth;l+=n){o=l-t.destTileBorder;if(o<0){o=0}u=l+n+t.destTileBorder-o;if(o+u>=t.toWidth){u=t.toWidth-o}s=c-t.destTileBorder;if(s<0){s=0}f=c+a+t.destTileBorder-s;if(s+f>=t.toHeight){f=t.toHeight-s}p={toX:o,toY:s,toWidth:u,toHeight:f,toInnerX:l,toInnerY:c,toInnerWidth:n,toInnerHeight:a,offsetX:o/r-h(o/r),offsetY:s/i-h(s/i),scaleX:r,scaleY:i,x:h(o/r),y:h(s/i),width:v(u/r),height:v(f/i)};d.push(p)}}return d}},{}],12:[function(e,t,r){function i(e){return Object.prototype.toString.call(e)}t.exports.isCanvas=function e(t){var r=i(t);return r==="[object HTMLCanvasElement]"||r==="[object Canvas]"};t.exports.isImage=function e(t){return i(t)==="[object HTMLImageElement]"};t.exports.limiter=function e(t){var n=0,a=[];function o(){if(n<t&&a.length){n++;a.shift()()}}return function e(i){return new Promise(function(t,r){a.push(function(){i().then(function(e){t(e);n--;o()},function(e){r(e);n--;o()})});o()})}};t.exports.cib_quality_name=function e(t){switch(t){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"};t.exports.cib_support=function e(){return Promise.resolve().then(function(){if(typeof createImageBitmap==="undefined"||typeof document==="undefined"){return false}var r=document.createElement("canvas");r.width=100;r.height=100;return createImageBitmap(r,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then(function(e){var t=e.width===10;e.close();r=null;return t})}).catch(function(){return false})}},{}],13:[function(e,t,r){t.exports=function(){var n=e("./mathlib");var a=void 0;onmessage=function e(t){var r=t.data.opts;if(!a)a=new n(t.data.features);var i=a.resizeAndUnsharp(r);postMessage({result:i},[i.buffer])}}},{"./mathlib":1}],14:[function(e,t,r){var a,o,s,l,c,u,f,d;function p(e){if(e<.5){e=.5}var t=Math.exp(.726*.726)/e,r=Math.exp(-t),i=Math.exp(-2*t),n=(1-r)*(1-r)/(1+2*t*r-i);a=n;o=n*(t-1)*r;s=n*(t+1)*r;l=-n*i;c=2*r;u=-i;f=(a+o)/(1-c-u);d=(s+l)/(1-c-u);return new Float32Array([a,o,s,l,c,u,f,d])}function h(e,t,r,i,n,a){var o,s,l,c,u;var f,d,p;var h,v;var m,g,_,y;for(h=0;h<a;h++){f=h*n;d=h;p=0;o=e[f];u=o*i[6];c=u;m=i[0];g=i[1];_=i[4];y=i[5];for(v=0;v<n;v++){s=e[f];l=s*m+o*g+c*_+u*y;u=c;c=l;o=s;r[p]=c;p++;f++}f--;p--;d+=a*(n-1);o=e[f];u=o*i[7];c=u;s=o;m=i[2];g=i[3];for(v=n-1;v>=0;v--){l=s*m+o*g+c*_+u*y;u=c;c=l;o=s;s=e[f];t[d]=r[p]+c;f--;p--;d-=a}}}function i(e,t,r,i){if(!i){return}var n=new Uint16Array(e.length),a=new Float32Array(Math.max(t,r));var o=p(i);h(e,n,a,o,t,r,i);h(n,e,a,o,r,t,i)}t.exports=i},{}],15:[function(e,t,r){if(typeof Object.create==="function"){t.exports=function e(t,r){t.super_=r;t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}else{t.exports=function e(t,r){t.super_=r;var i=function(){};i.prototype=r.prototype;t.prototype=new i;t.prototype.constructor=t}}},{}],16:[function(e,t,r){var o=e("object-assign");var i=e("./lib/base64decode");var n=e("./lib/wa_detect");var a={js:true,wasm:true};function s(e){if(!(this instanceof s))return new s(e);var t=o({},a,e||{});this.options=t;this.__cache={};this.has_wasm=n();this.__init_promise=null;this.__modules=t.modules||{};this.__memory=null;this.__wasm={};this.__isLE=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1;if(!this.options.js&&!this.options.wasm){throw new Error('mathlib: at least "js" or "wasm" should be enabled')}}s.prototype.use=function(e){this.__modules[e.name]=e;if(!this.has_wasm||!this.options.wasm||!e.wasm_fn){this[e.name]=e.fn}else{this[e.name]=e.wasm_fn}return this};s.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm){return Promise.reject(new Error('mathlib: only "wasm" was enabled, but it\'s not supported'))}
1var r=this;this.__init_promise=Promise.all(Object.keys(r.__modules).map(function(t){var e=r.__modules[t];if(!r.has_wasm||!r.options.wasm||!e.wasm_fn)return null;if(r.__wasm[t])return null;return WebAssembly.compile(r.__base64decode(e.wasm_src)).then(function(e){r.__wasm[t]=e})})).then(function(){return r});return this.__init_promise};s.prototype.__base64decode=i;s.prototype.__reallocate=function e(t){if(!this.__memory){this.__memory=new WebAssembly.Memory({initial:Math.ceil(t/(64*1024))});return this.__memory}var r=this.__memory.buffer.byteLength;if(r<t){this.__memory.grow(Math.ceil((t-r)/(64*1024)))}return this.__memory};s.prototype.__instance=function e(t,r,i){if(r)this.__reallocate(r);if(!this.__wasm[t]){var n=this.__modules[t];this.__wasm[t]=new WebAssembly.Module(this.__base64decode(n.wasm_src))}if(!this.__cache[t]){var a={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[t]=new WebAssembly.Instance(this.__wasm[t],{env:o(a,i||{})})}return this.__cache[t]};s.prototype.__align=function e(t,r){r=r||8;var i=t%r;return t+(i?r-i:0)};t.exports=s},{"./lib/base64decode":17,"./lib/wa_detect":23,"object-assign":24}],17:[function(e,t,r){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";t.exports=function e(t){var r=t.replace(/[\r\n=]/g,""),i=r.length;var n=new Uint8Array(i*3>>2);var a=0;var o=0;for(var s=0;s<i;s++){if(s%4===0&&s){n[o++]=a>>16&255;n[o++]=a>>8&255;n[o++]=a&255}a=a<<6|c.indexOf(r.charAt(s))}var l=i%4*6;if(l===0){n[o++]=a>>16&255;n[o++]=a>>8&255;n[o++]=a&255}else if(l===18){n[o++]=a>>10&255;n[o++]=a>>2&255}else if(l===12){n[o++]=a>>4&255}return n}},{}],18:[function(e,t,r){t.exports=function e(t,r,i){var n=r*i;var a=new Uint16Array(n);var o,s,l,c,u;for(var f=0;f<n;f++){o=t[4*f];s=t[4*f+1];l=t[4*f+2];u=o>=s&&o>=l?o:s>=l&&s>=o?s:l;c=o<=s&&o<=l?o:s<=l&&s<=o?s:l;a[f]=(u+c)*257>>1}return a}},{}],19:[function(e,t,r){t.exports={name:"unsharp_mask",fn:e("./unsharp_mask"),wasm_fn:e("./unsharp_mask_wasm"),wasm_src:e("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":20,"./unsharp_mask_wasm":21,"./unsharp_mask_wasm_base64":22}],20:[function(e,t,r){var k=e("glur/mono16");var F=e("./hsl_l16");t.exports=function e(t,r,i,n,a,o){var s,l,c;var u,f,d;var p,h;var v,m,g;var _,y;if(n===0||a<.5){return}if(a>2){a=2}var b=F(t,r,i);var w=new Uint16Array(b);k(w,r,i,a);var A=n/100*4096+.5|0;var C=o*257|0;var E=r*i;for(var S=0;S<E;S++){_=2*(b[S]-w[S]);if(Math.abs(_)>=C){y=S*4;s=t[y];l=t[y+1];c=t[y+2];h=s>=l&&s>=c?s:l>=s&&l>=c?l:c;p=s<=l&&s<=c?s:l<=s&&l<=c?l:c;d=(h+p)*257>>1;if(p===h){u=f=0}else{f=d<=32767?(h-p)*4095/(h+p)|0:(h-p)*4095/(2*255-h-p)|0;u=s===h?(l-c)*65535/(6*(h-p))|0:l===h?21845+((c-s)*65535/(6*(h-p))|0):43690+((s-l)*65535/(6*(h-p))|0)}d+=A*_+2048>>12;if(d>65535){d=65535}else if(d<0){d=0}if(f===0){s=l=c=d>>8}else{m=d<=32767?d*(4096+f)+2048>>12:d+((65535-d)*f+2048>>12);v=2*d-m>>8;m>>=8;g=u+21845&65535;s=g>=43690?v:g>=32767?v+((m-v)*6*(43690-g)+32768>>16):g>=10922?m:v+((m-v)*6*g+32768>>16);g=u&65535;l=g>=43690?v:g>=32767?v+((m-v)*6*(43690-g)+32768>>16):g>=10922?m:v+((m-v)*6*g+32768>>16);g=u-21845&65535;c=g>=43690?v:g>=32767?v+((m-v)*6*(43690-g)+32768>>16):g>=10922?m:v+((m-v)*6*g+32768>>16)}t[y]=s;t[y+1]=l;t[y+2]=c}}}},{"./hsl_l16":18,"glur/mono16":14}],21:[function(e,t,r){t.exports=function e(t,r,i,n,a,o){if(n===0||a<.5){return}if(a>2){a=2}var s=r*i;var l=s*4;var c=s*2;var u=s*2;var f=Math.max(r,i)*4;var d=8*4;var p=0;var h=l;var v=h+c;var m=v+u;var g=m+u;var _=g+f;var y=this.__instance("unsharp_mask",l+c+u*2+f+d,{exp:Math.exp});var b=new Uint32Array(t.buffer);var w=new Uint32Array(this.__memory.buffer);w.set(b);var A=y.exports.hsl_l16||y.exports._hsl_l16;A(p,h,r,i);A=y.exports.blurMono16||y.exports._blurMono16;A(h,v,m,g,_,r,i,a);A=y.exports.unsharp||y.exports._unsharp;A(p,p,h,v,r,i,n,o);b.set(new Uint32Array(this.__memory.buffer,0,s))}},{}],22:[function(e,t,r){t.exports="AGFzbQEAAAABMQZgAXwBfGACfX8AYAZ/f39/f38AYAh/f39/f39/fQBgBH9/f38AYAh/f39/f39/fwACGQIDZW52A2V4cAAAA2VudgZtZW1vcnkCAAEDBgUBAgMEBQQEAXAAAAdMBRZfX2J1aWxkX2dhdXNzaWFuX2NvZWZzAAEOX19nYXVzczE2X2xpbmUAAgpibHVyTW9ubzE2AAMHaHNsX2wxNgAEB3Vuc2hhcnAABQkBAAqJEAXZAQEGfAJAIAFE24a6Q4Ia+z8gALujIgOaEAAiBCAEoCIGtjgCECABIANEAAAAAAAAAMCiEAAiBbaMOAIUIAFEAAAAAAAA8D8gBKEiAiACoiAEIAMgA6CiRAAAAAAAAPA/oCAFoaMiArY4AgAgASAEIANEAAAAAAAA8L+gIAKioiIHtjgCBCABIAQgA0QAAAAAAADwP6AgAqKiIgO2OAIIIAEgBSACoiIEtow4AgwgASACIAegIAVEAAAAAAAA8D8gBqGgIgKjtjgCGCABIAMgBKEgAqO2OAIcCwu3AwMDfwR9CHwCQCADKgIUIQkgAyoCECEKIAMqAgwhCyADKgIIIQwCQCAEQX9qIgdBAEgiCA0AIAIgAC8BALgiDSADKgIYu6IiDiAJuyIQoiAOIAq7IhGiIA0gAyoCBLsiEqIgAyoCALsiEyANoqCgoCIPtjgCACACQQRqIQIgAEECaiEAIAdFDQAgBCEGA0AgAiAOIBCiIA8iDiARoiANIBKiIBMgAC8BALgiDaKgoKAiD7Y4AgAgAkEEaiECIABBAmohACAGQX9qIgZBAUoNAAsLAkAgCA0AIAEgByAFbEEBdGogAEF+ai8BACIIuCINIAu7IhGiIA0gDLsiEqKgIA0gAyoCHLuiIg4gCrsiE6KgIA4gCbsiFKKgIg8gAkF8aioCALugqzsBACAHRQ0AIAJBeGohAiAAQXxqIQBBACAFQQF0ayEHIAEgBSAEQQF0QXxqbGohBgNAIAghAyAALwEAIQggBiANIBGiIAO4Ig0gEqKgIA8iECAToqAgDiAUoqAiDyACKgIAu6CrOwEAIAYgB2ohBiAAQX5qIQAgAkF8aiECIBAhDiAEQX9qIgRBAUoNAAsLCwvfAgIDfwZ8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIgyaEAAiDSANoCIPtjgCECAEIAxEAAAAAAAAAMCiEAAiDraMOAIUIAREAAAAAAAA8D8gDaEiCyALoiANIAwgDKCiRAAAAAAAAPA/oCAOoaMiC7Y4AgAgBCANIAxEAAAAAAAA8L+gIAuioiIQtjgCBCAEIA0gDEQAAAAAAADwP6AgC6KiIgy2OAIIIAQgDiALoiINtow4AgwgBCALIBCgIA5EAAAAAAAA8D8gD6GgIgujtjgCGCAEIAwgDaEgC6O2OAIcIAYEQCAFQQF0IQogBiEJIAIhCANAIAAgCCADIAQgBSAGEAIgACAKaiEAIAhBAmohCCAJQX9qIgkNAAsLIAVFDQAgBkEBdCEIIAUhAANAIAIgASADIAQgBiAFEAIgAiAIaiECIAFBAmohASAAQX9qIgANAAsLC7wBAQV/IAMgAmwiAwRAQQAgA2shBgNAIAAoAgAiBEEIdiIHQf8BcSECAn8gBEH/AXEiAyAEQRB2IgRB/wFxIgVPBEAgAyIIIAMgAk8NARoLIAQgBCAHIAIgA0kbIAIgBUkbQf8BcQshCAJAIAMgAk0EQCADIAVNDQELIAQgByAEIAMgAk8bIAIgBUsbQf8BcSEDCyAAQQRqIQAgASADIAhqQYECbEEBdjsBACABQQJqIQEgBkEBaiIGDQALCwvTBgEKfwJAIAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6CqIQ0gBSAEbCILBEAgB0GBAmwhDgNAQQAgAi8BACADLwEAayIGQQF0IgdrIAcgBkEASBsgDk8EQCAAQQJqLQAAIQUCfyAALQAAIgYgAEEBai0AACIESSIJRQRAIAYiCCAGIAVPDQEaCyAFIAUgBCAEIAVJGyAGIARLGwshCAJ/IAYgBE0EQCAGIgogBiAFTQ0BGgsgBSAFIAQgBCAFSxsgCRsLIgogCGoiD0GBAmwiEEEBdiERQQAhDAJ/QQAiCSAIIApGDQAaIAggCmsiCUH/H2wgD0H+AyAIayAKayAQQYCABEkbbSEMIAYgCEYEQCA
1EIAVrQf//A2wgCUEGbG0MAQsgBSAGayAGIARrIAQgCEYiBhtB//8DbCAJQQZsbUHVqgFBqtUCIAYbagshCSARIAcgDWxBgBBqQQx1aiIGQQAgBkEAShsiBkH//wMgBkH//wNIGyEGAkACfwJAIAxB//8DcSIFBEAgBkH//wFKDQEgBUGAIGogBmxBgBBqQQx2DAILIAZBCHYiBiEFIAYhBAwCCyAFIAZB//8Dc2xBgBBqQQx2IAZqCyIFQQh2IQcgBkEBdCAFa0EIdiIGIQQCQCAJQdWqAWpB//8DcSIFQanVAksNACAFQf//AU8EQEGq1QIgBWsgByAGa2xBBmxBgIACakEQdiAGaiEEDAELIAchBCAFQanVAEsNACAFIAcgBmtsQQZsQYCAAmpBEHYgBmohBAsCfyAGIgUgCUH//wNxIghBqdUCSw0AGkGq1QIgCGsgByAGa2xBBmxBgIACakEQdiAGaiAIQf//AU8NABogByIFIAhBqdUASw0AGiAIIAcgBmtsQQZsQYCAAmpBEHYgBmoLIQUgCUGr1QJqQf//A3EiCEGp1QJLDQAgCEH//wFPBEBBqtUCIAhrIAcgBmtsQQZsQYCAAmpBEHYgBmohBgwBCyAIQanVAEsEQCAHIQYMAQsgCCAHIAZrbEEGbEGAgAJqQRB2IAZqIQYLIAEgBDoAACABQQFqIAU6AAAgAUECaiAGOgAACyADQQJqIQMgAkECaiECIABBBGohACABQQRqIQEgC0F/aiILDQALCwsL"},{}],23:[function(e,t,r){var n;t.exports=function e(){if(typeof n!=="undefined")return n;n=false;if(typeof WebAssembly==="undefined")return n;try{var t=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]);var r=new WebAssembly.Module(t);var i=new WebAssembly.Instance(r,{});if(i.exports.test(4)!==0)n=true;return n}catch(e){}return n}},{}],24:[function(e,t,r){var l=Object.getOwnPropertySymbols;var c=Object.prototype.hasOwnProperty;var u=Object.prototype.propertyIsEnumerable;function f(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function i(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var t={};for(var r=0;r<10;r++){t["_"+String.fromCharCode(r)]=r}var i=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if(i.join("")!=="0123456789"){return false}var n={};"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e});if(Object.keys(Object.assign({},n)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}t.exports=i()?Object.assign:function(e,t){var r;var i=f(e);var n;for(var a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r){if(c.call(r,o)){i[o]=r[o]}}if(l){n=l(r);for(var s=0;s<n.length;s++){if(u.call(r,n[s])){i[n[s]]=r[n[s]]}}}}return i}},{}],25:[function(e,t,r){var _=arguments[3];var y=arguments[4];var b=arguments[5];var w=JSON.stringify;t.exports=function(e,t){var r;var i=Object.keys(b);for(var n=0,a=i.length;n<a;n++){var o=i[n];var s=b[o].exports;if(s===e||s&&s.default===e){r=o;break}}if(!r){r=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var l={};for(var n=0,a=i.length;n<a;n++){var o=i[n];l[o]=o}y[r]=["function(require,module,exports){"+e+"(self); }",l]}var c=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var u={};u[r]=r;y[c]=["function(require,module,exports){"+"var f = require("+w(r)+");"+"(f.default ? f.default : f)(self);"+"}",u];var f={};d(c);function d(e){f[e]=true;for(var t in y[e][1]){var r=y[e][1][t];if(!f[r]){d(r)}}}var p="("+_+")({"+Object.keys(f).map(function(e){return w(e)+":["+y[e][0]+","+w(y[e][1])+"]"}).join(",")+"},{},["+w(c)+"])";var h=window.URL||window.webkitURL||window.mozURL||window.msURL;var v=new Blob([p],{type:"text/javascript"});if(t&&t.bare){return v}var m=h.createObjectURL(v);var g=new Worker(m);g.objectURL=m;return g}},{}],"/":[function(o,e,t){var m=function(){function r(e,t){var r=[];var i=true;var n=false;var a=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){r.push(s.value);if(t&&r.length===t)break}}catch(e){n=true;a=e}finally{try{if(!i&&o["return"])o["return"]()}finally{if(n)throw a}}return r}return function(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return r(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var g=o("object-assign");var r=o("webworkify");var s=o("./lib/mathlib");var l=o("./lib/pool");var _=o("./lib/utils");var i=o("./lib/worker");var c=o("./lib/stepper");var y=o("./lib/tiler");var u={};var b=false;try{if(typeof navigator!=="undefined"&&navigator.userAgent){b=navigator.userAgent.indexOf("Safari")>=0}}catch(e){}var n=1;if(typeof navigator!=="undefined"){n=Math.min(navigator.hardwareConcurrency||1,4)}var a={tile:1024,concurrency:n,features:["js","wasm","ww"],idle:2e3};var f={quality:3,alpha:false,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0};var w=void 0;var A=void 0;function d(){return{value:r(i),destroy:function e(){this.value.terminate();if(typeof window!=="undefined"){var t=window.URL||window.webkitURL||window.mozURL||window.msURL;if(t&&t.revokeObjectURL&&this.value.objectURL){t.revokeObjectURL(this.value.objectURL)}}}}}function p(e){if(!(this instanceof p))return new p(e);this.options=g({},a,e||{});var t="lk_"+this.options.concurrency;this.__limit=u[t]||_.limiter(this.options.concurrency);if(!u[t])u[t]=this.__limit;this.features={js:false,wasm:false,cib:false,ww:false};this.__workersPool=null;this.__requested_features=[];this.__mathlib=null}p.prototype.init=function(){var t=this;if(this.__initPromise)return this.__initPromise;if(w!==false&&w!==true){w=false;if(typeof ImageData!=="undefined"&&typeof Uint8ClampedArray!=="undefined"){try{new ImageData(new Uint8ClampedArray(400),10,10);w=true}catch(e){}}}if(A!==false&&A!==true){A=false;if(typeof ImageBitmap!=="undefined"){if(ImageBitmap.prototype&&ImageBitmap.prototype.close){A=true}else{this.debug("ImageBitmap does not support .close(), disabled")}}}
1var r=this.options.features.slice();if(r.indexOf("all")>=0){r=["cib","wasm","js","ww"]}this.__requested_features=r;this.__mathlib=new s(r);if(r.indexOf("ww")>=0){if(typeof window!=="undefined"&&"Worker"in window){try{var e=o("webworkify")(function(){});e.terminate();this.features.ww=true;var i="wp_"+JSON.stringify(this.options);if(u[i]){this.__workersPool=u[i]}else{this.__workersPool=new l(d,this.options.idle);u[i]=this.__workersPool}}catch(e){}}}var n=this.__mathlib.init().then(function(e){g(t.features,e.features)});var a=void 0;if(!A){a=Promise.resolve(false)}else{a=_.cib_support().then(function(e){if(t.features.cib&&r.indexOf("cib")<0){t.debug("createImageBitmap() resize supported, but disabled by config");return}if(r.indexOf("cib")>=0)t.features.cib=e})}this.__initPromise=Promise.all([n,a]).then(function(){return t});return this.__initPromise};p.prototype.resize=function(i,a,e){var d=this;this.debug("Start resize...");var o=g({},f);if(!isNaN(e)){o=g(o,{quality:e})}else if(e){o=g(o,e)}o.toWidth=a.width;o.toHeight=a.height;o.width=i.naturalWidth||i.width;o.height=i.naturalHeight||i.height;if(o.unsharpRadius>2)o.unsharpRadius=2;var p=false;var h=null;if(o.cancelToken){h=o.cancelToken.then(function(e){p=true;throw e},function(e){p=true;throw e})}var t=3;var v=Math.ceil(Math.max(t,2.5*o.unsharpRadius|0));return this.init().then(function(){if(p)return h;if(d.features.cib){var n=a.getContext("2d",{alpha:Boolean(o.alpha)});d.debug("Resize via createImageBitmap()");return createImageBitmap(i,{resizeWidth:o.toWidth,resizeHeight:o.toHeight,resizeQuality:_.cib_quality_name(o.quality)}).then(function(e){if(p)return h;if(!o.unsharpAmount){n.drawImage(e,0,0);e.close();n=null;d.debug("Finished!");return a}d.debug("Unsharp result");var t=document.createElement("canvas");t.width=o.toWidth;t.height=o.toHeight;var r=t.getContext("2d",{alpha:Boolean(o.alpha)});r.drawImage(e,0,0);e.close();var i=r.getImageData(0,0,o.toWidth,o.toHeight);d.__mathlib.unsharp(i.data,o.toWidth,o.toHeight,o.unsharpAmount,o.unsharpRadius,o.unsharpThreshold);n.putImageData(i,0,0);i=r=t=n=null;d.debug("Finished!");return a})}var t={};var u=function e(n){return Promise.resolve().then(function(){if(!d.features.ww)return d.__mathlib.resizeAndUnsharp(n,t);return new Promise(function(t,r){var i=d.__workersPool.acquire();if(h)h.catch(function(e){return r(e)});i.value.onmessage=function(e){i.release();if(e.data.err)r(e.data.err);else t(e.data.result)};i.value.postMessage({opts:n,features:d.__requested_features,preload:{wasm_nodule:d.__mathlib.__}},[n.src.buffer])})})};var f=function e(a,i,o){var s=void 0;var l=void 0;var c=void 0;var n=function e(n){return d.__limit(function(){if(p)return h;var i=void 0;if(_.isCanvas(a)){d.debug("Get tile pixel data");i=s.getImageData(n.x,n.y,n.width,n.height)}else{d.debug("Draw tile imageBitmap/image to temporary canvas");var e=document.createElement("canvas");e.width=n.width;e.height=n.height;var t=e.getContext("2d",{alpha:Boolean(o.alpha)});t.globalCompositeOperation="copy";t.drawImage(l||a,n.x,n.y,n.width,n.height,0,0,n.width,n.height);d.debug("Get tile pixel data");i=t.getImageData(0,0,n.width,n.height);t=e=null}var r={src:i.data,width:n.width,height:n.height,toWidth:n.toWidth,toHeight:n.toHeight,scaleX:n.scaleX,scaleY:n.scaleY,offsetX:n.offsetX,offsetY:n.offsetY,quality:o.quality,alpha:o.alpha,unsharpAmount:o.unsharpAmount,unsharpRadius:o.unsharpRadius,unsharpThreshold:o.unsharpThreshold};d.debug("Invoke resize math");return Promise.resolve().then(function(){return u(r)}).then(function(e){if(p)return h;i=null;var t=void 0;d.debug("Convert raw rgba tile result to ImageData");if(w){t=new ImageData(new Uint8ClampedArray(e),n.toWidth,n.toHeight)}else{t=c.createImageData(n.toWidth,n.toHeight);if(t.data.set){t.data.set(e)}else{for(var r=t.data.length-1;r>=0;r--){t.data[r]=e[r]}}}d.debug("Draw tile");if(b){c.putImageData(t,n.toX,n.toY,n.toInnerX-n.toX,n.toInnerY-n.toY,n.toInnerWidth+1e-5,n.toInnerHeight+1e-5)}else{c.putImageData(t,n.toX,n.toY,n.toInnerX-n.toX,n.toInnerY-n.toY,n.toInnerWidth,n.toInnerHeight)}return null})})};return Promise.resolve().then(function(){c=i.getContext("2d",{alpha:Boolean(o.alpha)});if(_.isCanvas(a)){s=a.getContext("2d",{alpha:Boolean(o.alpha)});return null}if(_.isImage(a)){if(!A)return null;d.debug("Decode image via createImageBitmap");return createImageBitmap(a).then(function(e){l=e})}throw new Error('".from" should be image or canvas')}).then(function(){if(p)return h;d.debug("Calculate tiles");var e=y({width:o.width,height:o.height,srcTileSize:d.options.tile,toWidth:o.toWidth,toHeight:o.toHeight,destTileBorder:v});var t=e.map(function(e){return n(e)});function r(){if(l){l.close();l=null}}d.debug("Process tiles");return Promise.all(t).then(function(){d.debug("Finished!");r();return i},function(e){r();throw e})})};var e=function e(t,r,i,n){if(p)return h;var a=t.shift(),o=m(a,2),s=o[0],l=o[1];var c=t.length===0;n=g({},n,{toWidth:s,toHeight:l,quality:c?n.quality:Math.min(1,n.quality)});var u=void 0;if(!c){u=document.createElement("canvas");u.width=s;u.height=l}return f(r,c?i:u,n).then(function(){if(c)return i;n.width=s;n.height=l;return e(t,u,i,n)})};var r=c(o.width,o.height,o.toWidth,o.toHeight,d.options.tile,v);return e(r,i,a,o)})};p.prototype.resizeBuffer=function(e){var t=this;var r=g({},f,e);return this.init().then(function(){return t.__mathlib.resizeAndUnsharp(r)})};p.prototype.toBlob=function(a,o,s){o=o||"image/png";return new Promise(function(t){if(a.toBlob){a.toBlob(function(e){return t(e)},o,s);return}var e=atob(a.toDataURL(o,s).split(",")[1]);var r=e.length;var i=new Uint8Array(r);for(var n=0;n<r;n++){i[n]=e.charCodeAt(n)}t(new Blob([i],{type:o}))})};p.prototype.debug=function(){};e.exports=p},{"./lib/mathlib":1,"./lib/pool":9,"./lib/stepper":10,"./lib/tiler":11,"./lib/utils":12,"./lib/worker":13,"object-assign":24,webworkify:25}]},{},[])("/")})});function yf(e,t){var r=new Error(e);r.code=t;return r}function bf(e){this.data=e;var t=String.fromCharCode.apply(null,e.subarray(0,4));if(t!=="II*\0"&&t!=="MM\0*"){throw yf("invalid TIFF signature","EBADDATA")}this.big_endian=t[0]==="M"}bf.prototype.readUInt16=function(e,t){if(t+2>e.length)throw yf("unexpected EOF","EBADDATA");return this.big_endian?e[t]*256+e[t+1]:e[t]+e[t+1]*256};bf.prototype.readUInt32=function(e,t){if(t+4>e.length)throw yf("unexpected EOF","EBADDATA");return this.big_endian?e[t]*16777216+e[t+1]*65536+e[t+2]*256+e[t+3]:e[t]+e[t+1]*256+e[t+2]*65536+e[t+3]*16777216};bf.prototype.writeUInt16=function(e,t,r){if(r+2>e.length)throw yf("TIFF data is too large","EBADDATA");if(this.big_endian){e[r]=t>>>8&255;e[r+1]=t&255}else{e[r]=t&255;e[r+1]=t>>>8&255}};bf.prototype.writeUInt32=function(e,t,r){if(r+4>e.length)throw yf("TIFF data is too large","EBADDATA");if(this.big_endian){e[r]=t>>>24&255;e[r+1]=t>>>16&255;e[r+2]=t>>>8&255;e[r+3]=t&255}else{e[r]=t&255;e[r+1]=t>>>8&255;e[r+2]=t>>>16&255;e[r+3]=t>>>24&255}};bf.prototype.filter=function(r,e){var i=this;var n=r&&r.maxEntrySize?r.maxEntrySize:100;var a=function e(t){return function(e){if(r&&r.onIFDEntry){if(r.onIFDEntry.call(i,t,e)===false){return false}}return e.value.length<=n}};this.output={buf:e,length:0};var t=0;this.output.buf[0]=this.data[0];this.output.buf[1]=this.data[1];this.output.buf[2]=this.data[2];this.output.buf[3]=this.data[3];this.output.length+=4;this.writeUInt32(this.output.buf,8,this.output.length);this.output.length+=4;t=this.readUInt32(this.data,4);var o=this.processIFDSection(t,a(0));
1o.entries.forEach(function(e){if(e.tag===34665||e.tag===34853||e.tag===40965){if(e.type===4){i.writeUInt32(i.output.buf,i.output.length,e.written_offset+8);var t=i.readUInt32(e.value,0);i.processIFDSection(t,a(e.tag))}}});if(this.output.length>this.output.buf.length){throw yf("TIFF data is too large","EBADDATA")}return this.output.length};bf.prototype.readIFDEntry=function(e){var t=this.readUInt16(this.data,e);var r=this.readUInt16(this.data,e+2);var i=this.readUInt32(this.data,e+4);var n=void 0;switch(r){case 1:case 2:case 6:case 7:n=1;break;case 3:case 8:n=2;break;case 4:case 9:case 11:n=4;break;case 5:case 10:case 12:n=8;break;default:return}var a=void 0;var o=n*i;if(o<=4){a=this.data.subarray(e+8,e+12);if(a.length<4)throw yf("unexpected EOF","EBADDATA")}else{var s=this.readUInt32(this.data,e+8);a=this.data.subarray(s,s+o);if(a.length<o)throw yf("unexpected EOF","EBADDATA")}return{tag:t,type:r,count:i,value:a}};bf.prototype.processIFDSection=function(e,t){var r=this;var i=[];var n=this.readUInt16(this.data,e);e+=2;for(var a=0;a<n;a+=1){var o=this.readIFDEntry(e+a*12);if(!o)continue;if(!t(o))continue;i.push(o)}this.writeUInt16(this.output.buf,i.length,this.output.length);this.output.length+=2;var s=this.output.length;i.forEach(function(e){e.written_offset=r.output.length;r.writeUInt16(r.output.buf,e.tag,r.output.length);r.writeUInt16(r.output.buf,e.type,r.output.length+2);r.writeUInt32(r.output.buf,e.count,r.output.length+4);if(e.value.length<=4){if(e.value.length+r.output.length+8>r.output.buf.length){throw yf("TIFF data is too large","EBADDATA")}r.output.buf.set(e.value,r.output.length+8)}r.output.length+=12});this.writeUInt32(this.output.buf,0,this.output.length);this.output.length+=4;i.forEach(function(e,t){if(e.value.length>4){r.writeUInt32(r.output.buf,r.output.length,s+t*12+8);if(e.value.length+r.output.length>r.output.buf.length){throw yf("TIFF data is too large","EBADDATA")}r.output.buf.set(e.value,r.output.length);r.output.length+=e.value.length;if(r.output.length%2){r.output.buf[r.output.length]=255;r.output.length+=1}}});return{entries:i,next_ifb:this.readUInt32(this.data,e+n*12)}};var wf=function e(t,r){if(String.fromCharCode.apply(null,t.subarray(0,6))!=="Exif\0\0"){throw yf("invalid Exif signature","ENOTEXIF")}var i=new t.constructor(t.length);var n=new bf(t.subarray(6));"Exif\0\0".split("").forEach(function(e,t){i[t]=e.charCodeAt(0)});var a=n.filter(r,i.subarray(6));return new t.constructor(i.subarray(0,a+6))};var Af=0;var Cf=1;var Ef=2;var Sf=3;var kf=4;var Ff=5;var If=6;var xf=7;var Of=8;var Tf=9;var Rf=10;var Df=11;var Uf=12;function Lf(e){if(!(this instanceof Lf))return new Lf(e);e=e||{};this.output=[];this._state=Af;this._removeICC=e.removeICC;this._removeExif=e.removeExif;this._filter=e.filter;this._removeComments=e.removeComments;this._removeImage=e.removeImage;this._comment=e.comment;this._maxEntrySize=e.maxEntrySize;this._onIFDEntry=e.onIFDEntry;this._markerCode=0;this._bytesLeft=0;this._segmentLength=0;this._app1buffer=null;this._app1pos=0;this._bytesRead=0;this._BufferConstructor=null;this._bufferUseAlloc=false;this._bufferUseFrom=false}function Pf(e){var t=e.toString(16).toUpperCase();for(var r=2-t.length;r>0;r-=1){t="0"+t}return"0x"+t}function Nf(e,t,r){if(e.slice&&e.copy&&e.writeDoubleBE){return e.slice(t,r)}return e.subarray(t,r)}function Mf(e,t,r){if(e.length+r>t.length)throw new Error("buffer is too small");if(e.copy){e.copy(t,r)}else{t.set(e,r)}}Lf.prototype._error=function(e,t){if(this._state===Uf)return;var r=new Error(e);r.code=t;this._state=Uf;this.onError(r)};Lf.prototype._detectBuffer=function(e){if(this._BufferConstructor)return;this._BufferConstructor=e.constructor;this._bufferUseAlloc=typeof e.constructor.alloc==="function";this._bufferUseFrom=typeof e.constructor.from==="function"};Lf.prototype._buffer=function(e){var t=this._BufferConstructor;if(typeof e==="number"){return this._bufferUseAlloc?t.alloc(e):new t(e)}return this._bufferUseFrom?t.from(e):new t(e)};Lf.prototype.push=function(e){var r=void 0;var t=void 0;var i=0;this._detectBuffer(e);while(i<e.length){var n=e[i];switch(this._state){case Af:if(n!==255){this._error("unknown file format","ENOTJPEG",i);return}this._state=Cf;i+=1;break;case Cf:if(n!==216){this._error("unknown file format","ENOTJPEG",i);return}this.onData(this._buffer([255,216]));this._state=Ef;i+=1;break;case Ef:if(this._markerCode===218){this._state=Rf;break}if(n!==255){this._error("unexpected byte at segment start: "+Pf(n)+"\n (offset "+Pf(this._bytesRead+i)+" )","EBADDATA");return}this._state=Sf;i+=1;break;case Sf:if(208<=n&&n<=217||n===1){this._markerCode=n;this._bytesLeft=0;this._segmentLength=0;if(this._markerCode===217){this.onData(this._buffer([255,217]));this._state=Uf;this.onEnd()}else{this._state=kf}i+=1;break}if(192<=n&&n<=254){this._markerCode=n;this._bytesLeft=2;this._segmentLength=0;this._state=kf;i+=1;break}if(n===255){i+=1;break}this._error("unknown marker: "+Pf(n)+"\n (offset "+Pf(this._bytesRead+i)+" )","EBADDATA");return;case kf:while(this._bytesLeft>0&&i<e.length){this._segmentLength=this._segmentLength*256+e[i];this._bytesLeft-=1;i+=1}if(this._bytesLeft<=0){if(this._comment!==null&&typeof this._comment!=="undefined"&&this._markerCode!==224){var a=void 0;try{a=unescape(encodeURIComponent(this._comment))}catch(e){a=this._comment}r=this._buffer(5+a.length);r[0]=255;r[1]=254;r[2]=a.length+3>>>8&255;r[3]=a.length+3&255;a.split("").forEach(function(e,t){r[t+4]=e.charCodeAt(0)&255});r[r.length-1]=0;this._comment=null;this.onData(r)}
1if(this._markerCode===224){this._state=If}else if(this._markerCode===225){this._state=this._filter&&this._removeExif?Ff:Of}else if(this._markerCode===226){this._state=this._removeICC?Ff:If}else if(this._markerCode>226&&this._markerCode<240){this._state=this._filter?Ff:If}else if(this._markerCode===254){this._state=this._removeComments?Ff:If}else{this._state=this._removeImage?Ff:If}this._bytesLeft=Math.max(this._segmentLength-2,0)}break;case Ff:t=Math.min(this._bytesLeft,e.length-i);i+=t;this._bytesLeft-=t;if(this._bytesLeft<=0)this._state=Ef;break;case If:if(this._bytesLeft<=0){this._state=Ef}else{this._state=xf}r=this._buffer(4);r[0]=255;r[1]=this._markerCode;r[2]=this._bytesLeft+2>>>8&255;r[3]=this._bytesLeft+2&255;this.onData(r);break;case xf:t=Math.min(this._bytesLeft,e.length-i);this.onData(Nf(e,i,i+t));i+=t;this._bytesLeft-=t;if(this._bytesLeft<=0)this._state=Ef;break;case Of:this._app1buffer=this._buffer(this._bytesLeft);this._app1pos=0;this._state=Tf;break;case Tf:t=Math.min(this._bytesLeft,e.length-i);var o=Nf(e,i,i+t);Mf(o,this._app1buffer,this._app1pos);this._app1pos+=o.length;i+=t;this._bytesLeft-=t;if(this._bytesLeft<=0){var s=this._app1buffer;this._app1buffer=null;if(this._markerCode===225&&s[0]===69&&s[1]===120&&s[2]===105&&s[3]===102&&s[4]===0&&s[5]===0){if(this._removeExif){s=null}else{try{s=wf(s,{maxEntrySize:this._maxEntrySize,onIFDEntry:this._onIFDEntry})}catch(e){s=null;if(e.code&&e.code!=="EBADDATA"){this.onError(e);return}}}}else{if(this._filter===true)s=null}if(s){var l=this._buffer(4);l[0]=255;l[1]=this._markerCode;l[2]=s.length+2>>>8&255;l[3]=s.length+2&255;this.onData(l);this.onData(s)}this._state=Ef}break;case Rf:var c=i;while(i<e.length){if(e[i]===255){if(i+1<e.length){n=e[i+1];if(n===0||n>=208&&n<216){i+=2;continue}}break}i+=1}if(!this._removeImage){this.onData(Nf(e,c,i))}if(i<e.length){this._state=Df;i+=1}break;case Df:if(n===0||n>=208&&n<216||n===255){if(!this._removeImage){this.onData(this._buffer([255,n]))}this._state=n===255?Df:Rf;i+=1;break}this._state=Sf;break;case Uf:i+=1;break}}this._bytesRead+=e.length};Lf.prototype.end=function(){switch(this._state){case Af:case Cf:case Ff:case If:case xf:case Of:case Tf:this._error("unexpected end of file (offset "+Pf(this._bytesRead)+")","EBADDATA");break;case Uf:break;default:this.push(this._buffer([255,217]))}};Lf.prototype.onData=function(e){this.output.push(e)};Lf.prototype.onEnd=function(){};Lf.prototype.onError=function(e){throw e};var Bf=function e(t){var r=0;var i=0;for(var n=0;n<t.length;n+=1){r+=t[n].length}var a=new Uint8Array(r);for(var o=0;o<t.length;o+=1){a.set(t[o],i);i+=t[o].length}return a};var jf=function e(t){return new Promise(function(i,n){if(!t){i();return}var a=new FileReader;a.onloadend=function(){var e=new Uint8Array(a.result);if(e[0]===255&&e[1]===216){var t=Lf({removeImage:true,filter:true,removeICC:true});try{t.push(e);t.end()}catch(e){n(new Error("Bad image."));return}var r=Bf(t.output);i(r.subarray(0,r.length-2))}i()};a.readAsArrayBuffer(t)})};var $f=_f();var zf=function e(p,h){return new Promise(function(l,e){var c=p.slice||p.webkitSlice||p.mozSlice;var u=p.name.split(".").pop().toLowerCase();if(["bmp","jpg","jpeg","png"].indexOf(u)===-1){l(p);return}var f=void 0;var d=new Image;d.onload=function(){window.URL.revokeObjectURL(d.src);var e=u==="jpeg"||u==="jpg"?3:undefined;var t=Math.min(d.height*h.width/h.height,d.width);var r=u==="png"||p.type==="image/png";var i=document.createElement("canvas");var n=document.createElement("canvas");var a=80;var o=.6;var s=2;i.width=t;i.height=d.height;n.width=h.width;n.height=h.height;i.getContext("2d").drawImage(d,0,0,t,d.height);$f.resize(i,n,{alpha:r,unsharpAmount:a,unsharpRadius:o,unsharpThreshold:s}).then(function(){return $f.toBlob(n,p.type,e)}).then(function(e){var t=void 0;var r=void 0;if(f){r=c.call(e,20);t=new Blob([f,r],{type:p.type})}var i=p.name;p=t||e;p.name=i;l(p)})};d.onerror=function(){window.URL.revokeObjectURL(d.src);e(new Error("Bad image."))};jf(p).then(function(e){f=e;d.src=window.URL.createObjectURL(p)})})};var Wf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var Hf=vo.context("picker");var Gf={waiting:"waiting",uploading:"uploading",done:"done",failed:"failed",paused:"paused"};var Vf=function(u){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var f=function e(t,r){var i=r.getters,n=i.currentCloud,a=i.cloudFolders,o=i.selectedCloudPath;if(t instanceof File||t instanceof Blob){t={source:"local_file_system",mimetype:t.type,name:t.name,path:t.path||t.name,size:t.size,originalFile:t}}if(t.source==="dragged-from-web"){t.name=t.url.split("/").pop();t.path=t.url;t.mimetype="text/html";var s=t.url.split(".").pop();var l=["jpg","jpeg","png","tiff","gif","bmp"];if(s&&l.indexOf(s.toLowerCase())!==-1){t.thumbnail=t.url;t.mimetype="image/"+s}}if(t.link_path){t.source="url";t.path=t.link_path;t.name=t.display_name;t.mimetype=t.type}if(t.sourceKind==="cloud"&&n&&n.path){var c=n.path.map(function(e){return a[e]&&a[e].name}).filter(function(e){return e}).join("/");var u=a[o]&&a[o].name;if(u){c=c?c+"/"+u:u}t.originalPath=c?"/"+c+"/"+t.name:"/"+t.name}t.uuid=Yu(16);t.uploadId=t.uuid;t.progress=0;t.progressSize="";return t};var t=function e(n,i){var a=function e(){if(!n.getters.maxFiles||(n.getters.fileCount||0)<n.getters.maxFiles){return false}var t=n.getters.maxFiles===1?"file":"files";var r=gf(n.getters.lang).ERROR_MAX_FILES_REACHED.replace("{maxFiles}",n.getters.maxFiles).replace("{filesText}",t);n.dispatch("showNotification",r);return true};var o=function e(t){if(n.getters.maxSize===undefined){return true}if(t.size<n.getters.maxSize){return true}if(!t.size||typeof t.size==="string"){return true}var r=gf(n.getters.lang).ERROR_FILE_TOO_BIG.replace("{displayName}",qu(t)).replace("{roundFileSize}",Qu(n.getters.maxSize));n.dispatch("showNotification",r);return false};var s=function e(t){if(Hu(t,n.getters.accept)){return true}var r=gf(n.getters.lang).ERROR_FILE_NOT_ACCEPTABLE.replace("{displayName}",qu(t)).replace("{types}",n.getters.accept);n.dispatch("showNotification",r);return false};var l=function e(i){if(!n.getters.onFileSelected){return Promise.resolve()}return new Promise(function(e,t){try{var r=n.getters.onFileSelected(Gu(i,n.getters));if(r instanceof Promise){r.then(e).catch(t)}else{e(r)}}catch(e){t(e)}})};var c=function e(){if(n.getters.startUploadingWhenMaxFilesReached===true&&n.getters.onlyFilesWaiting.length===n.getters.maxFiles){n.dispatch("startUploading")}};return new Promise(function(t){if(i.state!==undefined){n.dispatch("cancelUpload",i.uuid);n.commit("DESELECT_FILE",i.uuid);t();return}if(i.folder){n.dispatch("addCloudFolder",{name:i.source,path:i.path});t();return}var r=f(i,n);l(r).then(function(e){if(a()){t();return}if(e){r=Wf({},r,{name:e.name||e.filename||r.name})}if(s(r)&&o(r)){Hf("Selected file:",i);n.commit("INITIALIZE_FILE",r);n.commit("MARK_FILE_AS_WAITING",r.uuid);c();
1if(!n.getters.uploadStarted&&n.getters.uploadInBackground){n.dispatch("uploadMoreMaybe")}if(Ic(r)&&xc(r)&&n.getters.maxFiles===1&&!n.getters.disableTransformer&&!n.getters.uploadStarted){n.commit("CHANGE_ROUTE",["transform",r.uuid])}else if(n.getters.maxFiles===1){n.commit("CHANGE_ROUTE",["summary"])}else if(n.getters.maxFiles>1&&n.getters.fileCount===n.getters.maxFiles&&n.getters.route[0]!=="summary"){n.commit("CHANGE_ROUTE",["summary"])}else if(n.getters.maxFiles>1&&r.source==="local_file_system"&&n.getters.route[0]!=="summary"){n.commit("CHANGE_ROUTE",["summary"])}}t()}).catch(function(e){n.dispatch("showNotification",e.message?e.message:e);t()})})};var d=function e(i,n){var a=function e(t,r,i){if(t<r)return r;if(t>i)return i;return t};var t=function e(){var t=n.progress/100;var r=void 0;if(t>1){return}if(t>=0&&t<.2)r=.1;else if(t>=.2&&t<.5)r=.04;else if(t>=.5&&t<.8)r=.02;else if(t>=.8&&t<.99)r=.005;else{r=0}t=a(t+r,0,.994);i.commit("SET_FILE_UPLOAD_PROGRESS",{uuid:n.uuid,progress:Math.round(t*100)});if(i.getters.onFileUploadProgress){i.getters.onFileUploadProgress(Gu(n,i.getters))}};var r=function e(){t();setTimeout(function(){if(!n)return;if(n.state!==Gf.uploading)return;e()},200)};r()};var r=function e(r,t){var i=void 0;var n=t||r.getters.onlyFilesWaiting[0];var a=Wf({progressInterval:10},r.getters.uploadConfig,{onRetry:function e(t){r.dispatch("checkNetworkXHR");if(r.getters.uploadConfig&&r.getters.uploadConfig.onRetry){r.getters.uploadConfig.onRetry(t)}},onProgress:function e(t){r.commit("SET_FILE_UPLOAD_PROGRESS",{uuid:n.uuid,progress:t.totalPercent,progressSize:Qu(t.totalBytes)});if(r.getters.onFileUploadProgress){r.getters.onFileUploadProgress(Gu(n,r.getters),t)}}});var o={};var s=Wf({},r.getters.storeTo);if(r.getters.disableStorageKey){if(r.getters.storeTo&&r.getters.storeTo.path){s.path=""+r.getters.storeTo.path+n.name}else{s.path=n.name}}if(n.sourceKind!=="cloud"){s.filename=n.name}r.commit("MARK_FILE_AS_UPLOADING",{uuid:n.uuid,token:o});Hf("Upload started:",n);if(n.transformed){i=r.dispatch("resizeImageMaybe",n.transformed).then(function(e){r.dispatch("runCallbackUploadStarted",n.uuid);return e}).then(function(e){if(!r.getters.files[n.uuid]){return Promise.resolve()}return u.upload(e,a,s,o)})}else if(n.tempStorage){r.commit("SET_FILE_UPLOAD_PROGRESS",{uuid:n.uuid,progress:100,progressSize:n.tempStorage.size});i=Promise.resolve(n.tempStorage)}else if(n.originalFile){i=r.dispatch("resizeImageMaybe",n.originalFile).then(function(e){r.commit("UPDATE_FILE_AFTER_RESIZE",{uuid:n.uuid,blob:e});return e}).then(function(e){r.dispatch("runCallbackUploadStarted",n.uuid);return e}).then(function(e){if(!r.getters.files[n.uuid]){return Promise.resolve()}return u.upload(e,a,s,o)})}else if(n.source==="url"||n.source==="dragged-from-web"){r.dispatch("runCallbackUploadStarted",n.uuid);i=u.storeURL(n.path,s,o)}else if(n.sourceKind==="cloud"){var l={};if(r.getters.customSourcePath){l.customSourcePath=r.getters.customSourcePath}if(r.getters.customSourceContainer){l.customSourceContainer=r.getters.customSourceContainer}r.dispatch("runCallbackUploadStarted",n.uuid);var c=r.getters.cloudClient;if(r.getters.preferLinkOverStore){i=c.link(n.source,n.path,l)}else{i=c.store(n.source,n.path,s,l,o)}}if(!n.transformed&&n.source!=="local_file_system"&&r.getters.uploadStarted){d(r,n)}i.then(function(e){if(!e){r.commit("MARK_FILE_AS_DONE",{uuid:n.uuid});return undefined}if(!n.transformed&&n.source!=="local_file_system"){r.commit("SET_FILE_UPLOAD_PROGRESS",{uuid:n.uuid,progress:100,progressSize:e.size})}if(e.error&&e.error.text){throw new Error(e.error.text)}var t=Wf({},n,e);delete t.uuid;r.commit("MARK_FILE_AS_DONE",{uuid:n.uuid,uploadMetadata:t});if(r.getters.onFileUploadFinished!==undefined){r.getters.onFileUploadFinished(Gu(t,r.getters))}Hf("Upload done:",n);return e}).catch(function(e){if(!navigator.onLine){r.dispatch("onNetworkError",true)}r.commit("SET_FILE_UPLOAD_PROGRESS",{uuid:n.uuid,progress:100});r.commit("MARK_FILE_AS_FAILED",n.uuid);if(r.getters.onFileUploadFailed!==undefined){r.getters.onFileUploadFailed(Gu(n,r.getters),e)}Hf("Upload failed:",n,e.message)});return i};var i=function e(t){var r=t.dispatch,i=t.getters,n=i.allowManualRetry,a=i.filesDone,o=i.filesList,s=i.filesFailed,l=i.uploadStarted;if(l&&o.length===a.length+s.length){if(!(n&&s.length)){r("allUploadsDone")}}};var n=function e(t){if(t.getters.filesUploading.length<t.getters.concurrency&&t.getters.onlyFilesWaiting.length>0){t.dispatch("uploadOne").then(function(){return t.dispatch("uploadMoreMaybe")}).catch(function(){return t.dispatch("uploadMoreMaybe")});t.dispatch("uploadMoreMaybe")}
1else{t.dispatch("finishUploadsMaybe")}};var a=function e(t){if(t.getters.uploadStarted){return}t.dispatch("checkNetworkNavigator");if(t.getters.onUploadStarted){t.getters.onUploadStarted(Vu(t.getters.filesList,t.getters))}t.commit("SET_UPLOAD_STARTED",true);t.commit("UPDATE_MOBILE_NAV_ACTIVE",false);var r=t.getters.route[0];if(r!=="transform"&&r!=="summary"){t.commit("CHANGE_ROUTE",["summary"])}t.dispatch("uploadMoreMaybe")};e=Wf({files:{},uploadStarted:false},e);var o={CLEAR_FILES:function e(r){Object.keys(r.files).forEach(function(e){var t=r.files[e];ai.set(t,"state",undefined);ai.set(t,"uuid",undefined);ai.delete(r.files,e)})},SET_UPLOAD_STARTED:function e(t,r){t.uploadStarted=r},INITIALIZE_FILE:function e(t,r){ai.set(t.files,r.uuid,r)},MARK_FILE_AS_WAITING:function e(t,r){var i=t.files[r];ai.set(i,"state",Gf.waiting);ai.set(i,"progress",0);ai.set(i,"progressSize",0)},DESELECT_FILE:function e(t,r){var i=t.files[r];ai.set(i,"state",undefined);ai.set(i,"uuid",undefined);ai.delete(t.files,r)},DESELECT_FOLDER:function e(r,i){Object.keys(r.files).forEach(function(e){var t=r.files[e];if(Fc(t,i)){ai.set(t,"state",undefined);ai.set(t,"uuid",undefined);ai.delete(r.files,e)}})},MARK_FILE_AS_UPLOADING:function e(t,r){var i=r.uuid,n=r.token;var a=t.files[i];ai.set(a,"state",Gf.uploading);if(n){a.token=n}},MARK_FILE_AS_PAUSED:function e(t,r){var i=t.files[r];ai.set(i,"state",Gf.paused)},MARK_FILE_AS_DONE:function e(t,r){var i=r.uuid,n=r.uploadMetadata;var a=t.files[i];if(n){ai.set(a,"tempStorage",n);Object.keys(n).forEach(function(e){ai.set(a,e,n[e])})}ai.set(a,"state",Gf.done)},MARK_FILE_AS_FAILED:function e(t,r){var i=t.files[r];if(i){ai.set(i,"state",Gf.failed)}},SET_FILE_UPLOAD_PROGRESS:function e(t,r){var i=r.uuid,n=r.progress,a=r.progressSize;var o=t.files[i];if(o){ai.delete(o,"progress");ai.delete(o,"progressSize");ai.set(o,"progress",n);ai.set(o,"progressSize",a)}},SET_FILE_CROP_DATA:function e(t,r){var i=r.uuid,n=r.cropData,a=r.imageData,o=r.rotation;var s=t.files[i];function l(){if(n.x&&n.y&&n.width&&n.height){if(o===180){return a.naturalWidth!==n.width||a.naturalHeight!==n.height}return a.naturalHeight!==n.width||a.naturalWidth!==n.height}return false}if(l()){ai.set(s,"cropData",{originalImageSize:[a.naturalWidth,a.naturalHeight],cropArea:{position:[n.x,n.y],size:[n.width,n.height]}})}if(o!==0){ai.set(s,"rotated",{value:Math.abs(o),direction:o>0?"CW":"CCW"})}},SET_FILE_TRANSFORMATION:function e(t,r){var i=r.uuid,n=r.blob,a=r.transform;var o=t.files[i];o.state=Gf.waiting;if(!o.originalSize){ai.set(o,"originalSize",o.size)}if(!o.originalName){ai.set(o,"originalName",o.name)}if(a==="circle"||a==="crop"){ai.set(o,"cropped",true)}ai.set(o,"transformed",n);ai.set(o,"size",n.size);ai.set(o,"name",n.name);ai.set(o,"progress",0);ai.set(o,"progressSize","")},REMOVE_FILE_TRANSFORMATION:function e(t,r){var i=t.files[r];ai.delete(i,"transformed");ai.delete(i,"cropped");ai.delete(i,"cropData");ai.delete(i,"rotated");if(i.originalSize){ai.set(i,"size",i.originalSize);ai.delete(i,"originalSize")}if(i.originalName){ai.set(i,"name",i.originalName);ai.delete(i,"originalName")}},REMOVE_SOURCE_FROM_WAITING:function e(r,i){Object.keys(r.files).forEach(function(e){var t=r.files[e];if(t.source===i){ai.set(t,"state",undefined);ai.set(t,"uuid",undefined);ai.delete(r.files,e)}})},REMOVE_CLOUDS_FROM_WAITING:function e(r){Object.keys(r.files).forEach(function(e){var t=r.files[e];if(t.sourceKind==="cloud"){ai.set(t,"state",undefined);ai.set(t,"uuid",undefined);ai.delete(r.files,e)}})},UPDATE_FILE_AFTER_RESIZE:function e(t,r){var i=r.uuid,n=r.blob;var a=t.files[i];ai.set(a,"size",n.size);ai.set(a,"progress",0);ai.set(a,"progressSize","")}};var s={addFile:t,finishUploadsMaybe:i,startUploading:a,uploadMoreMaybe:n,uploadOne:r,runCallbackUploadStarted:function e(t,r){var i=t.state,n=t.getters;if(!n.onFileUploadStarted){return}var a=i.files[r];n.onFileUploadStarted(Gu(a,n))},cancelUpload:function e(t,r){var i=t.state;var n=i.files[r];if(n&&n.token&&n.token.cancel){n.token.cancel()}},cancelFolderUpload:function e(t,r){var i=t.dispatch,n=t.state;Mu(n.files).filter(function(e){if(e.sourceKind!=="cloud"){return true}return e.path.indexOf(r.path)>=0}).map(function(e){return e.uuid}
1).forEach(function(e){i("cancelUpload",e)})},cancelAllUploads:function e(t){var r=t.dispatch,i=t.state;var n=Object.keys(i.files);n.forEach(function(e){r("cancelUpload",e)})},deselectAllFiles:function e(t){t.dispatch("cancelAllUploads");t.getters.filesList.forEach(function(e){if(e&&e.uuid){t.commit("DESELECT_FILE",e.uuid)}})},deselectFolder:function e(t,r){t.dispatch("cancelFolderUpload",r);t.commit("DESELECT_FOLDER",r)},resizeImageMaybe:function e(t,a){var o=t.dispatch,r=t.getters,s=r.imageDim,l=r.imageMin,c=r.imageMax;if(!a||!xc(a)||!(s||l||c)){return Promise.resolve(a)}return new Promise(function(r){var i=new Image;var n=window.URL.createObjectURL(a);i.src=n;i.onload=function(){window.URL.revokeObjectURL(n);var e={width:i.width,height:i.height};var t=e.width/e.height;if(s){if(s[0]){e.width=s[0];e.height=e.width/t}else if(s[1]){e.height=s[1];e.width=e.height*t}}else{if(l){if(e.width<l[0]){e.width=l[0];e.height=e.width/t}if(e.height<l[1]){e.height=l[1];e.width=e.height*t}}if(c){if(e.width>c[0]){e.width=c[0];e.height=e.width/t}if(e.height>c[1]){e.height=c[1];e.width=e.height*t}}}e.width=parseInt(e.width,10);e.height=parseInt(e.height,10);if(i.width!==e.width&&i.height!==e.height){o("resizeImage",{blob:a,config:e}).then(function(e){return r(e)}).catch(function(){return r(a)})}else{r(a)}}})},resizeImage:function e(t,r){var i=r.blob,n=r.config;return zf(i,n)},transformImage:function e(t,r){return t.commit("CHANGE_ROUTE",["transform",r])},pauseAllUploads:function e(t){var r=t.commit,i=t.getters.filesUploading;if(i.length){i.forEach(function(e){if(e.token&&e.token.pause){e.token.pause();r("MARK_FILE_AS_PAUSED",e.uuid)}})}},retryAllFailedFiles:function e(t){var r=t.commit,i=t.dispatch,n=t.getters,a=n.filesFailed,o=n.filesPaused;if(o.length){o.forEach(function(e){if(e.token&&e.token.resume){e.token.resume();r("MARK_FILE_AS_UPLOADING",{uuid:e.uuid})}})}if(a.length){a.forEach(function(e){r("MARK_FILE_AS_WAITING",e.uuid);i("uploadMoreMaybe")})}}};var l={files:function e(t){return t.files},filesList:function e(t){return Mu(t.files)},filesUploading:function e(t,r){var i=r.filesList;return i.filter(function(e){return e.state===Gf.uploading})},filesDone:function e(t,r){var i=r.filesList;return i.filter(function(e){return e.state===Gf.done})},filesFailed:function e(t,r){var i=r.filesList;return i.filter(function(e){return e.state===Gf.failed})},filesPaused:function e(t,r){var i=r.filesList;return i.filter(function(e){return e.state===Gf.paused})},fileCount:function e(t,r){var i=r.filesList;return i.length},onlyFilesWaiting:function e(t,r){var i=r.filesList;return i.filter(function(e){return e.state===Gf.waiting})},uploadStarted:function e(t){return t.uploadStarted},filesWaiting:function e(t,r){var i=r.filesList;if(t.uploadStarted){return i.filter(function(e){return e.state===Gf.waiting})}return i},filesNeededCount:function e(t,r){var i=r.minFiles,n=r.filesWaiting;return i-n.length},canStartUpload:function e(t,r){var i=r.filesWaiting,n=r.minFiles;return i.length>=n},canAddMoreFiles:function e(t,r){var i=r.filesWaiting,n=r.maxFiles;return i.length<n}};return{state:e,mutations:o,actions:s,getters:l}};var Qf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var qf={render:function e(){var i=this;var t=i.$createElement;var n=i._self._c||t;return n("modal",[n("div",{attrs:{slot:"header"},slot:"header"},[i.shouldGoBack?n("div",{staticClass:"fsp-transformer__go-back",attrs:{title:i.t("Go back")},on:{click:i.goBack}}):i._e(),i._v(" "),n("content-header",{attrs:{"hide-menu":true}},[n("span",{staticClass:"fsp-header-text--visible"},[i._v(i._s(i.t("Edit Image")))])])],1),i._v(" "),n("div",{staticClass:"fst-sidebar",attrs:{slot:"sidebar"},slot:"sidebar"},i._l(i.options,function(r){return n("div",{key:r,staticClass:"fst-sidebar__option",class:i.getSidebarClasses(r),attrs:{title:i.t(i.capitalize(r))},on:{click:function e(t){i.handleClick(r)}}},[n("span",{staticClass:"fst-icon",class:i.genIconClass(r)}),i._v(" "+i._s(i.t(i.capitalize(r)))+" ")])})),i._v(" "),n("div",{staticClass:"fsp-transformer",attrs:{slot:"body"},slot:"body"},[i.state==="loading"?n("loading"):i._e(),i._v(" "),i.state==="errored"?n("div",{staticClass:"fsp-transformer__error"},[n("div",{staticClass:"fst-icon--broken-image"}),i._v(" "+i._s(i.t("This image cannot be edited"))+" ")]):i._e(),i._v(" "),n("img",{directives:[{name:"show",rawName:"v-show",value:i.state!=="loading"&&i.state!=="errored",expression:"state !== 'loading' && state !== 'errored'"}],ref:"image",staticStyle:{"max-width":"100%"}}),i._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:i.state==="rotate",expression:"state === 'rotate'"}],staticClass:"fsp-transformer__rotate"},[n("div",{staticClass:"fsp-transformer__rotate-left",attrs:{title:"Rotate -90°"},on:{click:function e(t){i.rotate(-90)}}}),i._v(" "),n("div",{staticClass:"fsp-transformer__rotate-right",attrs:{title:"Rotate 90°"},on:{click:function e(t){i.rotate(90)}}})]),i._v(" "),n("footer-nav",{attrs:{slot:"footer","is-visible":!i.uploadStarted},slot:"footer"},[n("span",{staticClass:"fsp-button fsp-button--cancel",class:{"fsp-button--cancel-disabled":!i.file.transformed||i.state==="loading"},attrs:{slot:"nav-left"},on:{click:i.handleReset},slot:"nav-left"},[i._v(" "+i._s(i.t("Reset"))+" ")]),i._v(" "),n("div",{attrs:{slot:"nav-right"},slot:"nav-right"},[i.state!=="ready"&&i.state!=="loading"&&i.state!=="errored"?n("span",{staticClass:"fsp-button fsp-button--outline",attrs:{title:"Save"},on:{click:i.handleApply}},[i._v(" "+i._s(i.t("Save"))+" ")]):i.maxFiles===1?n("span",{staticClass:"fsp-button fsp-button--primary",class:{"fsp-button--disabled":i.state==="loading"},attrs:{title:"Upload"},on:{click:i.handleUpload}},[i._v(" "+i._s(i.t("Upload"))+" ")]):i.cropForce&&i.filesNotCropped.length&&i.state!=="loading"?n("span",{staticClass:"fsp-button fsp-button--primary",attrs:{title:"Next"},on:{click:i.handleNext}},[i._v(" "+i._s(i.t("Next"))+" ")]):n("span",{staticClass:"fsp-button fsp-button--primary",class:{"fsp-button--disabled":i.state==="loading"},attrs:{title:"Done"},on:{click:i.handleDone}},[i._v(" "+i._s(i.t("Done"))+" ")])])]),i._v(" "),n("footer-nav",{attrs:{slot:"footer","is-visible":i.uploadStarted,"full-width":true},slot:"footer"},[n("span",{attrs:{slot:"nav-center"},slot:"nav-center"},[n("progress-bar",{attrs:{progress:i.file.progress}})],1)])],1)])},staticRenderFns:[],components:{ContentHeader:$l,FooterNav:zc,Loading:Bc,Modal:yc,ProgressBar:iu},beforeDestroy:function e(){if(this.cropper){this.cropper.destroy();this.cropper=null}},mounted:function e(){var t=this;this.$nextTick(function(){t.initialize()})},computed:Qf({},xl.mapGetters(["apiClient","cropAspectRatio","cropFiles","cropForce","files","maxFiles","route","transformations","uploadStarted","filesList"]),{filesNotCropped:function e(){return this.filesList.filter(function(e){return xc(e)&&!e.cropped})},options:function e(){var t=[];if(this.transformations.crop){t.push("crop")}if(this.transformations.mask){t.push("mask")}if(this.transformations.circle){t.push("circle");if(typeof this.cropAspectRatio==="number"&&!isNaN(this.cropAspectRatio)&&this.cropAspectRatio!==1){t.pop()}}if(this.transformations.rotate){t.push("rotate")}return t},shouldGoBack:function e(){if(this.uploadStarted){return false}if(this.cropFiles){return this.maxFiles>1}return true}}),data:function e(){return{cachedURL:null,cropper:null,ctx:null,fabric:null,file:{},hasCircle:false,maskContainer:null,oImg:null,pendingApply:false,rotation:0,state:"loading"}},methods:Qf({},xl.mapActions(["deselectAllFiles","resizeImageMaybe","startUploading","uploadOne"]),{apply:function e(n){var a=this;var o=this.file.mimetype;var s=this.file.name;this.pendingApply=false;return new Promise(function(t){var e=a.cropper.getCroppedCanvas();if(a.state==="circle"){e=a.getRoundedCanvas(e);a.hasCircle=true}if(a.state==="mask"){e=a.getMaskedCanvas(e);a.hasCircle=true}if(a.hasCircle||Oc(a.file)){var r=a.file.name&&a.file.name.split(".").pop().toLowerCase();o="image/png";s=r==="png"?s:s+".png"}var i=a.state;a.state="loading";e.toBlob(function(e){a.resetEXIFOrientation(e).then(function(e){if(a.cropper){e.name=s;a.$store.commit("SET_FILE_CROP_DATA",{uuid:a.file.uuid,cropData:a.cropper.getData(true),imageData:a.cropper.getImageData(),rotation:a.rotation});a.$store.commit("SET_FILE_TRANSFORMATION",{uuid:a.file.uuid,blob:e,transform:i});if(!n){a.cropper.replace(window.URL.createObjectURL(e))}}t()})},o)})},capitalize:function e(t){return t&&t[0].toUpperCase()+t.slice(1)},getMaskedCanvas:function e(t){var r=document.createElement("canvas");var i=r.getContext("2d");r.width=t.width;r.height=t.height;i.imageSmoothingEnabled=true;i.drawImage(this.svgMask,0,0,r.width,r.height);i.globalCompositeOperation="source-out";i.drawImage(t,0,0,r.width,r.height);return r},getRoundedCanvas:function e(t){var r=document.createElement("canvas");var i=r.getContext("2d");
1var n=t.width;var a=t.height;r.width=n;r.height=a;i.imageSmoothingEnabled=true;i.drawImage(t,0,0,n,a);i.globalCompositeOperation="destination-in";i.beginPath();i.arc(n/2,a/2,Math.min(n,a)/2,0,2*Math.PI,true);i.fill();return r},getImageURL:function e(r){var i=this;return new Promise(function(t){if(i.cachedURL){return t(i.cachedURL)}if(r.originalFile){return i.resizeImageMaybe(r.originalFile).then(function(e){i.cachedURL=window.URL.createObjectURL(e);t(i.cachedURL)})}if(r.state===Gf.uploading){var e=function e(){if(r.state===Gf.uploading){setTimeout(e,100)}else{i.cachedURL=i.signUrl(r.url);t(i.cachedURL)}};return e()}return i.uploadOne(r).then(function(e){i.cachedURL=i.signUrl(e.url);t(i.cachedURL)}).catch(function(){i.state="errored";t()})})},genIconClass:function e(t){if(this.state===t&&!this.uploadStarted&&this.state!=="loading"&&this.state!=="errored"){return"fst-icon--"+t+"-blue"}return"fst-icon--"+t+"-black"},getSidebarClasses:function e(t){return{"fst-sidebar__option--active":t===this.state,"fst-sidebar__option--disabled":this.state==="loading"||this.state==="errored"||this.uploadStarted}},goBack:function e(){if(this.maxFiles===1){this.$store.commit("REMOVE_FILE_TRANSFORMATION",this.file.uuid);this.$store.dispatch("deselectAllFiles")}this.$store.commit("GO_BACK_WITH_ROUTE")},handleApply:function e(){if(this.state==="crop"||this.state==="circle"){var t=this.cropper.getCropBoxData();if(!t.width||!t.height){return}}if(this.state!=="ready"&&this.state!=="loading"&&this.state!=="errored"){this.apply()}},handleReset:function e(){if(this.state!=="loading"){this.$store.commit("REMOVE_FILE_TRANSFORMATION",this.file.uuid);this.state="loading";this.hasCircle=false;this.rotation=0;this.cropper.destroy();this.$refs.image.src="";this.initialize()}},handleClick:function e(t){this.state=t},handleNext:function e(){if(this.state!=="loading"){var t=this.filesNotCropped[0];this.cachedURL=null;this.state="loading";this.hasCircle=false;this.rotation=0;this.$refs.image.src="";this.cropper.destroy();this.initialize(t.uuid)}},handleDone:function e(){var t=this;if(this.state!=="ready"&&this.state!=="loading"&&this.state!=="errored"){this.apply(true).then(function(){return t.goBack()})}else if(this.state!=="loading"){this.goBack()}},handleUpload:function e(){var t=this;if(this.state!=="ready"&&this.state!=="loading"&&this.state!=="errored"){this.apply(true).then(function(){return t.startUploading()})}else if(this.state!=="loading"){this.startUploading()}},initialize:function e(t){var i=this;var n={aspectRatio:this.cropAspectRatio,autoCrop:false,autoCropArea:1,background:false,center:false,dragMode:"none",guides:false,toggleDragModeOnDblclick:false,viewMode:1,zoomable:true};t=t||this.route[1];this.file=this.files[t];oo(a.vendor.cropper).then(function(r){i.getImageURL(i.file).then(function(e){var t=i.$refs.image;if(t){t.src=e;t.addEventListener("ready",function(){i.state="ready"});i.cropper=new r(t,n)}}).catch(function(){i.state="errored"})})},resetEXIFOrientation:function e(o){var t=this;if(o.type!=="image/jpeg"){return Promise.resolve(o)}return new Promise(function(a){try{var e=new XMLHttpRequest;e.open("GET",t.cachedURL,true);e.responseType="arraybuffer";e.onload=function(){if(e.status===200){var n=new FileReader;n.onloadend=function(){var e=n.result;var t=cu.extractFrom(e);cu.setOrientation(t,1);var r=cu.overwriteInFile(e,t);var i=new Blob([r],{type:o.type});a(i)};n.readAsArrayBuffer(o)}else{throw new Error("Image request failed")}};e.send()}catch(e){console.log(e);a(o)}})},rotate:function e(t){this.rotation+=t;if(this.rotation===270){this.rotation=-90}else if(this.rotation===-180){this.rotation=180}this.cropper.rotate(t)},showSVGMask:function e(u){var f=this;u.loadSVGFromURL(this.transformations.mask.url,function(e){var t=e[0];if(!t||!t.d){return}var r=document.createElement("canvas");var i=Math.ceil(t.width);var n=Math.ceil(t.height);var a=new u.Canvas(r);a.setDimensions({width:i,height:n});var o=new u.Path(t.d,{width:i,height:n,top:0,left:0,fill:"#000000",globalCompositeOperation:"destination-out"});var s=new u.Rect({width:i+100,height:n+100,left:0,top:0,fill:f.transformations.mask.color,stroke:f.transformations.mask.color,strokeWidth:10});a.add(s);a.add(o);a.renderAll();var l=a.toDataURL();var c=new Image;c.src=l;f.svgMask=c;c.onerror=function(){f.state="errored"};c.onload=function(){var e=document.querySelector(".fsp-picker .cropper-face");f.cropper.setAspectRatio(i/n);f.cropper.crop();e.style.background="url("+l+") no-repeat";e.style.backgroundSize="100%";e.style.opacity="0.5"}},null,{crossOrigin:"anonymous"})},signUrl:function e(t){var r=this.apiClient.session,i=r.policy,n=r.signature;if(i&&n){return t+"?policy="+i+"&signature="+n}return t}}),watch:{state:function e(t){var r=this;var i=document.querySelector(".fsp-picker .cropper-view-box");var n=document.querySelector(".fsp-picker .cropper-face");switch(t){case"ready":this.cropper.reset();this.cropper.clear();if(this.cropForce&&!this.file.cropped){this.state="crop"}if(!this.file.transformed&&this.options.length===1&&this.options[0]==="mask"){this.state="mask"}break;case"circle":i.style.borderRadius="50%";n.style.borderRadius="50%";n.style.background="none";this.cropper.setAspectRatio(1);this.cropper.crop();break;case"crop":i.style.borderRadius="0px";n.style.borderRadius="0px";n.style.background="none";this.cropper.setAspectRatio(this.cropAspectRatio);this.cropper.crop();break;case"rotate":this.cropper.reset();this.cropper.clear();break;case"mask":{i.style.borderRadius="0px";n.style.borderRadius="0px";oo(a.vendor.fabric).then(function(e){r.showSVGMask(e)});break}default:break}}}};var Kf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var Yf={render:function e(){var r=this;var t=r.$createElement;var i=r._self._c||t;return i("div",{staticClass:"fsp-summary__item",style:{opacity:r.uploadStarted&&r.isDone(r.file)?"0.7":"1"}},[(r.file.source==="local_file_system"||r.isTransformed(r.file))&&!r.disableThumbnails&&r.isEditable(r.file)?i("img",{key:r.file.uuid,staticClass:"fsp-summary__thumbnail",attrs:{src:r.generateThumbnail(r.file)}}):r.isEditable(r.file)&&r.file.source!=="local_file_system"&&!r.disableThumbnails?i("div",[i("img",{staticClass:"fsp-summary__thumbnail",attrs:{src:r.file.thumbnail}})]):i("div",{staticClass:"fsp-summary__thumbnail-container"},[i("span",{class:r.generateClass(r.file)})]),r._v(" "),i("span",{staticClass:"fsp-summary__item-name",attrs:{title:r.file.name}},[i("span",[r._v(r._s(r.file.name))]),r._v(" "),i("span",{staticClass:"fsp-summary__size"},[!r.isFailed(r.file)&&(r.file.source==="local_file_system"||r.isTransformed(r.file))&&r.uploadStarted?i("span",{staticClass:"fsp-summary__size-progress"},[r._v(" "+r._s(r.file.progressSize)+" / ")]):r._e(),r._v(" "),i("span",[r._v(" "+r._s(r.translatedFileSize(r.file)))])])]),r._v(" "),r.uploadStarted&&!r.isFailed(r.file)?i("div",{staticClass:"fsp-summary__item-progress",style:{width:r.file.progress+"%"}}):r._e(),r._v(" "),i("div",{staticClass:"fsp-summary__actions-container"},[!r.uploadStarted&&!r.disableTransformer&&!r.isTransformed(r.file)&&r.isEditable(r.file)?i("span",{staticClass:"fsp-summary__action fsp-summary__action--button",class:{"fsp-summary__action--button-blue":r.cropForce},on:{click:function e(t){r.transform(r.file.uuid)}}},[r._v(" "+r._s(r.cropForce?r.t("Crop"):r.t("Edit"))+" ")]):!r.uploadStarted&&r.isTransformed(r.file)?i("span",{staticClass:"fsp-summary__action fsp-summary__action--button",on:{click:function e(t){r.revert(r.file)}}},[r._v(" "+r._s(r.t("Revert"))+" ")]):r._e(),r._v(" "),!r.uploadStarted&&r.isEditable(r.file)?i("span",{staticClass:"fsp-summary__action-separator"}):r._e(),r._v(" "),!r.uploadStarted||!r.isDone(r.file)?i("span",{staticClass:"fsp-summary__action fsp-summary__action--remove",on:{click:function e(t){r.addFile(r.file)}}}):r._e()])])},staticRenderFns:[],props:{file:Object},computed:Kf({},xl.mapGetters(["blobURLs","cropForce","disableTransformer","disableThumbnails","uploadStarted"])),methods:Kf({},xl.mapActions(["addFile","transformImage"]),{isEditable:function e(t){return xc(t)},isDone:function e(t){return t.state===Gf.done},isFailed:function e(t){return t.state===Gf.failed},isTransformed:function e(t){return t.transformed},generateClass:function e(t){if(xc(t)){return"fsp-grid__icon-image"}if(Tc(t)){return"fsp-grid__icon-audio"}if(t.mimetype==="application/pdf"){return"fsp-grid__icon-pdf"}return"fsp-grid__icon-file"},generateThumbnail:function e(t){if(this.blobURLs[t.uuid]){return this.blobURLs[t.uuid]}
1var r=t.transformed||t.originalFile;var i=window.URL.createObjectURL(r);this.$store.commit("SET_BLOB_URL",{uuid:t.uuid,url:i});return i},revert:function e(t){this.$store.commit("REMOVE_FILE_TRANSFORMATION",t.uuid);this.$store.commit("REMOVE_BLOB_URL",t.uuid)},transform:function e(t){this.$store.commit("REMOVE_BLOB_URL",t);this.transformImage(t)},translatedFileSize:function e(t){if(t.sourceKind==="cloud"&&!t.transformed){return""}return Qu(t.size)}})};var Xf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var Zf={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("modal",[i("div",{attrs:{slot:"header"},slot:"header"},[i("content-header",[!t.mobileNavActive?i("span",{staticClass:"fsp-header-text--visible"},[t._v(" "+t._s(t.headerText)+" ")]):t._e()])],1),t._v(" "),i("sidebar",{attrs:{slot:"sidebar"},slot:"sidebar"}),t._v(" "),i("div",{staticClass:"fsp-summary",attrs:{slot:"body"},slot:"body"},[i("div",{staticClass:"fsp-summary__header"},[i("div",{staticClass:"fsp-summary__filter"},[i("input",{attrs:{placeholder:t.placeholderText},on:{input:t.updateFilter}}),t._v(" "),i("span",{staticClass:"fsp-summary__filter-icon"})])]),t._v(" "),i("div",{staticClass:"fsp-summary__body"},[t._l(t.fileBuckets,function(e){return t.filterFiles(e.files).length?i("div",{key:e.id},[i("div",{staticClass:"fsp-grid__label",class:{"fsp-color--error":e.id==="failed"}},[t._v(" "+t._s(t.t(e.name))+" "),t.isConnected&&t.allowManualRetry&&e.id==="failed"?i("span",{staticClass:"fsp-color--error fsp-summary__try-again",on:{click:t.retryAll}},[t._v(" "+t._s(t.t("Try again"))+" ")]):!t.isConnected&&t.allowManualRetry&&e.id==="failed"?i("span",{staticClass:"fsp-color--error",on:{click:t.retryAll}},[t._v(" "+t._s(t.reconnectTimer)+" "),i("span",{staticClass:"fsp-summary__try-again"},[t._v(t._s(t.t("Try now")))])]):t._e()]),t._v(" "),t._l(t.filterFiles(e.files),function(e){return i("SummaryRow",{key:e.uuid,attrs:{file:e}})})],2):t._e()}),t._v(" "),i("footer-nav",{attrs:{slot:"footer","is-visible":!t.uploadStarted},slot:"footer"},[i("span",{staticClass:"fsp-button fsp-button--cancel",attrs:{slot:"nav-left"},on:{click:t.deselectAllFiles},slot:"nav-left"},[t._v(" "+t._s(t.t("Deselect All"))+" ")]),t._v(" "),i("span",{staticClass:"fsp-button fsp-button--primary fsp-button-upload",class:{"fsp-button--disabled":!t.canStartUpload},attrs:{slot:"nav-right",title:"Upload"},on:{click:t.startUploadMaybe},slot:"nav-right"},[!t.uploadStarted&&!t.canStartUpload?i("span",[t._v(" "+t._s(t.minFilesMessage)+" ")]):i("span",[t._v(" "+t._s(t.t("Upload"))+" "),i("span",{directives:[{name:"show",rawName:"v-show",value:t.filesWaiting.length>1,expression:"filesWaiting.length > 1"}],staticClass:"fsp-badge fsp-badge--bright"},[t._v(" "+t._s(t.filesWaiting.length)+" ")])])])])],2)])],1)},staticRenderFns:[],components:{ContentHeader:$l,FooterNav:zc,Modal:yc,Sidebar:vc,SummaryRow:Yf},computed:Xf({},xl.mapGetters(["allowManualRetry","canStartUpload","cropFiles","cropForce","disableTransformer","fileCount","filesDone","filesFailed","filesUploading","filesList","filesPaused","filesWaiting","filesNeededCount","isConnected","isConnectedObj","lang","minFiles","mobileNavActive","route","routesHistory","uploadStarted"]),{fileBuckets:function e(){if(this.uploadStarted){if(!this.isConnected&&this.allowManualRetry){return[{id:"failed",name:"Connection Lost",files:this.filesPaused.concat(this.filesFailed)},{id:"done",name:"Completed",files:this.filesDone},{id:"uploading",name:"Uploading",files:this.filesUploading.concat(this.filesWaiting)}]}return[{id:"failed",name:"Failed While Uploading",files:this.filesFailed},{id:"done",name:"Completed",files:this.filesDone},{id:"uploading",name:"Uploading",files:this.filesUploading.concat(this.filesWaiting)}]}return[{id:"edited",name:"Edited Images",files:this.onlyTransformedImages},{id:"cropped",name:"Cropped Images",files:this.onlyCroppedImages},{id:"images",name:"Images",files:this.onlyImages},{id:"files",name:"Files",files:this.onlyFiles}]},minFilesMessage:function e(){if(this.filesNeededCount===1){return this.t("Add")+" 1 "+this.t("more file")}if(this.filesNeededCount>1){return this.t("Add")+" "+this.filesNeededCount+" "+this.t("more files")}return null},onlyFiles:function e(){return this.filesList.filter(function(e){return!Ic(e)})},onlyImages:function e(){return this.filesList.filter(function(e){return Ic(e)}).filter(function(e){return!e.transformed})},onlyTransformedImages:function e(){if(this.cropForce){return this.filesList.filter(function(e){return Ic(e)}).filter(function(e){return e.transformed}).filter(function(e){return!e.cropped})}return this.filesList.filter(function(e){return Ic(e)}).filter(function(e){return e.transformed})},onlyCroppedImages:function e(){if(this.cropForce){return this.filesList.filter(function(e){return Ic(e)}).filter(function(e){return e.transformed}).filter(function(e){return e.cropped})}return[]},cropForceComplete:function e(){if(this.cropForce){return!this.onlyImages.length&&!this.onlyTransformedImages.length}return true},headerText:function e(){if(this.uploadStarted){return this.t("Uploaded")+" "+this.filesDone.length+" / "+this.fileCount}if(this.cropForce&&!this.cropForceComplete){return this.t("Crop is required on images")}return this.t("Selected Files")},placeholderText:function e(){return this.t("Filter")},reconnectTimer:function e(){return"- Retrying in "+this.timer.toLocaleStr
1ing(this.lang)+"..."}}),data:function e(){return{timer:20,filter:""}},methods:Xf({},xl.mapActions(["addFile","deselectAllFiles","retryAllFailedFiles","startUploading","transformImage"]),{filterFiles:function e(t){var r=new RegExp(this.filter,"i");return t.filter(function(e){return r.test(e.name)})},retryAll:function e(){this.resetCountdown();this.retryAllFailedFiles();this.$store.commit("SET_CONNECTION_STATUS",true);this.$store.commit("RESET_ATTEMPTS")},startCountdown:function e(){var t=this;if(!this.timerInterval){this.timerInterval=setInterval(function(){t.timer-=1},1e3)}},resetCountdown:function e(){clearInterval(this.timerInterval);this.timerInterval=null;this.timer=20},startUploadMaybe:function e(){if(this.canStartUpload&&this.cropForceComplete){this.startUploading()}if(!this.cropForceComplete){var t=this.onlyImages[0]||this.onlyTransformedImages[0];this.transformImage(t.uuid)}},updateFilter:function e(t){this.filter=t.target.value}}),watch:{isConnectedObj:{handler:function e(t){if(t.value===false){this.startCountdown()}if(t.value===true){this.resetCountdown()}}},timer:{handler:function e(t){if(t===0){this.retryAll()}}},filesList:{immediate:false,handler:function e(t){if(t.length===0){if(this.cropFiles){this.$store.dispatch("cancelPick");this.$root.$destroy()}else{this.$store.commit("GO_BACK_WITH_ROUTE_CURRENT_TYPE");this.$store.commit("SET_UPLOAD_STARTED",false)}}}}}};var Jf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var ed={render:function e(){var t=this;var r=t.$createElement;var i=t._self._c||r;return i("transition",{attrs:{appear:"","appear-class":"fsp-picker-appear","appear-to-class":"fsp-picker-appear-to","appear-active-class":"fsp-picker-appear-active"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.uiVisible,expression:"uiVisible"}],class:t.getClasses,attrs:{id:t.rootId}},[t.isRootRoute("source")?i("pick-from-source"):t._e(),t._v(" "),t.isRootRoute("summary")?i("upload-summary"):t._e(),t._v(" "),t.isRootRoute("transform")?i("transform"):t._e(),t._v(" "),i("notifications"),t._v(" "),t.localPickingAllowed&&!t.isRootRoute("transform")?i("drag-and-drop"):t._e()],1)])},staticRenderFns:[],components:{Blocked:wc,DragAndDrop:Nl,Notifications:Cc,PickFromSource:tu,Transform:qf,UploadSummary:Zf},computed:Jf({},xl.mapGetters(["cloudClient","cropFiles","fromSources","globalDropZone","isInlineDisplay","rootId","route","uiVisible"]),{localPickingAllowed:function e(){return this.route&&this.route[1]==="local_file_system"||this.globalDropZone},getClasses:function e(){return{"fsp-picker--inline":this.isInlineDisplay}}}),methods:Jf({},xl.mapActions(["addFile","prefetchClouds","showNotification"]),{isRootRoute:function e(t){return this.route[0]===t},detectEscPressed:function e(t){if(t.keyCode===27){this.$store.dispatch("cancelPick");this.$root.$destroy()}}}),created:function e(){var t=this;if(!this.isInlineDisplay){window.addEventListener("keyup",this.detectEscPressed)}this.prefetchClouds();var r=[];if(this.cropFiles&&this.cropFiles.length){[].forEach.call(this.cropFiles,function(e){if(typeof e==="string"){r.pu
1sh(t.cloudClient.metadata(e))}else{t.addFile(e)}});Promise.all(r).then(function(e){e.forEach(function(e){if(e.error){throw new Error(e.error)}t.addFile(e)});if(t.cropFiles.length>1){t.$store.commit("CHANGE_ROUTE",["summary"])}}).catch(function(){t.showNotification("Error fetching URL metadata.");setTimeout(function(){t.$store.dispatch("cancelPick");t.$root.$destroy()},2e3)})}else{this.$store.commit("INITIAL_ROUTE")}},destroyed:function e(){window.removeEventListener("keyup",this.detectEscPressed)}};var td=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var rd=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var id="overlay";var nd="inline";var ad="dropPane";var od=function e(t){return typeof t==="number"};var sd=function e(t){return(typeof t==="undefined"?"undefined":rd(t))==="object"&&t!==null&&Array.isArray(t)===false};var ld=function e(t){return t%1===0};var cd={dropPane:function e(t){return t},displayMode:function e(t){if([id,nd].indexOf(t)<-1){throw new Error("Wrong display mode")}return t||id},"dropPane.id":function e(t){return t},"dropPane.overlay":function e(t){return t},"dropPane.onDragEnter":function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "dropPane.onDragEnter" config option')}return t},"dropPane.onDragLeave":function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "dropPane.onDragLeave" config option')}return t},"dropPane.onDragOver":function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "dropPane.onDragOver" config option')}return t},"dropPane.onDrop":function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "dropPane.onDrop" config option')}return t},"dropPane.onSuccess":function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "dropPane.onSuccess" config option')}return t},"dropPane.onError":function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "dropPane.onError" config option')}return t},"dropPane.onProgress":function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "dropPane.onProgress" config option')}return t},"dropPane.onClick":function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "dropPane.onClick" config option')}return t},"dropPane.disableClick":function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "dropPane.disableClick" config option')}return t},"dropPane.showIcon":function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "dropPane.showIcon" config option')}return t},"dropPane.showProgress":function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "dropPane.showProgress" config option')}return t},"dropPane.customText":function e(t){if(typeof t!=="string"){throw new Error('Invalid value for "dropPane.customText" config option')}return t},"dropPane.cropFiles":function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "dropPane.cropFiles" config option')}return t},rootId:function e(t){if(typeof t!=="string"){throw new Error('Invalid value for "rootId" config option')}return t},fromSources:function e(t){if(typeof t==="string"){t=[t]}return t.map(Sc)},customSourceContainer:function e(t){if(typeof t!=="string"){throw new Error('Invalid value for "customSourceContainer" config option')}return t},customSourceName:function e(t){if(typeof t!=="string"){throw new Error('Invalid value for "customSourceName" config option')}return t},customSourcePath:function e(t){if(typeof t!=="string"){throw new Error('Invalid value for "customSourcePath" config option')}return t},accept:function e(t){if(typeof t==="string"){t=[t]}t.forEach(function(e){if(typeof e!=="string"){throw new Error('Invalid value for "accept" config option')}});return t},concurrency:function e(t){if(typeof t!=="number"||!ld(t)||t<1){throw new Error('Invalid value for "concurrency" config option')}return t},preferLinkOverStore:function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "preferLinkOverStore" config option')}return t},maxSize:function e(t){if(typeof t!=="number"||!ld(t)||t<0){throw new Error('Invalid value for "maxSize" config option')}return t},minFiles:function e(t){if(typeof t!=="number"||!ld(t)||t<0){throw new Error('Invalid value for "minFiles" config option')}return t},maxFiles:function e(t){if(typeof t!=="number"||!ld(t)||t<0){throw new Error('Invalid value for "maxFiles" config option')}return t},startUploadingWhenMaxFilesReached:function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "startUploadingWhenMaxFilesReached" config option')}return t},loadCss:function e(t){if(typeof t==="boolean"&&t===false||typeof t==="string"){return t}throw new Error('Invalid value for "loadCss" config option')},lang:function e(t){if(typeof t==="boolean"&&t===false||typeof t==="string"){return t}throw new Error('Invalid value for "lang" config option')},customText:function e(t){if(sd(t)){return t}throw new Error('Invalid value for "customText" config option')},storeTo:function e(t){if(sd(t)){return t}throw new Error('Invalid value for "storeTo" config option')},uploadConfig:function e(t){if(sd(t)){return t}throw new Error('Invalid value for "uploadConfig" config option')},hideModalWhenUploading:function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "hideModalWhenUploading" config option')}return t}
1,uploadInBackground:function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "uploadInBackground" config option')}return t},allowManualRetry:function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "allowManualRetry" config option')}return t},disableTransformer:function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "disableTransformer" config option')}return t},disableThumbnails:function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "disableThumbnails" config option')}return t},disableStorageKey:function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "disableStorageKey" config option')}return t},onUploadStarted:function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "onUploadStarted" config option')}return t},onFileSelected:function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "onFileSelected" config option')}return t},onFileUploadStarted:function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "onFileUploadStarted" config option')}return t},onFileUploadProgress:function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "onFileUploadProgress" config option')}return t},onFileUploadFinished:function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "onFileUploadFinished" config option')}return t},onFileUploadFailed:function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "onFileUploadFailed" config option')}return t},onOpen:function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "onOpen" config option')}return t},onCancel:function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "onCancel" config option')}return t},onClose:function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "onClose" config option')}return t},onUploadDone:function e(t){if(typeof t!=="function"){throw new Error('Invalid value for "onUploadDone" config option')}return t},videoResolution:function e(t){if(typeof t!=="string"){throw new Error('Invalid value for "videoResolution" config option')}if(["1280x720","640x480","320x240"].indexOf(t)===-1){throw new Error('Invalid value for "videoResolution" config option')}return t},transformations:function e(t){if(sd(t)){return t}throw new Error('Invalid value for "transformations" config option')},"transformations.crop":function e(t){if(sd(t)){return t}if(t===true){return{}}if(t===false){return false}throw new Error('Invalid value for "transformations.crop" config option')},"transformations.crop.aspectRatio":function e(t){if(od(t)){return t}throw new Error('Invalid value for "transformations.crop.aspectRatio" config option')},"transformations.crop.force":function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "transformations.crop.force" config option')}return t},"transformations.circle":function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "transformations.circle" config option')}return t},"transformations.rotate":function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "transformations.rotate" config option')}return t},"transformations.mask":function e(t){if(sd(t)){if(!t.url||!t.type){throw new Error('Mask transformation requires a URL and a type of "png" or "svg".')}return t}throw new Error('Invalid value for "transformations.mask" config option')},"transformations.mask.url":function e(t){if(typeof t!=="string"){throw new Error('Invalid value for "transformations.mask.url" config option')}return t},"transformations.mask.type":function e(t){var r=["png","svg"];if(typeof t!=="string"||r.indexOf(t)===-1){throw new Error('Invalid value for "transformations.mask.type" config option')}return t},"transformations.mask.color":function e(t){if(typeof t!=="string"){throw new Error('Invalid value for "transformations.mask.color" config option')}return t},imageMin:function e(t){if(Array.isArray(t)){if(t.length===2){var r=t.some(function(e){return typeof e!=="number"});if(!r){return t}throw new Error('Option "imageMin" requires array of numbers')}throw new Error('Option "imageMin" requires array with exactly two elements: [width, height]')}throw new Error('Invalid value for "imageMin" config option')},imageMax:function e(t){if(Array.isArray(t)){if(t.length===2){var r=t.some(function(e){return typeof e!=="number"});if(!r){return t}throw new Error('Option "imageMax" requires array of numbers')}throw new Error('Option "imageMax" requires array with exactly two elements: [width, height]')}throw new Error('Invalid value for "imageMax" config option')},imageDim:function e(t){if(Array.isArray(t)){if(t.length===2){return t}throw new Error('Option "imageDim" requires array with exactly two elements: [width, height]')}throw new Error('Invalid value for "imageDim" config option')},container:function e(t){return t},globalDropZone:function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "globalDropZone" config option')}return t},exposeOriginalFile:function e(t){if(typeof t!=="boolean"){throw new Error('Invalid value for "exposeOriginalFile" config option')}return t},modalSize:function e(t){if(Array.isArray(t)){if(t.length===2){var r=t.some(function(e){return typeof e!=="number"});if(!r){return t}throw new Error('Option "modalSize" requires array of numbers')}throw new Error('Option "modalSize" requires array with exactly two elements: [width, height]')}throw new Error('Invalid value for "modalSize" config option')}};var ud=function e(t,r){var i=td({},t);if(i.fromSources===undefined){i.fromSources=["local_file_system","url","imagesearch","facebook","instagram","googledrive","dropbox"]}if(i.minFiles===undefined){i.minFiles=1}if(i.maxFiles===undefined){i.maxFiles=1}if(i.loadCss===undefined){i.loadCss=r.css.main}if(i.lang===undefined){i.lang="en"}
1if(i.uploadInBackground===undefined){i.uploadInBackground=true}if(i.transformations===undefined){i.transformations={crop:{},circle:true,rotate:true}}if(i.transformations&&i.transformations.mask&&i.transformations.mask.color===undefined){i.transformations.mask.color="#000000"}if(i.transformations&&i.transformations.circle===undefined){var n=i.transformations.crop&&i.transformations.crop.circle;if(n!==undefined){i.transformations.circle=n}}if(i.imageMax===undefined){var a=i.transformations.maxDimensions;if(a!==undefined){i.imageMax=a}}if(i.imageMin===undefined){var o=i.transformations.minDimensions;if(o!==undefined){i.imageMin=o}}if(!i.dropPane&&i.displayMode===ad){i.dropPane={}}if(i.dropPane){i.uploadInBackground=false}if(i.dropPane&&i.dropPane.overlay===undefined){i.dropPane.overlay=true}if(i.dropPane&&i.dropPane.showIcon===undefined){i.dropPane.showIcon=true}if(i.dropPane&&i.dropPane.showProgress===undefined){i.dropPane.showProgress=true}if(i.concurrency===undefined){i.concurrency=4}if(i.displayMode===undefined){i.displayMode=id}if(i.rootId===undefined){i.rootId="__filestack-picker"}return i};var fd=function n(a,o){var s={};Object.keys(a).forEach(function(e){var t=e;if(o){t=o+"."+e}var r=cd[t];if(r){var i=r(a[e]);if(sd(i)&&t.indexOf("transformations")!==-1){s[e]=n(i,t)}else{s[e]=i}}else{throw new Error('Unknown config option "'+t+'"')}});if(s.minFiles!==undefined&&s.maxFiles!==undefined&&s.minFiles>s.maxFiles){throw new Error('Config option "minFiles" must be smaller or equal to "maxFiles"')}return s};var dd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var pd={render:function e(){var r=this;var t=r.$createElement;var i=r._self._c||t;return i("div",{class:r.containerClasses},[i("input",{ref:"fileUploadInput",staticClass:"fsp-drop-pane__input",attrs:{type:"file",accept:r.acceptStr,multiple:r.multiple,disabled:!r.canAddMoreFiles},on:{change:function e(t){r.onFilesSelected(t)},click:function e(t){r.clearEvent(t)}}}),r._v(" "),i("div",{ref:"dropZone",staticClass:"fsp-drop-pane__drop-zone",on:{click:r.openSelectFile}}),r._v(" "),r.dropPane.showIcon?i("div",{class:r.iconClasses}):r._e(),r._v(" "),r.dropPane.showProgress&&!r.uploadStarted?i("div",{staticClass:"fsp-drop-pane__text"},[r._v(" "+r._s(r.dropPane.customText||r.t("Drag and Drop, Copy and Paste Files"))+" ")]):r.dropPane.showProgress&&r.uploadStarted?i("div",{staticClass:"fsp-drop-pane__text"},[r._v(" "+r._s(r.t("Uploaded")+" "+r.filesFinished+" "+r.t("of")+" "+r.fileCount)+" "),i("div",{staticClass:"fsp-drop-pane__upload-progress",style:r.progressStyle})]):r._e(),r._v(" "),i("transition",{attrs:{name:"__fs-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:r.dropPane.overlay&&r.isDropping,expression:"dropPane.overlay && isDropping"}],ref:"dropOverlay",staticClass:"fsp-drop-pane__overlay"},[i("div",{staticClass:"fsp-drop-pane__overlay-box"},[i("div",{staticClass:"fsp-drop-pane__overlay-icon"}),r._v(" "),i("div",{staticClass:"fsp-drop-pane__overlay-header"},[r._v(" "+r._s(r.t("Drop your files anywhere"))+" ")])])])])],1)},staticRenderFns:[],data:function e(){return{cropFilesDone:0,cropFilesOverride:{},isDropping:false}},computed:dd({},xl.mapGetters(["accept","apiClient","canAddMoreFiles","config","dropPane","fileCount","filesDone","filesList","filesWaiting","maxFiles","uploadStarted"]),{acceptStr:function e(){if(this.accept){return this.accept.join(",")}return undefined},containerClasses:function e(){return{"fsp-drop-pane__container":true,"fsp-drop-pane__container--active":this.isDropping}},filesFinished:function e(){if(this.cropFilesDone)return this.cropFilesDone;if(this.filesDone.length)return this.filesDone.length;return 0},iconClasses:function e(){return{"fsp-drop-pane__icon":true,"fsp-drop-pane__icon--active":this.isDropping}},multiple:function e(){return this.maxFiles>1},progressStyle:function e(){return{width:this.totalProgress+"%"}},totalProgress:function e(){var t=Mu(this.cropFilesOverride);var r=t.length?t:this.filesList;var i=Math.round(r.map(function(e){return e.progress}).filter(function(e){return e}).reduce(function(e,t){return e+t},0)/this.fileCount);if(this.dropPane.onProgress){this.dropPane.onProgress(i)}return i}}),methods:dd({},xl.mapActions(["addFile"]),{clearEvent:function e(t){t.target.value=null},dragenter:function e(t){t.preventDefault();this.isDropping=true;if(this.dropPane.onDragEnter)this.dropPane.onDragEnter(t)},dragover:function e(t){t.preventDefault();if(this.dropPane.onDragOver)this.dropPane.onDragOver(t)},dragleave:function e(){this.isDropping=false;if(this.dropPane.onDragLeave)this.dropPane.onDragLeave()},drop:function e(t){var r=this;t.preventDefault();this.isDropping=false;Ll(t.dataTransfer).then(function(e){e.forEach(function(e){r.addFile(e)})});if(this.dropPane.onDrop)this.dropPane.onDrop(t)},incCropFilesDone:function e(){this.cropFilesDone+=1},onFilesSelected:function e(t){var r=t.target.files;for(var i=0;i<r.length;i+=1){this.addFile(r[i])}},openSelectFile:function e(){if(this.dropPane.onClick){this.dropPane.onClick()}if(this.dropPane.disableClick){return}this.$refs.fileUploadInput.click()},paste:function e(t){var r=this;Ll(t.clipboardData).then(function(e){e.forEach(function(e,t){if(t>0){e.name="untitled ("+t+")"}else{e.name="untitled"}r.addFile(e)})})}}
1),mounted:function e(){var t=this.dropPane.overlay?this.$refs.dropOverlay:this.$refs.dropZone;var r=this.dropPane.overlay?document:this.$refs.dropZone;r.addEventListener("dragenter",this.dragenter,false);r.addEventListener("paste",this.paste,false);t.addEventListener("dragover",this.dragover,false);t.addEventListener("dragleave",this.dragleave,false);t.addEventListener("drop",this.drop,false)},beforeDestroy:function e(){var t=this.dropPane.overlay?this.$refs.dropOverlay:this.$refs.dropZone;var r=this.dropPane.overlay?document:this.$refs.dropZone;r.removeEventListener("dragenter",this.dragenter);r.removeEventListener("paste",this.paste);t.removeEventListener("dragover",this.dragover);t.removeEventListener("dragleave",this.dragleave);t.removeEventListener("drop",this.drop)},watch:{filesWaiting:{handler:function e(t){var i=this;if(!this.uploadStarted&&t.length&&!this.dropPane.cropFiles){setTimeout(function(){return i.$store.dispatch("startUploading")})}else if(!this.uploadStarted&&t.length&&this.dropPane.cropFiles){var r=t.filter(function(e){return e.originalFile}).map(function(e){return e.originalFile});var n=t.filter(function(e){return!e.originalFile&&e.url}).map(function(e){return e.url});var a=function e(){setTimeout(function(){i.$store.commit("SET_UPLOAD_STARTED",false);i.$store.commit("CLEAR_FILES")},1e3)};var o={displayMode:id,onUploadDone:a,onCancel:a,onFileUploadProgress:function e(t,r){i.$set(i.cropFilesOverride,t.uploadId,t);i.$set(i.cropFilesOverride[t.uploadId],"progress",r.totalPercent)},onFileUploadFinished:function e(){return i.incCropFilesDone()},onUploadStarted:function e(){return i.$store.commit("SET_UPLOAD_STARTED",true)}};var s=new np(this.apiClient,o);s.crop(r.concat(n))}}}}};var hd=function(e,t,r){if(typeof Array.prototype.findIndex==="function"){return e.findIndex(t,r)}if(typeof t!=="function"){throw new TypeError("predicate must be a function")}var i=Object(e);var n=i.length;if(n===0){return-1}for(var a=0;a<n;a++){if(t.call(r,i[a],a,i)){return a}}return-1};var vd=function(e){var t=e==null?0:e.length;return t?e[t-1]:undefined};var md=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};function gd(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var _d=function e(t,r){var i=md({source:r,sourceKind:"cloud"},t);return i};var yd=Ec.filter(function(e){return e.ui==="cloud"}).map(function(e){return e.name}).reduce(function(e,t){e[t]={status:"initialized"};return e},{});var bd={clouds:md({},yd),viewType:"list",cloudFolders:{},selectedCloudPath:null};var wd={SET_CLOUD_PATH:function e(t,r){var i=r.name,n=r.path,a=r.payload;var o=a;var s=t.clouds[i];if(s.contents&&s.contents[n]){o=s.contents[n].concat(a)}ai.set(s,"contents",md({},s.contents,gd({},n,o)));ai.set(t.clouds[i],"status","ready")},SET_CLOUD_REDIRECT:function e(t,r){var i=r.name,n=r.payload.auth;var a=n.redirect_url;ai.set(t.clouds[i],"redirect",a);ai.set(t.clouds[i],"status","unauthorized")},SET_CLOUD_NEXT:function e(t,r){var i=r.name,n=r.path,a=r.next;ai.set(t.clouds[i],"next",md({},t.clouds[i].next,gd({},n,a)))},SET_CLOUD_LOADING:function e(t,r){ai.set(t.clouds[r],"status","loading")},SET_CLOUD_ERROR:function e(t,r){var i=t.clouds[r];if(i){ai.set(i,"status","errored")}},REMOVE_CLOUD_PATHS:function e(t,r){t.clouds[r]={status:"initialized"}},REMOVE_ALL_CLOUD_PATHS:function e(t){t.clouds=md({},yd)},SET_CLOUD_FOLDERS:function e(t,r){r.forEach(function(e){t.cloudFolders[e.path]=md({},t.cloudFolders[e.path],{name:e.name})})},SET_CLOUD_PATH_SELECTED:function e(t,r){t.selectedCloudPath=r},SET_CLOUD_FOLDER_LOADING:function e(t,r){var i=r.path,n=r.value;t.cloudFolders=md({},t.cloudFolders,gd({},i,md({},t.cloudFolders[i],{loading:n})))},SET_VIEW_TYPE:function e(t,r){if(["list","grid"].indexOf(r)===-1){throw new Error("View type "+r+" is not supported. Supported types: grid, list")}t.viewType=r},RESET_CLOUD:function e(){Object.keys(bd.clouds).forEach(function(e){bd.clouds[e].contents=null})}};var Ad={setCloudViewType:function e(t,r){var i=t.commit;i("SET_VIEW_TYPE",r)},goToDirectory:function e(t,r){var i=t.commit,n=t.dispatch,a=t.getters;var o=a.currentCloud.name;var s=a.currentCloud.path;var l=r.path;n("fetchCloudPath",{name:o,path:l}).then(function(e){if(o===a.currentCloud.name&&e!==undefined){var t=s.concat([l]);var r=["source",o,t];i("CHANGE_ROUTE",r)}})},logout:function e(t,r){var i=t.commit,n=t.dispatch,a=t.getters;if(r){a.cloudClient.logout(r).then(function(){i("REMOVE_CLOUD_PATHS",r);i("REMOVE_SOURCE_FROM_WAITING",r);if(r===a.currentCloud.name){i("CHANGE_ROUTE",["source",r])}i("REMOVE_SOURCE_FROM_ROUTES",r);n("fetchCloudPath",{name:r,path:"/"})})}else{a.cloudClient.logout().then(function(){i("REMOVE_ALL_CLOUD_PATHS");
1i("REMOVE_CLOUDS_FROM_WAITING")})}},onFetchSuccess:function e(o,t){var s=t.name,l=t.path,c=t.res;return new Promise(function(e,t){var r=c[s];if(r&&r.auth&&r.auth.redirect_url){o.commit("SET_CLOUD_REDIRECT",{name:s,payload:r});e()}else if(r&&r.error){var i=r.error.text||"Error occurred.";t(new Error(i))}else if(r&&r.contents){var n=r.contents.map(function(e){return _d(e,s)});o.commit("SET_CLOUD_NEXT",{name:s,path:l,next:r.next});var a=n.filter(function(e){return e.folder});o.commit("SET_CLOUD_FOLDERS",a);o.commit("SET_CLOUD_PATH",{name:s,path:l,payload:n});e(n)}else{t(new Error("Empty response."))}})},prefetchClouds:function e(r){var i="/";var t=r.getters.fromSources.filter(function(e){return e.ui==="cloud"}).map(function(e){return e.name}).reduce(function(e,t){e[t]={path:i};if(t==="customsource"){e[t].customSourceContainer=r.getters.customSourceContainer;e[t].customSourcePath=r.getters.customSourcePath}return e},{});var n=Object.keys(t);if(n.length){n.forEach(function(e){r.commit("SET_CLOUD_LOADING",e)});return r.getters.cloudClient.list(t).then(function(t){n.forEach(function(e){r.dispatch("onFetchSuccess",{name:e,path:i,res:t}).catch(function(){r.commit("SET_CLOUD_ERROR",e)})})}).catch(function(){n.forEach(function(e){r.commit("SET_CLOUD_ERROR",e)})})}return Promise.resolve()},addCloudFolder:function e(t,r){var i=t.state,n=t.commit,a=t.dispatch,o=t.getters;var s=r.name,l=r.path,c=r.next;n("SET_CLOUD_FOLDER_LOADING",{path:l,value:true});return a("fetchCloudPath",{name:s,path:l,load:false,next:c}).then(function(e){if(e){n("SET_CLOUD_PATH_SELECTED",l);n("SET_CLOUD_FOLDER_LOADING",{path:l,value:false});var t=e.filter(function(e){return!e.folder});t.forEach(function(e){return a("addFile",e)});n("SET_CLOUD_PATH_SELECTED",null);var r=i.clouds[s].next&&i.clouds[s].next[l];if(r&&o.fileCount!==o.maxFiles){a("addCloudFolder",{name:s,path:l,next:r})}}}).catch(function(e){n("SET_CLOUD_FOLDER_LOADING",{path:l,value:false});return a("showNotification",e.message)})},fetchCloudPath:function e(t,r){var i=t.state,n=t.commit,a=t.getters,o=t.dispatch;var s=r.name,l=r.path,c=l===undefined?"/":l,u=r.load,f=u===undefined?true:u,d=r.next;var p=i.clouds[s];if(!d&&p&&p.contents&&p.contents[c]){return Promise.resolve(p.contents[c])}var h=gd({},s,{path:c,next:d});if(s==="customsource"){h.customsource.customSourceContainer=a.customSourceContainer;h.customsource.customSourcePath=a.customSourcePath}if(f)n("SET_CLOUD_LOADING",s);return a.cloudClient.list(h).then(function(e){return o("onFetchSuccess",{name:s,path:c,res:e})}).catch(function(e){n("SET_CLOUD_ERROR",s);return o("showNotification",e.message)})},goToLastPath:function e(t,r){var i=t.getters,n=t.commit;if(i.currentCloud.name!==r){var a=i.routesHistory.filter(function(e){return e[1]===r}).pop();if(a&&a.length){n("CHANGE_ROUTE",a)}else{n("CHANGE_ROUTE",["source",r])}}}};var Cd={clouds:function e(t){return t.clouds},cloudViewType:function e(t){return t.viewType},cloudFolders:function e(t){return t.cloudFolders},currentCloud:function e(t,r){var i=r.route;var n=i[1];var a=i[2]||["/"];var o=vd(a);if(t.clouds[n]){return{name:n,path:a,lastPath:o,next:t.clouds[n].next&&t.clouds[n].next[o],redirect:t.clouds[n].redirect,isUnauthorized:t.clouds[n].status==="unauthorized",isErrored:!t.clouds[n].contents&&t.clouds[n].status==="errored",isLoading:t.clouds[n].status==="loading"}}return{}},currentCloudFiles:function e(t,r){var i=r.currentCloud;var n=i.name;var a=i.lastPath;if(t.clouds[n]&&t.clouds[n].contents){return t.clouds[n].contents[a]||[]}return[]},selectedCloudPath:function e(t){return t.selectedCloudPath}};var Ed={state:bd,mutations:wd,actions:Ad,getters:Cd};var Sd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var kd=function e(t){var r=Sd({source:"imagesearch",sourceKind:"cloud"},t);return r};var Fd={input:"",isSearching:false,result:null,error:null};var Id={UPDATE_INPUT:function e(t,r){t.input=r},FETCH_IMAGES_BEGIN:function e(t){t.isSearching=true},FETCH_IMAGES_SUCCESS:function e(t,r){t.result=r;t.isSearching=false},FETCH_IMAGES_ERROR:function e(t,r){t.error=r;t.isSearching=false}};var xd={updateSearchInput:function e(t,r){t.commit("UPDATE_INPUT",r)},fetchImages:function e(r){if(r.getters.isSearching){return}var i=r.getters.imageSearchInput;if(i){r.commit("FETCH_IMAGES_BEGIN");r.getters.cloudClient.list({imagesearch:{path:"/"+i}}).then(function(e){var t=e.imagesearch;if(!t){r.commit("FETCH_IMAGES_ERROR","No response.");
1r.dispatch("showNotification","An error occurred. Please try again.")}if(t&&t.contents){t.contents=t.contents.map(kd);r.commit("FETCH_IMAGES_SUCCESS",t)}if(t&&t.contents&&t.contents.length===0){r.dispatch("showNotification","No search results found for "+i)}if(t&&t.error){r.commit("FETCH_IMAGES_ERROR",t.error);r.dispatch("showNotification","An error occurred. Please try again.")}}).catch(function(e){r.commit("FETCH_IMAGES_ERROR",e);r.dispatch("showNotification",e.message)})}}};var Od={isSearching:function e(t){return t.isSearching},noResultsFound:function e(t){return t.result&&t.result.contents.length===0},resultsFound:function e(t){return t.result&&t.result.contents.length>0},imageSearchInput:function e(t){return t.input},imageSearchResults:function e(t){return t.result&&t.result.contents}};var Td={state:Fd,mutations:Id,actions:xd,getters:Od};var Rd=2;var Dd=["http://cdn.filestackcontent.com/JRgmGyLtQjCFENsiL0SN","http://cdn.filestackcontent.com/F9wSolR8qtkRluW5nGoQ","http://cdn.filestackcontent.com/qLTNxOSpRH2zWhuiro3E"];var Ud={connected:{value:true},attempts:0,listeners:{}};var Ld={SET_CONNECTION_STATUS:function e(t,r){t.connected={value:r}},INC_ATTEMPTS:function e(t){t.attempts+=1},RESET_ATTEMPTS:function e(t){t.attempts=0},SET_NETWORK_LISTENERS:function e(t,r){t.listeners=r}};var Pd={onNetworkError:function e(t,r){var i=t.state.attempts,n=t.commit,a=t.dispatch;n("INC_ATTEMPTS");if(r||i>=Rd){n("RESET_ATTEMPTS");n("SET_CONNECTION_STATUS",false);a("pauseAllUploads")}},onNetworkSuccess:function e(t){var r=t.commit,i=t.dispatch;r("SET_CONNECTION_STATUS",true);r("RESET_ATTEMPTS");i("retryAllFailedFiles")},checkNetworkNavigator:function e(t){var r=t.commit,i=t.dispatch,n=t.getters;if(n.allowManualRetry){var a=function e(){return i("onNetworkSuccess")};var o=function e(){return i("onNetworkError",true)};window.addEventListener("online",a);window.addEventListener("offline",o);r("SET_NETWORK_LISTENERS",{online:a,offline:o})}},removeNetworkListeners:function e(t){var r=t.getters,i=t.state.listeners,n=i.online,a=i.offline;if(r.allowManualRetry){window.removeEventListener("online",n);window.removeEventListener("offline",a)}},checkNetworkXHR:function e(t){var r=t.dispatch,i=t.getters;if(i.allowManualRetry){var n=new XMLHttpRequest;var a=Dd[Math.floor(Math.random()*Dd.length)];var o=a+"?_="+(new Date).getTime();n.open("HEAD",o);n.onreadystatechange=function(){if(n.readyState===4){if(n.status){r("onNetworkSuccess")}else{r("onNetworkError")}}};n.send()}}};var Nd={isConnected:function e(t){return t.connected.value},isConnectedObj:function e(t){return t.connected}};var Md={state:Ud,mutations:Ld,actions:Pd,getters:Nd};var Bd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var jd=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var $d=5e3;var zd={ADD_NOTIFICATION:function e(t,r){t.notifications.push(r)},REMOVE_NOTIFICATION:function e(t,r){t.notifications=t.notifications.filter(function(e){return e!==r})},REMOVE_ALL_NOTIFICATIONS:function e(t){t.notifications.splice(0,t.notifications.length)}};var Wd={showNotification:function e(t,r,i){var n={};if((typeof r==="undefined"?"undefined":jd(r))==="object"){n=Bd({},r,i)}else{n=Bd({message:r},i)}var a=t.getters.notifications.map(function(e){return e.message});if(a.indexOf(r)<0){t.commit("ADD_NOTIFICATION",n);setTimeout(function(){t.commit("REMOVE_NOTIFICATION",n)},n.timeout||$d)}},removeAllNotifications:function e(t){t.commit("REMOVE_ALL_NOTIFICATIONS")}};var Hd={notifications:function e(t){return t.notifications}};var Gd={state:{notifications:[]},mutations:zd,actions:Wd,getters:Hd};var Vd={FETCH_URL_START:function e(t){t.isFetching=true},FETCH_URL_DONE:function e(t){t.isFetching=false}};var Qd={fetchUrl:function e(t,r){t.commit("FETCH_URL_START");return t.getters.cloudClient.metadata(r).then(function(e){if(e.error){t.commit("FETCH_URL_DONE");return t.dispatch("showNotification",e.error)}t.commit("FETCH_URL_DONE");return t.dispatch("addFile",e).then(function(){return true})}).catch(function(){t.commit("FETCH_URL_DONE");t.dispatch("showNotification","Error fetching URL metadata.")})}};var qd={isUrlFetching:function e(t){return t.isFetching}};var Kd={state:{isFetching:false},mutations:Vd,actions:Qd,getters:qd};var Yd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};ai.use(xl);var Xd=function e(t){var r=true;Object.keys(t).forEach(function(e){if(t[e]){r=false}});return r};var Zd=function(e,t,o,s,r){var i=e.cloud;r=Yd({apiClient:e,cloudClient:i,config:t,route:[],routesHistory:[],blobURLs:{}
1,prefetched:false,mobileNavActive:false,hideSidebar:false,selectLabelIsActive:false},r);return new xl.Store({state:r,modules:{uploadQueue:Vf(e,r.uploadQueue),cloudStore:Ed,imageSearch:Td,urlSource:Kd,notifications:Gd,network:Md},mutations:{INITIAL_ROUTE:function e(t){var r=t.config.fromSources;var i=r[0];var n=i?["source",i.name]:[];t.route=n;t.routesHistory.push(t.route);if(r.length===1){t.hideSidebar=true}else{t.hideSidebar=false}},CHANGE_ROUTE:function e(t,r){t.routesHistory.push(t.route);t.route=r;t.mobileNavActive=false},GO_BACK_WITH_ROUTE:function e(t){var r=t.routesHistory.pop();if(r){t.route=r}},GO_BACK_WITH_ROUTE_CURRENT_TYPE:function e(t){var r=t.routesHistory.reverse();var i=this.state.route.join("/");var n=hd(r,function(e){if(e.join("/")!==i){return i.indexOf(e.join("/"))===0}return false});if(n>-1){r.splice(0,n)}r=r.reverse();var a=r.pop();if(a){t.route=a}},PREFETCH_DONE:function e(t){t.prefetched=true},REMOVE_SOURCE_FROM_ROUTES:function e(t,r){t.routesHistory=t.routesHistory.filter(function(e){return e[1]&&e[1]!==r})},SET_BLOB_URL:function e(t,r){var i=r.uuid,n=r.url;t.blobURLs[i]=n},REMOVE_BLOB_URL:function e(t,r){ai.delete(t.blobURLs,r)},UPDATE_MOBILE_NAV_ACTIVE:function e(t,r){t.mobileNavActive=r;if(t.config.fromSources.length===1){t.hideSidebar=!r}},UPDATE_SELECT_LABEL_ACTIVE:function e(t,r){t.selectLabelIsActive=r}},actions:{allUploadsDone:function e(t){var r=Vu(t.getters.filesDone,t.getters);var i=Vu(t.getters.filesFailed,t.getters);var n=t.getters.dropPane;var a=t.getters.isInlineDisplay;if(n&&t.getters.dropPane.onSuccess){t.getters.dropPane.onSuccess(r)}if(n&&t.getters.dropPane.onError){t.getters.dropPane.onError(i)}t.dispatch("removeNetworkListeners");if(n||a){setTimeout(function(){t.commit("SET_UPLOAD_STARTED",false);t.commit("CLEAR_FILES")},1e3)}o({filesUploaded:r,filesFailed:i})},cancelPick:function e(t){var r=t.dispatch,i=t.getters,n=i.filesList,a=i.exposeOriginalFile;r("cancelAllUploads");r("removeNetworkListeners");if(s){s(Vu(n,{exposeOriginalFile:a}))}},updateMobileNavActive:function e(t,r){t.commit("UPDATE_MOBILE_NAV_ACTIVE",r)},updateSelectLabelActive:function e(t,r){t.commit("UPDATE_SELECT_LABEL_ACTIVE",r)}},getters:{uiVisible:function e(t,r){if(t.config.displayMode===id&&r.uploadStarted&&t.config.hideModalWhenUploading){return false}return true},apiClient:function e(t){return t.apiClient},cloudClient:function e(t){return t.cloudClient},config:function e(t){return t.config},blobURLs:function e(t){return t.blobURLs},isInlineDisplay:function e(t){return t.config.displayMode===nd},isSidebarHidden:function e(t){return t.hideSidebar},mobileNavActive:function e(t){return t.mobileNavActive},prefetched:function e(t){return t.prefetched},route:function e(t){return t.route},routesHistory:function e(t){return t.routesHistory},selectLabelIsActive:function e(t){return t.selectLabelIsActive},accept:function e(t){return t.config.accept},allowManualRetry:function e(t){return t.config.allowManualRetry},concurrency:function e(t){return t.config.concurrency},container:function e(t){return t.config.container},cropAspectRatio:function e(t){return t.config.transformations.crop&&t.config.transformations.crop.aspectRatio||NaN},cropFiles:function e(t){return t.config.cropFiles},cropForce:function e(t){return t.config.transformations.crop&&t.config.transformations.crop.force},customSourceContainer:function e(t){return t.config.customSourceContainer},customSourcePath:function e(t){return t.config.customSourcePath},customSourceName:function e(t){return t.config.customSourceName},customText:function e(t){return t.config.customText},disableStorageKey:function e(t){return t.config.disableStorageKey},disableThumbnails:function e(t){return t.config.disableThumbnails},disableTransformer:function e(t){return t.config.disableTransformer||Xd(t.config.transformations)},dropPane:function e(t){return t.config.dropPane},exposeOriginalFile:function e(t){return t.config.exposeOriginalFile},fromSources:function e(t){return t.config.fromSources},globalDropZone:function e(t){return t.config.globalDropZone},imageMin:function e(t){return t.config.imageMin},imageMax:function e(t){return t.config.imageMax},imageDim:function e(t){return t.config.imageDim},lang:function e(t){return t.config.lang},maxFiles:function e(t){return t.config.maxFiles},maxSize:function e(t){return t.config.maxSize},minFiles:function e(t){return t.config.minFiles},modalSize:function e(t){return t.config.modalSize},preferLinkOverStore:function e(t){return t.config.preferLinkOverStore},onClose:function e(t){return t.config.onClose},onFileSelected:function e(t){return t.config.onFileSelected},onFileUploadStarted:function e(t){return t.config.onFileUploadStarted},onFileUploadProgress:function e(t){return t.config.onFileUploadProgress},onFileUploadFinished:function e(t){return t.config.onFileUploadFinished},onFileUploadFailed:function e(t){return t.config.onFileUploadFailed},onOpen:function e(t){return t.config.onOpen},onUploadStarted:function e(t){return t.config.onUploadStarted},rootId:function e(t){return t.config.rootId},startUploadingWhenMaxFilesReached:function e(t){return t.config.startUploadingWhenMaxFilesReached},storeTo:function e(t){return t.config.storeTo},transformations:function e(t){return t.config.transformations},uploadConfig:function e(t){return t.config.uploadConfig}
1,uploadInBackground:function e(t){return t.config.uploadInBackground},videoResolution:function e(t){return t.config.videoResolution}}})};var Jd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var ep=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(e,t,r){if(t)i(e.prototype,t);if(r)i(e,r);return e}}();function tp(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function rp(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var ip=vo.context("picker");var np=function(){function r(e,t){rp(this,r);ip("Starting picker v1.2.0 with config:",t);this.app=null;this._mutationObserver=null;this.apiClient=e;this.config=fd(ud(t,a));this.loadCss=this._loadCssMaybe();this._onUploadDone=this.config.onUploadDone;this._onOpen=this.config.onOpen;this._onCancel=this.config.onCancel;this._onClose=this.config.onClose;this._initVue();this._initContainer();this._initMutationOserver()}ep(r,[{key:"open",value:function e(){var r=this;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(this.app){console.warn("PickerOpen: Picker is already open");return Promise.resolve()}return this.loadCss.then(function(){var e=function e(t){if(r.app){if(r.config.displayMode===nd){r.app.$store.commit("GO_BACK_WITH_ROUTE")}if(r.config.displayMode===id){r.close()}}if(r._onUploadDone){r._onUploadDone(t)}};var t=r._onCancel;r._createPicker(i,e,t)})}},{key:"crop",value:function e(t){if([id,nd].indexOf(this.config.displayMode)<0){throw new Error("PickerCrop: you can only use crop in overlay and inline display modes")}var r=void 0;if(typeof t==="string"){r=[t]}else if(t&&t.length){r=t}else{throw new Error("PickerCrop: no files found")}var i={config:Jd({},this.config,{cropFiles:r,hideModalWhenUploading:true,fromSources:[],uploadInBackground:false,maxFiles:r.length,startUploadingWhenMaxFilesReached:false,disableTransformer:false,transformations:Jd({},this.config.transformations,{crop:Jd({},this.config.transformations.crop,{force:true})})})};return this.open(i)}},{key:"close",value:function e(){if(!this.app){console.warn("PickerClose: Picker is already closed");return}this.app.$root.$destroy();this.app=null}},{key:"cancel",value:function e(){if(!this.app){console.warn("PickerCancel: Picker is already closed");return}this.app.$store.dispatch("cancelPick")}},{key:"_initVue",value:function e(){var t=this.config,r=t.customText,i=t.lang;var n=mf[i];var a=Jd({},mf,tp({},i,Jd({},n,r)));ai.use(to);ai.locales(a);ai.use(_o);qs(ai,this.apiClient,this.config)}},{key:"_initContainer",value:function e(){this._component=this.config.displayMode===ad?pd:ed;this._container=this._getElement(this.config.container,this.config.displayMode===id)||document.body}},{key:"_initMutationOserver",value:function e(){var r=this;var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserve;if(!t){return}this._mutationObserver=new t(function(e){var t=e[0];if(!t){return}if(r.app&&t.removedNodes.length>0&&([].indexOf.call(t.removedNodes,r.app.$el)>-1||[].indexOf.call(t.removedNodes,r._container)>-1)){r.app.$root.$destroy();r.app=null}})}},{key:"_createPicker",value:function e(t,r,i){var n=this;var a=this;var o=this.config;var s=o.displayMode===id;var l=document.createElement("div");if(document.getElementById(o.rootId)){console.warn("Picker Create: Application mount point already exists");return a.app}this._container.appendChild(l);return new ai({el:l,store:Zd(this.apiClient,o,r,i,t),render:function e(t){return t(n._component)},created:function e(){a.app=this;if(s){document.body.classList.add("fsp-picker--no-scroll")}this.$translate.setLang(o.lang);if(a._mutationObserver){a._mutationObserver.observe(a._container.parentNode,{childList:true})}if(a._onOpen){a._onOpen(a)}},destroyed:function e(){if(a._mutationObserver){a._mutationObserver.disconnect()}document.body.classList.remove("fsp-picker--no-scroll");var t=this.$el;if(t&&t.parentNode){t.parentNode.removeChild(t)}if(a._onClose){a._onClose()}this.$store.commit("RESET_CLOUD");this.$store.commit("CLEAR_FILES");a.app=null}})}},{key:"_getElement",value:function e(t,r){var i=void 0;if(!t&&!r){throw new Error("Filestack Picker Initialize: Container is not defined")}if(typeof t==="string"){if(t.indexOf(".")!==0&&t.indexOf("#")!==0){t="#"+t}i=document.querySelector(t)}else{i=document.body.contains(t)?t:false}if(!i&&!r){throw new Error("Filestack Picker Initialize: Container with - "+t+" not found in document")}return i}},{key:"_loadCssMaybe",value:function e(){if(this.config.loadCss===false){return Promise.resolve()}if(this.config.modalSize){var t=document.createElement("style");
1t.innerHTML=("\n @media screen and (min-width: 980px) {\n .fsp-picker .fsp-modal {\n width: "+this.config.modalSize[0]+"px !important;\n height: "+this.config.modalSize[1]+"px !important;\n }\n }\n ").trim();document.head.appendChild(t)}return lo(this.config.loadCss)}}]);return r}();var ap=co.picker;so(np,ap);return np}(); 2//# sourceMappingURL=filestackLegacyPicker.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.