imatrix-ui 2.9.60-dw → 2.9.61-dw

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  * (c) 2021 Evan You
5
5
  * @license MIT
6
6
  */
7
- function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"a",(function(){return N}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function l(e){return null!==e&&"object"===typeof e}function u(e){return e&&"function"===typeof e.then}function c(e,t){return function(){return e(t)}}var f=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},f.prototype.addChild=function(e,t){this._children[e]=t},f.prototype.removeChild=function(e){delete this._children[e]},f.prototype.getChild=function(e){return this._children[e]},f.prototype.hasChild=function(e){return e in this._children},f.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},f.prototype.forEachChild=function(e){s(this._children,e)},f.prototype.forEachGetter=function(e){this._rawModule.getters&&s(this._rawModule.getters,e)},f.prototype.forEachAction=function(e){this._rawModule.actions&&s(this._rawModule.actions,e)},f.prototype.forEachMutation=function(e){this._rawModule.mutations&&s(this._rawModule.mutations,e)},Object.defineProperties(f.prototype,d);var h=function(e){this.register([],e,!1)};function p(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;p(e.concat(r),t.getChild(r),n.modules[r])}}h.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},h.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},h.prototype.update=function(e){p([],this.root,e)},h.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new f(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&s(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},h.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},h.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var m;var g=function(e){var t=this;void 0===e&&(e={}),!m&&"undefined"!==typeof window&&window.Vue&&I(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new h(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;_(this,u,[],this._modules.root),w(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:m.config.devtools;c&&a(this)},v={state:{configurable:!0}};function b(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function y(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;_(e,n,[],e._modules.root,!0),w(e,n,t)}function w(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};s(i,(function(t,n){o[n]=c(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=m.config.silent;m.config.silent=!0,e._vm=new m({data:{$$state:t},computed:o}),m.config.silent=a,e.strict&&O(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),m.nextTick((function(){return r.$destroy()})))}function _(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=T(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){m.set(s,l,r.state)}))}var u=r.context=C(e,a,n);r.forEachMutation((function(t,n){var r=a+n;S(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;k(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;D(e,r,t,u)})),r.forEachChild((function(r,o){_(e,t,n.concat(o),r,i)}))}function C(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return x(e,t)}},state:{get:function(){return T(e.state,n)}}}),i}function x(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function S(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function k(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return u(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function D(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function O(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function T(e,t){return t.reduce((function(e,t){return e[t]}),e)}function E(e,t,n){return l(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function I(e){m&&e===m||(m=e,r(m))}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(e){0},g.prototype.commit=function(e,t,n){var r=this,i=E(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},g.prototype.dispatch=function(e,t){var n=this,r=E(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},g.prototype.subscribe=function(e,t){return b(e,this._subscribers,t)},g.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return b(n,this._actionSubscribers,t)},g.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},g.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},g.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),_(this,this.state,e,this._modules.get(e),n.preserveState),w(this,this.state)},g.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=T(t.state,e.slice(0,-1));m.delete(n,e[e.length-1])})),y(this)},g.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},g.prototype.hotUpdate=function(e){this._modules.update(e),y(this,!0)},g.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(g.prototype,v);M((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=R(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),M((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=R(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));var N=M((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||R(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n}));M((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=R(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function A(e){return P(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function P(e){return Array.isArray(e)||l(e)}function M(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function R(e,t,n){var r=e._modulesNamespaceMap[n];return r}}).call(this,n("c8ba"))},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"2ffe":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=147)}({147:function(e,t,n){"use strict";n.r(t);var r=n(19),i=n(39),o=n.n(i),a=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function u(e){var t=e.move,n=e.size,r=e.bar,i={},o="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var c={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(){var e=arguments[0],t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:u({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=100*(Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=t*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(s.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-(this.$refs.thumb[this.bar.offset]-t))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(){this.cursorDown=!1,this[this.bar.axis]=0,Object(s.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s.off)(document,"mouseup",this.mouseUpDocumentHandler)}},f={name:"ElScrollbar",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=o()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:"string"==typeof this.wrapStyle?n+=i:n=i}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),u=void 0;return u=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,e(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},u)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e,t,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r.removeResizeListener)(this.$refs.resize,this.update)},install:function(e){e.component(f.name,f)}};t.default=f},19:function(e,t){e.exports=n("229c")},2:function(e,t){e.exports=n("f321")},3:function(e,t){e.exports=n("bf32")},39:function(e,t){e.exports=n("e17f")}})},3024:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),l=n("8f60"),u=n("45f2"),c=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,b,y,w){l(n,t,v);var _,C,x,S=function(e){if(!d&&e in T)return T[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",D=b==m,O=!1,T=e.prototype,E=T[f]||T[h]||b&&T[b],I=E||S(b),N=b?D?S("entries"):I:void 0,A="Array"==t&&T.entries||E;if(A&&(x=c(A.call(new e)),x!==Object.prototype&&x.next&&(u(x,k,!0),r||"function"==typeof x[f]||a(x,f,g))),D&&E&&E.name!==m&&(O=!0,I=function(){return E.call(this)}),r&&!w||!d&&!O&&T[f]||a(T,f,I),s[t]=I,s[k]=g,b)if(_={values:D?I:S(m),keys:y?I:S(p),entries:N},w)for(C in _)C in T||o(T,C,_[C]);else i(i.P+i.F*(d||O),t,_);return _}},3154:function(e,t,n){n("f034")},"31f4":function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"321e":function(e,t,n){},"323c":function(e,t,n){"use strict";t.__esModule=!0,t.isSameDate=t.validateRangeInOneMonth=t.extractTimeFormat=t.extractDateFormat=t.nextYear=t.prevYear=t.nextMonth=t.prevMonth=t.changeYearMonthAndClampDate=t.timeWithinRange=t.limitTimeRange=t.clearMilliseconds=t.clearTime=t.modifyWithTimeString=t.modifyTime=t.modifyDate=t.range=t.getRangeMinutes=t.getMonthDays=t.getPrevMonthLastDays=t.getRangeHours=t.getWeekNumber=t.getStartDateOfMonth=t.nextDate=t.prevDate=t.getFirstDayOfMonth=t.getDayCountOfYear=t.getDayCountOfMonth=t.parseDate=t.formatDate=t.isDateObject=t.isDate=t.toDate=t.getI18nSettings=void 0;var r=n("068a"),i=a(r),o=n("9243");function a(e){return e&&e.__esModule?e:{default:e}}var s=["sun","mon","tue","wed","thu","fri","sat"],l=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],u=function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n},c=t.getI18nSettings=function(){return{dayNamesShort:s.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),dayNames:s.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),monthNamesShort:l.map((function(e){return(0,o.t)("el.datepicker.months."+e)})),monthNames:l.map((function(e,t){return(0,o.t)("el.datepicker.month"+(t+1))})),amPm:["am","pm"]}},f=t.toDate=function(e){return d(e)?new Date(e):null},d=t.isDate=function(e){return null!==e&&void 0!==e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},h=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return e=f(e),e?i.default.format(e,t||"yyyy-MM-dd",c()):""},t.parseDate=function(e,t){return i.default.parse(e,t||"yyyy-MM-dd",c())}),p=t.getDayCountOfMonth=function(e,t){return 3===t||5===t||8===t||10===t?30:1===t?e%4===0&&e%100!==0||e%400===0?29:28:31},m=(t.getDayCountOfYear=function(e){var t=e%400===0||e%100!==0&&e%4===0;return t?366:365},t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()},t.prevDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)});t.nextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},t.getStartDateOfMonth=function(e,t){var n=new Date(e,t,1),r=n.getDay();return m(n,0===r?7:r)},t.getWeekNumber=function(e){if(!d(e))return null;var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},t.getRangeHours=function(e){var t=[],n=[];if((e||[]).forEach((function(e){var t=e.map((function(e){return e.getHours()}));n=n.concat(u(t[0],t[1]))})),n.length)for(var r=0;r<24;r++)t[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)t[i]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var r=n.getDate();return v(t).map((function(e,n){return r-(t-n-1)}))},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=t.getDate();return v(n).map((function(e,t){return t+1}))};function g(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach((function(e){var r=e[0],i=e[1],o=r.getHours(),a=r.getMinutes(),s=i.getHours(),l=i.getMinutes();o===t&&s!==t?g(n,a,60,!0):o===t&&s===t?g(n,a,l+1,!0):o!==t&&s===t?g(n,0,l+1,!0):o<t&&s>t&&g(n,0,60,!0)})):g(n,0,60,!0),n};var v=t.range=function(e){return Array.apply(null,{length:e}).map((function(e,t){return t}))},b=t.modifyDate=function(e,t,n,r){return new Date(t,n,r,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},y=t.modifyTime=function(e,t,n,r){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,r,e.getMilliseconds())},w=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=h(t,"HH:mm:ss"),y(e,t.getHours(),t.getMinutes(),t.getSeconds())):e},t.clearTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.clearMilliseconds=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)},t.limitTimeRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;var r=function(e){return i.default.parse(i.default.format(e,n),n)},o=r(e),a=t.map((function(e){return e.map(r)}));if(a.some((function(e){return o>=e[0]&&o<=e[1]})))return e;var s=a[0][0],l=a[0][0];a.forEach((function(e){s=new Date(Math.min(e[0],s)),l=new Date(Math.max(e[1],s))}));var u=o<s?s:l;return b(u,e.getFullYear(),e.getMonth(),e.getDate())}),_=(t.timeWithinRange=function(e,t,n){var r=w(e,t,n);return r.getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var r=Math.min(e.getDate(),p(t,n));return b(e,t,n,r)});t.prevMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?_(e,t-1,11):_(e,t,n-1)},t.nextMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?_(e,t+1,0):_(e,t,n+1)},t.prevYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return _(e,n-t,r)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return _(e,n+t,r)},t.extractDateFormat=function(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},t.extractTimeFormat=function(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},t.validateRangeInOneMonth=function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},t.isSameDate=function(e,t){var n=f(e);n.setHours(0,0,0,0);var r=f(t);return r.setHours(0,0,0,0),n.getTime()===r.getTime()}},"323d":function(e,t,n){"use strict";n("2a10")},"32a6":function(e,t,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",(function(){return function(e){return i(r(e))}}))},"32e4":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=151)}({151:function(e,t,n){"use strict";n.r(t);var r=n(6),i=n.n(r),o=n(20),a=n.n(o),s=n(2),l=n(3),u=n(7),c=n.n(u),f={name:"ElTooltip",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(l.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new c.a({data:{node:""},render:function(){return this.node}}).$mount(),this.debounceClose=a()(200,(function(){return e.handleClosePopper()})))},render:function(){var e=this,t=arguments[0];this.popperVM&&(this.popperVM.node=t("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t("div",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s.on)(this.referenceElm,"mouseenter",this.show),Object(s.on)(this.referenceElm,"mouseleave",this.hide),Object(s.on)(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(s.on)(this.referenceElm,"blur",this.handleBlur),Object(s.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(s.addClass)(this.referenceElm,"focusing"):Object(s.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)e[n]&&e[n].tag&&(t=e[n]);return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(s.off)(e,"mouseenter",this.show),Object(s.off)(e,"mouseleave",this.hide),Object(s.off)(e,"focus",this.handleFocus),Object(s.off)(e,"blur",this.handleBlur),Object(s.off)(e,"click",this.removeFocusing))},install:function(e){e.component(f.name,f)}};t.default=f},2:function(e,t){e.exports=n("f321")},20:function(e,t){e.exports=n("0e15")},3:function(e,t){e.exports=n("bf32")},6:function(e,t){e.exports=n("1e6c")},7:function(e,t){e.exports=n("8bbf")}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32f9":function(e,t,n){"use strict";var r=n("cb12"),i=n("6530"),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function e(e,t){this.width=e,this.height=t;for(var n=new Array(t),r=0;r!==t;r++)n[r]=new Uint8Array(e);this.bytes=n}return e.prototype.getHeight=function(){return this.height},e.prototype.getWidth=function(){return this.width},e.prototype.get=function(e,t){return this.bytes[t][e]},e.prototype.getArray=function(){return this.bytes},e.prototype.setNumber=function(e,t,n){this.bytes[t][e]=n},e.prototype.setBoolean=function(e,t,n){this.bytes[t][e]=n?1:0},e.prototype.clear=function(e){var t,n;try{for(var i=o(this.bytes),a=i.next();!a.done;a=i.next()){var s=a.value;r["a"].fill(s,e)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;if(this.width!==n.width)return!1;if(this.height!==n.height)return!1;for(var r=0,i=this.height;r<i;++r)for(var o=this.bytes[r],a=n.bytes[r],s=0,l=this.width;s<l;++s)if(o[s]!==a[s])return!1;return!0},e.prototype.toString=function(){for(var e=new i["a"],t=0,n=this.height;t<n;++t){for(var r=this.bytes[t],o=0,a=this.width;o<a;++o)switch(r[o]){case 0:e.append(" 0");break;case 1:e.append(" 1");break;default:e.append(" ");break}e.append("\n")}return e.toString()},e}();t["a"]=a},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"330b":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,t&&t.apply(null,arguments))};r?e.$once("after-leave",o):e.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"33a4":function(e,t,n){var r=n("84f2"),i=n("2b4c")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"34c8":function(e,t,n){"use strict";var r=n("547e"),i=n("a7f2"),o=n("8285"),a=n("9cca"),s=function(){function e(e){this.field=e}return e.prototype.decode=function(e,t){for(var n=this.field,a=new i["a"](n,e),s=new Int32Array(t),l=!0,u=0;u<t;u++){var c=a.evaluateAt(n.exp(u+n.getGeneratorBase()));s[s.length-1-u]=c,0!==c&&(l=!1)}if(!l){var f=new i["a"](n,s),d=this.runEuclideanAlgorithm(n.buildMonomial(t,1),f,t),h=d[0],p=d[1],m=this.findErrorLocations(h),g=this.findErrorMagnitudes(p,m);for(u=0;u<m.length;u++){var v=e.length-1-n.log(m[u]);if(v<0)throw new o["a"]("Bad error location");e[v]=r["a"].addOrSubtract(e[v],g[u])}}},e.prototype.runEuclideanAlgorithm=function(e,t,n){if(e.getDegree()<t.getDegree()){var r=e;e=t,t=r}var i=this.field,s=e,l=t,u=i.getZero(),c=i.getOne();while(l.getDegree()>=(n/2|0)){var f=s,d=u;if(s=l,u=c,s.isZero())throw new o["a"]("r_{i-1} was zero");l=f;var h=i.getZero(),p=s.getCoefficient(s.getDegree()),m=i.inverse(p);while(l.getDegree()>=s.getDegree()&&!l.isZero()){var g=l.getDegree()-s.getDegree(),v=i.multiply(l.getCoefficient(l.getDegree()),m);h=h.addOrSubtract(i.buildMonomial(g,v)),l=l.addOrSubtract(s.multiplyByMonomial(g,v))}if(c=h.multiply(u).addOrSubtract(d),l.getDegree()>=s.getDegree())throw new a["a"]("Division algorithm failed to reduce polynomial?")}var b=c.getCoefficient(0);if(0===b)throw new o["a"]("sigmaTilde(0) was zero");var y=i.inverse(b),w=c.multiplyScalar(y),_=l.multiplyScalar(y);return[w,_]},e.prototype.findErrorLocations=function(e){var t=e.getDegree();if(1===t)return Int32Array.from([e.getCoefficient(1)]);for(var n=new Int32Array(t),r=0,i=this.field,a=1;a<i.getSize()&&r<t;a++)0===e.evaluateAt(a)&&(n[r]=i.inverse(a),r++);if(r!==t)throw new o["a"]("Error locator degree does not match number of roots");return n},e.prototype.findErrorMagnitudes=function(e,t){for(var n=t.length,r=new Int32Array(n),i=this.field,o=0;o<n;o++){for(var a=i.inverse(t[o]),s=1,l=0;l<n;l++)if(o!==l){var u=i.multiply(t[l],a),c=0===(1&u)?1|u:-2&u;s=i.multiply(s,c)}r[o]=i.multiply(e.evaluateAt(a),i.inverse(s)),0!==i.getGeneratorBase()&&(r[o]=i.multiply(r[o],a))}return r},e}();t["a"]=s},"34de":function(e,t,n){n("09cf")},"34ef":function(e,t,n){n("ec30")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36bd":function(e,t,n){"use strict";var r=n("4bf8"),i=n("77f1"),o=n("9def");e.exports=function(e){var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);while(u>s)t[s++]=e;return t}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"370f":function(e,t,n){"use strict";var r=n("a363"),i=n("7163"),o=n("2011"),a=n("5134"),s=n("6833"),l=n("f0a7"),u=n("9cca"),c=function(){function e(){}return e.prototype.encode=function(t,n,o,u,c){if(0===t.length)throw new l["a"]("Found empty contents");if(n!==r["a"].QR_CODE)throw new l["a"]("Can only encode QR_CODE, but got "+n);if(o<0||u<0)throw new l["a"]("Requested dimensions are too small: "+o+"x"+u);var f=a["a"].L,d=e.QUIET_ZONE_SIZE;null!==c&&(void 0!==c.get(i["a"].ERROR_CORRECTION)&&(f=a["a"].fromString(c.get(i["a"].ERROR_CORRECTION).toString())),void 0!==c.get(i["a"].MARGIN)&&(d=Number.parseInt(c.get(i["a"].MARGIN).toString(),10)));var h=s["a"].encode(t,f,c);return e.renderResult(h,o,u,d)},e.renderResult=function(e,t,n,r){var i=e.getMatrix();if(null===i)throw new u["a"];for(var a=i.getWidth(),s=i.getHeight(),l=a+2*r,c=s+2*r,f=Math.max(t,l),d=Math.max(n,c),h=Math.min(Math.floor(f/l),Math.floor(d/c)),p=Math.floor((f-a*h)/2),m=Math.floor((d-s*h)/2),g=new o["a"](f,d),v=0,b=m;v<s;v++,b+=h)for(var y=0,w=p;y<a;y++,w+=h)1===i.get(y,v)&&g.setRegion(w,b,h,h);return g},e.QUIET_ZONE_SIZE=4,e}();t["a"]=c},"37c8":function(e,t,n){t.f=n("2b4c")},"381a":function(e,t,n){"use strict";var r="0123456789",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",o="~!@#$%^*()_+-=[]{}|;:,./<>?";function a(e,t){e||(e=8),t||(t={});var n="",a="";!0===t?n=r+i+o:"string"==typeof t?n=t:(!1!==t.numbers&&(n+="string"==typeof t.numbers?t.numbers:r),!1!==t.letters&&(n+="string"==typeof t.letters?t.letters:i),t.specials&&(n+="string"==typeof t.specials?t.specials:o));while(e>0)e--,a+=n[Math.floor(Math.random()*n.length)];return a}e.exports=a.default=a},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"386b":function(e,t,n){var r=n("5ca1"),i=n("79e5"),o=n("be13"),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},"386d":function(e,t,n){"use strict";var r=n("cb7c"),i=n("83a1"),o=n("5f1b");n("214f")("search",1,(function(e,t,n,a){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),l=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var c=o(s,l);return i(s.lastIndex,u)||(s.lastIndex=u),null===c?-1:c.index}]}))},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"39b6":function(e,t,n){},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"3a72":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("2d00"),a=n("37c8"),s=n("86cc").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"3ab8":function(e,t,n){"use strict";var r=function(){function e(){}return e.prototype.isCompact=function(){return this.compact},e.prototype.setCompact=function(e){this.compact=e},e.prototype.getSize=function(){return this.size},e.prototype.setSize=function(e){this.size=e},e.prototype.getLayers=function(){return this.layers},e.prototype.setLayers=function(e){this.layers=e},e.prototype.getCodeWords=function(){return this.codeWords},e.prototype.setCodeWords=function(e){this.codeWords=e},e.prototype.getMatrix=function(){return this.matrix},e.prototype.setMatrix=function(e){this.matrix=e},e}();t["a"]=r},"3b2b":function(e,t,n){var r=n("7726"),i=n("5dbc"),o=n("86cc").f,a=n("9093").f,s=n("aae3"),l=n("0bfb"),u=r.RegExp,c=u,f=u.prototype,d=/a/g,h=/a/g,p=new u(d)!==d;if(n("9e1e")&&(!p||n("79e5")((function(){return h[n("2b4c")("match")]=!1,u(d)!=d||u(h)==h||"/a/i"!=u(d,"i")})))){u=function(e,t){var n=this instanceof u,r=s(e),o=void 0===t;return!n&&r&&e.constructor===u&&o?e:i(p?new c(r&&!o?e.source:e,t):c((r=e instanceof u)?e.source:e,r&&o?l.call(e):t),n?this:f,u)};for(var m=function(e){e in u||o(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},g=a(c),v=0;g.length>v;)m(g[v++]);f.constructor=u,u.prototype=f,n("2aba")(r,"RegExp",u)}n("7a56")("RegExp")},"3b2e":function(e,t,n){},"3bbd":function(e,t,n){"use strict";var r=n("2d92"),i=n("f0a7"),o=n("63af"),a=n("6530"),s=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(){function e(e,t){if(0===t.length)throw new i["a"];this.field=e;var n=t.length;if(n>1&&0===t[0]){var r=1;while(r<n&&0===t[r])r++;r===n?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(n-r),o["a"].arraycopy(t,r,this.coefficients,0,this.coefficients.length))}else this.coefficients=t}return e.prototype.getCoefficients=function(){return this.coefficients},e.prototype.getDegree=function(){return this.coefficients.length-1},e.prototype.isZero=function(){return 0===this.coefficients[0]},e.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},e.prototype.evaluateAt=function(e){var t,n;if(0===e)return this.getCoefficient(0);if(1===e){var r=0;try{for(var i=s(this.coefficients),o=i.next();!o.done;o=i.next()){var a=o.value;r=this.field.add(r,a)}}catch(f){t={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}for(var l=this.coefficients[0],u=this.coefficients.length,c=1;c<u;c++)l=this.field.add(this.field.multiply(e,l),this.coefficients[c]);return l},e.prototype.add=function(t){if(!this.field.equals(t.field))throw new i["a"]("ModulusPolys do not have same ModulusGF field");if(this.isZero())return t;if(t.isZero())return this;var n=this.coefficients,r=t.coefficients;if(n.length>r.length){var a=n;n=r,r=a}var s=new Int32Array(r.length),l=r.length-n.length;o["a"].arraycopy(r,0,s,0,l);for(var u=l;u<r.length;u++)s[u]=this.field.add(n[u-l],r[u]);return new e(this.field,s)},e.prototype.subtract=function(e){if(!this.field.equals(e.field))throw new i["a"]("ModulusPolys do not have same ModulusGF field");return e.isZero()?this:this.add(e.negative())},e.prototype.multiply=function(t){return t instanceof e?this.multiplyOther(t):this.multiplyScalar(t)},e.prototype.multiplyOther=function(t){if(!this.field.equals(t.field))throw new i["a"]("ModulusPolys do not have same ModulusGF field");if(this.isZero()||t.isZero())return new e(this.field,new Int32Array([0]));for(var n=this.coefficients,r=n.length,o=t.coefficients,a=o.length,s=new Int32Array(r+a-1),l=0;l<r;l++)for(var u=n[l],c=0;c<a;c++)s[l+c]=this.field.add(s[l+c],this.field.multiply(u,o[c]));return new e(this.field,s)},e.prototype.negative=function(){for(var t=this.coefficients.length,n=new Int32Array(t),r=0;r<t;r++)n[r]=this.field.subtract(0,this.coefficients[r]);return new e(this.field,n)},e.prototype.multiplyScalar=function(t){if(0===t)return new e(this.field,new Int32Array([0]));if(1===t)return this;for(var n=this.coefficients.length,r=new Int32Array(n),i=0;i<n;i++)r[i]=this.field.multiply(this.coefficients[i],t);return new e(this.field,r)},e.prototype.multiplyByMonomial=function(t,n){if(t<0)throw new i["a"];if(0===n)return new e(this.field,new Int32Array([0]));for(var r=this.coefficients.length,o=new Int32Array(r+t),a=0;a<r;a++)o[a]=this.field.multiply(this.coefficients[a],n);return new e(this.field,o)},e.prototype.toString=function(){for(var e=new a["a"],t=this.getDegree();t>=0;t--){var n=this.getCoefficient(t);0!==n&&(n<0?(e.append(" - "),n=-n):e.length()>0&&e.append(" + "),0!==t&&1===n||e.append(n),0!==t&&(1===t?e.append("x"):(e.append("x^"),e.append(t))))}return e.toString()},e}(),u=l,c=n("ab5b"),f=n("8635"),d=function(){function e(){}return e.prototype.add=function(e,t){return(e+t)%this.modulus},e.prototype.subtract=function(e,t){return(this.modulus+e-t)%this.modulus},e.prototype.exp=function(e){return this.expTable[e]},e.prototype.log=function(e){if(0===e)throw new i["a"];return this.logTable[e]},e.prototype.inverse=function(e){if(0===e)throw new f["a"];return this.expTable[this.modulus-this.logTable[e]-1]},e.prototype.multiply=function(e,t){return 0===e||0===t?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.modulus-1)]},e.prototype.getSize=function(){return this.modulus},e.prototype.equals=function(e){return e===this},e}(),h=d,p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(e){function t(t,n){var r=e.call(this)||this;r.modulus=t,r.expTable=new Int32Array(t),r.logTable=new Int32Array(t);for(var i=1,o=0;o<t;o++)r.expTable[o]=i,i=i*n%t;for(o=0;o<t-1;o++)r.logTable[r.expTable[o]]=o;return r.zero=new u(r,new Int32Array([0])),r.one=new u(r,new Int32Array([1])),r}return p(t,e),t.prototype.getZero=function(){return this.zero},t.prototype.getOne=function(){return this.one},t.prototype.buildMonomial=function(e,t){if(e<0)throw new i["a"];if(0===t)return this.zero;var n=new Int32Array(e+1);return n[0]=t,new u(this,n)},t.PDF417_GF=new t(c["a"].NUMBER_OF_CODEWORDS,3),t}(h),g=m,v=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(){function e(){this.field=g.PDF417_GF}return e.prototype.decode=function(e,t,n){for(var i,o,a=new u(this.field,e),s=new Int32Array(t),l=!1,c=t;c>0;c--){var f=a.evaluateAt(this.field.exp(c));s[t-c]=f,0!==f&&(l=!0)}if(!l)return 0;var d=this.field.getOne();if(null!=n)try{for(var h=v(n),p=h.next();!p.done;p=h.next()){var m=p.value,g=this.field.exp(e.length-1-m),b=new u(this.field,new Int32Array([this.field.subtract(0,g),1]));d=d.multiply(b)}}catch(D){i={error:D}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}var y=new u(this.field,s),w=this.runEuclideanAlgorithm(this.field.buildMonomial(t,1),y,t),_=w[0],C=w[1],x=this.findErrorLocations(_),S=this.findErrorMagnitudes(C,_,x);for(c=0;c<x.length;c++){var k=e.length-1-this.field.log(x[c]);if(k<0)throw r["a"].getChecksumInstance();e[k]=this.field.subtract(e[k],S[c])}return x.length},e.prototype.runEuclideanAlgorithm=function(e,t,n){if(e.getDegree()<t.getDegree()){var i=e;e=t,t=i}var o=e,a=t,s=this.field.getZero(),l=this.field.getOne();while(a.getDegree()>=Math.round(n/2)){var u=o,c=s;if(o=a,s=l,o.isZero())throw r["a"].getChecksumInstance();a=u;var f=this.field.getZero(),d=o.getCoefficient(o.getDegree()),h=this.field.inverse(d);while(a.getDegree()>=o.getDegree()&&!a.isZero()){var p=a.getDegree()-o.getDegree(),m=this.field.multiply(a.getCoefficient(a.getDegree()),h);f=f.add(this.field.buildMonomial(p,m)),a=a.subtract(o.multiplyByMonomial(p,m))}l=f.multiply(s).subtract(c).negative()}var g=l.getCoefficient(0);if(0===g)throw r["a"].getChecksumInstance();var v=this.field.inverse(g),b=l.multiply(v),y=a.multiply(v);return[b,y]},e.prototype.findErrorLocations=function(e){for(var t=e.getDegree(),n=new Int32Array(t),i=0,o=1;o<this.field.getSize()&&i<t;o++)0===e.evaluateAt(o)&&(n[i]=this.field.inverse(o),i++);if(i!==t)throw r["a"].getChecksumInstance();return n},e.prototype.findErrorMagnitudes=function(e,t,n){for(var r=t.getDegree(),i=new Int32Array(r),o=1;o<=r;o++)i[r-o]=this.field.multiply(o,t.getCoefficient(o));var a=new u(this.field,i),s=n.length,l=new Int32Array(s);for(o=0;o<s;o++){var c=this.field.inverse(n[o]),f=this.field.subtract(0,e.evaluateAt(c)),d=this.field.inverse(a.evaluateAt(c));l[o]=this.field.multiply(f,d)}return l},e}();t["a"]=b},"3c11":function(e,t,n){"use strict";var r=n("63b6"),i=n("584a"),o=n("e53d"),a=n("f201"),s=n("cd78");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},"3c41":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=0,n=function(e){var n=new Date,r=n.getTime(),i=Math.floor(1e9*Math.random());return t++,e+"_"+i+t+String(r)},r=function(e,t){var n='<table data-mce-id="mce" style="width: 100%">';n+="<tbody>";for(var r=0;r<t;r++){n+="<tr>";for(var i=0;i<e;i++)n+="<td><br></td>";n+="</tr>"}return n+="</tbody>",n+="</table>",n},i=function(e){var t=e.dom.select("*[data-mce-id]");return t[0]},o=function(e,t,n){e.undoManager.transact((function(){e.insertContent(r(t,n));var o=i(e);o.removeAttribute("data-mce-id");var a=e.dom.select("td,th",o);e.selection.setCursorLocation(a[0],0)}))},a=function(e,t,n){e.plugins.table?e.plugins.table.insertTable(t,n):o(e,t,n)},s=function(e,t,r){var i=e.editorUpload.blobCache,o=i.create(n("mceu"),r,t);i.add(o),e.insertContent(e.dom.createHTML("img",{src:o.blobUri()}))},l=tinymce.util.Tools.resolve("tinymce.util.Promise"),u=function(e){return new l((function(t){var n=new FileReader;n.onloadend=function(){t(n.result.split(",")[1])},n.readAsDataURL(e)}))},c=tinymce.util.Tools.resolve("tinymce.Env"),f=tinymce.util.Tools.resolve("tinymce.util.Delay"),d=function(e){return new l((function(t){var n=document.createElement("input");n.type="file",n.accept="image/*",n.style.position="fixed",n.style.left="0",n.style.top="0",n.style.opacity="0.001",document.body.appendChild(n);var r=function(e){t(Array.prototype.slice.call(e.target.files))};n.addEventListener("change",r);var i=function(r){var o=function(){t([]),n.parentNode.removeChild(n)};c.os.isAndroid()&&"remove"!==r.type?f.setEditorTimeout(e,o,0):o(),e.off("focusin remove",i)};e.on("focusin remove",i),n.click()}))},h=function(e){e.ui.registry.addButton("quickimage",{icon:"image",tooltip:"Insert image",onAction:function(){d(e).then((function(t){if(t.length>0){var n=t[0];u(n).then((function(t){s(e,t,n)}))}}))}}),e.ui.registry.addButton("quicktable",{icon:"table",tooltip:"Insert table",onAction:function(){a(e,2,2)}})},p=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},m=function(e){return function(t){return p(t)===e}},g=function(e){return function(t){return typeof t===e}},v=function(e){return function(t){return e===t}},b=m("string"),y=m("object"),w=m("array"),_=g("boolean"),C=v(void 0),x=g("function"),S=function(){},k=function(e){return function(){return e}},D=function(e){return e},O=k(!1),T=k(!0),E=function(){return I},I=function(){var e=function(e){return e()},t=D,n={fold:function(e,t){return e()},isSome:O,isNone:T,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:k(null),getOrUndefined:k(void 0),or:t,orThunk:e,map:E,each:S,bind:E,exists:O,forall:T,filter:function(){return E()},toArray:function(){return[]},toString:k("none()")};return n}(),N=function(e){var t=k(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:T,isNone:O,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return N(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:I},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},A=function(e){return null===e||void 0===e?I:N(e)},P={some:N,none:E,from:A};function M(e,t,n,r,i){return e(n,r)?P.some(n):x(i)&&i(n)?P.none():t(n,r,i)}var R=1,F=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return $(r.childNodes[0])},B=function(e,t){var n=t||document,r=n.createElement(e);return $(r)},L=function(e,t){var n=t||document,r=n.createTextNode(e);return $(r)},$=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},V=function(e,t,n){return P.from(e.dom.elementFromPoint(t,n)).map($)},j={fromHtml:F,fromTag:B,fromText:L,fromDom:$,fromPoint:V},z=function(e,t){var n=e.dom;if(n.nodeType!==R)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")};"undefined"!==typeof window?window:Function("return this;")();var H=function(e){var t=e.dom.nodeName;return t.toLowerCase()},U=function(e,t,n){var r=e.dom,i=x(n)?n:O;while(r.parentNode){r=r.parentNode;var o=j.fromDom(r);if(t(o))return P.some(o);if(i(o))break}return P.none()},W=function(e,t,n){var r=function(e,t){return t(e)};return M(r,U,e,t,n)},q=function(e,t,n){return U(e,(function(e){return z(e,t)}),n)},G=function(e,t,n){var r=function(e,t){return z(e,t)};return M(r,q,e,t,n)},Y=function(e,t){if(t(e))return!0;throw new Error("Default value doesn't match requested type.")},K=function(e,t){if(w(e)||y(e))throw new Error("expected a string but found: "+e);return C(e)?t:_(e)?!1===e?"":t:e},X=function(e){return function(t,n,r){Y(r,e);var i=t.getParam(n,r);return K(i,r)}},J=X(b),Z=function(e){return J(e,"quickbars_selection_toolbar","bold italic | quicklink h2 h3 blockquote")},Q=function(e){return J(e,"quickbars_insert_toolbar","quickimage quicktable")},ee=function(e){return J(e,"quickbars_image_toolbar","alignleft aligncenter alignright")},te=function(e){var t=Q(e);t.trim().length>0&&e.ui.registry.addContextToolbar("quickblock",{predicate:function(t){var n=j.fromDom(t),r=e.schema.getTextBlockElements(),i=function(t){return t.dom===e.getBody()};return G(n,"table",i).fold((function(){return W(n,(function(t){return H(t)in r&&e.dom.isEmpty(t.dom)}),i).isSome()}),O)},items:t,position:"line",scope:"editor"})},ne=function(e){var t=function(t){return"false"!==e.dom.getContentEditableParent(t)},n=function(e){return"IMG"===e.nodeName||"FIGURE"===e.nodeName&&/image/i.test(e.className)},r=ee(e);r.trim().length>0&&e.ui.registry.addContextToolbar("imageselection",{predicate:n,items:r,position:"node"});var i=Z(e);i.trim().length>0&&e.ui.registry.addContextToolbar("textselection",{predicate:function(r){return!n(r)&&!e.selection.isCollapsed()&&t(r)},items:i,position:"selection",scope:"editor"})};function re(){e.add("quickbars",(function(e){h(e),te(e),ne(e)}))}re()})()},"3c4e":function(e,t,n){"use strict";var r=function(e){return i(e)&&!o(e)};function i(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===s}function u(e){return Array.isArray(e)?[]:{}}function c(e,t){var n=t&&!0===t.clone;return n&&r(e)?h(u(e),e,t):e}function f(e,t,n){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=c(t,n):r(t)?i[o]=h(e[o],t,n):-1===e.indexOf(t)&&i.push(c(t,n))})),i}function d(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function(t){i[t]=c(e[t],n)})),Object.keys(t).forEach((function(o){r(t[o])&&e[o]?i[o]=h(e[o],t[o],n):i[o]=c(t[o],n)})),i}function h(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:f},a=r===i;if(a){if(r){var s=o.arrayMerge||f;return s(e,t,n)}return d(e,t,n)}return c(t,n)}h.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return h(e,n,t)}))};var p=h;e.exports=p},"3c96":function(e,t,n){"use strict";(function(e){var r=n("53ca"),i=e.localStorage;i={get length(){return e.localStorage.length},getItem:e.localStorage.getItem.bind(e.localStorage),setItem:e.localStorage.setItem.bind(e.localStorage),removeItem:e.localStorage.removeItem.bind(e.localStorage),key:e.localStorage.key.bind(e.localStorage),clear:e.localStorage.clear.bind(e.localStorage),setObject:function(e,t){return"object"!==Object(r["a"])(t)?this.setItem(e,t):this.setItem(e,JSON.stringify(t))},getObject:function(e){var t=this.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(n){return t}}},t["a"]=i}).call(this,n("c8ba"))},"3c99":function(e,t,n){},"3cb6":function(e,t){},"3d59":function(e,t,n){"use strict";var r=n("a363"),i=n("2d92"),o=n("fe96"),a=n("7978"),s=n("ca08"),l=n("2f50"),u=n("8c95"),c=n("0b81"),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.findStartPattern=function(e){for(var n=e.getSize(),r=e.getNextSet(0),i=0,o=Int32Array.from([0,0,0,0,0,0]),a=r,l=!1,u=6,f=r;f<n;f++)if(e.get(f)!==l)o[i]++;else{if(i===u-1){for(var d=t.MAX_AVG_VARIANCE,h=-1,p=t.CODE_START_A;p<=t.CODE_START_C;p++){var m=c["a"].patternMatchVariance(o,t.CODE_PATTERNS[p],t.MAX_INDIVIDUAL_VARIANCE);m<d&&(d=m,h=p)}if(h>=0&&e.isRange(Math.max(0,a-(f-a)/2),a,!1))return Int32Array.from([a,f,h]);a+=o[0]+o[1],o=o.slice(2,o.length-1),o[i-1]=0,o[i]=0,i--}else i++;o[i]=1,l=!l}throw new s["a"]},t.decodeCode=function(e,n,r){c["a"].recordPattern(e,r,n);for(var i=t.MAX_AVG_VARIANCE,o=-1,a=0;a<t.CODE_PATTERNS.length;a++){var l=t.CODE_PATTERNS[a],u=this.patternMatchVariance(n,l,t.MAX_INDIVIDUAL_VARIANCE);u<i&&(i=u,o=a)}if(o>=0)return o;throw new s["a"]},t.prototype.decodeRow=function(e,n,c){var f,d=c&&!0===c.get(o["a"].ASSUME_GS1),h=t.findStartPattern(n),p=h[2],m=0,g=new Uint8Array(20);switch(g[m++]=p,p){case t.CODE_START_A:f=t.CODE_CODE_A;break;case t.CODE_START_B:f=t.CODE_CODE_B;break;case t.CODE_START_C:f=t.CODE_CODE_C;break;default:throw new a["a"]}var v=!1,b=!1,y="",w=h[0],_=h[1],C=Int32Array.from([0,0,0,0,0,0]),x=0,S=0,k=p,D=0,O=!0,T=!1,E=!1;while(!v){var I=b;switch(b=!1,x=S,S=t.decodeCode(n,C,_),g[m++]=S,S!==t.CODE_STOP&&(O=!0),S!==t.CODE_STOP&&(D++,k+=D*S),w=_,_+=C.reduce((function(e,t){return e+t}),0),S){case t.CODE_START_A:case t.CODE_START_B:case t.CODE_START_C:throw new a["a"]}switch(f){case t.CODE_CODE_A:if(S<64)y+=E===T?String.fromCharCode(" ".charCodeAt(0)+S):String.fromCharCode(" ".charCodeAt(0)+S+128),E=!1;else if(S<96)y+=E===T?String.fromCharCode(S-64):String.fromCharCode(S+64),E=!1;else switch(S!==t.CODE_STOP&&(O=!1),S){case t.CODE_FNC_1:d&&(0===y.length?y+="]C1":y+=String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_A:!T&&E?(T=!0,E=!1):T&&E?(T=!1,E=!1):E=!0;break;case t.CODE_SHIFT:b=!0,f=t.CODE_CODE_B;break;case t.CODE_CODE_B:f=t.CODE_CODE_B;break;case t.CODE_CODE_C:f=t.CODE_CODE_C;break;case t.CODE_STOP:v=!0;break}break;case t.CODE_CODE_B:if(S<96)y+=E===T?String.fromCharCode(" ".charCodeAt(0)+S):String.fromCharCode(" ".charCodeAt(0)+S+128),E=!1;else switch(S!==t.CODE_STOP&&(O=!1),S){case t.CODE_FNC_1:d&&(0===y.length?y+="]C1":y+=String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_B:!T&&E?(T=!0,E=!1):T&&E?(T=!1,E=!1):E=!0;break;case t.CODE_SHIFT:b=!0,f=t.CODE_CODE_A;break;case t.CODE_CODE_A:f=t.CODE_CODE_A;break;case t.CODE_CODE_C:f=t.CODE_CODE_C;break;case t.CODE_STOP:v=!0;break}break;case t.CODE_CODE_C:if(S<100)S<10&&(y+="0"),y+=S;else switch(S!==t.CODE_STOP&&(O=!1),S){case t.CODE_FNC_1:d&&(0===y.length?y+="]C1":y+=String.fromCharCode(29));break;case t.CODE_CODE_A:f=t.CODE_CODE_A;break;case t.CODE_CODE_B:f=t.CODE_CODE_B;break;case t.CODE_STOP:v=!0;break}break}I&&(f=f===t.CODE_CODE_A?t.CODE_CODE_B:t.CODE_CODE_A)}var N=_-w;if(_=n.getNextUnset(_),!n.isRange(_,Math.min(n.getSize(),_+(_-w)/2),!1))throw new s["a"];if(k-=D*x,k%103!==x)throw new i["a"];var A=y.length;if(0===A)throw new s["a"];A>0&&O&&(y=f===t.CODE_CODE_C?y.substring(0,A-2):y.substring(0,A-1));for(var P=(h[1]+h[0])/2,M=w+N/2,R=g.length,F=new Uint8Array(R),B=0;B<R;B++)F[B]=g[B];var L=[new u["a"](P,e),new u["a"](M,e)];return new l["a"](y,F,0,L,r["a"].CODE_128,(new Date).getTime())},t.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],t.MAX_AVG_VARIANCE=.25,t.MAX_INDIVIDUAL_VARIANCE=.7,t.CODE_SHIFT=98,t.CODE_CODE_C=99,t.CODE_CODE_B=100,t.CODE_CODE_A=101,t.CODE_FNC_1=102,t.CODE_FNC_2=97,t.CODE_FNC_3=96,t.CODE_FNC_4_A=101,t.CODE_FNC_4_B=100,t.CODE_START_A=103,t.CODE_START_B=104,t.CODE_START_C=105,t.CODE_STOP=106,t}(c["a"]);t["a"]=d},"3f6b":function(e,t,n){e.exports={default:n("51b6"),__esModule:!0}},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},4163:function(e,t,n){"use strict";t.__esModule=!0;var r=n("8bbf"),i=a(r),o=n("eb30");function a(e){return e&&e.__esModule?e:{default:e}}var s=i.default.prototype.$isServer?function(){}:n("ddb3"),l=function(e){return e.stopPropagation()};t.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(e){this.showPopper=e,this.$emit("input",e)}},showPopper:function(e){this.disabled||(e?this.updatePopper():this.destroyPopper(),this.$emit("input",e))}},methods:{createPopper:function(){var e=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var t=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.$refs.reference.$el||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),t.placement=this.currentPlacement,t.offset=this.offset,t.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,t),this.popperJS.onCreate((function(){e.$emit("created",e),e.resetTransformOrigin(),e.$nextTick(e.updatePopper)})),"function"===typeof t.onUpdate&&this.popperJS.onUpdate(t.onUpdate),this.popperJS._popper.style.zIndex=o.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",l))}},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=o.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(e){!this.popperJS||this.showPopper&&!e||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var e={top:"bottom",bottom:"top",left:"right",right:"left"},t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],n=e[t];this.popperJS._popper.style.transformOrigin="string"===typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+n:n+" center"}},appendArrow:function(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var r=document.createElement("div");t&&r.setAttribute(t,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",e.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},4178:function(e,t,n){var r,i,o,a=n("d864"),s=n("3024"),l=n("32fc"),u=n("1ec9"),c=n("e53d"),f=c.process,d=c.setImmediate,h=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},b="onreadystatechange",y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},w=function(e){y.call(e.data)};d&&h||(d=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},h=function(e){delete v[e]},"process"==n("6b4c")(f)?r=function(e){f.nextTick(a(y,e,1))}:m&&m.now?r=function(e){m.now(a(y,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",w,!1)):r=b in u("script")?function(e){l.appendChild(u("script"))[b]=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:d,clear:h}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var r=n("3f6b"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},"41ec":function(e,t,n){},4237:function(e,t,n){n("be7f")},"43fc":function(e,t,n){"use strict";var r=n("63b6"),i=n("656e"),o=n("4439");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},4439:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47d1":function(e,t,n){"use strict";t.__esModule=!0;var r=n("1098"),i=a(r);t.isVNode=s;var o=n("bf32");function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":(0,i.default)(e))&&(0,o.hasOwn)(e,"componentOptions")}},"47ee":function(e,t,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,u=0;while(s.length>u)l.call(e,a=s[u++])&&t.push(a)}return t}},"481b":function(e,t){e.exports={}},4849:function(e,t,n){e.exports={default:n("454f"),__esModule:!0}},4873:function(e,t,n){"use strict";n("67d3")},4917:function(e,t,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),a=n("5f1b");n("214f")("match",1,(function(e,t,n,s){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=r(e),u=String(this);if(!l.global)return a(l,u);var c=l.unicode;l.lastIndex=0;var f,d=[],h=0;while(null!==(f=a(l,u))){var p=String(f[0]);d[h]=p,""===p&&(l.lastIndex=o(u,i(l.lastIndex),c)),h++}return 0===h?null:d}]}))},4986:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="WriterException",t}(r["a"]);t["a"]=o},"4a59":function(e,t,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),l=n("27ee"),u={},c={};t=e.exports=function(e,t,n,f,d){var h,p,m,g,v=d?function(){return e}:l(e),b=r(n,f,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(h=s(e.length);h>y;y++)if(g=t?b(a(p=e[y])[0],p[1]):b(e[y]),g===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if(g=i(m,b,p.value,t),g===u||g===c)return g};t.BREAK=u,t.RETURN=c},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4c35":function(e,t,n){"use strict";(function(e){var r,i,o=n("7978"),a=n("67f0"),s=n("a652"),l=n("a593"),u=n("cb12"),c=n("6530"),f=n("ea29"),d=n("7df9"),h=n("d96f"),p=n("78c7");function m(){if("undefined"!==typeof window)return window["BigInt"]||null;if("undefined"!==typeof e)return e["BigInt"]||null;if("undefined"!==typeof self)return self["BigInt"]||null;throw new Error("Can't search globals for BigInt!")}function g(e){if("undefined"===typeof i&&(i=m()),null===i)throw new Error("BigInt is not supported!");return i(e)}function v(){var e=[];e[0]=g(1);var t=g(900);e[1]=t;for(var n=2;n<16;n++)e[n]=e[n-1]*t;return e}(function(e){e[e["ALPHA"]=0]="ALPHA",e[e["LOWER"]=1]="LOWER",e[e["MIXED"]=2]="MIXED",e[e["PUNCT"]=3]="PUNCT",e[e["ALPHA_SHIFT"]=4]="ALPHA_SHIFT",e[e["PUNCT_SHIFT"]=5]="PUNCT_SHIFT"})(r||(r={}));var b=function(){function e(){}return e.decode=function(t,n){var r=new c["a"](""),i=a["a"].ISO8859_1;r.enableDecoding(i);var u=1,f=t[u++],d=new l["a"];while(u<t[0]){switch(f){case e.TEXT_COMPACTION_MODE_LATCH:u=e.textCompaction(t,u,r);break;case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:u=e.byteCompaction(f,t,i,u,r);break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(t[u++]);break;case e.NUMERIC_COMPACTION_MODE_LATCH:u=e.numericCompaction(t,u,r);break;case e.ECI_CHARSET:a["a"].getCharacterSetECIByValue(t[u++]);break;case e.ECI_GENERAL_PURPOSE:u+=2;break;case e.ECI_USER_DEFINED:u++;break;case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:u=e.decodeMacroBlock(t,u,d);break;case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:throw new o["a"];default:u--,u=e.textCompaction(t,u,r);break}if(!(u<t.length))throw o["a"].getFormatInstance();f=t[u++]}if(0===r.length())throw o["a"].getFormatInstance();var h=new s["a"](null,r.toString(),null,n);return h.setOther(d),h},e.decodeMacroBlock=function(t,n,r){if(n+e.NUMBER_OF_SEQUENCE_CODEWORDS>t[0])throw o["a"].getFormatInstance();for(var i=new Int32Array(e.NUMBER_OF_SEQUENCE_CODEWORDS),a=0;a<e.NUMBER_OF_SEQUENCE_CODEWORDS;a++,n++)i[a]=t[n];r.setSegmentIndex(f["a"].parseInt(e.decodeBase900toBase10(i,e.NUMBER_OF_SEQUENCE_CODEWORDS)));var s=new c["a"];n=e.textCompaction(t,n,s),r.setFileId(s.toString());var l=-1;t[n]===e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(l=n+1);while(n<t[0])switch(t[n]){case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(n++,t[n]){case e.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:var h=new c["a"];n=e.textCompaction(t,n+1,h),r.setFileName(h.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var p=new c["a"];n=e.textCompaction(t,n+1,p),r.setSender(p.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var m=new c["a"];n=e.textCompaction(t,n+1,m),r.setAddressee(m.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var g=new c["a"];n=e.numericCompaction(t,n+1,g),r.setSegmentCount(f["a"].parseInt(g.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var v=new c["a"];n=e.numericCompaction(t,n+1,v),r.setTimestamp(d["a"].parseLong(v.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var b=new c["a"];n=e.numericCompaction(t,n+1,b),r.setChecksum(f["a"].parseInt(b.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var y=new c["a"];n=e.numericCompaction(t,n+1,y),r.setFileSize(d["a"].parseLong(y.toString()));break;default:throw o["a"].getFormatInstance()}break;case e.MACRO_PDF417_TERMINATOR:n++,r.setLastSegment(!0);break;default:throw o["a"].getFormatInstance()}if(-1!==l){var w=n-l;r.isLastSegment()&&w--,r.setOptionalData(u["a"].copyOfRange(t,l,l+w))}return n},e.textCompaction=function(t,n,r){var i=new Int32Array(2*(t[0]-n)),o=new Int32Array(2*(t[0]-n)),a=0,s=!1;while(n<t[0]&&!s){var l=t[n++];if(l<e.TEXT_COMPACTION_MODE_LATCH)i[a]=l/30,i[a+1]=l%30,a+=2;else switch(l){case e.TEXT_COMPACTION_MODE_LATCH:i[a++]=e.TEXT_COMPACTION_MODE_LATCH;break;case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:n--,s=!0;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i[a]=e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,l=t[n++],o[a]=l,a++;break}}return e.decodeTextCompaction(i,o,a,r),n},e.decodeTextCompaction=function(t,n,i,o){var a=r.ALPHA,s=r.ALPHA,l=0;while(l<i){var u=t[l],c="";switch(a){case r.ALPHA:if(u<26)c=String.fromCharCode(65+u);else switch(u){case 26:c=" ";break;case e.LL:a=r.LOWER;break;case e.ML:a=r.MIXED;break;case e.PS:s=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break;case r.LOWER:if(u<26)c=String.fromCharCode(97+u);else switch(u){case 26:c=" ";break;case e.AS:s=a,a=r.ALPHA_SHIFT;break;case e.ML:a=r.MIXED;break;case e.PS:s=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break;case r.MIXED:if(u<e.PL)c=e.MIXED_CHARS[u];else switch(u){case e.PL:a=r.PUNCT;break;case 26:c=" ";break;case e.LL:a=r.LOWER;break;case e.AL:a=r.ALPHA;break;case e.PS:s=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break;case r.PUNCT:if(u<e.PAL)c=e.PUNCT_CHARS[u];else switch(u){case e.PAL:a=r.ALPHA;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break;case r.ALPHA_SHIFT:if(a=s,u<26)c=String.fromCharCode(65+u);else switch(u){case 26:c=" ";break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break;case r.PUNCT_SHIFT:if(a=s,u<e.PAL)c=e.PUNCT_CHARS[u];else switch(u){case e.PAL:a=r.ALPHA;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break}""!==c&&o.append(c),l++}},e.byteCompaction=function(t,n,r,i,o){var a=new h["a"],s=0,l=0,u=!1;switch(t){case e.BYTE_COMPACTION_MODE_LATCH:var c=new Int32Array(6),f=n[i++];while(i<n[0]&&!u)switch(c[s++]=f,l=900*l+f,f=n[i++],f){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:i--,u=!0;break;default:if(s%5===0&&s>0){for(var d=0;d<6;++d)a.write(Number(g(l)>>g(8*(5-d))));l=0,s=0}break}i===n[0]&&f<e.TEXT_COMPACTION_MODE_LATCH&&(c[s++]=f);for(var m=0;m<s;m++)a.write(c[m]);break;case e.BYTE_COMPACTION_MODE_LATCH_6:while(i<n[0]&&!u){var v=n[i++];if(v<e.TEXT_COMPACTION_MODE_LATCH)s++,l=900*l+v;else switch(v){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:i--,u=!0;break}if(s%5===0&&s>0){for(d=0;d<6;++d)a.write(Number(g(l)>>g(8*(5-d))));l=0,s=0}}break}return o.append(p["a"].decode(a.toByteArray(),r)),i},e.numericCompaction=function(t,n,r){var i=0,o=!1,a=new Int32Array(e.MAX_NUMERIC_CODEWORDS);while(n<t[0]&&!o){var s=t[n++];if(n===t[0]&&(o=!0),s<e.TEXT_COMPACTION_MODE_LATCH)a[i]=s,i++;else switch(s){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:n--,o=!0;break}(i%e.MAX_NUMERIC_CODEWORDS===0||s===e.NUMERIC_COMPACTION_MODE_LATCH||o)&&i>0&&(r.append(e.decodeBase900toBase10(a,i)),i=0)}return n},e.decodeBase900toBase10=function(t,n){for(var r=g(0),i=0;i<n;i++)r+=e.EXP900[n-i-1]*g(t[i]);var a=r.toString();if("1"!==a.charAt(0))throw new o["a"];return a.substring(1)},e.TEXT_COMPACTION_MODE_LATCH=900,e.BYTE_COMPACTION_MODE_LATCH=901,e.NUMERIC_COMPACTION_MODE_LATCH=902,e.BYTE_COMPACTION_MODE_LATCH_6=924,e.ECI_USER_DEFINED=925,e.ECI_GENERAL_PURPOSE=926,e.ECI_CHARSET=927,e.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,e.MACRO_PDF417_TERMINATOR=922,e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,e.MAX_NUMERIC_CODEWORDS=15,e.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,e.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,e.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,e.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,e.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,e.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,e.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,e.PL=25,e.LL=27,e.AS=27,e.ML=28,e.AL=28,e.PS=29,e.PAL=29,e.PUNCT_CHARS=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",e.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",e.EXP900=m()?v():[],e.NUMBER_OF_SEQUENCE_CODEWORDS=2,e}();t["a"]=b}).call(this,n("c8ba"))},"4c95":function(e,t,n){"use strict";var r=n("e53d"),i=n("584a"),o=n("d9f6"),a=n("8e60"),s=n("5168")("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},"4dc9":function(e,t,n){n("5737"),e.exports=n("584a").Number.isNaN},"4ea8":function(e,t,n){n("cdd9")},"4ee1":function(e,t,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},"4f55":function(e,t,n){"use strict";var r=n("ca08"),i=function(){function e(){}return e.checkAndNudgePoints=function(e,t){for(var n=e.getWidth(),i=e.getHeight(),o=!0,a=0;a<t.length&&o;a+=2){var s=Math.floor(t[a]),l=Math.floor(t[a+1]);if(s<-1||s>n||l<-1||l>i)throw new r["a"];o=!1,-1===s?(t[a]=0,o=!0):s===n&&(t[a]=n-1,o=!0),-1===l?(t[a+1]=0,o=!0):l===i&&(t[a+1]=i-1,o=!0)}o=!0;for(a=t.length-2;a>=0&&o;a-=2){s=Math.floor(t[a]),l=Math.floor(t[a+1]);if(s<-1||s>n||l<-1||l>i)throw new r["a"];o=!1,-1===s?(t[a]=0,o=!0):s===n&&(t[a]=n-1,o=!0),-1===l?(t[a+1]=0,o=!0):l===i&&(t[a+1]=i-1,o=!0)}},e}();t["a"]=i},"4f7f":function(e,t,n){"use strict";var r=n("c26b"),i=n("b39a"),o="Set";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},"4fcb":function(e,t,n){var r=n("63b6"),i=n("10ff");r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},5035:function(e,t,n){"use strict";var r=n("6099"),i=n("67f0"),o=n("a652"),a=n("f823"),s=n("7978"),l=n("6530"),u=n("78c7"),c=n("7288"),f=function(){function e(){}return e.decode=function(t,n,a,u){var f=new r["a"](t),d=new l["a"],h=new Array,p=-1,m=-1;try{var g=null,v=!1,b=void 0;do{if(f.available()<4)b=c["a"].TERMINATOR;else{var y=f.readBits(4);b=c["a"].forBits(y)}switch(b){case c["a"].TERMINATOR:break;case c["a"].FNC1_FIRST_POSITION:case c["a"].FNC1_SECOND_POSITION:v=!0;break;case c["a"].STRUCTURED_APPEND:if(f.available()<16)throw new s["a"];p=f.readBits(8),m=f.readBits(8);break;case c["a"].ECI:var w=e.parseECIValue(f);if(g=i["a"].getCharacterSetECIByValue(w),null===g)throw new s["a"];break;case c["a"].HANZI:var _=f.readBits(4),C=f.readBits(b.getCharacterCountBits(n));_===e.GB2312_SUBSET&&e.decodeHanziSegment(f,d,C);break;default:var x=f.readBits(b.getCharacterCountBits(n));switch(b){case c["a"].NUMERIC:e.decodeNumericSegment(f,d,x);break;case c["a"].ALPHANUMERIC:e.decodeAlphanumericSegment(f,d,x,v);break;case c["a"].BYTE:e.decodeByteSegment(f,d,x,g,h,u);break;case c["a"].KANJI:e.decodeKanjiSegment(f,d,x);break;default:throw new s["a"]}break}}while(b!==c["a"].TERMINATOR)}catch(S){throw new s["a"]}return new o["a"](t,d.toString(),0===h.length?null:h,null===a?null:a.toString(),p,m)},e.decodeHanziSegment=function(e,t,n){if(13*n>e.available())throw new s["a"];var r=new Uint8Array(2*n),i=0;while(n>0){var o=e.readBits(13),l=o/96<<8&4294967295|o%96;l+=l<959?41377:42657,r[i]=l>>8&255,r[i+1]=255&l,i+=2,n--}try{t.append(u["a"].decode(r,a["a"].GB2312))}catch(c){throw new s["a"](c)}},e.decodeKanjiSegment=function(e,t,n){if(13*n>e.available())throw new s["a"];var r=new Uint8Array(2*n),i=0;while(n>0){var o=e.readBits(13),l=o/192<<8&4294967295|o%192;l+=l<7936?33088:49472,r[i]=l>>8,r[i+1]=l,i+=2,n--}try{t.append(u["a"].decode(r,a["a"].SHIFT_JIS))}catch(c){throw new s["a"](c)}},e.decodeByteSegment=function(e,t,n,r,i,o){if(8*n>e.available())throw new s["a"];for(var l,c=new Uint8Array(n),f=0;f<n;f++)c[f]=e.readBits(8);l=null===r?a["a"].guessEncoding(c,o):r.getName();try{t.append(u["a"].decode(c,l))}catch(d){throw new s["a"](d)}i.push(c)},e.toAlphaNumericChar=function(t){if(t>=e.ALPHANUMERIC_CHARS.length)throw new s["a"];return e.ALPHANUMERIC_CHARS[t]},e.decodeAlphanumericSegment=function(t,n,r,i){var o=n.length();while(r>1){if(t.available()<11)throw new s["a"];var a=t.readBits(11);n.append(e.toAlphaNumericChar(Math.floor(a/45))),n.append(e.toAlphaNumericChar(a%45)),r-=2}if(1===r){if(t.available()<6)throw new s["a"];n.append(e.toAlphaNumericChar(t.readBits(6)))}if(i)for(var l=o;l<n.length();l++)"%"===n.charAt(l)&&(l<n.length()-1&&"%"===n.charAt(l+1)?n.deleteCharAt(l+1):n.setCharAt(l,String.fromCharCode(29)))},e.decodeNumericSegment=function(t,n,r){while(r>=3){if(t.available()<10)throw new s["a"];var i=t.readBits(10);if(i>=1e3)throw new s["a"];n.append(e.toAlphaNumericChar(Math.floor(i/100))),n.append(e.toAlphaNumericChar(Math.floor(i/10)%10)),n.append(e.toAlphaNumericChar(i%10)),r-=3}if(2===r){if(t.available()<7)throw new s["a"];var o=t.readBits(7);if(o>=100)throw new s["a"];n.append(e.toAlphaNumericChar(Math.floor(o/10))),n.append(e.toAlphaNumericChar(o%10))}else if(1===r){if(t.available()<4)throw new s["a"];var a=t.readBits(4);if(a>=10)throw new s["a"];n.append(e.toAlphaNumericChar(a))}},e.parseECIValue=function(e){var t=e.readBits(8);if(0===(128&t))return 127&t;if(128===(192&t)){var n=e.readBits(8);return(63&t)<<8&4294967295|n}if(192===(224&t)){var r=e.readBits(16);return(31&t)<<16&4294967295|r}throw new s["a"]},e.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.GB2312_SUBSET=1,e}();t["a"]=f},5082:function(e,t){var n=Object.prototype.hasOwnProperty,r={},i={};function o(){var e=0;for(var t in r)e++;return e}var a=e.exports={length:o(),getItem:function(e){return n.call(r,e)?r[e]:null},setItem:function(e,t){e in i||(r[e]=t),a.length=o()},removeItem:function(e){delete r[e],a.length=o()},clear:function(){r={},a.length=0},supported:!0}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5134:function(e,t,n){"use strict";var r,i=n("f8c0"),o=n("f0a7");(function(e){e[e["L"]=0]="L",e[e["M"]=1]="M",e[e["Q"]=2]="Q",e[e["H"]=3]="H"})(r||(r={}));var a=function(){function e(t,n,r){this.value=t,this.stringValue=n,this.bits=r,e.FOR_BITS.set(r,this),e.FOR_VALUE.set(t,this)}return e.prototype.getValue=function(){return this.value},e.prototype.getBits=function(){return this.bits},e.fromString=function(t){switch(t){case"L":return e.L;case"M":return e.M;case"Q":return e.Q;case"H":return e.H;default:throw new i["a"](t+"not available")}},e.prototype.toString=function(){return this.stringValue},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.value===n.value},e.forBits=function(t){if(t<0||t>=e.FOR_BITS.size)throw new o["a"];return e.FOR_BITS.get(t)},e.FOR_BITS=new Map,e.FOR_VALUE=new Map,e.L=new e(r.L,"L",1),e.M=new e(r.M,"M",0),e.Q=new e(r.Q,"Q",3),e.H=new e(r.H,"H",2),e}();t["a"]=a},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),u=void 0!==/()??/.exec("")[1],c=l||u;c&&(a=function(e){var t,n,a,c,f=this;return u&&(n=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),l&&(t=f[s]),a=i.call(f,e),l&&a&&(f[s]=f.global?a.index+a[0].length:t),u&&a&&a.length>1&&o.call(a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a}),e.exports=a},"522e":function(e,t,n){var r=n("f772"),i=n("ebfd").onFreeze;n("ce7e")("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"52fc":function(e,t,n){},"53ca":function(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,"a",(function(){return r}))},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"547e":function(e,t,n){"use strict";var r=n("a7f2"),i=n("f6ed"),o=n("ea29"),a=n("f0a7"),s=n("8635"),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(e){function t(t,n,i){var o=e.call(this)||this;o.primitive=t,o.size=n,o.generatorBase=i;for(var a=new Int32Array(n),s=1,l=0;l<n;l++)a[l]=s,s*=2,s>=n&&(s^=t,s&=n-1);o.expTable=a;var u=new Int32Array(n);for(l=0;l<n-1;l++)u[a[l]]=l;return o.logTable=u,o.zero=new r["a"](o,Int32Array.from([0])),o.one=new r["a"](o,Int32Array.from([1])),o}return l(t,e),t.prototype.getZero=function(){return this.zero},t.prototype.getOne=function(){return this.one},t.prototype.buildMonomial=function(e,t){if(e<0)throw new a["a"];if(0===t)return this.zero;var n=new Int32Array(e+1);return n[0]=t,new r["a"](this,n)},t.prototype.inverse=function(e){if(0===e)throw new s["a"];return this.expTable[this.size-this.logTable[e]-1]},t.prototype.multiply=function(e,t){return 0===e||0===t?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.size-1)]},t.prototype.getSize=function(){return this.size},t.prototype.getGeneratorBase=function(){return this.generatorBase},t.prototype.toString=function(){return"GF(0x"+o["a"].toHexString(this.primitive)+","+this.size+")"},t.prototype.equals=function(e){return e===this},t.AZTEC_DATA_12=new t(4201,4096,1),t.AZTEC_DATA_10=new t(1033,1024,1),t.AZTEC_DATA_6=new t(67,64,1),t.AZTEC_PARAM=new t(19,16,1),t.QR_CODE_FIELD_256=new t(285,256,0),t.DATA_MATRIX_FIELD_256=new t(301,256,1),t.AZTEC_DATA_8=t.DATA_MATRIX_FIELD_256,t.MAXICODE_FIELD_64=t.AZTEC_DATA_6,t}(i["a"]);t["a"]=u},"551c":function(e,t,n){"use strict";var r,i,o,a,s=n("2d00"),l=n("7726"),u=n("9b43"),c=n("23c6"),f=n("5ca1"),d=n("d3f4"),h=n("d8e8"),p=n("f605"),m=n("4a59"),g=n("ebd6"),v=n("1991").set,b=n("8079")(),y=n("a5b8"),w=n("9c80"),_=n("a25f"),C=n("bcaa"),x="Promise",S=l.TypeError,k=l.process,D=k&&k.versions,O=D&&D.v8||"",T=l[x],E="process"==c(k),I=function(){},N=i=y.f,A=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[n("2b4c")("species")]=function(e){e(I,I)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(I)instanceof t&&0!==O.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(r){}}(),P=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var n=e._c;b((function(){var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(i||(2==e._h&&B(e),e._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),a=!0)),n===t.promise?u(S("Promise-chain cycle")):(o=P(n))?o.call(n,l,u):l(n)):u(r)}catch(f){c&&!a&&c.exit(),u(f)}};while(n.length>o)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&R(e)}))}},R=function(e){v.call(l,(function(){var t,n,r,i=e._v,o=F(e);if(o&&(t=w((function(){E?k.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=E||F(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},F=function(e){return 1!==e._h&&0===(e._a||e._c).length},B=function(e){v.call(l,(function(){var t;E?k.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},L=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},$=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=P(e))?b((function(){var r={_w:n,_d:!1};try{t.call(e,u($,r,1),u(L,r,1))}catch(i){L.call(r,i)}})):(n._v=e,n._s=1,M(n,!1))}catch(r){L.call({_w:n,_d:!1},r)}}};A||(T=function(e){p(this,T,x,"_h"),h(e),r.call(this);try{e(u($,this,1),u(L,this,1))}catch(t){L.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(T.prototype,{then:function(e,t){var n=N(g(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=E?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u($,e,1),this.reject=u(L,e,1)},y.f=N=function(e){return e===T||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!A,{Promise:T}),n("7f20")(T,x),n("7a56")(x),a=n("8378")[x],f(f.S+f.F*!A,x,{reject:function(e){var t=N(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(s||!A),x,{resolve:function(e){return C(s&&this===a?T:this,e)}}),f(f.S+f.F*!(A&&n("5cc5")((function(e){T.all(e)["catch"](I)}))),x,{all:function(e){var t=this,n=N(t),r=n.resolve,i=n.reject,o=w((function(){var n=[],o=0,a=1;m(e,!1,(function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=N(t),r=n.reject,i=w((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"55dd":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),a=n("79e5"),s=[].sort,l=[1,2,3];r(r.P+r.F*(a((function(){l.sort(void 0)}))||!a((function(){l.sort(null)}))||!n("2f21")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},5622:function(e,t,n){"use strict";var r=function(){function e(e){this.source=e}return e.prototype.getLuminanceSource=function(){return this.source},e.prototype.getWidth=function(){return this.source.getWidth()},e.prototype.getHeight=function(){return this.source.getHeight()},e}();t["a"]=r},5641:function(e,t,n){"use strict";var r=n("bd7a"),i=n("2011"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(e){function t(t){var n=e.call(this,t)||this;return n.matrix=null,n}return o(t,e),t.prototype.getBlackMatrix=function(){if(null!==this.matrix)return this.matrix;var n=this.getLuminanceSource(),r=n.getWidth(),o=n.getHeight();if(r>=t.MINIMUM_DIMENSION&&o>=t.MINIMUM_DIMENSION){var a=n.getMatrix(),s=r>>t.BLOCK_SIZE_POWER;0!==(r&t.BLOCK_SIZE_MASK)&&s++;var l=o>>t.BLOCK_SIZE_POWER;0!==(o&t.BLOCK_SIZE_MASK)&&l++;var u=t.calculateBlackPoints(a,s,l,r,o),c=new i["a"](r,o);t.calculateThresholdForBlock(a,s,l,r,o,u,c),this.matrix=c}else this.matrix=e.prototype.getBlackMatrix.call(this);return this.matrix},t.prototype.createBinarizer=function(e){return new t(e)},t.calculateThresholdForBlock=function(e,n,r,i,o,a,s){for(var l=o-t.BLOCK_SIZE,u=i-t.BLOCK_SIZE,c=0;c<r;c++){var f=c<<t.BLOCK_SIZE_POWER;f>l&&(f=l);for(var d=t.cap(c,2,r-3),h=0;h<n;h++){var p=h<<t.BLOCK_SIZE_POWER;p>u&&(p=u);for(var m=t.cap(h,2,n-3),g=0,v=-2;v<=2;v++){var b=a[d+v];g+=b[m-2]+b[m-1]+b[m]+b[m+1]+b[m+2]}var y=g/25;t.thresholdBlock(e,p,f,y,i,s)}}},t.cap=function(e,t,n){return e<t?t:e>n?n:e},t.thresholdBlock=function(e,n,r,i,o,a){for(var s=0,l=r*o+n;s<t.BLOCK_SIZE;s++,l+=o)for(var u=0;u<t.BLOCK_SIZE;u++)(255&e[l+u])<=i&&a.set(n+u,r+s)},t.calculateBlackPoints=function(e,n,r,i,o){for(var a=o-t.BLOCK_SIZE,s=i-t.BLOCK_SIZE,l=new Array(r),u=0;u<r;u++){l[u]=new Int32Array(n);var c=u<<t.BLOCK_SIZE_POWER;c>a&&(c=a);for(var f=0;f<n;f++){var d=f<<t.BLOCK_SIZE_POWER;d>s&&(d=s);for(var h=0,p=255,m=0,g=0,v=c*i+d;g<t.BLOCK_SIZE;g++,v+=i){for(var b=0;b<t.BLOCK_SIZE;b++){var y=255&e[v+b];h+=y,y<p&&(p=y),y>m&&(m=y)}if(m-p>t.MIN_DYNAMIC_RANGE)for(g++,v+=i;g<t.BLOCK_SIZE;g++,v+=i)for(b=0;b<t.BLOCK_SIZE;b++)h+=255&e[v+b]}var w=h>>2*t.BLOCK_SIZE_POWER;if(m-p<=t.MIN_DYNAMIC_RANGE&&(w=p/2,u>0&&f>0)){var _=(l[u-1][f]+2*l[u][f-1]+l[u-1][f-1])/4;p<_&&(w=_)}l[u][f]=w}}return l},t.BLOCK_SIZE_POWER=3,t.BLOCK_SIZE=1<<t.BLOCK_SIZE_POWER,t.BLOCK_SIZE_MASK=t.BLOCK_SIZE-1,t.MINIMUM_DIMENSION=5*t.BLOCK_SIZE,t.MIN_DYNAMIC_RANGE=24,t}(r["a"]);t["a"]=a},5737:function(e,t,n){var r=n("63b6");r(r.S,"Number",{isNaN:function(e){return e!=e}})},"57ba":function(e,t,n){"use strict";t.__esModule=!0;var r=n("4849"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},"57fd":function(e,t,n){"use strict";var r=n("f0a7"),i=function(){function e(e){if(this.binarizer=e,null===e)throw new r["a"]("Binarizer must be non-null.")}return e.prototype.getWidth=function(){return this.binarizer.getWidth()},e.prototype.getHeight=function(){return this.binarizer.getHeight()},e.prototype.getBlackRow=function(e,t){return this.binarizer.getBlackRow(e,t)},e.prototype.getBlackMatrix=function(){return null!==this.matrix&&void 0!==this.matrix||(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},e.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},e.prototype.crop=function(t,n,r,i){var o=this.binarizer.getLuminanceSource().crop(t,n,r,i);return new e(this.binarizer.createBinarizer(o))},e.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},e.prototype.rotateCounterClockwise=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new e(this.binarizer.createBinarizer(t))},e.prototype.rotateCounterClockwise45=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new e(this.binarizer.createBinarizer(t))},e.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch(e){return""}},e}();t["a"]=i},"584a":function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"597f":function(e,t){e.exports=function(e,t,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}function c(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>e?u():!0!==t&&(i=setTimeout(r?c:u,void 0===r?e-s:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},"5b35":function(e,t,n){"use strict";n("9d99")},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},"5c4f":function(e,t,n){"use strict";t.__esModule=!0;var r=n("1098"),i=s(r),o=n("d192"),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}var l=l||{},u=void 0;l.Dialog=function(e,t,n){var r=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"===typeof t?this.focusAfterClosed=document.getElementById(t):"object"===("undefined"===typeof t?"undefined":(0,i.default)(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"===typeof n?this.focusFirst=document.getElementById(n):"object"===("undefined"===typeof n?"undefined":(0,i.default)(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():a.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,u=function(e){r.trapFocus(e)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener("focus",u,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",u,!0)},l.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},l.Dialog.prototype.trapFocus=function(e){a.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(a.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&a.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=l.Dialog},"5c95":function(e,t,n){var r=n("35e8");e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",u=function(e,t,n){var c,f,d,h,p=e&u.F,m=e&u.G,g=e&u.S,v=e&u.P,b=e&u.B,y=m?r:g?r[t]||(r[t]={}):(r[t]||{})[l],w=m?i:i[t]||(i[t]={}),_=w[l]||(w[l]={});for(c in m&&(n=t),n)f=!p&&y&&void 0!==y[c],d=(f?y:n)[c],h=b&&f?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,y&&a(y,c,d,e&u.U),w[c]!=d&&o(w,c,h),v&&_[c]!=d&&(_[c]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5cc5":function(e,t,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5df3":function(e,t,n){"use strict";var r=n("02f4")(!0);n("01f9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"5ea8":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(e[i]=o)}}return e}},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"5f87":function(e,t,n){"use strict";n("7f7f");var r=n("a78e"),i=n.n(r),o=n("8bbf"),a=n.n(o),s="JWT",l="USERNAME",u="CURRENT_USER",c="VERSION_ENVIRONMENT",f="CURRENT_USER_SYSTEM_VERSION",d="CURRENT_LANGUAGE",h="AMB_LANG_INFO",p="CURRENT_SYSTEM_URL_";function m(){var e=S(s),t=a.a.prototype.projectModel;return!e&&t&&"developing.model"===t&&(e=O(s)),e}function g(e){k(s,e),T(s,e)}function v(){D(s),E(s)}function b(){var e=S(l);return e||(e=O(l)),e}function y(e){T(l,e),k(l,e)}function w(){E(l),D(l)}function _(){var e=B(u);if(e||(e=S(u)),e||(e=O(u)),e)return JSON.parse(e)}function C(e){if(e){e.password&&(e.password=null);var t={id:e.id,name:e.name,loginName:e.loginName,enName:e.enName,mainDepartmentCode:e.mainDepartmentCode},n=JSON.stringify(t);L(u,n)}}function x(){$(u),E(u),D(u)}function S(e){return i.a.get(e)}function k(e,t){i.a.set(e,t,{path:"/"})}function D(e){i.a.remove(e,{path:"/"})}function O(e){return sessionStorage.getItem(e)}function T(e,t){return sessionStorage.setItem(e,t)}function E(e){sessionStorage.removeItem(e)}function I(){D(c),D(f)}function N(){var e=S(d),t=a.a.prototype.projectModel;return!e&&t&&"developing.model"===t&&(e=O(d)),e}function A(e){k(d,e),T(d,e)}function P(){D(d),E(d)}function M(){var e=S(h),t=a.a.prototype.projectModel;return!e&&t&&"developing.model"===t&&(e=O(h)),e}function R(e){k(h,e),T(h,e)}function F(){D(h),E(h)}function B(e){return localStorage.getItem(e)}function L(e,t){return localStorage.setItem(e,t)}function $(e){localStorage.removeItem(e)}function V(e){if(e||(e=a.a.prototype.customSystem),e||(e=a.a.prototype.systemCode),e){var t=j();if(t)return t[e]}}function j(){var e=B(p);if(e)return JSON.parse(e)}function z(e){if(e){var t=JSON.stringify(e);L(p,t)}}function H(){$(p)}var U={getToken:m,setToken:g,removeToken:v,getUsername:b,setUsername:y,removeUsername:w,getCurrentUser:_,setCurrentUser:C,removeCurrentUser:x,getCookieCache:S,setCookieCache:k,removeCookieCache:D,getSessionCache:O,setSessionCache:T,removeSessionCache:E,removePublishControl:I,getLanguage:N,setLanguage:A,removeLanguage:P,getAllLanguages:M,setAllLanguages:R,removeAllLanguages:F,getLocalStorageCache:B,setLocalStorageCache:L,removeLocalStorageCache:$,getSystemCacheUrlByCode:V,getSystemCacheUrl:j,setSystemCacheUrl:z,removeSystemCacheUrl:H};n("6a95");function W(){return U.getToken()}function q(){return U.getLanguage()}function G(){return U.getAllLanguages()}function Y(e){U.setAllLanguages(e)}n.d(t,"c",(function(){return W})),n.d(t,"b",(function(){return q})),n.d(t,"a",(function(){return G})),n.d(t,"d",(function(){return Y}))},6045:function(e,t,n){"use strict";t.__esModule=!0;var r=n("8827"),i=a(r),o=n("f321");function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(){(0,i.default)(this,e)}return e.prototype.beforeEnter=function(e){(0,o.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},e.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},e.prototype.afterEnter=function(e){(0,o.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},e.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},e.prototype.leave=function(e){0!==e.scrollHeight&&((0,o.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},e.prototype.afterLeave=function(e){(0,o.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},e}();t.default={name:"ElCollapseTransition",functional:!0,render:function(e,t){var n=t.children,r={on:new s};return e("transition",r,n)}}},6099:function(e,t,n){"use strict";var r=n("f0a7"),i=function(){function e(e){this.bytes=e,this.byteOffset=0,this.bitOffset=0}return e.prototype.getBitOffset=function(){return this.bitOffset},e.prototype.getByteOffset=function(){return this.byteOffset},e.prototype.readBits=function(e){if(e<1||e>32||e>this.available())throw new r["a"](""+e);var t=0,n=this.bitOffset,i=this.byteOffset,o=this.bytes;if(n>0){var a=8-n,s=e<a?e:a,l=a-s,u=255>>8-s<<l;t=(o[i]&u)>>l,e-=s,n+=s,8===n&&(n=0,i++)}if(e>0){while(e>=8)t=t<<8|255&o[i],i++,e-=8;if(e>0){l=8-e,u=255>>l<<l;t=t<<e|(o[i]&u)>>l,n+=e}}return this.bitOffset=n,this.byteOffset=i,t},e.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},e}();t["a"]=i},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},6246:function(e,t,n){"use strict";var r=n("f505"),i=n("f60b"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){return void 0===t&&(t=500),e.call(this,new i["a"],t)||this}o(t,e)})(r["a"])},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"62e5":function(e,t,n){n("2519")},"633f":function(e,t,n){e.exports={default:n("fa99"),__esModule:!0}},"63af":function(e,t,n){"use strict";var r=function(){function e(){}return e.arraycopy=function(e,t,n,r,i){while(i--)n[r++]=e[t++]},e.currentTimeMillis=function(){return Date.now()},e}();t["a"]=r},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),l="prototype",u=function(e,t,n){var c,f,d,h=e&u.F,p=e&u.G,m=e&u.S,g=e&u.P,v=e&u.B,b=e&u.W,y=p?i:i[t]||(i[t]={}),w=y[l],_=p?r:m?r[t]:(r[t]||{})[l];for(c in p&&(n=t),n)f=!h&&_&&void 0!==_[c],f&&s(y,c)||(d=f?_[c]:n[c],y[c]=p&&"function"!=typeof _[c]?n[c]:v&&f?o(d,r):b&&_[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((y.virtual||(y.virtual={}))[c]=d,e&u.R&&w&&!w[c]&&a(w,c,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"64a7":function(e,t,n){"use strict";var r;(function(e){e[e["OTHER"]=0]="OTHER",e[e["ORIENTATION"]=1]="ORIENTATION",e[e["BYTE_SEGMENTS"]=2]="BYTE_SEGMENTS",e[e["ERROR_CORRECTION_LEVEL"]=3]="ERROR_CORRECTION_LEVEL",e[e["ISSUE_NUMBER"]=4]="ISSUE_NUMBER",e[e["SUGGESTED_PRICE"]=5]="SUGGESTED_PRICE",e[e["POSSIBLE_COUNTRY"]=6]="POSSIBLE_COUNTRY",e[e["UPC_EAN_EXTENSION"]=7]="UPC_EAN_EXTENSION",e[e["PDF417_EXTRA_METADATA"]=8]="PDF417_EXTRA_METADATA",e[e["STRUCTURED_APPEND_SEQUENCE"]=9]="STRUCTURED_APPEND_SEQUENCE",e[e["STRUCTURED_APPEND_PARITY"]=10]="STRUCTURED_APPEND_PARITY"})(r||(r={})),t["a"]=r},6530:function(e,t,n){"use strict";var r=n("f823"),i=function(){function e(e){void 0===e&&(e=""),this.value=e}return e.prototype.enableDecoding=function(e){return this.encoding=e,this},e.prototype.append=function(e){return"string"===typeof e?this.value+=e.toString():this.encoding?this.value+=r["a"].castAsNonUtf8Char(e,this.encoding):this.value+=String.fromCharCode(e),this},e.prototype.appendChars=function(e,t,n){for(var r=t;t<t+n;r++)this.append(e[r]);return this},e.prototype.length=function(){return this.value.length},e.prototype.charAt=function(e){return this.value.charAt(e)},e.prototype.deleteCharAt=function(e){this.value=this.value.substr(0,e)+this.value.substring(e+1)},e.prototype.setCharAt=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+1)},e.prototype.substring=function(e,t){return this.value.substring(e,t)},e.prototype.setLengthToZero=function(){this.value=""},e.prototype.toString=function(){return this.value},e.prototype.insert=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+t.length)},e}();t["a"]=i},6537:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=78)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("813e")},12:function(e,t){e.exports=n("ef01")},14:function(e,t){e.exports=n("2ffe")},15:function(e,t){e.exports=n("1098")},19:function(e,t){e.exports=n("229c")},20:function(e,t){e.exports=n("0e15")},26:function(e,t){e.exports=n("6864")},28:function(e,t){e.exports=n("81e0")},3:function(e,t){e.exports=n("bf32")},37:function(e,t){e.exports=n("e5da")},4:function(e,t){e.exports=n("bbe4")},40:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e.select.multiple&&!e.supportCook?n("el-checkbox",{staticStyle:{"pointer-events":"none"},attrs:{size:e.size,disabled:e.disabled||e.groupDisabled||e.limitReached,value:e.itemSelected}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2):[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])]),e.select.multiple&&e.supportCook?n("el-checkbox",{staticStyle:{"pointer-events":"none"},attrs:{size:e.size,disabled:e.disabled||e.groupDisabled||e.limitReached,value:e.itemSelected}}):e._e()]],2)};r._withStripped=!0;var i=n(15),o=n.n(i),a=n(4),s=n.n(a),l=n(3),u={mixins:[s.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},size:String,label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:!0}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{supportCook:function(){return this.$ELEMENT.supportCook||!1},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},limitReached:function(){return!!this.select.multiple&&!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===e?"undefined":o()(e))&&"object"===(void 0===t?"undefined":o()(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(l.getValueByPath)(e,n)===Object(l.getValueByPath)(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(l.getValueByPath)(e,n)===Object(l.getValueByPath)(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(l.escapeRegexpString)(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple?t:[t],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=n(1),f=Object(c.a)(u,r,[],!1,null,null,null);f.options.__file="packages/select/src/option.vue",t.a=f.exports},44:function(e,t){e.exports=n("a911")},5:function(e,t){e.exports=n("87ec")},6:function(e,t){e.exports=n("1e6c")},78:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:"",e.multiple&&e.isNowrap?"one__line":"",{"is-focus":e.visible}],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"80%"}},[e.collapseTags&&e.selected.length?n("span",[e._l(e.collapseSelects,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectMultipleClose(t),size:e.selectSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),e.collapseTags&&e.selected.length>e.maxTagCount?n("el-tag",{key:"max"-e.maxTagCount,attrs:{closable:!1,size:e.selectSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-e.maxTagCount))])]):e._e()],2):n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectMultipleClose(t),size:e.selectSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px","margin-left":"7px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass],on:{click:e.handleArrowClick}}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{size:e.selectSize,"append-to-body":e.popperAppendToBody,"is-adaptive-width":e.adaptiveWidth}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,size:e.selectSize,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(28),s=n.n(a),l=n(5),u=n.n(l),c=n(12),f=n.n(c),d=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass,this.size?"el-select-dropdown--"+this.size:""],style:{minWidth:this.minWidth,width:this.width}},[this._t("default")],2)};d._withStripped=!0;var h=n(6),p={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[n.n(h).a],props:{placement:{default:"bottom-start"},size:{type:String,default:""},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0},isAdaptiveWidth:{type:Boolean,default:!1}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass},width:function(){return this.$parent.inputWidth&&this.isAdaptiveWidth?this.$parent.$el.getBoundingClientRect().width+"px":""}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},m=n(1),g=Object(m.a)(p,d,[],!1,null,null,null);g.options.__file="packages/select/src/select-dropdown.vue";var v=g.exports,b=n(40),y=n(44),w=n.n(y),_=n(14),C=n.n(_),x=n(20),S=n.n(x),k=n(10),D=n.n(k),O=n(19),T=n(37),E=n.n(T),I=n(3),N=n(26),A={mixins:[o.a,u.a,s()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"==typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}}],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(I.isIE)()&&!Object(I.isEdge)()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&e},iconClass:function(){return this.remote&&this.filterable?this.iconSearch?"search":"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")},collapseSelects:function(){var e=this;return this.selected.filter((function(t,n){return e.maxTagCount>n}))}},components:{ElInput:f.a,ElSelectMenu:v,ElOption:b.a,ElTag:w.a,ElScrollbar:C.a},directives:{Clickoutside:D.a},props:{iconSearch:Boolean,name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(){return!0}},automaticDropdown:Boolean,size:String,isNowrap:{type:Boolean,default:!1},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,blurSelectedFirstOption:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,maxTagCount:{type:Number,default:1},closable:{type:Boolean,default:!0},popperAppendToBody:{type:Boolean,default:!0},adaptiveWidth:{type:Boolean,default:!1}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(I.valueEquals)(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{selectMultipleClose:function(e){return this.selectDisabled||!e.closable},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(){return t.handleQueryChange(n)}));else{var r=n[n.length-1]||"";this.isOnComposition=!Object(N.isKorean)(r)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"==typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");E()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(I.valueEquals)(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),r="[object null]"===Object.prototype.toString.call(e).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(I.getValueByPath)(a.value,this.valueKey)===Object(I.getValueByPath)(e,this.valueKey):a.value===e){t=a;break}}if(t)return t;var s={value:e,currentLabel:n||r||i?"":String(e)};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},handleArrowClick:function(e){!this.selectDisabled&&this.filterable&&(e.stopPropagation(),this.visible=!this.visible)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible&&(this.blurSelectedFirstOption&&this.multiple&&-1===this.value.indexOf(this.query)&&""!==this.query&&this.value.push(this.query),this.blurSelectedFirstOption&&!this.multiple&&this.selectedLabel===this.query&&""!==this.selectedLabel&&(this.$emit("input",this.selectedLabel),this.emitChange(this.selectedLabel))),this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],r=e.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(r?i+(i>o?6:0):0,o)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var r=this.valueKey,i=-1;return e.some((function(e,n){return Object(I.getValueByPath)(e,r)===Object(I.getValueByPath)(t,r)&&(i=n,!0)})),i}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(I.getValueByPath)(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=S()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=S()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(O.addResizeListener)(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n=t.$el.querySelector("input");this.initialInputHeight=n.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(O.removeResizeListener)(this.$el,this.handleResize)}},P=Object(m.a)(A,r,[],!1,null,null,null);P.options.__file="packages/select/src/select.vue";var M=P.exports;M.install=function(e){e.component(M.name,M)},t.default=M}})},"656e":function(e,t,n){"use strict";var r=n("79aa");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},"66c8":function(e,t,n){},6718:function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),a=n("ccb9"),s=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ab":function(e,t,n){var r=n("ca5a")("meta"),i=n("d3f4"),o=n("69a8"),a=n("86cc").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("79e5")((function(){return l(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return u&&p.NEED&&l(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},"67d3":function(e,t,n){},"67f0":function(e,t,n){"use strict";var r,i=n("7978"),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(e){e[e["Cp437"]=0]="Cp437",e[e["ISO8859_1"]=1]="ISO8859_1",e[e["ISO8859_2"]=2]="ISO8859_2",e[e["ISO8859_3"]=3]="ISO8859_3",e[e["ISO8859_4"]=4]="ISO8859_4",e[e["ISO8859_5"]=5]="ISO8859_5",e[e["ISO8859_6"]=6]="ISO8859_6",e[e["ISO8859_7"]=7]="ISO8859_7",e[e["ISO8859_8"]=8]="ISO8859_8",e[e["ISO8859_9"]=9]="ISO8859_9",e[e["ISO8859_10"]=10]="ISO8859_10",e[e["ISO8859_11"]=11]="ISO8859_11",e[e["ISO8859_13"]=12]="ISO8859_13",e[e["ISO8859_14"]=13]="ISO8859_14",e[e["ISO8859_15"]=14]="ISO8859_15",e[e["ISO8859_16"]=15]="ISO8859_16",e[e["SJIS"]=16]="SJIS",e[e["Cp1250"]=17]="Cp1250",e[e["Cp1251"]=18]="Cp1251",e[e["Cp1252"]=19]="Cp1252",e[e["Cp1256"]=20]="Cp1256",e[e["UnicodeBigUnmarked"]=21]="UnicodeBigUnmarked",e[e["UTF8"]=22]="UTF8",e[e["ASCII"]=23]="ASCII",e[e["Big5"]=24]="Big5",e[e["GB18030"]=25]="GB18030",e[e["EUC_KR"]=26]="EUC_KR"})(r||(r={}));var a=function(){function e(t,n,r){for(var i,a,s=[],l=3;l<arguments.length;l++)s[l-3]=arguments[l];this.valueIdentifier=t,this.name=r,this.values="number"===typeof n?Int32Array.from([n]):n,this.otherEncodingNames=s,e.VALUE_IDENTIFIER_TO_ECI.set(t,this),e.NAME_TO_ECI.set(r,this);for(var u=this.values,c=0,f=u.length;c!==f;c++){var d=u[c];e.VALUES_TO_ECI.set(d,this)}try{for(var h=o(s),p=h.next();!p.done;p=h.next()){var m=p.value;e.NAME_TO_ECI.set(m,this)}}catch(g){i={error:g}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}}return e.prototype.getValueIdentifier=function(){return this.valueIdentifier},e.prototype.getName=function(){return this.name},e.prototype.getValue=function(){return this.values[0]},e.getCharacterSetECIByValue=function(t){if(t<0||t>=900)throw new i["a"]("incorect value");var n=e.VALUES_TO_ECI.get(t);if(void 0===n)throw new i["a"]("incorect value");return n},e.getCharacterSetECIByName=function(t){var n=e.NAME_TO_ECI.get(t);if(void 0===n)throw new i["a"]("incorect value");return n},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.getName()===n.getName()},e.VALUE_IDENTIFIER_TO_ECI=new Map,e.VALUES_TO_ECI=new Map,e.NAME_TO_ECI=new Map,e.Cp437=new e(r.Cp437,Int32Array.from([0,2]),"Cp437"),e.ISO8859_1=new e(r.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),e.ISO8859_2=new e(r.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),e.ISO8859_3=new e(r.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),e.ISO8859_4=new e(r.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),e.ISO8859_5=new e(r.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),e.ISO8859_6=new e(r.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),e.ISO8859_7=new e(r.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),e.ISO8859_8=new e(r.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),e.ISO8859_9=new e(r.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),e.ISO8859_10=new e(r.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),e.ISO8859_11=new e(r.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),e.ISO8859_13=new e(r.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),e.ISO8859_14=new e(r.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),e.ISO8859_15=new e(r.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),e.ISO8859_16=new e(r.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),e.SJIS=new e(r.SJIS,20,"SJIS","Shift_JIS"),e.Cp1250=new e(r.Cp1250,21,"Cp1250","windows-1250"),e.Cp1251=new e(r.Cp1251,22,"Cp1251","windows-1251"),e.Cp1252=new e(r.Cp1252,23,"Cp1252","windows-1252"),e.Cp1256=new e(r.Cp1256,24,"Cp1256","windows-1256"),e.UnicodeBigUnmarked=new e(r.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),e.UTF8=new e(r.UTF8,26,"UTF8","UTF-8"),e.ASCII=new e(r.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),e.Big5=new e(r.Big5,28,"Big5"),e.GB18030=new e(r.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),e.EUC_KR=new e(r.EUC_KR,30,"EUC_KR","EUC-KR"),e}();t["a"]=a},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},6833:function(e,t,n){"use strict";var r=n("7163"),i=n("9068"),o=n("67f0"),a=n("547e"),s=n("1092"),l=n("7288"),u=n("2915"),c=n("d439"),f=n("32f9"),d=n("ae4b"),h=n("b5b4"),p=n("78c7"),m=function(){function e(e,t){this.dataBytes=e,this.errorCorrectionBytes=t}return e.prototype.getDataBytes=function(){return this.dataBytes},e.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},e}(),g=m,v=n("4986"),b=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},y=function(){function e(){}return e.calculateMaskPenalty=function(e){return c["a"].applyMaskPenaltyRule1(e)+c["a"].applyMaskPenaltyRule2(e)+c["a"].applyMaskPenaltyRule3(e)+c["a"].applyMaskPenaltyRule4(e)},e.encode=function(t,n,a){void 0===a&&(a=null);var s=e.DEFAULT_BYTE_MODE_ENCODING,c=null!==a&&void 0!==a.get(r["a"].CHARACTER_SET);c&&(s=a.get(r["a"].CHARACTER_SET).toString());var p=this.chooseMode(t,s),m=new i["a"];if(p===l["a"].BYTE&&(c||e.DEFAULT_BYTE_MODE_ENCODING!==s)){var g=o["a"].getCharacterSetECIByName(s);void 0!==g&&this.appendECI(g,m)}this.appendModeInfo(p,m);var b,y=new i["a"];if(this.appendBytes(t,p,y,s),null!==a&&void 0!==a.get(r["a"].QR_VERSION)){var w=Number.parseInt(a.get(r["a"].QR_VERSION).toString(),10);b=u["a"].getVersionForNumber(w);var _=this.calculateBitsNeeded(p,m,y,b);if(!this.willFit(_,b,n))throw new v["a"]("Data too big for requested version")}else b=this.recommendVersion(n,p,m,y);var C=new i["a"];C.appendBitArray(m);var x=p===l["a"].BYTE?y.getSizeInBytes():t.length;this.appendLengthInfo(x,b,p,C),C.appendBitArray(y);var S=b.getECBlocksForLevel(n),k=b.getTotalCodewords()-S.getTotalECCodewords();this.terminateBits(k,C);var D=this.interleaveWithECBytes(C,b.getTotalCodewords(),k,S.getNumBlocks()),O=new d["a"];O.setECLevel(n),O.setMode(p),O.setVersion(b);var T=b.getDimensionForVersion(),E=new f["a"](T,T),I=this.chooseMaskPattern(D,n,b,E);return O.setMaskPattern(I),h["a"].buildMatrix(D,n,b,I,E),O.setMatrix(E),O},e.recommendVersion=function(e,t,n,r){var i=this.calculateBitsNeeded(t,n,r,u["a"].getVersionForNumber(1)),o=this.chooseVersion(i,e),a=this.calculateBitsNeeded(t,n,r,o);return this.chooseVersion(a,e)},e.calculateBitsNeeded=function(e,t,n,r){return t.getSize()+e.getCharacterCountBits(r)+n.getSize()},e.getAlphanumericCode=function(t){return t<e.ALPHANUMERIC_TABLE.length?e.ALPHANUMERIC_TABLE[t]:-1},e.chooseMode=function(t,n){if(void 0===n&&(n=null),o["a"].SJIS.getName()===n&&this.isOnlyDoubleByteKanji(t))return l["a"].KANJI;for(var r=!1,i=!1,a=0,s=t.length;a<s;++a){var u=t.charAt(a);if(e.isDigit(u))r=!0;else{if(-1===this.getAlphanumericCode(u.charCodeAt(0)))return l["a"].BYTE;i=!0}}return i?l["a"].ALPHANUMERIC:r?l["a"].NUMERIC:l["a"].BYTE},e.isOnlyDoubleByteKanji=function(e){var t;try{t=p["a"].encode(e,o["a"].SJIS)}catch(a){return!1}var n=t.length;if(n%2!==0)return!1;for(var r=0;r<n;r+=2){var i=255&t[r];if((i<129||i>159)&&(i<224||i>235))return!1}return!0},e.chooseMaskPattern=function(e,t,n,r){for(var i=Number.MAX_SAFE_INTEGER,o=-1,a=0;a<d["a"].NUM_MASK_PATTERNS;a++){h["a"].buildMatrix(e,t,n,a,r);var s=this.calculateMaskPenalty(r);s<i&&(i=s,o=a)}return o},e.chooseVersion=function(t,n){for(var r=1;r<=40;r++){var i=u["a"].getVersionForNumber(r);if(e.willFit(t,i,n))return i}throw new v["a"]("Data too big")},e.willFit=function(e,t,n){var r=t.getTotalCodewords(),i=t.getECBlocksForLevel(n),o=i.getTotalECCodewords(),a=r-o,s=(e+7)/8;return a>=s},e.terminateBits=function(e,t){var n=8*e;if(t.getSize()>n)throw new v["a"]("data bits cannot fit in the QR Code"+t.getSize()+" > "+n);for(var r=0;r<4&&t.getSize()<n;++r)t.appendBit(!1);var i=7&t.getSize();if(i>0)for(r=i;r<8;r++)t.appendBit(!1);var o=e-t.getSizeInBytes();for(r=0;r<o;++r)t.appendBits(0===(1&r)?236:17,8);if(t.getSize()!==n)throw new v["a"]("Bits size does not equal capacity")},e.getNumDataBytesAndNumECBytesForBlockID=function(e,t,n,r,i,o){if(r>=n)throw new v["a"]("Block ID too large");var a=e%n,s=n-a,l=Math.floor(e/n),u=l+1,c=Math.floor(t/n),f=c+1,d=l-c,h=u-f;if(d!==h)throw new v["a"]("EC bytes mismatch");if(n!==s+a)throw new v["a"]("RS blocks mismatch");if(e!==(c+d)*s+(f+h)*a)throw new v["a"]("Total bytes mismatch");r<s?(i[0]=c,o[0]=d):(i[0]=f,o[0]=h)},e.interleaveWithECBytes=function(t,n,r,o){var a,s,l,u;if(t.getSizeInBytes()!==r)throw new v["a"]("Number of bits and data bytes does not match");for(var c=0,f=0,d=0,h=new Array,p=0;p<o;++p){var m=new Int32Array(1),y=new Int32Array(1);e.getNumDataBytesAndNumECBytesForBlockID(n,r,o,p,m,y);var w=m[0],_=new Uint8Array(w);t.toBytes(8*c,_,0,w);var C=e.generateECBytes(_,y[0]);h.push(new g(_,C)),f=Math.max(f,w),d=Math.max(d,C.length),c+=m[0]}if(r!==c)throw new v["a"]("Data bytes does not match offset");var x=new i["a"];for(p=0;p<f;++p)try{for(var S=(a=void 0,b(h)),k=S.next();!k.done;k=S.next()){var D=k.value;_=D.getDataBytes();p<_.length&&x.appendBits(_[p],8)}}catch(E){a={error:E}}finally{try{k&&!k.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}for(p=0;p<d;++p)try{for(var O=(l=void 0,b(h)),T=O.next();!T.done;T=O.next()){D=T.value,C=D.getErrorCorrectionBytes();p<C.length&&x.appendBits(C[p],8)}}catch(I){l={error:I}}finally{try{T&&!T.done&&(u=O.return)&&u.call(O)}finally{if(l)throw l.error}}if(n!==x.getSizeInBytes())throw new v["a"]("Interleaving error: "+n+" and "+x.getSizeInBytes()+" differ.");return x},e.generateECBytes=function(e,t){for(var n=e.length,r=new Int32Array(n+t),i=0;i<n;i++)r[i]=255&e[i];new s["a"](a["a"].QR_CODE_FIELD_256).encode(r,t);var o=new Uint8Array(t);for(i=0;i<t;i++)o[i]=r[n+i];return o},e.appendModeInfo=function(e,t){t.appendBits(e.getBits(),4)},e.appendLengthInfo=function(e,t,n,r){var i=n.getCharacterCountBits(t);if(e>=1<<i)throw new v["a"](e+" is bigger than "+((1<<i)-1));r.appendBits(e,i)},e.appendBytes=function(t,n,r,i){switch(n){case l["a"].NUMERIC:e.appendNumericBytes(t,r);break;case l["a"].ALPHANUMERIC:e.appendAlphanumericBytes(t,r);break;case l["a"].BYTE:e.append8BitBytes(t,r,i);break;case l["a"].KANJI:e.appendKanjiBytes(t,r);break;default:throw new v["a"]("Invalid mode: "+n)}},e.getDigit=function(e){return e.charCodeAt(0)-48},e.isDigit=function(t){var n=e.getDigit(t);return n>=0&&n<=9},e.appendNumericBytes=function(t,n){var r=t.length,i=0;while(i<r){var o=e.getDigit(t.charAt(i));if(i+2<r){var a=e.getDigit(t.charAt(i+1)),s=e.getDigit(t.charAt(i+2));n.appendBits(100*o+10*a+s,10),i+=3}else if(i+1<r){a=e.getDigit(t.charAt(i+1));n.appendBits(10*o+a,7),i+=2}else n.appendBits(o,4),i++}},e.appendAlphanumericBytes=function(t,n){var r=t.length,i=0;while(i<r){var o=e.getAlphanumericCode(t.charCodeAt(i));if(-1===o)throw new v["a"];if(i+1<r){var a=e.getAlphanumericCode(t.charCodeAt(i+1));if(-1===a)throw new v["a"];n.appendBits(45*o+a,11),i+=2}else n.appendBits(o,6),i++}},e.append8BitBytes=function(e,t,n){var r;try{r=p["a"].encode(e,n)}catch(s){throw new v["a"](s)}for(var i=0,o=r.length;i!==o;i++){var a=r[i];t.appendBits(a,8)}},e.appendKanjiBytes=function(e,t){var n;try{n=p["a"].encode(e,o["a"].SJIS)}catch(f){throw new v["a"](f)}for(var r=n.length,i=0;i<r;i+=2){var a=255&n[i],s=255&n[i+1],l=a<<8&4294967295|s,u=-1;if(l>=33088&&l<=40956?u=l-33088:l>=57408&&l<=60351&&(u=l-49472),-1===u)throw new v["a"]("Invalid byte sequence");var c=192*(u>>8)+(255&u);t.appendBits(c,13)}},e.appendECI=function(e,t){t.appendBits(l["a"].ECI.getBits(),4),t.appendBits(e.getValue(),8)},e.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),e.DEFAULT_BYTE_MODE_ENCODING=o["a"].UTF8.getName(),e}();t["a"]=y},6864:function(e,t,n){"use strict";function r(e){return void 0!==e&&null!==e}function i(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=r,t.isKorean=i},"68d6":function(e,t,n){"use strict";n("3c99")},6957:function(e,t,n){n("75b8")},"696e":function(e,t,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),e.exports=n("584a").Promise},"69a4":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(e){return e.getParam("content_style","","string")},i=function(e){return e.getParam("content_css_cors",!1,"boolean")},o=function(e){var t=e.getParam("body_class","","hash");return t[e.id]||""},a=function(e){var t=e.getParam("body_class","","string");return-1===t.indexOf("=")?t:o(e)},s=function(e){var t=e.getParam("body_id","","hash");return t[e.id]||t},l=function(e){var t=e.getParam("body_id","tinymce","string");return-1===t.indexOf("=")?t:s(e)},u=function(e){var o="",s=e.dom.encode,u=r(e);o+='<base href="'+s(e.documentBaseURI.getURI())+'">';var c=i(e)?' crossorigin="anonymous"':"";n.each(e.contentCSS,(function(t){o+='<link type="text/css" rel="stylesheet" href="'+s(e.documentBaseURI.toAbsolute(t))+'"'+c+">"})),u&&(o+='<style type="text/css">'+u+"</style>");var f=l(e),d=a(e),h=t.mac?"e.metaKey":"e.ctrlKey && !e.altKey",p='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+h+")) {e.preventDefault();}}}, false);<\/script> ",m=e.getBody().dir,g=m?' dir="'+s(m)+'"':"",v="<!DOCTYPE html><html><head>"+o+'</head><body id="'+s(f)+'" class="mce-content-body '+s(d)+'"'+g+">"+e.getContent()+p+"</body></html>";return v},c=function(e){var t=u(e),n=e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}});n.focus("close")},f=function(e){e.addCommand("mcePreview",(function(){c(e)}))},d=function(e){var t=function(){return e.execCommand("mcePreview")};e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:t}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:t})};function h(){e.add("preview",(function(e){f(e),d(e)}))}h()})()},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69b9":function(e,t,n){n("4fcb"),e.exports=n("584a").Number.parseFloat},"69d3":function(e,t,n){n("6718")("asyncIterator")},"6a95":function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return h}));n("ac6a"),n("28a5"),n("a481");var r=n("8bbf"),i=n.n(r),o="PERMISSION-",a="PERMISSION_MENU-",s="PERMISSION_All_SYSTSEM_KEY";function l(){var e;return e=i.a.prototype.customSystem?i.a.prototype.customSystem:i.a.prototype.currentSystem?i.a.prototype.currentSystem:i.a.prototype.systemCode,e}function u(){var e=l(),t=localStorage.getItem(o+e);return t?JSON.parse(t):null}function c(){var e=localStorage.getItem(s);return e&&(e=e.split(",")),e||(e=[]),e}function f(){localStorage.removeItem(s)}function d(e){return e.replace(/(\s*$)/g,"")}function h(){var e=l();localStorage.removeItem(o+e),localStorage.removeItem(a+e);var t=c();t.forEach((function(e){e=d(e),localStorage.removeItem(e)})),f()}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(e,t,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6b54":function(e,t,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),o=n("9e1e"),a="toString",s=/./[a],l=function(e){n("2aba")(RegExp.prototype,a,e,!0)};n("79e5")((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?l((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):s.name!=a&&l((function(){return s.call(this)}))},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=r[u],f=c&&c.prototype;f&&!f[a]&&i(f,a,u),o[u]=o.Array}},"6cd7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("f505"),i=n("1f78"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=500);var r=this,o=new i["a"];return o.setHints(t),r=e.call(this,o,n)||this,r}return o(t,e),t.prototype.decodeBitmap=function(e){return this.reader.decodeWithState(e)},t}(r["a"])},"6d19":function(e,t,n){"use strict";var r=n("63af"),i=n("f20f"),o=n("00ec"),a=n("f0a7"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t,n,r,i,o,s,l,u){var c=e.call(this,s,l)||this;if(c.yuvData=t,c.dataWidth=n,c.dataHeight=r,c.left=i,c.top=o,i+s>n||o+l>r)throw new a["a"]("Crop rectangle does not fit within image data.");return u&&c.reverseHorizontal(s,l),c}s(t,e),t.prototype.getRow=function(e,t){if(e<0||e>=this.getHeight())throw new a["a"]("Requested row is outside the image: "+e);var n=this.getWidth();(null===t||void 0===t||t.length<n)&&(t=new Uint8ClampedArray(n));var i=(e+this.top)*this.dataWidth+this.left;return r["a"].arraycopy(this.yuvData,i,t,0,n),t},t.prototype.getMatrix=function(){var e=this.getWidth(),t=this.getHeight();if(e===this.dataWidth&&t===this.dataHeight)return this.yuvData;var n=e*t,i=new Uint8ClampedArray(n),o=this.top*this.dataWidth+this.left;if(e===this.dataWidth)return r["a"].arraycopy(this.yuvData,o,i,0,n),i;for(var a=0;a<t;a++){var s=a*e;r["a"].arraycopy(this.yuvData,o,i,s,e),o+=this.dataWidth}return i},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,n,r,i){return new t(this.yuvData,this.dataWidth,this.dataHeight,this.left+e,this.top+n,r,i,!1)},t.prototype.renderThumbnail=function(){for(var e=this.getWidth()/t.THUMBNAIL_SCALE_FACTOR,n=this.getHeight()/t.THUMBNAIL_SCALE_FACTOR,r=new Int32Array(e*n),i=this.yuvData,o=this.top*this.dataWidth+this.left,a=0;a<n;a++){for(var s=a*e,l=0;l<e;l++){var u=255&i[o+l*t.THUMBNAIL_SCALE_FACTOR];r[s+l]=4278190080|65793*u}o+=this.dataWidth*t.THUMBNAIL_SCALE_FACTOR}return r},t.prototype.getThumbnailWidth=function(){return this.getWidth()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.getThumbnailHeight=function(){return this.getHeight()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.reverseHorizontal=function(e,t){for(var n=this.yuvData,r=0,i=this.top*this.dataWidth+this.left;r<t;r++,i+=this.dataWidth)for(var o=i+e/2,a=i,s=i+e-1;a<o;a++,s--){var l=n[a];n[a]=n[s],n[s]=l}},t.prototype.invert=function(){return new o["a"](this)},t.THUMBNAIL_SCALE_FACTOR=2})(i["a"])},"6dd8":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),a=2;function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&u()}function l(){o(s)}function u(){var e=Date.now();if(n){if(e-i<a)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return u}var l=20,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!==typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),l)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},p=S(0,0,0,0);function m(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+m(r)}),0)}function v(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=m(a)}return n}function b(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function y(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=h(e).getComputedStyle(e),i=v(r),o=i.left+i.right,a=i.top+i.bottom,s=m(r.width),l=m(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=g(r,"left","right")+o),Math.round(l+a)!==n&&(l-=g(r,"top","bottom")+a)),!_(e)){var u=Math.round(s+o)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return S(i.left,i.top,s,l)}var w=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"===typeof e.getBBox}}();function _(e){return e===h(e).document.documentElement}function C(e){return r?w(e)?b(e):y(e):p}function x(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return d(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function S(e,t,n,r){return{x:e,y:t,width:n,height:r}}var k=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=C(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),D=function(){function e(e,t){var n=x(t);d(this,{target:e,contentRect:n})}return e}(),O=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new k(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new D(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),T="undefined"!==typeof WeakMap?new WeakMap:new n,E=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new O(t,n,this);T.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){E.prototype[e]=function(){var t;return(t=T.get(this))[e].apply(t,arguments)}}));var I=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:E}();t["default"]=I}.call(this,n("c8ba"))},7163:function(e,t,n){"use strict";var r;(function(e){e[e["ERROR_CORRECTION"]=0]="ERROR_CORRECTION",e[e["CHARACTER_SET"]=1]="CHARACTER_SET",e[e["DATA_MATRIX_SHAPE"]=2]="DATA_MATRIX_SHAPE",e[e["MIN_SIZE"]=3]="MIN_SIZE",e[e["MAX_SIZE"]=4]="MAX_SIZE",e[e["MARGIN"]=5]="MARGIN",e[e["PDF417_COMPACT"]=6]="PDF417_COMPACT",e[e["PDF417_COMPACTION"]=7]="PDF417_COMPACTION",e[e["PDF417_DIMENSIONS"]=8]="PDF417_DIMENSIONS",e[e["AZTEC_LAYERS"]=9]="AZTEC_LAYERS",e[e["QR_VERSION"]=10]="QR_VERSION"})(r||(r={})),t["a"]=r},"71c1":function(e,t,n){var r=n("3a38"),i=n("25eb");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},7288:function(e,t,n){"use strict";var r,i=n("f0a7");(function(e){e[e["TERMINATOR"]=0]="TERMINATOR",e[e["NUMERIC"]=1]="NUMERIC",e[e["ALPHANUMERIC"]=2]="ALPHANUMERIC",e[e["STRUCTURED_APPEND"]=3]="STRUCTURED_APPEND",e[e["BYTE"]=4]="BYTE",e[e["ECI"]=5]="ECI",e[e["KANJI"]=6]="KANJI",e[e["FNC1_FIRST_POSITION"]=7]="FNC1_FIRST_POSITION",e[e["FNC1_SECOND_POSITION"]=8]="FNC1_SECOND_POSITION",e[e["HANZI"]=9]="HANZI"})(r||(r={}));var o=function(){function e(t,n,r,i){this.value=t,this.stringValue=n,this.characterCountBitsForVersions=r,this.bits=i,e.FOR_BITS.set(i,this),e.FOR_VALUE.set(t,this)}return e.forBits=function(t){var n=e.FOR_BITS.get(t);if(void 0===n)throw new i["a"];return n},e.prototype.getCharacterCountBits=function(e){var t,n=e.getVersionNumber();return t=n<=9?0:n<=26?1:2,this.characterCountBitsForVersions[t]},e.prototype.getValue=function(){return this.value},e.prototype.getBits=function(){return this.bits},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.value===n.value},e.prototype.toString=function(){return this.stringValue},e.FOR_BITS=new Map,e.FOR_VALUE=new Map,e.TERMINATOR=new e(r.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),e.NUMERIC=new e(r.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),e.ALPHANUMERIC=new e(r.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),e.STRUCTURED_APPEND=new e(r.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),e.BYTE=new e(r.BYTE,"BYTE",Int32Array.from([8,16,16]),4),e.ECI=new e(r.ECI,"ECI",Int32Array.from([0,0,0]),7),e.KANJI=new e(r.KANJI,"KANJI",Int32Array.from([8,10,12]),8),e.FNC1_FIRST_POSITION=new e(r.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),e.FNC1_SECOND_POSITION=new e(r.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),e.HANZI=new e(r.HANZI,"HANZI",Int32Array.from([8,10,12]),13),e}();t["a"]=o},7324:function(e,t,n){"use strict";n("f0c7")},7333:function(e,t,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),a=n("52a7"),s=n("4bf8"),l=n("626a"),u=Object.assign;e.exports=!u||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=s(e),u=arguments.length,c=1,f=o.f,d=a.f;while(u>c){var h,p=l(arguments[c++]),m=f?i(p).concat(f(p)):i(p),g=m.length,v=0;while(g>v)h=m[v++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:u},"746a":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=n("9c59"),o={},a="§";function s(){if(l.supported){var e,t=window.name,n=0;for(e in o=t.charAt(0)===a?i.parse(t.slice(1)):{},o)r.call(o,e)&&n++;l.length=n}}var l=e.exports={length:0,getItem:function(e){return r.call(o,e)?o[e]:null},setItem:function(e,t){o[e]=t,window.name=i.stringify(o,a),l.length++},removeItem:function(e){delete o[e],window.name=i.stringify(o,a),l.length--},clear:function(){o={},window.name="",l.length=0},supported:function(){return"object"===typeof window&&"string"===typeof window.name}()};s()},"75b8":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(e){return e.getParam("save_enablewhendirty",!0)},i=function(e){return!!e.getParam("save_onsavecallback")},o=function(e){return!!e.getParam("save_oncancelcallback")},a=function(e,t){e.notificationManager.open({text:t,type:"error"})},s=function(e){var n=t.DOM.getParent(e.id,"form");if(!r(e)||e.isDirty()){if(e.save(),i(e))return e.execCallback("save_onsavecallback",e),void e.nodeChanged();n?(e.setDirty(!1),n.onsubmit&&!n.onsubmit()||("function"===typeof n.submit?n.submit():a(e,"Error: Form submit field collision.")),e.nodeChanged()):a(e,"Error: No form element found.")}},l=function(e){var t=n.trim(e.startContent);o(e)?e.execCallback("save_oncancelcallback",e):e.resetContent(t)},u=function(e){e.addCommand("mceSave",(function(){s(e)})),e.addCommand("mceCancel",(function(){l(e)}))},c=function(e){return function(t){var n=function(){t.setDisabled(r(e)&&!e.isDirty())};return n(),e.on("NodeChange dirty",n),function(){return e.off("NodeChange dirty",n)}}},f=function(e){e.ui.registry.addButton("save",{icon:"save",tooltip:"Save",disabled:!0,onAction:function(){return e.execCommand("mceSave")},onSetup:c(e)}),e.ui.registry.addButton("cancel",{icon:"cancel",tooltip:"Cancel",disabled:!0,onAction:function(){return e.execCommand("mceCancel")},onSetup:c(e)}),e.addShortcut("Meta+S","","mceSave")};function d(){e.add("save",(function(e){f(e),u(e)}))}d()})()},"760b":function(e,t,n){},"765d":function(e,t,n){n("6718")("observable")},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"788a":function(e,t,n){},"78b7":function(e,t,n){(function(t){!function(){"use strict";function n(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"==t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}function r(e){return g((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e.eq(t[i],n[i]))return!1;return!0}))}function i(e){return g((function(t,n){var i,o,a,s=Object.keys(t),l=Object.keys(n);if(o=r(v),a=function(e){return t=i,Array.prototype.slice.call(e).sort(t);var t},!g((function(e,t){return o.eq(a(e),a(t))})).eq(s,l))return!1;for(var u=s.length,c=0;c<u;c++){var f=s[c];if(!e.eq(t[f],n[f]))return!1}return!0}))}function o(e){return function(t){return r=typeof(n=t),(null===n?"null":"object"==r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===e;var n,r}}function a(e){return function(t){return typeof t===e}}function s(e){return function(t){return e===t}}function l(e){return null==e}function u(e){return!l(e)}function c(){}function f(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}}function d(e,t){return function(n){return e(t(n))}}function h(e){return function(){return e}}function p(e){return e}function m(e,t){return e===t}var g=function(e){return{eq:e}},v=g((function(e,t){return e===t})),b=g((function(e,t){if(e===t)return!0;var o=n(e);return o===n(t)&&(-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(o)?e===t:"array"===o?r(b).eq(e,t):"object"===o&&i(b).eq(e,t))})),y=o("string"),w=o("object"),_=o("array"),C=s(null),x=a("boolean"),S=s(void 0),k=a("function"),D=a("number");function O(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}function T(e){return function(t){return!e(t)}}function E(e){return e()}function I(e){e()}function N(){return M}var A=h(!1),P=h(!0),M={fold:function(e,t){return e()},isSome:A,isNone:P,getOr:p,getOrThunk:R,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:h(null),getOrUndefined:h(void 0),or:p,orThunk:R,map:N,each:c,bind:N,exists:A,forall:P,filter:function(){return M},toArray:function(){return[]},toString:h("none()")};function R(e){return e()}function F(e,t){return _e.call(e,t)}function B(e,t){return-1<F(e,t)}function L(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1}function $(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r}function V(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}function j(e,t){for(var n=e.length-1;0<=n;n--)t(e[n],n)}function z(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i];(t(a,i)?n:r).push(a)}return{pass:n,fail:r}}function H(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n}function U(e,t,n){return j(e,(function(e,r){n=t(n,e,r)})),n}function W(e,t,n){return V(e,(function(e,r){n=t(n,e,r)})),n}function q(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return ye.some(o);if(n(o,r))break}return ye.none()}function G(e,t){return q(e,t,A)}function Y(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return ye.some(n);return ye.none()}function K(e,t){return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!_(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);Ce.apply(t,e[n])}return t}($(e,t))}function X(e,t){for(var n=0,r=e.length;n<r;++n)if(!0!==t(e[n],n))return!1;return!0}function J(e){var t=we.call(e,0);return t.reverse(),t}function Z(e,t){return H(e,(function(e){return!B(t,e)}))}function Q(e,t){var n=we.call(e,0);return n.sort(t),n}function ee(e,t){return 0<=t&&t<e.length?ye.some(e[t]):ye.none()}function te(e){return ee(e,0)}function ne(e){return ee(e,e.length-1)}function re(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return ye.none()}function ie(e,t){for(var n=Se(e),r=0,i=n.length;r<i;r++){var o=n[r];t(e[o],o)}}function oe(e,t){return De(e,(function(e,n){return{k:n,v:t(e,n)}}))}function ae(e){return function(t,n){e[n]=t}}function se(e,t,n,r){return ie(e,(function(e,i){(t(e,i)?n:r)(e,i)})),1}function le(e,t){var n={};return se(e,t,ae(n),c),n}function ue(e,t){return Oe(e,t)?ye.from(e[t]):ye.none()}function ce(e,t){return Oe(e,t)&&void 0!==e[t]&&null!==e[t]}function fe(e,t,n){var r,i;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,i=e.length;r<i;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(Oe(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0}function de(e,t){var n=[];return fe(e,(function(r,i){n.push(t(r,i,e))})),n}function he(e,t){var n=[];return fe(e,(function(r,i){t&&!t(r,i,e)||n.push(r)})),n}function pe(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function me(e,t,n,r){for(var i=S(n)?e[0]:n,o=0;o<e.length;o++)i=t.call(r,i,e[o],o);return i}function ge(e,t,n){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return r;return-1}function ve(e){return e[e.length-1]}var be=function(e){function t(){return i}function n(t){return t(e)}var r=h(e),i={fold:function(t,n){return n(e)},isSome:P,isNone:A,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:t,orThunk:t,map:function(t){return be(t(e))},each:function(t){t(e)},bind:n,exists:n,forall:n,filter:function(t){return t(e)?i:M},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},ye={some:be,none:N,from:function(e){return null==e?M:be(e)}},we=Array.prototype.slice,_e=Array.prototype.indexOf,Ce=Array.prototype.push,xe=k(Array.from)?Array.from:function(e){return we.call(e)},Se=Object.keys,ke=Object.hasOwnProperty,De=function(e,t){var n={};return ie(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},Oe=function(e,t){return ke.call(e,t)},Te=Array.isArray,Ee=function(){return(Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ie(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Ne(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}}function Ae(e,t){var n=String(t).toLowerCase();return G(e,(function(e){return e.search(n)}))}function Pe(e,t){return-1!==e.indexOf(t)}function Me(e){return function(t){return t.replace(e,"")}}function Re(e){return 0<e.length}function Fe(e){return!Re(e)}function Be(e){return function(t){return Pe(t,e)}}function Le(e){return window.matchMedia(e).matches}function $e(e){return null==e?"":(""+e).replace(St,"")}function Ve(e,t){return t?!("array"!==t||!Te(e))||typeof e===t:void 0!==e}function je(e,t){for(var n=[],r=function(e){return n.push(e),t(e)},i=t(e);(i=i.bind(r)).isSome(););return n}function ze(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}function He(e){return 1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount}function Ue(e,t){return e.dom===t.dom}function We(e,t){return pt().browser.isIE()?(n=e.dom,r=t.dom,i=Node.DOCUMENT_POSITION_CONTAINED_BY,0!=(n.compareDocumentPosition(r)&i)):(o=e.dom)!==(a=t.dom)&&o.contains(a);var n,r,i,o,a}function qe(){return Xe(0,0)}function Ge(e){function t(e){return function(){return n===e}}var n=e.current,r=e.version;return{current:n,version:r,isEdge:t("Edge"),isChrome:t("Chrome"),isIE:t("IE"),isOpera:t("Opera"),isFirefox:t(it),isSafari:t("Safari")}}function Ye(e){function t(e){return function(){return n===e}}var n=e.current,r=e.version;return{current:n,version:r,isWindows:t(st),isiOS:t("iOS"),isAndroid:t(lt),isOSX:t("OSX"),isLinux:t("Linux"),isSolaris:t(ut),isFreeBSD:t(ct),isChromeOS:t(ft)}}function Ke(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}}var Xe=function(e,t){return{major:e,minor:t}},Je={nu:Xe,detect:function(e,t){var n,r,i=String(t).toLowerCase();return 0===e.length?qe():(r=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}}(e,n=i))?Xe(o(1),o(2)):{major:0,minor:0};function o(e){return Number(n.replace(r,"$"+e))}},unknown:qe},Ze=function(e,t){return""===(n=t)||e.length>=n.length&&e.substr(0,0+n.length)===n;var n},Qe=Me(/^\s+|\s+$/g),et=Me(/^\s+/g),tt=Me(/\s+$/g),nt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,rt={browsers:h([{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Pe(e,"edge/")&&Pe(e,"chrome")&&Pe(e,"safari")&&Pe(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,nt],search:function(e){return Pe(e,"chrome")&&!Pe(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Pe(e,"msie")||Pe(e,"trident")}},{name:"Opera",versionRegexes:[nt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Be("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Be("firefox")},{name:"Safari",versionRegexes:[nt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Pe(e,"safari")||Pe(e,"mobile/"))&&Pe(e,"applewebkit")}}]),oses:h([{name:"Windows",search:Be("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Pe(e,"iphone")||Pe(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Be("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Be("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Be("linux"),versionRegexes:[]},{name:"Solaris",search:Be("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Be("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Be("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}])},it="Firefox",ot=function(){return Ge({current:void 0,version:Je.unknown()})},at=Ge,st=(h("Edge"),h("Chrome"),h("IE"),h("Opera"),h(it),h("Safari"),"Windows"),lt="Android",ut="Solaris",ct="FreeBSD",ft="ChromeOS",dt=function(){return Ye({current:void 0,version:Je.unknown()})},ht=Ye,pt=(h(st),h("iOS"),h(lt),h("Linux"),h("OSX"),h(ut),h(ct),h(ft),Ne((function(){return e=navigator.userAgent,t=ye.from(navigator.userAgentData),n=Le,g=rt.browsers(),v=rt.oses(),b=t.bind((function(e){return t=g,re(e.brands,(function(e){var n=e.brand.toLowerCase();return G(t,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(t){return{current:t.name,version:Je.nu(parseInt(e.version,10),0)}}))}));var t})).orThunk((function(){return Ae(g,t=e).map((function(e){var n=Je.detect(e.versionRegexes,t);return{current:e.name,version:n}}));var t})).fold(ot,at),y=Ae(v,r=e).map((function(e){var t=Je.detect(e.versionRegexes,r);return{current:e.name,version:t}})).fold(dt,ht),{browser:b,os:y,deviceType:(o=b,a=e,s=n,l=(i=y).isiOS()&&!0===/ipad/i.test(a),u=i.isiOS()&&!l,f=(c=i.isiOS()||i.isAndroid())||s("(pointer:coarse)"),d=l||!u&&c&&s("(min-device-width:768px)"),p=u||c&&!d,m=o.isSafari()&&i.isiOS()&&!1===/safari/i.test(a),{isiPad:h(l),isiPhone:h(u),isTablet:h(d),isPhone:h(p),isTouch:h(f),isAndroid:i.isAndroid,isiOS:i.isiOS,isWebView:h(m),isDesktop:h(!p&&!d&&!m)})};var e,t,n,r,i,o,a,s,l,u,c,f,d,p,m,g,v,b,y}))),mt=navigator.userAgent,gt=pt(),vt=gt.browser,bt=gt.os,yt=gt.deviceType,wt=/WebKit/.test(mt)&&!vt.isEdge(),_t="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Ct=-1!==mt.indexOf("Windows Phone"),xt={opera:vt.isOpera(),webkit:wt,ie:!(!vt.isIE()&&!vt.isEdge())&&vt.version.major,gecko:vt.isFirefox(),mac:bt.isOSX()||bt.isiOS(),iOS:yt.isiPad()||yt.isiPhone(),android:bt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:vt.isIE()?document.documentMode||7:10,fileApi:_t,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!vt.isIE(),desktop:yt.isDesktop(),windowsPhone:Ct,browser:{current:vt.current,version:vt.version,isChrome:vt.isChrome,isEdge:vt.isEdge,isFirefox:vt.isFirefox,isIE:vt.isIE,isOpera:vt.isOpera,isSafari:vt.isSafari},os:{current:bt.current,version:bt.version,isAndroid:bt.isAndroid,isChromeOS:bt.isChromeOS,isFreeBSD:bt.isFreeBSD,isiOS:bt.isiOS,isLinux:bt.isLinux,isOSX:bt.isOSX,isSolaris:bt.isSolaris,isWindows:bt.isWindows},deviceType:{isDesktop:yt.isDesktop,isiPad:yt.isiPad,isiPhone:yt.isiPhone,isPhone:yt.isPhone,isTablet:yt.isTablet,isTouch:yt.isTouch,isWebView:yt.isWebView}},St=/^\s*|\s*$/g,kt=function(e,t,n,r){r=r||this,e&&fe(e=n?e[n]:e,(function(e,i){return!1!==t.call(r,e,i,n)&&void kt(e,t,n,r)}))},Dt={trim:$e,isArray:Te,is:Ve,toArray:function(e){if(Te(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},makeMap:function(e,t,n){var r;for(t=t||",",n=n||{},r=(e="string"==typeof(e=e||[])?e.split(t):e).length;r--;)n[e[r]]={};return n},each:fe,map:de,grep:he,inArray:pe,hasOwn:Oe,extend:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i,o,a=t[r];for(i in a)!Oe(a,i)||void 0!==(o=a[i])&&(e[i]=o)}return e},create:function(e,t,n){var r,i,o,a=this,s=0,l=(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e))[3].match(/(^|\.)(\w+)$/i)[2],u=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!u[l]){if("static"===e[2])return u[l]=t,void(this.onCreate&&this.onCreate(e[2],e[3],u[l]));t[l]||(t[l]=function(){},s=1),u[l]=t[l],a.extend(u[l].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=u[l],u[l]=s?function(){return r[i].apply(this,arguments)}:function(){return this.parent=r[i],o.apply(this,arguments)},u[l].prototype[l]=u[l],a.each(r,(function(e,t){u[l].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?u[l].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==l&&(u[l].prototype[t]=e)}))),a.each(t.static,(function(e,t){u[l][t]=e}))}},walk:kt,createNS:function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)t[r=e[n]]||(t[r]={}),t=t[r];return t},resolve:function(e,t){var n,r;for(t=t||window,n=0,r=(e=e.split(".")).length;n<r&&(t=t[e[n]]);n++);return t},explode:function(e,t){return!e||Ve(e,"array")?e:de(e.split(t||","),$e)},_addCacheSuffix:function(e){var t=xt.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},Ot={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||1<n.childNodes.length)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Ke(n.childNodes[0])},fromTag:function(e,t){var n=(t||document).createElement(e);return Ke(n)},fromText:function(e,t){var n=(t||document).createTextNode(e);return Ke(n)},fromDom:Ke,fromPoint:function(e,t,n){return ye.from(e.dom.elementFromPoint(t,n)).map(Ke)}};function Tt(e){return e.dom.nodeName.toLowerCase()}function Et(e){return e.dom.nodeType}function It(e){return function(t){return Et(t)===e}}function Nt(e){return Ot.fromDom(e.dom.ownerDocument)}function At(e){return Nn(e)?e:Nt(e)}function Pt(e){return Ot.fromDom(At(e).dom.defaultView)}function Mt(e){return ye.from(e.dom.parentNode).map(Ot.fromDom)}function Rt(e){return ye.from(e.dom.previousSibling).map(Ot.fromDom)}function Ft(e){return ye.from(e.dom.nextSibling).map(Ot.fromDom)}function Bt(e){return J(je(e,Rt))}function Lt(e){return je(e,Ft)}function $t(e,t){var n=e.dom.childNodes;return ye.from(n[t]).map(Ot.fromDom)}function Vt(e){return $t(e,0)}function jt(e){return $t(e,e.dom.childNodes.length-1)}function zt(e){return e.dom.childNodes.length}function Ht(e){return An(e)&&u(e.dom.host)}function Ut(e){return Ht(e)?e:function(){var t=At(e).dom.head;if(null==t)throw new Error("Head is not available yet");return Ot.fromDom(t)}()}function Wt(e){return Ot.fromDom(e.dom.host)}function qt(e,t){Mt(e).each((function(n){n.dom.insertBefore(t.dom,e.dom)}))}function Gt(e,t){Ft(e).fold((function(){Mt(e).each((function(e){Bn(e,t)}))}),(function(e){qt(e,t)}))}function Yt(e,t){Vt(e).fold((function(){Bn(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))}function Kt(e,t){V(t,(function(t){Bn(e,t)}))}function Xt(e){e.dom.textContent="",V(Pn(e),(function(e){Ln(e)}))}function Jt(e){var t,n=Pn(e);0<n.length&&(t=e,V(n,(function(e){qt(t,e)}))),Ln(e)}function Zt(e,t){return void 0!==e?e:void 0!==t?t:0}function Qt(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return jn(n,r)}function en(e,t,n){var r=(void 0!==n?n.dom:document).defaultView;r&&r.scrollTo(e,t)}function tn(e,t){pt().browser.isSafari()&&k(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)}function nn(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}}function rn(e){var t=void 0===e?window:e,n=t.document,r=Qt(Ot.fromDom(n)),i=void 0===t?window:t;return(pt().browser.isFirefox()?ye.none():ye.from(i.visualViewport)).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return nn(r.left,r.top,n,i)}),(function(e){return nn(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))}function on(e){return function(t){return!!t&&t.nodeType===e}}function an(e){return e&&!Object.getPrototypeOf(e)}function sn(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return B(t,n)}return!1}}function ln(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Hn(t))for(var r=0;r<n.length;r++){var i=t.ownerDocument.defaultView.getComputedStyle(t,null);if((i?i.getPropertyValue(e):null)===n[r])return!0}return!1}}function un(e){return function(t){return Hn(t)&&t.hasAttribute(e)}}function cn(e){return Hn(e)&&e.hasAttribute("data-mce-bogus")}function fn(e){return Hn(e)&&"TABLE"===e.tagName}function dn(e){return function(t){if(Hn(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}}function hn(e,t,n){return void 0===n&&(n=m),e.exists((function(e){return n(e,t)}))}function pn(e,t,n){return e.isSome()&&t.isSome()?ye.some(n(e.getOrDie(),t.getOrDie())):ye.none()}function mn(e){return void 0!==e.style&&k(e.style.getPropertyValue)}function gn(e,t,n){if(!(y(n)||x(n)||D(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}function vn(e,t,n){gn(e.dom,t,n)}function bn(e,t){var n=e.dom;ie(t,(function(e,t){gn(n,t,e)}))}function yn(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n}function wn(e,t){return ye.from(yn(e,t))}function _n(e,t){var n=e.dom;return n&&n.hasAttribute&&n.hasAttribute(t)}function Cn(e,t){e.dom.removeAttribute(t)}function xn(e,t){var n=e.dom;ie(t,(function(e,t){!function(e,t,n){if(!y(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);mn(e)&&e.style.setProperty(t,n)}(n,t,e)}))}function Sn(e,t){var n=e.dom,r=window.getComputedStyle(n).getPropertyValue(t);return""!==r||$n(e)?r:tr(n,t)}function kn(e,t){var n=e.dom,r=tr(n,t);return ye.from(r).filter((function(e){return 0<e.length}))}function Dn(e){var t={},n=e.dom;if(mn(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t}function On(e){return G(e,En)}function Tn(e,t){return e.children&&B(e.children,t)}"undefined"!=typeof window||Function("return this;")();var En=It(1),In=It(3),Nn=It(9),An=It(11),Pn=function(e){return $(e.dom.childNodes,Ot.fromDom)},Mn=k(Element.prototype.attachShadow)&&k(Node.prototype.getRootNode),Rn=h(Mn),Fn=Mn?function(e){return Ot.fromDom(e.dom.getRootNode())}:At,Bn=function(e,t){e.dom.appendChild(t.dom)},Ln=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},$n=function(e){var t=In(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;var n=t.ownerDocument,r=Ot.fromDom(t),i=Fn(r);return(Ht(i)?ye.some(i):ye.none()).fold((function(){return n.body.contains(t)}),d($n,Wt))},Vn=function(e,t){return{left:e,top:t,translate:function(n,r){return Vn(e+n,t+r)}}},jn=Vn,zn=function(e){var t,n=e.dom,r=n.ownerDocument.body;return r===n?jn(r.offsetLeft,r.offsetTop):$n(e)?(t=n.getBoundingClientRect(),jn(t.left,t.top)):jn(0,0)},Hn=on(1),Un=sn(["textarea","input"]),Wn=on(3),qn=on(8),Gn=on(9),Yn=on(11),Kn=sn(["br"]),Xn=sn(["img"]),Jn=dn("true"),Zn=dn("false"),Qn=sn(["td","th"]),er=sn(["video","audio","object","embed"]),tr=function(e,t){return mn(e)?e.style.getPropertyValue(t):""},nr=pt().browser,rr={},ir={exports:rr};function or(e){setTimeout((function(){throw e}),0)}function ar(e){return fr((function(){return new lr(e)}))}function sr(e){if(!_(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return V(e,(function(r,i){var o=Se(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!_(s))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);return t[i].apply(null,n)},match:function(e){var r=Se(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));if(!X(t,(function(e){return B(r,e)})))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)},log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n}!function(){var e=this,n=function(){var e,n,r,i={exports:{}};function o(){}function a(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n,r=1===e._state?t.onFulfilled:t.onRejected;if(null!==r){try{n=r(e._value)}catch(n){return void u(t.promise,n)}l(t.promise,n)}else(1===e._state?l:u)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void d((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(t){u(e,t)}var r,i}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(e){if(n)return;n=!0,u(t,e)}}e=i,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},r=setTimeout,a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(o);return s(this,new f(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){if(0===t.length)return e([]);for(var r=t.length,i=0;i<t.length;i++)!function i(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return s.call(a,(function(e){i(o,e)}),n),0}t[o]=a,0==--r&&e(t)}catch(a){n(a)}}(i,t[i])}))},a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){r(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a._setImmediateFn=function(e){a._immediateFn=e},a._setUnhandledRejectionFn=function(e){a._unhandledRejectionFn=e},e.exports?e.exports=a:n.Promise||(n.Promise=a);var h=i.exports;return{boltExport:("undefined"!=typeof window?window:Function("return this;")()).Promise||h}};"object"==typeof rr&&void 0!==ir?ir.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).EphoxContactWrapper=n()}();var lr=ir.exports.boltExport,ur=function(e){function t(e){i()?o(e):r.push(e)}var n=ye.none(),r=[],i=function(){return n.isSome()},o=function(e){n.each((function(t){setTimeout((function(){e(t)}),0)}))};return e((function(e){i()||(n=ye.some(e),V(r,o),r=[])})),{get:t,map:function(e){return ur((function(n){t((function(t){n(e(t))}))}))},isReady:i}},cr={nu:ur,pure:function(e){return ur((function(t){t(e)}))}},fr=function(e){function t(t){e().then(t,or)}return{map:function(t){return fr((function(){return e().then(t)}))},bind:function(t){return fr((function(){return e().then((function(e){return t(e).toPromise()}))}))},anonBind:function(t){return fr((function(){return e().then((function(){return t.toPromise()}))}))},toLazy:function(){return cr.nu(t)},toCached:function(){var t=null;return fr((function(){return t=null===t?e():t}))},toPromise:e,get:t}},dr=function(e){return{isValue:P,isError:A,getOr:h(e),getOrThunk:h(e),getOrDie:h(e),or:function(t){return dr(e)},orThunk:function(t){return dr(e)},fold:function(t,n){return n(e)},map:function(t){return dr(t(e))},mapError:function(t){return dr(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOptional:function(){return ye.some(e)}}},hr=function(e){return{isValue:A,isError:P,getOr:p,getOrThunk:function(e){return e()},getOrDie:function(){return t=String(e),function(){throw new Error(t)}();var t},or:p,orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return hr(e)},mapError:function(t){return hr(t(e))},each:c,bind:function(t){return hr(e)},exists:A,forall:P,toOptional:ye.none}},pr={value:dr,error:hr,fromOption:function(e,t){return e.fold((function(){return hr(t)}),dr)}};function mr(e){return e.fold(p,p)}function gr(e,t,n,r,i){return e(n,r)?ye.some(n):k(i)&&i(n)?ye.none():t(n,r,i)}function vr(e,t,n){for(var r=e.dom,i=k(n)?n:A;r.parentNode;){r=r.parentNode;var o=Ot.fromDom(r);if(t(o))return ye.some(o);if(i(o))break}return ye.none()}function br(e,t,n){return gr((function(e,t){return t(e)}),vr,e,t,n)}function yr(e,t,n){return vr(e,(function(e){return ze(e,t)}),n)}function wr(e,t){return n=t,He(r=void 0===e?document:e.dom)?ye.none():ye.from(r.querySelector(n)).map(Ot.fromDom);var n,r}function _r(e,t,n){return gr(ze,yr,e,t,n)}function Cr(e,t){return"number"!=typeof t&&(t=0),setTimeout(e,t)}function xr(e,t){return"number"!=typeof t&&(t=1),setInterval(e,t)}function Sr(e,t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];clearTimeout(r),r=Cr((function(){e.apply(this,n)}),t)}var r;return n.stop=function(){clearTimeout(r)},n}function kr(e,t){function n(n,r,i){var c,f=Dt._addCacheSuffix(n),d=ue(a,f).getOrThunk((function(){return{id:"mce-u"+o++,passed:[],failed:[],count:0}}));function h(e,t){for(var n=e.length;n--;)e[n]();d.status=t,d.passed=[],d.failed=[],c&&(c.onload=null,c.onerror=null,c=null)}function p(){return h(d.passed,2),0}function m(){return h(d.failed,3)}(a[f]=d).count++;var g,v,b,y=function(){var t=y;!function(){for(var t=e.styleSheets,n=t.length;n--;){var r=t[n].ownerNode;if(r&&r.id===c.id)return p(),1}}()&&(Date.now()-v<u?Ir.setTimeout(t):m())};r&&d.passed.push(r),i&&d.failed.push(i),1!==d.status&&(2!==d.status?3!==d.status?(d.status=1,bn(g=Ot.fromTag("link",l.dom),{rel:"stylesheet",type:"text/css",id:d.id}),v=Date.now(),t.contentCssCors&&vn(g,"crossOrigin","anonymous"),t.referrerPolicy&&vn(g,"referrerpolicy",t.referrerPolicy),(c=g.dom).onload=y,c.onerror=m,b=g,Bn(Ut(s),b),vn(g,"href",f)):m():p())}function r(e){return ar((function(t){n(e,f(t,h(pr.value(e))),f(t,h(pr.error(e))))}))}function i(e){var t=Dt._addCacheSuffix(e);ue(a,t).each((function(e){var n;0==--e.count&&(delete a[t],n=e.id,wr(Ut(s),"#"+n).each(Ln))}))}void 0===t&&(t={});var o=0,a={},s=Ot.fromDom(e),l=At(s),u=t.maxLoadTime||5e3;return{load:n,loadAll:function(e,t,n){var i,o=$(e,r);i=o,ar((function(e){var t=[],n=0;0===i.length?e([]):V(i,(function(r,o){var a;r.get((a=o,function(r){t[a]=r,++n>=i.length&&e(t)}))}))})).get((function(e){var r=z(e,(function(e){return e.isValue()}));0<r.fail.length?n(r.fail.map(mr)):t(r.pass.map(mr))}))},unload:i,unloadAll:function(e){V(e,(function(e){i(e)}))},_setReferrerPolicy:function(e){t.referrerPolicy=e}}}sr([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var Dr,Or,Tr=function(e,t){return G(e.dom.childNodes,(function(e){return t(Ot.fromDom(e))})).map(Ot.fromDom)},Er=window.Promise||lr,Ir={requestAnimationFrame:function(e,t){Dr?Dr.then(e):Dr=new Er((function(e){(function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],i=0;i<r.length&&!n;i++)n=window[r[i]+"RequestAnimationFrame"];(n=n||function(e){window.setTimeout(e,0)})(e,t)})(e,t=t||document.body)})).then(e)},setTimeout:Cr,setInterval:xr,setEditorTimeout:function(e,t,n){return Cr((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=xr((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:Sr,throttle:Sr,clearInterval:function(e){return clearInterval(e)},clearTimeout:function(e){return clearTimeout(e)}},Nr=(Or=new WeakMap,{forElement:function(e,t){var n=Fn(e).dom;return ye.from(Or.get(n)).getOrThunk((function(){var e=kr(n,t);return Or.set(n,e),e}))}}),Ar=(Pr.prototype.current=function(){return this.node},Pr.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},Pr.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},Pr.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},Pr.prototype.findSibling=function(e,t,n,r){var i,o;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(i=e[n])return i;for(o=e.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[n])return i}}},Pr.prototype.findPreviousNode=function(e,t,n,r){var i,o,a;if(e&&(i=e[n],!this.rootNode||i!==this.rootNode)){if(i){if(!r)for(a=i[t];a;a=a[t])if(!a[t])return a;return i}return(o=e.parentNode)&&o!==this.rootNode?o:void 0}},Pr);function Pr(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}function Mr(e){var t;return function(n){return t=t||function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n}(e,P),Oe(t,Tt(n))}}function Rr(e){return En(e)&&!mi(e)}function Fr(e){return En(e)&&"br"===Tt(e)}function Br(e){return Ti(e)&&(e=e.parentNode),Oi(e)&&e.hasAttribute("data-mce-caret")}function Lr(e){return Ti(e)&&ki(e.data)}function $r(e){return Br(e)||Lr(e)}function Vr(e){return e.firstChild!==e.lastChild||!Kn(e.firstChild)}function jr(e){var t=e.container();return!!Wn(t)&&(t.data.charAt(e.offset())===Si||e.isAtStart()&&Lr(t.previousSibling))}function zr(e){var t=e.container();return!!Wn(t)&&(t.data.charAt(e.offset()-1)===Si||e.isAtEnd()&&Lr(t.nextSibling))}function Hr(e){return e&&e.hasAttribute("data-mce-caret")?(cn(n=(t=e.getElementsByTagName("br"))[t.length-1])&&n.parentNode.removeChild(n),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null;var t,n}function Ur(e){return Br(e.startContainer)}function Wr(e){return!Li(e)&&(Mi(e)?!Ri(e.parentNode):Fi(e)||Pi(e)||Bi(e)||$i(e))}function qr(e,t){return Wr(e)&&function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if($i(e))return!1;if(Ni(e))return!0}return!0}(e,t)}function Gr(e){return Vi.test(e)}function Yr(e,t){return Wr(e)&&!1===(a=t,Wn(o=e)&&Gr(o.data)&&!1===(n=o,r=Ot.fromDom(a),yr(Ot.fromDom(n),"pre,code",O(Ue,r)).isSome()))||Hn(i=e)&&"A"===i.nodeName&&!i.hasAttribute("href")&&(i.hasAttribute("name")||i.hasAttribute("id"))||ji(e);var n,r,i,o,a}function Kr(e,t){return function(e,t){var n=0;if(Yr(e,e))return!1;var r=e.firstChild;if(!r)return!0;var i=new Ar(r,e);do{if(t){if(Hi(r)){r=i.next(!0);continue}if(zi(r)){r=i.next();continue}}if(Kn(r))n++,r=i.next();else{if(Yr(r,e))return!1;r=i.next()}}while(r);return n<=1}(e.dom,t=void 0===t||t)}function Xr(e,t){return u(e)&&(Yr(e,t)||Rr(Ot.fromDom(e)))}function Jr(e){return"span"===e.nodeName.toLowerCase()&&"bookmark"===e.getAttribute("data-mce-type")}function Zr(e,t){var n,r,i,o={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),Ji[r]||(i="&"+e[n+1]+";",o[r]=i,o[i]=r);return o}}function Qr(e,t){return e.replace(t?qi:Gi,(function(e){return Ji[e]||e}))}function ei(e,t){return e.replace(t?qi:Gi,(function(e){return 1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":Ji[e]||"&#"+e.charCodeAt(0)+";"}))}function ti(e,t,n){return n=n||Qi,e.replace(t?qi:Gi,(function(e){return Ji[e]||n[e]||e}))}function ni(e,t){return(e=Dt.trim(e))?e.split(t||" "):[]}function ri(e,t){var n=ro(e," ",ro(e.toUpperCase()," "));return oo(n,t)}function ii(e){return ri("td th li dt dd figcaption caption details summary",e.getTextBlockElements())}function oi(e,t){var n;return e&&(n={},io(e="string"==typeof e?{"*":e}:e,(function(e,r){n[r]=n[r.toUpperCase()]=("map"===t?ro:ao)(e,/[, ]/)}))),n}function ai(e){function t(t,n,r){var i=e[t];return i?i=ro(i,/[, ]/,ro(i.toUpperCase(),/[, ]/)):(i=to[t])||(i=ri(n,r),to[t]=i),i}var n,r,i,o,a,s,l,u,c={},f={},d=[],p={},m={},g=(n=(e=e||{}).schema,u={},to[n]||(r="id accesskey class dir lang style tabindex title role",i="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",o="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==n&&(r+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",i+=" article aside details dialog figure main header footer hgroup section nav",o+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==n&&(r+=" xml:lang",o=[o,l="acronym applet basefont big font strike tt"].join(" "),io(ni(l),(function(e){v(e,"",o)})),i=[i,s="center dir isindex noframes"].join(" "),a=[i,o].join(" "),io(ni(s),(function(e){v(e,"",a)}))),a=a||[i,o].join(" "),v("html","manifest","head body"),v("head","","base command link meta noscript script style title"),v("title hr noscript br"),v("base","href target"),v("link","href rel media hreflang type sizes hreflang"),v("meta","name http-equiv content charset"),v("style","media type scoped"),v("script","src async defer type charset"),v("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",a),v("address dt dd div caption","",a),v("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",o),v("blockquote","cite",a),v("ol","reversed start type","li"),v("ul","","li"),v("li","value",a),v("dl","","dt dd"),v("a","href target rel media hreflang type",o),v("q","cite",o),v("ins del","cite datetime",a),v("img","src sizes srcset alt usemap ismap width height"),v("iframe","src name width height",a),v("embed","src type width height"),v("object","data type typemustmatch name usemap form width height",[a,"param"].join(" ")),v("param","name value"),v("map","name",[a,"area"].join(" ")),v("area","alt coords shape href target rel media hreflang type"),v("table","border","caption colgroup thead tfoot tbody tr"+("html4"===n?" col":"")),v("colgroup","span","col"),v("col","span"),v("tbody thead tfoot","","tr"),v("tr","","td th"),v("td","colspan rowspan headers",a),v("th","colspan rowspan headers scope abbr",a),v("form","accept-charset action autocomplete enctype method name novalidate target",a),v("fieldset","disabled form name",[a,"legend"].join(" ")),v("label","form for",o),v("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),v("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===n?a:o),v("select","disabled form multiple name required size","option optgroup"),v("optgroup","disabled label","option"),v("option","disabled label selected value"),v("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),v("menu","type label",[a,"li"].join(" ")),v("noscript","",a),"html4"!==n&&(v("wbr"),v("ruby","",[o,"rt rp"].join(" ")),v("figcaption","",a),v("mark rt rp summary bdi","",o),v("canvas","width height",a),v("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[a,"track source"].join(" ")),v("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[a,"track source"].join(" ")),v("picture","","img source"),v("source","src srcset type media sizes"),v("track","kind src srclang label default"),v("datalist","",[o,"option"].join(" ")),v("article section nav aside main header footer","",a),v("hgroup","","h1 h2 h3 h4 h5 h6"),v("figure","",[a,"figcaption"].join(" ")),v("time","datetime",o),v("dialog","open",a),v("command","type label icon disabled checked radiogroup command"),v("output","for form name",o),v("progress","value max",o),v("meter","value min max low high optimum",o),v("details","open",[a,"summary"].join(" ")),v("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==n&&(b("script","language xml:space"),b("style","xml:space"),b("object","declare classid code codebase codetype archive standby align border hspace vspace"),b("embed","align name hspace vspace"),b("param","valuetype type"),b("a","charset name rev shape coords"),b("br","clear"),b("applet","codebase archive code object alt name width height align hspace vspace"),b("img","name longdesc align border hspace vspace"),b("iframe","longdesc frameborder marginwidth marginheight scrolling align"),b("font basefont","size color face"),b("input","usemap align"),b("select"),b("textarea"),b("h1 h2 h3 h4 h5 h6 div p legend caption","align"),b("ul","type compact"),b("li","type"),b("ol dl menu dir","compact"),b("pre","width xml:space"),b("hr","align noshade size width"),b("isindex","prompt"),b("table","summary width frame rules cellspacing cellpadding align bgcolor"),b("col","width align char charoff valign"),b("colgroup","width align char charoff valign"),b("thead","align char charoff valign"),b("tr","align char charoff valign bgcolor"),b("th","axis align char charoff valign nowrap bgcolor width height"),b("form","accept"),b("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),b("tfoot","align char charoff valign"),b("tbody","align char charoff valign"),b("area","nohref"),b("body","background bgcolor text link vlink alink")),"html4"!==n&&(b("input button select textarea","autofocus"),b("input textarea","placeholder"),b("a","download"),b("link script img","crossorigin"),b("img","loading"),b("iframe","sandbox seamless allowfullscreen loading")),io(ni("a form meter progress dfn"),(function(e){u[e]&&delete u[e].children[e]})),delete u.caption.children.table,delete u.script,to[n]=u));function v(e,t,n){function i(e,t){for(var n={},r=0,i=e.length;r<i;r++)n[e[r]]=t||{};return n}var o,a;t=t||"","string"==typeof(n=n||[])&&(n=ni(n));for(var s=ni(e),l=s.length;l--;)a={attributes:i(o=ni([r,t].join(" "))),attributesOrder:o,children:i(n,no)},u[s[l]]=a}function b(e,t){for(var n,r,i,o=ni(e),a=o.length,s=ni(t);a--;)for(n=u[o[a]],r=0,i=s.length;r<i;r++)n.attributes[s[r]]={},n.attributesOrder.push(s[r])}!1===e.verify_html&&(e.valid_elements="*[*]");var y=oi(e.valid_styles),w=oi(e.invalid_styles,"map"),_=oi(e.valid_classes,"map"),C=t("whitespace_elements","pre script noscript style textarea video audio iframe object code"),x=t("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),S=t("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),k=t("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),D="td th iframe video audio object script code",O=t("non_empty_elements",D+" pre",S),T=t("move_caret_before_on_enter_elements",D+" table",S),E=t("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),I=t("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",E),N=t("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");function A(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")}function P(e){var t,n,r,i,o,a,s,l,u,f,h,p,m,g,v,b,y,w,_=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,C=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,x=/[*?+]/;if(e){var S=ni(e,",");for(c["@"]&&(b=c["@"].attributes,y=c["@"].attributesOrder),t=0,n=S.length;t<n;t++)if(o=_.exec(S[t])){if(g=o[1],u=o[2],v=o[3],l=o[5],a={attributes:p={},attributesOrder:m=[]},"#"===g&&(a.paddEmpty=!0),"-"===g&&(a.removeEmpty=!0),"!"===o[4]&&(a.removeEmptyAttrs=!0),b&&(ie(b,(function(e,t){p[t]=e})),m.push.apply(m,y)),l)for(r=0,i=(l=ni(l,"|")).length;r<i;r++)(o=C.exec(l[r]))&&(s={},h=o[1],f=o[2].replace(/[\\:]:/g,":"),g=o[3],w=o[4],"!"===h&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(f),s.required=!0),"-"!==h?(g&&("="===g&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:f,value:w}),s.defaultValue=w),":"===g&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:f,value:w}),s.forcedValue=w),"<"===g&&(s.validValues=ro(w,"?"))),x.test(f)?(a.attributePatterns=a.attributePatterns||[],s.pattern=A(f),a.attributePatterns.push(s)):(p[f]||m.push(f),p[f]=s)):(delete p[f],m.splice(so(m,f),1)));b||"@"!==u||(b=p,y=m),v&&(a.outputName=u,c[v]=a),x.test(u)?(a.pattern=A(u),d.push(a)):c[u]=a}}}function M(e){c={},d=[],P(e),io(g,(function(e,t){f[t]=e.children}))}function R(e){var t=/^(~)?(.+)$/;e&&(to.text_block_elements=to.block_elements=null,io(ni(e,","),(function(e){var n,r=t.exec(e),i="~"===r[1],o=i?"span":"div",a=r[2];f[a]=f[o],p[a]=o,i||(I[a.toUpperCase()]={},I[a]={}),c[a]||(n=c[o],delete(n=oo({},n)).removeEmptyAttrs,delete n.removeEmpty,c[a]=n),io(f,(function(e,t){e[o]&&(f[t]=e=oo({},f[t]),e[a]=e[o])}))})))}function F(t){var n=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;to[e.schema]=null,t&&io(ni(t,","),(function(e){var t,r,i=n.exec(e);i&&(r=i[1],t=r?f[i[2]]:f[i[2]]={"#comment":{}},t=f[i[2]],io(ni(i[3],"|"),(function(e){"-"===r?delete t[e]:t[e]={}})))}))}function B(e){var t,n=c[e];if(n)return n;for(t=d.length;t--;)if((n=d[t]).pattern.test(e))return n}io((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){m[e]=new RegExp("</"+e+"[^>]*>","gi")})),e.valid_elements?M(e.valid_elements):(io(g,(function(e,t){c[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},f[t]=e.children})),"html5"!==e.schema&&io(ni("strong/b em/i"),(function(e){var t=ni(e,"/");c[t[1]].outputName=t[0]})),io(N,(function(t,n){c[n]&&(e.padd_empty_block_inline_children&&(c[n].paddInEmptyBlock=!0),c[n].removeEmpty=!0)})),io(ni("ol ul blockquote a table tbody"),(function(e){c[e]&&(c[e].removeEmpty=!0)})),io(ni("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){c[e].paddEmpty=!0})),io(ni("span"),(function(e){c[e].removeEmptyAttrs=!0}))),R(e.custom_elements),F(e.valid_children),P(e.extended_valid_elements),F("+ol[ul|ol],+ul[ul|ol]"),io({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(e,t){c[t]&&(c[t].parentsRequired=ni(e))})),e.invalid_elements&&io(ao(e.invalid_elements),(function(e){c[e]&&delete c[e]})),B("span")||P("span[!data-mce-type|*]");var L=h(y),$=h(w),V=h(_),j=h(k),z=h(I),H=h(E),U=h(N),W=h(S),q=h(x),G=h(O),Y=h(T),K=h(C),X=h(m),J=h(p);return{children:f,elements:c,getValidStyles:L,getValidClasses:V,getBlockElements:z,getInvalidStyles:$,getShortEndedElements:W,getTextBlockElements:H,getTextInlineElements:U,getBoolAttrs:j,getElementRule:B,getSelfClosingElements:q,getNonEmptyElements:G,getMoveCaretBeforeOnEnterElements:Y,getWhiteSpaceElements:K,getSpecialElements:X,isValidChild:function(e,t){var n=f[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:function(e,t){var n,r,i=B(e);if(i){if(!t)return!0;if(i.attributes[t])return!0;if(n=i.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},getCustomElements:J,addValidElements:P,setValidElements:M,addCustomElements:R,addValidChildren:F}}function si(e,t,n,r){function i(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e}return"#"+i(t)+i(n)+i(r)}function li(e,t){var n,r,i=this,o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,a=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,s=/\s*([^:]+):\s*([^;]+);?/g,l=/\s+$/,u={},c=Ci;e=e||{},t&&(n=t.getValidStyles(),r=t.getInvalidStyles());for(var f=("\\\" \\' \\; \\: ; : "+c).split(" "),d=0;d<f.length;d++)u[f[d]]=c+d,u[c+d]=f[d];return{toHex:function(e){return e.replace(o,si)},parse:function(t){function n(e,t,n){var r=S[e+"-top"+t];if(r){var i=S[e+"-right"+t];if(i){var o=S[e+"-bottom"+t];if(o){var a=S[e+"-left"+t];if(a){var s=[r,i,o,a];for(d=s.length-1;d--&&s[d]===s[d+1];);-1<d&&n||(S[e+t]=-1===d?s[0]:s.join(" "),delete S[e+"-top"+t],delete S[e+"-right"+t],delete S[e+"-bottom"+t],delete S[e+"-left"+t])}}}}}function r(e){var t,n=S[e];if(n){for(t=(n=n.split(" ")).length;t--;)if(n[t]!==n[0])return;return S[e]=n[0],1}}function f(e){return w=!0,u[e]}function h(e,t){return w&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return u[e]}))),t?e:e.replace(/\\([\'\";:])/g,"$1")}function p(e){return String.fromCharCode(parseInt(e.slice(1),16))}function m(e){return e.replace(/\\[0-9a-f]+/gi,p)}function g(t,n,r,i,o,a){if(o=o||a)return"'"+(o=h(o)).replace(/\'/g,"\\'")+"'";if(n=h(n||r||i),!e.allow_script_urls){var s=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(s))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(s))return""}return"url('"+(n=k?k.call(D,n,"style"):n).replace(/\'/g,"\\'")+"')"}var v,b,y,w,_,C,x,S={},k=e.url_converter,D=e.url_converter_scope||i;if(t){for(t=(t=t.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,f).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,f)}));v=s.exec(t);)s.lastIndex=v.index+v[0].length,b=v[1].replace(l,"").toLowerCase(),y=v[2].replace(l,""),b&&y&&(b=m(b),y=m(y),-1===b.indexOf(c)&&-1===b.indexOf('"')&&(e.allow_script_urls||"behavior"!==b&&!/expression\s*\(|\/\*|\*\//.test(y))&&("font-weight"===b&&"700"===y?y="bold":"color"!==b&&"background-color"!==b||(y=y.toLowerCase()),y=(y=y.replace(o,si)).replace(a,g),S[b]=w?h(y,!0):y));n("border","",!0),n("border","-width"),n("border","-color"),n("border","-style"),n("padding",""),n("margin",""),C="border-style",x="border-color",r(_="border-width")&&r(C)&&r(x)&&(S.border=S[_]+" "+S[C]+" "+S[x],delete S[_],delete S[C],delete S[x]),"medium none"===S.border&&delete S.border,"none"===S["border-image"]&&delete S["border-image"]}return S},serialize:function(e,t){function i(t){var r,i=n[t];if(i)for(var a=0,s=i.length;a<s;a++)t=i[a],(r=e[t])&&(o+=(0<o.length?" ":"")+t+": "+r+";")}var o="";return t&&n?(i("*"),i(t)):ie(e,(function(e,n){var i;!e||r&&((i=r["*"])&&i[n]||(i=r[t])&&i[n])||(o+=(0<o.length?" ":"")+n+": "+e+";")})),o}}}function ui(e){return e instanceof Event||k(e.initEvent)}function ci(e,t,n,r){var i,o,a=function(e){var t,n=null!=r?r:{};for(t in e)Oe(lo,t)||(n[t]=e[t]);return u(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n}(t);return a.type=e,l(a.target)&&(a.target=null!==(i=a.srcElement)&&void 0!==i?i:n),(l((o=t).preventDefault)||ui(o))&&(a.preventDefault=function(){a.defaultPrevented=!0,a.isDefaultPrevented=P,k(t.preventDefault)?t.preventDefault():ui(t)&&(t.returnValue=!1)},a.stopPropagation=function(){a.cancelBubble=!0,a.isPropagationStopped=P,k(t.stopPropagation)?t.stopPropagation():ui(t)&&(t.cancelBubble=!0)},a.stopImmediatePropagation=function(){a.isImmediatePropagationStopped=P,a.stopPropagation()},a.isDefaultPrevented!==P&&a.isDefaultPrevented!==A&&(a.isDefaultPrevented=!0===a.defaultPrevented?P:A,a.isPropagationStopped=!0===a.cancelBubble?P:A,a.isImmediatePropagationStopped=A)),a}function fi(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)}function di(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)}function hi(e,t){var n,r,i,o,a=ci(e.type,e,document,t);return u(o=e)&&uo.test(o.type)&&S(e.pageX)&&!S(e.clientX)&&(r=(n=a.target.ownerDocument||document).documentElement,i=n.body,a.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),a.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),S(a.metaKey)&&(a.metaKey=!1),a}var pi=Mr(["h1","h2","h3","h4","h5","h6"]),mi=Mr(["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"]),gi=Mr(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),vi=Mr(["ul","ol","dl"]),bi=Mr(["li","dd","dt"]),yi=Mr(["thead","tbody","tfoot"]),wi=Mr(["td","th"]),_i=Mr(["pre","script","textarea","style"]),Ci="\ufeff",xi=" ",Si=Ci,ki=function(e){return e===Ci},Di=function(e){return e.replace(/\uFEFF/g,"")},Oi=Hn,Ti=Wn,Ei=function(e){return Ti(e)&&e.data[0]===Si},Ii=function(e){return Ti(e)&&e.data[e.data.length-1]===Si},Ni=Jn,Ai=Zn,Pi=Kn,Mi=Wn,Ri=sn(["script","style","textarea"]),Fi=sn(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Bi=sn(["table"]),Li=$r,$i=function(e){return!1===(Hn(t=e)&&"true"===t.getAttribute("unselectable"))&&Ai(e);var t},Vi=/^[ \t\r\n]*$/,ji=un("data-mce-bookmark"),zi=un("data-mce-bogus"),Hi=function(e){return Hn(e)&&"all"===e.getAttribute("data-mce-bogus")},Ui=function(e,t,n){var r=n||t;if(Hn(t)&&Jr(t))return t;for(var i,o,a,s,l,u,c,f,d,h,p,m=t.childNodes,g=m.length-1;0<=g;g--)Ui(e,m[g],r);return!Hn(t)||1===(i=t.childNodes).length&&Jr(i[0])&&t.parentNode.insertBefore(i[0],t),Yn(a=t)||Gn(a)||Yr(t,r)||Hn(o=t)&&0<o.childNodes.length||(l=r,Wn(s=t)&&0<s.data.length&&(f=new Ar(u=s,c=l).prev(!1),d=new Ar(u,c).next(!1),h=S(f)||Xr(f,c),p=S(d)||Xr(d,c),h&&p))||e.remove(t),t},Wi=Dt.makeMap,qi=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gi=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Yi=/[<>&\"\']/g,Ki=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Xi={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Ji={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},Zi={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},Qi=Zr("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),eo={encodeRaw:Qr,encodeAllRaw:function(e){return(""+e).replace(Yi,(function(e){return Ji[e]||e}))},encodeNumeric:ei,encodeNamed:ti,getEncodeFunc:function(e,t){var n=Zr(t)||Qi,r=Wi(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?qi:Gi,(function(e){return void 0!==Ji[e]?Ji[e]:void 0!==n[e]?n[e]:1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))}:r.named?t?function(e,t){return ti(e,t,n)}:ti:r.numeric?ei:Qr},decode:function(e){return e.replace(Ki,(function(e,t){return t?65535<(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):Xi[t]||String.fromCharCode(t):Zi[e]||Qi[e]||(n=e,(r=Ot.fromTag("div").dom).innerHTML=n,r.textContent||r.innerText||n);var n,r}))}},to={},no={},ro=Dt.makeMap,io=Dt.each,oo=Dt.extend,ao=Dt.explode,so=Dt.inArray,lo={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},uo=/^(?:mouse|contextmenu)|click/,co=(fo.prototype.bind=function(e,t,n,r){function i(e){f.executeHandlers(hi(e||d.event),o)}var o,a,s,l,u,c,f=this,d=window;if(e&&3!==e.nodeType&&8!==e.nodeType){e[f.expando]?o=e[f.expando]:(o=f.count++,e[f.expando]=o,f.events[o]={}),r=r||e;for(var h=t.split(" "),p=h.length;p--;)u=i,l=c=!1,"DOMContentLoaded"===(s=h[p])&&(s="ready"),f.domLoaded&&"ready"===s&&"complete"===e.readyState?n.call(r,hi({type:s})):(f.hasMouseEnterLeave||(l=f.mouseEnterLeave[s])&&(u=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else for(;n&&n!==t;)n=n.parentNode;n||((e=hi(e||d.event)).type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,f.executeHandlers(e,o))}),f.hasFocusIn||"focusin"!==s&&"focusout"!==s||(c=!0,l="focusin"===s?"focus":"blur",u=function(e){(e=hi(e||d.event)).type="focus"===e.type?"focusin":"focusout",f.executeHandlers(e,o)}),(a=f.events[o][s])?"ready"===s&&f.domLoaded?n(hi({type:s})):a.push({func:n,scope:r}):(f.events[o][s]=a=[{func:n,scope:r}],a.fakeName=l,a.capture=c,a.nativeHandler=u,"ready"===s?function(e,t,n){var r,i=e.document,o={type:"ready"};n.domLoaded?t(o):(r=function(){di(e,"DOMContentLoaded",r),di(e,"load",r),n.domLoaded||(n.domLoaded=!0,t(o)),e=null},"complete"===i.readyState||"interactive"===i.readyState&&i.body?r():fi(e,"DOMContentLoaded",r),n.domLoaded||fi(e,"load",r))}(e,u,f):fi(e,l||s,u,c)));return e=a=null,n}},fo.prototype.unbind=function(e,t,n){var r,i,o;if(!e||3===e.nodeType||8===e.nodeType)return this;var a=e[this.expando];if(a){if(o=this.events[a],t){for(var s,l,u,c,f=t.split(" "),d=f.length;d--;)if(c=o[i=f[d]]){if(n)for(r=c.length;r--;)c[r].func===n&&(s=c.nativeHandler,l=c.fakeName,u=c.capture,(c=c.slice(0,r).concat(c.slice(r+1))).nativeHandler=s,c.fakeName=l,c.capture=u,o[i]=c);n&&0!==c.length||(delete o[i],di(e,c.fakeName||i,c.nativeHandler,c.capture))}}else ie(o,(function(t,n){di(e,t.fakeName||n,t.nativeHandler,t.capture)})),o={};for(i in o)if(Oe(o,i))return this;delete this.events[a];try{delete e[this.expando]}catch(t){e[this.expando]=null}}return this},fo.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;for(var i=hi({type:t,target:e},n);(r=e[this.expando])&&this.executeHandlers(i,r),(e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow)&&!i.isPropagationStopped(););return this},fo.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),(e=e.getElementsByTagName?e:e.document)&&e.getElementsByTagName)for(this.unbind(e),t=(n=e.getElementsByTagName("*")).length;t--;)(e=n[t])[this.expando]&&this.unbind(e);return this},fo.prototype.destroy=function(){this.events={}},fo.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},fo.prototype.executeHandlers=function(e,t){var n=this.events[t],r=n&&n[e.type];if(r)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},fo.Event=new fo,fo);function fo(){this.domLoaded=!1,this.events={},this.count=1,this.expando="mce-data-"+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}function ho(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}var po,mo,go,vo,bo,yo,wo,_o,Co,xo,So,ko,Do,Oo,To,Eo,Io,No="sizzle"+-new Date,Ao=window.document,Po=0,Mo=0,Ro=da(),Fo=da(),Bo=da(),Lo=function(e,t){return e===t&&(xo=!0),0},$o="undefined",Vo={}.hasOwnProperty,jo=[],zo=jo.pop,Ho=jo.push,Uo=jo.push,Wo=jo.slice,qo=jo.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},Go="[\\x20\\t\\r\\n\\f]",Yo="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Ko="\\["+Go+"*("+Yo+")(?:"+Go+"*([*^$|!~]?=)"+Go+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Yo+"))|)"+Go+"*\\]",Xo=":("+Yo+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ko+")*)|.*)\\)|)",Jo=new RegExp("^"+Go+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Go+"+$","g"),Zo=new RegExp("^"+Go+"*,"+Go+"*"),Qo=new RegExp("^"+Go+"*([>+~]|"+Go+")"+Go+"*"),ea=new RegExp("="+Go+"*([^\\]'\"]*?)"+Go+"*\\]","g"),ta=new RegExp(Xo),na=new RegExp("^"+Yo+"$"),ra={ID:new RegExp("^#("+Yo+")"),CLASS:new RegExp("^\\.("+Yo+")"),TAG:new RegExp("^("+Yo+"|[*])"),ATTR:new RegExp("^"+Ko),PSEUDO:new RegExp("^"+Xo),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Go+"*(even|odd|(([+-]|)(\\d*)n|)"+Go+"*(?:([+-]|)"+Go+"*(\\d+)|))"+Go+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+Go+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Go+"*((?:-\\d)?\\d*)"+Go+"*\\)|)(?=[^-]|$)","i")},ia=/^(?:input|select|textarea|button)$/i,oa=/^h\d$/i,aa=/^[^{]+\{\s*\[native \w/,sa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,la=/[+~]/,ua=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+Go+"?|("+Go+")|.)","ig");try{Uo.apply(jo=Wo.call(Ao.childNodes),Ao.childNodes),jo[Ao.childNodes.length].nodeType}catch(o){Uo={apply:jo.length?function(e,t){Ho.apply(e,Wo.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var fa=function(e,t,n,r){var i,o,a,s,l,u,c,f,d,h;if((t?t.ownerDocument||t:Ao)!==ko&&So(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=(t=t||ko).nodeType)&&9!==s)return[];if(Oo&&!r){if(i=sa.exec(e))if(a=i[1]){if(9===s){if(!(o=t.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&Io(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return Uo.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&po.getElementsByClassName)return Uo.apply(n,t.getElementsByClassName(a)),n}if(po.qsa&&(!To||!To.test(e))){if(f=c=No,d=t,h=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(u=bo(e),(c=t.getAttribute("id"))?f=c.replace(ua,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",l=u.length;l--;)u[l]=f+ba(u[l]);d=la.test(e)&&ga(t.parentNode)||t,h=u.join(",")}if(h)try{return Uo.apply(n,d.querySelectorAll(h)),n}catch(e){}finally{c||t.removeAttribute("id")}}}return wo(e.replace(Jo,"$1"),t,n,r)};function da(){var e=[];function t(n,r){return e.push(n+" ")>mo.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function ha(e){return e[No]=!0,e}function pa(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ma(e){return ha((function(t){return t=+t,ha((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ga(e){return e&&typeof e.getElementsByTagName!=$o&&e}function va(){}function ba(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ya(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=Mo++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,u=[Po,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(l=t[No]||(t[No]={}))[r])&&s[0]===Po&&s[1]===o)return u[2]=s[2];if((l[r]=u)[2]=e(t,n,a))return!0}}}function wa(e){return 1<e.length?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function _a(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function Ca(e){return void 0!==e}function xa(e){return"string"==typeof e}function Sa(e,t){var n,r=(t=t||Na).createElement("div"),i=t.createDocumentFragment();for(r.innerHTML=e;n=r.firstChild;)i.appendChild(n);return i}function ka(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function Da(e,t,n){var r,i;return t=Ja(t)[0],e.each((function(){n&&r===this.parentNode||(r=this.parentNode,i=t.cloneNode(!1),this.parentNode.insertBefore(i,this)),i.appendChild(this)})),e}function Oa(e,t){return new Ja.fn.init(e,t)}function Ta(e){return null==e?"":(""+e).replace(Ua,"")}function Ea(e,t){var n,r,i,o;if(e)if(void 0===(n=e.length)){for(r in e)if(e.hasOwnProperty(r)&&(o=e[r],!1===t.call(o,r,o)))break}else for(i=0;i<n&&(o=e[i],!1!==t.call(o,i,o));i++);return e}function Ia(e,t){var n=[];return Ea(e,(function(e,r){t(r,e)&&n.push(r)})),n}po=fa.support={},vo=fa.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},So=fa.setDocument=function(e){var t,n=e?e.ownerDocument||e:Ao,r=n.defaultView;return n!==ko&&9===n.nodeType&&n.documentElement?(Do=(ko=n).documentElement,Oo=!vo(n),r&&r!==function(e){try{return e.top}catch(e){}return null}(r)&&(r.addEventListener?r.addEventListener("unload",(function(){So()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){So()}))),po.attributes=!0,po.getElementsByTagName=!0,po.getElementsByClassName=aa.test(n.getElementsByClassName),po.getById=!0,mo.find.ID=function(e,t){if(typeof t.getElementById!=$o&&Oo){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},mo.filter.ID=function(e){var t=e.replace(ca,ho);return function(e){return e.getAttribute("id")===t}},mo.find.TAG=po.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!=$o)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},mo.find.CLASS=po.getElementsByClassName&&function(e,t){if(Oo)return t.getElementsByClassName(e)},Eo=[],To=[],po.disconnectedMatch=!0,To=To.length&&new RegExp(To.join("|")),Eo=Eo.length&&new RegExp(Eo.join("|")),t=aa.test(Do.compareDocumentPosition),Io=t||aa.test(Do.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Lo=t?function(e,t){return e===t?(xo=!0,0):(r=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!po.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===Ao&&Io(Ao,e)?-1:t===n||t.ownerDocument===Ao&&Io(Ao,t)?1:Co?qo.call(Co,e)-qo.call(Co,t):0:4&r?-1:1);var r}:function(e,t){if(e===t)return xo=!0,0;var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:Co?qo.call(Co,e)-qo.call(Co,t):0;if(o===a)return pa(e,t);for(r=e;r=r.parentNode;)s.unshift(r);for(r=t;r=r.parentNode;)l.unshift(r);for(;s[i]===l[i];)i++;return i?pa(s[i],l[i]):s[i]===Ao?-1:l[i]===Ao?1:0},n):ko},fa.matches=function(e,t){return fa(e,null,null,t)},fa.matchesSelector=function(e,t){if((e.ownerDocument||e)!==ko&&So(e),t=t.replace(ea,"='$1']"),po.matchesSelector&&Oo&&(!Eo||!Eo.test(t))&&(!To||!To.test(t)))try{var n=(void 0).call(e,t);if(n||po.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<fa(t,ko,null,[e]).length},fa.contains=function(e,t){return(e.ownerDocument||e)!==ko&&So(e),Io(e,t)},fa.attr=function(e,t){(e.ownerDocument||e)!==ko&&So(e);var n=mo.attrHandle[t.toLowerCase()],r=n&&Vo.call(mo.attrHandle,t.toLowerCase())?n(e,t,!Oo):void 0;return void 0!==r?r:po.attributes||!Oo?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},fa.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},fa.uniqueSort=function(e){var t,n=[],r=0,i=0;if(xo=!po.detectDuplicates,Co=!po.sortStable&&e.slice(0),e.sort(Lo),xo){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return Co=null,e},go=fa.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=go(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=go(t);return n},(mo=fa.selectors={cacheLength:50,createPseudo:ha,match:ra,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ca,ho),e[3]=(e[3]||e[4]||e[5]||"").replace(ca,ho),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||fa.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&fa.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ra.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ta.test(n)&&(t=bo(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ca,ho).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Ro[e+" "];return t||(t=new RegExp("(^|"+Go+")"+e+"("+Go+"|$)"))&&Ro(e,(function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!=$o&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=fa.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1<i.indexOf(n):"$="===t?n&&i.slice(-n.length)===n:"~="===t?-1<(" "+i+" ").indexOf(n):"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,h,p,m=o!=a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),b=!l&&!s;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&b){for(h=(u=(c=g[No]||(g[No]={}))[e]||[])[0]===Po&&u[1],d=u[0]===Po&&u[2],f=h&&g.childNodes[h];f=++h&&f&&f[m]||(d=h=0)||p.pop();)if(1===f.nodeType&&++d&&f===t){c[e]=[Po,h,d];break}}else if(b&&(u=(t[No]||(t[No]={}))[e])&&u[0]===Po)d=u[1];else for(;(f=++h&&f&&f[m]||(d=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(b&&((f[No]||(f[No]={}))[e]=[Po,d]),f!==t)););return(d-=i)===r||d%r==0&&0<=d/r}}},PSEUDO:function(e,t){var n,r=mo.pseudos[e]||mo.setFilters[e.toLowerCase()]||fa.error("unsupported pseudo: "+e);return r[No]?r(t):1<r.length?(n=[e,e,"",t],mo.setFilters.hasOwnProperty(e.toLowerCase())?ha((function(e,n){for(var i,o=r(e,t),a=o.length;a--;)e[i=qo.call(e,o[a])]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:ha((function(e){var t=[],n=[],r=yo(e.replace(Jo,"$1"));return r[No]?ha((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ha((function(e){return function(t){return 0<fa(e,t).length}})),contains:ha((function(e){return e=e.replace(ca,ho),function(t){return-1<(t.textContent||t.innerText||go(t)).indexOf(e)}})),lang:ha((function(e){return na.test(e||"")||fa.error("unsupported lang: "+e),e=e.replace(ca,ho).toLowerCase(),function(t){var n;do{if(n=Oo?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Do},focus:function(e){return e===ko.activeElement&&(!ko.hasFocus||ko.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!mo.pseudos.empty(e)},header:function(e){return oa.test(e.nodeName)},input:function(e){return ia.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ma((function(){return[0]})),last:ma((function(e,t){return[t-1]})),eq:ma((function(e,t,n){return[n<0?n+t:n]})),even:ma((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ma((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ma((function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e})),gt:ma((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=mo.pseudos.eq,V(["radio","checkbox","file","password","image"],(function(e){var t;mo.pseudos[e]=(t=e,function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t})})),V(["submit","reset"],(function(e){var t;mo.pseudos[e]=(t=e,function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t})})),va.prototype=mo.filters=mo.pseudos,mo.setFilters=new va,bo=fa.tokenize=function(e,t){var n,r,i,o,a,s,l,u=Fo[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=mo.preFilter;a;){for(o in n&&!(r=Zo.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=Qo.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(Jo," ")}),a=a.slice(n.length)),mo.filter)mo.filter.hasOwnProperty(o)&&(!(r=ra[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?fa.error(e):Fo(e,s).slice(0)},yo=fa.compile=function(e,t){var n,r,i,o,a,s=[],l=[],u=Bo[e+" "];if(!u){for(n=(t=t||bo(e)).length;n--;)((u=function e(t){for(var n,r,i,o=t.length,a=mo.relative[t[0].type],s=a||mo.relative[" "],l=a?1:0,u=ya((function(e){return e===n}),s,!0),c=ya((function(e){return-1<qo.call(n,e)}),s,!0),f=[function(e,t,r){var i=!a&&(r||t!==_o)||((n=t).nodeType?u:c)(e,t,r);return n=null,i}];l<o;l++)if(r=mo.relative[t[l].type])f=[ya(wa(f),r)];else{if((r=mo.filter[t[l].type].apply(null,t[l].matches))[No]){for(i=++l;i<o&&!mo.relative[t[i].type];i++);return function e(t,n,r,i,o,a){return i&&!i[No]&&(i=e(i)),o&&!o[No]&&(o=e(o,a)),ha((function(e,a,s,l){var u,c,f,d=[],h=[],p=a.length,m=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)fa(e,t[r],n);return n}(n||"*",s.nodeType?[s]:s,[]),g=!t||!e&&n?m:_a(m,d,t,s,l),v=r?o||(e?t:p||i)?[]:a:g;if(r&&r(g,v,s,l),i)for(u=_a(v,h),i(u,[],s,l),c=u.length;c--;)(f=u[c])&&(v[h[c]]=!(g[h[c]]=f));if(e){if(o||t){if(o){for(u=[],c=v.length;c--;)(f=v[c])&&u.push(g[c]=f);o(null,v=[],u,l)}for(c=v.length;c--;)(f=v[c])&&-1<(u=o?qo.call(e,f):d[c])&&(e[u]=!(a[u]=f))}}else v=_a(v===a?v.splice(p,v.length):v),o?o(null,a,v,l):Uo.apply(a,v)}))}(1<l&&wa(f),1<l&&ba(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(Jo,"$1"),r,l<i&&e(t.slice(l,i)),i<o&&e(t=t.slice(i)),i<o&&ba(t))}f.push(r)}return wa(f)}(t[n]))[No]?s:l).push(u);(u=Bo(e,(r=l,o=0<(i=s).length,a=0<r.length,o?ha(c):c))).selector=e}function c(e,t,n,s,l){var u,c,f,d=0,h="0",p=e&&[],m=[],g=_o,v=e||a&&mo.find.TAG("*",l),b=Po+=null==g?1:Math.random()||.1,y=v.length;for(l&&(_o=t!==ko&&t);h!==y&&null!=(u=v[h]);h++){if(a&&u){for(c=0;f=r[c++];)if(f(u,t,n)){s.push(u);break}l&&(Po=b)}o&&((u=!f&&u)&&d--,e&&p.push(u))}if(d+=h,o&&h!==d){for(c=0;f=i[c++];)f(p,m,t,n);if(e){if(0<d)for(;h--;)p[h]||m[h]||(m[h]=zo.call(s));m=_a(m)}Uo.apply(s,m),l&&!e&&0<m.length&&1<d+i.length&&fa.uniqueSort(s)}return l&&(Po=b,_o=g),p}return u},wo=fa.select=function(e,t,n,r){var i,o,a,s,l,u="function"==typeof e&&e,c=!r&&bo(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&po.getById&&9===t.nodeType&&Oo&&mo.relative[o[1].type]){if(!(t=(mo.find.ID(a.matches[0].replace(ca,ho),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=ra.needsContext.test(e)?0:o.length;i--&&(a=o[i],!mo.relative[s=a.type]);)if((l=mo.find[s])&&(r=l(a.matches[0].replace(ca,ho),la.test(o[0].type)&&ga(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&ba(o)))return Uo.apply(n,r),n;break}}return(u||yo(e,c))(r,t,!Oo,n,la.test(e)&&ga(t.parentNode)||t),n},po.sortStable=No.split("").sort(Lo).join("")===No,po.detectDuplicates=!!xo,So(),po.sortDetached=!0;var Na=document,Aa=Array.prototype.push,Pa=Array.prototype.slice,Ma=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Ra=co.Event,Fa=Dt.makeMap("children,contents,next,prev"),Ba=function(e,t,n,r){var i;if(xa(t))t=Sa(t,Wa(e[0]));else if(t.length&&!t.nodeType){if(t=Ja.makeArray(t),r)for(i=t.length-1;0<=i;i--)Ba(e,t[i],n,r);else for(i=0;i<t.length;i++)Ba(e,t[i],n,r);return e}if(t.nodeType)for(i=e.length;i--;)n.call(e[i],t);return e},La=Dt.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),$a=Dt.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),Va={for:"htmlFor",class:"className",readonly:"readOnly"},ja={float:"cssFloat"},za={},Ha={},Ua=/^\s*|\s*$/g,Wa=function(e){return e?9===e.nodeType?e:e.ownerDocument:Na};function qa(e,t,n){var r=[],i=e[t];for("string"!=typeof n&&n instanceof Ja&&(n=n[0]);i&&9!==i.nodeType;){if(void 0!==n){if(i===n)break;if("string"==typeof n&&Ja(i).is(n))break}1===i.nodeType&&r.push(i),i=i[t]}return r}function Ga(e,t,n,r){var i=[];for(r instanceof Ja&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"==typeof r&&Ja(e).is(r))break}i.push(e)}return i}function Ya(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null}function Ka(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName)||null;t.attr("data-mce-style",r)}function Xa(e,t){var n,r,i=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(i++,n=r);return i}Oa.fn=Oa.prototype={constructor:Oa,selector:"",context:null,length:0,init:function(e,t){var n,r,i=this;if(!e)return i;if(e.nodeType)return i.context=i[0]=e,i.length=1,i;if(t&&t.nodeType)i.context=t;else{if(t)return Ja(e).attr(t);i.context=t=document}if(xa(e)){if(!(n="<"===(i.selector=e).charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Ma.exec(e)))return Ja(t).find(e);if(n[1])for(r=Sa(e,Wa(t)).firstChild;r;)Aa.call(i,r),r=r.nextSibling;else{if(!(r=Wa(t).getElementById(n[2])))return i;if(r.id!==n[2])return i.find(e);i.length=1,i[0]=r}}else this.add(e,!1);return i},toArray:function(){return Dt.toArray(this)},add:function(e,t){var n,r;if(xa(e))return this.add(Ja(e));if(!1!==t)for(n=Ja.unique(this.toArray().concat(Ja.makeArray(e))),this.length=n.length,r=0;r<n.length;r++)this[r]=n[r];else Aa.apply(this,Ja.makeArray(e));return this},attr:function(e,t){var n,r=this;if("object"==typeof e)Ea(e,(function(e,t){r.attr(e,t)}));else{if(!Ca(t)){if(r[0]&&1===r[0].nodeType){if((n=za[e])&&n.get)return n.get(r[0],e);if($a[e])return r.prop(e)?e:void 0;null===(t=r[0].getAttribute(e,2))&&(t=void 0)}return t}this.each((function(){var n;1===this.nodeType&&((n=za[e])&&n.set?n.set(this,t):null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2))}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if("object"==typeof(e=Va[e]||e))Ea(e,(function(e,t){n.prop(e,t)}));else{if(!Ca(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each((function(){1===this.nodeType&&(this[e]=t)}))}return n},css:function(e,t){function n(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))}function r(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))}var i,o,a=this;if("object"==typeof e)Ea(e,(function(e,t){a.css(e,t)}));else if(Ca(t))e=n(e),"number"!=typeof t||La[e]||(t=t.toString()+"px"),a.each((function(){var n=this.style;if((o=Ha[e])&&o.set)o.set(this,t);else{try{this.style[ja[e]||e]=t}catch(n){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(r(e)):n.removeAttribute(e))}}));else{if(i=a[0],(o=Ha[e])&&o.get)return o.get(i);if(!i.ownerDocument.defaultView)return i.currentStyle?i.currentStyle[n(e)]:"";try{return i.ownerDocument.defaultView.getComputedStyle(i,null).getPropertyValue(r(e))}catch(n){return}}return a},remove:function(){for(var e,t=this.length;t--;)e=this[t],Ra.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var e,t=this.length;t--;)for(e=this[t];e.firstChild;)e.removeChild(e.firstChild);return this},html:function(e){var t;if(Ca(e)){t=this.length;try{for(;t--;)this[t].innerHTML=e}catch(o){Ja(this[t]).empty().append(e)}return this}return this[0]?this[0].innerHTML:""},text:function(e){var t;if(Ca(e)){for(t=this.length;t--;)"innerText"in this[t]?this[t].innerText=e:this[0].textContent=e;return this}return this[0]?this[0].innerText||this[0].textContent:""},append:function(){return Ba(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return Ba(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){return this[0]&&this[0].parentNode?Ba(this,arguments,(function(e){this.parentNode.insertBefore(e,this)})):this},after:function(){return this[0]&&this[0].parentNode?Ba(this,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):this},appendTo:function(e){return Ja(e).append(this),this},prependTo:function(e){return Ja(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return Da(this,e)},wrapAll:function(e){return Da(this,e,!0)},wrapInner:function(e){return this.each((function(){Ja(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Ja(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Ja(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!=typeof e||(-1!==e.indexOf(" ")?Ea(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var i,o=ka(r,e);o!==t&&(i=r.className,o?r.className=Ta((" "+i+" ").replace(" "+e+" "," ")):r.className+=i?" "+e:e)}))),n},hasClass:function(e){return ka(this[0],e)},each:function(e){return Ea(this,e)},on:function(e,t){return this.each((function(){Ra.bind(this,e,t)}))},off:function(e,t){return this.each((function(){Ra.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"==typeof e?Ra.fire(this,e.type,e):Ra.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Ja(Pa.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){for(var t=[],n=0,r=this.length;n<r;n++)Ja.find(e,this[n],t);return Ja(t)},filter:function(e){return Ja("function"==typeof e?Ia(this.toArray(),(function(t,n){return e(n,t)})):Ja.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Ja&&(e=e[0]),this.each((function(n,r){for(;r;){if("string"==typeof e&&Ja(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Ja(t)},offset:function(e){var t,n,r,i,o=0,a=0;return e?this.css(e):((t=this[0])&&(r=(n=t.ownerDocument).documentElement,t.getBoundingClientRect&&(o=(i=t.getBoundingClientRect()).left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=i.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:o,top:a})},push:Aa,sort:Array.prototype.sort,splice:Array.prototype.splice},Dt.extend(Oa,{extend:Dt.extend,makeArray:function(e){return e&&e===e.window||e.nodeType?[e]:Dt.toArray(e)},inArray:function(e,t){var n;if(t.indexOf)return t.indexOf(e);for(n=t.length;n--;)if(t[n]===e)return n;return-1},isArray:Dt.isArray,each:Ea,trim:Ta,grep:Ia,find:fa,expr:fa.selectors,unique:fa.uniqueSort,text:fa.getText,contains:fa.contains,filter:function(e,t,n){var r=t.length;for(n&&(e=":not("+e+")");r--;)1!==t[r].nodeType&&t.splice(r,1);return 1===t.length?Ja.find.matchesSelector(t[0],e)?[t[0]]:[]:Ja.find.matches(e,t)}}),Ea({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return qa(e,"parentNode")},next:function(e){return Ya(e,"nextSibling",1)},prev:function(e){return Ya(e,"previousSibling",1)},children:function(e){return Ga(e.firstChild,"nextSibling",1)},contents:function(e){return Dt.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){Oa.fn[e]=function(n){var r=[];this.each((function(){var e=t.call(r,this,n,r);e&&(Ja.isArray(e)?r.push.apply(r,e):r.push(e))})),1<this.length&&(Fa[e]||(r=Ja.unique(r)),0===e.indexOf("parents")&&(r=r.reverse()));var i=Ja(r);return n?i.filter(n):i}})),Ea({parentsUntil:function(e,t){return qa(e,"parentNode",t)},nextUntil:function(e,t){return Ga(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Ga(e,"previousSibling",1,t).slice(1)}},(function(e,t){Oa.fn[e]=function(n,r){var i=[];this.each((function(){var e=t.call(i,this,n,i);e&&(Ja.isArray(e)?i.push.apply(i,e):i.push(e))})),1<this.length&&(i=Ja.unique(i),0!==e.indexOf("parents")&&"prevUntil"!==e||(i=i.reverse()));var o=Ja(i);return r?o.filter(r):o}})),Oa.fn.is=function(e){return!!e&&0<this.filter(e).length},Oa.fn.init.prototype=Oa.fn,Oa.overrideDefaults=function(e){var t,n=function(r,i){return t=t||e(),0===arguments.length&&(r=t.element),i=i||t.context,new n.fn.init(r,i)};return Ja.extend(n,this),n},Oa.attrHooks=za,Oa.cssHooks=Ha;var Ja=Oa,Za=Dt.each,Qa=Dt.grep,es=xt.ie,ts=/^([a-z0-9],?)+$/i,ns=function(e,t){function n(t){return t&&e&&y(t)?e.getElementById(t):t}function r(e){return q("string"==typeof e?n(e):e)}function i(e,t,n){var i,o,a=r(e);return void 0===(o=a.length?(i=J[t])&&i.get?i.get(a,t):a.attr(t):o)?n||"":o}function o(e){var t=n(e);return t?t.attributes:[]}function a(e,n,i){""===i&&(i=null);var o,a=r(e),s=a.attr(n);a.length&&((o=J[n])&&o.set?o.set(a,i,n):a.attr(n,i),s!==i&&t.onSetAttrib&&t.onSetAttrib({attrElm:a,attrName:n,attrValue:i}))}function s(){return t.root_element||e.body}function u(t,r){return function(e,t,n){var r,i=0,o=0,a=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Sn(Ot.fromDom(e),"position")){var s=t.getBoundingClientRect();return{x:i=s.left+(a.documentElement.scrollLeft||e.scrollLeft)-a.documentElement.clientLeft,y:o=s.top+(a.documentElement.scrollTop||e.scrollTop)-a.documentElement.clientTop}}for(var l=t;l&&l!==n&&l.nodeType&&!Tn(l,n);){var u=l;i+=u.offsetLeft||0,o+=u.offsetTop||0,l=u.offsetParent}for(l=t.parentNode;l&&l!==n&&l.nodeType&&!Tn(l,n);)i-=l.scrollLeft||0,o-=l.scrollTop||0,l=l.parentNode;o+=(r=Ot.fromDom(t),nr.isFirefox()&&"table"===Tt(r)?On(Pn(r)).filter((function(e){return"caption"===Tt(e)})).bind((function(e){return On(Lt(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,i=e.dom.offsetHeight;return n<=r?-i:0}))})).getOr(0):0)}return{x:i,y:o}}(e.body,n(t),r)}function f(e,t,n){var i=r(e);return n?i.css(t):("float"===(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})))&&(t=xt.browser.isIE()?"styleFloat":"cssFloat"),i[0]&&i[0].style?i[0].style[t]:void 0)}function d(e){var t=f(e=n(e),"width"),r=f(e,"height");return-1===t.indexOf("px")&&(t=0),-1===r.indexOf("px")&&(r=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(r,10)||e.offsetHeight||e.clientHeight}}function p(e,t){if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(ts.test(t)){for(var n=t.toLowerCase().split(/,/),r=e.nodeName.toLowerCase(),i=n.length-1;0<=i;i--)if(n[i]===r)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var o=Array.isArray(e)?e:[e];return 0<fa(t,o[0].ownerDocument||o[0],null,o).length}function m(e,t,r,i){var o,a=[],u=n(e);for(i=void 0===i,r=r||("BODY"!==s().nodeName?s().parentNode:null),Dt.is(t,"string")&&(t="*"===(o=t)?function(e){return 1===e.nodeType}:function(e){return p(e,o)});u&&!(u===r||l(u.nodeType)||Gn(u)||Yn(u));){if(!t||"function"==typeof t&&t(u)){if(!i)return[u];a.push(u)}u=u.parentNode}return i?a:null}function g(e,t,n){var r=t;if(e)for("string"==typeof t&&(r=function(e){return p(e,t)}),e=e[n];e;e=e[n])if("function"==typeof r&&r(e))return e;return null}function v(e,t,r){var i,o="string"==typeof e?n(e):e;return!!o&&(Dt.isArray(o)&&(o.length||0===o.length)?(i=[],Za(o,(function(e,o){e&&i.push(t.call(r,"string"==typeof e?n(e):e,o))})),i):t.call(r||this,o))}function b(e,t){r(e).each((function(e,n){Za(t,(function(e,t){a(n,t,e)}))}))}function w(e,t){var n=r(e);es?n.each((function(e,n){if(!1!==n.canHaveHTML){for(;n.firstChild;)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(e){Ja("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)}function _(t,n,r,i,o){return v(t,(function(t){var a="string"==typeof n?e.createElement(n):n;return b(a,r),i&&("string"!=typeof i&&i.nodeType?a.appendChild(i):"string"==typeof i&&w(a,i)),o?a:t.appendChild(a)}))}function C(t,n,r){return _(e.createElement(t),t,n,r,!0)}function x(e,t){var n=r(e);return(t?n.each((function(){for(var e;e=this.firstChild;)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})):n).remove(),1<n.length?n.toArray():n[0]}function S(e,t,n){r(e).toggleClass(t,n).each((function(){""===this.className&&Ja(this).attr("class",null)}))}function k(e,t,n){return v(t,(function(t){return Dt.is(t,"array")&&(e=e.cloneNode(!0)),n&&Za(Qa(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))}function D(e){if(Hn(e)){var t="a"===e.nodeName.toLowerCase()&&!i(e,"href")&&i(e,"id");return i(e,"name")||i(e,"data-mce-bookmark")||t?1:void 0}}function O(){return e.createRange()}function T(e){if(e&&Hn(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null}void 0===t&&(t={});var E,I,N,A,P,M,R={},F=window,B={},L=0,$=Nr.forElement(Ot.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),j=[],z=t.schema||ai({}),H=li({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),U=t.ownEvents?new co:co.Event,W=z.getBlockElements(),q=Ja.overrideDefaults((function(){return{context:e,element:X.getRoot()}})),G=eo.encodeAllRaw,Y=function(n,r,i,o){if(Dt.isArray(n)){for(var a=n.length,s=[];a--;)s[a]=Y(n[a],r,i,o);return s}return!t.collect||n!==e&&n!==F||j.push([n,r,i,o]),U.bind(n,r,i,o||X)},K=function(t,n,r){if(Dt.isArray(t)){for(var i=t.length,o=[];i--;)o[i]=K(t[i],n,r);return o}if(0<j.length&&(t===e||t===F))for(i=j.length;i--;){var a=j[i];t!==a[0]||n&&n!==a[1]||r&&r!==a[2]||U.unbind(a[0],a[1],a[2])}return U.unbind(t,n,r)},X={doc:e,settings:t,win:F,files:B,stdMode:!0,boxModel:!0,styleSheetLoader:$,boundEvents:j,styles:H,schema:z,events:U,isBlock:function(e){if("string"==typeof e)return!!W[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!W[e.nodeName])}return!1},$:q,$$:r,root:null,clone:function(t,n){if(!es||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return Za(o(t),(function(e){a(r,e.nodeName,i(t,e.nodeName))})),r},getRoot:s,getViewPort:function(e){var t=rn(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},getRect:function(e){var t=u(e=n(e)),r=d(e);return{x:t.x,y:t.y,w:r.w,h:r.h}},getSize:d,getParent:function(e,t,n){var r=m(e,t,n,!1);return r&&0<r.length?r[0]:null},getParents:m,get:n,getNext:function(e,t){return g(e,t,"nextSibling")},getPrev:function(e,t){return g(e,t,"previousSibling")},select:function(r,i){return fa(r,n(i)||t.root_element||e,[])},is:p,add:_,create:C,createHTML:function(e,t,n){var r,i="";for(r in i+="<"+e,t)ce(t,r)&&(i+=" "+r+'="'+G(t[r])+'"');return void 0!==n?i+">"+n+"</"+e+">":i+" />"},createFragment:function(t){var n,r=e.createElement("div"),i=e.createDocumentFragment();for(i.appendChild(r),t&&(r.innerHTML=t);n=r.firstChild;)i.appendChild(n);return i.removeChild(r),i},remove:x,setStyle:function(e,n,i){var o=y(n)?r(e).css(n,i):r(e).css(n);t.update_styles&&Ka(H,o)},getStyle:f,setStyles:function(e,n){var i=r(e).css(n);t.update_styles&&Ka(H,i)},removeAllAttribs:function(e){return v(e,(function(e){for(var t=e.attributes,n=t.length-1;0<=n;n--)e.removeAttributeNode(t.item(n))}))},setAttrib:a,setAttribs:b,getAttrib:i,getPos:u,parseStyle:function(e){return H.parse(e)},serializeStyle:function(e,t){return H.serialize(e,t)},addStyle:function(t){var n,r;if(X!==ns.DOM&&e===document){if(R[t])return;R[t]=!0}(r=e.getElementById("mceDefaultStyles"))||((r=e.createElement("style")).id="mceDefaultStyles",r.type="text/css",(n=e.getElementsByTagName("head")[0]).firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r)),r.styleSheet?r.styleSheet.cssText+=t:r.appendChild(e.createTextNode(t))},loadCSS:function(e){V((e=e||"").split(","),(function(e){B[e]=!0,$.load(e,c)}))},addClass:function(e,t){r(e).addClass(t)},removeClass:function(e,t){S(e,t,!1)},hasClass:function(e,t){return r(e).hasClass(t)},toggleClass:S,show:function(e){r(e).show()},hide:function(e){r(e).hide()},isHidden:function(e){return"none"===r(e).css("display")},uniqueId:function(e){return(e||"mce_")+L++},setHTML:w,getOuterHTML:function(e){var t="string"==typeof e?n(e):e;return Hn(t)?t.outerHTML:Ja("<div></div>").append(Ja(t).clone()).html()},setOuterHTML:function(e,t){r(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}x(Ja(this).html(t),!0)}))},decode:eo.decode,encode:G,insertAfter:function(e,t){var r=n(t);return v(e,(function(e){var t=r.parentNode,n=r.nextSibling;return n?t.insertBefore(e,n):t.appendChild(e),e}))},replace:k,rename:function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=C(t),Za(o(e),(function(t){a(n,t.nodeName,i(e,t.nodeName))})),k(n,e,!0)),n||e},findCommonAncestor:function(e,t){for(var n,r=e;r;){for(n=t;n&&r!==n;)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},toHex:function(e){return H.toHex(Dt.trim(e))},run:v,getAttribs:o,isEmpty:function(e,t){var n,r,i=0;if(D(e))return!1;if(e=e.firstChild){var o=new Ar(e,e.parentNode),a=z?z.getWhiteSpaceElements():{};t=t||(z?z.getNonEmptyElements():null);do{if(n=e.nodeType,Hn(e)){var s=e.getAttribute("data-mce-bogus");if(s){e=o.next("all"===s);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"!==r)return!1;i++,e=o.next();continue}if(D(e))return!1}if(8===n)return!1;if(3===n&&!Gr(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Gr(e.nodeValue))return!1;e=o.next()}while(e)}return i<=1},createRng:O,nodeIndex:Xa,split:function(e,t,n){var r,i,o,a=O();if(e&&t)return a.setStart(e.parentNode,Xa(e)),a.setEnd(t.parentNode,Xa(t)),r=a.extractContents(),(a=O()).setStart(t.parentNode,Xa(t)+1),a.setEnd(e.parentNode,Xa(e)+1),i=a.extractContents(),(o=e.parentNode).insertBefore(Ui(X,r),e),n?o.insertBefore(n,e):o.insertBefore(t,e),o.insertBefore(Ui(X,i),e),x(e),n||t},bind:Y,unbind:K,fire:function(e,t,n){return U.fire(e,t,n)},getContentEditable:T,getContentEditableParent:function(e){for(var t=s(),n=null;e&&e!==t&&null===(n=T(e));e=e.parentNode);return n},destroy:function(){if(0<j.length)for(var e=j.length;e--;){var t=j[e];U.unbind(t[0],t[1],t[2])}ie(B,(function(e,t){$.unload(t),delete B[t]})),fa.setDocument&&fa.setDocument()},isChildOf:function(e,t){if(es){for(;e;){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},dumpRng:function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset}},J=(E=H,N=h(X),P={set:function(e,t,n){I.url_converter&&null!==t&&(t=I.url_converter.call(I.url_converter_scope||N(),t,n,e[0])),e.attr("data-mce-"+n,t).attr(n,t)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},M={style:{set:function(e,t){null===t||"object"!=typeof t?(A&&e.attr("data-mce-style",t),null!==t&&"string"==typeof t?(e.removeAttr("style"),e.css(E.parse(t))):e.attr("style",t)):e.css(t)},get:function(e){var t=e.attr("data-mce-style")||e.attr("style");return E.serialize(E.parse(t),e[0].nodeName)}}},(A=(I=t).keep_values)&&(M.href=M.src=P),M);return X};ns.DOM=ns(document),ns.nodeIndex=Xa;var rs=ns.DOM,is=Dt.each,os=Dt.grep,as=(ss.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},ss.prototype.loadScript=function(e,t,n){function r(){i.remove(o),a&&(a.onerror=a.onload=a=null)}var i=rs,o=i.uniqueId(),a=document.createElement("script");a.id=o,a.type="text/javascript",a.src=Dt._addCacheSuffix(e),this.settings.referrerPolicy&&i.setAttrib(a,"referrerpolicy",this.settings.referrerPolicy),a.onload=function(){r(),t()},a.onerror=function(){r(),k(n)?n():"undefined"!=typeof console&&console.log&&console.log("Failed to load script: "+e)},(document.getElementsByTagName("head")[0]||document.body).appendChild(a)},ss.prototype.isDone=function(e){return 2===this.states[e]},ss.prototype.markDone=function(e){this.states[e]=2},ss.prototype.add=function(e,t,n,r){var i=this.states[e];this.queue.push(e),void 0===i&&(this.states[e]=0),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},ss.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},ss.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},ss.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},ss.prototype.loadScripts=function(e,t,n,r){function i(e,t){is(o.scriptLoadedCallbacks[t],(function(t){k(t[e])&&t[e].call(t.scope)})),o.scriptLoadedCallbacks[t]=void 0}var o=this,a=[];o.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var s=function(){var t,n=os(e);e.length=0,is(n,(function(e){2!==o.states[e]?3!==o.states[e]?1!==o.states[e]&&(o.states[e]=1,o.loading++,o.loadScript(e,(function(){o.states[e]=2,o.loading--,i("success",e),s()}),(function(){o.states[e]=3,o.loading--,a.push(e),i("failure",e),s()}))):i("failure",e):i("success",e)})),o.loading||(t=o.queueLoadedCallbacks.slice(0),o.queueLoadedCallbacks.length=0,is(t,(function(e){0===a.length?k(e.success)&&e.success.call(e.scope):k(e.failure)&&e.failure.call(e.scope,a)})))};s()},ss.ScriptLoader=new ss,ss);function ss(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}function ls(e){var t=e;return{get:function(){return t},set:function(e){t=e}}}function us(){return ue(cs,fs.get())}var cs={},fs=ls("en"),ds={getData:function(){return oe(cs,(function(e){return Ee({},e)}))},setCode:function(e){e&&fs.set(e)},getCode:function(){return fs.get()},add:function(e,t){var n=cs[e];n||(cs[e]=n={}),ie(t,(function(e,t){n[t.toLowerCase()]=e}))},translate:function(e){function t(e){return k(e)?Object.prototype.toString.call(e):s(e)?"":""+e}function n(e){var n=t(e);return ue(a,n.toLowerCase()).map(t).getOr(n)}function r(e){return e.replace(/{context:\w+}$/,"")}var i,o,a=us().getOr({}),s=function(e){return""===e||null==e};if(s(e))return"";if(w(i=e)&&Oe(i,"raw"))return t(e.raw);if(_(o=e)&&1<o.length){var l=e.slice(1);return r(n(e[0]).replace(/\{([0-9]+)\}/g,(function(e,n){return Oe(l,n)?t(l[n]):e})))}return r(n(e))},isRtl:function(){return us().bind((function(e){return ue(e,"_dir")})).exists((function(e){return"rtl"===e}))},hasCode:function(e){return Oe(cs,e)}},hs=function(){function e(e,t){V(H(s,(function(n){return n.name===e&&n.state===t})),(function(e){return e.callback()}))}function t(e){var t;return(a[e]?a[e].dependencies:t)||[]}function n(e,t){return"object"==typeof t?t:"string"==typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}}function r(e,t,n){void 0===n&&(n="added"),Oe(a,e)&&"added"===n||Oe(o,e)&&"loaded"===n?t():s.push({name:e,state:n,callback:t})}var i=[],o={},a={},s=[],l=function(r,i,s,u,c){var f,d;o[r]||(0!==(f="string"==typeof i?i:i.prefix+i.resource+i.suffix).indexOf("/")&&-1===f.indexOf("://")&&(f=hs.baseURL+"/"+f),o[r]=f.substring(0,f.lastIndexOf("/")),d=function(){var o,a,c;e(r,"loaded"),o=i,a=s,c=u,V(t(r),(function(e){var t=n(o,e);l(t.resource,t,void 0,void 0)})),a&&(c?a.call(c):a.call(as))},a[r]?d():as.ScriptLoader.add(f,d,u,c))};return{items:i,urls:o,lookup:a,_listeners:s,get:function(e){if(a[e])return a[e].instance},dependencies:t,requireLangPack:function(e,t){!1!==hs.languageLoad&&r(e,(function(){var n=ds.getCode();!n||t&&-1===(","+(t||"")+",").indexOf(","+n+",")||as.ScriptLoader.add(o[e]+"/langs/"+n+".js")}),"loaded")},add:function(t,n,r){var o=n;return i.push(o),a[t]={instance:o,dependencies:r},e(t,"added"),o},remove:function(e){delete o[e],delete a[e]},createUrl:n,addComponents:function(e,t){var n=o[e];V(t,(function(e){as.ScriptLoader.add(n+"/"+e)}))},load:l,waitFor:r}};function ps(){var e,t,n=(e=c,t=ls(ye.none()),{clear:function(){r(),t.set(ye.none())},isSet:function(){return t.get().isSome()},get:function(){return t.get()},set:function(e){r(),t.set(ye.some(e))}});function r(){return t.get().each(e)}return Ee(Ee({},n),{on:function(e){return n.get().each(e)}})}function ms(e,t){var n=null;return{cancel:function(){C(n)||(clearTimeout(n),n=null)},throttle:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];C(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))}}}function gs(e,t){function n(){C(r)||(clearTimeout(r),r=null)}var r=null;return{cancel:n,throttle:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n(),r=setTimeout((function(){r=null,e.apply(null,i)}),t)}}}function vs(e,t){var n=yn(e,t);return void 0===n||""===n?[]:n.split(" ")}function bs(e){return void 0!==e.dom.classList}function ys(e,t){var n,r,i;bs(e)?e.dom.classList.add(t):(r=t,i=vs(n=e,"class").concat([r]),vn(n,"class",i.join(" ")))}function ws(e,t){return bs(e)&&e.dom.classList.contains(t)}function _s(e,t){return He(n=void 0===e?document:e.dom)?[]:$(n.querySelectorAll(t),Ot.fromDom);var n}function Cs(e,t){function n(e,t){return _n(e,t)?ye.some(yn(e,t)):ye.none()}var r=e.selection.getRng(),i=Ot.fromDom(r.startContainer),o=Ot.fromDom(e.getBody()),a=t.fold((function(){return"."+Gs()}),(function(e){return"["+Ys()+'="'+e+'"]'}));return _r($t(i,r.startOffset).getOr(i),a,(function(e){return Ue(e,o)})).bind((function(t){return n(t,""+Ks()).bind((function(r){return n(t,""+Ys()).map((function(t){var n=Xs(e,r);return{uid:r,name:t,elements:n}}))}))}))}function xs(e){function t(){return{listeners:[],previous:ps()}}function n(e,t){r(e,(function(e){return t(e),e}))}function r(e,n){var r=i.get(),o=n(ue(r,e).getOrThunk(t));r[e]=o,i.set(r)}var i=ls({}),o=gs((function(){var t=i.get();V(Q(Se(t)),(function(t){r(t,(function(r){var i=r.previous.get();return Cs(e,ye.some(t)).fold((function(){var e;i.isSome()&&(n(e=t,(function(t){V(t.listeners,(function(t){return t(!1,e)}))})),r.previous.clear())}),(function(e){var t,o,a,s=e.uid,l=e.name,u=e.elements;hn(i,s)||(o=s,a=u,n(t=l,(function(e){V(e.listeners,(function(e){return e(!0,t,{uid:o,nodes:$(a,(function(e){return e.dom}))})}))})),r.previous.set(s))})),{previous:r.previous,listeners:r.listeners}}))}))}),30);return e.on("remove",(function(){o.cancel()})),e.on("NodeChange",(function(){o.throttle()})),{addListener:function(e,t){r(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))}}}function Ss(e){var t=(new Date).getTime();return e+"_"+Math.floor(1e9*Math.random())+ ++Js+String(t)}function ks(e,t){var n,r,i=Nt(e).dom,o=Ot.fromDom(i.createDocumentFragment());Kt(o,(n=t,(r=(i||document).createElement("div")).innerHTML=n,Pn(Ot.fromDom(r)))),Xt(e),Bn(e,o)}function Ds(e,t){return Ot.fromDom(e.dom.cloneNode(t))}function Os(e){return Ds(e,!1)}function Ts(e){return Ds(e,!0)}function Es(e,t,n){function r(e){for(var t;(t=i[e]())&&!Wn(t)&&!n(t););return ye.from(t).filter(Wn)}void 0===n&&(n=A);var i=new Ar(e,t);return{current:function(){return ye.from(i.current()).filter(Wn)},next:function(){return r("next")},prev:function(){return r("prev")},prev2:function(){return r("prev2")}}}function Is(e,t){var n=t||function(t){return e.isBlock(t)||Kn(t)||Zn(t)},r=function(e,t,n,i){if(Wn(e)){var o=i(e,t,e.data);if(-1!==o)return ye.some({container:e,offset:o})}return n().bind((function(e){return r(e.container,e.offset,n,i)}))};return{backwards:function(e,t,i,o){var a=Es(e,o,n);return r(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),i).getOrNull()},forwards:function(e,t,i,o){var a=Es(e,o,n);return r(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),i).getOrNull()}}}function Ns(e){return e?{left:Zs(e.left),top:Zs(e.top),bottom:Zs(e.bottom),right:Zs(e.right),width:Zs(e.width),height:Zs(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}}function As(e,t){return e=Ns(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e}function Ps(e,t,n){return 0<=e&&e<=Math.min(t.height,n.height)/2}function Ms(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&Ps(t.top-e.bottom,e,t)}function Rs(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&Ps(t.bottom-e.top,e,t)}function Fs(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function Bs(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null}function Ls(e,t){if(Hn(e)&&e.hasChildNodes()){var n=e.childNodes;return n[(r=n.length-1,Math.min(Math.max(t,0),r))]}return e;var r}function $s(e){return"string"==typeof e&&768<=e.charCodeAt(0)&&Qs.test(e)}function Vs(e){return"createRange"in e?e.createRange():ns.DOM.createRng()}function js(e){return e&&/[\r\n\t ]/.test(e)}function zs(e){return e.setStart&&e.setEnd}function Hs(e){var t=e.startContainer,n=e.startOffset;if(js(e.toString())&&ol(t.parentNode)&&Wn(t)){var r=t.data;return js(r[n-1])||js(r[n+1])?1:void 0}}function Us(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom}function Ws(e,t){var n=As(e,t);return n.width=1,n.right=n.left+1,n}hs.languageLoad=!0,hs.baseURL="",hs.PluginManager=hs(),hs.ThemeManager=hs();var qs=function(e,t){var n=[];return V(Pn(e),(function(e){n=(n=t(e)?n.concat([e]):n).concat(qs(e,t))})),n},Gs=h("mce-annotation"),Ys=h("data-mce-annotation"),Ks=h("data-mce-annotation-uid"),Xs=function(e,t){return _s(Ot.fromDom(e.getBody()),"["+Ks()+'="'+t+'"]')},Js=0,Zs=Math.round,Qs=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),el=Hn,tl=Wr,nl=ln("display","block table"),rl=ln("float","left right"),il=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}}(el,tl,T(rl)),ol=T(ln("white-space","pre pre-line pre-wrap")),al=Wn,sl=Kn,ll=ns.nodeIndex,ul=function(e,t){if(!(t<0&&Hn(e)&&e.hasChildNodes()))return Ls(e,t)},cl=function(e){var t=e.getClientRects(),n=0<t.length?Ns(t[0]):Ns(e.getBoundingClientRect());return!zs(e)&&sl(e)&&Us(n)?function(e){var t=e.ownerDocument,n=Vs(t),r=t.createTextNode(xi),i=e.parentNode;i.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var o=Ns(n.getBoundingClientRect());return i.removeChild(r),o}(e):Us(n)&&zs(e)?function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,i=e.endOffset;if(t===n&&Wn(n)&&0===r&&1===i){var o=e.cloneRange();return o.setEndAfter(n),cl(o)}return null}(e):n},fl=function(e,t,n){function r(){return n=n||function(e){function t(e){var t;0!==e.height&&(0<r.length&&(t=r[r.length-1],e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right)||r.push(e))}function n(e,n){var i=Vs(e.ownerDocument);if(n<e.data.length){if($s(e.data[n]))return r;if($s(e.data[n-1])&&(i.setStart(e,n),i.setEnd(e,n+1),!Hs(i)))return t(Ws(cl(i),!1)),r}0<n&&(i.setStart(e,n-1),i.setEnd(e,n),Hs(i)||t(Ws(cl(i),!1))),n<e.data.length&&(i.setStart(e,n),i.setEnd(e,n+1),Hs(i)||t(Ws(cl(i),!0)))}var r=[],i=e.container(),o=e.offset();if(al(i))return n(i,o),r;if(el(i))if(e.isAtEnd()){var a=ul(i,o);al(a)&&n(a,a.data.length),il(a)&&!sl(a)&&t(Ws(cl(a),!1))}else{if(a=ul(i,o),al(a)&&n(a,0),il(a)&&e.isAtEnd())return t(Ws(cl(a),!1)),r;var s=ul(e.container(),e.offset()-1);il(s)&&!sl(s)&&(!nl(s)&&!nl(a)&&il(a)||t(Ws(cl(s),!1))),il(a)&&t(Ws(cl(a),!0))}return r}(fl(e,t))}return{container:h(e),offset:h(t),toRange:function(){var n=Vs(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},getClientRects:r,isVisible:function(){return 0<r().length},isAtStart:function(){return al(e),0===t},isAtEnd:function(){return al(e)?t>=e.data.length:t>=e.childNodes.length},isEqual:function(n){return n&&e===n.container()&&t===n.offset()},getNode:function(n){return ul(e,n?t-1:t)}}};function dl(e,t){Wn(t)&&0===t.data.length&&e.remove(t)}function hl(e,t,n){var r,i,o,a,s,l,u;Yn(n)?(o=e,a=t,l=ye.from((s=n).firstChild),u=ye.from(s.lastChild),a.insertNode(s),l.each((function(e){return dl(o,e.previousSibling)})),u.each((function(e){return dl(o,e.nextSibling)}))):(r=e,t.insertNode(i=n),dl(r,i.previousSibling),dl(r,i.nextSibling))}function pl(e){return function(t){return e===t}}function ml(e){var t,n,r,i;return(du(e)?"text()":e.nodeName.toLowerCase())+"["+(n=gu(mu(t=e)),r=ge(n,pl(t),t),i=me(n=n.slice(0,r+1),(function(e,t,r){return du(t)&&du(n[r-1])&&e++,e}),0),ge(n=he(n,sn([t.nodeName])),pl(t),t)-i+"]")}function gl(e,t){var n,r,i,o=[],a=t.container(),s=t.offset();return du(a)?n=function(e,t){for(;(e=e.previousSibling)&&du(e);)t+=e.data.length;return t}(a,s):(s>=(r=a.childNodes).length?(n="after",s=r.length-1):n="before",a=r[s]),o.push(ml(a)),i=he(function(e,t){var n=[];for(t=t.parentNode;t!==e;t=t.parentNode)n.push(t);return n}(e,a),T(cn)),(o=o.concat(de(i,ml))).reverse().join("/")+","+n}function vl(e,t){if(!t)return null;var n=t.split(","),r=n[0].split("/"),i=1<n.length?n[1]:"before",o=me(r,(function(e,t){var n,r,i,o,a=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return a?("text()"===a[1]&&(a[1]="#text"),n=e,r=a[1],i=parseInt(a[2],10),o=he(o=gu(n),(function(e,t){return!du(e)||!du(o[t-1])})),(o=he(o,sn([r])))[i]):null}),e);return o?du(o)?function(e,t){for(var n,r=e,i=0;du(r);){if(n=r.data.length,i<=t&&t<=i+n){e=r,t-=i;break}if(!du(r.nextSibling)){e=r,t=n;break}i+=n,r=r.nextSibling}return du(e)&&t>e.data.length&&(t=e.data.length),fl(e,t)}(o,parseInt(i,10)):(i="after"===i?pu(o)+1:pu(o),fl(o.parentNode,i)):null}function bl(e,t,n,r,i){var o,a=r[i?"startContainer":"endContainer"],s=r[i?"startOffset":"endOffset"],l=[],u=0,c=e.getRoot();for(Wn(a)?l.push(n?function(e,t,n){for(var r=e(t.data.slice(0,n)).length,i=t.previousSibling;i&&Wn(i);i=i.previousSibling)r+=e(i.data).length;return r}(t,a,s):s):(s>=(o=a.childNodes).length&&o.length&&(u=1,s=Math.max(0,o.length-1)),l.push(e.nodeIndex(o[s],n)+u));a&&a!==c;a=a.parentNode)l.push(e.nodeIndex(a,n));return l}function yl(e,t,n){var r=0;return Dt.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r}function wl(e,t){var n,r=t?"start":"end",i=e[r+"Container"],o=e[r+"Offset"];Hn(i)&&"TR"===i.nodeName&&(i=(n=i.childNodes)[Math.min(t?o:o-1,n.length-1)])&&(o=t?0:i.childNodes.length,e["set"+(t?"Start":"End")](i,o))}function _l(e){return wl(e,!0),wl(e,!1),e}function Cl(e,t){var n;return Hn(e)&&(e=Ls(e,t),vu(e))?e:$r(e)?(n=(e=Wn(e)&&Br(e)?e.parentNode:e).previousSibling,vu(n)?n:(n=e.nextSibling,vu(n)?n:void 0)):void 0}function xl(e,t,n){var r=n.getNode(),i=r?r.nodeName:null,o=n.getRng();if(vu(r)||"IMG"===i)return{name:i,index:yl(n.dom,i,r)};var a,s,l,u,c,f,d,h=Cl((a=o).startContainer,a.startOffset)||Cl(a.endContainer,a.endOffset);return h?{name:i=h.tagName,index:yl(n.dom,i,h)}:(f=(l=n).dom,(d={}).start=bl(f,s=e,u=t,c=o,!0),l.isCollapsed()||(d.end=bl(f,s,u,c,!1)),Ur(c)&&(d.isFakeCaret=!0),d)}function Sl(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)}function kl(e,t){var n=e.dom,r=e.getRng(),i=n.uniqueId(),o=e.isCollapsed(),a=e.getNode(),s=a.nodeName;if("IMG"===s)return{name:s,index:yl(n,s,a)};var l=_l(r.cloneRange());return o||(l.collapse(!1),hl(n,l,Sl(n,i+"_end",t))),(r=_l(r)).collapse(!0),hl(n,r,Sl(n,i+"_start",t)),e.moveToBookmark({id:i,keep:!0}),{id:i}}function Dl(e,t,n){var r=e.getParam(t,n);return-1===r.indexOf("=")?r:ue(e.getParam(t,"","hash"),e.id).getOr(n)}function Ol(e){return e.getParam("content_security_policy","")}function Tl(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t}function El(e){return e.getParam("forced_root_block_attrs",{})}function Il(e){return e.getParam("automatic_uploads",!0,"boolean")}function Nl(e){return e.getParam("icons","","string")}function Al(e){return e.getParam("referrer_policy","","string")}function Pl(e){return e.getParam("language","en","string")}function Ml(e){return e.getParam("indent_use_margin",!1)}function Rl(e){var t=e.getParam("font_css",[]);return _(t)?t:$(t.split(","),Qe)}function Fl(e){var t=e.getParam("object_resizing");return!1!==t&&!xt.iOS&&(y(t)?t:"table,img,figure.image,div,video,iframe")}function Bl(e){return e.getParam("event_root")}function Ll(e){return e.getParam("theme")}function $l(e){return!1!==e.getParam("inline_boundaries")}function Vl(e){return e.getParam("plugins","","string")}function jl(e){var t=e.parentNode;t&&t.removeChild(e)}function zl(e){var t=Di(e);return{count:e.length-t.length,text:t}}function Hl(e){for(var t;-1!==(t=e.data.lastIndexOf(Si));)e.deleteData(t,1)}function Ul(e,t){return Cu(e),t}function Wl(e,t){var n,r=t.container(),i=(-1===(n=F(xe(r.childNodes),e))?ye.none():ye.some(n)).map((function(e){return e<t.offset()?fl(r,t.offset()-1):t})).getOr(t);return Cu(e),i}function ql(e,t){return fl.isTextPosition(t)?(r=t,_u(n=e)&&r.container()===n?(a=zl((i=n).data.substr(0,(o=r).offset())),s=zl(i.data.substr(o.offset())),0<(a.text+s.text).length?(Hl(i),fl(i,o.offset()-a.count)):o):Ul(n,r)):(l=e,((u=t).container()===l.parentNode?Wl:Ul)(l,u));var n,r,i,o,a,s,l,u}function Gl(e,t,n){var r,i,o,a=As(t.getBoundingClientRect(),n),s="BODY"===e.tagName?(r=e.ownerDocument.documentElement,i=e.scrollLeft||r.scrollLeft,e.scrollTop||r.scrollTop):(o=e.getBoundingClientRect(),i=e.scrollLeft-o.left,e.scrollTop-o.top);a.left+=i,a.right+=i,a.top+=s,a.bottom+=s,a.width=1;var l=t.offsetWidth-t.clientWidth;return 0<l&&(n&&(l*=-1),a.left+=l,a.right+=l),a}function Yl(e,t,n,r){function i(){!function(){for(var e=_s(Ot.fromDom(t),"*[contentEditable=false],video,audio,embed,object"),n=0;n<e.length;n++){var r,i=e[n].dom,o=i.previousSibling;Ii(o)&&(1===(r=o.data).length?o.parentNode.removeChild(o):o.deleteData(r.length-1,1)),o=i.nextSibling,Ei(o)&&(1===(r=o.data).length?o.parentNode.removeChild(o):o.deleteData(0,1))}}(),a&&(Cu(a),a=null),s.on((function(e){Ja(e.caret).remove(),s.clear()})),o&&(Ir.clearInterval(o),o=void 0)}var o,a,s=ps(),l=Tl(e),u=0<l.length?l:"p";return{show:function(e,l){var c;if(i(),Du(l))return null;if(!n(l))return a=function(e,t){var n=e.ownerDocument.createTextNode(Si),r=e.parentNode;if(t){if(i=e.previousSibling,Ti(i)){if($r(i))return i;if(Ii(i))return i.splitText(i.data.length-1)}r.insertBefore(n,e)}else{var i=e.nextSibling;if(Ti(i)){if($r(i))return i;if(Ei(i))return i.splitText(1),i}e.nextSibling?r.insertBefore(n,e.nextSibling):r.appendChild(n)}return n}(l,e),c=l.ownerDocument.createRange(),Ou(a.nextSibling)?(c.setStart(a,0),c.setEnd(a,0)):(c.setStart(a,1),c.setEnd(a,1)),c;a=function(e,t,n){var r,i=t.ownerDocument.createElement(e);i.setAttribute("data-mce-caret",n?"before":"after"),i.setAttribute("data-mce-bogus","all"),i.appendChild(((r=document.createElement("br")).setAttribute("data-mce-bogus","1"),r));var o=t.parentNode;return n?o.insertBefore(i,t):t.nextSibling?o.insertBefore(i,t.nextSibling):o.appendChild(i),i}(u,l,e);var f=Gl(t,l,e);Ja(a).css("top",f.top);var d=Ja('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(Ee({},f)).appendTo(t)[0];return s.set({caret:d,element:l,before:e}),e&&Ja(d).addClass("mce-visual-caret-before"),o=Ir.setInterval((function(){r()?Ja("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Ja("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500),(c=l.ownerDocument.createRange()).setStart(a,0),c.setEnd(a,0),c},hide:i,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){s.on((function(e){var n=Gl(t,e.element,e.before);Ja(e.caret).css(Ee({},n))}))},destroy:function(){return Ir.clearInterval(o)}}}function Kl(){return xu.isIE()||xu.isEdge()||xu.isFirefox()}function Xl(e){return Ou(e)||fn(e)&&Kl()}function Jl(e,t){for(var n;n=e(t);)if(!Au(n))return n;return null}function Zl(e,t,n,r,i){var o=new Ar(e,r),a=Tu(e)||Au(e);if(t<0){if(a&&n(e=Jl(o.prev.bind(o),!0)))return e;for(;e=Jl(o.prev.bind(o),i);)if(n(e))return e}if(0<t){if(a&&n(e=Jl(o.next.bind(o),!0)))return e;for(;e=Jl(o.next.bind(o),i);)if(n(e))return e}return null}function Ql(e,t){for(;e&&e!==t;){if(Iu(e))return e;e=e.parentNode}return null}function eu(e,t,n){return Ql(e.container(),n)===Ql(t.container(),n)}function tu(e,t){if(!t)return null;var n=t.container(),r=t.offset();return Pu(n)?n.childNodes[r+e]:null}function nu(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n}function ru(e,t,n){for(var r,i,o=e?"previousSibling":"nextSibling";n&&n!==t;){var a=n[o];if(Nu(a)&&(a=a[o]),Tu(a)||Eu(a)){if(i=n,Ql(a,r=t)===Ql(i,r))return a;break}if(Mu(a))break;n=n.parentNode}return null}function iu(e,t,n){var r,i=O(ru,!0,t),o=O(ru,!1,t),a=n.startContainer,s=n.startOffset;if(Br(a)){var l=(a=Pu(a)?a:a.parentNode).getAttribute("data-mce-caret");if("before"===l&&Xl(r=a.nextSibling))return Ru(r);if("after"===l&&Xl(r=a.previousSibling))return Fu(r)}if(!n.collapsed)return n;if(Wn(a)){if(Nu(a)){if(1===e){if(r=o(a))return Ru(r);if(r=i(a))return Fu(r)}if(-1===e){if(r=i(a))return Fu(r);if(r=o(a))return Ru(r)}return n}if(Ii(a)&&s>=a.data.length-1)return 1===e&&(r=o(a))?Ru(r):n;if(Ei(a)&&s<=1)return-1===e&&(r=i(a))?Fu(r):n;if(s===a.data.length)return(r=o(a))?Ru(r):n;if(0===s)return(r=i(a))?Fu(r):n}return n}function ou(e,t){return ye.from(tu(e?0:-1,t)).filter(Tu)}function au(e,t,n){var r=iu(e,t,n);return-1===e?fl.fromRangeStart(r):fl.fromRangeEnd(r)}function su(e){return ye.from(e.getNode()).map(Ot.fromDom)}function lu(e,t){for(;t=e(t);)if(t.isVisible())return t;return t}function uu(e,t){var n=eu(e,t);return!(n||!Kn(e.getNode()))||n}fl.fromRangeStart=function(e){return fl(e.startContainer,e.startOffset)},fl.fromRangeEnd=function(e){return fl(e.endContainer,e.endOffset)},fl.after=function(e){return fl(e.parentNode,ll(e)+1)},fl.before=function(e){return fl(e.parentNode,ll(e))},fl.isAbove=function(e,t){return pn(te(t.getClientRects()),ne(e.getClientRects()),Ms).getOr(!1)},fl.isBelow=function(e,t){return pn(ne(t.getClientRects()),te(e.getClientRects()),Rs).getOr(!1)},fl.isAtStart=function(e){return!!e&&e.isAtStart()},fl.isAtEnd=function(e){return!!e&&e.isAtEnd()},fl.isTextPosition=function(e){return!!e&&Wn(e.container())},fl.isElementPosition=function(e){return!1===fl.isTextPosition(e)};var cu,fu,du=Wn,hu=cn,pu=ns.nodeIndex,mu=function(e){var t=e.parentNode;return hu(t)?mu(t):t},gu=function(e){return e?me(e.childNodes,(function(e,t){return hu(t)&&"BR"!==t.nodeName?e=e.concat(gu(t)):e.push(t),e}),[]):[]},vu=Zn,bu=O(xl,p,!0),yu=ns.DOM,wu=Hn,_u=Wn,Cu=function(e){wu(e)&&$r(e)&&(Vr(e)?e.removeAttribute("data-mce-caret"):jl(e)),_u(e)&&(Hl(e),0===e.data.length&&jl(e))},xu=pt().browser,Su=Zn,ku=er,Du=Qn,Ou=function(e){return Su(e)||ku(e)},Tu=Zn,Eu=er,Iu=ln("display","block table table-cell table-caption list-item"),Nu=$r,Au=Br,Pu=Hn,Mu=Wr,Ru=O(nu,!0),Fu=O(nu,!1);function Bu(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null}function Lu(e,t){if(0<e){if(Zc(t.previousSibling)&&!Kc(t.previousSibling))return fl.before(t);if(Kc(t))return fl(t,0)}if(e<0){if(Zc(t.nextSibling)&&!Kc(t.nextSibling))return fl.after(t);if(Kc(t))return fl(t,t.data.length)}return e<0&&!Jc(t)?fl.after(t):fl.before(t)}function $u(e){return{next:function(t){return ef(cu.Forwards,t,e)},prev:function(t){return ef(cu.Backwards,t,e)}}}function Vu(e){return fl.isTextPosition(e)?0===e.offset():Wr(e.getNode())}function ju(e){if(fl.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Wr(e.getNode(!0))}function zu(e,t){return!fl.isTextPosition(e)&&!fl.isTextPosition(t)&&e.getNode()===t.getNode(!0)}function Hu(e,t,n){return tf(e,t,n).bind((function(r){return eu(n,r,t)&&(i=n,o=r,e?!zu(i,o)&&(fl.isTextPosition(a=i)||!Kn(a.getNode()))&&ju(i)&&Vu(o):!zu(o,i)&&Vu(i)&&ju(o))?tf(e,t,r):ye.some(r);var i,o,a}))}function Uu(e,t){var n,r,i,o,a,s=e?t.firstChild:t.lastChild;return Wn(s)?ye.some(fl(s,e?0:s.data.length)):s?Wr(s)?ye.some(e?fl.before(s):Kn(a=s)?fl.before(a):fl.after(a)):(r=t,i=s,o=(n=e)?fl.before(i):fl.after(i),tf(n,r,o)):ye.none()}function Wu(e){return Hn(e)&&e.id===lf}function qu(e,t){for(;t&&t!==e;){if(t.id===lf)return t;t=t.parentNode}return null}function Gu(e){return Dt.isArray(e.start)}function Yu(e,t){return Hn(t)&&e.isBlock(t)&&!t.innerHTML&&!xt.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t}function Ku(e,t,n){return!1===t.hasChildNodes()&&qu(e,t)&&(i=n,o=(r=t).ownerDocument.createTextNode(Si),r.appendChild(o),i.setStart(o,0),i.setEnd(o,0),1);var r,i,o}function Xu(e,t,n,r){var i,o,a,s,l=n[t?"start":"end"],u=e.getRoot();if(l){for(a=l[0],o=u,i=l.length-1;1<=i;i--){if(s=o.childNodes,Ku(u,o,r))return 1;if(l[i]>s.length-1)return Ku(u,o,r)||function(e){return sf(o).fold(A,(function(t){return e.setStart(t.container(),t.offset()),e.setEnd(t.container(),t.offset()),!0}))}(r);o=s[l[i]]}3===o.nodeType&&(a=Math.min(l[0],o.nodeValue.length)),1===o.nodeType&&(a=Math.min(l[0],o.childNodes.length)),t?r.setStart(o,a):r.setEnd(o,a)}return 1}function Ju(e){return Wn(e)&&0<e.data.length}function Zu(e,t,n){var r,i,o,a,s,l,u=e.get(n.id+"_"+t),c=n.keep;if(u){if(r=u.parentNode,i="start"===t?c?u.hasChildNodes()?(r=u.firstChild,1):Ju(u.nextSibling)?(r=u.nextSibling,0):Ju(u.previousSibling)?(r=u.previousSibling,u.previousSibling.data.length):(r=u.parentNode,e.nodeIndex(u)+1):e.nodeIndex(u):c?u.hasChildNodes()?(r=u.firstChild,1):Ju(u.previousSibling)?(r=u.previousSibling,u.previousSibling.data.length):(r=u.parentNode,e.nodeIndex(u)):e.nodeIndex(u),s=r,l=i,!c){for(a=u.previousSibling,o=u.nextSibling,Dt.each(Dt.grep(u.childNodes),(function(e){Wn(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));u=e.get(n.id+"_"+t);)e.remove(u,!0);a&&o&&a.nodeType===o.nodeType&&Wn(a)&&!xt.opera&&(i=a.nodeValue.length,a.appendData(o.nodeValue),e.remove(o),s=a,l=i)}return ye.some(fl(s,l))}return ye.none()}function Qu(e,t){(function(e,t){var n,r,i,o,a,s,l,u,c,f,d,h,p=e.dom;if(t){if(Gu(t))return d=t,h=(f=p).createRng(),Xu(f,!0,d,h)&&Xu(f,!1,d,h)?ye.some(h):ye.none();if(y(t.start))return ye.some((l=t,u=(s=p).createRng(),c=vl(s.getRoot(),l.start),u.setStart(c.container(),c.offset()),c=vl(s.getRoot(),l.end),u.setEnd(c.container(),c.offset()),u));if(Oe(t,"id"))return pn(a=Zu(i=p,"start",o=t),Zu(i,"end",o).or(a),(function(e,t){var n=i.createRng();return n.setStart(Yu(i,e.container()),e.offset()),n.setEnd(Yu(i,t.container()),t.offset()),n}));if(Oe(t,"name"))return n=p,ye.from(n.select((r=t).name)[r.index]).map((function(e){var t=n.createRng();return t.selectNode(e),t}));if(Oe(t,"rng"))return ye.some(t.rng)}return ye.none()})(e,t).each((function(t){e.setRng(t)}))}function ec(e){return Hn(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")}function tc(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)}function nc(e){return!tc(e)&&!cf(e)}function rc(e){return e.nodeType}function ic(e,t,n){var r,i=n.startOffset,o=n.startContainer;if((o!==n.endContainer||!(r=o.childNodes[i])||!/^(IMG)$/.test(r.nodeName))&&Hn(o)){var a=o.childNodes,s=void 0;i<a.length?(o=a[i],s=new Ar(o,e.getParent(o,e.isBlock))):(o=a[a.length-1],(s=new Ar(o,e.getParent(o,e.isBlock))).next(!0));for(var l=s.current();l;l=s.next())if(Wn(l)&&!ff(l))return n.setStart(l,0),t.setRng(n),0}}function oc(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(Hn(e)||!ff(e))return e}}function ac(e,t){return rc(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]}function sc(e,t,n){return e.schema.isValidChild(t,n)}function lc(e,t){return k(e)?e=e(t):u(t)&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e}function uc(e,t){return e=""+((e=e||"").nodeName||e),t=""+((t=t||"").nodeName||t),e.toLowerCase()===t.toLowerCase()}function cc(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),""+("fontFamily"===n?t.replace(/[\'\"]/g,"").replace(/,\s+/g,","):t)}function fc(e,t,n){return cc(e,e.getStyle(t,n),n)}function dc(e,t){var n;return e.getParent(t,(function(t){return(n=e.getStyle(t,"text-decoration"))&&"none"!==n})),n}function hc(e,t,n){return e.getParents(t,n,e.getRoot())}function pc(e,t){return L(e.formatter.get(t),(function(e){function t(e){return 1<e.length&&"%"===e.charAt(0)}return L(["styles","attributes"],(function(n){return ue(e,n).exists((function(e){var n,r;return L(_(e)?e:(n=p,r=[],ie(e,(function(e,t){r.push(n(e,t))})),r),t)}))}))}))}function mc(e){return ce(e,"block")}function gc(e){return ce(e,"selector")}function vc(e){return ce(e,"inline")}function bc(e){return gc(e)&&!1!==e.expand&&!vc(e)}function yc(e,t){for(var n=t;n;){if(Hn(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t}function wc(e,t,n,r){for(var i=t.data,o=n;e?0<=o:o<i.length;e?o--:o++)if(r(i.charAt(o)))return e?o+1:o;return-1}function _c(e,t,n){return wc(e,t,n,(function(e){return cf(e)||tc(e)}))}function Cc(e,t,n){return wc(e,t,n,nc)}function xc(e,t,n,r,i,o){function a(t,n,r){var o=Is(e),a=i?o.backwards:o.forwards;return ye.from(a(t,n,(function(e,t){return df(e.parentNode)?-1:r(i,s=e,t)}),l))}var s,l=e.getParent(n,e.isBlock)||t;return a(n,r,_c).bind((function(e){return o?a(e.container,e.offset+(i?-1:0),Cc):ye.some(e)})).orThunk((function(){return s?ye.some({container:s,offset:i?0:s.length}):ye.none()}))}function Sc(e,t,n,r,i){Wn(r)&&Fe(r.data)&&r[i]&&(r=r[i]);for(var o=hf(e,r),a=0;a<o.length;a++)for(var s=0;s<t.length;s++){var l=t[s];if((!u(l.collapsed)||l.collapsed===n.collapsed)&&gc(l)&&e.is(o[a],l.selector))return o[a]}return r}function kc(e,t,n,r){var i,o=n,a=e.dom,s=a.getRoot(),l=t[0];if((o=mc(l)?l.wrapper?null:a.getParent(n,l.block,s):o)||(i=a.getParent(n,"LI,TD,TH"),o=a.getParent(Wn(n)?n.parentNode:n,(function(t){return t!==s&&mf(e,t)}),i)),!(o=o&&mc(l)&&l.wrapper&&hf(a,o,"ul,ol").reverse()[0]||o))for(o=n;o[r]&&!a.isBlock(o[r])&&!uc(o=o[r],"br"););return o||n}function Dc(e,t,n,r,i){var o,a=n,s=i?"previousSibling":"nextSibling",l=e.getRoot();if(Wn(n)&&!pf(n)&&(i?0<r:r<n.data.length))return n;for(;;){if(!t[0].block_expand&&e.isBlock(a))return a;for(var u=a[s];u;u=u[s]){var c=Wn(u)&&!gf(e,l,u,s);if(!df(u)&&(!Kn(o=u)||!o.getAttribute("data-mce-bogus")||o.nextSibling)&&!pf(u,c))return a}if(a===l||a.parentNode===l){n=a;break}a=a.parentNode}return n}function Oc(e){return df(e.parentNode)||df(e)}function Tc(e,t,n,r){void 0===r&&(r=!1);var i=t.startContainer,o=t.startOffset,a=t.endContainer,s=t.endOffset,l=e.dom,u=n[0];return Hn(i)&&i.hasChildNodes()&&(i=Ls(i,o),Wn(i)&&(o=0)),Hn(a)&&a.hasChildNodes()&&(a=Ls(a,t.collapsed?s:s-1),Wn(a)&&(s=a.nodeValue.length)),i=yc(l,i),a=yc(l,a),Oc(i)&&(i=df(i)?i:i.parentNode,i=t.collapsed?i.previousSibling||i:i.nextSibling||i,Wn(i)&&(o=t.collapsed?i.length:0)),Oc(a)&&(a=df(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Wn(a)&&(s=t.collapsed?0:a.length)),t.collapsed&&(xc(l,e.getBody(),i,o,!0,r).each((function(e){var t=e.container,n=e.offset;i=t,o=n})),xc(l,e.getBody(),a,s,!1,r).each((function(e){var t=e.container,n=e.offset;a=t,s=n}))),(vc(u)||u.block_expand)&&(vc(u)&&Wn(i)&&0!==o||(i=Dc(l,n,i,o,!0)),vc(u)&&Wn(a)&&s!==a.nodeValue.length||(a=Dc(l,n,a,s,!1))),bc(u)&&(i=Sc(l,n,t,i,"previousSibling"),a=Sc(l,n,t,a,"nextSibling")),(mc(u)||gc(u))&&(i=kc(e,n,i,"previousSibling"),a=kc(e,n,a,"nextSibling"),mc(u)&&(l.isBlock(i)||(i=Dc(l,n,i,o,!0)),l.isBlock(a)||(a=Dc(l,n,a,s,!1)))),Hn(i)&&(o=l.nodeIndex(i),i=i.parentNode),Hn(a)&&(s=l.nodeIndex(a)+1,a=a.parentNode),{startContainer:i,startOffset:o,endContainer:a,endOffset:s}}function Ec(e,t,n){function r(e){var t=e[0];Wn(t)&&t===l&&s>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===u&&0<e.length&&n===c&&Wn(n)&&e.splice(e.length-1,1),e}function i(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r}function o(t,n){return e.getParent(t,(function(e){return e.parentNode===n}),n)}function a(e,t,o){var a=o?"nextSibling":"previousSibling",s=e;for(s.parentNode;s&&s!==t;s=l){var l=s.parentNode,u=i(s===e?s:s[a],a);u.length&&(o||u.reverse(),n(r(u)))}}var s=t.startOffset,l=Ls(t.startContainer,s),u=t.endOffset,c=Ls(t.endContainer,u-1);if(l===c)return n(r([l]));var f=e.findCommonAncestor(l,c);if(e.isChildOf(l,c))return a(l,f,!0);if(e.isChildOf(c,l))return a(c,f);var d=o(l,f)||l,h=o(c,f)||c;a(l,d,!0);var p=i(d===l?d:d.nextSibling,"nextSibling",h===c?h.nextSibling:h);p.length&&n(r(p)),a(c,h)}function Ic(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t}function Nc(e,t){var n=_s(t,"td[data-mce-selected],th[data-mce-selected]");return 0<n.length?n:H(K(e,(function(e){var t=Bs(e);return t?[Ot.fromDom(t)]:[]})),wi)}function Ac(e){return Nc(Ic(e.selection.getSel()),Ot.fromDom(e.getBody()))}function Pc(e,t){return yr(e,"table",t)}function Mc(e,t){return pn((i=t.startContainer,o=t.startOffset,Wn(i)?0===o?ye.some(Ot.fromDom(i)):ye.none():ye.from(i.childNodes[o]).map(Ot.fromDom)),(n=t.endContainer,r=t.endOffset,Wn(n)?r===n.data.length?ye.some(Ot.fromDom(n)):ye.none():ye.from(n.childNodes[r-1]).map(Ot.fromDom)),(function(t,n){var r=G(vf(e),O(Ue,t)),i=G(bf(e),O(Ue,n));return r.isSome()&&i.isSome()})).getOr(!1);var n,r,i,o}function Rc(e,t,n,r){var i=n,o=new Ar(n,i),a=le(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!B(["td","th","table"],t.toLowerCase())}));do{if(Wn(n)&&0!==Dt.trim(n.nodeValue).length)return r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length),0;if(a[n.nodeName])return r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n),0}while(n=r?o.next():o.prev());"BODY"===i.nodeName&&(r?t.setStart(i,0):t.setEnd(i,i.childNodes.length))}function Fc(e){var t=e.selection.getSel();return t&&0<t.rangeCount}function Bc(e,t){var n=Ac(e);0<n.length?V(n,(function(n){var r=n.dom,i=e.dom.createRng();i.setStartBefore(r),i.setEndAfter(r),t(i,!0)})):t(e.selection.getRng(),!1)}function Lc(e,t,n){var r=kl(e,t);n(r),e.moveToBookmark(r)}function $c(e){return yf.get(e)}function Vc(e,t,n,r){var i=t.uid,o=void 0===i?Ss("mce-annotation"):i,a=function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}(t,["uid"]),s=Ot.fromTag("span",e);ys(s,Gs()),vn(s,""+Ks(),o),vn(s,""+Ys(),n);var l,u=r(o,a),c=u.attributes,f=u.classes,d=void 0===f?[]:f;return bn(s,void 0===c?{}:c),l=s,V(d,(function(e){ys(l,e)})),s}function jc(e,t,n,r,i){function o(){u.clear()}function a(e){V(e,c)}var s=[],l=Vc(e.getDoc(),i,n,r),u=ps(),c=function(t){var n,r,i,c,f,d;switch(i=e,f="span",d=Tt(c=t),Mt(c).fold((function(){return"skipping"}),(function(e){return"br"===d||In(n=c)&&$c(n)===Si?"valid":En(t=c)&&ws(t,Gs())?"existing":Wu(c.dom)?"caret":sc(i,f,d)&&sc(i,Tt(e),f)?"valid":"invalid-child";var t,n}))){case"invalid-child":o(),a(Pn(t)),o();break;case"valid":qt(n=t,r=u.get().getOrThunk((function(){var e=Os(l);return s.push(e),u.set(e),e}))),Bn(r,n)}};return Ec(e.dom,t,(function(e){o(),a($(e,Ot.fromDom))})),s}function zc(e){var t,n,r,i=(t={},{register:function(e,n){t[e]={name:e,settings:n}},lookup:function(e){return ue(t,e).map((function(e){return e.settings}))}});r=i,(n=e).on("init",(function(){n.serializer.addNodeFilter("span",(function(e){V(e,(function(e){ye.from(e.attr(Ys())).bind(r.lookup).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}));var o=xs(e);return{register:function(e,t){i.register(e,t)},annotate:function(t,n){i.lookup(t).each((function(r){var i,o,a,s;o=t,a=r,s=n,(i=e).undoManager.transact((function(){var e,t,n,r,l=i.selection,u=l.getRng(),c=0<Ac(i).length;u.collapsed&&!c&&(n=Tc(e=i,t=u,[{inline:"span"}]),t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)),l.getRng().collapsed&&!c?(ks(r=Vc(i.getDoc(),s,o,a.decorate),xi),l.getRng().insertNode(r.dom),l.select(r.dom)):Lc(l,!1,(function(){Bc(i,(function(e){jc(i,e,o,a.decorate,s)}))}))}))}))},annotationChanged:function(e,t){o.addListener(e,t)},remove:function(t){Cs(e,ye.some(t)).each((function(e){V(e.elements,Jt)}))},getAll:function(t){var n,r,i;return oe((n=t,r=_s(Ot.fromDom(e.getBody()),"["+Ys()+'="'+n+'"]'),i={},V(r,(function(e){var t=yn(e,Ks()),n=ue(i,t).getOr([]);i[t]=n.concat([e])})),i),(function(e){return $(e,(function(e){return e.dom}))}))}}}function Hc(e){return{getBookmark:O(uf,e),moveToBookmark:O(Qu,e)}}function Uc(e){return Fi(e)||!!$i(t=e)&&!0!==W(xe(t.getElementsByTagName("*")),(function(e,t){return e||Ni(t)}),!1);var t}(fu=cu=cu||{})[fu.Backwards=-1]="Backwards",fu[fu.Forwards=1]="Forwards";var Wc,qc,Gc,Yc=Zn,Kc=Wn,Xc=Hn,Jc=Kn,Zc=Wr,Qc=qr,ef=function(e,t,n){var r,i,o;if(!Xc(n)||!t)return null;if(t.isEqual(fl.after(n))&&n.lastChild){if(o=fl.after(n.lastChild),e<0&&Zc(n.lastChild)&&Xc(n.lastChild))return Jc(n.lastChild)?fl.before(n.lastChild):o}else o=t;var a,s,l,u=o.container(),c=o.offset();if(Kc(u)){if(e<0&&0<c)return fl(u,--c);if(0<e&&c<u.length)return fl(u,++c);r=u}else{if(e<0&&0<c&&(f=Bu(u,c-1),Zc(f)))return!Uc(f)&&(i=Zl(f,e,Qc,f))?Kc(i)?fl(i,i.data.length):fl.after(i):Kc(f)?fl(f,f.data.length):fl.before(f);if(0<e&&c<u.childNodes.length&&(f=Bu(u,c),Zc(f)))return Jc(f)?(a=n,(l=(s=f).nextSibling)&&Zc(l)?Kc(l)?fl(l,0):fl.before(l):ef(cu.Forwards,fl.after(s),a)):!Uc(f)&&(i=Zl(f,e,Qc,f))?Kc(i)?fl(i,0):fl.before(i):Kc(f)?fl(f,0):fl.after(f);r=f||o.getNode()}if((0<e&&o.isAtEnd()||e<0&&o.isAtStart())&&(r=Zl(r,e,P,n,!0),Qc(r,n)))return Lu(e,r);var f=Zl(r,e,Qc,n),d=ve(H(function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n}(u,n),Yc));return!d||f&&d.contains(f)?f?Lu(e,f):null:0<e?fl.after(d):fl.before(d)},tf=function(e,t,n){var r=$u(t);return ye.from(e?r.next(n):r.prev(n))},nf=function(e,t,n,r){return Hu(e,t,n).bind((function(n){return r(n)?nf(e,t,n,r):ye.some(n)}))},rf=O(tf,!0),of=O(tf,!1),af=O(Uu,!0),sf=O(Uu,!1),lf="_mce_caret",uf=function(e,t,n){return 2===t?xl(Di,n,e):3===t?(i=(r=e).getRng(),{start:gl(r.dom.getRoot(),fl.fromRangeStart(i)),end:gl(r.dom.getRoot(),fl.fromRangeEnd(i))}):t?{rng:e.getRng()}:kl(e,!1);var r,i},cf=(Wc=xi,function(e){return Wc===e}),ff=function(e,t){return void 0===t&&(t=!1),!(!u(e)||!Wn(e))&&Gr(t?e.data.replace(/ /g," "):e.data)},df=ec,hf=hc,pf=ff,mf=ac,gf=function(e,t,n,r){var i=n.parentNode;return!u(n[r])&&(!(i!==t&&!l(i)&&!e.isBlock(i))||gf(e,t,i,r))},vf=function(e){return Vt(e).fold(h([e]),(function(t){return[e].concat(vf(t))}))},bf=function(e){return jt(e).fold(h([e]),(function(t){return"br"===Tt(t)?Rt(t).map((function(t){return[e].concat(bf(t))})).getOr([]):[e].concat(bf(t))}))},yf=(qc=In,{get:function(e){if(!qc(e))throw new Error("Can only get text value of a text node");return Gc(e).getOr("")},getOption:Gc=function(e){return qc(e)?ye.from(e.dom.nodeValue):ye.none()},set:function(e,t){if(!qc(e))throw new Error("Can only set raw text value of a text node");e.dom.nodeValue=t}});function wf(e,t){for(;t&&t!==e;){if(Jn(t)||Zn(t))return t;t=t.parentNode}return null}function _f(e,t,n){if(!n.collapsed){if(xt.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Hn(r))return L(r.getClientRects(),(function(n){return Fs(n,e,t)}))}return L(n.getClientRects(),(function(n){return Fs(n,e,t)}))}}function Cf(e,t,n){return e.fire(t,n)}function xf(e,t,n,r){return e.fire("FormatApply",{format:t,node:n,vars:r})}function Sf(e,t,n,r){return e.fire("FormatRemove",{format:t,node:n,vars:r})}function kf(e,t){function n(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))}function r(e){return er(e)||N.hasClass(e,"mce-preview-object")}function i(e){var r=e.target;!function(e,t){if("longpress"!==e.type&&0!==e.type.indexOf("touch"))return n(e.target)&&!_f(e.clientX,e.clientY,t);var r=e.touches[0];return n(e.target)&&!_f(r.clientX,r.clientY,t)}(e,t.selection.getRng())||e.isDefaultPrevented()||t.selection.select(r)}function a(e){return N.is(e,"figure.image")?[e.querySelector("img")]:N.hasClass(e,"mce-preview-object")&&u(e.firstElementChild)?[e,e.firstElementChild]:[e]}function s(e){var n=Fl(t);return!!n&&"false"!==e.getAttribute("data-mce-resize")&&e!==t.getBody()&&(N.hasClass(e,"mce-preview-object")?ze(Ot.fromDom(e.firstElementChild),n):ze(Ot.fromDom(e),n))}function l(e,n,r){u(r)&&V(a(e),(function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?N.setStyle(e,n,r):N.setAttrib(e,n,""+r)}))}function c(e,t,n){l(e,"width",t),l(e,"height",n)}function f(e){var i,o,a,s,l,u,f=e.screenX-w,d=e.screenY-_;D=f*b[2]+C,O=d*b[3]+x,D=D<5?5:D,O=O<5?5:O,((n(m)||r(m))&&!1!==t.getParam("resize_img_proportional",!0,"boolean")?!Lf.modifierPressed(e):Lf.modifierPressed(e))&&(R(f)>R(d)?(O=F(D*S),D=F(O/S)):(D=F(O/S),O=F(D*S))),c(g,D,O),i=b.startPos.x+f,o=b.startPos.y+d,N.setStyles(v,{left:i=0<i?i:0,top:o=0<o?o:0,display:"block"}),v.innerHTML=D+" &times; "+O,b[2]<0&&g.clientWidth<=D&&N.setStyle(g,"left",void 0+(C-D)),b[3]<0&&g.clientHeight<=O&&N.setStyle(g,"top",void 0+(x-O)),(f=B.scrollWidth-T)+(d=B.scrollHeight-E)!=0&&N.setStyles(v,{left:i-f,top:o-d}),k||(a=m,s=C,l=x,u="corner-"+b.name,t.fire("ObjectResizeStart",{target:a,width:s,height:l,origin:u}),k=!0)}function d(n){function r(e,t){if(e)do{if(e===t)return 1}while(e=e.parentNode)}var i;k||t.removed||(A(N.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(I)})),i="mousedown"===n.type?n.target:e.getNode(),r(i=N.$(i).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],B)&&(p(),r(e.getStart(!0),i)&&r(e.getEnd(!0),i))?j(i):z())}function h(e){return $f(wf(t.getBody(),e))}function p(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(o){}}var m,g,v,b,y,w,_,C,x,S,k,D,O,T,E,I="data-mce-selected",N=t.dom,A=Dt.each,P=t.getDoc(),M=document,R=Math.abs,F=Math.round,B=t.getBody(),L={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},$=function(){var e,n,r,i,o=k;k=!1,o&&(l(m,"width",D),l(m,"height",O)),N.unbind(P,"mousemove",f),N.unbind(P,"mouseup",$),M!==P&&(N.unbind(M,"mousemove",f),N.unbind(M,"mouseup",$)),N.remove(g),N.remove(v),N.remove(y),j(m),o&&(e=m,n=D,r=O,i="corner-"+b.name,t.fire("ObjectResized",{target:e,width:n,height:r,origin:i}),N.setAttrib(m,"style",N.getAttrib(m,"style"))),t.nodeChanged()},j=function(e){H();var n=N.getPos(e,B),i=n.x,o=n.y,l=e.getBoundingClientRect(),u=l.width||l.right-l.left,d=l.height||l.bottom-l.top;m!==e&&(z(),m=e,D=O=0);var h=t.fire("ObjectSelected",{target:e}),p=N.getAttrib(m,I,"1");s(e)&&!h.isDefaultPrevented()?A(L,(function(e,t){var n=N.get("mceResizeHandle"+t);n&&N.remove(n),n=N.add(B,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===xt.ie&&(n.contentEditable=!1),N.bind(n,"mousedown",(function(n){var s,l,h;n.stopImmediatePropagation(),n.preventDefault(),s=n,h=a(m)[0],w=s.screenX,_=s.screenY,C=h.clientWidth,x=h.clientHeight,S=x/C,(b=e).name=t,b.startPos={x:u*e[0]+i,y:d*e[1]+o},T=B.scrollWidth,E=B.scrollHeight,y=N.add(B,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),N.setStyles(y,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),g=r(l=m)?N.create("img",{src:xt.transparentSrc}):l.cloneNode(!0),N.addClass(g,"mce-clonedresizable"),N.setAttrib(g,"data-mce-bogus","all"),g.contentEditable="false",N.setStyles(g,{left:i,top:o,margin:0}),c(g,u,d),g.removeAttribute(I),B.appendChild(g),N.bind(P,"mousemove",f),N.bind(P,"mouseup",$),M!==P&&(N.bind(M,"mousemove",f),N.bind(M,"mouseup",$)),v=N.add(B,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},C+" &times; "+x)})),e.elm=n,N.setStyles(n,{left:u*e[0]+i-n.offsetWidth/2,top:d*e[1]+o-n.offsetHeight/2})})):z(),N.getAttrib(m,I)||m.setAttribute(I,p)},z=function(){H(),m&&m.removeAttribute(I),ie(L,(function(e,t){var n=N.get("mceResizeHandle"+t);n&&(N.unbind(n),N.remove(n))}))},H=function(){ie(L,(function(e){e.elm&&(N.unbind(e.elm),delete e.elm)}))};return t.on("init",(function(){var e;p(),(xt.browser.isIE()||xt.browser.isEdge())&&(t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;k||!/^(TABLE|IMG|HR)$/.test(r)||h(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())})),N.bind(B,"mscontrolselect",e=function(e){function n(e){Ir.setEditorTimeout(t,(function(){return t.selection.select(e)}))}if(h(e.target)||er(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))}),t.on("remove",(function(){return N.unbind(B,"mscontrolselect",e)})));var n=Ir.throttle((function(e){t.composing||d(e)}));t.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",n),t.on("keyup compositionend",(function(e){m&&"TABLE"===m.nodeName&&n(e)})),t.on("hide blur",z),t.on("contextmenu longpress",i,!0)})),t.on("remove",H),{isResizable:s,showResizeRect:j,hideResizeRect:z,updateResizeRect:d,destroy:function(){m=g=y=null}}}function Df(e){return Jn(e)||Zn(e)}function Of(e,t,n){var r,i,o,a,s,l=n;if(l.caretPositionFromPoint)(i=l.caretPositionFromPoint(e,t))&&((r=n.createRange()).setStart(i.offsetNode,i.offset),r.collapse(!0));else if(l.caretRangeFromPoint)r=l.caretRangeFromPoint(e,t);else if(l.body.createTextRange){r=l.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(i){r=function(e,t,n){var r,i=n.elementFromPoint(e,t),o=n.body.createTextRange();if(i&&"HTML"!==i.tagName||(i=n.body),o.moveToElementText(i),0<(r=(r=Dt.toArray(o.getClientRects())).sort((function(e,n){return(e=Math.abs(Math.max(e.top-t,e.bottom-t)))-Math.abs(Math.max(n.top-t,n.bottom-t))}))).length){t=(r[0].bottom+r[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(e){}}return null}(e,t,n)}return o=r,a=n.body,s=o&&o.parentElement?o.parentElement():null,Zn(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(s,a,Df))?null:o}return r}function Tf(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}function Ef(e,t,n){return null!==function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(e,t,n)}function If(e){return e&&"TABLE"===e.nodeName}function Nf(e,t,n){for(var r=new Ar(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());t=r[n?"prev":"next"]();)if(Kn(t))return 1}function Af(e,t,n,r,i){var o,a,s=e.getRoot(),l=e.schema.getNonEmptyElements(),u=e.getParent(i.parentNode,e.isBlock)||s;if(r&&Kn(i)&&t&&e.isEmpty(u))return ye.some(fl(i.parentNode,e.nodeIndex(i)));for(var c,f,d=new Ar(i,u);a=d[r?"prev":"next"]();){if("false"===e.getContentEditableParent(a)||(f=s,$r(c=a)&&!1===Ef(c,f,Wu)))return ye.none();if(Wn(a)&&0<a.nodeValue.length)return!1===Ef(a,s,(function(e){return"A"===e.nodeName}))?ye.some(fl(a,r?a.nodeValue.length:0)):ye.none();if(e.isBlock(a)||l[a.nodeName.toLowerCase()])return ye.none();o=a}return n&&o?ye.some(fl(o,0)):ye.none()}function Pf(e,t,n,r){var i,o=e.getRoot(),a=!1,s=r[(n?"start":"end")+"Container"],l=r[(n?"start":"end")+"Offset"],u=Hn(s)&&l===s.childNodes.length,c=e.schema.getNonEmptyElements(),f=n;if($r(s))return ye.none();if(Hn(s)&&l>s.childNodes.length-1&&(f=!1),Gn(s)&&(s=o,l=0),s===o){if(f&&(d=s.childNodes[0<l?l-1:0])){if($r(d))return ye.none();if(c[d.nodeName]||If(d))return ye.none()}if(s.hasChildNodes()){if(l=Math.min(!f&&0<l?l-1:l,s.childNodes.length-1),s=s.childNodes[l],l=Wn(s)&&u?s.data.length:0,!t&&s===o.lastChild&&If(s))return ye.none();if(function(e,t){for(;t&&t!==e;){if(Zn(t))return 1;t=t.parentNode}}(o,s)||$r(s))return ye.none();if(s.hasChildNodes()&&!1===If(s)){var d=s,h=new Ar(s,o);do{if(Zn(d)||$r(d)){a=!1;break}if(Wn(d)&&0<d.nodeValue.length){l=f?0:d.nodeValue.length,s=d,a=!0;break}if(c[d.nodeName.toLowerCase()]&&(!(i=d)||!/^(TD|TH|CAPTION)$/.test(i.nodeName))){l=e.nodeIndex(d),s=d.parentNode,f||l++,a=!0;break}}while(d=f?h.next():h.prev())}}}return t&&(Wn(s)&&0===l&&Af(e,u,t,!0,s).each((function(e){s=e.container(),l=e.offset(),a=!0})),Hn(s)&&(!(d=(d=s.childNodes[l])||s.childNodes[l-1])||!Kn(d)||d.previousSibling&&"A"===d.previousSibling.nodeName||Nf(e,d,!1)||Nf(e,d,!0)||Af(e,u,t,!0,d).each((function(e){s=e.container(),l=e.offset(),a=!0})))),f&&!t&&Wn(s)&&l===s.nodeValue.length&&Af(e,u,t,!1,s).each((function(e){s=e.container(),l=e.offset(),a=!0})),a?ye.some(fl(s,l)):ye.none()}function Mf(e,t){var n=t.collapsed,r=t.cloneRange(),i=fl.fromRangeStart(t);return Pf(e,n,!0,r).each((function(e){n&&fl.isAbove(i,e)||r.setStart(e.container(),e.offset())})),n||Pf(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),Tf(t,r)?ye.none():ye.some(r)}function Rf(e,t){return e.splitText(t)}function Ff(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset;return t===r&&Wn(t)?0<n&&n<t.nodeValue.length&&(t=(r=Rf(t,n)).previousSibling,n<i?(t=r=Rf(r,i-=n).previousSibling,i=r.nodeValue.length,n=0):i=0):(Wn(t)&&0<n&&n<t.nodeValue.length&&(t=Rf(t,n),n=0),Wn(r)&&0<i&&i<r.nodeValue.length&&(i=(r=Rf(r,i).previousSibling).nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:i}}function Bf(e){return{walk:function(t,n){return Ec(e,t,n)},split:Ff,normalize:function(t){return Mf(e,t).fold(A,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))}}}Hc.isBookmarkNode=ec;var Lf={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||Lf.metaKeyPressed(e)},metaKeyPressed:function(e){return xt.mac?e.metaKey:e.ctrlKey&&!e.altKey}},$f=Zn;Bf.compareRanges=Tf,Bf.getCaretRangeFromPoint=Of,Bf.getSelectedNode=Bs,Bf.getNode=Ls;var Vf,jf,zf=(Vf="height",jf=function(e){var t=e.dom;return $n(e)?t.getBoundingClientRect().height:t.offsetHeight},{set:function(e,t){if(!D(t)&&!t.match(/^[0-9]+$/))throw new Error(Vf+".set accepts only positive integer values. Value was "+t);var n=e.dom;mn(n)&&(n.style[Vf]=t+"px")},get:Hf,getOuter:Hf,aggregate:Uf,max:function(e,t,n){var r=Uf(e,n);return r<t?t-r:0}});function Hf(e){var t=jf(e);if(t<=0||null===t){var n=Sn(e,Vf);return parseFloat(n)||0}return t}function Uf(e,t){return W(t,(function(t,n){var r=Sn(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)}function Wf(e){return"textarea"===Tt(e)}function qf(e,t){var n=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return jn(n.offsetLeft,n.offsetTop);var o=Zt(null==r?void 0:r.pageYOffset,i.scrollTop),a=Zt(null==r?void 0:r.pageXOffset,i.scrollLeft),s=Zt(i.clientTop,n.clientTop),l=Zt(i.clientLeft,n.clientLeft);return zn(e).translate(a-l,o-s)}(e),r=zf.get(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}}function Gf(e,t,n,r){Md(e,(function(i,o){return Pd(e,t,n,r)}),n)}function Yf(e,t,n,r,i){var o={elm:r.element.dom,alignToTop:i};e.fire("ScrollIntoView",o).isDefaultPrevented()||(n(t,Qt(t).top,r,i),e.fire("AfterScrollIntoView",o))}function Kf(e,t,n,r){var i=Ot.fromDom(e.getDoc());Yf(e,i,n,qf(Ot.fromDom(t),c),r)}function Xf(e,t,n,r){var i,o=e.pos;n?en(o.left,o.top,r):(i=o.top-t+e.height,en(o.left,i,r))}function Jf(e,t,n,r,i){var o=n+t,a=r.pos.top,s=r.bottom,l=n<=s-a;a<t?Xf(r,n,!1!==i,e):o<a?Xf(r,n,l?!1!==i:!0===i,e):o<s&&!l&&Xf(r,n,!0===i,e)}function Zf(e,t,n,r){Jf(e,t,e.dom.defaultView.innerHeight,n,r)}function Qf(e,t,n,r){Jf(e,t,e.dom.defaultView.innerHeight,n,r);var i,o,a,s,l,u,c,f=(i=n.element,s=Qt(Ot.fromDom(document)),a=(o=Ad).owner(i),l=Nd(o,a),u=zn(i),c=U(l,(function(e,t){var n=zn(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0}),jn(c.left+u.left+s.left,c.top+u.top+s.top)),d=rn(window);f.top<d.y?tn(n.element,!1!==r):f.top>d.bottom&&tn(n.element,!0===r)}function ed(e,t,n){return Gf(e,Zf,t,n)}function td(e,t,n){return Kf(e,t,Zf,n)}function nd(e,t,n){return Gf(e,Qf,t,n)}function rd(e,t,n){return Kf(e,t,Qf,n)}function id(e,t,n){(e.inline?ed:nd)(e,t,n)}function od(e){var t=Fn(e).dom;return e.dom===t.activeElement}function ad(e){return void 0===e&&(e=Ot.fromDom(document)),ye.from(e.dom.activeElement).map(Ot.fromDom)}function sd(e,t){var n=In(t)?$c(t).length:Pn(t).length+1;return n<e?n:e<0?0:e}function ld(e){return Ld.range(e.start,sd(e.soffset,e.start),e.finish,sd(e.foffset,e.finish))}function ud(e,t){return!an(t.dom)&&(We(e,t)||Ue(e,t))}function cd(e){return function(t){return ud(e,t.start)&&ud(e,t.finish)}}function fd(e){return!0===e.inline||$d.isIE()}function dd(e){return Ld.range(Ot.fromDom(e.startContainer),e.startOffset,Ot.fromDom(e.endContainer),e.endOffset)}function hd(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),ye.some(t)}catch(e){return ye.none()}}function pd(e){var t,n,r=fd(e)?(t=Ot.fromDom(e.getBody()),((n=Pt(t).dom.getSelection())&&0!==n.rangeCount?ye.from(n.getRangeAt(0)):ye.none()).map(dd).filter(cd(t))):ye.none();e.bookmark=r.isSome()?r:e.bookmark}function md(e){return(e.bookmark||ye.none()).bind((function(t){return n=Ot.fromDom(e.getBody()),ye.from(t).filter(cd(n)).map(ld);var n})).bind(hd)}function gd(e){var t=ms((function(){pd(e)}),0);e.on("init",(function(){function n(){i.throttle()}var r,i,o,a,s,l;e.inline&&(r=e,i=t,ns.DOM.bind(document,"mouseup",n),r.on("remove",(function(){ns.DOM.unbind(document,"mouseup",n)}))),o=e,a=t,pt().browser.isIE()?(l=o).on("focusout",(function(){pd(l)})):(s=a,o.on("mouseup touchend",(function(e){s.throttle()}))),o.on("keyup NodeChange",(function(e){"nodechange"===e.type&&e.selectionChange||pd(o)}))})),e.on("remove",(function(){t.cancel()}))}function vd(e,t){var n=e.getParam("custom_ui_selector","","string");return null!==jd.getParent(t,(function(t){return Vd.isEditorUIElement(t)||!!n&&e.dom.is(t,n)}))}function bd(e,t){var n=t.editor;gd(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),(e.focusedEditor=n).fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){Ir.setEditorTimeout(n,(function(){var t=e.focusedEditor;vd(n,function(e){try{return ad(Fn(Ot.fromDom(e.getElement()))).fold((function(){return document.body}),(function(e){return e.dom}))}catch(e){return document.body}}(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),Id||(Id=function(t){var n=e.activeEditor;n&&function(e){if(Rn()&&u(e.target)){var t=Ot.fromDom(e.target);if(En(t)&&u(t.dom.shadowRoot)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return te(n)}}return ye.from(e.target)}(t).each((function(t){t.ownerDocument===document&&(t===document.body||vd(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},jd.bind(document,"focusin",Id))}function yd(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(jd.unbind(document,"focusin",Id),Id=null)}function wd(e,t){var n,r;n=Ot.fromDom(e.getBody()),((r=t).collapsed?ye.from(Ls(r.startContainer,r.startOffset)).map(Ot.fromDom):ye.none()).bind((function(e){return yi(e)?ye.some(e):!1===We(n,e)?ye.some(n):ye.none()})).bind((function(e){return af(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))}function _d(e){if(e.setActive)try{e.setActive()}catch(o){e.focus()}else e.focus()}function Cd(e){return e.inline?(r=e.getBody())&&(od(t=Ot.fromDom(r))||ad(Fn(n=t)).filter((function(e){return n.dom.contains(e.dom)})).isSome()):e.iframeElement&&od(Ot.fromDom(e.iframeElement));var t,n,r}function xd(e,t,n,r,i){var o=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return ye.from(o).map(Ot.fromDom).map((function(e){return r&&t.collapsed?e:$t(e,i(e,a)).getOr(e)})).bind((function(e){return En(e)?ye.some(e):Mt(e).filter(En)})).map((function(e){return e.dom})).getOr(e)}function Sd(e,t,n){return xd(e,t,!0,n,(function(e,t){return Math.min(zt(e),t)}))}function kd(e,t,n){return xd(e,t,!1,n,(function(e,t){return 0<t?t-1:t}))}function Dd(e,t){for(var n=e;e&&Wn(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n}function Od(e,t){return $(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))}function Td(e,t,n){var r=n?"lastChild":"firstChild",i=n?"prev":"next";if(e[r])return e[r];if(e!==t){var o=e[i];if(o)return o;for(var a=e.parent;a&&a!==t;a=a.parent)if(o=a[i])return o}}function Ed(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t}var Id,Nd=function(e,t){return e.view(t).fold(h([]),(function(t){var n=e.owner(t),r=Nd(e,n);return[t].concat(r)}))},Ad=Object.freeze({__proto__:null,view:function(e){var t;return(e.dom===document?ye.none():ye.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement)).map(Ot.fromDom)},owner:At}),Pd=function(e,t,n,r){var i=Ot.fromDom(e.getBody()),o=Ot.fromDom(e.getDoc());i.dom.offsetWidth;var a,s,l,u,c=(a=Ot.fromDom(n.startContainer),s=n.startOffset,l=function(e,t){var n=Pn(e);if(0===n.length||Wf(e))return{element:e,offset:t};if(t<n.length&&!Wf(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Wf(r)?{element:e,offset:t}:"img"===Tt(r)?{element:r,offset:1}:In(r)?{element:r,offset:$c(r).length}:{element:r,offset:Pn(r).length}}(a,s),u=Ot.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">\ufeff</span>'),qt(l.element,u),qf(u,(function(){return Ln(u)})));Yf(e,o,t,c,r),c.cleanup()},Md=function(e,t,n){var r=n.startContainer,i=n.startOffset,o=n.endContainer,a=n.endOffset;t(Ot.fromDom(r),Ot.fromDom(o));var s=e.dom.createRng();s.setStart(r,i),s.setEnd(o,a),e.selection.setRng(n)},Rd=sr([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Fd=(Rd.before,Rd.on,Rd.after,function(e){return e.fold(p,p,p)}),Bd=sr([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Ld={domRange:Bd.domRange,relative:Bd.relative,exact:Bd.exact,exactFromRange:function(e){return Bd.exact(e.start,e.soffset,e.finish,e.foffset)},getWin:function(e){return Pt(e.match({domRange:function(e){return Ot.fromDom(e.startContainer)},relative:function(e,t){return Fd(e)},exact:function(e,t,n,r){return e}}))},range:function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}}},$d=pt().browser,Vd={isEditorUIElement:function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")}},jd=ns.DOM,zd=function(e){return e.editorManager.setActive(e)},Hd={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ud=(Wd.create=function(e,t){var n=new Wd(e,Hd[e]||1);return t&&ie(t,(function(e,t){n.attr(t,e)})),n},Wd.prototype.replace=function(e){return e.parent&&e.remove(),this.insert(e,this),this.remove(),this},Wd.prototype.attr=function(e,t){var n,r=this;if("string"!=typeof e)return null!=e&&ie(e,(function(e,t){r.attr(t,e)})),r;if(n=r.attributes){if(void 0===t)return n.map[e];if(null===t){if(e in n.map){delete n.map[e];for(var i=n.length;i--;)if(n[i].name===e)return n.splice(i,1),r}return r}if(e in n.map){for(i=n.length;i--;)if(n[i].name===e){n[i].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}},Wd.prototype.clone=function(){var e,t=new Wd(this.name,this.type);if(e=this.attributes){var n=[];n.map={};for(var r=0,i=e.length;r<i;r++){var o=e[r];"id"!==o.name&&(n[n.length]={name:o.name,value:o.value},n.map[o.name]=o.value)}t.attributes=n}return t.value=this.value,t.shortEnded=this.shortEnded,t},Wd.prototype.wrap=function(e){return this.parent.insert(e,this),e.append(this),this},Wd.prototype.unwrap=function(){for(var e=this.firstChild;e;){var t=e.next;this.insert(e,this,!0),e=t}this.remove()},Wd.prototype.remove=function(){var e=this.parent,t=this.next,n=this.prev;return e&&(e.firstChild===this?(e.firstChild=t)&&(t.prev=null):n.next=t,e.lastChild===this?(e.lastChild=n)&&(n.next=null):t.prev=n,this.parent=this.next=this.prev=null),this},Wd.prototype.append=function(e){e.parent&&e.remove();var t=this.lastChild;return t?((t.next=e).prev=t,this.lastChild=e):this.lastChild=this.firstChild=e,e.parent=this,e},Wd.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,(e.next=t).prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,(e.prev=t).next=e),e.parent=r,e},Wd.prototype.getAll=function(e){for(var t=[],n=this.firstChild;n;n=Td(n,this))n.name===e&&t.push(n);return t},Wd.prototype.children=function(){for(var e=[],t=this.firstChild;t;t=t.next)e.push(t);return e},Wd.prototype.empty=function(){if(this.firstChild){for(var e=[],t=this.firstChild;t;t=Td(t,this))e.push(t);for(var n=e.length;n--;)(t=e[n]).parent=t.firstChild=t.lastChild=t.next=t.prev=null}return this.firstChild=this.lastChild=null,this},Wd.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this.firstChild;if(Ed(this))return!1;if(r)do{if(1===r.type){if(r.attr("data-mce-bogus"))continue;if(e[r.name])return!1;if(Ed(r))return!1}if(8===r.type)return!1;if(3===r.type&&!function(e){if(Gr(e.value)){var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)}}(r))return!1;if(3===r.type&&r.parent&&t[r.parent.name]&&Gr(r.value))return!1;if(n&&n(r))return!1}while(r=Td(r,this));return!0},Wd.prototype.walk=function(e){return Td(this,null,e)},Wd);function Wd(e,t){this.name=e,1===(this.type=t)&&(this.attributes=[],this.attributes.map={})}function qd(e){return y(e.nodeValue)&&Pe(e.nodeValue,Si)}function Gd(e){return(0===e.length?"":$(e,(function(e){return"["+e+"]"})).join(",")+",")+'[data-mce-bogus="all"]'}function Yd(e,t,n){return document.createTreeWalker(e,t,n,!1)}function Kd(e){return Yd(e,NodeFilter.SHOW_COMMENT,(function(e){return qd(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}))}function Xd(e){return Yd(e,NodeFilter.SHOW_TEXT,(function(e){if(qd(e)){var t=e.parentNode;return t&&Oe(ah,t.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_SKIP}))}function Jd(e){return null!==Kd(e).nextNode()}function Zd(e){return null!==Xd(e).nextNode()}function Qd(e,t){return null!==t.querySelector(Gd(e))}function eh(e,t){V(t.querySelectorAll(Gd(e)),(function(t){var n=Ot.fromDom(t);"all"===yn(n,"data-mce-bogus")?Ln(n):V(e,(function(e){_n(n,e)&&Cn(n,e)}))}))}function th(e){for(var t=e.nextNode();null!==t;)t.nodeValue=null,t=e.nextNode()}function nh(e,t){var n=[{condition:O(Qd,t),action:O(eh,t)},{condition:Jd,action:sh},{condition:Zd,action:lh}],r=e,i=!1;return V(n,(function(t){var n=t.condition,o=t.action;n(r)&&(i||(r=e.cloneNode(!0),i=!0),o(r))})),r}function rh(e){return{compare:function(t,n){return t.nodeName===n.nodeName&&!(!i(r(t),r(n))||!i(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))||ec(t)||ec(n));function r(t){var n={};return uh(e.getAttribs(t),(function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf("_")&&"style"!==i&&0!==i.indexOf("data-")&&(n[i]=e.getAttrib(t,i))})),n}function i(e,t){var n,r;for(r in e)if(Oe(e,r)){if(void 0===(n=t[r]))return;if(e[r]!==n)return;delete t[r]}for(r in t)if(Oe(t,r))return;return 1}}}}function ih(e){var t=[],n=(e=e||{}).indent,r=ch(e.indent_before||""),i=ch(e.indent_after||""),o=eo.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,s,l){var u,c,f,d;if(n&&r[e]&&0<t.length&&0<(d=t[t.length-1]).length&&"\n"!==d&&t.push("\n"),t.push("<",e),s)for(u=0,c=s.length;u<c;u++)f=s[u],t.push(" ",f.name,'="',o(f.value,!0),'"');t[t.length]=!l||a?">":" />",l&&n&&i[e]&&0<t.length&&0<(d=t[t.length-1]).length&&"\n"!==d&&t.push("\n")},end:function(e){var r;t.push("</",e,">"),n&&i[e]&&0<t.length&&0<(r=t[t.length-1]).length&&"\n"!==r&&t.push("\n")},text:function(e,n){0<e.length&&(t[t.length]=n?e:o(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,r){r?t.push("<?",e," ",o(r),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}}function oh(e,t){void 0===t&&(t=ai());var n=ih(e);return(e=e||{}).validate=!("validate"in e)||e.validate,{serialize:function(r){var i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;a(e),e=e.next;);}};n.reset();var a=function(e){var r=o[e.type];if(r)r(e);else{var s=e.name,l=e.shortEnded,u=e.attributes;if(i&&u&&1<u.length){var c=[];c.map={};var f=t.getElementRule(e.name);if(f){for(var d=0,h=f.attributesOrder.length;d<h;d++)(p=f.attributesOrder[d])in u.map&&(m=u.map[p],c.map[p]=m,c.push({name:p,value:m}));var p,m;for(d=0,h=u.length;d<h;d++)(p=u[d].name)in c.map||(m=u.map[p],c.map[p]=m,c.push({name:p,value:m}));u=c}}if(n.start(e.name,u,l),!l){if(e=e.firstChild)for(;a(e),e=e.next;);n.end(s)}}};return 1!==r.type||e.inner?o[11](r):a(r),n.getContent()}}}var ah=Dt.makeMap("NOSCRIPT STYLE SCRIPT XMP IFRAME NOEMBED NOFRAMES PLAINTEXT"," "),sh=f(th,Kd),lh=f(th,Xd),uh=Dt.each,ch=Dt.makeMap,fh=new Set;function dh(e,t){return Se(e.parseStyle(e.getAttrib(t,"style")))}function hh(e,t,n){return ye.from(n.container()).filter(Wn).exists((function(r){var i=e?0:-1;return t(r.data.charAt(n.offset()+i))}))}function ph(e){var t=e.container();return Wn(t)&&(0===t.data.length||ki(t.data)&&Hc.isBookmarkNode(t.parentNode))}function mh(e,t){return function(n){return ye.from(tu(e?0:-1,n)).filter(t).isSome()}}function gh(e){return Xn(e)&&"block"===Sn(Ot.fromDom(e),"display")}function vh(e){return Zn(e)&&!(Hn(t=e)&&"all"===t.getAttribute("data-mce-bogus"));var t}function bh(e){Xt(e),Bn(e,Ot.fromHtml('<br data-mce-bogus="1">'))}function yh(e){jt(e).each((function(t){Rt(t).each((function(n){mi(e)&&Fr(t)&&mi(n)&&Ln(t)}))}))}function wh(e,t){return i=A,We(r=t,n=e)?function(e,t){for(var n=k(t)?t:A,r=e.dom,i=[];null!==r.parentNode&&void 0!==r.parentNode;){var o=r.parentNode,a=Ot.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i}(n,(function(e){return i(e)||Ue(e,r)})).slice(0,-1):[];var n,r,i}function _h(e,t){return[e].concat(wh(e,t))}function Ch(e,t,n){return nf(e,t,n,ph)}function xh(e,t){return G(_h(Ot.fromDom(t.container()),e),mi)}function Sh(e,t,n){return Ch(e,t.dom,n).forall((function(e){return xh(t,n).fold((function(){return!1===eu(e,n,t.dom)}),(function(r){return!1===eu(e,n,t.dom)&&We(r,Ot.fromDom(e.container()))}))}))}function kh(e,t,n){return xh(t,n).fold((function(){return Ch(e,t.dom,n).forall((function(e){return!1===eu(e,n,t.dom)}))}),(function(t){return Ch(e,t.dom,n).isNone()}))}function Dh(e){return su(e).exists(Fr)}function Oh(e,t,n){var r=te(H(_h(Ot.fromDom(n.container()),t),mi)).getOr(t);return tf(e,r.dom,n).filter(Dh)}function Th(e,t){return su(t).exists(Fr)||Oh(!0,e,t).isSome()}function Eh(e,t){return ye.from(t.getNode(!0)).map(Ot.fromDom).exists(Fr)||Oh(!1,e,t).isSome()}function Ih(e){return fl.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()}function Nh(e,t){return te(H(_h(Ot.fromDom(t.container()),e),mi)).getOr(e)}function Ah(e,t){return Ih(t)?Zp(t):Zp(t)||of(Nh(e,t).dom,t).exists(Zp)}function Ph(e,t){return Ih(t)?Jp(t):Jp(t)||rf(Nh(e,t).dom,t).exists(Jp)}function Mh(e){return su(e).bind((function(e){return br(e,En)})).exists((function(e){return B(["pre","pre-wrap"],Sn(e,"white-space"))}))}function Rh(e,t){return!Mh(t)&&(sm(e,t)||um(e,t)||Eh(e,t)||Ah(e,t))}function Fh(e,t){return!Mh(t)&&(lm(e,t)||cm(e,t)||Th(e,t)||Ph(e,t))}function Bh(e,t){return Rh(e,t)||Fh(e,(r=(n=t).container(),i=n.offset(),Wn(r)&&i<r.data.length?fl(r,i+1):n));var n,r,i}function Lh(e,t){return cf(e.charAt(t))}function $h(e){var t=e.container();return Wn(t)&&Pe(t.data,xi)}function Vh(e,t){return ye.some(t).filter($h).bind((function(t){var n,r,i,o,a,s,l,u,c,f=t.container(),d=e,h=(a=f).data,p=fl(a,0);return(!Lh(h,0)||Bh(d,p)?(u=(s=f).data,(c=$(l=u.split(""),(function(e,t){return cf(e)&&0<t&&t<l.length-1&&nc(l[t-1])&&nc(l[t+1])?" ":e})).join(""))!==u&&(s.data=c,1)):(a.data=" "+h.slice(1),1))||(n=e,i=(r=f).data,o=fl(r,i.length-1),Lh(i,i.length-1)&&!Bh(n,o)&&(r.data=i.slice(0,-1)+" ",1))?ye.some(t):ye.none()}))}function jh(e){var t=Ot.fromDom(e.getBody());e.selection.isCollapsed()&&Vh(t,fl.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))}function zh(e,t,n){var r,i,o,a,s,l,u,c;0!==n&&(i=vr(r=Ot.fromDom(e),mi).getOr(r),o=e.data.slice(t,t+n),a=t+n>=e.data.length&&Fh(i,fl(e,e.data.length)),s=0===t&&Rh(i,fl(e,0)),e.replaceData(t,n,(u=s,c=a,W(l=o,(function(e,t){return tc(t)||cf(t)?e.previousCharIsSpace||""===e.str&&u||e.str.length===l.length-1&&c?{previousCharIsSpace:!1,str:e.str+xi}:{previousCharIsSpace:!0,str:e.str+" "}:{previousCharIsSpace:!1,str:e.str+t}}),{previousCharIsSpace:!1,str:""}).str)))}function Hh(e,t){var n=e.data.slice(t);zh(e,t,n.length-et(n).length)}function Uh(e,t){var n=e.data.slice(0,t),r=n.length-tt(n).length;zh(e,t-r,r)}function Wh(e,t,n,r){void 0===r&&(r=!0);var i=tt(e.data).length,o=r?e:t,a=r?t:e;return r?o.appendData(a.data):o.insertData(0,a.data),Ln(Ot.fromDom(a)),n&&Hh(o,i),o}function qh(e,t){return r=e,i=(n=t).container(),o=n.offset(),!1===fl.isTextPosition(n)&&i===r.parentNode&&o>fl.before(r).offset()?fl(t.container(),t.offset()-1):t;var n,r,i,o}function Gh(e){return Wr(e.previousSibling)?ye.some((t=e.previousSibling,Wn(t)?fl(t,t.data.length):fl.after(t))):e.previousSibling?sf(e.previousSibling):ye.none();var t}function Yh(e){return Wr(e.nextSibling)?ye.some((t=e.nextSibling,Wn(t)?fl(t,0):fl.before(t))):e.nextSibling?af(e.nextSibling):ye.none();var t}function Kh(e,t){return Gh(t).orThunk((function(){return Yh(t)})).orThunk((function(){return n=e,i=fl.before((r=t).previousSibling||r.parentNode),of(n,i).fold((function(){return rf(n,fl.after(r))}),ye.some);var n,r,i}))}function Xh(e,t){return Yh(t).orThunk((function(){return Gh(t)})).orThunk((function(){return rf(n=e,fl.after(r=t)).fold((function(){return of(n,fl.before(r))}),ye.some);var n,r}))}function Jh(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))}function Zh(e,t){return t&&Oe(e.schema.getBlockElements(),Tt(t))}function Qh(e){if(Kr(e)){var t=Ot.fromHtml('<br data-mce-bogus="1">');return Xt(e),Bn(e,t),ye.some(fl.before(t.dom))}return ye.none()}function ep(e,t,n,r){void 0===r&&(r=!0);var i,o,a,s,l,u,c,f,d,h,p,m,g,v,b=(m=t,g=e.getBody(),v=n.dom,(m?Xh:Kh)(g,v).map(O(qh,v))),y=vr(n,O(Zh,e),(i=e.getBody(),function(e){return e.dom===i})),w=(s=b,o=a=n,l=Oe(e.schema.getTextInlineElements(),Tt(o)),h=Rt(a).filter(In),p=Ft(a).filter(In),Ln(a),c=p,f=s,d=function(e,t,n){var r=e.dom,i=t.dom,o=r.data.length;return Wh(r,i,l),n.container()===i?fl(r,o):n},((u=h).isSome()&&c.isSome()&&f.isSome()?ye.some(d(u.getOrDie(),c.getOrDie(),f.getOrDie())):ye.none()).orThunk((function(){return l&&(h.each((function(e){return Uh(e.dom,e.dom.length)})),p.each((function(e){return Hh(e.dom,0)}))),s})));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):y.bind(Qh).fold((function(){r&&Jh(e,t,w)}),(function(n){r&&Jh(e,t,ye.some(n))}))}function tp(e){return _s(e,"td,th")}function np(e,t){return{start:e,end:t}}function rp(e,t){return _r(Ot.fromDom(e),"td,th",t)}function ip(e){return!Ue(e.start,e.end)}function op(e,t){return Pc(e.start,t).bind((function(n){return Pc(e.end,t).bind((function(e){return Ue(n,e)?ye.some(n):ye.none()}))}))}function ap(e){return function(t){return op(t,e).map((function(e){return{rng:t,table:e,cells:tp(e)}}))}}function sp(e,t,n,r){if(n.collapsed||!e.forall(ip))return ye.none();if(t.isSameTable){var i=e.bind(ap(r));return ye.some({start:i,end:i})}var o,a,s=rp(n.startContainer,r),l=rp(n.endContainer,r),u=s.bind((a=r,function(e){return Pc(e,a).bind((function(t){return ne(tp(t)).map((function(t){return np(e,t)}))}))})).bind(ap(r)),c=l.bind((o=r,function(e){return Pc(e,o).bind((function(t){return te(tp(t)).map((function(t){return np(t,e)}))}))})).bind(ap(r));return ye.some({start:u,end:c})}function lp(e,t){return Y(e,(function(e){return Ue(e,t)}))}function up(e){return pn(lp(e.cells,e.rng.start),lp(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))}function cp(e,t){var n=t.startTable,r=t.endTable,i=e.cloneRange();return n.each((function(e){return i.setStartAfter(e.dom)})),r.each((function(e){return i.setEndBefore(e.dom)})),i}function fp(e,t){var n,r,i,o,a,s,l,u,c,f,d,h,p,m,g,v,b=(n=e,function(e){return Ue(n,e)}),y=pn(rp((r=t).startContainer,i=b),rp(r.endContainer,i),np),w=(c=b,f=_((u=t).startContainer),d=_(u.endContainer),h=f.isSome(),p=d.isSome(),m=pn(f,d,Ue).getOr(!1),{startTable:f,endTable:d,isStartInTable:h,isEndInTable:p,isSameTable:m,isMultiTable:!m&&h&&p});function _(e){return Pc(Ot.fromDom(e),c)}return g=t,v=b,y.exists((function(e){return!ip(t=e)&&op(t,v).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))&&Mc(e.start,g);var t}))?y.map((function(e){return hm.singleCellTable(t,e.start)})):w.isMultiTable?sp(y,s=w,l=t,b).bind((function(e){var t=e.start,n=e.end,r=t.bind(up).getOr([]),i=n.bind(up).getOr([]);if(0<r.length&&0<i.length){var o=cp(l,s);return ye.some(hm.multiTable(r,i,o))}return ye.none()})):sp(y,o=w,a=t,b).bind((function(e){var t=e.start,n=e.end;return t.or(n)})).bind((function(e){var t=o.isSameTable,n=up(e).getOr([]);if(t&&e.cells.length===n.length)return ye.some(hm.fullTable(e.table));if(0<n.length){if(t)return ye.some(hm.partialTable(n,ye.none()));var r=cp(a,o);return ye.some(hm.partialTable(n,ye.some(Ee(Ee({},o),{rng:r}))))}return ye.none()}))}function dp(e){return V(e,(function(e){Cn(e,"contenteditable"),bh(e)})),0}function hp(e,t,n,r){var i=n.cloneRange();r?(i.setStart(n.startContainer,n.startOffset),i.setEndAfter(t.dom.lastChild)):(i.setStartBefore(t.dom.firstChild),i.setEnd(n.endContainer,n.endOffset)),mm(e,i,t,!1)}function pp(e){var t=Ac(e),n=Ot.fromDom(e.selection.getNode());Qn(n.dom)&&Kr(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),1<t.length&&L(t,(function(e){return Ue(e,n)}))&&vn(n,"data-mce-selected","1")}function mp(e,t,n){var r=e.selection.getRng();return dp(n.bind((function(n){var i,o,a,s=n.rng,l=n.isStartInTable,u=(i=l?s.endContainer:s.startContainer,ye.from(e.dom.getParent(i,e.dom.isBlock)).map(Ot.fromDom));s.deleteContents(),o=e,a=l,u.filter(Kr).each((function(e){a?Ln(e):(bh(e),o.selection.setCursorLocation(e.dom,0))}));var c=l?t[0]:t[t.length-1];return hp(e,c,r,l),Kr(c)?ye.none():ye.some(l?t.slice(1):t.slice(0,-1))})).getOr(t)),pp(e),!0}function gp(e,t,n,r){var i=e.selection.getRng(),o=t[0],a=n[n.length-1];hp(e,o,i,!0),hp(e,a,i,!1);var s=Kr(o)?t:t.slice(1),l=Kr(a)?n:n.slice(0,-1);return dp(s.concat(l)),r.deleteContents(),pp(e),!0}function vp(e,t){return ep(e,!1,t),!0}function bp(e,t){return G(_h(t,e),wi)}function yp(e,t){return(e?rm:im)(t)}function wp(e,t,n){var r=Ot.fromDom(e.getBody());return gm(r,n).fold((function(){return i=e,o=t,a=r,s=n,l=fl.fromRangeStart(i.selection.getRng()),bp(a,s).bind((function(e){return Kr(e)?vm(i,e):(t=a,n=e,r=l,Hu(o,i.getBody(),r).bind((function(e){return bp(t,Ot.fromDom(e.getNode())).map((function(e){return!1===Ue(e,n)}))})));var t,n,r})).getOr(!1)||(c=t,f=fl.fromRangeStart((u=e).selection.getRng()),yp(c,f)||tf(c,u.getBody(),f).exists((function(e){return yp(c,e)})));var i,o,a,s,l,u,c,f}),(function(n){return c=t,f=r,d=n,h=fl.fromRangeStart((u=e).selection.getRng()),(Kr(d)?vm(u,d):(o=f,s=d,l=h,Hu(a=c,(i=u).getBody(),l).bind((function(e){return r=a,u=l,c=e,af((n=s).dom).bind((function(e){return sf(n.dom).map((function(t){return r?u.isEqual(e)&&c.isEqual(t):u.isEqual(t)&&c.isEqual(e)}))})).getOr(!0)?vm(i,s):(t=s,gm(o,Ot.fromDom(e.getNode())).map((function(e){return!1===Ue(e,t)})));var t,n,r,u,c})).or(ye.some(!0)))).getOr(!1);var i,o,a,s,l,u,c,f,d,h}))}function _p(e,t){var n,r,i,o,a,s,l,u,c=Ot.fromDom(e.selection.getStart(!0)),f=Ac(e);return e.selection.isCollapsed()&&0===f.length?wp(e,t,c):(r=c,i=f,o=Ot.fromDom((n=e).getBody()),a=n.selection.getRng(),0!==i.length?mp(n,i,ye.none()):(s=n,u=a,gm(l=o,r).fold((function(){return e=s,fp(l,u).map((function(t){return t.fold(O(mm,e),O(vp,e),O(mp,e),O(gp,e))}));var e}),(function(e){return vm(s,e)})).getOr(!1)))}function Cp(e){return e.collapsed?e:(t=e,n=fl.fromRangeStart(t),r=fl.fromRangeEnd(t),i=t.commonAncestorContainer,tf(!1,i,r).map((function(e){return!eu(n,r,i)&&eu(n,e,i)?(o=n.container(),a=n.offset(),s=e.container(),l=e.offset(),(u=document.createRange()).setStart(o,a),u.setEnd(s,l),u):t;var o,a,s,l,u})).getOr(t));var t,n,r,i}function xp(e,t){var n,r,i,o,a,s=t.firstChild,l=t.lastChild;return s&&"meta"===s.name&&(s=s.next),r=l=l&&"mce_marker"===l.attr("id")?l.prev:l,i=(n=e).getNonEmptyElements(),r&&(r.isEmpty(i)||(o=r,n.getBlockElements()[o.name]&&o.firstChild&&o.firstChild===o.lastChild&&("br"===(a=o.firstChild).name||a.value===xi)))&&(l=l.prev),s&&s===l&&("ul"===s.name||"ol"===s.name)}function Sp(e){return 0<e.length&&(!(r=e[e.length-1]).firstChild||(t=r)&&t.firstChild&&t.firstChild===t.lastChild&&((n=t.firstChild).data===xi||Kn(n)))?e.slice(0,-1):e;var t,n,r}function kp(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null}function Dp(e,t){var n=fl.after(e),r=$u(t).prev(n);return r?r.toRange():null}function Op(e,t,n,r){function i(e){var r=fl.fromRangeStart(n),i=$u(t.getRoot()),o=1===e?i.prev(r):i.next(r);return!o||kp(t,o.getNode())!==E}var o,a,s,l,u,c,f,d,h,p,m,g,v,b,y,w,_,C,x,S,k,D,O,T=(o=t,u=e.serialize(r),s=(a=o.createFragment(u)).firstChild,l=a.lastChild,s&&"META"===s.nodeName&&s.parentNode.removeChild(s),l&&"mce_marker"===l.id&&l.parentNode.removeChild(l),a),E=kp(t,n.startContainer),I=Sp(H(T.firstChild.childNodes,(function(e){return"LI"===e.nodeName}))),N=t.getRoot();return i(1)?(x=N,O=(C=E).parentNode,Dt.each(I,(function(e){O.insertBefore(e,C)})),S=x,k=fl.before(C),(D=$u(S).next(k))?D.toRange():null):i(2)?(c=E,d=N,t.insertAfter((f=I).reverse(),c),Dp(f[0],d)):(p=I,m=N,g=h=E,b=(v=n).cloneRange(),y=v.cloneRange(),b.setStartBefore(g),y.setEndAfter(g),w=[b.cloneContents(),y.cloneContents()],(_=h.parentNode).insertBefore(w[0],h),Dt.each(p,(function(e){_.insertBefore(e,h)})),_.insertBefore(w[1],h),_.removeChild(h),Dp(p[p.length-1],m))}function Tp(e,t,n){var r,i,o,a,s=e.selection,l=e.dom;/^ | $/.test(t)&&(r=l,i=s.getRng(),o=t,o=Rh(a=Ot.fromDom(r.getRoot()),fl.fromRangeStart(i))?o.replace(/^ /,"&nbsp;"):o.replace(/^&nbsp;/," "),t=o=Fh(a,fl.fromRangeEnd(i))?o.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):o.replace(/&nbsp;(<br( \/)?>)?$/," "));var c=e.parser,f=n.merge,d=oh({validate:e.getParam("validate")},e.schema),h='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>',p=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(p.isDefaultPrevented())e.fire("SetContent",{content:p.content,format:"html",selection:!0,paste:n.paste});else{t=p.content,-1===(t=n.preserve_zwsp?t:Di(t)).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,h);var m,g,v=(m=s.getRng()).startContainer||(m.parentElement?m.parentElement():null),b=e.getBody();v===b&&s.isCollapsed()&&l.isBlock(b.firstChild)&&(g=b.firstChild)&&!e.schema.getShortEndedElements()[g.nodeName]&&l.isEmpty(b.firstChild)&&((m=l.createRng()).setStart(b.firstChild,0),m.setEnd(b.firstChild,0),s.setRng(m)),s.isCollapsed()||function(e){var t=e.dom,n=Cp(e.selection.getRng());e.selection.setRng(n);var r,i=t.getParent(n.startContainer,bm),o=n;null!==(r=i)&&r===t.getParent(o.endContainer,bm)&&Mc(Ot.fromDom(r),o)?mm(e,n,Ot.fromDom(i)):e.getDoc().execCommand("Delete",!1,null)}(e);var y,w,_,C,x,S,k,D,O,T,E,I,N,A,P={context:(B=s.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0},M=c.parse(t,P);if(!0===n.paste&&xp(e.schema,M)&&kp(l,B))return m=Op(d,l,s.getRng(),M),s.setRng(m),void e.fire("SetContent",p);if(function(){for(var e=M;e=e.walk();)1===e.type&&e.attr("data-mce-fragment","1")}(),"mce_marker"===(F=M.lastChild).attr("id"))for(var R=F,F=F.prev;F;F=F.walk(!0))if(3===F.type||!l.isBlock(F.name)){e.schema.isValidChild(F.parent.name,"span")&&F.parent.insert(R,F,"br"===F.name);break}if(e._selectionOverrides.showBlockCaretContainer(B),P.invalid){e.selection.setContent(h);var B=s.getNode(),$=e.getBody();for(9===B.nodeType?B=F=$:F=B;F!==$;)F=(B=F).parentNode;t=B===$?$.innerHTML:l.getOuterHTML(B),t=d.serialize(c.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return d.serialize(M)})))),B===$?l.setHTML($,t):l.setOuterHTML(B,t)}else y=e,w=t=d.serialize(M),"all"===(_=B).getAttribute("data-mce-bogus")?_.parentNode.insertBefore(y.dom.createFragment(w),_):(C=_.firstChild,x=_.lastChild,!C||C===x&&"BR"===C.nodeName?y.dom.setHTML(_,w):y.selection.setContent(w));k=f,T=(S=e).schema.getTextInlineElements(),E=S.dom,k&&(D=S.getBody(),O=rh(E),Dt.each(E.select("*[data-mce-fragment]"),(function(e){if(u(T[e.nodeName.toLowerCase()])&&X(dh(E,e),(function(e){return!fh.has(e)})))for(var t=e.parentNode;u(t)&&t!==D&&!function(e,t,n){function r(r){var i=e.getStyle(t,r),o=e.getStyle(n,r);return Re(i)&&Re(o)&&i!==o}var i=dh(e,t),o=dh(e,n);return L(i,(function(e){function t(t){return L(t,(function(t){return t===e}))}if(t(o)||!t(Xp))return r(e);var n=H(o,(function(e){return L(Xp,(function(t){return Ze(e,t)}))}));return L(n,r)}))}(E,e,t);t=t.parentNode)if(O.compare(t,e)){E.remove(e,!0);break}}))),function(e,t){var n,r=e.dom,i=e.selection;if(t){i.scrollIntoView(t);var o=wf(e.getBody(),t);if("false"===r.getContentEditable(o))return r.remove(t),i.select(o);var a,s=r.createRng(),l=t.previousSibling;Wn(l)?(s.setStart(l,l.nodeValue.length),xt.ie||(a=t.nextSibling,Wn(a)&&(l.appendData(a.data),a.parentNode.removeChild(a)))):(s.setStartBefore(t),s.setEndBefore(t));var u=r.getParent(t,r.isBlock);r.remove(t),u&&r.isEmpty(u)&&(e.$(u).empty(),s.setStart(u,0),s.setEnd(u,0),bm(u)||u.getAttribute("data-mce-fragment")||!(n=function(t){var n=fl.fromRangeStart(t);if(n=$u(e.getBody()).next(n))return n.toRange()}(s))?r.add(u,r.create("br",{"data-mce-bogus":"1"})):(s=n,r.remove(u))),i.setRng(s)}}(e,l.get("mce_marker")),I=e.getBody(),Dt.each(I.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")})),N=l,A=s.getStart(),ye.from(N.getParent(A,"td,th")).map(Ot.fromDom).each(yh),e.fire("SetContent",p),e.addVisual()}}function Ep(e){return e instanceof Ud}function Ip(e,t,n){var r;e.dom.setHTML(e.getBody(),t),!0!==n&&Cd(r=e)&&af(r.getBody()).each((function(e){var t=e.getNode(),n=fn(t)?af(t).getOr(e):e;r.selection.setRng(n.toRange())}))}function Np(e,t,n){var r,i=(r=t,Ee(Ee({format:"html"},n),{set:!0,content:Ep(r)?"":r})),o=n.no_events?i:e.fire("BeforeSetContent",i);return Ep(t)||(t=o.content),ye.from(e.getBody()).fold(h(t),(function(n){return Ep(t)?function(e,t,n,r){var i,o,a,s;i=e.parser.getNodeFilters(),o=e.parser.getAttributeFilters(),a=n,s=function(e,t){var n,r,i={},o={},s=[];for(n in a.firstChild&&ym(a.firstChild,(function(n){V(e,(function(e){e.name===n.name&&(i[e.name]?i[e.name].nodes.push(n):i[e.name]={filter:e,nodes:[n]})})),V(t,(function(e){"string"==typeof n.attr(e.name)&&(o[e.name]?o[e.name].nodes.push(n):o[e.name]={filter:e,nodes:[n]})}))})),i)Oe(i,n)&&s.push(i[n]);for(r in o)Oe(o,r)&&s.push(o[r]);return s}(i,o),V(s,(function(e){V(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}));var l=oh({validate:e.validate},e.schema).serialize(n);return r.content=Di(_i(Ot.fromDom(t))?l:Dt.trim(l)),Ip(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r),n}(e,n,t,o):(r=e,i=n,s=o,0===(a=Di(a=t)).length||/^\s+$/.test(a)?(l='<br data-mce-bogus="1">',"TABLE"===i.nodeName?a="<tr><td>"+l+"</td></tr>":/^(UL|OL)$/.test(i.nodeName)&&(a="<li>"+l+"</li>"),a=(u=Tl(r))&&r.schema.isValidChild(i.nodeName.toLowerCase(),u.toLowerCase())?(a=l,r.dom.createHTML(u,El(r),a)):a||'<br data-mce-bogus="1">',Ip(r,a,s.no_selection),r.fire("SetContent",s)):("raw"!==s.format&&(a=oh({validate:r.validate},r.schema).serialize(r.parser.parse(a,{isRootContent:!0,insert:!0}))),s.content=_i(Ot.fromDom(i))?a:Dt.trim(a),Ip(r,s.content,s.no_selection),s.no_events||r.fire("SetContent",s)),s.content);var r,i,a,s,l,u}))}function Ap(e){return k(e)?e:A}function Pp(e,t,n){var r=t(e),i=Ap(n);return r.orThunk((function(){return i(e)?ye.none():function(t){for(var n=e.dom,r=Ap(i);n.parentNode;){n=n.parentNode;var o=Ot.fromDom(n),a=t(o);if(a.isSome())return a;if(r(o))break}return ye.none()}(t)}))}function Mp(e,t,n){var r=e.formatter.get(n);if(r)for(var i=0;i<r.length;i++){var o=r[i];if(gc(o)&&!1===o.inherit&&e.dom.is(t,o.selector))return 1}}function Rp(e,t,n,r,i){var o=e.dom.getRoot();return t!==o&&(t=e.dom.getParent(t,(function(t){return!!Mp(e,t,n)||t.parentNode===o||!!_m(e,t,n,r,!0)})),!!_m(e,t,n,r,i))}function Fp(e,t,n){return!!wm(t,n.inline)||!!wm(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0)}function Bp(e,t,n,r,i,o){var a=n[r];if(k(n.onmatch))return n.onmatch(t,n,r);if(a)if(S(a.length)){for(var s in a)if(Oe(a,s)){var u="attributes"===r?e.getAttrib(t,s):fc(e,t,s),c=lc(a[s],o),f=l(u)||Fe(u);if(!f||!l(c)){if(i&&f&&!n.exact)return;if((!i||n.exact)&&!wm(u,cc(e,c,s)))return}}}else for(var d=0;d<a.length;d++)if("attributes"===r?e.getAttrib(t,a[d]):fc(e,t,a[d]))return 1;return 1}function Lp(e,t,n,r,i){if(r)return Rp(e,r,t,n,i);if(r=e.selection.getNode(),Rp(e,r,t,n,i))return!0;var o=e.selection.getStart();return!(o===r||!Rp(e,o,t,n,i))}function $p(e){return 0<function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==Cm||1<e.childNodes.length)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t}(e).length}function Vp(e){if(e){var t=new Ar(e,e);for(e=t.current();e;e=t.next())if(Wn(e))return e}return null}function jp(e){var t=Ot.fromTag("span");return bn(t,{id:xm,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&Bn(t,Ot.fromText(Cm)),t}function zp(e,t,n){void 0===n&&(n=!0);var r,i,o,a,s,l,u,c,f=e.dom,d=e.selection;$p(t)?ep(e,!1,Ot.fromDom(t),n):(r=d.getRng(),i=f.getParent(t,f.isBlock),o=r.startContainer,a=r.startOffset,s=r.endContainer,l=r.endOffset,(c=Vp(t))&&c.nodeValue.charAt(0)===Cm&&c.deleteData(0,1),u=c,f.remove(t,!0),o===u&&0<a&&r.setStart(u,a-1),s===u&&0<l&&r.setEnd(u,l-1),i&&f.isEmpty(i)&&bh(Ot.fromDom(i)),d.setRng(r))}function Hp(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(t)zp(e,t,n);else if(!(t=qu(e.getBody(),i.getStart())))for(;t=r.get(xm);)zp(e,t,!1)}function Up(e,t){return e.appendChild(t),t}function Wp(e,t){var n=U(e,(function(e,t){return Up(e,t.cloneNode(!1))}),t);return Up(n,n.ownerDocument.createTextNode(Cm))}function qp(e,t,n,r,o,a){var s,l,u=e.formatter,c=e.dom,f=H(Se(u.get()),(function(e){return e!==r&&!Pe(e,"removeformat")}));if(0<H((s=e,l=n,W(f,(function(e,t){var n=pc(s,t);return s.formatter.matchNode(l,t,{},n)?e.concat([t]):e}),[])),(function(t){return a=r,s=["inline","block","selector","attributes","styles","classes"],!L((o=e).formatter.get(t),(function(e){var t=n(e);return L(o.formatter.get(a),(function(e){var r,o=n(e),a=t,s=o;return i(r=void 0===r?b:r).eq(a,s)}))}));function n(e){return le(e,(function(e,t){return L(s,(function(e){return e===t}))}))}var o,a,s})).length){var d=n.cloneNode(!1);return c.add(t,d),u.remove(r,o,d,a),c.remove(d),ye.some(d)}return ye.none()}function Gp(e,t,n,r){var i,o,a,s,l,u,c,f,d,h,p,m,g,v,b,y=e.dom,w=e.selection,_=[],C=w.getRng(),x=C.startContainer,S=C.startOffset,k=x;for(3===x.nodeType&&(S!==x.nodeValue.length&&(i=!0),k=k.parentNode);k;){if(_m(e,k,t,n,r)){o=k;break}k.nextSibling&&(i=!0),_.push(k),k=k.parentNode}o&&(i?(a=w.getBookmark(),C.collapse(!0),s=Ff(Tc(e,C,e.formatter.get(t),!0)),e.formatter.remove(t,n,s,r),w.moveToBookmark(a)):(l=qu(e.getBody(),o),d=u=jp(!1).dom,(m=(p=e.dom).getParent(h=null!==l?l:o,O(ac,e)))&&p.isEmpty(m)?h.parentNode.replaceChild(d,h):(g=Ot.fromDom(h),v=_s(g,"br"),b=H(function(){for(var e=[],t=g.dom;t;)e.push(Ot.fromDom(t)),t=t.lastChild;return e}().slice(-1),Fr),v.length===b.length&&V(b,Ln),p.isEmpty(h)?h.parentNode.replaceChild(d,h):p.insertAfter(d,h)),c=qp(e,u,o,t,n,r),f=Wp(_.concat(c.toArray()),u),zp(e,l,!1),w.setCursorLocation(f,1),y.isEmpty(o)&&y.remove(o)))}function Yp(e,t){var n=e.schema.getTextInlineElements();return Oe(n,Tt(t))&&!Wu(t.dom)&&!cn(t.dom)}V(["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"],(function(e){fh.add(e)}));var Kp,Xp=["font","text-decoration","text-emphasis"],Jp=O(hh,!0,tc),Zp=O(hh,!1,tc),Qp=mh(!0,gh),em=mh(!1,gh),tm=mh(!0,er),nm=mh(!1,er),rm=mh(!0,fn),im=mh(!1,fn),om=mh(!0,vh),am=mh(!1,vh),sm=O(kh,!1),lm=O(kh,!0),um=O(Sh,!1),cm=O(Sh,!0),fm=O(Oh,!1),dm=O(Oh,!0),hm=sr([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),pm=function(e){var t;return(8===Et(t=e)||"#comment"===Tt(t)?Rt:jt)(e).bind(pm).orThunk((function(){return ye.some(e)}))},mm=function(e,t,n,r){void 0===r&&(r=!0),t.deleteContents();var i,o=pm(n).getOr(n),a=Ot.fromDom(e.dom.getParent(o.dom,e.dom.isBlock));return Kr(a)&&(bh(a),r&&e.selection.setCursorLocation(a.dom,0)),Ue(n,a)||V((hn(Mt(a),n)?[]:Mt(i=a).map(Pn).map((function(e){return H(e,(function(e){return!Ue(i,e)}))})).getOr([])).concat(Pn(n)),(function(e){Ue(e,a)||We(e,a)||!Kr(e)||Ln(e)})),!0},gm=function(e,t){return G(_h(t,e),(function(e){return En(e)&&"caption"===Tt(e)}))},vm=function(e,t){return bh(t),e.selection.setCursorLocation(t.dom,0),ye.some(!0)},bm=Qn,ym=function(e,t){t(e),e.firstChild&&ym(e.firstChild,t),e.next&&ym(e.next,t)},wm=uc,_m=function(e,t,n,r,i){var o=e.formatter.get(n),a=e.dom;if(o&&t)for(var s=0;s<o.length;s++){var l=o[s];if(Fp(e.dom,t,l)&&Bp(a,t,l,"attributes",i,r)&&Bp(a,t,l,"styles",i,r)){var u=l.classes;if(u)for(var c=0;c<u.length;c++)if(!e.dom.hasClass(t,lc(u[c],r)))return;return l}}},Cm=Si,xm="_mce_caret",Sm={},km=he,Dm=fe;function Om(e){return Hn(e)&&!ec(e)&&!Wu(e)&&!cn(e)}function Tm(e,t){for(var n=e;n;n=n[t]){if(Wn(n)&&Re(n.data))return e;if(Hn(n)&&!ec(n))return n}return e}function Em(e,t,n){var r=rh(e);if(t&&n&&(t=Tm(t,"previousSibling"),n=Tm(n,"nextSibling"),r.compare(t,n))){for(var i=t.nextSibling;i&&i!==n;){var o=i;i=i.nextSibling;t.appendChild(o)}return e.remove(n),Dt.each(Dt.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n}function Im(e,t,n,r){var i;r&&!1!==t.merge_siblings&&(i=Em(e,oc(r),r),Em(e,i,oc(i,!0)))}function Nm(e,t){return function(n){return!(!n||!fc(e,n,t))}}function Am(e,t,n){return function(r){var i,o;e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),i=e,"SPAN"===(o=r).nodeName&&0===i.getAttribs(o).length&&i.remove(o,!0)}}function Pm(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)}function Mm(e,t,n){var r,i=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];return Hn(i)&&(r=i.childNodes.length-1,!n&&o&&o--,i=i.childNodes[r<o?r:o]),Wn(i)&&n&&o>=i.nodeValue.length&&(i=new Ar(i,e.getBody()).next()||i),Wn(i)&&!n&&0===o&&new Ar(i,e.getBody()).prev()||i}function Rm(e,t){var n=t?"firstChild":"lastChild";if(/^(TR|TH|TD)$/.test(e.nodeName)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e}function Fm(e,t,n,r){var i=e.create(n,r);return t.parentNode.insertBefore(i,t),i.appendChild(t),i}function Bm(e,t,n,r,i){var o=Ot.fromDom(t),a=Ot.fromDom(e.create(r,i));return Kt(a,(n?Lt:Bt)(o)),n?(qt(o,a),Yt(a,o)):(Gt(o,a),Bn(a,o)),a.dom}function Lm(e,t,n,r){var i=oc(t,n,r);return l(i)||"BR"===i.nodeName||e.isBlock(i)}function $m(e,t,n,r,i){var o,a,s=e.dom,l=s,u=r;if(!(vc(a=t)&&Ng(u,a.inline)||mc(a)&&Ng(u,a.block)||gc(a)&&Hn(u)&&l.is(u,a.selector)||t.links&&"A"===r.nodeName))return Tg.keep();var c,f,d,h,p,m,g,v,b=r;if(vc(t)&&"all"===t.remove&&_(t.preserve_attributes)){var y=H(s.getAttribs(b),(function(e){return B(t.preserve_attributes,e.name.toLowerCase())}));if(s.removeAllAttribs(b),V(y,(function(e){return s.setAttrib(b,e.name,e.value)})),0<y.length)return Tg.rename("span")}if("all"!==t.remove){Ig(t.styles,(function(e,r){e=cc(s,lc(e,n),r+""),D(r)&&(r=e,i=null),!t.remove_similar&&i&&!Ng(fc(s,i,r),e)||s.setStyle(b,r,""),o=!0})),o&&""===s.getAttrib(b,"style")&&(b.removeAttribute("style"),b.removeAttribute("data-mce-style")),Ig(t.attributes,(function(e,r){var o;if(e=lc(e,n),D(r)&&(r=e,i=null),t.remove_similar||!i||Ng(s.getAttrib(i,r),e))if("class"===r&&(e=s.getAttrib(b,r))&&(o="",V(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(o+=(o?" ":"")+e)})),o))s.setAttrib(b,r,o);else{if(Eg.test(r)&&b.removeAttribute("data-mce-"+r),"style"===r&&sn(["li"])(b)&&"none"===s.getStyle(b,"list-style-type"))return b.removeAttribute(r),void s.setStyle(b,"list-style-type","none");"class"===r&&b.removeAttribute("className"),b.removeAttribute(r)}})),Ig(t.classes,(function(e){e=lc(e,n),i&&!s.hasClass(i,e)||s.removeClass(b,e)}));for(var w=s.getAttribs(b),C=0;C<w.length;C++){var x=w[C].nodeName;if(0!==x.indexOf("_")&&0!==x.indexOf("data-"))return Tg.keep()}}return"none"!==t.remove?(c=e,d=t,m=(f=b).parentNode,g=c.dom,v=Tl(c),mc(d)&&(v?m===g.getRoot()&&(d.list_block&&Ng(f,d.list_block)||V(xe(f.childNodes),(function(e){sc(c,v,e.nodeName.toLowerCase())?h?h.appendChild(e):(h=Fm(g,e,v),g.setAttribs(h,c.settings.forced_root_block_attrs)):h=null}))):g.isBlock(f)&&!g.isBlock(m)&&(Lm(g,f,!1)||Lm(g,f.firstChild,!0,!0)||f.insertBefore(g.create("br"),f.firstChild),Lm(g,f,!0)||Lm(g,f.lastChild,!1,!0)||f.appendChild(g.create("br")))),gc(p=d)&&vc(p)&&hn(ue(p,"mixed"),!0)&&!Ng(d.inline,f)||g.remove(f,!0),Tg.removed()):Tg.keep()}function Vm(e,t,n,r,i){return $m(e,t,n,r,i).fold(A,(function(t){return e.dom.rename(r,t),!0}),P)}function jm(e,t,n,r,i){function o(r){var o,a,s,l,u,c=(a=t,s=n,l=i,V(hc((o=e).dom,r.parentNode).reverse(),(function(e){var t;u||"_start"===e.id||"_end"===e.id||(t=_m(o,e,a,s,l))&&!1!==t.split&&(u=e)})),u);return function(e,t,n,r,i,o,a,s){var l,u,c=e.dom;if(n){for(var f=n.parentNode,d=r.parentNode;d&&d!==f;d=d.parentNode){for(var p=c.clone(d,!1),m=0;m<t.length&&null!==(p=function(e,t,n){return $m(e,t,s,n,n).fold(h(n),(function(t){return e.dom.createFragment().appendChild(n),e.dom.rename(n,t)}),h(null))}(e,t[m],p));m++);p&&(l&&p.appendChild(l),u=u||p,l=p)}!o||a.mixed&&c.isBlock(n)||(r=c.split(n,r)),l&&(i.parentNode.insertBefore(l,i),u.appendChild(i),vc(a)&&Im(c,a,0,l))}return r}(e,f,c,r,r,!0,d,n)}function a(t){return L(f,(function(r){return Vm(e,r,n,t,t)}))}function s(e){var t,n=m.get(e?"_start":"_end"),r=n[e?"firstChild":"lastChild"];return ec(t=r)&&Hn(t)&&("_start"===t.id||"_end"===t.id)&&(r=r[e?"firstChild":"lastChild"]),Wn(r)&&0===r.data.length&&(r=e?n.previousSibling||n.nextSibling:n.nextSibling||n.previousSibling),m.remove(n,!0),r}function l(t){var n=Tc(e,t,f,t.collapsed);if(d.split){if(n=Ff(n),(i=Mm(e,n,!0))!==(a=Mm(e,n))){if(i=Rm(i,!0),a=Rm(a,!1),Pm(m,i,a)){var r=ye.from(i.firstChild).getOr(i);return o(Bm(m,r,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void s(!0)}if(Pm(m,a,i))return r=ye.from(a.lastChild).getOr(a),o(Bm(m,r,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void s(!1);var i=Fm(m,i,"span",{id:"_start","data-mce-type":"bookmark"}),a=Fm(m,a,"span",{id:"_end","data-mce-type":"bookmark"}),l=m.createRng();l.setStartAfter(i),l.setEndBefore(a),Ec(m,l,(function(e){V(e,(function(e){ec(e)||ec(e.parentNode)||o(e)}))})),o(i),o(a),i=s(!0),a=s()}else i=a=o(i);n.startContainer=i.parentNode||i,n.startOffset=m.nodeIndex(i),n.endContainer=a.parentNode||a,n.endOffset=m.nodeIndex(a)+1}Ec(m,n,(function(e){V(e,v)}))}var c,f=e.formatter.get(t),d=f[0],p=!0,m=e.dom,g=e.selection,v=function(t){var n=!0,r=!1;Hn(t)&&m.getContentEditable(t)&&(n=p,p="true"===m.getContentEditable(t),r=!0);var i,o,s=xe(t.childNodes);if(p&&!r&&(i=a(t)||L(f,(function(e){return Fp(m,t,e)})),o=t.parentNode,!i&&u(o)&&bc(d)&&a(o)),d.deep&&s.length){for(var l=0;l<s.length;l++)v(s[l]);r&&(p=n)}V(["underline","line-through","overline"],(function(n){Hn(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&dc(m,t.parentNode)===n&&Vm(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))};if(r)return rc(r)?((c=m.createRng()).setStartBefore(r),c.setEndAfter(r),l(c)):l(r),void Sf(e,t,r,n);if("false"!==m.getContentEditable(g.getNode()))g.isCollapsed()&&vc(d)&&!Ac(e).length?Gp(e,t,n,i):(Lc(g,!0,(function(){Bc(e,l)})),vc(d)&&Lp(e,t,n,g.getStart())&&ic(m,g,g.getRng()),e.nodeChanged()),Sf(e,t,r,n);else{r=g.getNode();for(var b=0;b<f.length&&(!f[b].ceFalseOverride||!Vm(e,f[b],n,r,r));b++);Sf(e,t,r,n)}}function zm(e){return Hn(e)&&!ec(e)&&!Wu(e)&&!cn(e)}function Hm(e){return Oe(e,"vars")}function Um(e,t,n,r,i){return q(t,(function(t){var o=e.formatter.matchNode(t,n,null!=i?i:{},r);return!S(o)}),(function(t){return Mp(e,t,n)||!r&&u(e.formatter.matchNode(t,n,i,!0))}))}function Wm(e,t){var n=null!=t?t:Rg(e);return H(hc(e.dom,n),(function(e){return Hn(e)&&!cn(e)}))}function qm(e,t,n,r,i,o){var a,s,l,u,c,f,d,h,p;return null===t.get()&&(s=e,(a=t).set({}),s.on("NodeChange",(function(e){Fg(s,e.element,a.get())})),s.on("FormatApply FormatRemove",(function(e){var t=ye.from(e.node).map((function(e){return rc(e)?e:e.startContainer})).bind((function(e){return Hn(e)?ye.some(e):ye.from(e.parentElement)})).getOrThunk((function(){return Rg(s)}));Fg(s,t,a.get())}))),l=e,c=n,f=r,d=i,h=o,p=(u=t).get(),V(c.split(","),(function(e){function t(){var t=Wm(l);return Um(l,t,e,d,h).isSome()}var n,r=ue(p,e).getOrThunk((function(){var t={withSimilar:{state:ls(!1),similar:!0,callbacks:[]},withoutSimilar:{state:ls(!1),similar:!1,callbacks:[]},withVars:[]};return p[e]=t}));S(h)?((n=d?r.withSimilar:r.withoutSimilar).callbacks.push(f),1===n.callbacks.length&&n.state.set(t())):r.withVars.push({state:ls(t()),similar:d,vars:h,callback:f})})),u.set(p),{unbind:function(){var e,i=n,o=r,a=(e=t).get();V(i.split(","),(function(e){return ue(a,e).each((function(t){a[e]={withSimilar:Ee(Ee({},t.withSimilar),{callbacks:H(t.withSimilar.callbacks,(function(e){return e!==o}))}),withoutSimilar:Ee(Ee({},t.withoutSimilar),{callbacks:H(t.withoutSimilar.callbacks,(function(e){return e!==o}))}),withVars:H(t.withVars,(function(e){return e.callback!==o}))}}))})),e.set(a)}}}function Gm(e,t){var n=(t||document).createDocumentFragment();return V(e,(function(e){n.appendChild(e.dom)})),Ot.fromDom(n)}function Ym(e,t,n){return{element:e,width:t,rows:n}}function Km(e,t){return{element:e,cells:t}}function Xm(e,t){var n=parseInt(yn(e,t),10);return isNaN(n)?1:n}function Jm(e){return W(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)}function Zm(e,t){for(var n=e.rows,r=0;r<n.length;r++)for(var i=n[r].cells,o=0;o<i.length;o++)if(Ue(i[o],t))return ye.some({x:o,y:r});return ye.none()}function Qm(e,t,n,r,i){for(var o=[],a=e.rows,s=n;s<=i;s++){var l=a[s].cells,u=t<r?l.slice(t,r+1):l.slice(r,t+1);o.push(Km(a[s].element,u))}return o}function eg(e){var t=Ym(Os(e),0,[]);return V(_s(e,"tr"),(function(e,n){V(_s(e,"td,th"),(function(r,i){!function(e,t,n,r,i){for(var o=Xm(i,"rowspan"),a=Xm(i,"colspan"),s=e.rows,l=n;l<n+o;l++){s[l]||(s[l]=Km(Ts(r),[]));for(var u=t;u<t+a;u++)s[l].cells[u]=l===n&&u===t?i:Os(i)}}(t,function(e,t,n){for(;r=t,((i=e.rows)[n]?i[n].cells:[])[r];)t++;var r,i;return t}(t,i,n),n,e,r)}))})),Ym(t.element,Jm(t.rows),t.rows)}function tg(e,t){var n,r,i,o=Ot.fromDom(t.commonAncestorContainer),a=_h(o,e),s=H(a,(function(e){return Rr(e)||pi(e)})),l=(i=t,G(r=a,(function(e){return"li"===Tt(e)&&Mc(e,i)})).fold(h([]),(function(e){return G(r,(function(e){return"ul"===Tt(e)||"ol"===Tt(e)})).map((function(e){var t=Ot.fromTag(Tt(e));return xn(t,le(Dn(e),(function(e,t){return Ze(t,"list-style")}))),[Ot.fromTag("li"),t]})).getOr([])})));return $(s.concat(l.length?l:bi(n=o)?Mt(n).filter(vi).fold(h([]),(function(e){return[n,e]})):vi(n)?[n]:[]),Os)}function ng(){return Gm([])}function rg(e,t){return yr(t[0],"table",O(Ue,e)).bind((function(e){var n,r,i=t[0],o=t[t.length-1],a=eg(e);return r=o,Zm(n=a,i).bind((function(e){return Zm(n,r).map((function(t){return r=n,i=e.x,o=e.y,a=t.x,l=o<(s=t.y)?Qm(r,i,o,a,s):Qm(r,i,s,a,o),Ym(r.element,Jm(l),l);var r,i,o,a,s,l}))})).map((function(e){return Gm([(n=$((t=e).rows,(function(e){var t=$(e.cells,(function(e){var t=Ts(e);return Cn(t,"colspan"),Cn(t,"rowspan"),t})),n=Os(e.element);return Kt(n,t),n})),r=Os(t.element),Kt(i=Ot.fromTag("tbody"),n),Bn(r,i),r)]);var t,n,r,i}))})).getOrThunk(ng)}function ig(e,t){var n,r,i,o,a,s,l,u=Nc(t,e);return 0<u.length?rg(e,u):(n=e,0<(r=t).length&&r[0].collapsed?ng():(i=n,o=r[0],a=Ot.fromDom(o.cloneContents()),l=W(s=tg(i,o),(function(e,t){return Bn(t,e),t}),a),0<s.length?Gm([l]):l))}function og(e,t){return 0<=t&&t<e.length&&tc(e.charAt(t))}function ag(e,t){var n=Di(e.innerText);return t?n.replace(/^[ \f\n\r\t\v]+/,""):n}function sg(e){return Hn(e)?e.outerHTML:Wn(e)?eo.encodeRaw(e.data,!1):qn(e)?"\x3c!--"+e.data+"--\x3e":""}function lg(e,t){var n=0;V(e,(function(e){var r,i,o,a,s,l,u,c;0===e[0]?n++:1===e[0]?(a=t,s=e[1],l=n,c=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();for(e&&(n.innerHTML=e);t=n.firstChild;)r.appendChild(t);return r}(s),a.hasChildNodes()&&l<a.childNodes.length?(u=a.childNodes[l]).parentNode.insertBefore(c,u):a.appendChild(c),n++):2===e[0]&&(i=n,(r=t).hasChildNodes()&&i<r.childNodes.length&&(o=r.childNodes[i]).parentNode.removeChild(o))}))}function ug(e){var t=e.serializer.getTempAttrs(),n=nh(e.getBody(),t);return null!==n.querySelector("iframe")?{type:"fragmented",fragments:H($(xe(n.childNodes),f(Di,sg)),(function(e){return 0<e.length})),content:"",bookmark:null,beforeBookmark:null}:{type:"complete",fragments:null,content:Di(n.innerHTML),bookmark:null,beforeBookmark:null}}function cg(e,t,n){var r,i,o,a,s,l,c,f,d,h,p,m=n?t.beforeBookmark:t.bookmark;function g(e,t,n,r){for(var i=e;i-t<r&&i<n&&a[i]===s[i-t];)++i;return{start:e,end:i,diag:t}}"fragmented"===t.type?(r=t.fragments,i=e.getBody(),o=$(xe(i.childNodes),sg),lg((s=r,l=(a=o).length+s.length+2,c=new Array(l),f=new Array(l),d=function(e,t,n,r,i){var o=h(e,t,n,r);if(null===o||o.start===t&&o.diag===t-r||o.end===e&&o.diag===e-n)for(var l=e,u=n;l<t||u<r;)l<t&&u<r&&a[l]===s[u]?(i.push([0,a[l]]),++l,++u):r-n<t-e?(i.push([2,a[l]]),++l):(i.push([1,s[u]]),++u);else{d(e,o.start,n,o.start-o.diag,i);for(var c=o.start;c<o.end;++c)i.push([0,a[c]]);d(o.end,t,o.end-o.diag,r,i)}},h=function(e,t,n,r){var i=t-e,o=r-n;if(0==i||0==o)return null;var l,u,d,h,p,m=i-o,v=o+i,b=(v%2==0?v:1+v)/2;for(c[1+b]=e,f[1+b]=t+1,l=0;l<=b;++l){for(u=-l;u<=l;u+=2){for(d=u+b,u===-l||u!==l&&c[d-1]<c[d+1]?c[d]=c[d+1]:c[d]=c[d-1]+1,p=(h=c[d])-e+n-u;h<t&&p<r&&a[h]===s[p];)c[d]=++h,++p;if(m%2!=0&&m-l<=u&&u<=m+l&&f[d-m]<=c[d])return g(f[d-m],u+e-n,t,r)}for(u=m-l;u<=m+l;u+=2){for(d=u+b-m,u===m-l||u!==m+l&&f[d+1]<=f[d-1]?f[d]=f[d+1]-1:f[d]=f[d-1],p=(h=f[d]-1)-e+n-u;e<=h&&n<=p&&a[h]===s[p];)f[d]=h--,p--;if(m%2==0&&-l<=u&&u<=l&&f[d]<=c[d+m])return g(f[d],u+e-n,t,r)}}},p=[],d(0,a.length,0,s.length,p),p),i)):e.setContent(t.content,{format:"raw",no_selection:!u(m)||!Gu(m)||!m.isFakeCaret}),e.selection.moveToBookmark(m)}function fg(e){return"fragmented"===e.type?e.fragments.join(""):e.content}function dg(e){var t=Ot.fromTag("body",Bg());return ks(t,fg(e)),V(_s(t,"*[data-mce-bogus]"),Jt),t.dom.innerHTML}function hg(e,t){return!(!e||!t)&&(r=t,fg(e)===fg(r)||(n=t,dg(e)===dg(n)));var n,r}function pg(e){return 0===e.get()}function mg(e,t,n){pg(n)&&(e.typing=t)}function gg(e,t){e.typing&&(mg(e,!1,t),e.add())}function vg(e){return{undoManager:{beforeChange:function(t,n){var r=e,i=n;pg(t)&&i.set(bu(r.selection))},add:function(t,n,r,i,o,a){return function(e,t,n,r,i,o,a){var s=ug(e);if(o=Dt.extend(o=o||{},s),!1===pg(r)||e.removed)return null;var l=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:o,lastLevel:l,originalEvent:a}).isDefaultPrevented())return null;if(l&&hg(l,o))return null;t.data[n.get()]&&i.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var u=e.getParam("custom_undo_redo_levels",0,"number");if(u&&t.data.length>u){for(var c=0;c<t.data.length-1;c++)t.data[c]=t.data[c+1];t.data.length--,n.set(t.data.length)}o.bookmark=bu(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(o),n.set(t.data.length-1);var f={level:o,lastLevel:l,originalEvent:a};return 0<n.get()?(e.setDirty(!0),e.fire("AddUndo",f),e.fire("change",f)):e.fire("AddUndo",f),o}(e,t,n,r,i,o,a)},undo:function(t,n,r){return i=e,a=n,s=r,(o=t).typing&&(o.add(),o.typing=!1,mg(o,!1,a)),0<s.get()&&(s.set(s.get()-1),cg(i,l=o.data[s.get()],!0),i.setDirty(!0),i.fire("Undo",{level:l})),l;var i,o,a,s,l},redo:function(t,n){return r=e,o=n,(i=t).get()<o.length-1&&(i.set(i.get()+1),cg(r,a=o[i.get()],!1),r.setDirty(!0),r.fire("Redo",{level:a})),a;var r,i,o,a},clear:function(t,n){var r,i=e,o=n;(r=t).data=[],o.set(0),r.typing=!1,i.fire("ClearUndos")},reset:function(e){var t;(t=e).clear(),t.add()},hasUndo:function(t,n){return r=e,i=t,0<n.get()||i.typing&&i.data[0]&&!hg(ug(r),i.data[0]);var r,i},hasRedo:function(e,t){return n=e,t.get()<n.data.length-1&&!n.typing;var n},transact:function(e,t,n){return i=n,gg(r=e,t),r.beforeChange(),r.ignore(i),r.add();var r,i},ignore:function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},extra:function(t,n,r,i){var o,a,s=e,l=n,u=i;(o=t).transact(r)&&(a=o.data[l.get()].bookmark,cg(s,o.data[l.get()-1],!0),o.transact(u)&&(o.data[l.get()-1].beforeBookmark=a))}},formatter:{match:function(t,n,r,i){return Lp(e,t,n,r,i)},matchAll:function(t,n){return i=t,o=n,a=[],s={},l=(r=e).selection.getStart(),r.dom.getParent(l,(function(e){for(var t=0;t<i.length;t++){var n=i[t];!s[n]&&_m(r,e,n,o)&&(s[n]=!0,a.push(n))}}),r.dom.getRoot()),a;var r,i,o,a,s,l},matchNode:function(t,n,r,i){return _m(e,t,n,r,i)},canApply:function(t){return function(e){var n=e.formatter.get(t),r=e.dom;if(n)for(var i=hc(r,e.selection.getStart()),o=n.length-1;0<=o;o--){var a=n[o];if(!gc(a)||u(a.defaultBlock))return!0;for(var s=i.length-1;0<=s;s--)if(r.is(i[s],a.selector))return!0}return!1}(e)},closest:function(t){return r=e,i=t,ye.from(r.selection.getStart(!0)).bind((function(e){return Pp(Ot.fromDom(e),(function(e){return re(i,(function(t){return _m(r,e.dom,n=t)?ye.some(n):ye.none();var n}))}),n)})).getOrNull();function n(e){return Ue(e,Ot.fromDom(r.getBody()))}var r,i},apply:function(t,n,r){return Mg(e,t,n,r)},remove:function(t,n,r,i){return jm(e,t,n,r,i)},toggle:function(t,n,r){var i,o=t,a=n,s=r,l=(i=e).formatter.get(o);(!Lp(i,o,a,s)||"toggle"in l[0]&&!l[0].toggle?Mg:jm)(i,o,a,s)},formatChanged:function(t,n,r,i,o){return qm(e,t,n,r,i,o)}},editor:{getContent:function(t,n){return r=e,i=t,o=n,ye.from(r.getBody()).fold(h("tree"===i.format?new Ud("body",11):""),(function(e){return t=r,a=e,s=o,d=Ee(Ee({},n=i),{format:s,get:!0,getInner:!0}),h=n.no_events?d:t.fire("BeforeGetContent",d),p="raw"===h.format?Dt.trim(Di(nh(a,t.serializer.getTempAttrs()).innerHTML)):"text"===h.format?t.dom.isEmpty(a)?"":Di(a.innerText||a.textContent):"tree"===h.format?t.serializer.serialize(a,h):(u=(l=t).serializer.serialize(a,h),c=Tl(l),f=new RegExp("^(<"+c+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+c+">[\r\n]*|<br \\/>[\r\n]*)$"),u.replace(f,"")),B(["text","tree"],h.format)||_i(Ot.fromDom(a))?h.content=p:h.content=Dt.trim(p),(h.no_events?h:t.fire("GetContent",h)).content;var t,n,a,s,l,u,c,f,d,h,p}));var r,i,o},setContent:function(t,n){return Np(e,t,n)},insertContent:function(t,n){return Tp(e,t,n)},addVisual:function(t){var n,r=t,i=(n=e).dom,o=u(r)?r:n.getBody();S(n.hasVisual)&&(n.hasVisual=n.getParam("visual",!0,"boolean")),V(i.select("table,a",o),(function(e){switch(e.nodeName){case"TABLE":var t=n.getParam("visual_table_class","mce-item-table","string"),r=i.getAttrib(e,"border");r&&"0"!==r||!n.hasVisual?i.removeClass(e,t):i.addClass(e,t);break;case"A":var o,a;i.getAttrib(e,"href")||(o=i.getAttrib(e,"name")||e.id,a=n.getParam("visual_anchor_class","mce-item-anchor","string"),o&&n.hasVisual?i.addClass(e,a):i.removeClass(e,a))}})),n.fire("VisualAid",{element:r,hasVisual:n.hasVisual})}},selection:{getContent:function(t,n){return function(e,t,n){var r,i=(r=t,Ee(Ee({},n=void 0===n?{}:n),{format:r,get:!0,selection:!0})),o=e.fire("BeforeGetContent",i);if(o.isDefaultPrevented())return e.fire("GetContent",o),o.content;if("text"===o.format)return h=e,ye.from(h.selection.getRng()).map((function(e){var t=ye.from(h.dom.getParent(e.commonAncestorContainer,h.dom.isBlock)),n=h.getBody(),r=t.map((function(e){return e.nodeName})).getOr("div").toLowerCase(),i=xt.browser.isIE()&&"pre"!==r,o=h.dom.add(n,r,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},e.cloneContents()),a=ag(o,i),s=Di(o.textContent);if(h.dom.remove(o),og(s,0)||og(s,s.length-1)){var l=ag(t.getOr(n),i),u=l.indexOf(a);return-1===u?a:(og(l,u-1)?" ":"")+a+(og(l,u+a.length)?" ":"")}return a})).getOr("");o.getInner=!0;var a,s,l,u,c,f,d,h,p=(s=o,l=(a=e).selection.getRng(),u=a.dom.create("body"),c=a.selection.getSel(),f=Od(a,Ic(c)),(d=s.contextual?ig(Ot.fromDom(a.getBody()),f).dom:l.cloneContents())&&u.appendChild(d),a.selection.serializer.serialize(u,s));return"tree"===o.format?p:(o.content=e.selection.isCollapsed()?"":p,e.fire("GetContent",o),o.content)}(e,t,n)}},raw:{getModel:function(){return ye.none()}}}}function bg(e){return Oe(e.plugins,"rtc")}function yg(e){var t=e;return ue(e.plugins,"rtc").bind((function(e){return ye.from(e.setup)})).fold((function(){return t.rtcInstance=vg(e),ye.none()}),(function(e){var n,r;return t.rtcInstance=(n=h(null),r=h(""),{undoManager:{beforeChange:c,add:n,undo:n,redo:n,clear:c,reset:c,hasUndo:A,hasRedo:A,transact:n,ignore:c,extra:c},formatter:{match:A,matchAll:h([]),matchNode:h(void 0),canApply:A,closest:r,apply:c,remove:c,toggle:c,formatChanged:h({unbind:c})},editor:{getContent:r,setContent:r,insertContent:c,addVisual:c},selection:{getContent:r},raw:{getModel:h(ye.none())}}),ye.some((function(){return e().then((function(e){return t.rtcInstance=(r=e.undoManager,i=e.formatter,o=e.editor,a=e.selection,s=e.raw,{undoManager:{beforeChange:r.beforeChange,add:r.add,undo:r.undo,redo:r.redo,clear:r.clear,reset:r.reset,hasUndo:r.hasUndo,hasRedo:r.hasRedo,transact:function(e,t,n){return r.transact(n)},ignore:function(e,t){return r.ignore(t)},extra:function(e,t,n,i){return r.extra(n,i)}},formatter:{match:function(e,t,r,o){return i.match(e,n(t),o)},matchAll:i.matchAll,matchNode:i.matchNode,canApply:function(e){return i.canApply(e)},closest:function(e){return i.closest(e)},apply:function(e,t,r){return i.apply(e,n(t))},remove:function(e,t,r,o){return i.remove(e,n(t))},toggle:function(e,t,r){return i.toggle(e,n(t))},formatChanged:function(e,t,n,r,o){return i.formatChanged(t,n,r,o)}},editor:{getContent:function(e,t){return o.getContent(e)},setContent:function(e,t){return o.setContent(e,t)},insertContent:function(e,t){return o.insertContent(e)},addVisual:o.addVisual},selection:{getContent:function(e,t){return a.getContent(t)}},raw:{getModel:function(){return ye.some(s.getRawModel())}}}),e.rtc.isRemote;function n(e){return w(e)?e:{}}var r,i,o,a,s}))}))}))}function wg(e){return e.rtcInstance||vg(e)}function _g(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")}function Cg(e){return 0===e.dom.length?(Ln(e),ye.none()):ye.some(e)}function xg(e,t,n,r){e.bind((function(e){return(r?Uh:Hh)(e.dom,r?e.dom.length:0),t.filter(In).map((function(t){var i=n,o=r,a=e.dom,s=t.dom,l=(o?a:s).length;o?(Wh(a,s,!1,!o),i.setStart(s,l)):(Wh(s,a,!1,!o),i.setEnd(s,l))}))})).orThunk((function(){var e=r;return t.filter((function(e){return Hc.isBookmarkNode(e.dom)})).bind(e?Ft:Rt).or(t).filter(In).map((function(e){var t,n=r;Mt(t=e).each((function(e){var r=t.dom;n&&Rh(e,fl(r,0))?Hh(r,0):!n&&Fh(e,fl(r,r.length))&&Uh(r,r.length)}))}))}))}function Sg(e,t,n){var r,i=(r=t,Ee(Ee({format:"html"},n=void 0===n?{}:n),{set:!0,selection:!0,content:r})),o=i;if(!i.no_events){var a=e.fire("BeforeSetContent",i);if(a.isDefaultPrevented())return void e.fire("SetContent",a);o=a}o.content=function(e,t){if("raw"===t.format)return t.content;var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),i=r?{context:r.nodeName.toLowerCase()}:{},o=e.parser.parse(t.content,Ee(Ee({isRootContent:!0,forced_root_block:!1},i),t));return oh({validate:e.validate},e.schema).serialize(o)}(e,o);var s=e.selection.getRng();!function(e,t){var n=ye.from(t.firstChild).map(Ot.fromDom),r=ye.from(t.lastChild).map(Ot.fromDom);e.deleteContents(),e.insertNode(t);var i=n.bind(Rt).filter(In).bind(Cg),o=r.bind(Ft).filter(In).bind(Cg);xg(i,n,e,!0),xg(o,r,e,!1),e.collapse(!1)}(s,s.createContextualFragment(o.content)),e.selection.setRng(s),id(e,s),o.no_events||e.fire("SetContent",o)}function kg(e,t,n){var r;e&&Oe(e,t)&&(0===(r=H(e[t],(function(e){return e!==n}))).length?delete e[t]:e[t]=r)}Kp=function(e){var t,n=e.selection.getRng(),r=sn(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),Dm(km(km(t,r),(function(e){return r(e.previousSibling)&&-1!==pe(t,e.previousSibling)})),(function(e){var t,n=e.previousSibling;Ja(t=e).remove(),Ja(n).append("<br><br>").append(t.childNodes)})))},Sm["pre"]||(Sm.pre=[]),Sm.pre.push(Kp);var Dg=Dt.each,Og=function(e,t,n){Dg(e.childNodes,(function(e){Om(e)&&(t(e)&&n(e),e.hasChildNodes()&&Og(e,t,n))}))},Tg=sr([{keep:[]},{rename:["name"]},{removed:[]}]),Eg=/^(src|href|style)$/,Ig=Dt.each,Ng=uc,Ag=Dt.each,Pg=Dt.each,Mg=function(e,t,n,r){function i(e,t){var i;k((t=void 0===t?h:t).onformat)&&t.onformat(e,t,n,r),Pg(t.styles,(function(t,r){m.setStyle(e,r,lc(t,n))})),!t.styles||(i=m.getAttrib(e,"style"))&&m.setAttrib(e,"data-mce-style",i),Pg(t.attributes,(function(t,r){m.setAttrib(e,r,lc(t,n))})),Pg(t.classes,(function(t){t=lc(t,n),m.hasClass(e,t)||m.addClass(e,t)}))}function o(e,t){var n=!1;return Pg(e,(function(e){return!!gc(e)&&(u(e.collapsed)&&e.collapsed!==p||!m.is(t,e.selector)||Wu(t)?void 0:(i(t,e),!(n=!0)))})),n}function a(r,a,s){var l=[],c=!0,f=h.inline||h.block,p=function(e){if(y(e)){var t=m.create(e);return i(t),t}return null}(f);Ec(r,a,(function(a){var m,g=function(a){var v=!1,b=c,y=a.nodeName.toLowerCase(),w=a.parentNode,_=w.nodeName.toLowerCase();if(Hn(a)&&r.getContentEditable(a)&&(b=c,c="true"===r.getContentEditable(a),v=!0),Kn(a)&&!function(e,t,n,r){if(e.getParam("format_empty_lines",!1,"boolean")&&vc(t)){var i=ii(e.schema),o=(a=Ot.fromDom(n),l=function(e){return Wu(e.dom)},((u=(s=a).dom).parentNode?Tr(Ot.fromDom(u.parentNode),(function(e){return!Ue(s,e)&&l(e)})):ye.none()).isSome());return ce(i,r)&&Kr(Ot.fromDom(n.parentNode),!1)&&!o}var a,s,l,u}(e,h,a,_))return m=null,void(mc(h)&&r.remove(a));if(mc(h)&&h.wrapper&&_m(e,a,t,n))m=null;else{if(c&&!v&&mc(h)&&!h.wrapper&&ac(e,y)&&sc(e,_,f)){var C=r.rename(a,f);return i(C),l.push(C),void(m=null)}if(gc(h)){var x=o(d,a);if(!x&&u(w)&&bc(h)&&(x=o(d,w)),!vc(h)||x)return void(m=null)}!c||v||!sc(e,f,y)||!sc(e,_,f)||!s&&Wn(a)&&ki(a.data)||Wu(a)||vc(h)&&r.isBlock(a)?(m=null,V(xe(a.childNodes),g),v&&(c=b),m=null):(m||(m=r.clone(p,!1),a.parentNode.insertBefore(m,a),l.push(m)),m.appendChild(a))}};V(a,g)})),!0===h.links&&V(l,(function(e){var t=function(e){"A"===e.nodeName&&i(e,h),V(xe(e.childNodes),t)};t(e)})),V(l,(function(o){var a,s,c,f,p,m,g,v,b,y,w,_,C,x,S,k,D,O,T=(a=0,V(o.childNodes,(function(e){var t;u(t=e)&&Wn(t)&&0===t.length||ec(e)||a++})),a);function E(e){var t;1===e.nodeType&&e.parentNode&&1===e.parentNode.nodeType&&(t=dc(C,e.parentNode),C.getStyle(e,"color")&&t?C.setStyle(e,"text-decoration",t):C.getStyle(e,"text-decoration")===t&&C.setStyle(e,"text-decoration",null))}!(1<l.length)&&r.isBlock(o)||0!==T?(vc(h)||mc(h)&&h.wrapper)&&(h.exact||1!==T||(o=G((_=o).childNodes,zm).filter((function(e){return Fp(r,e,h)})).map((function(e){var t=r.clone(e,!1);return i(t),r.replace(t,_,!0),r.remove(e,!0),t})).getOr(_)),k=e,D=n,O=o,Ag(d,(function(e){var t,n,r;vc(e)&&Ag(k.dom.select(e.inline,O),(function(t){Om(t)&&Vm(k,e,D,t,e.exact?t:null)})),t=k.dom,(n=e).clear_child_styles&&(r=n.links?"*:not(a)":"*",Dg(t.select(r,O),(function(e){Om(e)&&Dg(n.styles,(function(n,r){t.setStyle(e,r,"")}))})))})),v=h,_m(g=e,(w=o).parentNode,b=t,y=n)&&Vm(g,v,y,w)||v.merge_with_parents&&g.dom.getParent(w.parentNode,(function(e){if(_m(g,e,b,y))return Vm(g,v,y,w),!0})),m=o,(p=h).styles&&p.styles.backgroundColor&&Og(m,Nm(r,"fontSize"),Am(r,"backgroundColor",lc(p.styles.backgroundColor,n))),C=r,S=o,(x=h).styles&&(x.styles.color||x.styles.textDecoration)&&(Dt.walk(S,E,"childNodes"),E(S)),s=r,f=o,!vc(c=h)||"sub"!==c.inline&&"sup"!==c.inline||(Og(f,Nm(s,"fontSize"),Am(s,"fontSize","")),s.remove(s.select("sup"===c.inline?"sub":"sup",f),!0)),Im(r,h,0,o)):r.remove(o,!0)}))}var s,l,c,f,d=e.formatter.get(t),h=d[0],p=!r&&e.selection.isCollapsed(),m=e.dom,g=e.selection;if("false"!==m.getContentEditable(g.getNode()))h&&(r?rc(r)?o(d,r)||((s=m.createRng()).setStartBefore(r),s.setEndAfter(r),a(m,Tc(e,s,d),!0)):a(m,r,!0):p&&vc(h)&&!Ac(e).length?function(e,t,n){var r,i=e.selection,o=i.getRng(),a=o.startOffset,s=o.startContainer.nodeValue,l=qu(e.getBody(),i.getStart());l&&(r=Vp(l));var u,c,f,d,h=/[^\s\u00a0\u00ad\u200b\ufeff]/;s&&0<a&&a<s.length&&h.test(s.charAt(a))&&h.test(s.charAt(a-1))?(u=i.getBookmark(),o.collapse(!0),c=Ff(Tc(e,o,e.formatter.get(t))),e.formatter.apply(t,n,c),i.moveToBookmark(u)):(l&&r.nodeValue===Cm||(f=e.getDoc(),d=jp(!0).dom,r=(l=f.importNode(d,!0)).firstChild,o.insertNode(l),a=1),e.formatter.apply(t,n,l),i.setCursorLocation(r,a))}(e,t,n):(l=g.getNode(),c=d[0],e.settings.forced_root_block||!c.defaultBlock||m.getParent(l,m.isBlock)||Mg(e,c.defaultBlock),g.setRng(Cp(g.getRng())),Lc(g,!0,(function(){Bc(e,(function(t,n){var r=n?t:Tc(e,t,d);a(m,r,!1)}))})),ic(m,g,g.getRng()),e.nodeChanged()),f=e,Dm(Sm[t],(function(e){e(f)}))),xf(e,t,r,n);else{r=g.getNode();for(var v=0,b=d.length;v<b;v++){var w=d[v];if(w.ceFalseOverride&&gc(w)&&m.is(r,w.selector)){i(r,w);break}}xf(e,t,r,n)}},Rg=function(e){return e.selection.getStart()},Fg=function(e,t,n){var r=Wm(e,t);ie(n,(function(n,i){function o(n){var o,a=Um(e,r,i,n.similar,Hm(n)?n.vars:void 0),s=a.isSome();n.state.get()!==s&&(n.state.set(s),o=a.getOr(t),Hm(n)?n.callback(s,{node:o,format:i,parents:r}):V(n.callbacks,(function(e){return e(s,{node:o,format:i,parents:r})})))}V([n.withSimilar,n.withoutSimilar],o),V(n.withVars,o)}))},Bg=Ne((function(){return document.implementation.createHTMLDocument("undo")}));function Lg(e){return e.select}function $g(e){return e&&e.ownerDocument&&We(Ot.fromDom(e.ownerDocument),Ot.fromDom(e))}function Vg(e,t,n,r){function i(e,t){return Sg(r,e,t)}function o(){var t=s(),n=null==t?void 0:t.anchorNode,r=null==t?void 0:t.focusNode;if(!t||!n||!r||an(n)||an(r))return!0;var i=e.createRng();i.setStart(n,t.anchorOffset),i.collapse(!0);var o=e.createRng();return o.setStart(r,t.focusOffset),o.collapse(!0),i.compareBoundaryPoints(i.START_TO_START,o)<=0}function a(e){var t=g();t.collapse(!!e),v(t)}function s(){return t.getSelection?t.getSelection():t.document.selection}var l,c,f,d,h,p,m=function(e,t){return h||(h={},p={},d.on("NodeChange",(function(e){var t=e.element,n=C(t),r={};Dt.each(h,(function(e,t){_(t,n).each((function(i){p[t]||(V(e,(function(e){e(!0,{node:i,selector:t,parents:n})})),p[t]=e),r[t]=e}))})),Dt.each(p,(function(e,i){r[i]||(delete p[i],Dt.each(e,(function(e){e(!1,{node:t,selector:i,parents:n})})))}))}))),h[e]||(h[e]=[]),h[e].push(t),_(e,C(d.selection.getStart())).each((function(){p[e]=h[e]})),{unbind:function(){kg(h,e,t),kg(p,e,t)}}},g=function(){function n(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(e){return-1}}var i,o,a,u=t.document;if(void 0!==r.bookmark&&!1===Cd(r)){var f=md(r);if(f.isSome())return f.map((function(e){return Od(r,[e])[0]})).getOr(u.createRange())}try{(i=s())&&!an(i.anchorNode)&&(o=0<i.rangeCount?i.getRangeAt(0):(i.createRange?i:u).createRange(),o=Od(r,[o])[0])}catch(n){}return(o=o||(u.createRange?u.createRange():u.body.createTextRange())).setStart&&9===o.startContainer.nodeType&&o.collapsed&&(a=e.getRoot(),o.setStart(a,0),o.setEnd(a,0)),l&&c&&(0===n(o.START_TO_START,o,l)&&0===n(o.END_TO_END,o,l)?o=c:c=l=null),o},v=function(e,t){var n;if((i=e)&&(Lg(i)||$g(i.startContainer)&&$g(i.endContainer))){var i,o=Lg(e)?e:null;if(o){c=null;try{o.select()}catch(e){}}else{var a=s();if(e=r.fire("SetSelectionRange",{range:e,forward:t}).range,a){c=e;try{a.removeAllRanges(),a.addRange(e)}catch(e){}!1===t&&a.extend&&(a.collapse(e.endContainer,e.endOffset),a.extend(e.startContainer,e.startOffset)),l=0<a.rangeCount?a.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!a.setBaseAndExtent||xt.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset])&&"IMG"===n.tagName&&(a.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),a.anchorNode===e.startContainer&&a.focusNode===e.endContainer||a.setBaseAndExtent(n,0,n,1)),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},b={bookmarkManager:null,controlSelection:null,dom:f=e,win:t,serializer:n,editor:d=r,collapse:a,setCursorLocation:function(t,n){var i=e.createRng();u(t)&&u(n)?(i.setStart(t,n),i.setEnd(t,n),v(i),a(!1)):(Rc(e,i,r.getBody(),!0),v(i))},getContent:function(e){return n=(t=void 0===(t=e)?{}:t).format||"html",i=t,_g(r).selection.getContent(n,i);var t,n,i},setContent:i,getBookmark:function(e,t){return y.getBookmark(e,t)},moveToBookmark:function(e){return y.moveToBookmark(e)},select:function(t,n){var r=e,i=n;return ye.from(t).map((function(e){var t=r.nodeIndex(e),n=r.createRng();return n.setStart(e.parentNode,t),n.setEnd(e.parentNode,t+1),i&&(Rc(r,n,e,!0),Rc(r,n,e,!1)),n})).each(v),t},isCollapsed:function(){var e=g(),t=s();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},isForward:o,setNode:function(t){return i(e.getOuterHTML(t)),t},getNode:function(){return function(e,t){if(!t)return e;var n=t.startContainer,r=t.endContainer,i=t.startOffset,o=t.endOffset,a=t.commonAncestorContainer;return!t.collapsed&&(n===r&&o-i<2&&n.hasChildNodes()&&(a=n.childNodes[i]),3===n.nodeType&&3===r.nodeType&&(n=n.length===i?Dd(n.nextSibling,!0):n.parentNode,r=0===o?Dd(r.previousSibling,!1):r.parentNode,n&&n===r))?n:a&&3===a.nodeType?a.parentNode:a}(r.getBody(),g())},getSel:s,setRng:v,getRng:g,getStart:function(e){return Sd(r.getBody(),g(),e)},getEnd:function(e){return kd(r.getBody(),g(),e)},getSelectedBlocks:function(t,n){return function(e,t,n,r){var i=[],o=e.getRoot();if(n=e.getParent(n||Sd(o,t,t.collapsed),e.isBlock),r=e.getParent(r||kd(o,t,t.collapsed),e.isBlock),n&&n!==o&&i.push(n),n&&r&&n!==r)for(var a,s=new Ar(n,o);(a=s.next())&&a!==r;)e.isBlock(a)&&i.push(a);return r&&n!==r&&r!==o&&i.push(r),i}(e,g(),t,n)},normalize:function(){var t=g();if(1<Ic(s()).length||!Fc(r))return t;var n=Mf(e,t);return n.each((function(e){v(e,o())})),n.getOr(t)},selectorChanged:function(e,t){return m(e,t),b},selectorChangedWithUnbind:m,getScrollContainer:function(){for(var t,n=e.getRoot();n&&"BODY"!==n.nodeName;){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:function(e,t){u(e)?(r.inline?td:rd)(r,e,t):id(r,g(),t)},placeCaretAt:function(e,t){return v(Of(e,t,r.getDoc()))},getBoundingClientRect:function(){var e=g();return e.collapsed?fl.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){t=l=c=null,w.destroy()}},y=Hc(b),w=kf(b,r);function _(e,t){return G(t,(function(t){return f.is(t,e)}))}function C(e){return f.getParents(e,null,f.getRoot())}return b.bookmarkManager=y,b.controlSelection=w,b}function jg(e,t){var n,r,i,o,a=li();t.convert_fonts_to_spans&&(r=e,i=a,o=Dt.explode(t.font_size_legacy_values),r.addNodeFilter("font",(function(e){V(e,(function(e){var t,n=i.parse(e.attr("style")),r=e.attr("color"),a=e.attr("face"),s=e.attr("size");r&&(n.color=r),a&&(n["font-family"]=a),s&&(n["font-size"]=o[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",i.serialize(n)),t=e,V(["color","face","size"],(function(e){t.attr(e,null)}))}))}))),n=a,e.addNodeFilter("strike",(function(e){V(e,(function(e){var t=n.parse(e.attr("style"));t["text-decoration"]="line-through",e.name="span",e.attr("style",n.serialize(t))}))}))}function zg(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return{type:t=r?r[1]:t,data:n[1]}}function Hg(e,t){var n;try{n=atob(t)}catch(e){return ye.none()}for(var r=new Uint8Array(n.length),i=0;i<r.length;i++)r[i]=n.charCodeAt(i);return ye.some(new Blob([r],{type:e}))}function Ug(e){return 0===e.indexOf("blob:")?(t=e,new Er((function(e,n){function r(){n("Cannot convert "+t+" to Blob. Resource might not exist or is inaccessible.")}try{var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(){200===i.status?e(i.response):r()},i.onerror=r,i.send()}catch(e){r()}}))):0===e.indexOf("data:")?(n=e,new Er((function(e){var t=zg(n);Hg(t.type,t.data).fold((function(){return e(new Blob([]))}),e)}))):null;var t,n}function Wg(e){return(e||"blobid")+Jg++}function qg(e,t){var n={};return{findAll:function(r,i){i=i||P;var o=$(H(r?xe(r.getElementsByTagName("img")):[],(function(t){var n=t.src;return xt.fileApi&&!t.hasAttribute("data-mce-bogus")&&!t.hasAttribute("data-mce-placeholder")&&n&&n!==xt.transparentSrc&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&i(t):0===n.indexOf("data:")&&i(t))})),(function(e){if(void 0!==n[e.src])return new Er((function(t){n[e.src].then((function(n){return"string"==typeof n?n:void t({image:e,blobInfo:n.blobInfo})}))}));var r=new Er((function(n,r){var i,o,a,s,l,u,c,f,d;i=t,a=n,s=r,0!==(o=e).src.indexOf("blob:")?(u=(l=zg(o.src)).data,c=l.type,f=u,(d=i.getByData(f,c))?a({image:o,blobInfo:d}):Ug(o.src).then((function(e){d=i.create(Wg(),e,f),i.add(d),a({image:o,blobInfo:d})}),(function(e){s(e)}))):(d=i.getByUri(o.src))?a({image:o,blobInfo:d}):Ug(o.src).then((function(e){var t=e;new Er((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)})).then((function(t){f=zg(t).data,d=i.create(Wg(),e,f),i.add(d),a({image:o,blobInfo:d})}))}),(function(e){s(e)}))})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r}));return Er.all(o)}}}function Gg(e,t){return e.replace(t.re,(function(e){return ue(t.uris,e).getOr(e)}))}function Yg(e,t,n,r){(e.padd_empty_with_br||t.insert)&&n[r.name]?r.empty().append(new Ud("br",1)).shortEnded=!0:r.empty().append(new Ud("#text",3)).value=xi}function Kg(e,t,n,r){return r.isEmpty(t,n,(function(t){return(n=e.getElementRule(t.name))&&n.paddEmpty;var n}))}function Xg(e,t){var n,r,i,o=e.schema;function a(e){var t,n,o=e.attr("src");(t=e).attr("src")===xt.transparentSrc||u(t.attr("data-mce-placeholder"))||u(e.attr("data-mce-bogus"))||((n=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(o))?ye.some({type:n[1],data:decodeURIComponent(n[2])}):ye.none()).filter((function(){return function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),ie(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0}(e,r)})).bind((function(e){var t=e.type,n=e.data;return ye.from(i.getByData(n,t)).orThunk((function(){return Hg(t,n).map((function(e){var t=i.create(Wg(),e,n);return i.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))}t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,n,r){var i,a,s,l,u,c,f,d,h=e.length,p=Dt.extend({},o.getBlockElements()),m=o.getNonEmptyElements(),g=o.getWhiteSpaceElements();for(p.body=1,i=0;i<h;i++)if(s=(a=e[i]).parent,p[a.parent.name]&&a===s.lastChild){for(u=a.prev;u;){if("span"!==(c=u.name)||"bookmark"!==u.attr("data-mce-type")){"br"===c&&(a=null);break}u=u.prev}a&&(a.remove(),Kg(o,m,g,s)&&(f=o.getElementRule(s.name))&&(f.removeEmpty?s.remove():f.paddEmpty&&Yg(t,r,p,s)))}else{for(l=a;s&&s.firstChild===l&&s.lastChild===l&&!p[(l=s).name];)s=s.parent;l===s&&!0!==t.padd_empty_with_br&&((d=new Ud("#text",3)).value=xi,a.replace(d))}})),e.addAttributeFilter("href",(function(e){var n,r,i=e.length;if(!t.allow_unsafe_link_target)for(;i--;){var o=e[i];"a"===o.name&&"_blank"===o.attr("target")&&o.attr("rel",(r=void 0,r=(n=o.attr("rel"))?Dt.trim(n):"",/\b(noopener)\b/g.test(r)?r:r.split(" ").filter((function(e){return 0<e.length})).concat(["noopener"]).sort().join(" ")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){for(var t,n,r,i,o=e.length;o--;)if("a"===(i=e[o]).name&&i.firstChild&&!i.attr("href"))for(r=i.parent,t=i.lastChild;n=t.prev,r.insert(t,i),t=n;);})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){for(var t,n,r,i=e.length;i--;)"ul"!==(r=(n=e[i]).parent).name&&"ol"!==r.name||(n.prev&&"li"===n.prev.name?n.prev.append(n):((t=new Ud("li",1)).attr("style","list-style-type: none"),n.wrap(t)))})),t.validate&&o.getValidClasses()&&e.addAttributeFilter("class",(function(e){for(var t=o.getValidClasses(),n=e.length;n--;){for(var r=e[n],i=r.attr("class").split(" "),a="",s=0;s<i.length;s++){var l=i[s],u=!1,c=t["*"];c&&c[l]&&(u=!0),c=t[r.name],(u=!(u||!c||!c[l])||u)&&(a&&(a+=" "),a+=l)}a.length||(a=null),r.attr("class",a)}})),n=e,(i=(r=t).blob_cache)&&n.addAttributeFilter("src",(function(e){return V(e,a)}))}var Jg=0,Zg=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},Qg=Dt.each,ev=Dt.trim,tv="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),nv={ftp:21,http:80,https:443,mailto:25},rv=["img","video"],iv=(ov.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return{type:t=r?r[1]:t,data:n[1]}},ov.isDomSafe=function(e,t,n){if((n=void 0===n?{}:n).allow_script_urls)return!0;var r,i,o,a,s=eo.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{s=decodeURIComponent(s)}catch(e){s=unescape(s)}return!(/((java|vb)script|mhtml):/i.test(s)||(i=s,o=t,!(r=n).allow_html_data_urls&&(/^data:image\//i.test(i)?(u(a=r.allow_svg_data_urls)?!a:!u(o)||!B(rv,o))&&/^data:image\/svg\+xml/i.test(i):/^data:/i.test(i))))},ov.getDocumentBaseUrl=function(e){var t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname;return/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},ov.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},ov.prototype.toRelative=function(e){var t;if("./"===e)return e;var n=new ov(e,{base_uri:this});if("mce_host"!==n.host&&this.host!==n.host&&n.host||this.port!==n.port||this.protocol!==n.protocol&&""!==n.protocol)return n.getURI();var r=this.getURI(),i=n.getURI();return r===i||"/"===r.charAt(r.length-1)&&r.substr(0,r.length-1)===i?r:(t=this.toRelPath(this.path,n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),t)},ov.prototype.toAbsolute=function(e,t){var n=new ov(e,{base_uri:this});return n.getURI(t&&this.isSameOrigin(n))},ov.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=nv[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},ov.prototype.toRelPath=function(e,t){var n,r,i=0,o="",a=e.substring(0,e.lastIndexOf("/")).split("/"),s=t.split("/");if(a.length>=s.length)for(n=0,r=a.length;n<r;n++)if(n>=s.length||a[n]!==s[n]){i=n+1;break}if(a.length<s.length)for(n=0,r=s.length;n<r;n++)if(n>=a.length||a[n]!==s[n]){i=n+1;break}if(1===i)return t;for(n=0,r=a.length-(i-1);n<r;n++)o+="../";for(n=i-1,r=s.length;n<r;n++)o+=n!==i-1?"/"+s[n]:s[n];return o},ov.prototype.toAbsPath=function(e,t){var n,r,i=0,o=[],a=/\/$/.test(t)?"/":"",s=e.split("/"),l=t.split("/");for(Qg(s,(function(e){e&&o.push(e)})),s=o,n=l.length-1,o=[];0<=n;n--)0!==l[n].length&&"."!==l[n]&&(".."!==l[n]?0<i?i--:o.push(l[n]):i++);return 0!==(r=(n=s.length-i)<=0?J(o).join("/"):s.slice(0,n).join("/")+"/"+J(o).join("/")).indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},ov.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},ov);function ov(e,t){e=ev(e),this.settings=t||{};var n,r,i,o,a=this.settings.base_uri,s=this;/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e)?s.source=e:(n=0===e.indexOf("//"),0!==e.indexOf("/")||n||(e=(a&&a.protocol||"http")+"://mce_host"+e),/^[\w\-]*:?\/\//.test(e)||(r=this.settings.base_uri?this.settings.base_uri.path:new ov(document.location.href).directory,e=this.settings.base_uri&&""==this.settings.base_uri.protocol?"//mce_host"+s.toAbsPath(r,e):(i=/([^#?]*)([#?]?.*)/.exec(e),(a&&a.protocol||"http")+"://mce_host"+s.toAbsPath(r,i[1])+i[2])),e=e.replace(/@@/g,"(mce_at)"),o=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e),Qg(tv,(function(e,t){var n=(n=o[t])&&n.replace(/\(mce_at\)/g,"@@");s[e]=n})),a&&(s.protocol||(s.protocol=a.protocol),s.userInfo||(s.userInfo=a.userInfo),s.port||"mce_host"!==s.host||(s.port=a.port),s.host&&"mce_host"!==s.host||(s.host=a.host),s.source=""),n&&(s.protocol=""))}function av(e,t,n){for(var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,i=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,o=e.getShortEndedElements(),a=1,s=n;0!==a;)for(r.lastIndex=s;;){var l=r.exec(t);if(null===l)return s;if("!"===l[1]){s=Ze(l[2],"--")?cv(t,!1,l.index+"!--".length):cv(t,!0,l.index+1);break}i.lastIndex=r.lastIndex;var u=i.exec(t);if(!C(u)&&u.index===r.lastIndex){"/"===l[1]?--a:Oe(o,l[2])||(a+=1),s=r.lastIndex+u[0].length;break}}return s}function sv(e,t){void 0===t&&(t=ai()),e=e||{};var n=uv(),r=n.createElement("form");function i(i,c){void 0===c&&(c="html");for(var h,p,m,g,v,b,y,w,_,C,x,S,k,D,O,T,E,I,N,A=i.html,P=0,M=[],R=0,F=eo.decode,B=Dt.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),L="html"===c?0:1,$=function(e){for(var t,n=M.length;n--&&M[n].name!==e;);if(0<=n){for(t=M.length-1;n<=t;t--)(e=M[t]).valid&&u(e.name);M.length=n}},V=function(e,t){return s(Gg(e,i),t)},j=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),o(Gg(t,i)))},z=function(e,t){var n=e||"",r=!Ze(n,"--"),i=cv(A,r,t);return e=A.substr(t,i-t),j(r?n+e:e),i+1},H=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),U=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,W=t.getShortEndedElements(),q=e.self_closing_elements||t.getSelfClosingElements(),G=t.getBoolAttrs(),Y=e.validate,K=e.remove_internals,X=e.fix_self_closing,J=t.getSpecialElements(),Z=A+">";h=H.exec(Z);){var Q=h[0];if(P<h.index&&V(F(A.substr(P,h.index-P))),p=h[7])$(p=":"===(p=p.toLowerCase()).charAt(0)?p.substr(1):p);else if(p=h[8]){if(h.index+Q.length>A.length){V(F(A.substr(h.index))),P=h.index+Q.length;continue}_=(p=":"===(p=p.toLowerCase()).charAt(0)?p.substr(1):p)in W,X&&q[p]&&0<M.length&&M[M.length-1].name===p&&$(p);var ee=function(e,t){var n=e.exec(t);if(n){var r=n[1],i=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?i:null}return null}(U,h[9]);if(null!==ee){if("all"===ee){P=av(t,A,H.lastIndex),H.lastIndex=P;continue}x=!1}if(!Y||(C=t.getElementRule(p))){if(x=!0,Y&&(D=C.attributes,O=C.attributePatterns),(k=h[9])?((w=-1!==k.indexOf("data-mce-type"))&&K&&(x=!1),(g=[]).map={},k.replace(U,(function(t,o,a,s,l){return function(t,o,a,s,l){var u;if(a=Gg((o=o.toLowerCase())in G?o:F(a||s||l||""),i),Y&&!w&&0==(0===(u=o).indexOf("data-")||0===u.indexOf("aria-"))){var c=D[o];if(!c&&O){for(var f=O.length;f--&&!(c=O[f]).pattern.test(o););-1===f&&(c=null)}if(!c)return;if(c.validValues&&!(a in c.validValues))return}("name"===o||"id"===o)&&t in lv&&(a in n||a in r)||B[o]&&!iv.isDomSafe(a,t,e)||w&&(o in B||0===o.indexOf("on"))||(g.map[o]=a,g.push({name:o,value:a}))}(p,o,a,s,l),""}))):(g=[]).map={},Y&&!w){if(T=C.attributesRequired,E=C.attributesDefault,I=C.attributesForced,C.removeEmptyAttrs&&!g.length&&(x=!1),I)for(v=I.length;v--;)y=(S=I[v]).name,"{$uid}"===(N=S.value)&&(N="mce_"+R++),g.map[y]=N,g.push({name:y,value:N});if(E)for(v=E.length;v--;)(y=(S=E[v]).name)in g.map||("{$uid}"===(N=S.value)&&(N="mce_"+R++),g.map[y]=N,g.push({name:y,value:N}));if(T){for(v=T.length;v--&&!(T[v]in g.map););-1===v&&(x=!1)}if(S=g.map["data-mce-bogus"]){if("all"===S){P=av(t,A,H.lastIndex),H.lastIndex=P;continue}x=!1}}x&&l(p,g,_)}else x=!1;if(m=J[p]){m.lastIndex=P=h.index+Q.length,P=(h=m.exec(A))?(x&&(b=A.substr(P,h.index-P)),h.index+h[0].length):(b=A.substr(P),A.length),x&&(0<b.length&&V(b,!0),u(p)),H.lastIndex=P;continue}_||(k&&k.indexOf("/")===k.length-1?x&&u(p):M.push({name:p,valid:x}))}else if(p=h[1])j(p);else if(p=h[2]){if(!(1==L||e.preserve_cdata||0<M.length&&t.isValidChild(M[M.length-1].name,"#cdata"))){P=z("",h.index+2),H.lastIndex=P;continue}a(p)}else if(p=h[3])d(p);else{if((p=h[4])||"<!"===Q){P=z(p,h.index+Q.length),H.lastIndex=P;continue}if(p=h[5]){if(1!=L){P=z("?",h.index+2),H.lastIndex=P;continue}f(p,h[6])}}P=h.index+Q.length}for(P<A.length&&V(F(A.substr(P))),v=M.length-1;0<=v;v--)(p=M[v]).valid&&u(p.name)}!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var o=e.comment||c,a=e.cdata||c,s=e.text||c,l=e.start||c,u=e.end||c,f=e.pi||c,d=e.doctype||c;return{parse:function(e,t){void 0===t&&(t="html"),i(function(e){for(var t,n=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],i={},o=Ss("img"),a=0,s=0;t=n.exec(e);){var l=t[0],u=o+"_"+s++;i[u]=l,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(u),a=t.index+l.length}var c=new RegExp(o+"_[0-9]+","g");return 0===a?{prefix:o,uris:i,html:e,re:c}:(a<e.length&&r.push(e.substr(a)),{prefix:o,uris:i,html:r.join(""),re:c})}(e),t)}}}var lv=Dt.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),uv=Ne((function(){return document.implementation.createHTMLDocument("parser")})),cv=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&(s=n,/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(r.substr(s)))){var i=r.indexOf("[endif]",n);return r.indexOf(">",i)}if(t){var o=r.indexOf(">",n);return-1!==o?o:r.length}var a=/--!?>/g;a.lastIndex=n;var s,l=a.exec(e);return l?l.index+l[0].length:r.length};function fv(e,t){void 0===t&&(t=ai());var n={},r=[],i={},o={};function a(e){var t=e.name;t in n&&((s=i[t])?s.push(e):i[t]=[e]);for(var a=r.length;a--;){var s,l=r[a].name;l in e.attributes.map&&((s=o[l])?s.push(e):o[l]=[e])}return e}(e=e||{}).validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var s={schema:t,addAttributeFilter:function(e,t){Nv(Av(e),(function(e){for(var n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},getAttributeFilters:function(){return[].concat(r)},addNodeFilter:function(e,t){Nv(Av(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},getNodeFilters:function(){var e,t=[];for(e in n)Oe(n,e)&&t.push({name:e,callbacks:n[e]});return t},filterNode:a,parse:function(s,l){var c,f,d,h,p,m,g,v,b=[];function y(e){for(var n=t.getBlockElements(),r=e.prev;r&&3===r.type;){var i=r.value.replace(I,"");if(0<i.length)return r.value=i,0;var o=r.next;if(o){if(3===o.type&&o.value.length){r=r.prev;continue}if(!n[o.name]&&"script"!==o.name&&"style"!==o.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}}function w(e,t){var r,o=new Ud(e,t);return e in n&&((r=i[e])?r.push(o):i[e]=[o]),o}l=l||{},i={},o={};var _=Pv(Iv("script,style,head,html,body,title,meta,param"),t.getBlockElements()),C=ii(t),x=t.getNonEmptyElements(),S=t.children,k=e.validate,D=("forced_root_block"in l?l:e).forced_root_block,O=!1===D?"":!0===D?"p":D,T=t.getWhiteSpaceElements(),E=/^[ \t\r\n]+/,I=/[ \t\r\n]+$/,N=/[ \t\r\n]+/g,A=/^[ \t\r\n]+$/,P=Oe(T,l.context)||Oe(T,e.root_name),M=sv({validate:k,document:e.document,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n}(t.getSelfClosingElements()),cdata:function(e){v.append(w("#cdata",4)).value=e},text:function(e,t){var n,r;P||(e=e.replace(N," "),(r=v.lastChild)&&(Oe(_,r.name)||"br"===r.name)&&(e=e.replace(E,""))),0!==e.length&&((n=w("#text",3)).raw=!!t,v.append(n).value=e)},comment:function(e){v.append(w("#comment",8)).value=e},pi:function(e,t){v.append(w(e,7)).value=t,y(v)},doctype:function(e){v.append(w("#doctype",10)).value=e,y(v)},start:function(e,n,i){var a=k?t.getElementRule(e):{};if(a){var s=w(a.outputName||e,1);s.attributes=n,s.shortEnded=i,v.append(s);var l=S[v.name];l&&S[s.name]&&!l[s.name]&&b.push(s);for(var u=r.length;u--;){var c=r[u].name;c in n.map&&((m=o[c])?m.push(s):o[c]=[s])}_[e]&&y(s),i||(v=s),!P&&T[e]&&(P=!0)}},end:function(n){var r,i,o,a,s=k?t.getElementRule(n):{};if(s){if(_[n]&&!P){if((r=v.firstChild)&&3===r.type)if(0<(i=r.value.replace(E,"")).length)r.value=i,r=r.next;else for(o=r.next,r.remove(),r=o;r&&3===r.type;)i=r.value,o=r.next,0!==i.length&&!A.test(i)||(r.remove(),r=o),r=o;if((r=v.lastChild)&&3===r.type)if(0<(i=r.value.replace(I,"")).length)r.value=i,r=r.prev;else for(o=r.prev,r.remove(),r=o;r&&3===r.type;)i=r.value,o=r.prev,0!==i.length&&!A.test(i)||(r.remove(),r=o),r=o}P&&T[n]&&(P=!1);var c=Kg(t,x,T,v),f=v.parent;s.paddInEmptyBlock&&c&&function(){for(var e=v;u(e);){if(e.name in C)return Kg(t,x,T,e);e=e.parent}}()?Yg(e,l,_,v):s.removeEmpty&&c?_[v.name]?v.empty().remove():v.unwrap():s.paddEmpty&&(Zg(a=v,"#text")&&a.firstChild.value===xi||c)&&Yg(e,l,_,v),v=f}}},t),R=v=new Ud(l.context||e.root_name,11);if(M.parse(s,l.format),k&&b.length&&(l.context?l.invalid=!0:function(e){for(var n=Iv("tr,td,th,tbody,thead,tfoot,table"),r=t.getNonEmptyElements(),i=t.getWhiteSpaceElements(),o=t.getTextBlockElements(),s=t.getSpecialElements(),l=function(e,n){if(void 0===n&&(n=e.parent),s[e.name])e.empty().remove();else{for(var r=0,i=e.children();r<i.length;r++){var o=i[r];t.isValidChild(n.name,o.name)||l(o,n)}e.unwrap()}},u=0;u<e.length;u++){var c,f=e[u],d=void 0,h=void 0;if(f.parent&&!f.fixed)if(o[f.name]&&"li"===f.parent.name){for(var p=f.next;p&&o[p.name];)p.name="li",p.fixed=!0,f.parent.insert(p,f.parent),p=p.next;f.unwrap()}else{var m=[f];for(d=f.parent;d&&!t.isValidChild(d.name,f.name)&&!n[d.name];d=d.parent)m.push(d);if(d&&1<m.length)if(t.isValidChild(d.name,f.name)){m.reverse();for(var g=c=a(m[0].clone()),v=0;v<m.length-1;v++){t.isValidChild(g.name,m[v].name)?(h=a(m[v].clone()),g.append(h)):h=g;for(var b=m[v].firstChild;b&&b!==m[v+1];){var y=b.next;h.append(b),b=y}g=h}Kg(t,r,i,c)?d.insert(f,m[0],!0):(d.insert(c,m[0],!0),d.insert(f,c)),d=m[0],(Kg(t,r,i,d)||Zg(d,"br"))&&d.empty().remove()}else l(f);else f.parent&&("li"!==f.name?t.isValidChild(f.parent.name,"div")&&t.isValidChild("div",f.name)?f.wrap(a(new Ud("div",1))):l(f):!(p=f.prev)||"ul"!==p.name&&"ol"!==p.name?!(p=f.next)||"ul"!==p.name&&"ol"!==p.name?f.wrap(a(new Ud("ul",1))):p.insert(f,p.firstChild,!0):p.append(f))}}}(b)),O&&("body"===R.name||l.isRootContent)&&function(){function n(e){e&&((r=e.firstChild)&&3===r.type&&(r.value=r.value.replace(E,"")),(r=e.lastChild)&&3===r.type&&(r.value=r.value.replace(I,"")))}var r=R.firstChild,i=null;if(t.isValidChild(R.name,O.toLowerCase())){for(;r;){var o=r.next;3===r.type||1===r.type&&"p"!==r.name&&!_[r.name]&&!r.attr("data-mce-type")?(i||((i=w(O,1)).attr(e.forced_root_block_attrs),R.insert(i,r)),i.append(r)):(n(i),i=null),r=o}n(i)}}(),!l.invalid){for(g in i)if(Oe(i,g)){for(m=n[g],h=(c=i[g]).length;h--;)c[h].parent||c.splice(h,1);for(f=0,d=m.length;f<d;f++)m[f](c,g,l)}for(f=0,d=r.length;f<d;f++)if((m=r[f]).name in o){for(h=(c=o[m.name]).length;h--;)c[h].parent||c.splice(h,1);for(h=0,p=m.callbacks.length;h<p;h++)m.callbacks[h](c,m.name,l)}}return R}};return Xg(s,e),e.inline_styles&&jg(s,e),s}function dv(e,t,n){-1===Dt.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)})),t.push(n))}function hv(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:ns.DOM,i=t&&t.schema?t.schema:ai(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var o,a=fv(e,i),s=e,l=r;return(o=a).addAttributeFilter("data-mce-tabindex",(function(e,t){for(var n=e.length;n--;){var r=e[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(t,null)}})),o.addAttributeFilter("src,href,style",(function(e,t){for(var n="data-mce-"+t,r=s.url_converter,i=s.url_converter_scope,o=e.length;o--;){var a=e[o],u=a.attr(n);void 0!==u?(a.attr(t,0<u.length?u:null),a.attr(n,null)):(u=a.attr(t),"style"===t?u=l.serializeStyle(l.parseStyle(u),a.name):r&&(u=r.call(i,u,t,a.name)),a.attr(t,0<u.length?u:null))}})),o.addAttributeFilter("class",(function(e){for(var t=e.length;t--;){var n,r=e[t];r.attr("class")&&(n=r.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),r.attr("class",0<n.length?n:null))}})),o.addAttributeFilter("data-mce-type",(function(e,t,n){for(var r=e.length;r--;){var i=e[r];"bookmark"!==i.attr("data-mce-type")||n.cleanup||(ye.from(i.firstChild).exists((function(e){return!ki(e.value)}))?i.unwrap():i.remove())}})),o.addNodeFilter("noscript",(function(e){for(var t=e.length;t--;){var n=e[t].firstChild;n&&(n.value=eo.decode(n.value))}})),o.addNodeFilter("script,style",(function(e,t){for(var n=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")},r=e.length;r--;){var i,o=e[r],a=o.firstChild?o.firstChild.value:"";"script"===t?((i=o.attr("type"))&&o.attr("type","mce-no/type"===i?null:i.replace(/^mce\-/,"")),"xhtml"===s.element_format&&0<a.length&&(o.firstChild.value="// <![CDATA[\n"+n(a)+"\n// ]]>")):"xhtml"===s.element_format&&0<a.length&&(o.firstChild.value="\x3c!--\n"+n(a)+"\n--\x3e")}})),o.addNodeFilter("#comment",(function(e){for(var t=e.length;t--;){var n=e[t];s.preserve_cdata&&0===n.value.indexOf("[CDATA[")?(n.name="#cdata",n.type=4,n.value=l.decode(n.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===n.value.indexOf("mce:protected ")&&(n.name="#text",n.type=3,n.raw=!0,n.value=unescape(n.value).substr(14))}})),o.addNodeFilter("xml:namespace,input",(function(e,t){for(var n=e.length;n--;){var r=e[n];7===r.type?r.remove():1===r.type&&("input"!==t||r.attr("type")||r.attr("type","text"))}})),o.addAttributeFilter("data-mce-type",(function(e){V(e,(function(e){"format-caret"===e.attr("data-mce-type")&&(e.isEmpty(o.schema.getNonEmptyElements())?e.remove():e.unwrap())}))})),o.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)})),{schema:i,addNodeFilter:a.addNodeFilter,addAttributeFilter:a.addAttributeFilter,serialize:function(n,o){var s,l,u,c,f,d,h,p,m,g,v,b,y,w,_,C,x,S,k,D,O,T,E,I,N,A,P,M,R,F=Ee({format:"html"},o=void 0===o?{}:o),B=(b=n,E=y=F,s=(v=t)&&v.hasEventListeners("PreProcess")&&!E.no_events?(_=y,D=(w=v).dom,O=b.cloneNode(!0),(T=document.implementation).createHTMLDocument&&(x=T.createHTMLDocument(""),Dt.each("BODY"===O.nodeName?O.childNodes:[O],(function(e){x.body.appendChild(x.importNode(e,!0))})),O="BODY"!==O.nodeName?x.body.firstChild:x.body,C=D.doc,D.doc=x),S=w,k=Ee(Ee({},_),{node:O}),S.fire("PreProcess",k),C&&(D.doc=C),O):b,u=Di((l=F).getInner?s.innerHTML:r.getOuterHTML(s)),l.selection||_i(Ot.fromDom(s))?u:Dt.trim(u)),L=(c=a,f=B,h=(d=F).selection?Ee({forced_root_block:!1},d):d,p=c.parse(f,h),!$(g=p.lastChild)||$(m=g.prev)&&(g.remove(),m.remove()),p);function $(e){return e&&"br"===e.name}return"tree"===F.format?L:(I=t,N=F,A=L,R=oh(e,i).serialize(A),N.no_events||!I?R:(P=I,M=Ee(Ee({},N),{content:R}),P.fire("PostProcess",M).content))},addRules:i.addValidElements,setRules:i.setValidElements,addTempAttr:O(dv,a,n),getTempAttrs:h(n),getNodeFilters:a.getNodeFilters,getAttributeFilters:a.getAttributeFilters}}function pv(e,t){var n=hv(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}}function mv(e,t,n){return r=n=void 0===n?{}:n,wg(e).editor.setContent(t,r);var r}function gv(e){return ye.from(e).each((function(e){return e.destroy()}))}function vv(e,t){var n,r,i,o,a,s,l,u=(n=e,r=H(Fv,(function(e){return Oe(n,e)})),!1!==(i=n.forced_root_block)&&""!==i||r.push("forced_root_block (false only)"),Q(r)),c=(l=Dt.makeMap(t.plugins," "),Q(Ie(Ie([],H(Bv,p),!0),K(Lv,(function(e){return p(e)?[e+" (moving to premium)"]:[]})),!0))),f=0<c.length,d=0<u.length,h="mobile"===t.theme;function p(e){return Oe(l,e)}(f||d||h)&&(o=h?"\n\nThemes:\n- mobile":"",a=f?"\n\nPlugins:\n- "+c.join("\n- "):"",s=d?"\n\nSettings:\n- "+u.join("\n- "):"",console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+o+a+s))}function bv(e){var t=_(e)?e.join(" "):e;return H($(y(t)?t.split(" "):[],Qe),(function(e){return 0<e.length}))}function yv(e,t){return Oe(e.sections(),t)}function wv(e,t){return ue(e,"toolbar_mode").orThunk((function(){return ue(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)}function _v(e,t,n,r){var i,o,a,s,l,u,c,f,d=bv(n.forced_plugins),h=bv(r.plugins),p=yv(i=t,"mobile")?i.sections().mobile:{},m=p.plugins?bv(p.plugins):h,g=(s=t,l=h,u=m,o=(a=e)&&(f=(c=s).sections(),yv(c,"mobile")&&"mobile"===f.mobile.theme)?H(u,O(B,Hv)):a&&yv(s,"mobile")?u:l,[].concat(bv(d)).concat(bv(o)));if(xt.browser.isIE()&&B(g,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return Dt.extend(r,{plugins:g.join(" ")})}function Cv(e,t,n,r,i){var o,a,s,l,u,c,f,d,p=e?{mobile:(o=t,a={resize:!1,toolbar_mode:wv(i.mobile||{},"scrolling"),toolbar_sticky:!1},Ee(Ee(Ee({},Uv),a),o?{menubar:!1}:{}))}:{},m=(u=["mobile"],se(Rv(p,i),(function(e,t){return B(u,t)}),ae(c={}),ae(f={})),{sections:h((d={t:c,f:f}).t),settings:h(d.f)}),g=Dt.extend(n,r,m.settings(),e&&yv(m,"mobile")?function(e){void 0===e&&(e={});var t=ue(m.sections(),"mobile").getOr({});return Dt.extend({},e,t)}():{},{validate:!0,external_plugins:(s=r,l=m.settings().external_plugins||{},s&&s.external_plugins?Dt.extend({},s.external_plugins,l):l)});return _v(e,m,r,g)}function xv(e,t,n){return ye.from(t.settings[n]).filter(e)}function Sv(e,t){return t.dom[e]}function kv(e,t){return parseInt(Sn(t,e),10)}function Dv(e,t,n){var r,i,o,a,s,l,u=Ot.fromDom(e.getBody()),c=e.inline?u:Ot.fromDom(At(u).dom.documentElement),f=(r=e.inline,o=t,a=n,s=(i=c).dom.getBoundingClientRect(),{x:o-(r?s.left+i.dom.clientLeft+Kv(i):0),y:a-(r?s.top+i.dom.clientTop+Yv(i):0)}),d=f.x,h=f.y,p=qv(l=c),m=Gv(l);return 0<=d&&0<=h&&d<=p&&h<=m}function Ov(e){function t(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():{open:n,close:n,reposition:n,getArgs:n};function n(){throw new Error("Theme did not provide a NotificationManager implementation.")}}function n(){return ye.from(s[0])}function r(){0<s.length&&t().reposition(s)}function i(e){Y(s,(function(t){return t===e})).each((function(e){s.splice(e,1)}))}function o(o,a){if(void 0===a&&(a=!0),!e.removed&&(u=(l=e).inline?l.getBody():l.getContentAreaContainer(),ye.from(u).map(Ot.fromDom).map($n).getOr(!1)))return a&&e.fire("BeforeOpenNotification",{notification:o}),G(s,(function(e){return!((n=t().getArgs(e)).type!==o.type||n.text!==o.text||n.progressBar||n.timeout||o.progressBar||o.timeout);var n})).getOrThunk((function(){e.editorManager.setActive(e);var a=t().open(o,(function(){i(a),r(),n().fold((function(){return e.focus()}),(function(e){return Ot.fromDom(e.getEl()).dom.focus()}))}));return s.push(a),r(),e.fire("OpenNotification",{notification:Ee({},a)}),a}));var l,u}var a,s=[],l=h(s);return(a=e).on("SkinLoaded",(function(){var e=a.getParam("service_message");e&&o({text:e,type:"warning",timeout:0},!1),r()})),a.on("show ResizeEditor ResizeWindow NodeChange",(function(){Ir.requestAnimationFrame(r)})),a.on("remove",(function(){V(s.slice(),(function(e){t().close(e)}))})),{open:o,close:function(){n().each((function(e){t().close(e),i(e),r()}))},getNotifications:l}}sv.findEndTag=av;var Tv,Ev,Iv=Dt.makeMap,Nv=Dt.each,Av=Dt.explode,Pv=Dt.extend,Mv=ns.DOM,Rv=(Tv=function(e,t){return w(e)&&w(t)?Rv(e,t):t},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)throw new Error("Can't merge zero objects");for(var n={},r=0;r<e.length;r++){var i,o=e[r];for(i in o)Oe(o,i)&&(n[i]=Tv(n[i],o[i]))}return n}),Fv="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),Bv="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),Lv="imagetools,toc".split(","),$v=pt().deviceType,Vv=$v.isTouch(),jv=$v.isPhone(),zv=$v.isTablet(),Hv=["lists","autolink","autosave"],Uv={table_grid:!1,object_resizing:!1,resize:!1},Wv=(Ev={},{add:function(e,t){Ev[e]=t},get:function(e){return Ev[e]||{icons:{}}},has:function(e){return Oe(Ev,e)}}),qv=O(Sv,"clientWidth"),Gv=O(Sv,"clientHeight"),Yv=O(kv,"margin-top"),Kv=O(kv,"margin-left"),Xv=hs.PluginManager,Jv=hs.ThemeManager;function Zv(e){function t(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():{open:n,openUrl:n,alert:n,confirm:n,close:n,getParams:n,setParams:n};function n(){throw new Error("Theme did not provide a WindowManager implementation.")}}function n(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t?t.apply(e,n):void 0}}function r(t){e.fire("CloseWindow",{dialog:t}),0===(o=H(o,(function(e){return e!==t}))).length&&e.focus()}function i(t){e.editorManager.setActive(e),pd(e);var n,r=t();return n=r,o.push(n),e.fire("OpenWindow",{dialog:n}),r}var o=[];return e.on("remove",(function(){V(o,(function(e){t().close(e)}))})),{open:function(e,n){return i((function(){return t().open(e,n,r)}))},openUrl:function(e){return i((function(){return t().openUrl(e,r)}))},alert:function(e,r,i){var o=t();o.alert(e,n(i||o,r))},confirm:function(e,r,i){var o=t();o.confirm(e,n(i||o,r))},close:function(){ye.from(o[o.length-1]).each((function(e){t().close(e),r(e)}))}}}function Qv(e,t){e.notificationManager.open({type:"error",text:t})}function eb(e,t){e._skinLoaded?Qv(e,t):e.on("SkinLoaded",(function(){Qv(e,t)}))}function tb(e,t,n){Cf(e,t,{message:n}),console.error(n)}function nb(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t}function rb(e,t,n){tb(e,"PluginLoadError",nb("plugin",t,n))}function ib(e){var t,n;e.contentCSS=e.contentCSS.concat(Oy(e,(n=(t=e).getParam("content_css"),y(n)?$(n.split(","),Qe):_(n)?n:!1===n||t.inline?[]:["default"])),Oy(e,Rl(e)))}function ob(){function e(e,t){return{status:e,resultUri:t}}function t(e){return e in n}var n={};return{hasBlobUri:t,getResultUri:function(e){var t=n[e];return t?t.resultUri:null},isPending:function(e){return!!t(e)&&1===n[e].status},isUploaded:function(e){return!!t(e)&&2===n[e].status},markPending:function(t){n[t]=e(1,null)},markUploaded:function(t,r){n[t]=e(2,r)},removeFailed:function(e){delete n[e]},destroy:function(){n={}}}}function ab(e){return e+Ty+++"s"+(new Date).getTime().toString(36)+t()+t()+t();function t(){return Math.round(4294967295*Math.random()).toString(36)}}function sb(){function e(e){return G(r,e).getOrUndefined()}function t(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var t=e.id||ab("blobid"),n=e.name||t,r=e.blob;return{id:h(t),name:h(n),filename:h(e.filename||n+"."+({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"}[r.type.toLowerCase()]||"dat")),blob:h(r),base64:h(e.base64),blobUri:h(e.blobUri||URL.createObjectURL(r)),uri:h(e.uri)}}function n(t){return e((function(e){return e.id()===t}))}var r=[];return{create:function(e,n,r,i,o){if(y(e))return t({id:e,name:i,filename:o,blob:n,base64:r});if(w(e))return t(e);throw new Error("Unknown input type")},add:function(e){n(e.id())||r.push(e)},get:n,getByUri:function(t){return e((function(e){return e.blobUri()===t}))},getByData:function(t,n){return e((function(e){return e.base64()===t&&e.blob().type===n}))},findFirst:e,removeByUri:function(e){r=H(r,(function(t){return t.blobUri()!==e||void URL.revokeObjectURL(t.blobUri())}))},destroy:function(){V(r,(function(e){URL.revokeObjectURL(e.blobUri())})),r=[]}}}function lb(e,t){function n(e,n,r,i){var o=new XMLHttpRequest;o.open("POST",t.url),o.withCredentials=t.credentials,o.upload.onprogress=function(e){i(e.loaded/e.total*100)},o.onerror=function(){r("Image upload failed due to a XHR Transport error. Code: "+o.status)},o.onload=function(){var e,i,a;o.status<200||300<=o.status?r("HTTP Error: "+o.status):(e=JSON.parse(o.responseText))&&"string"==typeof e.location?n((i=t.basePath,a=e.location,i?i.replace(/\/$/,"")+"/"+a.replace(/^\//,""):a)):r("Invalid JSON: "+o.responseText)};var a=new FormData;a.append("file",e.blob(),e.filename()),o.send(a)}function r(e,t){return{url:t,blobInfo:e,status:!0}}function i(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}}function o(e,t){Dt.each(a[e],(function(e){e(t)})),delete a[e]}var a={};return!1===k(t.handler)&&(t.handler=n),{upload:function(s,l){return t.url||t.handler!==n?(u=s,c=l,u=Dt.grep(s,(function(t){return!e.isUploaded(t.blobUri())})),Er.all(Dt.map(u,(function(n){return e.isPending(n.blobUri())?(f=n.blobUri(),new Er((function(e){a[f]=a[f]||[],a[f].push(e)}))):(s=n,l=t.handler,u=c,e.markPending(s.blobUri()),new Er((function(t){var a;try{var c=function(){a&&a.close()};l(s,(function(n){c(),e.markUploaded(s.blobUri(),n),o(s.blobUri(),r(s,n)),t(r(s,n))}),(function(n,r){var a=r||{};c(),e.removeFailed(s.blobUri()),o(s.blobUri(),i(s,n,a)),t(i(s,n,a))}),(function(e){e<0||100<e||ye.from(a).orThunk((function(){return ye.from(u).map(E)})).each((function(t){(a=t).progressBar.value(e)}))}))}catch(n){t(i(s,n.message,{}))}})));var s,l,u,f})))):new Er((function(e){e([])}));var u,c}}}function ub(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}}function cb(e,t){return lb(t,{url:e.getParam("images_upload_url","","string"),basePath:e.getParam("images_upload_base_path","","string"),credentials:e.getParam("images_upload_credentials",!1,"boolean"),handler:e.getParam("images_upload_handler",null,"function")})}function fb(e){function t(t){return function(n){return e.selection?t(n):[]}}function n(e,t,n){for(var r=0;-1!==(r=e.indexOf(t,r))&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1),-1!==r;);return e}function r(e,t,r){return e=n(e,'src="'+t+'"','src="'+r+'"'+(r===xt.transparentSrc?' data-mce-placeholder="1"':"")),n(e,'data-mce-src="'+t+'"','data-mce-src="'+r+'"')}function i(t,n){V(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=$(e.fragments,(function(e){return r(e,t,n)})):e.content=r(e.content,t,n)}))}function o(n){return u=u||cb(e,p),v().then(t((function(r){var o=$(r,(function(e){return e.blobInfo}));return u.upload(o,ub(e)).then(t((function(t){var o=[],a=$(t,(function(t,n){var a,s,l,u,c=r[n].blobInfo,f=r[n].image;return t.status&&e.getParam("images_replace_blob_uris",!0,"boolean")?(h.removeByUri(f.src),bg(e)||(s=f,l=t.url,u=e.convertURL(l,"src"),i(s.src,l),e.$(s).attr({src:e.getParam("images_reuse_filename",!1,"boolean")?l+(-1===l.indexOf("?")?"?":"&")+(new Date).getTime():l,"data-mce-src":u}))):t.error&&(t.error.options.remove&&(i(f.getAttribute("src"),xt.transparentSrc),o.push(f)),a=t.error.message,eb(e,ds.translate(["Failed to upload image: {0}",a]))),{element:f,status:t.status,uploadUri:t.url,blobInfo:c}}));return 0<a.length&&g.fireIfChanged(),0<o.length&&(bg(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact((function(){V(o,(function(t){e.dom.remove(t),h.removeByUri(t.src)}))}))),n&&n(a),a})))})))}function a(t){if(Il(e))return o(t)}function s(t){return!1!==X(m,(function(e){return e(t)}))&&(0!==t.getAttribute("src").indexOf("data:")||e.getParam("images_dataimg_filter",P,"function")(t))}function l(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var r=p.getResultUri(n);if(r)return'src="'+r+'"';var i=(i=h.getByUri(n))||W(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null);return i?'src="data:'+i.blob().type+";base64,"+i.base64()+'"':t}))}var u,c,f,d,h=sb(),p=ob(),m=[],g=(d=ls(null),(f=e).on("change AddUndo",(function(e){d.set(Ee({},e.level))})),{fireIfChanged:function(){var e=f.undoManager.data;ne(e).filter((function(e){return!hg(d.get(),e)})).each((function(t){f.setDirty(!0),f.fire("change",{level:t,lastLevel:ee(e,e.length-2).getOrNull()})}))}}),v=function(){return(c=c||qg(p,h)).findAll(e.getBody(),s).then(t((function(t){return t=H(t,(function(t){return"string"!=typeof t||void eb(e,t)})),bg(e)||V(t,(function(e){i(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))};return e.on("SetContent",(function(){(Il(e)?a:v)()})),e.on("RawSaveContent",(function(e){e.content=l(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=l(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){V(e,(function(e){var t,n=e.attr("src");h.getByUri(n)||(t=p.getResultUri(n))&&e.attr("src",t)}))}))})),{blobCache:h,addFilter:function(e){m.push(e)},uploadImages:o,uploadImagesAuto:a,scanForImages:v,destroy:function(){h.destroy(),p.destroy(),c=u=null}}}function db(e,t){function n(e){i="string"==typeof e?{name:e,classes:[],attrs:{}}:e;var t,n=Iy.create(i.name),r=n;return(t=i).classes.length&&Iy.addClass(r,t.classes.join(" ")),Iy.setAttribs(r,t.attrs),n}var r,i,o,a=t&&t.schema||ai({}),s=function(e,t,r){var i,o,l,u,c,f,d,h=0<t.length&&t[0],p=h&&h.name,m=(u=p,c="string"!=typeof(l=e)?l.nodeName.toLowerCase():l,!(!(d=(f=a.getElementRule(c))&&f.parentsRequired)||!d.length)&&(u&&-1!==Dt.inArray(d,u)?u:d[0]));if(m)p===m?(o=t[0],t=t.slice(1)):o=m;else if(h)o=t[0],t=t.slice(1);else if(!r)return e;return o&&(i=n(o)).appendChild(e),r&&(i||(i=Iy.create("div")).appendChild(e),Dt.each(r,(function(t){var r=n(t);i.insertBefore(r,e)}))),s(i,t,o&&o.siblings)};return e&&e.length?(r=n(i=e[0]),(o=Iy.create("div")).appendChild(s(r,e.slice(1),i.siblings)),o):""}function hb(e){var t,n={classes:[],attrs:{}};return"*"!==(e=n.selector=Dt.trim(e))&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,i,o){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==Dt.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r)}var a;return"["!==i||(a=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/))&&(n.attrs[a[1]]=a[2]),""}))),n.name=t||"div",n}function pb(e,t){var n,r,i="",o=(r=e.getParam("preview_styles","font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"),y(r)?r:"");if(""===o)return"";function a(e){return e.replace(/%(\w+)/g,"")}if("string"==typeof t){if(!(t=e.formatter.get(t)))return;t=t[0]}if("preview"in t){var s=ue(t,"preview");if(hn(s,!1))return"";o=s.getOr(o)}var l,u=t.block||t.inline||"span",c=(l=t.selector)&&"string"==typeof l?(l=(l=l.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),Dt.map(l.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=Dt.map(e.split(/(?:~\+|~|\+)/),hb),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[],f=c.length?(c[0].name||(c[0].name=u),u=t.selector,db(c,e)):db([u],e),d=Iy.select(u,f)[0]||f.firstChild;return Ey(t.styles,(function(e,t){var n=a(e);n&&Iy.setStyle(d,t,n)})),Ey(t.attributes,(function(e,t){var n=a(e);n&&Iy.setAttrib(d,t,n)})),Ey(t.classes,(function(e){var t=a(e);Iy.hasClass(d,t)||Iy.addClass(d,t)})),e.fire("PreviewFormats"),Iy.setStyles(f,{position:"absolute",left:-65535}),e.getBody().appendChild(f),n=Iy.getStyle(e.getBody(),"fontSize",!0),n=/px$/.test(n)?parseInt(n,10):0,Ey(o.split(" "),(function(t){var r=Iy.getStyle(d,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(r)&&(r=Iy.getStyle(e.getBody(),t,!0),"#ffffff"===Iy.toHex(r).toLowerCase())||"color"===t&&"#000000"===Iy.toHex(r).toLowerCase())){if("font-size"===t&&/em|%$/.test(r)){if(0===n)return;r=parseFloat(r)/(/%$/.test(r)?100:1)*n+"px"}"border"===t&&r&&(i+="padding:0 2px;"),i+=t+":"+r+";"}})),e.fire("AfterPreviewFormats"),Iy.remove(f),i}function mb(e){var t,n,r,i,o,a,s=(i={},(o=function(e,t){e&&(y(e)?(V(t=_(t)?t:[t],(function(e){S(e.deep)&&(e.deep=!gc(e)),S(e.split)&&(e.split=!gc(e)||vc(e)),S(e.remove)&&gc(e)&&!vc(e)&&(e.remove="none"),gc(e)&&vc(e)&&(e.mixed=!0,e.block_expand=!0),y(e.classes)&&(e.classes=e.classes.split(/\s+/))})),i[e]=t):ie(e,(function(e,t){o(t,e)})))})((n=(t=e).dom,r={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(e,t,n){return Hn(e)&&e.hasAttribute("href")},onformat:function(e,t,r){Dt.each(r,(function(t,r){n.setAttrib(e,r,t)}))}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(e){var t;return null!==(t=null==e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]},Dt.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),(function(e){r[e]={block:e,remove:"all"}})),r)),o(t.getParam("formats")),{get:function(e){return u(e)?i[e]:i},has:function(e){return Oe(i,e)},register:o,unregister:function(e){return e&&i[e]&&delete i[e],i}}),l=ls(null);return function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])}(e),(a=e).on("mouseup keydown",(function(e){var t=a,n=e.keyCode,r=t.selection,i=t.getBody();Hp(t,null,!1),8!==n&&46!==n||!r.isCollapsed()||r.getStart().innerHTML!==Cm||Hp(t,qu(i,r.getStart())),37!==n&&39!==n||Hp(t,qu(i,r.getStart()))})),{get:s.get,has:s.has,register:s.register,unregister:s.unregister,apply:function(t,n,r){var i=t,o=n,a=r;_g(e).formatter.apply(i,o,a)},remove:function(t,n,r,i){var o=t,a=n,s=r,l=i;_g(e).formatter.remove(o,a,s,l)},toggle:function(t,n,r){var i=t,o=n,a=r;_g(e).formatter.toggle(i,o,a)},match:function(t,n,r,i){return o=t,a=n,s=r,l=i,_g(e).formatter.match(o,a,s,l);var o,a,s,l},closest:function(t){return n=t,_g(e).formatter.closest(n);var n},matchAll:function(t,n){return r=t,i=n,_g(e).formatter.matchAll(r,i);var r,i},matchNode:function(t,n,r,i){return o=t,a=n,s=r,l=i,_g(e).formatter.matchNode(o,a,s,l);var o,a,s,l},canApply:function(t){return n=t,_g(e).formatter.canApply(n);var n},formatChanged:function(t,n,r,i){return o=l,a=t,s=n,u=r,c=i,_g(e).formatter.formatChanged(o,a,s,u,c);var o,a,s,u,c},getCssText:O(pb,e)}}function gb(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return 1;default:return}}function vb(e){var t,n,r,i,o,a=ps(),s=ls(0),l=ls(0),u={data:[],typing:!1,beforeChange:function(){var t=s,n=a;_g(e).undoManager.beforeChange(t,n)},add:function(t,n){return r=u,i=l,o=s,c=a,f=t,d=n,_g(e).undoManager.add(r,i,o,c,f,d);var r,i,o,c,f,d},undo:function(){return t=u,n=s,r=l,_g(e).undoManager.undo(t,n,r);var t,n,r},redo:function(){return t=l,n=u.data,_g(e).undoManager.redo(t,n);var t,n},clear:function(){var t=u,n=l;_g(e).undoManager.clear(t,n)},reset:function(){var t=u;_g(e).undoManager.reset(t)},hasUndo:function(){return t=u,n=l,_g(e).undoManager.hasUndo(t,n);var t,n},hasRedo:function(){return t=u,n=l,_g(e).undoManager.hasRedo(t,n);var t,n},transact:function(t){return n=u,r=s,i=t,_g(e).undoManager.transact(n,r,i);var n,r,i},ignore:function(t){var n=s,r=t;_g(e).undoManager.ignore(n,r)},extra:function(t,n){var r=u,i=l,o=t,a=n;_g(e).undoManager.extra(r,i,o,a)}};return bg(e)||(r=u,i=s,o=ls(!1),(n=e).on("init",(function(){r.add()})),n.on("BeforeExecCommand",(function(e){gb(e.command)||(gg(r,i),r.beforeChange())})),n.on("ExecCommand",(function(e){gb(e.command)||c(e)})),n.on("ObjectResizeStart cut",(function(){r.beforeChange()})),n.on("SaveContent ObjectResized blur",c),n.on("dragend",c),n.on("keyup",(function(e){var t=e.keyCode;e.isDefaultPrevented()||((33<=t&&t<=36||37<=t&&t<=40||45===t||e.ctrlKey)&&(c(),n.nodeChanged()),46!==t&&8!==t||n.nodeChanged(),o.get()&&r.typing&&!1===hg(ug(n),r.data[0])&&(!1===n.isDirty()&&(n.setDirty(!0),n.fire("change",{level:r.data[0],lastLevel:null})),n.fire("TypingUndo"),o.set(!1),n.nodeChanged()))})),n.on("keydown",(function(e){var t,n=e.keyCode;e.isDefaultPrevented()||(33<=n&&n<=36||37<=n&&n<=40||45===n?r.typing&&c(e):(t=e.ctrlKey&&!e.altKey||e.metaKey,!(n<16||20<n)||224===n||91===n||r.typing||t||(r.beforeChange(),mg(r,!0,i),r.add({},e),o.set(!0))))})),n.on("mousedown",(function(e){r.typing&&c(e)})),n.on("input",(function(e){e.inputType&&("insertReplacementText"===e.inputType||"insertText"===e.inputType&&null===e.data||"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType)&&c(e)})),n.on("AddUndo Undo Redo ClearUndos",(function(e){e.isDefaultPrevented()||n.nodeChanged()}))),(t=e).addShortcut("meta+z","","Undo"),t.addShortcut("meta+y,meta+shift+z","","Redo"),u;function c(e){mg(r,!1,i),r.add({},e)}}function bb(e){return"keydown"===e.type||"keyup"===e.type}function yb(e){var t=e.keyCode;return t===Lf.BACKSPACE||t===Lf.DELETE}function wb(e,t){return ze(Ot.fromDom(t),e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string"))}function _b(e,t,n){var r,i,o=(r=e,i=t,H(ns.DOM.getParents(n.container(),"*",i),r));return ye.from(o[o.length-1])}function Cb(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?Lr(n)?Wn(n.nextSibling)?fl(n.nextSibling,0):fl.after(n):jr(t)?fl(n,r+1):t:Lr(n)?Wn(n.previousSibling)?fl(n.previousSibling,n.previousSibling.data.length):fl.before(n):zr(t)?fl(n,r-1):t}function xb(e){return gi(e)||bi(e)}function Sb(e,t){return We(e,t)?br(t,xb,(n=e,function(e){return Ue(n,Ot.fromDom(e.dom.parentNode))})):ye.none();var n}function kb(e){var t,n,r;e.dom.isEmpty(e.getBody())&&(e.setContent(""),r=(n=(t=e).getBody()).firstChild&&t.dom.isBlock(n.firstChild)?n.firstChild:n,t.selection.setCursorLocation(r,0))}function Db(e,t){return{from:e,to:t}}function Ob(e,t){return Sb(Ot.fromDom(e),Ot.fromDom(t.container())).map((function(e){return{block:e,position:t}}))}function Tb(e){var t,n=Y(t=Pn(e),mi).fold(h(t),(function(e){return t.slice(0,e)}));return V(n,Ln),n}function Eb(e,t){return G(_h(t,e).reverse(),(function(e){return Kr(e)})).each(Ln)}function Ib(e,t,n,r){if(Kr(n))return bh(n),af(n.dom);0===H(Bt(r),(function(e){return!Kr(e)})).length&&Kr(t)&&qt(r,Ot.fromTag("br"));var i=of(n.dom,fl.before(r.dom));return V(Tb(t),(function(e){qt(r,e)})),Eb(e,t),i}function Nb(e,t,n){if(Kr(n))return Ln(n),Kr(t)&&bh(t),af(t.dom);var r=sf(n.dom);return V(Tb(t),(function(e){Bn(n,e)})),Eb(e,t),r}function Ab(e,t){Uu(e,t.dom).map((function(e){return e.getNode()})).map(Ot.fromDom).filter(Fr).each(Ln)}function Pb(e,t,n){return Ab(!0,t),Ab(!1,n),(We(i=n,r=t)?(o=_h(r,i),ye.from(o[o.length-1])):ye.none()).fold(O(Nb,e,t,n),O(Ib,e,t,n));var r,i,o}function Mb(e,t,n,r){return t?Pb(e,r,n):Pb(e,n,r)}function Rb(e,t){var n,r,i,o,a,s,l,u=Ot.fromDom(e.getBody()),c=(n=u.dom,r=t,((i=e.selection.getRng()).collapsed?(a=r,s=Ob(o=n,fl.fromRangeStart(i)),l=s.bind((function(e){return tf(a,o,e.position).bind((function(e){return Ob(o,e).map((function(e){return t=o,n=a,Kn((r=e).position.getNode())&&!1===Kr(r.block)?Uu(!1,r.block.dom).bind((function(e){return e.isEqual(r.position)?tf(n,t,e).bind((function(e){return Ob(t,e)})):ye.some(r)})).getOr(r):r;var t,n,r}))}))})),pn(s,l,Db).filter((function(e){return!1===Ue(e.from.block,e.to.block)&&Mt((n=e).from.block).bind((function(e){return Mt(n.to.block).filter((function(t){return Ue(e,t)}))})).isSome()&&!1===Zn((t=e).from.block.dom)&&!1===Zn(t.to.block.dom);var t,n}))):ye.none()).bind((function(e){return Mb(u,t,e.from.block,e.to.block)})));return c.each((function(t){e.selection.setRng(t.toRange())})),c.isSome()}function Fb(e,t){var n=Ot.fromDom(t),r=O(Ue,e);return vr(n,wi,r).isSome()}function Bb(e){var t,n,r,i,o,a,s,l,u,c,f=Ot.fromDom(e.getBody()),d=e.selection.getRng();return a=d,u=of((o=f).dom,fl.fromRangeStart(a)).isNone(),c=rf(o.dom,fl.fromRangeEnd(a)).isNone(),!Fb(s=o,(l=a).startContainer)&&!Fb(s,l.endContainer)&&u&&c?((i=e).setContent(""),i.selection.setCursorLocation(),!0):(t=f,n=e.selection,r=n.getRng(),pn(Sb(t,Ot.fromDom(r.startContainer)),Sb(t,Ot.fromDom(r.endContainer)),(function(e,i){return!1===Ue(e,i)&&(r.deleteContents(),Mb(t,!0,e,i).each((function(e){n.setRng(e.toRange())})),!0)})).getOr(!1))}function Lb(e,t){return!e.selection.isCollapsed()&&Bb(e)}function $b(e,t,n,r,i){return ye.from(t._selectionOverrides.showCaret(e,n,r,i))}function Vb(e,t){var n,r;return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?ye.none():ye.some(((r=(n=t).ownerDocument.createRange()).selectNode(n),r))}function jb(e,t,n){var r=iu(1,e.getBody(),t),i=fl.fromRangeStart(r),o=i.getNode();if(Ou(o))return $b(1,e,o,!i.isAtEnd(),!1);var a=i.getNode(!0);if(Ou(a))return $b(1,e,a,!1,!1);var s=e.dom.getParent(i.getNode(),(function(e){return By(e)||Fy(e)}));return Ou(s)?$b(1,e,s,!1,n):ye.none()}function zb(e,t,n){return t.collapsed?jb(e,t,n).getOr(t):t}function Hb(e){return om(e)||tm(e)}function Ub(e){return am(e)||nm(e)}function Wb(e,t,n,r,i,o){var a,s;return $b(r,e,o.getNode(!i),i,!0).each((function(n){var r;t.collapsed?(r=t.cloneRange(),i?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()):t.deleteContents(),e.selection.setRng(n)})),a=e.dom,Wn(s=n)&&0===s.data.length&&a.remove(s),!0}function qb(e,t){var n=e.selection.getRng();if(!Wn(n.commonAncestorContainer))return!1;var r=t?cu.Forwards:cu.Backwards,i=$u(e.getBody()),o=O(lu,t?i.next:i.prev),a=t?Hb:Ub,s=au(r,e.getBody(),n),l=Cb(t,o(s));if(!l||!uu(s,l))return!1;if(a(l))return Wb(e,n,s.getNode(),r,t,l);var u=o(l);return!!(u&&a(u)&&uu(l,u))&&Wb(e,n,s.getNode(),r,t,u)}function Gb(e,t,n){return tf(t,e,n).bind((function(r){return f=r.getNode(),wi(Ot.fromDom(f))||bi(Ot.fromDom(f))||(s=e,c=r,ou(!(l=t),u=n).fold((function(){return ou(l,c).fold(A,d)}),d))?ye.none():t&&Zn(r.getNode())||!1===t&&Zn(r.getNode(!0))?(i=e,o=n,a=r.getNode(!1===t),Sb(Ot.fromDom(i),Ot.fromDom(o.getNode())).map((function(e){return Kr(e)?Ly.remove(e.dom):Ly.moveToElement(a)})).orThunk((function(){return ye.some(Ly.moveToElement(a))}))):t&&am(n)||!1===t&&om(n)?ye.some(Ly.moveToPosition(r)):ye.none();var i,o,a,s,l,u,c,f;function d(e){return Rr(Ot.fromDom(e))&&!eu(u,c,s)}}))}function Yb(e,t){return ye.from(wf(e.getBody(),t))}function Kb(e,t){var n=e.selection.getNode();return Yb(e,n).filter(Zn).fold((function(){return c=e.getBody(),d=iu((f=t)?1:-1,c,e.selection.getRng()),h=fl.fromRangeStart(d),p=Ot.fromDom(c),(!1===f&&am(h)?ye.some(Ly.remove(h.getNode(!0))):f&&om(h)?ye.some(Ly.remove(h.getNode())):!1===f&&om(h)&&Eh(p,h)?fm(p,h).map((function(e){return Ly.remove(e.getNode())})):f&&am(h)&&Th(p,h)?dm(p,h).map((function(e){return Ly.remove(e.getNode())})):(n=c,r=f,l=(i=h).getNode(!1===(s=r)),u=s?"after":"before",Hn(l)&&l.getAttribute("data-mce-caret")===u?(a=i.getNode(!1===(o=r)),(o&&Zn(a.nextSibling)?ye.some(Ly.moveToElement(a.nextSibling)):!1===o&&Zn(a.previousSibling)?ye.some(Ly.moveToElement(a.previousSibling)):ye.none()).fold((function(){return Gb(n,r,i)}),ye.some)):Gb(n,r,i).bind((function(e){return t=n,r=i,e.fold((function(e){return ye.some(Ly.remove(e))}),(function(e){return ye.some(Ly.moveToElement(e))}),(function(e){return eu(r,e,t)?ye.none():ye.some(Ly.moveToPosition(e))}));var t,r})))).exists((function(n){return n.fold((function(e){return a._selectionOverrides.hideFakeCaret(),ep(a,s,Ot.fromDom(e)),!0}),(o=s=t,function(e){var t=o?fl.before(e):fl.after(e);return i.selection.setRng(t.toRange()),!0}),(r=i=a=e,function(e){return r.selection.setRng(e.toRange()),!0}));var r,i,o,a,s}));var n,r,i,o,a,s,l,u,c,f,d,h,p}),P)}function Xb(e,t){var n=e.selection.getNode();return!(!Zn(n)||Qn(n))&&Yb(e,n.parentNode).filter(Zn).fold((function(){return V(_s(Ot.fromDom(e.getBody()),".mce-offscreen-selection"),Ln),ep(e,t,Ot.fromDom(e.selection.getNode())),kb(e),!0}),P)}function Jb(e){var t,n=e.dom,r=e.selection,i=wf(e.getBody(),r.getNode());return Jn(i)&&n.isBlock(i)&&n.isEmpty(i)&&(t=n.create("br",{"data-mce-bogus":"1"}),n.setHTML(i,""),i.appendChild(t),r.setRng(fl.before(t).toRange())),!0}function Zb(e,t){return(e.selection.isCollapsed()?Kb:Xb)(e,t)}function Qb(e,t){return!!e.selection.isCollapsed()&&(n=e,r=t,i=fl.fromRangeStart(n.selection.getRng()),tf(r,n.getBody(),i).filter((function(e){return(r?Qp:em)(e)})).bind((function(e){return ye.from(tu(r?0:-1,e))})).exists((function(e){return n.selection.select(e),!0})));var n,r,i}function ey(e){return $y(e)&&e.data[0]===Si}function ty(e){return $y(e)&&e.data[e.data.length-1]===Si}function ny(e){return e.ownerDocument.createTextNode(Si)}function ry(e,t){return(e?function(e){if($y(e.previousSibling))return ty(e.previousSibling)||e.previousSibling.appendData(Si),e.previousSibling;if($y(e))return ey(e)||e.insertData(0,Si),e;var t=ny(e);return e.parentNode.insertBefore(t,e),t}:function(e){if($y(e.nextSibling))return ey(e.nextSibling)||e.nextSibling.insertData(0,Si),e.nextSibling;if($y(e))return ty(e)||e.appendData(Si),e;var t=ny(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t})(t)}function iy(e,t){return Wn(e.container())?ry(t,e.container()):ry(t,e.getNode())}function oy(e,t){var n=t.get();return n&&e.container()===n&&Lr(n)}function ay(e,t){return t.fold((function(t){Cu(e.get());var n=Vy(t);return e.set(n),ye.some(fl(n,n.length-1))}),(function(t){return af(t).map((function(t){if(oy(t,e))return fl(e.get(),1);Cu(e.get());var n=iy(t,!0);return e.set(n),fl(n,1)}))}),(function(t){return sf(t).map((function(t){if(oy(t,e))return fl(e.get(),e.get().length-1);Cu(e.get());var n=iy(t,!1);return e.set(n),fl(n,n.length-1)}))}),(function(t){Cu(e.get());var n=jy(t);return e.set(n),ye.some(fl(n,1))}))}function sy(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return ye.none()}function ly(e,t){return Ql(t,e)||e}function uy(e,t,n){var r=My(n),i=ly(t,r.container());return _b(e,i,r).fold((function(){return rf(i,r).bind(O(_b,e,i)).map((function(e){return zy.before(e)}))}),ye.none)}function cy(e,t){return null===qu(e,t)}function fy(e,t,n){return _b(e,t,n).filter(O(cy,t))}function dy(e,t,n){var r=Ry(n);return fy(e,t,r).bind((function(e){return of(e,r).isNone()?ye.some(zy.start(e)):ye.none()}))}function hy(e,t,n){var r=My(n);return fy(e,t,r).bind((function(e){return rf(e,r).isNone()?ye.some(zy.end(e)):ye.none()}))}function py(e,t,n){var r=Ry(n),i=ly(t,r.container());return _b(e,i,r).fold((function(){return of(i,r).bind(O(_b,e,i)).map((function(e){return zy.after(e)}))}),ye.none)}function my(e){return!1===(t=Hy(e),"rtl"===ns.DOM.getStyle(t,"direction",!0)||(n=t.textContent,Py.test(n)));var t,n}function gy(e,t,n){return sy([uy,dy,hy,py],[e,t,n]).filter(my)}function vy(e){return e.fold(h("before"),h("start"),h("end"),h("after"))}function by(e){return e.fold(zy.before,zy.before,zy.after,zy.after)}function yy(e){return e.fold(zy.start,zy.start,zy.end,zy.end)}function wy(e,t,n,r,i,o){return pn(_b(t,n,r),_b(t,n,i),(function(t,r){return t!==r&&(a=r,s=Ql(t,i=n),l=Ql(a,i),s&&s===l)?zy.after(e?t:r):o;var i,a,s,l})).getOr(o)}function _y(e,t){return e.fold(P,(function(e){return r=t,!(vy(n=e)===vy(r)&&Hy(n)===Hy(r));var n,r}))}function Cy(e,t){return e?t.fold(f(ye.some,zy.start),ye.none,f(ye.some,zy.after),ye.none):t.fold(ye.none,f(ye.some,zy.before),ye.none,f(ye.some,zy.end))}function xy(e,t,n,r){var i=Cb(e,r),o=gy(t,n,i);return gy(t,n,i).bind(O(Cy,e)).orThunk((function(){return a=t,s=n,l=o,u=Cb(i=e,r),tf(i,s,u).map(O(Cb,i)).fold((function(){return l.map(by)}),(function(e){return gy(a,s,e).map(O(wy,i,a,s,u,e)).filter(O(_y,l))})).filter(my);var i,a,s,l,u}))}function Sy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error||r.log).apply(r,Ie([e],t,!1))}var ky,Dy,Oy=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r="content"+e.editorManager.suffix+".css",i=!0===e.inline;return $(t,(function(t){return/^[a-z0-9\-]+$/i.test(t)&&!i?n+"/"+t+"/"+r:e.documentBaseURI.toAbsolute(t)}))},Ty=0,Ey=Dt.each,Iy=ns.DOM,Ny=[9,27,Lf.HOME,Lf.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Lf.DOWN,Lf.UP,Lf.LEFT,Lf.RIGHT].concat(xt.browser.isFirefox()?[224]:[]),Ay="data-mce-placeholder",Py=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,My=O(Cb,!0),Ry=O(Cb,!1),Fy=Jn,By=Zn,Ly=sr([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),$y=Wn,Vy=O(ry,!0),jy=O(ry,!1),zy=sr([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),Hy=function(e){return e.fold(p,p,p,p)};function Uy(e,t,n){var r=e?1:-1;return t.setRng(fl(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0}function Wy(e,t){return e===cu.Backwards?J(t):t}function qy(e,t,n,r){for(var i,o,a,s,l=$u(n),u=r,c=[];u;){var f=(a=l,s=u,t===cu.Forwards?a.next(s):a.prev(s));if(!f)break;if(Kn(f.getNode(!1)))return t===cu.Forwards?{positions:Wy(t,c).concat([f]),breakType:ky.Br,breakAt:ye.some(f)}:{positions:Wy(t,c),breakType:ky.Br,breakAt:ye.some(f)};if(f.isVisible()){if(e(u,f)){var d=(i=u,Kn((o=f).getNode(t===cu.Forwards))?ky.Br:!1===eu(i,o)?ky.Block:ky.Wrap);return{positions:Wy(t,c),breakType:d,breakAt:ye.some(f)}}c.push(f),u=f}else u=f}return{positions:Wy(t,c),breakType:ky.Eol,breakAt:ye.none()}}function Gy(e,t,n,r){return t(n,r).breakAt.map((function(r){var i=t(n,r).positions;return e===cu.Backwards?i.concat(r):[r].concat(i)})).getOr([])}function Yy(e,t){return W(e,(function(e,n){return e.fold((function(){return ye.some(n)}),(function(r){return pn(te(r.getClientRects()),te(n.getClientRects()),(function(e,i){var o=Math.abs(t-e.left);return Math.abs(t-i.left)<=o?n:r})).or(e)}))}),ye.none())}function Ky(e,t){return te(t.getClientRects()).bind((function(t){return Yy(e,t.left)}))}function Xy(e){function t(t){return $(t,(function(t){var n=Ns(t);return n.node=e,n}))}if(Hn(e))return t(e.getClientRects());if(Wn(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}}function Jy(e){return K(e,Xy)}O(xy,!1),O(xy,!0),(Dy=ky={})[Dy.Br=0]="Br",Dy[Dy.Block=1]="Block",Dy[Dy.Wrap=2]="Wrap",Dy[Dy.Eol=3]="Eol";var Zy,Qy,ew=O(qy,fl.isAbove,-1),tw=O(qy,fl.isBelow,1),nw=O(Gy,-1,ew),rw=O(Gy,1,tw);function iw(e,t,n,r,i,o){function a(r){var o=Jy([r]);-1===e&&(o=o.reverse());for(var a=0;a<o.length;a++){var c=o[a];if(!n(c,u)){if(0<l.length&&t(c,ve(l))&&s++,c.line=s,i(c))return!0;l.push(c)}}}var s=0,l=[],u=ve(o.getClientRects());if(!u)return l;var c=o.getNode();return a(c),function(e,t,n,r){for(;r=Zl(r,e,qr,t);)if(n(r))return}(e,r,a,c),l}function ow(e){return function(t){return t.line>e}}function aw(e){return function(t){return t.line===e}}function sw(e,t){return Math.abs(e.left-t)}function lw(e,t){return Math.abs(e.right-t)}function uw(e,t){return e>=t.left&&e<=t.right}function cw(e,t){return e>=t.top&&e<=t.bottom}function fw(e,t,n){return void 0===n&&(n=P),me(e,(function(e,r){if(uw(t,r))return n(r)?r:e;if(uw(t,e))return n(e)?e:r;var i=Math.min(sw(e,t),lw(e,t)),o=Math.min(sw(r,t),lw(r,t));return o===i&&ce(r,"node")&&tC(r.node)||o<i?r:e}))}function dw(e,t,n,r,i){var o=nC(r,e,qr,t,!i);do{if(!o||n(o))return}while(o=nC(o,e,qr,t))}function hw(e,t,n){function r(e){return!fn(e.node)&&!er(e.node)}var i,o,a,s=Jy(H(xe(e.getElementsByTagName("*")),Xl)),l=H(s,O(cw,n));return(a=fw(l,t,r))&&(a=fw(function(e,t,n){function r(e,n){var r=H(Jy([n]),(function(n){return!e(n,t)}));return i=i.concat(r),0===r.length}void 0===n&&(n=!0);var i=[];return i.push(t),dw(Zy.Up,e,O(r,Ms),t.node,n),dw(Zy.Down,e,O(r,Rs),t.node,n),i}(e,a,r(a)),t,r))&&Xl(a.node)?{node:(i=a).node,before:sw(i,o=t)<lw(i,o)}:null}function pw(e,t){e.selection.setRng(t),id(e,e.selection.getRng())}function mw(e,t,n){return ye.some(zb(e,t,n))}function gw(e,t,n,r,i,o){var a=t===cu.Forwards,s=$u(e.getBody()),l=O(lu,a?s.next:s.prev),u=a?r:i;if(!n.collapsed){var c=Bs(n);if(o(c))return $b(t,e,c,t===cu.Backwards,!1)}var f=au(t,e.getBody(),n);if(u(f))return Vb(e,f.getNode(!a));var d=Cb(a,l(f)),h=Ur(n);if(!d)return h?ye.some(n):ye.none();if(u(d))return $b(t,e,d.getNode(!a),a,!1);var p=l(d);return p&&u(p)&&uu(d,p)?$b(t,e,p.getNode(!a),a,!1):h?mw(e,d.toRange(),!1):ye.none()}function vw(e,t,n,r,i,o){var a=au(t,e.getBody(),n),s=ve(a.getClientRects()),l=t===Zy.Down;if(!s)return ye.none();var u,c=H((l?eC:Q_)(e.getBody(),ow(1),a),aw(1)),f=s.left,d=fw(c,f);if(d&&o(d.node)){var h=Math.abs(f-d.left),p=Math.abs(f-d.right);return $b(t,e,d.node,h<p,!1)}if(u=r(a)?a.getNode():i(a)?a.getNode(!0):Bs(n)){var m=function(e,t,n,r){function i(e){return ve(e.getClientRects())}var o,a,s,l=$u(t),u=[],c=0,f=1===e?(o=l.next,a=Rs,s=Ms,fl.after(r)):(o=l.prev,a=Ms,s=Rs,fl.before(r)),d=i(f);do{if(f.isVisible()){var h=i(f);if(!s(h,d)){0<u.length&&a(h,ve(u))&&c++;var p=Ns(h);if(p.position=f,p.line=c,n(p))return u;u.push(p)}}}while(f=o(f));return u}(t,e.getBody(),ow(1),u),g=fw(H(m,aw(1)),f);if(g)return mw(e,g.position.toRange(),!1);if(g=ve(H(m,aw(0))))return mw(e,g.position.toRange(),!1)}return 0===c.length?rC(e,l).filter(l?i:r).map((function(t){return zb(e,t.toRange(),!1)})):ye.none()}function bw(e,t,n){return rC(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))}function yw(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)}function ww(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")}function _w(e,t,n){return ay(t,n).map((function(t){return yw(e,t),n}))}function Cw(e,t,n){return!!$l(e)&&(i=t,o=n,a=(r=e).getBody(),s=fl.fromRangeStart(r.selection.getRng()),xy(o,O(wb,r),a,s).bind((function(e){return _w(r,i,e)})).isSome());var r,i,o,a,s}function xw(e,t,n){return!!$l(t)&&(r=e,o=(i=t).selection.getRng(),a=r?fl.fromRangeEnd(o):fl.fromRangeStart(o),!!k(i.selection.getSel().modify)&&(r&&jr(a)?Uy(!0,i.selection,a):!(r||!zr(a))&&Uy(!1,i.selection,a)));var r,i,o,a}function Sw(e){var t=ls(null),n=O(wb,e);return e.on("NodeChange",(function(r){var i,o,a,s,l,u,c,f,d,h,p,m,g;!$l(e)||xt.browser.isIE()&&r.initial||(l=n,u=e.dom,c=r.parents,V(Z(f=H($(_s(Ot.fromDom(u.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),l),d=H(c,l)),O(ww,!1)),V(Z(d,f),O(ww,!0)),p=t,(h=e).selection.isCollapsed()&&!0!==h.composing&&p.get()&&(m=fl.fromRangeStart(h.selection.getRng()),fl.isTextPosition(m)&&!1===(jr(g=m)||zr(g))&&(yw(h,ql(p.get(),m)),p.set(null))),i=n,o=e,a=t,s=r.parents,o.selection.isCollapsed()&&V(H(s,i),(function(e){var t=fl.fromRangeStart(o.selection.getRng());gy(i,o.getBody(),t).bind((function(e){return _w(o,a,e)}))})))})),t}function kw(e,t,n){if($l(e)){var r=rC(e,t).getOrThunk((function(){var n=e.selection.getRng();return t?fl.fromRangeEnd(n):fl.fromRangeStart(n)}));return gy(O(wb,e),e.getBody(),r).exists((function(t){var r=by(t);return ay(n,r).exists((function(t){return yw(e,t),!0}))}))}return!1}function Dw(e,t){return function(n){return ay(t,n).exists((function(t){return yw(e,t),!0}))}}function Ow(e,t,n,r){var i=e.getBody(),o=O(wb,e);e.undoManager.ignore((function(){var a,s,l;e.selection.setRng((a=n,s=r,(l=document.createRange()).setStart(a.container(),a.offset()),l.setEnd(s.container(),s.offset()),l)),e.execCommand("Delete"),gy(o,i,fl.fromRangeStart(e.selection.getRng())).map(yy).map(Dw(e,t))})),e.nodeChanged()}function Tw(e,t,n){if(e.selection.isCollapsed()&&$l(e)){var r=fl.fromRangeStart(e.selection.getRng());return o=t,a=n,s=r,l=(i=e).getBody(),u=Ql(s.container(),l)||l,c=O(wb,i),(f=gy(c,u,s)).bind((function(e){return a?e.fold(h(ye.some(yy(e))),ye.none,h(ye.some(by(e))),ye.none):e.fold(ye.none,h(ye.some(by(e))),ye.none,h(ye.some(yy(e))))})).map(Dw(i,o)).getOrThunk((function(){var e=Hu(a,u,s),t=e.bind((function(e){return gy(c,u,e)}));return pn(f,t,(function(){return _b(c,u,s).exists((function(e){return!!pn(af(t=e),sf(t),(function(e,n){var r=Cb(!0,e),i=Cb(!1,n);return rf(t,r).forall((function(e){return e.isEqual(i)}))})).getOr(!0)&&(ep(i,a,Ot.fromDom(e)),!0);var t}))})).orThunk((function(){return t.bind((function(t){return e.map((function(e){return a?Ow(i,o,s,e):Ow(i,o,e,s),!0}))}))})).getOr(!1)}))}var i,o,a,s,l,u,c,f;return!1}function Ew(e){return 1===zt(e)}function Iw(e,t){var n,r=Ot.fromDom(e.getBody()),i=Ot.fromDom(e.selection.getStart()),o=H(Y(n=_h(i,r),mi).fold(h(n),(function(e){return n.slice(0,e)})),Ew);return ne(o).exists((function(n){var r,i,a,s,l,u,c,f,d,h=fl.fromRangeStart(e.selection.getRng()),p=t,m=h,g=n.dom;return!(!pn(af(g),sf(g),(function(e,t){var n=Cb(!0,e),r=Cb(!1,t),i=Cb(!1,m);return p?rf(g,i).exists((function(e){return e.isEqual(r)&&m.isEqual(n)})):of(g,i).exists((function(e){return e.isEqual(n)&&m.isEqual(r)}))})).getOr(!0)||Wu((r=n).dom)&&$p(r.dom)||(i=t,s=n,0===(d=$(H(o,O(Yp,a=e)),(function(e){return e.dom}))).length?ep(a,i,s):(u=s.dom,f=Wp(d,(c=jp(!1)).dom),qt(Ot.fromDom(u),c),Ln(Ot.fromDom(u)),l=fl(f,0),a.selection.setRng(l.toRange())),0))}))}function Nw(e,t){return!!e.selection.isCollapsed()&&Iw(e,t)}function Aw(e,t,n){return e._selectionOverrides.hideFakeCaret(),ep(e,t,Ot.fromDom(n)),!0}function Pw(e,t){return e.selection.isCollapsed()?(o=e,s=(a=t)?tm:nm,l=a?cu.Forwards:cu.Backwards,u=au(l,o.getBody(),o.selection.getRng()),s(u)?Aw(o,a,u.getNode(!a)):ye.from(Cb(a,u)).filter((function(e){return s(e)&&uu(u,e)})).exists((function(e){return Aw(o,a,e.getNode(!a))}))):(r=t,i=(n=e).selection.getNode(),!!er(i)&&Aw(n,r,i));var n,r,i,o,a,s,l,u}function Mw(e){var t=parseInt(e,10);return isNaN(t)?0:t}function Rw(e,t){return(e||"table"===Tt(t)?"margin":"padding")+("rtl"===Sn(t,"direction")?"-right":"-left")}function Fw(e){var t,n=aC(e);return!e.mode.isReadOnly()&&(1<n.length||(t=e,X(n,(function(e){var n=kn(e,Rw(Ml(t),e)).map(Mw).getOr(0);return"false"!==t.dom.getContentEditable(e.dom)&&0<n}))))}function Bw(e){return vi(e)||bi(e)}function Lw(e,t){var n=e.dom,r=e.selection,i=e.formatter,o=e.getParam("indentation","40px","string"),a=/[a-z%]+$/i.exec(o)[0],s=parseInt(o,10),l=Ml(e),u=Tl(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==u||n.getParent(r.getNode(),n.isBlock)||i.apply("div"),V(aC(e),(function(e){var r,i=n,o=t,u=s,c=a,f=e.dom,d=Rw(l,Ot.fromDom(f));"outdent"===o?(r=Math.max(0,Mw(f.style[d])-u),i.setStyle(f,d,r?r+c:"")):(r=Mw(f.style[d])+u+c,i.setStyle(f,d,r))}))}function $w(e,t){if(e.selection.isCollapsed()&&Fw(e)){var n=e.dom,r=e.selection.getRng(),i=fl.fromRangeStart(r),o=n.getParent(r.startContainer,n.isBlock);if(null!==o&&sm(Ot.fromDom(o),i))return Lw(e,"outdent"),!0}return!1}function Vw(e,t){e.getDoc().execCommand(t,!1,null)}function jw(e){return void 0===e.touches||1!==e.touches.length?ye.none():ye.some(e.touches[0])}function zw(e,t){return Oe(e,t.nodeName)}function Hw(e){var t,n,r,i=e.dom,o=e.selection,a=e.schema,s=a.getBlockElements(),l=o.getStart(),u=e.getBody(),c=Tl(e);if(l&&Hn(l)&&c){var f=u.nodeName.toLowerCase();if(a.isValidChild(f,c.toLowerCase())&&(d=s,h=u,p=l,!L(wh(Ot.fromDom(p),Ot.fromDom(h)),(function(e){return zw(d,e.dom)})))){var d,h,p,m,g,v=o.getRng(),b=v.startContainer,y=v.startOffset,w=v.endContainer,_=v.endOffset,C=Cd(e);for(l=u.firstChild;l;)m=s,Wn(g=l)||Hn(g)&&!zw(m,g)&&!ec(g)?function(e,t){if(Wn(t)){if(0===t.nodeValue.length)return 1;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||zw(e,t.nextSibling)))return 1}}(s,l)?(l=(n=l).nextSibling,i.remove(n)):(t||(t=i.create(c,El(e)),l.parentNode.insertBefore(t,l),r=!0),l=(n=l).nextSibling,t.appendChild(n)):(t=null,l=l.nextSibling);r&&C&&(v.setStart(b,y),v.setEnd(w,_),o.setRng(v),e.nodeChanged())}}}function Uw(e,t){t.hasAttribute("data-mce-caret")&&(Hr(t),e.selection.setRng(e.selection.getRng()),e.selection.scrollIntoView(t))}function Ww(e,t){var n=wr(Ot.fromDom(e.getBody()),"*[data-mce-caret]").map((function(e){return e.dom})).getOrNull();if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void Uw(e,n)):void(Vr(n)&&(Uw(e,n),e.undoManager.add()))}function qw(e,t,n){var r,i,o,a=$u(e.getBody()),s=O(lu,1===t?a.next:a.prev);!n.collapsed||""===Tl(e)||(r=e.dom.getParent(n.startContainer,"PRE"))&&(s(fl.fromRangeStart(n))||(o=e.dom.create(Tl(e)),(!xt.ie||11<=xt.ie)&&(o.innerHTML='<br data-mce-bogus="1">'),i=o,1===t?e.$(r).after(i):e.$(r).before(i),e.selection.select(i,!0),e.selection.collapse()))}function Gw(e,t){return n=e,r=t?cu.Forwards:cu.Backwards,i=n.selection.getRng(),gw(n,r,i,om,am,sC).orThunk((function(){return qw(n,r,i),ye.none()})).exists((function(t){return pw(e,t),!0}));var n,r,i}function Yw(e,t){return r=t?1:-1,i=(n=e).selection.getRng(),vw(n,r,i,(function(e){return om(e)||rm(e)}),(function(e){return am(e)||im(e)}),sC).orThunk((function(){return qw(n,r,i),ye.none()})).exists((function(t){return pw(e,t),!0}));var n,r,i}function Kw(e,t){return bw(e,t,t?am:om)}function Xw(e){return B(["figcaption"],Tt(e))}function Jw(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t}function Zw(e,t,n){(n?Bn:Yt)(e,t)}function Qw(e,t){var n=Ot.fromDom(e.getBody()),r=fl.fromRangeStart(e.selection.getRng()),i=Tl(e),o=El(e),a=r,s=O(Ue,n);return br(Ot.fromDom(a.container()),mi,s).filter(Xw).exists((function(){if(b=n,y=r,t?(_=b.dom,tw(_,y).breakAt.isNone()):(w=b.dom,ew(w,y).breakAt.isNone())){var a=(s=n,u=o,c=t,""===(l=i)?(g=c,Zw(s,v=Ot.fromTag("br"),g),Jw(v)):(f=s,d=c,h=u,p=Ot.fromTag(l),m=Ot.fromTag("br"),bn(p,h),Bn(p,m),Zw(f,p,d),Jw(m)));return e.selection.setRng(a),!0}var s,l,u,c,f,d,h,p,m,g,v,b,y,w,_;return!1}))}function e_(e,t){return!!e.selection.isCollapsed()&&Qw(e,t)}function t_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}}function n_(e,t){return G((n=t,K($(e,(function(e){return Ee({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:c},e)})),(function(e){return n.keyCode===e.keyCode&&n.shiftKey===e.shiftKey&&n.altKey===e.altKey&&n.ctrlKey===e.ctrlKey&&n.metaKey===e.metaKey?[e]:[]}))),(function(e){return e.action()}));var n}function r_(e,t){var n=t?cu.Forwards:cu.Backwards,r=e.selection.getRng();return gw(e,n,r,tm,nm,er).exists((function(t){return pw(e,t),!0}))}function i_(e,t){var n=t?1:-1,r=e.selection.getRng();return vw(e,n,r,tm,nm,er).exists((function(t){return pw(e,t),!0}))}function o_(e,t){return bw(e,t,t?nm:tm)}function a_(e,t,n,r,i){var o,a=_s(Ot.fromDom(n),"td,th,caption").map((function(e){return e.dom})),s=H((o=e,K(a,(function(e){var t,n={left:(t=Ns(e.getBoundingClientRect())).left- -1,top:t.top- -1,right:t.right+-2,bottom:t.bottom+-2,width:t.width+-1,height:t.height+-1};return[{x:n.left,y:o(n),cell:e},{x:n.right,y:o(n),cell:e}]}))),(function(e){return t(e,i)})),l=r,u=i;return W(s,(function(e,t){return e.fold((function(){return ye.some(t)}),(function(e){var n=Math.sqrt(Math.abs(e.x-l)+Math.abs(e.y-u)),r=Math.sqrt(Math.abs(t.x-l)+Math.abs(t.y-u));return ye.some(r<n?t:e)}))}),ye.none()).map((function(e){return e.cell}))}function s_(e,t,n){var r,i,o=e(t,n);return o.breakType===ky.Wrap&&0===o.positions.length||!Kn(n.getNode())&&o.breakType===ky.Br&&1===o.positions.length?(r=e,i=t,!o.breakAt.exists((function(e){return r(i,e).breakAt.isSome()}))):o.breakAt.isNone()}function l_(e,t,n,r){var i,o,a,s=e.selection.getRng(),l=t?1:-1;return!(!Kl()||(i=t,o=n,a=fl.fromRangeStart(s),!Uu(!i,o).exists((function(e){return e.isEqual(a)})))||($b(l,e,n,!t,!1).each((function(t){pw(e,t)})),0))}function u_(e,t,n){var r,i,o=(r=!!t,i=n.getNode(r),Hn(i)&&"TABLE"===i.nodeName?ye.some(i):ye.none()),a=!1===t;o.fold((function(){return pw(e,n.toRange())}),(function(r){return Uu(a,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return pw(e,n.toRange())}),(function(i){var o,a,s=t,l=r,u=n;(a=Tl(o=e))?o.undoManager.transact((function(){var e=Ot.fromTag(a);bn(e,El(o)),Bn(e,Ot.fromTag("br")),(s?Gt:qt)(Ot.fromDom(l),e);var t=o.dom.createRng();t.setStart(e.dom,0),t.setEnd(e.dom,0),pw(o,t)})):pw(o,u.toRange())}))}))}function c_(e,t,n,r){var i,o,a,s,l,u,c,f,d,h,p=e.selection.getRng(),m=fl.fromRangeStart(p),g=e.getBody();if(t||!cC(r,m))return!(!t||!fC(r,m))&&(i=g,d=o=n,u_(e,t,v=ne((h=a=m).getClientRects()).bind((function(e){return uC(d,e.left,e.top)})).bind((function(e){return Ky(af(t=e).map((function(e){return[e].concat(tw(t,e).positions)})).getOr([]),h);var t})).orThunk((function(){return te(a.getClientRects()).bind((function(e){return Yy(rw(i,fl.after(o)),e.left)}))})).getOr(fl.after(o))),!0);var v=(s=g,c=l=n,te((f=u=m).getClientRects()).bind((function(e){return lC(c,e.left,e.top)})).bind((function(e){return Ky(sf(t=e).map((function(e){return ew(t,e).positions.concat(e)})).getOr([]),f);var t})).orThunk((function(){return te(u.getClientRects()).bind((function(e){return Yy(nw(s,fl.before(l)),e.left)}))})).getOr(fl.before(l)));return u_(e,t,v),!0}function f_(e,t,n){return ye.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(r){return ye.from(e.dom.getParent(r,"table")).map((function(i){return n(e,t,i,r)}))})).getOr(!1)}function d_(e,t){return f_(e,t,l_)}function h_(e,t){return f_(e,t,c_)}function p_(e,t){var n,r,i=t,o=e.dom,a=e.schema.getMoveCaretBeforeOnEnterElements();if(t){!/^(LI|DT|DD)$/.test(t.nodeName)||(r=function(e){for(;e;){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}}(t.firstChild))&&/^(UL|OL|DL)$/.test(r.nodeName)&&t.insertBefore(o.doc.createTextNode(xi),t.firstChild);var s=o.createRng();if(t.normalize(),t.hasChildNodes()){for(var l=new Ar(t,t);n=l.current();){if(Wn(n)){s.setStart(n,0),s.setEnd(n,0);break}if(a[n.nodeName.toLowerCase()]){s.setStartBefore(n),s.setEndBefore(n);break}i=n,n=l.next()}n||(s.setStart(i,0),s.setEnd(i,0))}else Kn(t)?t.nextSibling&&o.isBlock(t.nextSibling)?(s.setStartBefore(t),s.setEndBefore(t)):(s.setStartAfter(t),s.setEndAfter(t)):(s.setStart(t,0),s.setEnd(t,0));e.selection.setRng(s),id(e,s)}}function m_(e){return ye.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))}function g_(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t}function v_(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)}function b_(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e}function y_(e,t,n){for(var r=e[n?"firstChild":"lastChild"];r&&!Hn(r);)r=r[n?"nextSibling":"previousSibling"];return r===t}function w_(e){e.innerHTML='<br data-mce-bogus="1">'}function __(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t}function C_(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)}function x_(e,t,n){return!1===Wn(t)?n:e?1===n&&t.data.charAt(n-1)===Si?0:n:n===t.data.length-1&&t.data.charAt(n)===Si?t.data.length:n}function S_(e,t){for(var n,r=e.getRoot(),i=t;i!==r&&"false"!==e.getContentEditable(i);)"true"===e.getContentEditable(i)&&(n=i),i=i.parentNode;return i!==r?n:r}function k_(e,t){var n=Tl(e);n&&n.toLowerCase()===t.tagName.toLowerCase()&&function(e,t,n){var r=e.dom;ye.from(n.style).map(r.parseStyle).each((function(e){var n=Dn(Ot.fromDom(t)),i=Ee(Ee({},n),e);r.setStyles(t,i)})),pn(ye.from(n.class).map((function(e){return e.split(/\s+/)})),ye.from(t.className).map((function(e){return H(e.split(/\s+/),(function(e){return""!==e}))})),(function(e,n){var i=H(n,(function(t){return!B(e,t)})),o=Ie(Ie([],e,!0),i,!0);r.setAttrib(t,"class",o.join(" "))}));var i=["style","class"],o=le(n,(function(e,t){return!B(i,t)}));r.setAttribs(t,o)}(e,t,El(e))}function D_(e,t){function n(t){var n,r=h,i=c.getTextInlineElements(),o=t||"TABLE"===w||"HR"===w?u.create(t||m):b.cloneNode(!1),a=o;if(!1===e.getParam("keep_styles",!0))u.setAttrib(o,"style",null),u.setAttrib(o,"class",null);else for(;i[r.nodeName]&&(Wu(r)||ec(r)||(n=r.cloneNode(!1),u.setAttrib(n,"id",""),o.hasChildNodes()?n.appendChild(o.firstChild):a=n,o.appendChild(n))),(r=r.parentNode)&&r!==L;);return k_(e,o),w_(a),o}function r(e){var t,n,r=x_(e,h,p);if(!Wn(h)||!(e?0<r:r<h.nodeValue.length)){if(h.parentNode===b&&l&&!e)return 1;if(e&&Hn(h)&&h===b.firstChild)return 1;if(__(h,"TABLE")||__(h,"HR"))return l&&!e||!l&&e;var i=new Ar(h,b);for(Wn(h)&&(e&&0===r?i.prev():e||r!==h.nodeValue.length||i.next());t=i.current();){if(Hn(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),f[n]&&"br"!==n))return}else if(Wn(t)&&!Gr(t.nodeValue))return;e?i.prev():i.next()}return 1}}function i(){a=/^(H[1-6]|PRE|FIGURE)$/.test(w)&&"HGROUP"!==_?n(m):n(),e.getParam("end_container_on_empty_block",!1)&&C_(u,y)&&u.isEmpty(b)?a=u.split(y,b):u.insertAfter(a,b),p_(e,a)}var o,a,s,l,u=e.dom,c=e.schema,f=c.getNonEmptyElements(),d=e.selection.getRng();Mf(u,d).each((function(e){d.setStart(e.startContainer,e.startOffset),d.setEnd(e.endContainer,e.endOffset)}));var h=d.startContainer,p=d.startOffset,m=Tl(e),g=!(!t||!t.shiftKey),v=!(!t||!t.ctrlKey);Hn(h)&&h.hasChildNodes()&&(l=p>h.childNodes.length-1,h=h.childNodes[Math.min(p,h.childNodes.length-1)]||h,p=l&&Wn(h)?h.nodeValue.length:0);var b,y,w,_,C,x,S,k,D,O,T,E,I,N,A,P,M,R,F,B,L=S_(u,h);L&&((m&&!g||!m&&g)&&(h=function(e,t,n,r){var i,o,a,s,l,u,c=m||"P",f=e.dom,d=S_(f,n),h=f.getParent(n,f.isBlock);if(!h||!C_(f,h)){if(l=((h=h||d)===e.getBody()||(u=h)&&/^(TD|TH|CAPTION)$/.test(u.nodeName)?h:h.parentNode).nodeName.toLowerCase(),!h.hasChildNodes())return k_(e,i=f.create(c)),h.appendChild(i),t.setStart(i,0),t.setEnd(i,0),i;for(a=n;a.parentNode!==h;)a=a.parentNode;for(;a&&!f.isBlock(a);)a=(o=a).previousSibling;if(o&&e.schema.isValidChild(l,c.toLowerCase())){for(k_(e,i=f.create(c)),o.parentNode.insertBefore(i,o),a=o;a&&!f.isBlock(a);)s=a.nextSibling,i.appendChild(a),a=s;t.setStart(n,r),t.setEnd(n,r)}}return n}(e,d,h,p)),y=(b=u.getParent(h,u.isBlock))?u.getParent(b.parentNode,u.isBlock):null,w=b?b.nodeName.toUpperCase():"","LI"!==(_=y?y.nodeName.toUpperCase():"")||v||(y=(b=y).parentNode,w=_),/^(LI|DT|DD)$/.test(w)&&u.isEmpty(b)?(k=n,D=y,O=b,T=m,F=(S=e).dom,B=S.selection.getRng(),D!==S.getBody()&&(I=(T=v_(E=D)&&v_(E.parentNode)?"LI":T)?k(T):F.create("BR"),y_(D,O,!0)&&y_(D,O,!1)?g_(D,"LI")?(N=b_(D),F.insertAfter(I,N),(null===(R=(M=D).parentNode)||void 0===R?void 0:R.firstChild)===M?F.remove(N):F.remove(D)):F.replace(I,D):(y_(D,O,!0)?g_(D,"LI")?(F.insertAfter(I,b_(D)),I.appendChild(F.doc.createTextNode(" ")),I.appendChild(D)):D.parentNode.insertBefore(I,D):y_(D,O,!1)?F.insertAfter(I,b_(D)):(D=b_(D),(A=B.cloneRange()).setStartAfter(O),A.setEndAfter(D),P=A.extractContents(),"LI"===T&&P.firstChild&&"LI"===P.firstChild.nodeName?(I=P.firstChild,F.insertAfter(P,D)):(F.insertAfter(P,D),F.insertAfter(I,D))),F.remove(O)),p_(S,I))):m&&b===e.getBody()||(m=m||"P",Br(b)?(a=Hr(b),u.isEmpty(b)&&w_(b),k_(e,a),p_(e,a)):r()?i():r(!0)?(a=b.parentNode.insertBefore(n(),b),p_(e,__(b,"HR")?a:b)):((x=(C=d).cloneRange()).setStart(C.startContainer,x_(!0,C.startContainer,C.startOffset)),x.setEnd(C.endContainer,x_(!1,C.endContainer,C.endOffset)),(o=x.cloneRange()).setEndAfter(b),s=o.extractContents(),V(qs(Ot.fromDom(s),In),(function(e){var t=e.dom;t.nodeValue=Di(t.nodeValue)})),function(e){for(;Wn(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(s),a=s.firstChild,u.insertAfter(s,b),function(e,t){var n,r,i=a,o=[];if(i){for(;i=i.firstChild;){if(e.isBlock(i))return;Hn(i)&&!t[i.nodeName.toLowerCase()]&&o.push(i)}for(n=o.length;n--;)(!(i=o[n]).hasChildNodes()||i.firstChild===i.lastChild&&""===i.firstChild.nodeValue||(r=i)&&"A"===r.nodeName&&e.isEmpty(r))&&e.remove(i)}}(u,f),function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")}(u,b),u.isEmpty(b)&&w_(b),a.normalize(),u.isEmpty(a)?(u.remove(a),i()):(k_(e,a),p_(e,a))),u.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a})))}function O_(e,t,n){var r=e.dom.createRng();n?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)),e.selection.setRng(r),id(e,r)}function T_(e,t){var n=Ot.fromTag("br");qt(Ot.fromDom(t),n),e.undoManager.add()}function E_(e,t){dC(e.getBody(),t)||Gt(Ot.fromDom(t),Ot.fromTag("br"));var n=Ot.fromTag("br");Gt(Ot.fromDom(t),n),O_(e,n.dom,!1),e.undoManager.add()}function I_(e){return e&&"A"===e.nodeName&&"href"in e}function N_(e){return e.fold(A,I_,I_,A)}function A_(e,t){t.fold(c,O(T_,e),O(E_,e),c)}function P_(e,t){var n,r,i,o=(r=O(wb,n=e),i=fl.fromRangeStart(n.selection.getRng()),gy(r,n.getBody(),i).filter(N_));o.isSome()?o.each(O(A_,e)):function(e,t){var n,r,i=e.selection,o=e.dom,a=i.getRng();Mf(o,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var s,l=a.startOffset,u=a.startContainer;1===u.nodeType&&u.hasChildNodes()&&(s=l>u.childNodes.length-1,u=u.childNodes[Math.min(l,u.childNodes.length-1)]||u,l=s&&3===u.nodeType?u.nodeValue.length:0);var c=o.getParent(u,o.isBlock),f=c?o.getParent(c.parentNode,o.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==d||h||(c=f),u&&3===u.nodeType&&l>=u.nodeValue.length&&!function(e){for(var t,n=new Ar(u,c),r=e.getNonEmptyElements();t=n.next();)if(r[t.nodeName.toLowerCase()]||0<t.length)return 1}(e.schema)&&(n=o.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0),n=o.create("br"),hl(o,a,n),O_(e,n,r),e.undoManager.add()}(e,t)}function M_(e,t){return m_(e).filter((function(e){return 0<t.length&&ze(Ot.fromDom(e),t)})).isSome()}function R_(e,t){return M_(e,e.getParam("no_newline_selector",""))}function F_(e){return function(t,n){return""===Tl(t)===e}}function B_(e){return function(t,n){return m_(t).filter((function(e){return bi(Ot.fromDom(e))})).isSome()===e}}function L_(e,t){return function(n,r){return m_(n).fold(h(""),(function(e){return e.nodeName.toUpperCase()}))===e.toUpperCase()===t}}function $_(e){return L_("pre",e)}function V_(e){return function(t,n){return t.getParam("br_in_pre",!0)===e}}function j_(e,t){return M_(e,e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption"))}function z_(e,t){return t}function H_(e){var t=Tl(e),n=function(e,t){for(var n,r=e.getRoot(),i=t;i!==r&&"false"!==e.getContentEditable(i);)"true"===e.getContentEditable(i)&&(n=i),i=i.parentNode;return i!==r?n:r}(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")}function U_(e,t){return function(n,r){return W(e,(function(e,t){return e&&t(n,r)}),!0)?ye.some(t):ye.none()}}function W_(e,t){var n,r;n=e,r=t,sy([U_([R_],hC.none()),U_([L_("summary",!0)],hC.br()),U_([$_(!0),V_(!1),z_],hC.br()),U_([$_(!0),V_(!1)],hC.block()),U_([$_(!0),V_(!0),z_],hC.block()),U_([$_(!0),V_(!0)],hC.br()),U_([B_(!0),z_],hC.br()),U_([B_(!0)],hC.block()),U_([F_(!0),z_,H_],hC.block()),U_([F_(!0)],hC.br()),U_([j_],hC.br()),U_([F_(!1),z_],hC.br()),U_([H_],hC.block())],[n,!(!r||!r.shiftKey)]).getOr(hC.none()).fold((function(){P_(e,t)}),(function(){D_(e,t)}),c)}function q_(e){return e.stopImmediatePropagation()}function G_(e){return e.keyCode===Lf.PAGE_UP||e.keyCode===Lf.PAGE_DOWN}function Y_(e,t,n){n&&!e.get()?t.on("NodeChange",q_,!0):!n&&e.get()&&t.off("NodeChange",q_),e.set(n)}function K_(e,t){var n=t.container(),r=t.offset();return Wn(n)?(n.insertData(r,e),ye.some(fl(n,r+e.length))):su(t).map((function(n){var r=Ot.fromText(e);return(t.isAtEnd()?Gt:qt)(n,r),fl(r.dom,e.length)}))}function X_(e,t){return function(n){return o=e,(!Mh(a=n)&&(i=a,of((r=o).dom,i).isNone()||rf(r.dom,i).isNone()||sm(r,i)||lm(r,i)||Eh(r,i)||Th(r,i)||Ah(o,a)||Ph(o,a))?gC:vC)(t);var r,i,o,a}}function J_(e){var t,n,r=fl.fromRangeStart(e.selection.getRng()),i=Ot.fromDom(e.getBody());if(e.selection.isCollapsed()){var o=O(wb,e),a=fl.fromRangeStart(e.selection.getRng());return gy(o,e.getBody(),a).bind((n=i,function(e){return e.fold((function(e){return of(n.dom,fl.before(e))}),(function(e){return af(e)}),(function(e){return sf(e)}),(function(e){return rf(n.dom,fl.after(e))}))})).bind(X_(i,r)).exists((t=e,function(e){return t.selection.setRng(e.toRange()),t.nodeChanged(),!0}))}return!1}function Z_(e){var t,n,r,i,o,a,s,l,u,c,f,d,h,p,m=Sw(e);return e.on("keyup compositionstart",O(Ww,e)),p=m,(h=e).on("keydown",(function(e){var t,n,r,i;!1===e.isDefaultPrevented()&&(t=h,n=p,r=e,i=pt().os,n_([{keyCode:Lf.RIGHT,action:t_(Gw,t,!0)},{keyCode:Lf.LEFT,action:t_(Gw,t,!1)},{keyCode:Lf.UP,action:t_(Yw,t,!1)},{keyCode:Lf.DOWN,action:t_(Yw,t,!0)},{keyCode:Lf.RIGHT,action:t_(d_,t,!0)},{keyCode:Lf.LEFT,action:t_(d_,t,!1)},{keyCode:Lf.UP,action:t_(h_,t,!1)},{keyCode:Lf.DOWN,action:t_(h_,t,!0)},{keyCode:Lf.RIGHT,action:t_(r_,t,!0)},{keyCode:Lf.LEFT,action:t_(r_,t,!1)},{keyCode:Lf.UP,action:t_(i_,t,!1)},{keyCode:Lf.DOWN,action:t_(i_,t,!0)},{keyCode:Lf.RIGHT,action:t_(Cw,t,n,!0)},{keyCode:Lf.LEFT,action:t_(Cw,t,n,!1)},{keyCode:Lf.RIGHT,ctrlKey:!i.isOSX(),altKey:i.isOSX(),action:t_(iC,t,n)},{keyCode:Lf.LEFT,ctrlKey:!i.isOSX(),altKey:i.isOSX(),action:t_(oC,t,n)},{keyCode:Lf.UP,action:t_(e_,t,!1)},{keyCode:Lf.DOWN,action:t_(e_,t,!0)}],r).each((function(e){r.preventDefault()})))})),d=m,(f=e).on("keydown",(function(e){var t,n,r;!1===e.isDefaultPrevented()&&(n=d,r=e,n_([{keyCode:Lf.BACKSPACE,action:t_($w,t=f,!1)},{keyCode:Lf.BACKSPACE,action:t_(Zb,t,!1)},{keyCode:Lf.DELETE,action:t_(Zb,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(qb,t,!1)},{keyCode:Lf.DELETE,action:t_(qb,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Tw,t,n,!1)},{keyCode:Lf.DELETE,action:t_(Tw,t,n,!0)},{keyCode:Lf.BACKSPACE,action:t_(_p,t,!1)},{keyCode:Lf.DELETE,action:t_(_p,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Qb,t,!1)},{keyCode:Lf.DELETE,action:t_(Qb,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Pw,t,!1)},{keyCode:Lf.DELETE,action:t_(Pw,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Lb,t,!1)},{keyCode:Lf.DELETE,action:t_(Lb,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Rb,t,!1)},{keyCode:Lf.DELETE,action:t_(Rb,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Nw,t,!1)},{keyCode:Lf.DELETE,action:t_(Nw,t,!0)}],r).each((function(e){r.preventDefault()})))})),f.on("keyup",(function(e){var t,n;!1===e.isDefaultPrevented()&&(n=e,n_([{keyCode:Lf.BACKSPACE,action:t_(Jb,t=f)},{keyCode:Lf.DELETE,action:t_(Jb,t)}],n))})),(c=e).on("keydown",(function(e){var t,n,r;e.keyCode===Lf.ENTER&&(t=c,(n=e).isDefaultPrevented()||(n.preventDefault(),(r=t.undoManager).typing&&(r.typing=!1,r.add()),t.undoManager.transact((function(){!1===t.selection.isCollapsed()&&t.execCommand("Delete"),W_(t,n)}))))})),(u=e).on("keydown",(function(e){var t;!1===e.isDefaultPrevented()&&(t=e,n_([{keyCode:Lf.SPACEBAR,action:t_(J_,u)}],t).each((function(e){t.preventDefault()})))})),s=a=e,l=ms((function(){s.composing||jh(s)}),0),pC.isIE()&&(s.on("keypress",(function(e){l.throttle()})),s.on("remove",(function(e){l.cancel()}))),a.on("input",(function(e){!1===e.isComposing&&jh(a)})),o=m,(i=e).on("keydown",(function(e){var t,n,r;!1===e.isDefaultPrevented()&&(n=o,r=e,n_([{keyCode:Lf.END,action:t_(Kw,t=i,!0)},{keyCode:Lf.HOME,action:t_(Kw,t,!1)},{keyCode:Lf.END,action:t_(o_,t,!0)},{keyCode:Lf.HOME,action:t_(o_,t,!1)},{keyCode:Lf.END,action:t_(kw,t,!0,n)},{keyCode:Lf.HOME,action:t_(kw,t,!1,n)}],r).each((function(e){r.preventDefault()})))})),t=e,n=m,mC.os.isOSX()||(r=ls(!1),t.on("keydown",(function(e){G_(e)&&Y_(r,t,!0)})),t.on("keyup",(function(e){var i,o,a;!1===e.isDefaultPrevented()&&(a=e,n_([{keyCode:Lf.PAGE_UP,action:t_(kw,i=t,!1,o=n)},{keyCode:Lf.PAGE_DOWN,action:t_(kw,i,!0,o)}],a)),G_(e)&&r.get()&&(Y_(r,t,!1),t.nodeChanged())}))),m}(Qy=Zy=Zy||{})[Qy.Up=-1]="Up",Qy[Qy.Down=1]="Down";var Q_=O(iw,Zy.Up,Ms,Rs),eC=O(iw,Zy.Down,Rs,Ms),tC=Zn,nC=Zl,rC=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var i=fl.fromRangeEnd(n),o=tw(r,i);return ne(o.positions)}return i=fl.fromRangeStart(n),te((o=ew(r,i)).positions)},iC=O(xw,!0),oC=O(xw,!1),aC=function(e){return H($(e.selection.getSelectedBlocks(),Ot.fromDom),(function(e){return!Bw(e)&&!Mt(e).exists(Bw)&&br(e,(function(e){return Jn(e.dom)||Zn(e.dom)})).exists((function(e){return Jn(e.dom)}))}))},sC=Zn,lC=O(a_,(function(e){return e.bottom}),(function(e,t){return e.y<t})),uC=O(a_,(function(e){return e.top}),(function(e,t){return e.y>t})),cC=O(s_,ew),fC=O(s_,tw),dC=function(e,t){return n=fl.after(t),!!Kn(n.getNode())||rf(e,fl.after(t)).map((function(e){return Kn(e.getNode())})).getOr(!1);var n},hC=sr([{br:[]},{block:[]},{none:[]}]),pC=pt().browser,mC=pt(),gC=O(K_,xi),vC=O(K_," "),bC=(yC.prototype.nodeChanged=function(e){var t,n,r,i=this.editor.selection;this.editor.initialized&&i&&!this.editor.getParam("disable_nodechange")&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),(t=i.getStart(!0)||r).ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){return e===r||void n.push(e)})),(e=e||{}).element=t,e.parents=n,this.editor.fire("NodeChange",e))},yC.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.length===this.lastPath.length){for(t=n.length;0<=t&&n[t]===this.lastPath[t];t--);if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},yC);function yC(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r=e.selection.getRng(),i={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&Tf(i,t)||e.fire("SelectionChange"),t=i})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!xt.range&&e.selection.isCollapsed()||Fc(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&Fc(e)&&("IMG"===e.selection.getNode().nodeName?Ir.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}function wC(e){return Hn(e)&&gi(Ot.fromDom(e))}function _C(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,i=n.defaultView;return{top:t.top+i.pageYOffset-r.clientTop,left:t.left+i.pageXOffset-r.clientLeft}}function CC(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function xC(e,t){var n=Ir.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return t.on("remove",n.stop),function(r){return e.on((function(e){var i,o,a,s,l,u,c,f,d,h,p,m,g,v,b,y,w,_,C,x,S=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&10<S){if(t.fire("dragstart",{target:e.element}).isDefaultPrevented())return;e.dragging=!0,t.focus()}e.dragging&&(m=e,i={pageX:(b=r,y=(v=t).inline?_C(v.getBody()):{left:0,top:0},x=(C=v).getBody(),w=C.inline?{left:x.scrollLeft,top:x.scrollTop}:{left:0,top:0},(g={pageX:(_=function(e,t){if(t.target.ownerDocument===e.getDoc())return{left:t.pageX,top:t.pageY};var n,r,i,o,a,s=_C(e.getContentAreaContainer()),l=(r=(n=e).getBody(),i=n.getDoc().documentElement,o={left:r.scrollLeft,top:r.scrollTop},a={left:r.scrollLeft||i.scrollLeft,top:r.scrollTop||i.scrollTop},n.inline?o:a);return{left:t.pageX-s.left+l.left,top:t.pageY-s.top+l.top}}(v,b)).left-y.left+w.left,pageY:_.top-y.top+w.top}).pageX-m.relX),pageY:g.pageY+5},h=e.ghost,p=t.getBody(),h.parentNode!==p&&p.appendChild(h),o=e.ghost,s=e.width,l=e.height,u=e.maxX,c=e.maxY,d=f=0,o.style.left=(a=i).pageX+"px",o.style.top=a.pageY+"px",c<a.pageY+l&&(d=a.pageY+l-c),o.style.width=s-(f=u<a.pageX+s?a.pageX+s-u:f)+"px",o.style.height=l-d+"px",n(r.clientX,r.clientY))}))}}function SC(e){function t(e){var t,n,r,i,o,a;0===e.button&&(t=G(l.dom.getParents(e.target),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}}(KC,XC)).getOr(null),o=l.getBody(),KC(a=t)&&a!==o&&(n=l.dom.getPos(t),r=l.getBody(),i=l.getDoc().documentElement,s.set({element:t,dragging:!1,screenX:e.screenX,screenY:e.screenY,maxX:(l.inline?r.scrollWidth:i.offsetWidth)-2,maxY:(l.inline?r.scrollHeight:i.offsetHeight)-2,relX:e.pageX-n.x,relY:e.pageY-n.y,width:t.offsetWidth,height:t.offsetHeight,ghost:function(e,t,n){var r=l.dom,i=e.cloneNode(!0);r.setStyles(i,{width:t,height:n}),r.setAttrib(i,"data-mce-selected",null);var o=r.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return r.setStyles(o,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:t,height:n}),r.setStyles(i,{margin:0,boxSizing:"border-box"}),o.appendChild(i),o}(t,t.offsetWidth,t.offsetHeight)})))}function n(e){o.on((function(t){var n,r,i,o,s,l;t.dragging&&((o=3===(l=(i=a).selection.getSel().getRangeAt(0).startContainer).nodeType?l.parentNode:l)===(s=t.element)||i.dom.isChildOf(o,s)||KC(o)||((r=t.element.cloneNode(!0)).removeAttribute("data-mce-selected"),n=r,a.fire("drop",{clientX:e.clientX,clientY:e.clientY}).isDefaultPrevented()||a.undoManager.transact((function(){CC(t.element),a.insertContent(a.dom.getOuterHTML(n)),a._selectionOverrides.hideFakeCaret()}))),a.fire("dragend"))})),JC(o)}var r,i,o,a,s,l,u=ps(),c=ns.DOM,f=document,d=xC(s=u,l=e),h=(r=o=u,function(){r.on((function(e){e.dragging&&i.fire("dragend")})),JC(r)});(i=a=e).on("mousedown",t),e.on("mousemove",d),e.on("mouseup",n),c.bind(f,"mousemove",d),c.bind(f,"mouseup",h),e.on("remove",(function(){c.unbind(f,"mousemove",d),c.unbind(f,"mouseup",h)})),e.on("keydown",(function(e){e.keyCode===Lf.ESC&&h()}))}function kC(e){var t,n;function r(e){var t;e.isDefaultPrevented()||(t=e.dataTransfer)&&(B(t.types,"Files")||0<t.files.length)&&(e.preventDefault(),"drop"===e.type&&eb(n,"Dropped file type is not supported"))}function i(e){vd(n,e.target)&&r(e)}function o(){var e=ns.DOM,t=n.dom,o=document,a=n.inline?n.getBody():n.getDoc(),s=["drop","dragover"];V(s,(function(n){e.bind(o,n,i),t.bind(a,n,r)})),n.on("remove",(function(){V(s,(function(n){e.unbind(o,n,i),t.unbind(a,n,r)}))}))}SC(e),(t=e).on("drop",(function(e){var n=void 0!==e.clientX?t.getDoc().elementFromPoint(e.clientX,e.clientY):null;!KC(n)&&"false"!==t.dom.getContentEditableParent(n)||e.preventDefault()})),e.getParam("block_unsupported_drop",!0,"boolean")&&(n=e).on("init",(function(){Ir.setEditorTimeout(n,o,0)}))}function DC(e,t){return wf(e.getBody(),t)}function OC(e){function t(e){return e!==v&&(QC(e)||er(e))&&m.isChildOf(e,v)}function n(e){return om(e)||am(e)||tm(e)||nm(e)}function r(e){e&&p.setRng(e)}function i(t,n,r,i){return void 0===i&&(i=!0),e.fire("ShowCaret",{target:n,direction:t,before:r}).isDefaultPrevented()?null:(i&&p.scrollIntoView(n,-1===t),b.show(r,n))}function o(e){return $r(e)||Ei(e)||Ii(e)}function a(e){return o(e.startContainer)||o(e.endContainer)}function s(n,r){if(!n)return null;if(n.collapsed){if(!a(n)){var o=r?1:-1,s=au(o,v,n),l=s.getNode(!r);if(Xl(l))return i(o,l,!!r&&!s.isAtEnd(),!1);var u=s.getNode(r);if(Xl(u))return i(o,u,!r&&!s.isAtEnd(),!1)}return null}var f=n.startContainer,d=n.startOffset,h=n.endOffset;if(3===f.nodeType&&0===d&&QC(f.parentNode)&&(f=f.parentNode,d=m.nodeIndex(f),f=f.parentNode),1!==f.nodeType)return null;if(h===d+1&&f===n.endContainer){var g=f.childNodes[d];if(t(g))return function(t){var n=t.cloneNode(!0),r=e.fire("ObjectSelected",{target:t,targetClone:n});if(r.isDefaultPrevented())return null;var i=function(t,n,r){var i=e.$,o=wr(Ot.fromDom(e.getBody()),"#"+y).fold((function(){return i([])}),(function(e){return i([e.dom])}));0===o.length&&(o=i('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",y)).appendTo(e.getBody());var a=m.createRng();n===r&&xt.ie?(o.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(n),a.setStartAfter(o[0].firstChild.firstChild),a.setEndAfter(n)):(o.empty().append(xi).append(n).append(xi),a.setStart(o[0].firstChild,1),a.setEnd(o[0].lastChild,0)),o.css({top:m.getPos(t,e.getBody()).y}),o[0].focus();var s=p.getSel();return s.removeAllRanges(),s.addRange(a),a}(t,r.targetClone,n),o=Ot.fromDom(t);return V(_s(Ot.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){Ue(o,e)||Cn(e,w)})),m.getAttrib(t,w)||t.setAttribute(w,"1"),c=t,C(),i}(g)}return null}function u(){c&&c.removeAttribute(w),wr(Ot.fromDom(e.getBody()),"#"+y).each(Ln),c=null}var c,f,d,h,p=e.selection,m=e.dom,g=m.isBlock,v=e.getBody(),b=Yl(e,v,g,(function(){return Cd(e)})),y="sel-"+m.uniqueId(),w="data-mce-selected",_=p.getRng,C=function(){b.hide()};return xt.ceFalse&&!bg(e)&&(e.on("mouseup",(function(t){var n=_();n.collapsed&&Dv(e,t.clientX,t.clientY)&&jb(e,n,!1).each(r)})),e.on("click",(function(t){var n=DC(e,t.target);n&&(QC(n)&&(t.preventDefault(),e.focus()),ZC(n)&&m.isChildOf(n,p.getNode())&&u())})),e.on("blur NewBlock",u),e.on("ResizeWindow FullscreenStateChanged",b.reposition),e.on("tap",(function(n){var r=n.target,i=DC(e,r);QC(i)?(n.preventDefault(),Vb(e,i).each(s)):t(r)&&Vb(e,r).each(s)}),!0),e.on("mousedown",(function(o){var a,c,f,d,h,b,y,w=o.target;w!==v&&"HTML"!==w.nodeName&&!m.isChildOf(w,v)||!1===Dv(e,o.clientX,o.clientY)||((a=DC(e,w))?QC(a)?(o.preventDefault(),Vb(e,a).each(s)):(u(),ZC(a)&&o.shiftKey||_f(o.clientX,o.clientY,p.getRng())||(C(),p.placeCaretAt(o.clientX,o.clientY))):t(w)?Vb(e,w).each(s):!1===Xl(w)&&(u(),C(),(c=hw(v,o.clientX,o.clientY))&&(f=w,d=c.node,b=m.getParent(f,g),y=m.getParent(d,g),!l(b)&&(f!==y&&m.isChildOf(b,y)&&!1===QC(DC(e,b))||!m.isChildOf(y,b)&&(h=y,m.getParent(b,g)!==m.getParent(h,g))&&function(e){var t=e.firstChild;if(!l(t)){var r=fl.before(t);if(Kn(r.getNode())&&1===e.childNodes.length)return!n(r);var i=$u(e).next(r);return i&&!n(i)}}(b))||(o.preventDefault(),r(i(1,c.node,c.before,!1)),e.getBody().focus()))))})),e.on("keypress",(function(e){Lf.modifierPressed(e)||QC(p.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var t=e.range;c&&(c.parentNode?((t=t.cloneRange()).selectNode(c),e.range=t):c=null)})),e.on("SetSelectionRange",(function(t){var n,r,i,o,a,l,u;t.range=(n=t.range,r=e.schema.getShortEndedElements(),i=m.createRng(),o=n.startContainer,a=n.startOffset,l=n.endContainer,u=n.endOffset,Oe(r,o.nodeName.toLowerCase())?0===a?i.setStartBefore(o):i.setStartAfter(o):i.setStart(o,a),Oe(r,l.nodeName.toLowerCase())?0===u?i.setEndBefore(l):i.setEndAfter(l):i.setEnd(l,u),i);var c=s(t.range,t.forward);c&&(t.range=c)})),e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;a(t)||"mcepastebin"===n.id||C(),m.hasClass(n,"mce-offscreen-selection")||u()})),e.on("copy",(function(e){var t,n,r=e.clipboardData;e.isDefaultPrevented()||!e.clipboardData||xt.ie||(t=(n=m.get(y))&&n.getElementsByTagName("*")[0])&&(e.preventDefault(),r.clearData(),r.setData("text/html",t.outerHTML),r.setData("text/plain",t.outerText||t.innerText))})),kC(e),d=ms((function(){var e,t;f.removed||!f.getBody().contains(document.activeElement)||(e=f.selection.getRng()).collapsed&&(t=zb(f,e,!1),f.selection.setRng(t))}),0),(f=e).on("focus",(function(){d.throttle()})),f.on("blur",(function(){d.cancel()})),(h=e).on("init",(function(){h.on("focusin",(function(e){var t,n,r=e.target;er(r)&&(t=wf(h.getBody(),r),n=Zn(t)?t:r,h.selection.getNode()!==n&&Vb(h,n).each((function(e){return h.selection.setRng(e)})))}))}))),{showCaret:i,showBlockCaretContainer:function(e){e.hasAttribute("data-mce-caret")&&(Hr(e),r(_()),p.scrollIntoView(e))},hideFakeCaret:C,destroy:function(){b.destroy(),c=null}}}function TC(e){function t(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(t){}}function n(e){return e.isDefaultPrevented()}function r(){e.shortcuts.add("meta+a",null,"SelectAll")}function i(){e.inline||y.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;t.target===e.getDoc().documentElement&&(n=w.getRng(),e.getBody().focus(),"mousedown"===t.type?$r(n.startContainer)||w.placeCaretAt(t.clientX,t.clientY):w.setRng(n))}))}function o(){Range.prototype.getClientRects||e.on("mousedown",(function(t){var r;n(t)||"HTML"!==t.target.nodeName||((r=e.getBody()).blur(),Ir.setEditorTimeout(e,(function(){r.focus()})))}))}function a(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==y.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&y.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),w.select(n))}))}function s(){e.on("keydown",(function(e){if(!n(e)&&e.keyCode===v&&w.isCollapsed()&&0===w.getRng().startOffset){var t=w.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))}function l(){e.getParam("readonly")||e.on("BeforeExecCommand mousedown",(function(){t("StyleWithCSS",!1),t("enableInlineTableEditing",!1),Fl(e)||t("enableObjectResizing",!1)}))}function u(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}function f(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))}function d(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;"HTML"===t.target.nodeName&&(11<xt.ie?e.getBody().focus():(n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()))})))}function h(){xt.mac&&e.on("keydown",(function(t){!Lf.metaKeyPressed(t)||t.shiftKey||37!==t.keyCode&&39!==t.keyCode||(t.preventDefault(),e.selection.getSel().modify("move",37===t.keyCode?"backward":"forward","lineboundary"))}))}function p(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")}function m(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))}var g=Dt.each,v=Lf.BACKSPACE,b=Lf.DELETE,y=e.dom,w=e.selection,_=e.parser,C=xt.gecko,x=xt.ie,S=xt.webkit,k="data:text/mce-internal,",D=x?"Text":"URL",O=c;return bg(e)?(S&&(i(),a(),m(),r(),xt.iOS&&(f(),d(),p())),C&&(o(),l(),u(),h())):(e.on("keydown",(function(t){if(!n(t)&&t.keyCode===Lf.BACKSPACE){var r,i=(r=w.getRng()).startContainer,o=r.startOffset,a=y.getRoot(),s=i;if(r.collapsed&&0===o){for(;s&&s.parentNode&&s.parentNode.firstChild===s&&s.parentNode!==a;)s=s.parentNode;"BLOCKQUOTE"===s.tagName&&(e.formatter.toggle("blockquote",null,s),(r=y.createRng()).setStart(i,0),r.setEnd(i,0),w.setRng(r))}}})),e.on("keydown",(function(t){var r,i,o,a,s=t.keyCode;n(t)||s!==b&&s!==v||(r=e.selection.isCollapsed(),i=e.getBody(),r&&!y.isEmpty(i)||!r&&(o=I(e.selection.getRng()),(a=y.createRng()).selectNode(e.getBody()),o!==I(a))||(t.preventDefault(),e.setContent(""),i.firstChild&&y.isBlock(i.firstChild)?e.selection.setCursorLocation(i.firstChild,0):e.selection.setCursorLocation(i,0),e.nodeChanged()))})),xt.windowsPhone||e.on("keyup focusin mouseup",(function(e){Lf.modifierPressed(e)||w.normalize()}),!0),S&&(i(),a(),Tl(e)&&e.on("init",(function(){t("DefaultParagraphSeparator",Tl(e))})),m(),s(),_.addNodeFilter("br",(function(e){for(var t=e.length;t--;)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()})),xt.iOS?(f(),d(),p()):r()),11<=xt.ie&&(d(),s()),xt.ie&&(r(),t("AutoUrlDetect",!1),e.on("dragstart",(function(t){var n,r,i;(n=t).dataTransfer&&(e.selection.isCollapsed()&&"IMG"===n.target.tagName&&w.select(n.target),0<(r=e.selection.getContent()).length&&(i=k+escape(e.id)+","+escape(r),n.dataTransfer.setData(D,i)))})),e.on("drop",(function(t){var r,i,o,a;n(t)||(r=t.dataTransfer&&(a=t.dataTransfer.getData(D))&&0<=a.indexOf(k)?(a=a.substr(k.length).split(","),{id:unescape(a[0]),html:unescape(a[1])}):null)&&r.id!==e.id&&(t.preventDefault(),i=Of(t.x,t.y,e.getDoc()),w.setRng(i),o=r.html,e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:o,internal:!0}):e.execCommand("mceInsertContent",!1,o))}))),C&&(e.on("keydown",(function(t){if(!n(t)&&t.keyCode===v&&e.getBody().getElementsByTagName("hr").length&&w.isCollapsed()&&0===w.getRng().startOffset){var r=w.getNode(),i=r.previousSibling;if("HR"===r.nodeName)return y.remove(r),void t.preventDefault();i&&i.nodeName&&"hr"===i.nodeName.toLowerCase()&&(y.remove(i),t.preventDefault())}})),o(),e.on("keypress",(function(t){var r;if(!n(t)&&(8===t.keyCode||46===t.keyCode)&&E())return r=T(),e.getDoc().execCommand("delete",!1,null),r(),t.preventDefault(),!1})),y.bind(e.getDoc(),"cut",(function(t){var r;!n(t)&&E()&&(r=T(),Ir.setEditorTimeout(e,(function(){r()})))})),l(),e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||g(y.select("a"),(function(e){var t=e.parentNode,n=y.getRoot();if(t.lastChild===e){for(;t&&!y.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}y.add(t,"br",{"data-mce-bogus":1})}}))})),u(),h(),s())),{refreshContentEditable:O,isHidden:function(){if(!C||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount}};function T(){var t=y.getAttribs(w.getStart().cloneNode(!1));return function(){var n=w.getStart();n!==e.getBody()&&(y.setAttrib(n,"style",null),g(t,(function(e){n.setAttributeNode(e.cloneNode(!0))})))}}function E(){return!w.isCollapsed()&&y.getParent(w.getStart(),y.isBlock)!==y.getParent(w.getEnd(),y.isBlock)}function I(e){var t=y.create("body"),n=e.cloneContents();return t.appendChild(n),w.serializer.serialize(t,{format:"html"})}}function EC(e){return le(e,(function(e){return!1===S(e)}))}function IC(e){var t=e.settings;return EC({block_elements:t.block_elements,boolean_attributes:t.boolean_attributes,custom_elements:t.custom_elements,extended_valid_elements:t.extended_valid_elements,invalid_elements:t.invalid_elements,invalid_styles:t.invalid_styles,move_caret_before_on_enter_elements:t.move_caret_before_on_enter_elements,non_empty_elements:t.non_empty_elements,schema:t.schema,self_closing_elements:t.self_closing_elements,short_ended_elements:t.short_ended_elements,special:t.special,text_block_elements:t.text_block_elements,text_inline_elements:t.text_inline_elements,valid_children:t.valid_children,valid_classes:t.valid_classes,valid_elements:t.valid_elements,valid_styles:t.valid_styles,verify_html:t.verify_html,whitespace_elements:t.whitespace_elements,padd_empty_block_inline_children:t.format_empty_lines})}function NC(e){var t=e.settings,n=e.editorUpload.blobCache;return EC({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:e.inline?e.getElement().nodeName.toLowerCase():void 0,validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})}function AC(e){var t,n,r;e.bindPendingEventDelegates(),e.initialized=!0,e.fire("Init"),e.focus(!0),r=(n=e).dom.getRoot(),n.inline||Fc(n)&&n.selection.getStart(!0)!==r||af(r).each((function(e){var t,r,i,o,a=e.getNode(),s=fn(a)?af(a).getOr(e):e;xt.browser.isIE()?(t=n,r=s.toRange(),i=Ot.fromDom(t.getBody()),o=(fd(t)?ye.from(r):ye.none()).map(dd).filter(cd(i)),t.bookmark=o.isSome()?o:t.bookmark):n.selection.setRng(s.toRange())})),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),(t=e).settings.auto_focus&&Ir.setEditorTimeout(t,(function(){var e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus);e.destroyed||e.focus()}),100)}function PC(e){return(e.inline?e.ui:e.dom).styleSheetLoader}function MC(e){function t(){i.unloadAll(a),e.inline||e.ui.styleSheetLoader.unloadAll(o)}function n(){e.removed?t():e.on("remove",t)}var r,i=PC(e),o=Rl(e),a=e.contentCSS;0<e.contentStyles.length&&(r="",Dt.each(e.contentStyles,(function(e){r+=e+"\r\n"})),e.dom.addStyle(r));var s,l,u,c,f,d,h,p,m,g=Er.all((s=e,l=a,u=o,c=[new Er((function(e,t){return PC(s).loadAll(l,e,t)}))],s.inline?c:c.concat([new Er((function(e,t){return s.ui.styleSheetLoader.loadAll(u,e,t)}))]))).then(n).catch(n);return e.settings.content_style&&(d=(f=e).settings.content_style,h=Ot.fromDom(f.getBody()),p=Ut(Fn(h)),vn(m=Ot.fromTag("style"),"type","text/css"),Bn(m,Ot.fromText(d)),Bn(p,m),f.on("remove",(function(){Ln(m)}))),g}function RC(e){var t;!0!==e.removed&&(bg(t=e)||t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"}),AC(e))}function FC(e,t){var n=e.settings,r=e.getElement(),i=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(i.open(),i.write(e.iframeHTML),i.close()),e.inline&&(ex.addClass(r,"mce-content-body"),e.contentDocument=i=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var o,a,s,l,u,c,f,d,h,p,m,g,v=e.getBody();v.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===ex.getStyle(v,"position",!0)&&(v.style.position="relative"),v.contentEditable=e.getParam("content_editable_state",!0)),v.disabled=!1,e.editorUpload=fb(e),e.schema=ai(IC(e)),e.dom=ns(i,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:e.getParam("content_css_cors",!1,"boolean"),referrerPolicy:Al(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=((a=fv(NC(o=e),o.schema)).addAttributeFilter("src,href,style,tabindex",(function(e,t){for(var n,r,i=e.length,a=o.dom,s="data-mce-"+t;i--;)(r=(n=e[i]).attr(t))&&!n.attr(s)&&0!==r.indexOf("data:")&&0!==r.indexOf("blob:")&&("style"===t?((r=a.serializeStyle(a.parseStyle(r),n.name)).length||(r=null),n.attr(s,r),n.attr(t,r)):"tabindex"===t?(n.attr(s,r),n.attr(t,null)):n.attr(s,o.convertURL(r,t,n.name)))})),a.addNodeFilter("script",(function(e){for(var t=e.length;t--;){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),o.settings.preserve_cdata&&a.addNodeFilter("#cdata",(function(e){for(var t=e.length;t--;){var n=e[t];n.type=8,n.name="#comment",n.value="[CDATA["+o.dom.encode(n.value)+"]]"}})),a.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(e){for(var t=e.length,n=o.schema.getNonEmptyElements();t--;){var r=e[t];r.isEmpty(n)&&0===r.getAll("br").length&&(r.append(new Ud("br",1)).shortEnded=!0)}})),a),e.serializer=pv((l=(s=e).settings,Ee(Ee(Ee({},NC(s)),IC(s)),EC({url_converter:l.url_converter,url_converter_scope:l.url_converter_scope,element_format:l.element_format,entities:l.entities,entity_encoding:l.entity_encoding,indent:l.indent,indent_after:l.indent_after,indent_before:l.indent_before}))),e),e.selection=Vg(e.dom,e.getWin(),e.serializer,e),e.annotator=zc(e),e.formatter=mb(e),e.undoManager=vb(e),e._nodeChangeDispatcher=new bC(e),e._selectionOverrides=OC(e),h=e,p=ps(),m=ls(!1),g=gs((function(e){h.fire("longpress",Ee(Ee({},e),{type:"longpress"})),m.set(!0)}),400),h.on("touchstart",(function(e){jw(e).each((function(t){g.cancel();var n={x:t.clientX,y:t.clientY,target:e.target};g.throttle(e),m.set(!1),p.set(n)}))}),!0),h.on("touchmove",(function(e){g.cancel(),jw(e).each((function(e){p.on((function(t){var n=e,r=t,i=Math.abs(n.clientX-r.x),o=Math.abs(n.clientY-r.y);(5<i||5<o)&&(p.clear(),m.set(!1),h.fire("longpresscancel"))}))}))}),!0),h.on("touchend touchcancel",(function(e){g.cancel(),"touchcancel"!==e.type&&p.get().filter((function(t){return t.target.isEqualNode(e.target)})).each((function(){m.get()?e.preventDefault():h.fire("tap",Ee(Ee({},e),{type:"tap"}))}))}),!0),(f=c=e).on("click",(function(e){f.dom.getParent(e.target,"details")&&e.preventDefault()})),(d=c).parser.addNodeFilter("details",(function(e){V(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),d.serializer.addNodeFilter("details",(function(e){V(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",y(t)?t:null),e.attr("data-mce-open",null)}))})),bg(e)||(u=e).on("click",(function(e){var t,n,r,i,o;3<=e.detail&&(r=(t=u).selection.getRng(),i=fl.fromRangeStart(r),o=fl.fromRangeEnd(r),!fl.isElementPosition(i)||wC(n=i.container())&&af(n).each((function(e){return r.setStart(e.container(),e.offset())})),!fl.isElementPosition(o)||wC(n=i.container())&&sf(n).each((function(e){return r.setEnd(e.container(),e.offset())})),t.selection.setRng(Cp(r)))}));var b,w,_,C,x,S,k,D,T,E=bg(b=e)?ls(null):Z_(b);T=E,(D=e).addCommand("delete",(function(){var e,t=T;$w(e=D)||Zb(e,!1)||qb(e,!1)||Tw(e,t,!1)||Rb(e,!1)||_p(e)||Qb(e,!1)||Pw(e,!1)||Lb(e)||Nw(e,!1)||(Vw(e,"Delete"),kb(e))})),D.addCommand("forwardDelete",(function(){var e,t=T;Zb(e=D,!0)||qb(e,!0)||Tw(e,t,!0)||Rb(e,!0)||_p(e)||Qb(e,!0)||Pw(e,!0)||Lb(e)||Nw(e,!0)||Vw(e,"ForwardDelete")})),Tl(w=e)&&w.on("NodeChange",O(Hw,w)),C=(_=e).dom,x=Tl(_),S=_.getParam("placeholder",yu.getAttrib(_.getElement(),"placeholder"),"string"),k=function(e,t){var n,r,i;!function(e){if(bb(e)){var t=e.keyCode;return!yb(e)&&(Lf.metaKeyPressed(e)||e.altKey||112<=t&&t<=123||B(Ny,t))}}(e)&&(n=_.getBody(),r=!(bb(i=e)&&!(yb(i)||"keyup"===i.type&&229===i.keyCode))&&function(e,t,n){if(Kr(Ot.fromDom(t),!1)){var r=""===n,i=t.firstElementChild;return!i||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(i):n===i.nodeName.toLowerCase())}return!1}(C,n,x),""!==C.getAttrib(n,Ay)===r&&!t||(C.setAttrib(n,Ay,r?S:null),C.setAttrib(n,"aria-placeholder",r?S:null),_.fire("PlaceholderToggle",{state:r}),_.on(r?"keydown":"keyup",k),_.off(r?"keyup":"keydown",k)))},S&&_.on("init",(function(e){k(e,!0),_.on("change SetContent ExecCommand",k),_.on("paste",(function(e){return Ir.setEditorTimeout(_,(function(){return k(e)}))}))}));var I=yg(e);(function(e){var t=e.settings,n=e.getDoc(),r=e.getBody();e.fire("PreInit"),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,ex.setAttrib(r,"spellcheck","false")),e.quirks=TC(e),e.fire("PostRender");var i=e.getParam("directionality",ds.isRtl()?"rtl":void 0);void 0!==i&&(r.dir=i),t.protect&&e.on("BeforeSetContent",(function(e){Dt.each(t.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type}))})(e),I.fold((function(){MC(e).then((function(){return RC(e)}))}),(function(t){e.setProgressState(!0),MC(e).then((function(){t().then((function(t){e.setProgressState(!1),RC(e)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),RC(e)}))}))}))}function BC(e,t){var n,r,i,o,a=e.translate("Rich Text Area"),s=(n=e.id,r=a,t.height,i=e.getParam("iframe_attrs",{}),bn(o=Ot.fromTag("iframe"),i),bn(o,{id:n+"_ifr",frameBorder:"0",allowTransparency:"true",title:r}),ys(o,"tox-edit-area__iframe"),o.dom);s.onload=function(){s.onload=null,e.fire("load")};var l=function(e,t){if(document.domain!==window.location.hostname&&xt.browser.isIE()){var n=ab("mce");e[n]=function(){FC(e)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return tx.setAttrib(t,"src",r),!0}return!1}(e,s);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=s,e.iframeHTML=function(e){var t=e.getParam("doctype","<!DOCTYPE html>")+"<html><head>";e.getParam("document_base_url","")!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=Dl(e,"body_id","tinymce"),r=Dl(e,"body_class",""),i=e.translate(e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string"));return Ol(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+Ol(e)+'" />'),t+'</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'" aria-label="'+i+'"><br></body></html>'}(e),tx.add(t.iframeContainer,s),l}function LC(e){return e.replace(/^\-/,"")}function $C(e){return{editorContainer:e,iframeContainer:e,api:{}}}function VC(e){var t,n,r,i,o,a,s,l=e.getElement();return e.orgDisplay=l.style.display,y(Ll(e))?e.theme.renderUI():k(Ll(e))?(n=(t=e).getElement(),(r=Ll(t)(t,n)).editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||t.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||t.id+"_iframecontainer"),r.height=r.iframeHeight||n.offsetHeight,r):(s=(i=e).getElement(),i.inline?$C(null):(o=s,a=nx.create("div"),nx.insertAfter(a,o),$C(a)))}function jC(e){var t,n,r,i,o,a,s,l;e.fire("ScriptsLoaded"),t=e,n=Dt.trim(Nl(t)),r=t.ui.registry.getAll().icons,ie(Ee(Ee({},Wv.get("default").icons),Wv.get(n).icons),(function(e,n){Oe(r,n)||t.ui.registry.addIcon(n,e)})),a=Ll(i=e),y(a)?(i.settings.theme=LC(a),o=Jv.get(a),i.theme=new o(i,Jv.urls[a]),i.theme.init&&i.theme.init(i,Jv.urls[a]||i.documentBaseUrl.replace(/\/$/,""),i.$)):i.theme={},l=[],Dt.each(Vl(s=e).split(/[ ,]/),(function(e){rx(s,l,LC(e))}));var u=VC(e),f=e,d=ye.from(u.api).getOr({}),h={show:ye.from(d.show).getOr(c),hide:ye.from(d.hide).getOr(c),disable:ye.from(d.disable).getOr(c),isDisabled:ye.from(d.isDisabled).getOr(A),enable:function(){f.mode.isReadOnly()||ye.from(d.enable).map(I)}};f.ui=Ee(Ee({},f.ui),h);var p,m,g,v={editorContainer:u.editorContainer,iframeContainer:u.iframeContainer};return e.editorContainer=v.editorContainer||null,ib(e),e.inline?FC(e):(g=BC(p=e,m=v),m.editorContainer&&(tx.get(m.editorContainer).style.display=p.orgDisplay,p.hidden=tx.isHidden(m.editorContainer)),p.getElement().style.display="none",tx.setAttrib(p.id,"aria-hidden","true"),void(g||FC(p)))}function zC(e){return"-"===e.charAt(0)}function HC(e,t,n){return ye.from(t).filter((function(e){return 0<e.length&&!Wv.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:ye.some(t)}}))}function UC(e,t){var n,r,i=as.ScriptLoader,o=i,a=t,s=function(){var n,r,o,a,s,l,u,f,d;s=i,f=Pl(l=e),d=l.getParam("language_url","","string"),!1===ds.hasCode(f)&&"en"!==f&&(u=""!==d?d:l.editorManager.baseURL+"/langs/"+f+".js",s.add(u,c,void 0,(function(){tb(l,"LanguageLoadError",nb("language",u,f))}))),o=i,V(function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t}([HC(a=e,"default",t),ye.from(a.getParam("icons_url","","string")).filter((function(e){return 0<e.length})).map((function(e){return{url:e,name:ye.none()}})).orThunk((function(){return HC(a,Nl(a),"")}))]),(function(e){o.add(e.url,c,void 0,(function(){tb(a,"IconsLoadError",nb("icons",e.url,e.name.getOrUndefined()))}))})),n=e,r=t,Dt.each(n.getParam("external_plugins"),(function(e,t){Xv.load(t,e,c,void 0,(function(){rb(n,e,t)})),n.settings.plugins+=" "+t})),Dt.each(Vl(n).split(/[ ,]/),(function(e){var t,i;(e=Dt.trim(e))&&!Xv.urls[e]&&(zC(e)?(e=e.substr(1,e.length),t=Xv.dependencies(e),Dt.each(t,(function(e){var t=Xv.createUrl({prefix:"plugins/",resource:e,suffix:"/plugin"+r+".js"},e);Xv.load(t.resource,t,c,void 0,(function(){rb(n,t.prefix+t.resource+t.suffix,t.resource)}))}))):(i={prefix:"plugins/",resource:e,suffix:"/plugin"+r+".js"},Xv.load(e,i,c,void 0,(function(){rb(n,i.prefix+i.resource+i.suffix,e)}))))})),i.loadQueue((function(){e.removed||jC(e)}),e,(function(){e.removed||jC(e)}))},l=Ll(n=e);y(l)?(zC(l)||Oe(Jv.urls,l)||((r=n.getParam("theme_url"))?Jv.load(l,n.documentBaseURI.toAbsolute(r)):Jv.load(l,"themes/"+l+"/theme"+a+".js")),o.loadQueue((function(){Jv.waitFor(l,s)}))):s()}function WC(e){return function(t,n){return ye.from(n).map(Ot.fromDom).filter(En).bind((function(n){return r=e,i=t,o=n.dom,Pp(Ot.fromDom(o),(function(e){return kn(t=e,r).orThunk((function(){return"font"===Tt(t)?ue(ox,r).bind((function(e){return wn(t,e)})):ye.none()}));var t}),(function(e){return Ue(Ot.fromDom(i),e)})).or((a=n.dom,ye.from(ns.DOM.getStyle(a,e,!0))));var r,i,o,a})).getOr("")}}function qC(e){return af(e.getBody()).map((function(e){var t=e.container();return Wn(t)?t.parentNode:t}))}function GC(e,t){return n=e,r=d(ye.some,t),i=n,ye.from(i.selection.getRng()).bind((function(e){var t=i.getBody();return e.startContainer===t&&0===e.startOffset?ye.none():ye.from(i.selection.getStart(!0))})).orThunk(O(qC,n)).map(Ot.fromDom).filter(En).bind(r);var n,r,i}function YC(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(1<=n&&n<=7){var r=Dt.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large")),i=Dt.explode(e.getParam("font_size_classes",""));return i?i[n-1]||t:r[n-1]||t}return t}return t}var KC=Zn,XC=Jn,JC=function(e){e.on((function(e){CC(e.ghost)})),e.clear()},ZC=Jn,QC=Zn,ex=ns.DOM,tx=ns.DOM,nx=ns.DOM,rx=function(e,t,n){var r,i,o,a,s=Xv.get(n),l=Xv.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=Dt.trim(n),s&&-1===Dt.inArray(t,n)&&(Dt.each(Xv.dependencies(n),(function(n){rx(e,t,n)})),!e.plugins[n]))try{var u=new s(e,l,e.$);(e.plugins[n]=u).init&&(u.init(e,l),t.push(n))}catch(s){i=n,o=s,Cf(r=e,"PluginLoadError",{message:a=ds.translate(["Failed to initialize plugin: {0}",i])}),Sy(a,o),eb(r,a)}},ix=ns.DOM,ox={"font-size":"size","font-family":"face"},ax=WC("font-size"),sx=f((function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")}),WC("font-family")),lx=Dt.each,ux=Dt.map,cx=Dt.inArray,fx=(dx.prototype.execCommand=function(e,t,n,r){var i,o,a=!1,s=this;if(!s.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?md(o=s.editor).each((function(e){return o.selection.setRng(e)})):s.editor.focus()),(r=s.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n})).isDefaultPrevented())return!1;var l=e.toLowerCase();if(i=s.commands.exec[l])return i(l,t,n),s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(lx(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!(a=!0)})),a)return a;if(s.editor.theme&&s.editor.theme.execCommand&&s.editor.theme.execCommand(e,t,n))return s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{a=s.editor.getDoc().execCommand(e,t,n)}catch(r){}return!!a&&(s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},dx.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(e){}return!1}},dx.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(e){}}},dx.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;lx(e,(function(e,r){lx(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},dx.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,i,o,a){return t.call(n||r.editor,i,o,a)}},dx.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(e){}return!1},dx.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},dx.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},dx.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},dx.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},dx.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},dx.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},dx.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},dx.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},dx.prototype.setupCommands=function(e){var t=this;function n(t){return function(){var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),i=ux(r,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==cx(i,!0)}}this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":c,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,r){var i,o;o=r,(i=e).removed||(o?zd:function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===Cd(e)&&md(e).each((function(t){e.selection.setRng(t),r=t}));var i,o,a=(i=e,o=t.getNode(),i.dom.getParent(o,(function(e){return"true"===i.dom.getContentEditable(e)})));if(e.$.contains(n,a))return _d(a),wd(e,r),zd(e);e.inline||(xt.opera||_d(n),e.getWin().focus()),(xt.gecko||e.inline)&&(_d(n),wd(e,r)),zd(e)})(i)},"Cut,Copy,Paste":function(n){var r,i,o=e.getDoc();try{t.execNativeCommand(n)}catch(n){r=!0}!(r="paste"===n&&!o.queryCommandEnabled(n)||r)&&o.queryCommandSupported(n)||(i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead."),xt.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"}))},unlink:function(){var t;e.selection.isCollapsed()?(t=e.dom.getParent(e.selection.getStart(),"a"))&&e.dom.remove(t,!0):e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),lx("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;t.execNativeCommand(n);var i=e.dom.getParent(e.selection.getNode(),"ol,ul");i&&(r=i.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(t.storeSelection(),e.dom.split(r,i),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,{value:r})},FontName:function(t,n,r){var i,o;o=YC(i=e,r),i.formatter.toggle("fontname",{value:$(o.split(/\s*,\s*/),(function(e){return-1===e.indexOf(" ")||Ze(e,'"')||Ze(e,"'")?e:"'"+e+"'"})).join(",")}),i.nodeChanged()},FontSize:function(t,n,r){var i;(i=e).formatter.toggle("fontsize",{value:YC(i,r)}),i.nodeChanged()},LineHeight:function(t,n,r){var i;(i=e).formatter.toggle("lineheight",{value:String(r)}),i.nodeChanged()},Lang:function(e,n,r){t.toggleFormat(e,{value:r.code,customValue:r.customCode})},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,i){var o=i||e.selection.getNode();o!==e.getBody()&&(t.storeSelection(),e.dom.remove(o,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var i=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&i++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){var i,o,a,s;i=e,o=function(e){if("string"==typeof e)return{content:e,details:{}};var t=Dt.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}(r),a=o.content,s=o.details,wg(i).editor.insertContent(a,s)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var i=e.getContent();e.setContent(i.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){W_(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){Lw(e,t)},mceRepaint:c,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){"string"==typeof r&&(r={href:r});var i=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),i&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,i)},selectAll:function(){var t,n=e.dom.getParent(e.selection.getStart(),Jn);n&&((t=e.dom.createRng()).selectNodeContents(n),e.selection.setRng(t))},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return P_(e,r),!0}}),t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return Fw(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return GC(t=e,(function(e){return sx(t.getBody(),e.dom)})).getOr("");var t}),this),t.addQueryValueHandler("FontSize",(function(){return GC(t=e,(function(e){return ax(t.getBody(),e.dom)})).getOr("");var t}),this),t.addQueryValueHandler("LineHeight",(function(){return GC(t=e,(function(e){var n=Ot.fromDom(t.getBody());return Pp(e,(function(e){return kn(e,"line-height")}),O(Ue,n)).getOrThunk((function(){var t=parseFloat(Sn(e,"line-height")),n=parseFloat(Sn(e,"font-size"));return String(t/n)}))})).getOr("");var t}),this)},dx);function dx(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}function hx(e,t,n){var r,i,o,a,s,l;ws(e,t)&&!1===n?(i=t,bs(r=e)?r.dom.classList.remove(i):(s=i,0<(l=H(vs(a=r,"class"),(function(e){return e!==s}))).length?vn(a,"class",l.join(" ")):Cn(a,"class")),0===(bs(o=r)?o.dom.classList:vs(o,"class")).length&&Cn(o,"class")):n&&ys(e,t)}function px(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(e){}}function mx(e,t){e.dom.contentEditable=t?"true":"false"}function gx(e,t){var n,r,i=Ot.fromDom(e.getBody());hx(i,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),ye.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")})),mx(i,!(e.readonly=!0)),V(_s(i,'*[contenteditable="true"]'),(function(e){vn(e,yx,"true"),mx(e,!1)}))):(mx(i,!(e.readonly=!1)),V(_s(i,"*["+yx+'="true"]'),(function(e){Cn(e,yx),mx(e,!0)})),px(e,"StyleWithCSS",!1),px(e,"enableInlineTableEditing",!1),px(e,"enableObjectResizing",!1),(Cd(n=e)||(r=n,ad(Fn(Ot.fromDom(r.getElement()))).filter((function(e){return!(void 0!==(t=e.dom.classList)&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body")))&&vd(r,e.dom);var t})).isSome()))&&e.focus(),e.selection.setRng(e.selection.getRng()),e.nodeChanged())}function vx(e){return e.readonly}function bx(e){e.parser.addAttributeFilter("contenteditable",(function(t){vx(e)&&V(t,(function(e){e.attr(yx,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(yx,(function(t){vx(e)&&V(t,(function(e){e.attr("contenteditable",e.attr(yx))}))})),e.serializer.addTempAttr(yx)}var yx="data-mce-contenteditable",wx=Dt.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),_x=(Cx.isNative=function(e){return!!wx[e.toLowerCase()]},Cx.prototype.fire=function(e,t){var n=e.toLowerCase(),r=ci(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var i=this.bindings[n];if(i)for(var o=0,a=i.length;o<a;o++){var s=i[o];if(!s.removed){if(s.once&&this.off(n,s.func),r.isImmediatePropagationStopped())return r;if(!1===s.func.call(this.scope,r))return r.preventDefault(),r}}return r},Cx.prototype.on=function(e,t,n,r){if(t=!1===t?A:t){var i={func:t,removed:!1};r&&Dt.extend(i,r);for(var o=e.toLowerCase().split(" "),a=o.length;a--;){var s=o[a],l=this.bindings[s];l||(l=[],this.toggleEvent(s,!0)),l=n?Ie([i],l,!0):Ie(Ie([],l,!0),[i],!1),this.bindings[s]=l}}return this},Cx.prototype.off=function(e,t){var n=this;if(e)for(var r=e.toLowerCase().split(" "),i=r.length;i--;){var o,a=r[i],s=this.bindings[a];if(!a)return ie(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;s&&(t?(s=(o=z(s,(function(e){return e.func===t}))).fail,this.bindings[a]=s,V(o.pass,(function(e){e.removed=!0}))):s.length=0,s.length||(this.toggleEvent(e,!1),delete this.bindings[a]))}else ie(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},Cx.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},Cx.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},Cx);function Cx(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||A}function xx(e){return e._eventDispatcher||(e._eventDispatcher=new _x({scope:e,toggleEvent:function(t,n){_x.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher}function Sx(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=Bl(e);return n?(e.eventRoot||(e.eventRoot=Nx.select(n)[0]),e.eventRoot):e.getBody()}function kx(e,t,n){var r,i,o,a;e.hidden||vx(e)?vx(e)&&(r=e,"click"!==(i=n).type||Lf.metaKeyPressed(i)||(o=Ot.fromDom(i.target),a=r,_r(o,"a",(function(e){return Ue(e,Ot.fromDom(a.getBody()))})).bind((function(e){return wn(e,"href")})).each((function(e){var t,n;i.preventDefault(),/^#/.test(e)?(t=r.dom.select(e+',[name="'+(Ze(n=e,"#")?n.substring("#".length):n)+'"]')).length&&r.selection.scrollIntoView(t[0],!0):window.open(e,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})))):e.fire(t,n)}function Dx(e,t){var n,r;e.delegates||(e.delegates={}),e.delegates[t]||e.removed||(r=Sx(e,t),Bl(e)?(Ex||(Ex={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||Ex&&(ie(Ex,(function(t,n){e.dom.unbind(Sx(e,n))})),Ex=null)}))),Ex[t]||(Ex[t]=n=function(n){for(var r=n.target,i=e.editorManager.get(),o=i.length;o--;){var a=i[o].getBody();a!==r&&!Nx.isChildOf(r,a)||kx(i[o],t,n)}},Nx.bind(r,t,n))):(Nx.bind(r,t,n=function(n){kx(e,t,n)}),e.delegates[t]=n))}function Ox(e,t,n,r){var i=n[t.get()],o=n[r];try{o.activate()}catch(e){return void console.error("problem while activating editor mode "+r+":",e)}i.deactivate(),i.editorReadOnly!==o.editorReadOnly&&gx(e,o.editorReadOnly),t.set(r),e.fire("SwitchMode",{mode:r})}function Tx(e){var t,n={};Mx(Rx(e.toLowerCase(),"+"),(function(e){e in Bx?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=Fx[e]||e.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(t in Bx)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,xt.mac?n.ctrl=!0:n.shift=!0),n.meta&&(xt.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n}var Ex,Ix={fire:function(e,t,n){if(this.removed&&"remove"!==e&&"detach"!==e)return t;var r=xx(this).fire(e,t);if(!1!==n&&this.parent)for(var i=this.parent();i&&!r.isPropagationStopped();)i.fire(e,r,!1),i=i.parent();return r},on:function(e,t,n){return xx(this).on(e,t,n)},off:function(e,t){return xx(this).off(e,t)},once:function(e,t){return xx(this).once(e,t)},hasEventListeners:function(e){return xx(this).has(e)}},Nx=ns.DOM,Ax=Ee(Ee({},Ix),{bindPendingEventDelegates:function(){var e=this;Dt.each(e._pendingNativeEvents,(function(t){Dx(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?Dx(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(Sx(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(ie(e.delegates,(function(t,n){e.dom.unbind(Sx(e,n),n,t)})),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),Px=["design","readonly"],Mx=Dt.each,Rx=Dt.explode,Fx={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Bx=Dt.makeMap("alt,ctrl,shift,meta,access"),Lx=($x.prototype.add=function(e,t,n,r){var i=this,o=i.normalizeCommandFunc(n);return Mx(Rx(Dt.trim(e)),(function(e){var n=i.createShortcut(e,t,o,r);i.shortcuts[n.id]=n})),!0},$x.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},$x.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"==typeof n?function(){t.editor.execCommand(n,!1,null)}:Dt.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},$x.prototype.createShortcut=function(e,t,n,r){var i=Dt.map(Rx(e,">"),Tx);return i[i.length-1]=Dt.extend(i[i.length-1],{func:n,scope:r||this.editor}),Dt.extend(i[0],{desc:this.editor.translate(t),subpatterns:i.slice(1)})},$x.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},$x.prototype.isFunctionKey=function(e){return"keydown"===e.type&&112<=e.keyCode&&e.keyCode<=123},$x.prototype.matchShortcut=function(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)},$x.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},$x);function $x(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(Mx(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}var Vx=ns.DOM,jx=Dt.extend,zx=Dt.each,Hx=Dt.resolve,Ux=xt.ie,Wx=(qx.prototype.render=function(){!function(e){var t=e.id;ds.setCode(Pl(e));var n,r,i,o,a=function(){ix.unbind(window,"ready",a),e.render()};co.Event.domLoaded?e.getElement()&&xt.contentEditable&&(n=Ot.fromDom(e.getElement()),r=W(n.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{}),e.on("remove",(function(){j(n.dom.attributes,(function(e){return Cn(n,e.name),0})),bn(n,r)})),e.ui.styleSheetLoader=Nr.forElement(n,{contentCssCors:(i=e).getParam("content_css_cors"),referrerPolicy:Al(i)}),e.getParam("inline")?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden"),(o=e.getElement().form||ix.getParent(t,"form"))&&(e.formElement=o,e.getParam("hidden_input")&&!Un(e.getElement())&&(ix.insertAfter(ix.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},ix.bind(o,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!e.getParam("submit_patch")||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),o._mceOldSubmit(o)})),e.windowManager=Zv(e),e.notificationManager=Ov(e),"xml"===e.getParam("encoding")&&e.on("GetContent",(function(e){e.save&&(e.content=ix.encode(e.content))})),e.getParam("add_form_submit_trigger")&&e.on("submit",(function(){e.initialized&&e.save()})),e.getParam("add_unload_trigger")&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),UC(e,e.suffix)):ix.bind(window,"ready",a)}(this)},qx.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},qx.prototype.hasFocus=function(){return Cd(this)},qx.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=this.settings[e];if(i)return this.callbackLookup&&(r=this.callbackLookup[e])&&(i=r.func,r=r.scope),"string"==typeof i&&(r=(r=i.replace(/\.\w+$/,""))?Hx(r):0,i=Hx(i),this.callbackLookup=this.callbackLookup||{},this.callbackLookup[e]={func:i,scope:r}),i.apply(r||this,t)},qx.prototype.translate=function(e){return ds.translate(e)},qx.prototype.getParam=function(e,t,n){return o=t,a=n,c=(i=e)in(r=this).settings?r.settings[i]:o,"hash"===a?(u={},"string"==typeof(l=c)?V(0<l.indexOf("=")?l.split(/[;,](?![^=;,]*(?:[;,]|$))/):l.split(","),(function(e){var t=e.split("=");1<t.length?u[Dt.trim(t[0])]=Dt.trim(t[1]):u[Dt.trim(t[0])]=Dt.trim(t[0])})):u=l,u):"string"===a?xv(y,r,i).getOr(o):"number"===a?xv(D,r,i).getOr(o):"boolean"===a?xv(x,r,i).getOr(o):"object"===a?xv(w,r,i).getOr(o):"array"===a?xv(_,r,i).getOr(o):"string[]"===a?xv((s=y,function(e){return _(e)&&X(e,s)}),r,i).getOr(o):"function"===a?xv(k,r,i).getOr(o):c;var r,i,o,a,s,l,u,c},qx.prototype.hasPlugin=function(e,t){return!(!B(Vl(this).split(/[ ,]/),e)||t&&void 0===Xv.get(e))},qx.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},qx.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},qx.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},qx.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},qx.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},qx.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},qx.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},qx.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},qx.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},qx.prototype.show=function(){this.hidden&&(this.hidden=!1,this.inline?this.getBody().contentEditable="true":(Vx.show(this.getContainer()),Vx.hide(this.id)),this.load(),this.fire("show"))},qx.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(Ux&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(Vx.hide(e.getContainer()),Vx.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},qx.prototype.isHidden=function(){return!!this.hidden},qx.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},qx.prototype.load=function(e){var t=this.getElement();if(this.removed)return"";if(t){(e=e||{}).load=!0;var n=Un(t)?t.value:t.innerHTML,r=this.setContent(n,e);return e.element=t,e.no_events||this.fire("LoadContent",e),e.element=t=null,r}},qx.prototype.save=function(e){var t,n,r=this,i=r.getElement();if(i&&r.initialized&&!r.removed)return(e=e||{}).save=!0,e.element=i,e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Un(i)?i.value=t:(!e.is_removing&&r.inline||(i.innerHTML=t),(n=Vx.getParent(r.id,"form"))&&zx(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=i=null,!1!==e.set_dirty&&r.setDirty(!1),t},qx.prototype.setContent=function(e,t){return mv(this,e,t)},qx.prototype.getContent=function(e){return t=this,r=(n=void 0===(n=e)?{}:n).format||"html",i=n,wg(t).editor.getContent(i,r);var t,n,r,i},qx.prototype.insertContent=function(e,t){t&&(e=jx({content:e},t)),this.execCommand("mceInsertContent",!1,e)},qx.prototype.resetContent=function(e){void 0===e?mv(this,this.startContent,{format:"raw"}):mv(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},qx.prototype.isDirty=function(){return!this.isNotDirty},qx.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},qx.prototype.getContainer=function(){return this.container||(this.container=Vx.get(this.editorContainer||this.id+"_parent")),this.container},qx.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},qx.prototype.getElement=function(){return this.targetElm||(this.targetElm=Vx.get(this.id)),this.targetElm},qx.prototype.getWin=function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},qx.prototype.getDoc=function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},qx.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},qx.prototype.convertURL=function(e,t,n){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!r.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:r.relative_urls?this.documentBaseURI.toRelative(e):this.documentBaseURI.toAbsolute(e,r.remove_script_host)},qx.prototype.addVisual=function(e){var t;t=e,_g(this).editor.addVisual(t)},qx.prototype.remove=function(){var e,t,n,r,i;(e=this).removed||(t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),i=e.getElement(),r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&i&&Mv.remove(i.nextSibling),e.fire("remove"),e.editorManager.remove(e),!e.inline&&r&&Mv.setStyle(e.id,"display",e.orgDisplay),e.fire("detach"),Mv.remove(e.getContainer()),gv(t),gv(n),e.destroy())},qx.prototype.destroy=function(e){var t,n,r,i,o,a,s;n=e,a=(t=this).selection,s=t.dom,t.destroyed||(n||t.removed?(n||(t.editorManager.off("beforeunload",t._beforeUnload),t.theme&&t.theme.destroy&&t.theme.destroy(),gv(a),gv(s)),(i=(r=t).formElement)&&(i._mceOldSubmit&&(i.submit=i._mceOldSubmit,i._mceOldSubmit=null),Mv.unbind(i,"submit reset",r.formEventDelegate)),(o=t).contentAreaContainer=o.formElement=o.container=o.editorContainer=null,o.bodyElement=o.contentDocument=o.contentWindow=null,o.iframeElement=o.targetElm=null,o.selection&&(o.selection=o.selection.win=o.selection.dom=o.selection.dom.doc=null),t.destroyed=!0):t.remove())},qx.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},qx.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},qx.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},qx.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},qx.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},qx.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},qx);function qx(e,t,n){var r,i,o,a,s,l,u,f,d,h,p,m,g,v,b,y,w,_,C=this;function x(e,t){return function(n,r){return e[n.toLowerCase()]=Ee(Ee({},r),{type:t})}}this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,jx(this,Ax),this.settings=(h=(d=this).documentBaseUrl,p=n.defaultSettings,g=h,v=Vv,b=d,y={id:e,theme:"silver",toolbar_mode:wv(m=t,"floating"),plugins:"",document_base_url:g,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:b.convertURL,url_converter_scope:b},w=Ee(Ee({},y),v?Uv:{}),!1!==(_=Cv(jv||zv,jv,w,p,m)).deprecation_warnings&&vv(m,_),_),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(as.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),ns.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),hs.languageLoad=this.settings.language_load,hs.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new iv(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new Lx(this),this.editorCommands=new fx(this),this.settings.cache_suffix&&(xt.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:{addAutocompleter:(s={},(r={addButton:x(i={},"button"),addGroupToolbarButton:x(i,"grouptoolbarbutton"),addToggleButton:x(i,"togglebutton"),addMenuButton:x(i,"menubutton"),addSplitButton:x(i,"splitbutton"),addMenuItem:x(o={},"menuitem"),addNestedMenuItem:x(o,"nestedmenuitem"),addToggleMenuItem:x(o,"togglemenuitem"),addAutocompleter:x(a={},"autocompleter"),addContextMenu:x(l={},"contextmenu"),addContextToolbar:x(u={},"contexttoolbar"),addContextForm:x(u,"contextform"),addSidebar:x(f={},"sidebar"),addIcon:function(e,t){return s[e.toLowerCase()]=t},getAll:function(){return{buttons:i,menuItems:o,icons:s,popups:a,contextMenus:l,contextToolbars:u,sidebars:f}}}).addAutocompleter),addButton:r.addButton,addContextForm:r.addContextForm,addContextMenu:r.addContextMenu,addContextToolbar:r.addContextToolbar,addIcon:r.addIcon,addMenuButton:r.addMenuButton,addMenuItem:r.addMenuItem,addNestedMenuItem:r.addNestedMenuItem,addSidebar:r.addSidebar,addSplitButton:r.addSplitButton,addToggleButton:r.addToggleButton,addGroupToolbarButton:r.addGroupToolbarButton,addToggleMenuItem:r.addToggleMenuItem,getAll:r.getAll},styleSheetLoader:void 0,show:c,hide:c,enable:c,disable:c,isDisabled:A};var S,k,D,O,T,E=(O=ls("design"),T=ls({design:{activate:c,deactivate:c,editorReadOnly:!1},readonly:{activate:c,deactivate:c,editorReadOnly:!0}}),(k=S=this).serializer?bx(k):k.on("PreInit",(function(){bx(k)})),(D=S).on("ShowCaret",(function(e){vx(D)&&e.preventDefault()})),D.on("ObjectSelected",(function(e){vx(D)&&e.preventDefault()})),{isReadOnly:function(){return vx(S)},set:function(e){return function(e,t,n,r){if(r!==n.get()){if(!Oe(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?Ox(e,n,t,r):e.on("init",(function(){return Ox(e,n,t,r)}))}}(S,T.get(),O,e)},get:function(){return O.get()},register:function(e,t){T.set(function(e,t,n){var r;if(B(Px,t))throw new Error("Cannot override default mode "+t);return Ee(Ee({},e),((r={})[t]=Ee(Ee({},n),{deactivate:function(){try{n.deactivate()}catch(e){console.error("problem while deactivating editor mode "+t+":",e)}}}),r))}(T.get(),e,t))}});this.mode=E,this.setMode=E.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Ja.overrideDefaults((function(){return{context:C.inline?C.getBody():C.getDoc(),element:C.getBody()}}))}function Gx(e){var t=e.type;Qx(aS.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e)}}))}function Yx(e){e!==nS&&(e?Ja(window).on("resize scroll",Gx):Ja(window).off("resize scroll",Gx),nS=e)}function Kx(e){var t=iS;delete rS[e.id];for(var n=0;n<rS.length;n++)if(rS[n]===e){rS.splice(n,1);break}return iS=H(iS,(function(t){return e!==t})),aS.activeEditor===e&&(aS.activeEditor=0<iS.length?iS[0]:null),aS.focusedEditor===e&&(aS.focusedEditor=null),t.length!==iS.length}var Xx,Jx=ns.DOM,Zx=Dt.explode,Qx=Dt.each,eS=Dt.extend,tS=0,nS=!1,rS=[],iS=[],oS="CSS1Compat"!==document.compatMode,aS=Ee(Ee({},Ix),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Ja,majorVersion:"5",minorVersion:"10.9",releaseDate:"2023-11-15",editors:rS,i18n:ds,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t="",n=iv.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(n)&&(n=n.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(n)||(n+="/"));var r=window.tinymce||window.tinyMCEPreInit;if(r)e=r.base||r.baseURL,t=r.suffix;else{for(var i,o=document.getElementsByTagName("script"),a=0;a<o.length;a++)if(""!==(i=o[a].src||"")){var s=i.substring(i.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(i)){-1!==s.indexOf(".min")&&(t=".min"),e=i.substring(0,i.lastIndexOf("/"));break}}!e&&document.currentScript&&(-1!==(i=document.currentScript.src).indexOf(".min")&&(t=".min"),e=i.substring(0,i.lastIndexOf("/")))}this.baseURL=new iv(n).toAbsolute(e),this.documentBaseURL=n,this.baseURI=new iv(this.baseURL),this.suffix=t,this.on("AddEditor",O(bd,this)),this.on("RemoveEditor",O(yd,this))},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n);var r=(this.defaultSettings=e).plugin_base_urls;void 0!==r&&ie(r,(function(e,t){hs.PluginManager.urls[t]=e}))},init:function(e){function t(e){var t=e.id;return t||(t=ue(e,"name").filter((function(e){return!Jx.get(e)})).getOrThunk(Jx.uniqueId),e.setAttribute("id",t)),t}function n(e,t){return t.constructor===RegExp?t.test(e.className):Jx.hasClass(e,t)}var r,i=this,o=Dt.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),a=function(e){r=e},s=function(){function r(e,t,n){var r=new Wx(e,t,i);f.push(r),r.on("init",(function(){++c===l.length&&a(f)})),r.targetElm=r.targetElm||n,r.render()}var l,u,c=0,f=[];Jx.unbind(window,"ready",s),(u=e.onpageload)&&u.apply(i,[]),l=Ja.unique(function(e){var t=[];if(xt.browser.isIE()&&xt.browser.version.major<11)return Sy("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(oS)return Sy("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return Qx(e.types,(function(e){t=t.concat(Jx.select(e.selector))})),t;if(e.selector)return Jx.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var r=e.elements||"";0<r.length&&Qx(Zx(r),(function(e){var n=Jx.get(e);n?t.push(n):Qx(document.forms,(function(n){Qx(n.elements,(function(n){n.name===e&&(e="mce_editor_"+tS++,Jx.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":Qx(Jx.select("textarea"),(function(r){e.editor_deselector&&n(r,e.editor_deselector)||e.editor_selector&&!n(r,e.editor_selector)||t.push(r)}))}return t}(e)),e.types?Qx(e.types,(function(n){Dt.each(l,(function(i){return!Jx.is(i,n.selector)||(r(t(i),eS({},e,n),i),!1)}))})):(Dt.each(l,(function(e){var t;(t=i.get(e.id))&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(Kx(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0)})),0===(l=Dt.grep(l,(function(e){return!i.get(e.id)}))).length?a([]):Qx(l,(function(n){var i=n;e.inline&&i.tagName.toLowerCase()in o?Sy("Could not initialize inline editor on invalid inline target element",n):r(t(n),e,n)})))};return i.settings=e,Jx.bind(window,"ready",s),new Er((function(e){r?e(r):a=function(t){e(t)}}))},get:function(e){return 0===arguments.length?iS.slice(0):y(e)?G(iS,(function(t){return t.id===e})).getOr(null):D(e)&&iS[e]||null},add:function(e){var t=this;return rS[e.id]===e||(null===t.get(e.id)&&("length"!==e.id&&(rS[e.id]=e),rS.push(e),iS.push(e)),Yx(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),Xx||(Xx=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",Xx))),e},createEditor:function(e,t){return this.add(new Wx(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!y(e))return n=e,C(r.get(n.id))?null:(Kx(n)&&r.fire("RemoveEditor",{editor:n}),0===iS.length&&window.removeEventListener("beforeunload",Xx),n.remove(),Yx(0<iS.length),n);Qx(Jx.select(e),(function(e){(n=r.get(e.id))&&r.remove(n)}))}else for(t=iS.length-1;0<=t;t--)r.remove(iS[t])},execCommand:function(e,t,n){var r=this.get(n);switch(e){case"mceAddEditor":return this.get(n)||new Wx(n,this.settings,this).render(),!0;case"mceRemoveEditor":return r&&r.remove(),!0;case"mceToggleEditor":return r?r.isHidden()?r.show():r.hide():this.execCommand("mceAddEditor",!1,n),!0}return!!this.activeEditor&&this.activeEditor.execCommand(e,t,n)},triggerSave:function(){Qx(iS,(function(e){e.save()}))},addI18n:function(e,t){ds.add(e,t)},translate:function(e){return ds.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new iv(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new iv(this.baseURL)}});function sS(e,t,n){var r=t.x,i=t.y,o=e.w,a=e.h,s=t.w,l=t.h,u=(n||"").split("");return"b"===u[0]&&(i+=l),"r"===u[1]&&(r+=s),"c"===u[0]&&(i+=gS(l/2)),"c"===u[1]&&(r+=gS(s/2)),"b"===u[3]&&(i-=a),"r"===u[4]&&(r-=o),"c"===u[3]&&(i-=gS(a/2)),"c"===u[4]&&(r-=gS(o/2)),uS(r,i,o,a)}function lS(){}function uS(e,t,n,r){return{x:e,y:t,w:n,h:r}}aS.setup();var cS,fS,dS,hS,pS=Math.min,mS=Math.max,gS=Math.round,vS={inflate:function(e,t,n){return uS(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},relativePosition:sS,findBestRelativePosition:function(e,t,n,r){for(var i,o=0;o<r.length;o++)if((i=sS(e,t,r[o])).x>=n.x&&i.x+i.w<=n.w+n.x&&i.y>=n.y&&i.y+i.h<=n.h+n.y)return r[o];return null},intersect:function(e,t){var n=mS(e.x,t.x),r=mS(e.y,t.y),i=pS(e.x+e.w,t.x+t.w),o=pS(e.y+e.h,t.y+t.h);return i-n<0||o-r<0?null:uS(n,r,i-n,o-r)},clamp:function(e,t,n){var r=e.x,i=e.y,o=e.x+e.w,a=e.y+e.h,s=t.x+t.w,l=t.y+t.h,u=mS(0,t.x-r),c=mS(0,t.y-i),f=mS(0,o-s),d=mS(0,a-l);return r+=u,i+=c,n&&(o+=u,a+=c,r-=f,i-=d),uS(r,i,(o-=f)-r,(a-=d)-i)},create:uS,fromClientRect:function(e){return uS(e.left,e.top,e.width,e.height)}},bS=(cS={},fS={},{load:function(e,t){var n='Script at URL "'+t+'" failed to load',r='Script at URL "'+t+"\" did not call `tinymce.Resource.add('"+e+"', data)` within 1 second";if(void 0!==cS[e])return cS[e];var i=new Er((function(i,o){var a=function(e,t,n){function r(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];i||(i=!0,null!==o&&(clearTimeout(o),o=null),e.apply(null,t))}}void 0===n&&(n=1e3);var i=!1,o=null,a=r(e),s=r(t);return{start:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i||null!==o||(o=setTimeout((function(){return s.apply(null,e)}),n))},resolve:a,reject:s}}(i,o);fS[e]=a.resolve,as.ScriptLoader.loadScript(t,(function(){return a.start(r)}),(function(){return a.reject(n)}))}));return cS[e]=i},add:function(e,t){void 0!==fS[e]&&(fS[e](t),delete fS[e]),cS[e]=Er.resolve(t)}}),yS=Dt.each,wS=Dt.extend;lS.extend=dS=function(e){function t(){var e,t,n;if(!hS&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)}function n(){return this}var r=this.prototype;hS=!0;var i=new this;return hS=!1,e.Mixins&&(yS(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),r.Mixins&&(e.Mixins=r.Mixins.concat(e.Mixins))),e.Methods&&yS(e.Methods.split(","),(function(t){e[t]=n})),e.Properties&&yS(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){return void 0!==e?(this[n]=e,this):this[n]}})),e.Statics&&yS(e.Statics,(function(e,n){t[n]=e})),e.Defaults&&r.Defaults&&(e.Defaults=wS({},r.Defaults,e.Defaults)),ie(e,(function(e,t){var n,o;"function"==typeof e&&r[t]?i[t]=(n=t,o=e,function(){var e=this._super;this._super=r[n];var t=o.apply(this,arguments);return this._super=e,t}):i[t]=e})),t.prototype=i,(t.constructor=t).extend=dS,t};var _S,CS,xS,SS=Math.min,kS=Math.max,DS=Math.round,OS={serialize:function(e){var t=JSON.stringify(e);return y(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},parse:function(e){try{return JSON.parse(e)}catch(e){}}},TS={callbacks:{},count:0,send:function(e){var t=this,n=ns.DOM,r=(void 0!==e.count?e:t).count,i="tinymce_jsonp_"+r;t.callbacks[r]=function(o){n.remove(i),delete t.callbacks[r],e.callback(o)},n.add(n.doc.body,"script",{id:i,src:e.url,type:"text/javascript"}),t.count++}},ES=Ee(Ee({},Ix),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||1e4<n++?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,1e4<n?"TIMED_OUT":"GENERAL",t,e),t=null):Ir.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",ES.fire("beforeInitialize",{settings:e}),(t=new XMLHttpRequest).overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&Dt.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),(t=ES.fire("beforeSend",{xhr:t,settings:e}).xhr).send(e.data),!e.async)return r();Ir.setTimeout(r,10)}}),IS=Dt.extend,NS=(AS.sendRPC=function(e){return(new AS).send(e)},AS.prototype.send=function(e){var t=e.error,n=e.success,r=IS(this.settings,e);r.success=function(e,i){(e=void 0===(e=OS.parse(e))?{error:"JSON Parse error."}:e).error?t.call(r.error_scope||r.scope,e.error,i):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=OS.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",ES.send(r)},AS);function AS(e){this.settings=IS({},e),this.count=0}try{var PS,MS="__storage_test__";(PS=window.localStorage).setItem(MS,MS),PS.removeItem(MS)}catch(o){_S={},CS=[],xS={getItem:function(e){return _S[e]||null},setItem:function(e,t){CS.push(e),_S[e]=String(t)},key:function(e){return CS[e]},removeItem:function(e){CS=CS.filter((function(t){return t===e})),delete _S[e]},clear:function(){CS=[],_S={}},length:0},Object.defineProperty(xS,"length",{get:function(){return CS.length},configurable:!1,enumerable:!1}),PS=xS}var RS={geom:{Rect:vS},util:{Promise:Er,Delay:Ir,Tools:Dt,VK:Lf,URI:iv,Class:lS,EventDispatcher:_x,Observable:Ix,I18n:ds,XHR:ES,JSON:OS,JSONRequest:NS,JSONP:TS,LocalStorage:PS,Color:function(e){function t(e){var t;return"object"==typeof e?"r"in e?(r=e.r,i=e.g,o=e.b):"v"in e&&function(e,t,n){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,n=parseInt(n,10)/100,t=kS(0,SS(t,1)),n=kS(0,SS(n,1)),0!==t){var a=e/60,s=n*t,l=s*(1-Math.abs(a%2-1)),u=n-s;switch(Math.floor(a)){case 0:r=s,i=l,o=0;break;case 1:r=l,i=s,o=0;break;case 2:r=0,i=s,o=l;break;case 3:r=0,i=l,o=s;break;case 4:r=l,i=0,o=s;break;case 5:r=s,i=0,o=l;break;default:r=i=o=0}r=DS(255*(r+u)),i=DS(255*(i+u)),o=DS(255*(o+u))}else r=i=o=DS(255*n)}(e.h,e.s,e.v):(t=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(r=parseInt(t[1],10),i=parseInt(t[2],10),o=parseInt(t[3],10)):(t=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(r=parseInt(t[1],16),i=parseInt(t[2],16),o=parseInt(t[3],16)):(t=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(r=parseInt(t[1]+t[1],16),i=parseInt(t[2]+t[2],16),o=parseInt(t[3]+t[3],16)),r=r<0?0:255<r?255:r,i=i<0?0:255<i?255:i,o=o<0?0:255<o?255:o,n}var n={},r=0,i=0,o=0;return e&&t(e),n.toRgb=function(){return{r:r,g:i,b:o}},n.toHsv=function(){return e=r,t=i,n=o,s=0,(l=SS(e/=255,SS(t/=255,n/=255)))===(u=kS(e,kS(t,n)))?{h:0,s:0,v:100*(s=l)}:(a=(u-l)/u,{h:DS(60*((e===l?3:n===l?1:5)-(e===l?t-n:n===l?e-t:n-e)/((s=u)-l))),s:DS(100*a),v:DS(100*s)});var e,t,n,a,s,l,u},n.toHex=function(){function e(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e}return"#"+e(r)+e(i)+e(o)},n.parse=t,n},ImageUploader:function(e){var t=ob(),n=cb(e,t);return{upload:function(t,r){return n.upload(t,(r=void 0===r||r)?ub(e):void 0)}}}},dom:{EventUtils:co,Sizzle:fa,DomQuery:Ja,TreeWalker:Ar,TextSeeker:Is,DOMUtils:ns,ScriptLoader:as,RangeUtils:Bf,Serializer:pv,StyleSheetLoader:kr,ControlSelection:kf,BookmarkManager:Hc,Selection:Vg,Event:co.Event},html:{Styles:li,Entities:eo,Node:Ud,Schema:ai,SaxParser:sv,DomParser:fv,Writer:ih,Serializer:oh},Env:xt,AddOnManager:hs,Annotator:zc,Formatter:mb,UndoManager:vb,EditorCommands:fx,WindowManager:Zv,NotificationManager:Ov,EditorObservable:Ax,Shortcuts:Lx,Editor:Wx,FocusManager:Vd,EditorManager:aS,DOM:ns.DOM,ScriptLoader:as.ScriptLoader,PluginManager:Xv,ThemeManager:Jv,IconManager:Wv,Resource:bS,trim:Dt.trim,isArray:Dt.isArray,is:Dt.is,toArray:Dt.toArray,makeMap:Dt.makeMap,each:Dt.each,map:Dt.map,grep:Dt.grep,inArray:Dt.inArray,extend:Dt.extend,create:Dt.create,walk:Dt.walk,createNS:Dt.createNS,resolve:Dt.resolve,explode:Dt.explode,_addCacheSuffix:Dt._addCacheSuffix,isOpera:xt.opera,isWebKit:xt.webkit,isIE:xt.ie,isGecko:xt.gecko,isMac:xt.mac},FS=Dt.extend(aS,RS),BS=FS;window.tinymce=BS,window.tinyMCE=BS,function(t){try{e.exports=t}catch(t){}}(FS)}()}).call(this,n("c8ba"))},"78c7":function(e,t,n){"use strict";var r=n("1cba"),i=n("67f0"),o=function(){function e(){}return e.decode=function(e,t){var n=this.encodingName(t);return this.customDecoder?this.customDecoder(e,n):"undefined"===typeof TextDecoder||this.shouldDecodeOnFallback(n)?this.decodeFallback(e,n):new TextDecoder(n).decode(e)},e.shouldDecodeOnFallback=function(t){return!e.isBrowser()&&"ISO-8859-1"===t},e.encode=function(e,t){var n=this.encodingName(t);return this.customEncoder?this.customEncoder(e,n):"undefined"===typeof TextEncoder?this.encodeFallback(e):(new TextEncoder).encode(e)},e.isBrowser=function(){return"undefined"!==typeof window&&"[object Window]"==={}.toString.call(window)},e.encodingName=function(e){return"string"===typeof e?e:e.getName()},e.encodingCharacterSet=function(e){return e instanceof i["a"]?e:i["a"].getCharacterSetECIByName(e)},e.decodeFallback=function(t,n){var o=this.encodingCharacterSet(n);if(e.isDecodeFallbackSupported(o)){for(var a="",s=0,l=t.length;s<l;s++){var u=t[s].toString(16);u.length<2&&(u="0"+u),a+="%"+u}return decodeURIComponent(a)}if(o.equals(i["a"].UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(t.buffer));throw new r["a"]("Encoding "+this.encodingName(n)+" not supported by fallback.")},e.isDecodeFallbackSupported=function(e){return e.equals(i["a"].UTF8)||e.equals(i["a"].ISO8859_1)||e.equals(i["a"].ASCII)},e.encodeFallback=function(e){for(var t=btoa(unescape(encodeURIComponent(e))),n=t.split(""),r=[],i=0;i<n.length;i++)r.push(n[i].charCodeAt(0));return new Uint8Array(r)},e}();t["a"]=o},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},7978:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.getFormatInstance=function(){return new t},t.kind="FormatException",t}(r["a"]);t["a"]=o},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7a37":function(e,t,n){"use strict";var r=function(){function e(e,t){this.bits=e,this.points=t}return e.prototype.getBits=function(){return this.bits},e.prototype.getPoints=function(){return this.points},e}();t["a"]=r},"7a56":function(e,t,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},"7b3e":function(e,t,n){"use strict";var r,i=n("a3de");
7
+ function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"a",(function(){return N}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function l(e){return null!==e&&"object"===typeof e}function u(e){return e&&"function"===typeof e.then}function c(e,t){return function(){return e(t)}}var f=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},f.prototype.addChild=function(e,t){this._children[e]=t},f.prototype.removeChild=function(e){delete this._children[e]},f.prototype.getChild=function(e){return this._children[e]},f.prototype.hasChild=function(e){return e in this._children},f.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},f.prototype.forEachChild=function(e){s(this._children,e)},f.prototype.forEachGetter=function(e){this._rawModule.getters&&s(this._rawModule.getters,e)},f.prototype.forEachAction=function(e){this._rawModule.actions&&s(this._rawModule.actions,e)},f.prototype.forEachMutation=function(e){this._rawModule.mutations&&s(this._rawModule.mutations,e)},Object.defineProperties(f.prototype,d);var h=function(e){this.register([],e,!1)};function p(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;p(e.concat(r),t.getChild(r),n.modules[r])}}h.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},h.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},h.prototype.update=function(e){p([],this.root,e)},h.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new f(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&s(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},h.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},h.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var m;var g=function(e){var t=this;void 0===e&&(e={}),!m&&"undefined"!==typeof window&&window.Vue&&I(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new h(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;_(this,u,[],this._modules.root),w(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:m.config.devtools;c&&a(this)},v={state:{configurable:!0}};function b(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function y(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;_(e,n,[],e._modules.root,!0),w(e,n,t)}function w(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};s(i,(function(t,n){o[n]=c(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=m.config.silent;m.config.silent=!0,e._vm=new m({data:{$$state:t},computed:o}),m.config.silent=a,e.strict&&O(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),m.nextTick((function(){return r.$destroy()})))}function _(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=T(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){m.set(s,l,r.state)}))}var u=r.context=C(e,a,n);r.forEachMutation((function(t,n){var r=a+n;S(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;k(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;D(e,r,t,u)})),r.forEachChild((function(r,o){_(e,t,n.concat(o),r,i)}))}function C(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return x(e,t)}},state:{get:function(){return T(e.state,n)}}}),i}function x(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function S(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function k(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return u(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function D(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function O(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function T(e,t){return t.reduce((function(e,t){return e[t]}),e)}function E(e,t,n){return l(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function I(e){m&&e===m||(m=e,r(m))}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(e){0},g.prototype.commit=function(e,t,n){var r=this,i=E(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},g.prototype.dispatch=function(e,t){var n=this,r=E(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},g.prototype.subscribe=function(e,t){return b(e,this._subscribers,t)},g.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return b(n,this._actionSubscribers,t)},g.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},g.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},g.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),_(this,this.state,e,this._modules.get(e),n.preserveState),w(this,this.state)},g.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=T(t.state,e.slice(0,-1));m.delete(n,e[e.length-1])})),y(this)},g.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},g.prototype.hotUpdate=function(e){this._modules.update(e),y(this,!0)},g.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(g.prototype,v);M((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=R(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),M((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=R(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));var N=M((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||R(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n}));M((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=R(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function A(e){return P(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function P(e){return Array.isArray(e)||l(e)}function M(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function R(e,t,n){var r=e._modulesNamespaceMap[n];return r}}).call(this,n("c8ba"))},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"2ffe":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=147)}({147:function(e,t,n){"use strict";n.r(t);var r=n(19),i=n(39),o=n.n(i),a=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function u(e){var t=e.move,n=e.size,r=e.bar,i={},o="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var c={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(){var e=arguments[0],t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:u({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=100*(Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=t*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(s.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-(this.$refs.thumb[this.bar.offset]-t))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(){this.cursorDown=!1,this[this.bar.axis]=0,Object(s.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s.off)(document,"mouseup",this.mouseUpDocumentHandler)}},f={name:"ElScrollbar",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=o()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:"string"==typeof this.wrapStyle?n+=i:n=i}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),u=void 0;return u=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,e(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},u)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e,t,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r.removeResizeListener)(this.$refs.resize,this.update)},install:function(e){e.component(f.name,f)}};t.default=f},19:function(e,t){e.exports=n("229c")},2:function(e,t){e.exports=n("f321")},3:function(e,t){e.exports=n("bf32")},39:function(e,t){e.exports=n("e17f")}})},3024:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),l=n("8f60"),u=n("45f2"),c=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,b,y,w){l(n,t,v);var _,C,x,S=function(e){if(!d&&e in T)return T[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",D=b==m,O=!1,T=e.prototype,E=T[f]||T[h]||b&&T[b],I=E||S(b),N=b?D?S("entries"):I:void 0,A="Array"==t&&T.entries||E;if(A&&(x=c(A.call(new e)),x!==Object.prototype&&x.next&&(u(x,k,!0),r||"function"==typeof x[f]||a(x,f,g))),D&&E&&E.name!==m&&(O=!0,I=function(){return E.call(this)}),r&&!w||!d&&!O&&T[f]||a(T,f,I),s[t]=I,s[k]=g,b)if(_={values:D?I:S(m),keys:y?I:S(p),entries:N},w)for(C in _)C in T||o(T,C,_[C]);else i(i.P+i.F*(d||O),t,_);return _}},3154:function(e,t,n){n("f034")},"31f4":function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"321e":function(e,t,n){},"323c":function(e,t,n){"use strict";t.__esModule=!0,t.isSameDate=t.validateRangeInOneMonth=t.extractTimeFormat=t.extractDateFormat=t.nextYear=t.prevYear=t.nextMonth=t.prevMonth=t.changeYearMonthAndClampDate=t.timeWithinRange=t.limitTimeRange=t.clearMilliseconds=t.clearTime=t.modifyWithTimeString=t.modifyTime=t.modifyDate=t.range=t.getRangeMinutes=t.getMonthDays=t.getPrevMonthLastDays=t.getRangeHours=t.getWeekNumber=t.getStartDateOfMonth=t.nextDate=t.prevDate=t.getFirstDayOfMonth=t.getDayCountOfYear=t.getDayCountOfMonth=t.parseDate=t.formatDate=t.isDateObject=t.isDate=t.toDate=t.getI18nSettings=void 0;var r=n("068a"),i=a(r),o=n("9243");function a(e){return e&&e.__esModule?e:{default:e}}var s=["sun","mon","tue","wed","thu","fri","sat"],l=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],u=function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n},c=t.getI18nSettings=function(){return{dayNamesShort:s.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),dayNames:s.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),monthNamesShort:l.map((function(e){return(0,o.t)("el.datepicker.months."+e)})),monthNames:l.map((function(e,t){return(0,o.t)("el.datepicker.month"+(t+1))})),amPm:["am","pm"]}},f=t.toDate=function(e){return d(e)?new Date(e):null},d=t.isDate=function(e){return null!==e&&void 0!==e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},h=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return e=f(e),e?i.default.format(e,t||"yyyy-MM-dd",c()):""},t.parseDate=function(e,t){return i.default.parse(e,t||"yyyy-MM-dd",c())}),p=t.getDayCountOfMonth=function(e,t){return 3===t||5===t||8===t||10===t?30:1===t?e%4===0&&e%100!==0||e%400===0?29:28:31},m=(t.getDayCountOfYear=function(e){var t=e%400===0||e%100!==0&&e%4===0;return t?366:365},t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()},t.prevDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)});t.nextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},t.getStartDateOfMonth=function(e,t){var n=new Date(e,t,1),r=n.getDay();return m(n,0===r?7:r)},t.getWeekNumber=function(e){if(!d(e))return null;var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},t.getRangeHours=function(e){var t=[],n=[];if((e||[]).forEach((function(e){var t=e.map((function(e){return e.getHours()}));n=n.concat(u(t[0],t[1]))})),n.length)for(var r=0;r<24;r++)t[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)t[i]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var r=n.getDate();return v(t).map((function(e,n){return r-(t-n-1)}))},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=t.getDate();return v(n).map((function(e,t){return t+1}))};function g(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach((function(e){var r=e[0],i=e[1],o=r.getHours(),a=r.getMinutes(),s=i.getHours(),l=i.getMinutes();o===t&&s!==t?g(n,a,60,!0):o===t&&s===t?g(n,a,l+1,!0):o!==t&&s===t?g(n,0,l+1,!0):o<t&&s>t&&g(n,0,60,!0)})):g(n,0,60,!0),n};var v=t.range=function(e){return Array.apply(null,{length:e}).map((function(e,t){return t}))},b=t.modifyDate=function(e,t,n,r){return new Date(t,n,r,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},y=t.modifyTime=function(e,t,n,r){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,r,e.getMilliseconds())},w=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=h(t,"HH:mm:ss"),y(e,t.getHours(),t.getMinutes(),t.getSeconds())):e},t.clearTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.clearMilliseconds=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)},t.limitTimeRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;var r=function(e){return i.default.parse(i.default.format(e,n),n)},o=r(e),a=t.map((function(e){return e.map(r)}));if(a.some((function(e){return o>=e[0]&&o<=e[1]})))return e;var s=a[0][0],l=a[0][0];a.forEach((function(e){s=new Date(Math.min(e[0],s)),l=new Date(Math.max(e[1],s))}));var u=o<s?s:l;return b(u,e.getFullYear(),e.getMonth(),e.getDate())}),_=(t.timeWithinRange=function(e,t,n){var r=w(e,t,n);return r.getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var r=Math.min(e.getDate(),p(t,n));return b(e,t,n,r)});t.prevMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?_(e,t-1,11):_(e,t,n-1)},t.nextMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?_(e,t+1,0):_(e,t,n+1)},t.prevYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return _(e,n-t,r)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return _(e,n+t,r)},t.extractDateFormat=function(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},t.extractTimeFormat=function(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},t.validateRangeInOneMonth=function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},t.isSameDate=function(e,t){var n=f(e);n.setHours(0,0,0,0);var r=f(t);return r.setHours(0,0,0,0),n.getTime()===r.getTime()}},"323d":function(e,t,n){"use strict";n("2a10")},"32a6":function(e,t,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",(function(){return function(e){return i(r(e))}}))},"32e4":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=151)}({151:function(e,t,n){"use strict";n.r(t);var r=n(6),i=n.n(r),o=n(20),a=n.n(o),s=n(2),l=n(3),u=n(7),c=n.n(u),f={name:"ElTooltip",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(l.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new c.a({data:{node:""},render:function(){return this.node}}).$mount(),this.debounceClose=a()(200,(function(){return e.handleClosePopper()})))},render:function(){var e=this,t=arguments[0];this.popperVM&&(this.popperVM.node=t("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t("div",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s.on)(this.referenceElm,"mouseenter",this.show),Object(s.on)(this.referenceElm,"mouseleave",this.hide),Object(s.on)(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(s.on)(this.referenceElm,"blur",this.handleBlur),Object(s.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(s.addClass)(this.referenceElm,"focusing"):Object(s.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)e[n]&&e[n].tag&&(t=e[n]);return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(s.off)(e,"mouseenter",this.show),Object(s.off)(e,"mouseleave",this.hide),Object(s.off)(e,"focus",this.handleFocus),Object(s.off)(e,"blur",this.handleBlur),Object(s.off)(e,"click",this.removeFocusing))},install:function(e){e.component(f.name,f)}};t.default=f},2:function(e,t){e.exports=n("f321")},20:function(e,t){e.exports=n("0e15")},3:function(e,t){e.exports=n("bf32")},6:function(e,t){e.exports=n("1e6c")},7:function(e,t){e.exports=n("8bbf")}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32f9":function(e,t,n){"use strict";var r=n("cb12"),i=n("6530"),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function e(e,t){this.width=e,this.height=t;for(var n=new Array(t),r=0;r!==t;r++)n[r]=new Uint8Array(e);this.bytes=n}return e.prototype.getHeight=function(){return this.height},e.prototype.getWidth=function(){return this.width},e.prototype.get=function(e,t){return this.bytes[t][e]},e.prototype.getArray=function(){return this.bytes},e.prototype.setNumber=function(e,t,n){this.bytes[t][e]=n},e.prototype.setBoolean=function(e,t,n){this.bytes[t][e]=n?1:0},e.prototype.clear=function(e){var t,n;try{for(var i=o(this.bytes),a=i.next();!a.done;a=i.next()){var s=a.value;r["a"].fill(s,e)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;if(this.width!==n.width)return!1;if(this.height!==n.height)return!1;for(var r=0,i=this.height;r<i;++r)for(var o=this.bytes[r],a=n.bytes[r],s=0,l=this.width;s<l;++s)if(o[s]!==a[s])return!1;return!0},e.prototype.toString=function(){for(var e=new i["a"],t=0,n=this.height;t<n;++t){for(var r=this.bytes[t],o=0,a=this.width;o<a;++o)switch(r[o]){case 0:e.append(" 0");break;case 1:e.append(" 1");break;default:e.append(" ");break}e.append("\n")}return e.toString()},e}();t["a"]=a},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"330b":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,t&&t.apply(null,arguments))};r?e.$once("after-leave",o):e.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"33a4":function(e,t,n){var r=n("84f2"),i=n("2b4c")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"34c8":function(e,t,n){"use strict";var r=n("547e"),i=n("a7f2"),o=n("8285"),a=n("9cca"),s=function(){function e(e){this.field=e}return e.prototype.decode=function(e,t){for(var n=this.field,a=new i["a"](n,e),s=new Int32Array(t),l=!0,u=0;u<t;u++){var c=a.evaluateAt(n.exp(u+n.getGeneratorBase()));s[s.length-1-u]=c,0!==c&&(l=!1)}if(!l){var f=new i["a"](n,s),d=this.runEuclideanAlgorithm(n.buildMonomial(t,1),f,t),h=d[0],p=d[1],m=this.findErrorLocations(h),g=this.findErrorMagnitudes(p,m);for(u=0;u<m.length;u++){var v=e.length-1-n.log(m[u]);if(v<0)throw new o["a"]("Bad error location");e[v]=r["a"].addOrSubtract(e[v],g[u])}}},e.prototype.runEuclideanAlgorithm=function(e,t,n){if(e.getDegree()<t.getDegree()){var r=e;e=t,t=r}var i=this.field,s=e,l=t,u=i.getZero(),c=i.getOne();while(l.getDegree()>=(n/2|0)){var f=s,d=u;if(s=l,u=c,s.isZero())throw new o["a"]("r_{i-1} was zero");l=f;var h=i.getZero(),p=s.getCoefficient(s.getDegree()),m=i.inverse(p);while(l.getDegree()>=s.getDegree()&&!l.isZero()){var g=l.getDegree()-s.getDegree(),v=i.multiply(l.getCoefficient(l.getDegree()),m);h=h.addOrSubtract(i.buildMonomial(g,v)),l=l.addOrSubtract(s.multiplyByMonomial(g,v))}if(c=h.multiply(u).addOrSubtract(d),l.getDegree()>=s.getDegree())throw new a["a"]("Division algorithm failed to reduce polynomial?")}var b=c.getCoefficient(0);if(0===b)throw new o["a"]("sigmaTilde(0) was zero");var y=i.inverse(b),w=c.multiplyScalar(y),_=l.multiplyScalar(y);return[w,_]},e.prototype.findErrorLocations=function(e){var t=e.getDegree();if(1===t)return Int32Array.from([e.getCoefficient(1)]);for(var n=new Int32Array(t),r=0,i=this.field,a=1;a<i.getSize()&&r<t;a++)0===e.evaluateAt(a)&&(n[r]=i.inverse(a),r++);if(r!==t)throw new o["a"]("Error locator degree does not match number of roots");return n},e.prototype.findErrorMagnitudes=function(e,t){for(var n=t.length,r=new Int32Array(n),i=this.field,o=0;o<n;o++){for(var a=i.inverse(t[o]),s=1,l=0;l<n;l++)if(o!==l){var u=i.multiply(t[l],a),c=0===(1&u)?1|u:-2&u;s=i.multiply(s,c)}r[o]=i.multiply(e.evaluateAt(a),i.inverse(s)),0!==i.getGeneratorBase()&&(r[o]=i.multiply(r[o],a))}return r},e}();t["a"]=s},"34de":function(e,t,n){n("09cf")},"34ef":function(e,t,n){n("ec30")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36bd":function(e,t,n){"use strict";var r=n("4bf8"),i=n("77f1"),o=n("9def");e.exports=function(e){var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);while(u>s)t[s++]=e;return t}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"370f":function(e,t,n){"use strict";var r=n("a363"),i=n("7163"),o=n("2011"),a=n("5134"),s=n("6833"),l=n("f0a7"),u=n("9cca"),c=function(){function e(){}return e.prototype.encode=function(t,n,o,u,c){if(0===t.length)throw new l["a"]("Found empty contents");if(n!==r["a"].QR_CODE)throw new l["a"]("Can only encode QR_CODE, but got "+n);if(o<0||u<0)throw new l["a"]("Requested dimensions are too small: "+o+"x"+u);var f=a["a"].L,d=e.QUIET_ZONE_SIZE;null!==c&&(void 0!==c.get(i["a"].ERROR_CORRECTION)&&(f=a["a"].fromString(c.get(i["a"].ERROR_CORRECTION).toString())),void 0!==c.get(i["a"].MARGIN)&&(d=Number.parseInt(c.get(i["a"].MARGIN).toString(),10)));var h=s["a"].encode(t,f,c);return e.renderResult(h,o,u,d)},e.renderResult=function(e,t,n,r){var i=e.getMatrix();if(null===i)throw new u["a"];for(var a=i.getWidth(),s=i.getHeight(),l=a+2*r,c=s+2*r,f=Math.max(t,l),d=Math.max(n,c),h=Math.min(Math.floor(f/l),Math.floor(d/c)),p=Math.floor((f-a*h)/2),m=Math.floor((d-s*h)/2),g=new o["a"](f,d),v=0,b=m;v<s;v++,b+=h)for(var y=0,w=p;y<a;y++,w+=h)1===i.get(y,v)&&g.setRegion(w,b,h,h);return g},e.QUIET_ZONE_SIZE=4,e}();t["a"]=c},"37c8":function(e,t,n){t.f=n("2b4c")},"381a":function(e,t,n){"use strict";var r="0123456789",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",o="~!@#$%^*()_+-=[]{}|;:,./<>?";function a(e,t){e||(e=8),t||(t={});var n="",a="";!0===t?n=r+i+o:"string"==typeof t?n=t:(!1!==t.numbers&&(n+="string"==typeof t.numbers?t.numbers:r),!1!==t.letters&&(n+="string"==typeof t.letters?t.letters:i),t.specials&&(n+="string"==typeof t.specials?t.specials:o));while(e>0)e--,a+=n[Math.floor(Math.random()*n.length)];return a}e.exports=a.default=a},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"386b":function(e,t,n){var r=n("5ca1"),i=n("79e5"),o=n("be13"),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},"386d":function(e,t,n){"use strict";var r=n("cb7c"),i=n("83a1"),o=n("5f1b");n("214f")("search",1,(function(e,t,n,a){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),l=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var c=o(s,l);return i(s.lastIndex,u)||(s.lastIndex=u),null===c?-1:c.index}]}))},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"39b6":function(e,t,n){},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"3a72":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("2d00"),a=n("37c8"),s=n("86cc").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"3ab8":function(e,t,n){"use strict";var r=function(){function e(){}return e.prototype.isCompact=function(){return this.compact},e.prototype.setCompact=function(e){this.compact=e},e.prototype.getSize=function(){return this.size},e.prototype.setSize=function(e){this.size=e},e.prototype.getLayers=function(){return this.layers},e.prototype.setLayers=function(e){this.layers=e},e.prototype.getCodeWords=function(){return this.codeWords},e.prototype.setCodeWords=function(e){this.codeWords=e},e.prototype.getMatrix=function(){return this.matrix},e.prototype.setMatrix=function(e){this.matrix=e},e}();t["a"]=r},"3b2b":function(e,t,n){var r=n("7726"),i=n("5dbc"),o=n("86cc").f,a=n("9093").f,s=n("aae3"),l=n("0bfb"),u=r.RegExp,c=u,f=u.prototype,d=/a/g,h=/a/g,p=new u(d)!==d;if(n("9e1e")&&(!p||n("79e5")((function(){return h[n("2b4c")("match")]=!1,u(d)!=d||u(h)==h||"/a/i"!=u(d,"i")})))){u=function(e,t){var n=this instanceof u,r=s(e),o=void 0===t;return!n&&r&&e.constructor===u&&o?e:i(p?new c(r&&!o?e.source:e,t):c((r=e instanceof u)?e.source:e,r&&o?l.call(e):t),n?this:f,u)};for(var m=function(e){e in u||o(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},g=a(c),v=0;g.length>v;)m(g[v++]);f.constructor=u,u.prototype=f,n("2aba")(r,"RegExp",u)}n("7a56")("RegExp")},"3b2e":function(e,t,n){},"3bbd":function(e,t,n){"use strict";var r=n("2d92"),i=n("f0a7"),o=n("63af"),a=n("6530"),s=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(){function e(e,t){if(0===t.length)throw new i["a"];this.field=e;var n=t.length;if(n>1&&0===t[0]){var r=1;while(r<n&&0===t[r])r++;r===n?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(n-r),o["a"].arraycopy(t,r,this.coefficients,0,this.coefficients.length))}else this.coefficients=t}return e.prototype.getCoefficients=function(){return this.coefficients},e.prototype.getDegree=function(){return this.coefficients.length-1},e.prototype.isZero=function(){return 0===this.coefficients[0]},e.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},e.prototype.evaluateAt=function(e){var t,n;if(0===e)return this.getCoefficient(0);if(1===e){var r=0;try{for(var i=s(this.coefficients),o=i.next();!o.done;o=i.next()){var a=o.value;r=this.field.add(r,a)}}catch(f){t={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}for(var l=this.coefficients[0],u=this.coefficients.length,c=1;c<u;c++)l=this.field.add(this.field.multiply(e,l),this.coefficients[c]);return l},e.prototype.add=function(t){if(!this.field.equals(t.field))throw new i["a"]("ModulusPolys do not have same ModulusGF field");if(this.isZero())return t;if(t.isZero())return this;var n=this.coefficients,r=t.coefficients;if(n.length>r.length){var a=n;n=r,r=a}var s=new Int32Array(r.length),l=r.length-n.length;o["a"].arraycopy(r,0,s,0,l);for(var u=l;u<r.length;u++)s[u]=this.field.add(n[u-l],r[u]);return new e(this.field,s)},e.prototype.subtract=function(e){if(!this.field.equals(e.field))throw new i["a"]("ModulusPolys do not have same ModulusGF field");return e.isZero()?this:this.add(e.negative())},e.prototype.multiply=function(t){return t instanceof e?this.multiplyOther(t):this.multiplyScalar(t)},e.prototype.multiplyOther=function(t){if(!this.field.equals(t.field))throw new i["a"]("ModulusPolys do not have same ModulusGF field");if(this.isZero()||t.isZero())return new e(this.field,new Int32Array([0]));for(var n=this.coefficients,r=n.length,o=t.coefficients,a=o.length,s=new Int32Array(r+a-1),l=0;l<r;l++)for(var u=n[l],c=0;c<a;c++)s[l+c]=this.field.add(s[l+c],this.field.multiply(u,o[c]));return new e(this.field,s)},e.prototype.negative=function(){for(var t=this.coefficients.length,n=new Int32Array(t),r=0;r<t;r++)n[r]=this.field.subtract(0,this.coefficients[r]);return new e(this.field,n)},e.prototype.multiplyScalar=function(t){if(0===t)return new e(this.field,new Int32Array([0]));if(1===t)return this;for(var n=this.coefficients.length,r=new Int32Array(n),i=0;i<n;i++)r[i]=this.field.multiply(this.coefficients[i],t);return new e(this.field,r)},e.prototype.multiplyByMonomial=function(t,n){if(t<0)throw new i["a"];if(0===n)return new e(this.field,new Int32Array([0]));for(var r=this.coefficients.length,o=new Int32Array(r+t),a=0;a<r;a++)o[a]=this.field.multiply(this.coefficients[a],n);return new e(this.field,o)},e.prototype.toString=function(){for(var e=new a["a"],t=this.getDegree();t>=0;t--){var n=this.getCoefficient(t);0!==n&&(n<0?(e.append(" - "),n=-n):e.length()>0&&e.append(" + "),0!==t&&1===n||e.append(n),0!==t&&(1===t?e.append("x"):(e.append("x^"),e.append(t))))}return e.toString()},e}(),u=l,c=n("ab5b"),f=n("8635"),d=function(){function e(){}return e.prototype.add=function(e,t){return(e+t)%this.modulus},e.prototype.subtract=function(e,t){return(this.modulus+e-t)%this.modulus},e.prototype.exp=function(e){return this.expTable[e]},e.prototype.log=function(e){if(0===e)throw new i["a"];return this.logTable[e]},e.prototype.inverse=function(e){if(0===e)throw new f["a"];return this.expTable[this.modulus-this.logTable[e]-1]},e.prototype.multiply=function(e,t){return 0===e||0===t?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.modulus-1)]},e.prototype.getSize=function(){return this.modulus},e.prototype.equals=function(e){return e===this},e}(),h=d,p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(e){function t(t,n){var r=e.call(this)||this;r.modulus=t,r.expTable=new Int32Array(t),r.logTable=new Int32Array(t);for(var i=1,o=0;o<t;o++)r.expTable[o]=i,i=i*n%t;for(o=0;o<t-1;o++)r.logTable[r.expTable[o]]=o;return r.zero=new u(r,new Int32Array([0])),r.one=new u(r,new Int32Array([1])),r}return p(t,e),t.prototype.getZero=function(){return this.zero},t.prototype.getOne=function(){return this.one},t.prototype.buildMonomial=function(e,t){if(e<0)throw new i["a"];if(0===t)return this.zero;var n=new Int32Array(e+1);return n[0]=t,new u(this,n)},t.PDF417_GF=new t(c["a"].NUMBER_OF_CODEWORDS,3),t}(h),g=m,v=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(){function e(){this.field=g.PDF417_GF}return e.prototype.decode=function(e,t,n){for(var i,o,a=new u(this.field,e),s=new Int32Array(t),l=!1,c=t;c>0;c--){var f=a.evaluateAt(this.field.exp(c));s[t-c]=f,0!==f&&(l=!0)}if(!l)return 0;var d=this.field.getOne();if(null!=n)try{for(var h=v(n),p=h.next();!p.done;p=h.next()){var m=p.value,g=this.field.exp(e.length-1-m),b=new u(this.field,new Int32Array([this.field.subtract(0,g),1]));d=d.multiply(b)}}catch(D){i={error:D}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}var y=new u(this.field,s),w=this.runEuclideanAlgorithm(this.field.buildMonomial(t,1),y,t),_=w[0],C=w[1],x=this.findErrorLocations(_),S=this.findErrorMagnitudes(C,_,x);for(c=0;c<x.length;c++){var k=e.length-1-this.field.log(x[c]);if(k<0)throw r["a"].getChecksumInstance();e[k]=this.field.subtract(e[k],S[c])}return x.length},e.prototype.runEuclideanAlgorithm=function(e,t,n){if(e.getDegree()<t.getDegree()){var i=e;e=t,t=i}var o=e,a=t,s=this.field.getZero(),l=this.field.getOne();while(a.getDegree()>=Math.round(n/2)){var u=o,c=s;if(o=a,s=l,o.isZero())throw r["a"].getChecksumInstance();a=u;var f=this.field.getZero(),d=o.getCoefficient(o.getDegree()),h=this.field.inverse(d);while(a.getDegree()>=o.getDegree()&&!a.isZero()){var p=a.getDegree()-o.getDegree(),m=this.field.multiply(a.getCoefficient(a.getDegree()),h);f=f.add(this.field.buildMonomial(p,m)),a=a.subtract(o.multiplyByMonomial(p,m))}l=f.multiply(s).subtract(c).negative()}var g=l.getCoefficient(0);if(0===g)throw r["a"].getChecksumInstance();var v=this.field.inverse(g),b=l.multiply(v),y=a.multiply(v);return[b,y]},e.prototype.findErrorLocations=function(e){for(var t=e.getDegree(),n=new Int32Array(t),i=0,o=1;o<this.field.getSize()&&i<t;o++)0===e.evaluateAt(o)&&(n[i]=this.field.inverse(o),i++);if(i!==t)throw r["a"].getChecksumInstance();return n},e.prototype.findErrorMagnitudes=function(e,t,n){for(var r=t.getDegree(),i=new Int32Array(r),o=1;o<=r;o++)i[r-o]=this.field.multiply(o,t.getCoefficient(o));var a=new u(this.field,i),s=n.length,l=new Int32Array(s);for(o=0;o<s;o++){var c=this.field.inverse(n[o]),f=this.field.subtract(0,e.evaluateAt(c)),d=this.field.inverse(a.evaluateAt(c));l[o]=this.field.multiply(f,d)}return l},e}();t["a"]=b},"3c11":function(e,t,n){"use strict";var r=n("63b6"),i=n("584a"),o=n("e53d"),a=n("f201"),s=n("cd78");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},"3c41":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=0,n=function(e){var n=new Date,r=n.getTime(),i=Math.floor(1e9*Math.random());return t++,e+"_"+i+t+String(r)},r=function(e,t){var n='<table data-mce-id="mce" style="width: 100%">';n+="<tbody>";for(var r=0;r<t;r++){n+="<tr>";for(var i=0;i<e;i++)n+="<td><br></td>";n+="</tr>"}return n+="</tbody>",n+="</table>",n},i=function(e){var t=e.dom.select("*[data-mce-id]");return t[0]},o=function(e,t,n){e.undoManager.transact((function(){e.insertContent(r(t,n));var o=i(e);o.removeAttribute("data-mce-id");var a=e.dom.select("td,th",o);e.selection.setCursorLocation(a[0],0)}))},a=function(e,t,n){e.plugins.table?e.plugins.table.insertTable(t,n):o(e,t,n)},s=function(e,t,r){var i=e.editorUpload.blobCache,o=i.create(n("mceu"),r,t);i.add(o),e.insertContent(e.dom.createHTML("img",{src:o.blobUri()}))},l=tinymce.util.Tools.resolve("tinymce.util.Promise"),u=function(e){return new l((function(t){var n=new FileReader;n.onloadend=function(){t(n.result.split(",")[1])},n.readAsDataURL(e)}))},c=tinymce.util.Tools.resolve("tinymce.Env"),f=tinymce.util.Tools.resolve("tinymce.util.Delay"),d=function(e){return new l((function(t){var n=document.createElement("input");n.type="file",n.accept="image/*",n.style.position="fixed",n.style.left="0",n.style.top="0",n.style.opacity="0.001",document.body.appendChild(n);var r=function(e){t(Array.prototype.slice.call(e.target.files))};n.addEventListener("change",r);var i=function(r){var o=function(){t([]),n.parentNode.removeChild(n)};c.os.isAndroid()&&"remove"!==r.type?f.setEditorTimeout(e,o,0):o(),e.off("focusin remove",i)};e.on("focusin remove",i),n.click()}))},h=function(e){e.ui.registry.addButton("quickimage",{icon:"image",tooltip:"Insert image",onAction:function(){d(e).then((function(t){if(t.length>0){var n=t[0];u(n).then((function(t){s(e,t,n)}))}}))}}),e.ui.registry.addButton("quicktable",{icon:"table",tooltip:"Insert table",onAction:function(){a(e,2,2)}})},p=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},m=function(e){return function(t){return p(t)===e}},g=function(e){return function(t){return typeof t===e}},v=function(e){return function(t){return e===t}},b=m("string"),y=m("object"),w=m("array"),_=g("boolean"),C=v(void 0),x=g("function"),S=function(){},k=function(e){return function(){return e}},D=function(e){return e},O=k(!1),T=k(!0),E=function(){return I},I=function(){var e=function(e){return e()},t=D,n={fold:function(e,t){return e()},isSome:O,isNone:T,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:k(null),getOrUndefined:k(void 0),or:t,orThunk:e,map:E,each:S,bind:E,exists:O,forall:T,filter:function(){return E()},toArray:function(){return[]},toString:k("none()")};return n}(),N=function(e){var t=k(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:T,isNone:O,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return N(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:I},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},A=function(e){return null===e||void 0===e?I:N(e)},P={some:N,none:E,from:A};function M(e,t,n,r,i){return e(n,r)?P.some(n):x(i)&&i(n)?P.none():t(n,r,i)}var R=1,F=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return $(r.childNodes[0])},B=function(e,t){var n=t||document,r=n.createElement(e);return $(r)},L=function(e,t){var n=t||document,r=n.createTextNode(e);return $(r)},$=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},V=function(e,t,n){return P.from(e.dom.elementFromPoint(t,n)).map($)},j={fromHtml:F,fromTag:B,fromText:L,fromDom:$,fromPoint:V},z=function(e,t){var n=e.dom;if(n.nodeType!==R)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")};"undefined"!==typeof window?window:Function("return this;")();var H=function(e){var t=e.dom.nodeName;return t.toLowerCase()},U=function(e,t,n){var r=e.dom,i=x(n)?n:O;while(r.parentNode){r=r.parentNode;var o=j.fromDom(r);if(t(o))return P.some(o);if(i(o))break}return P.none()},W=function(e,t,n){var r=function(e,t){return t(e)};return M(r,U,e,t,n)},q=function(e,t,n){return U(e,(function(e){return z(e,t)}),n)},G=function(e,t,n){var r=function(e,t){return z(e,t)};return M(r,q,e,t,n)},Y=function(e,t){if(t(e))return!0;throw new Error("Default value doesn't match requested type.")},K=function(e,t){if(w(e)||y(e))throw new Error("expected a string but found: "+e);return C(e)?t:_(e)?!1===e?"":t:e},X=function(e){return function(t,n,r){Y(r,e);var i=t.getParam(n,r);return K(i,r)}},J=X(b),Z=function(e){return J(e,"quickbars_selection_toolbar","bold italic | quicklink h2 h3 blockquote")},Q=function(e){return J(e,"quickbars_insert_toolbar","quickimage quicktable")},ee=function(e){return J(e,"quickbars_image_toolbar","alignleft aligncenter alignright")},te=function(e){var t=Q(e);t.trim().length>0&&e.ui.registry.addContextToolbar("quickblock",{predicate:function(t){var n=j.fromDom(t),r=e.schema.getTextBlockElements(),i=function(t){return t.dom===e.getBody()};return G(n,"table",i).fold((function(){return W(n,(function(t){return H(t)in r&&e.dom.isEmpty(t.dom)}),i).isSome()}),O)},items:t,position:"line",scope:"editor"})},ne=function(e){var t=function(t){return"false"!==e.dom.getContentEditableParent(t)},n=function(e){return"IMG"===e.nodeName||"FIGURE"===e.nodeName&&/image/i.test(e.className)},r=ee(e);r.trim().length>0&&e.ui.registry.addContextToolbar("imageselection",{predicate:n,items:r,position:"node"});var i=Z(e);i.trim().length>0&&e.ui.registry.addContextToolbar("textselection",{predicate:function(r){return!n(r)&&!e.selection.isCollapsed()&&t(r)},items:i,position:"selection",scope:"editor"})};function re(){e.add("quickbars",(function(e){h(e),te(e),ne(e)}))}re()})()},"3c4e":function(e,t,n){"use strict";var r=function(e){return i(e)&&!o(e)};function i(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===s}function u(e){return Array.isArray(e)?[]:{}}function c(e,t){var n=t&&!0===t.clone;return n&&r(e)?h(u(e),e,t):e}function f(e,t,n){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=c(t,n):r(t)?i[o]=h(e[o],t,n):-1===e.indexOf(t)&&i.push(c(t,n))})),i}function d(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function(t){i[t]=c(e[t],n)})),Object.keys(t).forEach((function(o){r(t[o])&&e[o]?i[o]=h(e[o],t[o],n):i[o]=c(t[o],n)})),i}function h(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:f},a=r===i;if(a){if(r){var s=o.arrayMerge||f;return s(e,t,n)}return d(e,t,n)}return c(t,n)}h.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return h(e,n,t)}))};var p=h;e.exports=p},"3c96":function(e,t,n){"use strict";(function(e){var r=n("53ca"),i=e.localStorage;i={get length(){return e.localStorage.length},getItem:e.localStorage.getItem.bind(e.localStorage),setItem:e.localStorage.setItem.bind(e.localStorage),removeItem:e.localStorage.removeItem.bind(e.localStorage),key:e.localStorage.key.bind(e.localStorage),clear:e.localStorage.clear.bind(e.localStorage),setObject:function(e,t){return"object"!==Object(r["a"])(t)?this.setItem(e,t):this.setItem(e,JSON.stringify(t))},getObject:function(e){var t=this.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(n){return t}}},t["a"]=i}).call(this,n("c8ba"))},"3c99":function(e,t,n){},"3cb6":function(e,t){},"3d59":function(e,t,n){"use strict";var r=n("a363"),i=n("2d92"),o=n("fe96"),a=n("7978"),s=n("ca08"),l=n("2f50"),u=n("8c95"),c=n("0b81"),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.findStartPattern=function(e){for(var n=e.getSize(),r=e.getNextSet(0),i=0,o=Int32Array.from([0,0,0,0,0,0]),a=r,l=!1,u=6,f=r;f<n;f++)if(e.get(f)!==l)o[i]++;else{if(i===u-1){for(var d=t.MAX_AVG_VARIANCE,h=-1,p=t.CODE_START_A;p<=t.CODE_START_C;p++){var m=c["a"].patternMatchVariance(o,t.CODE_PATTERNS[p],t.MAX_INDIVIDUAL_VARIANCE);m<d&&(d=m,h=p)}if(h>=0&&e.isRange(Math.max(0,a-(f-a)/2),a,!1))return Int32Array.from([a,f,h]);a+=o[0]+o[1],o=o.slice(2,o.length-1),o[i-1]=0,o[i]=0,i--}else i++;o[i]=1,l=!l}throw new s["a"]},t.decodeCode=function(e,n,r){c["a"].recordPattern(e,r,n);for(var i=t.MAX_AVG_VARIANCE,o=-1,a=0;a<t.CODE_PATTERNS.length;a++){var l=t.CODE_PATTERNS[a],u=this.patternMatchVariance(n,l,t.MAX_INDIVIDUAL_VARIANCE);u<i&&(i=u,o=a)}if(o>=0)return o;throw new s["a"]},t.prototype.decodeRow=function(e,n,c){var f,d=c&&!0===c.get(o["a"].ASSUME_GS1),h=t.findStartPattern(n),p=h[2],m=0,g=new Uint8Array(20);switch(g[m++]=p,p){case t.CODE_START_A:f=t.CODE_CODE_A;break;case t.CODE_START_B:f=t.CODE_CODE_B;break;case t.CODE_START_C:f=t.CODE_CODE_C;break;default:throw new a["a"]}var v=!1,b=!1,y="",w=h[0],_=h[1],C=Int32Array.from([0,0,0,0,0,0]),x=0,S=0,k=p,D=0,O=!0,T=!1,E=!1;while(!v){var I=b;switch(b=!1,x=S,S=t.decodeCode(n,C,_),g[m++]=S,S!==t.CODE_STOP&&(O=!0),S!==t.CODE_STOP&&(D++,k+=D*S),w=_,_+=C.reduce((function(e,t){return e+t}),0),S){case t.CODE_START_A:case t.CODE_START_B:case t.CODE_START_C:throw new a["a"]}switch(f){case t.CODE_CODE_A:if(S<64)y+=E===T?String.fromCharCode(" ".charCodeAt(0)+S):String.fromCharCode(" ".charCodeAt(0)+S+128),E=!1;else if(S<96)y+=E===T?String.fromCharCode(S-64):String.fromCharCode(S+64),E=!1;else switch(S!==t.CODE_STOP&&(O=!1),S){case t.CODE_FNC_1:d&&(0===y.length?y+="]C1":y+=String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_A:!T&&E?(T=!0,E=!1):T&&E?(T=!1,E=!1):E=!0;break;case t.CODE_SHIFT:b=!0,f=t.CODE_CODE_B;break;case t.CODE_CODE_B:f=t.CODE_CODE_B;break;case t.CODE_CODE_C:f=t.CODE_CODE_C;break;case t.CODE_STOP:v=!0;break}break;case t.CODE_CODE_B:if(S<96)y+=E===T?String.fromCharCode(" ".charCodeAt(0)+S):String.fromCharCode(" ".charCodeAt(0)+S+128),E=!1;else switch(S!==t.CODE_STOP&&(O=!1),S){case t.CODE_FNC_1:d&&(0===y.length?y+="]C1":y+=String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_B:!T&&E?(T=!0,E=!1):T&&E?(T=!1,E=!1):E=!0;break;case t.CODE_SHIFT:b=!0,f=t.CODE_CODE_A;break;case t.CODE_CODE_A:f=t.CODE_CODE_A;break;case t.CODE_CODE_C:f=t.CODE_CODE_C;break;case t.CODE_STOP:v=!0;break}break;case t.CODE_CODE_C:if(S<100)S<10&&(y+="0"),y+=S;else switch(S!==t.CODE_STOP&&(O=!1),S){case t.CODE_FNC_1:d&&(0===y.length?y+="]C1":y+=String.fromCharCode(29));break;case t.CODE_CODE_A:f=t.CODE_CODE_A;break;case t.CODE_CODE_B:f=t.CODE_CODE_B;break;case t.CODE_STOP:v=!0;break}break}I&&(f=f===t.CODE_CODE_A?t.CODE_CODE_B:t.CODE_CODE_A)}var N=_-w;if(_=n.getNextUnset(_),!n.isRange(_,Math.min(n.getSize(),_+(_-w)/2),!1))throw new s["a"];if(k-=D*x,k%103!==x)throw new i["a"];var A=y.length;if(0===A)throw new s["a"];A>0&&O&&(y=f===t.CODE_CODE_C?y.substring(0,A-2):y.substring(0,A-1));for(var P=(h[1]+h[0])/2,M=w+N/2,R=g.length,F=new Uint8Array(R),B=0;B<R;B++)F[B]=g[B];var L=[new u["a"](P,e),new u["a"](M,e)];return new l["a"](y,F,0,L,r["a"].CODE_128,(new Date).getTime())},t.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],t.MAX_AVG_VARIANCE=.25,t.MAX_INDIVIDUAL_VARIANCE=.7,t.CODE_SHIFT=98,t.CODE_CODE_C=99,t.CODE_CODE_B=100,t.CODE_CODE_A=101,t.CODE_FNC_1=102,t.CODE_FNC_2=97,t.CODE_FNC_3=96,t.CODE_FNC_4_A=101,t.CODE_FNC_4_B=100,t.CODE_START_A=103,t.CODE_START_B=104,t.CODE_START_C=105,t.CODE_STOP=106,t}(c["a"]);t["a"]=d},"3f6b":function(e,t,n){e.exports={default:n("51b6"),__esModule:!0}},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},4163:function(e,t,n){"use strict";t.__esModule=!0;var r=n("8bbf"),i=a(r),o=n("eb30");function a(e){return e&&e.__esModule?e:{default:e}}var s=i.default.prototype.$isServer?function(){}:n("ddb3"),l=function(e){return e.stopPropagation()};t.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(e){this.showPopper=e,this.$emit("input",e)}},showPopper:function(e){this.disabled||(e?this.updatePopper():this.destroyPopper(),this.$emit("input",e))}},methods:{createPopper:function(){var e=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var t=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.$refs.reference.$el||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),t.placement=this.currentPlacement,t.offset=this.offset,t.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,t),this.popperJS.onCreate((function(){e.$emit("created",e),e.resetTransformOrigin(),e.$nextTick(e.updatePopper)})),"function"===typeof t.onUpdate&&this.popperJS.onUpdate(t.onUpdate),this.popperJS._popper.style.zIndex=o.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",l))}},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=o.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(e){!this.popperJS||this.showPopper&&!e||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var e={top:"bottom",bottom:"top",left:"right",right:"left"},t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],n=e[t];this.popperJS._popper.style.transformOrigin="string"===typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+n:n+" center"}},appendArrow:function(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var r=document.createElement("div");t&&r.setAttribute(t,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",e.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},4178:function(e,t,n){var r,i,o,a=n("d864"),s=n("3024"),l=n("32fc"),u=n("1ec9"),c=n("e53d"),f=c.process,d=c.setImmediate,h=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},b="onreadystatechange",y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},w=function(e){y.call(e.data)};d&&h||(d=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},h=function(e){delete v[e]},"process"==n("6b4c")(f)?r=function(e){f.nextTick(a(y,e,1))}:m&&m.now?r=function(e){m.now(a(y,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",w,!1)):r=b in u("script")?function(e){l.appendChild(u("script"))[b]=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:d,clear:h}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var r=n("3f6b"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},"41ec":function(e,t,n){},4237:function(e,t,n){n("be7f")},"43fc":function(e,t,n){"use strict";var r=n("63b6"),i=n("656e"),o=n("4439");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},4439:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47d1":function(e,t,n){"use strict";t.__esModule=!0;var r=n("1098"),i=a(r);t.isVNode=s;var o=n("bf32");function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":(0,i.default)(e))&&(0,o.hasOwn)(e,"componentOptions")}},"47ee":function(e,t,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,u=0;while(s.length>u)l.call(e,a=s[u++])&&t.push(a)}return t}},"481b":function(e,t){e.exports={}},4849:function(e,t,n){e.exports={default:n("454f"),__esModule:!0}},4873:function(e,t,n){"use strict";n("67d3")},4917:function(e,t,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),a=n("5f1b");n("214f")("match",1,(function(e,t,n,s){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=r(e),u=String(this);if(!l.global)return a(l,u);var c=l.unicode;l.lastIndex=0;var f,d=[],h=0;while(null!==(f=a(l,u))){var p=String(f[0]);d[h]=p,""===p&&(l.lastIndex=o(u,i(l.lastIndex),c)),h++}return 0===h?null:d}]}))},4986:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.kind="WriterException",t}(r["a"]);t["a"]=o},"4a59":function(e,t,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),l=n("27ee"),u={},c={};t=e.exports=function(e,t,n,f,d){var h,p,m,g,v=d?function(){return e}:l(e),b=r(n,f,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(h=s(e.length);h>y;y++)if(g=t?b(a(p=e[y])[0],p[1]):b(e[y]),g===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if(g=i(m,b,p.value,t),g===u||g===c)return g};t.BREAK=u,t.RETURN=c},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4c35":function(e,t,n){"use strict";(function(e){var r,i,o=n("7978"),a=n("67f0"),s=n("a652"),l=n("a593"),u=n("cb12"),c=n("6530"),f=n("ea29"),d=n("7df9"),h=n("d96f"),p=n("78c7");function m(){if("undefined"!==typeof window)return window["BigInt"]||null;if("undefined"!==typeof e)return e["BigInt"]||null;if("undefined"!==typeof self)return self["BigInt"]||null;throw new Error("Can't search globals for BigInt!")}function g(e){if("undefined"===typeof i&&(i=m()),null===i)throw new Error("BigInt is not supported!");return i(e)}function v(){var e=[];e[0]=g(1);var t=g(900);e[1]=t;for(var n=2;n<16;n++)e[n]=e[n-1]*t;return e}(function(e){e[e["ALPHA"]=0]="ALPHA",e[e["LOWER"]=1]="LOWER",e[e["MIXED"]=2]="MIXED",e[e["PUNCT"]=3]="PUNCT",e[e["ALPHA_SHIFT"]=4]="ALPHA_SHIFT",e[e["PUNCT_SHIFT"]=5]="PUNCT_SHIFT"})(r||(r={}));var b=function(){function e(){}return e.decode=function(t,n){var r=new c["a"](""),i=a["a"].ISO8859_1;r.enableDecoding(i);var u=1,f=t[u++],d=new l["a"];while(u<t[0]){switch(f){case e.TEXT_COMPACTION_MODE_LATCH:u=e.textCompaction(t,u,r);break;case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:u=e.byteCompaction(f,t,i,u,r);break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(t[u++]);break;case e.NUMERIC_COMPACTION_MODE_LATCH:u=e.numericCompaction(t,u,r);break;case e.ECI_CHARSET:a["a"].getCharacterSetECIByValue(t[u++]);break;case e.ECI_GENERAL_PURPOSE:u+=2;break;case e.ECI_USER_DEFINED:u++;break;case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:u=e.decodeMacroBlock(t,u,d);break;case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:throw new o["a"];default:u--,u=e.textCompaction(t,u,r);break}if(!(u<t.length))throw o["a"].getFormatInstance();f=t[u++]}if(0===r.length())throw o["a"].getFormatInstance();var h=new s["a"](null,r.toString(),null,n);return h.setOther(d),h},e.decodeMacroBlock=function(t,n,r){if(n+e.NUMBER_OF_SEQUENCE_CODEWORDS>t[0])throw o["a"].getFormatInstance();for(var i=new Int32Array(e.NUMBER_OF_SEQUENCE_CODEWORDS),a=0;a<e.NUMBER_OF_SEQUENCE_CODEWORDS;a++,n++)i[a]=t[n];r.setSegmentIndex(f["a"].parseInt(e.decodeBase900toBase10(i,e.NUMBER_OF_SEQUENCE_CODEWORDS)));var s=new c["a"];n=e.textCompaction(t,n,s),r.setFileId(s.toString());var l=-1;t[n]===e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(l=n+1);while(n<t[0])switch(t[n]){case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(n++,t[n]){case e.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:var h=new c["a"];n=e.textCompaction(t,n+1,h),r.setFileName(h.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var p=new c["a"];n=e.textCompaction(t,n+1,p),r.setSender(p.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var m=new c["a"];n=e.textCompaction(t,n+1,m),r.setAddressee(m.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var g=new c["a"];n=e.numericCompaction(t,n+1,g),r.setSegmentCount(f["a"].parseInt(g.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var v=new c["a"];n=e.numericCompaction(t,n+1,v),r.setTimestamp(d["a"].parseLong(v.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var b=new c["a"];n=e.numericCompaction(t,n+1,b),r.setChecksum(f["a"].parseInt(b.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var y=new c["a"];n=e.numericCompaction(t,n+1,y),r.setFileSize(d["a"].parseLong(y.toString()));break;default:throw o["a"].getFormatInstance()}break;case e.MACRO_PDF417_TERMINATOR:n++,r.setLastSegment(!0);break;default:throw o["a"].getFormatInstance()}if(-1!==l){var w=n-l;r.isLastSegment()&&w--,r.setOptionalData(u["a"].copyOfRange(t,l,l+w))}return n},e.textCompaction=function(t,n,r){var i=new Int32Array(2*(t[0]-n)),o=new Int32Array(2*(t[0]-n)),a=0,s=!1;while(n<t[0]&&!s){var l=t[n++];if(l<e.TEXT_COMPACTION_MODE_LATCH)i[a]=l/30,i[a+1]=l%30,a+=2;else switch(l){case e.TEXT_COMPACTION_MODE_LATCH:i[a++]=e.TEXT_COMPACTION_MODE_LATCH;break;case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:n--,s=!0;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i[a]=e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,l=t[n++],o[a]=l,a++;break}}return e.decodeTextCompaction(i,o,a,r),n},e.decodeTextCompaction=function(t,n,i,o){var a=r.ALPHA,s=r.ALPHA,l=0;while(l<i){var u=t[l],c="";switch(a){case r.ALPHA:if(u<26)c=String.fromCharCode(65+u);else switch(u){case 26:c=" ";break;case e.LL:a=r.LOWER;break;case e.ML:a=r.MIXED;break;case e.PS:s=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break;case r.LOWER:if(u<26)c=String.fromCharCode(97+u);else switch(u){case 26:c=" ";break;case e.AS:s=a,a=r.ALPHA_SHIFT;break;case e.ML:a=r.MIXED;break;case e.PS:s=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break;case r.MIXED:if(u<e.PL)c=e.MIXED_CHARS[u];else switch(u){case e.PL:a=r.PUNCT;break;case 26:c=" ";break;case e.LL:a=r.LOWER;break;case e.AL:a=r.ALPHA;break;case e.PS:s=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break;case r.PUNCT:if(u<e.PAL)c=e.PUNCT_CHARS[u];else switch(u){case e.PAL:a=r.ALPHA;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break;case r.ALPHA_SHIFT:if(a=s,u<26)c=String.fromCharCode(65+u);else switch(u){case 26:c=" ";break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break;case r.PUNCT_SHIFT:if(a=s,u<e.PAL)c=e.PUNCT_CHARS[u];else switch(u){case e.PAL:a=r.ALPHA;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA;break}break}""!==c&&o.append(c),l++}},e.byteCompaction=function(t,n,r,i,o){var a=new h["a"],s=0,l=0,u=!1;switch(t){case e.BYTE_COMPACTION_MODE_LATCH:var c=new Int32Array(6),f=n[i++];while(i<n[0]&&!u)switch(c[s++]=f,l=900*l+f,f=n[i++],f){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:i--,u=!0;break;default:if(s%5===0&&s>0){for(var d=0;d<6;++d)a.write(Number(g(l)>>g(8*(5-d))));l=0,s=0}break}i===n[0]&&f<e.TEXT_COMPACTION_MODE_LATCH&&(c[s++]=f);for(var m=0;m<s;m++)a.write(c[m]);break;case e.BYTE_COMPACTION_MODE_LATCH_6:while(i<n[0]&&!u){var v=n[i++];if(v<e.TEXT_COMPACTION_MODE_LATCH)s++,l=900*l+v;else switch(v){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:i--,u=!0;break}if(s%5===0&&s>0){for(d=0;d<6;++d)a.write(Number(g(l)>>g(8*(5-d))));l=0,s=0}}break}return o.append(p["a"].decode(a.toByteArray(),r)),i},e.numericCompaction=function(t,n,r){var i=0,o=!1,a=new Int32Array(e.MAX_NUMERIC_CODEWORDS);while(n<t[0]&&!o){var s=t[n++];if(n===t[0]&&(o=!0),s<e.TEXT_COMPACTION_MODE_LATCH)a[i]=s,i++;else switch(s){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:n--,o=!0;break}(i%e.MAX_NUMERIC_CODEWORDS===0||s===e.NUMERIC_COMPACTION_MODE_LATCH||o)&&i>0&&(r.append(e.decodeBase900toBase10(a,i)),i=0)}return n},e.decodeBase900toBase10=function(t,n){for(var r=g(0),i=0;i<n;i++)r+=e.EXP900[n-i-1]*g(t[i]);var a=r.toString();if("1"!==a.charAt(0))throw new o["a"];return a.substring(1)},e.TEXT_COMPACTION_MODE_LATCH=900,e.BYTE_COMPACTION_MODE_LATCH=901,e.NUMERIC_COMPACTION_MODE_LATCH=902,e.BYTE_COMPACTION_MODE_LATCH_6=924,e.ECI_USER_DEFINED=925,e.ECI_GENERAL_PURPOSE=926,e.ECI_CHARSET=927,e.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,e.MACRO_PDF417_TERMINATOR=922,e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,e.MAX_NUMERIC_CODEWORDS=15,e.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,e.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,e.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,e.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,e.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,e.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,e.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,e.PL=25,e.LL=27,e.AS=27,e.ML=28,e.AL=28,e.PS=29,e.PAL=29,e.PUNCT_CHARS=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",e.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",e.EXP900=m()?v():[],e.NUMBER_OF_SEQUENCE_CODEWORDS=2,e}();t["a"]=b}).call(this,n("c8ba"))},"4c95":function(e,t,n){"use strict";var r=n("e53d"),i=n("584a"),o=n("d9f6"),a=n("8e60"),s=n("5168")("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},"4dc9":function(e,t,n){n("5737"),e.exports=n("584a").Number.isNaN},"4ea8":function(e,t,n){n("cdd9")},"4ee1":function(e,t,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},"4f55":function(e,t,n){"use strict";var r=n("ca08"),i=function(){function e(){}return e.checkAndNudgePoints=function(e,t){for(var n=e.getWidth(),i=e.getHeight(),o=!0,a=0;a<t.length&&o;a+=2){var s=Math.floor(t[a]),l=Math.floor(t[a+1]);if(s<-1||s>n||l<-1||l>i)throw new r["a"];o=!1,-1===s?(t[a]=0,o=!0):s===n&&(t[a]=n-1,o=!0),-1===l?(t[a+1]=0,o=!0):l===i&&(t[a+1]=i-1,o=!0)}o=!0;for(a=t.length-2;a>=0&&o;a-=2){s=Math.floor(t[a]),l=Math.floor(t[a+1]);if(s<-1||s>n||l<-1||l>i)throw new r["a"];o=!1,-1===s?(t[a]=0,o=!0):s===n&&(t[a]=n-1,o=!0),-1===l?(t[a+1]=0,o=!0):l===i&&(t[a+1]=i-1,o=!0)}},e}();t["a"]=i},"4f7f":function(e,t,n){"use strict";var r=n("c26b"),i=n("b39a"),o="Set";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},"4fcb":function(e,t,n){var r=n("63b6"),i=n("10ff");r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},5035:function(e,t,n){"use strict";var r=n("6099"),i=n("67f0"),o=n("a652"),a=n("f823"),s=n("7978"),l=n("6530"),u=n("78c7"),c=n("7288"),f=function(){function e(){}return e.decode=function(t,n,a,u){var f=new r["a"](t),d=new l["a"],h=new Array,p=-1,m=-1;try{var g=null,v=!1,b=void 0;do{if(f.available()<4)b=c["a"].TERMINATOR;else{var y=f.readBits(4);b=c["a"].forBits(y)}switch(b){case c["a"].TERMINATOR:break;case c["a"].FNC1_FIRST_POSITION:case c["a"].FNC1_SECOND_POSITION:v=!0;break;case c["a"].STRUCTURED_APPEND:if(f.available()<16)throw new s["a"];p=f.readBits(8),m=f.readBits(8);break;case c["a"].ECI:var w=e.parseECIValue(f);if(g=i["a"].getCharacterSetECIByValue(w),null===g)throw new s["a"];break;case c["a"].HANZI:var _=f.readBits(4),C=f.readBits(b.getCharacterCountBits(n));_===e.GB2312_SUBSET&&e.decodeHanziSegment(f,d,C);break;default:var x=f.readBits(b.getCharacterCountBits(n));switch(b){case c["a"].NUMERIC:e.decodeNumericSegment(f,d,x);break;case c["a"].ALPHANUMERIC:e.decodeAlphanumericSegment(f,d,x,v);break;case c["a"].BYTE:e.decodeByteSegment(f,d,x,g,h,u);break;case c["a"].KANJI:e.decodeKanjiSegment(f,d,x);break;default:throw new s["a"]}break}}while(b!==c["a"].TERMINATOR)}catch(S){throw new s["a"]}return new o["a"](t,d.toString(),0===h.length?null:h,null===a?null:a.toString(),p,m)},e.decodeHanziSegment=function(e,t,n){if(13*n>e.available())throw new s["a"];var r=new Uint8Array(2*n),i=0;while(n>0){var o=e.readBits(13),l=o/96<<8&4294967295|o%96;l+=l<959?41377:42657,r[i]=l>>8&255,r[i+1]=255&l,i+=2,n--}try{t.append(u["a"].decode(r,a["a"].GB2312))}catch(c){throw new s["a"](c)}},e.decodeKanjiSegment=function(e,t,n){if(13*n>e.available())throw new s["a"];var r=new Uint8Array(2*n),i=0;while(n>0){var o=e.readBits(13),l=o/192<<8&4294967295|o%192;l+=l<7936?33088:49472,r[i]=l>>8,r[i+1]=l,i+=2,n--}try{t.append(u["a"].decode(r,a["a"].SHIFT_JIS))}catch(c){throw new s["a"](c)}},e.decodeByteSegment=function(e,t,n,r,i,o){if(8*n>e.available())throw new s["a"];for(var l,c=new Uint8Array(n),f=0;f<n;f++)c[f]=e.readBits(8);l=null===r?a["a"].guessEncoding(c,o):r.getName();try{t.append(u["a"].decode(c,l))}catch(d){throw new s["a"](d)}i.push(c)},e.toAlphaNumericChar=function(t){if(t>=e.ALPHANUMERIC_CHARS.length)throw new s["a"];return e.ALPHANUMERIC_CHARS[t]},e.decodeAlphanumericSegment=function(t,n,r,i){var o=n.length();while(r>1){if(t.available()<11)throw new s["a"];var a=t.readBits(11);n.append(e.toAlphaNumericChar(Math.floor(a/45))),n.append(e.toAlphaNumericChar(a%45)),r-=2}if(1===r){if(t.available()<6)throw new s["a"];n.append(e.toAlphaNumericChar(t.readBits(6)))}if(i)for(var l=o;l<n.length();l++)"%"===n.charAt(l)&&(l<n.length()-1&&"%"===n.charAt(l+1)?n.deleteCharAt(l+1):n.setCharAt(l,String.fromCharCode(29)))},e.decodeNumericSegment=function(t,n,r){while(r>=3){if(t.available()<10)throw new s["a"];var i=t.readBits(10);if(i>=1e3)throw new s["a"];n.append(e.toAlphaNumericChar(Math.floor(i/100))),n.append(e.toAlphaNumericChar(Math.floor(i/10)%10)),n.append(e.toAlphaNumericChar(i%10)),r-=3}if(2===r){if(t.available()<7)throw new s["a"];var o=t.readBits(7);if(o>=100)throw new s["a"];n.append(e.toAlphaNumericChar(Math.floor(o/10))),n.append(e.toAlphaNumericChar(o%10))}else if(1===r){if(t.available()<4)throw new s["a"];var a=t.readBits(4);if(a>=10)throw new s["a"];n.append(e.toAlphaNumericChar(a))}},e.parseECIValue=function(e){var t=e.readBits(8);if(0===(128&t))return 127&t;if(128===(192&t)){var n=e.readBits(8);return(63&t)<<8&4294967295|n}if(192===(224&t)){var r=e.readBits(16);return(31&t)<<16&4294967295|r}throw new s["a"]},e.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.GB2312_SUBSET=1,e}();t["a"]=f},5082:function(e,t){var n=Object.prototype.hasOwnProperty,r={},i={};function o(){var e=0;for(var t in r)e++;return e}var a=e.exports={length:o(),getItem:function(e){return n.call(r,e)?r[e]:null},setItem:function(e,t){e in i||(r[e]=t),a.length=o()},removeItem:function(e){delete r[e],a.length=o()},clear:function(){r={},a.length=0},supported:!0}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5134:function(e,t,n){"use strict";var r,i=n("f8c0"),o=n("f0a7");(function(e){e[e["L"]=0]="L",e[e["M"]=1]="M",e[e["Q"]=2]="Q",e[e["H"]=3]="H"})(r||(r={}));var a=function(){function e(t,n,r){this.value=t,this.stringValue=n,this.bits=r,e.FOR_BITS.set(r,this),e.FOR_VALUE.set(t,this)}return e.prototype.getValue=function(){return this.value},e.prototype.getBits=function(){return this.bits},e.fromString=function(t){switch(t){case"L":return e.L;case"M":return e.M;case"Q":return e.Q;case"H":return e.H;default:throw new i["a"](t+"not available")}},e.prototype.toString=function(){return this.stringValue},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.value===n.value},e.forBits=function(t){if(t<0||t>=e.FOR_BITS.size)throw new o["a"];return e.FOR_BITS.get(t)},e.FOR_BITS=new Map,e.FOR_VALUE=new Map,e.L=new e(r.L,"L",1),e.M=new e(r.M,"M",0),e.Q=new e(r.Q,"Q",3),e.H=new e(r.H,"H",2),e}();t["a"]=a},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),u=void 0!==/()??/.exec("")[1],c=l||u;c&&(a=function(e){var t,n,a,c,f=this;return u&&(n=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),l&&(t=f[s]),a=i.call(f,e),l&&a&&(f[s]=f.global?a.index+a[0].length:t),u&&a&&a.length>1&&o.call(a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a}),e.exports=a},"522e":function(e,t,n){var r=n("f772"),i=n("ebfd").onFreeze;n("ce7e")("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"52fc":function(e,t,n){},"53ca":function(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,"a",(function(){return r}))},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"547e":function(e,t,n){"use strict";var r=n("a7f2"),i=n("f6ed"),o=n("ea29"),a=n("f0a7"),s=n("8635"),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(e){function t(t,n,i){var o=e.call(this)||this;o.primitive=t,o.size=n,o.generatorBase=i;for(var a=new Int32Array(n),s=1,l=0;l<n;l++)a[l]=s,s*=2,s>=n&&(s^=t,s&=n-1);o.expTable=a;var u=new Int32Array(n);for(l=0;l<n-1;l++)u[a[l]]=l;return o.logTable=u,o.zero=new r["a"](o,Int32Array.from([0])),o.one=new r["a"](o,Int32Array.from([1])),o}return l(t,e),t.prototype.getZero=function(){return this.zero},t.prototype.getOne=function(){return this.one},t.prototype.buildMonomial=function(e,t){if(e<0)throw new a["a"];if(0===t)return this.zero;var n=new Int32Array(e+1);return n[0]=t,new r["a"](this,n)},t.prototype.inverse=function(e){if(0===e)throw new s["a"];return this.expTable[this.size-this.logTable[e]-1]},t.prototype.multiply=function(e,t){return 0===e||0===t?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.size-1)]},t.prototype.getSize=function(){return this.size},t.prototype.getGeneratorBase=function(){return this.generatorBase},t.prototype.toString=function(){return"GF(0x"+o["a"].toHexString(this.primitive)+","+this.size+")"},t.prototype.equals=function(e){return e===this},t.AZTEC_DATA_12=new t(4201,4096,1),t.AZTEC_DATA_10=new t(1033,1024,1),t.AZTEC_DATA_6=new t(67,64,1),t.AZTEC_PARAM=new t(19,16,1),t.QR_CODE_FIELD_256=new t(285,256,0),t.DATA_MATRIX_FIELD_256=new t(301,256,1),t.AZTEC_DATA_8=t.DATA_MATRIX_FIELD_256,t.MAXICODE_FIELD_64=t.AZTEC_DATA_6,t}(i["a"]);t["a"]=u},"551c":function(e,t,n){"use strict";var r,i,o,a,s=n("2d00"),l=n("7726"),u=n("9b43"),c=n("23c6"),f=n("5ca1"),d=n("d3f4"),h=n("d8e8"),p=n("f605"),m=n("4a59"),g=n("ebd6"),v=n("1991").set,b=n("8079")(),y=n("a5b8"),w=n("9c80"),_=n("a25f"),C=n("bcaa"),x="Promise",S=l.TypeError,k=l.process,D=k&&k.versions,O=D&&D.v8||"",T=l[x],E="process"==c(k),I=function(){},N=i=y.f,A=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[n("2b4c")("species")]=function(e){e(I,I)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(I)instanceof t&&0!==O.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(r){}}(),P=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var n=e._c;b((function(){var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(i||(2==e._h&&B(e),e._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),a=!0)),n===t.promise?u(S("Promise-chain cycle")):(o=P(n))?o.call(n,l,u):l(n)):u(r)}catch(f){c&&!a&&c.exit(),u(f)}};while(n.length>o)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&R(e)}))}},R=function(e){v.call(l,(function(){var t,n,r,i=e._v,o=F(e);if(o&&(t=w((function(){E?k.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=E||F(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},F=function(e){return 1!==e._h&&0===(e._a||e._c).length},B=function(e){v.call(l,(function(){var t;E?k.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},L=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},$=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=P(e))?b((function(){var r={_w:n,_d:!1};try{t.call(e,u($,r,1),u(L,r,1))}catch(i){L.call(r,i)}})):(n._v=e,n._s=1,M(n,!1))}catch(r){L.call({_w:n,_d:!1},r)}}};A||(T=function(e){p(this,T,x,"_h"),h(e),r.call(this);try{e(u($,this,1),u(L,this,1))}catch(t){L.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(T.prototype,{then:function(e,t){var n=N(g(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=E?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u($,e,1),this.reject=u(L,e,1)},y.f=N=function(e){return e===T||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!A,{Promise:T}),n("7f20")(T,x),n("7a56")(x),a=n("8378")[x],f(f.S+f.F*!A,x,{reject:function(e){var t=N(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(s||!A),x,{resolve:function(e){return C(s&&this===a?T:this,e)}}),f(f.S+f.F*!(A&&n("5cc5")((function(e){T.all(e)["catch"](I)}))),x,{all:function(e){var t=this,n=N(t),r=n.resolve,i=n.reject,o=w((function(){var n=[],o=0,a=1;m(e,!1,(function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=N(t),r=n.reject,i=w((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"55dd":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),a=n("79e5"),s=[].sort,l=[1,2,3];r(r.P+r.F*(a((function(){l.sort(void 0)}))||!a((function(){l.sort(null)}))||!n("2f21")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},5622:function(e,t,n){"use strict";var r=function(){function e(e){this.source=e}return e.prototype.getLuminanceSource=function(){return this.source},e.prototype.getWidth=function(){return this.source.getWidth()},e.prototype.getHeight=function(){return this.source.getHeight()},e}();t["a"]=r},5641:function(e,t,n){"use strict";var r=n("bd7a"),i=n("2011"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(e){function t(t){var n=e.call(this,t)||this;return n.matrix=null,n}return o(t,e),t.prototype.getBlackMatrix=function(){if(null!==this.matrix)return this.matrix;var n=this.getLuminanceSource(),r=n.getWidth(),o=n.getHeight();if(r>=t.MINIMUM_DIMENSION&&o>=t.MINIMUM_DIMENSION){var a=n.getMatrix(),s=r>>t.BLOCK_SIZE_POWER;0!==(r&t.BLOCK_SIZE_MASK)&&s++;var l=o>>t.BLOCK_SIZE_POWER;0!==(o&t.BLOCK_SIZE_MASK)&&l++;var u=t.calculateBlackPoints(a,s,l,r,o),c=new i["a"](r,o);t.calculateThresholdForBlock(a,s,l,r,o,u,c),this.matrix=c}else this.matrix=e.prototype.getBlackMatrix.call(this);return this.matrix},t.prototype.createBinarizer=function(e){return new t(e)},t.calculateThresholdForBlock=function(e,n,r,i,o,a,s){for(var l=o-t.BLOCK_SIZE,u=i-t.BLOCK_SIZE,c=0;c<r;c++){var f=c<<t.BLOCK_SIZE_POWER;f>l&&(f=l);for(var d=t.cap(c,2,r-3),h=0;h<n;h++){var p=h<<t.BLOCK_SIZE_POWER;p>u&&(p=u);for(var m=t.cap(h,2,n-3),g=0,v=-2;v<=2;v++){var b=a[d+v];g+=b[m-2]+b[m-1]+b[m]+b[m+1]+b[m+2]}var y=g/25;t.thresholdBlock(e,p,f,y,i,s)}}},t.cap=function(e,t,n){return e<t?t:e>n?n:e},t.thresholdBlock=function(e,n,r,i,o,a){for(var s=0,l=r*o+n;s<t.BLOCK_SIZE;s++,l+=o)for(var u=0;u<t.BLOCK_SIZE;u++)(255&e[l+u])<=i&&a.set(n+u,r+s)},t.calculateBlackPoints=function(e,n,r,i,o){for(var a=o-t.BLOCK_SIZE,s=i-t.BLOCK_SIZE,l=new Array(r),u=0;u<r;u++){l[u]=new Int32Array(n);var c=u<<t.BLOCK_SIZE_POWER;c>a&&(c=a);for(var f=0;f<n;f++){var d=f<<t.BLOCK_SIZE_POWER;d>s&&(d=s);for(var h=0,p=255,m=0,g=0,v=c*i+d;g<t.BLOCK_SIZE;g++,v+=i){for(var b=0;b<t.BLOCK_SIZE;b++){var y=255&e[v+b];h+=y,y<p&&(p=y),y>m&&(m=y)}if(m-p>t.MIN_DYNAMIC_RANGE)for(g++,v+=i;g<t.BLOCK_SIZE;g++,v+=i)for(b=0;b<t.BLOCK_SIZE;b++)h+=255&e[v+b]}var w=h>>2*t.BLOCK_SIZE_POWER;if(m-p<=t.MIN_DYNAMIC_RANGE&&(w=p/2,u>0&&f>0)){var _=(l[u-1][f]+2*l[u][f-1]+l[u-1][f-1])/4;p<_&&(w=_)}l[u][f]=w}}return l},t.BLOCK_SIZE_POWER=3,t.BLOCK_SIZE=1<<t.BLOCK_SIZE_POWER,t.BLOCK_SIZE_MASK=t.BLOCK_SIZE-1,t.MINIMUM_DIMENSION=5*t.BLOCK_SIZE,t.MIN_DYNAMIC_RANGE=24,t}(r["a"]);t["a"]=a},5737:function(e,t,n){var r=n("63b6");r(r.S,"Number",{isNaN:function(e){return e!=e}})},"57ba":function(e,t,n){"use strict";t.__esModule=!0;var r=n("4849"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},"57fd":function(e,t,n){"use strict";var r=n("f0a7"),i=function(){function e(e){if(this.binarizer=e,null===e)throw new r["a"]("Binarizer must be non-null.")}return e.prototype.getWidth=function(){return this.binarizer.getWidth()},e.prototype.getHeight=function(){return this.binarizer.getHeight()},e.prototype.getBlackRow=function(e,t){return this.binarizer.getBlackRow(e,t)},e.prototype.getBlackMatrix=function(){return null!==this.matrix&&void 0!==this.matrix||(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},e.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},e.prototype.crop=function(t,n,r,i){var o=this.binarizer.getLuminanceSource().crop(t,n,r,i);return new e(this.binarizer.createBinarizer(o))},e.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},e.prototype.rotateCounterClockwise=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new e(this.binarizer.createBinarizer(t))},e.prototype.rotateCounterClockwise45=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new e(this.binarizer.createBinarizer(t))},e.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch(e){return""}},e}();t["a"]=i},"584a":function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"597f":function(e,t){e.exports=function(e,t,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}function c(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>e?u():!0!==t&&(i=setTimeout(r?c:u,void 0===r?e-s:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},"5b35":function(e,t,n){"use strict";n("9d99")},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},"5c4f":function(e,t,n){"use strict";t.__esModule=!0;var r=n("1098"),i=s(r),o=n("d192"),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}var l=l||{},u=void 0;l.Dialog=function(e,t,n){var r=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"===typeof t?this.focusAfterClosed=document.getElementById(t):"object"===("undefined"===typeof t?"undefined":(0,i.default)(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"===typeof n?this.focusFirst=document.getElementById(n):"object"===("undefined"===typeof n?"undefined":(0,i.default)(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():a.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,u=function(e){r.trapFocus(e)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener("focus",u,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",u,!0)},l.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},l.Dialog.prototype.trapFocus=function(e){a.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(a.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&a.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=l.Dialog},"5c95":function(e,t,n){var r=n("35e8");e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",u=function(e,t,n){var c,f,d,h,p=e&u.F,m=e&u.G,g=e&u.S,v=e&u.P,b=e&u.B,y=m?r:g?r[t]||(r[t]={}):(r[t]||{})[l],w=m?i:i[t]||(i[t]={}),_=w[l]||(w[l]={});for(c in m&&(n=t),n)f=!p&&y&&void 0!==y[c],d=(f?y:n)[c],h=b&&f?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,y&&a(y,c,d,e&u.U),w[c]!=d&&o(w,c,h),v&&_[c]!=d&&(_[c]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5cc5":function(e,t,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5df3":function(e,t,n){"use strict";var r=n("02f4")(!0);n("01f9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"5ea8":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(e[i]=o)}}return e}},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"5f87":function(e,t,n){"use strict";n("7f7f");var r=n("a78e"),i=n.n(r),o=n("8bbf"),a=n.n(o),s="JWT",l="USERNAME",u="CURRENT_USER",c="VERSION_ENVIRONMENT",f="CURRENT_USER_SYSTEM_VERSION",d="CURRENT_LANGUAGE",h="AMB_LANG_INFO";function p(){var e=x(s),t=a.a.prototype.projectModel;return!e&&t&&"developing.model"===t&&(e=D(s)),e}function m(e){S(s,e),O(s,e)}function g(){k(s),T(s)}function v(){var e=x(l);return e||(e=D(l)),e}function b(e){O(l,e),S(l,e)}function y(){T(l),k(l)}function w(){var e=F(u);if(e||(e=x(u)),e||(e=D(u)),e)return JSON.parse(e)}function _(e){if(e){e.password&&(e.password=null);var t={id:e.id,name:e.name,loginName:e.loginName,enName:e.enName,mainDepartmentCode:e.mainDepartmentCode},n=JSON.stringify(t);B(u,n)}}function C(){L(u),T(u),k(u)}function x(e){return i.a.get(e)}function S(e,t){i.a.set(e,t,{path:"/"})}function k(e){i.a.remove(e,{path:"/"})}function D(e){return sessionStorage.getItem(e)}function O(e,t){return sessionStorage.setItem(e,t)}function T(e){sessionStorage.removeItem(e)}function E(){k(c),k(f)}function I(){var e=x(d),t=a.a.prototype.projectModel;return!e&&t&&"developing.model"===t&&(e=D(d)),e}function N(e){S(d,e),O(d,e)}function A(){k(d),T(d)}function P(){var e=x(h),t=a.a.prototype.projectModel;return!e&&t&&"developing.model"===t&&(e=D(h)),e}function M(e){S(h,e),O(h,e)}function R(){k(h),T(h)}function F(e){return localStorage.getItem(e)}function B(e,t){return localStorage.setItem(e,t)}function L(e){localStorage.removeItem(e)}var $={getToken:p,setToken:m,removeToken:g,getUsername:v,setUsername:b,removeUsername:y,getCurrentUser:w,setCurrentUser:_,removeCurrentUser:C,getCookieCache:x,setCookieCache:S,removeCookieCache:k,getSessionCache:D,setSessionCache:O,removeSessionCache:T,removePublishControl:E,getLanguage:I,setLanguage:N,removeLanguage:A,getAllLanguages:P,setAllLanguages:M,removeAllLanguages:R,getLocalStorageCache:F,setLocalStorageCache:B,removeLocalStorageCache:L};n("6a95");function V(){return $.getToken()}function j(){return $.getLanguage()}function z(){return $.getAllLanguages()}function H(e){$.setAllLanguages(e)}n.d(t,"c",(function(){return V})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return z})),n.d(t,"d",(function(){return H}))},6045:function(e,t,n){"use strict";t.__esModule=!0;var r=n("8827"),i=a(r),o=n("f321");function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(){(0,i.default)(this,e)}return e.prototype.beforeEnter=function(e){(0,o.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},e.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},e.prototype.afterEnter=function(e){(0,o.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},e.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},e.prototype.leave=function(e){0!==e.scrollHeight&&((0,o.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},e.prototype.afterLeave=function(e){(0,o.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},e}();t.default={name:"ElCollapseTransition",functional:!0,render:function(e,t){var n=t.children,r={on:new s};return e("transition",r,n)}}},6099:function(e,t,n){"use strict";var r=n("f0a7"),i=function(){function e(e){this.bytes=e,this.byteOffset=0,this.bitOffset=0}return e.prototype.getBitOffset=function(){return this.bitOffset},e.prototype.getByteOffset=function(){return this.byteOffset},e.prototype.readBits=function(e){if(e<1||e>32||e>this.available())throw new r["a"](""+e);var t=0,n=this.bitOffset,i=this.byteOffset,o=this.bytes;if(n>0){var a=8-n,s=e<a?e:a,l=a-s,u=255>>8-s<<l;t=(o[i]&u)>>l,e-=s,n+=s,8===n&&(n=0,i++)}if(e>0){while(e>=8)t=t<<8|255&o[i],i++,e-=8;if(e>0){l=8-e,u=255>>l<<l;t=t<<e|(o[i]&u)>>l,n+=e}}return this.bitOffset=n,this.byteOffset=i,t},e.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},e}();t["a"]=i},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},6246:function(e,t,n){"use strict";var r=n("f505"),i=n("f60b"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){return void 0===t&&(t=500),e.call(this,new i["a"],t)||this}o(t,e)})(r["a"])},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"62e5":function(e,t,n){n("2519")},"633f":function(e,t,n){e.exports={default:n("fa99"),__esModule:!0}},"63af":function(e,t,n){"use strict";var r=function(){function e(){}return e.arraycopy=function(e,t,n,r,i){while(i--)n[r++]=e[t++]},e.currentTimeMillis=function(){return Date.now()},e}();t["a"]=r},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),l="prototype",u=function(e,t,n){var c,f,d,h=e&u.F,p=e&u.G,m=e&u.S,g=e&u.P,v=e&u.B,b=e&u.W,y=p?i:i[t]||(i[t]={}),w=y[l],_=p?r:m?r[t]:(r[t]||{})[l];for(c in p&&(n=t),n)f=!h&&_&&void 0!==_[c],f&&s(y,c)||(d=f?_[c]:n[c],y[c]=p&&"function"!=typeof _[c]?n[c]:v&&f?o(d,r):b&&_[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((y.virtual||(y.virtual={}))[c]=d,e&u.R&&w&&!w[c]&&a(w,c,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"64a7":function(e,t,n){"use strict";var r;(function(e){e[e["OTHER"]=0]="OTHER",e[e["ORIENTATION"]=1]="ORIENTATION",e[e["BYTE_SEGMENTS"]=2]="BYTE_SEGMENTS",e[e["ERROR_CORRECTION_LEVEL"]=3]="ERROR_CORRECTION_LEVEL",e[e["ISSUE_NUMBER"]=4]="ISSUE_NUMBER",e[e["SUGGESTED_PRICE"]=5]="SUGGESTED_PRICE",e[e["POSSIBLE_COUNTRY"]=6]="POSSIBLE_COUNTRY",e[e["UPC_EAN_EXTENSION"]=7]="UPC_EAN_EXTENSION",e[e["PDF417_EXTRA_METADATA"]=8]="PDF417_EXTRA_METADATA",e[e["STRUCTURED_APPEND_SEQUENCE"]=9]="STRUCTURED_APPEND_SEQUENCE",e[e["STRUCTURED_APPEND_PARITY"]=10]="STRUCTURED_APPEND_PARITY"})(r||(r={})),t["a"]=r},6530:function(e,t,n){"use strict";var r=n("f823"),i=function(){function e(e){void 0===e&&(e=""),this.value=e}return e.prototype.enableDecoding=function(e){return this.encoding=e,this},e.prototype.append=function(e){return"string"===typeof e?this.value+=e.toString():this.encoding?this.value+=r["a"].castAsNonUtf8Char(e,this.encoding):this.value+=String.fromCharCode(e),this},e.prototype.appendChars=function(e,t,n){for(var r=t;t<t+n;r++)this.append(e[r]);return this},e.prototype.length=function(){return this.value.length},e.prototype.charAt=function(e){return this.value.charAt(e)},e.prototype.deleteCharAt=function(e){this.value=this.value.substr(0,e)+this.value.substring(e+1)},e.prototype.setCharAt=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+1)},e.prototype.substring=function(e,t){return this.value.substring(e,t)},e.prototype.setLengthToZero=function(){this.value=""},e.prototype.toString=function(){return this.value},e.prototype.insert=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+t.length)},e}();t["a"]=i},6537:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=78)}({1:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("813e")},12:function(e,t){e.exports=n("ef01")},14:function(e,t){e.exports=n("2ffe")},15:function(e,t){e.exports=n("1098")},19:function(e,t){e.exports=n("229c")},20:function(e,t){e.exports=n("0e15")},26:function(e,t){e.exports=n("6864")},28:function(e,t){e.exports=n("81e0")},3:function(e,t){e.exports=n("bf32")},37:function(e,t){e.exports=n("e5da")},4:function(e,t){e.exports=n("bbe4")},40:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e.select.multiple&&!e.supportCook?n("el-checkbox",{staticStyle:{"pointer-events":"none"},attrs:{size:e.size,disabled:e.disabled||e.groupDisabled||e.limitReached,value:e.itemSelected}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2):[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])]),e.select.multiple&&e.supportCook?n("el-checkbox",{staticStyle:{"pointer-events":"none"},attrs:{size:e.size,disabled:e.disabled||e.groupDisabled||e.limitReached,value:e.itemSelected}}):e._e()]],2)};r._withStripped=!0;var i=n(15),o=n.n(i),a=n(4),s=n.n(a),l=n(3),u={mixins:[s.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},size:String,label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:!0}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{supportCook:function(){return this.$ELEMENT.supportCook||!1},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},limitReached:function(){return!!this.select.multiple&&!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===e?"undefined":o()(e))&&"object"===(void 0===t?"undefined":o()(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(l.getValueByPath)(e,n)===Object(l.getValueByPath)(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(l.getValueByPath)(e,n)===Object(l.getValueByPath)(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(l.escapeRegexpString)(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple?t:[t],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=n(1),f=Object(c.a)(u,r,[],!1,null,null,null);f.options.__file="packages/select/src/option.vue",t.a=f.exports},44:function(e,t){e.exports=n("a911")},5:function(e,t){e.exports=n("87ec")},6:function(e,t){e.exports=n("1e6c")},78:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:"",e.multiple&&e.isNowrap?"one__line":"",{"is-focus":e.visible}],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"80%"}},[e.collapseTags&&e.selected.length?n("span",[e._l(e.collapseSelects,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectMultipleClose(t),size:e.selectSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),e.collapseTags&&e.selected.length>e.maxTagCount?n("el-tag",{key:"max"-e.maxTagCount,attrs:{closable:!1,size:e.selectSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-e.maxTagCount))])]):e._e()],2):n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectMultipleClose(t),size:e.selectSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px","margin-left":"7px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass],on:{click:e.handleArrowClick}}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{size:e.selectSize,"append-to-body":e.popperAppendToBody,"is-adaptive-width":e.adaptiveWidth}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,size:e.selectSize,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(28),s=n.n(a),l=n(5),u=n.n(l),c=n(12),f=n.n(c),d=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass,this.size?"el-select-dropdown--"+this.size:""],style:{minWidth:this.minWidth,width:this.width}},[this._t("default")],2)};d._withStripped=!0;var h=n(6),p={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[n.n(h).a],props:{placement:{default:"bottom-start"},size:{type:String,default:""},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0},isAdaptiveWidth:{type:Boolean,default:!1}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass},width:function(){return this.$parent.inputWidth&&this.isAdaptiveWidth?this.$parent.$el.getBoundingClientRect().width+"px":""}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},m=n(1),g=Object(m.a)(p,d,[],!1,null,null,null);g.options.__file="packages/select/src/select-dropdown.vue";var v=g.exports,b=n(40),y=n(44),w=n.n(y),_=n(14),C=n.n(_),x=n(20),S=n.n(x),k=n(10),D=n.n(k),O=n(19),T=n(37),E=n.n(T),I=n(3),N=n(26),A={mixins:[o.a,u.a,s()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"==typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}}],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(I.isIE)()&&!Object(I.isEdge)()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&e},iconClass:function(){return this.remote&&this.filterable?this.iconSearch?"search":"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")},collapseSelects:function(){var e=this;return this.selected.filter((function(t,n){return e.maxTagCount>n}))}},components:{ElInput:f.a,ElSelectMenu:v,ElOption:b.a,ElTag:w.a,ElScrollbar:C.a},directives:{Clickoutside:D.a},props:{iconSearch:Boolean,name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(){return!0}},automaticDropdown:Boolean,size:String,isNowrap:{type:Boolean,default:!1},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,blurSelectedFirstOption:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,maxTagCount:{type:Number,default:1},closable:{type:Boolean,default:!0},popperAppendToBody:{type:Boolean,default:!0},adaptiveWidth:{type:Boolean,default:!1}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(I.valueEquals)(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{selectMultipleClose:function(e){return this.selectDisabled||!e.closable},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(){return t.handleQueryChange(n)}));else{var r=n[n.length-1]||"";this.isOnComposition=!Object(N.isKorean)(r)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"==typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");E()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(I.valueEquals)(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),r="[object null]"===Object.prototype.toString.call(e).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(I.getValueByPath)(a.value,this.valueKey)===Object(I.getValueByPath)(e,this.valueKey):a.value===e){t=a;break}}if(t)return t;var s={value:e,currentLabel:n||r||i?"":String(e)};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},handleArrowClick:function(e){!this.selectDisabled&&this.filterable&&(e.stopPropagation(),this.visible=!this.visible)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible&&(this.blurSelectedFirstOption&&this.multiple&&-1===this.value.indexOf(this.query)&&""!==this.query&&this.value.push(this.query),this.blurSelectedFirstOption&&!this.multiple&&this.selectedLabel===this.query&&""!==this.selectedLabel&&(this.$emit("input",this.selectedLabel),this.emitChange(this.selectedLabel))),this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],r=e.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(r?i+(i>o?6:0):0,o)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var r=this.valueKey,i=-1;return e.some((function(e,n){return Object(I.getValueByPath)(e,r)===Object(I.getValueByPath)(t,r)&&(i=n,!0)})),i}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(I.getValueByPath)(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=S()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=S()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(O.addResizeListener)(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n=t.$el.querySelector("input");this.initialInputHeight=n.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(O.removeResizeListener)(this.$el,this.handleResize)}},P=Object(m.a)(A,r,[],!1,null,null,null);P.options.__file="packages/select/src/select.vue";var M=P.exports;M.install=function(e){e.component(M.name,M)},t.default=M}})},"656e":function(e,t,n){"use strict";var r=n("79aa");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},"66c8":function(e,t,n){},6718:function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),a=n("ccb9"),s=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ab":function(e,t,n){var r=n("ca5a")("meta"),i=n("d3f4"),o=n("69a8"),a=n("86cc").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("79e5")((function(){return l(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return u&&p.NEED&&l(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},"67d3":function(e,t,n){},"67f0":function(e,t,n){"use strict";var r,i=n("7978"),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(e){e[e["Cp437"]=0]="Cp437",e[e["ISO8859_1"]=1]="ISO8859_1",e[e["ISO8859_2"]=2]="ISO8859_2",e[e["ISO8859_3"]=3]="ISO8859_3",e[e["ISO8859_4"]=4]="ISO8859_4",e[e["ISO8859_5"]=5]="ISO8859_5",e[e["ISO8859_6"]=6]="ISO8859_6",e[e["ISO8859_7"]=7]="ISO8859_7",e[e["ISO8859_8"]=8]="ISO8859_8",e[e["ISO8859_9"]=9]="ISO8859_9",e[e["ISO8859_10"]=10]="ISO8859_10",e[e["ISO8859_11"]=11]="ISO8859_11",e[e["ISO8859_13"]=12]="ISO8859_13",e[e["ISO8859_14"]=13]="ISO8859_14",e[e["ISO8859_15"]=14]="ISO8859_15",e[e["ISO8859_16"]=15]="ISO8859_16",e[e["SJIS"]=16]="SJIS",e[e["Cp1250"]=17]="Cp1250",e[e["Cp1251"]=18]="Cp1251",e[e["Cp1252"]=19]="Cp1252",e[e["Cp1256"]=20]="Cp1256",e[e["UnicodeBigUnmarked"]=21]="UnicodeBigUnmarked",e[e["UTF8"]=22]="UTF8",e[e["ASCII"]=23]="ASCII",e[e["Big5"]=24]="Big5",e[e["GB18030"]=25]="GB18030",e[e["EUC_KR"]=26]="EUC_KR"})(r||(r={}));var a=function(){function e(t,n,r){for(var i,a,s=[],l=3;l<arguments.length;l++)s[l-3]=arguments[l];this.valueIdentifier=t,this.name=r,this.values="number"===typeof n?Int32Array.from([n]):n,this.otherEncodingNames=s,e.VALUE_IDENTIFIER_TO_ECI.set(t,this),e.NAME_TO_ECI.set(r,this);for(var u=this.values,c=0,f=u.length;c!==f;c++){var d=u[c];e.VALUES_TO_ECI.set(d,this)}try{for(var h=o(s),p=h.next();!p.done;p=h.next()){var m=p.value;e.NAME_TO_ECI.set(m,this)}}catch(g){i={error:g}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}}return e.prototype.getValueIdentifier=function(){return this.valueIdentifier},e.prototype.getName=function(){return this.name},e.prototype.getValue=function(){return this.values[0]},e.getCharacterSetECIByValue=function(t){if(t<0||t>=900)throw new i["a"]("incorect value");var n=e.VALUES_TO_ECI.get(t);if(void 0===n)throw new i["a"]("incorect value");return n},e.getCharacterSetECIByName=function(t){var n=e.NAME_TO_ECI.get(t);if(void 0===n)throw new i["a"]("incorect value");return n},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.getName()===n.getName()},e.VALUE_IDENTIFIER_TO_ECI=new Map,e.VALUES_TO_ECI=new Map,e.NAME_TO_ECI=new Map,e.Cp437=new e(r.Cp437,Int32Array.from([0,2]),"Cp437"),e.ISO8859_1=new e(r.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),e.ISO8859_2=new e(r.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),e.ISO8859_3=new e(r.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),e.ISO8859_4=new e(r.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),e.ISO8859_5=new e(r.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),e.ISO8859_6=new e(r.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),e.ISO8859_7=new e(r.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),e.ISO8859_8=new e(r.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),e.ISO8859_9=new e(r.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),e.ISO8859_10=new e(r.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),e.ISO8859_11=new e(r.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),e.ISO8859_13=new e(r.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),e.ISO8859_14=new e(r.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),e.ISO8859_15=new e(r.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),e.ISO8859_16=new e(r.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),e.SJIS=new e(r.SJIS,20,"SJIS","Shift_JIS"),e.Cp1250=new e(r.Cp1250,21,"Cp1250","windows-1250"),e.Cp1251=new e(r.Cp1251,22,"Cp1251","windows-1251"),e.Cp1252=new e(r.Cp1252,23,"Cp1252","windows-1252"),e.Cp1256=new e(r.Cp1256,24,"Cp1256","windows-1256"),e.UnicodeBigUnmarked=new e(r.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),e.UTF8=new e(r.UTF8,26,"UTF8","UTF-8"),e.ASCII=new e(r.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),e.Big5=new e(r.Big5,28,"Big5"),e.GB18030=new e(r.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),e.EUC_KR=new e(r.EUC_KR,30,"EUC_KR","EUC-KR"),e}();t["a"]=a},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},6833:function(e,t,n){"use strict";var r=n("7163"),i=n("9068"),o=n("67f0"),a=n("547e"),s=n("1092"),l=n("7288"),u=n("2915"),c=n("d439"),f=n("32f9"),d=n("ae4b"),h=n("b5b4"),p=n("78c7"),m=function(){function e(e,t){this.dataBytes=e,this.errorCorrectionBytes=t}return e.prototype.getDataBytes=function(){return this.dataBytes},e.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},e}(),g=m,v=n("4986"),b=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},y=function(){function e(){}return e.calculateMaskPenalty=function(e){return c["a"].applyMaskPenaltyRule1(e)+c["a"].applyMaskPenaltyRule2(e)+c["a"].applyMaskPenaltyRule3(e)+c["a"].applyMaskPenaltyRule4(e)},e.encode=function(t,n,a){void 0===a&&(a=null);var s=e.DEFAULT_BYTE_MODE_ENCODING,c=null!==a&&void 0!==a.get(r["a"].CHARACTER_SET);c&&(s=a.get(r["a"].CHARACTER_SET).toString());var p=this.chooseMode(t,s),m=new i["a"];if(p===l["a"].BYTE&&(c||e.DEFAULT_BYTE_MODE_ENCODING!==s)){var g=o["a"].getCharacterSetECIByName(s);void 0!==g&&this.appendECI(g,m)}this.appendModeInfo(p,m);var b,y=new i["a"];if(this.appendBytes(t,p,y,s),null!==a&&void 0!==a.get(r["a"].QR_VERSION)){var w=Number.parseInt(a.get(r["a"].QR_VERSION).toString(),10);b=u["a"].getVersionForNumber(w);var _=this.calculateBitsNeeded(p,m,y,b);if(!this.willFit(_,b,n))throw new v["a"]("Data too big for requested version")}else b=this.recommendVersion(n,p,m,y);var C=new i["a"];C.appendBitArray(m);var x=p===l["a"].BYTE?y.getSizeInBytes():t.length;this.appendLengthInfo(x,b,p,C),C.appendBitArray(y);var S=b.getECBlocksForLevel(n),k=b.getTotalCodewords()-S.getTotalECCodewords();this.terminateBits(k,C);var D=this.interleaveWithECBytes(C,b.getTotalCodewords(),k,S.getNumBlocks()),O=new d["a"];O.setECLevel(n),O.setMode(p),O.setVersion(b);var T=b.getDimensionForVersion(),E=new f["a"](T,T),I=this.chooseMaskPattern(D,n,b,E);return O.setMaskPattern(I),h["a"].buildMatrix(D,n,b,I,E),O.setMatrix(E),O},e.recommendVersion=function(e,t,n,r){var i=this.calculateBitsNeeded(t,n,r,u["a"].getVersionForNumber(1)),o=this.chooseVersion(i,e),a=this.calculateBitsNeeded(t,n,r,o);return this.chooseVersion(a,e)},e.calculateBitsNeeded=function(e,t,n,r){return t.getSize()+e.getCharacterCountBits(r)+n.getSize()},e.getAlphanumericCode=function(t){return t<e.ALPHANUMERIC_TABLE.length?e.ALPHANUMERIC_TABLE[t]:-1},e.chooseMode=function(t,n){if(void 0===n&&(n=null),o["a"].SJIS.getName()===n&&this.isOnlyDoubleByteKanji(t))return l["a"].KANJI;for(var r=!1,i=!1,a=0,s=t.length;a<s;++a){var u=t.charAt(a);if(e.isDigit(u))r=!0;else{if(-1===this.getAlphanumericCode(u.charCodeAt(0)))return l["a"].BYTE;i=!0}}return i?l["a"].ALPHANUMERIC:r?l["a"].NUMERIC:l["a"].BYTE},e.isOnlyDoubleByteKanji=function(e){var t;try{t=p["a"].encode(e,o["a"].SJIS)}catch(a){return!1}var n=t.length;if(n%2!==0)return!1;for(var r=0;r<n;r+=2){var i=255&t[r];if((i<129||i>159)&&(i<224||i>235))return!1}return!0},e.chooseMaskPattern=function(e,t,n,r){for(var i=Number.MAX_SAFE_INTEGER,o=-1,a=0;a<d["a"].NUM_MASK_PATTERNS;a++){h["a"].buildMatrix(e,t,n,a,r);var s=this.calculateMaskPenalty(r);s<i&&(i=s,o=a)}return o},e.chooseVersion=function(t,n){for(var r=1;r<=40;r++){var i=u["a"].getVersionForNumber(r);if(e.willFit(t,i,n))return i}throw new v["a"]("Data too big")},e.willFit=function(e,t,n){var r=t.getTotalCodewords(),i=t.getECBlocksForLevel(n),o=i.getTotalECCodewords(),a=r-o,s=(e+7)/8;return a>=s},e.terminateBits=function(e,t){var n=8*e;if(t.getSize()>n)throw new v["a"]("data bits cannot fit in the QR Code"+t.getSize()+" > "+n);for(var r=0;r<4&&t.getSize()<n;++r)t.appendBit(!1);var i=7&t.getSize();if(i>0)for(r=i;r<8;r++)t.appendBit(!1);var o=e-t.getSizeInBytes();for(r=0;r<o;++r)t.appendBits(0===(1&r)?236:17,8);if(t.getSize()!==n)throw new v["a"]("Bits size does not equal capacity")},e.getNumDataBytesAndNumECBytesForBlockID=function(e,t,n,r,i,o){if(r>=n)throw new v["a"]("Block ID too large");var a=e%n,s=n-a,l=Math.floor(e/n),u=l+1,c=Math.floor(t/n),f=c+1,d=l-c,h=u-f;if(d!==h)throw new v["a"]("EC bytes mismatch");if(n!==s+a)throw new v["a"]("RS blocks mismatch");if(e!==(c+d)*s+(f+h)*a)throw new v["a"]("Total bytes mismatch");r<s?(i[0]=c,o[0]=d):(i[0]=f,o[0]=h)},e.interleaveWithECBytes=function(t,n,r,o){var a,s,l,u;if(t.getSizeInBytes()!==r)throw new v["a"]("Number of bits and data bytes does not match");for(var c=0,f=0,d=0,h=new Array,p=0;p<o;++p){var m=new Int32Array(1),y=new Int32Array(1);e.getNumDataBytesAndNumECBytesForBlockID(n,r,o,p,m,y);var w=m[0],_=new Uint8Array(w);t.toBytes(8*c,_,0,w);var C=e.generateECBytes(_,y[0]);h.push(new g(_,C)),f=Math.max(f,w),d=Math.max(d,C.length),c+=m[0]}if(r!==c)throw new v["a"]("Data bytes does not match offset");var x=new i["a"];for(p=0;p<f;++p)try{for(var S=(a=void 0,b(h)),k=S.next();!k.done;k=S.next()){var D=k.value;_=D.getDataBytes();p<_.length&&x.appendBits(_[p],8)}}catch(E){a={error:E}}finally{try{k&&!k.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}for(p=0;p<d;++p)try{for(var O=(l=void 0,b(h)),T=O.next();!T.done;T=O.next()){D=T.value,C=D.getErrorCorrectionBytes();p<C.length&&x.appendBits(C[p],8)}}catch(I){l={error:I}}finally{try{T&&!T.done&&(u=O.return)&&u.call(O)}finally{if(l)throw l.error}}if(n!==x.getSizeInBytes())throw new v["a"]("Interleaving error: "+n+" and "+x.getSizeInBytes()+" differ.");return x},e.generateECBytes=function(e,t){for(var n=e.length,r=new Int32Array(n+t),i=0;i<n;i++)r[i]=255&e[i];new s["a"](a["a"].QR_CODE_FIELD_256).encode(r,t);var o=new Uint8Array(t);for(i=0;i<t;i++)o[i]=r[n+i];return o},e.appendModeInfo=function(e,t){t.appendBits(e.getBits(),4)},e.appendLengthInfo=function(e,t,n,r){var i=n.getCharacterCountBits(t);if(e>=1<<i)throw new v["a"](e+" is bigger than "+((1<<i)-1));r.appendBits(e,i)},e.appendBytes=function(t,n,r,i){switch(n){case l["a"].NUMERIC:e.appendNumericBytes(t,r);break;case l["a"].ALPHANUMERIC:e.appendAlphanumericBytes(t,r);break;case l["a"].BYTE:e.append8BitBytes(t,r,i);break;case l["a"].KANJI:e.appendKanjiBytes(t,r);break;default:throw new v["a"]("Invalid mode: "+n)}},e.getDigit=function(e){return e.charCodeAt(0)-48},e.isDigit=function(t){var n=e.getDigit(t);return n>=0&&n<=9},e.appendNumericBytes=function(t,n){var r=t.length,i=0;while(i<r){var o=e.getDigit(t.charAt(i));if(i+2<r){var a=e.getDigit(t.charAt(i+1)),s=e.getDigit(t.charAt(i+2));n.appendBits(100*o+10*a+s,10),i+=3}else if(i+1<r){a=e.getDigit(t.charAt(i+1));n.appendBits(10*o+a,7),i+=2}else n.appendBits(o,4),i++}},e.appendAlphanumericBytes=function(t,n){var r=t.length,i=0;while(i<r){var o=e.getAlphanumericCode(t.charCodeAt(i));if(-1===o)throw new v["a"];if(i+1<r){var a=e.getAlphanumericCode(t.charCodeAt(i+1));if(-1===a)throw new v["a"];n.appendBits(45*o+a,11),i+=2}else n.appendBits(o,6),i++}},e.append8BitBytes=function(e,t,n){var r;try{r=p["a"].encode(e,n)}catch(s){throw new v["a"](s)}for(var i=0,o=r.length;i!==o;i++){var a=r[i];t.appendBits(a,8)}},e.appendKanjiBytes=function(e,t){var n;try{n=p["a"].encode(e,o["a"].SJIS)}catch(f){throw new v["a"](f)}for(var r=n.length,i=0;i<r;i+=2){var a=255&n[i],s=255&n[i+1],l=a<<8&4294967295|s,u=-1;if(l>=33088&&l<=40956?u=l-33088:l>=57408&&l<=60351&&(u=l-49472),-1===u)throw new v["a"]("Invalid byte sequence");var c=192*(u>>8)+(255&u);t.appendBits(c,13)}},e.appendECI=function(e,t){t.appendBits(l["a"].ECI.getBits(),4),t.appendBits(e.getValue(),8)},e.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),e.DEFAULT_BYTE_MODE_ENCODING=o["a"].UTF8.getName(),e}();t["a"]=y},6864:function(e,t,n){"use strict";function r(e){return void 0!==e&&null!==e}function i(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=r,t.isKorean=i},"68d6":function(e,t,n){"use strict";n("3c99")},6957:function(e,t,n){n("75b8")},"696e":function(e,t,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),e.exports=n("584a").Promise},"69a4":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(e){return e.getParam("content_style","","string")},i=function(e){return e.getParam("content_css_cors",!1,"boolean")},o=function(e){var t=e.getParam("body_class","","hash");return t[e.id]||""},a=function(e){var t=e.getParam("body_class","","string");return-1===t.indexOf("=")?t:o(e)},s=function(e){var t=e.getParam("body_id","","hash");return t[e.id]||t},l=function(e){var t=e.getParam("body_id","tinymce","string");return-1===t.indexOf("=")?t:s(e)},u=function(e){var o="",s=e.dom.encode,u=r(e);o+='<base href="'+s(e.documentBaseURI.getURI())+'">';var c=i(e)?' crossorigin="anonymous"':"";n.each(e.contentCSS,(function(t){o+='<link type="text/css" rel="stylesheet" href="'+s(e.documentBaseURI.toAbsolute(t))+'"'+c+">"})),u&&(o+='<style type="text/css">'+u+"</style>");var f=l(e),d=a(e),h=t.mac?"e.metaKey":"e.ctrlKey && !e.altKey",p='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+h+")) {e.preventDefault();}}}, false);<\/script> ",m=e.getBody().dir,g=m?' dir="'+s(m)+'"':"",v="<!DOCTYPE html><html><head>"+o+'</head><body id="'+s(f)+'" class="mce-content-body '+s(d)+'"'+g+">"+e.getContent()+p+"</body></html>";return v},c=function(e){var t=u(e),n=e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}});n.focus("close")},f=function(e){e.addCommand("mcePreview",(function(){c(e)}))},d=function(e){var t=function(){return e.execCommand("mcePreview")};e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:t}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:t})};function h(){e.add("preview",(function(e){f(e),d(e)}))}h()})()},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69b9":function(e,t,n){n("4fcb"),e.exports=n("584a").Number.parseFloat},"69d3":function(e,t,n){n("6718")("asyncIterator")},"6a95":function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return h}));n("ac6a"),n("28a5"),n("a481");var r=n("8bbf"),i=n.n(r),o="PERMISSION-",a="PERMISSION_MENU-",s="PERMISSION_All_SYSTSEM_KEY";function l(){var e;return e=i.a.prototype.customSystem?i.a.prototype.customSystem:i.a.prototype.currentSystem?i.a.prototype.currentSystem:i.a.prototype.systemCode,e}function u(){var e=l(),t=localStorage.getItem(o+e);return t?JSON.parse(t):null}function c(){var e=localStorage.getItem(s);return e&&(e=e.split(",")),e||(e=[]),e}function f(){localStorage.removeItem(s)}function d(e){return e.replace(/(\s*$)/g,"")}function h(){var e=l();localStorage.removeItem(o+e),localStorage.removeItem(a+e);var t=c();t.forEach((function(e){e=d(e),localStorage.removeItem(e)})),f()}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(e,t,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6b54":function(e,t,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),o=n("9e1e"),a="toString",s=/./[a],l=function(e){n("2aba")(RegExp.prototype,a,e,!0)};n("79e5")((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?l((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):s.name!=a&&l((function(){return s.call(this)}))},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=r[u],f=c&&c.prototype;f&&!f[a]&&i(f,a,u),o[u]=o.Array}},"6cd7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("f505"),i=n("1f78"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=500);var r=this,o=new i["a"];return o.setHints(t),r=e.call(this,o,n)||this,r}return o(t,e),t.prototype.decodeBitmap=function(e){return this.reader.decodeWithState(e)},t}(r["a"])},"6d19":function(e,t,n){"use strict";var r=n("63af"),i=n("f20f"),o=n("00ec"),a=n("f0a7"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t,n,r,i,o,s,l,u){var c=e.call(this,s,l)||this;if(c.yuvData=t,c.dataWidth=n,c.dataHeight=r,c.left=i,c.top=o,i+s>n||o+l>r)throw new a["a"]("Crop rectangle does not fit within image data.");return u&&c.reverseHorizontal(s,l),c}s(t,e),t.prototype.getRow=function(e,t){if(e<0||e>=this.getHeight())throw new a["a"]("Requested row is outside the image: "+e);var n=this.getWidth();(null===t||void 0===t||t.length<n)&&(t=new Uint8ClampedArray(n));var i=(e+this.top)*this.dataWidth+this.left;return r["a"].arraycopy(this.yuvData,i,t,0,n),t},t.prototype.getMatrix=function(){var e=this.getWidth(),t=this.getHeight();if(e===this.dataWidth&&t===this.dataHeight)return this.yuvData;var n=e*t,i=new Uint8ClampedArray(n),o=this.top*this.dataWidth+this.left;if(e===this.dataWidth)return r["a"].arraycopy(this.yuvData,o,i,0,n),i;for(var a=0;a<t;a++){var s=a*e;r["a"].arraycopy(this.yuvData,o,i,s,e),o+=this.dataWidth}return i},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,n,r,i){return new t(this.yuvData,this.dataWidth,this.dataHeight,this.left+e,this.top+n,r,i,!1)},t.prototype.renderThumbnail=function(){for(var e=this.getWidth()/t.THUMBNAIL_SCALE_FACTOR,n=this.getHeight()/t.THUMBNAIL_SCALE_FACTOR,r=new Int32Array(e*n),i=this.yuvData,o=this.top*this.dataWidth+this.left,a=0;a<n;a++){for(var s=a*e,l=0;l<e;l++){var u=255&i[o+l*t.THUMBNAIL_SCALE_FACTOR];r[s+l]=4278190080|65793*u}o+=this.dataWidth*t.THUMBNAIL_SCALE_FACTOR}return r},t.prototype.getThumbnailWidth=function(){return this.getWidth()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.getThumbnailHeight=function(){return this.getHeight()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.reverseHorizontal=function(e,t){for(var n=this.yuvData,r=0,i=this.top*this.dataWidth+this.left;r<t;r++,i+=this.dataWidth)for(var o=i+e/2,a=i,s=i+e-1;a<o;a++,s--){var l=n[a];n[a]=n[s],n[s]=l}},t.prototype.invert=function(){return new o["a"](this)},t.THUMBNAIL_SCALE_FACTOR=2})(i["a"])},"6dd8":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),a=2;function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&u()}function l(){o(s)}function u(){var e=Date.now();if(n){if(e-i<a)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return u}var l=20,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!==typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),l)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},p=S(0,0,0,0);function m(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+m(r)}),0)}function v(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=m(a)}return n}function b(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function y(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=h(e).getComputedStyle(e),i=v(r),o=i.left+i.right,a=i.top+i.bottom,s=m(r.width),l=m(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=g(r,"left","right")+o),Math.round(l+a)!==n&&(l-=g(r,"top","bottom")+a)),!_(e)){var u=Math.round(s+o)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return S(i.left,i.top,s,l)}var w=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"===typeof e.getBBox}}();function _(e){return e===h(e).document.documentElement}function C(e){return r?w(e)?b(e):y(e):p}function x(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return d(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function S(e,t,n,r){return{x:e,y:t,width:n,height:r}}var k=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=C(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),D=function(){function e(e,t){var n=x(t);d(this,{target:e,contentRect:n})}return e}(),O=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new k(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new D(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),T="undefined"!==typeof WeakMap?new WeakMap:new n,E=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new O(t,n,this);T.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){E.prototype[e]=function(){var t;return(t=T.get(this))[e].apply(t,arguments)}}));var I=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:E}();t["default"]=I}.call(this,n("c8ba"))},7163:function(e,t,n){"use strict";var r;(function(e){e[e["ERROR_CORRECTION"]=0]="ERROR_CORRECTION",e[e["CHARACTER_SET"]=1]="CHARACTER_SET",e[e["DATA_MATRIX_SHAPE"]=2]="DATA_MATRIX_SHAPE",e[e["MIN_SIZE"]=3]="MIN_SIZE",e[e["MAX_SIZE"]=4]="MAX_SIZE",e[e["MARGIN"]=5]="MARGIN",e[e["PDF417_COMPACT"]=6]="PDF417_COMPACT",e[e["PDF417_COMPACTION"]=7]="PDF417_COMPACTION",e[e["PDF417_DIMENSIONS"]=8]="PDF417_DIMENSIONS",e[e["AZTEC_LAYERS"]=9]="AZTEC_LAYERS",e[e["QR_VERSION"]=10]="QR_VERSION"})(r||(r={})),t["a"]=r},"71c1":function(e,t,n){var r=n("3a38"),i=n("25eb");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},7288:function(e,t,n){"use strict";var r,i=n("f0a7");(function(e){e[e["TERMINATOR"]=0]="TERMINATOR",e[e["NUMERIC"]=1]="NUMERIC",e[e["ALPHANUMERIC"]=2]="ALPHANUMERIC",e[e["STRUCTURED_APPEND"]=3]="STRUCTURED_APPEND",e[e["BYTE"]=4]="BYTE",e[e["ECI"]=5]="ECI",e[e["KANJI"]=6]="KANJI",e[e["FNC1_FIRST_POSITION"]=7]="FNC1_FIRST_POSITION",e[e["FNC1_SECOND_POSITION"]=8]="FNC1_SECOND_POSITION",e[e["HANZI"]=9]="HANZI"})(r||(r={}));var o=function(){function e(t,n,r,i){this.value=t,this.stringValue=n,this.characterCountBitsForVersions=r,this.bits=i,e.FOR_BITS.set(i,this),e.FOR_VALUE.set(t,this)}return e.forBits=function(t){var n=e.FOR_BITS.get(t);if(void 0===n)throw new i["a"];return n},e.prototype.getCharacterCountBits=function(e){var t,n=e.getVersionNumber();return t=n<=9?0:n<=26?1:2,this.characterCountBitsForVersions[t]},e.prototype.getValue=function(){return this.value},e.prototype.getBits=function(){return this.bits},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.value===n.value},e.prototype.toString=function(){return this.stringValue},e.FOR_BITS=new Map,e.FOR_VALUE=new Map,e.TERMINATOR=new e(r.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),e.NUMERIC=new e(r.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),e.ALPHANUMERIC=new e(r.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),e.STRUCTURED_APPEND=new e(r.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),e.BYTE=new e(r.BYTE,"BYTE",Int32Array.from([8,16,16]),4),e.ECI=new e(r.ECI,"ECI",Int32Array.from([0,0,0]),7),e.KANJI=new e(r.KANJI,"KANJI",Int32Array.from([8,10,12]),8),e.FNC1_FIRST_POSITION=new e(r.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),e.FNC1_SECOND_POSITION=new e(r.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),e.HANZI=new e(r.HANZI,"HANZI",Int32Array.from([8,10,12]),13),e}();t["a"]=o},7324:function(e,t,n){"use strict";n("f0c7")},7333:function(e,t,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),a=n("52a7"),s=n("4bf8"),l=n("626a"),u=Object.assign;e.exports=!u||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=s(e),u=arguments.length,c=1,f=o.f,d=a.f;while(u>c){var h,p=l(arguments[c++]),m=f?i(p).concat(f(p)):i(p),g=m.length,v=0;while(g>v)h=m[v++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:u},"746a":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=n("9c59"),o={},a="§";function s(){if(l.supported){var e,t=window.name,n=0;for(e in o=t.charAt(0)===a?i.parse(t.slice(1)):{},o)r.call(o,e)&&n++;l.length=n}}var l=e.exports={length:0,getItem:function(e){return r.call(o,e)?o[e]:null},setItem:function(e,t){o[e]=t,window.name=i.stringify(o,a),l.length++},removeItem:function(e){delete o[e],window.name=i.stringify(o,a),l.length--},clear:function(){o={},window.name="",l.length=0},supported:function(){return"object"===typeof window&&"string"===typeof window.name}()};s()},"75b8":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(e){return e.getParam("save_enablewhendirty",!0)},i=function(e){return!!e.getParam("save_onsavecallback")},o=function(e){return!!e.getParam("save_oncancelcallback")},a=function(e,t){e.notificationManager.open({text:t,type:"error"})},s=function(e){var n=t.DOM.getParent(e.id,"form");if(!r(e)||e.isDirty()){if(e.save(),i(e))return e.execCallback("save_onsavecallback",e),void e.nodeChanged();n?(e.setDirty(!1),n.onsubmit&&!n.onsubmit()||("function"===typeof n.submit?n.submit():a(e,"Error: Form submit field collision.")),e.nodeChanged()):a(e,"Error: No form element found.")}},l=function(e){var t=n.trim(e.startContent);o(e)?e.execCallback("save_oncancelcallback",e):e.resetContent(t)},u=function(e){e.addCommand("mceSave",(function(){s(e)})),e.addCommand("mceCancel",(function(){l(e)}))},c=function(e){return function(t){var n=function(){t.setDisabled(r(e)&&!e.isDirty())};return n(),e.on("NodeChange dirty",n),function(){return e.off("NodeChange dirty",n)}}},f=function(e){e.ui.registry.addButton("save",{icon:"save",tooltip:"Save",disabled:!0,onAction:function(){return e.execCommand("mceSave")},onSetup:c(e)}),e.ui.registry.addButton("cancel",{icon:"cancel",tooltip:"Cancel",disabled:!0,onAction:function(){return e.execCommand("mceCancel")},onSetup:c(e)}),e.addShortcut("Meta+S","","mceSave")};function d(){e.add("save",(function(e){f(e),u(e)}))}d()})()},"760b":function(e,t,n){},"765d":function(e,t,n){n("6718")("observable")},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"788a":function(e,t,n){},"78b7":function(e,t,n){(function(t){!function(){"use strict";function n(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"==t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}function r(e){return g((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e.eq(t[i],n[i]))return!1;return!0}))}function i(e){return g((function(t,n){var i,o,a,s=Object.keys(t),l=Object.keys(n);if(o=r(v),a=function(e){return t=i,Array.prototype.slice.call(e).sort(t);var t},!g((function(e,t){return o.eq(a(e),a(t))})).eq(s,l))return!1;for(var u=s.length,c=0;c<u;c++){var f=s[c];if(!e.eq(t[f],n[f]))return!1}return!0}))}function o(e){return function(t){return r=typeof(n=t),(null===n?"null":"object"==r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===e;var n,r}}function a(e){return function(t){return typeof t===e}}function s(e){return function(t){return e===t}}function l(e){return null==e}function u(e){return!l(e)}function c(){}function f(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}}function d(e,t){return function(n){return e(t(n))}}function h(e){return function(){return e}}function p(e){return e}function m(e,t){return e===t}var g=function(e){return{eq:e}},v=g((function(e,t){return e===t})),b=g((function(e,t){if(e===t)return!0;var o=n(e);return o===n(t)&&(-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(o)?e===t:"array"===o?r(b).eq(e,t):"object"===o&&i(b).eq(e,t))})),y=o("string"),w=o("object"),_=o("array"),C=s(null),x=a("boolean"),S=s(void 0),k=a("function"),D=a("number");function O(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}function T(e){return function(t){return!e(t)}}function E(e){return e()}function I(e){e()}function N(){return M}var A=h(!1),P=h(!0),M={fold:function(e,t){return e()},isSome:A,isNone:P,getOr:p,getOrThunk:R,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:h(null),getOrUndefined:h(void 0),or:p,orThunk:R,map:N,each:c,bind:N,exists:A,forall:P,filter:function(){return M},toArray:function(){return[]},toString:h("none()")};function R(e){return e()}function F(e,t){return _e.call(e,t)}function B(e,t){return-1<F(e,t)}function L(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1}function $(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r}function V(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}function j(e,t){for(var n=e.length-1;0<=n;n--)t(e[n],n)}function z(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i];(t(a,i)?n:r).push(a)}return{pass:n,fail:r}}function H(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n}function U(e,t,n){return j(e,(function(e,r){n=t(n,e,r)})),n}function W(e,t,n){return V(e,(function(e,r){n=t(n,e,r)})),n}function q(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return ye.some(o);if(n(o,r))break}return ye.none()}function G(e,t){return q(e,t,A)}function Y(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return ye.some(n);return ye.none()}function K(e,t){return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!_(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);Ce.apply(t,e[n])}return t}($(e,t))}function X(e,t){for(var n=0,r=e.length;n<r;++n)if(!0!==t(e[n],n))return!1;return!0}function J(e){var t=we.call(e,0);return t.reverse(),t}function Z(e,t){return H(e,(function(e){return!B(t,e)}))}function Q(e,t){var n=we.call(e,0);return n.sort(t),n}function ee(e,t){return 0<=t&&t<e.length?ye.some(e[t]):ye.none()}function te(e){return ee(e,0)}function ne(e){return ee(e,e.length-1)}function re(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return ye.none()}function ie(e,t){for(var n=Se(e),r=0,i=n.length;r<i;r++){var o=n[r];t(e[o],o)}}function oe(e,t){return De(e,(function(e,n){return{k:n,v:t(e,n)}}))}function ae(e){return function(t,n){e[n]=t}}function se(e,t,n,r){return ie(e,(function(e,i){(t(e,i)?n:r)(e,i)})),1}function le(e,t){var n={};return se(e,t,ae(n),c),n}function ue(e,t){return Oe(e,t)?ye.from(e[t]):ye.none()}function ce(e,t){return Oe(e,t)&&void 0!==e[t]&&null!==e[t]}function fe(e,t,n){var r,i;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,i=e.length;r<i;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(Oe(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0}function de(e,t){var n=[];return fe(e,(function(r,i){n.push(t(r,i,e))})),n}function he(e,t){var n=[];return fe(e,(function(r,i){t&&!t(r,i,e)||n.push(r)})),n}function pe(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function me(e,t,n,r){for(var i=S(n)?e[0]:n,o=0;o<e.length;o++)i=t.call(r,i,e[o],o);return i}function ge(e,t,n){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return r;return-1}function ve(e){return e[e.length-1]}var be=function(e){function t(){return i}function n(t){return t(e)}var r=h(e),i={fold:function(t,n){return n(e)},isSome:P,isNone:A,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:t,orThunk:t,map:function(t){return be(t(e))},each:function(t){t(e)},bind:n,exists:n,forall:n,filter:function(t){return t(e)?i:M},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},ye={some:be,none:N,from:function(e){return null==e?M:be(e)}},we=Array.prototype.slice,_e=Array.prototype.indexOf,Ce=Array.prototype.push,xe=k(Array.from)?Array.from:function(e){return we.call(e)},Se=Object.keys,ke=Object.hasOwnProperty,De=function(e,t){var n={};return ie(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},Oe=function(e,t){return ke.call(e,t)},Te=Array.isArray,Ee=function(){return(Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ie(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Ne(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}}function Ae(e,t){var n=String(t).toLowerCase();return G(e,(function(e){return e.search(n)}))}function Pe(e,t){return-1!==e.indexOf(t)}function Me(e){return function(t){return t.replace(e,"")}}function Re(e){return 0<e.length}function Fe(e){return!Re(e)}function Be(e){return function(t){return Pe(t,e)}}function Le(e){return window.matchMedia(e).matches}function $e(e){return null==e?"":(""+e).replace(St,"")}function Ve(e,t){return t?!("array"!==t||!Te(e))||typeof e===t:void 0!==e}function je(e,t){for(var n=[],r=function(e){return n.push(e),t(e)},i=t(e);(i=i.bind(r)).isSome(););return n}function ze(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}function He(e){return 1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount}function Ue(e,t){return e.dom===t.dom}function We(e,t){return pt().browser.isIE()?(n=e.dom,r=t.dom,i=Node.DOCUMENT_POSITION_CONTAINED_BY,0!=(n.compareDocumentPosition(r)&i)):(o=e.dom)!==(a=t.dom)&&o.contains(a);var n,r,i,o,a}function qe(){return Xe(0,0)}function Ge(e){function t(e){return function(){return n===e}}var n=e.current,r=e.version;return{current:n,version:r,isEdge:t("Edge"),isChrome:t("Chrome"),isIE:t("IE"),isOpera:t("Opera"),isFirefox:t(it),isSafari:t("Safari")}}function Ye(e){function t(e){return function(){return n===e}}var n=e.current,r=e.version;return{current:n,version:r,isWindows:t(st),isiOS:t("iOS"),isAndroid:t(lt),isOSX:t("OSX"),isLinux:t("Linux"),isSolaris:t(ut),isFreeBSD:t(ct),isChromeOS:t(ft)}}function Ke(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}}var Xe=function(e,t){return{major:e,minor:t}},Je={nu:Xe,detect:function(e,t){var n,r,i=String(t).toLowerCase();return 0===e.length?qe():(r=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}}(e,n=i))?Xe(o(1),o(2)):{major:0,minor:0};function o(e){return Number(n.replace(r,"$"+e))}},unknown:qe},Ze=function(e,t){return""===(n=t)||e.length>=n.length&&e.substr(0,0+n.length)===n;var n},Qe=Me(/^\s+|\s+$/g),et=Me(/^\s+/g),tt=Me(/\s+$/g),nt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,rt={browsers:h([{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Pe(e,"edge/")&&Pe(e,"chrome")&&Pe(e,"safari")&&Pe(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,nt],search:function(e){return Pe(e,"chrome")&&!Pe(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Pe(e,"msie")||Pe(e,"trident")}},{name:"Opera",versionRegexes:[nt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Be("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Be("firefox")},{name:"Safari",versionRegexes:[nt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Pe(e,"safari")||Pe(e,"mobile/"))&&Pe(e,"applewebkit")}}]),oses:h([{name:"Windows",search:Be("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Pe(e,"iphone")||Pe(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Be("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Be("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Be("linux"),versionRegexes:[]},{name:"Solaris",search:Be("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Be("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Be("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}])},it="Firefox",ot=function(){return Ge({current:void 0,version:Je.unknown()})},at=Ge,st=(h("Edge"),h("Chrome"),h("IE"),h("Opera"),h(it),h("Safari"),"Windows"),lt="Android",ut="Solaris",ct="FreeBSD",ft="ChromeOS",dt=function(){return Ye({current:void 0,version:Je.unknown()})},ht=Ye,pt=(h(st),h("iOS"),h(lt),h("Linux"),h("OSX"),h(ut),h(ct),h(ft),Ne((function(){return e=navigator.userAgent,t=ye.from(navigator.userAgentData),n=Le,g=rt.browsers(),v=rt.oses(),b=t.bind((function(e){return t=g,re(e.brands,(function(e){var n=e.brand.toLowerCase();return G(t,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(t){return{current:t.name,version:Je.nu(parseInt(e.version,10),0)}}))}));var t})).orThunk((function(){return Ae(g,t=e).map((function(e){var n=Je.detect(e.versionRegexes,t);return{current:e.name,version:n}}));var t})).fold(ot,at),y=Ae(v,r=e).map((function(e){var t=Je.detect(e.versionRegexes,r);return{current:e.name,version:t}})).fold(dt,ht),{browser:b,os:y,deviceType:(o=b,a=e,s=n,l=(i=y).isiOS()&&!0===/ipad/i.test(a),u=i.isiOS()&&!l,f=(c=i.isiOS()||i.isAndroid())||s("(pointer:coarse)"),d=l||!u&&c&&s("(min-device-width:768px)"),p=u||c&&!d,m=o.isSafari()&&i.isiOS()&&!1===/safari/i.test(a),{isiPad:h(l),isiPhone:h(u),isTablet:h(d),isPhone:h(p),isTouch:h(f),isAndroid:i.isAndroid,isiOS:i.isiOS,isWebView:h(m),isDesktop:h(!p&&!d&&!m)})};var e,t,n,r,i,o,a,s,l,u,c,f,d,p,m,g,v,b,y}))),mt=navigator.userAgent,gt=pt(),vt=gt.browser,bt=gt.os,yt=gt.deviceType,wt=/WebKit/.test(mt)&&!vt.isEdge(),_t="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Ct=-1!==mt.indexOf("Windows Phone"),xt={opera:vt.isOpera(),webkit:wt,ie:!(!vt.isIE()&&!vt.isEdge())&&vt.version.major,gecko:vt.isFirefox(),mac:bt.isOSX()||bt.isiOS(),iOS:yt.isiPad()||yt.isiPhone(),android:bt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:vt.isIE()?document.documentMode||7:10,fileApi:_t,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!vt.isIE(),desktop:yt.isDesktop(),windowsPhone:Ct,browser:{current:vt.current,version:vt.version,isChrome:vt.isChrome,isEdge:vt.isEdge,isFirefox:vt.isFirefox,isIE:vt.isIE,isOpera:vt.isOpera,isSafari:vt.isSafari},os:{current:bt.current,version:bt.version,isAndroid:bt.isAndroid,isChromeOS:bt.isChromeOS,isFreeBSD:bt.isFreeBSD,isiOS:bt.isiOS,isLinux:bt.isLinux,isOSX:bt.isOSX,isSolaris:bt.isSolaris,isWindows:bt.isWindows},deviceType:{isDesktop:yt.isDesktop,isiPad:yt.isiPad,isiPhone:yt.isiPhone,isPhone:yt.isPhone,isTablet:yt.isTablet,isTouch:yt.isTouch,isWebView:yt.isWebView}},St=/^\s*|\s*$/g,kt=function(e,t,n,r){r=r||this,e&&fe(e=n?e[n]:e,(function(e,i){return!1!==t.call(r,e,i,n)&&void kt(e,t,n,r)}))},Dt={trim:$e,isArray:Te,is:Ve,toArray:function(e){if(Te(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},makeMap:function(e,t,n){var r;for(t=t||",",n=n||{},r=(e="string"==typeof(e=e||[])?e.split(t):e).length;r--;)n[e[r]]={};return n},each:fe,map:de,grep:he,inArray:pe,hasOwn:Oe,extend:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i,o,a=t[r];for(i in a)!Oe(a,i)||void 0!==(o=a[i])&&(e[i]=o)}return e},create:function(e,t,n){var r,i,o,a=this,s=0,l=(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e))[3].match(/(^|\.)(\w+)$/i)[2],u=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!u[l]){if("static"===e[2])return u[l]=t,void(this.onCreate&&this.onCreate(e[2],e[3],u[l]));t[l]||(t[l]=function(){},s=1),u[l]=t[l],a.extend(u[l].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=u[l],u[l]=s?function(){return r[i].apply(this,arguments)}:function(){return this.parent=r[i],o.apply(this,arguments)},u[l].prototype[l]=u[l],a.each(r,(function(e,t){u[l].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?u[l].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==l&&(u[l].prototype[t]=e)}))),a.each(t.static,(function(e,t){u[l][t]=e}))}},walk:kt,createNS:function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)t[r=e[n]]||(t[r]={}),t=t[r];return t},resolve:function(e,t){var n,r;for(t=t||window,n=0,r=(e=e.split(".")).length;n<r&&(t=t[e[n]]);n++);return t},explode:function(e,t){return!e||Ve(e,"array")?e:de(e.split(t||","),$e)},_addCacheSuffix:function(e){var t=xt.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},Ot={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||1<n.childNodes.length)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Ke(n.childNodes[0])},fromTag:function(e,t){var n=(t||document).createElement(e);return Ke(n)},fromText:function(e,t){var n=(t||document).createTextNode(e);return Ke(n)},fromDom:Ke,fromPoint:function(e,t,n){return ye.from(e.dom.elementFromPoint(t,n)).map(Ke)}};function Tt(e){return e.dom.nodeName.toLowerCase()}function Et(e){return e.dom.nodeType}function It(e){return function(t){return Et(t)===e}}function Nt(e){return Ot.fromDom(e.dom.ownerDocument)}function At(e){return Nn(e)?e:Nt(e)}function Pt(e){return Ot.fromDom(At(e).dom.defaultView)}function Mt(e){return ye.from(e.dom.parentNode).map(Ot.fromDom)}function Rt(e){return ye.from(e.dom.previousSibling).map(Ot.fromDom)}function Ft(e){return ye.from(e.dom.nextSibling).map(Ot.fromDom)}function Bt(e){return J(je(e,Rt))}function Lt(e){return je(e,Ft)}function $t(e,t){var n=e.dom.childNodes;return ye.from(n[t]).map(Ot.fromDom)}function Vt(e){return $t(e,0)}function jt(e){return $t(e,e.dom.childNodes.length-1)}function zt(e){return e.dom.childNodes.length}function Ht(e){return An(e)&&u(e.dom.host)}function Ut(e){return Ht(e)?e:function(){var t=At(e).dom.head;if(null==t)throw new Error("Head is not available yet");return Ot.fromDom(t)}()}function Wt(e){return Ot.fromDom(e.dom.host)}function qt(e,t){Mt(e).each((function(n){n.dom.insertBefore(t.dom,e.dom)}))}function Gt(e,t){Ft(e).fold((function(){Mt(e).each((function(e){Bn(e,t)}))}),(function(e){qt(e,t)}))}function Yt(e,t){Vt(e).fold((function(){Bn(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))}function Kt(e,t){V(t,(function(t){Bn(e,t)}))}function Xt(e){e.dom.textContent="",V(Pn(e),(function(e){Ln(e)}))}function Jt(e){var t,n=Pn(e);0<n.length&&(t=e,V(n,(function(e){qt(t,e)}))),Ln(e)}function Zt(e,t){return void 0!==e?e:void 0!==t?t:0}function Qt(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return jn(n,r)}function en(e,t,n){var r=(void 0!==n?n.dom:document).defaultView;r&&r.scrollTo(e,t)}function tn(e,t){pt().browser.isSafari()&&k(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)}function nn(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}}function rn(e){var t=void 0===e?window:e,n=t.document,r=Qt(Ot.fromDom(n)),i=void 0===t?window:t;return(pt().browser.isFirefox()?ye.none():ye.from(i.visualViewport)).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return nn(r.left,r.top,n,i)}),(function(e){return nn(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))}function on(e){return function(t){return!!t&&t.nodeType===e}}function an(e){return e&&!Object.getPrototypeOf(e)}function sn(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return B(t,n)}return!1}}function ln(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Hn(t))for(var r=0;r<n.length;r++){var i=t.ownerDocument.defaultView.getComputedStyle(t,null);if((i?i.getPropertyValue(e):null)===n[r])return!0}return!1}}function un(e){return function(t){return Hn(t)&&t.hasAttribute(e)}}function cn(e){return Hn(e)&&e.hasAttribute("data-mce-bogus")}function fn(e){return Hn(e)&&"TABLE"===e.tagName}function dn(e){return function(t){if(Hn(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}}function hn(e,t,n){return void 0===n&&(n=m),e.exists((function(e){return n(e,t)}))}function pn(e,t,n){return e.isSome()&&t.isSome()?ye.some(n(e.getOrDie(),t.getOrDie())):ye.none()}function mn(e){return void 0!==e.style&&k(e.style.getPropertyValue)}function gn(e,t,n){if(!(y(n)||x(n)||D(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}function vn(e,t,n){gn(e.dom,t,n)}function bn(e,t){var n=e.dom;ie(t,(function(e,t){gn(n,t,e)}))}function yn(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n}function wn(e,t){return ye.from(yn(e,t))}function _n(e,t){var n=e.dom;return n&&n.hasAttribute&&n.hasAttribute(t)}function Cn(e,t){e.dom.removeAttribute(t)}function xn(e,t){var n=e.dom;ie(t,(function(e,t){!function(e,t,n){if(!y(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);mn(e)&&e.style.setProperty(t,n)}(n,t,e)}))}function Sn(e,t){var n=e.dom,r=window.getComputedStyle(n).getPropertyValue(t);return""!==r||$n(e)?r:tr(n,t)}function kn(e,t){var n=e.dom,r=tr(n,t);return ye.from(r).filter((function(e){return 0<e.length}))}function Dn(e){var t={},n=e.dom;if(mn(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t}function On(e){return G(e,En)}function Tn(e,t){return e.children&&B(e.children,t)}"undefined"!=typeof window||Function("return this;")();var En=It(1),In=It(3),Nn=It(9),An=It(11),Pn=function(e){return $(e.dom.childNodes,Ot.fromDom)},Mn=k(Element.prototype.attachShadow)&&k(Node.prototype.getRootNode),Rn=h(Mn),Fn=Mn?function(e){return Ot.fromDom(e.dom.getRootNode())}:At,Bn=function(e,t){e.dom.appendChild(t.dom)},Ln=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},$n=function(e){var t=In(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;var n=t.ownerDocument,r=Ot.fromDom(t),i=Fn(r);return(Ht(i)?ye.some(i):ye.none()).fold((function(){return n.body.contains(t)}),d($n,Wt))},Vn=function(e,t){return{left:e,top:t,translate:function(n,r){return Vn(e+n,t+r)}}},jn=Vn,zn=function(e){var t,n=e.dom,r=n.ownerDocument.body;return r===n?jn(r.offsetLeft,r.offsetTop):$n(e)?(t=n.getBoundingClientRect(),jn(t.left,t.top)):jn(0,0)},Hn=on(1),Un=sn(["textarea","input"]),Wn=on(3),qn=on(8),Gn=on(9),Yn=on(11),Kn=sn(["br"]),Xn=sn(["img"]),Jn=dn("true"),Zn=dn("false"),Qn=sn(["td","th"]),er=sn(["video","audio","object","embed"]),tr=function(e,t){return mn(e)?e.style.getPropertyValue(t):""},nr=pt().browser,rr={},ir={exports:rr};function or(e){setTimeout((function(){throw e}),0)}function ar(e){return fr((function(){return new lr(e)}))}function sr(e){if(!_(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return V(e,(function(r,i){var o=Se(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!_(s))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);return t[i].apply(null,n)},match:function(e){var r=Se(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));if(!X(t,(function(e){return B(r,e)})))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)},log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n}!function(){var e=this,n=function(){var e,n,r,i={exports:{}};function o(){}function a(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n,r=1===e._state?t.onFulfilled:t.onRejected;if(null!==r){try{n=r(e._value)}catch(n){return void u(t.promise,n)}l(t.promise,n)}else(1===e._state?l:u)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void d((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(t){u(e,t)}var r,i}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(e){if(n)return;n=!0,u(t,e)}}e=i,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},r=setTimeout,a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(o);return s(this,new f(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){if(0===t.length)return e([]);for(var r=t.length,i=0;i<t.length;i++)!function i(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return s.call(a,(function(e){i(o,e)}),n),0}t[o]=a,0==--r&&e(t)}catch(a){n(a)}}(i,t[i])}))},a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){r(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a._setImmediateFn=function(e){a._immediateFn=e},a._setUnhandledRejectionFn=function(e){a._unhandledRejectionFn=e},e.exports?e.exports=a:n.Promise||(n.Promise=a);var h=i.exports;return{boltExport:("undefined"!=typeof window?window:Function("return this;")()).Promise||h}};"object"==typeof rr&&void 0!==ir?ir.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).EphoxContactWrapper=n()}();var lr=ir.exports.boltExport,ur=function(e){function t(e){i()?o(e):r.push(e)}var n=ye.none(),r=[],i=function(){return n.isSome()},o=function(e){n.each((function(t){setTimeout((function(){e(t)}),0)}))};return e((function(e){i()||(n=ye.some(e),V(r,o),r=[])})),{get:t,map:function(e){return ur((function(n){t((function(t){n(e(t))}))}))},isReady:i}},cr={nu:ur,pure:function(e){return ur((function(t){t(e)}))}},fr=function(e){function t(t){e().then(t,or)}return{map:function(t){return fr((function(){return e().then(t)}))},bind:function(t){return fr((function(){return e().then((function(e){return t(e).toPromise()}))}))},anonBind:function(t){return fr((function(){return e().then((function(){return t.toPromise()}))}))},toLazy:function(){return cr.nu(t)},toCached:function(){var t=null;return fr((function(){return t=null===t?e():t}))},toPromise:e,get:t}},dr=function(e){return{isValue:P,isError:A,getOr:h(e),getOrThunk:h(e),getOrDie:h(e),or:function(t){return dr(e)},orThunk:function(t){return dr(e)},fold:function(t,n){return n(e)},map:function(t){return dr(t(e))},mapError:function(t){return dr(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOptional:function(){return ye.some(e)}}},hr=function(e){return{isValue:A,isError:P,getOr:p,getOrThunk:function(e){return e()},getOrDie:function(){return t=String(e),function(){throw new Error(t)}();var t},or:p,orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return hr(e)},mapError:function(t){return hr(t(e))},each:c,bind:function(t){return hr(e)},exists:A,forall:P,toOptional:ye.none}},pr={value:dr,error:hr,fromOption:function(e,t){return e.fold((function(){return hr(t)}),dr)}};function mr(e){return e.fold(p,p)}function gr(e,t,n,r,i){return e(n,r)?ye.some(n):k(i)&&i(n)?ye.none():t(n,r,i)}function vr(e,t,n){for(var r=e.dom,i=k(n)?n:A;r.parentNode;){r=r.parentNode;var o=Ot.fromDom(r);if(t(o))return ye.some(o);if(i(o))break}return ye.none()}function br(e,t,n){return gr((function(e,t){return t(e)}),vr,e,t,n)}function yr(e,t,n){return vr(e,(function(e){return ze(e,t)}),n)}function wr(e,t){return n=t,He(r=void 0===e?document:e.dom)?ye.none():ye.from(r.querySelector(n)).map(Ot.fromDom);var n,r}function _r(e,t,n){return gr(ze,yr,e,t,n)}function Cr(e,t){return"number"!=typeof t&&(t=0),setTimeout(e,t)}function xr(e,t){return"number"!=typeof t&&(t=1),setInterval(e,t)}function Sr(e,t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];clearTimeout(r),r=Cr((function(){e.apply(this,n)}),t)}var r;return n.stop=function(){clearTimeout(r)},n}function kr(e,t){function n(n,r,i){var c,f=Dt._addCacheSuffix(n),d=ue(a,f).getOrThunk((function(){return{id:"mce-u"+o++,passed:[],failed:[],count:0}}));function h(e,t){for(var n=e.length;n--;)e[n]();d.status=t,d.passed=[],d.failed=[],c&&(c.onload=null,c.onerror=null,c=null)}function p(){return h(d.passed,2),0}function m(){return h(d.failed,3)}(a[f]=d).count++;var g,v,b,y=function(){var t=y;!function(){for(var t=e.styleSheets,n=t.length;n--;){var r=t[n].ownerNode;if(r&&r.id===c.id)return p(),1}}()&&(Date.now()-v<u?Ir.setTimeout(t):m())};r&&d.passed.push(r),i&&d.failed.push(i),1!==d.status&&(2!==d.status?3!==d.status?(d.status=1,bn(g=Ot.fromTag("link",l.dom),{rel:"stylesheet",type:"text/css",id:d.id}),v=Date.now(),t.contentCssCors&&vn(g,"crossOrigin","anonymous"),t.referrerPolicy&&vn(g,"referrerpolicy",t.referrerPolicy),(c=g.dom).onload=y,c.onerror=m,b=g,Bn(Ut(s),b),vn(g,"href",f)):m():p())}function r(e){return ar((function(t){n(e,f(t,h(pr.value(e))),f(t,h(pr.error(e))))}))}function i(e){var t=Dt._addCacheSuffix(e);ue(a,t).each((function(e){var n;0==--e.count&&(delete a[t],n=e.id,wr(Ut(s),"#"+n).each(Ln))}))}void 0===t&&(t={});var o=0,a={},s=Ot.fromDom(e),l=At(s),u=t.maxLoadTime||5e3;return{load:n,loadAll:function(e,t,n){var i,o=$(e,r);i=o,ar((function(e){var t=[],n=0;0===i.length?e([]):V(i,(function(r,o){var a;r.get((a=o,function(r){t[a]=r,++n>=i.length&&e(t)}))}))})).get((function(e){var r=z(e,(function(e){return e.isValue()}));0<r.fail.length?n(r.fail.map(mr)):t(r.pass.map(mr))}))},unload:i,unloadAll:function(e){V(e,(function(e){i(e)}))},_setReferrerPolicy:function(e){t.referrerPolicy=e}}}sr([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var Dr,Or,Tr=function(e,t){return G(e.dom.childNodes,(function(e){return t(Ot.fromDom(e))})).map(Ot.fromDom)},Er=window.Promise||lr,Ir={requestAnimationFrame:function(e,t){Dr?Dr.then(e):Dr=new Er((function(e){(function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],i=0;i<r.length&&!n;i++)n=window[r[i]+"RequestAnimationFrame"];(n=n||function(e){window.setTimeout(e,0)})(e,t)})(e,t=t||document.body)})).then(e)},setTimeout:Cr,setInterval:xr,setEditorTimeout:function(e,t,n){return Cr((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=xr((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:Sr,throttle:Sr,clearInterval:function(e){return clearInterval(e)},clearTimeout:function(e){return clearTimeout(e)}},Nr=(Or=new WeakMap,{forElement:function(e,t){var n=Fn(e).dom;return ye.from(Or.get(n)).getOrThunk((function(){var e=kr(n,t);return Or.set(n,e),e}))}}),Ar=(Pr.prototype.current=function(){return this.node},Pr.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},Pr.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},Pr.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},Pr.prototype.findSibling=function(e,t,n,r){var i,o;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(i=e[n])return i;for(o=e.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[n])return i}}},Pr.prototype.findPreviousNode=function(e,t,n,r){var i,o,a;if(e&&(i=e[n],!this.rootNode||i!==this.rootNode)){if(i){if(!r)for(a=i[t];a;a=a[t])if(!a[t])return a;return i}return(o=e.parentNode)&&o!==this.rootNode?o:void 0}},Pr);function Pr(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}function Mr(e){var t;return function(n){return t=t||function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n}(e,P),Oe(t,Tt(n))}}function Rr(e){return En(e)&&!mi(e)}function Fr(e){return En(e)&&"br"===Tt(e)}function Br(e){return Ti(e)&&(e=e.parentNode),Oi(e)&&e.hasAttribute("data-mce-caret")}function Lr(e){return Ti(e)&&ki(e.data)}function $r(e){return Br(e)||Lr(e)}function Vr(e){return e.firstChild!==e.lastChild||!Kn(e.firstChild)}function jr(e){var t=e.container();return!!Wn(t)&&(t.data.charAt(e.offset())===Si||e.isAtStart()&&Lr(t.previousSibling))}function zr(e){var t=e.container();return!!Wn(t)&&(t.data.charAt(e.offset()-1)===Si||e.isAtEnd()&&Lr(t.nextSibling))}function Hr(e){return e&&e.hasAttribute("data-mce-caret")?(cn(n=(t=e.getElementsByTagName("br"))[t.length-1])&&n.parentNode.removeChild(n),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null;var t,n}function Ur(e){return Br(e.startContainer)}function Wr(e){return!Li(e)&&(Mi(e)?!Ri(e.parentNode):Fi(e)||Pi(e)||Bi(e)||$i(e))}function qr(e,t){return Wr(e)&&function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if($i(e))return!1;if(Ni(e))return!0}return!0}(e,t)}function Gr(e){return Vi.test(e)}function Yr(e,t){return Wr(e)&&!1===(a=t,Wn(o=e)&&Gr(o.data)&&!1===(n=o,r=Ot.fromDom(a),yr(Ot.fromDom(n),"pre,code",O(Ue,r)).isSome()))||Hn(i=e)&&"A"===i.nodeName&&!i.hasAttribute("href")&&(i.hasAttribute("name")||i.hasAttribute("id"))||ji(e);var n,r,i,o,a}function Kr(e,t){return function(e,t){var n=0;if(Yr(e,e))return!1;var r=e.firstChild;if(!r)return!0;var i=new Ar(r,e);do{if(t){if(Hi(r)){r=i.next(!0);continue}if(zi(r)){r=i.next();continue}}if(Kn(r))n++,r=i.next();else{if(Yr(r,e))return!1;r=i.next()}}while(r);return n<=1}(e.dom,t=void 0===t||t)}function Xr(e,t){return u(e)&&(Yr(e,t)||Rr(Ot.fromDom(e)))}function Jr(e){return"span"===e.nodeName.toLowerCase()&&"bookmark"===e.getAttribute("data-mce-type")}function Zr(e,t){var n,r,i,o={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),Ji[r]||(i="&"+e[n+1]+";",o[r]=i,o[i]=r);return o}}function Qr(e,t){return e.replace(t?qi:Gi,(function(e){return Ji[e]||e}))}function ei(e,t){return e.replace(t?qi:Gi,(function(e){return 1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":Ji[e]||"&#"+e.charCodeAt(0)+";"}))}function ti(e,t,n){return n=n||Qi,e.replace(t?qi:Gi,(function(e){return Ji[e]||n[e]||e}))}function ni(e,t){return(e=Dt.trim(e))?e.split(t||" "):[]}function ri(e,t){var n=ro(e," ",ro(e.toUpperCase()," "));return oo(n,t)}function ii(e){return ri("td th li dt dd figcaption caption details summary",e.getTextBlockElements())}function oi(e,t){var n;return e&&(n={},io(e="string"==typeof e?{"*":e}:e,(function(e,r){n[r]=n[r.toUpperCase()]=("map"===t?ro:ao)(e,/[, ]/)}))),n}function ai(e){function t(t,n,r){var i=e[t];return i?i=ro(i,/[, ]/,ro(i.toUpperCase(),/[, ]/)):(i=to[t])||(i=ri(n,r),to[t]=i),i}var n,r,i,o,a,s,l,u,c={},f={},d=[],p={},m={},g=(n=(e=e||{}).schema,u={},to[n]||(r="id accesskey class dir lang style tabindex title role",i="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",o="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==n&&(r+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",i+=" article aside details dialog figure main header footer hgroup section nav",o+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==n&&(r+=" xml:lang",o=[o,l="acronym applet basefont big font strike tt"].join(" "),io(ni(l),(function(e){v(e,"",o)})),i=[i,s="center dir isindex noframes"].join(" "),a=[i,o].join(" "),io(ni(s),(function(e){v(e,"",a)}))),a=a||[i,o].join(" "),v("html","manifest","head body"),v("head","","base command link meta noscript script style title"),v("title hr noscript br"),v("base","href target"),v("link","href rel media hreflang type sizes hreflang"),v("meta","name http-equiv content charset"),v("style","media type scoped"),v("script","src async defer type charset"),v("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",a),v("address dt dd div caption","",a),v("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",o),v("blockquote","cite",a),v("ol","reversed start type","li"),v("ul","","li"),v("li","value",a),v("dl","","dt dd"),v("a","href target rel media hreflang type",o),v("q","cite",o),v("ins del","cite datetime",a),v("img","src sizes srcset alt usemap ismap width height"),v("iframe","src name width height",a),v("embed","src type width height"),v("object","data type typemustmatch name usemap form width height",[a,"param"].join(" ")),v("param","name value"),v("map","name",[a,"area"].join(" ")),v("area","alt coords shape href target rel media hreflang type"),v("table","border","caption colgroup thead tfoot tbody tr"+("html4"===n?" col":"")),v("colgroup","span","col"),v("col","span"),v("tbody thead tfoot","","tr"),v("tr","","td th"),v("td","colspan rowspan headers",a),v("th","colspan rowspan headers scope abbr",a),v("form","accept-charset action autocomplete enctype method name novalidate target",a),v("fieldset","disabled form name",[a,"legend"].join(" ")),v("label","form for",o),v("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),v("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===n?a:o),v("select","disabled form multiple name required size","option optgroup"),v("optgroup","disabled label","option"),v("option","disabled label selected value"),v("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),v("menu","type label",[a,"li"].join(" ")),v("noscript","",a),"html4"!==n&&(v("wbr"),v("ruby","",[o,"rt rp"].join(" ")),v("figcaption","",a),v("mark rt rp summary bdi","",o),v("canvas","width height",a),v("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[a,"track source"].join(" ")),v("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[a,"track source"].join(" ")),v("picture","","img source"),v("source","src srcset type media sizes"),v("track","kind src srclang label default"),v("datalist","",[o,"option"].join(" ")),v("article section nav aside main header footer","",a),v("hgroup","","h1 h2 h3 h4 h5 h6"),v("figure","",[a,"figcaption"].join(" ")),v("time","datetime",o),v("dialog","open",a),v("command","type label icon disabled checked radiogroup command"),v("output","for form name",o),v("progress","value max",o),v("meter","value min max low high optimum",o),v("details","open",[a,"summary"].join(" ")),v("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==n&&(b("script","language xml:space"),b("style","xml:space"),b("object","declare classid code codebase codetype archive standby align border hspace vspace"),b("embed","align name hspace vspace"),b("param","valuetype type"),b("a","charset name rev shape coords"),b("br","clear"),b("applet","codebase archive code object alt name width height align hspace vspace"),b("img","name longdesc align border hspace vspace"),b("iframe","longdesc frameborder marginwidth marginheight scrolling align"),b("font basefont","size color face"),b("input","usemap align"),b("select"),b("textarea"),b("h1 h2 h3 h4 h5 h6 div p legend caption","align"),b("ul","type compact"),b("li","type"),b("ol dl menu dir","compact"),b("pre","width xml:space"),b("hr","align noshade size width"),b("isindex","prompt"),b("table","summary width frame rules cellspacing cellpadding align bgcolor"),b("col","width align char charoff valign"),b("colgroup","width align char charoff valign"),b("thead","align char charoff valign"),b("tr","align char charoff valign bgcolor"),b("th","axis align char charoff valign nowrap bgcolor width height"),b("form","accept"),b("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),b("tfoot","align char charoff valign"),b("tbody","align char charoff valign"),b("area","nohref"),b("body","background bgcolor text link vlink alink")),"html4"!==n&&(b("input button select textarea","autofocus"),b("input textarea","placeholder"),b("a","download"),b("link script img","crossorigin"),b("img","loading"),b("iframe","sandbox seamless allowfullscreen loading")),io(ni("a form meter progress dfn"),(function(e){u[e]&&delete u[e].children[e]})),delete u.caption.children.table,delete u.script,to[n]=u));function v(e,t,n){function i(e,t){for(var n={},r=0,i=e.length;r<i;r++)n[e[r]]=t||{};return n}var o,a;t=t||"","string"==typeof(n=n||[])&&(n=ni(n));for(var s=ni(e),l=s.length;l--;)a={attributes:i(o=ni([r,t].join(" "))),attributesOrder:o,children:i(n,no)},u[s[l]]=a}function b(e,t){for(var n,r,i,o=ni(e),a=o.length,s=ni(t);a--;)for(n=u[o[a]],r=0,i=s.length;r<i;r++)n.attributes[s[r]]={},n.attributesOrder.push(s[r])}!1===e.verify_html&&(e.valid_elements="*[*]");var y=oi(e.valid_styles),w=oi(e.invalid_styles,"map"),_=oi(e.valid_classes,"map"),C=t("whitespace_elements","pre script noscript style textarea video audio iframe object code"),x=t("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),S=t("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),k=t("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),D="td th iframe video audio object script code",O=t("non_empty_elements",D+" pre",S),T=t("move_caret_before_on_enter_elements",D+" table",S),E=t("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),I=t("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",E),N=t("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");function A(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")}function P(e){var t,n,r,i,o,a,s,l,u,f,h,p,m,g,v,b,y,w,_=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,C=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,x=/[*?+]/;if(e){var S=ni(e,",");for(c["@"]&&(b=c["@"].attributes,y=c["@"].attributesOrder),t=0,n=S.length;t<n;t++)if(o=_.exec(S[t])){if(g=o[1],u=o[2],v=o[3],l=o[5],a={attributes:p={},attributesOrder:m=[]},"#"===g&&(a.paddEmpty=!0),"-"===g&&(a.removeEmpty=!0),"!"===o[4]&&(a.removeEmptyAttrs=!0),b&&(ie(b,(function(e,t){p[t]=e})),m.push.apply(m,y)),l)for(r=0,i=(l=ni(l,"|")).length;r<i;r++)(o=C.exec(l[r]))&&(s={},h=o[1],f=o[2].replace(/[\\:]:/g,":"),g=o[3],w=o[4],"!"===h&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(f),s.required=!0),"-"!==h?(g&&("="===g&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:f,value:w}),s.defaultValue=w),":"===g&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:f,value:w}),s.forcedValue=w),"<"===g&&(s.validValues=ro(w,"?"))),x.test(f)?(a.attributePatterns=a.attributePatterns||[],s.pattern=A(f),a.attributePatterns.push(s)):(p[f]||m.push(f),p[f]=s)):(delete p[f],m.splice(so(m,f),1)));b||"@"!==u||(b=p,y=m),v&&(a.outputName=u,c[v]=a),x.test(u)?(a.pattern=A(u),d.push(a)):c[u]=a}}}function M(e){c={},d=[],P(e),io(g,(function(e,t){f[t]=e.children}))}function R(e){var t=/^(~)?(.+)$/;e&&(to.text_block_elements=to.block_elements=null,io(ni(e,","),(function(e){var n,r=t.exec(e),i="~"===r[1],o=i?"span":"div",a=r[2];f[a]=f[o],p[a]=o,i||(I[a.toUpperCase()]={},I[a]={}),c[a]||(n=c[o],delete(n=oo({},n)).removeEmptyAttrs,delete n.removeEmpty,c[a]=n),io(f,(function(e,t){e[o]&&(f[t]=e=oo({},f[t]),e[a]=e[o])}))})))}function F(t){var n=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;to[e.schema]=null,t&&io(ni(t,","),(function(e){var t,r,i=n.exec(e);i&&(r=i[1],t=r?f[i[2]]:f[i[2]]={"#comment":{}},t=f[i[2]],io(ni(i[3],"|"),(function(e){"-"===r?delete t[e]:t[e]={}})))}))}function B(e){var t,n=c[e];if(n)return n;for(t=d.length;t--;)if((n=d[t]).pattern.test(e))return n}io((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){m[e]=new RegExp("</"+e+"[^>]*>","gi")})),e.valid_elements?M(e.valid_elements):(io(g,(function(e,t){c[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},f[t]=e.children})),"html5"!==e.schema&&io(ni("strong/b em/i"),(function(e){var t=ni(e,"/");c[t[1]].outputName=t[0]})),io(N,(function(t,n){c[n]&&(e.padd_empty_block_inline_children&&(c[n].paddInEmptyBlock=!0),c[n].removeEmpty=!0)})),io(ni("ol ul blockquote a table tbody"),(function(e){c[e]&&(c[e].removeEmpty=!0)})),io(ni("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){c[e].paddEmpty=!0})),io(ni("span"),(function(e){c[e].removeEmptyAttrs=!0}))),R(e.custom_elements),F(e.valid_children),P(e.extended_valid_elements),F("+ol[ul|ol],+ul[ul|ol]"),io({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(e,t){c[t]&&(c[t].parentsRequired=ni(e))})),e.invalid_elements&&io(ao(e.invalid_elements),(function(e){c[e]&&delete c[e]})),B("span")||P("span[!data-mce-type|*]");var L=h(y),$=h(w),V=h(_),j=h(k),z=h(I),H=h(E),U=h(N),W=h(S),q=h(x),G=h(O),Y=h(T),K=h(C),X=h(m),J=h(p);return{children:f,elements:c,getValidStyles:L,getValidClasses:V,getBlockElements:z,getInvalidStyles:$,getShortEndedElements:W,getTextBlockElements:H,getTextInlineElements:U,getBoolAttrs:j,getElementRule:B,getSelfClosingElements:q,getNonEmptyElements:G,getMoveCaretBeforeOnEnterElements:Y,getWhiteSpaceElements:K,getSpecialElements:X,isValidChild:function(e,t){var n=f[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:function(e,t){var n,r,i=B(e);if(i){if(!t)return!0;if(i.attributes[t])return!0;if(n=i.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},getCustomElements:J,addValidElements:P,setValidElements:M,addCustomElements:R,addValidChildren:F}}function si(e,t,n,r){function i(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e}return"#"+i(t)+i(n)+i(r)}function li(e,t){var n,r,i=this,o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,a=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,s=/\s*([^:]+):\s*([^;]+);?/g,l=/\s+$/,u={},c=Ci;e=e||{},t&&(n=t.getValidStyles(),r=t.getInvalidStyles());for(var f=("\\\" \\' \\; \\: ; : "+c).split(" "),d=0;d<f.length;d++)u[f[d]]=c+d,u[c+d]=f[d];return{toHex:function(e){return e.replace(o,si)},parse:function(t){function n(e,t,n){var r=S[e+"-top"+t];if(r){var i=S[e+"-right"+t];if(i){var o=S[e+"-bottom"+t];if(o){var a=S[e+"-left"+t];if(a){var s=[r,i,o,a];for(d=s.length-1;d--&&s[d]===s[d+1];);-1<d&&n||(S[e+t]=-1===d?s[0]:s.join(" "),delete S[e+"-top"+t],delete S[e+"-right"+t],delete S[e+"-bottom"+t],delete S[e+"-left"+t])}}}}}function r(e){var t,n=S[e];if(n){for(t=(n=n.split(" ")).length;t--;)if(n[t]!==n[0])return;return S[e]=n[0],1}}function f(e){return w=!0,u[e]}function h(e,t){return w&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return u[e]}))),t?e:e.replace(/\\([\'\";:])/g,"$1")}function p(e){return String.fromCharCode(parseInt(e.slice(1),16))}function m(e){return e.replace(/\\[0-9a-f]+/gi,p)}function g(t,n,r,i,o,a){if(o=o||a)return"'"+(o=h(o)).replace(/\'/g,"\\'")+"'";if(n=h(n||r||i),!e.allow_script_urls){var s=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(s))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(s))return""}return"url('"+(n=k?k.call(D,n,"style"):n).replace(/\'/g,"\\'")+"')"}var v,b,y,w,_,C,x,S={},k=e.url_converter,D=e.url_converter_scope||i;if(t){for(t=(t=t.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,f).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,f)}));v=s.exec(t);)s.lastIndex=v.index+v[0].length,b=v[1].replace(l,"").toLowerCase(),y=v[2].replace(l,""),b&&y&&(b=m(b),y=m(y),-1===b.indexOf(c)&&-1===b.indexOf('"')&&(e.allow_script_urls||"behavior"!==b&&!/expression\s*\(|\/\*|\*\//.test(y))&&("font-weight"===b&&"700"===y?y="bold":"color"!==b&&"background-color"!==b||(y=y.toLowerCase()),y=(y=y.replace(o,si)).replace(a,g),S[b]=w?h(y,!0):y));n("border","",!0),n("border","-width"),n("border","-color"),n("border","-style"),n("padding",""),n("margin",""),C="border-style",x="border-color",r(_="border-width")&&r(C)&&r(x)&&(S.border=S[_]+" "+S[C]+" "+S[x],delete S[_],delete S[C],delete S[x]),"medium none"===S.border&&delete S.border,"none"===S["border-image"]&&delete S["border-image"]}return S},serialize:function(e,t){function i(t){var r,i=n[t];if(i)for(var a=0,s=i.length;a<s;a++)t=i[a],(r=e[t])&&(o+=(0<o.length?" ":"")+t+": "+r+";")}var o="";return t&&n?(i("*"),i(t)):ie(e,(function(e,n){var i;!e||r&&((i=r["*"])&&i[n]||(i=r[t])&&i[n])||(o+=(0<o.length?" ":"")+n+": "+e+";")})),o}}}function ui(e){return e instanceof Event||k(e.initEvent)}function ci(e,t,n,r){var i,o,a=function(e){var t,n=null!=r?r:{};for(t in e)Oe(lo,t)||(n[t]=e[t]);return u(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n}(t);return a.type=e,l(a.target)&&(a.target=null!==(i=a.srcElement)&&void 0!==i?i:n),(l((o=t).preventDefault)||ui(o))&&(a.preventDefault=function(){a.defaultPrevented=!0,a.isDefaultPrevented=P,k(t.preventDefault)?t.preventDefault():ui(t)&&(t.returnValue=!1)},a.stopPropagation=function(){a.cancelBubble=!0,a.isPropagationStopped=P,k(t.stopPropagation)?t.stopPropagation():ui(t)&&(t.cancelBubble=!0)},a.stopImmediatePropagation=function(){a.isImmediatePropagationStopped=P,a.stopPropagation()},a.isDefaultPrevented!==P&&a.isDefaultPrevented!==A&&(a.isDefaultPrevented=!0===a.defaultPrevented?P:A,a.isPropagationStopped=!0===a.cancelBubble?P:A,a.isImmediatePropagationStopped=A)),a}function fi(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)}function di(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)}function hi(e,t){var n,r,i,o,a=ci(e.type,e,document,t);return u(o=e)&&uo.test(o.type)&&S(e.pageX)&&!S(e.clientX)&&(r=(n=a.target.ownerDocument||document).documentElement,i=n.body,a.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),a.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),S(a.metaKey)&&(a.metaKey=!1),a}var pi=Mr(["h1","h2","h3","h4","h5","h6"]),mi=Mr(["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"]),gi=Mr(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),vi=Mr(["ul","ol","dl"]),bi=Mr(["li","dd","dt"]),yi=Mr(["thead","tbody","tfoot"]),wi=Mr(["td","th"]),_i=Mr(["pre","script","textarea","style"]),Ci="\ufeff",xi=" ",Si=Ci,ki=function(e){return e===Ci},Di=function(e){return e.replace(/\uFEFF/g,"")},Oi=Hn,Ti=Wn,Ei=function(e){return Ti(e)&&e.data[0]===Si},Ii=function(e){return Ti(e)&&e.data[e.data.length-1]===Si},Ni=Jn,Ai=Zn,Pi=Kn,Mi=Wn,Ri=sn(["script","style","textarea"]),Fi=sn(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Bi=sn(["table"]),Li=$r,$i=function(e){return!1===(Hn(t=e)&&"true"===t.getAttribute("unselectable"))&&Ai(e);var t},Vi=/^[ \t\r\n]*$/,ji=un("data-mce-bookmark"),zi=un("data-mce-bogus"),Hi=function(e){return Hn(e)&&"all"===e.getAttribute("data-mce-bogus")},Ui=function(e,t,n){var r=n||t;if(Hn(t)&&Jr(t))return t;for(var i,o,a,s,l,u,c,f,d,h,p,m=t.childNodes,g=m.length-1;0<=g;g--)Ui(e,m[g],r);return!Hn(t)||1===(i=t.childNodes).length&&Jr(i[0])&&t.parentNode.insertBefore(i[0],t),Yn(a=t)||Gn(a)||Yr(t,r)||Hn(o=t)&&0<o.childNodes.length||(l=r,Wn(s=t)&&0<s.data.length&&(f=new Ar(u=s,c=l).prev(!1),d=new Ar(u,c).next(!1),h=S(f)||Xr(f,c),p=S(d)||Xr(d,c),h&&p))||e.remove(t),t},Wi=Dt.makeMap,qi=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gi=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Yi=/[<>&\"\']/g,Ki=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Xi={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Ji={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},Zi={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},Qi=Zr("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),eo={encodeRaw:Qr,encodeAllRaw:function(e){return(""+e).replace(Yi,(function(e){return Ji[e]||e}))},encodeNumeric:ei,encodeNamed:ti,getEncodeFunc:function(e,t){var n=Zr(t)||Qi,r=Wi(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?qi:Gi,(function(e){return void 0!==Ji[e]?Ji[e]:void 0!==n[e]?n[e]:1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))}:r.named?t?function(e,t){return ti(e,t,n)}:ti:r.numeric?ei:Qr},decode:function(e){return e.replace(Ki,(function(e,t){return t?65535<(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):Xi[t]||String.fromCharCode(t):Zi[e]||Qi[e]||(n=e,(r=Ot.fromTag("div").dom).innerHTML=n,r.textContent||r.innerText||n);var n,r}))}},to={},no={},ro=Dt.makeMap,io=Dt.each,oo=Dt.extend,ao=Dt.explode,so=Dt.inArray,lo={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},uo=/^(?:mouse|contextmenu)|click/,co=(fo.prototype.bind=function(e,t,n,r){function i(e){f.executeHandlers(hi(e||d.event),o)}var o,a,s,l,u,c,f=this,d=window;if(e&&3!==e.nodeType&&8!==e.nodeType){e[f.expando]?o=e[f.expando]:(o=f.count++,e[f.expando]=o,f.events[o]={}),r=r||e;for(var h=t.split(" "),p=h.length;p--;)u=i,l=c=!1,"DOMContentLoaded"===(s=h[p])&&(s="ready"),f.domLoaded&&"ready"===s&&"complete"===e.readyState?n.call(r,hi({type:s})):(f.hasMouseEnterLeave||(l=f.mouseEnterLeave[s])&&(u=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else for(;n&&n!==t;)n=n.parentNode;n||((e=hi(e||d.event)).type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,f.executeHandlers(e,o))}),f.hasFocusIn||"focusin"!==s&&"focusout"!==s||(c=!0,l="focusin"===s?"focus":"blur",u=function(e){(e=hi(e||d.event)).type="focus"===e.type?"focusin":"focusout",f.executeHandlers(e,o)}),(a=f.events[o][s])?"ready"===s&&f.domLoaded?n(hi({type:s})):a.push({func:n,scope:r}):(f.events[o][s]=a=[{func:n,scope:r}],a.fakeName=l,a.capture=c,a.nativeHandler=u,"ready"===s?function(e,t,n){var r,i=e.document,o={type:"ready"};n.domLoaded?t(o):(r=function(){di(e,"DOMContentLoaded",r),di(e,"load",r),n.domLoaded||(n.domLoaded=!0,t(o)),e=null},"complete"===i.readyState||"interactive"===i.readyState&&i.body?r():fi(e,"DOMContentLoaded",r),n.domLoaded||fi(e,"load",r))}(e,u,f):fi(e,l||s,u,c)));return e=a=null,n}},fo.prototype.unbind=function(e,t,n){var r,i,o;if(!e||3===e.nodeType||8===e.nodeType)return this;var a=e[this.expando];if(a){if(o=this.events[a],t){for(var s,l,u,c,f=t.split(" "),d=f.length;d--;)if(c=o[i=f[d]]){if(n)for(r=c.length;r--;)c[r].func===n&&(s=c.nativeHandler,l=c.fakeName,u=c.capture,(c=c.slice(0,r).concat(c.slice(r+1))).nativeHandler=s,c.fakeName=l,c.capture=u,o[i]=c);n&&0!==c.length||(delete o[i],di(e,c.fakeName||i,c.nativeHandler,c.capture))}}else ie(o,(function(t,n){di(e,t.fakeName||n,t.nativeHandler,t.capture)})),o={};for(i in o)if(Oe(o,i))return this;delete this.events[a];try{delete e[this.expando]}catch(t){e[this.expando]=null}}return this},fo.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;for(var i=hi({type:t,target:e},n);(r=e[this.expando])&&this.executeHandlers(i,r),(e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow)&&!i.isPropagationStopped(););return this},fo.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),(e=e.getElementsByTagName?e:e.document)&&e.getElementsByTagName)for(this.unbind(e),t=(n=e.getElementsByTagName("*")).length;t--;)(e=n[t])[this.expando]&&this.unbind(e);return this},fo.prototype.destroy=function(){this.events={}},fo.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},fo.prototype.executeHandlers=function(e,t){var n=this.events[t],r=n&&n[e.type];if(r)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},fo.Event=new fo,fo);function fo(){this.domLoaded=!1,this.events={},this.count=1,this.expando="mce-data-"+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}function ho(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}var po,mo,go,vo,bo,yo,wo,_o,Co,xo,So,ko,Do,Oo,To,Eo,Io,No="sizzle"+-new Date,Ao=window.document,Po=0,Mo=0,Ro=da(),Fo=da(),Bo=da(),Lo=function(e,t){return e===t&&(xo=!0),0},$o="undefined",Vo={}.hasOwnProperty,jo=[],zo=jo.pop,Ho=jo.push,Uo=jo.push,Wo=jo.slice,qo=jo.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},Go="[\\x20\\t\\r\\n\\f]",Yo="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Ko="\\["+Go+"*("+Yo+")(?:"+Go+"*([*^$|!~]?=)"+Go+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Yo+"))|)"+Go+"*\\]",Xo=":("+Yo+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ko+")*)|.*)\\)|)",Jo=new RegExp("^"+Go+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Go+"+$","g"),Zo=new RegExp("^"+Go+"*,"+Go+"*"),Qo=new RegExp("^"+Go+"*([>+~]|"+Go+")"+Go+"*"),ea=new RegExp("="+Go+"*([^\\]'\"]*?)"+Go+"*\\]","g"),ta=new RegExp(Xo),na=new RegExp("^"+Yo+"$"),ra={ID:new RegExp("^#("+Yo+")"),CLASS:new RegExp("^\\.("+Yo+")"),TAG:new RegExp("^("+Yo+"|[*])"),ATTR:new RegExp("^"+Ko),PSEUDO:new RegExp("^"+Xo),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Go+"*(even|odd|(([+-]|)(\\d*)n|)"+Go+"*(?:([+-]|)"+Go+"*(\\d+)|))"+Go+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+Go+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Go+"*((?:-\\d)?\\d*)"+Go+"*\\)|)(?=[^-]|$)","i")},ia=/^(?:input|select|textarea|button)$/i,oa=/^h\d$/i,aa=/^[^{]+\{\s*\[native \w/,sa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,la=/[+~]/,ua=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+Go+"?|("+Go+")|.)","ig");try{Uo.apply(jo=Wo.call(Ao.childNodes),Ao.childNodes),jo[Ao.childNodes.length].nodeType}catch(o){Uo={apply:jo.length?function(e,t){Ho.apply(e,Wo.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var fa=function(e,t,n,r){var i,o,a,s,l,u,c,f,d,h;if((t?t.ownerDocument||t:Ao)!==ko&&So(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=(t=t||ko).nodeType)&&9!==s)return[];if(Oo&&!r){if(i=sa.exec(e))if(a=i[1]){if(9===s){if(!(o=t.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&Io(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return Uo.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&po.getElementsByClassName)return Uo.apply(n,t.getElementsByClassName(a)),n}if(po.qsa&&(!To||!To.test(e))){if(f=c=No,d=t,h=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(u=bo(e),(c=t.getAttribute("id"))?f=c.replace(ua,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",l=u.length;l--;)u[l]=f+ba(u[l]);d=la.test(e)&&ga(t.parentNode)||t,h=u.join(",")}if(h)try{return Uo.apply(n,d.querySelectorAll(h)),n}catch(e){}finally{c||t.removeAttribute("id")}}}return wo(e.replace(Jo,"$1"),t,n,r)};function da(){var e=[];function t(n,r){return e.push(n+" ")>mo.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function ha(e){return e[No]=!0,e}function pa(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ma(e){return ha((function(t){return t=+t,ha((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ga(e){return e&&typeof e.getElementsByTagName!=$o&&e}function va(){}function ba(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ya(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=Mo++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,u=[Po,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(l=t[No]||(t[No]={}))[r])&&s[0]===Po&&s[1]===o)return u[2]=s[2];if((l[r]=u)[2]=e(t,n,a))return!0}}}function wa(e){return 1<e.length?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function _a(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function Ca(e){return void 0!==e}function xa(e){return"string"==typeof e}function Sa(e,t){var n,r=(t=t||Na).createElement("div"),i=t.createDocumentFragment();for(r.innerHTML=e;n=r.firstChild;)i.appendChild(n);return i}function ka(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function Da(e,t,n){var r,i;return t=Ja(t)[0],e.each((function(){n&&r===this.parentNode||(r=this.parentNode,i=t.cloneNode(!1),this.parentNode.insertBefore(i,this)),i.appendChild(this)})),e}function Oa(e,t){return new Ja.fn.init(e,t)}function Ta(e){return null==e?"":(""+e).replace(Ua,"")}function Ea(e,t){var n,r,i,o;if(e)if(void 0===(n=e.length)){for(r in e)if(e.hasOwnProperty(r)&&(o=e[r],!1===t.call(o,r,o)))break}else for(i=0;i<n&&(o=e[i],!1!==t.call(o,i,o));i++);return e}function Ia(e,t){var n=[];return Ea(e,(function(e,r){t(r,e)&&n.push(r)})),n}po=fa.support={},vo=fa.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},So=fa.setDocument=function(e){var t,n=e?e.ownerDocument||e:Ao,r=n.defaultView;return n!==ko&&9===n.nodeType&&n.documentElement?(Do=(ko=n).documentElement,Oo=!vo(n),r&&r!==function(e){try{return e.top}catch(e){}return null}(r)&&(r.addEventListener?r.addEventListener("unload",(function(){So()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){So()}))),po.attributes=!0,po.getElementsByTagName=!0,po.getElementsByClassName=aa.test(n.getElementsByClassName),po.getById=!0,mo.find.ID=function(e,t){if(typeof t.getElementById!=$o&&Oo){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},mo.filter.ID=function(e){var t=e.replace(ca,ho);return function(e){return e.getAttribute("id")===t}},mo.find.TAG=po.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!=$o)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},mo.find.CLASS=po.getElementsByClassName&&function(e,t){if(Oo)return t.getElementsByClassName(e)},Eo=[],To=[],po.disconnectedMatch=!0,To=To.length&&new RegExp(To.join("|")),Eo=Eo.length&&new RegExp(Eo.join("|")),t=aa.test(Do.compareDocumentPosition),Io=t||aa.test(Do.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Lo=t?function(e,t){return e===t?(xo=!0,0):(r=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!po.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===Ao&&Io(Ao,e)?-1:t===n||t.ownerDocument===Ao&&Io(Ao,t)?1:Co?qo.call(Co,e)-qo.call(Co,t):0:4&r?-1:1);var r}:function(e,t){if(e===t)return xo=!0,0;var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:Co?qo.call(Co,e)-qo.call(Co,t):0;if(o===a)return pa(e,t);for(r=e;r=r.parentNode;)s.unshift(r);for(r=t;r=r.parentNode;)l.unshift(r);for(;s[i]===l[i];)i++;return i?pa(s[i],l[i]):s[i]===Ao?-1:l[i]===Ao?1:0},n):ko},fa.matches=function(e,t){return fa(e,null,null,t)},fa.matchesSelector=function(e,t){if((e.ownerDocument||e)!==ko&&So(e),t=t.replace(ea,"='$1']"),po.matchesSelector&&Oo&&(!Eo||!Eo.test(t))&&(!To||!To.test(t)))try{var n=(void 0).call(e,t);if(n||po.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<fa(t,ko,null,[e]).length},fa.contains=function(e,t){return(e.ownerDocument||e)!==ko&&So(e),Io(e,t)},fa.attr=function(e,t){(e.ownerDocument||e)!==ko&&So(e);var n=mo.attrHandle[t.toLowerCase()],r=n&&Vo.call(mo.attrHandle,t.toLowerCase())?n(e,t,!Oo):void 0;return void 0!==r?r:po.attributes||!Oo?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},fa.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},fa.uniqueSort=function(e){var t,n=[],r=0,i=0;if(xo=!po.detectDuplicates,Co=!po.sortStable&&e.slice(0),e.sort(Lo),xo){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return Co=null,e},go=fa.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=go(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=go(t);return n},(mo=fa.selectors={cacheLength:50,createPseudo:ha,match:ra,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ca,ho),e[3]=(e[3]||e[4]||e[5]||"").replace(ca,ho),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||fa.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&fa.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ra.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ta.test(n)&&(t=bo(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ca,ho).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Ro[e+" "];return t||(t=new RegExp("(^|"+Go+")"+e+"("+Go+"|$)"))&&Ro(e,(function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!=$o&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=fa.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1<i.indexOf(n):"$="===t?n&&i.slice(-n.length)===n:"~="===t?-1<(" "+i+" ").indexOf(n):"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,h,p,m=o!=a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),b=!l&&!s;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&b){for(h=(u=(c=g[No]||(g[No]={}))[e]||[])[0]===Po&&u[1],d=u[0]===Po&&u[2],f=h&&g.childNodes[h];f=++h&&f&&f[m]||(d=h=0)||p.pop();)if(1===f.nodeType&&++d&&f===t){c[e]=[Po,h,d];break}}else if(b&&(u=(t[No]||(t[No]={}))[e])&&u[0]===Po)d=u[1];else for(;(f=++h&&f&&f[m]||(d=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(b&&((f[No]||(f[No]={}))[e]=[Po,d]),f!==t)););return(d-=i)===r||d%r==0&&0<=d/r}}},PSEUDO:function(e,t){var n,r=mo.pseudos[e]||mo.setFilters[e.toLowerCase()]||fa.error("unsupported pseudo: "+e);return r[No]?r(t):1<r.length?(n=[e,e,"",t],mo.setFilters.hasOwnProperty(e.toLowerCase())?ha((function(e,n){for(var i,o=r(e,t),a=o.length;a--;)e[i=qo.call(e,o[a])]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:ha((function(e){var t=[],n=[],r=yo(e.replace(Jo,"$1"));return r[No]?ha((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ha((function(e){return function(t){return 0<fa(e,t).length}})),contains:ha((function(e){return e=e.replace(ca,ho),function(t){return-1<(t.textContent||t.innerText||go(t)).indexOf(e)}})),lang:ha((function(e){return na.test(e||"")||fa.error("unsupported lang: "+e),e=e.replace(ca,ho).toLowerCase(),function(t){var n;do{if(n=Oo?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Do},focus:function(e){return e===ko.activeElement&&(!ko.hasFocus||ko.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!mo.pseudos.empty(e)},header:function(e){return oa.test(e.nodeName)},input:function(e){return ia.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ma((function(){return[0]})),last:ma((function(e,t){return[t-1]})),eq:ma((function(e,t,n){return[n<0?n+t:n]})),even:ma((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ma((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ma((function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e})),gt:ma((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=mo.pseudos.eq,V(["radio","checkbox","file","password","image"],(function(e){var t;mo.pseudos[e]=(t=e,function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t})})),V(["submit","reset"],(function(e){var t;mo.pseudos[e]=(t=e,function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t})})),va.prototype=mo.filters=mo.pseudos,mo.setFilters=new va,bo=fa.tokenize=function(e,t){var n,r,i,o,a,s,l,u=Fo[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=mo.preFilter;a;){for(o in n&&!(r=Zo.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=Qo.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(Jo," ")}),a=a.slice(n.length)),mo.filter)mo.filter.hasOwnProperty(o)&&(!(r=ra[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?fa.error(e):Fo(e,s).slice(0)},yo=fa.compile=function(e,t){var n,r,i,o,a,s=[],l=[],u=Bo[e+" "];if(!u){for(n=(t=t||bo(e)).length;n--;)((u=function e(t){for(var n,r,i,o=t.length,a=mo.relative[t[0].type],s=a||mo.relative[" "],l=a?1:0,u=ya((function(e){return e===n}),s,!0),c=ya((function(e){return-1<qo.call(n,e)}),s,!0),f=[function(e,t,r){var i=!a&&(r||t!==_o)||((n=t).nodeType?u:c)(e,t,r);return n=null,i}];l<o;l++)if(r=mo.relative[t[l].type])f=[ya(wa(f),r)];else{if((r=mo.filter[t[l].type].apply(null,t[l].matches))[No]){for(i=++l;i<o&&!mo.relative[t[i].type];i++);return function e(t,n,r,i,o,a){return i&&!i[No]&&(i=e(i)),o&&!o[No]&&(o=e(o,a)),ha((function(e,a,s,l){var u,c,f,d=[],h=[],p=a.length,m=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)fa(e,t[r],n);return n}(n||"*",s.nodeType?[s]:s,[]),g=!t||!e&&n?m:_a(m,d,t,s,l),v=r?o||(e?t:p||i)?[]:a:g;if(r&&r(g,v,s,l),i)for(u=_a(v,h),i(u,[],s,l),c=u.length;c--;)(f=u[c])&&(v[h[c]]=!(g[h[c]]=f));if(e){if(o||t){if(o){for(u=[],c=v.length;c--;)(f=v[c])&&u.push(g[c]=f);o(null,v=[],u,l)}for(c=v.length;c--;)(f=v[c])&&-1<(u=o?qo.call(e,f):d[c])&&(e[u]=!(a[u]=f))}}else v=_a(v===a?v.splice(p,v.length):v),o?o(null,a,v,l):Uo.apply(a,v)}))}(1<l&&wa(f),1<l&&ba(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(Jo,"$1"),r,l<i&&e(t.slice(l,i)),i<o&&e(t=t.slice(i)),i<o&&ba(t))}f.push(r)}return wa(f)}(t[n]))[No]?s:l).push(u);(u=Bo(e,(r=l,o=0<(i=s).length,a=0<r.length,o?ha(c):c))).selector=e}function c(e,t,n,s,l){var u,c,f,d=0,h="0",p=e&&[],m=[],g=_o,v=e||a&&mo.find.TAG("*",l),b=Po+=null==g?1:Math.random()||.1,y=v.length;for(l&&(_o=t!==ko&&t);h!==y&&null!=(u=v[h]);h++){if(a&&u){for(c=0;f=r[c++];)if(f(u,t,n)){s.push(u);break}l&&(Po=b)}o&&((u=!f&&u)&&d--,e&&p.push(u))}if(d+=h,o&&h!==d){for(c=0;f=i[c++];)f(p,m,t,n);if(e){if(0<d)for(;h--;)p[h]||m[h]||(m[h]=zo.call(s));m=_a(m)}Uo.apply(s,m),l&&!e&&0<m.length&&1<d+i.length&&fa.uniqueSort(s)}return l&&(Po=b,_o=g),p}return u},wo=fa.select=function(e,t,n,r){var i,o,a,s,l,u="function"==typeof e&&e,c=!r&&bo(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&po.getById&&9===t.nodeType&&Oo&&mo.relative[o[1].type]){if(!(t=(mo.find.ID(a.matches[0].replace(ca,ho),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=ra.needsContext.test(e)?0:o.length;i--&&(a=o[i],!mo.relative[s=a.type]);)if((l=mo.find[s])&&(r=l(a.matches[0].replace(ca,ho),la.test(o[0].type)&&ga(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&ba(o)))return Uo.apply(n,r),n;break}}return(u||yo(e,c))(r,t,!Oo,n,la.test(e)&&ga(t.parentNode)||t),n},po.sortStable=No.split("").sort(Lo).join("")===No,po.detectDuplicates=!!xo,So(),po.sortDetached=!0;var Na=document,Aa=Array.prototype.push,Pa=Array.prototype.slice,Ma=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Ra=co.Event,Fa=Dt.makeMap("children,contents,next,prev"),Ba=function(e,t,n,r){var i;if(xa(t))t=Sa(t,Wa(e[0]));else if(t.length&&!t.nodeType){if(t=Ja.makeArray(t),r)for(i=t.length-1;0<=i;i--)Ba(e,t[i],n,r);else for(i=0;i<t.length;i++)Ba(e,t[i],n,r);return e}if(t.nodeType)for(i=e.length;i--;)n.call(e[i],t);return e},La=Dt.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),$a=Dt.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),Va={for:"htmlFor",class:"className",readonly:"readOnly"},ja={float:"cssFloat"},za={},Ha={},Ua=/^\s*|\s*$/g,Wa=function(e){return e?9===e.nodeType?e:e.ownerDocument:Na};function qa(e,t,n){var r=[],i=e[t];for("string"!=typeof n&&n instanceof Ja&&(n=n[0]);i&&9!==i.nodeType;){if(void 0!==n){if(i===n)break;if("string"==typeof n&&Ja(i).is(n))break}1===i.nodeType&&r.push(i),i=i[t]}return r}function Ga(e,t,n,r){var i=[];for(r instanceof Ja&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"==typeof r&&Ja(e).is(r))break}i.push(e)}return i}function Ya(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null}function Ka(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName)||null;t.attr("data-mce-style",r)}function Xa(e,t){var n,r,i=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(i++,n=r);return i}Oa.fn=Oa.prototype={constructor:Oa,selector:"",context:null,length:0,init:function(e,t){var n,r,i=this;if(!e)return i;if(e.nodeType)return i.context=i[0]=e,i.length=1,i;if(t&&t.nodeType)i.context=t;else{if(t)return Ja(e).attr(t);i.context=t=document}if(xa(e)){if(!(n="<"===(i.selector=e).charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Ma.exec(e)))return Ja(t).find(e);if(n[1])for(r=Sa(e,Wa(t)).firstChild;r;)Aa.call(i,r),r=r.nextSibling;else{if(!(r=Wa(t).getElementById(n[2])))return i;if(r.id!==n[2])return i.find(e);i.length=1,i[0]=r}}else this.add(e,!1);return i},toArray:function(){return Dt.toArray(this)},add:function(e,t){var n,r;if(xa(e))return this.add(Ja(e));if(!1!==t)for(n=Ja.unique(this.toArray().concat(Ja.makeArray(e))),this.length=n.length,r=0;r<n.length;r++)this[r]=n[r];else Aa.apply(this,Ja.makeArray(e));return this},attr:function(e,t){var n,r=this;if("object"==typeof e)Ea(e,(function(e,t){r.attr(e,t)}));else{if(!Ca(t)){if(r[0]&&1===r[0].nodeType){if((n=za[e])&&n.get)return n.get(r[0],e);if($a[e])return r.prop(e)?e:void 0;null===(t=r[0].getAttribute(e,2))&&(t=void 0)}return t}this.each((function(){var n;1===this.nodeType&&((n=za[e])&&n.set?n.set(this,t):null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2))}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if("object"==typeof(e=Va[e]||e))Ea(e,(function(e,t){n.prop(e,t)}));else{if(!Ca(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each((function(){1===this.nodeType&&(this[e]=t)}))}return n},css:function(e,t){function n(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))}function r(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))}var i,o,a=this;if("object"==typeof e)Ea(e,(function(e,t){a.css(e,t)}));else if(Ca(t))e=n(e),"number"!=typeof t||La[e]||(t=t.toString()+"px"),a.each((function(){var n=this.style;if((o=Ha[e])&&o.set)o.set(this,t);else{try{this.style[ja[e]||e]=t}catch(n){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(r(e)):n.removeAttribute(e))}}));else{if(i=a[0],(o=Ha[e])&&o.get)return o.get(i);if(!i.ownerDocument.defaultView)return i.currentStyle?i.currentStyle[n(e)]:"";try{return i.ownerDocument.defaultView.getComputedStyle(i,null).getPropertyValue(r(e))}catch(n){return}}return a},remove:function(){for(var e,t=this.length;t--;)e=this[t],Ra.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var e,t=this.length;t--;)for(e=this[t];e.firstChild;)e.removeChild(e.firstChild);return this},html:function(e){var t;if(Ca(e)){t=this.length;try{for(;t--;)this[t].innerHTML=e}catch(o){Ja(this[t]).empty().append(e)}return this}return this[0]?this[0].innerHTML:""},text:function(e){var t;if(Ca(e)){for(t=this.length;t--;)"innerText"in this[t]?this[t].innerText=e:this[0].textContent=e;return this}return this[0]?this[0].innerText||this[0].textContent:""},append:function(){return Ba(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return Ba(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){return this[0]&&this[0].parentNode?Ba(this,arguments,(function(e){this.parentNode.insertBefore(e,this)})):this},after:function(){return this[0]&&this[0].parentNode?Ba(this,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):this},appendTo:function(e){return Ja(e).append(this),this},prependTo:function(e){return Ja(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return Da(this,e)},wrapAll:function(e){return Da(this,e,!0)},wrapInner:function(e){return this.each((function(){Ja(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Ja(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Ja(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!=typeof e||(-1!==e.indexOf(" ")?Ea(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var i,o=ka(r,e);o!==t&&(i=r.className,o?r.className=Ta((" "+i+" ").replace(" "+e+" "," ")):r.className+=i?" "+e:e)}))),n},hasClass:function(e){return ka(this[0],e)},each:function(e){return Ea(this,e)},on:function(e,t){return this.each((function(){Ra.bind(this,e,t)}))},off:function(e,t){return this.each((function(){Ra.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"==typeof e?Ra.fire(this,e.type,e):Ra.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Ja(Pa.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){for(var t=[],n=0,r=this.length;n<r;n++)Ja.find(e,this[n],t);return Ja(t)},filter:function(e){return Ja("function"==typeof e?Ia(this.toArray(),(function(t,n){return e(n,t)})):Ja.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Ja&&(e=e[0]),this.each((function(n,r){for(;r;){if("string"==typeof e&&Ja(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Ja(t)},offset:function(e){var t,n,r,i,o=0,a=0;return e?this.css(e):((t=this[0])&&(r=(n=t.ownerDocument).documentElement,t.getBoundingClientRect&&(o=(i=t.getBoundingClientRect()).left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=i.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:o,top:a})},push:Aa,sort:Array.prototype.sort,splice:Array.prototype.splice},Dt.extend(Oa,{extend:Dt.extend,makeArray:function(e){return e&&e===e.window||e.nodeType?[e]:Dt.toArray(e)},inArray:function(e,t){var n;if(t.indexOf)return t.indexOf(e);for(n=t.length;n--;)if(t[n]===e)return n;return-1},isArray:Dt.isArray,each:Ea,trim:Ta,grep:Ia,find:fa,expr:fa.selectors,unique:fa.uniqueSort,text:fa.getText,contains:fa.contains,filter:function(e,t,n){var r=t.length;for(n&&(e=":not("+e+")");r--;)1!==t[r].nodeType&&t.splice(r,1);return 1===t.length?Ja.find.matchesSelector(t[0],e)?[t[0]]:[]:Ja.find.matches(e,t)}}),Ea({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return qa(e,"parentNode")},next:function(e){return Ya(e,"nextSibling",1)},prev:function(e){return Ya(e,"previousSibling",1)},children:function(e){return Ga(e.firstChild,"nextSibling",1)},contents:function(e){return Dt.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){Oa.fn[e]=function(n){var r=[];this.each((function(){var e=t.call(r,this,n,r);e&&(Ja.isArray(e)?r.push.apply(r,e):r.push(e))})),1<this.length&&(Fa[e]||(r=Ja.unique(r)),0===e.indexOf("parents")&&(r=r.reverse()));var i=Ja(r);return n?i.filter(n):i}})),Ea({parentsUntil:function(e,t){return qa(e,"parentNode",t)},nextUntil:function(e,t){return Ga(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Ga(e,"previousSibling",1,t).slice(1)}},(function(e,t){Oa.fn[e]=function(n,r){var i=[];this.each((function(){var e=t.call(i,this,n,i);e&&(Ja.isArray(e)?i.push.apply(i,e):i.push(e))})),1<this.length&&(i=Ja.unique(i),0!==e.indexOf("parents")&&"prevUntil"!==e||(i=i.reverse()));var o=Ja(i);return r?o.filter(r):o}})),Oa.fn.is=function(e){return!!e&&0<this.filter(e).length},Oa.fn.init.prototype=Oa.fn,Oa.overrideDefaults=function(e){var t,n=function(r,i){return t=t||e(),0===arguments.length&&(r=t.element),i=i||t.context,new n.fn.init(r,i)};return Ja.extend(n,this),n},Oa.attrHooks=za,Oa.cssHooks=Ha;var Ja=Oa,Za=Dt.each,Qa=Dt.grep,es=xt.ie,ts=/^([a-z0-9],?)+$/i,ns=function(e,t){function n(t){return t&&e&&y(t)?e.getElementById(t):t}function r(e){return q("string"==typeof e?n(e):e)}function i(e,t,n){var i,o,a=r(e);return void 0===(o=a.length?(i=J[t])&&i.get?i.get(a,t):a.attr(t):o)?n||"":o}function o(e){var t=n(e);return t?t.attributes:[]}function a(e,n,i){""===i&&(i=null);var o,a=r(e),s=a.attr(n);a.length&&((o=J[n])&&o.set?o.set(a,i,n):a.attr(n,i),s!==i&&t.onSetAttrib&&t.onSetAttrib({attrElm:a,attrName:n,attrValue:i}))}function s(){return t.root_element||e.body}function u(t,r){return function(e,t,n){var r,i=0,o=0,a=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Sn(Ot.fromDom(e),"position")){var s=t.getBoundingClientRect();return{x:i=s.left+(a.documentElement.scrollLeft||e.scrollLeft)-a.documentElement.clientLeft,y:o=s.top+(a.documentElement.scrollTop||e.scrollTop)-a.documentElement.clientTop}}for(var l=t;l&&l!==n&&l.nodeType&&!Tn(l,n);){var u=l;i+=u.offsetLeft||0,o+=u.offsetTop||0,l=u.offsetParent}for(l=t.parentNode;l&&l!==n&&l.nodeType&&!Tn(l,n);)i-=l.scrollLeft||0,o-=l.scrollTop||0,l=l.parentNode;o+=(r=Ot.fromDom(t),nr.isFirefox()&&"table"===Tt(r)?On(Pn(r)).filter((function(e){return"caption"===Tt(e)})).bind((function(e){return On(Lt(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,i=e.dom.offsetHeight;return n<=r?-i:0}))})).getOr(0):0)}return{x:i,y:o}}(e.body,n(t),r)}function f(e,t,n){var i=r(e);return n?i.css(t):("float"===(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})))&&(t=xt.browser.isIE()?"styleFloat":"cssFloat"),i[0]&&i[0].style?i[0].style[t]:void 0)}function d(e){var t=f(e=n(e),"width"),r=f(e,"height");return-1===t.indexOf("px")&&(t=0),-1===r.indexOf("px")&&(r=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(r,10)||e.offsetHeight||e.clientHeight}}function p(e,t){if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(ts.test(t)){for(var n=t.toLowerCase().split(/,/),r=e.nodeName.toLowerCase(),i=n.length-1;0<=i;i--)if(n[i]===r)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var o=Array.isArray(e)?e:[e];return 0<fa(t,o[0].ownerDocument||o[0],null,o).length}function m(e,t,r,i){var o,a=[],u=n(e);for(i=void 0===i,r=r||("BODY"!==s().nodeName?s().parentNode:null),Dt.is(t,"string")&&(t="*"===(o=t)?function(e){return 1===e.nodeType}:function(e){return p(e,o)});u&&!(u===r||l(u.nodeType)||Gn(u)||Yn(u));){if(!t||"function"==typeof t&&t(u)){if(!i)return[u];a.push(u)}u=u.parentNode}return i?a:null}function g(e,t,n){var r=t;if(e)for("string"==typeof t&&(r=function(e){return p(e,t)}),e=e[n];e;e=e[n])if("function"==typeof r&&r(e))return e;return null}function v(e,t,r){var i,o="string"==typeof e?n(e):e;return!!o&&(Dt.isArray(o)&&(o.length||0===o.length)?(i=[],Za(o,(function(e,o){e&&i.push(t.call(r,"string"==typeof e?n(e):e,o))})),i):t.call(r||this,o))}function b(e,t){r(e).each((function(e,n){Za(t,(function(e,t){a(n,t,e)}))}))}function w(e,t){var n=r(e);es?n.each((function(e,n){if(!1!==n.canHaveHTML){for(;n.firstChild;)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(e){Ja("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)}function _(t,n,r,i,o){return v(t,(function(t){var a="string"==typeof n?e.createElement(n):n;return b(a,r),i&&("string"!=typeof i&&i.nodeType?a.appendChild(i):"string"==typeof i&&w(a,i)),o?a:t.appendChild(a)}))}function C(t,n,r){return _(e.createElement(t),t,n,r,!0)}function x(e,t){var n=r(e);return(t?n.each((function(){for(var e;e=this.firstChild;)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})):n).remove(),1<n.length?n.toArray():n[0]}function S(e,t,n){r(e).toggleClass(t,n).each((function(){""===this.className&&Ja(this).attr("class",null)}))}function k(e,t,n){return v(t,(function(t){return Dt.is(t,"array")&&(e=e.cloneNode(!0)),n&&Za(Qa(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))}function D(e){if(Hn(e)){var t="a"===e.nodeName.toLowerCase()&&!i(e,"href")&&i(e,"id");return i(e,"name")||i(e,"data-mce-bookmark")||t?1:void 0}}function O(){return e.createRange()}function T(e){if(e&&Hn(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null}void 0===t&&(t={});var E,I,N,A,P,M,R={},F=window,B={},L=0,$=Nr.forElement(Ot.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),j=[],z=t.schema||ai({}),H=li({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),U=t.ownEvents?new co:co.Event,W=z.getBlockElements(),q=Ja.overrideDefaults((function(){return{context:e,element:X.getRoot()}})),G=eo.encodeAllRaw,Y=function(n,r,i,o){if(Dt.isArray(n)){for(var a=n.length,s=[];a--;)s[a]=Y(n[a],r,i,o);return s}return!t.collect||n!==e&&n!==F||j.push([n,r,i,o]),U.bind(n,r,i,o||X)},K=function(t,n,r){if(Dt.isArray(t)){for(var i=t.length,o=[];i--;)o[i]=K(t[i],n,r);return o}if(0<j.length&&(t===e||t===F))for(i=j.length;i--;){var a=j[i];t!==a[0]||n&&n!==a[1]||r&&r!==a[2]||U.unbind(a[0],a[1],a[2])}return U.unbind(t,n,r)},X={doc:e,settings:t,win:F,files:B,stdMode:!0,boxModel:!0,styleSheetLoader:$,boundEvents:j,styles:H,schema:z,events:U,isBlock:function(e){if("string"==typeof e)return!!W[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!W[e.nodeName])}return!1},$:q,$$:r,root:null,clone:function(t,n){if(!es||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return Za(o(t),(function(e){a(r,e.nodeName,i(t,e.nodeName))})),r},getRoot:s,getViewPort:function(e){var t=rn(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},getRect:function(e){var t=u(e=n(e)),r=d(e);return{x:t.x,y:t.y,w:r.w,h:r.h}},getSize:d,getParent:function(e,t,n){var r=m(e,t,n,!1);return r&&0<r.length?r[0]:null},getParents:m,get:n,getNext:function(e,t){return g(e,t,"nextSibling")},getPrev:function(e,t){return g(e,t,"previousSibling")},select:function(r,i){return fa(r,n(i)||t.root_element||e,[])},is:p,add:_,create:C,createHTML:function(e,t,n){var r,i="";for(r in i+="<"+e,t)ce(t,r)&&(i+=" "+r+'="'+G(t[r])+'"');return void 0!==n?i+">"+n+"</"+e+">":i+" />"},createFragment:function(t){var n,r=e.createElement("div"),i=e.createDocumentFragment();for(i.appendChild(r),t&&(r.innerHTML=t);n=r.firstChild;)i.appendChild(n);return i.removeChild(r),i},remove:x,setStyle:function(e,n,i){var o=y(n)?r(e).css(n,i):r(e).css(n);t.update_styles&&Ka(H,o)},getStyle:f,setStyles:function(e,n){var i=r(e).css(n);t.update_styles&&Ka(H,i)},removeAllAttribs:function(e){return v(e,(function(e){for(var t=e.attributes,n=t.length-1;0<=n;n--)e.removeAttributeNode(t.item(n))}))},setAttrib:a,setAttribs:b,getAttrib:i,getPos:u,parseStyle:function(e){return H.parse(e)},serializeStyle:function(e,t){return H.serialize(e,t)},addStyle:function(t){var n,r;if(X!==ns.DOM&&e===document){if(R[t])return;R[t]=!0}(r=e.getElementById("mceDefaultStyles"))||((r=e.createElement("style")).id="mceDefaultStyles",r.type="text/css",(n=e.getElementsByTagName("head")[0]).firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r)),r.styleSheet?r.styleSheet.cssText+=t:r.appendChild(e.createTextNode(t))},loadCSS:function(e){V((e=e||"").split(","),(function(e){B[e]=!0,$.load(e,c)}))},addClass:function(e,t){r(e).addClass(t)},removeClass:function(e,t){S(e,t,!1)},hasClass:function(e,t){return r(e).hasClass(t)},toggleClass:S,show:function(e){r(e).show()},hide:function(e){r(e).hide()},isHidden:function(e){return"none"===r(e).css("display")},uniqueId:function(e){return(e||"mce_")+L++},setHTML:w,getOuterHTML:function(e){var t="string"==typeof e?n(e):e;return Hn(t)?t.outerHTML:Ja("<div></div>").append(Ja(t).clone()).html()},setOuterHTML:function(e,t){r(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}x(Ja(this).html(t),!0)}))},decode:eo.decode,encode:G,insertAfter:function(e,t){var r=n(t);return v(e,(function(e){var t=r.parentNode,n=r.nextSibling;return n?t.insertBefore(e,n):t.appendChild(e),e}))},replace:k,rename:function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=C(t),Za(o(e),(function(t){a(n,t.nodeName,i(e,t.nodeName))})),k(n,e,!0)),n||e},findCommonAncestor:function(e,t){for(var n,r=e;r;){for(n=t;n&&r!==n;)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},toHex:function(e){return H.toHex(Dt.trim(e))},run:v,getAttribs:o,isEmpty:function(e,t){var n,r,i=0;if(D(e))return!1;if(e=e.firstChild){var o=new Ar(e,e.parentNode),a=z?z.getWhiteSpaceElements():{};t=t||(z?z.getNonEmptyElements():null);do{if(n=e.nodeType,Hn(e)){var s=e.getAttribute("data-mce-bogus");if(s){e=o.next("all"===s);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"!==r)return!1;i++,e=o.next();continue}if(D(e))return!1}if(8===n)return!1;if(3===n&&!Gr(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Gr(e.nodeValue))return!1;e=o.next()}while(e)}return i<=1},createRng:O,nodeIndex:Xa,split:function(e,t,n){var r,i,o,a=O();if(e&&t)return a.setStart(e.parentNode,Xa(e)),a.setEnd(t.parentNode,Xa(t)),r=a.extractContents(),(a=O()).setStart(t.parentNode,Xa(t)+1),a.setEnd(e.parentNode,Xa(e)+1),i=a.extractContents(),(o=e.parentNode).insertBefore(Ui(X,r),e),n?o.insertBefore(n,e):o.insertBefore(t,e),o.insertBefore(Ui(X,i),e),x(e),n||t},bind:Y,unbind:K,fire:function(e,t,n){return U.fire(e,t,n)},getContentEditable:T,getContentEditableParent:function(e){for(var t=s(),n=null;e&&e!==t&&null===(n=T(e));e=e.parentNode);return n},destroy:function(){if(0<j.length)for(var e=j.length;e--;){var t=j[e];U.unbind(t[0],t[1],t[2])}ie(B,(function(e,t){$.unload(t),delete B[t]})),fa.setDocument&&fa.setDocument()},isChildOf:function(e,t){if(es){for(;e;){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},dumpRng:function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset}},J=(E=H,N=h(X),P={set:function(e,t,n){I.url_converter&&null!==t&&(t=I.url_converter.call(I.url_converter_scope||N(),t,n,e[0])),e.attr("data-mce-"+n,t).attr(n,t)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},M={style:{set:function(e,t){null===t||"object"!=typeof t?(A&&e.attr("data-mce-style",t),null!==t&&"string"==typeof t?(e.removeAttr("style"),e.css(E.parse(t))):e.attr("style",t)):e.css(t)},get:function(e){var t=e.attr("data-mce-style")||e.attr("style");return E.serialize(E.parse(t),e[0].nodeName)}}},(A=(I=t).keep_values)&&(M.href=M.src=P),M);return X};ns.DOM=ns(document),ns.nodeIndex=Xa;var rs=ns.DOM,is=Dt.each,os=Dt.grep,as=(ss.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},ss.prototype.loadScript=function(e,t,n){function r(){i.remove(o),a&&(a.onerror=a.onload=a=null)}var i=rs,o=i.uniqueId(),a=document.createElement("script");a.id=o,a.type="text/javascript",a.src=Dt._addCacheSuffix(e),this.settings.referrerPolicy&&i.setAttrib(a,"referrerpolicy",this.settings.referrerPolicy),a.onload=function(){r(),t()},a.onerror=function(){r(),k(n)?n():"undefined"!=typeof console&&console.log&&console.log("Failed to load script: "+e)},(document.getElementsByTagName("head")[0]||document.body).appendChild(a)},ss.prototype.isDone=function(e){return 2===this.states[e]},ss.prototype.markDone=function(e){this.states[e]=2},ss.prototype.add=function(e,t,n,r){var i=this.states[e];this.queue.push(e),void 0===i&&(this.states[e]=0),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},ss.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},ss.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},ss.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},ss.prototype.loadScripts=function(e,t,n,r){function i(e,t){is(o.scriptLoadedCallbacks[t],(function(t){k(t[e])&&t[e].call(t.scope)})),o.scriptLoadedCallbacks[t]=void 0}var o=this,a=[];o.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var s=function(){var t,n=os(e);e.length=0,is(n,(function(e){2!==o.states[e]?3!==o.states[e]?1!==o.states[e]&&(o.states[e]=1,o.loading++,o.loadScript(e,(function(){o.states[e]=2,o.loading--,i("success",e),s()}),(function(){o.states[e]=3,o.loading--,a.push(e),i("failure",e),s()}))):i("failure",e):i("success",e)})),o.loading||(t=o.queueLoadedCallbacks.slice(0),o.queueLoadedCallbacks.length=0,is(t,(function(e){0===a.length?k(e.success)&&e.success.call(e.scope):k(e.failure)&&e.failure.call(e.scope,a)})))};s()},ss.ScriptLoader=new ss,ss);function ss(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}function ls(e){var t=e;return{get:function(){return t},set:function(e){t=e}}}function us(){return ue(cs,fs.get())}var cs={},fs=ls("en"),ds={getData:function(){return oe(cs,(function(e){return Ee({},e)}))},setCode:function(e){e&&fs.set(e)},getCode:function(){return fs.get()},add:function(e,t){var n=cs[e];n||(cs[e]=n={}),ie(t,(function(e,t){n[t.toLowerCase()]=e}))},translate:function(e){function t(e){return k(e)?Object.prototype.toString.call(e):s(e)?"":""+e}function n(e){var n=t(e);return ue(a,n.toLowerCase()).map(t).getOr(n)}function r(e){return e.replace(/{context:\w+}$/,"")}var i,o,a=us().getOr({}),s=function(e){return""===e||null==e};if(s(e))return"";if(w(i=e)&&Oe(i,"raw"))return t(e.raw);if(_(o=e)&&1<o.length){var l=e.slice(1);return r(n(e[0]).replace(/\{([0-9]+)\}/g,(function(e,n){return Oe(l,n)?t(l[n]):e})))}return r(n(e))},isRtl:function(){return us().bind((function(e){return ue(e,"_dir")})).exists((function(e){return"rtl"===e}))},hasCode:function(e){return Oe(cs,e)}},hs=function(){function e(e,t){V(H(s,(function(n){return n.name===e&&n.state===t})),(function(e){return e.callback()}))}function t(e){var t;return(a[e]?a[e].dependencies:t)||[]}function n(e,t){return"object"==typeof t?t:"string"==typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}}function r(e,t,n){void 0===n&&(n="added"),Oe(a,e)&&"added"===n||Oe(o,e)&&"loaded"===n?t():s.push({name:e,state:n,callback:t})}var i=[],o={},a={},s=[],l=function(r,i,s,u,c){var f,d;o[r]||(0!==(f="string"==typeof i?i:i.prefix+i.resource+i.suffix).indexOf("/")&&-1===f.indexOf("://")&&(f=hs.baseURL+"/"+f),o[r]=f.substring(0,f.lastIndexOf("/")),d=function(){var o,a,c;e(r,"loaded"),o=i,a=s,c=u,V(t(r),(function(e){var t=n(o,e);l(t.resource,t,void 0,void 0)})),a&&(c?a.call(c):a.call(as))},a[r]?d():as.ScriptLoader.add(f,d,u,c))};return{items:i,urls:o,lookup:a,_listeners:s,get:function(e){if(a[e])return a[e].instance},dependencies:t,requireLangPack:function(e,t){!1!==hs.languageLoad&&r(e,(function(){var n=ds.getCode();!n||t&&-1===(","+(t||"")+",").indexOf(","+n+",")||as.ScriptLoader.add(o[e]+"/langs/"+n+".js")}),"loaded")},add:function(t,n,r){var o=n;return i.push(o),a[t]={instance:o,dependencies:r},e(t,"added"),o},remove:function(e){delete o[e],delete a[e]},createUrl:n,addComponents:function(e,t){var n=o[e];V(t,(function(e){as.ScriptLoader.add(n+"/"+e)}))},load:l,waitFor:r}};function ps(){var e,t,n=(e=c,t=ls(ye.none()),{clear:function(){r(),t.set(ye.none())},isSet:function(){return t.get().isSome()},get:function(){return t.get()},set:function(e){r(),t.set(ye.some(e))}});function r(){return t.get().each(e)}return Ee(Ee({},n),{on:function(e){return n.get().each(e)}})}function ms(e,t){var n=null;return{cancel:function(){C(n)||(clearTimeout(n),n=null)},throttle:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];C(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))}}}function gs(e,t){function n(){C(r)||(clearTimeout(r),r=null)}var r=null;return{cancel:n,throttle:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n(),r=setTimeout((function(){r=null,e.apply(null,i)}),t)}}}function vs(e,t){var n=yn(e,t);return void 0===n||""===n?[]:n.split(" ")}function bs(e){return void 0!==e.dom.classList}function ys(e,t){var n,r,i;bs(e)?e.dom.classList.add(t):(r=t,i=vs(n=e,"class").concat([r]),vn(n,"class",i.join(" ")))}function ws(e,t){return bs(e)&&e.dom.classList.contains(t)}function _s(e,t){return He(n=void 0===e?document:e.dom)?[]:$(n.querySelectorAll(t),Ot.fromDom);var n}function Cs(e,t){function n(e,t){return _n(e,t)?ye.some(yn(e,t)):ye.none()}var r=e.selection.getRng(),i=Ot.fromDom(r.startContainer),o=Ot.fromDom(e.getBody()),a=t.fold((function(){return"."+Gs()}),(function(e){return"["+Ys()+'="'+e+'"]'}));return _r($t(i,r.startOffset).getOr(i),a,(function(e){return Ue(e,o)})).bind((function(t){return n(t,""+Ks()).bind((function(r){return n(t,""+Ys()).map((function(t){var n=Xs(e,r);return{uid:r,name:t,elements:n}}))}))}))}function xs(e){function t(){return{listeners:[],previous:ps()}}function n(e,t){r(e,(function(e){return t(e),e}))}function r(e,n){var r=i.get(),o=n(ue(r,e).getOrThunk(t));r[e]=o,i.set(r)}var i=ls({}),o=gs((function(){var t=i.get();V(Q(Se(t)),(function(t){r(t,(function(r){var i=r.previous.get();return Cs(e,ye.some(t)).fold((function(){var e;i.isSome()&&(n(e=t,(function(t){V(t.listeners,(function(t){return t(!1,e)}))})),r.previous.clear())}),(function(e){var t,o,a,s=e.uid,l=e.name,u=e.elements;hn(i,s)||(o=s,a=u,n(t=l,(function(e){V(e.listeners,(function(e){return e(!0,t,{uid:o,nodes:$(a,(function(e){return e.dom}))})}))})),r.previous.set(s))})),{previous:r.previous,listeners:r.listeners}}))}))}),30);return e.on("remove",(function(){o.cancel()})),e.on("NodeChange",(function(){o.throttle()})),{addListener:function(e,t){r(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))}}}function Ss(e){var t=(new Date).getTime();return e+"_"+Math.floor(1e9*Math.random())+ ++Js+String(t)}function ks(e,t){var n,r,i=Nt(e).dom,o=Ot.fromDom(i.createDocumentFragment());Kt(o,(n=t,(r=(i||document).createElement("div")).innerHTML=n,Pn(Ot.fromDom(r)))),Xt(e),Bn(e,o)}function Ds(e,t){return Ot.fromDom(e.dom.cloneNode(t))}function Os(e){return Ds(e,!1)}function Ts(e){return Ds(e,!0)}function Es(e,t,n){function r(e){for(var t;(t=i[e]())&&!Wn(t)&&!n(t););return ye.from(t).filter(Wn)}void 0===n&&(n=A);var i=new Ar(e,t);return{current:function(){return ye.from(i.current()).filter(Wn)},next:function(){return r("next")},prev:function(){return r("prev")},prev2:function(){return r("prev2")}}}function Is(e,t){var n=t||function(t){return e.isBlock(t)||Kn(t)||Zn(t)},r=function(e,t,n,i){if(Wn(e)){var o=i(e,t,e.data);if(-1!==o)return ye.some({container:e,offset:o})}return n().bind((function(e){return r(e.container,e.offset,n,i)}))};return{backwards:function(e,t,i,o){var a=Es(e,o,n);return r(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),i).getOrNull()},forwards:function(e,t,i,o){var a=Es(e,o,n);return r(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),i).getOrNull()}}}function Ns(e){return e?{left:Zs(e.left),top:Zs(e.top),bottom:Zs(e.bottom),right:Zs(e.right),width:Zs(e.width),height:Zs(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}}function As(e,t){return e=Ns(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e}function Ps(e,t,n){return 0<=e&&e<=Math.min(t.height,n.height)/2}function Ms(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&Ps(t.top-e.bottom,e,t)}function Rs(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&Ps(t.bottom-e.top,e,t)}function Fs(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function Bs(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null}function Ls(e,t){if(Hn(e)&&e.hasChildNodes()){var n=e.childNodes;return n[(r=n.length-1,Math.min(Math.max(t,0),r))]}return e;var r}function $s(e){return"string"==typeof e&&768<=e.charCodeAt(0)&&Qs.test(e)}function Vs(e){return"createRange"in e?e.createRange():ns.DOM.createRng()}function js(e){return e&&/[\r\n\t ]/.test(e)}function zs(e){return e.setStart&&e.setEnd}function Hs(e){var t=e.startContainer,n=e.startOffset;if(js(e.toString())&&ol(t.parentNode)&&Wn(t)){var r=t.data;return js(r[n-1])||js(r[n+1])?1:void 0}}function Us(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom}function Ws(e,t){var n=As(e,t);return n.width=1,n.right=n.left+1,n}hs.languageLoad=!0,hs.baseURL="",hs.PluginManager=hs(),hs.ThemeManager=hs();var qs=function(e,t){var n=[];return V(Pn(e),(function(e){n=(n=t(e)?n.concat([e]):n).concat(qs(e,t))})),n},Gs=h("mce-annotation"),Ys=h("data-mce-annotation"),Ks=h("data-mce-annotation-uid"),Xs=function(e,t){return _s(Ot.fromDom(e.getBody()),"["+Ks()+'="'+t+'"]')},Js=0,Zs=Math.round,Qs=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),el=Hn,tl=Wr,nl=ln("display","block table"),rl=ln("float","left right"),il=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}}(el,tl,T(rl)),ol=T(ln("white-space","pre pre-line pre-wrap")),al=Wn,sl=Kn,ll=ns.nodeIndex,ul=function(e,t){if(!(t<0&&Hn(e)&&e.hasChildNodes()))return Ls(e,t)},cl=function(e){var t=e.getClientRects(),n=0<t.length?Ns(t[0]):Ns(e.getBoundingClientRect());return!zs(e)&&sl(e)&&Us(n)?function(e){var t=e.ownerDocument,n=Vs(t),r=t.createTextNode(xi),i=e.parentNode;i.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var o=Ns(n.getBoundingClientRect());return i.removeChild(r),o}(e):Us(n)&&zs(e)?function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,i=e.endOffset;if(t===n&&Wn(n)&&0===r&&1===i){var o=e.cloneRange();return o.setEndAfter(n),cl(o)}return null}(e):n},fl=function(e,t,n){function r(){return n=n||function(e){function t(e){var t;0!==e.height&&(0<r.length&&(t=r[r.length-1],e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right)||r.push(e))}function n(e,n){var i=Vs(e.ownerDocument);if(n<e.data.length){if($s(e.data[n]))return r;if($s(e.data[n-1])&&(i.setStart(e,n),i.setEnd(e,n+1),!Hs(i)))return t(Ws(cl(i),!1)),r}0<n&&(i.setStart(e,n-1),i.setEnd(e,n),Hs(i)||t(Ws(cl(i),!1))),n<e.data.length&&(i.setStart(e,n),i.setEnd(e,n+1),Hs(i)||t(Ws(cl(i),!0)))}var r=[],i=e.container(),o=e.offset();if(al(i))return n(i,o),r;if(el(i))if(e.isAtEnd()){var a=ul(i,o);al(a)&&n(a,a.data.length),il(a)&&!sl(a)&&t(Ws(cl(a),!1))}else{if(a=ul(i,o),al(a)&&n(a,0),il(a)&&e.isAtEnd())return t(Ws(cl(a),!1)),r;var s=ul(e.container(),e.offset()-1);il(s)&&!sl(s)&&(!nl(s)&&!nl(a)&&il(a)||t(Ws(cl(s),!1))),il(a)&&t(Ws(cl(a),!0))}return r}(fl(e,t))}return{container:h(e),offset:h(t),toRange:function(){var n=Vs(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},getClientRects:r,isVisible:function(){return 0<r().length},isAtStart:function(){return al(e),0===t},isAtEnd:function(){return al(e)?t>=e.data.length:t>=e.childNodes.length},isEqual:function(n){return n&&e===n.container()&&t===n.offset()},getNode:function(n){return ul(e,n?t-1:t)}}};function dl(e,t){Wn(t)&&0===t.data.length&&e.remove(t)}function hl(e,t,n){var r,i,o,a,s,l,u;Yn(n)?(o=e,a=t,l=ye.from((s=n).firstChild),u=ye.from(s.lastChild),a.insertNode(s),l.each((function(e){return dl(o,e.previousSibling)})),u.each((function(e){return dl(o,e.nextSibling)}))):(r=e,t.insertNode(i=n),dl(r,i.previousSibling),dl(r,i.nextSibling))}function pl(e){return function(t){return e===t}}function ml(e){var t,n,r,i;return(du(e)?"text()":e.nodeName.toLowerCase())+"["+(n=gu(mu(t=e)),r=ge(n,pl(t),t),i=me(n=n.slice(0,r+1),(function(e,t,r){return du(t)&&du(n[r-1])&&e++,e}),0),ge(n=he(n,sn([t.nodeName])),pl(t),t)-i+"]")}function gl(e,t){var n,r,i,o=[],a=t.container(),s=t.offset();return du(a)?n=function(e,t){for(;(e=e.previousSibling)&&du(e);)t+=e.data.length;return t}(a,s):(s>=(r=a.childNodes).length?(n="after",s=r.length-1):n="before",a=r[s]),o.push(ml(a)),i=he(function(e,t){var n=[];for(t=t.parentNode;t!==e;t=t.parentNode)n.push(t);return n}(e,a),T(cn)),(o=o.concat(de(i,ml))).reverse().join("/")+","+n}function vl(e,t){if(!t)return null;var n=t.split(","),r=n[0].split("/"),i=1<n.length?n[1]:"before",o=me(r,(function(e,t){var n,r,i,o,a=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return a?("text()"===a[1]&&(a[1]="#text"),n=e,r=a[1],i=parseInt(a[2],10),o=he(o=gu(n),(function(e,t){return!du(e)||!du(o[t-1])})),(o=he(o,sn([r])))[i]):null}),e);return o?du(o)?function(e,t){for(var n,r=e,i=0;du(r);){if(n=r.data.length,i<=t&&t<=i+n){e=r,t-=i;break}if(!du(r.nextSibling)){e=r,t=n;break}i+=n,r=r.nextSibling}return du(e)&&t>e.data.length&&(t=e.data.length),fl(e,t)}(o,parseInt(i,10)):(i="after"===i?pu(o)+1:pu(o),fl(o.parentNode,i)):null}function bl(e,t,n,r,i){var o,a=r[i?"startContainer":"endContainer"],s=r[i?"startOffset":"endOffset"],l=[],u=0,c=e.getRoot();for(Wn(a)?l.push(n?function(e,t,n){for(var r=e(t.data.slice(0,n)).length,i=t.previousSibling;i&&Wn(i);i=i.previousSibling)r+=e(i.data).length;return r}(t,a,s):s):(s>=(o=a.childNodes).length&&o.length&&(u=1,s=Math.max(0,o.length-1)),l.push(e.nodeIndex(o[s],n)+u));a&&a!==c;a=a.parentNode)l.push(e.nodeIndex(a,n));return l}function yl(e,t,n){var r=0;return Dt.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r}function wl(e,t){var n,r=t?"start":"end",i=e[r+"Container"],o=e[r+"Offset"];Hn(i)&&"TR"===i.nodeName&&(i=(n=i.childNodes)[Math.min(t?o:o-1,n.length-1)])&&(o=t?0:i.childNodes.length,e["set"+(t?"Start":"End")](i,o))}function _l(e){return wl(e,!0),wl(e,!1),e}function Cl(e,t){var n;return Hn(e)&&(e=Ls(e,t),vu(e))?e:$r(e)?(n=(e=Wn(e)&&Br(e)?e.parentNode:e).previousSibling,vu(n)?n:(n=e.nextSibling,vu(n)?n:void 0)):void 0}function xl(e,t,n){var r=n.getNode(),i=r?r.nodeName:null,o=n.getRng();if(vu(r)||"IMG"===i)return{name:i,index:yl(n.dom,i,r)};var a,s,l,u,c,f,d,h=Cl((a=o).startContainer,a.startOffset)||Cl(a.endContainer,a.endOffset);return h?{name:i=h.tagName,index:yl(n.dom,i,h)}:(f=(l=n).dom,(d={}).start=bl(f,s=e,u=t,c=o,!0),l.isCollapsed()||(d.end=bl(f,s,u,c,!1)),Ur(c)&&(d.isFakeCaret=!0),d)}function Sl(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)}function kl(e,t){var n=e.dom,r=e.getRng(),i=n.uniqueId(),o=e.isCollapsed(),a=e.getNode(),s=a.nodeName;if("IMG"===s)return{name:s,index:yl(n,s,a)};var l=_l(r.cloneRange());return o||(l.collapse(!1),hl(n,l,Sl(n,i+"_end",t))),(r=_l(r)).collapse(!0),hl(n,r,Sl(n,i+"_start",t)),e.moveToBookmark({id:i,keep:!0}),{id:i}}function Dl(e,t,n){var r=e.getParam(t,n);return-1===r.indexOf("=")?r:ue(e.getParam(t,"","hash"),e.id).getOr(n)}function Ol(e){return e.getParam("content_security_policy","")}function Tl(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t}function El(e){return e.getParam("forced_root_block_attrs",{})}function Il(e){return e.getParam("automatic_uploads",!0,"boolean")}function Nl(e){return e.getParam("icons","","string")}function Al(e){return e.getParam("referrer_policy","","string")}function Pl(e){return e.getParam("language","en","string")}function Ml(e){return e.getParam("indent_use_margin",!1)}function Rl(e){var t=e.getParam("font_css",[]);return _(t)?t:$(t.split(","),Qe)}function Fl(e){var t=e.getParam("object_resizing");return!1!==t&&!xt.iOS&&(y(t)?t:"table,img,figure.image,div,video,iframe")}function Bl(e){return e.getParam("event_root")}function Ll(e){return e.getParam("theme")}function $l(e){return!1!==e.getParam("inline_boundaries")}function Vl(e){return e.getParam("plugins","","string")}function jl(e){var t=e.parentNode;t&&t.removeChild(e)}function zl(e){var t=Di(e);return{count:e.length-t.length,text:t}}function Hl(e){for(var t;-1!==(t=e.data.lastIndexOf(Si));)e.deleteData(t,1)}function Ul(e,t){return Cu(e),t}function Wl(e,t){var n,r=t.container(),i=(-1===(n=F(xe(r.childNodes),e))?ye.none():ye.some(n)).map((function(e){return e<t.offset()?fl(r,t.offset()-1):t})).getOr(t);return Cu(e),i}function ql(e,t){return fl.isTextPosition(t)?(r=t,_u(n=e)&&r.container()===n?(a=zl((i=n).data.substr(0,(o=r).offset())),s=zl(i.data.substr(o.offset())),0<(a.text+s.text).length?(Hl(i),fl(i,o.offset()-a.count)):o):Ul(n,r)):(l=e,((u=t).container()===l.parentNode?Wl:Ul)(l,u));var n,r,i,o,a,s,l,u}function Gl(e,t,n){var r,i,o,a=As(t.getBoundingClientRect(),n),s="BODY"===e.tagName?(r=e.ownerDocument.documentElement,i=e.scrollLeft||r.scrollLeft,e.scrollTop||r.scrollTop):(o=e.getBoundingClientRect(),i=e.scrollLeft-o.left,e.scrollTop-o.top);a.left+=i,a.right+=i,a.top+=s,a.bottom+=s,a.width=1;var l=t.offsetWidth-t.clientWidth;return 0<l&&(n&&(l*=-1),a.left+=l,a.right+=l),a}function Yl(e,t,n,r){function i(){!function(){for(var e=_s(Ot.fromDom(t),"*[contentEditable=false],video,audio,embed,object"),n=0;n<e.length;n++){var r,i=e[n].dom,o=i.previousSibling;Ii(o)&&(1===(r=o.data).length?o.parentNode.removeChild(o):o.deleteData(r.length-1,1)),o=i.nextSibling,Ei(o)&&(1===(r=o.data).length?o.parentNode.removeChild(o):o.deleteData(0,1))}}(),a&&(Cu(a),a=null),s.on((function(e){Ja(e.caret).remove(),s.clear()})),o&&(Ir.clearInterval(o),o=void 0)}var o,a,s=ps(),l=Tl(e),u=0<l.length?l:"p";return{show:function(e,l){var c;if(i(),Du(l))return null;if(!n(l))return a=function(e,t){var n=e.ownerDocument.createTextNode(Si),r=e.parentNode;if(t){if(i=e.previousSibling,Ti(i)){if($r(i))return i;if(Ii(i))return i.splitText(i.data.length-1)}r.insertBefore(n,e)}else{var i=e.nextSibling;if(Ti(i)){if($r(i))return i;if(Ei(i))return i.splitText(1),i}e.nextSibling?r.insertBefore(n,e.nextSibling):r.appendChild(n)}return n}(l,e),c=l.ownerDocument.createRange(),Ou(a.nextSibling)?(c.setStart(a,0),c.setEnd(a,0)):(c.setStart(a,1),c.setEnd(a,1)),c;a=function(e,t,n){var r,i=t.ownerDocument.createElement(e);i.setAttribute("data-mce-caret",n?"before":"after"),i.setAttribute("data-mce-bogus","all"),i.appendChild(((r=document.createElement("br")).setAttribute("data-mce-bogus","1"),r));var o=t.parentNode;return n?o.insertBefore(i,t):t.nextSibling?o.insertBefore(i,t.nextSibling):o.appendChild(i),i}(u,l,e);var f=Gl(t,l,e);Ja(a).css("top",f.top);var d=Ja('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(Ee({},f)).appendTo(t)[0];return s.set({caret:d,element:l,before:e}),e&&Ja(d).addClass("mce-visual-caret-before"),o=Ir.setInterval((function(){r()?Ja("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Ja("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500),(c=l.ownerDocument.createRange()).setStart(a,0),c.setEnd(a,0),c},hide:i,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){s.on((function(e){var n=Gl(t,e.element,e.before);Ja(e.caret).css(Ee({},n))}))},destroy:function(){return Ir.clearInterval(o)}}}function Kl(){return xu.isIE()||xu.isEdge()||xu.isFirefox()}function Xl(e){return Ou(e)||fn(e)&&Kl()}function Jl(e,t){for(var n;n=e(t);)if(!Au(n))return n;return null}function Zl(e,t,n,r,i){var o=new Ar(e,r),a=Tu(e)||Au(e);if(t<0){if(a&&n(e=Jl(o.prev.bind(o),!0)))return e;for(;e=Jl(o.prev.bind(o),i);)if(n(e))return e}if(0<t){if(a&&n(e=Jl(o.next.bind(o),!0)))return e;for(;e=Jl(o.next.bind(o),i);)if(n(e))return e}return null}function Ql(e,t){for(;e&&e!==t;){if(Iu(e))return e;e=e.parentNode}return null}function eu(e,t,n){return Ql(e.container(),n)===Ql(t.container(),n)}function tu(e,t){if(!t)return null;var n=t.container(),r=t.offset();return Pu(n)?n.childNodes[r+e]:null}function nu(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n}function ru(e,t,n){for(var r,i,o=e?"previousSibling":"nextSibling";n&&n!==t;){var a=n[o];if(Nu(a)&&(a=a[o]),Tu(a)||Eu(a)){if(i=n,Ql(a,r=t)===Ql(i,r))return a;break}if(Mu(a))break;n=n.parentNode}return null}function iu(e,t,n){var r,i=O(ru,!0,t),o=O(ru,!1,t),a=n.startContainer,s=n.startOffset;if(Br(a)){var l=(a=Pu(a)?a:a.parentNode).getAttribute("data-mce-caret");if("before"===l&&Xl(r=a.nextSibling))return Ru(r);if("after"===l&&Xl(r=a.previousSibling))return Fu(r)}if(!n.collapsed)return n;if(Wn(a)){if(Nu(a)){if(1===e){if(r=o(a))return Ru(r);if(r=i(a))return Fu(r)}if(-1===e){if(r=i(a))return Fu(r);if(r=o(a))return Ru(r)}return n}if(Ii(a)&&s>=a.data.length-1)return 1===e&&(r=o(a))?Ru(r):n;if(Ei(a)&&s<=1)return-1===e&&(r=i(a))?Fu(r):n;if(s===a.data.length)return(r=o(a))?Ru(r):n;if(0===s)return(r=i(a))?Fu(r):n}return n}function ou(e,t){return ye.from(tu(e?0:-1,t)).filter(Tu)}function au(e,t,n){var r=iu(e,t,n);return-1===e?fl.fromRangeStart(r):fl.fromRangeEnd(r)}function su(e){return ye.from(e.getNode()).map(Ot.fromDom)}function lu(e,t){for(;t=e(t);)if(t.isVisible())return t;return t}function uu(e,t){var n=eu(e,t);return!(n||!Kn(e.getNode()))||n}fl.fromRangeStart=function(e){return fl(e.startContainer,e.startOffset)},fl.fromRangeEnd=function(e){return fl(e.endContainer,e.endOffset)},fl.after=function(e){return fl(e.parentNode,ll(e)+1)},fl.before=function(e){return fl(e.parentNode,ll(e))},fl.isAbove=function(e,t){return pn(te(t.getClientRects()),ne(e.getClientRects()),Ms).getOr(!1)},fl.isBelow=function(e,t){return pn(ne(t.getClientRects()),te(e.getClientRects()),Rs).getOr(!1)},fl.isAtStart=function(e){return!!e&&e.isAtStart()},fl.isAtEnd=function(e){return!!e&&e.isAtEnd()},fl.isTextPosition=function(e){return!!e&&Wn(e.container())},fl.isElementPosition=function(e){return!1===fl.isTextPosition(e)};var cu,fu,du=Wn,hu=cn,pu=ns.nodeIndex,mu=function(e){var t=e.parentNode;return hu(t)?mu(t):t},gu=function(e){return e?me(e.childNodes,(function(e,t){return hu(t)&&"BR"!==t.nodeName?e=e.concat(gu(t)):e.push(t),e}),[]):[]},vu=Zn,bu=O(xl,p,!0),yu=ns.DOM,wu=Hn,_u=Wn,Cu=function(e){wu(e)&&$r(e)&&(Vr(e)?e.removeAttribute("data-mce-caret"):jl(e)),_u(e)&&(Hl(e),0===e.data.length&&jl(e))},xu=pt().browser,Su=Zn,ku=er,Du=Qn,Ou=function(e){return Su(e)||ku(e)},Tu=Zn,Eu=er,Iu=ln("display","block table table-cell table-caption list-item"),Nu=$r,Au=Br,Pu=Hn,Mu=Wr,Ru=O(nu,!0),Fu=O(nu,!1);function Bu(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null}function Lu(e,t){if(0<e){if(Zc(t.previousSibling)&&!Kc(t.previousSibling))return fl.before(t);if(Kc(t))return fl(t,0)}if(e<0){if(Zc(t.nextSibling)&&!Kc(t.nextSibling))return fl.after(t);if(Kc(t))return fl(t,t.data.length)}return e<0&&!Jc(t)?fl.after(t):fl.before(t)}function $u(e){return{next:function(t){return ef(cu.Forwards,t,e)},prev:function(t){return ef(cu.Backwards,t,e)}}}function Vu(e){return fl.isTextPosition(e)?0===e.offset():Wr(e.getNode())}function ju(e){if(fl.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Wr(e.getNode(!0))}function zu(e,t){return!fl.isTextPosition(e)&&!fl.isTextPosition(t)&&e.getNode()===t.getNode(!0)}function Hu(e,t,n){return tf(e,t,n).bind((function(r){return eu(n,r,t)&&(i=n,o=r,e?!zu(i,o)&&(fl.isTextPosition(a=i)||!Kn(a.getNode()))&&ju(i)&&Vu(o):!zu(o,i)&&Vu(i)&&ju(o))?tf(e,t,r):ye.some(r);var i,o,a}))}function Uu(e,t){var n,r,i,o,a,s=e?t.firstChild:t.lastChild;return Wn(s)?ye.some(fl(s,e?0:s.data.length)):s?Wr(s)?ye.some(e?fl.before(s):Kn(a=s)?fl.before(a):fl.after(a)):(r=t,i=s,o=(n=e)?fl.before(i):fl.after(i),tf(n,r,o)):ye.none()}function Wu(e){return Hn(e)&&e.id===lf}function qu(e,t){for(;t&&t!==e;){if(t.id===lf)return t;t=t.parentNode}return null}function Gu(e){return Dt.isArray(e.start)}function Yu(e,t){return Hn(t)&&e.isBlock(t)&&!t.innerHTML&&!xt.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t}function Ku(e,t,n){return!1===t.hasChildNodes()&&qu(e,t)&&(i=n,o=(r=t).ownerDocument.createTextNode(Si),r.appendChild(o),i.setStart(o,0),i.setEnd(o,0),1);var r,i,o}function Xu(e,t,n,r){var i,o,a,s,l=n[t?"start":"end"],u=e.getRoot();if(l){for(a=l[0],o=u,i=l.length-1;1<=i;i--){if(s=o.childNodes,Ku(u,o,r))return 1;if(l[i]>s.length-1)return Ku(u,o,r)||function(e){return sf(o).fold(A,(function(t){return e.setStart(t.container(),t.offset()),e.setEnd(t.container(),t.offset()),!0}))}(r);o=s[l[i]]}3===o.nodeType&&(a=Math.min(l[0],o.nodeValue.length)),1===o.nodeType&&(a=Math.min(l[0],o.childNodes.length)),t?r.setStart(o,a):r.setEnd(o,a)}return 1}function Ju(e){return Wn(e)&&0<e.data.length}function Zu(e,t,n){var r,i,o,a,s,l,u=e.get(n.id+"_"+t),c=n.keep;if(u){if(r=u.parentNode,i="start"===t?c?u.hasChildNodes()?(r=u.firstChild,1):Ju(u.nextSibling)?(r=u.nextSibling,0):Ju(u.previousSibling)?(r=u.previousSibling,u.previousSibling.data.length):(r=u.parentNode,e.nodeIndex(u)+1):e.nodeIndex(u):c?u.hasChildNodes()?(r=u.firstChild,1):Ju(u.previousSibling)?(r=u.previousSibling,u.previousSibling.data.length):(r=u.parentNode,e.nodeIndex(u)):e.nodeIndex(u),s=r,l=i,!c){for(a=u.previousSibling,o=u.nextSibling,Dt.each(Dt.grep(u.childNodes),(function(e){Wn(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));u=e.get(n.id+"_"+t);)e.remove(u,!0);a&&o&&a.nodeType===o.nodeType&&Wn(a)&&!xt.opera&&(i=a.nodeValue.length,a.appendData(o.nodeValue),e.remove(o),s=a,l=i)}return ye.some(fl(s,l))}return ye.none()}function Qu(e,t){(function(e,t){var n,r,i,o,a,s,l,u,c,f,d,h,p=e.dom;if(t){if(Gu(t))return d=t,h=(f=p).createRng(),Xu(f,!0,d,h)&&Xu(f,!1,d,h)?ye.some(h):ye.none();if(y(t.start))return ye.some((l=t,u=(s=p).createRng(),c=vl(s.getRoot(),l.start),u.setStart(c.container(),c.offset()),c=vl(s.getRoot(),l.end),u.setEnd(c.container(),c.offset()),u));if(Oe(t,"id"))return pn(a=Zu(i=p,"start",o=t),Zu(i,"end",o).or(a),(function(e,t){var n=i.createRng();return n.setStart(Yu(i,e.container()),e.offset()),n.setEnd(Yu(i,t.container()),t.offset()),n}));if(Oe(t,"name"))return n=p,ye.from(n.select((r=t).name)[r.index]).map((function(e){var t=n.createRng();return t.selectNode(e),t}));if(Oe(t,"rng"))return ye.some(t.rng)}return ye.none()})(e,t).each((function(t){e.setRng(t)}))}function ec(e){return Hn(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")}function tc(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)}function nc(e){return!tc(e)&&!cf(e)}function rc(e){return e.nodeType}function ic(e,t,n){var r,i=n.startOffset,o=n.startContainer;if((o!==n.endContainer||!(r=o.childNodes[i])||!/^(IMG)$/.test(r.nodeName))&&Hn(o)){var a=o.childNodes,s=void 0;i<a.length?(o=a[i],s=new Ar(o,e.getParent(o,e.isBlock))):(o=a[a.length-1],(s=new Ar(o,e.getParent(o,e.isBlock))).next(!0));for(var l=s.current();l;l=s.next())if(Wn(l)&&!ff(l))return n.setStart(l,0),t.setRng(n),0}}function oc(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(Hn(e)||!ff(e))return e}}function ac(e,t){return rc(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]}function sc(e,t,n){return e.schema.isValidChild(t,n)}function lc(e,t){return k(e)?e=e(t):u(t)&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e}function uc(e,t){return e=""+((e=e||"").nodeName||e),t=""+((t=t||"").nodeName||t),e.toLowerCase()===t.toLowerCase()}function cc(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),""+("fontFamily"===n?t.replace(/[\'\"]/g,"").replace(/,\s+/g,","):t)}function fc(e,t,n){return cc(e,e.getStyle(t,n),n)}function dc(e,t){var n;return e.getParent(t,(function(t){return(n=e.getStyle(t,"text-decoration"))&&"none"!==n})),n}function hc(e,t,n){return e.getParents(t,n,e.getRoot())}function pc(e,t){return L(e.formatter.get(t),(function(e){function t(e){return 1<e.length&&"%"===e.charAt(0)}return L(["styles","attributes"],(function(n){return ue(e,n).exists((function(e){var n,r;return L(_(e)?e:(n=p,r=[],ie(e,(function(e,t){r.push(n(e,t))})),r),t)}))}))}))}function mc(e){return ce(e,"block")}function gc(e){return ce(e,"selector")}function vc(e){return ce(e,"inline")}function bc(e){return gc(e)&&!1!==e.expand&&!vc(e)}function yc(e,t){for(var n=t;n;){if(Hn(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t}function wc(e,t,n,r){for(var i=t.data,o=n;e?0<=o:o<i.length;e?o--:o++)if(r(i.charAt(o)))return e?o+1:o;return-1}function _c(e,t,n){return wc(e,t,n,(function(e){return cf(e)||tc(e)}))}function Cc(e,t,n){return wc(e,t,n,nc)}function xc(e,t,n,r,i,o){function a(t,n,r){var o=Is(e),a=i?o.backwards:o.forwards;return ye.from(a(t,n,(function(e,t){return df(e.parentNode)?-1:r(i,s=e,t)}),l))}var s,l=e.getParent(n,e.isBlock)||t;return a(n,r,_c).bind((function(e){return o?a(e.container,e.offset+(i?-1:0),Cc):ye.some(e)})).orThunk((function(){return s?ye.some({container:s,offset:i?0:s.length}):ye.none()}))}function Sc(e,t,n,r,i){Wn(r)&&Fe(r.data)&&r[i]&&(r=r[i]);for(var o=hf(e,r),a=0;a<o.length;a++)for(var s=0;s<t.length;s++){var l=t[s];if((!u(l.collapsed)||l.collapsed===n.collapsed)&&gc(l)&&e.is(o[a],l.selector))return o[a]}return r}function kc(e,t,n,r){var i,o=n,a=e.dom,s=a.getRoot(),l=t[0];if((o=mc(l)?l.wrapper?null:a.getParent(n,l.block,s):o)||(i=a.getParent(n,"LI,TD,TH"),o=a.getParent(Wn(n)?n.parentNode:n,(function(t){return t!==s&&mf(e,t)}),i)),!(o=o&&mc(l)&&l.wrapper&&hf(a,o,"ul,ol").reverse()[0]||o))for(o=n;o[r]&&!a.isBlock(o[r])&&!uc(o=o[r],"br"););return o||n}function Dc(e,t,n,r,i){var o,a=n,s=i?"previousSibling":"nextSibling",l=e.getRoot();if(Wn(n)&&!pf(n)&&(i?0<r:r<n.data.length))return n;for(;;){if(!t[0].block_expand&&e.isBlock(a))return a;for(var u=a[s];u;u=u[s]){var c=Wn(u)&&!gf(e,l,u,s);if(!df(u)&&(!Kn(o=u)||!o.getAttribute("data-mce-bogus")||o.nextSibling)&&!pf(u,c))return a}if(a===l||a.parentNode===l){n=a;break}a=a.parentNode}return n}function Oc(e){return df(e.parentNode)||df(e)}function Tc(e,t,n,r){void 0===r&&(r=!1);var i=t.startContainer,o=t.startOffset,a=t.endContainer,s=t.endOffset,l=e.dom,u=n[0];return Hn(i)&&i.hasChildNodes()&&(i=Ls(i,o),Wn(i)&&(o=0)),Hn(a)&&a.hasChildNodes()&&(a=Ls(a,t.collapsed?s:s-1),Wn(a)&&(s=a.nodeValue.length)),i=yc(l,i),a=yc(l,a),Oc(i)&&(i=df(i)?i:i.parentNode,i=t.collapsed?i.previousSibling||i:i.nextSibling||i,Wn(i)&&(o=t.collapsed?i.length:0)),Oc(a)&&(a=df(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Wn(a)&&(s=t.collapsed?0:a.length)),t.collapsed&&(xc(l,e.getBody(),i,o,!0,r).each((function(e){var t=e.container,n=e.offset;i=t,o=n})),xc(l,e.getBody(),a,s,!1,r).each((function(e){var t=e.container,n=e.offset;a=t,s=n}))),(vc(u)||u.block_expand)&&(vc(u)&&Wn(i)&&0!==o||(i=Dc(l,n,i,o,!0)),vc(u)&&Wn(a)&&s!==a.nodeValue.length||(a=Dc(l,n,a,s,!1))),bc(u)&&(i=Sc(l,n,t,i,"previousSibling"),a=Sc(l,n,t,a,"nextSibling")),(mc(u)||gc(u))&&(i=kc(e,n,i,"previousSibling"),a=kc(e,n,a,"nextSibling"),mc(u)&&(l.isBlock(i)||(i=Dc(l,n,i,o,!0)),l.isBlock(a)||(a=Dc(l,n,a,s,!1)))),Hn(i)&&(o=l.nodeIndex(i),i=i.parentNode),Hn(a)&&(s=l.nodeIndex(a)+1,a=a.parentNode),{startContainer:i,startOffset:o,endContainer:a,endOffset:s}}function Ec(e,t,n){function r(e){var t=e[0];Wn(t)&&t===l&&s>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===u&&0<e.length&&n===c&&Wn(n)&&e.splice(e.length-1,1),e}function i(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r}function o(t,n){return e.getParent(t,(function(e){return e.parentNode===n}),n)}function a(e,t,o){var a=o?"nextSibling":"previousSibling",s=e;for(s.parentNode;s&&s!==t;s=l){var l=s.parentNode,u=i(s===e?s:s[a],a);u.length&&(o||u.reverse(),n(r(u)))}}var s=t.startOffset,l=Ls(t.startContainer,s),u=t.endOffset,c=Ls(t.endContainer,u-1);if(l===c)return n(r([l]));var f=e.findCommonAncestor(l,c);if(e.isChildOf(l,c))return a(l,f,!0);if(e.isChildOf(c,l))return a(c,f);var d=o(l,f)||l,h=o(c,f)||c;a(l,d,!0);var p=i(d===l?d:d.nextSibling,"nextSibling",h===c?h.nextSibling:h);p.length&&n(r(p)),a(c,h)}function Ic(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t}function Nc(e,t){var n=_s(t,"td[data-mce-selected],th[data-mce-selected]");return 0<n.length?n:H(K(e,(function(e){var t=Bs(e);return t?[Ot.fromDom(t)]:[]})),wi)}function Ac(e){return Nc(Ic(e.selection.getSel()),Ot.fromDom(e.getBody()))}function Pc(e,t){return yr(e,"table",t)}function Mc(e,t){return pn((i=t.startContainer,o=t.startOffset,Wn(i)?0===o?ye.some(Ot.fromDom(i)):ye.none():ye.from(i.childNodes[o]).map(Ot.fromDom)),(n=t.endContainer,r=t.endOffset,Wn(n)?r===n.data.length?ye.some(Ot.fromDom(n)):ye.none():ye.from(n.childNodes[r-1]).map(Ot.fromDom)),(function(t,n){var r=G(vf(e),O(Ue,t)),i=G(bf(e),O(Ue,n));return r.isSome()&&i.isSome()})).getOr(!1);var n,r,i,o}function Rc(e,t,n,r){var i=n,o=new Ar(n,i),a=le(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!B(["td","th","table"],t.toLowerCase())}));do{if(Wn(n)&&0!==Dt.trim(n.nodeValue).length)return r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length),0;if(a[n.nodeName])return r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n),0}while(n=r?o.next():o.prev());"BODY"===i.nodeName&&(r?t.setStart(i,0):t.setEnd(i,i.childNodes.length))}function Fc(e){var t=e.selection.getSel();return t&&0<t.rangeCount}function Bc(e,t){var n=Ac(e);0<n.length?V(n,(function(n){var r=n.dom,i=e.dom.createRng();i.setStartBefore(r),i.setEndAfter(r),t(i,!0)})):t(e.selection.getRng(),!1)}function Lc(e,t,n){var r=kl(e,t);n(r),e.moveToBookmark(r)}function $c(e){return yf.get(e)}function Vc(e,t,n,r){var i=t.uid,o=void 0===i?Ss("mce-annotation"):i,a=function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}(t,["uid"]),s=Ot.fromTag("span",e);ys(s,Gs()),vn(s,""+Ks(),o),vn(s,""+Ys(),n);var l,u=r(o,a),c=u.attributes,f=u.classes,d=void 0===f?[]:f;return bn(s,void 0===c?{}:c),l=s,V(d,(function(e){ys(l,e)})),s}function jc(e,t,n,r,i){function o(){u.clear()}function a(e){V(e,c)}var s=[],l=Vc(e.getDoc(),i,n,r),u=ps(),c=function(t){var n,r,i,c,f,d;switch(i=e,f="span",d=Tt(c=t),Mt(c).fold((function(){return"skipping"}),(function(e){return"br"===d||In(n=c)&&$c(n)===Si?"valid":En(t=c)&&ws(t,Gs())?"existing":Wu(c.dom)?"caret":sc(i,f,d)&&sc(i,Tt(e),f)?"valid":"invalid-child";var t,n}))){case"invalid-child":o(),a(Pn(t)),o();break;case"valid":qt(n=t,r=u.get().getOrThunk((function(){var e=Os(l);return s.push(e),u.set(e),e}))),Bn(r,n)}};return Ec(e.dom,t,(function(e){o(),a($(e,Ot.fromDom))})),s}function zc(e){var t,n,r,i=(t={},{register:function(e,n){t[e]={name:e,settings:n}},lookup:function(e){return ue(t,e).map((function(e){return e.settings}))}});r=i,(n=e).on("init",(function(){n.serializer.addNodeFilter("span",(function(e){V(e,(function(e){ye.from(e.attr(Ys())).bind(r.lookup).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}));var o=xs(e);return{register:function(e,t){i.register(e,t)},annotate:function(t,n){i.lookup(t).each((function(r){var i,o,a,s;o=t,a=r,s=n,(i=e).undoManager.transact((function(){var e,t,n,r,l=i.selection,u=l.getRng(),c=0<Ac(i).length;u.collapsed&&!c&&(n=Tc(e=i,t=u,[{inline:"span"}]),t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)),l.getRng().collapsed&&!c?(ks(r=Vc(i.getDoc(),s,o,a.decorate),xi),l.getRng().insertNode(r.dom),l.select(r.dom)):Lc(l,!1,(function(){Bc(i,(function(e){jc(i,e,o,a.decorate,s)}))}))}))}))},annotationChanged:function(e,t){o.addListener(e,t)},remove:function(t){Cs(e,ye.some(t)).each((function(e){V(e.elements,Jt)}))},getAll:function(t){var n,r,i;return oe((n=t,r=_s(Ot.fromDom(e.getBody()),"["+Ys()+'="'+n+'"]'),i={},V(r,(function(e){var t=yn(e,Ks()),n=ue(i,t).getOr([]);i[t]=n.concat([e])})),i),(function(e){return $(e,(function(e){return e.dom}))}))}}}function Hc(e){return{getBookmark:O(uf,e),moveToBookmark:O(Qu,e)}}function Uc(e){return Fi(e)||!!$i(t=e)&&!0!==W(xe(t.getElementsByTagName("*")),(function(e,t){return e||Ni(t)}),!1);var t}(fu=cu=cu||{})[fu.Backwards=-1]="Backwards",fu[fu.Forwards=1]="Forwards";var Wc,qc,Gc,Yc=Zn,Kc=Wn,Xc=Hn,Jc=Kn,Zc=Wr,Qc=qr,ef=function(e,t,n){var r,i,o;if(!Xc(n)||!t)return null;if(t.isEqual(fl.after(n))&&n.lastChild){if(o=fl.after(n.lastChild),e<0&&Zc(n.lastChild)&&Xc(n.lastChild))return Jc(n.lastChild)?fl.before(n.lastChild):o}else o=t;var a,s,l,u=o.container(),c=o.offset();if(Kc(u)){if(e<0&&0<c)return fl(u,--c);if(0<e&&c<u.length)return fl(u,++c);r=u}else{if(e<0&&0<c&&(f=Bu(u,c-1),Zc(f)))return!Uc(f)&&(i=Zl(f,e,Qc,f))?Kc(i)?fl(i,i.data.length):fl.after(i):Kc(f)?fl(f,f.data.length):fl.before(f);if(0<e&&c<u.childNodes.length&&(f=Bu(u,c),Zc(f)))return Jc(f)?(a=n,(l=(s=f).nextSibling)&&Zc(l)?Kc(l)?fl(l,0):fl.before(l):ef(cu.Forwards,fl.after(s),a)):!Uc(f)&&(i=Zl(f,e,Qc,f))?Kc(i)?fl(i,0):fl.before(i):Kc(f)?fl(f,0):fl.after(f);r=f||o.getNode()}if((0<e&&o.isAtEnd()||e<0&&o.isAtStart())&&(r=Zl(r,e,P,n,!0),Qc(r,n)))return Lu(e,r);var f=Zl(r,e,Qc,n),d=ve(H(function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n}(u,n),Yc));return!d||f&&d.contains(f)?f?Lu(e,f):null:0<e?fl.after(d):fl.before(d)},tf=function(e,t,n){var r=$u(t);return ye.from(e?r.next(n):r.prev(n))},nf=function(e,t,n,r){return Hu(e,t,n).bind((function(n){return r(n)?nf(e,t,n,r):ye.some(n)}))},rf=O(tf,!0),of=O(tf,!1),af=O(Uu,!0),sf=O(Uu,!1),lf="_mce_caret",uf=function(e,t,n){return 2===t?xl(Di,n,e):3===t?(i=(r=e).getRng(),{start:gl(r.dom.getRoot(),fl.fromRangeStart(i)),end:gl(r.dom.getRoot(),fl.fromRangeEnd(i))}):t?{rng:e.getRng()}:kl(e,!1);var r,i},cf=(Wc=xi,function(e){return Wc===e}),ff=function(e,t){return void 0===t&&(t=!1),!(!u(e)||!Wn(e))&&Gr(t?e.data.replace(/ /g," "):e.data)},df=ec,hf=hc,pf=ff,mf=ac,gf=function(e,t,n,r){var i=n.parentNode;return!u(n[r])&&(!(i!==t&&!l(i)&&!e.isBlock(i))||gf(e,t,i,r))},vf=function(e){return Vt(e).fold(h([e]),(function(t){return[e].concat(vf(t))}))},bf=function(e){return jt(e).fold(h([e]),(function(t){return"br"===Tt(t)?Rt(t).map((function(t){return[e].concat(bf(t))})).getOr([]):[e].concat(bf(t))}))},yf=(qc=In,{get:function(e){if(!qc(e))throw new Error("Can only get text value of a text node");return Gc(e).getOr("")},getOption:Gc=function(e){return qc(e)?ye.from(e.dom.nodeValue):ye.none()},set:function(e,t){if(!qc(e))throw new Error("Can only set raw text value of a text node");e.dom.nodeValue=t}});function wf(e,t){for(;t&&t!==e;){if(Jn(t)||Zn(t))return t;t=t.parentNode}return null}function _f(e,t,n){if(!n.collapsed){if(xt.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Hn(r))return L(r.getClientRects(),(function(n){return Fs(n,e,t)}))}return L(n.getClientRects(),(function(n){return Fs(n,e,t)}))}}function Cf(e,t,n){return e.fire(t,n)}function xf(e,t,n,r){return e.fire("FormatApply",{format:t,node:n,vars:r})}function Sf(e,t,n,r){return e.fire("FormatRemove",{format:t,node:n,vars:r})}function kf(e,t){function n(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))}function r(e){return er(e)||N.hasClass(e,"mce-preview-object")}function i(e){var r=e.target;!function(e,t){if("longpress"!==e.type&&0!==e.type.indexOf("touch"))return n(e.target)&&!_f(e.clientX,e.clientY,t);var r=e.touches[0];return n(e.target)&&!_f(r.clientX,r.clientY,t)}(e,t.selection.getRng())||e.isDefaultPrevented()||t.selection.select(r)}function a(e){return N.is(e,"figure.image")?[e.querySelector("img")]:N.hasClass(e,"mce-preview-object")&&u(e.firstElementChild)?[e,e.firstElementChild]:[e]}function s(e){var n=Fl(t);return!!n&&"false"!==e.getAttribute("data-mce-resize")&&e!==t.getBody()&&(N.hasClass(e,"mce-preview-object")?ze(Ot.fromDom(e.firstElementChild),n):ze(Ot.fromDom(e),n))}function l(e,n,r){u(r)&&V(a(e),(function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?N.setStyle(e,n,r):N.setAttrib(e,n,""+r)}))}function c(e,t,n){l(e,"width",t),l(e,"height",n)}function f(e){var i,o,a,s,l,u,f=e.screenX-w,d=e.screenY-_;D=f*b[2]+C,O=d*b[3]+x,D=D<5?5:D,O=O<5?5:O,((n(m)||r(m))&&!1!==t.getParam("resize_img_proportional",!0,"boolean")?!Lf.modifierPressed(e):Lf.modifierPressed(e))&&(R(f)>R(d)?(O=F(D*S),D=F(O/S)):(D=F(O/S),O=F(D*S))),c(g,D,O),i=b.startPos.x+f,o=b.startPos.y+d,N.setStyles(v,{left:i=0<i?i:0,top:o=0<o?o:0,display:"block"}),v.innerHTML=D+" &times; "+O,b[2]<0&&g.clientWidth<=D&&N.setStyle(g,"left",void 0+(C-D)),b[3]<0&&g.clientHeight<=O&&N.setStyle(g,"top",void 0+(x-O)),(f=B.scrollWidth-T)+(d=B.scrollHeight-E)!=0&&N.setStyles(v,{left:i-f,top:o-d}),k||(a=m,s=C,l=x,u="corner-"+b.name,t.fire("ObjectResizeStart",{target:a,width:s,height:l,origin:u}),k=!0)}function d(n){function r(e,t){if(e)do{if(e===t)return 1}while(e=e.parentNode)}var i;k||t.removed||(A(N.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(I)})),i="mousedown"===n.type?n.target:e.getNode(),r(i=N.$(i).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],B)&&(p(),r(e.getStart(!0),i)&&r(e.getEnd(!0),i))?j(i):z())}function h(e){return $f(wf(t.getBody(),e))}function p(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(o){}}var m,g,v,b,y,w,_,C,x,S,k,D,O,T,E,I="data-mce-selected",N=t.dom,A=Dt.each,P=t.getDoc(),M=document,R=Math.abs,F=Math.round,B=t.getBody(),L={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},$=function(){var e,n,r,i,o=k;k=!1,o&&(l(m,"width",D),l(m,"height",O)),N.unbind(P,"mousemove",f),N.unbind(P,"mouseup",$),M!==P&&(N.unbind(M,"mousemove",f),N.unbind(M,"mouseup",$)),N.remove(g),N.remove(v),N.remove(y),j(m),o&&(e=m,n=D,r=O,i="corner-"+b.name,t.fire("ObjectResized",{target:e,width:n,height:r,origin:i}),N.setAttrib(m,"style",N.getAttrib(m,"style"))),t.nodeChanged()},j=function(e){H();var n=N.getPos(e,B),i=n.x,o=n.y,l=e.getBoundingClientRect(),u=l.width||l.right-l.left,d=l.height||l.bottom-l.top;m!==e&&(z(),m=e,D=O=0);var h=t.fire("ObjectSelected",{target:e}),p=N.getAttrib(m,I,"1");s(e)&&!h.isDefaultPrevented()?A(L,(function(e,t){var n=N.get("mceResizeHandle"+t);n&&N.remove(n),n=N.add(B,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===xt.ie&&(n.contentEditable=!1),N.bind(n,"mousedown",(function(n){var s,l,h;n.stopImmediatePropagation(),n.preventDefault(),s=n,h=a(m)[0],w=s.screenX,_=s.screenY,C=h.clientWidth,x=h.clientHeight,S=x/C,(b=e).name=t,b.startPos={x:u*e[0]+i,y:d*e[1]+o},T=B.scrollWidth,E=B.scrollHeight,y=N.add(B,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),N.setStyles(y,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),g=r(l=m)?N.create("img",{src:xt.transparentSrc}):l.cloneNode(!0),N.addClass(g,"mce-clonedresizable"),N.setAttrib(g,"data-mce-bogus","all"),g.contentEditable="false",N.setStyles(g,{left:i,top:o,margin:0}),c(g,u,d),g.removeAttribute(I),B.appendChild(g),N.bind(P,"mousemove",f),N.bind(P,"mouseup",$),M!==P&&(N.bind(M,"mousemove",f),N.bind(M,"mouseup",$)),v=N.add(B,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},C+" &times; "+x)})),e.elm=n,N.setStyles(n,{left:u*e[0]+i-n.offsetWidth/2,top:d*e[1]+o-n.offsetHeight/2})})):z(),N.getAttrib(m,I)||m.setAttribute(I,p)},z=function(){H(),m&&m.removeAttribute(I),ie(L,(function(e,t){var n=N.get("mceResizeHandle"+t);n&&(N.unbind(n),N.remove(n))}))},H=function(){ie(L,(function(e){e.elm&&(N.unbind(e.elm),delete e.elm)}))};return t.on("init",(function(){var e;p(),(xt.browser.isIE()||xt.browser.isEdge())&&(t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;k||!/^(TABLE|IMG|HR)$/.test(r)||h(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())})),N.bind(B,"mscontrolselect",e=function(e){function n(e){Ir.setEditorTimeout(t,(function(){return t.selection.select(e)}))}if(h(e.target)||er(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))}),t.on("remove",(function(){return N.unbind(B,"mscontrolselect",e)})));var n=Ir.throttle((function(e){t.composing||d(e)}));t.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",n),t.on("keyup compositionend",(function(e){m&&"TABLE"===m.nodeName&&n(e)})),t.on("hide blur",z),t.on("contextmenu longpress",i,!0)})),t.on("remove",H),{isResizable:s,showResizeRect:j,hideResizeRect:z,updateResizeRect:d,destroy:function(){m=g=y=null}}}function Df(e){return Jn(e)||Zn(e)}function Of(e,t,n){var r,i,o,a,s,l=n;if(l.caretPositionFromPoint)(i=l.caretPositionFromPoint(e,t))&&((r=n.createRange()).setStart(i.offsetNode,i.offset),r.collapse(!0));else if(l.caretRangeFromPoint)r=l.caretRangeFromPoint(e,t);else if(l.body.createTextRange){r=l.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(i){r=function(e,t,n){var r,i=n.elementFromPoint(e,t),o=n.body.createTextRange();if(i&&"HTML"!==i.tagName||(i=n.body),o.moveToElementText(i),0<(r=(r=Dt.toArray(o.getClientRects())).sort((function(e,n){return(e=Math.abs(Math.max(e.top-t,e.bottom-t)))-Math.abs(Math.max(n.top-t,n.bottom-t))}))).length){t=(r[0].bottom+r[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(e){}}return null}(e,t,n)}return o=r,a=n.body,s=o&&o.parentElement?o.parentElement():null,Zn(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(s,a,Df))?null:o}return r}function Tf(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}function Ef(e,t,n){return null!==function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(e,t,n)}function If(e){return e&&"TABLE"===e.nodeName}function Nf(e,t,n){for(var r=new Ar(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());t=r[n?"prev":"next"]();)if(Kn(t))return 1}function Af(e,t,n,r,i){var o,a,s=e.getRoot(),l=e.schema.getNonEmptyElements(),u=e.getParent(i.parentNode,e.isBlock)||s;if(r&&Kn(i)&&t&&e.isEmpty(u))return ye.some(fl(i.parentNode,e.nodeIndex(i)));for(var c,f,d=new Ar(i,u);a=d[r?"prev":"next"]();){if("false"===e.getContentEditableParent(a)||(f=s,$r(c=a)&&!1===Ef(c,f,Wu)))return ye.none();if(Wn(a)&&0<a.nodeValue.length)return!1===Ef(a,s,(function(e){return"A"===e.nodeName}))?ye.some(fl(a,r?a.nodeValue.length:0)):ye.none();if(e.isBlock(a)||l[a.nodeName.toLowerCase()])return ye.none();o=a}return n&&o?ye.some(fl(o,0)):ye.none()}function Pf(e,t,n,r){var i,o=e.getRoot(),a=!1,s=r[(n?"start":"end")+"Container"],l=r[(n?"start":"end")+"Offset"],u=Hn(s)&&l===s.childNodes.length,c=e.schema.getNonEmptyElements(),f=n;if($r(s))return ye.none();if(Hn(s)&&l>s.childNodes.length-1&&(f=!1),Gn(s)&&(s=o,l=0),s===o){if(f&&(d=s.childNodes[0<l?l-1:0])){if($r(d))return ye.none();if(c[d.nodeName]||If(d))return ye.none()}if(s.hasChildNodes()){if(l=Math.min(!f&&0<l?l-1:l,s.childNodes.length-1),s=s.childNodes[l],l=Wn(s)&&u?s.data.length:0,!t&&s===o.lastChild&&If(s))return ye.none();if(function(e,t){for(;t&&t!==e;){if(Zn(t))return 1;t=t.parentNode}}(o,s)||$r(s))return ye.none();if(s.hasChildNodes()&&!1===If(s)){var d=s,h=new Ar(s,o);do{if(Zn(d)||$r(d)){a=!1;break}if(Wn(d)&&0<d.nodeValue.length){l=f?0:d.nodeValue.length,s=d,a=!0;break}if(c[d.nodeName.toLowerCase()]&&(!(i=d)||!/^(TD|TH|CAPTION)$/.test(i.nodeName))){l=e.nodeIndex(d),s=d.parentNode,f||l++,a=!0;break}}while(d=f?h.next():h.prev())}}}return t&&(Wn(s)&&0===l&&Af(e,u,t,!0,s).each((function(e){s=e.container(),l=e.offset(),a=!0})),Hn(s)&&(!(d=(d=s.childNodes[l])||s.childNodes[l-1])||!Kn(d)||d.previousSibling&&"A"===d.previousSibling.nodeName||Nf(e,d,!1)||Nf(e,d,!0)||Af(e,u,t,!0,d).each((function(e){s=e.container(),l=e.offset(),a=!0})))),f&&!t&&Wn(s)&&l===s.nodeValue.length&&Af(e,u,t,!1,s).each((function(e){s=e.container(),l=e.offset(),a=!0})),a?ye.some(fl(s,l)):ye.none()}function Mf(e,t){var n=t.collapsed,r=t.cloneRange(),i=fl.fromRangeStart(t);return Pf(e,n,!0,r).each((function(e){n&&fl.isAbove(i,e)||r.setStart(e.container(),e.offset())})),n||Pf(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),Tf(t,r)?ye.none():ye.some(r)}function Rf(e,t){return e.splitText(t)}function Ff(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset;return t===r&&Wn(t)?0<n&&n<t.nodeValue.length&&(t=(r=Rf(t,n)).previousSibling,n<i?(t=r=Rf(r,i-=n).previousSibling,i=r.nodeValue.length,n=0):i=0):(Wn(t)&&0<n&&n<t.nodeValue.length&&(t=Rf(t,n),n=0),Wn(r)&&0<i&&i<r.nodeValue.length&&(i=(r=Rf(r,i).previousSibling).nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:i}}function Bf(e){return{walk:function(t,n){return Ec(e,t,n)},split:Ff,normalize:function(t){return Mf(e,t).fold(A,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))}}}Hc.isBookmarkNode=ec;var Lf={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||Lf.metaKeyPressed(e)},metaKeyPressed:function(e){return xt.mac?e.metaKey:e.ctrlKey&&!e.altKey}},$f=Zn;Bf.compareRanges=Tf,Bf.getCaretRangeFromPoint=Of,Bf.getSelectedNode=Bs,Bf.getNode=Ls;var Vf,jf,zf=(Vf="height",jf=function(e){var t=e.dom;return $n(e)?t.getBoundingClientRect().height:t.offsetHeight},{set:function(e,t){if(!D(t)&&!t.match(/^[0-9]+$/))throw new Error(Vf+".set accepts only positive integer values. Value was "+t);var n=e.dom;mn(n)&&(n.style[Vf]=t+"px")},get:Hf,getOuter:Hf,aggregate:Uf,max:function(e,t,n){var r=Uf(e,n);return r<t?t-r:0}});function Hf(e){var t=jf(e);if(t<=0||null===t){var n=Sn(e,Vf);return parseFloat(n)||0}return t}function Uf(e,t){return W(t,(function(t,n){var r=Sn(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)}function Wf(e){return"textarea"===Tt(e)}function qf(e,t){var n=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return jn(n.offsetLeft,n.offsetTop);var o=Zt(null==r?void 0:r.pageYOffset,i.scrollTop),a=Zt(null==r?void 0:r.pageXOffset,i.scrollLeft),s=Zt(i.clientTop,n.clientTop),l=Zt(i.clientLeft,n.clientLeft);return zn(e).translate(a-l,o-s)}(e),r=zf.get(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}}function Gf(e,t,n,r){Md(e,(function(i,o){return Pd(e,t,n,r)}),n)}function Yf(e,t,n,r,i){var o={elm:r.element.dom,alignToTop:i};e.fire("ScrollIntoView",o).isDefaultPrevented()||(n(t,Qt(t).top,r,i),e.fire("AfterScrollIntoView",o))}function Kf(e,t,n,r){var i=Ot.fromDom(e.getDoc());Yf(e,i,n,qf(Ot.fromDom(t),c),r)}function Xf(e,t,n,r){var i,o=e.pos;n?en(o.left,o.top,r):(i=o.top-t+e.height,en(o.left,i,r))}function Jf(e,t,n,r,i){var o=n+t,a=r.pos.top,s=r.bottom,l=n<=s-a;a<t?Xf(r,n,!1!==i,e):o<a?Xf(r,n,l?!1!==i:!0===i,e):o<s&&!l&&Xf(r,n,!0===i,e)}function Zf(e,t,n,r){Jf(e,t,e.dom.defaultView.innerHeight,n,r)}function Qf(e,t,n,r){Jf(e,t,e.dom.defaultView.innerHeight,n,r);var i,o,a,s,l,u,c,f=(i=n.element,s=Qt(Ot.fromDom(document)),a=(o=Ad).owner(i),l=Nd(o,a),u=zn(i),c=U(l,(function(e,t){var n=zn(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0}),jn(c.left+u.left+s.left,c.top+u.top+s.top)),d=rn(window);f.top<d.y?tn(n.element,!1!==r):f.top>d.bottom&&tn(n.element,!0===r)}function ed(e,t,n){return Gf(e,Zf,t,n)}function td(e,t,n){return Kf(e,t,Zf,n)}function nd(e,t,n){return Gf(e,Qf,t,n)}function rd(e,t,n){return Kf(e,t,Qf,n)}function id(e,t,n){(e.inline?ed:nd)(e,t,n)}function od(e){var t=Fn(e).dom;return e.dom===t.activeElement}function ad(e){return void 0===e&&(e=Ot.fromDom(document)),ye.from(e.dom.activeElement).map(Ot.fromDom)}function sd(e,t){var n=In(t)?$c(t).length:Pn(t).length+1;return n<e?n:e<0?0:e}function ld(e){return Ld.range(e.start,sd(e.soffset,e.start),e.finish,sd(e.foffset,e.finish))}function ud(e,t){return!an(t.dom)&&(We(e,t)||Ue(e,t))}function cd(e){return function(t){return ud(e,t.start)&&ud(e,t.finish)}}function fd(e){return!0===e.inline||$d.isIE()}function dd(e){return Ld.range(Ot.fromDom(e.startContainer),e.startOffset,Ot.fromDom(e.endContainer),e.endOffset)}function hd(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),ye.some(t)}catch(e){return ye.none()}}function pd(e){var t,n,r=fd(e)?(t=Ot.fromDom(e.getBody()),((n=Pt(t).dom.getSelection())&&0!==n.rangeCount?ye.from(n.getRangeAt(0)):ye.none()).map(dd).filter(cd(t))):ye.none();e.bookmark=r.isSome()?r:e.bookmark}function md(e){return(e.bookmark||ye.none()).bind((function(t){return n=Ot.fromDom(e.getBody()),ye.from(t).filter(cd(n)).map(ld);var n})).bind(hd)}function gd(e){var t=ms((function(){pd(e)}),0);e.on("init",(function(){function n(){i.throttle()}var r,i,o,a,s,l;e.inline&&(r=e,i=t,ns.DOM.bind(document,"mouseup",n),r.on("remove",(function(){ns.DOM.unbind(document,"mouseup",n)}))),o=e,a=t,pt().browser.isIE()?(l=o).on("focusout",(function(){pd(l)})):(s=a,o.on("mouseup touchend",(function(e){s.throttle()}))),o.on("keyup NodeChange",(function(e){"nodechange"===e.type&&e.selectionChange||pd(o)}))})),e.on("remove",(function(){t.cancel()}))}function vd(e,t){var n=e.getParam("custom_ui_selector","","string");return null!==jd.getParent(t,(function(t){return Vd.isEditorUIElement(t)||!!n&&e.dom.is(t,n)}))}function bd(e,t){var n=t.editor;gd(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),(e.focusedEditor=n).fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){Ir.setEditorTimeout(n,(function(){var t=e.focusedEditor;vd(n,function(e){try{return ad(Fn(Ot.fromDom(e.getElement()))).fold((function(){return document.body}),(function(e){return e.dom}))}catch(e){return document.body}}(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),Id||(Id=function(t){var n=e.activeEditor;n&&function(e){if(Rn()&&u(e.target)){var t=Ot.fromDom(e.target);if(En(t)&&u(t.dom.shadowRoot)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return te(n)}}return ye.from(e.target)}(t).each((function(t){t.ownerDocument===document&&(t===document.body||vd(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},jd.bind(document,"focusin",Id))}function yd(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(jd.unbind(document,"focusin",Id),Id=null)}function wd(e,t){var n,r;n=Ot.fromDom(e.getBody()),((r=t).collapsed?ye.from(Ls(r.startContainer,r.startOffset)).map(Ot.fromDom):ye.none()).bind((function(e){return yi(e)?ye.some(e):!1===We(n,e)?ye.some(n):ye.none()})).bind((function(e){return af(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))}function _d(e){if(e.setActive)try{e.setActive()}catch(o){e.focus()}else e.focus()}function Cd(e){return e.inline?(r=e.getBody())&&(od(t=Ot.fromDom(r))||ad(Fn(n=t)).filter((function(e){return n.dom.contains(e.dom)})).isSome()):e.iframeElement&&od(Ot.fromDom(e.iframeElement));var t,n,r}function xd(e,t,n,r,i){var o=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return ye.from(o).map(Ot.fromDom).map((function(e){return r&&t.collapsed?e:$t(e,i(e,a)).getOr(e)})).bind((function(e){return En(e)?ye.some(e):Mt(e).filter(En)})).map((function(e){return e.dom})).getOr(e)}function Sd(e,t,n){return xd(e,t,!0,n,(function(e,t){return Math.min(zt(e),t)}))}function kd(e,t,n){return xd(e,t,!1,n,(function(e,t){return 0<t?t-1:t}))}function Dd(e,t){for(var n=e;e&&Wn(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n}function Od(e,t){return $(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))}function Td(e,t,n){var r=n?"lastChild":"firstChild",i=n?"prev":"next";if(e[r])return e[r];if(e!==t){var o=e[i];if(o)return o;for(var a=e.parent;a&&a!==t;a=a.parent)if(o=a[i])return o}}function Ed(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t}var Id,Nd=function(e,t){return e.view(t).fold(h([]),(function(t){var n=e.owner(t),r=Nd(e,n);return[t].concat(r)}))},Ad=Object.freeze({__proto__:null,view:function(e){var t;return(e.dom===document?ye.none():ye.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement)).map(Ot.fromDom)},owner:At}),Pd=function(e,t,n,r){var i=Ot.fromDom(e.getBody()),o=Ot.fromDom(e.getDoc());i.dom.offsetWidth;var a,s,l,u,c=(a=Ot.fromDom(n.startContainer),s=n.startOffset,l=function(e,t){var n=Pn(e);if(0===n.length||Wf(e))return{element:e,offset:t};if(t<n.length&&!Wf(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Wf(r)?{element:e,offset:t}:"img"===Tt(r)?{element:r,offset:1}:In(r)?{element:r,offset:$c(r).length}:{element:r,offset:Pn(r).length}}(a,s),u=Ot.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">\ufeff</span>'),qt(l.element,u),qf(u,(function(){return Ln(u)})));Yf(e,o,t,c,r),c.cleanup()},Md=function(e,t,n){var r=n.startContainer,i=n.startOffset,o=n.endContainer,a=n.endOffset;t(Ot.fromDom(r),Ot.fromDom(o));var s=e.dom.createRng();s.setStart(r,i),s.setEnd(o,a),e.selection.setRng(n)},Rd=sr([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Fd=(Rd.before,Rd.on,Rd.after,function(e){return e.fold(p,p,p)}),Bd=sr([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Ld={domRange:Bd.domRange,relative:Bd.relative,exact:Bd.exact,exactFromRange:function(e){return Bd.exact(e.start,e.soffset,e.finish,e.foffset)},getWin:function(e){return Pt(e.match({domRange:function(e){return Ot.fromDom(e.startContainer)},relative:function(e,t){return Fd(e)},exact:function(e,t,n,r){return e}}))},range:function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}}},$d=pt().browser,Vd={isEditorUIElement:function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")}},jd=ns.DOM,zd=function(e){return e.editorManager.setActive(e)},Hd={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ud=(Wd.create=function(e,t){var n=new Wd(e,Hd[e]||1);return t&&ie(t,(function(e,t){n.attr(t,e)})),n},Wd.prototype.replace=function(e){return e.parent&&e.remove(),this.insert(e,this),this.remove(),this},Wd.prototype.attr=function(e,t){var n,r=this;if("string"!=typeof e)return null!=e&&ie(e,(function(e,t){r.attr(t,e)})),r;if(n=r.attributes){if(void 0===t)return n.map[e];if(null===t){if(e in n.map){delete n.map[e];for(var i=n.length;i--;)if(n[i].name===e)return n.splice(i,1),r}return r}if(e in n.map){for(i=n.length;i--;)if(n[i].name===e){n[i].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}},Wd.prototype.clone=function(){var e,t=new Wd(this.name,this.type);if(e=this.attributes){var n=[];n.map={};for(var r=0,i=e.length;r<i;r++){var o=e[r];"id"!==o.name&&(n[n.length]={name:o.name,value:o.value},n.map[o.name]=o.value)}t.attributes=n}return t.value=this.value,t.shortEnded=this.shortEnded,t},Wd.prototype.wrap=function(e){return this.parent.insert(e,this),e.append(this),this},Wd.prototype.unwrap=function(){for(var e=this.firstChild;e;){var t=e.next;this.insert(e,this,!0),e=t}this.remove()},Wd.prototype.remove=function(){var e=this.parent,t=this.next,n=this.prev;return e&&(e.firstChild===this?(e.firstChild=t)&&(t.prev=null):n.next=t,e.lastChild===this?(e.lastChild=n)&&(n.next=null):t.prev=n,this.parent=this.next=this.prev=null),this},Wd.prototype.append=function(e){e.parent&&e.remove();var t=this.lastChild;return t?((t.next=e).prev=t,this.lastChild=e):this.lastChild=this.firstChild=e,e.parent=this,e},Wd.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,(e.next=t).prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,(e.prev=t).next=e),e.parent=r,e},Wd.prototype.getAll=function(e){for(var t=[],n=this.firstChild;n;n=Td(n,this))n.name===e&&t.push(n);return t},Wd.prototype.children=function(){for(var e=[],t=this.firstChild;t;t=t.next)e.push(t);return e},Wd.prototype.empty=function(){if(this.firstChild){for(var e=[],t=this.firstChild;t;t=Td(t,this))e.push(t);for(var n=e.length;n--;)(t=e[n]).parent=t.firstChild=t.lastChild=t.next=t.prev=null}return this.firstChild=this.lastChild=null,this},Wd.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this.firstChild;if(Ed(this))return!1;if(r)do{if(1===r.type){if(r.attr("data-mce-bogus"))continue;if(e[r.name])return!1;if(Ed(r))return!1}if(8===r.type)return!1;if(3===r.type&&!function(e){if(Gr(e.value)){var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)}}(r))return!1;if(3===r.type&&r.parent&&t[r.parent.name]&&Gr(r.value))return!1;if(n&&n(r))return!1}while(r=Td(r,this));return!0},Wd.prototype.walk=function(e){return Td(this,null,e)},Wd);function Wd(e,t){this.name=e,1===(this.type=t)&&(this.attributes=[],this.attributes.map={})}function qd(e){return y(e.nodeValue)&&Pe(e.nodeValue,Si)}function Gd(e){return(0===e.length?"":$(e,(function(e){return"["+e+"]"})).join(",")+",")+'[data-mce-bogus="all"]'}function Yd(e,t,n){return document.createTreeWalker(e,t,n,!1)}function Kd(e){return Yd(e,NodeFilter.SHOW_COMMENT,(function(e){return qd(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}))}function Xd(e){return Yd(e,NodeFilter.SHOW_TEXT,(function(e){if(qd(e)){var t=e.parentNode;return t&&Oe(ah,t.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_SKIP}))}function Jd(e){return null!==Kd(e).nextNode()}function Zd(e){return null!==Xd(e).nextNode()}function Qd(e,t){return null!==t.querySelector(Gd(e))}function eh(e,t){V(t.querySelectorAll(Gd(e)),(function(t){var n=Ot.fromDom(t);"all"===yn(n,"data-mce-bogus")?Ln(n):V(e,(function(e){_n(n,e)&&Cn(n,e)}))}))}function th(e){for(var t=e.nextNode();null!==t;)t.nodeValue=null,t=e.nextNode()}function nh(e,t){var n=[{condition:O(Qd,t),action:O(eh,t)},{condition:Jd,action:sh},{condition:Zd,action:lh}],r=e,i=!1;return V(n,(function(t){var n=t.condition,o=t.action;n(r)&&(i||(r=e.cloneNode(!0),i=!0),o(r))})),r}function rh(e){return{compare:function(t,n){return t.nodeName===n.nodeName&&!(!i(r(t),r(n))||!i(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))||ec(t)||ec(n));function r(t){var n={};return uh(e.getAttribs(t),(function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf("_")&&"style"!==i&&0!==i.indexOf("data-")&&(n[i]=e.getAttrib(t,i))})),n}function i(e,t){var n,r;for(r in e)if(Oe(e,r)){if(void 0===(n=t[r]))return;if(e[r]!==n)return;delete t[r]}for(r in t)if(Oe(t,r))return;return 1}}}}function ih(e){var t=[],n=(e=e||{}).indent,r=ch(e.indent_before||""),i=ch(e.indent_after||""),o=eo.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,s,l){var u,c,f,d;if(n&&r[e]&&0<t.length&&0<(d=t[t.length-1]).length&&"\n"!==d&&t.push("\n"),t.push("<",e),s)for(u=0,c=s.length;u<c;u++)f=s[u],t.push(" ",f.name,'="',o(f.value,!0),'"');t[t.length]=!l||a?">":" />",l&&n&&i[e]&&0<t.length&&0<(d=t[t.length-1]).length&&"\n"!==d&&t.push("\n")},end:function(e){var r;t.push("</",e,">"),n&&i[e]&&0<t.length&&0<(r=t[t.length-1]).length&&"\n"!==r&&t.push("\n")},text:function(e,n){0<e.length&&(t[t.length]=n?e:o(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,r){r?t.push("<?",e," ",o(r),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}}function oh(e,t){void 0===t&&(t=ai());var n=ih(e);return(e=e||{}).validate=!("validate"in e)||e.validate,{serialize:function(r){var i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;a(e),e=e.next;);}};n.reset();var a=function(e){var r=o[e.type];if(r)r(e);else{var s=e.name,l=e.shortEnded,u=e.attributes;if(i&&u&&1<u.length){var c=[];c.map={};var f=t.getElementRule(e.name);if(f){for(var d=0,h=f.attributesOrder.length;d<h;d++)(p=f.attributesOrder[d])in u.map&&(m=u.map[p],c.map[p]=m,c.push({name:p,value:m}));var p,m;for(d=0,h=u.length;d<h;d++)(p=u[d].name)in c.map||(m=u.map[p],c.map[p]=m,c.push({name:p,value:m}));u=c}}if(n.start(e.name,u,l),!l){if(e=e.firstChild)for(;a(e),e=e.next;);n.end(s)}}};return 1!==r.type||e.inner?o[11](r):a(r),n.getContent()}}}var ah=Dt.makeMap("NOSCRIPT STYLE SCRIPT XMP IFRAME NOEMBED NOFRAMES PLAINTEXT"," "),sh=f(th,Kd),lh=f(th,Xd),uh=Dt.each,ch=Dt.makeMap,fh=new Set;function dh(e,t){return Se(e.parseStyle(e.getAttrib(t,"style")))}function hh(e,t,n){return ye.from(n.container()).filter(Wn).exists((function(r){var i=e?0:-1;return t(r.data.charAt(n.offset()+i))}))}function ph(e){var t=e.container();return Wn(t)&&(0===t.data.length||ki(t.data)&&Hc.isBookmarkNode(t.parentNode))}function mh(e,t){return function(n){return ye.from(tu(e?0:-1,n)).filter(t).isSome()}}function gh(e){return Xn(e)&&"block"===Sn(Ot.fromDom(e),"display")}function vh(e){return Zn(e)&&!(Hn(t=e)&&"all"===t.getAttribute("data-mce-bogus"));var t}function bh(e){Xt(e),Bn(e,Ot.fromHtml('<br data-mce-bogus="1">'))}function yh(e){jt(e).each((function(t){Rt(t).each((function(n){mi(e)&&Fr(t)&&mi(n)&&Ln(t)}))}))}function wh(e,t){return i=A,We(r=t,n=e)?function(e,t){for(var n=k(t)?t:A,r=e.dom,i=[];null!==r.parentNode&&void 0!==r.parentNode;){var o=r.parentNode,a=Ot.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i}(n,(function(e){return i(e)||Ue(e,r)})).slice(0,-1):[];var n,r,i}function _h(e,t){return[e].concat(wh(e,t))}function Ch(e,t,n){return nf(e,t,n,ph)}function xh(e,t){return G(_h(Ot.fromDom(t.container()),e),mi)}function Sh(e,t,n){return Ch(e,t.dom,n).forall((function(e){return xh(t,n).fold((function(){return!1===eu(e,n,t.dom)}),(function(r){return!1===eu(e,n,t.dom)&&We(r,Ot.fromDom(e.container()))}))}))}function kh(e,t,n){return xh(t,n).fold((function(){return Ch(e,t.dom,n).forall((function(e){return!1===eu(e,n,t.dom)}))}),(function(t){return Ch(e,t.dom,n).isNone()}))}function Dh(e){return su(e).exists(Fr)}function Oh(e,t,n){var r=te(H(_h(Ot.fromDom(n.container()),t),mi)).getOr(t);return tf(e,r.dom,n).filter(Dh)}function Th(e,t){return su(t).exists(Fr)||Oh(!0,e,t).isSome()}function Eh(e,t){return ye.from(t.getNode(!0)).map(Ot.fromDom).exists(Fr)||Oh(!1,e,t).isSome()}function Ih(e){return fl.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()}function Nh(e,t){return te(H(_h(Ot.fromDom(t.container()),e),mi)).getOr(e)}function Ah(e,t){return Ih(t)?Zp(t):Zp(t)||of(Nh(e,t).dom,t).exists(Zp)}function Ph(e,t){return Ih(t)?Jp(t):Jp(t)||rf(Nh(e,t).dom,t).exists(Jp)}function Mh(e){return su(e).bind((function(e){return br(e,En)})).exists((function(e){return B(["pre","pre-wrap"],Sn(e,"white-space"))}))}function Rh(e,t){return!Mh(t)&&(sm(e,t)||um(e,t)||Eh(e,t)||Ah(e,t))}function Fh(e,t){return!Mh(t)&&(lm(e,t)||cm(e,t)||Th(e,t)||Ph(e,t))}function Bh(e,t){return Rh(e,t)||Fh(e,(r=(n=t).container(),i=n.offset(),Wn(r)&&i<r.data.length?fl(r,i+1):n));var n,r,i}function Lh(e,t){return cf(e.charAt(t))}function $h(e){var t=e.container();return Wn(t)&&Pe(t.data,xi)}function Vh(e,t){return ye.some(t).filter($h).bind((function(t){var n,r,i,o,a,s,l,u,c,f=t.container(),d=e,h=(a=f).data,p=fl(a,0);return(!Lh(h,0)||Bh(d,p)?(u=(s=f).data,(c=$(l=u.split(""),(function(e,t){return cf(e)&&0<t&&t<l.length-1&&nc(l[t-1])&&nc(l[t+1])?" ":e})).join(""))!==u&&(s.data=c,1)):(a.data=" "+h.slice(1),1))||(n=e,i=(r=f).data,o=fl(r,i.length-1),Lh(i,i.length-1)&&!Bh(n,o)&&(r.data=i.slice(0,-1)+" ",1))?ye.some(t):ye.none()}))}function jh(e){var t=Ot.fromDom(e.getBody());e.selection.isCollapsed()&&Vh(t,fl.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))}function zh(e,t,n){var r,i,o,a,s,l,u,c;0!==n&&(i=vr(r=Ot.fromDom(e),mi).getOr(r),o=e.data.slice(t,t+n),a=t+n>=e.data.length&&Fh(i,fl(e,e.data.length)),s=0===t&&Rh(i,fl(e,0)),e.replaceData(t,n,(u=s,c=a,W(l=o,(function(e,t){return tc(t)||cf(t)?e.previousCharIsSpace||""===e.str&&u||e.str.length===l.length-1&&c?{previousCharIsSpace:!1,str:e.str+xi}:{previousCharIsSpace:!0,str:e.str+" "}:{previousCharIsSpace:!1,str:e.str+t}}),{previousCharIsSpace:!1,str:""}).str)))}function Hh(e,t){var n=e.data.slice(t);zh(e,t,n.length-et(n).length)}function Uh(e,t){var n=e.data.slice(0,t),r=n.length-tt(n).length;zh(e,t-r,r)}function Wh(e,t,n,r){void 0===r&&(r=!0);var i=tt(e.data).length,o=r?e:t,a=r?t:e;return r?o.appendData(a.data):o.insertData(0,a.data),Ln(Ot.fromDom(a)),n&&Hh(o,i),o}function qh(e,t){return r=e,i=(n=t).container(),o=n.offset(),!1===fl.isTextPosition(n)&&i===r.parentNode&&o>fl.before(r).offset()?fl(t.container(),t.offset()-1):t;var n,r,i,o}function Gh(e){return Wr(e.previousSibling)?ye.some((t=e.previousSibling,Wn(t)?fl(t,t.data.length):fl.after(t))):e.previousSibling?sf(e.previousSibling):ye.none();var t}function Yh(e){return Wr(e.nextSibling)?ye.some((t=e.nextSibling,Wn(t)?fl(t,0):fl.before(t))):e.nextSibling?af(e.nextSibling):ye.none();var t}function Kh(e,t){return Gh(t).orThunk((function(){return Yh(t)})).orThunk((function(){return n=e,i=fl.before((r=t).previousSibling||r.parentNode),of(n,i).fold((function(){return rf(n,fl.after(r))}),ye.some);var n,r,i}))}function Xh(e,t){return Yh(t).orThunk((function(){return Gh(t)})).orThunk((function(){return rf(n=e,fl.after(r=t)).fold((function(){return of(n,fl.before(r))}),ye.some);var n,r}))}function Jh(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))}function Zh(e,t){return t&&Oe(e.schema.getBlockElements(),Tt(t))}function Qh(e){if(Kr(e)){var t=Ot.fromHtml('<br data-mce-bogus="1">');return Xt(e),Bn(e,t),ye.some(fl.before(t.dom))}return ye.none()}function ep(e,t,n,r){void 0===r&&(r=!0);var i,o,a,s,l,u,c,f,d,h,p,m,g,v,b=(m=t,g=e.getBody(),v=n.dom,(m?Xh:Kh)(g,v).map(O(qh,v))),y=vr(n,O(Zh,e),(i=e.getBody(),function(e){return e.dom===i})),w=(s=b,o=a=n,l=Oe(e.schema.getTextInlineElements(),Tt(o)),h=Rt(a).filter(In),p=Ft(a).filter(In),Ln(a),c=p,f=s,d=function(e,t,n){var r=e.dom,i=t.dom,o=r.data.length;return Wh(r,i,l),n.container()===i?fl(r,o):n},((u=h).isSome()&&c.isSome()&&f.isSome()?ye.some(d(u.getOrDie(),c.getOrDie(),f.getOrDie())):ye.none()).orThunk((function(){return l&&(h.each((function(e){return Uh(e.dom,e.dom.length)})),p.each((function(e){return Hh(e.dom,0)}))),s})));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):y.bind(Qh).fold((function(){r&&Jh(e,t,w)}),(function(n){r&&Jh(e,t,ye.some(n))}))}function tp(e){return _s(e,"td,th")}function np(e,t){return{start:e,end:t}}function rp(e,t){return _r(Ot.fromDom(e),"td,th",t)}function ip(e){return!Ue(e.start,e.end)}function op(e,t){return Pc(e.start,t).bind((function(n){return Pc(e.end,t).bind((function(e){return Ue(n,e)?ye.some(n):ye.none()}))}))}function ap(e){return function(t){return op(t,e).map((function(e){return{rng:t,table:e,cells:tp(e)}}))}}function sp(e,t,n,r){if(n.collapsed||!e.forall(ip))return ye.none();if(t.isSameTable){var i=e.bind(ap(r));return ye.some({start:i,end:i})}var o,a,s=rp(n.startContainer,r),l=rp(n.endContainer,r),u=s.bind((a=r,function(e){return Pc(e,a).bind((function(t){return ne(tp(t)).map((function(t){return np(e,t)}))}))})).bind(ap(r)),c=l.bind((o=r,function(e){return Pc(e,o).bind((function(t){return te(tp(t)).map((function(t){return np(t,e)}))}))})).bind(ap(r));return ye.some({start:u,end:c})}function lp(e,t){return Y(e,(function(e){return Ue(e,t)}))}function up(e){return pn(lp(e.cells,e.rng.start),lp(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))}function cp(e,t){var n=t.startTable,r=t.endTable,i=e.cloneRange();return n.each((function(e){return i.setStartAfter(e.dom)})),r.each((function(e){return i.setEndBefore(e.dom)})),i}function fp(e,t){var n,r,i,o,a,s,l,u,c,f,d,h,p,m,g,v,b=(n=e,function(e){return Ue(n,e)}),y=pn(rp((r=t).startContainer,i=b),rp(r.endContainer,i),np),w=(c=b,f=_((u=t).startContainer),d=_(u.endContainer),h=f.isSome(),p=d.isSome(),m=pn(f,d,Ue).getOr(!1),{startTable:f,endTable:d,isStartInTable:h,isEndInTable:p,isSameTable:m,isMultiTable:!m&&h&&p});function _(e){return Pc(Ot.fromDom(e),c)}return g=t,v=b,y.exists((function(e){return!ip(t=e)&&op(t,v).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))&&Mc(e.start,g);var t}))?y.map((function(e){return hm.singleCellTable(t,e.start)})):w.isMultiTable?sp(y,s=w,l=t,b).bind((function(e){var t=e.start,n=e.end,r=t.bind(up).getOr([]),i=n.bind(up).getOr([]);if(0<r.length&&0<i.length){var o=cp(l,s);return ye.some(hm.multiTable(r,i,o))}return ye.none()})):sp(y,o=w,a=t,b).bind((function(e){var t=e.start,n=e.end;return t.or(n)})).bind((function(e){var t=o.isSameTable,n=up(e).getOr([]);if(t&&e.cells.length===n.length)return ye.some(hm.fullTable(e.table));if(0<n.length){if(t)return ye.some(hm.partialTable(n,ye.none()));var r=cp(a,o);return ye.some(hm.partialTable(n,ye.some(Ee(Ee({},o),{rng:r}))))}return ye.none()}))}function dp(e){return V(e,(function(e){Cn(e,"contenteditable"),bh(e)})),0}function hp(e,t,n,r){var i=n.cloneRange();r?(i.setStart(n.startContainer,n.startOffset),i.setEndAfter(t.dom.lastChild)):(i.setStartBefore(t.dom.firstChild),i.setEnd(n.endContainer,n.endOffset)),mm(e,i,t,!1)}function pp(e){var t=Ac(e),n=Ot.fromDom(e.selection.getNode());Qn(n.dom)&&Kr(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),1<t.length&&L(t,(function(e){return Ue(e,n)}))&&vn(n,"data-mce-selected","1")}function mp(e,t,n){var r=e.selection.getRng();return dp(n.bind((function(n){var i,o,a,s=n.rng,l=n.isStartInTable,u=(i=l?s.endContainer:s.startContainer,ye.from(e.dom.getParent(i,e.dom.isBlock)).map(Ot.fromDom));s.deleteContents(),o=e,a=l,u.filter(Kr).each((function(e){a?Ln(e):(bh(e),o.selection.setCursorLocation(e.dom,0))}));var c=l?t[0]:t[t.length-1];return hp(e,c,r,l),Kr(c)?ye.none():ye.some(l?t.slice(1):t.slice(0,-1))})).getOr(t)),pp(e),!0}function gp(e,t,n,r){var i=e.selection.getRng(),o=t[0],a=n[n.length-1];hp(e,o,i,!0),hp(e,a,i,!1);var s=Kr(o)?t:t.slice(1),l=Kr(a)?n:n.slice(0,-1);return dp(s.concat(l)),r.deleteContents(),pp(e),!0}function vp(e,t){return ep(e,!1,t),!0}function bp(e,t){return G(_h(t,e),wi)}function yp(e,t){return(e?rm:im)(t)}function wp(e,t,n){var r=Ot.fromDom(e.getBody());return gm(r,n).fold((function(){return i=e,o=t,a=r,s=n,l=fl.fromRangeStart(i.selection.getRng()),bp(a,s).bind((function(e){return Kr(e)?vm(i,e):(t=a,n=e,r=l,Hu(o,i.getBody(),r).bind((function(e){return bp(t,Ot.fromDom(e.getNode())).map((function(e){return!1===Ue(e,n)}))})));var t,n,r})).getOr(!1)||(c=t,f=fl.fromRangeStart((u=e).selection.getRng()),yp(c,f)||tf(c,u.getBody(),f).exists((function(e){return yp(c,e)})));var i,o,a,s,l,u,c,f}),(function(n){return c=t,f=r,d=n,h=fl.fromRangeStart((u=e).selection.getRng()),(Kr(d)?vm(u,d):(o=f,s=d,l=h,Hu(a=c,(i=u).getBody(),l).bind((function(e){return r=a,u=l,c=e,af((n=s).dom).bind((function(e){return sf(n.dom).map((function(t){return r?u.isEqual(e)&&c.isEqual(t):u.isEqual(t)&&c.isEqual(e)}))})).getOr(!0)?vm(i,s):(t=s,gm(o,Ot.fromDom(e.getNode())).map((function(e){return!1===Ue(e,t)})));var t,n,r,u,c})).or(ye.some(!0)))).getOr(!1);var i,o,a,s,l,u,c,f,d,h}))}function _p(e,t){var n,r,i,o,a,s,l,u,c=Ot.fromDom(e.selection.getStart(!0)),f=Ac(e);return e.selection.isCollapsed()&&0===f.length?wp(e,t,c):(r=c,i=f,o=Ot.fromDom((n=e).getBody()),a=n.selection.getRng(),0!==i.length?mp(n,i,ye.none()):(s=n,u=a,gm(l=o,r).fold((function(){return e=s,fp(l,u).map((function(t){return t.fold(O(mm,e),O(vp,e),O(mp,e),O(gp,e))}));var e}),(function(e){return vm(s,e)})).getOr(!1)))}function Cp(e){return e.collapsed?e:(t=e,n=fl.fromRangeStart(t),r=fl.fromRangeEnd(t),i=t.commonAncestorContainer,tf(!1,i,r).map((function(e){return!eu(n,r,i)&&eu(n,e,i)?(o=n.container(),a=n.offset(),s=e.container(),l=e.offset(),(u=document.createRange()).setStart(o,a),u.setEnd(s,l),u):t;var o,a,s,l,u})).getOr(t));var t,n,r,i}function xp(e,t){var n,r,i,o,a,s=t.firstChild,l=t.lastChild;return s&&"meta"===s.name&&(s=s.next),r=l=l&&"mce_marker"===l.attr("id")?l.prev:l,i=(n=e).getNonEmptyElements(),r&&(r.isEmpty(i)||(o=r,n.getBlockElements()[o.name]&&o.firstChild&&o.firstChild===o.lastChild&&("br"===(a=o.firstChild).name||a.value===xi)))&&(l=l.prev),s&&s===l&&("ul"===s.name||"ol"===s.name)}function Sp(e){return 0<e.length&&(!(r=e[e.length-1]).firstChild||(t=r)&&t.firstChild&&t.firstChild===t.lastChild&&((n=t.firstChild).data===xi||Kn(n)))?e.slice(0,-1):e;var t,n,r}function kp(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null}function Dp(e,t){var n=fl.after(e),r=$u(t).prev(n);return r?r.toRange():null}function Op(e,t,n,r){function i(e){var r=fl.fromRangeStart(n),i=$u(t.getRoot()),o=1===e?i.prev(r):i.next(r);return!o||kp(t,o.getNode())!==E}var o,a,s,l,u,c,f,d,h,p,m,g,v,b,y,w,_,C,x,S,k,D,O,T=(o=t,u=e.serialize(r),s=(a=o.createFragment(u)).firstChild,l=a.lastChild,s&&"META"===s.nodeName&&s.parentNode.removeChild(s),l&&"mce_marker"===l.id&&l.parentNode.removeChild(l),a),E=kp(t,n.startContainer),I=Sp(H(T.firstChild.childNodes,(function(e){return"LI"===e.nodeName}))),N=t.getRoot();return i(1)?(x=N,O=(C=E).parentNode,Dt.each(I,(function(e){O.insertBefore(e,C)})),S=x,k=fl.before(C),(D=$u(S).next(k))?D.toRange():null):i(2)?(c=E,d=N,t.insertAfter((f=I).reverse(),c),Dp(f[0],d)):(p=I,m=N,g=h=E,b=(v=n).cloneRange(),y=v.cloneRange(),b.setStartBefore(g),y.setEndAfter(g),w=[b.cloneContents(),y.cloneContents()],(_=h.parentNode).insertBefore(w[0],h),Dt.each(p,(function(e){_.insertBefore(e,h)})),_.insertBefore(w[1],h),_.removeChild(h),Dp(p[p.length-1],m))}function Tp(e,t,n){var r,i,o,a,s=e.selection,l=e.dom;/^ | $/.test(t)&&(r=l,i=s.getRng(),o=t,o=Rh(a=Ot.fromDom(r.getRoot()),fl.fromRangeStart(i))?o.replace(/^ /,"&nbsp;"):o.replace(/^&nbsp;/," "),t=o=Fh(a,fl.fromRangeEnd(i))?o.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):o.replace(/&nbsp;(<br( \/)?>)?$/," "));var c=e.parser,f=n.merge,d=oh({validate:e.getParam("validate")},e.schema),h='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>',p=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(p.isDefaultPrevented())e.fire("SetContent",{content:p.content,format:"html",selection:!0,paste:n.paste});else{t=p.content,-1===(t=n.preserve_zwsp?t:Di(t)).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,h);var m,g,v=(m=s.getRng()).startContainer||(m.parentElement?m.parentElement():null),b=e.getBody();v===b&&s.isCollapsed()&&l.isBlock(b.firstChild)&&(g=b.firstChild)&&!e.schema.getShortEndedElements()[g.nodeName]&&l.isEmpty(b.firstChild)&&((m=l.createRng()).setStart(b.firstChild,0),m.setEnd(b.firstChild,0),s.setRng(m)),s.isCollapsed()||function(e){var t=e.dom,n=Cp(e.selection.getRng());e.selection.setRng(n);var r,i=t.getParent(n.startContainer,bm),o=n;null!==(r=i)&&r===t.getParent(o.endContainer,bm)&&Mc(Ot.fromDom(r),o)?mm(e,n,Ot.fromDom(i)):e.getDoc().execCommand("Delete",!1,null)}(e);var y,w,_,C,x,S,k,D,O,T,E,I,N,A,P={context:(B=s.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0},M=c.parse(t,P);if(!0===n.paste&&xp(e.schema,M)&&kp(l,B))return m=Op(d,l,s.getRng(),M),s.setRng(m),void e.fire("SetContent",p);if(function(){for(var e=M;e=e.walk();)1===e.type&&e.attr("data-mce-fragment","1")}(),"mce_marker"===(F=M.lastChild).attr("id"))for(var R=F,F=F.prev;F;F=F.walk(!0))if(3===F.type||!l.isBlock(F.name)){e.schema.isValidChild(F.parent.name,"span")&&F.parent.insert(R,F,"br"===F.name);break}if(e._selectionOverrides.showBlockCaretContainer(B),P.invalid){e.selection.setContent(h);var B=s.getNode(),$=e.getBody();for(9===B.nodeType?B=F=$:F=B;F!==$;)F=(B=F).parentNode;t=B===$?$.innerHTML:l.getOuterHTML(B),t=d.serialize(c.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return d.serialize(M)})))),B===$?l.setHTML($,t):l.setOuterHTML(B,t)}else y=e,w=t=d.serialize(M),"all"===(_=B).getAttribute("data-mce-bogus")?_.parentNode.insertBefore(y.dom.createFragment(w),_):(C=_.firstChild,x=_.lastChild,!C||C===x&&"BR"===C.nodeName?y.dom.setHTML(_,w):y.selection.setContent(w));k=f,T=(S=e).schema.getTextInlineElements(),E=S.dom,k&&(D=S.getBody(),O=rh(E),Dt.each(E.select("*[data-mce-fragment]"),(function(e){if(u(T[e.nodeName.toLowerCase()])&&X(dh(E,e),(function(e){return!fh.has(e)})))for(var t=e.parentNode;u(t)&&t!==D&&!function(e,t,n){function r(r){var i=e.getStyle(t,r),o=e.getStyle(n,r);return Re(i)&&Re(o)&&i!==o}var i=dh(e,t),o=dh(e,n);return L(i,(function(e){function t(t){return L(t,(function(t){return t===e}))}if(t(o)||!t(Xp))return r(e);var n=H(o,(function(e){return L(Xp,(function(t){return Ze(e,t)}))}));return L(n,r)}))}(E,e,t);t=t.parentNode)if(O.compare(t,e)){E.remove(e,!0);break}}))),function(e,t){var n,r=e.dom,i=e.selection;if(t){i.scrollIntoView(t);var o=wf(e.getBody(),t);if("false"===r.getContentEditable(o))return r.remove(t),i.select(o);var a,s=r.createRng(),l=t.previousSibling;Wn(l)?(s.setStart(l,l.nodeValue.length),xt.ie||(a=t.nextSibling,Wn(a)&&(l.appendData(a.data),a.parentNode.removeChild(a)))):(s.setStartBefore(t),s.setEndBefore(t));var u=r.getParent(t,r.isBlock);r.remove(t),u&&r.isEmpty(u)&&(e.$(u).empty(),s.setStart(u,0),s.setEnd(u,0),bm(u)||u.getAttribute("data-mce-fragment")||!(n=function(t){var n=fl.fromRangeStart(t);if(n=$u(e.getBody()).next(n))return n.toRange()}(s))?r.add(u,r.create("br",{"data-mce-bogus":"1"})):(s=n,r.remove(u))),i.setRng(s)}}(e,l.get("mce_marker")),I=e.getBody(),Dt.each(I.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")})),N=l,A=s.getStart(),ye.from(N.getParent(A,"td,th")).map(Ot.fromDom).each(yh),e.fire("SetContent",p),e.addVisual()}}function Ep(e){return e instanceof Ud}function Ip(e,t,n){var r;e.dom.setHTML(e.getBody(),t),!0!==n&&Cd(r=e)&&af(r.getBody()).each((function(e){var t=e.getNode(),n=fn(t)?af(t).getOr(e):e;r.selection.setRng(n.toRange())}))}function Np(e,t,n){var r,i=(r=t,Ee(Ee({format:"html"},n),{set:!0,content:Ep(r)?"":r})),o=n.no_events?i:e.fire("BeforeSetContent",i);return Ep(t)||(t=o.content),ye.from(e.getBody()).fold(h(t),(function(n){return Ep(t)?function(e,t,n,r){var i,o,a,s;i=e.parser.getNodeFilters(),o=e.parser.getAttributeFilters(),a=n,s=function(e,t){var n,r,i={},o={},s=[];for(n in a.firstChild&&ym(a.firstChild,(function(n){V(e,(function(e){e.name===n.name&&(i[e.name]?i[e.name].nodes.push(n):i[e.name]={filter:e,nodes:[n]})})),V(t,(function(e){"string"==typeof n.attr(e.name)&&(o[e.name]?o[e.name].nodes.push(n):o[e.name]={filter:e,nodes:[n]})}))})),i)Oe(i,n)&&s.push(i[n]);for(r in o)Oe(o,r)&&s.push(o[r]);return s}(i,o),V(s,(function(e){V(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}));var l=oh({validate:e.validate},e.schema).serialize(n);return r.content=Di(_i(Ot.fromDom(t))?l:Dt.trim(l)),Ip(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r),n}(e,n,t,o):(r=e,i=n,s=o,0===(a=Di(a=t)).length||/^\s+$/.test(a)?(l='<br data-mce-bogus="1">',"TABLE"===i.nodeName?a="<tr><td>"+l+"</td></tr>":/^(UL|OL)$/.test(i.nodeName)&&(a="<li>"+l+"</li>"),a=(u=Tl(r))&&r.schema.isValidChild(i.nodeName.toLowerCase(),u.toLowerCase())?(a=l,r.dom.createHTML(u,El(r),a)):a||'<br data-mce-bogus="1">',Ip(r,a,s.no_selection),r.fire("SetContent",s)):("raw"!==s.format&&(a=oh({validate:r.validate},r.schema).serialize(r.parser.parse(a,{isRootContent:!0,insert:!0}))),s.content=_i(Ot.fromDom(i))?a:Dt.trim(a),Ip(r,s.content,s.no_selection),s.no_events||r.fire("SetContent",s)),s.content);var r,i,a,s,l,u}))}function Ap(e){return k(e)?e:A}function Pp(e,t,n){var r=t(e),i=Ap(n);return r.orThunk((function(){return i(e)?ye.none():function(t){for(var n=e.dom,r=Ap(i);n.parentNode;){n=n.parentNode;var o=Ot.fromDom(n),a=t(o);if(a.isSome())return a;if(r(o))break}return ye.none()}(t)}))}function Mp(e,t,n){var r=e.formatter.get(n);if(r)for(var i=0;i<r.length;i++){var o=r[i];if(gc(o)&&!1===o.inherit&&e.dom.is(t,o.selector))return 1}}function Rp(e,t,n,r,i){var o=e.dom.getRoot();return t!==o&&(t=e.dom.getParent(t,(function(t){return!!Mp(e,t,n)||t.parentNode===o||!!_m(e,t,n,r,!0)})),!!_m(e,t,n,r,i))}function Fp(e,t,n){return!!wm(t,n.inline)||!!wm(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0)}function Bp(e,t,n,r,i,o){var a=n[r];if(k(n.onmatch))return n.onmatch(t,n,r);if(a)if(S(a.length)){for(var s in a)if(Oe(a,s)){var u="attributes"===r?e.getAttrib(t,s):fc(e,t,s),c=lc(a[s],o),f=l(u)||Fe(u);if(!f||!l(c)){if(i&&f&&!n.exact)return;if((!i||n.exact)&&!wm(u,cc(e,c,s)))return}}}else for(var d=0;d<a.length;d++)if("attributes"===r?e.getAttrib(t,a[d]):fc(e,t,a[d]))return 1;return 1}function Lp(e,t,n,r,i){if(r)return Rp(e,r,t,n,i);if(r=e.selection.getNode(),Rp(e,r,t,n,i))return!0;var o=e.selection.getStart();return!(o===r||!Rp(e,o,t,n,i))}function $p(e){return 0<function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==Cm||1<e.childNodes.length)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t}(e).length}function Vp(e){if(e){var t=new Ar(e,e);for(e=t.current();e;e=t.next())if(Wn(e))return e}return null}function jp(e){var t=Ot.fromTag("span");return bn(t,{id:xm,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&Bn(t,Ot.fromText(Cm)),t}function zp(e,t,n){void 0===n&&(n=!0);var r,i,o,a,s,l,u,c,f=e.dom,d=e.selection;$p(t)?ep(e,!1,Ot.fromDom(t),n):(r=d.getRng(),i=f.getParent(t,f.isBlock),o=r.startContainer,a=r.startOffset,s=r.endContainer,l=r.endOffset,(c=Vp(t))&&c.nodeValue.charAt(0)===Cm&&c.deleteData(0,1),u=c,f.remove(t,!0),o===u&&0<a&&r.setStart(u,a-1),s===u&&0<l&&r.setEnd(u,l-1),i&&f.isEmpty(i)&&bh(Ot.fromDom(i)),d.setRng(r))}function Hp(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(t)zp(e,t,n);else if(!(t=qu(e.getBody(),i.getStart())))for(;t=r.get(xm);)zp(e,t,!1)}function Up(e,t){return e.appendChild(t),t}function Wp(e,t){var n=U(e,(function(e,t){return Up(e,t.cloneNode(!1))}),t);return Up(n,n.ownerDocument.createTextNode(Cm))}function qp(e,t,n,r,o,a){var s,l,u=e.formatter,c=e.dom,f=H(Se(u.get()),(function(e){return e!==r&&!Pe(e,"removeformat")}));if(0<H((s=e,l=n,W(f,(function(e,t){var n=pc(s,t);return s.formatter.matchNode(l,t,{},n)?e.concat([t]):e}),[])),(function(t){return a=r,s=["inline","block","selector","attributes","styles","classes"],!L((o=e).formatter.get(t),(function(e){var t=n(e);return L(o.formatter.get(a),(function(e){var r,o=n(e),a=t,s=o;return i(r=void 0===r?b:r).eq(a,s)}))}));function n(e){return le(e,(function(e,t){return L(s,(function(e){return e===t}))}))}var o,a,s})).length){var d=n.cloneNode(!1);return c.add(t,d),u.remove(r,o,d,a),c.remove(d),ye.some(d)}return ye.none()}function Gp(e,t,n,r){var i,o,a,s,l,u,c,f,d,h,p,m,g,v,b,y=e.dom,w=e.selection,_=[],C=w.getRng(),x=C.startContainer,S=C.startOffset,k=x;for(3===x.nodeType&&(S!==x.nodeValue.length&&(i=!0),k=k.parentNode);k;){if(_m(e,k,t,n,r)){o=k;break}k.nextSibling&&(i=!0),_.push(k),k=k.parentNode}o&&(i?(a=w.getBookmark(),C.collapse(!0),s=Ff(Tc(e,C,e.formatter.get(t),!0)),e.formatter.remove(t,n,s,r),w.moveToBookmark(a)):(l=qu(e.getBody(),o),d=u=jp(!1).dom,(m=(p=e.dom).getParent(h=null!==l?l:o,O(ac,e)))&&p.isEmpty(m)?h.parentNode.replaceChild(d,h):(g=Ot.fromDom(h),v=_s(g,"br"),b=H(function(){for(var e=[],t=g.dom;t;)e.push(Ot.fromDom(t)),t=t.lastChild;return e}().slice(-1),Fr),v.length===b.length&&V(b,Ln),p.isEmpty(h)?h.parentNode.replaceChild(d,h):p.insertAfter(d,h)),c=qp(e,u,o,t,n,r),f=Wp(_.concat(c.toArray()),u),zp(e,l,!1),w.setCursorLocation(f,1),y.isEmpty(o)&&y.remove(o)))}function Yp(e,t){var n=e.schema.getTextInlineElements();return Oe(n,Tt(t))&&!Wu(t.dom)&&!cn(t.dom)}V(["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"],(function(e){fh.add(e)}));var Kp,Xp=["font","text-decoration","text-emphasis"],Jp=O(hh,!0,tc),Zp=O(hh,!1,tc),Qp=mh(!0,gh),em=mh(!1,gh),tm=mh(!0,er),nm=mh(!1,er),rm=mh(!0,fn),im=mh(!1,fn),om=mh(!0,vh),am=mh(!1,vh),sm=O(kh,!1),lm=O(kh,!0),um=O(Sh,!1),cm=O(Sh,!0),fm=O(Oh,!1),dm=O(Oh,!0),hm=sr([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),pm=function(e){var t;return(8===Et(t=e)||"#comment"===Tt(t)?Rt:jt)(e).bind(pm).orThunk((function(){return ye.some(e)}))},mm=function(e,t,n,r){void 0===r&&(r=!0),t.deleteContents();var i,o=pm(n).getOr(n),a=Ot.fromDom(e.dom.getParent(o.dom,e.dom.isBlock));return Kr(a)&&(bh(a),r&&e.selection.setCursorLocation(a.dom,0)),Ue(n,a)||V((hn(Mt(a),n)?[]:Mt(i=a).map(Pn).map((function(e){return H(e,(function(e){return!Ue(i,e)}))})).getOr([])).concat(Pn(n)),(function(e){Ue(e,a)||We(e,a)||!Kr(e)||Ln(e)})),!0},gm=function(e,t){return G(_h(t,e),(function(e){return En(e)&&"caption"===Tt(e)}))},vm=function(e,t){return bh(t),e.selection.setCursorLocation(t.dom,0),ye.some(!0)},bm=Qn,ym=function(e,t){t(e),e.firstChild&&ym(e.firstChild,t),e.next&&ym(e.next,t)},wm=uc,_m=function(e,t,n,r,i){var o=e.formatter.get(n),a=e.dom;if(o&&t)for(var s=0;s<o.length;s++){var l=o[s];if(Fp(e.dom,t,l)&&Bp(a,t,l,"attributes",i,r)&&Bp(a,t,l,"styles",i,r)){var u=l.classes;if(u)for(var c=0;c<u.length;c++)if(!e.dom.hasClass(t,lc(u[c],r)))return;return l}}},Cm=Si,xm="_mce_caret",Sm={},km=he,Dm=fe;function Om(e){return Hn(e)&&!ec(e)&&!Wu(e)&&!cn(e)}function Tm(e,t){for(var n=e;n;n=n[t]){if(Wn(n)&&Re(n.data))return e;if(Hn(n)&&!ec(n))return n}return e}function Em(e,t,n){var r=rh(e);if(t&&n&&(t=Tm(t,"previousSibling"),n=Tm(n,"nextSibling"),r.compare(t,n))){for(var i=t.nextSibling;i&&i!==n;){var o=i;i=i.nextSibling;t.appendChild(o)}return e.remove(n),Dt.each(Dt.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n}function Im(e,t,n,r){var i;r&&!1!==t.merge_siblings&&(i=Em(e,oc(r),r),Em(e,i,oc(i,!0)))}function Nm(e,t){return function(n){return!(!n||!fc(e,n,t))}}function Am(e,t,n){return function(r){var i,o;e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),i=e,"SPAN"===(o=r).nodeName&&0===i.getAttribs(o).length&&i.remove(o,!0)}}function Pm(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)}function Mm(e,t,n){var r,i=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];return Hn(i)&&(r=i.childNodes.length-1,!n&&o&&o--,i=i.childNodes[r<o?r:o]),Wn(i)&&n&&o>=i.nodeValue.length&&(i=new Ar(i,e.getBody()).next()||i),Wn(i)&&!n&&0===o&&new Ar(i,e.getBody()).prev()||i}function Rm(e,t){var n=t?"firstChild":"lastChild";if(/^(TR|TH|TD)$/.test(e.nodeName)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e}function Fm(e,t,n,r){var i=e.create(n,r);return t.parentNode.insertBefore(i,t),i.appendChild(t),i}function Bm(e,t,n,r,i){var o=Ot.fromDom(t),a=Ot.fromDom(e.create(r,i));return Kt(a,(n?Lt:Bt)(o)),n?(qt(o,a),Yt(a,o)):(Gt(o,a),Bn(a,o)),a.dom}function Lm(e,t,n,r){var i=oc(t,n,r);return l(i)||"BR"===i.nodeName||e.isBlock(i)}function $m(e,t,n,r,i){var o,a,s=e.dom,l=s,u=r;if(!(vc(a=t)&&Ng(u,a.inline)||mc(a)&&Ng(u,a.block)||gc(a)&&Hn(u)&&l.is(u,a.selector)||t.links&&"A"===r.nodeName))return Tg.keep();var c,f,d,h,p,m,g,v,b=r;if(vc(t)&&"all"===t.remove&&_(t.preserve_attributes)){var y=H(s.getAttribs(b),(function(e){return B(t.preserve_attributes,e.name.toLowerCase())}));if(s.removeAllAttribs(b),V(y,(function(e){return s.setAttrib(b,e.name,e.value)})),0<y.length)return Tg.rename("span")}if("all"!==t.remove){Ig(t.styles,(function(e,r){e=cc(s,lc(e,n),r+""),D(r)&&(r=e,i=null),!t.remove_similar&&i&&!Ng(fc(s,i,r),e)||s.setStyle(b,r,""),o=!0})),o&&""===s.getAttrib(b,"style")&&(b.removeAttribute("style"),b.removeAttribute("data-mce-style")),Ig(t.attributes,(function(e,r){var o;if(e=lc(e,n),D(r)&&(r=e,i=null),t.remove_similar||!i||Ng(s.getAttrib(i,r),e))if("class"===r&&(e=s.getAttrib(b,r))&&(o="",V(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(o+=(o?" ":"")+e)})),o))s.setAttrib(b,r,o);else{if(Eg.test(r)&&b.removeAttribute("data-mce-"+r),"style"===r&&sn(["li"])(b)&&"none"===s.getStyle(b,"list-style-type"))return b.removeAttribute(r),void s.setStyle(b,"list-style-type","none");"class"===r&&b.removeAttribute("className"),b.removeAttribute(r)}})),Ig(t.classes,(function(e){e=lc(e,n),i&&!s.hasClass(i,e)||s.removeClass(b,e)}));for(var w=s.getAttribs(b),C=0;C<w.length;C++){var x=w[C].nodeName;if(0!==x.indexOf("_")&&0!==x.indexOf("data-"))return Tg.keep()}}return"none"!==t.remove?(c=e,d=t,m=(f=b).parentNode,g=c.dom,v=Tl(c),mc(d)&&(v?m===g.getRoot()&&(d.list_block&&Ng(f,d.list_block)||V(xe(f.childNodes),(function(e){sc(c,v,e.nodeName.toLowerCase())?h?h.appendChild(e):(h=Fm(g,e,v),g.setAttribs(h,c.settings.forced_root_block_attrs)):h=null}))):g.isBlock(f)&&!g.isBlock(m)&&(Lm(g,f,!1)||Lm(g,f.firstChild,!0,!0)||f.insertBefore(g.create("br"),f.firstChild),Lm(g,f,!0)||Lm(g,f.lastChild,!1,!0)||f.appendChild(g.create("br")))),gc(p=d)&&vc(p)&&hn(ue(p,"mixed"),!0)&&!Ng(d.inline,f)||g.remove(f,!0),Tg.removed()):Tg.keep()}function Vm(e,t,n,r,i){return $m(e,t,n,r,i).fold(A,(function(t){return e.dom.rename(r,t),!0}),P)}function jm(e,t,n,r,i){function o(r){var o,a,s,l,u,c=(a=t,s=n,l=i,V(hc((o=e).dom,r.parentNode).reverse(),(function(e){var t;u||"_start"===e.id||"_end"===e.id||(t=_m(o,e,a,s,l))&&!1!==t.split&&(u=e)})),u);return function(e,t,n,r,i,o,a,s){var l,u,c=e.dom;if(n){for(var f=n.parentNode,d=r.parentNode;d&&d!==f;d=d.parentNode){for(var p=c.clone(d,!1),m=0;m<t.length&&null!==(p=function(e,t,n){return $m(e,t,s,n,n).fold(h(n),(function(t){return e.dom.createFragment().appendChild(n),e.dom.rename(n,t)}),h(null))}(e,t[m],p));m++);p&&(l&&p.appendChild(l),u=u||p,l=p)}!o||a.mixed&&c.isBlock(n)||(r=c.split(n,r)),l&&(i.parentNode.insertBefore(l,i),u.appendChild(i),vc(a)&&Im(c,a,0,l))}return r}(e,f,c,r,r,!0,d,n)}function a(t){return L(f,(function(r){return Vm(e,r,n,t,t)}))}function s(e){var t,n=m.get(e?"_start":"_end"),r=n[e?"firstChild":"lastChild"];return ec(t=r)&&Hn(t)&&("_start"===t.id||"_end"===t.id)&&(r=r[e?"firstChild":"lastChild"]),Wn(r)&&0===r.data.length&&(r=e?n.previousSibling||n.nextSibling:n.nextSibling||n.previousSibling),m.remove(n,!0),r}function l(t){var n=Tc(e,t,f,t.collapsed);if(d.split){if(n=Ff(n),(i=Mm(e,n,!0))!==(a=Mm(e,n))){if(i=Rm(i,!0),a=Rm(a,!1),Pm(m,i,a)){var r=ye.from(i.firstChild).getOr(i);return o(Bm(m,r,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void s(!0)}if(Pm(m,a,i))return r=ye.from(a.lastChild).getOr(a),o(Bm(m,r,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void s(!1);var i=Fm(m,i,"span",{id:"_start","data-mce-type":"bookmark"}),a=Fm(m,a,"span",{id:"_end","data-mce-type":"bookmark"}),l=m.createRng();l.setStartAfter(i),l.setEndBefore(a),Ec(m,l,(function(e){V(e,(function(e){ec(e)||ec(e.parentNode)||o(e)}))})),o(i),o(a),i=s(!0),a=s()}else i=a=o(i);n.startContainer=i.parentNode||i,n.startOffset=m.nodeIndex(i),n.endContainer=a.parentNode||a,n.endOffset=m.nodeIndex(a)+1}Ec(m,n,(function(e){V(e,v)}))}var c,f=e.formatter.get(t),d=f[0],p=!0,m=e.dom,g=e.selection,v=function(t){var n=!0,r=!1;Hn(t)&&m.getContentEditable(t)&&(n=p,p="true"===m.getContentEditable(t),r=!0);var i,o,s=xe(t.childNodes);if(p&&!r&&(i=a(t)||L(f,(function(e){return Fp(m,t,e)})),o=t.parentNode,!i&&u(o)&&bc(d)&&a(o)),d.deep&&s.length){for(var l=0;l<s.length;l++)v(s[l]);r&&(p=n)}V(["underline","line-through","overline"],(function(n){Hn(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&dc(m,t.parentNode)===n&&Vm(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))};if(r)return rc(r)?((c=m.createRng()).setStartBefore(r),c.setEndAfter(r),l(c)):l(r),void Sf(e,t,r,n);if("false"!==m.getContentEditable(g.getNode()))g.isCollapsed()&&vc(d)&&!Ac(e).length?Gp(e,t,n,i):(Lc(g,!0,(function(){Bc(e,l)})),vc(d)&&Lp(e,t,n,g.getStart())&&ic(m,g,g.getRng()),e.nodeChanged()),Sf(e,t,r,n);else{r=g.getNode();for(var b=0;b<f.length&&(!f[b].ceFalseOverride||!Vm(e,f[b],n,r,r));b++);Sf(e,t,r,n)}}function zm(e){return Hn(e)&&!ec(e)&&!Wu(e)&&!cn(e)}function Hm(e){return Oe(e,"vars")}function Um(e,t,n,r,i){return q(t,(function(t){var o=e.formatter.matchNode(t,n,null!=i?i:{},r);return!S(o)}),(function(t){return Mp(e,t,n)||!r&&u(e.formatter.matchNode(t,n,i,!0))}))}function Wm(e,t){var n=null!=t?t:Rg(e);return H(hc(e.dom,n),(function(e){return Hn(e)&&!cn(e)}))}function qm(e,t,n,r,i,o){var a,s,l,u,c,f,d,h,p;return null===t.get()&&(s=e,(a=t).set({}),s.on("NodeChange",(function(e){Fg(s,e.element,a.get())})),s.on("FormatApply FormatRemove",(function(e){var t=ye.from(e.node).map((function(e){return rc(e)?e:e.startContainer})).bind((function(e){return Hn(e)?ye.some(e):ye.from(e.parentElement)})).getOrThunk((function(){return Rg(s)}));Fg(s,t,a.get())}))),l=e,c=n,f=r,d=i,h=o,p=(u=t).get(),V(c.split(","),(function(e){function t(){var t=Wm(l);return Um(l,t,e,d,h).isSome()}var n,r=ue(p,e).getOrThunk((function(){var t={withSimilar:{state:ls(!1),similar:!0,callbacks:[]},withoutSimilar:{state:ls(!1),similar:!1,callbacks:[]},withVars:[]};return p[e]=t}));S(h)?((n=d?r.withSimilar:r.withoutSimilar).callbacks.push(f),1===n.callbacks.length&&n.state.set(t())):r.withVars.push({state:ls(t()),similar:d,vars:h,callback:f})})),u.set(p),{unbind:function(){var e,i=n,o=r,a=(e=t).get();V(i.split(","),(function(e){return ue(a,e).each((function(t){a[e]={withSimilar:Ee(Ee({},t.withSimilar),{callbacks:H(t.withSimilar.callbacks,(function(e){return e!==o}))}),withoutSimilar:Ee(Ee({},t.withoutSimilar),{callbacks:H(t.withoutSimilar.callbacks,(function(e){return e!==o}))}),withVars:H(t.withVars,(function(e){return e.callback!==o}))}}))})),e.set(a)}}}function Gm(e,t){var n=(t||document).createDocumentFragment();return V(e,(function(e){n.appendChild(e.dom)})),Ot.fromDom(n)}function Ym(e,t,n){return{element:e,width:t,rows:n}}function Km(e,t){return{element:e,cells:t}}function Xm(e,t){var n=parseInt(yn(e,t),10);return isNaN(n)?1:n}function Jm(e){return W(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)}function Zm(e,t){for(var n=e.rows,r=0;r<n.length;r++)for(var i=n[r].cells,o=0;o<i.length;o++)if(Ue(i[o],t))return ye.some({x:o,y:r});return ye.none()}function Qm(e,t,n,r,i){for(var o=[],a=e.rows,s=n;s<=i;s++){var l=a[s].cells,u=t<r?l.slice(t,r+1):l.slice(r,t+1);o.push(Km(a[s].element,u))}return o}function eg(e){var t=Ym(Os(e),0,[]);return V(_s(e,"tr"),(function(e,n){V(_s(e,"td,th"),(function(r,i){!function(e,t,n,r,i){for(var o=Xm(i,"rowspan"),a=Xm(i,"colspan"),s=e.rows,l=n;l<n+o;l++){s[l]||(s[l]=Km(Ts(r),[]));for(var u=t;u<t+a;u++)s[l].cells[u]=l===n&&u===t?i:Os(i)}}(t,function(e,t,n){for(;r=t,((i=e.rows)[n]?i[n].cells:[])[r];)t++;var r,i;return t}(t,i,n),n,e,r)}))})),Ym(t.element,Jm(t.rows),t.rows)}function tg(e,t){var n,r,i,o=Ot.fromDom(t.commonAncestorContainer),a=_h(o,e),s=H(a,(function(e){return Rr(e)||pi(e)})),l=(i=t,G(r=a,(function(e){return"li"===Tt(e)&&Mc(e,i)})).fold(h([]),(function(e){return G(r,(function(e){return"ul"===Tt(e)||"ol"===Tt(e)})).map((function(e){var t=Ot.fromTag(Tt(e));return xn(t,le(Dn(e),(function(e,t){return Ze(t,"list-style")}))),[Ot.fromTag("li"),t]})).getOr([])})));return $(s.concat(l.length?l:bi(n=o)?Mt(n).filter(vi).fold(h([]),(function(e){return[n,e]})):vi(n)?[n]:[]),Os)}function ng(){return Gm([])}function rg(e,t){return yr(t[0],"table",O(Ue,e)).bind((function(e){var n,r,i=t[0],o=t[t.length-1],a=eg(e);return r=o,Zm(n=a,i).bind((function(e){return Zm(n,r).map((function(t){return r=n,i=e.x,o=e.y,a=t.x,l=o<(s=t.y)?Qm(r,i,o,a,s):Qm(r,i,s,a,o),Ym(r.element,Jm(l),l);var r,i,o,a,s,l}))})).map((function(e){return Gm([(n=$((t=e).rows,(function(e){var t=$(e.cells,(function(e){var t=Ts(e);return Cn(t,"colspan"),Cn(t,"rowspan"),t})),n=Os(e.element);return Kt(n,t),n})),r=Os(t.element),Kt(i=Ot.fromTag("tbody"),n),Bn(r,i),r)]);var t,n,r,i}))})).getOrThunk(ng)}function ig(e,t){var n,r,i,o,a,s,l,u=Nc(t,e);return 0<u.length?rg(e,u):(n=e,0<(r=t).length&&r[0].collapsed?ng():(i=n,o=r[0],a=Ot.fromDom(o.cloneContents()),l=W(s=tg(i,o),(function(e,t){return Bn(t,e),t}),a),0<s.length?Gm([l]):l))}function og(e,t){return 0<=t&&t<e.length&&tc(e.charAt(t))}function ag(e,t){var n=Di(e.innerText);return t?n.replace(/^[ \f\n\r\t\v]+/,""):n}function sg(e){return Hn(e)?e.outerHTML:Wn(e)?eo.encodeRaw(e.data,!1):qn(e)?"\x3c!--"+e.data+"--\x3e":""}function lg(e,t){var n=0;V(e,(function(e){var r,i,o,a,s,l,u,c;0===e[0]?n++:1===e[0]?(a=t,s=e[1],l=n,c=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();for(e&&(n.innerHTML=e);t=n.firstChild;)r.appendChild(t);return r}(s),a.hasChildNodes()&&l<a.childNodes.length?(u=a.childNodes[l]).parentNode.insertBefore(c,u):a.appendChild(c),n++):2===e[0]&&(i=n,(r=t).hasChildNodes()&&i<r.childNodes.length&&(o=r.childNodes[i]).parentNode.removeChild(o))}))}function ug(e){var t=e.serializer.getTempAttrs(),n=nh(e.getBody(),t);return null!==n.querySelector("iframe")?{type:"fragmented",fragments:H($(xe(n.childNodes),f(Di,sg)),(function(e){return 0<e.length})),content:"",bookmark:null,beforeBookmark:null}:{type:"complete",fragments:null,content:Di(n.innerHTML),bookmark:null,beforeBookmark:null}}function cg(e,t,n){var r,i,o,a,s,l,c,f,d,h,p,m=n?t.beforeBookmark:t.bookmark;function g(e,t,n,r){for(var i=e;i-t<r&&i<n&&a[i]===s[i-t];)++i;return{start:e,end:i,diag:t}}"fragmented"===t.type?(r=t.fragments,i=e.getBody(),o=$(xe(i.childNodes),sg),lg((s=r,l=(a=o).length+s.length+2,c=new Array(l),f=new Array(l),d=function(e,t,n,r,i){var o=h(e,t,n,r);if(null===o||o.start===t&&o.diag===t-r||o.end===e&&o.diag===e-n)for(var l=e,u=n;l<t||u<r;)l<t&&u<r&&a[l]===s[u]?(i.push([0,a[l]]),++l,++u):r-n<t-e?(i.push([2,a[l]]),++l):(i.push([1,s[u]]),++u);else{d(e,o.start,n,o.start-o.diag,i);for(var c=o.start;c<o.end;++c)i.push([0,a[c]]);d(o.end,t,o.end-o.diag,r,i)}},h=function(e,t,n,r){var i=t-e,o=r-n;if(0==i||0==o)return null;var l,u,d,h,p,m=i-o,v=o+i,b=(v%2==0?v:1+v)/2;for(c[1+b]=e,f[1+b]=t+1,l=0;l<=b;++l){for(u=-l;u<=l;u+=2){for(d=u+b,u===-l||u!==l&&c[d-1]<c[d+1]?c[d]=c[d+1]:c[d]=c[d-1]+1,p=(h=c[d])-e+n-u;h<t&&p<r&&a[h]===s[p];)c[d]=++h,++p;if(m%2!=0&&m-l<=u&&u<=m+l&&f[d-m]<=c[d])return g(f[d-m],u+e-n,t,r)}for(u=m-l;u<=m+l;u+=2){for(d=u+b-m,u===m-l||u!==m+l&&f[d+1]<=f[d-1]?f[d]=f[d+1]-1:f[d]=f[d-1],p=(h=f[d]-1)-e+n-u;e<=h&&n<=p&&a[h]===s[p];)f[d]=h--,p--;if(m%2==0&&-l<=u&&u<=l&&f[d]<=c[d+m])return g(f[d],u+e-n,t,r)}}},p=[],d(0,a.length,0,s.length,p),p),i)):e.setContent(t.content,{format:"raw",no_selection:!u(m)||!Gu(m)||!m.isFakeCaret}),e.selection.moveToBookmark(m)}function fg(e){return"fragmented"===e.type?e.fragments.join(""):e.content}function dg(e){var t=Ot.fromTag("body",Bg());return ks(t,fg(e)),V(_s(t,"*[data-mce-bogus]"),Jt),t.dom.innerHTML}function hg(e,t){return!(!e||!t)&&(r=t,fg(e)===fg(r)||(n=t,dg(e)===dg(n)));var n,r}function pg(e){return 0===e.get()}function mg(e,t,n){pg(n)&&(e.typing=t)}function gg(e,t){e.typing&&(mg(e,!1,t),e.add())}function vg(e){return{undoManager:{beforeChange:function(t,n){var r=e,i=n;pg(t)&&i.set(bu(r.selection))},add:function(t,n,r,i,o,a){return function(e,t,n,r,i,o,a){var s=ug(e);if(o=Dt.extend(o=o||{},s),!1===pg(r)||e.removed)return null;var l=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:o,lastLevel:l,originalEvent:a}).isDefaultPrevented())return null;if(l&&hg(l,o))return null;t.data[n.get()]&&i.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var u=e.getParam("custom_undo_redo_levels",0,"number");if(u&&t.data.length>u){for(var c=0;c<t.data.length-1;c++)t.data[c]=t.data[c+1];t.data.length--,n.set(t.data.length)}o.bookmark=bu(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(o),n.set(t.data.length-1);var f={level:o,lastLevel:l,originalEvent:a};return 0<n.get()?(e.setDirty(!0),e.fire("AddUndo",f),e.fire("change",f)):e.fire("AddUndo",f),o}(e,t,n,r,i,o,a)},undo:function(t,n,r){return i=e,a=n,s=r,(o=t).typing&&(o.add(),o.typing=!1,mg(o,!1,a)),0<s.get()&&(s.set(s.get()-1),cg(i,l=o.data[s.get()],!0),i.setDirty(!0),i.fire("Undo",{level:l})),l;var i,o,a,s,l},redo:function(t,n){return r=e,o=n,(i=t).get()<o.length-1&&(i.set(i.get()+1),cg(r,a=o[i.get()],!1),r.setDirty(!0),r.fire("Redo",{level:a})),a;var r,i,o,a},clear:function(t,n){var r,i=e,o=n;(r=t).data=[],o.set(0),r.typing=!1,i.fire("ClearUndos")},reset:function(e){var t;(t=e).clear(),t.add()},hasUndo:function(t,n){return r=e,i=t,0<n.get()||i.typing&&i.data[0]&&!hg(ug(r),i.data[0]);var r,i},hasRedo:function(e,t){return n=e,t.get()<n.data.length-1&&!n.typing;var n},transact:function(e,t,n){return i=n,gg(r=e,t),r.beforeChange(),r.ignore(i),r.add();var r,i},ignore:function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},extra:function(t,n,r,i){var o,a,s=e,l=n,u=i;(o=t).transact(r)&&(a=o.data[l.get()].bookmark,cg(s,o.data[l.get()-1],!0),o.transact(u)&&(o.data[l.get()-1].beforeBookmark=a))}},formatter:{match:function(t,n,r,i){return Lp(e,t,n,r,i)},matchAll:function(t,n){return i=t,o=n,a=[],s={},l=(r=e).selection.getStart(),r.dom.getParent(l,(function(e){for(var t=0;t<i.length;t++){var n=i[t];!s[n]&&_m(r,e,n,o)&&(s[n]=!0,a.push(n))}}),r.dom.getRoot()),a;var r,i,o,a,s,l},matchNode:function(t,n,r,i){return _m(e,t,n,r,i)},canApply:function(t){return function(e){var n=e.formatter.get(t),r=e.dom;if(n)for(var i=hc(r,e.selection.getStart()),o=n.length-1;0<=o;o--){var a=n[o];if(!gc(a)||u(a.defaultBlock))return!0;for(var s=i.length-1;0<=s;s--)if(r.is(i[s],a.selector))return!0}return!1}(e)},closest:function(t){return r=e,i=t,ye.from(r.selection.getStart(!0)).bind((function(e){return Pp(Ot.fromDom(e),(function(e){return re(i,(function(t){return _m(r,e.dom,n=t)?ye.some(n):ye.none();var n}))}),n)})).getOrNull();function n(e){return Ue(e,Ot.fromDom(r.getBody()))}var r,i},apply:function(t,n,r){return Mg(e,t,n,r)},remove:function(t,n,r,i){return jm(e,t,n,r,i)},toggle:function(t,n,r){var i,o=t,a=n,s=r,l=(i=e).formatter.get(o);(!Lp(i,o,a,s)||"toggle"in l[0]&&!l[0].toggle?Mg:jm)(i,o,a,s)},formatChanged:function(t,n,r,i,o){return qm(e,t,n,r,i,o)}},editor:{getContent:function(t,n){return r=e,i=t,o=n,ye.from(r.getBody()).fold(h("tree"===i.format?new Ud("body",11):""),(function(e){return t=r,a=e,s=o,d=Ee(Ee({},n=i),{format:s,get:!0,getInner:!0}),h=n.no_events?d:t.fire("BeforeGetContent",d),p="raw"===h.format?Dt.trim(Di(nh(a,t.serializer.getTempAttrs()).innerHTML)):"text"===h.format?t.dom.isEmpty(a)?"":Di(a.innerText||a.textContent):"tree"===h.format?t.serializer.serialize(a,h):(u=(l=t).serializer.serialize(a,h),c=Tl(l),f=new RegExp("^(<"+c+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+c+">[\r\n]*|<br \\/>[\r\n]*)$"),u.replace(f,"")),B(["text","tree"],h.format)||_i(Ot.fromDom(a))?h.content=p:h.content=Dt.trim(p),(h.no_events?h:t.fire("GetContent",h)).content;var t,n,a,s,l,u,c,f,d,h,p}));var r,i,o},setContent:function(t,n){return Np(e,t,n)},insertContent:function(t,n){return Tp(e,t,n)},addVisual:function(t){var n,r=t,i=(n=e).dom,o=u(r)?r:n.getBody();S(n.hasVisual)&&(n.hasVisual=n.getParam("visual",!0,"boolean")),V(i.select("table,a",o),(function(e){switch(e.nodeName){case"TABLE":var t=n.getParam("visual_table_class","mce-item-table","string"),r=i.getAttrib(e,"border");r&&"0"!==r||!n.hasVisual?i.removeClass(e,t):i.addClass(e,t);break;case"A":var o,a;i.getAttrib(e,"href")||(o=i.getAttrib(e,"name")||e.id,a=n.getParam("visual_anchor_class","mce-item-anchor","string"),o&&n.hasVisual?i.addClass(e,a):i.removeClass(e,a))}})),n.fire("VisualAid",{element:r,hasVisual:n.hasVisual})}},selection:{getContent:function(t,n){return function(e,t,n){var r,i=(r=t,Ee(Ee({},n=void 0===n?{}:n),{format:r,get:!0,selection:!0})),o=e.fire("BeforeGetContent",i);if(o.isDefaultPrevented())return e.fire("GetContent",o),o.content;if("text"===o.format)return h=e,ye.from(h.selection.getRng()).map((function(e){var t=ye.from(h.dom.getParent(e.commonAncestorContainer,h.dom.isBlock)),n=h.getBody(),r=t.map((function(e){return e.nodeName})).getOr("div").toLowerCase(),i=xt.browser.isIE()&&"pre"!==r,o=h.dom.add(n,r,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},e.cloneContents()),a=ag(o,i),s=Di(o.textContent);if(h.dom.remove(o),og(s,0)||og(s,s.length-1)){var l=ag(t.getOr(n),i),u=l.indexOf(a);return-1===u?a:(og(l,u-1)?" ":"")+a+(og(l,u+a.length)?" ":"")}return a})).getOr("");o.getInner=!0;var a,s,l,u,c,f,d,h,p=(s=o,l=(a=e).selection.getRng(),u=a.dom.create("body"),c=a.selection.getSel(),f=Od(a,Ic(c)),(d=s.contextual?ig(Ot.fromDom(a.getBody()),f).dom:l.cloneContents())&&u.appendChild(d),a.selection.serializer.serialize(u,s));return"tree"===o.format?p:(o.content=e.selection.isCollapsed()?"":p,e.fire("GetContent",o),o.content)}(e,t,n)}},raw:{getModel:function(){return ye.none()}}}}function bg(e){return Oe(e.plugins,"rtc")}function yg(e){var t=e;return ue(e.plugins,"rtc").bind((function(e){return ye.from(e.setup)})).fold((function(){return t.rtcInstance=vg(e),ye.none()}),(function(e){var n,r;return t.rtcInstance=(n=h(null),r=h(""),{undoManager:{beforeChange:c,add:n,undo:n,redo:n,clear:c,reset:c,hasUndo:A,hasRedo:A,transact:n,ignore:c,extra:c},formatter:{match:A,matchAll:h([]),matchNode:h(void 0),canApply:A,closest:r,apply:c,remove:c,toggle:c,formatChanged:h({unbind:c})},editor:{getContent:r,setContent:r,insertContent:c,addVisual:c},selection:{getContent:r},raw:{getModel:h(ye.none())}}),ye.some((function(){return e().then((function(e){return t.rtcInstance=(r=e.undoManager,i=e.formatter,o=e.editor,a=e.selection,s=e.raw,{undoManager:{beforeChange:r.beforeChange,add:r.add,undo:r.undo,redo:r.redo,clear:r.clear,reset:r.reset,hasUndo:r.hasUndo,hasRedo:r.hasRedo,transact:function(e,t,n){return r.transact(n)},ignore:function(e,t){return r.ignore(t)},extra:function(e,t,n,i){return r.extra(n,i)}},formatter:{match:function(e,t,r,o){return i.match(e,n(t),o)},matchAll:i.matchAll,matchNode:i.matchNode,canApply:function(e){return i.canApply(e)},closest:function(e){return i.closest(e)},apply:function(e,t,r){return i.apply(e,n(t))},remove:function(e,t,r,o){return i.remove(e,n(t))},toggle:function(e,t,r){return i.toggle(e,n(t))},formatChanged:function(e,t,n,r,o){return i.formatChanged(t,n,r,o)}},editor:{getContent:function(e,t){return o.getContent(e)},setContent:function(e,t){return o.setContent(e,t)},insertContent:function(e,t){return o.insertContent(e)},addVisual:o.addVisual},selection:{getContent:function(e,t){return a.getContent(t)}},raw:{getModel:function(){return ye.some(s.getRawModel())}}}),e.rtc.isRemote;function n(e){return w(e)?e:{}}var r,i,o,a,s}))}))}))}function wg(e){return e.rtcInstance||vg(e)}function _g(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")}function Cg(e){return 0===e.dom.length?(Ln(e),ye.none()):ye.some(e)}function xg(e,t,n,r){e.bind((function(e){return(r?Uh:Hh)(e.dom,r?e.dom.length:0),t.filter(In).map((function(t){var i=n,o=r,a=e.dom,s=t.dom,l=(o?a:s).length;o?(Wh(a,s,!1,!o),i.setStart(s,l)):(Wh(s,a,!1,!o),i.setEnd(s,l))}))})).orThunk((function(){var e=r;return t.filter((function(e){return Hc.isBookmarkNode(e.dom)})).bind(e?Ft:Rt).or(t).filter(In).map((function(e){var t,n=r;Mt(t=e).each((function(e){var r=t.dom;n&&Rh(e,fl(r,0))?Hh(r,0):!n&&Fh(e,fl(r,r.length))&&Uh(r,r.length)}))}))}))}function Sg(e,t,n){var r,i=(r=t,Ee(Ee({format:"html"},n=void 0===n?{}:n),{set:!0,selection:!0,content:r})),o=i;if(!i.no_events){var a=e.fire("BeforeSetContent",i);if(a.isDefaultPrevented())return void e.fire("SetContent",a);o=a}o.content=function(e,t){if("raw"===t.format)return t.content;var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),i=r?{context:r.nodeName.toLowerCase()}:{},o=e.parser.parse(t.content,Ee(Ee({isRootContent:!0,forced_root_block:!1},i),t));return oh({validate:e.validate},e.schema).serialize(o)}(e,o);var s=e.selection.getRng();!function(e,t){var n=ye.from(t.firstChild).map(Ot.fromDom),r=ye.from(t.lastChild).map(Ot.fromDom);e.deleteContents(),e.insertNode(t);var i=n.bind(Rt).filter(In).bind(Cg),o=r.bind(Ft).filter(In).bind(Cg);xg(i,n,e,!0),xg(o,r,e,!1),e.collapse(!1)}(s,s.createContextualFragment(o.content)),e.selection.setRng(s),id(e,s),o.no_events||e.fire("SetContent",o)}function kg(e,t,n){var r;e&&Oe(e,t)&&(0===(r=H(e[t],(function(e){return e!==n}))).length?delete e[t]:e[t]=r)}Kp=function(e){var t,n=e.selection.getRng(),r=sn(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),Dm(km(km(t,r),(function(e){return r(e.previousSibling)&&-1!==pe(t,e.previousSibling)})),(function(e){var t,n=e.previousSibling;Ja(t=e).remove(),Ja(n).append("<br><br>").append(t.childNodes)})))},Sm["pre"]||(Sm.pre=[]),Sm.pre.push(Kp);var Dg=Dt.each,Og=function(e,t,n){Dg(e.childNodes,(function(e){Om(e)&&(t(e)&&n(e),e.hasChildNodes()&&Og(e,t,n))}))},Tg=sr([{keep:[]},{rename:["name"]},{removed:[]}]),Eg=/^(src|href|style)$/,Ig=Dt.each,Ng=uc,Ag=Dt.each,Pg=Dt.each,Mg=function(e,t,n,r){function i(e,t){var i;k((t=void 0===t?h:t).onformat)&&t.onformat(e,t,n,r),Pg(t.styles,(function(t,r){m.setStyle(e,r,lc(t,n))})),!t.styles||(i=m.getAttrib(e,"style"))&&m.setAttrib(e,"data-mce-style",i),Pg(t.attributes,(function(t,r){m.setAttrib(e,r,lc(t,n))})),Pg(t.classes,(function(t){t=lc(t,n),m.hasClass(e,t)||m.addClass(e,t)}))}function o(e,t){var n=!1;return Pg(e,(function(e){return!!gc(e)&&(u(e.collapsed)&&e.collapsed!==p||!m.is(t,e.selector)||Wu(t)?void 0:(i(t,e),!(n=!0)))})),n}function a(r,a,s){var l=[],c=!0,f=h.inline||h.block,p=function(e){if(y(e)){var t=m.create(e);return i(t),t}return null}(f);Ec(r,a,(function(a){var m,g=function(a){var v=!1,b=c,y=a.nodeName.toLowerCase(),w=a.parentNode,_=w.nodeName.toLowerCase();if(Hn(a)&&r.getContentEditable(a)&&(b=c,c="true"===r.getContentEditable(a),v=!0),Kn(a)&&!function(e,t,n,r){if(e.getParam("format_empty_lines",!1,"boolean")&&vc(t)){var i=ii(e.schema),o=(a=Ot.fromDom(n),l=function(e){return Wu(e.dom)},((u=(s=a).dom).parentNode?Tr(Ot.fromDom(u.parentNode),(function(e){return!Ue(s,e)&&l(e)})):ye.none()).isSome());return ce(i,r)&&Kr(Ot.fromDom(n.parentNode),!1)&&!o}var a,s,l,u}(e,h,a,_))return m=null,void(mc(h)&&r.remove(a));if(mc(h)&&h.wrapper&&_m(e,a,t,n))m=null;else{if(c&&!v&&mc(h)&&!h.wrapper&&ac(e,y)&&sc(e,_,f)){var C=r.rename(a,f);return i(C),l.push(C),void(m=null)}if(gc(h)){var x=o(d,a);if(!x&&u(w)&&bc(h)&&(x=o(d,w)),!vc(h)||x)return void(m=null)}!c||v||!sc(e,f,y)||!sc(e,_,f)||!s&&Wn(a)&&ki(a.data)||Wu(a)||vc(h)&&r.isBlock(a)?(m=null,V(xe(a.childNodes),g),v&&(c=b),m=null):(m||(m=r.clone(p,!1),a.parentNode.insertBefore(m,a),l.push(m)),m.appendChild(a))}};V(a,g)})),!0===h.links&&V(l,(function(e){var t=function(e){"A"===e.nodeName&&i(e,h),V(xe(e.childNodes),t)};t(e)})),V(l,(function(o){var a,s,c,f,p,m,g,v,b,y,w,_,C,x,S,k,D,O,T=(a=0,V(o.childNodes,(function(e){var t;u(t=e)&&Wn(t)&&0===t.length||ec(e)||a++})),a);function E(e){var t;1===e.nodeType&&e.parentNode&&1===e.parentNode.nodeType&&(t=dc(C,e.parentNode),C.getStyle(e,"color")&&t?C.setStyle(e,"text-decoration",t):C.getStyle(e,"text-decoration")===t&&C.setStyle(e,"text-decoration",null))}!(1<l.length)&&r.isBlock(o)||0!==T?(vc(h)||mc(h)&&h.wrapper)&&(h.exact||1!==T||(o=G((_=o).childNodes,zm).filter((function(e){return Fp(r,e,h)})).map((function(e){var t=r.clone(e,!1);return i(t),r.replace(t,_,!0),r.remove(e,!0),t})).getOr(_)),k=e,D=n,O=o,Ag(d,(function(e){var t,n,r;vc(e)&&Ag(k.dom.select(e.inline,O),(function(t){Om(t)&&Vm(k,e,D,t,e.exact?t:null)})),t=k.dom,(n=e).clear_child_styles&&(r=n.links?"*:not(a)":"*",Dg(t.select(r,O),(function(e){Om(e)&&Dg(n.styles,(function(n,r){t.setStyle(e,r,"")}))})))})),v=h,_m(g=e,(w=o).parentNode,b=t,y=n)&&Vm(g,v,y,w)||v.merge_with_parents&&g.dom.getParent(w.parentNode,(function(e){if(_m(g,e,b,y))return Vm(g,v,y,w),!0})),m=o,(p=h).styles&&p.styles.backgroundColor&&Og(m,Nm(r,"fontSize"),Am(r,"backgroundColor",lc(p.styles.backgroundColor,n))),C=r,S=o,(x=h).styles&&(x.styles.color||x.styles.textDecoration)&&(Dt.walk(S,E,"childNodes"),E(S)),s=r,f=o,!vc(c=h)||"sub"!==c.inline&&"sup"!==c.inline||(Og(f,Nm(s,"fontSize"),Am(s,"fontSize","")),s.remove(s.select("sup"===c.inline?"sub":"sup",f),!0)),Im(r,h,0,o)):r.remove(o,!0)}))}var s,l,c,f,d=e.formatter.get(t),h=d[0],p=!r&&e.selection.isCollapsed(),m=e.dom,g=e.selection;if("false"!==m.getContentEditable(g.getNode()))h&&(r?rc(r)?o(d,r)||((s=m.createRng()).setStartBefore(r),s.setEndAfter(r),a(m,Tc(e,s,d),!0)):a(m,r,!0):p&&vc(h)&&!Ac(e).length?function(e,t,n){var r,i=e.selection,o=i.getRng(),a=o.startOffset,s=o.startContainer.nodeValue,l=qu(e.getBody(),i.getStart());l&&(r=Vp(l));var u,c,f,d,h=/[^\s\u00a0\u00ad\u200b\ufeff]/;s&&0<a&&a<s.length&&h.test(s.charAt(a))&&h.test(s.charAt(a-1))?(u=i.getBookmark(),o.collapse(!0),c=Ff(Tc(e,o,e.formatter.get(t))),e.formatter.apply(t,n,c),i.moveToBookmark(u)):(l&&r.nodeValue===Cm||(f=e.getDoc(),d=jp(!0).dom,r=(l=f.importNode(d,!0)).firstChild,o.insertNode(l),a=1),e.formatter.apply(t,n,l),i.setCursorLocation(r,a))}(e,t,n):(l=g.getNode(),c=d[0],e.settings.forced_root_block||!c.defaultBlock||m.getParent(l,m.isBlock)||Mg(e,c.defaultBlock),g.setRng(Cp(g.getRng())),Lc(g,!0,(function(){Bc(e,(function(t,n){var r=n?t:Tc(e,t,d);a(m,r,!1)}))})),ic(m,g,g.getRng()),e.nodeChanged()),f=e,Dm(Sm[t],(function(e){e(f)}))),xf(e,t,r,n);else{r=g.getNode();for(var v=0,b=d.length;v<b;v++){var w=d[v];if(w.ceFalseOverride&&gc(w)&&m.is(r,w.selector)){i(r,w);break}}xf(e,t,r,n)}},Rg=function(e){return e.selection.getStart()},Fg=function(e,t,n){var r=Wm(e,t);ie(n,(function(n,i){function o(n){var o,a=Um(e,r,i,n.similar,Hm(n)?n.vars:void 0),s=a.isSome();n.state.get()!==s&&(n.state.set(s),o=a.getOr(t),Hm(n)?n.callback(s,{node:o,format:i,parents:r}):V(n.callbacks,(function(e){return e(s,{node:o,format:i,parents:r})})))}V([n.withSimilar,n.withoutSimilar],o),V(n.withVars,o)}))},Bg=Ne((function(){return document.implementation.createHTMLDocument("undo")}));function Lg(e){return e.select}function $g(e){return e&&e.ownerDocument&&We(Ot.fromDom(e.ownerDocument),Ot.fromDom(e))}function Vg(e,t,n,r){function i(e,t){return Sg(r,e,t)}function o(){var t=s(),n=null==t?void 0:t.anchorNode,r=null==t?void 0:t.focusNode;if(!t||!n||!r||an(n)||an(r))return!0;var i=e.createRng();i.setStart(n,t.anchorOffset),i.collapse(!0);var o=e.createRng();return o.setStart(r,t.focusOffset),o.collapse(!0),i.compareBoundaryPoints(i.START_TO_START,o)<=0}function a(e){var t=g();t.collapse(!!e),v(t)}function s(){return t.getSelection?t.getSelection():t.document.selection}var l,c,f,d,h,p,m=function(e,t){return h||(h={},p={},d.on("NodeChange",(function(e){var t=e.element,n=C(t),r={};Dt.each(h,(function(e,t){_(t,n).each((function(i){p[t]||(V(e,(function(e){e(!0,{node:i,selector:t,parents:n})})),p[t]=e),r[t]=e}))})),Dt.each(p,(function(e,i){r[i]||(delete p[i],Dt.each(e,(function(e){e(!1,{node:t,selector:i,parents:n})})))}))}))),h[e]||(h[e]=[]),h[e].push(t),_(e,C(d.selection.getStart())).each((function(){p[e]=h[e]})),{unbind:function(){kg(h,e,t),kg(p,e,t)}}},g=function(){function n(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(e){return-1}}var i,o,a,u=t.document;if(void 0!==r.bookmark&&!1===Cd(r)){var f=md(r);if(f.isSome())return f.map((function(e){return Od(r,[e])[0]})).getOr(u.createRange())}try{(i=s())&&!an(i.anchorNode)&&(o=0<i.rangeCount?i.getRangeAt(0):(i.createRange?i:u).createRange(),o=Od(r,[o])[0])}catch(n){}return(o=o||(u.createRange?u.createRange():u.body.createTextRange())).setStart&&9===o.startContainer.nodeType&&o.collapsed&&(a=e.getRoot(),o.setStart(a,0),o.setEnd(a,0)),l&&c&&(0===n(o.START_TO_START,o,l)&&0===n(o.END_TO_END,o,l)?o=c:c=l=null),o},v=function(e,t){var n;if((i=e)&&(Lg(i)||$g(i.startContainer)&&$g(i.endContainer))){var i,o=Lg(e)?e:null;if(o){c=null;try{o.select()}catch(e){}}else{var a=s();if(e=r.fire("SetSelectionRange",{range:e,forward:t}).range,a){c=e;try{a.removeAllRanges(),a.addRange(e)}catch(e){}!1===t&&a.extend&&(a.collapse(e.endContainer,e.endOffset),a.extend(e.startContainer,e.startOffset)),l=0<a.rangeCount?a.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!a.setBaseAndExtent||xt.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset])&&"IMG"===n.tagName&&(a.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),a.anchorNode===e.startContainer&&a.focusNode===e.endContainer||a.setBaseAndExtent(n,0,n,1)),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},b={bookmarkManager:null,controlSelection:null,dom:f=e,win:t,serializer:n,editor:d=r,collapse:a,setCursorLocation:function(t,n){var i=e.createRng();u(t)&&u(n)?(i.setStart(t,n),i.setEnd(t,n),v(i),a(!1)):(Rc(e,i,r.getBody(),!0),v(i))},getContent:function(e){return n=(t=void 0===(t=e)?{}:t).format||"html",i=t,_g(r).selection.getContent(n,i);var t,n,i},setContent:i,getBookmark:function(e,t){return y.getBookmark(e,t)},moveToBookmark:function(e){return y.moveToBookmark(e)},select:function(t,n){var r=e,i=n;return ye.from(t).map((function(e){var t=r.nodeIndex(e),n=r.createRng();return n.setStart(e.parentNode,t),n.setEnd(e.parentNode,t+1),i&&(Rc(r,n,e,!0),Rc(r,n,e,!1)),n})).each(v),t},isCollapsed:function(){var e=g(),t=s();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},isForward:o,setNode:function(t){return i(e.getOuterHTML(t)),t},getNode:function(){return function(e,t){if(!t)return e;var n=t.startContainer,r=t.endContainer,i=t.startOffset,o=t.endOffset,a=t.commonAncestorContainer;return!t.collapsed&&(n===r&&o-i<2&&n.hasChildNodes()&&(a=n.childNodes[i]),3===n.nodeType&&3===r.nodeType&&(n=n.length===i?Dd(n.nextSibling,!0):n.parentNode,r=0===o?Dd(r.previousSibling,!1):r.parentNode,n&&n===r))?n:a&&3===a.nodeType?a.parentNode:a}(r.getBody(),g())},getSel:s,setRng:v,getRng:g,getStart:function(e){return Sd(r.getBody(),g(),e)},getEnd:function(e){return kd(r.getBody(),g(),e)},getSelectedBlocks:function(t,n){return function(e,t,n,r){var i=[],o=e.getRoot();if(n=e.getParent(n||Sd(o,t,t.collapsed),e.isBlock),r=e.getParent(r||kd(o,t,t.collapsed),e.isBlock),n&&n!==o&&i.push(n),n&&r&&n!==r)for(var a,s=new Ar(n,o);(a=s.next())&&a!==r;)e.isBlock(a)&&i.push(a);return r&&n!==r&&r!==o&&i.push(r),i}(e,g(),t,n)},normalize:function(){var t=g();if(1<Ic(s()).length||!Fc(r))return t;var n=Mf(e,t);return n.each((function(e){v(e,o())})),n.getOr(t)},selectorChanged:function(e,t){return m(e,t),b},selectorChangedWithUnbind:m,getScrollContainer:function(){for(var t,n=e.getRoot();n&&"BODY"!==n.nodeName;){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:function(e,t){u(e)?(r.inline?td:rd)(r,e,t):id(r,g(),t)},placeCaretAt:function(e,t){return v(Of(e,t,r.getDoc()))},getBoundingClientRect:function(){var e=g();return e.collapsed?fl.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){t=l=c=null,w.destroy()}},y=Hc(b),w=kf(b,r);function _(e,t){return G(t,(function(t){return f.is(t,e)}))}function C(e){return f.getParents(e,null,f.getRoot())}return b.bookmarkManager=y,b.controlSelection=w,b}function jg(e,t){var n,r,i,o,a=li();t.convert_fonts_to_spans&&(r=e,i=a,o=Dt.explode(t.font_size_legacy_values),r.addNodeFilter("font",(function(e){V(e,(function(e){var t,n=i.parse(e.attr("style")),r=e.attr("color"),a=e.attr("face"),s=e.attr("size");r&&(n.color=r),a&&(n["font-family"]=a),s&&(n["font-size"]=o[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",i.serialize(n)),t=e,V(["color","face","size"],(function(e){t.attr(e,null)}))}))}))),n=a,e.addNodeFilter("strike",(function(e){V(e,(function(e){var t=n.parse(e.attr("style"));t["text-decoration"]="line-through",e.name="span",e.attr("style",n.serialize(t))}))}))}function zg(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return{type:t=r?r[1]:t,data:n[1]}}function Hg(e,t){var n;try{n=atob(t)}catch(e){return ye.none()}for(var r=new Uint8Array(n.length),i=0;i<r.length;i++)r[i]=n.charCodeAt(i);return ye.some(new Blob([r],{type:e}))}function Ug(e){return 0===e.indexOf("blob:")?(t=e,new Er((function(e,n){function r(){n("Cannot convert "+t+" to Blob. Resource might not exist or is inaccessible.")}try{var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(){200===i.status?e(i.response):r()},i.onerror=r,i.send()}catch(e){r()}}))):0===e.indexOf("data:")?(n=e,new Er((function(e){var t=zg(n);Hg(t.type,t.data).fold((function(){return e(new Blob([]))}),e)}))):null;var t,n}function Wg(e){return(e||"blobid")+Jg++}function qg(e,t){var n={};return{findAll:function(r,i){i=i||P;var o=$(H(r?xe(r.getElementsByTagName("img")):[],(function(t){var n=t.src;return xt.fileApi&&!t.hasAttribute("data-mce-bogus")&&!t.hasAttribute("data-mce-placeholder")&&n&&n!==xt.transparentSrc&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&i(t):0===n.indexOf("data:")&&i(t))})),(function(e){if(void 0!==n[e.src])return new Er((function(t){n[e.src].then((function(n){return"string"==typeof n?n:void t({image:e,blobInfo:n.blobInfo})}))}));var r=new Er((function(n,r){var i,o,a,s,l,u,c,f,d;i=t,a=n,s=r,0!==(o=e).src.indexOf("blob:")?(u=(l=zg(o.src)).data,c=l.type,f=u,(d=i.getByData(f,c))?a({image:o,blobInfo:d}):Ug(o.src).then((function(e){d=i.create(Wg(),e,f),i.add(d),a({image:o,blobInfo:d})}),(function(e){s(e)}))):(d=i.getByUri(o.src))?a({image:o,blobInfo:d}):Ug(o.src).then((function(e){var t=e;new Er((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)})).then((function(t){f=zg(t).data,d=i.create(Wg(),e,f),i.add(d),a({image:o,blobInfo:d})}))}),(function(e){s(e)}))})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r}));return Er.all(o)}}}function Gg(e,t){return e.replace(t.re,(function(e){return ue(t.uris,e).getOr(e)}))}function Yg(e,t,n,r){(e.padd_empty_with_br||t.insert)&&n[r.name]?r.empty().append(new Ud("br",1)).shortEnded=!0:r.empty().append(new Ud("#text",3)).value=xi}function Kg(e,t,n,r){return r.isEmpty(t,n,(function(t){return(n=e.getElementRule(t.name))&&n.paddEmpty;var n}))}function Xg(e,t){var n,r,i,o=e.schema;function a(e){var t,n,o=e.attr("src");(t=e).attr("src")===xt.transparentSrc||u(t.attr("data-mce-placeholder"))||u(e.attr("data-mce-bogus"))||((n=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(o))?ye.some({type:n[1],data:decodeURIComponent(n[2])}):ye.none()).filter((function(){return function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),ie(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0}(e,r)})).bind((function(e){var t=e.type,n=e.data;return ye.from(i.getByData(n,t)).orThunk((function(){return Hg(t,n).map((function(e){var t=i.create(Wg(),e,n);return i.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))}t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,n,r){var i,a,s,l,u,c,f,d,h=e.length,p=Dt.extend({},o.getBlockElements()),m=o.getNonEmptyElements(),g=o.getWhiteSpaceElements();for(p.body=1,i=0;i<h;i++)if(s=(a=e[i]).parent,p[a.parent.name]&&a===s.lastChild){for(u=a.prev;u;){if("span"!==(c=u.name)||"bookmark"!==u.attr("data-mce-type")){"br"===c&&(a=null);break}u=u.prev}a&&(a.remove(),Kg(o,m,g,s)&&(f=o.getElementRule(s.name))&&(f.removeEmpty?s.remove():f.paddEmpty&&Yg(t,r,p,s)))}else{for(l=a;s&&s.firstChild===l&&s.lastChild===l&&!p[(l=s).name];)s=s.parent;l===s&&!0!==t.padd_empty_with_br&&((d=new Ud("#text",3)).value=xi,a.replace(d))}})),e.addAttributeFilter("href",(function(e){var n,r,i=e.length;if(!t.allow_unsafe_link_target)for(;i--;){var o=e[i];"a"===o.name&&"_blank"===o.attr("target")&&o.attr("rel",(r=void 0,r=(n=o.attr("rel"))?Dt.trim(n):"",/\b(noopener)\b/g.test(r)?r:r.split(" ").filter((function(e){return 0<e.length})).concat(["noopener"]).sort().join(" ")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){for(var t,n,r,i,o=e.length;o--;)if("a"===(i=e[o]).name&&i.firstChild&&!i.attr("href"))for(r=i.parent,t=i.lastChild;n=t.prev,r.insert(t,i),t=n;);})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){for(var t,n,r,i=e.length;i--;)"ul"!==(r=(n=e[i]).parent).name&&"ol"!==r.name||(n.prev&&"li"===n.prev.name?n.prev.append(n):((t=new Ud("li",1)).attr("style","list-style-type: none"),n.wrap(t)))})),t.validate&&o.getValidClasses()&&e.addAttributeFilter("class",(function(e){for(var t=o.getValidClasses(),n=e.length;n--;){for(var r=e[n],i=r.attr("class").split(" "),a="",s=0;s<i.length;s++){var l=i[s],u=!1,c=t["*"];c&&c[l]&&(u=!0),c=t[r.name],(u=!(u||!c||!c[l])||u)&&(a&&(a+=" "),a+=l)}a.length||(a=null),r.attr("class",a)}})),n=e,(i=(r=t).blob_cache)&&n.addAttributeFilter("src",(function(e){return V(e,a)}))}var Jg=0,Zg=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},Qg=Dt.each,ev=Dt.trim,tv="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),nv={ftp:21,http:80,https:443,mailto:25},rv=["img","video"],iv=(ov.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return{type:t=r?r[1]:t,data:n[1]}},ov.isDomSafe=function(e,t,n){if((n=void 0===n?{}:n).allow_script_urls)return!0;var r,i,o,a,s=eo.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{s=decodeURIComponent(s)}catch(e){s=unescape(s)}return!(/((java|vb)script|mhtml):/i.test(s)||(i=s,o=t,!(r=n).allow_html_data_urls&&(/^data:image\//i.test(i)?(u(a=r.allow_svg_data_urls)?!a:!u(o)||!B(rv,o))&&/^data:image\/svg\+xml/i.test(i):/^data:/i.test(i))))},ov.getDocumentBaseUrl=function(e){var t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname;return/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},ov.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},ov.prototype.toRelative=function(e){var t;if("./"===e)return e;var n=new ov(e,{base_uri:this});if("mce_host"!==n.host&&this.host!==n.host&&n.host||this.port!==n.port||this.protocol!==n.protocol&&""!==n.protocol)return n.getURI();var r=this.getURI(),i=n.getURI();return r===i||"/"===r.charAt(r.length-1)&&r.substr(0,r.length-1)===i?r:(t=this.toRelPath(this.path,n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),t)},ov.prototype.toAbsolute=function(e,t){var n=new ov(e,{base_uri:this});return n.getURI(t&&this.isSameOrigin(n))},ov.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=nv[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},ov.prototype.toRelPath=function(e,t){var n,r,i=0,o="",a=e.substring(0,e.lastIndexOf("/")).split("/"),s=t.split("/");if(a.length>=s.length)for(n=0,r=a.length;n<r;n++)if(n>=s.length||a[n]!==s[n]){i=n+1;break}if(a.length<s.length)for(n=0,r=s.length;n<r;n++)if(n>=a.length||a[n]!==s[n]){i=n+1;break}if(1===i)return t;for(n=0,r=a.length-(i-1);n<r;n++)o+="../";for(n=i-1,r=s.length;n<r;n++)o+=n!==i-1?"/"+s[n]:s[n];return o},ov.prototype.toAbsPath=function(e,t){var n,r,i=0,o=[],a=/\/$/.test(t)?"/":"",s=e.split("/"),l=t.split("/");for(Qg(s,(function(e){e&&o.push(e)})),s=o,n=l.length-1,o=[];0<=n;n--)0!==l[n].length&&"."!==l[n]&&(".."!==l[n]?0<i?i--:o.push(l[n]):i++);return 0!==(r=(n=s.length-i)<=0?J(o).join("/"):s.slice(0,n).join("/")+"/"+J(o).join("/")).indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},ov.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},ov);function ov(e,t){e=ev(e),this.settings=t||{};var n,r,i,o,a=this.settings.base_uri,s=this;/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e)?s.source=e:(n=0===e.indexOf("//"),0!==e.indexOf("/")||n||(e=(a&&a.protocol||"http")+"://mce_host"+e),/^[\w\-]*:?\/\//.test(e)||(r=this.settings.base_uri?this.settings.base_uri.path:new ov(document.location.href).directory,e=this.settings.base_uri&&""==this.settings.base_uri.protocol?"//mce_host"+s.toAbsPath(r,e):(i=/([^#?]*)([#?]?.*)/.exec(e),(a&&a.protocol||"http")+"://mce_host"+s.toAbsPath(r,i[1])+i[2])),e=e.replace(/@@/g,"(mce_at)"),o=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e),Qg(tv,(function(e,t){var n=(n=o[t])&&n.replace(/\(mce_at\)/g,"@@");s[e]=n})),a&&(s.protocol||(s.protocol=a.protocol),s.userInfo||(s.userInfo=a.userInfo),s.port||"mce_host"!==s.host||(s.port=a.port),s.host&&"mce_host"!==s.host||(s.host=a.host),s.source=""),n&&(s.protocol=""))}function av(e,t,n){for(var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,i=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,o=e.getShortEndedElements(),a=1,s=n;0!==a;)for(r.lastIndex=s;;){var l=r.exec(t);if(null===l)return s;if("!"===l[1]){s=Ze(l[2],"--")?cv(t,!1,l.index+"!--".length):cv(t,!0,l.index+1);break}i.lastIndex=r.lastIndex;var u=i.exec(t);if(!C(u)&&u.index===r.lastIndex){"/"===l[1]?--a:Oe(o,l[2])||(a+=1),s=r.lastIndex+u[0].length;break}}return s}function sv(e,t){void 0===t&&(t=ai()),e=e||{};var n=uv(),r=n.createElement("form");function i(i,c){void 0===c&&(c="html");for(var h,p,m,g,v,b,y,w,_,C,x,S,k,D,O,T,E,I,N,A=i.html,P=0,M=[],R=0,F=eo.decode,B=Dt.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),L="html"===c?0:1,$=function(e){for(var t,n=M.length;n--&&M[n].name!==e;);if(0<=n){for(t=M.length-1;n<=t;t--)(e=M[t]).valid&&u(e.name);M.length=n}},V=function(e,t){return s(Gg(e,i),t)},j=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),o(Gg(t,i)))},z=function(e,t){var n=e||"",r=!Ze(n,"--"),i=cv(A,r,t);return e=A.substr(t,i-t),j(r?n+e:e),i+1},H=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),U=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,W=t.getShortEndedElements(),q=e.self_closing_elements||t.getSelfClosingElements(),G=t.getBoolAttrs(),Y=e.validate,K=e.remove_internals,X=e.fix_self_closing,J=t.getSpecialElements(),Z=A+">";h=H.exec(Z);){var Q=h[0];if(P<h.index&&V(F(A.substr(P,h.index-P))),p=h[7])$(p=":"===(p=p.toLowerCase()).charAt(0)?p.substr(1):p);else if(p=h[8]){if(h.index+Q.length>A.length){V(F(A.substr(h.index))),P=h.index+Q.length;continue}_=(p=":"===(p=p.toLowerCase()).charAt(0)?p.substr(1):p)in W,X&&q[p]&&0<M.length&&M[M.length-1].name===p&&$(p);var ee=function(e,t){var n=e.exec(t);if(n){var r=n[1],i=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?i:null}return null}(U,h[9]);if(null!==ee){if("all"===ee){P=av(t,A,H.lastIndex),H.lastIndex=P;continue}x=!1}if(!Y||(C=t.getElementRule(p))){if(x=!0,Y&&(D=C.attributes,O=C.attributePatterns),(k=h[9])?((w=-1!==k.indexOf("data-mce-type"))&&K&&(x=!1),(g=[]).map={},k.replace(U,(function(t,o,a,s,l){return function(t,o,a,s,l){var u;if(a=Gg((o=o.toLowerCase())in G?o:F(a||s||l||""),i),Y&&!w&&0==(0===(u=o).indexOf("data-")||0===u.indexOf("aria-"))){var c=D[o];if(!c&&O){for(var f=O.length;f--&&!(c=O[f]).pattern.test(o););-1===f&&(c=null)}if(!c)return;if(c.validValues&&!(a in c.validValues))return}("name"===o||"id"===o)&&t in lv&&(a in n||a in r)||B[o]&&!iv.isDomSafe(a,t,e)||w&&(o in B||0===o.indexOf("on"))||(g.map[o]=a,g.push({name:o,value:a}))}(p,o,a,s,l),""}))):(g=[]).map={},Y&&!w){if(T=C.attributesRequired,E=C.attributesDefault,I=C.attributesForced,C.removeEmptyAttrs&&!g.length&&(x=!1),I)for(v=I.length;v--;)y=(S=I[v]).name,"{$uid}"===(N=S.value)&&(N="mce_"+R++),g.map[y]=N,g.push({name:y,value:N});if(E)for(v=E.length;v--;)(y=(S=E[v]).name)in g.map||("{$uid}"===(N=S.value)&&(N="mce_"+R++),g.map[y]=N,g.push({name:y,value:N}));if(T){for(v=T.length;v--&&!(T[v]in g.map););-1===v&&(x=!1)}if(S=g.map["data-mce-bogus"]){if("all"===S){P=av(t,A,H.lastIndex),H.lastIndex=P;continue}x=!1}}x&&l(p,g,_)}else x=!1;if(m=J[p]){m.lastIndex=P=h.index+Q.length,P=(h=m.exec(A))?(x&&(b=A.substr(P,h.index-P)),h.index+h[0].length):(b=A.substr(P),A.length),x&&(0<b.length&&V(b,!0),u(p)),H.lastIndex=P;continue}_||(k&&k.indexOf("/")===k.length-1?x&&u(p):M.push({name:p,valid:x}))}else if(p=h[1])j(p);else if(p=h[2]){if(!(1==L||e.preserve_cdata||0<M.length&&t.isValidChild(M[M.length-1].name,"#cdata"))){P=z("",h.index+2),H.lastIndex=P;continue}a(p)}else if(p=h[3])d(p);else{if((p=h[4])||"<!"===Q){P=z(p,h.index+Q.length),H.lastIndex=P;continue}if(p=h[5]){if(1!=L){P=z("?",h.index+2),H.lastIndex=P;continue}f(p,h[6])}}P=h.index+Q.length}for(P<A.length&&V(F(A.substr(P))),v=M.length-1;0<=v;v--)(p=M[v]).valid&&u(p.name)}!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var o=e.comment||c,a=e.cdata||c,s=e.text||c,l=e.start||c,u=e.end||c,f=e.pi||c,d=e.doctype||c;return{parse:function(e,t){void 0===t&&(t="html"),i(function(e){for(var t,n=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],i={},o=Ss("img"),a=0,s=0;t=n.exec(e);){var l=t[0],u=o+"_"+s++;i[u]=l,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(u),a=t.index+l.length}var c=new RegExp(o+"_[0-9]+","g");return 0===a?{prefix:o,uris:i,html:e,re:c}:(a<e.length&&r.push(e.substr(a)),{prefix:o,uris:i,html:r.join(""),re:c})}(e),t)}}}var lv=Dt.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),uv=Ne((function(){return document.implementation.createHTMLDocument("parser")})),cv=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&(s=n,/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(r.substr(s)))){var i=r.indexOf("[endif]",n);return r.indexOf(">",i)}if(t){var o=r.indexOf(">",n);return-1!==o?o:r.length}var a=/--!?>/g;a.lastIndex=n;var s,l=a.exec(e);return l?l.index+l[0].length:r.length};function fv(e,t){void 0===t&&(t=ai());var n={},r=[],i={},o={};function a(e){var t=e.name;t in n&&((s=i[t])?s.push(e):i[t]=[e]);for(var a=r.length;a--;){var s,l=r[a].name;l in e.attributes.map&&((s=o[l])?s.push(e):o[l]=[e])}return e}(e=e||{}).validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var s={schema:t,addAttributeFilter:function(e,t){Nv(Av(e),(function(e){for(var n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},getAttributeFilters:function(){return[].concat(r)},addNodeFilter:function(e,t){Nv(Av(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},getNodeFilters:function(){var e,t=[];for(e in n)Oe(n,e)&&t.push({name:e,callbacks:n[e]});return t},filterNode:a,parse:function(s,l){var c,f,d,h,p,m,g,v,b=[];function y(e){for(var n=t.getBlockElements(),r=e.prev;r&&3===r.type;){var i=r.value.replace(I,"");if(0<i.length)return r.value=i,0;var o=r.next;if(o){if(3===o.type&&o.value.length){r=r.prev;continue}if(!n[o.name]&&"script"!==o.name&&"style"!==o.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}}function w(e,t){var r,o=new Ud(e,t);return e in n&&((r=i[e])?r.push(o):i[e]=[o]),o}l=l||{},i={},o={};var _=Pv(Iv("script,style,head,html,body,title,meta,param"),t.getBlockElements()),C=ii(t),x=t.getNonEmptyElements(),S=t.children,k=e.validate,D=("forced_root_block"in l?l:e).forced_root_block,O=!1===D?"":!0===D?"p":D,T=t.getWhiteSpaceElements(),E=/^[ \t\r\n]+/,I=/[ \t\r\n]+$/,N=/[ \t\r\n]+/g,A=/^[ \t\r\n]+$/,P=Oe(T,l.context)||Oe(T,e.root_name),M=sv({validate:k,document:e.document,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n}(t.getSelfClosingElements()),cdata:function(e){v.append(w("#cdata",4)).value=e},text:function(e,t){var n,r;P||(e=e.replace(N," "),(r=v.lastChild)&&(Oe(_,r.name)||"br"===r.name)&&(e=e.replace(E,""))),0!==e.length&&((n=w("#text",3)).raw=!!t,v.append(n).value=e)},comment:function(e){v.append(w("#comment",8)).value=e},pi:function(e,t){v.append(w(e,7)).value=t,y(v)},doctype:function(e){v.append(w("#doctype",10)).value=e,y(v)},start:function(e,n,i){var a=k?t.getElementRule(e):{};if(a){var s=w(a.outputName||e,1);s.attributes=n,s.shortEnded=i,v.append(s);var l=S[v.name];l&&S[s.name]&&!l[s.name]&&b.push(s);for(var u=r.length;u--;){var c=r[u].name;c in n.map&&((m=o[c])?m.push(s):o[c]=[s])}_[e]&&y(s),i||(v=s),!P&&T[e]&&(P=!0)}},end:function(n){var r,i,o,a,s=k?t.getElementRule(n):{};if(s){if(_[n]&&!P){if((r=v.firstChild)&&3===r.type)if(0<(i=r.value.replace(E,"")).length)r.value=i,r=r.next;else for(o=r.next,r.remove(),r=o;r&&3===r.type;)i=r.value,o=r.next,0!==i.length&&!A.test(i)||(r.remove(),r=o),r=o;if((r=v.lastChild)&&3===r.type)if(0<(i=r.value.replace(I,"")).length)r.value=i,r=r.prev;else for(o=r.prev,r.remove(),r=o;r&&3===r.type;)i=r.value,o=r.prev,0!==i.length&&!A.test(i)||(r.remove(),r=o),r=o}P&&T[n]&&(P=!1);var c=Kg(t,x,T,v),f=v.parent;s.paddInEmptyBlock&&c&&function(){for(var e=v;u(e);){if(e.name in C)return Kg(t,x,T,e);e=e.parent}}()?Yg(e,l,_,v):s.removeEmpty&&c?_[v.name]?v.empty().remove():v.unwrap():s.paddEmpty&&(Zg(a=v,"#text")&&a.firstChild.value===xi||c)&&Yg(e,l,_,v),v=f}}},t),R=v=new Ud(l.context||e.root_name,11);if(M.parse(s,l.format),k&&b.length&&(l.context?l.invalid=!0:function(e){for(var n=Iv("tr,td,th,tbody,thead,tfoot,table"),r=t.getNonEmptyElements(),i=t.getWhiteSpaceElements(),o=t.getTextBlockElements(),s=t.getSpecialElements(),l=function(e,n){if(void 0===n&&(n=e.parent),s[e.name])e.empty().remove();else{for(var r=0,i=e.children();r<i.length;r++){var o=i[r];t.isValidChild(n.name,o.name)||l(o,n)}e.unwrap()}},u=0;u<e.length;u++){var c,f=e[u],d=void 0,h=void 0;if(f.parent&&!f.fixed)if(o[f.name]&&"li"===f.parent.name){for(var p=f.next;p&&o[p.name];)p.name="li",p.fixed=!0,f.parent.insert(p,f.parent),p=p.next;f.unwrap()}else{var m=[f];for(d=f.parent;d&&!t.isValidChild(d.name,f.name)&&!n[d.name];d=d.parent)m.push(d);if(d&&1<m.length)if(t.isValidChild(d.name,f.name)){m.reverse();for(var g=c=a(m[0].clone()),v=0;v<m.length-1;v++){t.isValidChild(g.name,m[v].name)?(h=a(m[v].clone()),g.append(h)):h=g;for(var b=m[v].firstChild;b&&b!==m[v+1];){var y=b.next;h.append(b),b=y}g=h}Kg(t,r,i,c)?d.insert(f,m[0],!0):(d.insert(c,m[0],!0),d.insert(f,c)),d=m[0],(Kg(t,r,i,d)||Zg(d,"br"))&&d.empty().remove()}else l(f);else f.parent&&("li"!==f.name?t.isValidChild(f.parent.name,"div")&&t.isValidChild("div",f.name)?f.wrap(a(new Ud("div",1))):l(f):!(p=f.prev)||"ul"!==p.name&&"ol"!==p.name?!(p=f.next)||"ul"!==p.name&&"ol"!==p.name?f.wrap(a(new Ud("ul",1))):p.insert(f,p.firstChild,!0):p.append(f))}}}(b)),O&&("body"===R.name||l.isRootContent)&&function(){function n(e){e&&((r=e.firstChild)&&3===r.type&&(r.value=r.value.replace(E,"")),(r=e.lastChild)&&3===r.type&&(r.value=r.value.replace(I,"")))}var r=R.firstChild,i=null;if(t.isValidChild(R.name,O.toLowerCase())){for(;r;){var o=r.next;3===r.type||1===r.type&&"p"!==r.name&&!_[r.name]&&!r.attr("data-mce-type")?(i||((i=w(O,1)).attr(e.forced_root_block_attrs),R.insert(i,r)),i.append(r)):(n(i),i=null),r=o}n(i)}}(),!l.invalid){for(g in i)if(Oe(i,g)){for(m=n[g],h=(c=i[g]).length;h--;)c[h].parent||c.splice(h,1);for(f=0,d=m.length;f<d;f++)m[f](c,g,l)}for(f=0,d=r.length;f<d;f++)if((m=r[f]).name in o){for(h=(c=o[m.name]).length;h--;)c[h].parent||c.splice(h,1);for(h=0,p=m.callbacks.length;h<p;h++)m.callbacks[h](c,m.name,l)}}return R}};return Xg(s,e),e.inline_styles&&jg(s,e),s}function dv(e,t,n){-1===Dt.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)})),t.push(n))}function hv(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:ns.DOM,i=t&&t.schema?t.schema:ai(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var o,a=fv(e,i),s=e,l=r;return(o=a).addAttributeFilter("data-mce-tabindex",(function(e,t){for(var n=e.length;n--;){var r=e[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(t,null)}})),o.addAttributeFilter("src,href,style",(function(e,t){for(var n="data-mce-"+t,r=s.url_converter,i=s.url_converter_scope,o=e.length;o--;){var a=e[o],u=a.attr(n);void 0!==u?(a.attr(t,0<u.length?u:null),a.attr(n,null)):(u=a.attr(t),"style"===t?u=l.serializeStyle(l.parseStyle(u),a.name):r&&(u=r.call(i,u,t,a.name)),a.attr(t,0<u.length?u:null))}})),o.addAttributeFilter("class",(function(e){for(var t=e.length;t--;){var n,r=e[t];r.attr("class")&&(n=r.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),r.attr("class",0<n.length?n:null))}})),o.addAttributeFilter("data-mce-type",(function(e,t,n){for(var r=e.length;r--;){var i=e[r];"bookmark"!==i.attr("data-mce-type")||n.cleanup||(ye.from(i.firstChild).exists((function(e){return!ki(e.value)}))?i.unwrap():i.remove())}})),o.addNodeFilter("noscript",(function(e){for(var t=e.length;t--;){var n=e[t].firstChild;n&&(n.value=eo.decode(n.value))}})),o.addNodeFilter("script,style",(function(e,t){for(var n=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")},r=e.length;r--;){var i,o=e[r],a=o.firstChild?o.firstChild.value:"";"script"===t?((i=o.attr("type"))&&o.attr("type","mce-no/type"===i?null:i.replace(/^mce\-/,"")),"xhtml"===s.element_format&&0<a.length&&(o.firstChild.value="// <![CDATA[\n"+n(a)+"\n// ]]>")):"xhtml"===s.element_format&&0<a.length&&(o.firstChild.value="\x3c!--\n"+n(a)+"\n--\x3e")}})),o.addNodeFilter("#comment",(function(e){for(var t=e.length;t--;){var n=e[t];s.preserve_cdata&&0===n.value.indexOf("[CDATA[")?(n.name="#cdata",n.type=4,n.value=l.decode(n.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===n.value.indexOf("mce:protected ")&&(n.name="#text",n.type=3,n.raw=!0,n.value=unescape(n.value).substr(14))}})),o.addNodeFilter("xml:namespace,input",(function(e,t){for(var n=e.length;n--;){var r=e[n];7===r.type?r.remove():1===r.type&&("input"!==t||r.attr("type")||r.attr("type","text"))}})),o.addAttributeFilter("data-mce-type",(function(e){V(e,(function(e){"format-caret"===e.attr("data-mce-type")&&(e.isEmpty(o.schema.getNonEmptyElements())?e.remove():e.unwrap())}))})),o.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)})),{schema:i,addNodeFilter:a.addNodeFilter,addAttributeFilter:a.addAttributeFilter,serialize:function(n,o){var s,l,u,c,f,d,h,p,m,g,v,b,y,w,_,C,x,S,k,D,O,T,E,I,N,A,P,M,R,F=Ee({format:"html"},o=void 0===o?{}:o),B=(b=n,E=y=F,s=(v=t)&&v.hasEventListeners("PreProcess")&&!E.no_events?(_=y,D=(w=v).dom,O=b.cloneNode(!0),(T=document.implementation).createHTMLDocument&&(x=T.createHTMLDocument(""),Dt.each("BODY"===O.nodeName?O.childNodes:[O],(function(e){x.body.appendChild(x.importNode(e,!0))})),O="BODY"!==O.nodeName?x.body.firstChild:x.body,C=D.doc,D.doc=x),S=w,k=Ee(Ee({},_),{node:O}),S.fire("PreProcess",k),C&&(D.doc=C),O):b,u=Di((l=F).getInner?s.innerHTML:r.getOuterHTML(s)),l.selection||_i(Ot.fromDom(s))?u:Dt.trim(u)),L=(c=a,f=B,h=(d=F).selection?Ee({forced_root_block:!1},d):d,p=c.parse(f,h),!$(g=p.lastChild)||$(m=g.prev)&&(g.remove(),m.remove()),p);function $(e){return e&&"br"===e.name}return"tree"===F.format?L:(I=t,N=F,A=L,R=oh(e,i).serialize(A),N.no_events||!I?R:(P=I,M=Ee(Ee({},N),{content:R}),P.fire("PostProcess",M).content))},addRules:i.addValidElements,setRules:i.setValidElements,addTempAttr:O(dv,a,n),getTempAttrs:h(n),getNodeFilters:a.getNodeFilters,getAttributeFilters:a.getAttributeFilters}}function pv(e,t){var n=hv(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}}function mv(e,t,n){return r=n=void 0===n?{}:n,wg(e).editor.setContent(t,r);var r}function gv(e){return ye.from(e).each((function(e){return e.destroy()}))}function vv(e,t){var n,r,i,o,a,s,l,u=(n=e,r=H(Fv,(function(e){return Oe(n,e)})),!1!==(i=n.forced_root_block)&&""!==i||r.push("forced_root_block (false only)"),Q(r)),c=(l=Dt.makeMap(t.plugins," "),Q(Ie(Ie([],H(Bv,p),!0),K(Lv,(function(e){return p(e)?[e+" (moving to premium)"]:[]})),!0))),f=0<c.length,d=0<u.length,h="mobile"===t.theme;function p(e){return Oe(l,e)}(f||d||h)&&(o=h?"\n\nThemes:\n- mobile":"",a=f?"\n\nPlugins:\n- "+c.join("\n- "):"",s=d?"\n\nSettings:\n- "+u.join("\n- "):"",console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+o+a+s))}function bv(e){var t=_(e)?e.join(" "):e;return H($(y(t)?t.split(" "):[],Qe),(function(e){return 0<e.length}))}function yv(e,t){return Oe(e.sections(),t)}function wv(e,t){return ue(e,"toolbar_mode").orThunk((function(){return ue(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)}function _v(e,t,n,r){var i,o,a,s,l,u,c,f,d=bv(n.forced_plugins),h=bv(r.plugins),p=yv(i=t,"mobile")?i.sections().mobile:{},m=p.plugins?bv(p.plugins):h,g=(s=t,l=h,u=m,o=(a=e)&&(f=(c=s).sections(),yv(c,"mobile")&&"mobile"===f.mobile.theme)?H(u,O(B,Hv)):a&&yv(s,"mobile")?u:l,[].concat(bv(d)).concat(bv(o)));if(xt.browser.isIE()&&B(g,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return Dt.extend(r,{plugins:g.join(" ")})}function Cv(e,t,n,r,i){var o,a,s,l,u,c,f,d,p=e?{mobile:(o=t,a={resize:!1,toolbar_mode:wv(i.mobile||{},"scrolling"),toolbar_sticky:!1},Ee(Ee(Ee({},Uv),a),o?{menubar:!1}:{}))}:{},m=(u=["mobile"],se(Rv(p,i),(function(e,t){return B(u,t)}),ae(c={}),ae(f={})),{sections:h((d={t:c,f:f}).t),settings:h(d.f)}),g=Dt.extend(n,r,m.settings(),e&&yv(m,"mobile")?function(e){void 0===e&&(e={});var t=ue(m.sections(),"mobile").getOr({});return Dt.extend({},e,t)}():{},{validate:!0,external_plugins:(s=r,l=m.settings().external_plugins||{},s&&s.external_plugins?Dt.extend({},s.external_plugins,l):l)});return _v(e,m,r,g)}function xv(e,t,n){return ye.from(t.settings[n]).filter(e)}function Sv(e,t){return t.dom[e]}function kv(e,t){return parseInt(Sn(t,e),10)}function Dv(e,t,n){var r,i,o,a,s,l,u=Ot.fromDom(e.getBody()),c=e.inline?u:Ot.fromDom(At(u).dom.documentElement),f=(r=e.inline,o=t,a=n,s=(i=c).dom.getBoundingClientRect(),{x:o-(r?s.left+i.dom.clientLeft+Kv(i):0),y:a-(r?s.top+i.dom.clientTop+Yv(i):0)}),d=f.x,h=f.y,p=qv(l=c),m=Gv(l);return 0<=d&&0<=h&&d<=p&&h<=m}function Ov(e){function t(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():{open:n,close:n,reposition:n,getArgs:n};function n(){throw new Error("Theme did not provide a NotificationManager implementation.")}}function n(){return ye.from(s[0])}function r(){0<s.length&&t().reposition(s)}function i(e){Y(s,(function(t){return t===e})).each((function(e){s.splice(e,1)}))}function o(o,a){if(void 0===a&&(a=!0),!e.removed&&(u=(l=e).inline?l.getBody():l.getContentAreaContainer(),ye.from(u).map(Ot.fromDom).map($n).getOr(!1)))return a&&e.fire("BeforeOpenNotification",{notification:o}),G(s,(function(e){return!((n=t().getArgs(e)).type!==o.type||n.text!==o.text||n.progressBar||n.timeout||o.progressBar||o.timeout);var n})).getOrThunk((function(){e.editorManager.setActive(e);var a=t().open(o,(function(){i(a),r(),n().fold((function(){return e.focus()}),(function(e){return Ot.fromDom(e.getEl()).dom.focus()}))}));return s.push(a),r(),e.fire("OpenNotification",{notification:Ee({},a)}),a}));var l,u}var a,s=[],l=h(s);return(a=e).on("SkinLoaded",(function(){var e=a.getParam("service_message");e&&o({text:e,type:"warning",timeout:0},!1),r()})),a.on("show ResizeEditor ResizeWindow NodeChange",(function(){Ir.requestAnimationFrame(r)})),a.on("remove",(function(){V(s.slice(),(function(e){t().close(e)}))})),{open:o,close:function(){n().each((function(e){t().close(e),i(e),r()}))},getNotifications:l}}sv.findEndTag=av;var Tv,Ev,Iv=Dt.makeMap,Nv=Dt.each,Av=Dt.explode,Pv=Dt.extend,Mv=ns.DOM,Rv=(Tv=function(e,t){return w(e)&&w(t)?Rv(e,t):t},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)throw new Error("Can't merge zero objects");for(var n={},r=0;r<e.length;r++){var i,o=e[r];for(i in o)Oe(o,i)&&(n[i]=Tv(n[i],o[i]))}return n}),Fv="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),Bv="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),Lv="imagetools,toc".split(","),$v=pt().deviceType,Vv=$v.isTouch(),jv=$v.isPhone(),zv=$v.isTablet(),Hv=["lists","autolink","autosave"],Uv={table_grid:!1,object_resizing:!1,resize:!1},Wv=(Ev={},{add:function(e,t){Ev[e]=t},get:function(e){return Ev[e]||{icons:{}}},has:function(e){return Oe(Ev,e)}}),qv=O(Sv,"clientWidth"),Gv=O(Sv,"clientHeight"),Yv=O(kv,"margin-top"),Kv=O(kv,"margin-left"),Xv=hs.PluginManager,Jv=hs.ThemeManager;function Zv(e){function t(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():{open:n,openUrl:n,alert:n,confirm:n,close:n,getParams:n,setParams:n};function n(){throw new Error("Theme did not provide a WindowManager implementation.")}}function n(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t?t.apply(e,n):void 0}}function r(t){e.fire("CloseWindow",{dialog:t}),0===(o=H(o,(function(e){return e!==t}))).length&&e.focus()}function i(t){e.editorManager.setActive(e),pd(e);var n,r=t();return n=r,o.push(n),e.fire("OpenWindow",{dialog:n}),r}var o=[];return e.on("remove",(function(){V(o,(function(e){t().close(e)}))})),{open:function(e,n){return i((function(){return t().open(e,n,r)}))},openUrl:function(e){return i((function(){return t().openUrl(e,r)}))},alert:function(e,r,i){var o=t();o.alert(e,n(i||o,r))},confirm:function(e,r,i){var o=t();o.confirm(e,n(i||o,r))},close:function(){ye.from(o[o.length-1]).each((function(e){t().close(e),r(e)}))}}}function Qv(e,t){e.notificationManager.open({type:"error",text:t})}function eb(e,t){e._skinLoaded?Qv(e,t):e.on("SkinLoaded",(function(){Qv(e,t)}))}function tb(e,t,n){Cf(e,t,{message:n}),console.error(n)}function nb(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t}function rb(e,t,n){tb(e,"PluginLoadError",nb("plugin",t,n))}function ib(e){var t,n;e.contentCSS=e.contentCSS.concat(Oy(e,(n=(t=e).getParam("content_css"),y(n)?$(n.split(","),Qe):_(n)?n:!1===n||t.inline?[]:["default"])),Oy(e,Rl(e)))}function ob(){function e(e,t){return{status:e,resultUri:t}}function t(e){return e in n}var n={};return{hasBlobUri:t,getResultUri:function(e){var t=n[e];return t?t.resultUri:null},isPending:function(e){return!!t(e)&&1===n[e].status},isUploaded:function(e){return!!t(e)&&2===n[e].status},markPending:function(t){n[t]=e(1,null)},markUploaded:function(t,r){n[t]=e(2,r)},removeFailed:function(e){delete n[e]},destroy:function(){n={}}}}function ab(e){return e+Ty+++"s"+(new Date).getTime().toString(36)+t()+t()+t();function t(){return Math.round(4294967295*Math.random()).toString(36)}}function sb(){function e(e){return G(r,e).getOrUndefined()}function t(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var t=e.id||ab("blobid"),n=e.name||t,r=e.blob;return{id:h(t),name:h(n),filename:h(e.filename||n+"."+({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"}[r.type.toLowerCase()]||"dat")),blob:h(r),base64:h(e.base64),blobUri:h(e.blobUri||URL.createObjectURL(r)),uri:h(e.uri)}}function n(t){return e((function(e){return e.id()===t}))}var r=[];return{create:function(e,n,r,i,o){if(y(e))return t({id:e,name:i,filename:o,blob:n,base64:r});if(w(e))return t(e);throw new Error("Unknown input type")},add:function(e){n(e.id())||r.push(e)},get:n,getByUri:function(t){return e((function(e){return e.blobUri()===t}))},getByData:function(t,n){return e((function(e){return e.base64()===t&&e.blob().type===n}))},findFirst:e,removeByUri:function(e){r=H(r,(function(t){return t.blobUri()!==e||void URL.revokeObjectURL(t.blobUri())}))},destroy:function(){V(r,(function(e){URL.revokeObjectURL(e.blobUri())})),r=[]}}}function lb(e,t){function n(e,n,r,i){var o=new XMLHttpRequest;o.open("POST",t.url),o.withCredentials=t.credentials,o.upload.onprogress=function(e){i(e.loaded/e.total*100)},o.onerror=function(){r("Image upload failed due to a XHR Transport error. Code: "+o.status)},o.onload=function(){var e,i,a;o.status<200||300<=o.status?r("HTTP Error: "+o.status):(e=JSON.parse(o.responseText))&&"string"==typeof e.location?n((i=t.basePath,a=e.location,i?i.replace(/\/$/,"")+"/"+a.replace(/^\//,""):a)):r("Invalid JSON: "+o.responseText)};var a=new FormData;a.append("file",e.blob(),e.filename()),o.send(a)}function r(e,t){return{url:t,blobInfo:e,status:!0}}function i(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}}function o(e,t){Dt.each(a[e],(function(e){e(t)})),delete a[e]}var a={};return!1===k(t.handler)&&(t.handler=n),{upload:function(s,l){return t.url||t.handler!==n?(u=s,c=l,u=Dt.grep(s,(function(t){return!e.isUploaded(t.blobUri())})),Er.all(Dt.map(u,(function(n){return e.isPending(n.blobUri())?(f=n.blobUri(),new Er((function(e){a[f]=a[f]||[],a[f].push(e)}))):(s=n,l=t.handler,u=c,e.markPending(s.blobUri()),new Er((function(t){var a;try{var c=function(){a&&a.close()};l(s,(function(n){c(),e.markUploaded(s.blobUri(),n),o(s.blobUri(),r(s,n)),t(r(s,n))}),(function(n,r){var a=r||{};c(),e.removeFailed(s.blobUri()),o(s.blobUri(),i(s,n,a)),t(i(s,n,a))}),(function(e){e<0||100<e||ye.from(a).orThunk((function(){return ye.from(u).map(E)})).each((function(t){(a=t).progressBar.value(e)}))}))}catch(n){t(i(s,n.message,{}))}})));var s,l,u,f})))):new Er((function(e){e([])}));var u,c}}}function ub(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}}function cb(e,t){return lb(t,{url:e.getParam("images_upload_url","","string"),basePath:e.getParam("images_upload_base_path","","string"),credentials:e.getParam("images_upload_credentials",!1,"boolean"),handler:e.getParam("images_upload_handler",null,"function")})}function fb(e){function t(t){return function(n){return e.selection?t(n):[]}}function n(e,t,n){for(var r=0;-1!==(r=e.indexOf(t,r))&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1),-1!==r;);return e}function r(e,t,r){return e=n(e,'src="'+t+'"','src="'+r+'"'+(r===xt.transparentSrc?' data-mce-placeholder="1"':"")),n(e,'data-mce-src="'+t+'"','data-mce-src="'+r+'"')}function i(t,n){V(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=$(e.fragments,(function(e){return r(e,t,n)})):e.content=r(e.content,t,n)}))}function o(n){return u=u||cb(e,p),v().then(t((function(r){var o=$(r,(function(e){return e.blobInfo}));return u.upload(o,ub(e)).then(t((function(t){var o=[],a=$(t,(function(t,n){var a,s,l,u,c=r[n].blobInfo,f=r[n].image;return t.status&&e.getParam("images_replace_blob_uris",!0,"boolean")?(h.removeByUri(f.src),bg(e)||(s=f,l=t.url,u=e.convertURL(l,"src"),i(s.src,l),e.$(s).attr({src:e.getParam("images_reuse_filename",!1,"boolean")?l+(-1===l.indexOf("?")?"?":"&")+(new Date).getTime():l,"data-mce-src":u}))):t.error&&(t.error.options.remove&&(i(f.getAttribute("src"),xt.transparentSrc),o.push(f)),a=t.error.message,eb(e,ds.translate(["Failed to upload image: {0}",a]))),{element:f,status:t.status,uploadUri:t.url,blobInfo:c}}));return 0<a.length&&g.fireIfChanged(),0<o.length&&(bg(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact((function(){V(o,(function(t){e.dom.remove(t),h.removeByUri(t.src)}))}))),n&&n(a),a})))})))}function a(t){if(Il(e))return o(t)}function s(t){return!1!==X(m,(function(e){return e(t)}))&&(0!==t.getAttribute("src").indexOf("data:")||e.getParam("images_dataimg_filter",P,"function")(t))}function l(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var r=p.getResultUri(n);if(r)return'src="'+r+'"';var i=(i=h.getByUri(n))||W(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null);return i?'src="data:'+i.blob().type+";base64,"+i.base64()+'"':t}))}var u,c,f,d,h=sb(),p=ob(),m=[],g=(d=ls(null),(f=e).on("change AddUndo",(function(e){d.set(Ee({},e.level))})),{fireIfChanged:function(){var e=f.undoManager.data;ne(e).filter((function(e){return!hg(d.get(),e)})).each((function(t){f.setDirty(!0),f.fire("change",{level:t,lastLevel:ee(e,e.length-2).getOrNull()})}))}}),v=function(){return(c=c||qg(p,h)).findAll(e.getBody(),s).then(t((function(t){return t=H(t,(function(t){return"string"!=typeof t||void eb(e,t)})),bg(e)||V(t,(function(e){i(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))};return e.on("SetContent",(function(){(Il(e)?a:v)()})),e.on("RawSaveContent",(function(e){e.content=l(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=l(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){V(e,(function(e){var t,n=e.attr("src");h.getByUri(n)||(t=p.getResultUri(n))&&e.attr("src",t)}))}))})),{blobCache:h,addFilter:function(e){m.push(e)},uploadImages:o,uploadImagesAuto:a,scanForImages:v,destroy:function(){h.destroy(),p.destroy(),c=u=null}}}function db(e,t){function n(e){i="string"==typeof e?{name:e,classes:[],attrs:{}}:e;var t,n=Iy.create(i.name),r=n;return(t=i).classes.length&&Iy.addClass(r,t.classes.join(" ")),Iy.setAttribs(r,t.attrs),n}var r,i,o,a=t&&t.schema||ai({}),s=function(e,t,r){var i,o,l,u,c,f,d,h=0<t.length&&t[0],p=h&&h.name,m=(u=p,c="string"!=typeof(l=e)?l.nodeName.toLowerCase():l,!(!(d=(f=a.getElementRule(c))&&f.parentsRequired)||!d.length)&&(u&&-1!==Dt.inArray(d,u)?u:d[0]));if(m)p===m?(o=t[0],t=t.slice(1)):o=m;else if(h)o=t[0],t=t.slice(1);else if(!r)return e;return o&&(i=n(o)).appendChild(e),r&&(i||(i=Iy.create("div")).appendChild(e),Dt.each(r,(function(t){var r=n(t);i.insertBefore(r,e)}))),s(i,t,o&&o.siblings)};return e&&e.length?(r=n(i=e[0]),(o=Iy.create("div")).appendChild(s(r,e.slice(1),i.siblings)),o):""}function hb(e){var t,n={classes:[],attrs:{}};return"*"!==(e=n.selector=Dt.trim(e))&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,i,o){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==Dt.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r)}var a;return"["!==i||(a=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/))&&(n.attrs[a[1]]=a[2]),""}))),n.name=t||"div",n}function pb(e,t){var n,r,i="",o=(r=e.getParam("preview_styles","font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"),y(r)?r:"");if(""===o)return"";function a(e){return e.replace(/%(\w+)/g,"")}if("string"==typeof t){if(!(t=e.formatter.get(t)))return;t=t[0]}if("preview"in t){var s=ue(t,"preview");if(hn(s,!1))return"";o=s.getOr(o)}var l,u=t.block||t.inline||"span",c=(l=t.selector)&&"string"==typeof l?(l=(l=l.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),Dt.map(l.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=Dt.map(e.split(/(?:~\+|~|\+)/),hb),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[],f=c.length?(c[0].name||(c[0].name=u),u=t.selector,db(c,e)):db([u],e),d=Iy.select(u,f)[0]||f.firstChild;return Ey(t.styles,(function(e,t){var n=a(e);n&&Iy.setStyle(d,t,n)})),Ey(t.attributes,(function(e,t){var n=a(e);n&&Iy.setAttrib(d,t,n)})),Ey(t.classes,(function(e){var t=a(e);Iy.hasClass(d,t)||Iy.addClass(d,t)})),e.fire("PreviewFormats"),Iy.setStyles(f,{position:"absolute",left:-65535}),e.getBody().appendChild(f),n=Iy.getStyle(e.getBody(),"fontSize",!0),n=/px$/.test(n)?parseInt(n,10):0,Ey(o.split(" "),(function(t){var r=Iy.getStyle(d,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(r)&&(r=Iy.getStyle(e.getBody(),t,!0),"#ffffff"===Iy.toHex(r).toLowerCase())||"color"===t&&"#000000"===Iy.toHex(r).toLowerCase())){if("font-size"===t&&/em|%$/.test(r)){if(0===n)return;r=parseFloat(r)/(/%$/.test(r)?100:1)*n+"px"}"border"===t&&r&&(i+="padding:0 2px;"),i+=t+":"+r+";"}})),e.fire("AfterPreviewFormats"),Iy.remove(f),i}function mb(e){var t,n,r,i,o,a,s=(i={},(o=function(e,t){e&&(y(e)?(V(t=_(t)?t:[t],(function(e){S(e.deep)&&(e.deep=!gc(e)),S(e.split)&&(e.split=!gc(e)||vc(e)),S(e.remove)&&gc(e)&&!vc(e)&&(e.remove="none"),gc(e)&&vc(e)&&(e.mixed=!0,e.block_expand=!0),y(e.classes)&&(e.classes=e.classes.split(/\s+/))})),i[e]=t):ie(e,(function(e,t){o(t,e)})))})((n=(t=e).dom,r={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(e,t,n){return Hn(e)&&e.hasAttribute("href")},onformat:function(e,t,r){Dt.each(r,(function(t,r){n.setAttrib(e,r,t)}))}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(e){var t;return null!==(t=null==e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]},Dt.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),(function(e){r[e]={block:e,remove:"all"}})),r)),o(t.getParam("formats")),{get:function(e){return u(e)?i[e]:i},has:function(e){return Oe(i,e)},register:o,unregister:function(e){return e&&i[e]&&delete i[e],i}}),l=ls(null);return function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])}(e),(a=e).on("mouseup keydown",(function(e){var t=a,n=e.keyCode,r=t.selection,i=t.getBody();Hp(t,null,!1),8!==n&&46!==n||!r.isCollapsed()||r.getStart().innerHTML!==Cm||Hp(t,qu(i,r.getStart())),37!==n&&39!==n||Hp(t,qu(i,r.getStart()))})),{get:s.get,has:s.has,register:s.register,unregister:s.unregister,apply:function(t,n,r){var i=t,o=n,a=r;_g(e).formatter.apply(i,o,a)},remove:function(t,n,r,i){var o=t,a=n,s=r,l=i;_g(e).formatter.remove(o,a,s,l)},toggle:function(t,n,r){var i=t,o=n,a=r;_g(e).formatter.toggle(i,o,a)},match:function(t,n,r,i){return o=t,a=n,s=r,l=i,_g(e).formatter.match(o,a,s,l);var o,a,s,l},closest:function(t){return n=t,_g(e).formatter.closest(n);var n},matchAll:function(t,n){return r=t,i=n,_g(e).formatter.matchAll(r,i);var r,i},matchNode:function(t,n,r,i){return o=t,a=n,s=r,l=i,_g(e).formatter.matchNode(o,a,s,l);var o,a,s,l},canApply:function(t){return n=t,_g(e).formatter.canApply(n);var n},formatChanged:function(t,n,r,i){return o=l,a=t,s=n,u=r,c=i,_g(e).formatter.formatChanged(o,a,s,u,c);var o,a,s,u,c},getCssText:O(pb,e)}}function gb(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return 1;default:return}}function vb(e){var t,n,r,i,o,a=ps(),s=ls(0),l=ls(0),u={data:[],typing:!1,beforeChange:function(){var t=s,n=a;_g(e).undoManager.beforeChange(t,n)},add:function(t,n){return r=u,i=l,o=s,c=a,f=t,d=n,_g(e).undoManager.add(r,i,o,c,f,d);var r,i,o,c,f,d},undo:function(){return t=u,n=s,r=l,_g(e).undoManager.undo(t,n,r);var t,n,r},redo:function(){return t=l,n=u.data,_g(e).undoManager.redo(t,n);var t,n},clear:function(){var t=u,n=l;_g(e).undoManager.clear(t,n)},reset:function(){var t=u;_g(e).undoManager.reset(t)},hasUndo:function(){return t=u,n=l,_g(e).undoManager.hasUndo(t,n);var t,n},hasRedo:function(){return t=u,n=l,_g(e).undoManager.hasRedo(t,n);var t,n},transact:function(t){return n=u,r=s,i=t,_g(e).undoManager.transact(n,r,i);var n,r,i},ignore:function(t){var n=s,r=t;_g(e).undoManager.ignore(n,r)},extra:function(t,n){var r=u,i=l,o=t,a=n;_g(e).undoManager.extra(r,i,o,a)}};return bg(e)||(r=u,i=s,o=ls(!1),(n=e).on("init",(function(){r.add()})),n.on("BeforeExecCommand",(function(e){gb(e.command)||(gg(r,i),r.beforeChange())})),n.on("ExecCommand",(function(e){gb(e.command)||c(e)})),n.on("ObjectResizeStart cut",(function(){r.beforeChange()})),n.on("SaveContent ObjectResized blur",c),n.on("dragend",c),n.on("keyup",(function(e){var t=e.keyCode;e.isDefaultPrevented()||((33<=t&&t<=36||37<=t&&t<=40||45===t||e.ctrlKey)&&(c(),n.nodeChanged()),46!==t&&8!==t||n.nodeChanged(),o.get()&&r.typing&&!1===hg(ug(n),r.data[0])&&(!1===n.isDirty()&&(n.setDirty(!0),n.fire("change",{level:r.data[0],lastLevel:null})),n.fire("TypingUndo"),o.set(!1),n.nodeChanged()))})),n.on("keydown",(function(e){var t,n=e.keyCode;e.isDefaultPrevented()||(33<=n&&n<=36||37<=n&&n<=40||45===n?r.typing&&c(e):(t=e.ctrlKey&&!e.altKey||e.metaKey,!(n<16||20<n)||224===n||91===n||r.typing||t||(r.beforeChange(),mg(r,!0,i),r.add({},e),o.set(!0))))})),n.on("mousedown",(function(e){r.typing&&c(e)})),n.on("input",(function(e){e.inputType&&("insertReplacementText"===e.inputType||"insertText"===e.inputType&&null===e.data||"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType)&&c(e)})),n.on("AddUndo Undo Redo ClearUndos",(function(e){e.isDefaultPrevented()||n.nodeChanged()}))),(t=e).addShortcut("meta+z","","Undo"),t.addShortcut("meta+y,meta+shift+z","","Redo"),u;function c(e){mg(r,!1,i),r.add({},e)}}function bb(e){return"keydown"===e.type||"keyup"===e.type}function yb(e){var t=e.keyCode;return t===Lf.BACKSPACE||t===Lf.DELETE}function wb(e,t){return ze(Ot.fromDom(t),e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string"))}function _b(e,t,n){var r,i,o=(r=e,i=t,H(ns.DOM.getParents(n.container(),"*",i),r));return ye.from(o[o.length-1])}function Cb(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?Lr(n)?Wn(n.nextSibling)?fl(n.nextSibling,0):fl.after(n):jr(t)?fl(n,r+1):t:Lr(n)?Wn(n.previousSibling)?fl(n.previousSibling,n.previousSibling.data.length):fl.before(n):zr(t)?fl(n,r-1):t}function xb(e){return gi(e)||bi(e)}function Sb(e,t){return We(e,t)?br(t,xb,(n=e,function(e){return Ue(n,Ot.fromDom(e.dom.parentNode))})):ye.none();var n}function kb(e){var t,n,r;e.dom.isEmpty(e.getBody())&&(e.setContent(""),r=(n=(t=e).getBody()).firstChild&&t.dom.isBlock(n.firstChild)?n.firstChild:n,t.selection.setCursorLocation(r,0))}function Db(e,t){return{from:e,to:t}}function Ob(e,t){return Sb(Ot.fromDom(e),Ot.fromDom(t.container())).map((function(e){return{block:e,position:t}}))}function Tb(e){var t,n=Y(t=Pn(e),mi).fold(h(t),(function(e){return t.slice(0,e)}));return V(n,Ln),n}function Eb(e,t){return G(_h(t,e).reverse(),(function(e){return Kr(e)})).each(Ln)}function Ib(e,t,n,r){if(Kr(n))return bh(n),af(n.dom);0===H(Bt(r),(function(e){return!Kr(e)})).length&&Kr(t)&&qt(r,Ot.fromTag("br"));var i=of(n.dom,fl.before(r.dom));return V(Tb(t),(function(e){qt(r,e)})),Eb(e,t),i}function Nb(e,t,n){if(Kr(n))return Ln(n),Kr(t)&&bh(t),af(t.dom);var r=sf(n.dom);return V(Tb(t),(function(e){Bn(n,e)})),Eb(e,t),r}function Ab(e,t){Uu(e,t.dom).map((function(e){return e.getNode()})).map(Ot.fromDom).filter(Fr).each(Ln)}function Pb(e,t,n){return Ab(!0,t),Ab(!1,n),(We(i=n,r=t)?(o=_h(r,i),ye.from(o[o.length-1])):ye.none()).fold(O(Nb,e,t,n),O(Ib,e,t,n));var r,i,o}function Mb(e,t,n,r){return t?Pb(e,r,n):Pb(e,n,r)}function Rb(e,t){var n,r,i,o,a,s,l,u=Ot.fromDom(e.getBody()),c=(n=u.dom,r=t,((i=e.selection.getRng()).collapsed?(a=r,s=Ob(o=n,fl.fromRangeStart(i)),l=s.bind((function(e){return tf(a,o,e.position).bind((function(e){return Ob(o,e).map((function(e){return t=o,n=a,Kn((r=e).position.getNode())&&!1===Kr(r.block)?Uu(!1,r.block.dom).bind((function(e){return e.isEqual(r.position)?tf(n,t,e).bind((function(e){return Ob(t,e)})):ye.some(r)})).getOr(r):r;var t,n,r}))}))})),pn(s,l,Db).filter((function(e){return!1===Ue(e.from.block,e.to.block)&&Mt((n=e).from.block).bind((function(e){return Mt(n.to.block).filter((function(t){return Ue(e,t)}))})).isSome()&&!1===Zn((t=e).from.block.dom)&&!1===Zn(t.to.block.dom);var t,n}))):ye.none()).bind((function(e){return Mb(u,t,e.from.block,e.to.block)})));return c.each((function(t){e.selection.setRng(t.toRange())})),c.isSome()}function Fb(e,t){var n=Ot.fromDom(t),r=O(Ue,e);return vr(n,wi,r).isSome()}function Bb(e){var t,n,r,i,o,a,s,l,u,c,f=Ot.fromDom(e.getBody()),d=e.selection.getRng();return a=d,u=of((o=f).dom,fl.fromRangeStart(a)).isNone(),c=rf(o.dom,fl.fromRangeEnd(a)).isNone(),!Fb(s=o,(l=a).startContainer)&&!Fb(s,l.endContainer)&&u&&c?((i=e).setContent(""),i.selection.setCursorLocation(),!0):(t=f,n=e.selection,r=n.getRng(),pn(Sb(t,Ot.fromDom(r.startContainer)),Sb(t,Ot.fromDom(r.endContainer)),(function(e,i){return!1===Ue(e,i)&&(r.deleteContents(),Mb(t,!0,e,i).each((function(e){n.setRng(e.toRange())})),!0)})).getOr(!1))}function Lb(e,t){return!e.selection.isCollapsed()&&Bb(e)}function $b(e,t,n,r,i){return ye.from(t._selectionOverrides.showCaret(e,n,r,i))}function Vb(e,t){var n,r;return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?ye.none():ye.some(((r=(n=t).ownerDocument.createRange()).selectNode(n),r))}function jb(e,t,n){var r=iu(1,e.getBody(),t),i=fl.fromRangeStart(r),o=i.getNode();if(Ou(o))return $b(1,e,o,!i.isAtEnd(),!1);var a=i.getNode(!0);if(Ou(a))return $b(1,e,a,!1,!1);var s=e.dom.getParent(i.getNode(),(function(e){return By(e)||Fy(e)}));return Ou(s)?$b(1,e,s,!1,n):ye.none()}function zb(e,t,n){return t.collapsed?jb(e,t,n).getOr(t):t}function Hb(e){return om(e)||tm(e)}function Ub(e){return am(e)||nm(e)}function Wb(e,t,n,r,i,o){var a,s;return $b(r,e,o.getNode(!i),i,!0).each((function(n){var r;t.collapsed?(r=t.cloneRange(),i?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()):t.deleteContents(),e.selection.setRng(n)})),a=e.dom,Wn(s=n)&&0===s.data.length&&a.remove(s),!0}function qb(e,t){var n=e.selection.getRng();if(!Wn(n.commonAncestorContainer))return!1;var r=t?cu.Forwards:cu.Backwards,i=$u(e.getBody()),o=O(lu,t?i.next:i.prev),a=t?Hb:Ub,s=au(r,e.getBody(),n),l=Cb(t,o(s));if(!l||!uu(s,l))return!1;if(a(l))return Wb(e,n,s.getNode(),r,t,l);var u=o(l);return!!(u&&a(u)&&uu(l,u))&&Wb(e,n,s.getNode(),r,t,u)}function Gb(e,t,n){return tf(t,e,n).bind((function(r){return f=r.getNode(),wi(Ot.fromDom(f))||bi(Ot.fromDom(f))||(s=e,c=r,ou(!(l=t),u=n).fold((function(){return ou(l,c).fold(A,d)}),d))?ye.none():t&&Zn(r.getNode())||!1===t&&Zn(r.getNode(!0))?(i=e,o=n,a=r.getNode(!1===t),Sb(Ot.fromDom(i),Ot.fromDom(o.getNode())).map((function(e){return Kr(e)?Ly.remove(e.dom):Ly.moveToElement(a)})).orThunk((function(){return ye.some(Ly.moveToElement(a))}))):t&&am(n)||!1===t&&om(n)?ye.some(Ly.moveToPosition(r)):ye.none();var i,o,a,s,l,u,c,f;function d(e){return Rr(Ot.fromDom(e))&&!eu(u,c,s)}}))}function Yb(e,t){return ye.from(wf(e.getBody(),t))}function Kb(e,t){var n=e.selection.getNode();return Yb(e,n).filter(Zn).fold((function(){return c=e.getBody(),d=iu((f=t)?1:-1,c,e.selection.getRng()),h=fl.fromRangeStart(d),p=Ot.fromDom(c),(!1===f&&am(h)?ye.some(Ly.remove(h.getNode(!0))):f&&om(h)?ye.some(Ly.remove(h.getNode())):!1===f&&om(h)&&Eh(p,h)?fm(p,h).map((function(e){return Ly.remove(e.getNode())})):f&&am(h)&&Th(p,h)?dm(p,h).map((function(e){return Ly.remove(e.getNode())})):(n=c,r=f,l=(i=h).getNode(!1===(s=r)),u=s?"after":"before",Hn(l)&&l.getAttribute("data-mce-caret")===u?(a=i.getNode(!1===(o=r)),(o&&Zn(a.nextSibling)?ye.some(Ly.moveToElement(a.nextSibling)):!1===o&&Zn(a.previousSibling)?ye.some(Ly.moveToElement(a.previousSibling)):ye.none()).fold((function(){return Gb(n,r,i)}),ye.some)):Gb(n,r,i).bind((function(e){return t=n,r=i,e.fold((function(e){return ye.some(Ly.remove(e))}),(function(e){return ye.some(Ly.moveToElement(e))}),(function(e){return eu(r,e,t)?ye.none():ye.some(Ly.moveToPosition(e))}));var t,r})))).exists((function(n){return n.fold((function(e){return a._selectionOverrides.hideFakeCaret(),ep(a,s,Ot.fromDom(e)),!0}),(o=s=t,function(e){var t=o?fl.before(e):fl.after(e);return i.selection.setRng(t.toRange()),!0}),(r=i=a=e,function(e){return r.selection.setRng(e.toRange()),!0}));var r,i,o,a,s}));var n,r,i,o,a,s,l,u,c,f,d,h,p}),P)}function Xb(e,t){var n=e.selection.getNode();return!(!Zn(n)||Qn(n))&&Yb(e,n.parentNode).filter(Zn).fold((function(){return V(_s(Ot.fromDom(e.getBody()),".mce-offscreen-selection"),Ln),ep(e,t,Ot.fromDom(e.selection.getNode())),kb(e),!0}),P)}function Jb(e){var t,n=e.dom,r=e.selection,i=wf(e.getBody(),r.getNode());return Jn(i)&&n.isBlock(i)&&n.isEmpty(i)&&(t=n.create("br",{"data-mce-bogus":"1"}),n.setHTML(i,""),i.appendChild(t),r.setRng(fl.before(t).toRange())),!0}function Zb(e,t){return(e.selection.isCollapsed()?Kb:Xb)(e,t)}function Qb(e,t){return!!e.selection.isCollapsed()&&(n=e,r=t,i=fl.fromRangeStart(n.selection.getRng()),tf(r,n.getBody(),i).filter((function(e){return(r?Qp:em)(e)})).bind((function(e){return ye.from(tu(r?0:-1,e))})).exists((function(e){return n.selection.select(e),!0})));var n,r,i}function ey(e){return $y(e)&&e.data[0]===Si}function ty(e){return $y(e)&&e.data[e.data.length-1]===Si}function ny(e){return e.ownerDocument.createTextNode(Si)}function ry(e,t){return(e?function(e){if($y(e.previousSibling))return ty(e.previousSibling)||e.previousSibling.appendData(Si),e.previousSibling;if($y(e))return ey(e)||e.insertData(0,Si),e;var t=ny(e);return e.parentNode.insertBefore(t,e),t}:function(e){if($y(e.nextSibling))return ey(e.nextSibling)||e.nextSibling.insertData(0,Si),e.nextSibling;if($y(e))return ty(e)||e.appendData(Si),e;var t=ny(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t})(t)}function iy(e,t){return Wn(e.container())?ry(t,e.container()):ry(t,e.getNode())}function oy(e,t){var n=t.get();return n&&e.container()===n&&Lr(n)}function ay(e,t){return t.fold((function(t){Cu(e.get());var n=Vy(t);return e.set(n),ye.some(fl(n,n.length-1))}),(function(t){return af(t).map((function(t){if(oy(t,e))return fl(e.get(),1);Cu(e.get());var n=iy(t,!0);return e.set(n),fl(n,1)}))}),(function(t){return sf(t).map((function(t){if(oy(t,e))return fl(e.get(),e.get().length-1);Cu(e.get());var n=iy(t,!1);return e.set(n),fl(n,n.length-1)}))}),(function(t){Cu(e.get());var n=jy(t);return e.set(n),ye.some(fl(n,1))}))}function sy(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return ye.none()}function ly(e,t){return Ql(t,e)||e}function uy(e,t,n){var r=My(n),i=ly(t,r.container());return _b(e,i,r).fold((function(){return rf(i,r).bind(O(_b,e,i)).map((function(e){return zy.before(e)}))}),ye.none)}function cy(e,t){return null===qu(e,t)}function fy(e,t,n){return _b(e,t,n).filter(O(cy,t))}function dy(e,t,n){var r=Ry(n);return fy(e,t,r).bind((function(e){return of(e,r).isNone()?ye.some(zy.start(e)):ye.none()}))}function hy(e,t,n){var r=My(n);return fy(e,t,r).bind((function(e){return rf(e,r).isNone()?ye.some(zy.end(e)):ye.none()}))}function py(e,t,n){var r=Ry(n),i=ly(t,r.container());return _b(e,i,r).fold((function(){return of(i,r).bind(O(_b,e,i)).map((function(e){return zy.after(e)}))}),ye.none)}function my(e){return!1===(t=Hy(e),"rtl"===ns.DOM.getStyle(t,"direction",!0)||(n=t.textContent,Py.test(n)));var t,n}function gy(e,t,n){return sy([uy,dy,hy,py],[e,t,n]).filter(my)}function vy(e){return e.fold(h("before"),h("start"),h("end"),h("after"))}function by(e){return e.fold(zy.before,zy.before,zy.after,zy.after)}function yy(e){return e.fold(zy.start,zy.start,zy.end,zy.end)}function wy(e,t,n,r,i,o){return pn(_b(t,n,r),_b(t,n,i),(function(t,r){return t!==r&&(a=r,s=Ql(t,i=n),l=Ql(a,i),s&&s===l)?zy.after(e?t:r):o;var i,a,s,l})).getOr(o)}function _y(e,t){return e.fold(P,(function(e){return r=t,!(vy(n=e)===vy(r)&&Hy(n)===Hy(r));var n,r}))}function Cy(e,t){return e?t.fold(f(ye.some,zy.start),ye.none,f(ye.some,zy.after),ye.none):t.fold(ye.none,f(ye.some,zy.before),ye.none,f(ye.some,zy.end))}function xy(e,t,n,r){var i=Cb(e,r),o=gy(t,n,i);return gy(t,n,i).bind(O(Cy,e)).orThunk((function(){return a=t,s=n,l=o,u=Cb(i=e,r),tf(i,s,u).map(O(Cb,i)).fold((function(){return l.map(by)}),(function(e){return gy(a,s,e).map(O(wy,i,a,s,u,e)).filter(O(_y,l))})).filter(my);var i,a,s,l,u}))}function Sy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error||r.log).apply(r,Ie([e],t,!1))}var ky,Dy,Oy=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r="content"+e.editorManager.suffix+".css",i=!0===e.inline;return $(t,(function(t){return/^[a-z0-9\-]+$/i.test(t)&&!i?n+"/"+t+"/"+r:e.documentBaseURI.toAbsolute(t)}))},Ty=0,Ey=Dt.each,Iy=ns.DOM,Ny=[9,27,Lf.HOME,Lf.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Lf.DOWN,Lf.UP,Lf.LEFT,Lf.RIGHT].concat(xt.browser.isFirefox()?[224]:[]),Ay="data-mce-placeholder",Py=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,My=O(Cb,!0),Ry=O(Cb,!1),Fy=Jn,By=Zn,Ly=sr([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),$y=Wn,Vy=O(ry,!0),jy=O(ry,!1),zy=sr([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),Hy=function(e){return e.fold(p,p,p,p)};function Uy(e,t,n){var r=e?1:-1;return t.setRng(fl(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0}function Wy(e,t){return e===cu.Backwards?J(t):t}function qy(e,t,n,r){for(var i,o,a,s,l=$u(n),u=r,c=[];u;){var f=(a=l,s=u,t===cu.Forwards?a.next(s):a.prev(s));if(!f)break;if(Kn(f.getNode(!1)))return t===cu.Forwards?{positions:Wy(t,c).concat([f]),breakType:ky.Br,breakAt:ye.some(f)}:{positions:Wy(t,c),breakType:ky.Br,breakAt:ye.some(f)};if(f.isVisible()){if(e(u,f)){var d=(i=u,Kn((o=f).getNode(t===cu.Forwards))?ky.Br:!1===eu(i,o)?ky.Block:ky.Wrap);return{positions:Wy(t,c),breakType:d,breakAt:ye.some(f)}}c.push(f),u=f}else u=f}return{positions:Wy(t,c),breakType:ky.Eol,breakAt:ye.none()}}function Gy(e,t,n,r){return t(n,r).breakAt.map((function(r){var i=t(n,r).positions;return e===cu.Backwards?i.concat(r):[r].concat(i)})).getOr([])}function Yy(e,t){return W(e,(function(e,n){return e.fold((function(){return ye.some(n)}),(function(r){return pn(te(r.getClientRects()),te(n.getClientRects()),(function(e,i){var o=Math.abs(t-e.left);return Math.abs(t-i.left)<=o?n:r})).or(e)}))}),ye.none())}function Ky(e,t){return te(t.getClientRects()).bind((function(t){return Yy(e,t.left)}))}function Xy(e){function t(t){return $(t,(function(t){var n=Ns(t);return n.node=e,n}))}if(Hn(e))return t(e.getClientRects());if(Wn(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}}function Jy(e){return K(e,Xy)}O(xy,!1),O(xy,!0),(Dy=ky={})[Dy.Br=0]="Br",Dy[Dy.Block=1]="Block",Dy[Dy.Wrap=2]="Wrap",Dy[Dy.Eol=3]="Eol";var Zy,Qy,ew=O(qy,fl.isAbove,-1),tw=O(qy,fl.isBelow,1),nw=O(Gy,-1,ew),rw=O(Gy,1,tw);function iw(e,t,n,r,i,o){function a(r){var o=Jy([r]);-1===e&&(o=o.reverse());for(var a=0;a<o.length;a++){var c=o[a];if(!n(c,u)){if(0<l.length&&t(c,ve(l))&&s++,c.line=s,i(c))return!0;l.push(c)}}}var s=0,l=[],u=ve(o.getClientRects());if(!u)return l;var c=o.getNode();return a(c),function(e,t,n,r){for(;r=Zl(r,e,qr,t);)if(n(r))return}(e,r,a,c),l}function ow(e){return function(t){return t.line>e}}function aw(e){return function(t){return t.line===e}}function sw(e,t){return Math.abs(e.left-t)}function lw(e,t){return Math.abs(e.right-t)}function uw(e,t){return e>=t.left&&e<=t.right}function cw(e,t){return e>=t.top&&e<=t.bottom}function fw(e,t,n){return void 0===n&&(n=P),me(e,(function(e,r){if(uw(t,r))return n(r)?r:e;if(uw(t,e))return n(e)?e:r;var i=Math.min(sw(e,t),lw(e,t)),o=Math.min(sw(r,t),lw(r,t));return o===i&&ce(r,"node")&&tC(r.node)||o<i?r:e}))}function dw(e,t,n,r,i){var o=nC(r,e,qr,t,!i);do{if(!o||n(o))return}while(o=nC(o,e,qr,t))}function hw(e,t,n){function r(e){return!fn(e.node)&&!er(e.node)}var i,o,a,s=Jy(H(xe(e.getElementsByTagName("*")),Xl)),l=H(s,O(cw,n));return(a=fw(l,t,r))&&(a=fw(function(e,t,n){function r(e,n){var r=H(Jy([n]),(function(n){return!e(n,t)}));return i=i.concat(r),0===r.length}void 0===n&&(n=!0);var i=[];return i.push(t),dw(Zy.Up,e,O(r,Ms),t.node,n),dw(Zy.Down,e,O(r,Rs),t.node,n),i}(e,a,r(a)),t,r))&&Xl(a.node)?{node:(i=a).node,before:sw(i,o=t)<lw(i,o)}:null}function pw(e,t){e.selection.setRng(t),id(e,e.selection.getRng())}function mw(e,t,n){return ye.some(zb(e,t,n))}function gw(e,t,n,r,i,o){var a=t===cu.Forwards,s=$u(e.getBody()),l=O(lu,a?s.next:s.prev),u=a?r:i;if(!n.collapsed){var c=Bs(n);if(o(c))return $b(t,e,c,t===cu.Backwards,!1)}var f=au(t,e.getBody(),n);if(u(f))return Vb(e,f.getNode(!a));var d=Cb(a,l(f)),h=Ur(n);if(!d)return h?ye.some(n):ye.none();if(u(d))return $b(t,e,d.getNode(!a),a,!1);var p=l(d);return p&&u(p)&&uu(d,p)?$b(t,e,p.getNode(!a),a,!1):h?mw(e,d.toRange(),!1):ye.none()}function vw(e,t,n,r,i,o){var a=au(t,e.getBody(),n),s=ve(a.getClientRects()),l=t===Zy.Down;if(!s)return ye.none();var u,c=H((l?eC:Q_)(e.getBody(),ow(1),a),aw(1)),f=s.left,d=fw(c,f);if(d&&o(d.node)){var h=Math.abs(f-d.left),p=Math.abs(f-d.right);return $b(t,e,d.node,h<p,!1)}if(u=r(a)?a.getNode():i(a)?a.getNode(!0):Bs(n)){var m=function(e,t,n,r){function i(e){return ve(e.getClientRects())}var o,a,s,l=$u(t),u=[],c=0,f=1===e?(o=l.next,a=Rs,s=Ms,fl.after(r)):(o=l.prev,a=Ms,s=Rs,fl.before(r)),d=i(f);do{if(f.isVisible()){var h=i(f);if(!s(h,d)){0<u.length&&a(h,ve(u))&&c++;var p=Ns(h);if(p.position=f,p.line=c,n(p))return u;u.push(p)}}}while(f=o(f));return u}(t,e.getBody(),ow(1),u),g=fw(H(m,aw(1)),f);if(g)return mw(e,g.position.toRange(),!1);if(g=ve(H(m,aw(0))))return mw(e,g.position.toRange(),!1)}return 0===c.length?rC(e,l).filter(l?i:r).map((function(t){return zb(e,t.toRange(),!1)})):ye.none()}function bw(e,t,n){return rC(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))}function yw(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)}function ww(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")}function _w(e,t,n){return ay(t,n).map((function(t){return yw(e,t),n}))}function Cw(e,t,n){return!!$l(e)&&(i=t,o=n,a=(r=e).getBody(),s=fl.fromRangeStart(r.selection.getRng()),xy(o,O(wb,r),a,s).bind((function(e){return _w(r,i,e)})).isSome());var r,i,o,a,s}function xw(e,t,n){return!!$l(t)&&(r=e,o=(i=t).selection.getRng(),a=r?fl.fromRangeEnd(o):fl.fromRangeStart(o),!!k(i.selection.getSel().modify)&&(r&&jr(a)?Uy(!0,i.selection,a):!(r||!zr(a))&&Uy(!1,i.selection,a)));var r,i,o,a}function Sw(e){var t=ls(null),n=O(wb,e);return e.on("NodeChange",(function(r){var i,o,a,s,l,u,c,f,d,h,p,m,g;!$l(e)||xt.browser.isIE()&&r.initial||(l=n,u=e.dom,c=r.parents,V(Z(f=H($(_s(Ot.fromDom(u.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),l),d=H(c,l)),O(ww,!1)),V(Z(d,f),O(ww,!0)),p=t,(h=e).selection.isCollapsed()&&!0!==h.composing&&p.get()&&(m=fl.fromRangeStart(h.selection.getRng()),fl.isTextPosition(m)&&!1===(jr(g=m)||zr(g))&&(yw(h,ql(p.get(),m)),p.set(null))),i=n,o=e,a=t,s=r.parents,o.selection.isCollapsed()&&V(H(s,i),(function(e){var t=fl.fromRangeStart(o.selection.getRng());gy(i,o.getBody(),t).bind((function(e){return _w(o,a,e)}))})))})),t}function kw(e,t,n){if($l(e)){var r=rC(e,t).getOrThunk((function(){var n=e.selection.getRng();return t?fl.fromRangeEnd(n):fl.fromRangeStart(n)}));return gy(O(wb,e),e.getBody(),r).exists((function(t){var r=by(t);return ay(n,r).exists((function(t){return yw(e,t),!0}))}))}return!1}function Dw(e,t){return function(n){return ay(t,n).exists((function(t){return yw(e,t),!0}))}}function Ow(e,t,n,r){var i=e.getBody(),o=O(wb,e);e.undoManager.ignore((function(){var a,s,l;e.selection.setRng((a=n,s=r,(l=document.createRange()).setStart(a.container(),a.offset()),l.setEnd(s.container(),s.offset()),l)),e.execCommand("Delete"),gy(o,i,fl.fromRangeStart(e.selection.getRng())).map(yy).map(Dw(e,t))})),e.nodeChanged()}function Tw(e,t,n){if(e.selection.isCollapsed()&&$l(e)){var r=fl.fromRangeStart(e.selection.getRng());return o=t,a=n,s=r,l=(i=e).getBody(),u=Ql(s.container(),l)||l,c=O(wb,i),(f=gy(c,u,s)).bind((function(e){return a?e.fold(h(ye.some(yy(e))),ye.none,h(ye.some(by(e))),ye.none):e.fold(ye.none,h(ye.some(by(e))),ye.none,h(ye.some(yy(e))))})).map(Dw(i,o)).getOrThunk((function(){var e=Hu(a,u,s),t=e.bind((function(e){return gy(c,u,e)}));return pn(f,t,(function(){return _b(c,u,s).exists((function(e){return!!pn(af(t=e),sf(t),(function(e,n){var r=Cb(!0,e),i=Cb(!1,n);return rf(t,r).forall((function(e){return e.isEqual(i)}))})).getOr(!0)&&(ep(i,a,Ot.fromDom(e)),!0);var t}))})).orThunk((function(){return t.bind((function(t){return e.map((function(e){return a?Ow(i,o,s,e):Ow(i,o,e,s),!0}))}))})).getOr(!1)}))}var i,o,a,s,l,u,c,f;return!1}function Ew(e){return 1===zt(e)}function Iw(e,t){var n,r=Ot.fromDom(e.getBody()),i=Ot.fromDom(e.selection.getStart()),o=H(Y(n=_h(i,r),mi).fold(h(n),(function(e){return n.slice(0,e)})),Ew);return ne(o).exists((function(n){var r,i,a,s,l,u,c,f,d,h=fl.fromRangeStart(e.selection.getRng()),p=t,m=h,g=n.dom;return!(!pn(af(g),sf(g),(function(e,t){var n=Cb(!0,e),r=Cb(!1,t),i=Cb(!1,m);return p?rf(g,i).exists((function(e){return e.isEqual(r)&&m.isEqual(n)})):of(g,i).exists((function(e){return e.isEqual(n)&&m.isEqual(r)}))})).getOr(!0)||Wu((r=n).dom)&&$p(r.dom)||(i=t,s=n,0===(d=$(H(o,O(Yp,a=e)),(function(e){return e.dom}))).length?ep(a,i,s):(u=s.dom,f=Wp(d,(c=jp(!1)).dom),qt(Ot.fromDom(u),c),Ln(Ot.fromDom(u)),l=fl(f,0),a.selection.setRng(l.toRange())),0))}))}function Nw(e,t){return!!e.selection.isCollapsed()&&Iw(e,t)}function Aw(e,t,n){return e._selectionOverrides.hideFakeCaret(),ep(e,t,Ot.fromDom(n)),!0}function Pw(e,t){return e.selection.isCollapsed()?(o=e,s=(a=t)?tm:nm,l=a?cu.Forwards:cu.Backwards,u=au(l,o.getBody(),o.selection.getRng()),s(u)?Aw(o,a,u.getNode(!a)):ye.from(Cb(a,u)).filter((function(e){return s(e)&&uu(u,e)})).exists((function(e){return Aw(o,a,e.getNode(!a))}))):(r=t,i=(n=e).selection.getNode(),!!er(i)&&Aw(n,r,i));var n,r,i,o,a,s,l,u}function Mw(e){var t=parseInt(e,10);return isNaN(t)?0:t}function Rw(e,t){return(e||"table"===Tt(t)?"margin":"padding")+("rtl"===Sn(t,"direction")?"-right":"-left")}function Fw(e){var t,n=aC(e);return!e.mode.isReadOnly()&&(1<n.length||(t=e,X(n,(function(e){var n=kn(e,Rw(Ml(t),e)).map(Mw).getOr(0);return"false"!==t.dom.getContentEditable(e.dom)&&0<n}))))}function Bw(e){return vi(e)||bi(e)}function Lw(e,t){var n=e.dom,r=e.selection,i=e.formatter,o=e.getParam("indentation","40px","string"),a=/[a-z%]+$/i.exec(o)[0],s=parseInt(o,10),l=Ml(e),u=Tl(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==u||n.getParent(r.getNode(),n.isBlock)||i.apply("div"),V(aC(e),(function(e){var r,i=n,o=t,u=s,c=a,f=e.dom,d=Rw(l,Ot.fromDom(f));"outdent"===o?(r=Math.max(0,Mw(f.style[d])-u),i.setStyle(f,d,r?r+c:"")):(r=Mw(f.style[d])+u+c,i.setStyle(f,d,r))}))}function $w(e,t){if(e.selection.isCollapsed()&&Fw(e)){var n=e.dom,r=e.selection.getRng(),i=fl.fromRangeStart(r),o=n.getParent(r.startContainer,n.isBlock);if(null!==o&&sm(Ot.fromDom(o),i))return Lw(e,"outdent"),!0}return!1}function Vw(e,t){e.getDoc().execCommand(t,!1,null)}function jw(e){return void 0===e.touches||1!==e.touches.length?ye.none():ye.some(e.touches[0])}function zw(e,t){return Oe(e,t.nodeName)}function Hw(e){var t,n,r,i=e.dom,o=e.selection,a=e.schema,s=a.getBlockElements(),l=o.getStart(),u=e.getBody(),c=Tl(e);if(l&&Hn(l)&&c){var f=u.nodeName.toLowerCase();if(a.isValidChild(f,c.toLowerCase())&&(d=s,h=u,p=l,!L(wh(Ot.fromDom(p),Ot.fromDom(h)),(function(e){return zw(d,e.dom)})))){var d,h,p,m,g,v=o.getRng(),b=v.startContainer,y=v.startOffset,w=v.endContainer,_=v.endOffset,C=Cd(e);for(l=u.firstChild;l;)m=s,Wn(g=l)||Hn(g)&&!zw(m,g)&&!ec(g)?function(e,t){if(Wn(t)){if(0===t.nodeValue.length)return 1;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||zw(e,t.nextSibling)))return 1}}(s,l)?(l=(n=l).nextSibling,i.remove(n)):(t||(t=i.create(c,El(e)),l.parentNode.insertBefore(t,l),r=!0),l=(n=l).nextSibling,t.appendChild(n)):(t=null,l=l.nextSibling);r&&C&&(v.setStart(b,y),v.setEnd(w,_),o.setRng(v),e.nodeChanged())}}}function Uw(e,t){t.hasAttribute("data-mce-caret")&&(Hr(t),e.selection.setRng(e.selection.getRng()),e.selection.scrollIntoView(t))}function Ww(e,t){var n=wr(Ot.fromDom(e.getBody()),"*[data-mce-caret]").map((function(e){return e.dom})).getOrNull();if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void Uw(e,n)):void(Vr(n)&&(Uw(e,n),e.undoManager.add()))}function qw(e,t,n){var r,i,o,a=$u(e.getBody()),s=O(lu,1===t?a.next:a.prev);!n.collapsed||""===Tl(e)||(r=e.dom.getParent(n.startContainer,"PRE"))&&(s(fl.fromRangeStart(n))||(o=e.dom.create(Tl(e)),(!xt.ie||11<=xt.ie)&&(o.innerHTML='<br data-mce-bogus="1">'),i=o,1===t?e.$(r).after(i):e.$(r).before(i),e.selection.select(i,!0),e.selection.collapse()))}function Gw(e,t){return n=e,r=t?cu.Forwards:cu.Backwards,i=n.selection.getRng(),gw(n,r,i,om,am,sC).orThunk((function(){return qw(n,r,i),ye.none()})).exists((function(t){return pw(e,t),!0}));var n,r,i}function Yw(e,t){return r=t?1:-1,i=(n=e).selection.getRng(),vw(n,r,i,(function(e){return om(e)||rm(e)}),(function(e){return am(e)||im(e)}),sC).orThunk((function(){return qw(n,r,i),ye.none()})).exists((function(t){return pw(e,t),!0}));var n,r,i}function Kw(e,t){return bw(e,t,t?am:om)}function Xw(e){return B(["figcaption"],Tt(e))}function Jw(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t}function Zw(e,t,n){(n?Bn:Yt)(e,t)}function Qw(e,t){var n=Ot.fromDom(e.getBody()),r=fl.fromRangeStart(e.selection.getRng()),i=Tl(e),o=El(e),a=r,s=O(Ue,n);return br(Ot.fromDom(a.container()),mi,s).filter(Xw).exists((function(){if(b=n,y=r,t?(_=b.dom,tw(_,y).breakAt.isNone()):(w=b.dom,ew(w,y).breakAt.isNone())){var a=(s=n,u=o,c=t,""===(l=i)?(g=c,Zw(s,v=Ot.fromTag("br"),g),Jw(v)):(f=s,d=c,h=u,p=Ot.fromTag(l),m=Ot.fromTag("br"),bn(p,h),Bn(p,m),Zw(f,p,d),Jw(m)));return e.selection.setRng(a),!0}var s,l,u,c,f,d,h,p,m,g,v,b,y,w,_;return!1}))}function e_(e,t){return!!e.selection.isCollapsed()&&Qw(e,t)}function t_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}}function n_(e,t){return G((n=t,K($(e,(function(e){return Ee({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:c},e)})),(function(e){return n.keyCode===e.keyCode&&n.shiftKey===e.shiftKey&&n.altKey===e.altKey&&n.ctrlKey===e.ctrlKey&&n.metaKey===e.metaKey?[e]:[]}))),(function(e){return e.action()}));var n}function r_(e,t){var n=t?cu.Forwards:cu.Backwards,r=e.selection.getRng();return gw(e,n,r,tm,nm,er).exists((function(t){return pw(e,t),!0}))}function i_(e,t){var n=t?1:-1,r=e.selection.getRng();return vw(e,n,r,tm,nm,er).exists((function(t){return pw(e,t),!0}))}function o_(e,t){return bw(e,t,t?nm:tm)}function a_(e,t,n,r,i){var o,a=_s(Ot.fromDom(n),"td,th,caption").map((function(e){return e.dom})),s=H((o=e,K(a,(function(e){var t,n={left:(t=Ns(e.getBoundingClientRect())).left- -1,top:t.top- -1,right:t.right+-2,bottom:t.bottom+-2,width:t.width+-1,height:t.height+-1};return[{x:n.left,y:o(n),cell:e},{x:n.right,y:o(n),cell:e}]}))),(function(e){return t(e,i)})),l=r,u=i;return W(s,(function(e,t){return e.fold((function(){return ye.some(t)}),(function(e){var n=Math.sqrt(Math.abs(e.x-l)+Math.abs(e.y-u)),r=Math.sqrt(Math.abs(t.x-l)+Math.abs(t.y-u));return ye.some(r<n?t:e)}))}),ye.none()).map((function(e){return e.cell}))}function s_(e,t,n){var r,i,o=e(t,n);return o.breakType===ky.Wrap&&0===o.positions.length||!Kn(n.getNode())&&o.breakType===ky.Br&&1===o.positions.length?(r=e,i=t,!o.breakAt.exists((function(e){return r(i,e).breakAt.isSome()}))):o.breakAt.isNone()}function l_(e,t,n,r){var i,o,a,s=e.selection.getRng(),l=t?1:-1;return!(!Kl()||(i=t,o=n,a=fl.fromRangeStart(s),!Uu(!i,o).exists((function(e){return e.isEqual(a)})))||($b(l,e,n,!t,!1).each((function(t){pw(e,t)})),0))}function u_(e,t,n){var r,i,o=(r=!!t,i=n.getNode(r),Hn(i)&&"TABLE"===i.nodeName?ye.some(i):ye.none()),a=!1===t;o.fold((function(){return pw(e,n.toRange())}),(function(r){return Uu(a,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return pw(e,n.toRange())}),(function(i){var o,a,s=t,l=r,u=n;(a=Tl(o=e))?o.undoManager.transact((function(){var e=Ot.fromTag(a);bn(e,El(o)),Bn(e,Ot.fromTag("br")),(s?Gt:qt)(Ot.fromDom(l),e);var t=o.dom.createRng();t.setStart(e.dom,0),t.setEnd(e.dom,0),pw(o,t)})):pw(o,u.toRange())}))}))}function c_(e,t,n,r){var i,o,a,s,l,u,c,f,d,h,p=e.selection.getRng(),m=fl.fromRangeStart(p),g=e.getBody();if(t||!cC(r,m))return!(!t||!fC(r,m))&&(i=g,d=o=n,u_(e,t,v=ne((h=a=m).getClientRects()).bind((function(e){return uC(d,e.left,e.top)})).bind((function(e){return Ky(af(t=e).map((function(e){return[e].concat(tw(t,e).positions)})).getOr([]),h);var t})).orThunk((function(){return te(a.getClientRects()).bind((function(e){return Yy(rw(i,fl.after(o)),e.left)}))})).getOr(fl.after(o))),!0);var v=(s=g,c=l=n,te((f=u=m).getClientRects()).bind((function(e){return lC(c,e.left,e.top)})).bind((function(e){return Ky(sf(t=e).map((function(e){return ew(t,e).positions.concat(e)})).getOr([]),f);var t})).orThunk((function(){return te(u.getClientRects()).bind((function(e){return Yy(nw(s,fl.before(l)),e.left)}))})).getOr(fl.before(l)));return u_(e,t,v),!0}function f_(e,t,n){return ye.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(r){return ye.from(e.dom.getParent(r,"table")).map((function(i){return n(e,t,i,r)}))})).getOr(!1)}function d_(e,t){return f_(e,t,l_)}function h_(e,t){return f_(e,t,c_)}function p_(e,t){var n,r,i=t,o=e.dom,a=e.schema.getMoveCaretBeforeOnEnterElements();if(t){!/^(LI|DT|DD)$/.test(t.nodeName)||(r=function(e){for(;e;){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}}(t.firstChild))&&/^(UL|OL|DL)$/.test(r.nodeName)&&t.insertBefore(o.doc.createTextNode(xi),t.firstChild);var s=o.createRng();if(t.normalize(),t.hasChildNodes()){for(var l=new Ar(t,t);n=l.current();){if(Wn(n)){s.setStart(n,0),s.setEnd(n,0);break}if(a[n.nodeName.toLowerCase()]){s.setStartBefore(n),s.setEndBefore(n);break}i=n,n=l.next()}n||(s.setStart(i,0),s.setEnd(i,0))}else Kn(t)?t.nextSibling&&o.isBlock(t.nextSibling)?(s.setStartBefore(t),s.setEndBefore(t)):(s.setStartAfter(t),s.setEndAfter(t)):(s.setStart(t,0),s.setEnd(t,0));e.selection.setRng(s),id(e,s)}}function m_(e){return ye.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))}function g_(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t}function v_(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)}function b_(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e}function y_(e,t,n){for(var r=e[n?"firstChild":"lastChild"];r&&!Hn(r);)r=r[n?"nextSibling":"previousSibling"];return r===t}function w_(e){e.innerHTML='<br data-mce-bogus="1">'}function __(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t}function C_(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)}function x_(e,t,n){return!1===Wn(t)?n:e?1===n&&t.data.charAt(n-1)===Si?0:n:n===t.data.length-1&&t.data.charAt(n)===Si?t.data.length:n}function S_(e,t){for(var n,r=e.getRoot(),i=t;i!==r&&"false"!==e.getContentEditable(i);)"true"===e.getContentEditable(i)&&(n=i),i=i.parentNode;return i!==r?n:r}function k_(e,t){var n=Tl(e);n&&n.toLowerCase()===t.tagName.toLowerCase()&&function(e,t,n){var r=e.dom;ye.from(n.style).map(r.parseStyle).each((function(e){var n=Dn(Ot.fromDom(t)),i=Ee(Ee({},n),e);r.setStyles(t,i)})),pn(ye.from(n.class).map((function(e){return e.split(/\s+/)})),ye.from(t.className).map((function(e){return H(e.split(/\s+/),(function(e){return""!==e}))})),(function(e,n){var i=H(n,(function(t){return!B(e,t)})),o=Ie(Ie([],e,!0),i,!0);r.setAttrib(t,"class",o.join(" "))}));var i=["style","class"],o=le(n,(function(e,t){return!B(i,t)}));r.setAttribs(t,o)}(e,t,El(e))}function D_(e,t){function n(t){var n,r=h,i=c.getTextInlineElements(),o=t||"TABLE"===w||"HR"===w?u.create(t||m):b.cloneNode(!1),a=o;if(!1===e.getParam("keep_styles",!0))u.setAttrib(o,"style",null),u.setAttrib(o,"class",null);else for(;i[r.nodeName]&&(Wu(r)||ec(r)||(n=r.cloneNode(!1),u.setAttrib(n,"id",""),o.hasChildNodes()?n.appendChild(o.firstChild):a=n,o.appendChild(n))),(r=r.parentNode)&&r!==L;);return k_(e,o),w_(a),o}function r(e){var t,n,r=x_(e,h,p);if(!Wn(h)||!(e?0<r:r<h.nodeValue.length)){if(h.parentNode===b&&l&&!e)return 1;if(e&&Hn(h)&&h===b.firstChild)return 1;if(__(h,"TABLE")||__(h,"HR"))return l&&!e||!l&&e;var i=new Ar(h,b);for(Wn(h)&&(e&&0===r?i.prev():e||r!==h.nodeValue.length||i.next());t=i.current();){if(Hn(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),f[n]&&"br"!==n))return}else if(Wn(t)&&!Gr(t.nodeValue))return;e?i.prev():i.next()}return 1}}function i(){a=/^(H[1-6]|PRE|FIGURE)$/.test(w)&&"HGROUP"!==_?n(m):n(),e.getParam("end_container_on_empty_block",!1)&&C_(u,y)&&u.isEmpty(b)?a=u.split(y,b):u.insertAfter(a,b),p_(e,a)}var o,a,s,l,u=e.dom,c=e.schema,f=c.getNonEmptyElements(),d=e.selection.getRng();Mf(u,d).each((function(e){d.setStart(e.startContainer,e.startOffset),d.setEnd(e.endContainer,e.endOffset)}));var h=d.startContainer,p=d.startOffset,m=Tl(e),g=!(!t||!t.shiftKey),v=!(!t||!t.ctrlKey);Hn(h)&&h.hasChildNodes()&&(l=p>h.childNodes.length-1,h=h.childNodes[Math.min(p,h.childNodes.length-1)]||h,p=l&&Wn(h)?h.nodeValue.length:0);var b,y,w,_,C,x,S,k,D,O,T,E,I,N,A,P,M,R,F,B,L=S_(u,h);L&&((m&&!g||!m&&g)&&(h=function(e,t,n,r){var i,o,a,s,l,u,c=m||"P",f=e.dom,d=S_(f,n),h=f.getParent(n,f.isBlock);if(!h||!C_(f,h)){if(l=((h=h||d)===e.getBody()||(u=h)&&/^(TD|TH|CAPTION)$/.test(u.nodeName)?h:h.parentNode).nodeName.toLowerCase(),!h.hasChildNodes())return k_(e,i=f.create(c)),h.appendChild(i),t.setStart(i,0),t.setEnd(i,0),i;for(a=n;a.parentNode!==h;)a=a.parentNode;for(;a&&!f.isBlock(a);)a=(o=a).previousSibling;if(o&&e.schema.isValidChild(l,c.toLowerCase())){for(k_(e,i=f.create(c)),o.parentNode.insertBefore(i,o),a=o;a&&!f.isBlock(a);)s=a.nextSibling,i.appendChild(a),a=s;t.setStart(n,r),t.setEnd(n,r)}}return n}(e,d,h,p)),y=(b=u.getParent(h,u.isBlock))?u.getParent(b.parentNode,u.isBlock):null,w=b?b.nodeName.toUpperCase():"","LI"!==(_=y?y.nodeName.toUpperCase():"")||v||(y=(b=y).parentNode,w=_),/^(LI|DT|DD)$/.test(w)&&u.isEmpty(b)?(k=n,D=y,O=b,T=m,F=(S=e).dom,B=S.selection.getRng(),D!==S.getBody()&&(I=(T=v_(E=D)&&v_(E.parentNode)?"LI":T)?k(T):F.create("BR"),y_(D,O,!0)&&y_(D,O,!1)?g_(D,"LI")?(N=b_(D),F.insertAfter(I,N),(null===(R=(M=D).parentNode)||void 0===R?void 0:R.firstChild)===M?F.remove(N):F.remove(D)):F.replace(I,D):(y_(D,O,!0)?g_(D,"LI")?(F.insertAfter(I,b_(D)),I.appendChild(F.doc.createTextNode(" ")),I.appendChild(D)):D.parentNode.insertBefore(I,D):y_(D,O,!1)?F.insertAfter(I,b_(D)):(D=b_(D),(A=B.cloneRange()).setStartAfter(O),A.setEndAfter(D),P=A.extractContents(),"LI"===T&&P.firstChild&&"LI"===P.firstChild.nodeName?(I=P.firstChild,F.insertAfter(P,D)):(F.insertAfter(P,D),F.insertAfter(I,D))),F.remove(O)),p_(S,I))):m&&b===e.getBody()||(m=m||"P",Br(b)?(a=Hr(b),u.isEmpty(b)&&w_(b),k_(e,a),p_(e,a)):r()?i():r(!0)?(a=b.parentNode.insertBefore(n(),b),p_(e,__(b,"HR")?a:b)):((x=(C=d).cloneRange()).setStart(C.startContainer,x_(!0,C.startContainer,C.startOffset)),x.setEnd(C.endContainer,x_(!1,C.endContainer,C.endOffset)),(o=x.cloneRange()).setEndAfter(b),s=o.extractContents(),V(qs(Ot.fromDom(s),In),(function(e){var t=e.dom;t.nodeValue=Di(t.nodeValue)})),function(e){for(;Wn(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(s),a=s.firstChild,u.insertAfter(s,b),function(e,t){var n,r,i=a,o=[];if(i){for(;i=i.firstChild;){if(e.isBlock(i))return;Hn(i)&&!t[i.nodeName.toLowerCase()]&&o.push(i)}for(n=o.length;n--;)(!(i=o[n]).hasChildNodes()||i.firstChild===i.lastChild&&""===i.firstChild.nodeValue||(r=i)&&"A"===r.nodeName&&e.isEmpty(r))&&e.remove(i)}}(u,f),function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")}(u,b),u.isEmpty(b)&&w_(b),a.normalize(),u.isEmpty(a)?(u.remove(a),i()):(k_(e,a),p_(e,a))),u.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a})))}function O_(e,t,n){var r=e.dom.createRng();n?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)),e.selection.setRng(r),id(e,r)}function T_(e,t){var n=Ot.fromTag("br");qt(Ot.fromDom(t),n),e.undoManager.add()}function E_(e,t){dC(e.getBody(),t)||Gt(Ot.fromDom(t),Ot.fromTag("br"));var n=Ot.fromTag("br");Gt(Ot.fromDom(t),n),O_(e,n.dom,!1),e.undoManager.add()}function I_(e){return e&&"A"===e.nodeName&&"href"in e}function N_(e){return e.fold(A,I_,I_,A)}function A_(e,t){t.fold(c,O(T_,e),O(E_,e),c)}function P_(e,t){var n,r,i,o=(r=O(wb,n=e),i=fl.fromRangeStart(n.selection.getRng()),gy(r,n.getBody(),i).filter(N_));o.isSome()?o.each(O(A_,e)):function(e,t){var n,r,i=e.selection,o=e.dom,a=i.getRng();Mf(o,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var s,l=a.startOffset,u=a.startContainer;1===u.nodeType&&u.hasChildNodes()&&(s=l>u.childNodes.length-1,u=u.childNodes[Math.min(l,u.childNodes.length-1)]||u,l=s&&3===u.nodeType?u.nodeValue.length:0);var c=o.getParent(u,o.isBlock),f=c?o.getParent(c.parentNode,o.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==d||h||(c=f),u&&3===u.nodeType&&l>=u.nodeValue.length&&!function(e){for(var t,n=new Ar(u,c),r=e.getNonEmptyElements();t=n.next();)if(r[t.nodeName.toLowerCase()]||0<t.length)return 1}(e.schema)&&(n=o.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0),n=o.create("br"),hl(o,a,n),O_(e,n,r),e.undoManager.add()}(e,t)}function M_(e,t){return m_(e).filter((function(e){return 0<t.length&&ze(Ot.fromDom(e),t)})).isSome()}function R_(e,t){return M_(e,e.getParam("no_newline_selector",""))}function F_(e){return function(t,n){return""===Tl(t)===e}}function B_(e){return function(t,n){return m_(t).filter((function(e){return bi(Ot.fromDom(e))})).isSome()===e}}function L_(e,t){return function(n,r){return m_(n).fold(h(""),(function(e){return e.nodeName.toUpperCase()}))===e.toUpperCase()===t}}function $_(e){return L_("pre",e)}function V_(e){return function(t,n){return t.getParam("br_in_pre",!0)===e}}function j_(e,t){return M_(e,e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption"))}function z_(e,t){return t}function H_(e){var t=Tl(e),n=function(e,t){for(var n,r=e.getRoot(),i=t;i!==r&&"false"!==e.getContentEditable(i);)"true"===e.getContentEditable(i)&&(n=i),i=i.parentNode;return i!==r?n:r}(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")}function U_(e,t){return function(n,r){return W(e,(function(e,t){return e&&t(n,r)}),!0)?ye.some(t):ye.none()}}function W_(e,t){var n,r;n=e,r=t,sy([U_([R_],hC.none()),U_([L_("summary",!0)],hC.br()),U_([$_(!0),V_(!1),z_],hC.br()),U_([$_(!0),V_(!1)],hC.block()),U_([$_(!0),V_(!0),z_],hC.block()),U_([$_(!0),V_(!0)],hC.br()),U_([B_(!0),z_],hC.br()),U_([B_(!0)],hC.block()),U_([F_(!0),z_,H_],hC.block()),U_([F_(!0)],hC.br()),U_([j_],hC.br()),U_([F_(!1),z_],hC.br()),U_([H_],hC.block())],[n,!(!r||!r.shiftKey)]).getOr(hC.none()).fold((function(){P_(e,t)}),(function(){D_(e,t)}),c)}function q_(e){return e.stopImmediatePropagation()}function G_(e){return e.keyCode===Lf.PAGE_UP||e.keyCode===Lf.PAGE_DOWN}function Y_(e,t,n){n&&!e.get()?t.on("NodeChange",q_,!0):!n&&e.get()&&t.off("NodeChange",q_),e.set(n)}function K_(e,t){var n=t.container(),r=t.offset();return Wn(n)?(n.insertData(r,e),ye.some(fl(n,r+e.length))):su(t).map((function(n){var r=Ot.fromText(e);return(t.isAtEnd()?Gt:qt)(n,r),fl(r.dom,e.length)}))}function X_(e,t){return function(n){return o=e,(!Mh(a=n)&&(i=a,of((r=o).dom,i).isNone()||rf(r.dom,i).isNone()||sm(r,i)||lm(r,i)||Eh(r,i)||Th(r,i)||Ah(o,a)||Ph(o,a))?gC:vC)(t);var r,i,o,a}}function J_(e){var t,n,r=fl.fromRangeStart(e.selection.getRng()),i=Ot.fromDom(e.getBody());if(e.selection.isCollapsed()){var o=O(wb,e),a=fl.fromRangeStart(e.selection.getRng());return gy(o,e.getBody(),a).bind((n=i,function(e){return e.fold((function(e){return of(n.dom,fl.before(e))}),(function(e){return af(e)}),(function(e){return sf(e)}),(function(e){return rf(n.dom,fl.after(e))}))})).bind(X_(i,r)).exists((t=e,function(e){return t.selection.setRng(e.toRange()),t.nodeChanged(),!0}))}return!1}function Z_(e){var t,n,r,i,o,a,s,l,u,c,f,d,h,p,m=Sw(e);return e.on("keyup compositionstart",O(Ww,e)),p=m,(h=e).on("keydown",(function(e){var t,n,r,i;!1===e.isDefaultPrevented()&&(t=h,n=p,r=e,i=pt().os,n_([{keyCode:Lf.RIGHT,action:t_(Gw,t,!0)},{keyCode:Lf.LEFT,action:t_(Gw,t,!1)},{keyCode:Lf.UP,action:t_(Yw,t,!1)},{keyCode:Lf.DOWN,action:t_(Yw,t,!0)},{keyCode:Lf.RIGHT,action:t_(d_,t,!0)},{keyCode:Lf.LEFT,action:t_(d_,t,!1)},{keyCode:Lf.UP,action:t_(h_,t,!1)},{keyCode:Lf.DOWN,action:t_(h_,t,!0)},{keyCode:Lf.RIGHT,action:t_(r_,t,!0)},{keyCode:Lf.LEFT,action:t_(r_,t,!1)},{keyCode:Lf.UP,action:t_(i_,t,!1)},{keyCode:Lf.DOWN,action:t_(i_,t,!0)},{keyCode:Lf.RIGHT,action:t_(Cw,t,n,!0)},{keyCode:Lf.LEFT,action:t_(Cw,t,n,!1)},{keyCode:Lf.RIGHT,ctrlKey:!i.isOSX(),altKey:i.isOSX(),action:t_(iC,t,n)},{keyCode:Lf.LEFT,ctrlKey:!i.isOSX(),altKey:i.isOSX(),action:t_(oC,t,n)},{keyCode:Lf.UP,action:t_(e_,t,!1)},{keyCode:Lf.DOWN,action:t_(e_,t,!0)}],r).each((function(e){r.preventDefault()})))})),d=m,(f=e).on("keydown",(function(e){var t,n,r;!1===e.isDefaultPrevented()&&(n=d,r=e,n_([{keyCode:Lf.BACKSPACE,action:t_($w,t=f,!1)},{keyCode:Lf.BACKSPACE,action:t_(Zb,t,!1)},{keyCode:Lf.DELETE,action:t_(Zb,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(qb,t,!1)},{keyCode:Lf.DELETE,action:t_(qb,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Tw,t,n,!1)},{keyCode:Lf.DELETE,action:t_(Tw,t,n,!0)},{keyCode:Lf.BACKSPACE,action:t_(_p,t,!1)},{keyCode:Lf.DELETE,action:t_(_p,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Qb,t,!1)},{keyCode:Lf.DELETE,action:t_(Qb,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Pw,t,!1)},{keyCode:Lf.DELETE,action:t_(Pw,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Lb,t,!1)},{keyCode:Lf.DELETE,action:t_(Lb,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Rb,t,!1)},{keyCode:Lf.DELETE,action:t_(Rb,t,!0)},{keyCode:Lf.BACKSPACE,action:t_(Nw,t,!1)},{keyCode:Lf.DELETE,action:t_(Nw,t,!0)}],r).each((function(e){r.preventDefault()})))})),f.on("keyup",(function(e){var t,n;!1===e.isDefaultPrevented()&&(n=e,n_([{keyCode:Lf.BACKSPACE,action:t_(Jb,t=f)},{keyCode:Lf.DELETE,action:t_(Jb,t)}],n))})),(c=e).on("keydown",(function(e){var t,n,r;e.keyCode===Lf.ENTER&&(t=c,(n=e).isDefaultPrevented()||(n.preventDefault(),(r=t.undoManager).typing&&(r.typing=!1,r.add()),t.undoManager.transact((function(){!1===t.selection.isCollapsed()&&t.execCommand("Delete"),W_(t,n)}))))})),(u=e).on("keydown",(function(e){var t;!1===e.isDefaultPrevented()&&(t=e,n_([{keyCode:Lf.SPACEBAR,action:t_(J_,u)}],t).each((function(e){t.preventDefault()})))})),s=a=e,l=ms((function(){s.composing||jh(s)}),0),pC.isIE()&&(s.on("keypress",(function(e){l.throttle()})),s.on("remove",(function(e){l.cancel()}))),a.on("input",(function(e){!1===e.isComposing&&jh(a)})),o=m,(i=e).on("keydown",(function(e){var t,n,r;!1===e.isDefaultPrevented()&&(n=o,r=e,n_([{keyCode:Lf.END,action:t_(Kw,t=i,!0)},{keyCode:Lf.HOME,action:t_(Kw,t,!1)},{keyCode:Lf.END,action:t_(o_,t,!0)},{keyCode:Lf.HOME,action:t_(o_,t,!1)},{keyCode:Lf.END,action:t_(kw,t,!0,n)},{keyCode:Lf.HOME,action:t_(kw,t,!1,n)}],r).each((function(e){r.preventDefault()})))})),t=e,n=m,mC.os.isOSX()||(r=ls(!1),t.on("keydown",(function(e){G_(e)&&Y_(r,t,!0)})),t.on("keyup",(function(e){var i,o,a;!1===e.isDefaultPrevented()&&(a=e,n_([{keyCode:Lf.PAGE_UP,action:t_(kw,i=t,!1,o=n)},{keyCode:Lf.PAGE_DOWN,action:t_(kw,i,!0,o)}],a)),G_(e)&&r.get()&&(Y_(r,t,!1),t.nodeChanged())}))),m}(Qy=Zy=Zy||{})[Qy.Up=-1]="Up",Qy[Qy.Down=1]="Down";var Q_=O(iw,Zy.Up,Ms,Rs),eC=O(iw,Zy.Down,Rs,Ms),tC=Zn,nC=Zl,rC=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var i=fl.fromRangeEnd(n),o=tw(r,i);return ne(o.positions)}return i=fl.fromRangeStart(n),te((o=ew(r,i)).positions)},iC=O(xw,!0),oC=O(xw,!1),aC=function(e){return H($(e.selection.getSelectedBlocks(),Ot.fromDom),(function(e){return!Bw(e)&&!Mt(e).exists(Bw)&&br(e,(function(e){return Jn(e.dom)||Zn(e.dom)})).exists((function(e){return Jn(e.dom)}))}))},sC=Zn,lC=O(a_,(function(e){return e.bottom}),(function(e,t){return e.y<t})),uC=O(a_,(function(e){return e.top}),(function(e,t){return e.y>t})),cC=O(s_,ew),fC=O(s_,tw),dC=function(e,t){return n=fl.after(t),!!Kn(n.getNode())||rf(e,fl.after(t)).map((function(e){return Kn(e.getNode())})).getOr(!1);var n},hC=sr([{br:[]},{block:[]},{none:[]}]),pC=pt().browser,mC=pt(),gC=O(K_,xi),vC=O(K_," "),bC=(yC.prototype.nodeChanged=function(e){var t,n,r,i=this.editor.selection;this.editor.initialized&&i&&!this.editor.getParam("disable_nodechange")&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),(t=i.getStart(!0)||r).ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){return e===r||void n.push(e)})),(e=e||{}).element=t,e.parents=n,this.editor.fire("NodeChange",e))},yC.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.length===this.lastPath.length){for(t=n.length;0<=t&&n[t]===this.lastPath[t];t--);if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},yC);function yC(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r=e.selection.getRng(),i={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&Tf(i,t)||e.fire("SelectionChange"),t=i})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!xt.range&&e.selection.isCollapsed()||Fc(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&Fc(e)&&("IMG"===e.selection.getNode().nodeName?Ir.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}function wC(e){return Hn(e)&&gi(Ot.fromDom(e))}function _C(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,i=n.defaultView;return{top:t.top+i.pageYOffset-r.clientTop,left:t.left+i.pageXOffset-r.clientLeft}}function CC(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function xC(e,t){var n=Ir.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return t.on("remove",n.stop),function(r){return e.on((function(e){var i,o,a,s,l,u,c,f,d,h,p,m,g,v,b,y,w,_,C,x,S=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&10<S){if(t.fire("dragstart",{target:e.element}).isDefaultPrevented())return;e.dragging=!0,t.focus()}e.dragging&&(m=e,i={pageX:(b=r,y=(v=t).inline?_C(v.getBody()):{left:0,top:0},x=(C=v).getBody(),w=C.inline?{left:x.scrollLeft,top:x.scrollTop}:{left:0,top:0},(g={pageX:(_=function(e,t){if(t.target.ownerDocument===e.getDoc())return{left:t.pageX,top:t.pageY};var n,r,i,o,a,s=_C(e.getContentAreaContainer()),l=(r=(n=e).getBody(),i=n.getDoc().documentElement,o={left:r.scrollLeft,top:r.scrollTop},a={left:r.scrollLeft||i.scrollLeft,top:r.scrollTop||i.scrollTop},n.inline?o:a);return{left:t.pageX-s.left+l.left,top:t.pageY-s.top+l.top}}(v,b)).left-y.left+w.left,pageY:_.top-y.top+w.top}).pageX-m.relX),pageY:g.pageY+5},h=e.ghost,p=t.getBody(),h.parentNode!==p&&p.appendChild(h),o=e.ghost,s=e.width,l=e.height,u=e.maxX,c=e.maxY,d=f=0,o.style.left=(a=i).pageX+"px",o.style.top=a.pageY+"px",c<a.pageY+l&&(d=a.pageY+l-c),o.style.width=s-(f=u<a.pageX+s?a.pageX+s-u:f)+"px",o.style.height=l-d+"px",n(r.clientX,r.clientY))}))}}function SC(e){function t(e){var t,n,r,i,o,a;0===e.button&&(t=G(l.dom.getParents(e.target),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}}(KC,XC)).getOr(null),o=l.getBody(),KC(a=t)&&a!==o&&(n=l.dom.getPos(t),r=l.getBody(),i=l.getDoc().documentElement,s.set({element:t,dragging:!1,screenX:e.screenX,screenY:e.screenY,maxX:(l.inline?r.scrollWidth:i.offsetWidth)-2,maxY:(l.inline?r.scrollHeight:i.offsetHeight)-2,relX:e.pageX-n.x,relY:e.pageY-n.y,width:t.offsetWidth,height:t.offsetHeight,ghost:function(e,t,n){var r=l.dom,i=e.cloneNode(!0);r.setStyles(i,{width:t,height:n}),r.setAttrib(i,"data-mce-selected",null);var o=r.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return r.setStyles(o,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:t,height:n}),r.setStyles(i,{margin:0,boxSizing:"border-box"}),o.appendChild(i),o}(t,t.offsetWidth,t.offsetHeight)})))}function n(e){o.on((function(t){var n,r,i,o,s,l;t.dragging&&((o=3===(l=(i=a).selection.getSel().getRangeAt(0).startContainer).nodeType?l.parentNode:l)===(s=t.element)||i.dom.isChildOf(o,s)||KC(o)||((r=t.element.cloneNode(!0)).removeAttribute("data-mce-selected"),n=r,a.fire("drop",{clientX:e.clientX,clientY:e.clientY}).isDefaultPrevented()||a.undoManager.transact((function(){CC(t.element),a.insertContent(a.dom.getOuterHTML(n)),a._selectionOverrides.hideFakeCaret()}))),a.fire("dragend"))})),JC(o)}var r,i,o,a,s,l,u=ps(),c=ns.DOM,f=document,d=xC(s=u,l=e),h=(r=o=u,function(){r.on((function(e){e.dragging&&i.fire("dragend")})),JC(r)});(i=a=e).on("mousedown",t),e.on("mousemove",d),e.on("mouseup",n),c.bind(f,"mousemove",d),c.bind(f,"mouseup",h),e.on("remove",(function(){c.unbind(f,"mousemove",d),c.unbind(f,"mouseup",h)})),e.on("keydown",(function(e){e.keyCode===Lf.ESC&&h()}))}function kC(e){var t,n;function r(e){var t;e.isDefaultPrevented()||(t=e.dataTransfer)&&(B(t.types,"Files")||0<t.files.length)&&(e.preventDefault(),"drop"===e.type&&eb(n,"Dropped file type is not supported"))}function i(e){vd(n,e.target)&&r(e)}function o(){var e=ns.DOM,t=n.dom,o=document,a=n.inline?n.getBody():n.getDoc(),s=["drop","dragover"];V(s,(function(n){e.bind(o,n,i),t.bind(a,n,r)})),n.on("remove",(function(){V(s,(function(n){e.unbind(o,n,i),t.unbind(a,n,r)}))}))}SC(e),(t=e).on("drop",(function(e){var n=void 0!==e.clientX?t.getDoc().elementFromPoint(e.clientX,e.clientY):null;!KC(n)&&"false"!==t.dom.getContentEditableParent(n)||e.preventDefault()})),e.getParam("block_unsupported_drop",!0,"boolean")&&(n=e).on("init",(function(){Ir.setEditorTimeout(n,o,0)}))}function DC(e,t){return wf(e.getBody(),t)}function OC(e){function t(e){return e!==v&&(QC(e)||er(e))&&m.isChildOf(e,v)}function n(e){return om(e)||am(e)||tm(e)||nm(e)}function r(e){e&&p.setRng(e)}function i(t,n,r,i){return void 0===i&&(i=!0),e.fire("ShowCaret",{target:n,direction:t,before:r}).isDefaultPrevented()?null:(i&&p.scrollIntoView(n,-1===t),b.show(r,n))}function o(e){return $r(e)||Ei(e)||Ii(e)}function a(e){return o(e.startContainer)||o(e.endContainer)}function s(n,r){if(!n)return null;if(n.collapsed){if(!a(n)){var o=r?1:-1,s=au(o,v,n),l=s.getNode(!r);if(Xl(l))return i(o,l,!!r&&!s.isAtEnd(),!1);var u=s.getNode(r);if(Xl(u))return i(o,u,!r&&!s.isAtEnd(),!1)}return null}var f=n.startContainer,d=n.startOffset,h=n.endOffset;if(3===f.nodeType&&0===d&&QC(f.parentNode)&&(f=f.parentNode,d=m.nodeIndex(f),f=f.parentNode),1!==f.nodeType)return null;if(h===d+1&&f===n.endContainer){var g=f.childNodes[d];if(t(g))return function(t){var n=t.cloneNode(!0),r=e.fire("ObjectSelected",{target:t,targetClone:n});if(r.isDefaultPrevented())return null;var i=function(t,n,r){var i=e.$,o=wr(Ot.fromDom(e.getBody()),"#"+y).fold((function(){return i([])}),(function(e){return i([e.dom])}));0===o.length&&(o=i('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",y)).appendTo(e.getBody());var a=m.createRng();n===r&&xt.ie?(o.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(n),a.setStartAfter(o[0].firstChild.firstChild),a.setEndAfter(n)):(o.empty().append(xi).append(n).append(xi),a.setStart(o[0].firstChild,1),a.setEnd(o[0].lastChild,0)),o.css({top:m.getPos(t,e.getBody()).y}),o[0].focus();var s=p.getSel();return s.removeAllRanges(),s.addRange(a),a}(t,r.targetClone,n),o=Ot.fromDom(t);return V(_s(Ot.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){Ue(o,e)||Cn(e,w)})),m.getAttrib(t,w)||t.setAttribute(w,"1"),c=t,C(),i}(g)}return null}function u(){c&&c.removeAttribute(w),wr(Ot.fromDom(e.getBody()),"#"+y).each(Ln),c=null}var c,f,d,h,p=e.selection,m=e.dom,g=m.isBlock,v=e.getBody(),b=Yl(e,v,g,(function(){return Cd(e)})),y="sel-"+m.uniqueId(),w="data-mce-selected",_=p.getRng,C=function(){b.hide()};return xt.ceFalse&&!bg(e)&&(e.on("mouseup",(function(t){var n=_();n.collapsed&&Dv(e,t.clientX,t.clientY)&&jb(e,n,!1).each(r)})),e.on("click",(function(t){var n=DC(e,t.target);n&&(QC(n)&&(t.preventDefault(),e.focus()),ZC(n)&&m.isChildOf(n,p.getNode())&&u())})),e.on("blur NewBlock",u),e.on("ResizeWindow FullscreenStateChanged",b.reposition),e.on("tap",(function(n){var r=n.target,i=DC(e,r);QC(i)?(n.preventDefault(),Vb(e,i).each(s)):t(r)&&Vb(e,r).each(s)}),!0),e.on("mousedown",(function(o){var a,c,f,d,h,b,y,w=o.target;w!==v&&"HTML"!==w.nodeName&&!m.isChildOf(w,v)||!1===Dv(e,o.clientX,o.clientY)||((a=DC(e,w))?QC(a)?(o.preventDefault(),Vb(e,a).each(s)):(u(),ZC(a)&&o.shiftKey||_f(o.clientX,o.clientY,p.getRng())||(C(),p.placeCaretAt(o.clientX,o.clientY))):t(w)?Vb(e,w).each(s):!1===Xl(w)&&(u(),C(),(c=hw(v,o.clientX,o.clientY))&&(f=w,d=c.node,b=m.getParent(f,g),y=m.getParent(d,g),!l(b)&&(f!==y&&m.isChildOf(b,y)&&!1===QC(DC(e,b))||!m.isChildOf(y,b)&&(h=y,m.getParent(b,g)!==m.getParent(h,g))&&function(e){var t=e.firstChild;if(!l(t)){var r=fl.before(t);if(Kn(r.getNode())&&1===e.childNodes.length)return!n(r);var i=$u(e).next(r);return i&&!n(i)}}(b))||(o.preventDefault(),r(i(1,c.node,c.before,!1)),e.getBody().focus()))))})),e.on("keypress",(function(e){Lf.modifierPressed(e)||QC(p.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var t=e.range;c&&(c.parentNode?((t=t.cloneRange()).selectNode(c),e.range=t):c=null)})),e.on("SetSelectionRange",(function(t){var n,r,i,o,a,l,u;t.range=(n=t.range,r=e.schema.getShortEndedElements(),i=m.createRng(),o=n.startContainer,a=n.startOffset,l=n.endContainer,u=n.endOffset,Oe(r,o.nodeName.toLowerCase())?0===a?i.setStartBefore(o):i.setStartAfter(o):i.setStart(o,a),Oe(r,l.nodeName.toLowerCase())?0===u?i.setEndBefore(l):i.setEndAfter(l):i.setEnd(l,u),i);var c=s(t.range,t.forward);c&&(t.range=c)})),e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;a(t)||"mcepastebin"===n.id||C(),m.hasClass(n,"mce-offscreen-selection")||u()})),e.on("copy",(function(e){var t,n,r=e.clipboardData;e.isDefaultPrevented()||!e.clipboardData||xt.ie||(t=(n=m.get(y))&&n.getElementsByTagName("*")[0])&&(e.preventDefault(),r.clearData(),r.setData("text/html",t.outerHTML),r.setData("text/plain",t.outerText||t.innerText))})),kC(e),d=ms((function(){var e,t;f.removed||!f.getBody().contains(document.activeElement)||(e=f.selection.getRng()).collapsed&&(t=zb(f,e,!1),f.selection.setRng(t))}),0),(f=e).on("focus",(function(){d.throttle()})),f.on("blur",(function(){d.cancel()})),(h=e).on("init",(function(){h.on("focusin",(function(e){var t,n,r=e.target;er(r)&&(t=wf(h.getBody(),r),n=Zn(t)?t:r,h.selection.getNode()!==n&&Vb(h,n).each((function(e){return h.selection.setRng(e)})))}))}))),{showCaret:i,showBlockCaretContainer:function(e){e.hasAttribute("data-mce-caret")&&(Hr(e),r(_()),p.scrollIntoView(e))},hideFakeCaret:C,destroy:function(){b.destroy(),c=null}}}function TC(e){function t(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(t){}}function n(e){return e.isDefaultPrevented()}function r(){e.shortcuts.add("meta+a",null,"SelectAll")}function i(){e.inline||y.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;t.target===e.getDoc().documentElement&&(n=w.getRng(),e.getBody().focus(),"mousedown"===t.type?$r(n.startContainer)||w.placeCaretAt(t.clientX,t.clientY):w.setRng(n))}))}function o(){Range.prototype.getClientRects||e.on("mousedown",(function(t){var r;n(t)||"HTML"!==t.target.nodeName||((r=e.getBody()).blur(),Ir.setEditorTimeout(e,(function(){r.focus()})))}))}function a(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==y.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&y.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),w.select(n))}))}function s(){e.on("keydown",(function(e){if(!n(e)&&e.keyCode===v&&w.isCollapsed()&&0===w.getRng().startOffset){var t=w.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))}function l(){e.getParam("readonly")||e.on("BeforeExecCommand mousedown",(function(){t("StyleWithCSS",!1),t("enableInlineTableEditing",!1),Fl(e)||t("enableObjectResizing",!1)}))}function u(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}function f(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))}function d(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;"HTML"===t.target.nodeName&&(11<xt.ie?e.getBody().focus():(n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()))})))}function h(){xt.mac&&e.on("keydown",(function(t){!Lf.metaKeyPressed(t)||t.shiftKey||37!==t.keyCode&&39!==t.keyCode||(t.preventDefault(),e.selection.getSel().modify("move",37===t.keyCode?"backward":"forward","lineboundary"))}))}function p(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")}function m(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))}var g=Dt.each,v=Lf.BACKSPACE,b=Lf.DELETE,y=e.dom,w=e.selection,_=e.parser,C=xt.gecko,x=xt.ie,S=xt.webkit,k="data:text/mce-internal,",D=x?"Text":"URL",O=c;return bg(e)?(S&&(i(),a(),m(),r(),xt.iOS&&(f(),d(),p())),C&&(o(),l(),u(),h())):(e.on("keydown",(function(t){if(!n(t)&&t.keyCode===Lf.BACKSPACE){var r,i=(r=w.getRng()).startContainer,o=r.startOffset,a=y.getRoot(),s=i;if(r.collapsed&&0===o){for(;s&&s.parentNode&&s.parentNode.firstChild===s&&s.parentNode!==a;)s=s.parentNode;"BLOCKQUOTE"===s.tagName&&(e.formatter.toggle("blockquote",null,s),(r=y.createRng()).setStart(i,0),r.setEnd(i,0),w.setRng(r))}}})),e.on("keydown",(function(t){var r,i,o,a,s=t.keyCode;n(t)||s!==b&&s!==v||(r=e.selection.isCollapsed(),i=e.getBody(),r&&!y.isEmpty(i)||!r&&(o=I(e.selection.getRng()),(a=y.createRng()).selectNode(e.getBody()),o!==I(a))||(t.preventDefault(),e.setContent(""),i.firstChild&&y.isBlock(i.firstChild)?e.selection.setCursorLocation(i.firstChild,0):e.selection.setCursorLocation(i,0),e.nodeChanged()))})),xt.windowsPhone||e.on("keyup focusin mouseup",(function(e){Lf.modifierPressed(e)||w.normalize()}),!0),S&&(i(),a(),Tl(e)&&e.on("init",(function(){t("DefaultParagraphSeparator",Tl(e))})),m(),s(),_.addNodeFilter("br",(function(e){for(var t=e.length;t--;)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()})),xt.iOS?(f(),d(),p()):r()),11<=xt.ie&&(d(),s()),xt.ie&&(r(),t("AutoUrlDetect",!1),e.on("dragstart",(function(t){var n,r,i;(n=t).dataTransfer&&(e.selection.isCollapsed()&&"IMG"===n.target.tagName&&w.select(n.target),0<(r=e.selection.getContent()).length&&(i=k+escape(e.id)+","+escape(r),n.dataTransfer.setData(D,i)))})),e.on("drop",(function(t){var r,i,o,a;n(t)||(r=t.dataTransfer&&(a=t.dataTransfer.getData(D))&&0<=a.indexOf(k)?(a=a.substr(k.length).split(","),{id:unescape(a[0]),html:unescape(a[1])}):null)&&r.id!==e.id&&(t.preventDefault(),i=Of(t.x,t.y,e.getDoc()),w.setRng(i),o=r.html,e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:o,internal:!0}):e.execCommand("mceInsertContent",!1,o))}))),C&&(e.on("keydown",(function(t){if(!n(t)&&t.keyCode===v&&e.getBody().getElementsByTagName("hr").length&&w.isCollapsed()&&0===w.getRng().startOffset){var r=w.getNode(),i=r.previousSibling;if("HR"===r.nodeName)return y.remove(r),void t.preventDefault();i&&i.nodeName&&"hr"===i.nodeName.toLowerCase()&&(y.remove(i),t.preventDefault())}})),o(),e.on("keypress",(function(t){var r;if(!n(t)&&(8===t.keyCode||46===t.keyCode)&&E())return r=T(),e.getDoc().execCommand("delete",!1,null),r(),t.preventDefault(),!1})),y.bind(e.getDoc(),"cut",(function(t){var r;!n(t)&&E()&&(r=T(),Ir.setEditorTimeout(e,(function(){r()})))})),l(),e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||g(y.select("a"),(function(e){var t=e.parentNode,n=y.getRoot();if(t.lastChild===e){for(;t&&!y.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}y.add(t,"br",{"data-mce-bogus":1})}}))})),u(),h(),s())),{refreshContentEditable:O,isHidden:function(){if(!C||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount}};function T(){var t=y.getAttribs(w.getStart().cloneNode(!1));return function(){var n=w.getStart();n!==e.getBody()&&(y.setAttrib(n,"style",null),g(t,(function(e){n.setAttributeNode(e.cloneNode(!0))})))}}function E(){return!w.isCollapsed()&&y.getParent(w.getStart(),y.isBlock)!==y.getParent(w.getEnd(),y.isBlock)}function I(e){var t=y.create("body"),n=e.cloneContents();return t.appendChild(n),w.serializer.serialize(t,{format:"html"})}}function EC(e){return le(e,(function(e){return!1===S(e)}))}function IC(e){var t=e.settings;return EC({block_elements:t.block_elements,boolean_attributes:t.boolean_attributes,custom_elements:t.custom_elements,extended_valid_elements:t.extended_valid_elements,invalid_elements:t.invalid_elements,invalid_styles:t.invalid_styles,move_caret_before_on_enter_elements:t.move_caret_before_on_enter_elements,non_empty_elements:t.non_empty_elements,schema:t.schema,self_closing_elements:t.self_closing_elements,short_ended_elements:t.short_ended_elements,special:t.special,text_block_elements:t.text_block_elements,text_inline_elements:t.text_inline_elements,valid_children:t.valid_children,valid_classes:t.valid_classes,valid_elements:t.valid_elements,valid_styles:t.valid_styles,verify_html:t.verify_html,whitespace_elements:t.whitespace_elements,padd_empty_block_inline_children:t.format_empty_lines})}function NC(e){var t=e.settings,n=e.editorUpload.blobCache;return EC({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:e.inline?e.getElement().nodeName.toLowerCase():void 0,validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})}function AC(e){var t,n,r;e.bindPendingEventDelegates(),e.initialized=!0,e.fire("Init"),e.focus(!0),r=(n=e).dom.getRoot(),n.inline||Fc(n)&&n.selection.getStart(!0)!==r||af(r).each((function(e){var t,r,i,o,a=e.getNode(),s=fn(a)?af(a).getOr(e):e;xt.browser.isIE()?(t=n,r=s.toRange(),i=Ot.fromDom(t.getBody()),o=(fd(t)?ye.from(r):ye.none()).map(dd).filter(cd(i)),t.bookmark=o.isSome()?o:t.bookmark):n.selection.setRng(s.toRange())})),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),(t=e).settings.auto_focus&&Ir.setEditorTimeout(t,(function(){var e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus);e.destroyed||e.focus()}),100)}function PC(e){return(e.inline?e.ui:e.dom).styleSheetLoader}function MC(e){function t(){i.unloadAll(a),e.inline||e.ui.styleSheetLoader.unloadAll(o)}function n(){e.removed?t():e.on("remove",t)}var r,i=PC(e),o=Rl(e),a=e.contentCSS;0<e.contentStyles.length&&(r="",Dt.each(e.contentStyles,(function(e){r+=e+"\r\n"})),e.dom.addStyle(r));var s,l,u,c,f,d,h,p,m,g=Er.all((s=e,l=a,u=o,c=[new Er((function(e,t){return PC(s).loadAll(l,e,t)}))],s.inline?c:c.concat([new Er((function(e,t){return s.ui.styleSheetLoader.loadAll(u,e,t)}))]))).then(n).catch(n);return e.settings.content_style&&(d=(f=e).settings.content_style,h=Ot.fromDom(f.getBody()),p=Ut(Fn(h)),vn(m=Ot.fromTag("style"),"type","text/css"),Bn(m,Ot.fromText(d)),Bn(p,m),f.on("remove",(function(){Ln(m)}))),g}function RC(e){var t;!0!==e.removed&&(bg(t=e)||t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"}),AC(e))}function FC(e,t){var n=e.settings,r=e.getElement(),i=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(i.open(),i.write(e.iframeHTML),i.close()),e.inline&&(ex.addClass(r,"mce-content-body"),e.contentDocument=i=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var o,a,s,l,u,c,f,d,h,p,m,g,v=e.getBody();v.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===ex.getStyle(v,"position",!0)&&(v.style.position="relative"),v.contentEditable=e.getParam("content_editable_state",!0)),v.disabled=!1,e.editorUpload=fb(e),e.schema=ai(IC(e)),e.dom=ns(i,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:e.getParam("content_css_cors",!1,"boolean"),referrerPolicy:Al(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=((a=fv(NC(o=e),o.schema)).addAttributeFilter("src,href,style,tabindex",(function(e,t){for(var n,r,i=e.length,a=o.dom,s="data-mce-"+t;i--;)(r=(n=e[i]).attr(t))&&!n.attr(s)&&0!==r.indexOf("data:")&&0!==r.indexOf("blob:")&&("style"===t?((r=a.serializeStyle(a.parseStyle(r),n.name)).length||(r=null),n.attr(s,r),n.attr(t,r)):"tabindex"===t?(n.attr(s,r),n.attr(t,null)):n.attr(s,o.convertURL(r,t,n.name)))})),a.addNodeFilter("script",(function(e){for(var t=e.length;t--;){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),o.settings.preserve_cdata&&a.addNodeFilter("#cdata",(function(e){for(var t=e.length;t--;){var n=e[t];n.type=8,n.name="#comment",n.value="[CDATA["+o.dom.encode(n.value)+"]]"}})),a.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(e){for(var t=e.length,n=o.schema.getNonEmptyElements();t--;){var r=e[t];r.isEmpty(n)&&0===r.getAll("br").length&&(r.append(new Ud("br",1)).shortEnded=!0)}})),a),e.serializer=pv((l=(s=e).settings,Ee(Ee(Ee({},NC(s)),IC(s)),EC({url_converter:l.url_converter,url_converter_scope:l.url_converter_scope,element_format:l.element_format,entities:l.entities,entity_encoding:l.entity_encoding,indent:l.indent,indent_after:l.indent_after,indent_before:l.indent_before}))),e),e.selection=Vg(e.dom,e.getWin(),e.serializer,e),e.annotator=zc(e),e.formatter=mb(e),e.undoManager=vb(e),e._nodeChangeDispatcher=new bC(e),e._selectionOverrides=OC(e),h=e,p=ps(),m=ls(!1),g=gs((function(e){h.fire("longpress",Ee(Ee({},e),{type:"longpress"})),m.set(!0)}),400),h.on("touchstart",(function(e){jw(e).each((function(t){g.cancel();var n={x:t.clientX,y:t.clientY,target:e.target};g.throttle(e),m.set(!1),p.set(n)}))}),!0),h.on("touchmove",(function(e){g.cancel(),jw(e).each((function(e){p.on((function(t){var n=e,r=t,i=Math.abs(n.clientX-r.x),o=Math.abs(n.clientY-r.y);(5<i||5<o)&&(p.clear(),m.set(!1),h.fire("longpresscancel"))}))}))}),!0),h.on("touchend touchcancel",(function(e){g.cancel(),"touchcancel"!==e.type&&p.get().filter((function(t){return t.target.isEqualNode(e.target)})).each((function(){m.get()?e.preventDefault():h.fire("tap",Ee(Ee({},e),{type:"tap"}))}))}),!0),(f=c=e).on("click",(function(e){f.dom.getParent(e.target,"details")&&e.preventDefault()})),(d=c).parser.addNodeFilter("details",(function(e){V(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),d.serializer.addNodeFilter("details",(function(e){V(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",y(t)?t:null),e.attr("data-mce-open",null)}))})),bg(e)||(u=e).on("click",(function(e){var t,n,r,i,o;3<=e.detail&&(r=(t=u).selection.getRng(),i=fl.fromRangeStart(r),o=fl.fromRangeEnd(r),!fl.isElementPosition(i)||wC(n=i.container())&&af(n).each((function(e){return r.setStart(e.container(),e.offset())})),!fl.isElementPosition(o)||wC(n=i.container())&&sf(n).each((function(e){return r.setEnd(e.container(),e.offset())})),t.selection.setRng(Cp(r)))}));var b,w,_,C,x,S,k,D,T,E=bg(b=e)?ls(null):Z_(b);T=E,(D=e).addCommand("delete",(function(){var e,t=T;$w(e=D)||Zb(e,!1)||qb(e,!1)||Tw(e,t,!1)||Rb(e,!1)||_p(e)||Qb(e,!1)||Pw(e,!1)||Lb(e)||Nw(e,!1)||(Vw(e,"Delete"),kb(e))})),D.addCommand("forwardDelete",(function(){var e,t=T;Zb(e=D,!0)||qb(e,!0)||Tw(e,t,!0)||Rb(e,!0)||_p(e)||Qb(e,!0)||Pw(e,!0)||Lb(e)||Nw(e,!0)||Vw(e,"ForwardDelete")})),Tl(w=e)&&w.on("NodeChange",O(Hw,w)),C=(_=e).dom,x=Tl(_),S=_.getParam("placeholder",yu.getAttrib(_.getElement(),"placeholder"),"string"),k=function(e,t){var n,r,i;!function(e){if(bb(e)){var t=e.keyCode;return!yb(e)&&(Lf.metaKeyPressed(e)||e.altKey||112<=t&&t<=123||B(Ny,t))}}(e)&&(n=_.getBody(),r=!(bb(i=e)&&!(yb(i)||"keyup"===i.type&&229===i.keyCode))&&function(e,t,n){if(Kr(Ot.fromDom(t),!1)){var r=""===n,i=t.firstElementChild;return!i||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(i):n===i.nodeName.toLowerCase())}return!1}(C,n,x),""!==C.getAttrib(n,Ay)===r&&!t||(C.setAttrib(n,Ay,r?S:null),C.setAttrib(n,"aria-placeholder",r?S:null),_.fire("PlaceholderToggle",{state:r}),_.on(r?"keydown":"keyup",k),_.off(r?"keyup":"keydown",k)))},S&&_.on("init",(function(e){k(e,!0),_.on("change SetContent ExecCommand",k),_.on("paste",(function(e){return Ir.setEditorTimeout(_,(function(){return k(e)}))}))}));var I=yg(e);(function(e){var t=e.settings,n=e.getDoc(),r=e.getBody();e.fire("PreInit"),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,ex.setAttrib(r,"spellcheck","false")),e.quirks=TC(e),e.fire("PostRender");var i=e.getParam("directionality",ds.isRtl()?"rtl":void 0);void 0!==i&&(r.dir=i),t.protect&&e.on("BeforeSetContent",(function(e){Dt.each(t.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type}))})(e),I.fold((function(){MC(e).then((function(){return RC(e)}))}),(function(t){e.setProgressState(!0),MC(e).then((function(){t().then((function(t){e.setProgressState(!1),RC(e)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),RC(e)}))}))}))}function BC(e,t){var n,r,i,o,a=e.translate("Rich Text Area"),s=(n=e.id,r=a,t.height,i=e.getParam("iframe_attrs",{}),bn(o=Ot.fromTag("iframe"),i),bn(o,{id:n+"_ifr",frameBorder:"0",allowTransparency:"true",title:r}),ys(o,"tox-edit-area__iframe"),o.dom);s.onload=function(){s.onload=null,e.fire("load")};var l=function(e,t){if(document.domain!==window.location.hostname&&xt.browser.isIE()){var n=ab("mce");e[n]=function(){FC(e)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return tx.setAttrib(t,"src",r),!0}return!1}(e,s);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=s,e.iframeHTML=function(e){var t=e.getParam("doctype","<!DOCTYPE html>")+"<html><head>";e.getParam("document_base_url","")!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=Dl(e,"body_id","tinymce"),r=Dl(e,"body_class",""),i=e.translate(e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string"));return Ol(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+Ol(e)+'" />'),t+'</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'" aria-label="'+i+'"><br></body></html>'}(e),tx.add(t.iframeContainer,s),l}function LC(e){return e.replace(/^\-/,"")}function $C(e){return{editorContainer:e,iframeContainer:e,api:{}}}function VC(e){var t,n,r,i,o,a,s,l=e.getElement();return e.orgDisplay=l.style.display,y(Ll(e))?e.theme.renderUI():k(Ll(e))?(n=(t=e).getElement(),(r=Ll(t)(t,n)).editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||t.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||t.id+"_iframecontainer"),r.height=r.iframeHeight||n.offsetHeight,r):(s=(i=e).getElement(),i.inline?$C(null):(o=s,a=nx.create("div"),nx.insertAfter(a,o),$C(a)))}function jC(e){var t,n,r,i,o,a,s,l;e.fire("ScriptsLoaded"),t=e,n=Dt.trim(Nl(t)),r=t.ui.registry.getAll().icons,ie(Ee(Ee({},Wv.get("default").icons),Wv.get(n).icons),(function(e,n){Oe(r,n)||t.ui.registry.addIcon(n,e)})),a=Ll(i=e),y(a)?(i.settings.theme=LC(a),o=Jv.get(a),i.theme=new o(i,Jv.urls[a]),i.theme.init&&i.theme.init(i,Jv.urls[a]||i.documentBaseUrl.replace(/\/$/,""),i.$)):i.theme={},l=[],Dt.each(Vl(s=e).split(/[ ,]/),(function(e){rx(s,l,LC(e))}));var u=VC(e),f=e,d=ye.from(u.api).getOr({}),h={show:ye.from(d.show).getOr(c),hide:ye.from(d.hide).getOr(c),disable:ye.from(d.disable).getOr(c),isDisabled:ye.from(d.isDisabled).getOr(A),enable:function(){f.mode.isReadOnly()||ye.from(d.enable).map(I)}};f.ui=Ee(Ee({},f.ui),h);var p,m,g,v={editorContainer:u.editorContainer,iframeContainer:u.iframeContainer};return e.editorContainer=v.editorContainer||null,ib(e),e.inline?FC(e):(g=BC(p=e,m=v),m.editorContainer&&(tx.get(m.editorContainer).style.display=p.orgDisplay,p.hidden=tx.isHidden(m.editorContainer)),p.getElement().style.display="none",tx.setAttrib(p.id,"aria-hidden","true"),void(g||FC(p)))}function zC(e){return"-"===e.charAt(0)}function HC(e,t,n){return ye.from(t).filter((function(e){return 0<e.length&&!Wv.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:ye.some(t)}}))}function UC(e,t){var n,r,i=as.ScriptLoader,o=i,a=t,s=function(){var n,r,o,a,s,l,u,f,d;s=i,f=Pl(l=e),d=l.getParam("language_url","","string"),!1===ds.hasCode(f)&&"en"!==f&&(u=""!==d?d:l.editorManager.baseURL+"/langs/"+f+".js",s.add(u,c,void 0,(function(){tb(l,"LanguageLoadError",nb("language",u,f))}))),o=i,V(function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t}([HC(a=e,"default",t),ye.from(a.getParam("icons_url","","string")).filter((function(e){return 0<e.length})).map((function(e){return{url:e,name:ye.none()}})).orThunk((function(){return HC(a,Nl(a),"")}))]),(function(e){o.add(e.url,c,void 0,(function(){tb(a,"IconsLoadError",nb("icons",e.url,e.name.getOrUndefined()))}))})),n=e,r=t,Dt.each(n.getParam("external_plugins"),(function(e,t){Xv.load(t,e,c,void 0,(function(){rb(n,e,t)})),n.settings.plugins+=" "+t})),Dt.each(Vl(n).split(/[ ,]/),(function(e){var t,i;(e=Dt.trim(e))&&!Xv.urls[e]&&(zC(e)?(e=e.substr(1,e.length),t=Xv.dependencies(e),Dt.each(t,(function(e){var t=Xv.createUrl({prefix:"plugins/",resource:e,suffix:"/plugin"+r+".js"},e);Xv.load(t.resource,t,c,void 0,(function(){rb(n,t.prefix+t.resource+t.suffix,t.resource)}))}))):(i={prefix:"plugins/",resource:e,suffix:"/plugin"+r+".js"},Xv.load(e,i,c,void 0,(function(){rb(n,i.prefix+i.resource+i.suffix,e)}))))})),i.loadQueue((function(){e.removed||jC(e)}),e,(function(){e.removed||jC(e)}))},l=Ll(n=e);y(l)?(zC(l)||Oe(Jv.urls,l)||((r=n.getParam("theme_url"))?Jv.load(l,n.documentBaseURI.toAbsolute(r)):Jv.load(l,"themes/"+l+"/theme"+a+".js")),o.loadQueue((function(){Jv.waitFor(l,s)}))):s()}function WC(e){return function(t,n){return ye.from(n).map(Ot.fromDom).filter(En).bind((function(n){return r=e,i=t,o=n.dom,Pp(Ot.fromDom(o),(function(e){return kn(t=e,r).orThunk((function(){return"font"===Tt(t)?ue(ox,r).bind((function(e){return wn(t,e)})):ye.none()}));var t}),(function(e){return Ue(Ot.fromDom(i),e)})).or((a=n.dom,ye.from(ns.DOM.getStyle(a,e,!0))));var r,i,o,a})).getOr("")}}function qC(e){return af(e.getBody()).map((function(e){var t=e.container();return Wn(t)?t.parentNode:t}))}function GC(e,t){return n=e,r=d(ye.some,t),i=n,ye.from(i.selection.getRng()).bind((function(e){var t=i.getBody();return e.startContainer===t&&0===e.startOffset?ye.none():ye.from(i.selection.getStart(!0))})).orThunk(O(qC,n)).map(Ot.fromDom).filter(En).bind(r);var n,r,i}function YC(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(1<=n&&n<=7){var r=Dt.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large")),i=Dt.explode(e.getParam("font_size_classes",""));return i?i[n-1]||t:r[n-1]||t}return t}return t}var KC=Zn,XC=Jn,JC=function(e){e.on((function(e){CC(e.ghost)})),e.clear()},ZC=Jn,QC=Zn,ex=ns.DOM,tx=ns.DOM,nx=ns.DOM,rx=function(e,t,n){var r,i,o,a,s=Xv.get(n),l=Xv.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=Dt.trim(n),s&&-1===Dt.inArray(t,n)&&(Dt.each(Xv.dependencies(n),(function(n){rx(e,t,n)})),!e.plugins[n]))try{var u=new s(e,l,e.$);(e.plugins[n]=u).init&&(u.init(e,l),t.push(n))}catch(s){i=n,o=s,Cf(r=e,"PluginLoadError",{message:a=ds.translate(["Failed to initialize plugin: {0}",i])}),Sy(a,o),eb(r,a)}},ix=ns.DOM,ox={"font-size":"size","font-family":"face"},ax=WC("font-size"),sx=f((function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")}),WC("font-family")),lx=Dt.each,ux=Dt.map,cx=Dt.inArray,fx=(dx.prototype.execCommand=function(e,t,n,r){var i,o,a=!1,s=this;if(!s.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?md(o=s.editor).each((function(e){return o.selection.setRng(e)})):s.editor.focus()),(r=s.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n})).isDefaultPrevented())return!1;var l=e.toLowerCase();if(i=s.commands.exec[l])return i(l,t,n),s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(lx(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!(a=!0)})),a)return a;if(s.editor.theme&&s.editor.theme.execCommand&&s.editor.theme.execCommand(e,t,n))return s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{a=s.editor.getDoc().execCommand(e,t,n)}catch(r){}return!!a&&(s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},dx.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(e){}return!1}},dx.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(e){}}},dx.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;lx(e,(function(e,r){lx(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},dx.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,i,o,a){return t.call(n||r.editor,i,o,a)}},dx.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(e){}return!1},dx.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},dx.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},dx.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},dx.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},dx.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},dx.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},dx.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},dx.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},dx.prototype.setupCommands=function(e){var t=this;function n(t){return function(){var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),i=ux(r,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==cx(i,!0)}}this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":c,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,r){var i,o;o=r,(i=e).removed||(o?zd:function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===Cd(e)&&md(e).each((function(t){e.selection.setRng(t),r=t}));var i,o,a=(i=e,o=t.getNode(),i.dom.getParent(o,(function(e){return"true"===i.dom.getContentEditable(e)})));if(e.$.contains(n,a))return _d(a),wd(e,r),zd(e);e.inline||(xt.opera||_d(n),e.getWin().focus()),(xt.gecko||e.inline)&&(_d(n),wd(e,r)),zd(e)})(i)},"Cut,Copy,Paste":function(n){var r,i,o=e.getDoc();try{t.execNativeCommand(n)}catch(n){r=!0}!(r="paste"===n&&!o.queryCommandEnabled(n)||r)&&o.queryCommandSupported(n)||(i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead."),xt.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"}))},unlink:function(){var t;e.selection.isCollapsed()?(t=e.dom.getParent(e.selection.getStart(),"a"))&&e.dom.remove(t,!0):e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),lx("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;t.execNativeCommand(n);var i=e.dom.getParent(e.selection.getNode(),"ol,ul");i&&(r=i.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(t.storeSelection(),e.dom.split(r,i),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,{value:r})},FontName:function(t,n,r){var i,o;o=YC(i=e,r),i.formatter.toggle("fontname",{value:$(o.split(/\s*,\s*/),(function(e){return-1===e.indexOf(" ")||Ze(e,'"')||Ze(e,"'")?e:"'"+e+"'"})).join(",")}),i.nodeChanged()},FontSize:function(t,n,r){var i;(i=e).formatter.toggle("fontsize",{value:YC(i,r)}),i.nodeChanged()},LineHeight:function(t,n,r){var i;(i=e).formatter.toggle("lineheight",{value:String(r)}),i.nodeChanged()},Lang:function(e,n,r){t.toggleFormat(e,{value:r.code,customValue:r.customCode})},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,i){var o=i||e.selection.getNode();o!==e.getBody()&&(t.storeSelection(),e.dom.remove(o,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var i=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&i++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){var i,o,a,s;i=e,o=function(e){if("string"==typeof e)return{content:e,details:{}};var t=Dt.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}(r),a=o.content,s=o.details,wg(i).editor.insertContent(a,s)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var i=e.getContent();e.setContent(i.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){W_(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){Lw(e,t)},mceRepaint:c,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){"string"==typeof r&&(r={href:r});var i=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),i&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,i)},selectAll:function(){var t,n=e.dom.getParent(e.selection.getStart(),Jn);n&&((t=e.dom.createRng()).selectNodeContents(n),e.selection.setRng(t))},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return P_(e,r),!0}}),t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return Fw(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return GC(t=e,(function(e){return sx(t.getBody(),e.dom)})).getOr("");var t}),this),t.addQueryValueHandler("FontSize",(function(){return GC(t=e,(function(e){return ax(t.getBody(),e.dom)})).getOr("");var t}),this),t.addQueryValueHandler("LineHeight",(function(){return GC(t=e,(function(e){var n=Ot.fromDom(t.getBody());return Pp(e,(function(e){return kn(e,"line-height")}),O(Ue,n)).getOrThunk((function(){var t=parseFloat(Sn(e,"line-height")),n=parseFloat(Sn(e,"font-size"));return String(t/n)}))})).getOr("");var t}),this)},dx);function dx(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}function hx(e,t,n){var r,i,o,a,s,l;ws(e,t)&&!1===n?(i=t,bs(r=e)?r.dom.classList.remove(i):(s=i,0<(l=H(vs(a=r,"class"),(function(e){return e!==s}))).length?vn(a,"class",l.join(" ")):Cn(a,"class")),0===(bs(o=r)?o.dom.classList:vs(o,"class")).length&&Cn(o,"class")):n&&ys(e,t)}function px(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(e){}}function mx(e,t){e.dom.contentEditable=t?"true":"false"}function gx(e,t){var n,r,i=Ot.fromDom(e.getBody());hx(i,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),ye.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")})),mx(i,!(e.readonly=!0)),V(_s(i,'*[contenteditable="true"]'),(function(e){vn(e,yx,"true"),mx(e,!1)}))):(mx(i,!(e.readonly=!1)),V(_s(i,"*["+yx+'="true"]'),(function(e){Cn(e,yx),mx(e,!0)})),px(e,"StyleWithCSS",!1),px(e,"enableInlineTableEditing",!1),px(e,"enableObjectResizing",!1),(Cd(n=e)||(r=n,ad(Fn(Ot.fromDom(r.getElement()))).filter((function(e){return!(void 0!==(t=e.dom.classList)&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body")))&&vd(r,e.dom);var t})).isSome()))&&e.focus(),e.selection.setRng(e.selection.getRng()),e.nodeChanged())}function vx(e){return e.readonly}function bx(e){e.parser.addAttributeFilter("contenteditable",(function(t){vx(e)&&V(t,(function(e){e.attr(yx,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(yx,(function(t){vx(e)&&V(t,(function(e){e.attr("contenteditable",e.attr(yx))}))})),e.serializer.addTempAttr(yx)}var yx="data-mce-contenteditable",wx=Dt.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),_x=(Cx.isNative=function(e){return!!wx[e.toLowerCase()]},Cx.prototype.fire=function(e,t){var n=e.toLowerCase(),r=ci(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var i=this.bindings[n];if(i)for(var o=0,a=i.length;o<a;o++){var s=i[o];if(!s.removed){if(s.once&&this.off(n,s.func),r.isImmediatePropagationStopped())return r;if(!1===s.func.call(this.scope,r))return r.preventDefault(),r}}return r},Cx.prototype.on=function(e,t,n,r){if(t=!1===t?A:t){var i={func:t,removed:!1};r&&Dt.extend(i,r);for(var o=e.toLowerCase().split(" "),a=o.length;a--;){var s=o[a],l=this.bindings[s];l||(l=[],this.toggleEvent(s,!0)),l=n?Ie([i],l,!0):Ie(Ie([],l,!0),[i],!1),this.bindings[s]=l}}return this},Cx.prototype.off=function(e,t){var n=this;if(e)for(var r=e.toLowerCase().split(" "),i=r.length;i--;){var o,a=r[i],s=this.bindings[a];if(!a)return ie(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;s&&(t?(s=(o=z(s,(function(e){return e.func===t}))).fail,this.bindings[a]=s,V(o.pass,(function(e){e.removed=!0}))):s.length=0,s.length||(this.toggleEvent(e,!1),delete this.bindings[a]))}else ie(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},Cx.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},Cx.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},Cx);function Cx(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||A}function xx(e){return e._eventDispatcher||(e._eventDispatcher=new _x({scope:e,toggleEvent:function(t,n){_x.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher}function Sx(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=Bl(e);return n?(e.eventRoot||(e.eventRoot=Nx.select(n)[0]),e.eventRoot):e.getBody()}function kx(e,t,n){var r,i,o,a;e.hidden||vx(e)?vx(e)&&(r=e,"click"!==(i=n).type||Lf.metaKeyPressed(i)||(o=Ot.fromDom(i.target),a=r,_r(o,"a",(function(e){return Ue(e,Ot.fromDom(a.getBody()))})).bind((function(e){return wn(e,"href")})).each((function(e){var t,n;i.preventDefault(),/^#/.test(e)?(t=r.dom.select(e+',[name="'+(Ze(n=e,"#")?n.substring("#".length):n)+'"]')).length&&r.selection.scrollIntoView(t[0],!0):window.open(e,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})))):e.fire(t,n)}function Dx(e,t){var n,r;e.delegates||(e.delegates={}),e.delegates[t]||e.removed||(r=Sx(e,t),Bl(e)?(Ex||(Ex={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||Ex&&(ie(Ex,(function(t,n){e.dom.unbind(Sx(e,n))})),Ex=null)}))),Ex[t]||(Ex[t]=n=function(n){for(var r=n.target,i=e.editorManager.get(),o=i.length;o--;){var a=i[o].getBody();a!==r&&!Nx.isChildOf(r,a)||kx(i[o],t,n)}},Nx.bind(r,t,n))):(Nx.bind(r,t,n=function(n){kx(e,t,n)}),e.delegates[t]=n))}function Ox(e,t,n,r){var i=n[t.get()],o=n[r];try{o.activate()}catch(e){return void console.error("problem while activating editor mode "+r+":",e)}i.deactivate(),i.editorReadOnly!==o.editorReadOnly&&gx(e,o.editorReadOnly),t.set(r),e.fire("SwitchMode",{mode:r})}function Tx(e){var t,n={};Mx(Rx(e.toLowerCase(),"+"),(function(e){e in Bx?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=Fx[e]||e.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(t in Bx)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,xt.mac?n.ctrl=!0:n.shift=!0),n.meta&&(xt.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n}var Ex,Ix={fire:function(e,t,n){if(this.removed&&"remove"!==e&&"detach"!==e)return t;var r=xx(this).fire(e,t);if(!1!==n&&this.parent)for(var i=this.parent();i&&!r.isPropagationStopped();)i.fire(e,r,!1),i=i.parent();return r},on:function(e,t,n){return xx(this).on(e,t,n)},off:function(e,t){return xx(this).off(e,t)},once:function(e,t){return xx(this).once(e,t)},hasEventListeners:function(e){return xx(this).has(e)}},Nx=ns.DOM,Ax=Ee(Ee({},Ix),{bindPendingEventDelegates:function(){var e=this;Dt.each(e._pendingNativeEvents,(function(t){Dx(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?Dx(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(Sx(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(ie(e.delegates,(function(t,n){e.dom.unbind(Sx(e,n),n,t)})),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),Px=["design","readonly"],Mx=Dt.each,Rx=Dt.explode,Fx={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Bx=Dt.makeMap("alt,ctrl,shift,meta,access"),Lx=($x.prototype.add=function(e,t,n,r){var i=this,o=i.normalizeCommandFunc(n);return Mx(Rx(Dt.trim(e)),(function(e){var n=i.createShortcut(e,t,o,r);i.shortcuts[n.id]=n})),!0},$x.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},$x.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"==typeof n?function(){t.editor.execCommand(n,!1,null)}:Dt.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},$x.prototype.createShortcut=function(e,t,n,r){var i=Dt.map(Rx(e,">"),Tx);return i[i.length-1]=Dt.extend(i[i.length-1],{func:n,scope:r||this.editor}),Dt.extend(i[0],{desc:this.editor.translate(t),subpatterns:i.slice(1)})},$x.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},$x.prototype.isFunctionKey=function(e){return"keydown"===e.type&&112<=e.keyCode&&e.keyCode<=123},$x.prototype.matchShortcut=function(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)},$x.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},$x);function $x(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(Mx(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}var Vx=ns.DOM,jx=Dt.extend,zx=Dt.each,Hx=Dt.resolve,Ux=xt.ie,Wx=(qx.prototype.render=function(){!function(e){var t=e.id;ds.setCode(Pl(e));var n,r,i,o,a=function(){ix.unbind(window,"ready",a),e.render()};co.Event.domLoaded?e.getElement()&&xt.contentEditable&&(n=Ot.fromDom(e.getElement()),r=W(n.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{}),e.on("remove",(function(){j(n.dom.attributes,(function(e){return Cn(n,e.name),0})),bn(n,r)})),e.ui.styleSheetLoader=Nr.forElement(n,{contentCssCors:(i=e).getParam("content_css_cors"),referrerPolicy:Al(i)}),e.getParam("inline")?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden"),(o=e.getElement().form||ix.getParent(t,"form"))&&(e.formElement=o,e.getParam("hidden_input")&&!Un(e.getElement())&&(ix.insertAfter(ix.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},ix.bind(o,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!e.getParam("submit_patch")||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),o._mceOldSubmit(o)})),e.windowManager=Zv(e),e.notificationManager=Ov(e),"xml"===e.getParam("encoding")&&e.on("GetContent",(function(e){e.save&&(e.content=ix.encode(e.content))})),e.getParam("add_form_submit_trigger")&&e.on("submit",(function(){e.initialized&&e.save()})),e.getParam("add_unload_trigger")&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),UC(e,e.suffix)):ix.bind(window,"ready",a)}(this)},qx.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},qx.prototype.hasFocus=function(){return Cd(this)},qx.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=this.settings[e];if(i)return this.callbackLookup&&(r=this.callbackLookup[e])&&(i=r.func,r=r.scope),"string"==typeof i&&(r=(r=i.replace(/\.\w+$/,""))?Hx(r):0,i=Hx(i),this.callbackLookup=this.callbackLookup||{},this.callbackLookup[e]={func:i,scope:r}),i.apply(r||this,t)},qx.prototype.translate=function(e){return ds.translate(e)},qx.prototype.getParam=function(e,t,n){return o=t,a=n,c=(i=e)in(r=this).settings?r.settings[i]:o,"hash"===a?(u={},"string"==typeof(l=c)?V(0<l.indexOf("=")?l.split(/[;,](?![^=;,]*(?:[;,]|$))/):l.split(","),(function(e){var t=e.split("=");1<t.length?u[Dt.trim(t[0])]=Dt.trim(t[1]):u[Dt.trim(t[0])]=Dt.trim(t[0])})):u=l,u):"string"===a?xv(y,r,i).getOr(o):"number"===a?xv(D,r,i).getOr(o):"boolean"===a?xv(x,r,i).getOr(o):"object"===a?xv(w,r,i).getOr(o):"array"===a?xv(_,r,i).getOr(o):"string[]"===a?xv((s=y,function(e){return _(e)&&X(e,s)}),r,i).getOr(o):"function"===a?xv(k,r,i).getOr(o):c;var r,i,o,a,s,l,u,c},qx.prototype.hasPlugin=function(e,t){return!(!B(Vl(this).split(/[ ,]/),e)||t&&void 0===Xv.get(e))},qx.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},qx.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},qx.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},qx.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},qx.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},qx.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},qx.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},qx.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},qx.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},qx.prototype.show=function(){this.hidden&&(this.hidden=!1,this.inline?this.getBody().contentEditable="true":(Vx.show(this.getContainer()),Vx.hide(this.id)),this.load(),this.fire("show"))},qx.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(Ux&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(Vx.hide(e.getContainer()),Vx.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},qx.prototype.isHidden=function(){return!!this.hidden},qx.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},qx.prototype.load=function(e){var t=this.getElement();if(this.removed)return"";if(t){(e=e||{}).load=!0;var n=Un(t)?t.value:t.innerHTML,r=this.setContent(n,e);return e.element=t,e.no_events||this.fire("LoadContent",e),e.element=t=null,r}},qx.prototype.save=function(e){var t,n,r=this,i=r.getElement();if(i&&r.initialized&&!r.removed)return(e=e||{}).save=!0,e.element=i,e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Un(i)?i.value=t:(!e.is_removing&&r.inline||(i.innerHTML=t),(n=Vx.getParent(r.id,"form"))&&zx(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=i=null,!1!==e.set_dirty&&r.setDirty(!1),t},qx.prototype.setContent=function(e,t){return mv(this,e,t)},qx.prototype.getContent=function(e){return t=this,r=(n=void 0===(n=e)?{}:n).format||"html",i=n,wg(t).editor.getContent(i,r);var t,n,r,i},qx.prototype.insertContent=function(e,t){t&&(e=jx({content:e},t)),this.execCommand("mceInsertContent",!1,e)},qx.prototype.resetContent=function(e){void 0===e?mv(this,this.startContent,{format:"raw"}):mv(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},qx.prototype.isDirty=function(){return!this.isNotDirty},qx.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},qx.prototype.getContainer=function(){return this.container||(this.container=Vx.get(this.editorContainer||this.id+"_parent")),this.container},qx.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},qx.prototype.getElement=function(){return this.targetElm||(this.targetElm=Vx.get(this.id)),this.targetElm},qx.prototype.getWin=function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},qx.prototype.getDoc=function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},qx.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},qx.prototype.convertURL=function(e,t,n){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!r.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:r.relative_urls?this.documentBaseURI.toRelative(e):this.documentBaseURI.toAbsolute(e,r.remove_script_host)},qx.prototype.addVisual=function(e){var t;t=e,_g(this).editor.addVisual(t)},qx.prototype.remove=function(){var e,t,n,r,i;(e=this).removed||(t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),i=e.getElement(),r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&i&&Mv.remove(i.nextSibling),e.fire("remove"),e.editorManager.remove(e),!e.inline&&r&&Mv.setStyle(e.id,"display",e.orgDisplay),e.fire("detach"),Mv.remove(e.getContainer()),gv(t),gv(n),e.destroy())},qx.prototype.destroy=function(e){var t,n,r,i,o,a,s;n=e,a=(t=this).selection,s=t.dom,t.destroyed||(n||t.removed?(n||(t.editorManager.off("beforeunload",t._beforeUnload),t.theme&&t.theme.destroy&&t.theme.destroy(),gv(a),gv(s)),(i=(r=t).formElement)&&(i._mceOldSubmit&&(i.submit=i._mceOldSubmit,i._mceOldSubmit=null),Mv.unbind(i,"submit reset",r.formEventDelegate)),(o=t).contentAreaContainer=o.formElement=o.container=o.editorContainer=null,o.bodyElement=o.contentDocument=o.contentWindow=null,o.iframeElement=o.targetElm=null,o.selection&&(o.selection=o.selection.win=o.selection.dom=o.selection.dom.doc=null),t.destroyed=!0):t.remove())},qx.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},qx.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},qx.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},qx.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},qx.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},qx.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},qx);function qx(e,t,n){var r,i,o,a,s,l,u,f,d,h,p,m,g,v,b,y,w,_,C=this;function x(e,t){return function(n,r){return e[n.toLowerCase()]=Ee(Ee({},r),{type:t})}}this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,jx(this,Ax),this.settings=(h=(d=this).documentBaseUrl,p=n.defaultSettings,g=h,v=Vv,b=d,y={id:e,theme:"silver",toolbar_mode:wv(m=t,"floating"),plugins:"",document_base_url:g,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:b.convertURL,url_converter_scope:b},w=Ee(Ee({},y),v?Uv:{}),!1!==(_=Cv(jv||zv,jv,w,p,m)).deprecation_warnings&&vv(m,_),_),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(as.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),ns.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),hs.languageLoad=this.settings.language_load,hs.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new iv(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new Lx(this),this.editorCommands=new fx(this),this.settings.cache_suffix&&(xt.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:{addAutocompleter:(s={},(r={addButton:x(i={},"button"),addGroupToolbarButton:x(i,"grouptoolbarbutton"),addToggleButton:x(i,"togglebutton"),addMenuButton:x(i,"menubutton"),addSplitButton:x(i,"splitbutton"),addMenuItem:x(o={},"menuitem"),addNestedMenuItem:x(o,"nestedmenuitem"),addToggleMenuItem:x(o,"togglemenuitem"),addAutocompleter:x(a={},"autocompleter"),addContextMenu:x(l={},"contextmenu"),addContextToolbar:x(u={},"contexttoolbar"),addContextForm:x(u,"contextform"),addSidebar:x(f={},"sidebar"),addIcon:function(e,t){return s[e.toLowerCase()]=t},getAll:function(){return{buttons:i,menuItems:o,icons:s,popups:a,contextMenus:l,contextToolbars:u,sidebars:f}}}).addAutocompleter),addButton:r.addButton,addContextForm:r.addContextForm,addContextMenu:r.addContextMenu,addContextToolbar:r.addContextToolbar,addIcon:r.addIcon,addMenuButton:r.addMenuButton,addMenuItem:r.addMenuItem,addNestedMenuItem:r.addNestedMenuItem,addSidebar:r.addSidebar,addSplitButton:r.addSplitButton,addToggleButton:r.addToggleButton,addGroupToolbarButton:r.addGroupToolbarButton,addToggleMenuItem:r.addToggleMenuItem,getAll:r.getAll},styleSheetLoader:void 0,show:c,hide:c,enable:c,disable:c,isDisabled:A};var S,k,D,O,T,E=(O=ls("design"),T=ls({design:{activate:c,deactivate:c,editorReadOnly:!1},readonly:{activate:c,deactivate:c,editorReadOnly:!0}}),(k=S=this).serializer?bx(k):k.on("PreInit",(function(){bx(k)})),(D=S).on("ShowCaret",(function(e){vx(D)&&e.preventDefault()})),D.on("ObjectSelected",(function(e){vx(D)&&e.preventDefault()})),{isReadOnly:function(){return vx(S)},set:function(e){return function(e,t,n,r){if(r!==n.get()){if(!Oe(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?Ox(e,n,t,r):e.on("init",(function(){return Ox(e,n,t,r)}))}}(S,T.get(),O,e)},get:function(){return O.get()},register:function(e,t){T.set(function(e,t,n){var r;if(B(Px,t))throw new Error("Cannot override default mode "+t);return Ee(Ee({},e),((r={})[t]=Ee(Ee({},n),{deactivate:function(){try{n.deactivate()}catch(e){console.error("problem while deactivating editor mode "+t+":",e)}}}),r))}(T.get(),e,t))}});this.mode=E,this.setMode=E.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Ja.overrideDefaults((function(){return{context:C.inline?C.getBody():C.getDoc(),element:C.getBody()}}))}function Gx(e){var t=e.type;Qx(aS.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e)}}))}function Yx(e){e!==nS&&(e?Ja(window).on("resize scroll",Gx):Ja(window).off("resize scroll",Gx),nS=e)}function Kx(e){var t=iS;delete rS[e.id];for(var n=0;n<rS.length;n++)if(rS[n]===e){rS.splice(n,1);break}return iS=H(iS,(function(t){return e!==t})),aS.activeEditor===e&&(aS.activeEditor=0<iS.length?iS[0]:null),aS.focusedEditor===e&&(aS.focusedEditor=null),t.length!==iS.length}var Xx,Jx=ns.DOM,Zx=Dt.explode,Qx=Dt.each,eS=Dt.extend,tS=0,nS=!1,rS=[],iS=[],oS="CSS1Compat"!==document.compatMode,aS=Ee(Ee({},Ix),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Ja,majorVersion:"5",minorVersion:"10.9",releaseDate:"2023-11-15",editors:rS,i18n:ds,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t="",n=iv.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(n)&&(n=n.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(n)||(n+="/"));var r=window.tinymce||window.tinyMCEPreInit;if(r)e=r.base||r.baseURL,t=r.suffix;else{for(var i,o=document.getElementsByTagName("script"),a=0;a<o.length;a++)if(""!==(i=o[a].src||"")){var s=i.substring(i.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(i)){-1!==s.indexOf(".min")&&(t=".min"),e=i.substring(0,i.lastIndexOf("/"));break}}!e&&document.currentScript&&(-1!==(i=document.currentScript.src).indexOf(".min")&&(t=".min"),e=i.substring(0,i.lastIndexOf("/")))}this.baseURL=new iv(n).toAbsolute(e),this.documentBaseURL=n,this.baseURI=new iv(this.baseURL),this.suffix=t,this.on("AddEditor",O(bd,this)),this.on("RemoveEditor",O(yd,this))},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n);var r=(this.defaultSettings=e).plugin_base_urls;void 0!==r&&ie(r,(function(e,t){hs.PluginManager.urls[t]=e}))},init:function(e){function t(e){var t=e.id;return t||(t=ue(e,"name").filter((function(e){return!Jx.get(e)})).getOrThunk(Jx.uniqueId),e.setAttribute("id",t)),t}function n(e,t){return t.constructor===RegExp?t.test(e.className):Jx.hasClass(e,t)}var r,i=this,o=Dt.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),a=function(e){r=e},s=function(){function r(e,t,n){var r=new Wx(e,t,i);f.push(r),r.on("init",(function(){++c===l.length&&a(f)})),r.targetElm=r.targetElm||n,r.render()}var l,u,c=0,f=[];Jx.unbind(window,"ready",s),(u=e.onpageload)&&u.apply(i,[]),l=Ja.unique(function(e){var t=[];if(xt.browser.isIE()&&xt.browser.version.major<11)return Sy("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(oS)return Sy("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return Qx(e.types,(function(e){t=t.concat(Jx.select(e.selector))})),t;if(e.selector)return Jx.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var r=e.elements||"";0<r.length&&Qx(Zx(r),(function(e){var n=Jx.get(e);n?t.push(n):Qx(document.forms,(function(n){Qx(n.elements,(function(n){n.name===e&&(e="mce_editor_"+tS++,Jx.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":Qx(Jx.select("textarea"),(function(r){e.editor_deselector&&n(r,e.editor_deselector)||e.editor_selector&&!n(r,e.editor_selector)||t.push(r)}))}return t}(e)),e.types?Qx(e.types,(function(n){Dt.each(l,(function(i){return!Jx.is(i,n.selector)||(r(t(i),eS({},e,n),i),!1)}))})):(Dt.each(l,(function(e){var t;(t=i.get(e.id))&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(Kx(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0)})),0===(l=Dt.grep(l,(function(e){return!i.get(e.id)}))).length?a([]):Qx(l,(function(n){var i=n;e.inline&&i.tagName.toLowerCase()in o?Sy("Could not initialize inline editor on invalid inline target element",n):r(t(n),e,n)})))};return i.settings=e,Jx.bind(window,"ready",s),new Er((function(e){r?e(r):a=function(t){e(t)}}))},get:function(e){return 0===arguments.length?iS.slice(0):y(e)?G(iS,(function(t){return t.id===e})).getOr(null):D(e)&&iS[e]||null},add:function(e){var t=this;return rS[e.id]===e||(null===t.get(e.id)&&("length"!==e.id&&(rS[e.id]=e),rS.push(e),iS.push(e)),Yx(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),Xx||(Xx=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",Xx))),e},createEditor:function(e,t){return this.add(new Wx(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!y(e))return n=e,C(r.get(n.id))?null:(Kx(n)&&r.fire("RemoveEditor",{editor:n}),0===iS.length&&window.removeEventListener("beforeunload",Xx),n.remove(),Yx(0<iS.length),n);Qx(Jx.select(e),(function(e){(n=r.get(e.id))&&r.remove(n)}))}else for(t=iS.length-1;0<=t;t--)r.remove(iS[t])},execCommand:function(e,t,n){var r=this.get(n);switch(e){case"mceAddEditor":return this.get(n)||new Wx(n,this.settings,this).render(),!0;case"mceRemoveEditor":return r&&r.remove(),!0;case"mceToggleEditor":return r?r.isHidden()?r.show():r.hide():this.execCommand("mceAddEditor",!1,n),!0}return!!this.activeEditor&&this.activeEditor.execCommand(e,t,n)},triggerSave:function(){Qx(iS,(function(e){e.save()}))},addI18n:function(e,t){ds.add(e,t)},translate:function(e){return ds.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new iv(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new iv(this.baseURL)}});function sS(e,t,n){var r=t.x,i=t.y,o=e.w,a=e.h,s=t.w,l=t.h,u=(n||"").split("");return"b"===u[0]&&(i+=l),"r"===u[1]&&(r+=s),"c"===u[0]&&(i+=gS(l/2)),"c"===u[1]&&(r+=gS(s/2)),"b"===u[3]&&(i-=a),"r"===u[4]&&(r-=o),"c"===u[3]&&(i-=gS(a/2)),"c"===u[4]&&(r-=gS(o/2)),uS(r,i,o,a)}function lS(){}function uS(e,t,n,r){return{x:e,y:t,w:n,h:r}}aS.setup();var cS,fS,dS,hS,pS=Math.min,mS=Math.max,gS=Math.round,vS={inflate:function(e,t,n){return uS(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},relativePosition:sS,findBestRelativePosition:function(e,t,n,r){for(var i,o=0;o<r.length;o++)if((i=sS(e,t,r[o])).x>=n.x&&i.x+i.w<=n.w+n.x&&i.y>=n.y&&i.y+i.h<=n.h+n.y)return r[o];return null},intersect:function(e,t){var n=mS(e.x,t.x),r=mS(e.y,t.y),i=pS(e.x+e.w,t.x+t.w),o=pS(e.y+e.h,t.y+t.h);return i-n<0||o-r<0?null:uS(n,r,i-n,o-r)},clamp:function(e,t,n){var r=e.x,i=e.y,o=e.x+e.w,a=e.y+e.h,s=t.x+t.w,l=t.y+t.h,u=mS(0,t.x-r),c=mS(0,t.y-i),f=mS(0,o-s),d=mS(0,a-l);return r+=u,i+=c,n&&(o+=u,a+=c,r-=f,i-=d),uS(r,i,(o-=f)-r,(a-=d)-i)},create:uS,fromClientRect:function(e){return uS(e.left,e.top,e.width,e.height)}},bS=(cS={},fS={},{load:function(e,t){var n='Script at URL "'+t+'" failed to load',r='Script at URL "'+t+"\" did not call `tinymce.Resource.add('"+e+"', data)` within 1 second";if(void 0!==cS[e])return cS[e];var i=new Er((function(i,o){var a=function(e,t,n){function r(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];i||(i=!0,null!==o&&(clearTimeout(o),o=null),e.apply(null,t))}}void 0===n&&(n=1e3);var i=!1,o=null,a=r(e),s=r(t);return{start:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i||null!==o||(o=setTimeout((function(){return s.apply(null,e)}),n))},resolve:a,reject:s}}(i,o);fS[e]=a.resolve,as.ScriptLoader.loadScript(t,(function(){return a.start(r)}),(function(){return a.reject(n)}))}));return cS[e]=i},add:function(e,t){void 0!==fS[e]&&(fS[e](t),delete fS[e]),cS[e]=Er.resolve(t)}}),yS=Dt.each,wS=Dt.extend;lS.extend=dS=function(e){function t(){var e,t,n;if(!hS&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)}function n(){return this}var r=this.prototype;hS=!0;var i=new this;return hS=!1,e.Mixins&&(yS(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),r.Mixins&&(e.Mixins=r.Mixins.concat(e.Mixins))),e.Methods&&yS(e.Methods.split(","),(function(t){e[t]=n})),e.Properties&&yS(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){return void 0!==e?(this[n]=e,this):this[n]}})),e.Statics&&yS(e.Statics,(function(e,n){t[n]=e})),e.Defaults&&r.Defaults&&(e.Defaults=wS({},r.Defaults,e.Defaults)),ie(e,(function(e,t){var n,o;"function"==typeof e&&r[t]?i[t]=(n=t,o=e,function(){var e=this._super;this._super=r[n];var t=o.apply(this,arguments);return this._super=e,t}):i[t]=e})),t.prototype=i,(t.constructor=t).extend=dS,t};var _S,CS,xS,SS=Math.min,kS=Math.max,DS=Math.round,OS={serialize:function(e){var t=JSON.stringify(e);return y(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},parse:function(e){try{return JSON.parse(e)}catch(e){}}},TS={callbacks:{},count:0,send:function(e){var t=this,n=ns.DOM,r=(void 0!==e.count?e:t).count,i="tinymce_jsonp_"+r;t.callbacks[r]=function(o){n.remove(i),delete t.callbacks[r],e.callback(o)},n.add(n.doc.body,"script",{id:i,src:e.url,type:"text/javascript"}),t.count++}},ES=Ee(Ee({},Ix),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||1e4<n++?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,1e4<n?"TIMED_OUT":"GENERAL",t,e),t=null):Ir.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",ES.fire("beforeInitialize",{settings:e}),(t=new XMLHttpRequest).overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&Dt.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),(t=ES.fire("beforeSend",{xhr:t,settings:e}).xhr).send(e.data),!e.async)return r();Ir.setTimeout(r,10)}}),IS=Dt.extend,NS=(AS.sendRPC=function(e){return(new AS).send(e)},AS.prototype.send=function(e){var t=e.error,n=e.success,r=IS(this.settings,e);r.success=function(e,i){(e=void 0===(e=OS.parse(e))?{error:"JSON Parse error."}:e).error?t.call(r.error_scope||r.scope,e.error,i):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=OS.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",ES.send(r)},AS);function AS(e){this.settings=IS({},e),this.count=0}try{var PS,MS="__storage_test__";(PS=window.localStorage).setItem(MS,MS),PS.removeItem(MS)}catch(o){_S={},CS=[],xS={getItem:function(e){return _S[e]||null},setItem:function(e,t){CS.push(e),_S[e]=String(t)},key:function(e){return CS[e]},removeItem:function(e){CS=CS.filter((function(t){return t===e})),delete _S[e]},clear:function(){CS=[],_S={}},length:0},Object.defineProperty(xS,"length",{get:function(){return CS.length},configurable:!1,enumerable:!1}),PS=xS}var RS={geom:{Rect:vS},util:{Promise:Er,Delay:Ir,Tools:Dt,VK:Lf,URI:iv,Class:lS,EventDispatcher:_x,Observable:Ix,I18n:ds,XHR:ES,JSON:OS,JSONRequest:NS,JSONP:TS,LocalStorage:PS,Color:function(e){function t(e){var t;return"object"==typeof e?"r"in e?(r=e.r,i=e.g,o=e.b):"v"in e&&function(e,t,n){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,n=parseInt(n,10)/100,t=kS(0,SS(t,1)),n=kS(0,SS(n,1)),0!==t){var a=e/60,s=n*t,l=s*(1-Math.abs(a%2-1)),u=n-s;switch(Math.floor(a)){case 0:r=s,i=l,o=0;break;case 1:r=l,i=s,o=0;break;case 2:r=0,i=s,o=l;break;case 3:r=0,i=l,o=s;break;case 4:r=l,i=0,o=s;break;case 5:r=s,i=0,o=l;break;default:r=i=o=0}r=DS(255*(r+u)),i=DS(255*(i+u)),o=DS(255*(o+u))}else r=i=o=DS(255*n)}(e.h,e.s,e.v):(t=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(r=parseInt(t[1],10),i=parseInt(t[2],10),o=parseInt(t[3],10)):(t=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(r=parseInt(t[1],16),i=parseInt(t[2],16),o=parseInt(t[3],16)):(t=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(r=parseInt(t[1]+t[1],16),i=parseInt(t[2]+t[2],16),o=parseInt(t[3]+t[3],16)),r=r<0?0:255<r?255:r,i=i<0?0:255<i?255:i,o=o<0?0:255<o?255:o,n}var n={},r=0,i=0,o=0;return e&&t(e),n.toRgb=function(){return{r:r,g:i,b:o}},n.toHsv=function(){return e=r,t=i,n=o,s=0,(l=SS(e/=255,SS(t/=255,n/=255)))===(u=kS(e,kS(t,n)))?{h:0,s:0,v:100*(s=l)}:(a=(u-l)/u,{h:DS(60*((e===l?3:n===l?1:5)-(e===l?t-n:n===l?e-t:n-e)/((s=u)-l))),s:DS(100*a),v:DS(100*s)});var e,t,n,a,s,l,u},n.toHex=function(){function e(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e}return"#"+e(r)+e(i)+e(o)},n.parse=t,n},ImageUploader:function(e){var t=ob(),n=cb(e,t);return{upload:function(t,r){return n.upload(t,(r=void 0===r||r)?ub(e):void 0)}}}},dom:{EventUtils:co,Sizzle:fa,DomQuery:Ja,TreeWalker:Ar,TextSeeker:Is,DOMUtils:ns,ScriptLoader:as,RangeUtils:Bf,Serializer:pv,StyleSheetLoader:kr,ControlSelection:kf,BookmarkManager:Hc,Selection:Vg,Event:co.Event},html:{Styles:li,Entities:eo,Node:Ud,Schema:ai,SaxParser:sv,DomParser:fv,Writer:ih,Serializer:oh},Env:xt,AddOnManager:hs,Annotator:zc,Formatter:mb,UndoManager:vb,EditorCommands:fx,WindowManager:Zv,NotificationManager:Ov,EditorObservable:Ax,Shortcuts:Lx,Editor:Wx,FocusManager:Vd,EditorManager:aS,DOM:ns.DOM,ScriptLoader:as.ScriptLoader,PluginManager:Xv,ThemeManager:Jv,IconManager:Wv,Resource:bS,trim:Dt.trim,isArray:Dt.isArray,is:Dt.is,toArray:Dt.toArray,makeMap:Dt.makeMap,each:Dt.each,map:Dt.map,grep:Dt.grep,inArray:Dt.inArray,extend:Dt.extend,create:Dt.create,walk:Dt.walk,createNS:Dt.createNS,resolve:Dt.resolve,explode:Dt.explode,_addCacheSuffix:Dt._addCacheSuffix,isOpera:xt.opera,isWebKit:xt.webkit,isIE:xt.ie,isGecko:xt.gecko,isMac:xt.mac},FS=Dt.extend(aS,RS),BS=FS;window.tinymce=BS,window.tinyMCE=BS,function(t){try{e.exports=t}catch(t){}}(FS)}()}).call(this,n("c8ba"))},"78c7":function(e,t,n){"use strict";var r=n("1cba"),i=n("67f0"),o=function(){function e(){}return e.decode=function(e,t){var n=this.encodingName(t);return this.customDecoder?this.customDecoder(e,n):"undefined"===typeof TextDecoder||this.shouldDecodeOnFallback(n)?this.decodeFallback(e,n):new TextDecoder(n).decode(e)},e.shouldDecodeOnFallback=function(t){return!e.isBrowser()&&"ISO-8859-1"===t},e.encode=function(e,t){var n=this.encodingName(t);return this.customEncoder?this.customEncoder(e,n):"undefined"===typeof TextEncoder?this.encodeFallback(e):(new TextEncoder).encode(e)},e.isBrowser=function(){return"undefined"!==typeof window&&"[object Window]"==={}.toString.call(window)},e.encodingName=function(e){return"string"===typeof e?e:e.getName()},e.encodingCharacterSet=function(e){return e instanceof i["a"]?e:i["a"].getCharacterSetECIByName(e)},e.decodeFallback=function(t,n){var o=this.encodingCharacterSet(n);if(e.isDecodeFallbackSupported(o)){for(var a="",s=0,l=t.length;s<l;s++){var u=t[s].toString(16);u.length<2&&(u="0"+u),a+="%"+u}return decodeURIComponent(a)}if(o.equals(i["a"].UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(t.buffer));throw new r["a"]("Encoding "+this.encodingName(n)+" not supported by fallback.")},e.isDecodeFallbackSupported=function(e){return e.equals(i["a"].UTF8)||e.equals(i["a"].ISO8859_1)||e.equals(i["a"].ASCII)},e.encodeFallback=function(e){for(var t=btoa(unescape(encodeURIComponent(e))),n=t.split(""),r=[],i=0;i<n.length;i++)r.push(n[i].charCodeAt(0));return new Uint8Array(r)},e}();t["a"]=o},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},7978:function(e,t,n){"use strict";var r=n("d0b6"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.getFormatInstance=function(){return new t},t.kind="FormatException",t}(r["a"]);t["a"]=o},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7a37":function(e,t,n){"use strict";var r=function(){function e(e,t){this.bits=e,this.points=t}return e.prototype.getBits=function(){return this.bits},e.prototype.getPoints=function(){return this.points},e}();t["a"]=r},"7a56":function(e,t,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},"7b3e":function(e,t,n){"use strict";var r,i=n("a3de");
8
8
  /**
9
9
  * Checks if an event is supported in the current execution environment.
10
10
  *