PageSourceSearch

https://bookzone.com/_nuxt/16ecb76.modern.js

js bookzone.com collected 2026-10-05 02:31:19 UTC 567,236 bytes, 2 lines download raw bytes

1/*! For license information please see LICENSES */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[134],{109:function(t,e,n){const{Anchor:r}=n(74),o=n(46),{NullValidator:l}=n(113),{vector:c,...h}=n(51),{radius:d}=n(150),f=n(151),m=n(259),{Connector:v,noConnectionRequirements:y}=n(111);class _{constructor({pieceRadius:t=2,proximity:e=1}={}){this.pieceSize=d(t),this.proximity=e,this.pieces=[],this.validator=new l,this.dragMode=m.TryDisconnection,this.horizontalConnector=v.horizontal(),this.verticalConnector=v.vertical()}newPiece(t={},e={}){const n=new o(t,e);return this.addPiece(n),n}addPiece(t){this.pieces.push(t),t.belongTo(this)}addPieces(t){t.forEach(t=>this.addPiece(t))}annotate(t){this.pieces.forEach((e,n)=>e.annotate(t[n]))}relocateTo(t){this.pieces.forEach((e,n)=>e.relocateTo(...t[n]))}autoconnect(){this.pieces.forEach(t=>this.autoconnectWith(t))}disconnect(){this.pieces.forEach(t=>t.disconnect())}autoconnectWith(t){this.pieces.filter(e=>e!==t).forEach(e=>{t.tryConnectWith(e),e.tryConnectWith(t,!0)})}shuffle(t,e){this.shuffleWith(f.random(t,e))}shuffleWith(t){this.disconnect(),t(this.pieces).forEach(({x:t,y:e},n)=>{this.pieces[n].relocateTo(t,e)}),this.autoconnect()}translate(t,e){this.pieces.forEach(n=>n.translate(t,e))}reframe(t,e){let n;const r=t.x-Math.min(...this.pieces.map(t=>t.leftAnchor.x));if(r>0)n=r;else{const t=e.x-Math.max(...this.pieces.map(t=>t.rightAnchor.x));n=t<0?t:0}let o;const l=t.y-Math.min(...this.pieces.map(t=>t.upAnchor.y));if(l>0)o=l;else{const t=e.y-Math.max(...this.pieces.map(t=>t.downAnchor.y));o=t<0?t:0}this.translate(n,o)}onTranslate(t){this.pieces.forEach(e=>e.onTranslate(t))}onConnect(t){this.pieces.forEach(e=>e.onConnect(t))}onDisconnect(t){this.pieces.forEach(e=>e.onDisconnect(t))}onValid(t){this.validator.onValid(t)}get points(){return this.pieces.map(t=>t.centralAnchor.asPair())}get refs(){return this.points.map(([t,e],n)=>{const r=this.pieces[n].diameter;return[t/r.x,e/r.y]})}get metadata(){return this.pieces.map(t=>t.metadata)}get head(){return this.pieces[0]}get headAnchor(){return this.head.centralAnchor}get verticalRequirement(){return this.verticalConnector.requirement}get horizontalRequirement(){return this.horizontalConnector.requirement}attachHorizontalConnectionRequirement(t){this.horizontalConnector.attachRequirement(t)}attachVerticalConnectionRequirement(t){this.verticalConnector.attachRequirement(t)}attachConnectionRequirement(t){this.attachHorizontalConnectionRequirement(t),this.attachVerticalConnectionRequirement(t)}clearConnectionRequirements(){this.attachConnectionRequirement(y)}attachValidator(t){this.validator=t}isValid(){return this.validator.isValid(this)}get valid(){return this.validator.valid}validate(){this.validator.validate(this)}updateValidity(){this.validator.validate(this)}get connected(){return this.pieces.every(t=>t.connected)}get pieceDiameter(){return this.pieceSize.diameter}get pieceRadius(){return this.pieceSize.radius}forceConnectionWhileDragging(){this.dragMode=m.ForceConnection}forceDisconnectionWhileDragging(){this.dragMode=m.ForceDisconnection}tryDisconnectionWhileDragging(){this.dragMode=m.TryDisconnection}dragShouldDisconnect(t,e,n){return this.dragMode.dragShouldDisconnect(t,e,n)}export(t={}){return{pieceRadius:this.pieceRadius,proximity:this.proximity,pieces:this.pieces.map(e=>e.export(t))}}static import(t){const e=new _({pieceRadius:t.pieceRadius,proximity:t.proximity});return e.addPieces(t.pieces.map(t=>o.import(t))),e.autoconnect(),e}}t.exports=_},11:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),o=n(12);function l(t){return o.Util._isString(t)?'"'+t+'"':"[object Number]"===Object.prototype.toString.call(t)||o.Util._isBoolean(t)?t:Object.prototype.toString.call(t)}e.RGBComponent=function(t){return t>255?255:t<0?0:Math.round(t)},e.alphaComponent=function(t){return t>1?1:t<1e-4?1e-4:t},e.getNumberValidator=function(){if(r.Konva.isUnminified)return function(t,e){return o.Util._isNumber(t)||o.Util.warn(l(t)+' is a not val
2id value for "'+e+'" attribute. The value should be a number.'),t}},e.getNumberOrAutoValidator=function(){if(r.Konva.isUnminified)return function(t,e){return o.Util._isNumber(t)||"auto"===t||o.Util.warn(l(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}},e.getStringValidator=function(){if(r.Konva.isUnminified)return function(t,e){return o.Util._isString(t)||o.Util.warn(l(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}},e.getFunctionValidator=function(){if(r.Konva.isUnminified)return function(t,e){return o.Util._isFunction(t)||o.Util.warn(l(t)+' is a not valid value for "'+e+'" attribute. The value should be a function.'),t}},e.getNumberArrayValidator=function(){if(r.Konva.isUnminified)return function(t,e){return o.Util._isArray(t)?t.forEach(function(t){o.Util._isNumber(t)||o.Util.warn('"'+e+'" attribute has non numeric element '+t+". Make sure that all elements are numbers.")}):o.Util.warn(l(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.'),t}},e.getBooleanValidator=function(){if(r.Konva.isUnminified)return function(t,e){return!0===t||!1===t||o.Util.warn(l(t)+' is a not val
2id value for "'+e+'" attribute. The value should be a boolean.'),t}},e.getComponentValidator=function(t){if(r.Konva.isUnminified)return function(e,n){return o.Util.isObject(e)||o.Util.warn(l(e)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+t),e}}},110:function(t,e){const n={isSlot:()=>!1,isTab:()=>!0,isNone:()=>!1,match:t=>t.isSlot(),toString:()=>"Tab",complement:()=>r,serialize:()=>"T"},r={isSlot:()=>!0,isTab:()=>!1,isNone:()=>!1,match:t=>t.isTab(),toString:()=>"Slot",complement:()=>n,serialize:()=>"S"},o={isSlot:()=>!1,isTab:()=>!1,isNone:()=>!0,match:t=>!1,toString:()=>"None",complement:()=>o,serialize:()=>"-"};t.exports={None:o,Slot:r,Tab:n}},111:function(t,e,n){const{pivot:r}=n(112);function o(t,e){return!0}class l{constructor(t,e,n){this.axis=t,this.forward=e,this.backward=n,this.forwardAnchor=`${e}Anchor`,this.backwardAnchor=`${n}Anchor`,this.forwardConnection=`${e}Connection`,this.backwardConnection=`${n}Connection`,this.requirement=o}attract(t,e,n=!1){const[o,l]=r(t,e,n);let c,h;l.centralAnchor[this.axis]>o.centralAnchor[this.axis]?[c,h]=l[this.backwardAnchor].diff(o[this.forwardAnchor]):[c,h]=l[this.forwardAnchor].diff(o[this.backwardAnchor]),o.push(c,h)}openMovement(t,e){return e>0&&!t[this.forwardConnection]||e<0&&!t[this.backwardConnection]||0==e}canConnectWith(t,e,n){return this.closeTo(t,e,n)&&this.match(t,e)&&this.requirement(t,e)}closeTo(t,e,n){return t[this.forwardAnchor].closeTo(e[this.backwardAnchor],n)}match(t,e){return t[this.forward].match(e[this.backward])}connectWith(t,e,n,r){if(!this.canConnectWith(t,e,n))throw new Error(`can not connect ${this.forward}!`);t[this.forwardConnection]!==e&&(this.attract(e,t,r),t[this.forwardConnection]=e,e[this.backwardConnection]=t,t.fireConnect(e))}attachRequirement(t){this.requirement=t}static horizontal(){return new l("x","right","left")}static vertical(){return new l("y","down","up")}}t.exports={Connector:l,noConnectionRequirements:o}},112:function(t,e){function n(t,e,n=null){return t.map(t=>{const r=t||n;return r&&e(r)})}t.exports={pivot:function(t,e,n=!1){return n?[t,e]:[e,t]},itself:function(t){return t},orthogonalMap:n,orthogonalTransform:function(t,e,r=null){const[o,l,c,h]=n(t,e,r);return{right:o,down:l,left:c,up:h}}}},113:function(t,e,n){n(109),n(46);const r=n(56);class o{constructor(){this.validListeners=[],this._valid=void 0}
2validate(t){const e=this._valid;this.updateValidity(t),this._valid&&!e&&this.fireValid(t)}updateValidity(t){this._valid=this.isValid(t)}fireValid(t){this.validListeners.forEach(e=>e(t))}onValid(t){this.validListeners.push(t)}get valid(){return this._valid}get isNull(){return!1}}class l extends o{constructor(t){super(),this.condition=t}isValid(t){return this.condition(t)}static equalDiffs([t,e],[n,o]){return r.equal(t,e,n,o,l.DIFF_DELTA)}}l.DIFF_DELTA=.01,l.connected=t=>t.connected,l.relativeRefs=t=>e=>{function n(e,n,o){return r.diff(e,n,...t[o])}const o=e.refs,[c,h]=o[0],d=n(c,h,0);return o.every(([t,e],r)=>l.equalDiffs(d,n(t,e,r)))},t.exports={PuzzleValidator:l,PieceValidator:class extends o{constructor(t){super(),this.condition=t}isValid(t){return t.pieces.every(t=>this.condition(t))}},NullValidator:class extends o{isValid(t){return!1}get isNull(){return!0}}}},114:function(t,e,n){n(46);const{vector:r,...o}=n(51);function select(t,e,s,n){return t.isTab()?e:t.isSlot()?s:n}const l=(p,t,s,e)=>select(p.left,t,s,e),c=(p,t,s,e)=>select(p.right,t,s,e),h=(p,t,s,e)=>select(p.up,t,s,e),d=(p,t,s,e)=>select(p.down,t,s,e);class f{draw(t,e=50,n=0){const r=o.cast(e),h=o.divide(o.multiply(n,5),r);return[0-h.x,0-h.y,1,0-h.y,2,select(t.up,-1-h.y,1-h.y,0-h.y),3,0-h.y,4+h.x,0-h.y,4+h.x,1,c(t,5+h.x,3+h.x,4+h.x),2,4+h.x,3,4+h.x,4+h.y,3,4+h.y,2,select(t.down,5+h.y,3+h.y,4+h.y),1,4+h.y,0-h.x,4+h.y,0-h.x,3,l(t,-1-h.x,1-h.x,0-h.x),2,0-h.x,1].map((t,e)=>t*(e%2==0?r.x:r.y)/5)}isBezier(){return!1}}t.exports={Classic:new f,Squared:f,Rounded:class{constructor({bezelize:t=!1,bezelDepth:e=.4,insertDepth:n=.8,borderLength:r=1/3,referenceInsertAxis:o=null}={}){this.bezelize=t,this.bezelDepth=e,this.insertDepth=n,this.borderLength=r,this.referenceInsertAxis=o}referenceInsertAxisLength(t){return this.referenceInsertAxis?this.referenceInsertAxis.atVector(t):o.inner.min(t)}draw(p,t=150,e=0){const n=o.cast(t),r=Math.trunc(this.referenceInsertAxisLength(n)*(1-2*this.borderLength)*100)/100,s=o.divide(o.minus(n,r),2),f=o.multiply(r,this.insertDepth),b=o.multiply(o.inner.min(s),this.bezelDepth),[m,v,y,_]=this.bezels(p),w=t=>t?b.x:0,x=t=>t?b.y:0,S=r+s.y,C=r+s.x,T=r+2*s.y,M=r+2*s.x;return[w(m),0,...m?[0,0,0,0,0,b.y]:[],0,x(m),0,s.y,0,s.y,...l(p,[-f.x,s.y,-f.x,S],[f.x,s.y,f.x,S],[0,s.y,0,S]),0,S,0,S,0,T,0,T-x(v),...v?[0,T,0,T,b.x,T]:[],w(v),T,s.x,T,s.x,T,...d(p,[s.x,T+f.y,C,T+f.y],[s.x,T-f.y,C,T-f.y],[s.x,T,C,T]),C,T,C,T,M,T,M-w(y),T,...y?[M,T,M,T,M,T-b.y]:[],M,T-x(y),M,S,M,S,...c(p,[M+f.x,S,M+f.x,s.y],[M-f.x,S,M-f.x,s.y],[M,S,M,s.y]),M,s.y,M,s.y,M,0,M,x(_),..._?[M,0,M,0,M-b.x,0]:[],M-w(_),0,C,0,C,0,...h(p,[C,-f.y,s.x,-f.y],[C,f.y,s.x,f.y],[C,0,s.x,0]),s.x,0,s.x,0,0,0,m?b.x:0,0]}bezels(p){return this.bezelize?[p.left.isNone()&&p.up.isNone(),p.left.isNone()&&p.down.isNone(),p.right.isNone()&&p.down.isNone(),p.right.isNone()&&p.up.isNone()]:[!1,!1,!1,!1]}isBezier(){return!0}}}},115:function(t,e,n){const r=n(56),o=(n(46),n(109)),l=n(261),{twoAndTwo:c}=n(152),h=n(149),d=n(437),{vector:f,...m}=n(51),v=n(153),y=n(262),{PuzzleValidator:_,PieceValidator:w}=n(113),{Horizontal:x,Vertical:S}=n(260),C=n(151),{diameter:T}=n(150),{itself:M}=n(112),{Classic:P}=n(114);t.exports=class{constructor(t,{width:e,height:n,pieceSize:r=50,proximity:o=10,borderFill:l=0,strokeWidth:c=3,strokeColor:h="black",lineSoftness:f=0,preventOffstageDrag:v=!1,image:image=null,fixed:y=!1,painter:_=null,puzzleDiameter:w=null,maxPiecesCount:x=null,outline:S=null}){this.width=e,this.height=n,this.pieceSize=T(r),this.borderFill=m.cast(l),this.imageMetadata=d.asImageMetadata(image),this.strokeWidth=c,this.strokeColor=h,this.lineSoftness=f,this.preventOffstageDrag=v,this.proximity=o,this.fixed=y,this._painter=_||new window.headbreaker.painters.Konva,this._initialize(),this._painter.initialize(this,t),this._maxPiecesCount=m.cast(x),this._puzzleDiameter=m.cast(w),this._imageAdjuster=M,this._outline=S||P}_initialize(){this._puzzle=null,this.figures={},this.templates={},this._figurePadding=null,this._drawn=!1}sketchPiece({structure:t,size:e=null,metadata:n}){y.initialize(n,m.zero()),this.renderPiece(this._newPiece(t,e,n))}renderPiece(t){const figure={label:null,group:null,shape:null};this.figures[t.metadata.id]=figure,this._painter.sketch(this,t,figure,this._outline);const label=t.metadata.label;label&&label.text&&(label.fontSize=label.fontSize||.55*t.diameter.y,label.y=label.y||(t.diameter.y-label.fontSize)/2,this._painter.label(this,t,figure)),this._bindGroupToPiece(figure.group,t),this._bindPieceToGroup(t,figure.group)}renderPieces(t){t.forEach(t=>{this._annotatePiecePosition(t),this.renderPiece(t)})}renderPuzzle(t){this.pieceSize=t.pieceSize,this.proximity=2*t.proximity,this._puzzle=t,this.renderPieces(t.pieces)}autogenerate({horizontalPiecesCount:t=5,verticalPiecesCount:e=5,insertsGenerator:n=c,metadata:r=[]}={}){const o=new l;o.withDimensions(t,e),o.withInsertsGenerator(n),o.withMetadata(r),this.autogenerateWithManufacturer(o)}autogenerateWithManufacturer(t){t.withStructure(this.settings),this._puzzle=t.build(),this._maxPiecesCount=f(t.width,t.height),this.renderPieces(this.puzzle.pieces)}defineTemplate(t,template){this.templates[t]=template}sketchPieceUsingTemplate(t,e){const n=this.templates[e];if(!n)throw new Error(`Unknown template ${t}`);const r=v.copy(n.metadata);r.id=t,this.sketchPiece({structure:n.structure,metadata:r})}shuffle(t=1){const e=this.pieceRadius;this.puzzle.shuffle(t*(this.width-e.x),t*(this.height-e.y)),this.puzzle.translate(e.x,e.y),this.autoconnected=!0}shuffleColumns(t=1){this.shuffleWith(t,C.columns)}shuffleGrid(t=1){this.shuffleWith(t,C.grid)}shuffleLine(t=1){this.shuffleWith(t,C.line)}shuffleWith(t,e){this.solve(),this.puzzle.shuffleWith(C.padder(3*this.proximity,this.maxPiecesCount.x,this.maxPiecesCount.y)),this.puzzle.shuffleWith(e),this.puzzle.shuffleWith(C.noise(m.cast(this.proximity*t/2))),this.autoconnected=!0}
2solve(){this.puzzle.pieces.forEach(t=>{const{x:e,y:n}=t.metadata.targetPosition;t.relocateTo(e,n)}),this.autoconnect()}autoconnect(){this.puzzle.autoconnect(),this.autoconnected=!0}registerKeyboardGestures(t={16:t=>t.forceConnectionWhileDragging(),17:t=>t.forceDisconnectionWhileDragging()}){this._painter.registerKeyboardGestures(this,t)}draw(){if(this._drawn)throw new Error("This canvas has already been drawn. Call redraw instead");this.autoconnected||this.autoconnect(),this.puzzle.updateValidity(),this.autoconnected=!1,this.redraw(),this._drawn=!0}redraw(){this._painter.draw(this)}refill(){this.puzzle.pieces.forEach(t=>{this._painter.fill(this,t,this.getFigure(t))})}clear(){this._initialize(),this._painter.reinitialize(this)}attachConnectionRequirement(t){this.puzzle.attachConnectionRequirement(t)}clearConnectionRequirements(){this.puzzle.clearConnectionRequirements()}attachValidator(t){this.puzzle.attachValidator(t)}attachSolvedValidator(){this.puzzle.attachValidator(new _(y.solved))}attachRelativePositionValidator(){this.puzzle.attachValidator(new _(y.relativePosition))}attachRelativeRefsValidator(t){this.puzzle.attachValidator(new _(_.relativeRefs(t)))}attachAbsolutePositionValidator(){this.puzzle.attachValidator(new w(y.absolutePosition))}onConnect(t){this.puzzle.onConnect((e,n)=>{t(e,this.getFigure(e),n,this.getFigure(n))})}onDisconnect(t){this.puzzle.onDisconnect((e,n)=>{t(e,this.getFigure(e),n,this.getFigure(n))})}onTranslate(t){this.puzzle.onTranslate((e,n,r)=>{t(e,this.getFigure(e),n,r)})}reframeWithinDimensions(){if(!this.fixed)throw new Error("Only fixed canvas can be reframed");this.puzzle.reframe(this.figurePadding,m.minus(f(this.width,this.height),this.figurePadding))}onValid(t){this.puzzle.onValid(t)}get valid(){return this.puzzle.valid}getFigure(t){return this.getFigureById(t.metadata.id)}getFigureById(t){return this.figures[t]}resize(t,e){this.width=t,this.height=e,this._painter.resize(this,t,e)}scale(t){this._painter.scale(this,m.cast(t))}_annotatePiecePosition(t){const p=t.centralAnchor.asVector();y.initialize(t.metadata,p,m.copy(p))}_bindGroupToPiece(t,e){e.onTranslate((n,r)=>{this._painter.physicalTranslate(this,t,e),this._painter.logicalTranslate(this,e,t)})}_bindPieceToGroup(t,e){this._painter.onDrag(this,t,e,(n,o)=>{r.isNull(n,o)||(t.drag(n,o,!0),this._painter.logicalTranslate(this,t,e),this.redraw())}),this._painter.onDragEnd(this,t,e,()=>{t.drop(),this.puzzle.validate(),this.redraw()})}_baseImageMetadataFor(t){if(this.imageMetadata){const e=t.metadata.scale||this.imageMetadata.scale||1,n=m.plus(t.metadata.targetPosition||m.zero(),this.imageMetadata.offset||m.zero());return{content:this.imageMetadata.content,offset:n,scale:e}}return d.asImageMetadata(t.metadata.image)}imageMetadataFor(t){return this._imageAdjuster(this._baseImageMetadataFor(t))}adjustImagesToPuzzle(t){this._imageAdjuster=image=>{const e=t.atVector(this.puzzleDiameter)/t.atDimension(image.content),n=m.plus(image.offset,m.minus(this.borderFill,this.pieceDiameter));return{content:image.content,scale:e,offset:n}}}adjustImagesToPuzzleWidth(){this.adjustImagesToPuzzle(x)}adjustImagesToPuzzleHeight(){this.adjustImagesToPuzzle(S)}adjustImagesToPiece(t){this._imageAdjuster=image=>{const e=t.atVector(this.pieceDiameter)/t.atDimension(image.content),n=m.plus(image.offset,this.borderFill);return{content:image.content,scale:e,offset:n}}}adjustImagesToPieceWidth(){this.adjustImagesToPiece(x)}adjustImagesToPieceHeight(){this.adjustImagesToPiece(S)}_initializeEmptyPuzzle(){this._puzzle=new o(this.settings)}_newPiece(t,e,n){return this.puzzle.newPiece(h.asStructure(t),{centralAnchor:f(n.currentPosition.x,n.currentPosition.y),metadata:n,size:e})}get puzzleDiameter(){return this._puzzleDiameter||this.estimatedPuzzleDiameter}get estimatedPuzzleDiameter(){return m.plus(m.multiply(this.pieceDiameter,this.maxPiecesCount),2*this.strokeWidth)}get maxPiecesCount(){if(!this._maxPiecesCount)throw new Error("max pieces count was not specified");return this._maxPiecesCount}get pieceRadius(){return this.pieceSize.radius}get pieceDiameter(){return this.pieceSize.diameter}get figurePadding(){return this._figurePadding||(this._figurePadding=m.plus(this.strokeWidth,this.borderFill)),this._figurePadding}get figuresCount(){return Object.values(this.figures).length}get puzzle(){return this._puzzle||this._initializeEmptyPuzzle(),this._puzzle}get settings(){return{pieceRadius:this.pieceRadius,proximity:this.proximity}}}},116:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),o=n(12);e.DD={get isDragging(){var t=!1;return e.DD._dragElements.forEach(function(e){"dragging"===e.dragStatus&&(t=!0)}),t},justDragged:!1,get node(){var t;return e.DD._dragElements.forEach(function(e){t=e.node}),t},_dragElements:new Map,_drag:function(t){e.DD._dragElements.forEach(function(e,n){var r=e.node,l=r.getStage();l.setPointersPositions(t),void 0===e.pointerId&&(e.pointerId=o.Util._getFirstPointerId(t));var c=l._changedPointerPositions.find(function(t){return t.id===e.pointerId});if(c){if("dragging"!==e.dragStatus){var h=r.dragDistance();if(Math.max(Math.abs(c.x-e.startPointerPos.x),Math.abs(c.y-e.startPointerPos.y))<h)return;if(r.startDrag({evt:t}),!r.isDragging())return}r._setDragPosition(t,e),r.fire("dragmove",{type:"dragmove",target:r,evt:t},!0)}})},_endDragBefore:function(t){e.DD._dragElements.forEach(function(n,o){var l=n.node.getStage();if(t&&l.setPointersPositions(t),l._changedPointerPositions.find(function(t){return t.id===n.pointerId})){"dragging"!==n.dragStatus&&"stopped"!==n.dragStatus||(e.DD.justDragged=!0,r.Konva.listenClickTap=!1,n.dragStatus="stopped");var c=n.node.getLayer()||n.node instanceof r.Konva.Stage&&n.node;c&&c.draw()}})},_endDragAfter:function(t){e.DD._dragElements.forEach(function(n,r){"stopped"===n.dragStatus&&n.node.fire("dragend",{type:"dragend",target:n.node,evt:t},!0),"dragging"!==n.dragStatus&&e.DD._dragElements.delete(r)})}},r.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1))},117:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r={name:"default-section",props:{section:{type:Object,required:!0},currentIndex:{type:[Number,String],required:!1,default:1/0},renderSuggestion:{type:Function,required:!1},normalizeItemFunction:{type:Function,required:!0},componentAttrPrefix:{type:String,required:!0},componentAttrIdAutosuggest:{type:String,required:!0}},data:function(){return{_currentIndex:this.currentIndex}},computed:{list:function(){var t=this.section,e=t.limit,n=t.data;return n.length<e&&(e=n.length),n.slice(0,e)}},methods:{getItemIndex:function(t){return this.section.start_index+t},getItemByIndex:function(t){return this.section.data[t]},onMouseEnter:function(t){var e=parseInt(t.currentTarget.getAttribute("data-suggestion-index"));this._currentIndex=e,this.$emit("updateCurrentIndex",e)},onMouseLeave:function(){this.$emit("updateCurrentIndex",null)}},render:function(t){var e=this,n=this.componentAttrPrefix,s={beforeSection:this.$scopedSlots["before-section-"+this.section.name],afterSectionDefault:this.$scopedSlots["after-section"],afterSectionNamed:this.$scopedSlots["after-section-"+this.section.name]},i=n+"__results-before "+n+"__results-before--"+this.section.name,r=s.beforeSection&&s.beforeSection({section:this.section,className:i})||[];return t("ul",{attrs:{role:"listbox","aria-labelledby":this.section.label&&this.componentAttrIdAutosuggest+"-"+this.section.label},class:this.section.ulClass},[r[0]&&r[0]||this.section.label&&t("li",{class:i,id:this.componentAttrIdAutosuggest+"-"+this.section.label},this.section.label)||"",this.list.map(function(s,i){var r,o=e.normalizeItemFunction(e.section.name,e.section.type,e.section.label,e.section.liClass,s),u=e.getItemIndex(i),l=e._currentIndex===u||parseInt(e.currentIndex)===u;return t("li",{attrs:Object.assign({},{role:"option","data-suggestion-index":u,"data-section-name":o.name,id:n+"__results-item--"+u},o.liAttributes),key:u,class:Object.assign((r={},r[n+"__results-item--highlighted"]=l,r[n+"__results-item"]=!0,r),o.liClass),on:{mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave}},[e.renderSuggestion?e.renderSuggestion(o):e.$scopedSlots.default&&e.$scopedSlots.default({_key:i,suggestion:o})])}),s.afterSectionDefault&&s.afterSectionDefault({section:this.section,className:n+"__results-after "+n+"__results-after--"+this.section.name}),s.afterSectionNamed&&s.afterSectionNamed({section:this.section,className:n+"__results_after "+n+"__results-after--"+this.section.name})])}};function o(t,e){(function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))})(t,e)||(t.className+=" "+e)}var l="default",c="default-section",h={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:t.componentAttrIdAutosuggest}},[t._t("before-input"),n("div",{attrs:{role:"combobox","aria-expanded":t.isOpen?"true":"false","aria-haspopup":"listbox","aria-owns":t.componentAttrIdAutosuggest+"-"+t.componentAttrPrefix+"__results"}},[n("input",t._g(t._b({class:[t.isOpen?t.componentAttrPrefix+"__input--open":"",t.internal_inputProps.class],attrs:{type:t.internal_inputProps.type,autocomplete:t.internal_inputProps.autocomplete,"aria-autocomplete":"list","aria-activedescendant":t.isOpen&&null!==t.currentIndex?t.componentAttrPrefix+"__results-item--"+t.currentIndex:"","aria-controls":t.componentAttrIdAutosuggest+"-"+t.componentAttrPrefix+"__results"},domProps:{value:t.internalValue},on:{input:t.inputHandler,keydown:t.handleKeyStroke}},"input",t.internal_inputProps,!1),t.listeners))]),t._t("after-input"),t._v(" "),n("div",{class:t._componentAttrClassAutosuggestResultsContainer,attrs:{id:t.componentAttrIdAutosuggest+"-"+t.componentAttrPrefix+"__results"}},[t.isOpen?n("div",{class:t._componentAttrClassAutosuggestResults,attrs:{"aria-labelledby":t.componentAttrIdAutosuggest}},[t._t("before-suggestions"),t._v(" "),t._l(t.computedSections,function(e,s){return n(e.type,{key:t.getSectionRef(""+e.name+s),ref:t.getSectionRef(""+e.name+s),refInFor:!0,tag:"component",attrs:{"current-index":t.currentIndex,"normalize-item-function":t.normalizeItem,"render-suggestion":t.render
vendor: 4,831 bytes, line 2
2Suggestion,section:e,"component-attr-prefix":t.componentAttrPrefix,"component-attr-id-autosuggest":t.componentAttrIdAutosuggest},on:{updateCurrentIndex:t.updateCurrentIndex},scopedSlots:t._u([{key:"before-section-"+(e.name||e.label),fn:function(n){var s=n.section,i=n.className;return[t._t("before-section-"+(e.name||e.label),null,{section:s,className:i})]}},{key:"default",fn:function(e){var n=e.suggestion,s=e._key;return[t._t("default",[t._v(" "+t._s(n.item)+" ")],{suggestion:n,index:s})]}},{key:"after-section-"+(e.name||e.label),fn:function(n){var s=n.section;return[t._t("after-section-"+(e.name||e.label),null,{section:s})]}},{key:"after-section",fn:function(e){var n=e.section;return[t._t("after-section",null,{section:n})]}}])})}),t._v(" "),t._t("after-suggestions")],2):t._e(),t._v(" "),t._t("after-suggestions-container")],2)],2)},staticRenderFns:[],name:"Autosuggest",components:{DefaultSection:r},props:{value:{type:String,default:null},inputProps:{type:Object,required:!0},limit:{type:Number,required:!1,default:1/0},suggestions:{type:Array,required:!0},renderSuggestion:{type:Function,required:!1,default:null},getSuggestionValue:{type:Function,required:!1,default:function(t){var e=t.item;return"object"==typeof e&&e.hasOwnProperty("name")?e.name:e}},shouldRenderSuggestions:{type:Function,required:!1,default:function(t,e){return t>0&&!e}},sectionConfigs:{type:Object,required:!1,default:function(){return{default:{onSelected:null}}}},onSelected:{type:Function,required:!1,default:null},componentAttrIdAutosuggest:{type:String,required:!1,default:"autosuggest"},componentAttrClassAutosuggestResultsContainer:{type:String,required:!1,default:null},componentAttrClassAutosuggestResults:{type:String,required:!1,default:null},componentAttrPrefix:{type:String,required:!1,default:"autosuggest"}},data:function(){return{internalValue:null,searchInputOriginal:null,currentIndex:null,currentItem:null,loading:!1,didSelectFromOptions:!1,defaultInputProps:{type:"text",autocomplete:"off"},clientXMouseDownInitial:null}},computed:{internal_inputProps:function(){return Object.assign({},this.defaultInputProps,this.inputProps)},listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(t){},click:function(){t.loading=!1,t.$listeners.click&&t.$listeners.click(t.currentItem),t.$nextTick(function(){t.ensureItemVisible(t.currentItem,t.currentIndex)})},selected:function(){t.currentItem&&t.sectionConfigs[t.currentItem.name]&&t.sectionConfigs[t.currentItem.name].onSelected?t.sectionConfigs[t.currentItem.name].onSelected(t.currentItem,t.searchInputOriginal):t.sectionConfigs.default.onSelected?t.sectionConfigs.default.onSelected(null,t.searchInputOriginal):t.$listeners.selected&&t.$emit("selected",t.currentItem,t.currentIndex),t.setChangeItem(null)}})},isOpen:function(){return this.shouldRenderSuggestions(this.totalResults,this.loading)},computedSections:function(){var t=this,e=0;return this.suggestions.map(function(n){if(n.data){var s,i,r,o,u=n.name?n.name:l,h=null;t.sectionConfigs[u]&&(s=t.sectionConfigs[u].limit,r=t.sectionConfigs[u].type,i=t.sectionConfigs[u].label,o=t.sectionConfigs[u].ulClass,h=t.sectionConfigs[u].liClass),r=r||c,s=(s=s||t.limit)||1/0,s=n.data.length<s?n.data.length:s;var a={name:u,label:i=i||n.label,type:r,limit:s,data:n.data,start_index:e,end_index:e+s-1,ulClass:o,liClass:h};return e+=s,a}})},totalResults:function(){return this.computedSections.reduce(function(t,e){if(!e)return t;var n=e.limit,s=e.data;return t+(s.length>=n?n:s.length)},0)},_componentAttrClassAutosuggestResultsContainer:function(){return this.componentAttrClassAutosuggestResultsContainer||this.componentAttrPrefix+"__results-container"},_componentAttrClassAutosuggestResults:function(){return this.componentAttrClassAutosuggestResults||this.componentAttrPrefix+"__results"}},watch:{value:{handler:function(t){this.internalValue=t},immediate:!0},isOpen:{handler:function(t,e){t!==e&&this.$emit(t?"opened":"closed")},immediate:!0}},created:function(){this.loading=!0},mounted:function(){document.addEventListener("mouseup",this.onDocumentMouseUp),document.addEventListener("mousedown",this.onDocumentMouseDown)},beforeDestroy:function(){document.removeEventListener("mouseup",this.onDocumentMouseUp),document.removeEventListener("mousedown",this.onDocumentMouseDown)},methods:{inputHandler:function(t){var e=t.target.value;this.$emit("input",e),this.internalValue=e,this.didSelectFromOptions||(this.searchInputOriginal=e,this.currentIndex=null)},getSectionRef:function(t){return"computed_section_"+t},getItemByIndex:function(t){var e=!1;if(null===t)return e;for(var n=0;n<this.computedSections.length;n++)if(t>=this.computedSections[n].start_index&&t<=this.computedSections[n].end_index){var s=t-this.computedSections[n].start_index,i=this.computedSections[n].name,r=this.$refs[this.get
2SectionRef(""+i+n)][0];if(r){e=this.normalizeItem(this.computedSections[n].name,this.computedSections[n].type,r.section.label,r.section.liClass,r.getItemByIndex(s));break}}return e},handleKeyStroke:function(t){var e=this,n=t.keyCode;if(!([16,9,17,18,91,93].indexOf(n)>-1)){var s=!this.isOpen;if(this.loading=!1,this.didSelectFromOptions=!1,this.isOpen)switch(n){case 40:case 38:if(t.preventDefault(),38===n&&null===this.currentIndex)break;var i=40===n?1:-1,r=Math.max((parseInt(this.currentIndex)||0)+(s?0:i),-1);this.setCurrentIndex(r,this.totalResults),this.didSelectFromOptions=!0,this.totalResults>0&&this.currentIndex>=0?(this.setChangeItem(this.getItemByIndex(this.currentIndex)),this.didSelectFromOptions=!0):-1===this.currentIndex&&(this.setChangeItem(null),this.internalValue=this.searchInputOriginal,t.preventDefault()),this.$nextTick(function(){e.ensureItemVisible(e.currentItem,e.currentIndex)});break;case 13:t.preventDefault(),this.totalResults>0&&this.currentIndex>=0&&(this.setChangeItem(this.getItemByIndex(this.currentIndex),!0),this.didSelectFromOptions=!0),this.loading=!0,this.listeners.selected(this.didSelectFromOptions);break;case 27:this.loading=!0,this.currentIndex=null,this.internalValue=this.searchInputOriginal,this.$emit("input",this.searchInputOriginal),t.preventDefault()}}},setChangeItem:function(t,e){if(void 0===e&&(e=!1),null!==this.currentIndex&&t){if(t){this.currentItem=t,this.$emit("item-changed",t,this.currentIndex);var n=this.getSuggestionValue(t);this.internalValue=n,e&&(this.searchInputOriginal=n),this.ensureItemVisible(t,this.currentIndex)}}else this.currentItem=null,this.$emit("item-changed",null,null)},normalizeItem:function(t,e,n,s,i){return{name:t,type:e,label:n,liClass:i.liClass||s,item:i}},ensureItemVisible:function(t,e,n){var s=this.$el.querySelector(n||"."+this._componentAttrClassAutosuggestResults);if(s){var i=s.querySelector("#"+this.componentAttrPrefix+"__results-item--"+e);if(i){var r=s.clientHeight,o=s.scrollTop,u=i.clientHeight,l=i.offsetTop;u+l>=o+r?s.scrollTop=u+l-r:l<o&&o>0&&(s.scrollTop=l)}}},updateCurrentIndex:function(t){this.setCurrentIndex(t,-1,!0)},clickedOnScrollbar:function(t,e){var n=this.$el.querySelector("."+this._componentAttrClassAutosuggestResults),s=n&&n.clientWidth<=e+17&&e+17<=n.clientWidth+34;return"DIV"===t.target.tagName&&n&&s||!1},onDocumentMouseDown:function(t){var e=t.target.getBoundingClientRect?t.target.getBoundingClientRect():0;this.clientXMouseDownInitial=t.clientX-e.left},onDocumentMouseUp:function(t){if(!this.$el.contains(t.target))return this.loading=!0,void(this.currentIndex=null);"INPUT"===t.target.tagName||this.clickedOnScrollbar(t,this.clientXMouseDownInitial)||(this.loading=!0,this.didSelectFromOptions=!0,this.setChangeItem(this.getItemByIndex(this.currentIndex),!0),this.listeners.selected(!0))},setCurrentIndex:function(t,e,n){void 0===e&&(e=-1),void 0===n&&(n=!1);var s=t;n||(null===this.currentIndex||t>=e)&&(s=0),this.currentIndex=s;var i=this.$el.querySelector("#"+this.componentAttrPrefix+"__results-item--"+this.currentIndex),r=this.componentAttrPrefix+"__results-item--highlighted";this.$el.querySelector("."+r)&&function(t,e){t.classList&&t.classList.remove(e)}(this.$el.querySelector("."+r),r),i&&o(i,r)}}},d={install:function(t){t.component("vue-autosuggest-default-section",r),t.component("vue-autosuggest",h)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(d)},118:function(t,e,n){"use strict";n.r(e),n.d(e,"getImage",function(){return c}),n.d(e,"validateDomains",function(){return h}),n.d(e,"supportsAlias",function(){return d});var r=n(22),o=n(42),l=Object(o.a)({keyMap:{format:"f",fit:"fit",width:"w",height:"h",resize:"s",quality:"q",background:"b"},joinWith:",",formatter:(t,e)=>Object(r.a)(t)+"_"+Object(r.a)(e)}),c=function(t){var{modifiers:e={},baseURL:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;e.width&&e.height&&(e.resize="".concat(e.width,"x").concat(e.height),delete e.width,delete e.height);var c,h=l(e)||"_";n||(n=Object(r.e)((null===(c=o.nuxtContext)||void 0===c?void 0:c.base)||"/","/_ipx"));return{url:Object(r.e)(n,h,Object(r.b)(t))}},h=!0,d=!0},119:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n(4),o=(n(64),n(42));function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?l(Object(n),!0).forEach(function(e){Object(r.a)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var h={props:{src:{type:String,required:!0},format:{type:String,default:void 0},quality:{type:[Number,String],default:void 0},background:{type:String,default:void 0},fit:{type:String,default:void 0},modifiers:{type:Object,default:void 0},preset:{type:String,default:void 0},provider:{type:String,default:void 0},sizes:{type:[Object,String],default:void 0},preload:{type:Boolean,default:void 0},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0},alt:{type:String,default:void 0},referrerpolicy:{type:String,default:void 0},usemap:{type:String,default:void 0},longdesc:{type:String,default:void 0},ismap:{type:Boolean,default:void 0},crossorigin:{type:[Boolean,String],default:void 0,validator:t=>["anonymous","use-credentials","",!0,!1].includes(t)},loading:{type:String,default:void 0},decoding:{type:String,default:void 0,validator:t=>["async","auto","sync"].includes(t)}},computed:{nImgAttrs(){return{width:Object(o.c)(this.width),height:Object(o.c)(this.height),alt:this.alt,referrerpolicy:this.referrerpolicy,usemap:this.usemap,longdesc:this.longdesc,ismap:this.ismap,crossorigin:!0===this.crossorigin?"anonymous":this.crossorigin||void 0,loading:this.loading,decoding:this.decoding}},nModifiers(){return c(c({},this.modifiers),{},{width:Object(o.c)(this.width),height:Object(o.c)(this.height),format:this.format,quality:this.quality,background:this.background,fit:this.fit})},nOptions(){return{provider:this.provider,preset:this.preset}}}}},12:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),o=function(){function t(){}return t.toCollection=function(e){var n,r=new t,o=e.length;for(n=0;n<o;n++)r.push(e[n]);return r},t._mapMethod=function(e){t.prototype[e]=function(){var i,t=this.length,n=[].slice.call(arguments);for(i=0;i<t;i++)this[i][e].apply(this[i],n);return this}},t.mapMethods=function(e){var n=e.prototype;for(var r in n)t._mapMethod(r)},t}();e.Collection=o,o.prototype=[],o.prototype.each=function(t){for(var e=0;e<this.length;e++)t(this[e],e)},o.prototype.toArray=function(){var t,e=[],n=this.length;for(t=0;t<n;t++)e.push(this[t]);return e};var l=function(){function t(t){void 0===t&&(t=[1,0,0,1,0,0]),this.m=t&&t.slice()||[1,0,0,1,0,0]}return t.prototype.copy=function(){return new t(this.m)},t.prototype.point=function(t){var e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}},t.prototype.translate=function(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this},t.prototype.scale=function(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this},t.prototype.rotate=function(t){var e=Math.cos(t),s=Math.sin(t),n=this.m[0]*e+this.m[2]*s,r=this.m[1]*e+this.m[3]*s,o=this.m[0]*-s+this.m[2]*e,l=this.m[1]*-s+this.m[3]*e;return this.m[0]=n,this.m[1]=r,this.m[2]=o,this.m[3]=l,this},t.prototype.getTranslation=function(){return{x:this.m[4],y:this.m[5]}},t.prototype.skew=function(t,e){var n=this.m[0]+this.m[2]*e,r=this.m[1]+this.m[3]*e,o=this.m[2]+this.m[0]*t,l=this.m[3]+this.m[1]*t;return this.m[0]=n,this.m[1]=r,this.m[2]=o,this.m[3]=l,this},t.prototype.multiply=function(t){var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],n=this.m[1]*t.m[0]+this.m[3]*t.m[1],r=this.m[0]*t.m[2]+this.m[2]*t.m[3],o=this.m[1]*t.m[2]+this.m[3]*t.m[3],l=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],c=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=n,this.m[2]=r,this.m[3]=o,this.m[4]=l,this.m[5]=c,this},t.prototype.invert=function(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,n=-this.m[1]*t,r=-this.m[2]*t,o=this.m[0]*t,l=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),c=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=n,this.m[2]=r,this.m[3]=o,this.m[4]=l,this.m[5]=c,this},t.prototype.getMatrix=function(){return this.m},t.prototype.setAbsolutePosition=function(t,e){var n=this.m[0],r=this.m[1],o=this.m[2],l=this.m[3],c=this.m[4],h=(n*(e-this.m[5])-r*(t-c))/(n*l-r*o),d=(t-c-o*h)/n;return this.translate(d,h)},t.prototype.decompose=function(){var a=this.m[0],b=this.m[1],t=this.m[2],n=this.m[3],r=a*n-b*t,o={x:this.m[4],y:this.m[5],rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=a||0!=b){var l=Math.sqrt(a*a+b*b);o.rotation=b>0?Math.acos(a/l):-Math.acos(a/l),o.scaleX=l,o.scaleY=r/l,o.skewX=(a*t+b*n)/r,o.skewY=0}else if(0!=t||0!=n){var s=Math.sqrt(t*t+n*n);o.rotation=Math.PI/2-(n>0?Math.acos(-t/s):-Math.acos(t/s)),o.scaleX=r/s,o.scaleY=s,o.skewX=0,o.skewY=(a*t+b*n)/r}return o.rotation=e.Util._getRotation(o.rotation),o},t}();e.Transform=l;var c=Math.PI/180,h=180/Math.PI,d="Konva error: ",f={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
2ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},m=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,v=[];e.Util={_isElement:function(t){return!(!t||1!=t.nodeType)},_isFunction:function(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isPlainObject:function(t){return!!t&&t.constructor===Object},_isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},_isNumber:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&!isNaN(t)&&isFinite(t)},_isString:function(t){return"[object String]"===Object.prototype.toString.call(t)},_isBoolean:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},isObject:function(t){return t instanceof Object},isValidSelector:function(t){if("string"!=typeof t)return!1;var e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},_sign:function(t){return 0===t?0:t>0?1:-1},requestAnimFrame:function(t){v.push(t),1===v.length&&requestAnimationFrame(function(){var t=v;v=[],t.forEach(function(t){t()})})},createCanvasElement:function(){var canvas=document.createElement("canvas");try{canvas.style=canvas.style||{}}catch(t){}return canvas},createImageElement:function(){return document.createElement("img")},_isInDocument:function(t){for(;t=t.parentNode;)if(t==document)return!0;return!1},_simplifyArray:function(t){var n,r,o=[],l=t.length,c=e.Util;for(n=0;n<l;n++)r=t[n],c._isNumber(r)?r=Math.round(1e3*r)/1e3:c._isString(r)||(r=r.toString()),o.push(r);return o},_urlToImage:function(t,e){var n=new r.glob.Image;n.onload=function(){e(n)},n.src=t},_rgbToHex:function(t,g,b){return((1<<24)+(t<<16)+(g<<8)+b).toString(16).slice(1)},_hexToRgb:function(t){t=t.replace("#","");var e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor:function(){for(var t=(16777215*Math.random()|0).toString(16);t.length<6;)t="0"+t;return"#"+t},get:function(t,e){return void 0===t?e:t},getRGB:function(t){var e;return t in f?{r:(e=f[t])[0],g:e[1],b:e[2]}:"#"===t[0]?this._hexToRgb(t.substring(1)):"rgb("===t.substr(0,4)?(e=m.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA:function(t){return t=t||"black",e.Util._namedColorToRBA(t)||e.Util._hex3ColorToRGBA(t)||e.Util._hex6ColorToRGBA(t)||e.Util._rgbColorToRGBA(t)||e.Util._rgbaColorToRGBA(t)||e.Util._hslColorToRGBA(t)},_namedColorToRBA:function(t){var e=f[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA:function(t){if(0===t.indexOf("rgb(")){var e=(t=t.match(/rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA:function(t){if(0===t.indexOf("rgba(")){var e=(t=t.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex6ColorToRGBA:function(t){if("#"===t[0]&&7===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex3ColorToRGBA:function(t){if("#"===t[0]&&4===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_hslColorToRGBA:function(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){var e=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),n=(e[0],e.slice(1)),r=Number(n[0])/360,s=Number(n[1])/100,o=Number(n[2])/100,l=void 0,c=void 0,h=void 0;if(0===s)return h=255*o,{r:Math.round(h),g:Math.round(h),b:Math.round(h),a:1};for(var d=2*o-(l=o<.5?o*(1+s):o+s-o*s),f=[0,0,0],i=0;i<3;
2i++)(c=r+1/3*-(i-1))<0&&c++,c>1&&c--,h=6*c<1?d+6*(l-d)*c:2*c<1?l:3*c<2?d+(l-d)*(2/3-c)*6:d,f[i]=255*h;return{r:Math.round(f[0]),g:Math.round(f[1]),b:Math.round(f[2]),a:1}}},haveIntersection:function(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},cloneObject:function(t){var e={};for(var n in t)this._isPlainObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray:function(t){return t.slice(0)},_degToRad:function(t){return t*c},_radToDeg:function(t){return t*h},_getRotation:function(t){return r.Konva.angleDeg?e.Util._radToDeg(t):t},_capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw:function(t){throw new Error(d+t)},error:function(t){console.error(d+t)},warn:function(t){r.Konva.showWarnings&&console.warn("Konva warning: "+t)},extend:function(t,e){function n(){this.constructor=t}n.prototype=e.prototype;var r=t.prototype;for(var o in t.prototype=new n,r)r.hasOwnProperty(o)&&(t.prototype[o]=r[o]);t.__super__=e.prototype,t.super=e},_getControlPoints:function(t,e,n,r,o,l,c){var h=Math.sqrt(Math.pow(n-t,2)+Math.pow(r-e,2)),d=Math.sqrt(Math.pow(o-n,2)+Math.pow(l-r,2)),f=c*h/(h+d),m=c*d/(h+d);return[n-f*(o-t),r-f*(l-e),n+m*(o-t),r+m*(l-e)]},_expandPoints:function(p,t){var n,r,o=p.length,l=[];for(n=2;n<o-2;n+=2)r=e.Util._getControlPoints(p[n-2],p[n-1],p[n],p[n+1],p[n+2],p[n+3],t),l.push(r[0]),l.push(r[1]),l.push(p[n]),l.push(p[n+1]),l.push(r[2]),l.push(r[3]);return l},each:function(t,e){for(var n in t)e(n,t[n])},_inRange:function(t,e,n){return e<=t&&t<n},_getProjectionToSegment:function(t,e,n,r,o,l){var c,h,d,f=(t-n)*(t-n)+(e-r)*(e-r);if(0==f)c=t,h=e,d=(o-n)*(o-n)+(l-r)*(l-r);else{var u=((o-t)*(n-t)+(l-e)*(r-e))/f;u<0?(c=t,h=e,d=(t-o)*(t-o)+(e-l)*(e-l)):u>1?(c=n,h=r,d=(n-o)*(n-o)+(r-l)*(r-l)):d=((c=t+u*(n-t))-o)*(c-o)+((h=e+u*(r-e))-l)*(h-l)}return[c,h,d]},_getProjectionToLine:function(t,line,n){var r=e.Util.cloneObject(t),o=Number.MAX_VALUE;return line.forEach(function(l,i){if(n||i!==line.length-1){var c=line[(i+1)%line.length],h=e.Util._getProjectionToSegment(l.x,l.y,c.x,c.y,t.x,t.y),d=h[0],f=h[1],m=h[2];m<o&&(r.x=d,r.y=f,o=m)}}),r},_prepareArrayForTween:function(t,n,r){var o,l=[],c=[];if(t.length>n.length){var h=n;n=t,t=h}for(o=0;o<t.length;o+=2)l.push({x:t[o],y:t[o+1]});for(o=0;o<n.length;o+=2)c.push({x:n[o],y:n[o+1]});var d=[];return c.forEach(function(t){var n=e.Util._getProjectionToLine(t,l,r);d.push(n.x),d.push(n.y)}),d},_prepareToStringify:function(t){var desc;for(var n in t.visitedByCircularReferenceRemoval=!0,t)if(t.hasOwnProperty(n)&&t[n]&&"object"==typeof t[n])if(desc=Object.getOwnPropertyDescriptor(t,n),t[n].visitedByCircularReferenceRemoval||e.Util._isElement(t[n])){if(!desc.configurable)return null;delete t[n]}else if(null===e.Util._prepareToStringify(t[n])){if(!desc.configurable)return null;delete t[n]}return delete t.visitedByCircularReferenceRemoval,t},_assign:function(t,source){for(var e in source)t[e]=source[e];return t},_getFirstPointerId:function(t){return t.touches?t.changedTouches[0].identifier:999}}},120:function(t,e,n){!function(t,e,n){"use strict";var r;e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,function(t){t.SwiperComponent="Swiper",t.SwiperSlideComponent="SwiperSlide",t.SwiperDirective="swiper",t.SwiperInstance="$swiper"}(r||(r={}));var o,l,c=Object.freeze({containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide"});(function(t){t.Ready="ready",t.ClickSlide="clickSlide"})(o||(o={})),function(t){t.AutoUpdate="autoUpdate",t.AutoDestroy="autoDestroy",t.DeleteInstanceOnDestroy="deleteInstanceOnDestroy",t.CleanupStylesOnDestroy="cleanupStylesOnDestroy"}(l||(l={}));var h=["init","beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize","observerUpdate","beforeLoopFix","loopFix"];function d(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var e=Array(s),n=0;for(i=0;i<t;i++)for(var a=arguments[i],r=0,o=a.length;r<o;r++,n++)e[n]=a[r];return e}var f,m=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},v=function(t,e,n){var r,l,c;
2if(t&&!t.destroyed){var h=(null===(r=e.composedPath)||void 0===r?void 0:r.call(e))||e.path;if((null==e?void 0:e.target)&&h){var d=Array.from(t.slides),f=Array.from(h);if(d.includes(e.target)||f.some(function(t){return d.includes(t)})){var v=t.clickedIndex,y=Number(null===(c=null===(l=t.clickedSlide)||void 0===l?void 0:l.dataset)||void 0===c?void 0:c.swiperSlideIndex),_=Number.isInteger(y)?y:null;n(o.ClickSlide,v,_),n(m(o.ClickSlide),v,_)}}}},y=function(t,e){h.forEach(function(n){t.on(n,function(){for(var t=arguments,r=[],o=0;o<arguments.length;o++)r[o]=t[o];e.apply(void 0,d([n],r));var l=m(n);l!==n&&e.apply(void 0,d([l],r))})})},_="instanceName";function w(t,e){var n=function(t,e){var n,r,o,l,c=null===(r=null===(n=t.data)||void 0===n?void 0:n.attrs)||void 0===r?void 0:r[e];return void 0!==c?c:null===(l=null===(o=t.data)||void 0===o?void 0:o.attrs)||void 0===l?void 0:l[m(e)]},h=function(element,t,e){return t.arg||n(e,_)||element.id||r.SwiperInstance},d=function(element,t,e){var n=h(element,t,e);return e.context[n]||null},f=function(t){return t.value||e},w=function(input){return[!0,void 0,null,""].includes(input)},x=function(t){var e,n,r=(null===(e=t.data)||void 0===e?void 0:e.on)||(null===(n=t.componentOptions)||void 0===n?void 0:n.listeners);return function(t){for(var e,n=arguments,o=[],l=1;l<arguments.length;l++)o[l-1]=n[l];var c=null===(e=r)||void 0===e?void 0:e[t];c&&c.fns.apply(c,o)}};return{bind:function(element,t,e){-1===element.className.indexOf(c.containerClass)&&(element.className+=(element.className?" ":"")+c.containerClass),element.addEventListener("click",function(n){var r=x(e),o=d(element,t,e);v(o,n,r)})},inserted:function(element,e,n){var r=n.context,l=f(e),c=h(element,e,n),d=x(n),m=r,v=null==m?void 0:m[c];v&&!v.destroyed||(v=new t(element,l),m[c]=v,y(v,d),d(o.Ready,v))},componentUpdated:function(element,t,e){var r,o,c,h,m,v,y,_,x,S,C,T,M=n(e,l.AutoUpdate);if(w(M)){var P=d(element,t,e);if(P){var E=f(t).loop;E&&(null===(o=null===(r=P)||void 0===r?void 0:r.loopDestroy)||void 0===o||o.call(r)),null===(c=null==P?void 0:P.update)||void 0===c||c.call(P),null===(m=null===(h=P.navigation)||void 0===h?void 0:h.update)||void 0===m||m.call(h),null===(y=null===(v=P.pagination)||void 0===v?void 0:v.render)||void 0===y||y.call(v),null===(x=null===(_=P.pagination)||void 0===_?void 0:_.update)||void 0===x||x.call(_),E&&(null===(C=null===(S=P)||void 0===S?void 0:S.loopCreate)||void 0===C||C.call(S),null===(T=null==P?void 0:P.update)||void 0===T||T.call(P))}}},unbind:function(element,t,e){var r,o=n(e,l.AutoDestroy);if(w(o)){var c=d(element,t,e);c&&c.initialized&&(null===(r=null==c?void 0:c.destroy)||void 0===r||r.call(c,w(n(e,l.DeleteInstanceOnDestroy)),w(n(e,l.CleanupStylesOnDestroy))))}}}}function x(t){var e;return n.extend({name:r.SwiperComponent,props:(e={defaultOptions:{type:Object,required:!1,default:function(){return{}}},options:{type:Object,required:!1}},e[l.AutoUpdate]={type:Boolean,default:!0},e[l.AutoDestroy]={type:Boolean,default:!0},e[l.DeleteInstanceOnDestroy]={type:Boolean,required:!1,default:!0},e[l.CleanupStylesOnDestroy]={type:Boolean,required:!1,default:!0},e),data:function(){var t;return(t={})[r.SwiperInstance]=null,t},computed:{swiperInstance:{cache:!1,set:function(t){this[r.SwiperInstance]=t},get:function(){return this[r.SwiperInstance]}},swiperOptions:function(){return this.options||this.defaultOptions},wrapperClass:function(){return this.swiperOptions.wrapperClass||c.wrapperClass}},methods:{handleSwiperClick:function(t){v(this.swiperInstance,t,this.$emit.bind(this))},autoReLoopSwiper:function(){var t,e;if(this.swiperInstance&&this.swiperOptions.loop){var n=this.swiperInstance;null===(t=null==n?void 0:n.loopDestroy)||void 0===t||t.call(n),null===(e=null==n?void 0:n.loopCreate)||void 0===e||e.call(n)}},updateSwiper:function(){var t,e,n,r,o,c,h,d;this[l.AutoUpdate]&&this.swiperInstance&&(this.autoReLoopSwiper(),null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.update)||void 0===e||e.call(t),null===(r=null===(n=this.swiperInstance.navigation)||void 0===n?void 0:n.update)||void 0===r||r.call(n),null===(c=null===(o=this.swiperInstance.pagination)||void 0===o?void 0:o.render)||void 0===c||c.call(o),null===(d=null===(h=this.swiperInstance.pagination)||void 0===h?void 0:h.update)||void 0===d||d.call(h))},destroySwiper:function(){var t,e;this[l.AutoDestroy]&&this.swiperInstance&&this.swiperInstance.initialized&&(null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.destroy)||void 0===e||e.call(t,this[l.DeleteInstanceOnDestroy],this[l.CleanupStylesOnDestroy]))},initSwiper:function(){this.swiperInstance=new t(this.$el,this.swiperOptions),y(this.swiperInstance,this.$emit.bind(this)),this.$emit(o.Ready,this.swiperInstance)}},mounted:function(){this.swiperInstance||this.initSwiper()},activated:function(){this.updateSwiper()},updated:function(){this.updateSwiper()},beforeDestroy:function(){this.$nextTick(this.destroySwiper)},render:function(t){return t("div",{staticClass:c.containerClass,on:{click:this.handleSwiperClick}},[this.$slots[f.ParallaxBg],t("div",{class:this.wrapperClass},this.$slots.default),this.$slots[f.Pagination],this.$slots[f.PrevButton],this.$slots[f.NextButton],this.$slots[f.Scrollbar]])}})}!function(t){t.ParallaxBg="parallax-bg",t.Pagination="pagination",t.Scrollbar="scrollbar",t.PrevButton="button-prev",t.NextButton="button-next"}(f||(f={}));var S=n.extend({name:r.SwiperSlideComponent,computed:{slideClass:function(){var t,e;return(null===(e=null===(t=this.$parent)||void 0===t?void 0:t.swiperOptions)||void 0===e?void 0:e.slideClass)||c.slideClass}},methods:{update:function(){var t,e=this.$parent;e[l.AutoUpdate]&&(null===(t=null==e?void 0:e.swiperInstance)||void 0===t||t.update(
2))}},mounted:function(){this.update()},updated:function(){this.update()},render:function(t){return t("div",{class:this.slideClass},this.$slots.default)}}),C=function(t){var e=function(n,o){if(!e.installed){var l=x(t);o&&(l.options.props.defaultOptions.default=function(){return o}),n.component(r.SwiperComponent,l),n.component(r.SwiperSlideComponent,S),n.directive(r.SwiperDirective,w(t,o)),e.installed=!0}};return e};function T(t){var e;return(e={version:"4.1.1",install:C(t),directive:w(t)})[r.SwiperComponent]=x(t),e[r.SwiperSlideComponent]=S,e}var M=T(e),P=M.version,E=M.install,O=M.directive,k=M.Swiper,A=M.SwiperSlide;t.Swiper=k,t.SwiperSlide=A,t.default=M,t.directive=O,t.install=E,t.version=P,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(528),n(2))},123:function(t,e,n){"use strict";var r=n(4),o=n(119),l=n(42);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){Object(r.a)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var d={name:"NuxtImg",mixins:[o.a],props:{placeholder:{type:[Boolean,String,Number,Array],default:void 0}},head(){return!0===this.preload?{link:[h({rel:"preload",as:"image"},Object.values(this.nSizes).every(t=>t)?{href:this.nSizes.src,imagesizes:this.nSizes.sizes,imagesrcset:this.nSizes.srcset}:{href:this.nSrc})]}:{}},computed:{nAttrs(){var t=this.nImgAttrs;if(this.sizes){var{sizes:e,srcset:n}=this.nSizes;t.sizes=e,t.srcset=n}return t},nMainSrc(){return this.sizes?this.nSizes.src:this.$img(this.src,this.nModifiers,this.nOptions)},nSizes(){return this.$img.getSizes(this.src,h(h({},this.nOptions),{},{sizes:this.sizes,modifiers:h(h({},this.nModifiers),{},{width:Object(l.c)(this.width),height:Object(l.c)(this.height)})}))},nSrc(){return this.nPlaceholder?this.nPlaceholder:this.nMainSrc},nPlaceholder(){var t=this.placeholder;if(""===t&&(t=!0),!t||this.placeholderLoaded)return!1;if("string"==typeof t)return t;var e=Array.isArray(t)?t:"number"==typeof t?[t,t]:[10,10];return this.$img(this.src,h(h({},this.nModifiers),{},{width:e[0],height:e[1],quality:e[2]||50}),this.nOptions)}},mounted(){if(this.nPlaceholder){var img=new Image;img.src=this.nMainSrc,img.onload=()=>{this.$refs.img.src=this.nMainSrc,this.placeholderLoaded=!0}}}},f=n(1),component=Object(f.a)(d,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("img",t._g(t._b({key:t.nSrc,ref:"img",attrs:{src:t.nSrc}},"img",t.nAttrs,!1),t.$listeners))},[],!1,null,null,null);e.a=component.exports},124:function(t,e,n){"use strict";var r=n(4);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){Object(r.a)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}n(64);var c=n(119),h=n(42);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach(function(e){Object(r.a)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var m={name:"NuxtPicture",mixins:[c.a],props:{legacyFormat:{type:String,default:null},imgAttrs:{type:Object,default:null}},head(){if(!0===this.preload){var t=void 0!==this.nSources[1]?1:0,link={rel:"preload",as:"image",imagesrcset:this.nSources[t].srcset};return void 0!==this.nSources[t].sizes&&(link.imagesizes=this.nSources[t].sizes),{link:[link]}}return{}}
2,computed:{isTransparent(){return["png","webp","gif"].includes(this.originalFormat)},originalFormat(){return Object(h.b)(this.src)},nFormat(){return this.format?this.format:"svg"===this.originalFormat?"svg":"webp"},nLegacyFormat(){return this.legacyFormat?this.legacyFormat:{webp:this.isTransparent?"png":"jpeg",svg:"png"}[this.nFormat]||this.originalFormat},nSources(){return"svg"===this.nFormat?[{srcset:this.src}]:(this.nLegacyFormat!==this.nFormat?[this.nLegacyFormat,this.nFormat]:[this.nFormat]).map(t=>{var{srcset:e,sizes:n,src:r}=this.$img.getSizes(this.src,f(f({},this.nOptions),{},{sizes:this.sizes||this.$img.options.screens,modifiers:f(f({},this.nModifiers),{},{format:t})}));return{src:r,type:"image/".concat(t),sizes:n,srcset:e}})}},created(){0}},v=n(1),component=Object(v.a)(m,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("picture",{key:t.nSources[0].src},[t.nSources[1]?e("source",{attrs:{type:t.nSources[1].type,srcset:t.nSources[1].srcset,sizes:t.nSources[1].sizes}}):t._e(),t._v(" "),e("img",t._g(t._b({attrs:{src:t.nSources[0].src,srcset:t.nSources[0].srcset,sizes:t.nSources[0].sizes}},"img",l(l({},t.nImgAttrs),t.imgAttrs),!1),t.$listeners))])},[],!1,null,null,null);e.a=component.exports},149:function(t,e,n){const{Slot:r,Tab:o,None:l}=n(110),{orthogonalMap:c}=n(112);function h(t){return"S"===t?r:"T"===t?o:l}function d(t){if(4!==t.length)throw new Error("structure string must be 4-chars long");return{right:h(t[0]),down:h(t[1]),left:h(t[2]),up:h(t[3])}}t.exports={serialize:function(t){return c([t.right,t.down,t.left,t.up],t=>t.serialize(),l).join("")},deserialize:d,asStructure:function(t){return"string"==typeof t?d(t):t}}},150:function(t,e,n){const r=n(51);t.exports={radius:function(t){const e=r.cast(t);return{radius:e,diameter:r.multiply(e,2)}},diameter:function(t){const e=r.cast(t);return{radius:r.multiply(e,.5),diameter:e}}}},151:function(t,e,n){const{Anchor:r}=n(74);function o(t){return Math.round(Math.random()*(t.length-1))}t.exports={random:function(t,e){return n=>n.map(n=>r.atRandom(t,e))},grid:t=>{const e=t.map(t=>t.centralAnchor.asVector());for(let i=0;i<e.length;i++){const t=o(e),n=e[t];e[t]=e[i],e[i]=n}return e},columns:t=>{const e=t.map(t=>t.centralAnchor.asVector()),n=new Map;for(let t of e){n.get(t.x)||n.set(t.x,e.filter(e=>e.x==t.x));const r=n.get(t.x),l=o(r),c=r[l].y;r[l].y=t.y,t.y=c}return e},line:t=>{const e=t.map(t=>t.centralAnchor.asVector()),n=new Set(e.map(t=>t.x)),r=Math.max(...n),l=Math.min(...n),c=(r-l)/(n.size-1),h=l+c/2,d=e.length*c,f=e.filter(t=>t.x<h).length*c,m=[],v=[];for(let i=0;i<f;i+=c)m.push(i);for(let i=m[m.length-1]+c;i<d;i+=c)v.push(i);for(let t of e){const source=t.x<h?m:v,e=o(source);t.y=0,t.x=source[e],source.splice(e,1)}return e},noop:t=>t.map(t=>t.centralAnchor),padder:function(t,e,n){return r=>{const o=r.map(t=>t.centralAnchor.asVector());let l=0,c=0;for(let r=0;r<n;r++){for(let i=0;i<e;i++){const n=o[i+e*r];n.x+=l,n.y+=c,l+=t}l=0,c+=t}return o}},noise:function(t){return e=>e.map(e=>r.atRandom(2*t.x,2*t.y).translate(-t.x,-t.y).translate(e.centralAnchor.x,e.centralAnchor.y).asVector())}}},152:function(t,e,n){const{Tab:r,Slot:o,None:l}=n(110);t.exports={InsertSequence:class{constructor(t){this.generator=t,this.n=0,this._previous,this._current=l}previousComplement(){return this._previous.complement()}current(t){return this.n==t?l:this._current}next(){return this._previous=this._current,this._current=this.generator(this.n++),this._current}},fixed:function(t){return r},flipflop:function(t){return t%2==0?r:o},twoAndTwo:function(t){return t%4<2?r:o},random:function(t){return Math.random()<.5?r:o}}},153:function(t,e){t.exports={copy:function(t){return JSON.parse(JSON.stringify(t))}}},154:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});
2Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(75),h=n(9),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._validateAdd=function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&l.Util.throw("You may only add groups and shapes to groups.")},e}(c.Container);e.Group=d,d.prototype.nodeType="Group",h._registerNode(d),l.Collection.mapMethods(d)},155:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),o=r.glob.performance&&r.glob.performance.now?function(){return r.glob.performance.now()}:function(){return(new Date).getTime()},l=function(){function t(e,n){this.id=t.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:o(),frameRate:0},this.func=e,this.setLayers(n)}return t.prototype.setLayers=function(t){var e=[];return e=t?t.length>0?t:[t]:[],this.layers=e,this},t.prototype.getLayers=function(){return this.layers},t.prototype.addLayer=function(t){var e,n=this.layers,r=n.length;for(e=0;e<r;e++)if(n[e]._id===t._id)return!1;return this.layers.push(t),!0},t.prototype.isRunning=function(){var e,n=t.animations,r=n.length;for(e=0;e<r;e++)if(n[e].id===this.id)return!0;return!1},t.prototype.start=function(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=o(),t._addAnimation(this),this},t.prototype.stop=function(){return t._removeAnimation(this),this},t.prototype._updateFrameObject=function(time){this.frame.timeDiff=time-this.frame.lastTime,this.frame.lastTime=time,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff},t._addAnimation=function(t){this.animations.push(t),this._handleAnimation()},t._removeAnimation=function(t){var e,n=t.id,r=this.animations,o=r.length;for(e=0;e<o;e++)if(r[e].id===n){this.animations.splice(e,1);break}},t._runFrames=function(){var t,e,n,r,i,l,c,h,d={},f=this.animations;for(r=0;r<f.length;r++)if(e=(t=f[r]).layers,n=t.func,t._updateFrameObject(o()),l=e.length,!n||!1!==n.call(t,t.frame))for(i=0;i<l;i++)void 0!==(c=e[i])._id&&(d[c._id]=c);for(h in d)d.hasOwnProperty(h)&&d[h].draw()},t._animationLoop=function(){var e=t;e.animations.length?(e._runFrames(),requestAnimationFrame(e._animationLoop)):e.animRunning=!1},t._handleAnimation=function(){this.animRunning||(this.animRunning=!0,requestAnimationFrame(this._animationLoop))},t.animations=[],t.animIdCounter=0,t.animRunning=!1,t}();e.Animation=l},156:function(t,e,n){!function(t){"use strict";function e(t,e,n){var r=" ";return(t%100>=20||t>=100&&t%100==0)&&(r=" de "),t+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,w:"o săptămână",ww:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(n(77))},160:function(t,e,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",function(){n.$forceUpdate()}),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||h):c.length>0?c.map(function(){return t(!1)}):t(!1))}};t.exports=r},162:function(t,e,n){const r=n(56),{anchor:o,Anchor:l}=n(74),c=n(109),h=n(46),{Tab:d,Slot:f,None:m}=n(110),{NullValidator:v,PieceValidator:y,PuzzleValidator:_}=n(113),{Horizontal:w,Vertical:x}=n(260),S=n(149),C=n(114),T=n(115),M=n(261),{InsertSequence:P,...E}=n(152),O=n(153),k=n(262),{vector:A,...D}=n(51),{radius:I,diameter:z}=n(150),F=n(151),R=n(114),N=n(259),L=n(111);t.exports={anchor:o,vector:A,radius:I,diameter:z,Anchor:l,Puzzle:c,Piece:h,Canvas:T,Manufacturer:M,InsertSequence:P,PieceValidator:y,PuzzleValidator:_,NullValidator:v,Horizontal:w,Vertical:x,Tab:d,Slot:f,None:m,Pair:r,Metadata:O,SpatialMetadata:k,Outline:C,Structure:S,Vector:D,Shuffler:F,generators:E,outline:R,dragMode:N,connector:L,painters:{Dummy:n(438),Konva:n(439)}}},21:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(7),l=n(86),c=n(9),h=n(116),d=n(11);e.ids={},e.names={};e._removeId=function(t,n){t&&e.ids[t]===n&&delete e.ids[t]},e._addName=function(t,n){n&&(e.names[n]||(e.names[n]=[]),e.names[n].push(t))},e._removeName=function(t,n){if(t){var r=e.names[t];if(r){for(var o=0;o<r.length;o++){r[o]._id===n&&r.splice(o,1)}0===r.length&&delete e.names[t]}}};var f="absoluteOpacity",m="absoluteTransform",v="absoluteScale",y="canvas",_="listening",w="mouseenter",x="mouseleave",S="Shape",C=" ",T="stage",M="transform",P="visible",E=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(C),O=(["scaleXChange.konva","scaleYChange.konva"].join(C),new r.Collection),k=1,A=function(){function t(t){var e=this;this._id=k++,this.eventListeners={},this.attrs={},this.index=0,this.parent=null,this._cache=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this.children=O,this._dragEventId=null,this.setAttrs(t),this.on(E,function(){e._batchingTransformChange?e._needClearTransformCache=!0:(e._clearCache(M),e._clearSelfAndDescendantCache(m))}),this.on("visibleChange.konva",function(){e._clearSelfAndDescendantCache(P)}),this.on("listeningChange.konva",function(){e._clearSelfAndDescendantCache(_)}),this.on("opacityChange.konva",function(){e._clearSelfAndDescendantCache(f)})}return t.prototype.hasChildren=function(){return!1},t.prototype.getChildren=function(){return O},t.prototype._clearCache=function(t){t?this._cache.delete(t):this._cache.clear()},t.prototype._getCache=function(t,e){var n=this._cache.get(t);return void 0===n&&(n=e.call(this),this._cache.set(t,n)),n},t.prototype._getCanvasCache=function(){return this._cache.get(y)},t.prototype._clearSelfAndDescendantCache=function(t,e){this._clearCache(t),e&&t===m&&this.fire("_clearTransformCache"),this.isCached()||this.children&&this.children.each(function(e){e._clearSelfAndDescendantCache(t,!0)})},t.prototype.clearCache=function(){return this._cache.delete(y),this._clearSelfAndDescendantCache(),this},t.prototype.cache=function(t){var e=t||{},rect={};void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height||(rect=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var n=Math.ceil(e.width||rect.width),o=Math.ceil(e.height||rect.height),c=e.pixelRatio,h=void 0===e.x?rect.x:e.x,d=void 0===e.y?rect.y:e.y,m=e.offset||0,_=e.drawBorder||!1;if(n&&o){n+=2*m,o+=2*m,h-=m,d-=m;var w=new l.SceneCanvas({pixelRatio:c,width:n,height:o}),x=new l.SceneCanvas({pixelRatio:c,width:0,height:0}),S=new l.HitCanvas({pixelRatio:1,width:n,height:o}),C=w.getContext(),T=S.getContext();return S.isCache=!0,this._cache.delete("canvas"),this._filterUpToDate=!1,!1===e.imageSmoothingEnabled&&(w.getContext()._context.imageSmoothingEnabled=!1,x.getContext()._context.imageSmoothingEnabled=!1),C.save(),T.save(),C.translate(-h,-d),T.translate(-h,-d),this._isUnderCache=!0,this._clearSelfAndDescendantCache(f),this._clearSelfAndDescendantCache(v),this.drawScene(w,this,!0),this.drawHit(S,this,!0),this._isUnderCache=!1,C.restore(),T.restore(),_&&(C.save(),C.beginPath(),C.rect(0,0,n,o),C.closePath(),C.setAttr("strokeStyle","red"),C.setAttr("lineWidth",5),C.stroke(),C.restore()),this._cache.set(y,{scene:w,filter:x,hit:S,x:h,y:d}),this}r.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.")},t.prototype.isCached=function(){return this._cache.has("canvas")},t.prototype.getClientRect=function(t){throw new Error('abstract "getClientRect" method call')},t.prototype._transformedRect=function(rect,t){var e,n,r,o,l=[{x:rect.x,y:rect.y},{x:rect.x+rect.width,y:rect.y},{x:rect.x+rect.width,y:rect.y+rect.height},{x:rect.x,y:rect.y+rect.height}],c=this.getAbsoluteTransform(t);return l.forEach(function(t){var l=c.point(t);void 0===e&&(e=r=l.x,n=o=l.y),e=Math.min(e,l.x),n=Math.min(n,l.y),r=Math.max(r,l.x),o=Math.max(o,l.y)}),{x:e,y:n,width:r-e,height:o-n}},t.prototype._drawCachedSceneCanvas=function(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);var e=this._getCanvasCache();t.translate(e.x,e.y);var n=this._getCachedSceneCanvas(),r=n.pixelRatio;
2t.drawImage(n._canvas,0,0,n.width/r,n.height/r),t.restore()},t.prototype._drawCachedHitCanvas=function(t){var e=this._getCanvasCache(),n=e.hit;t.save(),t.translate(e.x,e.y),t.drawImage(n._canvas,0,0),t.restore()},t.prototype._getCachedSceneCanvas=function(){var t,e,n,filter,o=this.filters(),l=this._getCanvasCache(),c=l.scene,h=l.filter,d=h.getContext();if(o){if(!this._filterUpToDate){var f=c.pixelRatio;h.setSize(c.width/c.pixelRatio,c.height/c.pixelRatio);try{for(t=o.length,d.clear(),d.drawImage(c._canvas,0,0,c.getWidth()/f,c.getHeight()/f),e=d.getImageData(0,0,h.getWidth(),h.getHeight()),n=0;n<t;n++)"function"==typeof(filter=o[n])?(filter.call(this,e),d.putImageData(e,0,0)):r.Util.error("Filter should be type of function, but got "+typeof filter+" instead. Please check correct filters")}catch(t){r.Util.error("Unable to apply filter. "+t.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return h}return c},t.prototype.on=function(t,e){if(3===arguments.length)return this._delegate.apply(this,arguments);var n,r,o,l,c=t.split(C),h=c.length;for(n=0;n<h;n++)o=(r=c[n].split("."))[0],l=r[1]||"",this.eventListeners[o]||(this.eventListeners[o]=[]),this.eventListeners[o].push({name:l,handler:e});return this},t.prototype.off=function(t,e){var n,r,o,l,c,h=(t||"").split(C),d=h.length;if(!t)for(r in this.eventListeners)this._off(r);for(n=0;n<d;n++)if(l=(o=h[n].split("."))[0],c=o[1],l)this.eventListeners[l]&&this._off(l,c,e);else for(r in this.eventListeners)this._off(r,c,e);return this},t.prototype.dispatchEvent=function(t){var e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this},t.prototype.addEventListener=function(t,e){return this.on(t,function(t){e.call(this,t.evt)}),this},t.prototype.removeEventListener=function(t){return this.off(t),this},t.prototype._delegate=function(t,e,n){var o=this;this.on(t,function(t){for(var l=t.target.findAncestors(e,!0,o),i=0;i<l.length;i++)(t=r.Util.cloneObject(t)).currentTarget=l[i],n.call(l[i],t)})},t.prototype.remove=function(){return this.isDragging()&&this.stopDrag(
2),h.DD._dragElements.delete(this._id),this._remove(),this},t.prototype._clearCaches=function(){this._clearSelfAndDescendantCache(m),this._clearSelfAndDescendantCache(f),this._clearSelfAndDescendantCache(v),this._clearSelfAndDescendantCache(T),this._clearSelfAndDescendantCache(P),this._clearSelfAndDescendantCache(_)},t.prototype._remove=function(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)},t.prototype.destroy=function(){e._removeId(this.id(),this);for(var t=(this.name()||"").split(/\s/g),i=0;i<t.length;i++){var n=t[i];e._removeName(n,this._id)}return this.remove(),this},t.prototype.getAttr=function(t){var e="get"+r.Util._capitalize(t);return r.Util._isFunction(this[e])?this[e]():this.attrs[t]},t.prototype.getAncestors=function(){for(var t=this.getParent(),e=new r.Collection;t;)e.push(t),t=t.getParent();return e},t.prototype.getAttrs=function(){return this.attrs||{}},t.prototype.setAttrs=function(t){var e,n;if(!t)return this;for(e in t)"children"!==e&&(n="set"+r.Util._capitalize(e),r.Util._isFunction(this[n])?this[n](t[e]):this._setAttr(e,t[e]));return this},t.prototype.isListening=function(){return this._getCache(_,this._isListening)},t.prototype._isListening=function(){var t=this.listening(),e=this.getParent();return"inherit"===t?!e||e.isListening():t},t.prototype.isVisible=function(){return this._getCache(P,this._isVisible)},t.prototype._isVisible=function(t){var e=this.visible(),n=this.getParent();return"inherit"===e?!n||n===t||n._isVisible(t):t&&t!==n?e&&n._isVisible(t):e},t.prototype.shouldDrawHit=function(){var t=this.getLayer();return!t&&this.isListening()&&this.isVisible()||t&&t.hitGraphEnabled()&&this.isListening()&&this.isVisible()},t.prototype.show=function(){return this.visible(!0),this},t.prototype.hide=function(){return this.visible(!1),this},t.prototype.getZIndex=function(){return this.index||0},t.prototype.getAbsoluteZIndex=function(){var t,e,n,r,o=this.getDepth(),l=this,c=0;return"Stage"!==l.nodeType&&function h(d){for(t=[],e=d.length,n=0;n<e;n++)r=d[n],c++,r.nodeType!==S&&(t=t.concat(r.getChildren().toArray())),r._id===l._id&&(n=e);t.length>0&&t[0].getDepth()<=o&&h(t)}(l.getStage().getChildren()),c},t.prototype.getDepth=function(){for(var t=0,e=this.parent;e;)t++,e=e.parent;return t},t.prototype._batchTransformChanges=function(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(M),this._clearSelfAndDescendantCache(m,!0)),this._needClearTransformCache=!1},t.prototype.setPosition=function(t){var e=this;return this._batchTransformChanges(function(){e.x(t.x),e.y(t.y)}),this},t.prototype.getPosition=function(){return{x:this.x(),y:this.y()}},t.prototype.getAbsolutePosition=function(t){for(var e=!1,n=this.parent;n;){if(n.isCached()){e=!0;break}n=n.parent}e&&!t&&(t=!0);var o=this.getAbsoluteTransform(t).getMatrix(),l=new r.Transform,c=this.offset();return l.m=o.slice(),l.translate(c.x,c.y),l.getTranslation()},t.prototype.setAbsolutePosition=function(t){var e,n=this._clearTransform();return this.attrs.x=n.x,this.attrs.y=n.y,delete n.x,delete n.y,this._clearCache(M),(e=this._getAbsoluteTransform()).invert(),e.translate(t.x,t.y),t={x:this.attrs.x+e.getTranslation().x,y:this.attrs.y+e.getTranslation().y},this._setTransform(n),this.setPosition({x:t.x,y:t.y}),this},t.prototype._setTransform=function(t){var e;for(e in t)this.attrs[e]=t[e]},t.prototype._clearTransform=function(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t},t.prototype.move=function(t){var e=t.x,n=t.y,r=this.x(),o=this.y();return void 0!==e&&(r+=e),void 0!==n&&(o+=n),this.setPosition({x:r,y:o}),this},t.prototype._eachAncestorReverse=function(t,e){var n,r,o=[],l=this.getParent();if(e&&e._id===this._id)t(this);else{for(o.unshift(this);l&&(!e||l._id!==e._id);)o.unshift(l),l=l.parent;for(n=o.length,r=0;r<n;r++)t(o[r])}},t.prototype.rotate=function(t){return this.rotation(this.rotation()+t),this},t.prototype.moveToTop=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index;return this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0},t.prototype.moveUp=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index;return t<this.parent.getChildren().length-1&&(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0)},t.prototype.moveDown=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0)},t.prototype.moveToBottom=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)},t.prototype.setZIndex=function(t){if(!this.parent)return r.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&r.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var e=this.index;return this.parent.children.splice(e,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this},t.prototype.getAbsoluteOpacity=function(){return this._getCache(f,this._getAbsoluteOpacity)},t.prototype._getAbsoluteOpacity=function(){var t=this.opacity(),e=this.getParent();return e&&!e._isUnderCache&&(t*=e.getAbsoluteOpacity()),t},t.prototype.moveTo=function(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this},t.prototype.toObject=function(){var t,e,n,o,l={},c=this.getAttrs();for(t in l.attrs={},c)e=c[t],r.Util.isObject(e)&&!r.Util._isPlainObject(e)&&!r.Util._isArray(e)||(n="function"==typeof this[t]&&this[t],delete c[t],o=n?n.call(this):null,c[t]=e,o!==e&&(l.attrs[t]=e));return l.className=this.getClassName(),r.Util._prepareToStringify(l)},t.prototype.toJSON=function(){return JSON.stringify(this.toObject())},t.prototype.getParent=function(){return this.parent}
2,t.prototype.findAncestors=function(t,e,n){var r=[];e&&this._isMatch(t)&&r.push(this);for(var o=this.parent;o;){if(o===n)return r;o._isMatch(t)&&r.push(o),o=o.parent}return r},t.prototype.isAncestorOf=function(t){return!1},t.prototype.findAncestor=function(t,e,n){return this.findAncestors(t,e,n)[0]},t.prototype._isMatch=function(t){if(!t)return!1;if("function"==typeof t)return t(this);var e,n,o=t.replace(/ /g,"").split(","),l=o.length;for(e=0;e<l;e++)if(n=o[e],r.Util.isValidSelector(n)||(r.Util.warn('Selector "'+n+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),r.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),r.Util.warn("Konva is awesome, right?")),"#"===n.charAt(0)){if(this.id()===n.slice(1))return!0}else if("."===n.charAt(0)){if(this.hasName(n.slice(1)))return!0}else if(this.className===n||this.nodeType===n)return!0;return!1},t.prototype.getLayer=function(){var t=this.getParent();return t?t.getLayer():null},t.prototype.getStage=function(){return this._getCache(T,this._getStage)},t.prototype._getStage=function(){var t=this.getParent();return t?t.getStage():void 0},t.prototype.fire=function(t,e,n){return void 0===e&&(e={}),e.target=e.target||this,n?this._fireAndBubble(t,e):this._fire(t,e),this},t.prototype.getAbsoluteTransform=function(t){return t?this._getAbsoluteTransform(t):this._getCache(m,this._getAbsoluteTransform)},t.prototype._getAbsoluteTransform=function(t){var e;if(t)return e=new r.Transform,this._eachAncestorReverse(function(t){var n=t.transformsEnabled();"all"===n?e.multiply(t.getTransform()):"position"===n&&e.translate(t.x()-t.offsetX(),t.y()-t.offsetY())},t),e;e=this.parent?this.parent.getAbsoluteTransform().copy():new r.Transform;var n=this.transformsEnabled();return"all"===n?e.multiply(this.getTransform()):"position"===n&&e.translate(this.x()-this.offsetX(),this.y()-this.offsetY()),e},t.prototype.getAbsoluteScale=function(t){for(var e=this;e;)e._isUnderCache&&(t=e),e=e.getParent();var n=this.getAbsoluteTransform(t).decompose();return{x:n.scaleX,y:n.scaleY}},t.prototype.getAbsoluteRotation=function(){return this.getAbsoluteTransform().decompose().rotation},t.prototype.getTransform=function(){return this._getCache(M,this._getTransform)},t.prototype._getTransform=function(){var t=new r.Transform,e=this.x(),n=this.y(),o=c.Konva.getAngle(this.rotation()),l=this.scaleX(),h=this.scaleY(),d=this.skewX(),f=this.skewY(),m=this.offsetX(),v=this.offsetY();return 0===e&&0===n||t.translate(e,n),0!==o&&t.rotate(o),0===d&&0===f||t.skew(d,f),1===l&&1===h||t.scale(l,h),0===m&&0===v||t.translate(-1*m,-1*v),t},t.prototype.clone=function(t){var e,n,o,l,c,h=r.Util.cloneObject(this.attrs);for(e in t)h[e]=t[e];var d=new this.constructor(h);for(e in this.eventListeners)for(o=(n=this.eventListeners[e]).length,l=0;l<o;l++)(c=n[l]).name.indexOf("konva")<0&&(d.eventListeners[e]||(d.eventListeners[e]=[]),d.eventListeners[e].push(c));return d},t.prototype._toKonvaCanvas=function(t){t=t||{};var e=this.getClientRect(),n=this.getStage(),r=void 0!==t.x?t.x:e.x,o=void 0!==t.y?t.y:e.y,c=t.pixelRatio||1,canvas=new l.SceneCanvas({width:t.width||e.width||(n?n.width():0),height:t.height||e.height||(n?n.height():0),pixelRatio:c}),h=canvas.getContext();return h.save(),(r||o)&&h.translate(-1*r,-1*o),this.drawScene(canvas),h.restore(),canvas},t.prototype.toCanvas=function(t){return this._toKonvaCanvas(t)._canvas},t.prototype.toDataURL=function(t){var e=(t=t||{}).mimeType||null,n=t.quality||null,r=this._toKonvaCanvas(t).toDataURL(e,n);return t.callback&&t.callback(r),r},t.prototype.toImage=function(t){if(!t||!t.callback)throw"callback required for toImage method config argument";var e=t.callback;delete t.callback,r.Util._urlToImage(this.toDataURL(t),function(img){e(img)})},t.prototype.setSize=function(t){return this.width(t.width),this.height(t.height),this},t.prototype.getSize=function(){return{width:this.width(),height:this.height()}},t.prototype.getClassName=function(){return this.className||this.nodeType},t.prototype.getType=function(){return this.nodeType},t.prototype.getDragDistance=function(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():c.Konva.dragDistance},t.prototype._off=function(t,e,n){var i,r,o,l=this.eventListeners[t];for(i=0;i<l.length;i++)if(r=l[i].name,o=l[i].handler,!("konva"===r&&"konva"!==e||e&&r!==e||n&&n!==o)){if(l.splice(i,1),0===l.length){delete this.eventListeners[t];break}i--}},t.prototype._fireChangeEvent=function(t,e,n){this._fire(t+"Change",{oldVal:e,newVal:n})},t.prototype.setId=function(t){var n=this.id();return e._removeId(n,this),function(t,n){n&&(e.ids[n]=t)}(this,t),this._setAttr("id",t),this},t.prototype.setName=function(t){var n,i,r=(this.name()||"").split(/\s/g),o=(t||"").split(/\s/g);for(i=0;i<r.length;i++)n=r[i],-1===o.indexOf(n)&&n&&e._removeName(n,this._id);for(i=0;i<o.length;i++)n=o[i],-1===r.indexOf(n)&&n&&e._addName(this,n);return this._setAttr("name",t),this},t.prototype.addName=function(t){if(!this.hasName(t)){var e=this.name(),n=e?e+" "+t:t;this.setName(n)}return this},t.prototype.hasName=function(t){if(!t)return!1;var e=this.name();return!!e&&-1!==(e||"").split(/\s/g).indexOf(t)},t.prototype.removeName=function(t){var e=(this.name()||"").split(/\s/g),n=e.indexOf(t);return-1!==n&&(e.splice(n,1),this.setName(e.join(" "))),this}
2,t.prototype.setAttr=function(t,e){var n=this["set"+r.Util._capitalize(t)];return r.Util._isFunction(n)?n.call(this,e):this._setAttr(t,e),this},t.prototype._setAttr=function(t,e){var n=this.attrs[t];(n!==e||r.Util.isObject(e))&&(null==e?delete this.attrs[t]:this.attrs[t]=e,this._fireChangeEvent(t,n,e))},t.prototype._setComponentAttr=function(t,component,e){var n;void 0!==e&&((n=this.attrs[t])||(this.attrs[t]=this.getAttr(t)),this.attrs[t][component]=e,this._fireChangeEvent(t,n,e))},t.prototype._fireAndBubble=function(t,e,n){if(e&&this.nodeType===S&&(e.target=this),!((t===w||t===x)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||"Stage"===this.nodeType&&!n))){this._fire(t,e);var r=(t===w||t===x)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(e&&!e.cancelBubble||!e)&&this.parent&&this.parent.isListening()&&!r&&(n&&n.parent?this._fireAndBubble.call(this.parent,t,e,n):this._fireAndBubble.call(this.parent,t,e))}},t.prototype._fire=function(t,e){var i,n=this.eventListeners[t];if(n)for((e=e||{}).currentTarget=this,e.type=t,i=0;i<n.length;i++)n[i].handler.call(this,e)},t.prototype.draw=function(){return this.drawScene(),this.drawHit(),this},t.prototype._createDragElement=function(t){var e=t?t.pointerId:void 0,n=this.getStage(),r=this.getAbsolutePosition(),o=n._getPointerById(e)||n._changedPointerPositions[0]||r;h.DD._dragElements.set(this._id,{node:this,startPointerPos:o,offset:{x:o.x-r.x,y:o.y-r.y},dragStatus:"ready",pointerId:e})},t.prototype.startDrag=function(t){h.DD._dragElements.has(this._id)||this._createDragElement(t),h.DD._dragElements.get(this._id).dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},!0)},t.prototype._setDragPosition=function(t,e){var n=this.getStage()._getPointerById(e.pointerId);if(n){var o={x:n.x-e.offset.x,y:n.y-e.offset.y},l=this.dragBoundFunc();if(void 0!==l){var c=l.call(this,o,t);c?o=c:r.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}this._lastPos&&this._lastPos.x===o.x&&this._lastPos.y===o.y||(this.setAbsolutePosition(o),this.getLayer()?this.getLayer().batchDraw():this.getStage()&&this.getStage().batchDraw()),this._lastPos=o}},t.prototype.stopDrag=function(t){var e=h.DD._dragElements.get(this._id);e&&(e.dragStatus="stopped"),h.DD._endDragBefore(t),h.DD._endDragAfter(t)},t.prototype.setDraggable=function(t){this._setAttr("draggable",t),this._dragChange()},t.prototype.isDragging=function(){var t=h.DD._dragElements.get(this._id);return!!t&&"dragging"===t.dragStatus},t.prototype._listenDrag=function(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){var e=this;if((!(void 0!==t.evt.button)||c.Konva.dragButtons.indexOf(t.evt.button)>=0)&&!this.isDragging()){var n=!1;h.DD._dragElements.forEach(function(t){e.isAncestorOf(t.node)&&(n=!0)}),n||this._createDragElement(t)}})},t.prototype._dragChange=function(){this.attrs.draggable?this._listenDrag():(this._dragCleanup(),this.get
2Stage()&&h.DD._dragElements.has(this._id)&&this.stopDrag())},t.prototype._dragCleanup=function(){this.off("mousedown.konva"),this.off("touchstart.konva")},t.create=function(data,t){return r.Util._isString(data)&&(data=JSON.parse(data)),this._createNode(data,t)},t._createNode=function(e,n){var o,l,h,d=t.prototype.getClassName.call(e),f=e.children;if(n&&(e.attrs.container=n),c._NODES_REGISTRY[d]||(r.Util.warn('Can not find a node with class name "'+d+'". Fallback to "Shape".'),d="Shape"),o=new(0,c._NODES_REGISTRY[d])(e.attrs),f)for(l=f.length,h=0;h<l;h++)o.add(t._createNode(f[h]));return o},t}();e.Node=A,A.prototype.nodeType="Node",A.prototype._attrsAffectingSize=[],o.Factory.addGetterSetter(A,"zIndex"),o.Factory.addGetterSetter(A,"absolutePosition"),o.Factory.addGetterSetter(A,"position"),o.Factory.addGetterSetter(A,"x",0,d.getNumberValidator()),o.Factory.addGetterSetter(A,"y",0,d.getNumberValidator()),o.Factory.addGetterSetter(A,"globalCompositeOperation","source-over",d.getStringValidator()),o.Factory.addGetterSetter(A,"opacity",1,d.getNumberValidator()),o.Factory.addGetterSetter(A,"name","",d.getStringValidator()),o.Factory.addGetterSetter(A,"id","",d.getStringValidator()),o.Factory.addGetterSetter(A,"rotation",0,d.getNumberValidator()),o.Factory.addComponentsGetterSetter(A,"scale",["x","y"]),o.Factory.addGetterSetter(A,"scaleX",1,d.getNumberValidator()),o.Factory.addGetterSetter(A,"scaleY",1,d.getNumberValidator()),o.Factory.addComponentsGetterSetter(A,"skew",["x","y"]),o.Factory.addGetterSetter(A,"skewX",0,d.getNumberValidator()),o.Factory.addGetterSetter(A,"skewY",0,d.getNumberValidator()),o.Factory.addComponentsGetterSetter(A,"offset",["x","y"]),o.Factory.addGetterSetter(A,"offsetX",0,d.getNumberValidator()),o.Factory.addGetterSetter(A,"offsetY",0,d.getNumberValidator()),o.Factory.addGetterSetter(A,"dragDistance",null,d.getNumberValidator()),o.Factory.addGetterSetter(A,"width",0,d.getNumberValidator()),o.Factory.addGetterSetter(A,"height",0,d.getNumberValidator()),o.Factory.addGetterSetter(A,"listening","inherit",function(t){return!0===t||!1===t||"inherit"===t||r.Util.warn(t+' is a not val
2id value for "listening" attribute. The value may be true, false or "inherit".'),t}),o.Factory.addGetterSetter(A,"preventDefault",!0,d.getBooleanValidator()),o.Factory.addGetterSetter(A,"filters",null,function(t){return this._filterUpToDate=!1,t}),o.Factory.addGetterSetter(A,"visible","inherit",function(t){return!0===t||!1===t||"inherit"===t||r.Util.warn(t+' is a not valid value for "visible" attribute. The value may be true, false or "inherit".'),t}),o.Factory.addGetterSetter(A,"transformsEnabled","all",d.getStringValidator()),o.Factory.addGetterSetter(A,"size"),o.Factory.addGetterSetter(A,"dragBoundFunc"),o.Factory.addGetterSetter(A,"draggable",!1,d.getBooleanValidator()),o.Factory.backCompat(A,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),r.Collection.mapMethods(A)},24:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l,c=n(12),h=n(7),d=n(21),f=n(11),m=n(9),v=n(265),y="hasShadow",_="shadowRGBA",w="patternImage",x="linearGradient",S="radialGradient";function C(){return l||(l=c.Util.createCanvasElement().getContext("2d"))}function T(){this._clearCache(y)}function M(){this._clearCache(_)}function P(){this._clearCache(w)}function E(){this._clearCache(x)}function O(){this._clearCache(S)}e.shapes={};var k=function(t){function n(n){for(var r,o=t.call(this,n)||this;!(r=c.Util.getRandomColor())||r in e.shapes;);return o.colorKey=r,e.shapes[r]=o,o.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",T),o.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",M),o.on("fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva",P),o.on("fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",E),o.on("fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",O),o}return o(n,t),n.prototype.getContext=function(){return this.getLayer().getContext()},n.prototype.getCanvas=function(){return this.getLayer().getCanvas()},n.prototype.getSceneFunc=function(){return this.attrs.sceneFunc||this._sceneFunc},n.prototype.getHitFunc=function(){return this.attrs.hitFunc||this._hitFunc},n.prototype.hasShadow=function(){return this._getCache(y,this._hasShadow)},n.prototype._hasShadow=function(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())},n.prototype._getFillPattern=function(){return this._getCache(w,this.__getFillPattern)},n.prototype.__getFillPattern=function(){if(this.fillPatternImage())return C().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat")},n.prototype._getLinearGradient=function(){return this._getCache(x,this.__getLinearGradient)},n.prototype.__getLinearGradient=function(){var t=this.fillLinearGradientColorStops();if(t){for(var e=C(),n=this.fillLinearGradientStartPoint(),r=this.fillLinearGradientEndPoint(),o=e.createLinearGradient(n.x,n.y,r.x,r.y),l=0;l<t.length;l+=2)o.addColorStop(t[l],t[l+1]);return o}},n.prototype._getRadialGradient=function(){return this._getCache(S,this.__getRadialGradient)},n.prototype.__getRadialGradient=function(){var t=this.fillRadialGradientColorStops();if(t){for(var e=C(),n=this.fillRadialGradientStartPoint(),r=this.fillRadialGradientEndPoint(),o=e.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),r.x,r.y,this.fillRadialGradientEndRadius()),l=0;l<t.length;l+=2)o.addColorStop(t[l],t[l+1]);return o}},n.prototype.getShadowRGBA=function(){return this._getCache(_,this._getShadowRGBA)},n.prototype._getShadowRGBA=function(){if(this.hasShadow()){var t=c.Util.colorToRGBA(this.shadowColor());return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")"}},n.prototype.hasFill=function(){return this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops())},n.prototype.hasStroke=function(){return this.strokeEnabled()&&this.strokeWidth()&&!(!this.stroke()&&!this.strokeLinearGradientColorStops())},n.prototype.hasHitStroke=function(){var t=this.hitStrokeWidth();return"auto"===t?this.hasStroke():this.strokeEnabled()&&!!t},n.prototype.intersects=function(t){var e=this.getStage().bufferHitCanvas;return e.getContext().clear(),this.drawHit(e),e.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data[3]>0},n.prototype.destroy=function(){return d.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this},n.prototype._useBufferCanvas=function(t){return!(t&&!this.hasShadow()||!this.perfectDrawEnabled()||1===this.getAbsoluteOpacity()||!this.hasFill()||!this.hasStroke()||!this.getStage())},n.prototype.setStrokeHitEnabled=function(t){c.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)},n.prototype.getStrokeHitEnabled=function(){return 0!==this.hitStrokeWidth()},n.prototype.getSelfRect=function(){var t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}},n.prototype.getClientRect=function(t){var e=(t=t||{}).skipTransform,n=t.relativeTo,r=this.getSelfRect(),o=!t.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,l=r.width+o,c=r.height+o,h=!t.skipShadow&&this.hasShadow(),d=h?this.shadowOffsetX():0,f=h?this.shadowOffsetY():0,m=l+Math.abs(d),v=c+Math.abs(f),y=h&&this.shadowBlur()||0,_=m+2*y,w=v+2*y,x=0;Math.round(o/2)!==o/2&&(x=1);var rect={width:_+x,height:w+x,x:-Math.round(o/2+y)+Math.min(d,0)+r.x,y:-Math.round(o/2+y)+Math.min(f,0)+r.y};return e?rect:this._transformedRect(rect,n)},n.prototype.drawScene=function(t,e,n,r){var o,l,c=this.getLayer(),canvas=t||c.getCanvas(),h=canvas.getContext(),d=this._getCanvasCache(),f=this.sceneFunc(),m=this.hasShadow(),v=this.hasStroke();if(!this.isVisible()&&!n)return this;if(d)return h.save(),c._applyTransform(this,h,e),this._drawCachedSceneCanvas(h),h.restore(
2),this;if(!f)return this;if(h.save(),this._useBufferCanvas(n)&&!r){if((l=(o=this.getStage().bufferCanvas).getContext()).clear(),l.save(),l._applyLineJoin(this),!n)if(c)c._applyTransform(this,l,e);else{var y=this.getAbsoluteTransform(e).getMatrix();h.transform(y[0],y[1],y[2],y[3],y[4],y[5])}f.call(this,l,this),l.restore();var _=o.pixelRatio;m&&!canvas.hitCanvas?(h.save(),h._applyShadow(this),h._applyOpacity(this),h._applyGlobalCompositeOperation(this),h.drawImage(o._canvas,0,0,o.width/_,o.height/_),h.restore()):(h._applyOpacity(this),h._applyGlobalCompositeOperation(this),h.drawImage(o._canvas,0,0,o.width/_,o.height/_))}else{if(h._applyLineJoin(this),!n)if(c)c._applyTransform(this,h,e);else{var w=this.getAbsoluteTransform(e).getMatrix();h.transform(w[0],w[1],w[2],w[3],w[4],w[5])}m&&v&&!canvas.hitCanvas?(h.save(),n||(h._applyOpacity(this),h._applyGlobalCompositeOperation(this)),h._applyShadow(this),f.call(this,h,this),h.restore(),this.hasFill()&&this.shadowForStrokeEnabled()&&f.call(this,h,this)):m&&!canvas.hitCanvas?(h.save(),n||(h._applyOpacity(this),h._applyGlobalCompositeOperation(this)),h._applyShadow(this),f.call(this,h,this),h.restore()):(n||(h._applyOpacity(this),h._applyGlobalCompositeOperation(this)),f.call(this,h,this))}return h.restore(),this},n.prototype.drawHit=function(t,e,n){var r=this.getLayer(),canvas=t||r.hitCanvas,o=canvas&&canvas.getContext(),l=this.hitFunc()||this.sceneFunc(),h=this._getCanvasCache(),d=h&&h.hit;if(this.colorKey||(console.log(this),c.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. See the shape in logs above. If you want to reuse shape you should call remove() instead of destroy()")),!this.shouldDrawHit()&&!n)return this;if(d)return o.save(),r._applyTransform(this,o,e),this._drawCachedHitCanvas(o),o.restore(),this;if(!l)return this;if(o.save(),o._applyLineJoin(this),!n)if(r)r._applyTransform(this,o,e);else{var f=this.getAbsoluteTransform(e).getMatrix();o.transform(f[0],f[1],f[2],f[3],f[4],f[5])}return l.call(this,o,this),o.restore(),this},n.prototype.drawHitFromCache=function(t){void 0===t&&(t=0);var e,n,r,o,i,l=this._getCanvasCache(),h=this._getCachedSceneCanvas(),d=l.hit,f=d.getContext(),m=d.getWidth(),v=d.getHeight();f.clear(),f.drawImage(h._canvas,0,0,m,v);try{for(r=(n=(e=f.getImageData(0,0,m,v)).data).length,o=c.Util._hexToRgb(this.colorKey),i=0;i<r;i+=4)n[i+3]>t?(n[i]=o.r,n[i+1]=o.g,n[i+2]=o.b,n[i+3]=255):n[i+3]=0;f.putImageData(e,0,0)}catch(t){c.Util.error("Unable to draw hit graph from cached scene canvas. "+t.message)}return this},n.prototype.hasPointerCapture=function(t){return v.hasPointerCapture(t,this)},n.prototype.setPointerCapture=function(t){v.setPointerCapture(t,this)},n.prototype.releaseCapture=function(t){v.releaseCapture(t,this)},n}(d.Node);e.Shape=k,k.prototype._fillFunc=function(t){t.fill()},k.prototype._strokeFunc=function(t){t.stroke()},k.prototype._fillFuncHit=function(t){t.fill()},k.prototype._strokeFuncHit=function(t){t.stroke()},k.prototype._centroid=!1,k.prototype.nodeType="Shape",m._registerNode(k),h.Factory.addGetterSetter(k,"stroke",void 0,f.getStringValidator()),h.Factory.addGetterSetter(k,"strokeWidth",2,f.getNumberValidator()),h.Factory.addGetterSetter(k,"hitStrokeWidth","auto",f.getNumberOrAutoValidator()),h.Factory.addGetterSetter(k,"strokeHitEnabled",!0,f.getBooleanValidator()),h.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,f.getBooleanValidator()),h.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,f.getBooleanValidator()),h.Factory.addGetterSetter(k,"lineJoin"),h.Factory.addGetterSetter(k,"lineCap"),h.Factory.addGetterSetter(k,"sceneFunc"),h.Factory.addGetterSetter(k,"hitFunc"),h.Factory.addGetterSetter(k,"dash"),h.Factory.addGetterSetter(k,"dashOffset",0,f.getNumberValidator()),h.Factory.addGetterSetter(k,"shadowColor",void 0,f.getStringValidator()),h.Factory.addGetterSetter(k,"shadowBlur",0,f.getNumberValidator()),h.Factory.addGetterSetter(k,"shadowOpacity",1,f.getNumberValidator()),h.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),h.Factory.addGetterSetter(k,"shadowOffsetX",0,f.getNumberValidator()),h.Factory.addGetterSetter(k,"shadowOffsetY",0,f.getNumberValidator()),h.Factory.addGetterSetter(k,"fillPatternImage"),h.Factory.addGetterSetter(k,"fill",void 0,f.getStringValidator()),h.Factory.addGetterSetter(k,"fillPatternX",0,f.getNumberValidator()),h.Factory.addGetterSetter(k,"fillPatternY",0,f.getNumberValidator()),h.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),h.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),h.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),h.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),h.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),h.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),h.Factory.addGetterSetter(k,"fillEnabled",!0),h.Factory.addGetterSetter(k,"strokeEnabled",!0),h.Factory.addGetterSetter(k,"shadowEnabled",!0),h.Factory.addGetterSetter(k,"dashEnabled",!0),h.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),h.Factory.addGetterSetter(k,"fillPriority","color"),h.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),h.Factory.addGetterSetter(k,"fillPatternOffsetX",0,f.getNumberValidator()),h.Factory.addGetterSetter(k,"fillPatternOffsetY",0,f.getNumberValidator()),h.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),h.Factory.addGetterSetter(k,"fillPatternScaleX",1,f.getNumberValidator()),h.Factory.addGetterSetter(k,"fillPatternScaleY",1,f.getNumberValidator()),h.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),h.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),h.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),h.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),h.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),h.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),h.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),h.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),h.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),h.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),h.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),h.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),h.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),h.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),h.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),h.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),h.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),h.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),h.Factory.addGetterSetter(k,"fillPatternRotation",0),h.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"}),c.Collection.mapMethods(k)},259:function(t,e,n){n(111);const r={dragShouldDisconnect:(t,e,n)=>t.horizontalConnector.openMovement(t,e)&&t.verticalConnector.openMovement(t,n)},o={dragShouldDisconnect:(t,e,n)=>!0},l={dragShouldDisconnect:(t,e,n)=>!1};t.exports={TryDisconnection:r,ForceDisconnection:o,ForceConnection:l}},260:function(t,e){const n={atVector:t=>t.y,atDimension:image=>image.height},r={atVector:t=>t.x,atDimension:image=>
2image.width};t.exports={Vertical:n,Horizontal:r}},261:function(t,e,n){const r=n(109),{Anchor:o}=(n(46),n(74)),{anchor:l}=n(74),{fixed:c,InsertSequence:h}=n(152),d=n(153);class f{constructor(t,e){this.puzzle=t,this.initializeOffset(e)}initializeOffset(t){this.offset=t?t.asVector():this.pieceDiameter}get pieceDiameter(){return this.puzzle.pieceDiameter}naturalAnchor(t,e){return l(t*this.pieceDiameter.x+this.offset.x,e*this.pieceDiameter.y+this.offset.y)}}t.exports=class{constructor(){this.insertsGenerator=c,this.metadata=[],this.headAnchor=null}withMetadata(t){this.metadata=t}withInsertsGenerator(t){this.insertsGenerator=t||this.insertsGenerator}withHeadAt(t){this.headAnchor=t}withStructure(t){this.structure=t}withDimensions(t,e){this.width=t,this.height=e}build(){const t=new r(this.structure),e=new f(t,this.headAnchor);let n,o=this._newSequence();for(let r=0;r<this.height;r++){n=this._newSequence(),o.next();for(let l=0;l<this.width;l++){n.next();this._buildPiece(t,n,o).centerAround(e.naturalAnchor(l,r))}}return this._annotateAll(t.pieces),t}_annotateAll(t){t.forEach((t,e)=>this._annotate(t,e))}_annotate(t,e){const n=this.metadata[e],r=n?d.copy(n):{};r.id=r.id||String(e+1),t.annotate(r)}_newSequence(){return new h(this.insertsGenerator)}_buildPiece(t,e,n){return t.newPiece({left:e.previousComplement(),up:n.previousComplement(),right:e.current(this.width),down:n.current(this.height)})}}},262:function(t,e,n){const r=n(51),{PuzzleValidator:o}=(n(46),n(56),n(113));function l(t){return r.diff(t.metadata.targetPosition,t.centralAnchor.asVector())}const c=t=>{const e=l(t.head);return t.pieces.every(t=>o.equalDiffs(e,l(t)))};t.exports={initialize:function(t,e,n){t.targetPosition=t.targetPosition||e,t.currentPosition=t.currentPosition||n||r.copy(t.targetPosition)},solved:t=>c(t)&&o.connected(t),relativePosition:c,absolutePosition:t=>r.equal(t.centralAnchor.asVector(),t.metadata.targetPosition)}},263:function(t,e,n){n(115),n(46);t.exports=class{resize(canvas,t,e){}initialize(canvas,t){}reinitialize(canvas){}draw(canvas){}scale(canvas,t){}sketch(canvas,t,figure,e){}fill(canvas,t,figure){}label(canvas,t,figure){}physicalTranslate(canvas,t,e){}logicalTranslate(canvas,t,e){}onDrag(canvas,t,e,n){}onDragEnd(canvas,t,e,n){}registerKeyboardGestures(canvas,t){}}},264:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(9),h=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],d=function(){function t(canvas){this.canvas=canvas,this._context=canvas._canvas.getContext("2d"),c.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}return t.prototype.fillShape=function(t){t.fillEnabled()&&this._fill(t)},t.prototype._fill=function(t){},t.prototype.strokeShape=function(t){t.hasStroke()&&this._stroke(t)},t.prototype._stroke=function(t){},t.prototype.fillStrokeShape=function(t){this.fillShape(t),this.strokeShape(t)},t.prototype.getTrace=function(t){var e,n,r,o,c=this.traceArr,h=c.length,d="";for(e=0;e<h;e++)(r=(n=c[e]).method)?(o=n.args,d+=r,t?d+="()":l.Util._isArray(o[0])?d+="(["+o.join(",")+"])":d+="("+o.join(",")+")"):(d+=n.property,t||(d+="="+n.val)),d+=";";return d},t.prototype.clearTrace=function(){this.traceArr=[]},t.prototype._trace=function(t){var e=this.traceArr;e.push(t),e.length>=100&&e.shift()},t.prototype.reset=function(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)},t.prototype.getCanvas=function(){return this.canvas},t.prototype.clear=function(t){var canvas=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,canvas.getWidth()/canvas.pixelRatio,canvas.getHeight()/canvas.pixelRatio)},t.prototype._applyLineCap=function(t){var e=t.getLineCap();e&&this.setAttr("lineCap",e)},t.prototype._applyOpacity=function(t){var e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)},t.prototype._applyLineJoin=function(t){var e=t.getLineJoin();e&&this.setAttr("lineJoin",e)},t.prototype.setAttr=function(t,e){this._context[t]=e},t.prototype.arc=function(t,e,n,r,o,l){this._context.arc(t,e,n,r,o,l)},t.prototype.arcTo=function(t,e,n,r,o){this._context.arcTo(t,e,n,r,o)},t.prototype.beginPath=function(){this._context.beginPath()},t.prototype.bezierCurveTo=function(t,e,n,r,o,l){this._context.bezierCurveTo(t,e,n,r,o,l)},t.prototype.clearRect=function(t,e,n,r){this._context.clearRect(t,e,n,r)},t.prototype.clip=function(){this._context.clip()},t.prototype.closePath=function(){this._context.closePath()},t.prototype.createImageData=function(t,e){var a=arguments;return 2===a.length?this._context.createImageData(t,e):1===a.length?this._context.createImageData(t):void 0},t.prototype.createLinearGradient=function(t,e,n,r){return this._context.createLinearGradient(t,e,n,r)},t.prototype.createPattern=function(t,e){return this._context.createPattern(t,e)},t.prototype.createRadialGradient=function(t,e,n,r,o,l){return this._context.createRadialGradient(t,e,n,r,o,l)},t.prototype.drawImage=function(t,e,n,r,o,l,c,h,d){var a=arguments,f=this._context;3===a.length?f.drawImage(t,e,n):5===a.length?f.drawImage(t,e,n,r,o):9===a.length&&f.drawImage(t,e,n,r,o,l,c,h,d)},t.prototype.ellipse=function(t,e,n,r,o,l,c,h){this._context.ellipse(t,e,n,r,o,l,c,h)}
2,t.prototype.isPointInPath=function(t,e){return this._context.isPointInPath(t,e)},t.prototype.fill=function(){this._context.fill()},t.prototype.fillRect=function(t,e,n,r){this._context.fillRect(t,e,n,r)},t.prototype.strokeRect=function(t,e,n,r){this._context.strokeRect(t,e,n,r)},t.prototype.fillText=function(t,e,n){this._context.fillText(t,e,n)},t.prototype.measureText=function(text){return this._context.measureText(text)},t.prototype.getImageData=function(t,e,n,r){return this._context.getImageData(t,e,n,r)},t.prototype.lineTo=function(t,e){this._context.lineTo(t,e)},t.prototype.moveTo=function(t,e){this._context.moveTo(t,e)},t.prototype.rect=function(t,e,n,r){this._context.rect(t,e,n,r)},t.prototype.putImageData=function(t,e,n){this._context.putImageData(t,e,n)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._context.quadraticCurveTo(t,e,n,r)},t.prototype.restore=function(){this._context.restore()},t.prototype.rotate=function(t){this._context.rotate(t)},t.prototype.save=function(){this._context.save()},t.prototype.scale=function(t,e){this._context.scale(t,e)},t.prototype.setLineDash=function(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)},t.prototype.getLineDash=function(){return this._context.getLineDash()},t.prototype.setTransform=function(t,e,n,r,o,l){this._context.setTransform(t,e,n,r,o,l)},t.prototype.stroke=function(){this._context.stroke()},t.prototype.strokeText=function(t,e,n,r){this._context.strokeText(t,e,n,r)},t.prototype.transform=function(t,e,n,r,o,l){this._context.transform(t,e,n,r,o,l)},t.prototype.translate=function(t,e){this._context.translate(t,e)},t.prototype._enableTrace=function(){var t,e,n=this,r=h.length,o=l.Util._simplifyArray,c=this.setAttr,d=function(t){var r,l=n[t];n[t]=function(){return e=o(Array.prototype.slice.call(arguments,0)),r=l.apply(n,arguments),n._trace({method:t,args:e}),r}};for(t=0;t<r;t++)d(h[t]);n.setAttr=function(){c.apply(n,arguments);var t=arguments[0],e=arguments[1];"shadowOffsetX"!==t&&"shadowOffsetY"!==t&&"shadowBlur"!==t||(e/=this.canvas.getPixelRatio()),n._trace({property:t,val:e})}},t.prototype._applyGlobalCompositeOperation=function(t){var e=t.getGlobalCompositeOperation();"source-over"!==e&&this.setAttr("globalCompositeOperation",e)},t}();e.Context=d,["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"].forEach(function(t){Object.defineProperty(d.prototype,t,{get:function(){return this._context[t]},set:function(e){this._context[t]=e}})});var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._fillColor=function(t){var e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)},e.prototype._fillPattern=function(t){var e=t.getFillPatternX(),n=t.getFillPatternY(),r=c.Konva.getAngle(t.getFillPatternRotation()),o=t.getFillPatternOffsetX(),l=t.getFillPatternOffsetY(),h=t.getFillPatternScaleX(),d=t.getFillPatternScaleY();(e||n)&&this.translate(e||0,n||0),r&&this.rotate(r),(h||d)&&this.scale(h,d),(o||l)&&this.translate(-1*o,-1*l),this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)},e.prototype._fillLinearGradient=function(t){var e=t._getLinearGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))},e.prototype._fillRadialGradient=function(t){var e=t._getRadialGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))},e.prototype._fill=function(t){var e=t.fill(),n=t.getFillPriority();if(e&&"color"===n)this._fillColor(t);else{var r=t.getFillPatternImage();if(r&&"pattern"===n)this._fillPattern(t);else{var o=t.getFillLinearGradientColorStops();if(o&&"linear-gradient"===n)this._fillLinearGradient(t);else{var l=t.getFillRadialGradientColorStops();l&&"radial-gradient"===n?this._fillRadialGradient(t):e?this._fillColor(t):r?this._fillPattern(t):o?this._fillLinearGradient(t):l&&this._fillRadialGradient(t)}}}},e.prototype._strokeLinearGradient=function(t){var e=t.getStrokeLinearGradientStartPoint(),n=t.getStrokeLinearGradientEndPoint(),r=t.getStrokeLinearGradientColorStops(),o=this.createLinearGradient(e.x,e.y,n.x,n.y);if(r){for(var l=0;l<r.length;l+=2)o.addColorStop(r[l],r[l+1]);this.setAttr("strokeStyle",o)}},e.prototype._stroke=function(t){var e=t.dash(),n=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!n){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(t),e&&t.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),t.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),n||this.restore(
2)}},e.prototype._applyShadow=function(t){var e=l.Util,n=e.get(t.getShadowRGBA(),"black"),r=e.get(t.getShadowBlur(),5),o=e.get(t.getShadowOffset(),{x:0,y:0}),c=t.getAbsoluteScale(),h=this.canvas.getPixelRatio(),d=c.x*h,f=c.y*h;this.setAttr("shadowColor",n),this.setAttr("shadowBlur",r*Math.min(Math.abs(d),Math.abs(f))),this.setAttr("shadowOffsetX",o.x*d),this.setAttr("shadowOffsetY",o.y*f)},e}(d);e.SceneContext=f;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._fill=function(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()},e.prototype.strokeShape=function(t){t.hasHitStroke()&&this._stroke(t)},e.prototype._stroke=function(t){if(t.hasHitStroke()){var e=t.getStrokeScaleEnabled();if(!e){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(t);var r=t.hitStrokeWidth(),o="auto"===r?t.strokeWidth():r;this.setAttr("lineWidth",o),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}},e}(d);e.HitContext=m},265:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),o=new Map,l=void 0!==r.Konva._global.PointerEvent;function c(t){return{evt:t,pointerId:t.pointerId}}function h(t,e){var n=o.get(t);if(n){var r=n.getStage();r&&r.content,o.delete(t),l&&n._fire("lostpointercapture",c(new PointerEvent("lostpointercapture")))}}e.getCapturedShape=function(t){return o.get(t)},e.createEvent=c,e.hasPointerCapture=function(t,e){return o.get(t)===e},e.setPointerCapture=function(t,e){h(t),e.getStage()&&(o.set(t,e),l&&e._fire("gotpointercapture",c(new PointerEvent("gotpointercapture"))))},e.releaseCapture=h},266:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(75),h=n(21),d=n(7),f=n(86),m=function(t){function e(e){var n=t.call(this,e)||this;return n.canvas=new f.SceneCanvas,n._waitingForDraw=!1,n.on("visibleChange",n._checkVisibility),n._checkVisibility(),n.on("imageSmoothingEnabledChange",n._setSmoothEnabled),n._setSmoothEnabled(),n}return o(e,t),e.prototype.createPNGStream=function(){return this.canvas._canvas.createPNGStream()},e.prototype.getCanvas=function(){return this.canvas},e.prototype.getHitCanvas=function(){return this.hitCanvas},e.prototype.getContext=function(){return this.getCanvas().getContext()},e.prototype.clear=function(t){return this.getContext().clear(t),this},e.prototype.setZIndex=function(e){t.prototype.setZIndex.call(this,e);var n=this.getStage();return n&&(n.content.removeChild(this.getCanvas()._canvas),e<n.children.length-1?n.content.insertBefore(this.getCanvas()._canvas,n.children[e+1].getCanvas()._canvas):n.content.appendChild(this.getCanvas()._canvas)),this},e.prototype.moveToTop=function(){h.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&(t.content.removeChild(this.getCanvas()._canvas),t.content.appendChild(this.getCanvas()._canvas)),!0},e.prototype.moveUp=function(){if(!h.Node.prototype.moveUp.call(this))return!1;var t=this.getStage();return!!t&&(t.content.removeChild(this.getCanvas()._canvas),this.index<t.children.length-1?t.content.insertBefore(this.getCanvas()._canvas,t.children[this.index+1].getCanvas()._canvas):t.content.appendChild(this.getCanvas()._canvas),!0)},e.prototype.moveDown=function(){if(h.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var e=t.children;t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[this.index+1].getCanvas()._canvas)}return!0}return!1},e.prototype.moveToBottom=function(){if(h.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var e=t.children;t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[1].getCanvas()._canvas)}return!0}return!1},e.prototype.getLayer=function(){return this},e.prototype.hitGraphEnabled=function(){return!0},e.prototype.remove=function(){var t=this.getCanvas()._canvas;return h.Node.prototype.remove.call(this),t&&t.parentNode&&l.Util._isInDocument(t)&&t.parentNode.removeChild(t),this},e.prototype.getStage=function(){return this.parent},e.prototype.setSize=function(t){var e=t.width,n=t.height;return this.canvas.setSize(e,n),this._setSmoothEnabled(),this},e.prototype._toKonvaCanvas=function(t){return(t=t||{}).width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=void 0!==t.x?t.x:this.x(),t.y=void 0!==t.y?t.y:this.y(),h.Node.prototype._toKonvaCanvas.call(this,t)},e.prototype._checkVisibility=function(){var t=this.visible();this.canvas._canvas.style.display=t?"block":"none"},e.prototype._setSmoothEnabled=function(){this.getContext()._context.
2imageSmoothingEnabled=this.imageSmoothingEnabled()},e.prototype.getWidth=function(){if(this.parent)return this.parent.width()},e.prototype.setWidth=function(){l.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')},e.prototype.getHeight=function(){if(this.parent)return this.parent.height()},e.prototype.setHeight=function(){l.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')},e.prototype.getIntersection=function(t,e){return null},e.prototype.batchDraw=function(){var t=this;return this._waitingForDraw||(this._waitingForDraw=!0,l.Util.requestAnimFrame(function(){t.draw(),t._waitingForDraw=!1})),this},e.prototype._applyTransform=function(t,e,n){var r=t.getAbsoluteTransform(n).getMatrix();e.transform(r[0],r[1],r[2],r[3],r[4],r[5])},e}(c.Container);e.BaseLayer=m,m.prototype.nodeType="BaseLayer",d.Factory.addGetterSetter(m,"imageSmoothingEnabled",!0),d.Factory.addGetterSetter(m,"clearBeforeDraw",!0),l.Collection.mapMethods(m)},267:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}),l=this&&this.__spreadArrays||function(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var e=Array(s),n=0;for(i=0;i<t;i++)for(var a=arguments[i],r=0,o=a.length;r<o;r++,n++)e[n]=a[r];return e};Object.defineProperty(e,"__esModule",{value:!0});var c=n(12),h=n(7),d=n(24),f=n(11),m=n(9),v=function(t){function e(e){var n=t.call(this,e)||this;return n.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")}),n}return o(e,t),e.prototype._sceneFunc=function(t){var e,n,r,o=this.points(),l=o.length,c=this.tension(),h=this.closed(),d=this.bezier();if(l){if(t.beginPath(),t.moveTo(o[0],o[1]),0!==c&&l>4){for(n=(e=this.getTensionPoints()).length,r=h?0:4,h||t.quadraticCurveTo(e[0],e[1],e[2],e[3]);r<n-2;)t.bezierCurveTo(e[r++],e[r++],e[r++],e[r++],e[r++],e[r++]);h||t.quadraticCurveTo(e[n-2],e[n-1],o[l-2],o[l-1])}else if(d)for(r=2;r<l;)t.bezierCurveTo(o[r++],o[r++],o[r++],o[r++],o[r++],o[r++]);else for(r=2;r<l;r+=2)t.lineTo(o[r],o[r+1]);h?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}},e.prototype.getTensionPoints=function(){return this._getCache("tensionPoints",this._getTensionPoints)},e.prototype._getTensionPoints=function(){return this.closed()?this._getTensionPointsClosed():c.Util._expandPoints(this.points(),this.tension())},e.prototype._getTensionPointsClosed=function(){var p=this.points(),t=p.length,e=this.tension(),n=c.Util._getControlPoints(p[t-2],p[t-1],p[0],p[1],p[2],p[3],e),r=c.Util._getControlPoints(p[t-4],p[t-3],p[t-2],p[t-1],p[0],p[1],e),o=c.Util._expandPoints(p,e);return[n[2],n[3]].concat(o).concat([r[0],r[1],p[t-2],p[t-1],r[2],r[3],n[0],n[1],p[0],p[1]])},e.prototype.getWidth=function(){return this.getSelfRect().width},e.prototype.getHeight=function(){return this.getSelfRect().height},e.prototype.getSelfRect=function(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};for(var e,n,r=(t=0!==this.tension()?l([t[0],t[1]],this._getTensionPoints(),[t[t.length-2],t[t.length-1]]):this.points())[0],o=t[0],c=t[1],h=t[1],i=0;i<t.length/2;i++)e=t[2*i],n=t[2*i+1],r=Math.min(r,e),o=Math.max(o,e),c=Math.min(c,n),h=Math.max(h,n);return{x:r,y:c,width:o-r,height:h-c}},e}(d.Shape);e.Line=v,v.prototype.className="Line",v.prototype._attrsAffectingSize=["points","bezier","tension"],m._registerNode(v),h.Factory.addGetterSetter(v,"closed",!1),h.Factory.addGetterSetter(v,"bezier",!1),h.Factory.addGetterSetter(v,"tension",0,f.getNumberValidator()),h.Factory.addGetterSetter(v,"points",[],f.getNumberArrayValidator()),c.Collection.mapMethods(v)},268:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});
2Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(9),f=function(t){function e(n){var r=t.call(this,n)||this;r.dataArray=[],r.pathLength=0,r.dataArray=e.parsePathData(r.data()),r.pathLength=0;for(var i=0;i<r.dataArray.length;++i)r.pathLength+=r.dataArray[i].pathLength;return r.on("dataChange.konva",function(){this.dataArray=e.parsePathData(this.data()),this.pathLength=0;for(var i=0;i<this.dataArray.length;++i)this.pathLength+=this.dataArray[i].pathLength}),r}return o(e,t),e.prototype._sceneFunc=function(t){var e=this.dataArray;t.beginPath();for(var n=!1,r=0;r<e.length;r++){var o=e[r].command,p=e[r].points;switch(o){case"L":t.lineTo(p[0],p[1]);break;case"M":t.moveTo(p[0],p[1]);break;case"C":t.bezierCurveTo(p[0],p[1],p[2],p[3],p[4],p[5]);break;case"Q":t.quadraticCurveTo(p[0],p[1],p[2],p[3]);break;case"A":var l=p[0],c=p[1],h=p[2],d=p[3],f=p[4],m=p[5],v=p[6],y=p[7],_=h>d?h:d,w=h>d?1:h/d,x=h>d?d/h:1;t.translate(l,c),t.rotate(v),t.scale(w,x),t.arc(0,0,_,f,f+m,1-y),t.scale(1/w,1/x),t.rotate(-v),t.translate(-l,-c);break;case"z":n=!0,t.closePath()}}n||this.hasFill()?t.fillStrokeShape(this):t.strokeShape(this)},e.prototype.getSelfRect=function(){var t=[];this.dataArray.forEach(function(data){if("A"===data.command){var n=data.points[4],r=data.points[5],o=data.points[4]+r,l=Math.PI/180;if(Math.abs(n-o)<l&&(l=Math.abs(n-o)),r<0)for(var c=n-l;c>o;c-=l){var h=e.getPointOnEllipticalArc(data.points[0],data.points[1],data.points[2],data.points[3],c,0);t.push(h.x,h.y)}else for(c=n+l;c<o;c+=l){h=e.getPointOnEllipticalArc(data.points[0],data.points[1],data.points[2],data.points[3],c,0);t.push(h.x,h.y)}}else if("C"===data.command)for(c=0;c<=1;c+=.01){h=e.getPointOnCubicBezier(c,data.start.x,data.start.y,data.points[0],data.points[1],data.points[2],data.points[3],data.points[4],data.points[5]);t.push(h.x,h.y)}else t=t.concat(data.points)});for(var n,r,o=t[0],l=t[0],c=t[1],h=t[1],i=0;i<t.length/2;i++)n=t[2*i],r=t[2*i+1],isNaN(n)||(o=Math.min(o,n),l=Math.max(l,n)),isNaN(r)||(c=Math.min(c,r),h=Math.max(h,r));return{x:Math.round(o),y:Math.round(c),width:Math.round(l-o),height:Math.round(h-c)}},e.prototype.getLength=function(){return this.pathLength},e.prototype.getPointAtLength=function(t){var n,i=0,r=this.dataArray.length;if(!r)return null;for(;i<r&&t>this.dataArray[i].pathLength;)t-=this.dataArray[i].pathLength,++i;if(i===r)return{x:(n=this.dataArray[i-1].points.slice(-2))[0],y:n[1]};if(t<.01)return{x:(n=this.dataArray[i].points.slice(0,2))[0],y:n[1]};var o=this.dataArray[i],p=o.points;switch(o.command){case"L":return e.getPointOnLine(t,o.start.x,o.start.y,p[0],p[1]);case"C":return e.getPointOnCubicBezier(t/o.pathLength,o.start.x,o.start.y,p[0],p[1],p[2],p[3],p[4],p[5]);case"Q":return e.getPointOnQuadraticBezier(t/o.pathLength,o.start.x,o.start.y,p[0],p[1],p[2],p[3]);case"A":var l=p[0],c=p[1],h=p[2],d=p[3],f=p[4],m=p[5],v=p[6];return f+=m*t/o.pathLength,e.getPointOnEllipticalArc(l,c,h,d,f,v)}return null},e.getLineLength=function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))},e.getPointOnLine=function(t,e,n,r,o,l,c){void 0===l&&(l=e),void 0===c&&(c=n);var h=(o-n)/(r-e+1e-8),d=Math.sqrt(t*t/(1+h*h));r<e&&(d*=-1);var f,m=h*d;if(r===e)f={x:l,y:c+m};else if((c-n)/(l-e+1e-8)===h)f={x:l+d,y:c+m};else{var v,y,_=this.getLineLength(e,n,r,o);if(_<1e-8)return;var u=(l-e)*(r-e)+(c-n)*(o-n);v=e+(u/=_*_)*(r-e),y=n+u*(o-n);var w=this.getLineLength(l,c,v,y),x=Math.sqrt(t*t-w*w);d=Math.sqrt(x*x/(1+h*h)),r<e&&(d*=-1),f={x:v+d,y:y+(m=h*d)}}return f},e.getPointOnCubicBezier=function(t,e,n,r,o,l,c,h,d){function f(t){return t*t*t}function m(t){return 3*t*t*(1-t)}function v(t){return 3*t*(1-t)*(1-t)}function y(t){return(1-t)*(1-t)*(1-t)}return{x:h*f(t)+l*m(t)+r*v(t)+e*y(t),y:d*f(t)+c*m(t)+o*v(t)+n*y(t)}},e.getPointOnQuadraticBezier=function(t,e,n,r,o,l,c){function h(t){return t*t}function d(t){return 2*t*(1-t)}function f(t){return(1-t)*(1-t)}return{x:l*h(t)+r*d(t)+e*f(t),y:c*h(t)+o*d(t)+n*f(t)}},e.getPointOnEllipticalArc=function(t,e,n,r,o,l){var c=Math.cos(l),h=Math.sin(l),d=n*Math.cos(o),f=r*Math.sin(o);return{x:t+(d*c-f*h),y:e+(d*h+f*c)}},e.parsePathData=function(data){if(!data)return[];var t=data,e=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];t=t.replace(new RegExp(" ","g"),",");for(var n=0;n<e.length;n++)t=t.replace(new RegExp(e[n],"g"),"|"+e[n]);var r,o=t.split("|"),l=[],c=[],h=0,d=0,f=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(n=1;n<o.length;n++){var m=o[n],v=m.charAt(0);for(m=m.slice(1),c.length=0;r=f.exec(m);)c.push(r[0]);for(var p=[],y=0,_=c.length;y<_;y++){var w=parseFloat(c[y]);isNaN(w)?p.push(0):p.push(w)}for(;p.length>0&&!isNaN(p[0]);){var x,S,C,T,M,P,E,O,k,A,D=null,I=[],z=h,F=d;switch(v){case"l":h+=p.shift(),d+=p.shift(),D="L",I.push(h,d);break;case"L":h=p.shift(),d=p.shift(),I.push(h,d);break;case"m":var R=p.shift(),N=p.shift();if(h+=R,d+=N,D="M",l.length>2&&"z"===l[l.length-1].command)for(var L=l.length-2;L>=0;L--)if("M"===l[L].command){h=l[L].points[0]+R,d=l[L].points[1]+N;break}I.push(h,d),v="l";break;case"M":h=p.shift(),d=p.shift(),D="M",I.push(h,d),v="L";break;case"h":h+=p.shift(),D="L",I.push(h,d);break;case"H":h=p.shift(),D="L",I.push(h,d);break;case"v":d+=p.shift(),D="L",I.push(h,d);break;case"V":d=p.shift(),D="L",I.push(h,d);break;case"C":I.push(p.shift(),p.shift(),p.shift(),p.shift()),h=p.shift(),d=p.shift(),I.push(h,d);break;case"c":I.push(h+p.shift(),d+p.shift(),h+p.shift(),d+p.shift()),h+=p.shift(),d+=p.shift(),D="C",I.push(h,d);break;case"S":S=h,C=d,"C"===(x=l[l.length-1]).command&&(S=h+(h-x.points[2]),C=d+(d-x.points[3])),I.push(S,C,p.shift(),p.shift()),h=p.shift(),d=p.shift(),D="C",I.push(h,d);break;case"s":S=h,C=d,"C"===(x=l[l.length-1]).command&&(S=h+(h-x.points[2]),C=d+(d-x.points[3])),I.push(S,C,h+p.shift(),d+p.shift()),h+=p.shift(),d+=p.shift(),D="C",I.push(h,d);break;case"Q":I.push(p.shift(),p.shift()),h=p.shift(),d=p.shift(),I.push(h,d);break;case"q":I.push(h+p.shift(),d+p.shift()),h+=p.shift(),d+=p.shift(),D="Q",I.push(h,d);break;case"T":S=h,C=d,"Q"===(x=l[l.length-1]).command&&(S=h+(h-x.points[0]),C=d+(d-x.points[1])),h=p.shift(),d=p.shift(),D="Q",I.push(S,C,h,d);break;case"t":S=h,C=d,"Q"===(x=l[l.length-1]).command&&(S=h+(h-x.points[0]),C=d+(d-x.points[1])),h+=p.shift(),d+=p.shift(),D="Q",I.push(S,C,h,d);break;case"A":T=p.shift(),M=p.shift(),P=p.shift(),E=p.shift(),O=p.shift(),k=h,A=d,h=p.shift(),d=p.shift(),D="A",I=this.convertEndpointToCenterParameterization(k,A,h,d,E,O,T,M,P);break;case"a":T=p.shift(),M=p.shift(),P=p.shift(),E=p.shift(),O=p.shift(),k=h,A=d,h+=p.shift(),d+=p.shift(),D="A",I=this.convertEndpointToCenterParameterization(k,A,h,d,E,O,T,M,P)}l.push({command:D||v,points:I,start:{x:z,y:F},pathLength:this.calcLength(z,F,D||v,I)})}"z"!==v&&"Z"!==v||l.push({command:"z",points:[],start:void 0,pathLength:0})}return l},e.calcLength=function(t,n,r,o){var l,c,h,d,path=e;switch(r){case"L":return path.getLineLength(t,n,o[0],o[1]);case"C":for(l=0,c=path.getPointOnCubicBezier(0,t,n,o[0],o[1],o[2],o[3],o[4],o[5]),d=.01;d<=1;d+=.01)h=path.getPointOnCubicBezier(d,t,n,o[0],o[1],o[2],o[3],o[4],o[5]),l+=path.getLineLength(c.x,c.y,h.x,h.y),c=h;return l;case"Q":for(l=0,c=path.getPointOnQuadraticBezier(0,t,n,o[0],o[1],o[2],o[3]),d=.01;d<=1;d+=.01)h=path.getPointOnQuadraticBezier(d,t,n,o[0],o[1],o[2],o[3]),l+=path.getLineLength(c.x,c.y,h.x,h.y),c=h;return l;case"A":l=0;var f=o[4],m=o[5],v=o[4]+m,y=Math.PI/180;
2if(Math.abs(f-v)<y&&(y=Math.abs(f-v)),c=path.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],f,0),m<0)for(d=f-y;d>v;d-=y)h=path.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],d,0),l+=path.getLineLength(c.x,c.y,h.x,h.y),c=h;else for(d=f+y;d<v;d+=y)h=path.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],d,0),l+=path.getLineLength(c.x,c.y,h.x,h.y),c=h;return h=path.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],v,0),l+=path.getLineLength(c.x,c.y,h.x,h.y)}return 0},e.convertEndpointToCenterParameterization=function(t,e,n,r,o,l,c,h,d){var f=d*(Math.PI/180),m=Math.cos(f)*(t-n)/2+Math.sin(f)*(e-r)/2,v=-1*Math.sin(f)*(t-n)/2+Math.cos(f)*(e-r)/2,y=m*m/(c*c)+v*v/(h*h);y>1&&(c*=Math.sqrt(y),h*=Math.sqrt(y));var _=Math.sqrt((c*c*(h*h)-c*c*(v*v)-h*h*(m*m))/(c*c*(v*v)+h*h*(m*m)));o===l&&(_*=-1),isNaN(_)&&(_=0);var w=_*c*v/h,x=_*-h*m/c,S=(t+n)/2+Math.cos(f)*w-Math.sin(f)*x,C=(e+r)/2+Math.sin(f)*w+Math.cos(f)*x,T=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},M=function(u,t){return(u[0]*t[0]+u[1]*t[1])/(T(u)*T(t))},P=function(u,t){return(u[0]*t[1]<u[1]*t[0]?-1:1)*Math.acos(M(u,t))},E=P([1,0],[(m-w)/c,(v-x)/h]),u=[(m-w)/c,(v-x)/h],O=[(-1*m-w)/c,(-1*v-x)/h],k=P(u,O);return M(u,O)<=-1&&(k=Math.PI),M(u,O)>=1&&(k=0),0===l&&k>0&&(k-=2*Math.PI),1===l&&k<0&&(k+=2*Math.PI),[S,C,c,h,E,k,f,l]},e}(h.Shape);e.Path=f,f.prototype.className="Path",f.prototype._attrsAffectingSize=["data"],d._registerNode(f),c.Factory.addGetterSetter(f,"data"),l.Collection.mapMethods(f)},269:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(9),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._sceneFunc=function(t){var e=this.cornerRadius(),n=this.width(),r=this.height();if(t.beginPath(),e){var o=0,l=0,c=0,h=0;"number"==typeof e?o=l=c=h=Math.min(e,n/2,r/2):(o=Math.min(e[0],n/2,r/2),l=Math.min(e[1],n/2,r/2),h=Math.min(e[2],n/2,r/2),c=Math.min(e[3],n/2,r/2)),t.moveTo(o,0),t.lineTo(n-l,0),t.arc(n-l,l,l,3*Math.PI/2,0,!1),t.lineTo(n,r-h),t.arc(n-h,r-h,h,0,Math.PI/2,!1),t.lineTo(c,r),t.arc(c,r-c,c,Math.PI/2,Math.PI,!1),t.lineTo(0,o),t.arc(o,o,o,Math.PI,3*Math.PI/2,!1)}else t.rect(0,0,n,r);t.closePath(),t.fillStrokeShape(this)},e}(h.Shape);e.Rect=f,f.prototype.className="Rect",d._registerNode(f),c.Factory.addGetterSetter(f,"cornerRadius",0),l.Collection.mapMethods(f)},270:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l,c=n(12),h=n(7),d=n(24),f=n(9),m=n(11),v=n(9),y="auto",_="justify",w="left",x="middle",S="normal",C=" ",T=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],M=T.length;function P(){return l||(l=c.Util.createCanvasElement().getContext("2d"))}String.prototype.trimRight;var E=function(t){function e(e){var n=t.call(this,function(t){return(t=t||{}).fillLinearGradientColorStops||t.fillRadialGradientColorStops||t.fillPatternImage||(t.fill=t.fill||"black"),t}(e))||this;n._partialTextX=0,n._partialTextY=0;for(var r=0;r<M;r++)n.on(T[r]+"Change.konva",n._setTextData);return n._setTextData(),n}return o(e,t),e.prototype._sceneFunc=function(t){var e,n=this.padding(),r=this.fontSize(),o=this.lineHeight()*r,l=this.textArr,c=l.length,h=this.verticalAlign(),d=0,f=this.align(),m=this.getWidth(),v=this.letterSpacing(),y=this.fill(),S=this.textDecoration(),C=-1!==S.indexOf("underline"),T=-1!==S.indexOf("line-through"),M=0,P=(M=o/2,0),E=0;for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",x),t.setAttr("textAlign",w),h===x?d=(this.getHeight()-c*o-2*n)/2:"bottom"===h&&(d=this.getHeight()-c*o-2*n),t.translate(n,d+n),e=0;e<c;e++){P=0,E=0;var O,k,A,D=l[e],text=D.text,I=D.width,z=e!==c-1;if(t.save(),"right"===f?P+=m-I-2*n:"center"===f&&(P+=(m-I-2*n)/2),C&&(t.save(),t.beginPath(),t.moveTo(P,M+E+Math.round(r/2)),k=0===(O=text.split(" ").length-1),A=f===_&&z&&!k?m-2*n:I,t.lineTo(P+Math.round(A),M+E+Math.round(r/2)),t.lineWidth=r/15,t.strokeStyle=y,t.stroke(),t.restore(
2)),T&&(t.save(),t.beginPath(),t.moveTo(P,M+E),k=0===(O=text.split(" ").length-1),A=f===_&&z&&!k?m-2*n:I,t.lineTo(P+Math.round(A),M+E),t.lineWidth=r/15,t.strokeStyle=y,t.stroke(),t.restore()),0!==v||f===_){O=text.split(" ").length-1;for(var li=0;li<text.length;li++){var F=text[li];" "===F&&e!==c-1&&f===_&&(P+=Math.floor((m-2*n-I)/O)),this._partialTextX=P,this._partialTextY=M+E,this._partialText=F,t.fillStrokeShape(this),P+=Math.round(this.measureSize(F).width)+v}}else this._partialTextX=P,this._partialTextY=M+E,this._partialText=text,t.fillStrokeShape(this);t.restore(),c>1&&(M+=o)}},e.prototype._hitFunc=function(t){var e=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)},e.prototype.setText=function(text){var t=c.Util._isString(text)?text:null==text?"":text+"";return this._setAttr("text",t),this},e.prototype.getWidth=function(){return this.attrs.width===y||void 0===this.attrs.width?this.getTextWidth()+2*this.padding():this.attrs.width},e.prototype.getHeight=function(){return this.attrs.height===y||void 0===this.attrs.height?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height},e.prototype.getTextWidth=function(){return this.textWidth},e.prototype.getTextHeight=function(){return c.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight},e.prototype.measureSize=function(text){var t,e=P(),n=this.fontSize();return e.save(),e.font=this._getContextFont(),t=e.measureText(text),e.restore(),{width:t.width,height:n}},e.prototype._getContextFont=function(){return f.Konva.UA.isIE?this.fontStyle()+C+this.fontSize()+"px "+this.fontFamily():this.fontStyle()+C+this.fontVariant()+C+this.fontSize()+"px "+this.fontFamily()},e.prototype._addTextLine=function(line){this.align()===_&&(line=line.trim());var t=this._getTextWidth(line);return this.textArr.push({text:line,width:t})},e.prototype._getTextWidth=function(text){var t=this.letterSpacing(),e=text.length;return P().measureText(text).width+(e?t*(e-1):0)},e.prototype._setTextData=function(){var t=this.text().split("\n"),e=+this.fontSize(),n=0,r=this.lineHeight()*e,o=this.attrs.width,l=this.attrs.height,c=o!==y&&void 0!==o,h=l!==y&&void 0!==l,d=this.padding(),f=o-2*d,m=l-2*d,v=0,_=this.wrap(),w="none"!==_,x="char"!==_&&w,S=this.ellipsis()&&!w;this.textArr=[],P().font=this._getContextFont();for(var T=S?this._getTextWidth("…"):0,i=0,M=t.length;i<M;++i){var line=t[i],E=this._getTextWidth(line);if(c&&E>f)for(;line.length>0;){for(var O=0,k=line.length,A="",D=0;O<k;){var I=O+k>>>1,z=line.slice(0,I+1),F=this._getTextWidth(z)+T;F<=f?(O=I+1,A=z+(S?"…":""),D=F):k=I}if(!A)break;if(x){var R,N=line[A.length];(R=(N===C||"-"===N)&&D<=f?A.length:Math.max(A.lastIndexOf(C),A.lastIndexOf("-"))+1)>0&&(O=R,A=A.slice(0,O),D=this._getTextWidth(A))}if(A=A.trimRight(),this._addTextLine(A),n=Math.max(n,D),v+=r,!w||h&&v+r>m)break;if((line=(line=line.slice(O)).trimLeft()).length>0&&(E=this._getTextWidth(line))<=f){this._addTextLine(line),v+=r,n=Math.max(n,E);break}}else this._addTextLine(line),v+=r,n=Math.max(n,E);if(h&&v+r>m)break}this.textHeight=e,this.textWidth=n},e.prototype.getStrokeScaleEnabled=function(){return!0},e}(d.Shape);e.Text=E,E.prototype._fillFunc=function(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)},E.prototype._strokeFunc=function(t){t.strokeText(this._partialText,this._partialTextX,this._partialTextY)},E.prototype.className="Text",E.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight"],v._registerNode(E),h.Factory.overWriteSetter(E,"width",m.getNumberOrAutoValidator()),h.Factory.overWriteSetter(E,"height",m.getNumberOrAutoValidator()),h.Factory.addGetterSetter(E,"fontFamily","Arial"),h.Factory.addGetterSetter(E,"fontSize",12,m.getNumberValidator()),h.Factory.addGetterSetter(E,"fontStyle",S),h.Factory.addGetterSetter(E,"fontVariant",S),h.Factory.addGetterSetter(E,"padding",0,m.getNumberValidator()),h.Factory.addGetterSetter(E,"align",w),h.Factory.addGetterSetter(E,"verticalAlign","top"),h.Factory.addGetterSetter(E,"lineHeight",1,m.getNumberValidator()),h.Factory.addGetterSetter(E,"wrap","word"),h.Factory.addGetterSetter(E,"ellipsis",!1),h.Factory.addGetterSetter(E,"letterSpacing",0,m.getNumberValidator()),h.Factory.addGetterSetter(E,"text","",m.getStringValidator()),h.Factory.addGetterSetter(E,"textDecoration",""),c.Collection.mapMethods(E)},290:function(t,e,n){"use strict";function r(t,e){return e=e||{},new Promise(function(n,r){var s=new XMLHttpRequest,o=[],u={},a=function t(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:t,headers:{keys:function(){return o},entries:function(){return o.map(function(t){return[t,s.getResponseHeader(t)]})},get:function(t){return s.getResponseHeader(t)},has:function(t){return null!=s.getResponseHeader(t)}}}};for(var i in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(t,e){u[e]||o.push(u[e]=e)}),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(i,e.headers[i]);s.send(e.body||null)})}n.d(e,"a",function(){return r})},292:function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function c(t,source,e){return t.concat(source).map(function(element){return l(element,e)})}function h(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(symbol){return Object.propertyIsEnumerable.call(t,symbol)}):[]}(t))}function d(object,t){try{return t in object}catch(t){return!1}}function f(t,source,e){var n={};return e.isMergeableObject(t)&&h(t).forEach(function(r){n[r]=l(t[r],e)}),h(source).forEach(function(r){(function(t,e){return d(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(d(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return m;var n=e.customMerge(t);return"function"==typeof n?n:m}(r,e)(t[r],source[r],e):n[r]=l(source[r],e))}),n}function m(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||c,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):f(t,source,e):l(source,e)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return m(t,n,e)},{})};var v=m;
2t.exports=v},293:function(t,e,n){var r;"undefined"!=typeof self&&self,t.exports=(r=n(2),function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var i={};i[n("b622")("toStringTag")]="z",t.exports="[object z]"===String(i)},"00fd":function(t,e,n){var r=n("9e69"),o=Object.prototype,i=o.hasOwnProperty,l=o.toString,a=r?r.toStringTag:void 0;function u(t){var e=i.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var o=l.call(t);return r&&(e?t[a]=n:delete t[a]),o}t.exports=u},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"03dd":function(t,e,n){var r=n("eac5"),o=n("57a5"),l=Object.prototype.hasOwnProperty;function a(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))l.call(t,n)&&"constructor"!=n&&e.push(n);return e}t.exports=a},"057f":function(t,e,n){var r=n("fc6a"),o=n("241c").f,i={}.toString,l="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(t){return l.slice()}};t.exports.f=function(t){return l&&"[object Window]"==i.call(t)?a(t):o(r(t))}},"06cf":function(t,e,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),l=n("fc6a"),a=n("c04e"),u=n("5135"),c=n("0cfb"),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=l(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},"07c7":function(t,e){function n(){return!1}t.exports=n},"087d":function(t,e){function n(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}t.exports=n},"08cc":function(t,e,n){var r=n("1a8c");function o(t){return t==t&&!r(t)}t.exports=o},"0b07":function(t,e,n){var r=n("34ac"),o=n("3698");function i(t,e){var n=o(t,e);return r(n)?n:void 0}t.exports=i},"0cfb":function(t,e,n){var r=n("83ab"),o=n("d039"),i=n("cc12");t.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},"0d24":function(t,e,n){(function(t){var r=n("2b3e"),o=n("07c7"),i=e&&!e.nodeType&&e,l=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=l&&l.exports===i?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;t.exports=s}).call(this,n("62e4")(t))},"0f40":function(t,e,n){var r=n("be56"),o=n("9aff"),i=n("6428"),l=parseFloat,a=Math.min,u=Math.random;function c(t,e,n){if(n&&"boolean"!=typeof n&&o(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=i(t),void 0===e?(e=t,t=0):e=i(e)),t>e){var c=t;t=e,e=c}if(n||t%1||e%1){var s=u();return a(t+s*(e-t+l("1e-"+((s+"").length-1))),e)}return r(t,e)}t.exports=c},1276:function(t,e,n){"use strict";var r=n("d784"),o=n("44e7"),i=n("825a"),l=n("1d80"),a=n("4840"),u=n("8aa5"),c=n("50c4"),s=n("14c3"),h=n("9263"),p=n("d039"),d=[].push,f=Math.min,m=4294967295,b=!p(function(){return!RegExp(m,"y")});r("split",2,function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(l(this)),i=void 0===n?m:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);for(var a,u,c,s=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,b=new RegExp(t.source,p+"g");(a=h.call(b,r))&&!((u=b.lastIndex)>f&&(s.push(r.slice(f,a.index)),a.length>1&&a.index<r.length&&d.apply(s,a.slice(1)),c=a[0].length,f=u,s.length>=i));)b.lastIndex===a.index&&b.lastIndex++;return f===r.length?!c&&b.test("")||s.push(""):s.push(r.slice(f)),s.length>i?s.slice(0,i):s}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=l(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var l=n(r,t,this,o,r!==e);if(l.done)return l.value;var h=i(t),p=String(this),d=a(h,RegExp),v=h.unicode,g=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(b?"y":"g"),y=new d(b?h:"^(?:"+h.source+")",g),_=void 0===o?m:o>>>0;if(0===_)return[];if(0===p.length)return null===s(y,p)?[p]:[];for(var w=0,x=0,S=[];x<p.length;){y.lastIndex=b?x:0;
2var C,T=s(y,b?p:p.slice(x));if(null===T||(C=f(c(y.lastIndex+(b?0:x)),p.length))===w)x=u(p,x,v);else{if(S.push(p.slice(w,x)),S.length===_)return S;for(var M=1;M<=T.length-1;M++)if(S.push(T[M]),S.length===_)return S;x=w=C}}return S.push(p.slice(w)),S}]},!b)},1290:function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},1310:function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},1368:function(t,e,n){var r=n("da03"),o=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function i(t){return!!o&&o in t}t.exports=i},"14c3":function(t,e,n){var r=n("c6b6"),o=n("9263");t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"159b":function(t,e,n){var r=n("da84"),o=n("fdbc"),i=n("17c2"),l=n("9112");for(var a in o){var u=r[a],c=u&&u.prototype;if(c&&c.forEach!==i)try{l(c,"forEach",i)}catch(t){c.forEach=i}}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,o=n("a640"),i=n("ae40"),l=o("forEach"),a=i("forEach");t.exports=l&&a?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},1838:function(t,e,n){var r=n("c05f"),o=n("9b02"),i=n("8604"),l=n("f608"),a=n("08cc"),u=n("20ec"),c=n("f4d6"),s=1,h=2;function p(t,e){return l(t)&&a(e)?u(c(t),e):function(n){var l=o(n,t);return void 0===l&&l===e?i(n,t):r(e,l,s|h)}}t.exports=p},"18d4":function(t,e,n){},"18d8":function(t,e,n){var r=n("234d"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,l=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)}),e});t.exports=l},"1a8c":function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c3c":function(t,e,n){var r=n("9e69"),o=n("2474"),i=n("9638"),l=n("a2be"),a=n("edfa"),u=n("ac41"),c=1,s=2,h="[object Boolean]",p="[object Date]",d="[object Error]",f="[object Map]",m="[object Number]",b="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",x=r?r.prototype:void 0,S=x?x.valueOf:void 0;function C(t,e,n,r,x,C,T){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case _:return!(t.byteLength!=e.byteLength||!C(new o(t),new o(e)));case h:case p:case m:return i(+t,+e);case d:return t.name==e.name&&t.message==e.message;case b:case g:return t==e+"";case f:var M=a;case v:var P=r&c;if(M||(M=u),t.size!=e.size&&!P)return!1;var E=T.get(t);if(E)return E==e;r|=s,T.set(t,e);var O=l(M(t),M(e),r,x,C,T);return T.delete(t),O;case y:if(S)return S.call(t)==S.call(e)}return!1}t.exports=C},"1c7e":function(t,e,n){var r=n("b622")("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},"1cec":function(t,e,n){var i=n("0b07")(n("2b3e"),"Promise");t.exports=i},"1d80":function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),o=n("b622"),i=n("2d00"),l=o("species");t.exports=function(t){return i>=51||!r(function(){var e=[];return(e.constructor={})[l]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},"1efc":function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},"1fc8":function(t,e,n){var r=n("4245");function o(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}t.exports=o},"20ec":function(t,e){function n(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}t.exports=n},"234d":function(t,e,n){var r=n("e380"),o=500;function i(t){var e=r(t,function(t){return n.size===o&&n.clear(),t}),n=e.cache;return e}t.exports=i},"23cb":function(t,e,n){var r=n("a691"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},"23e7":function(t,e,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),l=n("6eeb"),a=n("ce4e"),u=n("e893"),c=n("94ca");t.exports=function(t,e){var s,n,p,h,d,f=t.target,b=t.global,m=t.stat;if(s=b?r:m?r[f]||a(f,{}):(r[f]||{}).prototype)for(n in e){if(h=e[n],p=t.noTargetGet?(d=o(s,n))&&d.value:s[n],!c(b?n:f+(m?".":"#")+n,t.forced)&&void 0!==p){if(typeof h==typeof p)continue;u(h,p)}(t.sham||p&&p.sham)&&i(h,"sham",!0),l(s,n,h,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},2474:function(t,e,n){var r=n("2b3e").Uint8Array;t.exports=r},2478:function(t,e,n){var r=n("4245");function o(t){return r(this,t).get(t)}t.exports=o},2524:function(t,e,n){var r=n("6044"),o="__lodash_hash_undefined__";function i(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?o:e,this}t.exports=i},"253c":function(t,e,n){var r=n("3729"),o=n("1310"),i="[object Arguments]";function l(t){return o(t)&&r(t)==i}t.exports=l},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),o=n("825a"),i=n("d039"),l=n("ad6d"),a="toString",u=RegExp.prototype,c=u[a],s=i(function(){return"/a/b"!=c.call({source:"a",flags:"b"})}),h=c.name!=a;(s||h)&&r(RegExp.prototype,a,function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in u)?l.call(t):n)},{unsafe:!0})},"26e8":function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},"28c9":function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},"29f3":function(t,e){var n=Object.prototype.toString;function r(t){return n.call(t)}t.exports=r},"2b3e":function(t,e,n){var r=n("585a"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},"2d00":function(t,e,n){var r,o,i=n("da84"),l=n("342f"),a=i.process,u=a&&a.versions,c=u&&u.v8;c?o=(r=c.split("."))[0]+r[1]:l&&(!(r=l.match(/Edge\/(\d+)/))||r[1]>
2=74)&&(r=l.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},"2d7c":function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var l=t[n];e(l,n,t)&&(i[o++]=l)}return i}t.exports=n},"2fcc":function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},"30c9":function(t,e,n){var r=n("9520"),o=n("b218");function i(t){return null!=t&&o(t.length)&&!r(t)}t.exports=i},"32f4":function(t,e,n){var r=n("2d7c"),o=n("d327"),l=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),r(a(t),function(e){return l.call(t,e)}))}:o;t.exports=u},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"34ac":function(t,e,n){var r=n("9520"),o=n("1368"),i=n("1a8c"),l=n("dc57"),a=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,h=c.toString,p=s.hasOwnProperty,d=RegExp("^"+h.call(p).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(t){return!(!i(t)||o(t))&&(r(t)?d:u).test(l(t))}t.exports=f},"35a1":function(t,e,n){var r=n("f5df"),o=n("3f8c"),l=n("b622")("iterator");t.exports=function(t){if(null!=t)return t[l]||t["@@iterator"]||o[r(t)]}},3698:function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},3729:function(t,e,n){var r=n("9e69"),o=n("00fd"),i=n("29f3"),l="[object Null]",a="[object Undefined]",u=r?r.toStringTag:void 0;function c(t){return null==t?void 0===t?a:l:u&&u in Object(t)?o(t):i(t)}t.exports=c},"37e8":function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),l=n("df75");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=l(e),a=r.length,u=0;a>u;)o.f(t,n=r[u++],e[n]);return t}},"39ff":function(t,e,n){var i=n("0b07")(n("2b3e"),"WeakMap");t.exports=i},"3bb4":function(t,e,n){var r=n("08cc"),o=n("ec69");function i(t){for(var e=o(t),n=e.length;n--;){var i=e[n],l=t[i];e[n]=[i,l,r(l)]}return e}t.exports=i},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,o=n("69f3"),i=n("7dd0"),l="String Iterator",a=o.set,u=o.getterFor(l);i(String,"String",function(t){a(this,{type:l,string:String(t),index:0})},function(){var t,e=u(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})})},"3f8c":function(t,e){t.exports={}},4160:function(t,e,n){"use strict";var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},4245:function(t,e,n){var r=n("1290");function o(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}t.exports=o},4284:function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}t.exports=n},"428f":function(t,e,n){var r=n("da84");t.exports=r},"42a2":function(t,e,n){var r=n("b5a7"),o=n("79bc"),i=n("1cec"),l=n("c869"),a=n("39ff"),u=n("3729"),c=n("dc57"),s="[object Map]",h="[object Object]",p="[object Promise]",d="[object Set]",f="[object WeakMap]",m="[object DataView]",b=c(r),v=c(o),g=c(i),y=c(l),_=c(a),w=u;(r&&w(new r(new ArrayBuffer(1)))!=m||o&&w(new o)!=s||i&&w(i.resolve())!=p||l&&w(new l)!=d||a&&w(new a)!=f)&&(w=function(t){var e=u(t),n=e==h?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case b:return m;case v:return s;case g:return p;case y:return d;case _:return f}return e}),t.exports=w},"44ad":function(t,e,n){var r=n("d039"),o=n("c6b6"),i="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),l=r("unscopables"),a=Array.prototype;null==a[l]&&i.f(a,l,{configurable:!0,value:o(null)}),t.exports=function(t){a[l][t]=!0}},"44e7":function(t,e,n){var r=n("861d"),o=n("c6b6"),l=n("b622")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[l])?!!e:"RegExp"==o(t))}},4840:function(t,e,n){var r=n("825a"),o=n("1c0b"),l=n("b622")("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[l])?e:o(n)}},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"498a":function(t,e,n){"use strict";var r=n("23e7"),o=n("58a8").trim;r({target:"String",proto:!0,forced:n("c8d2")("trim")},{trim:function(){return o(this)}})},"49f4":function(t,e,n){var r=n("6044");function o(){this.__data__=r?r(null):{},this.size=0}t.exports=o},"4d64":function(t,e,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),l=function(t){return function(e,n,l){var a,u=r(e),c=o(u.length),s=i(l,c);if(t&&n!=n){for(;c>s;)if((a=u[s++])!=a)return!0}else for(;c>s;s++)if((t||s in u)&&u[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:l(!0),indexOf:l(!1)}},"4df4":function(t,e,n){"use strict";var r=n("0366"),o=n("7b0b"),i=n("9bdd"),l=n("e95a"),a=n("50c4"),u=n("8418"),c=n("35a1");t.exports=function(t){var e,n,s,h,p,d,f=o(t),m="function"==typeof this?this:Array,b=arguments.length,v=b>1?arguments[1]:void 0,g=void 0!==v,y=c(f),_=0;if(g&&(v=r(v,b>2?arguments[2]:void 0,2)),null==y||m==Array&&l(y))for(n=new m(e=a(f.length));e>_;_++)d=g?v(f[_],_):f[_],u(n,_,d);else for(p=(h=y.call(f)).next,n=new m;!(s=p.call(h)).done;_++)d=g?i(h,v,[s.value,_],!0):s.value,u(n,_,d);return n.length=_,n}},"50c4":function(t,e,n){var r=n("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"50d8":function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}t.exports=n},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5319:function(t,e,n){"use strict";var r=n("d784"),o=n("825a"),i=n("7b0b"),l=n("50c4"),a=n("a691"),u=n("1d80"),c=n("8aa5"),s=n("14c3"),h=Math.max,p=Math.min,d=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g,b=function(t){return void 0===t?t:String(t)};r("replace",2,function(t,e,n,r){var v=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=r.REPLACE_KEEPS_$0,y=v?"$":"$0";return[function(n,r){var o=u(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!v&&g||"string"==typeof r&&-1===r.indexOf(y)){var i=n(e,t,this,r);if(i.done)return i.value}var u=o(t),d=String(this),f="function"==typeof r;f||(r=String(r));var m=u.global;if(m){var w=u.unicode;u.lastIndex=0}for(var x=[];;){var S=s(u,d);if(null===S)break;if(x.push(S),!m)break;""===String(S[0])&&(u.lastIndex=c(d,l(u.lastIndex),w))}for(var C="",T=0,M=0;M<x.length;M++){S=x[M];for(var P=String(S[0]),E=h(p(a(S.index),d.length),0),O=[],k=1;k<S.length;k++)O.push(b(S[k]));var A=S.groups;if(f){var D=[P].concat(O,E,d);void 0!==A&&D.push(A);var I=String(r.apply(void 0,D))}else I=_(P,d,E,O,A,r);E>=T&&(C+=d.slice(T,E)+I,T=E+P.length)}return C+d.slice(T)}];function _(t,n,r,o,l,a){var u=r+t.length,c=o.length,s=m;return void 0!==l&&(l=i(l),s=f),e.call(a,s,function(e,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":a=l[i.slice(1,-1)];break;default:var s=+i;if(0===s)return e;if(s>c){var h=d(s/10);return 0===h?e:h<=c?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):e}a=o[s-1]}return void 0===a?"":a})}})},"55a3":function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),o=n("241c"),i=n("7418"),l=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(l(t)),n=i.f;return n?e.concat(n(t)):e}},"57a5":function(t,e,n){var r=n("91e9")(Object.keys,Object);t.exports=r},"585a":function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("c8ba"))},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),i="["+n("5899")+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),u=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(o,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e2e":function(t,e,n){var r=n("28c9"),o=n("69d5"),i=n("b4c0"),l=n("fba5"),a=n("67ca");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=l,u.prototype.set=a,t.exports=u},6044:function(t,e,n){var r=n("0b07")(Object,"create");t.exports=r},"60da":function(t,e,n){"use strict";var r=n("83ab"),o=n("d039"),i=n("df75"),l=n("7418"),a=n("d1e7"),u=n("7b0b"),c=n("44ad"),s=Object.assign,h=Object.defineProperty;t.exports=!s||o(function(){if(r&&1!==s({b:1},s(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||i(s({},e)).join("")!=o})?function(t,e){for(var n=u(t),o=arguments.length,s=1,h=l.f,p=a.f;o>s;)for(var d,f=c(arguments[s++]),m=h?i(f).concat(h(f)):i(f),b=m.length,v=0;b>v;)d=m[v++],r&&!p.call(f,d)||(n[d]=f[d]);return n}:s},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6428:function(t,e,n){var r=n("b4b0"),o=1/0,i=17976931348623157e292;function l(t){return t?(t=r(t))===o||t===-o?(t<0?-1:1)*i:t==t?t:0:0===t?t:0}t.exports=l},"642a":function(t,e,n){var r=n("966f"),o=n("3bb4"),i=n("20ec");function l(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}t.exports=l},6547:function(t,e,n){var r=n("a691"),o=n("1d80"),i=function(t){return function(e,n){var i,l,a=String(o(e)),u=r(n),c=a.length;return u<0||u>
2=c?t?"":void 0:(i=a.charCodeAt(u))<55296||i>56319||u+1===c||(l=a.charCodeAt(u+1))<56320||l>57343?t?a.charAt(u):i:t?a.slice(u,u+2):l-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},"656b":function(t,e,n){var r=n("e2e4"),o=n("f4d6");function i(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}t.exports=i},"65f0":function(t,e,n){var r=n("861d"),o=n("e8b5"),l=n("b622")("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[l])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},6747:function(t,e){var n=Array.isArray;t.exports=n},"67ca":function(t,e,n){var r=n("cb5a");function o(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}t.exports=o},"69d5":function(t,e,n){var r=n("cb5a"),i=Array.prototype.splice;function o(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}t.exports=o},"69f3":function(t,e,n){var r,o,i,l=n("7f9a"),a=n("da84"),u=n("861d"),c=n("9112"),s=n("5135"),h=n("f772"),p=n("d012"),d=a.WeakMap,f=function(t){return i(t)?o(t):r(t,{})},m=function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(l){var b=new d,v=b.get,g=b.has,y=b.set;r=function(t,e){return y.call(b,t,e),e},o=function(t){return v.call(b,t)||{}},i=function(t){return g.call(b,t)}}else{var _=h("state");p[_]=!0,r=function(t,e){return c(t,_,e),e},o=function(t){return s(t,_)?t[_]:{}},i=function(t){return s(t,_)}}t.exports={set:r,get:o,has:i,enforce:f,getterFor:m}},"6bd8":function(t,e,n){var r=n("badf"),o=n("ecf6");function i(t,e){return t&&t.length?o(t,r(e,2)):0}t.exports=i},"6eeb":function(t,e,n){var r=n("da84"),o=n("9112"),i=n("5135"),l=n("ce4e"),a=n("8925"),u=n("69f3"),c=u.get,s=u.enforce,h=String(String).split("String");(t.exports=function(t,e,n,a){var u=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),s(n).source=h.join("string"==typeof e?e:"")),t!==r?(u?!p&&t[e]&&(c=!0):delete t[e],c?t[e]=n:o(t,e,n)):c?t[e]=n:l(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||a(this)})},"6fcd":function(t,e,n){var r=n("50d8"),o=n("d370"),i=n("6747"),l=n("0d24"),a=n("c098"),u=n("73ac"),s=Object.prototype.hasOwnProperty;function c(t,e){var n=i(t),c=!n&&o(t),h=!n&&!c&&l(t),p=!n&&!c&&!h&&u(t),d=n||c||h||p,f=d?r(t.length,String):[],m=f.length;for(var b in t)!e&&!s.call(t,b)||d&&("length"==b||h&&("offset"==b||"parent"==b)||p&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||a(b,m))||f.push(b);return f}t.exports=c},7156:function(t,e,n){var r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var i,l;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(l=i.prototype)&&l!==n.prototype&&o(t,l),t}},"73ac":function(t,e,n){var r=n("743f"),o=n("b047"),i=n("99d3"),l=i&&i.isTypedArray,a=l?o(l):r;t.exports=a},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"743f":function(t,e,n){var r=n("3729"),o=n("b218"),i=n("1310"),l="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",s="[object Error]",h="[object Function]",p="[object Map]",d="[object Number]",f="[object Object]",m="[object RegExp]",b="[object Set]",v="[object String]",g="[object WeakMap]",y="[object ArrayBuffer]",_="[object DataView]",w="[object Float64Array]",x="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",T="[object Uint8Array]",M="[object Uint8ClampedArray]",P="[object Uint16Array]",E="[object Uint32Array]",O={};function k(t){return i(t)&&o(t.length)&&!!O[r(t)]}O["[object Float32Array]"]=O[w]=O[x]=O[S]=O[C]=O[T]=O[M]=O[P]=O[E]=!0,O[l]=O[a]=O[y]=O[u]=O[_]=O[c]=O[s]=O[h]=O[p]=O[d]=O[f]=O[m]=O[b]=O[v]=O[g]=!1,t.exports=k},"746f":function(t,e,n){var r=n("428f"),o=n("5135"),i=n("e538"),l=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||l(e,t,{value:i.f(t)})}},"76dd":function(t,e,n){var r=n("ce86");function o(t){return null==t?"":r(t)}t.exports=o},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
2ing","toString","valueOf"]},7948:function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}t.exports=n},"79bc":function(t,e,n){var i=n("0b07")(n("2b3e"),"Map");t.exports=i},"7a48":function(t,e,n){var r=n("6044"),i=Object.prototype.hasOwnProperty;function o(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}t.exports=o},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7b83":function(t,e,n){var r=n("7c64"),o=n("93ed"),i=n("2478"),l=n("a524"),a=n("1fc8");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=l,u.prototype.set=a,t.exports=u},"7b97":function(t,e,n){var r=n("7e64"),o=n("a2be"),i=n("1c3c"),l=n("b1e5"),a=n("42a2"),u=n("6747"),c=n("0d24"),s=n("73ac"),h=1,p="[object Arguments]",d="[object Array]",f="[object Object]",b=Object.prototype.hasOwnProperty;function m(t,e,n,m,v,g){var y=u(t),_=u(e),w=y?d:a(t),x=_?d:a(e),S=(w=w==p?f:w)==f,C=(x=x==p?f:x)==f,T=w==x;if(T&&c(t)){if(!c(e))return!1;y=!0,S=!1}if(T&&!S)return g||(g=new r),y||s(t)?o(t,e,n,m,v,g):i(t,e,w,n,m,v,g);if(!(n&h)){var M=S&&b.call(t,"__wrapped__"),P=C&&b.call(e,"__wrapped__");
2if(M||P){var E=M?t.value():t,O=P?e.value():e;return g||(g=new r),v(E,O,n,m,g)}}return!!T&&(g||(g=new r),l(t,e,n,m,v,g))}t.exports=m},"7c64":function(t,e,n){var r=n("e24b"),o=n("5e2e"),i=n("79bc");function l(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}t.exports=l},"7c73":function(t,e,n){var r,o=n("825a"),i=n("37e8"),l=n("7839"),a=n("d012"),u=n("1be4"),c=n("cc12"),s=n("f772"),h=">",p="<",d="prototype",f="script",m=s("IE_PROTO"),b=function(){},v=function(t){return p+f+h+t+p+"/"+f+h},g=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=c("iframe"),n="java"+f+":";return e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F},_=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}_=r?g(r):y();for(var t=l.length;t--;)delete _[d][l[t]];return _()};a[m]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(b[d]=o(t),n=new b,b[d]=null,n[m]=t):n=_(),void 0===e?n:i(n,e)}},"7d1f":function(t,e,n){var r=n("087d"),o=n("6747");function i(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}t.exports=i},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),l=n("d2bb"),a=n("d44e"),u=n("9112"),c=n("6eeb"),s=n("b622"),h=n("c430"),p=n("3f8c"),d=n("ae93"),f=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,b=s("iterator"),v="keys",g="values",y="entries",_=function(){return this};t.exports=function(t,e,n,s,d,w,x){o(n,e,s);var S,C,T,M=function(t){if(t===d&&A)return A;if(!m&&t in O)return O[t];switch(t){case v:case g:case y:return function(){return new n(this,t)}}return function(){return new n(this)}},P=e+" Iterator",E=!1,O=t.prototype,k=O[b]||O["@@iterator"]||d&&O[d],A=!m&&k||M(d),D="Array"==e&&O.entries||k;if(D&&(S=i(D.call(new t)),f!==Object.prototype&&S.next&&(h||i(S)===f||(l?l(S,f):"function"!=typeof S[b]&&u(S,b,_)),a(S,P,!0,!0),h&&(p[P]=_))),d==g&&k&&k.name!==g&&(E=!0,A=function(){return k.call(this)}),h&&!x||O[b]===A||u(O,b,A),p[e]=A,d)if(C={values:M(g),keys:w?A:M(v),entries:M(y)},x)for(T in C)(m||E||!(T in O))&&c(O,T,C[T]);else r({target:e,proto:!0,forced:m||E},C);return C}},"7e64":function(t,e,n){var r=n("5e2e"),o=n("efb6"),i=n("2fcc"),l=n("802a"),a=n("55a3"),u=n("d02c");function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=l,c.prototype.has=a,c.prototype.set=u,t.exports=c},"7ed2":function(t,e){var n="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,n),this}t.exports=r},"7f9a":function(t,e,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},"802a":function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},"81d5":function(t,e,n){"use strict";var r=n("7b0b"),o=n("23cb"),i=n("50c4");t.exports=function(t){for(var e=r(this),n=i(e.length),l=arguments.length,a=o(l>1?arguments[1]:void 0,n),u=l>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>a;)e[a++]=t;return e}},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},8418:function(t,e,n){"use strict";var r=n("c04e"),o=n("9bf2"),i=n("5c6c");t.exports=function(t,e,n){var l=r(e);l in t?o.f(t,l,i(0,n)):t[l]=n}},8604:function(t,e,n){var r=n("26e8"),o=n("e2c0");function i(t,e){return null!=t&&o(t,e,r)}t.exports=i},"861d":function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},8875:function(t,e,n){var r,o,i,l;"undefined"!=typeof self&&self,l=function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(t){var n,r,o,l=/@([^@]*):(\d+):(\d+)\s*$/gi,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t.stack)||l.exec(t.stack),u=a&&a[1]||!1,c=a&&a[2]||!1,s=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");u===s&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var p=0;p<h.length;p++){if("interactive"===h[p].readyState)return h[p];if(h[p].src===u)return h[p];if(u===s&&h[p].innerHTML&&h[p].innerHTML.trim()===o)return h[p]}return null}}return t},o=[],void 0===(i="function"==typeof(r=l)?r.apply(e,o):r)||(t.exports=i)},8925:function(t,e,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;
2t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8bbf":function(t,e){t.exports=r},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"91e9":function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},9263:function(t,e,n){"use strict";var r=n("ad6d"),o=n("9f7f"),i=RegExp.prototype.exec,l=String.prototype.replace,a=i,u=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),c=o.UNSUPPORTED_Y||o.BROKEN_CARET,s=void 0!==/()??/.exec("")[1];(u||s||c)&&(a=function(t){var e,n,o,a,h=this,p=c&&h.sticky,d=r.call(h),f=h.source,m=0,b=t;return p&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),b=String(t).slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==t[h.lastIndex-1])&&(f="(?: "+f+")",b=" "+b,m++),n=new RegExp("^(?:"+f+")",d)),s&&(n=new RegExp("^"+f+"$(?!\\s)",d)),u&&(e=h.lastIndex),o=i.call(p?n:h,b),p?o?(o.input=o.input.slice(m),o[0]=o[0].slice(m),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:u&&o&&(h.lastIndex=h.global?o.index+o[0].length:e),s&&o&&o.length>1&&l.call(o[0],n,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)}),o}),t.exports=a},"93ed":function(t,e,n){var r=n("4245");function o(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}t.exports=o},"94ca":function(t,e,n){var r=n("d039"),o=/#|\.prototype\./,i=function(t,e){var n=a[l(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},l=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},9520:function(t,e,n){var r=n("3729"),o=n("1a8c"),i="[object AsyncFunction]",l="[object Function]",a="[object GeneratorFunction]",u="[object Proxy]";function c(t){if(!o(t))return!1;var e=r(t);return e==l||e==a||e==i||e==u}t.exports=c},9638:function(t,e){function n(t,e){return t===e||t!=t&&e!=e}t.exports=n},"966f":function(t,e,n){var r=n("7e64"),o=n("c05f"),i=1,l=2;function a(t,e,n,a){var u=n.length,c=u,s=!a;if(null==t)return!c;for(t=Object(t);u--;){var h=n[u];if(s&&h[2]?h[1]!==t[h[0]]:!(h[0]in t))return!1}for(;++u<c;){var p=(h=n[u])[0],d=t[p],f=h[1];if(s&&h[2]){if(void 0===d&&!(p in t))return!1}else{var m=new r;if(a)var b=a(d,f,p,t,e,m);if(!(void 0===b?o(f,d,i|l,a,m):b))return!1}}return!0}t.exports=a},"99d3":function(t,e,n){(function(t){var r=n("585a"),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,n("62e4")(t))},"9aff":function(t,e,n){var r=n("9638"),o=n("30c9"),i=n("c098"),l=n("1a8c");function a(t,e,n){if(!l(n))return!1;var a=typeof e;return!!("number"==a?o(n)&&i(e,n.length):"string"==a&&e in n)&&r(n[e],t)}t.exports=a},"9b02":function(t,e,n){var r=n("656b");function o(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}t.exports=o},"9bdd":function(t,e,n){var r=n("825a");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},"9bf2":function(t,e,n){var r=n("83ab"),o=n("0cfb"),i=n("825a"),l=n("c04e"),a=Object.defineProperty;e.f=r?a:function(t,e,n){if(i(t),e=l(e,!0),i(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9e69":function(t,e,n){var r=n("2b3e").Symbol;t.exports=r},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,o=n("7c73"),i=n("5c6c"),l=n("d44e"),a=n("3f8c"),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),l(t,c,!1,!0),a[c]=u,t}},"9f7f":function(t,e,n){"use strict";var r=n("d039");function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r(function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),e.BROKEN_CARET=r(function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},a2be:function(t,e,n){var r=n("d612"),o=n("4284"),i=n("c584"),l=1,a=2;function u(t,e,n,u,c,s){var h=n&l,p=t.length,d=e.length;if(p!=d&&!(h&&d>p))return!1;var f=s.get(t),m=s.get(e);if(f&&m)return f==e&&m==t;
2var b=-1,v=!0,g=n&a?new r:void 0;for(s.set(t,e),s.set(e,t);++b<p;){var y=t[b],_=e[b];if(u)var w=h?u(_,y,b,e,t,s):u(y,_,b,t,e,s);if(void 0!==w){if(w)continue;v=!1;break}if(g){if(!o(e,function(t,e){if(!i(g,e)&&(y===t||c(y,t,n,u,s)))return g.push(e)})){v=!1;break}}else if(y!==_&&!c(y,_,n,u,s)){v=!1;break}}return s.delete(t),s.delete(e),v}t.exports=u},a4d3:function(t,e,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("d066"),l=n("c430"),a=n("83ab"),u=n("4930"),c=n("fdbf"),s=n("d039"),h=n("5135"),p=n("e8b5"),d=n("861d"),f=n("825a"),m=n("7b0b"),b=n("fc6a"),v=n("c04e"),g=n("5c6c"),y=n("7c73"),_=n("df75"),w=n("241c"),x=n("057f"),S=n("7418"),C=n("06cf"),T=n("9bf2"),M=n("d1e7"),P=n("9112"),E=n("6eeb"),O=n("5692"),k=n("f772"),A=n("d012"),D=n("90e3"),I=n("b622"),z=n("e538"),F=n("746f"),R=n("d44e"),N=n("69f3"),L=n("b727").forEach,j=k("hidden"),$="Symbol",G="prototype",Y=I("toPrimitive"),V=N.set,B=N.getterFor($),W=Object[G],U=o.Symbol,q=i("JSON","stringify"),H=C.f,X=T.f,K=x.f,Z=M.f,J=O("symbols"),Q=O("op-symbols"),tt=O("string-to-symbol-registry"),et=O("symbol-to-string-registry"),nt=O("wks"),rt=o.QObject,it=!rt||!rt[G]||!rt[G].findChild,at=a&&s(function(){return 7!=y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=H(W,e);r&&delete W[e],X(t,e,n),r&&t!==W&&X(W,e,r)}:X,ot=function(t,e){var n=J[t]=y(U[G]);return V(n,{type:$,tag:t,description:e}),a||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof U},lt=function(t,e,n){t===W&&lt(Q,e,n),f(t);var r=v(e,!0);return f(n),h(J,r)?(n.enumerable?(h(t,j)&&t[j][r]&&(t[j][r]=!1),n=y(n,{enumerable:g(0,!1)})):(h(t,j)||X(t,j,g(1,{})),t[j][r]=!0),at(t,r,n)):X(t,r,n)},ct=function(t,e){f(t);var n=b(e),r=_(n).concat(ft(n));return L(r,function(e){a&&!ht.call(n,e)||lt(t,e,n[e])}),t},ut=function(t,e){return void 0===e?y(t):ct(y(t),e)},ht=function(t){var e=v(t,!0),n=Z.call(this,e);return!(this===W&&h(J,e)&&!h(Q,e))&&(!(n||!h(this,e)||!h(J,e)||h(this,j)&&this[j][e])||n)},pt=function(t,e){var n=b(t),r=v(e,!0);if(n!==W||!h(J,r)||h(Q,r)){var o=H(n,r);return!o||!h(J,r)||h(n,j)&&n[j][r]||(o.enumerable=!0),o}},dt=function(t){var e=K(b(t)),n=[];return L(e,function(t){h(J,t)||h(A,t)||n.push(t)}),n},ft=function(t){var e=t===W,n=K(e?Q:b(t)),r=[];return L(n,function(t){!h(J,t)||e&&!h(W,t)||r.push(J[t])}),r};if(u||(U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=D(t),n=function(t){this===W&&n.call(Q,t),h(this,j)&&h(this[j],e)&&(this[j][e]=!1),at(this,e,g(1,t))};return a&&it&&at(W,e,{configurable:!0,set:n}),ot(e,t)},E(U[G],"toString",function(){return B(this).tag}),E(U,"withoutSetter",function(t){return ot(D(t),t)}),M.f=ht,T.f=lt,C.f=pt,w.f=x.f=dt,S.f=ft,z.f=function(t){return ot(I(t),t)},a&&(X(U[G],"description",{configurable:!0,get:function(){return B(this).description}}),l||E(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),L(_(nt),function(t){F(t)}),r({target:$,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=U(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(h(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!a},{create:ut,defineProperty:lt,defineProperties:ct,getOwnPropertyDescriptor:pt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:dt,getOwnPropertySymbols:ft}),r({target:"Object",stat:!0,forced:s(function(){S.f(1)})},{getOwnPropertySymbols:function(t){return S.f(m(t))}}),q){var gt=!u||s(function(){var t=U();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))});r({target:"JSON",stat:!0,forced:gt},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(d(e)||void 0!==t)&&!st(t))return p(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!st(e))return e}),o[1]=e,q.apply(null,o)}})}U[G][Y]||P(U[G],Y,U[G].valueOf),R(U,$),A[j]=!0},a524:function(t,e,n){var r=n("4245");function o(t){return r(this,t).has(t)}t.exports=o},a630:function(t,e,n){var r=n("23e7"),o=n("4df4"),l=!n("1c7e")(function(t){Array.from(t)});r({target:"Array",stat:!0,forced:l},{from:o})},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r(function(){n.call(null,e||function(){throw 1},1)})}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a994:function(t,e,n){var r=n("7d1f"),o=n("32f4"),i=n("ec69");function l(t){return r(t,i,o)}t.exports=l},a9e3:function(t,e,n){"use strict";var r=n("83ab"),o=n("da84"),i=n("94ca"),l=n("6eeb"),a=n("5135"),u=n("c6b6"),c=n("7156"),s=n("c04e"),h=n("d039"),p=n("7c73"),d=n("241c").f,f=n("06cf").f,m=n("9bf2").f,b=n("58a8").trim,v="Number",g=o[v],y=g.prototype,_=u(p(y))==v,w=function(t){var e,n,r,o,i,l,a,u,c=s(t,!1);if("string"==typeof c&&c.length>
22)if(43===(e=(c=b(c)).charCodeAt(0))||45===e){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(l=(i=c.slice(2)).length,a=0;a<l;a++)if((u=i.charCodeAt(a))<48||u>o)return NaN;return parseInt(i,r)}return+c};if(i(v,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var x,S=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof S&&(_?h(function(){y.valueOf.call(n)}):u(n)!=v)?c(new g(w(e)),n,S):w(e)},C=r?d(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;C.length>T;T++)a(g,x=C[T])&&!a(S,x)&&m(S,x,f(g,x));S.prototype=y,y.constructor=S,l(o,v,S)}},ac1f:function(t,e,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ac41:function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}t.exports=n},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ae40:function(t,e,n){var r=n("83ab"),o=n("d039"),i=n("5135"),l=Object.defineProperty,a={},u=function(t){throw t};t.exports=function(t,e){if(i(a,t))return a[t];e||(e={});var n=[][t],c=!!i(e,"ACCESSORS")&&e.ACCESSORS,s=i(e,0)?e[0]:u,h=i(e,1)?e[1]:void 0;return a[t]=!!n&&!o(function(){if(c&&!r)return!0;var t={length:-1};c?l(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,s,h)})}},ae93:function(t,e,n){"use strict";var r,o,i,l=n("e163"),a=n("9112"),u=n("5135"),c=n("b622"),s=n("c430"),h=c("iterator"),p=!1,d=function(){return this};[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),s||u(r,h)||a(r,h,d),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},b041:function(t,e,n){"use strict";var r=n("00ee"),o=n("f5df");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b047:function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},b0c0:function(t,e,n){var r=n("83ab"),o=n("9bf2").f,i=Function.prototype,l=i.toString,a=/^\s*function ([^ (]*)/,u="name";r&&!(u in i)&&o(i,u,{configurable:!0,get:function(){try{return l.call(this).match(a)[1]}catch(t){return""}}})},b1e5:function(t,e,n){var r=n("a994"),o=1,l=Object.prototype.hasOwnProperty;function a(t,e,n,i,a,u){var c=n&o,s=r(t),h=s.length;if(h!=r(e).length&&!c)return!1;for(var d=h;d--;){var f=s[d];if(!(c?f in e:l.call(e,f)))return!1}var b=u.get(t),m=u.get(e);if(b&&m)return b==e&&m==t;var g=!0;u.set(t,e),u.set(e,t);for(var v=c;++d<h;){var y=t[f=s[d]],_=e[f];if(i)var w=c?i(_,y,f,e,t,u):i(y,_,f,t,e,u);if(!(void 0===w?y===_||a(y,_,n,i,u):w)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var x=t.constructor,S=e.constructor;x==S||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S||(g=!1)}return u.delete(t),u.delete(e),g}t.exports=a},b218:function(t,e){var n=9007199254740991;function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}t.exports=r},b4b0:function(t,e,n){var r=n("1a8c"),o=n("ffd6"),i=NaN,l=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;function h(t){if("number"==typeof t)return t;if(o(t))return i;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var n=u.test(t);return n||c.test(t)?s(t.slice(2),n?2:8):a.test(t)?i:+t}t.exports=h},b4c0:function(t,e,n){var r=n("cb5a");function o(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}t.exports=o},b5a7:function(t,e,n){var i=n("0b07")(n("2b3e"),"DataView");t.exports=i},b622:function(t,e,n){var r=n("da84"),o=n("5692"),i=n("5135"),l=n("90e3"),a=n("4930"),u=n("fdbf"),c=o("wks"),s=r.Symbol,h=u?s:s&&s.withoutSetter||l;t.exports=function(t){return i(c,t)||(a&&i(s,t)?c[t]=s[t]:c[t]=h("Symbol."+t)),c[t]}},b727:function(t,e,n){var r=n("0366"),o=n("44ad"),i=n("7b0b"),l=n("50c4"),a=n("65f0"),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,s=4==t,h=6==t,p=5==t||h;return function(d,f,m,b){for(var v,g,y=i(d),_=o(y),w=r(f,m,3),x=l(_.length),S=0,C=b||a,T=e?C(d,x):n?C(d,0
2):void 0;x>S;S++)if((p||S in _)&&(g=w(v=_[S],S,y),t))if(e)T[S]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return S;case 2:u.call(T,v)}else if(s)return!1;return h?-1:c||s?s:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},baa5:function(t,e,n){var r=n("23e7"),o=n("e58c");r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},badf:function(t,e,n){var r=n("642a"),o=n("1838"),i=n("cd9d"),l=n("6747"),a=n("f9ce");function u(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?l(t)?o(t[0],t[1]):r(t):a(t)}t.exports=u},bbc0:function(t,e,n){var r=n("6044"),o="__lodash_hash_undefined__",l=Object.prototype.hasOwnProperty;function a(t){var e=this.__data__;if(r){var n=e[t];return n===o?void 0:n}return l.call(e,t)?e[t]:void 0}t.exports=a},be56:function(t,e){var n=Math.floor,r=Math.random;function o(t,e){return t+n(r()*(e-t+1))}t.exports=o},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c05f:function(t,e,n){var r=n("7b97"),o=n("1310");function i(t,e,n,l,a){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!=t&&e!=e:r(t,e,n,l,i,a))}t.exports=i},c098:function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function o(t,e){var o=typeof t;return!!(e=null==e?n:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}t.exports=o},c430:function(t,e){t.exports=!1},c584:function(t,e){function n(t,e){return t.has(e)}t.exports=n},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),o=n("ce4e"),i="__core-js_shared__",l=r[i]||o(i,{});t.exports=l},c740:function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").findIndex,i=n("44d2"),l=n("ae40"),a="findIndex",u=!0,c=l(a);a in[]&&Array(1)[a](function(){u=!1}),r({target:"Array",proto:!0,forced:u||!c},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},c869:function(t,e,n){var i=n("0b07")(n("2b3e"),"Set");t.exports=i},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},c8d2:function(t,e,n){var r=n("d039"),o=n("5899"),i="​…᠎";t.exports=function(t){return r(function(){return!!o[t]()||i[t]()!=i||o[t].name!==t})}},ca84:function(t,e,n){var r=n("5135"),o=n("fc6a"),i=n("4d64").indexOf,l=n("d012");t.exports=function(t,e){var n,a=o(t),u=0,c=[];for(n in a)!r(l,n)&&r(a,n)&&c.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~i(c,n)||c.push(n));return c}},cb29:function(t,e,n){var r=n("23e7"),o=n("81d5"),i=n("44d2");r({target:"Array",proto:!0},{fill:o}),i("fill")},cb5a:function(t,e,n){var r=n("9638");function o(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}t.exports=o},cc12:function(t,e,n){var r=n("da84"),o=n("861d"),i=r.document,l=o(i)&&o(i.createElement);t.exports=function(t){return l?i.createElement(t):{}}},cca6:function(t,e,n){var r=n("23e7"),o=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},cd9d:function(t,e){function n(t){return t}t.exports=n},ce4e:function(t,e,n){var r=n("da84"),o=n("9112");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},ce86:function(t,e,n){var r=n("9e69"),o=n("7948"),i=n("6747"),l=n("ffd6"),a=1/0,u=r?r.prototype:void 0,c=u?u.toString:void 0;function s(t){if("string"==typeof t)return t;if(i(t))return o(t,s)+"";if(l(t))return c?c.call(t):"";var e=t+"";return"0"==e&&1/t==-a?"-0":e}t.exports=s},d012:function(t,e){t.exports={}},d02c:function(t,e,n){var r=n("5e2e"),o=n("79bc"),i=n("7b83"),l=200;function a(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<l-1)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}t.exports=a},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},d066:function(t,e,n){var r=n("428f"),o=n("da84"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},d28b:function(t,e,n){n("746f")("iterator")},d2bb:function(t,e,n){var r=n("825a"),o=n("3bbe");
2t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},d327:function(t,e){function n(){return[]}t.exports=n},d370:function(t,e,n){var r=n("253c"),o=n("1310"),i=Object.prototype,l=i.hasOwnProperty,a=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&l.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},d3b7:function(t,e,n){var r=n("00ee"),o=n("6eeb"),i=n("b041");r||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,o=n("5135"),l=n("b622")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,l)&&r(t,l,{configurable:!0,value:e})}},d5d9:function(t,e,n){"use strict";var r=n("18d4");n.n(r).a},d612:function(t,e,n){var r=n("7b83"),o=n("7ed2"),i=n("dc0f");function l(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}l.prototype.add=l.prototype.push=o,l.prototype.has=i,t.exports=l},d784:function(t,e,n){"use strict";n("ac1f");var r=n("6eeb"),o=n("d039"),i=n("b622"),l=n("9263"),a=n("9112"),u=i("species"),c=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),s="$0"==="a".replace(/./,"$0"),h=i("replace"),p=!!/./[h]&&""===/./[h]("a","$0"),d=!o(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});t.exports=function(t,e,n,h){var f=i(t),m=!o(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),b=m&&!o(function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e});if(!m||!b||"replace"===t&&(!c||!s||p)||"split"===t&&!d){var v=/./[f],g=n(f,""[t],function(t,e,n,r,o){return e.exec===l?m&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),y=g[0],_=g[1];r(String.prototype,t,y),r(RegExp.prototype,f,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}h&&a(RegExp.prototype[f],"sham",!0)}},da03:function(t,e,n){var r=n("2b3e")["__core-js_shared__"];t.exports=r},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},dc0f:function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},dc57:function(t,e){var n=Function.prototype.toString;function r(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}t.exports=r},ddb0:function(t,e,n){var r=n("da84"),o=n("fdbc"),i=n("e260"),l=n("9112"),a=n("b622"),u=a("iterator"),c=a("toStringTag"),s=i.values;for(var h in o){var p=r[h],d=p&&p.prototype;if(d){if(d[u]!==s)try{l(d,u,s)}catch(t){d[u]=s}if(d[c]||l(d,c,h),o[h])for(var f in i)if(d[f]!==i[f])try{l(d,f,i[f])}catch(t){d[f]=i[f]}}}},df75:function(t,e,n){var r=n("ca84"),o=n("7839");t.exports=Object.keys||function(t){return r(t,o)}},e01a:function(t,e,n){"use strict";var r=n("23e7"),o=n("83ab"),i=n("da84"),l=n("5135"),a=n("861d"),u=n("9bf2").f,c=n("e893"),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var h={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new s(t):void 0===t?s():s(t);return""===t&&(h[e]=!0),e};c(p,s);var d=p.prototype=s.prototype;d.constructor=p;var f=d.toString,m="Symbol(test)"==String(s("test")),b=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=f.call(t);if(l(h,t))return"";var n=m?e.slice(7,-1):e.replace(b,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},e163:function(t,e,n){var r=n("5135"),o=n("7b0b"),i=n("f772"),l=n("e177"),a=i("IE_PROTO"),u=Object.prototype;
2t.exports=l?Object.getPrototypeOf:function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},e24b:function(t,e,n){var r=n("49f4"),o=n("1efc"),i=n("bbc0"),l=n("7a48"),a=n("2524");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=l,u.prototype.set=a,t.exports=u},e260:function(t,e,n){"use strict";var r=n("fc6a"),o=n("44d2"),i=n("3f8c"),l=n("69f3"),a=n("7dd0"),u="Array Iterator",c=l.set,s=l.getterFor(u);t.exports=a(Array,"Array",function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})},function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e2c0:function(t,e,n){var r=n("e2e4"),o=n("d370"),i=n("6747"),l=n("c098"),a=n("b218"),u=n("f4d6");function c(t,e,n){for(var c=-1,s=(e=r(e,t)).length,h=!1;++c<s;){var p=u(e[c]);if(!(h=null!=t&&n(t,p)))break;t=t[p]}return h||++c!=s?h:!!(s=null==t?0:t.length)&&a(s)&&l(p,s)&&(i(t)||o(t))}t.exports=c},e2e4:function(t,e,n){var r=n("6747"),o=n("f608"),i=n("18d8"),l=n("76dd");function a(t,e){return r(t)?t:o(t,e)?[t]:i(l(t))}t.exports=a},e380:function(t,e,n){var r=n("7b83"),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var l=t.apply(this,r);return n.cache=i.set(o,l)||i,l};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},e3f8:function(t,e,n){var r=n("656b");function o(t){return function(e){return r(e,t)}}t.exports=o},e538:function(t,e,n){var r=n("b622");e.f=r},e58c:function(t,e,n){"use strict";var r=n("fc6a"),o=n("a691"),i=n("50c4"),l=n("a640"),a=n("ae40"),u=Math.min,c=[].lastIndexOf,s=!!c&&1/[1].lastIndexOf(1,-0)<0,h=l("lastIndexOf"),p=a("indexOf",{ACCESSORS:!0,1:0}),d=s||!h||!p;t.exports=d?function(t){if(s)return c.apply(this,arguments)||0;var e=r(this),n=i(e.length),l=n-1;for(arguments.length>1&&(l=u(l,o(arguments[1]))),l<0&&(l=n+l);l>=0;l--)if(l in e&&e[l]===t)return l||0;return-1}:c},e893:function(t,e,n){var r=n("5135"),o=n("56ef"),i=n("06cf"),l=n("9bf2");t.exports=function(t,e){for(var n=o(e),a=l.f,u=i.f,c=0;c<n.length;c++){var s=n[c];r(t,s)||a(t,s,u(e,s))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e95a:function(t,e,n){var r=n("b622"),o=n("3f8c"),i=r("iterator"),l=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||l[i]===t)}},eac5:function(t,e){var n=Object.prototype;function r(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}t.exports=r},ec69:function(t,e,n){var r=n("6fcd"),o=n("03dd"),i=n("30c9");function l(t){return i(t)?r(t):o(t)}t.exports=l},ecf6:function(t,e){function n(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}t.exports=n},edfa:function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}t.exports=n},ef5d:function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},efb6:function(t,e,n){var r=n("5e2e");function o(){this.__data__=new r,this.size=0}t.exports=o},f4d6:function(t,e,n){var r=n("ffd6"),o=1/0;function i(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}t.exports=i},f5df:function(t,e,n){var r=n("00ee"),o=n("c6b6"),l=n("b622")("toStringTag"),a="Arguments"==o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(t){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),l))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},f608:function(t,e,n){var r=n("6747"),o=n("ffd6"),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;function a(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||l.test(t)||!i.test(t)||null!=e&&t in Object(e)}t.exports=a},f772:function(t,e,n){var r=n("5692"),o=n("90e3"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},f9ce:function(t,e,n){var r=n("ef5d"),o=n("e3f8"),i=n("f608"),l=n("f4d6");function a(t){return i(t)?r(l(t)):o(t)}t.exports=a},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!=typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n("b0c0");var l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fw-container"},[n("div",{staticClass:"fw-wheel",style:t.rotateStyle,on:{transitionend:t.onRotateEnd,webkitTransitionend:t.onRotateEnd}},["canvas"===t.type?n("canvas",{ref:"wheel",attrs:{width:2*t.canvasConfig.radius,height:2*t.canvasConfig.radius}}):t._t("wheel")],2),n("div",{staticClass:"fw-btn"},["canvas"===t.type?n("div",{staticClass:"fw-btn__btn",style:{width:t.canvasConfig.btnWidth+"px",height:t.canvasConfig.btnWidth+"px"},on:{click:t.handleClick}},[t._v(" "+t._s(t.canvasConfig.btnText)+" ")]):n("div",{staticClass:"fw-btn__image",on:{click:t.handleClick}},[t._t("button")],2)])])},a=[];function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t){if(Array.isArray(t))return u(t)}function s(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function h(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t){return c(t)||s(t)||h(t)||p()}n("cb29"),n("c740"),n("4160"),n("baa5"),n("a9e3"),n("cca6"),n("ac1f"),n("5319"),n("1276"),n("498a"),n("159b"),n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0"),n("fb6a"),n("25f0");var f=n("8bbf"),m=n.n(f),b=n("6bd8"),v=n.n(b),g=n("0f40"),y=n.n(g),_={radius:250,textRadius:190,textLength:6,textDirection:"horizontal",lineHeight:20,borderWidth:0,borderColor:"transparent",btnText:"GO",btnWidth:140,fontSize:34};function w(t,e){for(var n=[];""!==t;){var r=t.substr(0,e);if(""!==t.charAt(e)&&" "!==t.charAt(e)){var o=r.lastIndexOf(" ");-1!==o&&(r=r.substr(0,o))}t=t.replace(r,"").trim(),n.push(r)}return n}var x=m.a.extend({name:"FortuneWheel",props:{type:{type:String,default:"canvas"},useWeight:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},verify:{type:Boolean,default:!1},canvas:{type:Object,default:function(){return _}},duration:{type:Number,default:6e3},timingFun:{type:String,default:"cubic-bezier(0.36, 0.95, 0.64, 1)"},angleBase:{type:Number,default:10},prizeId:{type:Number,default:0},prizes:{type:Array,required:!0,default:function(){return[]}}},data:function(){return{isRotating:!1,rotateEndDeg:0,prizeRes:{}}},computed:{canvasConfig:function(){return Object.assign(_,this.canvas)},probabilityTotal:function(){return this.useWeight?100:v()(this.prizes,function(t){return t.probability||0})},prizesIdArr:function(){var t=this,e=[];
2return this.prizes.forEach(function(n){var r=t.useWeight?n.weight||0:(n.probability||0)*t.decimalSpaces,o=new Array(r).fill(n.id);e.push.apply(e,d(o))}),e},decimalSpaces:function(){if(this.useWeight)return 0;var t=d(this.prizes).sort(function(t,e){var n=String(t.probability).split(".")[1],r=String(e.probability).split(".")[1],o=n?n.length:0;return(r?r.length:0)-o}),e=String(t[0].probability).split(".")[1],n=e?e.length:0;return[1,10,100,1e3,1e4][n>4?4:n]},rotateStyle:function(){return{"-webkit-transform":"rotateZ(".concat(this.rotateEndDeg,"deg)"),transform:"rotateZ(".concat(this.rotateEndDeg,"deg)"),"-webkit-transition-duration":"".concat(this.rotateDuration,"s"),"transition-duration":"".concat(this.rotateDuration,"s"),"-webkit-transition-timing-function:":this.timingFun,"transition-timing-function":this.timingFun}},rotateDuration:function(){return this.isRotating?this.duration/1e3:0},rotateBase:function(){var t=360*this.angleBase;return this.angleBase<0&&(t-=360),t},canRotate:function(){return!this.disabled&&!this.isRotating&&100===this.probabilityTotal}},watch:{prizeId:function(t){if(this.isRotating){var e=this.getTargetDeg(t);this.angleBase<0&&(e-=360);var n=this.rotateEndDeg,r=360*this.angleBase+e,o=360*Math.floor((r-n)/360);this.angleBase>=0?r+=Math.abs(o):r+=-360-o,this.rotateEndDeg=r}}},created:function(){this.checkProbability()},mounted:function(){"canvas"===this.type&&this.drawCanvas()},methods:{checkProbability:function(){if(100!==this.probabilityTotal)throw new Error("Prizes Is Error: Sum of probabilities is not 100!");return!0},drawCanvas:function(){var t=this,e=this.$refs.wheel;if(e.getContext){var n=this.canvasConfig,r=n.radius,o=n.textRadius,i=n.borderWidth,l=n.borderColor,a=n.fontSize,u=Math.PI/(this.prizes.length/2),c=e.getContext("2d");c.clearRect(0,0,2*r,2*r),c.strokeStyle=l,c.lineWidth=2*i,c.font="".concat(a,"px Arial"),this.prizes.forEach(function(e,n){var l=n*u-Math.PI/2;c.fillStyle=e.bgColor,c.beginPath(),c.arc(r,r,r-i,l,l+u,!1),c.stroke(),c.arc(r,r,0,l+u,l,!0),c.fill(),c.save(),c.fillStyle=e.color,c.translate(r+Math.cos(l+u/2)*o,r+Math.sin(l+u/2)*o),t.drawPrizeText(c,l,u,e.name),c.restore()})}},drawPrizeText:function(t,e,n,r){var o=this.canvasConfig,i=o.lineHeight,l=o.textLength,a=o.textDirection,u=w(r,l);null!==u&&("vertical"===a?t.rotate(e+n/2+Math.PI):t.rotate(e+n/2+Math.PI/2),u.forEach(function(e,n){var r=-t.measureText(e).width/2,o=(n+1)*i;"vertical"===a&&(r=0,o=(n+1)*i-u.length*i/2),t.fillText(e,r,o)}))},handleClick:function(){this.canRotate&&(this.verify?this.$emit("rotateStart",this.onRotateStart):(this.$emit("rotateStart"),this.onRotateStart()))},onRotateStart:function(){this.isRotating=!0;var t=this.prizeId||this.getRandomPrize();this.rotateEndDeg=this.rotateBase+this.getTargetDeg(t)},onRotateEnd:function(){this.isRotating=!1,this.rotateEndDeg%=360,this.$emit("rotateEnd",this.prizeRes)},getRandomPrize:function(){var t=this.prizesIdArr.length;return this.prizesIdArr[y()(0,t-1)]},getTargetDeg:function(t){var e=360/this.prizes.length,n=this.prizes.findIndex(function(e){return e.id===t});return this.prizeRes=this.prizes[n],360-(e*n+e/2)}}}),S=x;function C(t,e,n,r,o,i,l,a){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),l?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},c._ssrRegister=u):o&&(u=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var s=c.render;c.render=function(t,e){return u.call(e),s(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:c}}n("d5d9");var T=C(S,l,a,!1,null,"e84d09d6",null).exports;T.install=function(t){t.component(T.name,T)};var M=T;e.default=M},fb6a:function(t,e,n){"use strict";var r=n("23e7"),o=n("861d"),i=n("e8b5"),l=n("23cb"),a=n("50c4"),u=n("fc6a"),c=n("8418"),s=n("b622"),h=n("1dde"),p=n("ae40"),d=h("slice"),f=p("slice",{ACCESSORS:!0,0:0,1:2}),m=s("species"),b=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!d||!f},{slice:function(t,e){var n,r,s,h=u(this),p=a(h.length),d=l(t,p),f=l(void 0===e?p:e,p);if(i(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[m])&&(n=void 0):n=void 0,n===Array||void 0===n))return b.call(h,d,f);for(r=new(void 0===n?Array:n)(v(f-d,0)),s=0;d<f;d++,s++)d in h&&c(r,s,h[d]);return r.length=s,r}})},fba5:function(t,e,n){var r=n("cb5a");function o(t){return r(this.__data__,t)>-1}
2t.exports=o},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},ffd6:function(t,e,n){var r=n("3729"),o=n("1310"),i="[object Symbol]";function l(t){return"symbol"==typeof t||o(t)&&r(t)==i}t.exports=l}}))},294:function(t,e,n){"use strict";n.r(e),n.d(e,"getImage",function(){return h}),n.d(e,"supportsAlias",function(){return d});var r=n(4),o=n(118);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){Object(r.a)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var h=(t,e,n)=>c(c({},Object(o.getImage)(t,e,n)),{},{isStatic:!0}),d=!0},295:function(t,e,n){"use strict";(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},r(t)}function o(t,e){if(!t.vueAxiosInstalled){var n=h(e)?function(t){return{axios:t,$http:t}}(e):e;if(function(t){return"object"===r(t)&&Object.keys(t).every(function(e){return h(t[e])})}(n)){var o=function(t){return t&&t.version&&Number(t.version.split(".")[0])}(t);if(o){var i=o<3?l:c;Object.keys(n).forEach(function(e){i(t,e,n[e])}),t.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either <axios_instance> or { <registration_key>: <axios_instance> }")}}function l(t,e,n){Object.defineProperty(t.prototype,e,{get:function(){return n}}),t[e]=n}function c(t,e,n){t.config.globalProperties[e]=n,t[e]=n}function h(t){return t&&"function"==typeof t.get&&"function"==typeof t.post}n.d(e,"a",function(){return o}),"object"==("undefined"==typeof exports?"undefined":r(exports))?t.exports=o:"function"==typeof define&&n(504)?define([],function(){return o}):window.Vue&&window.axios&&window.Vue.use&&Vue.use(o,window.axios)}).call(this,n(503)(t))},296:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(object,t){return Object.prototype.hasOwnProperty.call(object,t)},n.p="",n(n.s="fb15")}({"27c2":function(t,e,n){(e=n("4bad")(!1)).push([t.i,".vue-star-rating-star[data-v-fde73a0c]{display:inline-block}.vue-star-rating-pointer[data-v-fde73a0c]{cursor:pointer}.vue-star-rating[data-v-fde73a0c]{display:flex;align-items:center}.vue-star-rating-inline[data-v-fde73a0c]{display:inline-flex}.vue-star-rating-rating-text[data-v-fde73a0c]{margin-left:7px}.vue-star-rating-rtl[data-v-fde73a0c]{direction:rtl}.vue-star-rating-rtl .vue-star-rating-rating-text[data-v-fde73a0c]{margin-right:10px;direction:rtl}.sr-only[data-v-fde73a0c]{position:absolute;
2left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}",""]),t.exports=e},"2b2b":function(t,e,n){"use strict";var r=n("3c76");n.n(r).a},"3c76":function(t,e,n){var content=n("27c2");"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n("499e").default)("af45d76c",content,!0,{sourceMap:!1,shadowMode:!1})},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],l=o[0],c={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[l]?r[l].parts.push(c):n.push(r[l]={id:l,parts:[c]})}return n}n.r(e),n.d(e,"default",function(){return _});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l={},head=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,h=0,d=!1,f=function(){},m=null,v="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function _(t,e,n,o){d=n,m=o||{};var c=r(t,e);return w(c),function(e){for(var n=[],i=0;i<c.length;i++){var o=c[i];(h=l[o.id]).refs--,n.push(h)}e?w(c=r(t,e)):c=[];for(i=0;i<n.length;i++){var h;if(0===(h=n[i]).refs){for(var d=0;d<h.parts.length;d++)h.parts[d]();delete l[h.id]}}}}function w(t){for(var i=0;i<t.length;i++){var e=t[i],n=l[e.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](e.parts[r]);for(;r<e.parts.length;r++)n.parts.push(S(e.parts[r]));n.parts.length>e.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;r<e.parts.length;r++)o.push(S(e.parts[r]));l[e.id]={id:e.id,refs:1,parts:o}}}}function x(){var t=document.createElement("style");return t.type="text/css",head.appendChild(t),t}function S(t){var e,n,r=document.querySelector("style["+v+'~="'+t.id+'"]');if(r){if(d)return f;r.parentNode.removeChild(r)}if(y){var o=h++;r=c||(c=x()),e=M.bind(null,r,o,!1),n=M.bind(null,r,o,!0)}else r=x(),e=P.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var C,T=(C=[],function(t,e){return C[t]=e,C.filter(Boolean).join("\n")});function M(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=T(e,o);else{var l=document.createTextNode(o),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(l,c[e]):t.appendChild(l)}}function P(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),m.ssrId&&t.setAttribute(v,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4bad":function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var content=function(t,e){var content=t[1]||"",n=t[3];if(!n)return content;if(e&&"function"==typeof btoa){var r=(l=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(data," */")),o=n.sources.map(function(source){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(source," */")});return[content].concat(o).concat([r]).join("\n")}var l,c,data;return[content].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content}).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(o[l]=!0)}for(var c=0;c<t.length;c++){var h=[].concat(t[c]);r&&o[h[0]]||(n&&(h[2]?h[2]="".concat(n," and ").concat(h[2]):h[2]=n),e.push(h))}},e}},"70a0":function(t,e,n){var content=n("812a");"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n("499e").default)("4599b915",content,!0,{sourceMap:!1,shadowMode:!1})},"812a":function(t,e,n){(e=n("4bad")(!1)).push([t.i,".vue-star-rating-star[data-v-ef4bc576]{overflow:visible!important}.vue-star-rating-star-rotate[data-v-ef4bc576]{transition:all .25s}.vue-star-rating-star-rotate[data-v-ef4bc576]:hover{transition:transform .25s;transform:rotate(-15deg) scale(1.3)}",""]),t.exports=e},8875:function(t,e,n){var r,o,l;"undefined"!=typeof self&&self,o=[],void 0===(l="function"==typeof(r=function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");
2if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(t){var n,r,o,l=/@([^@]*):(\d+):(\d+)\s*$/gi,c=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t.stack)||l.exec(t.stack),h=c&&c[1]||!1,line=c&&c[2]||!1,d=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");h===d&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(line-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var i=0;i<f.length;i++){if("interactive"===f[i].readyState)return f[i];if(f[i].src===h)return f[i];if(h===d&&f[i].innerHTML&&f[i].innerHTML.trim()===o)return f[i]}return null}}return t})?r.apply(e,o):r)||(t.exports=l)},ab73:function(t,e,n){"use strict";var r=n("70a0");n.n(r).a},d4aa:function(t,e){t.exports=class{constructor(t){this.color=t}parseAlphaColor(){return/^rgba\((\d{1,3}%?\s*,\s*){3}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseRgba():/^hsla\(\d+\s*,\s*([\d.]+%\s*,\s*){2}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseHsla():/^#([0-9A-Fa-f]{4}|[0-9A-Fa-f]{8})$/.test(this.color)?this.parseAlphaHex():/^transparent$/.test(this.color)?this.parseTransparent
2():{color:this.color,opacity:"1"}}parseRgba(){return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:this.color.match(/\.\d+|[01](?=\))/)[0]}}parseHsla(){return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:this.color.match(/\.\d+|[01](?=\))/)[0]}}parseAlphaHex(){return{color:5===this.color.length?this.color.substring(0,4):this.color.substring(0,7),opacity:5===this.color.length?(parseInt(this.color.substring(4,5)+this.color.substring(4,5),16)/255).toFixed(2):(parseInt(this.color.substring(7,9),16)/255).toFixed(2)}}parseTransparent(){return{color:"#fff",opacity:0}}}},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!=typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var l=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(n.p=l[1])}var c=n("d4aa"),h=n.n(c),d={name:"Star",props:{fill:{type:Number,default:0},points:{type:Array,default:()=>[]},size:{type:Number,default:50},starId:{type:Number,required:!0},activeColor:{type:String,required:!0},inactiveColor:{type:String,required:!0},borderColor:{type:String,default:"#000"},activeBorderColor:{type:String,default:"#000"},borderWidth:{type:Number,default:0}
2,roundedCorners:{type:Boolean,default:!1},rtl:{type:Boolean,default:!1},glow:{type:Number,default:0},glowColor:{type:String,default:null,required:!1},animate:{type:Boolean,default:!1}},data:()=>({starPoints:[19.8,2.2,6.6,43.56,39.6,17.16,0,17.16,33,43.56],grad:"",glowId:"",isStarActive:!0}),computed:{starPointsToString(){return this.starPoints.join(",")},gradId(){return"url(#"+this.grad+")"},starSize(){const t=this.roundedCorners&&this.borderWidth<=0?parseInt(this.size)-parseInt(this.border):this.size;return parseInt(t)+parseInt(this.border)},starFill(){return this.rtl?100-this.fill+"%":this.fill+"%"},border(){return this.roundedCorners&&this.borderWidth<=0?6:this.borderWidth},getBorderColor(){return this.roundedCorners&&this.borderWidth<=0?this.fill<=0?this.inactiveColor:this.activeColor:this.fill<=0?this.borderColor:this.activeBorderColor},maxSize(){return this.starPoints.reduce(function(a,b){return Math.max(a,b)})},viewBox(){return"0 0 "+this.maxSize+" "+this.maxSize},shouldAnimate(){return this.animate&&this.isStarActive},strokeLinejoin(){return this.roundedCorners?"round":"miter"}},created(){this.starPoints=this.points.length?this.points:this.starPoints,this.calculatePoints(),this.grad=this.getRandomId(),this.glowId=this.getRandomId()},methods:{mouseMoving(t){"undefined"!==t.touchAction&&this.$emit("star-mouse-move",{event:t,position:this.getPosition(t),id:this.starId})},touchStart(){this.$nextTick(()=>{this.isStarActive=!0})},touchEnd(){this.$nextTick(()=>{this.isStarActive=!1})},getPosition(t){var e=.92*this.size;const n=this.rtl?Math.min(t.offsetX,45):Math.max(t.offsetX,1);var r=Math.round(100/e*n);return Math.min(r,100)},selected(t){this.$emit("star-selected",{id:this.starId,position:this.getPosition(t)})},getRandomId:()=>Math.random().toString(36).substring(7),calculatePoints(){this.starPoints=this.starPoints.map((t,i)=>{const e=i%2==0?1.5*this.border:0;return this.size/this.maxSize*t+e})},getColor:t=>new h.a(t).parseAlphaColor().color,getOpacity:t=>new h.a(t).parseAlphaColor().opacity}};n("ab73");function f(t,e,n,r,o,l,c,h){var d,f="function"==typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),l&&(f._scopeId="data-v-"+l),c?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},f._ssrRegister=d):o&&(d=h?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(f.functional){f._injectStyles=d;var m=f.render;f.render=function(t,e){return d.call(e),m(t,e)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,d):[d]}return{exports:t,options:f}}var m={components:{star:f(d,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:["vue-star-rating-star",{"vue-star-rating-star-rotate":t.shouldAnimate}],attrs:{height:t.starSize,width:t.starSize,viewBox:t.viewBox},on:{mousemove:t.mouseMoving,click:t.selected,touchstart:t.touchStart,touchend:t.touchEnd}},[n("linearGradient",{attrs:{id:t.grad,x1:"0",x2:"100%",y1:"0",y2:"0"}},[n("stop",{attrs:{offset:t.starFill,"stop-color":t.rtl?t.getColor(t.inactiveColor):t.getColor(t.activeColor),"stop-opacity":t.rtl?t.getOpacity(t.inactiveColor):t.getOpacity(t.activeColor)}}),n("stop",{attrs:{offset:t.starFill,"stop-color":t.rtl?t.getColor(t.activeColor):t.getColor(t.inactiveColor),"stop-opacity":t.rtl?t.getOpacity(t.activeColor):t.getOpacity(t.inactiveColor)}})],1),n("filter",{attrs:{id:t.glowId,height:"130%",width:"130%",filterUnits:"userSpaceOnUse"}},[n("feGaussianBlur",{attrs:{stdDeviation:t.glow,result:"coloredBlur"}}),n("feMerge",[n("feMergeNode",{attrs:{in:"coloredBlur"}}),n("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1),t.glowColor&&t.glow>0?n("polygon",{directives:[{name:"show",rawName:"v-show",value:t.fill>1,expression:"fill > 1"}],attrs:{points:t.starPointsToString,fill:t.gradId,stroke:t.glowColor,filter:"url(#"+t.glowId+")","stroke-width":t.border}}):t._e(),n("polygon",{attrs:{points:t.starPointsToString,fill:t.gradId,stroke:t.getBorderColor,"stroke-width":t.border,"stroke-linejoin":t.strokeLinejoin}}),n("polygon",{attrs:{points:t.starPointsToString,fill:t.gradId}})],1)},[],!1,null,"ef4bc576",null).exports},model:{prop:"rating",event:"rating-selected"},props:{increment:{type:Number,default:1},rating:{type:Number,default:0}
vendor: 4,553 bytes, line 2
2,roundStartRating:{type:Boolean,default:!0},activeColor:{type:[String,Array],default:"#ffd055"},inactiveColor:{type:String,default:"#d8d8d8"},maxRating:{type:Number,default:5},starPoints:{type:Array,default:()=>[]},starSize:{type:Number,default:50},showRating:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},textClass:{type:String,default:""},inline:{type:Boolean,default:!1},borderColor:{type:String,default:"#999"},activeBorderColor:{type:[String,Array],default:null},borderWidth:{type:Number,default:0},roundedCorners:{type:Boolean,default:!1},padding:{type:Number,default:0},rtl:{type:Boolean,default:!1},fixedPoints:{type:Number,default:null},glow:{type:Number,default:0},glowColor:{type:String,default:"#fff"},clearable:{type:Boolean,default:!1},activeOnClick:{type:Boolean,default:!1},animate:{type:Boolean,default:!1}},data:()=>({step:0,fillLevel:[],currentRating:0,selectedRating:0,ratingSelected:!1}),computed:{formattedRating(){return null===this.fixedPoints?this.currentRating:this.currentRating.toFixed(this.fixedPoints)},shouldRound(){return this.ratingSelected||this.roundStartRating},margin(){return this.padding+this.borderWidth},activeColors(){return Array.isArray(this.activeColor)?this.padColors(this.activeColor,this.maxRating,this.activeColor.slice(-1)[0]):new Array(this.maxRating).fill(this.activeColor)},currentActiveColor(){return this.activeOnClick?this.selectedRating>0?this.activeColors[Math.ceil(this.selectedRating)-1]:this.inactiveColor:this.currentRating>0?this.activeColors[Math.ceil(this.currentRating)-1]:this.inactiveColor},activeBorderColors(){if(Array.isArray(this.activeBorderColor))return this.padColors(this.activeBorderColor,this.maxRating,this.activeBorderColor.slice(-1)[0]);let t=this.activeBorderColor?this.activeBorderColor:this.borderColor;return new Array(this.maxRating).fill(t)},currentActiveBorderColor(){return this.activeOnClick?this.selectedRating>0?this.activeBorderColors[Math.ceil(this.selectedRating)-1]:this.borderColor:this.currentRating>0?this.activeBorderColors[Math.ceil(this.currentRating)-1]:this.borderColor}},watch:{rating(t){this.currentRating=t,this.selectedRating=t,this.createStars(this.shouldRound)}},created(){this.step=100*this.increment,this.currentRating=this.rating,this.selectedRating=this.currentRating,this.createStars(this.roundStartRating)},methods:{setRating(t,e){if(!this.readOnly){const n=this.rtl?(100-t.position)/100:t.position/100;this.currentRating=(t.id+n-1).toFixed(2),this.currentRating=this.currentRating>this.maxRating?this.maxRating:this.currentRating,e?(this.createStars(!0,!0),this.clearable&&this.currentRating===this.selectedRating?this.selectedRating=0:this.selectedRating=this.currentRating,this.$emit("rating-selected",this.selectedRating),this.ratingSelected=!0):(this.createStars(!0,!this.activeOnClick),this.$emit("current-rating",this.currentRating))}},resetRating(){this.readOnly||(this.currentRating=this.selectedRating,this.createStars(this.shouldRound))},createStars(t=!0,e=!0){t&&this.round();for(var i=0;i<this.maxRating;i++){let t=0;i<this.currentRating&&(t=this.currentRating-i>1?100:100*(this.currentRating-i)),e&&(this.fillLevel[i]=Math.round(t))}},round(){var t=1/this.increment;this.currentRating=Math.min(this.maxRating,Math.ceil(this.currentRating*t)/t)},padColors:(t,e,n)=>Object.assign(new Array(e).fill(n),t)}},v=(n("2b2b"),f(m,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vue-star-rating",{"vue-star-rating-rtl":t.rtl},{"vue-star-rating-inline":t.inline}]},[n("div",{staticClass:"sr-only"},[t._t("screen-reader",[n("span",[t._v("Rated "+t._s(t.selectedRating)+" stars out of "+t._s(t.maxRating))])],{rating:t.selectedRating,stars:t.maxRating})],2),n("div",{staticClass:"vue-star-rating",on:{mouseleave:t.resetRating}},[t._l(t.maxRating,function(e){return n("span",{key:e,class:[{"vue-star-rating-pointer":!t.readOnly},"vue-star-rating-star"],style:{"margin-right":t.margin+"px"}},[n("star",{attrs:{fill:t.fillLevel[e-1],size:t.starSize,points:t.starPoints,"star-id":e,step:t.step,"active-color":t.currentActiveColor,"inactive-color":t.inactiveColor,"border-color":t.borderColor,"active-border-color":t.currentActiveBorderColor,"border-width":t.borderWidth,"rounded-corners":t.roundedCorners,rtl:t.rtl,glow:t.glow,"glow-color":t.glowColor,animate:t.animate},on:{"star-selected":function(e){return t.setRating(e,!0)},"star-mouse-move":t.setRating}})],1)}),t.showRating?n("span",{class:["vue-star-rating-rating-text",t.textClass]},[t._v(" "+t._s(t.formattedRating))]):t._e()],2)])}
2,[],!1,null,"fde73a0c",null).exports);e.default=v}})},30:function(t,e,n){"use strict";var r={};!function main(t,e,n,r){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),l="function"==typeof Path2D&&"function"==typeof DOMMatrix,c=function(){if(!t.OffscreenCanvas)return!1;try{var canvas=new OffscreenCanvas(1,1),e=canvas.getContext("2d");e.fillRect(0,0,1,1);var n=canvas.transferToImageBitmap();e.createPattern(n,"no-repeat")}catch(t){return!1}return!0}();function h(){}function d(n){var r=e.exports.Promise,o=void 0!==r?r:t.Promise;return"function"==typeof o?new o(n):(n(h,h),null)}var f,map,m,v,y,_,w,x,S,C,T,M=(f=c,map=new Map,{transform:function(t){if(f)return t;if(map.has(t))return map.get(t);var canvas=new OffscreenCanvas(t.width,t.height);return canvas.getContext("2d").drawImage(t,0,0),map.set(t,canvas),canvas},clear:function(){map.clear()}}),P=(y=Math.floor(1e3/60),_={},w=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(m=function(t){var e=Math.random();return _[e]=requestAnimationFrame(function n(time){w===time||w+y-1<time?(w=time,delete _[e],t()):_[e]=requestAnimationFrame(n)}),e},v=function(t){_[t]&&cancelAnimationFrame(_[t])}):(m=function(t){return setTimeout(t,y)},v=function(t){return clearTimeout(t)}),{frame:m,cancel:v}),E=(C={},function(){if(x)return x;if(!n&&o){var code=["var CONFETTI, SIZE = {}, module = {};","("+main.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join("\n");try{x=new Worker(URL.createObjectURL(new Blob([code])))}catch(t){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",t),null}!function(t){function e(e,n){t.postMessage({options:e||{},callback:n})}t.init=function(canvas){var e=canvas.transferControlToOffscreen();t.postMessage({canvas:e},[e])},t.fire=function(n,r,o){if(S)return e(n,null),S;var l=Math.random().toString(36).slice(2);return S=d(function(r){function c(e){e.data.callback===l&&(delete C[l],t.removeEventListener("message",c),S=null,M.clear(),o(),r())}t.addEventListener("message",c),e(n,l),C[l]=c.bind(null,{data:{callback:l}})})},t.reset=function(){for(var e in t.postMessage({reset:!0}),C)C[e](),delete C[e]}}(x)}return x}),O={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function k(t,e,n){return function(t,e){return e?e(t):t}(t&&null!=t[e]?t[e]:O[e],n)}function A(t){return t<0?0:Math.floor(t)}function D(t,e){return Math.floor(Math.random()*(e-t))+t}function I(t){return parseInt(t,16)}function z(t){return t.map(F)}function F(t){var e=String(t).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:I(e.substring(0,2)),g:I(e.substring(2,4)),b:I(e.substring(4,6))}}function R(canvas){canvas.width=document.documentElement.clientWidth,canvas.height=document.documentElement.clientHeight}function N(canvas){var rect=canvas.getBoundingClientRect();canvas.width=rect.width,canvas.height=rect.height}function L(t){var e=t.angle*(Math.PI/180),n=t.spread*(Math.PI/180);return{x:t.x,y:t.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*t.startVelocity+Math.random()*t.startVelocity,angle2D:-e+(.5*n-Math.random()*n),tiltAngle:(.5*Math.random()+.25)
2*Math.PI,color:t.color,shape:t.shape,tick:0,totalTicks:t.ticks,decay:t.decay,drift:t.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*t.gravity,ovalScalar:.6,scalar:t.scalar,flat:t.flat}}function j(t,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);var progress=e.tick++/e.totalTicks,n=e.x+e.random*e.tiltCos,r=e.y+e.random*e.tiltSin,o=e.wobbleX+e.random*e.tiltCos,c=e.wobbleY+e.random*e.tiltSin;if(t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-progress)+")",t.beginPath(),l&&"path"===e.shape.type&&"string"==typeof e.shape.path&&Array.isArray(e.shape.matrix))t.fill(function(t,e,n,r,o,l,c){var h=new Path2D(t),d=new Path2D;d.addPath(h,new DOMMatrix(e));var f=new Path2D;return f.addPath(d,new DOMMatrix([Math.cos(c)*o,Math.sin(c)*o,-Math.sin(c)*l,Math.cos(c)*l,n,r])),f}(e.shape.path,e.shape.matrix,e.x,e.y,.1*Math.abs(o-n),.1*Math.abs(c-r),Math.PI/10*e.wobble));else if("bitmap"===e.shape.type){var h=Math.PI/10*e.wobble,d=.1*Math.abs(o-n),f=.1*Math.abs(c-r),m=e.shape.bitmap.width*e.scalar,v=e.shape.bitmap.height*e.scalar,y=new DOMMatrix([Math.cos(h)*d,Math.sin(h)*d,-Math.sin(h)*f,Math.cos(h)*f,e.x,e.y]);y.multiplySelf(new DOMMatrix(e.shape.matrix));var pattern=t.createPattern(M.transform(e.shape.bitmap),"no-repeat");pattern.setTransform(y),t.globalAlpha=1-progress,t.fillStyle=pattern,t.fillRect(e.x-m/2,e.y-v/2,m,v),t.globalAlpha=1}else if("circle"===e.shape)t.ellipse?t.ellipse(e.x,e.y,Math.abs(o-n)*e.ovalScalar,Math.abs(c-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):function(t,e,n,r,o,l,c,h,d){t.save(),t.translate(e,n),t.rotate(l),t.scale(r,o),t.arc(0,0,1,c,h,d),t.restore()}(t,e.x,e.y,Math.abs(o-n)*e.ovalScalar,Math.abs(c-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI);else if("star"===e.shape)for(var _=Math.PI/2*3,w=4*e.scalar,x=8*e.scalar,S=e.x,C=e.y,T=5,P=Math.PI/T;T--;)S=e.x+Math.cos(_)*x,C=e.y+Math.sin(_)*x,t.lineTo(S,C),_+=P,S=e.x+Math.cos(_)*w,C=e.y+Math.sin(_)*w,t.lineTo(S,C),_+=P;else t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(r)),t.lineTo(Math.floor(o),Math.floor(c)),t.lineTo(Math.floor(n),Math.floor(e.wobbleY));return t.closePath(),t.fill(),e.tick<e.totalTicks}function $(canvas,e){var l,c=!canvas,h=!!k(e||{},"resize"),f=!1,m=k(e,"disableForReducedMotion",Boolean),v=o&&!!k(e||{},"useWorker")?E():null,y=c?R:N,_=!(!canvas||!v)&&!!canvas.__confetti_initialized,w="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function x(t,e,o){for(var c=k(t,"particleCount",A),h=k(t,"angle",Number),f=k(t,"spread",Number),m=k(t,"startVelocity",Number),v=k(t,"decay",Number),_=k(t,"gravity",Number),w=k(t,"drift",Number),x=k(t,"colors",z),S=k(t,"ticks",Number),C=k(t,"shapes"),T=k(t,"scalar"),E=!!k(t,"flat"),O=function(t){var e=k(t,"origin",Object);return e.x=k(e,"x",Number),e.y=k(e,"y",Number),e}(t),I=c,F=[],R=canvas.width*O.x,N=canvas.height*O.y;I--;)F.push(L({x:R,y:N,angle:h,spread:f,startVelocity:m,color:x[I%x.length],shape:C[D(0,C.length)],ticks:S,decay:v,gravity:_,drift:w,scalar:T,flat:E}));return l?l.addFettis(F):(l=function(canvas,t,e,o,l){var c,h,f=t.slice(),m=canvas.getContext("2d"),v=d(function(t){function d(){c=h=null,m.clearRect(0,0,o.width,o.height),M.clear(),l(),t()}c=P.frame(function t(){!n||o.width===r.width&&o.height===r.height||(o.width=canvas.width=r.width,o.height=canvas.height=r.height),o.width||o.height||(e(canvas),o.width=canvas.width,o.height=canvas.height),m.clearRect(0,0,o.width,o.height),(f=f.filter(function(t){return j(m,t)})).length?c=P.frame(t):d()}),h=d});return{addFettis:function(t){return f=f.concat(t),v},canvas:canvas,promise:v,reset:function(){c&&P.cancel(c),h&&h()}}}(canvas,F,y,e,o),l.promise)}function S(e){var n=m||k(e,"disableForReducedMotion",Boolean),r=k(e,"zIndex",Number);if(n&&w)return d(function(t){t()});c&&l?canvas=l.canvas:c&&!canvas&&(canvas=function(t){var canvas=document.createElement("canvas");return canvas.style.position="fixed",canvas.style.top="0px",canvas.style.left="0px",canvas.style.pointerEvents="none",canvas.style.zIndex=t,canvas}(r),document.body.appendChild(canvas)),h&&!_&&y(canvas);var o={width:canvas.width,height:canvas.height};function S(){if(v){var t={getBoundingClientRect:function(){if(!c)return canvas.getBoundingClientRect()}};return y(t),void v.postMessage({resize:{width:t.width,height:t.height}})}o.width=o.height=null}function C(){l=null,h&&(f=!1,t.removeEventListener("resize",S)),c&&canvas&&(document.body.contains(canvas)&&document.body.removeChild(canvas),canvas=null,_=!1)}return v&&!_&&v.init(canvas),_=!0,v&&(canvas.__confetti_initialized=!0),h&&!f&&(f=!0,t.addEventListener("resize",S,!1)),v?v.fire(e,o,C):x(e,o,C)}return S.reset=function(){v&&v.reset(),l&&l.reset()},S}function G(){return T||(T=$(null,{useWorker:!0,resize:!0})),T}e.exports=function(){return G().apply(this,arguments)},e.exports.reset=function(){G().reset()},e.exports.create=$,e.exports.shapeFromPath=function(t){if(!l)throw new Error("path confetti are not supported in this browser");var path,e;"string"==typeof t?path=t:(path=t.path,e=t.matrix);var n=new Path2D(path),r=document.createElement("canvas").getContext("2d");if(!e){for(var o,c,h=1e3,d=h,f=h,m=0,v=0,y=0;y<h;y+=2)for(var _=0;_<h;_+=2)r.isPointInPath(n,y,_,"nonzero")&&(d=Math.min(d,y),f=Math.min(f,_),m=Math.max(m,y),v=Math.max(v,_));o=m-d,c=v-f;var w=Math.min(10/o,10/c);e=[w,0,0,w,-Math.round(o/2+d)*w,-Math.round(c/2+f)*w]}return{type:"path",path:path,matrix:e}},e.exports.shapeFromText=function(t){var text,e=1,n="#000000",r='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof t?text=t:(text=t.text,e="scalar"in t?t.scalar:e,r="fontFamily"in t?t.fontFamily:r,n="c
2olor"in t?t.color:n);var o=10*e,l=o+"px "+r,canvas=new OffscreenCanvas(o,o),c=canvas.getContext("2d");c.font=l;var h=c.measureText(text),d=Math.ceil(h.actualBoundingBoxRight+h.actualBoundingBoxLeft),f=Math.ceil(h.actualBoundingBoxAscent+h.actualBoundingBoxDescent),m=h.actualBoundingBoxLeft+2,v=h.actualBoundingBoxAscent+2;d+=4,f+=4,(c=(canvas=new OffscreenCanvas(d,f)).getContext("2d")).font=l,c.fillStyle=n,c.fillText(text,m,v);var y=1/e;return{type:"bitmap",bitmap:canvas.transferToImageBitmap(),matrix:[y,0,0,y,-d*y/2,-f*y/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),r,!1),e.a=r.exports;r.exports.create},315:function(t,e,n){(function(t){t.installComponents=function(component,t){var n="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(n.components=component.exports.options.components),n.components=n.components||{},t)n.components[i]=n.components[i]||t[i];n.functional&&function(component,t){if(component.exports[e])return;component.exports[e]=!0;var n=component.exports.render;component.exports.render=function(e,r){return n(e,Object.assign({},r,{_c:function(e,a,b){return r._c(t[e]||e,a,b)}}))}}(component,n.components)};var e="_functionalComponents"}).call(this,n(48))},4:function(t,e,n){"use strict";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},r(t)}function o(t){var i=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(i)?i:i+""}function l(t,e,n){return(e=o(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return l})},42:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return l}),n.d(e,"c",function(){return c});n(15),n(125),n(26),n(27),n(213),n(36),n(286),n(17);function r(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/[?#]/).shift().split("/").pop().split(".").pop()}function o(map){return t=>t?map[t]||t:map.missingValue}
2function l(){var{formatter:t,keyMap:e,joinWith:n="/",valueMap:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t||(t=(t,e)=>"".concat(t,"=").concat(e)),e&&"function"!=typeof e&&(e=o(e));var map=r||{};return Object.keys(map).forEach(t=>{"function"!=typeof map[t]&&(map[t]=o(map[t]))}),function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(r).filter(t=>{var[e,n]=t;return void 0!==n}).map(n=>{var[o,l]=n,c=map[o];return"function"==typeof c&&(l=c(r[o])),o="function"==typeof e?e(o):o,t(o,l)}).join(n)}}function c(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"number"==typeof input?input:"string"==typeof input&&input.replace("px","").match(/^\d+$/g)?parseInt(input,10):void 0}},436:function(t,e){t.exports=function(t,e,n){return e<=t&&t<=n}},437:function(t,e,n){const{vector:r}=n(51);t.exports={asImageMetadata:function(t){return t instanceof HTMLImageElement||t instanceof HTMLCanvasElement?{content:t,offset:r(1,1),scale:1}:t}}},438:function(t,e,n){n(115),n(46);const r=n(263);t.exports=class extends r{initialize(canvas,t){canvas.__nullLayer__={drawn:!1,figures:0}}draw(canvas){canvas.__nullLayer__.drawn=!0}sketch(canvas,t,e,n){canvas.__nullLayer__.figures++}}},439:function(t,e,n){let r;try{r=n(440)}catch(t){r={Stage:class{constructor(t){throw new Error("Konva not loaded")}}}}n(115),n(114),n(46);const o=n(56),{vector:l,...c}=n(51),h=n(263);t.exports=class extends h{initialize(canvas,t){var e=new r.Stage({container:t,width:canvas.width,height:canvas.height,draggable:!canvas.fixed});this._initializeLayer(e,canvas)}_initializeLayer(t,canvas){var e=new r.Layer;t.add(e),canvas.__konvaLayer__=e}draw(canvas){canvas.__konvaLayer__.draw()}reinitialize(canvas){const t=canvas.__konvaLayer__,e=t.getStage();t.destroy(),this._initializeLayer(e,canvas)}resize(canvas,t,e){const n=canvas.__konvaLayer__.getStage();n.width(t),n.height(e)}scale(canvas,t){canvas.__konvaLayer__.getStage().scale(t)}sketch(canvas,t,figure,e){figure.group=new r.Group({x:t.metadata.currentPosition.x,y:t.metadata.currentPosition.y,draggable:!t.metadata.fixed,dragBoundFunc:canvas.preventOffstageDrag?e=>{const n=c.minus(l(canvas.width,canvas.height),t.size.radius);return c.max(c.min(e,n),t.size.radius)}:null}),figure.shape=new r.Line({points:e.draw(t,t.diameter,canvas.borderFill),bezier:e.isBezier(),tension:e.isBezier()?null:canvas.lineSoftness,stroke:t.metadata.strokeColor||canvas.strokeColor,strokeWidth:canvas.strokeWidth,closed:!0,...c.multiply(t.radius,-1)}),this.fill(canvas,t,figure),figure.group.add(figure.shape),canvas.__konvaLayer__.add(figure.group)}fill(canvas,t,figure){const image=canvas.imageMetadataFor(t);figure.shape.fill(image?null:t.metadata.color||"black"),figure.shape.fillPatternImage(image&&image.content),figure.shape.fillPatternScale(image&&{x:image.scale,y:image.scale}),figure.shape.fillPatternOffset(image&&c.divide(image.offset,image.scale))}label(t,e,figure){figure.label=new r.Text({...c.minus({x:e.metadata.label.x||figure.group.width()/2,y:e.metadata.label.y||figure.group.height()/2},e.radius),text:e.metadata.label.text,fontSize:e.metadata.label.fontSize,fontFamily:e.metadata.label.fontFamily||"Sans Serif",fill:e.metadata.label.color||"white"}),figure.group.add(figure.label)}physicalTranslate(t,e,n){e.x(n.centralAnchor.x),e.y(n.centralAnchor.y)}logicalTranslate(t,e,n){c.update(e.metadata.currentPosition,n.x(),n.y())}onDrag(canvas,t,e,n){e.on("mouseover",()=>{document.body.style.cursor="pointer"}),e.on("mouseout",()=>{document.body.style.cursor="default"}),e.on("dragmove",()=>{let[r,l]=function(t,e){return o.diff(e.x(),e.y(),t.metadata.currentPosition.x,t.metadata.currentPosition.y)}(t,e);e.zIndex(canvas.figuresCount-1),n(r,l)})}onDragEnd(t,e,n,r){n.on("dragend",()=>{r()})}registerKeyboardGestures(canvas,t){const e=canvas.__konvaLayer__.getStage().container();e.tabIndex=-1,this._registerKeyDown(canvas,e,t),this._registerKeyUp(canvas,e,t)}_registerKeyDown(canvas,t,e){t.addEventListener("keydown",function(t){for(let n in e)t.keyCode==n&&e[n](canvas.puzzle)})}_registerKeyUp(canvas,t,e){t.addEventListener("keyup",function(t){for(let n in e)t.keyCode==n&&canvas.puzzle.tryDisconnectionWhileDragging()})}}},440:function(t,e,n){var r=n(441).Konva;r._injectGlobal(r),e.default=r,t.exports=e.default},441:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r=n(442),o=n(447),l=n(448),c=n(449),h=n(450),d=n(451),f=n(452),m=n(267),v=n(268),y=n(269),_=n(453),w=n(454),x=n(455),S=n(456),C=n(270),T=n(457),M=n(458),P=n(459),E=n(460),O=n(461),k=n(462),A=n(463),D=n(464),I=n(465),z=n(466),F=n(467),R=n(468),N=n(469),L=n(470),j=n(471),$=n(472),G=n(473),Y=n(474),V=n(475),B=n(476),W=n(477),U=n(478);e.Konva=r.Konva.Util._assign(r.Konva,{Arc:o.Arc,Arrow:l.Arrow,Circle:c.Circle,Ellipse:h.Ellipse,Image:d.Image,Label:f.Label,Tag:f.Tag,Line:m.Line,Path:v.Path,Rect:y.Rect,RegularPolygon:_.RegularPolygon,Ring:w.Ring,Sprite:x.Sprite,Star:S.Star,Text:C.Text,TextPath:T.TextPath,Transformer:M.Transformer,Wedge:P.Wedge,Filters:{Blur:E.Blur,Brighten:O.Brighten,Contrast:k.Contrast,Emboss:A.Emboss,Enhance:D.Enhance,Grayscale:I.Grayscale,HSL:z.HSL,HSV:F.HSV,Invert:R.Invert,Kaleidoscope:N.Kaleidoscope,Mask:L.Mask,Noise:j.Noise,Pixelate:$.Pixelate,Posterize:G.Posterize,RGB:Y.RGB,RGBA:V.RGBA,Sepia:B.Sepia,Solarize:W.Solarize,Threshold:U.Threshold}})},442:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),o=n(12),l=n(21),c=n(75),h=n(443),d=n(444),f=n(445),m=n(154),v=n(116),y=n(24),_=n(155),w=n(446),x=n(264),S=n(86);e.Konva=o.Util._assign(r.Konva,{Collection:o.Collection,Util:o.Util,Transform:o.Transform,Node:l.Node,ids:l.ids,names:l.names,Container:c.Container,Stage:h.Stage,stages:h.stages,Layer:d.Layer,FastLayer:f.FastLayer,Group:m.Group,DD:v.DD,Shape:y.Shape,shapes:y.shapes,Animation:_.Animation,Tween:w.Tween,Easings:w.Easings,Context:x.Context,Canvas:S.Canvas})},443:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(75),d=n(9),f=n(86),m=n(116),v=n(9),y=n(265),_="mouseout",w="mouseleave",x="mouseover",S="mouseenter",C="mousemove",T="mousedown",M="mouseup",P="pointermove",E="pointerdown",O="pointerup",k="contextmenu",A="click",D="dblclick",I="touchstart",z="touchend",F="dbltap",R="touchmove",N="wheel",L=[S,T,C,M,_,I,R,z,x,N,k,E,P,O,"pointercancel","lostpointercapture"],j=L.length;function $(t,e){t.content.addEventListener(e,function(n){t["_"+e](n)},!1)}function G(t){return void 0===t&&(t={}),(t.clipFunc||t.clipWidth||t.clipHeight)&&l.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}e.stages=[];var Y=function(t){function n(n){var r=t.call(this,G(n))||this;return r._pointerPositions=[],r._changedPointerPositions=[],r._buildDOM(),r._bindContentEvents(),e.stages.push(r),r.on("widthChange.konva heightChange.konva",r._resizeDOM),r.on("visibleChange.konva",r._checkVisibility),r.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",function(){G(r.attrs)}),r._checkVisibility(),r}return o(n,t),n.prototype._validateAdd=function(t){var e="Layer"===t.getType(),n="FastLayer"===t.getType();e||n||l.Util.throw("You may only add layers to the stage.")},n.prototype._checkVisibility=function(){if(this.content){var style=this.visible()?"":"none";this.content.style.display=style}},n.prototype.setContainer=function(t){if("string"==typeof t){if("."===t.charAt(0)){var e=t.slice(1);t=document.getElementsByClassName(e)[0]}else{var n;n="#"!==t.charAt(0)?t:t.slice(1),t=document.getElementById(n)}if(!t)throw"Can not find container in document with id "+n}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this},n.prototype.shouldDrawHit=function(){return!0},n.prototype.clear=function(){var t,e=this.children,n=e.length;for(t=0;t<n;t++)e[t].clear();return this},n.prototype.clone=function(t){return t||(t={}),t.container=document.createElement("div"),h.Container.prototype.clone.call(this,t)},n.prototype.destroy=function(){t.prototype.destroy.call(this);var content=this.content;content&&l.Util._isInDocument(content)&&this.container().removeChild(content);var n=e.stages.indexOf(this);return n>-1&&e.stages.splice(n,1),this},n.prototype.getPointerPosition=function(){var t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(l.Util.warn("Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);"),null)},n.prototype._getPointerById=function(t){return this._pointerPositions.find(function(p){return p.id===t})},n.prototype.getPointersPositions=function(){return this._pointerPositions},n.prototype.getStage=function(){return this},n.prototype.getContent=function(){return this.content},n.prototype._toKonvaCanvas=function(t){var e=(t=t||{}).x||0,n=t.y||0,canvas=new f.SceneCanvas({width:t.width||this.width(),height:t.height||this.height(),pixelRatio:t.pixelRatio||1}),r=canvas.getContext()._context,o=this.children;
2return(e||n)&&r.translate(-1*e,-1*n),o.each(function(o){if(o.isVisible()){var l=o._toKonvaCanvas(t);r.drawImage(l._canvas,e,n,l.getWidth()/l.getPixelRatio(),l.getHeight()/l.getPixelRatio())}}),canvas},n.prototype.getIntersection=function(t,e){if(!t)return null;var n,r,o=this.children;for(n=o.length-1;n>=0;n--)if(r=o[n].getIntersection(t,e))return r;return null},n.prototype._resizeDOM=function(){var t=this.width(),e=this.height();this.content&&(this.content.style.width=t+"px",this.content.style.height=e+"px"),this.bufferCanvas.setSize(t,e),this.bufferHitCanvas.setSize(t,e),this.children.each(function(n){n.setSize({width:t,height:e}),n.draw()})},n.prototype.add=function(e){if(arguments.length>1){for(var i=0;i<arguments.length;i++)this.add(arguments[i]);return this}t.prototype.add.call(this,e);var n=this.children.length;return n>5&&l.Util.warn("The stage has "+n+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),e.setSize({width:this.width(),height:this.height()}),e.draw(),d.Konva.isBrowser&&this.content.appendChild(e.canvas._canvas),this},n.prototype.getParent=function(){return null},n.prototype.getLayer=function(){return null},n.prototype.hasPointerCapture=function(t){return y.hasPointerCapture(t,this)},n.prototype.setPointerCapture=function(t){y.setPointerCapture(t,this)},n.prototype.releaseCapture=function(t){y.releaseCapture(t,this)},n.prototype.getLayers=function(){return this.getChildren()},n.prototype._bindContentEvents=function(){if(d.Konva.isBrowser)for(var t=0;t<j;t++)$(this,L[t])},n.prototype._mouseenter=function(t){this.setPointersPositions(t),this._fire(S,{evt:t,target:this,currentTarget:this})},n.prototype._mouseover=function(t){this.setPointersPositions(t),this._fire("contentMouseover",{evt:t}),this._fire(x,{evt:t,target:this,currentTarget:this})},n.prototype._mouseout=function(t){var e;this.setPointersPositions(t);var n=(null===(e=this.targetShape)||void 0===e?void 0:e.getStage())?this.targetShape:null,r=!m.DD.isDragging||d.Konva.hitOnDragEnabled;n&&r?(n._fireAndBubble(_,{evt:t}),n._fireAndBubble(w,{evt:t}),this._fire(w,{evt:t,target:this,currentTarget:this}),this.targetShape=null):r&&(this._fire(w,{evt:t,target:this,currentTarget:this}),this._fire(_,{evt:t,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[],this._fire("contentMouseout",{evt:t})},n.prototype._mousemove=function(t){var e;if(d.Konva.UA.ieMobile)return this._touchmove(t);this.setPointersPositions(t);var n,r=l.Util._getFirstPointerId(t),o=(null===(e=this.targetShape)||void 0===e?void 0:e.getStage())?this.targetShape:null,c=!m.DD.isDragging||d.Konva.hitOnDragEnabled;if(c){if((n=this.getIntersection(this.getPointerPosition()))&&n.isListening())c&&o!==n?(o&&(o._fireAndBubble(_,{evt:t,pointerId:r},n),o._fireAndBubble(w,{evt:t,pointerId:r},n)),n._fireAndBubble(x,{evt:t,pointerId:r},o),n._fireAndBubble(S,{evt:t,pointerId:r},o),n._fireAndBubble(C,{evt:t,pointerId:r}),this.targetShape=n):n._fireAndBubble(C,{evt:t,pointerId:r});else o&&c&&(o._fireAndBubble(_,{evt:t,pointerId:r}),o._fireAndBubble(w,{evt:t,pointerId:r}),this._fire(x,{evt:t,target:this,currentTarget:this,pointerId:r}),this.targetShape=null),this._fire(C,{evt:t,target:this,currentTarget:this,pointerId:r});this._fire("contentMousemove",{evt:t})}t.cancelable&&t.preventDefault()},n.prototype._mousedown=function(t){if(d.Konva.UA.ieMobile)return this._touchstart(t);this.setPointersPositions(t);var e=l.Util._getFirstPointerId(t),n=this.getIntersection(this.getPointerPosition());m.DD.justDragged=!1,d.Konva.listenClickTap=!0,n&&n.isListening()?(this.clickStartShape=n,n._fireAndBubble(T,{evt:t,pointerId:e})):this._fire(T,{evt:t,target:this,currentTarget:this,pointerId:e}),this._fire("contentMousedown",{evt:t})},n.prototype._mouseup=function(t){if(d.Konva.UA.ieMobile)return this._touchend(t);this.setPointersPositions(t);var e=l.Util._getFirstPointerId(t),n=this.getIntersection(this.getPointerPosition()),r=this.clickStartShape,o=this.clickEndShape,c=!1;d.Konva.inDblClickWindow?(c=!0,clearTimeout(this.dblTimeout)):m.DD.justDragged||(d.Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout(function(){d.Konva.inDblClickWindow=!1},d.Konva.dblClickWindow),n&&n.isListening()?(this.clickEndShape=n,n._fireAndBubble(M,{evt:t,pointerId:e}),d.Konva.listenClickTap&&r&&r._id===n._id&&(n._fireAndBubble(A,{evt:t,pointerId:e}),c&&o&&o===n&&n._fireAndBubble(D,{evt:t,pointerId:e}))):(this._fire(M,{evt:t,target:this,currentTarget:this,pointerId:e}),d.Konva.listenClickTap&&this._fire(A,{evt:t,target:this,currentTarget:this,pointerId:e}),c&&this._fire(D,{evt:t,target:this,currentTarget:this,pointerId:e})),this._fire("contentMouseup",{evt:t}),d.Konva.listenClickTap&&(this._fire("contentClick",{evt:t}),c&&this._fire("contentDblclick",{evt:t})),d.Konva.listenClickTap=!1,t.cancelable&&t.preventDefault()},n.prototype._contextmenu=function(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(k,{evt:t}):this._fire(k,{evt:t,target:this,currentTarget:this}),this._fire("contentContextmenu",{evt:t})},n.prototype._touchstart=function(t){var e=this;this.setPointersPositions(t);var n=!1;this._changedPointerPositions.forEach(function(r){var o=e.getIntersection(r);d.Konva.listenClickTap=!0,m.DD.justDragged=!1,o&&o.isListening()&&(d.Konva.captureTouchEventsEnabled&&o.setPointerCapture(r.id),e.tapStartShape=o,o._fireAndBubble(I,{evt:t,pointerId:r.id},e),n=!0,o.isListening()&&o.preventDefault()&&t.cancelable&&t.preventDefault())}),n||this._fire(I,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),this._fire("contentTouchstart",{evt:t})},n.prototype._touchmove=function(t){var e=this;if(this.setPointersPositions(t),!m.DD.isDragging||d.Konva.hitOnDragEnabled){var n=!1,r={};this._changedPointerPositions.forEach(function(o){var l=y.getCapturedShape(o.id)||e.getIntersection(o);l&&l.isListening()&&(r[l._id]||(r[l._id]=!0,l._fireAndBubble(R,{evt:t,pointerId:o.id}),n=!0,l.isListening()&&l.preventDefault()&&t.cancelable&&t.preventDefault()))}),n||this._fire(R,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),this._fire("contentTouchmove",{evt:t})}m.DD.isDragging&&m.DD.node.preventDefault()&&t.cancelable&&t.preventDefault()},n.prototype._touchend=function(t){var e=this;this.setPointersPositions(t);var n=this.clickEndShape,r=!1;d.Konva.inDblClickWindow?(r=!0,clearTimeout(this.dblTimeout)):m.DD.justDragged||(d.Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout(function(){d.Konva.inDblClickWindow=!1},d.Konva.dblClickWindow);var o=!1,l={},c=!1,h=!1;this._changedPointerPositions.forEach(function(f){var m=y.getCapturedShape(f.id)||e.getIntersection(f);m&&m.releaseCapture(f.id),m&&m.isListening()&&(l[m._id]||(l[m._id]=!0,e.clickEndShape=m,m._fireAndBubble(z,{evt:t,pointerId:f.id}),o=!0,d.Konva.listenClickTap&&m===e.tapStartShape&&(c=!0,m._fireAndBubble("tap",{evt:t,pointerId:f.id}),r&&n&&n===m&&(h=!0,m._fireAndBubble(F,{evt:t,pointerId:f.id}))),m.isListening()&&m.preventDefault()&&t.cancelable&&t.preventDefault()))}),o||this._fire(z,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),d.Konva.listenClickTap&&!c&&this._fire("tap",{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),r&&!h&&this._fire(F,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),this._fire("contentTouchend",{evt:t}),d.Konva.listenClickTap&&(this._fire("contentTap",{evt:t}),r&&this._fire("contentDbltap",{evt:t})),d.Konva.listenClickTap=!1},n.prototype._wheel=function(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(N,{evt:t}):this._fire(N,{evt:t,target:this,currentTarget:this}),this._fire("contentWheel",{evt:t})},n.prototype._pointerdown=function(t){if(d.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=y.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(E,y.createEvent(t))}},n.prototype._pointermove=function(t){if(d.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=y.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(P,y.createEvent(t))}},n.prototype._pointerup=function(t){if(d.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=y.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(O,y.createEvent(t)),y.releaseCapture(t.pointerId)}},n.prototype._pointercancel=function(t){if(d.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=y.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(O,y.createEvent(t)),y.releaseCapture(t.pointerId)}},n.prototype._lostpointercapture=function(t){y.releaseCapture(t.pointerId)},n.prototype.setPointersPositions=function(t){var e=this,n=this._getContentPosition(),r=null,o=null;void 0!==(t=t||window.event).touches?(this._pointerPositions=[],this._changedPointerPositions=[],l.Collection.prototype.each.call(t.touches,function(t){e._pointerPositions.push({id:t.identifier,x:(t.clientX-n.left)/n.scaleX,y:(t.clientY-n.top)/n.scaleY})}),l.Collection.prototype.each.call(t.changedTouches||t.touches,function(t){e._changedPointerPositions.push({id:t.identifier,x:(t.clientX-n.left)/n.scaleX,y:(t.clientY-n.top)/n.scaleY})})):(r=(t.clientX-n.left)/n.scaleX,o=(t.clientY-n.top)/n.scaleY,this.pointerPos={x:r,y:o},this._pointerPositions=[{x:r,y:o,id:l.Util._getFirstPointerId(t)}],this._changedPointerPositions=[{x:r,y:o,id:l.Util._getFirstPointerId(t)}])},n.prototype._setPointerPosition=function(t){l.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)},n.prototype._getContentPosition=function(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var rect=this.content.getBoundingClientRect();
2return{top:rect.top,left:rect.left,scaleX:rect.width/this.content.clientWidth||1,scaleY:rect.height/this.content.clientHeight||1}},n.prototype._buildDOM=function(){if(this.bufferCanvas=new f.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new f.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),d.Konva.isBrowser){var t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}},n.prototype.cache=function(){return l.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this},n.prototype.clearCache=function(){return this},n.prototype.batchDraw=function(){return this.children.each(function(t){t.batchDraw()}),this},n}(h.Container);e.Stage=Y,Y.prototype.nodeType="Stage",v._registerNode(Y),c.Factory.addGetterSetter(Y,"container")},444:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(75),h=n(7),d=n(266),f=n(86),m=n(24),v=n(11),y=n(9),_=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],w=_.length,x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hitCanvas=new f.HitCanvas({pixelRatio:1}),e}return o(e,t),e.prototype.setSize=function(e){var n=e.width,r=e.height;return t.prototype.setSize.call(this,{width:n,height:r}),this.hitCanvas.setSize(n,r),this},e.prototype._validateAdd=function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&l.Util.throw("You may only add groups and shapes to a layer.")},e.prototype.getIntersection=function(t,e){var n,i,r,o;if(!this.hitGraphEnabled()||!this.isVisible())return null;for(var l=1,c=!1;;){for(i=0;i<w;i++){if(r=_[i],(o=(n=this._getIntersection({x:t.x+r.x*l,y:t.y+r.y*l})).shape)&&e)return o.findAncestor(e,!0);if(o)return o;if(c=!!n.antialiased,!n.antialiased)break}if(!c)return null;l+=1}},e.prototype._getIntersection=function(t){var e,n,r=this.hitCanvas.pixelRatio,p=this.hitCanvas.context.getImageData(Math.round(t.x*r),Math.round(t.y*r),1,1).data,o=p[3];return 255===o?(e=l.Util._rgbToHex(p[0],p[1],p[2]),(n=m.shapes["#"+e])?{shape:n}:{antialiased:!0}):o>0?{antialiased:!0}:{}},e.prototype.drawScene=function(t,e){var n=this.getLayer(),canvas=t||n&&n.getCanvas();return this._fire("beforeDraw",{node:this}),this.clearBeforeDraw()&&canvas.getContext().clear(),c.Container.prototype.drawScene.call(this,canvas,e),this._fire("draw",{node:this}),this},e.prototype.drawHit=function(t,e){var n=this.getLayer(),canvas=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),c.Container.prototype.drawHit.call(this,canvas,e),this},e.prototype.clear=function(t){return d.BaseLayer.prototype.clear.call(this,t),this.getHitCanvas().getContext().clear(t),this},e.prototype.enableHitGraph=function(){return this.hitGraphEnabled(!0),this},e.prototype.disableHitGraph=function(){return this.hitGraphEnabled(!1),this},e.prototype.toggleHitCanvas=function(){if(this.parent){var t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}},e}(d.BaseLayer);e.Layer=x,x.prototype.nodeType="Layer",y._registerNode(x),h.Factory.addGetterSetter(x,"hitGraphEnabled",!0,v.getBooleanValidator()),l.Collection.mapMethods(x)},445:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});
2Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(75),h=n(266),d=n(9),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._validateAdd=function(t){"Shape"!==t.getType()&&l.Util.throw("You may only add shapes to a fast layer.")},e.prototype.hitGraphEnabled=function(){return!1},e.prototype.drawScene=function(t){var e=this.getLayer(),canvas=t||e&&e.getCanvas();return this.clearBeforeDraw()&&canvas.getContext().clear(),c.Container.prototype.drawScene.call(this,canvas),this},e.prototype.draw=function(){return this.drawScene(),this},e}(h.BaseLayer);e.FastLayer=f,f.prototype.nodeType="FastLayer",d._registerNode(f),l.Collection.mapMethods(f)},446:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(155),l=n(21),c=n(9),h={node:1,duration:1,easing:1,onFinish:1,yoyo:1},d=0,f=["fill","stroke","shadowColor"],m=function(){function t(t,e,n,r,o,l,c){this.prop=t,this.propFunc=e,this.begin=r,this._pos=r,this.duration=l,this._change=0,this.prevPos=0,this.yoyo=c,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=o-this.begin,this.pause()}return t.prototype.fire=function(t){var e=this[t];e&&e()},t.prototype.setTime=function(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())},t.prototype.getTime=function(){return this._time},t.prototype.setPosition=function(p){this.prevPos=this._pos,this.propFunc(p),this._pos=p},t.prototype.getPosition=function(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)},t.prototype.play=function(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")},t.prototype.reverse=function(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")},t.prototype.seek=function(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")},t.prototype.reset=function(){this.pause(),this._time=0,this.update(),this.fire("onReset")},t.prototype.finish=function(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")},t.prototype.update=function(){this.setPosition(this.getPosition(this._time))},t.prototype.onEnterFrame=function(){var t=this.getTimer()-this._startTime;2===this.state?this.setTime(t):3===this.state&&this.setTime(this.duration-t)},t.prototype.pause=function(){this.state=1,this.fire("onPause")},t.prototype.getTimer=function(){return(new Date).getTime()},t}(),v=function(){function t(n){var l,f,v=this,y=n.node,_=y._id,w=n.easing||e.Easings.Linear,x=!!n.yoyo;l=void 0===n.duration?.3:0===n.duration?.001:n.duration,this.node=y,this._id=d++;var S=y.getLayer()||(y instanceof c.Konva.Stage?y.getLayers():null);for(f in S||r.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new o.Animation(function(){v.tween.onEnterFrame()},S),this.tween=new m(f,function(i){v._tweenFunc(i)},w,0,1,1e3*l,x),this._addListeners(),t.attrs[_]||(t.attrs[_]={}),t.attrs[_][this._id]||(t.attrs[_][this._id]={}),t.tweens[_]||(t.tweens[_]={}),n)void 0===h[f]&&this._addAttr(f,n[f]);this.reset(),this.onFinish=n.onFinish,this.onReset=n.onReset}return t.prototype._addAttr=function(e,n){var o,l,c,h,d,m,v,y,_=this.node,w=_._id;if((c=t.tweens[w][e])&&delete t.attrs[w][c][e],o=_.getAttr(e),r.Util._isArray(n))if(l=[],d=Math.max(n.length,o.length),"points"===e&&n.length!==o.length&&(n.length>o.length?(v=o,o=r.Util._prepareArrayForTween(o,n,_.closed())):(m=n,n=r.Util._prepareArrayForTween(n,o,_.closed()))),0===e.indexOf("fill"))for(h=0;h<d;
2h++)if(h%2==0)l.push(n[h]-o[h]);else{var x=r.Util.colorToRGBA(o[h]);y=r.Util.colorToRGBA(n[h]),o[h]=x,l.push({r:y.r-x.r,g:y.g-x.g,b:y.b-x.b,a:y.a-x.a})}else for(h=0;h<d;h++)l.push(n[h]-o[h]);else-1!==f.indexOf(e)?(o=r.Util.colorToRGBA(o),l={r:(y=r.Util.colorToRGBA(n)).r-o.r,g:y.g-o.g,b:y.b-o.b,a:y.a-o.a}):l=n-o;t.attrs[w][this._id][e]={start:o,diff:l,end:n,trueEnd:m,trueStart:v},t.tweens[w][e]=this._id},t.prototype._tweenFunc=function(i){var e,n,o,l,c,h,d,m,v=this.node,y=t.attrs[v._id][this._id];for(e in y){if(o=(n=y[e]).start,l=n.diff,m=n.end,r.Util._isArray(o))if(c=[],d=Math.max(o.length,m.length),0===e.indexOf("fill"))for(h=0;h<d;h++)h%2==0?c.push((o[h]||0)+l[h]*i):c.push("rgba("+Math.round(o[h].r+l[h].r*i)+","+Math.round(o[h].g+l[h].g*i)+","+Math.round(o[h].b+l[h].b*i)+","+(o[h].a+l[h].a*i)+")");else for(h=0;h<d;h++)c.push((o[h]||0)+l[h]*i);else c=-1!==f.indexOf(e)?"rgba("+Math.round(o.r+l.r*i)+","+Math.round(o.g+l.g*i)+","+Math.round(o.b+l.b*i)+","+(o.a+l.a*i)+")":o+l*i;v.setAttr(e,c)}},t.prototype._addListeners=function(){var e=this;this.tween.onPlay=function(){e.anim.start()},this.tween.onReverse=function(){e.anim.start()},this.tween.onPause=function(){e.anim.stop()},this.tween.onFinish=function(){var n=e.node,r=t.attrs[n._id][e._id];r.points&&r.points.trueEnd&&n.setAttr("points",r.points.trueEnd),e.onFinish&&e.onFinish.call(e)},this.tween.onReset=function(){var n=e.node,r=t.attrs[n._id][e._id];r.points&&r.points.trueStart&&n.points(r.points.trueStart),e.onReset&&e.onReset()}},t.prototype.play=function(){return this.tween.play(),this},t.prototype.reverse=function(){return this.tween.reverse(),this},t.prototype.reset=function(){return this.tween.reset(),this},t.prototype.seek=function(t){return this.tween.seek(1e3*t),this},t.prototype.pause=function(){return this.tween.pause(),this},t.prototype.finish=function(){return this.tween.finish(),this},t.prototype.destroy=function(){var e,n=this.node._id,r=this._id,o=t.tweens[n];for(e in this.pause(),o)delete t.tweens[n][e];delete t.attrs[n][r]},t.attrs={},t.tweens={},t}();e.Tween=v,l.Node.prototype.to=function(t){var e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()},new v(t).play()},e.Easings={BackEaseIn:function(t,b,e,n){var s=1.70158;return e*(t/=n)*t*((s+1)*t-s)+b},BackEaseOut:function(t,b,e,n){var s=1.70158;return e*((t=t/n-1)*t*((s+1)*t+s)+1)+b},BackEaseInOut:function(t,b,e,n){var s=1.70158;return(t/=n/2)<1?e/2*(t*t*((1+(s*=1.525))*t-s))+b:e/2*((t-=2)*t*((1+(s*=1.525))*t+s)+2)+b},ElasticEaseIn:function(t,b,e,n,a,p){var s=0;return 0===t?b:1===(t/=n)?b+e:(p||(p=.3*n),!a||a<Math.abs(e)?(a=e,s=p/4):s=p/(2*Math.PI)*Math.asin(e/a),-a*Math.pow(2,10*(t-=1))*Math.sin((t*n-s)*(2*Math.PI)/p)+b)},ElasticEaseOut:function(t,b,e,n,a,p){var s=0;return 0===t?b:1===(t/=n)?b+e:(p||(p=.3*n),!a||a<Math.abs(e)?(a=e,s=p/4):s=p/(2*Math.PI)*Math.asin(e/a),a*Math.pow(2,-10*t)*Math.sin((t*n-s)*(2*Math.PI)/p)+e+b)},ElasticEaseInOut:function(t,b,e,n,a,p){var s=0;return 0===t?b:2==(t/=n/2)?b+e:(p||(p=n*(.3*1.5)),!a||a<Math.abs(e)?(a=e,s=p/4):s=p/(2*Math.PI)*Math.asin(e/a),t<1?a*Math.pow(2,10*(t-=1))*Math.sin((t*n-s)*(2*Math.PI)/p)*-.5+b:a*Math.pow(2,-10*(t-=1))*Math.sin((t*n-s)*(2*Math.PI)/p)*.5+e+b)},BounceEaseOut:function(t,b,e,n){return(t/=n)<1/2.75?e*(7.5625*t*t)+b:t<2/2.75?e*(7.5625*(t-=1.5/2.75)*t+.75)+b:t<2.5/2.75?e*(7.5625*(t-=2.25/2.75)*t+.9375)+b:e*(7.5625*(t-=2.625/2.75)*t+.984375)+b},BounceEaseIn:function(t,b,n,r){return n-e.Easings.BounceEaseOut(r-t,0,n,r)+b},BounceEaseInOut:function(t,b,n,r){return t<r/2?.5*e.Easings.BounceEaseIn(2*t,0,n,r)+b:.5*e.Easings.BounceEaseOut(2*t-r,0,n,r)+.5*n+b},EaseIn:function(t,b,e,n){return e*(t/=n)*t+b},EaseOut:function(t,b,e,n){return-e*(t/=n)*(t-2)+b},EaseInOut:function(t,b,e,n){return(t/=n/2)<1?e/2*t*t+b:-e/2*(--t*(t-2)-1)+b},StrongEaseIn:function(t,b,e,n){return e*(t/=n)*t*t*t*t+b},StrongEaseOut:function(t,b,e,n){return e*((t=t/n-1)*t*t*t*t+1)+b},StrongEaseInOut:function(t,b,e,n){return(t/=n/2)<1?e/2*t*t*t*t*t+b:e/2*((t-=2)*t*t*t*t+2)+b},Linear:function(t,b,e,n){return e*t/n+b}}},447:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});
2Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(9),f=n(11),m=n(9),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._sceneFunc=function(t){var e=d.Konva.getAngle(this.angle()),n=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,e,n),t.arc(0,0,this.innerRadius(),e,0,!n),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(h.Shape);e.Arc=v,v.prototype._centroid=!0,v.prototype.className="Arc",v.prototype._attrsAffectingSize=["innerRadius","outerRadius"],m._registerNode(v),c.Factory.addGetterSetter(v,"innerRadius",0,f.getNumberValidator()),c.Factory.addGetterSetter(v,"outerRadius",0,f.getNumberValidator()),c.Factory.addGetterSetter(v,"angle",0,f.getNumberValidator()),c.Factory.addGetterSetter(v,"clockwise",!1,f.getBooleanValidator()),l.Collection.mapMethods(v)},448:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(267),d=n(11),f=n(9),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._sceneFunc=function(e){t.prototype._sceneFunc.call(this,e);var n=2*Math.PI,r=this.points(),o=r,l=0!==this.tension()&&r.length>4;l&&(o=this.getTensionPoints());var c,h,d=r.length;l?(c=r[d-2]-(o[o.length-2]+o[o.length-4])/2,h=r[d-1]-(o[o.length-1]+o[o.length-3])/2):(c=r[d-2]-r[d-4],h=r[d-1]-r[d-3]);var f=(Math.atan2(h,c)+n)%n,m=this.pointerLength(),v=this.pointerWidth();e.save(),e.beginPath(),e.translate(r[d-2],r[d-1]),e.rotate(f),e.moveTo(0,0),e.lineTo(-m,v/2),e.lineTo(-m,-v/2),e.closePath(),e.restore(),this.pointerAtBeginning()&&(e.save(),e.translate(r[0],r[1]),l?(c=(o[0]+o[2])/2-r[0],h=(o[1]+o[3])/2-r[1]):(c=r[2]-r[0],h=r[3]-r[1]),e.rotate((Math.atan2(-h,-c)+n)%n),e.moveTo(0,0),e.lineTo(-m,v/2),e.lineTo(-m,-v/2),e.closePath(),e.restore());var y=this.dashEnabled();y&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),y&&(this.attrs.dashEnabled=!0)},e.prototype.getSelfRect=function(){var e=t.prototype.getSelfRect.call(this),n=this.pointerWidth()/2;return{x:e.x-n,y:e.y-n,width:e.width+2*n,height:e.height+2*n}},e}(h.Line);e.Arrow=m,m.prototype.className="Arrow",f._registerNode(m),c.Factory.addGetterSetter(m,"pointerLength",10,d.getNumberValidator()),c.Factory.addGetterSetter(m,"pointerWidth",10,d.getNumberValidator()),c.Factory.addGetterSetter(m,"pointerAtBeginning",!1),l.Collection.mapMethods(m)},449:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(11),f=n(9),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),t.arc(0,0,this.radius(),0,2*Math.PI,!1),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius()!==t/2&&this.radius(t/2)},e.prototype.setHeight=function(t){this.radius()!==t/2&&this.radius(t/2)},e}(h.Shape);e.Circle=m,m.prototype._centroid=!0,m.prototype.className="Circle",m.prototype._attrsAffectingSize=["radius"],f._registerNode(m),c.Factory.addGetterSetter(m,"radius",0,d.getNumberValidator()),l.Collection.mapMethods(m)},450:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});
2Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(11),f=n(9),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._sceneFunc=function(t){var e=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),e!==n&&t.scale(1,n/e),t.arc(0,0,e,0,2*Math.PI,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radiusX()},e.prototype.getHeight=function(){return 2*this.radiusY()},e.prototype.setWidth=function(t){this.radiusX(t/2)},e.prototype.setHeight=function(t){this.radiusY(t/2)},e}(h.Shape);e.Ellipse=m,m.prototype.className="Ellipse",m.prototype._centroid=!0,m.prototype._attrsAffectingSize=["radiusX","radiusY"],f._registerNode(m),c.Factory.addComponentsGetterSetter(m,"radius",["x","y"]),c.Factory.addGetterSetter(m,"radiusX",0,d.getNumberValidator()),c.Factory.addGetterSetter(m,"radiusY",0,d.getNumberValidator()),l.Collection.mapMethods(m)},451:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(11),f=n(9),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._useBufferCanvas=function(){return!(!this.hasShadow()&&1===this.getAbsoluteOpacity()||!this.hasStroke()||!this.getStage())},e.prototype._sceneFunc=function(t){var e,n,r,o=this.width(),l=this.height(),image=this.image();image&&(e=this.cropWidth(),n=this.cropHeight(),r=e&&n?[image,this.cropX(),this.cropY(),e,n,0,0,o,l]:[image,0,0,o,l]),(this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,o,l),t.closePath(),t.fillStrokeShape(this)),image&&t.drawImage.apply(t,r)},e.prototype._hitFunc=function(t){var e=this.width(),n=this.height();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){var t,image=this.image();return null!==(t=this.attrs.width)&&void 0!==t?t:image?image.width:0},e.prototype.getHeight=function(){var t,image=this.image();return null!==(t=this.attrs.height)&&void 0!==t?t:image?image.height:0},e.fromURL=function(t,n){var img=l.Util.createImageElement();img.onload=function(){var image=new e({image:img});n(image)},img.crossOrigin="Anonymous",img.src=t},e}(h.Shape);e.Image=m,m.prototype.className="Image",f._registerNode(m),c.Factory.addGetterSetter(m,"image"),c.Factory.addComponentsGetterSetter(m,"crop",["x","y","width","height"]),c.Factory.addGetterSetter(m,"cropX",0,d.getNumberValidator()),c.Factory.addGetterSetter(m,"cropY",0,d.getNumberValidator()),c.Factory.addGetterSetter(m,"cropWidth",0,d.getNumberValidator()),c.Factory.addGetterSetter(m,"cropHeight",0,d.getNumberValidator()),l.Collection.mapMethods(m)},452:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(154),f=n(11),m=n(9),v=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width"],y="up",_="right",w="down",x="left",S=v.length,C=function(t){function e(e){var n=t.call(this,e)||this;return n.on("add.konva",function(t){this._addListeners(t.child),this._sync()}),n}return o(e,t),e.prototype.getText=function(){return this.find("Text")[0]},e.prototype.getTag=function(){return this.find("Tag")[0]},e.prototype._addListeners=function(text){var t,e=this,n=function(){e._sync()};for(t=0;t<S;t++)text.on(v[t]+"Change.konva",n)},e.prototype.getWidth=function(){return this.getText().width()},e.prototype.getHeight=function(){return this.getText().height()},e.prototype._sync=function(){var t,e,n,r,o,l,c,text=this.getText(),h=this.getTag();if(text&&h){switch(t=text.width(),e=text.height(),n=h.pointerDirection(),r=h.pointerWidth(),c=h.pointerHeight(),o=0,l=0,n){case y:o=t/2,l=-1*c;break;case _:o=t+r,l=e/2;break;case w:o=t/2,l=e+c;break;case x:o=-1*r,l=e/2}h.setAttrs({x:-1*o,y:-1*l,width:t,height:e}),text.setAttrs({x:-1*o,y:-1*l})}},e}(d.Group);e.Label=C,C.prototype.className="Label",m._registerNode(C),l.Collection.mapMethods(C);var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._sceneFunc=function(t){var e=this.width(),n=this.height(),r=this.pointerDirection(),o=this.pointerWidth(),l=this.pointerHeight(),c=Math.min(this.cornerRadius(),e/2,n/2);t.beginPath(),c?t.moveTo(c,0):t.moveTo(0,0),r===y&&(t.lineTo((e-o)/2,0),t.lineTo(e/2,-1*l),t.lineTo((e+o)/2,0)),c?(t.lineTo(e-c,0),t.arc(e-c,c,c,3*Math.PI/2,0,!1)):t.lineTo(e,0),r
2===_&&(t.lineTo(e,(n-l)/2),t.lineTo(e+o,n/2),t.lineTo(e,(n+l)/2)),c?(t.lineTo(e,n-c),t.arc(e-c,n-c,c,0,Math.PI/2,!1)):t.lineTo(e,n),r===w&&(t.lineTo((e+o)/2,n),t.lineTo(e/2,n+l),t.lineTo((e-o)/2,n)),c?(t.lineTo(c,n),t.arc(c,n-c,c,Math.PI/2,Math.PI,!1)):t.lineTo(0,n),r===x&&(t.lineTo(0,(n+l)/2),t.lineTo(-1*o,n/2),t.lineTo(0,(n-l)/2)),c&&(t.lineTo(0,c),t.arc(c,c,c,Math.PI,3*Math.PI/2,!1)),t.closePath(),t.fillStrokeShape(this)},e.prototype.getSelfRect=function(){var t=0,e=0,n=this.pointerWidth(),r=this.pointerHeight(),o=this.pointerDirection(),l=this.width(),c=this.height();return o===y?(e-=r,c+=r):o===w?c+=r:o===x?(t-=1.5*n,l+=n):o===_&&(l+=1.5*n),{x:t,y:e,width:l,height:c}},e}(h.Shape);e.Tag=T,T.prototype.className="Tag",m._registerNode(T),c.Factory.addGetterSetter(T,"pointerDirection","none"),c.Factory.addGetterSetter(T,"pointerWidth",0,f.getNumberValidator()),c.Factory.addGetterSetter(T,"pointerHeight",0,f.getNumberValidator()),c.Factory.addGetterSetter(T,"cornerRadius",0,f.getNumberValidator()),l.Collection.mapMethods(T)},453:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(11),f=n(9),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._sceneFunc=function(t){var e,n,r,o=this.sides(),l=this.radius();for(t.beginPath(),t.moveTo(0,0-l),e=1;e<o;e++)n=l*Math.sin(2*e*Math.PI/o),r=-1*l*Math.cos(2*e*Math.PI/o),t.lineTo(n,r);t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius(t/2)},e.prototype.setHeight=function(t){this.radius(t/2)},e}(h.Shape);e.RegularPolygon=m,m.prototype.className="RegularPolygon",m.prototype._centroid=!0,m.prototype._attrsAffectingSize=["radius"],f._registerNode(m),c.Factory.addGetterSetter(m,"radius",0,d.getNumberValidator()),c.Factory.addGetterSetter(m,"sides",0,d.getNumberValidator()),l.Collection.mapMethods(m)},454:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(11),f=n(9),m=2*Math.PI,v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,m,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),m,0,!0),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(h.Shape);e.Ring=v,v.prototype.className="Ring",v.prototype._centroid=!0,v.prototype._attrsAffectingSize=["innerRadius","outerRadius"],f._registerNode(v),c.Factory.addGetterSetter(v,"innerRadius",0,d.getNumberValidator()),c.Factory.addGetterSetter(v,"outerRadius",0,d.getNumberValidator()),l.Collection.mapMethods(v)},455:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(155),f=n(11),m=n(9),v=function(t){function e(e){var n=t.call(this,e)||this;return n._updated=!0,n.anim=new d.Animation(function(){var t=n._updated;return n._updated=!1,t}),n.on("animationChange.konva",function(){this.frameIndex(0)}),n.on("frameIndexChange.konva",function(){this._updated=!0}),n.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}),n}return o(e,t),e.prototype._sceneFunc=function(t){var e=this.animation(),n=this.frameIndex(),r=4*n,o=this.animations()[e],l=this.frameOffsets(),c=o[r+0],h=o[r+1],d=o[r+2],f=o[r+3],image=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,f),t.closePath(),t.fillStrokeShape(this)),image)if(l){var m=l[e],v=2*n;t.drawImage(image,c,h,d,f,m[v+0],m[v+1],d,f)}else t.drawImage(image,c,h,d,f,0,0,d,f)},e.prototype._hitFunc=function(t){var e=this.animation(),n=this.frameIndex(),r=4*n,o=this.animations()[e],l=this.frameOffsets(),c=o[r+2],h=o[r+3];if(t.beginPath(),l){var d=l[e],f=2*n;t.rect(d[f+0],d[f+1],c,h)}else t.rect(0,0,c,h);t.closePath(),t.fillShape(this)},e.prototype._useBufferCanvas=function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()},e.prototype._setInterval=function(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())},e.prototype.start=function(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}},e.prototype.stop=function(){this.anim.stop(),clearInterval(this.interval)},e.prototype.isRunning=function(){return this.anim.isRunning()},e.prototype._updateIndex=function(){var t=this.frameIndex(),e=this.animation();t<this.animations()[e].length/4-1?this.frameIndex(t+1):this.frameIndex(0)},e}(h.Shape);e.Sprite=v,v.prototype.className="Sprite",m._registerNode(v),c.Factory.addGetterSetter(v,"animation"),c.Factory.addGetterSetter(v,"animations"),c.Factory.addGetterSetter(v,"frameOffsets"),c.Factory.addGetterSetter(v,"image"),c.Factory.addGetterSetter(v,"frameIndex",0,f.getNumberValidator()),c.Factory.addGetterSetter(v,"frameRate",17,f.getNumberValidator()),c.Factory.backCompat(v,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),l.Collection.mapMethods(v)},456:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});
2Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(11),f=n(9),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._sceneFunc=function(t){var e=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(var o=1;o<2*r;o++){var l=o%2==0?n:e,c=l*Math.sin(o*Math.PI/r),h=-1*l*Math.cos(o*Math.PI/r);t.lineTo(c,h)}t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(h.Shape);e.Star=m,m.prototype.className="Star",m.prototype._centroid=!0,m.prototype._attrsAffectingSize=["innerRadius","outerRadius"],f._registerNode(m),c.Factory.addGetterSetter(m,"numPoints",5,d.getNumberValidator()),c.Factory.addGetterSetter(m,"innerRadius",0,d.getNumberValidator()),c.Factory.addGetterSetter(m,"outerRadius",0,d.getNumberValidator()),l.Collection.mapMethods(m)},457:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(268),f=n(270),m=n(11),v=n(9),y="normal";function _(t){t.fillText(this.partialText,0,0)}function w(t){t.strokeText(this.partialText,0,0)}var x=function(t){function e(e){var n=t.call(this,e)||this;return n.dummyCanvas=l.Util.createCanvasElement(),n.dataArray=[],n.dataArray=d.Path.parsePathData(n.attrs.data),n.on("dataChange.konva",function(){this.dataArray=d.Path.parsePathData(this.attrs.data),this._setTextData()}),n.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncCh
2ange.konva",n._setTextData),e&&e.getKerning&&(l.Util.warn('getKerning TextPath API is deprecated. Please use "kerningFunc" instead.'),n.kerningFunc(e.getKerning)),n._setTextData(),n}return o(e,t),e.prototype._sceneFunc=function(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var e=this.textDecoration(),n=this.fill(),r=this.fontSize(),o=this.glyphInfo;"underline"===e&&t.beginPath();for(var i=0;i<o.length;i++){t.save();var l=o[i].p0;t.translate(l.x,l.y),t.rotate(o[i].rotation),this.partialText=o[i].text,t.fillStrokeShape(this),"underline"===e&&(0===i&&t.moveTo(0,r/2+1),t.lineTo(r,r/2+1)),t.restore()}"underline"===e&&(t.strokeStyle=n,t.lineWidth=r/20,t.stroke()),t.restore()},e.prototype._hitFunc=function(t){t.beginPath();var e=this.glyphInfo;if(e.length>=1){var n=e[0].p0;t.moveTo(n.x,n.y)}for(var i=0;i<e.length;i++){var r=e[i].p1;t.lineTo(r.x,r.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()},e.prototype.getTextWidth=function(){return this.textWidth},e.prototype.getTextHeight=function(){return l.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight},e.prototype.setText=function(text){return f.Text.prototype.setText.call(this,text)},e.prototype._getContextFont=function(){return f.Text.prototype._getContextFont.call(this)},e.prototype._getTextSize=function(text){var t=this.dummyCanvas.getContext("2d");t.save(),t.font=this._getContextFont();var e=t.measureText(text);return t.restore(),{width:e.width,height:parseInt(this.attrs.fontSize,10)}},e.prototype._setTextData=function(){var t=this,e=this._getTextSize(this.attrs.text),n=this.letterSpacing(),r=this.align(),o=this.kerningFunc();this.textWidth=e.width,this.textHeight=e.height;var l=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);this.glyphInfo=[];for(var c=0,h=0;h<t.dataArray.length;h++)t.dataArray[h].pathLength>0&&(c+=t.dataArray[h].pathLength);var f=0;"center"===r&&(f=Math.max(0,c/2-l/2)),"right"===r&&(f=Math.max(0,c-l));for(var m,v,y,_=this.text().split(""),w=this.text().split(" ").length-1,x=-1,S=0,C=function(){S=0;for(var e=t.dataArray,n=x+1;n<e.length;n++){if(e[n].pathLength>0)return x=n,e[n];"M"===e[n].command&&(m={x:e[n].points[0],y:e[n].points[1]})}return{}},T=function(e){var o=t._getTextSize(e).width+n;" "===e&&"justify"===r&&(o+=(c-l)/w);var h=0,f=0;for(v=void 0;Math.abs(o-h)/o>.01&&f<25;){f++;for(var _=h;void 0===y;)(y=C())&&_+y.pathLength<o&&(_+=y.pathLength,y=void 0);if(y==={}||void 0===m)return;var x=!1;switch(y.command){case"L":d.Path.getLineLength(m.x,m.y,y.points[0],y.points[1])>o?v=d.Path.getPointOnLine(o,m.x,m.y,y.points[0],y.points[1],m.x,m.y):y=void 0;break;case"A":var T=y.points[4],M=y.points[5],P=y.points[4]+M;0===S?S=T+1e-8:o>h?S+=Math.PI/180*M/Math.abs(M):S-=Math.PI/360*M/Math.abs(M),(M<0&&S<P||M>=0&&S>P)&&(S=P,x=!0),v=d.Path.getPointOnEllipticalArc(y.points[0],y.points[1],y.points[2],y.points[3],S,y.points[6]);break;case"C":0===S?S=o>y.pathLength?1e-8:o/y.pathLength:o>h?S+=(o-h)/y.pathLength:S-=(h-o)/y.pathLength,S>1&&(S=1,x=!0),v=d.Path.getPointOnCubicBezier(S,y.start.x,y.start.y,y.points[0],y.points[1],y.points[2],y.points[3],y.points[4],y.points[5]);break;case"Q":0===S?S=o/y.pathLength:o>h?S+=(o-h)/y.pathLength:S-=(h-o)/y.pathLength,S>1&&(S=1,x=!0),v=d.Path.getPointOnQuadraticBezier(S,y.start.x,y.start.y,y.points[0],y.points[1],y.points[2],y.points[3])}void 0!==v&&(h=d.Path.getLineLength(m.x,m.y,v.x,v.y)),x&&(x=!1,y=void 0)}},M=f/(t._getTextSize("C").width+n)-1,P=0;P<M&&(T("C"),void 0!==m&&void 0!==v);P++)m=v;for(var i=0;i<_.length&&(T(_[i]),void 0!==m&&void 0!==v);i++){var E=d.Path.getLineLength(m.x,m.y,v.x,v.y),O=0;if(o)try{O=o(_[i-1],_[i])*this.fontSize()}catch(t){O=0}m.x+=O,v.x+=O,this.textWidth+=O;var k=d.Path.getPointOnLine(O+E/2,m.x,m.y,v.x,v.y),A=Math.atan2(v.y-m.y,v.x-m.x);this.glyphInfo.push({transposeX:k.x,transposeY:k.y,text:_[i],rotation:A,p0:m,p1:v}),m=v}},e.prototype.getSelfRect=function(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t=[];this.glyphInfo.forEach(function(e){t.push(e.p0.x),t.push(e.p0.y),t.push(e.p1.x),t.push(e.p1.y)});for(var e,n,r=t[0]||0,o=t[0]||0,l=t[1]||0,c=t[1]||0,i=0;i<t.length/2;i++)e=t[2*i],n=t[2*i+1],r=Math.min(r,e),o=Math.max(o,e),l=Math.min(l,n),c=Math.max(c,n);var h=this.fontSize();return{x:r-h/2,y:l-h/2,width:o-r+h,height:c-l+h}},e}(h.Shape);e.TextPath=x,x.prototype._fillFunc=_,x.prototype._strokeFunc=w,x.prototype._fillFuncHit=_,x.prototype._strokeFuncHit=w,x.prototype.className="TextPath",x.prototype._attrsAffectingSize=["text","fontSize","data"],v._registerNode(x),c.Factory.addGetterSetter(x,"data"),c.Factory.addGetterSetter(x,"fontFamily","Arial"),c.Factory.addGetterSetter(x,"fontSize",12,m.getNumberValidator()),c.Factory.addGetterSetter(x,"fontStyle",y),c.Factory.addGetterSetter(x,"align","left"),c.Factory.addGetterSetter(x,"letterSpacing",0,m.getNumberValidator()),c.Factory.addGetterSetter(x,"textBaseline","middle"),c.Factory.addGetterSetter(x,"fontVariant",y),c.Factory.addGetterSetter(x,"text",""),c.Factory.addGetterSetter(x,"textDecoration",null),c.Factory.addGetterSetter(x,"kerningFunc",null),l.Collection.mapMethods(x)},458:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}),l=this&&this.__assign||function(){return l=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}
2,l.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var c=n(12),h=n(7),d=n(21),f=n(24),m=n(269),v=n(154),y=n(9),_=n(11),w=n(9),x="tr-konva",S=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange"].map(function(t){return t+"."+x}).join(" "),C="nodesRect",T=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"].map(function(t){return t+"."+x}).join(" "),M={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},P="ontouchstart"in y.Konva._global;var E=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function O(t,e,n){var r=n.x+(t.x-n.x)*Math.cos(e)-(t.y-n.y)*Math.sin(e),o=n.y+(t.x-n.x)*Math.sin(e)+(t.y-n.y)*Math.cos(e);return l(l({},t),{rotation:t.rotation+e,x:r,y:o})}function k(t,e){var n=function(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}(t);return O(t,e,n)}var A=function(t){function e(e){var n=t.call(this,e)||this;return n._transforming=!1,n._createElements(),n._handleMouseMove=n._handleMouseMove.bind(n),n._handleMouseUp=n._handleMouseUp.bind(n),n.update=n.update.bind(n),n.on(S,n.update),n.getNode()&&n.update(),n}return o(e,t),e.prototype.attachTo=function(t){return this.setNode(t),this},e.prototype.setNode=function(t){return c.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])},e.prototype.getNode=function(){return this._nodes&&this._nodes[0]},e.prototype.setNodes=function(t){var e=this;return void 0===t&&(t=[]),this._nodes&&this._nodes.length&&this.detach(),this._nodes=t,1===t.length?this.rotation(t[0].rotation()):this.rotation(0),this._nodes.forEach(function(t){var n=t._attrsAffectingSize.map(function(t){return t+"Change."+x}).join(" "),r=function(){e._resetTransformCache(),e._transforming||e.update()};t.on(n,r),t.on(T,r),t.on("_clearTransformCache."+x,r),t.on("xChange."+x+" yChange."+x,r),e._proxyDrag(t)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this},e.prototype._proxyDrag=function(t){var e,n=this;t.on("dragstart."+x,function(){e=t.getAbsolutePosition()}),t.on("dragmove."+x,function(){if(e){var r=t.getAbsolutePosition(),o=r.x-e.x,l=r.y-e.y;n.nodes().forEach(function(e){if(e!==t&&!e.isDragging()){var n=e.getAbsolutePosition();e.setAbsolutePosition({x:n.x+o,y:n.y+l}),e.startDrag()}}),e=null}})},e.prototype.getNodes=function(){return this._nodes},e.prototype.getActiveAnchor=function(){return this._movingAnchorName},e.prototype.detach=function(){this._nodes&&this._nodes.forEach(function(t){t.off("."+x)}),this._nodes=[],this._resetTransformCache()},e.prototype._resetTransformCache=function(){this._clearCache(C),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")},e.prototype._getNodeRect=function(){return this._getCache(C,this.__getNodeRect)},e.prototype.__getNodeShape=function(t,e,n){void 0===e&&(e=this.rotation());var rect=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),r=t.getAbsoluteScale(n),o=t.getAbsolutePosition(n),l=rect.x*r.x-t.offsetX()*r.x,c=rect.y*r.y-t.offsetY()*r.y,h=(y.Konva.getAngle(t.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI);return O({x:o.x+l*Math.cos(h)+c*Math.sin(-h),y:o.y+c*Math.cos(h)+l*Math.sin(h),width:rect.width*r.x,height:rect.height*r.y,rotation:h},-y.Konva.getAngle(e),{x:0,y:0})},e.prototype.__getNodeRect=function(){var t=this;if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};var e=[];this.nodes().map(function(n){var r=n.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:t.ignoreStroke()}),o=[{x:r.x,y:r.y},{x:r.x+r.width,y:r.y},{x:r.x+r.width,y:r.y+r.height},{x:r.x,y:r.y+r.height}],l=n.getAbsoluteTransform();o.forEach(function(t){var n=l.point(t);e.push(n)})});var n,r,o,l,tr=new c.Transform;tr.rotate(-y.Konva.getAngle(this.rotation())),e.forEach(function(t){var e=tr.point(t);void 0===n&&(n=o=e.x,r=l=e.y),n=Math.min(n,e.x),r=Math.min(r,e.y),o=Math.max(o,e.x),l=Math.max(l,e.y)}),tr.invert();var p=tr.point({x:n,y:r});return{x:p.x,y:p.y,width:o-n,height:l-r,rotation:y.Konva.getAngle(this.rotation())}},e.prototype.getX=function(){return this._getNodeRect().x},e.prototype.getY=function(){return this._getNodeRect().y},e.prototype.getWidth=function(){return this._getNodeRect().width},e.prototype.getHeight=function(){return this._getNodeRect().height},e.prototype._createElements=function(){this._createBack(),E.forEac
2h(function(t){this._createAnchor(t)}.bind(this)),this._createAnchor("rotater")},e.prototype._createAnchor=function(t){var e=this,n=new m.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:P?10:"auto"}),r=this;n.on("mousedown touchstart",function(t){r._handleMouseDown(t)}),n.on("dragstart",function(t){n.stopDrag(),t.cancelBubble=!0}),n.on("dragend",function(t){t.cancelBubble=!0}),n.on("mouseenter",function(){var r=y.Konva.getAngle(e.rotation()),cursor=function(t,e){if("rotater"===t)return"crosshair";e+=c.Util._degToRad(M[t]||0);var n=(c.Util._radToDeg(e)%360+360)%360;return c.Util._inRange(n,337.5,360)||c.Util._inRange(n,0,22.5)?"ns-resize":c.Util._inRange(n,22.5,67.5)?"nesw-resize":c.Util._inRange(n,67.5,112.5)?"ew-resize":c.Util._inRange(n,112.5,157.5)?"nwse-resize":c.Util._inRange(n,157.5,202.5)?"ns-resize":c.Util._inRange(n,202.5,247.5)?"nesw-resize":c.Util._inRange(n,247.5,292.5)?"ew-resize":c.Util._inRange(n,292.5,337.5)?"nwse-resize":(c.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}(t,r);n.getStage().content.style.cursor=cursor,e._cursorChange=!0}),n.on("mouseout",function(){n.getStage().content.style.cursor="",e._cursorChange=!1}),this.add(n)},e.prototype._createBack=function(){var t=this,e=new f.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc:function(t){var tr=this.getParent(),e=tr.padding();t.beginPath(),t.rect(-e,-e,this.width()+2*e,this.height()+2*e),t.moveTo(this.width()/2,-e),tr.rotateEnabled()&&t.lineTo(this.width()/2,-tr.rotateAnchorOffset()*c.Util._sign(this.height())-e),t.fillStrokeShape(this)},hitFunc:function(e,n){if(t.shouldOverdrawWholeArea()){var r=t.padding();e.beginPath(),e.rect(-r,-r,n.width()+2*r,n.height()+2*r),e.fillStrokeShape(n)}}});this.add(e),this._proxyDrag(e)},e.prototype._handleMouseDown=function(t){this._movingAnchorName=t.target.name().split(" ")[0];var e=this._getNodeRect(),n=e.width,r=e.height,o=Math.sqrt(Math.pow(n,2)+Math.pow(r,2));this.sin=Math.abs(r/o),this.cos=Math.abs(n/o),window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0),this._transforming=!0;var l=t.target.getAbsolutePosition(),c=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:c.x-l.x,y:c.y-l.y},this._fire("transformstart",{evt:t,target:this.getNode()}),this.getNode()._fire("transformstart",{evt:t,target:this.getNode()})},e.prototype._handleMouseMove=function(t){var e,n,r,o=this.findOne("."+this._movingAnchorName),l=o.getStage();l.setPointersPositions(t);var c=l.getPointerPosition(),h={x:c.x-this._anchorDragOffset.x,y:c.y-this._anchorDragOffset.y},d=o.getAbsolutePosition();o.setAbsolutePosition(h);var f=o.getAbsolutePosition();if(d.x!==f.x||d.y!==f.y)if("rotater"!==this._movingAnchorName){var m=this.keepRatio()||t.shiftKey,v=this.centeredScaling()||t.altKey;if("top-left"===this._movingAnchorName){if(m){var _=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};r=Math.sqrt(Math.pow(_.x-o.x(),2)+Math.pow(_.y-o.y(),2));var w=this.findOne(".top-left").x()>_.x?-1:1,x=this.findOne(".top-left").y()>_.y?-1:1;e=r*this.cos*w,n=r*this.sin*x,this.findOne(".top-left").x(_.x-e),this.findOne(".top-left").y(_.y-n)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(o.y());else if("top-right"===this._movingAnchorName){if(m){_=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};r=Math.sqrt(Math.pow(o.x()-_.x,2)+Math.pow(_.y-o.y(),2));w=this.findOne(".top-right").x()<_.x?-1:1,x=this.findOne(".top-right").y()>_.y?-1:1;e=r*this.cos*w,n=r*this.sin*x,this.findOne(".top-right").x(_.x+e),this.findOne(".top-right").y(_.y-n)}var S=o.position();this.findOne(".top-left").y(S.y),this.findOne(".bottom-right").x(S.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(o.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(o.x());else if("bottom-left"===this._movingAnchorName){if(m){_=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};r=Math.sqrt(Math.pow(_.x-o.x(),2)+Math.pow(o.y()-_.y,2));w=_.x<o.x()?-1:1,x=o.y()<_.y?-1:1;e=r*this.cos*w,n=r*this.sin*x,o.x(_.x-e),o.y(_.y+n)}S=o.position(),this.findOne(".top-left").x(S.x),this.findOne(".bottom-right").y(S.y)}else if("bottom-center"===this._movingAnchorName)this.findOne(".bottom-right").y(o.y());else if("bottom-right"===this._movingAnchorName){if(m){_=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};r=Math.sqrt(Math.pow(o.x()-_.x,2)+Math.pow(o.y()-_.y,2));w=this.findOne(".bottom-right").x()<_.x?-1:1,x=this.findOne(".bottom-right").y()<_.y?-1:1;e=r*this.cos*w,n=r*this.sin*x,this.findOne(".bottom-right").x(_.x+e),this.findOne(".bottom-right").y(_.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(v=this.centeredScaling()||t.altKey){var C=this.findOne(".top-left"),T=this.findOne(".bottom-right"),M=C.x(),P=C.y(),E=this.getWidth()-T.x(),O=this.getHeight()-T.y();T.move({x:-M,y:-P}),C.move({x:E,y:O})}var A=this.findOne(".top-left").getAbsolutePosition();e=A.x,n=A.y;var D=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),I=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:e,y:n,width:D,height:I,rotation:y.Konva.getAngle(this.rotation())},t)}else{var z=this._getNodeRect();e=o.x()-z.width/2,n=-o.y()+z.height/2;var F=Math.atan2(-n,e)+Math.PI/2;z.height<0&&(F-=Math.PI);var R=y.Konva.getAngle(this.rotation())+F,N=y.Konva.getAngle(this.rotationSnapTolerance()),L=function(t,e,n){for(var r=e,i=0;i<t.length;i++){var o=y.Konva.getAngle(t[i]),l=Math.abs(o-e)%(2*Math.PI);
2Math.min(l,2*Math.PI-l)<n&&(r=o)}return r}(this.rotationSnaps(),R,N),j=k(z,L-z.rotation);this._fitNodesInto(j,t)}},e.prototype._handleMouseUp=function(t){this._removeEvents(t)},e.prototype.getAbsoluteTransform=function(){return this.getTransform()},e.prototype._removeEvents=function(t){if(this._transforming){this._transforming=!1,window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0);var e=this.getNode();this._fire("transformend",{evt:t,target:e}),e&&e.fire("transformend",{evt:t,target:e}),this._movingAnchorName=null}},e.prototype._fitNodesInto=function(t,e){var n=this,r=this._getNodeRect();if(c.Util._inRange(t.width,2*-this.padding()-1,1))this.update();else if(c.Util._inRange(t.height,2*-this.padding()-1,1))this.update();else{var o=new c.Transform;if(o.rotate(y.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){var l=o.point({x:2*-this.padding(),y:0});t.x+=l.x,t.y+=l.y,t.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=l.x,this._anchorDragOffset.y-=l.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){l=o.point({x:2*this.padding(),y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=l.x,this._anchorDragOffset.y-=l.y,t.width+=2*this.padding()}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){l=o.point({x:0,y:2*-this.padding()});t.x+=l.x,t.y+=l.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=l.x,this._anchorDragOffset.y-=l.y,t.height+=2*this.padding()}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){l=o.point({x:0,y:2*this.padding()});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=l.x,this._anchorDragOffset.y-=l.y,t.height+=2*this.padding()}if(this.boundBoxFunc()){var h=this.boundBoxFunc()(r,t);h?t=h:c.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}var d=1e7,f=new c.Transform;f.translate(r.x,r.y),f.rotate(r.rotation),f.scale(r.width/d,r.height/d);var m=new c.Transform;m.translate(t.x,t.y),m.rotate(t.rotation),m.scale(t.width/d,t.height/d);var v=m.multiply(f.invert());this._nodes.forEach(function(t){var r=t.getParent().getAbsoluteTransform(),o=t.getTransform().copy();o.translate(t.offsetX(),t.offsetY());var l=new c.Transform;l.multiply(r.copy().invert()).multiply(v).multiply(r).multiply(o);var h=l.decompose();t._batchTransformChanges(function(){t.setAttrs(h)}),n._fire("transform",{evt:e,target:t}),t._fire("transform",{evt:e,target:t})}),this.rotation(c.Util._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}},e.prototype.forceUpdate=function(){this._resetTransformCache(),this.update()},e.prototype._batchChangeChild=function(t,e){var n=this.findOne(t);n._batchTransformChanges(function(){n.setAttrs(e)})},e.prototype.update=function(){var t=this,e=this._getNodeRect();this.rotation(c.Util._getRotation(e.rotation));var n=e.width,r=e.height,o=this.enabledAnchors(),l=this.resizeEnabled(),h=this.padding(),d=this.anchorSize();this.find("._anchor").each(function(e){e._batchTransformChanges(function(){e.setAttrs({width:d,height:d,offsetX:d/2,offsetY:d/2,stroke:t.anchorStroke(),strokeWidth:t.anchorStrokeWidth(),fill:t.anchorFill(),cornerRadius:t.anchorCornerRadius()})})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:d/2+h,offsetY:d/2+h,visible:l&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:d/2+h,visible:l&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:d/2-h,offsetY:d/2+h,visible:l&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:r/2,offsetX:d/2+h,visible:l&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:r/2,offsetX:d/2-h,visible:l&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:r,offsetX:d/2+h,offsetY:d/2-h,visible:l&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:r,offsetY:d/2-h,visible:l&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:r,offsetX:d/2-h,offsetY:d/2-h,visible:l&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*c.Util._sign(r)-h,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:r,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0})},e.prototype.isTransforming=function(){return this._transforming},e.prototype.stopTransform=function(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);
2t&&t.stopDrag()}},e.prototype.destroy=function(){return this.getStage()&&this._cursorChange&&(this.getStage().content.style.cursor=""),v.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this},e.prototype.toObject=function(){return d.Node.prototype.toObject.call(this)},e}(v.Group);e.Transformer=A,A.prototype.className="Transformer",w._registerNode(A),h.Factory.addGetterSetter(A,"enabledAnchors",E,function(t){return t instanceof Array||c.Util.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(t){-1===E.indexOf(t)&&c.Util.warn("Unknown anchor name: "+t+". Available names are: "+E.join(", "))}),t||[]}),h.Factory.addGetterSetter(A,"resizeEnabled",!0),h.Factory.addGetterSetter(A,"anchorSize",10,_.getNumberValidator()),h.Factory.addGetterSetter(A,"rotateEnabled",!0),h.Factory.addGetterSetter(A,"rotationSnaps",[]),h.Factory.addGetterSetter(A,"rotateAnchorOffset",50,_.getNumberValidator()),h.Factory.addGetterSetter(A,"rotationSnapTolerance",5,_.getNumberValidator()),h.Factory.addGetterSetter(A,"borderEnabled",!0),h.Factory.addGetterSetter(A,"anchorStroke","rgb(0, 161, 255)"),h.Factory.addGetterSetter(A,"anchorStrokeWidth",1,_.getNumberValidator()),h.Factory.addGetterSetter(A,"anchorFill","white"),h.Factory.addGetterSetter(A,"anchorCornerRadius",0,_.getNumberValidator()),h.Factory.addGetterSetter(A,"borderStroke","rgb(0, 161, 255)"),h.Factory.addGetterSetter(A,"borderStrokeWidth",1,_.getNumberValidator()),h.Factory.addGetterSetter(A,"borderDash"),h.Factory.addGetterSetter(A,"keepRatio",!0),h.Factory.addGetterSetter(A,"centeredScaling",!1),h.Factory.addGetterSetter(A,"ignoreStroke",!1),h.Factory.addGetterSetter(A,"padding",0,_.getNumberValidator()),h.Factory.addGetterSetter(A,"node"),h.Factory.addGetterSetter(A,"nodes"),h.Factory.addGetterSetter(A,"boundBoxFunc"),h.Factory.addGetterSetter(A,"shouldOverdrawWholeArea",!1),h.Factory.backCompat(A,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledH
2andlers:"enabledAnchors"}),c.Collection.mapMethods(A)},459:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(24),d=n(9),f=n(11),m=n(9),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),t.arc(0,0,this.radius(),0,d.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius(t/2)},e.prototype.setHeight=function(t){this.radius(t/2)},e}(h.Shape);e.Wedge=v,v.prototype.className="Wedge",v.prototype._centroid=!0,v.prototype._attrsAffectingSize=["radius"],m._registerNode(v),c.Factory.addGetterSetter(v,"radius",0,f.getNumberValidator()),c.Factory.addGetterSetter(v,"angle",0,f.getNumberValidator()),c.Factory.addGetterSetter(v,"clockwise",!1),c.Factory.backCompat(v,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),l.Collection.mapMethods(v)},46:function(t,e,n){const r=n(56),{anchor:o,Anchor:l}=n(74),{None:c}=n(110),{Connector:h}=n(111),d=n(149),{itself:f,orthogonalTransform:m}=n(112);class v{constructor({up:t=c,down:e=c,left:n=c,right:r=c}={},o={}){this.up=t,this.down=e,this.left=n,this.right=r,this.metadata={},this.centralAnchor=null,this._size=null,this._horizontalConnector=null,this._verticalConnector=null,this._initializeListeners(),this.configure(o)}_initializeListeners(){this.translateListeners=[],this.connectListeners=[],this.disconnectListeners=[]}configure(t){t.centralAnchor&&this.centerAround(l.import(t.centralAnchor)),t.metadata&&this.annotate(t.metadata),t.size&&this.resize(t.size)}annotate(t){Object.assign(this.metadata,t)}reannotate(t){this.metadata=t}belongTo(t){this.puzzle=t}get presentConnections(){return this.connections.filter(f)}get connections(){return[this.rightConnection,this.downConnection,this.leftConnection,this.upConnection]}get inserts(){return[this.right,this.down,this.left,this.up]}onTranslate(t){this.translateListeners.push(t)}onConnect(t){this.connectListeners.push(t)}onDisconnect(t){this.disconnectListeners.push(t)}fireTranslate(t,e){this.translateListeners.forEach(n=>n(this,t,e))}fireConnect(t){this.connectListeners.forEach(e=>e(this,t))}fireDisconnect(t){t.forEach(t=>{this.disconnectListeners.forEach(e=>e(this,t))})}connectVerticallyWith(t,e=!1){this.verticalConnector.connectWith(this,t,this.proximity,e)}attractVertically(t,e=!1){this.verticalConnector.attract(this,t,e)}connectHorizontallyWith(t,e=!1){this.horizontalConnector.connectWith(this,t,this.proximity,e)}attractHorizontally(t,e=!1){this.horizontalConnector.attract(this,t,e)}tryConnectWith(t,e=!1){this.tryConnectHorizontallyWith(t,e),this.tryConnectVerticallyWith(t,e)}tryConnectHorizontallyWith(t,e=!1){this.canConnectHorizontallyWith(t)&&this.connectHorizontallyWith(t,e)}tryConnectVerticallyWith(t,e=!1){this.canConnectVerticallyWith(t)&&this.connectVerticallyWith(t,e)}disconnect(){if(!this.connected)return;const t=this.presentConnections;this.upConnection&&(this.upConnection.downConnection=null,this.upConnection=null),this.downConnection&&(this.downConnection.upConnection=null,this.downConnection=null),this.leftConnection&&(this.leftConnection.rightConnection=null,this.leftConnection=null),this.rightConnection&&(this.rightConnection.leftConnection=null,this.rightConnection=null),this.fireDisconnect(t)}centerAround(t){if(this.centralAnchor)throw new Error("this pieces has already being centered. Use recenterAround instead");this.centralAnchor=t}locateAt(t,e){this.centerAround(o(t,e))}isAt(t,e){return this.centralAnchor.isAt(t,e)}recenterAround(t,e=!1){const[n,r]=t.diff(this.centralAnchor);this.translate(n,r,e)}relocateTo(t,e,n=!1){this.recenterAround(o(t,e),n)}translate(t,e,n=!1){r.isNull(t,e)||(this.centralAnchor.translate(t,e),n||this.fireTranslate(t,e))}push(t,e,n=!1,r=[this]){this.translate(t,e,n);const o=this.presentConnections.filter(t=>-1===r.indexOf(t));
2r.push(...o),o.forEach(n=>n.push(t,e,!1,r))}drag(t,e,n=!1){r.isNull(t,e)||(this.dragShouldDisconnect(t,e)?(this.disconnect(),this.translate(t,e,n)):this.push(t,e,n))}dragShouldDisconnect(t,e){return this.puzzle.dragShouldDisconnect(this,t,e)}drop(){this.puzzle.autoconnectWith(this)}dragAndDrop(t,e){this.drag(t,e),this.drop()}canConnectHorizontallyWith(t){return this.horizontalConnector.canConnectWith(this,t,this.proximity)}canConnectVerticallyWith(t){return this.verticalConnector.canConnectWith(this,t,this.proximity)}verticallyCloseTo(t){return this.verticalConnector.closeTo(this,t,this.proximity)}horizontallyCloseTo(t){return this.horizontalConnector.closeTo(this,t,this.proximity)}verticallyMatch(t){return this.verticalConnector.match(this,t)}horizontallyMatch(t){return this.horizontalConnector.match(this,t)}get connected(){return!!(this.upConnection||this.downConnection||this.leftConnection||this.rightConnection)}get downAnchor(){return this.centralAnchor.translated(0,this.radius.y)}get rightAnchor(){return this.centralAnchor.translated(this.radius.x,0)}get upAnchor(){return this.centralAnchor.translated(0,-this.radius.y)}get leftAnchor(){return this.centralAnchor.translated(-this.radius.x,0)}resize(t){this._size=t}get radius(){return this.size.radius}get diameter(){return this.size.diameter}get size(){return this._size||this.puzzle.pieceSize}get proximity(){return this.puzzle.proximity}get id(){return this.metadata.id}get horizontalConnector(){return this.getConnector("horizontal")}get verticalConnector(){return this.getConnector("vertical")}getConnector(t){const e=t+"Connector",n="_"+e;return this.puzzle&&!this[n]?this.puzzle[e]:(this[n]||(this[n]=h[t]()),this[n])}export({compact:t=!1}={}){const base={centralAnchor:this.centralAnchor&&this.centralAnchor.export(),structure:d.serialize(this),metadata:this.metadata};return this._size&&(base.size={radius:this._size.radius}),t?base:Object.assign(base,{connections:m(this.connections,t=>({id:t.id}))})}static import(t){return new v(d.deserialize(t.structure),{centralAnchor:t.centralAnchor,metadata:t.metadata,size:t.size})}}t.exports=v},460:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);function c(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var h=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,39
26,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],d=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];e.Blur=function(t){var e=Math.round(this.blurRadius());e>0&&function(t,e){var n,r,i,p,o,l,f,m,v,y,_,w,x,S,C,T,M,P,E,O,k,A,D,I,z=t.data,F=t.width,R=t.height,div=e+e+1,N=F-1,L=R-1,j=e+1,$=j*(j+1)/2,G=new c,Y=null,V=G,B=null,W=null,U=h[e],H=d[e];for(i=1;i<div;i++)V=V.next=new c,i===j&&(Y=V);for(V.next=G,f=l=0,r=0;r<R;r++){for(T=M=P=E=m=v=y=_=0,w=j*(O=z[l]),x=j*(k=z[l+1]),S=j*(A=z[l+2]),C=j*(D=z[l+3]),m+=$*O,v+=$*k,y+=$*A,_+=$*D,V=G,i=0;i<j;i++)V.r=O,V.g=k,V.b=A,V.a=D,V=V.next;for(i=1;i<j;i++)p=l+((N<i?N:i)<<2),m+=(V.r=O=z[p])*(I=j-i),v+=(V.g=k=z[p+1])*I,y+=(V.b=A=z[p+2])*I,_+=(V.a=D=z[p+3])*I,T+=O,M+=k,P+=A,E+=D,V=V.next;for(B=G,W=Y,n=0;n<F;n++)z[l+3]=D=_*U>>H,0!==D?(D=255/D,z[l]=(m*U>>H)*D,z[l+1]=(v*U>>H)*D,z[l+2]=(y*U>>H)*D):z[l]=z[l+1]=z[l+2]=0,m-=w,v-=x,y-=S,_-=C,w-=B.r,x-=B.g,S-=B.b,C-=B.a,p=f+((p=n+e+1)<N?p:N)<<2,m+=T+=B.r=z[p],v+=M+=B.g=z[p+1],y+=P+=B.b=z[p+2],_+=E+=B.a=z[p+3],B=B.next,w+=O=W.r,x+=k=W.g,S+=A=W.b,C+=D=W.a,T-=O,M-=k,P-=A,E-=D,W=W.next,l+=4;f+=F}for(n=0;n<F;n++){for(M=P=E=T=v=y=_=m=0,w=j*(O=z[l=n<<2]),x=j*(k=z[l+1]),S=j*(A=z[l+2]),C=j*(D=z[l+3]),m+=$*O,v+=$*k,y+=$*A,_+=$*D,V=G,i=0;i<j;i++)V.r=O,V.g=k,V.b=A,V.a=D,V=V.next;for(o=F,i=1;i<=e;i++)l=o+n<<2,m+=(V.r=O=z[l])*(I=j-i),v+=(V.g=k=z[l+1])*I,y+=(V.b=A=z[l+2])*I,_+=(V.a=D=z[l+3])*I,T+=O,M+=k,P+=A,E+=D,V=V.next,i<L&&(o+=F);for(l=n,B=G,W=Y,r=0;r<R;r++)z[3+(p=l<<2)]=D=_*U>>H,D>0?(D=255/D,z[p]=(m*U>>H)*D,z[p+1]=(v*U>>H)*D,z[p+2]=(y*U>>H)*D):z[p]=z[p+1]=z[p+2]=0,m-=w,v-=x,y-=S,_-=C,w-=B.r,x-=B.g,S-=B.b,C-=B.a,p=n+((p=r+j)<L?p:L)*F<<2,m+=T+=B.r=z[p],v+=M+=B.g=z[p+1],y+=P+=B.b=z[p+2],_+=E+=B.a=z[p+3],B=B.next,w+=O=W.r,x+=k=W.g,S+=A=W.b,C+=D=W.a,T-=O,M-=k,P-=A,E-=D,W=W.next,l+=F}}(t,e)},r.Factory.addGetterSetter(o.Node,"blurRadius",0,l.getNumberValidator(),r.Factory.afterSetFilter)},461:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);e.Brighten=function(t){var i,e=255*this.brightness(),data=t.data,n=data.length;for(i=0;i<n;i+=4)data[i]+=e,data[i+1]+=e,data[i+2]+=e},r.Factory.addGetterSetter(o.Node,"brightness",0,l.getNumberValidator(),r.Factory.afterSetFilter)},462:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);e.Contrast=function(t){var i,e=Math.pow((this.contrast()+100)/100,2),data=t.data,n=data.length,r=150,o=150,l=150;for(i=0;i<n;i+=4)r=data[i],o=data[i+1],l=data[i+2],r/=255,r-=.5,r*=e,r+=.5,o/=255,o-=.5,o*=e,o+=.5,l/=255,l-=.5,l*=e,l+=.5,r=(r*=255)<0?0:r>255?255:r,o=(o*=255)<0?0:o>255?255:o,l=(l*=255)<0?0:l>255?255:l,data[i]=r,data[i+1]=o,data[i+2]=l},r.Factory.addGetterSetter(o.Node,"contrast",0,l.getNumberValidator(),r.Factory.afterSetFilter)},463:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(12),c=n(11);e.Emboss=function(t){var e=10*this.embossStrength(),n=255*this.embossWhiteLevel(),r=this.embossDirection(),o=this.embossBlend(),c=0,h=0,data=t.data,d=t.width,f=t.height,m=4*d,v=f;switch(r){case"top-left":c=-1,h=-1;break;case"top":c=-1,h=0;break;case"top-right":c=-1,h=1;break;case"right":c=0,h=1;break;case"bottom-right":c=1,h=1;break;case"bottom":c=1,h=0;break;case"bottom-left":c=1,h=-1;break;case"left":c=0,h=-1;break;default:l.Util.error("Unknown emboss direction: "+r)}do{var y=(v-1)*m,_=c;v+_<1&&(_=0),v+_>f&&(_=0);var w=(v-1+_)*d*4,x=d;do{var S=y+4*(x-1),C=h;x+C<1&&(C=0),x+C>d&&(C=0);var T=w+4*(x-1+C),M=data[S]-data[T],P=data[S+1]-data[T+1],E=data[S+2]-data[T+2],O=M,k=O>0?O:-O;if((P>0?P:-P)>k&&(O=P),(E>0?E:-E)>k&&(O=E),O*=e,o){var A=data[S]+O,g=data[S+1]+O,b=data[S+2]+O;data[S]=A>255?255:A<0?0:A,data[S+1]=g>255?255:g<0?0:g,data[S+2]=b>255?255:b<0?0:b}else{var D=n-O;D<0?D=0:D>255&&(D=255),data[S]=data[S+1]=data[S+2]=D}}while(--x)}while(--v)},r.Factory.addGetterSetter(o.Node,"embossStrength",.5,c.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(o.Node,"embossWhiteLevel",.5,c.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(o.Node,"embossDirection","top-left",null,r.Factory.afterSetFilter),r.Factory.addGetterSetter(o.Node,"embossBlend",!1,null,r.Factory.afterSetFilter)},464:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);function c(t,e,n,r,o){var l=n-e,c=o-r;return 0===l?r+c/2:0===c?r:c*((t-e)/l)+r}e.Enhance=function(t){var e,g,b,i,data=t.data,n=data.length,r=data[0],o=r,l=data[1],h=l,d=data[2],f=d,m=this.enhance();if(0!==m){for(i=0;i<n;i+=4)(e=data[i+0])<r?r=e:e>o&&(o=e),(g=data[i+1])<l?l=g:g>h&&(h=g),(b=data[i+2])<d?d=b:b>f&&(f=b);var v,y,_,w,x,S,C,T,M;for(o===r&&(o=255,r=0),h===l&&(h=255,l=0),f===d&&(f=255,d=0),m>0?(y=o+m*(255-o),_=r-m*(r-0),x=h+m*(255-h),S=l-m*(l-0),T=f+m*(255-f),M=d-m*(d-0)):(y=o+m*(o-(v=.5*(o+r))),_=r+m*(r-v),x=h+m*(h-(w=.5*(h+l))),S=l+m*(l-w),T=f+m*(f-(C=.5*(f+d))),M=d+m*(d-C)),i=0;i<n;i+=4)data[i+0]=c(data[i+0],r,o,_,y),data[i+1]=c(data[i+1],l,h,S,x),data[i+2]=c(data[i+2],d,f,M,T)}},r.Factory.addGetterSetter(o.Node,"enhance",0,l.getNumberValidator(),r.Factory.afterSetFilter)},465:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Grayscale=function(t){var i,e,data=t.data,n=data.length;for(i=0;i<n;i+=4)e=.34*data[i]+.5*data[i+1]+.16*data[i+2],data[i]=e,data[i+1]=e,data[i+2]=e}},466:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);r.Factory.addGetterSetter(o.Node,"hue",0,l.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(o.Node,"saturation",0,l.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(o.Node,"luminance",0,l.getNumberValidator(),r.Factory.afterSetFilter),e.HSL=function(t){var i,e,g,b,a,data=t.data,n=data.length,s=Math.pow(2,this.saturation()),r=Math.abs(this.hue()+360)%360,o=127*this.luminance(),l=1*s*Math.cos(r*Math.PI/180),c=1*s*Math.sin(r*Math.PI/180),h=.299+.701*l+.167*c,d=.587-.587*l+.33*c,f=.114-.114*l-.497*c,m=.299-.299*l-.328*c,v=.587+.413*l+.035*c,y=.114-.114*l+.293*c,br=.299-.3*l+1.25*c,_=.587-.586*l-1.05*c,w=.114+.886*l-.2*c;for(i=0;i<n;i+=4)e=data[i+0],g=data[i+1],b=data[i+2],a=data[i+3],data[i+0]=h*e+d*g+f*b+o,data[i+1]=m*e+v*g+y*b+o,data[i+2]=br*e+_*g+w*b+o,data[i+3]=a}},467:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);e.HSV=function(t){var i,e,g,b,a,data=t.data,n=data.length,r=Math.pow(2,this.value()),s=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,l=r*s*Math.cos(o*Math.PI/180),c=r*s*Math.sin(o*Math.PI/180),h=.299*r+.701*l+.167*c,d=.587*r-.587*l+.33*c,f=.114*r-.114*l-.497*c,m=.299*r-.299*l-.328*c,v=.587*r+.413*l+.035*c,y=.114*r-.114*l+.293*c,br=.299*r-.3*l+1.25*c,_=.587*r-.586*l-1.05*c,w=.114*r+.886*l-.2*c;for(i=0;i<n;i+=4)e=data[i+0],g=data[i+1],b=data[i+2],a=data[i+3],data[i+0]=h*e+d*g+f*b,data[i+1]=m*e+v*g+y*b,data[i+2]=br*e+_*g+w*b,data[i+3]=a},r.Factory.addGetterSetter(o.Node,"hue",0,l.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(o.Node,"saturation",0,l.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(o.Node,"value",0,l.getNumberValidator(),r.Factory.afterSetFilter)},468:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Invert=function(t){var i,data=t.data,e=data.length;for(i=0;i<e;i+=4)data[i]=255-data[i],data[i+1]=255-data[i+1],data[i+2]=255-data[i+2]}},469:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(12),c=n(11);e.Kaleidoscope=function(t){var e,n,i,r,g,b,a,o,c,h=t.width,d=t.height,f=Math.round(this.kaleidoscopePower()),m=Math.round(this.kaleidoscopeAngle()),v=Math.floor(h*(m%360)/360);if(!(f<1)){var y=l.Util.createCanvasElement();y.width=h,y.height=d;var _=y.getContext("2d").getImageData(0,0,h,d);!function(t,e,n){var i,r,o,l,c=t.data,h=e.data,d=t.width,f=t.height,m=n.polarCenterX||d/2,v=n.polarCenterY||f/2,y=0,g=0,b=0,a=0,_=Math.sqrt(m*m+v*v);r=d-m,o=f-v,_=(l=Math.sqrt(r*r+o*o))>_?l:_;var w,x,S,C,T=f,M=d,P=360/M*Math.PI/180;for(x=0;x<M;x+=1)for(S=Math.sin(x*P),C=Math.cos(x*P),w=0;w<T;w+=1)r=Math.floor(m+_*w/T*C),y=c[0+(i=4*((o=Math.floor(v+_*w/T*S))*d+r))],g=c[i+1],b=c[i+2],a=c[i+3],h[0+(i=4*(x+w*d))]=y,h[i+1]=g,h[i+2]=b,h[i+3]=a}(t,_,{polarCenterX:h/2,polarCenterY:d/2});for(var w=h/Math.pow(2,f);w<=8;)w*=2,f-=1;var x=w=Math.ceil(w),S=0,C=x,T=1;for(v+w>h&&(S=x,C=0,T=-1),n=0;n<d;n+=1)for(e=S;e!==C;e+=T)o=4*(h*n+Math.round(e+v)%h),r=_.data[o+0],g=_.data[o+1],b=_.data[o+2],a=_.data[o+3],c=4*(h*n+e),_.data[c+0]=r,_.data[c+1]=g,_.data[c+2]=b,_.data[c+3]=a;for(n=0;n<d;n+=1)for(x=Math.floor(w),i=0;i<f;i+=1){for(e=0;e<x+1;e+=1)o=4*(h*n+e),r=_.data[o+0],g=_.data[o+1],b=_.data[o+2],a=_.data[o+3],c=4*(h*n+2*x-e-1),_.data[c+0]=r,_.data[c+1]=g,_.data[c+2]=b,_.data[c+3]=a;x*=2}!function(t,e,n){var i,r,o,l,c,h,d=t.data,f=e.data,m=t.width,v=t.height,y=n.polarCenterX||m/2,_=n.polarCenterY||v/2,w=0,g=0,b=0,a=0,x=Math.sqrt(y*y+_*_);r=m-y,o=v-_,x=(h=Math.sqrt(r*r+o*o))>x?h:x;var S,C,T,M=v,P=m,E=n.polarRotation||0;for(r=0;r<m;r+=1)for(o=0;o<v;o+=1)l=r-y,c=o-_,S=Math.sqrt(l*l+c*c)*M/x,C=(C=(180*Math.atan2(c,l)/Math.PI+360+E)%360)*P/360,T=Math.floor(C),w=d[0+(i=4*(Math.floor(S)*m+T))],g=d[i+1],b=d[i+2],a=d[i+3],f[0+(i=4*(o*m+r))]=w,f[i+1]=g,f[i+2]=b,f[i+3]=a}(_,t,{polarRotation:0})}},r.Factory.addGetterSetter(o.Node,"kaleidoscopePower",2,c.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(o.Node,"kaleidoscopeAngle",0,c.getNumberValidator(),r.Factory.afterSetFilter)},470:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);function c(t,e,n){var r=4*(n*t.width+e),o=[];return o.push(t.data[r++],t.data[r++],t.data[r++],t.data[r++]),o}function h(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}e.Mask=function(t){var mask=function(t,e){var n=c(t,0,0),r=c(t,t.width-1,0),o=c(t,0,t.height-1),l=c(t,t.width-1,t.height-1),d=e||10;if(h(n,r)<d&&h(r,l)<d&&h(l,o)<d&&h(o,n)<d){for(var f=function(t){for(var e=[0,0,0],i=0;i<t.length;i++)e[0]+=t[i][0],e[1]+=t[i][1],e[2]+=t[i][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}([r,n,l,o]),mask=[],i=0;i<t.width*t.height;i++){var m=h(f,[t.data[4*i],t.data[4*i+1],t.data[4*i+2]]);mask[i]=m<d?0:255}return mask}}(t,this.threshold());return mask&&function(t,mask){for(var i=0;i<t.width*t.height;i++)t.data[4*i+3]=mask[i]}(t,mask=function(mask,t,e){for(var n=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],r=Math.round(Math.sqrt(n.length)),o=Math.floor(r/2),l=[],c=0;c<e;c++)for(var h=0;h<t;h++){for(var d=c*t+h,a=0,f=0;f<r;f++)for(var m=0;m<r;m++){var v=c+f-o,y=h+m-o;if(v>=0&&v<e&&y>=0&&y<t){var _=n[f*r+m];a+=mask[v*t+y]*_}}l[d]=a}return l}
2(mask=function(mask,t,e){for(var n=[1,1,1,1,1,1,1,1,1],r=Math.round(Math.sqrt(n.length)),o=Math.floor(r/2),l=[],c=0;c<e;c++)for(var h=0;h<t;h++){for(var d=c*t+h,a=0,f=0;f<r;f++)for(var m=0;m<r;m++){var v=c+f-o,y=h+m-o;if(v>=0&&v<e&&y>=0&&y<t){var _=n[f*r+m];a+=mask[v*t+y]*_}}l[d]=a>=1020?255:0}return l}(mask=function(mask,t,e){for(var n=[1,1,1,1,0,1,1,1,1],r=Math.round(Math.sqrt(n.length)),o=Math.floor(r/2),l=[],c=0;c<e;c++)for(var h=0;h<t;h++){for(var d=c*t+h,a=0,f=0;f<r;f++)for(var m=0;m<r;m++){var v=c+f-o,y=h+m-o;if(v>=0&&v<e&&y>=0&&y<t){var _=n[f*r+m];a+=mask[v*t+y]*_}}l[d]=2040===a?255:0}return l}(mask,t.width,t.height),t.width,t.height),t.width,t.height)),t},r.Factory.addGetterSetter(o.Node,"threshold",0,l.getNumberValidator(),r.Factory.afterSetFilter)},471:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);e.Noise=function(t){var i,e=255*this.noise(),data=t.data,n=data.length,r=e/2;for(i=0;i<n;i+=4)data[i+0]+=r-2*r*Math.random(),data[i+1]+=r-2*r*Math.random(),data[i+2]+=r-2*r*Math.random()},r.Factory.addGetterSetter(o.Node,"noise",.2,l.getNumberValidator(),r.Factory.afterSetFilter)},472:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(12),l=n(21),c=n(11);e.Pixelate=function(t){var e,n,i,r,l,c,h,d,f,m,v,y,_,w,x=Math.ceil(this.pixelSize()),S=t.width,C=t.height,T=Math.ceil(S/x),M=Math.ceil(C/x),data=t.data;if(x<=0)o.Util.error("pixelSize value can not be <= 0");else for(y=0;y<T;y+=1)for(_=0;_<M;_+=1){for(r=0,l=0,c=0,h=0,f=(d=y*x)+x,v=(m=_*x)+x,w=0,e=d;e<f;e+=1)if(!(e>=S))for(n=m;n<v;n+=1)n>=C||(r+=data[(i=4*(S*n+e))+0],l+=data[i+1],c+=data[i+2],h+=data[i+3],w+=1);for(r/=w,l/=w,c/=w,h/=w,e=d;e<f;e+=1)if(!(e>=S))for(n=m;n<v;n+=1)n>=C||(data[(i=4*(S*n+e))+0]=r,data[i+1]=l,data[i+2]=c,data[i+3]=h)}},r.Factory.addGetterSetter(l.Node,"pixelSize",8,c.getNumberValidator(),r.Factory.afterSetFilter)},473:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);e.Posterize=function(t){var i,e=Math.round(254*this.levels())+1,data=t.data,n=data.length,r=255/e;for(i=0;i<n;i+=1)data[i]=Math.floor(data[i]/r)*r},r.Factory.addGetterSetter(o.Node,"levels",.5,l.getNumberValidator(),r.Factory.afterSetFilter)},474:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);e.RGB=function(t){var i,e,data=t.data,n=data.length,r=this.red(),o=this.green(),l=this.blue();for(i=0;i<n;i+=4)e=(.34*data[i]+.5*data[i+1]+.16*data[i+2])/255,data[i]=e*r,data[i+1]=e*o,data[i+2]=e*l,data[i+3]=data[i+3]},r.Factory.addGetterSetter(o.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),r.Factory.addGetterSetter(o.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),r.Factory.addGetterSetter(o.Node,"blue",0,l.RGBComponent,r.Factory.afterSetFilter)},475:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);e.RGBA=function(t){var i,e,data=t.data,n=data.length,r=this.red(),o=this.green(),l=this.blue(),c=this.alpha();for(i=0;i<n;i+=4)e=1-c,data[i]=r*c+data[i]*e,data[i+1]=o*c+data[i+1]*e,data[i+2]=l*c+data[i+2]*e},r.Factory.addGetterSetter(o.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),r.Factory.addGetterSetter(o.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),r.Factory.addGetterSetter(o.Node,"blue",0,l.RGBComponent,r.Factory.afterSetFilter),r.Factory.addGetterSetter(o.Node,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t})},476:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sepia=function(t){var i,e,g,b,data=t.data,n=data.length;for(i=0;i<n;i+=4)e=data[i+0],g=data[i+1],b=data[i+2],data[i+0]=Math.min(255,.393*e+.769*g+.189*b),data[i+1]=Math.min(255,.349*e+.686*g+.168*b),data[i+2]=Math.min(255,.272*e+.534*g+.131*b)}},477:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Solarize=function(t){var data=t.data,e=t.width,n=4*e,r=t.height;do{var o=(r-1)*n,l=e;do{var c=o+4*(l-1),h=data[c],g=data[c+1],b=data[c+2];h>127&&(h=255-h),g>127&&(g=255-g),b>127&&(b=255-b),data[c]=h,data[c+1]=g,data[c+2]=b}while(--l)}while(--r)}},478:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(21),l=n(11);e.Threshold=function(t){var i,e=255*this.threshold(),data=t.data,n=data.length;for(i=0;i<n;i+=1)data[i]=data[i]<e?0:255},r.Factory.addGetterSetter(o.Node,"threshold",.5,l.getNumberValidator(),r.Factory.afterSetFilter)},485:function(t,e,n){t.exports={}},51:function(t,e,n){const r=n(56);function o(t,e){return{x:t,y:e}}function l(t){return"number"==typeof t?o(t,t):t}function c(t,e,n){const r=l(t),o=l(e);return{x:n(r.x,o.x),y:n(r.y,o.y)}}const h={min(t){return this.apply(t,Math.min)},max(t){return this.apply(t,Math.max)},apply:(t,e)=>e(t.x,t.y)};t.exports={cast:l,vector:o,copy:function({x:t,y:e}){return{x:t,y:e}},equal:function(t,e,n=0){return r.equal(t.x,t.y,e.x,e.y,n)},zero:function(){return o(0,0)},update:function(t,e,n){t.x=e,t.y=n},diff:function(t,e){return r.diff(t.x,t.y,e.x,e.y)},multiply:function(t,e){return c(t,e,(t,e)=>t*e)},divide:function(t,e){return c(t,e,(t,e)=>t/e)},plus:function(t,e){return c(t,e,(t,e)=>t+e)},minus:function(t,e){return c(t,e,(t,e)=>t-e)},apply:c,min:function(t,e){return c(t,e,Math.min)},max:function(t,e){return c(t,e,Math.max)},inner:h}},528:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function o(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach(function(n){void 0===t[n]?t[n]=e[n]:r(e[n])&&r(t[n])&&Object.keys(e[n]).length>0&&o(t[n],e[n])})}n.r(e);var l="undefined"!=typeof document?document:{},c={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};o(l,c);var h="undefined"!=typeof window?window:{};o(h,{document:c,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}});class d{constructor(t){const e=this;for(let i=0;i<t.length;i+=1)e[i]=t[i];return e.length=t.length,this}}function f(t,e){const n=[];let i=0;if(t&&!e&&t instanceof d)return t;if(t)if("string"==typeof t){let r,o;const html=t.trim();if(html.indexOf("<")>=0&&html.indexOf(">")>=0){let t="div";for(0===html.indexOf("<li")&&(t="ul"),0===html.indexOf("<tr")&&(t="tbody"),0!==html.indexOf("<td")&&0!==html.indexOf("<th")||(t="tr"),0===html.indexOf("<tbody")&&(t="table"),0===html.indexOf("<option")&&(t="select"),o=l.createElement(t),o.innerHTML=html,i=0;i<o.childNodes.length;i+=1)n.push(o.childNodes[i])}else for(r=e||"#"!==t[0]||t.match(/[ .<>:~]/)?(e||l).querySelectorAll(t.trim()):[l.getElementById(t.trim().split("#")[1])],i=0;i<r.length;i+=1)r[i]&&n.push(r[i])}else if(t.nodeType||t===h||t===l)n.push(t);else if(t.length>0&&t[0].nodeType)for(i=0;i<t.length;i+=1)n.push(t[i]);return new d(n)}function m(t){const e=[];for(let i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}f.fn=d.prototype,f.Class=d,f.Dom7=d;"resize scroll".split(" ");const v={addClass:function(t){if(void 0===t)return this;const e=t.split(" ");for(let i=0;i<e.length;i+=1)for(let t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.add(e[i]);return this},removeClass:function(t){const e=t.split(" ");for(let i=0;i<e.length;i+=1)for(let t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.remove(e[i]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){const e=t.split(" ");for(let i=0;i<e.length;i+=1)for(let t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.toggle(e[i]);return this},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(t,e);else for(const e in t)this[i][e]=t[e],this[i].setAttribute(e,t[e]);return this},removeAttr:function(t){for(let i=0;i<this.length;i+=1)this[i].removeAttribute(t);return this},data:function(t,e){let n;if(void 0!==e){for(let i=0;i<this.length;i+=1)n=this[i],n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[t]=e;return this}if(n=this[0],n){if(n.dom7ElementDataStorage&&t in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[t];const e=n.getAttribute(`data-${t}`);return e||void 0}},transform:function(t){for(let i=0;i<this.length;i+=1){const e=this[i].style;e.webkitTransform=t,e.transform=t}return this},transition:function(t){"string"!=typeof t&&(t=`${t}ms`);for(let i=0;i<this.length;i+=1){const e=this[i].style;e.webkitTransitionDuration=t,e.transitionDuration=t}return this},on:function(...t){let[e,n,r,o]=t;function l(t){const e=t.target;if(!e)return;const o=t.target.dom7EventData||[];if(o.indexOf(t)<0&&o.unshift(t),f(e).is(n))r.apply(e,o);else{const t=f(e).parents();for(let e=0;e<t.length;e+=1)f(t[e]).is(n)&&r.apply(t[e],o)}}function c(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),r.apply(this,e)}"function"==typeof t[1]&&([e,r,o]=t,n=void 0),o||(o=!1);const h=e.split(" ");let d;for(let i=0;i<this.length;i+=1){const t=this[i];if(n)for(d=0;d<h.length;d+=1){const e=h[d];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:r,proxyListener:l}),t.addEventListener(e,l,o)}else for(d=0;d<h.length;d+=1){const e=h[d];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:r,proxyListener:c}),t.addEventListener(e,c,o)}}return this},off:function(...t){let[e,n,r,o]=t;"function"==typeof t[1]&&([e,r,o]=t,n=void 0),o||(o=!1);const l=e.split(" ");for(let i=0;i<l.length;i+=1){const t=l[i];for(let e=0;e<this.length;e+=1){const l=this[e];let c;if(!n&&l.dom7Listeners?c=l.dom7Listeners[t]:n&&l.dom7LiveListeners&&(c=l.dom7LiveListeners[t]),c&&c.length)for(let e=c.length-1;e>=0;e-=1){const n=c[e];r&&n.listener===r||r&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===r?(l.removeEventListener(t,n.proxyListener,o),c.splice(e,1)):r||(l.removeEventListener(t,n.proxyListener,o),c.splice(e,1))}}}return this},trigger:function(...t){const e=t[0].split(" "),n=t[1];for(let i=0;i<e.length;i+=1){const r=e[i];for(let e=0;e<this.length;e+=1){const o=this[e];let c;try{c=new h.CustomEvent(r,{detail:n,bubbles:!0,cancelable:!0})}catch(t){c=l.createEvent("Event"),c.initEvent(r,!0,!0),c.detail=n}o.dom7EventData=t.filter((data,t)=>t>0),o.dispatchEvent(c),o.dom7EventData=[],delete o.dom7EventData}}return this},transitionEnd:function(t){const e=["webkitTransitionEnd","transitionend"],n=this;let i;function r(o){if(o.target===this)for(t.call(this,o),i=0;i<e.length;i+=1)n.off(e[i],r)}if(t)for(i=0;i<e.length;i+=1)n.on(e[i],r);return this},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+
vendor: 14,040 bytes, line 2
2parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){const t=this[0],e=t.getBoundingClientRect(),body=l.body,n=t.clientTop||body.clientTop||0,r=t.clientLeft||body.clientLeft||0,o=t===h?h.scrollY:t.scrollTop,c=t===h?h.scrollX:t.scrollLeft;return{top:e.top+o-n,left:e.left+c-r}}return null},css:function(t,e){let i;if(1===arguments.length){if("string"!=typeof t){for(i=0;i<this.length;i+=1)for(let e in t)this[i].style[e]=t[e];return this}if(this[0])return h.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(i=0;i<this.length;i+=1)this[i].style[t]=e;return this}return this},each:function(t){if(!t)return this;for(let i=0;i<this.length;i+=1)if(!1===t.call(this[i],i,this[i]))return this;return this},html:function(html){if(void 0===html)return this[0]?this[0].innerHTML:void 0;for(let i=0;i<this.length;i+=1)this[i].innerHTML=html;return this},text:function(text){if(void 0===text)return this[0]?this[0].textContent.trim():null;for(let i=0;i<this.length;i+=1)this[i].textContent=text;return this},is:function(t){const e=this[0];let n,i;if(!e||void 0===t)return!1;if("string"==typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(n=f(t),i=0;i<n.length;i+=1)if(n[i]===e)return!0;return!1}if(t===l)return e===l;if(t===h)return e===h;if(t.nodeType||t instanceof d){for(n=t.nodeType?[t]:t,i=0;i<n.length;i+=1)if(n[i]===e)return!0;return!1}return!1},index:function(){let i,t=this[0];if(t){for(i=0;null!==(t=t.previousSibling);)1===t.nodeType&&(i+=1);return i}},eq:function(t){if(void 0===t)return this;const e=this.length;let n;return t>e-1?new d([]):t<0?(n=e+t,new d(n<0?[]:[this[n]])):new d([this[t]])},append:function(...t){let e;for(let n=0;n<t.length;n+=1){e=t[n];for(let i=0;i<this.length;i+=1)if("string"==typeof e){const t=l.createElement("div");for(t.innerHTML=e;t.firstChild;)this[i].appendChild(t.firstChild)}else if(e instanceof d)for(let t=0;t<e.length;t+=1)this[i].appendChild(e[t]);else this[i].appendChild(e)}return this},prepend:function(t){let i,e;for(i=0;i<this.length;i+=1)if("string"==typeof t){const n=l.createElement("div");for(n.innerHTML=t,e=n.childNodes.length-1;e>=0;e-=1)this[i].insertBefore(n.childNodes[e],this[i].childNodes[0])}else if(t instanceof d)for(e=0;e<t.length;e+=1)this[i].insertBefore(t[e],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&f(this[0].nextElementSibling).is(t)?new d([this[0].nextElementSibling]):new d([]):this[0].nextElementSibling?new d([this[0].nextElementSibling]):new d([]):new d([])},nextAll:function(t){const e=[];let n=this[0];if(!n)return new d([]);for(;n.nextElementSibling;){const r=n.nextElementSibling;t?f(r).is(t)&&e.push(r):e.push(r),n=r}return new d(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&f(e.previousElementSibling).is(t)?new d([e.previousElementSibling]):new d([]):e.previousElementSibling?new d([e.previousElementSibling]):new d([])}return new d([])},prevAll:function(t){const e=[];let n=this[0];if(!n)return new d([]);for(;n.previousElementSibling;){const r=n.previousElementSibling;t?f(r).is(t)&&e.push(r):e.push(r),n=r}return new d(e)},parent:function(t){const e=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?f(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return f(m(e))},parents:function(t){const e=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;for(;n;)t?f(n).is(t)&&e.push(n):e.push(n),n=n.parentNode}return f(m(e))},closest:function(t){let e=this;return void 0===t?new d([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){const e=[];for(let i=0;i<this.length;i+=1){const n=this[i].querySelectorAll(t);for(let t=0;t<n.length;t+=1)e.push(n[t])}return new d(e)},children:function(t){const e=[];for(let i=0;i<this.length;i+=1){const n=this[i].childNodes;for(let r=0;r<n.length;r+=1)t?1===n[r].nodeType&&f(n[r]).is(t)&&e.push(n[r]):1===n[r].nodeType&&e.push(n[r])}return new d(m(e))},filter:function(t){const e=[],n=this;for(let i=0;i<n.length;i+=1)t.call(n[i],i,n[i])&&e.push(n[i]);return new d(e)},remove:function(){for(let i=0;i<this.length;i+=1)this[i].parentNode&&this[i].parentNode.removeChild(this[i]);return this},add:function(...t){const e=this;let i,n;for(i=0;i<t.length;i+=1){const r=f(t[i]);for(n=0;n<r.length;n+=1)e[e.length]=r[n],e.length+=1}return e},styles:function(){return this[0]?h.getComputedStyle(this[0],null):{}}};Object.keys(v).forEach(t=>{f.fn[t]=f.fn[t]||v[t]});const y={deleteProps(t){const object=t;Object.keys(object).forEach(t=>{try{object[t]=null}catch(t){}try{delete object[t]}catch(t){}})},nextTick:(t,e=0)=>setTimeout(t,e),now:()=>Date.now(),getTranslate(t,e="x"){let n,r,o;const l=h.getComputedStyle(t,null);return h.WebKitCSSMatrix?(r=l.transform||l.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(a=>a.replace(",",".")).join(", ")),o=new h.WebKitCSSMatrix("none"===r?"":r)):(o=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===e&&(r=h.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(r=h.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0},parseUrlQuery(t){const e={};let i,n,param,r,o=t||h.location.href;if("string"==typeof o&&o.length)for(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"",n=o.split("&").filter(t=>""!==t),r=n.length,i=0;i<r;i+=1)param=n[i].replace(/#\S+/g,"").split("="),e[decodeURIComponent(param[0])]=void 0===param[1]?void 0:decodeURIComponent(param[1])||"";return e},isObject:t=>"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object,extend(...t){const e=Object(t[0]);for(let i=1;i<t.length;i+=1){const n=t[i];if(null!=n){const t=Object.keys(Object(n));for(let r=0,o=t.length;r<o;r+=1){const o=t[r],desc=Object.getOwnPropertyDescriptor(n,o);void 0!==desc&&desc.enumerable&&(y.isObject(e[o])&&y.isObject(n[o])?y.extend(e[o],n[o]):!y.isObject(e[o])&&y.isObject(n[o])?(e[o]={},y.extend(e[o],n[o])):e[o]=n[o])}}}return e}},_={touch:!!("ontouchstart"in h||h.DocumentTouch&&l instanceof h.DocumentTouch),pointerEvents:!!h.PointerEvent&&"maxTouchPoints"in h.navigator&&h.navigator.maxTouchPoints>=0,observer:"MutationObserver"in h||"WebkitMutationObserver"in h,passiveListener:function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get(){t=!0}});h.addEventListener("testPassiveListener",null,e)}catch(t){}return t}(),gestures:"ongesturestart"in h};class w{constructor(t={}){const e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach(t=>{e.on(t,e.params.on[t])})}on(t,e,n){const r=this;if("function"!=typeof e)return r;const o=n?"unshift":"push";return t.split(" ").forEach(t=>{r.eventsListeners[t]||(r.eventsListeners[t]=[]),r.eventsListeners[t][o](e)}),r}once(t,e,n){const r=this;if("function"!=typeof e)return r;function o(...n){r.off(t,o),o.f7proxy&&delete o.f7proxy,e.apply(r,n)}return o.f7proxy=e,r.on(t,o,n)}off(t,e){const n=this;return n.eventsListeners?(t.split(" ").forEach(t=>{void 0===e?n.eventsListeners[t]=[]:n.eventsListeners[t]&&n.eventsListeners[t].length&&n.eventsListeners[t].forEach((r,o)=>{(r===e||r.f7proxy&&r.f7proxy===e)&&n.eventsListeners[t].splice(o,1)})}),n):n}emit(...t){const e=this;if(!e.eventsListeners)return e;let n,data,r;"string"==typeof t[0]||Array.isArray(t[0])?(n=t[0],data=t.slice(1,t.length),r=e):(n=t[0].events,data=t[0].data,r=t[0].context||e);return(Array.isArray(n)?n:n.split(" ")).forEach(t=>{if(e.eventsListeners&&e.eventsListeners[t]){const n=[];e.eventsListeners[t].forEach(t=>{n.push(t)}),n.forEach(t=>{t.apply(r,data)})}}),e}useModulesParams(t){const e=this;e.modules&&Object.keys(e.modules).forEach(n=>{const r=e.modules[n];r.params&&y.extend(t,r.params)})}useModules(t={}){const e=this;e.modules&&Object.keys(e.modules).forEach(n=>{const r=e.modules[n],o=t[n]||{};r.instance&&Object.keys(r.instance).forEach(t=>{const n=r.instance[t];e[t]="function"==typeof n?n.bind(e):n}),r.on&&e.on&&Object.keys(r.on).forEach(t=>{e.on(t,r.on[t])}),r.create&&r.create.bind(e)(o)})}static set components(t){this.use&&this.use(t)}static installModule(t,...e){const n=this;n.prototype.modules||(n.prototype.modules={});const r=t.name||`${Object.keys(n.prototype.modules).length}_${y.now()}`;return n.prototype.modules[r]=t,t.proto&&Object.keys(t.proto).forEach(e=>{n.prototype[e]=t.proto[e]}),t.static&&Object.keys(t.static).forEach(e=>{n[e]=t.static[e]}),t.install&&t.install.apply(n,e),n}static use(t,...e){const n=this;return Array.isArray(t)?(t.forEach(t=>n.installModule(t)),n):n.installModule(t,...e)}}var x={updateSize:function(){const t=this;let e,n;const r=t.$el;e=void 0!==t.params.width?t.params.width:r[0].clientWidth,n=void 0!==t.params.height?t.params.height:r[0].clientHeight,0===e&&t.isHorizontal()||0===n&&t.isVertical()||(e=e-parseInt(r.css("padding-left"),10)-parseInt(r.css("padding-right"),10),n=n-parseInt(r.css("padding-top"),10)-parseInt(r.css("padding-bottom"),10),y.extend(t,{width:e,height:n,size:t.isHorizontal()?e:n}))},updateSlides:function(){const t=this,e=t.params,{$wrapperEl:n,size:r,rtlTranslate:o,wrongRTL:l}=t,c=t.virtual&&e.virtual.enabled,d=c?t.virtual.slides.length:t.slides.length,f=n.children(`.${t.params.slideClass}`),m=c?t.virtual.slides.length:f.length;let v=[];const _=[],w=[];function x(t){return!e.cssMode||t!==f.length-1}let S=e.slidesOffsetBefore;"function"==typeof S&&(S=e.slidesOffsetBefore.call(t));let C=e.slidesOffsetAfter;"function"==typeof C&&(C=e.slidesOffsetAfter.call(t));const T=t.snapGrid.length,M=t.snapGrid.length;let P,E,O=e.spaceBetween,k=-S,A=0,D=0;if(void 0===r)return;"string"==typeof O&&O.indexOf("%")>=0&&(O=parseFloat(O.replace("%",""))/100*r),t.virtualSize=-O,o?f.css({marginLeft:"",marginTop:""}):f.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(P=Math.floor(m/e.slidesPerColumn)===m/t.params.slidesPerColumn?m:Math.ceil(m/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(P=Math.max(P,e.slidesPerView*e.slidesPerColumn)));const I=e.slidesPerColumn,z=P/I,F=Math.floor(m/e.slidesPerColumn);for(let i=0;i<m;i+=1){E=0;const n=f.eq(i);if(e.slidesPerColumn>1){let r,o,l;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){const t=Math.floor(i/(e.slidesPerGroup*e.slidesPerColumn)),c=i-e.slidesPerColumn*e.slidesPerGroup*t,h=0===t?e.slidesPerGroup:Math.min(Math.ceil((m-t*I*e.slidesPerGroup)/I),e.slidesPerGroup);l=Math.floor(c/h),o=c-l*h+t*e.slidesPerGroup,r=o+l*P/I,n.css({"-webkit-box-ordinal-group":r,"-moz-box-ordinal-group":r,"-ms-flex-order":r,"-webkit-order":r,order:r})}else"column"===e.slidesPerColumnFill?(o=Math.floor(i/I),l=i-o*I,(o>F||o===F&&l===I-1)&&(l+=1,l>=I&&(l=0,o+=1))):(l=Math.floor(i/z),o=i-l*z);n.css("margin-"+(t.isHorizontal()?"top":"left"),0!==l&&e.spaceBetween&&`${e.spaceBetween}px`)}if("none"!==n.css("display")){if("auto"===e.slidesPerView){const r=h.getComputedStyle(n[0],null),o=n[0].style.transform,l=n[0].style.webkitTransform;if(o&&(n[0].style.transform="none"),l&&(n[0].style.webkitTransform="none"),e.roundLengths)E=t.isHorizontal()?n.outerWidth(!0):n.outerHeight(!0);else if(t.isHorizontal()){const t=parseFloat(r.getPropertyValue("width")),e=parseFloat(r.getPropertyValue("padding-left")),n=parseFloat(r.getPropertyValue("padding-right")),o=parseFloat(r.getPropertyValue("margin-left")),l=parseFloat(r.getPropertyValue("margin-right")),c=r.getPropertyValue("box-sizing");E=c&&"border-box"===c?t+o+l:t+e+n+o+l}else{const t=parseFloat(r.getPropertyValue("height")),e=parseFloat(r.getPropertyValue("padding-top")),n=parseFloat(r.getPropertyValue("padding-bottom")),o=parseFloat(r.getPropertyValue("margin-top")),l=parseFloat(r.getPropertyValue("margin-bottom")),c=r.getPropertyValue("box-sizing");E=c&&"border-box"===c?t+o+l:t+e+n+o+l}o&&(n[0].style.transform=o),l&&(n[0].style.webkitTransform=l),e.roundLengths&&(E=Math.floor(E))}else E=(r-(e.slidesPerView-1)*O)/e.slidesPerView,e.roundLengths&&(E=Math.floor(E)),f[i]&&(t.isHorizontal()?f[i].style.width=`${E}px`:f[i].style.height=`${E}px`);f[i]&&(f[i].swiperSlideSize=E),w.push(E),e.centeredSlides?(k=k+E/2+A/2+O,0===A&&0!==i&&(k=k-r/2-O),0===i&&(k=k-r/2-O),Math.abs(k)<.001&&(k=0),e.roundLengths&&(k=Math.floor(k)),D%e.slidesPerGroup===0&&v.push(k),_.push(k)):(e.roundLengths&&(k=Math.floor(k)),(D-Math.min(t.params.slidesPerGroupSkip,D))%t.params.slidesPerGroup===0&&v.push(k),_.push(k),k=k+E+O),t.virtualSize+=E+O,A=E,D+=1}}let R;if(t.virtualSize=Math.max(t.virtualSize,r)+C,o&&l&&("slide"===e.effect||"coverflow"===e.effect)&&n.css({width:`${t.virtualSize+e.spaceBetween}px`}),e.setWrapperSize&&(t.isHorizontal()?n.css({width:`${t.virtualSize+e.spaceBetween}px`}):n.css({height:`${t.virtualSize+e.spaceBetween}px`})),e.slidesPerColumn>1&&(t.virtualSize=(E+e.spaceBetween)*P,t.virtualSize=Math.ceil(t.virtualSize/e.slidesPerColumn)-e.spaceBetween,t.isHorizontal()?n.css({width:`${t.virtualSize+e.spaceBetween}px`}):n.css({height:`${t.virtualSize+e.spaceBetween}px`}),e.centeredSlides)){R=[];for(let i=0;i<v.length;i+=1){let n=v[i];e.roundLengths&&(n=Math.floor(n)),v[i]<t.virtualSize+v[0]&&R.push(n)}v=R}if(!e.centeredSlides){R=[];for(let i=0;i<v.length;i+=1){let n=v[i];e.roundLengths&&(n=Math.floor(n)),v[i]<=t.virtualSize-r&&R.push(n)}v=R,Math.floor(t.virtualSize-r)-Math.floor(v[v.length-1])>1&&v.push(t.virtualSize-r)}if(0===v.length&&(v=[0]),0!==e.spaceBetween&&(t.isHorizontal()?o?f.filter(x).css({marginLeft:`${O}px`}):f.filter(x).css({marginRight:`${O}px`}):f.filter(x).css({marginBottom:`${O}px`}
2)),e.centeredSlides&&e.centeredSlidesBounds){let t=0;w.forEach(n=>{t+=n+(e.spaceBetween?e.spaceBetween:0)}),t-=e.spaceBetween;const n=t-r;v=v.map(t=>t<0?-S:t>n?n+C:t)}if(e.centerInsufficientSlides){let t=0;if(w.forEach(n=>{t+=n+(e.spaceBetween?e.spaceBetween:0)}),t-=e.spaceBetween,t<r){const e=(r-t)/2;v.forEach((t,n)=>{v[n]=t-e}),_.forEach((t,n)=>{_[n]=t+e})}}y.extend(t,{slides:f,snapGrid:v,slidesGrid:_,slidesSizesGrid:w}),m!==d&&t.emit("slidesLengthChange"),v.length!==T&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),_.length!==M&&t.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&t.updateSlidesOffset()},updateAutoHeight:function(t){const e=this,n=[];let i,r=0;if("number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed),"auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each((t,e)=>{n.push(e)});else for(i=0;i<Math.ceil(e.params.slidesPerView);i+=1){const t=e.activeIndex+i;if(t>e.slides.length)break;n.push(e.slides.eq(t)[0])}else n.push(e.slides.eq(e.activeIndex)[0]);for(i=0;i<n.length;i+=1)if(void 0!==n[i]){const t=n[i].offsetHeight;r=t>r?t:r}r&&e.$wrapperEl.css("height",`${r}px`)},updateSlidesOffset:function(){const t=this,e=t.slides;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop},updateSlidesProgress:function(t=this&&this.translate||0){const e=this,n=e.params,{slides:r,rtlTranslate:o}=e;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&e.updateSlidesOffset();let l=-t;o&&(l=t),r.removeClass(n.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let i=0;i<r.length;i+=1){const t=r[i],c=(l+(n.centeredSlides?e.minTranslate():0)-t.swiperSlideOffset)/(t.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight){const o=-(l-t.swiperSlideOffset),c=o+e.slidesSizesGrid[i];(o>=0&&o<e.size-1||c>1&&c<=e.size||o<=0&&c>=e.size)&&(e.visibleSlides.push(t),e.visibleSlidesIndexes.push(i),r.eq(i).addClass(n.slideVisibleClass))}t.progress=o?-c:c}e.visibleSlides=f(e.visibleSlides)},updateProgress:function(t){const e=this;if(void 0===t){const n=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*n||0}const n=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:progress,isBeginning:o,isEnd:l}=e;const c=o,h=l;0===r?(progress=0,o=!0,l=!0):(progress=(t-e.minTranslate())/r,o=progress<=0,l=progress>=1),y.extend(e,{progress:progress,isBeginning:o,isEnd:l}),(n.watchSlidesProgress||n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),o&&!c&&e.emit("reachBeginning toEdge"),l&&!h&&e.emit("reachEnd toEdge"),(c&&!o||h&&!l)&&e.emit("fromEdge"),e.emit("progress",progress)},updateSlidesClasses:function(){const t=this,{slides:e,params:n,$wrapperEl:r,activeIndex:o,realIndex:l}=t,c=t.virtual&&n.virtual.enabled;let h;e.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`),h=c?t.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${o}"]`):e.eq(o),h.addClass(n.slideActiveClass),n.loop&&(h.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l}"]`).addClass(n.slideDuplicateActiveClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l}"]`).addClass(n.slideDuplicateActiveClass));let d=h.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&0===d.length&&(d=e.eq(0),d.addClass(n.slideNextClass));let f=h.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&0===f.length&&(f=e.eq(-1),f.addClass(n.slidePrevClass)),n.loop&&(d.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),f.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${f.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${f.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:r,snapGrid:o,params:l,activeIndex:c,realIndex:h,snapIndex:d}=e;let f,m=t;if(void 0===m){for(let i=0;i<r.length;i+=1)void 0!==r[i+1]?n>=r[i]&&n<r[i+1]-(r[i+1]-r[i])/2?m=i:n>=r[i]&&n<r[i+1]&&(m=i+1):n>=r[i]&&(m=i);l.normalizeSlideIndex&&(m<0||void 0===m)&&(m=0)}if(o.indexOf(n)>=0)f=o.indexOf(n);else{const t=Math.min(l.slidesPerGroupSkip,m);f=t+Math.floor((m-t)/l.slidesPerGroup)}if(f>=o.length&&(f=o.length-1),m===c)return void(f!==d&&(e.snapIndex=f,e.emit("snapIndexChange")));const v=parseInt(e.slides.eq(m).attr("data-swiper-slide-index")||m,10);y.extend(e,{snapIndex:f,realIndex:v,previousIndex:c,activeIndex:m}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),h!==v&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function(t){const e=this,n=e.params,r=f(t.target).closest(`.${n.slideClass}`)[0];let o=!1;if(r)for(let i=0;i<e.slides.length;i+=1)e.slides[i]===r&&(o=!0);if(!r||!o)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=r,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(f(r).attr("data-swiper-slide-index"),10):e.clickedIndex=f(r).index(),n.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}};var S={getTranslate:function(t=(this.isHorizontal()?"x":"y")){const{params:e,rtlTranslate:n,translate:r,$wrapperEl:o}=this;if(e.virtualTranslate)return n?-r:r;if(e.cssMode)return r;let l=y.getTranslate(o[0],t);return n&&(l=-l),l||0},setTranslate:function(t,e){const n=this,{rtlTranslate:r,params:o,$wrapperEl:l,wrapperEl:c,progress:progress}=n;let h,d=0,f=0;n.isHorizontal()?d=r?-t:t:f=t,o.roundLengths&&(d=Math.floor(d),f=Math.floor(f)),o.cssMode?c[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-d:-f:o.virtualTranslate||l.transform(`translate3d(${d}px, ${f}px, 0px)`),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?d:f;const m=n.maxTranslate()-n.minTranslate();h=0===m?0:(t-n.minTranslate())/m,h!==progress&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t=0,e=this.params.speed,n=!0,r=!0,o){const l=this,{params:c,wrapperEl:h}=l;if(l.animating&&c.preventInteractionOnTransition)return!1;const d=l.minTranslate(),f=l.maxTranslate();let m;if(m=r&&t>d?d:r&&t<f?f:t,l.updateProgress(m),c.cssMode){const t=l.isHorizontal();return 0===e?h[t?"scrollLeft":"scrollTop"]=-m:h.scrollTo?h.scrollTo({[t?"left"
2:"top"]:-m,behavior:"smooth"}):h[t?"scrollLeft":"scrollTop"]=-m,!0}return 0===e?(l.setTransition(0),l.setTranslate(m),n&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(m),n&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(t){l&&!l.destroyed&&t.target===this&&(l.$wrapperEl[0].removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.$wrapperEl[0].removeEventListener("webkitTransitionEnd",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,n&&l.emit("transitionEnd"))}),l.$wrapperEl[0].addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.$wrapperEl[0].addEventListener("webkitTransitionEnd",l.onTranslateToWrapperTransitionEnd))),!0}};var C={setTransition:function(t,e){const n=this;n.params.cssMode||n.$wrapperEl.transition(t),n.emit("setTransition",t,e)},transitionStart:function(t=!0,e){const n=this,{activeIndex:r,params:o,previousIndex:l}=n;if(o.cssMode)return;o.autoHeight&&n.updateAutoHeight();let c=e;if(c||(c=r>l?"next":r<l?"prev":"reset"),n.emit("transitionStart"),t&&r!==l){if("reset"===c)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===c?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}},transitionEnd:function(t=!0,e){const n=this,{activeIndex:r,previousIndex:o,params:l}=n;if(n.animating=!1,l.cssMode)return;n.setTransition(0);let c=e;if(c||(c=r>o?"next":r<o?"prev":"reset"),n.emit("transitionEnd"),t&&r!==o){if("reset"===c)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===c?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}};var T={slideTo:function(t=0,e=this.params.speed,n=!0,r){const o=this;let l=t;l<0&&(l=0);const{params:c,snapGrid:h,slidesGrid:d,previousIndex:f,activeIndex:m,rtlTranslate:v,wrapperEl:y}=o;if(o.animating&&c.preventInteractionOnTransition)return!1;const _=Math.min(o.params.slidesPerGroupSkip,l);let w=_+Math.floor((l-_)/o.params.slidesPerGroup);w>=h.length&&(w=h.length-1),(m||c.initialSlide||0)===(f||0)&&n&&o.emit("beforeSlideChangeStart");const x=-h[w];if(o.updateProgress(x),c.normalizeSlideIndex)for(let i=0;i<d.length;i+=1)-Math.floor(100*x)>=Math.floor(100*d[i])&&(l=i);if(o.initialized&&l!==m){if(!o.allowSlideNext&&x<o.translate&&x<o.minTranslate())return!1;if(!o.allowSlidePrev&&x>o.translate&&x>o.maxTranslate()&&(m||0)!==l)return!1}let S;if(S=l>m?"next":l<m?"prev":"reset",v&&-x===o.translate||!v&&x===o.translate)return o.updateActiveIndex(l),c.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==c.effect&&o.setTranslate(x),"reset"!==S&&(o.transitionStart(n,S),o.transitionEnd(n,S)),!1;if(c.cssMode){const t=o.isHorizontal();let n=-x;return v&&(n=y.scrollWidth-y.offsetWidth-n),0===e?y[t?"scrollLeft":"scrollTop"]=n:y.scrollTo?y.scrollTo({[t?"left":"top"]:n,behavior:"smooth"}):y[t?"scrollLeft":"scrollTop"]=n,!0}return 0===e?(o.setTransition(0),o.setTranslate(x),o.updateActiveIndex(l),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,r),o.transitionStart(n,S),o.transitionEnd(n,S)):(o.setTransition(e),o.setTranslate(x),o.updateActiveIndex(l),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,r),o.transitionStart(n,S),o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,S))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(t=0,e=this.params.speed,n=!0,r){const o=this;let l=t;return o.params.loop&&(l+=o.loopedSlides),o.slideTo(l,e,n,r)},slideNext:function(t=this.params.speed,e=!0,n){const r=this,{params:o,animating:l}=r,c=r.activeIndex<o.slidesPerGroupSkip?1:o.slidesPerGroup;if(o.loop){if(l)return!1;
2r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return r.slideTo(r.activeIndex+c,t,e,n)},slidePrev:function(t=this.params.speed,e=!0,n){const r=this,{params:o,animating:l,snapGrid:c,slidesGrid:h,rtlTranslate:d}=r;if(o.loop){if(l)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function f(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const m=f(d?r.translate:-r.translate),v=c.map(t=>f(t));h.map(t=>f(t)),c[v.indexOf(m)];let y,_=c[v.indexOf(m)-1];return void 0===_&&o.cssMode&&c.forEach(t=>{!_&&m>=t&&(_=t)}),void 0!==_&&(y=h.indexOf(_),y<0&&(y=r.activeIndex-1)),r.slideTo(y,t,e,n)},slideReset:function(t=this.params.speed,e=!0,n){return this.slideTo(this.activeIndex,t,e,n)},slideToClosest:function(t=this.params.speed,e=!0,n,r=.5){const o=this;let l=o.activeIndex;const c=Math.min(o.params.slidesPerGroupSkip,l),h=c+Math.floor((l-c)/o.params.slidesPerGroup),d=o.rtlTranslate?o.translate:-o.translate;if(d>=o.snapGrid[h]){const t=o.snapGrid[h];d-t>(o.snapGrid[h+1]-t)*r&&(l+=o.params.slidesPerGroup)}else{const t=o.snapGrid[h-1];d-t<=(o.snapGrid[h]-t)*r&&(l-=o.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,o.slidesGrid.length-1),o.slideTo(l,t,e,n)},slideToClickedSlide:function(){const t=this,{params:e,$wrapperEl:n}=t,r="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let o,l=t.clickedIndex;if(e.loop){if(t.animating)return;o=parseInt(f(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?l<t.loopedSlides-r/2||l>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),l=n.children(`.${e.slideClass}[data-swiper-slide-index="${o}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),y.nextTick(()=>{t.slideTo(l)})):t.slideTo(l):l>t.slides.length-r?(t.loopFix(),l=n.children(`.${e.slideClass}[data-swiper-slide-index="${o}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),y.nextTick(()=>{t.slideTo(l)})):t.slideTo(l)}else t.slideTo(l)}};var M={loopCreate:function(){const t=this,{params:e,$wrapperEl:n}=t;n.children(`.${e.slideClass}.${e.slideDuplicateClass}`).remove();let r=n.children(`.${e.slideClass}`);if(e.loopFillGroupWithBlank){const t=e.slidesPerGroup-r.length%e.slidesPerGroup;if(t!==e.slidesPerGroup){for(let i=0;i<t;i+=1){const t=f(l.createElement("div")).addClass(`${e.slideClass} ${e.slideBlankClass}`);n.append(t)}r=n.children(`.${e.slideClass}`)}}"auto"!==e.slidesPerView||e.loopedSlides||(e.loopedSlides=r.length),t.loopedSlides=Math.ceil(parseFloat(e.loopedSlides||e.slidesPerView,10)),t.loopedSlides+=e.loopAdditionalSlides,t.loopedSlides>r.length&&(t.loopedSlides=r.length);const o=[],c=[];r.each((e,n)=>{const l=f(n);e<t.loopedSlides&&c.push(n),e<r.length&&e>=r.length-t.loopedSlides&&o.push(n),l.attr("data-swiper-slide-index",e)});for(let i=0;i<c.length;i+=1)n.append(f(c[i].cloneNode(!0)).addClass(e.slideDuplicateClass));for(let i=o.length-1;i>=0;i-=1)n.prepend(f(o[i].cloneNode(!0)).addClass(e.slideDuplicateClass))},loopFix:function(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:n,loopedSlides:r,allowSlidePrev:o,allowSlideNext:l,snapGrid:c,rtlTranslate:h}=t;let d;t.allowSlidePrev=!0,t.allowSlideNext=!0;const f=-c[e]-t.getTranslate();if(e<r){d=n.length-3*r+e,d+=r;t.slideTo(d,0,!1,!0)&&0!==f&&t.setTranslate((h?-t.translate:t.translate)-f)}else if(e>=n.length-r){d=-n.length+e+r,d+=r;t.slideTo(d,0,!1,!0)&&0!==f&&t.setTranslate((h?-t.translate:t.translate)-f)}t.allowSlidePrev=o,t.allowSlideNext=l,t.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:t,params:e,slides:n}=this;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}};var P={setGrabCursor:function(t){const e=this;if(_.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.el;n.style.cursor="move",n.style.cursor=t?"-webkit-grabbing":"-webkit-grab",n.style.cursor=t?"-moz-grabbin":"-moz-grab",n.style.cursor=t?"grabbing":"grab"},unsetGrabCursor:function(){const t=this;_.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.el.style.cursor="")}};var E={appendSlide:function(t){const e=this,{$wrapperEl:n,params:r}=e;if(r.loop&&e.loopDestroy(),"object"==typeof t&&"length"in t)for(let i=0;i<t.length;i+=1)t[i]&&n.append(t[i]);else n.append(t);
vendor: 6,950 bytes, line 2
2r.loop&&e.loopCreate(),r.observer&&_.observer||e.update()},prependSlide:function(t){const e=this,{params:n,$wrapperEl:r,activeIndex:o}=e;n.loop&&e.loopDestroy();let l=o+1;if("object"==typeof t&&"length"in t){for(let i=0;i<t.length;i+=1)t[i]&&r.prepend(t[i]);l=o+t.length}else r.prepend(t);n.loop&&e.loopCreate(),n.observer&&_.observer||e.update(),e.slideTo(l,0,!1)},addSlide:function(t,e){const n=this,{$wrapperEl:r,params:o,activeIndex:l}=n;let c=l;o.loop&&(c-=n.loopedSlides,n.loopDestroy(),n.slides=r.children(`.${o.slideClass}`));const h=n.slides.length;if(t<=0)return void n.prependSlide(e);if(t>=h)return void n.appendSlide(e);let d=c>t?c+1:c;const f=[];for(let i=h-1;i>=t;i-=1){const t=n.slides.eq(i);t.remove(),f.unshift(t)}if("object"==typeof e&&"length"in e){for(let i=0;i<e.length;i+=1)e[i]&&r.append(e[i]);d=c>t?c+e.length:c}else r.append(e);for(let i=0;i<f.length;i+=1)r.append(f[i]);o.loop&&n.loopCreate(),o.observer&&_.observer||n.update(),o.loop?n.slideTo(d+n.loopedSlides,0,!1):n.slideTo(d,0,!1)},removeSlide:function(t){const e=this,{params:n,$wrapperEl:r,activeIndex:o}=e;let l=o;n.loop&&(l-=e.loopedSlides,e.loopDestroy(),e.slides=r.children(`.${n.slideClass}`));let c,h=l;if("object"==typeof t&&"length"in t){for(let i=0;i<t.length;i+=1)c=t[i],e.slides[c]&&e.slides.eq(c).remove(),c<h&&(h-=1);h=Math.max(h,0)}else c=t,e.slides[c]&&e.slides.eq(c).remove(),c<h&&(h-=1),h=Math.max(h,0);n.loop&&e.loopCreate(),n.observer&&_.observer||e.update(),n.loop?e.slideTo(h+e.loopedSlides,0,!1):e.slideTo(h,0,!1)},removeAllSlides:function(){const t=this,e=[];for(let i=0;i<t.slides.length;i+=1)e.push(i);t.removeSlide(e)}};const O=function(){const t=h.navigator.platform,e=h.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!h.cordova&&!h.phonegap),phonegap:!(!h.cordova&&!h.phonegap),electron:!1},r=h.screen.width,o=h.screen.height,l=e.match(/(Android);?[\s\/]+([\d.]+)?/);let c=e.match(/(iPad).*OS\s([\d_]+)/);const d=e.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0,v=e.indexOf("Edge/")>=0,y=e.indexOf("Gecko/")>=0&&e.indexOf("Firefox/")>=0,w="Win32"===t,x=e.toLowerCase().indexOf("electron")>=0;let S="MacIntel"===t;return!c&&S&&_.touch&&(1024===r&&1366===o||834===r&&1194===o||834===r&&1112===o||768===r&&1024===o)&&(c=e.match(/(Version)\/([\d.]+)/),S=!1),n.ie=m,n.edge=v,n.firefox=y,l&&!w&&(n.os="android",n.osVersion=l[2],n.android=!0,n.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(c||f||d)&&(n.os="ios",n.ios=!0),f&&!d&&(n.osVersion=f[2].replace(/_/g,"."),n.iphone=!0),c&&(n.osVersion=c[2].replace(/_/g,"."),n.ipad=!0),d&&(n.osVersion=d[3]?d[3].replace(/_/g,"."):null,n.ipod=!0),n.ios&&n.osVersion&&e.indexOf("Version/")>=0&&"10"===n.osVersion.split(".")[0]&&(n.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),n.webView=!(!(f||c||d)||!e.match(/.*AppleWebKit(?!.*Safari)/i)&&!h.navigator.standalone)||h.matchMedia&&h.matchMedia("(display-mode: standalone)").matches,n.webview=n.webView,n.standalone=n.webView,n.desktop=!(n.ios||n.android)||x,n.desktop&&(n.electron=x,n.macos=S,n.windows=w,n.macos&&(n.os="macos"),n.windows&&(n.os="windows")),n.pixelRatio=h.devicePixelRatio||1,n}();function k(t){const e=this,data=e.touchEventsData,{params:n,touches:r}=e;if(e.animating&&n.preventInteractionOnTransition)return;let o=t;o.originalEvent&&(o=o.originalEvent);const c=f(o.target);if("wrapper"===n.touchEventsTarget&&!c.closest(e.wrapperEl).length)return;if(data.isTouchEvent="touchstart"===o.type,!data.isTouchEvent&&"which"in o&&3===o.which)return;if(!data.isTouchEvent&&"button"in o&&o.button>0)return;if(data.isTouched&&data.isMoved)return;if(n.noSwiping&&c.closest(n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`)[0])return void(e.allowClick=!0);if(n.swipeHandler&&!c.closest(n.swipeHandler)[0])return;r.currentX="touchstart"===o.type?o.targetTouches[0].pageX:o.pageX,r.currentY="touchstart"===o.type?o.targetTouches[0].pageY:o.pageY;const d=r.currentX,m=r.currentY,v=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,_=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!v||!(d<=_||d>=h.screen.width-_)){if(y.extend(data,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=d,r.startY=m,data.touchStartTime=y.now(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(data.allowThresholdMove=!1),"touchstart"!==o.type){let t=!0;c.is(data.formElements)&&(t=!1),l.activeElement&&f(l.activeElement).is(data.formElements)&&l.activeElement!==c[0]&&l.activeElement.blur();const r=t&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||r)&&o.preventDefault()}e.emit("touchStart",o)}}function A(t){const e=this,data=e.touchEventsData,{params:n,touches:r,rtlTranslate:o}=e;let c=t;if(c.originalEvent&&(c=c.originalEvent),!data.isTouched)return void(data.startMoving&&data.isScrolling&&e.emit("touchMoveOpposite",c));if(data.isTouchEvent&&"touchmove"!==c.type)return;const h="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),d="touchmove"===c.type?h.pageX:c.pageX,m="touchmove"===c.type?h.pageY:c.pageY;if(c.preventedByNestedSwiper)return r.startX=d,void(r.startY=m);if(!e.allowTouchMove)return e.allowClick=!1,void(data.isTouched&&(y.extend(r,{startX:d,startY:m,currentX:d,currentY:m}),data.touchStartTime=y.now()));if(data.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(e.isVertical()){if(m<r.startY&&e.translate<=e.maxTranslate()||m>r.startY&&e.translate>=e.minTranslate())return data.isTouched=!1,void(data.isMoved=!1)}else if(d<r.startX&&e.translate<=e.maxTranslate()||d>r.startX&&e.translate>=e.minTranslate())return;if(data.isTouchEvent&&l.activeElement&&c.target===l.activeElement&&f(c.target).is(data.formElements))return data.isMoved=!0,void(e.allowClick=!1);if(data.allowTouchCallbacks&&e.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;r.currentX=d,r.currentY=m;const v=r.currentX-r.startX,_=r.currentY-r.startY;if(e.params.threshold&&Math.sqrt(v**2+_**2)<e.params.threshold)return;if(void 0===data.isScrolling){let t;e.isHorizontal()&&r.currentY===r.startY||e.isVertical()&&r.currentX===r.startX?data.isScrolling=!1:v*v+_*_>=25&&(t=180*Math.atan2(Math.abs(_),Math.abs(v))/Math.PI,data.isScrolling=e.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle)}if(data.isScrolling&&e.emit("touchMoveOpposite",c),void 0===data.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(data.startMoving=!0)),data.isScrolling)return void(data.isTouched=!1);if(!data.startMoving)return;e.allowClick=!1,!n.cssMode&&c.cancelable&&c.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&c.stopPropagation(),data.isMoved||(n.loop&&e.loopFix(),data.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),data.allowMomentumBounce
vendor: 1,086 bytes, line 2
2=!1,!n.grabCursor||!0!==e.allowSlideNext&&!0!==e.allowSlidePrev||e.setGrabCursor(!0),e.emit("sliderFirstMove",c)),e.emit("sliderMove",c),data.isMoved=!0;let w=e.isHorizontal()?v:_;r.diff=w,w*=n.touchRatio,o&&(w=-w),e.swipeDirection=w>0?"prev":"next",data.currentTranslate=w+data.startTranslate;let x=!0,S=n.resistanceRatio;if(n.touchReleaseOnEdges&&(S=0),w>0&&data.currentTranslate>e.minTranslate()?(x=!1,n.resistance&&(data.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+data.startTranslate+w)**S)):w<0&&data.currentTranslate<e.maxTranslate()&&(x=!1,n.resistance&&(data.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-data.startTranslate-w)**S)),x&&(c.preventedByNestedSwiper=!0),!e.allowSlideNext&&"next"===e.swipeDirection&&data.currentTranslate<data.startTranslate&&(data.currentTranslate=data.startTranslate),!e.allowSlidePrev&&"prev"===e.swipeDirection&&data.currentTranslate>data.startTranslate&&(data.currentTranslate=data.startTranslate),n.threshold>0){if(!(Math.abs(w)>n.threshold||data.allowThresholdMove))return void(data.currentTranslate=data.startTranslate);
2if(!data.allowThresholdMove)return data.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,data.currentTranslate=data.startTranslate,void(r.diff=e.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}n.followFinger&&!n.cssMode&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(e.updateActiveIndex(),e.updateSlidesClasses()),n.freeMode&&(0===data.velocities.length&&data.velocities.push({position:r[e.isHorizontal()?"startX":"startY"],time:data.touchStartTime}),data.velocities.push({position:r[e.isHorizontal()?"currentX":"currentY"],time:y.now()})),e.updateProgress(data.currentTranslate),e.setTranslate(data.currentTranslate))}function D(t){const e=this,data=e.touchEventsData,{params:n,touches:r,rtlTranslate:o,$wrapperEl:l,slidesGrid:c,snapGrid:h}=e;let d=t;if(d.originalEvent&&(d=d.originalEvent),data.allowTouchCallbacks&&e.emit("touchEnd",d),data.allowTouchCallbacks=!1,!data.isTouched)return data.isMoved&&n.grabCursor&&e.setGrabCursor(!1),data.isMoved=!1,void(data.startMoving=!1);n.grabCursor&&data.isMoved&&data.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const f=y.now(),m=f-data.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(d),e.emit("tap click",d),m<300&&f-data.lastClickTime<300&&e.emit("doubleTap doubleClick",d)),data.lastClickTime=y.now(),y.nextTick(()=>{e.destroyed||(e.allowClick=!0)}),!data.isTouched||!data.isMoved||!e.swipeDirection||0===r.diff||data.currentTranslate===data.startTranslate)return data.isTouched=!1,data.isMoved=!1,void(data.startMoving=!1);let v;if(data.isTouched=!1,data.isMoved=!1,data.startMoving=!1,v=n.followFinger?o?e.translate:-e.translate:-data.currentTranslate,n.cssMode)return;if(n.freeMode){if(v<-e.minTranslate())return void e.slideTo(e.activeIndex);if(v>-e.maxTranslate())return void(e.slides.length<h.length?e.slideTo(h.length-1):e.slideTo(e.slides.length-1));if(n.freeModeMomentum){if(data.velocities.length>1){const t=data.velocities.pop(),r=data.velocities.pop(),o=t.position-r.position,time=t.time-r.time;e.velocity=o/time,e.velocity/=2,Math.abs(e.velocity)<n.freeModeMinimumVelocity&&(e.velocity=0),(time>150||y.now()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=n.freeModeMomentumVelocityRatio,data.velocities.length=0;let t=1e3*n.freeModeMomentumRatio;const r=e.velocity*t;let c=e.translate+r;o&&(c=-c);let d,f=!1;const m=20*Math.abs(e.velocity)*n.freeModeMomentumBounceRatio;let v;if(c<e.maxTranslate())n.freeModeMomentumBounce?(c+e.maxTranslate()<-m&&(c=e.maxTranslate()-m),d=e.maxTranslate(),f=!0,data.allowMomentumBounce=!0):c=e.maxTranslate(),n.loop&&n.centeredSlides&&(v=!0);else if(c>e.minTranslate())n.freeModeMomentumBounce?(c-e.minTranslate()>m&&(c=e.minTranslate()+m),d=e.minTranslate(),f=!0,data.allowMomentumBounce=!0):c=e.minTranslate(),n.loop&&n.centeredSlides&&(v=!0);else if(n.freeModeSticky){let t;for(let e=0;e<h.length;e+=1)if(h[e]>-c){t=e;break}c=Math.abs(h[t]-c)<Math.abs(h[t-1]-c)||"next"===e.swipeDirection?h[t]:h[t-1],c=-c}if(v&&e.once("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(t=o?Math.abs((-c-e.translate)/e.velocity):Math.abs((c-e.translate)/e.velocity),n.freeModeSticky){const r=Math.abs((o?-c:c)-e.translate),l=e.slidesSizesGrid[e.activeIndex];t=r<l?n.speed:r<2*l?1.5*n.speed:2.5*n.speed}}else if(n.freeModeSticky)return void e.slideToClosest();n.freeModeMomentumBounce&&f?(e.updateProgress(d),e.setTransition(t),e.setTranslate(c),e.transitionStart(!0,e.swipeDirection),e.animating=!0,l.transitionEnd(()=>{e&&!e.destroyed&&data.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(n.speed),setTimeout(()=>{e.setTranslate(d),l.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(e.updateProgress(c),e.setTransition(t),e.setTranslate(c),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,l.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(c),e.updateActiveIndex(),e.updateSlidesClasses()}else if(n.freeModeSticky)return void e.slideToClosest();return void((!n.freeModeMomentum||m>=n.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses()))}let _=0,w=e.slidesSizesGrid[0];for(let i=0;i<c.length;i+=i<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=i<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==c[i+t]?v>=c[i]&&v<c[i+t]&&(_=i,w=c[i+t]-c[i]):v>=c[i]&&(_=i,w=c[c.length-1]-c[c.length-2])}const x=(v-c[_])/w,S=_<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(m>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(x>=n.longSwipesRatio?e.slideTo(_+S):e.slideTo(_)),"prev"===e.swipeDirection&&(x>1-n.longSwipesRatio?e.slideTo(_+S):e.slideTo(_))}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);e.navigation&&(d.target===e.navigation.nextEl||d.target===e.navigation.prevEl)?d.target===e.navigation.nextEl?e.slideTo(_+S):e.slideTo(_):("next"===e.swipeDirection&&e.slideTo(_+S),"prev"===e.swipeDirection&&e.slideTo(_))}}function I(){const t=this,{params:e,el:n}=t;if(n&&0===n.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:o,snapGrid:l}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=o,t.allowSlideNext=r,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function z(t){const e=this;e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function F(){const t=this,{wrapperEl:e,rtlTranslate:n}=t;let r;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=n?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:t.translate=-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const o=t.maxTranslate()-t.minTranslate();r=0===o?0:(t.translate-t.minTranslate())/o,r!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let R=!1;function N(){}var L={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesB
vendor: 5,042 bytes, line 2
2ounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};const j={update:x,translate:S,transition:C,slide:T,loop:M,grabCursor:P,manipulation:E,events:{attachEvents:function(){const t=this,{params:e,touchEvents:n,el:r,wrapperEl:o}=t;t.onTouchStart=k.bind(t),t.onTouchMove=A.bind(t),t.onTouchEnd=D.bind(t),e.cssMode&&(t.onScroll=F.bind(t)),t.onClick=z.bind(t);const c=!!e.nested;if(!_.touch&&_.pointerEvents)r.addEventListener(n.start,t.onTouchStart,!1),l.addEventListener(n.move,t.onTouchMove,c),l.addEventListener(n.end,t.onTouchEnd,!1);else{if(_.touch){const o=!("touchstart"!==n.start||!_.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};r.addEventListener(n.start,t.onTouchStart,o),r.addEventListener(n.move,t.onTouchMove,_.passiveListener?{passive:!1,capture:c}:c),r.addEventListener(n.end,t.onTouchEnd,o),n.cancel&&r.addEventListener(n.cancel,t.onTouchEnd,o),R||(l.addEventListener("touchstart",N),R=!0)}(e.simulateTouch&&!O.ios&&!O.android||e.simulateTouch&&!_.touch&&O.ios)&&(r.addEventListener("mousedown",t.onTouchStart,!1),l.addEventListener("mousemove",t.onTouchMove,c),l.addEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&r.addEventListener("click",t.onClick,!0),e.cssMode&&o.addEventListener("scroll",t.onScroll),e.updateOnWindowResize?t.on(O.ios||O.android?"resize orientationchange observerUpdate":"resize observerUpdate",I,!0):t.on("observerUpdate",I,!0)},detachEvents:function(){const t=this,{params:e,touchEvents:n,el:r,wrapperEl:o}=t,c=!!e.nested;if(!_.touch&&_.pointerEvents)r.removeEventListener(n.start,t.onTouchStart,!1),l.removeEventListener(n.move,t.onTouchMove,c),l.removeEventListener(n.end,t.onTouchEnd,!1);else{if(_.touch){const o=!("onTouchStart"!==n.start||!_.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(n.start,t.onTouchStart,o),r.removeEventListener(n.move,t.onTouchMove,c),r.removeEventListener(n.end,t.onTouchEnd,o),n.cancel&&r.removeEventListener(n.cancel,t.onTouchEnd,o)}(e.simulateTouch&&!O.ios&&!O.android||e.simulateTouch&&!_.touch&&O.ios)&&(r.removeEventListener("mousedown",t.onTouchStart,!1),l.removeEventListener("mousemove",t.onTouchMove,c),l.removeEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&r.removeEventListener("click",t.onClick,!0),e.cssMode&&o.removeEventListener("scroll",t.onScroll),t.off(O.ios||O.android?"resize orientationchange observerUpdate":"resize observerUpdate",I)}},breakpoints:{setBreakpoint:function(){const t=this,{activeIndex:e,initialized:n,loopedSlides:r=0,params:o,$el:l}=t,c=o.breakpoints;if(!c||c&&0===Object.keys(c).length)return;const h=t.getBreakpoint(c);if(h&&t.currentBreakpoint!==h){const d=h in c?c[h]:void 0;d&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(param=>{const t=d[param];void 0!==t&&(d[param]="slidesPerView"!==param||"AUTO"!==t&&"auto"!==t?"slidesPerView"===param?parseFloat(t):parseInt(t,10):"auto")});const f=d||t.originalParams,m=o.slidesPerColumn>1,v=f.slidesPerColumn>1;m&&!v?l.removeClass(`${o.containerModifierClass}multirow ${o.containerModifierClass}multirow-column`):!m&&v&&(l.addClass(`${o.containerModifierClass}multirow`),"column"===f.slidesPerColumnFill&&l.addClass(`${o.containerModifierClass}multirow-column`));const _=f.direction&&f.direction!==o.direction,w=o.loop&&(f.slidesPerView!==o.slidesPerView||_);_&&n&&t.changeDirection(),y.extend(t.params,f),y.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=h,w&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-r+t.loopedSlides,0,!1)),t.emit("breakpoint",f)}}
2,getBreakpoint:function(t){if(!t)return;let e=!1;const n=Object.keys(t).map(t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:h.innerHeight*e,point:t}}return{value:t,point:t}});n.sort((a,b)=>parseInt(a.value,10)-parseInt(b.value,10));for(let i=0;i<n.length;i+=1){const{point:t,value:r}=n[i];r<=h.innerWidth&&(e=t)}return e||"max"}},checkOverflow:{checkOverflow:function(){const t=this,e=t.params,n=t.isLocked,r=t.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&r?t.isLocked=r<=t.size:t.isLocked=1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,n!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),n&&n!==t.isLocked&&(t.isEnd=!1,t.navigation&&t.navigation.update())}},classes:{addClasses:function(){const{classNames:t,params:e,rtl:n,$el:r}=this,o=[];o.push("initialized"),o.push(e.direction),e.freeMode&&o.push("free-mode"),e.autoHeight&&o.push("autoheight"),n&&o.push("rtl"),e.slidesPerColumn>1&&(o.push("multirow"),"column"===e.slidesPerColumnFill&&o.push("multirow-column")),O.android&&o.push("android"),O.ios&&o.push("ios"),e.cssMode&&o.push("css-mode"),o.forEach(n=>{t.push(e.containerModifierClass+n)}),r.addClass(t.join(" "))},removeClasses:function(){const{$el:t,classNames:e}=this;t.removeClass(e.join(" "))}},images:{loadImage:function(t,e,n,r,o,l){let image;function c(){l&&l()}f(t).parent("picture")[0]||t.complete&&o?c():e?(image=new h.Image,image.onload=c,image.onerror=c,r&&(image.sizes=r),n&&(image.srcset=n),e&&(image.src=e)):c()},preloadImages:function(){const t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let i=0;i<t.imagesToLoad.length;i+=1){const n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}}},$={};class G extends w{constructor(...t){let e,n;1===t.length&&t[0].constructor&&t[0].constructor===Object?n=t[0]:[e,n]=t,n||(n={}),n=y.extend({},n),e&&!n.el&&(n.el=e),super(n),Object.keys(j).forEach(t=>{Object.keys(j[t]).forEach(e=>{G.prototype[e]||(G.prototype[e]=j[t][e])})});const r=this;void 0===r.modules&&(r.modules={}),Object.keys(r.modules).forEach(t=>{const e=r.modules[t];if(e.params){const t=Object.keys(e.params)[0],r=e.params[t];if("object"!=typeof r||null===r)return;if(!(t in n)||!("enabled"in r))return;!0===n[t]&&(n[t]={enabled:!0}),"object"!=typeof n[t]||"enabled"in n[t]||(n[t].enabled=!0),n[t]||(n[t]={enabled:!1})}});const o=y.extend({},L);r.useModulesParams(o),r.params=y.extend({},o,$,n),r.originalParams=y.extend({},r.params),r.passedParams=y.extend({},n),r.$=f;const l=f(r.params.el);if(e=l[0],!e)return;if(l.length>1){const t=[];return l.each((e,r)=>{const o=y.extend({},n,{el:r});t.push(new G(o))}),t}let c;return e.swiper=r,l.data("swiper",r),e&&e.shadowRoot&&e.shadowRoot.querySelector?(c=f(e.shadowRoot.querySelector(`.${r.params.wrapperClass}`)),c.children=t=>l.children(t)):c=l.children(`.${r.params.wrapperClass}`),y.extend(r,{$el:l,el:e,$wrapperEl:c,wrapperEl:c[0],classNames:[],slides:f(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===l.css("direction"),rtlTranslate:"horizontal"===r.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===l.css("direction")),wrongRTL:"-webkit-box"===c.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const t=["touchstart","touchmove","touchend","touchcancel"];let e=["mousedown","mousemove","mouseup"];return _.pointerEvents&&(e=["pointerdown","pointermove","pointerup"]),r.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},r.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},_.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:y.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.useModules(),r.params.init&&r.init(),r}slidesPerViewDynamic(){const{params:t,slides:e,slidesGrid:n,size:r,activeIndex:o}=this;let l=1;if(t.centeredSlides){let t,n=e[o].swiperSlideSize;
vendor: 4,331 bytes, line 2
2for(let i=o+1;i<e.length;i+=1)e[i]&&!t&&(n+=e[i].swiperSlideSize,l+=1,n>r&&(t=!0));for(let i=o-1;i>=0;i-=1)e[i]&&!t&&(n+=e[i].swiperSlideSize,l+=1,n>r&&(t=!0))}else for(let i=o+1;i<e.length;i+=1)n[i]-n[o]<r&&(l+=1);return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:n}=t;function r(){const e=t.rtlTranslate?-1*t.translate:t.translate,n=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}let o;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(r(),t.params.autoHeight&&t.updateAutoHeight()):(o=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),o||r()),n.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const n=this,r=n.params.direction;return t||(t="horizontal"===r?"vertical":"horizontal"),t===r||"horizontal"!==t&&"vertical"!==t||(n.$el.removeClass(`${n.params.containerModifierClass}${r}`).addClass(`${n.params.containerModifierClass}${t}`),n.params.direction=t,n.slides.each((e,n)=>{"vertical"===t?n.style.width="":n.style.height=""}),n.emit("changeDirection"),e&&n.update()),n}init(){const t=this;t.initialized||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),t.attachEvents(),t.initialized=!0,t.emit("init"))}destroy(t=!0,e=!0){const n=this,{params:r,$el:o,$wrapperEl:l,slides:c}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),e&&(n.removeClasses(),o.removeAttr("style"),l.removeAttr("style"),c&&c.length&&c.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(t=>{n.off(t)}),!1!==t&&(n.$el[0].swiper=null,n.$el.data("swiper",null),y.deleteProps(n)),n.destroyed=!0),null}static extendDefaults(t){y.extend($,t)}static get extendedDefaults(){return $}static get defaults(){return L}static get Class(){return w}static get $(){return f}}var Y={name:"device",proto:{device:O},static:{device:O}},V={name:"support",proto:{support:_},static:{support:_}};const B={isEdge:!!h.navigator.userAgent.match(/Edge/g),isSafari:function(){const t=h.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(h.navigator.userAgent)};var W={name:"browser",proto:{browser:B},static:{browser:B}},U={name:"resize",create(){const t=this;y.extend(t,{resize:{resizeHandler(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init(){h.addEventListener("resize",this.resize.resizeHandler),h.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy(){h.removeEventListener("resize",this.resize.resizeHandler),h.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}};const H={func:h.MutationObserver||h.WebkitMutationObserver,attach(t,e={}){const n=this,r=new(0,H.func)(t=>{if(1===t.length)return void n.emit("observerUpdate",t[0]);const e=function(){n.emit("observerUpdate",t[0])};h.requestAnimationFrame?h.requestAnimationFrame(e):h.setTimeout(e,0)});r.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),n.observer.observers.push(r)},init(){const t=this;if(_.observer&&t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let i=0;i<e.length;i+=1)t.observer.attach(e[i])}t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}}
2,destroy(){this.observer.observers.forEach(t=>{t.disconnect()}),this.observer.observers=[]}};var X={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const t=this;y.extend(t,{observer:{init:H.init.bind(t),attach:H.attach.bind(t),destroy:H.destroy.bind(t),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const K={update(t){const e=this,{slidesPerView:n,slidesPerGroup:r,centeredSlides:o}=e.params,{addSlidesBefore:l,addSlidesAfter:c}=e.params.virtual,{from:h,to:d,slides:f,slidesGrid:m,renderSlide:v,offset:_}=e.virtual;e.updateActiveIndex();const w=e.activeIndex||0;let x,S,C;x=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",o?(S=Math.floor(n/2)+r+l,C=Math.floor(n/2)+r+c):(S=n+(r-1)+l,C=r+c);const T=Math.max((w||0)-C,0),M=Math.min((w||0)+S,f.length-1),P=(e.slidesGrid[T]||0)-(e.slidesGrid[0]||0);function E(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(y.extend(e.virtual,{from:T,to:M,offset:P,slidesGrid:e.slidesGrid}),h===T&&d===M&&!t)return e.slidesGrid!==m&&P!==_&&e.slides.css(x,`${P}px`),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:P,from:T,to:M,slides:function(){const t=[];for(let i=T;i<=M;i+=1)t.push(f[i]);return t}()}),void E();const O=[],k=[];if(t)e.$wrapperEl.find(`.${e.params.slideClass}`).remove();else for(let i=h;i<=d;i+=1)(i<T||i>M)&&e.$wrapperEl.find(`.${e.params.slideClass}[data-swiper-slide-index="${i}"]`).remove();for(let i=0;i<f.length;i+=1)i>=T&&i<=M&&(void 0===d||t?k.push(i):(i>d&&k.push(i),i<h&&O.push(i)));k.forEach(t=>{e.$wrapperEl.append(v(f[t],t))}),O.sort((a,b)=>b-a).forEach(t=>{e.$wrapperEl.prepend(v(f[t],t))}),e.$wrapperEl.children(".swiper-slide").css(x,`${P}px`),E()},renderSlide(t,e){const n=this,r=n.params.virtual;if(r.cache&&n.virtual.cache[e])return n.virtual.cache[e];const o=r.renderSlide?f(r.renderSlide.call(n,t,e)):f(`<div class="${n.params.slideClass}" data-swiper-slide-index="${e}">${t}</div>`);return o.attr("data-swiper-slide-index")||o.attr("data-swiper-slide-index",e),r.cache&&(n.virtual.cache[e]=o),o},appendSlide(t){const e=this;if("object"==typeof t&&"length"in t)for(let i=0;i<t.length;i+=1)t[i]&&e.virtual.slides.push(t[i]);else e.virtual.slides.push(t);e.virtual.update(!0)},prependSlide(t){const e=this,n=e.activeIndex;let r=n+1,o=1;if(Array.isArray(t)){for(let i=0;i<t.length;i+=1)t[i]&&e.virtual.slides.unshift(t[i]);r=n+t.length,o=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){const t=e.virtual.cache,n={};Object.keys(t).forEach(e=>{const r=t[e],l=r.attr("data-swiper-slide-index");l&&r.attr("data-swiper-slide-index",parseInt(l,10)+1),n[parseInt(e,10)+o]=r}),e.virtual.cache=n}e.virtual.update(!0),e.slideTo(r,0)},removeSlide(t){const e=this;if(null==t)return;let n=e.activeIndex;if(Array.isArray(t))for(let i=t.length-1;i>=0;i-=1)e.virtual.slides.splice(t[i],1),e.params.virtual.cache&&delete e.virtual.cache[t[i]],t[i]<n&&(n-=1),n=Math.max(n,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<n&&(n-=1),n=Math.max(n,0);e.virtual.update(!0),e.slideTo(n,0)},removeAllSlides(){const t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}};var Z={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const t=this;y.extend(t,{virtual:{update:K.update.bind(t),appendSlide:K.appendSlide.bind(t),prependSlide:K.prependSlide.bind(t),removeSlide:K.removeSlide.bind(t),removeAllSlides:K.removeAllSlides.bind(t),renderSlide:K.renderSlide.bind(t),slides:t.params.virtual.slides,cache:{}}})},on:{beforeInit(){const t=this;if(!t.params.virtual.enabled)return;t.classNames.push(`${t.params.containerModifierClass}virtual`);const e={watchSlidesProgress:!0};y.extend(t.params,e),y.extend(t.originalParams,e),t.params.initialSlide||t.virtual.update(
2)},setTranslate(){this.params.virtual.enabled&&this.virtual.update()}}};const J={handle(t){const e=this,{rtlTranslate:n}=e;let r=t;r.originalEvent&&(r=r.originalEvent);const o=r.keyCode||r.charCode,c=e.params.keyboard.pageUpDown,d=c&&33===o,f=c&&34===o,m=37===o,v=39===o,y=38===o,_=40===o;if(!e.allowSlideNext&&(e.isHorizontal()&&v||e.isVertical()&&_||f))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&m||e.isVertical()&&y||d))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||l.activeElement&&l.activeElement.nodeName&&("input"===l.activeElement.nodeName.toLowerCase()||"textarea"===l.activeElement.nodeName.toLowerCase()))){if(e.params.keyboard.onlyInViewport&&(d||f||m||v||y||_)){let t=!1;if(e.$el.parents(`.${e.params.slideClass}`).length>0&&0===e.$el.parents(`.${e.params.slideActiveClass}`).length)return;const r=h.innerWidth,o=h.innerHeight,l=e.$el.offset();n&&(l.left-=e.$el[0].scrollLeft);const c=[[l.left,l.top],[l.left+e.width,l.top],[l.left,l.top+e.height],[l.left+e.width,l.top+e.height]];for(let i=0;i<c.length;i+=1){const e=c[i];e[0]>=0&&e[0]<=r&&e[1]>=0&&e[1]<=o&&(t=!0)}if(!t)return}e.isHorizontal()?((d||f||m||v)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((f||v)&&!n||(d||m)&&n)&&e.slideNext(),((d||m)&&!n||(f||v)&&n)&&e.slidePrev()):((d||f||y||_)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(f||_)&&e.slideNext(),(d||y)&&e.slidePrev()),e.emit("keyPress",o)}},enable(){const t=this;t.keyboard.enabled||(f(l).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable(){const t=this;t.keyboard.enabled&&(f(l).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}};var Q={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create(){const t=this;y.extend(t,{keyboard:{enabled:!1,enable:J.enable.bind(t),disable:J.disable.bind(t),handle:J.handle.bind(t)}})},on:{init(){const t=this;t.params.keyboard.enabled&&t.keyboard.enable()},destroy(){const t=this;t.keyboard.enabled&&t.keyboard.disable()}}};const tt={lastScrollTime:y.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:()=>h.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){const t="onwheel";let e=t in l;if(!e){const element=l.createElement("div");element.setAttribute(t,"return;"),e="function"==typeof element[t]}return!e&&l.implementation&&l.implementation.hasFeature&&!0!==l.implementation.hasFeature("","")&&(e=l.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel",normalize(t){let e=0,n=0,r=0,o=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=10*e,o=10*n,"deltaY"in t&&(o=t.deltaY),"deltaX"in t&&(r=t.deltaX),t.shiftKey&&!r&&(r=o,o=0),(r||o)&&t.deltaMode&&(1===t.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!e&&(e=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:o}},handleMouseEnter(){this.mouseEntered=!0},handleMouseLeave(){this.mouseEntered=!1},handle(t){let e=t;const n=this,r=n.params.mousewheel;n.params.cssMode&&e.preventDefault();let o=n.$el;if("container"!==n.params.mousewheel.eventsTarged&&(o=f(n.params.mousewheel.eventsTarged)),!n.mouseEntered&&!o[0].contains(e.target)&&!r.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);let l=0;const c=n.rtlTranslate?-1:1,data=tt.normalize(e);if(r.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(data.pixelX)>Math.abs(data.pixelY)))return!0;l=-data.pixelX*c}else{if(!(Math.abs(data.pixelY)>Math.abs(data.pixelX)))return!0;l=-data.pixelY}else l=Math.abs(data.pixelX)>Math.abs(data.pixelY)?-data.pixelX*c:-data.pixelY;if(0===l)return!0;if(r.invert&&(l=-l),n.params.freeMode){const t={time:y.now(),delta:Math.abs(l),direction:Math.sign(l)},{lastEventBeforeSnap:o}=n.mousewheel,c=o&&t.time<o.time+500&&t.delta<=o.delta&&t.direction===o.direction;if(!c){n.mousewheel.lastEventBeforeSnap=void 0,n.params.loop&&n.loopFix();let o=n.getTranslate()+l*r.sensitivity;const h=n.isBeginning,d=n.isEnd;if(o>=n.minTranslate()&&(o=n.minTranslate()),o<=n.maxTranslate()&&(o=n.maxTranslate()),n.setTransition(0),n.setTranslate(o),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!h&&n.isBeginning||!d&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky){clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=void 0;const e=n.mousewheel.recentWheelEvents;e.length>=15&&e.shift();const r=e.length?e[e.length-1]:void 0,o=e[0];if(e.push(t),r&&(t.delta>r.delta||t.direction!==r.direction))e.splice(0);else if(e.length>=15&&t.time-o.time<500&&o.delta-t.delta>=1&&t.delta<=6){const r=l>0?.8:.2;n.mousewheel.lastEventBeforeSnap=t,e.splice(0),n.mousewheel.timeout=y.nextTick(()=>{n.slideToClosest(n.params.speed,!0,void 0,r)},0)}n.mousewheel.timeout||(n.mousewheel.timeout=y.nextTick(()=>{n.mousewheel.lastEventBeforeSnap=t,e.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)},500))}if(c||n.emit("scroll",e),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),o===n.minTranslate()||o===n.maxTranslate())return!0}}
2else{const e={time:y.now(),delta:Math.abs(l),direction:Math.sign(l),raw:t},r=n.mousewheel.recentWheelEvents;r.length>=2&&r.shift();const o=r.length?r[r.length-1]:void 0;if(r.push(e),o?(e.direction!==o.direction||e.delta>o.delta||e.time>o.time+150)&&n.mousewheel.animateSlider(e):n.mousewheel.animateSlider(e),n.mousewheel.releaseScroll(e))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider(t){const e=this;return t.delta>=6&&y.now()-e.mousewheel.lastScrollTime<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),e.emit("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),e.emit("scroll",t.raw)),e.mousewheel.lastScrollTime=(new h.Date).getTime(),!1)},releaseScroll(t){const e=this,n=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1},enable(){const t=this,e=tt.event();if(t.params.cssMode)return t.wrapperEl.removeEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(t.mousewheel.enabled)return!1;let n=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(n=f(t.params.mousewheel.eventsTarged)),n.on("mouseenter",t.mousewheel.handleMouseEnter),n.on("mouseleave",t.mousewheel.handleMouseLeave),n.on(e,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable(){const t=this,e=tt.event();if(t.params.cssMode)return t.wrapperEl.addEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(!t.mousewheel.enabled)return!1;let n=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(n=f(t.params.mousewheel.eventsTarged)),n.off(e,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}};var et={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const t=this;y.extend(t,{mousewheel:{enabled:!1,enable:tt.enable.bind(t),disable:tt.disable.bind(t),handle:tt.handle.bind(t),handleMouseEnter:tt.handleMouseEnter.bind(t),handleMouseLeave:tt.handleMouseLeave.bind(t),animateSlider:tt.animateSlider.bind(t),releaseScroll:tt.releaseScroll.bind(t),lastScrollTime:y.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init(){const t=this;!t.params.mousewheel.enabled&&t.params.cssMode&&t.mousewheel.disable(),t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy(){const t=this;t.params.cssMode&&t.mousewheel.enable(),t.mousewheel.enabled&&t.mousewheel.disable()}}};const nt={update(){const t=this,e=t.params.navigation;if(t.params.loop)return;const{$nextEl:n,$prevEl:r}=t.navigation;r&&r.length>0&&(t.isBeginning?r.addClass(e.disabledClass):r.removeClass(e.disabledClass),r[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass)),n&&n.length>0&&(t.isEnd?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass))},onPrevClick(t){const e=this;t.preventDefault(),e.isBeginning&&!e.params.loop||e.slidePrev()},onNextClick(t){const e=this;t.preventDefault(),e.isEnd&&!e.params.loop||e.slideNext()},init(){const t=this,e=t.params.navigation;if(!e.nextEl&&!e.prevEl)return;let n,r;e.nextEl&&(n=f(e.nextEl),t.params.uniqueNavElements&&"string"==typeof e.nextEl&&n.length>1&&1===t.$el.find(e.nextEl).length&&(n=t.$el.find(e.nextEl))),e.prevEl&&(r=f(e.prevEl),t.params.uniqueNavElements&&"string"==typeof e.prevEl&&r.length>1&&1===t.$el.find(e.prevEl).length&&(r=t.$el.find(e.prevEl))),n&&n.length>0&&n.on("click",t.navigation.onNextClick),r&&r.length>0&&r.on("click",t.navigation.onPrevClick),y.extend(t.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:r,prevEl:r&&r[0]})},destroy(){const t=this,{$nextEl:e,$prevEl:n}=t.navigation;e&&e.length&&(e.off("click",t.navigation.onNextClick),e.removeClass(t.params.navigation.disabledClass)),n&&n.length&&(n.off("click",t.navigation.onPrevClick),n.removeClass(t.params.navigation.disabledClass))}};var it={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){const t=this;y.extend(t,{navigation:{init:nt.init.bind(t),update:nt.update.bind(t),destroy:nt.destroy.bind(t),onNextClick:nt.onNextClick.bind(t),onPrevClick:nt.onPrevClick.bind(t)}})},on:{init(){this.navigation.init(),this.navigation.update()},toEdge(){this.navigation.update()},fromEdge(){this.navigation.update()},destroy(){this.navigation.destroy()},click(t){const e=this,{$nextEl:n,$prevEl:r}=e.navigation;if(e.params.navigation.hideOnClick&&!f(t.target).is(r)&&!f(t.target).is(n)){let t;n?t=n.hasClass(e.params.navigation.hiddenClass):r&&(t=r.hasClass(e.params.navigation.hiddenClass)),!0===t?e.emit("navigationShow",e):e.emit("navigationHide",e),n&&n.toggleClass(e.params.navigation.hiddenClass),r&&r.toggleClass(e.params.navigation.hiddenClass)}}}};
2const at={update(){const t=this,e=t.rtl,n=t.params.pagination;if(!n.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const r=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,o=t.pagination.$el;let l;const c=t.params.loop?Math.ceil((r-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(l=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),l>r-1-2*t.loopedSlides&&(l-=r-2*t.loopedSlides),l>c-1&&(l-=c),l<0&&"bullets"!==t.params.paginationType&&(l=c+l)):l=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let c,h,d;if(n.dynamicBullets&&(t.pagination.bulletSize=r.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=l-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),c=l-t.pagination.dynamicBulletIndex,h=c+(Math.min(r.length,n.dynamicMainBullets)-1),d=(h+c)/2),r.removeClass(`${n.bulletActiveClass} ${n.bulletActiveClass}-next ${n.bulletActiveClass}-next-next ${n.bulletActiveClass}-prev ${n.bulletActiveClass}-prev-prev ${n.bulletActiveClass}-main`),o.length>1)r.each((t,e)=>{const r=f(e),o=r.index();o===l&&r.addClass(n.bulletActiveClass),n.dynamicBullets&&(o>=c&&o<=h&&r.addClass(`${n.bulletActiveClass}-main`),o===c&&r.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),o===h&&r.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`))});else{const e=r.eq(l),o=e.index();if(e.addClass(n.bulletActiveClass),n.dynamicBullets){const e=r.eq(c),l=r.eq(h);for(let i=c;i<=h;i+=1)r.eq(i).addClass(`${n.bulletActiveClass}-main`);if(t.params.loop)if(o>=r.length-n.dynamicMainBullets){for(let i=n.dynamicMainBullets;i>=0;i-=1)r.eq(r.length-i).addClass(`${n.bulletActiveClass}-main`);r.eq(r.length-n.dynamicMainBullets-1).addClass(`${n.bulletActiveClass}-prev`)}else e.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),l.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`);else e.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),l.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`)}}if(n.dynamicBullets){const o=Math.min(r.length,n.dynamicMainBullets+4),l=(t.pagination.bulletSize*o-t.pagination.bulletSize)/2-d*t.pagination.bulletSize,c=e?"right":"left";r.css(t.isHorizontal()?c:"top",`${l}px`)}}if("fraction"===n.type&&(o.find(`.${n.currentClass}`).text(n.formatFractionCurrent(l+1)),o.find(`.${n.totalClass}`).text(n.formatFractionTotal(c))),"progressbar"===n.type){let e;e=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(l+1)/c;let h=1,d=1;"horizontal"===e?h=r:d=r,o.find(`.${n.progressbarFillClass}`).transform(`translate3d(0,0,0) scaleX(${h}) scaleY(${d})`).transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(o.html(n.renderCustom(t,l+1,c)),t.emit("paginationRender",t,o[0])):t.emit("paginationUpdate",t,o[0]),o[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](n.lockClass)},render(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,r=t.pagination.$el;let o="";if("bullets"===e.type){const l=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;for(let i=0;i<l;i+=1)e.renderBullet?o+=e.renderBullet.call(t,i,e.bulletClass):o+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;r.html(o),t.pagination.bullets=r.find(`.${e.bulletClass}`)}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,r.html(o)),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`,r.html(o)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])},init(){const t=this,e=t.params.pagination;if(!e.el)return;let n=f(e.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&n.length>1&&(n=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&n.addClass(e.clickableClass),n.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(n.addClass(`${e.modifierClass}${e.type}-dynamic`),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.addClass(e.progressbarOppositeClass),e.clickable&&n.on("click",`.${e.bulletClass}`,function(e){e.preventDefault();let n=f(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)}),y.extend(t.pagination,{$el:n,el:n[0]}))},destroy(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const n=t.pagination.$el;n.removeClass(e.hiddenClass),n.removeClass(e.modifierClass+e.type),t.pagination.bullets&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&n.off("click",`.${e.bulletClass}`)}};var ot={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){const t=this;y.extend(t,{pagination:{init:at.init.bind(t),render:at.render.bind(t),update:at.update.bind(t),destroy:at.destroy.bind(t),dynamicBulletIndex:0}})},on:{init(){const t=this;t.pagination.init(),t.pagination.render(),t.pagination.update()},activeIndexChange(){const t=this;(t.params.loop||void 0===t.snapIndex)&&t.pagination.update()},snapIndexChange(){const t=this;t.params.loop||t.pagination.update()},slidesLengthChange(){const t=this;t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange(){const t=this;t.params.loop||(t.pagination.render(),t.pagination.update())},destroy(){this.pagination.destroy()},click(t){const e=this;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!f(t.target).hasClass(e.params.pagination.bulletClass)){!0===e.pagination.$el.hasClass(e.params.pagination.hiddenClass)?e.emit("paginationShow",e):e.emit("paginationHide",e),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass)}}}};const st={setTranslate(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n,progress:progress}=t,{dragSize:r,trackSize:o,$dragEl:l,$el:c}=e,h=t.params.scrollbar;let d=r,f=(o-r)*progress;n?(f=-f,f>0?(d=r-f,f=0):-f+r>o&&(d=o+f)):f<0?(d=r+f,f=0):f+r>o&&(d=o-f),t.isHorizontal()?(l.transform(`translate3d(${f}px, 0, 0)`),l[0].style.width=`${d}px`):(l.transform(`translate3d(0px, ${f}px, 0)`),l[0].style.height=`${d}
2px`),h.hide&&(clearTimeout(t.scrollbar.timeout),c[0].style.opacity=1,t.scrollbar.timeout=setTimeout(()=>{c[0].style.opacity=0,c.transition(400)},1e3))},setTransition(t){const e=this;e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragEl.transition(t)},updateSize(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:n,$el:r}=e;n[0].style.width="",n[0].style.height="";const o=t.isHorizontal()?r[0].offsetWidth:r[0].offsetHeight,l=t.size/t.virtualSize,c=l*(o/t.size);let h;h="auto"===t.params.scrollbar.dragSize?o*l:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n[0].style.width=`${h}px`:n[0].style.height=`${h}px`,r[0].style.display=l>=1?"none":"",t.params.scrollbar.hide&&(r[0].style.opacity=0),y.extend(e,{trackSize:o,divider:l,moveDivider:c,dragSize:h}),e.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)},getPointerPosition(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY},setDragPosition(t){const e=this,{scrollbar:n,rtlTranslate:r}=e,{$el:o,dragSize:l,trackSize:c,dragStartPos:h}=n;let d;d=(n.getPointerPosition(t)-o.offset()[e.isHorizontal()?"left":"top"]-(null!==h?h:l/2))/(c-l),d=Math.max(Math.min(d,1),0),r&&(d=1-d);const f=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*d;e.updateProgress(f),e.setTranslate(f),e.updateActiveIndex(),e.updateSlidesClasses()},onDragStart(t){const e=this,n=e.params.scrollbar,{scrollbar:r,$wrapperEl:o}=e,{$el:l,$dragEl:c}=r;e.scrollbar.isTouched=!0,e.scrollbar.dragStartPos=t.target===c[0]||t.target===c?r.getPointerPosition(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),o.transition(100),c.transition(100),r.setDragPosition(t),clearTimeout(e.scrollbar.dragTimeout),l.transition(0),n.hide&&l.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),e.emit("scrollbarDragStart",t)},onDragMove(t){const e=this,{scrollbar:n,$wrapperEl:r}=e,{$el:o,$dragEl:l}=n;e.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,n.setDragPosition(t),r.transition(0),o.transition(0),l.transition(0),e.emit("scrollbarDragMove",t))},onDragEnd(t){const e=this,n=e.params.scrollbar,{scrollbar:r,$wrapperEl:o}=e,{$el:l}=r;e.scrollbar.isTouched&&(e.scrollbar.isTouched=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),o.transition("")),n.hide&&(clearTimeout(e.scrollbar.dragTimeout),e.scrollbar.dragTimeout=y.nextTick(()=>{l.css("opacity",0),l.transition(400)},1e3)),e.emit("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())},enableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:n,touchEventsDesktop:r,params:o}=t,c=e.$el[0],h=!(!_.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},d=!(!_.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};_.touch?(c.addEventListener(n.start,t.scrollbar.onDragStart,h),c.addEventListener(n.move,t.scrollbar.onDragMove,h),c.addEventListener(n.end,t.scrollbar.onDragEnd,d)):(c.addEventListener(r.start,t.scrollbar.onDragStart,h),l.addEventListener(r.move,t.scrollbar.onDragMove,h),l.addEventListener(r.end,t.scrollbar.onDragEnd,d))},disableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:n,touchEventsDesktop:r,params:o}=t,c=e.$el[0],h=!(!_.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},d=!(!_.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};_.touch?(c.removeEventListener(n.start,t.scrollbar.onDragStart,h),c.removeEventListener(n.move,t.scrollbar.onDragMove,h),c.removeEventListener(n.end,t.scrollbar.onDragEnd,d)):(c.removeEventListener(r.start,t.scrollbar.onDragStart,h),l.removeEventListener(r.move,t.scrollbar.onDragMove,h),l.removeEventListener(r.end,t.scrollbar.onDragEnd,d))},init(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,$el:n}=t,r=t.params.scrollbar;let o=f(r.el);t.params.uniqueNavElements&&"string"==typeof r.el&&o.length>1&&1===n.find(r.el).length&&(o=n.find(r.el));let l=o.find(`.${t.params.scrollbar.dragClass}`);0===l.length&&(l=f(`<div class="${t.params.scrollbar.dragClass}"></div>`),o.append(l)),y.extend(e,{$el:o,el:o[0],$dragEl:l,dragEl:l[0]}),r.draggable&&e.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};var lt={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){const t=this;y.extend(t,{scrollbar:{init:st.init.bind(t),destroy:st.destroy.bind(t),updateSize:st.updateSize.bind(t),setTranslate:st.setTranslate.bind(t),setTransition:st.setTransition.bind(t),enableDraggable:st.enableDraggable.bind(t),disableDraggable:st.disableDraggable.bind(t),setDragPosition:st.setDragPosition.bind(t),getPointerPosition:st.getPointerPosition.bind(t),onDragStart:st.onDragStart.bind(t),onDragMove:st.onDragMove.bind(t),onDragEnd:st.onDragEnd.bind(t),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){const t=this;t.scrollbar.init(),t.scrollbar.updateSize(),t.scrollbar.setTranslate()},update(){this.scrollbar.updateSize()},resize(){this.scrollbar.updateSize()},observerUpdate(){this.scrollbar.updateSize()},setTranslate(){this.scrollbar.setTranslate()},setTransition(t){this.scrollbar.setTransition(t)},destroy(){this.scrollbar.destroy()}}};const ct={setTransform(t,progress){const{rtl:e}=this,n=f(t),r=e?-1:1,p=n.attr("data-swiper-parallax")||"0";let o=n.attr("data-swiper-parallax-x"),l=n.attr("data-swiper-parallax-y");const c=n.attr("data-swiper-parallax-scale"),h=n.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.isHorizontal()?(o=p,l="0"):(l=p,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*progress*r+"%":o*progress*r+"px",l=l.indexOf("%")>=0?parseInt(l,10)*progress+"%":l*progress+"px",null!=h){const t=h-(h-1)*(1-Math.abs(progress));n[0].style.opacity=t}if(null==c)n.transform(`translate3d(${o}, ${l}, 0px)`);else{const t=c-(c-1)*(1-Math.abs(progress));n.transform(`translate3d(${o}, ${l}, 0px) scale(${t})`)}},setTranslate(){const t=this,{$el:e,slides:n,progress:progress,snapGrid:r}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,n)=>{t.parallax.setTransform(n,progress)}),n.each((e,n)=>{let o=n.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(e/2)-progress*(r.length-1)),o=Math.min(Math.max(o,-1),1),f(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,n)=>{t.parallax.setTransform(n,o)})})},setTransition(t=this.params.speed){const{$el:e}=this;e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,n)=>{const r=f(n);let o=parseInt(r.attr("data-swiper-parallax-duration"),10)||t;0===t&&(o=0),r.transition(o)})}};var ut={name:"parallax",params:{parallax:{enabled:!1}},create(){const t=this;y.extend(t,{parallax:{setTransform:ct.setTransform.bind(t),setTranslate:ct.setTranslate.bind(t),setTransition:ct.setTransition.bind(t)}})},on:{beforeInit(){const t=this;t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},init(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition(t){this.params.parallax.enabled&&this.parallax.setTransition(t)}}};const ht={getDistanceBetweenTouches(t){if(t.targetTouches.length<2)return 1;const e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY,r=t.targetTouches[1].pageX,o=t.targetTouches[1].pageY;return Math.sqrt((r-e)**2+(o-n)**2)},onGestureStart(t){const e=this,n=e.params.zoom,r=e.zoom,{gesture:o}=r;if(r.fakeGestureTouched=!1,r.fakeGestureMoved=!1,!_.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;r.fakeGestureTouched=!0,o.scaleStart=ht.getDistanceBetweenTouches(t)}o.$slideEl&&o.$slideEl.length||(o.$slideEl=f(t.target).closest(`.${e.params.slideClass}`),0===o.$slideEl.length&&(o.$slideEl=e.slides.eq(e.activeIndex)),o.$imageEl=o.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),o.$imageWrapEl=o.$imageEl.parent(`.${n.containerClass}`),o.maxRatio=o.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==o.$imageWrapEl.length)?(o.$imageEl&&o.$imageEl.transition(0),e.zoom.isScaling=!0):o.$imageEl=void 0},onGestureChange(t){const e=this.params.zoom,n=this.zoom,{gesture:r}=n;if(!_.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=ht.getDistanceBetweenTouches(t)}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=_.gestures?t.scale*n.currentScale:r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+(n.scale-r.maxRatio+1)**.5),n.scale<e.minRatio&&(n.scale=e.minRatio+1-(e.minRatio-n.scale+1)**.5),r.$imageEl.transform(`translate3d(0,
20,0) scale(${n.scale})`))},onGestureEnd(t){const e=this,n=e.params.zoom,r=e.zoom,{gesture:o}=r;if(!_.gestures){if(!r.fakeGestureTouched||!r.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!O.android)return;r.fakeGestureTouched=!1,r.fakeGestureMoved=!1}o.$imageEl&&0!==o.$imageEl.length&&(r.scale=Math.max(Math.min(r.scale,o.maxRatio),n.minRatio),o.$imageEl.transition(e.params.speed).transform(`translate3d(0,0,0) scale(${r.scale})`),r.currentScale=r.scale,r.isScaling=!1,1===r.scale&&(o.$slideEl=void 0))},onTouchStart(t){const e=this.zoom,{gesture:n,image:image}=e;n.$imageEl&&0!==n.$imageEl.length&&(image.isTouched||(O.android&&t.cancelable&&t.preventDefault(),image.isTouched=!0,image.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,image.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove(t){const e=this,n=e.zoom,{gesture:r,image:image,velocity:o}=n;if(!r.$imageEl||0===r.$imageEl.length)return;if(e.allowClick=!1,!image.isTouched||!r.$slideEl)return;image.isMoved||(image.width=r.$imageEl[0].offsetWidth,image.height=r.$imageEl[0].offsetHeight,image.startX=y.getTranslate(r.$imageWrapEl[0],"x")||0,image.startY=y.getTranslate(r.$imageWrapEl[0],"y")||0,r.slideWidth=r.$slideEl[0].offsetWidth,r.slideHeight=r.$slideEl[0].offsetHeight,r.$imageWrapEl.transition(0),e.rtl&&(image.startX=-image.startX,image.startY=-image.startY));const l=image.width*n.scale,c=image.height*n.scale;if(!(l<r.slideWidth&&c<r.slideHeight)){if(image.minX=Math.min(r.slideWidth/2-l/2,0),image.maxX=-image.minX,image.minY=Math.min(r.slideHeight/2-c/2,0),image.maxY=-image.minY,image.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,image.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!image.isMoved&&!n.isScaling){if(e.isHorizontal()&&(Math.floor(image.minX)===Math.floor(image.startX)&&image.touchesCurrent.x<image.touchesStart.x||Math.floor(image.maxX)===Math.floor(image.startX)&&image.touchesCurrent.x>image.touchesStart.x))return void(image.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(image.minY)===Math.floor(image.startY)&&image.touchesCurrent.y<image.touchesStart.y||Math.floor(image.maxY)===Math.floor(image.startY)&&image.touchesCurrent.y>image.touchesStart.y))return void(image.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),image.isMoved=!0,image.currentX=image.touchesCurrent.x-image.touchesStart.x+image.startX,image.currentY=image.touchesCurrent.y-image.touchesStart.y+image.startY,image.currentX<image.minX&&(image.currentX=image.minX+1-(image.minX-image.currentX+1)**.8),image.currentX>image.maxX&&(image.currentX=image.maxX-1+(image.currentX-image.maxX+1)**.8),image.currentY<image.minY&&(image.currentY=image.minY+1-(image.minY-image.currentY+1)**.8),image.currentY>image.maxY&&(image.currentY=image.maxY-1+(image.currentY-image.maxY+1)**.8),o.prevPositionX||(o.prevPositionX=image.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=image.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(image.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(image.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(image.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(image.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=image.touchesCurrent.x,o.prevPositionY=image.touchesCurrent.y,o.prevTime=Date.now(),r.$imageWrapEl.transform(`translate3d(${image.currentX}px, ${image.currentY}px,0)`)}},onTouchEnd(){const t=this.zoom,{gesture:e,image:image,velocity:n}=t;if(!e.$imageEl||0===e.$imageEl.length)return;if(!image.isTouched||!image.isMoved)return image.isTouched=!1,void(image.isMoved=!1);image.isTouched=!1,image.isMoved=!1;let r=300,o=300;const l=n.x*r,c=image.currentX+l,h=n.y*o,d=image.currentY+h;0!==n.x&&(r=Math.abs((c-image.currentX)/n.x)),0!==n.y&&(o=Math.abs((d-image.currentY)/n.y));const f=Math.max(r,o);image.currentX=c,image.currentY=d;const m=image.width*t.scale,v=image.height*t.scale;image.minX=Math.min(e.slideWidth/2-m/2,0),image.maxX=-image.minX,image.minY=Math.min(e.slideHeight/2-v/2,0),image.maxY=-image.minY,image.currentX=Math.max(Math.min(image.currentX,image.maxX),image.minX),image.currentY=Math.max(Math.min(image.currentY,image.maxY),image.minY),e.$imageWrapEl.transition(f).transform(`translate3d(${image.currentX}px, ${image.currentY}px,0)`)},onTransitionEnd(){const t=this,e=t.zoom,{gesture:n}=e;n.$slideEl&&t.previousIndex!==t.activeIndex&&(n.$imageEl&&n.$imageEl.transform("translate3d(0,
20,0) scale(1)"),n.$imageWrapEl&&n.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle(t){const e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in(t){const e=this,n=e.zoom,r=e.params.zoom,{gesture:o,image:image}=n;if(o.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?o.$slideEl=e.$wrapperEl.children(`.${e.params.slideActiveClass}`):o.$slideEl=e.slides.eq(e.activeIndex),o.$imageEl=o.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),o.$imageWrapEl=o.$imageEl.parent(`.${r.containerClass}`)),!o.$imageEl||0===o.$imageEl.length)return;let l,c,h,d,f,m,v,y,_,w,x,S,C,T,M,P,E,O;o.$slideEl.addClass(`${r.zoomedSlideClass}`),void 0===image.touchesStart.x&&t?(l="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,c="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(l=image.touchesStart.x,c=image.touchesStart.y),n.scale=o.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,n.currentScale=o.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,t?(E=o.$slideEl[0].offsetWidth,O=o.$slideEl[0].offsetHeight,h=o.$slideEl.offset().left,d=o.$slideEl.offset().top,f=h+E/2-l,m=d+O/2-c,_=o.$imageEl[0].offsetWidth,w=o.$imageEl[0].offsetHeight,x=_*n.scale,S=w*n.scale,C=Math.min(E/2-x/2,0),T=Math.min(O/2-S/2,0),M=-C,P=-T,v=f*n.scale,y=m*n.scale,v<C&&(v=C),v>M&&(v=M),y<T&&(y=T),y>P&&(y=P)):(v=0,y=0),o.$imageWrapEl.transition(300).transform(`translate3d(${v}px, ${y}px,0)`),o.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${n.scale})`)},out(){const t=this,e=t.zoom,n=t.params.zoom,{gesture:r}=e;r.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?r.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):r.$slideEl=t.slides.eq(t.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imageWrapEl=r.$imageEl.parent(`.${n.containerClass}`)),r.$imageEl&&0!==r.$imageEl.length&&(e.scale=1,e.currentScale=1,r.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),r.$slideEl.removeClass(`${n.zoomedSlideClass}`),r.$slideEl=void 0)},enable(){const t=this,e=t.zoom;if(e.enabled)return;e.enabled=!0;const n=!("touchstart"!==t.touchEvents.start||!_.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},r=!_.passiveListener||{passive:!1,capture:!0},o=`.${t.params.slideClass}`;_.gestures?(t.$wrapperEl.on("gesturestart",o,e.onGestureStart,n),t.$wrapperEl.on("gesturechange",o,e.onGestureChange,n),t.$wrapperEl.on("gestureend",o,e.onGestureEnd,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,o,e.onGestureStart,n),t.$wrapperEl.on(t.touchEvents.move,o,e.onGestureChange,r),t.$wrapperEl.on(t.touchEvents.end,o,e.onGestureEnd,n),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,o,e.onGestureEnd,n)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,e.onTouchMove,r)},disable(){const t=this,e=t.zoom;if(!e.enabled)return;t.zoom.enabled=!1;const n=!("touchstart"!==t.touchEvents.start||!_.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},r=!_.passiveListener||{passive:!1,capture:!0},o=`.${t.params.slideClass}`;_.gestures?(t.$wrapperEl.off("gesturestart",o,e.onGestureStart,n),t.$wrapperEl.off("gesturechange",o,e.onGestureChange,n),t.$wrapperEl.off("gestureend",o,e.onGestureEnd,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,o,e.onGestureStart,n),t.$wrapperEl.off(t.touchEvents.move,o,e.onGestureChange,r),t.$wrapperEl.off(t.touchEvents.end,o,e.onGestureEnd,n),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,o,e.onGestureEnd,n)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,e.onTouchMove,r)}};var pt={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(n=>{e[n]=ht[n].bind(t)}),y.extend(t,{zoom:e});let n=1;Object.defineProperty(t.zoom,"scale",{get:()=>n,set(e){if(n!==e){const n=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,r=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,n,r)}n=e}})},on:{init(){const t=this;t.params.zoom.enabled&&t.zoom.enable()},destroy(){this.zoom.disable()},touchStart(t){this.zoom.enabled&&this.zoom.onTouchStart(t)},touchEnd(t){this.zoom.enabled&&this.zoom.onTouchEnd(t)},doubleTap(t){const e=this;e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()},slideChange(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&t.zoom.onTransitionEnd()}}};
2const ft={loadInSlide(t,e=!0){const n=this,r=n.params.lazy;if(void 0===t)return;if(0===n.slides.length)return;const o=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children(`.${n.params.slideClass}[data-swiper-slide-index="${t}"]`):n.slides.eq(t);let l=o.find(`.${r.elementClass}:not(.${r.loadedClass}):not(.${r.loadingClass})`);!o.hasClass(r.elementClass)||o.hasClass(r.loadedClass)||o.hasClass(r.loadingClass)||(l=l.add(o[0])),0!==l.length&&l.each((t,l)=>{const c=f(l);c.addClass(r.loadingClass);const h=c.attr("data-background"),d=c.attr("data-src"),m=c.attr("data-srcset"),v=c.attr("data-sizes"),y=c.parent("picture");n.loadImage(c[0],d||h,m,v,!1,()=>{if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(h?(c.css("background-image",`url("${h}")`),c.removeAttr("data-background")):(m&&(c.attr("srcset",m),c.removeAttr("data-srcset")),v&&(c.attr("sizes",v),c.removeAttr("data-sizes")),y.length&&y.children("source").each((t,e)=>{const n=f(e);n.attr("data-srcset")&&(n.attr("srcset",n.attr("data-srcset")),n.removeAttr("data-srcset"))}),d&&(c.attr("src",d),c.removeAttr("data-src"))),c.addClass(r.loadedClass).removeClass(r.loadingClass),o.find(`.${r.preloaderClass}`).remove(),n.params.loop&&e){const t=o.attr("data-swiper-slide-index");if(o.hasClass(n.params.slideDuplicateClass)){const e=n.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${n.params.slideDuplicateClass})`);n.lazy.loadInSlide(e.index(),!1)}else{const e=n.$wrapperEl.children(`.${n.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`);n.lazy.loadInSlide(e.index(),!1)}}n.emit("lazyImageReady",o[0],c[0]),n.params.autoHeight&&n.updateAutoHeight()}}),n.emit("lazyImageLoad",o[0],c[0])})},load(){const t=this,{$wrapperEl:e,params:n,slides:r,activeIndex:o}=t,l=t.virtual&&n.virtual.enabled,c=n.lazy;let h=n.slidesPerView;function d(t){if(l){if(e.children(`.${n.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(r[t])return!0;return!1}function m(t){return l?f(t).attr("data-swiper-slide-index"):f(t).index()}if("auto"===h&&(h=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children(`.${n.slideVisibleClass}`).each((e,n)=>{const r=l?f(n).attr("data-swiper-slide-index"):f(n).index();t.lazy.loadInSlide(r)});else if(h>1)for(let i=o;i<o+h;i+=1)d(i)&&t.lazy.loadInSlide(i);else t.lazy.loadInSlide(o);if(c.loadPrevNext)if(h>1||c.loadPrevNextAmount&&c.loadPrevNextAmount>1){const e=c.loadPrevNextAmount,n=h,l=Math.min(o+n+Math.max(e,n),r.length),f=Math.max(o-Math.max(n,e),0);for(let i=o+h;i<l;i+=1)d(i)&&t.lazy.loadInSlide(i);for(let i=f;i<o;i+=1)d(i)&&t.lazy.loadInSlide(i)}else{const r=e.children(`.${n.slideNextClass}`);r.length>0&&t.lazy.loadInSlide(m(r));const o=e.children(`.${n.slidePrevClass}`);o.length>0&&t.lazy.loadInSlide(m(o))}}};var gt={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){const t=this;y.extend(t,{lazy:{initialImageLoaded:!1,load:ft.load.bind(t),loadInSlide:ft.loadInSlide.bind(t)}})},on:{beforeInit(){const t=this;t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init(){const t=this;t.params.lazy.enabled&&!t.params.loop&&0===t.params.initialSlide&&t.lazy.load()},scroll(){const t=this;t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},resize(){const t=this;t.params.lazy.enabled&&t.lazy.load()},scrollbarDragMove(){const t=this;t.params.lazy.enabled&&t.lazy.load()},transitionStart(){const t=this;t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},transitionEnd(){const t=this;t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()},slideChange(){const t=this;t.params.lazy.enabled&&t.params.cssMode&&t.lazy.load()}}};const mt={LinearSpline:function(t,e){const n=function(){let t,e,n;return(r,o)=>{for(e=-1,t=r.length;t-e>1;)n=t+e>>1,r[n]<=o?e=n:t=n;return t}}();let r,o;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(o=n(this.x,t),r=o-1,(t-this.x[r])*(this.y[o]-this.y[r])/(this.x[o]-this.x[r])+this.y[r]):0},this},getInterpolateFunction(t){const e=this;e.controller.spline||(e.controller.spline=e.params.loop?new mt.LinearSpline(e.slidesGrid,t.slidesGrid):new mt.LinearSpline(e.snapGrid,t.snapGrid))},setTranslate(t,e){const n=this,r=n.controller.control;let o,l;function c(t){const e=n.rtlTranslate?-n.translate:n.translate;"slide"===n.params.controller.by&&(n.controller.getInterpolateFunction(t),l=-n.controller.spline.interpolate(-e)),l&&"container"!==n.params.controller.by||(o=(t.maxTranslate()-t.minTranslate())/(n.maxTranslate()-n.minTranslate()),l=(e-n.minTranslate())*o+t.minTranslate()),n.params.controller.inverse&&(l=t.maxTranslate()-l),t.updateProgress(l),t.setTranslate(l,n),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(r))for(let i=0;i<r.length;i+=1)r[i]!==e&&r[i]instanceof G&&c(r[i]);else r instanceof G&&e!==r&&c(r)},setTransition(t,e){const n=this,r=n.controller.control;let i;function o(e){e.setTransition(t,n),0!==t&&(e.transitionStart(),e.params.autoHeight&&y.nextTick(()=>{e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(()=>{r&&(e.params.loop&&"slide"===n.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(r))for(i=0;i<r.length;i+=1)r[i]!==e&&r[i]instanceof G&&o(r[i]);else r instanceof G&&e!==r&&o(r)}};var vt={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const t=this;y.extend(t,{controller:{control:t.params.controller.control,getInterpolateFunction:mt.getInterpolateFunction.bind(t),setTranslate:mt.setTranslate.bind(t),setTransition:mt.setTransition.bind(t)}})}
2,on:{update(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate(t,e){this.controller.control&&this.controller.setTranslate(t,e)},setTransition(t,e){this.controller.control&&this.controller.setTransition(t,e)}}};const yt={makeElFocusable:t=>(t.attr("tabIndex","0"),t),makeElNotFocusable:t=>(t.attr("tabIndex","-1"),t),addElRole:(t,e)=>(t.attr("role",e),t),addElLabel:(t,label)=>(t.attr("aria-label",label),t),disableEl:t=>(t.attr("aria-disabled",!0),t),enableEl:t=>(t.attr("aria-disabled",!1),t),onEnterKey(t){const e=this,n=e.params.a11y;if(13!==t.keyCode)return;const r=f(t.target);e.navigation&&e.navigation.$nextEl&&r.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(n.lastSlideMessage):e.a11y.notify(n.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&r.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(n.firstSlideMessage):e.a11y.notify(n.prevSlideMessage)),e.pagination&&r.is(`.${e.params.pagination.bulletClass}`)&&r[0].click()},notify(t){const e=this.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},updateNavigation(){const t=this;if(t.params.loop||!t.navigation)return;const{$nextEl:e,$prevEl:n}=t.navigation;n&&n.length>0&&(t.isBeginning?(t.a11y.disableEl(n),t.a11y.makeElNotFocusable(n)):(t.a11y.enableEl(n),t.a11y.makeElFocusable(n))),e&&e.length>0&&(t.isEnd?(t.a11y.disableEl(e),t.a11y.makeElNotFocusable(e)):(t.a11y.enableEl(e),t.a11y.makeElFocusable(e)))},updatePagination(){const t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((n,r)=>{const o=f(r);t.a11y.makeElFocusable(o),t.a11y.addElRole(o,"button"),t.a11y.addElLabel(o,e.paginationBulletMessage.replace(/\{\{index\}\}/,o.index()+1))})},init(){const t=this;t.$el.append(t.a11y.liveRegion);const e=t.params.a11y;let n,r;t.navigation&&t.navigation.$nextEl&&(n=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(r=t.navigation.$prevEl),n&&(t.a11y.makeElFocusable(n),t.a11y.addElRole(n,"button"),t.a11y.addElLabel(n,e.nextSlideMessage),n.on("keydown",t.a11y.onEnterKey)),r&&(t.a11y.makeElFocusable(r),t.a11y.addElRole(r,"button"),t.a11y.addElLabel(r,e.prevSlideMessage),r.on("keydown",t.a11y.onEnterKey)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown",`.${t.params.pagination.bulletClass}`,t.a11y.onEnterKey)},destroy(){const t=this;let e,n;t.a11y.liveRegion&&t.a11y.liveRegion.length>0&&t.a11y.liveRegion.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(n=t.navigation.$prevEl),e&&e.off("keydown",t.a11y.onEnterKey),n&&n.off("keydown",t.a11y.onEnterKey),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.off("keydown",`.${t.params.pagination.bulletClass}`,t.a11y.onEnterKey)}};var bt={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create(){const t=this;y.extend(t,{a11y:{liveRegion:f(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(yt).forEach(e=>{t.a11y[e]=yt[e].bind(t)})},on:{init(){const t=this;t.params.a11y.enabled&&(t.a11y.init(),t.a11y.updateNavigation())},toEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy(){this.params.a11y.enabled&&this.a11y.destroy()}}};const _t={init(){const t=this;if(!t.params.history)return;
2if(!h.history||!h.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);const e=t.history;e.initialized=!0,e.paths=_t.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||h.addEventListener("popstate",t.history.setHistoryPopState))},destroy(){const t=this;t.params.history.replaceState||h.removeEventListener("popstate",t.history.setHistoryPopState)},setHistoryPopState(){const t=this;t.history.paths=_t.getPathValues(),t.history.scrollToSlide(t.params.speed,t.history.paths.value,!1)},getPathValues(){const t=h.location.pathname.slice(1).split("/").filter(t=>""!==t),e=t.length;return{key:t[e-2],value:t[e-1]}},setHistory(t,e){const n=this;if(!n.history.initialized||!n.params.history.enabled)return;const r=n.slides.eq(e);let o=_t.slugify(r.attr("data-history"));h.location.pathname.includes(t)||(o=`${t}/${o}`);const l=h.history.state;l&&l.value===o||(n.params.history.replaceState?h.history.replaceState({value:o},null,o):h.history.pushState({value:o},null,o))},slugify:text=>text.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),scrollToSlide(t,e,n){const r=this;if(e)for(let i=0,o=r.slides.length;i<o;i+=1){const o=r.slides.eq(i);if(_t.slugify(o.attr("data-history"))===e&&!o.hasClass(r.params.slideDuplicateClass)){const e=o.index();r.slideTo(e,t,n)}}else r.slideTo(0,t,n)}};var wt={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const t=this;y.extend(t,{history:{init:_t.init.bind(t),setHistory:_t.setHistory.bind(t),setHistoryPopState:_t.setHistoryPopState.bind(t),scrollToSlide:_t.scrollToSlide.bind(t),destroy:_t.destroy.bind(t)}})},on:{init(){const t=this;t.params.history.enabled&&t.history.init()},destroy(){const t=this;t.params.history.enabled&&t.history.destroy()},transitionEnd(){const t=this;t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)},slideChange(){const t=this;t.history.initialized&&t.params.cssMode&&t.history.setHistory(t.params.history.key,t.activeIndex)}}};const xt={onHashCange(){const t=this;t.emit("hashChange");const e=l.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const n=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===n)return;t.slideTo(n)}},setHash(){const t=this;if(t.hashNavigation.initialized&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&h.history&&h.history.replaceState)h.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||""),t.emit("hashSet");else{const e=t.slides.eq(t.activeIndex),n=e.attr("data-hash")||e.attr("data-history");l.location.hash=n||"",t.emit("hashSet")}},init(){const t=this;if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;t.hashNavigation.initialized=!0;const e=l.location.hash.replace("#","");if(e){const n=0;for(let i=0,r=t.slides.length;i<r;i+=1){const r=t.slides.eq(i);if((r.attr("data-hash")||r.attr("data-history"))===e&&!r.hasClass(t.params.slideDuplicateClass)){const e=r.index();t.slideTo(e,n,t.params.runCallbacksOnInit,!0)}}}t.params.hashNavigation.watchState&&f(h).on("hashchange",t.hashNavigation.onHashCange)},destroy(){const t=this;t.params.hashNavigation.watchState&&f(h).off("hashchange",t.hashNavigation.onHashCange)}};var St={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const t=this;y.extend(t,{hashNavigation:{initialized:!1,init:xt.init.bind(t),destroy:xt.destroy.bind(t),setHash:xt.setHash.bind(t),onHashCange:xt.onHashCange.bind(t)}})},on:{init(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},transitionEnd(){const t=this;t.hashNavigation.initialized&&t.hashNavigation.setHash()},slideChange(){const t=this;t.hashNavigation.initialized&&t.params.cssMode&&t.hashNavigation.setHash()}}};const Ct={run(){const t=this,e=t.slides.eq(t.activeIndex);let n=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=y.nextTick(()=>{t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,
2!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")),t.params.cssMode&&t.autoplay.running&&t.autoplay.run()},n)},start(){const t=this;return void 0===t.autoplay.timeout&&(!t.autoplay.running&&(t.autoplay.running=!0,t.emit("autoplayStart"),t.autoplay.run(),!0))},stop(){const t=this;return!!t.autoplay.running&&(void 0!==t.autoplay.timeout&&(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0))},pause(t){const e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?(e.$wrapperEl[0].addEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].addEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd)):(e.autoplay.paused=!1,e.autoplay.run())))}};var Tt={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const t=this;y.extend(t,{autoplay:{running:!1,paused:!1,run:Ct.run.bind(t),start:Ct.start.bind(t),stop:Ct.stop.bind(t),pause:Ct.pause.bind(t),onVisibilityChange(){"hidden"===document.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init(){const t=this;t.params.autoplay.enabled&&(t.autoplay.start(),document.addEventListener("visibilitychange",t.autoplay.onVisibilityChange))},beforeTransitionStart(t,e){const n=this;n.autoplay.running&&(e||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(t):n.autoplay.stop())},sliderFirstMove(){const t=this;t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},touchEnd(){const t=this;t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&t.autoplay.run()},destroy(){const t=this;t.autoplay.running&&t.autoplay.stop(),document.removeEventListener("visibilitychange",t.autoplay.onVisibilityChange)}}};const Mt={setTranslate(){const t=this,{slides:e}=t;for(let i=0;i<e.length;i+=1){const e=t.slides.eq(i);let n=-e[0].swiperSlideOffset;t.params.virtualTranslate||(n-=t.translate);let r=0;t.isHorizontal()||(r=n,n=0);const o=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);e.css({opacity:o}).transform(`translate3d(${n}px, ${r}px, 0px)`)}},setTransition(t){const e=this,{slides:n,$wrapperEl:r}=e;if(n.transition(t),e.params.virtualTranslate&&0!==t){let t=!1;n.transitionEnd(()=>{if(t)return;if(!e||e.destroyed)return;t=!0,e.animating=!1;const n=["webkitTransitionEnd","transitionend"];for(let i=0;i<n.length;i+=1)r.trigger(n[i])})}}};var Pt={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const t=this;y.extend(t,{fadeEffect:{setTranslate:Mt.setTranslate.bind(t),setTransition:Mt.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if("fade"!==t.params.effect)return;t.classNames.push(`${t.params.containerModifierClass}fade`);const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};y.extend(t.params,e),y.extend(t.originalParams,e)},setTranslate(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}};const Et={setTranslate(){const t=this,{$el:e,$wrapperEl:n,slides:r,width:o,height:l,rtlTranslate:c,size:h}=t,d=t.params.cubeEffect,m=t.isHorizontal(),v=t.virtual&&t.params.virtual.enabled;let y,_=0;d.shadow&&(m?(y=n.find(".swiper-cube-shadow"),0===y.length&&(y=f('<div class="swiper-cube-shadow"></div>'),n.append(y)),y.css({height:`${o}px`})):(y=e.find(".swiper-cube-shadow"),0===y.length&&(y=f('<div class="swiper-cube-shadow"></div>'),e.append(y))));for(let i=0;i<r.length;i+=1){const t=r.eq(i);let e=i;v&&(e=parseInt(t.attr("data-swiper-slide-index"),10));let n=90*e,o=Math.floor(n/360);c&&(n=-n,o=Math.floor(-n/360));
2const progress=Math.max(Math.min(t[0].progress,1),-1);let l=0,y=0,w=0;e%4==0?(l=4*-o*h,w=0):(e-1)%4==0?(l=0,w=4*-o*h):(e-2)%4==0?(l=h+4*o*h,w=h):(e-3)%4==0&&(l=-h,w=3*h+4*h*o),c&&(l=-l),m||(y=l,l=0);const x=`rotateX(${m?0:-n}deg) rotateY(${m?n:0}deg) translate3d(${l}px, ${y}px, ${w}px)`;if(progress<=1&&progress>-1&&(_=90*e+90*progress,c&&(_=90*-e-90*progress)),t.transform(x),d.slideShadows){let e=m?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),n=m?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=f(`<div class="swiper-slide-shadow-${m?"left":"top"}"></div>`),t.append(e)),0===n.length&&(n=f(`<div class="swiper-slide-shadow-${m?"right":"bottom"}"></div>`),t.append(n)),e.length&&(e[0].style.opacity=Math.max(-progress,0)),n.length&&(n[0].style.opacity=Math.max(progress,0))}}if(n.css({"-webkit-transform-origin":`50% 50% -${h/2}px`,"-moz-transform-origin":`50% 50% -${h/2}px`,"-ms-transform-origin":`50% 50% -${h/2}px`,"transform-origin":`50% 50% -${h/2}px`}),d.shadow)if(m)y.transform(`translate3d(0px, ${o/2+d.shadowOffset}px, ${-o/2}px) rotateX(90deg) rotateZ(0deg) scale(${d.shadowScale})`);else{const t=Math.abs(_)-90*Math.floor(Math.abs(_)/90),e=1.5-(Math.sin(2*t*Math.PI/360)/2+Math.cos(2*t*Math.PI/360)/2),n=d.shadowScale,r=d.shadowScale/e,o=d.shadowOffset;y.transform(`scale3d(${n}, 1, ${r}) translate3d(0px, ${l/2+o}px, ${-l/2/r}px) rotateX(-90deg)`)}const w=B.isSafari||B.isWebView?-h/2:0;n.transform(`translate3d(0px,0,${w}px) rotateX(${t.isHorizontal()?0:_}deg) rotateY(${t.isHorizontal()?-_:0}deg)`)},setTransition(t){const e=this,{$el:n,slides:r}=e;r.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&n.find(".swiper-cube-shadow").transition(t)}};var Ot={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const t=this;y.extend(t,{cubeEffect:{setTranslate:Et.setTranslate.bind(t),setTransition:Et.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if("cube"!==t.params.effect)return;t.classNames.push(`${t.params.containerModifierClass}cube`),t.classNames.push(`${t.params.containerModifierClass}3d`);const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};y.extend(t.params,e),y.extend(t.originalParams,e)},setTranslate(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}};const kt={setTranslate(){const t=this,{slides:e,rtlTranslate:n}=t;for(let i=0;i<e.length;i+=1){const r=e.eq(i);let progress=r[0].progress;t.params.flipEffect.limitRotation&&(progress=Math.max(Math.min(r[0].progress,1),-1));let o=-180*progress,l=0,c=-r[0].swiperSlideOffset,h=0;if(t.isHorizontal()?n&&(o=-o):(h=c,c=0,l=-o,o=0),r[0].style.zIndex=-Math.abs(Math.round(progress))+e.length,t.params.flipEffect.slideShadows){let e=t.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),n=t.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===e.length&&(e=f(`<div class="swiper-slide-shadow-${t.isHorizontal()?"left":"top"}"></div>`),r.append(e)),0===n.length&&(n=f(`<div class="swiper-slide-shadow-${t.isHorizontal()?"right":"bottom"}"></div>`),r.append(n)),e.length&&(e[0].style.opacity=Math.max(-progress,0)),n.length&&(n[0].style.opacity=Math.max(progress,0))}r.transform(`translate3d(${c}px, ${h}px, 0px) rotateX(${l}deg) rotateY(${o}deg)`)}},setTransition(t){const e=this,{slides:n,activeIndex:r,$wrapperEl:o}=e;if(n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){let t=!1;n.eq(r).transitionEnd(function(){if(t)return;if(!e||e.destroyed)return;t=!0,e.animating=!1;const n=["webkitTransitionEnd","transitionend"];for(let i=0;i<n.length;i+=1)o.trigger(n[i])})}}};var At={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const t=this;y.extend(t,{flipEffect:{setTranslate:kt.setTranslate.bind(t),setTransition:kt.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if("flip"!==t.params.effect)return;t.classNames.push(`${t.params.containerModifierClass}flip`),t.classNames.push(`${t.params.containerModifierClass}3d`);const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};y.extend(t.params,e),y.extend(t.originalParams,e)},setTranslate(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}};const Dt={setTranslate(){const t=this,{width:e,height:n,slides:r,$wrapperEl:o,slidesSizesGrid:l}=t,c=t.params.coverflowEffect,h=t.isHorizontal(),d=t.translate,m=h?e/2-d:n/2-d,v=h?c.rotate:-c.rotate,y=c.depth;for(let i=0,t=r.length;i<t;i+=1){const t=r.eq(i),e=l[i],n=(m-t[0].swiperSlideOffset-e/2)/e*c.modifier;let o=h?v*n:0,d=h?0:v*n,_=-y*Math.abs(n),w=c.stretch;"string"==typeof w&&-1!==w.indexOf("%")&&(w=parseFloat(c.stretch)/100*e);let x=h?0:w*n,S=h?w*n:0,C=1-(1-c.scale)*Math.abs(n);Math.abs(S)<.001&&(S=0),Math.abs(x)<.001&&(x=0),Math.abs(_)<.001&&(_=0),Math.abs(o)<.001&&(o=0),Math.abs(d)<.001&&(
2d=0),Math.abs(C)<.001&&(C=0);const T=`translate3d(${S}px,${x}px,${_}px)  rotateX(${d}deg) rotateY(${o}deg) scale(${C})`;if(t.transform(T),t[0].style.zIndex=1-Math.abs(Math.round(n)),c.slideShadows){let e=h?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),r=h?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=f(`<div class="swiper-slide-shadow-${h?"left":"top"}"></div>`),t.append(e)),0===r.length&&(r=f(`<div class="swiper-slide-shadow-${h?"right":"bottom"}"></div>`),t.append(r)),e.length&&(e[0].style.opacity=n>0?n:0),r.length&&(r[0].style.opacity=-n>0?-n:0)}}if(_.pointerEvents||_.prefixedPointerEvents){o[0].style.perspectiveOrigin=`${m}px 50%`}},setTransition(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}};var It={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create(){const t=this;y.extend(t,{coverflowEffect:{setTranslate:Dt.setTranslate.bind(t),setTransition:Dt.setTransition.bind(t)}})},on:{beforeInit(){const t=this;"coverflow"===t.params.effect&&(t.classNames.push(`${t.params.containerModifierClass}coverflow`),t.classNames.push(`${t.params.containerModifierClass}3d`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},setTranslate(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}};const zt={init(){const t=this,{thumbs:e}=t.params,n=t.constructor;e.swiper instanceof n?(t.thumbs.swiper=e.swiper,y.extend(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),y.extend(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):y.isObject(e.swiper)&&(t.thumbs.swiper=new n(y.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick)},onThumbClick(){const t=this,e=t.thumbs.swiper;if(!e)return;const n=e.clickedIndex,r=e.clickedSlide;if(r&&f(r).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(null==n)return;let o;if(o=e.params.loop?parseInt(f(e.clickedSlide).attr("data-swiper-slide-index"),10):n,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const n=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${o}"]`).eq(0).index(),r=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${o}"]`).eq(0).index();o=void 0===n?r:void 0===r?n:r-e<e-n?r:n}t.slideTo(o)},update(t){const e=this,n=e.thumbs.swiper;if(!n)return;const r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView,o=e.params.thumbs.autoScrollOffset,l=o&&!n.params.loop;if(e.realIndex!==n.realIndex||l){let c,h,d=n.activeIndex;if(n.params.loop){n.slides.eq(d).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,d=n.activeIndex);const t=n.slides.eq(d).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),r=n.slides.eq(d).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();c=void 0===t?r:void 0===r?t:r-d===d-t?d:r-d<d-t?r:t,h=e.activeIndex>e.previousIndex?"next":"prev"}else c=e.realIndex,h=c>e.previousIndex?"next":"prev";l&&(c+="next"===h?o:-1*o),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(c)<0&&(n.params.centeredSlides?c=c>d?c-Math.floor(r/2)+1:c+Math.floor(r/2)-1:c>d&&(c=c-r+1),n.slideTo(c,t?0:void 0))}let c=1;const h=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(c=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(c=1),c=Math.floor(c),n.slides.removeClass(h),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let i=0;i<c;i+=1)n.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+i}"]`).addClass(h);else for(let i=0;i<c;i+=1)n.slides.eq(e.realIndex+i).addClass(h)}};const Ft=[Y,V,W,U,X,Z,Q,et,it,ot,lt,ut,pt,gt,vt,bt,wt,St,Tt,Pt,Ot,At,It,{name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const t=this;y.extend(t,{thumbs:{swiper:null,init:zt.init.bind(t),update:zt.update.bind(t),onThumbClick:zt.onThumbClick.bind(t)}})},on:{beforeInit(){const t=this,{thumbs:e}=t.params;e&&e.swiper&&(t.thumbs.init(),t.thumbs.update(!0))},slideChange(){this.thumbs.swiper&&this.thumbs.update()},update(){this.thumbs.swiper&&this.thumbs.update()},resize(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate(){this.thumbs.swiper&&this.thumbs.update()},setTransition(t){const e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy(){const t=this.thumbs.swiper;t&&this.thumbs.swiperCreated&&t&&t.destroy()}}}];void 0===G.use&&(G.use=G.Class.use,G.installModule=G.Class.installModule),G.use(Ft);e.default=G},532:function(t,e,n){"use strict";n.d(e,"a",function(){return x});var r=n(6),o=n(4);
2n(15),n(165),n(69),n(125),n(27),n(168),n(286),n(90),n(298),n(17),n(43),n(35);function l(t){if(null===t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&(!(Symbol.iterator in t)&&(!(Symbol.toStringTag in t)||"[object Module]"===Object.prototype.toString.call(t)))}function c(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3?arguments[3]:void 0;if(!l(e))return c(t,{},n,r);var object=Object.assign({},e);for(var o in t)if("__proto__"!==o&&"constructor"!==o){var h=t[o];null!=h&&(r&&r(object,o,h,n)||(Array.isArray(h)&&Array.isArray(object[o])?object[o]=[...h,...object[o]]:l(h)&&l(object[o])?object[o]=c(h,object[o],(n?"".concat(n,"."):"")+o.toString(),r):object[o]=h))}return object}function h(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((p,e)=>c(p,e,"",t),{})}}var d=h(),f=(h((object,t,e)=>{if(void 0!==object[t]&&"function"==typeof e)return object[t]=e(object[t]),!0}),h((object,t,e)=>{if(Array.isArray(object[t])&&"function"==typeof e)return object[t]=e(object[t]),!0}),n(22));n(26);function m(){return m=Object(r.a)(function*(t,e){var n=function(t){if(!t.nuxtContext.cache)if(t.nuxtContext.ssrContext&&t.nuxtContext.ssrContext.cache)t.nuxtContext.cache=t.nuxtContext.ssrContext.cache;else{var e={};t.nuxtContext.cache={get:t=>e[t],set:(t,n)=>{e[t]=n},has:t=>void 0!==e[t]}}return t.nuxtContext.cache}(t),r="image:meta:"+e;if(n.has(r))return n.get(r);var meta=yield function(t){return v.apply(this,arguments)}(e).catch(t=>(console.error("Failed to get image meta for "+e,t+""),{width:0,height:0,ratio:0}));return n.set(r,meta),meta}),m.apply(this,arguments)}function v(){return(v=Object(r.a)(function*(t){if("undefined"==typeof Image)throw new TypeError("Image not supported");return new Promise((e,n)=>{var img=new Image;img.onload=()=>{var meta={width:img.width,height:img.height,ratio:img.width/img.height};e(meta)},img.onerror=t=>n(t),img.src=t})})).apply(this,arguments)}var y=n(42);function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach(function(e){Object(o.a)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function x(t,e){var n={options:t,nuxtContext:e},r=function(input){var image=C(n,input,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return image.isStatic&&function(image,input){image.url=input}(image,input),image},o=function(input){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r(input,w(w({},e),{},{modifiers:d(t,e.modifiers||{})})).url};var l=function(e){o[e]=(source,n,r)=>o(source,n,w(w({},t.presets[e]),r))};for(var c in t.presets)l(c);return o.options=t,o.getImage=r,o.getMeta=(input,t)=>function(t,e,n){return S.apply(this,arguments)}(n,input,t),o.getSizes=(input,t)=>function(t,input,e){var n,r,o=Object(y.c)(null===(n=e.modifiers)||void 0===n?void 0:n.width),l=Object(y.c)(null===(r=e.modifiers)||void 0===r?void 0:r.height),c=o&&l?l/o:0,h=[],d={};if("string"==typeof e.sizes)for(var f of e.sizes.split(/[\s,]+/).filter(t=>t)){var s=f.split(":");2===s.length&&(d[s[0].trim()]=s[1].trim())}else Object.assign(d,e.sizes);for(var m in d){var v=t.options.screens&&t.options.screens[m]||parseInt(m),_=String(d[m]),x=_.endsWith("vw");if(!x&&/^\d+$/.test(_)&&(_+="px"),x||_.endsWith("px")){var S=parseInt(_);if(v&&S){x&&(S=Math.round(S/100*v));var C=c?Math.round(S*c):l;h.push({width:S,size:_,screenMaxWidth:v,media:"(max-width: ".concat(v,"px)"),src:t.$img(input,w(w({},e.modifiers),{},{width:S,height:C}),e)})}}}h.sort((t,e)=>t.screenMaxWidth-e.screenMaxWidth);var T=h[h.length-1];T&&(T.media="");return{sizes:h.map(t=>"".concat(t.media?t.media+" ":"").concat(t.size)).join(", "),srcset:h.map(t=>"".concat(t.src," ").concat(t.width,"w")).join(", "),src:null==T?void 0:T.src}}(n,input,t),n.$img=o,o}function S(){return S=Object(r.a)(function*(t,input,e){var image=C(t,input,w({},e));return"function"==typeof image.getMeta?yield image.getMeta():yield function(t,e){return m.apply(this,arguments)}(t,image.url)}),S.apply(this,arguments)}function C(t,input,e){var n,r;if("string"!=typeof input||""===input)throw new TypeError("input must be a string (received ".concat(typeof input,": ").concat(JSON.stringify(input),")"));if(input.startsWith("data:"))return{url:input};var{provider:o,defaults:l}=function(t,e){var n=t.options.providers[e];if(!n)throw new Error("Unknown provider: "+e);return n}(t,e.provider||t.options.provider),c=function(t,e){if(!e)return{};if(!t.options.presets[e])throw new Error("Unknown preset: "+e);return t.options.presets[e]}(t,e.preset);if(input=Object(f.c)(input)?input:Object(f.h)(input),!o.supportsAlias)for(var base in t.options.alias)input.startsWith(base)&&(input=Object(f.e)(t.options.alias[base],input.substr(base.length)));if(o.validateDomains&&Object(f.c)(input)){var h=Object(f.g)(input).host;if(!t.options.domains.find(t=>t===h))return{url:input}}var m=d(e,c,l);m.modifiers=w({},m.modifiers);var v=m.modifiers.format;null!==(n=m.modifiers)&&void 0!==n&&n.width&&(m.modifiers.width=Object(y.c)(m.modifiers.width)),null!==(r=m.modifiers)&&void 0!==r&&r.height&&(m.modifiers.height=Object(y.c)(m.modifiers.height));var image=o.getImage(input,m,t);return image.format=image.format||v||"",image}},56:function(t,e){function n(t,e,n,r,o=0){return Math.abs(t-n)<=o&&Math.abs(e-r)<=o}t.exports={isNull:function(t,e){return n(t,e,0,0)},diff:function(t,e,n,r){return[t-n,e-r]},equal:n}},6:function(t,e,n){"use strict";function r(t,e,n,r,o,a,l){try{var i=t[a](l),u=i.value}catch(t){return void n(t)}i.done?e(u):Promise.resolve(u).then(r,o)}function o(t){return function(){var e=this,n=arguments;
2return new Promise(function(o,l){var a=t.apply(e,n);function c(t){r(a,o,l,c,h,"next",t)}function h(t){r(a,o,l,c,h,"throw",t)}c(void 0)})}}n.d(e,"a",function(){return o})},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(11),l="get",c="set";e.Factory={addGetterSetter:function(t,e,n,r,o){this.addGetter(t,e,n),this.addSetter(t,e,r,o),this.addOverloadedGetterSetter(t,e)},addGetter:function(t,e,n){var o=l+r.Util._capitalize(e);t.prototype[o]=t.prototype[o]||function(){var t=this.attrs[e];return void 0===t?n:t}},addSetter:function(t,n,o,l){var h=c+r.Util._capitalize(n);t.prototype[h]||e.Factory.overWriteSetter(t,n,o,l)},overWriteSetter:function(t,e,n,o){var l=c+r.Util._capitalize(e);t.prototype[l]=function(t){return n&&null!=t&&(t=n.call(this,t,e)),this._setAttr(e,t),o&&o.call(this),this}},addComponentsGetterSetter:function(t,e,n,h,d){var f,component,m=n.length,v=r.Util._capitalize,y=l+v(e),_=c+v(e);t.prototype[y]=function(){var t={};for(f=0;f<m;f++)t[component=n[f]]=this.getAttr(e+v(component));return t};var w=o.getComponentValidator(n);t.prototype[_]=function(t){var n,r=this.attrs[e];for(n in h&&(t=h.call(this,t)),w&&w.call(this,t,e),t)t.hasOwnProperty(n)&&this._setAttr(e+v(n),t[n]);return this._fireChangeEvent(e,r,t),d&&d.call(this),this},this.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter:function(t,e){var n=r.Util._capitalize(e),o=c+n,h=l+n;t.prototype[e]=function(){return arguments.length?(this[o](arguments[0]),this):this[h]()}},addDeprecatedGetterSetter:function(t,e,n,o){r.Util.error("Adding deprecated "+e);var c=l+r.Util._capitalize(e),h=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[c]=function(){r.Util.error(h);var t=this.attrs[e];return void 0===t?n:t},this.addSetter(t,e,o,function(){r.Util.error(h)}),this.addOverloadedGetterSetter(t,e)},backCompat:function(t,e){r.Util.each(e,function(e,n){var o=t.prototype[n],h=l+r.Util._capitalize(e),d=c+r.Util._capitalize(e);function f(){o.apply(this,arguments),r.Util.error('"'+e+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}t.prototype[e]=f,t.prototype[h]=f,t.prototype[d]=f})},afterSetFilter:function(){this._filterUpToDate=!1}}},74:function(t,e,n){const r=n(436),o=n(56),{vector:l}=n(51);class c{constructor(t,e){this.x=t,this.y=e}equal(t){return this.isAt(t.x,t.y)}isAt(t,e){return o.equal(this.x,this.y,t,e)}translated(t,e){return this.copy().translate(t,e)}translate(t,e){return this.x+=t,this.y+=e,this}closeTo(t,e){return r(this.x,t.x-e,t.x+e)&&r(this.y,t.y-e,t.y+e)}copy(){return new c(this.x,this.y)}diff(t){return o.diff(this.x,this.y,t.x,t.y)}asPair(){return[this.x,this.y]}asVector(){return l(this.x,this.y)}export(){return this.asVector()}static atRandom(t,e){return new c(Math.random()*t,Math.random()*e)}static import(t){return h(t.x,t.y)}}function h(t,e){return new c(t,e)}t.exports={anchor:h,Anchor:c}},75:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(7),h=n(21),d=n(116),f=n(11),m=n(9),v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.children=new l.Collection,e}return o(e,t),e.prototype.getChildren=function(t){if(!t)return this.children;var e=new l.Collection;return this.children.each(function(n){t(n)&&e.push(n)}),e},e.prototype.hasChildren=function(){return this.getChildren().length>0},e.prototype.removeChildren=function(){for(var t,i=0;i<this.children.length;i++)(t=this.children[i]).parent=null,t.index=0,t.remove();return this.children=new l.Collection,this},e.prototype.destroyChildren=function(){for(var t,i=0;i<this.children.length;i++)(t=this.children[i]).parent=null,t.index=0,t.destroy();return this.children=new l.Collection,this},e.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(arguments.length>1){for(var i=0;i<arguments.length;i++)this.add(arguments[i]);return this}var n=t[0];if(n.getParent())return n.moveTo(this),this;var r=this.children;
2return this._validateAdd(n),n._clearCaches(),n.index=r.length,n.parent=this,r.push(n),this._fire("add",{child:n}),this},e.prototype.destroy=function(){return this.hasChildren()&&this.destroyChildren(),t.prototype.destroy.call(this),this},e.prototype.find=function(t){return this._generalFind(t,!1)},e.prototype.get=function(t){return l.Util.warn("collection.get() method is deprecated. Please use collection.find() instead."),this.find(t)},e.prototype.findOne=function(t){var e=this._generalFind(t,!0);return e.length>0?e[0]:void 0},e.prototype._generalFind=function(t,e){var n=[];return this._descendants(function(r){var o=r._isMatch(t);return o&&n.push(r),!(!o||!e)}),l.Collection.toCollection(n)},e.prototype._descendants=function(t){for(var i=0;i<this.children.length;i++){var e=this.children[i];if(t(e))return!0;if(e.hasChildren()&&e._descendants(t))return!0}return!1},e.prototype.toObject=function(){var t=h.Node.prototype.toObject.call(this);t.children=[];for(var e=this.getChildren(),n=e.length,r=0;r<n;r++){var o=e[r];t.children.push(o.toObject())}return t},e.prototype.isAncestorOf=function(t){for(var e=t.getParent();e;){if(e._id===this._id)return!0;e=e.getParent()}return!1},e.prototype.clone=function(t){var e=h.Node.prototype.clone.call(this,t);return this.getChildren().each(function(t){e.add(t.clone())}),e},e.prototype.getAllIntersections=function(t){var e=[];return this.find("Shape").each(function(n){n.isVisible()&&n.intersects(t)&&e.push(n)}),e},e.prototype._setChildrenIndices=function(){this.children.each(function(t,e){t.index=e})},e.prototype.drawScene=function(t,e,n){var r=this.getLayer(),canvas=t||r&&r.getCanvas(),o=canvas&&canvas.getContext(),l=this._getCanvasCache(),c=l&&l.scene;return(this.isVisible()||n)&&(!n&&c?(o.save(),r._applyTransform(this,o,e),this._drawCachedSceneCanvas(o),o.restore()):this._drawChildren(canvas,"drawScene",e,!1,n,n)),this},e.prototype.drawHit=function(t,e,n){var r=this.getLayer(),canvas=t||r&&r.hitCanvas,o=canvas&&canvas.getContext(),l=this._getCanvasCache(),c=l&&l.hit;return(this.shouldDrawHit(canvas)||n)&&(!n&&c?(o.save(),r._applyTransform(this,o,e),this._drawCachedHitCanvas(o),o.restore()):this._drawChildren(canvas,"drawHit",e,!1,n,n)),this},e.prototype._drawChildren=function(canvas,t,e,n,r,o){var l,c,h=this.getLayer(),d=canvas&&canvas.getContext(),f=this.clipWidth(),m=this.clipHeight(),v=this.clipFunc(),y=f&&m||v;if(y&&h){d.save();var _=this.getAbsoluteTransform(e),w=_.getMatrix();d.transform(w[0],w[1],w[2],w[3],w[4],w[5]),d.beginPath(),v?v.call(this,d,this):(l=this.clipX(),c=this.clipY(),d.rect(l,c,f,m)),d.clip(),w=_.copy().invert().getMatrix(),d.transform(w[0],w[1],w[2],w[3],w[4],w[5])}var x="source-over"!==this.globalCompositeOperation()&&!o&&"drawScene"===t;x&&h&&(d.save(),d._applyGlobalCompositeOperation(this)),this.children.each(function(o){o[t](canvas,e,n,r)}),x&&h&&d.restore(),y&&h&&d.restore()},e.prototype.shouldDrawHit=function(canvas){if(canvas&&canvas.isCache)return!0;var t=this.getLayer(),e=!1;d.DD._dragElements.forEach(function(n){"dragging"===n.dragStatus&&n.node.getLayer()===t&&(e=!0)});var n=!m.Konva.hitOnDragEnabled&&e;return t&&t.hitGraphEnabled()&&this.isVisible()&&!n},e.prototype.getClientRect=function(t){var e,n,r,o,l=(t=t||{}).skipTransform,c=t.relativeTo,h={x:1/0,y:1/0,width:0,height:0},d=this;this.children.each(function(l){if(l.visible()){var rect=l.getClientRect({relativeTo:d,skipShadow:t.skipShadow,skipStroke:t.skipStroke});0===rect.width&&0===rect.height||(void 0===e?(e=rect.x,n=rect.y,r=rect.x+rect.width,o=rect.y+rect.height):(e=Math.min(e,rect.x),n=Math.min(n,rect.y),r=Math.max(r,rect.x+rect.width),o=Math.max(o,rect.y+rect.height)))}});for(var f=this.find("Shape"),m=!1,i=0;i<f.length;i++){if(f[i]._isVisible(this)){m=!0;break}}return h=m&&void 0!==e?{x:e,y:n,width:r-e,height:o-n}:{x:0,y:0,width:0,height:0},l?h:this._transformedRect(h,c)},e}(h.Node);e.Container=v,c.Factory.addComponentsGetterSetter(v,"clip",["x","y","width","height"]),c.Factory.addGetterSetter(v,"clipX",void 0,f.getNumberValidator()),c.Factory.addGetterSetter(v,"clipY",void 0,f.getNumberValidator()),c.Factory.addGetterSetter(v,"clipWidth",void 0,f.getNumberValidator()),c.Factory.addGetterSetter(v,"clipHeight",void 0,f.getNumberValidator()),c.Factory.addGetterSetter(v,"clipFunc"),l.Collection.mapMethods(v)},76:function(t,e,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",function(){n.$forceUpdate()}),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||h):c.length>0?c.map(function(){return t(!1)}):t(!1))}};t.exports=r},77:function(t,e,n){(function(t){t.exports=function(){"use strict";var e,r;function o(){return e.apply(null,arguments)}function l(t){e=t}function c(input){return input instanceof Array||"[object Array]"===Object.prototype.toString.call(input)}function h(input){return null!=input&&"[object Object]"===Object.prototype.toString.call(input)}function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function f(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;
vendor: 60,031 bytes, line 2
2for(e in t)if(d(t,e))return!1;return!0}function m(input){return void 0===input}function v(input){return"number"==typeof input||"[object Number]"===Object.prototype.toString.call(input)}function y(input){return input instanceof Date||"[object Date]"===Object.prototype.toString.call(input)}function map(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function _(a,b){for(var i in b)d(b,i)&&(a[i]=b[i]);return d(b,"toString")&&(a.toString=b.toString),d(b,"valueOf")&&(a.valueOf=b.valueOf),a}function w(input,t,e,n){return ri(input,t,e,n,!0).utc()}function x(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function S(t){return null==t._pf&&(t._pf=x()),t._pf}function C(t){var e=null,n=!1,o=t._d&&!isNaN(t._d.getTime());return o&&(e=S(t),n=r.call(e.parsedDateParts,function(i){return null!=i}),o=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?o:(t._isValid=o,t._isValid)}function T(t){var e=w(NaN);return null!=t?_(S(e),t):S(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){var i,e=Object(this),n=e.length>>>0;for(i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var M=o.momentProperties=[],P=!1;function E(t,e){var i,n,r,o=M.length;if(m(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),m(e._i)||(t._i=e._i),m(e._f)||(t._f=e._f),m(e._l)||(t._l=e._l),m(e._strict)||(t._strict=e._strict),m(e._tzm)||(t._tzm=e._tzm),m(e._isUTC)||(t._isUTC=e._isUTC),m(e._offset)||(t._offset=e._offset),m(e._pf)||(t._pf=S(e)),m(e._locale)||(t._locale=e._locale),o>0)for(i=0;i<o;i++)m(r=e[n=M[i]])||(t[n]=r);return t}function O(t){E(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===P&&(P=!0,o.updateOffset(this),P=!1)}function k(t){return t instanceof O||null!=t&&null!=t._isAMomentObject}function A(t){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function D(t,e){var n=!0;return _(function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,t),n){var r,i,l,c=[],h=arguments.length;for(i=0;i<h;i++){if(r="","object"==typeof arguments[i]){for(l in r+="\n["+i+"] ",arguments[0])d(arguments[0],l)&&(r+=l+": "+arguments[0][l]+", ");r=r.slice(0,-2)}else r=arguments[i];c.push(r)}A(t+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var I,z={};function F(t,e){null!=o.deprecationHandler&&o.deprecationHandler(t,e),z[t]||(A(e),z[t]=!0)}function R(input){return"undefined"!=typeof Function&&input instanceof Function||"[object Function]"===Object.prototype.toString.call(input)}function N(t){var e,i;for(i in t)d(t,i)&&(R(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function L(t,e){var n,r=_({},t);for(n in e)d(e,n)&&(h(t[n])&&h(e[n])?(r[n]={},_(r[n],t[n]),_(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)d(t,n)&&!d(e,n)&&h(t[n])&&(r[n]=_({},r[n]));return r}function j(t){null!=t&&this.set(t)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,I=Object.keys?Object.keys:function(t){var i,e=[];for(i in t)d(t,i)&&e.push(i);return e};var $={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function G(t,e,n){var output=this._calendar[t]||this._calendar.sameElse;return R(output)?output.call(e,n):output}function Y(t,e,n){var r=""+Math.abs(t),o=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var V=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},U={};function H(t,e,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),t&&(U[t]=o),e&&(U[e[0]]=function(){return Y(o.apply(this,arguments),e[1],e[2])}),n&&(U[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function X(input){return input.match(/\[[\s\S]/)?input.replace(/^\[|\]$/g,""):input.replace(/\\/g,"")}function K(t){var i,e,n=t.match(V);for(i=0,e=n.length;i<e;i++)U[n[i]]?n[i]=U[n[i]]:n[i]=X(n[i]);return function(r){var i,output="";for(i=0;i<e;i++)output+=R(n[i])?n[i].call(r,t):n[i];return output}}function Z(t,e){return t.isValid()?(e=J(e,t.localeData()),W[e]=W[e]||K(e),W[e](t)):t.localeData().invalidDate()}function J(t,e){var i=5;function n(input){return e.longDateFormat(input)||input}for(B.lastIndex=0;i>=0&&B.test(t);)t=t.replace(B,n),B.lastIndex=0,i-=1;return t}var Q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function tt(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(V).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])}var et="Invalid date";function nt(){return this._invalidDate}var it="%d",at=/\d{1,2}/;function ot(t){return this._ordinal.replace("%d",t)}var st={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function lt(t,e,n,r){var output=this._relativeTime[n];return R(output)?output(t,e,n,r):output.replace(/%d/i,t)}function ct(t,output){var e=this._relativeTime[t>0?"future":"past"];return R(e)?e(output):e.replace(/%s/i,output)}var ut={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ht(t){return"string"==typeof t?ut[t]||ut[t.toLowerCase()]:void 0}function pt(t){var e,n,r={};for(n in t)d(t,n)&&(e=ht(n))&&(r[e]=t[n]);return r}var ft={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function gt(t){var u,e=[];for(u in t)d(t,u)&&e.push({unit:u,priority:ft[u]});return e.sort(function(a,b){return a.priority-b.priority}),e}var mt,vt=/\d/,yt=/\d\d/,bt=/\d{3}/,_t=/\d{4}/,wt=/[+-]?\d{6}/,xt=/\d\d?/,St=/\d\d\d\d?/,Ct=/\d\d\d\d\d\d?/,Tt=/\d{1,3}/,Mt=/\d{1,4}/,Pt=/[+-]?\d{1,6}/,Et=/\d+/,Ot=/[+-]?\d+/,kt=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,Dt=/[+-]?\d+(\.\d{1,3})?/,It=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,zt=/^[1-9]\d?/,Ft=/^([1-9]\d|\d)/;function Rt(t,e,n){mt[t]=R(e)?e:function(t,r){return t&&n?n:e}}function Nt(t,e){return d(mt,t)?mt[t](e._strict,e._locale):new RegExp(Lt(t))}function Lt(s){return jt(s.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,o){return e||n||r||o}))}function jt(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function $t(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Gt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=$t(e)),n}mt={};var Yt={};function Vt(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),v(e)&&(r=function(input,t){t[e]=Gt(input)}),n=t.length,i=0;i<n;i++)Yt[t[i]]=r}function Bt(t,e){Vt(t,function(input,t,n,r){n._w=n._w||{},e(input,n._w,n,r)})}function Wt(t,input,e){null!=input&&d(Yt,t)&&Yt[t](input,e._a,e,t)}function Ut(t){return t%4==0&&t%100!=0||t%400==0}var Ht=0,qt=1,Xt=2,Kt=3,Zt=4,Jt=5,Qt=6,te=7,ee=8;function ne(t){return Ut(t)?366:365}H("Y",0,0,function(){var t=this.year();return t<=9999?Y(t,4):"+"+t}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),Rt("Y",Ot),Rt("YY",xt,yt),Rt("YYYY",Mt,_t),Rt("YYYYY",Pt,wt),Rt("YYYYYY",Pt,wt),Vt(["YYYYY","YYYYYY"],Ht),Vt("YYYY",function(input,t){t[Ht]=2===input.length?o.parseTwoDigitYear(input):Gt(input)}),Vt("YY",function(input,t){t[Ht]=o.parseTwoDigitYear(input)}),Vt("Y",function(input,t){t[Ht]=parseInt(input,10)}),o.parseTwoDigitYear=function(input){return Gt(input)+(Gt(input)>68?1900:2e3)};var ie,re=oe("FullYear",!0);function ae(){return Ut(this.year())}function oe(t,e){return function(n){return null!=n?(le(this,t,n),o.updateOffset(this,e),this):se(this,t)}}function se(t,e){if(!t.isValid())return NaN;var n=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function le(t,e,n){var r,o,l,c,h;if(t.isValid()&&!isNaN(n)){switch(r=t._d,o=t._isUTC,e){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}l=n,c=t.month(),h=29!==(h=t.date())||1!==c||Ut(l)?h:28,o?r.setUTCFullYear(l,c,h):r.setFullYear(l,c,h)}}function ce(t){return R(this[t=ht(t)])?this[t]():this}function ue(t,e){if("object"==typeof t){var i,n=gt(t=pt(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(R(this[t=ht(t)]))return this[t](e);return this}function he(t,e){return(t%e+e)%e}function de(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=he(e,12);return t+=(e-n)/12,1===n?Ut(t)?29:28:31-n%7%2}ie=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var i;for(i=0;i<this.length;++i)if(this[i]===t)return i;return-1},H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),H("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Rt("M",xt,zt),Rt("MM",xt,yt),Rt("MMM",function(t,e){return e.monthsShortRegex(t)}),Rt("MMMM",function(t,e){return e.monthsRegex(t)}),Vt(["M","MM"],function(input,t){t[qt]=Gt(input)-1}),Vt(["MMM","MMMM"],function(input,t,e,n){var r=e._locale.monthsParse(input,n,e._strict);null!=r?t[qt]=r:S(e).invalidMonth=input});var pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),fe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ge=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,me=It,ve=It;function ye(t,e){return t?c(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ge).test(e)?"format":"standalone"][t.month()]:c(this._months)?this._months:this._months.standalone}function be(t,e){return t?c(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ge.test(e)?"format":"standalone"][t.month()]:c(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function _e(t,e,n){var i,r,o,l=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=w([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=ie.call(this._shortMonthsParse,l))?r:null:-1!==(r=ie.call(this._longMonthsParse,l))?r:null:"MMM"===e?-1!==(r=ie.call(this._shortMonthsParse,l))||-1!==(r=ie.call(this._longMonthsParse,l))?r:null:-1!==(r=ie.call(this._longMonthsParse,l))||-1!==(r=ie.call(this._shortMonthsParse,l))?r:null}function we(t,e,n){var i,r,o;if(this._monthsParseExact)return _e.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=w([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function xe(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=Gt(e);else if(!v(e=t.localeData().monthsParse(e)))return t;var n=e,r=t.date();return r=r<29?r:Math.min(r,de(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,r):t._d.setMonth(n,r),t}function Se(t){return null!=t?(xe(this,t),o.updateOffset(this,!0),this):se(this,"Month")}function Ce(){return de(this.year(),this.month())}function Te(t){return this._monthsParseExact?(d(this,"_monthsRegex")||Pe.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=me),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function Me(t){return this._monthsParseExact?(d(this,"_monthsRegex")||Pe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=ve),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function Pe(){function t(a,b){return b.length-a.length}var i,e,n,r,o=[],l=[],c=[];for(i=0;i<12;i++)e=w([2e3,i]),n=jt(this.monthsShort(e,"")),r=jt(this.months(e,"")),o.push(n),l.push(r),c.push(r),c.push(n);o.sort(t),l.sort(t),c.sort(t),this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ee(t,e,n,r,o,s,l){var c;return t<100&&t>=0?(c=new Date(t+400,e,n,r,o,s,l),isFinite(c.getFullYear())&&c.setFullYear(t)):c=new Date(t,e,n,r,o,s,l),c}function Oe(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function ke(t,e,n){var r=7+e-n;return-(7+Oe(t,0,r).getUTCDay()-e)%7+r-1}function Ae(t,e,n,r,o){var l,c,h=1+7*(e-1)+(7+n-r)%7+ke(t,r,o);return h<=0?c=ne(l=t-1)+h:h>ne(t)?(l=t+1,c=h-ne(t)):(l=t,c=h),{year:l,dayOfYear:c}}function De(t,e,n){var r,o,l=ke(t.year(),e,n),c=Math.floor((t.dayOfYear()-l-1)/7)+1;return c<1?r=c+Ie(o=t.year()-1,e,n):c>Ie(t.year(),e,n)?(r=c-Ie(t.year(),e,n),o=t.year()+1):(o=t.year(),r=c),{week:r,year:o}}function Ie(t,e,n){var r=ke(t,e,n),o=ke(t+1,e,n);return(ne(t)-r+o)/7}function ze(t){return De(t,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),Rt("w",xt,zt),Rt("ww",xt,yt),Rt("W",xt,zt),Rt("WW",xt,yt),Bt(["w","ww","W","WW"],function(input,t,e,n){t[n.substr(0,1)]=Gt(input)});var Fe={dow:0,doy:6};function Re(){return this._week.dow}function Ne(){return this._week.doy}function Le(input){var t=this.localeData().week(this);return null==input?t:this.add(7*(input-t),"d")}function je(input){var t=De(this,1,4).week;return null==input?t:this.add(7*(input-t),"d")}function $e(input,t){return"string"!=typeof input?input:isNaN(input)?"number"==typeof(input=t.weekdaysParse(input))?input:null:parseInt(input,10)}function Ge(input,t){return"string"==typeof input?t.weekdaysParse(input)%7||7:isNaN(input)?null:input}function Ye(t,e){return t.slice(e,7).concat(t.slice(0,e))}H("d",0,"do","day"),H("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),H("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),H("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),Rt("d",xt),Rt("e",xt),Rt("E",xt),Rt("dd",function(t,e){return e.weekdaysMinRegex(t)}),Rt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Rt("dddd",function(t,e){return e.weekdaysRegex(t)}),Bt(["dd","ddd","dddd"],function(input,t,e,n){var r=e._locale.weekdaysParse(input,n,e._strict);null!=r?t.d=r:S(e).invalidWeekday=input}),Bt(["d","e","E"],function(input,t,e,n){t[n]=Gt(input)});var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=It,He=It,qe=It;function Xe(t,e){var n=c(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ye(n,this._week.dow):t?n[t.day()]:n}function Ke(t){return!0===t?Ye(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ze(t){return!0===t?Ye(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Je(t,e,n){var i,r,o,l=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=w([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=ie.call(this._weekdaysParse,l))?r:null:"ddd"===e?-1!==(r=ie.call(this._shortWeekdaysParse,l))?r:null:-1!==(r=ie.call(this._minWeekdaysParse,l))?r:null:"dddd"===e?-1!==(r=ie.call(this._weekdaysParse,l))||-1!==(r=ie.call(this._shortWeekdaysParse,l))||-1!==(r=ie.call(this._minWeekdaysParse,l))?r:null:"ddd"===e?-1!==(r=ie.call(this._shortWeekdaysParse,l))||-1!==(r=ie.call(this._weekdaysParse,l))||-1!==(r=ie.call(this._minWeekdaysParse,l))?r:null:-1!==(r=ie.call(this._minWeekdaysParse,l))||-1!==(r=ie.call(this._weekdaysParse,l))||-1!==(r=ie.call(this._shortWeekdaysParse,l))?r:null}function Qe(t,e,n){var i,r,o;if(this._weekdaysParseExact)return Je.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=w([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function tn(input){if(!this.isValid())return null!=input?this:NaN;var t=se(this,"Day");return null!=input?(input=$e(input,this.localeData()),this.add(input-t,"d")):t}function en(input){if(!this.isValid())return null!=input?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==input?t:this.add(input-t,"d")}function nn(input){if(!this.isValid())return null!=input?this:NaN;if(null!=input){var t=Ge(input,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function rn(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||sn.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function an(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||sn.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=He),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function on(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||sn.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function sn(){function t(a,b){return b.length-a.length}var i,e,n,r,o,l=[],c=[],h=[],d=[];for(i=0;i<7;i++)e=w([2e3,1]).day(i),n=jt(this.weekdaysMin(e,"")),r=jt(this.weekdaysShort(e,"")),o=jt(this.weekdays(e,"")),l.push(n),c.push(r),h.push(o),d.push(n),d.push(r),d.push(o);l.sort(t),c.sort(t),h.sort(t),d.sort(t),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+l.join("|")+")","i")}function ln(){return this.hours()%12||12}function cn(){return this.hours()||24}function un(t,e){H(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function hn(t,e){return e._meridiemParse}function dn(input){return"p"===(input+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,ln),H("k",["kk",2],0,cn),H("hmm",0,0,function(){return""+ln.apply(this)+Y(this.minutes(),2)}),H("hmmss",0,0,function(){return""+ln.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),un("a",!0),un("A",!1),Rt("a",hn),Rt("A",hn),Rt("H",xt,Ft),Rt("h",xt,zt),Rt("k",xt,zt),Rt("HH",xt,yt),Rt("hh",xt,yt),Rt("kk",xt,yt),Rt("hmm",St),Rt("hmmss",Ct),Rt("Hmm",St),Rt("Hmmss",Ct),Vt(["H","HH"],Kt),Vt(["k","kk"],function(input,t,e){var n=Gt(input);t[Kt]=24===n?0:n}),Vt(["a","A"],function(input,t,e){e._isPm=e._locale.isPM(input),e._meridiem=input}),Vt(["h","hh"],function(input,t,e){t[Kt]=Gt(input),S(e).bigHour=!0}),Vt("hmm",function(input,t,e){var n=input.length-2;t[Kt]=Gt(input.substr(0,n)),t[Zt]=Gt(input.substr(n)),S(e).bigHour=!0}),Vt("hmmss",function(input,t,e){var n=input.length-4,r=input.length-2;t[Kt]=Gt(input.substr(0,n)),t[Zt]=Gt(input.substr(n,2)),t[Jt]=Gt(input.substr(r)),S(e).bigHour=!0}),Vt("Hmm",function(input,t,e){var n=input.length-2;t[Kt]=Gt(input.substr(0,n)),t[Zt]=Gt(input.substr(n))}),Vt("Hmmss",function(input,t,e){var n=input.length-4,r=input.length-2;t[Kt]=Gt(input.substr(0,n)),t[Zt]=Gt(input.substr(n,2)),t[Jt]=Gt(input.substr(r))});var pn=/[ap]\.?m?\.?/i,fn=oe("Hours",!0);function gn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var mn,vn={calendar:$,longDateFormat:Q,invalidDate:et,ordinal:it,dayOfMonthOrdinalParse:at,relativeTime:st,months:pe,monthsShort:fe,week:Fe,weekdays:Ve,weekdaysMin:We,weekdaysShort:Be,meridiemParse:pn},yn={},bn={};function _n(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function wn(t){return t?t.toLowerCase().replace("_","-"):t}function xn(t){for(var e,n,r,o,i=0;i<t.length;){for(e=(o=wn(t[i]).split("-")).length,n=(n=wn(t[i+1]))?n.split("-"):null;e>0;){if(r=Cn(o.slice(0,e).join("-")))return r;if(n&&n.length>=e&&_n(o,n)>=e-1)break;e--}i++}return mn}function Sn(t){return!(!t||!t.match("^[^/\\\\]*$"))}function Cn(e){var r=null;if(void 0===yn[e]&&void 0!==t&&t&&t.exports&&Sn(e))try{r=mn._abbr,n(502)("./"+e),Tn(r)}catch(t){yn[e]=null}return yn[e]}function Tn(t,e){var data;return t&&((data=m(e)?En(t):Mn(t,e))?mn=data:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),mn._abbr}function Mn(t,e){if(null!==e){var n,r=vn;if(e.abbr=t,null!=yn[t])F("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=yn[t]._config;else if(null!=e.parentLocale)if(null!=yn[e.parentLocale])r=yn[e.parentLocale]._config;else{if(null==(n=Cn(e.parentLocale)))return bn[e.parentLocale]||(bn[e.parentLocale]=[]),bn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return yn[t]=new j(L(r,e)),bn[t]&&bn[t].forEach(function(t){Mn(t.name,t.config)}),Tn(t),yn[t]}return delete yn[t],null}function Pn(t,e){if(null!=e){var n,r,o=vn;null!=yn[t]&&null!=yn[t].parentLocale?yn[t].set(L(yn[t]._config,e)):(null!=(r=Cn(t))&&(o=r._config),e=L(o,e),null==r&&(e.abbr=t),(n=new j(e)).parentLocale=yn[t],yn[t]=n),Tn(t)}else null!=yn[t]&&(null!=yn[t].parentLocale?(yn[t]=yn[t].parentLocale,t===Tn()&&Tn(t)):null!=yn[t]&&delete yn[t]);return yn[t]}function En(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return mn;if(!c(t)){if(e=Cn(t))return e;t=[t]}return xn(t)}function On(){return I(yn)}function kn(t){var e,a=t._a;return a&&-2===S(t).overflow&&(e=a[qt]<0||a[qt]>11?qt:a[Xt]<1||a[Xt]>de(a[Ht],a[qt])?Xt:a[Kt]<0||a[Kt]>24||24===a[Kt]&&(0!==a[Zt]||0!==a[Jt]||0!==a[Qt])?Kt:a[Zt]<0||a[Zt]>59?Zt:a[Jt]<0||a[Jt]>59?Jt:a[Qt]<0||a[Qt]>999?Qt:-1,S(t)._overflowDayOfYear&&(e<Ht||e>Xt)&&(e=Xt),S(t)._overflowWeeks&&-1===e&&(e=te),S(t)._overflowWeekday&&-1===e&&(e=ee),S(t).overflow=e),t}var An=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,In=/Z|[+-]\d\d(?::?\d\d)?/,zn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Fn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Rn=/^\/?Date\((-?\d+)/i,Nn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ln={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function jn(t){var i,e,n,r,o,l,c=t._i,h=An.exec(c)||Dn.exec(c),d=zn.length,f=Fn.length;if(h){for(S(t).iso=!0,i=0,e=d;i<e;i++)if(zn[i][1].exec(h[1])){r=zn[i][0],n=!1!==zn[i][2];break}if(null==r)return void(t._isValid=!1);if(h[3]){for(i=0,e=f;i<e;i++)if(Fn[i][1].exec(h[3])){o=(h[2]||" ")+Fn[i][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(h[4]){if(!In.exec(h[4]))return void(t._isValid=!1);l="Z"}t._f=r+(o||"")+(l||""),Zn(t)}else t._isValid=!1}function $n(t,e,n,r,o,l){var c=[Gn(t),fe.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return l&&c.push(parseInt(l,10)),c}function Gn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Yn(s){return s.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Vn(t,e,n){return!t||Be.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(S(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Bn(t,e,n){if(t)return Ln[t];if(e)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function Wn(t){var e,n=Nn.exec(Yn(t._i));if(n){if(e=$n(n[4],n[3],n[2],n[5],n[6],n[7]),!Vn(n[1],e,t))return;t._a=e,t._tzm=Bn(n[8],n[9],n[10]),t._d=Oe.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),S(t).rfc2822=!0}else t._isValid=!1}function Un(t){var e=Rn.exec(t._i);null===e?(jn(t),!1===t._isValid&&(delete t._isValid,Wn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:o.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Hn(a,b,t){return null!=a?a:null!=b?b:t}function qn(t){var e=new Date(o.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Xn(t){var i,e,n,r,o,input=[];if(!t._d){for(n=qn(t),t._w&&null==t._a[Xt]&&null==t._a[qt]&&Kn(t),null!=t._dayOfYear&&(o=Hn(t._a[Ht],n[Ht]),(t._dayOfYear>ne(o)||0===t._dayOfYear)&&(S(t)._overflowDayOfYear=!0),e=Oe(o,0,t._dayOfYear),t._a[qt]=e.getUTCMonth(),t._a[Xt]=e.getUTCDate()),i=0;i<3&&null==t._a[i];++i)t._a[i]=input[i]=n[i];for(;i<7;i++)t._a[i]=input[i]=null==t._a[i]?2===i?1:0:t._a[i];24===t._a[Kt]&&0===t._a[Zt]&&0===t._a[Jt]&&0===t._a[Qt]&&(t._nextDay=!0,t._a[Kt]=0),t._d=(t._useUTC?Oe:Ee).apply(null,input),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Kt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(S(t).weekdayMismatch=!0)}}function Kn(t){var e,n,r,o,l,c,h,d,f;null!=(e=t._w).GG||null!=e.W||null!=e.E?(l=1,c=4,n=Hn(e.GG,t._a[Ht],De(ai(),1,4).year),r=Hn(e.W,1),((o=Hn(e.E,1))<1||o>7)&&(d=!0)):(l=t._locale._week.dow,c=t._locale._week.doy,f=De(ai(),l,c),n=Hn(e.gg,t._a[Ht],f.year),r=Hn(e.w,f.week),null!=e.d?((o=e.d)<0||o>6)&&(d=!0):null!=e.e?(o=e.e+l,(e.e<0||e.e>6)&&(d=!0)):o=l),r<1||r>Ie(n,l,c)?S(t)._overflowWeeks=!0:null!=d?S(t)._overflowWeekday=!0:(h=Ae(n,r,o,l,c),t._a[Ht]=h.year,t._dayOfYear=h.dayOfYear)}function Zn(t){if(t._f!==o.ISO_8601)if(t._f!==o.RFC_2822){t._a=[],S(t).empty=!0;var i,e,n,r,l,c,h,d=""+t._i,f=d.length,m=0;for(h=(n=J(t._f,t._locale).match(V)||[]).length,i=0;i<h;i++)r=n[i],(e=(d.match(Nt(r,t))||[])[0])&&((l=d.substr(0,d.indexOf(e))).length>0&&S(t).unusedInput.push(l),d=d.slice(d.indexOf(e)+e.length),m+=e.length),U[r]?(e?S(t).empty=!1:S(t).unusedTokens.push(r),Wt(r,e,t)):t._strict&&!e&&S(t).unusedTokens.push(r);S(t).charsLeftOver=f-m,d.length>0&&S(t).unusedInput.push(d),t._a[Kt]<=12&&!0===S(t).bigHour&&t._a[Kt]>0&&(S(t).bigHour=void 0),S(t).parsedDateParts=t._a.slice(0),S(t).meridiem=t._meridiem,t._a[Kt]=Jn(t._locale,t._a[Kt],t._meridiem),null!==(c=S(t).era)&&(t._a[Ht]=t._locale.erasConvertYear(c,t._a[Ht])),Xn(t),kn(t)}else Wn(t);else jn(t)}function Jn(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function Qn(t){var e,n,r,i,o,l,c=!1,h=t._f.length;if(0===h)return S(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<h;i++)o=0,l=!1,e=E({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Zn(e),C(e)&&(l=!0),o+=S(e).charsLeftOver,o+=10*S(e).unusedTokens.length,S(e).score=o,c?o<r&&(r=o,n=e):(null==r||o<r||l)&&(r=o,n=e,l&&(c=!0));_(t,n||e)}function ti(t){if(!t._d){var i=pt(t._i),e=void 0===i.day?i.date:i.day;t._a=map([i.year,i.month,e,i.hour,i.minute,i.second,i.millisecond],function(t){return t&&parseInt(t,10)}),Xn(t)}}function ei(t){var e=new O(kn(ni(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function ni(t){var input=t._i,e=t._f;return t._locale=t._locale||En(t._l),null===input||void 0===e&&""===input?T({nullInput:!0}):("string"==typeof input&&(t._i=input=t._locale.preparse(input)),k(input)?new O(kn(input)):(y(input)?t._d=input:c(e)?Qn(t):e?Zn(t):ii(t),C(t)||(t._d=null),t))}function ii(t){var input=t._i;m(input)?t._d=new Date(o.now()):y(input)?t._d=new Date(input.valueOf()):"string"==typeof input?Un(t):c(input)?(t._a=map(input.slice(0),function(t){return parseInt(t,10)}),Xn(t)):h(input)?ti(t):v(input)?t._d=new Date(input):o.createFromInputFallback(t)}function ri(input,t,e,n,r){var o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==e&&!1!==e||(n=e,e=void 0),(h(input)&&f(input)||c(input)&&0===input.length)&&(input=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=e,o._i=input,o._f=t,o._strict=n,ei(o)}function ai(input,t,e,n){return ri(input,t,e,n,!1)}o.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),o.ISO_8601=function(){},o.RFC_2822=function(){};var oi=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ai.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:T()}),si=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ai.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:T()});function ci(t,e){var n,i;if(1===e.length&&c(e[0])&&(e=e[0]),!e.length)return ai();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function ui(){return ci("isBefore",[].slice.call(arguments,0))}function hi(){return ci("isAfter",[].slice.call(arguments,0))}var di=function(){return Date.now?Date.now():+new Date},pi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function fi(t){var e,i,n=!1,r=pi.length;for(e in t)if(d(t,e)&&(-1===ie.call(pi,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[pi[i]]){if(n)return!1;parseFloat(t[pi[i]])!==Gt(t[pi[i]])&&(n=!0)}return!0}function gi(){return this._isValid}function mi(){return ji(NaN)}function vi(t){var e=pt(t),n=e.year||0,r=e.quarter||0,o=e.month||0,l=e.week||e.isoWeek||0,c=e.day||0,h=e.hour||0,d=e.minute||0,f=e.second||0,m=e.millisecond||0;this._isValid=fi(e),this._milliseconds=+m+1e3*f+6e4*d+1e3*h*60*60,this._days=+c+7*l,this._months=+o+3*r+12*n,this._data={},this._locale=En(),this._bubble()}function yi(t){return t instanceof vi}function bi(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function _i(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),l=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&Gt(t[i])!==Gt(e[i]))&&l++;return l+o}function wi(t,e){H(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+Y(~~(t/60),2)+e+Y(~~t%60,2)})}wi("Z",":"),wi("ZZ",""),Rt("Z",At),Rt("ZZ",At),Vt(["Z","ZZ"],function(input,t,e){e._useUTC=!0,e._tzm=Si(At,input)});var xi=/([\+\-]|\d\d)/gi;function Si(t,e){var n,r,o=(e||"").match(t);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(xi)||["-",0,0])[1]+Gt(n[2]))?0:"+"===n[0]?r:-r}function Ci(input,t){var e,n;return t._isUTC?(e=t.clone(),n=(k(input)||y(input)?input.valueOf():ai(input).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+n),o.updateOffset(e,!1),e):ai(input).local()}function Ti(t){return-Math.round(t._d.getTimezoneOffset())}function Mi(input,t,e){var n,r=this._offset||0;if(!this.isValid())return null!=input?this:NaN;if(null!=input){if("string"==typeof input){if(null===(input=Si(At,input)))return this}else Math.abs(input)<16&&!e&&(input*=60);return!this._isUTC&&t&&(n=Ti(this)),this._offset=input,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==input&&(!t||this._changeInProgress?Bi(this,ji(input-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ti(this)}function Pi(input,t){return null!=input?("string"!=typeof input&&(input=-input),this.utcOffset(input,t),this):-this.utcOffset()}function Ei(t){return this.utcOffset(0,t)}function Oi(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ti(this),"m")),this}function ki(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Si(kt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ai(input){return!!this.isValid()&&(input=input?ai(input).utcOffset():0,(this.utcOffset()-input)%60==0)}function Di(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ii(){if(!m(this._isDSTShifted))return this._isDSTShifted;var t,e={};return E(e,this),(e=ni(e))._a?(t=e._isUTC?w(e._a):ai(e._a),this._isDSTShifted=this.isValid()&&_i(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function zi(){return!!this.isValid()&&!this._isUTC}function Fi(){return!!this.isValid()&&this._isUTC}function Ri(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Ni=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Li=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ji(input,t){var e,n,r,o=input,l=null;return yi(input)?o={ms:input._milliseconds,d:input._days,M:input._months}:v(input)||!isNaN(+input)?(o={},t?o[t]=+input:o.milliseconds=+input):(l=Ni.exec(input))?(e="-"===l[1]?-1:1,o={y:0,d:Gt(l[Xt])*e,h:Gt(l[Kt])*e,m:Gt(l[Zt])*e,s:Gt(l[Jt])*e,ms:Gt(bi(1e3*l[Qt]))*e}):(l=Li.exec(input))?(e="-"===l[1]?-1:1,o={y:$i(l[2],e),M:$i(l[3],e),w:$i(l[4],e),d:$i(l[5],e),h:$i(l[6],e),m:$i(l[7],e),s:$i(l[8],e)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Yi(ai(o.from),ai(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),n=new vi(o),yi(input)&&d(input,"_locale")&&(n._locale=input._locale),yi(input)&&d(input,"_isValid")&&(n._isValid=input._isValid),n}function $i(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Gi(base,t){var e={};return e.months=t.month()-base.month()+12*(t.year()-base.year()),base.clone().add(e.months,"M").isAfter(t)&&--e.months,e.milliseconds=+t-+base.clone().add(e.months,"M"),e}function Yi(base,t){var e;return base.isValid()&&t.isValid()?(t=Ci(t,base),base.isBefore(t)?e=Gi(base,t):((e=Gi(t,base)).milliseconds=-e.milliseconds,e.months=-e.months),e):{milliseconds:0,months:0}}function Vi(t,e){return function(n,r){var o;return null===r||isNaN(+r)||(F(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Bi(this,ji(n,r),t),this}}function Bi(t,e,n,r){var l=e._milliseconds,c=bi(e._days),h=bi(e._months);t.isValid()&&(r=null==r||r,h&&xe(t,se(t,"Month")+h*n),c&&le(t,"Date",se(t,"Date")+c*n),l&&t._d.setTime(t._d.valueOf()+l*n),r&&o.updateOffset(t,c||h))}ji.fn=vi.prototype,ji.invalid=mi;var Wi=Vi(1,"add"),Ui=Vi(-1,"subtract");function Hi(input){return"string"==typeof input||input instanceof String}function qi(input){return k(input)||y(input)||Hi(input)||v(input)||Ki(input)||Xi(input)||null==input}function Xi(input){var i,t,e=h(input)&&!f(input),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=r.length;for(i=0;i<o;i+=1)t=r[i],n=n||d(input,t);return e&&n}function Ki(input){var t=c(input),e=!1;return t&&(e=0===input.filter(function(t){return!v(t)&&Hi(input)}).length),t&&e}function Zi(input){var i,t,e=h(input)&&!f(input),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(i=0;i<r.length;i+=1)t=r[i],n=n||d(input,t);return e&&n}function Ji(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Qi(time,t){1===arguments.length&&(arguments[0]?qi(arguments[0])?(time=arguments[0],t=void 0):Zi(arguments[0])&&(t=arguments[0],time=void 0):(time=void 0,t=void 0));var e=time||ai(),n=Ci(e,this).startOf("day"),r=o.calendarFormat(this,n)||"sameElse",output=t&&(R(t[r])?t[r].call(this,e):t[r]);return this.format(output||this.localeData().calendar(r,this,ai(e)))}function er(){return new O(this)}function nr(input,t){var e=k(input)?input:ai(input);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=ht(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())}function ir(input,t){var e=k(input)?input:ai(input);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=ht(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())}function rr(t,e,n,r){var o=k(t)?t:ai(t),l=k(e)?e:ai(e);return!!(this.isValid()&&o.isValid()&&l.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(l,n):!this.isAfter(l,n))}function ar(input,t){var e,n=k(input)?input:ai(input);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ht(t)||"millisecond")?this.valueOf()===n.valueOf():(e=n.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))}function or(input,t){return this.isSame(input,t)||this.isAfter(input,t)}function sr(input,t){return this.isSame(input,t)||this.isBefore(input,t)}function lr(input,t,e){var n,r,output;if(!this.isValid())return NaN;if(!(n=Ci(input,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=ht(t)){case"year":output=cr(this,n)/12;break;case"month":output=cr(this,n);break;case"quarter":output=cr(this,n)/3;break;case"second":output=(this-n)/1e3;break;case"minute":output=(this-n)/6e4;break;case"hour":output=(this-n)/36e5;break;case"day":output=(this-n-r)/864e5;break;case"week":output=(this-n-r)/6048e5;break;default:output=this-n}return e?output:$t(output)}function cr(a,b){if(a.date()<b.date())return-cr(b,a);var t=12*(b.year()-a.year())+(b.month()-a.month()),e=a.clone().add(t,"months");return-(t+(b-e<0?(b-e)/(e-a.clone().add(t-1,"months")):(b-e)/(a.clone().add(t+1,"months")-e)))||0}function ur(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dr(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?Z(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Z(n,"Z")):Z(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function pr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,o="moment",l="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",l="Z"),t="["+o+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=l+'[")]',this.format(t+e+n+r)}function fr(t){t||(t=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var output=Z(this,t);return this.localeData().postformat(output)}function gr(time,t){return this.isValid()&&(k(time)&&time.isValid()||ai(time).isValid())?ji({to:this,from:time}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mr(t){return this.from(ai(),t)}function vr(time,t){return this.isValid()&&(k(time)&&time.isValid()||ai(time).isValid())?ji({from:this,to:time}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yr(t){return this.to(ai(),t)}function _r(t){var e;return void 0===t?this._locale._abbr:(null!=(e=En(t))&&(this._locale=e),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var wr=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function xr(){return this._locale}var Sr=1e3,Cr=60*Sr,Tr=60*Cr,Mr=3506328*Tr;function Pr(t,e){return(t%e+e)%e}function Er(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-Mr:new Date(t,e,n).valueOf()}function Or(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-Mr:Date.UTC(t,e,n)}function kr(t){var time,e;if(void 0===(t=ht(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?Or:Er,t){case"year":time=e(this.year(),0,1);break;case"quarter":time=e(this.year(),this.month()-this.month()%3,1);break;case"month":time=e(this.year(),this.month(),1);break;case"week":time=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":time=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":time=e(this.year(),this.month(),this.date());break;case"hour":time=this._d.valueOf(),time-=Pr(time+(this._isUTC?0:this.utcOffset()*Cr),Tr);break;case"minute":time=this._d.valueOf(),time-=Pr(time,Cr);break;case"second":time=this._d.valueOf(),time-=Pr(time,Sr)}return this._d.setTime(time),o.updateOffset(this,!0),this}function Ar(t){var time,e;if(void 0===(t=ht(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?Or:Er,t){case"year":time=e(this.year()+1,0,1)-1;break;case"quarter":time=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":time=e(this.year(),this.month()+1,1)-1;break;case"week":time=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":time=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":time=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":time=this._d.valueOf(),time+=Tr-Pr(time+(this._isUTC?0:this.utcOffset()*Cr),Tr)-1;break;case"minute":time=this._d.valueOf(),time+=Cr-Pr(time,Cr)-1;break;case"second":time=this._d.valueOf(),time+=Sr-Pr(time,Sr)-1}return this._d.setTime(time),o.updateOffset(this,!0),this}function Dr(){return this._d.valueOf()-6e4*(this._offset||0)}function Ir(){return Math.floor(this.valueOf()/1e3)}function zr(){return new Date(this.valueOf())}function Fr(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Rr(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Nr(){return this.isValid()?this.toISOString():null}function Lr(){return C(this)}function jr(){return _({},S(this))}function $r(){return S(this).overflow}function Gr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Yr(t,e){var i,n,r,l=this._eras||En("en")._eras;for(i=0,n=l.length;i<n;++i)switch("string"==typeof l[i].since&&(r=o(l[i].since).startOf("day"),l[i].since=r.valueOf()),typeof l[i].until){case"undefined":l[i].until=1/0;break;case"string":r=o(l[i].until).startOf("day").valueOf(),l[i].until=r.valueOf()}return l}function Vr(t,e,n){var i,r,o,abbr,l,c=this.eras();for(t=t.toUpperCase(),i=0,r=c.length;i<r;++i)if(o=c[i].name.toUpperCase(),abbr=c[i].abbr.toUpperCase(),l=c[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(abbr===t)return c[i];break;case"NNNN":if(o===t)return c[i];break;case"NNNNN":if(l===t)return c[i]}else if([o,abbr,l].indexOf(t)>=0)return c[i]}function Br(t,e){var n=t.since<=t.until?1:-1;return void 0===e?o(t.since).year():o(t.since).year()+(e-t.offset)*n}function Wr(){var i,t,e,n=this.localeData().eras();for(i=0,t=n.length;i<t;++i){if(e=this.clone().startOf("day").valueOf(),n[i].since<=e&&e<=n[i].until)return n[i].name;if(n[i].until<=e&&e<=n[i].since)return n[i].name}return""}function Ur(){var i,t,e,n=this.localeData().eras();for(i=0,t=n.length;i<t;++i){if(e=this.clone().startOf("day").valueOf(),n[i].since<=e&&e<=n[i].until)return n[i].narrow;if(n[i].until<=e&&e<=n[i].since)return n[i].narrow}return""}function Hr(){var i,t,e,n=this.localeData().eras();for(i=0,t=n.length;i<t;++i){if(e=this.clone().startOf("day").valueOf(),n[i].since<=e&&e<=n[i].until)return n[i].abbr;if(n[i].until<=e&&e<=n[i].since)return n[i].abbr}return""}function qr(){var i,t,e,n,r=this.localeData().eras();for(i=0,t=r.length;i<t;++i)if(e=r[i].since<=r[i].until?1:-1,n=this.clone().startOf("day").valueOf(),r[i].since<=n&&n<=r[i].until||r[i].until<=n&&n<=r[i].since)return(this.year()-o(r[i].since).year())*e+r[i].offset;return this.year()}function Xr(t){return d(this,"_erasNameRegex")||na.call(this),t?this._erasNameRegex:this._erasRegex}function Kr(t){return d(this,"_erasAbbrRegex")||na.call(this),t?this._erasAbbrRegex:this._erasRegex}function Zr(t){return d(this,"_erasNarrowRegex")||na.call(this),t?this._erasNarrowRegex:this._erasRegex}function Jr(t,e){return e.erasAbbrRegex(t)}function Qr(t,e){return e.erasNameRegex(t)}function ta(t,e){return e.erasNarrowRegex(t)}function ea(t,e){return e._eraYearOrdinalRegex||Et}function na(){var i,t,e,n,r,o=[],l=[],c=[],h=[],d=this.eras();for(i=0,t=d.length;i<t;++i)e=jt(d[i].name),n=jt(d[i].abbr),r=jt(d[i].narrow),l.push(e),o.push(n),c.push(r),h.push(e),h.push(n),h.push(r);this._erasRegex=new RegExp("^("+h.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+l.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+c.join("|")+")","i")}function ia(t,e){H(0,[t,t.length],0,e)}function ra(input){return ua.call(this,input,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function aa(input){return ua.call(this,input,this.isoWeek(),this.isoWeekday(),1,4)}function oa(){return Ie(this.year(),1,4)}function sa(){return Ie(this.isoWeekYear(),1,4)}function la(){var t=this.localeData()._week;return Ie(this.year(),t.dow,t.doy)}function ca(){var t=this.localeData()._week;return Ie(this.weekYear(),t.dow,t.doy)}function ua(input,t,e,n,r){var o;return null==input?De(this,n,r).year:(t>(o=Ie(input,n,r))&&(t=o),ha.call(this,input,t,e,n,r))}function ha(t,e,n,r,o){var l=Ae(t,e,n,r,o),c=Oe(l.year,0,l.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}function da(input){return null==input?Math.ceil((this.month()+1)/3):this.month(3*(input-1)+this.month()%3)}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Rt("N",Jr),Rt("NN",Jr),Rt("NNN",Jr),Rt("NNNN",Qr),Rt("NNNNN",ta),Vt(["N","NN","NNN","NNNN","NNNNN"],function(input,t,e,n){var r=e._locale.erasParse(input,n,e._strict);r?S(e).era=r:S(e).invalidEra=input}),Rt("y",Et),Rt("yy",Et),Rt("yyy",Et),Rt("yyyy",Et),Rt("yo",ea),Vt(["y","yy","yyy","yyyy"],Ht),Vt(["yo"],function(input,t,e,n){var r;e._locale._eraYearOrdinalRegex&&(r=input.match(e._locale._eraYearOrdinalRegex)),e._locale.eraYearOrdinalParse?t[Ht]=e._locale.eraYearOrdinalParse(input,r):t[Ht]=parseInt(input,10)}),H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ia("gggg","weekYear"),ia("ggggg","weekYear"),ia("GGGG","isoWeekYear"),ia("GGGGG","isoWeekYear"),Rt("G",Ot),Rt("g",Ot),Rt("GG",xt,yt),Rt("gg",xt,yt),Rt("GGGG",Mt,_t),Rt("gggg",Mt,_t),Rt("GGGGG",Pt,wt),Rt("ggggg",Pt,wt),Bt(["gggg","ggggg","GGGG","GGGGG"],function(input,t,e,n){t[n.substr(0,2)]=Gt(input)}),Bt(["gg","GG"],function(input,t,e,n){t[n]=o.parseTwoDigitYear(input)}),H("Q",0,"Qo","quarter"),Rt("Q",vt),Vt("Q",function(input,t){t[qt]=3*(Gt(input)-1)}),H("D",["DD",2],"Do","date"),Rt("D",xt,zt),Rt("DD",xt,yt),Rt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Vt(["D","DD"],Xt),Vt("Do",function(input,t){t[Xt]=Gt(input.match(xt)[0])});var pa=oe("Date",!0);function fa(input){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==input?t:this.add(input-t,"d")}H("DDD",["DDDD",3],"DDDo","dayOfYear"),Rt("DDD",Tt),Rt("DDDD",bt),Vt(["DDD","DDDD"],function(input,t,e){e._dayOfYear=Gt(input)}),H("m",["mm",2],0,"minute"),Rt("m",xt,Ft),Rt("mm",xt,yt),Vt(["m","mm"],Zt);var ga=oe("Minutes",!1);H("s",["ss",2],0,"second"),Rt("s",xt,Ft),Rt("ss",xt,yt),Vt(["s","ss"],Jt);var ma,va,ya=oe("Seconds",!1);for(H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Rt("S",Tt,vt),Rt("SS",Tt,yt),Rt("SSS",Tt,bt),ma="SSSS";ma.length<=9;ma+="S")Rt(ma,Et);function ba(input,t){t[Qt]=Gt(1e3*("0."+input))}for(ma="S";ma.length<=9;ma+="S")Vt(ma,ba);function _a(){return this._isUTC?"UTC":""}function wa(){return this._isUTC?"Coordinated Universal Time":""}va=oe("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var xa=O.prototype;function Sa(input){return ai(1e3*input)}function Ca(){return ai.apply(null,arguments).parseZone()}function Ta(t){return t}xa.add=Wi,xa.calendar=Qi,xa.clone=er,xa.diff=lr,xa.endOf=Ar,xa.format=fr,xa.from=gr,xa.fromNow=mr,xa.to=vr,xa.toNow=yr,xa.get=ce,xa.invalidAt=$r,xa.isAfter=nr,xa.isBefore=ir,xa.isBetween=rr,xa.isSame=ar,xa.isSameOrAfter=or,xa.isSameOrBefore=sr,xa.isValid=Lr,xa.lang=wr,xa.locale=_r,xa.localeData=xr,xa.max=si,xa.min=oi,xa.parsingFlags=jr,xa.set=ue,xa.startOf=kr,xa.subtract=Ui,xa.toArray=Fr,xa.toObject=Rr,xa.toDate=zr,xa.toISOString=dr,xa.inspect=pr,"undefined"!=typeof Symbol&&null!=Symbol.for&&(xa[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),xa.toJSON=Nr,xa.toString=ur,xa.unix=Ir,xa.valueOf=Dr,xa.creationData=Gr,xa.eraName=Wr,xa.eraNarrow=Ur,xa.eraAbbr=Hr,xa.eraYear=qr,xa.year=re,xa.isLeapYear=ae,xa.weekYear=ra,xa.isoWeekYear=aa,xa.quarter=xa.quarters=da,xa.month=Se,xa.daysInMonth=Ce,xa.week=xa.weeks=Le,xa.isoWeek=xa.isoWeeks=je,xa.weeksInYear=la,xa.weeksInWeekYear=ca,xa.isoWeeksInYear=oa,xa.isoWeeksInISOWeekYear=sa,xa.date=pa,xa.day=xa.days=tn,xa.weekday=en,xa.isoWeekday=nn,xa.dayOfYear=fa,xa.hour=xa.hours=fn,xa.minute=xa.minutes=ga,xa.second=xa.seconds=ya,xa.millisecond=xa.milliseconds=va,xa.utcOffset=Mi,xa.utc=Ei,xa.local=Oi,xa.parseZone=ki,xa.hasAlignedHourOffset=Ai,xa.isDST=Di,xa.isLocal=zi,xa.isUtcOffset=Fi,xa.isUtc=Ri,xa.isUTC=Ri,xa.zoneAbbr=_a,xa.zoneName=wa,xa.dates=D("dates accessor is deprecated. Use date instead.",pa),xa.months=D("months accessor is deprecated. Use month instead",Se),xa.years=D("years accessor is deprecated. Use year instead",re),xa.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Pi),xa.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ii);var Ma=j.prototype;function Pa(t,e,n,r){var o=En(),l=w().set(r,e);return o[n](l,t)}function Ea(t,e,n){if(v(t)&&(e=t,t=void 0),t=t||"",null!=e)return Pa(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Pa(t,i,n,"month");return r}function Oa(t,e,n,r){"boolean"==typeof t?(v(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,v(e)&&(n=e,e=void 0),e=e||"");var i,o=En(),l=t?o._week.dow:0,c=[];if(null!=n)return Pa(e,(n+l)%7,r,"day");for(i=0;i<7;i++)c[i]=Pa(e,(i+l)%7,r,"day");return c}function ka(t,e){return Ea(t,e,"months")}function Aa(t,e){return Ea(t,e,"monthsShort")}function Da(t,e,n){return Oa(t,e,n,"weekdays")}function Ia(t,e,n){return Oa(t,e,n,"weekdaysShort")}function za(t,e,n){return Oa(t,e,n,"weekdaysMin")}Ma.calendar=G,Ma.longDateFormat=tt,Ma.invalidDate=nt,Ma.ordinal=ot,Ma.preparse=Ta,Ma.postformat=Ta,Ma.relativeTime=lt,Ma.pastFuture=ct,Ma.set=N,Ma.eras=Yr,Ma.erasParse=Vr,Ma.erasConvertYear=Br,Ma.erasAbbrRegex=Kr,Ma.erasNameRegex=Xr,Ma.erasNarrowRegex=Zr,Ma.months=ye,Ma.monthsShort=be,Ma.monthsParse=we,Ma.monthsRegex=Me,Ma.monthsShortRegex=Te,Ma.week=ze,Ma.firstDayOfYear=Ne,Ma.firstDayOfWeek=Re,Ma.weekdays=Xe,Ma.weekdaysMin=Ze,Ma.weekdaysShort=Ke,Ma.weekdaysParse=Qe,Ma.weekdaysRegex=rn,Ma.weekdaysShortRegex=an,Ma.weekdaysMinRegex=on,Ma.isPM=dn,Ma.meridiem=gn,Tn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var b=t%10;return t+(1===Gt(t%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")}}),o.lang=D("moment.lang is deprecated. Use moment.locale instead.",Tn),o.langData=D("moment.langData is deprecated. Use moment.localeData instead.",En);var Fa=Math.abs;function Ra(){var data=this._data;return this._milliseconds=Fa(this._milliseconds),this._days=Fa(this._days),this._months=Fa(this._months),data.milliseconds=Fa(data.milliseconds),data.seconds=Fa(data.seconds),data.minutes=Fa(data.minutes),data.hours=Fa(data.hours),data.months=Fa(data.months),data.years=Fa(data.years),this}function Na(t,input,e,n){var r=ji(input,e);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function La(input,t){return Na(this,input,t,1)}function ja(input,t){return Na(this,input,t,-1)}function $a(t){return t<0?Math.floor(t):Math.ceil(t)}function Ga(){var t,e,n,r,o,l=this._milliseconds,c=this._days,h=this._months,data=this._data;return l>=0&&c>=0&&h>=0||l<=0&&c<=0&&h<=0||(l+=864e5*$a(Va(h)+c),c=0,h=0),data.milliseconds=l%1e3,t=$t(l/1e3),data.seconds=t%60,e=$t(t/60),data.minutes=e%60,n=$t(e/60),data.hours=n%24,c+=$t(n/24),h+=o=$t(Ya(c)),c-=$a(Va(o)),r=$t(h/12),h%=12,data.days=c,data.months=h,data.years=r,this}function Ya(t){return 4800*t/146097}function Va(t){return 146097*t/4800}function Ba(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=ht(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Ya(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Va(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Wa(t){return function(){return this.as(t)}}var Ua=Wa("ms"),Ha=Wa("s"),qa=Wa("m"),Xa=Wa("h"),Ka=Wa("d"),Za=Wa("w"),Ja=Wa("M"),Qa=Wa("Q"),to=Wa("y"),eo=Ua;function no(){return ji(this)}function io(t){return t=ht(t),this.isValid()?this[t+"s"]():NaN}function ro(t){return function(){return this.isValid()?this._data[t]:NaN}}var ao=ro("milliseconds"),oo=ro("seconds"),so=ro("minutes"),lo=ro("hours"),co=ro("days"),uo=ro("months"),ho=ro("years");function po(){return $t(this.days()/7)}var fo=Math.round,go={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function mo(t,e,n,r,o){return o.relativeTime(e||1,!!n,t,r)}function vo(t,e,n,r){var o=ji(t).abs(),l=fo(o.as("s")),c=fo(o.as("m")),h=fo(o.as("h")),d=fo(o.as("d")),f=fo(o.as("M")),m=fo(o.as("w")),v=fo(o.as("y")),a=l<=n.ss&&["s",l]||l<n.s&&["ss",l]||c<=1&&["m"]||c<n.m&&["mm",c]||h<=1&&["h"]||h<n.h&&["hh",h]||d<=1&&["d"]||d<n.d&&["dd",d];return null!=n.w&&(a=a||m<=1&&["w"]||m<n.w&&["ww",m]),(a=a||f<=1&&["M"]||f<n.M&&["MM",f]||v<=1&&["y"]||["yy",v])[2]=e,a[3]=+t>0,a[4]=r,mo.apply(null,a)}function yo(t){return void 0===t?fo:"function"==typeof t&&(fo=t,!0)}function bo(t,e){return void 0!==go[t]&&(void 0===e?go[t]:(go[t]=e,"s"===t&&(go.ss=e-1),!0))}function _o(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,output,r=!1,th=go;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(th=Object.assign({},go,e),null!=e.s&&null==e.ss&&(th.ss=e.s-1)),output=vo(this,!r,th,n=this.localeData()),r&&(output=n.pastFuture(+this,output)),n.postformat(
2output)}var wo=Math.abs;function xo(t){return(t>0)-(t<0)||+t}function So(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,s,r,o,l,c,h=wo(this._milliseconds)/1e3,d=wo(this._days),f=wo(this._months),m=this.asSeconds();return m?(t=$t(h/60),e=$t(t/60),h%=60,t%=60,n=$t(f/12),f%=12,s=h?h.toFixed(3).replace(/\.?0+$/,""):"",r=m<0?"-":"",o=xo(this._months)!==xo(m)?"-":"",l=xo(this._days)!==xo(m)?"-":"",c=xo(this._milliseconds)!==xo(m)?"-":"",r+"P"+(n?o+n+"Y":"")+(f?o+f+"M":"")+(d?l+d+"D":"")+(e||t||h?"T":"")+(e?c+e+"H":"")+(t?c+t+"M":"")+(h?c+s+"S":"")):"P0D"}var Co=vi.prototype;return Co.isValid=gi,Co.abs=Ra,Co.add=La,Co.subtract=ja,Co.as=Ba,Co.asMilliseconds=Ua,Co.asSeconds=Ha,Co.asMinutes=qa,Co.asHours=Xa,Co.asDays=Ka,Co.asWeeks=Za,Co.asMonths=Ja,Co.asQuarters=Qa,Co.asYears=to,Co.valueOf=eo,Co._bubble=Ga,Co.clone=no,Co.get=io,Co.milliseconds=ao,Co.seconds=oo,Co.minutes=so,Co.hours=lo,Co.days=co,Co.weeks=po,Co.months=uo,Co.years=ho,Co.humanize=_o,Co.toISOString=So,Co.toString=So,Co.toJSON=So,Co.locale=_r,Co.localeData=xr,Co.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",So),Co.lang=wr,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Rt("x",Ot),Rt("X",Dt),Vt("X",function(input,t,e){e._d=new Date(1e3*parseFloat(input))}),Vt("x",function(input,t,e){e._d=new Date(Gt(input))}),o.version="2.30.1",l(ai),o.fn=xa,o.min=ui,o.max=hi,o.now=di,o.utc=w,o.unix=Sa,o.months=ka,o.isDate=y,o.locale=Tn,o.invalid=T,o.duration=ji,o.isMoment=k,o.weekdays=Da,o.parseZone=Ca,o.localeData=En,o.isDuration=yi,o.monthsShort=Aa,o.weekdaysMin=za,o.defineLocale=Mn,o.updateLocale=Pn,o.locales=On,o.weekdaysShort=Ia,o.normalizeUnits=ht,o.relativeTimeRounding=yo,o.relativeTimeThreshold=bo,o.calendarFormat=Ji,o.prototype=xa,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(501)(t))},86:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l,c=n(12),h=n(264),d=n(9),f=n(7),m=n(11);var v=function(){function t(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var e=(t||{}).pixelRatio||d.Konva.pixelRatio||function(){if(l)return l;var t=c.Util.createCanvasElement().getContext("2d");return l=(d.Konva._global.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}();this.pixelRatio=e,this._canvas=c.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}return t.prototype.getContext=function(){return this.context},t.prototype.getPixelRatio=function(){return this.pixelRatio},t.prototype.setPixelRatio=function(t){var e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)},t.prototype.setWidth=function(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var e=this.pixelRatio;this.getContext()._context.scale(e,e)},t.prototype.setHeight=function(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var e=this.pixelRatio;this.getContext()._context.scale(e,e)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.setSize=function(t,e){this.setWidth(t||0),this.setHeight(e||0)},t.prototype.toDataURL=function(t,e){try{return this._canvas.toDataURL(t,e)}catch(t){try{return this._canvas.toDataURL()}catch(t){return c.Util.error("Unable to get data URL. "+t.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}},t}();e.Canvas=v,f.Factory.addGetterSetter(v,"pixelRatio",void 0,m.getNumberValidator());var y=function(t){function e(e){void 0===e&&(e={width:0,height:0});var n=t.call(this,e)||this;return n.context=new h.SceneContext(n),n.setSize(e.width,e.height),n}return o(e,t),e}(v);e.SceneCanvas=y;var _=function(t){function e(e){void 0===e&&(e={width:0,height:0});var n=t.call(this,e)||this;return n.hitCanvas=!0,n.context=new h.HitContext(n),n.setSize(e.width,e.height),n}return o(e,t),e}(v);e.HitCanvas=_},9:function(t,e,n){"use strict";
2(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=Math.PI/180;var r=function(t){var e=t.indexOf("msie ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("trident/")>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var r=t.indexOf("edge/");return r>0&&parseInt(t.substring(r+5,t.indexOf(".",r)),10)};e._parseUA=function(t){var e=t.toLowerCase(),n=/(chrome)[ /]([\w.]+)/.exec(e)||/(webkit)[ /]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],o=!!t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i),l=!!t.match(/IEMobile/i);return{browser:n[1]||"",version:n[2]||"0",isIE:r(e),mobile:o,ieMobile:l}},e.glob=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:{},e.Konva={_global:e.glob,version:"6.0.0",isBrowser:"undefined"!=typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window)),isUnminified:/param/.test(function(param){}.toString()),dblClickWindow:400,getAngle:function(t){return e.Konva.angleDeg?t*n:t},enableTrace:!1,_pointerEventsEnabled:!1,hitOnDragEnabled:!1,captureTouchEventsEnabled:!1,listenClickTap:!1,inDblClickWindow:!1,pixelRatio:void 0,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging:function(){return e.Konva.DD.isDragging},isDragReady:function(){return!!e.Konva.DD.node},UA:e._parseUA(e.glob.navigator&&e.glob.navigator.userAgent||""),document:e.glob.document,_injectGlobal:function(t){e.glob.Konva=t},_parseUA:e._parseUA},e._NODES_REGISTRY={},e._registerNode=function(t){e._NODES_REGISTRY[t.prototype.getClassName()]=t,e.Konva[t.prototype.getClassName()]=t}}).call(this,n(48))},91:function(t,e,n){"use strict";var r=new Map;var o="undefined"==typeof window;function l(component,t){return Object.assign({mixins:[{beforeCreate:function(){this.cleanupHandlers=[];var t=function(){var t=function(){},e=new Promise(function(e){t=e});return{hydrate:t,hydrationPromise:e}}(),e=t.hydrate,n=t.hydrationPromise;this.Nonce=function(t){var component=t.component,e=t.hydrationPromise;return o?component:function(){return e.then(function(){return function(t){return"function"==typeof t}(t=component)?t().then(function(t){return t.default}):t;var t})}}({component:component,hydrationPromise:n}),this.hydrate=e,this.hydrationPromise=n},beforeDestroy:function(){this.cleanup()},mounted:function(){var t=this;if(this.$el.nodeType!==Node.COMMENT_NODE){if(!this.never){if(this.whenVisible){var e=function(t){if("undefined"==typeof IntersectionObserver)return null;var e=JSON.stringify(t);if(r.has(e))return r.get(e);var n=new IntersectionObserver(function(t){t.forEach(function(t){(t.isIntersecting||t.intersectionRatio>0)&&t.target.hydrate&&t.target.hydrate()})},t);return r.set(e,n),n}(!0!==this.whenVisible?this.whenVisible:void 0);if(!e)return void this.hydrate();this.$el.hydrate=this.hydrate;var n=function(){return e.unobserve(t.$el)};return this.cleanupHandlers.push(n),this.hydrationPromise.then(n),void e.observe(this.$el)}if(this.whenIdle){if(!("requestIdleCallback"in window)||!("requestAnimationFrame"in window))return void this.hydrate();var o=requestIdleCallback(function(){requestAnimationFrame(t.hydrate)},{timeout:this.idleTimeout}),l=function(){return cancelIdleCallback(o)};this.cleanupHandlers.push(l),this.hydrationPromise.then(l)}if(this.interactionEvents&&this.interactionEvents.length){var c={capture:!0,once:!0,passive:!0};this.interactionEvents.forEach(function(e){t.$el.addEventListener(e,t.hydrate,c);t.cleanupHandlers.push(function(){t.$el.removeEventListener(e,t.hydrate,c)})})}}}else this.hydrate()},methods:{cleanup:function(){this.cleanupHandlers.forEach(function(t){return t()})}},render:function(t){return t(this.Nonce,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}}]},t)}var c=l({render:function(){return this.$slots.default}},{props:{idleTimeout:{default:2e3,type:Number},never:{type:Boolean},onInteraction:{type:[Array,Boolean,String]},triggerHydration:{default:!1,type:Boolean},whenIdle:{type:Boolean},whenVisible:{type:[Boolean,Object]}},computed:{interactionEvents:function(){return this.onInteraction?!0===this.onInteraction?["focus"]:Array.isArray(this.onInteraction)?this.onInteraction:[this.onInteraction]:[]}},watch:{triggerHydration:{immediate:!0,handler:function(t){t&&this.hydrate()}}}});e.a=c}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.