From fcbf2e42e8768e3b11b77d2384c024f87d7cdaf5 Mon Sep 17 00:00:00 2001 From: Timothy <timothy_lee@trendmicro.com> Date: Thu, 8 Oct 2020 14:14:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20v3.0.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ dist/vuejs-clipper.umd.js | 18 +++++++----------- dist/vuejs-clipper.umd.min.js | 4 ++-- package.json | 2 +- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 02b21b5..2db6d7e 100644 --- a/README.md +++ b/README.md @@ -468,6 +468,8 @@ Props that are not defined below will apply to the file input as attributes, for ## Changelog +* 3.0.4 + * `clipper-upload` accept rest props as input attributes. * 3.0.3 * Feature: Add `handleZoomEvent` to `clipper-fixed` for controlling zoom behavior. (issue [#54](https://github.com/timtnleeProject/vuejs-clipper/issues/54) * 3.0.2 diff --git a/dist/vuejs-clipper.umd.js b/dist/vuejs-clipper.umd.js index d0070d4..1cfb8f5 100644 --- a/dist/vuejs-clipper.umd.js +++ b/dist/vuejs-clipper.umd.js @@ -203,7 +203,7 @@ exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnProper "use strict"; -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6c582107-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-preview.vue?vue&type=template&id=6f79f498&scoped=true& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ed39bd1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-preview.vue?vue&type=template&id=6f79f498&scoped=true& var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"preview"},[_c('div',{staticClass:"wrap",style:(_vm.wrapStyle)},[_c('canvas',{staticClass:"shim",attrs:{"width":_vm.outerWidth,"height":_vm.outerHeight}}),_c('div',{staticClass:"img-pos",style:(_vm.styleObj)},[_c('div',{staticClass:"img-rotate",style:(_vm.rotateStyle)},[_c('img',{staticClass:"img",attrs:{"src":_vm.src},on:{"load":_vm.imgLoaded}})])])]),_c('div',{staticClass:"placeholder",style:(_vm.eptStyle)},[_vm._t("placeholder")],2)])} var staticRenderFns = [] @@ -1048,12 +1048,12 @@ module.exports = function (METHOD_NAME) { "use strict"; -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6c582107-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-upload.vue?vue&type=template&id=7ca07d12& -var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"click":_vm.triggerInput}},[_vm._t("default"),_c('img',{staticClass:"stem",staticStyle:{"display":"none"},attrs:{"src":_vm.DomString}}),_c('input',{staticClass:"upload",staticStyle:{"display":"none"},attrs:{"type":"file","accept":_vm.accept},on:{"change":function($event){return _vm.upload($event)},"click":function($event){return _vm.clear($event)}}})],2)} +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ed39bd1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-upload.vue?vue&type=template&id=4d45ae96& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"click":_vm.triggerInput}},[_vm._t("default"),_c('img',{staticClass:"stem",staticStyle:{"display":"none"},attrs:{"src":_vm.DomString}}),_c('input',_vm._b({staticClass:"upload",staticStyle:{"display":"none"},attrs:{"type":"file"},on:{"change":function($event){return _vm.upload($event)},"click":function($event){return _vm.clear($event)}}},'input',_vm.$attrs,false))],2)} var staticRenderFns = [] -// CONCATENATED MODULE: ./src/components/clipper-upload.vue?vue&type=template&id=7ca07d12& +// CONCATENATED MODULE: ./src/components/clipper-upload.vue?vue&type=template&id=4d45ae96& // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js var es_array_iterator = __webpack_require__("e260"); @@ -1110,10 +1110,6 @@ var exif_default = /*#__PURE__*/__webpack_require__.n(exif); /* harmony default export */ var clipper_uploadvue_type_script_lang_js_ = ({ props: { - accept: { - type: String, - default: '*' - }, exif: { type: Boolean, default: true @@ -3705,7 +3701,7 @@ module.exports = function (bitmap, value) { "use strict"; -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6c582107-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-range.vue?vue&type=template&id=27132352&scoped=true& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ed39bd1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-range.vue?vue&type=template&id=27132352&scoped=true& var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clipper-range"},[_c('div',{directives:[{name:"stream",rawName:"v-stream:mousedown",value:(_vm.mousedown$),expression:"mousedown$",arg:"mousedown"},{name:"stream",rawName:"v-stream:touchstart",value:(_vm.touchstart$),expression:"touchstart$",arg:"touchstart"}],staticClass:"wrap"},[_c('div',{staticClass:"stick"}),_c('div',{staticClass:"bar",style:(_vm.barStyle)})])])} var staticRenderFns = [] @@ -5618,7 +5614,7 @@ module.exports = function (NAME) { "use strict"; -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6c582107-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-basic.vue?vue&type=template&id=2b48af89&scoped=true& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ed39bd1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-basic.vue?vue&type=template&id=2b48af89&scoped=true& var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"js-clipper-basic"},[_c('div',{staticClass:"vuejs-clipper-basic__clip-area js-clip-area",class:{ vertical: _vm.isVertical },style:(_vm.areaStyle)},[_c('canvas',{staticClass:"vuejs-clipper-basic__stem-canvas",attrs:{"width":_vm.stemArea.width,"height":_vm.stemArea.height}}),_c('div',{staticClass:"vuejs-clipper-basic__padding",style:({'padding': _vm.areaStyle.padding})},[_c('div',{staticClass:"vuejs-clipper-basic__in-pad"},[_c('div',{staticClass:"vuejs-clipper-basic__img-scale js-img-scale",style:(_vm.scaleStyle)},[_c('img',{staticClass:"vuejs-clipper-basic__img js-img",style:(_vm.rotateStyle),attrs:{"src":_vm.src,"crossorigin":_vm.crossOrigin},on:{"load":function($event){_vm.imgLoaded();_vm.emit('load',$event)},"error":function($event){return _vm.emit('error',$event)}}})])])]),_c('div',{staticClass:"vuejs-clipper-basic__zoom-area js-zoom-area",style:(_vm.posObj)},[_c('div',{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--outer",style:(_vm.exOuterStyle)}),_c('div',{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--inner",style:(_vm.exInnerStyle)},[_c('div',{staticClass:"vuejs-clipper-basic__drag-inset js-drag-inset"})]),(_vm.corner)?_c('div',_vm._l((4),function(index){return _c('div',{key:'corner'+index,staticClass:"vuejs-clipper-basic__corner",class:("vuejs-clipper-basic__corner" + index)})}),0):_vm._e(),(_vm.grid)?_c('div',{staticClass:"vuejs-clipper-basic__grid"},_vm._l((4),function(index){return _c('div',{key:'gridItem'+index,staticClass:"vuejs-clipper-basic__grid-item"})}),0):_vm._e(),_vm._t("vuejs-clipper-basic__area")],2)]),_c('div',{staticClass:"vuejs-clipper-basic__placeholder",style:(_vm.eptStyle)},[_vm._t("placeholder")],2)])} var staticRenderFns = [] @@ -12113,7 +12109,7 @@ var MapSubscriber = /*@__PURE__*/ (function (_super) { "use strict"; -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6c582107-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-fixed.vue?vue&type=template&id=ada97070&scoped=true& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ed39bd1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-fixed.vue?vue&type=template&id=ada97070&scoped=true& var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"js-clipper-fixed"},[_c('div',{staticClass:"vuejs-clipper-fixed__wrap js-wrap",style:(_vm.wrapStyle)},[_c('canvas',{staticClass:"vuejs-clipper-fixed__stem-outer",attrs:{"width":_vm.stemArea.width,"height":_vm.stemArea.height}}),_c('div',{staticClass:"vuejs-clipper-fixed__img-center"},[_c('canvas',{staticClass:"vuejs-clipper-fixed__stem-bg js-stem-bg"}),_c('div',{staticClass:"vuejs-clipper-fixed__img-scale js-img-scale",style:(_vm.scaleStyle)},[_c('div',{staticClass:"vuejs-clipper-fixed__img-translate js-img-translate",style:(_vm.translateStyle)},[_c('img',{staticClass:"vuejs-clipper-fixed__img js-img",style:(_vm.bgStyle),attrs:{"src":_vm.src,"crossorigin":_vm.crossOrigin},on:{"load":function($event){_vm.imgLoaded(); _vm.emit('load',$event)},"error":function($event){return _vm.emit('error',$event)}}})])])]),_c('div',{staticClass:"vuejs-clipper-fixed__cover"},[_c('div',{staticClass:"vuejs-clipper-fixed__area js-area",style:(_vm.areaStyle)},[_c('canvas',{staticClass:"vuejs-clipper-fixed__stem-area",style:(_vm.stemStyle),attrs:{"width":_vm.stemArea.width,"height":_vm.stemArea.height}}),(_vm.grid)?_c('div',{staticClass:"vuejs-clipper-fixed__grid"},_vm._l((4),function(index){return _c('div',{key:'gridItem'+index,staticClass:"vuejs-clipper-fixed__grid-item"})}),0):_vm._e()])])]),_c('div',{staticClass:"vuejs-clipper-fixed__placeholder",style:(_vm.eptStyle)},[_vm._t("placeholder")],2)])} var staticRenderFns = [] diff --git a/dist/vuejs-clipper.umd.min.js b/dist/vuejs-clipper.umd.min.js index f53ce18..4721383 100644 --- a/dist/vuejs-clipper.umd.min.js +++ b/dist/vuejs-clipper.umd.min.js @@ -1,4 +1,4 @@ -(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vuejs-clipper"]=e():t["vuejs-clipper"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};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)}}},"057f":function(t,e,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?c(t):i(r(t))}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),c=n("c04e"),s=n("5135"),u=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e,!0),u)try{return f(t,e)}catch(n){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},"0bd0":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"preview"},[n("div",{staticClass:"wrap",style:t.wrapStyle},[n("canvas",{staticClass:"shim",attrs:{width:t.outerWidth,height:t.outerHeight}}),n("div",{staticClass:"img-pos",style:t.styleObj},[n("div",{staticClass:"img-rotate",style:t.rotateStyle},[n("img",{staticClass:"img",attrs:{src:t.src},on:{load:t.imgLoaded}})])])]),n("div",{staticClass:"placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("99af"),n("b0c0"),n("0f53")),a={props:{name:{type:String,required:!0}},data:function(){return{src:"",imgEl:null,imgWidth:1,imgHeight:1,outerWidth:1,outerHeight:1,bgColor:"white",pos:{},rotate:0}},computed:{styleObj:function(){var t=this.pos.sx/this.imgWidth,e=this.pos.sy/this.imgHeight,n=this.imgWidth/this.pos.swidth;return{transform:"scale(".concat(n,") translate(").concat(-100*t,"% ,").concat(-100*e,"%)")}},rotateStyle:function(){return{transform:"rotate(".concat(this.rotate,"deg)")}},wrapStyle:function(){var t=this.src?"block":"none";return{backgroundColor:this.bgColor,display:t}},eptStyle:function(){return{display:this.src?"none":"block"}}},mounted:function(){this.imgEl=this.$el.querySelector(".img"),this.initListener()},methods:{initListener:function(){var t=this.$parent,e=o["a"].parentPropName;t[e]||(t[e]={}),t[e][this.name]||(t[e][this.name]=[]);var n=t[e][this.name];n.push(this)},setData:function(t){for(var e in t)this[e]=t[e]},imgLoaded:function(){this.imgWidth=this.imgEl.naturalWidth,this.imgHeight=this.imgEl.naturalHeight},locateImage:function(t,e){this.rotate=e,this.outerWidth=t.swidth,this.outerHeight=t.sheight,this.pos=t}}},c=a,s=(n("75eb"),n("2877")),u=Object(s["a"])(c,r,i,!1,null,"6f79f498",null);e["a"]=u.exports},"0ca4":function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("c430"),a=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e["delete"]("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0f53":function(t,e,n){"use strict";var r={parentPropName:"_imgPreviewLists"};e["a"]=r},1033:function(t,e,n){"use strict";var r=n("4be4"),i=n.n(r);i.a},"127f":function(t,e,n){"use strict";function r(){return"function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},1453:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("9ab4"),i=n("d817"),o=n("e9a8"),a=n("a6e8"),c=n("2ff5"),s=n("88bc"),u=n("0ca4"),f=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o["a"];break;case 1:if(!n){a.destination=o["a"];break}if("object"===typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new l(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new l(a,n,r,i);break}return a}return r["a"](e,t),e.prototype[c["a"]]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a["a"]),l=function(t){function e(e,n,r,a){var c,s=t.call(this)||this;s._parentSubscriber=e;var u=s;return Object(i["a"])(n)?c=n:n&&(c=n.next,r=n.error,a=n.complete,n!==o["a"]&&(u=Object.create(n),Object(i["a"])(u.unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(s))),s._context=u,s._next=c,s._error=r,s._complete=a,s}return r["a"](e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s["a"].useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s["a"].useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(u["a"])(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(u["a"])(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s["a"].useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),s["a"].useDeprecatedSynchronousErrorHandling)throw n;Object(u["a"])(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s["a"].useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return s["a"].useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(u["a"])(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f)},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var c in i){var s=r[c],u=s&&s.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(f){u.forEach=o}}},1716:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("fad2"),i=n("0ca4"),o=function(t){return function(e){return t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,i["a"]),e}},a=n("127f"),c=function(t){return function(e){var n=t[a["a"]]();do{var r=void 0;try{r=n.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}while(1);return"function"===typeof n.return&&e.add((function(){n.return&&n.return()})),e}},s=n("c539"),u=function(t){return function(e){var n=t[s["a"]]();if("function"!==typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},f=n("d9e3"),l=n("fd66"),h=n("31c4"),p=function(t){if(t&&"function"===typeof t[s["a"]])return u(t);if(Object(f["a"])(t))return Object(r["a"])(t);if(Object(l["a"])(t))return o(t);if(t&&"function"===typeof t[a["a"]])return c(t);var e=Object(h["a"])(t)?"an invalid object":"'"+t+"'",n="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(n)}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=n("ae40"),a=i("forEach"),c=o("forEach");t.exports=a&&c?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,c={next:function(){return{done:!!a++}},return:function(){o=!0}};c[i]=function(){return this},Array.from(c,(function(){throw 2}))}catch(s){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(s){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"208d":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{click:t.triggerInput}},[t._t("default"),n("img",{staticClass:"stem",staticStyle:{display:"none"},attrs:{src:t.DomString}}),n("input",{staticClass:"upload",staticStyle:{display:"none"},attrs:{type:"file",accept:t.accept},on:{change:function(e){return t.upload(e)},click:function(e){return t.clear(e)}}})],2)},i=[],o=(n("e260"),n("d3b7"),n("e6cf"),n("3ca3"),n("2ca0"),n("ddb0"),n("2b3d"),n("6f45")),a=n.n(o),c={props:{accept:{type:String,default:"*"},exif:{type:Boolean,default:!0},value:{type:String,default:""},check:{type:Boolean,default:!0}},data:function(){return{uploadEl:null,file:null,DomString:""}},mounted:function(){this.uploadEl=this.$el.querySelector(".upload")},methods:{upload:function(t){var e=this;1===t.target.files.length&&(this.file=t.target.files[0],this.check&&!this.file.type.startsWith("image/")||(this.DomString&&/^blob:/.test(this.DomString)&&window.URL.revokeObjectURL(this.DomString),this.DomString=window.URL.createObjectURL(this.file),this.checkEXIF().then((function(){e.$emit("input",e.DomString)}))))},checkEXIF:function(){var t=this;return new Promise((function(e,n){if(!t.exif)return n(new Error);e()})).then((function(){return t.getEXIF()})).then((function(e){return t.getImageRect().then((function(t){var n=t.width,r=t.height;return Promise.resolve({width:n,height:r,orientation:e})})).catch((function(){return Promise.reject(new Error)}))})).then(this.tranformCanvas).catch((function(){return Promise.resolve()}))},getEXIF:function(){var t=this;return new Promise((function(e,n){a.a.getData(t.file,(function(){var t=this.exifdata.Orientation;void 0!==t&&1!==t||n(new Error),e(t)}))}))},getImageRect:function(){var t=this;return new Promise((function(e,n){var r=t.$el.querySelector(".stem");if(r.complete)return e({width:r.naturalWidth,height:r.naturalHeight});r.onload=function(){e({width:this.naturalWidth,height:this.naturalHeight})},r.onerror=function(){n(new Error("img on load error"))}}))},tranformCanvas:function(t){var e=t.width,n=t.height,r=t.orientation,i=document.createElement("canvas"),o=i.getContext("2d");switch(r>4&&r<9?(i.width=n,i.height=e):(i.width=e,i.height=n),r){case 2:o.transform(-1,0,0,1,e,0);break;case 3:o.transform(-1,0,0,-1,e,n);break;case 4:o.transform(1,0,0,-1,0,n);break;case 5:o.transform(0,1,1,0,0,0);break;case 6:o.transform(0,1,-1,0,n,0);break;case 7:o.transform(0,-1,-1,0,n,e);break;case 8:o.transform(0,-1,1,0,0,e);break;default:break}o.drawImage(this.$el.querySelector(".stem"),0,0),this.DomString=i.toDataURL(this.file.type)},clear:function(t){t.target.value=null},triggerInput:function(){this.uploadEl&&this.uploadEl.click()}}},s=c,u=n("2877"),f=Object(u["a"])(s,r,i,!1,null,null,null);e["a"]=f.exports},2144:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("e9b9"),i=n("fad2"),o=n("245f");function a(t,e){return e?Object(o["a"])(t,e):new r["a"](Object(i["a"])(t))}},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),c=n("35a1"),s=n("9bdd"),u=function(t,e){this.stopped=t,this.result=e},f=t.exports=function(t,e,n,f,l){var h,p,d,b,g,m,v,y=a(e,n,f?2:1);if(l)h=t;else{if(p=c(t),"function"!=typeof p)throw TypeError("Target is not iterable");if(i(p)){for(d=0,b=o(t.length);b>d;d++)if(g=f?y(r(v=t[d])[0],v[1]):y(t[d]),g&&g instanceof u)return g;return new u(!1)}h=p.call(t)}m=h.next;while(!(v=m.call(h)).done)if(g=s(h,y,v.value,f),"object"==typeof g&&g&&g instanceof u)return g;return new u(!1)};f.stop=function(t){return new u(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),c=n("ce4e"),s=n("e893"),u=n("94ca");t.exports=function(t,e){var n,f,l,h,p,d,b=t.target,g=t.global,m=t.stat;if(f=g?r:m?r[b]||c(b,{}):(r[b]||{}).prototype,f)for(l in e){if(p=e[l],t.noTargetGet?(d=i(f,l),h=d&&d.value):h=f[l],n=u(g?l:b+(m?".":"#")+l,t.forced),!n&&void 0!==h){if(typeof p===typeof h)continue;s(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(f,l,p,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"245f":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("e9b9"),i=n("a6e8");function o(t,e){return new r["a"]((function(n){var r=new i["a"],o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),c=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,c){var s,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=s):i&&(s=c?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(u.functional){u._injectStyles=s;var f=u.render;u.render=function(t,e){return s.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,s):[s]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},"2b3d":function(t,e,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),a=n("0d3b"),c=n("da84"),s=n("37e8"),u=n("6eeb"),f=n("19aa"),l=n("5135"),h=n("60da"),p=n("4df4"),d=n("6547").codeAt,b=n("5fb2"),g=n("d44e"),m=n("9861"),v=n("69f3"),y=c.URL,w=m.URLSearchParams,x=m.getState,S=v.set,j=v.getterFor("URL"),O=Math.floor,E=Math.pow,P="Invalid authority",_="Invalid scheme",C="Invalid host",T="Invalid port",$=/[A-Za-z]/,L=/[\d+-.A-Za-z]/,I=/\d/,R=/^(0x|0X)/,k=/^[0-7]+$/,D=/^\d+$/,A=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\u0009\u000A\u000D]/g,Y=function(t,e){var n,r,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return C;if(n=X(e.slice(1,-1)),!n)return C;t.host=n}else if(K(t)){if(e=b(e),N.test(e))return C;if(n=W(e),null===n)return C;t.host=n}else{if(F.test(e))return C;for(n="",r=p(e),i=0;i<r.length;i++)n+=Z(r[i],G);t.host=n}},W=function(t){var e,n,r,i,o,a,c,s=t.split(".");if(s.length&&""==s[s.length-1]&&s.pop(),e=s.length,e>4)return t;for(n=[],r=0;r<e;r++){if(i=s[r],""==i)return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=R.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?D:8==o?k:A).test(i))return t;a=parseInt(i,o)}n.push(a)}for(r=0;r<e;r++)if(a=n[r],r==e-1){if(a>=E(256,5-e))return null}else if(a>255)return null;for(c=n.pop(),r=0;r<n.length;r++)c+=n[r]*E(256,3-r);return c},X=function(t){var e,n,r,i,o,a,c,s=[0,0,0,0,0,0,0,0],u=0,f=null,l=0,h=function(){return t.charAt(l)};if(":"==h()){if(":"!=t.charAt(1))return;l+=2,u++,f=u}while(h()){if(8==u)return;if(":"!=h()){e=n=0;while(n<4&&A.test(h()))e=16*e+parseInt(h(),16),l++,n++;if("."==h()){if(0==n)return;if(l-=n,u>6)return;r=0;while(h()){if(i=null,r>0){if(!("."==h()&&r<4))return;l++}if(!I.test(h()))return;while(I.test(h())){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;l++}s[u]=256*s[u]+i,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;s[u++]=e}else{if(null!==f)return;l++,u++,f=u}}if(null!==f){a=u-f,u=7;while(0!=u&&a>0)c=s[u],s[u--]=s[f+a-1],s[f+--a]=c}else if(8!=u)return;return s},H=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e},B=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=O(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=H(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},G={},q=h({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),V=h({},q,{"#":1,"?":1,"{":1,"}":1}),z=h({},V,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(t,e){var n=d(t,0);return n>32&&n<127&&!l(e,t)?t:encodeURIComponent(t)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(t){return l(J,t.scheme)},Q=function(t){return""!=t.username||""!=t.password},tt=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},et=function(t,e){var n;return 2==t.length&&$.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},nt=function(t){var e;return t.length>1&&et(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},rt=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&et(e[0],!0)||e.pop()},it=function(t){return"."===t||"%2e"===t.toLowerCase()},ot=function(t){return t=t.toLowerCase(),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},at={},ct={},st={},ut={},ft={},lt={},ht={},pt={},dt={},bt={},gt={},mt={},vt={},yt={},wt={},xt={},St={},jt={},Ot={},Et={},Pt={},_t=function(t,e,n,i){var o,a,c,s,u=n||at,f=0,h="",d=!1,b=!1,g=!1;n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(U,"")),e=e.replace(M,""),o=p(e);while(f<=o.length){switch(a=o[f],u){case at:if(!a||!$.test(a)){if(n)return _;u=st;continue}h+=a.toLowerCase(),u=ct;break;case ct:if(a&&(L.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return _;h="",u=st,f=0;continue}if(n&&(K(t)!=l(J,h)||"file"==h&&(Q(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=h,n)return void(K(t)&&J[t.scheme]==t.port&&(t.port=null));h="","file"==t.scheme?u=yt:K(t)&&i&&i.scheme==t.scheme?u=ut:K(t)?u=pt:"/"==o[f+1]?(u=ft,f++):(t.cannotBeABaseURL=!0,t.path.push(""),u=Ot)}break;case st:if(!i||i.cannotBeABaseURL&&"#"!=a)return _;if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,u=Pt;break}u="file"==i.scheme?yt:lt;continue;case ut:if("/"!=a||"/"!=o[f+1]){u=lt;continue}u=dt,f++;break;case ft:if("/"==a){u=bt;break}u=jt;continue;case lt:if(t.scheme=i.scheme,a==r)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&K(t))u=ht;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",u=Et;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),u=jt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=Pt}break;case ht:if(!K(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,u=jt;continue}u=bt}else u=dt;break;case pt:if(u=dt,"/"!=a||"/"!=h.charAt(f+1))continue;f++;break;case dt:if("/"!=a&&"\\"!=a){u=bt;continue}break;case bt:if("@"==a){d&&(h="%40"+h),d=!0,c=p(h);for(var m=0;m<c.length;m++){var v=c[m];if(":"!=v||g){var y=Z(v,z);g?t.password+=y:t.username+=y}else g=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(d&&""==h)return P;f-=p(h).length+1,h="",u=gt}else h+=a;break;case gt:case mt:if(n&&"file"==t.scheme){u=xt;continue}if(":"!=a||b){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(K(t)&&""==h)return C;if(n&&""==h&&(Q(t)||null!==t.port))return;if(s=Y(t,h),s)return s;if(h="",u=St,n)return;continue}"["==a?b=!0:"]"==a&&(b=!1),h+=a}else{if(""==h)return C;if(s=Y(t,h),s)return s;if(h="",u=vt,n==mt)return}break;case vt:if(!I.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return T;t.port=K(t)&&w===J[t.scheme]?null:w,h=""}if(n)return;u=St;continue}return T}h+=a;break;case yt:if(t.scheme="file","/"==a||"\\"==a)u=wt;else{if(!i||"file"!=i.scheme){u=jt;continue}if(a==r)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",u=Et;else{if("#"!=a){nt(o.slice(f).join(""))||(t.host=i.host,t.path=i.path.slice(),rt(t)),u=jt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=Pt}}break;case wt:if("/"==a||"\\"==a){u=xt;break}i&&"file"==i.scheme&&!nt(o.slice(f).join(""))&&(et(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),u=jt;continue;case xt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&et(h))u=jt;else if(""==h){if(t.host="",n)return;u=St}else{if(s=Y(t,h),s)return s;if("localhost"==t.host&&(t.host=""),n)return;h="",u=St}continue}h+=a;break;case St:if(K(t)){if(u=jt,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=jt,"/"!=a))continue}else t.fragment="",u=Pt;else t.query="",u=Et;break;case jt:if(a==r||"/"==a||"\\"==a&&K(t)||!n&&("?"==a||"#"==a)){if(ot(h)?(rt(t),"/"==a||"\\"==a&&K(t)||t.path.push("")):it(h)?"/"==a||"\\"==a&&K(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&et(h)&&(t.host&&(t.host=""),h=h.charAt(0)+":"),t.path.push(h)),h="","file"==t.scheme&&(a==r||"?"==a||"#"==a))while(t.path.length>1&&""===t.path[0])t.path.shift();"?"==a?(t.query="",u=Et):"#"==a&&(t.fragment="",u=Pt)}else h+=Z(a,V);break;case Ot:"?"==a?(t.query="",u=Et):"#"==a?(t.fragment="",u=Pt):a!=r&&(t.path[0]+=Z(a,G));break;case Et:n||"#"!=a?a!=r&&("'"==a&&K(t)?t.query+="%27":t.query+="#"==a?"%23":Z(a,G)):(t.fragment="",u=Pt);break;case Pt:a!=r&&(t.fragment+=Z(a,q));break}f++}},Ct=function(t){var e,n,r=f(this,Ct,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),c=S(r,{type:"URL"});if(void 0!==i)if(i instanceof Ct)e=j(i);else if(n=_t(e={},String(i)),n)throw TypeError(n);if(n=_t(c,a,null,e),n)throw TypeError(n);var s=c.searchParams=new w,u=x(s);u.updateSearchParams(c.query),u.updateURL=function(){c.query=String(s)||null},o||(r.href=$t.call(r),r.origin=Lt.call(r),r.protocol=It.call(r),r.username=Rt.call(r),r.password=kt.call(r),r.host=Dt.call(r),r.hostname=At.call(r),r.port=Nt.call(r),r.pathname=Ft.call(r),r.search=Ut.call(r),r.searchParams=Mt.call(r),r.hash=Yt.call(r))},Tt=Ct.prototype,$t=function(){var t=j(this),e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,c=t.query,s=t.fragment,u=e+":";return null!==i?(u+="//",Q(t)&&(u+=n+(r?":"+r:"")+"@"),u+=B(i),null!==o&&(u+=":"+o)):"file"==e&&(u+="//"),u+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(u+="?"+c),null!==s&&(u+="#"+s),u},Lt=function(){var t=j(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&K(t)?e+"://"+B(t.host)+(null!==n?":"+n:""):"null"},It=function(){return j(this).scheme+":"},Rt=function(){return j(this).username},kt=function(){return j(this).password},Dt=function(){var t=j(this),e=t.host,n=t.port;return null===e?"":null===n?B(e):B(e)+":"+n},At=function(){var t=j(this).host;return null===t?"":B(t)},Nt=function(){var t=j(this).port;return null===t?"":String(t)},Ft=function(){var t=j(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Ut=function(){var t=j(this).query;return t?"?"+t:""},Mt=function(){return j(this).searchParams},Yt=function(){var t=j(this).fragment;return t?"#"+t:""},Wt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&s(Tt,{href:Wt($t,(function(t){var e=j(this),n=String(t),r=_t(e,n);if(r)throw TypeError(r);x(e.searchParams).updateSearchParams(e.query)})),origin:Wt(Lt),protocol:Wt(It,(function(t){var e=j(this);_t(e,String(t)+":",at)})),username:Wt(Rt,(function(t){var e=j(this),n=p(String(t));if(!tt(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=Z(n[r],z)}})),password:Wt(kt,(function(t){var e=j(this),n=p(String(t));if(!tt(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=Z(n[r],z)}})),host:Wt(Dt,(function(t){var e=j(this);e.cannotBeABaseURL||_t(e,String(t),gt)})),hostname:Wt(At,(function(t){var e=j(this);e.cannotBeABaseURL||_t(e,String(t),mt)})),port:Wt(Nt,(function(t){var e=j(this);tt(e)||(t=String(t),""==t?e.port=null:_t(e,t,vt))})),pathname:Wt(Ft,(function(t){var e=j(this);e.cannotBeABaseURL||(e.path=[],_t(e,t+"",St))})),search:Wt(Ut,(function(t){var e=j(this);t=String(t),""==t?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",_t(e,t,Et)),x(e.searchParams).updateSearchParams(e.query)})),searchParams:Wt(Mt),hash:Wt(Yt,(function(t){var e=j(this);t=String(t),""!=t?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",_t(e,t,Pt)):e.fragment=null}))}),u(Tt,"toJSON",(function(){return $t.call(this)}),{enumerable:!0}),u(Tt,"toString",(function(){return $t.call(this)}),{enumerable:!0}),y){var Xt=y.createObjectURL,Ht=y.revokeObjectURL;Xt&&u(Ct,"createObjectURL",(function(t){return Xt.apply(y,arguments)})),Ht&&u(Ct,"revokeObjectURL",(function(t){return Ht.apply(y,arguments)}))}g(Ct,"URL"),i({global:!0,forced:!a,sham:!o},{URL:Ct})},"2bd2":function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("9ab4"),i=n("e9b9"),o=n("1453"),a=n("a6e8"),c=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),s=c,u=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r["a"](e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(a["a"]),f=n("2ff5"),l=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r["a"](e,t),e}(o["a"]),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r["a"](e,t),e.prototype[f["a"]]=function(){return new l(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s;return this.hasError?(t.error(this.thrownError),a["a"].EMPTY):this.isStopped?(t.complete(),a["a"].EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i["a"];return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(i["a"]),p=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r["a"](e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):a["a"].EMPTY},e}(h)},"2ca0":function(t,e,n){"use strict";var r=n("23e7"),i=n("06cf").f,o=n("50c4"),a=n("5a34"),c=n("1d80"),s=n("ab13"),u=n("c430"),f="".startsWith,l=Math.min,h=s("startsWith"),p=!u&&!h&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}();r({target:"String",proto:!0,forced:!p&&!h},{startsWith:function(t){var e=String(c(this));a(t);var n=o(l(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return f?f.call(e,r,n):e.slice(n,n+r.length)===r}})},"2cf4":function(t,e,n){var r,i,o,a=n("da84"),c=n("d039"),s=n("c6b6"),u=n("0366"),f=n("1be4"),l=n("cc12"),h=n("1cdc"),p=a.location,d=a.setImmediate,b=a.clearImmediate,g=a.process,m=a.MessageChannel,v=a.Dispatch,y=0,w={},x="onreadystatechange",S=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},j=function(t){return function(){S(t)}},O=function(t){S(t.data)},E=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};d&&b||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return w[++y]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(y),y},b=function(t){delete w[t]},"process"==s(g)?r=function(t){g.nextTick(j(t))}:v&&v.now?r=function(t){v.now(j(t))}:m&&!h?(i=new m,o=i.port2,i.port1.onmessage=O,r=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(E)||"file:"===p.protocol?r=x in l("script")?function(t){f.appendChild(l("script"))[x]=function(){f.removeChild(this),S(t)}}:function(t){setTimeout(j(t),0)}:(r=E,a.addEventListener("message",O,!1))),t.exports={set:d,clear:b}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),c=o.process,s=c&&c.versions,u=s&&s.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"2ff5":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},"31c4":function(t,e,n){"use strict";function r(t){return null!==t&&"object"===typeof t}n.d(e,"a",(function(){return r}))},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),c=r.length,s=0;while(c>s)i.f(t,n=r[s++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",c=i.set,s=i.getterFor(a);o(String,"String",(function(t){c(this,{type:a,string:String(t),index:0})}),(function(){var t,e=s(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3e18":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("a6c5");function i(t,e){return Object(r["a"])(t,e,1)}},"3f8c":function(t,e){t.exports={}},4160:function(t,e,n){"use strict";var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"41d5":function(t,e,n){},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),c=Array.prototype;void 0==c[a]&&o.f(c,a,{configurable:!0,value:i(null)}),t.exports=function(t){c[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4be4":function(t,e,n){},"4cc2":function(t,e,n){"use strict";var r=n("95b0"),i=n.n(r);i.a},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var c,s=r(e),u=i(s.length),f=o(a,u);if(t&&n!=n){while(u>f)if(c=s[f++],c!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d82":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("a748");function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(r["a"].apply(void 0,[e].concat(t)))}}},"4df4":function(t,e,n){"use strict";var r=n("0366"),i=n("7b0b"),o=n("9bdd"),a=n("e95a"),c=n("50c4"),s=n("8418"),u=n("35a1");t.exports=function(t){var e,n,f,l,h,p,d=i(t),b="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,v=void 0!==m,y=u(d),w=0;if(v&&(m=r(m,g>2?arguments[2]:void 0,2)),void 0==y||b==Array&&a(y))for(e=c(d.length),n=new b(e);e>w;w++)p=v?m(d[w],w):d[w],s(n,w,p);else for(l=y.call(d),h=l.next,n=new b;!(f=h.call(l)).done;w++)p=v?o(l,m,[f.value,w],!0):f.value,s(n,w,p);return n.length=w,n}},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5670:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("1453");function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.predicate,this.thisArg))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r["a"](e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(i["a"])},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),i=n("5899"),o="["+i+"]",a=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),s=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},"5a34":function(t,e,n){var r=n("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e26":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"clipper-range"},[n("div",{directives:[{name:"stream",rawName:"v-stream:mousedown",value:t.mousedown$,expression:"mousedown$",arg:"mousedown"},{name:"stream",rawName:"v-stream:touchstart",value:t.touchstart$,expression:"touchstart$",arg:"touchstart"}],staticClass:"wrap"},[n("div",{staticClass:"stick"}),n("div",{staticClass:"bar",style:t.barStyle})])])},i=[],o=(n("a9e3"),n("ebb6")),a=n("3e18"),c=n("9f2d"),s=n("4d82"),u=n("a744"),f=n("2bd2"),l=n("6e77"),h={domStreams:["mousedown$","touchstart$"],subscriptions:function(){var t=this;return this.init$=new f["a"],this.mouseup$=Object(l["a"])(window,"mouseup"),this.mousemove$=Object(l["a"])(window,"mousemove"),this.touchmove$=Object(l["a"])(window,"touchmove",{passive:!1}),this.touchend$=Object(l["a"])(window,"touchend",{passive:!1}),this.mouseEvent$=this.mousedown$.pipe(Object(o["a"])((function(t){return t.event.preventDefault(),t.event})),Object(a["a"])((function(){return t.mousemove$.pipe(Object(c["a"])(t.mouseup$),Object(o["a"])((function(t){return t.clientX})))})),Object(s["a"])(this.mousedown$.pipe(Object(o["a"])((function(t){return t.event.clientX}))))),this.touchEvent$=this.touchstart$.pipe(Object(o["a"])((function(t){return t.event.preventDefault(),t.event})),Object(a["a"])((function(){return t.touchmove$.pipe(Object(c["a"])(t.touchend$),Object(o["a"])((function(t){return t.touches[0].clientX})))})),Object(s["a"])(this.touchstart$.pipe(Object(o["a"])((function(t){return t.event.touches[0].clientX}))))),this.dragSubject$=(new f["a"]).pipe(Object(s["a"])(this.mouseEvent$),Object(s["a"])(this.touchEvent$),Object(o["a"])(this.getLeftPercent),Object(u["a"])(0),Object(s["a"])(this.init$)),{x$:this.dragSubject$}},props:{value:{type:Number,default:0},max:{type:Number,default:10},min:{type:Number,default:0}},computed:{barStyle:function(){return{left:"".concat(100*this.x$,"%")}},val:function(){var t=this.max-this.min,e=this.getPos(),n=e.stickPos,r=e.maxLeft;return this.x$*n.width/r*t+this.min}},watch:{value:function(){this.initVal()}},mounted:function(){var t=this;this.initVal(),this.$subscribeTo(this.dragSubject$,(function(){t.$emit("input",t.val)}))},methods:{getPos:function(){var t=this.$el.querySelector(".stick").getBoundingClientRect(),e=this.$el.querySelector(".bar").getBoundingClientRect();return{maxLeft:t.width-e.width,stickPos:t,barPos:e}},getLeftPercent:function(t){var e=this.$el.querySelector(".stick").getBoundingClientRect(),n=this.$el.querySelector(".bar").getBoundingClientRect(),r=e.width-n.width,i=Math.max(Math.min(t-e.left,r),0);return i/e.width},initVal:function(){var t=this.max-this.min,e=(this.value-this.min)/t,n=this.getPos();this.init$.next(e*n.maxLeft/n.stickPos.width)}}},p=h,d=(n("4cc2"),n("2877")),b=Object(d["a"])(p,r,i,!1,null,"27132352",null);e["a"]=b.exports},"5fb2":function(t,e,n){"use strict";var r=2147483647,i=36,o=1,a=26,c=38,s=700,u=72,f=128,l="-",h=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,d="Overflow: input needs wider integers to process",b=i-o,g=Math.floor,m=String.fromCharCode,v=function(t){var e=[],n=0,r=t.length;while(n<r){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=t.charCodeAt(n++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),n--)}else e.push(i)}return e},y=function(t){return t+22+75*(t<26)},w=function(t,e,n){var r=0;for(t=n?g(t/s):t>>1,t+=g(t/e);t>b*a>>1;r+=i)t=g(t/b);return g(r+(b+1)*t/(t+c))},x=function(t){var e=[];t=v(t);var n,c,s=t.length,h=f,p=0,b=u;for(n=0;n<t.length;n++)c=t[n],c<128&&e.push(m(c));var x=e.length,S=x;x&&e.push(l);while(S<s){var j=r;for(n=0;n<t.length;n++)c=t[n],c>=h&&c<j&&(j=c);var O=S+1;if(j-h>g((r-p)/O))throw RangeError(d);for(p+=(j-h)*O,h=j,n=0;n<t.length;n++){if(c=t[n],c<h&&++p>r)throw RangeError(d);if(c==h){for(var E=p,P=i;;P+=i){var _=P<=b?o:P>=b+a?a:P-b;if(E<_)break;var C=E-_,T=i-_;e.push(m(y(_+C%T))),E=g(C/T)}e.push(m(y(E))),b=w(p,O,S==x),p=0,++S}}++p,++h}return e.join("")};t.exports=function(t){var e,n,r=[],i=t.toLowerCase().replace(p,".").split(".");for(e=0;e<i.length;e++)n=i[e],r.push(h.test(n)?"xn--"+x(n):n);return r.join(".")}},"60da":function(t,e,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),c=n("d1e7"),s=n("7b0b"),u=n("44ad"),f=Object.assign,l=Object.defineProperty;t.exports=!f||i((function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||o(f({},e)).join("")!=i}))?function(t,e){var n=s(t),i=arguments.length,f=1,l=a.f,h=c.f;while(i>f){var p,d=u(arguments[f++]),b=l?o(d).concat(l(d)):o(d),g=b.length,m=0;while(g>m)p=b[m++],r&&!h.call(d,p)||(n[p]=d[p])}return n}:f},6547:function(t,e,n){var r=n("a691"),i=n("1d80"),o=function(t){return function(e,n){var o,a,c=String(i(e)),s=r(n),u=c.length;return s<0||s>=u?t?"":void 0:(o=c.charCodeAt(s),o<55296||o>56319||s+1===u||(a=c.charCodeAt(s+1))<56320||a>57343?t?c.charAt(s):o:t?c.slice(s,s+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"667f":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("a6c5"),i=n("9828");function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r["a"])(i["a"],t)}},6888:function(t,e,n){"use strict";(function(t){n("b0c0");var r=n("0bd0");n.d(e,"c",(function(){return r["a"]}));var i=n("5e26");n.d(e,"d",(function(){return i["a"]}));var o=n("7650");n.d(e,"a",(function(){return o["a"]}));var a=n("f04f");n.d(e,"b",(function(){return a["a"]}));var c=n("208d");n.d(e,"e",(function(){return c["a"]}));var s=n("0f53"),u=function(t,e){var n={clipperBasic:{component:o["a"],name:"clipper-basic"},clipperPreview:{component:r["a"],name:"clipper-preview"},clipperRange:{component:i["a"],name:"clipper-range"},clipperFixed:{component:a["a"],name:"clipper-fixed"},clipperUpload:{component:c["a"],name:"clipper-upload"}},u=function(e){t.component(n[e].name,n[e].component)};for(var f in e=e||{},s["a"].parentPropName=e.parentPropName||s["a"].parentPropName,e.components=void 0===e.components?n:e.components,e.components){if(!n[f])throw new Error('Invalid components "'.concat(f,'" in vurjs-clipper plugin'));n[f].name="string"===typeof e.components[f]?e.components[f]:n[f].name,u(f)}},f={install:u};e["f"]=f;var l=null;"undefined"!==typeof window?l=window.Vue:"undefined"!==typeof t&&(l=t.Vue),l&&l.use(f)}).call(this,n("c8ba"))},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),c=n("da84"),s=n("861d"),u=n("9112"),f=n("5135"),l=n("f772"),h=n("d012"),p=c.WeakMap,d=function(t){return o(t)?i(t):r(t,{})},b=function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var g=new p,m=g.get,v=g.has,y=g.set;r=function(t,e){return y.call(g,t,e),e},i=function(t){return m.call(g,t)||{}},o=function(t){return v.call(g,t)}}else{var w=l("state");h[w]=!0,r=function(t,e){return u(t,w,e),e},i=function(t){return f(t,w)?t[w]:{}},o=function(t){return f(t,w)}}t.exports={set:r,get:i,has:o,enforce:d,getterFor:b}},"6e77":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("e9b9"),i=n("8ac6"),o=n("d817"),a=n("ebb6");function c(t,e,n,u){return Object(o["a"])(n)&&(u=n,n=void 0),u?c(t,e,n).pipe(Object(a["a"])((function(t){return Object(i["a"])(t)?u.apply(void 0,t):u(t)}))):new r["a"]((function(r){function i(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}s(t,e,i,r,n)}))}function s(t,e,n,r,i){var o;if(l(t)){var a=t;t.addEventListener(e,n,i),o=function(){return a.removeEventListener(e,n,i)}}else if(f(t)){var c=t;t.on(e,n),o=function(){return c.off(e,n)}}else if(u(t)){var h=t;t.addListener(e,n),o=function(){return h.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var p=0,d=t.length;p<d;p++)s(t[p],e,n,r,i)}r.add(o)}function u(t){return t&&"function"===typeof t.addListener&&"function"===typeof t.removeListener}function f(t){return t&&"function"===typeof t.on&&"function"===typeof t.off}function l(t){return t&&"function"===typeof t.addEventListener&&"function"===typeof t.removeEventListener}},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),c=n("8925"),s=n("69f3"),u=s.get,f=s.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var s=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t!==r?(s?!h&&t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n)):u?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||c(this)}))},"6f45":function(t,e,r){var i,o;(function(){var r=!1,a=function(t){return t instanceof a?t:this instanceof a?void(this.EXIFwrapped=t):new a(t)};t.exports&&(e=t.exports=a),e.EXIF=a;var c=a.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},s=a.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},u=a.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},f=a.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},l=a.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function h(t){return!!t.exifdata}function p(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(t),r=n.length,i=new ArrayBuffer(r),o=new Uint8Array(i),a=0;a<r;a++)o[a]=n.charCodeAt(a);return i}function d(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},n.send()}function b(t,e){function n(n){var r=g(n);t.exifdata=r||{};var i=m(n);if(t.iptcdata=i||{},a.isXmpEnabled){var o=P(n);t.xmpdata=o||{}}e&&e.call(t)}if(t.src)if(/^data\:/i.test(t.src)){var i=p(t.src);n(i)}else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){n(t.target.result)},d(t.src,(function(t){o.readAsArrayBuffer(t)}))}else{var c=new XMLHttpRequest;c.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(c.response),c=null},c.open("GET",t.src,!0),c.responseType="arraybuffer",c.send(null)}else if(self.FileReader&&(t instanceof self.Blob||t instanceof self.File)){o=new FileReader;o.onload=function(t){r&&console.log("Got file of length "+t.target.result.byteLength),n(t.target.result)},o.readAsArrayBuffer(t)}}function g(t){var e=new DataView(t);if(r&&console.log("Got file of length "+t.byteLength),255!=e.getUint8(0)||216!=e.getUint8(1))return r&&console.log("Not a valid JPEG"),!1;var n,i=2,o=t.byteLength;while(i<o){if(255!=e.getUint8(i))return r&&console.log("Not a valid marker at offset "+i+", found: "+e.getUint8(i)),!1;if(n=e.getUint8(i+1),r&&console.log(n),225==n)return r&&console.log("Found 0xFFE1 marker"),E(e,i+4,e.getUint16(i+2)-2);i+=2+e.getUint16(i+2)}}function m(t){var e=new DataView(t);if(r&&console.log("Got file of length "+t.byteLength),255!=e.getUint8(0)||216!=e.getUint8(1))return r&&console.log("Not a valid JPEG"),!1;var n=2,i=t.byteLength,o=function(t,e){return 56===t.getUint8(e)&&66===t.getUint8(e+1)&&73===t.getUint8(e+2)&&77===t.getUint8(e+3)&&4===t.getUint8(e+4)&&4===t.getUint8(e+5)};while(n<i){if(o(e,n)){var a=e.getUint8(n+7);a%2!==0&&(a+=1),0===a&&(a=4);var c=n+8+a,s=e.getUint16(n+6+a);return y(t,c,s)}n++}}var v={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function y(t,e,n){var r,i,o,a,c=new DataView(t),s={},u=e;while(u<e+n)28===c.getUint8(u)&&2===c.getUint8(u+1)&&(a=c.getUint8(u+2),a in v&&(o=c.getInt16(u+3),o+5,i=v[a],r=O(c,u+5,o),s.hasOwnProperty(i)?s[i]instanceof Array?s[i].push(r):s[i]=[s[i],r]:s[i]=r)),u++;return s}function w(t,e,n,i,o){var a,c,s,u=t.getUint16(n,!o),f={};for(s=0;s<u;s++)a=n+12*s+2,c=i[t.getUint16(a,!o)],!c&&r&&console.log("Unknown tag: "+t.getUint16(a,!o)),f[c]=x(t,a,e,n,o);return f}function x(t,e,n,r,i){var o,a,c,s,u,f,l=t.getUint16(e+2,!i),h=t.getUint32(e+4,!i),p=t.getUint32(e+8,!i)+n;switch(l){case 1:case 7:if(1==h)return t.getUint8(e+8,!i);for(o=h>4?p:e+8,a=[],s=0;s<h;s++)a[s]=t.getUint8(o+s);return a;case 2:return o=h>4?p:e+8,O(t,o,h-1);case 3:if(1==h)return t.getUint16(e+8,!i);for(o=h>2?p:e+8,a=[],s=0;s<h;s++)a[s]=t.getUint16(o+2*s,!i);return a;case 4:if(1==h)return t.getUint32(e+8,!i);for(a=[],s=0;s<h;s++)a[s]=t.getUint32(p+4*s,!i);return a;case 5:if(1==h)return u=t.getUint32(p,!i),f=t.getUint32(p+4,!i),c=new Number(u/f),c.numerator=u,c.denominator=f,c;for(a=[],s=0;s<h;s++)u=t.getUint32(p+8*s,!i),f=t.getUint32(p+4+8*s,!i),a[s]=new Number(u/f),a[s].numerator=u,a[s].denominator=f;return a;case 9:if(1==h)return t.getInt32(e+8,!i);for(a=[],s=0;s<h;s++)a[s]=t.getInt32(p+4*s,!i);return a;case 10:if(1==h)return t.getInt32(p,!i)/t.getInt32(p+4,!i);for(a=[],s=0;s<h;s++)a[s]=t.getInt32(p+8*s,!i)/t.getInt32(p+4+8*s,!i);return a}}function S(t,e,n){var r=t.getUint16(e,!n);return t.getUint32(e+2+12*r,!n)}function j(t,e,n,r){var i=S(t,e+n,r);if(!i)return{};if(i>t.byteLength)return{};var o=w(t,e,e+i,f,r);if(o["Compression"])switch(o["Compression"]){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var a=e+o.JpegIFOffset,c=o.JpegIFByteCount;o["blob"]=new Blob([new Uint8Array(t.buffer,a,c)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o["Compression"])}else 2==o["PhotometricInterpretation"]&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}function O(t,e,r){var i="";for(n=e;n<e+r;n++)i+=String.fromCharCode(t.getUint8(n));return i}function E(t,e){if("Exif"!=O(t,e,4))return r&&console.log("Not valid EXIF data! "+O(t,e,4)),!1;var n,i,o,a,f,h=e+6;if(18761==t.getUint16(h))n=!1;else{if(19789!=t.getUint16(h))return r&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;n=!0}if(42!=t.getUint16(h+2,!n))return r&&console.log("Not valid TIFF data! (no 0x002A)"),!1;var p=t.getUint32(h+4,!n);if(p<8)return r&&console.log("Not valid TIFF data! (First offset less than 8)",t.getUint32(h+4,!n)),!1;if(i=w(t,h,h+p,s,n),i.ExifIFDPointer)for(o in a=w(t,h,h+i.ExifIFDPointer,c,n),a){switch(o){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":a[o]=l[o][a[o]];break;case"ExifVersion":case"FlashpixVersion":a[o]=String.fromCharCode(a[o][0],a[o][1],a[o][2],a[o][3]);break;case"ComponentsConfiguration":a[o]=l.Components[a[o][0]]+l.Components[a[o][1]]+l.Components[a[o][2]]+l.Components[a[o][3]];break}i[o]=a[o]}if(i.GPSInfoIFDPointer)for(o in f=w(t,h,h+i.GPSInfoIFDPointer,u,n),f){switch(o){case"GPSVersionID":f[o]=f[o][0]+"."+f[o][1]+"."+f[o][2]+"."+f[o][3];break}i[o]=f[o]}return i["thumbnail"]=j(t,h,p,n),i}function P(t){if("DOMParser"in self){var e=new DataView(t);if(r&&console.log("Got file of length "+t.byteLength),255!=e.getUint8(0)||216!=e.getUint8(1))return r&&console.log("Not a valid JPEG"),!1;var n=2,i=t.byteLength,o=new DOMParser;while(n<i-4){if("http"==O(e,n,4)){var a=n-1,c=e.getUint16(n-2)-1,s=O(e,a,c),u=s.indexOf("xmpmeta>")+8;s=s.substring(s.indexOf("<x:xmpmeta"),u);var f=s.indexOf("x:xmpmeta")+10;s=s.slice(0,f)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+s.slice(f);var l=o.parseFromString(s,"text/xml");return C(l)}n++}}}function _(t){var e={};if(1==t.nodeType){if(t.attributes.length>0){e["@attributes"]={};for(var n=0;n<t.attributes.length;n++){var r=t.attributes.item(n);e["@attributes"][r.nodeName]=r.nodeValue}}}else if(3==t.nodeType)return t.nodeValue;if(t.hasChildNodes())for(var i=0;i<t.childNodes.length;i++){var o=t.childNodes.item(i),a=o.nodeName;if(null==e[a])e[a]=_(o);else{if(null==e[a].push){var c=e[a];e[a]=[],e[a].push(c)}e[a].push(_(o))}}return e}function C(t){try{var e={};if(t.children.length>0)for(var n=0;n<t.children.length;n++){var r=t.children.item(n),i=r.attributes;for(var o in i){var a=i[o],c=a.nodeName,s=a.nodeValue;void 0!==c&&(e[c]=s)}var u=r.nodeName;if("undefined"==typeof e[u])e[u]=_(r);else{if("undefined"==typeof e[u].push){var f=e[u];e[u]=[],e[u].push(f)}e[u].push(_(r))}}else e=t.textContent;return e}catch(l){console.log(l.message)}}a.enableXmp=function(){a.isXmpEnabled=!0},a.disableXmp=function(){a.isXmpEnabled=!1},a.getData=function(t,e){return!((self.Image&&t instanceof self.Image||self.HTMLImageElement&&t instanceof self.HTMLImageElement)&&!t.complete)&&(h(t)?e&&e.call(t):b(t,e),!0)},a.getTag=function(t,e){if(h(t))return t.exifdata[e]},a.getIptcTag=function(t,e){if(h(t))return t.iptcdata[e]},a.getAllTags=function(t){if(!h(t))return{};var e,n=t.exifdata,r={};for(e in n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r},a.getAllIptcTags=function(t){if(!h(t))return{};var e,n=t.iptcdata,r={};for(e in n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r},a.pretty=function(t){if(!h(t))return"";var e,n=t.exifdata,r="";for(e in n)n.hasOwnProperty(e)&&("object"==typeof n[e]?n[e]instanceof Number?r+=e+" : "+n[e]+" ["+n[e].numerator+"/"+n[e].denominator+"]\r\n":r+=e+" : ["+n[e].length+" values]\r\n":r+=e+" : "+n[e]+"\r\n");return r},a.readFromBinaryFile=function(t){return g(t)},i=[],o=function(){return a}.apply(e,i),void 0===o||(t.exports=o)}).call(this)},7156:function(t,e,n){var r=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var r=n("428f"),i=n("5135"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"75eb":function(t,e,n){"use strict";var r=n("41d5"),i=n.n(r);i.a},7650:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"js-clipper-basic"},[n("div",{staticClass:"vuejs-clipper-basic__clip-area js-clip-area",class:{vertical:t.isVertical},style:t.areaStyle},[n("canvas",{staticClass:"vuejs-clipper-basic__stem-canvas",attrs:{width:t.stemArea.width,height:t.stemArea.height}}),n("div",{staticClass:"vuejs-clipper-basic__padding",style:{padding:t.areaStyle.padding}},[n("div",{staticClass:"vuejs-clipper-basic__in-pad"},[n("div",{staticClass:"vuejs-clipper-basic__img-scale js-img-scale",style:t.scaleStyle},[n("img",{staticClass:"vuejs-clipper-basic__img js-img",style:t.rotateStyle,attrs:{src:t.src,crossorigin:t.crossOrigin},on:{load:function(e){t.imgLoaded(),t.emit("load",e)},error:function(e){return t.emit("error",e)}}})])])]),n("div",{staticClass:"vuejs-clipper-basic__zoom-area js-zoom-area",style:t.posObj},[n("div",{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--outer",style:t.exOuterStyle}),n("div",{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--inner",style:t.exInnerStyle},[n("div",{staticClass:"vuejs-clipper-basic__drag-inset js-drag-inset"})]),t.corner?n("div",t._l(4,(function(t){return n("div",{key:"corner"+t,staticClass:"vuejs-clipper-basic__corner",class:"vuejs-clipper-basic__corner"+t})})),0):t._e(),t.grid?n("div",{staticClass:"vuejs-clipper-basic__grid"},t._l(4,(function(t){return n("div",{key:"gridItem"+t,staticClass:"vuejs-clipper-basic__grid-item"})})),0):t._e(),t._t("vuejs-clipper-basic__area")],2)]),n("div",{staticClass:"vuejs-clipper-basic__placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("99af"),n("a9e3"),n("bc00")),a=n("2bd2"),c=n("ebb6"),s=n("4d82"),u=n("5670"),f=n("c4cc"),l=n("3e18"),h=n("9f2d"),p=n("a744"),d={extends:{methods:o["a"],mixins:[o["d"],o["c"]]},subscriptions:function(){var t=this;return this.change$=new a["a"],this.setWH$=new a["a"],this.setTL$=new a["a"],this.initWHTL$=(new a["a"]).pipe(Object(c["a"])(this.initWHTL)),this.stop$=new a["a"],this.mousedownDrag$=(new a["a"]).pipe(Object(s["a"])(this.mousedown$),Object(u["a"])(this.isDragElement),Object(f["a"])(this.prevent),Object(c["a"])((function(e){return t.eInZoom(e)})),Object(l["a"])((function(){return t.mousemove$.pipe(Object(h["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchdownDrag$=this.touchstart$.pipe(Object(u["a"])(this.isDragElement),Object(u["a"])((function(t){return 1===t.touches.length})),Object(f["a"])(this.prevent),Object(c["a"])((function(e){return t.eInZoom(e.touches[0])})),Object(l["a"])((function(){return t.touchmove$.pipe(Object(h["a"])(t.touchend$),Object(u["a"])((function(t){return 1===t.touches.length})),Object(c["a"])((function(t){return t.touches[0]})))}),(function(t,e){return{down:t,move:e}}))),this.mousedownZoom$=(new a["a"]).pipe(Object(s["a"])(this.mousedown$),Object(u["a"])(this.isZoomElement),Object(f["a"])(this.prevent),Object(c["a"])(this.setDownPosition),Object(l["a"])((function(){return t.mousemove$.pipe(Object(h["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchdownZoom$=this.touchstart$.pipe(Object(u["a"])(this.isZoomElement),Object(u["a"])((function(t){return 1===t.touches.length})),Object(f["a"])(this.prevent),Object(c["a"])(this.setDownPosition),Object(l["a"])((function(){return t.touchmove$.pipe(Object(h["a"])(t.touchend$),Object(u["a"])((function(t){return 1===t.touches.length})),Object(c["a"])((function(t){return t.touches[0]})))}),(function(t,e){return{down:t,move:e}}))),this.touchTwoFingersZoom$=this.touchstart$.pipe(Object(u["a"])((function(t){return 2===t.touches.length})),Object(u["a"])(this.isTwoPointZoomElement),Object(f["a"])(this.prevent),Object(c["a"])((function(){t.stop$.next(0);var e=t.zoomPos();return{event:event,zoom:e}})),Object(l["a"])((function(){return t.touchmove$.pipe(Object(u["a"])((function(t){return 2===t.touches.length})),Object(f["a"])(t.prevent),Object(h["a"])(t.touchend$))}),(function(e,n){return t.getTwoTouchesPos(e.event,n,e.zoom)}))),this.mousedownCreate$=this.mousedown$.pipe(Object(u["a"])(this.isCreateElement),Object(f["a"])(this.prevent),Object(c["a"])(this.getFakeDown),Object(l["a"])((function(){return t.mousemove$.pipe(Object(h["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchstartCreate$=this.touchstart$.pipe(Object(u["a"])(this.isCreateElement),Object(f["a"])(this.prevent),Object(c["a"])((function(t){return t.touches[0]})),Object(c["a"])(this.getFakeDown),Object(l["a"])((function(){return t.touchmove$.pipe(Object(h["a"])(t.touchend$),Object(h["a"])(t.stop$),Object(u["a"])((function(t){return 1===t.touches.length})),Object(u["a"])((function(){return t.touchCreate})))}),(function(t,e){return{down:t,move:e.touches[0]}}))),this.dragSubject$=(new a["a"]).pipe(Object(s["a"])(this.mousedownDrag$),Object(s["a"])(this.touchdownDrag$),Object(c["a"])(this.dragMoving),Object(c["a"])(this.repositionDrag),Object(s["a"])(this.setTL$),Object(p["a"])({left:0,top:0})),this.dragCreateSubject$=this.mousedownCreate$.pipe(Object(s["a"])(this.touchstartCreate$),Object(c["a"])((function(t){var e=t.down,n=t.move;return{down:e,move:n}}))),this.zoomSubject$=(new a["a"]).pipe(Object(s["a"])(this.mousedownZoom$),Object(s["a"])(this.touchdownZoom$),Object(s["a"])(this.dragCreateSubject$),Object(c["a"])(this.reverseDownPos),Object(c["a"])(this.zoomingPosition),Object(s["a"])(this.touchTwoFingersZoom$),Object(c["a"])(this.setRatioWH),Object(c["a"])(this.toPercentage),Object(c["a"])(this.splitPos),Object(c["a"])((function(e){var n=e.tl,r=e.wh;return t.setTL$.next(n),r})),Object(p["a"])({width:0,height:0}),Object(s["a"])(this.initWHTL$),Object(s["a"])(this.setWH$)),this.onChange$=(new a["a"]).pipe(Object(s["a"])(this.dragSubject$),Object(s["a"])(this.change$)),{zoomTL$:this.dragSubject$,zoomWH$:this.zoomSubject$}},props:{preview:{type:String,default:""},src:{type:String,default:""},border:{type:Number,default:1},outline:{type:Number,default:6},corner:{type:Boolean,default:!0},grid:{type:Boolean,default:!0},mode:{type:String,default:"normal"},ratio:{type:Number,default:NaN},wrapRatio:{type:Number,default:NaN},touchCreate:{type:Boolean,default:!0},rotate:{type:Number,default:0},bgColor:{type:String,default:"white"},shadow:{type:String,default:"rgba(0, 0, 0, 0.4)"},scale:{type:Number,default:1},minWidth:{type:Number,default:1},minHeight:{type:Number,default:1},initWidth:{type:Number,default:50},initHeight:{type:Number,default:50},crossOrigin:{type:String,default:void 0}},data:function(){return{imgRatio:NaN}},computed:{posObj:function(){var t={"border-width":"".concat(this.border,"px !important"),width:"".concat(this.zoomWH$.width,"% !important"),height:"".concat(this.zoomWH$.height,"% !important"),color:"".concat(this.shadow," !important"),"box-shadow":"0 0 0 ".concat(this._shadow," !important")};for(var e in this.zoomTL$)"number"===typeof this.zoomTL$[e]&&(t[e]="".concat(this.zoomTL$[e],"% !important"));return t},scaleStyle:function(){return{transform:"scale(".concat(this.scale,") !important")}},rotateStyle:function(){return{transform:"rotate(".concat(this.rotate,"deg) !important")}},areaStyle:function(){var t="".concat(this.border,"px !important"),e="".concat(this.src?"block":"none"," !important"),n="".concat(this.bgColor," !important");return{padding:t,display:e,"background-color":n}},eptStyle:function(){var t="".concat(this.src?"none":"block"," !important");return{display:t}},exOuterStyle:function(){var t="".concat(this.outline+this.border,"px");return{"border-width":"".concat(t," !important"),transform:"translate(-".concat(t,",-").concat(t,") !important")}},exInnerStyle:function(){var t="".concat(this.outline,"px !important");return{padding:t}},_shadow:function(){return"".concat(this.imgRatio>=1?100:100/this.imgRatio,"vw")},stemArea:function(){return this.wrapRatio?{width:100*this.wrapRatio,height:100}:this.imgRatio?{width:this.imgEl.naturalWidth,height:this.imgEl.naturalHeight}:{}},isVertical:function(){var t=this.wrapRatio||this.ratio;return!!t&&this.imgRatio<t}},watch:{ratio:function(){this.resetData()},wrapRatio:function(){this.resetData()},bgColor:function(){this.callPreview("setData",{bgColor:this.bgColor})},scaleStyle:function(){this.change$.next(0)},rotateStyle:function(){this.change$.next(0)}},mounted:function(){var t=this;this.imgEl=this.$el.querySelector(".js-clipper-basic .js-img"),this.canvasEl=document.createElement("CANVAS"),this.areaEl=this.$el.querySelector(".js-clipper-basic .js-clip-area"),this.scaleEl=this.$el.querySelector(".js-clipper-basic .js-img-scale"),this.zoomEl=this.$el.querySelector(".js-clipper-basic .js-zoom-area"),this.dragEl=this.$el.querySelector(".js-clipper-basic .js-drag-inset"),this.preview&&this.$subscribeTo(this.onChange$,(function(){t.$nextTick((function(){var e=t.getDrawPos().pos,n=t.rotate;t.invalidDrawPos(e)||t.callPreview("locateImage",e,n)}))}))},methods:{imgLoaded:function(){this.callPreview("setData",{src:this.src,bgColor:this.bgColor}),this.imgRatio=this.imgEl.naturalWidth/this.imgEl.naturalHeight,this.resetData()},resetData:function(){var t=this;this.$nextTick((function(){t.initWHTL$.next(!0)}))}}},b=d,g=(n("e175"),n("2877")),m=Object(g["a"])(b,r,i,!1,null,"2b48af89",null);e["a"]=m.exports},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),c=n("d012"),s=n("1be4"),u=n("cc12"),f=n("f772"),l=">",h="<",p="prototype",d="script",b=f("IE_PROTO"),g=function(){},m=function(t){return h+d+l+t+h+"/"+d+l},v=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=u("iframe"),n="java"+d+":";return e.style.display="none",s.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}w=r?v(r):y();var t=a.length;while(t--)delete w[p][a[t]];return w()};c[b]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[p]=i(t),n=new g,g[p]=null,n[b]=t):n=w(),void 0===e?n:o(n,e)}},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),c=n("d44e"),s=n("9112"),u=n("6eeb"),f=n("b622"),l=n("c430"),h=n("3f8c"),p=n("ae93"),d=p.IteratorPrototype,b=p.BUGGY_SAFARI_ITERATORS,g=f("iterator"),m="keys",v="values",y="entries",w=function(){return this};t.exports=function(t,e,n,f,p,x,S){i(n,e,f);var j,O,E,P=function(t){if(t===p&&L)return L;if(!b&&t in T)return T[t];switch(t){case m:return function(){return new n(this,t)};case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",C=!1,T=t.prototype,$=T[g]||T["@@iterator"]||p&&T[p],L=!b&&$||P(p),I="Array"==e&&T.entries||$;if(I&&(j=o(I.call(new t)),d!==Object.prototype&&j.next&&(l||o(j)===d||(a?a(j,d):"function"!=typeof j[g]&&s(j,g,w)),c(j,_,!0,!0),l&&(h[_]=w))),p==v&&$&&$.name!==v&&(C=!0,L=function(){return $.call(this)}),l&&!S||T[g]===L||s(T,g,L),h[e]=L,p)if(O={values:P(v),keys:x?L:P(m),entries:P(y)},S)for(E in O)(b||C||!(E in T))&&u(T,E,O[E]);else r({target:e,proto:!0,forced:b||C},O);return O}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,c=o.exec(p.stack)||a.exec(p.stack),s=c&&c[1]||!1,u=c&&c[2]||!1,f=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");s===f&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var h=0;h<l.length;h++){if("interactive"===l[h].readyState)return l[h];if(l[h].src===s)return l[h];if(s===f&&l[h].innerHTML&&l[h].innerHTML.trim()===i)return l[h]}return null}}return t}))},"88bc":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;e.stack}r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"8ac6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"===typeof t.length}}()},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=c[a(t)];return n==u||n!=s&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},s=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},"95b0":function(t,e,n){},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag",u="object"===typeof t,f=e.regeneratorRuntime;if(f)u&&(t.exports=f);else{f=e.regeneratorRuntime=u?t.exports:{},f.wrap=w;var l="suspendedStart",h="suspendedYield",p="executing",d="completed",b={},g={};g[a]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(I([])));v&&v!==r&&i.call(v,a)&&(g=v);var y=O.prototype=S.prototype=Object.create(g);j.prototype=y.constructor=O,O.constructor=j,O[s]=j.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(y),t},f.awrap=function(t){return{__await:t}},E(P.prototype),P.prototype[c]=function(){return this},f.AsyncIterator=P,f.async=function(t,e,n,r){var i=new P(w(t,e,n,r));return f.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(y),y[s]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},f.values=I,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach($),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return c.type="throw",c.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),b}},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;$(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),b}}}function w(t,e,n,r){var i=e&&e.prototype instanceof S?e:S,o=Object.create(i.prototype),a=new L(r||[]);return o._invoke=_(t,n,a),o}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function S(){}function j(){}function O(){}function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function P(t){function e(n,r,o,a){var c=x(t[n],t,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(u).then((function(t){s.value=t,o(s)}),a)}a(c.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function _(t,e,n){var r=l;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return R()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var c=C(a,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=x(t,e,n);if("normal"===s.type){if(r=n.done?d:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=d,n.method="throw",n.arg=s.arg)}}}function C(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,C(t,e),"throw"===e.method))return b;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var i=x(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,b;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,b):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function I(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r<t.length)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:R}}function R(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},9828:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},9861:function(t,e,n){"use strict";n("e260");var r=n("23e7"),i=n("d066"),o=n("0d3b"),a=n("6eeb"),c=n("e2cc"),s=n("d44e"),u=n("9ed3"),f=n("69f3"),l=n("19aa"),h=n("5135"),p=n("0366"),d=n("f5df"),b=n("825a"),g=n("861d"),m=n("7c73"),v=n("5c6c"),y=n("9a1f"),w=n("35a1"),x=n("b622"),S=i("fetch"),j=i("Headers"),O=x("iterator"),E="URLSearchParams",P=E+"Iterator",_=f.set,C=f.getterFor(E),T=f.getterFor(P),$=/\+/g,L=Array(4),I=function(t){return L[t-1]||(L[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},R=function(t){try{return decodeURIComponent(t)}catch(e){return t}},k=function(t){var e=t.replace($," "),n=4;try{return decodeURIComponent(e)}catch(r){while(n)e=e.replace(I(n--),R);return e}},D=/[!'()~]|%20/g,A={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(t){return A[t]},F=function(t){return encodeURIComponent(t).replace(D,N)},U=function(t,e){if(e){var n,r,i=e.split("&"),o=0;while(o<i.length)n=i[o++],n.length&&(r=n.split("="),t.push({key:k(r.shift()),value:k(r.join("="))}))}},M=function(t){this.entries.length=0,U(this.entries,t)},Y=function(t,e){if(t<e)throw TypeError("Not enough arguments")},W=u((function(t,e){_(this,{type:P,iterator:y(C(t).entries),kind:e})}),"Iterator",(function(){var t=T(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),X=function(){l(this,X,E);var t,e,n,r,i,o,a,c,s,u=arguments.length>0?arguments[0]:void 0,f=this,p=[];if(_(f,{type:E,entries:p,updateURL:function(){},updateSearchParams:M}),void 0!==u)if(g(u))if(t=w(u),"function"===typeof t){e=t.call(u),n=e.next;while(!(r=n.call(e)).done){if(i=y(b(r.value)),o=i.next,(a=o.call(i)).done||(c=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:c.value+""})}}else for(s in u)h(u,s)&&p.push({key:s,value:u[s]+""});else U(p,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},H=X.prototype;c(H,{append:function(t,e){Y(arguments.length,2);var n=C(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){Y(arguments.length,1);var e=C(this),n=e.entries,r=t+"",i=0;while(i<n.length)n[i].key===r?n.splice(i,1):i++;e.updateURL()},get:function(t){Y(arguments.length,1);for(var e=C(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){Y(arguments.length,1);for(var e=C(this).entries,n=t+"",r=[],i=0;i<e.length;i++)e[i].key===n&&r.push(e[i].value);return r},has:function(t){Y(arguments.length,1);var e=C(this).entries,n=t+"",r=0;while(r<e.length)if(e[r++].key===n)return!0;return!1},set:function(t,e){Y(arguments.length,1);for(var n,r=C(this),i=r.entries,o=!1,a=t+"",c=e+"",s=0;s<i.length;s++)n=i[s],n.key===a&&(o?i.splice(s--,1):(o=!0,n.value=c));o||i.push({key:a,value:c}),r.updateURL()},sort:function(){var t,e,n,r=C(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(t=o[n],e=0;e<n;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===n&&i.push(t)}r.updateURL()},forEach:function(t){var e,n=C(this).entries,r=p(t,arguments.length>1?arguments[1]:void 0,3),i=0;while(i<n.length)e=n[i++],r(e.value,e.key,this)},keys:function(){return new W(this,"keys")},values:function(){return new W(this,"values")},entries:function(){return new W(this,"entries")}},{enumerable:!0}),a(H,O,H.entries),a(H,"toString",(function(){var t,e=C(this).entries,n=[],r=0;while(r<e.length)t=e[r++],n.push(F(t.key)+"="+F(t.value));return n.join("&")}),{enumerable:!0}),s(X,E),r({global:!0,forced:!o},{URLSearchParams:X}),o||"function"!=typeof S||"function"!=typeof j||r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,n,r,i=[t];return arguments.length>1&&(e=arguments[1],g(e)&&(n=e.body,d(n)===E&&(r=e.headers?new j(e.headers):new j,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=m(e,{body:v(0,String(n)),headers:v(0,r)}))),i.push(e)),S.apply(this,i)}}),t.exports={URLSearchParams:X,getState:C}},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),c=n("7b0b"),s=n("50c4"),u=n("8418"),f=n("65f0"),l=n("1dde"),h=n("b622"),p=n("2d00"),d=h("isConcatSpreadable"),b=9007199254740991,g="Maximum allowed index exceeded",m=p>=51||!i((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),v=l("concat"),y=function(t){if(!a(t))return!1;var e=t[d];return void 0!==e?!!e:o(t)},w=!m||!v;r({target:"Array",proto:!0,forced:w},{concat:function(t){var e,n,r,i,o,a=c(this),l=f(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],y(o)){if(i=s(o.length),h+i>b)throw TypeError(g);for(n=0;n<i;n++,h++)n in o&&u(l,h,o[n])}else{if(h>=b)throw TypeError(g);u(l,h++,o)}return l.length=h,l}})},"9a1f":function(t,e,n){var r=n("825a"),i=n("35a1");t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},"9ab4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})); +(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vuejs-clipper"]=e():t["vuejs-clipper"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};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)}}},"057f":function(t,e,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?c(t):i(r(t))}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),c=n("c04e"),s=n("5135"),u=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e,!0),u)try{return f(t,e)}catch(n){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},"0bd0":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"preview"},[n("div",{staticClass:"wrap",style:t.wrapStyle},[n("canvas",{staticClass:"shim",attrs:{width:t.outerWidth,height:t.outerHeight}}),n("div",{staticClass:"img-pos",style:t.styleObj},[n("div",{staticClass:"img-rotate",style:t.rotateStyle},[n("img",{staticClass:"img",attrs:{src:t.src},on:{load:t.imgLoaded}})])])]),n("div",{staticClass:"placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("99af"),n("b0c0"),n("0f53")),a={props:{name:{type:String,required:!0}},data:function(){return{src:"",imgEl:null,imgWidth:1,imgHeight:1,outerWidth:1,outerHeight:1,bgColor:"white",pos:{},rotate:0}},computed:{styleObj:function(){var t=this.pos.sx/this.imgWidth,e=this.pos.sy/this.imgHeight,n=this.imgWidth/this.pos.swidth;return{transform:"scale(".concat(n,") translate(").concat(-100*t,"% ,").concat(-100*e,"%)")}},rotateStyle:function(){return{transform:"rotate(".concat(this.rotate,"deg)")}},wrapStyle:function(){var t=this.src?"block":"none";return{backgroundColor:this.bgColor,display:t}},eptStyle:function(){return{display:this.src?"none":"block"}}},mounted:function(){this.imgEl=this.$el.querySelector(".img"),this.initListener()},methods:{initListener:function(){var t=this.$parent,e=o["a"].parentPropName;t[e]||(t[e]={}),t[e][this.name]||(t[e][this.name]=[]);var n=t[e][this.name];n.push(this)},setData:function(t){for(var e in t)this[e]=t[e]},imgLoaded:function(){this.imgWidth=this.imgEl.naturalWidth,this.imgHeight=this.imgEl.naturalHeight},locateImage:function(t,e){this.rotate=e,this.outerWidth=t.swidth,this.outerHeight=t.sheight,this.pos=t}}},c=a,s=(n("75eb"),n("2877")),u=Object(s["a"])(c,r,i,!1,null,"6f79f498",null);e["a"]=u.exports},"0ca4":function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("c430"),a=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e["delete"]("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0f53":function(t,e,n){"use strict";var r={parentPropName:"_imgPreviewLists"};e["a"]=r},1033:function(t,e,n){"use strict";var r=n("4be4"),i=n.n(r);i.a},"127f":function(t,e,n){"use strict";function r(){return"function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},1453:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("9ab4"),i=n("d817"),o=n("e9a8"),a=n("a6e8"),c=n("2ff5"),s=n("88bc"),u=n("0ca4"),f=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o["a"];break;case 1:if(!n){a.destination=o["a"];break}if("object"===typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new l(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new l(a,n,r,i);break}return a}return r["a"](e,t),e.prototype[c["a"]]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a["a"]),l=function(t){function e(e,n,r,a){var c,s=t.call(this)||this;s._parentSubscriber=e;var u=s;return Object(i["a"])(n)?c=n:n&&(c=n.next,r=n.error,a=n.complete,n!==o["a"]&&(u=Object.create(n),Object(i["a"])(u.unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(s))),s._context=u,s._next=c,s._error=r,s._complete=a,s}return r["a"](e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s["a"].useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s["a"].useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(u["a"])(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(u["a"])(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s["a"].useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),s["a"].useDeprecatedSynchronousErrorHandling)throw n;Object(u["a"])(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s["a"].useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return s["a"].useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(u["a"])(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f)},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var c in i){var s=r[c],u=s&&s.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(f){u.forEach=o}}},1716:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("fad2"),i=n("0ca4"),o=function(t){return function(e){return t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,i["a"]),e}},a=n("127f"),c=function(t){return function(e){var n=t[a["a"]]();do{var r=void 0;try{r=n.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}while(1);return"function"===typeof n.return&&e.add((function(){n.return&&n.return()})),e}},s=n("c539"),u=function(t){return function(e){var n=t[s["a"]]();if("function"!==typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},f=n("d9e3"),l=n("fd66"),h=n("31c4"),p=function(t){if(t&&"function"===typeof t[s["a"]])return u(t);if(Object(f["a"])(t))return Object(r["a"])(t);if(Object(l["a"])(t))return o(t);if(t&&"function"===typeof t[a["a"]])return c(t);var e=Object(h["a"])(t)?"an invalid object":"'"+t+"'",n="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(n)}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=n("ae40"),a=i("forEach"),c=o("forEach");t.exports=a&&c?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,c={next:function(){return{done:!!a++}},return:function(){o=!0}};c[i]=function(){return this},Array.from(c,(function(){throw 2}))}catch(s){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(s){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"208d":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{click:t.triggerInput}},[t._t("default"),n("img",{staticClass:"stem",staticStyle:{display:"none"},attrs:{src:t.DomString}}),n("input",t._b({staticClass:"upload",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:function(e){return t.upload(e)},click:function(e){return t.clear(e)}}},"input",t.$attrs,!1))],2)},i=[],o=(n("e260"),n("d3b7"),n("e6cf"),n("3ca3"),n("2ca0"),n("ddb0"),n("2b3d"),n("6f45")),a=n.n(o),c={props:{exif:{type:Boolean,default:!0},value:{type:String,default:""},check:{type:Boolean,default:!0}},data:function(){return{uploadEl:null,file:null,DomString:""}},mounted:function(){this.uploadEl=this.$el.querySelector(".upload")},methods:{upload:function(t){var e=this;1===t.target.files.length&&(this.file=t.target.files[0],this.check&&!this.file.type.startsWith("image/")||(this.DomString&&/^blob:/.test(this.DomString)&&window.URL.revokeObjectURL(this.DomString),this.DomString=window.URL.createObjectURL(this.file),this.checkEXIF().then((function(){e.$emit("input",e.DomString)}))))},checkEXIF:function(){var t=this;return new Promise((function(e,n){if(!t.exif)return n(new Error);e()})).then((function(){return t.getEXIF()})).then((function(e){return t.getImageRect().then((function(t){var n=t.width,r=t.height;return Promise.resolve({width:n,height:r,orientation:e})})).catch((function(){return Promise.reject(new Error)}))})).then(this.tranformCanvas).catch((function(){return Promise.resolve()}))},getEXIF:function(){var t=this;return new Promise((function(e,n){a.a.getData(t.file,(function(){var t=this.exifdata.Orientation;void 0!==t&&1!==t||n(new Error),e(t)}))}))},getImageRect:function(){var t=this;return new Promise((function(e,n){var r=t.$el.querySelector(".stem");if(r.complete)return e({width:r.naturalWidth,height:r.naturalHeight});r.onload=function(){e({width:this.naturalWidth,height:this.naturalHeight})},r.onerror=function(){n(new Error("img on load error"))}}))},tranformCanvas:function(t){var e=t.width,n=t.height,r=t.orientation,i=document.createElement("canvas"),o=i.getContext("2d");switch(r>4&&r<9?(i.width=n,i.height=e):(i.width=e,i.height=n),r){case 2:o.transform(-1,0,0,1,e,0);break;case 3:o.transform(-1,0,0,-1,e,n);break;case 4:o.transform(1,0,0,-1,0,n);break;case 5:o.transform(0,1,1,0,0,0);break;case 6:o.transform(0,1,-1,0,n,0);break;case 7:o.transform(0,-1,-1,0,n,e);break;case 8:o.transform(0,-1,1,0,0,e);break;default:break}o.drawImage(this.$el.querySelector(".stem"),0,0),this.DomString=i.toDataURL(this.file.type)},clear:function(t){t.target.value=null},triggerInput:function(){this.uploadEl&&this.uploadEl.click()}}},s=c,u=n("2877"),f=Object(u["a"])(s,r,i,!1,null,null,null);e["a"]=f.exports},2144:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("e9b9"),i=n("fad2"),o=n("245f");function a(t,e){return e?Object(o["a"])(t,e):new r["a"](Object(i["a"])(t))}},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),c=n("35a1"),s=n("9bdd"),u=function(t,e){this.stopped=t,this.result=e},f=t.exports=function(t,e,n,f,l){var h,p,d,b,m,g,v,y=a(e,n,f?2:1);if(l)h=t;else{if(p=c(t),"function"!=typeof p)throw TypeError("Target is not iterable");if(i(p)){for(d=0,b=o(t.length);b>d;d++)if(m=f?y(r(v=t[d])[0],v[1]):y(t[d]),m&&m instanceof u)return m;return new u(!1)}h=p.call(t)}g=h.next;while(!(v=g.call(h)).done)if(m=s(h,y,v.value,f),"object"==typeof m&&m&&m instanceof u)return m;return new u(!1)};f.stop=function(t){return new u(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),c=n("ce4e"),s=n("e893"),u=n("94ca");t.exports=function(t,e){var n,f,l,h,p,d,b=t.target,m=t.global,g=t.stat;if(f=m?r:g?r[b]||c(b,{}):(r[b]||{}).prototype,f)for(l in e){if(p=e[l],t.noTargetGet?(d=i(f,l),h=d&&d.value):h=f[l],n=u(m?l:b+(g?".":"#")+l,t.forced),!n&&void 0!==h){if(typeof p===typeof h)continue;s(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(f,l,p,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"245f":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("e9b9"),i=n("a6e8");function o(t,e){return new r["a"]((function(n){var r=new i["a"],o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),c=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,c){var s,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=s):i&&(s=c?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(u.functional){u._injectStyles=s;var f=u.render;u.render=function(t,e){return s.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,s):[s]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},"2b3d":function(t,e,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),a=n("0d3b"),c=n("da84"),s=n("37e8"),u=n("6eeb"),f=n("19aa"),l=n("5135"),h=n("60da"),p=n("4df4"),d=n("6547").codeAt,b=n("5fb2"),m=n("d44e"),g=n("9861"),v=n("69f3"),y=c.URL,w=g.URLSearchParams,x=g.getState,S=v.set,j=v.getterFor("URL"),O=Math.floor,E=Math.pow,P="Invalid authority",_="Invalid scheme",C="Invalid host",T="Invalid port",$=/[A-Za-z]/,L=/[\d+-.A-Za-z]/,I=/\d/,R=/^(0x|0X)/,k=/^[0-7]+$/,D=/^\d+$/,A=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\u0009\u000A\u000D]/g,Y=function(t,e){var n,r,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return C;if(n=X(e.slice(1,-1)),!n)return C;t.host=n}else if(K(t)){if(e=b(e),N.test(e))return C;if(n=W(e),null===n)return C;t.host=n}else{if(F.test(e))return C;for(n="",r=p(e),i=0;i<r.length;i++)n+=Z(r[i],G);t.host=n}},W=function(t){var e,n,r,i,o,a,c,s=t.split(".");if(s.length&&""==s[s.length-1]&&s.pop(),e=s.length,e>4)return t;for(n=[],r=0;r<e;r++){if(i=s[r],""==i)return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=R.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?D:8==o?k:A).test(i))return t;a=parseInt(i,o)}n.push(a)}for(r=0;r<e;r++)if(a=n[r],r==e-1){if(a>=E(256,5-e))return null}else if(a>255)return null;for(c=n.pop(),r=0;r<n.length;r++)c+=n[r]*E(256,3-r);return c},X=function(t){var e,n,r,i,o,a,c,s=[0,0,0,0,0,0,0,0],u=0,f=null,l=0,h=function(){return t.charAt(l)};if(":"==h()){if(":"!=t.charAt(1))return;l+=2,u++,f=u}while(h()){if(8==u)return;if(":"!=h()){e=n=0;while(n<4&&A.test(h()))e=16*e+parseInt(h(),16),l++,n++;if("."==h()){if(0==n)return;if(l-=n,u>6)return;r=0;while(h()){if(i=null,r>0){if(!("."==h()&&r<4))return;l++}if(!I.test(h()))return;while(I.test(h())){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;l++}s[u]=256*s[u]+i,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;s[u++]=e}else{if(null!==f)return;l++,u++,f=u}}if(null!==f){a=u-f,u=7;while(0!=u&&a>0)c=s[u],s[u--]=s[f+a-1],s[f+--a]=c}else if(8!=u)return;return s},H=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e},B=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=O(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=H(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},G={},q=h({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),V=h({},q,{"#":1,"?":1,"{":1,"}":1}),z=h({},V,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(t,e){var n=d(t,0);return n>32&&n<127&&!l(e,t)?t:encodeURIComponent(t)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(t){return l(J,t.scheme)},Q=function(t){return""!=t.username||""!=t.password},tt=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},et=function(t,e){var n;return 2==t.length&&$.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},nt=function(t){var e;return t.length>1&&et(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},rt=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&et(e[0],!0)||e.pop()},it=function(t){return"."===t||"%2e"===t.toLowerCase()},ot=function(t){return t=t.toLowerCase(),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},at={},ct={},st={},ut={},ft={},lt={},ht={},pt={},dt={},bt={},mt={},gt={},vt={},yt={},wt={},xt={},St={},jt={},Ot={},Et={},Pt={},_t=function(t,e,n,i){var o,a,c,s,u=n||at,f=0,h="",d=!1,b=!1,m=!1;n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(U,"")),e=e.replace(M,""),o=p(e);while(f<=o.length){switch(a=o[f],u){case at:if(!a||!$.test(a)){if(n)return _;u=st;continue}h+=a.toLowerCase(),u=ct;break;case ct:if(a&&(L.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return _;h="",u=st,f=0;continue}if(n&&(K(t)!=l(J,h)||"file"==h&&(Q(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=h,n)return void(K(t)&&J[t.scheme]==t.port&&(t.port=null));h="","file"==t.scheme?u=yt:K(t)&&i&&i.scheme==t.scheme?u=ut:K(t)?u=pt:"/"==o[f+1]?(u=ft,f++):(t.cannotBeABaseURL=!0,t.path.push(""),u=Ot)}break;case st:if(!i||i.cannotBeABaseURL&&"#"!=a)return _;if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,u=Pt;break}u="file"==i.scheme?yt:lt;continue;case ut:if("/"!=a||"/"!=o[f+1]){u=lt;continue}u=dt,f++;break;case ft:if("/"==a){u=bt;break}u=jt;continue;case lt:if(t.scheme=i.scheme,a==r)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&K(t))u=ht;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",u=Et;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),u=jt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=Pt}break;case ht:if(!K(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,u=jt;continue}u=bt}else u=dt;break;case pt:if(u=dt,"/"!=a||"/"!=h.charAt(f+1))continue;f++;break;case dt:if("/"!=a&&"\\"!=a){u=bt;continue}break;case bt:if("@"==a){d&&(h="%40"+h),d=!0,c=p(h);for(var g=0;g<c.length;g++){var v=c[g];if(":"!=v||m){var y=Z(v,z);m?t.password+=y:t.username+=y}else m=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(d&&""==h)return P;f-=p(h).length+1,h="",u=mt}else h+=a;break;case mt:case gt:if(n&&"file"==t.scheme){u=xt;continue}if(":"!=a||b){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(K(t)&&""==h)return C;if(n&&""==h&&(Q(t)||null!==t.port))return;if(s=Y(t,h),s)return s;if(h="",u=St,n)return;continue}"["==a?b=!0:"]"==a&&(b=!1),h+=a}else{if(""==h)return C;if(s=Y(t,h),s)return s;if(h="",u=vt,n==gt)return}break;case vt:if(!I.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return T;t.port=K(t)&&w===J[t.scheme]?null:w,h=""}if(n)return;u=St;continue}return T}h+=a;break;case yt:if(t.scheme="file","/"==a||"\\"==a)u=wt;else{if(!i||"file"!=i.scheme){u=jt;continue}if(a==r)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",u=Et;else{if("#"!=a){nt(o.slice(f).join(""))||(t.host=i.host,t.path=i.path.slice(),rt(t)),u=jt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=Pt}}break;case wt:if("/"==a||"\\"==a){u=xt;break}i&&"file"==i.scheme&&!nt(o.slice(f).join(""))&&(et(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),u=jt;continue;case xt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&et(h))u=jt;else if(""==h){if(t.host="",n)return;u=St}else{if(s=Y(t,h),s)return s;if("localhost"==t.host&&(t.host=""),n)return;h="",u=St}continue}h+=a;break;case St:if(K(t)){if(u=jt,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=jt,"/"!=a))continue}else t.fragment="",u=Pt;else t.query="",u=Et;break;case jt:if(a==r||"/"==a||"\\"==a&&K(t)||!n&&("?"==a||"#"==a)){if(ot(h)?(rt(t),"/"==a||"\\"==a&&K(t)||t.path.push("")):it(h)?"/"==a||"\\"==a&&K(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&et(h)&&(t.host&&(t.host=""),h=h.charAt(0)+":"),t.path.push(h)),h="","file"==t.scheme&&(a==r||"?"==a||"#"==a))while(t.path.length>1&&""===t.path[0])t.path.shift();"?"==a?(t.query="",u=Et):"#"==a&&(t.fragment="",u=Pt)}else h+=Z(a,V);break;case Ot:"?"==a?(t.query="",u=Et):"#"==a?(t.fragment="",u=Pt):a!=r&&(t.path[0]+=Z(a,G));break;case Et:n||"#"!=a?a!=r&&("'"==a&&K(t)?t.query+="%27":t.query+="#"==a?"%23":Z(a,G)):(t.fragment="",u=Pt);break;case Pt:a!=r&&(t.fragment+=Z(a,q));break}f++}},Ct=function(t){var e,n,r=f(this,Ct,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),c=S(r,{type:"URL"});if(void 0!==i)if(i instanceof Ct)e=j(i);else if(n=_t(e={},String(i)),n)throw TypeError(n);if(n=_t(c,a,null,e),n)throw TypeError(n);var s=c.searchParams=new w,u=x(s);u.updateSearchParams(c.query),u.updateURL=function(){c.query=String(s)||null},o||(r.href=$t.call(r),r.origin=Lt.call(r),r.protocol=It.call(r),r.username=Rt.call(r),r.password=kt.call(r),r.host=Dt.call(r),r.hostname=At.call(r),r.port=Nt.call(r),r.pathname=Ft.call(r),r.search=Ut.call(r),r.searchParams=Mt.call(r),r.hash=Yt.call(r))},Tt=Ct.prototype,$t=function(){var t=j(this),e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,c=t.query,s=t.fragment,u=e+":";return null!==i?(u+="//",Q(t)&&(u+=n+(r?":"+r:"")+"@"),u+=B(i),null!==o&&(u+=":"+o)):"file"==e&&(u+="//"),u+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(u+="?"+c),null!==s&&(u+="#"+s),u},Lt=function(){var t=j(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&K(t)?e+"://"+B(t.host)+(null!==n?":"+n:""):"null"},It=function(){return j(this).scheme+":"},Rt=function(){return j(this).username},kt=function(){return j(this).password},Dt=function(){var t=j(this),e=t.host,n=t.port;return null===e?"":null===n?B(e):B(e)+":"+n},At=function(){var t=j(this).host;return null===t?"":B(t)},Nt=function(){var t=j(this).port;return null===t?"":String(t)},Ft=function(){var t=j(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Ut=function(){var t=j(this).query;return t?"?"+t:""},Mt=function(){return j(this).searchParams},Yt=function(){var t=j(this).fragment;return t?"#"+t:""},Wt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&s(Tt,{href:Wt($t,(function(t){var e=j(this),n=String(t),r=_t(e,n);if(r)throw TypeError(r);x(e.searchParams).updateSearchParams(e.query)})),origin:Wt(Lt),protocol:Wt(It,(function(t){var e=j(this);_t(e,String(t)+":",at)})),username:Wt(Rt,(function(t){var e=j(this),n=p(String(t));if(!tt(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=Z(n[r],z)}})),password:Wt(kt,(function(t){var e=j(this),n=p(String(t));if(!tt(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=Z(n[r],z)}})),host:Wt(Dt,(function(t){var e=j(this);e.cannotBeABaseURL||_t(e,String(t),mt)})),hostname:Wt(At,(function(t){var e=j(this);e.cannotBeABaseURL||_t(e,String(t),gt)})),port:Wt(Nt,(function(t){var e=j(this);tt(e)||(t=String(t),""==t?e.port=null:_t(e,t,vt))})),pathname:Wt(Ft,(function(t){var e=j(this);e.cannotBeABaseURL||(e.path=[],_t(e,t+"",St))})),search:Wt(Ut,(function(t){var e=j(this);t=String(t),""==t?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",_t(e,t,Et)),x(e.searchParams).updateSearchParams(e.query)})),searchParams:Wt(Mt),hash:Wt(Yt,(function(t){var e=j(this);t=String(t),""!=t?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",_t(e,t,Pt)):e.fragment=null}))}),u(Tt,"toJSON",(function(){return $t.call(this)}),{enumerable:!0}),u(Tt,"toString",(function(){return $t.call(this)}),{enumerable:!0}),y){var Xt=y.createObjectURL,Ht=y.revokeObjectURL;Xt&&u(Ct,"createObjectURL",(function(t){return Xt.apply(y,arguments)})),Ht&&u(Ct,"revokeObjectURL",(function(t){return Ht.apply(y,arguments)}))}m(Ct,"URL"),i({global:!0,forced:!a,sham:!o},{URL:Ct})},"2bd2":function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("9ab4"),i=n("e9b9"),o=n("1453"),a=n("a6e8"),c=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),s=c,u=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r["a"](e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(a["a"]),f=n("2ff5"),l=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r["a"](e,t),e}(o["a"]),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r["a"](e,t),e.prototype[f["a"]]=function(){return new l(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s;return this.hasError?(t.error(this.thrownError),a["a"].EMPTY):this.isStopped?(t.complete(),a["a"].EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i["a"];return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(i["a"]),p=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r["a"](e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):a["a"].EMPTY},e}(h)},"2ca0":function(t,e,n){"use strict";var r=n("23e7"),i=n("06cf").f,o=n("50c4"),a=n("5a34"),c=n("1d80"),s=n("ab13"),u=n("c430"),f="".startsWith,l=Math.min,h=s("startsWith"),p=!u&&!h&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}();r({target:"String",proto:!0,forced:!p&&!h},{startsWith:function(t){var e=String(c(this));a(t);var n=o(l(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return f?f.call(e,r,n):e.slice(n,n+r.length)===r}})},"2cf4":function(t,e,n){var r,i,o,a=n("da84"),c=n("d039"),s=n("c6b6"),u=n("0366"),f=n("1be4"),l=n("cc12"),h=n("1cdc"),p=a.location,d=a.setImmediate,b=a.clearImmediate,m=a.process,g=a.MessageChannel,v=a.Dispatch,y=0,w={},x="onreadystatechange",S=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},j=function(t){return function(){S(t)}},O=function(t){S(t.data)},E=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};d&&b||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return w[++y]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(y),y},b=function(t){delete w[t]},"process"==s(m)?r=function(t){m.nextTick(j(t))}:v&&v.now?r=function(t){v.now(j(t))}:g&&!h?(i=new g,o=i.port2,i.port1.onmessage=O,r=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(E)||"file:"===p.protocol?r=x in l("script")?function(t){f.appendChild(l("script"))[x]=function(){f.removeChild(this),S(t)}}:function(t){setTimeout(j(t),0)}:(r=E,a.addEventListener("message",O,!1))),t.exports={set:d,clear:b}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),c=o.process,s=c&&c.versions,u=s&&s.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"2ff5":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},"31c4":function(t,e,n){"use strict";function r(t){return null!==t&&"object"===typeof t}n.d(e,"a",(function(){return r}))},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),c=r.length,s=0;while(c>s)i.f(t,n=r[s++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",c=i.set,s=i.getterFor(a);o(String,"String",(function(t){c(this,{type:a,string:String(t),index:0})}),(function(){var t,e=s(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3e18":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("a6c5");function i(t,e){return Object(r["a"])(t,e,1)}},"3f8c":function(t,e){t.exports={}},4160:function(t,e,n){"use strict";var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"41d5":function(t,e,n){},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),c=Array.prototype;void 0==c[a]&&o.f(c,a,{configurable:!0,value:i(null)}),t.exports=function(t){c[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4be4":function(t,e,n){},"4cc2":function(t,e,n){"use strict";var r=n("95b0"),i=n.n(r);i.a},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var c,s=r(e),u=i(s.length),f=o(a,u);if(t&&n!=n){while(u>f)if(c=s[f++],c!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d82":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("a748");function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(r["a"].apply(void 0,[e].concat(t)))}}},"4df4":function(t,e,n){"use strict";var r=n("0366"),i=n("7b0b"),o=n("9bdd"),a=n("e95a"),c=n("50c4"),s=n("8418"),u=n("35a1");t.exports=function(t){var e,n,f,l,h,p,d=i(t),b="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,v=void 0!==g,y=u(d),w=0;if(v&&(g=r(g,m>2?arguments[2]:void 0,2)),void 0==y||b==Array&&a(y))for(e=c(d.length),n=new b(e);e>w;w++)p=v?g(d[w],w):d[w],s(n,w,p);else for(l=y.call(d),h=l.next,n=new b;!(f=h.call(l)).done;w++)p=v?o(l,g,[f.value,w],!0):f.value,s(n,w,p);return n.length=w,n}},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5670:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("1453");function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.predicate,this.thisArg))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r["a"](e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(i["a"])},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),i=n("5899"),o="["+i+"]",a=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),s=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},"5a34":function(t,e,n){var r=n("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e26":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"clipper-range"},[n("div",{directives:[{name:"stream",rawName:"v-stream:mousedown",value:t.mousedown$,expression:"mousedown$",arg:"mousedown"},{name:"stream",rawName:"v-stream:touchstart",value:t.touchstart$,expression:"touchstart$",arg:"touchstart"}],staticClass:"wrap"},[n("div",{staticClass:"stick"}),n("div",{staticClass:"bar",style:t.barStyle})])])},i=[],o=(n("a9e3"),n("ebb6")),a=n("3e18"),c=n("9f2d"),s=n("4d82"),u=n("a744"),f=n("2bd2"),l=n("6e77"),h={domStreams:["mousedown$","touchstart$"],subscriptions:function(){var t=this;return this.init$=new f["a"],this.mouseup$=Object(l["a"])(window,"mouseup"),this.mousemove$=Object(l["a"])(window,"mousemove"),this.touchmove$=Object(l["a"])(window,"touchmove",{passive:!1}),this.touchend$=Object(l["a"])(window,"touchend",{passive:!1}),this.mouseEvent$=this.mousedown$.pipe(Object(o["a"])((function(t){return t.event.preventDefault(),t.event})),Object(a["a"])((function(){return t.mousemove$.pipe(Object(c["a"])(t.mouseup$),Object(o["a"])((function(t){return t.clientX})))})),Object(s["a"])(this.mousedown$.pipe(Object(o["a"])((function(t){return t.event.clientX}))))),this.touchEvent$=this.touchstart$.pipe(Object(o["a"])((function(t){return t.event.preventDefault(),t.event})),Object(a["a"])((function(){return t.touchmove$.pipe(Object(c["a"])(t.touchend$),Object(o["a"])((function(t){return t.touches[0].clientX})))})),Object(s["a"])(this.touchstart$.pipe(Object(o["a"])((function(t){return t.event.touches[0].clientX}))))),this.dragSubject$=(new f["a"]).pipe(Object(s["a"])(this.mouseEvent$),Object(s["a"])(this.touchEvent$),Object(o["a"])(this.getLeftPercent),Object(u["a"])(0),Object(s["a"])(this.init$)),{x$:this.dragSubject$}},props:{value:{type:Number,default:0},max:{type:Number,default:10},min:{type:Number,default:0}},computed:{barStyle:function(){return{left:"".concat(100*this.x$,"%")}},val:function(){var t=this.max-this.min,e=this.getPos(),n=e.stickPos,r=e.maxLeft;return this.x$*n.width/r*t+this.min}},watch:{value:function(){this.initVal()}},mounted:function(){var t=this;this.initVal(),this.$subscribeTo(this.dragSubject$,(function(){t.$emit("input",t.val)}))},methods:{getPos:function(){var t=this.$el.querySelector(".stick").getBoundingClientRect(),e=this.$el.querySelector(".bar").getBoundingClientRect();return{maxLeft:t.width-e.width,stickPos:t,barPos:e}},getLeftPercent:function(t){var e=this.$el.querySelector(".stick").getBoundingClientRect(),n=this.$el.querySelector(".bar").getBoundingClientRect(),r=e.width-n.width,i=Math.max(Math.min(t-e.left,r),0);return i/e.width},initVal:function(){var t=this.max-this.min,e=(this.value-this.min)/t,n=this.getPos();this.init$.next(e*n.maxLeft/n.stickPos.width)}}},p=h,d=(n("4cc2"),n("2877")),b=Object(d["a"])(p,r,i,!1,null,"27132352",null);e["a"]=b.exports},"5fb2":function(t,e,n){"use strict";var r=2147483647,i=36,o=1,a=26,c=38,s=700,u=72,f=128,l="-",h=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,d="Overflow: input needs wider integers to process",b=i-o,m=Math.floor,g=String.fromCharCode,v=function(t){var e=[],n=0,r=t.length;while(n<r){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=t.charCodeAt(n++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),n--)}else e.push(i)}return e},y=function(t){return t+22+75*(t<26)},w=function(t,e,n){var r=0;for(t=n?m(t/s):t>>1,t+=m(t/e);t>b*a>>1;r+=i)t=m(t/b);return m(r+(b+1)*t/(t+c))},x=function(t){var e=[];t=v(t);var n,c,s=t.length,h=f,p=0,b=u;for(n=0;n<t.length;n++)c=t[n],c<128&&e.push(g(c));var x=e.length,S=x;x&&e.push(l);while(S<s){var j=r;for(n=0;n<t.length;n++)c=t[n],c>=h&&c<j&&(j=c);var O=S+1;if(j-h>m((r-p)/O))throw RangeError(d);for(p+=(j-h)*O,h=j,n=0;n<t.length;n++){if(c=t[n],c<h&&++p>r)throw RangeError(d);if(c==h){for(var E=p,P=i;;P+=i){var _=P<=b?o:P>=b+a?a:P-b;if(E<_)break;var C=E-_,T=i-_;e.push(g(y(_+C%T))),E=m(C/T)}e.push(g(y(E))),b=w(p,O,S==x),p=0,++S}}++p,++h}return e.join("")};t.exports=function(t){var e,n,r=[],i=t.toLowerCase().replace(p,".").split(".");for(e=0;e<i.length;e++)n=i[e],r.push(h.test(n)?"xn--"+x(n):n);return r.join(".")}},"60da":function(t,e,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),c=n("d1e7"),s=n("7b0b"),u=n("44ad"),f=Object.assign,l=Object.defineProperty;t.exports=!f||i((function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||o(f({},e)).join("")!=i}))?function(t,e){var n=s(t),i=arguments.length,f=1,l=a.f,h=c.f;while(i>f){var p,d=u(arguments[f++]),b=l?o(d).concat(l(d)):o(d),m=b.length,g=0;while(m>g)p=b[g++],r&&!h.call(d,p)||(n[p]=d[p])}return n}:f},6547:function(t,e,n){var r=n("a691"),i=n("1d80"),o=function(t){return function(e,n){var o,a,c=String(i(e)),s=r(n),u=c.length;return s<0||s>=u?t?"":void 0:(o=c.charCodeAt(s),o<55296||o>56319||s+1===u||(a=c.charCodeAt(s+1))<56320||a>57343?t?c.charAt(s):o:t?c.slice(s,s+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"667f":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("a6c5"),i=n("9828");function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r["a"])(i["a"],t)}},6888:function(t,e,n){"use strict";(function(t){n("b0c0");var r=n("0bd0");n.d(e,"c",(function(){return r["a"]}));var i=n("5e26");n.d(e,"d",(function(){return i["a"]}));var o=n("7650");n.d(e,"a",(function(){return o["a"]}));var a=n("f04f");n.d(e,"b",(function(){return a["a"]}));var c=n("208d");n.d(e,"e",(function(){return c["a"]}));var s=n("0f53"),u=function(t,e){var n={clipperBasic:{component:o["a"],name:"clipper-basic"},clipperPreview:{component:r["a"],name:"clipper-preview"},clipperRange:{component:i["a"],name:"clipper-range"},clipperFixed:{component:a["a"],name:"clipper-fixed"},clipperUpload:{component:c["a"],name:"clipper-upload"}},u=function(e){t.component(n[e].name,n[e].component)};for(var f in e=e||{},s["a"].parentPropName=e.parentPropName||s["a"].parentPropName,e.components=void 0===e.components?n:e.components,e.components){if(!n[f])throw new Error('Invalid components "'.concat(f,'" in vurjs-clipper plugin'));n[f].name="string"===typeof e.components[f]?e.components[f]:n[f].name,u(f)}},f={install:u};e["f"]=f;var l=null;"undefined"!==typeof window?l=window.Vue:"undefined"!==typeof t&&(l=t.Vue),l&&l.use(f)}).call(this,n("c8ba"))},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),c=n("da84"),s=n("861d"),u=n("9112"),f=n("5135"),l=n("f772"),h=n("d012"),p=c.WeakMap,d=function(t){return o(t)?i(t):r(t,{})},b=function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var m=new p,g=m.get,v=m.has,y=m.set;r=function(t,e){return y.call(m,t,e),e},i=function(t){return g.call(m,t)||{}},o=function(t){return v.call(m,t)}}else{var w=l("state");h[w]=!0,r=function(t,e){return u(t,w,e),e},i=function(t){return f(t,w)?t[w]:{}},o=function(t){return f(t,w)}}t.exports={set:r,get:i,has:o,enforce:d,getterFor:b}},"6e77":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("e9b9"),i=n("8ac6"),o=n("d817"),a=n("ebb6");function c(t,e,n,u){return Object(o["a"])(n)&&(u=n,n=void 0),u?c(t,e,n).pipe(Object(a["a"])((function(t){return Object(i["a"])(t)?u.apply(void 0,t):u(t)}))):new r["a"]((function(r){function i(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}s(t,e,i,r,n)}))}function s(t,e,n,r,i){var o;if(l(t)){var a=t;t.addEventListener(e,n,i),o=function(){return a.removeEventListener(e,n,i)}}else if(f(t)){var c=t;t.on(e,n),o=function(){return c.off(e,n)}}else if(u(t)){var h=t;t.addListener(e,n),o=function(){return h.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var p=0,d=t.length;p<d;p++)s(t[p],e,n,r,i)}r.add(o)}function u(t){return t&&"function"===typeof t.addListener&&"function"===typeof t.removeListener}function f(t){return t&&"function"===typeof t.on&&"function"===typeof t.off}function l(t){return t&&"function"===typeof t.addEventListener&&"function"===typeof t.removeEventListener}},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),c=n("8925"),s=n("69f3"),u=s.get,f=s.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var s=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t!==r?(s?!h&&t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n)):u?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||c(this)}))},"6f45":function(t,e,r){var i,o;(function(){var r=!1,a=function(t){return t instanceof a?t:this instanceof a?void(this.EXIFwrapped=t):new a(t)};t.exports&&(e=t.exports=a),e.EXIF=a;var c=a.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},s=a.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},u=a.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},f=a.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},l=a.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function h(t){return!!t.exifdata}function p(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(t),r=n.length,i=new ArrayBuffer(r),o=new Uint8Array(i),a=0;a<r;a++)o[a]=n.charCodeAt(a);return i}function d(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},n.send()}function b(t,e){function n(n){var r=m(n);t.exifdata=r||{};var i=g(n);if(t.iptcdata=i||{},a.isXmpEnabled){var o=P(n);t.xmpdata=o||{}}e&&e.call(t)}if(t.src)if(/^data\:/i.test(t.src)){var i=p(t.src);n(i)}else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){n(t.target.result)},d(t.src,(function(t){o.readAsArrayBuffer(t)}))}else{var c=new XMLHttpRequest;c.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(c.response),c=null},c.open("GET",t.src,!0),c.responseType="arraybuffer",c.send(null)}else if(self.FileReader&&(t instanceof self.Blob||t instanceof self.File)){o=new FileReader;o.onload=function(t){r&&console.log("Got file of length "+t.target.result.byteLength),n(t.target.result)},o.readAsArrayBuffer(t)}}function m(t){var e=new DataView(t);if(r&&console.log("Got file of length "+t.byteLength),255!=e.getUint8(0)||216!=e.getUint8(1))return r&&console.log("Not a valid JPEG"),!1;var n,i=2,o=t.byteLength;while(i<o){if(255!=e.getUint8(i))return r&&console.log("Not a valid marker at offset "+i+", found: "+e.getUint8(i)),!1;if(n=e.getUint8(i+1),r&&console.log(n),225==n)return r&&console.log("Found 0xFFE1 marker"),E(e,i+4,e.getUint16(i+2)-2);i+=2+e.getUint16(i+2)}}function g(t){var e=new DataView(t);if(r&&console.log("Got file of length "+t.byteLength),255!=e.getUint8(0)||216!=e.getUint8(1))return r&&console.log("Not a valid JPEG"),!1;var n=2,i=t.byteLength,o=function(t,e){return 56===t.getUint8(e)&&66===t.getUint8(e+1)&&73===t.getUint8(e+2)&&77===t.getUint8(e+3)&&4===t.getUint8(e+4)&&4===t.getUint8(e+5)};while(n<i){if(o(e,n)){var a=e.getUint8(n+7);a%2!==0&&(a+=1),0===a&&(a=4);var c=n+8+a,s=e.getUint16(n+6+a);return y(t,c,s)}n++}}var v={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function y(t,e,n){var r,i,o,a,c=new DataView(t),s={},u=e;while(u<e+n)28===c.getUint8(u)&&2===c.getUint8(u+1)&&(a=c.getUint8(u+2),a in v&&(o=c.getInt16(u+3),o+5,i=v[a],r=O(c,u+5,o),s.hasOwnProperty(i)?s[i]instanceof Array?s[i].push(r):s[i]=[s[i],r]:s[i]=r)),u++;return s}function w(t,e,n,i,o){var a,c,s,u=t.getUint16(n,!o),f={};for(s=0;s<u;s++)a=n+12*s+2,c=i[t.getUint16(a,!o)],!c&&r&&console.log("Unknown tag: "+t.getUint16(a,!o)),f[c]=x(t,a,e,n,o);return f}function x(t,e,n,r,i){var o,a,c,s,u,f,l=t.getUint16(e+2,!i),h=t.getUint32(e+4,!i),p=t.getUint32(e+8,!i)+n;switch(l){case 1:case 7:if(1==h)return t.getUint8(e+8,!i);for(o=h>4?p:e+8,a=[],s=0;s<h;s++)a[s]=t.getUint8(o+s);return a;case 2:return o=h>4?p:e+8,O(t,o,h-1);case 3:if(1==h)return t.getUint16(e+8,!i);for(o=h>2?p:e+8,a=[],s=0;s<h;s++)a[s]=t.getUint16(o+2*s,!i);return a;case 4:if(1==h)return t.getUint32(e+8,!i);for(a=[],s=0;s<h;s++)a[s]=t.getUint32(p+4*s,!i);return a;case 5:if(1==h)return u=t.getUint32(p,!i),f=t.getUint32(p+4,!i),c=new Number(u/f),c.numerator=u,c.denominator=f,c;for(a=[],s=0;s<h;s++)u=t.getUint32(p+8*s,!i),f=t.getUint32(p+4+8*s,!i),a[s]=new Number(u/f),a[s].numerator=u,a[s].denominator=f;return a;case 9:if(1==h)return t.getInt32(e+8,!i);for(a=[],s=0;s<h;s++)a[s]=t.getInt32(p+4*s,!i);return a;case 10:if(1==h)return t.getInt32(p,!i)/t.getInt32(p+4,!i);for(a=[],s=0;s<h;s++)a[s]=t.getInt32(p+8*s,!i)/t.getInt32(p+4+8*s,!i);return a}}function S(t,e,n){var r=t.getUint16(e,!n);return t.getUint32(e+2+12*r,!n)}function j(t,e,n,r){var i=S(t,e+n,r);if(!i)return{};if(i>t.byteLength)return{};var o=w(t,e,e+i,f,r);if(o["Compression"])switch(o["Compression"]){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var a=e+o.JpegIFOffset,c=o.JpegIFByteCount;o["blob"]=new Blob([new Uint8Array(t.buffer,a,c)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o["Compression"])}else 2==o["PhotometricInterpretation"]&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}function O(t,e,r){var i="";for(n=e;n<e+r;n++)i+=String.fromCharCode(t.getUint8(n));return i}function E(t,e){if("Exif"!=O(t,e,4))return r&&console.log("Not valid EXIF data! "+O(t,e,4)),!1;var n,i,o,a,f,h=e+6;if(18761==t.getUint16(h))n=!1;else{if(19789!=t.getUint16(h))return r&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;n=!0}if(42!=t.getUint16(h+2,!n))return r&&console.log("Not valid TIFF data! (no 0x002A)"),!1;var p=t.getUint32(h+4,!n);if(p<8)return r&&console.log("Not valid TIFF data! (First offset less than 8)",t.getUint32(h+4,!n)),!1;if(i=w(t,h,h+p,s,n),i.ExifIFDPointer)for(o in a=w(t,h,h+i.ExifIFDPointer,c,n),a){switch(o){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":a[o]=l[o][a[o]];break;case"ExifVersion":case"FlashpixVersion":a[o]=String.fromCharCode(a[o][0],a[o][1],a[o][2],a[o][3]);break;case"ComponentsConfiguration":a[o]=l.Components[a[o][0]]+l.Components[a[o][1]]+l.Components[a[o][2]]+l.Components[a[o][3]];break}i[o]=a[o]}if(i.GPSInfoIFDPointer)for(o in f=w(t,h,h+i.GPSInfoIFDPointer,u,n),f){switch(o){case"GPSVersionID":f[o]=f[o][0]+"."+f[o][1]+"."+f[o][2]+"."+f[o][3];break}i[o]=f[o]}return i["thumbnail"]=j(t,h,p,n),i}function P(t){if("DOMParser"in self){var e=new DataView(t);if(r&&console.log("Got file of length "+t.byteLength),255!=e.getUint8(0)||216!=e.getUint8(1))return r&&console.log("Not a valid JPEG"),!1;var n=2,i=t.byteLength,o=new DOMParser;while(n<i-4){if("http"==O(e,n,4)){var a=n-1,c=e.getUint16(n-2)-1,s=O(e,a,c),u=s.indexOf("xmpmeta>")+8;s=s.substring(s.indexOf("<x:xmpmeta"),u);var f=s.indexOf("x:xmpmeta")+10;s=s.slice(0,f)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+s.slice(f);var l=o.parseFromString(s,"text/xml");return C(l)}n++}}}function _(t){var e={};if(1==t.nodeType){if(t.attributes.length>0){e["@attributes"]={};for(var n=0;n<t.attributes.length;n++){var r=t.attributes.item(n);e["@attributes"][r.nodeName]=r.nodeValue}}}else if(3==t.nodeType)return t.nodeValue;if(t.hasChildNodes())for(var i=0;i<t.childNodes.length;i++){var o=t.childNodes.item(i),a=o.nodeName;if(null==e[a])e[a]=_(o);else{if(null==e[a].push){var c=e[a];e[a]=[],e[a].push(c)}e[a].push(_(o))}}return e}function C(t){try{var e={};if(t.children.length>0)for(var n=0;n<t.children.length;n++){var r=t.children.item(n),i=r.attributes;for(var o in i){var a=i[o],c=a.nodeName,s=a.nodeValue;void 0!==c&&(e[c]=s)}var u=r.nodeName;if("undefined"==typeof e[u])e[u]=_(r);else{if("undefined"==typeof e[u].push){var f=e[u];e[u]=[],e[u].push(f)}e[u].push(_(r))}}else e=t.textContent;return e}catch(l){console.log(l.message)}}a.enableXmp=function(){a.isXmpEnabled=!0},a.disableXmp=function(){a.isXmpEnabled=!1},a.getData=function(t,e){return!((self.Image&&t instanceof self.Image||self.HTMLImageElement&&t instanceof self.HTMLImageElement)&&!t.complete)&&(h(t)?e&&e.call(t):b(t,e),!0)},a.getTag=function(t,e){if(h(t))return t.exifdata[e]},a.getIptcTag=function(t,e){if(h(t))return t.iptcdata[e]},a.getAllTags=function(t){if(!h(t))return{};var e,n=t.exifdata,r={};for(e in n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r},a.getAllIptcTags=function(t){if(!h(t))return{};var e,n=t.iptcdata,r={};for(e in n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r},a.pretty=function(t){if(!h(t))return"";var e,n=t.exifdata,r="";for(e in n)n.hasOwnProperty(e)&&("object"==typeof n[e]?n[e]instanceof Number?r+=e+" : "+n[e]+" ["+n[e].numerator+"/"+n[e].denominator+"]\r\n":r+=e+" : ["+n[e].length+" values]\r\n":r+=e+" : "+n[e]+"\r\n");return r},a.readFromBinaryFile=function(t){return m(t)},i=[],o=function(){return a}.apply(e,i),void 0===o||(t.exports=o)}).call(this)},7156:function(t,e,n){var r=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var r=n("428f"),i=n("5135"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"75eb":function(t,e,n){"use strict";var r=n("41d5"),i=n.n(r);i.a},7650:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"js-clipper-basic"},[n("div",{staticClass:"vuejs-clipper-basic__clip-area js-clip-area",class:{vertical:t.isVertical},style:t.areaStyle},[n("canvas",{staticClass:"vuejs-clipper-basic__stem-canvas",attrs:{width:t.stemArea.width,height:t.stemArea.height}}),n("div",{staticClass:"vuejs-clipper-basic__padding",style:{padding:t.areaStyle.padding}},[n("div",{staticClass:"vuejs-clipper-basic__in-pad"},[n("div",{staticClass:"vuejs-clipper-basic__img-scale js-img-scale",style:t.scaleStyle},[n("img",{staticClass:"vuejs-clipper-basic__img js-img",style:t.rotateStyle,attrs:{src:t.src,crossorigin:t.crossOrigin},on:{load:function(e){t.imgLoaded(),t.emit("load",e)},error:function(e){return t.emit("error",e)}}})])])]),n("div",{staticClass:"vuejs-clipper-basic__zoom-area js-zoom-area",style:t.posObj},[n("div",{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--outer",style:t.exOuterStyle}),n("div",{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--inner",style:t.exInnerStyle},[n("div",{staticClass:"vuejs-clipper-basic__drag-inset js-drag-inset"})]),t.corner?n("div",t._l(4,(function(t){return n("div",{key:"corner"+t,staticClass:"vuejs-clipper-basic__corner",class:"vuejs-clipper-basic__corner"+t})})),0):t._e(),t.grid?n("div",{staticClass:"vuejs-clipper-basic__grid"},t._l(4,(function(t){return n("div",{key:"gridItem"+t,staticClass:"vuejs-clipper-basic__grid-item"})})),0):t._e(),t._t("vuejs-clipper-basic__area")],2)]),n("div",{staticClass:"vuejs-clipper-basic__placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("99af"),n("a9e3"),n("bc00")),a=n("2bd2"),c=n("ebb6"),s=n("4d82"),u=n("5670"),f=n("c4cc"),l=n("3e18"),h=n("9f2d"),p=n("a744"),d={extends:{methods:o["a"],mixins:[o["d"],o["c"]]},subscriptions:function(){var t=this;return this.change$=new a["a"],this.setWH$=new a["a"],this.setTL$=new a["a"],this.initWHTL$=(new a["a"]).pipe(Object(c["a"])(this.initWHTL)),this.stop$=new a["a"],this.mousedownDrag$=(new a["a"]).pipe(Object(s["a"])(this.mousedown$),Object(u["a"])(this.isDragElement),Object(f["a"])(this.prevent),Object(c["a"])((function(e){return t.eInZoom(e)})),Object(l["a"])((function(){return t.mousemove$.pipe(Object(h["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchdownDrag$=this.touchstart$.pipe(Object(u["a"])(this.isDragElement),Object(u["a"])((function(t){return 1===t.touches.length})),Object(f["a"])(this.prevent),Object(c["a"])((function(e){return t.eInZoom(e.touches[0])})),Object(l["a"])((function(){return t.touchmove$.pipe(Object(h["a"])(t.touchend$),Object(u["a"])((function(t){return 1===t.touches.length})),Object(c["a"])((function(t){return t.touches[0]})))}),(function(t,e){return{down:t,move:e}}))),this.mousedownZoom$=(new a["a"]).pipe(Object(s["a"])(this.mousedown$),Object(u["a"])(this.isZoomElement),Object(f["a"])(this.prevent),Object(c["a"])(this.setDownPosition),Object(l["a"])((function(){return t.mousemove$.pipe(Object(h["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchdownZoom$=this.touchstart$.pipe(Object(u["a"])(this.isZoomElement),Object(u["a"])((function(t){return 1===t.touches.length})),Object(f["a"])(this.prevent),Object(c["a"])(this.setDownPosition),Object(l["a"])((function(){return t.touchmove$.pipe(Object(h["a"])(t.touchend$),Object(u["a"])((function(t){return 1===t.touches.length})),Object(c["a"])((function(t){return t.touches[0]})))}),(function(t,e){return{down:t,move:e}}))),this.touchTwoFingersZoom$=this.touchstart$.pipe(Object(u["a"])((function(t){return 2===t.touches.length})),Object(u["a"])(this.isTwoPointZoomElement),Object(f["a"])(this.prevent),Object(c["a"])((function(){t.stop$.next(0);var e=t.zoomPos();return{event:event,zoom:e}})),Object(l["a"])((function(){return t.touchmove$.pipe(Object(u["a"])((function(t){return 2===t.touches.length})),Object(f["a"])(t.prevent),Object(h["a"])(t.touchend$))}),(function(e,n){return t.getTwoTouchesPos(e.event,n,e.zoom)}))),this.mousedownCreate$=this.mousedown$.pipe(Object(u["a"])(this.isCreateElement),Object(f["a"])(this.prevent),Object(c["a"])(this.getFakeDown),Object(l["a"])((function(){return t.mousemove$.pipe(Object(h["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchstartCreate$=this.touchstart$.pipe(Object(u["a"])(this.isCreateElement),Object(f["a"])(this.prevent),Object(c["a"])((function(t){return t.touches[0]})),Object(c["a"])(this.getFakeDown),Object(l["a"])((function(){return t.touchmove$.pipe(Object(h["a"])(t.touchend$),Object(h["a"])(t.stop$),Object(u["a"])((function(t){return 1===t.touches.length})),Object(u["a"])((function(){return t.touchCreate})))}),(function(t,e){return{down:t,move:e.touches[0]}}))),this.dragSubject$=(new a["a"]).pipe(Object(s["a"])(this.mousedownDrag$),Object(s["a"])(this.touchdownDrag$),Object(c["a"])(this.dragMoving),Object(c["a"])(this.repositionDrag),Object(s["a"])(this.setTL$),Object(p["a"])({left:0,top:0})),this.dragCreateSubject$=this.mousedownCreate$.pipe(Object(s["a"])(this.touchstartCreate$),Object(c["a"])((function(t){var e=t.down,n=t.move;return{down:e,move:n}}))),this.zoomSubject$=(new a["a"]).pipe(Object(s["a"])(this.mousedownZoom$),Object(s["a"])(this.touchdownZoom$),Object(s["a"])(this.dragCreateSubject$),Object(c["a"])(this.reverseDownPos),Object(c["a"])(this.zoomingPosition),Object(s["a"])(this.touchTwoFingersZoom$),Object(c["a"])(this.setRatioWH),Object(c["a"])(this.toPercentage),Object(c["a"])(this.splitPos),Object(c["a"])((function(e){var n=e.tl,r=e.wh;return t.setTL$.next(n),r})),Object(p["a"])({width:0,height:0}),Object(s["a"])(this.initWHTL$),Object(s["a"])(this.setWH$)),this.onChange$=(new a["a"]).pipe(Object(s["a"])(this.dragSubject$),Object(s["a"])(this.change$)),{zoomTL$:this.dragSubject$,zoomWH$:this.zoomSubject$}},props:{preview:{type:String,default:""},src:{type:String,default:""},border:{type:Number,default:1},outline:{type:Number,default:6},corner:{type:Boolean,default:!0},grid:{type:Boolean,default:!0},mode:{type:String,default:"normal"},ratio:{type:Number,default:NaN},wrapRatio:{type:Number,default:NaN},touchCreate:{type:Boolean,default:!0},rotate:{type:Number,default:0},bgColor:{type:String,default:"white"},shadow:{type:String,default:"rgba(0, 0, 0, 0.4)"},scale:{type:Number,default:1},minWidth:{type:Number,default:1},minHeight:{type:Number,default:1},initWidth:{type:Number,default:50},initHeight:{type:Number,default:50},crossOrigin:{type:String,default:void 0}},data:function(){return{imgRatio:NaN}},computed:{posObj:function(){var t={"border-width":"".concat(this.border,"px !important"),width:"".concat(this.zoomWH$.width,"% !important"),height:"".concat(this.zoomWH$.height,"% !important"),color:"".concat(this.shadow," !important"),"box-shadow":"0 0 0 ".concat(this._shadow," !important")};for(var e in this.zoomTL$)"number"===typeof this.zoomTL$[e]&&(t[e]="".concat(this.zoomTL$[e],"% !important"));return t},scaleStyle:function(){return{transform:"scale(".concat(this.scale,") !important")}},rotateStyle:function(){return{transform:"rotate(".concat(this.rotate,"deg) !important")}},areaStyle:function(){var t="".concat(this.border,"px !important"),e="".concat(this.src?"block":"none"," !important"),n="".concat(this.bgColor," !important");return{padding:t,display:e,"background-color":n}},eptStyle:function(){var t="".concat(this.src?"none":"block"," !important");return{display:t}},exOuterStyle:function(){var t="".concat(this.outline+this.border,"px");return{"border-width":"".concat(t," !important"),transform:"translate(-".concat(t,",-").concat(t,") !important")}},exInnerStyle:function(){var t="".concat(this.outline,"px !important");return{padding:t}},_shadow:function(){return"".concat(this.imgRatio>=1?100:100/this.imgRatio,"vw")},stemArea:function(){return this.wrapRatio?{width:100*this.wrapRatio,height:100}:this.imgRatio?{width:this.imgEl.naturalWidth,height:this.imgEl.naturalHeight}:{}},isVertical:function(){var t=this.wrapRatio||this.ratio;return!!t&&this.imgRatio<t}},watch:{ratio:function(){this.resetData()},wrapRatio:function(){this.resetData()},bgColor:function(){this.callPreview("setData",{bgColor:this.bgColor})},scaleStyle:function(){this.change$.next(0)},rotateStyle:function(){this.change$.next(0)}},mounted:function(){var t=this;this.imgEl=this.$el.querySelector(".js-clipper-basic .js-img"),this.canvasEl=document.createElement("CANVAS"),this.areaEl=this.$el.querySelector(".js-clipper-basic .js-clip-area"),this.scaleEl=this.$el.querySelector(".js-clipper-basic .js-img-scale"),this.zoomEl=this.$el.querySelector(".js-clipper-basic .js-zoom-area"),this.dragEl=this.$el.querySelector(".js-clipper-basic .js-drag-inset"),this.preview&&this.$subscribeTo(this.onChange$,(function(){t.$nextTick((function(){var e=t.getDrawPos().pos,n=t.rotate;t.invalidDrawPos(e)||t.callPreview("locateImage",e,n)}))}))},methods:{imgLoaded:function(){this.callPreview("setData",{src:this.src,bgColor:this.bgColor}),this.imgRatio=this.imgEl.naturalWidth/this.imgEl.naturalHeight,this.resetData()},resetData:function(){var t=this;this.$nextTick((function(){t.initWHTL$.next(!0)}))}}},b=d,m=(n("e175"),n("2877")),g=Object(m["a"])(b,r,i,!1,null,"2b48af89",null);e["a"]=g.exports},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),c=n("d012"),s=n("1be4"),u=n("cc12"),f=n("f772"),l=">",h="<",p="prototype",d="script",b=f("IE_PROTO"),m=function(){},g=function(t){return h+d+l+t+h+"/"+d+l},v=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=u("iframe"),n="java"+d+":";return e.style.display="none",s.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}w=r?v(r):y();var t=a.length;while(t--)delete w[p][a[t]];return w()};c[b]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(m[p]=i(t),n=new m,m[p]=null,n[b]=t):n=w(),void 0===e?n:o(n,e)}},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),c=n("d44e"),s=n("9112"),u=n("6eeb"),f=n("b622"),l=n("c430"),h=n("3f8c"),p=n("ae93"),d=p.IteratorPrototype,b=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),g="keys",v="values",y="entries",w=function(){return this};t.exports=function(t,e,n,f,p,x,S){i(n,e,f);var j,O,E,P=function(t){if(t===p&&L)return L;if(!b&&t in T)return T[t];switch(t){case g:return function(){return new n(this,t)};case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",C=!1,T=t.prototype,$=T[m]||T["@@iterator"]||p&&T[p],L=!b&&$||P(p),I="Array"==e&&T.entries||$;if(I&&(j=o(I.call(new t)),d!==Object.prototype&&j.next&&(l||o(j)===d||(a?a(j,d):"function"!=typeof j[m]&&s(j,m,w)),c(j,_,!0,!0),l&&(h[_]=w))),p==v&&$&&$.name!==v&&(C=!0,L=function(){return $.call(this)}),l&&!S||T[m]===L||s(T,m,L),h[e]=L,p)if(O={values:P(v),keys:x?L:P(g),entries:P(y)},S)for(E in O)(b||C||!(E in T))&&u(T,E,O[E]);else r({target:e,proto:!0,forced:b||C},O);return O}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,c=o.exec(p.stack)||a.exec(p.stack),s=c&&c[1]||!1,u=c&&c[2]||!1,f=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");s===f&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var h=0;h<l.length;h++){if("interactive"===l[h].readyState)return l[h];if(l[h].src===s)return l[h];if(s===f&&l[h].innerHTML&&l[h].innerHTML.trim()===i)return l[h]}return null}}return t}))},"88bc":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;e.stack}r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"8ac6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"===typeof t.length}}()},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=c[a(t)];return n==u||n!=s&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},s=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},"95b0":function(t,e,n){},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag",u="object"===typeof t,f=e.regeneratorRuntime;if(f)u&&(t.exports=f);else{f=e.regeneratorRuntime=u?t.exports:{},f.wrap=w;var l="suspendedStart",h="suspendedYield",p="executing",d="completed",b={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,v=g&&g(g(I([])));v&&v!==r&&i.call(v,a)&&(m=v);var y=O.prototype=S.prototype=Object.create(m);j.prototype=y.constructor=O,O.constructor=j,O[s]=j.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(y),t},f.awrap=function(t){return{__await:t}},E(P.prototype),P.prototype[c]=function(){return this},f.AsyncIterator=P,f.async=function(t,e,n,r){var i=new P(w(t,e,n,r));return f.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(y),y[s]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},f.values=I,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach($),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return c.type="throw",c.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),b}},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;$(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),b}}}function w(t,e,n,r){var i=e&&e.prototype instanceof S?e:S,o=Object.create(i.prototype),a=new L(r||[]);return o._invoke=_(t,n,a),o}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function S(){}function j(){}function O(){}function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function P(t){function e(n,r,o,a){var c=x(t[n],t,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(u).then((function(t){s.value=t,o(s)}),a)}a(c.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function _(t,e,n){var r=l;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return R()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var c=C(a,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=x(t,e,n);if("normal"===s.type){if(r=n.done?d:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=d,n.method="throw",n.arg=s.arg)}}}function C(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,C(t,e),"throw"===e.method))return b;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var i=x(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,b;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,b):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function I(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r<t.length)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:R}}function R(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},9828:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},9861:function(t,e,n){"use strict";n("e260");var r=n("23e7"),i=n("d066"),o=n("0d3b"),a=n("6eeb"),c=n("e2cc"),s=n("d44e"),u=n("9ed3"),f=n("69f3"),l=n("19aa"),h=n("5135"),p=n("0366"),d=n("f5df"),b=n("825a"),m=n("861d"),g=n("7c73"),v=n("5c6c"),y=n("9a1f"),w=n("35a1"),x=n("b622"),S=i("fetch"),j=i("Headers"),O=x("iterator"),E="URLSearchParams",P=E+"Iterator",_=f.set,C=f.getterFor(E),T=f.getterFor(P),$=/\+/g,L=Array(4),I=function(t){return L[t-1]||(L[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},R=function(t){try{return decodeURIComponent(t)}catch(e){return t}},k=function(t){var e=t.replace($," "),n=4;try{return decodeURIComponent(e)}catch(r){while(n)e=e.replace(I(n--),R);return e}},D=/[!'()~]|%20/g,A={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(t){return A[t]},F=function(t){return encodeURIComponent(t).replace(D,N)},U=function(t,e){if(e){var n,r,i=e.split("&"),o=0;while(o<i.length)n=i[o++],n.length&&(r=n.split("="),t.push({key:k(r.shift()),value:k(r.join("="))}))}},M=function(t){this.entries.length=0,U(this.entries,t)},Y=function(t,e){if(t<e)throw TypeError("Not enough arguments")},W=u((function(t,e){_(this,{type:P,iterator:y(C(t).entries),kind:e})}),"Iterator",(function(){var t=T(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),X=function(){l(this,X,E);var t,e,n,r,i,o,a,c,s,u=arguments.length>0?arguments[0]:void 0,f=this,p=[];if(_(f,{type:E,entries:p,updateURL:function(){},updateSearchParams:M}),void 0!==u)if(m(u))if(t=w(u),"function"===typeof t){e=t.call(u),n=e.next;while(!(r=n.call(e)).done){if(i=y(b(r.value)),o=i.next,(a=o.call(i)).done||(c=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:c.value+""})}}else for(s in u)h(u,s)&&p.push({key:s,value:u[s]+""});else U(p,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},H=X.prototype;c(H,{append:function(t,e){Y(arguments.length,2);var n=C(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){Y(arguments.length,1);var e=C(this),n=e.entries,r=t+"",i=0;while(i<n.length)n[i].key===r?n.splice(i,1):i++;e.updateURL()},get:function(t){Y(arguments.length,1);for(var e=C(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){Y(arguments.length,1);for(var e=C(this).entries,n=t+"",r=[],i=0;i<e.length;i++)e[i].key===n&&r.push(e[i].value);return r},has:function(t){Y(arguments.length,1);var e=C(this).entries,n=t+"",r=0;while(r<e.length)if(e[r++].key===n)return!0;return!1},set:function(t,e){Y(arguments.length,1);for(var n,r=C(this),i=r.entries,o=!1,a=t+"",c=e+"",s=0;s<i.length;s++)n=i[s],n.key===a&&(o?i.splice(s--,1):(o=!0,n.value=c));o||i.push({key:a,value:c}),r.updateURL()},sort:function(){var t,e,n,r=C(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(t=o[n],e=0;e<n;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===n&&i.push(t)}r.updateURL()},forEach:function(t){var e,n=C(this).entries,r=p(t,arguments.length>1?arguments[1]:void 0,3),i=0;while(i<n.length)e=n[i++],r(e.value,e.key,this)},keys:function(){return new W(this,"keys")},values:function(){return new W(this,"values")},entries:function(){return new W(this,"entries")}},{enumerable:!0}),a(H,O,H.entries),a(H,"toString",(function(){var t,e=C(this).entries,n=[],r=0;while(r<e.length)t=e[r++],n.push(F(t.key)+"="+F(t.value));return n.join("&")}),{enumerable:!0}),s(X,E),r({global:!0,forced:!o},{URLSearchParams:X}),o||"function"!=typeof S||"function"!=typeof j||r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,n,r,i=[t];return arguments.length>1&&(e=arguments[1],m(e)&&(n=e.body,d(n)===E&&(r=e.headers?new j(e.headers):new j,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=g(e,{body:v(0,String(n)),headers:v(0,r)}))),i.push(e)),S.apply(this,i)}}),t.exports={URLSearchParams:X,getState:C}},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),c=n("7b0b"),s=n("50c4"),u=n("8418"),f=n("65f0"),l=n("1dde"),h=n("b622"),p=n("2d00"),d=h("isConcatSpreadable"),b=9007199254740991,m="Maximum allowed index exceeded",g=p>=51||!i((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),v=l("concat"),y=function(t){if(!a(t))return!1;var e=t[d];return void 0!==e?!!e:o(t)},w=!g||!v;r({target:"Array",proto:!0,forced:w},{concat:function(t){var e,n,r,i,o,a=c(this),l=f(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],y(o)){if(i=s(o.length),h+i>b)throw TypeError(m);for(n=0;n<i;n++,h++)n in o&&u(l,h,o[n])}else{if(h>=b)throw TypeError(m);u(l,h++,o)}return l.length=h,l}})},"9a1f":function(t,e,n){var r=n("825a"),i=n("35a1");t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},"9ab4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -13,5 +13,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},"9bdd":function(t,e,n){var r=n("825a");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&r(o.call(t)),a}}},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9e46":function(t,e,n){"use strict";function r(t){return t&&"function"===typeof t.schedule}n.d(e,"a",(function(){return r}))},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),c=n("3f8c"),s=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,u,!1,!0),c[u]=s,t}},"9f2d":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("cf86");function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new c(t),r=Object(i["c"])(this.notifier,new i["a"](n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),c=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r["a"](e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i["b"])},a4d3:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),c=n("83ab"),s=n("4930"),u=n("fdbf"),f=n("d039"),l=n("5135"),h=n("e8b5"),p=n("861d"),d=n("825a"),b=n("7b0b"),g=n("fc6a"),m=n("c04e"),v=n("5c6c"),y=n("7c73"),w=n("df75"),x=n("241c"),S=n("057f"),j=n("7418"),O=n("06cf"),E=n("9bf2"),P=n("d1e7"),_=n("9112"),C=n("6eeb"),T=n("5692"),$=n("f772"),L=n("d012"),I=n("90e3"),R=n("b622"),k=n("e538"),D=n("746f"),A=n("d44e"),N=n("69f3"),F=n("b727").forEach,U=$("hidden"),M="Symbol",Y="prototype",W=R("toPrimitive"),X=N.set,H=N.getterFor(M),B=Object[Y],G=i.Symbol,q=o("JSON","stringify"),V=O.f,z=E.f,Z=S.f,J=P.f,K=T("symbols"),Q=T("op-symbols"),tt=T("string-to-symbol-registry"),et=T("symbol-to-string-registry"),nt=T("wks"),rt=i.QObject,it=!rt||!rt[Y]||!rt[Y].findChild,ot=c&&f((function(){return 7!=y(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=V(B,e);r&&delete B[e],z(t,e,n),r&&t!==B&&z(B,e,r)}:z,at=function(t,e){var n=K[t]=y(G[Y]);return X(n,{type:M,tag:t,description:e}),c||(n.description=e),n},ct=u?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof G},st=function(t,e,n){t===B&&st(Q,e,n),d(t);var r=m(e,!0);return d(n),l(K,r)?(n.enumerable?(l(t,U)&&t[U][r]&&(t[U][r]=!1),n=y(n,{enumerable:v(0,!1)})):(l(t,U)||z(t,U,v(1,{})),t[U][r]=!0),ot(t,r,n)):z(t,r,n)},ut=function(t,e){d(t);var n=g(e),r=w(n).concat(dt(n));return F(r,(function(e){c&&!lt.call(n,e)||st(t,e,n[e])})),t},ft=function(t,e){return void 0===e?y(t):ut(y(t),e)},lt=function(t){var e=m(t,!0),n=J.call(this,e);return!(this===B&&l(K,e)&&!l(Q,e))&&(!(n||!l(this,e)||!l(K,e)||l(this,U)&&this[U][e])||n)},ht=function(t,e){var n=g(t),r=m(e,!0);if(n!==B||!l(K,r)||l(Q,r)){var i=V(n,r);return!i||!l(K,r)||l(n,U)&&n[U][r]||(i.enumerable=!0),i}},pt=function(t){var e=Z(g(t)),n=[];return F(e,(function(t){l(K,t)||l(L,t)||n.push(t)})),n},dt=function(t){var e=t===B,n=Z(e?Q:g(t)),r=[];return F(n,(function(t){!l(K,t)||e&&!l(B,t)||r.push(K[t])})),r};if(s||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=I(t),n=function(t){this===B&&n.call(Q,t),l(this,U)&&l(this[U],e)&&(this[U][e]=!1),ot(this,e,v(1,t))};return c&&it&&ot(B,e,{configurable:!0,set:n}),at(e,t)},C(G[Y],"toString",(function(){return H(this).tag})),C(G,"withoutSetter",(function(t){return at(I(t),t)})),P.f=lt,E.f=st,O.f=ht,x.f=S.f=pt,j.f=dt,k.f=function(t){return at(R(t),t)},c&&(z(G[Y],"description",{configurable:!0,get:function(){return H(this).description}}),a||C(B,"propertyIsEnumerable",lt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:G}),F(w(nt),(function(t){D(t)})),r({target:M,stat:!0,forced:!s},{for:function(t){var e=String(t);if(l(tt,e))return tt[e];var n=G(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!ct(t))throw TypeError(t+" is not a symbol");if(l(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!c},{create:ft,defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:ht}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:pt,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:f((function(){j.f(1)}))},{getOwnPropertySymbols:function(t){return j.f(b(t))}}),q){var bt=!s||f((function(){var t=G();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}));r({target:"JSON",stat:!0,forced:bt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!ct(t))return h(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ct(e))return e}),i[1]=e,q.apply(null,i)}})}G[Y][W]||_(G[Y],W,G[Y].valueOf),A(G,M),L[U]=!0},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a6c5:function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var r=n("9ab4"),i=n("ebb6"),o=n("e9b9"),a=n("1716"),c=n("a6e8"),s=n("c539");function u(t,e){return new o["a"]((function(n){var r=new c["a"];return r.add(e.schedule((function(){var i=t[s["a"]]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}function f(t,e){return new o["a"]((function(n){var r=new c["a"];return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}var l=n("245f"),h=n("127f");function p(t,e){if(!t)throw new Error("Iterable cannot be null");return new o["a"]((function(n){var r,i=new c["a"];return i.add((function(){r&&"function"===typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[h["a"]](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}function d(t){return t&&"function"===typeof t[s["a"]]}var b=n("fd66"),g=n("d9e3");function m(t){return t&&"function"===typeof t[h["a"]]}function v(t,e){if(null!=t){if(d(t))return u(t,e);if(Object(b["a"])(t))return f(t,e);if(Object(g["a"])(t))return Object(l["a"])(t,e);if(m(t)||"string"===typeof t)return p(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function y(t,e){return e?v(t,e):t instanceof o["a"]?t:new o["a"](Object(a["a"])(t))}var w=n("cf86");function x(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"===typeof e?function(r){return r.pipe(x((function(n,r){return y(t(n,r)).pipe(Object(i["a"])((function(t,i){return e(n,t,r,i)})))}),n))}:("number"===typeof e&&(n=e),function(e){return e.lift(new S(t,n))})}var S=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new j(t,this.project,this.concurrent))},t}(),j=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r["a"](e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new w["a"](this),n=this.destination;n.add(e);var r=Object(w["c"])(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(w["b"])},a6e8:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("8ac6"),i=n("31c4"),o=n("d817"),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),c=a,s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,a=n._parentOrParents,s=n._ctorUnsubscribe,f=n._unsubscribe,l=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof t)a.remove(this);else if(null!==a)for(var h=0;h<a.length;++h){var p=a[h];p.remove(this)}if(Object(o["a"])(f)){s&&(this._unsubscribe=void 0);try{f.call(this)}catch(g){e=g instanceof c?u(g.errors):[g]}}if(Object(r["a"])(l)){h=-1;var d=l.length;while(++h<d){var b=l[h];if(Object(i["a"])(b))try{b.unsubscribe()}catch(g){e=e||[],g instanceof c?e=e.concat(u(g.errors)):e.push(g)}}}if(e)throw new c(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!==typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function u(t){return t.reduce((function(t,e){return t.concat(e instanceof c?e.errors:e)}),[])}},a744:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("9e46"),i=n("2144"),o=n("245f");function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r["a"])(n)?(t.pop(),Object(o["a"])(t,n)):Object(i["a"])(t)}var c=n("667f");function s(){return Object(c["a"])(1)}function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s()(a.apply(void 0,t))}function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r["a"])(n)?(t.pop(),function(e){return u(t,e,n)}):function(e){return u(t,e)}}},a748:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("e9b9"),i=n("9e46"),o=n("667f"),a=n("2144");function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,c=null,s=t[t.length-1];return Object(i["a"])(s)?(c=t.pop(),t.length>1&&"number"===typeof t[t.length-1]&&(n=t.pop())):"number"===typeof s&&(n=t.pop()),null===c&&1===t.length&&t[0]instanceof r["a"]?t[0]:Object(o["a"])(n)(Object(a["a"])(t,c))}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("6eeb"),c=n("5135"),s=n("c6b6"),u=n("7156"),f=n("c04e"),l=n("d039"),h=n("7c73"),p=n("241c").f,d=n("06cf").f,b=n("9bf2").f,g=n("58a8").trim,m="Number",v=i[m],y=v.prototype,w=s(h(y))==m,x=function(t){var e,n,r,i,o,a,c,s,u=f(t,!1);if("string"==typeof u&&u.length>2)if(u=g(u),e=u.charCodeAt(0),43===e||45===e){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=u.slice(2),a=o.length,c=0;c<a;c++)if(s=o.charCodeAt(c),s<48||s>i)return NaN;return parseInt(o,r)}return+u};if(o(m,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var S,j=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof j&&(w?l((function(){y.valueOf.call(n)})):s(n)!=m)?u(new v(x(e)),n,j):x(e)},O=r?p(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;O.length>E;E++)c(v,S=O[E])&&!c(j,S)&&b(j,S,d(v,S));j.prototype=y,y.constructor=j,a(i,m,j)}},ab13:function(t,e,n){var r=n("b622"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},ae40:function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("5135"),a=Object.defineProperty,c={},s=function(t){throw t};t.exports=function(t,e){if(o(c,t))return c[t];e||(e={});var n=[][t],u=!!o(e,"ACCESSORS")&&e.ACCESSORS,f=o(e,0)?e[0]:s,l=o(e,1)?e[1]:void 0;return c[t]=!!n&&!i((function(){if(u&&!r)return!0;var t={length:-1};u?a(t,1,{enumerable:!0,get:s}):t[1]=1,n.call(t,f,l)}))}},ae93:function(t,e,n){"use strict";var r,i,o,a=n("e163"),c=n("9112"),s=n("5135"),u=n("b622"),f=n("c430"),l=u("iterator"),h=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):h=!0),void 0==r&&(r={}),f||s(r,l)||c(r,l,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(t,e,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,c=/^\s*function ([^ (]*)/,s="name";r&&!(s in o)&&i(o,s,{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(t){return""}}})},b575:function(t,e,n){var r,i,o,a,c,s,u,f,l=n("da84"),h=n("06cf").f,p=n("c6b6"),d=n("2cf4").set,b=n("1cdc"),g=l.MutationObserver||l.WebKitMutationObserver,m=l.process,v=l.Promise,y="process"==p(m),w=h(l,"queueMicrotask"),x=w&&w.value;x||(r=function(){var t,e;y&&(t=m.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},y?a=function(){m.nextTick(r)}:g&&!b?(c=!0,s=document.createTextNode(""),new g(r).observe(s,{characterData:!0}),a=function(){s.data=c=!c}):v&&v.resolve?(u=v.resolve(void 0),f=u.then,a=function(){f.call(u,r)}):a=function(){d.call(l,r)}),t.exports=x||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),c=n("4930"),s=n("fdbf"),u=i("wks"),f=r.Symbol,l=s?f:f&&f.withoutSetter||a;t.exports=function(t){return o(u,t)||(c&&o(f,t)?u[t]=f[t]:u[t]=l("Symbol."+t)),u[t]}},b727:function(t,e,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),c=n("65f0"),s=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,f=4==t,l=6==t,h=5==t||l;return function(p,d,b,g){for(var m,v,y=o(p),w=i(y),x=r(d,b,3),S=a(w.length),j=0,O=g||c,E=e?O(p,S):n?O(p,0):void 0;S>j;j++)if((h||j in w)&&(m=w[j],v=x(m,j,y),t))if(e)E[j]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return j;case 2:s.call(E,m)}else if(f)return!1;return l?-1:u||f?f:E}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},bc00:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return d})),n.d(e,"c",(function(){return b}));n("4160"),n("cca6"),n("159b");var r={prevent:function(t){t.preventDefault()},eTo:function(t,e,n){var r=this[n+"Pos"](),i=0;switch(e){case"top":i=t.clientY-r.top;break;case"left":i=t.clientX-r.left;break;case"right":i=r.right-t.clientX;break;case"bottom":i=r.bottom-t.clientY;break}return i},toPercentage:function(t){var e={},n={left:"toX",right:"toX",top:"toY",bottom:"toY",width:"toX",height:"toY"};for(var r in t){var i=n[r];i&&void 0!==t[r]&&(e[r]=this[i](t[r]))}return e},invalidDrawPos:function(t){return 0===t.swidth||0===t.sheight}},i=r,o=(n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0"),n("96cf"),{eToArea:function(t,e){return this.eTo(t,e,"area")},areaPos:function(){var t=this.areaEl.getBoundingClientRect();return t},zoomPos:function(){var t=this.zoomEl.getBoundingClientRect();return t},scalePos:function(){return this.scaleEl.getBoundingClientRect()},imgPos:function(){return this.imgEl.getBoundingClientRect()},eInZoom:function(t){var e=this.zoomEl.getBoundingClientRect();return{width:e.width,height:e.height,left:t.clientX-e.left,top:t.clientY-e.top}},zoomInArea:function(){var t=this.areaEl.getBoundingClientRect(),e=this.zoomEl.getBoundingClientRect();return Object.assign(e,{offsetLeft:e.left-t.left,offsetTop:e.top-t.top,maxLeft:t.width-e.width,maxTop:t.height-e.height})},toX:function(t){var e=this.areaPos();return Math.min(Math.max(t/e.width*100,0),100)},toY:function(t){var e=this.areaPos();return Math.min(Math.max(t/e.height*100,0),100)},isDragElement:function(t){return t.target===this.dragEl},dragMoving:function(t){var e=t.down,n=t.move,r=this.toX(this.eToArea(n,"left")-e.left),i=this.toY(this.eToArea(n,"top")-e.top);return{left:r,top:i,down:e,move:n}},repositionDrag:function(t){var e=t.left,n=t.top,r=t.down,i=t.move,o=this.zoomInArea(),a=this.toX(o.maxLeft),c=this.toY(o.maxTop);if(e=Math.min(e,a),n=Math.min(n,c),e===a||0===e){var s=this.eInZoom(i);r.left=Math.max(Math.min(s.left,s.width),0)}if(n===c||0===n){var u=this.eInZoom(i);r.top=Math.max(Math.min(u.top,u.height),0)}return{left:e,top:n}},ratioPos:function(t){var e=this.zoomPos(),n=t.width-e.width,r=t.height-e.height,i=n>r;return{x:i,y:!i}},zoomingPosition:function(t){var e,n,r,i,o,a,c=this,s=t.down,u=t.move,f=u.clientX>s.clientX?"r":"l",l=u.clientY>s.clientY?"b":"t",h=function(){return c.eToArea(s,"top")},p=function(){return c.eToArea(s,"left")},d=h(),b=p(),g=this.areaPos(),m=0,v=0,y=this.minWidth*g.width/100,w=this.ratio?y/this.ratio:this.minHeight*g.height/100;return"r"===f?(b+y>g.width?(s.clientX=g.right-y,e=b):e=p(),o=g.width-e,m=u.clientX-s.clientX):"l"===f&&(b<y&&(s.clientX=g.left+y),r=g.right-s.clientX,o=g.width-r,m=s.clientX-u.clientX),"b"===l?(d+w>g.height?(s.clientY=g.bottom-w,n=d):n=h(),a=g.height-n,v=u.clientY-s.clientY):"t"===l&&(d<w&&(s.clientY=g.top+w),i=g.bottom-s.clientY,a=g.height-i,v=s.clientY-u.clientY),m=Math.max(Math.min(m,o),y),v=Math.max(Math.min(v,a),w),{width:m,height:v,top:n,left:e,right:r,bottom:i,maxWidth:o,maxHeight:a}},setRatioWH:function(t){var e=t.width,n=t.height,r=t.maxWidth,i=t.maxHeight,o=t.left,a=t.top,c=t.right,s=t.bottom;if(!this.ratio)return{width:e,height:n,left:o,top:a,right:c,bottom:s};var u=this.ratioPos({width:e,height:n});return u.x?(n=Math.min(e/this.ratio,i),e=n===i?n*this.ratio:e):(e=Math.min(n*this.ratio,r),n=e===r?e/this.ratio:n),{width:e,height:n,left:o,top:a,right:c,bottom:s}},initWHTL:function(){var t=this,e=this.initWidth,n=this.initHeight,r=(100-this.initWidth)/2,i=(100-this.initHeight)/2,o=this.areaPos(),a={width:e*o.width/100,height:n*o.height/100,border:2*this.border};if(this.ratio){if(this.ratio){var c=this.wrapRatio||this.imgRatio,s=function(){var e=(a.width-a.border)/t.ratio+a.border,r=e/o.height*100;n=Math.max(r,t.minHeight),i=(100-n)/2},u=function(){var n=(a.height-a.border)*t.ratio+a.border,i=n/o.width*100;e=Math.max(i,t.minWidth),r=(100-e)/2};if(c<=this.ratio){if(s(),this.minHeight===n&&u(),e>100)throw new Error("Invalid ratio, wrapRatio, minWidth combination")}else if(u(),this.minWidth===e&&s(),n>100)throw new Error("Invalid ratio, wrapRatio, minWidth combination")}}else{if(e<this.minWidth)throw new Error("Invalid initWidth, minWidth combination");if(n<this.minHeight)throw new Error("Invalid initHeight, minHeight combination")}return this.setTL$.next({left:r,top:i}),{width:e,height:n}},splitPos:function(t){var e=t.top,n=t.left,r=t.right,i=t.bottom,o=t.width,a=t.height,c=t.maxWidth,s=t.maxHeight;return{tl:{left:n,top:e,right:r,bottom:i},wh:{width:o,height:a,maxWidth:c,maxHeight:s}}},isZoomElement:function(t){return this.zoomEl.contains(t.target)&&t.target!==this.dragEl},judgeArea:function(t){var e=this.zoomPos(),n=e.left+e.width/2,r=e.top+e.height/2,i=t.clientX,o=t.clientY;return{l:i<n,r:i>n,t:o<r,b:o>r}},setDownPosition:function(t){var e=this.judgeArea(t),n=this.zoomPos(),r=e.t?n.bottom:n.top,i=e.l?n.right:n.left;return{target:null,clientX:i,clientY:r}},isTwoPointZoomElement:function(t){return this.areaEl.contains(t.touches[0].target)&&this.areaEl.contains(t.touches[1].target)},getTwoTouchesPos:function(t,e,n){var r=this.areaPos(),i=e.touches[0].clientX<e.touches[1].clientX,o=e.touches[0].clientY<e.touches[1].clientY,a=t.touches[0].clientX<t.touches[1].clientX,c=t.touches[0].clientY<t.touches[1].clientY,s={left:i?0:1,right:i?1:0,top:o?0:1,bottom:o?1:0},u={left:a?0:1,right:a?1:0,top:c?0:1,bottom:c?1:0},f=t.touches[u.left].clientX-e.touches[s.left].clientX,l=t.touches[u.top].clientY-e.touches[s.top].clientY,h=this.minWidth*r.width/100,p=this.ratio?h/this.ratio:this.minHeight*r.height/100,d=Math.min(n.left-r.left-f,r.width-h),b=Math.min(n.top-r.top-l,r.height-p),g=r.width-d,m=r.height-b,v=t.touches[u.right].clientX-n.right,y=t.touches[u.bottom].clientY-n.bottom,w=Math.max(Math.min(e.touches[s.right].clientX-r.left-d-v,g),h),x=Math.max(Math.min(e.touches[s.bottom].clientY-b-r.top-y,m),p);return{width:w,height:x,top:b,left:d,maxWidth:g,maxHeight:m}},isCreateElement:function(t){return t.target===this.areaEl||t.target===this.imgEl},getFakeDown:function(t){return{target:t.target,clientX:t.clientX,clientY:t.clientY}},reverseDownPos:function(t){var e=t.down,n=t.move;if("normal"===this.mode)return{down:e,move:n};if(null!==e.target&&e.target===this.areaEl)return e.target=null,{down:e,move:n};var r=this.judgeArea(e),i=this.zoomPos();return r.l&&n.clientX<=e.clientX?e.clientX=i.right:r.r&&n.clientX>=e.clientX&&(e.clientX=i.left),r.t&&n.clientY<=e.clientY?e.clientY=i.bottom:r.b&&n.clientY>=e.clientY&&(e.clientY=i.top),{down:e,move:n}},getImgNonRotatePos:function(){var t,e,n=this.scalePos(),r=n.left+n.width/2,i=n.top+n.height/2;return this.isVertical?(e=n.height,t=e*this.imgRatio):(t=n.width,e=t/this.imgRatio),{left:r-t/2,right:r+t/2,top:i-e/2,bottom:i+e/2,width:t,height:e}},getDrawPos:function(t){var e=t||{},n=e.wPixel,r=e.maxWPixel,i=this.zoomPos(),o=this.getImgNonRotatePos(),a=this.imgEl.naturalWidth,c=o.width,s=i.left-o.left+this.border,u=i.top-o.top+this.border,f=i.width-2*this.border,l=i.height-2*this.border,h=a/c,p=r?Math.min(n||f*h,r):n||f*h,d={rotateX:(o.left+o.width/2-(i.left+this.border))*h,rotateY:(o.top+o.height/2-(i.top+this.border))*h,drawX:(o.left-(i.left+this.border))*h,drawY:(o.top-(i.top+this.border))*h},b={sx:s*h,sy:u*h,swidth:f*h,sheight:l*h,dx:0,dy:0,dwidth:p,dheight:p*l/f};return b[Symbol.iterator]=regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=regeneratorRuntime.keys(b);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,b[e];case 5:t.next=1;break;case 7:case"end":return t.stop()}}),t)})),{pos:b,translate:d}}}),a=o,c={wrapPos:function(){return this.wrapEl.getBoundingClientRect()},scalePos:function(){return this.scaleEl.getBoundingClientRect()},translatePos:function(){return this.translateEl.getBoundingClientRect()},toX:function(t){var e=this.scalePos();return t/e.width*100},toY:function(t){var e=this.scalePos();return t/e.height*100},isDragElement:function(t){return this.wrapEl.contains(t.target)},dragDownPos:function(t){var e=this.translatePos(),n=this.scalePos(),r={left:e.left-n.left,top:e.top-n.top,clientX:t.clientX,clientY:t.clientY};return r},delta:function(t){var e=t.down,n=t.move,r=n.clientX-e.clientX+e.left,i=n.clientY-e.clientY+e.top;return{left:r,top:i}},towPointsTouches:function(t){return t.touches},setOrigin:function(t){return{down:[t[0],t[1]],origin:this.scalePos().width}},twoPointsDelta:function(t){var e=t.down,n=t.move,r=Math.abs(n[0].clientX-n[1].clientX)-Math.abs(e[0].clientX-e[1].clientX),i=Math.abs(n[0].clientY-n[1].clientY)-Math.abs(e[0].clientY-e[1].clientY);e[0]=n[0],e[1]=n[1];var o=this.wrapPos();return Math.abs(r)>=Math.abs(i)?r/o.width:i/o.height},getDrawPos:function(t){var e=t||{},n=e.wPixel,r=e.maxWPixel,i=this.areaEl.getBoundingClientRect(),o=this.translatePos(),a=this.imgEl.naturalWidth,c=i.left-o.left+this.border,s=i.top-o.top+this.border,u=a/o.width,f={rotateX:(o.left+o.width/2-(i.left+this.border))*u,rotateY:(o.top+o.height/2-(i.top+this.border))*u,drawX:(o.left-(i.left+this.border))*u,drawY:(o.top-(i.top+this.border))*u},l=i.width-2*this.border,h=i.height-2*this.border,p=r?Math.min(n||l*u,r):n||l*u,d={sx:c*u,sy:s*u,swidth:l*u,sheight:h*u,dx:0,dy:0,dwidth:p,dheight:p*h/l};return d[Symbol.iterator]=regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=regeneratorRuntime.keys(d);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,d[e];case 5:t.next=1;break;case 7:case"end":return t.stop()}}),t)})),{pos:d,translate:f}},calcWheelScaling:function(t){var e=this.bgWH$,n=this.zoomRate*Math.max(e,.8)*t;return Math.max(e+n,this.minScale)},calcTouchScaling:function(t){var e=this.bgWH$,n=Math.max(e,.8)*t;return Math.max(e+n,this.minScale)}},s=c,u=n("6e77"),f=n("0f53"),l=Object.assign(a,i),h=Object.assign(s,i),p={beforeCreate:function(){this.mousedown$=Object(u["a"])(window,"mousedown"),this.mousemove$=Object(u["a"])(window,"mousemove"),this.mouseup$=Object(u["a"])(window,"mouseup"),this.touchstart$=Object(u["a"])(window,"touchstart",{passive:!1}),this.touchmove$=Object(u["a"])(window,"touchmove",{passive:!1}),this.touchend$=Object(u["a"])(window,"touchend",{passive:!1})}},d={beforeCreate:function(){this.wheel$=Object(u["a"])(window,"wheel",{passive:!1})}},b={methods:{clip:function(t){var e=this.getDrawPos(t),n=this.canvasEl.getContext("2d"),r=e.pos.swidth,i=e.pos.sheight;if(this.canvasEl.width=r,this.canvasEl.height=i,n.fillStyle=this.bgColor,n.fillRect(0,0,r,i),n.translate(e.translate.rotateX,e.translate.rotateY),n.rotate(this.rotate*Math.PI/180),n.translate(e.translate.drawX-e.translate.rotateX,e.translate.drawY-e.translate.rotateY),n.drawImage(this.imgEl,0,0),t){var o=document.createElement("CANVAS");return o.width=e.pos.dwidth,o.height=e.pos.dheight,o.getContext("2d").drawImage(this.canvasEl,0,0,e.pos.dwidth,e.pos.dheight),o}return this.canvasEl},callPreview:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=f["a"].parentPropName;if(this.preview&&this.$parent[i]){var o=this.$parent[i][this.preview];o&&o.forEach((function(e){e[t].apply(e,n)}))}},emit:function(t,e){this.$emit(t,e)}}}},c04e:function(t,e,n){var r=n("861d");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")}},c430:function(t,e){t.exports=!1},c4cc:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("9ab4"),i=n("1453");function o(){}var a=n("d817");function c(t,e,n){return function(r){return r.lift(new s(t,e,n))}}var s=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.nextOrObserver,this.error,this.complete))},t}(),u=function(t){function e(e,n,r,i){var c=t.call(this,e)||this;return c._tapNext=o,c._tapError=o,c._tapComplete=o,c._tapError=r||o,c._tapComplete=i||o,Object(a["a"])(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||o,c._tapError=n.error||o,c._tapComplete=n.complete||o),c}return r["a"](e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(i["a"])},c539:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}()},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,c=i(t),s=0,u=[];for(n in c)!r(a,n)&&r(c,n)&&u.push(n);while(e.length>s)r(c,n=e[s++])&&(~o(u,n)||u.push(n));return u}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},cf86:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return u}));var r=n("9ab4"),i=n("1453"),o=n("e9b9"),a=n("1716"),c=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r["a"](e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i["a"]),s=(i["a"],function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r["a"](e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i["a"]));i["a"];function u(t,e){if(!e.closed)return t instanceof o["a"]?t.subscribe(e):Object(a["a"])(t)(e)}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d28b:function(t,e,n){var r=n("746f");r("iterator")},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d817:function(t,e,n){"use strict";function r(t){return"function"===typeof t}n.d(e,"a",(function(){return r}))},d9e3:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"===typeof t.length&&"function"!==typeof t}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},ddb0:function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),c=n("b622"),s=c("iterator"),u=c("toStringTag"),f=o.values;for(var l in i){var h=r[l],p=h&&h.prototype;if(p){if(p[s]!==f)try{a(p,s,f)}catch(b){p[s]=f}if(p[u]||a(p,u,l),i[l])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(b){p[d]=o[d]}}}},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},e01a:function(t,e,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("5135"),c=n("861d"),s=n("9bf2").f,u=n("e893"),f=o.Symbol;if(i&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};u(h,f);var p=h.prototype=f.prototype;p.constructor=h;var d=p.toString,b="Symbol(test)"==String(f("test")),g=/^Symbol\((.*)\)[^)]+$/;s(p,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=d.call(t);if(a(l,t))return"";var n=b?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},e163:function(t,e,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),c=o("IE_PROTO"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},e175:function(t,e,n){"use strict";var r=n("fff9"),i=n.n(r);i.a},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),c=n("7dd0"),s="Array Iterator",u=a.set,f=a.getterFor(s);t.exports=c(Array,"Array",(function(t,e){u(this,{type:s,target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e538:function(t,e,n){var r=n("b622");e.f=r},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,n){"use strict";var r,i,o,a,c=n("23e7"),s=n("c430"),u=n("da84"),f=n("d066"),l=n("fea9"),h=n("6eeb"),p=n("e2cc"),d=n("d44e"),b=n("2626"),g=n("861d"),m=n("1c0b"),v=n("19aa"),y=n("c6b6"),w=n("8925"),x=n("2266"),S=n("1c7e"),j=n("4840"),O=n("2cf4").set,E=n("b575"),P=n("cdf9"),_=n("44de"),C=n("f069"),T=n("e667"),$=n("69f3"),L=n("94ca"),I=n("b622"),R=n("2d00"),k=I("species"),D="Promise",A=$.get,N=$.set,F=$.getterFor(D),U=l,M=u.TypeError,Y=u.document,W=u.process,X=f("fetch"),H=C.f,B=H,G="process"==y(W),q=!!(Y&&Y.createEvent&&u.dispatchEvent),V="unhandledrejection",z="rejectionhandled",Z=0,J=1,K=2,Q=1,tt=2,et=L(D,(function(){var t=w(U)!==String(U);if(!t){if(66===R)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(s&&!U.prototype["finally"])return!0;if(R>=51&&/native code/.test(U))return!1;var e=U.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[k]=n,!(e.then((function(){}))instanceof n)})),nt=et||!S((function(t){U.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},it=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;E((function(){var i=e.value,o=e.state==J,a=0;while(r.length>a){var c,s,u,f=r[a++],l=o?f.ok:f.fail,h=f.resolve,p=f.reject,d=f.domain;try{l?(o||(e.rejection===tt&&st(t,e),e.rejection=Q),!0===l?c=i:(d&&d.enter(),c=l(i),d&&(d.exit(),u=!0)),c===f.promise?p(M("Promise-chain cycle")):(s=rt(c))?s.call(c,h,p):h(c)):p(i)}catch(b){d&&!u&&d.exit(),p(b)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&at(t,e)}))}},ot=function(t,e,n){var r,i;q?(r=Y.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},(i=u["on"+t])?i(r):t===V&&_("Unhandled promise rejection",n)},at=function(t,e){O.call(u,(function(){var n,r=e.value,i=ct(e);if(i&&(n=T((function(){G?W.emit("unhandledRejection",r,t):ot(V,t,r)})),e.rejection=G||ct(e)?tt:Q,n.error))throw n.value}))},ct=function(t){return t.rejection!==Q&&!t.parent},st=function(t,e){O.call(u,(function(){G?W.emit("rejectionHandled",t):ot(z,t,e.value)}))},ut=function(t,e,n,r){return function(i){t(e,n,i,r)}},ft=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=K,it(t,e,!0))},lt=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw M("Promise can't be resolved itself");var i=rt(n);i?E((function(){var r={done:!1};try{i.call(n,ut(lt,t,r,e),ut(ft,t,r,e))}catch(o){ft(t,r,o,e)}})):(e.value=n,e.state=J,it(t,e,!1))}catch(o){ft(t,{done:!1},o,e)}}};et&&(U=function(t){v(this,U,D),m(t),r.call(this);var e=A(this);try{t(ut(lt,this,e),ut(ft,this,e))}catch(n){ft(this,e,n)}},r=function(t){N(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},r.prototype=p(U.prototype,{then:function(t,e){var n=F(this),r=H(j(this,U));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=G?W.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Z&&it(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=A(t);this.promise=t,this.resolve=ut(lt,t,e),this.reject=ut(ft,t,e)},C.f=H=function(t){return t===U||t===o?new i(t):B(t)},s||"function"!=typeof l||(a=l.prototype.then,h(l.prototype,"then",(function(t,e){var n=this;return new U((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof X&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return P(U,X.apply(u,arguments))}}))),c({global:!0,wrap:!0,forced:et},{Promise:U}),d(U,D,!1,!0),b(D),o=f(D),c({target:D,stat:!0,forced:et},{reject:function(t){var e=H(this);return e.reject.call(void 0,t),e.promise}}),c({target:D,stat:!0,forced:s||et},{resolve:function(t){return P(s&&this===o?U:this,t)}}),c({target:D,stat:!0,forced:nt},{all:function(t){var e=this,n=H(e),r=n.resolve,i=n.reject,o=T((function(){var n=m(e.resolve),o=[],a=0,c=1;x(t,(function(t){var s=a++,u=!1;o.push(void 0),c++,n.call(e,t).then((function(t){u||(u=!0,o[s]=t,--c||r(o))}),i)})),--c||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=H(e),r=n.reject,i=T((function(){var i=m(e.resolve);x(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),c=a.f,s=o.f,u=0;u<n.length;u++){var f=n[u];r(t,f)||c(t,f,s(e,f))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},e9a8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("88bc"),i=n("0ca4"),o={closed:!0,next:function(t){},error:function(t){if(r["a"].useDeprecatedSynchronousErrorHandling)throw t;Object(i["a"])(t)},complete:function(){}}},e9b9:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("1453");function i(t){while(t){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r["a"]?i:null}return!0}var o=n("2ff5"),a=n("e9a8");function c(t,e,n){if(t){if(t instanceof r["a"])return t;if(t[o["a"]])return t[o["a"]]()}return t||e||n?new r["a"](t,e,n):new r["a"](a["a"])}var s=n("c539"),u=n("9828");function f(t){return 0===t.length?u["a"]:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var l=n("88bc"),h=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=c(t,e,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||l["a"].useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),l["a"].useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l["a"].useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),i(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return e=p(e),new e((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[s["a"]]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:f(t)(this)},t.prototype.toPromise=function(t){var e=this;return t=p(t),new t((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function p(t){if(t||(t=l["a"].Promise||Promise),!t)throw new Error("no Promise impl found");return t}},ebb6:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("1453");function o(t,e){return function(n){if("function"!==typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.thisArg))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r["a"](e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(i["a"])},f04f:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"js-clipper-fixed"},[n("div",{staticClass:"vuejs-clipper-fixed__wrap js-wrap",style:t.wrapStyle},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-outer",attrs:{width:t.stemArea.width,height:t.stemArea.height}}),n("div",{staticClass:"vuejs-clipper-fixed__img-center"},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-bg js-stem-bg"}),n("div",{staticClass:"vuejs-clipper-fixed__img-scale js-img-scale",style:t.scaleStyle},[n("div",{staticClass:"vuejs-clipper-fixed__img-translate js-img-translate",style:t.translateStyle},[n("img",{staticClass:"vuejs-clipper-fixed__img js-img",style:t.bgStyle,attrs:{src:t.src,crossorigin:t.crossOrigin},on:{load:function(e){t.imgLoaded(),t.emit("load",e)},error:function(e){return t.emit("error",e)}}})])])]),n("div",{staticClass:"vuejs-clipper-fixed__cover"},[n("div",{staticClass:"vuejs-clipper-fixed__area js-area",style:t.areaStyle},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-area",style:t.stemStyle,attrs:{width:t.stemArea.width,height:t.stemArea.height}}),t.grid?n("div",{staticClass:"vuejs-clipper-fixed__grid"},t._l(4,(function(t){return n("div",{key:"gridItem"+t,staticClass:"vuejs-clipper-fixed__grid-item"})})),0):t._e()])])]),n("div",{staticClass:"vuejs-clipper-fixed__placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("99af"),n("a9e3"),n("bc00")),a=n("5670"),c=n("c4cc"),s=n("ebb6"),u=n("3e18"),f=n("9f2d"),l=n("a744"),h=n("4d82"),p=n("2bd2"),d=n("a748"),b={extends:{methods:o["b"],mixins:[o["d"],o["e"],o["c"]]},subscriptions:function(){var t=this;return this.setWH$=new p["a"],this.setTL$=new p["a"],this.change$=new p["a"],this.mousedownDrag$=this.mousedown$.pipe(Object(a["a"])(this.isDragElement),Object(c["a"])(this.prevent),Object(s["a"])(this.dragDownPos),Object(u["a"])((function(){return t.mousemove$.pipe(Object(c["a"])(t.prevent),Object(f["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchdownDrag$=this.touchstart$.pipe(Object(a["a"])(this.isDragElement),Object(c["a"])(this.prevent),Object(a["a"])((function(t){return 1===t.touches.length})),Object(s["a"])((function(t){return t.touches[0]})),Object(s["a"])(this.dragDownPos),Object(u["a"])((function(){return t.touchmove$.pipe(Object(f["a"])(t.touchend$),Object(a["a"])((function(t){return 1===t.touches.length})))}),(function(t,e){return{down:t,move:e.touches[0]}}))),this.wheelEvent$=this.wheel$.pipe(Object(a["a"])(this.isDragElement),Object(c["a"])(this.prevent),Object(s["a"])((function(t){return t.deltaY})),Object(s["a"])((function(t){return t>=0?-1:1}))),this.touchTwoFinger$=this.touchstart$.pipe(Object(a["a"])(this.isDragElement),Object(a["a"])((function(t){return 2===t.touches.length})),Object(c["a"])(this.prevent),Object(s["a"])(this.towPointsTouches),Object(s["a"])(this.setOrigin),Object(u["a"])((function(){return t.touchmove$.pipe(Object(f["a"])(t.touchend$),Object(a["a"])((function(t){return 2===t.touches.length})),Object(s["a"])(t.towPointsTouches))}),(function(t,e){var n=t.down,r=t.origin;return{down:n,move:e,origin:r}})),Object(s["a"])(this.twoPointsDelta)),this.wheelZoom$=(new p["a"]).pipe(Object(l["a"])(1),Object(h["a"])(this.wheelEvent$),Object(s["a"])(this.calcWheelScaling)),this.touchZoom$=(new p["a"]).pipe(Object(l["a"])(1),Object(h["a"])(this.touchTwoFinger$),Object(s["a"])(this.calcTouchScaling)),this.zoomFromNativeEvents=Object(d["a"])(this.wheelZoom$,this.touchZoom$).pipe(Object(s["a"])(this.handleZoomEvent)),this.zoomSubject$=(new p["a"]).pipe(Object(h["a"])(this.setWH$),Object(h["a"])(this.zoomFromNativeEvents)),this.dragSubject$=(new p["a"]).pipe(Object(l["a"])({left:0,top:0}),Object(h["a"])(this.setTL$),Object(h["a"])(this.mousedownDrag$.pipe(Object(h["a"])(this.touchdownDrag$),Object(s["a"])(this.delta),Object(s["a"])(this.toPercentage)))),this.onChange$=(new p["a"]).pipe(Object(h["a"])(this.zoomSubject$),Object(h["a"])(this.dragSubject$),Object(h["a"])(this.change$)),{bgWH$:this.zoomSubject$,bgTL$:this.dragSubject$}},props:{src:{type:String,default:""},rotate:{type:Number,default:0},ratio:{type:Number,default:1},zoomRate:{type:Number,default:.04},minScale:{type:Number,default:.1},bgColor:{type:String,default:"white"},border:{type:Number,default:1},borderColor:{type:String,default:"white"},grid:{type:Boolean,default:!0},shadow:{type:String,default:"rgba(0, 0, 0, 0.4)"},round:{type:Boolean,default:!1},preview:{type:String,default:""},crossOrigin:{type:String,default:void 0},area:{type:Number,default:50},handleZoomEvent:{type:Function,default:function(t){return t}}},data:function(){return{imgRatio:NaN}},computed:{areaStyle:function(){var t={color:this.shadow,"border-width":"".concat(this.border,"px !important"),"border-color":"".concat(this.borderColor," !important"),"box-shadow":"0 0 0 ".concat(this._shadow," !important"),"border-radius":"".concat(this.round?"50%":""," !important")};return this.ratio>=1?t.width="".concat(this.area,"% !important"):t.height="".concat(this.area,"% !important"),t},scaleStyle:function(){var t=this.bgWH$;return{transform:"scale(".concat(t,") !important")}},translateStyle:function(){var t=this.bgTL$.left,e=this.bgTL$.top;return{transform:"translate(".concat(t,"%,").concat(e,"%) !important")}},bgStyle:function(){return{transform:"rotate(".concat(this.rotate,"deg) !important")}},wrapStyle:function(){return{"background-color":"".concat(this.bgColor," !important"),display:"".concat(this.src?"block":"none"," !important")}},stemArea:function(){return{width:100,height:100/this.ratio}},eptStyle:function(){return{display:"".concat(this.src?"none":"block"," !important")}},stemStyle:function(){var t={};return this.ratio>=1?t.width="100% !important":t.height="100% !important",t},_shadow:function(){return"".concat(this.imgRatio>=1?100:100/this.imgRatio,"vw")}},watch:{ratio:function(){this.resetData(),this.change$.next(0)},bgColor:function(){this.callPreview("setData",{bgColor:this.bgColor})},bgStyle:function(){this.change$.next(0)}},mounted:function(){var t=this;this.imgEl=this.$el.querySelector(".js-clipper-fixed .js-img"),this.wrapEl=this.$el.querySelector(".js-clipper-fixed .js-wrap"),this.areaEl=this.$el.querySelector(".js-clipper-fixed .js-area"),this.scaleEl=this.$el.querySelector(".js-clipper-fixed .js-img-scale"),this.translateEl=this.$el.querySelector(".js-clipper-fixed .js-img-translate"),this.stemEl=this.$el.querySelector(".js-clipper-fixed .js-stem-bg"),this.canvasEl=document.createElement("CANVAS"),this.$subscribeTo(this.onChange$,(function(){t.$nextTick((function(){var e=t.getDrawPos().pos,n=t.rotate;t.invalidDrawPos(e)||t.callPreview("locateImage",e,n)}))}))},methods:{imgLoaded:function(){this.imgRatio=this.imgEl.naturalWidth/this.imgEl.naturalHeight,this.stemEl.width=this.imgEl.naturalWidth,this.stemEl.height=this.imgEl.naturalHeight,this.resetData(),this.callPreview("setData",{src:this.src,bgColor:this.bgColor})},resetData:function(){this.setTL$.next({left:0,top:0});var t=this.ratio>this.imgRatio?this.imgRatio/this.ratio:1;this.setWH$.next(Math.max(t,this.minScale))}}},g=b,m=(n("1033"),n("2877")),v=Object(m["a"])(g,r,i,!1,null,"ada97070",null);e["a"]=v.exports},f069:function(t,e,n){"use strict";var r=n("1c0b"),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},f5df:function(t,e,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),c="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),a))?n:c?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fad2:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"clipperBasic",(function(){return a["a"]})),n.d(e,"clipperFixed",(function(){return a["b"]})),n.d(e,"clipperPreview",(function(){return a["c"]})),n.d(e,"clipperRange",(function(){return a["d"]})),n.d(e,"clipperUpload",(function(){return a["e"]})),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=n("6888");e["default"]=a["f"]},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fd66:function(t,e,n){"use strict";function r(t){return!!t&&"function"!==typeof t.subscribe&&"function"===typeof t.then}n.d(e,"a",(function(){return r}))},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise},fff9:function(t,e,n){}})})); +var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},"9bdd":function(t,e,n){var r=n("825a");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&r(o.call(t)),a}}},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9e46":function(t,e,n){"use strict";function r(t){return t&&"function"===typeof t.schedule}n.d(e,"a",(function(){return r}))},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),c=n("3f8c"),s=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,u,!1,!0),c[u]=s,t}},"9f2d":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("cf86");function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new c(t),r=Object(i["c"])(this.notifier,new i["a"](n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),c=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r["a"](e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i["b"])},a4d3:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),c=n("83ab"),s=n("4930"),u=n("fdbf"),f=n("d039"),l=n("5135"),h=n("e8b5"),p=n("861d"),d=n("825a"),b=n("7b0b"),m=n("fc6a"),g=n("c04e"),v=n("5c6c"),y=n("7c73"),w=n("df75"),x=n("241c"),S=n("057f"),j=n("7418"),O=n("06cf"),E=n("9bf2"),P=n("d1e7"),_=n("9112"),C=n("6eeb"),T=n("5692"),$=n("f772"),L=n("d012"),I=n("90e3"),R=n("b622"),k=n("e538"),D=n("746f"),A=n("d44e"),N=n("69f3"),F=n("b727").forEach,U=$("hidden"),M="Symbol",Y="prototype",W=R("toPrimitive"),X=N.set,H=N.getterFor(M),B=Object[Y],G=i.Symbol,q=o("JSON","stringify"),V=O.f,z=E.f,Z=S.f,J=P.f,K=T("symbols"),Q=T("op-symbols"),tt=T("string-to-symbol-registry"),et=T("symbol-to-string-registry"),nt=T("wks"),rt=i.QObject,it=!rt||!rt[Y]||!rt[Y].findChild,ot=c&&f((function(){return 7!=y(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=V(B,e);r&&delete B[e],z(t,e,n),r&&t!==B&&z(B,e,r)}:z,at=function(t,e){var n=K[t]=y(G[Y]);return X(n,{type:M,tag:t,description:e}),c||(n.description=e),n},ct=u?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof G},st=function(t,e,n){t===B&&st(Q,e,n),d(t);var r=g(e,!0);return d(n),l(K,r)?(n.enumerable?(l(t,U)&&t[U][r]&&(t[U][r]=!1),n=y(n,{enumerable:v(0,!1)})):(l(t,U)||z(t,U,v(1,{})),t[U][r]=!0),ot(t,r,n)):z(t,r,n)},ut=function(t,e){d(t);var n=m(e),r=w(n).concat(dt(n));return F(r,(function(e){c&&!lt.call(n,e)||st(t,e,n[e])})),t},ft=function(t,e){return void 0===e?y(t):ut(y(t),e)},lt=function(t){var e=g(t,!0),n=J.call(this,e);return!(this===B&&l(K,e)&&!l(Q,e))&&(!(n||!l(this,e)||!l(K,e)||l(this,U)&&this[U][e])||n)},ht=function(t,e){var n=m(t),r=g(e,!0);if(n!==B||!l(K,r)||l(Q,r)){var i=V(n,r);return!i||!l(K,r)||l(n,U)&&n[U][r]||(i.enumerable=!0),i}},pt=function(t){var e=Z(m(t)),n=[];return F(e,(function(t){l(K,t)||l(L,t)||n.push(t)})),n},dt=function(t){var e=t===B,n=Z(e?Q:m(t)),r=[];return F(n,(function(t){!l(K,t)||e&&!l(B,t)||r.push(K[t])})),r};if(s||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=I(t),n=function(t){this===B&&n.call(Q,t),l(this,U)&&l(this[U],e)&&(this[U][e]=!1),ot(this,e,v(1,t))};return c&&it&&ot(B,e,{configurable:!0,set:n}),at(e,t)},C(G[Y],"toString",(function(){return H(this).tag})),C(G,"withoutSetter",(function(t){return at(I(t),t)})),P.f=lt,E.f=st,O.f=ht,x.f=S.f=pt,j.f=dt,k.f=function(t){return at(R(t),t)},c&&(z(G[Y],"description",{configurable:!0,get:function(){return H(this).description}}),a||C(B,"propertyIsEnumerable",lt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:G}),F(w(nt),(function(t){D(t)})),r({target:M,stat:!0,forced:!s},{for:function(t){var e=String(t);if(l(tt,e))return tt[e];var n=G(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!ct(t))throw TypeError(t+" is not a symbol");if(l(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!c},{create:ft,defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:ht}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:pt,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:f((function(){j.f(1)}))},{getOwnPropertySymbols:function(t){return j.f(b(t))}}),q){var bt=!s||f((function(){var t=G();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}));r({target:"JSON",stat:!0,forced:bt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!ct(t))return h(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ct(e))return e}),i[1]=e,q.apply(null,i)}})}G[Y][W]||_(G[Y],W,G[Y].valueOf),A(G,M),L[U]=!0},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a6c5:function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var r=n("9ab4"),i=n("ebb6"),o=n("e9b9"),a=n("1716"),c=n("a6e8"),s=n("c539");function u(t,e){return new o["a"]((function(n){var r=new c["a"];return r.add(e.schedule((function(){var i=t[s["a"]]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}function f(t,e){return new o["a"]((function(n){var r=new c["a"];return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}var l=n("245f"),h=n("127f");function p(t,e){if(!t)throw new Error("Iterable cannot be null");return new o["a"]((function(n){var r,i=new c["a"];return i.add((function(){r&&"function"===typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[h["a"]](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}function d(t){return t&&"function"===typeof t[s["a"]]}var b=n("fd66"),m=n("d9e3");function g(t){return t&&"function"===typeof t[h["a"]]}function v(t,e){if(null!=t){if(d(t))return u(t,e);if(Object(b["a"])(t))return f(t,e);if(Object(m["a"])(t))return Object(l["a"])(t,e);if(g(t)||"string"===typeof t)return p(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function y(t,e){return e?v(t,e):t instanceof o["a"]?t:new o["a"](Object(a["a"])(t))}var w=n("cf86");function x(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"===typeof e?function(r){return r.pipe(x((function(n,r){return y(t(n,r)).pipe(Object(i["a"])((function(t,i){return e(n,t,r,i)})))}),n))}:("number"===typeof e&&(n=e),function(e){return e.lift(new S(t,n))})}var S=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new j(t,this.project,this.concurrent))},t}(),j=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r["a"](e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new w["a"](this),n=this.destination;n.add(e);var r=Object(w["c"])(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(w["b"])},a6e8:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("8ac6"),i=n("31c4"),o=n("d817"),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),c=a,s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,a=n._parentOrParents,s=n._ctorUnsubscribe,f=n._unsubscribe,l=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof t)a.remove(this);else if(null!==a)for(var h=0;h<a.length;++h){var p=a[h];p.remove(this)}if(Object(o["a"])(f)){s&&(this._unsubscribe=void 0);try{f.call(this)}catch(m){e=m instanceof c?u(m.errors):[m]}}if(Object(r["a"])(l)){h=-1;var d=l.length;while(++h<d){var b=l[h];if(Object(i["a"])(b))try{b.unsubscribe()}catch(m){e=e||[],m instanceof c?e=e.concat(u(m.errors)):e.push(m)}}}if(e)throw new c(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!==typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function u(t){return t.reduce((function(t,e){return t.concat(e instanceof c?e.errors:e)}),[])}},a744:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("9e46"),i=n("2144"),o=n("245f");function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r["a"])(n)?(t.pop(),Object(o["a"])(t,n)):Object(i["a"])(t)}var c=n("667f");function s(){return Object(c["a"])(1)}function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s()(a.apply(void 0,t))}function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r["a"])(n)?(t.pop(),function(e){return u(t,e,n)}):function(e){return u(t,e)}}},a748:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("e9b9"),i=n("9e46"),o=n("667f"),a=n("2144");function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,c=null,s=t[t.length-1];return Object(i["a"])(s)?(c=t.pop(),t.length>1&&"number"===typeof t[t.length-1]&&(n=t.pop())):"number"===typeof s&&(n=t.pop()),null===c&&1===t.length&&t[0]instanceof r["a"]?t[0]:Object(o["a"])(n)(Object(a["a"])(t,c))}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("6eeb"),c=n("5135"),s=n("c6b6"),u=n("7156"),f=n("c04e"),l=n("d039"),h=n("7c73"),p=n("241c").f,d=n("06cf").f,b=n("9bf2").f,m=n("58a8").trim,g="Number",v=i[g],y=v.prototype,w=s(h(y))==g,x=function(t){var e,n,r,i,o,a,c,s,u=f(t,!1);if("string"==typeof u&&u.length>2)if(u=m(u),e=u.charCodeAt(0),43===e||45===e){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=u.slice(2),a=o.length,c=0;c<a;c++)if(s=o.charCodeAt(c),s<48||s>i)return NaN;return parseInt(o,r)}return+u};if(o(g,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var S,j=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof j&&(w?l((function(){y.valueOf.call(n)})):s(n)!=g)?u(new v(x(e)),n,j):x(e)},O=r?p(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;O.length>E;E++)c(v,S=O[E])&&!c(j,S)&&b(j,S,d(v,S));j.prototype=y,y.constructor=j,a(i,g,j)}},ab13:function(t,e,n){var r=n("b622"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},ae40:function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("5135"),a=Object.defineProperty,c={},s=function(t){throw t};t.exports=function(t,e){if(o(c,t))return c[t];e||(e={});var n=[][t],u=!!o(e,"ACCESSORS")&&e.ACCESSORS,f=o(e,0)?e[0]:s,l=o(e,1)?e[1]:void 0;return c[t]=!!n&&!i((function(){if(u&&!r)return!0;var t={length:-1};u?a(t,1,{enumerable:!0,get:s}):t[1]=1,n.call(t,f,l)}))}},ae93:function(t,e,n){"use strict";var r,i,o,a=n("e163"),c=n("9112"),s=n("5135"),u=n("b622"),f=n("c430"),l=u("iterator"),h=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):h=!0),void 0==r&&(r={}),f||s(r,l)||c(r,l,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(t,e,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,c=/^\s*function ([^ (]*)/,s="name";r&&!(s in o)&&i(o,s,{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(t){return""}}})},b575:function(t,e,n){var r,i,o,a,c,s,u,f,l=n("da84"),h=n("06cf").f,p=n("c6b6"),d=n("2cf4").set,b=n("1cdc"),m=l.MutationObserver||l.WebKitMutationObserver,g=l.process,v=l.Promise,y="process"==p(g),w=h(l,"queueMicrotask"),x=w&&w.value;x||(r=function(){var t,e;y&&(t=g.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},y?a=function(){g.nextTick(r)}:m&&!b?(c=!0,s=document.createTextNode(""),new m(r).observe(s,{characterData:!0}),a=function(){s.data=c=!c}):v&&v.resolve?(u=v.resolve(void 0),f=u.then,a=function(){f.call(u,r)}):a=function(){d.call(l,r)}),t.exports=x||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),c=n("4930"),s=n("fdbf"),u=i("wks"),f=r.Symbol,l=s?f:f&&f.withoutSetter||a;t.exports=function(t){return o(u,t)||(c&&o(f,t)?u[t]=f[t]:u[t]=l("Symbol."+t)),u[t]}},b727:function(t,e,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),c=n("65f0"),s=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,f=4==t,l=6==t,h=5==t||l;return function(p,d,b,m){for(var g,v,y=o(p),w=i(y),x=r(d,b,3),S=a(w.length),j=0,O=m||c,E=e?O(p,S):n?O(p,0):void 0;S>j;j++)if((h||j in w)&&(g=w[j],v=x(g,j,y),t))if(e)E[j]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return j;case 2:s.call(E,g)}else if(f)return!1;return l?-1:u||f?f:E}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},bc00:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return d})),n.d(e,"c",(function(){return b}));n("4160"),n("cca6"),n("159b");var r={prevent:function(t){t.preventDefault()},eTo:function(t,e,n){var r=this[n+"Pos"](),i=0;switch(e){case"top":i=t.clientY-r.top;break;case"left":i=t.clientX-r.left;break;case"right":i=r.right-t.clientX;break;case"bottom":i=r.bottom-t.clientY;break}return i},toPercentage:function(t){var e={},n={left:"toX",right:"toX",top:"toY",bottom:"toY",width:"toX",height:"toY"};for(var r in t){var i=n[r];i&&void 0!==t[r]&&(e[r]=this[i](t[r]))}return e},invalidDrawPos:function(t){return 0===t.swidth||0===t.sheight}},i=r,o=(n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0"),n("96cf"),{eToArea:function(t,e){return this.eTo(t,e,"area")},areaPos:function(){var t=this.areaEl.getBoundingClientRect();return t},zoomPos:function(){var t=this.zoomEl.getBoundingClientRect();return t},scalePos:function(){return this.scaleEl.getBoundingClientRect()},imgPos:function(){return this.imgEl.getBoundingClientRect()},eInZoom:function(t){var e=this.zoomEl.getBoundingClientRect();return{width:e.width,height:e.height,left:t.clientX-e.left,top:t.clientY-e.top}},zoomInArea:function(){var t=this.areaEl.getBoundingClientRect(),e=this.zoomEl.getBoundingClientRect();return Object.assign(e,{offsetLeft:e.left-t.left,offsetTop:e.top-t.top,maxLeft:t.width-e.width,maxTop:t.height-e.height})},toX:function(t){var e=this.areaPos();return Math.min(Math.max(t/e.width*100,0),100)},toY:function(t){var e=this.areaPos();return Math.min(Math.max(t/e.height*100,0),100)},isDragElement:function(t){return t.target===this.dragEl},dragMoving:function(t){var e=t.down,n=t.move,r=this.toX(this.eToArea(n,"left")-e.left),i=this.toY(this.eToArea(n,"top")-e.top);return{left:r,top:i,down:e,move:n}},repositionDrag:function(t){var e=t.left,n=t.top,r=t.down,i=t.move,o=this.zoomInArea(),a=this.toX(o.maxLeft),c=this.toY(o.maxTop);if(e=Math.min(e,a),n=Math.min(n,c),e===a||0===e){var s=this.eInZoom(i);r.left=Math.max(Math.min(s.left,s.width),0)}if(n===c||0===n){var u=this.eInZoom(i);r.top=Math.max(Math.min(u.top,u.height),0)}return{left:e,top:n}},ratioPos:function(t){var e=this.zoomPos(),n=t.width-e.width,r=t.height-e.height,i=n>r;return{x:i,y:!i}},zoomingPosition:function(t){var e,n,r,i,o,a,c=this,s=t.down,u=t.move,f=u.clientX>s.clientX?"r":"l",l=u.clientY>s.clientY?"b":"t",h=function(){return c.eToArea(s,"top")},p=function(){return c.eToArea(s,"left")},d=h(),b=p(),m=this.areaPos(),g=0,v=0,y=this.minWidth*m.width/100,w=this.ratio?y/this.ratio:this.minHeight*m.height/100;return"r"===f?(b+y>m.width?(s.clientX=m.right-y,e=b):e=p(),o=m.width-e,g=u.clientX-s.clientX):"l"===f&&(b<y&&(s.clientX=m.left+y),r=m.right-s.clientX,o=m.width-r,g=s.clientX-u.clientX),"b"===l?(d+w>m.height?(s.clientY=m.bottom-w,n=d):n=h(),a=m.height-n,v=u.clientY-s.clientY):"t"===l&&(d<w&&(s.clientY=m.top+w),i=m.bottom-s.clientY,a=m.height-i,v=s.clientY-u.clientY),g=Math.max(Math.min(g,o),y),v=Math.max(Math.min(v,a),w),{width:g,height:v,top:n,left:e,right:r,bottom:i,maxWidth:o,maxHeight:a}},setRatioWH:function(t){var e=t.width,n=t.height,r=t.maxWidth,i=t.maxHeight,o=t.left,a=t.top,c=t.right,s=t.bottom;if(!this.ratio)return{width:e,height:n,left:o,top:a,right:c,bottom:s};var u=this.ratioPos({width:e,height:n});return u.x?(n=Math.min(e/this.ratio,i),e=n===i?n*this.ratio:e):(e=Math.min(n*this.ratio,r),n=e===r?e/this.ratio:n),{width:e,height:n,left:o,top:a,right:c,bottom:s}},initWHTL:function(){var t=this,e=this.initWidth,n=this.initHeight,r=(100-this.initWidth)/2,i=(100-this.initHeight)/2,o=this.areaPos(),a={width:e*o.width/100,height:n*o.height/100,border:2*this.border};if(this.ratio){if(this.ratio){var c=this.wrapRatio||this.imgRatio,s=function(){var e=(a.width-a.border)/t.ratio+a.border,r=e/o.height*100;n=Math.max(r,t.minHeight),i=(100-n)/2},u=function(){var n=(a.height-a.border)*t.ratio+a.border,i=n/o.width*100;e=Math.max(i,t.minWidth),r=(100-e)/2};if(c<=this.ratio){if(s(),this.minHeight===n&&u(),e>100)throw new Error("Invalid ratio, wrapRatio, minWidth combination")}else if(u(),this.minWidth===e&&s(),n>100)throw new Error("Invalid ratio, wrapRatio, minWidth combination")}}else{if(e<this.minWidth)throw new Error("Invalid initWidth, minWidth combination");if(n<this.minHeight)throw new Error("Invalid initHeight, minHeight combination")}return this.setTL$.next({left:r,top:i}),{width:e,height:n}},splitPos:function(t){var e=t.top,n=t.left,r=t.right,i=t.bottom,o=t.width,a=t.height,c=t.maxWidth,s=t.maxHeight;return{tl:{left:n,top:e,right:r,bottom:i},wh:{width:o,height:a,maxWidth:c,maxHeight:s}}},isZoomElement:function(t){return this.zoomEl.contains(t.target)&&t.target!==this.dragEl},judgeArea:function(t){var e=this.zoomPos(),n=e.left+e.width/2,r=e.top+e.height/2,i=t.clientX,o=t.clientY;return{l:i<n,r:i>n,t:o<r,b:o>r}},setDownPosition:function(t){var e=this.judgeArea(t),n=this.zoomPos(),r=e.t?n.bottom:n.top,i=e.l?n.right:n.left;return{target:null,clientX:i,clientY:r}},isTwoPointZoomElement:function(t){return this.areaEl.contains(t.touches[0].target)&&this.areaEl.contains(t.touches[1].target)},getTwoTouchesPos:function(t,e,n){var r=this.areaPos(),i=e.touches[0].clientX<e.touches[1].clientX,o=e.touches[0].clientY<e.touches[1].clientY,a=t.touches[0].clientX<t.touches[1].clientX,c=t.touches[0].clientY<t.touches[1].clientY,s={left:i?0:1,right:i?1:0,top:o?0:1,bottom:o?1:0},u={left:a?0:1,right:a?1:0,top:c?0:1,bottom:c?1:0},f=t.touches[u.left].clientX-e.touches[s.left].clientX,l=t.touches[u.top].clientY-e.touches[s.top].clientY,h=this.minWidth*r.width/100,p=this.ratio?h/this.ratio:this.minHeight*r.height/100,d=Math.min(n.left-r.left-f,r.width-h),b=Math.min(n.top-r.top-l,r.height-p),m=r.width-d,g=r.height-b,v=t.touches[u.right].clientX-n.right,y=t.touches[u.bottom].clientY-n.bottom,w=Math.max(Math.min(e.touches[s.right].clientX-r.left-d-v,m),h),x=Math.max(Math.min(e.touches[s.bottom].clientY-b-r.top-y,g),p);return{width:w,height:x,top:b,left:d,maxWidth:m,maxHeight:g}},isCreateElement:function(t){return t.target===this.areaEl||t.target===this.imgEl},getFakeDown:function(t){return{target:t.target,clientX:t.clientX,clientY:t.clientY}},reverseDownPos:function(t){var e=t.down,n=t.move;if("normal"===this.mode)return{down:e,move:n};if(null!==e.target&&e.target===this.areaEl)return e.target=null,{down:e,move:n};var r=this.judgeArea(e),i=this.zoomPos();return r.l&&n.clientX<=e.clientX?e.clientX=i.right:r.r&&n.clientX>=e.clientX&&(e.clientX=i.left),r.t&&n.clientY<=e.clientY?e.clientY=i.bottom:r.b&&n.clientY>=e.clientY&&(e.clientY=i.top),{down:e,move:n}},getImgNonRotatePos:function(){var t,e,n=this.scalePos(),r=n.left+n.width/2,i=n.top+n.height/2;return this.isVertical?(e=n.height,t=e*this.imgRatio):(t=n.width,e=t/this.imgRatio),{left:r-t/2,right:r+t/2,top:i-e/2,bottom:i+e/2,width:t,height:e}},getDrawPos:function(t){var e=t||{},n=e.wPixel,r=e.maxWPixel,i=this.zoomPos(),o=this.getImgNonRotatePos(),a=this.imgEl.naturalWidth,c=o.width,s=i.left-o.left+this.border,u=i.top-o.top+this.border,f=i.width-2*this.border,l=i.height-2*this.border,h=a/c,p=r?Math.min(n||f*h,r):n||f*h,d={rotateX:(o.left+o.width/2-(i.left+this.border))*h,rotateY:(o.top+o.height/2-(i.top+this.border))*h,drawX:(o.left-(i.left+this.border))*h,drawY:(o.top-(i.top+this.border))*h},b={sx:s*h,sy:u*h,swidth:f*h,sheight:l*h,dx:0,dy:0,dwidth:p,dheight:p*l/f};return b[Symbol.iterator]=regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=regeneratorRuntime.keys(b);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,b[e];case 5:t.next=1;break;case 7:case"end":return t.stop()}}),t)})),{pos:b,translate:d}}}),a=o,c={wrapPos:function(){return this.wrapEl.getBoundingClientRect()},scalePos:function(){return this.scaleEl.getBoundingClientRect()},translatePos:function(){return this.translateEl.getBoundingClientRect()},toX:function(t){var e=this.scalePos();return t/e.width*100},toY:function(t){var e=this.scalePos();return t/e.height*100},isDragElement:function(t){return this.wrapEl.contains(t.target)},dragDownPos:function(t){var e=this.translatePos(),n=this.scalePos(),r={left:e.left-n.left,top:e.top-n.top,clientX:t.clientX,clientY:t.clientY};return r},delta:function(t){var e=t.down,n=t.move,r=n.clientX-e.clientX+e.left,i=n.clientY-e.clientY+e.top;return{left:r,top:i}},towPointsTouches:function(t){return t.touches},setOrigin:function(t){return{down:[t[0],t[1]],origin:this.scalePos().width}},twoPointsDelta:function(t){var e=t.down,n=t.move,r=Math.abs(n[0].clientX-n[1].clientX)-Math.abs(e[0].clientX-e[1].clientX),i=Math.abs(n[0].clientY-n[1].clientY)-Math.abs(e[0].clientY-e[1].clientY);e[0]=n[0],e[1]=n[1];var o=this.wrapPos();return Math.abs(r)>=Math.abs(i)?r/o.width:i/o.height},getDrawPos:function(t){var e=t||{},n=e.wPixel,r=e.maxWPixel,i=this.areaEl.getBoundingClientRect(),o=this.translatePos(),a=this.imgEl.naturalWidth,c=i.left-o.left+this.border,s=i.top-o.top+this.border,u=a/o.width,f={rotateX:(o.left+o.width/2-(i.left+this.border))*u,rotateY:(o.top+o.height/2-(i.top+this.border))*u,drawX:(o.left-(i.left+this.border))*u,drawY:(o.top-(i.top+this.border))*u},l=i.width-2*this.border,h=i.height-2*this.border,p=r?Math.min(n||l*u,r):n||l*u,d={sx:c*u,sy:s*u,swidth:l*u,sheight:h*u,dx:0,dy:0,dwidth:p,dheight:p*h/l};return d[Symbol.iterator]=regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=regeneratorRuntime.keys(d);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,d[e];case 5:t.next=1;break;case 7:case"end":return t.stop()}}),t)})),{pos:d,translate:f}},calcWheelScaling:function(t){var e=this.bgWH$,n=this.zoomRate*Math.max(e,.8)*t;return Math.max(e+n,this.minScale)},calcTouchScaling:function(t){var e=this.bgWH$,n=Math.max(e,.8)*t;return Math.max(e+n,this.minScale)}},s=c,u=n("6e77"),f=n("0f53"),l=Object.assign(a,i),h=Object.assign(s,i),p={beforeCreate:function(){this.mousedown$=Object(u["a"])(window,"mousedown"),this.mousemove$=Object(u["a"])(window,"mousemove"),this.mouseup$=Object(u["a"])(window,"mouseup"),this.touchstart$=Object(u["a"])(window,"touchstart",{passive:!1}),this.touchmove$=Object(u["a"])(window,"touchmove",{passive:!1}),this.touchend$=Object(u["a"])(window,"touchend",{passive:!1})}},d={beforeCreate:function(){this.wheel$=Object(u["a"])(window,"wheel",{passive:!1})}},b={methods:{clip:function(t){var e=this.getDrawPos(t),n=this.canvasEl.getContext("2d"),r=e.pos.swidth,i=e.pos.sheight;if(this.canvasEl.width=r,this.canvasEl.height=i,n.fillStyle=this.bgColor,n.fillRect(0,0,r,i),n.translate(e.translate.rotateX,e.translate.rotateY),n.rotate(this.rotate*Math.PI/180),n.translate(e.translate.drawX-e.translate.rotateX,e.translate.drawY-e.translate.rotateY),n.drawImage(this.imgEl,0,0),t){var o=document.createElement("CANVAS");return o.width=e.pos.dwidth,o.height=e.pos.dheight,o.getContext("2d").drawImage(this.canvasEl,0,0,e.pos.dwidth,e.pos.dheight),o}return this.canvasEl},callPreview:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=f["a"].parentPropName;if(this.preview&&this.$parent[i]){var o=this.$parent[i][this.preview];o&&o.forEach((function(e){e[t].apply(e,n)}))}},emit:function(t,e){this.$emit(t,e)}}}},c04e:function(t,e,n){var r=n("861d");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")}},c430:function(t,e){t.exports=!1},c4cc:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("9ab4"),i=n("1453");function o(){}var a=n("d817");function c(t,e,n){return function(r){return r.lift(new s(t,e,n))}}var s=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.nextOrObserver,this.error,this.complete))},t}(),u=function(t){function e(e,n,r,i){var c=t.call(this,e)||this;return c._tapNext=o,c._tapError=o,c._tapComplete=o,c._tapError=r||o,c._tapComplete=i||o,Object(a["a"])(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||o,c._tapError=n.error||o,c._tapComplete=n.complete||o),c}return r["a"](e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(i["a"])},c539:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}()},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,c=i(t),s=0,u=[];for(n in c)!r(a,n)&&r(c,n)&&u.push(n);while(e.length>s)r(c,n=e[s++])&&(~o(u,n)||u.push(n));return u}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},cf86:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return u}));var r=n("9ab4"),i=n("1453"),o=n("e9b9"),a=n("1716"),c=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r["a"](e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i["a"]),s=(i["a"],function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r["a"](e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i["a"]));i["a"];function u(t,e){if(!e.closed)return t instanceof o["a"]?t.subscribe(e):Object(a["a"])(t)(e)}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d28b:function(t,e,n){var r=n("746f");r("iterator")},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d817:function(t,e,n){"use strict";function r(t){return"function"===typeof t}n.d(e,"a",(function(){return r}))},d9e3:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"===typeof t.length&&"function"!==typeof t}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},ddb0:function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),c=n("b622"),s=c("iterator"),u=c("toStringTag"),f=o.values;for(var l in i){var h=r[l],p=h&&h.prototype;if(p){if(p[s]!==f)try{a(p,s,f)}catch(b){p[s]=f}if(p[u]||a(p,u,l),i[l])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(b){p[d]=o[d]}}}},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},e01a:function(t,e,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("5135"),c=n("861d"),s=n("9bf2").f,u=n("e893"),f=o.Symbol;if(i&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};u(h,f);var p=h.prototype=f.prototype;p.constructor=h;var d=p.toString,b="Symbol(test)"==String(f("test")),m=/^Symbol\((.*)\)[^)]+$/;s(p,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=d.call(t);if(a(l,t))return"";var n=b?e.slice(7,-1):e.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},e163:function(t,e,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),c=o("IE_PROTO"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},e175:function(t,e,n){"use strict";var r=n("fff9"),i=n.n(r);i.a},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),c=n("7dd0"),s="Array Iterator",u=a.set,f=a.getterFor(s);t.exports=c(Array,"Array",(function(t,e){u(this,{type:s,target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e538:function(t,e,n){var r=n("b622");e.f=r},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,n){"use strict";var r,i,o,a,c=n("23e7"),s=n("c430"),u=n("da84"),f=n("d066"),l=n("fea9"),h=n("6eeb"),p=n("e2cc"),d=n("d44e"),b=n("2626"),m=n("861d"),g=n("1c0b"),v=n("19aa"),y=n("c6b6"),w=n("8925"),x=n("2266"),S=n("1c7e"),j=n("4840"),O=n("2cf4").set,E=n("b575"),P=n("cdf9"),_=n("44de"),C=n("f069"),T=n("e667"),$=n("69f3"),L=n("94ca"),I=n("b622"),R=n("2d00"),k=I("species"),D="Promise",A=$.get,N=$.set,F=$.getterFor(D),U=l,M=u.TypeError,Y=u.document,W=u.process,X=f("fetch"),H=C.f,B=H,G="process"==y(W),q=!!(Y&&Y.createEvent&&u.dispatchEvent),V="unhandledrejection",z="rejectionhandled",Z=0,J=1,K=2,Q=1,tt=2,et=L(D,(function(){var t=w(U)!==String(U);if(!t){if(66===R)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(s&&!U.prototype["finally"])return!0;if(R>=51&&/native code/.test(U))return!1;var e=U.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[k]=n,!(e.then((function(){}))instanceof n)})),nt=et||!S((function(t){U.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},it=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;E((function(){var i=e.value,o=e.state==J,a=0;while(r.length>a){var c,s,u,f=r[a++],l=o?f.ok:f.fail,h=f.resolve,p=f.reject,d=f.domain;try{l?(o||(e.rejection===tt&&st(t,e),e.rejection=Q),!0===l?c=i:(d&&d.enter(),c=l(i),d&&(d.exit(),u=!0)),c===f.promise?p(M("Promise-chain cycle")):(s=rt(c))?s.call(c,h,p):h(c)):p(i)}catch(b){d&&!u&&d.exit(),p(b)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&at(t,e)}))}},ot=function(t,e,n){var r,i;q?(r=Y.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},(i=u["on"+t])?i(r):t===V&&_("Unhandled promise rejection",n)},at=function(t,e){O.call(u,(function(){var n,r=e.value,i=ct(e);if(i&&(n=T((function(){G?W.emit("unhandledRejection",r,t):ot(V,t,r)})),e.rejection=G||ct(e)?tt:Q,n.error))throw n.value}))},ct=function(t){return t.rejection!==Q&&!t.parent},st=function(t,e){O.call(u,(function(){G?W.emit("rejectionHandled",t):ot(z,t,e.value)}))},ut=function(t,e,n,r){return function(i){t(e,n,i,r)}},ft=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=K,it(t,e,!0))},lt=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw M("Promise can't be resolved itself");var i=rt(n);i?E((function(){var r={done:!1};try{i.call(n,ut(lt,t,r,e),ut(ft,t,r,e))}catch(o){ft(t,r,o,e)}})):(e.value=n,e.state=J,it(t,e,!1))}catch(o){ft(t,{done:!1},o,e)}}};et&&(U=function(t){v(this,U,D),g(t),r.call(this);var e=A(this);try{t(ut(lt,this,e),ut(ft,this,e))}catch(n){ft(this,e,n)}},r=function(t){N(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},r.prototype=p(U.prototype,{then:function(t,e){var n=F(this),r=H(j(this,U));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=G?W.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Z&&it(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=A(t);this.promise=t,this.resolve=ut(lt,t,e),this.reject=ut(ft,t,e)},C.f=H=function(t){return t===U||t===o?new i(t):B(t)},s||"function"!=typeof l||(a=l.prototype.then,h(l.prototype,"then",(function(t,e){var n=this;return new U((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof X&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return P(U,X.apply(u,arguments))}}))),c({global:!0,wrap:!0,forced:et},{Promise:U}),d(U,D,!1,!0),b(D),o=f(D),c({target:D,stat:!0,forced:et},{reject:function(t){var e=H(this);return e.reject.call(void 0,t),e.promise}}),c({target:D,stat:!0,forced:s||et},{resolve:function(t){return P(s&&this===o?U:this,t)}}),c({target:D,stat:!0,forced:nt},{all:function(t){var e=this,n=H(e),r=n.resolve,i=n.reject,o=T((function(){var n=g(e.resolve),o=[],a=0,c=1;x(t,(function(t){var s=a++,u=!1;o.push(void 0),c++,n.call(e,t).then((function(t){u||(u=!0,o[s]=t,--c||r(o))}),i)})),--c||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=H(e),r=n.reject,i=T((function(){var i=g(e.resolve);x(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),c=a.f,s=o.f,u=0;u<n.length;u++){var f=n[u];r(t,f)||c(t,f,s(e,f))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},e9a8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("88bc"),i=n("0ca4"),o={closed:!0,next:function(t){},error:function(t){if(r["a"].useDeprecatedSynchronousErrorHandling)throw t;Object(i["a"])(t)},complete:function(){}}},e9b9:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("1453");function i(t){while(t){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r["a"]?i:null}return!0}var o=n("2ff5"),a=n("e9a8");function c(t,e,n){if(t){if(t instanceof r["a"])return t;if(t[o["a"]])return t[o["a"]]()}return t||e||n?new r["a"](t,e,n):new r["a"](a["a"])}var s=n("c539"),u=n("9828");function f(t){return 0===t.length?u["a"]:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var l=n("88bc"),h=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=c(t,e,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||l["a"].useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),l["a"].useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l["a"].useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),i(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return e=p(e),new e((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[s["a"]]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:f(t)(this)},t.prototype.toPromise=function(t){var e=this;return t=p(t),new t((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function p(t){if(t||(t=l["a"].Promise||Promise),!t)throw new Error("no Promise impl found");return t}},ebb6:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("1453");function o(t,e){return function(n){if("function"!==typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.thisArg))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r["a"](e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(i["a"])},f04f:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"js-clipper-fixed"},[n("div",{staticClass:"vuejs-clipper-fixed__wrap js-wrap",style:t.wrapStyle},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-outer",attrs:{width:t.stemArea.width,height:t.stemArea.height}}),n("div",{staticClass:"vuejs-clipper-fixed__img-center"},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-bg js-stem-bg"}),n("div",{staticClass:"vuejs-clipper-fixed__img-scale js-img-scale",style:t.scaleStyle},[n("div",{staticClass:"vuejs-clipper-fixed__img-translate js-img-translate",style:t.translateStyle},[n("img",{staticClass:"vuejs-clipper-fixed__img js-img",style:t.bgStyle,attrs:{src:t.src,crossorigin:t.crossOrigin},on:{load:function(e){t.imgLoaded(),t.emit("load",e)},error:function(e){return t.emit("error",e)}}})])])]),n("div",{staticClass:"vuejs-clipper-fixed__cover"},[n("div",{staticClass:"vuejs-clipper-fixed__area js-area",style:t.areaStyle},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-area",style:t.stemStyle,attrs:{width:t.stemArea.width,height:t.stemArea.height}}),t.grid?n("div",{staticClass:"vuejs-clipper-fixed__grid"},t._l(4,(function(t){return n("div",{key:"gridItem"+t,staticClass:"vuejs-clipper-fixed__grid-item"})})),0):t._e()])])]),n("div",{staticClass:"vuejs-clipper-fixed__placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("99af"),n("a9e3"),n("bc00")),a=n("5670"),c=n("c4cc"),s=n("ebb6"),u=n("3e18"),f=n("9f2d"),l=n("a744"),h=n("4d82"),p=n("2bd2"),d=n("a748"),b={extends:{methods:o["b"],mixins:[o["d"],o["e"],o["c"]]},subscriptions:function(){var t=this;return this.setWH$=new p["a"],this.setTL$=new p["a"],this.change$=new p["a"],this.mousedownDrag$=this.mousedown$.pipe(Object(a["a"])(this.isDragElement),Object(c["a"])(this.prevent),Object(s["a"])(this.dragDownPos),Object(u["a"])((function(){return t.mousemove$.pipe(Object(c["a"])(t.prevent),Object(f["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchdownDrag$=this.touchstart$.pipe(Object(a["a"])(this.isDragElement),Object(c["a"])(this.prevent),Object(a["a"])((function(t){return 1===t.touches.length})),Object(s["a"])((function(t){return t.touches[0]})),Object(s["a"])(this.dragDownPos),Object(u["a"])((function(){return t.touchmove$.pipe(Object(f["a"])(t.touchend$),Object(a["a"])((function(t){return 1===t.touches.length})))}),(function(t,e){return{down:t,move:e.touches[0]}}))),this.wheelEvent$=this.wheel$.pipe(Object(a["a"])(this.isDragElement),Object(c["a"])(this.prevent),Object(s["a"])((function(t){return t.deltaY})),Object(s["a"])((function(t){return t>=0?-1:1}))),this.touchTwoFinger$=this.touchstart$.pipe(Object(a["a"])(this.isDragElement),Object(a["a"])((function(t){return 2===t.touches.length})),Object(c["a"])(this.prevent),Object(s["a"])(this.towPointsTouches),Object(s["a"])(this.setOrigin),Object(u["a"])((function(){return t.touchmove$.pipe(Object(f["a"])(t.touchend$),Object(a["a"])((function(t){return 2===t.touches.length})),Object(s["a"])(t.towPointsTouches))}),(function(t,e){var n=t.down,r=t.origin;return{down:n,move:e,origin:r}})),Object(s["a"])(this.twoPointsDelta)),this.wheelZoom$=(new p["a"]).pipe(Object(l["a"])(1),Object(h["a"])(this.wheelEvent$),Object(s["a"])(this.calcWheelScaling)),this.touchZoom$=(new p["a"]).pipe(Object(l["a"])(1),Object(h["a"])(this.touchTwoFinger$),Object(s["a"])(this.calcTouchScaling)),this.zoomFromNativeEvents=Object(d["a"])(this.wheelZoom$,this.touchZoom$).pipe(Object(s["a"])(this.handleZoomEvent)),this.zoomSubject$=(new p["a"]).pipe(Object(h["a"])(this.setWH$),Object(h["a"])(this.zoomFromNativeEvents)),this.dragSubject$=(new p["a"]).pipe(Object(l["a"])({left:0,top:0}),Object(h["a"])(this.setTL$),Object(h["a"])(this.mousedownDrag$.pipe(Object(h["a"])(this.touchdownDrag$),Object(s["a"])(this.delta),Object(s["a"])(this.toPercentage)))),this.onChange$=(new p["a"]).pipe(Object(h["a"])(this.zoomSubject$),Object(h["a"])(this.dragSubject$),Object(h["a"])(this.change$)),{bgWH$:this.zoomSubject$,bgTL$:this.dragSubject$}},props:{src:{type:String,default:""},rotate:{type:Number,default:0},ratio:{type:Number,default:1},zoomRate:{type:Number,default:.04},minScale:{type:Number,default:.1},bgColor:{type:String,default:"white"},border:{type:Number,default:1},borderColor:{type:String,default:"white"},grid:{type:Boolean,default:!0},shadow:{type:String,default:"rgba(0, 0, 0, 0.4)"},round:{type:Boolean,default:!1},preview:{type:String,default:""},crossOrigin:{type:String,default:void 0},area:{type:Number,default:50},handleZoomEvent:{type:Function,default:function(t){return t}}},data:function(){return{imgRatio:NaN}},computed:{areaStyle:function(){var t={color:this.shadow,"border-width":"".concat(this.border,"px !important"),"border-color":"".concat(this.borderColor," !important"),"box-shadow":"0 0 0 ".concat(this._shadow," !important"),"border-radius":"".concat(this.round?"50%":""," !important")};return this.ratio>=1?t.width="".concat(this.area,"% !important"):t.height="".concat(this.area,"% !important"),t},scaleStyle:function(){var t=this.bgWH$;return{transform:"scale(".concat(t,") !important")}},translateStyle:function(){var t=this.bgTL$.left,e=this.bgTL$.top;return{transform:"translate(".concat(t,"%,").concat(e,"%) !important")}},bgStyle:function(){return{transform:"rotate(".concat(this.rotate,"deg) !important")}},wrapStyle:function(){return{"background-color":"".concat(this.bgColor," !important"),display:"".concat(this.src?"block":"none"," !important")}},stemArea:function(){return{width:100,height:100/this.ratio}},eptStyle:function(){return{display:"".concat(this.src?"none":"block"," !important")}},stemStyle:function(){var t={};return this.ratio>=1?t.width="100% !important":t.height="100% !important",t},_shadow:function(){return"".concat(this.imgRatio>=1?100:100/this.imgRatio,"vw")}},watch:{ratio:function(){this.resetData(),this.change$.next(0)},bgColor:function(){this.callPreview("setData",{bgColor:this.bgColor})},bgStyle:function(){this.change$.next(0)}},mounted:function(){var t=this;this.imgEl=this.$el.querySelector(".js-clipper-fixed .js-img"),this.wrapEl=this.$el.querySelector(".js-clipper-fixed .js-wrap"),this.areaEl=this.$el.querySelector(".js-clipper-fixed .js-area"),this.scaleEl=this.$el.querySelector(".js-clipper-fixed .js-img-scale"),this.translateEl=this.$el.querySelector(".js-clipper-fixed .js-img-translate"),this.stemEl=this.$el.querySelector(".js-clipper-fixed .js-stem-bg"),this.canvasEl=document.createElement("CANVAS"),this.$subscribeTo(this.onChange$,(function(){t.$nextTick((function(){var e=t.getDrawPos().pos,n=t.rotate;t.invalidDrawPos(e)||t.callPreview("locateImage",e,n)}))}))},methods:{imgLoaded:function(){this.imgRatio=this.imgEl.naturalWidth/this.imgEl.naturalHeight,this.stemEl.width=this.imgEl.naturalWidth,this.stemEl.height=this.imgEl.naturalHeight,this.resetData(),this.callPreview("setData",{src:this.src,bgColor:this.bgColor})},resetData:function(){this.setTL$.next({left:0,top:0});var t=this.ratio>this.imgRatio?this.imgRatio/this.ratio:1;this.setWH$.next(Math.max(t,this.minScale))}}},m=b,g=(n("1033"),n("2877")),v=Object(g["a"])(m,r,i,!1,null,"ada97070",null);e["a"]=v.exports},f069:function(t,e,n){"use strict";var r=n("1c0b"),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},f5df:function(t,e,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),c="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),a))?n:c?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fad2:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"clipperBasic",(function(){return a["a"]})),n.d(e,"clipperFixed",(function(){return a["b"]})),n.d(e,"clipperPreview",(function(){return a["c"]})),n.d(e,"clipperRange",(function(){return a["d"]})),n.d(e,"clipperUpload",(function(){return a["e"]})),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=n("6888");e["default"]=a["f"]},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fd66:function(t,e,n){"use strict";function r(t){return!!t&&"function"!==typeof t.subscribe&&"function"===typeof t.then}n.d(e,"a",(function(){return r}))},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise},fff9:function(t,e,n){}})})); //# sourceMappingURL=vuejs-clipper.umd.min.js.map \ No newline at end of file diff --git a/package.json b/package.json index a336039..f025bf3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vuejs-clipper", - "version": "3.0.3", + "version": "3.0.4", "author": { "name": "timtnlee", "email": "litingen1995@gmail.com"