X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Fstatic%2Fstatic%2Fjs%2Fvendors~app.3f1ed7a4fdfc37ee27a7.js;h=a64eee9a9139616ce4af6fae5d29bbbf21bcdbc0;hb=8ad6d2784c0b79a50346dfd45fe3f3c0997b3d06;hp=9fe9e5eb79ccfea8347a4566cbbc686ea13a2c85;hpb=92b4a1aa1bc750bb077ae45c422967f9712e247d;p=akkoma diff --git a/priv/static/static/js/vendors~app.3f1ed7a4fdfc37ee27a7.js b/priv/static/static/js/vendors~app.3f1ed7a4fdfc37ee27a7.js index 9fe9e5eb7..a64eee9a9 100644 --- a/priv/static/static/js/vendors~app.3f1ed7a4fdfc37ee27a7.js +++ b/priv/static/static/js/vendors~app.3f1ed7a4fdfc37ee27a7.js @@ -58,7 +58,7 @@ function r(t,e){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+t),e&&c * * https://github.com/linusborg/portal-vue * - */Object.defineProperty(e,"__esModule",{value:!0});var r,o=(r=n(12))&&"object"==typeof r&&"default"in r?r.default:r;function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]&&arguments[1],n=t.to,r=t.from;if(n&&r&&this.transports[n])if(e)this.transports[n]=[];else{var o=this.$_getTransportIndex(t);if(o>=0){var i=this.transports[n].slice(0);i.splice(o,1),this.transports[n]=i}}},registerTarget:function(t,e,n){s&&(this.trackInstances&&!n&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,n){s&&(this.trackInstances&&!n&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,n=t.from;for(var r in this.transports[e])if(this.transports[e][r].from===n)return+r;return-1}}}))(c),p=1,d=o.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(p++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick(function(){h.registerSource(t.name,t)})},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){h.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};h.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"==typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:a(t),order:this.order};h.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(n,[this.normalizeOwnChildren(e)]):this.slim?t():t(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),v=o.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:h.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick(function(){h.registerTarget(t.name,t)})},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){h.unregisterTarget(e),h.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick(function(){t.firstRender=!1})},beforeDestroy:function(){h.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce(function(t,n){var r=n.passengers[0],o="function"==typeof r?r(e):n.passengers;return t.concat(o)},[])}(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return e?n[0]:this.slim&&!r?t():t(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),m=0,y=["disabled","name","order","slim","slotProps","tag","to"],g=["multiple","transition"],b=o.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(m++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(h.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=h.targets[e.name];else{var n=e.append;if(n){var r="string"==typeof n?n:"DIV",o=document.createElement(r);t.appendChild(o),t=o}var i=u(this.$props,g);i.slim=this.targetSlim,i.tag=this.targetTag,i.slotProps=this.targetSlotProps,i.name=this.to,this.portalTarget=new v({el:t,parent:this.$parent||this,propsData:i})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=u(this.$props,y);return t(d,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||t()}});var _={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",d),t.component(e.portalTargetName||"PortalTarget",v),t.component(e.MountingPortalName||"MountingPortal",b)}};e.default=_,e.Portal=d,e.PortalTarget=v,e.MountingPortal=b,e.Wormhole=h},,function(t,e,n){var r,o,i;o=[e],void 0===(i="function"==typeof(r=function(t){"use strict";function e(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e
',trigger:"hover focus",offset:0},m=[],y=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,"_events",[]),s(this,"_setTooltipNodeEvent",function(t,e,n,o){var i=t.relatedreference||t.toElement||t.relatedTarget;return!!r._tooltipNode.contains(i)&&(r._tooltipNode.addEventListener(t.type,function n(i){var a=i.relatedreference||i.toElement||i.relatedTarget;r._tooltipNode.removeEventListener(t.type,n),e.contains(a)||r._scheduleHide(e,o.delay,o,i)}),!0)}),n=u({},v,n),e.jquery&&(e=e[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=e,this.options=n,this._isOpen=!1,this._init()}var e,n,o;return e=t,(n=[{key:"show",value:function(){this._show(this.reference,this.options)}},{key:"hide",value:function(){this._hide()}},{key:"dispose",value:function(){this._dispose()}},{key:"toggle",value:function(){return this._isOpen?this.hide():this.show()}},{key:"setClasses",value:function(t){this._classes=t}},{key:"setContent",value:function(t){this.options.title=t,this._tooltipNode&&this._setContent(t,this.options)}},{key:"setOptions",value:function(t){var e=!1,n=t&&t.classes||A.options.defaultClass;this._classes!==n&&(this.setClasses(n),e=!0),t=w(t);var r=!1,o=!1;for(var i in this.options.offset===t.offset&&this.options.placement===t.placement||(r=!0),(this.options.template!==t.template||this.options.trigger!==t.trigger||this.options.container!==t.container||e)&&(o=!0),t)this.options[i]=t[i];if(this._tooltipNode)if(o){var a=this._isOpen;this.dispose(),this._init(),a&&this.show()}else r&&this.popperInstance.update()}},{key:"_init",value:function(){var t="string"==typeof this.options.trigger?this.options.trigger.split(" "):[];this._isDisposed=!1,this._enableDocumentTouch=-1===t.indexOf("manual"),t=t.filter(function(t){return-1!==["click","hover","focus"].indexOf(t)}),this._setEventListeners(this.reference,t,this.options),this.$_originalTitle=this.reference.getAttribute("title"),this.reference.removeAttribute("title"),this.reference.setAttribute("data-original-title",this.$_originalTitle)}},{key:"_create",value:function(t,e){var n=window.document.createElement("div");n.innerHTML=e.trim();var r=n.childNodes[0];return r.id="tooltip_".concat(Math.random().toString(36).substr(2,10)),r.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(r.addEventListener("mouseenter",this.hide),r.addEventListener("click",this.hide)),r}},{key:"_setContent",value:function(t,e){var n=this;this.asyncContent=!1,this._applyContent(t,e).then(function(){n.popperInstance.update()})}},{key:"_applyContent",value:function(t,e){var n=this;return new Promise(function(r,o){var i=e.html,a=n._tooltipNode;if(a){var s=a.querySelector(n.options.innerSelector);if(1===t.nodeType){if(i){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(t)}}else{if("function"==typeof t){var u=t();return void(u&&"function"==typeof u.then?(n.asyncContent=!0,e.loadingClass&&l(a,e.loadingClass),e.loadingContent&&n._applyContent(e.loadingContent,e),u.then(function(t){return e.loadingClass&&h(a,e.loadingClass),n._applyContent(t,e)}).then(r).catch(o)):n._applyContent(u,e).then(r).catch(o))}i?s.innerHTML=t:s.innerText=t}r()}})}},{key:"_show",value:function(t,e){if(e&&"string"==typeof e.container&&!document.querySelector(e.container))return;clearTimeout(this._disposeTimer),delete(e=Object.assign({},e)).offset;var n=!0;this._tooltipNode&&(l(this._tooltipNode,this._classes),n=!1);var r=this._ensureShown(t,e);return n&&this._tooltipNode&&l(this._tooltipNode,this._classes),l(t,["v-tooltip-open"]),r}},{key:"_ensureShown",value:function(t,e){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,m.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(e.title,e),this;var o=t.getAttribute("title")||e.title;if(!o)return this;var i=this._create(t,e.template);this._tooltipNode=i,t.setAttribute("aria-describedby",i.id);var a=this._findContainer(e.container,t);this._append(i,a);var s=u({},e.popperOptions,{placement:e.placement});return s.modifiers=u({},s.modifiers,{arrow:{element:this.options.arrowSelector}}),e.boundariesElement&&(s.modifiers.preventOverflow={boundariesElement:e.boundariesElement}),this.popperInstance=new r.a(t,i,s),this._setContent(o,e),requestAnimationFrame(function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame(function(){n._isDisposed?n.dispose():n._isOpen&&i.setAttribute("aria-hidden","false")})):n.dispose()}),this}},{key:"_noLongerOpen",value:function(){var t=m.indexOf(this);-1!==t&&m.splice(t,1)}},{key:"_hide",value:function(){var t=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var e=A.options.disposeTimeout;return null!==e&&(this._disposeTimer=setTimeout(function(){t._tooltipNode&&(t._tooltipNode.removeEventListener("mouseenter",t.hide),t._tooltipNode.removeEventListener("click",t.hide),t._removeTooltipNode())},e)),h(this.reference,["v-tooltip-open"]),this}},{key:"_removeTooltipNode",value:function(){if(this._tooltipNode){var t=this._tooltipNode.parentNode;t&&(t.removeChild(this._tooltipNode),this.reference.removeAttribute("aria-describedby")),this._tooltipNode=null}}},{key:"_dispose",value:function(){var t=this;return this._isDisposed=!0,this.reference.removeAttribute("data-original-title"),this.$_originalTitle&&this.reference.setAttribute("title",this.$_originalTitle),this._events.forEach(function(e){var n=e.func,r=e.event;t.reference.removeEventListener(r,n)}),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:"_findContainer",value:function(t,e){return"string"==typeof t?t=window.document.querySelector(t):!1===t&&(t=e.parentNode),t}},{key:"_append",value:function(t,e){e.appendChild(t)}},{key:"_setEventListeners",value:function(t,e,n){var r=this,o=[],i=[];e.forEach(function(t){switch(t){case"hover":o.push("mouseenter"),i.push("mouseleave"),r.options.hideOnTargetClick&&i.push("click");break;case"focus":o.push("focus"),i.push("blur"),r.options.hideOnTargetClick&&i.push("click");break;case"click":o.push("click"),i.push("click")}}),o.forEach(function(e){var o=function(e){!0!==r._isOpen&&(e.usedByTooltip=!0,r._scheduleShow(t,n.delay,n,e))};r._events.push({event:e,func:o}),t.addEventListener(e,o)}),i.forEach(function(e){var o=function(e){!0!==e.usedByTooltip&&r._scheduleHide(t,n.delay,n,e)};r._events.push({event:e,func:o}),t.addEventListener(e,o)})}},{key:"_onDocumentTouch",value:function(t){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,t)}},{key:"_scheduleShow",value:function(t,e,n){var r=this,o=e&&e.show||e||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){return r._show(t,n)},o)}},{key:"_scheduleHide",value:function(t,e,n,r){var o=this,i=e&&e.hide||e||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){if(!1!==o._isOpen&&document.body.contains(o._tooltipNode)){if("mouseleave"===r.type)if(o._setTooltipNodeEvent(r,t,e,n))return;o._hide(t,n)}},i)}}])&&a(e.prototype,n),o&&a(e,o),t}();"undefined"!=typeof document&&document.addEventListener("touchstart",function(t){for(var e=0;e
',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultOpenClass:"open",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function w(t){var e={placement:void 0!==t.placement?t.placement:A.options.defaultPlacement,delay:void 0!==t.delay?t.delay:A.options.defaultDelay,html:void 0!==t.html?t.html:A.options.defaultHtml,template:void 0!==t.template?t.template:A.options.defaultTemplate,arrowSelector:void 0!==t.arrowSelector?t.arrowSelector:A.options.defaultArrowSelector,innerSelector:void 0!==t.innerSelector?t.innerSelector:A.options.defaultInnerSelector,trigger:void 0!==t.trigger?t.trigger:A.options.defaultTrigger,offset:void 0!==t.offset?t.offset:A.options.defaultOffset,container:void 0!==t.container?t.container:A.options.defaultContainer,boundariesElement:void 0!==t.boundariesElement?t.boundariesElement:A.options.defaultBoundariesElement,autoHide:void 0!==t.autoHide?t.autoHide:A.options.autoHide,hideOnTargetClick:void 0!==t.hideOnTargetClick?t.hideOnTargetClick:A.options.defaultHideOnTargetClick,loadingClass:void 0!==t.loadingClass?t.loadingClass:A.options.defaultLoadingClass,loadingContent:void 0!==t.loadingContent?t.loadingContent:A.options.defaultLoadingContent,popperOptions:u({},void 0!==t.popperOptions?t.popperOptions:A.options.defaultPopperOptions)};if(e.offset){var n=i(e.offset),r=e.offset;("number"===n||"string"===n&&-1===r.indexOf(","))&&(r="0, ".concat(r)),e.popperOptions.modifiers||(e.popperOptions.modifiers={}),e.popperOptions.modifiers.offset={offset:r}}return e.trigger&&-1!==e.trigger.indexOf("click")&&(e.hideOnTargetClick=!1),e}function x(t,e){for(var n=t.placement,r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=O(e),o=void 0!==e.classes?e.classes:A.options.defaultClass,i=u({title:r},w(u({},e,{placement:x(e,n)}))),a=t._tooltip=new y(t,i);a.setClasses(o),a._vueEl=t;var s=void 0!==e.targetClasses?e.targetClasses:A.options.defaultTargetClass;return t._tooltipTargetClasses=s,l(t,s),a}function E(t){t._tooltip&&(t._tooltip.dispose(),delete t._tooltip,delete t._tooltipOldShow),t._tooltipTargetClasses&&(h(t,t._tooltipTargetClasses),delete t._tooltipTargetClasses)}function k(t,e){var n,r=e.value,o=(e.oldValue,e.modifiers),i=O(r);i&&g.enabled?(t._tooltip?((n=t._tooltip).setContent(i),n.setOptions(u({},r,{placement:x(r,o)}))):n=j(t,r,o),void 0!==r.show&&r.show!==t._tooltipOldShow&&(t._tooltipOldShow=r.show,r.show?n.show():n.hide())):E(t)}var A={options:_,bind:k,update:k,unbind:function(t){E(t)}};function S(t){t.addEventListener("click",T),t.addEventListener("touchstart",N,!!p&&{passive:!0})}function C(t){t.removeEventListener("click",T),t.removeEventListener("touchstart",N),t.removeEventListener("touchend",M),t.removeEventListener("touchcancel",P)}function T(t){var e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function N(t){if(1===t.changedTouches.length){var e=t.currentTarget;e.$_vclosepopover_touch=!0;var n=t.changedTouches[0];e.$_vclosepopover_touchPoint=n,e.addEventListener("touchend",M),e.addEventListener("touchcancel",P)}}function M(t){var e=t.currentTarget;if(e.$_vclosepopover_touch=!1,1===t.changedTouches.length){var n=t.changedTouches[0],r=e.$_vclosepopover_touchPoint;t.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}}function P(t){t.currentTarget.$_vclosepopover_touch=!1}var I={bind:function(t,e){var n=e.value,r=e.modifiers;t.$_closePopoverModifiers=r,(void 0===n||n)&&S(t)},update:function(t,e){var n=e.value,r=e.oldValue,o=e.modifiers;t.$_closePopoverModifiers=o,n!==r&&(void 0===n||n?S(t):C(t))},unbind:function(t){C(t)}};function $(t){var e=A.options.popover[t];return void 0===e?A.options[t]:e}var L=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(L=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var R=[],D=function(){};"undefined"!=typeof window&&(D=window.Element);var B={name:"VPopover",components:{ResizeObserver:o.a},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return $("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return $("defaultDelay")}},offset:{type:[String,Number],default:function(){return $("defaultOffset")}},trigger:{type:String,default:function(){return $("defaultTrigger")}},container:{type:[String,Object,D,Boolean],default:function(){return $("defaultContainer")}},boundariesElement:{type:[String,D],default:function(){return $("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return $("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return $("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return A.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return A.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return A.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return A.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return A.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return A.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return A.options.popover.defaultOpenClass}}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return s({},this.openClass,this.isOpen)},popoverId:function(){return"popover_".concat(this.id)}},watch:{open:function(t){t?this.show():this.hide()},disabled:function(t,e){t!==e&&(t?this.hide():this.open&&this.show())},container:function(t){if(this.isOpen&&this.popperInstance){var e=this.$refs.popover,n=this.$refs.trigger,r=this.$_findContainer(this.container,n);if(!r)return void console.warn("No container for popover",this);r.appendChild(e),this.popperInstance.scheduleUpdate()}},trigger:function(t){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(t){var e=this;this.$_updatePopper(function(){e.popperInstance.options.placement=t})},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var t=this.$refs.popover;t.parentNode&&t.parentNode.removeChild(t),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.event,r=(e.skipDelay,e.force);!(void 0!==r&&r)&&this.disabled||(this.$_scheduleShow(n),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame(function(){t.$_beingShowed=!1})},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.event;t.skipDelay;this.$_scheduleHide(e),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var t=this.$refs.popover;t.parentNode&&t.parentNode.removeChild(t)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var t=this,e=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var o=this.$_findContainer(this.container,e);if(!o)return void console.warn("No container for popover",this);o.appendChild(n),this.$_mounted=!0}if(!this.popperInstance){var i=u({},this.popperOptions,{placement:this.placement});if(i.modifiers=u({},i.modifiers,{arrow:u({},i.modifiers&&i.modifiers.arrow,{element:this.$refs.arrow})}),this.offset){var a=this.$_getOffset();i.modifiers.offset=u({},i.modifiers&&i.modifiers.offset,{offset:a})}this.boundariesElement&&(i.modifiers.preventOverflow=u({},i.modifiers&&i.modifiers.preventOverflow,{boundariesElement:this.boundariesElement})),this.popperInstance=new r.a(e,n,i),requestAnimationFrame(function(){if(t.hidden)return t.hidden=!1,void t.$_hide();!t.$_isDisposed&&t.popperInstance?(t.popperInstance.scheduleUpdate(),requestAnimationFrame(function(){if(t.hidden)return t.hidden=!1,void t.$_hide();t.$_isDisposed?t.dispose():t.isOpen=!0})):t.dispose()})}var s=this.openGroup;if(s)for(var c,f=0;f1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),t)this.$_show();else{var e=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),e)}},$_scheduleHide:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var r=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout(function(){if(t.isOpen){if(e&&"mouseleave"===e.type)if(t.$_setTooltipNodeEvent(e))return;t.$_hide()}},r)}},$_setTooltipNodeEvent:function(t){var e=this,n=this.$refs.trigger,r=this.$refs.popover,o=t.relatedreference||t.toElement||t.relatedTarget;return!!r.contains(o)&&(r.addEventListener(t.type,function o(i){var a=i.relatedreference||i.toElement||i.relatedTarget;r.removeEventListener(t.type,o),n.contains(a)||e.hide({event:i})}),!0)},$_removeEventListeners:function(){var t=this.$refs.trigger;this.$_events.forEach(function(e){var n=e.func,r=e.event;t.removeEventListener(r,n)}),this.$_events=[]},$_updatePopper:function(t){this.popperInstance&&(t(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var t=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),t&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout(function(){e.$_preventOpen=!1},300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function F(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var r=R[n];if(r.$refs.popover){var o=r.$refs.popover.contains(t.target);requestAnimationFrame(function(){(t.closeAllPopover||t.closePopover&&o||r.autoHide&&!o)&&r.$_handleGlobalClose(t,e)})}},r=0;r-1};var J=function(t,e){var n=this.__data__,r=V(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Q(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=De};var Fe=function(t){return null!=t&&Be(t.length)&&!St(t)};var ze=function(t){return Te(t)&&Fe(t)};var Ue=function(){return!1},He=at(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?ct.Buffer:void 0,i=(o?o.isBuffer:void 0)||Ue;t.exports=i}),We="[object Object]",Ye=Function.prototype,qe=Object.prototype,Ve=Ye.toString,Xe=qe.hasOwnProperty,Ke=Ve.call(Object);var Ge=function(t){if(!Te(t)||wt(t)!=We)return!1;var e=ke(t);if(null===e)return!0;var n=Xe.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ve.call(n)==Ke},Ze={};Ze["[object Float32Array]"]=Ze["[object Float64Array]"]=Ze["[object Int8Array]"]=Ze["[object Int16Array]"]=Ze["[object Int32Array]"]=Ze["[object Uint8Array]"]=Ze["[object Uint8ClampedArray]"]=Ze["[object Uint16Array]"]=Ze["[object Uint32Array]"]=!0,Ze["[object Arguments]"]=Ze["[object Array]"]=Ze["[object ArrayBuffer]"]=Ze["[object Boolean]"]=Ze["[object DataView]"]=Ze["[object Date]"]=Ze["[object Error]"]=Ze["[object Function]"]=Ze["[object Map]"]=Ze["[object Number]"]=Ze["[object Object]"]=Ze["[object RegExp]"]=Ze["[object Set]"]=Ze["[object String]"]=Ze["[object WeakMap]"]=!1;var Je=function(t){return Te(t)&&Be(t.length)&&!!Ze[wt(t)]};var Qe=function(t){return function(e){return t(e)}},tn=at(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n&&st.process,i=function(){try{var t=r&&r.require&&r.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}),en=tn&&tn.isTypedArray,nn=en?Qe(en):Je;var rn=function(t,e){if("__proto__"!=e)return t[e]},on=Object.prototype.hasOwnProperty;var an=function(t,e,n){var r=t[e];on.call(t,e)&&q(r,n)&&(void 0!==n||e in t)||me(t,e,n)};var sn=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i-1&&t%1==0&&t0){if(++e>=An)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(kn);var Nn=function(t,e){return Tn(jn(t,e,wn),t+"")};var Mn=function(t,e,n){if(!xt(n))return!1;var r=typeof e;return!!("number"==r?Fe(n)&&ln(e,n.length):"string"==r&&e in n)&&q(n[e],t)};var Pn=function(t){return Nn(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Mn(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++r1&&void 0!==arguments[1]?arguments[1]:{};if(!In.installed){In.installed=!0;var n={};Pn(n,_,e),Dn.options=n,A.options=n,t.directive("tooltip",A),t.directive("close-popover",I),t.component("v-popover",W)}}!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}");var $n=A,Ln=I,Rn=W,Dn={install:In,get enabled(){return g.enabled},set enabled(t){g.enabled=t}},Bn=null;"undefined"!=typeof window?Bn=window.Vue:void 0!==t&&(Bn=t.Vue),Bn&&Bn.use(Dn),e.default=Dn}.call(this,n(24))},,,,,,function(t,e,n){var r=n(100),o=n(729)(function(t,e,n){r(t,n,e)});t.exports=o},function(t,e,n){var r=n(730),o=n(731),i=n(13),a=n(5);t.exports=function(t,e){return function(n,s){var u=a(n)?r:o,c=e?e():{};return u(n,t,i(s,2),c)}}},function(t,e){t.exports=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o",""":'"',"'":"'"});t.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(53),o=n(38);t.exports=function(t,e,n){return t&&t.length?(e=n||void 0===e?1:o(e),r(t,0,e<0?0:e)):[]}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(106),o=n(27),i=n(790),a=n(38),s=n(440),u=Math.max;t.exports=function(t,e,n,c){t=o(t)?t:s(t),n=n&&!c?a(n):0;var f=t.length;return n<0&&(n=u(f+n,0)),i(t)?n<=f&&t.indexOf(e,n)>-1:!!f&&r(t,e,n)>-1}},function(t,e,n){var r=n(39),o=n(5),i=n(22),a="[object String]";t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&r(t)==a}},function(t,e,n){var r=n(68);t.exports=function(t,e){return r(e,function(e){return t[e]})}},,,,function(t,e,n){var r=n(13),o=n(796);t.exports=function(t,e){return t&&t.length?o(t,r(e,2)):0}},function(t,e){t.exports=function(t,e){for(var n,r=-1,o=t.length;++r1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])});t.exports=s},function(t,e,n){var r=n(68),o=n(13),i=n(392),a=n(837),s=n(96),u=n(838),c=n(66);t.exports=function(t,e,n){var f=-1;e=r(e.length?e:[c],s(o));var l=i(t,function(t,n,o){return{criteria:r(e,function(e){return e(t)}),index:++f,value:t}});return a(l,function(t,e){return u(t,e,n)})}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(839);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,s=i.length,u=n.length;++o=u?c:c*("desc"==n[o]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(49);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),s=void 0!==e,u=null===e,c=e==e,f=r(e);if(!u&&!f&&!a&&t>e||a&&s&&c&&!u&&!f||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!f&&t-1;);return n}},function(t,e,n){var r=n(106);t.exports=function(t,e){for(var n=-1,o=t.length;++n-1;);return n}},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Vuelidate=E,Object.defineProperty(e,"withParams",{enumerable:!0,get:function(){return o.withParams}}),e.default=e.validationMixin=void 0;var r=n(886),o=n(447);function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1?s:s.$sub[0]:null}}},computed:{run:function(){var t=this,e=this.lazyParentModel();if(Array.isArray(e)&&e.__ob__){var n=e.__ob__.dep;n.depend();var r=n.constructor.target;if(!this._indirectWatcher){var o=r.constructor;this._indirectWatcher=new o(this,function(){return t.runRule(e)},null,{lazy:!0})}var i=this.getModel();if(!this._indirectWatcher.dirty&&this._lastModel===i)return this._indirectWatcher.depend(),r.value;this._lastModel=i,this._indirectWatcher.evaluate(),this._indirectWatcher.depend()}else this._indirectWatcher&&(this._indirectWatcher.teardown(),this._indirectWatcher=null);return this._indirectWatcher?this._indirectWatcher.value:this.runRule(e)},$params:function(){return this.run.params},proxy:function(){var t=this.run.output;return t[d]?!!t.v:!!t},$pending:function(){var t=this.run.output;return!!t[d]&&t.p}},destroyed:function(){this._indirectWatcher&&(this._indirectWatcher.teardown(),this._indirectWatcher=null)}}),s=e.extend({data:function(){return{dirty:!1,validations:null,lazyModel:null,model:null,prop:null,lazyParentModel:null,rootModel:null}},methods:a({},y,{refProxy:function(t){return this.getRef(t).proxy},getRef:function(t){return this.refs[t]},isNested:function(t){return"function"!=typeof this.validations[t]}}),computed:a({},v,{nestedKeys:function(){return this.keys.filter(this.isNested)},ruleKeys:function(){var t=this;return this.keys.filter(function(e){return!t.isNested(e)})},keys:function(){return Object.keys(this.validations).filter(function(t){return"$params"!==t})},proxy:function(){var t=this,e=f(this.keys,function(e){return{enumerable:!0,configurable:!0,get:function(){return t.refProxy(e)}}}),n=f(g,function(e){return{enumerable:!0,configurable:!0,get:function(){return t[e]}}}),r=f(b,function(e){return{enumerable:!1,configurable:!0,get:function(){return t[e]}}}),o=this.hasIter()?{$iter:{enumerable:!0,value:Object.defineProperties({},a({},e))}}:{};return Object.defineProperties({},a({},e,o,{$model:{enumerable:!0,get:function(){var e=t.lazyParentModel();return null!=e?e[t.prop]:null},set:function(e){var n=t.lazyParentModel();null!=n&&(n[t.prop]=e,t.$touch())}}},n,r))},children:function(){var t=this;return i(this.nestedKeys.map(function(e){return w(t,e)})).concat(i(this.ruleKeys.map(function(e){return x(t,e)}))).filter(Boolean)}})}),u=s.extend({methods:{isNested:function(t){return void 0!==this.validations[t]()},getRef:function(t){var e=this;return{get proxy(){return e.validations[t]()||!1}}}}}),m=s.extend({computed:{keys:function(){var t=this.getModel();return h(t)?Object.keys(t):[]},tracker:function(){var t=this,e=this.validations.$trackBy;return e?function(n){return"".concat(p(t.rootModel,t.getModelKey(n),e))}:function(t){return"".concat(t)}},getModelLazy:function(){var t=this;return function(){return t.getModel()}},children:function(){var t=this,e=this.validations,n=this.getModel(),o=a({},e);delete o.$trackBy;var i={};return this.keys.map(function(e){var a=t.tracker(e);return i.hasOwnProperty(a)?null:(i[a]=!0,(0,r.h)(s,a,{validations:o,prop:e,lazyParentModel:t.getModelLazy,model:n[e],rootModel:t.rootModel}))}).filter(Boolean)}},methods:{isNested:function(){return!0},getRef:function(t){return this.refs[this.tracker(t)]},hasIter:function(){return!0}}}),w=function(t,e){if("$each"===e)return(0,r.h)(m,e,{validations:t.validations[e],lazyParentModel:t.lazyParentModel,prop:e,lazyModel:t.getModel,rootModel:t.rootModel});var n=t.validations[e];if(Array.isArray(n)){var o=t.rootModel,i=f(n,function(t){return function(){return p(o,o.$v,t)}},function(t){return Array.isArray(t)?t.join("."):t});return(0,r.h)(u,e,{validations:i,lazyParentModel:c,prop:e,lazyModel:c,rootModel:o})}return(0,r.h)(s,e,{validations:n,lazyParentModel:t.getModel,prop:e,lazyModel:t.getModelKey,rootModel:t.rootModel})},x=function(t,e){return(0,r.h)(n,e,{rule:t.validations[e],lazyParentModel:t.lazyParentModel,lazyModel:t.getModel,rootModel:t.rootModel})};return _={VBase:e,Validation:s}},x=null;var O=function(t,e){var n=function(t){if(x)return x;for(var e=t.constructor;e.super;)e=e.super;return x=e,e}(t),o=w(n),i=o.Validation;return new(0,o.VBase)({computed:{children:function(){var n="function"==typeof e?e.call(t):e;return[(0,r.h)(i,"$v",{validations:n,lazyParentModel:c,prop:"$v",model:t,rootModel:t})]}}})},j={data:function(){var t=this.$options.validations;return t&&(this._vuelidate=O(this,t)),{}},beforeCreate:function(){var t=this.$options;t.validations&&(t.computed||(t.computed={}),t.computed.$v||(t.computed.$v=function(){return this._vuelidate?this._vuelidate.refs.$v.proxy:null}))},beforeDestroy:function(){this._vuelidate&&(this._vuelidate.$destroy(),this._vuelidate=null)}};function E(t){t.mixin(j)}e.validationMixin=j;var k=E;e.default=k},function(t,e,n){"use strict";function r(t){return null==t}function o(t){return null!=t}function i(t,e){return e.tag===t.tag&&e.key===t.key}function a(t){var e=t.tag;t.vm=new e({data:t.args})}function s(t,e,n){var r,i,a={};for(r=e;r<=n;++r)o(i=t[r].key)&&(a[i]=r);return a}function u(t,e,n){for(;e<=n;++e)a(t[e])}function c(t,e,n){for(;e<=n;++e){var r=t[e];o(r)&&(r.vm.$destroy(),r.vm=null)}}function f(t,e){t!==e&&(e.vm=t.vm,function(t){for(var e=Object.keys(t.args),n=0;nv?u(e,d,g):d>g&&c(t,p,v)}(t,e):o(e)?u(e,0,e.length-1):o(t)&&c(t,0,t.length-1)},e.h=function(t,e,n){return{tag:t,key:e,args:n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"alpha",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"alphaNum",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"numeric",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"between",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"email",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"ipAddress",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"macAddress",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"maxLength",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"minLength",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"required",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"requiredIf",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"requiredUnless",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"sameAs",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"url",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"and",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"minValue",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"maxValue",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"integer",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"decimal",{enumerable:!0,get:function(){return O.default}}),e.helpers=void 0;var r=E(n(888)),o=E(n(891)),i=E(n(892)),a=E(n(893)),s=E(n(894)),u=E(n(895)),c=E(n(896)),f=E(n(897)),l=E(n(898)),h=E(n(899)),p=E(n(900)),d=E(n(901)),v=E(n(902)),m=E(n(903)),y=E(n(904)),g=E(n(905)),b=E(n(906)),_=E(n(907)),w=E(n(908)),x=E(n(909)),O=E(n(910)),j=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(6));function E(t){return t&&t.__esModule?t:{default:t}}e.helpers=j},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("alpha",/^[a-zA-Z]*$/);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r="web"===Object({NODE_ENV:"production"}).BUILD?n(890).withParams:n(447).withParams;e.default=r},function(t,e,n){"use strict";(function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.withParams=void 0;var r="undefined"!=typeof window?window:void 0!==t?t:{},o=r.vuelidate?r.vuelidate.withParams:function(t,e){return"object"===n(t)&&void 0!==e?e:t(function(){})};e.withParams=o}).call(this,n(24))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("alphaNum",/^[a-zA-Z0-9]*$/);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("numeric",/^[0-9]*$/);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t,e){return(0,r.withParams)({type:"between",min:t,max:e},function(n){return!(0,r.req)(n)||(!/\s/.test(n)||n instanceof Date)&&+t<=+n&&+e>=+n})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("email",/(^$|^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$)/);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6),o=(0,r.withParams)({type:"ipAddress"},function(t){if(!(0,r.req)(t))return!0;if("string"!=typeof t)return!1;var e=t.split(".");return 4===e.length&&e.every(i)});e.default=o;var i=function(t){if(t.length>3||0===t.length)return!1;if("0"===t[0]&&"0"!==t)return!1;if(!t.match(/^\d+$/))return!1;var e=0|+t;return e>=0&&e<=255}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":";return(0,r.withParams)({type:"macAddress"},function(e){if(!(0,r.req)(e))return!0;if("string"!=typeof e)return!1;var n="string"==typeof t&&""!==t?e.split(t):12===e.length||16===e.length?e.match(/.{2}/g):null;return null!==n&&(6===n.length||8===n.length)&&n.every(o)})};var o=function(t){return t.toLowerCase().match(/^[0-9a-f]{2}$/)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"maxLength",max:t},function(e){return!(0,r.req)(e)||(0,r.len)(e)<=t})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"minLength",min:t},function(e){return!(0,r.req)(e)||(0,r.len)(e)>=t})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6),o=(0,r.withParams)({type:"required"},r.req);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"requiredIf",prop:t},function(e,n){return!(0,r.ref)(t,this,n)||(0,r.req)(e)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"requiredUnless",prop:t},function(e,n){return!!(0,r.ref)(t,this,n)||(0,r.req)(e)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"sameAs",eq:t},function(e,n){return e===(0,r.ref)(t,this,n)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("url",/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&e.reduce(function(e,n){return e||n.apply(t,r)},!1)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&e.reduce(function(e,n){return e&&n.apply(t,r)},!0)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"not"},function(e,n){return!(0,r.req)(e)||!t.call(this,e,n)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"minValue",min:t},function(e){return!(0,r.req)(e)||(!/\s/.test(e)||e instanceof Date)&&+e>=+t})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"maxValue",max:t},function(e){return!(0,r.req)(e)||(!/\s/.test(e)||e instanceof Date)&&+e<=+t})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("integer",/^-?[0-9]*$/);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("decimal",/^[-]?\d*(\.\d+)?$/);e.default=r},,,,,,,,,,,function(t,e,n){"use strict"; + */Object.defineProperty(e,"__esModule",{value:!0});var r,o=(r=n(12))&&"object"==typeof r&&"default"in r?r.default:r;function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]&&arguments[1],n=t.to,r=t.from;if(n&&r&&this.transports[n])if(e)this.transports[n]=[];else{var o=this.$_getTransportIndex(t);if(o>=0){var i=this.transports[n].slice(0);i.splice(o,1),this.transports[n]=i}}},registerTarget:function(t,e,n){s&&(this.trackInstances&&!n&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,n){s&&(this.trackInstances&&!n&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,n=t.from;for(var r in this.transports[e])if(this.transports[e][r].from===n)return+r;return-1}}}))(c),p=1,d=o.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(p++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick(function(){h.registerSource(t.name,t)})},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){h.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};h.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"==typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:a(t),order:this.order};h.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(n,[this.normalizeOwnChildren(e)]):this.slim?t():t(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),v=o.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:h.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick(function(){h.registerTarget(t.name,t)})},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){h.unregisterTarget(e),h.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick(function(){t.firstRender=!1})},beforeDestroy:function(){h.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce(function(t,n){var r=n.passengers[0],o="function"==typeof r?r(e):n.passengers;return t.concat(o)},[])}(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return e?n[0]:this.slim&&!r?t():t(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),m=0,y=["disabled","name","order","slim","slotProps","tag","to"],g=["multiple","transition"],b=o.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(m++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(h.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=h.targets[e.name];else{var n=e.append;if(n){var r="string"==typeof n?n:"DIV",o=document.createElement(r);t.appendChild(o),t=o}var i=u(this.$props,g);i.slim=this.targetSlim,i.tag=this.targetTag,i.slotProps=this.targetSlotProps,i.name=this.to,this.portalTarget=new v({el:t,parent:this.$parent||this,propsData:i})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=u(this.$props,y);return t(d,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||t()}});var _={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",d),t.component(e.portalTargetName||"PortalTarget",v),t.component(e.MountingPortalName||"MountingPortal",b)}};e.default=_,e.Portal=d,e.PortalTarget=v,e.MountingPortal=b,e.Wormhole=h},,function(t,e,n){var r,o,i;o=[e],void 0===(i="function"==typeof(r=function(t){"use strict";function e(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e
',trigger:"hover focus",offset:0},m=[],y=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,"_events",[]),s(this,"_setTooltipNodeEvent",function(t,e,n,o){var i=t.relatedreference||t.toElement||t.relatedTarget;return!!r._tooltipNode.contains(i)&&(r._tooltipNode.addEventListener(t.type,function n(i){var a=i.relatedreference||i.toElement||i.relatedTarget;r._tooltipNode.removeEventListener(t.type,n),e.contains(a)||r._scheduleHide(e,o.delay,o,i)}),!0)}),n=u({},v,n),e.jquery&&(e=e[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=e,this.options=n,this._isOpen=!1,this._init()}var e,n,o;return e=t,(n=[{key:"show",value:function(){this._show(this.reference,this.options)}},{key:"hide",value:function(){this._hide()}},{key:"dispose",value:function(){this._dispose()}},{key:"toggle",value:function(){return this._isOpen?this.hide():this.show()}},{key:"setClasses",value:function(t){this._classes=t}},{key:"setContent",value:function(t){this.options.title=t,this._tooltipNode&&this._setContent(t,this.options)}},{key:"setOptions",value:function(t){var e=!1,n=t&&t.classes||A.options.defaultClass;this._classes!==n&&(this.setClasses(n),e=!0),t=w(t);var r=!1,o=!1;for(var i in this.options.offset===t.offset&&this.options.placement===t.placement||(r=!0),(this.options.template!==t.template||this.options.trigger!==t.trigger||this.options.container!==t.container||e)&&(o=!0),t)this.options[i]=t[i];if(this._tooltipNode)if(o){var a=this._isOpen;this.dispose(),this._init(),a&&this.show()}else r&&this.popperInstance.update()}},{key:"_init",value:function(){var t="string"==typeof this.options.trigger?this.options.trigger.split(" "):[];this._isDisposed=!1,this._enableDocumentTouch=-1===t.indexOf("manual"),t=t.filter(function(t){return-1!==["click","hover","focus"].indexOf(t)}),this._setEventListeners(this.reference,t,this.options),this.$_originalTitle=this.reference.getAttribute("title"),this.reference.removeAttribute("title"),this.reference.setAttribute("data-original-title",this.$_originalTitle)}},{key:"_create",value:function(t,e){var n=window.document.createElement("div");n.innerHTML=e.trim();var r=n.childNodes[0];return r.id="tooltip_".concat(Math.random().toString(36).substr(2,10)),r.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(r.addEventListener("mouseenter",this.hide),r.addEventListener("click",this.hide)),r}},{key:"_setContent",value:function(t,e){var n=this;this.asyncContent=!1,this._applyContent(t,e).then(function(){n.popperInstance.update()})}},{key:"_applyContent",value:function(t,e){var n=this;return new Promise(function(r,o){var i=e.html,a=n._tooltipNode;if(a){var s=a.querySelector(n.options.innerSelector);if(1===t.nodeType){if(i){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(t)}}else{if("function"==typeof t){var u=t();return void(u&&"function"==typeof u.then?(n.asyncContent=!0,e.loadingClass&&l(a,e.loadingClass),e.loadingContent&&n._applyContent(e.loadingContent,e),u.then(function(t){return e.loadingClass&&h(a,e.loadingClass),n._applyContent(t,e)}).then(r).catch(o)):n._applyContent(u,e).then(r).catch(o))}i?s.innerHTML=t:s.innerText=t}r()}})}},{key:"_show",value:function(t,e){if(e&&"string"==typeof e.container&&!document.querySelector(e.container))return;clearTimeout(this._disposeTimer),delete(e=Object.assign({},e)).offset;var n=!0;this._tooltipNode&&(l(this._tooltipNode,this._classes),n=!1);var r=this._ensureShown(t,e);return n&&this._tooltipNode&&l(this._tooltipNode,this._classes),l(t,["v-tooltip-open"]),r}},{key:"_ensureShown",value:function(t,e){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,m.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(e.title,e),this;var o=t.getAttribute("title")||e.title;if(!o)return this;var i=this._create(t,e.template);this._tooltipNode=i,t.setAttribute("aria-describedby",i.id);var a=this._findContainer(e.container,t);this._append(i,a);var s=u({},e.popperOptions,{placement:e.placement});return s.modifiers=u({},s.modifiers,{arrow:{element:this.options.arrowSelector}}),e.boundariesElement&&(s.modifiers.preventOverflow={boundariesElement:e.boundariesElement}),this.popperInstance=new r.a(t,i,s),this._setContent(o,e),requestAnimationFrame(function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame(function(){n._isDisposed?n.dispose():n._isOpen&&i.setAttribute("aria-hidden","false")})):n.dispose()}),this}},{key:"_noLongerOpen",value:function(){var t=m.indexOf(this);-1!==t&&m.splice(t,1)}},{key:"_hide",value:function(){var t=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var e=A.options.disposeTimeout;return null!==e&&(this._disposeTimer=setTimeout(function(){t._tooltipNode&&(t._tooltipNode.removeEventListener("mouseenter",t.hide),t._tooltipNode.removeEventListener("click",t.hide),t._removeTooltipNode())},e)),h(this.reference,["v-tooltip-open"]),this}},{key:"_removeTooltipNode",value:function(){if(this._tooltipNode){var t=this._tooltipNode.parentNode;t&&(t.removeChild(this._tooltipNode),this.reference.removeAttribute("aria-describedby")),this._tooltipNode=null}}},{key:"_dispose",value:function(){var t=this;return this._isDisposed=!0,this.reference.removeAttribute("data-original-title"),this.$_originalTitle&&this.reference.setAttribute("title",this.$_originalTitle),this._events.forEach(function(e){var n=e.func,r=e.event;t.reference.removeEventListener(r,n)}),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:"_findContainer",value:function(t,e){return"string"==typeof t?t=window.document.querySelector(t):!1===t&&(t=e.parentNode),t}},{key:"_append",value:function(t,e){e.appendChild(t)}},{key:"_setEventListeners",value:function(t,e,n){var r=this,o=[],i=[];e.forEach(function(t){switch(t){case"hover":o.push("mouseenter"),i.push("mouseleave"),r.options.hideOnTargetClick&&i.push("click");break;case"focus":o.push("focus"),i.push("blur"),r.options.hideOnTargetClick&&i.push("click");break;case"click":o.push("click"),i.push("click")}}),o.forEach(function(e){var o=function(e){!0!==r._isOpen&&(e.usedByTooltip=!0,r._scheduleShow(t,n.delay,n,e))};r._events.push({event:e,func:o}),t.addEventListener(e,o)}),i.forEach(function(e){var o=function(e){!0!==e.usedByTooltip&&r._scheduleHide(t,n.delay,n,e)};r._events.push({event:e,func:o}),t.addEventListener(e,o)})}},{key:"_onDocumentTouch",value:function(t){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,t)}},{key:"_scheduleShow",value:function(t,e,n){var r=this,o=e&&e.show||e||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){return r._show(t,n)},o)}},{key:"_scheduleHide",value:function(t,e,n,r){var o=this,i=e&&e.hide||e||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){if(!1!==o._isOpen&&document.body.contains(o._tooltipNode)){if("mouseleave"===r.type)if(o._setTooltipNodeEvent(r,t,e,n))return;o._hide(t,n)}},i)}}])&&a(e.prototype,n),o&&a(e,o),t}();"undefined"!=typeof document&&document.addEventListener("touchstart",function(t){for(var e=0;e
',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultOpenClass:"open",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function w(t){var e={placement:void 0!==t.placement?t.placement:A.options.defaultPlacement,delay:void 0!==t.delay?t.delay:A.options.defaultDelay,html:void 0!==t.html?t.html:A.options.defaultHtml,template:void 0!==t.template?t.template:A.options.defaultTemplate,arrowSelector:void 0!==t.arrowSelector?t.arrowSelector:A.options.defaultArrowSelector,innerSelector:void 0!==t.innerSelector?t.innerSelector:A.options.defaultInnerSelector,trigger:void 0!==t.trigger?t.trigger:A.options.defaultTrigger,offset:void 0!==t.offset?t.offset:A.options.defaultOffset,container:void 0!==t.container?t.container:A.options.defaultContainer,boundariesElement:void 0!==t.boundariesElement?t.boundariesElement:A.options.defaultBoundariesElement,autoHide:void 0!==t.autoHide?t.autoHide:A.options.autoHide,hideOnTargetClick:void 0!==t.hideOnTargetClick?t.hideOnTargetClick:A.options.defaultHideOnTargetClick,loadingClass:void 0!==t.loadingClass?t.loadingClass:A.options.defaultLoadingClass,loadingContent:void 0!==t.loadingContent?t.loadingContent:A.options.defaultLoadingContent,popperOptions:u({},void 0!==t.popperOptions?t.popperOptions:A.options.defaultPopperOptions)};if(e.offset){var n=i(e.offset),r=e.offset;("number"===n||"string"===n&&-1===r.indexOf(","))&&(r="0, ".concat(r)),e.popperOptions.modifiers||(e.popperOptions.modifiers={}),e.popperOptions.modifiers.offset={offset:r}}return e.trigger&&-1!==e.trigger.indexOf("click")&&(e.hideOnTargetClick=!1),e}function x(t,e){for(var n=t.placement,r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=O(e),o=void 0!==e.classes?e.classes:A.options.defaultClass,i=u({title:r},w(u({},e,{placement:x(e,n)}))),a=t._tooltip=new y(t,i);a.setClasses(o),a._vueEl=t;var s=void 0!==e.targetClasses?e.targetClasses:A.options.defaultTargetClass;return t._tooltipTargetClasses=s,l(t,s),a}function E(t){t._tooltip&&(t._tooltip.dispose(),delete t._tooltip,delete t._tooltipOldShow),t._tooltipTargetClasses&&(h(t,t._tooltipTargetClasses),delete t._tooltipTargetClasses)}function k(t,e){var n,r=e.value,o=(e.oldValue,e.modifiers),i=O(r);i&&g.enabled?(t._tooltip?((n=t._tooltip).setContent(i),n.setOptions(u({},r,{placement:x(r,o)}))):n=j(t,r,o),void 0!==r.show&&r.show!==t._tooltipOldShow&&(t._tooltipOldShow=r.show,r.show?n.show():n.hide())):E(t)}var A={options:_,bind:k,update:k,unbind:function(t){E(t)}};function S(t){t.addEventListener("click",T),t.addEventListener("touchstart",N,!!p&&{passive:!0})}function C(t){t.removeEventListener("click",T),t.removeEventListener("touchstart",N),t.removeEventListener("touchend",M),t.removeEventListener("touchcancel",P)}function T(t){var e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function N(t){if(1===t.changedTouches.length){var e=t.currentTarget;e.$_vclosepopover_touch=!0;var n=t.changedTouches[0];e.$_vclosepopover_touchPoint=n,e.addEventListener("touchend",M),e.addEventListener("touchcancel",P)}}function M(t){var e=t.currentTarget;if(e.$_vclosepopover_touch=!1,1===t.changedTouches.length){var n=t.changedTouches[0],r=e.$_vclosepopover_touchPoint;t.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}}function P(t){t.currentTarget.$_vclosepopover_touch=!1}var I={bind:function(t,e){var n=e.value,r=e.modifiers;t.$_closePopoverModifiers=r,(void 0===n||n)&&S(t)},update:function(t,e){var n=e.value,r=e.oldValue,o=e.modifiers;t.$_closePopoverModifiers=o,n!==r&&(void 0===n||n?S(t):C(t))},unbind:function(t){C(t)}};function $(t){var e=A.options.popover[t];return void 0===e?A.options[t]:e}var L=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(L=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var R=[],D=function(){};"undefined"!=typeof window&&(D=window.Element);var B={name:"VPopover",components:{ResizeObserver:o.a},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return $("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return $("defaultDelay")}},offset:{type:[String,Number],default:function(){return $("defaultOffset")}},trigger:{type:String,default:function(){return $("defaultTrigger")}},container:{type:[String,Object,D,Boolean],default:function(){return $("defaultContainer")}},boundariesElement:{type:[String,D],default:function(){return $("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return $("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return $("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return A.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return A.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return A.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return A.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return A.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return A.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return A.options.popover.defaultOpenClass}}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return s({},this.openClass,this.isOpen)},popoverId:function(){return"popover_".concat(this.id)}},watch:{open:function(t){t?this.show():this.hide()},disabled:function(t,e){t!==e&&(t?this.hide():this.open&&this.show())},container:function(t){if(this.isOpen&&this.popperInstance){var e=this.$refs.popover,n=this.$refs.trigger,r=this.$_findContainer(this.container,n);if(!r)return void console.warn("No container for popover",this);r.appendChild(e),this.popperInstance.scheduleUpdate()}},trigger:function(t){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(t){var e=this;this.$_updatePopper(function(){e.popperInstance.options.placement=t})},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var t=this.$refs.popover;t.parentNode&&t.parentNode.removeChild(t),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.event,r=(e.skipDelay,e.force);!(void 0!==r&&r)&&this.disabled||(this.$_scheduleShow(n),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame(function(){t.$_beingShowed=!1})},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.event;t.skipDelay;this.$_scheduleHide(e),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var t=this.$refs.popover;t.parentNode&&t.parentNode.removeChild(t)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var t=this,e=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var o=this.$_findContainer(this.container,e);if(!o)return void console.warn("No container for popover",this);o.appendChild(n),this.$_mounted=!0}if(!this.popperInstance){var i=u({},this.popperOptions,{placement:this.placement});if(i.modifiers=u({},i.modifiers,{arrow:u({},i.modifiers&&i.modifiers.arrow,{element:this.$refs.arrow})}),this.offset){var a=this.$_getOffset();i.modifiers.offset=u({},i.modifiers&&i.modifiers.offset,{offset:a})}this.boundariesElement&&(i.modifiers.preventOverflow=u({},i.modifiers&&i.modifiers.preventOverflow,{boundariesElement:this.boundariesElement})),this.popperInstance=new r.a(e,n,i),requestAnimationFrame(function(){if(t.hidden)return t.hidden=!1,void t.$_hide();!t.$_isDisposed&&t.popperInstance?(t.popperInstance.scheduleUpdate(),requestAnimationFrame(function(){if(t.hidden)return t.hidden=!1,void t.$_hide();t.$_isDisposed?t.dispose():t.isOpen=!0})):t.dispose()})}var s=this.openGroup;if(s)for(var c,f=0;f1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),t)this.$_show();else{var e=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),e)}},$_scheduleHide:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var r=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout(function(){if(t.isOpen){if(e&&"mouseleave"===e.type)if(t.$_setTooltipNodeEvent(e))return;t.$_hide()}},r)}},$_setTooltipNodeEvent:function(t){var e=this,n=this.$refs.trigger,r=this.$refs.popover,o=t.relatedreference||t.toElement||t.relatedTarget;return!!r.contains(o)&&(r.addEventListener(t.type,function o(i){var a=i.relatedreference||i.toElement||i.relatedTarget;r.removeEventListener(t.type,o),n.contains(a)||e.hide({event:i})}),!0)},$_removeEventListeners:function(){var t=this.$refs.trigger;this.$_events.forEach(function(e){var n=e.func,r=e.event;t.removeEventListener(r,n)}),this.$_events=[]},$_updatePopper:function(t){this.popperInstance&&(t(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var t=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),t&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout(function(){e.$_preventOpen=!1},300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function F(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var r=R[n];if(r.$refs.popover){var o=r.$refs.popover.contains(t.target);requestAnimationFrame(function(){(t.closeAllPopover||t.closePopover&&o||r.autoHide&&!o)&&r.$_handleGlobalClose(t,e)})}},r=0;r-1};var J=function(t,e){var n=this.__data__,r=V(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Q(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=De};var Fe=function(t){return null!=t&&Be(t.length)&&!St(t)};var ze=function(t){return Te(t)&&Fe(t)};var Ue=function(){return!1},He=at(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?ct.Buffer:void 0,i=(o?o.isBuffer:void 0)||Ue;t.exports=i}),We="[object Object]",Ye=Function.prototype,qe=Object.prototype,Ve=Ye.toString,Xe=qe.hasOwnProperty,Ke=Ve.call(Object);var Ge=function(t){if(!Te(t)||wt(t)!=We)return!1;var e=ke(t);if(null===e)return!0;var n=Xe.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ve.call(n)==Ke},Ze={};Ze["[object Float32Array]"]=Ze["[object Float64Array]"]=Ze["[object Int8Array]"]=Ze["[object Int16Array]"]=Ze["[object Int32Array]"]=Ze["[object Uint8Array]"]=Ze["[object Uint8ClampedArray]"]=Ze["[object Uint16Array]"]=Ze["[object Uint32Array]"]=!0,Ze["[object Arguments]"]=Ze["[object Array]"]=Ze["[object ArrayBuffer]"]=Ze["[object Boolean]"]=Ze["[object DataView]"]=Ze["[object Date]"]=Ze["[object Error]"]=Ze["[object Function]"]=Ze["[object Map]"]=Ze["[object Number]"]=Ze["[object Object]"]=Ze["[object RegExp]"]=Ze["[object Set]"]=Ze["[object String]"]=Ze["[object WeakMap]"]=!1;var Je=function(t){return Te(t)&&Be(t.length)&&!!Ze[wt(t)]};var Qe=function(t){return function(e){return t(e)}},tn=at(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n&&st.process,i=function(){try{var t=r&&r.require&&r.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}),en=tn&&tn.isTypedArray,nn=en?Qe(en):Je;var rn=function(t,e){if("__proto__"!=e)return t[e]},on=Object.prototype.hasOwnProperty;var an=function(t,e,n){var r=t[e];on.call(t,e)&&q(r,n)&&(void 0!==n||e in t)||me(t,e,n)};var sn=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i-1&&t%1==0&&t0){if(++e>=An)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(kn);var Nn=function(t,e){return Tn(jn(t,e,wn),t+"")};var Mn=function(t,e,n){if(!xt(n))return!1;var r=typeof e;return!!("number"==r?Fe(n)&&ln(e,n.length):"string"==r&&e in n)&&q(n[e],t)};var Pn=function(t){return Nn(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Mn(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++r1&&void 0!==arguments[1]?arguments[1]:{};if(!In.installed){In.installed=!0;var n={};Pn(n,_,e),Dn.options=n,A.options=n,t.directive("tooltip",A),t.directive("close-popover",I),t.component("v-popover",W)}}!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}");var $n=A,Ln=I,Rn=W,Dn={install:In,get enabled(){return g.enabled},set enabled(t){g.enabled=t}},Bn=null;"undefined"!=typeof window?Bn=window.Vue:void 0!==t&&(Bn=t.Vue),Bn&&Bn.use(Dn),e.default=Dn}.call(this,n(24))},,,,,,function(t,e,n){var r=n(100),o=n(729)(function(t,e,n){r(t,n,e)});t.exports=o},function(t,e,n){var r=n(730),o=n(731),i=n(13),a=n(5);t.exports=function(t,e){return function(n,s){var u=a(n)?r:o,c=e?e():{};return u(n,t,i(s,2),c)}}},function(t,e){t.exports=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o",""":'"',"'":"'"});t.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(53),o=n(38);t.exports=function(t,e,n){return t&&t.length?(e=n||void 0===e?1:o(e),r(t,0,e<0?0:e)):[]}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(106),o=n(27),i=n(790),a=n(38),s=n(440),u=Math.max;t.exports=function(t,e,n,c){t=o(t)?t:s(t),n=n&&!c?a(n):0;var f=t.length;return n<0&&(n=u(f+n,0)),i(t)?n<=f&&t.indexOf(e,n)>-1:!!f&&r(t,e,n)>-1}},function(t,e,n){var r=n(39),o=n(5),i=n(22),a="[object String]";t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&r(t)==a}},function(t,e,n){var r=n(68);t.exports=function(t,e){return r(e,function(e){return t[e]})}},,,,function(t,e,n){var r=n(13),o=n(796);t.exports=function(t,e){return t&&t.length?o(t,r(e,2)):0}},function(t,e){t.exports=function(t,e){for(var n,r=-1,o=t.length;++r1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])});t.exports=s},function(t,e,n){var r=n(68),o=n(13),i=n(392),a=n(837),s=n(96),u=n(838),c=n(66);t.exports=function(t,e,n){var f=-1;e=r(e.length?e:[c],s(o));var l=i(t,function(t,n,o){return{criteria:r(e,function(e){return e(t)}),index:++f,value:t}});return a(l,function(t,e){return u(t,e,n)})}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(839);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,s=i.length,u=n.length;++o=u?c:c*("desc"==n[o]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(49);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),s=void 0!==e,u=null===e,c=e==e,f=r(e);if(!u&&!f&&!a&&t>e||a&&s&&c&&!u&&!f||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!f&&t-1;);return n}},function(t,e,n){var r=n(106);t.exports=function(t,e){for(var n=-1,o=t.length;++n-1;);return n}},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Vuelidate=E,Object.defineProperty(e,"withParams",{enumerable:!0,get:function(){return o.withParams}}),e.default=e.validationMixin=void 0;var r=n(886),o=n(447);function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1?s:s.$sub[0]:null}}},computed:{run:function(){var t=this,e=this.lazyParentModel();if(Array.isArray(e)&&e.__ob__){var n=e.__ob__.dep;n.depend();var r=n.constructor.target;if(!this._indirectWatcher){var o=r.constructor;this._indirectWatcher=new o(this,function(){return t.runRule(e)},null,{lazy:!0})}var i=this.getModel();if(!this._indirectWatcher.dirty&&this._lastModel===i)return this._indirectWatcher.depend(),r.value;this._lastModel=i,this._indirectWatcher.evaluate(),this._indirectWatcher.depend()}else this._indirectWatcher&&(this._indirectWatcher.teardown(),this._indirectWatcher=null);return this._indirectWatcher?this._indirectWatcher.value:this.runRule(e)},$params:function(){return this.run.params},proxy:function(){var t=this.run.output;return t[d]?!!t.v:!!t},$pending:function(){var t=this.run.output;return!!t[d]&&t.p}},destroyed:function(){this._indirectWatcher&&(this._indirectWatcher.teardown(),this._indirectWatcher=null)}}),s=e.extend({data:function(){return{dirty:!1,validations:null,lazyModel:null,model:null,prop:null,lazyParentModel:null,rootModel:null}},methods:a({},y,{refProxy:function(t){return this.getRef(t).proxy},getRef:function(t){return this.refs[t]},isNested:function(t){return"function"!=typeof this.validations[t]}}),computed:a({},v,{nestedKeys:function(){return this.keys.filter(this.isNested)},ruleKeys:function(){var t=this;return this.keys.filter(function(e){return!t.isNested(e)})},keys:function(){return Object.keys(this.validations).filter(function(t){return"$params"!==t})},proxy:function(){var t=this,e=f(this.keys,function(e){return{enumerable:!0,configurable:!0,get:function(){return t.refProxy(e)}}}),n=f(g,function(e){return{enumerable:!0,configurable:!0,get:function(){return t[e]}}}),r=f(b,function(e){return{enumerable:!1,configurable:!0,get:function(){return t[e]}}}),o=this.hasIter()?{$iter:{enumerable:!0,value:Object.defineProperties({},a({},e))}}:{};return Object.defineProperties({},a({},e,o,{$model:{enumerable:!0,get:function(){var e=t.lazyParentModel();return null!=e?e[t.prop]:null},set:function(e){var n=t.lazyParentModel();null!=n&&(n[t.prop]=e,t.$touch())}}},n,r))},children:function(){var t=this;return i(this.nestedKeys.map(function(e){return w(t,e)})).concat(i(this.ruleKeys.map(function(e){return x(t,e)}))).filter(Boolean)}})}),u=s.extend({methods:{isNested:function(t){return void 0!==this.validations[t]()},getRef:function(t){var e=this;return{get proxy(){return e.validations[t]()||!1}}}}}),m=s.extend({computed:{keys:function(){var t=this.getModel();return h(t)?Object.keys(t):[]},tracker:function(){var t=this,e=this.validations.$trackBy;return e?function(n){return"".concat(p(t.rootModel,t.getModelKey(n),e))}:function(t){return"".concat(t)}},getModelLazy:function(){var t=this;return function(){return t.getModel()}},children:function(){var t=this,e=this.validations,n=this.getModel(),o=a({},e);delete o.$trackBy;var i={};return this.keys.map(function(e){var a=t.tracker(e);return i.hasOwnProperty(a)?null:(i[a]=!0,(0,r.h)(s,a,{validations:o,prop:e,lazyParentModel:t.getModelLazy,model:n[e],rootModel:t.rootModel}))}).filter(Boolean)}},methods:{isNested:function(){return!0},getRef:function(t){return this.refs[this.tracker(t)]},hasIter:function(){return!0}}}),w=function(t,e){if("$each"===e)return(0,r.h)(m,e,{validations:t.validations[e],lazyParentModel:t.lazyParentModel,prop:e,lazyModel:t.getModel,rootModel:t.rootModel});var n=t.validations[e];if(Array.isArray(n)){var o=t.rootModel,i=f(n,function(t){return function(){return p(o,o.$v,t)}},function(t){return Array.isArray(t)?t.join("."):t});return(0,r.h)(u,e,{validations:i,lazyParentModel:c,prop:e,lazyModel:c,rootModel:o})}return(0,r.h)(s,e,{validations:n,lazyParentModel:t.getModel,prop:e,lazyModel:t.getModelKey,rootModel:t.rootModel})},x=function(t,e){return(0,r.h)(n,e,{rule:t.validations[e],lazyParentModel:t.lazyParentModel,lazyModel:t.getModel,rootModel:t.rootModel})};return _={VBase:e,Validation:s}},x=null;var O=function(t,e){var n=function(t){if(x)return x;for(var e=t.constructor;e.super;)e=e.super;return x=e,e}(t),o=w(n),i=o.Validation;return new(0,o.VBase)({computed:{children:function(){var n="function"==typeof e?e.call(t):e;return[(0,r.h)(i,"$v",{validations:n,lazyParentModel:c,prop:"$v",model:t,rootModel:t})]}}})},j={data:function(){var t=this.$options.validations;return t&&(this._vuelidate=O(this,t)),{}},beforeCreate:function(){var t=this.$options;t.validations&&(t.computed||(t.computed={}),t.computed.$v||(t.computed.$v=function(){return this._vuelidate?this._vuelidate.refs.$v.proxy:null}))},beforeDestroy:function(){this._vuelidate&&(this._vuelidate.$destroy(),this._vuelidate=null)}};function E(t){t.mixin(j)}e.validationMixin=j;var k=E;e.default=k},function(t,e,n){"use strict";function r(t){return null==t}function o(t){return null!=t}function i(t,e){return e.tag===t.tag&&e.key===t.key}function a(t){var e=t.tag;t.vm=new e({data:t.args})}function s(t,e,n){var r,i,a={};for(r=e;r<=n;++r)o(i=t[r].key)&&(a[i]=r);return a}function u(t,e,n){for(;e<=n;++e)a(t[e])}function c(t,e,n){for(;e<=n;++e){var r=t[e];o(r)&&(r.vm.$destroy(),r.vm=null)}}function f(t,e){t!==e&&(e.vm=t.vm,function(t){for(var e=Object.keys(t.args),n=0;nv?u(e,d,g):d>g&&c(t,p,v)}(t,e):o(e)?u(e,0,e.length-1):o(t)&&c(t,0,t.length-1)},e.h=function(t,e,n){return{tag:t,key:e,args:n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"alpha",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"alphaNum",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"numeric",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"between",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"email",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"ipAddress",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"macAddress",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"maxLength",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"minLength",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"required",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"requiredIf",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"requiredUnless",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"sameAs",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"url",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"and",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"minValue",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"maxValue",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"integer",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"decimal",{enumerable:!0,get:function(){return O.default}}),e.helpers=void 0;var r=E(n(888)),o=E(n(891)),i=E(n(892)),a=E(n(893)),s=E(n(894)),u=E(n(895)),c=E(n(896)),f=E(n(897)),l=E(n(898)),h=E(n(899)),p=E(n(900)),d=E(n(901)),v=E(n(902)),m=E(n(903)),y=E(n(904)),g=E(n(905)),b=E(n(906)),_=E(n(907)),w=E(n(908)),x=E(n(909)),O=E(n(910)),j=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(6));function E(t){return t&&t.__esModule?t:{default:t}}e.helpers=j},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("alpha",/^[a-zA-Z]*$/);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r="web"===Object({NODE_ENV:"production"}).BUILD?n(890).withParams:n(447).withParams;e.default=r},function(t,e,n){"use strict";(function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.withParams=void 0;var r="undefined"!=typeof window?window:void 0!==t?t:{},o=r.vuelidate?r.vuelidate.withParams:function(t,e){return"object"===n(t)&&void 0!==e?e:t(function(){})};e.withParams=o}).call(this,n(24))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("alphaNum",/^[a-zA-Z0-9]*$/);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("numeric",/^[0-9]*$/);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t,e){return(0,r.withParams)({type:"between",min:t,max:e},function(n){return!(0,r.req)(n)||(!/\s/.test(n)||n instanceof Date)&&+t<=+n&&+e>=+n})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("email",/(^$|^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$)/);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6),o=(0,r.withParams)({type:"ipAddress"},function(t){if(!(0,r.req)(t))return!0;if("string"!=typeof t)return!1;var e=t.split(".");return 4===e.length&&e.every(i)});e.default=o;var i=function(t){if(t.length>3||0===t.length)return!1;if("0"===t[0]&&"0"!==t)return!1;if(!t.match(/^\d+$/))return!1;var e=0|+t;return e>=0&&e<=255}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":";return(0,r.withParams)({type:"macAddress"},function(e){if(!(0,r.req)(e))return!0;if("string"!=typeof e)return!1;var n="string"==typeof t&&""!==t?e.split(t):12===e.length||16===e.length?e.match(/.{2}/g):null;return null!==n&&(6===n.length||8===n.length)&&n.every(o)})};var o=function(t){return t.toLowerCase().match(/^[0-9a-f]{2}$/)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"maxLength",max:t},function(e){return!(0,r.req)(e)||(0,r.len)(e)<=t})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"minLength",min:t},function(e){return!(0,r.req)(e)||(0,r.len)(e)>=t})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6),o=(0,r.withParams)({type:"required"},r.req);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"requiredIf",prop:t},function(e,n){return!(0,r.ref)(t,this,n)||(0,r.req)(e)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"requiredUnless",prop:t},function(e,n){return!!(0,r.ref)(t,this,n)||(0,r.req)(e)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"sameAs",eq:t},function(e,n){return e===(0,r.ref)(t,this,n)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("url",/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[\/?#]\S*)?$/i);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&e.reduce(function(e,n){return e||n.apply(t,r)},!1)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&e.reduce(function(e,n){return e&&n.apply(t,r)},!0)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"not"},function(e,n){return!(0,r.req)(e)||!t.call(this,e,n)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"minValue",min:t},function(e){return!(0,r.req)(e)||(!/\s/.test(e)||e instanceof Date)&&+e>=+t})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(6);e.default=function(t){return(0,r.withParams)({type:"maxValue",max:t},function(e){return!(0,r.req)(e)||(!/\s/.test(e)||e instanceof Date)&&+e<=+t})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("integer",/^-?[0-9]*$/);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(6).regex)("decimal",/^[-]?\d*(\.\d+)?$/);e.default=r},,,,,,,,,,,function(t,e,n){"use strict"; /*! * Cropper.js v1.4.3 * https://fengyuanchen.github.io/cropperjs @@ -68,7 +68,7 @@ function r(t,e){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+t),e&&c * * Date: 2018-10-24T13:07:15.032Z */ -function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n1?e-1:0),r=1;r0&&n.forEach(function(e){S(e)&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t},I=/\.\d*(?:0|9){12}\d*$/;function $(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return I.test(t)?Math.round(t*e)/e:t}var L=/^(?:width|height|left|top|marginLeft|marginTop)$/;function R(t,e){var n=t.style;M(e,function(t,e){L.test(e)&&k(t)&&(t+="px"),n[e]=t})}function D(t,e){if(e)if(k(t.length))M(t,function(t){D(t,e)});else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function B(t,e){e&&(k(t.length)?M(t,function(t){B(t,e)}):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function F(t,e,n){e&&(k(t.length)?M(t,function(t){F(t,e,n)}):n?D(t,e):B(t,e))}var z=/([a-z\d])([A-Z])/g;function U(t){return t.replace(z,"$1-$2").toLowerCase()}function H(t,e){return S(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(U(e)))}function W(t,e,n){S(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(U(e)),n)}var Y=/\s\s*/,q=function(){var t=!1;if(a){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});s.addEventListener("test",n,r),s.removeEventListener("test",n,r)}return t}();function V(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;e.trim().split(Y).forEach(function(e){if(!q){var i=t.listeners;i&&i[e]&&i[e][n]&&(o=i[e][n],delete i[e][n],0===Object.keys(i[e]).length&&delete i[e],0===Object.keys(i).length&&delete t.listeners)}t.removeEventListener(e,o,r)})}function X(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;e.trim().split(Y).forEach(function(e){if(r.once&&!q){var i=t.listeners,a=void 0===i?{}:i;o=function(){delete a[e][n],t.removeEventListener(e,o,r);for(var i=arguments.length,s=new Array(i),u=0;u1&&void 0!==arguments[1]?arguments[1]:"contain",i=function(t){return rt(t)&&t>0};if(i(r)&&i(n)){var a=n*e;"contain"===o&&a>r||"cover"===o&&a=8&&(i=u+f)}}}if(i){var l,h,p=n.getUint16(i,r);for(h=0;ht.width?3===n?s=t.height*a:u=t.width/a:3===n?u=t.width/a:s=t.height*a;var c={aspectRatio:a,naturalWidth:o,naturalHeight:i,width:s,height:u};c.left=(t.width-s)/2,c.top=(t.height-u)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=P({},e),this.initialCanvasData=P({},c)},limitCanvas:function(t,e){var n=this.options,r=this.containerData,o=this.canvasData,i=this.cropBoxData,a=n.viewMode,s=o.aspectRatio,u=this.cropped&&i;if(t){var c=Number(n.minCanvasWidth)||0,f=Number(n.minCanvasHeight)||0;a>1?(c=Math.max(c,r.width),f=Math.max(f,r.height),3===a&&(f*s>c?c=f*s:f=c/s)):a>0&&(c?c=Math.max(c,u?i.width:0):f?f=Math.max(f,u?i.height:0):u&&(c=i.width,(f=i.height)*s>c?c=f*s:f=c/s));var l=ot({aspectRatio:s,width:c,height:f});c=l.width,f=l.height,o.minWidth=c,o.minHeight=f,o.maxWidth=1/0,o.maxHeight=1/0}if(e)if(a>(u?0:1)){var h=r.width-o.width,p=r.height-o.height;o.minLeft=Math.min(0,h),o.minTop=Math.min(0,p),o.maxLeft=Math.max(0,h),o.maxTop=Math.max(0,p),u&&this.limited&&(o.minLeft=Math.min(i.left,i.left+(i.width-o.width)),o.minTop=Math.min(i.top,i.top+(i.height-o.height)),o.maxLeft=i.left,o.maxTop=i.top,2===a&&(o.width>=r.width&&(o.minLeft=Math.min(0,h),o.maxLeft=Math.max(0,h)),o.height>=r.height&&(o.minTop=Math.min(0,p),o.maxTop=Math.max(0,p))))}else o.minLeft=-o.width,o.minTop=-o.height,o.maxLeft=r.width,o.maxTop=r.height},renderCanvas:function(t,e){var n=this.canvasData,r=this.imageData;if(e){var o=function(t){var e=t.width,n=t.height,r=t.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:e};var o=r%90*Math.PI/180,i=Math.sin(o),a=Math.cos(o),s=e*a+n*i,u=e*i+n*a;return r>90?{width:u,height:s}:{width:s,height:u}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),i=o.width,a=o.height,s=n.width*(i/n.naturalWidth),u=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(u-n.height)/2,n.width=s,n.height=u,n.aspectRatio=i/a,n.naturalWidth=i,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighte.width?o.height=o.width/n:o.width=o.height*n),this.cropBoxData=o,this.limitCropBox(!0,!0),o.width=Math.min(Math.max(o.width,o.minWidth),o.maxWidth),o.height=Math.min(Math.max(o.height,o.minHeight),o.maxHeight),o.width=Math.max(o.minWidth,o.width*r),o.height=Math.max(o.minHeight,o.height*r),o.left=e.left+(e.width-o.width)/2,o.top=e.top+(e.height-o.height)/2,o.oldLeft=o.left,o.oldTop=o.top,this.initialCropBoxData=P({},o)},limitCropBox:function(t,e){var n=this.options,r=this.containerData,o=this.canvasData,i=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(t){var u=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,f=a?Math.min(r.width,o.width,o.width+o.left,r.width-o.left):r.width,l=a?Math.min(r.height,o.height,o.height+o.top,r.height-o.top):r.height;u=Math.min(u,r.width),c=Math.min(c,r.height),s&&(u&&c?c*s>u?c=u/s:u=c*s:u?c=u/s:c&&(u=c*s),l*s>f?l=f/s:f=l*s),i.minWidth=Math.min(u,f),i.minHeight=Math.min(c,l),i.maxWidth=f,i.maxHeight=l}e&&(a?(i.minLeft=Math.max(0,o.left),i.minTop=Math.max(0,o.top),i.maxLeft=Math.min(r.width,o.left+o.width)-i.width,i.maxTop=Math.min(r.height,o.top+o.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=r.width-i.width,i.maxTop=r.height-i.height))},renderCropBox:function(){var t=this.options,e=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=e.width&&n.height>=e.height?"move":"all"),R(this.cropBox,P({width:n.width,height:n.height},et({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),K(this.element,"crop",this.getData())}},ct={initPreview:function(){var t=this.crossOrigin,e=this.options.preview,n=t?this.crossOriginUrl:this.url,r=document.createElement("img");if(t&&(r.crossOrigin=t),r.src=n,this.viewBox.appendChild(r),this.viewBoxImage=r,e){var o=e;"string"==typeof e?o=this.element.ownerDocument.querySelectorAll(e):e.querySelector&&(o=[e]),this.previews=o,M(o,function(e){var r=document.createElement("img");W(e,m,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(r.crossOrigin=t),r.src=n,r.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(r)})}},resetPreview:function(){M(this.previews,function(t){var e=H(t,m);R(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(S(t[e]))try{delete t[e]}catch(n){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(U(e)))}(t,m)})},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,r=n.width,o=n.height,i=t.width,a=t.height,s=n.left-e.left-t.left,u=n.top-e.top-t.top;this.cropped&&!this.disabled&&(R(this.viewBoxImage,P({width:i,height:a},et(P({translateX:-s,translateY:-u},t)))),M(this.previews,function(e){var n=H(e,m),c=n.width,f=n.height,l=c,h=f,p=1;r&&(h=o*(p=c/r)),o&&h>f&&(l=r*(p=f/o),h=f),R(e,{width:l,height:h}),R(e.getElementsByTagName("img")[0],P({width:i*p,height:a*p},et(P({translateX:-s*p,translateY:-u*p},t))))}))}},ft={bind:function(){var t=this.element,e=this.options,n=this.cropper;N(e.cropstart)&&X(t,"cropstart",e.cropstart),N(e.cropmove)&&X(t,"cropmove",e.cropmove),N(e.cropend)&&X(t,"cropend",e.cropend),N(e.crop)&&X(t,"crop",e.crop),N(e.zoom)&&X(t,"zoom",e.zoom),X(n,y,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&X(n,"wheel mousewheel DOMMouseScroll",this.onWheel=this.wheel.bind(this)),e.toggleDragModeOnDblclick&&X(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),X(t.ownerDocument,g,this.onCropMove=this.cropMove.bind(this)),X(t.ownerDocument,b,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&X(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;N(e.cropstart)&&V(t,"cropstart",e.cropstart),N(e.cropmove)&&V(t,"cropmove",e.cropmove),N(e.cropend)&&V(t,"cropend",e.cropend),N(e.crop)&&V(t,"crop",e.crop),N(e.zoom)&&V(t,"zoom",e.zoom),V(n,y,this.onCropStart),e.zoomable&&e.zoomOnWheel&&V(n,"wheel mousewheel DOMMouseScroll",this.onWheel),e.toggleDragModeOnDblclick&&V(n,"dblclick",this.onDblclick),V(t.ownerDocument,g,this.onCropMove),V(t.ownerDocument,b,this.onCropEnd),e.responsive&&V(window,"resize",this.onResize)}},lt={resize:function(){var t=this.options,e=this.container,n=this.containerData,r=Number(t.minContainerWidth)||200,o=Number(t.minContainerHeight)||100;if(!(this.disabled||n.width<=r||n.height<=o)){var i,a,s=e.offsetWidth/n.width;if(1!==s||e.offsetHeight!==n.height)t.restore&&(i=this.getCanvasData(),a=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(M(i,function(t,e){i[e]=t*s})),this.setCropBoxData(M(a,function(t,e){a[e]=t*s})))}},dblclick:function(){var t,e;this.disabled||"none"===this.options.dragMode||this.setDragMode((t=this.dragBox,e=u,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?"move":"crop"))},wheel:function(t){var e=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,t)))},cropStart:function(t){if(!this.disabled){var e,n=this.options,r=this.pointers;t.changedTouches?M(t.changedTouches,function(t){r[t.identifier]=nt(t)}):r[t.pointerId||0]=nt(t),e=Object.keys(r).length>1&&n.zoomable&&n.zoomOnTouch?"zoom":H(t.target,v),_.test(e)&&!1!==K(this.element,"cropstart",{originalEvent:t,action:e})&&(t.preventDefault(),this.action=e,this.cropping=!1,"crop"===e&&(this.cropping=!0,D(this.dragBox,p)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==K(this.element,"cropmove",{originalEvent:t,action:e})&&(t.changedTouches?M(t.changedTouches,function(t){P(n[t.identifier]||{},nt(t,!0))}):P(n[t.pointerId||0]||{},nt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?M(t.changedTouches,function(t){delete n[t.identifier]}):delete n[t.pointerId||0],e&&(t.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,F(this.dragBox,p,this.cropped&&this.options.modal)),K(this.element,"cropend",{originalEvent:t,action:e}))}}},ht={change:function(t){var e,n=this.options,r=this.canvasData,o=this.containerData,i=this.cropBoxData,a=this.pointers,s=this.action,u=n.aspectRatio,c=i.left,l=i.top,h=i.width,p=i.height,d=c+h,v=l+p,m=0,y=0,g=o.width,b=o.height,_=!0;!u&&t.shiftKey&&(u=h&&p?h/p:1),this.limited&&(m=i.minLeft,y=i.minTop,g=m+Math.min(o.width,r.width,r.left+r.width),b=y+Math.min(o.height,r.height,r.top+r.height));var w=a[Object.keys(a)[0]],x={x:w.endX-w.startX,y:w.endY-w.startY},O=function(t){switch(t){case"e":d+x.x>g&&(x.x=g-d);break;case"w":c+x.xb&&(x.y=b-v)}};switch(s){case"all":c+=x.x,l+=x.y;break;case"e":if(x.x>=0&&(d>=g||u&&(l<=y||v>=b))){_=!1;break}O("e"),(h+=x.x)<0&&(s="w",c-=h=-h),u&&(p=h/u,l+=(i.height-p)/2);break;case"n":if(x.y<=0&&(l<=y||u&&(c<=m||d>=g))){_=!1;break}O("n"),p-=x.y,l+=x.y,p<0&&(s="s",l-=p=-p),u&&(h=p*u,c+=(i.width-h)/2);break;case"w":if(x.x<=0&&(c<=m||u&&(l<=y||v>=b))){_=!1;break}O("w"),h-=x.x,c+=x.x,h<0&&(s="e",c-=h=-h),u&&(p=h/u,l+=(i.height-p)/2);break;case"s":if(x.y>=0&&(v>=b||u&&(c<=m||d>=g))){_=!1;break}O("s"),(p+=x.y)<0&&(s="n",l-=p=-p),u&&(h=p*u,c+=(i.width-h)/2);break;case"ne":if(u){if(x.y<=0&&(l<=y||d>=g)){_=!1;break}O("n"),p-=x.y,l+=x.y,h=p*u}else O("n"),O("e"),x.x>=0?dy&&(p-=x.y,l+=x.y):(p-=x.y,l+=x.y);h<0&&p<0?(s="sw",l-=p=-p,c-=h=-h):h<0?(s="nw",c-=h=-h):p<0&&(s="se",l-=p=-p);break;case"nw":if(u){if(x.y<=0&&(l<=y||c<=m)){_=!1;break}O("n"),p-=x.y,l+=x.y,h=p*u,c+=i.width-h}else O("n"),O("w"),x.x<=0?c>m?(h-=x.x,c+=x.x):x.y<=0&&l<=y&&(_=!1):(h-=x.x,c+=x.x),x.y<=0?l>y&&(p-=x.y,l+=x.y):(p-=x.y,l+=x.y);h<0&&p<0?(s="se",l-=p=-p,c-=h=-h):h<0?(s="ne",c-=h=-h):p<0&&(s="sw",l-=p=-p);break;case"sw":if(u){if(x.x<=0&&(c<=m||v>=b)){_=!1;break}O("w"),h-=x.x,c+=x.x,p=h/u}else O("s"),O("w"),x.x<=0?c>m?(h-=x.x,c+=x.x):x.y>=0&&v>=b&&(_=!1):(h-=x.x,c+=x.x),x.y>=0?v=0&&(d>=g||v>=b)){_=!1;break}O("e"),p=(h+=x.x)/u}else O("s"),O("e"),x.x>=0?d=0&&v>=b&&(_=!1):h+=x.x,x.y>=0?v0?s=x.y>0?"se":"ne":x.x<0&&(c-=h,s=x.y>0?"sw":"nw"),x.y<0&&(l-=p),this.cropped||(B(this.cropBox,f),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}_&&(i.width=h,i.height=p,i.left=c,i.top=l,this.action=s,this.renderCropBox()),M(a,function(t){t.startX=t.endX,t.startY=t.endY})}},pt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&D(this.dragBox,p),B(this.cropBox,f),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=P({},this.initialImageData),this.canvasData=P({},this.initialCanvasData),this.cropBoxData=P({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(P(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),B(this.dragBox,p),D(this.cropBox,f)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,M(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,B(this.cropper,c)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,D(this.cropper,c)),this},destroy:function(){var t=this.element;return t.cropper?(t.cropper=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=n.left,o=n.top;return this.moveTo(A(t)?t:r+Number(t),A(e)?e:o+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(k(t)&&(n.left=t,r=!0),k(e)&&(n.top=e,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,null,e)},zoomTo:function(t,e,n){var r=this.options,o=this.canvasData,i=o.width,a=o.height,s=o.naturalWidth,u=o.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&r.zoomable){var c=s*t,f=u*t;if(!1===K(this.element,"zoom",{ratio:t,oldRatio:i/s,originalEvent:n}))return this;if(n){var l=this.pointers,h=G(this.cropper),p=l&&Object.keys(l).length?function(t){var e=0,n=0,r=0;return M(t,function(t){var o=t.startX,i=t.startY;e+=o,n+=i,r+=1}),{pageX:e/=r,pageY:n/=r}}(l):{pageX:n.pageX,pageY:n.pageY};o.left-=(c-i)*((p.pageX-h.left-o.left)/i),o.top-=(f-a)*((p.pageY-h.top-o.top)/a)}else T(e)&&k(e.x)&&k(e.y)?(o.left-=(c-i)*((e.x-o.left)/i),o.top-=(f-a)*((e.y-o.top)/a)):(o.left-=(c-i)/2,o.top-=(f-a)/2);o.width=c,o.height=f,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return k(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,k(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(k(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(k(t)&&(n.scaleX=t,r=!0),k(e)&&(n.scaleY=e,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,o=this.canvasData,i=this.cropBoxData;if(this.ready&&this.cropped){t={x:i.left-o.left,y:i.top-o.top,width:i.width,height:i.height};var a=r.width/r.naturalWidth;if(M(t,function(e,n){t[n]=e/a}),e){var s=Math.round(t.y+t.height),u=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=u-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return n.rotatable&&(t.rotate=r.rotate||0),n.scalable&&(t.scaleX=r.scaleX||1,t.scaleY=r.scaleY||1),t},setData:function(t){var e=this.options,n=this.imageData,r=this.canvasData,o={};if(this.ready&&!this.disabled&&T(t)){var i=!1;e.rotatable&&k(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,i=!0),e.scalable&&(k(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,i=!0),k(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;k(t.x)&&(o.left=t.x*a+r.left),k(t.y)&&(o.top=t.y*a+r.top),k(t.width)&&(o.width=t.width*a),k(t.height)&&(o.height=t.height*a),this.setCropBoxData(o)}return this},getContainerData:function(){return this.ready?P({},this.containerData):{}},getImageData:function(){return this.sized?P({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&M(["left","top","width","height","naturalWidth","naturalHeight"],function(n){e[n]=t[n]}),e},setCanvasData:function(t){var e=this.canvasData,n=e.aspectRatio;return this.ready&&!this.disabled&&T(t)&&(k(t.left)&&(e.left=t.left),k(t.top)&&(e.top=t.top),k(t.width)?(e.width=t.width,e.height=t.width/n):k(t.height)&&(e.height=t.height,e.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,n,r=this.cropBoxData,o=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&T(t)&&(k(t.left)&&(r.left=t.left),k(t.top)&&(r.top=t.top),k(t.width)&&t.width!==r.width&&(e=!0,r.width=t.width),k(t.height)&&t.height!==r.height&&(n=!0,r.height=t.height),o&&(e?r.height=r.width/o:n&&(r.width=r.height*o)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,n=function(t,e,n,r){var o=e.aspectRatio,a=e.naturalWidth,s=e.naturalHeight,u=e.rotate,c=void 0===u?0:u,f=e.scaleX,l=void 0===f?1:f,h=e.scaleY,p=void 0===h?1:h,d=n.aspectRatio,v=n.naturalWidth,m=n.naturalHeight,y=r.fillColor,g=void 0===y?"transparent":y,b=r.imageSmoothingEnabled,_=void 0===b||b,w=r.imageSmoothingQuality,x=void 0===w?"low":w,O=r.maxWidth,j=void 0===O?1/0:O,E=r.maxHeight,k=void 0===E?1/0:E,A=r.minWidth,S=void 0===A?0:A,C=r.minHeight,T=void 0===C?0:C,N=document.createElement("canvas"),M=N.getContext("2d"),P=ot({aspectRatio:d,width:j,height:k}),I=ot({aspectRatio:d,width:S,height:T},"cover"),L=Math.min(P.width,Math.max(I.width,v)),R=Math.min(P.height,Math.max(I.height,m)),D=ot({aspectRatio:o,width:j,height:k}),B=ot({aspectRatio:o,width:S,height:T},"cover"),F=Math.min(D.width,Math.max(B.width,a)),z=Math.min(D.height,Math.max(B.height,s)),U=[-F/2,-z/2,F,z];return N.width=$(L),N.height=$(R),M.fillStyle=g,M.fillRect(0,0,L,R),M.save(),M.translate(L/2,R/2),M.rotate(c*Math.PI/180),M.scale(l,p),M.imageSmoothingEnabled=_,M.imageSmoothingQuality=x,M.drawImage.apply(M,[t].concat(i(U.map(function(t){return Math.floor($(t))})))),M.restore(),N}(this.image,this.imageData,e,t);if(!this.cropped)return n;var r=this.getData(),o=r.x,a=r.y,s=r.width,u=r.height,c=n.width/Math.floor(e.naturalWidth);1!==c&&(o*=c,a*=c,s*=c,u*=c);var f=s/u,l=ot({aspectRatio:f,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),h=ot({aspectRatio:f,width:t.minWidth||0,height:t.minHeight||0},"cover"),p=ot({aspectRatio:f,width:t.width||(1!==c?n.width:s),height:t.height||(1!==c?n.height:u)}),d=p.width,v=p.height;d=Math.min(l.width,Math.max(h.width,d)),v=Math.min(l.height,Math.max(h.height,v));var m=document.createElement("canvas"),y=m.getContext("2d");m.width=$(d),m.height=$(v),y.fillStyle=t.fillColor||"transparent",y.fillRect(0,0,d,v);var g=t.imageSmoothingEnabled,b=void 0===g||g,_=t.imageSmoothingQuality;y.imageSmoothingEnabled=b,_&&(y.imageSmoothingQuality=_);var w,x,O,j,E,k,A=n.width,S=n.height,C=o,T=a;C<=-s||C>A?(C=0,w=0,O=0,E=0):C<=0?(O=-C,C=0,E=w=Math.min(A,s+C)):C<=A&&(O=0,E=w=Math.min(s,A-C)),w<=0||T<=-u||T>S?(T=0,x=0,j=0,k=0):T<=0?(j=-T,T=0,k=x=Math.min(S,u+T)):T<=S&&(j=0,k=x=Math.min(u,S-T));var N=[C,T,w,x];if(E>0&&k>0){var M=d/s;N.push(O*M,j*M,E*M,k*M)}return y.drawImage.apply(y,[n].concat(i(N.map(function(t){return Math.floor($(t))})))),m},setAspectRatio:function(t){var e=this.options;return this.disabled||A(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var o="crop"===t,i=e.movable&&"move"===t;t=o||i?t:"none",e.dragMode=t,W(n,v,t),F(n,u,o),F(n,d,i),e.cropBoxMovable||(W(r,v,t),F(r,u,o),F(r,d,i))}return this}},dt=s.Cropper,vt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||!O.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=P({},j,T(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var e,n,r;return e=t,r=[{key:"noConflict",value:function(){return window.Cropper=dt,t}},{key:"setDefaults",value:function(t){P(j,T(t)&&t)}}],(n=[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e.cropper){if(e.cropper=this,"img"===n){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(w.test(t))x.test(t)?this.read((o=t.replace(at,""),i=atob(o),a=new ArrayBuffer(i.length),M(s=new Uint8Array(a),function(t,e){s[e]=i.charCodeAt(e)}),a)):this.clone();else{var o,i,a,s,u=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=u,u.ontimeout=c,u.onabort=c,u.onerror=c,u.onprogress=function(){"image/jpeg"!==u.getResponseHeader("content-type")&&u.abort()},u.onload=function(){e.read(u.response)},u.onloadend=function(){e.reloading=!1,e.xhr=null},r.checkCrossOrigin&&Q(t)&&n.crossOrigin&&(t=tt(t)),u.open("GET",t),u.responseType="arraybuffer",u.withCredentials="use-credentials"===n.crossOrigin,u.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,r=st(t),o=0,a=1,s=1;if(r>1){this.url=function(t,e){for(var n=[],r=new Uint8Array(t);r.length>0;)n.push(it.apply(void 0,i(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}(t,"image/jpeg");var u=function(t){var e=0,n=1,r=1;switch(t){case 2:n=-1;break;case 3:e=-180;break;case 4:r=-1;break;case 5:e=90,r=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90}return{rotate:e,scaleX:n,scaleY:r}}(r);o=u.rotate,a=u.scaleX,s=u.scaleY}e.rotatable&&(n.rotate=o),e.scalable&&(n.scaleX=a,n.scaleY=s),this.clone()}},{key:"clone",value:function(){var t,e,n=this.element,r=this.url;this.options.checkCrossOrigin&&Q(r)&&((t=n.crossOrigin)?e=r:(t="anonymous",e=tt(r))),this.crossOrigin=t,this.crossOriginUrl=e;var o=document.createElement("img");t&&(o.crossOrigin=t),o.src=e||r,this.image=o,o.onload=this.start.bind(this),o.onerror=this.stop.bind(this),D(o,l),n.parentNode.insertBefore(o,n.nextSibling)}},{key:"start",value:function(){var t=this,e=this.isImg?this.element:this.image;e.onload=null,e.onerror=null,this.sizing=!0;var n=s.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(s.navigator.userAgent),r=function(e,n){P(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||n){var o=document.createElement("img"),i=document.body||document.documentElement;this.sizingImage=o,o.onload=function(){r(o.width,o.height),n||i.removeChild(o)},o.src=e.src,n||(o.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(o))}else r(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,n=this.image,r=t.parentNode,o=document.createElement("div");o.innerHTML='
';var i=o.querySelector(".".concat("cropper","-container")),a=i.querySelector(".".concat("cropper","-canvas")),s=i.querySelector(".".concat("cropper","-drag-box")),u=i.querySelector(".".concat("cropper","-crop-box")),c=u.querySelector(".".concat("cropper","-face"));this.container=r,this.cropper=i,this.canvas=a,this.dragBox=s,this.cropBox=u,this.viewBox=i.querySelector(".".concat("cropper","-view-box")),this.face=c,a.appendChild(n),D(t,f),r.insertBefore(i,t.nextSibling),this.isImg||B(n,l),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,D(u,f),e.guides||D(u.getElementsByClassName("".concat("cropper","-dashed")),f),e.center||D(u.getElementsByClassName("".concat("cropper","-center")),f),e.background&&D(i,"".concat("cropper","-bg")),e.highlight||D(c,h),e.cropBoxMovable&&(D(c,d),W(c,v,"all")),e.cropBoxResizable||(D(u.getElementsByClassName("".concat("cropper","-line")),f),D(u.getElementsByClassName("".concat("cropper","-point")),f)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),N(e.ready)&&X(t,"ready",e.ready,{once:!0}),K(t,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),B(this.element,f))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&o(e.prototype,n),r&&o(e,r),t}();P(vt.prototype,ut,ct,ft,lt,ht,pt),e.default=vt},function(t,e,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),function(t){ +function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n1?e-1:0),r=1;r0&&n.forEach(function(e){S(e)&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t},I=/\.\d*(?:0|9){12}\d*$/;function $(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return I.test(t)?Math.round(t*e)/e:t}var L=/^(?:width|height|left|top|marginLeft|marginTop)$/;function R(t,e){var n=t.style;M(e,function(t,e){L.test(e)&&k(t)&&(t+="px"),n[e]=t})}function D(t,e){if(e)if(k(t.length))M(t,function(t){D(t,e)});else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function B(t,e){e&&(k(t.length)?M(t,function(t){B(t,e)}):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function F(t,e,n){e&&(k(t.length)?M(t,function(t){F(t,e,n)}):n?D(t,e):B(t,e))}var z=/([a-z\d])([A-Z])/g;function U(t){return t.replace(z,"$1-$2").toLowerCase()}function H(t,e){return S(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(U(e)))}function W(t,e,n){S(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(U(e)),n)}var Y=/\s\s*/,q=function(){var t=!1;if(a){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});s.addEventListener("test",n,r),s.removeEventListener("test",n,r)}return t}();function V(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;e.trim().split(Y).forEach(function(e){if(!q){var i=t.listeners;i&&i[e]&&i[e][n]&&(o=i[e][n],delete i[e][n],0===Object.keys(i[e]).length&&delete i[e],0===Object.keys(i).length&&delete t.listeners)}t.removeEventListener(e,o,r)})}function X(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;e.trim().split(Y).forEach(function(e){if(r.once&&!q){var i=t.listeners,a=void 0===i?{}:i;o=function(){delete a[e][n],t.removeEventListener(e,o,r);for(var i=arguments.length,s=new Array(i),u=0;u1&&void 0!==arguments[1]?arguments[1]:"contain",i=function(t){return rt(t)&&t>0};if(i(r)&&i(n)){var a=n*e;"contain"===o&&a>r||"cover"===o&&a=8&&(i=u+f)}}}if(i){var l,h,p=n.getUint16(i,r);for(h=0;ht.width?3===n?s=t.height*a:u=t.width/a:3===n?u=t.width/a:s=t.height*a;var c={aspectRatio:a,naturalWidth:o,naturalHeight:i,width:s,height:u};c.left=(t.width-s)/2,c.top=(t.height-u)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=P({},e),this.initialCanvasData=P({},c)},limitCanvas:function(t,e){var n=this.options,r=this.containerData,o=this.canvasData,i=this.cropBoxData,a=n.viewMode,s=o.aspectRatio,u=this.cropped&&i;if(t){var c=Number(n.minCanvasWidth)||0,f=Number(n.minCanvasHeight)||0;a>1?(c=Math.max(c,r.width),f=Math.max(f,r.height),3===a&&(f*s>c?c=f*s:f=c/s)):a>0&&(c?c=Math.max(c,u?i.width:0):f?f=Math.max(f,u?i.height:0):u&&(c=i.width,(f=i.height)*s>c?c=f*s:f=c/s));var l=ot({aspectRatio:s,width:c,height:f});c=l.width,f=l.height,o.minWidth=c,o.minHeight=f,o.maxWidth=1/0,o.maxHeight=1/0}if(e)if(a>(u?0:1)){var h=r.width-o.width,p=r.height-o.height;o.minLeft=Math.min(0,h),o.minTop=Math.min(0,p),o.maxLeft=Math.max(0,h),o.maxTop=Math.max(0,p),u&&this.limited&&(o.minLeft=Math.min(i.left,i.left+(i.width-o.width)),o.minTop=Math.min(i.top,i.top+(i.height-o.height)),o.maxLeft=i.left,o.maxTop=i.top,2===a&&(o.width>=r.width&&(o.minLeft=Math.min(0,h),o.maxLeft=Math.max(0,h)),o.height>=r.height&&(o.minTop=Math.min(0,p),o.maxTop=Math.max(0,p))))}else o.minLeft=-o.width,o.minTop=-o.height,o.maxLeft=r.width,o.maxTop=r.height},renderCanvas:function(t,e){var n=this.canvasData,r=this.imageData;if(e){var o=function(t){var e=t.width,n=t.height,r=t.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:e};var o=r%90*Math.PI/180,i=Math.sin(o),a=Math.cos(o),s=e*a+n*i,u=e*i+n*a;return r>90?{width:u,height:s}:{width:s,height:u}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),i=o.width,a=o.height,s=n.width*(i/n.naturalWidth),u=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(u-n.height)/2,n.width=s,n.height=u,n.aspectRatio=i/a,n.naturalWidth=i,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighte.width?o.height=o.width/n:o.width=o.height*n),this.cropBoxData=o,this.limitCropBox(!0,!0),o.width=Math.min(Math.max(o.width,o.minWidth),o.maxWidth),o.height=Math.min(Math.max(o.height,o.minHeight),o.maxHeight),o.width=Math.max(o.minWidth,o.width*r),o.height=Math.max(o.minHeight,o.height*r),o.left=e.left+(e.width-o.width)/2,o.top=e.top+(e.height-o.height)/2,o.oldLeft=o.left,o.oldTop=o.top,this.initialCropBoxData=P({},o)},limitCropBox:function(t,e){var n=this.options,r=this.containerData,o=this.canvasData,i=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(t){var u=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,f=a?Math.min(r.width,o.width,o.width+o.left,r.width-o.left):r.width,l=a?Math.min(r.height,o.height,o.height+o.top,r.height-o.top):r.height;u=Math.min(u,r.width),c=Math.min(c,r.height),s&&(u&&c?c*s>u?c=u/s:u=c*s:u?c=u/s:c&&(u=c*s),l*s>f?l=f/s:f=l*s),i.minWidth=Math.min(u,f),i.minHeight=Math.min(c,l),i.maxWidth=f,i.maxHeight=l}e&&(a?(i.minLeft=Math.max(0,o.left),i.minTop=Math.max(0,o.top),i.maxLeft=Math.min(r.width,o.left+o.width)-i.width,i.maxTop=Math.min(r.height,o.top+o.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=r.width-i.width,i.maxTop=r.height-i.height))},renderCropBox:function(){var t=this.options,e=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=e.width&&n.height>=e.height?"move":"all"),R(this.cropBox,P({width:n.width,height:n.height},et({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),K(this.element,"crop",this.getData())}},ct={initPreview:function(){var t=this.crossOrigin,e=this.options.preview,n=t?this.crossOriginUrl:this.url,r=document.createElement("img");if(t&&(r.crossOrigin=t),r.src=n,this.viewBox.appendChild(r),this.viewBoxImage=r,e){var o=e;"string"==typeof e?o=this.element.ownerDocument.querySelectorAll(e):e.querySelector&&(o=[e]),this.previews=o,M(o,function(e){var r=document.createElement("img");W(e,m,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(r.crossOrigin=t),r.src=n,r.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(r)})}},resetPreview:function(){M(this.previews,function(t){var e=H(t,m);R(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(S(t[e]))try{delete t[e]}catch(n){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(U(e)))}(t,m)})},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,r=n.width,o=n.height,i=t.width,a=t.height,s=n.left-e.left-t.left,u=n.top-e.top-t.top;this.cropped&&!this.disabled&&(R(this.viewBoxImage,P({width:i,height:a},et(P({translateX:-s,translateY:-u},t)))),M(this.previews,function(e){var n=H(e,m),c=n.width,f=n.height,l=c,h=f,p=1;r&&(h=o*(p=c/r)),o&&h>f&&(l=r*(p=f/o),h=f),R(e,{width:l,height:h}),R(e.getElementsByTagName("img")[0],P({width:i*p,height:a*p},et(P({translateX:-s*p,translateY:-u*p},t))))}))}},ft={bind:function(){var t=this.element,e=this.options,n=this.cropper;N(e.cropstart)&&X(t,"cropstart",e.cropstart),N(e.cropmove)&&X(t,"cropmove",e.cropmove),N(e.cropend)&&X(t,"cropend",e.cropend),N(e.crop)&&X(t,"crop",e.crop),N(e.zoom)&&X(t,"zoom",e.zoom),X(n,y,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&X(n,"wheel mousewheel DOMMouseScroll",this.onWheel=this.wheel.bind(this)),e.toggleDragModeOnDblclick&&X(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),X(t.ownerDocument,g,this.onCropMove=this.cropMove.bind(this)),X(t.ownerDocument,b,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&X(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;N(e.cropstart)&&V(t,"cropstart",e.cropstart),N(e.cropmove)&&V(t,"cropmove",e.cropmove),N(e.cropend)&&V(t,"cropend",e.cropend),N(e.crop)&&V(t,"crop",e.crop),N(e.zoom)&&V(t,"zoom",e.zoom),V(n,y,this.onCropStart),e.zoomable&&e.zoomOnWheel&&V(n,"wheel mousewheel DOMMouseScroll",this.onWheel),e.toggleDragModeOnDblclick&&V(n,"dblclick",this.onDblclick),V(t.ownerDocument,g,this.onCropMove),V(t.ownerDocument,b,this.onCropEnd),e.responsive&&V(window,"resize",this.onResize)}},lt={resize:function(){var t=this.options,e=this.container,n=this.containerData,r=Number(t.minContainerWidth)||200,o=Number(t.minContainerHeight)||100;if(!(this.disabled||n.width<=r||n.height<=o)){var i,a,s=e.offsetWidth/n.width;if(1!==s||e.offsetHeight!==n.height)t.restore&&(i=this.getCanvasData(),a=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(M(i,function(t,e){i[e]=t*s})),this.setCropBoxData(M(a,function(t,e){a[e]=t*s})))}},dblclick:function(){var t,e;this.disabled||"none"===this.options.dragMode||this.setDragMode((t=this.dragBox,e=u,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?"move":"crop"))},wheel:function(t){var e=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,t)))},cropStart:function(t){if(!this.disabled){var e,n=this.options,r=this.pointers;t.changedTouches?M(t.changedTouches,function(t){r[t.identifier]=nt(t)}):r[t.pointerId||0]=nt(t),e=Object.keys(r).length>1&&n.zoomable&&n.zoomOnTouch?"zoom":H(t.target,v),_.test(e)&&!1!==K(this.element,"cropstart",{originalEvent:t,action:e})&&(t.preventDefault(),this.action=e,this.cropping=!1,"crop"===e&&(this.cropping=!0,D(this.dragBox,p)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==K(this.element,"cropmove",{originalEvent:t,action:e})&&(t.changedTouches?M(t.changedTouches,function(t){P(n[t.identifier]||{},nt(t,!0))}):P(n[t.pointerId||0]||{},nt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?M(t.changedTouches,function(t){delete n[t.identifier]}):delete n[t.pointerId||0],e&&(t.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,F(this.dragBox,p,this.cropped&&this.options.modal)),K(this.element,"cropend",{originalEvent:t,action:e}))}}},ht={change:function(t){var e,n=this.options,r=this.canvasData,o=this.containerData,i=this.cropBoxData,a=this.pointers,s=this.action,u=n.aspectRatio,c=i.left,l=i.top,h=i.width,p=i.height,d=c+h,v=l+p,m=0,y=0,g=o.width,b=o.height,_=!0;!u&&t.shiftKey&&(u=h&&p?h/p:1),this.limited&&(m=i.minLeft,y=i.minTop,g=m+Math.min(o.width,r.width,r.left+r.width),b=y+Math.min(o.height,r.height,r.top+r.height));var w=a[Object.keys(a)[0]],x={x:w.endX-w.startX,y:w.endY-w.startY},O=function(t){switch(t){case"e":d+x.x>g&&(x.x=g-d);break;case"w":c+x.xb&&(x.y=b-v)}};switch(s){case"all":c+=x.x,l+=x.y;break;case"e":if(x.x>=0&&(d>=g||u&&(l<=y||v>=b))){_=!1;break}O("e"),(h+=x.x)<0&&(s="w",c-=h=-h),u&&(p=h/u,l+=(i.height-p)/2);break;case"n":if(x.y<=0&&(l<=y||u&&(c<=m||d>=g))){_=!1;break}O("n"),p-=x.y,l+=x.y,p<0&&(s="s",l-=p=-p),u&&(h=p*u,c+=(i.width-h)/2);break;case"w":if(x.x<=0&&(c<=m||u&&(l<=y||v>=b))){_=!1;break}O("w"),h-=x.x,c+=x.x,h<0&&(s="e",c-=h=-h),u&&(p=h/u,l+=(i.height-p)/2);break;case"s":if(x.y>=0&&(v>=b||u&&(c<=m||d>=g))){_=!1;break}O("s"),(p+=x.y)<0&&(s="n",l-=p=-p),u&&(h=p*u,c+=(i.width-h)/2);break;case"ne":if(u){if(x.y<=0&&(l<=y||d>=g)){_=!1;break}O("n"),p-=x.y,l+=x.y,h=p*u}else O("n"),O("e"),x.x>=0?dy&&(p-=x.y,l+=x.y):(p-=x.y,l+=x.y);h<0&&p<0?(s="sw",l-=p=-p,c-=h=-h):h<0?(s="nw",c-=h=-h):p<0&&(s="se",l-=p=-p);break;case"nw":if(u){if(x.y<=0&&(l<=y||c<=m)){_=!1;break}O("n"),p-=x.y,l+=x.y,h=p*u,c+=i.width-h}else O("n"),O("w"),x.x<=0?c>m?(h-=x.x,c+=x.x):x.y<=0&&l<=y&&(_=!1):(h-=x.x,c+=x.x),x.y<=0?l>y&&(p-=x.y,l+=x.y):(p-=x.y,l+=x.y);h<0&&p<0?(s="se",l-=p=-p,c-=h=-h):h<0?(s="ne",c-=h=-h):p<0&&(s="sw",l-=p=-p);break;case"sw":if(u){if(x.x<=0&&(c<=m||v>=b)){_=!1;break}O("w"),h-=x.x,c+=x.x,p=h/u}else O("s"),O("w"),x.x<=0?c>m?(h-=x.x,c+=x.x):x.y>=0&&v>=b&&(_=!1):(h-=x.x,c+=x.x),x.y>=0?v=0&&(d>=g||v>=b)){_=!1;break}O("e"),p=(h+=x.x)/u}else O("s"),O("e"),x.x>=0?d=0&&v>=b&&(_=!1):h+=x.x,x.y>=0?v0?s=x.y>0?"se":"ne":x.x<0&&(c-=h,s=x.y>0?"sw":"nw"),x.y<0&&(l-=p),this.cropped||(B(this.cropBox,f),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}_&&(i.width=h,i.height=p,i.left=c,i.top=l,this.action=s,this.renderCropBox()),M(a,function(t){t.startX=t.endX,t.startY=t.endY})}},pt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&D(this.dragBox,p),B(this.cropBox,f),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=P({},this.initialImageData),this.canvasData=P({},this.initialCanvasData),this.cropBoxData=P({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(P(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),B(this.dragBox,p),D(this.cropBox,f)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,M(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,B(this.cropper,c)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,D(this.cropper,c)),this},destroy:function(){var t=this.element;return t.cropper?(t.cropper=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=n.left,o=n.top;return this.moveTo(A(t)?t:r+Number(t),A(e)?e:o+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(k(t)&&(n.left=t,r=!0),k(e)&&(n.top=e,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,null,e)},zoomTo:function(t,e,n){var r=this.options,o=this.canvasData,i=o.width,a=o.height,s=o.naturalWidth,u=o.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&r.zoomable){var c=s*t,f=u*t;if(!1===K(this.element,"zoom",{ratio:t,oldRatio:i/s,originalEvent:n}))return this;if(n){var l=this.pointers,h=G(this.cropper),p=l&&Object.keys(l).length?function(t){var e=0,n=0,r=0;return M(t,function(t){var o=t.startX,i=t.startY;e+=o,n+=i,r+=1}),{pageX:e/=r,pageY:n/=r}}(l):{pageX:n.pageX,pageY:n.pageY};o.left-=(c-i)*((p.pageX-h.left-o.left)/i),o.top-=(f-a)*((p.pageY-h.top-o.top)/a)}else T(e)&&k(e.x)&&k(e.y)?(o.left-=(c-i)*((e.x-o.left)/i),o.top-=(f-a)*((e.y-o.top)/a)):(o.left-=(c-i)/2,o.top-=(f-a)/2);o.width=c,o.height=f,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return k(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,k(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(k(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(k(t)&&(n.scaleX=t,r=!0),k(e)&&(n.scaleY=e,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,o=this.canvasData,i=this.cropBoxData;if(this.ready&&this.cropped){t={x:i.left-o.left,y:i.top-o.top,width:i.width,height:i.height};var a=r.width/r.naturalWidth;if(M(t,function(e,n){t[n]=e/a}),e){var s=Math.round(t.y+t.height),u=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=u-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return n.rotatable&&(t.rotate=r.rotate||0),n.scalable&&(t.scaleX=r.scaleX||1,t.scaleY=r.scaleY||1),t},setData:function(t){var e=this.options,n=this.imageData,r=this.canvasData,o={};if(this.ready&&!this.disabled&&T(t)){var i=!1;e.rotatable&&k(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,i=!0),e.scalable&&(k(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,i=!0),k(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;k(t.x)&&(o.left=t.x*a+r.left),k(t.y)&&(o.top=t.y*a+r.top),k(t.width)&&(o.width=t.width*a),k(t.height)&&(o.height=t.height*a),this.setCropBoxData(o)}return this},getContainerData:function(){return this.ready?P({},this.containerData):{}},getImageData:function(){return this.sized?P({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&M(["left","top","width","height","naturalWidth","naturalHeight"],function(n){e[n]=t[n]}),e},setCanvasData:function(t){var e=this.canvasData,n=e.aspectRatio;return this.ready&&!this.disabled&&T(t)&&(k(t.left)&&(e.left=t.left),k(t.top)&&(e.top=t.top),k(t.width)?(e.width=t.width,e.height=t.width/n):k(t.height)&&(e.height=t.height,e.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,n,r=this.cropBoxData,o=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&T(t)&&(k(t.left)&&(r.left=t.left),k(t.top)&&(r.top=t.top),k(t.width)&&t.width!==r.width&&(e=!0,r.width=t.width),k(t.height)&&t.height!==r.height&&(n=!0,r.height=t.height),o&&(e?r.height=r.width/o:n&&(r.width=r.height*o)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,n=function(t,e,n,r){var o=e.aspectRatio,a=e.naturalWidth,s=e.naturalHeight,u=e.rotate,c=void 0===u?0:u,f=e.scaleX,l=void 0===f?1:f,h=e.scaleY,p=void 0===h?1:h,d=n.aspectRatio,v=n.naturalWidth,m=n.naturalHeight,y=r.fillColor,g=void 0===y?"transparent":y,b=r.imageSmoothingEnabled,_=void 0===b||b,w=r.imageSmoothingQuality,x=void 0===w?"low":w,O=r.maxWidth,j=void 0===O?1/0:O,E=r.maxHeight,k=void 0===E?1/0:E,A=r.minWidth,S=void 0===A?0:A,C=r.minHeight,T=void 0===C?0:C,N=document.createElement("canvas"),M=N.getContext("2d"),P=ot({aspectRatio:d,width:j,height:k}),I=ot({aspectRatio:d,width:S,height:T},"cover"),L=Math.min(P.width,Math.max(I.width,v)),R=Math.min(P.height,Math.max(I.height,m)),D=ot({aspectRatio:o,width:j,height:k}),B=ot({aspectRatio:o,width:S,height:T},"cover"),F=Math.min(D.width,Math.max(B.width,a)),z=Math.min(D.height,Math.max(B.height,s)),U=[-F/2,-z/2,F,z];return N.width=$(L),N.height=$(R),M.fillStyle=g,M.fillRect(0,0,L,R),M.save(),M.translate(L/2,R/2),M.rotate(c*Math.PI/180),M.scale(l,p),M.imageSmoothingEnabled=_,M.imageSmoothingQuality=x,M.drawImage.apply(M,[t].concat(i(U.map(function(t){return Math.floor($(t))})))),M.restore(),N}(this.image,this.imageData,e,t);if(!this.cropped)return n;var r=this.getData(),o=r.x,a=r.y,s=r.width,u=r.height,c=n.width/Math.floor(e.naturalWidth);1!==c&&(o*=c,a*=c,s*=c,u*=c);var f=s/u,l=ot({aspectRatio:f,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),h=ot({aspectRatio:f,width:t.minWidth||0,height:t.minHeight||0},"cover"),p=ot({aspectRatio:f,width:t.width||(1!==c?n.width:s),height:t.height||(1!==c?n.height:u)}),d=p.width,v=p.height;d=Math.min(l.width,Math.max(h.width,d)),v=Math.min(l.height,Math.max(h.height,v));var m=document.createElement("canvas"),y=m.getContext("2d");m.width=$(d),m.height=$(v),y.fillStyle=t.fillColor||"transparent",y.fillRect(0,0,d,v);var g=t.imageSmoothingEnabled,b=void 0===g||g,_=t.imageSmoothingQuality;y.imageSmoothingEnabled=b,_&&(y.imageSmoothingQuality=_);var w,x,O,j,E,k,A=n.width,S=n.height,C=o,T=a;C<=-s||C>A?(C=0,w=0,O=0,E=0):C<=0?(O=-C,C=0,E=w=Math.min(A,s+C)):C<=A&&(O=0,E=w=Math.min(s,A-C)),w<=0||T<=-u||T>S?(T=0,x=0,j=0,k=0):T<=0?(j=-T,T=0,k=x=Math.min(S,u+T)):T<=S&&(j=0,k=x=Math.min(u,S-T));var N=[C,T,w,x];if(E>0&&k>0){var M=d/s;N.push(O*M,j*M,E*M,k*M)}return y.drawImage.apply(y,[n].concat(i(N.map(function(t){return Math.floor($(t))})))),m},setAspectRatio:function(t){var e=this.options;return this.disabled||A(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var o="crop"===t,i=e.movable&&"move"===t;t=o||i?t:"none",e.dragMode=t,W(n,v,t),F(n,u,o),F(n,d,i),e.cropBoxMovable||(W(r,v,t),F(r,u,o),F(r,d,i))}return this}},dt=s.Cropper,vt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||!O.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=P({},j,T(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var e,n,r;return e=t,r=[{key:"noConflict",value:function(){return window.Cropper=dt,t}},{key:"setDefaults",value:function(t){P(j,T(t)&&t)}}],(n=[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e.cropper){if(e.cropper=this,"img"===n){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(w.test(t))x.test(t)?this.read((o=t.replace(at,""),i=atob(o),a=new ArrayBuffer(i.length),M(s=new Uint8Array(a),function(t,e){s[e]=i.charCodeAt(e)}),a)):this.clone();else{var o,i,a,s,u=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=u,u.ontimeout=c,u.onabort=c,u.onerror=c,u.onprogress=function(){"image/jpeg"!==u.getResponseHeader("content-type")&&u.abort()},u.onload=function(){e.read(u.response)},u.onloadend=function(){e.reloading=!1,e.xhr=null},r.checkCrossOrigin&&Q(t)&&n.crossOrigin&&(t=tt(t)),u.open("GET",t),u.responseType="arraybuffer",u.withCredentials="use-credentials"===n.crossOrigin,u.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,r=st(t),o=0,a=1,s=1;if(r>1){this.url=function(t,e){for(var n=[],r=new Uint8Array(t);r.length>0;)n.push(it.apply(void 0,i(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}(t,"image/jpeg");var u=function(t){var e=0,n=1,r=1;switch(t){case 2:n=-1;break;case 3:e=-180;break;case 4:r=-1;break;case 5:e=90,r=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90}return{rotate:e,scaleX:n,scaleY:r}}(r);o=u.rotate,a=u.scaleX,s=u.scaleY}e.rotatable&&(n.rotate=o),e.scalable&&(n.scaleX=a,n.scaleY=s),this.clone()}},{key:"clone",value:function(){var t,e,n=this.element,r=this.url;this.options.checkCrossOrigin&&Q(r)&&((t=n.crossOrigin)?e=r:(t="anonymous",e=tt(r))),this.crossOrigin=t,this.crossOriginUrl=e;var o=document.createElement("img");t&&(o.crossOrigin=t),o.src=e||r,this.image=o,o.onload=this.start.bind(this),o.onerror=this.stop.bind(this),D(o,l),n.parentNode.insertBefore(o,n.nextSibling)}},{key:"start",value:function(){var t=this,e=this.isImg?this.element:this.image;e.onload=null,e.onerror=null,this.sizing=!0;var n=s.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(s.navigator.userAgent),r=function(e,n){P(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||n){var o=document.createElement("img"),i=document.body||document.documentElement;this.sizingImage=o,o.onload=function(){r(o.width,o.height),n||i.removeChild(o)},o.src=e.src,n||(o.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(o))}else r(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,n=this.image,r=t.parentNode,o=document.createElement("div");o.innerHTML='
';var i=o.querySelector(".".concat("cropper","-container")),a=i.querySelector(".".concat("cropper","-canvas")),s=i.querySelector(".".concat("cropper","-drag-box")),u=i.querySelector(".".concat("cropper","-crop-box")),c=u.querySelector(".".concat("cropper","-face"));this.container=r,this.cropper=i,this.canvas=a,this.dragBox=s,this.cropBox=u,this.viewBox=i.querySelector(".".concat("cropper","-view-box")),this.face=c,a.appendChild(n),D(t,f),r.insertBefore(i,t.nextSibling),this.isImg||B(n,l),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,D(u,f),e.guides||D(u.getElementsByClassName("".concat("cropper","-dashed")),f),e.center||D(u.getElementsByClassName("".concat("cropper","-center")),f),e.background&&D(i,"".concat("cropper","-bg")),e.highlight||D(c,h),e.cropBoxMovable&&(D(c,d),W(c,v,"all")),e.cropBoxResizable||(D(u.getElementsByClassName("".concat("cropper","-line")),f),D(u.getElementsByClassName("".concat("cropper","-point")),f)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),N(e.ready)&&X(t,"ready",e.ready,{once:!0}),K(t,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),B(this.element,f))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&o(e.prototype,n),r&&o(e,r),t}();P(vt.prototype,ut,ct,ft,lt,ht,pt),e.default=vt},function(t,e,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),function(t){ /*! * vue-qrcode v1.0.0 * https://fengyuanchen.github.io/vue-qrcode