diff --git a/dist/js/field.js b/dist/js/field.js index 269bbcde..7c7c55e6 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -1 +1 @@ -!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}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=58)}([function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(3);var i=n(16),o=n(19);var a=n(7),s=n(23);function u(t){return 0===t.length?s.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var c=n(5),l=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 a=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(a?s.add(a.call(s,this.source)):s.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;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}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=f(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e=0&&f.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return b(e,t.attrs),v(t,e),e}function b(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function y(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=l++;n=c||(c=m(e)),r=x.bind(null,n,a,!1),i=x.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",b(e,t.attrs),v(t,e),e}(e),r=S.bind(null,n,e),i=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),r=j.bind(null,n),i=function(){g(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=d(t,e);return p(n,e),function(t){for(var r=[],i=0;it.height-e.height;return{x:n,y:!n}},zoomingPosition:function({down:t,move:e}){let n=e.clientX>t.clientX?"r":"l",r=e.clientY>t.clientY?"b":"t";const i=()=>this.eToArea(t,"top"),o=()=>this.eToArea(t,"left"),a=i(),s=o(),u=this.areaPos();let c,l,f,h,p,d,v=0,g=0;const m=this.minWidth*u.width/100,b=this.ratio?m/this.ratio:this.minHeight*u.height/100;return"r"===n?(s+m>u.width?(t.clientX=u.right-m,c=s):c=o(),p=u.width-c,v=e.clientX-t.clientX):"l"===n&&(su.height?(t.clientY=u.bottom-b,l=a):l=i(),d=u.height-l,g=e.clientY-t.clientY):"t"===r&&(a{const t=o/this.ratio/i.height*100;e=Math.max(t,this.minHeight),r=(100-e)/2},u=()=>{const e=a*this.ratio/i.width*100;t=Math.max(e,this.minWidth),n=(100-t)/2};if((this.wrapRatio||this.imgRatio)<=this.ratio){if(s(),this.minHeight===e&&u(),t>100)throw new Error("Invalid ratio, wrapRatio, minWidth combination")}else if(u(),this.minWidth===t&&s(),e>100)throw new Error("Invalid ratio, wrapRatio, minWidth combination")}}else{if(tn,t:or}},setDownPosition:function(t){const e=this.judgeArea(t),n=this.zoomPos(),r=e.t?n.bottom:n.top;return{target:null,clientX:e.l?n.right:n.left,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){const r=this.areaPos(),i=e.touches[0].clientX=t.clientX&&(t.clientX=r.left),n.t&&e.clientY<=t.clientY?t.clientY=r.bottom:n.b&&e.clientY>=t.clientY&&(t.clientY=r.top),{down:t,move:e}},getDrawPos:function(t){const{wPixel:e,maxWPixel:n}=t||{},r=this.zoomPos(),i=this.imgPos(),o=this.imgEl.naturalWidth,a=i.width,s=r.left-i.left,u=r.top-i.top,c=r.width,l=r.height,f=o/a,h=n?Math.min(e||c*f,n):e||c*f,p={rotateX:(i.left+i.width/2-r.left)*f,rotateY:(i.top+i.height/2-r.top)*f,drawX:(i.left-r.left)*f,drawY:(i.top-r.top)*f},d={sx:s*f,sy:u*f,swidth:c*f,sheight:l*f,dx:0,dy:0,dwidth:h,dheight:h*l/c};return d[Symbol.iterator]=function*(){for(let t in d)yield d[t]},{pos:d,translate:p}}};var o={wrapPos:function(){return this.wrapEl.getBoundingClientRect()},scalePos:function(){return this.scaleEl.getBoundingClientRect()},translatePos:function(){return this.translateEl.getBoundingClientRect()},toX:function(t){return t/this.scalePos().width*100},toY:function(t){return t/this.scalePos().height*100},isDragElement:function(t){return this.wrapEl.contains(t.target)},dragDownPos:function(t){const e=this.translatePos(),n=this.scalePos();return{left:e.left-n.left,top:e.top-n.top,clientX:t.clientX,clientY:t.clientY}},delta:function({down:t,move:e}){return{left:e.clientX-t.clientX+t.left,top:e.clientY-t.clientY+t.top}},towPointsTouches:function(t){return t.touches},setOrigin:function(t){return{down:[t[0],t[1]],origin:this.scalePos().width}},twoPointsDelta:function({down:t,move:e}){const n=Math.abs(e[0].clientX-e[1].clientX)-Math.abs(t[0].clientX-t[1].clientX),r=Math.abs(e[0].clientY-e[1].clientY)-Math.abs(t[0].clientY-t[1].clientY);t[0]=e[0],t[1]=e[1];const i=this.wrapPos();return Math.abs(n)>=Math.abs(r)?n/i.width:r/i.height},getDrawPos:function(t){const{wPixel:e,maxWPixel:n}=t||{},r=this.areaEl.getBoundingClientRect(),i=this.translatePos(),o=this.imgEl.naturalWidth,a=r.left-i.left+this.border,s=r.top-i.top+this.border,u=o/i.width,c={rotateX:(i.left+i.width/2-(r.left+this.border))*u,rotateY:(i.top+i.height/2-(r.top+this.border))*u,drawX:(i.left-(r.left+this.border))*u,drawY:(i.top-(r.top+this.border))*u},l=r.width-2*this.border,f=r.height-2*this.border,h=n?Math.min(e||l*u,n):e||l*u,p={sx:a*u,sy:s*u,swidth:l*u,sheight:f*u,dx:0,dy:0,dwidth:h,dheight:h*f/l};return p[Symbol.iterator]=function*(){for(let t in p)yield p[t]},{pos:p,translate:c}},calcWheelScaling:function(t){const e=this.bgWH$;let n=this.zoomRate*Math.max(e,.8)*t;return Math.max(e+n,this.minScale)},calcTouchScaling:function(t){const e=this.bgWH$;let n=Math.max(e,.8)*t;return Math.max(e+n,this.minScale)}},a=n(91),s=n(15);const u=Object.assign(i,r),c=Object.assign(o,r),l={beforeCreate(){this.mousedown$=Object(a.a)(window,"mousedown"),this.mousemove$=Object(a.a)(window,"mousemove"),this.mouseup$=Object(a.a)(window,"mouseup"),this.touchstart$=Object(a.a)(window,"touchstart",{passive:!1}),this.touchmove$=Object(a.a)(window,"touchmove",{passive:!1}),this.touchend$=Object(a.a)(window,"touchend",{passive:!1})}},f={beforeCreate(){this.wheel$=Object(a.a)(window,"wheel",{passive:!1})}},h={methods:{clip:function(t){const e=this.getDrawPos(t),n=this.canvasEl.getContext("2d"),r=e.pos.swidth,i=e.pos.sheight;if(this.canvasEl.width=r,this.canvasEl.height=i,n.fillStyle=this.bgColor,n.fillRect(0,0,r,i),n.translate(e.translate.rotateX,e.translate.rotateY),n.rotate(this.rotate*Math.PI/180),n.translate(e.translate.drawX-e.translate.rotateX,e.translate.drawY-e.translate.rotateY),n.drawImage(this.imgEl,0,0),t){const t=document.createElement("CANVAS");return t.width=e.pos.dwidth,t.height=e.pos.dheight,t.getContext("2d").drawImage(this.canvasEl,0,0,e.pos.dwidth,e.pos.dheight),t}return this.canvasEl},callPreview:function(t,...e){const n=s.a.parentPropName;if(!this.preview)return;if(!this.$parent[n])return;let r=this.$parent[n][this.preview];r&&r.forEach(n=>{n[t](...e)})},emit:function(t,e){this.$emit(t,e)}}}},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()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c}));var r=n(1),i=n(3),o=n(2),a=n(31),s=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.a(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.a),u=(i.a,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.a));i.a;function c(t,e){if(!e.closed){if(t instanceof o.a)return t.subscribe(e);var n;try{n=Object(a.a)(t)(e)}catch(t){e.error(t)}return n}}},function(t,e,n){"use strict";e.a={parentPropName:"_imgPreviewLists"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),i=n(4);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(5),i=n(11),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(1),i=n(3);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},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?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(d.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(26),i=n(11),o=n(13),a=n(7),s=n(25),u=n(27),c=n(22),l=function(t){if(t&&"function"==typeof t[a.a])return l=t,function(t){var e=l[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(r.a)(t);if(Object(u.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,l,f=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+f+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return f}));var r=n(1),i=n(2),o=n(3),a=n(4),s=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),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),c=n(16),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),f=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[c.a]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i(t.event.preventDefault(),t.event)),Object(i.a)(()=>this.mousemove$.pipe(Object(o.a)(this.mouseup$),Object(r.a)(t=>t.clientX))),Object(a.a)(this.mousedown$.pipe(Object(r.a)(t=>t.event.clientX)))),this.touchEvent$=this.touchstart$.pipe(Object(r.a)(t=>(t.event.preventDefault(),t.event)),Object(i.a)(()=>this.touchmove$.pipe(Object(o.a)(this.touchend$),Object(r.a)(t=>t.touches[0].clientX))),Object(a.a)(this.touchstart$.pipe(Object(r.a)(t=>t.event.touches[0].clientX)))),this.dragSubject$=(new u.a).pipe(Object(a.a)(this.mouseEvent$),Object(a.a)(this.touchEvent$),Object(r.a)(this.getLeftPercent),Object(s.a)(0),Object(a.a)(this.init$)),{x$:this.dragSubject$}},props:{value:{type:Number,default:0},max:{type:Number,default:10},min:{type:Number,default:0}},computed:{barStyle:function(){return{left:100*this.x$+"%"}},val:function(){const t=this.max-this.min,e=this.getPos(),n=e.stickPos,r=e.maxLeft;return this.x$*n.width/r*t+this.min}},watch:{value:function(){this.initVal()}},mounted(){this.initVal(),this.$subscribeTo(this.dragSubject$,()=>{this.$emit("input",this.val)})},methods:{getPos:function(){const 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){const e=this.$el.querySelector(".stick").getBoundingClientRect(),n=this.$el.querySelector(".bar").getBoundingClientRect(),r=e.width-n.width;return Math.max(Math.min(t-e.left,r),0)/e.width},initVal:function(){const t=this.max-this.min,e=(this.value-this.min)/t,n=this.getPos();this.init$.next(e*n.maxLeft/n.stickPos.width)}}},f=(n(62),n(0)),h=Object(f.a)(l,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"clipper-range"},[e("div",{directives:[{name:"stream",rawName:"v-stream:mousedown",value:this.mousedown$,expression:"mousedown$",arg:"mousedown"},{name:"stream",rawName:"v-stream:touchstart",value:this.touchstart$,expression:"touchstart$",arg:"touchstart"}],staticClass:"wrap"},[e("div",{staticClass:"stick"}),this._v(" "),e("div",{staticClass:"bar",style:this.barStyle})])])}),[],!1,null,"7f413ba8",null);e.a=h.exports},function(t,e,n){"use strict";var r=n(55),i=n.n(r),o={props:{exif:{type:Boolean,default:!0},value:{type:String,default:""},check:{type:Boolean,default:!0}},data:()=>({uploadEl:null,file:null,DomString:""}),mounted(){this.uploadEl=this.$el.querySelector(".upload")},methods:{upload:function(t){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(()=>{this.$emit("input",this.DomString)})))},checkEXIF:function(){return new Promise((t,e)=>{if(!this.exif)return e(new Error);t()}).then(()=>this.getEXIF()).then(t=>this.getImageRect().then(({width:e,height:n})=>Promise.resolve({width:e,height:n,orientation:t})).catch(()=>Promise.reject(new Error))).then(this.tranformCanvas).catch(()=>Promise.resolve())},getEXIF:function(){return new Promise((t,e)=>{i.a.getData(this.file,(function(){const n=this.exifdata.Orientation;void 0!==n&&1!==n||e(new Error),t(n)}))})},getImageRect:function(){return new Promise((t,e)=>{const n=this.$el.querySelector(".stem");if(n.complete)return t({width:n.naturalWidth,height:n.naturalHeight});n.onload=function(){t({width:this.naturalWidth,height:this.naturalHeight})},n.onerror=function(){e(new Error("img on load error"))}})},tranformCanvas:function({width:t,height:e,orientation:n}){const r=document.createElement("canvas"),i=r.getContext("2d");switch(n>4&&n<9?(r.width=e,r.height=t):(r.width=t,r.height=e),n){case 2:i.transform(-1,0,0,1,t,0);break;case 3:i.transform(-1,0,0,-1,t,e);break;case 4:i.transform(1,0,0,-1,0,e);break;case 5:i.transform(0,1,1,0,0,0);break;case 6:i.transform(0,1,-1,0,e,0);break;case 7:i.transform(0,-1,-1,0,e,t);break;case 8:i.transform(0,-1,1,0,0,t)}i.drawImage(this.$el.querySelector(".stem"),0,0),this.DomString=r.toDataURL(this.file.type)},clear:function(t){t.target.value=null},triggerInput:function(){this.uploadEl&&this.uploadEl.click()}}},a=n(0),s=Object(a.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{click:t.triggerInput}},[t._t("default"),t._v(" "),n("img",{staticClass:"stem",staticStyle:{display:"none"},attrs:{src:t.DomString}}),t._v(" "),n("input",t._b({staticClass:"upload",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:function(e){return t.upload(e)},click:function(e){return t.clear(e)}}},"input",t.$attrs,!1))],2)}),[],!1,null,null,null);e.a=s.exports},function(t,e,n){"use strict";var r=n(12),i=n(95),o=n(96),a=n(24),s=n(92),u=n(93),c=n(97),l=n(94),f=n(32),h=n(54),p={extends:{methods:r.b,mixins:[r.d,r.e,r.c]},subscriptions(){return this.setWH$=new f.a,this.setTL$=new f.a,this.change$=new f.a,this.mousedownDrag$=this.mousedown$.pipe(Object(i.a)(this.isDragElement),Object(o.a)(this.prevent),Object(a.a)(this.dragDownPos),Object(s.a)(()=>this.mousemove$.pipe(Object(o.a)(this.prevent),Object(u.a)(this.mouseup$)),(t,e)=>({down:t,move:e}))),this.touchdownDrag$=this.touchstart$.pipe(Object(i.a)(this.isDragElement),Object(o.a)(this.prevent),Object(i.a)(t=>1===t.touches.length),Object(a.a)(t=>t.touches[0]),Object(a.a)(this.dragDownPos),Object(s.a)(()=>this.touchmove$.pipe(Object(u.a)(this.touchend$),Object(i.a)(t=>1===t.touches.length)),(t,e)=>({down:t,move:e.touches[0]}))),this.wheelEvent$=this.wheel$.pipe(Object(i.a)(this.isDragElement),Object(o.a)(this.prevent),Object(a.a)(t=>t.deltaY),Object(a.a)(t=>t>=0?-1:1)),this.touchTwoFinger$=this.touchstart$.pipe(Object(i.a)(this.isDragElement),Object(i.a)(t=>2===t.touches.length),Object(o.a)(this.prevent),Object(a.a)(this.towPointsTouches),Object(a.a)(this.setOrigin),Object(s.a)(()=>this.touchmove$.pipe(Object(u.a)(this.touchend$),Object(i.a)(t=>2===t.touches.length),Object(a.a)(this.towPointsTouches)),({down:t,origin:e},n)=>({down:t,move:n,origin:e})),Object(a.a)(this.twoPointsDelta)),this.wheelZoom$=(new f.a).pipe(Object(c.a)(1),Object(l.a)(this.wheelEvent$),Object(a.a)(this.calcWheelScaling)),this.touchZoom$=(new f.a).pipe(Object(c.a)(1),Object(l.a)(this.touchTwoFinger$),Object(a.a)(this.calcTouchScaling)),this.zoomFromNativeEvents=Object(h.a)(this.wheelZoom$,this.touchZoom$).pipe(Object(a.a)(this.handleZoomEvent)),this.zoomSubject$=(new f.a).pipe(Object(l.a)(this.setWH$),Object(l.a)(this.zoomFromNativeEvents)),this.dragSubject$=(new f.a).pipe(Object(c.a)({left:0,top:0}),Object(l.a)(this.setTL$),Object(l.a)(this.mousedownDrag$.pipe(Object(l.a)(this.touchdownDrag$),Object(a.a)(this.delta),Object(a.a)(this.toPercentage)))),this.onChange$=(new f.a).pipe(Object(l.a)(this.zoomSubject$),Object(l.a)(this.dragSubject$),Object(l.a)(this.change$)),{bgWH$:this.zoomSubject$,bgTL$:this.dragSubject$}},props:{src:{type:String,default:""},rotate:{type:Number,default:0},ratio:{type:Number,default:1},zoomRate:{type:Number,default:.04},minScale:{type:Number,default:.1},bgColor:{type:String,default:"white"},border:{type:Number,default:1},borderColor:{type:String,default:"white"},grid:{type:Boolean,default:!0},shadow:{type:String,default:"rgba(0, 0, 0, 0.4)"},round:{type:Boolean,default:!1},preview:{type:String,default:""},crossOrigin:{type:String,default:void 0},area:{type:Number,default:50},handleZoomEvent:{type:Function,default:t=>t}},data:()=>({imgRatio:NaN}),computed:{areaStyle:function(){const t={color:this.shadow,"border-width":this.border+"px !important","border-color":this.borderColor+" !important","box-shadow":`0 0 0 ${this._shadow} !important`,"border-radius":(this.round?"50%":"")+" !important"};return this.ratio>=1?t.width=this.area+"% !important":t.height=this.area+"% !important",t},scaleStyle:function(){return{transform:`scale(${this.bgWH$}) !important`}},translateStyle:function(){return{transform:`translate(${this.bgTL$.left}%,${this.bgTL$.top}%) !important`}},bgStyle:function(){return{transform:`rotate(${this.rotate}deg) !important`}},wrapStyle:function(){return{"background-color":this.bgColor+" !important",display:(this.src?"block":"none")+" !important"}},stemArea:function(){return{width:100,height:100/this.ratio}},eptStyle:function(){return{display:(this.src?"none":"block")+" !important"}},stemStyle:function(){const t={};return this.ratio>=1?t.width="100% !important":t.height="100% !important",t},_shadow:function(){return(this.imgRatio>=1?100:100/this.imgRatio)+"vw"}},watch:{ratio(){this.resetData(),this.change$.next(0)},bgColor(){this.callPreview("setData",{bgColor:this.bgColor})},bgStyle(){this.change$.next(0)},border(){this.change$.next(0)}},mounted(){this.imgEl=this.$el.querySelector(".js-clipper-fixed .js-img"),this.wrapEl=this.$el.querySelector(".js-clipper-fixed .js-wrap"),this.areaEl=this.$el.querySelector(".js-clipper-fixed .js-area"),this.scaleEl=this.$el.querySelector(".js-clipper-fixed .js-img-scale"),this.translateEl=this.$el.querySelector(".js-clipper-fixed .js-img-translate"),this.stemEl=this.$el.querySelector(".js-clipper-fixed .js-stem-bg"),this.canvasEl=document.createElement("CANVAS"),this.$subscribeTo(this.onChange$,()=>{this.$nextTick(()=>{const t=this.getDrawPos().pos,e=this.rotate;this.invalidDrawPos(t)||this.callPreview("locateImage",t,e)})})},methods:{imgLoaded:function(){this.imgRatio=this.imgEl.naturalWidth/this.imgEl.naturalHeight,this.stemEl.width=this.imgEl.naturalWidth,this.stemEl.height=this.imgEl.naturalHeight,this.resetData(),this.callPreview("setData",{src:this.src,bgColor:this.bgColor})},resetData:function(){this.setTL$.next({left:0,top:0});const t=this.ratio>this.imgRatio?this.imgRatio/this.ratio:1;this.setWH$.next(Math.max(t,this.minScale))}}},d=(n(66),n(0)),v=Object(d.a)(p,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"js-clipper-fixed"},[n("div",{staticClass:"vuejs-clipper-fixed__wrap js-wrap",style:t.wrapStyle},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-outer",attrs:{width:t.stemArea.width,height:t.stemArea.height}}),t._v(" "),n("div",{staticClass:"vuejs-clipper-fixed__img-center"},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-bg js-stem-bg"}),t._v(" "),n("div",{staticClass:"vuejs-clipper-fixed__img-scale js-img-scale",style:t.scaleStyle},[n("div",{staticClass:"vuejs-clipper-fixed__img-translate js-img-translate",style:t.translateStyle},[n("img",{staticClass:"vuejs-clipper-fixed__img js-img",style:t.bgStyle,attrs:{src:t.src,crossorigin:t.crossOrigin},on:{load:function(e){t.imgLoaded(),t.emit("load",e)},error:function(e){return t.emit("error",e)}}})])])]),t._v(" "),n("div",{staticClass:"vuejs-clipper-fixed__cover"},[n("div",{staticClass:"vuejs-clipper-fixed__area js-area",style:t.areaStyle},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-area",style:t.stemStyle,attrs:{width:t.stemArea.width,height:t.stemArea.height}}),t._v(" "),t.grid?n("div",{staticClass:"vuejs-clipper-fixed__grid"},t._l(4,(function(t){return n("div",{key:"gridItem"+t,staticClass:"vuejs-clipper-fixed__grid-item"})})),0):t._e()])])]),t._v(" "),n("div",{staticClass:"vuejs-clipper-fixed__placeholder",style:t.eptStyle},[t._t("placeholder")],2)])}),[],!1,null,"fb0a7a42",null);e.a=v.exports},function(t,e,n){"use strict";var r=n(12),i=n(32),o=n(24),a=n(94),s=n(95),u=n(96),c=n(92),l=n(93),f=n(97),h={extends:{methods:r.a,mixins:[r.d,r.c]},subscriptions(){return this.change$=new i.a,this.setWH$=new i.a,this.setTL$=new i.a,this.initWHTL$=(new i.a).pipe(Object(o.a)(this.initWHTL)),this.stop$=new i.a,this.mousedownDrag$=(new i.a).pipe(Object(a.a)(this.mousedown$),Object(s.a)(this.isDragElement),Object(u.a)(this.prevent),Object(o.a)(t=>this.eInZoom(t)),Object(c.a)(()=>this.mousemove$.pipe(Object(l.a)(this.mouseup$)),(t,e)=>({down:t,move:e}))),this.touchdownDrag$=this.touchstart$.pipe(Object(s.a)(this.isDragElement),Object(s.a)(t=>1===t.touches.length),Object(u.a)(this.prevent),Object(o.a)(t=>this.eInZoom(t.touches[0])),Object(c.a)(()=>this.touchmove$.pipe(Object(l.a)(this.touchend$),Object(s.a)(t=>1===t.touches.length),Object(o.a)(t=>t.touches[0])),(t,e)=>({down:t,move:e}))),this.mousedownZoom$=(new i.a).pipe(Object(a.a)(this.mousedown$),Object(s.a)(this.isZoomElement),Object(u.a)(this.prevent),Object(o.a)(this.setDownPosition),Object(c.a)(()=>this.mousemove$.pipe(Object(l.a)(this.mouseup$)),(t,e)=>({down:t,move:e}))),this.touchdownZoom$=this.touchstart$.pipe(Object(s.a)(this.isZoomElement),Object(s.a)(t=>1===t.touches.length),Object(u.a)(this.prevent),Object(o.a)(t=>t.touches[0]),Object(o.a)(this.setDownPosition),Object(c.a)(()=>this.touchmove$.pipe(Object(l.a)(this.touchend$),Object(s.a)(t=>1===t.touches.length),Object(o.a)(t=>t.touches[0])),(t,e)=>({down:t,move:e}))),this.touchTwoFingersZoom$=this.touchstart$.pipe(Object(s.a)(t=>2===t.touches.length),Object(s.a)(this.isTwoPointZoomElement),Object(u.a)(this.prevent),Object(o.a)(()=>{this.stop$.next(0);const t=this.zoomPos();return{event:event,zoom:t}}),Object(c.a)(()=>this.touchmove$.pipe(Object(s.a)(t=>2===t.touches.length),Object(u.a)(this.prevent),Object(l.a)(this.touchend$)),(t,e)=>this.getTwoTouchesPos(t.event,e,t.zoom))),this.mousedownCreate$=this.mousedown$.pipe(Object(s.a)(this.isCreateElement),Object(u.a)(this.prevent),Object(o.a)(this.getFakeDown),Object(c.a)(()=>this.mousemove$.pipe(Object(l.a)(this.mouseup$)),(t,e)=>({down:t,move:e}))),this.touchstartCreate$=this.touchstart$.pipe(Object(s.a)(this.isCreateElement),Object(u.a)(this.prevent),Object(o.a)(t=>t.touches[0]),Object(o.a)(this.getFakeDown),Object(c.a)(()=>this.touchmove$.pipe(Object(l.a)(this.touchend$),Object(l.a)(this.stop$),Object(s.a)(t=>1===t.touches.length),Object(s.a)(()=>this.touchCreate)),(t,e)=>({down:t,move:e.touches[0]}))),this.dragSubject$=(new i.a).pipe(Object(a.a)(this.mousedownDrag$),Object(a.a)(this.touchdownDrag$),Object(o.a)(this.dragMoving),Object(o.a)(this.repositionDrag),Object(a.a)(this.setTL$),Object(f.a)({left:0,top:0})),this.dragCreateSubject$=this.mousedownCreate$.pipe(Object(a.a)(this.touchstartCreate$),Object(o.a)(({down:t,move:e})=>({down:t,move:e}))),this.zoomSubject$=(new i.a).pipe(Object(a.a)(this.mousedownZoom$),Object(a.a)(this.touchdownZoom$),Object(a.a)(this.dragCreateSubject$),Object(o.a)(this.reverseDownPos),Object(o.a)(this.zoomingPosition),Object(a.a)(this.touchTwoFingersZoom$),Object(o.a)(this.setRatioWH),Object(o.a)(this.toPercentage),Object(o.a)(this.splitPos),Object(o.a)(t=>{const e=t.tl,n=t.wh;return this.setTL$.next(e),n}),Object(f.a)({width:0,height:0}),Object(a.a)(this.initWHTL$),Object(a.a)(this.setWH$)),this.onChange$=(new i.a).pipe(Object(a.a)(this.dragSubject$),Object(a.a)(this.change$)),{zoomTL$:this.dragSubject$,zoomWH$:this.zoomSubject$}},props:{preview:{type:String,default:""},src:{type:String,default:""},border:{type:Number,default:1},outline:{type:Number,default:6},corner:{type:Boolean,default:!0},grid:{type:Boolean,default:!0},mode:{type:String,default:"normal"},ratio:{type:Number,default:NaN},wrapRatio:{type:Number,default:NaN},touchCreate:{type:Boolean,default:!0},rotate:{type:Number,default:0},bgColor:{type:String,default:"white"},lineColor:{type:String,default:"#1baae8"},shadow:{type:String,default:"rgba(0, 0, 0, 0.4)"},scale:{type:Number,default:1},minWidth:{type:Number,default:1},minHeight:{type:Number,default:1},initWidth:{type:Number,default:50},initHeight:{type:Number,default:50},crossOrigin:{type:String,default:void 0}},data:()=>({imgRatio:NaN}),computed:{posObj:function(){let t={width:this.zoomWH$.width+"% !important",height:this.zoomWH$.height+"% !important",color:this.shadow+" !important","box-shadow":` 0 0 0 ${this.border}px ${this.lineColor}, 0 0 0 ${this._shadow}`};for(let e in this.zoomTL$)"number"==typeof this.zoomTL$[e]&&(t[e]=this.zoomTL$[e]+"% !important");return t},padStyle:function(){const t=(this.src?"block":"none")+" !important",e=this.bgColor+" !important";return{display:t,padding:this.border+"px","background-color":e}},inPadStyle:function(){return{padding:this.border+"px"}},scaleStyle:function(){return{transform:`scale(${this.scale}) !important`}},rotateStyle:function(){return{transform:`rotate(${this.rotate}deg) !important`}},eptStyle:function(){return{display:(this.src?"none":"block")+" !important"}},exOuterStyle:function(){const t=this.outline+this.border+"px";return{"border-width":t+" !important",transform:`translate(-${t},-${t}) !important`}},exInnerStyle:function(){return{padding:this.outline+"px !important"}},_shadow:function(){return(this.imgRatio>=1?100:100/this.imgRatio)+"vw"},stemArea:function(){return this.wrapRatio?{width:100*this.wrapRatio,height:100}:this.imgRatio?{width:this.imgEl.naturalWidth,height:this.imgEl.naturalHeight}:{}},isVertical:function(){const t=this.wrapRatio||this.ratio;return!!t&&this.imgRatio{this.$nextTick(()=>{const t=this.getDrawPos().pos,e=this.rotate;this.invalidDrawPos(t)||this.callPreview("locateImage",t,e)})})},methods:{imgLoaded:function(){this.callPreview("setData",{src:this.src,bgColor:this.bgColor}),this.imgRatio=this.imgEl.naturalWidth/this.imgEl.naturalHeight,this.resetData()},resetData:function(){this.$nextTick(()=>{this.initWHTL$.next(!0)})}}},p=(n(64),n(0)),d=Object(p.a)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"js-clipper-basic"},[n("div",{staticClass:"vuejs-clipper-basic__padding",style:t.padStyle},[n("canvas",{staticClass:"vuejs-clipper-basic__stem-canvas",attrs:{width:t.stemArea.width,height:t.stemArea.height}}),t._v(" "),n("div",{staticClass:"vuejs-clipper-basic__in-pad",style:t.inPadStyle},[n("div",{staticClass:"vuejs-clipper-basic__img-wrap",class:{vertical:t.isVertical}},[n("div",{staticClass:"vuejs-clipper-basic__img-scale js-img-scale",style:t.scaleStyle},[n("img",{staticClass:"vuejs-clipper-basic__img js-img",style:t.rotateStyle,attrs:{src:t.src,crossorigin:t.crossOrigin},on:{load:function(e){t.imgLoaded(),t.emit("load",e)},error:function(e){return t.emit("error",e)}}})])])]),t._v(" "),n("div",{staticClass:"vuejs-clipper-basic__in-pad",style:t.inPadStyle},[n("div",{staticClass:"vuejs-clipper-basic__clip-area js-clip-area"},[n("div",{staticClass:"vuejs-clipper-basic__zoom-area js-zoom-area",style:t.posObj},[n("div",{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--outer",style:t.exOuterStyle}),t._v(" "),n("div",{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--inner",style:t.exInnerStyle},[n("div",{staticClass:"vuejs-clipper-basic__drag-inset js-drag-inset"})]),t._v(" "),t.corner?n("div",t._l(4,(function(t){return n("div",{key:"corner"+t,staticClass:"vuejs-clipper-basic__corner",class:"vuejs-clipper-basic__corner"+t})})),0):t._e(),t._v(" "),t.grid?n("div",{staticClass:"vuejs-clipper-basic__grid"},t._l(4,(function(t){return n("div",{key:"gridItem"+t,staticClass:"vuejs-clipper-basic__grid-item"})})),0):t._e(),t._v(" "),t._t("vuejs-clipper-basic__area")],2)])])]),t._v(" "),n("div",{staticClass:"vuejs-clipper-basic__placeholder",style:t.eptStyle},[t._t("placeholder")],2)])}),[],!1,null,"45869ad8",null);e.a=d.exports},function(t,e,n){"use strict";var r=n(15),i={props:{name:{type:String,required:!0}},data:()=>({src:"",imgEl:null,imgWidth:1,imgHeight:1,outerWidth:1,outerHeight:1,bgColor:"white",pos:{},rotate:0}),computed:{styleObj:function(){const t=this.pos.sx/this.imgWidth,e=this.pos.sy/this.imgHeight;return{transform:`scale(${this.imgWidth/this.pos.swidth}) translate(${-100*t}% ,${-100*e}%)`}},rotateStyle:function(){return{transform:`rotate(${this.rotate}deg)`}},wrapStyle:function(){const t=this.src?"block":"none";return{backgroundColor:this.bgColor,display:t}},eptStyle:function(){return{display:this.src?"none":"block"}}},mounted(){this.imgEl=this.$el.querySelector(".img"),this.initListener()},methods:{initListener:function(){const t=this.$parent,e=r.a.parentPropName;t[e]||(t[e]={}),t[e][this.name]||(t[e][this.name]=[]),t[e][this.name].push(this)},setData:function(t){for(let 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}}},o=(n(59),n(0)),a=Object(o.a)(i,(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}}),t._v(" "),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}})])])]),t._v(" "),n("div",{staticClass:"placeholder",style:t.eptStyle},[t._t("placeholder")],2)])}),[],!1,null,"7c25a830",null);e.a=a.exports},function(t,e,n){var r;r=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.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get: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=40)}([function(t,e,n){"use strict";var r=n(39),i=n(152),o=Object.prototype.toString;function a(t){return"[object Array]"===o.call(t)}function s(t){return null!==t&&"object"==typeof t}function u(t){return"[object Function]"===o.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u}).call(e,n(70))},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(109),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(9),i=n(1).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=!0},function(t,e,n){"use strict";var r=n(12);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)}},function(t,e,n){var r=n(11).f,i=n(15),o=n(2)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(53)("keys"),i=n(58);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(47),i=n(21);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(17).Symbol;t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapProps=void 0;var r,i=n(193),o=(r=i)&&r.__esModule?r:{default:r},a={showHelpText:{type:Boolean,default:!1},shownViaNewRelationModal:{type:Boolean,default:!1},resourceId:{type:[Number,String]},resourceName:{type:String},field:{type:Object,required:!0},viaResource:{type:String,required:!1},viaResourceId:{type:[String,Number],required:!1},viaRelationship:{type:String,required:!1},shouldOverrideMeta:{type:Boolean,default:!1}};e.mapProps=function(t){return o.default.pick(a,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["1/2","1/3","2/3","1/4","3/4","1/5","2/5","3/5","4/5","1/6","5/6"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(150);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(e,"Form",{enumerable:!0,get:function(){return o(r).default}});var i=n(59);function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"Errors",{enumerable:!0,get:function(){return o(i).default}})},function(t,e,n){"use strict";(function(e){var r=n(0),i=n(97),o=n(100),a=n(106),s=n(104),u=n(38),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(99);t.exports=function(t){return new Promise((function(l,f){var h=t.data,p=t.headers;r.isFormData(h)&&delete p["Content-Type"];var d=new XMLHttpRequest,v="onreadystatechange",g=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||s(t.url)||(d=new window.XDomainRequest,v="onload",g=!0,d.onprogress=function(){},d.ontimeout=function(){}),t.auth){var m=t.auth.username||"",b=t.auth.password||"";p.Authorization="Basic "+c(m+":"+b)}if(d.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d[v]=function(){if(d&&(4===d.readyState||g)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,n={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:e,config:t,request:d};i(l,f,n),d=null}},d.onerror=function(){f(u("Network Error",t,null,d)),d=null},d.ontimeout=function(){f(u("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var y=n(102),_=(t.withCredentials||s(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;_&&(p[t.xsrfHeaderName]=_)}if("setRequestHeader"in d&&r.forEach(p,(function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete p[e]:d.setRequestHeader(e,t)})),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),f(t),d=null)})),void 0===h&&(h=null),d.send(h)}))}}).call(e,n(70))},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var r=n(96);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;rn;)e.push(arguments[n++]);return m[++g]=function(){s("function"==typeof t?t:Function(t),e)},r(g),g},p=function(t){delete m[t]},"process"==n(13)(f)?r=function(t){f.nextTick(a(b,t,1))}:v&&v.now?r=function(t){v.now(a(b,t,1))}:d?(o=(i=new d).port2,i.port1.onmessage=y,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:h,clear:p}},function(t,e,n){var r=n(28),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(21);t.exports=function(t){return Object(r(t))}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};i(this,t),this.record(e)}return r(t,[{key:"all",value:function(){return this.errors}},{key:"has",value:function(t){var e=this.errors.hasOwnProperty(t);return e||(e=Object.keys(this.errors).filter((function(e){return e.startsWith(t+".")||e.startsWith(t+"[")})).length>0),e}},{key:"first",value:function(t){return this.get(t)[0]}},{key:"get",value:function(t){return this.errors[t]||[]}},{key:"any",value:function(){return Object.keys(this.errors).length>0}},{key:"record",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.errors=t}},{key:"clear",value:function(t){if(t){var e=Object.assign({},this.errors);Object.keys(e).filter((function(e){return e===t||e.startsWith(t+".")||e.startsWith(t+"[")})).forEach((function(t){return delete e[t]})),this.errors=e}else this.errors={}}}]),t}();e.default=o},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(71))},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(16),i=n(18);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=s(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:null;return this.viaManyToMany?this.detachResources(t):Nova.request({url:"/nova-api/"+this.resourceName,method:"delete",params:(0,o.default)({},this.queryString,{resources:a(t)})}).then(n||function(){e.deleteModalOpen=!1,e.getResources()})},deleteSelectedResources:function(){this.deleteResources(this.selectedResources)},deleteAllMatchingResources:function(){var t=this;return this.viaManyToMany?this.detachAllMatchingResources():Nova.request({url:this.deleteAllMatchingResourcesEndpoint,method:"delete",params:(0,o.default)({},this.queryString,{resources:"all"})}).then((function(){t.deleteModalOpen=!1,t.getResources()}))},detachResources:function(t){var e=this;return Nova.request({url:"/nova-api/"+this.resourceName+"/detach",method:"delete",params:(0,o.default)({},this.queryString,{resources:a(t)},{pivots:s(t)})}).then((function(){e.deleteModalOpen=!1,e.getResources()}))},detachAllMatchingResources:function(){var t=this;return Nova.request({url:"/nova-api/"+this.resourceName+"/detach",method:"delete",params:(0,o.default)({},this.queryString,{resources:"all"})}).then((function(){t.deleteModalOpen=!1,t.getResources()}))},forceDeleteResources:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Nova.request({url:"/nova-api/"+this.resourceName+"/force",method:"delete",params:(0,o.default)({},this.queryString,{resources:a(t)})}).then(n||function(){e.deleteModalOpen=!1,e.getResources()})},forceDeleteSelectedResources:function(){this.forceDeleteResources(this.selectedResources)},forceDeleteAllMatchingResources:function(){var t=this;return Nova.request({url:this.forceDeleteSelectedResourcesEndpoint,method:"delete",params:(0,o.default)({},this.queryString,{resources:"all"})}).then((function(){t.deleteModalOpen=!1,t.getResources()}))},restoreResources:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Nova.request({url:"/nova-api/"+this.resourceName+"/restore",method:"put",params:(0,o.default)({},this.queryString,{resources:a(t)})}).then(n||function(){e.restoreModalOpen=!1,e.getResources()})},restoreSelectedResources:function(){this.restoreResources(this.selectedResources)},restoreAllMatchingResources:function(){var t=this;return Nova.request({url:this.restoreAllMatchingResourcesEndpoint,method:"put",params:(0,o.default)({},this.queryString,{resources:"all"})}).then((function(){t.restoreModalOpen=!1,t.getResources()}))}},computed:{deleteAllMatchingResourcesEndpoint:function(){return this.lens?"/nova-api/"+this.resourceName+"/lens/"+this.lens:"/nova-api/"+this.resourceName},forceDeleteSelectedResourcesEndpoint:function(){return this.lens?"/nova-api/"+this.resourceName+"/lens/"+this.lens+"/force":"/nova-api/"+this.resourceName+"/force"},restoreAllMatchingResourcesEndpoint:function(){return this.lens?"/nova-api/"+this.resourceName+"/lens/"+this.lens+"/restore":"/nova-api/"+this.resourceName+"/restore"},queryString:function(){return{search:this.currentSearch,filters:this.encodedFilters,trashed:this.currentTrashed,viaResource:this.viaResource,viaResourceId:this.viaResourceId,viaRelationship:this.viaRelationship}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o,a=c(n(43)),s=c(n(20)),u=c(n(42));function c(t){return t&&t.__esModule?t:{default:t}}e.default={methods:{clearSelectedFilters:(o=(0,u.default)(a.default.mark((function t(e){var n;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,this.$store.dispatch(this.resourceName+"/resetFilterState",{resourceName:this.resourceName,lens:e});case 3:t.next=7;break;case 5:return t.next=7,this.$store.dispatch(this.resourceName+"/resetFilterState",{resourceName:this.resourceName});case 7:this.updateQueryString((n={},(0,s.default)(n,this.pageParameter,1),(0,s.default)(n,this.filterParameter,""),n));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)}),filterChanged:function(){var t;this.updateQueryString((t={},(0,s.default)(t,this.pageParameter,1),(0,s.default)(t,this.filterParameter,this.$store.getters[this.resourceName+"/currentEncodedFilters"]),t))},initializeFilters:(i=(0,u.default)(a.default.mark((function t(e){return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.$store.commit(this.resourceName+"/clearFilters"),t.next=3,this.$store.dispatch(this.resourceName+"/fetchFilters",{resourceName:this.resourceName,viaResource:this.viaResource,viaResourceId:this.viaResourceId,viaRelationship:this.viaRelationship,lens:e});case 3:return t.next=5,this.initializeState(e);case 5:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)}),initializeState:(r=(0,u.default)(a.default.mark((function t(e){return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.initialEncodedFilters){t.next=5;break}return t.next=3,this.$store.dispatch(this.resourceName+"/initializeCurrentFilterValuesFromQueryString",this.initialEncodedFilters);case 3:t.next=7;break;case 5:return t.next=7,this.$store.dispatch(this.resourceName+"/resetFilterState",{resourceName:this.resourceName,lens:e});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},computed:{filterParameter:function(){return this.resourceName+"_filter"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.default={props:(0,r.mapProps)(["shownViaNewRelationModal","field","viaResource","viaResourceId","viaRelationship","resourceName","showHelpText"]),data:function(){return{value:""}},mounted:function(){var t=this;this.setInitialValue(),this.field.fill=this.fill,Nova.$on(this.field.attribute+"-value",(function(e){t.value=e}))},destroyed:function(){Nova.$off(this.field.attribute+"-value")},methods:{setInitialValue:function(){this.value=void 0!==this.field.value&&null!==this.field.value?this.field.value:""},fill:function(t){t.append(this.field.attribute,String(this.value))},handleChange:function(t){this.value=t.target.value,this.field&&Nova.$emit(this.field.attribute+"-change",this.value)}},computed:{isReadonly:function(){return this.field.readonly||_.get(this.field,"extraAttributes.readonly")}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(34);e.default={props:{errors:{default:function(){return new r.Errors}}},data:function(){return{errorClass:"border-danger"}},computed:{errorClasses:function(){return this.hasError?[this.errorClass]:[]},fieldAttribute:function(){return this.field.attribute},validationKey:function(){return this.field.validationKey},hasError:function(){return this.errors.has(this.validationKey)},firstError:function(){if(this.hasError)return this.errors.first(this.validationKey)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=s(n(43)),o=s(n(42)),a=s(n(33));function s(t){return t&&t.__esModule?t:{default:t}}e.default={props:{loadCards:{type:Boolean,default:!0}},data:function(){return{cards:[]}},created:function(){this.fetchCards()},watch:{cardsEndpoint:function(){this.fetchCards()}},methods:{fetchCards:(r=(0,o.default)(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.loadCards){t.next=6;break}return t.next=3,Nova.request().get(this.cardsEndpoint,{params:this.extraCardParams});case 3:e=t.sent,n=e.data,this.cards=n;case 6:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},computed:{shouldShowCards:function(){return this.cards.length>0},smallCards:function(){return _.filter(this.cards,(function(t){return-1!==a.default.indexOf(t.width)}))},largeCards:function(){return _.filter(this.cards,(function(t){return"full"==t.width}))},extraCardParams:function(){return null}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{toAppTimezone:function(t){return t?moment.tz(t,this.userTimezone).clone().tz(Nova.config.timezone).format("YYYY-MM-DD HH:mm:ss"):t},fromAppTimezone:function(t){return t?moment.tz(t,Nova.config.timezone).clone().tz(this.userTimezone).format("YYYY-MM-DD HH:mm:ss"):t},localizeDateTimeField:function(t){if(!t.value)return t.value;var e=moment.tz(t.value,Nova.config.timezone).clone().tz(this.userTimezone);return t.format?e.format(t.format):this.usesTwelveHourTime?e.format("YYYY-MM-DD h:mm:ss A"):e.format("YYYY-MM-DD HH:mm:ss")},localizeDateField:function(t){if(!t.value)return t.value;var e=moment.tz(t.value,Nova.config.timezone).clone().tz(this.userTimezone);return t.format?e.format(t.format):e.format("YYYY-MM-DD")}},computed:{userTimezone:function(){return Nova.config.userTimezone?Nova.config.userTimezone:moment.tz.guess()},usesTwelveHourTime:function(){return _.endsWith((new Date).toLocaleString(),"AM")||_.endsWith((new Date).toLocaleString(),"PM")}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(188),o=(r=i)&&r.__esModule?r:{default:r};e.default={methods:{updateQueryString:function(t){this.$router.push({query:(0,o.default)(t,this.$route.query)}).catch((function(t){if("NavigationDuplicated"!=t.name)throw t}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{resourceInformation:function(){var t=this;return _.find(Nova.config.resources,(function(e){return e.uriKey==t.resourceName}))},viaResourceInformation:function(){var t=this;if(this.viaResource)return _.find(Nova.config.resources,(function(e){return e.uriKey==t.viaResource}))},authorizedToCreate:function(){return this.resourceInformation.authorizedToCreate}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(20),o=(r=i)&&r.__esModule?r:{default:r};e.default={methods:{selectPreviousPage:function(){this.updateQueryString((0,o.default)({},this.pageParameter,this.currentPage-1))},selectNextPage:function(){this.updateQueryString((0,o.default)({},this.pageParameter,this.currentPage+1))}},computed:{currentPage:function(){return parseInt(this.$route.query[this.pageParameter]||1)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(20),o=(r=i)&&r.__esModule?r:{default:r};e.default={data:function(){return{perPage:25}},methods:{initializePerPageFromQueryString:function(){this.perPage=this.currentPerPage},perPageChanged:function(){this.updateQueryString((0,o.default)({},this.perPageParameter,this.perPage))}},computed:{currentPerPage:function(){return this.$route.query[this.perPageParameter]||25}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(187),o=(r=i)&&r.__esModule?r:{default:r};e.default={data:function(){return{search:"",selectedResource:"",availableResources:[]}},methods:{selectResource:function(t){this.selectedResource=t,this.field&&Nova.$emit(this.field.attribute+"-change",this.selectedResource.value)},handleSearchCleared:function(){this.availableResources=[]},clearSelection:function(){this.selectedResource="",this.availableResources=[],this.field&&Nova.$emit(this.field.attribute+"-change",null)},performSearch:function(t){var e=this;this.search=t;var n=t.trim();""!=n&&this.debouncer((function(){e.getAvailableResources(n)}),500)},debouncer:(0,o.default)((function(t){return t()}),500)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={beforeRouteLeave:function(t,e,n){this.canLeave||window.confirm(this.__("Do you really want to leave? You have unsaved changes."))?n():n(!1)},data:function(){return{canLeave:!0}},methods:{updateFormStatus:function(){this.canLeave=!1}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{withTrashed:!1}},methods:{toggleWithTrashed:function(){this.withTrashed=!this.withTrashed},enableWithTrashed:function(){this.withTrashed=!0},disableWithTrashed:function(){this.withTrashed=!1}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,o.default)(t)};var r,i=n(198),o=(r=i)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(41),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return o.default.all([t,new o.default((function(t){setTimeout((function(){return t()}),e)}))]).then((function(t){return t[0]}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return null==t.match(/^(.*)[A-Za-zÀ-ÖØ-öø-ÿ]$/)?t:t>1||0==t?r.Inflector.pluralize(e):r.Inflector.singularize(e)};var r=n(40)},function(t,e,n){"use strict";var r={uncountableWords:["equipment","information","rice","money","species","series","fish","sheep","moose","deer","news"],pluralRules:[[new RegExp("(m)an$","gi"),"$1en"],[new RegExp("(pe)rson$","gi"),"$1ople"],[new RegExp("(child)$","gi"),"$1ren"],[new RegExp("^(ox)$","gi"),"$1en"],[new RegExp("(ax|test)is$","gi"),"$1es"],[new RegExp("(octop|vir)us$","gi"),"$1i"],[new RegExp("(alias|status)$","gi"),"$1es"],[new RegExp("(bu)s$","gi"),"$1ses"],[new RegExp("(buffal|tomat|potat)o$","gi"),"$1oes"],[new RegExp("([ti])um$","gi"),"$1a"],[new RegExp("sis$","gi"),"ses"],[new RegExp("(?:([^f])fe|([lr])f)$","gi"),"$1$2ves"],[new RegExp("(hive)$","gi"),"$1s"],[new RegExp("([^aeiouy]|qu)y$","gi"),"$1ies"],[new RegExp("(x|ch|ss|sh)$","gi"),"$1es"],[new RegExp("(matr|vert|ind)ix|ex$","gi"),"$1ices"],[new RegExp("([m|l])ouse$","gi"),"$1ice"],[new RegExp("(quiz)$","gi"),"$1zes"],[new RegExp("s$","gi"),"s"],[new RegExp("$","gi"),"s"]],singularRules:[[new RegExp("(m)en$","gi"),"$1an"],[new RegExp("(pe)ople$","gi"),"$1rson"],[new RegExp("(child)ren$","gi"),"$1"],[new RegExp("([ti])a$","gi"),"$1um"],[new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),"$1$2sis"],[new RegExp("(hive)s$","gi"),"$1"],[new RegExp("(tive)s$","gi"),"$1"],[new RegExp("(curve)s$","gi"),"$1"],[new RegExp("([lr])ves$","gi"),"$1f"],[new RegExp("([^fo])ves$","gi"),"$1fe"],[new RegExp("([^aeiouy]|qu)ies$","gi"),"$1y"],[new RegExp("(s)eries$","gi"),"$1eries"],[new RegExp("(m)ovies$","gi"),"$1ovie"],[new RegExp("(x|ch|ss|sh)es$","gi"),"$1"],[new RegExp("([m|l])ice$","gi"),"$1ouse"],[new RegExp("(bus)es$","gi"),"$1"],[new RegExp("(o)es$","gi"),"$1"],[new RegExp("(shoe)s$","gi"),"$1"],[new RegExp("(cris|ax|test)es$","gi"),"$1is"],[new RegExp("(octop|vir)i$","gi"),"$1us"],[new RegExp("(alias|status)es$","gi"),"$1"],[new RegExp("^(ox)en","gi"),"$1"],[new RegExp("(vert|ind)ices$","gi"),"$1ex"],[new RegExp("(matr)ices$","gi"),"$1ix"],[new RegExp("(quiz)zes$","gi"),"$1"],[new RegExp("s$","gi"),""]],nonTitlecasedWords:["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],idSuffix:new RegExp("(_ids|_id)$","g"),underbar:new RegExp("_","g"),spaceOrUnderbar:new RegExp("[ _]","g"),uppercase:new RegExp("([A-Z])","g"),underbarPrefix:new RegExp("^_"),applyRules:function(t,e,n,r){if(r)t=r;else if(!(n.indexOf(t.toLowerCase())>-1))for(var i=0;i>8-a%1*8)){if((n=i.charCodeAt(a+=3/4))>255)throw new r;e=e<<8|n}return o}},function(t,e,n){"use strict";var r=n(0);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(0),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){t.exports={default:n(111),__esModule:!0}},function(t,e,n){t.exports={default:n(112),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(108),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;el;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(14),i=n(121),o=n(120),a=n(4),s=n(56),u=n(140),c={},l={};(e=t.exports=function(t,e,n,f,h){var p,d,v,g,m=h?function(){return t}:u(t),b=r(n,f,e?2:1),y=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(p=s(t.length);p>y;y++)if((g=e?b(a(d=t[y])[0],d[1]):b(t[y]))===c||g===l)return g}else for(v=m.call(t);!(d=v.next()).done;)if((g=i(v,b,d.value,e))===c||g===l)return g}).BREAK=c,e.RETURN=l},function(t,e,n){t.exports=!n(5)&&!n(23)((function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a}))},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(10),i=n(2)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(4);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){"use strict";var r=n(127),i=n(52),o=n(26),a={};n(7)(a,n(2)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(2)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(1),i=n(55).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(13)(a);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){"use strict";var r=n(49),i=n(129),o=n(132),a=n(57),s=n(47),u=Object.assign;t.exports=!u||n(23)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r}))?function(t,e){for(var n=a(t),u=arguments.length,c=1,l=i.f,f=o.f;u>c;)for(var h,p=s(arguments[c++]),d=l?r(p).concat(l(p)):r(p),v=d.length,g=0;v>g;)f.call(p,h=d[g++])&&(n[h]=p[h]);return n}:u},function(t,e,n){var r=n(4),i=n(128),o=n(45),a=n(27)("IE_PROTO"),s=function(){},u=function(){var t,e=n(22)("iframe"),r=o.length;for(e.style.display="none",n(46).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("