/
home
/
obinna
/
html
/
mixchief_app
/
public
/
js
/
Upload File
HOME
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=20)}([function(e,t,n){"use strict";e.exports=n(22)},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){e.exports=n(31)()},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,a,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,l],c=0;(s=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){var r;r=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},l=function(e){return Array.prototype.slice.call(e)},s=function(e){var t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(function(e,n){t.push([n,e])}):Object.keys(e).forEach(function(n){t.push([n,e[n]])}),t},u=function(e){console.warn("SweetAlert2: "+e)},c=function(e){console.error("SweetAlert2: "+e)},p=[],d=function(e){-1===p.indexOf(e)&&(p.push(e),u(e))},f=function(e){return"function"==typeof e?e():e},h=function(t){return"object"===(void 0===t?"undefined":e(t))&&"function"==typeof t.then},m=Object.freeze({cancel:"cancel",backdrop:"overlay",close:"close",esc:"esc",timer:"timer"}),g=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},b=g(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","toast","toast-shown","toast-column","fade","show","hide","noanimation","close","title","header","content","actions","confirm","cancel","footer","icon","icon-text","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validationerror","progresssteps","activeprogressstep","progresscircle","progressline","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen"]),v=g(["success","warning","info","question","error"]),y={previousBodyPadding:null},_=function(e,t){return e.classList.contains(t)},w=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},x=function(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(function(t){e.forEach?e.forEach(function(e){n?e.classList.add(t):e.classList.remove(t)}):n?e.classList.add(t):e.classList.remove(t)}))},k=function(e,t){x(e,t,!0)},C=function(e,t){x(e,t,!1)},S=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(_(e.childNodes[n],t))return e.childNodes[n]},T=function(e){e.style.opacity="",e.style.display=e.id===b.content?"block":"flex"},E=function(e){e.style.opacity="",e.style.display="none"},O=function(e){return e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},j=function(){return document.body.querySelector("."+b.container)},P=function(e){var t=j();return t?t.querySelector("."+e):null},z=function(){return P(b.popup)},A=function(){var e=z();return l(e.querySelectorAll("."+b.icon))},F=function(){return P(b.title)},N=function(){return P(b.content)},D=function(){return P(b.image)},M=function(){return P(b.progresssteps)},R=function(){return P(b.validationerror)},L=function(){return P(b.confirm)},I=function(){return P(b.cancel)},q=function(){return P(b.actions)},U=function(){return P(b.footer)},B=function(){return P(b.close)},V=function(){var e=l(z().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(e,t){return(e=parseInt(e.getAttribute("tabindex")))>(t=parseInt(t.getAttribute("tabindex")))?1:e<t?-1:0}),t=l(z().querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls]')).filter(function(e){return"-1"!==e.getAttribute("tabindex")});return function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t)).filter(function(e){return O(e)})},H=function(){return!W()&&!document.body.classList.contains(b["no-backdrop"])},W=function(){return document.body.classList.contains(b["toast-shown"])},K=function(){return"undefined"==typeof window||"undefined"==typeof document},G=('\n <div aria-labelledby="'+b.title+'" aria-describedby="'+b.content+'" class="'+b.popup+'" tabindex="-1">\n <div class="'+b.header+'">\n <ul class="'+b.progresssteps+'"></ul>\n <div class="'+b.icon+" "+v.error+'">\n <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n </div>\n <div class="'+b.icon+" "+v.question+'">\n <span class="'+b["icon-text"]+'">?</span>\n </div>\n <div class="'+b.icon+" "+v.warning+'">\n <span class="'+b["icon-text"]+'">!</span>\n </div>\n <div class="'+b.icon+" "+v.info+'">\n <span class="'+b["icon-text"]+'">i</span>\n </div>\n <div class="'+b.icon+" "+v.success+'">\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n </div>\n <img class="'+b.image+'" />\n <h2 class="'+b.title+'" id="'+b.title+'"></h2>\n <button type="button" class="'+b.close+'">×</button>\n </div>\n <div class="'+b.content+'">\n <div id="'+b.content+'"></div>\n <input class="'+b.input+'" />\n <input type="file" class="'+b.file+'" />\n <div class="'+b.range+'">\n <input type="range" />\n <output></output>\n </div>\n <select class="'+b.select+'"></select>\n <div class="'+b.radio+'"></div>\n <label for="'+b.checkbox+'" class="'+b.checkbox+'">\n <input type="checkbox" />\n <span class="'+b.label+'"></span>\n </label>\n <textarea class="'+b.textarea+'"></textarea>\n <div class="'+b.validationerror+'" id="'+b.validationerror+'"></div>\n </div>\n <div class="'+b.actions+'">\n <button type="button" class="'+b.confirm+'">OK</button>\n <button type="button" class="'+b.cancel+'">Cancel</button>\n </div>\n <div class="'+b.footer+'">\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),$=function(e){var t=j();if(t&&(t.parentNode.removeChild(t),C([document.documentElement,document.body],[b["no-backdrop"],b["toast-shown"],b["has-column"]])),!K()){var n=document.createElement("div");n.className=b.container,n.innerHTML=G,("string"==typeof e.target?document.querySelector(e.target):e.target).appendChild(n);var r=z(),o=N(),a=S(o,b.input),i=S(o,b.file),l=o.querySelector("."+b.range+" input"),s=o.querySelector("."+b.range+" output"),u=S(o,b.select),p=o.querySelector("."+b.checkbox+" input"),d=S(o,b.textarea);r.setAttribute("role",e.toast?"alert":"dialog"),r.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||r.setAttribute("aria-modal","true");var f=void 0,h=function(e){je.isVisible()&&f!==e.target.value&&je.resetValidationError(),f=e.target.value};return a.oninput=h,i.onchange=h,u.onchange=h,p.onchange=h,d.oninput=h,l.oninput=function(e){h(e),s.value=l.value},l.onchange=function(e){h(e),l.nextSibling.value=l.value},r}c("SweetAlert2 requires document to initialize")},Y=function(t,n){if(!t)return E(n);if("object"===(void 0===t?"undefined":e(t)))if(n.innerHTML="",0 in t)for(var r=0;r in t;r++)n.appendChild(t[r].cloneNode(!0));else n.appendChild(t.cloneNode(!0));else t&&(n.innerHTML=t);T(n)},J=function(){if(K())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n])return t[n];return!1}(),Q=function(e){var t,n,r=q(),o=L(),a=I();if(e.showConfirmButton||e.showCancelButton?T(r):E(r),e.showCancelButton?a.style.display="inline-block":E(a),e.showConfirmButton?(n="display",(t=o).style.removeProperty?t.style.removeProperty(n):t.style.removeAttribute(n)):E(o),o.innerHTML=e.confirmButtonText,a.innerHTML=e.cancelButtonText,o.setAttribute("aria-label",e.confirmButtonAriaLabel),a.setAttribute("aria-label",e.cancelButtonAriaLabel),o.className=b.confirm,k(o,e.confirmButtonClass),a.className=b.cancel,k(a,e.cancelButtonClass),e.buttonsStyling){k([o,a],b.styled),e.confirmButtonColor&&(o.style.backgroundColor=e.confirmButtonColor),e.cancelButtonColor&&(a.style.backgroundColor=e.cancelButtonColor);var i=window.getComputedStyle(o).getPropertyValue("background-color");o.style.borderLeftColor=i,o.style.borderRightColor=i}else C([o,a],b.styled),o.style.backgroundColor=o.style.borderLeftColor=o.style.borderRightColor="",a.style.backgroundColor=a.style.borderLeftColor=a.style.borderRightColor=""},X=function(e){var t=N().querySelector("#"+b.content);e.html?Y(e.html,t):e.text?(t.textContent=e.text,T(t)):E(t)},Z=function(e){for(var t=A(),n=0;n<t.length;n++)E(t[n]);if(e.type)if(-1!==Object.keys(v).indexOf(e.type)){var r=je.getPopup().querySelector("."+b.icon+"."+v[e.type]);T(r),e.animation&&k(r,"swal2-animate-"+e.type+"-icon")}else c('Unknown type! Expected "success", "error", "warning", "info" or "question", got "'+e.type+'"')},ee=function(e){var t=D();e.imageUrl?(t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt),T(t),e.imageWidth?t.setAttribute("width",e.imageWidth):t.removeAttribute("width"),e.imageHeight?t.setAttribute("height",e.imageHeight):t.removeAttribute("height"),t.className=b.image,e.imageClass&&k(t,e.imageClass)):E(t)},te=function(e){var t=M(),n=parseInt(null===e.currentProgressStep?je.getQueueStep():e.currentProgressStep,10);e.progressSteps&&e.progressSteps.length?(T(t),t.innerHTML="",n>=e.progressSteps.length&&u("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach(function(r,o){var a=document.createElement("li");if(k(a,b.progresscircle),a.innerHTML=r,o===n&&k(a,b.activeprogressstep),t.appendChild(a),o!==e.progressSteps.length-1){var i=document.createElement("li");k(i,b.progressline),e.progressStepsDistance&&(i.style.width=e.progressStepsDistance),t.appendChild(i)}})):E(t)},ne=function(e){var t=F();e.titleText?t.innerText=e.titleText:e.title&&("string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Y(e.title,t))},re=function(){null===y.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(y.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=y.previousBodyPadding+function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()+"px")},oe={},ae=function(e,t){var n=j(),r=z();if(r){null!==e&&"function"==typeof e&&e(r),C(r,b.show),k(r,b.hide);var o=function(){var e,r;W()||(e=window.scrollX,r=window.scrollY,oe.restoreFocusTimeout=setTimeout(function(){oe.previousActiveElement&&oe.previousActiveElement.focus?(oe.previousActiveElement.focus(),oe.previousActiveElement=null):document.body&&document.body.focus()},100),void 0!==e&&void 0!==r&&window.scrollTo(e,r),oe.keydownTarget.removeEventListener("keydown",oe.keydownHandler,{capture:oe.keydownListenerCapture}),oe.keydownHandlerAdded=!1),n.parentNode&&n.parentNode.removeChild(n),C([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"],b["toast-column"]]),H()&&(null!==y.previousBodyPadding&&(document.body.style.paddingRight=y.previousBodyPadding,y.previousBodyPadding=null),function(){if(_(document.body,b.iosfix)){var e=parseInt(document.body.style.top,10);C(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}(),l(document.body.children).forEach(function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})),null!==t&&"function"==typeof t&&setTimeout(function(){t()})};J&&!_(r,b.noanimation)?r.addEventListener(J,function e(){r.removeEventListener(J,e),_(r,b.hide)&&o()}):o()}};function ie(e){var t=function e(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!(this instanceof e))return new(Function.prototype.bind.apply(e,[null].concat(n)));Object.getPrototypeOf(e).apply(this,n)};return t.prototype=r(Object.create(e.prototype),{constructor:t}),"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}var le={title:"",titleText:"",text:"",html:"",footer:"",type:null,toast:!1,customClass:"",target:"body",backdrop:!0,animation:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:null,confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:null,cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:null,timer:null,width:null,padding:null,background:null,input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:null,onBeforeOpen:null,onAfterClose:null,onOpen:null,onClose:null,useRejections:!1,expectRejections:!1},se=["useRejections","expectRejections"],ue=function(e){return le.hasOwnProperty(e)||"extraParams"===e},ce=function(e){return-1!==se.indexOf(e)},pe=function(e){for(var t in e)ue(t)||u('Unknown parameter "'+t+'"'),e.toast&&-1!==["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"].indexOf(t)&&u('The parameter "'+t+'" is incompatible with toasts'),ce(t)&&d('The parameter "'+t+'" is deprecated and will be removed in the next major release.')},de='"setDefaults" & "resetDefaults" methods are deprecated in favor of "mixin" method and will be removed in the next major release. For new projects, use "mixin". For past projects already using "setDefaults", support will be provided through an additional package.',fe={};var he=[],me=function(){var e=z();e||je(""),e=z();var t=q(),n=L(),r=I();T(t),T(n),k([e,t],b.loading),n.disabled=!0,r.disabled=!0,e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},ge=Object.freeze({isValidParameter:ue,isDeprecatedParameter:ce,argsToParams:function(t){var n={};switch(e(t[0])){case"string":["title","html","type"].forEach(function(r,o){switch(e(t[o])){case"string":n[r]=t[o];break;case"undefined":break;default:c("Unexpected type of "+r+'! Expected "string", got '+e(t[o]))}});break;case"object":r(n,t[0]);break;default:c('Unexpected type of argument! Expected "string" or "object", got "'+e(t[0])+'"')}return n},adaptInputValidator:function(e){return function(t,n){return e.call(this,t,n).then(function(){},function(e){return e})}},close:ae,closePopup:ae,closeModal:ae,closeToast:ae,isVisible:function(){return!!z()},clickConfirm:function(){return L().click()},clickCancel:function(){return I().click()},getContainer:j,getPopup:z,getTitle:F,getContent:N,getImage:D,getIcons:A,getCloseButton:B,getButtonsWrapper:function(){return d("swal.getButtonsWrapper() is deprecated and will be removed in the next major release, use swal.getActions() instead"),P(b.actions)},getActions:q,getConfirmButton:L,getCancelButton:I,getFooter:U,getFocusableElements:V,isLoading:function(){return z().hasAttribute("data-loading")},fire:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return new(Function.prototype.bind.apply(this,[null].concat(t)))},mixin:function(e){return ie(function(l){function s(){return t(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return a(s,l),n(s,[{key:"_main",value:function(t){return o(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"_main",this).call(this,r({},e,t))}}]),s}(this))},queue:function(e){var t=this;he=e;var n=function(){he=[],document.body.removeAttribute("data-swal2-queue-step")},r=[];return new Promise(function(e){!function o(a,i){a<he.length?(document.body.setAttribute("data-swal2-queue-step",a),t(he[a]).then(function(t){void 0!==t.value?(r.push(t.value),o(a+1,i)):(n(),e({dismiss:t.dismiss}))})):(n(),e({value:r}))}(0)})},getQueueStep:function(){return document.body.getAttribute("data-swal2-queue-step")},insertQueueStep:function(e,t){return t&&t<he.length?he.splice(t,0,e):he.push(e)},deleteQueueStep:function(e){void 0!==he[e]&&he.splice(e,1)},showLoading:me,enableLoading:me,getTimerLeft:function(){return oe.timeout&&oe.timeout.getTimerLeft()}}),be="function"==typeof Symbol?Symbol:function(){var e=0;function t(t){return"__"+t+"_"+Math.floor(1e9*Math.random())+"_"+ ++e+"__"}return t.iterator=t("Symbol.iterator"),t}(),ve="function"==typeof WeakMap?WeakMap:function(e,t,n){function r(){t(this,e,{value:be("WeakMap")})}return r.prototype={delete:function(t){delete t[this[e]]},get:function(t){return t[this[e]]},has:function(t){return n.call(t,this[e])},set:function(n,r){t(n,this[e],{configurable:!0,value:r})}},r}(be("WeakMap"),Object.defineProperty,{}.hasOwnProperty),ye={promise:new ve,innerParams:new ve,domCache:new ve};function _e(){var e=ye.innerParams.get(this),t=ye.domCache.get(this);e.showConfirmButton||(E(t.confirmButton),e.showCancelButton||E(t.actions)),C([t.popup,t.actions],b.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.cancelButton.disabled=!1}var we=function e(n,r){t(this,e);var o=void 0,a=void 0,i=void 0,l=r;this.start=function(){i=!0,a=new Date,o=setTimeout(n,l)},this.stop=function(){i=!1,clearTimeout(o),l-=new Date-a},this.getTimerLeft=function(){return i&&(this.stop(),this.start()),l},this.start()},xe={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.reject(t&&t.validationMessage?t.validationMessage:"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(e)?Promise.resolve():Promise.reject(t&&t.validationMessage?t.validationMessage:"Invalid URL")}};var ke=function(e){var t=j(),n=z();null!==e.onBeforeOpen&&"function"==typeof e.onBeforeOpen&&e.onBeforeOpen(n),e.animation?(k(n,b.show),k(t,b.fade),C(n,b.hide)):C(n,b.fade),T(n),t.style.overflowY="hidden",J&&!_(n,b.noanimation)?n.addEventListener(J,function e(){n.removeEventListener(J,e),t.style.overflowY="auto"}):t.style.overflowY="auto",k([document.documentElement,document.body,t],b.shown),e.heightAuto&&e.backdrop&&!e.toast&&k([document.documentElement,document.body],b["height-auto"]),H()&&(re(),function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!_(document.body,b.iosfix)){var e=document.body.scrollTop;document.body.style.top=-1*e+"px",k(document.body,b.iosfix)}}(),l(document.body.children).forEach(function(e){e===j()||e.contains(j())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})),W()||oe.previousActiveElement||(oe.previousActiveElement=document.activeElement),null!==e.onOpen&&"function"==typeof e.onOpen&&setTimeout(function(){e.onOpen(n)})};var Ce=Object.freeze({hideLoading:_e,disableLoading:_e,getInput:function(e){var t=ye.innerParams.get(this),n=ye.domCache.get(this);if(!(e=e||t.input))return null;switch(e){case"select":case"textarea":case"file":return S(n.content,b[e]);case"checkbox":return n.popup.querySelector("."+b.checkbox+" input");case"radio":return n.popup.querySelector("."+b.radio+" input:checked")||n.popup.querySelector("."+b.radio+" input:first-child");case"range":return n.popup.querySelector("."+b.range+" input");default:return S(n.content,b.input)}},enableButtons:function(){var e=ye.domCache.get(this);e.confirmButton.disabled=!1,e.cancelButton.disabled=!1},disableButtons:function(){var e=ye.domCache.get(this);e.confirmButton.disabled=!0,e.cancelButton.disabled=!0},enableConfirmButton:function(){ye.domCache.get(this).confirmButton.disabled=!1},disableConfirmButton:function(){ye.domCache.get(this).confirmButton.disabled=!0},enableInput:function(){var e=this.getInput();if(!e)return!1;if("radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!1;else e.disabled=!1},disableInput:function(){var e=this.getInput();if(!e)return!1;if(e&&"radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!0;else e.disabled=!0},showValidationError:function(e){var t=ye.domCache.get(this);t.validationError.innerHTML=e;var n=window.getComputedStyle(t.popup);t.validationError.style.marginLeft="-"+n.getPropertyValue("padding-left"),t.validationError.style.marginRight="-"+n.getPropertyValue("padding-right"),T(t.validationError);var r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedBy",b.validationerror),w(r),k(r,b.inputerror))},resetValidationError:function(){var e=ye.domCache.get(this);e.validationError&&E(e.validationError);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),C(t,b.inputerror))},getProgressSteps:function(){return ye.innerParams.get(this).progressSteps},setProgressSteps:function(e){var t=ye.innerParams.get(this),n=r({},t,{progressSteps:e});ye.innerParams.set(this,n),te(n)},showProgressSteps:function(){var e=ye.domCache.get(this);T(e.progressSteps)},hideProgressSteps:function(){var e=ye.domCache.get(this);E(e.progressSteps)},_main:function(t){var n=this;pe(t);var o=r({},le,t);!function(e){e.inputValidator||Object.keys(xe).forEach(function(t){e.input===t&&(e.inputValidator=e.expectRejections?xe[t]:je.adaptInputValidator(xe[t]))}),(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(u('Target parameter is not valid, defaulting to "body"'),e.target="body");var t=void 0,n=z(),r="string"==typeof e.target?document.querySelector(e.target):e.target;t=n&&r&&n.parentNode!==r.parentNode?$(e):n||$(e),e.width&&(t.style.width="number"==typeof e.width?e.width+"px":e.width),e.padding&&(t.style.padding="number"==typeof e.padding?e.padding+"px":e.padding),e.background&&(t.style.background=e.background);for(var o=window.getComputedStyle(t).getPropertyValue("background-color"),a=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),i=0;i<a.length;i++)a[i].style.backgroundColor=o;var l=j(),s=B(),c=U();if(ne(e),X(e),"string"==typeof e.backdrop?j().style.background=e.backdrop:e.backdrop||k([document.documentElement,document.body],b["no-backdrop"]),!e.backdrop&&e.allowOutsideClick&&u('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.position in b?k(l,b[e.position]):(u('The "position" parameter is not valid, defaulting to "center"'),k(l,b.center)),e.grow&&"string"==typeof e.grow){var p="grow-"+e.grow;p in b&&k(l,b[p])}"function"==typeof e.animation&&(e.animation=e.animation.call()),e.showCloseButton?(s.setAttribute("aria-label",e.closeButtonAriaLabel),T(s)):E(s),t.className=b.popup,e.toast?(k([document.documentElement,document.body],b["toast-shown"]),k(t,b.toast)):k(t,b.modal),e.customClass&&k(t,e.customClass),te(e),Z(e),ee(e),Q(e),Y(e.footer,c),!0===e.animation?C(t,b.noanimation):k(t,b.noanimation),e.showLoaderOnConfirm&&!e.preConfirm&&u("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request")}(o),Object.freeze(o),ye.innerParams.set(this,o),oe.timeout&&(oe.timeout.stop(),delete oe.timeout),clearTimeout(oe.restoreFocusTimeout);var a={popup:z(),container:j(),content:N(),actions:q(),confirmButton:L(),cancelButton:I(),closeButton:B(),validationError:R(),progressSteps:M()};ye.domCache.set(this,a);var i=this.constructor;return new Promise(function(t,r){var l=function(e){i.closePopup(o.onClose,o.onAfterClose),o.useRejections?t(e):t({value:e})},u=function(e){i.closePopup(o.onClose,o.onAfterClose),o.useRejections?r(e):t({dismiss:e})},p=function(e){i.closePopup(o.onClose,o.onAfterClose),r(e)};o.timer&&(oe.timeout=new we(function(){u("timer"),delete oe.timeout},o.timer)),o.input&&setTimeout(function(){var e=n.getInput();e&&w(e)},0);for(var d=function(e){if(o.showLoaderOnConfirm&&i.showLoading(),o.preConfirm){n.resetValidationError();var t=Promise.resolve().then(function(){return o.preConfirm(e,o.extraParams)});o.expectRejections?t.then(function(t){return l(t||e)},function(e){n.hideLoading(),e&&n.showValidationError(e)}):t.then(function(t){O(a.validationError)||!1===t?n.hideLoading():l(t||e)},function(e){return p(e)})}else l(e)},m=function(e){var t=e.target,r=a.confirmButton,l=a.cancelButton,s=r&&(r===t||r.contains(t)),c=l&&(l===t||l.contains(t));switch(e.type){case"click":if(s&&i.isVisible())if(n.disableButtons(),o.input){var f=function(){var e=n.getInput();if(!e)return null;switch(o.input){case"checkbox":return e.checked?1:0;case"radio":return e.checked?e.value:null;case"file":return e.files.length?e.files[0]:null;default:return o.inputAutoTrim?e.value.trim():e.value}}();if(o.inputValidator){n.disableInput();var h=Promise.resolve().then(function(){return o.inputValidator(f,o.extraParams)});o.expectRejections?h.then(function(){n.enableButtons(),n.enableInput(),d(f)},function(e){n.enableButtons(),n.enableInput(),e&&n.showValidationError(e)}):h.then(function(e){n.enableButtons(),n.enableInput(),e?n.showValidationError(e):d(f)},function(e){return p(e)})}else d(f)}else d(!0);else c&&i.isVisible()&&(n.disableButtons(),u(i.DismissReason.cancel))}},g=a.popup.querySelectorAll("button"),v=0;v<g.length;v++)g[v].onclick=m,g[v].onmouseover=m,g[v].onmouseout=m,g[v].onmousedown=m;if(a.closeButton.onclick=function(){u(i.DismissReason.close)},o.toast)a.popup.onclick=function(){o.showConfirmButton||o.showCancelButton||o.showCloseButton||o.input||u(i.DismissReason.close)};else{var y=!1;a.popup.onmousedown=function(){a.container.onmouseup=function(e){a.container.onmouseup=void 0,e.target===a.container&&(y=!0)}},a.container.onmousedown=function(){a.popup.onmouseup=function(e){a.popup.onmouseup=void 0,(e.target===a.popup||a.popup.contains(e.target))&&(y=!0)}},a.container.onclick=function(e){y?y=!1:e.target===a.container&&f(o.allowOutsideClick)&&u(i.DismissReason.backdrop)}}o.reverseButtons?a.confirmButton.parentNode.insertBefore(a.cancelButton,a.confirmButton):a.confirmButton.parentNode.insertBefore(a.confirmButton,a.cancelButton);var _=function(e,t){for(var n=V(o.focusCancel),r=0;r<n.length;r++)return(e+=t)===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus();a.popup.focus()};oe.keydownHandlerAdded&&(oe.keydownTarget.removeEventListener("keydown",oe.keydownHandler,{capture:oe.keydownListenerCapture}),oe.keydownHandlerAdded=!1),o.toast||(oe.keydownHandler=function(e){return function(e,t){if(t.stopKeydownPropagation&&e.stopPropagation(),"Enter"!==e.key||e.isComposing)if("Tab"===e.key){for(var r=e.target,o=V(t.focusCancel),l=-1,s=0;s<o.length;s++)if(r===o[s]){l=s;break}e.shiftKey?_(l,-1):_(l,1),e.stopPropagation(),e.preventDefault()}else-1!==["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"].indexOf(e.key)?document.activeElement===a.confirmButton&&O(a.cancelButton)?a.cancelButton.focus():document.activeElement===a.cancelButton&&O(a.confirmButton)&&a.confirmButton.focus():"Escape"!==e.key&&"Esc"!==e.key||!0!==f(t.allowEscapeKey)||u(i.DismissReason.esc);else if(e.target&&n.getInput()&&e.target.outerHTML===n.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(t.input))return;i.clickConfirm(),e.preventDefault()}}(e,o)},oe.keydownTarget=o.keydownListenerCapture?window:a.popup,oe.keydownListenerCapture=o.keydownListenerCapture,oe.keydownTarget.addEventListener("keydown",oe.keydownHandler,{capture:oe.keydownListenerCapture}),oe.keydownHandlerAdded=!0),n.enableButtons(),n.hideLoading(),n.resetValidationError(),o.toast&&(o.input||o.footer||o.showCloseButton)?k(document.body,b["toast-column"]):C(document.body,b["toast-column"]);for(var x=["input","file","range","select","radio","checkbox","textarea"],j=void 0,P=0;P<x.length;P++){var z=b[x[P]],A=S(a.content,z);if(j=n.getInput(x[P])){for(var F in j.attributes)if(j.attributes.hasOwnProperty(F)){var N=j.attributes[F].name;"type"!==N&&"value"!==N&&j.removeAttribute(N)}for(var D in o.inputAttributes)j.setAttribute(D,o.inputAttributes[D])}A.className=z,o.inputClass&&k(A,o.inputClass),E(A)}var M=void 0;switch(o.input){case"text":case"email":case"password":case"number":case"tel":case"url":(j=S(a.content,b.input)).value=o.inputValue,j.placeholder=o.inputPlaceholder,j.type=o.input,T(j);break;case"file":(j=S(a.content,b.file)).placeholder=o.inputPlaceholder,j.type=o.input,T(j);break;case"range":var R=S(a.content,b.range),L=R.querySelector("input"),I=R.querySelector("output");L.value=o.inputValue,L.type=o.input,I.value=o.inputValue,T(R);break;case"select":var q=S(a.content,b.select);if(q.innerHTML="",o.inputPlaceholder){var U=document.createElement("option");U.innerHTML=o.inputPlaceholder,U.value="",U.disabled=!0,U.selected=!0,q.appendChild(U)}M=function(e){e.forEach(function(e){var t=e[0],n=e[1],r=document.createElement("option");r.value=t,r.innerHTML=n,o.inputValue.toString()===t.toString()&&(r.selected=!0),q.appendChild(r)}),T(q),q.focus()};break;case"radio":var B=S(a.content,b.radio);B.innerHTML="",M=function(e){e.forEach(function(e){var t=e[0],n=e[1],r=document.createElement("input"),a=document.createElement("label");r.type="radio",r.name=b.radio,r.value=t,o.inputValue.toString()===t.toString()&&(r.checked=!0);var i=document.createElement("span");i.innerHTML=n,i.className=b.label,a.appendChild(r),a.appendChild(i),B.appendChild(a)}),T(B);var t=B.querySelectorAll("input");t.length&&t[0].focus()};break;case"checkbox":var H=S(a.content,b.checkbox),W=n.getInput("checkbox");W.type="checkbox",W.value=1,W.id=b.checkbox,W.checked=Boolean(o.inputValue),H.querySelector("span").innerHTML=o.inputPlaceholder,T(H);break;case"textarea":var K=S(a.content,b.textarea);K.value=o.inputValue,K.placeholder=o.inputPlaceholder,T(K);break;case null:break;default:c('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'+o.input+'"')}if("select"===o.input||"radio"===o.input){var G=function(e){return M(s(e))};h(o.inputOptions)?(i.showLoading(),o.inputOptions.then(function(e){n.hideLoading(),G(e)})):"object"===e(o.inputOptions)?G(o.inputOptions):c("Unexpected type of inputOptions! Expected object, Map or Promise, got "+e(o.inputOptions))}else-1!==["text","email","number","tel","textarea"].indexOf(o.input)&&h(o.inputValue)&&(i.showLoading(),E(j),o.inputValue.then(function(e){j.value="number"===o.input?parseFloat(e)||0:e+"",T(j),j.focus(),n.hideLoading()}).catch(function(e){c("Error in inputValue promise: "+e),j.value="",T(j),j.focus(),n.hideLoading()}));ke(o),o.toast||(f(o.allowEnterKey)?o.focusCancel&&O(a.cancelButton)?a.cancelButton.focus():o.focusConfirm&&O(a.confirmButton)?a.confirmButton.focus():_(-1,1):document.activeElement&&document.activeElement.blur()),a.container.scrollTop=0})}}),Se=void 0;function Te(){if("undefined"!=typeof window){"undefined"==typeof Promise&&c("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)");for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(void 0===t[0])return c("At least 1 argument is expected!"),!1;Se=this;var r=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0}});var o=this._main(this.params);ye.promise.set(this,o)}}Te.prototype.then=function(e,t){return ye.promise.get(this).then(e,t)},Te.prototype.catch=function(e){return ye.promise.get(this).catch(e)},Te.prototype.finally=function(e){return ye.promise.get(this).finally(e)},r(Te.prototype,Ce),r(Te,ge),Object.keys(Ce).forEach(function(e){Te[e]=function(){var t;if(Se)return(t=Se)[e].apply(t,arguments)}}),Te.DismissReason=m,Te.noop=function(){},Te.version="7.26.9";var Ee,Oe,je=ie((Ee=Te,Oe=function(l){function s(){return t(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return a(s,Ee),n(s,[{key:"_main",value:function(e){return o(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"_main",this).call(this,r({},fe,e))}}],[{key:"setDefaults",value:function(t){if(d(de),!t||"object"!==(void 0===t?"undefined":e(t)))throw new TypeError("SweetAlert2: The argument for setDefaults() is required and has to be a object");pe(t),Object.keys(t).forEach(function(e){Ee.isValidParameter(e)&&(fe[e]=t[e])})}},{key:"resetDefaults",value:function(){d(de),fe={}}}]),s}(),"undefined"!=typeof window&&"object"===e(window._swalDefaults)&&Oe.setDefaults(window._swalDefaults),Oe));return je.default=je,je},e.exports=r(),"undefined"!=typeof window&&window.Sweetalert2&&(window.swal=window.sweetAlert=window.Swal=window.SweetAlert=window.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,"@-webkit-keyframes swal2-show {\n 0% {\n -webkit-transform: scale(0.7);\n transform: scale(0.7); }\n 45% {\n -webkit-transform: scale(1.05);\n transform: scale(1.05); }\n 80% {\n -webkit-transform: scale(0.95);\n transform: scale(0.95); }\n 100% {\n -webkit-transform: scale(1);\n transform: scale(1); } }\n\n@keyframes swal2-show {\n 0% {\n -webkit-transform: scale(0.7);\n transform: scale(0.7); }\n 45% {\n -webkit-transform: scale(1.05);\n transform: scale(1.05); }\n 80% {\n -webkit-transform: scale(0.95);\n transform: scale(0.95); }\n 100% {\n -webkit-transform: scale(1);\n transform: scale(1); } }\n\n@-webkit-keyframes swal2-hide {\n 0% {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1; }\n 100% {\n -webkit-transform: scale(0.5);\n transform: scale(0.5);\n opacity: 0; } }\n\n@keyframes swal2-hide {\n 0% {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1; }\n 100% {\n -webkit-transform: scale(0.5);\n transform: scale(0.5);\n opacity: 0; } }\n\n@-webkit-keyframes swal2-animate-success-line-tip {\n 0% {\n top: 1.1875em;\n left: .0625em;\n width: 0; }\n 54% {\n top: 1.0625em;\n left: .125em;\n width: 0; }\n 70% {\n top: 2.1875em;\n left: -.375em;\n width: 3.125em; }\n 84% {\n top: 3em;\n left: 1.3125em;\n width: 1.0625em; }\n 100% {\n top: 2.8125em;\n left: .875em;\n width: 1.5625em; } }\n\n@keyframes swal2-animate-success-line-tip {\n 0% {\n top: 1.1875em;\n left: .0625em;\n width: 0; }\n 54% {\n top: 1.0625em;\n left: .125em;\n width: 0; }\n 70% {\n top: 2.1875em;\n left: -.375em;\n width: 3.125em; }\n 84% {\n top: 3em;\n left: 1.3125em;\n width: 1.0625em; }\n 100% {\n top: 2.8125em;\n left: .875em;\n width: 1.5625em; } }\n\n@-webkit-keyframes swal2-animate-success-line-long {\n 0% {\n top: 3.375em;\n right: 2.875em;\n width: 0; }\n 65% {\n top: 3.375em;\n right: 2.875em;\n width: 0; }\n 84% {\n top: 2.1875em;\n right: 0;\n width: 3.4375em; }\n 100% {\n top: 2.375em;\n right: .5em;\n width: 2.9375em; } }\n\n@keyframes swal2-animate-success-line-long {\n 0% {\n top: 3.375em;\n right: 2.875em;\n width: 0; }\n 65% {\n top: 3.375em;\n right: 2.875em;\n width: 0; }\n 84% {\n top: 2.1875em;\n right: 0;\n width: 3.4375em; }\n 100% {\n top: 2.375em;\n right: .5em;\n width: 2.9375em; } }\n\n@-webkit-keyframes swal2-rotate-success-circular-line {\n 0% {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n 5% {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n 12% {\n -webkit-transform: rotate(-405deg);\n transform: rotate(-405deg); }\n 100% {\n -webkit-transform: rotate(-405deg);\n transform: rotate(-405deg); } }\n\n@keyframes swal2-rotate-success-circular-line {\n 0% {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n 5% {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n 12% {\n -webkit-transform: rotate(-405deg);\n transform: rotate(-405deg); }\n 100% {\n -webkit-transform: rotate(-405deg);\n transform: rotate(-405deg); } }\n\n@-webkit-keyframes swal2-animate-error-x-mark {\n 0% {\n margin-top: 1.625em;\n -webkit-transform: scale(0.4);\n transform: scale(0.4);\n opacity: 0; }\n 50% {\n margin-top: 1.625em;\n -webkit-transform: scale(0.4);\n transform: scale(0.4);\n opacity: 0; }\n 80% {\n margin-top: -.375em;\n -webkit-transform: scale(1.15);\n transform: scale(1.15); }\n 100% {\n margin-top: 0;\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1; } }\n\n@keyframes swal2-animate-error-x-mark {\n 0% {\n margin-top: 1.625em;\n -webkit-transform: scale(0.4);\n transform: scale(0.4);\n opacity: 0; }\n 50% {\n margin-top: 1.625em;\n -webkit-transform: scale(0.4);\n transform: scale(0.4);\n opacity: 0; }\n 80% {\n margin-top: -.375em;\n -webkit-transform: scale(1.15);\n transform: scale(1.15); }\n 100% {\n margin-top: 0;\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1; } }\n\n@-webkit-keyframes swal2-animate-error-icon {\n 0% {\n -webkit-transform: rotateX(100deg);\n transform: rotateX(100deg);\n opacity: 0; }\n 100% {\n -webkit-transform: rotateX(0deg);\n transform: rotateX(0deg);\n opacity: 1; } }\n\n@keyframes swal2-animate-error-icon {\n 0% {\n -webkit-transform: rotateX(100deg);\n transform: rotateX(100deg);\n opacity: 0; }\n 100% {\n -webkit-transform: rotateX(0deg);\n transform: rotateX(0deg);\n opacity: 1; } }\n\nbody.swal2-toast-column .swal2-container {\n position: fixed;\n background-color: transparent; }\n body.swal2-toast-column .swal2-container > .swal2-toast {\n flex-direction: column;\n align-items: stretch; }\n body.swal2-toast-column .swal2-container > .swal2-toast .swal2-actions {\n flex: 1;\n align-self: stretch;\n height: 2.2em; }\n body.swal2-toast-column .swal2-container > .swal2-toast .swal2-loading {\n justify-content: center; }\n body.swal2-toast-column .swal2-container > .swal2-toast .swal2-input {\n height: 2em;\n margin: .3125em auto;\n font-size: 1em; }\n body.swal2-toast-column .swal2-container > .swal2-toast .swal2-validationerror {\n font-size: 1em; }\n body.swal2-toast-column .swal2-container.swal2-shown {\n background-color: transparent; }\n body.swal2-toast-column .swal2-container.swal2-top {\n top: 0;\n right: auto;\n bottom: auto;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%); }\n body.swal2-toast-column .swal2-container.swal2-top-end, body.swal2-toast-column .swal2-container.swal2-top-right {\n top: 0;\n right: 0;\n bottom: auto;\n left: auto; }\n body.swal2-toast-column .swal2-container.swal2-top-start, body.swal2-toast-column .swal2-container.swal2-top-left {\n top: 0;\n right: auto;\n bottom: auto;\n left: 0; }\n body.swal2-toast-column .swal2-container.swal2-center-start, body.swal2-toast-column .swal2-container.swal2-center-left {\n top: 50%;\n right: auto;\n bottom: auto;\n left: 0;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%); }\n body.swal2-toast-column .swal2-container.swal2-center {\n top: 50%;\n right: auto;\n bottom: auto;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%); }\n body.swal2-toast-column .swal2-container.swal2-center-end, body.swal2-toast-column .swal2-container.swal2-center-right {\n top: 50%;\n right: 0;\n bottom: auto;\n left: auto;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%); }\n body.swal2-toast-column .swal2-container.swal2-bottom-start, body.swal2-toast-column .swal2-container.swal2-bottom-left {\n top: auto;\n right: auto;\n bottom: 0;\n left: 0; }\n body.swal2-toast-column .swal2-container.swal2-bottom {\n top: auto;\n right: auto;\n bottom: 0;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%); }\n body.swal2-toast-column .swal2-container.swal2-bottom-end, body.swal2-toast-column .swal2-container.swal2-bottom-right {\n top: auto;\n right: 0;\n bottom: 0;\n left: auto; }\n\n.swal2-popup.swal2-toast {\n flex-direction: row;\n align-items: center;\n width: auto;\n padding: 0.625em;\n box-shadow: 0 0 0.625em #d9d9d9;\n overflow-y: hidden; }\n .swal2-popup.swal2-toast .swal2-header {\n flex-direction: row; }\n .swal2-popup.swal2-toast .swal2-title {\n flex-grow: 1;\n justify-content: flex-start;\n margin: 0 .6em;\n font-size: 1em; }\n .swal2-popup.swal2-toast .swal2-footer {\n margin: 0.5em 0 0;\n padding: 0.5em 0 0;\n font-size: 0.8em; }\n .swal2-popup.swal2-toast .swal2-close {\n position: initial;\n width: 0.8em;\n height: 0.8em;\n line-height: 0.8; }\n .swal2-popup.swal2-toast .swal2-content {\n justify-content: flex-start;\n font-size: 1em; }\n .swal2-popup.swal2-toast .swal2-icon {\n width: 2em;\n min-width: 2em;\n height: 2em;\n margin: 0; }\n .swal2-popup.swal2-toast .swal2-icon-text {\n font-size: 2em;\n font-weight: bold;\n line-height: 1em; }\n .swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring {\n width: 2em;\n height: 2em; }\n .swal2-popup.swal2-toast .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {\n top: .875em;\n width: 1.375em; }\n .swal2-popup.swal2-toast .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='left'] {\n left: .3125em; }\n .swal2-popup.swal2-toast .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='right'] {\n right: .3125em; }\n .swal2-popup.swal2-toast .swal2-actions {\n height: auto;\n margin: .3125em .3125em 0; }\n .swal2-popup.swal2-toast .swal2-styled {\n margin: 0 .3125em;\n padding: .3125em .625em;\n font-size: 1em; }\n .swal2-popup.swal2-toast .swal2-styled:focus {\n box-shadow: 0 0 0 0.0625em #fff, 0 0 0 0.125em rgba(50, 100, 150, 0.4); }\n .swal2-popup.swal2-toast .swal2-success {\n border-color: #a5dc86; }\n .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-circular-line'] {\n position: absolute;\n width: 2em;\n height: 2.8125em;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n border-radius: 50%; }\n .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-circular-line'][class$='left'] {\n top: -.25em;\n left: -.9375em;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n -webkit-transform-origin: 2em 2em;\n transform-origin: 2em 2em;\n border-radius: 4em 0 0 4em; }\n .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-circular-line'][class$='right'] {\n top: -.25em;\n left: .9375em;\n -webkit-transform-origin: 0 2em;\n transform-origin: 0 2em;\n border-radius: 0 4em 4em 0; }\n .swal2-popup.swal2-toast .swal2-success .swal2-success-ring {\n width: 2em;\n height: 2em; }\n .swal2-popup.swal2-toast .swal2-success .swal2-success-fix {\n top: 0;\n left: .4375em;\n width: .4375em;\n height: 2.6875em; }\n .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-line'] {\n height: .3125em; }\n .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-line'][class$='tip'] {\n top: 1.125em;\n left: .1875em;\n width: .75em; }\n .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-line'][class$='long'] {\n top: .9375em;\n right: .1875em;\n width: 1.375em; }\n .swal2-popup.swal2-toast.swal2-show {\n -webkit-animation: showSweetToast .5s;\n animation: showSweetToast .5s; }\n .swal2-popup.swal2-toast.swal2-hide {\n -webkit-animation: hideSweetToast .2s forwards;\n animation: hideSweetToast .2s forwards; }\n .swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip {\n -webkit-animation: animate-toast-success-tip .75s;\n animation: animate-toast-success-tip .75s; }\n .swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long {\n -webkit-animation: animate-toast-success-long .75s;\n animation: animate-toast-success-long .75s; }\n\n@-webkit-keyframes showSweetToast {\n 0% {\n -webkit-transform: translateY(-0.625em) rotateZ(2deg);\n transform: translateY(-0.625em) rotateZ(2deg);\n opacity: 0; }\n 33% {\n -webkit-transform: translateY(0) rotateZ(-2deg);\n transform: translateY(0) rotateZ(-2deg);\n opacity: .5; }\n 66% {\n -webkit-transform: translateY(0.3125em) rotateZ(2deg);\n transform: translateY(0.3125em) rotateZ(2deg);\n opacity: .7; }\n 100% {\n -webkit-transform: translateY(0) rotateZ(0);\n transform: translateY(0) rotateZ(0);\n opacity: 1; } }\n\n@keyframes showSweetToast {\n 0% {\n -webkit-transform: translateY(-0.625em) rotateZ(2deg);\n transform: translateY(-0.625em) rotateZ(2deg);\n opacity: 0; }\n 33% {\n -webkit-transform: translateY(0) rotateZ(-2deg);\n transform: translateY(0) rotateZ(-2deg);\n opacity: .5; }\n 66% {\n -webkit-transform: translateY(0.3125em) rotateZ(2deg);\n transform: translateY(0.3125em) rotateZ(2deg);\n opacity: .7; }\n 100% {\n -webkit-transform: translateY(0) rotateZ(0);\n transform: translateY(0) rotateZ(0);\n opacity: 1; } }\n\n@-webkit-keyframes hideSweetToast {\n 0% {\n opacity: 1; }\n 33% {\n opacity: .5; }\n 100% {\n -webkit-transform: rotateZ(1deg);\n transform: rotateZ(1deg);\n opacity: 0; } }\n\n@keyframes hideSweetToast {\n 0% {\n opacity: 1; }\n 33% {\n opacity: .5; }\n 100% {\n -webkit-transform: rotateZ(1deg);\n transform: rotateZ(1deg);\n opacity: 0; } }\n\n@-webkit-keyframes animate-toast-success-tip {\n 0% {\n top: .5625em;\n left: .0625em;\n width: 0; }\n 54% {\n top: .125em;\n left: .125em;\n width: 0; }\n 70% {\n top: .625em;\n left: -.25em;\n width: 1.625em; }\n 84% {\n top: 1.0625em;\n left: .75em;\n width: .5em; }\n 100% {\n top: 1.125em;\n left: .1875em;\n width: .75em; } }\n\n@keyframes animate-toast-success-tip {\n 0% {\n top: .5625em;\n left: .0625em;\n width: 0; }\n 54% {\n top: .125em;\n left: .125em;\n width: 0; }\n 70% {\n top: .625em;\n left: -.25em;\n width: 1.625em; }\n 84% {\n top: 1.0625em;\n left: .75em;\n width: .5em; }\n 100% {\n top: 1.125em;\n left: .1875em;\n width: .75em; } }\n\n@-webkit-keyframes animate-toast-success-long {\n 0% {\n top: 1.625em;\n right: 1.375em;\n width: 0; }\n 65% {\n top: 1.25em;\n right: .9375em;\n width: 0; }\n 84% {\n top: .9375em;\n right: 0;\n width: 1.125em; }\n 100% {\n top: .9375em;\n right: .1875em;\n width: 1.375em; } }\n\n@keyframes animate-toast-success-long {\n 0% {\n top: 1.625em;\n right: 1.375em;\n width: 0; }\n 65% {\n top: 1.25em;\n right: .9375em;\n width: 0; }\n 84% {\n top: .9375em;\n right: 0;\n width: 1.125em; }\n 100% {\n top: .9375em;\n right: .1875em;\n width: 1.375em; } }\n\nbody.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {\n overflow-y: hidden; }\n\nbody.swal2-height-auto {\n height: auto !important; }\n\nbody.swal2-no-backdrop .swal2-shown {\n top: auto;\n right: auto;\n bottom: auto;\n left: auto;\n background-color: transparent; }\n body.swal2-no-backdrop .swal2-shown > .swal2-modal {\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); }\n body.swal2-no-backdrop .swal2-shown.swal2-top {\n top: 0;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%); }\n body.swal2-no-backdrop .swal2-shown.swal2-top-start, body.swal2-no-backdrop .swal2-shown.swal2-top-left {\n top: 0;\n left: 0; }\n body.swal2-no-backdrop .swal2-shown.swal2-top-end, body.swal2-no-backdrop .swal2-shown.swal2-top-right {\n top: 0;\n right: 0; }\n body.swal2-no-backdrop .swal2-shown.swal2-center {\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%); }\n body.swal2-no-backdrop .swal2-shown.swal2-center-start, body.swal2-no-backdrop .swal2-shown.swal2-center-left {\n top: 50%;\n left: 0;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%); }\n body.swal2-no-backdrop .swal2-shown.swal2-center-end, body.swal2-no-backdrop .swal2-shown.swal2-center-right {\n top: 50%;\n right: 0;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%); }\n body.swal2-no-backdrop .swal2-shown.swal2-bottom {\n bottom: 0;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%); }\n body.swal2-no-backdrop .swal2-shown.swal2-bottom-start, body.swal2-no-backdrop .swal2-shown.swal2-bottom-left {\n bottom: 0;\n left: 0; }\n body.swal2-no-backdrop .swal2-shown.swal2-bottom-end, body.swal2-no-backdrop .swal2-shown.swal2-bottom-right {\n right: 0;\n bottom: 0; }\n\n.swal2-container {\n display: flex;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n padding: 10px;\n background-color: transparent;\n z-index: 1060;\n overflow-x: hidden;\n -webkit-overflow-scrolling: touch; }\n .swal2-container.swal2-top {\n align-items: flex-start; }\n .swal2-container.swal2-top-start, .swal2-container.swal2-top-left {\n align-items: flex-start;\n justify-content: flex-start; }\n .swal2-container.swal2-top-end, .swal2-container.swal2-top-right {\n align-items: flex-start;\n justify-content: flex-end; }\n .swal2-container.swal2-center {\n align-items: center; }\n .swal2-container.swal2-center-start, .swal2-container.swal2-center-left {\n align-items: center;\n justify-content: flex-start; }\n .swal2-container.swal2-center-end, .swal2-container.swal2-center-right {\n align-items: center;\n justify-content: flex-end; }\n .swal2-container.swal2-bottom {\n align-items: flex-end; }\n .swal2-container.swal2-bottom-start, .swal2-container.swal2-bottom-left {\n align-items: flex-end;\n justify-content: flex-start; }\n .swal2-container.swal2-bottom-end, .swal2-container.swal2-bottom-right {\n align-items: flex-end;\n justify-content: flex-end; }\n .swal2-container.swal2-grow-fullscreen > .swal2-modal {\n display: flex !important;\n flex: 1;\n align-self: stretch;\n justify-content: center; }\n .swal2-container.swal2-grow-row > .swal2-modal {\n display: flex !important;\n flex: 1;\n align-content: center;\n justify-content: center; }\n .swal2-container.swal2-grow-column {\n flex: 1;\n flex-direction: column; }\n .swal2-container.swal2-grow-column.swal2-top, .swal2-container.swal2-grow-column.swal2-center, .swal2-container.swal2-grow-column.swal2-bottom {\n align-items: center; }\n .swal2-container.swal2-grow-column.swal2-top-start, .swal2-container.swal2-grow-column.swal2-center-start, .swal2-container.swal2-grow-column.swal2-bottom-start, .swal2-container.swal2-grow-column.swal2-top-left, .swal2-container.swal2-grow-column.swal2-center-left, .swal2-container.swal2-grow-column.swal2-bottom-left {\n align-items: flex-start; }\n .swal2-container.swal2-grow-column.swal2-top-end, .swal2-container.swal2-grow-column.swal2-center-end, .swal2-container.swal2-grow-column.swal2-bottom-end, .swal2-container.swal2-grow-column.swal2-top-right, .swal2-container.swal2-grow-column.swal2-center-right, .swal2-container.swal2-grow-column.swal2-bottom-right {\n align-items: flex-end; }\n .swal2-container.swal2-grow-column > .swal2-modal {\n display: flex !important;\n flex: 1;\n align-content: center;\n justify-content: center; }\n .swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen) > .swal2-modal {\n margin: auto; }\n @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .swal2-container .swal2-modal {\n margin: 0 !important; } }\n .swal2-container.swal2-fade {\n transition: background-color .1s; }\n .swal2-container.swal2-shown {\n background-color: rgba(0, 0, 0, 0.4); }\n\n.swal2-popup {\n display: none;\n position: relative;\n flex-direction: column;\n justify-content: center;\n width: 32em;\n max-width: 100%;\n padding: 1.25em;\n border-radius: 0.3125em;\n background: #fff;\n font-family: inherit;\n font-size: 1rem;\n box-sizing: border-box; }\n .swal2-popup:focus {\n outline: none; }\n .swal2-popup.swal2-loading {\n overflow-y: hidden; }\n .swal2-popup .swal2-header {\n display: flex;\n flex-direction: column;\n align-items: center; }\n .swal2-popup .swal2-title {\n display: block;\n position: relative;\n max-width: 100%;\n margin: 0 0 0.4em;\n padding: 0;\n color: #595959;\n font-size: 1.875em;\n font-weight: 600;\n text-align: center;\n text-transform: none;\n word-wrap: break-word; }\n .swal2-popup .swal2-actions {\n align-items: center;\n justify-content: center;\n margin: 1.25em auto 0;\n z-index: 1; }\n .swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled[disabled] {\n opacity: .4; }\n .swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:hover {\n background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)); }\n .swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:active {\n background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)); }\n .swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-confirm {\n width: 2.5em;\n height: 2.5em;\n margin: .46875em;\n padding: 0;\n border: .25em solid transparent;\n border-radius: 100%;\n border-color: transparent;\n background-color: transparent !important;\n color: transparent;\n cursor: default;\n box-sizing: border-box;\n -webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;\n animation: swal2-rotate-loading 1.5s linear 0s infinite normal;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n .swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-cancel {\n margin-right: 30px;\n margin-left: 30px; }\n .swal2-popup .swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after {\n display: inline-block;\n width: 15px;\n height: 15px;\n margin-left: 5px;\n border: 3px solid #999999;\n border-radius: 50%;\n border-right-color: transparent;\n box-shadow: 1px 1px 1px #fff;\n content: '';\n -webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;\n animation: swal2-rotate-loading 1.5s linear 0s infinite normal; }\n .swal2-popup .swal2-styled {\n margin: 0 .3125em;\n padding: .625em 2em;\n font-weight: 500;\n box-shadow: none; }\n .swal2-popup .swal2-styled:not([disabled]) {\n cursor: pointer; }\n .swal2-popup .swal2-styled.swal2-confirm {\n border: 0;\n border-radius: 0.25em;\n background: initial;\n background-color: #3085d6;\n color: #fff;\n font-size: 1.0625em; }\n .swal2-popup .swal2-styled.swal2-cancel {\n border: 0;\n border-radius: 0.25em;\n background: initial;\n background-color: #aaa;\n color: #fff;\n font-size: 1.0625em; }\n .swal2-popup .swal2-styled:focus {\n outline: none;\n box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(50, 100, 150, 0.4); }\n .swal2-popup .swal2-styled::-moz-focus-inner {\n border: 0; }\n .swal2-popup .swal2-footer {\n justify-content: center;\n margin: 1.25em 0 0;\n padding: 1em 0 0;\n border-top: 1px solid #eee;\n color: #545454;\n font-size: 1em; }\n .swal2-popup .swal2-image {\n max-width: 100%;\n margin: 1.25em auto; }\n .swal2-popup .swal2-close {\n position: absolute;\n top: 0;\n right: 0;\n justify-content: center;\n width: 1.2em;\n height: 1.2em;\n padding: 0;\n transition: color 0.1s ease-out;\n border: none;\n border-radius: 0;\n background: transparent;\n color: #cccccc;\n font-family: serif;\n font-size: 2.5em;\n line-height: 1.2;\n cursor: pointer;\n overflow: hidden; }\n .swal2-popup .swal2-close:hover {\n -webkit-transform: none;\n transform: none;\n color: #f27474; }\n .swal2-popup > .swal2-input,\n .swal2-popup > .swal2-file,\n .swal2-popup > .swal2-textarea,\n .swal2-popup > .swal2-select,\n .swal2-popup > .swal2-radio,\n .swal2-popup > .swal2-checkbox {\n display: none; }\n .swal2-popup .swal2-content {\n justify-content: center;\n margin: 0;\n padding: 0;\n color: #545454;\n font-size: 1.125em;\n font-weight: 300;\n line-height: normal;\n z-index: 1;\n word-wrap: break-word; }\n .swal2-popup #swal2-content {\n text-align: center; }\n .swal2-popup .swal2-input,\n .swal2-popup .swal2-file,\n .swal2-popup .swal2-textarea,\n .swal2-popup .swal2-select,\n .swal2-popup .swal2-radio,\n .swal2-popup .swal2-checkbox {\n margin: 1em auto; }\n .swal2-popup .swal2-input,\n .swal2-popup .swal2-file,\n .swal2-popup .swal2-textarea {\n width: 100%;\n transition: border-color .3s, box-shadow .3s;\n border: 1px solid #d9d9d9;\n border-radius: 0.1875em;\n font-size: 1.125em;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);\n box-sizing: border-box; }\n .swal2-popup .swal2-input.swal2-inputerror,\n .swal2-popup .swal2-file.swal2-inputerror,\n .swal2-popup .swal2-textarea.swal2-inputerror {\n border-color: #f27474 !important;\n box-shadow: 0 0 2px #f27474 !important; }\n .swal2-popup .swal2-input:focus,\n .swal2-popup .swal2-file:focus,\n .swal2-popup .swal2-textarea:focus {\n border: 1px solid #b4dbed;\n outline: none;\n box-shadow: 0 0 3px #c4e6f5; }\n .swal2-popup .swal2-input::-webkit-input-placeholder,\n .swal2-popup .swal2-file::-webkit-input-placeholder,\n .swal2-popup .swal2-textarea::-webkit-input-placeholder {\n color: #cccccc; }\n .swal2-popup .swal2-input:-ms-input-placeholder,\n .swal2-popup .swal2-file:-ms-input-placeholder,\n .swal2-popup .swal2-textarea:-ms-input-placeholder {\n color: #cccccc; }\n .swal2-popup .swal2-input::-ms-input-placeholder,\n .swal2-popup .swal2-file::-ms-input-placeholder,\n .swal2-popup .swal2-textarea::-ms-input-placeholder {\n color: #cccccc; }\n .swal2-popup .swal2-input::placeholder,\n .swal2-popup .swal2-file::placeholder,\n .swal2-popup .swal2-textarea::placeholder {\n color: #cccccc; }\n .swal2-popup .swal2-range input {\n width: 80%; }\n .swal2-popup .swal2-range output {\n width: 20%;\n font-weight: 600;\n text-align: center; }\n .swal2-popup .swal2-range input,\n .swal2-popup .swal2-range output {\n height: 2.625em;\n margin: 1em auto;\n padding: 0;\n font-size: 1.125em;\n line-height: 2.625em; }\n .swal2-popup .swal2-input {\n height: 2.625em;\n padding: 0.75em; }\n .swal2-popup .swal2-input[type='number'] {\n max-width: 10em; }\n .swal2-popup .swal2-file {\n font-size: 1.125em; }\n .swal2-popup .swal2-textarea {\n height: 6.75em;\n padding: 0.75em; }\n .swal2-popup .swal2-select {\n min-width: 50%;\n max-width: 100%;\n padding: .375em .625em;\n color: #545454;\n font-size: 1.125em; }\n .swal2-popup .swal2-radio,\n .swal2-popup .swal2-checkbox {\n align-items: center;\n justify-content: center; }\n .swal2-popup .swal2-radio label,\n .swal2-popup .swal2-checkbox label {\n margin: 0 .6em;\n font-size: 1.125em; }\n .swal2-popup .swal2-radio input,\n .swal2-popup .swal2-checkbox input {\n margin: 0 .4em; }\n .swal2-popup .swal2-validationerror {\n display: none;\n align-items: center;\n justify-content: center;\n padding: 0.625em;\n background: #f0f0f0;\n color: #666666;\n font-size: 1em;\n font-weight: 300;\n overflow: hidden; }\n .swal2-popup .swal2-validationerror::before {\n display: inline-block;\n width: 1.5em;\n min-width: 1.5em;\n height: 1.5em;\n margin: 0 .625em;\n border-radius: 50%;\n background-color: #f27474;\n color: #fff;\n font-weight: 600;\n line-height: 1.5em;\n text-align: center;\n content: '!';\n zoom: normal; }\n\n@supports (-ms-accelerator: true) {\n .swal2-range input {\n width: 100% !important; }\n .swal2-range output {\n display: none; } }\n\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .swal2-range input {\n width: 100% !important; }\n .swal2-range output {\n display: none; } }\n\n@-moz-document url-prefix() {\n .swal2-close:focus {\n outline: 2px solid rgba(50, 100, 150, 0.4); } }\n\n.swal2-icon {\n position: relative;\n justify-content: center;\n width: 5em;\n height: 5em;\n margin: 1.25em auto 1.875em;\n border: .25em solid transparent;\n border-radius: 50%;\n line-height: 5em;\n cursor: default;\n box-sizing: content-box;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n zoom: normal; }\n .swal2-icon-text {\n font-size: 3.75em; }\n .swal2-icon.swal2-error {\n border-color: #f27474; }\n .swal2-icon.swal2-error .swal2-x-mark {\n position: relative;\n flex-grow: 1; }\n .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {\n display: block;\n position: absolute;\n top: 2.3125em;\n width: 2.9375em;\n height: .3125em;\n border-radius: .125em;\n background-color: #f27474; }\n .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='left'] {\n left: 1.0625em;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg); }\n .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='right'] {\n right: 1em;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n .swal2-icon.swal2-warning {\n border-color: #facea8;\n color: #f8bb86; }\n .swal2-icon.swal2-info {\n border-color: #9de0f6;\n color: #3fc3ee; }\n .swal2-icon.swal2-question {\n border-color: #c9dae1;\n color: #87adbd; }\n .swal2-icon.swal2-success {\n border-color: #a5dc86; }\n .swal2-icon.swal2-success [class^='swal2-success-circular-line'] {\n position: absolute;\n width: 3.75em;\n height: 7.5em;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n border-radius: 50%; }\n .swal2-icon.swal2-success [class^='swal2-success-circular-line'][class$='left'] {\n top: -.4375em;\n left: -2.0635em;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n -webkit-transform-origin: 3.75em 3.75em;\n transform-origin: 3.75em 3.75em;\n border-radius: 7.5em 0 0 7.5em; }\n .swal2-icon.swal2-success [class^='swal2-success-circular-line'][class$='right'] {\n top: -.6875em;\n left: 1.875em;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n -webkit-transform-origin: 0 3.75em;\n transform-origin: 0 3.75em;\n border-radius: 0 7.5em 7.5em 0; }\n .swal2-icon.swal2-success .swal2-success-ring {\n position: absolute;\n top: -.25em;\n left: -.25em;\n width: 100%;\n height: 100%;\n border: 0.25em solid rgba(165, 220, 134, 0.3);\n border-radius: 50%;\n z-index: 2;\n box-sizing: content-box; }\n .swal2-icon.swal2-success .swal2-success-fix {\n position: absolute;\n top: .5em;\n left: 1.625em;\n width: .4375em;\n height: 5.625em;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n z-index: 1; }\n .swal2-icon.swal2-success [class^='swal2-success-line'] {\n display: block;\n position: absolute;\n height: .3125em;\n border-radius: .125em;\n background-color: #a5dc86;\n z-index: 2; }\n .swal2-icon.swal2-success [class^='swal2-success-line'][class$='tip'] {\n top: 2.875em;\n left: .875em;\n width: 1.5625em;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg); }\n .swal2-icon.swal2-success [class^='swal2-success-line'][class$='long'] {\n top: 2.375em;\n right: .5em;\n width: 2.9375em;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n\n.swal2-progresssteps {\n align-items: center;\n margin: 0 0 1.25em;\n padding: 0;\n font-weight: 600; }\n .swal2-progresssteps li {\n display: inline-block;\n position: relative; }\n .swal2-progresssteps .swal2-progresscircle {\n width: 2em;\n height: 2em;\n border-radius: 2em;\n background: #3085d6;\n color: #fff;\n line-height: 2em;\n text-align: center;\n z-index: 20; }\n .swal2-progresssteps .swal2-progresscircle:first-child {\n margin-left: 0; }\n .swal2-progresssteps .swal2-progresscircle:last-child {\n margin-right: 0; }\n .swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep {\n background: #3085d6; }\n .swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep ~ .swal2-progresscircle {\n background: #add8e6; }\n .swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep ~ .swal2-progressline {\n background: #add8e6; }\n .swal2-progresssteps .swal2-progressline {\n width: 2.5em;\n height: .4em;\n margin: 0 -1px;\n background: #3085d6;\n z-index: 10; }\n\n[class^='swal2'] {\n -webkit-tap-highlight-color: transparent; }\n\n.swal2-show {\n -webkit-animation: swal2-show 0.3s;\n animation: swal2-show 0.3s; }\n .swal2-show.swal2-noanimation {\n -webkit-animation: none;\n animation: none; }\n\n.swal2-hide {\n -webkit-animation: swal2-hide 0.15s forwards;\n animation: swal2-hide 0.15s forwards; }\n .swal2-hide.swal2-noanimation {\n -webkit-animation: none;\n animation: none; }\n\n[dir='rtl'] .swal2-close {\n right: auto;\n left: 0; }\n\n.swal2-animate-success-icon .swal2-success-line-tip {\n -webkit-animation: swal2-animate-success-line-tip 0.75s;\n animation: swal2-animate-success-line-tip 0.75s; }\n\n.swal2-animate-success-icon .swal2-success-line-long {\n -webkit-animation: swal2-animate-success-line-long 0.75s;\n animation: swal2-animate-success-line-long 0.75s; }\n\n.swal2-animate-success-icon .swal2-success-circular-line-right {\n -webkit-animation: swal2-rotate-success-circular-line 4.25s ease-in;\n animation: swal2-rotate-success-circular-line 4.25s ease-in; }\n\n.swal2-animate-error-icon {\n -webkit-animation: swal2-animate-error-icon 0.5s;\n animation: swal2-animate-error-icon 0.5s; }\n .swal2-animate-error-icon .swal2-x-mark {\n -webkit-animation: swal2-animate-error-x-mark 0.5s;\n animation: swal2-animate-error-x-mark 0.5s; }\n\n@-webkit-keyframes swal2-rotate-loading {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes swal2-rotate-loading {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }")},function(e,t,n){"use strict";t.__esModule=!0;t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e};var r=t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};t.stripBasename=function(e,t){return r(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,a,i,l,s){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,i,l,s],p=0;(u=new Error(t.replace(/%s/g,function(){return c[p++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r,o=n(36);var a=((r=o)&&r.__esModule?r:{default:r}).default,i=a.canUseDOM?window.HTMLElement:{};t.canUseDOM=a.canUseDOM;t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n(17)),a=l(n(18)),i=n(5);function l(e){return e&&e.__esModule?e:{default:e}}t.createLocation=function(e,t,n,a){var l=void 0;"string"==typeof e?(l=(0,i.parsePath)(e)).state=t:(void 0===(l=r({},e)).pathname&&(l.pathname=""),l.search?"?"!==l.search.charAt(0)&&(l.search="?"+l.search):l.search="",l.hash?"#"!==l.hash.charAt(0)&&(l.hash="#"+l.hash):l.hash="",void 0!==t&&void 0===l.state&&(l.state=t));try{l.pathname=decodeURI(l.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+l.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(l.key=n),a?l.pathname?"/"!==l.pathname.charAt(0)&&(l.pathname=(0,o.default)(l.pathname,a.pathname)):l.pathname=a.pathname:l.pathname||(l.pathname="/"),l},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,a.default)(e.state,t.state)}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(1),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(){var e=null,t=[];return{setPrompt:function(t){return(0,a.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):((0,a.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,l=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in n=Object(arguments[s]))o.call(n,u)&&(l[u]=n[u]);if(r){i=r(n);for(var c=0;c<i.length;c++)a.call(n,i[c])&&(l[i[c]]=n[i[c]])}}return l}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(23)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(30),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(i)};var r=/input|select|textarea|button|object/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow"):"none"==n.getPropertyValue("display")}function a(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(o(t))return!1;t=t.parentNode}return!0}(e)}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&a(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t="length"in n?n[0]:n}return l=t||l},t.validateElement=u,t.hide=function(e){u(e)&&(e||l).setAttribute("aria-hidden","true")},t.show=function(e){u(e)&&(e||l).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){l=null},t.resetForTesting=function(){l=null};var r,o=n(1),a=(r=o)&&r.__esModule?r:{default:r},i=n(8);var l=null;function s(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){return!(!e&&!l)||((0,a.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],a=t&&t.split("/")||[],i=e&&r(e),l=t&&r(t),s=i||l;if(e&&r(e)?a=n:n.length&&(a.pop(),a=a.concat(n)),!a.length)return"/";var u=void 0;if(a.length){var c=a[a.length-1];u="."===c||".."===c||""===c}else u=!1;for(var p=0,d=a.length;d>=0;d--){var f=a[d];"."===f?o(a,d):".."===f?(o(a,d),p++):p&&(o(a,d),p--)}if(!s)for(;p--;p)a.unshift("..");!s||""===a[0]||a[0]&&r(a[0])||a.unshift("");var h=a.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var a=t.valueOf(),i=n.valueOf();if(a!==t||i!==n)return e(a,i);var l=Object.keys(t),s=Object.keys(n);return l.length===s.length&&l.every(function(r){return e(t[r],n[r])})}return!1}},function(e,t,n){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,n){e.exports=n(21)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n.n(r),a=n(13),i=n.n(a),l=function(e){var t=e.selected?e.selected:"",n=e.question.replace("(select option)",t.toUpperCase());return o.a.createElement("div",{className:"question-top"},n)},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e,t){return function(n){function r(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.state={data:{}},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,o.a.Component),u(r,[{key:"componentDidMount",value:function(){var e,n=this,r=(c(e={method:"GET",mode:"cors",cache:"default",credentials:"same-origin"},"mode","cors"),c(e,"headers",{"content-type":"application/json"}),e);fetch("/get/questions/"+t,r).then(function(e){return e.json()}).then(function(e){console.log(e),n.setState({data:e})})}},{key:"render",value:function(){return o.a.createElement(e,s({data:this.state.data},this.props))}}]),r}()},d=function(e){return o.a.createElement("select",{className:"form-control brand-select option-picker",value:e.selected,onChange:function(t){return e.changeOption(t)},disabled:e.disables},o.a.createElement("option",{value:""},"Select Option"),e.options.map(function(e){return o.a.createElement("option",{value:e.name,key:e.id},e.name)}))},f=n(4),h=n.n(f);function m(e,t){var n=parseInt(t)+1;e[n]||(n=0);var r="/question/"+e[n].path+"/"+n;window.location.href=r}var g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var b=p(function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={synopsis:"",question:"",questions:[],brands:[],selected:"",disables:!1},n.handleChange=n.handleChange.bind(n),n.saveSynopsis=n.saveSynopsis.bind(n),n.questionSelect=n.questionSelect.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),g(t,[{key:"goToNext",value:function(e){e.preventDefault();var t=parseInt(this.props.match.params.next)+1;this.state.questions[t]||(t=0);var n="/question/"+this.state.questions[t].path+"/"+t;window.location.href=n}},{key:"handleChange",value:function(e){if(this.state.selected){var t=e.target.value;this.setState({synopsis:t})}else h()("select option")}},{key:"saveSynopsis",value:function(e){var t=this,n={synopsis:this.state.synopsis,brand:this.state.selected},r={body:JSON.stringify(n),cache:"no-cache",credentials:"same-origin",headers:{"content-type":"application/json"},mode:"cors",method:"POST"};fetch("/questions/scripting",r).then(function(e){return e.json()}).then(function(e){t.state.disables||t.setState({disables:!0})})}},{key:"questionSelect",value:function(e){var t=e.target.value;this.setState({selected:t})}},{key:"render",value:function(){var e=this,t=this.state,n=t.selected,r=t.question,a=t.brands,i=t.synopsis,s=t.questions;return o.a.createElement("div",null,o.a.createElement(d,{selected:n,changeOption:this.questionSelect,options:a,disables:this.state.disables}),o.a.createElement(l,{question:r,selected:n}),o.a.createElement("div",{className:"story"},o.a.createElement("textarea",{className:"form-control",cols:"10",rows:"10",value:i,onChange:this.handleChange.bind(this)}),o.a.createElement("button",{className:"btn btn-xl",onClick:this.saveSynopsis.bind(this)},"Save"),o.a.createElement("button",{className:"btn btn-xl pull-right",onClick:function(t){return m(s,e.props.match.params.next)}},"Next")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=n.answers,o=n.question,a=n.questions,i=n.brands,l={};return console.log(r),r&&!t.synopsis?(l.question=o,l.questions=a,l.brands=i,r.length&&(l.synopsis=r[0].synopsis,l.selected=r[0].brand,l.disables=!0),l):null}}]),t}(),"scripting"),v=n(14),y=n.n(v),_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var w=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),_(t,[{key:"render",value:function(){var e=this;return o.a.createElement("tr",null,o.a.createElement("td",null,this.props.day.date),o.a.createElement("td",null,o.a.createElement("img",{src:this.props.day.image,className:"img-responsive row-image"})),o.a.createElement("td",null,this.props.day.facebook),o.a.createElement("td",null,this.props.day.instagram),o.a.createElement("td",null,this.props.day.twitter),o.a.createElement("td",null,o.a.createElement("button",{className:"btn btn-warning",onClick:function(t){return e.props.edit(e.props.index)}},"Edit")),o.a.createElement("td",null,o.a.createElement("button",{className:"btn btn-danger",onClick:function(t){return e.props.deleteDay(e.props.index,t)}},"Delete")))}}]),t}(),x=function(e){return y.a.setAppElement("#root"),o.a.createElement(y.a,{isOpen:e.modalIsOpen,style:{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},contentLabel:"Modal"},o.a.createElement("button",{onClick:e.closeModal,style:{backgroundColor:"#222",color:"#fff",float:"right",cursor:"pointer"}},"X"),e.children)},k=n(39),C=n.n(k),S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var T=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.a.Component),S(t,[{key:"componentDidMount",value:function(){var e=this.props.onChange;C.a.Widget("#images").onChange(function(t){t?t.done(function(t){return e(t.cdnUrl)}).fail(function(){return e(null)}):e(null)})}},{key:"render",value:function(){return o.a.createElement("input",{type:"hidden",role:"uploadcare-uploader",name:"content","data-public-key":"44edbbbe3b99c70db0c7","data-images-only":!0,id:"images"})}}]),t}(),E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var O=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state=e.defaults,n.handleChange=n.handleChange.bind(n),n.handleImageChange=n.handleImageChange.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.a.Component),E(t,[{key:"handleImageChange",value:function(e){this.setState({image:e})}},{key:"handleChange",value:function(e){var t=e.target.name,n=e.target.value;this.setState(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n))}},{key:"handleDateChange",value:function(e){}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.setState({},function(){this.props.subMit(JSON.parse(JSON.stringify(this.state)))})}},{key:"render",value:function(){var e=this;return o.a.createElement("div",null,o.a.createElement("form",{onSubmit:this.handleFormSubmit.bind(this),className:"form-group"},o.a.createElement("div",{className:"form-group"},o.a.createElement("span",{className:"label"},"Date"),o.a.createElement("input",{className:"input-group date",id:"images","data-provide":"datepicker",type:"date",name:"date",onChange:function(t){return e.handleChange(t)}})),o.a.createElement("div",{className:"form-group"},o.a.createElement(T,{onChange:function(t){return e.handleImageChange(t)}})),o.a.createElement("div",{className:"form-group"},o.a.createElement("span",{className:"label"},"Facebook Content"),o.a.createElement("textarea",{className:"form-control",rows:"3",name:"facebook",value:this.state.facebook,onChange:this.handleChange,required:!0})),o.a.createElement("div",{className:"form-group"},o.a.createElement("span",{className:"label"},"Instagram Content"),o.a.createElement("textarea",{className:"form-control",rows:"3",name:"instagram",value:this.state.instagram,onChange:this.handleChange,required:!0})),o.a.createElement("div",{className:"form-group"},o.a.createElement("span",{className:"label"},"Twitter Content"),o.a.createElement("textarea",{className:"form-control",rows:"3",name:"twitter",value:this.state.twitter,onChange:this.handleChange,required:!0})),o.a.createElement("button",{className:"btn btn-primary"},"Submit")))}}]),t}(),j=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var P=p(function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={brands:[],selected:"",days:[],showModal:!1,getDays:function(){return JSON.parse(JSON.stringify(this.days))},getPostData:function(){return JSON.stringify({days:this.days,brand:this.selected})},daysDefaults:{},current:{},disables:!1,edit:!1,question:"",questions:[],save:!0},n.openModal=n.openModal.bind(n),n.closeModal=n.closeModal.bind(n),n.handleCurrent=n.handleCurrent.bind(n),n.questionSelect=n.questionSelect.bind(n),n.deleteDay=n.deleteDay.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),j(t,[{key:"openModal",value:function(){this.state.selected?this.setState({showModal:!0}):h()("Select option")}},{key:"closeModal",value:function(){this.setState({showModal:!1,daysDefaults:{}})}},{key:"questionSelect",value:function(e){var t=e.target.value;this.setState({selected:t})}},{key:"deleteDay",value:function(e,t){var n=this;t.preventDefault();var r=this.state.getDays(),o="/questions/calendar/"+r[e].id;console.log(o),fetch(o,{cache:"no-cache",credentials:"same-origin",headers:{"content-type":"application/json"},mode:"cors",method:"DELETE"}).then(function(e){return e.json()}).then(function(t){console.log("deleted",t),r.splice(e,1),n.setState({days:r})})}},{key:"submit",value:function(){var e=this,t=this.state.getPostData(),n=this.props.match.params.csrf;fetch("/questions/calendar",{body:t,cache:"no-cache",credentials:"same-origin",headers:{"content-type":"application/json","X-CSRF-TOKEN":n},mode:"cors",method:"POST"}).then(function(e){return e.json()}).then(function(t){e.setState({disables:!0,days:t,save:!0}),h()("Day saved successfully")})}},{key:"handleCurrent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this;if(null!==e){var n=JSON.parse(JSON.stringify(this.state.days))[e];n.index=e,this.setState({current:n,edit:!0},function(){t.openModal()})}else this.setState({current:{}},function(){t.openModal()})}},{key:"handleDaySubmit",value:function(e){var t=this;e.brand=this.state.selected;var n=JSON.stringify(e),r=JSON.parse(JSON.stringify(this.state.days)),o={body:n,cache:"no-cache",credentials:"same-origin",headers:{"content-type":"application/json","X-CSRF-TOKEN":csrf},mode:"cors",method:"POST"};fetch("/questions/calendar",o).then(function(e){return e.json()}).then(function(e){t.state.edit?r.splice(t.state.current.index,1,e):r=r.concat(e),t.setState({days:r,disables:!0},function(){})}),this.closeModal()}},{key:"render",value:function(){var e=this;this.state.selected;return o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"top"},o.a.createElement(d,{selected:this.state.selected,changeOption:this.questionSelect,options:this.state.brands,disables:this.state.disables}),o.a.createElement(l,{question:this.state.question,selected:this.state.selected})),o.a.createElement(x,{modalIsOpen:this.state.showModal,closeModal:this.closeModal},o.a.createElement(O,{subMit:this.handleDaySubmit.bind(this),defaults:this.state.current})),o.a.createElement("button",{className:"btn btn-primary new-day",onClick:function(t){return e.handleCurrent()}},"Add new day"),o.a.createElement("button",{className:"btn btn-primary new-day",style:{float:"right"},onClick:function(t){return m(e.state.questions,e.props.match.params.next)}},"Next"),o.a.createElement("div",{className:"answer"},o.a.createElement("table",{id:"example",className:"table table-striped table-bordered"},o.a.createElement("thead",null,o.a.createElement("tr",null,o.a.createElement("th",null,"Date"),o.a.createElement("th",null,"Images"),o.a.createElement("th",null,"Facebook"),o.a.createElement("th",null,"Instagram"),o.a.createElement("th",null,"Twitter"),o.a.createElement("th",{colSpan:"2"},"Actions"))),o.a.createElement("tbody",null,this.state.days.map(function(t,n){return o.a.createElement(w,{key:n,index:n,edit:e.handleCurrent,deleteDay:e.deleteDay,day:t})})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=n.answers,o=n.brands,a=n.question,i=n.questions,l={};return o&&!t.brands.length?(l.brands=o,l.question=a,l.questions=i,r.length&&(l.days=r,l.selected=r[0].brand,l.disables=!0),l):null}}]),t}(),"calendar"),z=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var A=p(function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={story:"",question:"",questions:[],next:"",limit:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),z(t,[{key:"goToNext",value:function(e){e.preventDefault();var t=parseInt(this.props.match.params.next)+1;this.state.questions[t]||(t=0);var n="/question/"+this.state.questions[t].path+"/"+t;window.location.href=n}},{key:"handleChange",value:function(e){var t=e.target.value;t.split(" ").length>=250||this.setState({story:t})}},{key:"saveStory",value:function(e){var t=this,n={story:this.state.story},r={body:JSON.stringify(n),cache:"no-cache",credentials:"same-origin",headers:{"content-type":"application/json"},mode:"cors",method:"POST"};fetch("/questions/storytelling",r).then(function(e){return e.json()}).then(function(e){t.setState({story:e.experience,disables:!0},function(){h()("Saved Successfully")})})}},{key:"render",value:function(){var e=this,t=this.state.questions;return o.a.createElement("div",null,o.a.createElement(l,{question:this.state.question}),o.a.createElement("div",{className:"story"},o.a.createElement("textarea",{className:"form-control",cols:"10",rows:"10",value:this.state.story,onChange:this.handleChange.bind(this)}),o.a.createElement("button",{className:"btn btn-xl",onClick:this.saveStory.bind(this)},"Save"),o.a.createElement("button",{className:"btn btn-xl pull-right",onClick:function(n){return m(t,e.props.match.params.next)}},"Next")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=n.answers,o=n.question,a=n.questions,i={};return console.log(r),r&&!t.story?(i.question=o,i.questions=a,r.length&&(i.story=r[0].experience),i):null}}]),t}(),"storytelling"),F=function(e){return o.a.createElement("div",{className:"card card-catchy"},o.a.createElement("div",{className:"card-body"},o.a.createElement("p",{className:"card-text"},e.default),o.a.createElement("button",{className:"btn btn-primary",onClick:function(t){return e.showEdit(e.index,t)},disabled:null===e.edits?"":"true"},"Edit"),o.a.createElement("button",{className:"btn btn-danger",onClick:function(t){return e.deleteLine(e.index,t)},disabled:null===e.edits?"":"true"},"Delete")))},N=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var D=p(function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={lines:[],current:{},brands:[],selected:"",question:"",disables:!1,edit:null},n.questionSelect=n.questionSelect.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),N(t,[{key:"questionSelect",value:function(e){var t=e.target.value;this.setState({selected:t})}},{key:"handleChange",value:function(e){}},{key:"handleCurrent",value:function(e){var t=e.target.value,n=JSON.parse(JSON.stringify(this.state.current));n.copy=t,this.setState({current:n})}},{key:"submitCurrent",value:function(e){var t=this;if(e.preventDefault(),this.state.selected){var n=JSON.parse(JSON.stringify(this.state.lines)),r=JSON.parse(JSON.stringify(this.state.current));r.brand=this.state.selected;var o={body:JSON.stringify(r),cache:"no-cache",credentials:"same-origin",headers:{"content-type":"application/json"},mode:"cors",method:"POST"};fetch("/questions/print-ad-copy",o).then(function(e){return e.json()}).then(function(e){console.log(e),e.error?h()("Error"):(null!==t.state.edit?n.splice(t.state.edit,0,e):n.push(e),r.copy="",t.setState({lines:n,current:r,edit:null,disables:!0},function(){console.log(t.state.current.copy)}))})}else h()("Select option")}},{key:"showEdit",value:function(e,t){t.preventDefault();var n=JSON.parse(JSON.stringify(this.state.lines)),r=n.splice(e,1);this.setState({current:r[0],edit:e,lines:n})}},{key:"deleteLine",value:function(e,t){var n=this;t.preventDefault();var r=JSON.parse(JSON.stringify(this.state.lines)),o="/questions/print-ad-copy/"+r[e].id;console.log(o),fetch(o,{cache:"no-cache",credentials:"same-origin",headers:{"content-type":"application/json"},mode:"cors",method:"DELETE"}).then(function(e){return e.json()}).then(function(t){console.log(t),r.splice(e,1),n.setState({lines:r})})}},{key:"render",value:function(){var e,t,n,r=this,a=this.state,i=a.selected,s=a.brands,u=(a.questions,a.question),c=a.disables,p=a.current.copy;return console.log(this.state.current),o.a.createElement("div",{className:"container prints"},o.a.createElement(d,{selected:i,changeOption:this.questionSelect,options:s,disables:c}),o.a.createElement(l,{question:u,selected:i}),o.a.createElement("div",{className:"catchy-lines"},this.state.lines.map(function(e,t){return o.a.createElement(F,{key:t,handleChange:r.handleChange.bind(r),default:e.copy,index:t,showEdit:r.showEdit.bind(r),deleteLine:r.deleteLine.bind(r),edits:r.state.edit})})),o.a.createElement("form",{className:"form-group"},o.a.createElement("div",(e={className:"input-group"},t="className",n=this.state.lines.length>=5?"no-show":"show",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e),o.a.createElement("textarea",{type:"text",rows:"5",className:"form-control",value:p,onChange:this.handleCurrent.bind(this)}),o.a.createElement("button",{className:"btn btn-primary",onClick:this.submitCurrent.bind(this)},"Submit"),o.a.createElement("button",{className:"btn btn-primary",onClick:this.submitCurrent.bind(this)},"Cancel"))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=n.answers,o=n.question,a=n.brands,i=n.questions,l={};return r&&!t.lines.length?(l.question=o,l.brands=a,l.questions=i,r.length&&(l.lines=r,l.selected=r[0].brand,l.disables=!0),l):null}}]),t}(),"print-ad-copy"),M=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var R=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state=e.defaults,n.handleChange=n.handleChange.bind(n),n.handleImageChange=n.handleImageChange.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.a.Component),M(t,[{key:"handleImageChange",value:function(e){var t=this;this.setState({image:e},function(){console.log(t.state.image)})}},{key:"handleChange",value:function(e){var t=e.target.name,n=e.target.value;this.setState(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n))}},{key:"handleDateChange",value:function(e){}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.setState({},function(){this.props.subMit(JSON.parse(JSON.stringify(this.state)))})}},{key:"render",value:function(){var e=this;return console.log(this.props),o.a.createElement("div",null,o.a.createElement("form",{onSubmit:this.handleFormSubmit.bind(this),className:"form-group"},o.a.createElement("div",{className:"form-group"},o.a.createElement(T,{onChange:function(t){return e.handleImageChange(t)}})),o.a.createElement("div",{className:"form-group"},o.a.createElement("span",{className:"label"},"Caption"),o.a.createElement("textarea",{className:"form-control",rows:"3",name:"caption",value:this.state.caption,onChange:this.handleChange,required:!0})),o.a.createElement("button",{className:"btn btn-primary"},"Submit")))}}]),t}(),L=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var I=p(function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={memes:[],question:"",brands:[],questions:[],selected:"",disables:!1,save:!1,showModal:!1,current:{}},n.questionSelect=n.questionSelect.bind(n),n.removeMeme=n.removeMeme.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),L(t,[{key:"openModal",value:function(e){if(e.preventDefault(),this.state.memes.length>=5)h()("You can't add more than 5 items");else{if(!this.state.selected)return void h()("Select Option");this.setState({showModal:!0})}}},{key:"closeModal",value:function(){this.setState({showModal:!1,daysDefaults:{},edit:!1})}},{key:"removeMeme",value:function(e){var t=this;console.log(e),console.log(this.state.memes[e]);var n={body:{},cache:"no-cache",credentials:"same-origin",headers:{"content-type":"application/json","X-CSRF-TOKEN":csrf},mode:"cors",method:"DELETE"},r="/questions/memes/"+this.state.memes[e].id;fetch(r,n).then(function(e){return e.json()}).then(function(n){console.log(n);var r=JSON.parse(JSON.stringify(t.state.memes));r.splice(e,1),t.setState({memes:r})})}},{key:"questionSelect",value:function(e){var t=e.target.value;this.setState({selected:t})}},{key:"handleMemeSubmit",value:function(e){var t=this,n=JSON.parse(JSON.stringify(this.state.memes));if(this.state.edit)n.splice(this.state.current.index,1,e),this.setState({memes:n,save:!1});else{e.id=0,e.brand=this.state.selected;var r=JSON.stringify(e);fetch("/questions/memes",{body:r,cache:"no-cache",credentials:"same-origin",headers:{"content-type":"application/json"},mode:"cors",method:"POST"}).then(function(e){return e.json()}).then(function(e){console.log(e),t.setState({memes:n.concat(e),save:!1,disables:!0})})}this.closeModal()}},{key:"render",value:function(){var e=this,t=this.state,n=t.selected,r=(t.brands,t.questions);return o.a.createElement("div",null,o.a.createElement(d,{selected:this.state.selected,changeOption:this.questionSelect,options:this.state.brands,disables:this.state.disables}),o.a.createElement(l,{question:this.state.question,selected:n}),o.a.createElement(x,{modalIsOpen:this.state.showModal,closeModal:this.closeModal.bind(this)},o.a.createElement(R,{subMit:this.handleMemeSubmit.bind(this),defaults:this.state.current})),o.a.createElement("div",{className:"story"},o.a.createElement("div",{className:"upload-wrapper"},this.state.memes.map(function(t,n){return o.a.createElement("div",{className:"upload",key:t.caption},o.a.createElement("img",{className:"meme-image",src:t.meme,alt:t.caption}),o.a.createElement("p",{className:"meme-caption"},t.caption),o.a.createElement("button",{onClick:function(t){return e.removeMeme(n)},className:"btn btn-danger"},"Remove"))}),o.a.createElement("div",{className:"upload last-upload"},o.a.createElement("a",{href:"#",onClick:this.openModal.bind(this),className:"inner-upload"},o.a.createElement("div",{className:"add-upload"},"+")))),o.a.createElement("button",{className:"btn btn-xl pull-right",onClick:function(t){return m(r,e.props.match.params.next)}},"Next")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=n.answers,o=n.question,a=n.brands,i=n.questions,l={};return r&&!t.memes.length?(l.question=o,l.brands=a,l.questions=i,r.length&&(l.memes=r,l.selected=r[0].brand,l.disables=!0),l):null}}]),t}(),"memes"),q=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var U=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),q(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"button-wrapper"},o.a.createElement("button",{"data-id":this.props.question.id,"data-name":this.props.question.name,onClick:this.props.selectQuestion,className:this.props.selected?"btn-without selected-button":"btn-without"},this.props.question.name))}}]),t}(),B=n(1),V=n.n(B),H=n(2),W=n.n(H),K=n(41),G=n.n(K),$=n(3),Y=n.n($),J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Q(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var X=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=Q(this,e.call.apply(e,[this].concat(a))),r.state={match:r.computeMatch(r.props.history.location.pathname)},Q(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:J({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;Y()(null==n||1===o.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){V()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?o.a.Children.only(e):null},t}(o.a.Component);X.propTypes={history:W.a.object.isRequired,children:W.a.node},X.contextTypes={router:W.a.object},X.childContextTypes={router:W.a.object.isRequired};var Z=X,ee=Z;function te(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ne=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=te(this,e.call.apply(e,[this].concat(a))),r.history=G()(r.props),te(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){V()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(ee,{history:this.history,children:this.props.children})},t}(o.a.Component);ne.propTypes={basename:W.a.string,forceRefresh:W.a.bool,getUserConfirmation:W.a.func,keyLength:W.a.number,children:W.a.node};var re=ne,oe=n(42),ae=n.n(oe);function ie(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var le=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ie(this,e.call.apply(e,[this].concat(a))),r.history=ae()(r.props),ie(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){V()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(ee,{history:this.history,children:this.props.children})},t}(o.a.Component);le.propTypes={basename:W.a.string,getUserConfirmation:W.a.func,hashType:W.a.oneOf(["hashbang","noslash","slash"]),children:W.a.node};var se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ue(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ce=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},pe=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ue(this,e.call.apply(e,[this].concat(a))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!ce(e)){e.preventDefault();var t=r.context.router.history,n=r.props,o=n.replace,a=n.to;o?t.replace(a):t.push(a)}},ue(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);Y()(this.context.router,"You should not use <Link> outside a <Router>");var a=this.context.router.history.createHref("string"==typeof t?{pathname:t}:t);return o.a.createElement("a",se({},r,{onClick:this.handleClick,href:a,ref:n}))},t}(o.a.Component);pe.propTypes={onClick:W.a.func,target:W.a.string,replace:W.a.bool,to:W.a.oneOfType([W.a.string,W.a.object]).isRequired,innerRef:W.a.oneOfType([W.a.string,W.a.func])},pe.defaultProps={replace:!1},pe.contextTypes={router:W.a.shape({history:W.a.shape({push:W.a.func.isRequired,replace:W.a.func.isRequired,createHref:W.a.func.isRequired}).isRequired}).isRequired};var de=pe,fe=n(43),he=n.n(fe);function me(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ge=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=me(this,e.call.apply(e,[this].concat(a))),r.history=he()(r.props),me(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){V()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(Z,{history:this.history,children:this.props.children})},t}(o.a.Component);ge.propTypes={initialEntries:W.a.array,initialIndex:W.a.number,getUserConfirmation:W.a.func,keyLength:W.a.number,children:W.a.node};var be=n(44),ve=n.n(be),ye={},_e=0,we=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&(t={path:t});var n=t,r=n.path,o=void 0===r?"/":r,a=n.exact,i=void 0!==a&&a,l=n.strict,s=void 0!==l&&l,u=n.sensitive,c=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=ye[n]||(ye[n]={});if(r[e])return r[e];var o=[],a={re:ve()(e,o,t),keys:o};return _e<1e4&&(r[e]=a,_e++),a}(o,{end:i,strict:s,sensitive:void 0!==u&&u}),p=c.re,d=c.keys,f=p.exec(e);if(!f)return null;var h=f[0],m=f.slice(1),g=e===h;return i&&!g?null:{path:o,url:"/"===o&&""===h?"/":h,isExact:g,params:d.reduce(function(e,t,n){return e[t.name]=m[n],e},{})}},xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ke(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Ce=function(e){return 0===o.a.Children.count(e)},Se=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ke(this,e.call.apply(e,[this].concat(a))),r.state={match:r.computeMatch(r.props,r.context.router)},ke(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:xe({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,o=e.path,a=e.strict,i=e.exact,l=e.sensitive;if(n)return n;Y()(t,"You should not use <Route> or withRouter() outside a <Router>");var s=t.route,u=(r||s.location).pathname;return o?we(u,{path:o,strict:a,exact:i,sensitive:l}):s.match},t.prototype.componentWillMount=function(){V()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),V()(!(this.props.component&&this.props.children&&!Ce(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),V()(!(this.props.render&&this.props.children&&!Ce(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){V()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),V()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,a=t.render,i=this.context.router,l=i.history,s=i.route,u=i.staticContext,c={match:e,location:this.props.location||s.location,history:l,staticContext:u};return r?e?o.a.createElement(r,c):null:a?e?a(c):null:n?"function"==typeof n?n(c):Ce(n)?null:o.a.Children.only(n):null},t}(o.a.Component);Se.propTypes={computedMatch:W.a.object,path:W.a.string,exact:W.a.bool,strict:W.a.bool,sensitive:W.a.bool,component:W.a.func,render:W.a.func,children:W.a.oneOfType([W.a.func,W.a.node]),location:W.a.object},Se.contextTypes={router:W.a.shape({history:W.a.object.isRequired,route:W.a.object.isRequired,staticContext:W.a.object})},Se.childContextTypes={router:W.a.object.isRequired};var Te=Se,Ee=Te,Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var Pe=function(e){var t=e.to,n=e.exact,r=e.strict,a=e.location,i=e.activeClassName,l=e.className,s=e.activeStyle,u=e.style,c=e.isActive,p=e.ariaCurrent,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","ariaCurrent"]);return o.a.createElement(Ee,{path:"object"===(void 0===t?"undefined":je(t))?t.pathname:t,exact:n,strict:r,location:a,children:function(e){var n=e.location,r=e.match,a=!!(c?c(r,n):r);return o.a.createElement(de,Oe({to:t,className:a?[l,i].filter(function(e){return e}).join(" "):l,style:a?Oe({},u,s):u,"aria-current":a&&p},d))}})};Pe.propTypes={to:de.propTypes.to,exact:W.a.bool,strict:W.a.bool,location:W.a.object,activeClassName:W.a.string,className:W.a.string,activeStyle:W.a.object,style:W.a.object,isActive:W.a.func,ariaCurrent:W.a.oneOf(["page","step","location","true"])},Pe.defaultProps={activeClassName:"active",ariaCurrent:"true"};var ze=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){Y()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(o.a.Component);ze.propTypes={when:W.a.bool,message:W.a.oneOfType([W.a.func,W.a.string]).isRequired},ze.defaultProps={when:!0},ze.contextTypes={router:W.a.shape({history:W.a.shape({block:W.a.func.isRequired}).isRequired}).isRequired};var Ae=n(17),Fe=n(18),Ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},De=function(e,t,n,r){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Ne({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=Object(Ae.default)(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o},Me=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(Fe.default)(e.state,t.state)};"undefined"==typeof window||!window.document||window.document.createElement,"function"==typeof Symbol&&Symbol.iterator,Object.assign,Object.assign,"function"==typeof Symbol&&Symbol.iterator,Object.assign;var Re=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){Y()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=De(e.to),n=De(this.props.to);Me(t,n)?V()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.perform=function(){var e=this.context.router.history,t=this.props,n=t.push,r=t.to;n?e.push(r):e.replace(r)},t.prototype.render=function(){return null},t}(o.a.Component);Re.propTypes={push:W.a.bool,from:W.a.string,to:W.a.oneOfType([W.a.string,W.a.object]).isRequired},Re.defaultProps={push:!1},Re.contextTypes={router:W.a.shape({history:W.a.shape({push:W.a.func.isRequired,replace:W.a.func.isRequired}).isRequired,staticContext:W.a.object}).isRequired};var Le=Re,Ie=n(5),qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Ue(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Be=function(e,t){return e?qe({},t,{pathname:Object(Ie.addLeadingSlash)(e)+t.pathname}):t},Ve=function(e){return"string"==typeof e?Object(Ie.parsePath)(e):(n=(t=e).pathname,r=void 0===n?"/":n,o=t.search,a=void 0===o?"":o,i=t.hash,l=void 0===i?"":i,{pathname:r,search:"?"===a?"":a,hash:"#"===l?"":l});var t,n,r,o,a,i,l},He=function(e){return"string"==typeof e?e:Object(Ie.createPath)(e)},We=function(e){return function(){Y()(!1,"You cannot %s with <StaticRouter>",e)}},Ke=function(){},Ge=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=Ue(this,e.call.apply(e,[this].concat(a))),r.createHref=function(e){return Object(Ie.addLeadingSlash)(r.props.basename+He(e))},r.handlePush=function(e){var t=r.props,n=t.basename,o=t.context;o.action="PUSH",o.location=Be(n,Ve(e)),o.url=He(o.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,o=t.context;o.action="REPLACE",o.location=Be(n,Ve(e)),o.url=He(o.location)},r.handleListen=function(){return Ke},r.handleBlock=function(){return Ke},Ue(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){V()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),a={createHref:this.createHref,action:"POP",location:function(e,t){if(!e)return t;var n=Object(Ie.addLeadingSlash)(e);return 0!==t.pathname.indexOf(n)?t:qe({},t,{pathname:t.pathname.substr(n.length)})}(t,Ve(n)),push:this.handlePush,replace:this.handleReplace,go:We("go"),goBack:We("goBack"),goForward:We("goForward"),listen:this.handleListen,block:this.handleBlock};return o.a.createElement(Z,qe({},r,{history:a}))},t}(o.a.Component);Ge.propTypes={basename:W.a.string,context:W.a.object.isRequired,location:W.a.oneOfType([W.a.string,W.a.object])},Ge.defaultProps={basename:"",location:"/"},Ge.childContextTypes={router:W.a.object.isRequired};var $e=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){Y()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){V()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),V()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,a=void 0;return o.a.Children.forEach(t,function(t){if(o.a.isValidElement(t)){var i=t.props,l=i.path,s=i.exact,u=i.strict,c=i.sensitive,p=i.from,d=l||p;null==r&&(a=t,r=d?we(n.pathname,{path:d,exact:s,strict:u,sensitive:c}):e.match)}}),r?o.a.cloneElement(a,{location:n,computedMatch:r}):null},t}(o.a.Component);$e.contextTypes={router:W.a.shape({route:W.a.object.isRequired}).isRequired},$e.propTypes={children:W.a.node,location:W.a.object};n(46),Object.assign;var Ye=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qe=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={questions:[],selected:{}},e.selectQuestion=e.selectQuestion.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),Ye(t,[{key:"componentDidMount",value:function(){var e,t=this,n=(Je(e={method:"GET",mode:"cors",cache:"default",credentials:"same-origin"},"mode","cors"),Je(e,"headers",{"content-type":"application/json","X-Requested-With":"XMLHttpRequest"}),e);fetch("/questions",n).then(function(e){return e.json()}).then(function(e){t.setState({questions:e},function(){return console.log(t.state)})})}},{key:"selectQuestion",value:function(e){e.preventDefault();var t=e.currentTarget,n=JSON.parse(JSON.stringify(this.state.selected));-1===t.className.indexOf("selected-button")?Object.keys(n).length>=3?h()("Can't select more than 3 questions"):(t.className="btn-without selected-button",n[t.dataset.id]=t.dataset.name,this.setState({selected:n})):(delete n[t.dataset.id],this.setState({selected:n}),t.className="btn-without")}},{key:"questionSelected",value:function(e){var t=this.state.selected,n=JSON.parse(JSON.stringify(t));Object.keys(n).length<3?alert("Select at least 3 questions"):fetch("/questions/select/submit",{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(e){console.log(e);var t="/question/"+e[0].path;window.location.href=t})}},{key:"render",value:function(){var e=this;return o.a.createElement("div",null,o.a.createElement(l,{question:"Select 3 Questions to begin"}),o.a.createElement("div",{className:"all-button-wrapper"},this.state.questions.map(function(t){return o.a.createElement(U,{question:t,key:t.id,selectQuestion:function(t){return e.selectQuestion(t)}})})),o.a.createElement("button",{className:"btn btn-xl",onClick:function(t){return e.questionSelected(t)}},"Submit"))}}]),t}(),Xe=function(e){return o.a.createElement("div",null,o.a.createElement(Qe,null))},Ze=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tt=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={questions:{scripting:b,calendar:P,storytelling:A,"print-ad-copy":D,memes:I},selected:0,myQuestions:[],userQuestionSelected:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),Ze(t,[{key:"componentDidMount",value:function(){var e,t=(et(e={method:"GET",mode:"cors",cache:"default",credentials:"same-origin"},"mode","cors"),et(e,"headers",{"content-type":"application/json"}),e),n=this;fetch("/user/questions",t).then(function(e){return e.json()}).then(function(e){n.setState({myQuestions:e})})}},{key:"render",value:function(){var e=this,t=this.state.myQuestions,n={list:{listStyleType:"none",width:"90%",margin:"0 auto",marginTop:"40px"},listItem:{padding:"10px"},anchor:{color:"#fff",textDecoration:"none"}};return o.a.createElement(re,null,o.a.createElement("div",{className:"row"},o.a.createElement(nt,{questions:this.state.myQuestions},o.a.createElement("ul",null,t?t.map(function(e,t,r){r[t+1]?r[t+1]:r[0];return o.a.createElement("li",{key:e.qid,style:n.listItem},o.a.createElement(de,{to:{pathname:"/question/"+e.qpath+"/"+t}},e.qname))}):o.a.createElement("li",{style:n.listItem},"No Questions"))),o.a.createElement("div",{className:"col-sm-9"},o.a.createElement(Ee,{exact:!0,path:"/question/index",render:function(){return e.state.myQuestions.length?o.a.createElement(Le,{to:"/question/"+e.state.myQuestions[0].qpath+"/0"}):o.a.createElement(Xe,null)}}),o.a.createElement(Ee,{path:"/question/select",component:Qe}),t?t.map(function(t){return o.a.createElement(Ee,{key:t.qid,path:"/question/"+t.qpath+"/:next",component:e.state.questions[t.qpath]})}):o.a.createElement("li",{style:n.listItem},"No Questions"))))}}]),t}(),nt=function(e){return o.a.createElement("div",{className:"col-sm-2 sidebar"},e.children)};i.a.render(o.a.createElement(tt,null),document.getElementById("root"))},function(e,t,n){"use strict";var r=n(11),o=n(6),a=n(12),i=n(7),l="function"==typeof Symbol&&Symbol.for,s=l?Symbol.for("react.element"):60103,u=l?Symbol.for("react.portal"):60106,c=l?Symbol.for("react.fragment"):60107,p=l?Symbol.for("react.strict_mode"):60108,d=l?Symbol.for("react.profiler"):60114,f=l?Symbol.for("react.provider"):60109,h=l?Symbol.for("react.context"):60110,m=l?Symbol.for("react.async_mode"):60111,g=l?Symbol.for("react.forward_ref"):60112;l&&Symbol.for("react.timeout");var b="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);o(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function _(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||y}function w(){}function x(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||y}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&v("85"),this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=_.prototype;var k=x.prototype=new w;k.constructor=x,r(k,_.prototype),k.isPureReactComponent=!0;var C={current:null},S=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r=void 0,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!T.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:s,type:e,key:a,ref:i,props:o,_owner:C.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===s}var j=/\/+/g,P=[];function z(e,t,n,r){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function F(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case s:case u:a=!0}}if(a)return n(r,e,""===t?"."+N(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var i=0;i<e.length;i++){var l=t+N(o=e[i],i);a+=F(o,l,n,r)}else if(null===e||void 0===e?l=null:l="function"==typeof(l=b&&e[b]||e["@@iterator"])?l:null,"function"==typeof l)for(e=l.call(e),i=0;!(o=e.next()).done;)a+=F(o=o.value,l=t+N(o,i++),n,r);else"object"===o&&v("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return a}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function D(e,t){e.func.call(e.context,t,e.count++)}function M(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?R(e,r,n,i.thatReturnsArgument):null!=e&&(O(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(j,"$&/")+"/")+n,e={$$typeof:s,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function R(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(j,"$&/")+"/"),t=z(t,a,r,o),null==e||F(e,"",M,t),A(t)}var L={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return R(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=z(null,null,t,n),null==e||F(e,"",D,t),A(t)},count:function(e){return null==e?0:F(e,"",i.thatReturnsNull,null)},toArray:function(e){var t=[];return R(e,t,null,i.thatReturnsArgument),t},only:function(e){return O(e)||v("143"),e}},createRef:function(){return{current:null}},Component:_,PureComponent:x,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:h,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_currentValue2:e,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:g,render:e}},Fragment:c,StrictMode:p,unstable_AsyncMode:m,unstable_Profiler:d,createElement:E,cloneElement:function(e,t,n){(null===e||void 0===e)&&v("267",e);var o=void 0,a=r({},e.props),i=e.key,l=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,u=C.current),void 0!==t.key&&(i=""+t.key);var c=void 0;for(o in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)S.call(t,o)&&!T.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==c?c[o]:t[o])}if(1===(o=arguments.length-2))a.children=n;else if(1<o){c=Array(o);for(var p=0;p<o;p++)c[p]=arguments[p+2];a.children=c}return{$$typeof:s,type:e.type,key:i,ref:l,props:a,_owner:u}},createFactory:function(e){var t=E.bind(null,e);return t.type=e,t},isValidElement:O,version:"16.4.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:C,assign:r}},I={default:L},q=I&&L||I;e.exports=q.default?q.default:q},function(e,t,n){"use strict";var r=n(6),o=n(0),a=n(24),i=n(11),l=n(7),s=n(25),u=n(26),c=n(27),p=n(12);function d(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);r(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}o||d("227");var f={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(e,t,n,r,o,a,i,l,s){(function(e,t,n,r,o,a,i,l,s){this._hasCaughtError=!1,this._caughtError=null;var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this._caughtError=e,this._hasCaughtError=!0}}).apply(f,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,a,i,l,s){if(f.invokeGuardedCallback.apply(this,arguments),f.hasCaughtError()){var u=f.clearCaughtError();f._hasRethrowError||(f._hasRethrowError=!0,f._rethrowError=u)}},rethrowCaughtError:function(){return function(){if(f._hasRethrowError){var e=f._rethrowError;throw f._rethrowError=null,f._hasRethrowError=!1,e}}.apply(f,arguments)},hasCaughtError:function(){return f._hasCaughtError},clearCaughtError:function(){if(f._hasCaughtError){var e=f._caughtError;return f._caughtError=null,f._hasCaughtError=!1,e}d("198")}};var h=null,m={};function g(){if(h)for(var e in m){var t=m[e],n=h.indexOf(e);if(-1<n||d("96",e),!v[n])for(var r in t.extractEvents||d("97",e),v[n]=t,n=t.eventTypes){var o=void 0,a=n[r],i=t,l=r;y.hasOwnProperty(l)&&d("99",l),y[l]=a;var s=a.phasedRegistrationNames;if(s){for(o in s)s.hasOwnProperty(o)&&b(s[o],i,l);o=!0}else a.registrationName?(b(a.registrationName,i,l),o=!0):o=!1;o||d("98",r,e)}}}function b(e,t,n){_[e]&&d("100",e),_[e]=t,w[e]=t.eventTypes[n].dependencies}var v=[],y={},_={},w={};function x(e){h&&d("101"),h=Array.prototype.slice.call(e),g()}function k(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];m.hasOwnProperty(t)&&m[t]===r||(m[t]&&d("102",t),m[t]=r,n=!0)}n&&g()}var C={plugins:v,eventNameDispatchConfigs:y,registrationNameModules:_,registrationNameDependencies:w,possibleRegistrationNames:null,injectEventPluginOrder:x,injectEventPluginsByName:k},S=null,T=null,E=null;function O(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=E(r),f.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function j(e,t){return null==t&&d("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function P(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var z=null;function A(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)O(e,t,n[o],r[o]);else n&&O(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function F(e){return A(e,!0)}function N(e){return A(e,!1)}var D={injectEventPluginOrder:x,injectEventPluginsByName:k};function M(e,t){var n=e.stateNode;if(!n)return null;var r=S(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&d("231",t,typeof n),n)}function R(e,t){null!==e&&(z=j(z,e)),e=z,z=null,e&&(P(e,t?F:N),z&&d("95"),f.rethrowCaughtError())}function L(e,t,n,r){for(var o=null,a=0;a<v.length;a++){var i=v[a];i&&(i=i.extractEvents(e,t,n,r))&&(o=j(o,i))}R(o,!1)}var I={injection:D,getListener:M,runEventsInBatch:R,runExtractedEventsInBatch:L},q=Math.random().toString(36).slice(2),U="__reactInternalInstance$"+q,B="__reactEventHandlers$"+q;function V(e){if(e[U])return e[U];for(;!e[U];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[U]).tag||6===e.tag?e:null}function H(e){if(5===e.tag||6===e.tag)return e.stateNode;d("33")}function W(e){return e[B]||null}var K={precacheFiberNode:function(e,t){t[U]=e},getClosestInstanceFromNode:V,getInstanceFromNode:function(e){return!(e=e[U])||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:H,getFiberCurrentPropsFromNode:W,updateFiberProps:function(e,t){e[B]=t}};function G(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function $(e,t,n){for(var r=[];e;)r.push(e),e=G(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function Y(e,t,n){(t=M(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=j(n._dispatchListeners,t),n._dispatchInstances=j(n._dispatchInstances,e))}function J(e){e&&e.dispatchConfig.phasedRegistrationNames&&$(e._targetInst,Y,e)}function Q(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;$(t=t?G(t):null,Y,e)}}function X(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=M(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=j(n._dispatchListeners,t),n._dispatchInstances=j(n._dispatchInstances,e))}function Z(e){e&&e.dispatchConfig.registrationName&&X(e._targetInst,null,e)}function ee(e){P(e,J)}function te(e,t,n,r){if(n&&r)e:{for(var o=n,a=r,i=0,l=o;l;l=G(l))i++;l=0;for(var s=a;s;s=G(s))l++;for(;0<i-l;)o=G(o),i--;for(;0<l-i;)a=G(a),l--;for(;i--;){if(o===a||o===a.alternate)break e;o=G(o),a=G(a)}o=null}else o=null;for(a=o,o=[];n&&n!==a&&(null===(i=n.alternate)||i!==a);)o.push(n),n=G(n);for(n=[];r&&r!==a&&(null===(i=r.alternate)||i!==a);)n.push(r),r=G(r);for(r=0;r<o.length;r++)X(o[r],"bubbled",e);for(e=n.length;0<e--;)X(n[e],"captured",t)}var ne={accumulateTwoPhaseDispatches:ee,accumulateTwoPhaseDispatchesSkipTarget:function(e){P(e,Q)},accumulateEnterLeaveDispatches:te,accumulateDirectDispatches:function(e){P(e,Z)}};function re(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var oe={animationend:re("Animation","AnimationEnd"),animationiteration:re("Animation","AnimationIteration"),animationstart:re("Animation","AnimationStart"),transitionend:re("Transition","TransitionEnd")},ae={},ie={};function le(e){if(ae[e])return ae[e];if(!oe[e])return e;var t,n=oe[e];for(t in n)if(n.hasOwnProperty(t)&&t in ie)return ae[e]=n[t];return e}a.canUseDOM&&(ie=document.createElement("div").style,"AnimationEvent"in window||(delete oe.animationend.animation,delete oe.animationiteration.animation,delete oe.animationstart.animation),"TransitionEvent"in window||delete oe.transitionend.transition);var se=le("animationend"),ue=le("animationiteration"),ce=le("animationstart"),pe=le("transitionend"),de="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fe=null;function he(){return!fe&&a.canUseDOM&&(fe="textContent"in document.documentElement?"textContent":"innerText"),fe}var me={_root:null,_startText:null,_fallbackText:null};function ge(){if(me._fallbackText)return me._fallbackText;var e,t,n=me._startText,r=n.length,o=be(),a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return me._fallbackText=o.slice(e,1<t?1-t:void 0),me._fallbackText}function be(){return"value"in me._root?me._root.value:me._root[he()]}var ve="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),ye={type:null,target:null,currentTarget:l.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function _e(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?l.thatReturnsTrue:l.thatReturnsFalse,this.isPropagationStopped=l.thatReturnsFalse,this}function we(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function xe(e){e instanceof this||d("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function ke(e){e.eventPool=[],e.getPooled=we,e.release=xe}i(_e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=l.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=l.thatReturnsTrue)},persist:function(){this.isPersistent=l.thatReturnsTrue},isPersistent:l.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<ve.length;t++)this[ve[t]]=null}}),_e.Interface=ye,_e.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,ke(n),n},ke(_e);var Ce=_e.extend({data:null}),Se=_e.extend({data:null}),Te=[9,13,27,32],Ee=a.canUseDOM&&"CompositionEvent"in window,Oe=null;a.canUseDOM&&"documentMode"in document&&(Oe=document.documentMode);var je=a.canUseDOM&&"TextEvent"in window&&!Oe,Pe=a.canUseDOM&&(!Ee||Oe&&8<Oe&&11>=Oe),ze=String.fromCharCode(32),Ae={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Fe=!1;function Ne(e,t){switch(e){case"keyup":return-1!==Te.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function De(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Me=!1;var Re={eventTypes:Ae,extractEvents:function(e,t,n,r){var o=void 0,a=void 0;if(Ee)e:{switch(e){case"compositionstart":o=Ae.compositionStart;break e;case"compositionend":o=Ae.compositionEnd;break e;case"compositionupdate":o=Ae.compositionUpdate;break e}o=void 0}else Me?Ne(e,n)&&(o=Ae.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Ae.compositionStart);return o?(Pe&&(Me||o!==Ae.compositionStart?o===Ae.compositionEnd&&Me&&(a=ge()):(me._root=r,me._startText=be(),Me=!0)),o=Ce.getPooled(o,t,n,r),a?o.data=a:null!==(a=De(n))&&(o.data=a),ee(o),a=o):a=null,(e=je?function(e,t){switch(e){case"compositionend":return De(t);case"keypress":return 32!==t.which?null:(Fe=!0,ze);case"textInput":return(e=t.data)===ze&&Fe?null:e;default:return null}}(e,n):function(e,t){if(Me)return"compositionend"===e||!Ee&&Ne(e,t)?(e=ge(),me._root=null,me._startText=null,me._fallbackText=null,Me=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pe?null:t.data;default:return null}}(e,n))?((t=Se.getPooled(Ae.beforeInput,t,n,r)).data=e,ee(t)):t=null,null===a?t:null===t?a:[a,t]}},Le=null,Ie={injectFiberControlledHostComponent:function(e){Le=e}},qe=null,Ue=null;function Be(e){if(e=T(e)){Le&&"function"==typeof Le.restoreControlledState||d("194");var t=S(e.stateNode);Le.restoreControlledState(e.stateNode,e.type,t)}}function Ve(e){qe?Ue?Ue.push(e):Ue=[e]:qe=e}function He(){return null!==qe||null!==Ue}function We(){if(qe){var e=qe,t=Ue;if(Ue=qe=null,Be(e),t)for(e=0;e<t.length;e++)Be(t[e])}}var Ke={injection:Ie,enqueueStateRestore:Ve,needsStateRestore:He,restoreStateIfNeeded:We};function Ge(e,t){return e(t)}function $e(e,t,n){return e(t,n)}function Ye(){}var Je=!1;function Qe(e,t){if(Je)return e(t);Je=!0;try{return Ge(e,t)}finally{Je=!1,He()&&(Ye(),We())}}var Xe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ze(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Xe[e.type]:"textarea"===t}function et(e){return(e=e.target||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function tt(e,t){return!(!a.canUseDOM||t&&!("addEventListener"in document))&&((t=(e="on"+e)in document)||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t)}function nt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function rt(e){e._valueTracker||(e._valueTracker=function(e){var t=nt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ot(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var at=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,it="function"==typeof Symbol&&Symbol.for,lt=it?Symbol.for("react.element"):60103,st=it?Symbol.for("react.portal"):60106,ut=it?Symbol.for("react.fragment"):60107,ct=it?Symbol.for("react.strict_mode"):60108,pt=it?Symbol.for("react.profiler"):60114,dt=it?Symbol.for("react.provider"):60109,ft=it?Symbol.for("react.context"):60110,ht=it?Symbol.for("react.async_mode"):60111,mt=it?Symbol.for("react.forward_ref"):60112,gt=it?Symbol.for("react.timeout"):60113,bt="function"==typeof Symbol&&Symbol.iterator;function vt(e){return null===e||void 0===e?null:"function"==typeof(e=bt&&e[bt]||e["@@iterator"])?e:null}function yt(e){var t=e.type;if("function"==typeof t)return t.displayName||t.name;if("string"==typeof t)return t;switch(t){case ht:return"AsyncMode";case ft:return"Context.Consumer";case ut:return"ReactFragment";case st:return"ReactPortal";case pt:return"Profiler("+e.pendingProps.id+")";case dt:return"Context.Provider";case ct:return"StrictMode";case gt:return"Timeout"}if("object"==typeof t&&null!==t)switch(t.$$typeof){case mt:return""!==(e=t.render.displayName||t.render.name||"")?"ForwardRef("+e+")":"ForwardRef"}return null}function _t(e){var t="";do{e:switch(e.tag){case 0:case 1:case 2:case 5:var n=e._debugOwner,r=e._debugSource,o=yt(e),a=null;n&&(a=yt(n)),n=r,o="\n in "+(o||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":a?" (created by "+a+")":"");break e;default:o=""}t+=o,e=e.return}while(e);return t}var wt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,xt={},kt={};function Ct(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new Ct(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new Ct(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new Ct(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(e){St[e]=new Ct(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){St[e]=new Ct(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){St[e]=new Ct(e,3,!0,e.toLowerCase(),null)}),["capture","download"].forEach(function(e){St[e]=new Ct(e,4,!1,e.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(e){St[e]=new Ct(e,6,!1,e.toLowerCase(),null)}),["rowSpan","start"].forEach(function(e){St[e]=new Ct(e,5,!1,e.toLowerCase(),null)});var Tt=/[\-:]([a-z])/g;function Et(e){return e[1].toUpperCase()}function Ot(e,t,n,r){var o=St.hasOwnProperty(t)?St[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||void 0===t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!kt.hasOwnProperty(e)||!xt.hasOwnProperty(e)&&(wt.test(e)?kt[e]=!0:(xt[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function jt(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Pt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Dt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function zt(e,t){null!=(t=t.checked)&&Ot(e,"checked",t,!1)}function At(e,t){zt(e,t);var n=Dt(t.value);null!=n&&("number"===t.type?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n)),t.hasOwnProperty("value")?Nt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nt(e,t.type,Dt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ft(e,t){(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue"))&&(""===e.value&&(e.value=""+e._wrapperState.initialValue),e.defaultValue=""+e._wrapperState.initialValue),""!==(t=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)}function Nt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Dt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Tt,Et);St[t]=new Ct(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Tt,Et);St[t]=new Ct(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Tt,Et);St[t]=new Ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),St.tabIndex=new Ct("tabIndex",1,!1,"tabindex",null);var Mt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Rt(e,t,n){return(e=_e.getPooled(Mt.change,e,t,n)).type="change",Ve(n),ee(e),e}var Lt=null,It=null;function qt(e){R(e,!1)}function Ut(e){if(ot(H(e)))return e}function Bt(e,t){if("change"===e)return t}var Vt=!1;function Ht(){Lt&&(Lt.detachEvent("onpropertychange",Wt),It=Lt=null)}function Wt(e){"value"===e.propertyName&&Ut(It)&&Qe(qt,e=Rt(It,e,et(e)))}function Kt(e,t,n){"focus"===e?(Ht(),It=n,(Lt=t).attachEvent("onpropertychange",Wt)):"blur"===e&&Ht()}function Gt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ut(It)}function $t(e,t){if("click"===e)return Ut(t)}function Yt(e,t){if("input"===e||"change"===e)return Ut(t)}a.canUseDOM&&(Vt=tt("input")&&(!document.documentMode||9<document.documentMode));var Jt={eventTypes:Mt,_isInputEventSupported:Vt,extractEvents:function(e,t,n,r){var o=t?H(t):window,a=void 0,i=void 0,l=o.nodeName&&o.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===o.type?a=Bt:Ze(o)?Vt?a=Yt:(a=Gt,i=Kt):(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=$t),a&&(a=a(e,t)))return Rt(a,n,r);i&&i(e,o,t),"blur"===e&&null!=t&&(e=t._wrapperState||o._wrapperState)&&e.controlled&&"number"===o.type&&Nt(o,"number",o.value)}},Qt=_e.extend({view:null,detail:null}),Xt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Xt[e])&&!!t[e]}function en(){return Zt}var tn=Qt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:en,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}}),nn=tn.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),rn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},on={eventTypes:rn,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a?(a=t,t=(t=n.relatedTarget||n.toElement)?V(t):null):a=null,a===t)return null;var i=void 0,l=void 0,s=void 0,u=void 0;return"mouseout"===e||"mouseover"===e?(i=tn,l=rn.mouseLeave,s=rn.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(i=nn,l=rn.pointerLeave,s=rn.pointerEnter,u="pointer"),e=null==a?o:H(a),o=null==t?o:H(t),(l=i.getPooled(l,a,n,r)).type=u+"leave",l.target=e,l.relatedTarget=o,(n=i.getPooled(s,t,n,r)).type=u+"enter",n.target=o,n.relatedTarget=e,te(l,n,a,t),[l,n]}};function an(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function ln(e){2!==an(e)&&d("188")}function sn(e){var t=e.alternate;if(!t)return 3===(t=an(e))&&d("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,a=o?o.alternate:null;if(!o||!a)break;if(o.child===a.child){for(var i=o.child;i;){if(i===n)return ln(o),e;if(i===r)return ln(o),t;i=i.sibling}d("188")}if(n.return!==r.return)n=o,r=a;else{i=!1;for(var l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}i||d("189")}}n.alternate!==r&&d("190")}return 3!==n.tag&&d("188"),n.stateNode.current===n?e:t}function un(e){if(!(e=sn(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var cn=_e.extend({animationName:null,elapsedTime:null,pseudoElement:null}),pn=_e.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dn=Qt.extend({relatedTarget:null});function fn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var hn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gn=Qt.extend({key:function(e){if(e.key){var t=hn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=fn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:en,charCode:function(e){return"keypress"===e.type?fn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?fn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),bn=tn.extend({dataTransfer:null}),vn=Qt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:en}),yn=_e.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),_n=tn.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),wn=[["abort","abort"],[se,"animationEnd"],[ue,"animationIteration"],[ce,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[pe,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],xn={},kn={};function Cn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},xn[e]=t,kn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){Cn(e,!0)}),wn.forEach(function(e){Cn(e,!1)});var Sn={eventTypes:xn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=kn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var o=kn[e];if(!o)return null;switch(e){case"keypress":if(0===fn(n))return null;case"keydown":case"keyup":e=gn;break;case"blur":case"focus":e=dn;break;case"click":if(2===n.button)return null;case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=tn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=vn;break;case se:case ue:case ce:e=cn;break;case pe:e=yn;break;case"scroll":e=Qt;break;case"wheel":e=_n;break;case"copy":case"cut":case"paste":e=pn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=nn;break;default:e=_e}return ee(t=e.getPooled(o,t,n,r)),t}},Tn=Sn.isInteractiveTopLevelEventType,En=[];function On(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=V(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],L(e.topLevelType,t,e.nativeEvent,et(e.nativeEvent))}var jn=!0;function Pn(e){jn=!!e}function zn(e,t){if(!t)return null;var n=(Tn(e)?Fn:Nn).bind(null,e);t.addEventListener(e,n,!1)}function An(e,t){if(!t)return null;var n=(Tn(e)?Fn:Nn).bind(null,e);t.addEventListener(e,n,!0)}function Fn(e,t){$e(Nn,e,t)}function Nn(e,t){if(jn){var n=et(t);if(null===(n=V(n))||"number"!=typeof n.tag||2===an(n)||(n=null),En.length){var r=En.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Qe(On,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>En.length&&En.push(e)}}}var Dn={get _enabled(){return jn},setEnabled:Pn,isEnabled:function(){return jn},trapBubbledEvent:zn,trapCapturedEvent:An,dispatchEvent:Nn},Mn={},Rn=0,Ln="_reactListenersID"+(""+Math.random()).slice(2);function In(e){return Object.prototype.hasOwnProperty.call(e,Ln)||(e[Ln]=Rn++,Mn[e[Ln]]={}),Mn[e[Ln]]}function qn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Un(e,t){var n,r=qn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=qn(r)}}function Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}var Vn=a.canUseDOM&&"documentMode"in document&&11>=document.documentMode,Hn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wn=null,Kn=null,Gn=null,$n=!1;function Yn(e,t){if($n||null==Wn||Wn!==s())return null;var n=Wn;return"selectionStart"in n&&Bn(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?n={anchorNode:(n=window.getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}:n=void 0,Gn&&u(Gn,n)?null:(Gn=n,(e=_e.getPooled(Hn.select,Kn,e,t)).type="select",e.target=Wn,ee(e),e)}var Jn={eventTypes:Hn,extractEvents:function(e,t,n,r){var o,a=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!a)){e:{a=In(a),o=w.onSelect;for(var i=0;i<o.length;i++){var l=o[i];if(!a.hasOwnProperty(l)||!a[l]){a=!1;break e}}a=!0}o=!a}if(o)return null;switch(a=t?H(t):window,e){case"focus":(Ze(a)||"true"===a.contentEditable)&&(Wn=a,Kn=t,Gn=null);break;case"blur":Gn=Kn=Wn=null;break;case"mousedown":$n=!0;break;case"contextmenu":case"mouseup":return $n=!1,Yn(n,r);case"selectionchange":if(Vn)break;case"keydown":case"keyup":return Yn(n,r)}return null}};D.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),S=K.getFiberCurrentPropsFromNode,T=K.getInstanceFromNode,E=K.getNodeFromInstance,D.injectEventPluginsByName({SimpleEventPlugin:Sn,EnterLeaveEventPlugin:on,ChangeEventPlugin:Jt,SelectEventPlugin:Jn,BeforeInputEventPlugin:Re});var Qn=void 0;Qn="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};var Xn=void 0,Zn=void 0;if(a.canUseDOM){var er=[],tr=0,nr={},rr=-1,or=!1,ar=!1,ir=0,lr=33,sr=33,ur={didTimeout:!1,timeRemaining:function(){var e=ir-Qn();return 0<e?e:0}},cr=function(e,t){if(nr[t])try{e(ur)}finally{delete nr[t]}},pr="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===pr&&(or=!1,0!==er.length)){if(0!==er.length&&(e=Qn(),!(-1===rr||rr>e))){rr=-1,ur.didTimeout=!0;for(var t=0,n=er.length;t<n;t++){var r=er[t],o=r.timeoutTime;-1!==o&&o<=e?cr(r.scheduledCallback,r.callbackId):-1!==o&&(-1===rr||o<rr)&&(rr=o)}}for(e=Qn();0<ir-e&&0<er.length;)e=er.shift(),ur.didTimeout=!1,cr(e.scheduledCallback,e.callbackId),e=Qn();0<er.length&&!ar&&(ar=!0,requestAnimationFrame(dr))}},!1);var dr=function(e){ar=!1;var t=e-ir+sr;t<sr&&lr<sr?(8>t&&(t=8),sr=t<lr?lr:t):lr=t,ir=e+sr,or||(or=!0,window.postMessage(pr,"*"))};Xn=function(e,t){var n=-1;return null!=t&&"number"==typeof t.timeout&&(n=Qn()+t.timeout),(-1===rr||-1!==n&&n<rr)&&(rr=n),t=++tr,er.push({scheduledCallback:e,callbackId:t,timeoutTime:n}),nr[t]=!0,ar||(ar=!0,requestAnimationFrame(dr)),t},Zn=function(e){delete nr[e]}}else{var fr=0,hr={};Xn=function(e){var t=fr++,n=setTimeout(function(){e({timeRemaining:function(){return 1/0},didTimeout:!1})});return hr[t]=n,t},Zn=function(e){var t=hr[e];delete hr[e],clearTimeout(t)}}function mr(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}(t.children))&&(e.children=t),e}function gr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+n,t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function br(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function vr(e,t){return null!=t.dangerouslySetInnerHTML&&d("91"),i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yr(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&d("92"),Array.isArray(t)&&(1>=t.length||d("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function _r(e,t){var n=t.value;null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function wr(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}var xr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function kr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Cr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?kr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Sr,Tr=void 0,Er=(Sr=function(e,t){if(e.namespaceURI!==xr.svg||"innerHTML"in e)e.innerHTML=t;else{for((Tr=Tr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=Tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Sr(e,t)})}:Sr);function Or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var jr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pr=["Webkit","ms","Moz","O"];function zr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=n,a=t[n];o=null==a||"boolean"==typeof a||""===a?"":r||"number"!=typeof a||0===a||jr.hasOwnProperty(o)&&jr[o]?(""+a).trim():a+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(jr).forEach(function(e){Pr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jr[t]=jr[e]})});var Ar=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fr(e,t,n){t&&(Ar[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&d("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&d("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||d("61")),null!=t.style&&"object"!=typeof t.style&&d("62",n()))}function Nr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dr=l.thatReturns("");function Mr(e,t){var n=In(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=w[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":An("scroll",e);break;case"focus":case"blur":An("focus",e),An("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":tt(o,!0)&&An(o,e);break;case"invalid":case"submit":case"reset":break;default:-1===de.indexOf(o)&&zn(o,e)}n[o]=!0}}}function Rr(e,t,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===xr.html&&(r=kr(e)),r===xr.html?"script"===e?((e=n.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function Lr(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function Ir(e,t,n,r){var o=Nr(t,n);switch(t){case"iframe":case"object":zn("load",e);var a=n;break;case"video":case"audio":for(a=0;a<de.length;a++)zn(de[a],e);a=n;break;case"source":zn("error",e),a=n;break;case"img":case"image":case"link":zn("error",e),zn("load",e),a=n;break;case"form":zn("reset",e),zn("submit",e),a=n;break;case"details":zn("toggle",e),a=n;break;case"input":Pt(e,n),a=jt(e,n),zn("invalid",e),Mr(r,"onChange");break;case"option":a=mr(e,n);break;case"select":br(e,n),a=i({},n,{value:void 0}),zn("invalid",e),Mr(r,"onChange");break;case"textarea":yr(e,n),a=vr(e,n),zn("invalid",e),Mr(r,"onChange");break;default:a=n}Fr(t,a,Dr);var s,u=a;for(s in u)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?zr(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&Er(e,c):"children"===s?"string"==typeof c?("textarea"!==t||""!==c)&&Or(e,c):"number"==typeof c&&Or(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(_.hasOwnProperty(s)?null!=c&&Mr(r,s):null!=c&&Ot(e,s,c,o))}switch(t){case"input":rt(e),Ft(e,n);break;case"textarea":rt(e),wr(e);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,null!=(t=n.value)?gr(e,!!n.multiple,t,!1):null!=n.defaultValue&&gr(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=l)}}function qr(e,t,n,r,o){var a=null;switch(t){case"input":n=jt(e,n),r=jt(e,r),a=[];break;case"option":n=mr(e,n),r=mr(e,r),a=[];break;case"select":n=i({},n,{value:void 0}),r=i({},r,{value:void 0}),a=[];break;case"textarea":n=vr(e,n),r=vr(e,r),a=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=l)}Fr(t,r,Dr),t=e=void 0;var s=null;for(e in n)if(!r.hasOwnProperty(e)&&n.hasOwnProperty(e)&&null!=n[e])if("style"===e){var u=n[e];for(t in u)u.hasOwnProperty(t)&&(s||(s={}),s[t]="")}else"dangerouslySetInnerHTML"!==e&&"children"!==e&&"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&"autoFocus"!==e&&(_.hasOwnProperty(e)?a||(a=[]):(a=a||[]).push(e,null));for(e in r){var c=r[e];if(u=null!=n?n[e]:void 0,r.hasOwnProperty(e)&&c!==u&&(null!=c||null!=u))if("style"===e)if(u){for(t in u)!u.hasOwnProperty(t)||c&&c.hasOwnProperty(t)||(s||(s={}),s[t]="");for(t in c)c.hasOwnProperty(t)&&u[t]!==c[t]&&(s||(s={}),s[t]=c[t])}else s||(a||(a=[]),a.push(e,s)),s=c;else"dangerouslySetInnerHTML"===e?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(a=a||[]).push(e,""+c)):"children"===e?u===c||"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(e,""+c):"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&(_.hasOwnProperty(e)?(null!=c&&Mr(o,e),a||u===c||(a=[])):(a=a||[]).push(e,c))}return s&&(a=a||[]).push("style",s),a}function Ur(e,t,n,r,o){"input"===n&&"radio"===o.type&&null!=o.name&&zt(e,o),Nr(n,r),r=Nr(n,o);for(var a=0;a<t.length;a+=2){var i=t[a],l=t[a+1];"style"===i?zr(e,l):"dangerouslySetInnerHTML"===i?Er(e,l):"children"===i?Or(e,l):Ot(e,i,l,r)}switch(n){case"input":At(e,o);break;case"textarea":_r(e,o);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!o.multiple,null!=(n=o.value)?gr(e,!!o.multiple,n,!1):t!==!!o.multiple&&(null!=o.defaultValue?gr(e,!!o.multiple,o.defaultValue,!0):gr(e,!!o.multiple,o.multiple?[]:"",!1))}}function Br(e,t,n,r,o){switch(t){case"iframe":case"object":zn("load",e);break;case"video":case"audio":for(r=0;r<de.length;r++)zn(de[r],e);break;case"source":zn("error",e);break;case"img":case"image":case"link":zn("error",e),zn("load",e);break;case"form":zn("reset",e),zn("submit",e);break;case"details":zn("toggle",e);break;case"input":Pt(e,n),zn("invalid",e),Mr(o,"onChange");break;case"select":br(e,n),zn("invalid",e),Mr(o,"onChange");break;case"textarea":yr(e,n),zn("invalid",e),Mr(o,"onChange")}for(var a in Fr(t,n,Dr),r=null,n)if(n.hasOwnProperty(a)){var i=n[a];"children"===a?"string"==typeof i?e.textContent!==i&&(r=["children",i]):"number"==typeof i&&e.textContent!==""+i&&(r=["children",""+i]):_.hasOwnProperty(a)&&null!=i&&Mr(o,a)}switch(t){case"input":rt(e),Ft(e,n);break;case"textarea":rt(e),wr(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&(e.onclick=l)}return r}function Vr(e,t){return e.nodeValue!==t}var Hr={createElement:Rr,createTextNode:Lr,setInitialProperties:Ir,diffProperties:qr,updateProperties:Ur,diffHydratedProperties:Br,diffHydratedText:Vr,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(At(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=W(r);o||d("90"),ot(r),At(r,o)}}}break;case"textarea":_r(e,n);break;case"select":null!=(t=n.value)&&gr(e,!!n.multiple,t,!1)}}},Wr=null,Kr=null;function Gr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function $r(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html}var Yr=Qn,Jr=Xn,Qr=Zn;function Xr(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function Zr(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var eo=[],to=-1;function no(e){return{current:e}}function ro(e){0>to||(e.current=eo[to],eo[to]=null,to--)}function oo(e,t){eo[++to]=e.current,e.current=t}var ao=no(p),io=no(!1),lo=p;function so(e){return co(e)?lo:ao.current}function uo(e,t){var n=e.type.contextTypes;if(!n)return p;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function co(e){return 2===e.tag&&null!=e.type.childContextTypes}function po(e){co(e)&&(ro(io),ro(ao))}function fo(e){ro(io),ro(ao)}function ho(e,t,n){ao.current!==p&&d("168"),oo(ao,t),oo(io,n)}function mo(e,t){var n=e.stateNode,r=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;for(var o in n=n.getChildContext())o in r||d("108",yt(e)||"Unknown",o);return i({},t,n)}function go(e){if(!co(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||p,lo=ao.current,oo(ao,t),oo(io,io.current),!0}function bo(e,t){var n=e.stateNode;if(n||d("169"),t){var r=mo(e,lo);n.__reactInternalMemoizedMergedChildContext=r,ro(io),ro(ao),oo(ao,r)}else ro(io);oo(io,t)}function vo(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function yo(e,t,n){var r=e.alternate;return null===r?((r=new vo(e.tag,t,e.key,e.mode)).type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function _o(e,t,n){var r=e.type,o=e.key;if(e=e.props,"function"==typeof r)var a=r.prototype&&r.prototype.isReactComponent?2:0;else if("string"==typeof r)a=5;else switch(r){case ut:return wo(e.children,t,n,o);case ht:a=11,t|=3;break;case ct:a=11,t|=2;break;case pt:return(r=new vo(15,e,o,4|t)).type=pt,r.expirationTime=n,r;case gt:a=16,t|=2;break;default:e:{switch("object"==typeof r&&null!==r?r.$$typeof:null){case dt:a=13;break e;case ft:a=12;break e;case mt:a=14;break e;default:d("130",null==r?r:typeof r,"")}a=void 0}}return(t=new vo(a,e,o,t)).type=r,t.expirationTime=n,t}function wo(e,t,n,r){return(e=new vo(10,e,r,t)).expirationTime=n,e}function xo(e,t,n){return(e=new vo(6,e,null,t)).expirationTime=n,e}function ko(e,t,n){return(t=new vo(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Co(e,t,n){return e={current:t=new vo(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e}var So=null,To=null;function Eo(e){return function(t){try{return e(t)}catch(e){}}}function Oo(e){"function"==typeof So&&So(e)}function jo(e){"function"==typeof To&&To(e)}var Po=!1;function zo(e){return{expirationTime:0,baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ao(e){return{expirationTime:e.expirationTime,baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Fo(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function No(e,t,n){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t),(0===e.expirationTime||e.expirationTime>n)&&(e.expirationTime=n)}function Do(e,t,n){var r=e.alternate;if(null===r){var o=e.updateQueue,a=null;null===o&&(o=e.updateQueue=zo(e.memoizedState))}else o=e.updateQueue,a=r.updateQueue,null===o?null===a?(o=e.updateQueue=zo(e.memoizedState),a=r.updateQueue=zo(r.memoizedState)):o=e.updateQueue=Ao(a):null===a&&(a=r.updateQueue=Ao(o));null===a||o===a?No(o,t,n):null===o.lastUpdate||null===a.lastUpdate?(No(o,t,n),No(a,t,n)):(No(o,t,n),a.lastUpdate=t)}function Mo(e,t,n){var r=e.updateQueue;null===(r=null===r?e.updateQueue=zo(e.memoizedState):Ro(e,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=t:(r.lastCapturedUpdate.next=t,r.lastCapturedUpdate=t),(0===r.expirationTime||r.expirationTime>n)&&(r.expirationTime=n)}function Ro(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Ao(t)),t}function Lo(e,t,n,r,o,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,o):e;case 3:e.effectTag=-1025&e.effectTag|64;case 0:if(null===(o="function"==typeof(e=n.payload)?e.call(a,r,o):e)||void 0===o)break;return i({},r,o);case 2:Po=!0}return r}function Io(e,t,n,r,o){if(Po=!1,!(0===t.expirationTime||t.expirationTime>o)){for(var a=(t=Ro(e,t)).baseState,i=null,l=0,s=t.firstUpdate,u=a;null!==s;){var c=s.expirationTime;c>o?(null===i&&(i=s,a=u),(0===l||l>c)&&(l=c)):(u=Lo(e,0,s,u,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(c=null,s=t.firstCapturedUpdate;null!==s;){var p=s.expirationTime;p>o?(null===c&&(c=s,null===i&&(a=u)),(0===l||l>p)&&(l=p)):(u=Lo(e,0,s,u,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===i&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===i&&null===c&&(a=u),t.baseState=a,t.firstUpdate=i,t.firstCapturedUpdate=c,t.expirationTime=l,e.memoizedState=u}}function qo(e,t){"function"!=typeof e&&d("191",e),e.call(t)}function Uo(e,t,n){for(null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),e=t.firstEffect,t.firstEffect=t.lastEffect=null;null!==e;){var r=e.callback;null!==r&&(e.callback=null,qo(r,n)),e=e.nextEffect}for(e=t.firstCapturedEffect,t.firstCapturedEffect=t.lastCapturedEffect=null;null!==e;)null!==(t=e.callback)&&(e.callback=null,qo(t,n)),e=e.nextEffect}function Bo(e,t){return{value:e,source:t,stack:_t(t)}}var Vo=no(null),Ho=no(null),Wo=no(0);function Ko(e){var t=e.type._context;oo(Wo,t._changedBits),oo(Ho,t._currentValue),oo(Vo,e),t._currentValue=e.pendingProps.value,t._changedBits=e.stateNode}function Go(e){var t=Wo.current,n=Ho.current;ro(Vo),ro(Ho),ro(Wo),(e=e.type._context)._currentValue=n,e._changedBits=t}var $o={},Yo=no($o),Jo=no($o),Qo=no($o);function Xo(e){return e===$o&&d("174"),e}function Zo(e,t){oo(Qo,t),oo(Jo,e),oo(Yo,$o);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cr(null,"");break;default:t=Cr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}ro(Yo),oo(Yo,t)}function ea(e){ro(Yo),ro(Jo),ro(Qo)}function ta(e){Jo.current===e&&(ro(Yo),ro(Jo))}function na(e,t,n){var r=e.memoizedState;r=null===(t=t(n,r))||void 0===t?r:i({},r,t),e.memoizedState=r,null!==(e=e.updateQueue)&&0===e.expirationTime&&(e.baseState=r)}var ra={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===an(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=mi(),o=Fo(r=fi(r,e));o.payload=t,void 0!==n&&null!==n&&(o.callback=n),Do(e,o,r),hi(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=mi(),o=Fo(r=fi(r,e));o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),Do(e,o,r),hi(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=mi(),r=Fo(n=fi(n,e));r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Do(e,r,n),hi(e,n)}};function oa(e,t,n,r,o,a){var i=e.stateNode;return e=e.type,"function"==typeof i.shouldComponentUpdate?i.shouldComponentUpdate(n,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!u(t,n)||!u(r,o))}function aa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ra.enqueueReplaceState(t,t.state,null)}function ia(e,t){var n=e.type,r=e.stateNode,o=e.pendingProps,a=so(e);r.props=o,r.state=e.memoizedState,r.refs=p,r.context=uo(e,a),null!==(a=e.updateQueue)&&(Io(e,a,o,r,t),r.state=e.memoizedState),"function"==typeof(a=e.type.getDerivedStateFromProps)&&(na(e,a,o),r.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(n=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),n!==r.state&&ra.enqueueReplaceState(r,r.state,null),null!==(a=e.updateQueue)&&(Io(e,a,o,r,t),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var la=Array.isArray;function sa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){var r=void 0;(n=n._owner)&&(2!==n.tag&&d("110"),r=n.stateNode),r||d("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs===p?r.refs={}:r.refs;null===e?delete t[o]:t[o]=e})._stringRef=o,t)}"string"!=typeof e&&d("148"),n._owner||d("254",e)}return e}function ua(e,t){"textarea"!==e.type&&d("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ca(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return(e=yo(e,t,n)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function i(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=xo(n,e.mode,r)).return=e,t):((t=o(t,n,r)).return=e,t)}function s(e,t,n,r){return null!==t&&t.type===n.type?((r=o(t,n.props,r)).ref=sa(e,t,n),r.return=e,r):((r=_o(n,e.mode,r)).ref=sa(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ko(n,e.mode,r)).return=e,t):((t=o(t,n.children||[],r)).return=e,t)}function c(e,t,n,r,a){return null===t||10!==t.tag?((t=wo(n,e.mode,r,a)).return=e,t):((t=o(t,n,r)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=xo(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case lt:return(n=_o(t,e.mode,n)).ref=sa(e,null,t),n.return=e,n;case st:return(t=ko(t,e.mode,n)).return=e,t}if(la(t)||vt(t))return(t=wo(t,e.mode,n,null)).return=e,t;ua(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case lt:return n.key===o?n.type===ut?c(e,t,n.props.children,r,o):s(e,t,n,r):null;case st:return n.key===o?u(e,t,n,r):null}if(la(n)||vt(n))return null!==o?null:c(e,t,n,r,null);ua(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case lt:return e=e.get(null===r.key?n:r.key)||null,r.type===ut?c(t,e,r.props.children,o,r.key):s(t,e,r,o);case st:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(la(r)||vt(r))return c(t,e=e.get(n)||null,r,o,null);ua(t,r)}return null}function m(o,i,l,s){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=f(o,d,l[m],s);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(o,d),i=a(b,i,m),null===c?u=b:c.sibling=b,c=b,d=g}if(m===l.length)return n(o,d),u;if(null===d){for(;m<l.length;m++)(d=p(o,l[m],s))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(o,d);m<l.length;m++)(g=h(d,o,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(o,e)}),u}function g(o,i,l,s){var u=vt(l);"function"!=typeof u&&d("150"),null==(l=u.call(l))&&d("151");for(var c=u=null,m=i,g=i=0,b=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=f(o,m,v.value,s);if(null===y){m||(m=b);break}e&&m&&null===y.alternate&&t(o,m),i=a(y,i,g),null===c?u=y:c.sibling=y,c=y,m=b}if(v.done)return n(o,m),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=p(o,v.value,s))&&(i=a(v,i,g),null===c?u=v:c.sibling=v,c=v);return u}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach(function(e){return t(o,e)}),u}return function(e,r,a,l){"object"==typeof a&&null!==a&&a.type===ut&&null===a.key&&(a=a.props.children);var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case lt:e:{var u=a.key;for(s=r;null!==s;){if(s.key===u){if(10===s.tag?a.type===ut:s.type===a.type){n(e,s.sibling),(r=o(s,a.type===ut?a.props.children:a.props,l)).ref=sa(e,s,a),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}a.type===ut?((r=wo(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=_o(a,e.mode,l)).ref=sa(e,r,a),l.return=e,e=l)}return i(e);case st:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[],l)).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=ko(a,e.mode,l)).return=e,e=r}return i(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a,l)).return=e,e=r):(n(e,r),(r=xo(a,e.mode,l)).return=e,e=r),i(e);if(la(a))return m(e,r,a,l);if(vt(a))return g(e,r,a,l);if(s&&ua(e,a),void 0===a)switch(e.tag){case 2:case 1:d("152",(l=e.type).displayName||l.name||"Component")}return n(e,r)}}var pa=ca(!0),da=ca(!1),fa=null,ha=null,ma=!1;function ga(e,t){var n=new vo(5,null,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ba(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function va(e){if(ma){var t=ha;if(t){var n=t;if(!ba(e,t)){if(!(t=Xr(n))||!ba(e,t))return e.effectTag|=2,ma=!1,void(fa=e);ga(fa,n)}fa=e,ha=Zr(t)}else e.effectTag|=2,ma=!1,fa=e}}function ya(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;fa=e}function _a(e){if(e!==fa)return!1;if(!ma)return ya(e),ma=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$r(t,e.memoizedProps))for(t=ha;t;)ga(e,t),t=Xr(t);return ya(e),ha=fa?Xr(e.stateNode):null,!0}function wa(){ha=fa=null,ma=!1}function xa(e,t,n){ka(e,t,n,t.expirationTime)}function ka(e,t,n,r){t.child=null===e?da(t,null,n,r):pa(t,e.child,n,r)}function Ca(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Sa(e,t,n,r,o){Ca(e,t);var a=0!=(64&t.effectTag);if(!n&&!a)return r&&bo(t,!1),Oa(e,t);n=t.stateNode,at.current=t;var i=a?null:n.render();return t.effectTag|=1,a&&(ka(e,t,null,o),t.child=null),ka(e,t,i,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&bo(t,!0),t.child}function Ta(e){var t=e.stateNode;t.pendingContext?ho(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ho(0,t.context,!1),Zo(e,t.containerInfo)}function Ea(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){switch(o.tag){case 12:var a=0|o.stateNode;if(o.type===t&&0!=(a&n)){for(a=o;null!==a;){var i=a.alternate;if(0===a.expirationTime||a.expirationTime>r)a.expirationTime=r,null!==i&&(0===i.expirationTime||i.expirationTime>r)&&(i.expirationTime=r);else{if(null===i||!(0===i.expirationTime||i.expirationTime>r))break;i.expirationTime=r}a=a.return}a=null}else a=o.child;break;case 13:a=o.type===e.type?null:o.child;break;default:a=o.child}if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===e){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}}function Oa(e,t){if(null!==e&&t.child!==e.child&&d("153"),null!==t.child){var n=yo(e=t.child,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=yo(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function ja(e,t,n){if(0===t.expirationTime||t.expirationTime>n){switch(t.tag){case 3:Ta(t);break;case 2:go(t);break;case 4:Zo(t,t.stateNode.containerInfo);break;case 13:Ko(t)}return null}switch(t.tag){case 0:null!==e&&d("155");var r=t.type,o=t.pendingProps,a=so(t);return r=r(o,a=uo(t,a)),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(a=t.type,t.tag=2,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,"function"==typeof(a=a.getDerivedStateFromProps)&&na(t,a,o),o=go(t),r.updater=ra,t.stateNode=r,r._reactInternalFiber=t,ia(t,n),e=Sa(e,t,!0,o,n)):(t.tag=1,xa(e,t,r),t.memoizedProps=o,e=t.child),e;case 1:return o=t.type,n=t.pendingProps,io.current||t.memoizedProps!==n?(o=o(n,r=uo(t,r=so(t))),t.effectTag|=1,xa(e,t,o),t.memoizedProps=n,e=t.child):e=Oa(e,t),e;case 2:if(o=go(t),null===e)if(null===t.stateNode){var i=t.pendingProps,l=t.type;r=so(t);var s=2===t.tag&&null!=t.type.contextTypes;i=new l(i,a=s?uo(t,r):p),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=ra,t.stateNode=i,i._reactInternalFiber=t,s&&((s=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,s.__reactInternalMemoizedMaskedChildContext=a),ia(t,n),r=!0}else{l=t.type,r=t.stateNode,s=t.memoizedProps,a=t.pendingProps,r.props=s;var u=r.context;i=uo(t,i=so(t));var c=l.getDerivedStateFromProps;(l="function"==typeof c||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(s!==a||u!==i)&&aa(t,r,a,i),Po=!1;var f=t.memoizedState;u=r.state=f;var h=t.updateQueue;null!==h&&(Io(t,h,a,r,n),u=t.memoizedState),s!==a||f!==u||io.current||Po?("function"==typeof c&&(na(t,c,a),u=t.memoizedState),(s=Po||oa(t,s,a,f,u,i))?(l||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(t.effectTag|=4)):("function"==typeof r.componentDidMount&&(t.effectTag|=4),t.memoizedProps=a,t.memoizedState=u),r.props=a,r.state=u,r.context=i,r=s):("function"==typeof r.componentDidMount&&(t.effectTag|=4),r=!1)}else l=t.type,r=t.stateNode,a=t.memoizedProps,s=t.pendingProps,r.props=a,u=r.context,i=uo(t,i=so(t)),(l="function"==typeof(c=l.getDerivedStateFromProps)||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(a!==s||u!==i)&&aa(t,r,s,i),Po=!1,u=t.memoizedState,f=r.state=u,null!==(h=t.updateQueue)&&(Io(t,h,s,r,n),f=t.memoizedState),a!==s||u!==f||io.current||Po?("function"==typeof c&&(na(t,c,s),f=t.memoizedState),(c=Po||oa(t,a,s,u,f,i))?(l||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(s,f,i),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(s,f,i)),"function"==typeof r.componentDidUpdate&&(t.effectTag|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof r.componentDidUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=s,t.memoizedState=f),r.props=s,r.state=f,r.context=i,r=c):("function"!=typeof r.componentDidUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Sa(e,t,r,o,n);case 3:return Ta(t),null!==(o=t.updateQueue)?(r=null!==(r=t.memoizedState)?r.element:null,Io(t,o,t.pendingProps,null,n),(o=t.memoizedState.element)===r?(wa(),e=Oa(e,t)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(ha=Zr(t.stateNode.containerInfo),fa=t,r=ma=!0),r?(t.effectTag|=2,t.child=da(t,null,o,n)):(wa(),xa(e,t,o)),e=t.child)):(wa(),e=Oa(e,t)),e;case 5:return Xo(Qo.current),(o=Xo(Yo.current))!==(r=Cr(o,t.type))&&(oo(Jo,t),oo(Yo,r)),null===e&&va(t),o=t.type,s=t.memoizedProps,r=t.pendingProps,a=null!==e?e.memoizedProps:null,io.current||s!==r||((s=1&t.mode&&!!r.hidden)&&(t.expirationTime=1073741823),s&&1073741823===n)?(s=r.children,$r(o,r)?s=null:a&&$r(o,a)&&(t.effectTag|=16),Ca(e,t),1073741823!==n&&1&t.mode&&r.hidden?(t.expirationTime=1073741823,t.memoizedProps=r,e=null):(xa(e,t,s),t.memoizedProps=r,e=t.child)):e=Oa(e,t),e;case 6:return null===e&&va(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 4:return Zo(t,t.stateNode.containerInfo),o=t.pendingProps,io.current||t.memoizedProps!==o?(null===e?t.child=pa(t,null,o,n):xa(e,t,o),t.memoizedProps=o,e=t.child):e=Oa(e,t),e;case 14:return o=t.type.render,n=t.pendingProps,r=t.ref,io.current||t.memoizedProps!==n||r!==(null!==e?e.ref:null)?(xa(e,t,o=o(n,r)),t.memoizedProps=n,e=t.child):e=Oa(e,t),e;case 10:return n=t.pendingProps,io.current||t.memoizedProps!==n?(xa(e,t,n),t.memoizedProps=n,e=t.child):e=Oa(e,t),e;case 11:return n=t.pendingProps.children,io.current||null!==n&&t.memoizedProps!==n?(xa(e,t,n),t.memoizedProps=n,e=t.child):e=Oa(e,t),e;case 15:return n=t.pendingProps,t.memoizedProps===n?e=Oa(e,t):(xa(e,t,n.children),t.memoizedProps=n,e=t.child),e;case 13:return function(e,t,n){var r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=!0;if(io.current)i=!1;else if(a===o)return t.stateNode=0,Ko(t),Oa(e,t);var l=o.value;if(t.memoizedProps=o,null===a)l=1073741823;else if(a.value===o.value){if(a.children===o.children&&i)return t.stateNode=0,Ko(t),Oa(e,t);l=0}else{var s=a.value;if(s===l&&(0!==s||1/s==1/l)||s!=s&&l!=l){if(a.children===o.children&&i)return t.stateNode=0,Ko(t),Oa(e,t);l=0}else if(l="function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,l):1073741823,0==(l|=0)){if(a.children===o.children&&i)return t.stateNode=0,Ko(t),Oa(e,t)}else Ea(t,r,l,n)}return t.stateNode=l,Ko(t),xa(e,t,o.children),t.child}(e,t,n);case 12:e:if(r=t.type,a=t.pendingProps,s=t.memoizedProps,o=r._currentValue,i=r._changedBits,io.current||0!==i||s!==a){if(t.memoizedProps=a,void 0!==(l=a.unstable_observedBits)&&null!==l||(l=1073741823),t.stateNode=l,0!=(i&l))Ea(t,r,i,n);else if(s===a){e=Oa(e,t);break e}n=(n=a.children)(o),t.effectTag|=1,xa(e,t,n),e=t.child}else e=Oa(e,t);return e;default:d("156")}}function Pa(e){e.effectTag|=4}var za=void 0,Aa=void 0,Fa=void 0;function Na(e,t){var n=t.pendingProps;switch(t.tag){case 1:return null;case 2:return po(t),null;case 3:ea(),fo();var r=t.stateNode;return r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(_a(t),t.effectTag&=-3),za(t),null;case 5:ta(t),r=Xo(Qo.current);var o=t.type;if(null!==e&&null!=t.stateNode){var a=e.memoizedProps,i=t.stateNode,l=Xo(Yo.current);i=qr(i,o,a,n,r),Aa(e,t,i,o,a,n,r,l),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!n)return null===t.stateNode&&d("166"),null;if(e=Xo(Yo.current),_a(t))n=t.stateNode,o=t.type,a=t.memoizedProps,n[U]=t,n[B]=a,r=Br(n,o,a,e,r),t.updateQueue=r,null!==r&&Pa(t);else{(e=Rr(o,n,r,e))[U]=t,e[B]=n;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}Ir(e,o,n,r),Gr(o,n)&&Pa(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Fa(e,t,e.memoizedProps,n);else{if("string"!=typeof n)return null===t.stateNode&&d("166"),null;r=Xo(Qo.current),Xo(Yo.current),_a(t)?(r=t.stateNode,n=t.memoizedProps,r[U]=t,Vr(r,n)&&Pa(t)):((r=Lr(n,r))[U]=t,t.stateNode=r)}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return ea(),za(t),null;case 13:return Go(t),null;case 12:return null;case 0:d("167");default:d("156")}}function Da(e,t){var n=t.source;null===t.stack&&null!==n&&_t(n),null!==n&&yt(n),t=t.value,null!==e&&2===e.tag&&yt(e);try{t&&t.suppressReactErrorLogging||console.error(t)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}}function Ma(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){pi(e,t)}else t.current=null}function Ra(e){switch(jo(e),e.tag){case 2:Ma(e);var t=e.stateNode;if("function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){pi(e,t)}break;case 5:Ma(e);break;case 4:qa(e)}}function La(e){return 5===e.tag||3===e.tag||4===e.tag}function Ia(e){e:{for(var t=e.return;null!==t;){if(La(t)){var n=t;break e}t=t.return}d("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:d("161")}16&n.effectTag&&(Or(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||La(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)if(n)if(r){var a=t,i=o.stateNode,l=n;8===a.nodeType?a.parentNode.insertBefore(i,l):a.insertBefore(i,l)}else t.insertBefore(o.stateNode,n);else r?(a=t,i=o.stateNode,8===a.nodeType?a.parentNode.insertBefore(i,a):a.appendChild(i)):t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function qa(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&d("160"),n.tag){case 5:r=n.stateNode,o=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var a=t,i=a;;)if(Ra(i),null!==i.child&&4!==i.tag)i.child.return=i,i=i.child;else{if(i===a)break;for(;null===i.sibling;){if(null===i.return||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}o?(a=r,i=t.stateNode,8===a.nodeType?a.parentNode.removeChild(i):a.removeChild(i)):r.removeChild(t.stateNode)}else if(4===t.tag?r=t.stateNode.containerInfo:Ra(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Ua(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var o=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&(n[B]=r,Ur(n,a,o,e,r))}break;case 6:null===t.stateNode&&d("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 15:case 16:break;default:d("163")}}function Ba(e,t,n){(n=Fo(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$i(r),Da(e,t)},n}function Va(e,t,n){(n=Fo(n)).tag=3;var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===ii?ii=new Set([this]):ii.add(this);var n=t.value,r=t.stack;Da(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function Ha(e,t,n,r,o,a){n.effectTag|=512,n.firstEffect=n.lastEffect=null,r=Bo(r,n),e=t;do{switch(e.tag){case 3:return e.effectTag|=1024,void Mo(e,r=Ba(e,r,a),a);case 2:if(t=r,n=e.stateNode,0==(64&e.effectTag)&&null!==n&&"function"==typeof n.componentDidCatch&&(null===ii||!ii.has(n)))return e.effectTag|=1024,void Mo(e,r=Va(e,t,a),a)}e=e.return}while(null!==e)}function Wa(e){switch(e.tag){case 2:po(e);var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return ea(),fo(),1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 5:return ta(e),null;case 16:return 1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 4:return ea(),null;case 13:return Go(e),null;default:return null}}za=function(){},Aa=function(e,t,n){(t.updateQueue=n)&&Pa(t)},Fa=function(e,t,n,r){n!==r&&Pa(t)};var Ka=Yr(),Ga=2,$a=Ka,Ya=0,Ja=0,Qa=!1,Xa=null,Za=null,ei=0,ti=-1,ni=!1,ri=null,oi=!1,ai=!1,ii=null;function li(){if(null!==Xa)for(var e=Xa.return;null!==e;){var t=e;switch(t.tag){case 2:po(t);break;case 3:ea(),fo();break;case 5:ta(t);break;case 4:ea();break;case 13:Go(t)}e=e.return}Za=null,ei=0,ti=-1,ni=!1,Xa=null,ai=!1}function si(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(512&e.effectTag)){t=Na(t,e);var o=e;if(1073741823===ei||1073741823!==o.expirationTime){var a=0;switch(o.tag){case 3:case 2:var i=o.updateQueue;null!==i&&(a=i.expirationTime)}for(i=o.child;null!==i;)0!==i.expirationTime&&(0===a||a>i.expirationTime)&&(a=i.expirationTime),i=i.sibling;o.expirationTime=a}if(null!==t)return t;if(null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){ai=!0;break}e=n}else{if(null!==(e=Wa(e)))return e.effectTag&=511,e;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==r)return r;if(null===n)break;e=n}}return null}function ui(e){var t=ja(e.alternate,e,ei);return null===t&&(t=si(e)),at.current=null,t}function ci(e,t,n){Qa&&d("243"),Qa=!0,t===ei&&e===Za&&null!==Xa||(li(),ei=t,ti=-1,Xa=yo((Za=e).current,null,ei),e.pendingCommitExpirationTime=0);var r=!1;for(ni=!n||ei<=Ga;;){try{if(n)for(;null!==Xa&&!Gi();)Xa=ui(Xa);else for(;null!==Xa;)Xa=ui(Xa)}catch(t){if(null===Xa)r=!0,$i(t);else{null===Xa&&d("271");var o=(n=Xa).return;if(null===o){r=!0,$i(t);break}Ha(e,o,n,t,0,ei),Xa=si(n)}}break}if(Qa=!1,r)return null;if(null===Xa){if(ai)return e.pendingCommitExpirationTime=t,e.current.alternate;ni&&d("262"),0<=ti&&setTimeout(function(){var t=e.current.expirationTime;0!==t&&(0===e.remainingExpirationTime||e.remainingExpirationTime<t)&&Li(e,t)},ti),function(e){null===ki&&d("246"),ki.remainingExpirationTime=e}(e.current.expirationTime)}return null}function pi(e,t){var n;e:{for(Qa&&!oi&&d("263"),n=e.return;null!==n;){switch(n.tag){case 2:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof r.componentDidCatch&&(null===ii||!ii.has(r))){Do(n,e=Va(n,e=Bo(t,e),1),1),hi(n,1),n=void 0;break e}break;case 3:Do(n,e=Ba(n,e=Bo(t,e),1),1),hi(n,1),n=void 0;break e}n=n.return}3===e.tag&&(Do(e,n=Ba(e,n=Bo(t,e),1),1),hi(e,1)),n=void 0}return n}function di(){var e=2+25*(1+((mi()-2+500)/25|0));return e<=Ya&&(e=Ya+1),Ya=e}function fi(e,t){return e=0!==Ja?Ja:Qa?oi?1:ei:1&t.mode?Ai?2+10*(1+((e-2+15)/10|0)):2+25*(1+((e-2+500)/25|0)):1,Ai&&(0===Si||e>Si)&&(Si=e),e}function hi(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!Qa&&0!==ei&&t<ei&&li();var r=n.current.expirationTime;Qa&&!oi&&Za===n||Li(n,r),Di>Ni&&d("185")}e=e.return}}function mi(){return $a=Yr()-Ka,Ga=2+($a/10|0)}function gi(e){var t=Ja;Ja=2+25*(1+((mi()-2+500)/25|0));try{return e()}finally{Ja=t}}function bi(e,t,n,r,o){var a=Ja;Ja=1;try{return e(t,n,r,o)}finally{Ja=a}}var vi=null,yi=null,_i=0,wi=-1,xi=!1,ki=null,Ci=0,Si=0,Ti=!1,Ei=!1,Oi=null,ji=null,Pi=!1,zi=!1,Ai=!1,Fi=null,Ni=1e3,Di=0,Mi=1;function Ri(e){if(0!==_i){if(e>_i)return;Qr(wi)}var t=Yr()-Ka;_i=e,wi=Jr(qi,{timeout:10*(e-2)-t})}function Li(e,t){if(null===e.nextScheduledRoot)e.remainingExpirationTime=t,null===yi?(vi=yi=e,e.nextScheduledRoot=e):(yi=yi.nextScheduledRoot=e).nextScheduledRoot=vi;else{var n=e.remainingExpirationTime;(0===n||t<n)&&(e.remainingExpirationTime=t)}xi||(Pi?zi&&(ki=e,Ci=1,Wi(e,1,!1)):1===t?Ui():Ri(t))}function Ii(){var e=0,t=null;if(null!==yi)for(var n=yi,r=vi;null!==r;){var o=r.remainingExpirationTime;if(0===o){if((null===n||null===yi)&&d("244"),r===r.nextScheduledRoot){vi=yi=r.nextScheduledRoot=null;break}if(r===vi)vi=o=r.nextScheduledRoot,yi.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===yi){(yi=n).nextScheduledRoot=vi,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===e||o<e)&&(e=o,t=r),r===yi)break;n=r,r=r.nextScheduledRoot}}null!==(n=ki)&&n===t&&1===e?Di++:Di=0,ki=t,Ci=e}function qi(e){Bi(0,!0,e)}function Ui(){Bi(1,!1,null)}function Bi(e,t,n){if(ji=n,Ii(),t)for(;null!==ki&&0!==Ci&&(0===e||e>=Ci)&&(!Ti||mi()>=Ci);)mi(),Wi(ki,Ci,!Ti),Ii();else for(;null!==ki&&0!==Ci&&(0===e||e>=Ci);)Wi(ki,Ci,!1),Ii();null!==ji&&(_i=0,wi=-1),0!==Ci&&Ri(Ci),ji=null,Ti=!1,Hi()}function Vi(e,t){xi&&d("253"),ki=e,Ci=t,Wi(e,t,!1),Ui(),Hi()}function Hi(){if(Di=0,null!==Fi){var e=Fi;Fi=null;for(var t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){Ei||(Ei=!0,Oi=e)}}}if(Ei)throw e=Oi,Oi=null,Ei=!1,e}function Wi(e,t,n){xi&&d("245"),xi=!0,n?null!==(n=e.finishedWork)?Ki(e,n,t):(e.finishedWork=null,null!==(n=ci(e,t,!0))&&(Gi()?e.finishedWork=n:Ki(e,n,t))):null!==(n=e.finishedWork)?Ki(e,n,t):(e.finishedWork=null,null!==(n=ci(e,t,!1))&&Ki(e,n,t)),xi=!1}function Ki(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime<=n&&(null===Fi?Fi=[r]:Fi.push(r),r._defer))return e.finishedWork=t,void(e.remainingExpirationTime=0);if(e.finishedWork=null,oi=Qa=!0,(n=t.stateNode).current===t&&d("177"),0===(r=n.pendingCommitExpirationTime)&&d("261"),n.pendingCommitExpirationTime=0,mi(),at.current=null,1<t.effectTag)if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var o=t.firstEffect}else o=t;else o=t.firstEffect;Wr=jn;var a=s();if(Bn(a)){if("selectionStart"in a)var i={start:a.selectionStart,end:a.selectionEnd};else e:{var l=window.getSelection&&window.getSelection();if(l&&0!==l.rangeCount){i=l.anchorNode;var u=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{i.nodeType,p.nodeType}catch(e){i=null;break e}var f=0,h=-1,m=-1,g=0,b=0,v=a,y=null;t:for(;;){for(var _;v!==i||0!==u&&3!==v.nodeType||(h=f+u),v!==p||0!==l&&3!==v.nodeType||(m=f+l),3===v.nodeType&&(f+=v.nodeValue.length),null!==(_=v.firstChild);)y=v,v=_;for(;;){if(v===a)break t;if(y===i&&++g===u&&(h=f),y===p&&++b===l&&(m=f),null!==(_=v.nextSibling))break;y=(v=y).parentNode}v=_}i=-1===h||-1===m?null:{start:h,end:m}}else i=null}i=i||{start:0,end:0}}else i=null;for(Kr={focusedElem:a,selectionRange:i},Pn(!1),ri=o;null!==ri;){a=!1,i=void 0;try{for(;null!==ri;){if(256&ri.effectTag){var w=ri.alternate;switch((u=ri).tag){case 2:if(256&u.effectTag&&null!==w){var x=w.memoizedProps,k=w.memoizedState,C=u.stateNode;C.props=u.memoizedProps,C.state=u.memoizedState;var S=C.getSnapshotBeforeUpdate(x,k);C.__reactInternalSnapshotBeforeUpdate=S}break;case 3:case 5:case 6:case 4:break;default:d("163")}}ri=ri.nextEffect}}catch(e){a=!0,i=e}a&&(null===ri&&d("178"),pi(ri,i),null!==ri&&(ri=ri.nextEffect))}for(ri=o;null!==ri;){w=!1,x=void 0;try{for(;null!==ri;){var T=ri.effectTag;if(16&T&&Or(ri.stateNode,""),128&T){var E=ri.alternate;if(null!==E){var O=E.ref;null!==O&&("function"==typeof O?O(null):O.current=null)}}switch(14&T){case 2:Ia(ri),ri.effectTag&=-3;break;case 6:Ia(ri),ri.effectTag&=-3,Ua(ri.alternate,ri);break;case 4:Ua(ri.alternate,ri);break;case 8:qa(k=ri),k.return=null,k.child=null,k.alternate&&(k.alternate.child=null,k.alternate.return=null)}ri=ri.nextEffect}}catch(e){w=!0,x=e}w&&(null===ri&&d("178"),pi(ri,x),null!==ri&&(ri=ri.nextEffect))}if(O=Kr,E=s(),T=O.focusedElem,w=O.selectionRange,E!==T&&c(document.documentElement,T)){Bn(T)&&(E=w.start,void 0===(O=w.end)&&(O=E),"selectionStart"in T?(T.selectionStart=E,T.selectionEnd=Math.min(O,T.value.length)):window.getSelection&&(E=window.getSelection(),x=T[he()].length,O=Math.min(w.start,x),w=void 0===w.end?O:Math.min(w.end,x),!E.extend&&O>w&&(x=w,w=O,O=x),x=Un(T,O),k=Un(T,w),x&&k&&(1!==E.rangeCount||E.anchorNode!==x.node||E.anchorOffset!==x.offset||E.focusNode!==k.node||E.focusOffset!==k.offset)&&((C=document.createRange()).setStart(x.node,x.offset),E.removeAllRanges(),O>w?(E.addRange(C),E.extend(k.node,k.offset)):(C.setEnd(k.node,k.offset),E.addRange(C))))),E=[];for(O=T;O=O.parentNode;)1===O.nodeType&&E.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(T.focus(),T=0;T<E.length;T++)(O=E[T]).element.scrollLeft=O.left,O.element.scrollTop=O.top}for(Kr=null,Pn(Wr),Wr=null,n.current=t,ri=o;null!==ri;){o=!1,T=void 0;try{for(E=r;null!==ri;){var j=ri.effectTag;if(36&j){var P=ri.alternate;switch(w=E,(O=ri).tag){case 2:var z=O.stateNode;if(4&O.effectTag)if(null===P)z.props=O.memoizedProps,z.state=O.memoizedState,z.componentDidMount();else{var A=P.memoizedProps,F=P.memoizedState;z.props=O.memoizedProps,z.state=O.memoizedState,z.componentDidUpdate(A,F,z.__reactInternalSnapshotBeforeUpdate)}var N=O.updateQueue;null!==N&&(z.props=O.memoizedProps,z.state=O.memoizedState,Uo(O,N,z));break;case 3:var D=O.updateQueue;if(null!==D){if(x=null,null!==O.child)switch(O.child.tag){case 5:x=O.child.stateNode;break;case 2:x=O.child.stateNode}Uo(O,D,x)}break;case 5:var M=O.stateNode;null===P&&4&O.effectTag&&Gr(O.type,O.memoizedProps)&&M.focus();break;case 6:case 4:case 15:case 16:break;default:d("163")}}if(128&j){O=void 0;var R=ri.ref;if(null!==R){var L=ri.stateNode;switch(ri.tag){case 5:O=L;break;default:O=L}"function"==typeof R?R(O):R.current=O}}var I=ri.nextEffect;ri.nextEffect=null,ri=I}}catch(e){o=!0,T=e}o&&(null===ri&&d("178"),pi(ri,T),null!==ri&&(ri=ri.nextEffect))}Qa=oi=!1,Oo(t.stateNode),0===(t=n.current.expirationTime)&&(ii=null),e.remainingExpirationTime=t}function Gi(){return!(null===ji||ji.timeRemaining()>Mi)&&(Ti=!0)}function $i(e){null===ki&&d("246"),ki.remainingExpirationTime=0,Ei||(Ei=!0,Oi=e)}function Yi(e,t){var n=Pi;Pi=!0;try{return e(t)}finally{(Pi=n)||xi||Ui()}}function Ji(e,t){if(Pi&&!zi){zi=!0;try{return e(t)}finally{zi=!1}}return e(t)}function Qi(e,t){xi&&d("187");var n=Pi;Pi=!0;try{return bi(e,t)}finally{Pi=n,Ui()}}function Xi(e){var t=Pi;Pi=!0;try{bi(e)}finally{(Pi=t)||xi||Bi(1,!1,null)}}function Zi(e,t,n,r,o){var a=t.current;if(n){var i;n=n._reactInternalFiber;e:{for(2===an(n)&&2===n.tag||d("170"),i=n;3!==i.tag;){if(co(i)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}(i=i.return)||d("171")}i=i.stateNode.context}n=co(n)?mo(n,i):i}else n=p;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=Fo(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Do(a,o,r),hi(a,r),r}function el(e){var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?d("188"):d("268",Object.keys(e))),null===(e=un(t))?null:e.stateNode}function tl(e,t,n,r){var o=t.current;return Zi(e,t,n,o=fi(mi(),o),r)}function nl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function rl(e){var t=e.findFiberByHostInstance;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);So=Eo(function(e){return t.onCommitFiberRoot(n,e)}),To=Eo(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}(i({},e,{findHostInstanceByFiber:function(e){return null===(e=un(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}var ol=Yi,al=function(e,t,n){if(Ai)return e(t,n);Pi||xi||0===Si||(Bi(Si,!1,null),Si=0);var r=Ai,o=Pi;Pi=Ai=!0;try{return e(t,n)}finally{Ai=r,(Pi=o)||xi||Ui()}},il=function(){xi||0===Si||(Bi(Si,!1,null),Si=0)};function ll(e){this._expirationTime=di(),this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function sl(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function ul(e,t,n){this._internalRoot=Co(e,t,n)}function cl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function pl(e,t,n,r,o){cl(n)||d("200");var a=n._reactRootContainer;if(a){if("function"==typeof o){var i=o;o=function(){var e=nl(a._internalRoot);i.call(e)}}null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ul(e,!1,t)}(n,r),"function"==typeof o){var l=o;o=function(){var e=nl(a._internalRoot);l.call(e)}}Ji(function(){null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)})}return nl(a._internalRoot)}function dl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return cl(t)||d("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:st,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ie.injectFiberControlledHostComponent(Hr),ll.prototype.render=function(e){this._defer||d("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new sl;return Zi(e,t,null,n,r._onCommit),r},ll.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},ll.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||d("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;null===r&&d("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,Vi(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},ll.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},sl.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},sl.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&d("191",n),n()}}},ul.prototype.render=function(e,t){var n=this._internalRoot,r=new sl;return null!==(t=void 0===t?null:t)&&r.then(t),tl(e,n,null,r._onCommit),r},ul.prototype.unmount=function(e){var t=this._internalRoot,n=new sl;return null!==(e=void 0===e?null:e)&&n.then(e),tl(null,t,null,n._onCommit),n},ul.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,o=new sl;return null!==(n=void 0===n?null:n)&&o.then(n),tl(t,r,e,o._onCommit),o},ul.prototype.createBatch=function(){var e=new ll(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime<=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Ge=ol,$e=al,Ye=il;var fl={createPortal:dl,findDOMNode:function(e){return null==e?null:1===e.nodeType?e:el(e)},hydrate:function(e,t,n){return pl(null,e,t,!0,n)},render:function(e,t,n){return pl(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&d("38"),pl(e,t,n,!1,r)},unmountComponentAtNode:function(e){return cl(e)||d("40"),!!e._reactRootContainer&&(Ji(function(){pl(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return dl.apply(void 0,arguments)},unstable_batchedUpdates:Yi,unstable_deferredUpdates:gi,flushSync:Qi,unstable_flushControlled:Xi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:I,EventPluginRegistry:C,EventPropagators:ne,ReactControlledComponent:Ke,ReactDOMComponentTree:K,ReactDOMEventListener:Dn},unstable_createRoot:function(e,t){return new ul(e,!0,null!=t&&!0===t.hydrate)}};rl({findFiberByHostInstance:V,bundleType:0,version:"16.4.0",rendererPackageName:"react-dom"});var hl={default:fl},ml=hl&&fl||hl;e.exports=ml.default?ml.default:ml},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i<n.length;i++)if(!r.call(t,n[i])||!o(e[n[i]],t[n[i]]))return!1;return!0}},function(e,t,n){"use strict";var r=n(28);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=h(a),l=h(n(13)),s=h(n(2)),u=h(n(33)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(16)),p=n(8),d=h(p),f=n(38);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=t.portalClassName="ReactModalPortal",b=t.bodyOpenClassName="ReactModal__Body--open",v=void 0!==l.default.createPortal,y=v?l.default.createPortal:l.default.unstable_renderSubtreeIntoContainer;function _(e){return e()}var w=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return n=o=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),o.removePortal=function(){!v&&l.default.unmountComponentAtNode(o.node),_(o.props.parentSelector).removeChild(o.node)},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=y(o,i.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},m(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"componentDidMount",value:function(){p.canUseDOM&&(v||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName,_(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:_(e.parentSelector),nextParent:_(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(p.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;if(e.portalClassName!==a&&(this.node.className=a),e.isOpen||o){var i=n.prevParent,l=n.nextParent;l!==i&&(i.removeChild(this.node),l.appendChild(this.node)),!v&&this.renderPortal(this.props)}}}},{key:"componentWillUnmount",value:function(){if(p.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return p.canUseDOM&&v?(!this.node&&v&&(this.node=document.createElement("div")),y(i.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}();w.propTypes={isOpen:s.default.bool.isRequired,style:s.default.shape({content:s.default.object,overlay:s.default.object}),portalClassName:s.default.string,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,className:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),overlayClassName:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),appElement:s.default.instanceOf(d.default),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,ariaHideApp:s.default.bool,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,parentSelector:s.default.func,aria:s.default.object,role:s.default.string,contentLabel:s.default.string,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func},w.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:b,ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},w.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,f.polyfill)(w),t.default=w},function(e,t,n){"use strict";var r=n(7),o=n(6),a=n(32);e.exports=function(){function e(e,t,n,r,i,l){l!==a&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=m(i),s=m(n(2)),u=h(n(34)),c=m(n(35)),p=h(n(16)),d=h(n(37)),f=m(n(8));function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}var g={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},b=9,v=27,y=0,_=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName;d.remove(document.body,a),o&&d.remove(document.getElementsByTagName("html")[0],o),r&&y>0&&0===(y-=1)&&p.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(u.returnFocus(),u.teardownScopedFocus()):u.popWithoutFocus())},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(u.setupScopedFocus(n.node),u.markForFocusLater()),n.setState({isOpen:!0},function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen()}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){e.keyCode===b&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&e.keyCode===v&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},a=r.base;return n.state.afterOpen&&(a=a+" "+r.afterOpen),n.state.beforeClose&&(a=a+" "+r.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.ariaAttributes=function(e){return Object.keys(e).reduce(function(t,n){return t["aria-"+n]=e[n],t},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;d.add(document.body,o),r&&d.add(document.getElementsByTagName("html")[0],r),n&&(y+=1,p.hide(t))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.overlayClassName,o=e.defaultStyles,a=t?{}:o.content,i=n?{}:o.overlay;return this.shouldBeClosed()?null:l.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",n),style:r({},i,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown,"aria-modal":"true"},l.default.createElement("div",r({ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",t),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.ariaAttributes(this.props.aria||{}),{"data-testid":this.props.testId}),this.props.children))}}]),t}();_.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},_.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.instanceOf(f.default),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,testId:s.default.string},t.default=_,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return void(0!==i.length&&(e=i.pop()).focus())}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var r,o=n(15),a=(r=o)&&r.__esModule?r:{default:r};var i=[],l=null,s=!1;function u(){s=!0}function c(){if(s){if(s=!1,!l)return;setTimeout(function(){l.contains(document.activeElement)||((0,a.default)(l)[0]||l).focus()},0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,a.default)(e);if(!n.length)return void t.preventDefault();var r,o=t.shiftKey,i=n[0],l=n[n.length-1];if(e===document.activeElement){if(!o)return;r=l}l!==document.activeElement||o||(r=i);i===document.activeElement&&o&&(r=l);if(r)return t.preventDefault(),void r.focus();var s=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==s||"Chrome"==s[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var u=n.indexOf(document.activeElement);u>-1&&(u+=o?-1:1);t.preventDefault(),n[u].focus()};var r,o=n(15),a=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=function(){};var r={},o={};t.add=function(e,t){return n=e.classList,a="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),n.add(e)});var n,a},t.remove=function(e,t){return n=e.classList,a="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&n.remove(e)});var n,a}},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==l){var s=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"polyfill",function(){return i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},function(module,exports,__webpack_require__){!function(e,t){e.document&&("object"==typeof module&&module.exports?module.exports=t(e,__webpack_require__(40)):e.uploadcare=t(e))}("undefined"!=typeof window?window:this,function(e,r){var a,n=e.document;return function(){(a={__exports:{}}).namespace=function(e,t){var n,r,o,i,l;if(r=a,e)for(o=0,i=(l=e.split(".")).length;i>o;o++)r[n=l[o]]||(r[n]={}),r=r[n];return t(r)},a.expose=function(e,t){var n,r,o,i,l,s,u;for(n=(o=e.split(".")).pop(),l=a.__exports,i=a,s=0,u=o.length;u>s;s++)l[r=o[s]]||(l[r]={}),l=l[r],i=null!=i?i[r]:void 0;return l[n]=t||i[n]}}.call(this),function(){var t,n;if((n=a).version="3.4.0",n.jQuery=r||e.jQuery,void 0===n.jQuery)throw new ReferenceError("jQuery is not defined");(t=n.expose)("version"),t("jQuery"),t("plugin",function(e){return e(n)})}.call(this),e.XDomainRequest&&a.jQuery.ajaxTransport(function(e){var t;if(e.crossDomain&&e.async)return e.timeout&&(e.xdrTimeout=e.timeout,delete e.timeout),{send:function(n,r){function o(e,n,o,a){t.onload=t.onerror=t.ontimeout=function(){},t=void 0,r(e,n,o,a)}(t=new XDomainRequest).onload=function(){o(200,"OK",{text:t.responseText},"Content-Type: "+t.contentType)},t.onerror=function(){o(404,"Not Found")},t.onprogress=function(){},t.ontimeout=function(){o(0,"timeout")},t.timeout=e.xdrTimeout||Number.MAX_VALUE,t.open(e.type,e.url.replace(/^https?:/,"")),t.send(e.hasContent&&e.data||null)},abort:function(){t&&(t.onerror=function(){},t.abort())}}}),function(){a.namespace("utils.abilities",function(t){var r,o,a,i;t.fileAPI=!!(e.File&&e.FileList&&e.FileReader),t.sendFileAPI=!(!e.FormData||!t.fileAPI),t.dragAndDrop=function(){var e;return"draggable"in(e=n.createElement("div"))||"ondragstart"in e&&"ondrop"in e}(),t.canvas=function(){var e;return!(!(e=n.createElement("canvas")).getContext||!e.getContext("2d"))}(),t.fileDragAndDrop=t.fileAPI&&t.dragAndDrop,t.iOSVersion=null,(r=/^[^(]+\(iP(?:hone|od|ad);\s*(.+?)\)/.exec(navigator.userAgent))&&(a=/OS (\d)_(\d)/.exec(r[1]))&&(t.iOSVersion=+a[1]+a[2]/10),t.Blob=!1;try{new e.Blob&&(t.Blob=e.Blob)}catch(e){}return o=e.URL||e.webkitURL||!1,t.URL=o&&o.createObjectURL&&o,t.FileReader=(null!=(i=e.FileReader)?i.prototype.readAsArrayBuffer:void 0)&&e.FileReader})}.call(this),function(){var e,t={}.hasOwnProperty,n=function(e,n){for(var r in n)t.call(n,r)&&(e[r]=n[r]);function o(){this.constructor=e}return o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype,e},r=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1},o=function(e,t){return function(){return e.apply(t,arguments)}},i=[].slice;e=a.jQuery,a.namespace("utils",function(t){return t.Collection=function(){function t(t){var n,r,o;for(null==t&&(t=[]),this.onAdd=e.Callbacks(),this.onRemove=e.Callbacks(),this.onSort=e.Callbacks(),this.onReplace=e.Callbacks(),this.__items=[],r=0,o=t.length;o>r;r++)n=t[r],this.add(n)}return t.prototype.add=function(e){return this.__add(e,this.__items.length)},t.prototype.__add=function(e,t){return this.__items.splice(t,0,e),this.onAdd.fire(e,t)},t.prototype.remove=function(t){var n;return-1!==(n=e.inArray(t,this.__items))?this.__remove(t,n):void 0},t.prototype.__remove=function(e,t){return this.__items.splice(t,1),this.onRemove.fire(e,t)},t.prototype.clear=function(){var e,t,n,r,o,a;for(n=this.get(),this.__items.length=0,a=[],e=r=0,o=n.length;o>r;e=++r)t=n[e],a.push(this.onRemove.fire(t,e));return a},t.prototype.replace=function(t,n){var r;return t!==n&&-1!==(r=e.inArray(t,this.__items))?this.__replace(t,n,r):void 0},t.prototype.__replace=function(e,t,n){return this.__items[n]=t,this.onReplace.fire(e,t,n)},t.prototype.sort=function(e){return this.__items.sort(e),this.onSort.fire()},t.prototype.get=function(e){return null!=e?this.__items[e]:this.__items.slice(0)},t.prototype.length=function(){return this.__items.length},t}(),t.UniqCollection=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return n(t,e),t.prototype.add=function(e){return r.call(this.__items,e)>=0?void 0:t.__super__.add.apply(this,arguments)},t.prototype.__replace=function(e,n,o){return r.call(this.__items,n)>=0?this.remove(e):t.__super__.__replace.apply(this,arguments)},t}(t.Collection),t.CollectionOfPromises=function(t){function a(){this.onAnyProgress=o(this.onAnyProgress,this),this.onAnyFail=o(this.onAnyFail,this),this.onAnyDone=o(this.onAnyDone,this),this.anyDoneList=e.Callbacks(),this.anyFailList=e.Callbacks(),this.anyProgressList=e.Callbacks(),this._thenArgs=null,this.anyProgressList.add(function(t,n){return e(t).data("lastProgress",n)}),a.__super__.constructor.apply(this,arguments)}return n(a,t),a.prototype.onAnyDone=function(e){var t,n,r,o,a;for(this.anyDoneList.add(e),a=[],n=0,r=(o=this.__items).length;r>n;n++)"resolved"===(t=o[n]).state()?a.push(t.done(function(){return e.apply(null,[t].concat(i.call(arguments)))})):a.push(void 0);return a},a.prototype.onAnyFail=function(e){var t,n,r,o,a;for(this.anyFailList.add(e),a=[],n=0,r=(o=this.__items).length;r>n;n++)"rejected"===(t=o[n]).state()?a.push(t.fail(function(){return e.apply(null,[t].concat(i.call(arguments)))})):a.push(void 0);return a},a.prototype.onAnyProgress=function(t){var n,r,o,a,i;for(this.anyProgressList.add(t),i=[],r=0,o=(a=this.__items).length;o>r;r++)n=a[r],i.push(t(n,e(n).data("lastProgress")));return i},a.prototype.lastProgresses=function(){var t,n,r,o,a;for(a=[],n=0,r=(o=this.__items).length;r>n;n++)t=o[n],a.push(e(t).data("lastProgress"));return a},a.prototype.add=function(e){return e&&e.then?(this._thenArgs&&(e=e.then.apply(e,this._thenArgs)),a.__super__.add.apply(this,arguments),this.__watchItem(e)):void 0},a.prototype.__replace=function(e,t,n){return t&&t.then?(a.__super__.__replace.apply(this,arguments),this.__watchItem(t)):this.remove(e)},a.prototype.__watchItem=function(e){var t,n=this;return t=function(t){return function(){return r.call(n.__items,e)>=0?t.fire.apply(t,[e].concat(i.call(arguments))):void 0}},e.then(t(this.anyDoneList),t(this.anyFailList),t(this.anyProgressList))},a.prototype.autoThen=function(){var e,t,n,r,o,a;if(this._thenArgs)throw new Error("CollectionOfPromises.then() could be used only once");for(this._thenArgs=arguments,a=[],e=n=0,r=(o=this.__items).length;r>n;e=++n)t=o[e],a.push(this.__replace(t,t.then.apply(t,this._thenArgs),e));return a},a}(t.UniqCollection)})}.call(this),function(){var e;e=a.jQuery,a.namespace("utils",function(t){var n;return n=function(t,n){var r;return r=e.Deferred(),n&&(t.src=n),t.complete?r.resolve(t):(e(t).one("load",function(){return r.resolve(t)}),e(t).one("error",function(){return r.reject(t)})),r.promise()},t.imageLoader=function(r){return e.isArray(r)?e.when.apply(null,e.map(r,t.imageLoader)):r.src?n(r):n(new Image,r)},t.videoLoader=function(t){var n;return n=e.Deferred(),e("<video/>").on("loadeddata",n.resolve).on("error",n.reject).attr("src",t).get(0).load(),n.promise()}})}.call(this),function(){var t=[].slice;a.namespace("utils",function(n){var r,o;return n.log=function(){var t;try{return null!=(t=e.console)&&"function"==typeof t.log?t.log.apply(t,arguments):void 0}catch(e){}},n.debug=function(){var r,o;if(null==(r=e.console)||!r.debug)return n.log.apply(n,["Debug:"].concat(t.call(arguments)));try{return(o=e.console).debug.apply(o,arguments)}catch(e){}},n.warn=function(){var r,o;if(null==(r=e.console)||!r.warn)return n.log.apply(n,["Warning:"].concat(t.call(arguments)));try{return(o=e.console).warn.apply(o,arguments)}catch(e){}},o={},n.warnOnce=function(e){return null==o[e]?(o[e]=!0,n.warn(e)):void 0},r={publicKey:"Global public key not set. Uploads may not work!\nAdd this to the <head> tag to set your key:\n\n<script>\nUPLOADCARE_PUBLIC_KEY = 'your_public_key';\n<\/script>"},n.commonWarning=function(e){return null!=r[e]?n.warnOnce(r[e]):void 0}})}.call(this),function(){var t;t=a.jQuery,a.namespace("utils",function(n){var r;return r={},t(e).on("message",function(e){var t,n,o,a,i,l,s;t=e.originalEvent;try{o=JSON.parse(t.data)}catch(e){return}if(o.type in r){for(s=[],a=0,i=(l=r[o.type]).length;i>a;a++)n=l[a],t.source===n[0]?s.push(n[1](o)):s.push(void 0);return s}}),n.registerMessage=function(e,t,n){return e in r||(r[e]=[]),r[e].push([t,n])},n.unregisterMessage=function(e,n){return e in r?r[e]=t.grep(r[e],function(e){return e[0]!==n}):void 0}})}.call(this),function(){var e,t=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1},r=[].slice;e=a.jQuery,a.namespace("utils",function(o){var a;return o.unique=function(e){var n,r,o,a;for(r=[],o=0,a=e.length;a>o;o++)n=e[o],t.call(r,n)<0&&r.push(n);return r},o.defer=function(e){return setTimeout(e,0)},o.gcd=function(e,t){for(var n;t;)n=e%t,e=t,t=n;return e},o.once=function(e){var t,n;return t=!1,n=null,function(){return t||(n=e.apply(this,arguments),t=!0),n}},o.wrapToPromise=function(t){return e.Deferred().resolve(t).promise()},o.then=function(t,n,r,o){var a,i;return i=e.Deferred(),a=function(e,t){return e&&t?function(){return t.call(this,e.apply(this,arguments))}:e||t},t.then(a(n,i.resolve),a(r,i.reject),a(o,i.notify)),i.promise()},o.bindAll=function(t,n){var r;return r={},e.each(n,function(n,o){var a;return a=t[o],e.isFunction(a)?r[o]=function(){var e;return(e=a.apply(t,arguments))===t?r:e}:r[o]=a}),r},o.upperCase=function(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()},o.publicCallbacks=function(e){var t;return(t=e.add).add=e.add,t.remove=e.remove,t},o.uuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t;return t=16*Math.random()|0,("x"===e?t:3&t|8).toString(16)})},o.splitUrlRegex=/^(?:([^:\/?#]+):)?(?:\/\/([^\/?\#]*))?([^?\#]*)\??([^\#]*)\#?(.*)$/,o.uuidRegex=/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i,o.groupIdRegex=new RegExp(o.uuidRegex.source+"~[0-9]+","i"),o.cdnUrlRegex=new RegExp("^/?("+o.uuidRegex.source+")(?:/(-/(?:[^/]+/)+)?([^/]*))?$","i"),o.splitCdnUrl=function(e){return o.cdnUrlRegex.exec(o.splitUrlRegex.exec(e)[3])},o.escapeRegExp=function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},o.globRegexp=function(t,n){var r;return null==n&&(n="i"),r=e.map(t.split("*"),o.escapeRegExp),new RegExp("^"+r.join(".+")+"$",n)},o.normalizeUrl=function(e){var t;return"http:"!==(t=n.location.protocol)&&(t="https:"),e.replace(/^\/\//,t+"//").replace(/\/+$/,"")},o.fitText=function(e,t){var n,r;return e.length>t?(n=Math.ceil((t-3)/2),r=Math.floor((t-3)/2),e.slice(0,n)+"..."+e.slice(-r)):e},o.fitSizeInCdnLimit=function(e){return o.fitSize(e,[2048,2048])},o.fitSize=function(e,t,n){var r,o;return e[0]>t[0]||e[1]>t[1]||n?(o=t[0]/e[0],r=t[1]/e[1],!t[0]||t[1]&&o>r?[Math.round(r*e[0]),t[1]]:[t[0],Math.round(o*e[1])]):e.slice()},o.applyCropCoordsToInfo=function(t,n,r,o){var a,i,l,s,u,c,p;return c=o.width,i=o.height,s=n.preferedSize,l="",(p=c===r[0]&&i===r[1])||(l+="-/crop/"+c+"x"+i+"/"+o.left+","+o.top+"/"),a=n.downscale&&(c>s[0]||i>s[1]),u=n.upscale&&(c<s[0]||i<s[1]),a||u?(o.sw=s[0],o.sh=s[1],l+="-/resize/"+s.join("x")+"/"):p||(l+="-/preview/"),(t=e.extend({},t)).cdnUrlModifiers=l,t.cdnUrl=""+t.originalUrl+(l||""),t.crop=o,t},o.fileInput=function(t,n,r){var o,a,i;return a=null,""===(o=n.inputAcceptTypes)&&(o=n.imagesOnly?"image/*":null),(i=function(){return a=e(n.multiple?'<input type="file" multiple>':'<input type="file">').attr("accept",o).css({position:"absolute",top:0,opacity:0,margin:0,padding:0,width:"auto",height:"auto",cursor:t.css("cursor")}).on("change",function(){return r(this),e(this).hide(),i()}),t.append(a)})(),t.css({position:"relative",overflow:"hidden"}).mousemove(function(t){var n,r,o,i;return n=(i=e(this).offset()).left,r=i.top,o=a.width(),a.css({left:t.pageX-n-o+10,top:t.pageY-r-10})})},o.fileSelectDialog=function(t,n,r,o){var a;return null==o&&(o={}),""===(a=n.inputAcceptTypes)&&(a=n.imagesOnly?"image/*":null),e(n.multiple?'<input type="file" multiple>':'<input type="file">').attr("accept",a).attr(o).css({position:"fixed",bottom:0,opacity:0}).on("change",function(){return r(this),e(this).remove()}).appendTo(t).focus().click().hide()},o.fileSizeLabels="B KB MB GB TB PB EB ZB YB".split(" "),o.readableFileSize=function(e,t,n,r){var a,i,l;if(null==t&&(t=""),null==n&&(n=""),null==r&&(r=""),e=parseInt(e,10),isNaN(e))return t;for(2,i=0,l=1e3-5*Math.pow(10,2-Math.max(2,3));e>l&&i<o.fileSizeLabels.length-1;)i++,e/=1024;return e+=1e-15,a=Math.max(0,2-Math.floor(e).toFixed(0).length),""+n+(e=Number(e.toFixed(a)))+" "+o.fileSizeLabels[i]+r},o.ajaxDefaults={dataType:"json",crossDomain:!0,cache:!1},o.jsonp=function(t,n,r,a){return null==a&&(a={}),e.ajax(e.extend({url:t,type:n,data:r},a,o.ajaxDefaults)).then(function(t){var n;return t.error?(n=t.error.content||t.error,e.Deferred().reject(n)):t},function(e,n,r){var a;return a=n+" ("+r+")",o.warn("JSONP unexpected error: "+a+" while loading "+t),a})},o.canvasToBlob=function(e,t,n,r){var o,a,i,l,s,u;if(HTMLCanvasElement.prototype.toBlob)return e.toBlob(r,t,n);for(i=(i=e.toDataURL(t,n)).split(","),a=atob(i[1]),o=new Uint8Array(a.length),l=s=0,u=a.length;u>s;l=s+=1)o[l]=a.charCodeAt(l);return r(new Blob([o],{type:/:(.+\/.+);/.exec(i[0])[1]}))},o.taskRunner=function(e){var t,n,r;return r=0,t=[],n=function(){var e;return t.length?(e=t.shift(),o.defer(function(){return e(n)})):r-=1},function(a){return!e||e>r?(r+=1,o.defer(function(){return a(n)})):t.push(a)}},a=[["notify","progress",2],["resolve","done",0],["reject","fail",1]],o.fixedPipe=function(){var t,n;return n=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],e.Deferred(function(r){return e.each(a,function(o,a){var i;return i=e.isFunction(t[a[2]])&&t[a[2]],n[a[1]](function(){var t;return(t=i&&i.apply(this,arguments))&&e.isFunction(t.promise)?t.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[a[0]+"With"](this===n?r.promise():this,i?[t]:arguments)})})}).promise()}})}.call(this),function(){var t,r,o,i,l=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};r=a.expose,o=a.utils,t=a.jQuery,i=a.version,a.namespace("settings",function(s){var u,c,p,d,f,h,m,g,b,v,y,_,w,x,k,C,S,T;return f={live:!0,manualStart:!1,locale:null,localePluralize:null,localeTranslations:null,systemDialog:!1,crop:!1,previewStep:!1,imagesOnly:!1,clearable:!1,multiple:!1,multipleMax:1e3,multipleMin:1,multipleMaxStrict:!1,imageShrink:!1,pathValue:!0,tabs:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr skydrive",preferredTypes:"",inputAcceptTypes:"",doNotStore:!1,publicKey:null,secureSignature:"",secureExpire:"",pusherKey:"79ae88bd931ea68464d9",cdnBase:"https://ucarecdn.com",urlBase:"https://upload.uploadcare.com",socialBase:"https://social.uploadcare.com",previewProxy:null,previewUrlCallback:null,imagePreviewMaxSize:26214400,multipartMinSize:26214400,multipartPartSize:5242880,multipartMinLastPartSize:1048576,multipartConcurrency:4,multipartMaxAttempts:3,parallelDirectUploads:10,passWindowOpen:!1,scriptBase:"//ucarecdn.com/widget/"+a.version+"/uploadcare/",debugUploads:!1,integration:""},S={multipleMax:{from:0,to:1e3}},p={multipleMax:{min:1,max:1e3}},w={tabs:{all:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr skydrive box vk huddle",default:f.tabs}},x=n.currentScript||function(){var e;return(e=n.getElementsByTagName("script"))[e.length-1]}(),void 0!==(g=t(x).data("integration"))&&(f=t.extend(f,{integration:g})),k=function(e){return t.isArray(e)||(e=(e=t.trim(e))?e.split(" "):[]),e},u=function(e,t){var n,r,a,i,l,s,u,c;for(l=0,u=t.length;u>l;l++){if(r=t[l],i=a=k(e[r]),w.hasOwnProperty(r))for(i=[],s=0,c=a.length;c>s;s++)n=a[s],w[r].hasOwnProperty(n)?i=i.concat(k(w[r][n])):i.push(n);e[r]=o.unique(i)}return e},T=function(e,t){var n,r,a;for(r=0,a=t.length;a>r;r++)null!=e[n=t[r]]&&(e[n]=o.normalizeUrl(e[n]));return e},h=function(e,n){var r,o,a,i;for(a=0,i=n.length;i>a;a++)null!=e[r=n[a]]&&(o=e[r],"string"===t.type(o)?(o=t.trim(o).toLowerCase(),e[r]=!("false"===o||"disabled"===o)):e[r]=!!o);return e},m=function(e,t){var n,r,o;for(r=0,o=t.length;o>r;r++)null!=e[n=t[r]]&&(e[n]=parseInt(e[n]));return e},b=function(e){return e._userAgent="UploadcareWidget/"+i+"/"+e.publicKey+" (JavaScript"+(e.integration?"; "+e.integration:"")+")",e},C=function(e,t){var n,r;for(n in t)r=t[n],null!=e[n]&&e[n]===r.from&&(e[n]=r.to);return e},c=function(e,t){var n,r,o,a;for(n in t)o=(a=t[n]).min,r=a.max,null!=e[n]&&(e[n]=Math.min(Math.max(e[n],o),r));return e},y=function(e){var n;return{downscale:"x"===(n=/^([0-9]+)([x:])([0-9]+)\s*(|upscale|minimum)$/i.exec(t.trim(e.toLowerCase()))||[])[2],upscale:!!n[4],notLess:"minimum"===n[4],preferedSize:n.length?[+n[1],+n[3]]:void 0}},_=function(e){var n,r;return!!(n=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i.exec(t.trim(e.toLowerCase()))||[]).length&&((r=n[1]*n[2])>5e6?(o.warnOnce("Shrinked size can not be larger than 5MP. You have set "+n[1]+"x"+n[2]+" ("+Math.ceil(r/1e3/100)/10+"MP)."),!1):{quality:n[3]?n[3]/100:void 0,size:r})},d=function(e,t){var n,r,o,a;return this.previewProxy?(r=(o=!/\?/.test(this.previewProxy))||!/\=$/.test(this.previewProxy),n=!o&&!/[\&\?\=]$/.test(this.previewProxy),a=encodeURIComponent(e),r&&(a="url="+a),n&&(a="&"+a),o&&(a="?"+a),this.previewProxy+a):e},v=function(e){return u(e,["tabs","preferredTypes"]),T(e,["cdnBase","socialBase","urlBase","scriptBase"]),h(e,["doNotStore","imagesOnly","multiple","clearable","pathValue","previewStep","systemDialog","debugUploads","multipleMaxStrict"]),m(e,["multipleMax","multipleMin","multipartMinSize","multipartPartSize","multipartMinLastPartSize","multipartConcurrency","multipartMaxAttempts","parallelDirectUploads"]),C(e,S),c(e,p),b(e),!1===e.crop||t.isArray(e.crop)||(/^(disabled?|false|null)$/i.test(e.crop)?e.crop=!1:t.isPlainObject(e.crop)?e.crop=[e.crop]:e.crop=t.map((""+e.crop).split(","),y)),e.imageShrink&&!t.isPlainObject(e.imageShrink)&&(e.imageShrink=_(e.imageShrink)),(e.crop||e.multiple)&&(e.previewStep=!0),o.abilities.sendFileAPI||(e.systemDialog=!1),e.validators&&(e.validators=e.validators.slice()),e.previewProxy&&!e.previewUrlCallback&&(e.previewUrlCallback=d),e},r("defaults",t.extend({allTabs:w.tabs.all},f)),s.globals=function(){var t,n,r;for(t in n={},f)void 0!==(r=e["UPLOADCARE_"+o.upperCase(t)])&&(n[t]=r);return n},s.common=o.once(function(e,n){var r;return n||(f=t.extend(f,s.globals())),(r=v(t.extend(f,e||{}))).publicKey||o.commonWarning("publicKey"),s.waitForSettings.fire(r),r}),s.build=function(e){var n;return n=t.extend({},s.common()),t.isEmptyObject(e)||(n=v(t.extend(n,e))),n},s.waitForSettings=t.Callbacks("once memory"),s.CssCollector=function(){function e(){this.urls=[],this.styles=[]}return e.prototype.addUrl=function(e){if(!/^https?:\/\//i.test(e))throw new Error("Embedded urls should be absolute. "+e);return l.call(this.urls,e)>=0?void 0:this.urls.push(e)},e.prototype.addStyle=function(e){return this.styles.push(e)},e}(),a.tabsCss=new s.CssCollector,f._emptyKeyText='<div class="uploadcare--tab__content">\n<div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">Hello!</div>\n<div class="uploadcare--text">Your <a class="uploadcare--link" href="https://uploadcare.com/dashboard/">public key</a> is not set.</div>\n<div class="uploadcare--text">Add this to the <head> tag to start uploading files:</div>\n<div class="uploadcare--text uploadcare--text_pre"><script>\nUPLOADCARE_PUBLIC_KEY = \'your_public_key\';\n</script></div>\n</div>'})}.call(this),function(){a.namespace("locale.translations",function(e){return e.en={uploading:"Uploading... Please wait.",loadingInfo:"Loading info...",errors:{default:"Error",baddata:"Incorrect value",size:"File too big",upload:"Can’t upload",user:"Upload canceled",info:"Can’t load info",image:"Only images allowed",createGroup:"Can’t create file group",deleted:"File was deleted"},draghere:"Drop a file here",file:{one:"%1 file",other:"%1 files"},buttons:{cancel:"Cancel",remove:"Remove",choose:{files:{one:"Choose a file",other:"Choose files"},images:{one:"Choose an image",other:"Choose images"}}},dialog:{close:"Close",openMenu:"Open menu",done:"Done",showFiles:"Show files",tabs:{names:{"empty-pubkey":"Welcome",preview:"Preview",file:"Local Files",url:"Direct Link",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",skydrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"drag & drop<br>any files",nodrop:"Upload files from your computer",cloudsTip:"Cloud storages<br>and social networks",or:"or",button:"Choose a local file",also:"or choose from"},url:{title:"Files from the Web",line1:"Grab any file off the web.",line2:"Just provide the link.",input:"Paste your link here...",button:"Upload"},camera:{title:"File from web camera",capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site.<br>In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"unknown",change:"Cancel",back:"Back",done:"Add",unknown:{title:"Uploading... Please wait for a preview.",done:"Skip preview and accept"},regular:{title:"Add this file?",line1:"You are about to add the file above.",line2:"Please confirm."},image:{title:"Add this image?",change:"Cancel"},crop:{title:"Crop and add this image",done:"Done",free:"free"},video:{title:"Add this video?",change:"Cancel"},error:{default:{title:"Oops!",text:"Something went wrong during the upload.",back:"Please try again"},image:{title:"Only image files are accepted.",text:"Please try again with another file.",back:"Choose image"},size:{title:"The file you selected exceeds the limit.",text:"Please try again with another file."},loadImage:{title:"Error",text:"Can’t load image"}},multiple:{title:"You’ve chosen %files%.",question:"Add %files%?",tooManyFiles:"You’ve chosen too many files. %max% is maximum.",tooFewFiles:"You’ve chosen %files%. At least %min% required.",clear:"Remove all",done:"Add",file:{preview:"Preview %file%",remove:"Remove %file%"}}}},footer:{text:"powered by",link:"uploadcare"}}}}),a.namespace("locale.pluralize",function(e){return e.en=function(e){return 1===e?"one":"other"}})}.call(this),function(){var e,t,n;n=a.utils,t=a.settings,e=a.jQuery,a.namespace("locale",function(r){var o,a,i,l;return a={lang:"en",translations:r.translations.en,pluralize:r.pluralize.en},l=function(t){var n;return{lang:n=t.locale||a.lang,translations:e.extend(!0,{},r.translations[n],t.localeTranslations),pluralize:e.isFunction(t.localePluralize)?t.localePluralize:r.pluralize[n]}},o=n.once(function(){return l(t.build())}),r.rebuild=function(e){var n;return n=l(t.build(e)),o=function(){return n}},i=function(e,t){var n,r,o,a;for(o=0,a=(n=e.split(".")).length;a>o;o++){if(r=n[o],null==t)return null;t=t[r]}return t},r.t=function(e,t){var n,r,l;return n=o(),null==(r=i(e,n.translations))&&n.lang!==a.lang&&(r=i(e,(n=a).translations)),null!=t&&(r=null!=n.pluralize?(null!=(l=r[n.pluralize(t)])?l.replace("%1",t):void 0)||t:""),r||""}})}.call(this),function(){var e,t,n;t=a.locale,n=a.utils,e=a.jQuery,a.namespace("templates",function(r){return r.JST={},r.tpl=function(o,i){var l;return null==i&&(i={}),null!=(l=r.JST[o])?l(e.extend({t:t.t,utils:n,uploadcare:a},i)):""}})}.call(this),a.templates.JST.dialog=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--dialog">\r\n <div class="uploadcare--dialog__container">\r\n <button type="button" title="',(""+t("dialog.close")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'"\r\n class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--dialog__close">\r\n <svg role="presentation" width="32" height="32" class="uploadcare--icon">\r\n <use xlink:href="#uploadcare--icon-close"></use>\r\n </svg>\r\n </button>\r\n <div class="uploadcare--dialog__placeholder"></div>\r\n </div>\r\n <div class="uploadcare--powered-by uploadcare--dialog__powered-by">\r\n ',(""+t("dialog.footer.text")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/?utm_campaign=widget&utm_source=copyright&utm_medium=desktop&utm_content=',(""+a.version).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'"\r\n target="_blank">\r\n <svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg>\r\n ',(""+t("dialog.footer.link")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n </a>\r\n </div>\r\n</div>\r\n");return __p.join("")},a.templates.JST.dialog__panel=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--panel">\r\n <div class="uploadcare--menu uploadcare--panel__menu">\r\n <button type="button" title="',(""+t("dialog.openMenu")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'"\r\n class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--menu__toggle">\r\n <svg role="presentation" width="32" height="32"\r\n class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_menu">\r\n <use xlink:href="#uploadcare--icon-menu"></use>\r\n </svg>\r\n <svg role="presentation" width="32" height="32"\r\n class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_back">\r\n <use xlink:href="#uploadcare--icon-back"></use>\r\n </svg>\r\n </button>\r\n <div class="uploadcare--menu__items"></div>\r\n </div>\r\n\r\n <div class="uploadcare--panel__content">\r\n\r\n <div class="uploadcare--footer uploadcare--panel__footer">\r\n <div class="uploadcare--footer__additions uploadcare--panel__message"></div>\r\n\r\n <button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--panel__show-files">\r\n ',(""+t("dialog.showFiles")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),' <div class="uploadcare--panel__file-counter"></div>\r\n </button>\r\n\r\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--panel__done">\r\n ',(""+t("dialog.done")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n </div>\r\n\r\n <div class="uploadcare--powered-by uploadcare--panel__powered-by">\r\n ',(""+t("dialog.footer.text")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/?utm_campaign=widget&utm_source=copyright&utm_medium=desktop&utm_content=',(""+a.version).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'"\r\n target="_blank">\r\n <svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg>\r\n ',(""+t("dialog.footer.link")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n </a>\r\n </div>\r\n </div>\r\n</div>\r\n");return __p.join("")},a.templates.JST.icons=function(e){var __p=[],t=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<svg width="0" height="0" style="position:absolute"><symbol viewBox="0 0 32 32" id="uploadcare--icon-back"><path d="M21.132 9.06a1.5 1.5 0 0 0-2.122-2.12L9.88 16.07l9.06 9.061a1.5 1.5 0 1 0 2.122-2.121l-6.94-6.94 7.01-7.01z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-box"><path d="M4.962 9C4.385 9 4 9.384 4 9.96v8.243C4 20.793 6.213 23 8.811 23c1.829 0 3.464-1.043 4.33-2.578.866 1.535 2.406 2.578 4.33 2.578 2.695 0 4.812-2.206 4.812-4.797 0-2.686-2.117-4.886-4.811-4.886-1.829 0-3.465 1.043-4.33 2.578-.77-1.535-2.406-2.578-4.33-2.578a4.957 4.957 0 0 0-2.887.96V9.958c0-.48-.482-.959-.963-.959zm17.08 4.257a.841.841 0 0 0-.33.15c-.385.288-.5.965-.211 1.349l2.526 3.357-2.526 3.358c-.289.384-.174 1.061.21 1.35.385.287 1.065.173 1.354-.21l2.105-2.879 2.105 2.878c.288.384.968.498 1.353.21.385-.288.499-.965.21-1.349l-2.526-3.358 2.526-3.357c.289-.384.175-1.061-.21-1.35-.385-.287-1.065-.203-1.353.18l-2.105 2.879-2.105-2.878c-.217-.288-.657-.406-1.023-.33zm-13.23 2.068c1.539 0 2.886 1.344 2.886 2.878.096 1.535-1.25 2.878-2.887 2.878a2.89 2.89 0 0 1-2.886-2.878c0-1.63 1.347-2.878 2.886-2.878zm8.66 0a2.89 2.89 0 0 1 2.886 2.878c0 1.535-1.347 2.878-2.886 2.878a2.89 2.89 0 0 1-2.887-2.878c0-1.63 1.347-2.878 2.887-2.878z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-camera"><path d="M21 10h3c1.653 0 3 1.343 3 3v9c0 1.656-1.344 3-3.001 3H8A3 3 0 0 1 5 22v-9a3 3 0 0 1 3-3h3v-.999C11 7.901 11.895 7 13 7h6c1.113 0 2 .896 2 2.001V10zm-5 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9zm0-2a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-close"><path d="M10.06 7.94a1.5 1.5 0 0 0-2.12 2.12L13.878 16l-5.94 5.94a1.5 1.5 0 0 0 2.122 2.12L16 18.122l5.94 5.94a1.5 1.5 0 0 0 2.12-2.122L18.122 16l5.94-5.94a1.5 1.5 0 0 0-2.122-2.12L16 13.878l-5.94-5.94z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-crop-free"><path d="M8 12a2.004 2.004 0 0 1-2-2.01V8.01C6 6.897 6.893 6 8.01 6h1.98c1.109 0 2.005.888 2.01 2h8c.005-1.107.896-2 2.01-2h1.98C25.103 6 26 6.893 26 8.01v1.98A2.004 2.004 0 0 1 24 12v8c1.107.005 2 .896 2 2.01v1.98c0 1.112-.893 2.01-2.01 2.01h-1.98A2.004 2.004 0 0 1 20 24h-8a2.004 2.004 0 0 1-2.01 2H8.01A2.004 2.004 0 0 1 6 23.99v-1.98c0-1.109.888-2.005 2-2.01v-8zm2 0v8a2.004 2.004 0 0 1 2 2h8a2.004 2.004 0 0 1 2-2v-8a2.004 2.004 0 0 1-2-2h-8a2.004 2.004 0 0 1-2 2zm12 10.01v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01h-1.98c-.01 0-.01 0-.01.01zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C24 8 24 8 23.99 8h-1.98C22 8 22 8 22 8.01zm-14 14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01H8.01C8 22 8 22 8 22.01zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C10 8 10 8 9.99 8H8.01C8 8 8 8 8 8.01z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-dropbox"><path d="M11.06 4L16 8.433l-7.118 4.726L4 8.956 11.06 4zM4 17.362l4.882-4.203L16 17.884l-4.94 4.434L4 17.362zm12 .522l7.118-4.725L28 17.362l-7.06 4.956L16 17.884zm12-8.928l-4.882 4.203L16 8.433 20.94 4 28 8.956zm-11.986 9.882l4.955 4.42 2.12-1.488v1.669L16.014 28 8.94 23.439V21.77l2.12 1.489 4.954-4.42z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-empty-pubkey"><path d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-13.704a1.296 1.296 0 1 0 0-2.592 1.296 1.296 0 0 0 0 2.592z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-error"><path d="M18.122 23.93V21a.583.583 0 0 0-.179-.434.585.585 0 0 0-.423-.175h-2.616a.585.585 0 0 0-.424.175.583.583 0 0 0-.179.434v2.93c0 .172.06.316.18.433.118.117.26.175.423.175h2.616a.585.585 0 0 0 .423-.175.583.583 0 0 0 .18-.434zm-.037-6.326l.339-9.05a.404.404 0 0 0-.189-.351c-.163-.135-.313-.203-.452-.203H14.64c-.138 0-.288.068-.452.203-.125.086-.188.215-.188.388l.32 9.013c0 .123.063.224.188.304.126.08.277.12.452.12h2.484c.176 0 .324-.04.443-.12a.41.41 0 0 0 .198-.304z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-evernote"><path d="M7.998 8.648h2.245a.233.233 0 0 0 .232-.233s-.028-1.931-.028-2.468v-.006c0-.441.093-.825.253-1.148l.077-.144a.05.05 0 0 0-.026.014l-4.359 4.34a.05.05 0 0 0-.016.025c.09-.044.213-.106.23-.113.38-.172.84-.267 1.392-.267M24.196 6.56c-.553-.2-1.675-.408-3.084-.575-1.134-.134-2.467-.123-3.272-.098-.097-.665-.56-1.272-1.08-1.482-1.384-.56-3.523-.424-4.071-.27-.437.123-.92.373-1.188.76-.18.258-.297.59-.298 1.051 0 .262.007.878.014 1.426.006.548.014 1.04.014 1.043a.887.887 0 0 1-.884.888H8.103c-.479 0-.845.08-1.124.208-.28.127-.478.3-.628.503-.3.404-.352.902-.351 1.411 0 0 .004.416.104 1.22.083.622.756 4.971 1.394 6.294.248.514.413.73.9.956 1.083.466 3.559.984 4.72 1.133 1.158.148 1.885.46 2.318-.451.002-.003.087-.227.204-.557.377-1.144.43-2.16.43-2.894 0-.075.108-.078.108 0 0 .519-.098 2.354 1.283 2.847.545.194 1.676.367 2.826.502 1.039.12 1.793.53 1.793 3.208 0 1.628-.34 1.851-2.122 1.851-1.444 0-1.994.038-1.994-1.113 0-.932.917-.834 1.596-.834.304 0 .083-.226.083-.8 0-.572.357-.902.02-.91-2.35-.066-3.733-.003-3.733 2.947 0 2.679 1.021 3.176 4.357 3.176 2.614 0 3.536-.086 4.616-3.45.213-.663.73-2.69 1.043-6.092.197-2.15-.187-8.644-.491-10.282-.178-.958-.746-1.43-1.259-1.616zm-3.3 8.792a4.75 4.75 0 0 0-.923.056c.081-.66.353-1.473 1.316-1.439 1.066.037 1.216 1.049 1.22 1.734-.45-.201-1.006-.33-1.613-.35"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-facebook"><path d="M18.67 5c-3.233 0-5.323 2.125-5.323 5.414v2.902h-2.895a.45.45 0 0 0-.452.448v3.213a.45.45 0 0 0 .452.448h2.895v9.127c0 .247.202.448.453.448h3.775c.25 0 .453-.201.453-.448v-9.127h3.383a.45.45 0 0 0 .453-.448l.002-3.213a.45.45 0 0 0-.453-.448h-3.385v-2.521c0-1.018.244-1.534 1.58-1.534l1.94-.001A.45.45 0 0 0 22 8.812V5.454a.45.45 0 0 0-.45-.45L18.67 5z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-file"><path d="M19 6l5 5h-4c-.556 0-1-.448-1-1V6zm5 7v11.192c0 .995-.808 1.808-1.804 1.808H9.804A1.808 1.808 0 0 1 8 24.2V7.74C8 6.602 8.627 6 9.778 6H17v4.994c0 1.12.898 2.006 2.006 2.006H24z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-flickr"><path d="M11 20c-2.212 0-4-1.79-4-4s1.79-4 4-4a4 4 0 0 1 0 8zm10.001 0a4 4 0 1 1-.002-8 4 4 0 0 1 .002 8z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gdrive"><path d="M19.461 6l7.109 12h-7.004L12.539 6h6.922zm-9.27 19l3.467-6H27l-3.466 6H10.192zM5 18.841l6.618-11.36 3.566 5.929-6.722 11.36L5 18.84z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gphotos"><path d="M21.845 21.452l-2.562-4.03h6.69l-4.128 4.03zm-5.758-3.986L14.533 16.1l1.38-1.566 1.555 1.366-1.38 1.566zm-1.5 8.512l-4.037-4.121 4.036-2.559v6.68zm-8.56-11.4l4.128-4.03 2.562 4.03h-6.69zm11.387-8.555l4.036 4.12-4.036 2.559v-6.68zM28.479 15.9h-5.01v-5.757l-6.866-6.912c-.397-.4-.713-.267-.713.29v5.013h-5.735l-6.924 6.854c-.4.396-.267.712.29.712h5.01v5.757l6.866 6.912c.397.4.713.267.713-.29v-5.012h5.735l6.924-6.855c.4-.396.267-.712-.29-.712z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-huddle"><path d="M13.63 14.39c.07-.102.17-.26.2-.313 1.474-2.683 6.857-2.686 8.49 1.002.43.968.67 1.97.675 3.023.008 1.978.004 3.957.002 5.936 0 1.192-.68 1.945-1.763 1.962-1.087.016-1.856-.766-1.865-1.944-.014-1.874.003-3.749-.006-5.623-.006-1.351-.654-2.388-1.719-2.793-1.775-.675-3.59.305-3.892 2.159-.122.747-.104 1.52-.114 2.281-.016 1.336-.002 2.673-.005 4.01-.003 1.125-.669 1.866-1.707 1.907-1.06.042-1.828-.668-1.922-1.78-.007-.086-.003-.173-.003-.26 0-5.31-.002-10.622.002-15.932 0-1.2.731-2.016 1.79-2.025 1.05-.01 1.832.74 1.837 1.792.01 2.013.003 4.026.005 6.04 0 .12.002.391-.005.558"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-instagram"><path d="M16 5c2.987 0 3.362.013 4.535.066 1.171.054 1.97.24 2.67.511a5.391 5.391 0 0 1 1.949 1.27 5.392 5.392 0 0 1 1.269 1.948c.272.7.457 1.499.51 2.67.054 1.173.067 1.548.067 4.535s-.013 3.362-.066 4.535c-.054 1.171-.24 1.97-.511 2.67a5.392 5.392 0 0 1-1.27 1.949 5.391 5.391 0 0 1-1.948 1.269c-.7.271-1.499.457-2.67.51-1.173.054-1.548.067-4.535.067s-3.362-.013-4.535-.066c-1.171-.054-1.97-.24-2.67-.511a5.392 5.392 0 0 1-1.949-1.27 5.391 5.391 0 0 1-1.268-1.948c-.273-.7-.458-1.499-.512-2.67C5.013 19.362 5 18.987 5 16s.013-3.362.066-4.535c.054-1.171.24-1.97.512-2.67a5.391 5.391 0 0 1 1.268-1.949 5.392 5.392 0 0 1 1.949-1.269c.7-.271 1.499-.457 2.67-.51C12.638 5.012 13.013 5 16 5zm0 1.982c-2.937 0-3.285.011-4.445.064-1.072.049-1.655.228-2.042.379-.514.2-.88.438-1.265.823a3.41 3.41 0 0 0-.823 1.264c-.15.388-.33.97-.379 2.043-.053 1.16-.064 1.508-.064 4.445 0 2.937.011 3.285.064 4.445.049 1.072.228 1.655.379 2.043.2.513.438.88.823 1.264.385.385.751.624 1.265.823.387.15.97.33 2.042.379 1.16.053 1.508.064 4.445.064 2.937 0 3.285-.011 4.445-.064 1.072-.049 1.655-.228 2.042-.379.514-.2.88-.438 1.265-.823.385-.385.624-.751.823-1.264.15-.388.33-.97.379-2.043.053-1.16.064-1.508.064-4.445 0-2.937-.011-3.285-.064-4.445-.049-1.072-.228-1.655-.379-2.043-.2-.513-.438-.88-.823-1.264a3.408 3.408 0 0 0-1.265-.823c-.387-.15-.97-.33-2.042-.379-1.16-.053-1.508-.064-4.445-.064zm0 3.37a5.649 5.649 0 1 1 0 11.297 5.649 5.649 0 0 1 0-11.298zm0 9.315a3.667 3.667 0 1 0 0-7.334 3.667 3.667 0 0 0 0 7.334zm7.192-9.539a1.32 1.32 0 1 1-2.64 0 1.32 1.32 0 0 1 2.64 0z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-menu"><path d="M7.5 10a1.5 1.5 0 0 1 0-3h17a1.5 1.5 0 0 1 0 3h-17zm0 7a1.5 1.5 0 0 1 0-3h17a1.5 1.5 0 0 1 0 3h-17zm0 7a1.5 1.5 0 0 1 0-3h17a1.5 1.5 0 0 1 0 3h-17z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-more"><path d="M21 16a3 3 0 1 1 6 0 3 3 0 0 1-6 0zm-8 0a3 3 0 1 1 6 0 3 3 0 0 1-6 0zm-8 0a3 3 0 1 1 6 0 3 3 0 0 1-6 0z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-remove"><path d="M22.142 24.009c-.078 1.1-1.044 1.991-2.15 1.991h-7.983c-1.11 0-2.073-.897-2.151-1.991l-.786-11.002A.924.924 0 0 1 10.007 12h11.986c.556 0 .975.45.935 1.007l-.786 11.002zM13 7V6c0-.556.444-1 .99-1h4.02A1 1 0 0 1 19 6v1h4c.556 0 1 .447 1 .999v1.002A.997.997 0 0 1 23 10H9c-.555 0-1-.447-1-.999V7.999A.996.996 0 0 1 9 7h4z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-skydrive"><path d="M11.715 16.427c.584-2.413 2.699-4.177 5.209-4.177 1.483 0 2.873.621 3.878 1.7.425-.14.922-.248 1.364-.258v-.16c0-3.054-2.214-5.532-4.944-5.532-1.952 0-3.624 1.278-4.428 3.115a3.55 3.55 0 0 0-2.033-.658c-2.142 0-3.877 1.94-3.877 4.336 0 .258.028.51.068.754-1.652.167-2.946 1.9-2.946 3.79 0 .02.005.037.005.056-.001.017-.011.035-.011.052 0 .757.257 1.449.673 2.007a3.14 3.14 0 0 0 2.568 1.317h1.513a4.49 4.49 0 0 1-.477-1.987c-.001-2.138 1.476-3.93 3.438-4.355zm13.752 2.375c-.03 0-.06.01-.09.01.008-.09.026-.18.026-.273 0-1.812-1.431-3.279-3.198-3.279-.703 0-1.347.24-1.877.635-.655-1.249-1.924-2.107-3.405-2.107-2.146 0-3.885 1.784-3.885 3.984 0 .029.008.053.009.082a2.764 2.764 0 0 0-.431-.045c-1.602 0-2.898 1.33-2.898 2.973 0 .205.02.406.059.599C10.05 22.87 11.322 24 12.856 24h12.847v-.023C26.99 23.85 28 22.753 28 21.402c0-1.435-1.134-2.6-2.533-2.6z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-uploadcare"><path fill="#ffd800" d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-13.704a1.296 1.296 0 1 0 0-2.592 1.296 1.296 0 0 0 0 2.592z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-url"><path d="M16 5c6.074 0 11 4.926 11 11s-4.926 11-11 11S5 22.074 5 16 9.926 5 16 5zm6.076 6.327a.992.992 0 1 0-1.403-1.403l-1.128 1.128c-1.431-.92-3.47-.768-4.697.461l-3.186 3.185a3.7 3.7 0 0 0-1.09 2.636c0 .748.22 1.46.624 2.067l-1.272 1.272a.992.992 0 1 0 1.402 1.403l1.273-1.272c.606.405 1.32.623 2.067.623.997 0 1.933-.386 2.634-1.089l3.187-3.186a3.729 3.729 0 0 0 .464-4.7l1.125-1.125zm-4.252 3.841a.982.982 0 0 0 .701-.29l.95-.95c.067.188.114.385.114.591 0 .466-.178.904-.505 1.23l-3.186 3.187c-.472.47-1.197.588-1.813.382l.793-.792a.992.992 0 1 0-1.404-1.404l-.801.802a1.752 1.752 0 0 1-.115-.59c0-.468.179-.905.506-1.232l3.186-3.186a1.736 1.736 0 0 1 1.23-.507c.207 0 .404.049.592.116l-.948.95a.992.992 0 0 0 .7 1.693z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-vk"><path d="M27.791 21.484c-.416-.767-1.212-1.708-2.386-2.824l-.038-.038c-.558-.532-.895-.882-1.037-1.06-.258-.341-.316-.686-.175-1.036.1-.264.475-.821 1.125-1.673.341-.451.612-.813.812-1.086 1.441-1.959 2.066-3.21 1.874-3.756l-.074-.127c-.05-.077-.18-.147-.387-.211-.209-.064-.475-.075-.8-.032l-3.599.025a.457.457 0 0 0-.25.007l-.163.038-.062.032-.05.039a.56.56 0 0 0-.137.134.882.882 0 0 0-.125.223 21.072 21.072 0 0 1-1.337 2.875 27.31 27.31 0 0 1-.85 1.373c-.258.388-.475.673-.65.856a4.57 4.57 0 0 1-.475.44c-.141.112-.25.158-.324.141a8.987 8.987 0 0 1-.213-.05.843.843 0 0 1-.281-.314 1.425 1.425 0 0 1-.144-.498c-.025-.2-.04-.373-.044-.518-.003-.144-.002-.349.007-.613.008-.264.012-.443.012-.536 0-.324.007-.675.019-1.054l.031-.901c.009-.222.013-.456.013-.703 0-.247-.015-.44-.044-.581a2.02 2.02 0 0 0-.131-.409.684.684 0 0 0-.256-.307 1.426 1.426 0 0 0-.419-.172c-.441-.102-1.004-.158-1.687-.166-1.55-.017-2.545.085-2.986.307a1.69 1.69 0 0 0-.475.383c-.15.187-.171.29-.063.306.5.077.854.26 1.062.55l.075.153c.059.11.117.307.175.588.059.28.096.592.113.932.041.622.041 1.154 0 1.597-.042.443-.081.788-.119 1.035a2.107 2.107 0 0 1-.169.6 2.55 2.55 0 0 1-.15.281.217.217 0 0 1-.062.064.918.918 0 0 1-.337.064c-.117 0-.259-.06-.425-.179a3.024 3.024 0 0 1-.519-.492c-.179-.208-.38-.5-.606-.875a15.385 15.385 0 0 1-.7-1.328l-.2-.37a32.156 32.156 0 0 1-.512-1.042 20.306 20.306 0 0 1-.575-1.323.84.84 0 0 0-.3-.408l-.062-.039a.85.85 0 0 0-.2-.108 1.304 1.304 0 0 0-.287-.083L4.8 9.64c-.35 0-.587.081-.712.243l-.05.077a.421.421 0 0 0-.038.204c0 .094.025.209.075.345.5 1.201 1.043 2.36 1.63 3.475C6.294 15.1 6.804 16 7.237 16.68c.433.681.875 1.324 1.325 1.929.45.604.748.992.893 1.162.146.17.26.298.344.384l.312.306c.2.205.494.45.881.735.388.285.817.566 1.287.843.471.277 1.019.503 1.644.677a5.564 5.564 0 0 0 1.824.211h1.437c.292-.026.512-.12.662-.281l.05-.064a.858.858 0 0 0 .094-.236c.029-.107.044-.224.044-.351a4.301 4.301 0 0 1 .08-.99c.063-.294.134-.516.213-.665a1.632 1.632 0 0 1 .482-.562.806.806 0 0 1 .1-.045c.2-.068.434-.002.705.199.271.2.525.447.763.74.237.295.522.625.856.99.333.367.625.64.874.818l.25.154c.167.102.384.196.65.28.266.086.5.107.7.065l3.199-.051c.316 0 .562-.054.737-.16.175-.107.279-.224.312-.351.034-.128.035-.273.007-.435a1.632 1.632 0 0 0-.088-.338 1.694 1.694 0 0 0-.082-.16z"/></symbol></svg>\n');return __p.join("")},a.templates.JST.progress__text=function(e){var __p=[],t=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--progress__text-container">\r\n <div class="uploadcare--progress__text"></div>\r\n</div>\r\n');return __p.join("")},a.templates.JST.styles=function(e){var __p=[],t=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('.uploadcare--jcrop-handle{box-sizing:border-box;padding:12.5px;width:45px;height:45px;background:transparent;z-index:2147483621}@media (min-width:760px){.uploadcare--jcrop-handle{height:35px;width:35px;padding:10px}}.uploadcare--jcrop-handle:before{content:"";display:block;width:20px;height:20px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border-radius:50%}@media (min-width:760px){.uploadcare--jcrop-handle:before{height:15px;width:15px}}.uploadcare--jcrop-handle.ord-nw{margin-top:-22.5px;margin-left:-22.5px;top:0;left:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-nw{margin-left:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-ne{margin-top:-22.5px;margin-right:-22.5px;top:0;right:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-ne{margin-right:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-se{margin-bottom:-22.5px;margin-right:-22.5px;bottom:0;right:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-se{margin-right:-17.5px;margin-bottom:-17.5px}}.uploadcare--jcrop-handle.ord-sw{margin-bottom:-22.5px;margin-left:-22.5px;bottom:0;left:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-sw{margin-left:-17.5px;margin-bottom:-17.5px}}.uploadcare--jcrop-hline{width:100%;height:1px!important;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);z-index:2147483620}.uploadcare--jcrop-hline.bottom{bottom:0}.uploadcare--jcrop-vline{width:1px!important;height:100%;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);z-index:2147483620}.uploadcare--jcrop-vline.right{right:0}.uploadcare--jcrop-tracker{height:100%;width:100%;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.uploadcare--jcrop-holder img{max-width:none;max-height:none}.uploadcare--text{margin:0 0 10px;padding:0;font-size:17.5px;line-height:25px}.uploadcare--text:empty{display:none}.uploadcare--text_muted{color:#a4a2a1}.uploadcare--text_pre{box-sizing:border-box;overflow-x:auto;padding:20px;max-width:100%;background:#e3e1e1;font-family:monospace;white-space:pre;text-align:left}.uploadcare--text_size_small{font-size:15px;line-height:20px}.uploadcare--text_size_medium{font-size:20px;font-weight:700;line-height:25px}.uploadcare--text_size_large{font-size:22px;font-weight:700;line-height:25px}.uploadcare--text_size_extra-large{font-size:35px;line-height:45px}@media (min-width:760px){.uploadcare--text_size_extra-large{font-size:42.5px;line-height:50px}}.uploadcare--icon{all:initial;color:inherit;fill:currentColor;margin:0;padding:0;max-width:100%;width:32px;height:32px;cursor:inherit}.uploadcare--link,.uploadcare--link:link,.uploadcare--link:visited{cursor:pointer;color:#157cfc;text-decoration:underline}.uploadcare--link:focus,.uploadcare--link:hover{color:#3891ff;text-decoration:none}.uploadcare--link:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--link:active{color:#0969ee}.uploadcare--button{all:initial;-ms-flex-negative:0;flex-shrink:0;display:inline-block;overflow:hidden;box-sizing:border-box;margin:0;padding:10px;width:auto;min-width:100px;height:auto;min-height:0;border-radius:6px;border:1px solid #157cfc;background:transparent;color:#157cfc;cursor:default;white-space:nowrap;text-overflow:ellipsis;text-align:center;font-family:inherit;font-size:15px;font-weight:400;font-style:normal;line-height:20px;box-shadow:none;text-shadow:none;transition:background .3s,color .3s,border .3s}.uploadcare--button svg{pointer-events:none}.uploadcare--button:focus,.uploadcare--button:hover{background:transparent;border-color:#3891ff;color:#3891ff;font-weight:400;font-style:normal;box-shadow:none;text-shadow:none}.uploadcare--button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--button:active{border-color:#0969ee;color:#0969ee}.uploadcare--button:disabled,.uploadcare--button[aria-disabled=true]{background:transparent!important;border-color:#d4d2d2!important;color:#d4d2d2!important;cursor:not-allowed}@media (min-width:760px){.uploadcare--button{padding:10px 20px;font-size:17.5px;line-height:25px}}.uploadcare--button_icon{padding:14px;min-width:0;width:60px;height:60px}.uploadcare--button_muted{border-color:transparent!important;color:#a4a2a1;border-radius:0}.uploadcare--button_muted:focus,.uploadcare--button_muted:hover{color:#157cfc}.uploadcare--button_muted:disabled,.uploadcare--button_muted[aria-disabled=true]{border-color:transparent!important}.uploadcare--button_overlay{background:rgba(53,53,53,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:focus,.uploadcare--button_overlay:hover{background:hsla(0,0%,40%,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:active{background:rgba(33,33,33,.5)}.uploadcare--button_primary{background:#157cfc;border-color:#157cfc;color:#fff}.uploadcare--button_primary:focus,.uploadcare--button_primary:hover{background:#3891ff;border-color:#3891ff;color:#fff}.uploadcare--button_primary:active{background:#0969ee;border-color:#0969ee}.uploadcare--button_primary:disabled,.uploadcare--button_primary[aria-disabled=true]{background:#d4d2d2!important;border-color:#d4d2d2!important;color:#fff!important}.uploadcare--button_size_big{padding:10px 25px;font-size:20px;line-height:30px}.uploadcare--button_size_small{padding:5px 10px;min-width:80px;font-size:15px;line-height:20px}.uploadcare--input{-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-negative:0;flex-shrink:0;display:block;box-sizing:border-box;margin:5px 0 15px;padding:10px 15px;width:100%;font-size:17.5px;line-height:25px;background:#fff;color:#353535;border:1px solid #a4a2a1;border-radius:2px;box-shadow:none}.uploadcare--input:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--input::-webkit-input-placeholder{color:#a4a2a1}.uploadcare--input:-ms-input-placeholder,.uploadcare--input::-ms-input-placeholder{color:#a4a2a1}.uploadcare--input::placeholder{color:#a4a2a1}.uploadcare--form{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;max-width:400px;width:100%}.uploadcare--error{color:#e66a6a}.uploadcare--powered-by{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7.5px 0;font-size:12.5px;line-height:15px;color:#fff;text-align:center}.uploadcare--powered-by__link{color:inherit!important;text-decoration:none!important}.uploadcare--powered-by__link,.uploadcare--powered-by__logo{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.uploadcare--powered-by__logo{width:20px;height:15px;vertical-align:text-bottom}.uploadcare--progress__canvas{width:100%;height:100%}.uploadcare--progress__text{display:table-cell;vertical-align:middle;text-align:center;font-size:60%;line-height:1}.uploadcare--progress__text-container{width:100%;height:100%;display:table;white-space:normal}.uploadcare--progress_type_canvas{padding:2px;width:32px;height:32px;color:#ffd800;border-color:#e3e1e1}.uploadcare--progressbar{overflow:hidden;width:100%;height:100%;background:#e3e1e1;border-radius:6px}.uploadcare--progressbar__value{width:0;height:100%;background:#ffd800}.uploadcare--menu{-ms-flex-negative:0;flex-shrink:0;width:100%;width:100vw;max-width:100%;height:100%;overflow:hidden}@media (min-width:760px){.uploadcare--menu{width:60px}}@media (max-width:759px){.uploadcare--menu{height:60px}}.uploadcare--menu__icon{-ms-flex-negative:0;flex-shrink:0;margin:14px}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__item_current:not(.uploadcare--menu__item_tab_file) .uploadcare--menu__icon{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin-left:0}}.uploadcare--menu__item{-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100vw;height:60px;overflow:hidden;cursor:default;background:#e3e1e1;color:#666;transition:background .3s,color .3s}@media (min-width:760px){.uploadcare--menu__item{width:60px}}.uploadcare--menu__item:focus,.uploadcare--menu__item:hover{color:#157cfc}.uploadcare--menu__item:active{background-color:#fff;color:#0969ee}.uploadcare--menu__item:focus{outline:none;box-shadow:inset 0 0 0 2px rgba(21,124,252,.5)}.uploadcare--menu__item[aria-disabled=true]{background:#e3e1e1!important;color:#666!important;cursor:not-allowed}.uploadcare--menu__item:after{content:attr(title);-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;height:30px;font-size:17px;line-height:30px;white-space:nowrap}@media (min-width:760px){.uploadcare--menu__item:after{overflow:hidden;max-width:170px;text-overflow:ellipsis}}.uploadcare--menu__item_current,.uploadcare--menu__item_current:active,.uploadcare--menu__item_current:focus,.uploadcare--menu__item_current:hover{background-color:#fff;color:#353535}.uploadcare--menu__item_hidden{display:none}.uploadcare--menu__items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;padding-right:100vw;overflow-y:auto;overflow-x:hidden;background:#e3e1e1}.uploadcare--menu__toggle{width:60px;height:60px;transition:none}.uploadcare--menu__toggle:focus{outline-offset:-2px}@media (min-width:760px){.uploadcare--menu__toggle{display:none}}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__toggle-icon_back{display:none}}@media (max-width:759px){.uploadcare--menu_opened{position:relative;z-index:1000;height:100%}.uploadcare--menu_opened .uploadcare--menu__toggle{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;width:100%;text-align:left;background:#e3e1e1}.uploadcare--menu_opened .uploadcare--menu__toggle-icon_menu{display:none}.uploadcare--menu_opened .uploadcare--menu__items{height:calc(100% - 60px)}}.uploadcare--footer{-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;width:100%;margin-top:10px;padding:5px 20px 15px}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer{display:block}}.uploadcare--footer:empty{display:none}.uploadcare--footer__additions{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;padding:0 0 15px;text-align:center}@media (max-width:759px) and (orientation:landscape){.uploadcare--footer__additions{padding:0 20px}}@media (max-width:500px) and (orientation:landscape){.uploadcare--footer__additions{display:none}}@media (min-width:760px){.uploadcare--footer__additions{padding:0 20px}}.uploadcare--footer__additions:empty{visibility:hidden;padding:0}.uploadcare--footer__button{margin-top:5px;margin-bottom:5px}.uploadcare--footer__button:first-of-type{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0}.uploadcare--footer__button:nth-of-type(2){-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}@media (max-width:759px){.uploadcare--footer__button{max-width:calc(50% - 20px)}}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer__button:first-of-type{float:left}.uploadcare--footer__button:nth-of-type(2){float:right}}.uploadcare--dragging .uploadcare--draganddrop{margin:20px;background:#e3e1e1;color:#a4a2a1;border:2px dashed;border-radius:20px}.uploadcare--draganddrop.uploadcare--dragging{color:#157cfc!important}@media (max-width:759px){.uploadcare--draganddrop__title{display:none}}.uploadcare--draganddrop:not(.uploadcare--draganddrop_supported) .uploadcare--draganddrop__supported,.uploadcare--draganddrop_supported .uploadcare--draganddrop__not-supported,.uploadcare--dragging .uploadcare--dialog__close,.uploadcare--dragging__show{display:none}.uploadcare--dragging .uploadcare--dragging__show{display:block}.uploadcare--dragging .uploadcare--dragging__hide{display:none}.uploadcare--file{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;box-sizing:border-box;padding:5px 0 5px 20px;color:#353535;cursor:default}.uploadcare--file:hover{background:rgba(21,124,252,.1)}.uploadcare--file__description{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-width:0;padding-right:20px;text-align:left}.uploadcare--file__description:focus,.uploadcare--file__description:focus .uploadcare--file__preview,.uploadcare--file__description:hover,.uploadcare--file__description:hover .uploadcare--file__preview{color:#157cfc}.uploadcare--file__description:active,.uploadcare--file__description:active .uploadcare--file__preview{color:#0969ee}.uploadcare--file__description:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:2px}.uploadcare--file__icon{max-width:100%;max-height:100%}.uploadcare--file__name{overflow:hidden;margin:0;max-width:calc(100vw - 200px);line-height:25px;white-space:nowrap;text-overflow:ellipsis;transition:color .3s}@media (min-width:760px){.uploadcare--file__name{max-width:350px}}.uploadcare--file__preview{-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;float:left;box-sizing:border-box;margin-right:10px;padding:2px;width:60px;height:60px;overflow:hidden;border:1px solid;border-radius:6px;background:transparent;color:#e3e1e1;transition:border .3s}.uploadcare--file__progressbar{-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:center;align-self:center;margin:0 10px;width:60px;height:10px}.uploadcare--file__size{font-size:12.5px;color:#a4a2a1}.uploadcare--file_status_error,.uploadcare--file_status_error .uploadcare--file__description,.uploadcare--file_status_error .uploadcare--file__preview{color:#e66a6a!important}.uploadcare--file_status_error .uploadcare--file__name{color:hsla(0,71%,66%,.5)!important}.uploadcare--file_status_error .uploadcare--file__progressbar,.uploadcare--file_status_error .uploadcare--file__size,.uploadcare--file_status_uploaded .uploadcare--file__progressbar{display:none}.uploadcare--file_status_uploading,.uploadcare--file_status_uploading .uploadcare--file__description{color:#353535!important}.uploadcare--file_status_uploading .uploadcare--file__name{max-width:calc(100vw - 280px)}@media (min-width:760px){.uploadcare--file_status_uploading .uploadcare--file__name{max-width:270px}}.uploadcare--file_status_uploading .uploadcare--file__preview{background:#ffd800;color:#ffd800!important}.uploadcare--files{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:auto;width:100%;height:100%}.uploadcare--files__item{-ms-flex-negative:0;flex-shrink:0}.uploadcare--crop-sizes{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.uploadcare--crop-sizes__item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0;height:65px;background:transparent;border-color:transparent;color:#353535}.uploadcare--crop-sizes__item:focus,.uploadcare--crop-sizes__item:hover{background:transparent;border-color:transparent;color:#157cfc}.uploadcare--crop-sizes__item:active{background:transparent;border-color:transparent;color:#0969ee}.uploadcare--crop-sizes__item:disabled,.uploadcare--crop-sizes__item[aria-disabled=true]{border-color:transparent!important}.uploadcare--crop-sizes__item:after{content:attr(data-caption);display:block;font-size:14px;line-height:25px;text-transform:uppercase}@media (max-width:400px),(max-width:600px) and (orientation:landscape){.uploadcare--crop-sizes__item:after{font-size:12px}}.uploadcare--crop-sizes__item:before{content:"";display:block;-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;margin:1px 0;width:6px;height:6px;background:transparent;border-radius:50%}.uploadcare--crop-sizes__item_current:active,.uploadcare--crop-sizes__item_current:focus,.uploadcare--crop-sizes__item_current:hover{color:#353535}.uploadcare--crop-sizes__item_current:before{background:#157cfc}.uploadcare--crop-sizes__icon{box-sizing:border-box;width:30px;height:30px;border:2px solid;border-radius:2px;color:inherit;-webkit-transform:scale(.666);transform:scale(.666)}.uploadcare--crop-sizes__icon_free{border:none;border-radius:0;-webkit-transform:none;transform:none}.uploadcare--file-source{margin:10px;border-color:#e3e1e1;background:#e3e1e1;color:#353535}.uploadcare--file-source_all{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;border-color:currentColor;background:transparent;color:#157cfc}.uploadcare--file-sources{-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}@media (max-width:759px) and (max-height:450px),(min-width:760px){.uploadcare--file-sources{display:none}}.uploadcare--file-sources__caption{margin:15px 0 5px}@media (max-width:759px) and (max-height:550px){.uploadcare--file-sources__item:nth-child(4),.uploadcare--file-sources__item:nth-child(5),.uploadcare--file-sources__item:nth-child(6){display:none}}.uploadcare--file-sources__items{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-width:300px}.uploadcare--file-sources__items:empty,.uploadcare--file-sources__items:not(.uploadcare--file-sources__items_many) .uploadcare--file-source__all{display:none}.uploadcare--media{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;width:100%}.uploadcare--media__image{position:absolute;top:50%;left:50%;max-width:100%;max-height:100%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.uploadcare--media__video{all:initial;width:auto;max-width:100%;height:auto;min-height:100px;max-height:100%}@media (max-width:759px) and (max-height:379px){.uploadcare--media__video{max-height:120px}}@media (max-width:759px) and (min-height:380px) and (max-height:499px){.uploadcare--media__video{max-height:160px}}@media (max-width:759px) and (min-height:500px),(min-width:760px){.uploadcare--media__video{max-height:300px}}.uploadcare--camera__button{margin:5px 10px}.uploadcare--camera__button_type_mirror{position:absolute;top:15px;left:50%;margin:0;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.uploadcare--camera__video{transition:-webkit-transform .8s cubic-bezier(.23,1,.32,1);transition:transform .8s cubic-bezier(.23,1,.32,1);transition:transform .8s cubic-bezier(.23,1,.32,1),-webkit-transform .8s cubic-bezier(.23,1,.32,1)}.uploadcare--camera__video_mirrored{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.uploadcare--camera__video-container{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;position:relative;margin-bottom:10px}.uploadcare--camera_status_denied .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_capture,.uploadcare--camera_status_denied .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_denied .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_denied .uploadcare--camera__controls,.uploadcare--camera_status_denied .uploadcare--camera__not-found,.uploadcare--camera_status_denied .uploadcare--camera__please-allow,.uploadcare--camera_status_denied .uploadcare--camera__video-container,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_capture,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_retry,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_not-founded .uploadcare--camera__controls,.uploadcare--camera_status_not-founded .uploadcare--camera__please-allow,.uploadcare--camera_status_not-founded .uploadcare--camera__video-container,.uploadcare--camera_status_ready .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_ready .uploadcare--camera__button_type_retry,.uploadcare--camera_status_ready .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_ready .uploadcare--camera__not-found,.uploadcare--camera_status_ready .uploadcare--camera__please-allow,.uploadcare--camera_status_recording .uploadcare--camera__button_type_capture,.uploadcare--camera_status_recording .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_recording .uploadcare--camera__button_type_retry,.uploadcare--camera_status_recording .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_recording .uploadcare--camera__not-found,.uploadcare--camera_status_recording .uploadcare--camera__please-allow,.uploadcare--camera_status_requested .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_capture,.uploadcare--camera_status_requested .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_requested .uploadcare--camera__button_type_retry,.uploadcare--camera_status_requested .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_requested .uploadcare--camera__controls,.uploadcare--camera_status_requested .uploadcare--camera__not-found,.uploadcare--camera_status_requested .uploadcare--camera__video-container{display:none}.uploadcare--crop-widget>.uploadcare--preview__image{-webkit-filter:brightness(60%);filter:brightness(60%);-webkit-transform:none;transform:none}.uploadcare--tab{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;text-align:center}.uploadcare--tab,.uploadcare--tab__content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.uploadcare--tab__content{-ms-flex-negative:1;flex-shrink:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow-y:auto;padding:0 20px}.uploadcare--tab__header{-ms-flex-negative:0;flex-shrink:0;padding:0 20px;overflow:hidden}@media (min-width:760px){.uploadcare--tab__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-right:60px;height:60px}}.uploadcare--tab__iframe{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;width:100%;height:100%;border:0;opacity:0}.uploadcare--tab__title{margin-top:10px;margin-bottom:10px}.uploadcare--tab:not(.uploadcare--tab_current),.uploadcare--tab_name_preview.uploadcare--tab_current~.uploadcare--panel__footer{display:none}.uploadcare--tab_remote.uploadcare--tab_current~.uploadcare--panel__footer{margin-top:0}.uploadcare--panel{-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;box-sizing:border-box;overflow:hidden;width:100%;height:500px;border:1px solid #a4a2a1;border-radius:6px;background:#fff;color:#353535;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-weight:400;font-size:15px;line-height:20px}@media (min-width:760px){.uploadcare--panel{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.uploadcare--panel__content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.uploadcare--panel__file-counter{display:inline}.uploadcare--panel__footer{padding-top:15px;background:#fff9d8}.uploadcare--panel__icon{box-sizing:border-box;padding:3px}.uploadcare--panel__menu_hidden{display:none}.uploadcare--panel__message_hidden{color:#d4d2d2}.uploadcare--panel__powered-by{background:#353535;color:hsla(0,0%,100%,.5)}@media (min-width:760px){.uploadcare--panel__powered-by{display:none}}.uploadcare--tab:not(:nth-child(2)).uploadcare--tab_current~.uploadcare--panel__powered-by{display:none}@media (max-width:759px){.uploadcare--panel_menu-hidden .uploadcare--tab__header{padding:6px 60px 0;min-height:60px}}.uploadcare--panel:not(.uploadcare--panel_multiple) .uploadcare--panel__footer{display:none}.uploadcare--panel_multiple .uploadcare--tab_name_preview{height:100%}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__content{padding-left:0;padding-right:0}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer{position:relative;margin-top:0;padding-top:15px}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer:before{content:"";position:absolute;top:0;left:20px;width:calc(100% - 40px);height:1px;background:#e3e1e1}.uploadcare--preview__content{overflow:hidden}.uploadcare--preview__content_crop{padding:10px 20px}.uploadcare--dialog{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;position:fixed;top:0;left:0;z-index:2147483647;box-sizing:border-box;overflow:hidden;width:100%;height:100%;background:#fff;color:#353535;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-weight:400;font-size:15px;line-height:20px;opacity:0;transition:opacity .33s cubic-bezier(.05,.7,.25,1)}@media (min-width:760px){.uploadcare--dialog{-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow-y:auto;background:rgba(0,0,0,.5)}}@media (min-width:760px) and (max-height:559px){.uploadcare--dialog{padding-top:30px}}@media (min-width:760px) and (min-height:560px){.uploadcare--dialog{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.uploadcare--dialog__close{position:absolute;top:0;right:0;z-index:49}.uploadcare--dialog__close:focus{outline-offset:-2px}.uploadcare--dialog__container{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;overflow:hidden}@media (max-width:759px){.uploadcare--dialog__container{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:100%}}@media (min-width:760px){.uploadcare--dialog__container{width:calc(100% - 60px);max-width:900px;height:calc(100% - 60px);min-height:500px;max-height:660px;border-radius:6px}}@media (min-width:1210px){.uploadcare--dialog__container{max-width:1050px}}.uploadcare--dialog__panel{height:100%;border:none;border-radius:0}@media (min-width:1210px){.uploadcare--dialog__panel .uploadcare--menu,.uploadcare--dialog__panel .uploadcare--menu__item{width:250px}}.uploadcare--dialog__powered-by{-ms-flex-negative:0;flex-shrink:0}@media (max-width:759px){.uploadcare--dialog__powered-by{display:none}}.uploadcare--dialog_status_active{opacity:1}.uploadcare--widget{display:inline-block;vertical-align:baseline}.uploadcare--dragging .uploadcare--widget,.uploadcare--widget.uploadcare--dragging{position:relative}.uploadcare--widget__button{all:initial;display:inline-block;box-sizing:border-box;margin:0;padding:.4em 1em;width:auto;min-width:0;height:auto;min-height:0;border-radius:6px;border:none;background:#c3c3c3;color:#fff;cursor:default;text-align:center;white-space:nowrap;font:inherit;line-height:inherit;box-shadow:none;text-shadow:inherit;transition:background .3s}.uploadcare--widget__button:focus,.uploadcare--widget__button:hover{background:#b3b3b3;color:#fff;font:inherit;box-shadow:none;text-shadow:inherit}.uploadcare--widget__button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--widget__button:active{background:#b3b3b3}.uploadcare--widget__button:disabled{background:#c3c3c3;color:#fff;cursor:not-allowed}.uploadcare--widget__button_type_open{background:#157cfc;color:#fff}.uploadcare--widget__button_type_open:focus,.uploadcare--widget__button_type_open:hover{background:#3891ff}.uploadcare--widget__button_type_open:active{background:#0969ee}.uploadcare--widget__button_type_open:disabled{background:#c3c3c3}.uploadcare--widget__dragndrop-area{position:absolute;top:0;left:0;box-sizing:border-box;min-width:100%;min-height:100%;margin:0;padding:calc(.4em - 1.5px) 1em;font:inherit;line-height:inherit;text-align:center;white-space:nowrap;border:1.5px dashed;border-radius:6px;background:#e3e1e1;color:#a4a2a1;transition:color .3s;display:none}.uploadcare--dragging .uploadcare--widget__dragndrop-area{display:block}.uploadcare--widget.uploadcare--dragging .uploadcare--widget__dragndrop-area{color:#157cfc}.uploadcare--widget__file-name,.uploadcare--widget__file-size{display:inline}.uploadcare--widget__progress{display:inline-block;width:1.8em;height:1.8em;margin:0 .2em 0 0;padding:0;line-height:0;vertical-align:middle}.uploadcare--widget__text{display:inline-block;box-sizing:border-box;margin-right:.2em;padding:.4em 0;white-space:nowrap}.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_error .uploadcare--widget__button_type_remove,.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_loaded .uploadcare--widget__button_type_remove,.uploadcare--widget_option_clearable.uploadcare--widget_status_error .uploadcare--widget__button_type_open,.uploadcare--widget_status_error .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_error .uploadcare--widget__progress,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_open,.uploadcare--widget_status_loaded .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_ready .uploadcare--widget__button_type_remove,.uploadcare--widget_status_ready .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__text,.uploadcare--widget_status_started .uploadcare--widget__button_type_open,.uploadcare--widget_status_started .uploadcare--widget__button_type_remove{display:none}.uploadcare--page{width:auto;min-width:0;max-width:100%;height:auto;min-height:0;max-height:100%;overflow:hidden}.uploadcare--mouse-focused:focus{outline:none}\n\n');return __p.join("")},a.templates.JST["tab-camera-capture"]=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--tab__content">\r\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">\r\n ',(""+t("dialog.tabs.camera.title")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n\r\n <div class="uploadcare--camera__controls">\r\n <button type="button"\r\n class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_photo">\r\n ',(""+t("dialog.tabs.camera.capture")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n <button type="button"\r\n class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_video">\r\n ',(""+t("dialog.tabs.camera.startRecord")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n </button>\r\n </div>\r\n</div>\r\n");return __p.join("")},a.templates.JST["tab-camera"]=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--tab__content">\r\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">',(""+t("dialog.tabs.camera.title")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'</div>\r\n\r\n <div class="uploadcare--media uploadcare--camera__video-container">\r\n <video muted class="uploadcare--media__video uploadcare--camera__video uploadcare--camera__video_mirrored"></video>\r\n\r\n <button type="button" class="uploadcare--button uploadcare--button_size_small uploadcare--button_overlay uploadcare--camera__button uploadcare--camera__button_type_mirror">\r\n ',(""+t("dialog.tabs.camera.mirror")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n </div>\r\n\r\n <div class="uploadcare--camera__controls">\r\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_start-record">\r\n ',(""+t("dialog.tabs.camera.startRecord")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_capture">\r\n ',(""+t("dialog.tabs.camera.capture")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n <button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_cancel-record">\r\n ',(""+t("dialog.tabs.camera.cancelRecord")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_stop-record">\r\n ',(""+t("dialog.tabs.camera.stopRecord")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n </div>\r\n\r\n <div class="uploadcare--camera__please-allow">\r\n <div class="uploadcare--text uploadcare--text_size_medium">\r\n ',(""+t("dialog.tabs.camera.pleaseAllow.title")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n <div class="uploadcare--text">\r\n ',t("dialog.tabs.camera.pleaseAllow.text"),'\r\n </div>\r\n </div>\r\n\r\n <div class="uploadcare--camera__not-found">\r\n <div class="uploadcare--text uploadcare--text_size_medium">\r\n ',(""+t("dialog.tabs.camera.notFound.title")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n <div class="uploadcare--text">\r\n ',(""+t("dialog.tabs.camera.notFound.text")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n </div>\r\n\r\n <button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_retry">\r\n ',(""+t("dialog.tabs.camera.retry")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n </button>\r\n</div>\r\n");return __p.join("")},a.templates.JST["tab-file"]=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--tab__content uploadcare--draganddrop">\r\n <div class="uploadcare--text uploadcare--text_size_extra-large uploadcare--dragging__show">\r\n ',t("draghere"),'\r\n </div>\r\n\r\n <div class="uploadcare--draganddrop__title uploadcare--dragging__hide">\r\n <div class="uploadcare--draganddrop__supported">\r\n <div class="uploadcare--text uploadcare--text_size_extra-large">\r\n ',t("dialog.tabs.file.drag"),'\r\n </div>\r\n <div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted">\r\n ',(""+t("dialog.tabs.file.or")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n </div>\r\n\r\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--draganddrop__not-supported">\r\n ',t("dialog.tabs.file.nodrop"),'\r\n </div>\r\n </div>\r\n\r\n <button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--tab__action-button needsclick uploadcare--dragging__hide">\r\n ',(""+t("dialog.tabs.file.button")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n\r\n <div class="uploadcare--file-sources uploadcare--dragging__hide">\r\n <div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted uploadcare--file-sources__caption">\r\n ',(""+t("dialog.tabs.file.also")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n <div class="uploadcare--file-sources__items">\r\n <button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--file-source uploadcare--file-source_all uploadcare--file-sources_item">\r\n <svg role="presentation" width="32" height="32" class="uploadcare--icon">\r\n <use xlink:href="#uploadcare--icon-more"></use>\r\n </svg>\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n');return __p.join("")},a.templates.JST["tab-preview-error"]=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--tab__content uploadcare--preview__content uploadcare--error">\r\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">\r\n ',(""+t("dialog.tabs.preview.error."+error+".title")||t("dialog.tabs.preview.error.default.title")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n\r\n <div class="uploadcare--text">',(""+t("dialog.tabs.preview.error."+error+".text")||t("dialog.tabs.preview.error.default.text")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'</div>\r\n\r\n <button type="button" class="uploadcare--button uploadcare--preview__back">\r\n ',(""+t("dialog.tabs.preview.error."+error+".back")||t("dialog.tabs.preview.error.default.back")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n </button>\r\n</div>\r\n");return __p.join("")},a.templates.JST["tab-preview-image"]=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--tab__header">\r\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">\r\n ',(""+t("dialog.tabs.preview.image.title")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n</div>\r\n\r\n<div class="uploadcare--tab__content uploadcare--preview__content">\r\n <div class="uploadcare--media">\x3c!--\r\n 1162x684 is 1.5 size of conteiner\r\n TODO Use picture and srcset for create responsive image\r\n --\x3e<img\r\n src="',(""+src).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'"\r\n title="',(""+(name||"")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'"\r\n alt="',(""+(name||"")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'"\r\n class="uploadcare--media__image uploadcare--preview__image"\r\n />\r\n </div>\r\n</div>\r\n\r\n<div class="uploadcare--footer uploadcare--tab__footer">\r\n <div class="uploadcare--footer__additions">\r\n '),crop&&__p.push('\r\n <div class="uploadcare--crop-sizes">\r\n <div role="button" tabindex="0"\r\n class="uploadcare--button uploadcare--button_icon uploadcare--crop-sizes__item" data-caption="free">\r\n <div class="uploadcare--crop-sizes__icon"></div>\r\n </div>\r\n </div>\r\n '),__p.push('\r\n </div>\r\n\r\n \x3c!-- TODO Change Cancel to Remove --\x3e\r\n <button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">\r\n ',(""+t("dialog.tabs.preview.image.change")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n\r\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">\r\n ',(""+t("dialog.tabs.preview.done")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n </button>\r\n</div>\r\n");return __p.join("")},a.templates.JST["tab-preview-multiple-file"]=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--file uploadcare--files__item uploadcare--file_status_uploading">\r\n <div class="uploadcare--file__description" tabindex="0">\r\n <div class="uploadcare--file__preview"></div>\r\n <div class="uploadcare--file__name">\r\n ',(""+t("dialog.tabs.preview.unknownName")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n <div class="uploadcare--file__size"></div>\r\n <div class="uploadcare--file__error"></div>\r\n </div>\r\n\r\n <div class="uploadcare--file__progressbar">\r\n <div class="uploadcare--progressbar">\r\n <div class="uploadcare--progressbar__value"></div>\r\n </div>\r\n </div>\r\n\r\n <button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--file__remove">\r\n <svg role="presentation" width="32" height="32" class="uploadcare--icon">\r\n <use xlink:href="#uploadcare--icon-remove"></use>\r\n </svg>\r\n </button>\r\n</div>\r\n');return __p.join("")},a.templates.JST["tab-preview-multiple"]=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--tab__header">\r\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title"></div>\r\n</div>\r\n\r\n<div class="uploadcare--tab__content uploadcare--preview__content">\r\n <div class="uploadcare--files"></div>\r\n</div>\r\n\r\n<div class="uploadcare--footer uploadcare--tab__footer">\r\n <div class="uploadcare--footer__additions uploadcare--preview__message"></div>\r\n\r\n <button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">\r\n ',(""+t("dialog.tabs.preview.multiple.clear")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n\r\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">\r\n ',(""+t("dialog.tabs.preview.multiple.done")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n </button>\r\n</div>\r\n");return __p.join("")},a.templates.JST["tab-preview-regular"]=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--tab__header">\r\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">',(""+t("dialog.tabs.preview.regular.title")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'</div>\r\n</div>\r\n\r\n<div class="uploadcare--tab__content uploadcare--preview__content">\r\n <div class="uploadcare--text uploadcare--preview__file-name">\r\n ',(""+(file.name||t("dialog.tabs.preview.unknownName"))).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"",(""+utils.readableFileSize(file.size,"",", ")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n</div>\r\n\r\n<div class="uploadcare--footer uploadcare--tab__footer">\r\n <button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">\r\n ',(""+t("dialog.tabs.preview.change")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">\r\n ',(""+t("dialog.tabs.preview.done")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n </button>\r\n</div>\r\n\r\n");return __p.join("")},a.templates.JST["tab-preview-unknown"]=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--tab__header">\r\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">\r\n ',(""+t("dialog.tabs.preview.unknown.title")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n</div>\r\n\r\n<div class="uploadcare--tab__content uploadcare--preview__content">\r\n <div class="uploadcare--text uploadcare--preview__file-name"></div>\r\n</div>\r\n\r\n<div class="uploadcare--footer uploadcare--tab__footer">\r\n \x3c!-- TODO Change Cancel to Remove --\x3e\r\n <button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">\r\n ',(""+t("dialog.tabs.preview.change")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n\r\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">\r\n ',(""+t("dialog.tabs.preview.unknown.done")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n </button>\r\n</div>\r\n");return __p.join("")},a.templates.JST["tab-preview-video"]=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--tab__header">\r\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">\r\n ',(""+t("dialog.tabs.preview.video.title")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </div>\r\n</div>\r\n\r\n<div class="uploadcare--tab__content uploadcare--preview__content">\r\n <div class="uploadcare--media">\r\n <video controls class="uploadcare--media__video uploadcare--preview__video"></video>\r\n </div>\r\n</div>\r\n\r\n<div class="uploadcare--footer uploadcare--tab__footer">\r\n <button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">\r\n ',(""+t("dialog.tabs.preview.video.change")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'\r\n </button>\r\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">\r\n ',(""+t("dialog.tabs.preview.done")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n </button>\r\n</div>\r\n");return __p.join("")},a.templates.JST["tab-url"]=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--tab__content">\r\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">',(""+t("dialog.tabs.url.title")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'</div>\r\n\r\n <div class="uploadcare--text">',(""+t("dialog.tabs.url.line1")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'</div>\r\n <div class="uploadcare--text">',(""+t("dialog.tabs.url.line2")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'</div>\r\n\r\n <form class="uploadcare--form">\r\n <input type="text" class="uploadcare--input" placeholder="',(""+t("dialog.tabs.url.input")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'">\r\n <button type="submit" class="uploadcare--button uploadcare--button_primary uploadcare--tab__action-button" type="submit">',(""+t("dialog.tabs.url.button")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"</button>\r\n </form>\r\n</div>\r\n");return __p.join("")},a.templates.JST["widget-button"]=function(e){var __p=[],t=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<button type="button" class="uploadcare--widget__button uploadcare--widget__button_type_',name,'">\r\n ',(""+caption).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n</button>\r\n");return __p.join("")},a.templates.JST["widget-file-name"]=function(e){var __p=[],t=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--link uploadcare--widget__file-name"\r\n tabindex="0" role="link">',(""+utils.fitText(name,20)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'</div>\x3c!--\r\n--\x3e<div class="uploadcare--widget__file-size">,\r\n ',(""+utils.readableFileSize(size)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),"\r\n</div>\r\n");return __p.join("")},a.templates.JST.widget=function(e){var __p=[],r=function(){__p.push.apply(__p,arguments)};with(e||{})__p.push('<div class="uploadcare--widget">\r\n <div class="uploadcare--widget__dragndrop-area">',(""+t("draghere")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"),'</div>\r\n <div class="uploadcare--widget__progress"></div>\r\n <div class="uploadcare--widget__text"></div>\r\n</div>\r\n');return __p.join("")},function(){var e,t;e=a.jQuery,t=a.templates.tpl,a.settings.waitForSettings.add(function(r){var o,a;return o=t("styles",{settings:r}),(a=n.createElement("style")).setAttribute("type","text/css"),null!=a.styleSheet?a.styleSheet.cssText=o:a.appendChild(n.createTextNode(o)),e("head").prepend(a)})}.call(this),function(t){t.Jcrop=function(e,r){var o,a=t.extend({},t.Jcrop.defaults);function i(e){return Math.round(e)+"px"}function l(e){return a.baseClass+"-"+e}function s(){return t.fx.step.hasOwnProperty("backgroundColor")}function u(e){var n=t(e).offset();return[n.left,n.top]}function c(e){return[e.pageX-o[0],e.pageY-o[1]]}function p(e){"object"!=typeof e&&(e={}),a=t.extend(a,e),t.each(["onChange","onSelect","onRelease","onDblClick"],function(e,t){"function"!=typeof a[t]&&(a[t]=function(){})})}function d(e,t){if(o=u(k),"move"===e)return W.activateHandlers(function(e){var t=e;return K.watchKeys(),function(e){B.moveOffset([e[0]-t[0],e[1]-t[1]]),t=e,H.update()}}(t),b);var n=B.getFixed(),r=h(e),a=B.getCorner(h(r));B.setPressed(B.getCorner(r)),B.setCurrent(a),W.activateHandlers(f(e,n),b)}function f(e,t){return function(n){if(a.aspectRatio)switch(e){case"e":case"w":n[1]=t.y+1;break;case"n":n[0]=t.x+1;break;case"s":n[0]=t.x+1}else switch(e){case"e":case"w":n[1]=t.y2;break;case"n":n[0]=t.x2;break;case"s":n[0]=t.x2}B.setCurrent(n),H.update()}}function h(e){switch(e){case"n":return"sw";case"s":case"e":return"nw";case"w":return"ne";case"ne":return"sw";case"nw":return"se";case"se":return"nw";case"sw":return"ne"}}function m(e){return function(t){return!a.disabled&&(!("move"===e&&!a.allowMove)&&(o=u(k),M=!0,d(e,c(t)),t.stopPropagation(),t.preventDefault(),!1))}}function g(e){return{x:e.x*N,y:e.y*D,x2:e.x2*N,y2:e.y2*D,w:e.w*N,h:e.h*D}}function b(e){B.getFixed();H.enableHandles(),H.done()}function v(){var e=t("<div></div>").addClass(l("tracker"));return e.css({opacity:0,backgroundColor:"white"}),e}"object"!=typeof e&&(e=t(e)[0]),"object"!=typeof r&&(r={}),p(r);var y={border:"none",visibility:"visible",margin:0,padding:0,position:"absolute",top:0,left:0},_=t(e),w=!0;if("IMG"==e.tagName){if(0!=_[0].width&&0!=_[0].height)_.width(_[0].width),_.height(_[0].height);else{var x=new Image;x.src=_[0].src,_.width(x.width),_.height(x.height)}var k=_.clone().removeAttr("id").css(y).show();k.width(_.width()),k.height(_.height()),_.after(k).hide()}else k=_.css(y).show(),w=!1,null===a.shade&&(a.shade=!0);!function(e,t,n){var r=e.width(),o=e.height();r>t&&t>0&&(r=t,o=t/e.width()*e.height()),o>n&&n>0&&(o=n,r=n/e.height()*e.width()),N=e.width()/r,D=e.height()/o,e.width(r).height(o)}(k,a.boxWidth,a.boxHeight);var C=k.width(),S=k.height(),T=t("<div />").width(C).height(S).addClass(l("holder")).css({position:"relative",backgroundColor:a.bgColor}).insertAfter(_).append(k);a.addClass&&T.addClass(a.addClass);var E=t("<div />"),O=t("<div />").width("100%").height("100%").css({zIndex:310,position:"absolute",overflow:"hidden"}),j=t("<div />").css({position:"absolute",zIndex:600}).dblclick(function(){var e=B.getFixed();a.onDblClick.call(J,e)}).insertBefore(k).append(O);w&&(E=t("<img />").attr("src",k.attr("src")).css(y).width(C).height(S),O.append(E));var P,z,A,F,N,D,M,R=a.boundary,L=v().width(C+2*R).height(S+2*R).css({position:"absolute",top:i(-R),left:i(-R),zIndex:290}),I=a.bgColor,q=a.bgOpacity;o=u(k);var U=function(){function e(){var e,t={},r=["touchstart","touchmove","touchend"],o=n.createElement("div");try{for(e=0;e<r.length;e++){var a=r[e],i=(a="on"+a)in o;i||(o.setAttribute(a,"return;"),i="function"==typeof o[a]),t[r[e]]=i}return t.touchstart&&t.touchend&&t.touchmove}catch(e){return!1}}return{createDragger:function(e){return function(t){return t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,!a.disabled&&(!("move"===e&&!a.allowMove)&&(M=!0,d(e,c(t)),t.stopPropagation(),t.preventDefault(),!1))}},isSupported:e,support:!0===a.touchSupport||!1===a.touchSupport?a.touchSupport:e()}}(),B=function(){var e,t,n=0,r=0,o=0,i=0;function l(){if(!a.aspectRatio)return function(){var e,t=o-n,a=i-r;return P&&Math.abs(t)>P&&(o=t>0?n+P:n-P),z&&Math.abs(a)>z&&(i=a>0?r+z:r-z),F/D&&Math.abs(a)<F/D&&(i=a>0?r+F/D:r-F/D),A/N&&Math.abs(t)<A/N&&(o=t>0?n+A/N:n-A/N),0>n&&(o-=n,n-=n),0>r&&(i-=r,r-=r),0>o&&(n-=o,o-=o),0>i&&(r-=i,i-=i),o>C&&(n-=e=o-C,o-=e),i>S&&(r-=e=i-S,i-=e),n>C&&(i-=e=n-S,r-=e),r>S&&(i-=e=r-S,r-=e),c(u(n,r,o,i))}();var e,t,l,s,p=a.aspectRatio,d=a.minSize[0]/N,f=a.maxSize[0]/N,h=a.maxSize[1]/D,m=o-n,g=i-r,b=Math.abs(m),v=Math.abs(g);return 0===f&&(f=10*C),0===h&&(h=10*S),p>b/v?(t=i,l=v*p,0>(e=0>m?n-l:l+n)?(e=0,s=Math.abs((e-n)/p),t=0>g?r-s:s+r):e>C&&(e=C,s=Math.abs((e-n)/p),t=0>g?r-s:s+r)):(e=o,s=b/p,0>(t=0>g?r-s:r+s)?(t=0,l=Math.abs((t-r)*p),e=0>m?n-l:l+n):t>S&&(t=S,l=Math.abs(t-r)*p,e=0>m?n-l:l+n)),e>n?(d>e-n?e=n+d:e-n>f&&(e=n+f),t=t>r?r+(e-n)/p:r-(e-n)/p):n>e&&(d>n-e?e=n-d:n-e>f&&(e=n-f),t=t>r?r+(n-e)/p:r-(n-e)/p),0>e?(n-=e,e=0):e>C&&(n-=e-C,e=C),0>t?(r-=t,t=0):t>S&&(r-=t-S,t=S),c(u(n,r,e,t))}function s(e){return e[0]<0&&(e[0]=0),e[1]<0&&(e[1]=0),e[0]>C&&(e[0]=C),e[1]>S&&(e[1]=S),[e[0],e[1]]}function u(e,t,n,r){var o=e,a=n,i=t,l=r;return e>n&&(o=n,a=e),t>r&&(i=r,l=t),[o,i,a,l]}function c(e){return{x:e[0],y:e[1],x2:e[2],y2:e[3],w:e[2]-e[0],h:e[3]-e[1]}}return{flipCoords:u,setPressed:function(e){e=s(e),o=n=e[0],i=r=e[1]},setCurrent:function(n){n=s(n),e=n[0]-o,t=n[1]-i,o=n[0],i=n[1]},getOffset:function(){return[e,t]},moveOffset:function(e){var t=e[0],a=e[1];0>n+t&&(t-=t+n),0>r+a&&(a-=a+r),i+a>S&&(a+=S-(i+a)),o+t>C&&(t+=C-(o+t)),n+=t,o+=t,r+=a,i+=a},getCorner:function(e){var t=l();switch(e){case"ne":return[t.x2,t.y];case"nw":return[t.x,t.y];case"se":return[t.x2,t.y2];case"sw":return[t.x,t.y2]}},getFixed:l}}(),V=function(){var e=!1,n=t("<div />").css({position:"absolute",zIndex:240,opacity:0}),r={top:s(),left:s().height(S),right:s().height(S),bottom:s()};function o(){return l(B.getFixed())}function l(e){r.top.css({left:i(e.x),width:i(e.w),height:i(e.y)}),r.bottom.css({top:i(e.y2),left:i(e.x),width:i(e.w),height:i(S-e.y2)}),r.right.css({left:i(e.x2),width:i(C-e.x2)}),r.left.css({width:i(e.x)})}function s(){return t("<div />").css({position:"absolute",backgroundColor:a.shadeColor||a.bgColor}).appendTo(n)}function u(){e||(e=!0,n.insertBefore(k),o(),H.setBgOpacity(1,0,1),E.hide(),c(a.shadeColor||a.bgColor,1),H.isAwake()?d(a.bgOpacity,1):d(1,1))}function c(e,t){$(f(),e,t)}function p(){e&&(n.remove(),E.show(),e=!1,H.isAwake()?H.setBgOpacity(a.bgOpacity,1,1):(H.setBgOpacity(1,1,1),H.disableHandles()),$(T,0,1))}function d(t,r){e&&(a.bgFade&&!r?n.animate({opacity:1-t},{queue:!1,duration:a.fadeTime}):n.css({opacity:1-t}))}function f(){return n.children()}return{update:o,updateRaw:l,getShades:f,setBgColor:c,enable:u,disable:p,resize:function(e,t){r.left.css({height:i(t)}),r.right.css({height:i(t)})},refresh:function(){a.shade?u():p(),H.isAwake()&&d(a.bgOpacity)},opacity:d}}(),H=function(){var e,r={},o={};function s(e){var n=t("<div />").css({position:"absolute"}).addClass(l(e));return j.append(n),n}function u(e){return function(e){var n=t("<div />").mousedown(m(e)).css({cursor:e+"-resize",position:"absolute"}).append("<div/>").addClass("ord-"+e);return U.support&&n.on("touchstart.jcrop",U.createDragger(e)),j.append(n),n}(e).addClass(l("handle"))}function c(){var e=B.getFixed();B.setPressed([e.x,e.y]),B.setCurrent([e.x2,e.y2]),p()}function p(t){return e?d(t):void 0}function d(t){var n=B.getFixed();(function(e,t){j.width(Math.round(e)).height(Math.round(t))})(n.w,n.h),function(e,t){a.shade||E.css({top:i(-t),left:i(-e)}),j.css({top:i(t),left:i(e)})}(n.x,n.y),a.shade&&V.updateRaw(n),e||(j.show(),a.shade?V.opacity(q):f(q,!0),e=!0),t?a.onSelect.call(J,g(n)):a.onChange.call(J,g(n))}function f(t,n,r){(e||n)&&(a.bgFade&&!r?k.animate({opacity:t},{queue:!1,duration:a.fadeTime}):k.css("opacity",t))}function h(){return!0,!!a.allowResize||void 0}function b(){!1}function y(e){e?(!0,b()):(!1,h())}t.isArray(a.createHandles)&&function(e){var t;for(t=0;t<e.length;t++)o[e[t]]=u(e[t])}(a.createHandles),a.drawBorders&&t.isArray(a.createBorders)&&function(e){var t,n;for(n=0;n<e.length;n++){switch(e[n]){case"n":t="hline";break;case"s":t="hline bottom";break;case"e":t="vline right";break;case"w":t="vline"}r[e[n]]=s(t)}}(a.createBorders),t(n).on("touchstart.jcrop-ios",function(e){t(e.currentTarget).hasClass("jcrop-tracker")&&e.stopPropagation()});var _=v().mousedown(m("move")).css({cursor:"move",position:"absolute",zIndex:360});return U.support&&_.on("touchstart.jcrop",U.createDragger("move")),O.append(_),b(),{updateVisible:p,update:d,release:function(){b(),j.hide(),a.shade?V.opacity(1):f(1),e=!1,a.onRelease.call(J)},refresh:c,isAwake:function(){return e},setCursor:function(e){_.css("cursor",e)},enableHandles:h,enableOnly:function(){!0},disableHandles:b,animMode:y,setBgOpacity:f,done:function(){y(!1),c()}}}(),W=function(){var e=function(){},r=function(){},o=a.trackDocument;function i(){L.css({zIndex:450}),U.support&&t(n).on("touchmove.jcrop",p).on("touchend.jcrop",d),o&&t(n).on("mousemove.jcrop",s).on("mouseup.jcrop",u)}function l(){L.css({zIndex:290}),t(n).off(".jcrop")}function s(t){return e(c(t)),!1}function u(t){return t.preventDefault(),t.stopPropagation(),M&&(M=!1,r(c(t)),H.isAwake()&&a.onSelect.call(J,g(B.getFixed())),l(),e=function(){},r=function(){}),!1}function p(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,s(e)}function d(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,u(e)}return o||L.mousemove(s).mouseup(u).mouseout(u),k.before(L),{activateHandlers:function(t,n){return M=!0,e=t,r=n,i(),!1}}}(),K=function(){var e=t('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}).addClass("jcrop-keymgr"),n=t("<div />").css({position:"absolute",overflow:"hidden"}).append(e);function r(e,t,n){a.allowMove&&(B.moveOffset([t,n]),H.updateVisible(!0)),e.preventDefault(),e.stopPropagation()}return a.keySupport&&(e.keydown(function(e){if(e.ctrlKey||e.metaKey)return!0;var t=!!e.shiftKey?10:1;switch(e.keyCode){case 37:r(e,-t,0);break;case 39:r(e,t,0);break;case 38:r(e,0,-t);break;case 40:r(e,0,t);break;case 9:return!0}return!1}).blur(function(t){e.hide()}),e.css({position:"absolute",left:"-20px"}),n.append(e).insertBefore(k)),{watchKeys:function(){a.keySupport&&(e.show(),e.focus())}}}();function G(e){(function(e){B.setPressed([e[0],e[1]]),B.setCurrent([e[2],e[3]]),H.update()})([e[0]/N,e[1]/D,e[2]/N,e[3]/D]),a.onSelect.call(J,g(B.getFixed())),H.enableHandles()}function $(e,t,n){var r=t||a.bgColor;a.bgFade&&s()&&a.fadeTime&&!n?e.animate({backgroundColor:r},{queue:!1,duration:a.fadeTime}):e.css("backgroundColor",r)}function Y(e){a.allowResize?e?H.enableOnly():H.enableHandles():H.disableHandles(),H.setCursor(a.allowMove?"move":"default"),a.hasOwnProperty("trueSize")&&(N=a.trueSize[0]/C,D=a.trueSize[1]/S),a.hasOwnProperty("setSelect")&&(G(a.setSelect),H.done(),delete a.setSelect),V.refresh(),a.bgColor!=I&&($(a.shade?V.getShades():T,a.shade&&a.shadeColor||a.bgColor),I=a.bgColor),q!=a.bgOpacity&&(q=a.bgOpacity,a.shade?V.refresh():H.setBgOpacity(q)),P=a.maxSize[0]||0,z=a.maxSize[1]||0,A=a.minSize[0]||0,F=a.minSize[1]||0,a.hasOwnProperty("outerImage")&&(k.attr("src",a.outerImage),delete a.outerImage),H.refresh()}Y(!0);var J={setSelect:G,setOptions:function(e){p(e),Y()},tellSelect:function(){return g(B.getFixed())},tellScaled:function(){return B.getFixed()},setClass:function(e){T.removeClass().addClass(l("holder")).addClass(e)},disable:function(){a.disabled=!0,H.disableHandles(),H.setCursor("default")},enable:function(){a.disabled=!1,Y()},cancel:function(){H.done(),W.activateHandlers(null,null)},release:H.release,destroy:function(){T.remove(),_.show(),_.css("visibility","visible"),t(e).removeData("Jcrop")},focus:K.watchKeys,getBounds:function(){return[C*N,S*D]},getWidgetSize:function(){return[C,S]},getScaleFactor:function(){return[N,D]},getOptions:function(){return a},ui:{holder:T,selection:j}};return _.data("Jcrop",J),J},t.fn.Jcrop=function(e,n){var r;return this.each(function(){if(t(this).data("Jcrop")){if("api"===e)return t(this).data("Jcrop");t(this).data("Jcrop").setOptions(e)}else"IMG"==this.tagName?t.Jcrop.Loader(this,function(){t(this).css({display:"block",visibility:"hidden"}),r=t.Jcrop(this,e),t.isFunction(n)&&n.call(r)}):(t(this).css({display:"block",visibility:"hidden"}),r=t.Jcrop(this,e),t.isFunction(n)&&n.call(r))}),this},t.Jcrop.Loader=function(n,r,o){var a=t(n),i=a[0];a.on("load.jcloader",function n(){i.complete?(a.off(".jcloader"),t.isFunction(r)&&r.call(i)):e.setTimeout(n,50)}).on("error.jcloader",function(e){a.off(".jcloader"),t.isFunction(o)&&o.call(i)}),i.complete&&t.isFunction(r)&&(a.off(".jcloader"),r.call(i))},t.Jcrop.defaults={allowMove:!0,allowResize:!0,trackDocument:!0,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:.6,bgFade:!1,aspectRatio:0,keySupport:!0,createHandles:["n","s","e","w","nw","ne","se","sw"],createBorders:["n","s","e","w"],drawBorders:!0,dragEdges:!0,fixedSupport:!0,touchSupport:null,shade:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onDblClick:function(){},onRelease:function(){}}}(a.jQuery),function(){var e,t;e=a.jQuery,t=a.utils,a.namespace("crop",function(n){return n.CropWidget=function(){var n;function r(t,n,r){this.element=t,this.originalSize=n,null==r&&(r={}),this.__api=e.Jcrop(this.element[0],{trueSize:this.originalSize,baseClass:"uploadcare--jcrop",addClass:"uploadcare--crop-widget",createHandles:["nw","ne","se","sw"],bgColor:"transparent",bgOpacity:.8}),this.setCrop(r),this.setSelection()}return r.prototype.setCrop=function(e){return this.crop=e,this.__api.setOptions({aspectRatio:e.preferedSize?e.preferedSize[0]/e.preferedSize[1]:0,minSize:e.notLess?t.fitSize(e.preferedSize,this.originalSize):[0,0]})},r.prototype.setSelection=function(e){var n,r,o,a;return e?(n=e.center,o=[e.width,e.height]):(n=!0,o=this.originalSize),this.crop.preferedSize&&(o=t.fitSize(this.crop.preferedSize,o,!0)),n?(r=(this.originalSize[0]-o[0])/2,a=(this.originalSize[1]-o[1])/2):(r=e.left||0,a=e.top||0),this.__api.setSelect([r,a,o[0]+r,o[1]+a])},n=/-\/crop\/([0-9]+)x([0-9]+)(\/(center|([0-9]+),([0-9]+)))?\//i,r.prototype.__parseModifiers=function(e){var t;return(t=null!=e?e.match(n):void 0)?{width:parseInt(t[1],10),height:parseInt(t[2],10),center:"center"===t[4],left:parseInt(t[5],10)||void 0,top:parseInt(t[6],10)||void 0}:void 0},r.prototype.setSelectionFromModifiers=function(e){return this.setSelection(this.__parseModifiers(e))},r.prototype.getSelection=function(){var e,t,n;return e=this.__api.tellSelect(),{left:t=Math.round(Math.max(0,e.x)),top:n=Math.round(Math.max(0,e.y)),width:Math.round(Math.min(this.originalSize[0],e.x2))-t,height:Math.round(Math.min(this.originalSize[1],e.y2))-n}},r.prototype.applySelectionToFile=function(e){var n=this;return e.then(function(e){return t.applyCropCoordsToInfo(e,n.crop,n.originalSize,n.getSelection())})},r}()})}.call(this),function(){var e,t,n,r=function(e,t){return function(){return e.apply(t,arguments)}},o=[].slice;t=a.namespace,a.settings,e=a.jQuery,n=a.utils,t("files",function(t){return t.BaseFile=function(){function t(t,n,o){var a;this.settings=n,this.sourceInfo=null!=o?o:{},this.__extendApi=r(this.__extendApi,this),this.__cancel=r(this.__cancel,this),this.__resolveApi=r(this.__resolveApi,this),this.__rejectApi=r(this.__rejectApi,this),this.__runValidators=r(this.__runValidators,this),this.__fileInfo=r(this.__fileInfo,this),this.__handleFileData=r(this.__handleFileData,this),this.__updateInfo=r(this.__updateInfo,this),this.__completeUpload=r(this.__completeUpload,this),this.fileId=null,this.fileName=null,this.sanitizedName=null,this.fileSize=null,this.isStored=null,this.cdnUrlModifiers=null,this.isImage=null,this.imageInfo=null,this.mimeType=null,this.s3Bucket=null,(a=this.sourceInfo).source||(a.source=this.sourceName),this.onInfoReady=e.Callbacks("once memory"),this.__setupValidation(),this.__initApi()}return t.prototype.__startUpload=function(){return e.Deferred().resolve()},t.prototype.__completeUpload=function(){var e,t,r,o,a=this;return r=0,this.settings.debugUploads&&(n.debug("Load file info.",this.fileId,this.settings.publicKey),t=setInterval(function(){return n.debug("Still waiting for file ready.",r,a.fileId,a.settings.publicKey)},5e3),this.apiDeferred.done(function(){return n.debug("File uploaded.",r,a.fileId,a.settings.publicKey)}).always(function(){return clearInterval(t)})),o=100,(e=function(){return"pending"===a.apiDeferred.state()?(r+=1,a.__updateInfo().done(function(){return setTimeout(e,o),o+=50})):void 0})()},t.prototype.__updateInfo=function(){var e=this;return n.jsonp(this.settings.urlBase+"/info/","GET",{jsonerrors:1,file_id:this.fileId,pub_key:this.settings.publicKey,wait_is_ready:+this.onInfoReady.fired()},{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail(function(t){return e.settings.debugUploads&&n.log("Can't load file info. Probably removed.",e.fileId,e.settings.publicKey,t),e.__rejectApi("info")}).done(this.__handleFileData)},t.prototype.__handleFileData=function(e){return this.fileName=e.original_filename,this.sanitizedName=e.filename,this.fileSize=e.size,this.isImage=e.is_image,this.imageInfo=e.image_info,this.mimeType=e.mime_type,this.isStored=e.is_stored,this.s3Bucket=e.s3_bucket,e.default_effects&&(this.cdnUrlModifiers="-/"+e.default_effects),this.s3Bucket&&this.cdnUrlModifiers&&this.__rejectApi("baddata"),this.onInfoReady.fired()||this.onInfoReady.fire(this.__fileInfo()),e.is_ready?this.__resolveApi():void 0},t.prototype.__progressInfo=function(){var e;return{state:this.__progressState,uploadProgress:this.__progress,progress:"ready"===(e=this.__progressState)||"error"===e?1:.9*this.__progress,incompleteFileInfo:this.__fileInfo()}},t.prototype.__fileInfo=function(){var e;return e=this.s3Bucket?"https://"+this.s3Bucket+".s3.amazonaws.com/"+this.fileId+"/"+this.sanitizedName:this.settings.cdnBase+"/"+this.fileId+"/",{uuid:this.fileId,name:this.fileName,size:this.fileSize,isStored:this.isStored,isImage:!this.s3Bucket&&this.isImage,originalImageInfo:this.imageInfo,mimeType:this.mimeType,originalUrl:this.fileId?e:null,cdnUrl:this.fileId?""+e+(this.cdnUrlModifiers||""):null,cdnUrlModifiers:this.cdnUrlModifiers,sourceInfo:this.sourceInfo}},t.prototype.__setupValidation=function(){return this.validators=this.settings.validators||this.settings.__validators||[],this.settings.imagesOnly&&this.validators.push(function(e){if(!1===e.isImage)throw new Error("image")}),this.onInfoReady.add(this.__runValidators)},t.prototype.__runValidators=function(e){var t,n,r,o,a,i;e=e||this.__fileInfo();try{for(a=this.validators,i=[],r=0,o=a.length;o>r;r++)n=a[r],i.push(n(e));return i}catch(e){return t=e,this.__rejectApi(t.message)}},t.prototype.__initApi=function(){return this.apiDeferred=e.Deferred(),this.__progressState="uploading",this.__progress=0,this.__notifyApi()},t.prototype.__notifyApi=function(){return this.apiDeferred.notify(this.__progressInfo())},t.prototype.__rejectApi=function(e){return this.__progressState="error",this.__notifyApi(),this.apiDeferred.reject(e,this.__fileInfo())},t.prototype.__resolveApi=function(){return this.__progressState="ready",this.__notifyApi(),this.apiDeferred.resolve(this.__fileInfo())},t.prototype.__cancel=function(){return this.__rejectApi("user")},t.prototype.__extendApi=function(e){var t=this;return e.cancel=this.__cancel,e.pipe=e.then=function(){return t.__extendApi(n.fixedPipe.apply(n,[e].concat(o.call(arguments))))},e},t.prototype.promise=function(){var e,t=this;return this.__apiPromise||(this.__apiPromise=this.__extendApi(this.apiDeferred.promise()),this.__runValidators(),"pending"===this.apiDeferred.state()&&((e=this.__startUpload()).done(function(){return t.__progressState="uploaded",t.__progress=1,t.__notifyApi(),t.__completeUpload()}),e.progress(function(e){return e>t.__progress?(t.__progress=e,t.__notifyApi()):void 0}),e.fail(function(){return t.__rejectApi("upload")}),this.apiDeferred.always(e.reject))),this.__apiPromise},t}()}),t("utils",function(e){return e.isFile=function(e){return e&&e.done&&e.fail&&e.cancel},e.valueToFile=function(t,n){return t&&!e.isFile(t)&&(t=a.fileFrom("uploaded",t,n)),t||null}})}.call(this),function(){var t,r,o,i,l,s;t=a.jQuery,l=a.utils,s=a.utils.abilities,r=s.Blob,o=s.FileReader,i=s.URL,a.namespace("utils.image",function(a){var s,u;return s=e.DataView,u=l.taskRunner(1),a.shrinkFile=function(e,n){var o;return o=t.Deferred(),i&&s&&r?(u(function(t){var r;return o.always(t),(r=l.imageLoader(i.createObjectURL(e))).always(function(e){return i.revokeObjectURL(e.src)}),r.fail(function(){return o.reject("not image")}),r.done(function(t){return o.notify(.1),a.getExif(e).always(function(e){var i;return o.notify(.2),i="resolved"===r.state(),(r=a.shrinkImage(t,n)).progress(function(e){return o.notify(.2+.6*e)}),r.fail(o.reject),r.done(function(t){var s,u;return s="image/jpeg",u=n.quality||.8,!i&&a.hasTransparency(t)&&(s="image/png",u=void 0),l.canvasToBlob(t,s,u,function(n){return t.width=t.height=1,o.notify(.9),e?((r=a.replaceJpegChunk(n,225,[e.buffer])).done(o.resolve),r.fail(function(){return o.resolve(n)})):o.resolve(n)})}),null})})}),o.promise()):o.reject("support")},a.shrinkImage=function(e,r){var o,a,i,s,u,c,p,d,f,h,m,g,b,v;return a=t.Deferred(),b=.71,e.width*b*e.height*b<r.size?a.reject("not required"):(g=p=e.width,m=e.height,d=g/m,v=Math.floor(Math.sqrt(r.size*d)),i=Math.floor(r.size/Math.sqrt(r.size*d)),c=5e6,u=4096,f=function(){return v>=g?void a.resolve(e):l.defer(function(){var t;return g=Math.round(g*b),m=Math.round(m*b),v>g*b&&(g=v,m=i),g*m>c&&(g=Math.floor(Math.sqrt(c*d)),m=Math.floor(c/Math.sqrt(c*d))),g>u&&(g=u,m=Math.round(g/d)),m>u&&(m=u,g=Math.round(d*m)),(t=n.createElement("canvas")).width=g,t.height=m,t.getContext("2d").drawImage(e,0,0,g,m),e.src="//:0",e.width=e.height=1,e=t,a.notify((p-g)/(p-v)),f()})},h=function(){var t,r;return(t=n.createElement("canvas")).width=v,t.height=i,(r=t.getContext("2d")).imageSmoothingQuality="high",r.drawImage(e,0,0,v,i),e.src="//:0",e.width=e.height=1,a.resolve(t)},o=n.createElement("canvas").getContext("2d"),s=navigator.userAgent.match(/\ Chrome\//),"imageSmoothingQuality"in o&&!s?h():f(),a.promise())},a.drawFileToCanvas=function(e,r,o,s,u){var c,p;return c=t.Deferred(),i?((p=l.imageLoader(i.createObjectURL(e))).always(function(e){return i.revokeObjectURL(e.src)}),p.fail(function(){return c.reject("not image")}),p.done(function(t){return c.always(function(){return t.src="//:0"}),u&&t.width*t.height>u?c.reject("max source"):a.getExif(e).always(function(e){var i,u,p,d,f,h,m,g,b,v;return h=(m=(f=a.parseExifOrientation(e)||1)>4)?[t.height,t.width]:[t.width,t.height],(g=[[1,0,0,1,0,0],[-1,0,0,1,d=(b=l.fitSize(h,[r,o]))[0],0],[-1,0,0,-1,d,p=b[1]],[1,0,0,-1,0,p],[0,1,1,0,0,0],[0,1,-1,0,d,0],[0,-1,-1,0,d,p],[0,-1,1,0,0,p]][f-1])?((i=n.createElement("canvas")).width=d,i.height=p,(u=i.getContext("2d")).transform.apply(u,g),m&&(d=(v=[p,d])[0],p=v[1]),s&&(u.fillStyle=s,u.fillRect(0,0,d,p)),u.drawImage(t,0,0,d,p),c.resolve(i,h)):c.reject("bad image")})}),c.promise()):c.reject("support")},a.readJpegChunks=function(e){var n,r,a,i,l;return l=function(e,t){var r;return(r=new o).onload=function(){return t(new s(r.result))},r.onerror=function(e){return n.reject("reader",e)},r.readAsArrayBuffer(e)},a=function(){return l(e.slice(r,r+128),function(e){var t,n,o;for(t=n=0,o=e.byteLength;o>=0?o>n:n>o;t=o>=0?++n:--n)if(255===e.getUint8(t)){r+=t;break}return i()})},i=function(){var t;return t=r,l(e.slice(r,r+=4),function(o){var i,s;return 4!==o.byteLength||255!==o.getUint8(0)?n.reject("corrupted"):218===(s=o.getUint8(1))?n.resolve():(i=o.getUint16(2)-2,l(e.slice(r,r+=i),function(e){return e.byteLength!==i?n.reject("corrupted"):(n.notify(t,i,s,e),a())}))})},n=t.Deferred(),o&&s?(r=2,l(e.slice(0,2),function(e){return 65496!==e.getUint16(0)?n.reject("not jpeg"):a()}),n.promise()):n.reject("support")},a.replaceJpegChunk=function(e,n,o){var i,l,u,c;return i=t.Deferred(),u=[],l=[],(c=a.readJpegChunks(e)).fail(i.reject),c.progress(function(e,t,r){return r===n?(u.push(e),l.push(t)):void 0}),c.done(function(){var t,a,c,p,d,f,h,m,g;for(p=[e.slice(0,2)],f=0,m=o.length;m>f;f++)t=o[f],(c=new s(new ArrayBuffer(4))).setUint16(0,65280+n),c.setUint16(2,t.byteLength+2),p.push(c.buffer),p.push(t);for(d=2,a=h=0,g=u.length;g>=0?g>h:h>g;a=g>=0?++h:--h)u[a]>d&&p.push(e.slice(d,u[a])),d=u[a]+l[a]+4;return p.push(e.slice(d,e.size)),i.resolve(new r(p,{type:e.type}))}),i.promise()},a.getExif=function(e){var n,r;return n=null,(r=a.readJpegChunks(e)).progress(function(e,t,r,o){return!n&&225===r&&o.byteLength>=14&&1165519206===o.getUint32(0)&&0===o.getUint16(4)?n=o:void 0}),r.then(function(){return n},function(e){return t.Deferred().reject(n,e)})},a.parseExifOrientation=function(e){var t,n,r,o;if(!e||e.byteLength<14||1165519206!==e.getUint32(0)||0!==e.getUint16(4))return null;if(18761===e.getUint16(6))n=!0;else{if(19789!==e.getUint16(6))return null;n=!1}if(42!==e.getUint16(8,n))return null;for(r=8+e.getUint32(10,n),t=e.getUint16(r-2,n),o=0;t>=0?t>o:o>t;t>=0?++o:--o){if(e.byteLength<r+10)return null;if(274===e.getUint16(r,n))return e.getUint16(r+8,n);r+=12}return null},a.hasTransparency=function(e){var t,r,o,a,i,l,s;for(i=50,(t=n.createElement("canvas")).width=t.height=i,(r=t.getContext("2d")).drawImage(e,0,0,i,i),o=r.getImageData(0,0,i,i).data,t.width=t.height=1,a=l=3,s=o.length;s>l;a=l+=4)if(o[a]<254)return!0;return!1}})}.call(this),function(){var e,t,n=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty,o=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function o(){this.constructor=e}return o.prototype=t.prototype,e.prototype=new o,e.__super__=t.prototype,e};e=a.jQuery,t=a.utils,a.namespace("files",function(r){return r.ObjectFile=function(r){var a;function i(e){this.__file=e,this.setFile=n(this.setFile,this),i.__super__.constructor.apply(this,arguments),this.fileName=this.__file.name||"original",this.__notifyApi()}return o(i,r),a=null,i.prototype.sourceName="local",i.prototype.setFile=function(e){return e&&(this.__file=e),this.sourceInfo.file=this.__file,this.__file?(this.fileSize=this.__file.size,this.fileType=this.__file.type||"application/octet-stream",this.settings.debugUploads&&t.debug("Use local file.",this.fileName,this.fileType,this.fileSize),this.__runValidators(),this.__notifyApi()):void 0},i.prototype.__startUpload=function(){var n,r,o,a=this;return this.apiDeferred.always(function(){return a.__file=null}),this.__file.size>=this.settings.multipartMinSize&&t.abilities.Blob?(this.setFile(),this.multipartUpload()):(r=t.abilities.iOSVersion,!this.settings.imageShrink||r&&8>r?(this.setFile(),this.directUpload()):(n=e.Deferred(),o=.4,t.image.shrinkFile(this.__file,this.settings.imageShrink).progress(function(e){return n.notify(e*o)}).done(this.setFile).fail(function(){return a.setFile(),o*=.1}).always(function(){return n.notify(o),a.directUpload().done(n.resolve).fail(n.reject).progress(function(e){return n.notify(o+e*(1-o))})}),n))},i.prototype.__autoAbort=function(e){return this.apiDeferred.fail(e.abort),e},i.prototype.directRunner=function(e){return a||(a=t.taskRunner(this.settings.parallelDirectUploads)),a(e)},i.prototype.directUpload=function(){var t,n=this;return t=e.Deferred(),this.__file?this.fileSize>104857600?(this.__rejectApi("size"),t):(this.directRunner(function(r){var o;return t.always(r),"pending"===n.apiDeferred.state()?((o=new FormData).append("UPLOADCARE_PUB_KEY",n.settings.publicKey),o.append("signature",n.settings.secureSignature),o.append("expire",n.settings.secureExpire),o.append("UPLOADCARE_STORE",n.settings.doNotStore?"":"auto"),o.append("file",n.__file,n.fileName),o.append("file_name",n.fileName),o.append("source",n.sourceInfo.source),n.__autoAbort(e.ajax({xhr:function(){var n;return(n=e.ajaxSettings.xhr()).upload&&n.upload.addEventListener("progress",function(e){return t.notify(e.loaded/e.total)},!1),n},crossDomain:!0,type:"POST",url:n.settings.urlBase+"/base/?jsonerrors=1",headers:{"X-UC-User-Agent":n.settings._userAgent},contentType:!1,processData:!1,data:o,dataType:"json",error:t.reject,success:function(e){return(null!=e?e.file:void 0)?(n.fileId=e.file,t.resolve()):t.reject()}}))):void 0}),t):(this.__rejectApi("baddata"),t)},i.prototype.multipartUpload=function(){var t,n=this;return t=e.Deferred(),this.__file?this.settings.imagesOnly?(this.__rejectApi("image"),t):(this.multipartStart().done(function(e){return n.uploadParts(e.parts,e.uuid).done(function(){return n.multipartComplete(e.uuid).done(function(e){return n.fileId=e.uuid,n.__handleFileData(e),t.resolve()}).fail(t.reject)}).progress(t.notify).fail(t.reject)}).fail(t.reject),t):t},i.prototype.multipartStart=function(){var e,n=this;return e={UPLOADCARE_PUB_KEY:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,filename:this.fileName,source:this.sourceInfo.source,size:this.fileSize,content_type:this.fileType,part_size:this.settings.multipartPartSize,UPLOADCARE_STORE:this.settings.doNotStore?"":"auto"},this.__autoAbort(t.jsonp(this.settings.urlBase+"/multipart/start/?jsonerrors=1","POST",e,{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail(function(r){return n.settings.debugUploads?t.log("Can't start multipart upload.",r,e):void 0}))},i.prototype.uploadParts=function(n,r){var o,a,i,l,s,u,c,p,d,f,h=this;for(l=[],i=e.now(),p=function(t,n){var r,a,s;if(l[t]=n,!(e.now()-i<250)){for(i=e.now(),r=0,a=0,s=l.length;s>a;a++)r+=n=l[a];return o.notify(r/h.fileSize)}},o=e.Deferred(),a=0,c=0,u=0,s=function(){var i,d,f,m,g;if(!(u>=h.fileSize))return f=u+h.settings.multipartPartSize,h.fileSize<f+h.settings.multipartMinLastPartSize&&(f=h.fileSize),d=h.__file.slice(u,f),u=f,m=c,a+=1,c+=1,i=0,(g=function(){return"pending"===h.apiDeferred.state()?(l[m]=0,h.__autoAbort(e.ajax({xhr:function(){var t;return(t=e.ajaxSettings.xhr()).responseType="text",t.upload&&t.upload.addEventListener("progress",function(e){return p(m,e.loaded)},!1),t},url:n[m],crossDomain:!0,type:"PUT",processData:!1,contentType:h.fileType,data:d,error:function(){return(i+=1)>h.settings.multipartMaxAttempts?(h.settings.debugUploads&&t.log("Part #"+m+" and file upload is failed.",r),o.reject()):(h.settings.debugUploads&&t.debug("Part #"+m+"("+i+") upload is failed.",r),g())},success:function(){return a-=1,s(),a?void 0:o.resolve()}}))):void 0})()},d=0,f=this.settings.multipartConcurrency;f>=0?f>d:d>f;f>=0?++d:--d)s();return o},i.prototype.multipartComplete=function(e){var n,r=this;return n={UPLOADCARE_PUB_KEY:this.settings.publicKey,uuid:e},this.__autoAbort(t.jsonp(this.settings.urlBase+"/multipart/complete/?jsonerrors=1","POST",n,{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail(function(n){return r.settings.debugUploads?t.log("Can't complete multipart upload.",e,r.settings.publicKey,n):void 0}))},i}(r.BaseFile)})}.call(this),function(){var e,t,n=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty,o=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function o(){this.constructor=e}return o.prototype=t.prototype,e.prototype=new o,e.__super__=t.prototype,e};e=a.jQuery,t=a.utils,a.namespace("files",function(r){return r.InputFile=function(r){function a(r){this.__input=r,this.__cleanUp=n(this.__cleanUp,this),a.__super__.constructor.apply(this,arguments),this.fileId=t.uuid(),this.fileName=e(this.__input).val().split("\\").pop(),this.__notifyApi()}return o(a,r),a.prototype.sourceName="local-compat",a.prototype.__startUpload=function(){var t,n,r,o;return t=e.Deferred(),o=this.settings.urlBase+"/iframe/",r="uploadcare--iframe-"+this.fileId,this.__iframe=e("<iframe>").attr({id:r,name:r}).css("display","none").appendTo("body").on("load",t.resolve).on("error",t.reject),n=function(t,n){return e("<input/>",{type:"hidden",name:t,value:n})},e(this.__input).attr("name","file"),this.__iframeForm=e("<form>").attr({method:"POST",action:o,enctype:"multipart/form-data",target:r}).append(n("UPLOADCARE_PUB_KEY",this.settings.publicKey)).append(n("UPLOADCARE_SIGNATURE",this.settings.secureSignature)).append(n("UPLOADCARE_EXPIRE",this.settings.secureExpire)).append(n("UPLOADCARE_FILE_ID",this.fileId)).append(n("UPLOADCARE_STORE",this.settings.doNotStore?"":"auto")).append(n("UPLOADCARE_SOURCE",this.sourceInfo.source)).append(this.__input).css("display","none").appendTo("body").submit(),t.always(this.__cleanUp)},a.prototype.__cleanUp=function(){var e,t;return null!=(e=this.__iframe)&&e.off("load error").remove(),null!=(t=this.__iframeForm)&&t.remove(),this.__iframe=null,this.__iframeForm=null},a}(r.BaseFile)})}.call(this),function(){var t;void 0===Function.prototype.scopedTo&&(Function.prototype.scopedTo=function(e,t){var n=this;return function(){return n.apply(e,Array.prototype.slice.call(t||[]).concat(Array.prototype.slice.call(arguments)))}}),(t=function(e,n){this.options=n||{},this.key=e,this.channels=new t.Channels,this.global_emitter=new t.EventsDispatcher;var r=this;this.checkAppKey(),this.connection=new t.Connection(this.key,this.options),this.connection.bind("connected",function(){r.subscribeAll()}).bind("message",function(e){var t,n=0===e.event.indexOf("pusher_internal:");e.channel&&(t=r.channel(e.channel))&&t.emit(e.event,e.data),n||r.global_emitter.emit(e.event,e.data)}).bind("disconnected",function(){r.channels.disconnect()}).bind("error",function(e){t.warn("Error",e)}),t.instances.push(this),t.isReady&&r.connect()}).instances=[],t.prototype={channel:function(e){return this.channels.find(e)},connect:function(){this.connection.connect()},disconnect:function(){this.connection.disconnect()},bind:function(e,t){return this.global_emitter.bind(e,t),this},bind_all:function(e){return this.global_emitter.bind_all(e),this},subscribeAll:function(){for(channelName in this.channels.channels)this.channels.channels.hasOwnProperty(channelName)&&this.subscribe(channelName)},subscribe:function(e){var t=this,n=this.channels.add(e,this);return"connected"===this.connection.state&&n.authorize(this.connection.socket_id,this.options,function(r,o){r?n.emit("pusher:subscription_error",o):t.send_event("pusher:subscribe",{channel:e,auth:o.auth,channel_data:o.channel_data})}),n},unsubscribe:function(e){this.channels.remove(e),"connected"===this.connection.state&&this.send_event("pusher:unsubscribe",{channel:e})},send_event:function(e,t,n){return this.connection.send_event(e,t,n)},checkAppKey:function(){(null===this.key||void 0===this.key)&&t.warn("Warning","You must pass your app key when you instantiate Pusher.")}},t.Util={extend:function e(t,n){for(var r in n)n[r]&&n[r].constructor&&n[r].constructor===Object?t[r]=e(t[r]||{},n[r]):t[r]=n[r];return t},stringify:function(){for(var t=["Pusher"],n=0;n<arguments.length;n++)"string"==typeof arguments[n]?t.push(arguments[n]):void 0==e.JSON?t.push(arguments[n].toString()):t.push(JSON.stringify(arguments[n]));return t.join(" : ")},arrayIndexOf:function(e,t){var n=Array.prototype.indexOf;if(null==e)return-1;if(n&&e.indexOf===n)return e.indexOf(t);for(i=0,l=e.length;i<l;i++)if(e[i]===t)return i;return-1}},t.debug=function(){t.log&&t.log(t.Util.stringify.apply(this,arguments))},t.warn=function(){if(e.console&&e.console.warn)e.console.warn(t.Util.stringify.apply(this,arguments));else{if(!t.log)return;t.log(t.Util.stringify.apply(this,arguments))}},t.VERSION="1.12.2",t.host="ws.pusherapp.com",t.ws_port=80,t.wss_port=443,t.channel_auth_endpoint="/pusher/auth",t.cdn_http="http://js.pusher.com/",t.cdn_https="https://d3dy5gmtp8yhk7.cloudfront.net/",t.dependency_suffix=".min",t.channel_auth_transport="ajax",t.activity_timeout=12e4,t.pong_timeout=3e4,t.isReady=!1,t.ready=function(){t.isReady=!0;for(var e=0,n=t.instances.length;n>e;e++)t.instances[e].connect()},function(){function e(){this._callbacks={}}function n(t){this.callbacks=new e,this.global_callbacks=[],this.failThrough=t}e.prototype.get=function(e){return this._callbacks[this._prefix(e)]},e.prototype.add=function(e,t){var n=this._prefix(e);this._callbacks[n]=this._callbacks[n]||[],this._callbacks[n].push(t)},e.prototype.remove=function(e,n){if(this.get(e)){var r=t.Util.arrayIndexOf(this.get(e),n);this._callbacks[this._prefix(e)].splice(r,1)}},e.prototype._prefix=function(e){return"_"+e},n.prototype.bind=function(e,t){return this.callbacks.add(e,t),this},n.prototype.unbind=function(e,t){return this.callbacks.remove(e,t),this},n.prototype.emit=function(e,t){for(var n=0;n<this.global_callbacks.length;n++)this.global_callbacks[n](e,t);var r=this.callbacks.get(e);if(r)for(n=0;n<r.length;n++)r[n](t);else this.failThrough&&this.failThrough(e,t);return this},n.prototype.bind_all=function(e){return this.global_callbacks.push(e),this},t.EventsDispatcher=n}(),function(){function e(e,t,n){void 0!==t[e]&&t[e](n)}function n(e,n,r){t.EventsDispatcher.call(this),this.state=void 0,this.errors=[],this.stateActions=r,this.transitions=n,this.transition(e)}n.prototype.transition=function(n,r){var o=this.state,a=this.stateActions;if(o&&-1==t.Util.arrayIndexOf(this.transitions[o],n))throw this.emit("invalid_transition_attempt",{oldState:o,newState:n}),new Error("Invalid transition ["+o+" to "+n+"]");e(o+"Exit",a,r),e(o+"To"+function(e){return e.substr(0,1).toUpperCase()+e.substr(1)}(n),a,r),e(n+"Pre",a,r),this.state=n,this.emit("state_change",{oldState:o,newState:n}),e(n+"Post",a,r)},n.prototype.is=function(e){return this.state===e},n.prototype.isNot=function(e){return this.state!==e},t.Util.extend(n.prototype,t.EventsDispatcher.prototype),t.Machine=n}(),function(){var n=function(){var n=this;t.EventsDispatcher.call(this),void 0!==e.addEventListener&&(e.addEventListener("online",function(){n.emit("online",null)},!1),e.addEventListener("offline",function(){n.emit("offline",null)},!1))};n.prototype.isOnLine=function(){return void 0===e.navigator.onLine||e.navigator.onLine},t.Util.extend(n.prototype,t.EventsDispatcher.prototype),t.NetInfo=n}(),function(){var e={initialized:["waiting","failed"],waiting:["connecting","permanentlyClosed"],connecting:["open","permanentlyClosing","impermanentlyClosing","waiting"],open:["connected","permanentlyClosing","impermanentlyClosing","waiting"],connected:["permanentlyClosing","waiting"],impermanentlyClosing:["waiting","permanentlyClosing"],permanentlyClosing:["permanentlyClosed"],permanentlyClosed:["waiting","failed"],failed:["permanentlyClosed"]},r=2e3,o=2e3,a=2e3,i=5*r,l=5*o,s=5*a;function u(e){e.connectionWait=0,"flash"===t.TransportType?e.openTimeout=5e3:e.openTimeout=2e3,e.connectedTimeout=2e3,e.connectionSecure=e.compulsorySecure,e.connectionAttempts=0}function c(c,p){var d=this;function f(){d.connectionWait<i&&(d.connectionWait+=r),d.openTimeout<l&&(d.openTimeout+=o),d.connectedTimeout<s&&(d.connectedTimeout+=a),!0!==d.compulsorySecure&&(d.connectionSecure=!d.connectionSecure),d.connectionAttempts++}function h(){d._machine.transition("impermanentlyClosing")}function m(){d._activityTimer&&clearTimeout(d._activityTimer),d._activityTimer=setTimeout(function(){d.send_event("pusher:ping",{}),d._activityTimer=setTimeout(function(){d.socket.close()},d.options.pong_timeout||t.pong_timeout)},d.options.activity_timeout||t.activity_timeout)}function g(){d._machine.transition("open")}function b(e){var t=y(e);void 0!==t&&("pusher:connection_established"===t.event?d._machine.transition("connected",t.data.socket_id):"pusher:error"===t.event&&function(e,t){d.emit("error",{type:"PusherError",data:{code:e,message:t}}),4e3===e?(d.compulsorySecure=!0,d.connectionSecure=!0,d.options.encrypted=!0,h()):4100>e?d._machine.transition("permanentlyClosing"):4200>e?(d.connectionWait=1e3,d._machine.transition("waiting")):4300>e?h():d._machine.transition("permanentlyClosing")}(t.data.code,t.data.message))}function v(e){m();var n=y(e);if(void 0!==n){switch(t.debug("Event recd",n),n.event){case"pusher:error":d.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":d.send_event("pusher:pong",{})}d.emit("message",n)}}function y(e){try{var t=JSON.parse(e.data);if("string"==typeof t.data)try{t.data=JSON.parse(t.data)}catch(e){if(!(e instanceof SyntaxError))throw e}return t}catch(t){d.emit("error",{type:"MessageParseError",error:t,data:e.data})}}function _(){d._machine.transition("waiting")}function w(e){d.emit("error",{type:"WebSocketError",error:e})}function x(e,n){var r=d.state;d.state=e,r!==e&&(t.debug("State changed",r+" -> "+e),d.emit("state_change",{previous:r,current:e}),d.emit(e,n))}t.EventsDispatcher.call(this),this.options=t.Util.extend({encrypted:!1},p),this.netInfo=new t.NetInfo,this.netInfo.bind("online",function(){d._machine.is("waiting")&&(d._machine.transition("connecting"),x("connecting"))}),this.netInfo.bind("offline",function(){d._machine.is("connected")&&(d.socket.onclose=void 0,d.socket.onmessage=void 0,d.socket.onerror=void 0,d.socket.onopen=void 0,d.socket.close(),d.socket=void 0,d._machine.transition("waiting"))}),this._machine=new t.Machine("initialized",e,{initializedPre:function(){d.compulsorySecure=d.options.encrypted,d.key=c,d.socket=null,d.socket_id=null,d.state="initialized"},waitingPre:function(){d.connectionWait>0&&d.emit("connecting_in",d.connectionWait),x(d.netInfo.isOnLine()&&d.connectionAttempts<=4?"connecting":"unavailable"),d.netInfo.isOnLine()&&(d._waitingTimer=setTimeout(function(){d._machine.transition("connecting")},function(){var e=d.connectionWait;if(0===e&&d.connectedAt){var t=(new Date).getTime()-d.connectedAt;1e3>t&&(e=1e3-t)}return e}()))},waitingExit:function(){clearTimeout(d._waitingTimer)},connectingPre:function(){if(!1===d.netInfo.isOnLine())return d._machine.transition("waiting"),void x("unavailable");var e=function(e,r){var o=t.ws_port,a="ws://";(r||"https:"===n.location.protocol)&&(o=t.wss_port,a="wss://");var i="flash"===t.TransportType?"true":"false";return a+t.host+":"+o+"/app/"+e+"?protocol=5&client=js&version="+t.VERSION+"&flash="+i}(d.key,d.connectionSecure);t.debug("Connecting",e),d.socket=new t.Transport(e),d.socket.onopen=g,d.socket.onclose=_,d.socket.onerror=w,d._connectingTimer=setTimeout(h,d.openTimeout)},connectingExit:function(){clearTimeout(d._connectingTimer),d.socket.onopen=void 0},connectingToWaiting:function(){f()},connectingToImpermanentlyClosing:function(){f()},openPre:function(){d.socket.onmessage=b,d.socket.onerror=w,d.socket.onclose=_,d._openTimer=setTimeout(h,d.connectedTimeout)},openExit:function(){clearTimeout(d._openTimer),d.socket.onmessage=void 0},openToWaiting:function(){f()},openToImpermanentlyClosing:function(){f()},connectedPre:function(e){d.socket_id=e,d.socket.onmessage=v,d.socket.onerror=w,d.socket.onclose=_,u(d),d.connectedAt=(new Date).getTime(),m()},connectedPost:function(){x("connected")},connectedExit:function(){d._activityTimer&&clearTimeout(d._activityTimer),x("disconnected")},impermanentlyClosingPost:function(){d.socket&&(d.socket.onclose=_,d.socket.close())},permanentlyClosingPost:function(){d.socket?(d.socket.onclose=function(){u(d),d._machine.transition("permanentlyClosed")},d.socket.close()):(u(d),d._machine.transition("permanentlyClosed"))},failedPre:function(){x("failed"),t.debug("WebSockets are not available in this browser.")},permanentlyClosedPost:function(){x("disconnected")}})}c.prototype.connect=function(){this._machine.is("failed")||t.Transport?this._machine.is("initialized")?(u(this),this._machine.transition("waiting")):this._machine.is("waiting")&&!0===this.netInfo.isOnLine()?this._machine.transition("connecting"):this._machine.is("permanentlyClosed")&&(u(this),this._machine.transition("waiting")):this._machine.transition("failed")},c.prototype.send=function(e){if(this._machine.is("connected")){var t=this;return setTimeout(function(){t.socket.send(e)},0),!0}return!1},c.prototype.send_event=function(e,n,r){var o={event:e,data:n};return r&&(o.channel=r),t.debug("Event sent",o),this.send(JSON.stringify(o))},c.prototype.disconnect=function(){this._machine.is("permanentlyClosed")||(this._machine.is("waiting")||this._machine.is("failed")?this._machine.transition("permanentlyClosed"):this._machine.transition("permanentlyClosing"))},t.Util.extend(c.prototype,t.EventsDispatcher.prototype),t.Connection=c}(),function(){t.Channels=function(){this.channels={}},t.Channels.prototype={add:function(e,n){var r=this.find(e);if(r)return r;var o=t.Channel.factory(e,n);return this.channels[e]=o,o},find:function(e){return this.channels[e]},remove:function(e){delete this.channels[e]},disconnect:function(){for(var e in this.channels)this.channels[e].disconnect()}},t.Channel=function(e,n){var r=this;t.EventsDispatcher.call(this,function(n,r){t.debug("No callbacks on "+e+" for "+n)}),this.pusher=n,this.name=e,this.subscribed=!1,this.bind("pusher_internal:subscription_succeeded",function(e){r.onSubscriptionSucceeded(e)})},t.Channel.prototype={init:function(){},disconnect:function(){this.subscribed=!1,this.emit("pusher_internal:disconnected")},onSubscriptionSucceeded:function(e){this.subscribed=!0,this.emit("pusher:subscription_succeeded")},authorize:function(e,t,n){return n(!1,{})},trigger:function(e,t){return this.pusher.send_event(e,t,this.name)}},t.Util.extend(t.Channel.prototype,t.EventsDispatcher.prototype),t.Channel.PrivateChannel={authorize:function(e,n,r){var o=this;return new t.Channel.Authorizer(this,t.channel_auth_transport,n).authorize(e,function(e,t){e||o.emit("pusher_internal:authorized",t),r(e,t)})}},t.Channel.PresenceChannel={init:function(){this.members=new e(this)},onSubscriptionSucceeded:function(e){this.subscribed=!0}};var e=function(e){var t=this,n=function(){this._members_map={},this.count=0,this.me=null};n.call(this),e.bind("pusher_internal:authorized",function(n){var r=JSON.parse(n.channel_data);e.bind("pusher_internal:subscription_succeeded",function(n){t._members_map=n.presence.hash,t.count=n.presence.count,t.me=t.get(r.user_id),e.emit("pusher:subscription_succeeded",t)})}),e.bind("pusher_internal:member_added",function(n){null===t.get(n.user_id)&&t.count++,t._members_map[n.user_id]=n.user_info,e.emit("pusher:member_added",t.get(n.user_id))}),e.bind("pusher_internal:member_removed",function(n){var r=t.get(n.user_id);r&&(delete t._members_map[n.user_id],t.count--,e.emit("pusher:member_removed",r))}),e.bind("pusher_internal:disconnected",function(){n.call(t)})};e.prototype={each:function(e){for(var t in this._members_map)e(this.get(t))},get:function(e){return this._members_map.hasOwnProperty(e)?{id:e,info:this._members_map[e]}:null}},t.Channel.factory=function(e,n){var r=new t.Channel(e,n);return 0===e.indexOf("private-")?t.Util.extend(r,t.Channel.PrivateChannel):0===e.indexOf("presence-")&&(t.Util.extend(r,t.Channel.PrivateChannel),t.Util.extend(r,t.Channel.PresenceChannel)),r.init(),r}}(),t.Channel.Authorizer=function(e,t,n){this.channel=e,this.type=t,this.authOptions=(n||{}).auth||{}},t.Channel.Authorizer.prototype={composeQuery:function(e){var t="&socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)t+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return t},authorize:function(e,n){return t.authorizers[this.type].call(this,e,n)}},t.auth_callbacks={},t.authorizers={ajax:function(n,r){var o;for(var a in(o=t.XHR?new t.XHR:e.XMLHttpRequest?new e.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).open("POST",t.channel_auth_endpoint,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.authOptions.headers)o.setRequestHeader(a,this.authOptions.headers[a]);return o.onreadystatechange=function(){if(4==o.readyState)if(200==o.status){var e,n=!1;try{e=JSON.parse(o.responseText),n=!0}catch(e){r(!0,"JSON returned from webapp was invalid, yet status code was 200. Data was: "+o.responseText)}n&&r(!1,e)}else t.warn("Couldn't get auth info from your webapp",o.status),r(!0,o.status)},o.send(this.composeQuery(n)),o},jsonp:function(e,r){void 0!==this.authOptions.headers&&t.warn("Warn","To send headers with the auth request, you must use AJAX, rather than JSONP.");var o=n.createElement("script");t.auth_callbacks[this.channel.name]=function(e){r(!1,e)};var a="Pusher.auth_callbacks['"+this.channel.name+"']";o.src=t.channel_auth_endpoint+"?callback="+encodeURIComponent(a)+this.composeQuery(e);var i=n.getElementsByTagName("head")[0]||n.documentElement;i.insertBefore(o,i.firstChild)}};var r=function(){function e(e,t){var r=n.getElementsByTagName("head")[0],o=n.createElement("script");o.setAttribute("src",e),o.setAttribute("type","text/javascript"),o.setAttribute("async",!0),function(e,t){n.addEventListener?e.addEventListener("load",t,!1):e.attachEvent("onreadystatechange",function(){("loaded"==e.readyState||"complete"==e.readyState)&&t()})}(o,function(){t()}),r.appendChild(o)}return function(t,n){for(var r=0,o=0;o<t.length;o++)e(t[o],function(){t.length==++r&&setTimeout(n,0)})}}();!function(){!e.WebSocket&&e.MozWebSocket&&(e.WebSocket=e.MozWebSocket),e.WebSocket&&(t.Transport=e.WebSocket,t.TransportType="native");var o=("http:"==n.location.protocol?t.cdn_http:t.cdn_https)+t.VERSION,a=[];e.JSON||a.push(o+"/json2"+t.dependency_suffix+".js"),e.WebSocket||(e.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION=!0,a.push(o+"/flashfallback"+t.dependency_suffix+".js"));var i=e.WebSocket?function(){t.ready()}:function(){e.WebSocket?(t.Transport=e.WebSocket,t.TransportType="flash",e.WEB_SOCKET_SWF_LOCATION="https://s3.amazonaws.com/uploadcare-static/WebSocketMainInsecure.swf",WebSocket.__addTask(function(){t.ready()}),WebSocket.__initialize()):(t.Transport=null,t.TransportType="none",t.ready())},l=function(){var e,t;e=i,(t=function(){n.body?e():setTimeout(t,0)})()};a.length>0?r(a,l):l()}(),this.Pusher=t}.call(a),function(){var e,t={}.hasOwnProperty,n=function(e,n){for(var r in n)t.call(n,r)&&(e[r]=n[r]);function o(){this.constructor=e}return o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype,e};e=a.jQuery,a.namespace("utils.pusher",function(t){var r,o;return o={},a.Pusher.prototype.constructor=a.Pusher,r=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return n(r,t),r.prototype.subscribe=function(e){return this.disconnectTimeout&&(clearTimeout(this.disconnectTimeout),this.disconnectTimeout=null),this.connect(),r.__super__.subscribe.apply(this,arguments)},r.prototype.unsubscribe=function(t){var n=this;return r.__super__.unsubscribe.apply(this,arguments),e.isEmptyObject(this.channels.channels)?this.disconnectTimeout=setTimeout(function(){return n.disconnectTimeout=null,n.disconnect()},5e3):void 0},r}(a.Pusher),t.getPusher=function(e){return null==o[e]&&(o[e]=new r(e)),o[e].connect(),o[e]}})}.call(this),function(){var e,t,n,r=function(e,t){return function(){return e.apply(t,arguments)}},o={}.hasOwnProperty,i=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};e=a.jQuery,n=a.utils,t=a.utils.pusher,a.namespace("files",function(o){var a,l;return o.UrlFile=function(t){function o(e){var t;if(this.__url=e,this.__listenWatcher=r(this.__listenWatcher,this),o.__super__.constructor.apply(this,arguments),t=n.splitUrlRegex.exec(this.__url)[3].split("/").pop())try{this.fileName=decodeURIComponent(t)}catch(e){e,this.fileName=t}this.__notifyApi()}return i(o,t),o.prototype.sourceName="url",o.prototype.allEvents="progress success error fail",o.prototype.setName=function(e){return this.fileName=e,this.__realFileName=e,this.__notifyApi()},o.prototype.setIsImage=function(e){return this.isImage=e,this.__notifyApi()},o.prototype.__startUpload=function(){var t,r,o,i,s=this;return r=e.Deferred(),i=new l(this.settings),o=new a(this.settings),t={pub_key:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,source_url:this.__url,filename:this.__realFileName||"",source:this.sourceInfo.source,store:this.settings.doNotStore?"":"auto",jsonerrors:1},n.defer(function(){return"pending"===s.apiDeferred.state()?n.jsonp(s.settings.urlBase+"/from_url/","GET",t,{headers:{"X-UC-User-Agent":s.settings._userAgent}}).fail(function(e){return s.settings.debugUploads&&n.debug("Can't start upload from URL.",e,t),r.reject()}).done(function(t){var a;if("pending"===s.apiDeferred.state())return s.settings.debugUploads&&(n.debug("Start watchers.",t.token),a=setInterval(function(){return n.debug("Still watching.",t.token)},5e3),r.done(function(){return n.debug("Stop watchers.",t.token)}).always(function(){return clearInterval(a)})),s.__listenWatcher(r,e([i,o])),r.always(function(){return e([i,o]).off(s.allEvents),i.stopWatching(),o.stopWatching()}),e(i).one(s.allEvents,function(){return o.interval?(s.settings.debugUploads&&n.debug("Start using pusher.",t.token),o.stopWatching()):void 0}),i.watch(t.token),o.watch(t.token)}):void 0}),r},o.prototype.__listenWatcher=function(t,n){var r=this;return n.on("progress",function(e,n){return r.fileSize=n.total,t.notify(n.done/n.total)}).on("success",function(n,o){return e(n.target).trigger("progress",o),r.fileId=o.uuid,r.__handleFileData(o),t.resolve()}).on("error fail",t.reject)},o}(o.BaseFile),l=function(){function n(e){this.settings=e;try{this.pusher=t.getPusher(this.settings.pusherKey)}catch(e){this.pusher=null}}return n.prototype.watch=function(t){var n=this;return this.token=t,this.pusher?this.pusher.subscribe("task-status-"+this.token).bind_all(function(t,r){return e(n).trigger(t,r)}):void 0},n.prototype.stopWatching=function(){return this.pusher?this.pusher.unsubscribe("task-status-"+this.token):void 0},n}(),a=function(){function t(e){this.settings=e,this.poolUrl=this.settings.urlBase+"/from_url/status/"}return t.prototype.watch=function(e){var t,n=this;return this.token=e,(t=function(){return n.interval=setTimeout(function(){return n.__updateStatus().done(function(){return n.interval?t():void 0})},333)})()},t.prototype.stopWatching=function(){return this.interval&&clearTimeout(this.interval),this.interval=null},t.prototype.__updateStatus=function(){var t=this;return n.jsonp(this.poolUrl,"GET",{token:this.token},{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail(function(n){return e(t).trigger("error")}).done(function(n){return e(t).trigger(n.status,n)})},t}()})}.call(this),function(){var e,t={}.hasOwnProperty,n=function(e,n){for(var r in n)t.call(n,r)&&(e[r]=n[r]);function o(){this.constructor=e}return o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype,e};a.jQuery,e=a.utils,a.namespace("files",function(t){return t.UploadedFile=function(t){function r(t){var n;r.__super__.constructor.apply(this,arguments),(n=e.splitCdnUrl(t))?(this.fileId=n[1],n[2]&&(this.cdnUrlModifiers=n[2])):this.__rejectApi("baddata")}return n(r,t),r.prototype.sourceName="uploaded",r}(t.BaseFile),t.ReadyFile=function(e){function t(e){t.__super__.constructor.apply(this,arguments),e?(this.fileId=e.uuid,this.__handleFileData(e)):this.__rejectApi("deleted")}return n(t,e),t.prototype.sourceName="uploaded",t}(t.BaseFile)})}.call(this),function(){var e,t,n,r,o,i,l,s=[].slice,u={}.hasOwnProperty;t=a.namespace,e=a.jQuery,i=a.utils,l=a.locale,r=l.t,n=a.settings,o=a.files,t("files",function(t){return t.FileGroup=function(){function t(t,r){var o=this;this.__uuid=null,this.settings=n.build(r),this.__fileColl=new i.CollectionOfPromises(t),this.__allFilesDf=e.when.apply(e,this.files()),this.__fileInfosDf=function(){var n;return t=function(){var t,r,o,a;for(a=[],t=0,r=(o=this.files()).length;r>t;t++)n=o[t],a.push(n.then(null,function(t,n){return e.when(n)}));return a}.call(o),e.when.apply(e,t)}(),this.__createGroupDf=e.Deferred(),this.__initApiDeferred()}return t.prototype.files=function(){return this.__fileColl.get()},t.prototype.__save=function(){var e=this;return this.__saved?void 0:(this.__saved=!0,this.__allFilesDf.done(function(){return e.__createGroup().done(function(t){return e.__uuid=t.id,e.__buildInfo(function(t){return e.settings.imagesOnly&&!t.isImage?e.__createGroupDf.reject("image",t):e.__createGroupDf.resolve(t)})}).fail(function(){return e.__createGroupDf.reject("createGroup")})}))},t.prototype.promise=function(){return this.__save(),this.__apiDf.promise()},t.prototype.__initApiDeferred=function(){var t,n,r,o=this;return this.__apiDf=e.Deferred(),this.__progressState="uploading",n=function(e){return o.__buildInfo(function(t){return o.__apiDf.reject(e,t)})},r=function(e){return o.__apiDf.resolve(e)},(t=function(){return o.__apiDf.notify(o.__progressInfo())})(),this.__fileColl.onAnyProgress(t),this.__allFilesDf.done(function(){return o.__progressState="uploaded",t()}).fail(n),this.__createGroupDf.done(function(e){return o.__progressState="ready",t(),r(e)}).fail(n)},t.prototype.__progressInfo=function(){var e,t,n,r,o;for(e=0,r=0,o=(n=this.__fileColl.lastProgresses()).length;o>r;r++)e+=((null!=(t=n[r])?t.progress:void 0)||0)/n.length;return{state:this.__progressState,uploadProgress:e,progress:"ready"===this.__progressState?1:.9*e}},t.prototype.__buildInfo=function(e){var t;return t={uuid:this.__uuid,cdnUrl:this.__uuid?this.settings.cdnBase+"/"+this.__uuid+"/":null,name:r("file",this.__fileColl.length()),count:this.__fileColl.length(),size:0,isImage:!0,isStored:!0},this.__fileInfosDf.done(function(){var n,r,o,a;for(r=0,a=(n=1<=arguments.length?s.call(arguments,0):[]).length;a>r;r++)o=n[r],t.size+=o.size,o.isImage||(t.isImage=!1),o.isStored||(t.isStored=!1);return e(t)})},t.prototype.__createGroup=function(){var t,n=this;return t=e.Deferred(),this.__fileColl.length()?this.__fileInfosDf.done(function(){var e,r;return r=1<=arguments.length?s.call(arguments,0):[],i.jsonp(n.settings.urlBase+"/group/","POST",{pub_key:n.settings.publicKey,signature:n.settings.secureSignature,expire:n.settings.secureExpire,files:function(){var t,n,o;for(o=[],t=0,n=r.length;n>t;t++)e=r[t],o.push("/"+e.uuid+"/"+(e.cdnUrlModifiers||""));return o}()},{headers:{"X-UC-User-Agent":n.settings._userAgent}}).fail(function(e){return n.settings.debugUploads&&i.log("Can't create group.",n.settings.publicKey,e),t.reject()}).done(t.resolve)}):t.reject(),t.promise()},t.prototype.api=function(){return this.__api||(this.__api=i.bindAll(this,["promise","files"])),this.__api},t}(),t.SavedFileGroup=function(e){function t(e,n){var r;this.__data=e,r=a.filesFrom("ready",this.__data.files,n),t.__super__.constructor.call(this,r,n)}return function(e,t){for(var n in t)u.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),t.prototype.__createGroup=function(){return i.wrapToPromise(this.__data)},t}(t.FileGroup)}),t("",function(t){return t.FileGroup=function(e,t){var n,r,a,l,s,u,c,p;for(null==e&&(e=[]),r=[],l=0,u=e.length;u>l;l++)if(a=e[l],i.isFile(a))r.push(a);else if(i.isFileGroup(a))for(s=0,c=(p=a.files()).length;c>s;s++)n=p[s],r.push(n);return new o.FileGroup(r,t).api()},t.loadFileGroup=function(t,r){var a,l;return r=n.build(r),a=e.Deferred(),(l=i.groupIdRegex.exec(t))?i.jsonp(r.urlBase+"/group/info/","GET",{jsonerrors:1,pub_key:r.publicKey,group_id:l[0]},{headers:{"X-UC-User-Agent":r._userAgent}}).fail(function(e){return r.debugUploads&&i.log("Can't load group info. Probably removed.",l[0],r.publicKey,e),a.reject()}).done(function(e){var t;return t=new o.SavedFileGroup(e,r),a.resolve(t.api())}):a.reject(),a.promise()}}),t("utils",function(t){return t.isFileGroup=function(e){return e&&e.files&&e.promise},t.valueToGroup=function(n,r){var o,i;if(n)if(e.isArray(n))o=function(){var e,o,a;for(a=[],e=0,o=n.length;o>e;e++)i=n[e],a.push(t.valueToFile(i,r));return a}(),n=a.FileGroup(o,r);else if(!t.isFileGroup(n))return a.loadFileGroup(n,r);return t.wrapToPromise(n||null)},t.isFileGroupsEqual=function(e,n){var r,o,a,i,l;if(e===n)return!0;if(!t.isFileGroup(e)||!t.isFileGroup(n))return!1;if(r=e.files(),o=n.files(),r.length!==o.length)return!1;for(a=i=0,l=r.length;l>i;a=++i)if(r[a]!==o[a])return!1;return!0}})}.call(this),function(){var e,t,n;a.utils,e=a.jQuery,t=a.files,n=a.settings,a.namespace("",function(r){var o;return r.fileFrom=function(e,t,n){return r.filesFrom(e,[t],n)[0]},r.filesFrom=function(t,r,a){var i,l,s,u,c;for(a=n.build(a||{}),c=[],s=0,u=r.length;u>s;s++)l=r[s],i=null,e.isArray(l)&&(i=l[1],l=l[0]),c.push(new o[t](l,a,i).promise());return c},o={object:t.ObjectFile,input:t.InputFile,url:t.UrlFile,uploaded:t.UploadedFile,ready:t.ReadyFile}})}.call(this),function(){var e,t,r;r=a.utils,t=a.settings,e=a.jQuery,a.namespace("dragdrop",function(o){return o.support=r.abilities.fileDragAndDrop,o.uploadDrop=function(e,n,r){return r=t.build(r),o.receiveDrop(e,function(e,t){return n(r.multiple?a.filesFrom(e,t,r):a.fileFrom(e,t[0],r))})},o.support?(o.receiveDrop=function(t,n){return o.watchDragging(t),e(t).on({dragover:function(e){return e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="copy"},drop:function(t){var r,o,a,i,l,s;if(t.preventDefault(),r=t.originalEvent.dataTransfer){if(r.files.length)return n("object",r.files);for(a=[],i=0,l=(s=r.getData("text/uri-list").split()).length;l>i;i++)o=s[i],(o=e.trim(o))&&"#"!==o[0]&&a.push(o);return a?n("url",a):void 0}}})},o.watchDragging=function(t,n){var r,o,a;return a=!1,o=0,r=function(n){return a!==n?e(t).toggleClass("uploadcare--dragging",a=n):void 0},e(n||t).on({dragenter:function(){return o+=1,r(!0)},dragleave:function(){return 0===(o-=1)?r(!1):void 0},"drop mouseenter":function(){return o=0,r(!1)}})},o.watchDragging("body",n)):o.receiveDrop=function(){}})}.call(this),function(){var e,t,n,r,o,i=function(e,t){return function(){return e.apply(t,arguments)}},l={}.hasOwnProperty,s=function(e,t){for(var n in t)l.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};a.files,e=a.jQuery,r=a.utils,t=r.abilities,o=a.templates,n=o.tpl,a.namespace("ui.progress",function(r){return r.Circle=function(){function e(e){this.update=i(this.update,this),t.canvas?this.renderer=new r.CanvasRenderer(e):this.renderer=new r.TextRenderer(e),this.observed=null}return e.prototype.listen=function(e,t){var n,r=this;return this.reset(),n=null!=t?function(e){return e[t]}:function(e){return e},this.observed=e,"resolved"===this.observed.state()?this.renderer.setValue(1,!0):this.observed.progress(function(t){return e===r.observed?r.renderer.setValue(n(t)):void 0}).always(function(t){return e===r.observed?r.renderer.setValue(1,!1):void 0}),this},e.prototype.reset=function(e){return null==e&&(e=!1),this.observed=null,this.renderer.setValue(e?1:0,!0)},e.prototype.update=function(){return this.renderer.update()},e}(),r.BaseRenderer=function(){function t(t){this.element=e(t),this.element.data("uploadcare-progress-renderer",this),this.element.addClass("uploadcare--progress")}return t.prototype.update=function(){},t}(),r.TextRenderer=function(e){function t(){t.__super__.constructor.apply(this,arguments),this.element.addClass("uploadcare--progress_type_text"),this.element.html(n("progress__text")),this.text=this.element.find(".uploadcare--progress__text")}return s(t,e),t.prototype.setValue=function(e){return e=Math.round(100*e),this.text.html(e+" %")},t}(r.BaseRenderer),r.CanvasRenderer=function(t){function n(){n.__super__.constructor.apply(this,arguments),this.canvasEl=e("<canvas>").addClass("uploadcare--progress__canvas").get(0),this.element.addClass("uploadcare--progress_type_canvas"),this.element.html(this.canvasEl),this.setValue(0,!0)}return s(n,t),n.prototype.update=function(){var e,t,n,r;return r=2*(n=Math.floor(Math.min(this.element.width(),this.element.height()))),n?((this.canvasEl.width!==r||this.canvasEl.height!==r)&&(this.canvasEl.width=r,this.canvasEl.height=r),e=function(e,r){var o;return o=-Math.PI/2,t.beginPath(),t.moveTo(n,n),t.arc(n,n,e,o,o+2*Math.PI*r,!1),t.fill()},(t=this.canvasEl.getContext("2d")).clearRect(0,0,r,r),t.globalCompositeOperation="source-over",t.fillStyle=this.element.css("border-left-color"),e(n-.5,1),t.fillStyle=this.element.css("color"),e(n,this.val),t.globalCompositeOperation="destination-out",e(n/7,1)):void 0},n.prototype.__animateValue=function(e){var t,n,r,o=this;return r=this.val,n=new Date,t=e>r?2:-2,this.__animIntervalId=setInterval(function(){var a;return a=r+(new Date-n)/1e3*t,(a=(t>0?Math.min:Math.max)(a,e))===e&&o.__stopAnimation(),o.__setValue(a)},15)},n.prototype.__stopAnimation=function(){return this.__animIntervalId&&clearInterval(this.__animIntervalId),this.__animIntervalId=null},n.prototype.__setValue=function(e){return this.val=e,this.update()},n.prototype.setValue=function(e,t){return null==t&&(t=!1),this.__stopAnimation(),t?this.__setValue(e):this.__animateValue(e)},n}(r.BaseRenderer)})}.call(this),function(){var e,t,n,r,o,i,l;e=a.jQuery,a.utils,o=a.ui,t=o.progress,i=a.locale,n=i.t,l=a.templates,r=l.tpl,a.namespace("widget",function(o){return o.Template=function(){function o(n,o){this.settings=n,this.element=o,this.content=e(r("widget")),this.element.after(this.content),this.circle=new t.Circle(this.content.find(".uploadcare--widget__progress").removeClass("uploadcare--widget__progress")),this.content.find(".uploadcare--progress").addClass("uploadcare--widget__progress"),this.statusText=this.content.find(".uploadcare--widget__text"),this.content.toggleClass("uploadcare--widget_option_clearable",this.settings.clearable)}return o.prototype.addButton=function(t,n){return null==n&&(n=""),e(r("widget-button",{name:t,caption:n})).appendTo(this.content)},o.prototype.setStatus=function(e){var t;return t="uploadcare--widget_status_",this.content.removeClass(t+this.content.attr("data-status")),this.content.attr("data-status",e),this.content.addClass(t+e),this.element.trigger(e+".uploadcare")},o.prototype.reset=function(){return this.circle.reset(),this.setStatus("ready"),this.__file=null},o.prototype.loaded=function(){return this.setStatus("loaded"),this.circle.reset(!0)},o.prototype.listen=function(e){var t=this;return this.__file=e,this.circle.listen(e,"uploadProgress"),this.setStatus("started"),e.progress(function(r){if(e===t.__file)switch(r.state){case"uploading":return t.statusText.text(n("uploading"));case"uploaded":return t.statusText.text(n("loadingInfo"))}})},o.prototype.error=function(e){return this.statusText.text(n("errors."+(e||"default"))),this.setStatus("error")},o.prototype.setFileInfo=function(e){return this.statusText.html(r("widget-file-name",e)).find(".uploadcare--widget__file-name").toggleClass("needsclick",this.settings.systemDialog)},o}()})}.call(this),function(){var e,t,n,r,o,i,l,s=function(e,t){return function(){return e.apply(t,arguments)}};o=a.utils,t=a.dragdrop,i=a.locale,n=i.t,e=a.jQuery,l=a.templates,r=l.tpl,a.namespace("widget.tabs",function(a){return a.FileTab=function(){function a(e,t,n,o,a){this.container=e,this.tabButton=t,this.dialogApi=n,this.settings=o,this.name=a,this.__initTabsList=s(this.__initTabsList,this),this.container.append(r("tab-file")),this.__setupFileButton(),this.__initDragNDrop(),this.__initTabsList()}return a.prototype.__initDragNDrop=function(){var e,n=this;return e=this.container.find(".uploadcare--draganddrop"),o.abilities.fileDragAndDrop?(t.receiveDrop(e,function(e,t){return n.dialogApi.addFiles(e,t),n.dialogApi.switchTab("preview")}),e.addClass("uploadcare--draganddrop_supported")):void 0},a.prototype.__setupFileButton=function(){var e,t=this;return e=this.container.find(".uploadcare--tab__action-button"),o.abilities.sendFileAPI?e.on("click",function(){return o.fileSelectDialog(t.container,t.settings,function(e){return t.dialogApi.addFiles("object",e.files),t.dialogApi.switchTab("preview")}),!1}):o.fileInput(e,this.settings,function(e){return t.dialogApi.addFiles("input",[e]),t.dialogApi.switchTab("preview")})},a.prototype.__initTabsList=function(){var e,t,n,r,o,a,i=this;for((e=this.container.find(".uploadcare--file-sources__items")).remove(".uploadcare--file-sources__item:not(.uploadcare--file-source_all)"),t=0,r=0,o=(a=this.settings.tabs).length;o>r;r++)"file"!==(n=a[r])&&"url"!==n&&"camera"!==n&&this.dialogApi.isTabVisible(n)&&((t+=1)>5||e.append([this.__tabButton(n)," "]));return e.find(".uploadcare--file-source_all").on("click",function(){return i.dialogApi.openMenu()}),t>5&&e.addClass("uploadcare--file-sources__items_many"),this.container.find(".uploadcare--file-sources").attr("hidden",0===t)},a.prototype.__tabButton=function(t){var r,o=this;return r=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-"+t+"'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file-source__icon"),e("<button>").addClass("uploadcare--button").addClass("uploadcare--button_icon").addClass("uploadcare--file-source").addClass("uploadcare--file-source_"+t).addClass("uploadcare--file-sources__item").attr("type","button").attr("title",n("dialog.tabs.names."+t)).attr("data-tab",t).append(r).on("click",function(){return o.dialogApi.switchTab(t)})},a}()})}.call(this),function(){var e,t,n;e=a.jQuery,n=a.templates,t=n.tpl,a.locale.t,a.namespace("widget.tabs",function(n){return n.UrlTab=function(){var n,r;return r=/^[a-z][a-z0-9+\-.]*:?\/\//,n=function(t){return t=e.trim(t),r.test(t)?t:"http://"+t},function(r,o,a,i,l){var s,u,c=this;this.container=r,this.tabButton=o,this.dialogApi=a,this.settings=i,this.name=l,this.container.append(t("tab-url")),(u=this.container.find(".uploadcare--input")).on("change keyup input",function(){return s.attr("disabled",!e.trim(this.value))}),s=this.container.find(".uploadcare--button[type=submit]").attr("disabled",!0),this.container.find(".uploadcare--form").on("submit",function(){var e;return(e=n(u.val()))&&(c.dialogApi.addFiles("url",[[e,{source:"url-tab"}]]),u.val("").trigger("change")),!1})}}()})}.call(this),function(){var t,r,o,i,l=function(e,t){return function(){return e.apply(t,arguments)}};o=a.utils,t=a.jQuery,i=a.templates,r=i.tpl,a.namespace("widget.tabs",function(a){var i;return i="https:"===n.location.protocol,a.CameraTab=function(){function a(e,t,n,o,a){var i;if(this.container=e,this.tabButton=t,this.dialogApi=n,this.settings=o,this.name=a,this.__cancelRecording=l(this.__cancelRecording,this),this.__stopRecording=l(this.__stopRecording,this),this.__startRecording=l(this.__startRecording,this),this.__capture=l(this.__capture,this),this.__mirror=l(this.__mirror,this),this.__revoke=l(this.__revoke,this),this.__requestCamera=l(this.__requestCamera,this),this.__setState=l(this.__setState,this),this.__captureInputHandle=l(this.__captureInputHandle,this),this.__captureInput=l(this.__captureInput,this),this.__checkCapture())this.container.append(r("tab-camera-capture")),this.container.addClass("uploadcare--camera"),this.container.find(".uploadcare--camera__button_type_photo").on("click",this.__captureInput("image/*")),i=this.container.find(".uploadcare--camera__button_type_video").on("click",this.__captureInput("video/*")),this.settings.imagesOnly&&i.hide();else{if(!this.__checkCompatibility())return void this.dialogApi.hideTab(this.name);this.__initCamera()}}return a.prototype.__captureInput=function(e){var t=this;return function(){return o.fileSelectDialog(t.container,{inputAcceptTypes:e},t.__captureInputHandle,{capture:"camera"})}},a.prototype.__captureInputHandle=function(e){return this.dialogApi.addFiles("object",e.files),this.dialogApi.switchTab("preview")},a.prototype.__initCamera=function(){var e,t=this;return this.__loaded=!1,this.mirrored=!0,this.container.append(r("tab-camera")),this.container.addClass("uploadcare--camera"),this.container.addClass("uploadcare--camera_status_requested"),this.container.find(".uploadcare--camera__button_type_capture").on("click",this.__capture),e=this.container.find(".uploadcare--camera__button_type_start-record").on("click",this.__startRecording),this.container.find(".uploadcare--camera__button_type_stop-record").on("click",this.__stopRecording),this.container.find(".uploadcare--camera__button_type_cancel-record").on("click",this.__cancelRecording),this.container.find(".uploadcare--camera__button_type_mirror").on("click",this.__mirror),this.container.find(".uploadcare--camera__button_type_retry").on("click",this.__requestCamera),(!this.MediaRecorder||this.settings.imagesOnly)&&e.hide(),this.video=this.container.find(".uploadcare--camera__video"),this.video.on("loadeddata",function(){return this.play()}),this.dialogApi.progress(function(e){if(e===t.name){if(!t.__loaded)return t.__requestCamera()}else if(t.__loaded&&i)return t.__revoke()}),this.dialogApi.always(this.__revoke)},a.prototype.__checkCompatibility=function(){var t;return navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?this.getUserMedia=function(e,t,n){return navigator.mediaDevices.getUserMedia(e).then(t).catch(n)}:this.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia,this.URL=e.URL||e.webkitURL,this.MediaRecorder=e.MediaRecorder,i||o.warn("Camera is not allowed for HTTP. Please use HTTPS connection."),t="localhost"===n.location.hostname,!!this.getUserMedia&&Uint8Array&&(i||t)},a.prototype.__checkCapture=function(){var e;return(e=n.createElement("input")).setAttribute("capture","camera"),!!e.capture},a.prototype.__setState=function(e){var t;return t=["","ready","requested","denied","not-founded","recording"].join(" uploadcare--camera_status_"),this.container.removeClass(t).addClass("uploadcare--camera_status_"+e)},a.prototype.__requestCamera=function(){var e=this;return this.__loaded=!0,this.getUserMedia.call(navigator,{audio:!0,video:{optional:[{minWidth:320},{minWidth:640},{minWidth:1024},{minWidth:1280},{minWidth:1920}]}},function(t){return e.__setState("ready"),e.__stream=t,"srcObject"in e.video[0]?(e.video.prop("srcObject",t),e.video.on("loadedmetadata",function(){return e.video[0].play()})):(e.URL?(e.__streamObject=e.URL.createObjectURL(t),e.video.prop("src",e.__streamObject)):e.video.prop("src",t),e.video[0].play())},function(t){return"NO_DEVICES_FOUND"===t||"DevicesNotFoundError"===t.name?e.__setState("not-founded"):e.__setState("denied"),e.__loaded=!1})},a.prototype.__revoke=function(){var e;return this.__setState("requested"),this.__loaded=!1,this.__stream?(this.__streamObject&&this.URL.revokeObjectURL(this.__streamObject),this.__stream.getTracks?t.each(this.__stream.getTracks(),function(){return"function"==typeof this.stop?this.stop():void 0}):"function"==typeof(e=this.__stream).stop&&e.stop(),this.__stream=null):void 0},a.prototype.__mirror=function(){return this.mirrored=!this.mirrored,this.video.toggleClass("uploadcare--camera__video_mirrored",this.mirrored)},a.prototype.__capture=function(){var e,t,r,a,i,l=this;return i=(a=this.video[0]).videoWidth,r=a.videoHeight,(e=n.createElement("canvas")).width=i,e.height=r,t=e.getContext("2d"),this.mirrored&&(t.translate(i,0),t.scale(-1,1)),t.drawImage(a,0,0,i,r),o.canvasToBlob(e,"image/jpeg",.9,function(t){return e.width=e.height=1,t.name="camera.jpg",l.dialogApi.addFiles("object",[[t,{source:"camera"}]]),l.dialogApi.switchTab("preview")})},a.prototype.__startRecording=function(){var e=this;return this.__setState("recording"),this.__chunks=[],this.__recorder=new this.MediaRecorder(this.__stream),this.__recorder.start(),this.__recorder.ondataavailable=function(t){return e.__chunks.push(t.data)}},a.prototype.__stopRecording=function(){var e=this;return this.__setState("ready"),this.__recorder.onstop=function(){var t,n;return n=(n=e.__recorder.mimeType)?n.split("/")[1]:"webm",(t=new Blob(e.__chunks,{type:"video/"+n})).name="record."+n,e.dialogApi.addFiles("object",[[t,{source:"camera"}]]),e.dialogApi.switchTab("preview"),e.__chunks=[]},this.__recorder.stop()},a.prototype.__cancelRecording=function(){return this.__setState("ready"),this.__recorder.stop(),this.__chunks=[]},a}()})}.call(this),function(){var t,n,r,o,i=function(e,t){return function(){return e.apply(t,arguments)}};a.locale,o=a.utils,r=a.tabsCss,t=a.jQuery,a.locale.t,n=a.files,a.namespace("widget.tabs",function(l){return l.RemoteTab=function(){function l(e,t,n,r,o){var a=this;this.container=e,this.tabButton=t,this.dialogApi=n,this.settings=r,this.name=o,this.__createIframe=i(this.__createIframe,this),this.dialogApi.progress(function(e){return e===a.name&&a.__createIframe(),a.__sendMessage({type:"visibility-changed",visible:e===a.name})})}return l.prototype.remoteUrl=function(){return this.settings.socialBase+"/window3/"+this.name+"?"+t.param({lang:this.settings.locale,public_key:this.settings.publicKey,widget_version:a.version,images_only:this.settings.imagesOnly,pass_window_open:this.settings.passWindowOpen})},l.prototype.__sendMessage=function(e){var t,n;return null!=(t=this.iframe)&&null!=(n=t[0].contentWindow)?n.postMessage(JSON.stringify(e),"*"):void 0},l.prototype.__createIframe=function(){var a,i=this;if(!this.iframe)return this.iframe=t("<iframe>",{src:this.remoteUrl(),marginheight:0,marginwidth:0,frameborder:0,allowTransparency:"true"}).addClass("uploadcare--tab__iframe").appendTo(this.container).on("load",function(){var e,t,n,o,a,l,s,u;for(i.iframe.css("opacity","1"),n=0,a=(s=r.urls).length;a>n;n++)t=s[n],i.__sendMessage({type:"embed-css",url:t});for(o=0,l=(u=r.styles).length;l>o;o++)e=u[o],i.__sendMessage({type:"embed-css",style:e})}),this.container.addClass("uploadcare--tab_remote"),a=this.iframe[0].contentWindow,o.registerMessage("file-selected",a,function(e){var r,a,l;return l=function(){var t,n,r,a,l;if(e.alternatives)for(r=0,a=(l=i.settings.preferredTypes).length;a>r;r++)for(t in n=l[r],n=o.globRegexp(n),e.alternatives)if(n.test(t))return e.alternatives[t];return e.url}(),a=t.extend({source:i.name},e.info||{}),r=new n.UrlFile(l,i.settings,a),e.filename&&r.setName(e.filename),null!=e.is_image&&r.setIsImage(e.is_image),i.dialogApi.addFiles([r.promise()])}),o.registerMessage("open-new-window",a,function(t){var n,r,a;return i.settings.debugUploads&&o.debug("Open new window message.",i.name),(r=e.open(t.url,"_blank"))?(a=function(){return i.settings.debugUploads&&o.debug("Window is closed.",i.name),i.__sendMessage({type:"navigate",fragment:""})},"closed"in r?n=setInterval(function(){return r.closed?(clearInterval(n),a()):void 0},100):r.addEventListener("exit",a)):void o.warn("Can't open new window. Possible blocked.",i.name)}),this.dialogApi.done(function(){return o.unregisterMessage("file-selected",a),o.unregisterMessage("open-new-window",a)})},l}()})}.call(this),function(){var e,t,n;n=a.ui.progress,t=n.Circle,e=a.jQuery,a.namespace("widget.tabs",function(n){return n.BasePreviewTab=function(){function n(e,t,n,r,o){var a,i=this;this.container=e,this.tabButton=t,this.dialogApi=n,this.settings=r,this.name=o,this.__initTabButtonCircle(),this.container.addClass("uploadcare--preview"),a=":not(:disabled)",this.container.on("click",".uploadcare--preview__back"+a,function(){return i.dialogApi.fileColl.clear()}),this.container.on("click",".uploadcare--preview__done"+a,this.dialogApi.resolve)}return n.prototype.__initTabButtonCircle=function(){var n,r,o,a,i=this;return o=this.tabButton.find(".uploadcare--panel__icon"),r=e.Deferred(),a=function(){var e,t,n,o,a;for(t=0,o=0,a=(e=i.dialogApi.fileColl.lastProgresses()).length;a>o;o++)t+=((null!=(n=e[o])?n.progress:void 0)||0)/e.length;return r.notify(t)},this.dialogApi.fileColl.onAnyProgress(a),this.dialogApi.fileColl.onAdd.add(a),this.dialogApi.fileColl.onRemove.add(a),a(),n=new t(o).listen(r.promise()),this.dialogApi.progress(n.update)},n}()})}.call(this),function(){var e,t,n,r,o,i,l,s,u,c,p=function(e,t){return function(){return e.apply(t,arguments)}},d={}.hasOwnProperty;i=a.utils,l=a.utils.abilities,n=l.URL,a.ui.progress,s=a.templates,o=s.tpl,e=a.jQuery,u=a.crop,t=u.CropWidget,c=a.locale,r=c.t,a.namespace("widget.tabs",function(a){return a.PreviewTab=function(a){function l(t,n,r,o,a){var i=this;this.container=t,this.tabButton=n,this.dialogApi=r,this.settings=o,this.name=a,this.populateCropSizes=p(this.populateCropSizes,this),this.initImage=p(this.initImage,this),this.__setState=p(this.__setState,this),this.__tryToLoadVideoPreview=p(this.__tryToLoadVideoPreview,this),this.__tryToLoadImagePreview=p(this.__tryToLoadImagePreview,this),this.__setFile=p(this.__setFile,this),l.__super__.constructor.apply(this,arguments),e.each(this.dialogApi.fileColl.get(),function(e,t){return i.__setFile(t)}),this.dialogApi.fileColl.onAdd.add(this.__setFile),this.widget=null,this.__state=null}return function(e,t){for(var n in t)d.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(l,a),l.prototype.__setFile=function(e){var t,n,r,o=this;return this.file=e,t=function(t){return function(){return e===o.file?t.apply(null,arguments):void 0}},n=i.once(this.__tryToLoadImagePreview),r=i.once(this.__tryToLoadVideoPreview),this.__setState("unknown",{}),this.file.progress(t(function(t){var a,l,s;return l=((t=t.incompleteFileInfo).name||"")+i.readableFileSize(t.size,"",", "),o.container.find(".uploadcare--preview__file-name").text(l),s=t.sourceInfo,a=i.abilities.Blob,s.file&&a&&s.file instanceof a?n(e,s.file).fail(function(){return r(e,s.file)}):void 0})),this.file.done(t(function(e){var t,n;if("video"!==o.__state)return e.isImage?"image"!==o.__state?(n=e.originalUrl,n+="-/preview/1162x693/-/setfill/ffffff/-/format/jpeg/-/progressive/yes/",o.settings.previewUrlCallback&&(n=o.settings.previewUrlCallback(n,e)),t=e.originalImageInfo,o.__setState("image",{src:n,name:e.name,info:e}),o.initImage([t.width,t.height],e.cdnUrlModifiers)):void 0:o.__setState("regular",{file:e})})),this.file.fail(t(function(e,t){return o.__setState("error",{error:e,file:t})}))},l.prototype.__tryToLoadImagePreview=function(t,r){var o,a=this;return o=e.Deferred(),"pending"!==t.state()||!r.size||r.size>=this.settings.multipartMinSize?o.reject().promise():(i.image.drawFileToCanvas(r,1550,924,"#ffffff",this.settings.imagePreviewMaxSize).done(function(e,r){return i.canvasToBlob(e,"image/jpeg",.95,function(i){var l;return o.resolve(),e.width=e.height=1,"pending"===t.state()&&"pending"===a.dialogApi.state()&&a.file===t?(l=n.createObjectURL(i),a.dialogApi.always(function(){return n.revokeObjectURL(l)}),"image"!==a.__state?(a.__setState("image",{src:l,name:""}),a.initImage(r)):void 0):void 0})}).fail(o.reject),o.promise())},l.prototype.__tryToLoadVideoPreview=function(t,r){var o,a,l=this;return o=e.Deferred(),n&&r.size?(a=n.createObjectURL(r),i.videoLoader(a).fail(function(){return n.revokeObjectURL(a),o.reject()}).done(function(){var e;return o.resolve(),l.dialogApi.always(function(){return n.revokeObjectURL(a)}),l.__setState("video"),(e=l.container.find(".uploadcare--preview__video")).on("loadeddata",function(){return e.get(0).currentTime=36e4,e.off("loadeddata")}),e.on("ended",function(){return e.get(0).currentTime=0,e.off("ended")}),e.attr("src",a),e.get(0).load()}),o.promise()):o.reject().promise()},l.prototype.__setState=function(e,t){return this.__state=e,(t=t||{}).crop=this.settings.crop,this.container.empty().append(o("tab-preview-"+e,t)),this.container.removeClass(function(e,t){return t.split(" ").filter(function(e){return!!~e.indexOf("uploadcare--preview_status_")}).join(" ")}),"unknown"===e&&this.settings.crop&&this.container.find(".uploadcare--preview__done").hide(),"error"===e?this.container.addClass("uploadcare--preview_status_error-"+t.error):void 0},l.prototype.initImage=function(e,n){var o,a,l,s,u=this;return a=this.container.find(".uploadcare--preview__image"),o=this.container.find(".uploadcare--preview__done"),l=i.imageLoader(a[0]).done(function(){return u.container.addClass("uploadcare--preview_status_loaded")}).fail(function(){return u.file=null,u.__setState("error",{error:"loadImage"})}),s=function(){return u.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!1).attr("tabindex",0),o.attr("disabled",!1),u.widget=new t(a,e,u.settings.crop[0]),n&&u.widget.setSelectionFromModifiers(n),o.on("click",function(){var e;return e=u.widget.applySelectionToFile(u.file),u.dialogApi.fileColl.replace(u.file,e),!0})},this.settings.crop?(this.container.find(".uploadcare--preview__title").text(r("dialog.tabs.preview.crop.title")),this.container.find(".uploadcare--preview__content").addClass("uploadcare--preview__content_crop"),o.attr("disabled",!0),o.text(r("dialog.tabs.preview.crop.done")),this.populateCropSizes(),this.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!0).attr("tabindex",-1),l.done(function(){return i.defer(s)})):void 0},l.prototype.populateCropSizes=function(){var t,n,o,a=this;return t=this.container.find(".uploadcare--crop-sizes"),o=t.children(),n="uploadcare--crop-sizes__item_current",e.each(this.settings.crop,function(l,s){var u,c,p,d,f,h;return(f=s.preferedSize)?(c=i.gcd(f[0],f[1]),u=f[0]/c+":"+f[1]/c):u=r("dialog.tabs.preview.crop.free"),d=o.clone().appendTo(t).attr("data-caption",u).on("click",function(r){"true"!==e(r.currentTarget).attr("aria-disabled")&&!e(r.currentTarget).hasClass(n)&&a.settings.crop.length>1&&a.widget&&(a.widget.setCrop(s),t.find(">*").removeClass(n),d.addClass(n))}),f?(h=i.fitSize(f,[30,30],!0),d.children().css({width:Math.max(20,h[0]),height:Math.max(12,h[1])})):(p=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-crop-free'/></svg>").attr("role","presentation").attr("class","uploadcare--icon"),d.children().append(p).addClass("uploadcare--crop-sizes__icon_free"))}),o.remove(),t.find(">*").eq(0).addClass(n)},l}(a.BasePreviewTab)})}.call(this),function(e){function t(e){this.targets=e,this.last=null,this.update()}t.prototype={update:function(){var t={};this.targets.each(function(n){var r=e(this).offset();r.top in t||(t[r.top]=[]),t[r.top].push([r.left+this.offsetWidth/2,this])}),this.rows=t},find:function(e,t){var n,r,o,a=1/0,i=this.rows;for(r in i){a>(s=Math.abs(r-t))&&(a=s,n=i[r])}a=Math.abs(n[0][0]-e),o=n[0][1];for(var l=1;l<n.length;l++){var s;a>(s=Math.abs(n[l][0]-e))&&(a=s,o=n[l][1])}return o},findNotLast:function(e,t){var n=this.find(e,t);return this.last&&n&&this.last==n?null:this.last=n}};var r="uploadcareMovable",o={uploadcareMovable:function(t){function o(e){if(t.touch){var n,r;if((r=e.originalEvent.touches)&&r.length)n=r[0];else{if(!(r=e.originalEvent.changedTouches)||!r.length)return;n=r[0]}e.pageX=n.pageX,e.pageY=n.pageY,e.which=1}}t=e.extend({distance:4,anyButton:!1,axis:!1,zIndex:1e3,start:e.noop,move:e.noop,finish:e.noop,items:null,keepFake:!1,touch:!0},t);var a="mousedown.{} touchstart.{}".replace(/\{}/g,r);this.on(a,t.items,null,function(a){if(o(a),t.anyButton||1==a.which){a.preventDefault();var i=!1,l=e(this),s=!1,u=l.position();u.top+=l.offsetParent().scrollTop(),u.left+=l.offsetParent().scrollLeft();var c="mousemove.{} touchmove.{}".replace(/\{}/g,r);e(n).on(c,function(e){if(o(e),!i&&(Math.abs(e.pageX-a.pageX)>t.distance||Math.abs(e.pageY-a.pageY)>t.distance)&&(i=!0,s=l.clone().css({position:"absolute",zIndex:t.zIndex,width:l.width()}).appendTo(l.offsetParent()),t.start({event:e,dragged:l,fake:s})),i){e.preventDefault();var n="y"==t.axis?0:e.pageX-a.pageX,r="x"==t.axis?0:e.pageY-a.pageY;s.css({left:n+u.left,top:r+u.top}),t.move({event:e,dragged:l,fake:s,dx:n,dy:r})}});c="mouseup.{} touchend.{} touchcancel.{} touchleave.{}";e(n).on(c.replace(/\{}/g,r),function(u){o(u);if(e(n).off("mousemove.{} touchmove.{} mouseup.{} touchend.{} touchcancel.{} touchleave.{}".replace(/\{}/g,r)),i){u.preventDefault();var c=u.pageX-a.pageX,p=u.pageY-a.pageY;i=!1,t.finish({event:u,dragged:l,fake:s,dx:c,dy:p}),t.keepFake||s.remove()}})}})},uploadcareSortable:function(n){var o,a=e.extend({items:">*"},n),i=(n=e.extend({checkBounds:function(){return!0},start:e.noop,attach:e.noop,move:e.noop,finish:e.noop},n),!1),l=this;return a.start=function(e){n.start(e),o=new t(l.find(a.items).not(e.fake)),i=e.dragged.next()},a.move=function(t){if(t.nearest=null,n.checkBounds(t)){var r=t.fake.offset(),a=o.findNotLast(r.left+t.dragged.width()/2,r.top);t.nearest=e(a),a&&a!=t.dragged[0]&&(t.dragged.nextAll().filter(a).length>0?t.dragged.insertAfter(a):t.dragged.insertBefore(a),n.attach(t),o.last=null,o.update())}else null!==o.last&&(o.last=null,i.length?t.dragged.insertBefore(i):t.dragged.parent().append(t.dragged),n.attach(t),o.update());n.move(t)},a.finish=function(t){var r=t.fake.offset();t.nearest=null,n.checkBounds(t)&&(t.nearest=e(o.find(r.left+t.dragged.width()/2,r.top))),n.finish(t),o=null},this[r](a)}};e.fn.extend(o)}(a.jQuery),function(){var e,t,n,r,o,i,l,s=function(e,t){return function(){return e.apply(t,arguments)}},u={}.hasOwnProperty;o=a.utils,a.ui.progress,i=a.templates,n=i.tpl,e=a.jQuery,l=a.locale,t=l.t,r=a,a.namespace("widget.tabs",function(a){return a.PreviewTabMultiple=function(a){function i(){this.__fileReplaced=s(this.__fileReplaced,this),this.__fileRemoved=s(this.__fileRemoved,this),this.__fileAdded=s(this.__fileAdded,this),this.__fileFailed=s(this.__fileFailed,this),this.__fileDone=s(this.__fileDone,this),this.__fileProgress=s(this.__fileProgress,this),this.__updateContainerView=s(this.__updateContainerView,this);var t=this;i.__super__.constructor.apply(this,arguments),this.container.append(n("tab-preview-multiple")),this.__fileTpl=e(n("tab-preview-multiple-file")),this.fileListEl=this.container.find(".uploadcare--files"),this.doneBtnEl=this.container.find(".uploadcare--preview__done"),e.each(this.dialogApi.fileColl.get(),function(e,n){return t.__fileAdded(n)}),this.__updateContainerView(),this.dialogApi.fileColl.onAdd.add(this.__fileAdded,this.__updateContainerView),this.dialogApi.fileColl.onRemove.add(this.__fileRemoved,this.__updateContainerView),this.dialogApi.fileColl.onReplace.add(this.__fileReplaced,this.__updateContainerView),this.dialogApi.fileColl.onAnyProgress(this.__fileProgress),this.dialogApi.fileColl.onAnyDone(this.__fileDone),this.dialogApi.fileColl.onAnyFail(this.__fileFailed),this.fileListEl.addClass(this.settings.imagesOnly?"uploadcare--files_type_tiles":"uploadcare--files_type_table"),this.__setupSorting()}return function(e,t){for(var n in t)u.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(i,a),i.prototype.__setupSorting=function(){var e=this;return this.fileListEl.uploadcareSortable({touch:!1,axis:this.settings.imagesOnly?"xy":"y",start:function(e){return e.dragged.css("visibility","hidden")},finish:function(t){var n,r;return t.dragged.css("visibility","visible"),n=e.container.find(".uploadcare--file"),r=function(t){return n.index(e.__fileToEl(t))},e.dialogApi.fileColl.sort(function(e,t){return r(e)-r(t)})}})},i.prototype.__updateContainerView=function(){var e,n,r,o,a,i,l;return i=(n=this.dialogApi.fileColl.length())>this.settings.multipleMax,a=n<this.settings.multipleMin,r=i||a,this.doneBtnEl.attr("disabled",r),o=t("dialog.tabs.preview.multiple.question").replace("%files%",t("file",n)),this.container.find(".uploadcare--preview__title").text(o),(e=this.container.find(".uploadcare--preview__message")).empty(),r?(l=i?t("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):n&&a?t("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin).replace("%files%",t("file",n)):void 0,e.addClass("uploadcare--error").text(l)):void 0},i.prototype.__updateFileInfo=function(e,n){var r;return r=n.name||t("dialog.tabs.preview.unknownName"),e.find(".uploadcare--file__name").text(r),e.find(".uploadcare--file__description").attr("title",t("dialog.tabs.preview.multiple.file.preview").replace("%file%",r)),e.find(".uploadcare--file__remove").attr("title",t("dialog.tabs.preview.multiple.file.remove").replace("%file%",r)),e.find(".uploadcare--file__size").text(o.readableFileSize(n.size,"–"))},i.prototype.__fileProgress=function(e,t){var n;return(n=this.__fileToEl(e)).find(".uploadcare--progressbar__value").css("width",Math.round(100*t.progress)+"%"),this.__updateFileInfo(n,t.incompleteFileInfo)},i.prototype.__fileDone=function(t,n){var o,a,i,l=this;return(a=this.__fileToEl(t).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_uploaded")).find(".uploadcare--progressbar__value").css("width","100%"),this.__updateFileInfo(a,n),n.isImage?(o=n.cdnUrl+"-/quality/lightest/-/preview/108x108/",this.settings.previewUrlCallback&&(o=this.settings.previewUrlCallback(o,n)),i=e("<img>").attr("src",o).addClass("uploadcare--file__icon")):i=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-file'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon"),a.find(".uploadcare--file__preview").html(i),a.find(".uploadcare--file__description").on("click",function(){return r.openPreviewDialog(t,l.settings).done(function(e){return l.dialogApi.fileColl.replace(t,e)})})},i.prototype.__fileFailed=function(n,r,o){var a,i;return(a=this.__fileToEl(n).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_error")).find(".uploadcare--file__error").text(t("errors."+r)),i=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-error'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon"),a.find(".uploadcare--file__preview").html(i)},i.prototype.__fileAdded=function(e){return this.__createFileEl(e).appendTo(this.fileListEl)},i.prototype.__fileRemoved=function(t){return this.__fileToEl(t).remove(),e(t).removeData()},i.prototype.__fileReplaced=function(e,t){return this.__createFileEl(t).insertAfter(this.__fileToEl(e)),this.__fileRemoved(e)},i.prototype.__fileToEl=function(t){return e(t).data("dpm-el")||e()},i.prototype.__createFileEl=function(t){var n,r=this;return n=this.__fileTpl.clone().on("click",".uploadcare--file__remove",function(){return r.dialogApi.fileColl.remove(t)}),e(t).data("dpm-el",n),n},i}(a.BasePreviewTab)})}.call(this),function(){var t,r,o,i,l,s,u,c,p,d,f=function(e,t){return function(){return e.apply(t,arguments)}};u=a.utils,c=a.locale,i=c.t,p=a.templates,s=p.tpl,r=a.files,d=a.widget,l=d.tabs,o=a.settings,t=a.jQuery,a.namespace("",function(c){var p,d,h,m,g;return h=function(e,t){var n,r;return r=e.scrollTop(),n=e.scrollLeft(),t&&e.scrollTop(0).scrollLeft(0),function(){return e.scrollTop(r).scrollLeft(n)}},t(e).on("keydown",function(e){return c.isDialogOpened()&&27===e.which?(e.stopImmediatePropagation(),void 0!==d&&null!==d?d.reject():void 0):void 0}),d=null,m="uploadcare--page",c.isDialogOpened=function(){return null!==d},c.closeDialog=function(){var e;for(e=[];d;)e.push(d.reject());return e},c.openDialog=function(r,o,a){var i,l,u;return c.closeDialog(),l=t(s("dialog")).appendTo("body"),u=c.openPanel(l.find(".uploadcare--dialog__placeholder"),r,o,a),l.find(".uploadcare--panel").addClass("uploadcare--dialog__panel"),l.addClass("uploadcare--dialog_status_active"),u.dialogElement=l,i=h(t(e),"absolute"===l.css("position")),t("html, body").addClass(m),l.find(".uploadcare--dialog__close").on("click",u.reject),l.on("dblclick",function(e){var r;if(t.contains(n.documentElement,e.target)&&(r=".uploadcare--dialog__panel, .uploadcare--dialog__powered-by",!t(e.target).is(r)&&!t(e.target).parents(r).length))return u.reject()}),d=u.always(function(){return t("html, body").removeClass(m),d=null,l.remove(),i()})},c.openPreviewDialog=function(e,n){var r,o;return o=d,d=null,n=t.extend({},n,{multiple:!1,tabs:""}),r=a.openDialog(e,"preview",n),null!=o&&o.dialogElement.addClass("uploadcare--dialog_status_inactive"),r.always(function(){return d=o,null!=o?(t("html, body").addClass(m),o.dialogElement.removeClass("uploadcare--dialog_status_inactive")):void 0}),r.onTabVisibility(function(e,t){return"preview"!==e||t?void 0:r.reject()}),r},c.openPanel=function(e,n,r,i){var l,s;return t.isPlainObject(r)&&(i=r,r=null),n?u.isFileGroup(n)?n=n.files():t.isArray(n)||(n=[n]):n=[],i=o.build(i),s=new p(i,e,n,r).publicPromise(),l=function(e){return i.multiple?a.FileGroup(e,i):e[0]},u.then(s,l,l).promise(s)},g={},c.registerTab=function(e,t){return g[e]=t},c.registerTab("file",l.FileTab),c.registerTab("url",l.UrlTab),c.registerTab("camera",l.CameraTab),c.registerTab("facebook",l.RemoteTab),c.registerTab("dropbox",l.RemoteTab),c.registerTab("gdrive",l.RemoteTab),c.registerTab("gphotos",l.RemoteTab),c.registerTab("instagram",l.RemoteTab),c.registerTab("flickr",l.RemoteTab),c.registerTab("vk",l.RemoteTab),c.registerTab("evernote",l.RemoteTab),c.registerTab("box",l.RemoteTab),c.registerTab("skydrive",l.RemoteTab),c.registerTab("huddle",l.RemoteTab),c.registerTab("empty-pubkey",function(e,t,n,r){return e.append(r._emptyKeyText)}),c.registerTab("preview",function(e,t,n,r,o){if(r.previewStep||0!==n.fileColl.length())return new(r.multiple?l.PreviewTabMultiple:l.PreviewTab)(e,t,n,r,o)}),p=function(){function e(e,n,r,o){var a,i=this;this.settings=e,this.openMenu=f(this.openMenu,this),this.isTabVisible=f(this.isTabVisible,this),this.hideTab=f(this.hideTab,this),this.showTab=f(this.showTab,this),this.switchTab=f(this.switchTab,this),this.__closePanel=f(this.__closePanel,this),this.__updateFooter=f(this.__updateFooter,this),this.__reject=f(this.__reject,this),this.__resolve=f(this.__resolve,this),this.addFiles=f(this.addFiles,this),this.dfd=t.Deferred(),this.dfd.always(this.__closePanel),a=".uploadcare--panel",this.content=t(s("dialog__panel")),this.panel=this.content.find(a).add(this.content.filter(a)),this.placeholder=t(n),this.placeholder.replaceWith(this.content),this.panel.append(t(s("icons"))),this.settings.multiple&&this.panel.addClass("uploadcare--panel_multiple"),this.panel.find(".uploadcare--menu__toggle").on("click",function(){return i.panel.find(".uploadcare--menu").toggleClass("uploadcare--menu_opened")}),this.files=new u.CollectionOfPromises(r),this.files.onRemove.add(function(){return 0===i.files.length()?i.hideTab("preview"):void 0}),this.__autoCrop(this.files),this.tabs={},this.__prepareFooter(),this.onTabVisibility=t.Callbacks().add(function(e,t){return i.panel.find(".uploadcare--menu__item_tab_"+e).toggleClass("uploadcare--menu__item_hidden",!t)}),this.settings.publicKey?this.__prepareTabs(o):this.__welcome()}return e.prototype.publicPromise=function(){return this.promise||(this.promise=this.dfd.promise({reject:this.__reject,resolve:this.__resolve,fileColl:this.files,addFiles:this.addFiles,switchTab:this.switchTab,hideTab:this.hideTab,showTab:this.showTab,isTabVisible:this.isTabVisible,openMenu:this.openMenu,onTabVisibility:u.publicCallbacks(this.onTabVisibility)})),this.promise},e.prototype.addFiles=function(e,t){var n,r,o;for(t&&(e=c.filesFrom(e,t,this.settings)),this.settings.multiple||(this.files.clear(),e=[e[0]]),r=0,o=e.length;o>r;r++)n=e[r],this.settings.multipleMaxStrict&&this.files.length()>=this.settings.multipleMax?n.cancel():this.files.add(n);return this.settings.previewStep?(this.showTab("preview"),this.settings.multiple?void 0:this.switchTab("preview")):this.__resolve()},e.prototype.__autoCrop=function(e){var t,n,r,o=this;if(this.settings.crop&&this.settings.multiple){for(t=0,n=(r=this.settings.crop).length;n>t;t++)if(!r[t].preferedSize)return;return e.autoThen(function(e){var t,n;return!e.isImage||e.cdnUrlModifiers||e.crop?e:(t=e.originalImageInfo,n=u.fitSize(o.settings.crop[0].preferedSize,[t.width,t.height],!0),u.applyCropCoordsToInfo(e,o.settings.crop[0],[t.width,t.height],{width:n[0],height:n[1],left:Math.round((t.width-n[0])/2),top:Math.round((t.height-n[1])/2)}))})}},e.prototype.__resolve=function(){return this.dfd.resolve(this.files.get())},e.prototype.__reject=function(){return this.dfd.reject(this.files.get())},e.prototype.__prepareTabs=function(e){var t,n,r,o;for(this.addTab("preview"),n=0,r=(o=this.settings.tabs).length;r>n;n++)t=o[n],this.addTab(t);return this.files.length()?(this.showTab("preview"),this.switchTab("preview")):(this.hideTab("preview"),this.switchTab(e||this.__firstVisibleTab())),0===this.settings.tabs.length?(this.panel.addClass("uploadcare--panel_menu-hidden"),this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--panel__menu_hidden")):void 0},e.prototype.__prepareFooter=function(){var e,t=this;return this.footer=this.panel.find(".uploadcare--panel__footer"),e=":not(:disabled)",this.footer.on("click",".uploadcare--panel__show-files"+e,function(){return t.switchTab("preview")}),this.footer.on("click",".uploadcare--panel__done"+e,this.__resolve),this.__updateFooter(),this.files.onAdd.add(this.__updateFooter),this.files.onRemove.add(this.__updateFooter)},e.prototype.__updateFooter=function(){var e,t,n;return n=(r=this.files.length())>this.settings.multipleMax,t=r<this.settings.multipleMin,this.footer.find(".uploadcare--panel__done").attr("disabled",n||t),this.footer.find(".uploadcare--panel__show-files").attr("disabled",0===r),e=n?i("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):r&&t?i("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin):i("dialog.tabs.preview.multiple.title"),this.footer.find(".uploadcare--panel__message").toggleClass("uploadcare--panel__message_hidden",0===r).toggleClass("uploadcare--error",n||t).text(e.replace("%files%",i("file",r))),this.footer.find(".uploadcare--panel__file-counter").toggleClass("uploadcare--error",n||t).text(r?"("+r+")":"")},e.prototype.__closePanel=function(){return this.panel.replaceWith(this.placeholder),this.content.remove()},e.prototype.addTab=function(e){var n,r,o,a,l=this;if(!(e in this.tabs)){if(!(n=g[e]))throw new Error("No such tab: "+e);return a=t("<div>").addClass("uploadcare--tab").addClass("uploadcare--tab_name_"+e).insertBefore(this.footer),o="preview"===e?t('<div class="uploadcare--menu__icon uploadcare--panel__icon">'):t("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-"+e+"'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),r=t("<div>",{role:"button",tabindex:"0"}).addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_"+e).attr("title",i("dialog.tabs.names."+e)).append(o).appendTo(this.panel.find(".uploadcare--menu__items")).on("click",function(){return e===l.currentTab?l.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened"):l.switchTab(e)}),this.tabs[e]=new n(a,r,this.publicPromise(),this.settings,e)}},e.prototype.switchTab=function(e){var t;if(e)return this.currentTab=e,this.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened").attr("data-current",e),this.panel.find(".uploadcare--menu__item").removeClass("uploadcare--menu__item_current").filter(".uploadcare--menu__item_tab_"+e).addClass("uploadcare--menu__item_current"),t="uploadcare--tab",this.panel.find("."+t).removeClass(t+"_current").filter("."+t+"_name_"+e).addClass(t+"_current"),this.dfd.notify(e)},e.prototype.showTab=function(e){return this.onTabVisibility.fire(e,!0)},e.prototype.hideTab=function(e){return this.onTabVisibility.fire(e,!1),this.currentTab===e?this.switchTab(this.__firstVisibleTab()):void 0},e.prototype.isTabVisible=function(e){return!this.panel.find(".uploadcare--menu__item_tab_"+e).is(".uploadcare--menu__item_hidden")},e.prototype.openMenu=function(){return this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--menu_opened")},e.prototype.__firstVisibleTab=function(){var e,t,n,r;for(t=0,n=(r=this.settings.tabs).length;n>t;t++)if(e=r[t],this.isTabVisible(e))return e},e.prototype.__welcome=function(){var e,t,n,r;for(this.addTab("empty-pubkey"),this.switchTab("empty-pubkey"),t=0,n=(r=this.settings.tabs).length;n>t;t++)e=r[t],this.__addFakeTab(e);return null},e.prototype.__addFakeTab=function(e){var n;return n=t("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-"+e+"'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),"empty-pubkey"===e&&n.addClass("uploadcare--panel__icon"),t("<div>").addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_"+e).attr("aria-disabled",!0).attr("title",i("dialog.tabs.names."+e)).append(n).appendTo(this.panel.find(".uploadcare--menu__items"))},e}()})}.call(this),function(){var e,t,n,r,o,i=function(e,t){return function(){return e.apply(t,arguments)}};r=a.utils,e=a.jQuery,t=a.dragdrop,o=a.locale,n=o.t,a.namespace("widget",function(o){return o.BaseWidget=function(){function l(t,n){var o=this;this.element=t,this.settings=n,this.reloadInfo=i(this.reloadInfo,this),this.__setObject=i(this.__setObject,this),this.__reset=i(this.__reset,this),this.validators=this.settings.validators=[],this.currentObject=null,this.__onDialogOpen=e.Callbacks(),this.__onUploadComplete=e.Callbacks(),this.__onChange=e.Callbacks().add(function(e){return null!=e?e.promise().done(function(e){return o.__onUploadComplete.fire(e)}):void 0}),this.__setupWidget(),this.element.on("change.uploadcare",this.reloadInfo),this.__hasValue=!1,r.defer(function(){return o.__hasValue?void 0:o.reloadInfo()})}return l.prototype.__setupWidget=function(){var e,r=this;return this.template=new o.Template(this.settings,this.element),(e=["buttons.choose"]).push(this.settings.imagesOnly?"images":"files"),e.push(this.settings.multiple?"other":"one"),this.template.addButton("open",n(e.join("."))).toggleClass("needsclick",this.settings.systemDialog).on("click",function(){return r.openDialog()}),this.template.addButton("cancel",n("buttons.cancel")).on("click",function(){return r.__setObject(null)}),this.template.addButton("remove",n("buttons.remove")).on("click",function(){return r.__setObject(null)}),this.template.content.on("click",".uploadcare--widget__file-name",function(){return r.openDialog()}),t.receiveDrop(this.template.content,this.__handleDirectSelection),this.template.reset()},l.prototype.__infoToValue=function(e){return e.cdnUrlModifiers||this.settings.pathValue?e.cdnUrl:e.uuid},l.prototype.__reset=function(){var e;return e=this.currentObject,this.currentObject=null,null!=e&&"function"==typeof e.cancel&&e.cancel(),this.template.reset()},l.prototype.__setObject=function(e){return e!==this.currentObject?(this.__reset(),e?(this.currentObject=e,this.__watchCurrentObject()):this.element.val(""),this.__onChange.fire(this.currentObject)):void 0},l.prototype.__watchCurrentObject=function(){var e,t=this;return(e=this.__currentFile())?(this.template.listen(e),e.done(function(n){return e===t.__currentFile()?t.__onUploadingDone(n):void 0}).fail(function(n){return e===t.__currentFile()?t.__onUploadingFailed(n):void 0})):void 0},l.prototype.__onUploadingDone=function(e){return this.element.val(this.__infoToValue(e)),this.template.setFileInfo(e),this.template.loaded()},l.prototype.__onUploadingFailed=function(e){return this.template.reset(),this.template.error(e)},l.prototype.__setExternalValue=function(e){return this.__setObject(r.valueToFile(e,this.settings))},l.prototype.value=function(e){return void 0!==e?(this.__hasValue=!0,this.__setExternalValue(e),this):this.currentObject},l.prototype.reloadInfo=function(){return this.value(this.element.val())},l.prototype.openDialog=function(e){var t=this;return this.settings.systemDialog?r.fileSelectDialog(this.template.content,this.settings,function(e){return t.__handleDirectSelection("object",e.files)}):this.__openDialog(e)},l.prototype.__openDialog=function(e){var t;return t=a.openDialog(this.currentObject,e,this.settings),this.__onDialogOpen.fire(t),t.done(this.__setObject)},l.prototype.api=function(){return this.__api||(this.__api=r.bindAll(this,["openDialog","reloadInfo","value","validators"]),this.__api.onChange=r.publicCallbacks(this.__onChange),this.__api.onUploadComplete=r.publicCallbacks(this.__onUploadComplete),this.__api.onDialogOpen=r.publicCallbacks(this.__onDialogOpen),this.__api.inputElement=this.element.get(0)),this.__api},l}()})}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t={}.hasOwnProperty;a.utils,a.files,a.jQuery,a.namespace("widget",function(n){return n.Widget=function(n){function r(){return this.__handleDirectSelection=e(this.__handleDirectSelection,this),r.__super__.constructor.apply(this,arguments)}return function(e,n){for(var r in n)t.call(n,r)&&(e[r]=n[r]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(r,n),r.prototype.__currentFile=function(){return this.currentObject},r.prototype.__handleDirectSelection=function(e,t){var n;return n=a.fileFrom(e,t[0],this.settings),this.settings.systemDialog||!this.settings.previewStep?this.__setObject(n):this.__openDialog("preview").addFiles([n])},r}(n.BaseWidget),n.Widget._name="SingleWidget"})}.call(this),function(){var e,t,n,r=function(e,t){return function(){return e.apply(t,arguments)}},o={}.hasOwnProperty,i=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};t=a.utils,a.jQuery,n=a.locale,e=n.t,a.namespace("widget",function(n){return n.MultipleWidget=function(n){function o(){return this.__handleDirectSelection=r(this.__handleDirectSelection,this),this.__setObject=r(this.__setObject,this),o.__super__.constructor.apply(this,arguments)}return i(o,n),o.prototype.__currentFile=function(){var e;return null!=(e=this.currentObject)?e.promise():void 0},o.prototype.__setObject=function(e){return t.isFileGroupsEqual(this.currentObject,e)?e?void 0:(this.__reset(),this.element.val("")):o.__super__.__setObject.apply(this,arguments)},o.prototype.__setExternalValue=function(n){var r,o=this;return this.__lastGroupPr=r=t.valueToGroup(n,this.settings),n&&(this.template.setStatus("started"),this.template.statusText.text(e("loadingInfo"))),r.done(function(e){return o.__lastGroupPr===r?o.__setObject(e):void 0}).fail(function(){return o.__lastGroupPr===r?o.__onUploadingFailed("createGroup"):void 0})},o.prototype.__handleDirectSelection=function(e,t){var n;return n=a.filesFrom(e,t,this.settings),this.settings.systemDialog?this.__setObject(a.FileGroup(n,this.settings)):this.__openDialog("preview").addFiles(n)},o}(n.BaseWidget),n.MultipleWidget._name="MultipleWidget"})}.call(this),function(){var t,n,r;r=a.utils,n=a.settings,t=a.jQuery,a.namespace("",function(o){var a,i,l,s,u;return i="uploadcareWidget",u='[role~="uploadcare-uploader"]',o.initialize=function(e){var n,r,o,a,i,s;for(null==e&&(e=":root"),r=[],a=0,i=(s=t(e)).length;i>a;a++)n=s[a],o=l(n.querySelectorAll(u)),r=r.concat(o);return r},l=function(e){var n,r,o,a,l;for(l=[],o=0,a=e.length;a>o;o++)n=e[o],(r=t(n).data(i))&&r.inputElement===n||l.push(s(n));return l},o.SingleWidget=function(e){return s(e,o.widget.Widget)},o.MultipleWidget=function(e){return s(e,o.widget.MultipleWidget)},o.Widget=function(e){return s(e)},s=function(e,l){var s,u,c,p,d;if(0===(c=t(e)).length)throw new Error("No DOM elements found matching selector");if(c.length>1&&r.warn("There are multiple DOM elements matching selector"),e=c.eq(0),s=(p=n.build(e.data())).multiple?o.widget.MultipleWidget:o.widget.Widget,l&&s!==l)throw new Error("This element should be processed using "+s._name);return(u=e.data(i))&&u.inputElement===e[0]||(a(e),u=(d=new s(e,p)).api(),e.data(i,u),d.template.content.data(i,u)),u},a=function(e){return e.off(".uploadcare").each(function(){var e,n;return(e=(n=t(this).next(".uploadcare--widget")).data(i))&&e.inputElement===this?n.remove():void 0})},o.start=r.once(function(e,t){return e=n.common(e,t),t?void 0:(e.live&&setInterval(o.initialize,100),o.initialize())}),t(function(){return e.UPLOADCARE_MANUAL_START?void 0:o.start()})})}.call(this),function(){var e,t,r,o,i,l;e=a.jQuery,t=function(e){var t;return t="[data-status=started], [data-status=error]",!e.find(".uploadcare--widget").is(t)},o=function(e,t){return e.attr("data-uploadcare-submitted",t),e.find(":submit").attr("disabled",t)},i=(l='[role~="uploadcare-upload-form"]')+"[data-uploadcare-submitted]",e(n).on("submit",l,function(){var n;return n=e(this),!!t(n)||(o(n,!0),!1)}),e(n).on("loaded.uploadcare",i,function(){return e(this).submit()}),r="ready.uploadcare error.uploadcare",e(n).on(r,i,function(){var n;return n=e(this),t(n)?o(n,!1):void 0})}.call(this),function(){var e,t,r,o;o=a.utils,e=a.jQuery,t=[".uploadcare--menu__item",".uploadcare--file__description",".uploadcare--crop-sizes__item"].join(", "),r="uploadcare--mouse-focused",e(n.documentElement).on("mousedown",t,function(t){return o.defer(function(){var t;return(t=n.activeElement)&&t!==n.body?e(t).addClass(r).one("blur",function(){return e(t).removeClass(r)}):void 0})}).on("keypress",t,function(t){return 13===t.which||32===t.which?(e(this).click(),t.preventDefault(),t.stopPropagation()):void 0})}.call(this),function(){var e;(e=a.expose)("globals",a.settings.common),e("start"),e("initialize"),e("fileFrom"),e("filesFrom"),e("FileGroup"),e("loadFileGroup"),e("openDialog"),e("closeDialog"),e("openPanel"),e("registerTab"),e("Circle",a.ui.progress.Circle),e("SingleWidget"),e("MultipleWidget"),e("Widget"),e("tabsCss"),e("dragdrop.support"),e("dragdrop.receiveDrop"),e("dragdrop.uploadDrop")}.call(this),function(){a.namespace("locale.translations",function(e){return e.ar={uploading:"جاري الرفع... الرجاء الانتظار",loadingInfo:"جار تحميل المعلومات ...",errors:{default:"خطأ",baddata:"قيمة غير صحيحة",size:"ملف كبير جداً",upload:"يتعذر الرفع",user:"تم إلغاء الرفع",info:"يتعذر تحميل المعلومات",image:"يسمح بالصور فقط",createGroup:"لا يمكن إنشاء مجموعة ملفات",deleted:"تم حذف الملف"},draghere:"أسقط ملف هنا",file:{one:"%1 ملف",other:"%1 ملفات"},buttons:{cancel:"إلغاء",remove:"إزالة",choose:{files:{one:"اختر ملف",other:"اختر ملفات"},images:{one:"اختر صورة",other:"اختر صور"}}},dialog:{close:"أغلق",openMenu:"افتح القائمة",done:"موافق",showFiles:"اظهار الملفات",tabs:{names:{"empty-pubkey":"مرحبا!",preview:"معاينة",file:"ملفات محلية",url:"رابط مباشر",camera:"كاميرا",facebook:"فيس بوك",dropbox:"دروب بوكس",gdrive:"جوجل دريف",gphotos:"صور غوغل",instagram:"إينستجرام",vk:"في كي",evernote:"إيفرنوت",box:"بوكس",skydrive:"ون درايف",flickr:"فليكر",huddle:"هادل"},file:{drag:"سحب وإفلات<br>أي ملف",nodrop:"رفع ملفات من الحاسوب",cloudsTip:"مخازن على السحابة<br>والشبكات الاجتماعية",or:"أو",button:"اختر ملف محلي",also:"أو اختر من"},url:{title:"ملفات من شبكة الإنترنت",line1:"التقاط أي ملف من على شبكة الإنترنت",line2:"فقط قم بتوفير الرابط",input:"الصق الرابط هنا...",button:"رفع"},camera:{title:"ملف من كاميرا الويب",capture:"التقاط صورة",mirror:"عكس الصورة",startRecord:"سجل فيديو",stopRecord:"توقف",cancelRecord:"إلغاء",retry:"طلب الإذن مرة أخرى",pleaseAllow:{title:"يرجى السماح بالوصول إلى الكاميرا",text:"تمت مطالبتك بالسماح بالدخول إلى الكاميرا من هذا الموقع<br>من أجل التقاط الصور من الكاميرا يجب عليك الموافقة على هذا الطلب"},notFound:{title:"لم يتم اكتشاف أي كاميرا",text:"يبدو أنه ليس لديك كاميرا متصلة بهذا الجهاز"}},preview:{unknownName:"غير معروف",change:"إلغاء",back:"الرجوع",done:"إضافة",unknown:{title:"جار الرفع ... يرجى الانتظار للحصول على معاينة",done:"تخطي المعاينة والقبول"},regular:{title:"إضافة هذا الملف؟",line1:"أنت على وشك إضافة الملف أعلاه",line2:"يرجى التأكيد"},image:{title:"إضافة هذة الصورة",change:"إلغاء"},crop:{title:"قص وإضافة هذه الصورة",done:"موافق",free:"حر"},video:{title:"إضافة هذا الفيديو",change:"إلغاء"},error:{default:{title:"عفوا آسف",text:"حدث خطأ أثناء الرفع",back:"حاول مرة اخرى"},image:{title:"يتم قبول ملفات الصور فقط",text:"الرجاء إعادة المحاولة باستخدام ملف آخر",back:"اختر صورة"},size:{title:"الملف الذي حددتة يتجاوز الحد المسموح بة",text:"الرجاء إعادة المحاولة باستخدام ملف آخر"},loadImage:{title:"خطأ",text:"لا يمكن تحميل الصورة"}},multiple:{title:"لقد اخترت %files%",question:"إضافة %files%?",tooManyFiles:"لقد اخترت عددا كبيرا جدا من الملفات %max% هو الحد الأقصى",tooFewFiles:"لقد اخترت %files%. على الأقل %min% مطلوب",clear:"حذف الكل",done:"إضافة",file:{preview:"معاينة %file%",remove:"حذف %file%"}}}},footer:{text:"مدعوم بواسطة",link:"ابلود كير"}}}}),a.namespace("locale.pluralize",function(e){return e.ar=function(e){var t;return 0===e?"zero":1===e?"one":2===e?"two":(t=e%100)>=3&&10>=t?"few":t>=11&&99>=t?"many":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.az={uploading:"Yüklənilir... Lütfən, gözləyin.",loadingInfo:"İnfo yüklənilir...",errors:{default:"Xəta",baddata:"Yanlış dəyər",size:"Fayl çox böyükdür",upload:"Yüklənilə bilmədi",user:"Yükləmə ləğv edildi",info:"İnfo yüklənə bilmədi",image:"Yalnız təsvirlərə icazə verilir",createGroup:"Fayl qrupu yaradıla bilmir",deleted:"Fayl silindi"},draghere:"Faylı bura atın",file:{one:"%1 fayl",other:"%1 fayl"},buttons:{cancel:"Ləğv edin",remove:"Silin",choose:{files:{one:"Fayl seçin",other:"Fayllar seçin"},images:{one:"Təsvir seçin",other:"Təsvirlər seçin"}}},dialog:{done:"Hazırdır",showFiles:"Faylları göstərin",tabs:{names:{"empty-pubkey":"Xoş gəlmisiniz",preview:"Önbaxış",file:"Lokal Fayllar",url:"İxtiyari linklər",camera:"Kamera",gdrive:"Google Disk"},file:{drag:"Faylı bura atın",nodrop:"Kompüterinizdən faylları yükləyin",cloudsTip:"Bulud yaddaşlar <br>və sosial xidmətlər",or:"or",button:"Lokal fayl seçin",also:"Həmçinin, buradan seçə bilərsiniz"},url:{title:"Vebdən fayllar",line1:"Vebdən istənilən faylı götürün.",line2:"Sadəcə, link verin.",input:"Linkinizi bura yerləşdirin...",button:"Yükləyin"},camera:{capture:"Şəkil çəkin",mirror:"Güzgü",retry:"Yenidən icazə sorğusu göndərin.",pleaseAllow:{title:"Lütfən, kameranıza giriş hüququ verin",text:"Bu saytdan kameranıza daxil olmaq icazəsi verildi. Kameranız ilə şəkil çəkmək üçün bu sorğunu təsdiq etməlisiniz."},notFound:{title:"Kamera aşkar edilmədi",text:"Görünür, bu cihaza kamera qoşulmayıb."}},preview:{unknownName:"naməlum",change:"Ləğv edin",back:"Geri",done:"Əlavə edin",unknown:{title:"Yüklənilir... Lütfən, önbaxış üçün gözləyin.",done:"Önbaxışı ötürün və qəbul edin"},regular:{title:"Bu fayl əlavə edilsin?",line1:"Yuxarıdakı faylı əlavə etmək üzrəsiniz.",line2:"Lütfən, təsdiq edin."},image:{title:"Bu təsvir əlavə edilsin?",change:"Ləğv edin"},crop:{title:"Bu təsviri kəsin və əlavə edin",done:"Hazırdır",free:"pulsuz"},error:{default:{title:"Ups!",text:"Yükləmə zamanı nəsə xəta baş verdi.",back:"Lütfən, y enidən cəhd edin."},image:{title:"Yaınız təsvir faylları qəbul olunur.",text:"Lütfən, başqa fayl ilə cəhd edin.",back:"Təsvir seçin"},size:{title:"Seçdiyiniz fayl limiti keçir.",text:"Lütfən, başqa fayl ilə cəhd edin."},loadImage:{title:"Xəta",text:"Təsvir yüklənilə bilmir"}},multiple:{title:"%files% fayl seçdiniz.",question:"Bütün bu faylları əlavə etmək istəyirsiniz?",tooManyFiles:"Həddindən çox fayl seçdiniz. %max% maksimumdur.",tooFewFiles:"%files% fayl seçdiniz. Ən azı %min% tələb olunur.",clear:"Hamısını silin",done:"Hazırdır"}}}}}}),a.namespace("locale.pluralize",function(e){return e.az=function(e){return"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.ca={uploading:"Carregant... Si us plau esperi.",loadingInfo:"Carregant informació...",errors:{default:"Error",baddata:"Valor incorrecte",size:"Massa gran",upload:"No s'ha pogut carregar",user:"Carrega cancel·lada",info:"No s'ha pogut carregar la informació",image:"Només es permeten imatges",createGroup:"No es pot crear el grup d'arxius",deleted:"Fitxer eliminat"},draghere:"Arrossega els fitxers fins aquí",file:{one:"%1 fitxer",other:"%1 fitxers"},buttons:{cancel:"Cancel·lar",remove:"Eliminar",choose:{files:{one:"Escull un fitxer",other:"Escull fitxers"},images:{one:"Escull una imatge",other:"Escull imatges"}}},dialog:{done:"Fet",showFiles:"Mostra fitxers",tabs:{names:{"empty-pubkey":"Benvingut",preview:"Avanci",file:"Ordinador",url:"Enllaços arbitraris",camera:"Càmera"},file:{drag:"Arrossega un fitxer aquí",nodrop:"Carrega fitxers des del teu ordinador",cloudsTip:"Emmagatzematge al núvol<br>i xarxes socials",or:"o",button:"Escull un fitxer des del teu ordinador",also:"També pots seleccionar-lo de"},url:{title:"Fitxers de la web",line1:"Selecciona qualsevol fitxer de la web.",line2:"Només proporcioni el link.",input:"Copiï el link aquí...",button:"Pujar"},camera:{capture:"Realitza una foto",mirror:"Mirall",retry:"Demanar permisos una altra vegada",pleaseAllow:{title:"Si us plau, permet accés a la teva càmera",text:"Aquest lloc t'ha demanat de permetre accés a la càmera. Per tal de realitzar imatges amb la teva càmera has d'acceptar aquesta petició."},notFound:{title:"No s'ha detectat cap càmera",text:"Sembla que no tens cap càmera connectada a aquest dispositiu."}},preview:{unknownName:"desconegut",change:"Cancel·lar",back:"Endarrere",done:"Pujar",unknown:{title:"Carregant. Si us plau esperi per la visualització prèvia.",done:"Saltar visualització prèvia i acceptar"},regular:{title:"Vols pujar aquest fitxer?",line1:"Estàs a punt de pujar el fitxer superior.",line2:"Confirmi, si us plau."},image:{title:"Vols pujar aquesta imatge?",change:"Cancel·lar"},crop:{title:"Tallar i pujar aquesta imatge",done:"Fet",free:"lliure"},error:{default:{title:"La pujada ha fallat!",text:"S'ha produït un error durant la pujada.",back:"Si us plau, provi-ho de nou."},image:{title:"Només s'accepten fitxers d'imatges.",text:"Si us plau, provi-ho de nou amb un altre fitxer.",back:"Escull imatge"},size:{title:"La mida del fitxer que has seleccionat sobrepassa el límit.",text:"Si us plau, provi-ho de nou amb un altre fitxer."},loadImage:{title:"Error",text:"No s'ha pogut carregar la imatge"}},multiple:{title:"N'has escollit %files%",question:"Vols afegir tots aquests fitxers?",tooManyFiles:"Has escollit massa fitxers. %max% és el màxim.",tooFewFiles:"Has escollit %files%. Com a mínim en calen %min%.",clear:"Eliminar-los tots",done:"Fet"}}}}}}),a.namespace("locale.pluralize",function(e){return e.ca=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.cs={uploading:"Nahrávám... Malý moment.",loadingInfo:"Nahrávám informace...",errors:{default:"Chyba",baddata:"Neplatná hodnota",size:"Soubor je příliš velký",upload:"Nelze nahrát",user:"Nahrávání zrušeno",info:"Nelze nahrát informace",image:"Lze nahrát pouze obrázky",createGroup:"Nelze vytvořit adresář",deleted:"Soubor byl smazán"},draghere:"Přetáhněte soubor sem",file:{one:"%1 soubor",few:"%1 soubory",many:"%1 souborů"},buttons:{cancel:"Zrušit",remove:"Odstranit",choose:{files:{one:"Vyberte soubor",other:"Vyberte soubory"},images:{one:"Vyberte obrázek",other:"Vyberte obrázky"}}},dialog:{done:"Hotovo",showFiles:"Zobrazit soubory",tabs:{names:{"empty-pubkey":"Vítejte",preview:"Náhled",file:"Soubor z počítače",url:"Soubor z internetu",camera:"Webkamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",skydrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Přetáhněte soubor sem",nodrop:"Nahrajte soubory z vašeho počítače",cloudsTip:"Cloudové úložiště<br>a sociální sítě",or:"nebo",button:"Vyberte soubor z počítače",also:"Můžete také nahrát soubor z"},url:{title:"Soubory z internetu",line1:"Nahrajte jakýkoliv soubor z internetu.",line2:"Stačí vložit odkaz.",input:"Odkaz vložte zde...",button:"Nahrát"},camera:{capture:"Pořídit fotografii",mirror:"Zrcadlo",retry:"Znovu požádat o povolení",pleaseAllow:{title:"Prosím povolte přístup k webkameře",text:"Byl(a) jste požádán(a) o přístup k webkameře. Abyste mohl(a) pořídit fotografii, musíte přístup povolit."},notFound:{title:"Nebyla nalezena webkamera",text:"Zdá se, že k tomuto zařízení není připojena žádná webkamera."}},preview:{unknownName:"neznámý",change:"Zrušit",back:"Zpět",done:"Přidat",unknown:{title:"Nahrávám... Prosím vyčkejte na náhled.",done:"Přeskočit náhled a odeslat"},regular:{title:"Přidat tento soubor?",line1:"Tímto přidáte výše vybraný soubor.",line2:"Prosím potvrďte."},image:{title:"Přidat tento obrázek?",change:"Zrušit"},crop:{title:"Oříznout a přidat tento obrázek",done:"Hotovo",free:"zdarma"},error:{default:{title:"Jejda!",text:"Něco se v průběhu nahrávání nepodařilo.",back:"Zkuste to prosím znovu."},image:{title:"Lze nahrávat pouze obrázky.",text:"Zkuste to prosím s jiným souborem.",back:"Vyberte obrázek"},size:{title:"Soubor přesahuje povolenou velikost.",text:"Prosím zkuste to s jiným souborem."},loadImage:{title:"Chyba",text:"Nelze nahrát obrázek"}},multiple:{title:"Bylo vybráno %files% souborů",question:"Chcete přidat všechny tyto soubory?",tooManyFiles:"Bylo vybráno moc souborů. Maximum je %max%",tooFewFiles:"Bylo vybráno %files% souborů. Musíte vybrat minimálně %min%",clear:"Odstranit vše",done:"Hotovo"}}}}}}),a.namespace("locale.pluralize",function(e){return e.cs=function(e){return 1===e?"one":e>=2&&4>=e?"few":"many"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.da={uploading:"Uploader... Vent venligst.",loadingInfo:"Henter information...",errors:{default:"Fejl",baddata:"Forkert værdi",size:"Filen er for stor",upload:"Kan ikke uploade / sende fil",user:"Upload fortrudt",info:"Kan ikke hente information",image:"Kun billeder er tilladt",createGroup:"Kan ikke oprette fil gruppe",deleted:"Filen blev slettet"},draghere:"Drop en fil her",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Annuller",remove:"Fjern",choose:{files:{one:"Vælg en fil",other:"Vælg filer"},images:{one:"Vælg et billede",other:"Vælg billeder"}}},dialog:{done:"Færdig",showFiles:"Vis filer",tabs:{names:{preview:"Vis",file:"Computer",gdrive:"Google Drev",url:"Direkte link"},file:{drag:"Drop en fil her",nodrop:"Hent filer fra din computer",or:"eller",button:"Hent fil fra din computer",also:"Du kan også hente fra"},url:{title:"Filer fra en Web adresse",line1:"Vælg en fil fra en web adresse.",line2:"Skriv bare linket til filen.",input:"Indsæt link her...",button:"Upload / Send"},preview:{unknownName:"ukendt",change:"Annuller",back:"Tilbage",done:"Fortsæt",unknown:{title:"Uploader / sender... Vent for at se mere.",done:"Fortsæt uden at vente på resultat"},regular:{title:"Tilføje fil?",line1:"Du er ved at tilføje filen ovenfor.",line2:"Venligst accepter."},image:{title:"Tilføj billede?",change:"Annuller"},crop:{title:"Beskær og tilføj dette billede",done:"Udfør"},error:{default:{title:"Hov!",text:"Noget gik galt under upload.",back:"Venligst prøv igen"},image:{title:"Du kan kun vælge billeder.",text:"Prøv igen med en billedfil.",back:"Vælg billede"},size:{title:"Den fil du valgte, er desværre større end tilladt.",text:"Venligst prøv med en mindre fil."},loadImage:{title:"Fejl",text:"Kan ikke åbne billede"}},multiple:{title:"Du har valgt %files% filer",question:"Vil du tilføje alle disse filer?",tooManyFiles:"Du har valgt for mange filer. %max% er maximum.",tooFewFiles:"Du har valgt %files% filer. Men du skal vælge mindst %min%.",clear:"Fjern alle",done:"Fortsæt"}}}}}}),a.namespace("locale.pluralize",function(e){return e.da=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.de={uploading:"Hochladen... Bitte warten.",loadingInfo:"Laden der Informationen...",errors:{default:"Error",baddata:"Falscher Wert",size:"Datei zu groß",upload:"Kann nicht hochgeladen werden",user:"Hochladen abgebrochen",info:"Informationen können nicht geladen werden",image:"Nur Bilder sind erlaubt",createGroup:"Datei-Gruppe kann nicht erstellt werden",deleted:"Datei wurde gelöscht"},draghere:"Ziehen Sie eine Datei hier hinein",file:{one:"%1 Datei",other:"%1 Dateien"},buttons:{cancel:"Abbrechen",remove:"Löschen",choose:{files:{one:"Wählen Sie eine Datei",other:"Wählen Sie die Dateien"},images:{one:"Wählen Sie ein Bild",other:"Wählen Sie Bilder"}}},dialog:{done:"Fertig",showFiles:"Dateien anzeigen",tabs:{names:{"empty-pubkey":"Willkommen",preview:"Vorschau",file:"Lokale Dateien",url:"Web-Links",camera:"Kamera"},file:{drag:"Ziehen Sie eine Datei hier hinein",nodrop:"Laden Sie Dateien von Ihrem PC hoch",cloudsTip:"Cloud Speicher<br>und soziale Dienste",or:"oder",button:"Wählen Sie eine lokale Datei",also:"Sie können sie auch wählen von"},url:{title:"Dateien vom Web",line1:"Holen Sie sich irgendeine Datei vom Web.",line2:"Geben Sie einfach den Link an.",input:"Bitte geben Sie den Link hier an...",button:"Hochladen"},camera:{capture:"Machen Sie ein Foto",mirror:"Spiegel",retry:"Berechtigungen erneut anfordern",pleaseAllow:{title:"Bitte erlauben Sie den Zugriff auf Ihre Kamera",text:"Sie wurden gebeten, dieser Website den Zugriff auf Ihre Kamera zu erlauben. Um mit Ihrer Kamera Fotos machen zu können, müssen Sie diese Erlaubnis erteilen."},notFound:{title:"Keine Kamera festgestellt",text:"Es sieht so aus, als hätten Sie keine Kamera an dieses Gerät angeschlossen."}},preview:{unknownName:"nicht bekannt",change:"Abbrechen",back:"Zurück",done:"Hinzufügen",unknown:{title:"Hochladen... Bitte warten Sie auf die Vorschau.",done:"Vorschau überspringen und Datei annehmen"},regular:{title:"Diese Datei hinzufügen?",line1:"Diese Datei wird nun hinzugefügt.",line2:"Bitte bestätigen Sie."},image:{title:"Dieses Bild hinzufügen?",change:"Abbrechen"},crop:{title:"Dieses Bild beschneiden und hinzufügen",done:"Fertig",free:"frei"},error:{default:{title:"Oops!",text:"Etwas ist während dem Hochladen schief gelaufen.",back:"Bitte versuchen Sie es erneut"},image:{title:"Nur Bilder sind akzeptiert.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei.",back:"Bild wählen"},size:{title:"Die gewählte Datei überschreitet das Limit.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei."},loadImage:{title:"Fehler",text:"Das Bild kann nicht geladen werden"}},multiple:{title:"Sie haben %files% Dateien gewählt",question:"Möchten Sie all diese Datein hinzufügen?",tooManyFiles:"Sie haben zu viele Dateien gewählt. %max% ist das Maximum.",tooFewFiles:"Sie haben %files% Dateien. Es sind mindestens %min% nötig.",clear:"Alle löschen",done:"Fertig"}}}}}}),a.namespace("locale.pluralize",function(e){return e.de=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.es={uploading:"Subiendo... Por favor espere.",loadingInfo:"Cargando información...",errors:{default:"Error",baddata:"Valor incorrecto",size:"Archivo demasiado grande",upload:"No se puede subir",user:"Subida cancelada",info:"No se puede cargar la información",image:"Solo se permiten imágenes",createGroup:"No se puede crear el grupo de archivos",deleted:"El archivo fue eliminado"},draghere:"Arrastra un archivo aquí",file:{one:"%1 archivo",other:"%1 archivos"},buttons:{cancel:"Cancelar",remove:"Eliminar",choose:{files:{one:"Escoge un archivo",other:"Escoge archivos"},images:{one:"Escoge una imagen",other:"Escoge imágenes"}}},dialog:{done:"Hecho",showFiles:"Mostrar archivos",tabs:{names:{"empty-pubkey":"Bienvenido",preview:"Previsualización",file:"Archivos locales",url:"Enlaces arbitrarios",camera:"Cámara"},file:{drag:"Arrastra un archivo aquí",nodrop:"Sube fotos desde tu ordenador",cloudsTip:"Almacenamiento en la nube<br>y redes sociales",or:"o",button:"Elige un archivo de tu ordenador",also:"Tambien puedes seleccionarlo de"},url:{title:"Archivos de la Web",line1:"Coge cualquier archivo de la web.",line2:"Solo danos el link.",input:"Pega tu link aquí...",button:"Subir"},camera:{capture:"Hacer una foto",mirror:"Espejo",retry:"Solicitar permisos de nuevo",pleaseAllow:{title:"Por favor, permite el acceso a tu cámara",text:"Este sitio ha pedido permiso para acceder a la cámara. Para tomar imágenes con tu cámara debes aceptar esta petición."},notFound:{title:"No se ha detectado ninguna cámara",text:"Parece que no tienes ninguna cámara conectada a este dispositivo."}},preview:{unknownName:"desconocido",change:"Cancelar",back:"Atrás",done:"Añadir",unknown:{title:"Subiendo. Por favor espera para una vista previa.",done:"Saltar vista previa y aceptar"},regular:{title:"¿Quieres subir este archivo?",line1:"Estás a punto de subir el archivo de arriba.",line2:"Confírmalo por favor."},image:{title:"¿Quieres subir esta imagen?",change:"Cancelar"},crop:{title:"Cortar y añadir esta imagen",done:"Listo",free:"libre"},error:{default:{title:"Ups!",text:"Algo salió mal durante la subida.",back:"Por favor, inténtalo de nuevo."},image:{title:"Solo se aceptan archivos de imagen.",text:"Por favor, inténtalo de nuevo con otro archivo.",back:"Escoger imagen"},size:{title:"El archivo que has seleccinado excede el límite.",text:"Por favor, inténtalo de nuevo con otro archivo."},loadImage:{title:"Error",text:"No puede cargar la imagen"}},multiple:{title:"Has escogido %files%",question:"¿Quieres añadir todos estos archivos?",tooManyFiles:"Has escogido demasiados archivos. %max% es el máximo.",tooFewFiles:"Has escogido %files%. Hacen falta al menos %min%.",clear:"Eliminar todo",done:"Hecho"}}}}}}),a.namespace("locale.pluralize",function(e){return e.es=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.et={uploading:"Üleslaadimine… Palun oota.",loadingInfo:"Info laadimine...",errors:{default:"Viga",baddata:"Incorrect value",size:"Fail on liiga suur",upload:"Ei saa üles laadida",user:"Üleslaadimine tühistatud",info:"Ei saa infot laadida",image:"Ainult pildid lubatud",createGroup:"Ei saa luua failigruppi",deleted:"Fail on kustutatud"},draghere:"Tiri fail siia",file:{one:"%1 fail",other:"%1 failid"},buttons:{cancel:"Tühista",remove:"Kustuta",choose:{files:{one:"Vali fail",other:"Vali failid"},images:{one:"Vali pilt",other:"Vali pildid"}}},dialog:{done:"Valmis",showFiles:"Näita faile",tabs:{names:{"empty-pubkey":"Tere",preview:"Eelvaade",file:"Failid Kõvakettalt",url:"Veebilink",camera:"Kaamera"},file:{drag:"Tiri failid siia",nodrop:"Lae failid arvutist",cloudsTip:"Pilv<br>ja sotsiaalmeedia",or:"või",button:"Vali fail kõvakettalt",also:"Saad samuti valida"},url:{title:"Failid veebist",line1:"Ükskõik mis fail otse veebist.",line2:"Lihtsalt sisesta URL.",input:"Kleebi link siia...",button:"Lae üles"},camera:{capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site. In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"teadmata",change:"Tühista",back:"Tagasi",done:"Lisa",unknown:{title:"Üleslaadimine... Palun oota eelvaadet.",done:"Jäta eelvaade vahele ja nõustu"},regular:{title:"Lisa see fail?",line1:"Oled lisamas ülaltoodud faili.",line2:"Palun kinnita."},image:{title:"Lisa pilt?",change:"Tühista"},crop:{title:"Lõika ja lisa pilt",done:"Valmis",free:"vaba"},video:{title:"Lisa video?",change:"Tühista"},error:{default:{title:"Oihh!",text:"Midagi läks üleslaadimisel valesti.",back:"Palun proovi uuesti"},image:{title:"Ainult pildifailid on lubatud.",text:"Palun proovi uuesti teise failiga.",back:"Vali pilt"},size:{title:"Valitud fail ületab maksimaalse suuruse.",text:"Palun proovi uuesti teise failiga."},loadImage:{title:"Viga",text:"Ei saa pilti laadida"}},multiple:{title:"Oled valinud %files%",question:"Kas sa soovid lisada kõik failid?",tooManyFiles:"Oled valinud liiga suure hulga faile. %max% on maksimaalne.",tooFewFiles:"Oled valinud %files%. Vähemalt %min% nõutud.",clear:"Eemalda kõik",done:"Valmis"}}}}}}),a.namespace("locale.pluralize",function(e){return e.et=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.fr={uploading:"Envoi en cours... Merci de patienter.",loadingInfo:"Chargement des informations...",errors:{default:"Erreur",baddata:"Valeur incorrecte",size:"Fichier trop volumineux",upload:"Envoi impossible",user:"Envoi annulé",info:"Impossible de charger les informations",image:"Seules les images sont autorisées",createGroup:"Création d'1 groupe impossible",deleted:"Le fichier a été supprimé"},draghere:"Glissez-déposez un fichier ici",file:{one:"%1 fichier",other:"%1 fichiers"},buttons:{cancel:"Annuler",remove:"Supprimer",choose:{files:{one:"Sélectionner un fichier",other:"Sélectionner des fichiers"},images:{one:"Sélectionner une image",other:"Sélectionner des images"}}},dialog:{close:"Fermer",openMenu:"Ouvrir le menu",done:"Terminer",showFiles:"Voir les fichiers",tabs:{names:{"empty-pubkey":"Bienvenue",preview:"Avant-première",file:"Fichier en local",url:"Une adresse web",camera:"Caméra",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",skydrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Glissez-déposez un fichier ici",nodrop:"Envoyez des fichiers depuis votre ordinateur",cloudsTip:"Stockage sur le cloud<br>et réseaux sociaux",or:"ou",button:"Choisir un fichier local",also:"Vous pouvez également le sélectionner depuis"},url:{title:"Fichiers depuis le Web",line1:"Prenez n'importe quel fichier depuis un site web.",line2:"Saisissez simplement son adresse.",input:"Collez le lien ici...",button:"Envoi"},camera:{title:"Fichier depuis la caméra",capture:"Prendre une photo",mirror:"Miroir",startRecord:"Enregistrer une vidéo",stopRecord:"Arrêter",cancelRecord:"Annuler",retry:"Envoyer une nouvelle demande de permission",pleaseAllow:{title:"Autorisez l'accès à votre appareil photo",text:"Vous avez été invité à autoriser l'accès à votre appareil photo. Pour prendre des photos avec votre caméra vous devez approuver cette demande."},notFound:{title:"Aucun appareil photo détecté",text:"Il semblerait que vous n'ayez pas d'appareil photo connecté à cet appareil."}},preview:{unknownName:"inconnu",change:"Annuler",back:"Retour",done:"Ajouter",unknown:{title:"Envoi en cours... Merci de patienter pour prévisualiser.",done:"Passer la prévisualisation et accepter"},regular:{title:"Ajouter ce fichier ?",line1:"Vous êtes sur le point d'ajouter le fichier ci-dessus.",line2:"Merci de confirmer."},image:{title:"Ajouter cette image ?",change:"Annuler"},crop:{title:"Recadrer et ajouter cette image",done:"Terminer",free:"libre"},video:{title:"Ajouter cette vidéo ?",change:"Annuler"},error:{default:{title:"Oups!",text:"Quelque chose n'a pas fonctionné pendant l'envoi.",back:"Merci de bien vouloir recommencer"},image:{title:"Seules les images sont acceptées.",text:"Merci de bien vouloir recommencer avec un autre fichier.",back:"Choisir une image"},size:{title:"Le fichier sélectionné est trop volumineux.",text:"Merci de bien vouloir recommencer avec un autre fichier."},loadImage:{title:"Erreur",text:"Impossible de charger l'image"}},multiple:{title:"Vous avez choisi %files%",question:"Voulez vous ajouter tous ces fichiers ?",tooManyFiles:"Vous avez choisi trop de fichiers. %max% est le maximum.",tooFewFiles:"Vous avez choisi %fichiers%. %min% est le minimum.",clear:"Tout retirer",done:"Terminer",file:{preview:"Prévisualiser %file%",remove:"Supprimer %file%"}}}}}}}),a.namespace("locale.pluralize",function(e){return e.fr=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.he={uploading:"טוען... אנא המתן.",loadingInfo:"טוען מידע...",errors:{default:"שגיאה",baddata:"ערך שגוי",size:"קובץ גדול מידי",upload:"לא ניתן להעלות",user:"העלאה בוטלה",info:"לא ניתן לטעון מידע",image:"ניתן להעלות רק תמונות",createGroup:"לא ניתן ליצור קבוצה",deleted:"הקובץ נמחק"},draghere:"שחרר כאן קובץ",file:{one:"קובץ %1",other:"%1 קבצים"},buttons:{cancel:"ביטול",remove:"הסר",choose:{files:{one:"בחר קובץ",other:"בחר קבצים"},images:{one:"בחר תמונה",other:"בחר תמונות"}}},dialog:{done:"סיום",showFiles:"הצג קבצים",tabs:{names:{facebook:"פייסבוק",dropbox:"דרופבוקס",gdrive:"כונן גוגל",instagram:"אינסטגרם",url:"לינק מהאינטרנט"},file:{drag:"שחרר כאן קובץ",nodrop:"העלה קבצים מהמחשב",or:"או",button:"בחר קובץ מהמחשב",also:"ניתן לבחור גם מ"},url:{title:"קובץ מהאינטרנט",line1:"גרור קובץ מהאינטרנט",line2:"ספק את כתובת הקובץ",input:"הדבק את כתובת הקובץ...",button:"העלה"},preview:{unknownName:"לא ידוע",change:"ביטול",back:"חזרה",done:"הוסף",unknown:{title:"מעלה... נא המתן לתצוגה מקדימה.",done:"דלג על תצוגה מקדימה"},regular:{title:"להוסיף קובץ זה?",line1:"קובץ זה יועלה",line2:"נא אשר."},image:{title:"להוסיף תמונה זו?",change:"ביטול"},crop:{title:"חתוך והוסף תמונה זו",done:"סיום"},error:{default:{title:"אופס!",text:"משהו השתבש בזמן ההעלאה.",back:"נא נסה שוב"},image:{title:"ניתן לקבל רק קבצי תמונות.",text:"נא נסה שוב עם קובץ אחר.",back:"בחר תמונה"},size:{title:"הקובץ שבחרת חורג מהגבול.",text:"נא נסה שוב עם קובץ אחר."},loadImage:{title:"שגיאה",text:"טעינת התמונה נכשלה"}},multiple:{title:"בחרת %files%",question:"אתה מעוניין להוסיף את כל הקבצים האלו?",tooManyFiles:"בחרת יותר מידי קבצים. יש לבחור מקסימום %max% קבצים.",tooFewFiles:"בחרת %files%. יש לבחור לפחות %min%.",clear:"הסר הכל",done:"סיום"}}}}}}),a.namespace("locale.pluralize",function(e){return e.he=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.it={uploading:"Caricamento in corso... Si prega di attendere.",loadingInfo:"Caricamento informazioni in corso...",errors:{default:"Errore",baddata:"Valore errato",size:"Il file è troppo grande",upload:"Impossibile fare l’upload",user:"Upload cancellato",info:"Impossibile caricare le informazioni",image:"Sono ammesse solo immagini",createGroup:"Impossibile creare gruppo di file",deleted:"Il file è stato eliminato"},draghere:"Trascina un file qui",file:{one:"file %1",other:"file %1"},buttons:{cancel:"Cancella",remove:"Rimuovi",choose:{files:{one:"Seleziona un file",other:"Seleziona file"},images:{one:"Seleziona un’immagine",other:"Seleziona immagini"}}},dialog:{done:"Fatto",showFiles:"Mostra file",tabs:{names:{"empty-pubkey":"Benvenuto",preview:"Anteprima",file:"File locali",url:"Link arbitrari",camera:"Fotocamera"},file:{drag:"Trascina un file qui",nodrop:"Carica file dal tuo computer",cloudsTip:"Salvataggi nel cloud<br>e servizi sociali",or:"o",button:"Seleziona un file locale",also:"Puoi anche scegliere da"},url:{title:"File dal web",line1:"Preleva un file dal web.",line2:"È sufficiente fornire il link.",input:"Incolla il tuo link qui...",button:"Carica"},camera:{capture:"Scatta una foto",mirror:"Specchio",retry:"Richiedi di nuovo le autorizzazioni",pleaseAllow:{title:"Consenti l’accesso alla tua fotocamera",text:"Ti è stato richiesto di consentire l’accesso alla fotocamera da questo sito. Per scattare le foto con la tua fotocamera devi accettare questa richiesta."},notFound:{title:"Nessuna fotocamera rilevata",text:"Non risulta che tu non abbia una fotocamera collegata a questo dispositivo."}},preview:{unknownName:"sconosciuto",change:"Cancella",back:"Indietro",done:"Aggiungi",unknown:{title:"Caricamento in corso... Attendi l’anteprima.",done:"Salta l’anteprima e accetta"},regular:{title:"Vuoi aggiungere questo file?",line1:"Stai per aggiungere il file sopra.",line2:"Conferma."},image:{title:"Vuoi aggiungere questa immagine?",change:"Cancella"},crop:{title:"Ritaglia e aggiungi questa immagine",done:"Fatto",free:"gratis"},error:{default:{title:"Ops!",text:"Si è verificato un problema durante l’upload.",back:"Si prega di riprovare"},image:{title:"Sono accettati solo file immagine.",text:"Riprova con un altro file.",back:"Scegli immagine"},size:{title:"Il file selezionato supera il limite.",text:"Riprova con un altro file."},loadImage:{title:"Errore",text:"Impossibile caricare l’immagine"}},multiple:{title:"Hai selezionato %files%",question:"Vuoi aggiungere tutti questi file?",tooManyFiles:"Hai selezionato troppi file. %max% è il massimo.",tooFewFiles:"Hai selezionato %files%. È richiesto almeno %min%.",clear:"Rimuovi tutto",done:"Fatto"}}}}}}),a.namespace("locale.pluralize",function(e){return e.it=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.ja={uploading:"アップロードしています… 完了までお待ち下さい。",loadingInfo:"読み込み中…",errors:{default:"エラー",baddata:"間違った値",size:"ファイルが大きすぎます",upload:"アップロードできませんでした",user:"アップロードがキャンセルされました",info:"読み込みに失敗しました",image:"アップロードできるのは画像ファイルのみです",createGroup:"グループの作成に失敗しました",deleted:"削除されたファイルです"},draghere:"ここにファイルをドロップ",file:{other:"%1ファイル"},buttons:{cancel:"キャンセル",remove:"削除",choose:{files:{one:"ファイルを選択",other:"ファイルを選択"},images:{one:"画像を選択",other:"画像を選択"}}},dialog:{done:"完了",showFiles:"ファイルを表示",tabs:{names:{preview:"プレビュー",file:"ローカルファイル",url:"URLを直接入力"},file:{drag:"ここにファイルをドロップ",nodrop:"ファイルを選択してアップロード",cloudsTip:"クラウドストレージ<br>およびソーシャルサービス",or:"もしくは",button:"ローカルのファイルを選択",also:"次からも選択可能です:"},url:{title:"ウェブ上のファイル",line1:"ウェブ上からファイルを取得します。",line2:"URLを入力してください。",input:"ここにURLを貼り付けしてください…",button:"アップロード"},preview:{unknownName:"不明なファイル",change:"キャンセル",back:"戻る",done:"追加",unknown:{title:"アップロードしています… プレビューの表示をお待ちください。",done:"プレビューの確認をスキップして完了"},regular:{title:"このファイルを追加しますか?",line1:"こちらのファイルを追加しようとしています。",line2:"確認してください。"},image:{title:"この画像を追加しますか?",change:"キャンセル"},crop:{title:"画像の切り取りと追加",done:"完了",free:"リセット"},error:{default:{title:"失敗しました",text:"アップロード中に不明なエラーが発生しました。",back:"もう一度お試し下さい"},image:{title:"画像ファイルのみ許可されています",text:"他のファイルで再度お試し下さい。",back:"画像を選択"},size:{title:"ファイルサイズが大きすぎます。",text:"他のファイルで再度お試し下さい。"},loadImage:{title:"エラー",text:"画像のロードに失敗しました。"}},multiple:{title:"%files%つのファイルを選択中",question:"これら全てのファイルを追加しますか?",tooManyFiles:"選択ファイルが多すぎます。%max%つ以下にしてください。",tooFewFiles:"選択ファイルが少なすぎます。%files%つ選択中です。少なくとも%min%つ選択してください。",clear:"全て削除",done:"完了"}}}}}}),a.namespace("locale.pluralize",function(e){return e.ja=function(e){return"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.ko={uploading:"업로드중 기다려주세요",loadingInfo:"정보 로드중...",errors:{default:"오류",baddata:"잘못된 값",size:"파일용량 초과",upload:"업로드 실패",user:"업로드 취소됨",info:"정보를 불러올 수 없습니다",image:"허용된 이미지만 가능",createGroup:"파일 그룹 만들기 실패",deleted:"파일이 삭제되었습니다"},draghere:"여기에 끌어다 놓기",file:{one:"%1 파일",other:"%1 파일"},buttons:{cancel:"취소",remove:"삭제",choose:{files:{one:"파일 첨부",other:"파일 첨부"},images:{one:"이미지 첨부",other:"이미지 첨부"}}},dialog:{close:"닫기",openMenu:"메뉴 열기",done:"완료",showFiles:"파일 표시",tabs:{names:{"empty-pubkey":"반갑습니다",preview:"미리보기",file:"파일 첨부",url:"링크 연결",camera:"카메라",facebook:"페이스북",dropbox:"드롭박스",gdrive:"구글 드라이브",gphotos:"구글 포토",instagram:"인스타그램",evernote:"에버노트",box:"박스",skydrive:"스카이드라이브",flickr:"플리커"},file:{drag:"모든 파일을<br>드래그 & 드롭",nodrop:"파일 업로드",cloudsTip:"클라우드 스토리지 및 소셜",or:"또는",button:"파일 선택",also:"또는 선택하십시오"},url:{title:"웹에서 파일 링크 연결",line1:"웹에서 모든파일을 가져옵니다",line2:"링크만 연결합니다.",input:"링크 붙여 넣기...",button:"업로드"},camera:{title:"카메라 연결",capture:"사진 찍기",mirror:"거울",startRecord:"비디오 녹화",stopRecord:"정지",cancelRecord:"취소",retry:"재 시도",pleaseAllow:{title:"카메라 접근 허용",text:"카메라 접근을 허용하시겠습니까?<br>승인 요청을 해주셔야 합니다"},notFound:{title:"카메라가 없습니다",text:"이 기기에 연결된 카메라가 없습니다"}},preview:{unknownName:"알수없음",change:"취소",back:"뒤로",done:"추가",unknown:{title:"업로드중, 기다려주세요",done:"미리보기 건너뛰기"},regular:{title:"이 파일을 추가하시겠습니까?",line1:"위 파일을 추가하려고 합니다",line2:"확인 하십시오"},image:{title:"이미지를 추가하시겠습니까?",change:"취소"},crop:{title:"이미지 자르기 및 추가",done:"완료",free:"무료"},video:{title:"비디오를 추가하시겠습니까?",change:"취소"},error:{default:{title:"죄송합니다",text:"업로드에 문제가 있습니다",back:"다시 시도해 주세요"},image:{title:"이미지 파일만 허용됩니다",text:"다른 파일로 다시 시도하세요",back:"이미지 선택"},size:{title:"선택한 파일이 한도 초과하였습니다",text:"다른 파일로 다시 시도하세요"},loadImage:{title:"오류",text:"이미지를 불러올 수 없습니다"}},multiple:{title:"%files%을(를) 선택하였습니다",question:"%files%을 추가하시겠습니까?",tooManyFiles:"너무 많은 파일을 추가하셨습니다. %max%가 최대 한도입니다",tooFewFiles:"%files%을(를) 선택하였습니다 최소 %min%이상 필요합니다",clear:"모두 삭제",done:"추가",file:{preview:"%file% 미리보기",remove:"%file% 삭제"}}}},footer:{text:"powered by",link:"uploadcare"}}}}),a.namespace("locale.pluralize",function(e){return e.ko=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.lv={uploading:"Augšupielādē... Lūdzu, gaidiet.",errors:{default:"Kļūda",image:"Atļauti tikai attēli"},draghere:"Velciet failus šeit",file:{zero:"%1 failu",one:"%1 fails",other:"%1 faili"},buttons:{cancel:"Atcelt",remove:"Dzēst"},dialog:{title:"Ielādēt jebko no jebkurienes",poweredby:"Darbināts ar",support:{images:"Attēli",audio:"Audio",video:"Video",documents:"Dokumenti"},tabs:{file:{title:"Mans dators",line1:"Paņemiet jebkuru failu no jūsu datora.",line2:"Izvēlēties ar dialogu vai ievelciet iekšā.",button:"Meklēt failus"},url:{title:"Faili no tīmekļa",line1:"Paņemiet jebkuru failu no tīmekļa.",line2:"Tikai uzrādiet linku.",input:"Ielīmējiet linku šeit...",button:"Ielādēt"}}}}}),a.namespace("locale.pluralize",function(e){return e.lv=function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.nb={uploading:"Laster opp... Vennligst vent.",loadingInfo:"Laster inn info...",errors:{default:"Feil",baddata:"Ugyldig verdi",size:"Filen er for stor",upload:"Kan ikke laste opp",user:"Opplasting avbrutt",info:"Kan ikke laste inn info",image:"Kun bilder er tillatt",createGroup:"Kan ikke opprette filgruppe",deleted:"Filen er slettet"},draghere:"Dra en fil hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Fjern",choose:{files:{one:"Velg en fil",other:"Velg filer"},images:{one:"Velg et bilde",other:"Velg bilder"}}},dialog:{done:"Ferdig",showFiles:"Vis filer",tabs:{names:{preview:"Forhåndsvising",file:"Lokale filer",url:"Direktelink"},file:{drag:"Dra og slipp en fil her",nodrop:"Last opp filer fra datamaskinen",cloudsTip:"Skylagring<br>og sosiale tjenester",or:"eller",button:"Velg en lokal fil",also:"Du kan også velge det fra"},url:{title:"Filer fra internett",line1:"Velg hvilken som helst fil fra internett.",line2:"Bare gi oss linken.",input:"Lim inn linken her...",button:"Last opp"},preview:{unknownName:"ukjent",change:"Avbryt",back:"Tilbake",done:"Legg til",unknown:{title:"Laster opp... Vennligst vent på forhåndsvisning.",done:"Hopp over forhåndsvisning og godkjenn"},regular:{title:"Legge til denne filen?",line1:"Filen legges nå til.",line2:"Vennligst bekreft."},image:{title:"Legge til dette bildet?",change:"Avbryt"},crop:{title:"Kutt og legg til dette bildet",done:"Ferdig",free:"frigjør"},error:{default:{title:"Ops!",text:"Noe gikk galt under opplastingen.",back:"Vennligst prøv igjen"},image:{title:"Kun bilder er akseptert.",text:"Prøv igjen med en annen fil.",back:"Velg bilde"},size:{title:"Den valgte filen overskrider tilatt størrelse.",text:"Vennligst prøv igjen med en annen fil."},loadImage:{title:"Feil",text:"Kan ikke laste bildet"}},multiple:{title:"Du har valgt %files%",question:"Ønsker du å legge til alle filene?",tooManyFiles:"Du har valgt for mange filer. %max% er maksimum.",tooFewFiles:"Du har valgt %files%. Minimum %min% er påkrevd.",clear:"Fjern alle",done:"Ferdig"}}}}}}),a.namespace("locale.pluralize",function(e){return e.nb=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.nl={uploading:"Uploaden... Even geduld.",loadingInfo:"Laden informatie...",errors:{default:"Fout",baddata:"Ongeldige waarde",size:"Bestand is te groot",upload:"Kan niet uploaden",user:"Upload geannulleerd",info:"Kan informatie niet laden",image:"Alleen afbeeldingen toegestaan",createGroup:"Kan bestandsgroep niet maken",deleted:"Bestand is verwijderd"},draghere:"Drop hier een bestand",file:{one:"%1 bestand",other:"%1 bestanden"},buttons:{cancel:"Annuleren",remove:"Verwijderen",choose:{files:{one:"Kies een bestand",other:"Kies bestanden"},images:{one:"Kies een afbeelding",other:"Kies afbeeldingen"}}},dialog:{done:"Klaar",showFiles:"Toon bestanden",tabs:{names:{preview:"Voorvertoning",file:"Computer",url:"Directe links"},file:{drag:"Drop hier een bestand",nodrop:"Upload bestanden van je computer",or:"of",button:"Selecteer een bestand van je computer",also:"Je kan ook selecteren van"},url:{title:"Bestanden van het web",line1:"Selecteer een bestand van het web.",line2:"Voer de link in.",input:"Plak de link hier...",button:"Upload"},preview:{unknownName:"onbekend",change:"Annuleren",back:"Terug",done:"Toevoegen",unknown:{title:"Uploaden... Wacht op de voorvertoning.",done:"Voorvertoning overslaan an accepteren"},regular:{title:"Dit bestand toevoegen?",line1:"Je staat op het punt bovenstaand bestand toe te voegen.",line2:"Bevestig."},image:{title:"Voeg deze afbeelding toe?",change:"Annuleren"},crop:{title:"Afbeelding bijknippen en toevoegen",done:"Klaar"},error:{default:{title:"Oeps!",text:"Er is een fout opgetreden tijdens het uploaden.",back:"Probeer het nog eens"},image:{title:"Alleen afbeeldingen worden geaccepteerd.",text:"Probeer het nog eens met een andere bestand.",back:"Selecteer afbeelding"},size:{title:"Het geselecteerd bestand is groter dan de limiet.",text:"Probeer het nog eens met een andere bestand."},loadImage:{title:"Fout",text:"Kan afbeelding niet laden"}},multiple:{title:"Je hebt de volgende bestanden geselecteerd %files%",question:"Wil je al deze bestanden toevoegen?",tooManyFiles:"Je hebt teveel bestanden geselecteerd. %max% is het maximum.",tooFewFiles:"Je hebt de volgende bestanden geselecteerd %files%. Minimaal %min% is verplicht.",clear:"Verwijder alle bestanden",done:"Klaar"}}}}}}),a.namespace("locale.pluralize",function(e){return e.nl=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.pl={uploading:"Przesyłanie... Proszę czekać.",loadingInfo:"Ładowanie...",errors:{default:"Błąd",baddata:"Niepoprawna wartość",size:"Plik zbyt duży",upload:"Nie udało się przesłać",user:"Przesyłanie anulowane",info:"Nie udało się załadować informacji",image:"Dozwolone są tylko obrazy",createGroup:"Nie udało się utworzyć grupy plików",deleted:"Plik został usunięty"},draghere:"Upuść plik tutaj",file:{one:"%1 plik",few:"%1 pliki",many:"%1 plików"},buttons:{cancel:"Anuluj",remove:"Usuń",choose:{files:{one:"Wybierz plik",other:"Wybierz pliki"},images:{one:"Wybierz obraz",other:"Wybierz obrazy"}}},dialog:{close:"Zamknij",openMenu:"Otwórz menu",done:"Wykonano",showFiles:"Pokaż pliki",tabs:{names:{"empty-pubkey":"Witaj",preview:"Podgląd",file:"Pliki lokalne",url:"Plik z Sieci",camera:"Aparat"},file:{drag:"Upuść plik tutaj",nodrop:"Prześlij pliki z Twojego komputera",cloudsTip:"Dane w chmurze<br>i sieci społecznościowe",or:"lub",button:"Wybierz plik lokalny",also:"Możesz również wybrać z"},url:{title:"Pliki z Sieci",line1:"Złap jakikolwiej plik z sieci.",line2:"Podaj adres.",input:"Wklej link...",button:"Prześlij"},camera:{title:"Plik z kamery internetowej",capture:"Zrób zdjęcie",mirror:"Odbicie lustrzane",startRecord:"Nagraj film",stopRecord:"Zakończ",cancelRecord:"Anuluj",retry:"Poproś ponownie o dostęp",pleaseAllow:{title:"Prośba o udostępnienie aparatu",text:"Zostałeś poproszony przez tę stronę o dostęp do aparatu. Aby robić zdjecia, musisz zaakceptować tę prośbę."},notFound:{title:"Nie wykryto aparatu.",text:"Wygląda na to, że nie masz podłączonego aparatu do tego urządzenia."}},preview:{unknownName:"nieznany",change:"Anuluj",back:"Wstecz",done:"Dodaj",unknown:{title:"Przesyłanie... Proszę czekać na podgląd.",done:"Omiń podgląd i zaakceptuj."},regular:{title:"Dodać ten plik?",line1:"Zamierzasz dodać nowy plik.",line2:"Potwierdź, proszę."},image:{title:"Dodać ten obraz?",change:"Anuluj"},crop:{title:"Przytnij i dodaj ten obraz",done:"Wykonano",free:"wolny"},video:{title:"Dodać ten film?",change:"Anuluj"},error:{default:{title:"Oops!",text:"Coś poszło nie tak podczas przesyłania.",back:"Spróbuj ponownie"},image:{title:"Akceptowane są tylko obrazy.",text:"Spróbuj ponownie z innym plikiem.",back:"Wybierz obraz"},size:{title:"Plik, który wybrałeś, przekracza dopuszczalny rozmiar",text:"Spróbuj ponownie z innym plikiem."},loadImage:{title:"Błąd",text:"Nie udało się załadować obrazu"}},multiple:{title:"Wybrałeś %files%",question:"Czy chcesz dodać wszystkie te pliki?",tooManyFiles:"Wybrałeś zbyt wiele plików. Maksimum to %max%.",tooFewFiles:"Wybrałeś %files%. Wymagane jest co najmniej %min%.",clear:"Usuń wszystkie",done:"Wykonano",file:{preview:"Zobacz %file%",remove:"Usuń %file%"}}}}}}}),a.namespace("locale.pluralize",function(e){return e.pl=function(e){var t;return 1===e?"one":2<=(t=e%10)&&4>=t&&1!=(e/10%10|0)?"few":"many"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.pt={uploading:"Fazendo upload... Aguarde.",loadingInfo:"Carregando informações...",errors:{default:"Erro",baddata:"Valor incorreto",size:"Arquivo muito grande",upload:"Não foi possível fazer o upload",user:"Upload cancelado",info:"Não foi possível carregar as informações",image:"Apenas imagens são permitidas",createGroup:"Não foi possível criar o grupo de arquivos",deleted:"O arquivo foi excluído"},draghere:"Arraste um arquivo aqui",file:{one:"%1 arquivo",other:"%1 arquivos"},buttons:{cancel:"Cancelar",remove:"Excluir",choose:{files:{one:"Escolha um arquivo",other:"Escolha arquivos"},images:{one:"Escolha uma imagem",other:"Escolha imagens"}}},dialog:{done:"OK",showFiles:"Mostrar arquivos",tabs:{names:{preview:"Pré-estréia",file:"Computador",url:"Link da web"},file:{drag:"Arraste um arquivo aqui",nodrop:"Faça upload de arquivos do seu computador",or:"ou",button:"Escolha um arquivo do computador",also:"Você também pode escolher arquivos de"},url:{title:"Arquivos da web",line1:"Faça upload de qualquer arquivo da web.",line2:"Apenas informe o link.",input:"Cole seu link aqui...",button:"Upload"},camera:{capture:"Tirar uma foto",mirror:"Espelhar",startRecord:"Gravar um vídeo",stopRecord:"Parar",cancelRecord:"Cancelar",retry:"Requisitar permissão novamente",pleaseAllow:{title:"Por favor permita o acesso a sua câmera",text:"Você foi solicitado a permitir o acesso à câmera a partir deste site. Para tirar fotos com sua câmera, você deve aprovar este pedido."},notFoud:{title:"Câmera não detectada",text:"Parece que você não tem uma câmera conectada a este dispositivo"}},preview:{unknownName:"desconhecido",change:"Cancelar",back:"Voltar",done:"Adicionar",unknown:{title:"Fazendo upload... Aguarde a visualização.",done:"Pular visualização e aceitar"},regular:{title:"Adicionar esse arquivo?",line1:"Você está prestes a adicionar o arquivo acima.",line2:"Por favor, confirme."},image:{title:"Adicionar essa imagem?",change:"Cancelar"},crop:{title:"Cortar e adicionar essa imagem",done:"OK",free:"livre"},error:{default:{title:"Oops!",text:"Alguma coisa deu errado durante o upload.",back:"Por favor, tente novamente"},image:{title:"Apenas arquivos de imagem são aceitos.",text:"Por favor, tente novamente com outro arquivo.",back:"Escolher a imagem"},size:{title:"O arquivo que você escolheu excede o limite.",text:"Por favor, tente novamente com outro arquivo."},loadImage:{title:"Erro",text:"Não foi possível carregar a imagem"}},multiple:{title:"Você escolheu",question:"Você quer adicionar todos esses arquivos?",clear:"Excluir todos",done:"OK"}}}}}}),a.namespace("locale.pluralize",function(e){return e.pt=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.ro={uploading:"Se încarcă... Răbdare.",loadingInfo:"Info încărcare...",errors:{default:"Eroare",baddata:"Valoare incorectă",size:"Fișier prea mare",upload:"Nu pot încărca",user:"Încărcare anulată",info:"Nu pot încărca info",image:"Doar imagini, vă rog",createGroup:"Nu pot crea grup de fișiere",deleted:"Fișierul a fost șters"},draghere:"Trage un fișier aici",file:{one:"%1 fișier",other:"%1 fișiere"},buttons:{cancel:"Anulare",remove:"Șterge",choose:{files:{one:"Alege un fișier",other:"Alege fișiere"},images:{one:"Alege o imagine",other:"Alege imagini"}}},dialog:{close:"Închide",openMenu:"Deschide meniu",done:"Gata",showFiles:"Arată fișiere",tabs:{names:{"empty-pubkey":"Bine ai venit",preview:"Previzualizare",file:"Fișiere locale",url:"Link direct",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",skydrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"trage aici<br>fișierele",nodrop:"Încarcă fișiere din computer",cloudsTip:"Cloud <br>și rețle sociale",or:"sau",button:"Alege un fișier local",also:"sau alege din"},url:{title:"Fișiere din Web",line1:"Ia orice fișier din Web.",line2:"Trebuie să ai doar linkul.",input:"Lipește linkul aici...",button:"Încarcă"},camera:{title:"Fișier din camera web",capture:"Fă o fotografie",mirror:"Mirror",startRecord:"Înregistrează un video",stopRecord:"Stop",cancelRecord:"Anulează",retry:"Cere permisiune din nou",pleaseAllow:{title:"Te rog sa-mi dai acces la cameră",text:"Ai fost rugat să dai acces la cameră de acest site.<br>Pentru a putea face fotografii cu camera, trebuie să aprobi această cerere."},notFound:{title:"Nicio cameră detectată",text:"Se pare că nu ai nicio cameră atașată acestui device."}},preview:{unknownName:"necunoscut",change:"Anulează",back:"Înapoi",done:"Adaugă",unknown:{title:"Se încarcă... Te rog așteaptă previzualizarea.",done:"Sari peste previzualizare și acceptă"},regular:{title:"Adaug acest fișier?",line1:"Ești pe punctul de a adăuga fișierul de mai sus.",line2:"Te rog confirmă."},image:{title:"Adaug această imagine?",change:"Anulează"},crop:{title:"Decupează și adaugă aceasta imagine",done:"Gata",free:"gratis"},video:{title:"Adaug acest video?",change:"anulează"},error:{default:{title:"Oops!",text:"A intervenit o problemă la încărcare.",back:"te rog încearcă din nou"},image:{title:"Sunt acceptate doar imagini.",text:"Te rog încearcă din nou cu un alt fișier.",back:"Alege imagine"},size:{title:"Fișierul selectat de tine este prea mare.",text:"Te rog să încerci cu alt fișier."},loadImage:{title:"Eroare",text:"Nu pot încărca imaginea"}},multiple:{title:"Ai ales %files%.",question:"Adaug %files%?",tooManyFiles:"Ai ales prea multe fișiere. %max% is maximum.",tooFewFiles:"Ai ales %files%. Minimul este %min% .",clear:"Șterge toate",done:"Adaugă",file:{preview:"Previzualizare %file%",remove:"Șterge %file%"}}}},footer:{text:"powered by",link:"uploadcare"}}}}),a.namespace("locale.pluralize",function(e){return e.ro=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.ru={uploading:"Идет загрузка",loadingInfo:"Загрузка информации...",errors:{default:"Ошибка",baddata:"Некорректные данные",size:"Слишком большой файл",upload:"Ошибка при загрузке",user:"Загрузка прервана",info:"Ошибка при загрузке информации",image:"Разрешены только изображения",createGroup:"Не удалось создать группу файлов",deleted:"Файл удалён"},draghere:"Перетащите файл сюда",file:{one:"%1 файл",few:"%1 файла",many:"%1 файлов"},buttons:{cancel:"Отмена",remove:"Удалить",choose:{files:{one:"Выбрать файл",other:"Выбрать файлы"},images:{one:"Выбрать изображение",other:"Выбрать изображения"}}},dialog:{done:"Готово",showFiles:"Показать файлы",tabs:{names:{preview:"Предпросмотр","empty-pubkey":"Приветствие",file:"Локальные файлы",vk:"ВКонтакте",url:"Ссылка",camera:"Камера"},file:{drag:"Перетащите файл сюда",nodrop:"Загрузка файлов с вашего компьютера",cloudsTip:"Облачные хранилища<br>и социальные сети",or:"или",button:"Выберите локальный файл",also:"Вы также можете загрузить файлы, используя:"},url:{title:"Файлы с других сайтов",line1:"Загрузите любой файл из сети.",line2:"",input:"Укажите здесь ссылку...",button:"Загрузить"},camera:{capture:"Сделать снимок",mirror:"Отразить",retry:"Повторно запросить разрешение",pleaseAllow:{title:"Пожалуйста, разрешите доступ к камере",text:"Для того, чтобы сделать снимок, мы запросили разрешение на доступ к камере с этого сайта."},notFound:{title:"Камера не найдена",text:"Скорее всего камера не подключена или не настроена."}},preview:{unknownName:"неизвестно",change:"Отмена",back:"Назад",done:"Добавить",unknown:{title:"Загрузка... Пожалуйста подождите.",done:"Пропустить предварительный просмотр"},regular:{title:"Загрузить этот файл?",line1:"Вы собираетесь добавить этот файл:",line2:"Пожалуйста, подтвердите."},image:{title:"Добавить это изображение?",change:"Отмена"},video:{title:"Добавить это видео?",change:"Отмена"},crop:{title:"Обрезать и добавить это изображение",done:"Готово",free:"произв."},error:{default:{title:"Ой!",text:"Что-то пошло не так во время загрузки.",back:"Пожалуйста, попробуйте ещё раз"},image:{title:"Можно загружать только изображения.",text:"Попробуйте загрузить другой файл.",back:"Выберите изображение"},size:{title:"Размер выбранного файла превышает лимит.",text:"Попробуйте загрузить другой файл."},loadImage:{title:"Ошибка",text:"Изображение не удалось загрузить"}},multiple:{title:"Вы выбрали %files%",question:"Добавить все эти файлы?",tooManyFiles:"Вы выбрали слишком много файлов. %max% максимум.",tooFewFiles:"Вы выбрали %files%. Нужно не меньше %min%.",clear:"Удалить все",done:"Добавить",file:{preview:"Предпросмотр %file%",remove:"Удалить %file%"}}}}}}}),a.namespace("locale.pluralize",function(e){return e.ru=function(e){return 1==(e/10%10|0)||e%10==0||e%10>4?"many":e%10==1?"one":"few"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.sk={uploading:"Nahrávam... Prosím počkajte.",loadingInfo:"Nahrávam informácie...",errors:{default:"Chyba",baddata:"Nesprávna hodnota",size:"Súbor je príliš veľký",upload:"Nedá sa nahrať",user:"Nahrávanie bolo zrušené",info:"Informácie sa nedajú nahrať",image:"Povolené sú len obrázky",createGroup:"Nie je možné vytvoriť priečinok",deleted:"Súbor bol odstránený"},draghere:"Sem presuňte súbor",file:{one:"%1 súbor",few:"%1 súbory",other:"%1 súborov"},buttons:{cancel:"Zrušiť",remove:"Odstrániť",choose:{files:{one:"Vyberte súbor",other:"Vyberte súbory"},images:{one:"Vyberte obrázok",other:"Vyberte obrázky"}}},dialog:{close:"Zavrieť",openMenu:"Otvoriť menu",done:"Hotovo",showFiles:"Ukázať súbory",tabs:{names:{"empty-pubkey":"Vitajte",preview:"Náhľad",file:"Z počítača",url:"Z internetu",camera:"Kamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Disk Google",gphotos:"Google Obrázky",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",skydrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"presuňte a vložte<br>akékoľvek súbory",nodrop:"Nahrajte súbory z vášho počítača",cloudsTip:"Cloud úložiská<br>a sociálne siete",or:"alebo",button:"Vyberte súbor z počítača",also:"alebo vyberte z"},url:{title:"Súbory z internetu",line1:"Uložte akýkoľvek súbor z internetu.",line2:"Stačí pridať odkaz na neho.",input:"Vložte svoj odkaz sem...",button:"Nahrať"},camera:{title:"Súbor z webkamery",capture:"Odfotiť",mirror:"Zrkadliť",startRecord:"Natočte video",stopRecord:"Prestať natáčať",cancelRecord:"Zrušiť",retry:"Znovu požiadať o prístup",pleaseAllow:{title:"Prosím povoľte prístup k vašej kamere",text:"Boli ste vyzvaní aby ste umožnili tejto stránke prístup ku kamere.<br>Prístup musíte povolit aby ste mohli fotiť s vašou kamerou."},notFound:{title:"Kamera nebola nájdená",text:"Zdá sa, že k tomuto zariadeniu nemáte pripojenú kameru."}},preview:{unknownName:"neznámy",change:"Zrušiť",back:"Späť",done:"Pridať",unknown:{title:"Nahráva sa... Prosím počkajte na náhľad.",done:"Preskočiť náhľad a nahrať"},regular:{title:"Pridať tento súbor?",line1:"Chystáte sa pridať vyššie uvedený súbor.",line2:"Prosím potvrďte váš výber."},image:{title:"Pridať tento obrázok?",change:"Zrušiť"},crop:{title:"Orezať a pridať túto fotku",done:"Hotovo",free:"obnoviť"},video:{title:"Pridať toto video?",change:"Zrušiť"},error:{default:{title:"Ejha!",text:"Pri nahrávaní sa vyskytla chyba.",back:"Skúste to znovu"},image:{title:"Je možné nahrávať len obrázky",text:"Skúste to znovu s iným súborom.",back:"Vybrať obrázok"},size:{title:"Súbor, ktorý ste vybrali presahuje povolenú veľkosť.",text:"Skúste to znovu s iným súborom."},loadImage:{title:"Chyba",text:"Obrázok nie je možné vyhľadať"}},multiple:{title:"Vybrali ste %files%.",question:"Pridať %files%?",tooManyFiles:"Vybrali ste príliš veľa súborov. Maximum je %max%.",tooFewFiles:"Vybrali ste %files%. Potrebných je aspoň %min%.",clear:"Odstrániť všetky",done:"Pridať",file:{preview:"Nahliadnuť na %file%",remove:"Odstrániť %file%"}}}}}}}),a.namespace("locale.pluralize",function(e){return e.sk=function(e){return 1===e?"one":e>=2&&4>=e?"few":"many"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.sr={uploading:"Шаљем... Молимо сачекајте.",loadingInfo:"Учитавам информације...",errors:{default:"Грешка",baddata:"Погрешна вредност",size:"Фајл је сувише велик",upload:"Не могу да пошаљем",user:"Слање прекинуто",info:"Не могу да учитам информације",image:"Дозвољене су само слике",createGroup:"Не могу да направим групу фајлова",deleted:"Фајл је обрисан"},draghere:"Убаците фајл овде",file:{one:"%1 фајл",other:"%1 фајлова"},buttons:{cancel:"Поништи",remove:"Избаци",choose:{files:{one:"Изабери фајл",other:"Изабери фајлове"},images:{one:"Изабери слику",other:"Изабери слике"}}},dialog:{close:"Затвори",openMenu:"Отвори мени",done:"Готово",showFiles:"Покажи фајлове",tabs:{names:{"empty-pubkey":"Добродошли",preview:"Погледај",file:"Локални фајлови",url:"Директан линк",camera:"Камера",facebook:"Фејсбук",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Инстаграм",vk:"VK",evernote:"Evernote",box:"Box",skydrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"превуци<br>било које фајлове",nodrop:"Пошаљи фајлове са твог компјутера",cloudsTip:"Клауд<br>и социјалне мреже",or:"или",button:"Изабери локални фајл",also:"или изабери"},url:{title:"Фајлове са Интернета",line1:"Изабери било који фајл са Интернета.",line2:"Само убаци линк.",input:"Убаци линк овде...",button:"Пошаљи"},camera:{title:"Фајл са камере",capture:"Усликај",mirror:"Огледало",startRecord:"Сними видео",stopRecord:"Заустави",cancelRecord:"Поништи",retry:"Тражи дозволу поново",pleaseAllow:{title:"Молимо вас да дозволите приступ вашој камери",text:"Упитани сте да дозволите приступ вашој камери са овог сајта.<br>Уколико желите да сликате, морате одобрити овај захтев."},notFound:{title:"Камера није препозната",text:"Изгледа да немате камеру на овом уређају."}},preview:{unknownName:"непознато",change:"Поништи",back:"Назад",done:"Додај",unknown:{title:"Шаљем... Сачекајте за приказ.",done:"Прескочи приказ и прихвати"},regular:{title:"Додај овај фајл?",line1:"Управо ћете додати овај фајл изнад.",line2:"Молимо потврдите."},image:{title:"Додај ову слику?",change:"Поништи"},crop:{title:"Кропуј и додај ову слику",done:"Урађено",free:"слободно"},video:{title:"Додај овај видео?",change:"Поништи"},error:{default:{title:"Ооопс!",text:"Нешто је искрсло у току слања.",back:"Молимо покушајте поново"},image:{title:"Дозвљене су само слике.",text:"Молимо покушајте са другим фајлом.",back:"Изабери слику"},size:{title:"Фајл који сте изабрали премашује лимит.",text:"Молимо покушајте са другим фајлом."},loadImage:{title:"Грешка",text:"Не могу да учитам слику"}},multiple:{title:"Изабрали сте %files%.",question:"Додај %files%?",tooManyFiles:"Изабрали сте превише фајлова. %max% је максимално.",tooFewFiles:"Изабрали сте %files%. Морате најмање %min% фајла.",clear:"Избаци све",done:"Додај",file:{preview:"Прегледај %file%",remove:"Избаци %file%"}}}},footer:{text:"направио",link:"uploadcare"}}}}),a.namespace("locale.pluralize",function(e){return e.sr=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.sv={uploading:"Laddar... Var god vänta.",loadingInfo:"Laddar info...",errors:{default:"Fel",baddata:"Felaktigt värde",size:"Filen är för stor",upload:"Kan inte ladda upp",user:"Uppladdning avbruten",info:"Kan inte ladda informationen",image:"Endast bilder tillåtna",createGroup:"Kan inte skapa filgrupp",deleted:"Fil raderad"},draghere:"Dra filen hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Ta bort",choose:{files:{one:"Välj fil",other:"Välj filer"},images:{one:"Välj en bild",other:"Välj bilder"}}},dialog:{done:"Klar",showFiles:"Visa filer",tabs:{names:{"empty-pubkey":"Välkommen",preview:"Förhandsgranskning",file:"Lokala filer",url:"Direkta länkar",camera:"Kamera"},file:{drag:"Släpp filen här",nodrop:"Ladda upp filer från din dator",cloudsTip:"Molnlagring<br>och sociala nätverk",or:"eller",button:"Välj en lokal fil",also:"Du kan också välja den från"},url:{title:"Filer från webben",line1:"Välj en fil från en webbadress.",line2:"Ange bara länken till filen.",input:"Klistra in din länk här...",button:"Ladda upp"},camera:{capture:"Ta ett foto",mirror:"Spegel",retry:"Begär tillstånd igen",pleaseAllow:{title:"Vänligen ge tillgång till din kamera",text:"Du har uppmanats att tillåta att denna webbplats får tillgång till din kamera.För att ta bilder med din kamera måste du godkänna denna begäran."},notFound:{title:"Ingen kamera hittades",text:"Det verkar som att du inte har någon kamera ansluten till denna enheten."}},preview:{unknownName:"okänd",change:"Avbryt",back:"Tillbaka",done:"Lägg till",unknown:{title:"Laddar... Vänligen vänta på förhandsgranskning.",done:"Skippa förhandsgranskning och acceptera"},regular:{title:"Lägg till denna filen?",line1:"Du håller på att lägga till filen ovan.",line2:"Vänligen bekräfta."},image:{title:"Lägg till denna bilden?",change:"Avbryt"},crop:{title:"Beskär och lägg till denna bild",done:"Klar",free:"fri"},error:{default:{title:"Oops!",text:"Någonting gick fel under uppladdningen.",back:"Vänligen försök igen"},image:{title:"Endast bildfiler accepteras.",text:"Vänligen försök igen med en annan fil.",back:"Välj bild"},size:{title:"Filen du har valt är för stor.",text:"Vänligen försök igen med en annan fil."},loadImage:{title:"Fel",text:"Kan inte ladda bild"}},multiple:{title:"Du har valt %files%",question:"Vill du lägga till alla dessa filer?",tooManyFiles:"Du har valt för många filer. %max% är max.",tooFewFiles:"Du har valt %files%. Minst %min% krävs.",clear:"Ta bort alla",done:"Klar"}}}}}}),a.namespace("locale.pluralize",function(e){return e.sv=function(e){return 1===e?"one":"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.tr={uploading:"Yükleniyor... Lütfen bekleyin.",loadingInfo:"Bilgiler yükleniyor...",errors:{default:"Hata",baddata:"Geçersiz değer",size:"Dosya çok büyük",upload:"Yüklenemedi",user:"Yükleme iptal edildi",info:"Bilgiler getirilemedi",image:"Sadece resim dosyası yüklenebilir",createGroup:"Dosya grubu yaratılamıyor",deleted:"Dosya silinmiş"},draghere:"Buraya bir dosya bırakın",file:{other:"%1 dosya"},buttons:{cancel:"İptal",remove:"Kaldır",choose:{files:{one:"Dosya Seçin",other:"Dosya Seçin"},images:{one:"Resim Dosyası Seçin",other:"Resim Dosyası Seçin"}}},dialog:{done:"Bitti",showFiles:"Dosyaları Göster",tabs:{names:{"empty-pubkey":"Hoş geldiniz",preview:"Önizleme",file:"Bilgisayar",url:"Dış Bağlantılar",camera:"Kamera"},file:{drag:"Buraya bir dosya bırakın",nodrop:"Bilgisayarınızdan dosya yükleyin",or:"ya da",button:"Bilgisayardan bir dosya seç",also:"Diğer yükleme seçenekleri",cloudsTip:"Bulut depolamalar<br>ve sosyal hizmetler"},url:{title:"Webden dosyalar",line1:"Webden herhangi bir dosya seçin.",line2:"Dosya bağlantısını sağlayın.",input:"Bağlantınızı buraya yapıştırın...",button:"Yükle"},camera:{capture:"Fotoğraf çek",mirror:"Ayna",retry:"Tekrar izin iste",pleaseAllow:{title:"Lütfen kameranıza erişilmesine izin verin",text:"Bu siteden kamera erişimine izin vermeniz talep ediliyor. Kameranızla fotoğraf çekmek için bu isteği onaylamanız gerekmektedir."},notFound:{title:"Kamera algılanamadı",text:"Bu cihaza kamera bağlantısının olmadığı görünüyor."}},preview:{unknownName:"bilinmeyen",change:"İptal",back:"Geri",done:"Ekle",unknown:{title:"Yükleniyor... Önizleme için lütfen bekleyin.",done:"Önizlemeyi geç ve kabul et"},regular:{title:"Bu dosya eklensin mi?",line1:"Yukarıdaki dosyayı eklemek üzeresiniz.",line2:"Lütfen onaylayın."},image:{title:"Bu görsel eklensin mi?",change:"İptal"},crop:{title:"Bu görseli kes ve ekle",done:"Bitti"},error:{default:{title:"Aman!",text:"Yükleme sırasında bir hata oluştu.",back:"Lütfen tekrar deneyin."},image:{title:"Sadece resim dosyaları kabul edilmektedir.",text:"Lütfen başka bir dosya ile tekrar deneyin.",back:"Resim dosyası seç"},size:{title:"Seçtiğiniz dosya limitleri aşıyor.",text:"Lütfen başka bir dosya ile tekrar deneyin."},loadImage:{title:"Hata",text:"Resim dosyası yüklenemedi"}},multiple:{title:"%files% dosya seçtiniz",question:"Bu dosyaların hepsini eklemek istiyor musunuz?",tooManyFiles:"Fazla sayıda dosya seçtiniz, en fazla %max% dosya olabilir.",tooFewFiles:"%files% dosya seçtiniz, en az %min% dosya olmalıdır.",clear:"Hepsini kaldır",done:"Bitti"}}}}}}),a.namespace("locale.pluralize",function(e){return e.tr=function(e){return"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.zhTW={uploading:"上傳中...請等待",loadingInfo:"正在讀取資訊...",errors:{default:"錯誤",baddata:"錯誤資料",size:"檔案太大",upload:"無法上傳",user:"上傳被取消",info:"無法讀取資訊",image:"只允許圖片檔案",createGroup:"無法建立檔案群組",deleted:"檔案已被刪除"},draghere:"拖放檔案到這裡",file:{other:"%1 個檔案"},buttons:{cancel:"取消",remove:"刪除",choose:{files:{one:"選擇檔案",other:"選擇檔案"},images:{one:"選擇圖片",other:"選擇圖片"}}},dialog:{done:"完成",showFiles:"顯示檔案",tabs:{names:{"empty-pubkey":"歡迎",preview:"預覽",file:"從本機上傳",url:"任意圖片連結",camera:"相機"},file:{drag:"拖放檔案到這裡",nodrop:"從你的本機中上傳",cloudsTip:"雲端硬碟<br>與社群網站",or:"或者",button:"從本機中選取檔案",also:"你也可以選自"},url:{title:"來自網際網路的檔案",line1:"從網際網路選取檔案",line2:"只需提供連結",input:"將連結複製至此...",button:"上傳"},camera:{capture:"拍照",mirror:"鏡像",retry:"重新取得相機權限",pleaseAllow:{title:"請允許使存取您的相機",text:"你一直在提示允許來自這個網站的訪問攝像頭。為了拍照用你的相機,你必須批准這一請求。"},notFound:{title:"沒有找到相機",text:"看起來你有沒有將連接相機。"}},preview:{unknownName:"未知",change:"取消",back:"返回",done:"加入",unknown:{title:"上傳中...請等待預覽",done:"跳過預覽,直接接受"},regular:{title:"加入這個檔案?",line1:"你將加入上面的檔案。",line2:"請確認。"},image:{title:"加入這個圖片?",change:"取消"},crop:{title:"裁切並加入這個圖片",done:"完成",free:"自由裁切"},error:{default:{title:"錯誤!",text:"上傳過程中出錯。",back:"請重試"},image:{title:"只允許上傳圖片檔案。",text:"請選擇其他檔案重新上傳。",back:"選擇圖片"},size:{title:"你選取的檔案超過了100MB的上限",text:"請用另一個檔案再試一次。"},loadImage:{title:"錯誤",text:"無法讀取圖片"}},multiple:{title:"你已經選擇 %files%",question:"你要加入所有檔案嗎?",tooManyFiles:"你選了太多的檔案. 最多可選擇%max%. 請刪除一些。",tooFewFiles:"你所選擇的檔案 %files%. 至少要 %min% .",clear:"清空",done:"完成"}}}}}}),a.namespace("locale.pluralize",function(e){return e.zhTW=function(e){return"other"}})}.call(this),function(){a.namespace("locale.translations",function(e){return e.zh={uploading:"上传中...请等待",loadingInfo:"正在读取信息...",errors:{default:"错误",baddata:"错误数据",size:"文件太大",upload:"无法上传",user:"上传被取消",info:"无法读取信息",image:"只允许图形文件",createGroup:"无法建立文件组",deleted:"文件已被删除"},draghere:"拖放文件到这里",file:{other:"%1 个文件"},buttons:{cancel:"取消",remove:"删除"},dialog:{done:"完成",showFiles:"显示文件",tabs:{names:{url:"任意图片链接"},file:{drag:"拖放文件到这里",nodrop:"从你的电脑中上传",or:"或者",button:"从电脑中选取文件",also:"你也可以选自"},url:{title:"来自互联网的文件",line1:"从互联网选取文件",line2:"只需提供链接",input:"将链接拷贝至此...",button:"上传"},preview:{unknownName:"未知",change:"取消",back:"返回",done:"添加",unknown:{title:"上传中...请等待预览",done:"跳过预览,直接接受"},regular:{title:"添加这个文件?",line1:"你将添加上面的文件。",line2:"请确认。"},image:{title:"添加这个图片?",change:"取消"},crop:{title:"剪裁并添加这个图片",done:"完成"},error:{default:{title:"错误!",text:"上传过程中出错。",back:"请重试"},image:{title:"只允许上传图片文件。",text:"请选择其他文件重新上传。",back:"选择图片"},size:{title:"你选取的文件超过了100MB的上限",text:"请用另一个文件再试一次。"},loadImage:{title:"错误",text:"无法读取图片"}},multiple:{title:"你已经选择 %files%",question:"你要添加所有文件吗?",tooManyFiles:"你选了太多的文件. 最多可选择%max%. 请删除一些。",clear:"清空",done:"完成"}}}}}}),a.namespace("locale.pluralize",function(e){return e.zh=function(){return"other"}})}.call(this),function(){var e;a.expose("locales",function(){var t;for(e in t=[],a.locale.translations)t.push(e);return t}())}.call(this),a.__exports})},function(e,t,n){var r;!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,o){"use strict";var a=[],i=n.document,l=Object.getPrototypeOf,s=a.slice,u=a.concat,c=a.push,p=a.indexOf,d={},f=d.toString,h=d.hasOwnProperty,m=h.toString,g=m.call(Object),b={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},_={type:!0,src:!0,noModule:!0};function w(e,t,n){var r,o=(t=t||i).createElement("script");if(o.text=e,n)for(r in _)n[r]&&(o[r]=n[r]);t.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)},C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function S(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.3.1",constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},k.extend=k.fn.extend=function(){var e,t,n,r,o,a,i=arguments[0]||{},l=1,s=arguments.length,u=!1;for("boolean"==typeof i&&(u=i,i=arguments[l]||{},l++),"object"==typeof i||v(i)||(i={}),l===s&&(i=this,l--);l<s;l++)if(null!=(e=arguments[l]))for(t in e)n=i[t],i!==(r=e[t])&&(u&&r&&(k.isPlainObject(r)||(o=Array.isArray(r)))?(o?(o=!1,a=n&&Array.isArray(n)?n:[]):a=n&&k.isPlainObject(n)?n:{},i[t]=k.extend(u,a,r)):void 0!==r&&(i[t]=r));return i},k.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=l(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&m.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){w(e)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?k.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:p.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,a=e.length,i=!n;o<a;o++)!t(e[o],o)!==i&&r.push(e[o]);return r},map:function(e,t,n){var r,o,a=0,i=[];if(S(e))for(r=e.length;a<r;a++)null!=(o=t(e[a],a,n))&&i.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&i.push(o);return u.apply([],i)},guid:1,support:b}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=a[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var T=function(e){var t,n,r,o,a,i,l,s,u,c,p,d,f,h,m,g,b,v,y,_="sizzle"+1*new Date,w=e.document,x=0,k=0,C=ie(),S=ie(),T=ie(),E=function(e,t){return e===t&&(p=!0),0},O={}.hasOwnProperty,j=[],P=j.pop,z=j.push,A=j.push,F=j.slice,N=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},D="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",L="\\["+M+"*("+R+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+M+"*\\]",I=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",q=new RegExp(M+"+","g"),U=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),B=new RegExp("^"+M+"*,"+M+"*"),V=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),H=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),W=new RegExp(I),K=new RegExp("^"+R+"$"),G={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){d()},oe=ve(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{A.apply(j=F.call(w.childNodes),w.childNodes),j[w.childNodes.length].nodeType}catch(e){A={apply:j.length?function(e,t){z.apply(e,F.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,o){var a,l,u,c,p,h,b,v=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!o&&((t?t.ownerDocument||t:w)!==f&&d(t),t=t||f,m)){if(11!==x&&(p=Q.exec(e)))if(a=p[1]){if(9===x){if(!(u=t.getElementById(a)))return r;if(u.id===a)return r.push(u),r}else if(v&&(u=v.getElementById(a))&&y(t,u)&&u.id===a)return r.push(u),r}else{if(p[2])return A.apply(r,t.getElementsByTagName(e)),r;if((a=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return A.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!T[e+" "]&&(!g||!g.test(e))){if(1!==x)v=t,b=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=_),l=(h=i(e)).length;l--;)h[l]="#"+c+" "+be(h[l]);b=h.join(","),v=X.test(e)&&me(t.parentNode)||t}if(b)try{return A.apply(r,v.querySelectorAll(b)),r}catch(e){}finally{c===_&&t.removeAttribute("id")}}}return s(e.replace(U,"$1"),t,r,o)}function ie(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[_]=!0,e}function se(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return le(function(t){return t=+t,le(function(n,r){for(var o,a=e([],n.length,t),i=a.length;i--;)n[o=a[i]]&&(n[o]=!(r[o]=n[o]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},a=ae.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},d=ae.setDocument=function(e){var t,o,i=e?e.ownerDocument||e:w;return i!==f&&9===i.nodeType&&i.documentElement?(h=(f=i).documentElement,m=!a(f),w!==f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=se(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=se(function(e){return h.appendChild(e).id=_,!f.getElementsByName||!f.getElementsByName(_).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,o,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(o=t.getElementsByName(e),r=0;a=o[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[o++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},b=[],g=[],(n.qsa=J.test(f.querySelectorAll))&&(se(function(e){h.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+M+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")}),se(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=J.test(v=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&se(function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),b.push("!=",I)}),g=g.length&&new RegExp(g.join("|")),b=b.length&&new RegExp(b.join("|")),t=J.test(h.compareDocumentPosition),y=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return p=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===f||e.ownerDocument===w&&y(w,e)?-1:t===f||t.ownerDocument===w&&y(w,t)?1:c?N(c,e)-N(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return p=!0,0;var n,r=0,o=e.parentNode,a=t.parentNode,i=[e],l=[t];if(!o||!a)return e===f?-1:t===f?1:o?-1:a?1:c?N(c,e)-N(c,t):0;if(o===a)return ce(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;i[r]===l[r];)r++;return r?ce(i[r],l[r]):i[r]===w?-1:l[r]===w?1:0},f):f},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&d(e),t=t.replace(H,"='$1']"),n.matchesSelector&&m&&!T[t+" "]&&(!b||!b.test(t))&&(!g||!g.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ae(t,f,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!==f&&d(e),y(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==f&&d(e);var o=r.attrHandle[t.toLowerCase()],a=o&&O.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==a?a:n.attributes||!m?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},ae.escape=function(e){return(e+"").replace(te,ne)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,r=[],o=0,a=0;if(p=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(E),p){for(;t=e[a++];)t===e[a]&&(o=r.push(a));for(;o--;)e.splice(r[o],1)}return c=null,e},o=ae.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=ae.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=i(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=ae.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(q," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var a="nth"!==e.slice(0,3),i="last"!==e.slice(-4),l="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,s){var u,c,p,d,f,h,m=a!==i?"nextSibling":"previousSibling",g=t.parentNode,b=l&&t.nodeName.toLowerCase(),v=!s&&!l,y=!1;if(g){if(a){for(;m;){for(d=t;d=d[m];)if(l?d.nodeName.toLowerCase()===b:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[i?g.firstChild:g.lastChild],i&&v){for(y=(f=(u=(c=(p=(d=g)[_]||(d[_]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]||[])[0]===x&&u[1])&&u[2],d=f&&g.childNodes[f];d=++f&&d&&d[m]||(y=f=0)||h.pop();)if(1===d.nodeType&&++y&&d===t){c[e]=[x,f,y];break}}else if(v&&(y=f=(u=(c=(p=(d=t)[_]||(d[_]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]||[])[0]===x&&u[1]),!1===y)for(;(d=++f&&d&&d[m]||(y=f=0)||h.pop())&&((l?d.nodeName.toLowerCase()!==b:1!==d.nodeType)||!++y||(v&&((c=(p=d[_]||(d[_]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]=[x,y]),d!==t)););return(y-=o)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return o[_]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,n){for(var r,a=o(e,t),i=a.length;i--;)e[r=N(e,a[i])]=!(n[r]=a[i])}):function(e){return o(e,0,n)}):o}},pseudos:{not:le(function(e){var t=[],n=[],r=l(e.replace(U,"$1"));return r[_]?le(function(e,t,n,o){for(var a,i=r(e,null,o,[]),l=e.length;l--;)(a=i[l])&&(e[l]=!(t[l]=a))}):function(e,o,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:le(function(e){return function(t){return ae(e,t).length>0}}),contains:le(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:le(function(e){return K.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=de(t);function ge(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ve(e,t,n){var r=t.dir,o=t.next,a=o||r,i=n&&"parentNode"===a,l=k++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o);return!1}:function(t,n,s){var u,c,p,d=[x,l];if(s){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,s))return!0}else for(;t=t[r];)if(1===t.nodeType||i)if(c=(p=t[_]||(t[_]={}))[t.uniqueID]||(p[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[a])&&u[0]===x&&u[1]===l)return d[2]=u[2];if(c[a]=d,d[2]=e(t,n,s))return!0}return!1}}function ye(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function _e(e,t,n,r,o){for(var a,i=[],l=0,s=e.length,u=null!=t;l<s;l++)(a=e[l])&&(n&&!n(a,r,o)||(i.push(a),u&&t.push(l)));return i}function we(e,t,n,r,o,a){return r&&!r[_]&&(r=we(r)),o&&!o[_]&&(o=we(o,a)),le(function(a,i,l,s){var u,c,p,d=[],f=[],h=i.length,m=a||function(e,t,n){for(var r=0,o=t.length;r<o;r++)ae(e,t[r],n);return n}(t||"*",l.nodeType?[l]:l,[]),g=!e||!a&&t?m:_e(m,d,e,l,s),b=n?o||(a?e:h||r)?[]:i:g;if(n&&n(g,b,l,s),r)for(u=_e(b,f),r(u,[],l,s),c=u.length;c--;)(p=u[c])&&(b[f[c]]=!(g[f[c]]=p));if(a){if(o||e){if(o){for(u=[],c=b.length;c--;)(p=b[c])&&u.push(g[c]=p);o(null,b=[],u,s)}for(c=b.length;c--;)(p=b[c])&&(u=o?N(a,p):d[c])>-1&&(a[u]=!(i[u]=p))}}else b=_e(b===i?b.splice(h,b.length):b),o?o(null,i,b,s):A.apply(i,b)})}function xe(e){for(var t,n,o,a=e.length,i=r.relative[e[0].type],l=i||r.relative[" "],s=i?1:0,c=ve(function(e){return e===t},l,!0),p=ve(function(e){return N(t,e)>-1},l,!0),d=[function(e,n,r){var o=!i&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r));return t=null,o}];s<a;s++)if(n=r.relative[e[s].type])d=[ve(ye(d),n)];else{if((n=r.filter[e[s].type].apply(null,e[s].matches))[_]){for(o=++s;o<a&&!r.relative[e[o].type];o++);return we(s>1&&ye(d),s>1&&be(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(U,"$1"),n,s<o&&xe(e.slice(s,o)),o<a&&xe(e=e.slice(o)),o<a&&be(e))}d.push(n)}return ye(d)}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,i=ae.tokenize=function(e,t){var n,o,a,i,l,s,u,c=S[e+" "];if(c)return t?0:c.slice(0);for(l=e,s=[],u=r.preFilter;l;){for(i in n&&!(o=B.exec(l))||(o&&(l=l.slice(o[0].length)||l),s.push(a=[])),n=!1,(o=V.exec(l))&&(n=o.shift(),a.push({value:n,type:o[0].replace(U," ")}),l=l.slice(n.length)),r.filter)!(o=G[i].exec(l))||u[i]&&!(o=u[i](o))||(n=o.shift(),a.push({value:n,type:i,matches:o}),l=l.slice(n.length));if(!n)break}return t?l.length:l?ae.error(e):S(e,s).slice(0)},l=ae.compile=function(e,t){var n,o=[],a=[],l=T[e+" "];if(!l){for(t||(t=i(e)),n=t.length;n--;)(l=xe(t[n]))[_]?o.push(l):a.push(l);(l=T(e,function(e,t){var n=t.length>0,o=e.length>0,a=function(a,i,l,s,c){var p,h,g,b=0,v="0",y=a&&[],_=[],w=u,k=a||o&&r.find.TAG("*",c),C=x+=null==w?1:Math.random()||.1,S=k.length;for(c&&(u=i===f||i||c);v!==S&&null!=(p=k[v]);v++){if(o&&p){for(h=0,i||p.ownerDocument===f||(d(p),l=!m);g=e[h++];)if(g(p,i||f,l)){s.push(p);break}c&&(x=C)}n&&((p=!g&&p)&&b--,a&&y.push(p))}if(b+=v,n&&v!==b){for(h=0;g=t[h++];)g(y,_,i,l);if(a){if(b>0)for(;v--;)y[v]||_[v]||(_[v]=P.call(s));_=_e(_)}A.apply(s,_),c&&!a&&_.length>0&&b+t.length>1&&ae.uniqueSort(s)}return c&&(x=C,u=w),y};return n?le(a):a}(a,o))).selector=e}return l},s=ae.select=function(e,t,n,o){var a,s,u,c,p,d="function"==typeof e&&e,f=!o&&i(e=d.selector||e);if(n=n||[],1===f.length){if((s=f[0]=f[0].slice(0)).length>2&&"ID"===(u=s[0]).type&&9===t.nodeType&&m&&r.relative[s[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(Z,ee),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(a=G.needsContext.test(e)?0:s.length;a--&&(u=s[a],!r.relative[c=u.type]);)if((p=r.find[c])&&(o=p(u.matches[0].replace(Z,ee),X.test(s[0].type)&&me(t.parentNode)||t))){if(s.splice(a,1),!(e=o.length&&be(s)))return A.apply(n,o),n;break}}return(d||l(e,f))(o,t,!m,n,!t||X.test(e)&&me(t.parentNode)||t),n},n.sortStable=_.split("").sort(E).join("")===_,n.detectDuplicates=!!p,d(),n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||ue(D,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ae}(n);k.find=T,k.expr=T.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=T.uniqueSort,k.text=T.getText,k.isXMLDoc=T.isXML,k.contains=T.contains,k.escapeSelector=T.escape;var E=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&k(e).is(n))break;r.push(e)}return r},O=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},j=k.expr.match.needsContext;function P(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(e,t,n){return v(t)?k.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?k.grep(e,function(e){return e===t!==n}):"string"!=typeof t?k.grep(e,function(e){return p.call(t,e)>-1!==n}):k.filter(t,e,n)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<r;t++)if(k.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,o[t],n);return r>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(A(this,e||[],!1))},not:function(e){return this.pushStack(A(this,e||[],!0))},is:function(e){return!!A(this,"string"==typeof e&&j.test(e)?k(e):e||[],!1).length}});var F,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||F,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),z.test(r[1])&&k.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=i.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,F=k(i);var D=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,a=[],i="string"!=typeof e&&k(e);if(!j.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(i?i.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?k.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?p.call(k(e),this[0]):p.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return O((e.parentNode||{}).firstChild,e)},children:function(e){return O(e.firstChild)},contents:function(e){return P(e,"iframe")?e.contentDocument:(P(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(e,t){k.fn[e]=function(n,r){var o=k.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=k.filter(r,o)),this.length>1&&(M[e]||k.uniqueSort(o),D.test(e)&&o.reverse()),this.pushStack(o)}});var L=/[^\x20\t\r\n\f]+/g;function I(e){return e}function q(e){throw e}function U(e,t,n,r){var o;try{e&&v(o=e.promise)?o.call(e).done(t).fail(n):e&&v(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(L)||[],function(e,n){t[n]=!0}),t}(e):k.extend({},e);var t,n,r,o,a=[],i=[],l=-1,s=function(){for(o=o||e.once,r=t=!0;i.length;l=-1)for(n=i.shift();++l<a.length;)!1===a[l].apply(n[0],n[1])&&e.stopOnFalse&&(l=a.length,n=!1);e.memory||(n=!1),t=!1,o&&(a=n?[]:"")},u={add:function(){return a&&(n&&!t&&(l=a.length-1,i.push(n)),function t(n){k.each(n,function(n,r){v(r)?e.unique&&u.has(r)||a.push(r):r&&r.length&&"string"!==x(r)&&t(r)})}(arguments),n&&!t&&s()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;(n=k.inArray(t,a,n))>-1;)a.splice(n,1),n<=l&&l--}),this},has:function(e){return e?k.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=i=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=i=[],n||t||(a=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],i.push(n),t||s()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return k.Deferred(function(n){k.each(t,function(t,r){var o=v(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=o&&o.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(e,r,o){var a=0;function i(e,t,r,o){return function(){var l=this,s=arguments,u=function(){var n,u;if(!(e<a)){if((n=r.apply(l,s))===t.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(u)?o?u.call(n,i(a,t,I,o),i(a,t,q,o)):(a++,u.call(n,i(a,t,I,o),i(a,t,q,o),i(a,t,I,t.notifyWith))):(r!==I&&(l=void 0,s=[n]),(o||t.resolveWith)(l,s))}},c=o?u:function(){try{u()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,c.stackTrace),e+1>=a&&(r!==q&&(l=void 0,s=[n]),t.rejectWith(l,s))}};e?c():(k.Deferred.getStackHook&&(c.stackTrace=k.Deferred.getStackHook()),n.setTimeout(c))}}return k.Deferred(function(n){t[0][3].add(i(0,n,v(o)?o:I,n.notifyWith)),t[1][3].add(i(0,n,v(e)?e:I)),t[2][3].add(i(0,n,v(r)?r:q))}).promise()},promise:function(e){return null!=e?k.extend(e,o):o}},a={};return k.each(t,function(e,n){var i=n[2],l=n[5];o[n[1]]=i.add,l&&i.add(function(){r=l},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),i.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=i.fireWith}),o.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),o=s.call(arguments),a=k.Deferred(),i=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(r,o)}};if(t<=1&&(U(e,a.done(i(n)).resolve,a.reject,!t),"pending"===a.state()||v(o[n]&&o[n].then)))return a.then();for(;n--;)U(o[n],i(n),a.reject);return a.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&B.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout(function(){throw e})};var V=k.Deferred();function H(){i.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),k.ready()}k.fn.ready=function(e){return V.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||V.resolveWith(i,[k]))}}),k.ready.then=V.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?n.setTimeout(k.ready):(i.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var W=function(e,t,n,r,o,a,i){var l=0,s=e.length,u=null==n;if("object"===x(n))for(l in o=!0,n)W(e,t,l,n[l],!0,a,i);else if(void 0!==r&&(o=!0,v(r)||(i=!0),u&&(i?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(k(e),n)})),t))for(;l<s;l++)t(e[l],n,i?r:r.call(e[l],l,t(e[l],n)));return o?e:u?t.call(e):s?t(e[0],n):a},K=/^-ms-/,G=/-([a-z])/g;function $(e,t){return t.toUpperCase()}function Y(e){return e.replace(K,"ms-").replace(G,$)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=k.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[Y(t)]=n;else for(r in t)o[Y(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Y(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(Y):(t=Y(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||k.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var X=new Q,Z=new Q,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return Z.hasData(e)||X.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,r,o,a=this[0],i=a&&a.attributes;if(void 0===e){if(this.length&&(o=Z.get(a),1===a.nodeType&&!X.get(a,"hasDataAttrs"))){for(n=i.length;n--;)i[n]&&0===(r=i[n].name).indexOf("data-")&&(r=Y(r.slice(5)),ne(a,r,o[r]));X.set(a,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Z.set(this,e)}):W(this,function(t){var n;if(a&&void 0===t)return void 0!==(n=Z.get(a,e))?n:void 0!==(n=ne(a,e))?n:void 0;this.each(function(){Z.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=X.get(e,t),n&&(!r||Array.isArray(n)?r=X.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,o=n.shift(),a=k._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete a.stop,o.call(e,function(){k.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:k.Callbacks("once memory").add(function(){X.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each(function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=k.Deferred(),a=this,i=this.length,l=function(){--r||o.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";i--;)(n=X.get(a[i],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(l));return l(),o.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oe=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ae=["Top","Right","Bottom","Left"],ie=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&k.contains(e.ownerDocument,e)&&"none"===k.css(e,"display")},le=function(e,t,n,r){var o,a,i={};for(a in t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=n.apply(e,r||[]),t)e.style[a]=i[a];return o};function se(e,t,n,r){var o,a,i=20,l=r?function(){return r.cur()}:function(){return k.css(e,t,"")},s=l(),u=n&&n[3]||(k.cssNumber[t]?"":"px"),c=(k.cssNumber[t]||"px"!==u&&+s)&&oe.exec(k.css(e,t));if(c&&c[3]!==u){for(s/=2,u=u||c[3],c=+s||1;i--;)k.style(e,t,c+u),(1-a)*(1-(a=l()/s||.5))<=0&&(i=0),c/=a;c*=2,k.style(e,t,c+u),n=n||[]}return n&&(c=+c||+s||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=o)),o}var ue={};function ce(e){var t,n=e.ownerDocument,r=e.nodeName,o=ue[r];return o||(t=n.body.appendChild(n.createElement(r)),o=k.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),ue[r]=o,o)}function pe(e,t){for(var n,r,o=[],a=0,i=e.length;a<i;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(o[a]=X.get(r,"display")||null,o[a]||(r.style.display="")),""===r.style.display&&ie(r)&&(o[a]=ce(r))):"none"!==n&&(o[a]="none",X.set(r,"display",n)));for(a=0;a<i;a++)null!=o[a]&&(e[a].style.display=o[a]);return e}k.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ie(this)?k(this).show():k(this).hide()})}});var de=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,he=/^$|^module$|\/(?:java|ecma)script/i,me={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ge(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&P(e,t)?k.merge([e],n):n}function be(e,t){for(var n=0,r=e.length;n<r;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}me.optgroup=me.option,me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td;var ve,ye,_e=/<|&#?\w+;/;function we(e,t,n,r,o){for(var a,i,l,s,u,c,p=t.createDocumentFragment(),d=[],f=0,h=e.length;f<h;f++)if((a=e[f])||0===a)if("object"===x(a))k.merge(d,a.nodeType?[a]:a);else if(_e.test(a)){for(i=i||p.appendChild(t.createElement("div")),l=(fe.exec(a)||["",""])[1].toLowerCase(),s=me[l]||me._default,i.innerHTML=s[1]+k.htmlPrefilter(a)+s[2],c=s[0];c--;)i=i.lastChild;k.merge(d,i.childNodes),(i=p.firstChild).textContent=""}else d.push(t.createTextNode(a));for(p.textContent="",f=0;a=d[f++];)if(r&&k.inArray(a,r)>-1)o&&o.push(a);else if(u=k.contains(a.ownerDocument,a),i=ge(p.appendChild(a),"script"),u&&be(i),n)for(c=0;a=i[c++];)he.test(a.type||"")&&n.push(a);return p}ve=i.createDocumentFragment().appendChild(i.createElement("div")),(ye=i.createElement("input")).setAttribute("type","radio"),ye.setAttribute("checked","checked"),ye.setAttribute("name","t"),ve.appendChild(ye),b.checkClone=ve.cloneNode(!0).cloneNode(!0).lastChild.checked,ve.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!ve.cloneNode(!0).lastChild.defaultValue;var xe=i.documentElement,ke=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ee(){return!1}function Oe(){try{return i.activeElement}catch(e){}}function je(e,t,n,r,o,a){var i,l;if("object"==typeof t){for(l in"string"!=typeof n&&(r=r||n,n=void 0),t)je(e,l,n,r,t[l],a);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Ee;else if(!o)return e;return 1===a&&(i=o,(o=function(e){return k().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=k.guid++)),e.each(function(){k.event.add(this,t,o,r,n)})}k.event={global:{},add:function(e,t,n,r,o){var a,i,l,s,u,c,p,d,f,h,m,g=X.get(e);if(g)for(n.handler&&(n=(a=n).handler,o=a.selector),o&&k.find.matchesSelector(xe,o),n.guid||(n.guid=k.guid++),(s=g.events)||(s=g.events={}),(i=g.handle)||(i=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(L)||[""]).length;u--;)f=m=(l=Se.exec(t[u])||[])[1],h=(l[2]||"").split(".").sort(),f&&(p=k.event.special[f]||{},f=(o?p.delegateType:p.bindType)||f,p=k.event.special[f]||{},c=k.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:h.join(".")},a),(d=s[f])||((d=s[f]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,r,h,i)||e.addEventListener&&e.addEventListener(f,i)),p.add&&(p.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,c):d.push(c),k.event.global[f]=!0)},remove:function(e,t,n,r,o){var a,i,l,s,u,c,p,d,f,h,m,g=X.hasData(e)&&X.get(e);if(g&&(s=g.events)){for(u=(t=(t||"").match(L)||[""]).length;u--;)if(f=m=(l=Se.exec(t[u])||[])[1],h=(l[2]||"").split(".").sort(),f){for(p=k.event.special[f]||{},d=s[f=(r?p.delegateType:p.bindType)||f]||[],l=l[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=a=d.length;a--;)c=d[a],!o&&m!==c.origType||n&&n.guid!==c.guid||l&&!l.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(a,1),c.selector&&d.delegateCount--,p.remove&&p.remove.call(e,c));i&&!d.length&&(p.teardown&&!1!==p.teardown.call(e,h,g.handle)||k.removeEvent(e,f,g.handle),delete s[f])}else for(f in s)k.event.remove(e,f+t[u],n,r,!0);k.isEmptyObject(s)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,a,i,l=k.event.fix(e),s=new Array(arguments.length),u=(X.get(this,"events")||{})[l.type]||[],c=k.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(i=k.event.handlers.call(this,l,u),t=0;(o=i[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(a=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(r=((k.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,o,a,i,l=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(a=[],i={},n=0;n<s;n++)void 0===i[o=(r=t[n]).selector+" "]&&(i[o]=r.needsContext?k(o,this).index(u)>-1:k.find(o,this,null,[u]).length),i[o]&&a.push(r);a.length&&l.push({elem:u,handlers:a})}return u=this,s<t.length&&l.push({elem:u,handlers:t.slice(s)}),l},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Oe()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Oe()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&P(this,"input"))return this.click(),!1},_default:function(e){return P(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ke.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||k.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),k.fn.extend({on:function(e,t,n,r){return je(this,e,t,n,r)},one:function(e,t,n,r){return je(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){k.event.remove(this,e,n,t)})}});var Pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ze=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Fe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ne(e,t){return P(e,"table")&&P(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var n,r,o,a,i,l,s,u;if(1===t.nodeType){if(X.hasData(e)&&(a=X.access(e),i=X.set(t,a),u=a.events))for(o in delete i.handle,i.events={},u)for(n=0,r=u[o].length;n<r;n++)k.event.add(t,o,u[o][n]);Z.hasData(e)&&(l=Z.access(e),s=k.extend({},l),Z.set(t,s))}}function Le(e,t,n,r){t=u.apply([],t);var o,a,i,l,s,c,p=0,d=e.length,f=d-1,h=t[0],m=v(h);if(m||d>1&&"string"==typeof h&&!b.checkClone&&Ae.test(h))return e.each(function(o){var a=e.eq(o);m&&(t[0]=h.call(this,o,a.html())),Le(a,t,n,r)});if(d&&(a=(o=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=a),a||r)){for(l=(i=k.map(ge(o,"script"),De)).length;p<d;p++)s=o,p!==f&&(s=k.clone(s,!0,!0),l&&k.merge(i,ge(s,"script"))),n.call(e[p],s,p);if(l)for(c=i[i.length-1].ownerDocument,k.map(i,Me),p=0;p<l;p++)s=i[p],he.test(s.type||"")&&!X.access(s,"globalEval")&&k.contains(c,s)&&(s.src&&"module"!==(s.type||"").toLowerCase()?k._evalUrl&&k._evalUrl(s.src):w(s.textContent.replace(Fe,""),c,s))}return e}function Ie(e,t,n){for(var r,o=t?k.filter(t,e):e,a=0;null!=(r=o[a]);a++)n||1!==r.nodeType||k.cleanData(ge(r)),r.parentNode&&(n&&k.contains(r.ownerDocument,r)&&be(ge(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e.replace(Pe,"<$1></$2>")},clone:function(e,t,n){var r,o,a,i,l,s,u,c=e.cloneNode(!0),p=k.contains(e.ownerDocument,e);if(!(b.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(i=ge(c),r=0,o=(a=ge(e)).length;r<o;r++)l=a[r],s=i[r],void 0,"input"===(u=s.nodeName.toLowerCase())&&de.test(l.type)?s.checked=l.checked:"input"!==u&&"textarea"!==u||(s.defaultValue=l.defaultValue);if(t)if(n)for(a=a||ge(e),i=i||ge(c),r=0,o=a.length;r<o;r++)Re(a[r],i[r]);else Re(e,c);return(i=ge(c,"script")).length>0&&be(i,!p&&ge(e,"script")),c},cleanData:function(e){for(var t,n,r,o=k.event.special,a=0;void 0!==(n=e[a]);a++)if(J(n)){if(t=n[X.expando]){if(t.events)for(r in t.events)o[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[X.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Ie(this,e,!0)},remove:function(e){return Ie(this,e)},text:function(e){return W(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Le(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)})},prepend:function(){return Le(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return W(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ze.test(e)&&!me[(fe.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(ge(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Le(this,arguments,function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(ge(this)),n&&n.replaceChild(t,this))},e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){k.fn[e]=function(e){for(var n,r=[],o=k(e),a=o.length-1,i=0;i<=a;i++)n=i===a?this:this.clone(!0),k(o[i])[t](n),c.apply(r,n.get());return this.pushStack(r)}});var qe=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),Ue=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Be=new RegExp(ae.join("|"),"i");function Ve(e,t,n){var r,o,a,i,l=e.style;return(n=n||Ue(e))&&(""!==(i=n.getPropertyValue(t)||n[t])||k.contains(e.ownerDocument,e)||(i=k.style(e,t)),!b.pixelBoxStyles()&&qe.test(i)&&Be.test(t)&&(r=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=i,i=n.width,l.width=r,l.minWidth=o,l.maxWidth=a)),void 0!==i?i+"":i}function He(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",xe.appendChild(u).appendChild(c);var e=n.getComputedStyle(c);r="1%"!==e.top,s=12===t(e.marginLeft),c.style.right="60%",l=36===t(e.right),o=36===t(e.width),c.style.position="absolute",a=36===c.offsetWidth||"absolute",xe.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var r,o,a,l,s,u=i.createElement("div"),c=i.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===c.style.backgroundClip,k.extend(b,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),l},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),a}}))}();var We=/^(none|table(?!-c[ea]).+)/,Ke=/^--/,Ge={position:"absolute",visibility:"hidden",display:"block"},$e={letterSpacing:"0",fontWeight:"400"},Ye=["Webkit","Moz","ms"],Je=i.createElement("div").style;function Qe(e){var t=k.cssProps[e];return t||(t=k.cssProps[e]=function(e){if(e in Je)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ye.length;n--;)if((e=Ye[n]+t)in Je)return e}(e)||e),t}function Xe(e,t,n){var r=oe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ze(e,t,n,r,o,a){var i="width"===t?1:0,l=0,s=0;if(n===(r?"border":"content"))return 0;for(;i<4;i+=2)"margin"===n&&(s+=k.css(e,n+ae[i],!0,o)),r?("content"===n&&(s-=k.css(e,"padding"+ae[i],!0,o)),"margin"!==n&&(s-=k.css(e,"border"+ae[i]+"Width",!0,o))):(s+=k.css(e,"padding"+ae[i],!0,o),"padding"!==n?s+=k.css(e,"border"+ae[i]+"Width",!0,o):l+=k.css(e,"border"+ae[i]+"Width",!0,o));return!r&&a>=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-s-l-.5))),s}function et(e,t,n){var r=Ue(e),o=Ve(e,t,r),a="border-box"===k.css(e,"boxSizing",!1,r),i=a;if(qe.test(o)){if(!n)return o;o="auto"}return i=i&&(b.boxSizingReliable()||o===e.style[t]),("auto"===o||!parseFloat(o)&&"inline"===k.css(e,"display",!1,r))&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)],i=!0),(o=parseFloat(o)||0)+Ze(e,t,n||(a?"border":"content"),i,r,o)+"px"}function tt(e,t,n,r,o){return new tt.prototype.init(e,t,n,r,o)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,i,l=Y(t),s=Ke.test(t),u=e.style;if(s||(t=Qe(l)),i=k.cssHooks[t]||k.cssHooks[l],void 0===n)return i&&"get"in i&&void 0!==(o=i.get(e,!1,r))?o:u[t];"string"===(a=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=se(e,t,o),a="number"),null!=n&&n==n&&("number"===a&&(n+=o&&o[3]||(k.cssNumber[l]?"":"px")),b.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,r))||(s?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var o,a,i,l=Y(t);return Ke.test(t)||(t=Qe(l)),(i=k.cssHooks[t]||k.cssHooks[l])&&"get"in i&&(o=i.get(e,!0,n)),void 0===o&&(o=Ve(e,t,r)),"normal"===o&&t in $e&&(o=$e[t]),""===n||n?(a=parseFloat(o),!0===n||isFinite(a)?a||0:o):o}}),k.each(["height","width"],function(e,t){k.cssHooks[t]={get:function(e,n,r){if(n)return!We.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?et(e,t,r):le(e,Ge,function(){return et(e,t,r)})},set:function(e,n,r){var o,a=Ue(e),i="border-box"===k.css(e,"boxSizing",!1,a),l=r&&Ze(e,t,r,i,a);return i&&b.scrollboxSize()===a.position&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-Ze(e,t,"border",!1,a)-.5)),l&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),Xe(0,n,l)}}}),k.cssHooks.marginLeft=He(b.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-le(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(e,t){k.cssHooks[e+t]={expand:function(n){for(var r=0,o={},a="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ae[r]+t]=a[r]||a[r-2]||a[0];return o}},"margin"!==e&&(k.cssHooks[e+t].set=Xe)}),k.fn.extend({css:function(e,t){return W(this,function(e,t,n){var r,o,a={},i=0;if(Array.isArray(t)){for(r=Ue(e),o=t.length;i<o;i++)a[t[i]]=k.css(e,t[i],!1,r);return a}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,arguments.length>1)}}),k.Tween=tt,tt.prototype={constructor:tt,init:function(e,t,n,r,o,a){this.elem=e,this.prop=n,this.easing=o||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(k.cssNumber[n]?"":"px")},cur:function(){var e=tt.propHooks[this.prop];return e&&e.get?e.get(this):tt.propHooks._default.get(this)},run:function(e){var t,n=tt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):tt.propHooks._default.set(this),this}},tt.prototype.init.prototype=tt.prototype,tt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[k.cssProps[e.prop]]&&!k.cssHooks[e.prop]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},tt.propHooks.scrollTop=tt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=tt.prototype.init,k.fx.step={};var nt,rt,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function it(){rt&&(!1===i.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(it):n.setTimeout(it,k.fx.interval),k.fx.tick())}function lt(){return n.setTimeout(function(){nt=void 0}),nt=Date.now()}function st(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ae[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ut(e,t,n){for(var r,o=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),a=0,i=o.length;a<i;a++)if(r=o[a].call(n,t,e))return r}function ct(e,t,n){var r,o,a=0,i=ct.prefilters.length,l=k.Deferred().always(function(){delete s.elem}),s=function(){if(o)return!1;for(var t=nt||lt(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),a=0,i=u.tweens.length;a<i;a++)u.tweens[a].run(r);return l.notifyWith(e,[u,r,n]),r<1&&i?n:(i||l.notifyWith(e,[u,1,0]),l.resolveWith(e,[u]),!1)},u=l.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:nt||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=k.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)u.tweens[n].run(1);return t?(l.notifyWith(e,[u,1,0]),l.resolveWith(e,[u,t])):l.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,r,o,a,i;for(n in e)if(o=t[r=Y(n)],a=e[n],Array.isArray(a)&&(o=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(i=k.cssHooks[r])&&"expand"in i)for(n in a=i.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=o);else t[r]=o}(c,u.opts.specialEasing);a<i;a++)if(r=ct.prefilters[a].call(u,e,c,u.opts))return v(r.stop)&&(k._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return k.map(c,ut,u),v(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),k.fx.timer(k.extend(s,{elem:e,anim:u,queue:u.opts.queue})),u}k.Animation=k.extend(ct,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,oe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(L);for(var n,r=0,o=e.length;r<o;r++)n=e[r],ct.tweeners[n]=ct.tweeners[n]||[],ct.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,a,i,l,s,u,c,p="width"in t||"height"in t,d=this,f={},h=e.style,m=e.nodeType&&ie(e),g=X.get(e,"fxshow");for(r in n.queue||(null==(i=k._queueHooks(e,"fx")).unqueued&&(i.unqueued=0,l=i.empty.fire,i.empty.fire=function(){i.unqueued||l()}),i.unqueued++,d.always(function(){d.always(function(){i.unqueued--,k.queue(e,"fx").length||i.empty.fire()})})),t)if(o=t[r],ot.test(o)){if(delete t[r],a=a||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[r])continue;m=!0}f[r]=g&&g[r]||k.style(e,r)}if((s=!k.isEmptyObject(t))||!k.isEmptyObject(f))for(r in p&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=g&&g.display)&&(u=X.get(e,"display")),"none"===(c=k.css(e,"display"))&&(u?c=u:(pe([e],!0),u=e.style.display||u,c=k.css(e,"display"),pe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===k.css(e,"float")&&(s||(d.done(function(){h.display=u}),null==u&&(c=h.display,u="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),s=!1,f)s||(g?"hidden"in g&&(m=g.hidden):g=X.access(e,"fxshow",{display:u}),a&&(g.hidden=!m),m&&pe([e],!0),d.done(function(){for(r in m||pe([e]),X.remove(e,"fxshow"),f)k.style(e,r,f[r])})),s=ut(m?g[r]:0,r,d),r in g||(g[r]=s.start,m&&(s.end=s.start,s.start=0))}],prefilter:function(e,t){t?ct.prefilters.unshift(e):ct.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ie).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=k.isEmptyObject(e),a=k.speed(t,n,r),i=function(){var t=ct(this,k.extend({},e),a);(o||X.get(this,"finish"))&&t.stop(!0)};return i.finish=i,o||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",a=k.timers,i=X.get(this);if(o)i[o]&&i[o].stop&&r(i[o]);else for(o in i)i[o]&&i[o].stop&&at.test(o)&&r(i[o]);for(o=a.length;o--;)a[o].elem!==this||null!=e&&a[o].queue!==e||(a[o].anim.stop(n),t=!1,a.splice(o,1));!t&&n||k.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=X.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],a=k.timers,i=r?r.length:0;for(n.finish=!0,k.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<i;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),k.each(["toggle","show","hide"],function(e,t){var n=k.fn[t];k.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(st(t,!0),e,r,o)}}),k.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){k.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(nt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),nt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){rt||(rt=!0,it())},k.fx.stop=function(){rt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}})},function(){var e=i.createElement("input"),t=i.createElement("select").appendChild(i.createElement("option"));e.type="checkbox",b.checkOn=""!==e.value,b.optSelected=t.selected,(e=i.createElement("input")).value="t",e.type="radio",b.radioValue="t"===e.value}();var pt,dt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return W(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var r,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?k.prop(e,t,n):(1===a&&k.isXMLDoc(e)||(o=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!b.radioValue&&"radio"===t&&P(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(L);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||k.find.attr;dt[t]=function(e,t,r){var o,a,i=t.toLowerCase();return r||(a=dt[i],dt[i]=o,o=null!=n(e,t,r)?i:null,dt[i]=a),o}});var ft=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function mt(e){return(e.match(L)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}k.fn.extend({prop:function(e,t){return W(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var r,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&k.isXMLDoc(e)||(t=k.propFix[t]||t,o=k.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,n,r,o,a,i,l,s=0;if(v(e))return this.each(function(t){k(this).addClass(e.call(this,t,gt(this)))});if((t=bt(e)).length)for(;n=this[s++];)if(o=gt(n),r=1===n.nodeType&&" "+mt(o)+" "){for(i=0;a=t[i++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");o!==(l=mt(r))&&n.setAttribute("class",l)}return this},removeClass:function(e){var t,n,r,o,a,i,l,s=0;if(v(e))return this.each(function(t){k(this).removeClass(e.call(this,t,gt(this)))});if(!arguments.length)return this.attr("class","");if((t=bt(e)).length)for(;n=this[s++];)if(o=gt(n),r=1===n.nodeType&&" "+mt(o)+" "){for(i=0;a=t[i++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");o!==(l=mt(r))&&n.setAttribute("class",l)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):v(e)?this.each(function(n){k(this).toggleClass(e.call(this,n,gt(this),t),t)}):this.each(function(){var t,o,a,i;if(r)for(o=0,a=k(this),i=bt(e);t=i[o++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=gt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+mt(gt(n))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;k.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=v(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,k(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=k.map(o,function(e){return null==e?"":e+""})),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=k.valHooks[o.type]||k.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(vt,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:mt(k.text(e))}},select:{get:function(e){var t,n,r,o=e.options,a=e.selectedIndex,i="select-one"===e.type,l=i?null:[],s=i?a+1:o.length;for(r=a<0?s:i?a:0;r<s;r++)if(((n=o[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!P(n.parentNode,"optgroup"))){if(t=k(n).val(),i)return t;l.push(t)}return l},set:function(e,t){for(var n,r,o=e.options,a=k.makeArray(t),i=o.length;i--;)((r=o[i]).selected=k.inArray(k.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},b.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),b.focusin="onfocusin"in n;var yt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,r,o){var a,l,s,u,c,p,d,f,m=[r||i],g=h.call(e,"type")?e.type:e,b=h.call(e,"namespace")?e.namespace.split("."):[];if(l=f=s=r=r||i,3!==r.nodeType&&8!==r.nodeType&&!yt.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(g=(b=g.split(".")).shift(),b.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[k.expando]?e:new k.Event(g,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[g]||{},o||!d.trigger||!1!==d.trigger.apply(r,t))){if(!o&&!d.noBubble&&!y(r)){for(u=d.delegateType||g,yt.test(u+g)||(l=l.parentNode);l;l=l.parentNode)m.push(l),s=l;s===(r.ownerDocument||i)&&m.push(s.defaultView||s.parentWindow||n)}for(a=0;(l=m[a++])&&!e.isPropagationStopped();)f=l,e.type=a>1?u:d.bindType||g,(p=(X.get(l,"events")||{})[e.type]&&X.get(l,"handle"))&&p.apply(l,t),(p=c&&l[c])&&p.apply&&J(l)&&(e.result=p.apply(l,t),!1===e.result&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(m.pop(),t)||!J(r)||c&&v(r[g])&&!y(r)&&((s=r[c])&&(r[c]=null),k.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,_t),r[g](),e.isPropagationStopped()&&f.removeEventListener(g,_t),k.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),b.focusin||k.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=X.access(r,t);o||r.addEventListener(e,n,!0),X.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=X.access(r,t)-1;o?X.access(r,t,o):(r.removeEventListener(e,n,!0),X.remove(r,t))}}});var wt=n.location,xt=Date.now(),kt=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Ct=/\[\]$/,St=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,r){var o;if(Array.isArray(t))k.each(t,function(t,o){n||Ct.test(e)?r(e,o):Ot(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==x(t))r(e,t);else for(o in t)Ot(e+"["+o+"]",t[o],n,r)}k.param=function(e,t){var n,r=[],o=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){o(this.name,this.value)});else for(n in e)Ot(n,e[n],t,o);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Et.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!de.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}});var jt=/%20/g,Pt=/#.*$/,zt=/([?&])_=[^&]*/,At=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,Nt=/^\/\//,Dt={},Mt={},Rt="*/".concat("*"),Lt=i.createElement("a");function It(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,a=t.toLowerCase().match(L)||[];if(v(n))for(;r=a[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qt(e,t,n,r){var o={},a=e===Mt;function i(l){var s;return o[l]=!0,k.each(e[l]||[],function(e,l){var u=l(t,n,r);return"string"!=typeof u||a||o[u]?a?!(s=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}),s}return i(t.dataTypes[0])||!o["*"]&&i("*")}function Ut(e,t){var n,r,o=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}Lt.href=wt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,k.ajaxSettings),t):Ut(k.ajaxSettings,e)},ajaxPrefilter:It(Dt),ajaxTransport:It(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,a,l,s,u,c,p,d,f,h=k.ajaxSetup({},t),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?k(m):k.event,b=k.Deferred(),v=k.Callbacks("once memory"),y=h.statusCode||{},_={},w={},x="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!l)for(l={};t=At.exec(a);)l[t[1].toLowerCase()]=t[2];t=l[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),S(0,t),this}};if(b.promise(C),h.url=((e||h.url||wt.href)+"").replace(Nt,wt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(L)||[""],null==h.crossDomain){u=i.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=Lt.protocol+"//"+Lt.host!=u.protocol+"//"+u.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),qt(Dt,h,t,C),c)return C;for(d in(p=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ft.test(h.type),o=h.url.replace(Pt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(jt,"+")):(f=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(kt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(zt,"$1"),f=(kt.test(o)?"&":"?")+"_="+xt+++f),h.url=o+f),h.ifModified&&(k.lastModified[o]&&C.setRequestHeader("If-Modified-Since",k.lastModified[o]),k.etag[o]&&C.setRequestHeader("If-None-Match",k.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(m,C,h)||c))return C.abort();if(x="abort",v.add(h.complete),C.done(h.success),C.fail(h.error),r=qt(Mt,h,t,C)){if(C.readyState=1,p&&g.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(s=n.setTimeout(function(){C.abort("timeout")},h.timeout));try{c=!1,r.send(_,S)}catch(e){if(c)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,i,l){var u,d,f,_,w,x=t;c||(c=!0,s&&n.clearTimeout(s),r=void 0,a=l||"",C.readyState=e>0?4:0,u=e>=200&&e<300||304===e,i&&(_=function(e,t,n){for(var r,o,a,i,l=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in l)if(l[o]&&l[o].test(r)){s.unshift(o);break}if(s[0]in n)a=s[0];else{for(o in n){if(!s[0]||e.converters[o+" "+s[0]]){a=o;break}i||(i=o)}a=a||i}if(a)return a!==s[0]&&s.unshift(a),n[a]}(h,C,i)),_=function(e,t,n,r){var o,a,i,l,s,u={},c=e.dataTypes.slice();if(c[1])for(i in e.converters)u[i.toLowerCase()]=e.converters[i];for(a=c.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!s&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=a,a=c.shift())if("*"===a)a=s;else if("*"!==s&&s!==a){if(!(i=u[s+" "+a]||u["* "+a]))for(o in u)if((l=o.split(" "))[1]===a&&(i=u[s+" "+l[0]]||u["* "+l[0]])){!0===i?i=u[o]:!0!==u[o]&&(a=l[0],c.unshift(l[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+s+" to "+a}}}return{state:"success",data:t}}(h,_,C,u),u?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(k.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(k.etag[o]=w)),204===e||"HEAD"===h.type?x="nocontent":304===e?x="notmodified":(x=_.state,d=_.data,u=!(f=_.error))):(f=x,!e&&x||(x="error",e<0&&(e=0))),C.status=e,C.statusText=(t||x)+"",u?b.resolveWith(m,[d,x,C]):b.rejectWith(m,[C,x,f]),C.statusCode(y),y=void 0,p&&g.trigger(u?"ajaxSuccess":"ajaxError",[C,h,u?d:f]),v.fireWith(m,[C,x]),p&&(g.trigger("ajaxComplete",[C,h]),--k.active||k.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,t){k[t]=function(e,n,r,o){return v(n)&&(o=o||r,r=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:o,data:n,success:r},k.isPlainObject(e)&&e))}}),k._evalUrl=function(e){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v(e)?this.each(function(t){k(this).wrapInner(e.call(this,t))}):this.each(function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v(e);return this.each(function(n){k(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},Vt=k.ajaxSettings.xhr();b.cors=!!Vt&&"withCredentials"in Vt,b.ajax=Vt=!!Vt,k.ajaxTransport(function(e){var t,r;if(b.cors||Vt&&!e.crossDomain)return{send:function(o,a){var i,l=e.xhr();if(l.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)l[i]=e.xhrFields[i];for(i in e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)l.setRequestHeader(i,o[i]);t=function(e){return function(){t&&(t=r=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,"abort"===e?l.abort():"error"===e?"number"!=typeof l.status?a(0,"error"):a(l.status,l.statusText):a(Bt[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=t(),r=l.onerror=l.ontimeout=t("error"),void 0!==l.onabort?l.onabort=r:l.onreadystatechange=function(){4===l.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{l.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,o){t=k("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ht,Wt=[],Kt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wt.pop()||k.expando+"_"+xt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,r){var o,a,i,l=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(l||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,l?e[l]=e[l].replace(Kt,"$1"+o):!1!==e.jsonp&&(e.url+=(kt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return i||k.error(o+" was not called"),i[0]},e.dataTypes[0]="json",a=n[o],n[o]=function(){i=arguments},r.always(function(){void 0===a?k(n).removeProp(o):n[o]=a,e[o]&&(e.jsonpCallback=t.jsonpCallback,Wt.push(o)),i&&v(a)&&a(i[0]),i=a=void 0}),"script"}),b.createHTMLDocument=((Ht=i.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ht.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(b.createHTMLDocument?((r=(t=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,t.head.appendChild(r)):t=i),o=z.exec(e),a=!n&&[],o?[t.createElement(o[1])]:(o=we([e],t,a),a&&a.length&&k(a).remove(),k.merge([],o.childNodes)));var r,o,a},k.fn.load=function(e,t,n){var r,o,a,i=this,l=e.indexOf(" ");return l>-1&&(r=mt(e.slice(l)),e=e.slice(0,l)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),i.length>0&&k.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){a=arguments,i.html(r?k("<div>").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){i.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(e,t,n){var r,o,a,i,l,s,u=k.css(e,"position"),c=k(e),p={};"static"===u&&(e.style.position="relative"),l=c.offset(),a=k.css(e,"top"),s=k.css(e,"left"),("absolute"===u||"fixed"===u)&&(a+s).indexOf("auto")>-1?(i=(r=c.position()).top,o=r.left):(i=parseFloat(a)||0,o=parseFloat(s)||0),v(t)&&(t=t.call(e,n,k.extend({},l))),null!=t.top&&(p.top=t.top-l.top+i),null!=t.left&&(p.left=t.left-l.left+o),"using"in t?t.using.call(e,p):c.css(p)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),o.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-k.css(r,"marginTop",!0),left:t.left-o.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||xe})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;k.fn[e]=function(r){return W(this,function(e,r,o){var a;if(y(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===o)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:o,n?o:a.pageYOffset):e[r]=o},e,r,arguments.length)}}),k.each(["top","left"],function(e,t){k.cssHooks[t]=He(b.pixelPosition,function(e,n){if(n)return n=Ve(e,t),qe.test(n)?k(e).position()[t]+"px":n})}),k.each({Height:"height",Width:"width"},function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){k.fn[r]=function(o,a){var i=arguments.length&&(n||"boolean"!=typeof o),l=n||(!0===o||!0===a?"margin":"border");return W(this,function(t,n,o){var a;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===o?k.css(t,n,l):k.style(t,n,o,l)},t,i?o:void 0,i)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),k.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),k.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,o},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=P,k.isFunction=v,k.isWindow=y,k.camelCase=Y,k.type=x,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(r=function(){return k}.apply(t,[]))||(e.exports=r);var Gt=n.jQuery,$t=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=$t),e&&n.jQuery===k&&(n.jQuery=Gt),k},o||(n.jQuery=n.$=k),k})},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=p(n(1)),i=p(n(3)),l=n(9),s=n(5),u=p(n(10)),c=n(19);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(){try{return window.history.state||{}}catch(e){return{}}};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(c.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,c.supportsHistory)(),p=!(0,c.supportsPopStateOnHashChange)(),f=e.forceRefresh,h=void 0!==f&&f,m=e.getUserConfirmation,g=void 0===m?c.getConfirmation:m,b=e.keyLength,v=void 0===b?6:b,y=e.basename?(0,s.stripTrailingSlash)((0,s.addLeadingSlash)(e.basename)):"",_=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return(0,a.default)(!y||(0,s.hasBasename)(i,y),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+y+'".'),y&&(i=(0,s.stripBasename)(i,y)),(0,l.createLocation)(i,r,n)},w=function(){return Math.random().toString(36).substr(2,v)},x=(0,u.default)(),k=function(e){o(M,e),M.length=t.length,x.notifyListeners(M.location,M.action)},C=function(e){(0,c.isExtraneousPopstateEvent)(e)||E(_(e.state))},S=function(){E(_(d()))},T=!1,E=function(e){T?(T=!1,k()):x.confirmTransitionTo(e,"POP",g,function(t){t?k({action:"POP",location:e}):O(e)})},O=function(e){var t=M.location,n=P.indexOf(t.key);-1===n&&(n=0);var r=P.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(T=!0,A(o))},j=_(d()),P=[j.key],z=function(e){return y+(0,s.createPath)(e)},A=function(e){t.go(e)},F=0,N=function(e){1===(F+=e)?((0,c.addEventListener)(window,"popstate",C),p&&(0,c.addEventListener)(window,"hashchange",S)):0===F&&((0,c.removeEventListener)(window,"popstate",C),p&&(0,c.removeEventListener)(window,"hashchange",S))},D=!1,M={length:t.length,action:"POP",location:j,createHref:z,push:function(e,o){(0,a.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,l.createLocation)(e,o,w(),M.location);x.confirmTransitionTo(i,"PUSH",g,function(e){if(e){var r=z(i),o=i.key,l=i.state;if(n)if(t.pushState({key:o,state:l},null,r),h)window.location.href=r;else{var s=P.indexOf(M.location.key),u=P.slice(0,-1===s?0:s+1);u.push(i.key),P=u,k({action:"PUSH",location:i})}else(0,a.default)(void 0===l,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(e,o){(0,a.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,l.createLocation)(e,o,w(),M.location);x.confirmTransitionTo(i,"REPLACE",g,function(e){if(e){var r=z(i),o=i.key,l=i.state;if(n)if(t.replaceState({key:o,state:l},null,r),h)window.location.replace(r);else{var s=P.indexOf(M.location.key);-1!==s&&(P[s]=i.key),k({action:"REPLACE",location:i})}else(0,a.default)(void 0===l,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:A,goBack:function(){return A(-1)},goForward:function(){return A(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.setPrompt(e);return D||(N(1),D=!0),function(){return D&&(D=!1,N(-1)),t()}},listen:function(e){var t=x.appendListener(e);return N(1),function(){N(-1),t()}}};return M}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(1)),a=c(n(3)),i=n(9),l=n(5),s=c(n(10)),u=n(19);function c(e){return e&&e.__esModule?e:{default:e}}var p={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+(0,l.stripLeadingSlash)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:l.stripLeadingSlash,decodePath:l.addLeadingSlash},slash:{encodePath:l.addLeadingSlash,decodePath:l.addLeadingSlash}},d=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},f=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(u.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,u.supportsGoWithoutReloadUsingHash)(),c=e.getUserConfirmation,h=void 0===c?u.getConfirmation:c,m=e.hashType,g=void 0===m?"slash":m,b=e.basename?(0,l.stripTrailingSlash)((0,l.addLeadingSlash)(e.basename)):"",v=p[g],y=v.encodePath,_=v.decodePath,w=function(){var e=_(d());return(0,o.default)(!b||(0,l.hasBasename)(e,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+b+'".'),b&&(e=(0,l.stripBasename)(e,b)),(0,i.createLocation)(e)},x=(0,s.default)(),k=function(e){r(R,e),R.length=t.length,x.notifyListeners(R.location,R.action)},C=!1,S=null,T=function(){var e=d(),t=y(e);if(e!==t)f(t);else{var n=w(),r=R.location;if(!C&&(0,i.locationsAreEqual)(r,n))return;if(S===(0,l.createPath)(n))return;S=null,E(n)}},E=function(e){C?(C=!1,k()):x.confirmTransitionTo(e,"POP",h,function(t){t?k({action:"POP",location:e}):O(e)})},O=function(e){var t=R.location,n=A.lastIndexOf((0,l.createPath)(t));-1===n&&(n=0);var r=A.lastIndexOf((0,l.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(C=!0,F(o))},j=d(),P=y(j);j!==P&&f(P);var z=w(),A=[(0,l.createPath)(z)],F=function(e){(0,o.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},N=0,D=function(e){1===(N+=e)?(0,u.addEventListener)(window,"hashchange",T):0===N&&(0,u.removeEventListener)(window,"hashchange",T)},M=!1,R={length:t.length,action:"POP",location:z,createHref:function(e){return"#"+y(b+(0,l.createPath)(e))},push:function(e,t){(0,o.default)(void 0===t,"Hash history cannot push state; it is ignored");var n=(0,i.createLocation)(e,void 0,void 0,R.location);x.confirmTransitionTo(n,"PUSH",h,function(e){if(e){var t=(0,l.createPath)(n),r=y(b+t);if(d()!==r){S=t,function(e){window.location.hash=e}(r);var a=A.lastIndexOf((0,l.createPath)(R.location)),i=A.slice(0,-1===a?0:a+1);i.push(t),A=i,k({action:"PUSH",location:n})}else(0,o.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),k()}})},replace:function(e,t){(0,o.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n=(0,i.createLocation)(e,void 0,void 0,R.location);x.confirmTransitionTo(n,"REPLACE",h,function(e){if(e){var t=(0,l.createPath)(n),r=y(b+t);d()!==r&&(S=t,f(r));var o=A.indexOf((0,l.createPath)(R.location));-1!==o&&(A[o]=t),k({action:"REPLACE",location:n})}})},go:F,goBack:function(){return F(-1)},goForward:function(){return F(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.setPrompt(e);return M||(D(1),M=!0),function(){return M&&(M=!1,D(-1)),t()}},listen:function(e){var t=x.appendListener(e);return D(1),function(){D(-1),t()}}};return R}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=u(n(1)),i=n(5),l=n(9),s=u(n(10));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e,t,n){return Math.min(Math.max(e,t),n)};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,u=void 0===n?["/"]:n,p=e.initialIndex,d=void 0===p?0:p,f=e.keyLength,h=void 0===f?6:f,m=(0,s.default)(),g=function(e){o(x,e),x.length=x.entries.length,m.notifyListeners(x.location,x.action)},b=function(){return Math.random().toString(36).substr(2,h)},v=c(d,0,u.length-1),y=u.map(function(e){return"string"==typeof e?(0,l.createLocation)(e,void 0,b()):(0,l.createLocation)(e,void 0,e.key||b())}),_=i.createPath,w=function(e){var n=c(x.index+e,0,x.entries.length-1),r=x.entries[n];m.confirmTransitionTo(r,"POP",t,function(e){e?g({action:"POP",location:r,index:n}):g()})},x={length:y.length,action:"POP",location:y[v],index:v,entries:y,createHref:_,push:function(e,n){(0,a.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=(0,l.createLocation)(e,n,b(),x.location);m.confirmTransitionTo(o,"PUSH",t,function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),g({action:"PUSH",location:o,index:t,entries:n})}})},replace:function(e,n){(0,a.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=(0,l.createLocation)(e,n,b(),x.location);m.confirmTransitionTo(o,"REPLACE",t,function(e){e&&(x.entries[x.index]=o,g({action:"REPLACE",location:o}))})},go:w,goBack:function(){return w(-1)},goForward:function(){return w(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return m.setPrompt(e)},listen:function(e){return m.appendListener(e)}};return x}},function(e,t,n){var r=n(45);e.exports=f,e.exports.parse=a,e.exports.compile=function(e,t){return l(a(e,t))},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,i=0,l="",c=t&&t.delimiter||"/";null!=(n=o.exec(e));){var p=n[0],d=n[1],f=n.index;if(l+=e.slice(i,f),i=f+p.length,d)l+=d[1];else{var h=e[i],m=n[2],g=n[3],b=n[4],v=n[5],y=n[6],_=n[7];l&&(r.push(l),l="");var w=null!=m&&null!=h&&h!==m,x="+"===y||"*"===y,k="?"===y||"*"===y,C=n[2]||c,S=b||v;r.push({name:g||a++,prefix:m||"",delimiter:C,optional:k,repeat:x,partial:w,asterisk:!!_,pattern:S?u(S):_?".*":"[^"+s(C)+"]+?"})}}return i<e.length&&(l+=e.substr(i)),l&&r.push(l),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function l(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,o){for(var a="",l=n||{},s=(o||{}).pretty?i:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var p,d=l[c.name];if(null==d){if(c.optional){c.partial&&(a+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(d)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var f=0;f<d.length;f++){if(p=s(d[f]),!t[u].test(p))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(p)+"`");a+=(0===f?c.prefix:c.delimiter)+p}}else{if(p=c.asterisk?encodeURI(d).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):s(d),!t[u].test(p))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+p+'"');a+=c.prefix+p}}else a+=c}return a}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,a=!1!==n.end,i="",l=0;l<e.length;l++){var u=e[l];if("string"==typeof u)i+=s(u);else{var d=s(u.prefix),f="(?:"+u.pattern+")";t.push(u),u.repeat&&(f+="(?:"+d+f+")*"),i+=f=u.optional?u.partial?d+"("+f+")?":"(?:"+d+"("+f+"))?":d+"("+f+")"}}var h=s(n.delimiter||"/"),m=i.slice(-h.length)===h;return o||(i=(m?i.slice(0,-h.length):i)+"(?:"+h+"(?=$))?"),i+=a?"$":o&&m?"":"(?="+h+"|$)",c(new RegExp("^"+i,p(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(f(e[o],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",p(n)),t)}(e,t,n):function(e,t,n){return d(a(e,n),t,n)}(e,t,n)}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){var r;r=function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,i=Object.getPrototypeOf,l=i&&i(Object);return function s(u,c,p){if("string"!=typeof c){if(l){var d=i(c);d&&d!==l&&s(u,d,p)}var f=r(c);o&&(f=f.concat(o(c)));for(var h=0;h<f.length;++h){var m=f[h];if(!(e[m]||t[m]||p&&p[m])){var g=a(c,m);try{n(u,m,g)}catch(e){}}}return u}return u}},e.exports=r()}]);