/*! * TOAST UI Calendar * @version 1.15.3 | Thu Feb 17 2022 * @author NHN FE Development Lab * @license MIT */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tui-code-snippet"),require("tui-date-picker")):"function"==typeof define&&define.amd?define(["tui-code-snippet","tui-date-picker"],t):"object"==typeof exports?exports.Calendar=t(require("tui-code-snippet"),require("tui-date-picker")):(e.tui=e.tui||{},e.tui.Calendar=t(e.tui&&e.tui.util,e.tui&&e.tui.DatePicker))}(window,(function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var l=t[o]={i:o,l:!1,exports:{}};return e[o].call(l.exports,l,l.exports,n),l.l=!0,l.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)n.d(o,l,function(t){return e[t]}.bind(null,l));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist",n(n.s=37)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var o,l=n(6),i=n(13),a=n(0),r=/^auto$|^$|%/;var s=(o={appendHTMLElement:function(e,t,n){var o;return n=n||"",(o=document.createElement(e)).className=n,t?t.appendChild(o):document.body.appendChild(o),o},remove:function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},get:function(e){return document.getElementById(e)},_matcher:function(e,t){return/^\./.test(t)?o.hasClass(e,t.replace(".","")):/^#/.test(t)?e.id===t.replace("#",""):e.nodeName.toLowerCase()===t.toLowerCase()},find:function(e,t,n){var l=[],i=!1,r=a.isUndefined(n)||!1===n,s=a.isFunction(n);return a.isString(t)&&(t=o.get(t)),function e(t,a){for(var c,u=t.childNodes,d=0,h=u.length;d0&&(e(c,a),i))break}(t=t||window.document.body,e),r?l[0]||null:l},closest:function(e,t,n){var l;if(!e)return null;if(l=e.parentNode,!n&&o._matcher(e,t))return e;for(;l&&l!==window.document.body;){if(o._matcher(l,t))return l;l=l.parentNode}return null},text:function(e){var t="",n=0,l=e.nodeType;if(l){if(1===l||9===l||11===l){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)t+=o.text(e)}else if(3===l||4===l)return e.nodeValue}else for(;e[n];n+=1)t+=o.text(e[n]);return t},setData:function(e,t,n){"dataset"in e?e.dataset[t]=n:e.setAttribute("data-"+t,n)},getData:function(e,t){return"dataset"in e?e.dataset[t]:e.getAttribute("data-"+t)},hasClass:function(e,t){var n;return a.isUndefined(e.classList)?(n=o.getClass(e)).length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n):e.classList.contains(t)},addClass:function(e,t){var n;a.isUndefined(e.classList)?o.hasClass(e,t)||(n=o.getClass(e),o.setClass(e,(n?n+" ":"")+t)):a.forEachArray(t.split(" "),(function(t){e.classList.add(t)}))},setClass:function(e,t){a.isUndefined(e.className.baseVal)?e.className=t:e.className.baseVal=t},removeClass:function(e,t){var n="";a.isUndefined(e.classList)?(n=(" "+o.getClass(e)+" ").replace(" "+t+" "," "),o.setClass(e,n.replace(/^\s\s*/,"").replace(/\s\s*$/,""))):e.classList.remove(t)},getClass:function(e){return e&&e.className?a.isUndefined(e.className.baseVal)?e.className:e.className.baseVal:""},getStyle:function(e,t){var n,o=e.style[t]||e.currentStyle&&e.currentStyle[t];return o&&"auto"!==o||!document.defaultView||(o=(n=document.defaultView.getComputedStyle(e,null))?n[t]:null),"auto"===o?null:o},getComputedStyle:function(e){var t=document.defaultView;return t&&t.getComputedStyle?document.defaultView.getComputedStyle(e):{getPropertyValue:function(t){var n=/(\-([a-z]){1})/g;return"float"===t&&(t="styleFloat"),n.test(t)&&(t=t.replace(n,(function(){return arguments[2].toUpperCase()}))),e.currentStyle[t]||null}}},setPosition:function(e,t,n){t=a.isUndefined(t)?0:t,n=a.isUndefined(n)?0:n,e._pos=[t,n],e.style.left=a.isNumber(t)?t+"px":t,e.style.top=a.isNumber(n)?n+"px":n},setLTRB:function(e,t){var n;["left","top","right","bottom"].forEach((function(o){n=a.isUndefined(t[o])?"":t[o],e.style[o]=a.isNumber(n)?n+"px":n}))},getPosition:function(e,t){var n,o,l;return t&&(e._pos=null),e._pos?e._pos:(n=0,o=0,(r.test(e.style.left)||r.test(e.style.top))&&"getBoundingClientRect"in e?(n=(l=e.getBoundingClientRect()).left,o=l.top):(n=parseFloat(e.style.left||0),o=parseFloat(e.style.top||0)),[n,o])},getSize:function(e){var t,n=o.getStyle(e,"width"),l=o.getStyle(e,"height");return(r.test(n)||r.test(l)||a.isNull(n)||a.isNull(l))&&"getBoundingClientRect"in e?(n=(t=e.getBoundingClientRect()).width||e.offsetWidth,l=t.height||e.offsetHeight):(n=parseFloat(n||0),l=parseFloat(l||0)),[n,l]},getBCRect:function(e){var t=e.getBoundingClientRect();return t=a.extend({width:e.offsetWidth,height:e.offsetHeight},t)},testProp:function(e){for(var t=document.documentElement.style,n=0,o=e.length;n12&&(t%=12),o.leadingZero(t,2)+":"+o.leadingZero(n,2)},tt:function(e){return e.getHours()<12?"am":"pm"}},o={MILLISECONDS_PER_DAY:864e5,MILLISECONDS_PER_HOUR:36e5,MILLISECONDS_PER_MINUTES:6e4,MILLISECONDS_SCHEDULE_MIN_DURATION:12e5,_convMilliseconds:function(e,n,o){var l={day:0,hour:1,minutes:2,seconds:3};return e in l&&!t.isNaN(n)&&r.reduce([n].concat([24,60,60,1e3].slice(l[e])),o)},millisecondsTo:function(e,t){var n=c,l=e+t;return n[l]||(n[l]=o._convMilliseconds(e,t,(function(e,t){return e/t}))),n[l]},millisecondsFrom:function(e,t){var n=u,l=e+t;return n[l]||(n[l]=o._convMilliseconds(e,t,(function(e,t){return e*t}))),n[l]},minutesFromHours:function(e){return 60*e},range:function(e,t,n){for(var l=e.getTime(),r=t.getTime(),s=l,c=a(new i(e)),u=[];s<=r&&r>=c.d.getTime();)u.push(o.start(c.d)),s+=n,c.addDate(1);return u},clone:function(e){return new i(e)},compare:function(e,t){var n=e.getTime(),o=t.getTime();return no?1:0},isSameMonth:function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},isSameDate:function(e,t){return o.isSameMonth(e,t)&&e.getDate()===t.getDate()},isValid:function(e){return e instanceof i&&!window.isNaN(e.getTime())},toUTC:function(e){var t=e.getTime(),n=o.millisecondsFrom("minutes",(new Date).getTimezoneOffset());return new i(t+n)},leadingZero:function(e,t){var n="",o=0;if(String(e).length>t)return String(e);for(;o8?(n=~e.indexOf("/")?"/":"-",o=(a=a.splice(1))[0].split(n),l=a[1]?a[1].split(":"):[0,0,0]):(o=[(a=a[0]).substr(0,4),a.substr(4,2),a.substr(6,2)],l=[0,0,0]),(new i).setWithRaw(Number(o[0]),Number(o[1])+t,Number(o[2]),Number(l[0]),Number(l[1]),Number(l[2]),0))},raw:function(e){return{y:e.getFullYear(),M:e.getMonth(),d:e.getDate(),h:e.getHours(),m:e.getMinutes(),s:e.getSeconds(),ms:e.getMilliseconds()}},start:function(e){var t=e?new i(e):new i;return t.setHours(0,0,0,0),t},end:function(e){var t=e?new i(e):new i;return t.setHours(23,59,59,0),t},format:function(e,t){var n=t;return r.forEachOwnProperties(l,(function(t,o){n=n.replace(o,t(e))})),n},startDateOfMonth:function(e){var t=new i(e);return t.setDate(1),t.setHours(0,0,0,0),t},endDateOfMonth:function(e){var t=o.startDateOfMonth(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.setHours(23,59,59),t},arr2dCalendar:function(e,t,n){var l,s,c,u,d,h,p,m,f=[],g=t.startDayOfWeek,y=r.isUndefined(t.isAlways6Week)||t.isAlways6Week,S=t.visibleWeeksCount,_=t.workweek;return S?(s=new i(e),(c=a(new i(e))).addDate(7*(S-1)),c=c.d):(s=o.startDateOfMonth(e),c=o.endDateOfMonth(e)),l=r.range(g,7).concat(r.range(7)).slice(0,7),u=r.inArray(s.getDay(),l),h=7-(r.inArray(c.getDay(),l)+1),d=S?7*S:y?42:u+c.getDate()+h,p=o.start(s).addDate(-u),r.forEachArray(r.range(d),(function(e){var t;e%7||(m=f[e/7]=[]),t=o.start(p),t=n?n(t):t,_&&o.isWeekend(t.getDay())||m.push(t),p.setDate(p.getDate()+1)})),f},getGridLeftAndWidth:function(e,t,n,l){var i=100/e,a=e>5?100/(e-1):i,s=0,c=r.range(n,7).concat(r.range(e)).slice(0,7);return l&&(c=r.filter(c,(function(e){return!o.isWeekend(e)}))),t=!l&&t,r.map(c,(function(n){var l,r=t?a:i;return e>5&&t&&o.isWeekend(n)&&(r=a/2),l={day:n,width:r,left:s},s+=r,l}))},isWeekend:function(e){return 0===e||6===e},isBetweenWithDate:function(e,t,n){return e=parseInt(o.format(e,"YYYYMMDD"),10),t=parseInt(o.format(t,"YYYYMMDD"),10),n=parseInt(o.format(n,"YYYYMMDD"),10),t<=e&&e<=n},isStartOfDay:function(e){return!o.compare(o.start(e),e)},convertStartDayToLastDay:function(e){var t=new i(e);return o.isStartOfDay(e)&&(t.setDate(t.getDate()-1),t.setHours(23,59,59)),t},getStartOfNextDay:function(e){var t=o.start(e);return t.setHours(24),t},getDateDifference:function(e,t){var n=new i(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),l=new i(t.getFullYear(),t.getMonth(),t.getDate()).getTime();return Math.round((n-l)/o.MILLISECONDS_PER_DAY)},getHourDifference:function(e,t){var n=new i(e).getTime(),l=new i(t).getTime();return Math.round((n-l)/o.MILLISECONDS_PER_HOUR)},hasMultiDates:function(e,t){var n=o.getDateDifference(e,t),l=Math.abs(o.getHourDifference(e,t)),i=1===Math.abs(n)&&l<24&&o.isStartOfDay(t);return!o.isSameDate(e,t)&&!i},renderEnd:function(e,t){var n=o.getDateDifference(e,t);return Math.abs(n)>=1&&o.isStartOfDay(t)?o.convertStartDayToLastDay(t):o.end(t)}},e.exports=o}).call(this,n(8))},function(e,t,n){"use strict";var o,l,i=n(0),a=n(53),r=h(),s=r,c=null,u=!1,d=null;function h(e){return e=i.isUndefined(e)?Date.now():e,6e4*new Date(e).getTimezoneOffset()}function p(e){return!u&&c?6e4*c(e):s}function m(e){var t=Date.UTC.apply(null,e);return new Date(t+h(t))}function f(e){var t;if(e instanceof S)t=e.getUTCTime();else if("number"==typeof e)t=e;else{if(null!==e)throw new Error("Invalid Type");t=0}return new Date(t)}function g(e){var t;if(e instanceof Date)t=e.getTime();else{if("string"!=typeof e)throw new Error("Invalid Type");t=Date.parse(e)}return t=function(e){return u?e-p(e)+r:e}(t),new Date(t)}function y(e){return e instanceof Date||"string"==typeof e}function S(e){var t;i.isUndefined(e)&&(e=Date.now()),t=arguments.length>1?m(arguments):y(e)?g(e):f(e),this._date=t}function _(e){s=6e4*e}function v(){return i.isNumber(o)?o:(new Date).getTimezoneOffset()}function C(e){l=e}function E(e,t){var n,o=v();return e&&(n=function(e){if(i.isFunction(d))return d;if(a.supportIntl(e))return a.offsetCalculator;return null}(e))?n(e,t):o}S.prototype.getTime=function(){var e=this._date.getTime();return e+p(e)-h(e)},S.prototype.getUTCTime=function(){return this._date.getTime()},S.prototype.toUTCString=function(){return this._date.toUTCString()},S.prototype.toDate=function(){return this._date},S.prototype.valueOf=function(){return this.getTime()},S.prototype.addDate=function(e){return this.setDate(this.getDate()+e),this},S.prototype.addMinutes=function(e){return this.setMinutes(this.getMinutes()+e),this},S.prototype.addMilliseconds=function(e){return this.setMilliseconds(this.getMilliseconds()+e),this},S.prototype.setWithRaw=function(e,t,n,o,l,i,a){return this.setFullYear(e,t,n),this.setHours(o,l,i,a),this},S.prototype.toLocalTime=function(){var e=this.getTime(),t=this.getUTCTime();return new S(t-(e-t))},["getDate","getDay","getFullYear","getHours","getMilliseconds","getMinutes","getMonth","getSeconds"].forEach((function(e){S.prototype[e]=function(){return this._date[e].apply(this._date,arguments)}})),["setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds"].forEach((function(e){S.prototype[e]=function(){return this._date[e].apply(this._date,arguments),this.getTime()}})),e.exports={Date:S,setOffset:_,setOffsetByTimezoneOption:function(e){this.setOffset(-e),o=-e,u=!0},getOffset:function(){return u?s/6e4:0},setOffsetCallback:function(e){c=e},restoreOffset:function(){s=h()},getNativeOffsetMs:function(){return r},hasPrimaryTimezoneCustomSetting:function(){return u},resetCustomSetting:function(){u=!1},setOffsetCalculator:function(e){d=e},setPrimaryTimezoneByOption:function(e){var t,n;e&&e.timezoneName&&(t=e.timezoneName,u=!0,C(t),(n=E(t,Date.now()))===r/6e4&&(u=!1),function(e){o=e,_(e)}(n))},getPrimaryOffset:v,getOffsetByTimezoneName:E,getPrimaryTimezoneName:function(){return l},isNativeOsUsingDSTTimezone:function(){var e=(new Date).getFullYear();return new Date(e,0,1).getTimezoneOffset()!==new Date(e,6,1).getTimezoneOffset()},isPrimaryUsingDSTTimezone:function(){var e=(new Date).getFullYear(),t=new Date(e,0,1),n=new Date(e,6,1);return E(l,t)!==E(l,n)},isDifferentOffsetStartAndEndTime:function(e,t){var n=E(l,e),o=E(l,t),i=0;return n>o?i=1:nn?n:e},maxDate:function(e,t){return e>t?e:t},stripTags:function(e){return e.replace(/<([^>]+)>/gi,"")},firstIn2dArray:function(e){return o.pick(e,"0","0")},lastIn2dArray:function(e){var t=e.length-1,n=e[t].length-1;return o.pick(e,t,n)},setAutoEllipsis:function(e,t,n){o.forEach(l.find(e,t,!0),(function(e){(n||e.offsetWidth0)for(n=0;n0?e=(e+t)%24:t<0&&(e=(e+=t)>0?e:24+e),e},parseUnit:function(e){return[parseFloat(e,10),e.match(/[\d.\-+]*\s*(.*)/)[1]||""]},find:function(e,t,n){var l;return o.forEach(e,(function(e){return t&&(l=t(e)),!l||(l=e,!1)}),n),l},getScheduleChanges:function(e,t,n){var l={},i=["start","end"];return o.forEach(t,(function(t){i.indexOf(t)>-1?a.compare(e[t],n[t])&&(l[t]=n[t]):o.isUndefined(n[t])||e[t]===n[t]||(l[t]=n[t])})),o.isEmpty(l)?null:l}}},function(e,t,n){"use strict";var o=n(0),l=["touchstart","mousedown"],i={on:function(e,t,n,l){o.isString(t)?o.forEach(t.split(" "),(function(t){i._on(e,t,n,l)})):o.forEachOwnProperties(t,(function(t,o){i._on(e,o,t,n)}))},_on:function(e,t,n,l){var a,r,s;a=t+o.stamp(n)+(l?"_"+o.stamp(l):""),e._evt&&e._evt[a]||(s=r=function(t){n.call(l||e,t||window.event)},"addEventListener"in e?"mouseenter"===t||"mouseleave"===t?(r=function(t){t=t||window.event,i._checkMouse(e,t)&&s(t)},e.addEventListener("mouseenter"===t?"mouseover":"mouseout",r,!1)):("mousewheel"===t&&e.addEventListener("DOMMouseScroll",r,!1),e.addEventListener(t,r,!1)):"attachEvent"in e&&e.attachEvent("on"+t,r),e._evt=e._evt||{},e._evt[a]=r)},off:function(e,t,n,l){o.isString(t)?o.forEach(t.split(" "),(function(t){i._off(e,t,n,l)})):o.forEachOwnProperties(t,(function(t,o){i._off(e,o,t,n)}))},_off:function(e,t,n,l){var i=t+o.stamp(n)+(l?"_"+o.stamp(l):""),a=e._evt&&e._evt[i];if(a){if("removeEventListener"in e)"mouseenter"===t||"mouseleave"===t?e.removeEventListener("mouseenter"===t?"mouseover":"mouseout",a,!1):("mousewheel"===t&&e.removeEventListener("DOMMouseScroll",a,!1),e.removeEventListener(t,a,!1));else if("detachEvent"in e)try{e.detachEvent("on"+t,a)}catch(e){}delete e._evt[i],o.keys(e._evt).length||delete e._evt}},once:function(e,t,n,l){var a=this;o.isObject(t)?o.forEachOwnProperties(t,(function(t,o){i.once(e,o,t,n)})):i.on(e,t,(function o(){n.apply(l||e,arguments),a._off(e,t,o,l)}),l)},stopPropagation:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},stop:function(e){i.preventDefault(e),i.stopPropagation(e)},disableScrollPropagation:function(e){i.on(e,"mousewheel MozMousePixelScroll",i.stopPropagation)},disableClickPropagation:function(e){i.on(e,l.join(" ")+" click dblclick",i.stopPropagation)},getMousePosition:function(e,t){var n;return t?(n=t.getBoundingClientRect(),[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]):[e.clientX,e.clientY]},getWheelDelta:function(e){var t=0;return e.wheelDelta&&(t=e.wheelDelta/120),e.detail&&(t=-e.detail/3),t},_checkMouse:function(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e},trigger:function(e,t,n){o.isUndefined(n)&&/(mouse|click)/.exec(t)&&(n=i.mouseEvent(t)),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent&&e.fireEvent("on"+t,n)},mouseEvent:function(e,t){var n,l;return l=o.extend({bubbles:!0,cancelable:"mousemove"!==e,view:window,wheelDelta:0,detail:0,screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0},t),"function"==typeof document.createEvent?(n=document.createEvent("MouseEvents")).initMouseEvent(e,l.bubbles,l.cancelable,l.view,l.detail,l.screenX,l.screenY,l.clientX,l.clientY,l.ctrlKey,l.altKey,l.shiftKey,l.metaKey,l.button,document.body.parentNode):document.createEventObject&&(n=document.createEventObject(),o.forEach(l,(function(e,t){n[t]=e}),this),n.button={0:1,1:4,2:2}[n.button]||n.button),n},getMouseButton:function(e){var t;return document.implementation.hasFeature("MouseEvents","2.0")?e.button:(t=String(e.button),"0,1,3,5,7".indexOf(t)>-1?0:"2,6".indexOf(t)>-1?2:~"4".indexOf(t)?1:-1)},getEventTarget:function(e){return e.target||e.srcElement}};e.exports=i},function(e,t,n){e.exports=n(21).default},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var o=n(0),l=n(1),i=n(13);function a(e){var t=o.stamp(this);o.isUndefined(e)&&(e=l.appendHTMLElement("div")),l.addClass(e,this.cssprefix(t)),this.id=t,this.container=e,this.children=new i((function(e){return o.stamp(e)})),this.parent=null,this.state={}}a.prototype.cssPrefix="tui-view-",a.prototype.addChild=function(e,t){t&&t.call(e,this),e.parent=this,this.children.add(e)},a.prototype.removeChild=function(e,t){var n=o.isNumber(e)?this.children.items[e]:e;e=o.stamp(n),t&&t.call(n,this),this.children.remove(e)},a.prototype.render=function(){this.children.each((function(e){e.render()}))},a.prototype.recursive=function(e,t){o.isFunction(e)&&(t||e(this),this.children.each((function(t){t.recursive(e)})))},a.prototype.resize=function(){for(var e=Array.prototype.slice.call(arguments),t=this.parent;t;)o.isFunction(t._onResize)&&t._onResize.apply(t,e),t=t.parent},a.prototype._beforeDestroy=function(){},a.prototype._destroy=function(){this._beforeDestroy(),this.children.clear(),this.container.innerHTML="",this.id=this.parent=this.children=this.container=null},a.prototype.destroy=function(e){this.children.each((function(e){e.destroy(!0),e._destroy()})),e||this._destroy()},a.prototype.getViewBound=function(){var e=this.container,t=l.getPosition(e),n=l.getSize(e);return{x:t[0],y:t[1],width:n[0],height:n[1]}},a.prototype.cssprefix=function(e){return this.cssPrefix+(e||"")},a.prototype.setState=function(e){o.extend(this.state,e)},o.CustomEvents.mixin(a),e.exports=a},function(e,t,n){"use strict";t.__esModule=!0,t.extend=r,t.indexOf=function(e,t){for(var n=0,o=e.length;n":">",'"':""","'":"'","`":"`","=":"="},l=/[&<>"'`=]/g,i=/[&<>"'`=]/;function a(e){return o[e]}function r(e){for(var t=1;t1?i(s.call(arguments),(function(e){o.add(e)})):(t=this.getItemID(e),(n=this.items)[t]||(this.length+=1),n[t]=e)},c.prototype.remove=function(e){var t,n,l=this,i=[];return this.length?arguments.length>1?i=o.map(s.call(arguments),(function(e){return l.remove(e)})):(t=this.items,r(e)&&(e=this.getItemID(e)),t[e]?(this.length-=1,n=t[e],delete t[e],n):i):i},c.prototype.clear=function(){this.items={},this.length=0},c.prototype.has=function(e){var t,n;return!!this.length&&(t=a(e),n=!1,t?this.each((function(t){return!0!==e(t)||(n=!0,!1)})):(e=r(e)?this.getItemID(e):e,n=o.isExisty(this.items[e])),n)},c.prototype.doWhenHas=function(e,t,n){var l=this.items[e];o.isExisty(l)&&t.call(n||this,l)},c.prototype.find=function(e){var t=new c;return this.hasOwnProperty("getItemID")&&(t.getItemID=this.getItemID),this.each((function(n){!0===e(n)&&t.add(n)})),t},c.prototype.groupBy=function(e,t){var n,l,i={},r=a(e),s=this.getItemID;if(o.isArray(e)){if(o.forEachArray(e,(function(e){i[String(e)]=new c(s)})),!t)return i;e=t,r=!0}return this.each((function(t){r?l=e(t):(l=t[e],a(l)&&(l=l.apply(t))),(n=i[l])||(n=i[l]=new c(s)),n.add(t)})),i},c.prototype.single=function(e){var t,n=o.isFunction(e);return this.each((function(o){return n&&!e(o)||(t=o,!1)}),this),t},c.prototype.sort=function(e){var t=[];return this.each((function(e){t.push(e)})),a(e)&&(t=t.sort(e)),t},c.prototype.each=function(e,t){l(this.items,e,t||this)},c.prototype.toArray=function(){return this.length?o.map(this.items,(function(e){return e})):[]},e.exports=c},function(e,t,n){"use strict";var o=n(0),l=n(4),i=n(3),a=n(57),r=n(58),s=l.Date,c=i.MILLISECONDS_SCHEDULE_MIN_DURATION,u="allday";function d(){this.id="",this.title="",this.body="",this.isAllDay=!1,this.start=null,this.end=null,this.color="#000",this.isVisible=!0,this.bgColor="#a1b56c",this.dragBgColor="#a1b56c",this.borderColor="#000",this.calendarId="",this.category="",this.dueDateClass="",this.customStyle="",this.isPending=!1,this.isFocused=!1,this.isReadOnly=!1,this.isPrivate=!1,this.location="",this.attendees=[],this.recurrenceRule="",this.state="",this.goingDuration=0,this.comingDuration=0,this.raw=null,o.stamp(this)}d.schema={required:["title"],dateRange:["start","end"]},d.create=function(e){var t=new d;return t.init(e),t},d.prototype.init=function(e){(e=o.extend({},e)).category===u&&(e.isAllDay=!0),this.id=e.id||"",this.title=e.title||"",this.body=e.body||"",this.isAllDay=!!o.isExisty(e.isAllDay)&&e.isAllDay,this.isVisible=!o.isExisty(e.isVisible)||e.isVisible,this.color=e.color||this.color,this.bgColor=e.bgColor||this.bgColor,this.dragBgColor=e.dragBgColor||this.dragBgColor,this.borderColor=e.borderColor||this.borderColor,this.calendarId=e.calendarId||"",this.category=e.category||"",this.dueDateClass=e.dueDateClass||"",this.customStyle=e.customStyle||"",this.location=e.location||"",this.attendees=e.attendees||[],this.recurrenceRule=e.recurrenceRule||"",this.isPrivate=e.isPrivate||!1,this.isPending=e.isPending||!1,this.isFocused=e.isFocused||!1,this.isReadOnly=e.isReadOnly||!1,this.goingDuration=e.goingDuration||0,this.comingDuration=e.comingDuration||0,this.state=e.state||"",this.isAllDay?this.setAllDayPeriod(e.start,e.end):this.setTimePeriod(e.start,e.end),this.raw=e.raw||null},d.prototype.setAllDayPeriod=function(e,t){e=o.isString(e)&&10===e.length?i.parse(e):new s(e||Date.now()),o.isString(t)&&10===t.length?(t=i.parse(t)).setHours(23,59,59):t=new s(t||e),this.start=i.start(e),this.end=i.renderEnd(e,t)},d.prototype.setTimePeriod=function(e,t){this.start=new s(e||Date.now()),this.end=new s(t||this.start),t||this.end.setMinutes(this.end.getMinutes()+30)},d.prototype.getStarts=function(){return this.start},d.prototype.getEnds=function(){return this.end},d.prototype.cid=function(){return o.stamp(this)},d.prototype.equals=function(e){return this.id===e.id&&(this.title===e.title&&(this.body===e.body&&(this.isAllDay===e.isAllDay&&(0===i.compare(this.getStarts(),e.getStarts())&&(0===i.compare(this.getEnds(),e.getEnds())&&(this.color===e.color&&(this.bgColor===e.bgColor&&(this.dragBgColor===e.dragBgColor&&this.borderColor===e.borderColor))))))))},d.prototype.duration=function(){var e=this.getStarts(),t=this.getEnds(),n=l.hasPrimaryTimezoneCustomSetting();return this.isAllDay?i.end(t)-i.start(e):n&&l.isPrimaryUsingDSTTimezone()?function(e,t){var n=l.isDifferentOffsetStartAndEndTime(e.getTime(),t.getTime()),o=t-e;return 0!==n.isOffsetChanged&&(o+=6e4*n.offsetDiff),o}(e,t):n&&l.isNativeOsUsingDSTTimezone()?function(e,t){var n=e.toDate().getTimezoneOffset(),o=t.toDate().getTimezoneOffset();return t-e+6e4*(o-n)}(e,t):t-e},d.prototype.collidesWith=function(e){var t=this.getStarts(),n=this.getEnds(),o=e.getStarts(),l=e.getEnds(),a=i.millisecondsFrom("minutes",this.goingDuration),r=i.millisecondsFrom("minutes",this.comingDuration),s=i.millisecondsFrom("minutes",e.goingDuration),u=i.millisecondsFrom("minutes",e.comingDuration);return Math.abs(n-t)(t-=a)&&ot&&l=n},r.mixin(d.prototype),a.mixin(d.prototype),e.exports=d},function(e,t,n){"use strict";var o=n(0),l=n(3);function i(e,t){return e!==t?e?-1:1:0}function a(e,t){var n=String(e),o=String(t);return n>o?1:n0))return l;s=l-1}return~s},compare:{schedule:{asc:function(e,t){var n,a,r,s,c=e.valueOf(),u=t.valueOf();return(r=i(c.isAllDay||e.hasMultiDates,u.isAllDay||t.hasMultiDates))?r:(s=l.compare(e.getStarts(),t.getStarts()))?s:(n=e.duration())<(a=t.duration())?1:n>a?-1:o.stamp(c)-o.stamp(u)}},bool:{asc:i,desc:function(e,t){return e!==t?e?1:-1:0}},num:{asc:function(e,t){return Number(e)-Number(t)},desc:function(e,t){var n=Number(e);return Number(t)-n}},str:{asc:a,desc:function(e,t){var n=String(e),o=String(t);return n>o?-1:no?1:no?-1:n30?t=1:e<=30&&(t=.5),t}e.exports=c},function(e,t,n){"use strict";var o=n(0),l=n(5),i=n(1),a=n(6),r=n(3),s=Math.floor;e.exports=function(e){var t=e.children,n=t.sort((function(e,t){return o.stamp(e)-o.stamp(t)})),c=t.length,u=t.single().getRenderDateRange().length,d=o.pick(e.vLayout.panels[1],"container"),h=i.getSize(d),p=e.grids;return function(e){var t,i,m,f=a.getMousePosition(e,d),g=function(e){for(var t,n=0,o=p.length;n=n.length&&(y=n.length-1),(t=o.pick(n,y))?(g<0&&(g=0),g>=(m=t.getRenderDateRange()).length&&(g=m.length-1),(i=o.pick(m,g))?{x:g,y:y,sizeX:u,sizeY:c,date:r.end(i),weekdayView:t,triggerEvent:e.type}:null):null}}},function(e,t,n){e.exports=n(21)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var i=l(n(22)),a=o(n(49)),r=o(n(12)),s=l(n(10)),c=l(n(50)),u=o(n(52));function d(){var e=new i.HandlebarsEnvironment;return s.extend(e,i),e.SafeString=a.default,e.Exception=r.default,e.Utils=s,e.escapeExpression=s.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var h=d();h.create=d,u.default(h),h.default=h,t.default=h,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=u;var l=n(10),i=o(n(12)),a=n(23),r=n(46),s=o(n(24)),c=n(25);t.VERSION="4.7.7";t.COMPILER_REVISION=8;t.LAST_COMPATIBLE_COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function u(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},a.registerDefaultHelpers(this),r.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:s.default,log:s.default.log,registerHelper:function(e,t){if("[object Object]"===l.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple helpers");l.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===l.toString.call(e))l.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===l.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple decorators");l.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var d=s.default.log;t.log=d,t.createFrame=l.createFrame,t.logger=s.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){l.default(e),i.default(e),a.default(e),r.default(e),s.default(e),c.default(e),u.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var l=o(n(39)),i=o(n(40)),a=o(n(41)),r=o(n(42)),s=o(n(43)),c=o(n(44)),u=o(n(45))},function(e,t,n){"use strict";t.__esModule=!0;var o=n(10),l={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=o.indexOf(l.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=l.lookupLevel(e),"undefined"!=typeof console&&l.lookupLevel(l.level)<=e){var t=l.methodMap[e];console[t]||(t="log");for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i0?i.d.setMonth(l+1,0):i.d.setMonth(t,0),a=i.d.getDate())),this.d.setMonth(l,Math.min(n,a)),this},l.prototype._isLeapYear=function(){var e=this.d.getFullYear();return e%4==0&&e%100!=0||!(e%400)},l.prototype.setHours=function(e,t,n,o){return this.d.setHours(e,t,n,o),this},l.prototype.isBetween=function(e,t){var n=this.safe;return n(e)<=this.d&&this.d<=n(t)},e.exports=l},function(e,t,n){"use strict";(function(t){var o=n(0),l=n(1),i=n(6),a=n(2);function r(e,t){i.on(t,"mousedown",this._onMouseDown,this),this.options=o.extend({distance:10,exclude:null},e),this.container=t,this._cancelled=!1,this._isMoved=!1,this._distance=0,this._dragStartFired=!1,this._dragStartEventData=null}function s(e){l.closest(e.target,a.classname(".popup"))||i.preventDefault(e)}r.prototype.destroy=function(){i.off(this.container,"mousedown",this._onMouseDown,this),this._isMoved=null,this.container=null},r.prototype._clearData=function(){this._cancelled=!1,this._distance=0,this._isMoved=!1,this._dragStartFired=!1,this._dragStartEventData=null},r.prototype._toggleDragEvent=function(e){var n,o,a=this.container;e?(n="on",o="disable"):(n="off",o="enable"),l[o+"TextSelection"](a,s),l[o+"ImageDrag"](a,s),i[n](t.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp},this)},r.prototype._getEventData=function(e){return{target:i.getEventTarget(e),originEvent:e}},r.prototype._onMouseDown=function(e){var t=this.options,n=i.getEventTarget(e);0===i.getMouseButton(e)&&(t.exclude&&t.exclude(n)?this._cancelled=!0:(this._clearData(),this._dragStartEventData=this._getEventData(e),this._toggleDragEvent(!0),this.fire("mousedown",this._dragStartEventData)))},r.prototype._onMouseMove=function(e){var t;if(this._cancelled)this._clearData();else if(t=this.options.distance,s(e),this._distance(t-=r)&&ot&&a=n},e.exports=a},function(e,t,n){"use strict";var o=n(62);e.exports={sanitize:function(e){return o.sanitize(e)},addAttributeHooks:function(){o.addHook("beforeSanitizeAttributes",(function(e){var t;"A"===e.tagName&&((t=e.getAttribute("target"))?e.setAttribute("data-target-temp",t):e.setAttribute("target","_self"))})),o.addHook("afterSanitizeAttributes",(function(e){"A"===e.tagName&&e.hasAttribute("data-target-temp")&&(e.setAttribute("target",e.getAttribute("data-target-temp")),e.removeAttribute("data-target-temp"),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))}))},removeAttributeHooks:function(){o.removeAllHooks()}}},function(e,t,n){"use strict";var o=n(0),l=n(2),i=n(5),a=n(1),r=n(6),s=n(9),c=n(67),u=n(27),d=Math.abs;function h(e,t,n){var i,r;if(!(this instanceof h))return new h(e,t);s.call(this,t),a.addClass(t,l.classname("vlayout-container")),i=this.options=o.extend({panels:[],panelHeights:[]},e),this.panels=[],this._drag=new u({distance:10,exclude:function(e){return!a.hasClass(e,l.classname("splitter"))}},t),this._drag.on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd},this),this._dragData=null,this.theme=n,i.panels.length&&(i.panelHeights.length&&(r=i.panelHeights.slice(),o.forEach(i.panels,(function(e){e.isSplitter||e.autoHeight||(e.height=r.shift())}))),this.addPanels(i.panels,this.container)),this.refresh()}o.inherit(h,s),h.prototype.getLayoutData=function(){var e=[];return o.forEach(this.panels,(function(t){t.isSplitter()||t.options.autoHeight||e.push(t.getHeight())})),e},h.prototype.setLayoutData=function(e){e.length&&(o.forEach(this.panels,(function(t){t.isSplitter()||t.options.autoHeight||t.setHeight(null,e.shift())})),this.refresh())},h.prototype.nextPanel=function(e){return this.panels[e.index+1]},h.prototype.prevPanel=function(e){return this.panels[e.index-1]},h.prototype._initializeGuideElement=function(e,t){var n=e.cloneNode(!0);return a.addClass(n,l.classname("splitter-guide")),this._refreshGuideElement(n,t),this.container.appendChild(n),n},h.prototype._refreshGuideElement=function(e,t){e.style.top=t+"px"},h.prototype._clearGuideElement=function(e){a.remove(e)},h.prototype._resize=function(e,t,n){var l,i,a=d(t-n),r=[],s=n>t,c=s?"nextPanel":"prevPanel";for(i=(l=this[s?"prevPanel":"nextPanel"](e)).getResizeInfoByGrowth(a),r.push([l,i[0]]),l=this[c](l);o.isExisty(l);l=this[c](l))l.isSplitter()||(i=l.getResizeInfoByGrowth(-a),r.push([l,i[0]]),a-=i[1]);o.forEach(r,(function(e){e[0].setHeight(null,e[1],!0),e[0].fire("resize")}))},h.prototype._getMouseYAdditionalLimit=function(e){var t,n=0,l=0,i=function(e){return e.isSplitter()?e.getHeight():e.options.minHeight};for(t=this.prevPanel(e);o.isExisty(t);t=this.prevPanel(t))n+=i(t);for(t=this.nextPanel(e);o.isExisty(t);t=this.nextPanel(t))l+=i(t);return[n,l]},h.prototype._onDragStart=function(e){var t=e.originEvent,n=e.target,i=a.getData(n,"panelIndex"),s=this.panels[i],c=s.getHeight(),u=r.getMousePosition(t,n)[1],d=r.getMousePosition(t,this.container)[1],h=this._initializeGuideElement(n,d);s.addClass(l.classname("splitter-focused")),this._dragData={splPanel:s,splOffsetY:u,guideElement:h,startY:d-u,minY:0,maxY:this.getViewBound().height-c},o.browser.msie||a.addClass(document.body,l.classname("resizing"))},h.prototype._onDrag=function(e){var t=this._dragData,n=r.getMousePosition(e.originEvent,this.container)[1];n=i.limit(n-t.splOffsetY,[t.minY],[t.maxY]),this._refreshGuideElement(t.guideElement,n)},h.prototype._onDragEnd=function(e){var t=this._dragData,n=this._getMouseYAdditionalLimit(t.splPanel),o=r.getMousePosition(e.originEvent,this.container)[1];o=i.limit(o-t.splOffsetY,[t.minY+n[0]],[t.maxY-n[1]]),this._resize(t.splPanel,t.startY,o),this.fire("resize",{layoutData:this.getLayoutData()}),this._dragData=null,this._clearGuideElement(t.guideElement),t.splPanel.removeClass(l.classname("splitter-focused")),a.removeClass(document.body,l.classname("resizing"))},h.prototype.refresh=function(){var e,t=[],n=this.getViewBound().height,l=0;n&&(o.forEach(this.panels,(function(e){e.options.autoHeight?t.push(e):l+=e.getHeight()})),e=(n-l)/t.length,o.forEach(t,(function(t){t.setHeight(null,e)})))},h.prototype.addPanel=function(e,t){var n=document.createElement("div"),l=this.panels,i=l.length;e=o.extend({index:i},e),l.push(new c(e,n,this.theme)),t.appendChild(n)},h.prototype.addPanels=function(e,t){var n=this,l=document.createDocumentFragment();o.forEach(e,(function(e){n.addPanel(e,l)})),t.appendChild(l)},h.prototype.getPanelByName=function(e){var t;return o.forEach(this.panels,(function(n){n.name===e&&(t=n)})),t},e.exports=h},function(e,t,n){"use strict";var o=n(0),l=n(2),i=n(1),a=n(3),r=n(4).Date,s=n(9);function c(e,t){t=i.appendHTMLElement("div",t,l.classname("weekday")),this.options=o.extend({containerBottomGutter:8,scheduleHeight:18,scheduleGutter:2,narrowWeekend:!1,startDayOfWeek:0,workweek:!1},e),this._cacheParentViewModel=null,s.call(this,t)}o.inherit(c,s),c.prototype.getRenderDateRange=function(){return this._cacheParentViewModel.range},c.prototype.getRenderDateGrids=function(){return this._cacheParentViewModel.grids},c.prototype.getBaseViewModel=function(e){var t=this.options,n=e.range,l=100/n.length,i=e.grids,s=e.exceedDate||{},c=e.theme,u=(new r).toLocalTime();return this._cacheParentViewModel=e,{width:l,scheduleHeight:t.scheduleHeight,scheduleBlockHeight:t.scheduleHeight+t.scheduleGutter,scheduleBlockGutter:t.scheduleGutter,dates:o.map(n,(function(e,t){var n=e.getDay(),o=a.format(new r(e),"YYYYMMDD"),l=a.isSameDate(u,e);return{date:a.format(e,"YYYY-MM-DD"),month:e.getMonth()+1,day:n,isToday:l,ymd:o,hiddenSchedules:s[o]||0,width:i[t]?i[t].width:0,left:i[t]?i[t].left:0,color:this._getDayNameColor(c,n,l),backgroundColor:this._getDayBackgroundColor(c,n)}}),this)}},c.prototype.getExceedDate=function(e,t,n){var l=this._initExceedDate(n);return o.forEach(t,(function(t){o.forEach(t,(function(t){o.forEach(t,(function(t){var n;!t||t.topl&&(a=l-n-o-3),{y:a,arrowDirection:i}},f.prototype._getXAndArrowLeft=function(e,t,n,o,l){var i,a=(e+t)/2,r=a-n/2;return r+n>l?i=a-(r=t-n+8):r+=8,rl?r=i-(a=Math.max(l-n-o,0))-o-8:a-=o,(r<0||r>n)&&(r=null),{y:a,arrowTop:r}},p.prototype._getXAndArrowDirection=function(e,t,n,o,l){var i="arrow-left",a=t;return a+n>l?(i="arrow-right",a=e-n-4):a+=4,an[1]?o=n.slice(0):(l=c(t[0],l),o=[l=u(n[0],l),i]),o},p.prototype.start=function(e){var t,n=this.options,l=e.target,i=e.model,s=e.x,c=e.y,u=new r(this.view.options.renderMonth);n.isCreationMode?i&&!a.isSameMonth(u,i.start)&&(i.start.setMonth(u.getMonth()),i.start.setDate(1),i.end.setMonth(u.getMonth()),i.end.setDate(1)):(s=(t=this._getCoordByDate(i.getStarts()))[0],c=t[1],o.extend(this.options,{top:parseInt(l.style.top,10)+"px",height:parseInt(l.style.height,10)+"px",label:i.title},i)),(o.isUndefined(s)||o.isUndefined(c))&&(s=(t=this._getCoordByDate(i.getStarts()))[0],c=t[1]),this.startCoord=[s,c],this.update(s,c)},p.prototype._updateGuides=function(e){o.forEach(e,(function(e){var t=e.guide,n=l.classname("month-exceed-left"),o=l.classname("month-exceed-right");t.style.display="block",t.style.left=e.left+"%",t.style.width=e.width+"%",e.exceedL?i.addClass(t,n):i.removeClass(t,n),e.exceedR?i.addClass(t,o):i.removeClass(t,o)}))},p.prototype._getOriginIndicate=function(e,t){var n,o,l=u(e[0],t[0]),i=c(e[0],t[0])+1;return t[1]>e[1]?(l=e[0],i=this.days,o=!0):t[1]e[1]?(l=0,n=!0):t[1]l)&&i.push(e)})),i},p.prototype.update=function(e,t){var n=this,l=this.startCoord,i=[e,t],a=this.options.isResizeMode?this._getLimitedCoord(i,l):i,r=o.keys(this.guideElements),s=o.range(u(l[1],a[1]),c(l[1],a[1])+1),d=this._getExcludesInRange(s,r),h={};this._removeGuideElements(d),o.forEach(s,(function(e){var t,r=n._getGuideElement(e);r&&(t=e===l[1]?n._getOriginIndicate(l,a):e===i[1]?n._getMouseIndicate(l,i):n._getContainIndicate(),h[e]=o.extend({guide:r},t))})),this._updateGuides(h)},p.prototype.clear=function(){o.forEach(this.guideElements,(function(e){i.remove(e)})),this.guideElements={}},p.prototype._getStyles=function(e){var t={};return e&&(t.border=e.common.creationGuide.border,t.backgroundColor=e.common.creationGuide.backgroundColor,t.scheduleHeight=e.month.schedule.height,t.scheduleGutter=e.month.schedule.marginTop,t.marginLeft=e.month.schedule.marginLeft,t.marginRight=e.month.schedule.marginRight,t.borderRadius=e.month.schedule.borderRadius),t},e.exports=p},function(e,t,n){"use strict";(function(t){var o=n(0),l=n(38);n(117),n(118),t.jQuery&&(t.jQuery.fn.tuiCalendar=function(){var e,n,i=this.get(0),a=Array.prototype.slice.apply(arguments);if(i)if(e=o.pick(a,0)||{},n=t.jQuery.data(i,"tuiCalendar")){if("string"==typeof e&&n[e])return n[e].apply(n,a.slice(1))}else n=new l(i,e),t.jQuery.data(i,"tuiCalendar",n);return this}),e.exports=l}).call(this,n(8))},function(e,t,n){"use strict";var o=n(0),l=n(20),i=n(26),a=n(3),r=n(54),s=n(27),c=n(55),u=n(66),d=n(100),h=n(4),p=h.Date,m=n(2),f=n(11),g=n(29),y=Math.min;function S(e,t){!0===(t=o.extend({usageStatistics:!0},t)).usageStatistics&&o.sendHostname&&o.sendHostname("calendar","UA-129951699-1"),o.isString(e)&&(e=document.querySelector(e)),this._calendarColor={},this._renderDate=a.start(),this._renderRange={start:null,end:null},this._controller=function(e){return c(e)}(t),this._controller.setCalendars(t.calendars),this._layout=new r(e,this._controller.theme),this._dragHandler=new s({distance:10},this._layout.container),this._viewName=t.defaultView||"week",this._refreshMethod=null,this._scrollToNowMethod=null,this._requestScrollToNow=!1,this._openCreationPopup=null,this._hideMoreView=null,this._requestRender=0,this._options={},this._initialize(t)}function _(e,t){e.recursive((function(e){var n=e.options;n&&t(e,n)}))}S.prototype.destroy=function(){g.removeAttributeHooks(),this._dragHandler.destroy(),this._controller.off(),this._layout.clear(),this._layout.destroy(),o.forEach(this._options.template,(function(e,t){e&&l.unregisterHelper(t+"-tmpl")})),this._options=this._renderDate=this._controller=this._layout=this._dragHandler=this._viewName=this._refreshMethod=this._scrollToNowMethod=null},S.prototype._initialize=function(e){var t=this._controller,n=this._viewName;this._options=o.extend({defaultView:n,taskView:!0,scheduleView:!0,template:o.extend({allday:null,time:null},o.pick(e,"template")||{}),week:o.extend({},o.pick(e,"week")||{}),month:o.extend({},o.pick(e,"month")||{}),calendars:[],useCreationPopup:!1,useDetailPopup:!1,timezones:e.timezone&&e.timezone.zones?e.timezone.zones:[],disableDblClick:!1,disableClick:!1,isReadOnly:!1},e),this._options.week=o.extend({startDayOfWeek:0,workweek:!1},o.pick(this._options,"week")||{}),this._options.timezone=o.extend({zones:[]},o.pick(e,"timezone")||{}),this._options.month=o.extend({startDayOfWeek:0,workweek:!1,scheduleFilter:function(e){return Boolean(e.isVisible)&&("allday"===e.category||"time"===e.category)}},o.pick(e,"month")||{}),this._options.isReadOnly&&(this._options.useCreationPopup=!1),this._layout.controller=t,this._setAdditionalInternalOptions(this._options),this.changeView(n,!0),g.addAttributeHooks()},S.prototype._setAdditionalInternalOptions=function(e){var t,n,i=e.timezone;o.forEach(e.template,(function(e,t){var n;e&&l.registerHelper(t+"-tmpl",(n=e,function(){var e=n.apply(null,arguments);return g.sanitize(e)}))})),o.forEach(e.calendars||[],(function(e){this.setCalendarColor(e.id,e,!0)}),this),i&&(n=i.offsetCalculator,o.isFunction(n)&&h.setOffsetCalculator(n),(t=i.zones).length&&(h.setPrimaryTimezoneByOption(t[0]),o.isNumber(t[0].timezoneOffset)&&h.setOffsetByTimezoneOption(t[0].timezoneOffset)))},S.prototype.createSchedules=function(e,t){o.forEach(e,(function(e){this._setScheduleColor(e.calendarId,e)}),this),this._controller.createSchedules(e,t),t||this.render()},S.prototype.getSchedule=function(e,t){return this._controller.schedules.single((function(n){return n.id===e&&n.calendarId===t}))},S.prototype.updateSchedule=function(e,t,n,o){var l=this._controller,i=l.schedules.single((function(n){return n.id===e&&n.calendarId===t}));n&&i&&(n=this._hasChangedCalendar(i,n)?this._setScheduleColor(n.calendarId,n):n,l.updateSchedule(i,n),o||this.render())},S.prototype._hasChangedCalendar=function(e,t){return e&&t.calendarId&&e.calendarId!==t.calendarId},S.prototype._setScheduleColor=function(e,t){var n=this._calendarColor[e];return n&&(t.color=t.color||n.color,t.bgColor=t.bgColor||n.bgColor,t.borderColor=t.borderColor||n.borderColor,t.dragBgColor=t.dragBgColor||n.dragBgColor),t},S.prototype.deleteSchedule=function(e,t,n){var o=this._controller,l=o.schedules.single((function(n){return n.id===e&&n.calendarId===t}));l&&(o.deleteSchedule(l),n||this.render())},S.prototype._getWeekDayRange=function(e,t,n){var l,i,r,s;return t=t||0,l=(e=o.isDate(e)?e:new p(e)).getDay(),i=new p(e).addDate(-l+t),r=new p(i).addDate(6),l0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):l(this);if(n.data&&n.ids){var a=o.createFrame(n.data);a.contextPath=o.appendContextPath(n.data.contextPath,n.name),n={data:a}}return i(t,n)}))},e.exports=t.default},function(e,t,n){"use strict";(function(o){t.__esModule=!0;var l,i=n(10),a=n(12),r=(l=a)&&l.__esModule?l:{default:l};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new r.default("Must pass iterator to #each");var n,l=t.fn,a=t.inverse,s=0,c="",u=void 0,d=void 0;function h(t,n,o){u&&(u.key=t,u.index=n,u.first=0===n,u.last=!!o,d&&(u.contextPath=d+t)),c+=l(e[t],{data:u,blockParams:i.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(u=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var p=e.length;s=r.LAST_COMPATIBLE_COMPILER_REVISION&&t<=r.COMPILER_REVISION)return;if(ta.MILLISECONDS_PER_DAY?"allday":t.category},this.schedules=r.createScheduleCollection(),this.dateMatrix={},this.theme=new s(e.theme),this.calendars=[]}m.prototype._getContainDatesInSchedule=function(e){var t,n=e.getStarts(),o=e.getEnds(),l=a.start(n),i=0===a.compare(n,o)?o:a.convertStartDayToLastDay(o),r=a.end(i);return c.hasPrimaryTimezoneCustomSetting()&&(l=(t=function(e){var t=e.getStarts(),n=e.getEnds(),o=(a.start(t),0===a.compare(t,n)?n:a.convertStartDayToLastDay(n)),l=(a.end(o),c.getNativeOffsetMs()),i=t.toDate().getTimezoneOffset(),r=0,s=c.getPrimaryTimezoneName(),u=c.getPrimaryOffset(),h=c.getOffsetByTimezoneName(s,t.getTime());return c.isNativeOsUsingDSTTimezone()&&l!==i&&(r=6e4*i-l),c.isPrimaryUsingDSTTimezone()&&u!==h&&(r=6e4*(u-h)),{start:a.start(t.getUTCTime()+r),end:a.end(a.convertStartDayToLastDay(new d(n.getUTCTime()+r)))}}(e)).start,r=t.end),a.range(l,r,a.MILLISECONDS_PER_DAY)},m.prototype.createSchedule=function(e,t){var n,o={data:p(e)};return this.invoke("beforeCreateSchedule",o)?(n=this.addSchedule(l.create(e)),t||this.fire("createdSchedule",n),n):null},m.prototype.createSchedules=function(e,t){var n=this;return o.map(e,(function(e){return n.createSchedule(e,t)}))},m.prototype.updateSchedule=function(e,t){var n=t.start||e.start,l=t.end||e.end;return t=t?p(t):{},["milestone","task","allday","time"].indexOf(t.category)>-1&&e.set("category",t.category),"allday"===t.category&&(t.isAllDay=!0),o.isUndefined(t.isAllDay)||e.set("isAllDay",t.isAllDay),o.isUndefined(t.calendarId)||e.set("calendarId",t.calendarId),t.title&&e.set("title",t.title),t.body&&e.set("body",t.body),(t.start||t.end)&&(e.isAllDay?e.setAllDayPeriod(n,l):e.setTimePeriod(n,l)),t.color&&e.set("color",t.color),t.bgColor&&e.set("bgColor",t.bgColor),t.borderColor&&e.set("borderColor",t.borderColor),t.origin&&e.set("origin",t.origin),o.isUndefined(t.isPending)||e.set("isPending",t.isPending),o.isUndefined(t.isFocused)||e.set("isFocused",t.isFocused),o.isUndefined(t.isReadOnly)||e.set("isReadOnly",t.isReadOnly),o.isUndefined(t.isPrivate)||e.set("isPrivate",t.isPrivate),t.location&&e.set("location",t.location),t.state&&e.set("state",t.state),t.raw&&e.set("raw",t.raw),t.attendees&&e.set("attendees",t.attendees),t.recurrenceRule&&e.set("recurrenceRule",t.recurrenceRule),this._removeFromMatrix(e),this._addToMatrix(e),this.fire("updateSchedule"),e},m.prototype.deleteSchedule=function(e){return this._removeFromMatrix(e),this.schedules.remove(e),e},m.prototype._addToMatrix=function(e){var t=this.dateMatrix,n=this._getContainDatesInSchedule(e);o.forEach(n,(function(n){var l=a.format(n,"YYYYMMDD");(t[l]=t[l]||[]).push(o.stamp(e))}))},m.prototype._removeFromMatrix=function(e){var t=o.stamp(e);o.forEach(this.dateMatrix,(function(e){var n=o.inArray(t,e);~n&&e.splice(n,1)}),this)},m.prototype.addSchedule=function(e,t){return this.schedules.add(e),this._addToMatrix(e),t||this.fire("addedSchedule",e),e},m.prototype.splitScheduleByDateRange=function(e,t,n){var l=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),i=this.dateMatrix,s={};return o.forEachArray(l,(function(e){var t,l=a.format(e,"YYYYMMDD"),c=i[l];t=s[l]=r.createScheduleCollection(),c&&c.length&&o.forEachArray(c,(function(e){n.doWhenHas(e,(function(e){t.add(e)}))}))})),s},m.prototype.findByDateRange=function(e,t){var n,l,s,c=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),u=this.schedules.items,d=this.dateMatrix,h=a.format,p={};return o.forEachArray(c,(function(e){l=h(e,"YYYYMMDD"),n=d[l],s=p[l]=r.createScheduleCollection(),n&&n.length&&s.add.apply(s,o.map(n,(function(e){return i.create(u[e])})))})),p},m.prototype.clearSchedules=function(){this.dateMatrix={},this.schedules.clear(),this.fire("clearSchedules")},m.prototype.setTheme=function(e){return this.theme.setStyles(e)},m.prototype.setCalendars=function(e){this.calendars=e},o.CustomEvents.mixin(m),e.exports=m},function(e,t,n){"use strict";var o=n(0),l=o.isExisty,i=o.pick,a=o.isFunction,r={set:function(e,t){this[e]!==t&&(this[e]=t,this._changed||(this._changed={}),this._changed[e]=!0,this._dirty=!0)},isDirty:function(){return!!this._dirty},dirty:function(e){(e=!l(e)||e)||(this._changed={}),this._dirty=e},deleteProp:function(e){delete this[e],this._changed&&delete this._changed[e]},isPropChanged:function(e){return!!this._changed&&!0===this._changed[e]},mixin:function(e){var t=/(^_|mixin|wrap)/;o.forEachOwnProperties(r,(function(n,o){t.test(o)||(e[o]=r[o])}))},wrap:function(e,t,n){var s,c=r.wrap;o.isObject(t)?o.forEachOwnProperties(t,(function(t,n){c(e,n,t)})):(n=!l(n)||n,e._wrapper||(e._wrapper=function(e,t){return function(){var n=Array.prototype.slice.call(arguments),o=e.apply(this,n);return this._dirty=t,o}}),l(i(e,t))&&a(e[t])&&!l(i(e,t,"_wrapped"))&&(s=e[t],e[t]=e._wrapper(s,n),e[t]._wrapped=!0))}};e.exports=r},function(e,t,n){"use strict";var o,l=n(4).Date,i=n(0),a=/^\s*|\s*$/g,r=n(3);o={trim:function(e){return e.replace(a,"")},validators:{required:function(e,t){var n=!0;return i.forEach(t,(function(t){var l;return l=e[t],n=!i.isUndefined(l)&&""!==o.trim(l)})),n},dateRange:function(e,t){var n,o;return!i.isExisty(e)||2!==t.length||(n=new l(e[t[0]]),o=new l(e[t[1]]),!(!r.isValid(n)||!r.isValid(o))&&1!==r.compare(n,o))}},isValid:function(){var e,t=this,n=this.constructor.schema,l=o.validators,a=!0;return!n||(i.forEach(n,(function(n,o){return!(e=l[o])||(a=e(t,n))})),a)},parameterize:function(){var e={},t=i.isFunction;return i.forEach(this,(function(n,o){t(n)||(e[o]=n)})),e},mixin:function(e){i.forEach(o,(function(t,n){"mixin"!==n&&(e[n]=t)}))}},e.exports=o},function(e,t,n){"use strict";var o=n(0),l=n(60),i=n(61),a=n(5);function r(e){var t=e||l;this._map=new o.HashMap,this.setStyles(t)}r.prototype.getStyle=function(e){return this._map.get(e)},r.prototype.setStyle=function(e,t){var n={};return n[e]=t,0===this.setStyles(n).length},r.prototype.setStyles=function(e){var t=[];return o.forEach(e,(function(e,n){o.isUndefined(i[n])?t.push(n):(this._map.set(n,e),a.set(this,n,e))}),this),o.forEach(i,(function(e,t){this.getStyle(t)||(this._map.set(t,e),a.set(this,t,e))}),this),t},r.prototype.clear=function(){var e=this._map.keys(),t={};o.forEach(e,(function(e){var n=e.split(".")[0];t[n]||(t[n]=n)})),o.forEach(t,(function(e){delete this[e]}),this),this._map.removeAll()},e.exports=r},function(e,t,n){"use strict";e.exports={"common.border":"1px solid #e5e5e5","common.backgroundColor":"white","common.holiday.color":"#ff4040","common.saturday.color":"#333","common.dayname.color":"#333","common.today.color":"#333","common.creationGuide.backgroundColor":"rgba(81, 92, 230, 0.05)","common.creationGuide.border":"1px solid #515ce6","month.dayname.height":"31px","month.dayname.borderLeft":"none","month.dayname.paddingLeft":"10px","month.dayname.paddingRight":"0","month.dayname.backgroundColor":"inherit","month.dayname.fontSize":"12px","month.dayname.fontWeight":"normal","month.dayname.textAlign":"left","month.holidayExceptThisMonth.color":"rgba(255, 64, 64, 0.4)","month.dayExceptThisMonth.color":"rgba(51, 51, 51, 0.4)","month.weekend.backgroundColor":"inherit","month.day.fontSize":"14px","month.schedule.borderRadius":"2px","month.schedule.height":"24px","month.schedule.marginTop":"2px","month.schedule.marginLeft":"8px","month.schedule.marginRight":"8px","month.moreView.border":"1px solid #d5d5d5","month.moreView.boxShadow":"0 2px 6px 0 rgba(0, 0, 0, 0.1)","month.moreView.backgroundColor":"white","month.moreView.paddingBottom":"17px","month.moreViewTitle.height":"44px","month.moreViewTitle.marginBottom":"12px","month.moreViewTitle.borderBottom":"none","month.moreViewTitle.padding":"12px 17px 0 17px","month.moreViewList.padding":"0 17px","week.dayname.height":"42px","week.dayname.borderTop":"1px solid #e5e5e5","week.dayname.borderBottom":"1px solid #e5e5e5","week.dayname.borderLeft":"none","week.dayname.paddingLeft":"0","week.dayname.backgroundColor":"inherit","week.dayname.textAlign":"left","week.today.color":"inherit","week.pastDay.color":"#bbb","week.vpanelSplitter.border":"1px solid #e5e5e5","week.vpanelSplitter.height":"3px","week.daygrid.borderRight":"1px solid #e5e5e5","week.daygrid.backgroundColor":"inherit","week.daygridLeft.width":"72px","week.daygridLeft.backgroundColor":"inherit","week.daygridLeft.paddingRight":"8px","week.daygridLeft.borderRight":"1px solid #e5e5e5","week.today.backgroundColor":"rgba(81, 92, 230, 0.05)","week.weekend.backgroundColor":"inherit","week.timegridLeft.width":"72px","week.timegridLeft.backgroundColor":"inherit","week.timegridLeft.borderRight":"1px solid #e5e5e5","week.timegridLeft.fontSize":"11px","week.timegridOneHour.height":"52px","week.timegridHalfHour.height":"26px","week.timegridHalfHour.borderBottom":"none","week.timegridHorizontalLine.borderBottom":"1px solid #e5e5e5","week.timegrid.paddingRight":"8px","week.timegrid.borderRight":"1px solid #e5e5e5","week.timegridSchedule.borderRadius":"2px","week.timegridSchedule.paddingLeft":"2px","week.currentTime.color":"#515ce6","week.currentTime.fontSize":"11px","week.currentTime.fontWeight":"normal","week.currentTimeLinePast.border":"1px dashed #515ce6","week.currentTimeLineBullet.backgroundColor":"#515ce6","week.currentTimeLineToday.border":"1px solid #515ce6","week.currentTimeLineFuture.border":"none","week.creationGuide.color":"#515ce6","week.creationGuide.fontSize":"11px","week.creationGuide.fontWeight":"bold","week.dayGridSchedule.borderRadius":"2px","week.dayGridSchedule.height":"24px","week.dayGridSchedule.marginTop":"2px","week.dayGridSchedule.marginLeft":"8px","week.dayGridSchedule.marginRight":"8px"}},function(e,t,n){"use strict";e.exports={"common.border":"1px solid #e5e5e5","common.backgroundColor":"white","common.holiday.color":"#ff4040","common.saturday.color":"#333","common.dayname.color":"#333","common.today.color":"#333","common.creationGuide.backgroundColor":"rgba(81, 92, 230, 0.05)","common.creationGuide.border":"1px solid #515ce6","month.dayname.height":"31px","month.dayname.borderLeft":"1px solid #e5e5e5","month.dayname.paddingLeft":"10px","month.dayname.paddingRight":"10px","month.dayname.backgroundColor":"inherit","month.dayname.fontSize":"12px","month.dayname.fontWeight":"normal","month.dayname.textAlign":"left","month.holidayExceptThisMonth.color":"rgba(255, 64, 64, 0.4)","month.dayExceptThisMonth.color":"rgba(51, 51, 51, 0.4)","month.weekend.backgroundColor":"inherit","month.day.fontSize":"14px","month.schedule.borderRadius":"2px","month.schedule.height":"24px","month.schedule.marginTop":"2px","month.schedule.marginLeft":"8px","month.schedule.marginRight":"8px","month.moreView.border":"1px solid #d5d5d5","month.moreView.boxShadow":"0 2px 6px 0 rgba(0, 0, 0, 0.1)","month.moreView.backgroundColor":"white","month.moreView.paddingBottom":"17px","month.moreViewTitle.height":"44px","month.moreViewTitle.marginBottom":"12px","month.moreViewTitle.backgroundColor":"inherit","month.moreViewTitle.borderBottom":"none","month.moreViewTitle.padding":"12px 17px 0 17px","month.moreViewList.padding":"0 17px","week.dayname.height":"42px","week.dayname.borderTop":"1px solid #e5e5e5","week.dayname.borderBottom":"1px solid #e5e5e5","week.dayname.borderLeft":"inherit","week.dayname.paddingLeft":"0","week.dayname.backgroundColor":"inherit","week.dayname.textAlign":"left","week.today.color":"#333","week.pastDay.color":"#bbb","week.vpanelSplitter.border":"1px solid #e5e5e5","week.vpanelSplitter.height":"3px","week.daygrid.borderRight":"1px solid #e5e5e5","week.daygrid.backgroundColor":"inherit","week.daygridLeft.width":"72px","week.daygridLeft.backgroundColor":"inherit","week.daygridLeft.paddingRight":"8px","week.daygridLeft.borderRight":"1px solid #e5e5e5","week.today.backgroundColor":"rgba(81, 92, 230, 0.05)","week.weekend.backgroundColor":"inherit","week.timegridLeft.width":"72px","week.timegridLeft.backgroundColor":"inherit","week.timegridLeft.borderRight":"1px solid #e5e5e5","week.timegridLeft.fontSize":"11px","week.timegridLeftTimezoneLabel.height":"40px","week.timegridLeftAdditionalTimezone.backgroundColor":"white","week.timegridOneHour.height":"52px","week.timegridHalfHour.height":"26px","week.timegridHalfHour.borderBottom":"none","week.timegridHorizontalLine.borderBottom":"1px solid #e5e5e5","week.timegrid.paddingRight":"8px","week.timegrid.borderRight":"1px solid #e5e5e5","week.timegridSchedule.borderRadius":"2px","week.timegridSchedule.paddingLeft":"2px","week.currentTime.color":"#515ce6","week.currentTime.fontSize":"11px","week.currentTime.fontWeight":"normal","week.pastTime.color":"#bbb","week.pastTime.fontWeight":"normal","week.futureTime.color":"#333","week.futureTime.fontWeight":"normal","week.currentTimeLinePast.border":"1px dashed #515ce6","week.currentTimeLineBullet.backgroundColor":"#515ce6","week.currentTimeLineToday.border":"1px solid #515ce6","week.currentTimeLineFuture.border":"none","week.creationGuide.color":"#515ce6","week.creationGuide.fontSize":"11px","week.creationGuide.fontWeight":"bold","week.dayGridSchedule.borderRadius":"2px","week.dayGridSchedule.height":"24px","week.dayGridSchedule.marginTop":"2px","week.dayGridSchedule.marginLeft":"8px","week.dayGridSchedule.marginRight":"8px"}},function(e,t,n){ /*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */ e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,o=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,i=Object.freeze,a=Object.seal,r=Object.create,s="undefined"!=typeof Reflect&&Reflect,c=s.apply,u=s.construct;c||(c=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),u||(u=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),l=1;l/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),z=a(/^aria-[\-\w]+$/),N=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=a(/^(?:\w+script|data):/i),G=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y="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};function j(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:W(),n=function(t){return e(t)};if(n.version="2.3.1",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var o=t.document,l=t.document,a=t.DocumentFragment,r=t.HTMLTemplateElement,s=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,E=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,q=t.Text,Z=t.Comment,K=t.DOMParser,$=t.trustedTypes,Q=c.prototype,J=k(Q,"cloneNode"),ee=k(Q,"nextSibling"),te=k(Q,"childNodes"),ne=k(Q,"parentNode");if("function"==typeof r){var oe=l.createElement("template");oe.content&&oe.content.ownerDocument&&(l=oe.content.ownerDocument)}var le=U($,o),ie=le&&Le?le.createHTML(""):"",ae=l,re=ae.implementation,se=ae.createNodeIterator,ce=ae.createDocumentFragment,ue=ae.getElementsByTagName,de=o.importNode,he={};try{he=P(l).documentMode?l.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof ne&&re&&void 0!==re.createHTMLDocument&&9!==he;var me=L,fe=A,ge=B,ye=z,Se=V,_e=G,ve=N,Ce=null,Ee=w({},[].concat(j(b),j(R),j(D),j(F),j(X))),we=null,Pe=w({},[].concat(j(M),j(T),j(O),j(H))),ke=null,be=null,Re=!0,De=!0,Ie=!1,Fe=!1,xe=!1,Xe=!1,Me=!1,Te=!1,Oe=!1,He=!0,Le=!1,Ae=!0,Be=!0,ze=!1,Ne={},Ve=null,Ge=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ye=null,je=w({},["audio","video","img","source","image","track"]),We=null,Ue=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml",$e=Ke,Qe=!1,Je=null,et=l.createElement("form"),tt=function(e){Je&&Je===e||(e&&"object"===(void 0===e?"undefined":Y(e))||(e={}),e=P(e),Ce="ALLOWED_TAGS"in e?w({},e.ALLOWED_TAGS):Ee,we="ALLOWED_ATTR"in e?w({},e.ALLOWED_ATTR):Pe,We="ADD_URI_SAFE_ATTR"in e?w(P(Ue),e.ADD_URI_SAFE_ATTR):Ue,Ye="ADD_DATA_URI_TAGS"in e?w(P(je),e.ADD_DATA_URI_TAGS):je,Ve="FORBID_CONTENTS"in e?w({},e.FORBID_CONTENTS):Ge,ke="FORBID_TAGS"in e?w({},e.FORBID_TAGS):{},be="FORBID_ATTR"in e?w({},e.FORBID_ATTR):{},Ne="USE_PROFILES"in e&&e.USE_PROFILES,Re=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,Ie=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=e.SAFE_FOR_TEMPLATES||!1,xe=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,Oe=e.RETURN_DOM_FRAGMENT||!1,He=!1!==e.RETURN_DOM_IMPORT,Le=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Ae=!1!==e.SANITIZE_DOM,Be=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||ve,$e=e.NAMESPACE||Ke,Fe&&(De=!1),Oe&&(Te=!0),Ne&&(Ce=w({},[].concat(j(X))),we=[],!0===Ne.html&&(w(Ce,b),w(we,M)),!0===Ne.svg&&(w(Ce,R),w(we,T),w(we,H)),!0===Ne.svgFilters&&(w(Ce,D),w(we,T),w(we,H)),!0===Ne.mathMl&&(w(Ce,F),w(we,O),w(we,H))),e.ADD_TAGS&&(Ce===Ee&&(Ce=P(Ce)),w(Ce,e.ADD_TAGS)),e.ADD_ATTR&&(we===Pe&&(we=P(we)),w(we,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&w(We,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Ve===Ge&&(Ve=P(Ve)),w(Ve,e.FORBID_CONTENTS)),Be&&(Ce["#text"]=!0),xe&&w(Ce,["html","head","body"]),Ce.table&&(w(Ce,["tbody"]),delete ke.tbody),i&&i(e),Je=e)},nt=w({},["mi","mo","mn","ms","mtext"]),ot=w({},["foreignobject","desc","title","annotation-xml"]),lt=w({},R);w(lt,D),w(lt,I);var it=w({},F);w(it,x);var at=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ke,tagName:"template"});var n=f(e.tagName),o=f(t.tagName);if(e.namespaceURI===Ze)return t.namespaceURI===Ke?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===o||nt[o]):Boolean(lt[n]);if(e.namespaceURI===qe)return t.namespaceURI===Ke?"math"===n:t.namespaceURI===Ze?"math"===n&&ot[o]:Boolean(it[n]);if(e.namespaceURI===Ke){if(t.namespaceURI===Ze&&!ot[o])return!1;if(t.namespaceURI===qe&&!nt[o])return!1;var l=w({},["title","style","font","a","script"]);return!it[n]&&(l[n]||!lt[n])}return!1},rt=function(e){m(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},st=function(e,t){try{m(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!we[e])if(Te||Oe)try{rt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ct=function(e){var t=void 0,n=void 0;if(Me)e=""+e;else{var o=g(e,/^[\r\n\t ]+/);n=o&&o[0]}var i=le?le.createHTML(e):e;if($e===Ke)try{t=(new K).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){t=re.createDocument($e,"template",null);try{t.documentElement.innerHTML=Qe?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(l.createTextNode(n),a.childNodes[0]||null),$e===Ke?ue.call(t,xe?"html":"body")[0]:xe?t.documentElement:a},ut=function(e){return se.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},dt=function(e){return!(e instanceof q||e instanceof Z||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof E&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},ht=function(e){return"object"===(void 0===s?"undefined":Y(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":Y(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},pt=function(e,t,o){pe[e]&&h(pe[e],(function(e){e.call(n,t,o,Je)}))},mt=function(e){var t=void 0;if(pt("beforeSanitizeElements",e,null),dt(e))return rt(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return rt(e),!0;var o=f(e.nodeName);if(pt("uponSanitizeElement",e,{tagName:o,allowedTags:Ce}),!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.content.firstElementChild))&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return rt(e),!0;if("select"===o&&v(/