From 3c5946795fd933b31c3f02a494de515771ed869c Mon Sep 17 00:00:00 2001 From: timtnleeProject Date: Wed, 27 Mar 2019 17:33:03 +0800 Subject: [PATCH] dist files --- dist/vuejs-clipper.umd.js | 29 +++++++++++++---------------- dist/vuejs-clipper.umd.min.js | 4 ++-- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/dist/vuejs-clipper.umd.js b/dist/vuejs-clipper.umd.js index 969f18d..9e05098 100644 --- a/dist/vuejs-clipper.umd.js +++ b/dist/vuejs-clipper.umd.js @@ -200,7 +200,7 @@ module.exports = function (it, key) { "use strict"; -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"432ef1c8-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=2a70d6c1&scoped=true& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd10fa2a-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=2a70d6c1&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 = [] @@ -375,11 +375,7 @@ module.exports = Object.keys || function keys(O) { "use strict"; var namespace = { - globMethodName: '$' + 'imageClipper', - parentPropName: '_imgPreviewLists', - parentDataName: '_imagePreviewData' // const globMethodName = namespace.globMethodName; - // const parentPropName = namespace.parentPropName; - + parentPropName: '_imgPreviewLists' }; /* harmony default export */ __webpack_exports__["a"] = (namespace); @@ -875,12 +871,12 @@ module.exports = function (it) { "use strict"; -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"432ef1c8-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=f69df2dc& -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:{"input":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":"cd10fa2a-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=23f74308& +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)} var staticRenderFns = [] -// CONCATENATED MODULE: ./src/components/clipper-upload.vue?vue&type=template&id=f69df2dc& +// CONCATENATED MODULE: ./src/components/clipper-upload.vue?vue&type=template&id=23f74308& // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/promise.js var promise = __webpack_require__("795b"); @@ -940,7 +936,7 @@ var exif_default = /*#__PURE__*/__webpack_require__.n(exif); if (e.target.files.length !== 1) return; this.file = e.target.files[0]; if (this.check && !this.file.type.startsWith('image/')) return; - if (this.DomString) window.URL.revokeObjectURL(this.DomString); + if (this.DomString && /^blob:/.test(this.DomString)) window.URL.revokeObjectURL(this.DomString); this.DomString = window.URL.createObjectURL(this.file); this.checkEXIF().then(function () { _this.$emit('input', _this.DomString); @@ -999,7 +995,7 @@ var exif_default = /*#__PURE__*/__webpack_require__.n(exif); }); }; - img.onerror = function (err) { + img.onerror = function () { rej(); }; }); @@ -2998,7 +2994,7 @@ module.exports = function (that, target, C) { "use strict"; -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"432ef1c8-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=acd0539e&scoped=true& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd10fa2a-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=acd0539e&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 = [] @@ -3429,7 +3425,6 @@ var install = function install(Vue, options) { options = options || {}; _namespace__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"].parentPropName = options.parentPropName || _namespace__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"].parentPropName; - _namespace__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"].globMethodName = options.globMethodName || _namespace__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"].globMethodName; options.components = options.components === undefined ? components : options.components; //if no components property, register all component for (var k in options.components) { @@ -4713,7 +4708,7 @@ module.exports = function (TO_STRING) { "use strict"; -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"432ef1c8-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=f7a43042&scoped=true& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd10fa2a-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=f7a43042&scoped=true& var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clipper-basic"},[_c('canvas',{staticClass:"hidden-canvas"}),_c('div',{staticClass:"clip-area",style:(_vm.areaStyle)},[_c('div',{staticClass:"img-scale",style:(_vm.scaleStyle)},[_c('img',{staticClass:"img",style:(_vm.rotateStyle),attrs:{"src":_vm.src},on:{"load":function($event){_vm.imgLoaded();_vm.emit('load',$event)},"error":function($event){return _vm.emit('error',$event)}}})]),_c('div',{staticClass:"zoom-area shadow",style:(_vm.posObj)},[_c('div',{staticClass:"extend outer",style:(_vm.exOuterStyle)}),_c('div',{staticClass:"extend inner",style:(_vm.exInnerStyle)},[_c('div',{staticClass:"drag-inset"})]),(_vm.corner)?_c('div',_vm._l((4),function(index){return _c('div',{key:'corner'+index,staticClass:"corner",class:("corner" + index)})}),0):_vm._e(),(_vm.grid)?_c('div',{staticClass:"grid"},_vm._l((4),function(index){return _c('div',{key:'gridItem'+index,staticClass:"grid-item"})}),0):_vm._e(),_vm._t("area")],2)]),_c('div',{staticClass:"placeholder",style:(_vm.eptStyle)},[_vm._t("placeholder")],2)])} var staticRenderFns = [] @@ -8403,7 +8398,9 @@ var rxEventListeners = { }; var rxWheelListeners = { beforeCreate: function beforeCreate() { - this.wheel$ = Object(fromEvent["a" /* fromEvent */])(window, 'wheel'); + this.wheel$ = Object(fromEvent["a" /* fromEvent */])(window, 'wheel', { + passive: false + }); } }; @@ -9972,7 +9969,7 @@ var MapSubscriber = /*@__PURE__*/ (function (_super) { "use strict"; -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"432ef1c8-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=23a39568&scoped=true& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd10fa2a-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=23a39568&scoped=true& var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clipper-fixed"},[_c('div',{staticClass:"wrap",style:(_vm.wrapStyle)},[_c('canvas',{staticClass:"stem-outer",attrs:{"width":_vm.stemArea.width,"height":_vm.stemArea.height}}),_c('div',{staticClass:"img-center"},[_c('canvas',{staticClass:"stem-bg"}),_c('div',{staticClass:"img-scale",style:(_vm.scaleStyle)},[_c('div',{staticClass:"img-translate",style:(_vm.translateStyle)},[_c('img',{staticClass:"img",style:(_vm.bgStyle),attrs:{"src":_vm.src},on:{"load":function($event){_vm.imgLoaded(); _vm.emit('load',$event)},"error":function($event){return _vm.emit('error',$event)}}})])])]),_c('div',{staticClass:"cover"},[_c('div',{staticClass:"area",style:(_vm.areaStyle)},[_c('canvas',{staticClass:"stem-area",style:(_vm.stemStyle),attrs:{"width":_vm.stemArea.width,"height":_vm.stemArea.height}}),(_vm.grid)?_c('div',{staticClass:"grid"},_vm._l((4),function(index){return _c('div',{key:'gridItem'+index,staticClass:"grid-item"})}),0):_vm._e()])])]),_c('canvas',{staticClass:"hidden-canvas"})])} var staticRenderFns = [] diff --git a/dist/vuejs-clipper.umd.min.js b/dist/vuejs-clipper.umd.min.js index 127f082..705dead 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")}({"010a":function(t,e,n){"use strict";var r=n("a9ea"),i=n.n(r);i.a},"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),c=n("84f2"),s=n("41a0"),u=n("7f20"),f=n("38fd"),l=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",b="values",v=function(){return this};t.exports=function(t,e,n,m,g,y,w){s(n,e,m);var x,S,j,O=function(t){if(!h&&t in C)return C[t];switch(t){case d:return function(){return new n(this,t)};case b:return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",E=g==b,P=!1,C=t.prototype,$=C[l]||C[p]||g&&C[g],T=$||O(g),L=g?E?O("entries"):T:void 0,I="Array"==e&&C.entries||$;if(I&&(j=f(I.call(new t)),j!==Object.prototype&&j.next&&(u(j,_,!0),r||"function"==typeof j[l]||a(j,l,v))),E&&$&&$.name!==b&&(P=!0,T=function(){return $.call(this)}),r&&!w||!h&&!P&&C[l]||a(C,l,T),c[e]=T,c[_]=v,g)if(x={values:E?T:O(b),keys:y?T:O(d),entries:L},w)for(S in x)S in C||o(C,S,x[S]);else i(i.P+i.F*(h||P),e,x);return x}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(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("7f7f"),n("0f53")),a={mounted:function(){this.imgEl=this.$el.querySelector(".img"),this.initListener()},data:function(){return{src:"",imgEl:null,imgWidth:1,imgHeight:1,outerWidth:1,outerHeight:1,bgColor:"white",pos:{},rotate:0}},props:{name:{type:String,required:!0}},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}},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"}}}},c=a,s=(n("1cf3"),n("2877")),u=Object(s["a"])(c,r,i,!1,null,"2a70d6c1",null);e["a"]=u.exports},"0ca4":function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t})}n.d(e,"a",function(){return r})},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"0f53":function(t,e,n){"use strict";var r={globMethodName:"$imageClipper",parentPropName:"_imgPreviewLists",parentDataName:"_imagePreviewData"};e["a"]=r},"0fc9":function(t,e,n){var r=n("3a38"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},1173:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),c=n("69a8"),s=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=o(t),e=a(e,!0),s)try{return u(t,e)}catch(n){}if(c(t,e))return i(!r.f.call(t,e),t[e])}},"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,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,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)},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),c=a.length,s=0;while(c>s)r.f(t,n=a[s++],e[n]);return t}},1654:function(t,e,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1716:function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("e9b9"),i=n("fad2"),o=n("4b95"),a=n("bbae"),c=n("25c4"),s=n("d9e3"),u=n("fd66"),f=n("31c4"),l=n("127f"),h=n("c539"),p=function(t){if(t instanceof r["a"])return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"===typeof t[h["a"]])return Object(c["a"])(t);if(Object(s["a"])(t))return Object(i["a"])(t);if(Object(u["a"])(t))return Object(o["a"])(t);if(t&&"function"===typeof t[l["a"]])return Object(a["a"])(t);var e=Object(f["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)}},"1bc3":function(t,e,n){var r=n("f772");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")}},"1cf3":function(t,e,n){"use strict";var r=n("60a4"),i=n.n(r);i.a},"1ec9":function(t,e,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"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:{input:function(e){return t.upload(e)},click:function(e){return t.clear(e)}}})],2)},i=[],o=n("795b"),a=n.n(o),c=(n("f559"),n("6f45")),s=n.n(c),u={mounted:function(){this.uploadEl=this.$el.querySelector(".upload")},props:{accept:{type:String,default:"*"},exif:{type:Boolean,default:!0},value:{type:String,default:""},check:{type:Boolean,default:!0}},data:function(){return{uploadEl:null,DomString:""}},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&&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 a.a(function(e,n){if(!t.exif)return n();e()}).then(function(){return t.getEXIF()}).then(function(e){return t.getImageRect().then(function(t){var n=t.width,r=t.height;return a.a.resolve({width:n,height:r,orientation:e})}).catch(function(){return a.a.reject()})}).then(this.tranformCanvas).catch(function(){return a.a.resolve()})},getEXIF:function(){var t=this;return new a.a(function(e,n){s.a.getData(t.file,function(){var t=this.exifdata.Orientation;void 0!==t&&1!==t||n(),e(t)})})},getImageRect:function(){var t=this;return new a.a(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(t){n()}})},tranformCanvas:function(t){var e=t.width,n=t.height,r=t.orientation,i=document.createElement("canvas"),o=i.getContext("2d");switch(4o)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&M(t)})}},M=function(t){m.call(s,function(){var e,n,r,i=t._v,o=k(t);if(o&&(e=w(function(){$?_.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=$||k(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},k=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(s,function(){var e;$?_.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},A=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=D(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,u(A,r,1),u(R,r,1))}catch(i){R.call(r,i)}}):(n._v=t,n._s=1,F(n,!1))}catch(r){R.call({_w:n,_d:!1},r)}}};I||(C=function(t){d(this,C,j,"_h"),p(t),r.call(this);try{t(u(A,this,1),u(R,this,1))}catch(e){R.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("5c95")(C.prototype,{then:function(t,e){var n=L(v(this,C));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=$?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=u(A,t,1),this.reject=u(R,t,1)},y.f=L=function(t){return t===C||t===a?new o(t):i(t)}),l(l.G+l.W+l.F*!I,{Promise:C}),n("45f2")(C,j),n("4c95")(j),a=n("584a")[j],l(l.S+l.F*!I,j,{reject:function(t){var e=L(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(c||!I),j,{resolve:function(t){return S(c&&this===a?C:this,t)}}),l(l.S+l.F*!(I&&n("4ee1")(function(t){C.all(t)["catch"](T)})),j,{all:function(t){var e=this,n=L(e),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,a=1;b(t,!1,function(t){var c=o++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[c]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=L(e),r=n.reject,i=w(function(){b(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},"25c4":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("c539"),i=function(t){return function(e){var n=t[r["a"]]();if("function"!==typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"264c":function(t,e,n){"use strict";var r=n("48f4"),i=n.n(r);i.a},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,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})},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),c=n("fa5b"),s="toString",u=(""+c).split(s);n("8378").inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var s="function"==typeof n;s&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(s&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),c=function(){},s="prototype",u=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[s][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[s]=r(t),n=new c,c[s]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,c=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};c.store=r},"2bd2":function(t,e,n){"use strict";var r=n("9ab4"),i=n("e9b9"),o=n("1453"),a=n("a6e8");function c(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}c.prototype=Object.create(Error.prototype);var 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");n.d(e,"b",function(){return l}),n.d(e,"a",function(){return h});var 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;i0?r:n)(t)}},"3c11":function(t,e,n){"use strict";var r=n("63b6"),i=n("584a"),o=n("e53d"),a=n("f201"),c=n("cd78");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then(function(){return n})}:t,n?function(n){return c(e,t()).then(function(){throw n})}:t)}})},"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)}},"40c3":function(t,e,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},4178:function(t,e,n){var r,i,o,a=n("d864"),c=n("3024"),s=n("32fc"),u=n("1ec9"),f=n("e53d"),l=f.process,h=f.setImmediate,p=f.clearImmediate,d=f.MessageChannel,b=f.Dispatch,v=0,m={},g="onreadystatechange",y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},w=function(t){y.call(t.data)};h&&p||(h=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return m[++v]=function(){c("function"==typeof t?t:Function(t),e)},r(v),v},p=function(t){delete m[t]},"process"==n("6b4c")(l)?r=function(t){l.nextTick(a(y,t,1))}:b&&b.now?r=function(t){b.now(a(y,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=w,r=a(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",w,!1)):r=g in u("script")?function(t){s.appendChild(u("script"))[g]=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:h,clear:p}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"43fc":function(t,e,n){"use strict";var r=n("63b6"),i=n("656e"),o=n("4439");r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},4439:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"45f2":function(t,e,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"481b":function(t,e){t.exports={}},"48f4":function(t,e,n){},"4b95":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("0ca4"),i=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,r["a"]),e}}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"4c95":function(t,e,n){"use strict";var r=n("e53d"),i=n("584a"),o=n("d9f6"),a=n("8e60"),c=n("5168")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[c]&&o.f(e,c,{configurable:!0,get:function(){return this}})}},"4d82":function(t,e,n){"use strict";var r=n("e9b9"),i=n("9e46"),o=n("667f"),a=n("2144");function c(){for(var t=[],e=0;e1&&"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))}function s(){for(var t=[],e=0;ef)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}}},"5c95":function(t,e,n){var r=n("35e8");t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),c=n("9b43"),s="prototype",u=function(t,e,n){var f,l,h,p,d=t&u.F,b=t&u.G,v=t&u.S,m=t&u.P,g=t&u.B,y=b?r:v?r[e]||(r[e]={}):(r[e]||{})[s],w=b?i:i[e]||(i[e]={}),x=w[s]||(w[s]={});for(f in b&&(n=e),n)l=!d&&y&&void 0!==y[f],h=(l?y:n)[f],p=g&&l?c(h,r):m&&"function"==typeof h?c(Function.call,h):h,y&&a(y,f,h,t&u.U),w[f]!=h&&o(w,f,p),m&&x[f]!=h&&(x[f]=h)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5d58":function(t,e,n){t.exports=n("d8d6")},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"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("c5f6"),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$}},mounted:function(){var t=this;this.initVal(),this.$subscribeTo(this.dragSubject$,function(){t.$emit("input",t.val)})},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}},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)}},watch:{value:function(){this.initVal()}}},p=h,d=(n("010a"),n("2877")),b=Object(d["a"])(p,r,i,!1,null,"acd0539e",null);e["a"]=b.exports},"60a4":function(t,e,n){},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),c=n("07e3"),s="prototype",u=function(t,e,n){var f,l,h,p=t&u.F,d=t&u.G,b=t&u.S,v=t&u.P,m=t&u.B,g=t&u.W,y=d?i:i[e]||(i[e]={}),w=y[s],x=d?r:b?r[e]:(r[e]||{})[s];for(f in d&&(n=e),n)l=!p&&x&&void 0!==x[f],l&&c(y,f)||(h=l?x[f]:n[f],y[f]=d&&"function"!=typeof x[f]?n[f]:m&&l?o(h,r):g&&x[f]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[s]=t[s],e}(h):v&&"function"==typeof h?o(Function.call,h):h,v&&((y.virtual||(y.virtual={}))[f]=h,t&u.R&&w&&!w[f]&&a(w,f,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"656e":function(t,e,n){"use strict";var r=n("79aa");function i(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)}},"667f":function(t,e,n){"use strict";var r=n("a6c5");function i(t){return t}function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r["a"])(i,t)}n.d(e,"a",function(){return o})},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},6888:function(t,e,n){"use strict";(function(t){n("7f7f");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("ce19"),u=n("0f53"),f=function(t,e){t.use(s["a"]);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"}},f=function(e){t.component(n[e].name,n[e].component)};for(var l in e=e||{},u["a"].parentPropName=e.parentPropName||u["a"].parentPropName,u["a"].globMethodName=e.globMethodName||u["a"].globMethodName,e.components=void 0===e.components?n:e.components,e.components){if(!n[l])throw'Invalid components "'.concat(l,'" in vurjs-clipper plugin');n[l].name="string"===typeof e.components[l]?e.components[l]:n[l].name,f(l)}},l={install:f};e["f"]=l;var h=null;"undefined"!==typeof window?h=window.Vue:"undefined"!==typeof t&&(h=t.Vue),h&&h.use(l)}).call(this,n("c8ba"))},"696e":function(t,e,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),t.exports=n("584a").Promise},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");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")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c1c":function(t,e,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s1?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;p4?p:e+8,a=[],s=0;s4?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;st.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")+8;s=s.substring(s.indexOf("0){e["@attributes"]={};for(var n=0;n0)for(var n=0;n=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)}}},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:"clipper-basic"},[n("canvas",{staticClass:"hidden-canvas"}),n("div",{staticClass:"clip-area",style:t.areaStyle},[n("div",{staticClass:"img-scale",style:t.scaleStyle},[n("img",{staticClass:"img",style:t.rotateStyle,attrs:{src:t.src},on:{load:function(e){t.imgLoaded(),t.emit("load",e)},error:function(e){return t.emit("error",e)}}})]),n("div",{staticClass:"zoom-area shadow",style:t.posObj},[n("div",{staticClass:"extend outer",style:t.exOuterStyle}),n("div",{staticClass:"extend inner",style:t.exInnerStyle},[n("div",{staticClass:"drag-inset"})]),t.corner?n("div",t._l(4,function(t){return n("div",{key:"corner"+t,staticClass:"corner",class:"corner"+t})}),0):t._e(),t.grid?n("div",{staticClass:"grid"},t._l(4,function(t){return n("div",{key:"gridItem"+t,staticClass:"grid-item"})}),0):t._e(),t._t("area")],2)]),n("div",{staticClass:"placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("c5f6"),n("bc00")),a=n("2bd2"),c=n("ebb6"),s=n("4d82"),u=n("5670"),f=n("3e18"),l=n("9f2d"),h=n("a744"),p={extends:{methods:o["a"],mixins:[o["d"],o["c"]]},subscriptions:function(){var t=this;return this.onchange$=new a["a"],this.setTL$=new a["a"],this.initWHTL$=(new a["a"]).pipe(Object(c["a"])(this.$set_initWHTL)),this.stop$=new a["a"],this.mousedownDrag$=(new a["a"]).pipe(Object(s["a"])(this.mousedown$),Object(u["a"])(this.isDragElement),Object(c["a"])(function(t){return t.preventDefault(),t}),Object(c["a"])(function(e){return t.eInZoom(e)}),Object(f["a"])(function(){return t.mousemove$.pipe(Object(l["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(c["a"])(function(t){return t.preventDefault(),t}),Object(c["a"])(function(e){return t.eInZoom(e.touches[0])}),Object(f["a"])(function(){return t.touchmove$.pipe(Object(l["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(c["a"])(function(t){return t.preventDefault(),t}),Object(c["a"])(this.setDownPosition),Object(f["a"])(function(){return t.mousemove$.pipe(Object(l["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(c["a"])(function(t){return t.preventDefault(),t.touches[0]}),Object(c["a"])(this.setDownPosition),Object(f["a"])(function(){return t.touchmove$.pipe(Object(l["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(c["a"])(this.prevent),Object(c["a"])(function(){t.stop$.next(0);var e=t.zoomPos();return{event:event,zoom:e}}),Object(f["a"])(function(){return t.touchmove$.pipe(Object(u["a"])(function(t){return 2===t.touches.length}),Object(c["a"])(t.prevent),Object(l["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(c["a"])(this.prevent),Object(c["a"])(this.getFakeDown),Object(f["a"])(function(){return t.mousemove$.pipe(Object(l["a"])(t.mouseup$))},function(t,e){return{down:t,move:e}})),this.touchstartCreate$=this.touchstart$.pipe(Object(u["a"])(this.isCreateElement),Object(c["a"])(this.prevent),Object(c["a"])(function(t){return t.touches[0]}),Object(c["a"])(this.getFakeDown),Object(f["a"])(function(){return t.touchmove$.pipe(Object(l["a"])(t.touchend$),Object(l["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(h["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"])(function(e){var n=e.down,r=e.move,i=t.getCreatePos(n,r);return t.zoomingPosition(i,r)}),Object(s["a"])(this.touchTwoFingersZoom$),Object(c["a"])(this.splitPos),Object(c["a"])(function(e){return t.setTL$.next(t.toPercentage(e.tl)),e.wh}),Object(c["a"])(this.$set_ratioWH),Object(c["a"])(this.toPercentage),Object(h["a"])({width:0,height:0}),Object(s["a"])(this.initWHTL$),Object(c["a"])(function(e){return t.$set_minWH(e)})),{zoomTL$:this.dragSubject$,zoomWH$:this.zoomSubject$}},props:{preview:{type:String},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},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}},data:function(){return{imgRatio:NaN}},mounted:function(){var t=this;this.imgEl=this.$el.querySelector(".clipper-basic .img"),this.canvasEl=this.$el.querySelector(".clipper-basic .hidden-canvas"),this.areaEl=this.$el.querySelector(".clipper-basic .clip-area"),this.zoomEl=this.$el.querySelector(".clipper-basic .zoom-area"),this.scaleEl=this.$el.querySelector(".img-scale"),this.preview&&this.$subscribeTo(this.dragSubject$.pipe(Object(s["a"])(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.initWHTL$.next(!0)}},computed:{posObj:function(){var t={borderWidth:this.border+"px",width:this.zoomWH$.width+"%",height:this.zoomWH$.height+"%",color:this.shadow,boxShadow:"0 0 0 "+this._shadow};for(var e in this.zoomTL$)"number"===typeof this.zoomTL$[e]&&(t[e]=this.zoomTL$[e]+"%");return t},scaleStyle:function(){return this.onchange$.next(0),{transform:"scale(".concat(this.scale,")")}},rotateStyle:function(){return this.onchange$.next(0),{transform:"rotate(".concat(this.rotate,"deg)")}},areaStyle:function(){var t=this.border+"px",e=this.src?"block":"none",n=this.watchPreData.bgColor;return{padding:t,display:e,backgroundColor:n}},eptStyle:function(){var t=this.src?"none":"block";return{display:t}},exOuterStyle:function(){var t=this.outline+this.border+"px";return{borderWidth:t,transform:"translate(-".concat(t,",-").concat(t,")")}},exInnerStyle:function(){var t=this.outline+"px";return{padding:t}},_shadow:function(){return(this.imgRatio>=1?100:100/this.imgRatio)+"vw"},watchPreData:function(){return this.callPreview("setData",{bgColor:this.bgColor}),{bgColor:this.bgColor}}}},d=p,b=(n("264c"),n("2877")),v=Object(b["a"])(d,r,i,!1,null,"f7a43042",null);e["a"]=v.exports},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"795b":function(t,e,n){t.exports=n("696e")},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7cd6":function(t,e,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"7e90":function(t,e,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),c=a.length,s=0;while(c>s)r.f(t,n=a[s++],e[n]);return t}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(c){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),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}}},"8ac6":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"===typeof t.length}},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},9138:function(t,e,n){t.exports=n("35e8")},9306:function(t,e,n){"use strict";var r=n("c3a1"),i=n("9aa9"),o=n("355d"),a=n("241e"),c=n("335c"),s=Object.assign;t.exports=!s||n("294c")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){var n=a(t),s=arguments.length,u=1,f=i.f,l=o.f;while(s>u){var h,p=c(arguments[u++]),d=f?r(p).concat(f(p)):r(p),b=d.length,v=0;while(b>v)l.call(p,h=d[v++])&&(n[h]=p[h])}return n}:s},"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={},v={};v[a]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(I([])));g&&g!==r&&i.call(g,a)&&(v=g);var y=O.prototype=S.prototype=Object.create(v);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.prototype),E.prototype[c]=function(){return this},f.AsyncIterator=E,f.async=function(t,e,n,r){var i=new E(w(t,e,n,r));return f.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},_(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),!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=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(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;T(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=P(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 _(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(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)},function(t){return e("throw",t,o,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 P(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 D()}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){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(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,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(++rs)r.f(t,n=a[s++],e[n]);return t}},1654:function(t,e,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1716:function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("e9b9"),i=n("fad2"),o=n("4b95"),a=n("bbae"),c=n("25c4"),s=n("d9e3"),u=n("fd66"),f=n("31c4"),l=n("127f"),h=n("c539"),p=function(t){if(t instanceof r["a"])return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"===typeof t[h["a"]])return Object(c["a"])(t);if(Object(s["a"])(t))return Object(i["a"])(t);if(Object(u["a"])(t))return Object(o["a"])(t);if(t&&"function"===typeof t[l["a"]])return Object(a["a"])(t);var e=Object(f["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)}},"1bc3":function(t,e,n){var r=n("f772");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")}},"1cf3":function(t,e,n){"use strict";var r=n("60a4"),i=n.n(r);i.a},"1ec9":function(t,e,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"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("795b"),a=n.n(o),c=(n("f559"),n("6f45")),s=n.n(c),u={mounted:function(){this.uploadEl=this.$el.querySelector(".upload")},props:{accept:{type:String,default:"*"},exif:{type:Boolean,default:!0},value:{type:String,default:""},check:{type:Boolean,default:!0}},data:function(){return{uploadEl:null,DomString:""}},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 a.a(function(e,n){if(!t.exif)return n();e()}).then(function(){return t.getEXIF()}).then(function(e){return t.getImageRect().then(function(t){var n=t.width,r=t.height;return a.a.resolve({width:n,height:r,orientation:e})}).catch(function(){return a.a.reject()})}).then(this.tranformCanvas).catch(function(){return a.a.resolve()})},getEXIF:function(){var t=this;return new a.a(function(e,n){s.a.getData(t.file,function(){var t=this.exifdata.Orientation;void 0!==t&&1!==t||n(),e(t)})})},getImageRect:function(){var t=this;return new a.a(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()}})},tranformCanvas:function(t){var e=t.width,n=t.height,r=t.orientation,i=document.createElement("canvas"),o=i.getContext("2d");switch(4o)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&k(t)})}},k=function(t){m.call(s,function(){var e,n,r,i=t._v,o=M(t);if(o&&(e=w(function(){$?_.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=$||M(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},M=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(s,function(){var e;$?_.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},A=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=D(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,u(A,r,1),u(R,r,1))}catch(i){R.call(r,i)}}):(n._v=t,n._s=1,F(n,!1))}catch(r){R.call({_w:n,_d:!1},r)}}};I||(C=function(t){d(this,C,j,"_h"),p(t),r.call(this);try{t(u(A,this,1),u(R,this,1))}catch(e){R.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("5c95")(C.prototype,{then:function(t,e){var n=L(v(this,C));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=$?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=u(A,t,1),this.reject=u(R,t,1)},y.f=L=function(t){return t===C||t===a?new o(t):i(t)}),l(l.G+l.W+l.F*!I,{Promise:C}),n("45f2")(C,j),n("4c95")(j),a=n("584a")[j],l(l.S+l.F*!I,j,{reject:function(t){var e=L(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(c||!I),j,{resolve:function(t){return S(c&&this===a?C:this,t)}}),l(l.S+l.F*!(I&&n("4ee1")(function(t){C.all(t)["catch"](T)})),j,{all:function(t){var e=this,n=L(e),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,a=1;b(t,!1,function(t){var c=o++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[c]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=L(e),r=n.reject,i=w(function(){b(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},"25c4":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("c539"),i=function(t){return function(e){var n=t[r["a"]]();if("function"!==typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"264c":function(t,e,n){"use strict";var r=n("48f4"),i=n.n(r);i.a},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,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})},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),c=n("fa5b"),s="toString",u=(""+c).split(s);n("8378").inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var s="function"==typeof n;s&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(s&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),c=function(){},s="prototype",u=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[s][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[s]=r(t),n=new c,c[s]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,c=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};c.store=r},"2bd2":function(t,e,n){"use strict";var r=n("9ab4"),i=n("e9b9"),o=n("1453"),a=n("a6e8");function c(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}c.prototype=Object.create(Error.prototype);var 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");n.d(e,"b",function(){return l}),n.d(e,"a",function(){return h});var 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;i0?r:n)(t)}},"3c11":function(t,e,n){"use strict";var r=n("63b6"),i=n("584a"),o=n("e53d"),a=n("f201"),c=n("cd78");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then(function(){return n})}:t,n?function(n){return c(e,t()).then(function(){throw n})}:t)}})},"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)}},"40c3":function(t,e,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},4178:function(t,e,n){var r,i,o,a=n("d864"),c=n("3024"),s=n("32fc"),u=n("1ec9"),f=n("e53d"),l=f.process,h=f.setImmediate,p=f.clearImmediate,d=f.MessageChannel,b=f.Dispatch,v=0,m={},g="onreadystatechange",y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},w=function(t){y.call(t.data)};h&&p||(h=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return m[++v]=function(){c("function"==typeof t?t:Function(t),e)},r(v),v},p=function(t){delete m[t]},"process"==n("6b4c")(l)?r=function(t){l.nextTick(a(y,t,1))}:b&&b.now?r=function(t){b.now(a(y,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=w,r=a(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",w,!1)):r=g in u("script")?function(t){s.appendChild(u("script"))[g]=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:h,clear:p}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"43fc":function(t,e,n){"use strict";var r=n("63b6"),i=n("656e"),o=n("4439");r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},4439:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"45f2":function(t,e,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"481b":function(t,e){t.exports={}},"48f4":function(t,e,n){},"4b95":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("0ca4"),i=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,r["a"]),e}}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"4c95":function(t,e,n){"use strict";var r=n("e53d"),i=n("584a"),o=n("d9f6"),a=n("8e60"),c=n("5168")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[c]&&o.f(e,c,{configurable:!0,get:function(){return this}})}},"4d82":function(t,e,n){"use strict";var r=n("e9b9"),i=n("9e46"),o=n("667f"),a=n("2144");function c(){for(var t=[],e=0;e1&&"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))}function s(){for(var t=[],e=0;ef)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}}},"5c95":function(t,e,n){var r=n("35e8");t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),c=n("9b43"),s="prototype",u=function(t,e,n){var f,l,h,p,d=t&u.F,b=t&u.G,v=t&u.S,m=t&u.P,g=t&u.B,y=b?r:v?r[e]||(r[e]={}):(r[e]||{})[s],w=b?i:i[e]||(i[e]={}),x=w[s]||(w[s]={});for(f in b&&(n=e),n)l=!d&&y&&void 0!==y[f],h=(l?y:n)[f],p=g&&l?c(h,r):m&&"function"==typeof h?c(Function.call,h):h,y&&a(y,f,h,t&u.U),w[f]!=h&&o(w,f,p),m&&x[f]!=h&&(x[f]=h)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5d58":function(t,e,n){t.exports=n("d8d6")},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"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("c5f6"),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$}},mounted:function(){var t=this;this.initVal(),this.$subscribeTo(this.dragSubject$,function(){t.$emit("input",t.val)})},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}},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)}},watch:{value:function(){this.initVal()}}},p=h,d=(n("010a"),n("2877")),b=Object(d["a"])(p,r,i,!1,null,"acd0539e",null);e["a"]=b.exports},"60a4":function(t,e,n){},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),c=n("07e3"),s="prototype",u=function(t,e,n){var f,l,h,p=t&u.F,d=t&u.G,b=t&u.S,v=t&u.P,m=t&u.B,g=t&u.W,y=d?i:i[e]||(i[e]={}),w=y[s],x=d?r:b?r[e]:(r[e]||{})[s];for(f in d&&(n=e),n)l=!p&&x&&void 0!==x[f],l&&c(y,f)||(h=l?x[f]:n[f],y[f]=d&&"function"!=typeof x[f]?n[f]:m&&l?o(h,r):g&&x[f]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[s]=t[s],e}(h):v&&"function"==typeof h?o(Function.call,h):h,v&&((y.virtual||(y.virtual={}))[f]=h,t&u.R&&w&&!w[f]&&a(w,f,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"656e":function(t,e,n){"use strict";var r=n("79aa");function i(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)}},"667f":function(t,e,n){"use strict";var r=n("a6c5");function i(t){return t}function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r["a"])(i,t)}n.d(e,"a",function(){return o})},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},6888:function(t,e,n){"use strict";(function(t){n("7f7f");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("ce19"),u=n("0f53"),f=function(t,e){t.use(s["a"]);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"}},f=function(e){t.component(n[e].name,n[e].component)};for(var l in e=e||{},u["a"].parentPropName=e.parentPropName||u["a"].parentPropName,e.components=void 0===e.components?n:e.components,e.components){if(!n[l])throw'Invalid components "'.concat(l,'" in vurjs-clipper plugin');n[l].name="string"===typeof e.components[l]?e.components[l]:n[l].name,f(l)}},l={install:f};e["f"]=l;var h=null;"undefined"!==typeof window?h=window.Vue:"undefined"!==typeof t&&(h=t.Vue),h&&h.use(l)}).call(this,n("c8ba"))},"696e":function(t,e,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),t.exports=n("584a").Promise},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");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")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c1c":function(t,e,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s1?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;p4?p:e+8,a=[],s=0;s4?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;st.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")+8;s=s.substring(s.indexOf("0){e["@attributes"]={};for(var n=0;n0)for(var n=0;n=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)}}},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:"clipper-basic"},[n("canvas",{staticClass:"hidden-canvas"}),n("div",{staticClass:"clip-area",style:t.areaStyle},[n("div",{staticClass:"img-scale",style:t.scaleStyle},[n("img",{staticClass:"img",style:t.rotateStyle,attrs:{src:t.src},on:{load:function(e){t.imgLoaded(),t.emit("load",e)},error:function(e){return t.emit("error",e)}}})]),n("div",{staticClass:"zoom-area shadow",style:t.posObj},[n("div",{staticClass:"extend outer",style:t.exOuterStyle}),n("div",{staticClass:"extend inner",style:t.exInnerStyle},[n("div",{staticClass:"drag-inset"})]),t.corner?n("div",t._l(4,function(t){return n("div",{key:"corner"+t,staticClass:"corner",class:"corner"+t})}),0):t._e(),t.grid?n("div",{staticClass:"grid"},t._l(4,function(t){return n("div",{key:"gridItem"+t,staticClass:"grid-item"})}),0):t._e(),t._t("area")],2)]),n("div",{staticClass:"placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("c5f6"),n("bc00")),a=n("2bd2"),c=n("ebb6"),s=n("4d82"),u=n("5670"),f=n("3e18"),l=n("9f2d"),h=n("a744"),p={extends:{methods:o["a"],mixins:[o["d"],o["c"]]},subscriptions:function(){var t=this;return this.onchange$=new a["a"],this.setTL$=new a["a"],this.initWHTL$=(new a["a"]).pipe(Object(c["a"])(this.$set_initWHTL)),this.stop$=new a["a"],this.mousedownDrag$=(new a["a"]).pipe(Object(s["a"])(this.mousedown$),Object(u["a"])(this.isDragElement),Object(c["a"])(function(t){return t.preventDefault(),t}),Object(c["a"])(function(e){return t.eInZoom(e)}),Object(f["a"])(function(){return t.mousemove$.pipe(Object(l["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(c["a"])(function(t){return t.preventDefault(),t}),Object(c["a"])(function(e){return t.eInZoom(e.touches[0])}),Object(f["a"])(function(){return t.touchmove$.pipe(Object(l["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(c["a"])(function(t){return t.preventDefault(),t}),Object(c["a"])(this.setDownPosition),Object(f["a"])(function(){return t.mousemove$.pipe(Object(l["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(c["a"])(function(t){return t.preventDefault(),t.touches[0]}),Object(c["a"])(this.setDownPosition),Object(f["a"])(function(){return t.touchmove$.pipe(Object(l["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(c["a"])(this.prevent),Object(c["a"])(function(){t.stop$.next(0);var e=t.zoomPos();return{event:event,zoom:e}}),Object(f["a"])(function(){return t.touchmove$.pipe(Object(u["a"])(function(t){return 2===t.touches.length}),Object(c["a"])(t.prevent),Object(l["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(c["a"])(this.prevent),Object(c["a"])(this.getFakeDown),Object(f["a"])(function(){return t.mousemove$.pipe(Object(l["a"])(t.mouseup$))},function(t,e){return{down:t,move:e}})),this.touchstartCreate$=this.touchstart$.pipe(Object(u["a"])(this.isCreateElement),Object(c["a"])(this.prevent),Object(c["a"])(function(t){return t.touches[0]}),Object(c["a"])(this.getFakeDown),Object(f["a"])(function(){return t.touchmove$.pipe(Object(l["a"])(t.touchend$),Object(l["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(h["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"])(function(e){var n=e.down,r=e.move,i=t.getCreatePos(n,r);return t.zoomingPosition(i,r)}),Object(s["a"])(this.touchTwoFingersZoom$),Object(c["a"])(this.splitPos),Object(c["a"])(function(e){return t.setTL$.next(t.toPercentage(e.tl)),e.wh}),Object(c["a"])(this.$set_ratioWH),Object(c["a"])(this.toPercentage),Object(h["a"])({width:0,height:0}),Object(s["a"])(this.initWHTL$),Object(c["a"])(function(e){return t.$set_minWH(e)})),{zoomTL$:this.dragSubject$,zoomWH$:this.zoomSubject$}},props:{preview:{type:String},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},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}},data:function(){return{imgRatio:NaN}},mounted:function(){var t=this;this.imgEl=this.$el.querySelector(".clipper-basic .img"),this.canvasEl=this.$el.querySelector(".clipper-basic .hidden-canvas"),this.areaEl=this.$el.querySelector(".clipper-basic .clip-area"),this.zoomEl=this.$el.querySelector(".clipper-basic .zoom-area"),this.scaleEl=this.$el.querySelector(".img-scale"),this.preview&&this.$subscribeTo(this.dragSubject$.pipe(Object(s["a"])(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.initWHTL$.next(!0)}},computed:{posObj:function(){var t={borderWidth:this.border+"px",width:this.zoomWH$.width+"%",height:this.zoomWH$.height+"%",color:this.shadow,boxShadow:"0 0 0 "+this._shadow};for(var e in this.zoomTL$)"number"===typeof this.zoomTL$[e]&&(t[e]=this.zoomTL$[e]+"%");return t},scaleStyle:function(){return this.onchange$.next(0),{transform:"scale(".concat(this.scale,")")}},rotateStyle:function(){return this.onchange$.next(0),{transform:"rotate(".concat(this.rotate,"deg)")}},areaStyle:function(){var t=this.border+"px",e=this.src?"block":"none",n=this.watchPreData.bgColor;return{padding:t,display:e,backgroundColor:n}},eptStyle:function(){var t=this.src?"none":"block";return{display:t}},exOuterStyle:function(){var t=this.outline+this.border+"px";return{borderWidth:t,transform:"translate(-".concat(t,",-").concat(t,")")}},exInnerStyle:function(){var t=this.outline+"px";return{padding:t}},_shadow:function(){return(this.imgRatio>=1?100:100/this.imgRatio)+"vw"},watchPreData:function(){return this.callPreview("setData",{bgColor:this.bgColor}),{bgColor:this.bgColor}}}},d=p,b=(n("264c"),n("2877")),v=Object(b["a"])(d,r,i,!1,null,"f7a43042",null);e["a"]=v.exports},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"795b":function(t,e,n){t.exports=n("696e")},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7cd6":function(t,e,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"7e90":function(t,e,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),c=a.length,s=0;while(c>s)r.f(t,n=a[s++],e[n]);return t}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(c){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),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}}},"8ac6":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"===typeof t.length}},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},9138:function(t,e,n){t.exports=n("35e8")},9306:function(t,e,n){"use strict";var r=n("c3a1"),i=n("9aa9"),o=n("355d"),a=n("241e"),c=n("335c"),s=Object.assign;t.exports=!s||n("294c")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){var n=a(t),s=arguments.length,u=1,f=i.f,l=o.f;while(s>u){var h,p=c(arguments[u++]),d=f?r(p).concat(f(p)):r(p),b=d.length,v=0;while(b>v)l.call(p,h=d[v++])&&(n[h]=p[h])}return n}:s},"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={},v={};v[a]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(I([])));g&&g!==r&&i.call(g,a)&&(v=g);var y=O.prototype=S.prototype=Object.create(v);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.prototype),E.prototype[c]=function(){return this},f.AsyncIterator=E,f.async=function(t,e,n,r){var i=new E(w(t,e,n,r));return f.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},_(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),!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=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(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;T(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=P(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 _(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(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)},function(t){return e("throw",t,o,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 P(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 D()}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){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(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,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(++r0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e46":function(t,e,n){"use strict";function r(t){return t&&"function"===typeof t.schedule}n.d(e,"a",function(){return r})},"9f2d":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("9ab4"),i=n("3060"),o=n("ce8b");function a(t){return function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new s(t),r=Object(o["a"])(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),s=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(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i["a"])},a159:function(t,e,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),c=function(){},s="prototype",u=function(){var t,e=n("1ec9")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[s][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[s]=r(t),n=new c,c[s]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},a22a:function(t,e,n){var r=n("d864"),i=n("b0dc"),o=n("3702"),a=n("e4ae"),c=n("b447"),s=n("7cd6"),u={},f={};e=t.exports=function(t,e,n,l,h){var p,d,b,v,m=h?function(){return t}:s(t),g=r(n,l,e?2:1),y=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(p=c(t.length);p>y;y++)if(v=e?g(a(d=t[y])[0],d[1]):g(t[y]),v===u||v===f)return v}else for(b=m.call(t);!(d=b.next()).done;)if(v=i(b,g,d.value,e),v===u||v===f)return v};e.BREAK=u,e.RETURN=f},a3c3:function(t,e,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a6c5:function(t,e,n){"use strict";var r=n("9ab4"),i=n("ce8b"),o=n("3060"),a=n("acf8"),c=n("ebb6"),s=n("e9b9"),u=n("fd66"),f=n("d9e3"),l=n("c539");function h(t){return t&&"function"===typeof t[l["a"]]}var p=n("127f");function d(t){return t&&"function"===typeof t[p["a"]]}var b=n("2144"),v=n("a6e8"),m=n("4b95");function g(t,e){return e?new s["a"](function(n){var r=new v["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}):new s["a"](Object(m["a"])(t))}var y=n("bbae");function w(t,e){if(!t)throw new Error("Iterable cannot be null");return e?new s["a"](function(n){var r,i=new v["a"];return i.add(function(){r&&"function"===typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[p["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}):new s["a"](Object(y["a"])(t))}var x=n("25c4");function S(t,e){return e?new s["a"](function(n){var r=new v["a"];return r.add(e.schedule(function(){var i=t[l["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}):new s["a"](Object(x["a"])(t))}var j=n("1716");function O(t,e){if(!e)return t instanceof s["a"]?t:new s["a"](Object(j["a"])(t));if(null!=t){if(h(t))return S(t,e);if(Object(u["a"])(t))return g(t,e);if(Object(f["a"])(t))return Object(b["a"])(t,e);if(d(t)||"string"===typeof t)return w(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function _(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"===typeof e?function(r){return r.pipe(_(function(n,r){return O(t(n,r)).pipe(Object(c["a"])(function(t,i){return e(n,t,r,i)}))},n))}:("number"===typeof e&&(n=e),function(e){return e.lift(new E(t,n))})}n.d(e,"a",function(){return _});var E=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 P(t,this.project,this.concurrent))},t}(),P=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.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o["a"])},a6e8:function(t,e,n){"use strict";var r=n("8ac6"),i=n("31c4"),o=n("d817");function a(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}a.prototype=Object.create(Error.prototype);var c=a;n.d(e,"a",function(){return s});var s=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,a=n._parent,s=n._parents,f=n._unsubscribe,l=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;var h=-1,p=s?s.length:0;while(a)a.remove(this),a=++h0?Object(r["a"])(t,n):c(n):o(t[0]),e)}}n.d(e,"a",function(){return d})},a9ea:function(t,e,n){},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),c="["+a+"]",s="​…",u=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),l=function(t,e,n){var i={},c=o(function(){return!!a[t]()||s[t]()!=s}),u=i[t]=c?e(h):a[t];n&&(i[n]=u),r(r.P+r.F*c,"String",i)},h=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},aae3:function(t,e,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},aba2:function(t,e,n){var r=n("e53d"),i=n("4178").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,c=r.Promise,s="process"==n("6b4c")(a);t.exports=function(){var t,e,n,u=function(){var r,i;s&&(r=a.domain)&&r.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var f=c.resolve(void 0);n=function(){f.then(u)}}else n=function(){i.call(r,u)};else{var l=!0,h=document.createTextNode("");new o(u).observe(h,{characterData:!0}),n=function(){h.data=l=!l}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),c=n("32e9"),s=n("84f2"),u=n("2b4c"),f=u("iterator"),l=u("toStringTag"),h=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),b=0;b0?i(r(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},bbae:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("127f"),i=function(t){return function(e){var n=t[r["a"]]();do{var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}while(1);return"function"===typeof n.return&&e.add(function(){n.return&&n.return()}),e}}},bc00:function(t,e,n){"use strict";n("ac6a");var r=n("5176"),i=n.n(r),o={prevent:function(t){return t.preventDefault(),t},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}},a=o,c=(n("cadf"),n("96cf"),n("5d58")),s=n.n(c),u={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},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 i()(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.$el.querySelector(".drag-inset")},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,e){var n,r,i,o,a,c,s,u,f=this.areaPos();return!0===t.r&&(n=t.offsetLeft,s=f.width-n,a=e.clientX-t.left),!0===t.l&&(i=f.right-t.right,s=f.width-i,a=t.right-e.clientX),!0===t.b&&(r=t.offsetTop,u=f.height-r,c=e.clientY-t.top),!0===t.t&&(o=f.bottom-t.bottom,u=f.height-o,c=t.bottom-e.clientY),a=Math.min(a,s),c=Math.min(c,u),{width:a,height:c,top:r,left:n,right:i,bottom:o,maxWidth:s,maxHeight:u}},$set_minWH:function(t){return{width:Math.max(t.width,1),height:Math.max(t.height,1)}},$set_ratioWH:function(t){var e=t.width,n=t.height,r=t.maxWidth,i=t.maxHeight;if(!this.ratio)return{width:e,height:n};var o=this.ratioPos({width:e,height:n});return o.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}},$set_initWHTL:function(){var t,e,n=50,r=50;return this.ratio&&(this.ratio>this.imgRatio?r=n/this.ratio*this.imgRatio:n=r*this.ratio/this.imgRatio),t=(100-n)/2,e=(100-r)/2,this.setTL$.next({left:t,top:e}),{width:n,height:r}},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.$el.querySelector(".drag-inset")},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:in,t:or}},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].clientXe.clientX&&(e.clientX=i.left),r.t&&n.clientYe.clientY&&(e.clientY=i.top),{down:e,move:n}},getCreatePos:function(t,e){var n=e.clientX>t.clientX?"r":"l",r=e.clientY>t.clientY?"b":"t",i={top:t.clientY,right:t.clientX,bottom:t.clientY,left:t.clientX,offsetTop:this.eToArea(t,"top"),offsetLeft:this.eToArea(t,"left")};return i[n]=!0,i[r]=!0,i},getDrawPos:function(){var t=this.zoomPos(),e=this.scaleEl.getBoundingClientRect(),n=this.imgEl.naturalWidth,r=e.width,i=t.left-e.left+this.border,o=t.top-e.top+this.border,a=t.width-2*this.border,c=t.height-2*this.border,u=n/r,f={rotateX:(e.left+e.width/2-(t.left+this.border))*u,rotateY:(e.top+e.height/2-(t.top+this.border))*u,drawX:(e.left-(t.left+this.border))*u,drawY:(e.top-(t.top+this.border))*u},l={sx:i*u,sy:o*u,swidth:a*u,sheight:c*u,dx:0,dy:0,dwidth:a*u,dheight:c*u};return l[s.a]=regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:t.t0=regeneratorRuntime.keys(l);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,l[e];case 5:t.next=1;break;case 7:case"end":return t.stop()}},t,this)}),{pos:l,translate:f}}},f=u,l={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(){var t=this.areaEl.getBoundingClientRect(),e=this.translatePos(),n=this.imgEl.naturalWidth,r=t.left-e.left+this.border,i=t.top-e.top+this.border,o=n/e.width,a={rotateX:(e.left+e.width/2-(t.left+this.border))*o,rotateY:(e.top+e.height/2-(t.top+this.border))*o,drawX:(e.left-(t.left+this.border))*o,drawY:(e.top-(t.top+this.border))*o},c={sx:r*o,sy:i*o,swidth:(t.width-2*this.border)*o,sheight:(t.height-2*this.border)*o,dx:0,dy:0,dwidth:(t.width-2*this.border)*o,dheight:(t.height-2*this.border)*o};return c[s.a]=regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:t.t0=regeneratorRuntime.keys(c);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,c[e];case 5:t.next=1;break;case 7:case"end":return t.stop()}},t,this)}),{pos:c,translate:a}}},h=l,p=n("6e77"),d=n("0f53");n.d(e,"a",function(){return b}),n.d(e,"b",function(){return v}),n.d(e,"d",function(){return m}),n.d(e,"e",function(){return g}),n.d(e,"c",function(){return y});var b=i()(f,a),v=i()(h,a),m={beforeCreate:function(){this.mousedown$=Object(p["a"])(window,"mousedown"),this.mousemove$=Object(p["a"])(window,"mousemove"),this.mouseup$=Object(p["a"])(window,"mouseup"),this.touchstart$=Object(p["a"])(window,"touchstart",{passive:!1}),this.touchmove$=Object(p["a"])(window,"touchmove",{passive:!1}),this.touchend$=Object(p["a"])(window,"touchend",{passive:!1})}},g={beforeCreate:function(){this.wheel$=Object(p["a"])(window,"wheel")}},y={methods:{clip:function(){var t=this.getDrawPos(),e=this.canvasEl.getContext("2d"),n=t.pos.swidth,r=t.pos.sheight;return this.canvasEl.width=n,this.canvasEl.height=r,e.fillStyle=this.bgColor,e.fillRect(0,0,n,r),e.translate(t.translate.rotateX,t.translate.rotateY),e.rotate(this.rotate*Math.PI/180),e.translate(t.translate.drawX-t.translate.rotateX,t.translate.drawY-t.translate.rotateY),e.drawImage(this.imgEl,0,0),this.canvasEl},callPreview:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;rf)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}}},c367:function(t,e,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");t.exports=n("30f1")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c383:function(t,e,n){"use strict";var r=n("5a2b"),i=n.n(r);i.a},c3a1:function(t,e,n){var r=n("e6f3"),i=n("1691");t.exports=Object.keys||function(t){return r(t,i)}},c539:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"===typeof Symbol&&Symbol.observable||"@@observable"},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),c=n("6a99"),s=n("79e5"),u=n("9093").f,f=n("11e9").f,l=n("86cc").f,h=n("aa77").trim,p="Number",d=r[p],b=d,v=d.prototype,m=o(n("2aeb")(v))==p,g="trim"in String.prototype,y=function(t){var e=c(t,!1);if("string"==typeof e&&e.length>2){e=g?e.trim():h(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,s=e.slice(2),u=0,f=s.length;ui)return NaN;return parseInt(s,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(m?s(function(){v.valueOf.call(n)}):o(n)!=p)?a(new b(y(e)),n,d):y(e)};for(var w,x=n("9e1e")?u(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;x.length>S;S++)i(b,w=x[S])&&!i(d,w)&&l(d,w,f(b,w));d.prototype=v,v.constructor=d,n("2aba")(r,p,d)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).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},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ccb9:function(t,e,n){e.f=n("5168")},cd78:function(t,e,n){var r=n("e4ae"),i=n("f772"),o=n("656e");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}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,c=i(t),s=0,u=[];for(n in c)n!=a&&r(c,n)&&u.push(n);while(e.length>s)r(c,n=e[s++])&&(~o(u,n)||u.push(n));return u}},ce19:function(t,e,n){"use strict";var r=n("2bd2"),i=n("a6e8"),o=n("6e77"),a=n("e9b9"),c=n("fae9"),s=new a["a"](c["a"]);var u=n("9ab4"),f=n("1453");function l(){return function(t){return t.lift(new h(t))}}var h=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return u["a"](e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(f["a"]),d=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return u["a"](e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new i["a"],t.add(this.source.subscribe(new m(this.getSubject(),this))),t.closed?(this._connection=null,t=i["a"].EMPTY):this._connection=t),t},e.prototype.refCount=function(){return l()(this)},e}(a["a"]),b=d.prototype,v={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:b._subscribe},_isComplete:{value:b._isComplete,writable:!0},getSubject:{value:b.getSubject},connect:{value:b.connect},refCount:{value:b.refCount}},m=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return u["a"](e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(r["b"]);f["a"];function g(t,e){return function(n){var r;if(r="function"===typeof t?t:function(){return t},"function"===typeof e)return n.lift(new w(r,e));var i=Object.create(n,v);return i.source=n,i.subjectFactory=r,i}}var y,w=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function x(){return new r["a"]}function S(){return function(t){return l()(g(x)(t))}}var j=function(){};function O(t){y=t,j=y.util.warn||j}function _(t){return t&&"function"===typeof t.subscribe}function E(t){return t&&"function"===typeof t.next}function P(t,e,n){e in t?t[e]=n:y.util.defineReactive(t,e,n)}function C(t){return[t.arg].concat(Object.keys(t.modifiers)).join(":")}var $={created:function(){var t=this,e=t.$options.domStreams;e&&e.forEach(function(e){t[e]=new r["a"]});var n=t.$options.observableMethods;n&&(Array.isArray(n)?n.forEach(function(e){t[e+"$"]=t.$createObservableMethod(e)}):Object.keys(n).forEach(function(e){t[n[e]]=t.$createObservableMethod(e)}));var o=t.$options.subscriptions;"function"===typeof o&&(o=o.call(t)),o&&(t.$observables={},t._subscription=new i["a"],Object.keys(o).forEach(function(e){P(t,e,void 0);var n=t.$observables[e]=o[e];_(n)?t._subscription.add(o[e].subscribe(function(n){t[e]=n},function(t){throw t})):j('Invalid Observable found in subscriptions option with key "'+e+'".',t)}))},beforeDestroy:function(){this._subscription&&this._subscription.unsubscribe()}},T={bind:function(t,e,n){var r=e.value,i=e.arg,a=e.expression,c=e.modifiers;if(E(r))r={subject:r};else if(!r||!E(r.subject))return void j('Invalid Subject found in directive with key "'+a+'".'+a+" should be an instance of Subject or have the type { subject: Subject, data: any }.",n.context);var s={stop:function(t){return t.stopPropagation()},prevent:function(t){return t.preventDefault()}},u=Object.keys(s).filter(function(t){return c[t]}),f=r.subject,l=(f.next||f.onNext).bind(f);if(!c.native&&n.componentInstance)r.subscription=n.componentInstance.$eventToObservable(i).subscribe(function(t){u.forEach(function(e){return s[e](t)}),l({event:t,data:r.data})});else{var h=r.options?[t,i,r.options]:[t,i];r.subscription=o["a"].apply(void 0,h).subscribe(function(t){u.forEach(function(e){return s[e](t)}),l({event:t,data:r.data})}),(t._rxHandles||(t._rxHandles={}))[C(e)]=r}},update:function(t,e){var n=e.value,r=t._rxHandles&&t._rxHandles[C(e)];r&&n&&E(n.subject)&&(r.data=n.data)},unbind:function(t,e){var n=C(e),r=t._rxHandles&&t._rxHandles[n];r&&(r.subscription&&r.subscription.unsubscribe(),t._rxHandles[n]=null)}};function L(t,e){var n=this,r=new a["a"](function(r){var o,a=function(){o=n.$watch(t,function(t,e){r.next({oldValue:e,newValue:t})},e)};return n._data?a():n.$once("hook:created",a),new i["a"](function(){o&&o()})});return r}function I(t,e){if("undefined"===typeof window)return s;var n=this,r=document.documentElement,o=new a["a"](function(o){function a(e){if(n.$el){if(null===t&&n.$el===e.target)return o.next(e);for(var r=n.$el.querySelectorAll(t),i=e.target,a=0,c=r.length;as)r(c,n=e[s++])&&(~o(u,n)||u.push(n));return u}},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";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("fae9");function f(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:u["a"]}var l=n("88bc");n.d(e,"a",function(){return h});var 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=2&&(n=!0),function(r){return r.lift(new b(t,e,n))}}var b=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new v(t,this.accumulator,this.seed,this.hasSeed))},t}(),v=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return h["a"](e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(p["a"]),m=n("2bd2"),g={extends:{methods:o["b"],mixins:[o["d"],o["e"],o["c"]]},subscriptions:function(){var t=this;return this.setWH$=new m["a"],this.setTL$=new m["a"],this.onchange$=new m["a"],this.mousedownDrag$=this.mousedown$.pipe(Object(a["a"])(this.isDragElement),Object(c["a"])(this.prevent),Object(c["a"])(this.dragDownPos),Object(s["a"])(function(){return t.mousemove$.pipe(Object(c["a"])(t.prevent),Object(u["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(c["a"])(function(t){return t.touches[0]}),Object(c["a"])(this.dragDownPos),Object(s["a"])(function(){return t.touchmove$.pipe(Object(u["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(c["a"])(function(t){return t.deltaY}),Object(c["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(c["a"])(this.towPointsTouches),Object(c["a"])(this.setOrigin),Object(s["a"])(function(){return t.touchmove$.pipe(Object(u["a"])(t.touchend$),Object(a["a"])(function(t){return 2===t.touches.length}),Object(c["a"])(t.towPointsTouches))},function(t,e){var n=t.down,r=t.origin;return{down:n,move:e,origin:r}}),Object(c["a"])(this.twoPointsDelta)),this.wheelZoom$=(new m["a"]).pipe(Object(f["a"])(1),Object(l["a"])(this.wheelEvent$),d(function(e,n){var r=t.zoomRate*Math.max(e,.8)*n;return Math.max(e+r,t.minScale)})),this.touchZoom$=(new m["a"]).pipe(Object(f["a"])(1),Object(l["a"])(this.touchTwoFinger$),d(function(e,n){var r=Math.max(e,.8)*n;return Math.max(e+r,t.minScale)})),this.zoomSubject$=(new m["a"]).pipe(Object(l["a"])(this.setWH$),Object(l["a"])(this.wheelZoom$),Object(l["a"])(this.touchZoom$)),this.dragSubject$=(new m["a"]).pipe(Object(f["a"])({left:0,top:0}),Object(l["a"])(this.setTL$),Object(l["a"])(this.mousedownDrag$.pipe(Object(l["a"])(this.touchdownDrag$),Object(c["a"])(this.delta),Object(c["a"])(this.toPercentage)))),{bgWH$:this.zoomSubject$,bgTL$:this.dragSubject$}},data:function(){return{imgRatio:NaN}},props:{src:{type:String},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}},mounted:function(){var t=this;this.imgEl=this.$el.querySelector(".img"),this.wrapEl=this.$el.querySelector(".wrap"),this.areaEl=this.$el.querySelector(".area"),this.scaleEl=this.$el.querySelector(".img-scale"),this.translateEl=this.$el.querySelector(".img-translate"),this.stemEl=this.$el.querySelector(".stem-bg"),this.canvasEl=this.$el.querySelector(".hidden-canvas"),this.$subscribeTo(this.zoomSubject$.pipe(Object(l["a"])(this.dragSubject$),Object(l["a"])(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.resetData(),this.imgRatio=this.imgEl.naturalWidth/this.imgEl.naturalHeight,this.stemEl.width=this.imgEl.naturalWidth,this.stemEl.height=this.imgEl.naturalHeight,this.callPreview("setData",{src:this.src,bgColor:this.bgColor})},resetData:function(){this.setTL$.next({left:0,top:0}),this.setWH$.next(1)}},computed:{areaStyle:function(){var t={color:this.shadow,borderWidth:this.border+"px",borderColor:this.borderColor,boxShadow:"0 0 0 "+this._shadow,borderRadius:this.round?"50%":""};return this.ratio>=1?t.width="50%":t.height="50%",t},scaleStyle:function(){var t=this.bgWH$;return{transform:"scale(".concat(t,")")}},translateStyle:function(){var t=this.bgTL$.left,e=this.bgTL$.top;return{transform:"translate(".concat(t,"%,").concat(e,"%)")}},bgStyle:function(){return this.onchange$.next(0),{transform:"rotate(".concat(this.rotate,"deg)")}},wrapStyle:function(){return{backgroundColor:this.watchPreData.bgColor}},stemArea:function(){return{width:10,height:10/this.ratio}},stemStyle:function(){var t={};return this.ratio>=1?t.width="100%":t.height="100%",t},_shadow:function(){return(this.imgRatio>=1?100:100/this.imgRatio)+"vw"},watchPreData:function(){return this.callPreview("setData",{bgColor:this.bgColor}),{bgColor:this.bgColor}}}},y=g,w=(n("c383"),n("2877")),x=Object(w["a"])(y,r,i,!1,null,"23a39568",null);e["a"]=x.exports},f201:function(t,e,n){var r=n("e4ae"),i=n("79aa"),o=n("5168")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},f559:function(t,e,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",c=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(t){var e=o(this,t,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return c?c.call(e,r,n):e.slice(n,n+r.length)===r}})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},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;n0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e46":function(t,e,n){"use strict";function r(t){return t&&"function"===typeof t.schedule}n.d(e,"a",function(){return r})},"9f2d":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("9ab4"),i=n("3060"),o=n("ce8b");function a(t){return function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new s(t),r=Object(o["a"])(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),s=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(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i["a"])},a159:function(t,e,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),c=function(){},s="prototype",u=function(){var t,e=n("1ec9")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[s][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[s]=r(t),n=new c,c[s]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},a22a:function(t,e,n){var r=n("d864"),i=n("b0dc"),o=n("3702"),a=n("e4ae"),c=n("b447"),s=n("7cd6"),u={},f={};e=t.exports=function(t,e,n,l,h){var p,d,b,v,m=h?function(){return t}:s(t),g=r(n,l,e?2:1),y=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(p=c(t.length);p>y;y++)if(v=e?g(a(d=t[y])[0],d[1]):g(t[y]),v===u||v===f)return v}else for(b=m.call(t);!(d=b.next()).done;)if(v=i(b,g,d.value,e),v===u||v===f)return v};e.BREAK=u,e.RETURN=f},a3c3:function(t,e,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a6c5:function(t,e,n){"use strict";var r=n("9ab4"),i=n("ce8b"),o=n("3060"),a=n("acf8"),c=n("ebb6"),s=n("e9b9"),u=n("fd66"),f=n("d9e3"),l=n("c539");function h(t){return t&&"function"===typeof t[l["a"]]}var p=n("127f");function d(t){return t&&"function"===typeof t[p["a"]]}var b=n("2144"),v=n("a6e8"),m=n("4b95");function g(t,e){return e?new s["a"](function(n){var r=new v["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}):new s["a"](Object(m["a"])(t))}var y=n("bbae");function w(t,e){if(!t)throw new Error("Iterable cannot be null");return e?new s["a"](function(n){var r,i=new v["a"];return i.add(function(){r&&"function"===typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[p["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}):new s["a"](Object(y["a"])(t))}var x=n("25c4");function S(t,e){return e?new s["a"](function(n){var r=new v["a"];return r.add(e.schedule(function(){var i=t[l["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}):new s["a"](Object(x["a"])(t))}var j=n("1716");function O(t,e){if(!e)return t instanceof s["a"]?t:new s["a"](Object(j["a"])(t));if(null!=t){if(h(t))return S(t,e);if(Object(u["a"])(t))return g(t,e);if(Object(f["a"])(t))return Object(b["a"])(t,e);if(d(t)||"string"===typeof t)return w(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function _(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"===typeof e?function(r){return r.pipe(_(function(n,r){return O(t(n,r)).pipe(Object(c["a"])(function(t,i){return e(n,t,r,i)}))},n))}:("number"===typeof e&&(n=e),function(e){return e.lift(new E(t,n))})}n.d(e,"a",function(){return _});var E=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 P(t,this.project,this.concurrent))},t}(),P=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.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o["a"])},a6e8:function(t,e,n){"use strict";var r=n("8ac6"),i=n("31c4"),o=n("d817");function a(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}a.prototype=Object.create(Error.prototype);var c=a;n.d(e,"a",function(){return s});var s=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,a=n._parent,s=n._parents,f=n._unsubscribe,l=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;var h=-1,p=s?s.length:0;while(a)a.remove(this),a=++h0?Object(r["a"])(t,n):c(n):o(t[0]),e)}}n.d(e,"a",function(){return d})},a9ea:function(t,e,n){},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),c="["+a+"]",s="​…",u=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),l=function(t,e,n){var i={},c=o(function(){return!!a[t]()||s[t]()!=s}),u=i[t]=c?e(h):a[t];n&&(i[n]=u),r(r.P+r.F*c,"String",i)},h=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},aae3:function(t,e,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},aba2:function(t,e,n){var r=n("e53d"),i=n("4178").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,c=r.Promise,s="process"==n("6b4c")(a);t.exports=function(){var t,e,n,u=function(){var r,i;s&&(r=a.domain)&&r.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var f=c.resolve(void 0);n=function(){f.then(u)}}else n=function(){i.call(r,u)};else{var l=!0,h=document.createTextNode("");new o(u).observe(h,{characterData:!0}),n=function(){h.data=l=!l}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),c=n("32e9"),s=n("84f2"),u=n("2b4c"),f=u("iterator"),l=u("toStringTag"),h=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),b=0;b0?i(r(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},bbae:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("127f"),i=function(t){return function(e){var n=t[r["a"]]();do{var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}while(1);return"function"===typeof n.return&&e.add(function(){n.return&&n.return()}),e}}},bc00:function(t,e,n){"use strict";n("ac6a");var r=n("5176"),i=n.n(r),o={prevent:function(t){return t.preventDefault(),t},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}},a=o,c=(n("cadf"),n("96cf"),n("5d58")),s=n.n(c),u={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},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 i()(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.$el.querySelector(".drag-inset")},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,e){var n,r,i,o,a,c,s,u,f=this.areaPos();return!0===t.r&&(n=t.offsetLeft,s=f.width-n,a=e.clientX-t.left),!0===t.l&&(i=f.right-t.right,s=f.width-i,a=t.right-e.clientX),!0===t.b&&(r=t.offsetTop,u=f.height-r,c=e.clientY-t.top),!0===t.t&&(o=f.bottom-t.bottom,u=f.height-o,c=t.bottom-e.clientY),a=Math.min(a,s),c=Math.min(c,u),{width:a,height:c,top:r,left:n,right:i,bottom:o,maxWidth:s,maxHeight:u}},$set_minWH:function(t){return{width:Math.max(t.width,1),height:Math.max(t.height,1)}},$set_ratioWH:function(t){var e=t.width,n=t.height,r=t.maxWidth,i=t.maxHeight;if(!this.ratio)return{width:e,height:n};var o=this.ratioPos({width:e,height:n});return o.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}},$set_initWHTL:function(){var t,e,n=50,r=50;return this.ratio&&(this.ratio>this.imgRatio?r=n/this.ratio*this.imgRatio:n=r*this.ratio/this.imgRatio),t=(100-n)/2,e=(100-r)/2,this.setTL$.next({left:t,top:e}),{width:n,height:r}},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.$el.querySelector(".drag-inset")},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:in,t:or}},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].clientXe.clientX&&(e.clientX=i.left),r.t&&n.clientYe.clientY&&(e.clientY=i.top),{down:e,move:n}},getCreatePos:function(t,e){var n=e.clientX>t.clientX?"r":"l",r=e.clientY>t.clientY?"b":"t",i={top:t.clientY,right:t.clientX,bottom:t.clientY,left:t.clientX,offsetTop:this.eToArea(t,"top"),offsetLeft:this.eToArea(t,"left")};return i[n]=!0,i[r]=!0,i},getDrawPos:function(){var t=this.zoomPos(),e=this.scaleEl.getBoundingClientRect(),n=this.imgEl.naturalWidth,r=e.width,i=t.left-e.left+this.border,o=t.top-e.top+this.border,a=t.width-2*this.border,c=t.height-2*this.border,u=n/r,f={rotateX:(e.left+e.width/2-(t.left+this.border))*u,rotateY:(e.top+e.height/2-(t.top+this.border))*u,drawX:(e.left-(t.left+this.border))*u,drawY:(e.top-(t.top+this.border))*u},l={sx:i*u,sy:o*u,swidth:a*u,sheight:c*u,dx:0,dy:0,dwidth:a*u,dheight:c*u};return l[s.a]=regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:t.t0=regeneratorRuntime.keys(l);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,l[e];case 5:t.next=1;break;case 7:case"end":return t.stop()}},t,this)}),{pos:l,translate:f}}},f=u,l={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(){var t=this.areaEl.getBoundingClientRect(),e=this.translatePos(),n=this.imgEl.naturalWidth,r=t.left-e.left+this.border,i=t.top-e.top+this.border,o=n/e.width,a={rotateX:(e.left+e.width/2-(t.left+this.border))*o,rotateY:(e.top+e.height/2-(t.top+this.border))*o,drawX:(e.left-(t.left+this.border))*o,drawY:(e.top-(t.top+this.border))*o},c={sx:r*o,sy:i*o,swidth:(t.width-2*this.border)*o,sheight:(t.height-2*this.border)*o,dx:0,dy:0,dwidth:(t.width-2*this.border)*o,dheight:(t.height-2*this.border)*o};return c[s.a]=regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:t.t0=regeneratorRuntime.keys(c);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,c[e];case 5:t.next=1;break;case 7:case"end":return t.stop()}},t,this)}),{pos:c,translate:a}}},h=l,p=n("6e77"),d=n("0f53");n.d(e,"a",function(){return b}),n.d(e,"b",function(){return v}),n.d(e,"d",function(){return m}),n.d(e,"e",function(){return g}),n.d(e,"c",function(){return y});var b=i()(f,a),v=i()(h,a),m={beforeCreate:function(){this.mousedown$=Object(p["a"])(window,"mousedown"),this.mousemove$=Object(p["a"])(window,"mousemove"),this.mouseup$=Object(p["a"])(window,"mouseup"),this.touchstart$=Object(p["a"])(window,"touchstart",{passive:!1}),this.touchmove$=Object(p["a"])(window,"touchmove",{passive:!1}),this.touchend$=Object(p["a"])(window,"touchend",{passive:!1})}},g={beforeCreate:function(){this.wheel$=Object(p["a"])(window,"wheel",{passive:!1})}},y={methods:{clip:function(){var t=this.getDrawPos(),e=this.canvasEl.getContext("2d"),n=t.pos.swidth,r=t.pos.sheight;return this.canvasEl.width=n,this.canvasEl.height=r,e.fillStyle=this.bgColor,e.fillRect(0,0,n,r),e.translate(t.translate.rotateX,t.translate.rotateY),e.rotate(this.rotate*Math.PI/180),e.translate(t.translate.drawX-t.translate.rotateX,t.translate.drawY-t.translate.rotateY),e.drawImage(this.imgEl,0,0),this.canvasEl},callPreview:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;rf)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}}},c367:function(t,e,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");t.exports=n("30f1")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c383:function(t,e,n){"use strict";var r=n("5a2b"),i=n.n(r);i.a},c3a1:function(t,e,n){var r=n("e6f3"),i=n("1691");t.exports=Object.keys||function(t){return r(t,i)}},c539:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"===typeof Symbol&&Symbol.observable||"@@observable"},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),c=n("6a99"),s=n("79e5"),u=n("9093").f,f=n("11e9").f,l=n("86cc").f,h=n("aa77").trim,p="Number",d=r[p],b=d,v=d.prototype,m=o(n("2aeb")(v))==p,g="trim"in String.prototype,y=function(t){var e=c(t,!1);if("string"==typeof e&&e.length>2){e=g?e.trim():h(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,s=e.slice(2),u=0,f=s.length;ui)return NaN;return parseInt(s,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(m?s(function(){v.valueOf.call(n)}):o(n)!=p)?a(new b(y(e)),n,d):y(e)};for(var w,x=n("9e1e")?u(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;x.length>S;S++)i(b,w=x[S])&&!i(d,w)&&l(d,w,f(b,w));d.prototype=v,v.constructor=d,n("2aba")(r,p,d)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).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},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ccb9:function(t,e,n){e.f=n("5168")},cd78:function(t,e,n){var r=n("e4ae"),i=n("f772"),o=n("656e");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}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,c=i(t),s=0,u=[];for(n in c)n!=a&&r(c,n)&&u.push(n);while(e.length>s)r(c,n=e[s++])&&(~o(u,n)||u.push(n));return u}},ce19:function(t,e,n){"use strict";var r=n("2bd2"),i=n("a6e8"),o=n("6e77"),a=n("e9b9"),c=n("fae9"),s=new a["a"](c["a"]);var u=n("9ab4"),f=n("1453");function l(){return function(t){return t.lift(new h(t))}}var h=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return u["a"](e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(f["a"]),d=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return u["a"](e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new i["a"],t.add(this.source.subscribe(new m(this.getSubject(),this))),t.closed?(this._connection=null,t=i["a"].EMPTY):this._connection=t),t},e.prototype.refCount=function(){return l()(this)},e}(a["a"]),b=d.prototype,v={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:b._subscribe},_isComplete:{value:b._isComplete,writable:!0},getSubject:{value:b.getSubject},connect:{value:b.connect},refCount:{value:b.refCount}},m=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return u["a"](e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(r["b"]);f["a"];function g(t,e){return function(n){var r;if(r="function"===typeof t?t:function(){return t},"function"===typeof e)return n.lift(new w(r,e));var i=Object.create(n,v);return i.source=n,i.subjectFactory=r,i}}var y,w=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function x(){return new r["a"]}function S(){return function(t){return l()(g(x)(t))}}var j=function(){};function O(t){y=t,j=y.util.warn||j}function _(t){return t&&"function"===typeof t.subscribe}function E(t){return t&&"function"===typeof t.next}function P(t,e,n){e in t?t[e]=n:y.util.defineReactive(t,e,n)}function C(t){return[t.arg].concat(Object.keys(t.modifiers)).join(":")}var $={created:function(){var t=this,e=t.$options.domStreams;e&&e.forEach(function(e){t[e]=new r["a"]});var n=t.$options.observableMethods;n&&(Array.isArray(n)?n.forEach(function(e){t[e+"$"]=t.$createObservableMethod(e)}):Object.keys(n).forEach(function(e){t[n[e]]=t.$createObservableMethod(e)}));var o=t.$options.subscriptions;"function"===typeof o&&(o=o.call(t)),o&&(t.$observables={},t._subscription=new i["a"],Object.keys(o).forEach(function(e){P(t,e,void 0);var n=t.$observables[e]=o[e];_(n)?t._subscription.add(o[e].subscribe(function(n){t[e]=n},function(t){throw t})):j('Invalid Observable found in subscriptions option with key "'+e+'".',t)}))},beforeDestroy:function(){this._subscription&&this._subscription.unsubscribe()}},T={bind:function(t,e,n){var r=e.value,i=e.arg,a=e.expression,c=e.modifiers;if(E(r))r={subject:r};else if(!r||!E(r.subject))return void j('Invalid Subject found in directive with key "'+a+'".'+a+" should be an instance of Subject or have the type { subject: Subject, data: any }.",n.context);var s={stop:function(t){return t.stopPropagation()},prevent:function(t){return t.preventDefault()}},u=Object.keys(s).filter(function(t){return c[t]}),f=r.subject,l=(f.next||f.onNext).bind(f);if(!c.native&&n.componentInstance)r.subscription=n.componentInstance.$eventToObservable(i).subscribe(function(t){u.forEach(function(e){return s[e](t)}),l({event:t,data:r.data})});else{var h=r.options?[t,i,r.options]:[t,i];r.subscription=o["a"].apply(void 0,h).subscribe(function(t){u.forEach(function(e){return s[e](t)}),l({event:t,data:r.data})}),(t._rxHandles||(t._rxHandles={}))[C(e)]=r}},update:function(t,e){var n=e.value,r=t._rxHandles&&t._rxHandles[C(e)];r&&n&&E(n.subject)&&(r.data=n.data)},unbind:function(t,e){var n=C(e),r=t._rxHandles&&t._rxHandles[n];r&&(r.subscription&&r.subscription.unsubscribe(),t._rxHandles[n]=null)}};function L(t,e){var n=this,r=new a["a"](function(r){var o,a=function(){o=n.$watch(t,function(t,e){r.next({oldValue:e,newValue:t})},e)};return n._data?a():n.$once("hook:created",a),new i["a"](function(){o&&o()})});return r}function I(t,e){if("undefined"===typeof window)return s;var n=this,r=document.documentElement,o=new a["a"](function(o){function a(e){if(n.$el){if(null===t&&n.$el===e.target)return o.next(e);for(var r=n.$el.querySelectorAll(t),i=e.target,a=0,c=r.length;as)r(c,n=e[s++])&&(~o(u,n)||u.push(n));return u}},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";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("fae9");function f(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:u["a"]}var l=n("88bc");n.d(e,"a",function(){return h});var 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=2&&(n=!0),function(r){return r.lift(new b(t,e,n))}}var b=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new v(t,this.accumulator,this.seed,this.hasSeed))},t}(),v=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return h["a"](e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(p["a"]),m=n("2bd2"),g={extends:{methods:o["b"],mixins:[o["d"],o["e"],o["c"]]},subscriptions:function(){var t=this;return this.setWH$=new m["a"],this.setTL$=new m["a"],this.onchange$=new m["a"],this.mousedownDrag$=this.mousedown$.pipe(Object(a["a"])(this.isDragElement),Object(c["a"])(this.prevent),Object(c["a"])(this.dragDownPos),Object(s["a"])(function(){return t.mousemove$.pipe(Object(c["a"])(t.prevent),Object(u["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(c["a"])(function(t){return t.touches[0]}),Object(c["a"])(this.dragDownPos),Object(s["a"])(function(){return t.touchmove$.pipe(Object(u["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(c["a"])(function(t){return t.deltaY}),Object(c["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(c["a"])(this.towPointsTouches),Object(c["a"])(this.setOrigin),Object(s["a"])(function(){return t.touchmove$.pipe(Object(u["a"])(t.touchend$),Object(a["a"])(function(t){return 2===t.touches.length}),Object(c["a"])(t.towPointsTouches))},function(t,e){var n=t.down,r=t.origin;return{down:n,move:e,origin:r}}),Object(c["a"])(this.twoPointsDelta)),this.wheelZoom$=(new m["a"]).pipe(Object(f["a"])(1),Object(l["a"])(this.wheelEvent$),d(function(e,n){var r=t.zoomRate*Math.max(e,.8)*n;return Math.max(e+r,t.minScale)})),this.touchZoom$=(new m["a"]).pipe(Object(f["a"])(1),Object(l["a"])(this.touchTwoFinger$),d(function(e,n){var r=Math.max(e,.8)*n;return Math.max(e+r,t.minScale)})),this.zoomSubject$=(new m["a"]).pipe(Object(l["a"])(this.setWH$),Object(l["a"])(this.wheelZoom$),Object(l["a"])(this.touchZoom$)),this.dragSubject$=(new m["a"]).pipe(Object(f["a"])({left:0,top:0}),Object(l["a"])(this.setTL$),Object(l["a"])(this.mousedownDrag$.pipe(Object(l["a"])(this.touchdownDrag$),Object(c["a"])(this.delta),Object(c["a"])(this.toPercentage)))),{bgWH$:this.zoomSubject$,bgTL$:this.dragSubject$}},data:function(){return{imgRatio:NaN}},props:{src:{type:String},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}},mounted:function(){var t=this;this.imgEl=this.$el.querySelector(".img"),this.wrapEl=this.$el.querySelector(".wrap"),this.areaEl=this.$el.querySelector(".area"),this.scaleEl=this.$el.querySelector(".img-scale"),this.translateEl=this.$el.querySelector(".img-translate"),this.stemEl=this.$el.querySelector(".stem-bg"),this.canvasEl=this.$el.querySelector(".hidden-canvas"),this.$subscribeTo(this.zoomSubject$.pipe(Object(l["a"])(this.dragSubject$),Object(l["a"])(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.resetData(),this.imgRatio=this.imgEl.naturalWidth/this.imgEl.naturalHeight,this.stemEl.width=this.imgEl.naturalWidth,this.stemEl.height=this.imgEl.naturalHeight,this.callPreview("setData",{src:this.src,bgColor:this.bgColor})},resetData:function(){this.setTL$.next({left:0,top:0}),this.setWH$.next(1)}},computed:{areaStyle:function(){var t={color:this.shadow,borderWidth:this.border+"px",borderColor:this.borderColor,boxShadow:"0 0 0 "+this._shadow,borderRadius:this.round?"50%":""};return this.ratio>=1?t.width="50%":t.height="50%",t},scaleStyle:function(){var t=this.bgWH$;return{transform:"scale(".concat(t,")")}},translateStyle:function(){var t=this.bgTL$.left,e=this.bgTL$.top;return{transform:"translate(".concat(t,"%,").concat(e,"%)")}},bgStyle:function(){return this.onchange$.next(0),{transform:"rotate(".concat(this.rotate,"deg)")}},wrapStyle:function(){return{backgroundColor:this.watchPreData.bgColor}},stemArea:function(){return{width:10,height:10/this.ratio}},stemStyle:function(){var t={};return this.ratio>=1?t.width="100%":t.height="100%",t},_shadow:function(){return(this.imgRatio>=1?100:100/this.imgRatio)+"vw"},watchPreData:function(){return this.callPreview("setData",{bgColor:this.bgColor}),{bgColor:this.bgColor}}}},y=g,w=(n("c383"),n("2877")),x=Object(w["a"])(y,r,i,!1,null,"23a39568",null);e["a"]=x.exports},f201:function(t,e,n){var r=n("e4ae"),i=n("79aa"),o=n("5168")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},f559:function(t,e,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",c=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(t){var e=o(this,t,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return c?c.call(e,r,n):e.slice(n,n+r.length)===r}})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},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