diff --git a/asset-manifest.json b/asset-manifest.json index f9cf2b11..3417742c 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/planka/static/css/main.1b198654.css", - "main.js": "/planka/static/js/main.815881e3.js", + "main.js": "/planka/static/js/main.e49372c0.js", "static/js/801.9773e58e.chunk.js": "/planka/static/js/801.9773e58e.chunk.js", "static/js/467.d02e66c6.chunk.js": "/planka/static/js/467.d02e66c6.chunk.js", "static/js/514.592fb053.chunk.js": "/planka/static/js/514.592fb053.chunk.js", @@ -76,7 +76,7 @@ "static/media/plus-icon.svg": "/planka/static/media/plus-icon.e46c682424b8c98c4f7bd0f367a260c2.svg", "static/media/plus-math-icon.svg": "/planka/static/media/plus-math-icon.cfa58840e75860dcf79a0b21a1cca781.svg", "main.1b198654.css.map": "/planka/static/css/main.1b198654.css.map", - "main.815881e3.js.map": "/planka/static/js/main.815881e3.js.map", + "main.e49372c0.js.map": "/planka/static/js/main.e49372c0.js.map", "801.9773e58e.chunk.js.map": "/planka/static/js/801.9773e58e.chunk.js.map", "467.d02e66c6.chunk.js.map": "/planka/static/js/467.d02e66c6.chunk.js.map", "514.592fb053.chunk.js.map": "/planka/static/js/514.592fb053.chunk.js.map", @@ -94,6 +94,6 @@ }, "entrypoints": [ "static/css/main.1b198654.css", - "static/js/main.815881e3.js" + "static/js/main.e49372c0.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 02cbbd53..57898faa 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Planka
\ No newline at end of file +Planka
\ No newline at end of file diff --git a/index.yaml b/index.yaml deleted file mode 100644 index 777df1fd..00000000 --- a/index.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -entries: - planka: - - apiVersion: v2 - appVersion: 1.15.7 - created: "2024-03-12T19:44:54.93860666Z" - dependencies: - - alias: postgresql - condition: postgresql.enabled - name: postgresql - repository: https://charts.bitnami.com/bitnami - version: 12.5.1 - description: A Helm chart to deploy Planka and it's dependencies. - digest: fbff13b3ec16ff496ed071205374e46c52cf4e518e3f06b54080abf02b550587 - name: planka - type: application - urls: - - https://github.com/plankanban/planka/releases/download/planka-0.1.18/planka-0.1.18.tgz - version: 0.1.18 -generated: "2024-03-12T19:44:54.938624251Z" diff --git a/static/js/main.815881e3.js b/static/js/main.e49372c0.js similarity index 75% rename from static/js/main.815881e3.js rename to static/js/main.e49372c0.js index 71be88e9..1a78f518 100644 --- a/static/js/main.815881e3.js +++ b/static/js/main.e49372c0.js @@ -1,3 +1,3 @@ -/*! For license information please see main.815881e3.js.LICENSE.txt */ -!function(){var e={714:function(e,t,n){"use strict";n.r(t),t.default={format:{date:"M/d/yyyy",time:"p",dateTime:"$t(format:date) $t(format:time)",longDate:"MMM d",longDateTime:"MMMM d 'at' p"},translation:{common:{aboutPlanka:"About Planka",account:"Account",actions:"Actions",addAttachment_title:"Add Attachment",addComment:"Add comment",addManager_title:"Add Manager",addMember_title:"Add Member",addUser_title:"Add User",administrator:"Administrator",all:"All",allChangesWillBeAutomaticallySavedAfterConnectionRestored:"All changes will be automatically saved
after connection restored",areYouSureYouWantToDeleteThisAttachment:"Are you sure you want to delete this attachment?",areYouSureYouWantToDeleteThisBoard:"Are you sure you want to delete this board?",areYouSureYouWantToDeleteThisCard:"Are you sure you want to delete this card?",areYouSureYouWantToDeleteThisComment:"Are you sure you want to delete this comment?",areYouSureYouWantToDeleteThisLabel:"Are you sure you want to delete this label?",areYouSureYouWantToDeleteThisList:"Are you sure you want to delete this list?",areYouSureYouWantToDeleteThisProject:"Are you sure you want to delete this project?",areYouSureYouWantToDeleteThisTask:"Are you sure you want to delete this task?",areYouSureYouWantToDeleteThisUser:"Are you sure you want to delete this user?",areYouSureYouWantToLeaveBoard:"Are you sure you want to leave the board?",areYouSureYouWantToLeaveProject:"Are you sure you want to leave the project?",areYouSureYouWantToRemoveThisManagerFromProject:"Are you sure you want to remove this manager from the project?",areYouSureYouWantToRemoveThisMemberFromBoard:"Are you sure you want to remove this member from the board?",attachment:"Attachment",attachments:"Attachments",authentication:"Authentication",background:"Background",board:"Board",boardNotFound_title:"Board Not Found",canComment:"Can comment",canEditContentOfBoard:"Can edit the content of the board",canOnlyViewBoard:"Can only view the board",cardActions_title:"Card Actions",cardNotFound_title:"Card Not Found",cardOrActionAreDeleted:"Card or action are deleted",color:"Color",createBoard_title:"Create Board",createLabel_title:"Create Label",createNewOneOrSelectExistingOne:"Create a new one or select
an existing one",createProject_title:"Create Project",createTextFile_title:"Create Text File",currentPassword:"Current password",dangerZone_title:"Danger Zone",date:"Date",dueDate_title:"Due Date",deleteAttachment_title:"Delete Attachment",deleteBoard_title:"Delete Board",deleteCard_title:"Delete Card",deleteComment_title:"Delete Comment",deleteLabel_title:"Delete Label",deleteList_title:"Delete List",deleteProject_title:"Delete Project",deleteTask_title:"Delete Task",deleteUser_title:"Delete User",description:"Description",detectAutomatically:"Detect automatically",dropFileToUpload:"Drop file to upload",editor:"Editor",editAttachment_title:"Edit Attachment",editAvatar_title:"Edit Avatar",editBoard_title:"Edit Board",editDueDate_title:"Edit Due Date",editEmail_title:"Edit E-mail",editInformation_title:"Edit Information",editLabel_title:"Edit Label",editPassword_title:"Edit Password",editPermissions_title:"Edit Permissions",editTimer_title:"Edit Stopwatch",editUsername_title:"Edit Username",email:"E-mail",emailAlreadyInUse:"E-mail already in use",enterCardTitle:"Enter card title...",enterDescription:"Enter description...",enterFilename:"Enter filename",enterListTitle:"Enter list title...",enterProjectTitle:"Enter project title",enterTaskDescription:"Enter task description...",filterByLabels_title:"Filter By Labels",filterByMembers_title:"Filter By Members",fromComputer_title:"From Computer",fromTrello:"From Trello",general:"General",hours:"Hours",importBoard_title:"Import Board",invalidCurrentPassword:"Invalid current password",labels:"Labels",language:"Language",leaveBoard_title:"Leave Board",leaveProject_title:"Leave Project",list:"List",listActions_title:"List Actions",managers:"Managers",members:"Members",minutes:"Minutes",moveCard_title:"Move Card",name:"Name",newEmail:"New e-mail",newPassword:"New password",newUsername:"New username",noConnectionToServer:"No connection to server",noBoards:"No boards",noLists:"No lists",noProjects:"No projects",notifications:"Notifications",noUnreadNotifications:"No unread notifications",openBoard_title:"Open Board",optional_inline:"optional",organization:"Organization",phone:"Phone",preferences:"Preferences",pressPasteShortcutToAddAttachmentFromClipboard:"Tip: press Ctrl-V (Cmd-V on Mac) to add an attachment from the clipboard",project:"Project",projectNotFound_title:"Project Not Found",removeManager_title:"Remove Manager",removeMember_title:"Remove Member",searchLabels:"Search labels...",searchMembers:"Search members...",searchUsers:"Search users...",seconds:"Seconds",selectBoard:"Select board",selectList:"Select list",selectPermissions_title:"Select Permissions",selectProject:"Select project",settings:"Settings",subscribeToMyOwnCardsByDefault:"Subscribe to my own cards by default",taskActions_title:"Task Actions",tasks:"Tasks",thereIsNoPreviewAvailableForThisAttachment:"There is no preview available for this attachment",time:"Time",timer:"Stopwatch",title:"Title",userActions_title:"User Actions",userAddedThisCardToList:"<0>{{user}}<1> added this card to {{list}}",userLeftNewCommentToCard:"{{user}} left a new comment \xab{{comment}}\xbb to <2>{{card}}",userMovedCardFromListToList:"{{user}} moved <2>{{card}} from {{fromList}} to {{toList}}",userMovedThisCardFromListToList:"<0>{{user}}<1> moved this card from {{fromList}} to {{toList}}",username:"Username",usernameAlreadyInUse:"Username already in use",users:"Users",viewer:"Viewer",writeComment:"Write a comment..."},action:{addAnotherCard:"Add another card",addAnotherList:"Add another list",addAnotherTask:"Add another task",addCard:"Add card",addCard_title:"Add Card",addComment:"Add comment",addList:"Add list",addMember:"Add member",addMoreDetailedDescription:"Add more detailed description",addTask:"Add task",addToCard:"Add to card",addUser:"Add user",createBoard:"Create board",createFile:"Create file",createLabel:"Create label",createNewLabel:"Create new label",createProject:"Create project",delete:"Delete",deleteAttachment:"Delete attachment",deleteAvatar:"Delete avatar",deleteBoard:"Delete board",deleteCard:"Delete card",deleteCard_title:"Delete Card",deleteComment:"Delete comment",deleteImage:"Delete image",deleteLabel:"Delete label",deleteList:"Delete list",deleteList_title:"Delete List",deleteProject:"Delete project",deleteProject_title:"Delete Project",deleteTask:"Delete task",deleteTask_title:"Delete Task",deleteUser:"Delete user",edit:"Edit",editDueDate_title:"Edit Due Date",editDescription_title:"Edit Description",editEmail_title:"Edit E-mail",editInformation_title:"Edit Information",editPassword_title:"Edit Password",editPermissions:"Edit permissions",editTimer_title:"Edit Stopwatch",editTitle_title:"Edit Title",editUsername_title:"Edit Username",hideDetails:"Hide details",import:"Import",leaveBoard:"Leave board",leaveProject:"Leave project",logOut_title:"Log Out",makeCover_title:"Make Cover",move:"Move",moveCard_title:"Move Card",remove:"Remove",removeBackground:"Remove background",removeCover_title:"Remove Cover",removeFromBoard:"Remove from board",removeFromProject:"Remove from project",removeManager:"Remove manager",removeMember:"Remove member",save:"Save",showAllAttachments:"Show all attachments ({{hidden}} hidden)",showDetails:"Show details",showFewerAttachments:"Show fewer attachments",start:"Start",stop:"Stop",subscribe:"Subscribe",unsubscribe:"Unsubscribe",uploadNewAvatar:"Upload new avatar",uploadNewImage:"Upload new image"}}}},5142:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,a=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,k=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case u:case d:case i:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case f:case l:return e;default:return t}}case r:return t}}}function x(e){return w(e)===d}t.isForwardRef=function(e){return w(e)===p}},3033:function(e,t,n){"use strict";e.exports=n(5142)},6630:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(776);n(2007);var r=n(2791);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n=0;a-=1)this.handlers[a].called||(this.handlers[a].called=!0,this.handlers[a](e));for(var r=n;r>=0;r-=1)this.handlers[r].called=!1}else(0,this.handlers[n])(e)}},{key:"hasHandlers",value:function(){return this.handlers.length>0}},{key:"removeHandlers",value:function(t){for(var n=[],a=this.handlers.length,r=0;r0;var t=this.handlerSets.get(e);return!!t&&t.hasHandlers()}},{key:"removeHandlers",value:function(t,n){var a=f(this.handlerSets);if(!a.has(t))return new e(this.poolName,a);var r=a.get(t).removeHandlers(n);return r.hasHandlers()?a.set(t,r):a.delete(t),new e(this.poolName,a)}}]),e}();c(y,"createByType",(function(e,t,n){var a=new Map;return a.set(t,new m(n)),new y(e,a)}));var v=function(){function e(t){var n=this;o(this,e),c(this,"handlers",new Map),c(this,"pools",new Map),c(this,"target",void 0),c(this,"createEmitter",(function(e){return function(t){n.pools.forEach((function(n){n.dispatchEvent(e,t)}))}})),this.target=t}return l(e,[{key:"addHandlers",value:function(e,t,n){if(this.pools.has(e)){var a=this.pools.get(e);this.pools.set(e,a.addHandlers(t,n))}else this.pools.set(e,y.createByType(e,t,n));this.handlers.has(t)||this.addTargetHandler(t)}},{key:"hasHandlers",value:function(){return this.handlers.size>0}},{key:"removeHandlers",value:function(e,t,n){if(this.pools.has(e)){var a=this.pools.get(e).removeHandlers(t,n);a.hasHandlers()?this.pools.set(e,a):this.pools.delete(e);var r=!1;this.pools.forEach((function(e){return r=r||e.hasHandlers(t)})),r||this.removeTargetHandler(t)}}},{key:"addTargetHandler",value:function(e){var t=this.createEmitter(e);this.handlers.set(e,t),this.target.addEventListener(e,t,!0)}},{key:"removeTargetHandler",value:function(e){this.handlers.has(e)&&(this.target.removeEventListener(e,this.handlers.get(e),!0),this.handlers.delete(e))}}]),e}(),k=function(){function e(){var t=this;o(this,e),c(this,"targets",new Map),c(this,"getTarget",(function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=b(e);if(t.targets.has(a))return t.targets.get(a);if(!n)return null;var r=new v(a);return t.targets.set(a,r),r})),c(this,"removeTarget",(function(e){t.targets.delete(b(e))}))}return l(e,[{key:"sub",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a.canUseDOM){var r=n.target,i=void 0===r?document:r,o=n.pool,s=void 0===o?"default":o;this.getTarget(i).addHandlers(s,e,g(t))}}},{key:"unsub",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a.canUseDOM){var r=n.target,i=void 0===r?document:r,o=n.pool,s=void 0===o?"default":o,l=this.getTarget(i,!1);l&&(l.removeHandlers(s,e,g(t)),l.hasHandlers()||this.removeTarget(i))}}}]),e}(),w=new k,x=function(e){function t(){return o(this,t),h(this,d(t).apply(this,arguments))}return u(t,r.PureComponent),l(t,[{key:"componentDidMount",value:function(){this.subscribe(this.props)}},{key:"componentDidUpdate",value:function(e){this.unsubscribe(e),this.subscribe(this.props)}},{key:"componentWillUnmount",value:function(){this.unsubscribe(this.props)}},{key:"subscribe",value:function(e){var t=e.name,n=e.on,a=e.pool,r=e.target;w.sub(t,n,{pool:a,target:r})}},{key:"unsubscribe",value:function(e){var t=e.name,n=e.on,a=e.pool,r=e.target;w.unsub(t,n,{pool:a,target:r})}},{key:"render",value:function(){return null}}]),t}();c(x,"defaultProps",{pool:"default",target:"document"}),x.propTypes={},t.instance=w,t.default=x},6775:function(e,t,n){"use strict";var a;a=n(6630),e.exports=a.default,e.exports.instance=a.instance},7186:function(e){function t(){}e.exports=function(e,n,a){var r=!1;return a=a||t,i.count=e,0===e?n():i;function i(e,t){if(i.count<=0)throw new Error("after called too many times");--i.count,e?(r=!0,n(e),n=a):0!==i.count||r||n(null,t)}}},9873:function(e){e.exports=function(e,t,n){var a=e.byteLength;if(t=t||0,n=n||a,e.slice)return e.slice(t,n);if(t<0&&(t+=a),n<0&&(n+=a),n>a&&(n=a),t>=a||t>=n||0===a)return new ArrayBuffer(0);for(var r=new Uint8Array(e),i=new Uint8Array(n-t),o=t,s=0;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},934:function(e,t){!function(e){"use strict";t.encode=function(t){var n,a=new Uint8Array(t),r=a.length,i="";for(n=0;n>2],i+=e[(3&a[n])<<4|a[n+1]>>4],i+=e[(15&a[n+1])<<2|a[n+2]>>6],i+=e[63&a[n+2]];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(t){var n,a,r,i,o,s=.75*t.length,l=t.length,c=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var u=new ArrayBuffer(s),d=new Uint8Array(u);for(n=0;n>4,d[c++]=(15&r)<<4|i>>2,d[c++]=(3&i)<<6|63&o;return u}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},5665:function(e){var t="undefined"!==typeof t?t:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!==typeof MSBlobBuilder?MSBlobBuilder:"undefined"!==typeof MozBlobBuilder&&MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),a=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),r=t&&t.prototype.append&&t.prototype.getBlob;function i(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e}))}function o(e,n){n=n||{};var a=new t;return i(e).forEach((function(e){a.append(e)})),n.type?a.getBlob(n.type):a.getBlob()}function s(e,t){return new Blob(i(e),t||{})}"undefined"!==typeof Blob&&(o.prototype=Blob.prototype,s.prototype=Blob.prototype),e.exports=n?a?Blob:s:r?o:void 0},1694:function(e,t){var n;!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,a=/[*+-]\s/;function r(e,n){var a=n.line,r=0,i=0,o=t.exec(e.getLine(a)),s=o[1];do{var l=a+(r+=1),c=e.getLine(l),u=t.exec(c);if(u){var d=u[1],p=parseInt(o[3],10)+r-i,h=parseInt(u[3],10),m=h;if(s!==d||isNaN(h)){if(s.length>d.length)return;if(s.lengthh&&(m=p+1),e.replaceRange(c.replace(t,d+m+u[4]+u[5]),{line:l,ch:0},{line:l,ch:c.length})}}while(u)}e.commands.newlineAndIndentContinueMarkdownList=function(i){if(i.getOption("disableInput"))return e.Pass;for(var o=i.listSelections(),s=[],l=0;l\s*$/.test(m),y=!/>\s*$/.test(m);(b||y)&&i.replaceRange("",{line:c.line,ch:0},{line:c.line,ch:c.ch+1}),s[l]="\n"}else{var v=f[1],k=f[5],w=!(a.test(f[2])||f[2].indexOf(">")>=0),x=w?parseInt(f[3],10)+1+f[4]:f[2].replace("x"," ");s[l]="\n"+v+x+k,w&&r(i,c)}}i.replaceSelections(s)}}(n(3668))},1357:function(e,t,n){!function(e){"use strict";e.overlayMode=function(t,n,a){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(a){return{base:e.copyState(t,a.base),overlay:e.copyState(n,a.overlay),basePos:a.basePos,baseCur:null,overlayPos:a.overlayPos,overlayCur:null}},token:function(e,r){return(e!=r.streamSeen||Math.min(r.basePos,r.overlayPos)u);d++){var p=e.getLine(c++);r=null==r?p:r+"\n"+p}l*=2,t.lastIndex=n.ch;var h=t.exec(r);if(h){var m=r.slice(0,h.index).split("\n"),f=h[0].split("\n"),g=n.line+m.length-1,b=m[m.length-1].length;return{from:a(g,b),to:a(g+f.length-1,1==f.length?b+f[0].length:f[f.length-1].length),match:h}}}}function c(e,t,n){for(var a,r=0;r<=e.length;){t.lastIndex=r;var i=t.exec(e);if(!i)break;var o=i.index+i[0].length;if(o>e.length-n)break;(!a||o>a.index+a[0].length)&&(a=i),r=i.index+1}return a}function u(e,t,n){t=i(t,"g");for(var r=n.line,o=n.ch,s=e.firstLine();r>=s;r--,o=-1){var l=e.getLine(r),u=c(l,t,o<0?0:l.length-o);if(u)return{from:a(r,u.index),to:a(r,u.index+u[0].length),match:u}}}function d(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var r,s=1,l=e.getLine(n.line).length-n.ch,d=n.line,p=e.firstLine();d>=p;){for(var h=0;h=p;h++){var m=e.getLine(d--);r=null==r?m:m+"\n"+r}s*=2;var f=c(r,t,l);if(f){var g=r.slice(0,f.index).split("\n"),b=f[0].split("\n"),y=d+g.length,v=g[g.length-1].length;return{from:a(y,v),to:a(y+b.length-1,1==b.length?v+b[0].length:b[b.length-1].length),match:f}}}}function p(e,t,n,a){if(e.length==t.length)return n;for(var r=0,i=n+Math.max(0,e.length-t.length);;){if(r==i)return r;var o=r+i>>1,s=a(e.slice(0,o)).length;if(s==n)return o;s>n?i=o:r=o+1}}function h(e,r,i,o){if(!r.length)return null;var s=o?t:n,l=s(r).split(/\r|\n\r?/);e:for(var c=i.line,u=i.ch,d=e.lastLine()+1-l.length;c<=d;c++,u=0){var h=e.getLine(c).slice(u),m=s(h);if(1==l.length){var f=m.indexOf(l[0]);if(-1==f)continue e;return i=p(h,m,f,s)+u,{from:a(c,p(h,m,f,s)+u),to:a(c,p(h,m,f+l[0].length,s)+u)}}var g=m.length-l[0].length;if(m.slice(g)==l[0]){for(var b=1;b=d;c--,u=-1){var h=e.getLine(c);u>-1&&(h=h.slice(0,u));var m=s(h);if(1==l.length){var f=m.lastIndexOf(l[0]);if(-1==f)continue e;return{from:a(c,p(h,m,f,s)),to:a(c,p(h,m,f+l[0].length,s))}}var g=l[l.length-1];if(m.slice(0,g.length)==g){var b=1;for(i=c-l.length+1;b(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var r=this.matches(t,n);if(this.afterEmptyMatch=r&&0==e.cmpPos(r.from,r.to),r)return this.pos=r,this.atOccurrence=!0,this.pos.match||!0;var i=a(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var r=e.splitLines(t);this.doc.replaceRange(r,this.pos.from,this.pos.to,n),this.pos.to=a(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new f(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new f(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var a=[],r=this.getSearchCursor(t,this.getCursor("from"),n);r.findNext()&&!(e.cmpPos(r.to(),this.getCursor("to"))>0);)a.push({anchor:r.from(),head:r.to()});a.length&&this.setSelections(a,0)}))}(n(3668))},4911:function(e,t,n){!function(e){"use strict";function t(e){e.state.markedSelection&&e.operation((function(){c(e)}))}function n(e){e.state.markedSelection&&e.state.markedSelection.length&&e.operation((function(){s(e)}))}e.defineOption("styleSelectedText",!1,(function(a,r,i){var o=i&&i!=e.Init;r&&!o?(a.state.markedSelection=[],a.state.markedSelectionStyle="string"==typeof r?r:"CodeMirror-selectedtext",l(a),a.on("cursorActivity",t),a.on("change",n)):!r&&o&&(a.off("cursorActivity",t),a.off("change",n),s(a),a.state.markedSelection=a.state.markedSelectionStyle=null)}));var a=8,r=e.Pos,i=e.cmpPos;function o(e,t,n,o){if(0!=i(t,n))for(var s=e.state.markedSelection,l=e.state.markedSelectionStyle,c=t.line;;){var u=c==t.line?t:r(c,0),d=c+a,p=d>=n.line,h=p?n:r(d,0),m=e.markText(u,h,{className:l});if(null==o?s.push(m):s.splice(o++,0,m),p)break;c=d}}function s(e){for(var t=e.state.markedSelection,n=0;n1)return l(e);var t=e.getCursor("start"),n=e.getCursor("end"),r=e.state.markedSelection;if(!r.length)return o(e,t,n);var c=r[0].find(),u=r[r.length-1].find();if(!c||!u||n.line-t.line<=a||i(t,u.to)>=0||i(n,c.from)<=0)return l(e);for(;i(t,c.from)>0;)r.shift().clear(),c=r[0].find();for(i(t,c.from)<0&&(c.to.line-t.line0&&(n.line-u.from.line2),b=/Android/.test(e),y=g||b||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=g||/Mac/.test(t),k=/\bCrOS\b/.test(e),w=/win/i.test(t),x=p&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(p=!1,l=!0);var j=v&&(c||p&&(null==x||x<12.11)),C=n||o&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _,A=function(e,t){var n=e.className,a=E(t).exec(n);if(a){var r=n.slice(a.index+a[0].length);e.className=n.slice(0,a.index)+(r?a[1]+r:"")}};function S(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function z(e,t){return S(e).appendChild(t)}function D(e,t,n,a){var r=document.createElement(e);if(n&&(r.className=n),a&&(r.style.cssText=a),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return o+(t-i);o+=s-i,o+=n-o%n,i=s+1}}g?R=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(R=function(e){try{e.select()}catch(t){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=q(this.onTimeout,this)};function H(e,t){for(var n=0;n=t)return a+Math.min(o,t-r);if(r+=i-a,a=i+1,(r+=n-r%n)>=t)return a}}var Q=[""];function X(e){for(;Q.length<=e;)Q.push(J(Q)+" ");return Q[e]}function J(e){return e[e.length-1]}function $(e,t){for(var n=[],a=0;a"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ae.test(e))}function ie(e,t){return t?!!(t.source.indexOf("\\w")>-1&&re(e))||t.test(e):re(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var r=(t+n)/2,i=a<0?Math.ceil(r):Math.floor(r);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+a}}function de(e,t,n,a){if(!e)return a(t,n,"ltr",0);for(var r=!1,i=0;it||t==n&&o.to==t)&&(a(Math.max(o.from,t),Math.min(o.to,n),1==o.level?"rtl":"ltr",i),r=!0)}r||a(t,n,"ltr")}var pe=null;function he(e,t,n){var a;pe=null;for(var r=0;rt)return r;i.to==t&&(i.from!=i.to&&"before"==n?a=r:pe=r),i.from==t&&(i.from!=i.to&&"before"!=n?a=r:pe=r)}return null!=a?a:pe}var me=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!a.test(e))return!1;for(var u=e.length,d=[],p=0;p-1&&(a[t]=r.slice(0,i).concat(r.slice(i+1)))}}}function ke(e,t){var n=ye(e,t);if(n.length)for(var a=Array.prototype.slice.call(arguments,2),r=0;r0}function Ce(e){e.prototype.on=function(e,t){be(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function Ee(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function _e(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ae(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Se(e){Ee(e),_e(e)}function ze(e){return e.target||e.srcElement}function De(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}var Te,Oe,Ie=function(){if(o&&s<9)return!1;var e=D("div");return"draggable"in e||"dragDrop"in e}();function Pe(e){if(null==Te){var t=D("span","\u200b");z(e,D("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Te=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Te?D("span","\u200b"):D("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ne(e){if(null!=Oe)return Oe;var t=z(e,document.createTextNode("A\u062eA")),n=_(t,0,1).getBoundingClientRect(),a=_(t,1,2).getBoundingClientRect();return S(e),!(!n||n.left==n.right)&&(Oe=a.right-n.right<3)}var Re=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],a=e.length;t<=a;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var i=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),o=i.indexOf("\r");-1!=o?(n.push(i.slice(0,o)),t+=o+1):(n.push(i),t=r+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Le=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Me=function(){var e=D("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),qe=null;function Fe(e){if(null!=qe)return qe;var t=z(e,D("span","x")),n=t.getBoundingClientRect(),a=_(t,0,1).getBoundingClientRect();return qe=Math.abs(n.left-a.left)>1}var Ue={},Be={};function He(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ue[e]=t}function Ze(e,t){Be[e]=t}function We(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return We("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return We("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=We(t);var n=Ue[t.name];if(!n)return Ve(e,"text/plain");var a=n(e,t);if(Ge.hasOwnProperty(t.name)){var r=Ge[t.name];for(var i in r)r.hasOwnProperty(i)&&(a.hasOwnProperty(i)&&(a["_"+i]=a[i]),a[i]=r[i])}if(a.name=t.name,t.helperType&&(a.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)a[o]=t.modeProps[o];return a}var Ge={};function Ye(e,t){F(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var a in t){var r=t[a];r instanceof Array&&(r=r.concat([])),n[a]=r}return n}function Qe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Xe(e,t,n){return!e.startState||e.startState(t,n)}var Je=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function $e(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var a=0;;++a){var r=n.children[a],i=r.chunkSize();if(t=e.first&&tn?st(n,$e(e,n).text.length):ft(t,$e(e,t.line).text.length)}function ft(e,t){var n=e.ch;return null==n||n>t?st(e.line,t):n<0?st(e.line,0):e}function gt(e,t){for(var n=[],a=0;a=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.post},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Je.prototype.backUp=function(e){this.pos-=e},Je.prototype.column=function(){return this.lastColumnPos0?null:(a&&!1!==t&&(this.pos+=a[0].length),a)}var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},Je.prototype.current=function(){return this.string.slice(this.start,this.pos)},Je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var bt=function(e,t){this.state=e,this.lookAhead=t},yt=function(e,t,n,a){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};function vt(e,t,n,a){var r=[e.state.modeGen],i={};St(e,t.text,e.doc.mode,n,(function(e,t){return r.push(e,t)}),i,a);for(var o=n.state,s=function(a){n.baseTokens=r;var s=e.state.overlays[a],l=1,c=0;n.state=!0,St(e,t.text,s.mode,n,(function(e,t){for(var n=l;ce&&r.splice(l,1,e,r[l+1],a),l+=2,c=Math.min(e,a)}if(t)if(s.opaque)r.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ke(e.doc.mode,a.state),i=vt(e,t,a);r&&(a.state=r),t.stateAfter=a.save(!r),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function wt(e,t,n){var a=e.doc,r=e.display;if(!a.mode.startState)return new yt(a,!0,t);var i=zt(e,t,n),o=i>a.first&&$e(a,i-1).stateAfter,s=o?yt.fromSaved(a,o,i):new yt(a,Xe(a.mode),i);return a.iter(i,t,(function(n){xt(e,n.text,s);var a=s.line;n.stateAfter=a==t-1||a%5==0||a>=r.viewFrom&&at.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yt.fromSaved=function(e,t,n){return t instanceof bt?new yt(e,Ke(e.mode,t.state),n,t.lookAhead):new yt(e,Ke(e.mode,t),n)},yt.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new bt(t,this.maxLookAhead):t};var Et=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function _t(e,t,n,a){var r,i,o=e.doc,s=o.mode,l=$e(o,(t=mt(o,t)).line),c=wt(e,t.line,n),u=new Je(l.text,e.options.tabSize,c);for(a&&(i=[]);(a||u.pose.options.maxHighlightLength?(s=!1,o&&xt(e,t,a,d.pos),d.pos=t.length,l=null):l=At(Ct(n,d,a.state,p),i),p){var h=p[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;co;--s){if(s<=i.first)return i.first;var l=$e(i,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof bt?c.lookAhead:0)<=i.modeFrontier))return s;var u=U(l.text,null,e.options.tabSize);(null==r||a>u)&&(r=s-1,a=u)}return r}function Dt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;a--){var r=$e(e,a).stateAfter;if(r&&(!(r instanceof bt)||a+r.lookAhead=t:i.to>t);(a||(a=[])).push(new Nt(o,i.from,s?null:i.to))}}return a}function Ft(e,t,n){var a;if(e)for(var r=0;r=t:i.to>t)||i.from==t&&"bookmark"==o.type&&(!n||i.marker.insertLeft)){var s=null==i.from||(o.inclusiveLeft?i.from<=t:i.from0&&s)for(var v=0;v0)){var u=[l,1],d=lt(c.from,s.from),p=lt(c.to,s.to);(d<0||!o.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(p>0||!o.inclusiveRight&&!p)&&u.push({from:s.to,to:c.to}),r.splice.apply(r,u),l+=u.length-3}}return r}function Zt(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Yt(n,i.marker)<0)&&(n=i.marker)}return n}function $t(e,t,n,a,r){var i=$e(e,t),o=Ot&&i.markedSpans;if(o)for(var s=0;s=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?lt(c.to,n)>=0:lt(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?lt(c.from,a)<=0:lt(c.from,a)<0)))return!0}}}function en(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function tn(e){for(var t;t=Xt(e);)e=t.find(1,!0).line;return e}function nn(e){for(var t,n;t=Xt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function an(e,t){var n=$e(e,t),a=en(n);return n==a?t:at(a)}function rn(e,t){if(t>e.lastLine())return t;var n,a=$e(e,t);if(!on(e,a))return t;for(;n=Xt(a);)a=n.find(1,!0).line;return at(a)+1}function on(e,t){var n=Ot&&t.markedSpans;if(n)for(var a=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var dn=function(e,t,n){this.text=e,Wt(this,t),this.height=n?n(this):1};function pn(e,t,n,a){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Zt(e),Wt(e,n);var r=a?a(e):1;r!=e.height&&nt(e,r)}function hn(e){e.parent=null,Zt(e)}dn.prototype.lineNo=function(){return at(this)},Ce(dn);var mn={},fn={};function gn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?fn:mn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function bn(e,t){var n=T("span",null,null,l?"padding-right: .1px":null),a={pre:T("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var i=r?t.rest[r-1]:t.line,o=void 0;a.pos=0,a.addToken=vn,Ne(e.display.measure)&&(o=fe(i,e.doc.direction))&&(a.addToken=wn(a.addToken,o)),a.map=[],jn(i,a,kt(e,i,t!=e.display.externalMeasured&&at(i))),i.styleClasses&&(i.styleClasses.bgClass&&(a.bgClass=N(i.styleClasses.bgClass,a.bgClass||"")),i.styleClasses.textClass&&(a.textClass=N(i.styleClasses.textClass,a.textClass||""))),0==a.map.length&&a.map.push(0,0,a.content.appendChild(Pe(e.display.measure))),0==r?(t.measure.map=a.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(a.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=a.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return ke(e,"renderLine",e,t.line,a.pre),a.pre.className&&(a.textClass=N(a.pre.className,a.textClass||"")),a}function yn(e){var t=D("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,a,r,i,l){if(t){var c,u=e.splitSpaces?kn(t,e.trailingSpace):t,d=e.cm.state.specialChars,p=!1;if(d.test(t)){c=document.createDocumentFragment();for(var h=0;;){d.lastIndex=h;var m=d.exec(t),f=m?m.index-h:t.length-h;if(f){var g=document.createTextNode(u.slice(h,h+f));o&&s<9?c.appendChild(D("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+f,g),e.col+=f,e.pos+=f}if(!m)break;h+=f+1;var b=void 0;if("\t"==m[0]){var y=e.cm.options.tabSize,v=y-e.col%y;(b=c.appendChild(D("span",X(v),"cm-tab"))).setAttribute("role","presentation"),b.setAttribute("cm-text","\t"),e.col+=v}else"\r"==m[0]||"\n"==m[0]?((b=c.appendChild(D("span","\r"==m[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",m[0]),e.col+=1):((b=e.cm.options.specialCharPlaceholder(m[0])).setAttribute("cm-text",m[0]),o&&s<9?c.appendChild(D("span",[b])):c.appendChild(b),e.col+=1);e.map.push(e.pos,e.pos+1,b),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),o&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||a||r||p||i||l){var k=n||"";a&&(k+=a),r&&(k+=r);var w=D("span",[c],k,i);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&w.setAttribute(x,l[x]);return e.content.appendChild(w)}e.content.appendChild(c)}}function kn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,a="",r=0;rc&&d.from<=c);p++);if(d.to>=u)return e(n,a,r,i,o,s,l);e(n,a.slice(0,d.to-c),r,i,null,s,l),i=null,a=a.slice(d.to-c),c=d.to}}}function xn(e,t,n,a){var r=!a&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!a&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function jn(e,t,n){var a=e.markedSpans,r=e.text,i=0;if(a)for(var o,s,l,c,u,d,p,h=r.length,m=0,f=1,g="",b=0;;){if(b==m){l=c=u=s="",p=null,d=null,b=1/0;for(var y=[],v=void 0,k=0;km||x.collapsed&&w.to==m&&w.from==m)){if(null!=w.to&&w.to!=m&&b>w.to&&(b=w.to,c=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==m&&(u+=" "+x.startStyle),x.endStyle&&w.to==b&&(v||(v=[])).push(x.endStyle,w.to),x.title&&((p||(p={})).title=x.title),x.attributes)for(var j in x.attributes)(p||(p={}))[j]=x.attributes[j];x.collapsed&&(!d||Yt(d.marker,x)<0)&&(d=w)}else w.from>m&&b>w.from&&(b=w.from)}if(v)for(var C=0;C=h)break;for(var _=Math.min(h,b);;){if(g){var A=m+g.length;if(!d){var S=A>_?g.slice(0,_-m):g;t.addToken(t,S,o?o+l:l,u,m+S.length==b?c:"",s,p)}if(A>=_){g=g.slice(_-m),m=_;break}m=A,u=""}g=r.slice(i,i=n[f++]),o=gn(n[f++],t.cm.options)}}else for(var z=1;z2&&i.push((l.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}function ea(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var a=0;an)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}}function ta(e,t){var n=at(t=en(t)),a=e.display.externalMeasured=new Cn(e.doc,t,n);a.lineN=n;var r=a.built=bn(e,a);return a.text=r.pre,z(e.display.lineMeasure,r.pre),a}function na(e,t,n,a){return ia(e,ra(e,t),n,a)}function aa(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(r=(i=l-s)-1,t>=l&&(o="right")),null!=r){if(a=e[c+2],s==l&&n==(a.insertLeft?"left":"right")&&(o=n),"left"==n&&0==r)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)a=e[2+(c-=3)],o="left";if("right"==n&&r==l-s)for(;c=0&&(n=e[r]).left==n.right;r--);return n}function ua(e,t,n,a){var r,i=la(t.map,n,a),l=i.node,c=i.start,u=i.end,d=i.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;c&&le(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+u0&&(d=a="right"),r=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==a?h.length-1:0]:l.getBoundingClientRect()}if(o&&s<9&&!c&&(!r||!r.left&&!r.right)){var m=l.parentNode.getClientRects()[0];r=m?{left:m.left,right:m.left+Oa(e.display),top:m.top,bottom:m.bottom}:sa}for(var f=r.top-t.rect.top,g=r.bottom-t.rect.top,b=(f+g)/2,y=t.view.measure.heights,v=0;v=a.text.length?(l=a.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return o("before"==c?l-1:l,"before"==c);function u(e,t,n){return o(n?e-1:e,1==s[t].level!=n)}var d=he(s,l,c),p=pe,h=u(l,d,"before"==c);return null!=p&&(h.other=u(l,p,"before"!=c)),h}function xa(e,t){var n=0;t=mt(e.doc,t),e.options.lineWrapping||(n=Oa(e.display)*t.ch);var a=$e(e.doc,t.line),r=ln(a)+Gn(e.display);return{left:n,right:n,top:r,bottom:r+a.height}}function ja(e,t,n,a,r){var i=st(e,t,n);return i.xRel=r,a&&(i.outside=a),i}function Ca(e,t,n){var a=e.doc;if((n+=e.display.viewOffset)<0)return ja(a.first,0,null,-1,-1);var r=rt(a,n),i=a.first+a.size-1;if(r>i)return ja(a.first+a.size-1,$e(a,i).text.length,null,1,1);t<0&&(t=0);for(var o=$e(a,r);;){var s=Sa(e,o,r,t,n),l=Jt(o,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==r)return c;o=$e(a,r=c.line)}}function Ea(e,t,n,a){a-=ba(t);var r=t.text.length,i=ue((function(t){return ia(e,n,t-1).bottom<=a}),r,0);return{begin:i,end:r=ue((function(t){return ia(e,n,t).top>a}),i,r)}}function _a(e,t,n,a){return n||(n=ra(e,t)),Ea(e,t,n,ya(e,t,ia(e,n,a),"line").top)}function Aa(e,t,n,a){return!(e.bottom<=n)&&(e.top>n||(a?e.left:e.right)>t)}function Sa(e,t,n,a,r){r-=ln(t);var i=ra(e,t),o=ba(t),s=0,l=t.text.length,c=!0,u=fe(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Da:za)(e,t,n,i,u,a,r);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var p,h,m=null,f=null,g=ue((function(t){var n=ia(e,i,t);return n.top+=o,n.bottom+=o,!!Aa(n,a,r,!1)&&(n.top<=r&&n.left<=a&&(m=t,f=n),!0)}),s,l),b=!1;if(f){var y=a-f.left=k.bottom?1:0}return ja(n,g=ce(t.text,g,1),h,b,a-p)}function za(e,t,n,a,r,i,o){var s=ue((function(s){var l=r[s],c=1!=l.level;return Aa(wa(e,st(n,c?l.to:l.from,c?"before":"after"),"line",t,a),i,o,!0)}),0,r.length-1),l=r[s];if(s>0){var c=1!=l.level,u=wa(e,st(n,c?l.from:l.to,c?"after":"before"),"line",t,a);Aa(u,i,o,!0)&&u.top>o&&(l=r[s-1])}return l}function Da(e,t,n,a,r,i,o){var s=Ea(e,t,a,o),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,p=0;p=c||h.to<=l)){var m=ia(e,a,1!=h.level?Math.min(c,h.to)-1:Math.max(l,h.from)).right,f=mf)&&(u=h,d=f)}}return u||(u=r[r.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function Ta(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==oa){oa=D("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)oa.appendChild(document.createTextNode("x")),oa.appendChild(D("br"));oa.appendChild(document.createTextNode("x"))}z(e.measure,oa);var n=oa.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),S(e.measure),n||1}function Oa(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=D("span","xxxxxxxxxx"),n=D("pre",[t],"CodeMirror-line-like");z(e.measure,n);var a=t.getBoundingClientRect(),r=(a.right-a.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function Ia(e){for(var t=e.display,n={},a={},r=t.gutters.clientLeft,i=t.gutters.firstChild,o=0;i;i=i.nextSibling,++o){var s=e.display.gutterSpecs[o].className;n[s]=i.offsetLeft+i.clientLeft+r,a[s]=i.clientWidth}return{fixedPos:Pa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:a,wrapperWidth:t.wrapper.clientWidth}}function Pa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Na(e){var t=Ta(e.display),n=e.options.lineWrapping,a=n&&Math.max(5,e.display.scroller.clientWidth/Oa(e.display)-3);return function(r){if(on(e.doc,r))return 0;var i=0;if(r.widgets)for(var o=0;o0&&(l=$e(e.doc,c.line).text).length==c.ch){var u=U(l,l.length,e.options.tabSize)-l.length;c=st(c.line,Math.max(0,Math.round((i-Kn(e.display).left)/Oa(e.display))-u))}return c}function Ma(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,a=0;at)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Ot&&an(e.doc,t)r.viewFrom?Ua(e):(r.viewFrom+=a,r.viewTo+=a);else if(t<=r.viewFrom&&n>=r.viewTo)Ua(e);else if(t<=r.viewFrom){var i=Ba(e,n,n+a,1);i?(r.view=r.view.slice(i.index),r.viewFrom=i.lineN,r.viewTo+=a):Ua(e)}else if(n>=r.viewTo){var o=Ba(e,t,t,-1);o?(r.view=r.view.slice(0,o.index),r.viewTo=o.lineN):Ua(e)}else{var s=Ba(e,t,t,-1),l=Ba(e,n,n+a,1);s&&l?(r.view=r.view.slice(0,s.index).concat(En(e,s.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=a):Ua(e)}var c=r.externalMeasured;c&&(n=r.lineN&&t=a.viewTo)){var i=a.view[Ma(e,t)];if(null!=i.node){var o=i.changes||(i.changes=[]);-1==H(o,n)&&o.push(n)}}}function Ua(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ba(e,t,n,a){var r,i=Ma(e,t),o=e.display.view;if(!Ot||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(i==o.length-1)return null;r=s+o[i].size-t,i++}else r=s-t;t+=r,n+=r}for(;an(e.doc,n)!=n;){if(i==(a<0?0:o.length-1))return null;n+=a*o[i-(a<0?1:0)].size,i+=a}return{index:i,lineN:n}}function Ha(e,t,n){var a=e.display;0==a.view.length||t>=a.viewTo||n<=a.viewFrom?(a.view=En(e,t,n),a.viewFrom=t):(a.viewFrom>t?a.view=En(e,t,a.viewFrom).concat(a.view):a.viewFromn&&(a.view=a.view.slice(0,Ma(e,n)))),a.viewTo=n}function Za(e){for(var t=e.display.view,n=0,a=0;a=e.display.viewTo||l.to().line0?o:e.defaultCharWidth())+"px"}if(a.other){var s=n.appendChild(D("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=a.other.left+"px",s.style.top=a.other.top+"px",s.style.height=.85*(a.other.bottom-a.other.top)+"px"}}function Ya(e,t){return e.top-t.top||e.left-t.left}function Ka(e,t,n){var a=e.display,r=e.doc,i=document.createDocumentFragment(),o=Kn(e.display),s=o.left,l=Math.max(a.sizerWidth,Xn(e)-a.sizer.offsetLeft)-o.right,c="ltr"==r.direction;function u(e,t,n,a){t<0&&(t=0),t=Math.round(t),a=Math.round(a),i.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(a-t)+"px"))}function d(t,n,a){var i,o,d=$e(r,t),p=d.text.length;function h(n,a){return ka(e,st(t,n),"div",d,a)}function m(t,n,a){var r=_a(e,d,null,t),i="ltr"==n==("after"==a)?"left":"right";return h("after"==a?r.begin:r.end-(/\s/.test(d.text.charAt(r.end-1))?2:1),i)[i]}var f=fe(d,r.direction);return de(f,n||0,null==a?p:a,(function(e,t,r,d){var g="ltr"==r,b=h(e,g?"left":"right"),y=h(t-1,g?"right":"left"),v=null==n&&0==e,k=null==a&&t==p,w=0==d,x=!f||d==f.length-1;if(y.top-b.top<=3){var j=(c?k:v)&&x,C=(c?v:k)&&w?s:(g?b:y).left,E=j?l:(g?y:b).right;u(C,b.top,E-C,b.bottom)}else{var _,A,S,z;g?(_=c&&v&&w?s:b.left,A=c?l:m(e,r,"before"),S=c?s:m(t,r,"after"),z=c&&k&&x?l:y.right):(_=c?m(e,r,"before"):s,A=!c&&v&&w?l:b.right,S=!c&&k&&x?s:y.left,z=c?m(t,r,"after"):l),u(_,b.top,A-_,b.bottom),b.bottom0?t.blinker=setInterval((function(){e.hasFocus()||er(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Xa(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||$a(e))}function Ja(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&er(e))}),100)}function $a(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ke(e,"focus",e,t),e.state.focused=!0,P(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Qa(e))}function er(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ke(e,"blur",e,t),e.state.focused=!1,A(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function tr(e){for(var t=e.display,n=t.lineDiv.offsetTop,a=Math.max(0,t.scroller.getBoundingClientRect().top),r=t.lineDiv.getBoundingClientRect().top,i=0,l=0;l.005||f<-.005)&&(re.display.sizerWidth){var b=Math.ceil(p/Oa(e.display));b>e.display.maxLineLength&&(e.display.maxLineLength=b,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(i)>2&&(t.scroller.scrollTop+=i)}function nr(e){if(e.widgets)for(var t=0;t=o&&(i=rt(t,ln($e(t,l))-e.wrapper.clientHeight),o=l)}return{from:i,to:Math.max(o,i+1)}}function rr(e,t){if(!we(e,"scrollCursorIntoView")){var n=e.display,a=n.sizer.getBoundingClientRect(),r=null,i=n.wrapper.ownerDocument;if(t.top+a.top<0?r=!0:t.bottom+a.top>(i.defaultView.innerHeight||i.documentElement.clientHeight)&&(r=!1),null!=r&&!f){var o=D("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n height: "+(t.bottom-t.top+Qn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(r),e.display.lineSpace.removeChild(o)}}}function ir(e,t,n,a){var r;null==a&&(a=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var o=!1,s=wa(e,t),l=n&&n!=t?wa(e,n):s,c=sr(e,r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-a,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+a}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(mr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(o=!0)),null!=c.scrollLeft&&(gr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(o=!0)),!o)break}return r}function or(e,t){var n=sr(e,t);null!=n.scrollTop&&mr(e,n.scrollTop),null!=n.scrollLeft&&gr(e,n.scrollLeft)}function sr(e,t){var n=e.display,a=Ta(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=Jn(e),o={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+Yn(n),l=t.tops-a;if(t.topr+i){var u=Math.min(t.top,(c?s:t.bottom)-i);u!=r&&(o.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,h=Xn(e)-n.gutters.offsetWidth,m=t.right-t.left>h;return m&&(t.right=t.left+h),t.left<10?o.scrollLeft=0:t.lefth+p-3&&(o.scrollLeft=t.right+(m?0:10)-h),o}function lr(e,t){null!=t&&(pr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function cr(e){pr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ur(e,t,n){null==t&&null==n||pr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function dr(e,t){pr(e),e.curOp.scrollToPos=t}function pr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,hr(e,xa(e,t.from),xa(e,t.to),t.margin))}function hr(e,t,n,a){var r=sr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-a,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+a});ur(e,r.scrollLeft,r.scrollTop)}function mr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Wr(e,{top:t}),fr(e,t,!0),n&&Wr(e),Lr(e,100))}function fr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function gr(e,t,n,a){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!a||(e.doc.scrollLeft=t,Kr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function br(e){var t=e.display,n=t.gutters.offsetWidth,a=Math.round(e.doc.height+Yn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:a,scrollHeight:a+Qn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var yr=function(e,t,n){this.cm=n;var a=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=r.tabIndex=-1,e(a),e(r),be(a,"scroll",(function(){a.clientHeight&&t(a.scrollTop,"vertical")})),be(r,"scroll",(function(){r.clientWidth&&t(r.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};yr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?a+"px":"0";var r=e.viewHeight-(t?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==a&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?a:0,bottom:t?a:0}},yr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},yr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},yr.prototype.zeroWidthHack=function(){var e=v&&!m?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new B,this.disableVert=new B},yr.prototype.enableZeroWidthBar=function(e,t,n){function a(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,a)}e.style.visibility="",t.set(1e3,a)},yr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vr=function(){};function kr(e,t){t||(t=br(e));var n=e.display.barWidth,a=e.display.barHeight;wr(e,t);for(var r=0;r<4&&n!=e.display.barWidth||a!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&tr(e),wr(e,br(e)),n=e.display.barWidth,a=e.display.barHeight}function wr(e,t){var n=e.display,a=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=a.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=a.bottom)+"px",n.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=a.bottom+"px",n.scrollbarFiller.style.width=a.right+"px"):n.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=a.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vr.prototype.update=function(){return{bottom:0,right:0}},vr.prototype.setScrollLeft=function(){},vr.prototype.setScrollTop=function(){},vr.prototype.clear=function(){};var xr={native:yr,null:vr};function jr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),be(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?gr(e,t):mr(e,t)}),e),e.display.scrollbars.addClass&&P(e.display.wrapper,e.display.scrollbars.addClass)}var Cr=0;function Er(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cr,markArrays:null},An(e.curOp)}function _r(e){var t=e.curOp;t&&zn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new qr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function zr(e){e.updatedDisplay=e.mustUpdate&&Hr(e.cm,e.update)}function Dr(e){var t=e.cm,n=t.display;e.updatedDisplay&&tr(t),e.barMeasure=br(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=na(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Qn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Xn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Tr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,a=wt(e,t.highlightFrontier),r=[];t.iter(a.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(a.line>=e.display.viewFrom){var o=i.styles,s=i.text.length>e.options.maxHighlightLength?Ke(t.mode,a.state):null,l=vt(e,i,a,!0);s&&(a.state=s),i.styles=l.styles;var c=i.styleClasses,u=l.classes;u?i.styleClasses=u:c&&(i.styleClasses=null);for(var d=!o||o.length!=i.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),p=0;!d&&pn)return Lr(e,e.options.workDelay),!0})),t.highlightFrontier=a.line,t.modeFrontier=Math.max(t.modeFrontier,a.line),r.length&&Ir(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Za(e))return!1;Qr(e)&&(Ua(e),t.dims=Ia(e));var r=a.first+a.size,i=Math.max(t.visible.from-e.options.viewportMargin,a.first),o=Math.min(r,t.visible.to+e.options.viewportMargin);n.viewFromo&&n.viewTo-o<20&&(o=Math.min(r,n.viewTo)),Ot&&(i=an(e.doc,i),o=rn(e.doc,o));var s=i!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Ha(e,i,o),n.viewOffset=ln($e(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Za(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Ur(e);return l>4&&(n.lineDiv.style.display="none"),Vr(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Br(c),S(n.cursorDiv),S(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Lr(e,400)),n.updateLineNumbers=null,!0}function Zr(e,t){for(var n=t.viewport,a=!0;;a=!1){if(a&&e.options.lineWrapping&&t.oldDisplayWidth!=Xn(e))a&&(t.visible=ar(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Yn(e.display)-Jn(e),n.top)}),t.visible=ar(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Hr(e,t))break;tr(e);var r=br(e);Wa(e),kr(e,r),Yr(e,r),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Wr(e,t){var n=new qr(e,t);if(Hr(e,n)){tr(e),Zr(e,n);var a=br(e);Wa(e),kr(e,a),Yr(e,a),n.finish()}}function Vr(e,t,n){var a=e.display,r=e.options.lineNumbers,i=a.lineDiv,o=i.firstChild;function s(t){var n=t.nextSibling;return l&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=a.view,u=a.viewFrom,d=0;d-1&&(h=!1),In(e,p,u,n)),h&&(S(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(ot(e.options,u)))),o=p.node.nextSibling}else{var m=Un(e,p,u,n);i.insertBefore(m,o)}u+=p.size}for(;o;)o=s(o)}function Gr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Tn(e,"gutterChanged",e)}function Yr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Qn(e)+"px"}function Kr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var a=Pa(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,i=a+"px",o=0;o=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),o&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&y||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Xr(r.gutters,r.lineNumbers),Jr(i),a.init(i)}qr.prototype.signal=function(e,t){je(e,t)&&this.events.push(arguments)},qr.prototype.finish=function(){for(var e=0;ec.clientWidth,m=c.scrollHeight>c.clientHeight;if(r&&h||i&&m){if(i&&v&&l)e:for(var f=t.target,g=s.view;f!=c;f=f.parentNode)for(var b=0;b=0&<(e,a.to())<=0)return n}return-1};var si=function(e,t){this.anchor=e,this.head=t};function li(e,t,n){var a=e&&e.options.selectionsMayTouch,r=t[n];t.sort((function(e,t){return lt(e.from(),t.from())})),n=H(t,r);for(var i=1;i0:l>=0){var c=pt(s.from(),o.from()),u=dt(s.to(),o.to()),d=s.empty()?o.from()==o.head:s.from()==s.head;i<=n&&--n,t.splice(--i,2,new si(d?u:c,d?c:u))}}return new oi(t,n)}function ci(e,t){return new oi([new si(e,t||e)],0)}function ui(e){return e.text?st(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function di(e,t){if(lt(e,t.from)<0)return e;if(lt(e,t.to)<=0)return ui(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,a=e.ch;return e.line==t.to.line&&(a+=ui(t).ch-t.to.ch),st(n,a)}function pi(e,t){for(var n=[],a=0;a1&&e.remove(s.line+1,m-1),e.insert(s.line+1,b)}Tn(e,"change",e,t)}function vi(e,t,n){function a(e,r,i){if(e.linked)for(var o=0;o1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}function Ai(e,t,n,a){var r=e.history;r.undone.length=0;var i,o,s=+new Date;if((r.lastOp==a||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&r.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=_i(r,r.lastOp==a)))o=J(i.changes),0==lt(t.from,t.to)&&0==lt(t.from,o.to)?o.to=ui(t):i.changes.push(Ci(e,t));else{var l=J(r.done);for(l&&l.ranges||Di(e.sel,r.done),i={changes:[Ci(e,t)],generation:r.generation},r.done.push(i);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=a,r.lastOrigin=r.lastSelOrigin=t.origin,o||ke(e,"historyAdded")}function Si(e,t,n,a){var r=t.charAt(0);return"*"==r||"+"==r&&n.ranges.length==a.ranges.length&&n.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function zi(e,t,n,a){var r=e.history,i=a&&a.origin;n==r.lastSelOp||i&&r.lastSelOrigin==i&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==i||Si(e,i,J(r.done),t))?r.done[r.done.length-1]=t:Di(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=i,r.lastSelOp=n,a&&!1!==a.clearRedo&&Ei(r.undone)}function Di(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ti(e,t,n,a){var r=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,a),(function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function Oi(e){if(!e)return null;for(var t,n=0;n-1&&(J(s)[d]=c[d],delete c[d])}}}return a}function Ri(e,t,n,a){if(a){var r=e.anchor;if(n){var i=lt(t,r)<0;i!=lt(n,r)<0?(r=t,t=n):i!=lt(t,n)<0&&(t=n)}return new si(r,t)}return new si(n||t,t)}function Li(e,t,n,a,r){null==r&&(r=e.cm&&(e.cm.display.shift||e.extend)),Hi(e,new oi([Ri(e.sel.primary(),t,n,r)],0),a)}function Mi(e,t,n){for(var a=[],r=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:s.to>t.ch))){if(r&&(ke(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--o;continue}break}if(!l.atomic)continue;if(n){var d=l.find(a<0?1:-1),p=void 0;if((a<0?u:c)&&(d=Qi(e,d,-a,d&&d.line==t.line?i:null)),d&&d.line==t.line&&(p=lt(d,n))&&(a<0?p<0:p>0))return Yi(e,d,t,a,r)}var h=l.find(a<0?-1:1);return(a<0?c:u)&&(h=Qi(e,h,a,h.line==t.line?i:null)),h?Yi(e,h,t,a,r):null}}return t}function Ki(e,t,n,a,r){var i=a||1,o=Yi(e,t,n,i,r)||!r&&Yi(e,t,n,i,!0)||Yi(e,t,n,-i,r)||!r&&Yi(e,t,n,-i,!0);return o||(e.cantEdit=!0,st(e.first,0))}function Qi(e,t,n,a){return n<0&&0==t.ch?t.line>e.first?mt(e,st(t.line-1)):null:n>0&&t.ch==(a||$e(e,t.line)).text.length?t.line=0;--r)eo(e,{from:a[r].from,to:a[r].to,text:r?[""]:t.text,origin:t.origin});else eo(e,t)}}function eo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=lt(t.from,t.to)){var n=pi(e,t);Ai(e,t,n,e.cm?e.cm.curOp.id:NaN),ao(e,t,n,Ut(e,t));var a=[];vi(e,(function(e,n){n||-1!=H(a,e.history)||(lo(e.history,t),a.push(e.history)),ao(e,t,null,Ut(e,t))}))}}function to(e,t,n){var a=e.cm&&e.cm.state.suppressEdits;if(!a||n){for(var r,i=e.history,o=e.sel,s="undo"==t?i.done:i.undone,l="undo"==t?i.undone:i.done,c=0;c=0;--h){var m=p(h);if(m)return m.v}}}}function no(e,t){if(0!=t&&(e.first+=t,e.sel=new oi($(e.sel.ranges,(function(e){return new si(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){qa(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,a=n.viewFrom;ae.lastLine())){if(t.from.linei&&(t={from:t.from,to:st(i,$e(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=et(e,t.from,t.to),n||(n=pi(e,t)),e.cm?ro(e.cm,t,a):yi(e,t,a),Zi(e,n,V),e.cantEdit&&Ki(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function ro(e,t,n){var a=e.doc,r=e.display,i=t.from,o=t.to,s=!1,l=i.line;e.options.lineWrapping||(l=at(en($e(a,i.line))),a.iter(l,o.line+1,(function(e){if(e==r.maxLine)return s=!0,!0}))),a.sel.contains(t.from,t.to)>-1&&xe(e),yi(a,t,n,Na(e)),e.options.lineWrapping||(a.iter(l,i.line+t.text.length,(function(e){var t=cn(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Dt(a,i.line),Lr(e,400);var c=t.text.length-(o.line-i.line)-1;t.full?qa(e):i.line!=o.line||1!=t.text.length||bi(e.doc,t)?qa(e,i.line,o.line+1,c):Fa(e,i.line,"text");var u=je(e,"changes"),d=je(e,"change");if(d||u){var p={from:i,to:o,text:t.text,removed:t.removed,origin:t.origin};d&&Tn(e,"change",e,p),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function io(e,t,n,a,r){var i;a||(a=n),lt(a,n)<0&&(n=(i=[a,n])[0],a=i[1]),"string"==typeof t&&(t=e.splitLines(t)),$i(e,{from:n,to:a,text:t,origin:r})}function oo(e,t,n,a){n1||!(this.children[0]instanceof uo))){var s=[];this.collapse(s),this.children=[new uo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var o=r.lines.length%25+25,s=o;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var a=0;a0||0==o&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=T("span",[i.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if($t(e,t.line,t,n,i)||t.line!=n.line&&$t(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pt()}i.addToHistory&&Ai(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(a){c&&i.collapsed&&!c.options.lineWrapping&&en(a)==c.display.maxLine&&(s=!0),i.collapsed&&l!=t.line&&nt(a,0),Mt(a,new Nt(i,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){on(e,t)&&nt(t,0)})),i.clearOnEnter&&be(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(It(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++go,i.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),i.collapsed)qa(c,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var u=t.line;u<=n.line;u++)Fa(c,u,"text");i.atomic&&Vi(c.doc),Tn(c,"markerAdded",c,i)}return i}bo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Er(e),je(this,"clear")){var n=this.find();n&&Tn(this,"clear",n.from,n.to)}for(var a=null,r=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=a&&e&&this.collapsed&&qa(e,a,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Vi(e.doc)),e&&Tn(e,"markerCleared",e,this,a,r),t&&_r(e),this.parent&&this.parent.clear()}},bo.prototype.find=function(e,t){var n,a;null==e&&"bookmark"==this.type&&(e=1);for(var r=0;r=0;l--)$i(this,a[l]);s?Bi(this,s):this.cm&&cr(this.cm)})),undo:Rr((function(){to(this,"undo")})),redo:Rr((function(){to(this,"redo")})),undoSelection:Rr((function(){to(this,"undo",!0)})),redoSelection:Rr((function(){to(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,a=0;a=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=mt(this,e),t=mt(this,t);var a=[],r=e.line;return this.iter(e.line,t.line+1,(function(i){var o=i.markedSpans;if(o)for(var s=0;s=l.to||null==l.from&&r!=e.line||null!=l.from&&r==t.line&&l.from>=t.ch||n&&!n(l.marker)||a.push(l.marker.parent||l.marker)}++r})),a},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var a=0;ae)return t=e,!0;e-=i,++n})),mt(this,st(n,t))},indexFromPos:function(e){var t=(e=mt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),Zi(t.doc,ci(n,n)),p)for(var h=0;h=0;t--)io(e.doc,"",a[t].from,a[t].to,"+delete");cr(e)}))}function Ko(e,t,n){var a=ce(e.text,t+n,n);return a<0||a>e.text.length?null:a}function Qo(e,t,n){var a=Ko(e,t.ch,n);return null==a?null:new st(t.line,a,n<0?"after":"before")}function Xo(e,t,n,a,r){if(e){"rtl"==t.doc.direction&&(r=-r);var i=fe(n,t.doc.direction);if(i){var o,s=r<0?J(i):i[0],l=r<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=ra(t,n);o=r<0?n.text.length-1:0;var u=ia(t,c,o).top;o=ue((function(e){return ia(t,c,e).top==u}),r<0==(1==s.level)?s.from:s.to-1,o),"before"==l&&(o=Ko(n,o,1))}else o=r<0?s.to:s.from;return new st(a,o,l)}}return new st(a,r<0?n.text.length:0,r<0?"before":"after")}function Jo(e,t,n,a){var r=fe(t,e.doc.direction);if(!r)return Qo(t,n,a);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=he(r,n.ch,n.sticky),o=r[i];if("ltr"==e.doc.direction&&o.level%2==0&&(a>0?o.to>n.ch:o.from=o.from&&p>=u.begin)){var h=d?"before":"after";return new st(n.line,p,h)}}var m=function(e,t,a){for(var i=function(e,t){return t?new st(n.line,l(e,1),"before"):new st(n.line,e,"after")};e>=0&&e0==(1!=o.level),c=s?a.begin:l(a.end,-1);if(o.from<=c&&c0?u.end:l(u.begin,-1);return null==g||a>0&&g==t.text.length||!(f=m(a>0?0:r.length-1,a,c(g)))?null:f}Fo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Fo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Fo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Fo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Fo.default=v?Fo.macDefault:Fo.pcDefault;var $o={selectAll:Xi,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Yo(e,(function(t){if(t.empty()){var n=$e(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)r=new st(r.line,r.ch+1),e.replaceRange(i.charAt(r.ch-1)+i.charAt(r.ch-2),st(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var o=$e(e.doc,r.line-1).text;o&&(r=new st(r.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),st(r.line-1,o.length-1),r,"+transpose"))}n.push(new si(r,r))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ir(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var a=0;a-1&&(lt((r=s.ranges[r]).from(),t)<0||t.xRel>0)&&(lt(r.to(),t)>0||t.xRel<0)?Cs(e,a,t,i):_s(e,a,t,i)}function Cs(e,t,n,a){var r=e.display,i=!1,c=Pr(e,(function(t){l&&(r.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ja(e)),ve(r.wrapper.ownerDocument,"mouseup",c),ve(r.wrapper.ownerDocument,"mousemove",u),ve(r.scroller,"dragstart",d),ve(r.scroller,"drop",c),i||(Ee(t),a.addNew||Li(e.doc,n,null,null,a.extend),l&&!h||o&&9==s?setTimeout((function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()}),20):r.input.focus())})),u=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return i=!0};l&&(r.scroller.draggable=!0),e.state.draggingText=c,c.copy=!a.moveOnDrag,be(r.wrapper.ownerDocument,"mouseup",c),be(r.wrapper.ownerDocument,"mousemove",u),be(r.scroller,"dragstart",d),be(r.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return r.input.focus()}),20),r.scroller.dragDrop&&r.scroller.dragDrop()}function Es(e,t,n){if("char"==n)return new si(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new si(st(t.line,0),mt(e.doc,st(t.line+1,0)));var a=n(e,t);return new si(a.from,a.to)}function _s(e,t,n,a){o&&Ja(e);var r=e.display,i=e.doc;Ee(t);var s,l,c=i.sel,u=c.ranges;if(a.addNew&&!a.extend?(l=i.sel.contains(n),s=l>-1?u[l]:new si(n,n)):(s=i.sel.primary(),l=i.sel.primIndex),"rectangle"==a.unit)a.addNew||(s=new si(n,n)),n=La(e,t,!0,!0),l=-1;else{var d=Es(e,n,a.unit);s=a.extend?Ri(s,d.anchor,d.head,a.extend):d}a.addNew?-1==l?(l=u.length,Hi(i,li(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==a.unit&&!a.extend?(Hi(i,li(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=i.sel):qi(i,l,s,G):(l=0,Hi(i,new oi([s],0),G),c=i.sel);var p=n;function h(t){if(0!=lt(p,t))if(p=t,"rectangle"==a.unit){for(var r=[],o=e.options.tabSize,u=U($e(i,n.line).text,n.ch,o),d=U($e(i,t.line).text,t.ch,o),h=Math.min(u,d),m=Math.max(u,d),f=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));f<=g;f++){var b=$e(i,f).text,y=K(b,h,o);h==m?r.push(new si(st(f,y),st(f,y))):b.length>y&&r.push(new si(st(f,y),st(f,K(b,m,o))))}r.length||r.push(new si(n,n)),Hi(i,li(e,c.ranges.slice(0,l).concat(r),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var v,k=s,w=Es(e,t,a.unit),x=k.anchor;lt(w.anchor,x)>0?(v=w.head,x=pt(k.from(),w.anchor)):(v=w.anchor,x=dt(k.to(),w.head));var j=c.ranges.slice(0);j[l]=As(e,new si(mt(i,x),v)),Hi(i,li(e,j,l),G)}}var m=r.wrapper.getBoundingClientRect(),f=0;function g(t){var n=++f,o=La(e,t,!0,"rectangle"==a.unit);if(o)if(0!=lt(o,p)){e.curOp.focus=I(L(e)),h(o);var s=ar(r,i);(o.line>=s.to||o.linem.bottom?20:0;l&&setTimeout(Pr(e,(function(){f==n&&(r.scroller.scrollTop+=l,g(t))})),50)}}function b(t){e.state.selectingText=!1,f=1/0,t&&(Ee(t),r.input.focus()),ve(r.wrapper.ownerDocument,"mousemove",y),ve(r.wrapper.ownerDocument,"mouseup",v),i.history.lastSelOrigin=null}var y=Pr(e,(function(e){0!==e.buttons&&De(e)?g(e):b(e)})),v=Pr(e,b);e.state.selectingText=v,be(r.wrapper.ownerDocument,"mousemove",y),be(r.wrapper.ownerDocument,"mouseup",v)}function As(e,t){var n=t.anchor,a=t.head,r=$e(e.doc,n.line);if(0==lt(n,a)&&n.sticky==a.sticky)return t;var i=fe(r);if(!i)return t;var o=he(i,n.ch,n.sticky),s=i[o];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=o+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==i.length)return t;if(a.line!=n.line)l=(a.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=he(i,a.ch,a.sticky),d=u-o||(a.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var p=i[c+(l?-1:0)],h=l==(1==p.level),m=h?p.from:p.to,f=h?"after":"before";return n.ch==m&&n.sticky==f?t:new si(new st(n.line,m,f),a)}function Ss(e,t,n,a){var r,i;if(t.touches)r=t.touches[0].clientX,i=t.touches[0].clientY;else try{r=t.clientX,i=t.clientY}catch(u){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&Ee(t);var o=e.display,s=o.lineDiv.getBoundingClientRect();if(i>s.bottom||!je(e,n))return Ae(t);i-=s.top-o.viewOffset;for(var l=0;l=r)return ke(e,n,e,rt(e.doc,i),e.display.gutterSpecs[l].className,t),Ae(t)}}function zs(e,t){return Ss(e,t,"gutterClick",!0)}function Ds(e,t){Vn(e.display,t)||Ts(e,t)||we(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Ts(e,t){return!!je(e,"gutterContextMenu")&&Ss(e,t,"gutterContextMenu",!1)}function Os(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ma(e)}ys.prototype.compare=function(e,t,n){return this.time+bs>e&&0==lt(t,this.pos)&&n==this.button};var Is={toString:function(){return"CodeMirror.Init"}},Ps={},Ns={};function Rs(e){var t=e.optionHandlers;function n(n,a,r,i){e.defaults[n]=a,r&&(t[n]=i?function(e,t,n){n!=Is&&r(e,t,n)}:r)}e.defineOption=n,e.Init=Is,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,fi(e)}),!0),n("indentUnit",2,fi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){gi(e),ma(e),qa(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],a=e.doc.first;e.doc.iter((function(e){for(var r=0;;){var i=e.text.indexOf(t,r);if(-1==i)break;r=i+t.length,n.push(st(a,i))}a++}));for(var r=n.length-1;r>=0;r--)io(e.doc,t,n[r],st(n[r].line,n[r].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Is&&e.refresh()})),n("specialCharPlaceholder",yn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Os(e),$r(e)}),!0),n("keyMap","default",(function(e,t,n){var a=Go(t),r=n!=Is&&Go(n);r&&r.detach&&r.detach(e,a),a.attach&&a.attach(e,r||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ms,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Xr(t,e.options.lineNumbers),$r(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Pa(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return kr(e)}),!0),n("scrollbarStyle","native",(function(e){jr(e),kr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Xr(e.options.gutters,t),$r(e)}),!0),n("firstLineNumber",1,$r,!0),n("lineNumberFormatter",(function(e){return e}),$r,!0),n("showCursorWhenSelecting",!1,Wa,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(er(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ls),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Wa,!0),n("singleCursorHeightPerLine",!0,Wa,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,gi,!0),n("addModeClass",!1,gi,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,gi,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Ls(e,t,n){if(!t!=!(n&&n!=Is)){var a=e.display.dragFunctions,r=t?be:ve;r(e.display.scroller,"dragstart",a.start),r(e.display.scroller,"dragenter",a.enter),r(e.display.scroller,"dragover",a.over),r(e.display.scroller,"dragleave",a.leave),r(e.display.scroller,"drop",a.drop)}}function Ms(e){e.options.lineWrapping?(P(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(A(e.display.wrapper,"CodeMirror-wrap"),un(e)),Ra(e),qa(e),ma(e),setTimeout((function(){return kr(e)}),100)}function qs(e,t){var n=this;if(!(this instanceof qs))return new qs(e,t);this.options=t=t?F(t):{},F(Ps,t,!1);var a=t.value;"string"==typeof a?a=new Eo(a,t.mode,null,t.lineSeparator,t.direction):t.mode&&(a.modeOption=t.mode),this.doc=a;var r=new qs.inputStyles[t.inputStyle](this),i=this.display=new ei(e,a,r,t);for(var c in i.wrapper.CodeMirror=this,Os(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),jr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!y&&i.input.focus(),o&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Fs(this),Io(),Er(this),this.curOp.forceUpdate=!0,ki(this,a),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&$a(n)}),20):er(this),Ns)Ns.hasOwnProperty(c)&&Ns[c](this,t[c],Is);Qr(this),t.finishInit&&t.finishInit(this);for(var u=0;u400}be(t.scroller,"touchstart",(function(r){if(!we(e,r)&&!i(r)&&!zs(e,r)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-a.end<=300?a:null},1==r.touches.length&&(t.activeTouch.left=r.touches[0].pageX,t.activeTouch.top=r.touches[0].pageY)}})),be(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),be(t.scroller,"touchend",(function(n){var a=t.activeTouch;if(a&&!Vn(t,n)&&null!=a.left&&!a.moved&&new Date-a.start<300){var i,o=e.coordsChar(t.activeTouch,"page");i=!a.prev||l(a,a.prev)?new si(o,o):!a.prev.prev||l(a,a.prev.prev)?e.findWordAt(o):new si(st(o.line,0),mt(e.doc,st(o.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),Ee(n)}r()})),be(t.scroller,"touchcancel",r),be(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(mr(e,t.scroller.scrollTop),gr(e,t.scroller.scrollLeft,!0),ke(e,"scroll",e))})),be(t.scroller,"mousewheel",(function(t){return ii(e,t)})),be(t.scroller,"DOMMouseScroll",(function(t){return ii(e,t)})),be(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){we(e,t)||Se(t)},over:function(t){we(e,t)||(zo(e,t),Se(t))},start:function(t){return So(e,t)},drop:Pr(e,Ao),leave:function(t){we(e,t)||Do(e)}};var c=t.input.getField();be(c,"keyup",(function(t){return hs.call(e,t)})),be(c,"keydown",Pr(e,ds)),be(c,"keypress",Pr(e,ms)),be(c,"focus",(function(t){return $a(e,t)})),be(c,"blur",(function(t){return er(e,t)}))}qs.defaults=Ps,qs.optionHandlers=Ns;var Us=[];function Bs(e,t,n,a){var r,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?r=wt(e,t).state:n="prev");var o=e.options.tabSize,s=$e(i,t),l=U(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(a||/\S/.test(s.text)){if("smart"==n&&((c=i.mode.indent(r,s.text.slice(u.length),s.text))==W||c>150)){if(!a)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>i.first?U($e(i,t-1).text,null,o):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",p=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/o);h;--h)p+=o,d+="\t";if(po,l=Re(t),c=null;if(s&&a.ranges.length>1)if(Hs&&Hs.text.join("\n")==t){if(a.ranges.length%Hs.text.length==0){c=[];for(var u=0;u=0;p--){var h=a.ranges[p],m=h.from(),f=h.to();h.empty()&&(n&&n>0?m=st(m.line,m.ch-n):e.state.overwrite&&!s?f=st(f.line,Math.min($e(i,f.line).text.length,f.ch+J(l).length)):s&&Hs&&Hs.lineWise&&Hs.text.join("\n")==l.join("\n")&&(m=f=st(m.line,0)));var g={from:m,to:f,text:c?c[p%c.length]:l,origin:r||(s?"paste":e.state.cutIncoming>o?"cut":"+input")};$i(e.doc,g),Tn(e,"inputRead",e,g)}t&&!s&&Gs(e,t),cr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Vs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Ir(t,(function(){return Ws(t,n,0,null,"paste")})),!0}function Gs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,a=n.ranges.length-1;a>=0;a--){var r=n.ranges[a];if(!(r.head.ch>100||a&&n.ranges[a-1].head.line==r.head.line)){var i=e.getModeAt(r.head),o=!1;if(i.electricChars){for(var s=0;s-1){o=Bs(e,r.head.line,"smart");break}}else i.electricInput&&i.electricInput.test($e(e.doc,r.head.line).text.slice(0,r.head.ch))&&(o=Bs(e,r.head.line,"smart"));o&&Tn(e,"electricInput",e,r.head.line)}}}function Ys(e){for(var t=[],n=[],a=0;an&&(Bs(this,r.head.line,e,!0),n=r.head.line,a==this.doc.sel.primIndex&&cr(this));else{var i=r.from(),o=r.to(),s=Math.max(n,i.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var l=s;l0&&qi(this.doc,a,new si(i,c[a].to()),V)}}})),getTokenAt:function(e,t){return _t(this,e,t)},getLineTokens:function(e,t){return _t(this,st(e),t,!0)},getTokenTypeAt:function(e){e=mt(this.doc,e);var t,n=kt(this,$e(this.doc,e.line)),a=0,r=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var o=a+r>>1;if((o?n[2*o-1]:0)>=i)r=o;else{if(!(n[2*o+1]i&&(e=i,r=!0),a=$e(this.doc,e)}else a=e;return ya(this,a,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-ln(a):0)},defaultTextHeight:function(){return Ta(this.display)},defaultCharWidth:function(){return Oa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,a,r){var i=this.display,o=(e=wa(this,mt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==a)o=e.top;else if("above"==a||"near"==a){var l=Math.max(i.wrapper.clientHeight,this.doc.height),c=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==a||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(o=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=o+"px",t.style.left=t.style.right="","right"==r?(s=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&or(this,{left:s,top:o,right:s+t.offsetWidth,bottom:o+t.offsetHeight})},triggerOnKeyDown:Nr(ds),triggerOnKeyPress:Nr(ms),triggerOnKeyUp:hs,triggerOnMouseDown:Nr(ks),execCommand:function(e){if($o.hasOwnProperty(e))return $o[e].call(null,this)},triggerElectric:Nr((function(e){Gs(this,e)})),findPosH:function(e,t,n,a){var r=1;t<0&&(r=-1,t=-t);for(var i=mt(this.doc,e),o=0;o0&&o(t.charAt(n-1));)--n;for(;a.5||this.options.lineWrapping)&&Ra(this),ke(this,"refresh",this)})),swapDoc:Nr((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),ki(this,e),ma(this),this.display.input.reset(),ur(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Tn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ce(e),e.registerHelper=function(t,a,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][a]=r},e.registerGlobalHelper=function(t,a,r,i){e.registerHelper(t,a,i),n[t]._global.push({pred:r,val:i})}}function Js(e,t,n,a,r){var i=t,o=n,s=$e(e,t.line),l=r&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new st(n,t.ch,t.sticky),s=$e(e,n))}function u(i){var o;if("codepoint"==a){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))o=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;o=new st(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else o=r?Jo(e.cm,s,t,n):Qo(s,t,n);if(null==o){if(i||!c())return!1;t=Xo(r,e.cm,s,t.line,l)}else t=o;return!0}if("char"==a||"codepoint"==a)u();else if("column"==a)u(!0);else if("word"==a||"group"==a)for(var d=null,p="group"==a,h=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(n<0)||u(!m);m=!1){var f=s.text.charAt(t.ch)||"\n",g=ie(f,h)?"w":p&&"\n"==f?"n":!p||/\s/.test(f)?null:"p";if(!p||m||g||(g="s"),d&&d!=g){n<0&&(n=1,u(),t.sticky="after");break}if(g&&(d=g),n>0&&!u(!m))break}var b=Ki(e,t,i,o,!0);return ct(i,b)&&(b.hitSide=!0),b}function $s(e,t,n,a){var r,i,o=e.doc,s=t.left;if("page"==a){var l=Math.min(e.display.wrapper.clientHeight,M(e).innerHeight||o(e).documentElement.clientHeight),c=Math.max(l-.5*Ta(e.display),3);r=(n>0?t.bottom:t.top)+n*c}else"line"==a&&(r=n>0?t.bottom+3:t.top-3);for(;(i=Ca(e,s,r)).outside;){if(n<0?r<=0:r>=o.height){i.hitSide=!0;break}r+=5*n}return i}var el=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function tl(e,t){var n=aa(e,t.line);if(!n||n.hidden)return null;var a=$e(e.doc,t.line),r=ea(n,a,t.line),i=fe(a,e.doc.direction),o="left";i&&(o=he(i,t.ch)%2?"right":"left");var s=la(r.map,t.ch,o);return s.offset="right"==s.collapse?s.end:s.start,s}function nl(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function al(e,t){return t&&(e.bad=!0),e}function rl(e,t,n,a,r){var i="",o=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){o&&(i+=s,l&&(i+=s),o=l=!1)}function d(e){e&&(u(),i+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var i,h=t.getAttribute("cm-marker");if(h){var m=e.findMarks(st(a,0),st(r+1,0),c(+h));return void(m.length&&(i=m[0].find(0))&&d(et(e.doc,i.from,i.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;f&&u();for(var g=0;g=t.display.viewTo||i.line=t.display.viewFrom&&tl(t,r)||{node:l[0].measure.map[2],offset:0},u=i.linea.firstLine()&&(o=st(o.line-1,$e(a.doc,o.line-1).length)),s.ch==$e(a.doc,s.line).text.length&&s.liner.viewTo-1)return!1;o.line==r.viewFrom||0==(e=Ma(a,o.line))?(t=at(r.view[0].line),n=r.view[0].node):(t=at(r.view[e].line),n=r.view[e-1].node.nextSibling);var l,c,u=Ma(a,s.line);if(u==r.view.length-1?(l=r.viewTo-1,c=r.lineDiv.lastChild):(l=at(r.view[u+1].line)-1,c=r.view[u+1].node.previousSibling),!n)return!1;for(var d=a.doc.splitLines(rl(a,n,c,t,l)),p=et(a.doc,st(t,0),st(l,$e(a.doc,l).text.length));d.length>1&&p.length>1;)if(J(d)==J(p))d.pop(),p.pop(),l--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),t++}for(var h=0,m=0,f=d[0],g=p[0],b=Math.min(f.length,g.length);ho.ch&&y.charCodeAt(y.length-m-1)==v.charCodeAt(v.length-m-1);)h--,m++;d[d.length-1]=y.slice(0,y.length-m).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var w=st(t,h),x=st(l,p.length?J(p).length-m:0);return d.length>1||d[0]||lt(w,x)?(io(a.doc,d,w,x,"+input"),!0):void 0},el.prototype.ensurePolled=function(){this.forceCompositionEnd()},el.prototype.reset=function(){this.forceCompositionEnd()},el.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},el.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},el.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ir(this.cm,(function(){return qa(e.cm)}))},el.prototype.setUneditable=function(e){e.contentEditable="false"},el.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Pr(this.cm,Ws)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},el.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},el.prototype.onContextMenu=function(){},el.prototype.resetPosition=function(){},el.prototype.needsContentAttribute=!0;var sl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null,this.resetting=!1};function ll(e,t){if((t=t?F(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function a(){e.value=s.getValue()}var r;if(e.form&&(be(e.form,"submit",a),!t.leaveSubmitMethodAlone)){var i=e.form;r=i.submit;try{var o=i.submit=function(){a(),i.submit=r,i.submit(),i.submit=o}}catch(l){}}t.finishInit=function(n){n.save=a,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,a(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",a),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=r))}},e.style.display="none";var s=qs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function cl(e){e.off=ve,e.on=be,e.wheelEventPixels=ri,e.Doc=Eo,e.splitLines=Re,e.countColumn=U,e.findColumn=K,e.isWordChar=re,e.Pass=W,e.signal=ke,e.Line=dn,e.changeEnd=ui,e.scrollbarModel=xr,e.Pos=st,e.cmpPos=lt,e.modes=Ue,e.mimeModes=Be,e.resolveMode=We,e.getMode=Ve,e.modeExtensions=Ge,e.extendMode=Ye,e.copyState=Ke,e.startState=Xe,e.innerMode=Qe,e.commands=$o,e.keyMap=Fo,e.keyName=Vo,e.isModifierKey=Zo,e.lookupKey=Ho,e.normalizeKeyMap=Bo,e.StringStream=Je,e.SharedTextMarker=vo,e.TextMarker=bo,e.LineWidget=ho,e.e_preventDefault=Ee,e.e_stopPropagation=_e,e.e_stop=Se,e.addClass=P,e.contains=O,e.rmClass=A,e.keyNames=Ro}sl.prototype.init=function(e){var t=this,n=this,a=this.cm;this.createField(e);var r=this.textarea;function i(e){if(!we(a,e)){if(a.somethingSelected())Zs({lineWise:!1,text:a.getSelections()});else{if(!a.options.lineWiseCopyCut)return;var t=Ys(a);Zs({lineWise:!0,text:t.text}),"cut"==e.type?a.setSelections(t.ranges,null,V):(n.prevInput="",r.value=t.text.join("\n"),R(r))}"cut"==e.type&&(a.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(r.style.width="0px"),be(r,"input",(function(){o&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),be(r,"paste",(function(e){we(a,e)||Vs(e,a)||(a.state.pasteIncoming=+new Date,n.fastPoll())})),be(r,"cut",i),be(r,"copy",i),be(e.scroller,"paste",(function(t){if(!Vn(e,t)&&!we(a,t)){if(!r.dispatchEvent)return a.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,r.dispatchEvent(i)}})),be(e.lineSpace,"selectstart",(function(t){Vn(e,t)||Ee(t)})),be(r,"compositionstart",(function(){var e=a.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:a.markText(e,a.getCursor("to"),{className:"CodeMirror-composing"})}})),be(r,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},sl.prototype.createField=function(e){this.wrapper=Qs(),this.textarea=this.wrapper.firstChild},sl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},sl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,a=Va(e);if(e.options.moveInputWithCursor){var r=wa(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+o.top-i.top)),a.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+o.left-i.left))}return a},sl.prototype.showSelection=function(e){var t=this.cm.display;z(t.cursorDiv,e.cursors),z(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},sl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&R(this.textarea),o&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",o&&s>=9&&(this.hasSelection=null));this.resetting=!1}},sl.prototype.getField=function(){return this.textarea},sl.prototype.supportsTouch=function(){return!1},sl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||I(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},sl.prototype.blur=function(){this.textarea.blur()},sl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},sl.prototype.receivedFocus=function(){this.slowPoll()},sl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},sl.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},sl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,a=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Le(n)&&!a&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==a&&!t.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===r||v&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=r.charCodeAt(0);if(8203!=i||a||(a="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(a.length,r.length);l1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},sl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},sl.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},sl.prototype.onContextMenu=function(e){var t=this,n=t.cm,a=n.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=La(n,e),c=a.scroller.scrollTop;if(i&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&Pr(n,Hi)(n.doc,ci(i),V);var u,d=r.style.cssText,h=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=r.ownerDocument.defaultView.scrollY),a.input.focus(),l&&r.ownerDocument.defaultView.scrollTo(null,u),a.input.reset(),n.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=g,a.selForContextMenu=n.doc.sel,clearTimeout(a.detectingSelectAll),o&&s>=9&&f(),C?(Se(e),be(window,"mouseup",(function e(){ve(window,"mouseup",e),setTimeout(g,20)}))):setTimeout(g,50)}function f(){if(null!=r.selectionStart){var e=n.somethingSelected(),i="\u200b"+(e?r.value:"");r.value="\u21da",r.value=i,t.prevInput=e?"":"\u200b",r.selectionStart=1,r.selectionEnd=i.length,a.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,r.style.cssText=d,o&&s<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=c),null!=r.selectionStart)){(!o||o&&s<9)&&f();var e=0,i=function i(){a.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&"\u200b"==t.prevInput?Pr(n,Xi)(n):e++<10?a.detectingSelectAll=setTimeout(i,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(i,200)}}},sl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},sl.prototype.setUneditable=function(){},sl.prototype.needsContentAttribute=!1,Rs(qs),Xs(qs);var ul="iter insert remove copy getEditor constructor".split(" ");for(var dl in Eo.prototype)Eo.prototype.hasOwnProperty(dl)&&H(ul,dl)<0&&(qs.prototype[dl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Eo.prototype[dl]));return Ce(Eo),qs.inputStyles={textarea:sl,contenteditable:el},qs.defineMode=function(e){qs.defaults.mode||"null"==e||(qs.defaults.mode=e),He.apply(this,arguments)},qs.defineMIME=Ze,qs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),qs.defineMIME("text/plain","null"),qs.defineExtension=function(e,t){qs.prototype[e]=t},qs.defineDocExtension=function(e,t){Eo.prototype[e]=t},qs.fromTextArea=ll,cl(qs),qs.version="5.65.9",qs}()},7976:function(e,t,n){!function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))/i;e.defineMode("gfm",(function(n,a){var r=0;function i(e){return e.code=!1,null}var o={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var i=e.pos;e.eatWhile("`");var o=1+e.pos-i;return n.code?o===r&&(n.code=!1):(r=o,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==a.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:i},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in a)s[l]=a[l];return s.name="markdown",e.overlayMode(e.getMode(n,s),o)}),"markdown"),e.defineMIME("text/x-gfm","gfm")}(n(3668),n(3548),n(1357))},3548:function(e,t,n){!function(e){"use strict";e.defineMode("markdown",(function(t,n){var a=e.getMode(t,"text/html"),r="null"==a.name;function i(n){if(e.findModeByName){var a=e.findModeByName(n);a&&(n=a.mime||a.mimes[0])}var r=e.getMode(t,n);return"null"==r.name?null:r}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in o)o.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(o[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,d=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,p=/^ {0,3}(?:\={1,}|-{2,})\s*$/,h=/^[^#!\[\]*_\\<>` "'(~:]+/,m=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,g=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,b=" ";function y(e,t,n){return t.f=t.inline=n,n(e,t)}function v(e,t,n){return t.f=t.block=n,n(e,t)}function k(e){return!e||!/\S/.test(e.string)}function w(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==j){var n=r;if(!n){var i=e.innerMode(a,t.htmlState);n="xml"==i.mode.name&&null===i.state.tagStart&&!i.state.context&&i.state.tokenize.isInText}n&&(t.f=A,t.block=x,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function x(t,a){var r=t.column()===a.indentation,s=k(a.prevLine.stream),h=a.indentedCode,g=a.prevLine.hr,b=!1!==a.list,v=(a.listStack[a.listStack.length-1]||0)+3;a.indentedCode=!1;var w=a.indentation;if(null===a.indentationDiff&&(a.indentationDiff=a.indentation,b)){for(a.list=null;w=4&&(h||a.prevLine.fencedCodeEnd||a.prevLine.header||s))return t.skipToEnd(),a.indentedCode=!0,o.code;if(t.eatSpace())return null;if(r&&a.indentation<=v&&(_=t.match(d))&&_[1].length<=6)return a.quote=0,a.header=_[1].length,a.thisLine.header=!0,n.highlightFormatting&&(a.formatting="header"),a.f=a.inline,E(a);if(a.indentation<=v&&t.eat(">"))return a.quote=r?1:a.quote+1,n.highlightFormatting&&(a.formatting="quote"),t.eatSpace(),E(a);if(!j&&!a.setext&&r&&a.indentation<=v&&(_=t.match(c))){var A=_[1]?"ol":"ul";return a.indentation=w+t.current().length,a.list=!0,a.quote=0,a.listStack.push(a.indentation),a.em=!1,a.strong=!1,a.code=!1,a.strikethrough=!1,n.taskLists&&t.match(u,!1)&&(a.taskList=!0),a.f=a.inline,n.highlightFormatting&&(a.formatting=["list","list-"+A]),E(a)}return r&&a.indentation<=v&&(_=t.match(m,!0))?(a.quote=0,a.fencedEndRE=new RegExp(_[1]+"+ *$"),a.localMode=n.fencedCodeBlockHighlighting&&i(_[2]||n.fencedCodeBlockDefaultMode),a.localMode&&(a.localState=e.startState(a.localMode)),a.f=a.block=C,n.highlightFormatting&&(a.formatting="code-block"),a.code=-1,E(a)):a.setext||!(x&&b||a.quote||!1!==a.list||a.code||j||f.test(t.string))&&(_=t.lookAhead(1))&&(_=_.match(p))?(a.setext?(a.header=a.setext,a.setext=0,t.skipToEnd(),n.highlightFormatting&&(a.formatting="header")):(a.header="="==_[0].charAt(0)?1:2,a.setext=a.header),a.thisLine.header=!0,a.f=a.inline,E(a)):j?(t.skipToEnd(),a.hr=!0,a.thisLine.hr=!0,o.hr):"["===t.peek()?y(t,a,O):y(t,a,a.inline)}function j(t,n){var i=a.token(t,n.htmlState);if(!r){var o=e.innerMode(a,n.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=A,n.block=x,n.htmlState=null)}return i}function C(e,t){var a,r=t.listStack[t.listStack.length-1]||0,i=t.indentation=e.quote?t.push(o.formatting+"-"+e.formatting[a]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(o.linkHref,"url"):(e.strong&&t.push(o.strong),e.em&&t.push(o.em),e.strikethrough&&t.push(o.strikethrough),e.emoji&&t.push(o.emoji),e.linkText&&t.push(o.linkText),e.code&&t.push(o.code),e.image&&t.push(o.image),e.imageAltText&&t.push(o.imageAltText,"link"),e.imageMarker&&t.push(o.imageMarker)),e.header&&t.push(o.header,o.header+"-"+e.header),e.quote&&(t.push(o.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.quote+"-"+e.quote):t.push(o.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var r=(e.listStack.length-1)%3;r?1===r?t.push(o.list2):t.push(o.list3):t.push(o.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function _(e,t){if(e.match(h,!0))return E(t)}function A(t,r){var i=r.text(t,r);if("undefined"!==typeof i)return i;if(r.list)return r.list=null,E(r);if(r.taskList)return" "===t.match(u,!0)[1]?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,E(r);if(r.taskOpen=!1,r.taskClosed=!1,r.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),E(r);var s=t.next();if(r.linkTitle){r.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(t.match(new RegExp(c),!0))return o.linkHref}if("`"===s){var d=r.formatting;n.highlightFormatting&&(r.formatting="code"),t.eatWhile("`");var p=t.current().length;if(0!=r.code||r.quote&&1!=p){if(p==r.code){var h=E(r);return r.code=0,h}return r.formatting=d,E(r)}return r.code=p,E(r)}if(r.code)return E(r);if("\\"===s&&(t.next(),n.highlightFormatting)){var m=E(r),f=o.formatting+"-escape";return m?m+" "+f:f}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,n.highlightFormatting&&(r.formatting="image"),E(r);if("["===s&&r.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,n.highlightFormatting&&(r.formatting="image"),E(r);if("]"===s&&r.imageAltText){n.highlightFormatting&&(r.formatting="image");var m=E(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=z,m}if("["===s&&!r.image)return r.linkText&&t.match(/^.*?\]/)||(r.linkText=!0,n.highlightFormatting&&(r.formatting="link")),E(r);if("]"===s&&r.linkText){n.highlightFormatting&&(r.formatting="link");var m=E(r);return r.linkText=!1,r.inline=r.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?z:A,m}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=S,n.highlightFormatting&&(r.formatting="link"),(m=E(r))?m+=" ":m="",m+o.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=S,n.highlightFormatting&&(r.formatting="link"),(m=E(r))?m+=" ":m="",m+o.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var b=t.string.indexOf(">",t.pos);if(-1!=b){var y=t.string.substring(t.start,b);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(r.md_inside=!0)}return t.backUp(1),r.htmlState=e.startState(a),v(t,r,j)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return r.md_inside=!1,"tag";if("*"===s||"_"===s){for(var k=1,w=1==t.pos?" ":t.string.charAt(t.pos-2);k<3&&t.eat(s);)k++;var x=t.peek()||" ",C=!/\s/.test(x)&&(!g.test(x)||/\s/.test(w)||g.test(w)),_=!/\s/.test(w)&&(!g.test(w)||/\s/.test(x)||g.test(x)),D=null,T=null;if(k%2&&(r.em||!C||"*"!==s&&_&&!g.test(w)?r.em!=s||!_||"*"!==s&&C&&!g.test(x)||(D=!1):D=!0),k>1&&(r.strong||!C||"*"!==s&&_&&!g.test(w)?r.strong!=s||!_||"*"!==s&&C&&!g.test(x)||(T=!1):T=!0),null!=T||null!=D)return n.highlightFormatting&&(r.formatting=null==D?"strong":null==T?"em":"strong em"),!0===D&&(r.em=s),!0===T&&(r.strong=s),h=E(r),!1===D&&(r.em=!1),!1===T&&(r.strong=!1),h}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return E(r);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(r.strikethrough)return n.highlightFormatting&&(r.formatting="strikethrough"),h=E(r),r.strikethrough=!1,h;if(t.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),E(r)}else if(" "===s&&t.match("~~",!0)){if(" "===t.peek())return E(r);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){r.emoji=!0,n.highlightFormatting&&(r.formatting="emoji");var O=E(r);return r.emoji=!1,O}return" "===s&&(t.match(/^ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),E(r)}function S(e,t){if(">"===e.next()){t.f=t.inline=A,n.highlightFormatting&&(t.formatting="link");var a=E(t);return a?a+=" ":a="",a+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function z(e,t){if(e.eatSpace())return null;var a=e.next();return"("===a||"["===a?(t.f=t.inline=T("("===a?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,E(t)):"error"}var D={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function T(e){return function(t,a){if(t.next()===e){a.f=a.inline=A,n.highlightFormatting&&(a.formatting="link-string");var r=E(a);return a.linkHref=!1,r}return t.match(D[e]),a.linkHref=!0,E(a)}}function O(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=I,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,E(t)):y(e,t,A)}function I(e,t){if(e.match("]:",!0)){t.f=t.inline=P,n.highlightFormatting&&(t.formatting="link");var a=E(t);return t.linkText=!1,a}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function P(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=A,o.linkHref+" url")}var N={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:A,text:_,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(a,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=j)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,b).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==j?{state:e.htmlState,mode:a}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:N}},indent:function(t,n,r){return t.block==j&&a.indent?a.indent(t.htmlState,n,r):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},blankLine:w,getType:E,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return N}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(3668),n(9029),n(6251))},6251:function(e,t,n){!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&t.substring(r+1,t.length);if(i)return e.findModeByExtension(i)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n")):null:e.match("--")?n(m("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(f(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=m("meta","?>"),"meta"):(i=e.eat("/")?"closeTag":"openTag",t.tokenize=p,"tag bracket"):"&"==a?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function p(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=d,i=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return i="equals",null;if("<"==n){t.tokenize=d,t.state=k,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=h(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=p;break}return"string"};return t.isInAttribute=!0,t}function m(e,t){return function(n,a){for(;!n.eol();){if(n.match(t)){a.tokenize=d;break}n.next()}return e}}function f(e){return function(t,n){for(var a;null!=(a=t.next());){if("<"==a)return n.tokenize=f(e+1),n.tokenize(t,n);if(">"==a){if(1==e){n.tokenize=d;break}return n.tokenize=f(e-1),n.tokenize(t,n)}}return"meta"}}function g(e){return e&&e.toLowerCase()}function b(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function v(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(g(n))||!l.contextGrabbers[g(n)].hasOwnProperty(g(t)))return;y(e)}}function k(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?x:k}function w(e,t,n){return"word"==e?(n.tagName=t.current(),o="tag",E):l.allowMissingTagName&&"endTag"==e?(o="tag bracket",E(e,t,n)):(o="error",w)}function x(e,t,n){if("word"==e){var a=t.current();return n.context&&n.context.tagName!=a&&l.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&y(n),n.context&&n.context.tagName==a||!1===l.matchClosing?(o="tag",j):(o="tag error",C)}return l.allowMissingTagName&&"endTag"==e?(o="tag bracket",j(e,t,n)):(o="error",C)}function j(e,t,n){return"endTag"!=e?(o="error",j):(y(n),k)}function C(e,t,n){return o="error",j(e,t,n)}function E(e,t,n){if("word"==e)return o="attribute",_;if("endTag"==e||"selfcloseTag"==e){var a=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(g(a))?v(n,a):(v(n,a),n.context=new b(n,a,r==n.indented)),k}return o="error",E}function _(e,t,n){return"equals"==e?A:(l.allowMissing||(o="error"),E(e,t,n))}function A(e,t,n){return"string"==e?S:"word"==e&&l.allowUnquoted?(o="string",E):(o="error",E(e,t,n))}function S(e,t,n){return"string"==e?S:E(e,t,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:k,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;i=null;var n=t.tokenize(e,t);return(n||i)&&"comment"!=n&&(o=null,t.state=t.state(i||n,e,t),o&&(n="error"==o?n+" error":o)),n},indent:function(t,n,a){var r=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(r&&r.noIndent)return e.Pass;if(t.tokenize!=p&&t.tokenize!=d)return a?a.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==A&&(e.state=E)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(3668))},4870:function(e){var t=[].slice;e.exports=function(e,n){if("string"==typeof n&&(n=e[n]),"function"!=typeof n)throw new Error("bind() requires a function");var a=t.call(arguments,2);return function(){return n.apply(e,a.concat(t.call(arguments)))}}},9773:function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,a=this._callbacks["$"+e];if(!a)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r0?"in "+r:r+" ago":r},i=n(6840),o={date:(0,i.Z)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l=function(e,t,n,a){return s[e]},c=n(7325),u={ordinalNumber:function(e,t){var n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,c.Z)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,c.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,c.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,c.Z)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,c.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},d=n(6884),p={code:"en-US",formatDistance:r,formatLong:o,formatRelative:l,localize:u,match:{ordinalNumber:(0,n(586).Z)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,d.Z)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,d.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,d.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,d.Z)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,d.Z)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},4408:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var a={};function r(){return a}},3462:function(e,t){"use strict";var n=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},a=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},r={p:a,P:function(e,t){var r,i=e.match(/(P+)(p+)?/)||[],o=i[1],s=i[2];if(!s)return n(e,t);switch(o){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",n(o,t)).replace("{{time}}",a(s,t))}};t.Z=r},4697:function(e,t,n){"use strict";function a(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return a}})},9153:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var a=n(8527),r=n(9853),i=n(5611),o=n(4522);function s(e){(0,o.Z)(1,arguments);var t=(0,i.Z)(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var a=(0,r.Z)(n);return a}var l=6048e5;function c(e){(0,o.Z)(1,arguments);var t=(0,a.default)(e),n=(0,r.Z)(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},5611:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(8527),r=n(4522),i=n(9853);function o(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var s=(0,i.Z)(o),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var c=(0,i.Z)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},8504:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(8527),r=n(1230),i=n(9726),o=n(4522),s=n(9297),l=n(4408);function c(e,t){var n,a,c,u,d,p,h,m;(0,o.Z)(1,arguments);var f=(0,l.j)(),g=(0,s.Z)(null!==(n=null!==(a=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:f.firstWeekContainsDate)&&void 0!==a?a:null===(h=f.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==n?n:1),b=(0,i.Z)(e,t),y=new Date(0);y.setUTCFullYear(b,0,g),y.setUTCHours(0,0,0,0);var v=(0,r.Z)(y,t);return v}var u=6048e5;function d(e,t){(0,o.Z)(1,arguments);var n=(0,a.default)(e),i=(0,r.Z)(n,t).getTime()-c(n,t).getTime();return Math.round(i/u)+1}},9726:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(8527),r=n(4522),i=n(1230),o=n(9297),s=n(4408);function l(e,t){var n,l,c,u,d,p,h,m;(0,r.Z)(1,arguments);var f=(0,a.default)(e),g=f.getUTCFullYear(),b=(0,s.j)(),y=(0,o.Z)(null!==(n=null!==(l=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:b.firstWeekContainsDate)&&void 0!==l?l:null===(h=b.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(g+1,0,y),v.setUTCHours(0,0,0,0);var k=(0,i.Z)(v,t),w=new Date(0);w.setUTCFullYear(g,0,y),w.setUTCHours(0,0,0,0);var x=(0,i.Z)(w,t);return f.getTime()>=k.getTime()?g+1:f.getTime()>=x.getTime()?g:g-1}},8552:function(e,t,n){"use strict";n.d(t,{Do:function(){return o},Iu:function(){return i},qp:function(){return s}});var a=["D","DD"],r=["YY","YYYY"];function i(e){return-1!==a.indexOf(e)}function o(e){return-1!==r.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},4522:function(e,t,n){"use strict";function a(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return a}})},9853:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=1,n=(0,a.default)(e),i=n.getUTCDay(),o=(i=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,a.default)(e),b=g.getUTCDay(),y=(b=c?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},20:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var a=n(9297),r=n(9040),i=n(4522);function o(e,t){(0,i.Z)(2,arguments);var n=(0,a.Z)(t),o=7*n;return(0,r.default)(e,o)}},5105:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var a=n(9297),r=n(1104),i=n(4522);function o(e,t){(0,i.Z)(2,arguments);var n=(0,a.Z)(t);return(0,r.default)(e,12*n)}},2729:function(e,t,n){"use strict";n.d(t,{qk:function(){return i},vh:function(){return r},yJ:function(){return a}});Math.pow(10,8);var a=6e4,r=36e5,i=1e3},9759:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var a=n(4697),r=n(8347),i=n(4522),o=864e5;function s(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),s=(0,r.default)(t),l=n.getTime()-(0,a.Z)(n),c=s.getTime()-(0,a.Z)(s);return Math.round((l-c)/o)}},5951:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e,t){(0,r.Z)(2,arguments);var n=(0,a.default)(e),i=(0,a.default)(t),o=n.getFullYear()-i.getFullYear(),s=n.getMonth()-i.getMonth();return 12*o+s}},7223:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var a=n(9254),r=n(4697),i=n(4522),o=6048e5;function s(e,t,n){(0,i.Z)(2,arguments);var s=(0,a.default)(e,n),l=(0,a.default)(t,n),c=s.getTime()-(0,r.Z)(s),u=l.getTime()-(0,r.Z)(l);return Math.round((c-u)/o)}},7415:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e,t){(0,r.Z)(2,arguments);var n=(0,a.default)(e),i=(0,a.default)(t);return n.getFullYear()-i.getFullYear()}},786:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e);return t.setHours(23,59,59,999),t}},4888:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},4565:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var a=n(4408),r=n(8527),i=n(9297),o=n(4522);function s(e,t){var n,s,l,c,u,d,p,h;(0,o.Z)(1,arguments);var m=(0,a.j)(),f=(0,i.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:m.weekStartsOn)&&void 0!==s?s:null===(p=m.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(e),b=g.getDay(),y=6+(b0?n:1-n;return p("yy"===t?a%100:a,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):p(n+1,2)},d:function(e,t){return p(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return p(e.getUTCHours()%12||12,t.length)},H:function(e,t){return p(e.getUTCHours(),t.length)},m:function(e,t){return p(e.getUTCMinutes(),t.length)},s:function(e,t){return p(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,a=e.getUTCMilliseconds();return p(Math.floor(a*Math.pow(10,n-3)),t.length)}},m="midnight",f="noon",g="morning",b="afternoon",y="evening",v="night",k={G:function(e,t,n){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var a=e.getUTCFullYear(),r=a>0?a:1-a;return n.ordinalNumber(r,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,a){var r=(0,d.Z)(e,a),i=r>0?r:1-r;return"YY"===t?p(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):p(i,t.length)},R:function(e,t){return p((0,c.Z)(e),t.length)},u:function(e,t){return p(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return p(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return p(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){var a=e.getUTCMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return p(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){var r=(0,u.Z)(e,a);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):p(r,t.length)},I:function(e,t,n){var a=(0,l.Z)(e);return"Io"===t?n.ordinalNumber(a,{unit:"week"}):p(a,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){var a=function(e){(0,o.Z)(1,arguments);var t=(0,i.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=t.getTime(),r=n-a;return Math.floor(r/s)+1}(e);return"Do"===t?n.ordinalNumber(a,{unit:"dayOfYear"}):p(a,t.length)},E:function(e,t,n){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){var r=e.getUTCDay(),i=(r-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return p(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){var r=e.getUTCDay(),i=(r-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return p(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var a=e.getUTCDay(),r=0===a?7:a;switch(t){case"i":return String(r);case"ii":return p(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){var a,r=e.getUTCHours();switch(a=12===r?f:0===r?m:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){var a,r=e.getUTCHours();switch(a=r>=17?y:r>=12?b:r>=4?g:v,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var a=e.getUTCHours()%12;return 0===a&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){var a=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(a,{unit:"hour"}):p(a,t.length)},k:function(e,t,n){var a=e.getUTCHours();return 0===a&&(a=24),"ko"===t?n.ordinalNumber(a,{unit:"hour"}):p(a,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,n,a){var r=(a._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return x(r);case"XXXX":case"XX":return j(r);default:return j(r,":")}},x:function(e,t,n,a){var r=(a._originalDate||e).getTimezoneOffset();switch(t){case"x":return x(r);case"xxxx":case"xx":return j(r);default:return j(r,":")}},O:function(e,t,n,a){var r=(a._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(r,":");default:return"GMT"+j(r,":")}},z:function(e,t,n,a){var r=(a._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(r,":");default:return"GMT"+j(r,":")}},t:function(e,t,n,a){var r=a._originalDate||e;return p(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,a){return p((a._originalDate||e).getTime(),t.length)}};function w(e,t){var n=e>0?"-":"+",a=Math.abs(e),r=Math.floor(a/60),i=a%60;if(0===i)return n+String(r);var o=t||"";return n+String(r)+o+p(i,2)}function x(e,t){return e%60===0?(e>0?"-":"+")+p(Math.abs(e)/60,2):j(e,t)}function j(e,t){var n=t||"",a=e>0?"-":"+",r=Math.abs(e);return a+p(Math.floor(r/60),2)+n+p(r%60,2)}var C=k,E=n(3462),_=n(4697),A=n(8552),S=n(9297),z=n(4408),D=n(4468),T=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I=/^'([^]*?)'?$/,P=/''/g,N=/[a-zA-Z]/;function R(e,t,n){var s,l,c,u,d,p,h,m,f,g,b,y,v,k,w,x,j,I;(0,o.Z)(2,arguments);var P=String(t),R=(0,z.j)(),M=null!==(s=null!==(l=null===n||void 0===n?void 0:n.locale)&&void 0!==l?l:R.locale)&&void 0!==s?s:D.Z,q=(0,S.Z)(null!==(c=null!==(u=null!==(d=null!==(p=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==p?p:null===n||void 0===n||null===(h=n.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==d?d:R.firstWeekContainsDate)&&void 0!==u?u:null===(f=R.locale)||void 0===f||null===(g=f.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==c?c:1);if(!(q>=1&&q<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=(0,S.Z)(null!==(b=null!==(y=null!==(v=null!==(k=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==k?k:null===n||void 0===n||null===(w=n.locale)||void 0===w||null===(x=w.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==v?v:R.weekStartsOn)&&void 0!==y?y:null===(j=R.locale)||void 0===j||null===(I=j.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==b?b:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!M.localize)throw new RangeError("locale must contain localize property");if(!M.formatLong)throw new RangeError("locale must contain formatLong property");var U=(0,i.default)(e);if(!(0,a.default)(U))throw new RangeError("Invalid time value");var B=(0,_.Z)(U),H=(0,r.Z)(U,B),Z={firstWeekContainsDate:q,weekStartsOn:F,locale:M,_originalDate:U},W=P.match(O).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,E.Z[t])(e,M.formatLong):e})).join("").match(T).map((function(a){if("''"===a)return"'";var r=a[0];if("'"===r)return L(a);var i=C[r];if(i)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!(0,A.Do)(a)||(0,A.qp)(a,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!(0,A.Iu)(a)||(0,A.qp)(a,t,String(e)),i(H,a,M.localize,Z);if(r.match(N))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return a})).join("");return W}function L(e){var t=e.match(I);return t?t[1].replace(P,"'"):e}},6114:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e),n=t.getDate();return n}},467:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e),n=t.getDay();return n}},1537:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e),n=t.getHours();return n}},6975:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var a=n(8527),r=n(9254),i=n(4522);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e,{weekStartsOn:1})}function s(e){(0,i.Z)(1,arguments);var t=(0,a.default)(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var s=o(r),l=new Date(0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);var c=o(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function l(e){(0,i.Z)(1,arguments);var t=s(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var a=o(n);return a}var c=6048e5;function u(e){(0,i.Z)(1,arguments);var t=(0,a.default)(e),n=o(t).getTime()-l(t).getTime();return Math.round(n/c)+1}},4424:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e),n=t.getMinutes();return n}},3747:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e),n=t.getMonth();return n}},639:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e),n=Math.floor(t.getMonth()/3)+1;return n}},2295:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e),n=t.getSeconds();return n}},4460:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e),n=t.getTime();return n}},2599:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){return(0,r.Z)(1,arguments),(0,a.default)(e).getFullYear()}},9420:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e,t){(0,r.Z)(2,arguments);var n=(0,a.default)(e),i=(0,a.default)(t);return n.getTime()>i.getTime()}},9579:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e,t){(0,r.Z)(2,arguments);var n=(0,a.default)(e),i=(0,a.default)(t);return n.getTime()=i&&n<=o}},6840:function(e,t,n){"use strict";function a(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,a=e.formats[n]||e.formats[e.defaultWidth];return a}}n.d(t,{Z:function(){return a}})},7325:function(e,t,n){"use strict";function a(e){return function(t,n){var a;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):r;a=e.formattingValues[i]||e.formattingValues[r]}else{var o=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;a=e.values[s]||e.values[o]}return a[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{Z:function(){return a}})},6884:function(e,t,n){"use strict";function a(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.width,o=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;var l,c=s[0],u=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?i(u,(function(e){return e.test(c)})):r(u,(function(e){return e.test(c)}));l=e.valueCallback?e.valueCallback(d):d,l=n.valueCallback?n.valueCallback(l):l;var p=t.slice(c.length);return{value:l,rest:p}}}function r(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function i(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var r=a[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(r.length);return{value:o,rest:s}}}n.d(t,{Z:function(){return a}})},9333:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){var t,n;if((0,r.Z)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,a.default)(e);(void 0===n||nt||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},3216:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return St}});var a=n(7762),r=n(4468),i=n(1633),o=n(8527);function s(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var l=n(3462),c=n(4697),u=n(8552),d=n(9297),p=n(4522),h=n(7326),m=n(136),f=n(9388),g=n(5671),b=n(3144);function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(){function e(){(0,g.Z)(this,e),y(this,"priority",void 0),y(this,"subPriority",0)}return(0,b.Z)(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),k=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(e,a,r,i,o){var s;return(0,g.Z)(this,n),(s=t.call(this)).value=e,s.validateValue=a,s.setValue=r,s.priority=i,o&&(s.subPriority=o),s}return(0,b.Z)(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(v),w=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),y((0,h.Z)(e),"priority",10),y((0,h.Z)(e),"subPriority",-1),e}return(0,b.Z)(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(v);function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=function(){function e(){(0,g.Z)(this,e),x(this,"incompatibleTokens",void 0),x(this,"priority",void 0),x(this,"subPriority",void 0)}return(0,b.Z)(e,[{key:"run",value:function(e,t,n,a){var r=this.parse(e,t,n,a);return r?{setter:new k(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}();function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),C((0,h.Z)(e),"priority",140),C((0,h.Z)(e),"incompatibleTokens",["R","u","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(j),_=n(2729),A=/^(1[0-2]|0?\d)/,S=/^(3[0-1]|[0-2]?\d)/,z=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,D=/^(5[0-3]|[0-4]?\d)/,T=/^(2[0-3]|[0-1]?\d)/,O=/^(2[0-4]|[0-1]?\d)/,I=/^(1[0-1]|0?\d)/,P=/^(1[0-2]|0?\d)/,N=/^[0-5]?\d/,R=/^[0-5]?\d/,L=/^\d/,M=/^\d{1,2}/,q=/^\d{1,3}/,F=/^\d{1,4}/,U=/^-?\d+/,B=/^-?\d/,H=/^-?\d{1,2}/,Z=/^-?\d{1,3}/,W=/^-?\d{1,4}/,V=/^([+-])(\d{2})(\d{2})?|Z/,G=/^([+-])(\d{2})(\d{2})|Z/,Y=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,K=/^([+-])(\d{2}):(\d{2})|Z/,Q=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function X(e,t){return e?{value:t(e.value),rest:e.rest}:e}function J(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function $(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var a="+"===n[1]?1:-1,r=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:a*(r*_.vh+i*_.yJ+o*_.qk),rest:t.slice(n[0].length)}}function ee(e){return J(U,e)}function te(e,t){switch(e){case 1:return J(L,t);case 2:return J(M,t);case 3:return J(q,t);case 4:return J(F,t);default:return J(new RegExp("^\\d{1,"+e+"}"),t)}}function ne(e,t){switch(e){case 1:return J(B,t);case 2:return J(H,t);case 3:return J(Z,t);case 4:return J(W,t);default:return J(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ae(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function re(e,t){var n,a=t>0,r=a?t:1-t;if(r<=50)n=e||100;else{var i=r+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return a?n:1-n}function ie(e){return e%400===0||e%4===0&&e%100!==0}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),oe((0,h.Z)(e),"priority",130),oe((0,h.Z)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){var a=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return X(te(4,e),a);case"yo":return X(n.ordinalNumber(e,{unit:"year"}),a);default:return X(te(t.length,e),a)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var a=e.getUTCFullYear();if(n.isTwoDigitYear){var r=re(n.year,a);return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(j),le=n(9726),ce=n(1230);function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var de=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),ue((0,h.Z)(e),"priority",130),ue((0,h.Z)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){var a=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return X(te(4,e),a);case"Yo":return X(n.ordinalNumber(e,{unit:"year"}),a);default:return X(te(t.length,e),a)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,a){var r=(0,le.Z)(e,a);if(n.isTwoDigitYear){var i=re(n.year,r);return e.setUTCFullYear(i,0,a.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,ce.Z)(e,a)}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,a.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,ce.Z)(e,a)}}]),n}(j),pe=n(9853);function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var me=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),he((0,h.Z)(e),"priority",130),he((0,h.Z)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t){return ne("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var a=new Date(0);return a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0),(0,pe.Z)(a)}}]),n}(j);function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ge=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),fe((0,h.Z)(e),"priority",130),fe((0,h.Z)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t){return ne("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(j);function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),be((0,h.Z)(e),"priority",120),be((0,h.Z)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return te(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(j);function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ke=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),ve((0,h.Z)(e),"priority",120),ve((0,h.Z)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return te(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(j);function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xe=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),we((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),we((0,h.Z)(e),"priority",110),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){var a=function(e){return e-1};switch(t){case"M":return X(J(A,e),a);case"MM":return X(te(2,e),a);case"Mo":return X(n.ordinalNumber(e,{unit:"month"}),a);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(j);function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),je((0,h.Z)(e),"priority",110),je((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){var a=function(e){return e-1};switch(t){case"L":return X(J(A,e),a);case"LL":return X(te(2,e),a);case"Lo":return X(n.ordinalNumber(e,{unit:"month"}),a);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(j),Ee=n(8504);function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ae=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),_e((0,h.Z)(e),"priority",100),_e((0,h.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return J(D,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,a){return(0,ce.Z)(function(e,t,n){(0,p.Z)(2,arguments);var a=(0,o.default)(e),r=(0,d.Z)(t),i=(0,Ee.Z)(a,n)-r;return a.setUTCDate(a.getUTCDate()-7*i),a}(e,n,a),a)}}]),n}(j),Se=n(9153);function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var De=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),ze((0,h.Z)(e),"priority",100),ze((0,h.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return J(D,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,pe.Z)(function(e,t){(0,p.Z)(2,arguments);var n=(0,o.default)(e),a=(0,d.Z)(t),r=(0,Se.Z)(n)-a;return n.setUTCDate(n.getUTCDate()-7*r),n}(e,n))}}]),n}(j);function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Ie=[31,29,31,30,31,30,31,31,30,31,30,31],Pe=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),Te((0,h.Z)(e),"priority",90),Te((0,h.Z)(e),"subPriority",1),Te((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return J(S,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){var n=ie(e.getUTCFullYear()),a=e.getUTCMonth();return n?t>=1&&t<=Ie[a]:t>=1&&t<=Oe[a]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(j);function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Re=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),Ne((0,h.Z)(e),"priority",90),Ne((0,h.Z)(e),"subpriority",1),Ne((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return J(z,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return ie(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(j),Le=n(4408);function Me(e,t,n){var a,r,i,s,l,c,u,h;(0,p.Z)(2,arguments);var m=(0,Le.j)(),f=(0,d.Z)(null!==(a=null!==(r=null!==(i=null!==(s=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==s?s:null===n||void 0===n||null===(l=n.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:m.weekStartsOn)&&void 0!==r?r:null===(u=m.locale)||void 0===u||null===(h=u.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==a?a:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,o.default)(e),b=(0,d.Z)(t),y=g.getUTCDay(),v=b%7,k=(v+7)%7,w=(k=0&&t<=6}},{key:"set",value:function(e,t,n,a){return(e=Me(e,n,a)).setUTCHours(0,0,0,0),e}}]),n}(j);function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),Ue((0,h.Z)(e),"priority",90),Ue((0,h.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n,a){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+a.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return X(te(t.length,e),r);case"eo":return X(n.ordinalNumber(e,{unit:"day"}),r);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,a){return(e=Me(e,n,a)).setUTCHours(0,0,0,0),e}}]),n}(j);function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ze=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),He((0,h.Z)(e),"priority",90),He((0,h.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n,a){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+a.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return X(te(t.length,e),r);case"co":return X(n.ordinalNumber(e,{unit:"day"}),r);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,a){return(e=Me(e,n,a)).setUTCHours(0,0,0,0),e}}]),n}(j);function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ve=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),We((0,h.Z)(e),"priority",90),We((0,h.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){var a=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return te(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return X(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),a);case"iiiii":return X(n.day(e,{width:"narrow",context:"formatting"}),a);case"iiiiii":return X(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),a);default:return X(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){(0,p.Z)(2,arguments);var n=(0,d.Z)(t);n%7===0&&(n-=7);var a=1,r=(0,o.default)(e),i=r.getUTCDay(),s=((n%7+7)%7=1&&t<=12}},{key:"set",value:function(e,t,n){var a=e.getUTCHours()>=12;return a&&n<12?e.setUTCHours(n+12,0,0,0):a||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(j);function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nt=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),tt((0,h.Z)(e),"priority",70),tt((0,h.Z)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return J(T,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(j);function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rt=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),at((0,h.Z)(e),"priority",70),at((0,h.Z)(e),"incompatibleTokens",["h","H","k","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return J(I,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(j);function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ot=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),it((0,h.Z)(e),"priority",70),it((0,h.Z)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return J(O,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var a=n<=24?n%24:n;return e.setUTCHours(a,0,0,0),e}}]),n}(j);function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lt=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),st((0,h.Z)(e),"priority",60),st((0,h.Z)(e),"incompatibleTokens",["t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return J(N,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(j);function ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ut=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),ct((0,h.Z)(e),"priority",50),ct((0,h.Z)(e),"incompatibleTokens",["t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return J(R,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(j);function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),dt((0,h.Z)(e),"priority",30),dt((0,h.Z)(e),"incompatibleTokens",["t","T"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t){return X(te(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(j);function ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mt=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),ht((0,h.Z)(e),"priority",10),ht((0,h.Z)(e),"incompatibleTokens",["t","T","x"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t){switch(t){case"X":return $(V,e);case"XX":return $(G,e);case"XXXX":return $(Y,e);case"XXXXX":return $(Q,e);default:return $(K,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(j);function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),ft((0,h.Z)(e),"priority",10),ft((0,h.Z)(e),"incompatibleTokens",["t","T","X"]),e}return(0,b.Z)(n,[{key:"parse",value:function(e,t){switch(t){case"x":return $(V,e);case"xx":return $(G,e);case"xxxx":return $(Y,e);case"xxxxx":return $(Q,e);default:return $(K,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(j);function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),bt((0,h.Z)(e),"priority",40),bt((0,h.Z)(e),"incompatibleTokens","*"),e}return(0,b.Z)(n,[{key:"parse",value:function(e){return ee(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(j);function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kt=function(e){(0,m.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;return(0,g.Z)(this,n),e=t.apply(this,arguments),vt((0,h.Z)(e),"priority",20),vt((0,h.Z)(e),"incompatibleTokens","*"),e}return(0,b.Z)(n,[{key:"parse",value:function(e){return ee(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(j),wt={G:new E,y:new se,Y:new de,R:new me,u:new ge,Q:new ye,q:new ke,M:new xe,L:new Ce,w:new Ae,I:new De,d:new Pe,D:new Re,E:new Fe,e:new Be,c:new Ze,i:new Ve,a:new Ye,b:new Qe,B:new Je,h:new et,H:new nt,K:new rt,k:new ot,m:new lt,s:new ut,S:new pt,X:new mt,x:new gt,t:new yt,T:new kt},xt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ct=/^'([^]*?)'?$/,Et=/''/g,_t=/\S/,At=/[a-zA-Z]/;function St(e,t,n,h){var m,f,g,b,y,v,k,x,j,C,E,_,A,S,z,D,T,O;(0,p.Z)(3,arguments);var I=String(e),P=String(t),N=(0,Le.j)(),R=null!==(m=null!==(f=null===h||void 0===h?void 0:h.locale)&&void 0!==f?f:N.locale)&&void 0!==m?m:r.Z;if(!R.match)throw new RangeError("locale must contain match property");var L=(0,d.Z)(null!==(g=null!==(b=null!==(y=null!==(v=null===h||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==v?v:null===h||void 0===h||null===(k=h.locale)||void 0===k||null===(x=k.options)||void 0===x?void 0:x.firstWeekContainsDate)&&void 0!==y?y:N.firstWeekContainsDate)&&void 0!==b?b:null===(j=N.locale)||void 0===j||null===(C=j.options)||void 0===C?void 0:C.firstWeekContainsDate)&&void 0!==g?g:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=(0,d.Z)(null!==(E=null!==(_=null!==(A=null!==(S=null===h||void 0===h?void 0:h.weekStartsOn)&&void 0!==S?S:null===h||void 0===h||null===(z=h.locale)||void 0===z||null===(D=z.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==A?A:N.weekStartsOn)&&void 0!==_?_:null===(T=N.locale)||void 0===T||null===(O=T.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==E?E:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===P)return""===I?(0,o.default)(n):new Date(NaN);var q,F={firstWeekContainsDate:L,weekStartsOn:M,locale:R},U=[new w],B=P.match(jt).map((function(e){var t=e[0];return t in l.Z?(0,l.Z[t])(e,R.formatLong):e})).join("").match(xt),H=[],Z=function(t){null!==h&&void 0!==h&&h.useAdditionalWeekYearTokens||!(0,u.Do)(t)||(0,u.qp)(t,P,e),null!==h&&void 0!==h&&h.useAdditionalDayOfYearTokens||!(0,u.Iu)(t)||(0,u.qp)(t,P,e);var n=t[0],a=wt[n];if(a){var r=a.incompatibleTokens;if(Array.isArray(r)){var i=H.find((function(e){return r.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===a.incompatibleTokens&&H.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));H.push({token:n,fullToken:t});var o=a.run(I,t,R.match,F);if(!o)return V=t,{v:new Date(NaN)};U.push(o.setter),I=o.rest}else{if(n.match(At))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=zt(t)),0!==I.indexOf(t))return V=t,{v:new Date(NaN)};I=I.slice(t.length)}V=t},W=(0,a.Z)(B);try{for(W.s();!(q=W.n()).done;){var V=q.value,G=Z(V);if("object"===typeof G)return G.v}}catch(ne){W.e(ne)}finally{W.f()}if(I.length>0&&_t.test(I))return new Date(NaN);var Y=U.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return U.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),K=(0,o.default)(n);if(isNaN(K.getTime()))return new Date(NaN);var Q,X=(0,i.Z)(K,(0,c.Z)(K)),J={},$=(0,a.Z)(Y);try{for($.s();!(Q=$.n()).done;){var ee=Q.value;if(!ee.validate(X,F))return new Date(NaN);var te=ee.set(X,J,F);Array.isArray(te)?(X=te[0],s(J,te[1])):X=te}}catch(ne){$.e(ne)}finally{$.f()}return X}function zt(e){return e.match(Ct)[1].replace(Et,"'")}},9831:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var a=n(2729),r=n(4522),i=n(9297);function o(e,t){var n;(0,r.Z)(1,arguments);var a=(0,i.Z)(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,s=d(e);if(s.date){var l=p(s.date,a);o=h(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,u=o.getTime(),m=0;if(s.time&&(m=f(s.time),isNaN(m)))return new Date(NaN);if(!s.timezone){var g=new Date(u+m),y=new Date(0);return y.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),y.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),y}return c=b(s.timezone),isNaN(c)?new Date(NaN):new Date(u+m+c)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){var t,n={},a=e.split(s.dateTimeDelimiter);if(a.length>2)return n;if(/:/.test(a[0])?t=a[0]:(n.date=a[0],t=a[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var r=s.timezone.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}function p(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(n);if(!a)return{year:NaN,restDateString:""};var r=a[1]?parseInt(a[1]):null,i=a[2]?parseInt(a[2]):null;return{year:null===i?r:100*i,restDateString:e.slice((a[1]||a[2]).length)}}function h(e,t){if(null===t)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var a=!!n[4],r=m(n[1]),i=m(n[2])-1,o=m(n[3]),s=m(n[4]),c=m(n[5])-1;if(a)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){var a=new Date(0);a.setUTCFullYear(e,0,4);var r=a.getUTCDay()||7,i=7*(t-1)+n+1-r;return a.setUTCDate(a.getUTCDate()+i),a}(t,s,c):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(y[t]||(v(e)?29:28))}(t,i,o)&&function(e,t){return t>=1&&t<=(v(e)?366:365)}(t,r)?(u.setUTCFullYear(t,i,Math.max(r,o)),u):new Date(NaN)}function m(e){return e?parseInt(e):1}function f(e){var t=e.match(c);if(!t)return NaN;var n=g(t[1]),r=g(t[2]),i=g(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,i)?n*a.vh+r*a.yJ+1e3*i:NaN}function g(e){return e&&parseFloat(e.replace(",","."))||0}function b(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(r*a.vh+i*a.yJ):NaN}var y=[31,null,31,30,31,30,31,31,30,31,30,31];function v(e){return e%400===0||e%4===0&&e%100!==0}},2618:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var a=n(9297),r=n(8527),i=n(4522);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,a.Z)(t);return n.setHours(o),n}},7227:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var a=n(9297),r=n(8527),i=n(4522);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,a.Z)(t);return n.setMinutes(o),n}},2363:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var a=n(9297),r=n(8527),i=n(4522);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),a=t.getMonth(),o=new Date(0);return o.setFullYear(n,a+1,0),o.setHours(0,0,0,0),o.getDate()}function s(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),s=(0,a.Z)(t),l=n.getFullYear(),c=n.getDate(),u=new Date(0);u.setFullYear(l,s,15),u.setHours(0,0,0,0);var d=o(u);return n.setMonth(s,Math.min(c,d)),n}},5765:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var a=n(9297),r=n(8527),i=n(2363),o=n(4522);function s(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),s=(0,a.Z)(t),l=Math.floor(n.getMonth()/3)+1,c=s-l;return(0,i.default)(n,n.getMonth()+3*c)}},9292:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var a=n(9297),r=n(8527),i=n(4522);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,a.Z)(t);return n.setSeconds(o),n}},5617:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var a=n(9297),r=n(8527),i=n(4522);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,a.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}},8347:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e);return t.setHours(0,0,0,0),t}},5719:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},3006:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(8527),r=n(4522);function i(e){(0,r.Z)(1,arguments);var t=(0,a.default)(e),n=t.getMonth(),i=n-n%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t}},9254:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var a=n(8527),r=n(9297),i=n(4522),o=n(4408);function s(e,t){var n,s,l,c,u,d,p,h;(0,i.Z)(1,arguments);var m=(0,o.j)(),f=(0,r.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:m.weekStartsOn)&&void 0!==s?s:null===(p=m.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,a.default)(e),b=g.getDay(),y=(b)+?/g),l={toggleBold:y,toggleItalic:v,drawLink:P,toggleHeadingSmaller:j,toggleHeadingBigger:C,drawImage:N,toggleBlockquote:x,toggleOrderedList:O,toggleUnorderedList:T,toggleCodeBlock:w,togglePreview:Z,toggleStrikethrough:k,toggleHeading1:E,toggleHeading2:_,toggleHeading3:A,toggleHeading4:S,toggleHeading5:z,toggleHeading6:D,cleanBlock:I,drawTable:q,drawHorizontalRule:F,undo:U,redo:B,toggleSideBySide:H,toggleFullScreen:b},c={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},u=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))&&(t=!0),t};function d(e){return e=o?e.replace("Ctrl","Cmd"):e.replace("Cmd","Ctrl")}function p(e,t,n,a){var r=h(e,!1,t,n,"button",a);r.classList.add("easymde-dropdown"),r.onclick=function(){r.focus()};var i=document.createElement("div");i.className="easymde-dropdown-content";for(var o=0;o0){for(var g=document.createElement("i"),b=0;b=0&&!n(p=l.getLineHandle(i));i--);var g,b,y,v,k=a(l.getTokenAt({line:i,ch:1})).fencedChars;n(l.getLineHandle(c.line))?(g="",b=c.line):n(l.getLineHandle(c.line-1))?(g="",b=c.line-1):(g=k+"\n",b=c.line),n(l.getLineHandle(u.line))?(y="",v=u.line,0===u.ch&&(v+=1)):0!==u.ch&&n(l.getLineHandle(u.line+1))?(y="",v=u.line+1):(y=k+"\n",v=u.line+1),0===u.ch&&(v-=1),l.operation((function(){l.replaceRange(y,{line:v,ch:0},{line:v+(y?0:1),ch:0}),l.replaceRange(g,{line:b,ch:0},{line:b+(g?0:1),ch:0})})),l.setSelection({line:b+(g?1:0),ch:0},{line:v+(g?1:-1),ch:0}),l.focus()}else{var w=c.line;if(n(l.getLineHandle(c.line))&&("fenced"===r(l,c.line+1)?(i=c.line,w=c.line+1):(o=c.line,w=c.line-1)),void 0===i)for(i=w;i>=0&&!n(p=l.getLineHandle(i));i--);if(void 0===o)for(s=l.lineCount(),o=w;o=0;i--)if(!(p=l.getLineHandle(i)).text.match(/^\s*$/)&&"indented"!==r(l,i,p)){i+=1;break}for(s=l.lineCount(),o=c.line;o ]+|[0-9]+(.|\)))[ ]*/,""),e.replaceRange(t,{line:r,ch:0},{line:r,ch:99999999999999})}(e.codemirror)}function P(e){var t=e.options,n="https://";if(t.promptURLs){var a=prompt(t.promptTexts.link,n);if(!a)return!1;n=R(a)}Y(e,"link",t.insertTexts.link,n)}function N(e){var t=e.options,n="https://";if(t.promptURLs){var a=prompt(t.promptTexts.image,n);if(!a)return!1;n=R(a)}Y(e,"image",t.insertTexts.image,n)}function R(e){return encodeURI(e).replace(/([\\()])/g,"\\$1")}function L(e){e.openBrowseFileWindow()}function M(e,t){var n=e.codemirror,a=f(n),r=e.options,i=t.substr(t.lastIndexOf("/")+1),o=i.substring(i.lastIndexOf(".")+1).replace(/\?.*$/,"").toLowerCase();if(["png","jpg","jpeg","gif","svg","apng","avif","webp"].includes(o))W(n,a.image,r.insertTexts.uploadedImage,t);else{var s=r.insertTexts.link;s[0]="["+i,W(n,a.link,s,t)}e.updateStatusBar("upload-image",e.options.imageTexts.sbOnUploaded.replace("#image_name#",i)),setTimeout((function(){e.updateStatusBar("upload-image",e.options.imageTexts.sbInit)}),1e3)}function q(e){var t=e.codemirror,n=f(t),a=e.options;W(t,n.table,a.insertTexts.table)}function F(e){var t=e.codemirror,n=f(t),a=e.options;W(t,n.image,a.insertTexts.horizontalRule)}function U(e){var t=e.codemirror;t.undo(),t.focus()}function B(e){var t=e.codemirror;t.redo(),t.focus()}function H(e){var t=e.codemirror,n=t.getWrapperElement(),a=n.nextSibling,r=e.toolbarElements&&e.toolbarElements["side-by-side"],i=!1,o=n.parentNode;a.classList.contains("editor-preview-active-side")?(!1===e.options.sideBySideFullscreen&&o.classList.remove("sided--no-fullscreen"),a.classList.remove("editor-preview-active-side"),r&&r.classList.remove("active"),n.classList.remove("CodeMirror-sided")):(setTimeout((function(){t.getOption("fullScreen")||(!1===e.options.sideBySideFullscreen?o.classList.add("sided--no-fullscreen"):b(e)),a.classList.add("editor-preview-active-side")}),1),r&&r.classList.add("active"),n.classList.add("CodeMirror-sided"),i=!0);var s=n.lastChild;if(s.classList.contains("editor-preview-active")){s.classList.remove("editor-preview-active");var l=e.toolbarElements.preview,c=e.toolbar_div;l.classList.remove("active"),c.classList.remove("disabled-for-preview")}if(t.sideBySideRenderingFunction||(t.sideBySideRenderingFunction=function(){var t=e.options.previewRender(e.value(),a);null!=t&&(a.innerHTML=t)}),i){var u=e.options.previewRender(e.value(),a);null!=u&&(a.innerHTML=u),t.on("update",t.sideBySideRenderingFunction)}else t.off("update",t.sideBySideRenderingFunction);t.refresh()}function Z(e){var t=e.codemirror,n=t.getWrapperElement(),a=e.toolbar_div,r=!!e.options.toolbar&&e.toolbarElements.preview,i=n.lastChild;if(t.getWrapperElement().nextSibling.classList.contains("editor-preview-active-side")&&H(e),!i||!i.classList.contains("editor-preview-full")){if((i=document.createElement("div")).className="editor-preview-full",e.options.previewClass)if(Array.isArray(e.options.previewClass))for(var o=0;o\s+/,"unordered-list":a,"ordered-list":a},c=function(e,t,i){var o=a.exec(t),s=function(e,t){return{quote:">","unordered-list":n,"ordered-list":"%%i."}[e].replace("%%i",t)}(e,u);return null!==o?(function(e,t){var a=new RegExp({quote:">","unordered-list":"\\"+n,"ordered-list":"\\d+."}[e]);return t&&a.test(t)}(e,o[2])&&(s=""),t=o[1]+s+o[3]+t.replace(r,"").replace(l[e],"$1")):0==i&&(t=s+" "+t),t},u=1,d=o.line;d<=s.line;d++)!function(n){var a=e.getLine(n);i[t]?a=a.replace(l[t],"$1"):("unordered-list"==t&&(a=c("ordered-list",a,!0)),a=c(t,a,!1),u+=1),e.replaceRange(a,{line:n,ch:0},{line:n,ch:99999999999999})}(d);e.focus()}}function Y(e,t,n,a){if(e.codemirror&&!e.isPreviewActive()){var r=e.codemirror,i=f(r)[t];if(i){var o=r.getCursor("start"),s=r.getCursor("end"),l=r.getLine(o.line),c=l.slice(0,o.ch),u=l.slice(o.ch);"link"==t?c=c.replace(/(.*)[^!]\[/,"$1"):"image"==t&&(c=c.replace(/(.*)!\[$/,"$1")),u=u.replace(/]\(.*?\)/,""),r.replaceRange(c+u,{line:o.line,ch:0},{line:o.line,ch:99999999999999}),o.ch-=n[0].length,o!==s&&(s.ch-=n[0].length),r.setSelection(o,s),r.focus()}else W(r,i,n,a)}}function K(e,t,n,a){if(e.codemirror&&!e.isPreviewActive()){a="undefined"===typeof a?n:a;var r,i=e.codemirror,o=f(i),s=n,l=a,c=i.getCursor("start"),u=i.getCursor("end");o[t]?(s=(r=i.getLine(c.line)).slice(0,c.ch),l=r.slice(c.ch),"bold"==t?(s=s.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),l=l.replace(/(\*\*|__)/,"")):"italic"==t?(s=s.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),l=l.replace(/(\*|_)/,"")):"strikethrough"==t&&(s=s.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),l=l.replace(/(\*\*|~~)/,"")),i.replaceRange(s+l,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),"bold"==t||"strikethrough"==t?(c.ch-=2,c!==u&&(u.ch-=2)):"italic"==t&&(c.ch-=1,c!==u&&(u.ch-=1))):(r=i.getSelection(),"bold"==t?r=(r=r.split("**").join("")).split("__").join(""):"italic"==t?r=(r=r.split("*").join("")).split("_").join(""):"strikethrough"==t&&(r=r.split("~~").join("")),i.replaceSelection(s+r+l),c.ch+=n.length,u.ch=c.ch+r.length),i.setSelection(c,u),i.focus()}}function Q(e,t){if(Math.abs(e)<1024)return""+e+t[0];var n=0;do{e/=1024,++n}while(Math.abs(e)>=1024&&n=19968?n+=t[a].length:n+=1;return n}var ee={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},te={bold:{name:"bold",action:y,className:ee.bold,title:"Bold",default:!0},italic:{name:"italic",action:v,className:ee.italic,title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:k,className:ee.strikethrough,title:"Strikethrough"},heading:{name:"heading",action:j,className:ee.heading,title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:j,className:ee["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:C,className:ee["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:E,className:ee["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:_,className:ee["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:A,className:ee["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:w,className:ee.code,title:"Code"},quote:{name:"quote",action:x,className:ee.quote,title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:T,className:ee["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:O,className:ee["ordered-list"],title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:I,className:ee["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:P,className:ee.link,title:"Create Link",default:!0},image:{name:"image",action:N,className:ee.image,title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:L,className:ee["upload-image"],title:"Import an image"},table:{name:"table",action:q,className:ee.table,title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:F,className:ee["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:Z,className:ee.preview,noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:H,className:ee["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:b,className:ee.fullscreen,noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:ee.guide,noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:U,className:ee.undo,noDisable:!0,title:"Undo"},redo:{name:"redo",action:B,className:ee.redo,noDisable:!0,title:"Redo"}},ne={link:["[","](#url#)"],image:["![","](#url#)"],uploadedImage:["![](#url#)",""],table:["","\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],horizontalRule:["","\n\n-----\n\n"]},ae={link:"URL for the link:",image:"URL of the image:"},re={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},ie={bold:"**",code:"```",italic:"*"},oe={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},se={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:"Image #image_name# is too big (#image_size#).\nMaximum file size is #image_max_size#.",importError:"Something went wrong when uploading the image #image_name#."};function le(e){(e=e||{}).parent=this;var t=!0;if(!1===e.autoDownloadFontAwesome&&(t=!1),!0!==e.autoDownloadFontAwesome)for(var n=document.styleSheets,a=0;a-1&&(t=!1);if(t){var r=document.createElement("link");r.rel="stylesheet",r.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(r)}if(e.element)this.element=e.element;else if(null===e.element)return void console.log("EasyMDE: Error. No element was found.");if(void 0===e.toolbar)for(var i in e.toolbar=[],te)Object.prototype.hasOwnProperty.call(te,i)&&(-1!=i.indexOf("separator-")&&e.toolbar.push("|"),(!0===te[i].default||e.showIcons&&e.showIcons.constructor===Array&&-1!=e.showIcons.indexOf(i))&&e.toolbar.push(i));if(Object.prototype.hasOwnProperty.call(e,"previewClass")||(e.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(e,"status")||(e.status=["autosave","lines","words","cursor"],e.uploadImage&&e.status.unshift("upload-image")),e.previewRender||(e.previewRender=function(e){return this.parent.markdown(e)}),e.parsingConfig=J({highlightFormatting:!0},e.parsingConfig||{}),e.insertTexts=J({},ne,e.insertTexts||{}),e.promptTexts=J({},ae,e.promptTexts||{}),e.blockStyles=J({},ie,e.blockStyles||{}),void 0!=e.autosave&&(e.autosave.timeFormat=J({},re,e.autosave.timeFormat||{})),e.iconClassMap=J({},ee,e.iconClassMap||{}),e.shortcuts=J({},c,e.shortcuts||{}),e.maxHeight=e.maxHeight||void 0,e.direction=e.direction||"ltr","undefined"!==typeof e.maxHeight?e.minHeight=e.maxHeight:e.minHeight=e.minHeight||"300px",e.errorCallback=e.errorCallback||function(e){alert(e)},e.uploadImage=e.uploadImage||!1,e.imageMaxSize=e.imageMaxSize||2097152,e.imageAccept=e.imageAccept||"image/png, image/jpeg, image/gif, image/avif",e.imageTexts=J({},oe,e.imageTexts||{}),e.errorMessages=J({},se,e.errorMessages||{}),e.imagePathAbsolute=e.imagePathAbsolute||!1,e.imageCSRFName=e.imageCSRFName||"csrfmiddlewaretoken",e.imageCSRFHeader=e.imageCSRFHeader||!1,void 0!=e.autosave&&void 0!=e.autosave.unique_id&&""!=e.autosave.unique_id&&(e.autosave.uniqueId=e.autosave.unique_id),e.overlayMode&&void 0===e.overlayMode.combine&&(e.overlayMode.combine=!0),this.options=e,this.render(),!e.initialValue||this.options.autosave&&!0===this.options.autosave.foundSavedValue||this.value(e.initialValue),e.uploadImage){var o=this;this.codemirror.on("dragenter",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbOnDragEnter),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("dragend",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbInit),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("dragleave",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbInit),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("dragover",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbOnDragEnter),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("drop",(function(t,n){n.stopPropagation(),n.preventDefault(),e.imageUploadFunction?o.uploadImagesUsingCustomFunction(e.imageUploadFunction,n.dataTransfer.files):o.uploadImages(n.dataTransfer.files)})),this.codemirror.on("paste",(function(t,n){e.imageUploadFunction?o.uploadImagesUsingCustomFunction(e.imageUploadFunction,n.clipboardData.files):o.uploadImages(n.clipboardData.files)}))}}function ce(){if("object"!==typeof localStorage)return!1;try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch(e){return!1}return!0}le.prototype.uploadImages=function(e,t,n){if(0!==e.length){for(var a=[],r=0;r$/,' target="_blank">');e=e.replace(n,a)}}return e}(a))}},le.prototype.render=function(e){if(e||(e=this.element||document.getElementsByTagName("textarea")[0]),!this._rendered||this._rendered!==e){this.element=e;var t,n,i=this.options,o=this,s={};for(var c in i.shortcuts)null!==i.shortcuts[c]&&null!==l[c]&&function(e){s[d(i.shortcuts[e])]=function(){var t=l[e];"function"===typeof t?t(o):"string"===typeof t&&window.open(t,"_blank")}}(c);if(s.Enter="newlineAndIndentContinueMarkdownList",s.Tab="tabAndIndentMarkdownList",s["Shift-Tab"]="shiftTabAndUnindentMarkdownList",s.Esc=function(e){e.getOption("fullScreen")&&b(o)},this.documentOnKeyDown=function(e){27==(e=e||window.event).keyCode&&o.codemirror.getOption("fullScreen")&&b(o)},document.addEventListener("keydown",this.documentOnKeyDown,!1),i.overlayMode?(a.defineMode("overlay-mode",(function(e){return a.overlayMode(a.getMode(e,!1!==i.spellChecker?"spell-checker":"gfm"),i.overlayMode.mode,i.overlayMode.combine)})),t="overlay-mode",(n=i.parsingConfig).gitHubSpice=!1):((t=i.parsingConfig).name="gfm",t.gitHubSpice=!1),!1!==i.spellChecker&&(t="spell-checker",(n=i.parsingConfig).name="gfm",n.gitHubSpice=!1,"function"===typeof i.spellChecker?i.spellChecker({codeMirrorInstance:a}):r({codeMirrorInstance:a})),this.codemirror=a.fromTextArea(e,{mode:t,backdrop:n,theme:void 0!=i.theme?i.theme:"easymde",tabSize:void 0!=i.tabSize?i.tabSize:2,indentUnit:void 0!=i.tabSize?i.tabSize:2,indentWithTabs:!1!==i.indentWithTabs,lineNumbers:!0===i.lineNumbers,autofocus:!0===i.autofocus,extraKeys:s,direction:i.direction,lineWrapping:!1!==i.lineWrapping,allowDropFileTypes:["text/plain"],placeholder:i.placeholder||e.getAttribute("placeholder")||"",styleSelectedText:void 0!=i.styleSelectedText?i.styleSelectedText:!u(),scrollbarStyle:void 0!=i.scrollbarStyle?i.scrollbarStyle:"native",configureMouse:function(e,t,n){return{addNew:!1}},inputStyle:void 0!=i.inputStyle?i.inputStyle:u()?"contenteditable":"textarea",spellcheck:void 0==i.nativeSpellcheck||i.nativeSpellcheck,autoRefresh:void 0!=i.autoRefresh&&i.autoRefresh}),this.codemirror.getScrollerElement().style.minHeight=i.minHeight,"undefined"!==typeof i.maxHeight&&(this.codemirror.getScrollerElement().style.height=i.maxHeight),!0===i.forceSync){var p=this.codemirror;p.on("change",(function(){p.save()}))}this.gui={};var h=document.createElement("div");h.classList.add("EasyMDEContainer"),h.setAttribute("role","application");var m=this.codemirror.getWrapperElement();m.parentNode.insertBefore(h,m),h.appendChild(m),!1!==i.toolbar&&(this.gui.toolbar=this.createToolbar()),!1!==i.status&&(this.gui.statusbar=this.createStatusbar()),void 0!=i.autosave&&!0===i.autosave.enabled&&(this.autosave(),this.codemirror.on("change",(function(){clearTimeout(o._autosave_timeout),o._autosave_timeout=setTimeout((function(){o.autosave()}),o.options.autosave.submit_delay||o.options.autosave.delay||1e3)})));var f=this;this.codemirror.on("update",(function(){i.previewImagesInEditor&&h.querySelectorAll(".cm-image-marker").forEach((function(e){var t=e.parentElement;if(t.innerText.match(/^!\[.*?\]\(.*\)/g)&&!t.hasAttribute("data-img-src")){var n=t.innerText.match("\\((.*)\\)");if(window.EMDEimagesCache||(window.EMDEimagesCache={}),n&&n.length>=2){var a=n[1];if(i.imagesPreviewHandler){var r=i.imagesPreviewHandler(n[1]);"string"===typeof r&&(a=r)}if(window.EMDEimagesCache[a])y(t,window.EMDEimagesCache[a]);else{var o=document.createElement("img");o.onload=function(){window.EMDEimagesCache[a]={naturalWidth:o.naturalWidth,naturalHeight:o.naturalHeight,url:a},y(t,window.EMDEimagesCache[a])},o.src=a}}}}))})),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(!0===i.autofocus||e.autofocus)&&this.codemirror.focus();var g=this.codemirror;setTimeout(function(){g.refresh()}.bind(g),0)}function y(e,t){var n,a;e.setAttribute("data-img-src",t.url),e.setAttribute("style","--bg-image:url("+t.url+");--width:"+t.naturalWidth+"px;--height:"+(n=t.naturalWidth,a=t.naturalHeight,nthis.options.imageMaxSize)r(i(this.options.errorMessages.fileTooLarge));else{var o=new FormData;o.append("image",e),a.options.imageCSRFToken&&!a.options.imageCSRFHeader&&o.append(a.options.imageCSRFName,a.options.imageCSRFToken);var s=new XMLHttpRequest;s.upload.onprogress=function(t){if(t.lengthComputable){var n=""+Math.round(100*t.loaded/t.total);a.updateStatusBar("upload-image",a.options.imageTexts.sbProgress.replace("#file_name#",e.name).replace("#progress#",n))}},s.open("POST",this.options.imageUploadEndpoint),a.options.imageCSRFToken&&a.options.imageCSRFHeader&&s.setRequestHeader(a.options.imageCSRFName,a.options.imageCSRFToken),s.onload=function(){try{var e=JSON.parse(this.responseText)}catch(n){return console.error("EasyMDE: The server did not return a valid json."),void r(i(a.options.errorMessages.importError))}200===this.status&&e&&!e.error&&e.data&&e.data.filePath?t((a.options.imagePathAbsolute?"":window.location.origin+"/")+e.data.filePath):e.error&&e.error in a.options.errorMessages?r(i(a.options.errorMessages[e.error])):e.error?r(i(e.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),r(i(a.options.errorMessages.importError)))},s.onerror=function(e){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+e.target.status+" ("+e.target.statusText+")"),r(a.options.errorMessages.importError)},s.send(o)}},le.prototype.uploadImageUsingCustomFunction=function(e,t){var n=this;e.apply(this,[t,function(e){M(n,e)},function(e){var a=function(e){var a=n.options.imageTexts.sizeUnits.split(",");return e.replace("#image_name#",t.name).replace("#image_size#",Q(t.size,a)).replace("#image_max_size#",Q(n.options.imageMaxSize,a))}(e);n.updateStatusBar("upload-image",a),setTimeout((function(){n.updateStatusBar("upload-image",n.options.imageTexts.sbInit)}),1e4),n.options.errorCallback(a)}])},le.prototype.setPreviewMaxHeight=function(){var e=this.codemirror.getWrapperElement(),t=e.nextSibling,n=parseInt(window.getComputedStyle(e).paddingTop),a=parseInt(window.getComputedStyle(e).borderTopWidth),r=(parseInt(this.options.maxHeight)+2*n+2*a).toString()+"px";t.style.height=r},le.prototype.createSideBySide=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling;if(!n||!n.classList.contains("editor-preview-side")){if((n=document.createElement("div")).className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var a=0;a0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=u,u.priorWebsocketSuccess=!1,r(u.prototype),u.protocol=s.protocol,u.Socket=u,u.Transport=n(1221),u.transports=n(6624),u.parser=n(2103),u.prototype.createTransport=function(e){i('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=s.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new a[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},u.prototype.open=function(){var e;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},u.prototype.setTransport=function(e){i("setting transport %s",e.name);var t=this;this.transport&&(i("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))},u.prototype.probe=function(e){i('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,a=this;function r(){if(a.onlyBinaryUpgrades){var r=!this.supportsBinary&&a.transport.supportsBinary;n=n||r}n||(i('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(r){if(!n)if("pong"===r.type&&"probe"===r.data){if(i('probe transport "%s" pong',e),a.upgrading=!0,a.emit("upgrading",t),!t)return;u.priorWebsocketSuccess="websocket"===t.name,i('pausing current transport "%s"',a.transport.name),a.transport.pause((function(){n||"closed"!==a.readyState&&(i("changing transport and sending upgrade packet"),p(),a.setTransport(t),t.send([{type:"upgrade"}]),a.emit("upgrade",t),t=null,a.upgrading=!1,a.flush())}))}else{i('probe transport "%s" failed',e);var o=new Error("probe error");o.transport=t.name,a.emit("upgradeError",o)}})))}function o(){n||(n=!0,p(),t.close(),t=null)}function s(n){var r=new Error("probe error: "+n);r.transport=t.name,o(),i('probe transport "%s" failed because of error: %s',e,n),a.emit("upgradeError",r)}function l(){s("transport closed")}function c(){s("socket closed")}function d(e){t&&e.name!==t.name&&(i('"%s" works - aborting "%s"',e.name,t.name),o())}function p(){t.removeListener("open",r),t.removeListener("error",s),t.removeListener("close",l),a.removeListener("close",c),a.removeListener("upgrading",d)}u.priorWebsocketSuccess=!1,t.once("open",r),t.once("error",s),t.once("close",l),this.once("close",c),this.once("upgrading",d),t.open()},u.prototype.onOpen=function(){if(i("socket open"),this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){i("starting upgrade probes");for(var e=0,t=this.upgrades.length;e';a=document.createElement(e)}catch(t){(a=document.createElement("iframe")).name=n.iframeId,a.src="javascript:0"}a.id=n.iframeId,n.form.appendChild(a),n.iframe=a}this.form.action=this.uri(),u(),e=e.replace(l,"\\\n"),this.area.value=e.replace(s,"\\n");try{this.form.submit()}catch(d){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&c()}:this.iframe.onload=c}},9812:function(e,t,n){var a=n(7536),r=n(1857),i=n(9773),o=n(993),s=n(6693)("engine.io-client:polling-xhr"),l=n(1892);function c(){}function u(e){if(r.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!==typeof location){var t="https:"===location.protocol,n=location.port;n||(n=t?443:80),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}}function d(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(e.exports=u,e.exports.Request=d,o(u,r),u.prototype.supportsBinary=!0,u.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new d(e)},u.prototype.doWrite=function(e,t){var n="string"!==typeof e&&void 0!==e,a=this.request({method:"POST",data:e,isBinary:n}),r=this;a.on("success",t),a.on("error",(function(e){r.onError("xhr post error",e)})),this.sendXhr=a},u.prototype.doPoll=function(){s("xhr poll");var e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e},i(d.prototype),d.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new a(e),n=this;try{s("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var r in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(r)&&t.setRequestHeader(r,this.extraHeaders[r])}catch(i){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{t.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&(t.responseType="arraybuffer")}catch(i){}4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"===typeof t.status?t.status:0)}),0))},s("xhr data %s",this.data),t.send(this.data)}catch(i){return void setTimeout((function(){n.onError(i)}),0)}"undefined"!==typeof document&&(this.index=d.requestsCount++,d.requests[this.index]=this)},d.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},d.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},d.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},d.prototype.cleanup=function(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,e)try{this.xhr.abort()}catch(t){}"undefined"!==typeof document&&delete d.requests[this.index],this.xhr=null}},d.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(n){}e=("application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&this.xhr.response||this.xhr.responseText}catch(n){this.onError(n)}null!=e&&this.onData(e)},d.prototype.hasXDR=function(){return"undefined"!==typeof XDomainRequest&&!this.xs&&this.enablesXDR},d.prototype.abort=function(){this.cleanup()},d.requestsCount=0,d.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",p);else if("function"===typeof addEventListener){addEventListener("onpagehide"in l?"pagehide":"unload",p,!1)}function p(){for(var e in d.requests)d.requests.hasOwnProperty(e)&&d.requests[e].abort()}},1857:function(e,t,n){var a=n(1221),r=n(5988),i=n(2103),o=n(993),s=n(5590),l=n(6693)("engine.io-client:polling");e.exports=u;var c=null!=new(n(7536))({xdomain:!1}).responseType;function u(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),a.call(this,e)}o(u,a),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(e){var t=this;function n(){l("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var a=0;this.polling&&(l("we are currently polling - waiting to pause"),a++,this.once("pollComplete",(function(){l("pre-pause polling complete"),--a||n()}))),this.writable||(l("we are currently writing - waiting to pause"),a++,this.once("drain",(function(){l("pre-pause writing complete"),--a||n()})))}else n()},u.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(e){var t=this;l("polling got data %s",e);i.decodePayload(e,this.socket.binaryType,(function(e,n,a){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var e=this;function t(){l("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},u.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};i.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},u.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=r.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},9747:function(e,t,n){var a,r,i=n(1221),o=n(2103),s=n(5988),l=n(993),c=n(5590),u=n(6693)("engine.io-client:websocket");if("undefined"!==typeof WebSocket?a=WebSocket:"undefined"!==typeof self&&(a=self.WebSocket||self.MozWebSocket),"undefined"===typeof window)try{r=n(7020)}catch(h){}var d=a||r;function p(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=a&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(d=r),i.call(this,e)}e.exports=p,l(p,i),p.prototype.name="websocket",p.prototype.supportsBinary=!0,p.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new d(e,t):new d(e):new d(e,t,n)}catch(a){return this.emit("error",a)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},p.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},p.prototype.write=function(e){var t=this;this.writable=!1;for(var n=e.length,a=0,r=n;a=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(a())},9707:function(e,t,n){function a(e){var n;function a(){if(a.enabled){var e=a,r=+new Date,i=r-(n||r);e.diff=i,e.prev=n,e.curr=r,n=r;for(var o=new Array(arguments.length),s=0;s0)return function(e){if((e=String(e)).length>100)return;var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o)return;var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*i;case"days":case"day":case"d":return s*r;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&!1===isNaN(e))return s.long?o(l=e,r,"day")||o(l,a,"hour")||o(l,n,"minute")||o(l,t,"second")||l+" ms":function(e){if(e>=r)return Math.round(e/r)+"d";if(e>=a)return Math.round(e/a)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},2103:function(e,t,n){var a,r=n(7660),i=n(8801),o=n(9873),s=n(7186),l=n(6397);"undefined"!==typeof ArrayBuffer&&(a=n(934));var c="undefined"!==typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!==typeof navigator&&/PhantomJS/i.test(navigator.userAgent),d=c||u;t.protocol=3;var p=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},h=r(p),m={type:"error",data:"parser error"},f=n(5665);function g(e,t,n){for(var a=new Array(e.length),r=s(e.length,n),i=function(e,n,r){t(n,(function(t,n){a[e]=n,r(t,a)}))},o=0;o1?{type:h[r],data:e.substring(1)}:{type:h[r]}:m}r=new Uint8Array(e)[0];var i=o(e,1);return f&&"blob"===n&&(i=new f([i])),{type:h[r],data:i}},t.decodeBase64Packet=function(e,t){var n=h[e.charAt(0)];if(!a)return{type:n,data:{base64:!0,data:e.substr(1)}};var r=a.decode(e.substr(1));return"blob"===t&&f&&(r=new f([r])),{type:n,data:r}},t.encodePayload=function(e,n,a){"function"===typeof n&&(a=n,n=null);var r=i(e);if(n&&r)return f&&!d?t.encodePayloadAsBlob(e,a):t.encodePayloadAsArrayBuffer(e,a);if(!e.length)return a("0:");g(e,(function(e,a){t.encodePacket(e,!!r&&n,!1,(function(e){a(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return a(t.join(""))}))},t.decodePayload=function(e,n,a){if("string"!==typeof e)return t.decodePayloadAsBinary(e,n,a);var r;if("function"===typeof n&&(a=n,n=null),""===e)return a(m,0,1);for(var i,o,s="",l=0,c=e.length;l0;){for(var s=new Uint8Array(r),l=0===s[0],c="",u=1;255!==s[u];u++){if(c.length>310)return a(m,0,1);c+=s[u]}r=o(r,2+c.length),c=parseInt(c);var d=o(r,0,c);if(l)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(f){var p=new Uint8Array(d);d="";for(u=0;u=55296&&t<=56319&&r=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function s(e,t){return r(e>>t&63|128)}function l(e,t){if(0==(4294967168&e))return r(e);var n="";return 0==(4294965248&e)?n=r(e>>6&31|192):0==(4294901760&e)?(o(e,t)||(e=65533),n=r(e>>12&15|224),n+=s(e,6)):0==(4292870144&e)&&(n=r(e>>18&7|240),n+=s(e,12),n+=s(e,6)),n+=r(63&e|128)}function c(){if(a>=n)throw Error("Invalid byte index");var e=255&t[a];if(a++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function u(e){var r,i;if(a>n)throw Error("Invalid byte index");if(a==n)return!1;if(r=255&t[a],a++,0==(128&r))return r;if(192==(224&r)){if((i=(31&r)<<6|c())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&r)){if((i=(15&r)<<12|c()<<6|c())>=2048)return o(i,e)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&r)&&(i=(7&r)<<18|c()<<12|c()<<6|c())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,a=i(e),r=a.length,o=-1,s="";++o65535&&(i+=r((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=r(t);return i}(c)}}},776:function(e,t,n){var a;!function(){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(a=function(){return i}.call(t,n,t,e))||(e.exports=a)}()},1132:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var a,r=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(a in e);return"undefined"===typeof a||t.call(e,a)},s=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(r)return r(e,n).value}return e[n]};e.exports=function e(){var t,n,a,r,c,u,d=arguments[0],p=1,h=arguments.length,m=!1;for("boolean"===typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});pi?e.substr(0,i):e;if((a=n.join("")).length>=i)return a;for(var o=y(e),l=0;l=i)return o[l]}function d(e,t){var n,a,r,i=[],o={},s={},l={},c=t.length||2;e.forEach((function(e){if(e||(e=""),!l[e])if(e.length0&&(s[r[f]]--,r.splice(f,1))}return n=i.map((function(e){return e.length})),0===n.length?e:0===Math.min.apply(null,n)?(t.length++,d(e,t)):e.map((function(e){return l[e][0]}))}function p(e,t){var r,i,s,c={};return e?((r=g(e,t))&&(e=(e=e.replace(n,"")).replace(a,"")),t.initials&&(r=t.initials),r||(r=u(e,t)),null!=(s=e.match(o))&&(i=s.pop()),i&&(e=e.replace(i,"")).trim()==="<"+i+">"&&(e="",r||(r=u(i,t))),(e=e.replace(l," ").trim())&&(c.name=e),r&&(c.initials=r),i&&(c.email=i),c):{}}function h(e,t){var n=d(e,t);return e.map((function(e,a){return t.existing[e]=n[a],p(e,t)}))}function m(e){return e.name||e.email?e.email?e.name?e.name+" ("+e.initials+") <"+e.email+">":e.email+" ("+e.initials+")":e.name+" ("+e.initials+")":e.initials}function f(e){return e=(e=r.test(e)?e.replace(i,""):e.replace(o,"")).replace(l," ").trim()}function g(e,t){var r;return t.existing[e]?t.existing[e]:n.test(e)?e:null!=(r=e.match(a))?r.pop():void 0}var b={};function y(e){var t,n=[];return e=f(e),b[e]?b[e].slice(0):(t=e.split(" ").map(k),n=(n=v(t)).sort((function(e,t){return e.length-t.length||n.indexOf(e)-n.indexOf(t)})),b[e]=n,n.slice(0))}function v(e){var t,n,a=e.shift();return e.length>0?(n=[],t=v(e),a.forEach((function(e){t.forEach((function(t){n.push(e+t)}))})),n):a}function k(e){for(var t=[];e.length;)t.unshift(e),e=e.substr(0,e.length-1);return t}function w(e){return e||(e={length:2}),"number"===typeof e&&(e={length:e}),e.length=Math.max(e.length||0,2),e.existing=e.existing||{},e}},1065:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,a=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function h(e){var t=e.match(n);t&&(d+=t.length);var a=e.lastIndexOf("\n");p=~a?e.length-a:p+e.length}function m(){var e={line:d,column:p};return function(t){return t.position=new f(e),v(),t}}function f(e){this.start=e,this.end={line:d,column:p},this.source=l.source}f.prototype.content=e;var g=[];function b(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var a=n[0];return h(a),e=e.slice(a.length),n}}function v(){y(a)}function k(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return b("End of comment missing");var a=e.slice(2,n-2);return p+=2,h(a),e=e.slice(n),p+=2,t({type:"comment",comment:a})}}function x(){var e=m(),n=y(r);if(n){if(w(),!y(i))return b("property missing ':'");var a=y(o),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:a?u(a[0].replace(t,c)):c});return y(s),l}}return v(),function(){var e,t=[];for(k(t);e=x();)!1!==e&&(t.push(e),k(t));return t}()}},6804:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},1571:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},7854:function(e){"use strict";for(var t=function(e){return null!==e&&!Array.isArray(e)&&"object"===typeof e},n={3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"},a=0;a<24;a+=1)n[112+a]="F"+(a+1);for(var r=0;r<26;r+=1){var i=r+65;n[i]=[String.fromCharCode(i+32),String.fromCharCode(i)]}var o={codes:n,getCode:function(e){return t(e)?e.keyCode||e.which||this[e.key]:this[e]},getKey:function(e){var a=t(e);if(a&&e.key)return e.key;var r=n[a?e.keyCode||e.which:e];return Array.isArray(r)&&(r=a?r[e.shiftKey?1:0]:r[0]),r},Cancel:3,Help:6,Backspace:8,Tab:9,Clear:12,Enter:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Accept:30,ModeChange:31," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,0:48,")":48,1:49,"!":49,2:50,"@":50,3:51,"#":51,4:52,$:52,5:53,"%":53,6:54,"^":54,7:55,"&":55,8:56,"*":56,9:57,"(":57,a:65,A:65,b:66,B:66,c:67,C:67,d:68,D:68,e:69,E:69,f:70,F:70,g:71,G:71,h:72,H:72,i:73,I:73,j:74,J:74,k:75,K:75,l:76,L:76,m:77,M:77,n:78,N:78,o:79,O:79,p:80,P:80,q:81,Q:81,r:82,R:82,s:83,S:83,t:84,T:84,u:85,U:85,v:86,V:86,w:87,W:87,x:88,X:88,y:89,Y:89,z:90,Z:90,OS:91,ContextMenu:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,VolumeMute:181,VolumeDown:182,VolumeUp:183,";":186,":":186,"=":187,"+":187,",":188,"<":188,"-":189,_:189,".":190,">":190,"/":191,"?":191,"`":192,"~":192,"[":219,"{":219,"\\":220,"|":220,"]":221,"}":221,"'":222,'"':222,Meta:224,AltGraph:225,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251};o.Spacebar=o[" "],o.Digit0=o[0],o.Digit1=o[1],o.Digit2=o[2],o.Digit3=o[3],o.Digit4=o[4],o.Digit5=o[5],o.Digit6=o[6],o.Digit7=o[7],o.Digit8=o[8],o.Digit9=o[9],o.Tilde=o["~"],o.GraveAccent=o["`"],o.ExclamationPoint=o["!"],o.AtSign=o["@"],o.PoundSign=o["#"],o.PercentSign=o["%"],o.Caret=o["^"],o.Ampersand=o["&"],o.PlusSign=o["+"],o.MinusSign=o["-"],o.EqualsSign=o["="],o.DivisionSign=o["/"],o.MultiplicationSign=o["*"],o.Comma=o[","],o.Decimal=o["."],o.Colon=o[":"],o.Semicolon=o[";"],o.Pipe=o["|"],o.BackSlash=o["\\"],o.QuestionMark=o["?"],o.SingleQuote=o["'"],o.DoubleQuote=o['"'],o.LeftCurlyBrace=o["{"],o.RightCurlyBrace=o["}"],o.LeftParenthesis=o["("],o.RightParenthesis=o[")"],o.LeftAngleBracket=o["<"],o.RightAngleBracket=o[">"],o.LeftSquareBracket=o["["],o.RightSquareBracket=o["]"],e.exports=o},4296:function(e,t,n){e=n.nmd(e);var a="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",m="[object Promise]",f="[object RegExp]",g="[object Set]",b="[object String]",y="[object Symbol]",v="[object WeakMap]",k="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[i]=C[o]=C[k]=C[s]=C[w]=C[l]=C[c]=C[u]=C[d]=C[p]=C[h]=C[f]=C[g]=C[b]=C[v]=!1;var E="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,_="object"==typeof self&&self&&self.Object===Object&&self,A=E||_||Function("return this")(),S=t&&!t.nodeType&&t,z=S&&e&&!e.nodeType&&e,D=z&&z.exports===S&&E.process,T=function(){try{return D&&D.binding("util")}catch(e){}}(),O=T&&T.isTypedArray;function I(e,t){for(var n=-1,a=e?e.length:0;++ns))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=1&r?new he:void 0;for(i.set(e,t),i.set(t,e);++u-1},de.prototype.set=function(e,t){var n=this.__data__,a=ge(n,e);return a<0?n.push([e,t]):n[a][1]=t,this},pe.prototype.clear=function(){this.__data__={hash:new ue,map:new(J||de),string:new ue}},pe.prototype.delete=function(e){return we(this,e).delete(e)},pe.prototype.get=function(e){return we(this,e).get(e)},pe.prototype.has=function(e){return we(this,e).has(e)},pe.prototype.set=function(e,t){return we(this,e).set(e,t),this},he.prototype.add=he.prototype.push=function(e){return this.__data__.set(e,a),this},he.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new de},me.prototype.delete=function(e){return this.__data__.delete(e)},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof de){var a=n.__data__;if(!J||a.length<199)return a.push([e,t]),this;n=this.__data__=new pe(a)}return n.set(e,t),this};var je=function(e){return Z.call(e)};function Ce(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||j.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=r}function Te(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Oe(e){return!!e&&"object"==typeof e}var Ie=O?function(e){return function(t){return e(t)}}(O):function(e){return Oe(e)&&De(e.length)&&!!C[Z.call(e)]};function Pe(e){return Se(e)?fe(e):ve(e)}e.exports=function(e,t,n){var a=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===a?be(e,t,n):!!a}},908:function(e,t,n){var a=n(8136)(n(7009),"DataView");e.exports=a},9676:function(e,t,n){var a=n(5403),r=n(2747),i=n(6037),o=n(4154),s=n(7728);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&i(u)?n>1?e(u,n-1,i,o,s):a(s,u):o||(s[s.length]=u)}return s}},5099:function(e,t,n){var a=n(372)();e.exports=a},5358:function(e,t,n){var a=n(5099),r=n(2742);e.exports=function(e,t){return e&&a(e,t,r)}},8667:function(e,t,n){var a=n(3082),r=n(9793);e.exports=function(e,t){for(var n=0,i=(t=a(t,e)).length;null!=e&&nr?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++a=r?e:a(e,t,n)}},7010:function(e,t,n){var a=n(6219);e.exports=function(e){var t=new e.constructor(e.byteLength);return new a(t).set(new a(e)),t}},4523:function(e,t,n){e=n.nmd(e);var a=n(7009),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?a.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,a=s?s(n):new e.constructor(n);return e.copy(a),a}},1022:function(e,t,n){var a=n(7010);e.exports=function(e,t){var n=t?a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},8503:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},4720:function(e,t,n){var a=n(7197),r=a?a.prototype:void 0,i=r?r.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},613:function(e,t,n){var a=n(7010);e.exports=function(e,t){var n=t?a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},8558:function(e,t,n){var a=n(152);e.exports=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e===e,o=a(e),s=void 0!==t,l=null===t,c=t===t,u=a(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&e=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}},291:function(e){e.exports=function(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&r(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++au))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=-1,f=!0,g=2&n?new a:void 0;for(l.set(e,t),l.set(t,e);++m-1&&e%1==0&&e-1}},7109:function(e,t,n){var a=n(7112);e.exports=function(e,t){var n=this.__data__,r=a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},4086:function(e,t,n){var a=n(9676),r=n(8384),i=n(5797);e.exports=function(){this.size=0,this.__data__={hash:new a,map:new(i||r),string:new a}}},9255:function(e,t,n){var a=n(2799);e.exports=function(e){var t=a(this,e).delete(e);return this.size-=t?1:0,t}},9186:function(e,t,n){var a=n(2799);e.exports=function(e){return a(this,e).get(e)}},3423:function(e,t,n){var a=n(2799);e.exports=function(e){return a(this,e).has(e)}},3739:function(e,t,n){var a=n(2799);e.exports=function(e,t){var n=a(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,a){n[++t]=[a,e]})),n}},284:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},4634:function(e,t,n){var a=n(9151);e.exports=function(e){var t=a(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9620:function(e,t,n){var a=n(8136)(Object,"create");e.exports=a},5964:function(e,t,n){var a=n(2709)(Object.keys,Object);e.exports=a},4221:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},9494:function(e,t,n){e=n.nmd(e);var a=n(1032),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&a.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},3581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},4262:function(e,t,n){var a=n(3665),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=r(i.length-t,0),l=Array(s);++o0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},511:function(e,t,n){var a=n(8384);e.exports=function(){this.__data__=new a,this.size=0}},835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},707:function(e){e.exports=function(e){return this.__data__.get(e)}},8832:function(e){e.exports=function(e){return this.__data__.has(e)}},5077:function(e,t,n){var a=n(8384),r=n(5797),i=n(8059);e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var o=n.__data__;if(!r||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},4651:function(e,t,n){var a=n(405),r=n(7302),i=n(3007);e.exports=function(e){return r(e)?i(e):a(e)}},7580:function(e,t,n){var a=n(4622),r=n(7302),i=n(2129);e.exports=function(e){return r(e)?i(e):a(e)}},170:function(e,t,n){var a=n(4634),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=a((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,a,r){t.push(a?r.replace(i,"$1"):n||e)})),t}));e.exports=o},9793:function(e,t,n){var a=n(152);e.exports=function(e){if("string"==typeof e||a(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},7907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},6050:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},3007:function(e){var t="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+a+")"+"?",l="[\\ufe0e\\ufe0f]?",c=l+s+("(?:\\u200d(?:"+[r,i,o].join("|")+")"+l+s+")*"),u="(?:"+[r+n+"?",n,i,o,t].join("|")+")",d=RegExp(a+"(?="+a+")|"+u+c,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},2129:function(e){var t="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+a+")"+"?",l="[\\ufe0e\\ufe0f]?",c=l+s+("(?:\\u200d(?:"+[r,i,o].join("|")+")"+l+s+")*"),u="(?:"+[r+n+"?",n,i,o,t].join("|")+")",d=RegExp(a+"(?="+a+")|"+u+c,"g");e.exports=function(e){return e.match(d)||[]}},1029:function(e){var t="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",i="["+r+"]",o="\\d+",s="[\\u2700-\\u27bf]",l="["+n+"]",c="[^\\ud800-\\udfff"+r+o+t+n+a+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+a+"]",h="(?:"+l+"|"+c+")",m="(?:"+p+"|"+c+")",f="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",g="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",v=y+b+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",u,d].join("|")+")"+y+b+")*"),k="(?:"+[s,u,d].join("|")+")"+v,w=RegExp([p+"?"+l+"+"+f+"(?="+[i,p,"$"].join("|")+")",m+"+"+g+"(?="+[i,p+h,"$"].join("|")+")",p+"?"+h+"+"+f,p+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,k].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},567:function(e,t,n){var a=n(3131),r=n(7810)((function(e,t,n){return t=t.toLowerCase(),e+(n?a(t):t)}));e.exports=r},3131:function(e,t,n){var a=n(3518),r=n(2085);e.exports=function(e){return r(a(e).toLowerCase())}},1547:function(e){e.exports=function(e){return function(){return e}}},4857:function(e,t,n){var a=n(5868),r=n(3518),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=r(e))&&e.replace(i,a).replace(o,"")}},9231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},86:function(e,t,n){var a=n(4903),r=n(7523),i=n(6025),o=n(3629);e.exports=function(e,t){return(o(e)?a:r)(e,i(t,3))}},5506:function(e,t,n){var a=n(5182);e.exports=function(e){return(null==e?0:e.length)?a(e,1):[]}},6181:function(e,t,n){var a=n(8667);e.exports=function(e,t,n){var r=null==e?void 0:a(e,t);return void 0===r?n:r}},5658:function(e,t,n){var a=n(529),r=n(6417);e.exports=function(e,t){return null!=e&&r(e,t,a)}},2100:function(e){e.exports=function(e){return e}},4963:function(e,t,n){var a=n(4906),r=n(3141),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=a(function(){return arguments}())?a:function(e){return r(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},3629:function(e){var t=Array.isArray;e.exports=t},1473:function(e,t,n){var a=n(4786),r=n(4635);e.exports=function(e){return null!=e&&r(e.length)&&!a(e)}},6279:function(e,t,n){var a=n(1473),r=n(3141);e.exports=function(e){return r(e)&&a(e)}},5174:function(e,t,n){e=n.nmd(e);var a=n(7009),r=n(9488),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?a.Buffer:void 0,l=(s?s.isBuffer:void 0)||r;e.exports=l},4786:function(e,t,n){var a=n(9066),r=n(8092);e.exports=function(e){if(!r(e))return!1;var t=a(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},4635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},103:function(e,t,n){var a=n(3085),r=n(6194),i=n(9494),o=i&&i.isMap,s=o?r(o):a;e.exports=s},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3977:function(e,t,n){var a=n(9066),r=n(1137),i=n(3141),o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=a(e))return!1;var t=r(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},5625:function(e,t,n){var a=n(7817),r=n(6194),i=n(9494),o=i&&i.isRegExp,s=o?r(o):a;e.exports=s},6995:function(e,t,n){var a=n(8680),r=n(6194),i=n(9494),o=i&&i.isSet,s=o?r(o):a;e.exports=s},152:function(e,t,n){var a=n(9066),r=n(3141);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==a(e)}},9102:function(e,t,n){var a=n(8150),r=n(6194),i=n(9494),o=i&&i.isTypedArray,s=o?r(o):a;e.exports=s},2530:function(e){e.exports=function(e){return void 0===e}},2742:function(e,t,n){var a=n(7538),r=n(3654),i=n(1473);e.exports=function(e){return i(e)?a(e):r(e)}},3961:function(e,t,n){var a=n(7538),r=n(8664),i=n(1473);e.exports=function(e){return i(e)?a(e,!0):r(e)}},5727:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},9151:function(e,t,n){var a=n(8059);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var o=e.apply(this,a);return n.cache=i.set(r,o)||i,o};return n.cache=new(r.Cache||a),n}r.Cache=a,e.exports=r},9286:function(e,t,n){var a=n(4173),r=n(9934)((function(e,t,n){a(e,t,n)}));e.exports=r},6754:function(e){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},4242:function(e,t,n){var a=n(8950),r=n(1905),i=n(6555),o=n(3082),s=n(4503),l=n(6013),c=n(7038),u=n(5341),d=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=a(t,(function(t){return t=o(t,e),c||(c=t.length>1),t})),s(e,u(e),n),c&&(n=r(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},5812:function(e,t,n){var a=n(3226),r=n(3629);e.exports=function(e,t,n,i){return null==e?[]:(r(t)||(t=null==t?[]:[t]),r(n=i?void 0:n)||(n=null==n?[]:[n]),a(e,t,n))}},6460:function(e,t,n){var a=n(4980),r=n(7038)((function(e,t){return null==e?{}:a(e,t)}));e.exports=r},7790:function(e,t,n){var a=n(8950),r=n(6025),i=n(2591),o=n(5341);e.exports=function(e,t){if(null==e)return{};var n=a(o(e),(function(e){return[e]}));return t=r(t),i(e,n,(function(e,n){return t(e,n[0])}))}},38:function(e,t,n){var a=n(9586),r=n(4084),i=n(5823),o=n(9793);e.exports=function(e){return i(e)?a(o(e)):r(e)}},4397:function(e,t,n){var a=n(4903),r=n(7523),i=n(6025),o=n(3629),s=n(6754);e.exports=function(e,t){return(o(e)?a:r)(e,s(i(t,3)))}},4286:function(e,t,n){var a=n(5182),r=n(3226),i=n(8794),o=n(3195),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),r(e,a(t,1),[])}));e.exports=s},8174:function(e){e.exports=function(){return[]}},9488:function(e){e.exports=function(){return!1}},1495:function(e,t,n){var a=n(2582),r=1/0;e.exports=function(e){return e?(e=a(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},9753:function(e,t,n){var a=n(1495);e.exports=function(e){var t=a(e),n=t%1;return t===t?n?t-n:t:0}},2582:function(e,t,n){var a=n(821),r=n(8092),i=n(152),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},6576:function(e,t,n){var a=n(4503),r=n(3961);e.exports=function(e){return a(e,r(e))}},3518:function(e,t,n){var a=n(2446);e.exports=function(e){return null==e?"":a(e)}},1981:function(e,t,n){var a=n(2446),r=n(9813),i=n(7302),o=n(8092),s=n(5625),l=n(4651),c=n(7580),u=n(9753),d=n(3518),p=/\w*$/;e.exports=function(e,t){var n=30,h="...";if(o(t)){var m="separator"in t?t.separator:m;n="length"in t?u(t.length):n,h="omission"in t?a(t.omission):h}var f=(e=d(e)).length;if(i(e)){var g=c(e);f=g.length}if(n>=f)return e;var b=n-l(h);if(b<1)return h;var y=g?r(g,0,b).join(""):e.slice(0,b);if(void 0===m)return y+h;if(g&&(b+=y.length-b),s(m)){if(e.slice(b).search(m)){var v,k=y;for(m.global||(m=RegExp(m.source,d(p.exec(m))+"g")),m.lastIndex=0;v=m.exec(k);)var w=v.index;y=y.slice(0,void 0===w?b:w)}}else if(e.indexOf(a(m),b)!=b){var x=y.lastIndexOf(m);x>-1&&(y=y.slice(0,x))}return y+h}},2085:function(e,t,n){var a=n(322)("toUpperCase");e.exports=a},5660:function(e,t,n){var a=n(240),r=n(7137),i=n(3518),o=n(1029);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?r(e)?o(e):a(e):e.match(t)||[]}},2366:function(e){"use strict";var t={};function n(e,a,r){var i,o,s,l,c,u="";for("string"!==typeof a&&(r=a,a=n.defaultChars),"undefined"===typeof r&&(r=!0),c=function(e){var n,a,r=t[e];if(r)return r;for(r=t[e]=[],n=0;n<128;n++)a=String.fromCharCode(n),/^[0-9a-z]$/i.test(a)?r.push(a):r.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1=56320&&l<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(r){return!1}}()?Object.assign:function(e,i){for(var o,s,l=r(e),c=1;cthis._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._cache[e]},t.remove=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t.isValidCacheKey=function(e){return n(e)},e}(),u=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;l(t),this._cache={},this._cacheOrdering=[],this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache[e]=t,this._registerCacheHit(e),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._registerCacheHit(e),this._cache[e]},t.remove=function(e){this._deleteCacheHit(e),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t._registerCacheHit=function(e){this._deleteCacheHit(e),this._cacheOrdering.push(e)},t._deleteCacheHit=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1)},t.isValidCacheKey=function(e){return n(e)},e}(),d=function(){function e(){this._cache=new Map}var t=e.prototype;return t.set=function(e,t){this._cache.set(e,t)},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),p=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;l(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),h=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;l(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){var t=this._cache.get(e);return this._cache.has(e)&&(this.remove(e),this._cache.set(e,t)),t},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}();e.FifoCacheObject=c,e.FifoMapCache=p,e.FifoObjectCache=c,e.FlatCacheObject=a,e.FlatMapCache=d,e.FlatObjectCache=a,e.LruCacheObject=h,e.LruMapCache=h,e.LruObjectCache=u,e.createStructuredCachedSelector=s,e.default=o,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(6916))},9513:function(e,t,n){!function(e,t,n,a,r,i,o,s,l,c,u,d,p,h,m,f,g,b,y,v,k,w,x,j,C,E,_,A,S,z,D,T,O,I,P,N,R,L,M,q,F,U,B,H,Z,W,V,G,Y,K,Q,X,J,$,ee,te,ne,ae,re,ie,oe,se,le){"use strict";function ce(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ue=ce(t),de=ce(a),pe=ce(r),he=ce(i),me=ce(o),fe=ce(s),ge=ce(l),be=ce(c),ye=ce(u),ve=ce(d),ke=ce(p),we=ce(f),xe=ce(g),je=ce(b),Ce=ce(y),Ee=ce(v),_e=ce(k),Ae=ce(w),Se=ce(x),ze=ce(j),De=ce(C),Te=ce(E),Oe=ce(_),Ie=ce(A),Pe=ce(S),Ne=ce(z),Re=ce(D),Le=ce(T),Me=ce(O),qe=ce(I),Fe=ce(P),Ue=ce(N),Be=ce(R),He=ce(L),Ze=ce(M),We=ce(F),Ve=ce(U),Ge=ce(B),Ye=ce(H),Ke=ce(Z),Qe=ce(W),Xe=ce(V),Je=ce(K),$e=ce(Q),et=ce(X),tt=ce(J),nt=ce($),at=ce(ee),rt=ce(te),it=ce(ne),ot=ce(ae),st=ce(re),lt=ce(ie),ct=ce(oe),ut=ce(se);function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function pt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=new Array(t);n0&&(i=st.default(e,t.slice(0,e.length),new Date)),Pt(i)||(i=new Date(e))),Pt(i)&&s?i:null)}function Pt(e,t){return t=t||new Date("1/1/1000"),he.default(e)&&!rt.default(e,t)}function Nt(e,t,n){if("en"===n)return me.default(e,t,{awareOfUnicodeTokens:!0});var a=Jt(n);return n&&!a&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!a&&Xt()&&Jt(Xt())&&(a=Jt(Xt())),me.default(e,t,{locale:a||null,awareOfUnicodeTokens:!0})}function Rt(e,t){var n=t.dateFormat,a=t.locale;return e&&Nt(e,Array.isArray(n)?n[0]:n,a)||""}function Lt(e,t){var n=t.hour,a=void 0===n?0:n,r=t.minute,i=void 0===r?0:r,o=t.second,s=void 0===o?0:o;return Le.default(Re.default(Ne.default(e,s),i),a)}function Mt(e,t){var n=t&&Jt(t)||Xt()&&Jt(Xt());return De.default(e,n?{locale:n}:null)}function qt(e,t){return Nt(e,"ddd",t)}function Ft(e){return Ve.default(e)}function Ut(e,t,n){var a=Jt(t||Xt());return Ge.default(e,{locale:a,weekStartsOn:n})}function Bt(e){return Ye.default(e)}function Ht(e){return Qe.default(e)}function Zt(e){return Ke.default(e)}function Wt(e,t){return e&&t?tt.default(e,t):!e&&!t}function Vt(e,t){return e&&t?et.default(e,t):!e&&!t}function Gt(e,t){return e&&t?nt.default(e,t):!e&&!t}function Yt(e,t){return e&&t?$e.default(e,t):!e&&!t}function Kt(e,t){return e&&t?Je.default(e,t):!e&&!t}function Qt(e,t,n){var a,r=Ve.default(t),i=Xe.default(n);try{a=it.default(e,{start:r,end:i})}catch(e){a=!1}return a}function Xt(){return("undefined"!=typeof window?window:globalThis).__localeId__}function Jt(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function $t(e,t){return Nt(Me.default(Ot(),e),"LLLL",t)}function en(e,t){return Nt(Me.default(Ot(),e),"LLL",t)}function tn(e,t){return Nt(qe.default(Ot(),e),"QQQ",t)}function nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,a=t.maxDate,r=t.excludeDates,i=t.excludeDateIntervals,o=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return un(e,{minDate:n,maxDate:a})||r&&r.some((function(t){return Yt(e,t)}))||i&&i.some((function(t){var n=t.start,a=t.end;return it.default(e,{start:n,end:a})}))||o&&!o.some((function(t){return Yt(e,t)}))||s&&!s.some((function(t){var n=t.start,a=t.end;return it.default(e,{start:n,end:a})}))||l&&!l(Ot(e))||!1}function an(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,a=t.excludeDateIntervals;return a&&a.length>0?a.some((function(t){var n=t.start,a=t.end;return it.default(e,{start:n,end:a})})):n&&n.some((function(t){return Yt(e,t)}))||!1}function rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,a=t.maxDate,r=t.excludeDates,i=t.includeDates,o=t.filterDate;return un(e,{minDate:n,maxDate:a})||r&&r.some((function(t){return Vt(e,t)}))||i&&!i.some((function(t){return Vt(e,t)}))||o&&!o(Ot(e))||!1}function on(e,t,n,a){var r=Ie.default(e),i=Te.default(e),o=Ie.default(t),s=Te.default(t),l=Ie.default(a);return r===o&&r===l?i<=n&&n<=s:r=n||lr:void 0}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,a=t.maxDate,r=t.excludeDates,i=t.includeDates,o=t.filterDate;return un(e,{minDate:n,maxDate:a})||r&&r.some((function(t){return Gt(e,t)}))||i&&!i.some((function(t){return Gt(e,t)}))||o&&!o(Ot(e))||!1}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,a=t.maxDate;return un(new Date(e,0,1),{minDate:n,maxDate:a})||!1}function cn(e,t,n,a){var r=Ie.default(e),i=Oe.default(e),o=Ie.default(t),s=Oe.default(t),l=Ie.default(a);return r===o&&r===l?i<=n&&n<=s:r=n||lr:void 0}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,a=t.maxDate;return n&&He.default(e,n)<0||a&&He.default(e,a)>0}function dn(e,t){return t.some((function(t){return Ae.default(t)===Ae.default(e)&&_e.default(t)===_e.default(e)}))}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,a=t.includeTimes,r=t.filterTime;return n&&dn(e,n)||a&&!dn(e,a)||r&&!r(e)||!1}function hn(e,t){var n=t.minTime,a=t.maxTime;if(!n||!a)throw new Error("Both minTime and maxTime props required");var r,i=Ot(),o=Le.default(Re.default(i,_e.default(e)),Ae.default(e)),s=Le.default(Re.default(i,_e.default(n)),Ae.default(n)),l=Le.default(Re.default(i,_e.default(a)),Ae.default(a));try{r=!it.default(o,{start:s,end:l})}catch(e){r=!1}return r}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,a=t.includeDates,r=je.default(e,1);return n&&Ze.default(n,r)>0||a&&a.every((function(e){return Ze.default(e,r)>0}))||!1}function fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,a=t.includeDates,r=ve.default(e,1);return n&&Ze.default(r,n)>0||a&&a.every((function(e){return Ze.default(r,e)>0}))||!1}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,a=t.includeDates,r=Ce.default(e,1);return n&&We.default(n,r)>0||a&&a.every((function(e){return We.default(e,r)>0}))||!1}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,a=t.includeDates,r=ke.default(e,1);return n&&We.default(r,n)>0||a&&a.every((function(e){return We.default(r,e)>0}))||!1}function yn(e){var t=e.minDate,n=e.includeDates;if(n&&t){var a=n.filter((function(e){return He.default(e,t)>=0}));return Ue.default(a)}return n?Ue.default(n):t}function vn(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var a=n.filter((function(e){return He.default(e,t)<=0}));return Be.default(a)}return n?Be.default(n):t}function kn(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,a=0,r=e.length;a1&&void 0!==arguments[1]?arguments[1]:Dt,n=Math.ceil(Ie.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function Cn(e,t,n,a){for(var r=[],i=0;i<2*t+1;i++){var o=e+t-i,s=!0;n&&(s=Ie.default(n)<=o),a&&s&&(s=Ie.default(a)>=o),s&&r.push(o)}return r}var En=function(e){vt(a,e);var n=Ct(a);function a(e){var r;mt(this,a),bt(xt(r=n.call(this,e)),"renderOptions",(function(){var e=r.props.year,t=r.state.yearsList.map((function(t){return ue.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(xt(r),t),"aria-selected":e===t?"true":void 0},e===t?ue.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=r.props.minDate?Ie.default(r.props.minDate):null,a=r.props.maxDate?Ie.default(r.props.maxDate):null;return a&&r.state.yearsList.find((function(e){return e===a}))||t.unshift(ue.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},ue.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find((function(e){return e===n}))||t.push(ue.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},ue.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),bt(xt(r),"onChange",(function(e){r.props.onChange(e)})),bt(xt(r),"handleClickOutside",(function(){r.props.onCancel()})),bt(xt(r),"shiftYears",(function(e){var t=r.state.yearsList.map((function(t){return t+e}));r.setState({yearsList:t})})),bt(xt(r),"incrementYears",(function(){return r.shiftYears(1)})),bt(xt(r),"decrementYears",(function(){return r.shiftYears(-1)}));var i=e.yearDropdownItemNumber,o=e.scrollableYearDropdown,s=i||(o?10:5);return r.state={yearsList:Cn(r.props.year,s,r.props.minDate,r.props.maxDate)},r.dropdownRef=t.createRef(),r}return gt(a,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;e&&(e.scrollTop=e.scrollHeight/2-e.clientHeight/2)}},{key:"render",value:function(){var e=de.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ue.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),a}(ue.default.Component),_n=ct.default(En),An=function(e){vt(n,e);var t=Ct(n);function n(){var e;mt(this,n);for(var a=arguments.length,r=new Array(a),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0)),n&&e.dayEl.current.focus({preventScroll:!0})})),bt(xt(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(ze.default(e.props.day),e.props.day):ze.default(e.props.day)})),bt(xt(e),"render",(function(){return ue.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option","aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()},e.renderDayContents())})),e}return gt(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(ue.default.Component),Rn=function(e){vt(n,e);var t=Ct(n);function n(){var e;mt(this,n);for(var a=arguments.length,r=new Array(a),i=0;i=6,s=!n&&!e.isWeekInMonth(i);if(o||s){if(!e.props.peekNextMonth)break;r=!0}}return t})),bt(xt(e),"onMonthClick",(function(t,n){e.handleDayClick(Bt(Me.default(e.props.day,n)),t)})),bt(xt(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),bt(xt(e),"onMonthKeyDown",(function(t,n){var a=t.key;if(!e.props.disabledKeyboardNavigation)switch(a){case"Enter":e.onMonthClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,ve.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,je.default(e.props.preSelection,1))}})),bt(xt(e),"onQuarterClick",(function(t,n){e.handleDayClick(Zt(qe.default(e.props.day,n)),t)})),bt(xt(e),"getMonthClassNames",(function(t){var n=e.props,a=n.day,r=n.startDate,i=n.endDate,o=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection,u=n.monthClassName,d=u?u(a):void 0;return de.default("react-datepicker__month-text","react-datepicker__month-".concat(t),d,{"react-datepicker__month--disabled":(s||l)&&rn(Me.default(a,t),e.props),"react-datepicker__month--selected":e.isSelectedMonth(a,t,o),"react-datepicker__month-text--keyboard-selected":Te.default(c)===t,"react-datepicker__month--in-range":on(r,i,t,a),"react-datepicker__month--range-start":e.isRangeStartMonth(t),"react-datepicker__month--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--today":e.isCurrentMonth(a,t)})})),bt(xt(e),"getTabIndex",(function(t){var n=Te.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),bt(xt(e),"getAriaLabel",(function(t){var n=e.props,a=n.chooseDayAriaLabelPrefix,r=void 0===a?"Choose":a,i=n.disabledDayAriaLabelPrefix,o=void 0===i?"Not available":i,s=n.day,l=Me.default(s,t),c=e.isDisabled(l)||e.isExcluded(l)?o:r;return"".concat(c," ").concat(Nt(l,"MMMM yyyy"))})),bt(xt(e),"getQuarterClassNames",(function(t){var n=e.props,a=n.day,r=n.startDate,i=n.endDate,o=n.selected,s=n.minDate,l=n.maxDate;return de.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter--disabled":(s||l)&&sn(qe.default(a,t),e.props),"react-datepicker__quarter--selected":e.isSelectedQuarter(a,t,o),"react-datepicker__quarter--in-range":cn(r,i,t,a),"react-datepicker__quarter--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter--range-end":e.isRangeEndQuarter(t)})})),bt(xt(e),"renderMonths",(function(){var t=e.props,n=t.showFullMonthYearPicker,a=t.showTwoColumnMonthYearPicker,r=t.showFourColumnMonthYearPicker,i=t.locale,o=t.day,s=t.selected;return(r?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:a?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map((function(t,a){return ue.default.createElement("div",{className:"react-datepicker__month-wrapper",key:a},t.map((function(t,a){return ue.default.createElement("div",{ref:e.MONTH_REFS[t],key:a,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(o,t)?"date":void 0,"aria-selected":e.isSelectedMonth(o,t,s)},n?$t(t,i):en(t,i))})))}))})),bt(xt(e),"renderQuarters",(function(){var t=e.props,n=t.day,a=t.selected;return ue.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,r){return ue.default.createElement("div",{key:r,role:"option",onClick:function(n){e.onQuarterClick(n,t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,a)},tn(t,e.props.locale))})))})),bt(xt(e),"getClassNames",(function(){var t=e.props;t.day;var n=t.selectingDate,a=t.selectsStart,r=t.selectsEnd,i=t.showMonthYearPicker,o=t.showQuarterYearPicker;return de.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(a||r)},{"react-datepicker__monthPicker":i},{"react-datepicker__quarterPicker":o})})),e}return gt(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,a=e.day,r=e.ariaLabelPrefix,i=void 0===r?"month ":r;return ue.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(i," ").concat(Nt(a,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(ue.default.Component),qn=function(e){vt(n,e);var t=Ct(n);function n(){var e;mt(this,n);for(var a=arguments.length,r=new Array(a),i=0;i0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return Hn.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&a.props.onDropdownFocus()})),bt(xt(a),"getDateInView",(function(){var e=a.props,t=e.preSelection,n=e.selected,r=e.openToDate,i=yn(a.props),o=vn(a.props),s=Ot();return r||n||t||(i&&rt.default(s,i)?i:o&&at.default(s,o)?o:s)})),bt(xt(a),"increaseMonth",(function(){a.setState((function(e){var t=e.date;return{date:ve.default(t,1)}}),(function(){return a.handleMonthChange(a.state.date)}))})),bt(xt(a),"decreaseMonth",(function(){a.setState((function(e){var t=e.date;return{date:je.default(t,1)}}),(function(){return a.handleMonthChange(a.state.date)}))})),bt(xt(a),"handleDayClick",(function(e,t,n){a.props.onSelect(e,t,n),a.props.setPreSelection&&a.props.setPreSelection(e)})),bt(xt(a),"handleDayMouseEnter",(function(e){a.setState({selectingDate:e}),a.props.onDayMouseEnter&&a.props.onDayMouseEnter(e)})),bt(xt(a),"handleMonthMouseLeave",(function(){a.setState({selectingDate:null}),a.props.onMonthMouseLeave&&a.props.onMonthMouseLeave()})),bt(xt(a),"handleYearChange",(function(e){a.props.onYearChange&&a.props.onYearChange(e),a.props.adjustDateOnChange&&(a.props.onSelect&&a.props.onSelect(e),a.props.setOpen&&a.props.setOpen(!0)),a.props.setPreSelection&&a.props.setPreSelection(e)})),bt(xt(a),"handleMonthChange",(function(e){a.props.onMonthChange&&a.props.onMonthChange(e),a.props.adjustDateOnChange&&(a.props.onSelect&&a.props.onSelect(e),a.props.setOpen&&a.props.setOpen(!0)),a.props.setPreSelection&&a.props.setPreSelection(e)})),bt(xt(a),"handleMonthYearChange",(function(e){a.handleYearChange(e),a.handleMonthChange(e)})),bt(xt(a),"changeYear",(function(e){a.setState((function(t){var n=t.date;return{date:Fe.default(n,e)}}),(function(){return a.handleYearChange(a.state.date)}))})),bt(xt(a),"changeMonth",(function(e){a.setState((function(t){var n=t.date;return{date:Me.default(n,e)}}),(function(){return a.handleMonthChange(a.state.date)}))})),bt(xt(a),"changeMonthYear",(function(e){a.setState((function(t){var n=t.date;return{date:Fe.default(Me.default(n,Te.default(e)),Ie.default(e))}}),(function(){return a.handleMonthYearChange(a.state.date)}))})),bt(xt(a),"header",(function(){var e=Ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.state.date,a.props.locale,a.props.calendarStartDay),t=[];return a.props.showWeekNumbers&&t.push(ue.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},a.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=be.default(e,t),r=a.formatWeekday(n,a.props.locale),i=a.props.weekDayClassName?a.props.weekDayClassName(n):void 0;return ue.default.createElement("div",{key:t,className:de.default("react-datepicker__day-name",i)},r)})))})),bt(xt(a),"formatWeekday",(function(e,t){return a.props.formatWeekDay?function(e,t,n){return t(Nt(e,"EEEE",n))}(e,a.props.formatWeekDay,t):a.props.useWeekdaysShort?function(e,t){return Nt(e,"EEE",t)}(e,t):function(e,t){return Nt(e,"EEEEEE",t)}(e,t)})),bt(xt(a),"decreaseYear",(function(){a.setState((function(e){var t=e.date;return{date:Ce.default(t,a.props.showYearPicker?a.props.yearItemNumber:1)}}),(function(){return a.handleYearChange(a.state.date)}))})),bt(xt(a),"renderPreviousButton",(function(){if(!a.props.renderCustomHeader){var e;switch(!0){case a.props.showMonthYearPicker:e=gn(a.state.date,a.props);break;case a.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,a=t.yearItemNumber,r=void 0===a?Dt:a,i=jn(Ht(Ce.default(e,r)),r).endPeriod,o=n&&Ie.default(n);return o&&o>i||!1}(a.state.date,a.props);break;default:e=mn(a.state.date,a.props)}if((a.props.forceShowMonthNavigation||a.props.showDisabledMonthNavigation||!e)&&!a.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=a.decreaseMonth;(a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker)&&(n=a.decreaseYear),e&&a.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var r=a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker,i=a.props,o=i.previousMonthButtonLabel,s=i.previousYearButtonLabel,l=a.props,c=l.previousMonthAriaLabel,u=void 0===c?"string"==typeof o?o:"Previous Month":c,d=l.previousYearAriaLabel,p=void 0===d?"string"==typeof s?s:"Previous Year":d;return ue.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:a.props.handleOnKeyDown,"aria-label":r?p:u},ue.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},r?a.props.previousYearButtonLabel:a.props.previousMonthButtonLabel))}}})),bt(xt(a),"increaseYear",(function(){a.setState((function(e){var t=e.date;return{date:ke.default(t,a.props.showYearPicker?a.props.yearItemNumber:1)}}),(function(){return a.handleYearChange(a.state.date)}))})),bt(xt(a),"renderNextButton",(function(){if(!a.props.renderCustomHeader){var e;switch(!0){case a.props.showMonthYearPicker:e=bn(a.state.date,a.props);break;case a.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,a=t.yearItemNumber,r=void 0===a?Dt:a,i=jn(ke.default(e,r),r).startPeriod,o=n&&Ie.default(n);return o&&o0&&void 0!==arguments[0]?arguments[0]:a.state.date,t=["react-datepicker__current-month"];return a.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),a.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),a.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ue.default.createElement("div",{className:t.join(" ")},Nt(e,a.props.dateFormat,a.props.locale))})),bt(xt(a),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(a.props.showYearDropdown&&!e)return ue.default.createElement(An,{adjustDateOnChange:a.props.adjustDateOnChange,date:a.state.date,onSelect:a.props.onSelect,setOpen:a.props.setOpen,dropdownMode:a.props.dropdownMode,onChange:a.changeYear,minDate:a.props.minDate,maxDate:a.props.maxDate,year:Ie.default(a.state.date),scrollableYearDropdown:a.props.scrollableYearDropdown,yearDropdownItemNumber:a.props.yearDropdownItemNumber})})),bt(xt(a),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(a.props.showMonthDropdown&&!e)return ue.default.createElement(Dn,{dropdownMode:a.props.dropdownMode,locale:a.props.locale,onChange:a.changeMonth,month:Te.default(a.state.date),useShortMonthInDropdown:a.props.useShortMonthInDropdown})})),bt(xt(a),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(a.props.showMonthYearDropdown&&!e)return ue.default.createElement(Pn,{dropdownMode:a.props.dropdownMode,locale:a.props.locale,dateFormat:a.props.dateFormat,onChange:a.changeMonthYear,minDate:a.props.minDate,maxDate:a.props.maxDate,date:a.state.date,scrollableMonthYearDropdown:a.props.scrollableMonthYearDropdown})})),bt(xt(a),"renderTodayButton",(function(){if(a.props.todayButton&&!a.props.showTimeSelectOnly)return ue.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return a.props.onSelect(Ve.default(Ot()),e)}},a.props.todayButton)})),bt(xt(a),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return ue.default.createElement("div",{className:"react-datepicker__header ".concat(a.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},a.renderCurrentMonth(t),ue.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(a.props.dropdownMode),onFocus:a.handleDropdownFocus},a.renderMonthDropdown(0!==n),a.renderMonthYearDropdown(0!==n),a.renderYearDropdown(0!==n)),ue.default.createElement("div",{className:"react-datepicker__day-names"},a.header(t)))})),bt(xt(a),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(a.props.showTimeSelect&&!a.state.monthContainer||a.props.showTimeSelectOnly)return null;var r=mn(a.state.date,a.props),i=fn(a.state.date,a.props),o=gn(a.state.date,a.props),s=bn(a.state.date,a.props),l=!a.props.showMonthYearPicker&&!a.props.showQuarterYearPicker&&!a.props.showYearPicker;return ue.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:a.props.onDropdownFocus},a.props.renderCustomHeader(pt(pt({},a.state),{},{customHeaderCount:n,monthDate:t,changeMonth:a.changeMonth,changeYear:a.changeYear,decreaseMonth:a.decreaseMonth,increaseMonth:a.increaseMonth,decreaseYear:a.decreaseYear,increaseYear:a.increaseYear,prevMonthButtonDisabled:r,nextMonthButtonDisabled:i,prevYearButtonDisabled:o,nextYearButtonDisabled:s})),l&&ue.default.createElement("div",{className:"react-datepicker__day-names"},a.header(t)))})),bt(xt(a),"renderYearHeader",(function(){var e=a.state.date,t=a.props,n=t.showYearPicker,r=jn(e,t.yearItemNumber),i=r.startPeriod,o=r.endPeriod;return ue.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(i," - ").concat(o):Ie.default(e))})),bt(xt(a),"renderHeader",(function(e){switch(!0){case void 0!==a.props.renderCustomHeader:return a.renderCustomHeader(e);case a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker:return a.renderYearHeader(e);default:return a.renderDefaultHeader(e)}})),bt(xt(a),"renderMonths",(function(){if(!a.props.showTimeSelectOnly&&!a.props.showYearPicker){for(var e=[],t=a.props.showPreviousMonths?a.props.monthsShown-1:0,n=je.default(a.state.date,t),r=0;r0;e.push(ue.default.createElement("div",{key:s,ref:function(e){a.monthContainer=e},className:"react-datepicker__month-container"},a.renderHeader({monthDate:o,i:r}),ue.default.createElement(Mn,{chooseDayAriaLabelPrefix:a.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:a.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:a.props.weekAriaLabelPrefix,ariaLabelPrefix:a.props.monthAriaLabelPrefix,onChange:a.changeMonthYear,day:o,dayClassName:a.props.dayClassName,calendarStartDay:a.props.calendarStartDay,monthClassName:a.props.monthClassName,onDayClick:a.handleDayClick,handleOnKeyDown:a.props.handleOnDayKeyDown,onDayMouseEnter:a.handleDayMouseEnter,onMouseLeave:a.handleMonthMouseLeave,onWeekSelect:a.props.onWeekSelect,orderInDisplay:r,formatWeekNumber:a.props.formatWeekNumber,locale:a.props.locale,minDate:a.props.minDate,maxDate:a.props.maxDate,excludeDates:a.props.excludeDates,excludeDateIntervals:a.props.excludeDateIntervals,highlightDates:a.props.highlightDates,selectingDate:a.state.selectingDate,includeDates:a.props.includeDates,includeDateIntervals:a.props.includeDateIntervals,inline:a.props.inline,shouldFocusDayInline:a.props.shouldFocusDayInline,fixedHeight:a.props.fixedHeight,filterDate:a.props.filterDate,preSelection:a.props.preSelection,setPreSelection:a.props.setPreSelection,selected:a.props.selected,selectsStart:a.props.selectsStart,selectsEnd:a.props.selectsEnd,selectsRange:a.props.selectsRange,selectsDisabledDaysInRange:a.props.selectsDisabledDaysInRange,showWeekNumbers:a.props.showWeekNumbers,startDate:a.props.startDate,endDate:a.props.endDate,peekNextMonth:a.props.peekNextMonth,setOpen:a.props.setOpen,shouldCloseOnSelect:a.props.shouldCloseOnSelect,renderDayContents:a.props.renderDayContents,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,showMonthYearPicker:a.props.showMonthYearPicker,showFullMonthYearPicker:a.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:a.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:a.props.showFourColumnMonthYearPicker,showYearPicker:a.props.showYearPicker,showQuarterYearPicker:a.props.showQuarterYearPicker,isInputFocused:a.props.isInputFocused,containerRef:a.containerRef,monthShowsDuplicateDaysEnd:l,monthShowsDuplicateDaysStart:c})))}return e}})),bt(xt(a),"renderYears",(function(){if(!a.props.showTimeSelectOnly)return a.props.showYearPicker?ue.default.createElement("div",{className:"react-datepicker__year--container"},a.renderHeader(),ue.default.createElement(Fn,yt({onDayClick:a.handleDayClick,date:a.state.date},a.props))):void 0})),bt(xt(a),"renderTimeSection",(function(){if(a.props.showTimeSelect&&(a.state.monthContainer||a.props.showTimeSelectOnly))return ue.default.createElement(qn,{selected:a.props.selected,openToDate:a.props.openToDate,onChange:a.props.onTimeChange,timeClassName:a.props.timeClassName,format:a.props.timeFormat,includeTimes:a.props.includeTimes,intervals:a.props.timeIntervals,minTime:a.props.minTime,maxTime:a.props.maxTime,excludeTimes:a.props.excludeTimes,filterTime:a.props.filterTime,timeCaption:a.props.timeCaption,todayButton:a.props.todayButton,showMonthDropdown:a.props.showMonthDropdown,showMonthYearDropdown:a.props.showMonthYearDropdown,showYearDropdown:a.props.showYearDropdown,withPortal:a.props.withPortal,monthRef:a.state.monthContainer,injectTimes:a.props.injectTimes,locale:a.props.locale,handleOnKeyDown:a.props.handleOnKeyDown,showTimeSelectOnly:a.props.showTimeSelectOnly})})),bt(xt(a),"renderInputTimeSection",(function(){var e=new Date(a.props.selected),t=Pt(e)&&Boolean(a.props.selected)?"".concat(xn(e.getHours()),":").concat(xn(e.getMinutes())):"";if(a.props.showTimeInput)return ue.default.createElement(Un,{date:e,timeString:t,timeInputLabel:a.props.timeInputLabel,onChange:a.props.onTimeChange,customTimeInput:a.props.customTimeInput})})),a.containerRef=ue.default.createRef(),a.state={date:a.getDateInView(),selectingDate:null,monthContainer:null},a}return gt(n,[{key:"componentDidMount",value:function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))}},{key:"componentDidUpdate",value:function(e){this.props.preSelection&&!Yt(this.props.preSelection,e.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!Yt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var e=this.props.container||Bn;return ue.default.createElement("div",{ref:this.containerRef},ue.default.createElement(e,{className:de.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Dt}}}]),n}(ue.default.Component),Wn=function(e){vt(n,e);var t=Ct(n);function n(e){var a;return mt(this,n),(a=t.call(this,e)).el=document.createElement("div"),a}return gt(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ut.default.createPortal(this.props.children,this.el)}}]),n}(ue.default.Component),Vn=function(e){return!e.disabled&&-1!==e.tabIndex},Gn=function(e){vt(n,e);var t=Ct(n);function n(e){var a;return mt(this,n),bt(xt(a=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(a.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Vn)})),bt(xt(a),"handleFocusStart",(function(e){var t=a.getTabChildren();t&&t.length>1&&t[t.length-1].focus()})),bt(xt(a),"handleFocusEnd",(function(e){var t=a.getTabChildren();t&&t.length>1&&t[0].focus()})),a.tabLoopRef=ue.default.createRef(),a}return gt(n,[{key:"render",value:function(){return this.props.enableTabLoop?ue.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ue.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ue.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(ue.default.Component),Yn=function(e){vt(n,e);var t=Ct(n);function n(){return mt(this,n),t.apply(this,arguments)}return gt(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,a=t.wrapperClassName,r=t.hidePopper,i=t.popperComponent,o=t.popperModifiers,s=t.popperPlacement,l=t.popperProps,c=t.targetComponent,u=t.enableTabLoop,d=t.popperOnKeyDown,p=t.portalId,h=t.portalHost;if(!r){var m=de.default("react-datepicker-popper",n);e=ue.default.createElement(le.Popper,yt({modifiers:o,placement:s},l),(function(e){var t=e.ref,n=e.style,a=e.placement,r=e.arrowProps;return ue.default.createElement(Gn,{enableTabLoop:u},ue.default.createElement("div",{ref:t,style:n,className:m,"data-placement":a,onKeyDown:d},ue.default.cloneElement(i,{arrowProps:r})))}))}this.props.popperContainer&&(e=ue.default.createElement(this.props.popperContainer,{},e)),p&&!r&&(e=ue.default.createElement(Wn,{portalId:p,portalHost:h},e));var f=de.default("react-datepicker-wrapper",a);return ue.default.createElement(le.Manager,{className:"react-datepicker-manager"},ue.default.createElement(le.Reference,null,(function(e){var t=e.ref;return ue.default.createElement("div",{ref:t,className:f},c)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(ue.default.Component),Kn="react-datepicker-ignore-onclickoutside",Qn=ct.default(Zn),Xn="Date input not valid.",Jn=function(e){vt(n,e);var t=Ct(n);function n(e){var a;return mt(this,n),bt(xt(a=t.call(this,e)),"getPreSelection",(function(){return a.props.openToDate?a.props.openToDate:a.props.selectsEnd&&a.props.startDate?a.props.startDate:a.props.selectsStart&&a.props.endDate?a.props.endDate:Ot()})),bt(xt(a),"calcInitialState",(function(){var e,t=a.getPreSelection(),n=yn(a.props),r=vn(a.props),i=n&&rt.default(t,Ve.default(n))?n:r&&at.default(t,Xe.default(r))?r:t;return{open:a.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=a.props.selectsRange?a.props.startDate:a.props.selected)&&void 0!==e?e:i,highlightDates:kn(a.props.highlightDates),focused:!1,shouldFocusDayInline:!1}})),bt(xt(a),"clearPreventFocusTimeout",(function(){a.preventFocusTimeout&&clearTimeout(a.preventFocusTimeout)})),bt(xt(a),"setFocus",(function(){a.input&&a.input.focus&&a.input.focus({preventScroll:!0})})),bt(xt(a),"setBlur",(function(){a.input&&a.input.blur&&a.input.blur(),a.cancelFocusInput()})),bt(xt(a),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a.setState({open:e,preSelection:e&&a.state.open?a.state.preSelection:a.calcInitialState().preSelection,lastPreSelectChange:ea},(function(){e||a.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&a.setBlur(),a.setState({inputValue:null})}))}))})),bt(xt(a),"inputOk",(function(){return pe.default(a.state.preSelection)})),bt(xt(a),"isCalendarOpen",(function(){return void 0===a.props.open?a.state.open&&!a.props.disabled&&!a.props.readOnly:a.props.open})),bt(xt(a),"handleFocus",(function(e){a.state.preventFocus||(a.props.onFocus(e),a.props.preventOpenOnFocus||a.props.readOnly||a.setOpen(!0)),a.setState({focused:!0})})),bt(xt(a),"cancelFocusInput",(function(){clearTimeout(a.inputFocusTimeout),a.inputFocusTimeout=null})),bt(xt(a),"deferFocusInput",(function(){a.cancelFocusInput(),a.inputFocusTimeout=setTimeout((function(){return a.setFocus()}),1)})),bt(xt(a),"handleDropdownFocus",(function(){a.cancelFocusInput()})),bt(xt(a),"handleBlur",(function(e){(!a.state.open||a.props.withPortal||a.props.showTimeInput)&&a.props.onBlur(e),a.setState({focused:!1})})),bt(xt(a),"handleCalendarClickOutside",(function(e){a.props.inline||a.setOpen(!1),a.props.onClickOutside(e),a.props.withPortal&&e.preventDefault()})),bt(xt(a),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n