diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e11dd4..ecf81ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.1.5 (Nov 30, 2019) + +- Fix the issue of drag and drop (#31). + ## 1.1.4 (Oct 26, 2019) - Upgrade to Cropper.js v1.5.6. diff --git a/dist/main.js b/dist/main.js index 80aaa7b..b75be0f 100644 --- a/dist/main.js +++ b/dist/main.js @@ -14,4 +14,4 @@ var r=Object.freeze({});function i(t){return null==t}function o(t){return null!= * * Date: 2019-10-04T04:33:48.372Z */ -t.exports=function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var n=0;n0&&t<1/0};function I(t){return void 0===t}function P(e){return"object"===t(e)&&null!==e}var N=Object.prototype.hasOwnProperty;function $(t){if(!P(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&N.call(n,"isPrototypeOf")}catch(t){return!1}}function L(t){return"function"==typeof t}var F=Array.prototype.slice;function R(t){return Array.from?Array.from(t):F.call(t)}function B(t,e){return t&&L(e)&&(Array.isArray(t)||D(t.length)?R(t).forEach((function(n,r){e.call(t,n,r,t)})):P(t)&&Object.keys(t).forEach((function(n){e.call(t,t[n],n,t)}))),t}var z=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&n.forEach((function(e){P(e)&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t},W=/\.\d*(?:0|9){12}\d*$/;function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return W.test(t)?Math.round(t*e)/e:t}var H=/^width|height|left|top|marginLeft|marginTop$/;function V(t,e){var n=t.style;B(e,(function(t,e){H.test(e)&&D(t)&&(t="".concat(t,"px")),n[e]=t}))}function X(t,e){if(e)if(D(t.length))B(t,(function(t){X(t,e)}));else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function Y(t,e){e&&(D(t.length)?B(t,(function(t){Y(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function G(t,e,n){e&&(D(t.length)?B(t,(function(t){G(t,e,n)})):n?X(t,e):Y(t,e))}var q=/([a-z\d])([A-Z])/g;function K(t){return t.replace(q,"$1-$2").toLowerCase()}function Z(t,e){return P(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(K(e)))}function J(t,e,n){P(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(K(e)),n)}var Q=/\s\s*/,tt=function(){var t=!1;if(a){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});s.addEventListener("test",n,r),s.removeEventListener("test",n,r)}return t}();function et(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(Q).forEach((function(e){if(!tt){var o=t.listeners;o&&o[e]&&o[e][n]&&(i=o[e][n],delete o[e][n],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,i,r)}))}function nt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(Q).forEach((function(e){if(r.once&&!tt){var o=t.listeners,a=void 0===o?{}:o;i=function(){delete a[e][n],t.removeEventListener(e,i,r);for(var o=arguments.length,s=new Array(o),c=0;c1&&void 0!==arguments[1]?arguments[1]:"contain",o=j(r),a=j(n);if(o&&a){var s=n*e;"contain"===i&&s>r||"cover"===i&&s=8&&(o=c+f)}}}if(o){var l,p,h=n.getUint16(o,r);for(p=0;pt.width?3===n?s=t.height*a:c=t.width/a:3===n?c=t.width/a:s=t.height*a;var u={aspectRatio:a,naturalWidth:i,naturalHeight:o,width:s,height:c};u.left=(t.width-s)/2,u.top=(t.height-c)/2,u.oldLeft=u.left,u.oldTop=u.top,this.canvasData=u,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=z({},e),this.initialCanvasData=z({},u)},limitCanvas:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,c=this.cropped&&o;if(t){var u=Number(n.minCanvasWidth)||0,f=Number(n.minCanvasHeight)||0;a>1?(u=Math.max(u,r.width),f=Math.max(f,r.height),3===a&&(f*s>u?u=f*s:f=u/s)):a>0&&(u?u=Math.max(u,c?o.width:0):f?f=Math.max(f,c?o.height:0):c&&(u=o.width,(f=o.height)*s>u?u=f*s:f=u/s));var l=lt({aspectRatio:s,width:u,height:f});u=l.width,f=l.height,i.minWidth=u,i.minHeight=f,i.maxWidth=1/0,i.maxHeight=1/0}if(e)if(a>(c?0:1)){var p=r.width-i.width,h=r.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,h),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,h),c&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=r.height&&(i.minTop=Math.min(0,h),i.maxTop=Math.max(0,h))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(t,e){var n=this.canvasData,r=this.imageData;if(e){var i=function(t){var e=t.width,n=t.height,r=t.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:e};var i=r%90*Math.PI/180,o=Math.sin(i),a=Math.cos(i),s=e*a+n*o,c=e*o+n*a;return r>90?{width:c,height:s}:{width:s,height:c}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=i.width,a=i.height,s=n.width*(o/n.naturalWidth),c=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(c-n.height)/2,n.width=s,n.height=c,n.aspectRatio=o/a,n.naturalWidth=o,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighte.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=e.left+(e.width-i.width)/2,i.top=e.top+(e.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=z({},i)},limitCropBox:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(t){var c=Number(n.minCropBoxWidth)||0,u=Number(n.minCropBoxHeight)||0,f=a?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,l=a?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;c=Math.min(c,r.width),u=Math.min(u,r.height),s&&(c&&u?u*s>c?u=c/s:c=u*s:c?u=c/s:u&&(c=u*s),l*s>f?l=f/s:f=l*s),o.minWidth=Math.min(c,f),o.minHeight=Math.min(u,l),o.maxWidth=f,o.maxHeight=l}e&&(a?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(r.width,i.left+i.width)-o.width,o.maxTop=Math.min(r.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var t=this.options,e=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=e.width&&n.height>=e.height?"move":"all"),V(this.cropBox,z({width:n.width,height:n.height},ut({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),rt(this.element,"crop",this.getData())}},mt={initPreview:function(){var t=this.element,e=this.crossOrigin,n=this.options.preview,r=e?this.crossOriginUrl:this.url,i=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,n){var a=n;"string"==typeof n?a=t.ownerDocument.querySelectorAll(n):n.querySelector&&(a=[n]),this.previews=a,B(a,(function(t){var n=document.createElement("img");J(t,y,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(n.crossOrigin=e),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(n)}))}},resetPreview:function(){B(this.previews,(function(t){var e=Z(t,y);V(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(P(t[e]))try{delete t[e]}catch(n){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(K(e)))}(t,y)}))},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,o=t.width,a=t.height,s=n.left-e.left-t.left,c=n.top-e.top-t.top;this.cropped&&!this.disabled&&(V(this.viewBoxImage,z({width:o,height:a},ut(z({translateX:-s,translateY:-c},t)))),B(this.previews,(function(e){var n=Z(e,y),u=n.width,f=n.height,l=u,p=f,h=1;r&&(p=i*(h=u/r)),i&&p>f&&(l=r*(h=f/i),p=f),V(e,{width:l,height:p}),V(e.getElementsByTagName("img")[0],z({width:o*h,height:a*h},ut(z({translateX:-s*h,translateY:-c*h},t))))})))}},yt={bind:function(){var t=this.element,e=this.options,n=this.cropper;L(e.cropstart)&&nt(t,"cropstart",e.cropstart),L(e.cropmove)&&nt(t,"cropmove",e.cropmove),L(e.cropend)&&nt(t,"cropend",e.cropend),L(e.crop)&&nt(t,"crop",e.crop),L(e.zoom)&&nt(t,"zoom",e.zoom),nt(n,_,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&nt(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&nt(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),nt(t.ownerDocument,S,this.onCropMove=this.cropMove.bind(this)),nt(t.ownerDocument,C,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&nt(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;L(e.cropstart)&&et(t,"cropstart",e.cropstart),L(e.cropmove)&&et(t,"cropmove",e.cropmove),L(e.cropend)&&et(t,"cropend",e.cropend),L(e.crop)&&et(t,"crop",e.crop),L(e.zoom)&&et(t,"zoom",e.zoom),et(n,_,this.onCropStart),e.zoomable&&e.zoomOnWheel&&et(n,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&et(n,"dblclick",this.onDblclick),et(t.ownerDocument,S,this.onCropMove),et(t.ownerDocument,C,this.onCropEnd),e.responsive&&et(window,"resize",this.onResize)}},bt={resize:function(){var t=this.options,e=this.container,n=this.containerData,r=Number(t.minContainerWidth)||200,i=Number(t.minContainerHeight)||100;if(!(this.disabled||n.width<=r||n.height<=i)){var o,a,s=e.offsetWidth/n.width;1===s&&e.offsetHeight===n.height||(t.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(B(o,(function(t,e){o[e]=t*s}))),this.setCropBoxData(B(a,(function(t,e){a[e]=t*s})))))}},dblclick:function(){var t,e;this.disabled||"none"===this.options.dragMode||this.setDragMode((t=this.dragBox,e=f,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?"move":"crop"))},wheel:function(t){var e=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,t)))},cropStart:function(t){var e=t.buttons,n=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(D(e)&&1!==e||D(n)&&0!==n||t.ctrlKey))){var r,i=this.options,o=this.pointers;t.changedTouches?B(t.changedTouches,(function(t){o[t.identifier]=ft(t)})):o[t.pointerId||0]=ft(t),r=Object.keys(o).length>1&&i.zoomable&&i.zoomOnTouch?"zoom":Z(t.target,m),A.test(r)&&!1!==rt(this.element,"cropstart",{originalEvent:t,action:r})&&(t.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,X(this.dragBox,v)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==rt(this.element,"cropmove",{originalEvent:t,action:e})&&(t.changedTouches?B(t.changedTouches,(function(t){z(n[t.identifier]||{},ft(t,!0))})):z(n[t.pointerId||0]||{},ft(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?B(t.changedTouches,(function(t){delete n[t.identifier]})):delete n[t.pointerId||0],e&&(t.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,G(this.dragBox,v,this.cropped&&this.options.modal)),rt(this.element,"cropend",{originalEvent:t,action:e}))}}},wt={change:function(t){var e,n=this.options,r=this.canvasData,o=this.containerData,a=this.cropBoxData,s=this.pointers,c=this.action,u=n.aspectRatio,f=a.left,l=a.top,h=a.width,d=a.height,v=f+h,g=l+d,m=0,y=0,b=o.width,w=o.height,x=!0;!u&&t.shiftKey&&(u=h&&d?h/d:1),this.limited&&(m=a.minLeft,y=a.minTop,b=m+Math.min(o.width,r.width,r.left+r.width),w=y+Math.min(o.height,r.height,r.top+r.height));var _=s[Object.keys(s)[0]],S={x:_.endX-_.startX,y:_.endY-_.startY},C=function(t){switch(t){case"e":v+S.x>b&&(S.x=b-v);break;case"w":f+S.xw&&(S.y=w-g)}};switch(c){case"all":f+=S.x,l+=S.y;break;case"e":if(S.x>=0&&(v>=b||u&&(l<=y||g>=w))){x=!1;break}C("e"),(h+=S.x)<0&&(c="w",f-=h=-h),u&&(d=h/u,l+=(a.height-d)/2);break;case"n":if(S.y<=0&&(l<=y||u&&(f<=m||v>=b))){x=!1;break}C("n"),d-=S.y,l+=S.y,d<0&&(c="s",l-=d=-d),u&&(h=d*u,f+=(a.width-h)/2);break;case"w":if(S.x<=0&&(f<=m||u&&(l<=y||g>=w))){x=!1;break}C("w"),h-=S.x,f+=S.x,h<0&&(c="e",f-=h=-h),u&&(d=h/u,l+=(a.height-d)/2);break;case"s":if(S.y>=0&&(g>=w||u&&(f<=m||v>=b))){x=!1;break}C("s"),(d+=S.y)<0&&(c="n",l-=d=-d),u&&(h=d*u,f+=(a.width-h)/2);break;case"ne":if(u){if(S.y<=0&&(l<=y||v>=b)){x=!1;break}C("n"),d-=S.y,l+=S.y,h=d*u}else C("n"),C("e"),S.x>=0?vy&&(d-=S.y,l+=S.y):(d-=S.y,l+=S.y);h<0&&d<0?(c="sw",l-=d=-d,f-=h=-h):h<0?(c="nw",f-=h=-h):d<0&&(c="se",l-=d=-d);break;case"nw":if(u){if(S.y<=0&&(l<=y||f<=m)){x=!1;break}C("n"),d-=S.y,l+=S.y,h=d*u,f+=a.width-h}else C("n"),C("w"),S.x<=0?f>m?(h-=S.x,f+=S.x):S.y<=0&&l<=y&&(x=!1):(h-=S.x,f+=S.x),S.y<=0?l>y&&(d-=S.y,l+=S.y):(d-=S.y,l+=S.y);h<0&&d<0?(c="se",l-=d=-d,f-=h=-h):h<0?(c="ne",f-=h=-h):d<0&&(c="sw",l-=d=-d);break;case"sw":if(u){if(S.x<=0&&(f<=m||g>=w)){x=!1;break}C("w"),h-=S.x,f+=S.x,d=h/u}else C("s"),C("w"),S.x<=0?f>m?(h-=S.x,f+=S.x):S.y>=0&&g>=w&&(x=!1):(h-=S.x,f+=S.x),S.y>=0?g=0&&(v>=b||g>=w)){x=!1;break}C("e"),d=(h+=S.x)/u}else C("s"),C("e"),S.x>=0?v=0&&g>=w&&(x=!1):h+=S.x,S.y>=0?g0?c=S.y>0?"se":"ne":S.x<0&&(f-=h,c=S.y>0?"sw":"nw"),S.y<0&&(l-=d),this.cropped||(Y(this.cropBox,p),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}x&&(a.width=h,a.height=d,a.left=f,a.top=l,this.action=c,this.renderCropBox()),B(s,(function(t){t.startX=t.endX,t.startY=t.endY}))}},xt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&X(this.dragBox,v),Y(this.cropBox,p),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=z({},this.initialImageData),this.canvasData=z({},this.initialCanvasData),this.cropBoxData=z({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(z(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Y(this.dragBox,v),X(this.cropBox,p)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,B(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Y(this.cropper,l)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,X(this.cropper,l)),this},destroy:function(){var t=this.element;return t.cropper?(t.cropper=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(I(t)?t:r+Number(t),I(e)?e:i+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(D(t)&&(n.left=t,r=!0),D(e)&&(n.top=e,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,null,e)},zoomTo:function(t,e,n){var r=this.options,i=this.canvasData,o=i.width,a=i.height,s=i.naturalWidth,c=i.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&r.zoomable){var u=s*t,f=c*t;if(!1===rt(this.element,"zoom",{ratio:t,oldRatio:o/s,originalEvent:n}))return this;if(n){var l=this.pointers,p=it(this.cropper),h=l&&Object.keys(l).length?function(t){var e=0,n=0,r=0;return B(t,(function(t){var i=t.startX,o=t.startY;e+=i,n+=o,r+=1})),{pageX:e/=r,pageY:n/=r}}(l):{pageX:n.pageX,pageY:n.pageY};i.left-=(u-o)*((h.pageX-p.left-i.left)/o),i.top-=(f-a)*((h.pageY-p.top-i.top)/a)}else $(e)&&D(e.x)&&D(e.y)?(i.left-=(u-o)*((e.x-i.left)/o),i.top-=(f-a)*((e.y-i.top)/a)):(i.left-=(u-o)/2,i.top-=(f-a)/2);i.width=u,i.height=f,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return D(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,D(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(D(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(D(t)&&(n.scaleX=t,r=!0),D(e)&&(n.scaleY=e,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){t={x:o.left-i.left,y:o.top-i.top,width:o.width,height:o.height};var a=r.width/r.naturalWidth;if(B(t,(function(e,n){t[n]=e/a})),e){var s=Math.round(t.y+t.height),c=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=c-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return n.rotatable&&(t.rotate=r.rotate||0),n.scalable&&(t.scaleX=r.scaleX||1,t.scaleY=r.scaleY||1),t},setData:function(t){var e=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&$(t)){var o=!1;e.rotatable&&D(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,o=!0),e.scalable&&(D(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,o=!0),D(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;D(t.x)&&(i.left=t.x*a+r.left),D(t.y)&&(i.top=t.y*a+r.top),D(t.width)&&(i.width=t.width*a),D(t.height)&&(i.height=t.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?z({},this.containerData):{}},getImageData:function(){return this.sized?z({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&B(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){e[n]=t[n]})),e},setCanvasData:function(t){var e=this.canvasData,n=e.aspectRatio;return this.ready&&!this.disabled&&$(t)&&(D(t.left)&&(e.left=t.left),D(t.top)&&(e.top=t.top),D(t.width)?(e.width=t.width,e.height=t.width/n):D(t.height)&&(e.height=t.height,e.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&$(t)&&(D(t.left)&&(r.left=t.left),D(t.top)&&(r.top=t.top),D(t.width)&&t.width!==r.width&&(e=!0,r.width=t.width),D(t.height)&&t.height!==r.height&&(n=!0,r.height=t.height),i&&(e?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,n=pt(this.image,this.imageData,e,t);if(!this.cropped)return n;var r=this.getData(),i=r.x,a=r.y,s=r.width,c=r.height,u=n.width/Math.floor(e.naturalWidth);1!==u&&(i*=u,a*=u,s*=u,c*=u);var f=s/c,l=lt({aspectRatio:f,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),p=lt({aspectRatio:f,width:t.minWidth||0,height:t.minHeight||0},"cover"),h=lt({aspectRatio:f,width:t.width||(1!==u?n.width:s),height:t.height||(1!==u?n.height:c)}),d=h.width,v=h.height;d=Math.min(l.width,Math.max(p.width,d)),v=Math.min(l.height,Math.max(p.height,v));var g=document.createElement("canvas"),m=g.getContext("2d");g.width=U(d),g.height=U(v),m.fillStyle=t.fillColor||"transparent",m.fillRect(0,0,d,v);var y=t.imageSmoothingEnabled,b=void 0===y||y,w=t.imageSmoothingQuality;m.imageSmoothingEnabled=b,w&&(m.imageSmoothingQuality=w);var x,_,S,C,A,k,O=n.width,E=n.height,M=i,T=a;M<=-s||M>O?(M=0,x=0,S=0,A=0):M<=0?(S=-M,M=0,A=x=Math.min(O,s+M)):M<=O&&(S=0,A=x=Math.min(s,O-M)),x<=0||T<=-c||T>E?(T=0,_=0,C=0,k=0):T<=0?(C=-T,T=0,k=_=Math.min(E,c+T)):T<=E&&(C=0,k=_=Math.min(c,E-T));var D=[M,T,x,_];if(A>0&&k>0){var j=d/s;D.push(S*j,C*j,A*j,k*j)}return m.drawImage.apply(m,[n].concat(o(D.map((function(t){return Math.floor(U(t))}))))),g},setAspectRatio:function(t){var e=this.options;return this.disabled||I(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i="crop"===t,o=e.movable&&"move"===t;t=i||o?t:"none",e.dragMode=t,J(n,m,t),G(n,f,i),G(n,g,o),e.cropBoxMovable||(J(r,m,t),G(r,f,i),G(r,g,o))}return this}},_t=s.Cropper,St=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||!E.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=z({},M,$(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var n,r,i;return n=t,i=[{key:"noConflict",value:function(){return window.Cropper=_t,t}},{key:"setDefaults",value:function(t){z(M,$(t)&&t)}}],(r=[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e.cropper){if(e.cropper=this,"img"===n){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(k.test(t))O.test(t)?this.read((i=t.replace(dt,""),o=atob(i),a=new ArrayBuffer(o.length),B(s=new Uint8Array(a),(function(t,e){s[e]=o.charCodeAt(e)})),a)):this.clone();else{var i,o,a,s,c=new XMLHttpRequest,u=this.clone.bind(this);this.reloading=!0,this.xhr=c,c.onabort=u,c.onerror=u,c.ontimeout=u,c.onprogress=function(){"image/jpeg"!==c.getResponseHeader("content-type")&&c.abort()},c.onload=function(){e.read(c.response)},c.onloadend=function(){e.reloading=!1,e.xhr=null},r.checkCrossOrigin&&st(t)&&n.crossOrigin&&(t=ct(t)),c.open("GET",t),c.responseType="arraybuffer",c.withCredentials="use-credentials"===n.crossOrigin,c.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,r=vt(t),i=0,o=1,a=1;if(r>1){this.url=function(t,e){for(var n=[],r=new Uint8Array(t);r.length>0;)n.push(ht.apply(null,R(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}(t,"image/jpeg");var s=function(t){var e=0,n=1,r=1;switch(t){case 2:n=-1;break;case 3:e=-180;break;case 4:r=-1;break;case 5:e=90,r=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90}return{rotate:e,scaleX:n,scaleY:r}}(r);i=s.rotate,o=s.scaleX,a=s.scaleY}e.rotatable&&(n.rotate=i),e.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,n=t.crossOrigin,r=e;this.options.checkCrossOrigin&&st(e)&&(n||(n="anonymous"),r=ct(e)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||e,i.alt=t.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),X(i,h),t.parentNode.insertBefore(i,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var n=s.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(s.navigator.userAgent),r=function(e,n){z(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||n){var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||o.removeChild(i)},i.src=e.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}else r(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,n=this.image,r=t.parentNode,i=document.createElement("div");i.innerHTML='
';var o=i.querySelector(".".concat("cropper","-container")),a=o.querySelector(".".concat("cropper","-canvas")),s=o.querySelector(".".concat("cropper","-drag-box")),c=o.querySelector(".".concat("cropper","-crop-box")),u=c.querySelector(".".concat("cropper","-face"));this.container=r,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=c,this.viewBox=o.querySelector(".".concat("cropper","-view-box")),this.face=u,a.appendChild(n),X(t,p),r.insertBefore(o,t.nextSibling),this.isImg||Y(n,h),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,X(c,p),e.guides||X(c.getElementsByClassName("".concat("cropper","-dashed")),p),e.center||X(c.getElementsByClassName("".concat("cropper","-center")),p),e.background&&X(o,"".concat("cropper","-bg")),e.highlight||X(u,d),e.cropBoxMovable&&(X(u,g),J(u,m,"all")),e.cropBoxResizable||(X(c.getElementsByClassName("".concat("cropper","-line")),p),X(c.getElementsByClassName("".concat("cropper","-point")),p)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),L(e.ready)&&nt(t,"ready",e.ready,{once:!0}),rt(t,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Y(this.element,p))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&e(n.prototype,r),i&&e(n,i),t}();return z(St.prototype,gt,mt,yt,bt,wt,xt),St}()},function(t,e,n){var r=n(131);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(39).default)("65540d1b",r,!1,{})},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,"/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}",""])},function(t,e,n){var r=n(133);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(39).default)("81d46ea0",r,!1,{})},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,'/*!\n * Cropper.js v1.5.6\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2019-10-04T04:33:44.164Z\n */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75);overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}',""])},function(t,e,n){"use strict";n(135);var r,i=(r=n(307))&&r.__esModule?r:{default:r};i.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i.default._babelPolyfill=!0},function(t,e,n){"use strict";n(136),n(279),n(281),n(284),n(286),n(288),n(290),n(292),n(294),n(296),n(298),n(300),n(302),n(306)},function(t,e,n){n(137),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(218),n(219),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(87),n(242),n(116),n(243),n(117),n(244),n(245),n(246),n(247),n(118),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),t.exports=n(7)},function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(8),a=n(0),s=n(11),c=n(27).KEY,u=n(2),f=n(51),l=n(40),p=n(30),h=n(5),d=n(68),v=n(97),g=n(139),m=n(54),y=n(3),b=n(4),w=n(10),x=n(15),_=n(26),S=n(29),C=n(34),A=n(100),k=n(20),O=n(53),E=n(9),M=n(32),T=k.f,D=E.f,j=A.f,I=r.Symbol,P=r.JSON,N=P&&P.stringify,$=h("_hidden"),L=h("toPrimitive"),F={}.propertyIsEnumerable,R=f("symbol-registry"),B=f("symbols"),z=f("op-symbols"),W=Object.prototype,U="function"==typeof I&&!!O.f,H=r.QObject,V=!H||!H.prototype||!H.prototype.findChild,X=o&&u((function(){return 7!=C(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=T(W,e);r&&delete W[e],D(t,e,n),r&&t!==W&&D(W,e,r)}:D,Y=function(t){var e=B[t]=C(I.prototype);return e._k=t,e},G=U&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},q=function(t,e,n){return t===W&&q(z,e,n),y(t),e=_(e,!0),y(n),i(B,e)?(n.enumerable?(i(t,$)&&t[$][e]&&(t[$][e]=!1),n=C(n,{enumerable:S(0,!1)})):(i(t,$)||D(t,$,S(1,{})),t[$][e]=!0),X(t,e,n)):D(t,e,n)},K=function(t,e){y(t);for(var n,r=g(e=x(e)),i=0,o=r.length;o>i;)q(t,n=r[i++],e[n]);return t},Z=function(t){var e=F.call(this,t=_(t,!0));return!(this===W&&i(B,t)&&!i(z,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,$)&&this[$][t])||e)},J=function(t,e){if(t=x(t),e=_(e,!0),t!==W||!i(B,e)||i(z,e)){var n=T(t,e);return!n||!i(B,e)||i(t,$)&&t[$][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=j(x(t)),r=[],o=0;n.length>o;)i(B,e=n[o++])||e==$||e==c||r.push(e);return r},tt=function(t){for(var e,n=t===W,r=j(n?z:x(t)),o=[],a=0;r.length>a;)!i(B,e=r[a++])||n&&!i(W,e)||o.push(B[e]);return o};U||(s((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(z,n),i(this,$)&&i(this[$],t)&&(this[$][t]=!1),X(this,t,S(1,n))};return o&&V&&X(W,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),k.f=J,E.f=q,n(35).f=A.f=Q,n(48).f=Z,O.f=tt,o&&!n(31)&&s(W,"propertyIsEnumerable",Z,!0),d.f=function(t){return Y(h(t))}),a(a.G+a.W+a.F*!U,{Symbol:I});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var rt=M(h.store),it=0;rt.length>it;)v(rt[it++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return i(R,t+="")?R[t]:R[t]=I(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!U,"Object",{create:function(t,e){return void 0===e?C(t):K(C(t),e)},defineProperty:q,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=u((function(){O.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return O.f(w(t))}}),P&&a(a.S+a.F*(!U||u((function(){var t=I();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!G(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,N.apply(P,r)}}),I.prototype[L]||n(14)(I.prototype,L,I.prototype.valueOf),l(I,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(51)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),i=n(53),o=n(48);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),c=o.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(99)})},function(t,e,n){var r=n(15),i=n(20).f;n(21)("getOwnPropertyDescriptor",(function(){return function(t,e){return i(r(t),e)}}))},function(t,e,n){var r=n(10),i=n(36);n(21)("getPrototypeOf",(function(){return function(t){return i(r(t))}}))},function(t,e,n){var r=n(10),i=n(32);n(21)("keys",(function(){return function(t){return i(r(t))}}))},function(t,e,n){n(21)("getOwnPropertyNames",(function(){return n(100).f}))},function(t,e,n){var r=n(4),i=n(27).onFreeze;n(21)("freeze",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},function(t,e,n){var r=n(4),i=n(27).onFreeze;n(21)("seal",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},function(t,e,n){var r=n(4),i=n(27).onFreeze;n(21)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},function(t,e,n){var r=n(4);n(21)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(21)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(21)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(101)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(102)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(72).set})},function(t,e,n){"use strict";var r=n(49),i={};i[n(5)("toStringTag")]="z",i+""!="[object z]"&&n(11)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(103)})},function(t,e,n){var r=n(9).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(8)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),i=n(36),o=n(5)("hasInstance"),a=Function.prototype;o in a||n(9).f(a,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),i=n(105);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){var r=n(0),i=n(106);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(23),a=n(74),s=n(26),c=n(2),u=n(35).f,f=n(20).f,l=n(9).f,p=n(41).trim,h=r.Number,d=h,v=h.prototype,g="Number"==o(n(34)(v)),m="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,i,o=(e=m?e.trim():p(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,c=e.slice(2),u=0,f=c.length;ui)return NaN;return parseInt(c,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(g?c((function(){v.valueOf.call(n)})):"Number"!=o(n))?a(new d(y(e)),n,h):y(e)};for(var b,w=n(8)?u(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)i(d,b=w[x])&&!i(h,b)&&l(h,b,f(d,b));h.prototype=v,v.constructor=h,n(11)(r,"Number",h)}},function(t,e,n){"use strict";var r=n(0),i=n(19),o=n(107),a=n(75),s=1..toFixed,c=Math.floor,u=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*u[n],u[n]=r%1e7,r=c(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=u[e],u[e]=c(n/t),n=n%t*1e7},h=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==u[t]){var n=String(u[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,c=o(this,f),u=i(t),v="",g="0";if(u<0||u>20)throw RangeError(f);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(v="-",c=-c),c>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(c*d(2,69,1))-69)<0?c*d(2,-e,1):c/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(l(0,n),r=u;r>=7;)l(1e7,0),r-=7;for(l(d(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<0?v+((s=g.length)<=u?"0."+a.call("0",u-s)+g:g.slice(0,s-u)+"."+g.slice(s-u)):v+g}})},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(107),a=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),i=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(108)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),i=n(108),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),i=n(106);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(0),i=n(105);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(0),i=n(109),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){var r=n(0),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),i=n(76);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(0),i=n(77);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(182)})},function(t,e,n){var r=n(76),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),c=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),u=r(t);return is||n!=n?u*(1/0):u*n}},function(t,e,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,a=0,s=arguments.length,c=0;a0?(r=n/c)*r:n;return c===1/0?1/0:c*Math.sqrt(o)}})},function(t,e,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(2)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(109)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(76)})},function(t,e,n){var r=n(0),i=n(77),o=Math.exp;r(r.S+r.F*n(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),i=n(77),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),i=n(33),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),i=n(15),o=n(6);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),i=n(78)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(0),i=n(6),o=n(80),a="".endsWith;r(r.P+r.F*n(82)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),s=void 0===n?r:Math.min(i(n),r),c=String(t);return a?a.call(e,c,s):e.slice(s-c.length,s)===c}})},function(t,e,n){"use strict";var r=n(0),i=n(80);r(r.P+r.F*n(82)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(75)})},function(t,e,n){"use strict";var r=n(0),i=n(6),o=n(80),a="".startsWith;r(r.P+r.F*n(82)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(12)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(12)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(12)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(12)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(12)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(12)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(12)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(12)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(12)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(12)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(12)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(12)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(12)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),i=n(10),o=n(26);r(r.P+r.F*n(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),i=n(217);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,n){"use strict";var r=n(2),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},function(t,e,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(11)(r,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,e,n){var r=n(5)("toPrimitive"),i=Date.prototype;r in i||n(14)(i,r,n(220))},function(t,e,n){"use strict";var r=n(3),i=n(26);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(54)})},function(t,e,n){"use strict";var r=n(17),i=n(0),o=n(10),a=n(111),s=n(83),c=n(6),u=n(84),f=n(85);i(i.S+i.F*!n(55)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,i,l,p=o(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,g=void 0!==v,m=0,y=f(p);if(g&&(v=r(v,d>2?arguments[2]:void 0,2)),null==y||h==Array&&s(y))for(n=new h(e=c(p.length));e>m;m++)u(n,m,g?v(p[m],m):p[m]);else for(l=y.call(p),n=new h;!(i=l.next()).done;m++)u(n,m,g?a(l,v,[i.value,m],!0):i.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(0),i=n(84);r(r.S+r.F*n(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),i=n(15),o=[].join;r(r.P+r.F*(n(47)!=Object||!n(16)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),i=n(71),o=n(23),a=n(33),s=n(6),c=[].slice;r(r.P+r.F*n(2)((function(){i&&c.call(i)})),"Array",{slice:function(t,e){var n=s(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return c.call(this,t,e);for(var i=a(t,n),u=a(e,n),f=s(u-i),l=new Array(f),p=0;p1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(114)}),n(37)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(86)}),n(37)("fill")},function(t,e,n){"use strict";var r=n(0),i=n(22)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(t,e,n){"use strict";var r=n(0),i=n(22)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)(o)},function(t,e,n){n(43)("Array")},function(t,e,n){var r=n(1),i=n(74),o=n(9).f,a=n(35).f,s=n(81),c=n(56),u=r.RegExp,f=u,l=u.prototype,p=/a/g,h=/a/g,d=new u(p)!==p;if(n(8)&&(!d||n(2)((function(){return h[n(5)("match")]=!1,u(p)!=p||u(h)==h||"/a/i"!=u(p,"i")})))){u=function(t,e){var n=this instanceof u,r=s(t),o=void 0===e;return!n&&r&&t.constructor===u&&o?t:i(d?new f(r&&!o?t.source:t,e):f((r=t instanceof u)?t.source:t,r&&o?c.call(t):e),n?this:l,u)};for(var v=function(t){t in u||o(u,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})},g=a(f),m=0;g.length>m;)v(g[m++]);l.constructor=u,u.prototype=l,n(11)(r,"RegExp",u)}n(43)("RegExp")},function(t,e,n){"use strict";n(117);var r=n(3),i=n(56),o=n(8),a=/./.toString,s=function(t){n(11)(RegExp.prototype,"toString",t,!0)};n(2)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},function(t,e,n){"use strict";var r=n(3),i=n(6),o=n(89),a=n(57);n(58)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var c=r(t),u=String(this);if(!c.global)return a(c,u);var f=c.unicode;c.lastIndex=0;for(var l,p=[],h=0;null!==(l=a(c,u));){var d=String(l[0]);p[h]=d,""===d&&(c.lastIndex=o(u,i(c.lastIndex),f)),h++}return 0===h?null:p}]}))},function(t,e,n){"use strict";var r=n(3),i=n(10),o=n(6),a=n(19),s=n(89),c=n(57),u=Math.max,f=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(t,e,n,d){return[function(r,i){var o=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=d(n,t,this,e);if(i.done)return i.value;var l=r(t),p=String(this),h="function"==typeof e;h||(e=String(e));var g=l.global;if(g){var m=l.unicode;l.lastIndex=0}for(var y=[];;){var b=c(l,p);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(l.lastIndex=s(p,o(l.lastIndex),m))}for(var w,x="",_=0,S=0;S=_&&(x+=p.slice(_,A)+T,_=A+C.length)}return x+p.slice(_)}];function v(t,e,r,o,a,s){var c=r+t.length,u=o.length,f=h;return void 0!==a&&(a=i(a),f=p),n.call(s,f,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var f=+i;if(0===f)return n;if(f>u){var p=l(f/10);return 0===p?n:p<=u?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):n}s=o[f-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(3),i=n(102),o=n(57);n(58)("search",1,(function(t,e,n,a){return[function(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=r(t),c=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var f=o(s,c);return i(s.lastIndex,u)||(s.lastIndex=u),null===f?-1:f.index}]}))},function(t,e,n){"use strict";var r=n(81),i=n(3),o=n(50),a=n(89),s=n(6),c=n(57),u=n(88),f=n(2),l=Math.min,p=[].push,h=!f((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(t,e,n,f){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);for(var o,a,s,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=void 0===e?4294967295:e>>>0,d=new RegExp(t.source,f+"g");(o=u.call(d,i))&&!((a=d.lastIndex)>l&&(c.push(i.slice(l,o.index)),o.length>1&&o.index=h));)d.lastIndex===o.index&&d.lastIndex++;return l===i.length?!s&&d.test("")||c.push(""):c.push(i.slice(l)),c.length>h?c.slice(0,h):c}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var i=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):d.call(String(i),n,r)},function(t,e){var r=f(d,t,this,e,d!==n);if(r.done)return r.value;var u=i(t),p=String(this),v=o(u,RegExp),g=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(h?"y":"g"),y=new v(h?u:"^(?:"+u.source+")",m),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===p.length)return null===c(y,p)?[p]:[];for(var w=0,x=0,_=[];x0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(121),i=n(38);t.exports=n(61)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(1),o=n(22)(0),a=n(11),s=n(27),c=n(101),u=n(122),f=n(4),l=n(38),p=n(38),h=!i.ActiveXObject&&"ActiveXObject"in i,d=s.getWeak,v=Object.isExtensible,g=u.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(f(t)){var e=d(t);return!0===e?g(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(l(this,"WeakMap"),t,e)}},b=t.exports=n(61)("WeakMap",m,y,u,!0,!0);p&&h&&(c((r=u.getConstructor(m,"WeakMap")).prototype,y),s.NEED=!0,o(["delete","has","get","set"],(function(t){var e=b.prototype,n=e[t];a(e,t,(function(e,i){if(f(e)&&!v(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)}))})))},function(t,e,n){"use strict";var r=n(122),i=n(38);n(61)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),i=n(62),o=n(91),a=n(3),s=n(33),c=n(6),u=n(4),f=n(1).ArrayBuffer,l=n(50),p=o.ArrayBuffer,h=o.DataView,d=i.ABV&&f.isView,v=p.prototype.slice,g=i.VIEW;r(r.G+r.W+r.F*(f!==p),{ArrayBuffer:p}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||u(t)&&g in t}}),r(r.P+r.U+r.F*n(2)((function(){return!new p(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),i=s(void 0===e?n:e,n),o=new(l(this,p))(c(i-r)),u=new h(this),f=new h(o),d=0;r=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){var r=n(20),i=n(36),o=n(13),a=n(0),s=n(4),c=n(3);a(a.S,"Reflect",{get:function t(e,n){var a,u,f=arguments.length<3?e:arguments[2];return c(e)===f?e[n]:(a=r.f(e,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(f):void 0:s(u=i(e))?t(u,n,f):void 0}})},function(t,e,n){var r=n(20),i=n(0),o=n(3);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(0),i=n(36),o=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),i=n(3),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(124)})},function(t,e,n){var r=n(0),i=n(3),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(9),i=n(20),o=n(36),a=n(13),s=n(0),c=n(29),u=n(3),f=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var l,p,h=arguments.length<4?e:arguments[3],d=i.f(u(e),n);if(!d){if(f(p=o(e)))return t(p,n,s,h);d=c(0)}if(a(d,"value")){if(!1===d.writable||!f(h))return!1;if(l=i.f(h,n)){if(l.get||l.set||!1===l.writable)return!1;l.value=s,r.f(h,n,l)}else r.f(h,n,c(0,s));return!0}return void 0!==d.set&&(d.set.call(h,s),!0)}})},function(t,e,n){var r=n(0),i=n(72);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(280),t.exports=n(7).Array.includes},function(t,e,n){"use strict";var r=n(0),i=n(52)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(t,e,n){n(282),t.exports=n(7).Array.flatMap},function(t,e,n){"use strict";var r=n(0),i=n(283),o=n(10),a=n(6),s=n(18),c=n(112);r(r.P,"Array",{flatMap:function(t){var e,n,r=o(this);return s(t),e=a(r.length),n=c(r,0),i(n,r,r,e,0,1,t,arguments[1]),n}}),n(37)("flatMap")},function(t,e,n){"use strict";var r=n(54),i=n(4),o=n(6),a=n(17),s=n(5)("isConcatSpreadable");t.exports=function t(e,n,c,u,f,l,p,h){for(var d,v,g=f,m=0,y=!!p&&a(p,h,3);m0)g=t(e,n,d,o(d.length),g,l-1)-1;else{if(g>=9007199254740991)throw TypeError();e[g]=d}g++}m++}return g}},function(t,e,n){n(285),t.exports=n(7).String.padStart},function(t,e,n){"use strict";var r=n(0),i=n(125),o=n(60),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(287),t.exports=n(7).String.padEnd},function(t,e,n){"use strict";var r=n(0),i=n(125),o=n(60),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(289),t.exports=n(7).String.trimLeft},function(t,e,n){"use strict";n(41)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(291),t.exports=n(7).String.trimRight},function(t,e,n){"use strict";n(41)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(293),t.exports=n(68).f("asyncIterator")},function(t,e,n){n(97)("asyncIterator")},function(t,e,n){n(295),t.exports=n(7).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),i=n(124),o=n(15),a=n(20),s=n(84);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),c=a.f,u=i(r),f={},l=0;u.length>l;)void 0!==(n=c(r,e=u[l++]))&&s(f,e,n);return f}})},function(t,e,n){n(297),t.exports=n(7).Object.values},function(t,e,n){var r=n(0),i=n(126)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){n(299),t.exports=n(7).Object.entries},function(t,e,n){var r=n(0),i=n(126)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){"use strict";n(118),n(301),t.exports=n(7).Promise.finally},function(t,e,n){"use strict";var r=n(0),i=n(7),o=n(1),a=n(50),s=n(120);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(303),n(304),n(305),t.exports=n(7)},function(t,e,n){var r=n(1),i=n(0),o=n(60),a=[].slice,s=/MSIE .\./.test(o),c=function(t){return function(e,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};i(i.G+i.B+i.F*s,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){var r=n(0),i=n(90);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){for(var r=n(87),i=n(32),o=n(11),a=n(1),s=n(14),c=n(42),u=n(5),f=u("iterator"),l=u("toStringTag"),p=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(h),v=0;v=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){n(308),t.exports=n(127).global},function(t,e,n){var r=n(309);r(r.G,{global:n(92)})},function(t,e,n){var r=n(92),i=n(127),o=n(310),a=n(312),s=n(319),c=function(t,e,n){var u,f,l,p=t&c.F,h=t&c.G,d=t&c.S,v=t&c.P,g=t&c.B,m=t&c.W,y=h?i:i[e]||(i[e]={}),b=y.prototype,w=h?r:d?r[e]:(r[e]||{}).prototype;for(u in h&&(n=e),n)(f=!p&&w&&void 0!==w[u])&&s(y,u)||(l=f?w[u]:n[u],y[u]=h&&"function"!=typeof w[u]?n[u]:g&&f?o(l,r):m&&w[u]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):v&&"function"==typeof l?o(Function.call,l):l,v&&((y.virtual||(y.virtual={}))[u]=l,t&c.R&&b&&!b[u]&&a(b,u,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(311);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(313),i=n(318);t.exports=n(94)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(314),i=n(315),o=n(317),a=Object.defineProperty;e.f=n(94)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(93);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(94)&&!n(128)((function(){return 7!=Object.defineProperty(n(316)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(93),i=n(92).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(93);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";var r=n(63);n.n(r).a},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,".app[data-v-5ef48958]{bottom:0;left:0;position:absolute;top:0;right:0}.header[data-v-5ef48958]{background-color:#666;height:3rem;overflow:hidden;padding-left:1rem;padding-right:1rem;position:relative;z-index:1}@media (min-width:768px){.header[data-v-5ef48958]{padding-left:1.5rem;padding-right:1.5rem}}.title[data-v-5ef48958]{color:#fff;display:block;float:left;font-size:1.125rem;line-height:3rem}.main[data-v-5ef48958]{background-color:#333;bottom:0;left:0;position:absolute;right:0;top:3rem}",""])},function(t,e,n){"use strict";var r=n(64);n.n(r).a},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,".canvas[data-v-18686cfd],.editor[data-v-18686cfd]{height:100%}.canvas[data-v-18686cfd]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.canvas>img[data-v-18686cfd]{max-height:100%;max-width:100%}.toolbar[data-v-18686cfd]{background-color:rgba(0,0,0,.5);bottom:1rem;color:#fff;height:2rem;left:50%;margin-left:-8rem;position:absolute;width:16rem;z-index:2015}.toolbar__button[data-v-18686cfd]{background-color:transparent;border-width:0;color:#fff;cursor:pointer;display:block;float:left;font-size:.875rem;height:2rem;text-align:center;width:2rem}.toolbar__button[data-v-18686cfd]:focus{outline:none}.toolbar__button[data-v-18686cfd]:hover{background-color:#0074d9;color:#fff}",""])},function(t,e,n){"use strict";var r=n(65);n.n(r).a},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,".loader[data-v-f2448eba]{display:table;height:100%;overflow:hidden;width:100%}.loader>p[data-v-f2448eba]{color:#999;display:table-cell;text-align:center;vertical-align:middle}.browse[data-v-f2448eba]{color:#0074d9;cursor:pointer;margin-left:.25rem}.browse[data-v-f2448eba]:hover{color:#08f;text-decoration:underline}",""])},function(t,e,n){"use strict";var r=n(66);n.n(r).a},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,".navbar[data-v-688b5e20]{float:right}.nav__button[data-v-688b5e20]{background-color:transparent;border-width:0;color:#fff;cursor:pointer;display:block;float:left;height:3rem;line-height:3rem;text-align:center;width:3rem}.nav__button[data-v-688b5e20]:focus{outline:none}.nav__button[data-v-688b5e20]:hover{background-color:#0074d9;color:#fff}.nav--success[data-v-688b5e20]:hover{background-color:#2ecc40}.nav--danger[data-v-688b5e20]:hover{background-color:#ff4136}",""])},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(329),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(95))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,c=1,u={},f=!1,l=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){o.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,r=function(t){var e=l.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;n=0&&(t.preventDefault(),t.stopPropagation(),this.crop())},start:function(){var t=this,e=this.data;e.cropped||this.cropper||(this.cropper=new l.a(this.$refs.image,{autoCrop:!1,dragMode:"move",background:!1,ready:function(){t.croppedData&&(t.cropper.crop().setData(t.croppedData).setCanvasData(t.canvasData).setCropBoxData(t.cropBoxData),t.croppedData=null,t.canvasData=null,t.cropBoxData=null)},crop:function(n){var r=n.detail;r.width>0&&r.height>0&&!e.cropping&&t.update({cropping:!0})}}))},stop:function(){this.cropper&&(this.cropper.destroy(),this.cropper=null)},crop:function(){var t=this.cropper,e=this.data;e.cropping&&(this.croppedData=t.getData(),this.canvasData=t.getCanvasData(),this.cropBoxData=t.getCropBoxData(),this.update({cropped:!0,cropping:!1,previousUrl:e.url,url:t.getCroppedCanvas("image/png"===e.type?{}:{fillColor:"#fff"}).toDataURL(e.type)}),this.stop())},clear:function(){this.data.cropping&&(this.cropper.clear(),this.update({cropping:!1}))},restore:function(){this.data.cropped&&this.update({cropped:!1,previousUrl:"",url:this.data.previousUrl})},reset:function(){this.stop(),this.update({cropped:!1,cropping:!1,loaded:!1,name:"",previousUrl:"",type:"",url:""})},update:function(t){Object.assign(this.data,t)}}},h=(n(322),a(p,u,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"move",title:"Move (M)"}},[e("span",{staticClass:"fa fa-arrows"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"crop",title:"Crop (C)"}},[e("span",{staticClass:"fa fa-crop"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"zoom-in",title:"Zoom In (I)"}},[e("span",{staticClass:"fa fa-search-plus"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"zoom-out",title:"Zoom Out (O)"}},[e("span",{staticClass:"fa fa-search-minus"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"rotate-left",title:"Rotate Left (L)"}},[e("span",{staticClass:"fa fa-rotate-left"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"rotate-right",title:"Rotate Right (R)"}},[e("span",{staticClass:"fa fa-rotate-right"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"flip-horizontal",title:"Flip Horizontal (H)"}},[e("span",{staticClass:"fa fa-arrows-h"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"flip-vertical",title:"Flip Vertical (V)"}},[e("span",{staticClass:"fa fa-arrows-v"})])}],!1,null,"18686cfd",null));h.options.__file="src/components/editor.vue";var d=h.exports,v=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"loader",on:{change:this.change,dragover:this.dragover,drop:this.drop}},[this._m(0)])};v._withStripped=!0;var g=window.URL||window.webkitURL,m={name:"Loader",props:{data:{type:Object,default:function(){return{}}}},methods:{read:function(t){return new Promise((function(e,n){if(t&&0!==t.length){var r=t[0];/^image\/\w+$/.test(r.type)?g?e({loaded:!0,name:r.name,type:r.type,url:g.createObjectURL(r)}):n(new Error("Your browser is not supported.")):n(new Error("Please choose an image file."))}else e()}))},change:function(t){var e=this,n=t.target;this.read(n.files).then((function(t){n.value="",e.update(t)})).catch((function(t){n.value="",e.alert(t)}))},dragover:function(t){t.preventDefault()},drop:function(t){t.preventDefault(),this.read(t.dataTransfer.files).catch(this.alert)},alert:function(t){window.alert(t&&t.message?t.message:t)},update:function(t){Object.assign(this.data,t)}}},y=(n(324),a(m,v,[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n Drop image here or\n "),e("label",{staticClass:"browse"},[this._v("browse...\n "),e("input",{staticClass:"sr-only",attrs:{id:"file",type:"file",accept:"image/*"}})])])}],!1,null,"f2448eba",null));y.options.__file="src/components/loader.vue";var b=y.exports,w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar"},[n("nav",{staticClass:"nav",on:{click:t.click}},[t.data.loaded?t._e():n("label",{staticClass:"nav__button",attrs:{for:"file",title:"Upload",role:"button"}},[n("span",{staticClass:"fa fa-upload"})]),t._v(" "),t.data.cropped?n("button",{staticClass:"nav__button",attrs:{type:"button","data-action":"restore",title:"Undo (Ctrl + Z)"}},[n("span",{staticClass:"fa fa-undo"})]):t._e(),t._v(" "),t.data.loaded&&!t.data.cropping?n("button",{staticClass:"nav__button nav__button--danger",attrs:{type:"button","data-action":"remove",title:"Delete (Delete)"}},[n("span",{staticClass:"fa fa-trash"})]):t._e(),t._v(" "),t.data.cropping?n("button",{staticClass:"nav__button nav__button--danger",attrs:{type:"button","data-action":"clear",title:"Cancel (Esc)"}},[n("span",{staticClass:"fa fa-ban"})]):t._e(),t._v(" "),t.data.cropping?n("button",{staticClass:"nav__button nav__button--success",attrs:{type:"button","data-action":"crop",title:"OK (Enter)"}},[n("span",{staticClass:"fa fa-check"})]):t._e(),t._v(" "),t.downloadable&&t.data.loaded?n("a",{staticClass:"nav__button nav__button--success",attrs:{title:"Download",download:t.data.name,href:t.data.url}},[n("span",{staticClass:"fa fa-download"})]):t._e(),t._v(" "),t._m(0)])])};w._withStripped=!0;var x={name:"Navbar",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{downloadable:void 0!==document.createElement("a").download}},methods:{click:function(t){var e=t.target,n=e.getAttribute("data-action")||e.parentElement.getAttribute("data-action");n&&this.$emit("change",n)}}},_=(n(326),a(x,w,[function(){var t=this.$createElement,e=this._self._c||t;return e("a",{staticClass:"nav__button",attrs:{href:"https://github.com/fengyuanchen/photo-editor",title:"View on GitHub"}},[e("span",{staticClass:"fa fa-github"})])}],!1,null,"688b5e20",null));_.options.__file="src/components/navbar.vue";var S=_.exports;r.a.component(d.name,d),r.a.component(b.name,b),r.a.component(S.name,S);n(331);new r.a({el:"#app",render:function(t){return t(c)}})}]); \ No newline at end of file +t.exports=function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var n=0;n0&&t<1/0};function I(t){return void 0===t}function P(e){return"object"===t(e)&&null!==e}var N=Object.prototype.hasOwnProperty;function $(t){if(!P(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&N.call(n,"isPrototypeOf")}catch(t){return!1}}function L(t){return"function"==typeof t}var F=Array.prototype.slice;function R(t){return Array.from?Array.from(t):F.call(t)}function B(t,e){return t&&L(e)&&(Array.isArray(t)||D(t.length)?R(t).forEach((function(n,r){e.call(t,n,r,t)})):P(t)&&Object.keys(t).forEach((function(n){e.call(t,t[n],n,t)}))),t}var z=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&n.forEach((function(e){P(e)&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t},W=/\.\d*(?:0|9){12}\d*$/;function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return W.test(t)?Math.round(t*e)/e:t}var H=/^width|height|left|top|marginLeft|marginTop$/;function V(t,e){var n=t.style;B(e,(function(t,e){H.test(e)&&D(t)&&(t="".concat(t,"px")),n[e]=t}))}function X(t,e){if(e)if(D(t.length))B(t,(function(t){X(t,e)}));else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function Y(t,e){e&&(D(t.length)?B(t,(function(t){Y(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function G(t,e,n){e&&(D(t.length)?B(t,(function(t){G(t,e,n)})):n?X(t,e):Y(t,e))}var q=/([a-z\d])([A-Z])/g;function K(t){return t.replace(q,"$1-$2").toLowerCase()}function Z(t,e){return P(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(K(e)))}function J(t,e,n){P(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(K(e)),n)}var Q=/\s\s*/,tt=function(){var t=!1;if(a){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});s.addEventListener("test",n,r),s.removeEventListener("test",n,r)}return t}();function et(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(Q).forEach((function(e){if(!tt){var o=t.listeners;o&&o[e]&&o[e][n]&&(i=o[e][n],delete o[e][n],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,i,r)}))}function nt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(Q).forEach((function(e){if(r.once&&!tt){var o=t.listeners,a=void 0===o?{}:o;i=function(){delete a[e][n],t.removeEventListener(e,i,r);for(var o=arguments.length,s=new Array(o),c=0;c1&&void 0!==arguments[1]?arguments[1]:"contain",o=j(r),a=j(n);if(o&&a){var s=n*e;"contain"===i&&s>r||"cover"===i&&s=8&&(o=c+f)}}}if(o){var l,p,h=n.getUint16(o,r);for(p=0;pt.width?3===n?s=t.height*a:c=t.width/a:3===n?c=t.width/a:s=t.height*a;var u={aspectRatio:a,naturalWidth:i,naturalHeight:o,width:s,height:c};u.left=(t.width-s)/2,u.top=(t.height-c)/2,u.oldLeft=u.left,u.oldTop=u.top,this.canvasData=u,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=z({},e),this.initialCanvasData=z({},u)},limitCanvas:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,c=this.cropped&&o;if(t){var u=Number(n.minCanvasWidth)||0,f=Number(n.minCanvasHeight)||0;a>1?(u=Math.max(u,r.width),f=Math.max(f,r.height),3===a&&(f*s>u?u=f*s:f=u/s)):a>0&&(u?u=Math.max(u,c?o.width:0):f?f=Math.max(f,c?o.height:0):c&&(u=o.width,(f=o.height)*s>u?u=f*s:f=u/s));var l=lt({aspectRatio:s,width:u,height:f});u=l.width,f=l.height,i.minWidth=u,i.minHeight=f,i.maxWidth=1/0,i.maxHeight=1/0}if(e)if(a>(c?0:1)){var p=r.width-i.width,h=r.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,h),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,h),c&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=r.height&&(i.minTop=Math.min(0,h),i.maxTop=Math.max(0,h))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(t,e){var n=this.canvasData,r=this.imageData;if(e){var i=function(t){var e=t.width,n=t.height,r=t.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:e};var i=r%90*Math.PI/180,o=Math.sin(i),a=Math.cos(i),s=e*a+n*o,c=e*o+n*a;return r>90?{width:c,height:s}:{width:s,height:c}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=i.width,a=i.height,s=n.width*(o/n.naturalWidth),c=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(c-n.height)/2,n.width=s,n.height=c,n.aspectRatio=o/a,n.naturalWidth=o,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighte.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=e.left+(e.width-i.width)/2,i.top=e.top+(e.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=z({},i)},limitCropBox:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(t){var c=Number(n.minCropBoxWidth)||0,u=Number(n.minCropBoxHeight)||0,f=a?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,l=a?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;c=Math.min(c,r.width),u=Math.min(u,r.height),s&&(c&&u?u*s>c?u=c/s:c=u*s:c?u=c/s:u&&(c=u*s),l*s>f?l=f/s:f=l*s),o.minWidth=Math.min(c,f),o.minHeight=Math.min(u,l),o.maxWidth=f,o.maxHeight=l}e&&(a?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(r.width,i.left+i.width)-o.width,o.maxTop=Math.min(r.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var t=this.options,e=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=e.width&&n.height>=e.height?"move":"all"),V(this.cropBox,z({width:n.width,height:n.height},ut({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),rt(this.element,"crop",this.getData())}},mt={initPreview:function(){var t=this.element,e=this.crossOrigin,n=this.options.preview,r=e?this.crossOriginUrl:this.url,i=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,n){var a=n;"string"==typeof n?a=t.ownerDocument.querySelectorAll(n):n.querySelector&&(a=[n]),this.previews=a,B(a,(function(t){var n=document.createElement("img");J(t,y,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(n.crossOrigin=e),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(n)}))}},resetPreview:function(){B(this.previews,(function(t){var e=Z(t,y);V(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(P(t[e]))try{delete t[e]}catch(n){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(K(e)))}(t,y)}))},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,o=t.width,a=t.height,s=n.left-e.left-t.left,c=n.top-e.top-t.top;this.cropped&&!this.disabled&&(V(this.viewBoxImage,z({width:o,height:a},ut(z({translateX:-s,translateY:-c},t)))),B(this.previews,(function(e){var n=Z(e,y),u=n.width,f=n.height,l=u,p=f,h=1;r&&(p=i*(h=u/r)),i&&p>f&&(l=r*(h=f/i),p=f),V(e,{width:l,height:p}),V(e.getElementsByTagName("img")[0],z({width:o*h,height:a*h},ut(z({translateX:-s*h,translateY:-c*h},t))))})))}},yt={bind:function(){var t=this.element,e=this.options,n=this.cropper;L(e.cropstart)&&nt(t,"cropstart",e.cropstart),L(e.cropmove)&&nt(t,"cropmove",e.cropmove),L(e.cropend)&&nt(t,"cropend",e.cropend),L(e.crop)&&nt(t,"crop",e.crop),L(e.zoom)&&nt(t,"zoom",e.zoom),nt(n,_,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&nt(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&nt(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),nt(t.ownerDocument,S,this.onCropMove=this.cropMove.bind(this)),nt(t.ownerDocument,C,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&nt(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;L(e.cropstart)&&et(t,"cropstart",e.cropstart),L(e.cropmove)&&et(t,"cropmove",e.cropmove),L(e.cropend)&&et(t,"cropend",e.cropend),L(e.crop)&&et(t,"crop",e.crop),L(e.zoom)&&et(t,"zoom",e.zoom),et(n,_,this.onCropStart),e.zoomable&&e.zoomOnWheel&&et(n,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&et(n,"dblclick",this.onDblclick),et(t.ownerDocument,S,this.onCropMove),et(t.ownerDocument,C,this.onCropEnd),e.responsive&&et(window,"resize",this.onResize)}},bt={resize:function(){var t=this.options,e=this.container,n=this.containerData,r=Number(t.minContainerWidth)||200,i=Number(t.minContainerHeight)||100;if(!(this.disabled||n.width<=r||n.height<=i)){var o,a,s=e.offsetWidth/n.width;1===s&&e.offsetHeight===n.height||(t.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(B(o,(function(t,e){o[e]=t*s}))),this.setCropBoxData(B(a,(function(t,e){a[e]=t*s})))))}},dblclick:function(){var t,e;this.disabled||"none"===this.options.dragMode||this.setDragMode((t=this.dragBox,e=f,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?"move":"crop"))},wheel:function(t){var e=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,t)))},cropStart:function(t){var e=t.buttons,n=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(D(e)&&1!==e||D(n)&&0!==n||t.ctrlKey))){var r,i=this.options,o=this.pointers;t.changedTouches?B(t.changedTouches,(function(t){o[t.identifier]=ft(t)})):o[t.pointerId||0]=ft(t),r=Object.keys(o).length>1&&i.zoomable&&i.zoomOnTouch?"zoom":Z(t.target,m),A.test(r)&&!1!==rt(this.element,"cropstart",{originalEvent:t,action:r})&&(t.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,X(this.dragBox,v)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==rt(this.element,"cropmove",{originalEvent:t,action:e})&&(t.changedTouches?B(t.changedTouches,(function(t){z(n[t.identifier]||{},ft(t,!0))})):z(n[t.pointerId||0]||{},ft(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?B(t.changedTouches,(function(t){delete n[t.identifier]})):delete n[t.pointerId||0],e&&(t.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,G(this.dragBox,v,this.cropped&&this.options.modal)),rt(this.element,"cropend",{originalEvent:t,action:e}))}}},wt={change:function(t){var e,n=this.options,r=this.canvasData,o=this.containerData,a=this.cropBoxData,s=this.pointers,c=this.action,u=n.aspectRatio,f=a.left,l=a.top,h=a.width,d=a.height,v=f+h,g=l+d,m=0,y=0,b=o.width,w=o.height,x=!0;!u&&t.shiftKey&&(u=h&&d?h/d:1),this.limited&&(m=a.minLeft,y=a.minTop,b=m+Math.min(o.width,r.width,r.left+r.width),w=y+Math.min(o.height,r.height,r.top+r.height));var _=s[Object.keys(s)[0]],S={x:_.endX-_.startX,y:_.endY-_.startY},C=function(t){switch(t){case"e":v+S.x>b&&(S.x=b-v);break;case"w":f+S.xw&&(S.y=w-g)}};switch(c){case"all":f+=S.x,l+=S.y;break;case"e":if(S.x>=0&&(v>=b||u&&(l<=y||g>=w))){x=!1;break}C("e"),(h+=S.x)<0&&(c="w",f-=h=-h),u&&(d=h/u,l+=(a.height-d)/2);break;case"n":if(S.y<=0&&(l<=y||u&&(f<=m||v>=b))){x=!1;break}C("n"),d-=S.y,l+=S.y,d<0&&(c="s",l-=d=-d),u&&(h=d*u,f+=(a.width-h)/2);break;case"w":if(S.x<=0&&(f<=m||u&&(l<=y||g>=w))){x=!1;break}C("w"),h-=S.x,f+=S.x,h<0&&(c="e",f-=h=-h),u&&(d=h/u,l+=(a.height-d)/2);break;case"s":if(S.y>=0&&(g>=w||u&&(f<=m||v>=b))){x=!1;break}C("s"),(d+=S.y)<0&&(c="n",l-=d=-d),u&&(h=d*u,f+=(a.width-h)/2);break;case"ne":if(u){if(S.y<=0&&(l<=y||v>=b)){x=!1;break}C("n"),d-=S.y,l+=S.y,h=d*u}else C("n"),C("e"),S.x>=0?vy&&(d-=S.y,l+=S.y):(d-=S.y,l+=S.y);h<0&&d<0?(c="sw",l-=d=-d,f-=h=-h):h<0?(c="nw",f-=h=-h):d<0&&(c="se",l-=d=-d);break;case"nw":if(u){if(S.y<=0&&(l<=y||f<=m)){x=!1;break}C("n"),d-=S.y,l+=S.y,h=d*u,f+=a.width-h}else C("n"),C("w"),S.x<=0?f>m?(h-=S.x,f+=S.x):S.y<=0&&l<=y&&(x=!1):(h-=S.x,f+=S.x),S.y<=0?l>y&&(d-=S.y,l+=S.y):(d-=S.y,l+=S.y);h<0&&d<0?(c="se",l-=d=-d,f-=h=-h):h<0?(c="ne",f-=h=-h):d<0&&(c="sw",l-=d=-d);break;case"sw":if(u){if(S.x<=0&&(f<=m||g>=w)){x=!1;break}C("w"),h-=S.x,f+=S.x,d=h/u}else C("s"),C("w"),S.x<=0?f>m?(h-=S.x,f+=S.x):S.y>=0&&g>=w&&(x=!1):(h-=S.x,f+=S.x),S.y>=0?g=0&&(v>=b||g>=w)){x=!1;break}C("e"),d=(h+=S.x)/u}else C("s"),C("e"),S.x>=0?v=0&&g>=w&&(x=!1):h+=S.x,S.y>=0?g0?c=S.y>0?"se":"ne":S.x<0&&(f-=h,c=S.y>0?"sw":"nw"),S.y<0&&(l-=d),this.cropped||(Y(this.cropBox,p),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}x&&(a.width=h,a.height=d,a.left=f,a.top=l,this.action=c,this.renderCropBox()),B(s,(function(t){t.startX=t.endX,t.startY=t.endY}))}},xt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&X(this.dragBox,v),Y(this.cropBox,p),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=z({},this.initialImageData),this.canvasData=z({},this.initialCanvasData),this.cropBoxData=z({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(z(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Y(this.dragBox,v),X(this.cropBox,p)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,B(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Y(this.cropper,l)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,X(this.cropper,l)),this},destroy:function(){var t=this.element;return t.cropper?(t.cropper=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(I(t)?t:r+Number(t),I(e)?e:i+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(D(t)&&(n.left=t,r=!0),D(e)&&(n.top=e,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,null,e)},zoomTo:function(t,e,n){var r=this.options,i=this.canvasData,o=i.width,a=i.height,s=i.naturalWidth,c=i.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&r.zoomable){var u=s*t,f=c*t;if(!1===rt(this.element,"zoom",{ratio:t,oldRatio:o/s,originalEvent:n}))return this;if(n){var l=this.pointers,p=it(this.cropper),h=l&&Object.keys(l).length?function(t){var e=0,n=0,r=0;return B(t,(function(t){var i=t.startX,o=t.startY;e+=i,n+=o,r+=1})),{pageX:e/=r,pageY:n/=r}}(l):{pageX:n.pageX,pageY:n.pageY};i.left-=(u-o)*((h.pageX-p.left-i.left)/o),i.top-=(f-a)*((h.pageY-p.top-i.top)/a)}else $(e)&&D(e.x)&&D(e.y)?(i.left-=(u-o)*((e.x-i.left)/o),i.top-=(f-a)*((e.y-i.top)/a)):(i.left-=(u-o)/2,i.top-=(f-a)/2);i.width=u,i.height=f,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return D(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,D(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(D(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(D(t)&&(n.scaleX=t,r=!0),D(e)&&(n.scaleY=e,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){t={x:o.left-i.left,y:o.top-i.top,width:o.width,height:o.height};var a=r.width/r.naturalWidth;if(B(t,(function(e,n){t[n]=e/a})),e){var s=Math.round(t.y+t.height),c=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=c-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return n.rotatable&&(t.rotate=r.rotate||0),n.scalable&&(t.scaleX=r.scaleX||1,t.scaleY=r.scaleY||1),t},setData:function(t){var e=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&$(t)){var o=!1;e.rotatable&&D(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,o=!0),e.scalable&&(D(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,o=!0),D(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;D(t.x)&&(i.left=t.x*a+r.left),D(t.y)&&(i.top=t.y*a+r.top),D(t.width)&&(i.width=t.width*a),D(t.height)&&(i.height=t.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?z({},this.containerData):{}},getImageData:function(){return this.sized?z({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&B(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){e[n]=t[n]})),e},setCanvasData:function(t){var e=this.canvasData,n=e.aspectRatio;return this.ready&&!this.disabled&&$(t)&&(D(t.left)&&(e.left=t.left),D(t.top)&&(e.top=t.top),D(t.width)?(e.width=t.width,e.height=t.width/n):D(t.height)&&(e.height=t.height,e.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&$(t)&&(D(t.left)&&(r.left=t.left),D(t.top)&&(r.top=t.top),D(t.width)&&t.width!==r.width&&(e=!0,r.width=t.width),D(t.height)&&t.height!==r.height&&(n=!0,r.height=t.height),i&&(e?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,n=pt(this.image,this.imageData,e,t);if(!this.cropped)return n;var r=this.getData(),i=r.x,a=r.y,s=r.width,c=r.height,u=n.width/Math.floor(e.naturalWidth);1!==u&&(i*=u,a*=u,s*=u,c*=u);var f=s/c,l=lt({aspectRatio:f,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),p=lt({aspectRatio:f,width:t.minWidth||0,height:t.minHeight||0},"cover"),h=lt({aspectRatio:f,width:t.width||(1!==u?n.width:s),height:t.height||(1!==u?n.height:c)}),d=h.width,v=h.height;d=Math.min(l.width,Math.max(p.width,d)),v=Math.min(l.height,Math.max(p.height,v));var g=document.createElement("canvas"),m=g.getContext("2d");g.width=U(d),g.height=U(v),m.fillStyle=t.fillColor||"transparent",m.fillRect(0,0,d,v);var y=t.imageSmoothingEnabled,b=void 0===y||y,w=t.imageSmoothingQuality;m.imageSmoothingEnabled=b,w&&(m.imageSmoothingQuality=w);var x,_,S,C,A,k,O=n.width,E=n.height,M=i,T=a;M<=-s||M>O?(M=0,x=0,S=0,A=0):M<=0?(S=-M,M=0,A=x=Math.min(O,s+M)):M<=O&&(S=0,A=x=Math.min(s,O-M)),x<=0||T<=-c||T>E?(T=0,_=0,C=0,k=0):T<=0?(C=-T,T=0,k=_=Math.min(E,c+T)):T<=E&&(C=0,k=_=Math.min(c,E-T));var D=[M,T,x,_];if(A>0&&k>0){var j=d/s;D.push(S*j,C*j,A*j,k*j)}return m.drawImage.apply(m,[n].concat(o(D.map((function(t){return Math.floor(U(t))}))))),g},setAspectRatio:function(t){var e=this.options;return this.disabled||I(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i="crop"===t,o=e.movable&&"move"===t;t=i||o?t:"none",e.dragMode=t,J(n,m,t),G(n,f,i),G(n,g,o),e.cropBoxMovable||(J(r,m,t),G(r,f,i),G(r,g,o))}return this}},_t=s.Cropper,St=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||!E.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=z({},M,$(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var n,r,i;return n=t,i=[{key:"noConflict",value:function(){return window.Cropper=_t,t}},{key:"setDefaults",value:function(t){z(M,$(t)&&t)}}],(r=[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e.cropper){if(e.cropper=this,"img"===n){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(k.test(t))O.test(t)?this.read((i=t.replace(dt,""),o=atob(i),a=new ArrayBuffer(o.length),B(s=new Uint8Array(a),(function(t,e){s[e]=o.charCodeAt(e)})),a)):this.clone();else{var i,o,a,s,c=new XMLHttpRequest,u=this.clone.bind(this);this.reloading=!0,this.xhr=c,c.onabort=u,c.onerror=u,c.ontimeout=u,c.onprogress=function(){"image/jpeg"!==c.getResponseHeader("content-type")&&c.abort()},c.onload=function(){e.read(c.response)},c.onloadend=function(){e.reloading=!1,e.xhr=null},r.checkCrossOrigin&&st(t)&&n.crossOrigin&&(t=ct(t)),c.open("GET",t),c.responseType="arraybuffer",c.withCredentials="use-credentials"===n.crossOrigin,c.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,r=vt(t),i=0,o=1,a=1;if(r>1){this.url=function(t,e){for(var n=[],r=new Uint8Array(t);r.length>0;)n.push(ht.apply(null,R(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}(t,"image/jpeg");var s=function(t){var e=0,n=1,r=1;switch(t){case 2:n=-1;break;case 3:e=-180;break;case 4:r=-1;break;case 5:e=90,r=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90}return{rotate:e,scaleX:n,scaleY:r}}(r);i=s.rotate,o=s.scaleX,a=s.scaleY}e.rotatable&&(n.rotate=i),e.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,n=t.crossOrigin,r=e;this.options.checkCrossOrigin&&st(e)&&(n||(n="anonymous"),r=ct(e)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||e,i.alt=t.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),X(i,h),t.parentNode.insertBefore(i,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var n=s.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(s.navigator.userAgent),r=function(e,n){z(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||n){var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||o.removeChild(i)},i.src=e.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}else r(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,n=this.image,r=t.parentNode,i=document.createElement("div");i.innerHTML='
';var o=i.querySelector(".".concat("cropper","-container")),a=o.querySelector(".".concat("cropper","-canvas")),s=o.querySelector(".".concat("cropper","-drag-box")),c=o.querySelector(".".concat("cropper","-crop-box")),u=c.querySelector(".".concat("cropper","-face"));this.container=r,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=c,this.viewBox=o.querySelector(".".concat("cropper","-view-box")),this.face=u,a.appendChild(n),X(t,p),r.insertBefore(o,t.nextSibling),this.isImg||Y(n,h),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,X(c,p),e.guides||X(c.getElementsByClassName("".concat("cropper","-dashed")),p),e.center||X(c.getElementsByClassName("".concat("cropper","-center")),p),e.background&&X(o,"".concat("cropper","-bg")),e.highlight||X(u,d),e.cropBoxMovable&&(X(u,g),J(u,m,"all")),e.cropBoxResizable||(X(c.getElementsByClassName("".concat("cropper","-line")),p),X(c.getElementsByClassName("".concat("cropper","-point")),p)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),L(e.ready)&&nt(t,"ready",e.ready,{once:!0}),rt(t,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Y(this.element,p))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&e(n.prototype,r),i&&e(n,i),t}();return z(St.prototype,gt,mt,yt,bt,wt,xt),St}()},function(t,e,n){var r=n(131);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(39).default)("65540d1b",r,!1,{})},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,"/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}",""])},function(t,e,n){var r=n(133);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(39).default)("81d46ea0",r,!1,{})},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,'/*!\n * Cropper.js v1.5.6\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2019-10-04T04:33:44.164Z\n */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75);overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}',""])},function(t,e,n){"use strict";n(135);var r,i=(r=n(307))&&r.__esModule?r:{default:r};i.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i.default._babelPolyfill=!0},function(t,e,n){"use strict";n(136),n(279),n(281),n(284),n(286),n(288),n(290),n(292),n(294),n(296),n(298),n(300),n(302),n(306)},function(t,e,n){n(137),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(218),n(219),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(87),n(242),n(116),n(243),n(117),n(244),n(245),n(246),n(247),n(118),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),t.exports=n(7)},function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(8),a=n(0),s=n(11),c=n(27).KEY,u=n(2),f=n(51),l=n(40),p=n(30),h=n(5),d=n(68),v=n(97),g=n(139),m=n(54),y=n(3),b=n(4),w=n(10),x=n(15),_=n(26),S=n(29),C=n(34),A=n(100),k=n(20),O=n(53),E=n(9),M=n(32),T=k.f,D=E.f,j=A.f,I=r.Symbol,P=r.JSON,N=P&&P.stringify,$=h("_hidden"),L=h("toPrimitive"),F={}.propertyIsEnumerable,R=f("symbol-registry"),B=f("symbols"),z=f("op-symbols"),W=Object.prototype,U="function"==typeof I&&!!O.f,H=r.QObject,V=!H||!H.prototype||!H.prototype.findChild,X=o&&u((function(){return 7!=C(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=T(W,e);r&&delete W[e],D(t,e,n),r&&t!==W&&D(W,e,r)}:D,Y=function(t){var e=B[t]=C(I.prototype);return e._k=t,e},G=U&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},q=function(t,e,n){return t===W&&q(z,e,n),y(t),e=_(e,!0),y(n),i(B,e)?(n.enumerable?(i(t,$)&&t[$][e]&&(t[$][e]=!1),n=C(n,{enumerable:S(0,!1)})):(i(t,$)||D(t,$,S(1,{})),t[$][e]=!0),X(t,e,n)):D(t,e,n)},K=function(t,e){y(t);for(var n,r=g(e=x(e)),i=0,o=r.length;o>i;)q(t,n=r[i++],e[n]);return t},Z=function(t){var e=F.call(this,t=_(t,!0));return!(this===W&&i(B,t)&&!i(z,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,$)&&this[$][t])||e)},J=function(t,e){if(t=x(t),e=_(e,!0),t!==W||!i(B,e)||i(z,e)){var n=T(t,e);return!n||!i(B,e)||i(t,$)&&t[$][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=j(x(t)),r=[],o=0;n.length>o;)i(B,e=n[o++])||e==$||e==c||r.push(e);return r},tt=function(t){for(var e,n=t===W,r=j(n?z:x(t)),o=[],a=0;r.length>a;)!i(B,e=r[a++])||n&&!i(W,e)||o.push(B[e]);return o};U||(s((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(z,n),i(this,$)&&i(this[$],t)&&(this[$][t]=!1),X(this,t,S(1,n))};return o&&V&&X(W,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),k.f=J,E.f=q,n(35).f=A.f=Q,n(48).f=Z,O.f=tt,o&&!n(31)&&s(W,"propertyIsEnumerable",Z,!0),d.f=function(t){return Y(h(t))}),a(a.G+a.W+a.F*!U,{Symbol:I});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var rt=M(h.store),it=0;rt.length>it;)v(rt[it++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return i(R,t+="")?R[t]:R[t]=I(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!U,"Object",{create:function(t,e){return void 0===e?C(t):K(C(t),e)},defineProperty:q,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=u((function(){O.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return O.f(w(t))}}),P&&a(a.S+a.F*(!U||u((function(){var t=I();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!G(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,N.apply(P,r)}}),I.prototype[L]||n(14)(I.prototype,L,I.prototype.valueOf),l(I,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(51)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),i=n(53),o=n(48);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),c=o.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(99)})},function(t,e,n){var r=n(15),i=n(20).f;n(21)("getOwnPropertyDescriptor",(function(){return function(t,e){return i(r(t),e)}}))},function(t,e,n){var r=n(10),i=n(36);n(21)("getPrototypeOf",(function(){return function(t){return i(r(t))}}))},function(t,e,n){var r=n(10),i=n(32);n(21)("keys",(function(){return function(t){return i(r(t))}}))},function(t,e,n){n(21)("getOwnPropertyNames",(function(){return n(100).f}))},function(t,e,n){var r=n(4),i=n(27).onFreeze;n(21)("freeze",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},function(t,e,n){var r=n(4),i=n(27).onFreeze;n(21)("seal",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},function(t,e,n){var r=n(4),i=n(27).onFreeze;n(21)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},function(t,e,n){var r=n(4);n(21)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(21)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(21)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(101)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(102)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(72).set})},function(t,e,n){"use strict";var r=n(49),i={};i[n(5)("toStringTag")]="z",i+""!="[object z]"&&n(11)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(103)})},function(t,e,n){var r=n(9).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(8)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),i=n(36),o=n(5)("hasInstance"),a=Function.prototype;o in a||n(9).f(a,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),i=n(105);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){var r=n(0),i=n(106);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(23),a=n(74),s=n(26),c=n(2),u=n(35).f,f=n(20).f,l=n(9).f,p=n(41).trim,h=r.Number,d=h,v=h.prototype,g="Number"==o(n(34)(v)),m="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,i,o=(e=m?e.trim():p(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,c=e.slice(2),u=0,f=c.length;ui)return NaN;return parseInt(c,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(g?c((function(){v.valueOf.call(n)})):"Number"!=o(n))?a(new d(y(e)),n,h):y(e)};for(var b,w=n(8)?u(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)i(d,b=w[x])&&!i(h,b)&&l(h,b,f(d,b));h.prototype=v,v.constructor=h,n(11)(r,"Number",h)}},function(t,e,n){"use strict";var r=n(0),i=n(19),o=n(107),a=n(75),s=1..toFixed,c=Math.floor,u=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*u[n],u[n]=r%1e7,r=c(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=u[e],u[e]=c(n/t),n=n%t*1e7},h=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==u[t]){var n=String(u[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,c=o(this,f),u=i(t),v="",g="0";if(u<0||u>20)throw RangeError(f);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(v="-",c=-c),c>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(c*d(2,69,1))-69)<0?c*d(2,-e,1):c/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(l(0,n),r=u;r>=7;)l(1e7,0),r-=7;for(l(d(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<0?v+((s=g.length)<=u?"0."+a.call("0",u-s)+g:g.slice(0,s-u)+"."+g.slice(s-u)):v+g}})},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(107),a=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),i=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(108)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),i=n(108),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),i=n(106);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(0),i=n(105);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(0),i=n(109),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){var r=n(0),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),i=n(76);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(0),i=n(77);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(182)})},function(t,e,n){var r=n(76),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),c=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),u=r(t);return is||n!=n?u*(1/0):u*n}},function(t,e,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,a=0,s=arguments.length,c=0;a0?(r=n/c)*r:n;return c===1/0?1/0:c*Math.sqrt(o)}})},function(t,e,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(2)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(109)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(76)})},function(t,e,n){var r=n(0),i=n(77),o=Math.exp;r(r.S+r.F*n(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),i=n(77),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),i=n(33),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),i=n(15),o=n(6);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),i=n(78)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(0),i=n(6),o=n(80),a="".endsWith;r(r.P+r.F*n(82)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),s=void 0===n?r:Math.min(i(n),r),c=String(t);return a?a.call(e,c,s):e.slice(s-c.length,s)===c}})},function(t,e,n){"use strict";var r=n(0),i=n(80);r(r.P+r.F*n(82)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(75)})},function(t,e,n){"use strict";var r=n(0),i=n(6),o=n(80),a="".startsWith;r(r.P+r.F*n(82)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(12)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(12)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(12)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(12)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(12)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(12)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(12)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(12)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(12)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(12)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(12)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(12)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(12)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),i=n(10),o=n(26);r(r.P+r.F*n(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),i=n(217);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,n){"use strict";var r=n(2),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},function(t,e,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(11)(r,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,e,n){var r=n(5)("toPrimitive"),i=Date.prototype;r in i||n(14)(i,r,n(220))},function(t,e,n){"use strict";var r=n(3),i=n(26);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(54)})},function(t,e,n){"use strict";var r=n(17),i=n(0),o=n(10),a=n(111),s=n(83),c=n(6),u=n(84),f=n(85);i(i.S+i.F*!n(55)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,i,l,p=o(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,g=void 0!==v,m=0,y=f(p);if(g&&(v=r(v,d>2?arguments[2]:void 0,2)),null==y||h==Array&&s(y))for(n=new h(e=c(p.length));e>m;m++)u(n,m,g?v(p[m],m):p[m]);else for(l=y.call(p),n=new h;!(i=l.next()).done;m++)u(n,m,g?a(l,v,[i.value,m],!0):i.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(0),i=n(84);r(r.S+r.F*n(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),i=n(15),o=[].join;r(r.P+r.F*(n(47)!=Object||!n(16)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),i=n(71),o=n(23),a=n(33),s=n(6),c=[].slice;r(r.P+r.F*n(2)((function(){i&&c.call(i)})),"Array",{slice:function(t,e){var n=s(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return c.call(this,t,e);for(var i=a(t,n),u=a(e,n),f=s(u-i),l=new Array(f),p=0;p1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(114)}),n(37)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(86)}),n(37)("fill")},function(t,e,n){"use strict";var r=n(0),i=n(22)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(t,e,n){"use strict";var r=n(0),i=n(22)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)(o)},function(t,e,n){n(43)("Array")},function(t,e,n){var r=n(1),i=n(74),o=n(9).f,a=n(35).f,s=n(81),c=n(56),u=r.RegExp,f=u,l=u.prototype,p=/a/g,h=/a/g,d=new u(p)!==p;if(n(8)&&(!d||n(2)((function(){return h[n(5)("match")]=!1,u(p)!=p||u(h)==h||"/a/i"!=u(p,"i")})))){u=function(t,e){var n=this instanceof u,r=s(t),o=void 0===e;return!n&&r&&t.constructor===u&&o?t:i(d?new f(r&&!o?t.source:t,e):f((r=t instanceof u)?t.source:t,r&&o?c.call(t):e),n?this:l,u)};for(var v=function(t){t in u||o(u,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})},g=a(f),m=0;g.length>m;)v(g[m++]);l.constructor=u,u.prototype=l,n(11)(r,"RegExp",u)}n(43)("RegExp")},function(t,e,n){"use strict";n(117);var r=n(3),i=n(56),o=n(8),a=/./.toString,s=function(t){n(11)(RegExp.prototype,"toString",t,!0)};n(2)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},function(t,e,n){"use strict";var r=n(3),i=n(6),o=n(89),a=n(57);n(58)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var c=r(t),u=String(this);if(!c.global)return a(c,u);var f=c.unicode;c.lastIndex=0;for(var l,p=[],h=0;null!==(l=a(c,u));){var d=String(l[0]);p[h]=d,""===d&&(c.lastIndex=o(u,i(c.lastIndex),f)),h++}return 0===h?null:p}]}))},function(t,e,n){"use strict";var r=n(3),i=n(10),o=n(6),a=n(19),s=n(89),c=n(57),u=Math.max,f=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(t,e,n,d){return[function(r,i){var o=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=d(n,t,this,e);if(i.done)return i.value;var l=r(t),p=String(this),h="function"==typeof e;h||(e=String(e));var g=l.global;if(g){var m=l.unicode;l.lastIndex=0}for(var y=[];;){var b=c(l,p);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(l.lastIndex=s(p,o(l.lastIndex),m))}for(var w,x="",_=0,S=0;S=_&&(x+=p.slice(_,A)+T,_=A+C.length)}return x+p.slice(_)}];function v(t,e,r,o,a,s){var c=r+t.length,u=o.length,f=h;return void 0!==a&&(a=i(a),f=p),n.call(s,f,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var f=+i;if(0===f)return n;if(f>u){var p=l(f/10);return 0===p?n:p<=u?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):n}s=o[f-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(3),i=n(102),o=n(57);n(58)("search",1,(function(t,e,n,a){return[function(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=r(t),c=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var f=o(s,c);return i(s.lastIndex,u)||(s.lastIndex=u),null===f?-1:f.index}]}))},function(t,e,n){"use strict";var r=n(81),i=n(3),o=n(50),a=n(89),s=n(6),c=n(57),u=n(88),f=n(2),l=Math.min,p=[].push,h=!f((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(t,e,n,f){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);for(var o,a,s,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=void 0===e?4294967295:e>>>0,d=new RegExp(t.source,f+"g");(o=u.call(d,i))&&!((a=d.lastIndex)>l&&(c.push(i.slice(l,o.index)),o.length>1&&o.index=h));)d.lastIndex===o.index&&d.lastIndex++;return l===i.length?!s&&d.test("")||c.push(""):c.push(i.slice(l)),c.length>h?c.slice(0,h):c}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var i=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):d.call(String(i),n,r)},function(t,e){var r=f(d,t,this,e,d!==n);if(r.done)return r.value;var u=i(t),p=String(this),v=o(u,RegExp),g=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(h?"y":"g"),y=new v(h?u:"^(?:"+u.source+")",m),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===p.length)return null===c(y,p)?[p]:[];for(var w=0,x=0,_=[];x0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(121),i=n(38);t.exports=n(61)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(1),o=n(22)(0),a=n(11),s=n(27),c=n(101),u=n(122),f=n(4),l=n(38),p=n(38),h=!i.ActiveXObject&&"ActiveXObject"in i,d=s.getWeak,v=Object.isExtensible,g=u.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(f(t)){var e=d(t);return!0===e?g(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(l(this,"WeakMap"),t,e)}},b=t.exports=n(61)("WeakMap",m,y,u,!0,!0);p&&h&&(c((r=u.getConstructor(m,"WeakMap")).prototype,y),s.NEED=!0,o(["delete","has","get","set"],(function(t){var e=b.prototype,n=e[t];a(e,t,(function(e,i){if(f(e)&&!v(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)}))})))},function(t,e,n){"use strict";var r=n(122),i=n(38);n(61)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),i=n(62),o=n(91),a=n(3),s=n(33),c=n(6),u=n(4),f=n(1).ArrayBuffer,l=n(50),p=o.ArrayBuffer,h=o.DataView,d=i.ABV&&f.isView,v=p.prototype.slice,g=i.VIEW;r(r.G+r.W+r.F*(f!==p),{ArrayBuffer:p}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||u(t)&&g in t}}),r(r.P+r.U+r.F*n(2)((function(){return!new p(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),i=s(void 0===e?n:e,n),o=new(l(this,p))(c(i-r)),u=new h(this),f=new h(o),d=0;r=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){var r=n(20),i=n(36),o=n(13),a=n(0),s=n(4),c=n(3);a(a.S,"Reflect",{get:function t(e,n){var a,u,f=arguments.length<3?e:arguments[2];return c(e)===f?e[n]:(a=r.f(e,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(f):void 0:s(u=i(e))?t(u,n,f):void 0}})},function(t,e,n){var r=n(20),i=n(0),o=n(3);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(0),i=n(36),o=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),i=n(3),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(124)})},function(t,e,n){var r=n(0),i=n(3),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(9),i=n(20),o=n(36),a=n(13),s=n(0),c=n(29),u=n(3),f=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var l,p,h=arguments.length<4?e:arguments[3],d=i.f(u(e),n);if(!d){if(f(p=o(e)))return t(p,n,s,h);d=c(0)}if(a(d,"value")){if(!1===d.writable||!f(h))return!1;if(l=i.f(h,n)){if(l.get||l.set||!1===l.writable)return!1;l.value=s,r.f(h,n,l)}else r.f(h,n,c(0,s));return!0}return void 0!==d.set&&(d.set.call(h,s),!0)}})},function(t,e,n){var r=n(0),i=n(72);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(280),t.exports=n(7).Array.includes},function(t,e,n){"use strict";var r=n(0),i=n(52)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(t,e,n){n(282),t.exports=n(7).Array.flatMap},function(t,e,n){"use strict";var r=n(0),i=n(283),o=n(10),a=n(6),s=n(18),c=n(112);r(r.P,"Array",{flatMap:function(t){var e,n,r=o(this);return s(t),e=a(r.length),n=c(r,0),i(n,r,r,e,0,1,t,arguments[1]),n}}),n(37)("flatMap")},function(t,e,n){"use strict";var r=n(54),i=n(4),o=n(6),a=n(17),s=n(5)("isConcatSpreadable");t.exports=function t(e,n,c,u,f,l,p,h){for(var d,v,g=f,m=0,y=!!p&&a(p,h,3);m0)g=t(e,n,d,o(d.length),g,l-1)-1;else{if(g>=9007199254740991)throw TypeError();e[g]=d}g++}m++}return g}},function(t,e,n){n(285),t.exports=n(7).String.padStart},function(t,e,n){"use strict";var r=n(0),i=n(125),o=n(60),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(287),t.exports=n(7).String.padEnd},function(t,e,n){"use strict";var r=n(0),i=n(125),o=n(60),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(289),t.exports=n(7).String.trimLeft},function(t,e,n){"use strict";n(41)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(291),t.exports=n(7).String.trimRight},function(t,e,n){"use strict";n(41)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(293),t.exports=n(68).f("asyncIterator")},function(t,e,n){n(97)("asyncIterator")},function(t,e,n){n(295),t.exports=n(7).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),i=n(124),o=n(15),a=n(20),s=n(84);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),c=a.f,u=i(r),f={},l=0;u.length>l;)void 0!==(n=c(r,e=u[l++]))&&s(f,e,n);return f}})},function(t,e,n){n(297),t.exports=n(7).Object.values},function(t,e,n){var r=n(0),i=n(126)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){n(299),t.exports=n(7).Object.entries},function(t,e,n){var r=n(0),i=n(126)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){"use strict";n(118),n(301),t.exports=n(7).Promise.finally},function(t,e,n){"use strict";var r=n(0),i=n(7),o=n(1),a=n(50),s=n(120);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(303),n(304),n(305),t.exports=n(7)},function(t,e,n){var r=n(1),i=n(0),o=n(60),a=[].slice,s=/MSIE .\./.test(o),c=function(t){return function(e,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};i(i.G+i.B+i.F*s,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){var r=n(0),i=n(90);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){for(var r=n(87),i=n(32),o=n(11),a=n(1),s=n(14),c=n(42),u=n(5),f=u("iterator"),l=u("toStringTag"),p=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(h),v=0;v=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){n(308),t.exports=n(127).global},function(t,e,n){var r=n(309);r(r.G,{global:n(92)})},function(t,e,n){var r=n(92),i=n(127),o=n(310),a=n(312),s=n(319),c=function(t,e,n){var u,f,l,p=t&c.F,h=t&c.G,d=t&c.S,v=t&c.P,g=t&c.B,m=t&c.W,y=h?i:i[e]||(i[e]={}),b=y.prototype,w=h?r:d?r[e]:(r[e]||{}).prototype;for(u in h&&(n=e),n)(f=!p&&w&&void 0!==w[u])&&s(y,u)||(l=f?w[u]:n[u],y[u]=h&&"function"!=typeof w[u]?n[u]:g&&f?o(l,r):m&&w[u]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):v&&"function"==typeof l?o(Function.call,l):l,v&&((y.virtual||(y.virtual={}))[u]=l,t&c.R&&b&&!b[u]&&a(b,u,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(311);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(313),i=n(318);t.exports=n(94)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(314),i=n(315),o=n(317),a=Object.defineProperty;e.f=n(94)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(93);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(94)&&!n(128)((function(){return 7!=Object.defineProperty(n(316)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(93),i=n(92).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(93);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";var r=n(63);n.n(r).a},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,".app[data-v-5ef48958]{bottom:0;left:0;position:absolute;top:0;right:0}.header[data-v-5ef48958]{background-color:#666;height:3rem;overflow:hidden;padding-left:1rem;padding-right:1rem;position:relative;z-index:1}@media (min-width:768px){.header[data-v-5ef48958]{padding-left:1.5rem;padding-right:1.5rem}}.title[data-v-5ef48958]{color:#fff;display:block;float:left;font-size:1.125rem;line-height:3rem}.main[data-v-5ef48958]{background-color:#333;bottom:0;left:0;position:absolute;right:0;top:3rem}",""])},function(t,e,n){"use strict";var r=n(64);n.n(r).a},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,".canvas[data-v-18686cfd],.editor[data-v-18686cfd]{height:100%}.canvas[data-v-18686cfd]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.canvas>img[data-v-18686cfd]{max-height:100%;max-width:100%}.toolbar[data-v-18686cfd]{background-color:rgba(0,0,0,.5);bottom:1rem;color:#fff;height:2rem;left:50%;margin-left:-8rem;position:absolute;width:16rem;z-index:2015}.toolbar__button[data-v-18686cfd]{background-color:transparent;border-width:0;color:#fff;cursor:pointer;display:block;float:left;font-size:.875rem;height:2rem;text-align:center;width:2rem}.toolbar__button[data-v-18686cfd]:focus{outline:none}.toolbar__button[data-v-18686cfd]:hover{background-color:#0074d9;color:#fff}",""])},function(t,e,n){"use strict";var r=n(65);n.n(r).a},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,".loader[data-v-f2448eba]{display:table;height:100%;overflow:hidden;width:100%}.loader>p[data-v-f2448eba]{color:#999;display:table-cell;text-align:center;vertical-align:middle}.browse[data-v-f2448eba]{color:#0074d9;cursor:pointer;margin-left:.25rem}.browse[data-v-f2448eba]:hover{color:#08f;text-decoration:underline}",""])},function(t,e,n){"use strict";var r=n(66);n.n(r).a},function(t,e,n){(t.exports=n(28)(!1)).push([t.i,".navbar[data-v-688b5e20]{float:right}.nav__button[data-v-688b5e20]{background-color:transparent;border-width:0;color:#fff;cursor:pointer;display:block;float:left;height:3rem;line-height:3rem;text-align:center;width:3rem}.nav__button[data-v-688b5e20]:focus{outline:none}.nav__button[data-v-688b5e20]:hover{background-color:#0074d9;color:#fff}.nav--success[data-v-688b5e20]:hover{background-color:#2ecc40}.nav--danger[data-v-688b5e20]:hover{background-color:#ff4136}",""])},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(329),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(95))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,c=1,u={},f=!1,l=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){o.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,r=function(t){var e=l.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;n=0&&(t.preventDefault(),t.stopPropagation(),this.crop())},start:function(){var t=this,e=this.data;e.cropped||this.cropper||(this.cropper=new l.a(this.$refs.image,{autoCrop:!1,dragMode:"move",background:!1,ready:function(){t.croppedData&&(t.cropper.crop().setData(t.croppedData).setCanvasData(t.canvasData).setCropBoxData(t.cropBoxData),t.croppedData=null,t.canvasData=null,t.cropBoxData=null)},crop:function(n){var r=n.detail;r.width>0&&r.height>0&&!e.cropping&&t.update({cropping:!0})}}))},stop:function(){this.cropper&&(this.cropper.destroy(),this.cropper=null)},crop:function(){var t=this.cropper,e=this.data;e.cropping&&(this.croppedData=t.getData(),this.canvasData=t.getCanvasData(),this.cropBoxData=t.getCropBoxData(),this.update({cropped:!0,cropping:!1,previousUrl:e.url,url:t.getCroppedCanvas("image/png"===e.type?{}:{fillColor:"#fff"}).toDataURL(e.type)}),this.stop())},clear:function(){this.data.cropping&&(this.cropper.clear(),this.update({cropping:!1}))},restore:function(){this.data.cropped&&this.update({cropped:!1,previousUrl:"",url:this.data.previousUrl})},reset:function(){this.stop(),this.update({cropped:!1,cropping:!1,loaded:!1,name:"",previousUrl:"",type:"",url:""})},update:function(t){Object.assign(this.data,t)}}},h=(n(322),a(p,u,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"move",title:"Move (M)"}},[e("span",{staticClass:"fa fa-arrows"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"crop",title:"Crop (C)"}},[e("span",{staticClass:"fa fa-crop"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"zoom-in",title:"Zoom In (I)"}},[e("span",{staticClass:"fa fa-search-plus"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"zoom-out",title:"Zoom Out (O)"}},[e("span",{staticClass:"fa fa-search-minus"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"rotate-left",title:"Rotate Left (L)"}},[e("span",{staticClass:"fa fa-rotate-left"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"rotate-right",title:"Rotate Right (R)"}},[e("span",{staticClass:"fa fa-rotate-right"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"flip-horizontal",title:"Flip Horizontal (H)"}},[e("span",{staticClass:"fa fa-arrows-h"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"toolbar__button",attrs:{"data-action":"flip-vertical",title:"Flip Vertical (V)"}},[e("span",{staticClass:"fa fa-arrows-v"})])}],!1,null,"18686cfd",null));h.options.__file="src/components/editor.vue";var d=h.exports,v=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"loader",on:{change:this.change,dragover:this.dragover,drop:this.drop}},[this._m(0)])};v._withStripped=!0;var g=window.URL||window.webkitURL,m={name:"Loader",props:{data:{type:Object,default:function(){return{}}}},methods:{read:function(t){return new Promise((function(e,n){if(t&&0!==t.length){var r=t[0];/^image\/\w+$/.test(r.type)?g?e({loaded:!0,name:r.name,type:r.type,url:g.createObjectURL(r)}):n(new Error("Your browser is not supported.")):n(new Error("Please choose an image file."))}else e()}))},change:function(t){var e=this,n=t.target;this.read(n.files).then((function(t){n.value="",e.update(t)})).catch((function(t){n.value="",e.alert(t)}))},dragover:function(t){t.preventDefault()},drop:function(t){var e=this;t.preventDefault(),this.read(t.dataTransfer.files).then((function(t){e.update(t)})).catch(this.alert)},alert:function(t){window.alert(t&&t.message?t.message:t)},update:function(t){Object.assign(this.data,t)}}},y=(n(324),a(m,v,[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n Drop image here or\n "),e("label",{staticClass:"browse"},[this._v("browse...\n "),e("input",{staticClass:"sr-only",attrs:{id:"file",type:"file",accept:"image/*"}})])])}],!1,null,"f2448eba",null));y.options.__file="src/components/loader.vue";var b=y.exports,w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar"},[n("nav",{staticClass:"nav",on:{click:t.click}},[t.data.loaded?t._e():n("label",{staticClass:"nav__button",attrs:{for:"file",title:"Upload",role:"button"}},[n("span",{staticClass:"fa fa-upload"})]),t._v(" "),t.data.cropped?n("button",{staticClass:"nav__button",attrs:{type:"button","data-action":"restore",title:"Undo (Ctrl + Z)"}},[n("span",{staticClass:"fa fa-undo"})]):t._e(),t._v(" "),t.data.loaded&&!t.data.cropping?n("button",{staticClass:"nav__button nav__button--danger",attrs:{type:"button","data-action":"remove",title:"Delete (Delete)"}},[n("span",{staticClass:"fa fa-trash"})]):t._e(),t._v(" "),t.data.cropping?n("button",{staticClass:"nav__button nav__button--danger",attrs:{type:"button","data-action":"clear",title:"Cancel (Esc)"}},[n("span",{staticClass:"fa fa-ban"})]):t._e(),t._v(" "),t.data.cropping?n("button",{staticClass:"nav__button nav__button--success",attrs:{type:"button","data-action":"crop",title:"OK (Enter)"}},[n("span",{staticClass:"fa fa-check"})]):t._e(),t._v(" "),t.downloadable&&t.data.loaded?n("a",{staticClass:"nav__button nav__button--success",attrs:{title:"Download",download:t.data.name,href:t.data.url}},[n("span",{staticClass:"fa fa-download"})]):t._e(),t._v(" "),t._m(0)])])};w._withStripped=!0;var x={name:"Navbar",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{downloadable:void 0!==document.createElement("a").download}},methods:{click:function(t){var e=t.target,n=e.getAttribute("data-action")||e.parentElement.getAttribute("data-action");n&&this.$emit("change",n)}}},_=(n(326),a(x,w,[function(){var t=this.$createElement,e=this._self._c||t;return e("a",{staticClass:"nav__button",attrs:{href:"https://github.com/fengyuanchen/photo-editor",title:"View on GitHub"}},[e("span",{staticClass:"fa fa-github"})])}],!1,null,"688b5e20",null));_.options.__file="src/components/navbar.vue";var S=_.exports;r.a.component(d.name,d),r.a.component(b.name,b),r.a.component(S.name,S);n(331);new r.a({el:"#app",render:function(t){return t(c)}})}]); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5f7c558..eb06b0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "photo-editor", - "version": "1.1.4", + "version": "1.1.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ae5cd59..fc48bc1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "photo-editor", "description": "A photo editing application based on the Cropper.js", - "version": "1.1.4", + "version": "1.1.5", "main": "index.html", "scripts": { "build": "webpack --mode production --env.production",