app.8c126242.js 801 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*!
  2. * build: Hopaheal
  3. * copyright: Mead
  4. * time: 2022-6-7 11:38:49
  5. */(function(e){function t(t){for(var r,o,u=t[0],s=t[1],c=t[2],l=0,f=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&f.push(i[o][0]),i[o]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);d&&d(t);while(f.length)f.shift()();return a.push.apply(a,c||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,o=1;o<n.length;o++){var u=n[o];0!==i[u]&&(r=!1)}r&&(a.splice(t--,1),e=s(s.s=n[0]))}return e}var r={},o={app:0},i={app:0},a=[];function u(e){return s.p+"static/js/"+({"chunk-d939e436":"chunk-d939e436","chunk-89a6d8ff":"chunk-89a6d8ff"}[e]||e)+"."+{"chunk-06c25441":"f156b741","chunk-1bb16ba4":"b8d8bae6","chunk-23f4bb69":"35f123d8","chunk-2e0ff522":"72adb78f","chunk-47c150ca":"fb34417d","chunk-52b1447c":"79ec2728","chunk-5642fb22":"d4476b4f","chunk-5e8c6ca8":"9357b2c0","chunk-670da3bb":"87e7da12","chunk-686cc3f0":"e472b9e3","chunk-6ea10d1e":"09bc1711","chunk-710fdf81":"1e6bc89b","chunk-88562136":"837a1aa8","chunk-93b7fa1c":"244db910","chunk-93e80a26":"27f17c48","chunk-a419cf34":"f0672d9f","chunk-b5bc11ec":"fde8045a","chunk-c8f5582a":"d61560f3","chunk-cd006518":"9209b760","chunk-d939e436":"a123df0b","chunk-89a6d8ff":"9a573d13","chunk-00e35e3c":"e9c41e85","chunk-13151101":"cfd3d587","chunk-646ef995":"4fd3d7a9","chunk-44d2eeab":"c373875f","chunk-0b1e0316":"24527263","chunk-1aa7186e":"d7c9be5a","chunk-2214a5a2":"083a0311","chunk-35cfdf82":"a8fc2fe7","chunk-3cf856ae":"d4ffe975","chunk-3e57e041":"646ee3d9","chunk-5c635c06":"df592ec5","chunk-5dbb0c84":"6156c07d","chunk-6357b5de":"f771737f","chunk-672d027a":"468aeb77","chunk-837153b4":"72852c15","chunk-887d8434":"33f6e7bc","chunk-9dbe6f0c":"b8faf4cb","chunk-e87aa4a8":"260cb2d9","chunk-e8b59212":"2962af07","chunk-fc198122":"2387c407","chunk-d9a12c9c":"806f1281","chunk-ee0820be":"348a48c2"}[e]+".js"}function s(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.e=function(e){var t=[],n={"chunk-1bb16ba4":1,"chunk-23f4bb69":1,"chunk-2e0ff522":1,"chunk-47c150ca":1,"chunk-52b1447c":1,"chunk-5642fb22":1,"chunk-5e8c6ca8":1,"chunk-670da3bb":1,"chunk-686cc3f0":1,"chunk-6ea10d1e":1,"chunk-710fdf81":1,"chunk-88562136":1,"chunk-93b7fa1c":1,"chunk-93e80a26":1,"chunk-a419cf34":1,"chunk-b5bc11ec":1,"chunk-c8f5582a":1,"chunk-cd006518":1,"chunk-89a6d8ff":1,"chunk-13151101":1,"chunk-646ef995":1,"chunk-44d2eeab":1,"chunk-0b1e0316":1,"chunk-1aa7186e":1,"chunk-2214a5a2":1,"chunk-35cfdf82":1,"chunk-3cf856ae":1,"chunk-3e57e041":1,"chunk-5c635c06":1,"chunk-5dbb0c84":1,"chunk-6357b5de":1,"chunk-672d027a":1,"chunk-837153b4":1,"chunk-887d8434":1,"chunk-9dbe6f0c":1,"chunk-e87aa4a8":1,"chunk-e8b59212":1,"chunk-fc198122":1,"chunk-d9a12c9c":1,"chunk-ee0820be":1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var r="static/css/"+({"chunk-d939e436":"chunk-d939e436","chunk-89a6d8ff":"chunk-89a6d8ff"}[e]||e)+"."+{"chunk-06c25441":"31d6cfe0","chunk-1bb16ba4":"2c35b14c","chunk-23f4bb69":"e579052c","chunk-2e0ff522":"44cf92e0","chunk-47c150ca":"f92f7860","chunk-52b1447c":"9228ece9","chunk-5642fb22":"8630d5ea","chunk-5e8c6ca8":"117c37c0","chunk-670da3bb":"a184fc21","chunk-686cc3f0":"2cd4648b","chunk-6ea10d1e":"af6ef035","chunk-710fdf81":"6ab05bb2","chunk-88562136":"5f08eeb2","chunk-93b7fa1c":"01b0cee5","chunk-93e80a26":"ec6bf0d1","chunk-a419cf34":"b591c06f","chunk-b5bc11ec":"720bbd43","chunk-c8f5582a":"101e87df","chunk-cd006518":"9697c886","chunk-d939e436":"31d6cfe0","chunk-89a6d8ff":"103f482b","chunk-00e35e3c":"31d6cfe0","chunk-13151101":"c6dcffed","chunk-646ef995":"f9b83401","chunk-44d2eeab":"21f64c6c","chunk-0b1e0316":"ee5781f7","chunk-1aa7186e":"29578929","chunk-2214a5a2":"fe208618","chunk-35cfdf82":"d9c8bbf2","chunk-3cf856ae":"538933b1","chunk-3e57e041":"2c500b14","chunk-5c635c06":"34217e80","chunk-5dbb0c84":"da0f0164","chunk-6357b5de":"07775b91","chunk-672d027a":"06c757fd","chunk-837153b4":"955ff311","chunk-887d8434":"1027ca32","chunk-9dbe6f0c":"e9b4430f","chunk-e87aa4a8":"c8e54317","chunk-e8b59212":"d52adc93","chunk-fc198122":"714f74c7","chunk-d9a12c9c":"4d0a612d","chunk-ee0820be":"5e34ecc7"}[e]+".css",i=s.p+r,a=document.getElementsByTagName("link"),u=0;u<a.length;u++){var c=a[u],l=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(l===r||l===i))return t()}var f=document.getElementsByTagName("style");for(u=0;u<f.length;u++){c=f[u],l=c.getAttribute("data-href");if(l===r||l===i)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var r=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=r,delete o[e],d.parentNode.removeChild(d),n(a)},d.href=i;var h=document.getElementsByTagName("head")[0];h.appendChild(d)})).then((function(){o[e]=0})));var r=i[e];if(0!==r)if(r)t.push(r[2]);else{var a=new Promise((function(t,n){r=i[e]=[t,n]}));t.push(r[2]=a);var c,l=document.createElement("script");l.charset="utf-8",l.timeout=120,s.nc&&l.setAttribute("nonce",s.nc),l.src=u(e);var f=new Error;c=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=i[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",f.name="ChunkLoadError",f.type=r,f.request=o,n[1](f)}i[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:l})}),12e4);l.onerror=l.onload=c,document.head.appendChild(l)}return Promise.all(t)},s.m=e,s.c=r,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)s.d(n,r,function(t){return e[t]}.bind(null,r));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var f=0;f<c.length;f++)t(c[f]);var d=l;a.push([0,"element-ui","vue"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"00ce":function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,u=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(A){s=null}var c=function(){throw new a},l=s?function(){try{return c}catch(e){try{return s(arguments,"callee").get}catch(t){return c}}}():c,f=n("5156")(),d=Object.getPrototypeOf||function(e){return e.__proto__},h={},p="undefined"===typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=u("async function () {}");else if("%GeneratorFunction%"===t)n=u("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=u("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return m[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n("0f7c"),y=n("a0d3"),w=b.call(Function.call,Array.prototype.concat),x=b.call(Function.apply,Array.prototype.splice),_=b.call(Function.call,String.prototype.replace),C=b.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,E=function(e){var t=C(e,0,1),n=C(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,S,(function(e,t,n,o){r[r.length]=n?_(o,k,"$1"):t||e})),r},O=function(e,t){var n,r=e;if(y(v,r)&&(n=v[r],r="%"+n[0]+"%"),y(m,r)){var i=m[r];if(i===h&&(i=g(r)),"undefined"===typeof i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');var n=E(e),r=n.length>0?n[0]:"",i=O("%"+r+"%",t),u=i.name,c=i.value,l=!1,f=i.alias;f&&(r=f[0],x(n,w([0,1],f)));for(var d=1,h=!0;d<n.length;d+=1){var p=n[d],g=C(p,0,1),v=C(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==p&&h||(l=!0),r+="."+p,u="%"+r+"%",y(m,u))c=m[u];else if(null!=c){if(!(p in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var b=s(c,p);h=!!b,c=h&&"get"in b&&!("originalValue"in b.get)?b.get:c[p]}else h=y(c,p),c=c[p];h&&!l&&(m[u]=c)}}return c}},"05bc":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("router-view",{key:e.key})},o=[],i=n("2909"),a=n("5530"),u=(n("d81d"),n("b0c0"),n("a15b"),n("fb6a"),n("2ca0"),n("99af"),n("2f62")),s=n("f121"),c={name:"VabRouterView",data:function(){return{key:null,keepAliveMaxNum:s["keepAliveMaxNum"],dept:this.findParent(this).length,parentNames:null}},computed:Object(a["a"])({},Object(u["c"])({cachedRoutes:"routes/cachedRoutes"})),watch:{$route:{handler:function(e){var t=e.matched.map((function(e){return e.name})),n=t.slice(0,this.dept).join(",");this.parentNames||(this.parentNames=n);var r=t.slice(0,this.dept+1).join(",");1!==this.dept&&n!==this.parentNames||(this.key=this.dept===t.length-1?e.fullPath:r)},immediate:!0}},methods:{findParent:function(e){return"VabAppMain"===e.$options.name?["VabAppMain"]:"VabRouterView"===e.$options.name||e.$options.name.startsWith("El")?this.findParent(e.$parent):[].concat(Object(i["a"])(this.findParent(e.$parent)),[e.$options.name])}}},l=c,f=n("2877"),d=Object(f["a"])(l,r,o,!1,null,null,null);t["default"]=d.exports},"0781":function(e,t,n){"use strict";n.r(t);var r=n("5530"),o=(n("e9c4"),n("61f7")),i=n("f121"),a={layout:i["layout"],themeName:i["themeName"],columnStyle:i["columnStyle"],fixedHeader:i["fixedHeader"],showProgressBar:i["showProgressBar"],showTabs:i["showTabs"],tabsBarStyle:i["tabsBarStyle"],showTabsBarIcon:i["showTabsBarIcon"],showRefresh:i["showRefresh"],showSearch:i["showSearch"],showTheme:i["showTheme"],showNotice:i["showNotice"],showFullScreen:i["showFullScreen"],showThemeSetting:i["showThemeSetting"]},u=function(e){var t=localStorage.getItem(e);return!!Object(o["isJson"])(t)&&JSON.parse(t)},s=u("collapse"),c=s.collapse,l=function(){return{logo:i["logo"],title:i["title"],device:"desktop",collapse:c||!1,theme:u("theme")||Object(r["a"])({},a),extra:{first:"",transferRouteName:""}}},f={logo:function(e){return e.logo},title:function(e){return e.title},device:function(e){return e.device},collapse:function(e){return e.collapse},theme:function(e){return e.theme},extra:function(e){return e.extra}},d={openSideBar:function(e){e.collapse=!1},foldSideBar:function(e){e.collapse=!0},toggleDevice:function(e,t){e.device=t},toggleCollapse:function(e){e.collapse=!e.collapse,localStorage.setItem("collapse",'{"collapse":'.concat(e.collapse,"}"))},saveTheme:function(e){localStorage.setItem("theme",JSON.stringify(e.theme))},resetTheme:function(e){e.theme=Object(r["a"])({},a),localStorage.removeItem("theme"),document.getElementsByTagName("body")[0].className="vab-theme-".concat(e.theme.themeName)}},h={openSideBar:function(e){var t=e.commit;t("openSideBar")},foldSideBar:function(e){var t=e.commit;t("foldSideBar")},toggleDevice:function(e,t){var n=e.commit;n("toggleDevice",t)},toggleCollapse:function(e){var t=e.commit;t("toggleCollapse")},saveTheme:function(e){var t=e.commit;t("saveTheme")},resetTheme:function(e){var t=e.commit;t("resetTheme")}};t["default"]={state:l,getters:f,mutations:d,actions:h}},"0a06":function(e,t,n){"use strict";var r=n("c532"),o=n("30b5"),i=n("f6b4"),a=n("5270"),u=n("4a7b"),s=n("848b"),c=s.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=u(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var l=[a,void 0];Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);while(l.length)o=o.then(l.shift(),l.shift());return o}var f=e;while(n.length){var d=n.shift(),h=n.shift();try{f=d(f)}catch(p){h(p);break}}try{o=a(f)}catch(p){return Promise.reject(p)}while(i.length)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=u(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(u(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(u(r||{},{method:e,url:t,data:n}))}})),e.exports=l},"0a48":function(e,t,n){"use strict";n.r(t),n.d(t,"checkNeed",(function(){return s}));var r=n("2909"),o=(n("99af"),n("caad"),n("2532"),n("a026")),i=n("4360"),a=n("f121"),u=n("61f7"),s=function(){var e=Object(u["isArray"])(a["errorLog"])?Object(r["a"])(a["errorLog"]):[a["errorLog"]].concat();return e.includes("production")};s()&&(o["default"].config.errorHandler=function(e){console.error("vue-admin-beautiful错误拦截:",e);var t=window.location.href;o["default"].nextTick((function(){i["default"].dispatch("errorLog/addErrorLog",{err:e,url:t}).then((function(){}))}))})},"0bc4":function(e,t,n){"use strict";n("d844")},"0c07":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("el-breadcrumb",{staticClass:"vab-breadcrumb",attrs:{separator:">"}},e._l(e.levelList,(function(t,r){return n("el-breadcrumb-item",{key:r},[n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t.redirect)}}},[t.meta&&t.meta.icon?n("vab-icon",{attrs:{icon:t.meta.icon}}):e._e(),e._v(" "+e._s(t.meta.title)+" ")],1)])})),1)},o=[],i=(n("4de4"),n("d3b7"),{name:"VabBreadcrumb",data:function(){return{levelList:[]}},watch:{$route:{handler:function(){this.levelList=this.getBreadcrumb()},immediate:!0}},methods:{getBreadcrumb:function(){return this.$route.matched.filter((function(e){return e.meta&&e.meta.title}))},handleLink:function(e){this.$router.push(e)}}}),a=i,u=(n("5a1b"),n("2877")),s=Object(u["a"])(a,r,o,!1,null,"7080fc8d",null);t["default"]=s.exports},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e13":function(e,t,n){},"0e15":function(e,t,n){var r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"0f7c":function(e,t,n){"use strict";var r=n("688e");e.exports=Function.prototype.bind||r},"0f9a":function(e,t,n){"use strict";n.r(t);var r=n("1da1"),o=(n("b0c0"),n("96cf"),n("a026")),i=n("c24f"),a=n("cc33"),u=n("a18c"),s=n("61f7"),c=n("f121"),l=function(){return{token:Object(a["getToken"])(),username:"游客",avatar:"https://i.gtimg.cn/club/item/face/img/2/15922_100.gif",language:"zh_CN",role_id:0,type_id:0,user_id:0,type:0,is_test:""}},f={token:function(e){return e.token},username:function(e){return e.username},avatar:function(e){return e.avatar},role_id:function(e){return e.role_id},user_id:function(e){return e.user_id},type_id:function(e){return e.type_id},type:function(e){return e.type},is_test:function(e){return e.is_test}},d={setToken:function(e,t){e.token=t,Object(a["setToken"])(t)},setUsername:function(e,t){e.username=t},setAvatar:function(e,t){e.avatar=t},setRole_id:function(e,t){e.role_id=t},setType:function(e,t){e.type=t},setUser_id:function(e,t){e.user_id=t},setType_id:function(e,t){e.type_id=t},setIs_test:function(e,t){e.is_test=t}},h={setVirtualRoles:function(e){var t=e.commit,n=e.dispatch;n("acl/setFull",!0,{root:!0}),t("setAvatar","https://platform.site.ximengnaikang.com/storage/resource/J2brW6q1lV660YPpdGkavYC0hl4FBAIK.png"),t("setUsername","admin(未开启登录拦截)")},login:function(e,t){return Object(r["a"])(regeneratorRuntime.mark((function n(){var r,a,u,s,l,f,d;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.commit,n.next=3,Object(i["login"])(t);case 3:if(a=n.sent,u=a.data,s=u[c["tokenName"]],!s){n.next=13;break}r("setToken",s),l=(new Date).getHours(),f=l<8?"早上好":l<=11?"上午好":l<=13?"中午好":l<18?"下午好":"晚上好",o["default"].prototype.$baseNotify("欢迎登录".concat(c["title"]),"".concat(f,"!")),n.next=16;break;case 13:throw d="登录接口异常,未正确返回".concat(c["tokenName"],"..."),o["default"].prototype.$baseMessage(d,"error"),d;case 16:case"end":return n.stop()}}),n)})))()},socialLogin:function(e,t){return Object(r["a"])(regeneratorRuntime.mark((function n(){var r,a,u,s,l,f,d;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.commit,n.next=3,Object(i["socialLogin"])(t);case 3:if(a=n.sent,u=a.data,s=u[c["tokenName"]],!s){n.next=13;break}r("setToken",s),l=(new Date).getHours(),f=l<8?"早上好":l<=11?"上午好":l<=13?"中午好":l<18?"下午好":"晚上好",o["default"].prototype.$baseNotify("欢迎登录".concat(c["title"]),"".concat(f,"!")),n.next=16;break;case 13:throw d="login核心接口异常,请检查返回JSON格式是否正确,是否正确返回".concat(c["tokenName"],"..."),o["default"].prototype.$baseMessage(d,"error"),d;case 16:case"end":return n.stop()}}),n)})))()},getUserInfo:function(e){return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,r,a,u,c,l,f,d,h,p,m,g,v,b;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,Object(i["getUserInfo"])();case 3:if(a=t.sent,u=a.data,console.log(u,"滴滴滴滴滴滴滴滴"),c=u.roles,l=u.ability,f=u.type_id,d=u.role_id,h=u.id,p=u.type_model,m=u.is_test,g=u.name,v=u.headimg,!(g&&!Object(s["isString"])(g)||v&&!Object(s["isString"])(v)||c&&!Object(s["isArray"])(c)||l&&!Object(s["isArray"])(l))){t.next=15;break}throw b="getUserInfo核心接口异常,请检查返回JSON格式是否正确",o["default"].prototype.$baseMessage(b,"error"),b;case 15:g&&n("setUsername",g),v&&n("setAvatar",v),c&&r("acl/setRole",c,{root:!0}),l&&r("acl/setAbility",l,{root:!0}),(f||0==f)&&r("setType_id",f),p&&r("setType",p),d&&r("setRole_id",d),h&&r("setUser_id",h),m&&r("setIs_test",m);case 24:case"end":return t.stop()}}),t)})))()},logout:function(e){return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.dispatch,t.next=3,Object(i["logout"])();case 3:return t.next=5,n("resetAll");case 5:case"end":return t.stop()}}),t)})))()},resetAll:function(e){return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,n("setUsername","游客"),n("setAvatar","https://i.gtimg.cn/club/item/face/img/2/15922_100.gif"),n("routes/setRoutes",[],{root:!0}),t.next=6,r("setToken","");case 6:return t.next=8,r("acl/setFull",!1,{root:!0});case 8:return t.next=10,r("acl/setRole",[],{root:!0});case 10:return t.next=12,r("acl/setAbility",[],{root:!0});case 12:return t.next=14,r("tabs/delAllVisitedRoutes",null,{root:!0});case 14:return t.next=16,Object(u["resetRouter"])();case 16:Object(a["removeToken"])();case 17:case"end":return t.stop()}}),t)})))()},setToken:function(e,t){var n=e.commit;n("setToken",t)},setAvatar:function(e,t){var n=e.commit;n("setAvatar",t)},setRole_id:function(e,t){var n=e.commit;n("setRole_id",t)},setUser_id:function(e,t){var n=e.commit;n("setUser_id",t)},setType_id:function(e,t){var n=e.commit;n("setType_id",t)},setType:function(e,t){var n=e.commit;n("setType",t)},setUsername:function(e,t){var n=e.commit;n("setUsername",t)},setIs_test:function(e,t){var n=e.commit;n("setIs_test",t)}};t["default"]={state:l,getters:f,mutations:d,actions:h}},1:function(e,t){},1098:function(e,t,n){"use strict";t.__esModule=!0;var r=n("17ed"),o=s(r),i=n("f893"),a=s(i),u="function"===typeof a.default&&"symbol"===typeof o.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function s(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===u(o.default)?function(e){return"undefined"===typeof e?"undefined":u(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":u(e)}},1404:function(e,t,n){"use strict";n("0e13")},"146c":function(e,t,n){},1696:function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==r||!0!==i.enumerable)return!1}return!0}},"17ed":function(e,t,n){e.exports={default:n("511f"),__esModule:!0}},1859: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("el-menu-item",{attrs:{index:e.itemOrMenu.fullPath},on:{click:e.handleLink}},[e.itemOrMenu.meta&&e.itemOrMenu.meta.icon?n("vab-icon",{attrs:{icon:e.itemOrMenu.meta.icon,"is-custom-svg":e.itemOrMenu.meta.isCustomSvg,title:e.itemOrMenu.meta.title}}):e._e(),n("span",{attrs:{title:e.itemOrMenu.meta.title}},[e._v(e._s(e.itemOrMenu.meta.title))]),e.itemOrMenu.meta&&e.itemOrMenu.meta.badge?n("el-tag",{attrs:{effect:"dark",type:"danger"}},[e._v(" "+e._s(e.itemOrMenu.meta.badge)+" ")]):e._e(),e.itemOrMenu.meta&&e.itemOrMenu.meta.dot?n("span",{staticClass:"vab-dot vab-dot-error"},[n("span")]):e._e()],1)},o=[],i=n("5530"),a=n("f121"),u=n("61f7"),s=n("2f62"),c={name:"VabMenuItem",props:{itemOrMenu:{type:Object,default:function(){return null}}},computed:Object(i["a"])({},Object(s["c"])({device:"settings/device"})),methods:Object(i["a"])(Object(i["a"])({},Object(s["b"])({foldSideBar:"settings/foldSideBar"})),{},{handleLink:function(){var e=this.itemOrMenu.path,t=this.itemOrMenu.meta.target;"_blank"===t?Object(u["isExternal"])(e)?window.open(e):this.$route.fullPath!==e&&("hash"===a["routerMode"]?window.open("/#"+e):window.open(e)):Object(u["isExternal"])(e)?window.location.href=e:this.$route.fullPath!==e&&("mobile"===this.device&&this.foldSideBar(),this.$router.push(this.itemOrMenu.fullPath))}})},l=c,f=(n("a777"),n("2877")),d=Object(f["a"])(l,r,o,!1,null,"c4531b8c",null);t["default"]=d.exports},1925:function(e,t,n){"use strict";n.r(t),n.d(t,"getList",(function(){return o}));var r=n("b775");function o(){return Object(r["default"])({url:"/search/getList",method:"get"})}},"197e":function(e,t){e.exports={baseURL:"https://bcsyds.hactcm.edu.cn/api",base_url:"https://bcsyds.hactcm.edu.cn/api",contentType:"application/json;charset=UTF-8",requestTimeout:3e4,successCode:[200,0,"200","0"],statusName:"code",messageName:"message"}},"1c35":function(e,t,n){"use strict";(function(e){
  6. /*!
  7. * The buffer module from node.js, for the browser.
  8. *
  9. * @author Feross Aboukhadijeh <http://feross.org>
  10. * @license MIT
  11. */
  12. var r=n("1fb5"),o=n("9152"),i=n("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function u(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(u()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,n,r):"string"===typeof t?p(e,t,n):v(e,t)}function f(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t,n,r){return f(t),t<=0?s(e,t):void 0!==n?"string"===typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}function h(e,t){if(f(t),e=s(e,t<0?0:0|b(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(t,n);e=s(e,r);var o=e.write(t,n);return o!==r&&(e=e.slice(0,o)),e}function m(e,t){var n=t.length<0?0:0|b(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function g(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=m(e,t),e}function v(e,t){if(c.isBuffer(t)){var n=0|b(t.length);return e=s(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?s(e,0):m(e,t);if("Buffer"===t.type&&i(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(e){if(e>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function x(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return N(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function C(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,o){var i,a=1,u=e.length,s=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<u;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===s)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+s>u&&(n=u-s),i=n;i>=0;i--){for(var f=!0,d=0;d<s;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function k(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var u=parseInt(t.substr(2*a,2),16);if(isNaN(u))return a;e[n+a]=u}return a}function E(e,t,n,r){return ee(Y(t,e.length-n),e,n,r)}function O(e,t,n,r){return ee(J(t),e,n,r)}function A(e,t,n,r){return O(e,t,n,r)}function T(e,t,n,r){return ee(Z(t),e,n,r)}function R(e,t,n,r){return ee(X(t,e.length-n),e,n,r)}function N(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);var r=[],o=t;while(o<n){var i,a,u,s,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:i=e[o+1],128===(192&i)&&(s=(31&c)<<6|63&i,s>127&&(l=s));break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a,s>2047&&(s<55296||s>57343)&&(l=s));break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&u)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u,s>65535&&s<1114112&&(l=s))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return P(r)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=u(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return d(null,e,t,n)},c.allocUnsafe=function(e){return h(null,e)},c.allocUnsafeSlow=function(e){return h(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?D(this,0,e):x.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,u=Math.min(i,a),s=this.slice(r,o),l=e.slice(t,n),f=0;f<u;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return C(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return C(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return k(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function P(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=B));return n}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=G(e[i]);return o}function I(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function F(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function V(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function q(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function z(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,i){return i||z(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function $(e,t,n,r,i){return i||z(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e+--t],o=1;while(t>0&&(o*=256))r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=t,o=1,i=this[e+--r];while(r>0&&(o*=256))i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;V(this,e,t,n,o,0)}var i=1,a=0;this[t]=255&e;while(++a<n&&(i*=256))this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;V(this,e,t,n,o,0)}var i=n-1,a=1;this[t+i]=255&e;while(--i>=0&&(a*=256))this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):q(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;this[t]=255&e;while(++i<n&&(a*=256))e<0&&0===u&&0!==this[t+i-1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;this[t+i]=255&e;while(--i>=0&&(a*=256))e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):q(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return $(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return $(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:Y(new c(e,r).toString()),u=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%u]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function K(e){if(e=Q(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function Q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function Y(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function J(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function X(e,t){for(var n,r,o,i=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r)}return i}function Z(e){return r.toByteArray(K(e))}function ee(e,t,n,r){for(var o=0;o<r;++o){if(o+n>=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}}).call(this,n("c8ba"))},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1da1":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("d3b7");function r(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(c){return void n(c)}u.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,s,"next",e)}function s(e){r(a,o,i,u,s,"throw",e)}u(void 0)}))}}},"1fb5":function(e,t,n){"use strict";t.byteLength=l,t.toByteArray=d,t.fromByteArray=m;for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,s=a.length;u<s;++u)r[u]=a[u],o[a.charCodeAt(u)]=u;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=c(e),a=r[0],u=r[1],s=new i(f(e,a,u)),l=0,d=u>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===u&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,s[l++]=255&t),1===u&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(h(r));return o.join("")}function m(e){for(var t,n=e.length,o=n%3,i=[],a=16383,u=0,s=n-o;u<s;u+=a)i.push(p(e,u,u+a>s?s:u+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},2033:function(e,t,n){"use strict";n.r(t),n.d(t,"getRouterList",(function(){return o}));var r=n("b775");function o(e){return Object(r["default"])({url:"/base/menu-user",method:"get",params:e})}},"21a1":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var o=r&&!0===r.clone;return o&&e(n)?i(t(n),n,r):n}function r(t,r,o){var a=t.slice();return r.forEach((function(r,u){"undefined"===typeof a[u]?a[u]=n(r,o):e(r)?a[u]=i(t[u],r,o):-1===t.indexOf(r)&&a.push(n(r,o))})),a}function o(t,r,o){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],o)})),Object.keys(r).forEach((function(u){e(r[u])&&t[u]?a[u]=i(t[u],r[u],o):a[u]=n(r[u],o)})),a}function i(e,t,i){var a=Array.isArray(t),u=i||{arrayMerge:r},s=u.arrayMerge||r;return a?Array.isArray(e)?s(e,t,i):n(t,i):o(e,t,i)}return i.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 i(e,n,t)}))},i}))}));function r(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var o=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),i=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,"&quot;");return t+'="'+n+'"'})).join(" ")},a=o.svg,u=o.xlink,s={};s[a.name]=a.uri,s[u.name]=u.uri;var c,l=function(e,t){void 0===e&&(e="");var r=n(s,t||{}),o=i(r);return"<svg "+o+">"+e+"</svg>"},f=o.svg,d=o.xlink,h={attrs:(c={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},c[f.name]=f.uri,c[d.name]=d.uri,c)},p=function(e){this.config=n(h,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},p.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return l(n,t)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var m=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};m.prototype.stringify=function(){return this.content},m.prototype.toString=function(){return this.stringify()},m.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var g=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},v=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return g(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(m),b={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},y=function(e){return Array.prototype.slice.call(e,0)},w={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},x=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},_=function(e){var t=[];return y(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},C=function(e){return(e||window.location.href).split("#")[0]},S=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){x(e,{oldUrl:r,newUrl:n})}))}])},k="linearGradient, radialGradient, pattern, mask, clipPath",E=function(e,t){return void 0===t&&(t=k),y(e.querySelectorAll("symbol")).forEach((function(e){y(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function O(e,t){var n=y(e).reduce((function(e,n){if(!n.attributes)return e;var r=y(n.attributes),o=t?r.filter(t):r;return e.concat(o)}),[]);return n}var A=o.xlink.uri,T="xlink:href",R=/[{}|\\\^\[\]`"<>]/g;function N(e){return e.replace(R,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function D(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function B(e,t,n){return y(e).forEach((function(e){var r=e.getAttribute(T);if(r&&0===r.indexOf(t)){var o=r.replace(t,n);e.setAttributeNS(A,T,o)}})),e}var P,j=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],L=j.map((function(e){return"["+e+"]"})).join(","),M=function(e,t,n,r){var o=N(n),i=N(r),a=e.querySelectorAll(L),u=O(a,(function(e){var t=e.localName,n=e.value;return-1!==j.indexOf(t)&&-1!==n.indexOf("url("+o)}));u.forEach((function(e){return e.value=e.value.replace(new RegExp(D(o),"g"),i)})),B(t,o,i)},I={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},F=function(e){function t(t){var o=this;void 0===t&&(t={}),e.call(this,n(b,t));var i=r();this._emitter=i,this.node=null;var a=this,u=a.config;if(u.autoConfigure&&this._autoConfigure(t),u.syncUrlsWithBaseTag){var s=document.getElementsByTagName("base")[0].getAttribute("href");i.on(I.MOUNT,(function(){return o.updateUrls("#",s)}))}var c=this._handleLocationChange.bind(this);this._handleLocationChange=c,u.listenLocationChangeEvent&&window.addEventListener(u.locationChangeEvent,c),u.locationChangeAngularEmitter&&S(u.locationChangeEvent),i.on(I.MOUNT,(function(e){u.moveGradientsOutsideSymbol&&E(e)})),i.on(I.SYMBOL_MOUNT,(function(e){u.moveGradientsOutsideSymbol&&E(e.parentNode),(w.isIE()||w.isEdge())&&_(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=w.isFirefox())},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},t.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(I.SYMBOL_MOUNT,t.node)),r},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(I.SYMBOL_MOUNT,e.node)})),y(r.querySelectorAll("symbol")).forEach((function(e){var t=v.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(I.MOUNT,r),r},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach((function(e){return e.destroy()})),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e,o=n.render();return this.node=o,t&&r.childNodes[0]?r.insertBefore(o,r.childNodes[0]):r.appendChild(o),this._emitter.emit(I.MOUNT,o),o},t.prototype.render=function(){return g(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return M(this.node,n,C(e)+"#",C(t)+"#"),!0},Object.defineProperties(t.prototype,o),t}(p),V=e((function(e){
  13. /*!
  14. * domready (c) Dustin Diaz 2014 - License MIT
  15. */
  16. !function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,r=n.documentElement.doScroll,o="DOMContentLoaded",i=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return i||n.addEventListener(o,e=function(){n.removeEventListener(o,e),i=1;while(e=t.shift())e()}),function(e){i?setTimeout(e,0):t.push(e)}}))})),U="__SVG_SPRITE_NODE__",q="__SVG_SPRITE__",z=!!window[q];z?P=window[q]:(P=new F({attrs:{id:U,"aria-hidden":"true"}}),window[q]=P);var H=function(){var e=document.getElementById(U);e?P.attach(e):P.mount(document.body,!0)};document.body?H():V(H);var $=P;return $}))}).call(this,n("c8ba"))},2384: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("el-col",{attrs:{lg:e.span,md:24,sm:24,xl:e.span,xs:24}},[n("div",{staticClass:"left-panel"},[e._t("default")],2)])},o=[],i=(n("a9e3"),{name:"VabQueryFormLeftPanel",props:{span:{type:Number,default:14}}}),a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},2400:function(e,t,n){"use strict";n.r(t),n.d(t,"getNewList",(function(){return o})),n.d(t,"good",(function(){return i})),n.d(t,"getStuList",(function(){return a})),n.d(t,"getTeaList",(function(){return u})),n.d(t,"getList",(function(){return s})),n.d(t,"getUser",(function(){return c})),n.d(t,"getHome",(function(){return l})),n.d(t,"doTeaEdit",(function(){return f})),n.d(t,"doEdit",(function(){return d})),n.d(t,"studentChange",(function(){return h})),n.d(t,"teacherChange",(function(){return p})),n.d(t,"userEdit",(function(){return m})),n.d(t,"logOut",(function(){return g})),n.d(t,"getSetting",(function(){return v}));var r=n("b775");function o(e){return Object(r["default"])({url:"/home",method:"get",params:e})}function i(e){return Object(r["default"])({url:"/inform/information-good",method:"post",params:e})}function a(e){return Object(r["default"])({url:"/mentor/student",method:"get",params:e})}function u(e){return Object(r["default"])({url:"/mentor/teacher",method:"get",params:e})}function s(e){return Object(r["default"])({url:"/mentor/subscribe-student",method:"get",params:e})}function c(e){return Object(r["default"])({url:"/base/auth/me",method:"get",params:e})}function l(e){return Object(r["default"])({url:"/home",method:"get",params:e})}function f(e){return Object(r["default"])({url:"/mentor/teacher/"+e.type_id,method:"put",data:e})}function d(e){return Object(r["default"])({url:"/mentor/student/"+e.type_id,method:"put",data:e})}function h(e){return Object(r["default"])({url:"/mentor/perfect-student-info",method:"put",data:e})}function p(e){return Object(r["default"])({url:"/mentor/perfect-teacher-info",method:"put",data:e})}function m(e){return Object(r["default"])({url:"/base/auth/me"+e.type_id,method:"put",data:e})}function g(e){return Object(r["default"])({url:"/base/auth/logout",method:"get",params:e})}function v(e){return Object(r["default"])({url:"/base/setting-key",method:"get",params:e})}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),o=n("c8af"),i=n("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function c(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:s(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(u(t,"application/json"),c(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(u){if(a){if("SyntaxError"===u.name)throw i(u,this,"E_JSON_PARSE");throw u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l}).call(this,n("4362"))},2714:function(e,t,n){var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"===typeof o.get?o.get:null,a=r&&Map.prototype.forEach,u="function"===typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=u&&s&&"function"===typeof s.get?s.get:null,l=u&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype,d=f?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype,p=h?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,g=m?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,b=Object.prototype.toString,y=Function.prototype.toString,w=String.prototype.match,x=String.prototype.slice,_=String.prototype.replace,C=String.prototype.toUpperCase,S=String.prototype.toLowerCase,k=RegExp.prototype.test,E=Array.prototype.concat,O=Array.prototype.join,A=Array.prototype.slice,T=Math.floor,R="function"===typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,B="function"===typeof Symbol&&"object"===typeof Symbol.iterator,P="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===B||"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,L=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||k.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-T(-e):T(e);if(r!==e){var o=String(r),i=x.call(t,o.length+1);return _.call(o,n,"$&_")+"."+_.call(_.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,n,"$&_")}var I=n(1).custom,F=I&&G(I)?I:null;function V(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return _.call(String(e),/"/g,"&quot;")}function q(e){return"[object Array]"===Z(e)&&(!P||!("object"===typeof e&&P in e))}function z(e){return"[object Date]"===Z(e)&&(!P||!("object"===typeof e&&P in e))}function H(e){return"[object RegExp]"===Z(e)&&(!P||!("object"===typeof e&&P in e))}function $(e){return"[object Error]"===Z(e)&&(!P||!("object"===typeof e&&P in e))}function W(e){return"[object String]"===Z(e)&&(!P||!("object"===typeof e&&P in e))}function K(e){return"[object Number]"===Z(e)&&(!P||!("object"===typeof e&&P in e))}function Q(e){return"[object Boolean]"===Z(e)&&(!P||!("object"===typeof e&&P in e))}function G(e){if(B)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!D)return!1;try{return D.call(e),!0}catch(t){}return!1}function Y(e){if(!e||"object"!==typeof e||!R)return!1;try{return R.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,o){var u=n||{};if(X(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(u,"maxStringLength")&&("number"===typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!X(u,"customInspect")||u.customInspect;if("boolean"!==typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(u,"numericSeparator")&&"boolean"!==typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=u.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return se(t,u);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var d=String(t);return f?M(t,d):d}if("bigint"===typeof t){var h=String(t)+"n";return f?M(t,h):h}var p="undefined"===typeof u.depth?5:u.depth;if("undefined"===typeof r&&(r=0),r>=p&&p>0&&"object"===typeof t)return q(t)?"[Array]":"[Object]";var m=pe(u,r);if("undefined"===typeof o)o=[];else if(te(o,t)>=0)return"[Circular]";function g(t,n,i){if(n&&(o=A.call(o),o.push(n)),i){var a={depth:u.depth};return X(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(t,a,r+1,o)}return e(t,u,r+1,o)}if("function"===typeof t){var b=ee(t),y=ge(t,g);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(y.length>0?" { "+O.call(y,", ")+" }":"")}if(G(t)){var w=B?_.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(t);return"object"!==typeof t||B?w:le(w)}if(ue(t)){for(var C="<"+S.call(String(t.nodeName)),k=t.attributes||[],T=0;T<k.length;T++)C+=" "+k[T].name+"="+V(U(k[T].value),"double",u);return C+=">",t.childNodes&&t.childNodes.length&&(C+="..."),C+="</"+S.call(String(t.nodeName))+">",C}if(q(t)){if(0===t.length)return"[]";var N=ge(t,g);return m&&!he(N)?"["+me(N,m)+"]":"[ "+O.call(N,", ")+" ]"}if($(t)){var I=ge(t,g);return"cause"in t&&!j.call(t,"cause")?"{ ["+String(t)+"] "+O.call(E.call("[cause]: "+g(t.cause),I),", ")+" }":0===I.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(I,", ")+" }"}if("object"===typeof t&&s){if(F&&"function"===typeof t[F])return t[F]();if("symbol"!==s&&"function"===typeof t.inspect)return t.inspect()}if(ne(t)){var J=[];return a.call(t,(function(e,n){J.push(g(n,t,!0)+" => "+g(e,t))})),de("Map",i.call(t),J,m)}if(ie(t)){var ce=[];return l.call(t,(function(e){ce.push(g(e,t))})),de("Set",c.call(t),ce,m)}if(re(t))return fe("WeakMap");if(ae(t))return fe("WeakSet");if(oe(t))return fe("WeakRef");if(K(t))return le(g(Number(t)));if(Y(t))return le(g(R.call(t)));if(Q(t))return le(v.call(t));if(W(t))return le(g(String(t)));if(!z(t)&&!H(t)){var ve=ge(t,g),be=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,ye=t instanceof Object?"":"null prototype",we=!be&&P&&Object(t)===t&&P in t?x.call(Z(t),8,-1):ye?"Object":"",xe=be||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",_e=xe+(we||ye?"["+O.call(E.call([],we||[],ye||[]),": ")+"] ":"");return 0===ve.length?_e+"{}":m?_e+"{"+me(ve,m)+"}":_e+"{ "+O.call(ve,", ")+" }"}return String(t)};var J=Object.prototype.hasOwnProperty||function(e){return e in this};function X(e,t){return J.call(e,t)}function Z(e){return b.call(e)}function ee(e){if(e.name)return e.name;var t=w.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function te(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ne(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{c.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function re(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function oe(e){if(!g||!e||"object"!==typeof e)return!1;try{return g.call(e),!0}catch(t){}return!1}function ie(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function ae(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function ue(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function se(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return se(x.call(e,0,t.maxStringLength),t)+r}var o=_.call(_.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ce);return V(o,"single",t)}function ce(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+C.call(t.toString(16))}function le(e){return"Object("+e+")"}function fe(e){return e+" { ? }"}function de(e,t,n,r){var o=r?me(n,r):O.call(n,", ");return e+" ("+t+") {"+o+"}"}function he(e){for(var t=0;t<e.length;t++)if(te(e[t],"\n")>=0)return!1;return!0}function pe(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=O.call(Array(e.indent+1)," ")}return{base:n,prev:O.call(Array(t+1),n)}}function me(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+O.call(e,","+n)+"\n"+t.prev}function ge(e,t){var n=q(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=X(e,o)?t(e[o],e):""}var i,a="function"===typeof N?N(e):[];if(B){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var s in e)X(e,s)&&(n&&String(Number(s))===s&&s<e.length||B&&i["$"+s]instanceof Symbol||(k.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"===typeof N)for(var c=0;c<a.length;c++)j.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},2909:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e){if(Array.isArray(e))return r(e)}n.d(t,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function i(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n("fb6a"),n("b0c0"),n("ac1f"),n("00b4");function a(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}n("d9e2");function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e){return o(e)||i(e)||a(e)||u()}},2962:function(e,t,n){"use strict";n.r(t),n.d(t,"uploadImg",(function(){return o}));var r=n("b775");function o(e){return Object(r["default"])({url:"/base/common/upload",method:"post",data:e})}},"296a":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.errorLogs.length>0?n("div",[n("el-badge",{attrs:{value:e.errorLogs.length},nativeOn:{click:function(t){e.dialogTableVisible=!0}}},[n("vab-icon",{attrs:{icon:"bug-line"}})],1),n("el-dialog",{attrs:{"append-to-body":"",title:"admin-pro(vue-admin-beautiful pro 版本) 异常捕获(温馨提示:错误必须解决)",visible:e.dialogTableVisible,width:"70%"},on:{"update:visible":function(t){e.dialogTableVisible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[n("el-button",{on:{click:function(t){e.dialogTableVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"danger"},on:{click:e.clearAll}},[e._v("暂不显示")])]},proxy:!0}],null,!1,523777005)},[n("el-table",{attrs:{border:"",data:e.errorLogs}},[n("el-table-column",{attrs:{label:"报错路由"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("a",{attrs:{href:r.url,target:"_blank"}},[n("el-tag",{attrs:{type:"success"}},[e._v(e._s(r.url))])],1)]}}],null,!1,2176999649)}),n("el-table-column",{attrs:{label:"错误信息"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("el-tag",{attrs:{type:"danger"}},[e._v(e._s(r.err.message))])]}}],null,!1,2907049969)}),n("el-table-column",{attrs:{label:"错误详情",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("el-popover",{attrs:{placement:"top-start",trigger:"hover"},scopedSlots:e._u([{key:"reference",fn:function(){return[n("el-button",[e._v("查看")])]},proxy:!0}],null,!0)},[e._v(" "+e._s(r.err.stack)+" ")])]}}],null,!1,2595311188)}),n("el-table-column",{attrs:{label:"操作",width:"380"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return e._l(e.searchList,(function(t,o){return n("a",{key:o,attrs:{href:t.url+r.err.message,target:"_blank"}},[n("el-button",{attrs:{type:"primary"}},[e._v(" "+e._s(t.title)+" ")])],1)}))}}],null,!1,3520737484)})],1)],1)],1):e._e()},o=[],i=n("5530"),a=n("f121"),u=n("2f62"),s={name:"VabErrorLog",data:function(){return{dialogTableVisible:!1,title:a["title"],abbreviation:a["abbreviation"],searchList:[{title:"百度搜索",url:"https://www.baidu.com/baidu?wd="},{title:"谷歌搜索",url:"https://www.google.com/search?q="},{title:"Magi搜索",url:"https://magi.com/search?q="}]}},computed:Object(i["a"])({},Object(u["c"])({errorLogs:"errorLog/errorLogs"})),methods:Object(i["a"])(Object(i["a"])({},Object(u["b"])({clearErrorLog:"errorLog/clearErrorLog"})),{},{clearAll:function(){this.dialogTableVisible=!1,this.clearErrorLog()}})},c=s,l=(n("eddd"),n("2877")),f=Object(l["a"])(c,r,o,!1,null,"108b702a",null);t["default"]=f.exports},"2adc":function(e,t,n){!function(){0}(),function(t,n){e.exports=n()}("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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="",n(n.s="fb15")}({"06af":function(e,t,n){},"1cdc":function(e,t,n){"use strict";n("06af")},"29a1":function(e,t,n){e.exports=n.p+"img/remixicon.symbol.f09b1c74.svg"},8875:function(e,t,n){var r,o,i;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(t,o):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,u=i.exec(h.stack)||a.exec(h.stack),s=u&&u[1]||!1,c=u&&u[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");s===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===s)return f[d];if(s===l&&f[d].innerHTML&&f[d].innerHTML.trim()===o)return f[d]}return null}}return e}))},ab05:function(e,t,n){},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=function(){var e,t=this,n=t.$createElement,r=t._self._c||n;return t.isExternal?r("img",t._g({staticClass:"img-icon",attrs:{src:t.icon}},t.$listeners)):t.isCustomSvg?r("svg",t._g({class:t.svgClass,attrs:{"aria-hidden":"true"}},t.$listeners),[r("use",{attrs:{"xlink:href":"#vab-icon-"+t.icon}})]):t.isDefaultSvg?r("svg",t._g({staticClass:"vab-icon"},t.$listeners),[r("use",{attrs:{"xlink:href":t.remixIconPath+"#ri-"+t.icon}})]):r("i",t._g({class:(e={},e["ri-"+t.icon]=!0,e),attrs:{"aria-hidden":"true"}},t.$listeners))},u=[];function s(e){return/^(https?:|mailto:|tel:)/.test(e)}n("ab05");var c={name:"VabIcon",props:{icon:{type:String,required:!0},isCustomSvg:{type:Boolean,default:!1},isDefaultSvg:{type:Boolean,default:!1},className:{type:String,default:""}},data:function(){return{remixIconPath:n("29a1")}},computed:{isExternal:function(){return s(this.icon)},svgClass:function(){return this.className?"vab-icon ".concat(this.className):"vab-icon"}}},l=c;function f(e,t,n,r,o,i,a,u){var s,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(s=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=s):o&&(s=u?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(c.functional){c._injectStyles=s;var l=c.render;c.render=function(e,t){return s.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,s):[s]}return{exports:e,options:c}}n("1cdc");var d=f(l,a,u,!1,null,"79aac9d9",null),h=d.exports;t["default"]=h}})["default"]})),function(){0}()},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2edb":function(e,t,n){"use strict";n("3ae8")},"2ef0":function(e,t,n){(function(e,r){var o;
  17. /**
  18. * @license
  19. * Lodash <https://lodash.com/>
  20. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  21. * Released under MIT license <https://lodash.com/license>
  22. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  23. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  24. */(function(){var i,a="4.17.21",u=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,m=2,g=4,v=1,b=2,y=1,w=2,x=4,_=8,C=16,S=32,k=64,E=128,O=256,A=512,T=30,R="...",N=800,D=16,B=1,P=2,j=3,L=1/0,M=9007199254740991,I=17976931348623157e292,F=NaN,V=4294967295,U=V-1,q=V>>>1,z=[["ary",E],["bind",y],["bindKey",w],["curry",_],["curryRight",C],["flip",A],["partial",S],["partialRight",k],["rearg",O]],H="[object Arguments]",$="[object Array]",W="[object AsyncFunction]",K="[object Boolean]",Q="[object Date]",G="[object DOMException]",Y="[object Error]",J="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",ee="[object Number]",te="[object Null]",ne="[object Object]",re="[object Promise]",oe="[object Proxy]",ie="[object RegExp]",ae="[object Set]",ue="[object String]",se="[object Symbol]",ce="[object Undefined]",le="[object WeakMap]",fe="[object WeakSet]",de="[object ArrayBuffer]",he="[object DataView]",pe="[object Float32Array]",me="[object Float64Array]",ge="[object Int8Array]",ve="[object Int16Array]",be="[object Int32Array]",ye="[object Uint8Array]",we="[object Uint8ClampedArray]",xe="[object Uint16Array]",_e="[object Uint32Array]",Ce=/\b__p \+= '';/g,Se=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,Oe=/[&<>"']/g,Ae=RegExp(Ee.source),Te=RegExp(Oe.source),Re=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,De=/<%=([\s\S]+?)%>/g,Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(Le.source),Ie=/^\s+/,Fe=/\s/,Ve=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/[()=,{}\[\]\/\s]/,$e=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,Qe=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Je=/^0o[0-7]+$/i,Xe=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",rt="\\u0300-\\u036f",ot="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",at=rt+ot+it,ut="\\u2700-\\u27bf",st="a-z\\xdf-\\xf6\\xf8-\\xff",ct="\\xac\\xb1\\xd7\\xf7",lt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ft="\\u2000-\\u206f",dt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",mt=ct+lt+ft+dt,gt="['’]",vt="["+nt+"]",bt="["+mt+"]",yt="["+at+"]",wt="\\d+",xt="["+ut+"]",_t="["+st+"]",Ct="[^"+nt+mt+wt+ut+st+ht+"]",St="\\ud83c[\\udffb-\\udfff]",kt="(?:"+yt+"|"+St+")",Et="[^"+nt+"]",Ot="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+ht+"]",Rt="\\u200d",Nt="(?:"+_t+"|"+Ct+")",Dt="(?:"+Tt+"|"+Ct+")",Bt="(?:"+gt+"(?:d|ll|m|re|s|t|ve))?",Pt="(?:"+gt+"(?:D|LL|M|RE|S|T|VE))?",jt=kt+"?",Lt="["+pt+"]?",Mt="(?:"+Rt+"(?:"+[Et,Ot,At].join("|")+")"+Lt+jt+")*",It="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ft="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vt=Lt+jt+Mt,Ut="(?:"+[xt,Ot,At].join("|")+")"+Vt,qt="(?:"+[Et+yt+"?",yt,Ot,At,vt].join("|")+")",zt=RegExp(gt,"g"),Ht=RegExp(yt,"g"),$t=RegExp(St+"(?="+St+")|"+qt+Vt,"g"),Wt=RegExp([Tt+"?"+_t+"+"+Bt+"(?="+[bt,Tt,"$"].join("|")+")",Dt+"+"+Pt+"(?="+[bt,Tt+Nt,"$"].join("|")+")",Tt+"?"+Nt+"+"+Bt,Tt+"+"+Pt,Ft,It,wt,Ut].join("|"),"g"),Kt=RegExp("["+Rt+nt+at+pt+"]"),Qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yt=-1,Jt={};Jt[pe]=Jt[me]=Jt[ge]=Jt[ve]=Jt[be]=Jt[ye]=Jt[we]=Jt[xe]=Jt[_e]=!0,Jt[H]=Jt[$]=Jt[de]=Jt[K]=Jt[he]=Jt[Q]=Jt[Y]=Jt[J]=Jt[Z]=Jt[ee]=Jt[ne]=Jt[ie]=Jt[ae]=Jt[ue]=Jt[le]=!1;var Xt={};Xt[H]=Xt[$]=Xt[de]=Xt[he]=Xt[K]=Xt[Q]=Xt[pe]=Xt[me]=Xt[ge]=Xt[ve]=Xt[be]=Xt[Z]=Xt[ee]=Xt[ne]=Xt[ie]=Xt[ae]=Xt[ue]=Xt[se]=Xt[ye]=Xt[we]=Xt[xe]=Xt[_e]=!0,Xt[Y]=Xt[J]=Xt[le]=!1;var Zt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},en={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,an="object"==typeof e&&e&&e.Object===Object&&e,un="object"==typeof self&&self&&self.Object===Object&&self,sn=an||un||Function("return this")(),cn=t&&!t.nodeType&&t,ln=cn&&"object"==typeof r&&r&&!r.nodeType&&r,fn=ln&&ln.exports===cn,dn=fn&&an.process,hn=function(){try{var e=ln&&ln.require&&ln.require("util").types;return e||dn&&dn.binding&&dn.binding("util")}catch(t){}}(),pn=hn&&hn.isArrayBuffer,mn=hn&&hn.isDate,gn=hn&&hn.isMap,vn=hn&&hn.isRegExp,bn=hn&&hn.isSet,yn=hn&&hn.isTypedArray;function wn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function xn(e,t,n,r){var o=-1,i=null==e?0:e.length;while(++o<i){var a=e[o];t(r,a,n(a),e)}return r}function _n(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Cn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Sn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function kn(e,t){var n=-1,r=null==e?0:e.length,o=0,i=[];while(++n<r){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function En(e,t){var n=null==e?0:e.length;return!!n&&In(e,t,0)>-1}function On(e,t,n){var r=-1,o=null==e?0:e.length;while(++r<o)if(n(t,e[r]))return!0;return!1}function An(e,t){var n=-1,r=null==e?0:e.length,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}function Tn(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function Rn(e,t,n,r){var o=-1,i=null==e?0:e.length;r&&i&&(n=e[++o]);while(++o<i)n=t(n,e[o],o,e);return n}function Nn(e,t,n,r){var o=null==e?0:e.length;r&&o&&(n=e[--o]);while(o--)n=t(n,e[o],o,e);return n}function Dn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var Bn=qn("length");function Pn(e){return e.split("")}function jn(e){return e.match(ze)||[]}function Ln(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Mn(e,t,n,r){var o=e.length,i=n+(r?1:-1);while(r?i--:++i<o)if(t(e[i],i,e))return i;return-1}function In(e,t,n){return t===t?pr(e,t,n):Mn(e,Vn,n)}function Fn(e,t,n,r){var o=n-1,i=e.length;while(++o<i)if(r(e[o],t))return o;return-1}function Vn(e){return e!==e}function Un(e,t){var n=null==e?0:e.length;return n?Wn(e,t)/n:F}function qn(e){return function(t){return null==t?i:t[e]}}function zn(e){return function(t){return null==e?i:e[t]}}function Hn(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function $n(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Wn(e,t){var n,r=-1,o=e.length;while(++r<o){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Kn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Qn(e,t){return An(t,(function(t){return[t,e[t]]}))}function Gn(e){return e?e.slice(0,br(e)+1).replace(Ie,""):e}function Yn(e){return function(t){return e(t)}}function Jn(e,t){return An(t,(function(t){return e[t]}))}function Xn(e,t){return e.has(t)}function Zn(e,t){var n=-1,r=e.length;while(++n<r&&In(t,e[n],0)>-1);return n}function er(e,t){var n=e.length;while(n--&&In(t,e[n],0)>-1);return n}function tr(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var nr=zn(Zt),rr=zn(en);function or(e){return"\\"+nn[e]}function ir(e,t){return null==e?i:e[t]}function ar(e){return Kt.test(e)}function ur(e){return Qt.test(e)}function sr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function cr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function lr(e,t){return function(n){return e(t(n))}}function fr(e,t){var n=-1,r=e.length,o=0,i=[];while(++n<r){var a=e[n];a!==t&&a!==h||(e[n]=h,i[o++]=n)}return i}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,o=e.length;while(++r<o)if(e[r]===t)return r;return-1}function mr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function gr(e){return ar(e)?wr(e):Bn(e)}function vr(e){return ar(e)?xr(e):Pn(e)}function br(e){var t=e.length;while(t--&&Fe.test(e.charAt(t)));return t}var yr=zn(tn);function wr(e){var t=$t.lastIndex=0;while($t.test(e))++t;return t}function xr(e){return e.match($t)||[]}function _r(e){return e.match(Wt)||[]}var Cr=function e(t){t=null==t?sn:Sr.defaults(sn.Object(),t,Sr.pick(sn,Gt));var n=t.Array,r=t.Date,o=t.Error,Fe=t.Function,ze=t.Math,nt=t.Object,rt=t.RegExp,ot=t.String,it=t.TypeError,at=n.prototype,ut=Fe.prototype,st=nt.prototype,ct=t["__core-js_shared__"],lt=ut.toString,ft=st.hasOwnProperty,dt=0,ht=function(){var e=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),pt=st.toString,mt=lt.call(nt),gt=sn._,vt=rt("^"+lt.call(ft).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=fn?t.Buffer:i,yt=t.Symbol,wt=t.Uint8Array,xt=bt?bt.allocUnsafe:i,_t=lr(nt.getPrototypeOf,nt),Ct=nt.create,St=st.propertyIsEnumerable,kt=at.splice,Et=yt?yt.isConcatSpreadable:i,Ot=yt?yt.iterator:i,At=yt?yt.toStringTag:i,Tt=function(){try{var e=Ka(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Rt=t.clearTimeout!==sn.clearTimeout&&t.clearTimeout,Nt=r&&r.now!==sn.Date.now&&r.now,Dt=t.setTimeout!==sn.setTimeout&&t.setTimeout,Bt=ze.ceil,Pt=ze.floor,jt=nt.getOwnPropertySymbols,Lt=bt?bt.isBuffer:i,Mt=t.isFinite,It=at.join,Ft=lr(nt.keys,nt),Vt=ze.max,Ut=ze.min,qt=r.now,$t=t.parseInt,Wt=ze.random,Kt=at.reverse,Qt=Ka(t,"DataView"),Zt=Ka(t,"Map"),en=Ka(t,"Promise"),tn=Ka(t,"Set"),nn=Ka(t,"WeakMap"),an=Ka(nt,"create"),un=nn&&new nn,cn={},ln=Du(Qt),dn=Du(Zt),hn=Du(en),Bn=Du(tn),Pn=Du(nn),zn=yt?yt.prototype:i,pr=zn?zn.valueOf:i,wr=zn?zn.toString:i;function xr(e){if(kl(e)&&!sl(e)&&!(e instanceof Or)){if(e instanceof Er)return e;if(ft.call(e,"__wrapped__"))return Pu(e)}return new Er(e)}var Cr=function(){function e(){}return function(t){if(!Sl(t))return{};if(Ct)return Ct(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function kr(){}function Er(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Or(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function Ar(){var e=new Or(this.__wrapped__);return e.__actions__=oa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=oa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=oa(this.__views__),e}function Tr(){if(this.__filtered__){var e=new Or(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Rr(){var e=this.__wrapped__.value(),t=this.__dir__,n=sl(e),r=t<0,o=n?e.length:0,i=Xa(0,o,this.__views__),a=i.start,u=i.end,s=u-a,c=r?u:a-1,l=this.__iteratees__,f=l.length,d=0,h=Ut(s,this.__takeCount__);if(!n||!r&&o==s&&h==s)return Fi(e,this.__actions__);var p=[];e:while(s--&&d<h){c+=t;var m=-1,g=e[c];while(++m<f){var v=l[m],b=v.iteratee,y=v.type,w=b(g);if(y==P)g=w;else if(!w){if(y==B)continue e;break e}}p[d++]=g}return p}function Nr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Dr(){this.__data__=an?an(null):{},this.size=0}function Br(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Pr(e){var t=this.__data__;if(an){var n=t[e];return n===f?i:n}return ft.call(t,e)?t[e]:i}function jr(e){var t=this.__data__;return an?t[e]!==i:ft.call(t,e)}function Lr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=an&&t===i?f:t,this}function Mr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ir(){this.__data__=[],this.size=0}function Fr(e){var t=this.__data__,n=lo(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kt.call(t,n,1),--this.size,!0}function Vr(e){var t=this.__data__,n=lo(t,e);return n<0?i:t[n][1]}function Ur(e){return lo(this.__data__,e)>-1}function qr(e,t){var n=this.__data__,r=lo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function zr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Nr,map:new(Zt||Mr),string:new Nr}}function $r(e){var t=$a(this,e)["delete"](e);return this.size-=t?1:0,t}function Wr(e){return $a(this,e).get(e)}function Kr(e){return $a(this,e).has(e)}function Qr(e,t){var n=$a(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Gr(e){var t=-1,n=null==e?0:e.length;this.__data__=new zr;while(++t<n)this.add(e[t])}function Yr(e){return this.__data__.set(e,f),this}function Jr(e){return this.__data__.has(e)}function Xr(e){var t=this.__data__=new Mr(e);this.size=t.size}function Zr(){this.__data__=new Mr,this.size=0}function eo(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function to(e){return this.__data__.get(e)}function no(e){return this.__data__.has(e)}function ro(e,t){var n=this.__data__;if(n instanceof Mr){var r=n.__data__;if(!Zt||r.length<u-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zr(r)}return n.set(e,t),this.size=n.size,this}function oo(e,t){var n=sl(e),r=!n&&ul(e),o=!n&&!r&&hl(e),i=!n&&!r&&!o&&Vl(e),a=n||r||o||i,u=a?Kn(e.length,ot):[],s=u.length;for(var c in e)!t&&!ft.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||au(c,s))||u.push(c);return u}function io(e){var t=e.length;return t?e[bi(0,t-1)]:i}function ao(e,t){return Tu(oa(e),vo(t,0,e.length))}function uo(e){return Tu(oa(e))}function so(e,t,n){(n!==i&&!ol(e[t],n)||n===i&&!(t in e))&&mo(e,t,n)}function co(e,t,n){var r=e[t];ft.call(e,t)&&ol(r,n)&&(n!==i||t in e)||mo(e,t,n)}function lo(e,t){var n=e.length;while(n--)if(ol(e[n][0],t))return n;return-1}function fo(e,t,n,r){return Co(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ho(e,t){return e&&ia(t,Cf(t),e)}function po(e,t){return e&&ia(t,Sf(t),e)}function mo(e,t,n){"__proto__"==t&&Tt?Tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function go(e,t){var r=-1,o=t.length,a=n(o),u=null==e;while(++r<o)a[r]=u?i:vf(e,t[r]);return a}function vo(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function bo(e,t,n,r,o,a){var u,s=t&p,c=t&m,l=t&g;if(n&&(u=o?n(e,r,o,a):n(e)),u!==i)return u;if(!Sl(e))return e;var f=sl(e);if(f){if(u=tu(e),!s)return oa(e,u)}else{var d=Ja(e),h=d==J||d==X;if(hl(e))return Qi(e,s);if(d==ne||d==H||h&&!o){if(u=c||h?{}:nu(e),!s)return c?ua(e,po(u,e)):aa(e,ho(u,e))}else{if(!Xt[d])return o?e:{};u=ru(e,d,s)}}a||(a=new Xr);var v=a.get(e);if(v)return v;a.set(e,u),Ml(e)?e.forEach((function(r){u.add(bo(r,t,n,r,e,a))})):El(e)&&e.forEach((function(r,o){u.set(o,bo(r,t,n,o,e,a))}));var b=l?c?Va:Fa:c?Sf:Cf,y=f?i:b(e);return _n(y||e,(function(r,o){y&&(o=r,r=e[o]),co(u,o,bo(r,t,n,o,e,a))})),u}function yo(e){var t=Cf(e);return function(n){return wo(n,e,t)}}function wo(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var o=n[r],a=t[o],u=e[o];if(u===i&&!(o in e)||!a(u))return!1}return!0}function xo(e,t,n){if("function"!=typeof e)throw new it(c);return ku((function(){e.apply(i,n)}),t)}function _o(e,t,n,r){var o=-1,i=En,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=An(t,Yn(n))),r?(i=On,a=!1):t.length>=u&&(i=Xn,a=!1,t=new Gr(t));e:while(++o<s){var f=e[o],d=null==n?f:n(f);if(f=r||0!==f?f:0,a&&d===d){var h=l;while(h--)if(t[h]===d)continue e;c.push(f)}else i(t,d,r)||c.push(f)}return c}xr.templateSettings={escape:Re,evaluate:Ne,interpolate:De,variable:"",imports:{_:xr}},xr.prototype=kr.prototype,xr.prototype.constructor=xr,Er.prototype=Cr(kr.prototype),Er.prototype.constructor=Er,Or.prototype=Cr(kr.prototype),Or.prototype.constructor=Or,Nr.prototype.clear=Dr,Nr.prototype["delete"]=Br,Nr.prototype.get=Pr,Nr.prototype.has=jr,Nr.prototype.set=Lr,Mr.prototype.clear=Ir,Mr.prototype["delete"]=Fr,Mr.prototype.get=Vr,Mr.prototype.has=Ur,Mr.prototype.set=qr,zr.prototype.clear=Hr,zr.prototype["delete"]=$r,zr.prototype.get=Wr,zr.prototype.has=Kr,zr.prototype.set=Qr,Gr.prototype.add=Gr.prototype.push=Yr,Gr.prototype.has=Jr,Xr.prototype.clear=Zr,Xr.prototype["delete"]=eo,Xr.prototype.get=to,Xr.prototype.has=no,Xr.prototype.set=ro;var Co=la(Do),So=la(Bo,!0);function ko(e,t){var n=!0;return Co(e,(function(e,r,o){return n=!!t(e,r,o),n})),n}function Eo(e,t,n){var r=-1,o=e.length;while(++r<o){var a=e[r],u=t(a);if(null!=u&&(s===i?u===u&&!Fl(u):n(u,s)))var s=u,c=a}return c}function Oo(e,t,n,r){var o=e.length;n=Ql(n),n<0&&(n=-n>o?0:o+n),r=r===i||r>o?o:Ql(r),r<0&&(r+=o),r=n>r?0:Gl(r);while(n<r)e[n++]=t;return e}function Ao(e,t){var n=[];return Co(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function To(e,t,n,r,o){var i=-1,a=e.length;n||(n=iu),o||(o=[]);while(++i<a){var u=e[i];t>0&&n(u)?t>1?To(u,t-1,n,r,o):Tn(o,u):r||(o[o.length]=u)}return o}var Ro=fa(),No=fa(!0);function Do(e,t){return e&&Ro(e,t,Cf)}function Bo(e,t){return e&&No(e,t,Cf)}function Po(e,t){return kn(t,(function(t){return xl(e[t])}))}function jo(e,t){t=Hi(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Nu(t[n++])];return n&&n==r?e:i}function Lo(e,t,n){var r=t(e);return sl(e)?r:Tn(r,n(e))}function Mo(e){return null==e?e===i?ce:te:At&&At in nt(e)?Qa(e):yu(e)}function Io(e,t){return e>t}function Fo(e,t){return null!=e&&ft.call(e,t)}function Vo(e,t){return null!=e&&t in nt(e)}function Uo(e,t,n){return e>=Ut(t,n)&&e<Vt(t,n)}function qo(e,t,r){var o=r?On:En,a=e[0].length,u=e.length,s=u,c=n(u),l=1/0,f=[];while(s--){var d=e[s];s&&t&&(d=An(d,Yn(t))),l=Ut(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Gr(s&&d):i}d=e[0];var h=-1,p=c[0];e:while(++h<a&&f.length<l){var m=d[h],g=t?t(m):m;if(m=r||0!==m?m:0,!(p?Xn(p,g):o(f,g,r))){s=u;while(--s){var v=c[s];if(!(v?Xn(v,g):o(e[s],g,r)))continue e}p&&p.push(g),f.push(m)}}return f}function zo(e,t,n,r){return Do(e,(function(e,o,i){t(r,n(e),o,i)})),r}function Ho(e,t,n){t=Hi(t,e),e=xu(e,t);var r=null==e?e:e[Nu(is(t))];return null==r?i:wn(r,e,n)}function $o(e){return kl(e)&&Mo(e)==H}function Wo(e){return kl(e)&&Mo(e)==de}function Ko(e){return kl(e)&&Mo(e)==Q}function Qo(e,t,n,r,o){return e===t||(null==e||null==t||!kl(e)&&!kl(t)?e!==e&&t!==t:Go(e,t,n,r,Qo,o))}function Go(e,t,n,r,o,i){var a=sl(e),u=sl(t),s=a?$:Ja(e),c=u?$:Ja(t);s=s==H?ne:s,c=c==H?ne:c;var l=s==ne,f=c==ne,d=s==c;if(d&&hl(e)){if(!hl(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new Xr),a||Vl(e)?ja(e,t,n,r,o,i):La(e,t,s,n,r,o,i);if(!(n&v)){var h=l&&ft.call(e,"__wrapped__"),p=f&&ft.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,g=p?t.value():t;return i||(i=new Xr),o(m,g,n,r,i)}}return!!d&&(i||(i=new Xr),Ma(e,t,n,r,o,i))}function Yo(e){return kl(e)&&Ja(e)==Z}function Jo(e,t,n,r){var o=n.length,a=o,u=!r;if(null==e)return!a;e=nt(e);while(o--){var s=n[o];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}while(++o<a){s=n[o];var c=s[0],l=e[c],f=s[1];if(u&&s[2]){if(l===i&&!(c in e))return!1}else{var d=new Xr;if(r)var h=r(l,f,c,e,t,d);if(!(h===i?Qo(f,l,v|b,r,d):h))return!1}}return!0}function Xo(e){if(!Sl(e)||fu(e))return!1;var t=xl(e)?vt:Ye;return t.test(Du(e))}function Zo(e){return kl(e)&&Mo(e)==ie}function ei(e){return kl(e)&&Ja(e)==ae}function ti(e){return kl(e)&&Cl(e.length)&&!!Jt[Mo(e)]}function ni(e){return"function"==typeof e?e:null==e?Nd:"object"==typeof e?sl(e)?si(e[0],e[1]):ui(e):Hd(e)}function ri(e){if(!hu(e))return Ft(e);var t=[];for(var n in nt(e))ft.call(e,n)&&"constructor"!=n&&t.push(n);return t}function oi(e){if(!Sl(e))return bu(e);var t=hu(e),n=[];for(var r in e)("constructor"!=r||!t&&ft.call(e,r))&&n.push(r);return n}function ii(e,t){return e<t}function ai(e,t){var r=-1,o=ll(e)?n(e.length):[];return Co(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function ui(e){var t=Wa(e);return 1==t.length&&t[0][2]?mu(t[0][0],t[0][1]):function(n){return n===e||Jo(n,e,t)}}function si(e,t){return su(e)&&pu(t)?mu(Nu(e),t):function(n){var r=vf(n,e);return r===i&&r===t?yf(n,e):Qo(t,r,v|b)}}function ci(e,t,n,r,o){e!==t&&Ro(t,(function(a,u){if(o||(o=new Xr),Sl(a))li(e,t,u,n,ci,r,o);else{var s=r?r(Cu(e,u),a,u+"",e,t,o):i;s===i&&(s=a),so(e,u,s)}}),Sf)}function li(e,t,n,r,o,a,u){var s=Cu(e,n),c=Cu(t,n),l=u.get(c);if(l)so(e,n,l);else{var f=a?a(s,c,n+"",e,t,u):i,d=f===i;if(d){var h=sl(c),p=!h&&hl(c),m=!h&&!p&&Vl(c);f=c,h||p||m?sl(s)?f=s:fl(s)?f=oa(s):p?(d=!1,f=Qi(c,!0)):m?(d=!1,f=Zi(c,!0)):f=[]:Pl(c)||ul(c)?(f=s,ul(s)?f=Jl(s):Sl(s)&&!xl(s)||(f=nu(c))):d=!1}d&&(u.set(c,f),o(f,c,r,a,u),u["delete"](c)),so(e,n,f)}}function fi(e,t){var n=e.length;if(n)return t+=t<0?n:0,au(t,n)?e[t]:i}function di(e,t,n){t=t.length?An(t,(function(e){return sl(e)?function(t){return jo(t,1===e.length?e[0]:e)}:e})):[Nd];var r=-1;t=An(t,Yn(Ha()));var o=ai(e,(function(e,n,o){var i=An(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return $n(o,(function(e,t){return ta(e,t,n)}))}function hi(e,t){return pi(e,t,(function(t,n){return yf(e,n)}))}function pi(e,t,n){var r=-1,o=t.length,i={};while(++r<o){var a=t[r],u=jo(e,a);n(u,a)&&Si(i,Hi(a,e),u)}return i}function mi(e){return function(t){return jo(t,e)}}function gi(e,t,n,r){var o=r?Fn:In,i=-1,a=t.length,u=e;e===t&&(t=oa(t)),n&&(u=An(e,Yn(n)));while(++i<a){var s=0,c=t[i],l=n?n(c):c;while((s=o(u,l,s,r))>-1)u!==e&&kt.call(u,s,1),kt.call(e,s,1)}return e}function vi(e,t){var n=e?t.length:0,r=n-1;while(n--){var o=t[n];if(n==r||o!==i){var i=o;au(o)?kt.call(e,o,1):Li(e,o)}}return e}function bi(e,t){return e+Pt(Wt()*(t-e+1))}function yi(e,t,r,o){var i=-1,a=Vt(Bt((t-e)/(r||1)),0),u=n(a);while(a--)u[o?a:++i]=e,e+=r;return u}function wi(e,t){var n="";if(!e||t<1||t>M)return n;do{t%2&&(n+=e),t=Pt(t/2),t&&(e+=e)}while(t);return n}function xi(e,t){return Eu(wu(e,t,Nd),e+"")}function _i(e){return io(qf(e))}function Ci(e,t){var n=qf(e);return Tu(n,vo(t,0,n.length))}function Si(e,t,n,r){if(!Sl(e))return e;t=Hi(t,e);var o=-1,a=t.length,u=a-1,s=e;while(null!=s&&++o<a){var c=Nu(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=u){var f=s[c];l=r?r(f,c,s):i,l===i&&(l=Sl(f)?f:au(t[o+1])?[]:{})}co(s,c,l),s=s[c]}return e}var ki=un?function(e,t){return un.set(e,t),e}:Nd,Ei=Tt?function(e,t){return Tt(e,"toString",{configurable:!0,enumerable:!1,value:Od(t),writable:!0})}:Nd;function Oi(e){return Tu(qf(e))}function Ai(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;var a=n(i);while(++o<i)a[o]=e[o+t];return a}function Ti(e,t){var n;return Co(e,(function(e,r,o){return n=t(e,r,o),!n})),!!n}function Ri(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=q){while(r<o){var i=r+o>>>1,a=e[i];null!==a&&!Fl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Ni(e,t,Nd,n)}function Ni(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);var u=t!==t,s=null===t,c=Fl(t),l=t===i;while(o<a){var f=Pt((o+a)/2),d=n(e[f]),h=d!==i,p=null===d,m=d===d,g=Fl(d);if(u)var v=r||m;else v=l?m&&(r||h):s?m&&h&&(r||!p):c?m&&h&&!p&&(r||!g):!p&&!g&&(r?d<=t:d<t);v?o=f+1:a=f}return Ut(a,U)}function Di(e,t){var n=-1,r=e.length,o=0,i=[];while(++n<r){var a=e[n],u=t?t(a):a;if(!n||!ol(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function Bi(e){return"number"==typeof e?e:Fl(e)?F:+e}function Pi(e){if("string"==typeof e)return e;if(sl(e))return An(e,Pi)+"";if(Fl(e))return wr?wr.call(e):"";var t=e+"";return"0"==t&&1/e==-L?"-0":t}function ji(e,t,n){var r=-1,o=En,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=On;else if(i>=u){var l=t?null:Ta(e);if(l)return dr(l);a=!1,o=Xn,c=new Gr}else c=t?[]:s;e:while(++r<i){var f=e[r],d=t?t(f):f;if(f=n||0!==f?f:0,a&&d===d){var h=c.length;while(h--)if(c[h]===d)continue e;t&&c.push(d),s.push(f)}else o(c,d,n)||(c!==s&&c.push(d),s.push(f))}return s}function Li(e,t){return t=Hi(t,e),e=xu(e,t),null==e||delete e[Nu(is(t))]}function Mi(e,t,n,r){return Si(e,t,n(jo(e,t)),r)}function Ii(e,t,n,r){var o=e.length,i=r?o:-1;while((r?i--:++i<o)&&t(e[i],i,e));return n?Ai(e,r?0:i,r?i+1:o):Ai(e,r?i+1:0,r?o:i)}function Fi(e,t){var n=e;return n instanceof Or&&(n=n.value()),Rn(t,(function(e,t){return t.func.apply(t.thisArg,Tn([e],t.args))}),n)}function Vi(e,t,r){var o=e.length;if(o<2)return o?ji(e[0]):[];var i=-1,a=n(o);while(++i<o){var u=e[i],s=-1;while(++s<o)s!=i&&(a[i]=_o(a[i]||u,e[s],t,r))}return ji(To(a,1),t,r)}function Ui(e,t,n){var r=-1,o=e.length,a=t.length,u={};while(++r<o){var s=r<a?t[r]:i;n(u,e[r],s)}return u}function qi(e){return fl(e)?e:[]}function zi(e){return"function"==typeof e?e:Nd}function Hi(e,t){return sl(e)?e:su(e,t)?[e]:Ru(Zl(e))}var $i=xi;function Wi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:Ai(e,t,n)}var Ki=Rt||function(e){return sn.clearTimeout(e)};function Qi(e,t){if(t)return e.slice();var n=e.length,r=xt?xt(n):new e.constructor(n);return e.copy(r),r}function Gi(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Yi(e,t){var n=t?Gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ji(e){var t=new e.constructor(e.source,Ke.exec(e));return t.lastIndex=e.lastIndex,t}function Xi(e){return pr?nt(pr.call(e)):{}}function Zi(e,t){var n=t?Gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=Fl(e),u=t!==i,s=null===t,c=t===t,l=Fl(t);if(!s&&!l&&!a&&e>t||a&&u&&c&&!s&&!l||r&&u&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e<t||l&&n&&o&&!r&&!a||s&&n&&o||!u&&o||!c)return-1}return 0}function ta(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;while(++r<a){var s=ea(o[r],i[r]);if(s){if(r>=u)return s;var c=n[r];return s*("desc"==c?-1:1)}}return e.index-t.index}function na(e,t,r,o){var i=-1,a=e.length,u=r.length,s=-1,c=t.length,l=Vt(a-u,0),f=n(c+l),d=!o;while(++s<c)f[s]=t[s];while(++i<u)(d||i<a)&&(f[r[i]]=e[i]);while(l--)f[s++]=e[i++];return f}function ra(e,t,r,o){var i=-1,a=e.length,u=-1,s=r.length,c=-1,l=t.length,f=Vt(a-s,0),d=n(f+l),h=!o;while(++i<f)d[i]=e[i];var p=i;while(++c<l)d[p+c]=t[c];while(++u<s)(h||i<a)&&(d[p+r[u]]=e[i++]);return d}function oa(e,t){var r=-1,o=e.length;t||(t=n(o));while(++r<o)t[r]=e[r];return t}function ia(e,t,n,r){var o=!n;n||(n={});var a=-1,u=t.length;while(++a<u){var s=t[a],c=r?r(n[s],e[s],s,n,e):i;c===i&&(c=e[s]),o?mo(n,s,c):co(n,s,c)}return n}function aa(e,t){return ia(e,Ga(e),t)}function ua(e,t){return ia(e,Ya(e),t)}function sa(e,t){return function(n,r){var o=sl(n)?xn:fo,i=t?t():{};return o(n,e,Ha(r,2),i)}}function ca(e){return xi((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,u=o>2?n[2]:i;a=e.length>3&&"function"==typeof a?(o--,a):i,u&&uu(n[0],n[1],u)&&(a=o<3?i:a,o=1),t=nt(t);while(++r<o){var s=n[r];s&&e(t,s,r,a)}return t}))}function la(e,t){return function(n,r){if(null==n)return n;if(!ll(n))return e(n,r);var o=n.length,i=t?o:-1,a=nt(n);while(t?i--:++i<o)if(!1===r(a[i],i,a))break;return n}}function fa(e){return function(t,n,r){var o=-1,i=nt(t),a=r(t),u=a.length;while(u--){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}function da(e,t,n){var r=t&y,o=ma(e);function i(){var t=this&&this!==sn&&this instanceof i?o:e;return t.apply(r?n:this,arguments)}return i}function ha(e){return function(t){t=Zl(t);var n=ar(t)?vr(t):i,r=n?n[0]:t.charAt(0),o=n?Wi(n,1).join(""):t.slice(1);return r[e]()+o}}function pa(e){return function(t){return Rn(_d(Gf(t).replace(zt,"")),e,"")}}function ma(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Cr(e.prototype),r=e.apply(n,t);return Sl(r)?r:n}}function ga(e,t,r){var o=ma(e);function a(){var u=arguments.length,s=n(u),c=u,l=za(a);while(c--)s[c]=arguments[c];var f=u<3&&s[0]!==l&&s[u-1]!==l?[]:fr(s,l);if(u-=f.length,u<r)return Oa(e,t,ya,a.placeholder,i,s,f,i,i,r-u);var d=this&&this!==sn&&this instanceof a?o:e;return wn(d,this,s)}return a}function va(e){return function(t,n,r){var o=nt(t);if(!ll(t)){var a=Ha(n,3);t=Cf(t),n=function(e){return a(o[e],e,o)}}var u=e(t,n,r);return u>-1?o[a?t[u]:u]:i}}function ba(e){return Ia((function(t){var n=t.length,r=n,o=Er.prototype.thru;e&&t.reverse();while(r--){var a=t[r];if("function"!=typeof a)throw new it(c);if(o&&!u&&"wrapper"==qa(a))var u=new Er([],!0)}r=u?r:n;while(++r<n){a=t[r];var s=qa(a),l="wrapper"==s?Ua(a):i;u=l&&lu(l[0])&&l[1]==(E|_|S|O)&&!l[4].length&&1==l[9]?u[qa(l[0])].apply(u,l[3]):1==a.length&&lu(a)?u[s]():u.thru(a)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&sl(r))return u.plant(r).value();var o=0,i=n?t[o].apply(this,e):r;while(++o<n)i=t[o].call(this,i);return i}}))}function ya(e,t,r,o,a,u,s,c,l,f){var d=t&E,h=t&y,p=t&w,m=t&(_|C),g=t&A,v=p?i:ma(e);function b(){var i=arguments.length,y=n(i),w=i;while(w--)y[w]=arguments[w];if(m)var x=za(b),_=tr(y,x);if(o&&(y=na(y,o,a,m)),u&&(y=ra(y,u,s,m)),i-=_,m&&i<f){var C=fr(y,x);return Oa(e,t,ya,b.placeholder,r,y,C,c,l,f-i)}var S=h?r:this,k=p?S[e]:e;return i=y.length,c?y=_u(y,c):g&&i>1&&y.reverse(),d&&l<i&&(y.length=l),this&&this!==sn&&this instanceof b&&(k=v||ma(k)),k.apply(S,y)}return b}function wa(e,t){return function(n,r){return zo(n,e,t(r),{})}}function xa(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Pi(n),r=Pi(r)):(n=Bi(n),r=Bi(r)),o=e(n,r)}return o}}function _a(e){return Ia((function(t){return t=An(t,Yn(Ha())),xi((function(n){var r=this;return e(t,(function(e){return wn(e,r,n)}))}))}))}function Ca(e,t){t=t===i?" ":Pi(t);var n=t.length;if(n<2)return n?wi(t,e):t;var r=wi(t,Bt(e/gr(t)));return ar(t)?Wi(vr(r),0,e).join(""):r.slice(0,e)}function Sa(e,t,r,o){var i=t&y,a=ma(e);function u(){var t=-1,s=arguments.length,c=-1,l=o.length,f=n(l+s),d=this&&this!==sn&&this instanceof u?a:e;while(++c<l)f[c]=o[c];while(s--)f[c++]=arguments[++t];return wn(d,i?r:this,f)}return u}function ka(e){return function(t,n,r){return r&&"number"!=typeof r&&uu(t,n,r)&&(n=r=i),t=Kl(t),n===i?(n=t,t=0):n=Kl(n),r=r===i?t<n?1:-1:Kl(r),yi(t,n,r,e)}}function Ea(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Yl(t),n=Yl(n)),e(t,n)}}function Oa(e,t,n,r,o,a,u,s,c,l){var f=t&_,d=f?u:i,h=f?i:u,p=f?a:i,m=f?i:a;t|=f?S:k,t&=~(f?k:S),t&x||(t&=~(y|w));var g=[e,t,o,p,d,m,h,s,c,l],v=n.apply(i,g);return lu(e)&&Su(v,g),v.placeholder=r,Ou(v,e,t)}function Aa(e){var t=ze[e];return function(e,n){if(e=Yl(e),n=null==n?0:Ut(Ql(n),292),n&&Mt(e)){var r=(Zl(e)+"e").split("e"),o=t(r[0]+"e"+(+r[1]+n));return r=(Zl(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Ta=tn&&1/dr(new tn([,-0]))[1]==L?function(e){return new tn(e)}:Fd;function Ra(e){return function(t){var n=Ja(t);return n==Z?cr(t):n==ae?hr(t):Qn(t,e(t))}}function Na(e,t,n,r,o,a,u,s){var l=t&w;if(!l&&"function"!=typeof e)throw new it(c);var f=r?r.length:0;if(f||(t&=~(S|k),r=o=i),u=u===i?u:Vt(Ql(u),0),s=s===i?s:Ql(s),f-=o?o.length:0,t&k){var d=r,h=o;r=o=i}var p=l?i:Ua(e),m=[e,t,n,r,o,d,h,a,u,s];if(p&&vu(m,p),e=m[0],t=m[1],n=m[2],r=m[3],o=m[4],s=m[9]=m[9]===i?l?0:e.length:Vt(m[9]-f,0),!s&&t&(_|C)&&(t&=~(_|C)),t&&t!=y)g=t==_||t==C?ga(e,t,s):t!=S&&t!=(y|S)||o.length?ya.apply(i,m):Sa(e,t,n,r);else var g=da(e,t,n);var v=p?ki:Su;return Ou(v(g,m),e,t)}function Da(e,t,n,r){return e===i||ol(e,st[n])&&!ft.call(r,n)?t:e}function Ba(e,t,n,r,o,a){return Sl(e)&&Sl(t)&&(a.set(t,e),ci(e,t,i,Ba,a),a["delete"](t)),e}function Pa(e){return Pl(e)?i:e}function ja(e,t,n,r,o,a){var u=n&v,s=e.length,c=t.length;if(s!=c&&!(u&&c>s))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var d=-1,h=!0,p=n&b?new Gr:i;a.set(e,t),a.set(t,e);while(++d<s){var m=e[d],g=t[d];if(r)var y=u?r(g,m,d,t,e,a):r(m,g,d,e,t,a);if(y!==i){if(y)continue;h=!1;break}if(p){if(!Dn(t,(function(e,t){if(!Xn(p,t)&&(m===e||o(m,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(m!==g&&!o(m,g,n,r,a)){h=!1;break}}return a["delete"](e),a["delete"](t),h}function La(e,t,n,r,o,i,a){switch(n){case he:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case de:return!(e.byteLength!=t.byteLength||!i(new wt(e),new wt(t)));case K:case Q:case ee:return ol(+e,+t);case Y:return e.name==t.name&&e.message==t.message;case ie:case ue:return e==t+"";case Z:var u=cr;case ae:var s=r&v;if(u||(u=dr),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=b,a.set(e,t);var l=ja(u(e),u(t),r,o,i,a);return a["delete"](e),l;case se:if(pr)return pr.call(e)==pr.call(t)}return!1}function Ma(e,t,n,r,o,a){var u=n&v,s=Fa(e),c=s.length,l=Fa(t),f=l.length;if(c!=f&&!u)return!1;var d=c;while(d--){var h=s[d];if(!(u?h in t:ft.call(t,h)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);var b=u;while(++d<c){h=s[d];var y=e[h],w=t[h];if(r)var x=u?r(w,y,h,t,e,a):r(y,w,h,e,t,a);if(!(x===i?y===w||o(y,w,n,r,a):x)){g=!1;break}b||(b="constructor"==h)}if(g&&!b){var _=e.constructor,C=t.constructor;_==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof C&&C instanceof C||(g=!1)}return a["delete"](e),a["delete"](t),g}function Ia(e){return Eu(wu(e,i,Qu),e+"")}function Fa(e){return Lo(e,Cf,Ga)}function Va(e){return Lo(e,Sf,Ya)}var Ua=un?function(e){return un.get(e)}:Fd;function qa(e){var t=e.name+"",n=cn[t],r=ft.call(cn,t)?n.length:0;while(r--){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function za(e){var t=ft.call(xr,"placeholder")?xr:e;return t.placeholder}function Ha(){var e=xr.iteratee||Dd;return e=e===Dd?ni:e,arguments.length?e(arguments[0],arguments[1]):e}function $a(e,t){var n=e.__data__;return cu(t)?n["string"==typeof t?"string":"hash"]:n.map}function Wa(e){var t=Cf(e),n=t.length;while(n--){var r=t[n],o=e[r];t[n]=[r,o,pu(o)]}return t}function Ka(e,t){var n=ir(e,t);return Xo(n)?n:i}function Qa(e){var t=ft.call(e,At),n=e[At];try{e[At]=i;var r=!0}catch(a){}var o=pt.call(e);return r&&(t?e[At]=n:delete e[At]),o}var Ga=jt?function(e){return null==e?[]:(e=nt(e),kn(jt(e),(function(t){return St.call(e,t)})))}:Qd,Ya=jt?function(e){var t=[];while(e)Tn(t,Ga(e)),e=_t(e);return t}:Qd,Ja=Mo;function Xa(e,t,n){var r=-1,o=n.length;while(++r<o){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ut(t,e+a);break;case"takeRight":e=Vt(e,t-a);break}}return{start:e,end:t}}function Za(e){var t=e.match(Ue);return t?t[1].split(qe):[]}function eu(e,t,n){t=Hi(t,e);var r=-1,o=t.length,i=!1;while(++r<o){var a=Nu(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=null==e?0:e.length,!!o&&Cl(o)&&au(a,o)&&(sl(e)||ul(e)))}function tu(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ft.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function nu(e){return"function"!=typeof e.constructor||hu(e)?{}:Cr(_t(e))}function ru(e,t,n){var r=e.constructor;switch(t){case de:return Gi(e);case K:case Q:return new r(+e);case he:return Yi(e,n);case pe:case me:case ge:case ve:case be:case ye:case we:case xe:case _e:return Zi(e,n);case Z:return new r;case ee:case ue:return new r(e);case ie:return Ji(e);case ae:return new r;case se:return Xi(e)}}function ou(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ve,"{\n/* [wrapped with "+t+"] */\n")}function iu(e){return sl(e)||ul(e)||!!(Et&&e&&e[Et])}function au(e,t){var n=typeof e;return t=null==t?M:t,!!t&&("number"==n||"symbol"!=n&&Xe.test(e))&&e>-1&&e%1==0&&e<t}function uu(e,t,n){if(!Sl(n))return!1;var r=typeof t;return!!("number"==r?ll(n)&&au(t,n.length):"string"==r&&t in n)&&ol(n[t],e)}function su(e,t){if(sl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Fl(e))||(Pe.test(e)||!Be.test(e)||null!=t&&e in nt(t))}function cu(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function lu(e){var t=qa(e),n=xr[t];if("function"!=typeof n||!(t in Or.prototype))return!1;if(e===n)return!0;var r=Ua(n);return!!r&&e===r[0]}function fu(e){return!!ht&&ht in e}(Qt&&Ja(new Qt(new ArrayBuffer(1)))!=he||Zt&&Ja(new Zt)!=Z||en&&Ja(en.resolve())!=re||tn&&Ja(new tn)!=ae||nn&&Ja(new nn)!=le)&&(Ja=function(e){var t=Mo(e),n=t==ne?e.constructor:i,r=n?Du(n):"";if(r)switch(r){case ln:return he;case dn:return Z;case hn:return re;case Bn:return ae;case Pn:return le}return t});var du=ct?xl:Gd;function hu(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||st;return e===n}function pu(e){return e===e&&!Sl(e)}function mu(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in nt(n)))}}function gu(e){var t=Vc(e,(function(e){return n.size===d&&n.clear(),e})),n=t.cache;return t}function vu(e,t){var n=e[1],r=t[1],o=n|r,i=o<(y|w|E),a=r==E&&n==_||r==E&&n==O&&e[7].length<=t[8]||r==(E|O)&&t[7].length<=t[8]&&n==_;if(!i&&!a)return e;r&y&&(e[2]=t[2],o|=n&y?0:x);var u=t[3];if(u){var s=e[3];e[3]=s?na(s,u,t[4]):u,e[4]=s?fr(e[3],h):t[4]}return u=t[5],u&&(s=e[5],e[5]=s?ra(s,u,t[6]):u,e[6]=s?fr(e[5],h):t[6]),u=t[7],u&&(e[7]=u),r&E&&(e[8]=null==e[8]?t[8]:Ut(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function bu(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function yu(e){return pt.call(e)}function wu(e,t,r){return t=Vt(t===i?e.length-1:t,0),function(){var o=arguments,i=-1,a=Vt(o.length-t,0),u=n(a);while(++i<a)u[i]=o[t+i];i=-1;var s=n(t+1);while(++i<t)s[i]=o[i];return s[t]=r(u),wn(e,this,s)}}function xu(e,t){return t.length<2?e:jo(e,Ai(t,0,-1))}function _u(e,t){var n=e.length,r=Ut(t.length,n),o=oa(e);while(r--){var a=t[r];e[r]=au(a,n)?o[a]:i}return e}function Cu(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Su=Au(ki),ku=Dt||function(e,t){return sn.setTimeout(e,t)},Eu=Au(Ei);function Ou(e,t,n){var r=t+"";return Eu(e,ou(r,Bu(Za(r),n)))}function Au(e){var t=0,n=0;return function(){var r=qt(),o=D-(r-n);if(n=r,o>0){if(++t>=N)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Tu(e,t){var n=-1,r=e.length,o=r-1;t=t===i?r:t;while(++n<t){var a=bi(n,o),u=e[a];e[a]=e[n],e[n]=u}return e.length=t,e}var Ru=gu((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(je,(function(e,n,r,o){t.push(r?o.replace($e,"$1"):n||e)})),t}));function Nu(e){if("string"==typeof e||Fl(e))return e;var t=e+"";return"0"==t&&1/e==-L?"-0":t}function Du(e){if(null!=e){try{return lt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Bu(e,t){return _n(z,(function(n){var r="_."+n[0];t&n[1]&&!En(e,r)&&e.push(r)})),e.sort()}function Pu(e){if(e instanceof Or)return e.clone();var t=new Er(e.__wrapped__,e.__chain__);return t.__actions__=oa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ju(e,t,r){t=(r?uu(e,t,r):t===i)?1:Vt(Ql(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];var a=0,u=0,s=n(Bt(o/t));while(a<o)s[u++]=Ai(e,a,a+=t);return s}function Lu(e){var t=-1,n=null==e?0:e.length,r=0,o=[];while(++t<n){var i=e[t];i&&(o[r++]=i)}return o}function Mu(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],o=e;while(o--)t[o-1]=arguments[o];return Tn(sl(r)?oa(r):[r],To(t,1))}var Iu=xi((function(e,t){return fl(e)?_o(e,To(t,1,fl,!0)):[]})),Fu=xi((function(e,t){var n=is(t);return fl(n)&&(n=i),fl(e)?_o(e,To(t,1,fl,!0),Ha(n,2)):[]})),Vu=xi((function(e,t){var n=is(t);return fl(n)&&(n=i),fl(e)?_o(e,To(t,1,fl,!0),i,n):[]}));function Uu(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Ql(t),Ai(e,t<0?0:t,r)):[]}function qu(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Ql(t),t=r-t,Ai(e,0,t<0?0:t)):[]}function zu(e,t){return e&&e.length?Ii(e,Ha(t,3),!0,!0):[]}function Hu(e,t){return e&&e.length?Ii(e,Ha(t,3),!0):[]}function $u(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&uu(e,t,n)&&(n=0,r=o),Oo(e,t,n,r)):[]}function Wu(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ql(n);return o<0&&(o=Vt(r+o,0)),Mn(e,Ha(t,3),o)}function Ku(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Ql(n),o=n<0?Vt(r+o,0):Ut(o,r-1)),Mn(e,Ha(t,3),o,!0)}function Qu(e){var t=null==e?0:e.length;return t?To(e,1):[]}function Gu(e){var t=null==e?0:e.length;return t?To(e,L):[]}function Yu(e,t){var n=null==e?0:e.length;return n?(t=t===i?1:Ql(t),To(e,t)):[]}function Ju(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var o=e[t];r[o[0]]=o[1]}return r}function Xu(e){return e&&e.length?e[0]:i}function Zu(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ql(n);return o<0&&(o=Vt(r+o,0)),In(e,t,o)}function es(e){var t=null==e?0:e.length;return t?Ai(e,0,-1):[]}var ts=xi((function(e){var t=An(e,qi);return t.length&&t[0]===e[0]?qo(t):[]})),ns=xi((function(e){var t=is(e),n=An(e,qi);return t===is(n)?t=i:n.pop(),n.length&&n[0]===e[0]?qo(n,Ha(t,2)):[]})),rs=xi((function(e){var t=is(e),n=An(e,qi);return t="function"==typeof t?t:i,t&&n.pop(),n.length&&n[0]===e[0]?qo(n,i,t):[]}));function os(e,t){return null==e?"":It.call(e,t)}function is(e){var t=null==e?0:e.length;return t?e[t-1]:i}function as(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=Ql(n),o=o<0?Vt(r+o,0):Ut(o,r-1)),t===t?mr(e,t,o):Mn(e,Vn,o,!0)}function us(e,t){return e&&e.length?fi(e,Ql(t)):i}var ss=xi(cs);function cs(e,t){return e&&e.length&&t&&t.length?gi(e,t):e}function ls(e,t,n){return e&&e.length&&t&&t.length?gi(e,t,Ha(n,2)):e}function fs(e,t,n){return e&&e.length&&t&&t.length?gi(e,t,i,n):e}var ds=Ia((function(e,t){var n=null==e?0:e.length,r=go(e,t);return vi(e,An(t,(function(e){return au(e,n)?+e:e})).sort(ea)),r}));function hs(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;t=Ha(t,3);while(++r<i){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return vi(e,o),n}function ps(e){return null==e?e:Kt.call(e)}function ms(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&uu(e,t,n)?(t=0,n=r):(t=null==t?0:Ql(t),n=n===i?r:Ql(n)),Ai(e,t,n)):[]}function gs(e,t){return Ri(e,t)}function vs(e,t,n){return Ni(e,t,Ha(n,2))}function bs(e,t){var n=null==e?0:e.length;if(n){var r=Ri(e,t);if(r<n&&ol(e[r],t))return r}return-1}function ys(e,t){return Ri(e,t,!0)}function ws(e,t,n){return Ni(e,t,Ha(n,2),!0)}function xs(e,t){var n=null==e?0:e.length;if(n){var r=Ri(e,t,!0)-1;if(ol(e[r],t))return r}return-1}function _s(e){return e&&e.length?Di(e):[]}function Cs(e,t){return e&&e.length?Di(e,Ha(t,2)):[]}function Ss(e){var t=null==e?0:e.length;return t?Ai(e,1,t):[]}function ks(e,t,n){return e&&e.length?(t=n||t===i?1:Ql(t),Ai(e,0,t<0?0:t)):[]}function Es(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Ql(t),t=r-t,Ai(e,t<0?0:t,r)):[]}function Os(e,t){return e&&e.length?Ii(e,Ha(t,3),!1,!0):[]}function As(e,t){return e&&e.length?Ii(e,Ha(t,3)):[]}var Ts=xi((function(e){return ji(To(e,1,fl,!0))})),Rs=xi((function(e){var t=is(e);return fl(t)&&(t=i),ji(To(e,1,fl,!0),Ha(t,2))})),Ns=xi((function(e){var t=is(e);return t="function"==typeof t?t:i,ji(To(e,1,fl,!0),i,t)}));function Ds(e){return e&&e.length?ji(e):[]}function Bs(e,t){return e&&e.length?ji(e,Ha(t,2)):[]}function Ps(e,t){return t="function"==typeof t?t:i,e&&e.length?ji(e,i,t):[]}function js(e){if(!e||!e.length)return[];var t=0;return e=kn(e,(function(e){if(fl(e))return t=Vt(e.length,t),!0})),Kn(t,(function(t){return An(e,qn(t))}))}function Ls(e,t){if(!e||!e.length)return[];var n=js(e);return null==t?n:An(n,(function(e){return wn(t,i,e)}))}var Ms=xi((function(e,t){return fl(e)?_o(e,t):[]})),Is=xi((function(e){return Vi(kn(e,fl))})),Fs=xi((function(e){var t=is(e);return fl(t)&&(t=i),Vi(kn(e,fl),Ha(t,2))})),Vs=xi((function(e){var t=is(e);return t="function"==typeof t?t:i,Vi(kn(e,fl),i,t)})),Us=xi(js);function qs(e,t){return Ui(e||[],t||[],co)}function zs(e,t){return Ui(e||[],t||[],Si)}var Hs=xi((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ls(e,n)}));function $s(e){var t=xr(e);return t.__chain__=!0,t}function Ws(e,t){return t(e),e}function Ks(e,t){return t(e)}var Qs=Ia((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return go(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Or&&au(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Ks,args:[o],thisArg:i}),new Er(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));function Gs(){return $s(this)}function Ys(){return new Er(this.value(),this.__chain__)}function Js(){this.__values__===i&&(this.__values__=Wl(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Xs(){return this}function Zs(e){var t,n=this;while(n instanceof kr){var r=Pu(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function ec(){var e=this.__wrapped__;if(e instanceof Or){var t=e;return this.__actions__.length&&(t=new Or(this)),t=t.reverse(),t.__actions__.push({func:Ks,args:[ps],thisArg:i}),new Er(t,this.__chain__)}return this.thru(ps)}function tc(){return Fi(this.__wrapped__,this.__actions__)}var nc=sa((function(e,t,n){ft.call(e,n)?++e[n]:mo(e,n,1)}));function rc(e,t,n){var r=sl(e)?Sn:ko;return n&&uu(e,t,n)&&(t=i),r(e,Ha(t,3))}function oc(e,t){var n=sl(e)?kn:Ao;return n(e,Ha(t,3))}var ic=va(Wu),ac=va(Ku);function uc(e,t){return To(gc(e,t),1)}function sc(e,t){return To(gc(e,t),L)}function cc(e,t,n){return n=n===i?1:Ql(n),To(gc(e,t),n)}function lc(e,t){var n=sl(e)?_n:Co;return n(e,Ha(t,3))}function fc(e,t){var n=sl(e)?Cn:So;return n(e,Ha(t,3))}var dc=sa((function(e,t,n){ft.call(e,n)?e[n].push(t):mo(e,n,[t])}));function hc(e,t,n,r){e=ll(e)?e:qf(e),n=n&&!r?Ql(n):0;var o=e.length;return n<0&&(n=Vt(o+n,0)),Il(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&In(e,t,n)>-1}var pc=xi((function(e,t,r){var o=-1,i="function"==typeof t,a=ll(e)?n(e.length):[];return Co(e,(function(e){a[++o]=i?wn(t,e,r):Ho(e,t,r)})),a})),mc=sa((function(e,t,n){mo(e,n,t)}));function gc(e,t){var n=sl(e)?An:ai;return n(e,Ha(t,3))}function vc(e,t,n,r){return null==e?[]:(sl(t)||(t=null==t?[]:[t]),n=r?i:n,sl(n)||(n=null==n?[]:[n]),di(e,t,n))}var bc=sa((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function yc(e,t,n){var r=sl(e)?Rn:Hn,o=arguments.length<3;return r(e,Ha(t,4),n,o,Co)}function wc(e,t,n){var r=sl(e)?Nn:Hn,o=arguments.length<3;return r(e,Ha(t,4),n,o,So)}function xc(e,t){var n=sl(e)?kn:Ao;return n(e,Uc(Ha(t,3)))}function _c(e){var t=sl(e)?io:_i;return t(e)}function Cc(e,t,n){t=(n?uu(e,t,n):t===i)?1:Ql(t);var r=sl(e)?ao:Ci;return r(e,t)}function Sc(e){var t=sl(e)?uo:Oi;return t(e)}function kc(e){if(null==e)return 0;if(ll(e))return Il(e)?gr(e):e.length;var t=Ja(e);return t==Z||t==ae?e.size:ri(e).length}function Ec(e,t,n){var r=sl(e)?Dn:Ti;return n&&uu(e,t,n)&&(t=i),r(e,Ha(t,3))}var Oc=xi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&uu(e,t[0],t[1])?t=[]:n>2&&uu(t[0],t[1],t[2])&&(t=[t[0]]),di(e,To(t,1),[])})),Ac=Nt||function(){return sn.Date.now()};function Tc(e,t){if("function"!=typeof t)throw new it(c);return e=Ql(e),function(){if(--e<1)return t.apply(this,arguments)}}function Rc(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Na(e,E,i,i,i,i,t)}function Nc(e,t){var n;if("function"!=typeof t)throw new it(c);return e=Ql(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Dc=xi((function(e,t,n){var r=y;if(n.length){var o=fr(n,za(Dc));r|=S}return Na(e,r,t,n,o)})),Bc=xi((function(e,t,n){var r=y|w;if(n.length){var o=fr(n,za(Bc));r|=S}return Na(t,r,e,n,o)}));function Pc(e,t,n){t=n?i:t;var r=Na(e,_,i,i,i,i,i,t);return r.placeholder=Pc.placeholder,r}function jc(e,t,n){t=n?i:t;var r=Na(e,C,i,i,i,i,i,t);return r.placeholder=jc.placeholder,r}function Lc(e,t,n){var r,o,a,u,s,l,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new it(c);function m(t){var n=r,a=o;return r=o=i,f=t,u=e.apply(a,n),u}function g(e){return f=e,s=ku(y,t),d?m(e):u}function v(e){var n=e-l,r=e-f,o=t-n;return h?Ut(o,a-r):o}function b(e){var n=e-l,r=e-f;return l===i||n>=t||n<0||h&&r>=a}function y(){var e=Ac();if(b(e))return w(e);s=ku(y,v(e))}function w(e){return s=i,p&&r?m(e):(r=o=i,u)}function x(){s!==i&&Ki(s),f=0,r=l=o=s=i}function _(){return s===i?u:w(Ac())}function C(){var e=Ac(),n=b(e);if(r=arguments,o=this,l=e,n){if(s===i)return g(l);if(h)return Ki(s),s=ku(y,t),m(l)}return s===i&&(s=ku(y,t)),u}return t=Yl(t)||0,Sl(n)&&(d=!!n.leading,h="maxWait"in n,a=h?Vt(Yl(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),C.cancel=x,C.flush=_,C}var Mc=xi((function(e,t){return xo(e,1,t)})),Ic=xi((function(e,t,n){return xo(e,Yl(t)||0,n)}));function Fc(e){return Na(e,A)}function Vc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(c);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Vc.Cache||zr),n}function Uc(e){if("function"!=typeof e)throw new it(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function qc(e){return Nc(2,e)}Vc.Cache=zr;var zc=$i((function(e,t){t=1==t.length&&sl(t[0])?An(t[0],Yn(Ha())):An(To(t,1),Yn(Ha()));var n=t.length;return xi((function(r){var o=-1,i=Ut(r.length,n);while(++o<i)r[o]=t[o].call(this,r[o]);return wn(e,this,r)}))})),Hc=xi((function(e,t){var n=fr(t,za(Hc));return Na(e,S,i,t,n)})),$c=xi((function(e,t){var n=fr(t,za($c));return Na(e,k,i,t,n)})),Wc=Ia((function(e,t){return Na(e,O,i,i,i,t)}));function Kc(e,t){if("function"!=typeof e)throw new it(c);return t=t===i?t:Ql(t),xi(e,t)}function Qc(e,t){if("function"!=typeof e)throw new it(c);return t=null==t?0:Vt(Ql(t),0),xi((function(n){var r=n[t],o=Wi(n,0,t);return r&&Tn(o,r),wn(e,this,o)}))}function Gc(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new it(c);return Sl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Lc(e,t,{leading:r,maxWait:t,trailing:o})}function Yc(e){return Rc(e,1)}function Jc(e,t){return Hc(zi(t),e)}function Xc(){if(!arguments.length)return[];var e=arguments[0];return sl(e)?e:[e]}function Zc(e){return bo(e,g)}function el(e,t){return t="function"==typeof t?t:i,bo(e,g,t)}function tl(e){return bo(e,p|g)}function nl(e,t){return t="function"==typeof t?t:i,bo(e,p|g,t)}function rl(e,t){return null==t||wo(e,t,Cf(t))}function ol(e,t){return e===t||e!==e&&t!==t}var il=Ea(Io),al=Ea((function(e,t){return e>=t})),ul=$o(function(){return arguments}())?$o:function(e){return kl(e)&&ft.call(e,"callee")&&!St.call(e,"callee")},sl=n.isArray,cl=pn?Yn(pn):Wo;function ll(e){return null!=e&&Cl(e.length)&&!xl(e)}function fl(e){return kl(e)&&ll(e)}function dl(e){return!0===e||!1===e||kl(e)&&Mo(e)==K}var hl=Lt||Gd,pl=mn?Yn(mn):Ko;function ml(e){return kl(e)&&1===e.nodeType&&!Pl(e)}function gl(e){if(null==e)return!0;if(ll(e)&&(sl(e)||"string"==typeof e||"function"==typeof e.splice||hl(e)||Vl(e)||ul(e)))return!e.length;var t=Ja(e);if(t==Z||t==ae)return!e.size;if(hu(e))return!ri(e).length;for(var n in e)if(ft.call(e,n))return!1;return!0}function vl(e,t){return Qo(e,t)}function bl(e,t,n){n="function"==typeof n?n:i;var r=n?n(e,t):i;return r===i?Qo(e,t,i,n):!!r}function yl(e){if(!kl(e))return!1;var t=Mo(e);return t==Y||t==G||"string"==typeof e.message&&"string"==typeof e.name&&!Pl(e)}function wl(e){return"number"==typeof e&&Mt(e)}function xl(e){if(!Sl(e))return!1;var t=Mo(e);return t==J||t==X||t==W||t==oe}function _l(e){return"number"==typeof e&&e==Ql(e)}function Cl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=M}function Sl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function kl(e){return null!=e&&"object"==typeof e}var El=gn?Yn(gn):Yo;function Ol(e,t){return e===t||Jo(e,t,Wa(t))}function Al(e,t,n){return n="function"==typeof n?n:i,Jo(e,t,Wa(t),n)}function Tl(e){return Bl(e)&&e!=+e}function Rl(e){if(du(e))throw new o(s);return Xo(e)}function Nl(e){return null===e}function Dl(e){return null==e}function Bl(e){return"number"==typeof e||kl(e)&&Mo(e)==ee}function Pl(e){if(!kl(e)||Mo(e)!=ne)return!1;var t=_t(e);if(null===t)return!0;var n=ft.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&lt.call(n)==mt}var jl=vn?Yn(vn):Zo;function Ll(e){return _l(e)&&e>=-M&&e<=M}var Ml=bn?Yn(bn):ei;function Il(e){return"string"==typeof e||!sl(e)&&kl(e)&&Mo(e)==ue}function Fl(e){return"symbol"==typeof e||kl(e)&&Mo(e)==se}var Vl=yn?Yn(yn):ti;function Ul(e){return e===i}function ql(e){return kl(e)&&Ja(e)==le}function zl(e){return kl(e)&&Mo(e)==fe}var Hl=Ea(ii),$l=Ea((function(e,t){return e<=t}));function Wl(e){if(!e)return[];if(ll(e))return Il(e)?vr(e):oa(e);if(Ot&&e[Ot])return sr(e[Ot]());var t=Ja(e),n=t==Z?cr:t==ae?dr:qf;return n(e)}function Kl(e){if(!e)return 0===e?e:0;if(e=Yl(e),e===L||e===-L){var t=e<0?-1:1;return t*I}return e===e?e:0}function Ql(e){var t=Kl(e),n=t%1;return t===t?n?t-n:t:0}function Gl(e){return e?vo(Ql(e),0,V):0}function Yl(e){if("number"==typeof e)return e;if(Fl(e))return F;if(Sl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Sl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gn(e);var n=Ge.test(e);return n||Je.test(e)?on(e.slice(2),n?2:8):Qe.test(e)?F:+e}function Jl(e){return ia(e,Sf(e))}function Xl(e){return e?vo(Ql(e),-M,M):0===e?e:0}function Zl(e){return null==e?"":Pi(e)}var ef=ca((function(e,t){if(hu(t)||ll(t))ia(t,Cf(t),e);else for(var n in t)ft.call(t,n)&&co(e,n,t[n])})),tf=ca((function(e,t){ia(t,Sf(t),e)})),nf=ca((function(e,t,n,r){ia(t,Sf(t),e,r)})),rf=ca((function(e,t,n,r){ia(t,Cf(t),e,r)})),of=Ia(go);function af(e,t){var n=Cr(e);return null==t?n:ho(n,t)}var uf=xi((function(e,t){e=nt(e);var n=-1,r=t.length,o=r>2?t[2]:i;o&&uu(t[0],t[1],o)&&(r=1);while(++n<r){var a=t[n],u=Sf(a),s=-1,c=u.length;while(++s<c){var l=u[s],f=e[l];(f===i||ol(f,st[l])&&!ft.call(e,l))&&(e[l]=a[l])}}return e})),sf=xi((function(e){return e.push(i,Ba),wn(Af,i,e)}));function cf(e,t){return Ln(e,Ha(t,3),Do)}function lf(e,t){return Ln(e,Ha(t,3),Bo)}function ff(e,t){return null==e?e:Ro(e,Ha(t,3),Sf)}function df(e,t){return null==e?e:No(e,Ha(t,3),Sf)}function hf(e,t){return e&&Do(e,Ha(t,3))}function pf(e,t){return e&&Bo(e,Ha(t,3))}function mf(e){return null==e?[]:Po(e,Cf(e))}function gf(e){return null==e?[]:Po(e,Sf(e))}function vf(e,t,n){var r=null==e?i:jo(e,t);return r===i?n:r}function bf(e,t){return null!=e&&eu(e,t,Fo)}function yf(e,t){return null!=e&&eu(e,t,Vo)}var wf=wa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),e[t]=n}),Od(Nd)),xf=wa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),ft.call(e,t)?e[t].push(n):e[t]=[n]}),Ha),_f=xi(Ho);function Cf(e){return ll(e)?oo(e):ri(e)}function Sf(e){return ll(e)?oo(e,!0):oi(e)}function kf(e,t){var n={};return t=Ha(t,3),Do(e,(function(e,r,o){mo(n,t(e,r,o),e)})),n}function Ef(e,t){var n={};return t=Ha(t,3),Do(e,(function(e,r,o){mo(n,r,t(e,r,o))})),n}var Of=ca((function(e,t,n){ci(e,t,n)})),Af=ca((function(e,t,n,r){ci(e,t,n,r)})),Tf=Ia((function(e,t){var n={};if(null==e)return n;var r=!1;t=An(t,(function(t){return t=Hi(t,e),r||(r=t.length>1),t})),ia(e,Va(e),n),r&&(n=bo(n,p|m|g,Pa));var o=t.length;while(o--)Li(n,t[o]);return n}));function Rf(e,t){return Df(e,Uc(Ha(t)))}var Nf=Ia((function(e,t){return null==e?{}:hi(e,t)}));function Df(e,t){if(null==e)return{};var n=An(Va(e),(function(e){return[e]}));return t=Ha(t),pi(e,n,(function(e,n){return t(e,n[0])}))}function Bf(e,t,n){t=Hi(t,e);var r=-1,o=t.length;o||(o=1,e=i);while(++r<o){var a=null==e?i:e[Nu(t[r])];a===i&&(r=o,a=n),e=xl(a)?a.call(e):a}return e}function Pf(e,t,n){return null==e?e:Si(e,t,n)}function jf(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Si(e,t,n,r)}var Lf=Ra(Cf),Mf=Ra(Sf);function If(e,t,n){var r=sl(e),o=r||hl(e)||Vl(e);if(t=Ha(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Sl(e)&&xl(i)?Cr(_t(e)):{}}return(o?_n:Do)(e,(function(e,r,o){return t(n,e,r,o)})),n}function Ff(e,t){return null==e||Li(e,t)}function Vf(e,t,n){return null==e?e:Mi(e,t,zi(n))}function Uf(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Mi(e,t,zi(n),r)}function qf(e){return null==e?[]:Jn(e,Cf(e))}function zf(e){return null==e?[]:Jn(e,Sf(e))}function Hf(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Yl(n),n=n===n?n:0),t!==i&&(t=Yl(t),t=t===t?t:0),vo(Yl(e),t,n)}function $f(e,t,n){return t=Kl(t),n===i?(n=t,t=0):n=Kl(n),e=Yl(e),Uo(e,t,n)}function Wf(e,t,n){if(n&&"boolean"!=typeof n&&uu(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=Kl(e),t===i?(t=e,e=0):t=Kl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Wt();return Ut(e+o*(t-e+rn("1e-"+((o+"").length-1))),t)}return bi(e,t)}var Kf=pa((function(e,t,n){return t=t.toLowerCase(),e+(n?Qf(t):t)}));function Qf(e){return xd(Zl(e).toLowerCase())}function Gf(e){return e=Zl(e),e&&e.replace(Ze,nr).replace(Ht,"")}function Yf(e,t,n){e=Zl(e),t=Pi(t);var r=e.length;n=n===i?r:vo(Ql(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function Jf(e){return e=Zl(e),e&&Te.test(e)?e.replace(Oe,rr):e}function Xf(e){return e=Zl(e),e&&Me.test(e)?e.replace(Le,"\\$&"):e}var Zf=pa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ed=pa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),td=ha("toLowerCase");function nd(e,t,n){e=Zl(e),t=Ql(t);var r=t?gr(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ca(Pt(o),n)+e+Ca(Bt(o),n)}function rd(e,t,n){e=Zl(e),t=Ql(t);var r=t?gr(e):0;return t&&r<t?e+Ca(t-r,n):e}function od(e,t,n){e=Zl(e),t=Ql(t);var r=t?gr(e):0;return t&&r<t?Ca(t-r,n)+e:e}function id(e,t,n){return n||null==t?t=0:t&&(t=+t),$t(Zl(e).replace(Ie,""),t||0)}function ad(e,t,n){return t=(n?uu(e,t,n):t===i)?1:Ql(t),wi(Zl(e),t)}function ud(){var e=arguments,t=Zl(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sd=pa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function cd(e,t,n){return n&&"number"!=typeof n&&uu(e,t,n)&&(t=n=i),n=n===i?V:n>>>0,n?(e=Zl(e),e&&("string"==typeof t||null!=t&&!jl(t))&&(t=Pi(t),!t&&ar(e))?Wi(vr(e),0,n):e.split(t,n)):[]}var ld=pa((function(e,t,n){return e+(n?" ":"")+xd(t)}));function fd(e,t,n){return e=Zl(e),n=null==n?0:vo(Ql(n),0,e.length),t=Pi(t),e.slice(n,n+t.length)==t}function dd(e,t,n){var r=xr.templateSettings;n&&uu(e,t,n)&&(t=i),e=Zl(e),t=nf({},t,r,Da);var a,u,s=nf({},t.imports,r.imports,Da),c=Cf(s),f=Jn(s,c),d=0,h=t.interpolate||et,p="__p += '",m=rt((t.escape||et).source+"|"+h.source+"|"+(h===De?We:et).source+"|"+(t.evaluate||et).source+"|$","g"),g="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yt+"]")+"\n";e.replace(m,(function(t,n,r,o,i,s){return r||(r=o),p+=e.slice(d,s).replace(tt,or),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),i&&(u=!0,p+="';\n"+i+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=s+t.length,t})),p+="';\n";var v=ft.call(t,"variable")&&t.variable;if(v){if(He.test(v))throw new o(l)}else p="with (obj) {\n"+p+"\n}\n";p=(u?p.replace(Ce,""):p).replace(Se,"$1").replace(ke,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var b=Cd((function(){return Fe(c,g+"return "+p).apply(i,f)}));if(b.source=p,yl(b))throw b;return b}function hd(e){return Zl(e).toLowerCase()}function pd(e){return Zl(e).toUpperCase()}function md(e,t,n){if(e=Zl(e),e&&(n||t===i))return Gn(e);if(!e||!(t=Pi(t)))return e;var r=vr(e),o=vr(t),a=Zn(r,o),u=er(r,o)+1;return Wi(r,a,u).join("")}function gd(e,t,n){if(e=Zl(e),e&&(n||t===i))return e.slice(0,br(e)+1);if(!e||!(t=Pi(t)))return e;var r=vr(e),o=er(r,vr(t))+1;return Wi(r,0,o).join("")}function vd(e,t,n){if(e=Zl(e),e&&(n||t===i))return e.replace(Ie,"");if(!e||!(t=Pi(t)))return e;var r=vr(e),o=Zn(r,vr(t));return Wi(r,o).join("")}function bd(e,t){var n=T,r=R;if(Sl(t)){var o="separator"in t?t.separator:o;n="length"in t?Ql(t.length):n,r="omission"in t?Pi(t.omission):r}e=Zl(e);var a=e.length;if(ar(e)){var u=vr(e);a=u.length}if(n>=a)return e;var s=n-gr(r);if(s<1)return r;var c=u?Wi(u,0,s).join(""):e.slice(0,s);if(o===i)return c+r;if(u&&(s+=c.length-s),jl(o)){if(e.slice(s).search(o)){var l,f=c;o.global||(o=rt(o.source,Zl(Ke.exec(o))+"g")),o.lastIndex=0;while(l=o.exec(f))var d=l.index;c=c.slice(0,d===i?s:d)}}else if(e.indexOf(Pi(o),s)!=s){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r}function yd(e){return e=Zl(e),e&&Ae.test(e)?e.replace(Ee,yr):e}var wd=pa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),xd=ha("toUpperCase");function _d(e,t,n){return e=Zl(e),t=n?i:t,t===i?ur(e)?_r(e):jn(e):e.match(t)||[]}var Cd=xi((function(e,t){try{return wn(e,i,t)}catch(n){return yl(n)?n:new o(n)}})),Sd=Ia((function(e,t){return _n(t,(function(t){t=Nu(t),mo(e,t,Dc(e[t],e))})),e}));function kd(e){var t=null==e?0:e.length,n=Ha();return e=t?An(e,(function(e){if("function"!=typeof e[1])throw new it(c);return[n(e[0]),e[1]]})):[],xi((function(n){var r=-1;while(++r<t){var o=e[r];if(wn(o[0],this,n))return wn(o[1],this,n)}}))}function Ed(e){return yo(bo(e,p))}function Od(e){return function(){return e}}function Ad(e,t){return null==e||e!==e?t:e}var Td=ba(),Rd=ba(!0);function Nd(e){return e}function Dd(e){return ni("function"==typeof e?e:bo(e,p))}function Bd(e){return ui(bo(e,p))}function Pd(e,t){return si(e,bo(t,p))}var jd=xi((function(e,t){return function(n){return Ho(n,e,t)}})),Ld=xi((function(e,t){return function(n){return Ho(e,n,t)}}));function Md(e,t,n){var r=Cf(t),o=Po(t,r);null!=n||Sl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Po(t,Cf(t)));var i=!(Sl(n)&&"chain"in n)||!!n.chain,a=xl(e);return _n(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=oa(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tn([this.value()],arguments))})})),e}function Id(){return sn._===this&&(sn._=gt),this}function Fd(){}function Vd(e){return e=Ql(e),xi((function(t){return fi(t,e)}))}var Ud=_a(An),qd=_a(Sn),zd=_a(Dn);function Hd(e){return su(e)?qn(Nu(e)):mi(e)}function $d(e){return function(t){return null==e?i:jo(e,t)}}var Wd=ka(),Kd=ka(!0);function Qd(){return[]}function Gd(){return!1}function Yd(){return{}}function Jd(){return""}function Xd(){return!0}function Zd(e,t){if(e=Ql(e),e<1||e>M)return[];var n=V,r=Ut(e,V);t=Ha(t),e-=V;var o=Kn(r,t);while(++n<e)t(n);return o}function eh(e){return sl(e)?An(e,Nu):Fl(e)?[e]:oa(Ru(Zl(e)))}function th(e){var t=++dt;return Zl(e)+t}var nh=xa((function(e,t){return e+t}),0),rh=Aa("ceil"),oh=xa((function(e,t){return e/t}),1),ih=Aa("floor");function ah(e){return e&&e.length?Eo(e,Nd,Io):i}function uh(e,t){return e&&e.length?Eo(e,Ha(t,2),Io):i}function sh(e){return Un(e,Nd)}function ch(e,t){return Un(e,Ha(t,2))}function lh(e){return e&&e.length?Eo(e,Nd,ii):i}function fh(e,t){return e&&e.length?Eo(e,Ha(t,2),ii):i}var dh=xa((function(e,t){return e*t}),1),hh=Aa("round"),ph=xa((function(e,t){return e-t}),0);function mh(e){return e&&e.length?Wn(e,Nd):0}function gh(e,t){return e&&e.length?Wn(e,Ha(t,2)):0}return xr.after=Tc,xr.ary=Rc,xr.assign=ef,xr.assignIn=tf,xr.assignInWith=nf,xr.assignWith=rf,xr.at=of,xr.before=Nc,xr.bind=Dc,xr.bindAll=Sd,xr.bindKey=Bc,xr.castArray=Xc,xr.chain=$s,xr.chunk=ju,xr.compact=Lu,xr.concat=Mu,xr.cond=kd,xr.conforms=Ed,xr.constant=Od,xr.countBy=nc,xr.create=af,xr.curry=Pc,xr.curryRight=jc,xr.debounce=Lc,xr.defaults=uf,xr.defaultsDeep=sf,xr.defer=Mc,xr.delay=Ic,xr.difference=Iu,xr.differenceBy=Fu,xr.differenceWith=Vu,xr.drop=Uu,xr.dropRight=qu,xr.dropRightWhile=zu,xr.dropWhile=Hu,xr.fill=$u,xr.filter=oc,xr.flatMap=uc,xr.flatMapDeep=sc,xr.flatMapDepth=cc,xr.flatten=Qu,xr.flattenDeep=Gu,xr.flattenDepth=Yu,xr.flip=Fc,xr.flow=Td,xr.flowRight=Rd,xr.fromPairs=Ju,xr.functions=mf,xr.functionsIn=gf,xr.groupBy=dc,xr.initial=es,xr.intersection=ts,xr.intersectionBy=ns,xr.intersectionWith=rs,xr.invert=wf,xr.invertBy=xf,xr.invokeMap=pc,xr.iteratee=Dd,xr.keyBy=mc,xr.keys=Cf,xr.keysIn=Sf,xr.map=gc,xr.mapKeys=kf,xr.mapValues=Ef,xr.matches=Bd,xr.matchesProperty=Pd,xr.memoize=Vc,xr.merge=Of,xr.mergeWith=Af,xr.method=jd,xr.methodOf=Ld,xr.mixin=Md,xr.negate=Uc,xr.nthArg=Vd,xr.omit=Tf,xr.omitBy=Rf,xr.once=qc,xr.orderBy=vc,xr.over=Ud,xr.overArgs=zc,xr.overEvery=qd,xr.overSome=zd,xr.partial=Hc,xr.partialRight=$c,xr.partition=bc,xr.pick=Nf,xr.pickBy=Df,xr.property=Hd,xr.propertyOf=$d,xr.pull=ss,xr.pullAll=cs,xr.pullAllBy=ls,xr.pullAllWith=fs,xr.pullAt=ds,xr.range=Wd,xr.rangeRight=Kd,xr.rearg=Wc,xr.reject=xc,xr.remove=hs,xr.rest=Kc,xr.reverse=ps,xr.sampleSize=Cc,xr.set=Pf,xr.setWith=jf,xr.shuffle=Sc,xr.slice=ms,xr.sortBy=Oc,xr.sortedUniq=_s,xr.sortedUniqBy=Cs,xr.split=cd,xr.spread=Qc,xr.tail=Ss,xr.take=ks,xr.takeRight=Es,xr.takeRightWhile=Os,xr.takeWhile=As,xr.tap=Ws,xr.throttle=Gc,xr.thru=Ks,xr.toArray=Wl,xr.toPairs=Lf,xr.toPairsIn=Mf,xr.toPath=eh,xr.toPlainObject=Jl,xr.transform=If,xr.unary=Yc,xr.union=Ts,xr.unionBy=Rs,xr.unionWith=Ns,xr.uniq=Ds,xr.uniqBy=Bs,xr.uniqWith=Ps,xr.unset=Ff,xr.unzip=js,xr.unzipWith=Ls,xr.update=Vf,xr.updateWith=Uf,xr.values=qf,xr.valuesIn=zf,xr.without=Ms,xr.words=_d,xr.wrap=Jc,xr.xor=Is,xr.xorBy=Fs,xr.xorWith=Vs,xr.zip=Us,xr.zipObject=qs,xr.zipObjectDeep=zs,xr.zipWith=Hs,xr.entries=Lf,xr.entriesIn=Mf,xr.extend=tf,xr.extendWith=nf,Md(xr,xr),xr.add=nh,xr.attempt=Cd,xr.camelCase=Kf,xr.capitalize=Qf,xr.ceil=rh,xr.clamp=Hf,xr.clone=Zc,xr.cloneDeep=tl,xr.cloneDeepWith=nl,xr.cloneWith=el,xr.conformsTo=rl,xr.deburr=Gf,xr.defaultTo=Ad,xr.divide=oh,xr.endsWith=Yf,xr.eq=ol,xr.escape=Jf,xr.escapeRegExp=Xf,xr.every=rc,xr.find=ic,xr.findIndex=Wu,xr.findKey=cf,xr.findLast=ac,xr.findLastIndex=Ku,xr.findLastKey=lf,xr.floor=ih,xr.forEach=lc,xr.forEachRight=fc,xr.forIn=ff,xr.forInRight=df,xr.forOwn=hf,xr.forOwnRight=pf,xr.get=vf,xr.gt=il,xr.gte=al,xr.has=bf,xr.hasIn=yf,xr.head=Xu,xr.identity=Nd,xr.includes=hc,xr.indexOf=Zu,xr.inRange=$f,xr.invoke=_f,xr.isArguments=ul,xr.isArray=sl,xr.isArrayBuffer=cl,xr.isArrayLike=ll,xr.isArrayLikeObject=fl,xr.isBoolean=dl,xr.isBuffer=hl,xr.isDate=pl,xr.isElement=ml,xr.isEmpty=gl,xr.isEqual=vl,xr.isEqualWith=bl,xr.isError=yl,xr.isFinite=wl,xr.isFunction=xl,xr.isInteger=_l,xr.isLength=Cl,xr.isMap=El,xr.isMatch=Ol,xr.isMatchWith=Al,xr.isNaN=Tl,xr.isNative=Rl,xr.isNil=Dl,xr.isNull=Nl,xr.isNumber=Bl,xr.isObject=Sl,xr.isObjectLike=kl,xr.isPlainObject=Pl,xr.isRegExp=jl,xr.isSafeInteger=Ll,xr.isSet=Ml,xr.isString=Il,xr.isSymbol=Fl,xr.isTypedArray=Vl,xr.isUndefined=Ul,xr.isWeakMap=ql,xr.isWeakSet=zl,xr.join=os,xr.kebabCase=Zf,xr.last=is,xr.lastIndexOf=as,xr.lowerCase=ed,xr.lowerFirst=td,xr.lt=Hl,xr.lte=$l,xr.max=ah,xr.maxBy=uh,xr.mean=sh,xr.meanBy=ch,xr.min=lh,xr.minBy=fh,xr.stubArray=Qd,xr.stubFalse=Gd,xr.stubObject=Yd,xr.stubString=Jd,xr.stubTrue=Xd,xr.multiply=dh,xr.nth=us,xr.noConflict=Id,xr.noop=Fd,xr.now=Ac,xr.pad=nd,xr.padEnd=rd,xr.padStart=od,xr.parseInt=id,xr.random=Wf,xr.reduce=yc,xr.reduceRight=wc,xr.repeat=ad,xr.replace=ud,xr.result=Bf,xr.round=hh,xr.runInContext=e,xr.sample=_c,xr.size=kc,xr.snakeCase=sd,xr.some=Ec,xr.sortedIndex=gs,xr.sortedIndexBy=vs,xr.sortedIndexOf=bs,xr.sortedLastIndex=ys,xr.sortedLastIndexBy=ws,xr.sortedLastIndexOf=xs,xr.startCase=ld,xr.startsWith=fd,xr.subtract=ph,xr.sum=mh,xr.sumBy=gh,xr.template=dd,xr.times=Zd,xr.toFinite=Kl,xr.toInteger=Ql,xr.toLength=Gl,xr.toLower=hd,xr.toNumber=Yl,xr.toSafeInteger=Xl,xr.toString=Zl,xr.toUpper=pd,xr.trim=md,xr.trimEnd=gd,xr.trimStart=vd,xr.truncate=bd,xr.unescape=yd,xr.uniqueId=th,xr.upperCase=wd,xr.upperFirst=xd,xr.each=lc,xr.eachRight=fc,xr.first=Xu,Md(xr,function(){var e={};return Do(xr,(function(t,n){ft.call(xr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),xr.VERSION=a,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xr[e].placeholder=xr})),_n(["drop","take"],(function(e,t){Or.prototype[e]=function(n){n=n===i?1:Vt(Ql(n),0);var r=this.__filtered__&&!t?new Or(this):this.clone();return r.__filtered__?r.__takeCount__=Ut(n,r.__takeCount__):r.__views__.push({size:Ut(n,V),type:e+(r.__dir__<0?"Right":"")}),r},Or.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),_n(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==B||n==j;Or.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ha(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_n(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Or.prototype[e]=function(){return this[n](1).value()[0]}})),_n(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Or.prototype[e]=function(){return this.__filtered__?new Or(this):this[n](1)}})),Or.prototype.compact=function(){return this.filter(Nd)},Or.prototype.find=function(e){return this.filter(e).head()},Or.prototype.findLast=function(e){return this.reverse().find(e)},Or.prototype.invokeMap=xi((function(e,t){return"function"==typeof e?new Or(this):this.map((function(n){return Ho(n,e,t)}))})),Or.prototype.reject=function(e){return this.filter(Uc(Ha(e)))},Or.prototype.slice=function(e,t){e=Ql(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Or(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=Ql(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Or.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Or.prototype.toArray=function(){return this.take(V)},Do(Or.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=xr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(xr.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,s=t instanceof Or,c=u[0],l=s||sl(t),f=function(e){var t=o.apply(xr,Tn([e],u));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var d=this.__chain__,h=!!this.__actions__.length,p=a&&!d,m=s&&!h;if(!a&&l){t=m?t:new Or(this);var g=e.apply(t,u);return g.__actions__.push({func:Ks,args:[f],thisArg:i}),new Er(g,d)}return p&&m?e.apply(this,u):(g=this.thru(f),p?r?g.value()[0]:g.value():g)})})),_n(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);xr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(sl(o)?o:[],e)}return this[n]((function(n){return t.apply(sl(n)?n:[],e)}))}})),Do(Or.prototype,(function(e,t){var n=xr[t];if(n){var r=n.name+"";ft.call(cn,r)||(cn[r]=[]),cn[r].push({name:t,func:n})}})),cn[ya(i,w).name]=[{name:"wrapper",func:i}],Or.prototype.clone=Ar,Or.prototype.reverse=Tr,Or.prototype.value=Rr,xr.prototype.at=Qs,xr.prototype.chain=Gs,xr.prototype.commit=Ys,xr.prototype.next=Js,xr.prototype.plant=Zs,xr.prototype.reverse=ec,xr.prototype.toJSON=xr.prototype.valueOf=xr.prototype.value=tc,xr.prototype.first=xr.prototype.head,Ot&&(xr.prototype[Ot]=Xs),xr},Sr=Cr();sn._=Sr,o=function(){return Sr}.call(t,n,t,r),o===i||(r.exports=o)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))},"30b5":function(e,t,n){"use strict";var r=n("c532");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var u=e.indexOf("#");-1!==u&&(e=e.slice(0,u)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},"312a":function(e,t,n){},3132:function(e,t,n){"use strict";n("e2c1")},"323e":function(e,t,n){var r,o;
  25. /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
  26. * @license MIT */(function(i,a){r=a,o="function"===typeof r?r.call(t,n,t,e):r,void 0===o||(e.exports=o)})(0,(function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return 100*(-1+e)}function o(e,n,o){var i;return i="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"},i.transition="all "+n+"ms "+o,i}e.configure=function(e){var n,r;for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var u=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var s=e.render(!u),c=s.querySelector(t.barSelector),l=t.speed,f=t.easing;return s.offsetWidth,i((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(c,o(r,l,f)),1===r?(a(s,{transition:"none",opacity:1}),s.offsetWidth,setTimeout((function(){a(s,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),l)}),l)):setTimeout(n,l)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!==typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always((function(){n--,0===n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");s(document.documentElement,"nprogress-busy");var o=document.createElement("div");o.id="nprogress",o.innerHTML=t.template;var i,u=o.querySelector(t.barSelector),c=n?"-100":r(e.status||0),l=document.querySelector(t.parent);return a(u,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),t.showSpinner||(i=o.querySelector(t.spinnerSelector),i&&f(i)),l!=document.body&&s(l,"nprogress-custom-parent"),l.appendChild(o),o},e.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var i=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),a=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);while(o--)if(r=e[o]+i,r in n)return r;return t}function o(e){return e=n(e),t[e]||(t[e]=r(e))}function i(e,t,n){t=o(t),e.style[t]=n}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&i(e,n,r);else i(e,o[1],o[2])}}();function u(e,t){var n="string"==typeof e?e:l(e);return n.indexOf(" "+t+" ")>=0}function s(e,t){var n=l(e),r=n+t;u(n,t)||(e.className=r.substring(1))}function c(e,t){var n,r=l(e);u(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function l(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e}))},3825:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"vab-app-main"},[r("img",{staticClass:"flower",attrs:{alt:"",src:n("4784")}}),r("section",[r("transition",{attrs:{mode:"out-in",name:"fade-transform"}},[e.routerView?r("vab-router-view"):e._e()],1)],1),r("vab-footer")],1)},o=[],i=n("2909"),a=n("5530"),u=(n("d3b7"),n("6062"),n("3ca3"),n("ddb0"),n("5db7"),n("73d9"),n("4de4"),n("b0c0"),n("2f62")),s=n("323e"),c=n.n(s),l={name:"VabAppMain",data:function(){return{routerView:!0}},computed:Object(a["a"])(Object(a["a"])({},Object(u["c"])({theme:"settings/theme",extra:"settings/extra",visitedRoutes:"tabs/visitedRoutes"})),{},{changeData:function(){var e=this;return Object(i["a"])(new Set(this.visitedRoutes.filter((function(t){return!t.meta.noKeepAlive&&t.name!==e.extra.transferRouteName})).flatMap((function(e){return e.matched}))))}}),watch:{changeData:{handler:function(e){this.setCachedRoutes(e)}}},created:function(){var e=this,t=this.theme.showProgressBar;this.$baseEventBus.$on("reload-router-view",(function(){e.routerView=!1,t&&c.a.start(),e.$nextTick((function(){e.routerView=!0,setTimeout((function(){t&&c.a.done()}),200)}))}))},methods:Object(a["a"])({},Object(u["b"])({setCachedRoutes:"routes/setCachedRoutes"}))},f=l,d=(n("0bc4"),n("2877")),h=Object(d["a"])(f,r,o,!1,null,"731c6a9a",null);t["default"]=h.exports},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3893:function(e,t,n){"use strict";n("df13")},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},3975:function(e,t,n){"use strict";n.r(t);n("caad"),n("2532"),n("fb6a"),n("99af");var r=n("a026"),o=n("4ff3");r["default"].directive("permissions",{inserted:function(e,t){var n=t.value;n&&(Object(o["hasAccess"])(n)||e.parentNode&&e.parentNode.removeChild(e))}}),r["default"].directive("drag",{bind:function(e,t,n){if(e.querySelector(".el-dialog__header")&&e.querySelector(".el-dialog")){var r=e.querySelector(".el-dialog__header"),o=e.querySelector(".el-dialog");r.style.cssText+=";cursor:move;",o.style.cssText+=";top:0;";var i=function(){return window.document.currentStyle?function(e,t){return e.currentStyle[t]}:function(e,t){return getComputedStyle(e,null)[t]}}();r.onmousedown=function(e){var t=e.clientX-r.offsetLeft,a=e.clientY-r.offsetTop,u=o.offsetWidth,s=o.offsetHeight,c=document.body.clientWidth,l=document.body.clientHeight,f=o.offsetLeft,d=c-o.offsetLeft-u,h=o.offsetTop,p=l-o.offsetTop-s,m=i(o,"left"),g=i(o,"top");m.includes("%")?(m=+document.body.clientWidth*(+m/100),g=+document.body.clientHeight*(+g/100)):(m=+m.slice(0,-2),g=+g.slice(0,-2)),document.onmousemove=function(e){var r=e.clientX-t,i=e.clientY-a;-r>f?r=-f:r>d&&(r=d),-i>h?i=-h:i>p&&(i=p),o.style.cssText+=";left:".concat(r+m,"px;top:").concat(i+g,"px;"),n.child.$emit("drag-dialog")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}}}})},"3ae8":function(e,t,n){},"3b0c":function(e,t,n){"use strict";n("58c1")},"3c04":function(e,t,n){},"3c4e":function(e,t,n){"use strict";var r=function(e){return o(e)&&!i(e)};function o(e){return!!e&&"object"===typeof e}function i(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||s(e)}var a="function"===typeof Symbol&&Symbol.for,u=a?Symbol.for("react.element"):60103;function s(e){return e.$$typeof===u}function c(e){return Array.isArray(e)?[]:{}}function l(e,t){var n=t&&!0===t.clone;return n&&r(e)?h(c(e),e,t):e}function f(e,t,n){var o=e.slice();return t.forEach((function(t,i){"undefined"===typeof o[i]?o[i]=l(t,n):r(t)?o[i]=h(e[i],t,n):-1===e.indexOf(t)&&o.push(l(t,n))})),o}function d(e,t,n){var o={};return r(e)&&Object.keys(e).forEach((function(t){o[t]=l(e[t],n)})),Object.keys(t).forEach((function(i){r(t[i])&&e[i]?o[i]=h(e[i],t[i],n):o[i]=l(t[i],n)})),o}function h(e,t,n){var r=Array.isArray(t),o=Array.isArray(e),i=n||{arrayMerge:f},a=r===o;if(a){if(r){var u=i.arrayMerge||f;return u(e,t,n)}return d(e,t,n)}return l(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},"3d47":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",{staticClass:"vab-header"},[n("div",{staticClass:"vab-main"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:6}},[n("vab-logo")],1),n("el-col",{attrs:{span:18}},[n("div",{staticClass:"right-panel"},["horizontal"===e.layout?n("el-menu",{attrs:{"active-text-color":e.variables["menu-color-active"],"background-color":e.variables["menu-background"],"default-active":e.activeMenu,"menu-trigger":"hover",mode:"horizontal","text-color":e.variables["menu-color"]}},[e._l(e.handleRoutes,(function(t){return[t.meta&&!t.meta.hidden?n("vab-menu",{key:t.fullPath,attrs:{item:t,layout:e.layout}}):e._e()]}))],2):e._e(),n("vab-error-log"),n("vab-full-screen"),n("vab-refresh"),n("vab-avatar")],1)])],1)],1)])},o=[],i=n("5530"),a=(n("5db7"),n("73d9"),n("d3b7"),n("73e1")),u=n.n(a),s=n("2f62"),c=n("9f2e"),l={name:"VabHeader",props:{layout:{type:String,default:"horizontal"}},data:function(){return{activeMenu:"",menuTrigger:"hover"}},computed:Object(i["a"])(Object(i["a"])({},Object(s["c"])({routes:"routes/routes"})),{},{variables:function(){return u.a},handleRoutes:function(){return this.routes.flatMap((function(e){return e.meta&&!0===e.meta.levelHidden&&e.children?e.children:e}))}}),watch:{$route:{handler:function(e){this.activeMenu=Object(c["handleActivePath"])(e)},immediate:!0}}},f=l,d=(n("3893"),n("2877")),h=Object(d["a"])(f,r,o,!1,null,"77d40e55",null);t["default"]=h.exports},"3dfd":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",{attrs:{id:"app"}},[n("router-view")],1)},o=[],i={name:"App"},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},"3e3c":function(e,t,n){"use strict";n.r(t),n.d(t,"getPublicKey",(function(){return o}));var r=n("b775");function o(){return Object(r["default"])({url:"/publicKey",method:"get"})}},"3eb1":function(e,t,n){"use strict";var r=n("0f7c"),o=n("00ce"),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(d){c=null}e.exports=function(e){var t=u(r,a,arguments);if(s&&c){var n=s(t,"length");n.configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var f=function(){return u(r,i,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},"3f1c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.theme.showTheme?n("span",[n("vab-icon",{attrs:{icon:"brush-2-line"},on:{click:e.handleOpenTheme}})],1):e._e()},o=[],i=n("5530"),a=n("2f62"),u={name:"VabTheme",computed:Object(i["a"])({},Object(a["c"])({theme:"settings/theme"})),methods:{handleOpenTheme:function(){this.$baseEventBus.$emit("theme")}}},s=u,c=n("2877"),l=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=l.exports},"3f6b":function(e,t,n){e.exports={default:n("b9c7"),__esModule:!0}},4127:function(e,t,n){"use strict";var r=n("5402"),o=n("d233"),i=n("b313"),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=String.prototype.split,l=Array.prototype.push,f=function(e,t){l.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,h=i["default"],p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},g={},v=function e(t,n,i,a,u,l,d,h,v,b,y,w,x,_,C){var S=t,k=C,E=0,O=!1;while(void 0!==(k=k.get(g))&&!O){var A=k.get(t);if(E+=1,"undefined"!==typeof A){if(A===E)throw new RangeError("Cyclic object value");O=!0}"undefined"===typeof k.get(g)&&(E=0)}if("function"===typeof d?S=d(n,S):S instanceof Date?S=b(S):"comma"===i&&s(S)&&(S=o.maybeMap(S,(function(e){return e instanceof Date?b(e):e}))),null===S){if(a)return l&&!x?l(n,p.encoder,_,"key",y):n;S=""}if(m(S)||o.isBuffer(S)){if(l){var T=x?n:l(n,p.encoder,_,"key",y);if("comma"===i&&x){for(var R=c.call(String(S),","),N="",D=0;D<R.length;++D)N+=(0===D?"":",")+w(l(R[D],p.encoder,_,"value",y));return[w(T)+"="+N]}return[w(T)+"="+w(l(S,p.encoder,_,"value",y))]}return[w(n)+"="+w(String(S))]}var B,P=[];if("undefined"===typeof S)return P;if("comma"===i&&s(S))B=[{value:S.length>0?S.join(",")||null:void 0}];else if(s(d))B=d;else{var j=Object.keys(S);B=h?j.sort(h):j}for(var L=0;L<B.length;++L){var M=B[L],I="object"===typeof M&&"undefined"!==typeof M.value?M.value:S[M];if(!u||null!==I){var F=s(S)?"function"===typeof i?i(n,M):n:n+(v?"."+M:"["+M+"]");C.set(t,E);var V=r();V.set(g,C),f(P,e(I,F,i,a,u,l,d,h,v,b,y,w,x,_,V))}}return P},b=function(e){if(!e)return p;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i["default"];if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=p.filter;return("function"===typeof e.filter||s(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var n,o,i=e,a=b(t);"function"===typeof a.filter?(o=a.filter,i=o("",i)):s(a.filter)&&(o=a.filter,n=o);var c,l=[];if("object"!==typeof i||null===i)return"";c=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=u[c];n||(n=Object.keys(i)),a.sort&&n.sort(a.sort);for(var h=r(),p=0;p<n.length;++p){var m=n[p];a.skipNulls&&null===i[m]||f(l,v(i[m],m,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,h))}var g=l.join(a.delimiter),y=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),g.length>0?y+g:""}},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var r=n("3f6b"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}t.default=o.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}},"41f1":function(e,t,n){},4240:function(e,t,n){"use strict";n.r(t);n("d81d"),n("d3b7"),n("ddb0"),n("159b"),n("b0c0");var r=n("a026"),o=(n("a6a5"),n("ef9b"),n("2adc")),i=n.n(o);n("312a");r["default"].component("VabIcon",i.a);var a=n("fe19");a.keys().map(a);var u=n("a404");u.keys().map(u);var s=n("7c00");s.keys().map(s).forEach((function(e){e.default.name&&"Layouts"!==e.default.name&&r["default"].component(e.default.name,e.default)}))},4328:function(e,t,n){"use strict";var r=n("4127"),o=n("9e6a"),i=n("b313");e.exports={formats:i,parse:o,stringify:r}},4360:function(e,t,n){"use strict";n.r(t);var r=n("5530"),o=(n("d3b7"),n("159b"),n("ddb0"),n("ac1f"),n("5319"),n("a026")),i=n("2f62");o["default"].use(i["a"]);var a={},u=n("d307");u.keys().forEach((function(e){a[e.replace(/(modules|\/|\.|js)/g,"")]=Object(r["a"])(Object(r["a"])({},u(e).default),{},{namespaced:!0})}));var s=new i["a"].Store({modules:a});t["default"]=s},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"448d":function(e,t){e.exports={layout:"vertical",themeName:"default",columnStyle:"vertical",fixedHeader:!0,showProgressBar:!0,showTabs:!0,tabsBarStyle:"card",showTabsBarIcon:!0,showRefresh:!0,showSearch:!0,showTheme:!0,showNotice:!0,showFullScreen:!0,showThemeSetting:!0}},"455b":function(e,t,n){},4661: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",{staticClass:"vab-nav"},[n("el-row",{attrs:{gutter:15}},[n("el-col",{attrs:{lg:12,md:12,sm:12,xl:12,xs:4}},[n("div",{staticClass:"left-panel"},[n("vab-fold"),"comprehensive"===e.layout?n("el-tabs",{attrs:{"tab-position":"top"},on:{"tab-click":e.handleTabClick},model:{value:e.extra.first,callback:function(t){e.$set(e.extra,"first",t)},expression:"extra.first"}},e._l(e.handleRoutes,(function(t){return n("el-tab-pane",{key:t.name,attrs:{name:t.name},scopedSlots:e._u([{key:"label",fn:function(){return[t.meta.icon?n("vab-icon",{staticStyle:{"min-width":"16px"},attrs:{icon:t.meta.icon,"is-custom-svg":t.meta.isCustomSvg}}):e._e(),e._v(" "+e._s(t.meta.title)+" ")]},proxy:!0}],null,!0)})})),1):n("vab-breadcrumb",{staticClass:"hidden-xs-only"})],1)]),n("el-col",{attrs:{lg:12,md:12,sm:12,xl:12,xs:20}},[n("div",{staticClass:"right-panel"},[n("vab-error-log"),n("vab-notice"),n("vab-full-screen"),n("vab-refresh"),n("vab-avatar")],1)])],1)],1)},o=[],i=n("5530"),a=(n("4de4"),n("d3b7"),n("7db0"),n("b0c0"),n("2f62")),u=n("f121"),s={name:"VabNav",props:{layout:{type:String,default:""}},data:function(){return{firstMenu:""}},computed:Object(i["a"])(Object(i["a"])({},Object(a["c"])({extra:"settings/extra",routes:"routes/routes"})),{},{handleRoutes:function(){return this.routes.filter((function(e){return e.meta&&!0!==e.meta.hidden}))},handleActiveMenu:function(){var e=this;return this.routes.find((function(t){return t.name===e.extra.first}))},handlePartialRoutes:function(){var e=this.handleActiveMenu;return e?e.children:[]}}),watch:{$route:{handler:function(e){var t=e.matched[0].name;this.extra.first!==t&&(this.extra.first=t,this.handleTabClick(!0))},immediate:!0}},methods:{handleTabClick:function(e){!0!==e&&u["openFirstMenu"]&&this.$router.push(this.handleActiveMenu)}}},c=s,l=(n("c6bc"),n("2877")),f=Object(l["a"])(c,r,o,!1,null,"0efbb172",null);t["default"]=f.exports},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},4784:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABbCAMAAADjhON9AAADAFBMVEVHcExRy5ZRy5ZRy5ZQz49Qz5ZQy5XO1+fO1eT/yTJRy5VQy5dSy5VRypZSypVRypX///9QzJZQypZl8YtSy5ZSy5ZRy5ZSy5VPypVRy5VP1JZRypVUzZdTz5hPzZf///9Sy5VRy5b/////yTL/yTL/yDP/0S7/yTP/yDL/yDJRzJZRzZZRy5YA//9RzJZRy5ZRy5VRy5VRy5f///+y59BOzpb////j9+6f4sX/yTJSy5b/yTH/yiv/yzD9yThQzZhSy5bO1eJQzJfP1ubO1eVRy5bO1eXO1eX2y1NQzJbf9upRy5fk9+/v+/X///9Qy5ZQ0JX///9RypaC2rOa4cPb9OnN8+JWy5h31qyR3rz////////B7dlRzJb///9YzZrt+vTe9evC7NpWzJnn+fBRy5b/yjL/yDNPzJT/yjNRy5ZSypRSy5VG0aL/zDP/yDH/yTP/yjD/yTL8//2u58//yDPs+fPJ796b4cJfzZzw+/at5s5816//yTLq+PL///+Y4cCw587S8OFRy5bt+fTY9OfH8N3k9+/7/v1i0KCm5Mmk5Mjm9/Ch48bs+fTc9euJ3Le56tTt+vKZ4MHL7+DQ8eK16tKr5cx5165ZzptWzJjK7t7X8+dSy5a26NNw06jx+veY4cFSy5b8//9Sy5Zy1qhSy5WS3r646tOy6NB52bNazZuE2rSK27dgz53l+PBs0qX///9r06V92LHb9er/yTNSy5bO1eXh9u2P3bvN8OH7/f2j48fk9+75/ft816/9/v6b4cPB7NrY8+i66tX3/fq46dSh4sZw1KiE2rTJ797a9Ojc9OqU377V8ua16NLQ8eKe4sS36dOt5s6/7Njf9ez+/v5z1aql5Mjz+/d51q2G27Z+2LGS3r3L79////+869aB2rOM3Lldzp1fz5521qxt06er5szG7dxYzZrq+fKq5cvD7dtVzJin5cr0/PmX4MDT8eRr0qWz6NGJ3Ljx+/Zn0aN11avf0KfV08mw58/o+PFj0KCa4MHS8ePs+fPL+eatAAAAtXRSTlMAwPBwEB8wP8CAsECA0GCQBVBbAn6g9p46+QfqbRI0DOHAO5j9yAvYOahFS5QBJ3jX5g40oxos3t/yhWgYQP1J/cBnUM+asOCiI25imPALoxUWvc5bvkRzyvUaEqm1IPF9x+bQ9bpIsDd4qj5UCyhYiDDQn93o28PmhMvE7LjDQtTmM4j52Gi/81bOmNbtueOn6WS89PqDavLB36nnxe1Sp/XdVsQ4yPbw9ygzwdyVr6onxuvz/ZEKggAABSxJREFUGBmtwQdYEwcABtD/stomYYOgIvC5F+49Wu3Q7tKpra1Wq91777333nvvfT+BhGAJlCUrgOwAiiBYN2q1pe1dkNqRkNzl3oNat99mgCaMZ7pohhZMui3bSGjAEMbiTSQ0YGVbHUmE7kQ3M3LIFITO2lFb1cSaGxE6HXOcRXXrbkHIosia7Ts20oIQpU59lqytJGlAyF7sZmk2KSBkRtpqnGT2NKhyzkw9+kSR67NKm0tPhCoRtoKvLkQvK5m5LpthUEeo2G2/yADZ6avJrr2kHmqkLpvlsFcwAl7n5rRnkTRCleWryro2sOkbyJj7S1mj402oFMfWcnZ9D4mFdNp3drwMlfTknz9V0QIkn0U2kylQ6/OCfS11u/jtd8DKktZyMhxqDV1dbHOSthmANa+sgilQT0+Wt2aXWgBrobPIdTbUM+i4YfPmbisg7N1ecWYyQhBB5u2hORLCjlxa8G+DxiYefcIMBOnCvLy1xfxxKISi7jj8U8xRpw0gC4ofRpAiv+7cZ6upBgTnCgP+4eY7KXH8sWkJgmXQ0eVpMuKH8igcknaGp5DM9pSQ0QjatNzStbSAAg5JmsycDOa7N5IDpiCAU4FIeA2d5WimfjoT0GfZowNJd49rAyWxCOTkpfc+ZISXiS0l1gROQJ9EO8mitY52kpMGIRCrp3SH7omhkEXUu8zRNOKgk+jcyvp17s1Z9uqcsxDQ2U57PotegMwQlrU0lmnwOu8dsm5jo4uSrQXTZiCg+1fQsdtWEAGZqeLTeBrg9e57ZFdjJr0S4d+Tr5u/OA+yxwp7dq7t5PnLIVnSI3AQZDGresi66hpKBkajH6852TrTAMnUZ9z5ZS4WvwKZOYXwij1QwQ3VVevWF/98qwn9EdpcPe4wE2QCuclT/KoJkrQFAyFLYqWj4WdK9t1xQyT682VDvrODuo+WATCYd2W0NGc89zyACdRB8sEsbqvKpGTwOAQw01P1Rxb52RuQJJ+S05NdVPQ4gCgOhuR8Nz15tYVtPG4KAjGRrG9heWs4ZJaLMnbbN1uBiZwMIO2TqvasjI7MPXcjCGEkGzx72hgF2dSVT9W7GyyI5/sA4hsy60gK009HEML3NpZsKbaTOhN6hQuVOsNbnAQksdtelp8RG4Og3PPgzpbakgMHyHNPxkFGvV7HMOBD/lb709tPRyJIJh0ljkpuuc+APkPIj2Fhbv2AiTEIXjhllY7cHfHok0AKEHIzBCMUiaPMbetmFA4KJ9ckbMrWp0KhOLaXVGXZ86k7JwZeD5DmCyYnQLlTbLlNu+gpZDN6mckLxk+BCsnhlLka8/TwmkSeBpUsOkpK63RGSGIWkPFQy2BmYZXT/rsAyQkkx0O9R15q6qRzqx7AOJIRUC010hBBdtpoAvQk5yAkRjN//zMMOI5kLEJkMRdUWyGQnIiQGeM2miaT1EMDhqMoORpaSKLkJGghmpJoaGEOJVdCC5dTMg5aCKNkLLQwkJIroAEjZZdCA2MpM0EDiZRNgAbGU2aEBtZQNh0aSKFsCEI3iF5XQaXrxP6MhgIjh4v+DR8JJUaJ/o2CImNE/y6BIpeJ/l0LRS4W/bsGiswT/bsayswW/ZkdA2VGiP6MgELDRH+GQaG5oj9zodBo0Z/5UGjkcNGPeVBqlOjbTVBsjOjbXfifwwI4XvTt+MN64W/Hpgfwq+jbr+m9jkWfxekB7Bd925/eazH6HLPo8P4tPFL05ciFh3stOgbBGyH6cj1UGCb6MgYqjD7Cl/n4r78A9o4IV1fHQgoAAAAASUVORK5CYII="},"49f3":function(e,t,n){"use strict";n("a88d")},"4a0c":function(e){e.exports=JSON.parse('{"_args":[["axios@0.21.4","E:\\\\7.导师预约\\\\pc端\\\\daoshiyuyue"]],"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["/","/vue-plugin-rely"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_spec":"0.21.4","_where":"E:\\\\7.导师预约\\\\pc端\\\\daoshiyuyue","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}')},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(i,c),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(void 0,t[o])})),r.forEach(u,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var l=o.concat(i).concat(a).concat(u),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(f,c),n}},"4d49":function(e,t,n){"use strict";n.r(t);n("a434");var r=function(){return{errorLogs:[]}},o={errorLogs:function(e){return e.errorLogs}},i={addErrorLog:function(e,t){e.errorLogs.push(t)},clearErrorLog:function(e){e.errorLogs.splice(0)}},a={addErrorLog:function(e,t){var n=e.commit;n("addErrorLog",t)},clearErrorLog:function(e){var t=e.commit;t("clearErrorLog")}};t["default"]={state:r,getters:o,mutations:i,actions:a}},"4d6e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.theme.showRefresh?n("vab-icon",{attrs:{icon:"refresh-line"},on:{click:e.refreshRoute}}):e._e()},o=[],i=n("1da1"),a=n("5530"),u=(n("96cf"),n("a15b"),n("d81d"),n("fb6a"),n("b0c0"),n("4de4"),n("d3b7"),n("7db0"),n("ac1f"),n("5319"),n("2f62")),s={name:"VabRefresh",computed:Object(a["a"])({},Object(u["c"])({theme:"settings/theme",extra:"settings/extra",visitedRoutes:"tabs/visitedRoutes"})),methods:{refreshRoute:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.$route,r=n.matched.slice(0,-1).map((function(e){return e.components.default.name})).join(","),o=e.visitedRoutes.filter((function(e){return e.name!==n.name})),o.length?(i=o.find((function(e){return e.matched.slice(0,-1).join(",")===r})),i||(i=o[0]),e.extra.transferRouteName=n.name,e.$router.replace(i).then((function(){e.extra.transferRouteName="",e.$router.replace(n)}))):e.$baseEventBus.$emit("reload-router-view");case 4:case"end":return t.stop()}}),t)})))()}}},c=s,l=n("2877"),f=Object(l["a"])(c,r,o,!1,null,null,null);t["default"]=f.exports},"4ff3":function(e,t,n){"use strict";n.r(t),n.d(t,"hasAccess",(function(){return i})),n.d(t,"can",(function(){return a}));n("d3b7"),n("caad"),n("2532");var r=n("4360"),o=n("61f7");function i(e){if(r["default"].getters["acl/admin"])return!0;if(Object(o["isArray"])(e)&&e.length>0)return a(r["default"].getters["acl/role"],{role:e,mode:"oneOf"});var t=e.role,n=e.ability,i=e.mode,u=void 0===i?"oneOf":i,s=!0;return t&&(s=s&&a(r["default"].getters["acl/role"],{role:t,mode:u})),s&&n&&(s=a(r["default"].getters["acl/ability"],{role:n,mode:u})),s}function a(e,t){var n=!1,r=t.role,o=t.mode;return r&&o&&("allOf"===o&&(n=r.every((function(t){return e.includes(t)}))),"oneOf"===o&&(n=r.some((function(t){return e.includes(t)}))),"except"===o&&(n=!r.some((function(t){return e.includes(t)})))),n}},5155:function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},5156:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n("1696");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},5224:function(e,t,n){"use strict";n("41f1")},5270:function(e,t,n){"use strict";var r=n("c532"),o=n("c401"),i=n("2e67"),a=n("2444");function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"53ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");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)}},5402:function(e,t,n){"use strict";var r=n("00ce"),o=n("545e"),i=n("2714"),a=r("%TypeError%"),u=r("%WeakMap%",!0),s=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),p=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},g=function(e,t){var n=m(e,t);return n&&n.value},v=function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},b=function(e,t){return!!m(e,t)};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(u&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(s){if(t)return d(t,r)}else if(n)return g(n,r)},has:function(r){if(u&&r&&("object"===typeof r||"function"===typeof r)){if(e)return f(e,r)}else if(s){if(t)return p(t,r)}else if(n)return b(n,r);return!1},set:function(r,o){u&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new u),l(e,r,o)):s?(t||(t=new s),h(t,r,o)):(n||(n={key:{},next:null}),v(n,r,o))}};return r}},"545e":function(e,t,n){"use strict";var r=n("00ce"),o=n("3eb1"),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},"55b1":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("el-col",{attrs:{span:24}},[n("div",{staticClass:"bottom-panel"},[e._t("default")],2)])},o=[],i={name:"VabQueryFormBottomPanel"},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},"560f":function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var r=n("a026"),o=n("3dfd"),i=n("4360"),a=n("a18c"),u=n("e562"),s=n.n(u);const c=["INIT","INPUT","CHANGED"];var l={name:"VueTinymce",model:{prop:"content",event:"change"},props:{content:{type:[String,Object],default:""},setup:{type:Function,default:function(){}},disabled:{type:Boolean,default:!1},setting:{type:Object,default:function(){return{}}},debug:Boolean},render(e){return"undefined"==typeof tinymce?e("div","tinymce is undefined"):e("div",{attrs:{id:this.id}})},data:()=>({id:"vue-tinymce-"+Date.now()+Math.floor(1e3*Math.random()),editor:null,status:0,bookmark:null}),watch:{content(e,t){if(this.changedLog({type:"propsChanged"},this.status,`${e} | ${t}`,"--"),1!==this.status&&t!==e&&this.editor&&this.editor.initialized)return null===e?this.resetContent(""):void this.setContent(e)},disabled(e){this.editor.setMode(e?"readonly":"design")}},created(){if(this.changedLog=this.debug?(console.warn("`@packy-tang/vue-tinymce`进入debug模式"),(e,t,n,r)=>console.log("来自:%s | 状态:%s \n %s \n %s",e.type,c[t],n,r)):()=>!1,"undefined"==typeof tinymce)throw new Error("tinymce undefined")},beforeMount(){const e=Object.assign({},this.setting,{selector:"#"+this.id,setup:e=>{this.setup(e),e.on("init",()=>{this.setContent(this.content,e),e.on("keyup input",e=>{this.status=1}),e.on("SetContent",t=>{this.changedLog(t,this.status,e.getContent(),"--")}),e.on("Blur",t=>{this.status=0,this.changedLog(t,this.status,e.getContent(),"--")}),e.on("input keyup Change Undo Redo ExecCommand NodeChange",t=>{this.onChanged(t,e)})})}});this.editor=tinymce.createEditor(e.selector,e)},mounted(){this.editor.targetElm=this.$el,this.editor.render()},updated(){this.editor.render()},beforeDestroy:function(){this.editor.remove()},methods:{setContent(e,t){t||(t=this.editor),t.setContent(e),t.selection.moveToBookmark(this.bookmark)},resetContent(e,t){if(t||(t=this.editor),t.resetContent)return t.resetContent(e);t.setContent(e),t.setDirty(!1),t.undoManager.clear()},onChanged(e,t){t||(t=this.editor),"change"===e.type&&(this.bookmark=e.level.bookmark);const n=t.getContent();this.changedLog(e,this.status,n,"--"),this.$emit("change",n)}}},f=new class{constructor(){const{prefix:e}={prefix:""};this.prefix=e}install(e,t={}){const n=t.prefix||this.prefix,r={VueTinymce:l};Object.keys(r).forEach(t=>{const o=r[t];e.component(n+o.name,o)})}},d=f;n("455b"),n("4240");r["default"].config.productionTip=!1,r["default"].prototype.$tinymce=s.a,r["default"].use(d),new r["default"]({el:"#app",store:i["default"],router:a["default"],render:function(e){return e(o["default"])}})},"58c1":function(e,t,n){},"597f":function(e,t){e.exports=function(e,t,n,r){var o,i=0;function a(){var a=this,u=Number(new Date)-i,s=arguments;function c(){i=Number(new Date),n.apply(a,s)}function l(){o=void 0}r&&!o&&c(),o&&clearTimeout(o),void 0===r&&u>e?c():!0!==t&&(o=setTimeout(r?l:c,void 0===r?e-u:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},"5a1b":function(e,t,n){"use strict";n("be42")},"5a53":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("el-row",{staticClass:"vab-query-form",attrs:{gutter:0}},[e._t("default")],2)},o=[],i={name:"VabQueryForm"},a=i,u=(n("e72f"),n("2877")),s=Object(u["a"])(a,r,o,!1,null,"60473960",null);t["default"]=s.exports},"5a8d":function(e,t,n){e.exports=n.p+"static/img/logo-bencao.95762670.png"},"5df5":function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},"5ed6":function(e,t,n){"use strict";n("e766")},"5f02":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},"5fbe":function(e,t,n){e.exports=n.p+"static/img/logo2.52fba940.png"},"61f7":function(e,t,n){"use strict";n.r(t),n.d(t,"isExternal",(function(){return o})),n.d(t,"isPassword",(function(){return i})),n.d(t,"isNumber",(function(){return a})),n.d(t,"isName",(function(){return u})),n.d(t,"isIP",(function(){return s})),n.d(t,"isUrl",(function(){return c})),n.d(t,"isLowerCase",(function(){return l})),n.d(t,"isUpperCase",(function(){return f})),n.d(t,"isAlphabets",(function(){return d})),n.d(t,"isString",(function(){return h})),n.d(t,"isArray",(function(){return p})),n.d(t,"isPort",(function(){return m})),n.d(t,"isPhone",(function(){return g})),n.d(t,"isIdCard",(function(){return v})),n.d(t,"isEmail",(function(){return b})),n.d(t,"isChina",(function(){return y})),n.d(t,"isBlank",(function(){return w})),n.d(t,"isTel",(function(){return x})),n.d(t,"isNum",(function(){return _})),n.d(t,"isJson",(function(){return C}));var r=n("53ca");n("ac1f"),n("00b4"),n("d3b7"),n("498a");function o(e){return/^(https?:|mailto:|tel:|\/\/)/.test(e)}function i(e){return e.length>=6}function a(e){var t=/^[0-9]*$/;return t.test(e)}function u(e){var t=/^[\u4e00-\u9fa5a-zA-Z0-9]+$/;return t.test(e)}function s(e){var t=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;return t.test(e)}function c(e){var t=/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/;return t.test(e)}function l(e){var t=/^[a-z]+$/;return t.test(e)}function f(e){var t=/^[A-Z]+$/;return t.test(e)}function d(e){var t=/^[A-Za-z]+$/;return t.test(e)}function h(e){return"string"===typeof e||e instanceof String}function p(e){return"undefined"===typeof Array.isArray?"[object Array]"===Object.prototype.toString.call(e):Array.isArray(e)}function m(e){var t=/^([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/;return t.test(e)}function g(e){var t=/^1\d{10}$/;return t.test(e)}function v(e){var t=/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;return t.test(e)}function b(e){var t=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;return t.test(e)}function y(e){var t=/^[\u4E00-\u9FA5]{2,4}$/;return t.test(e)}function w(e){return null===e||""===e||""===e.trim()||"null"===e.toLocaleLowerCase().trim()}function x(e){var t=/^(400|800)([0-9\\-]{7,10})|(([0-9]{4}|[0-9]{3})([- ])?)?([0-9]{7,8})(([- 转])*([0-9]{1,4}))?$/;return t.test(e)}function _(e){var t=/^\d+(\.\d{1,2})?$/;return t.test(e)}function C(e){if("string"===typeof e){var t=JSON.parse(e);return!("object"!==Object(r["a"])(t)||!t)}return!1}},"626a":function(e,t,n){"use strict";n.r(t);var r=function(){var e,t=this,r=t.$createElement,o=t._self._c||r;return o("div",{staticClass:"logo-container",class:(e={},e["logo-container-"+t.theme.layout]=!0,e)},[o("router-link",{attrs:{to:"/"}},[o("span",{staticClass:"logo"},[o("img",{attrs:{alt:"",src:n("5fbe")}})]),o("span",{staticClass:"title",class:{"hidden-xs-only":"horizontal"===t.theme.layout}},[t._v(" "+t._s(t.title)+" ")])])],1)},o=[],i=n("5530"),a=n("2f62"),u={name:"VabLogo",computed:Object(i["a"])({},Object(a["c"])({logo:"settings/logo",title:"settings/title",theme:"settings/theme"}))},s=u,c=(n("7dc9"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"4ca36628",null);t["default"]=l.exports},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"64fa":function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},"66f7":function(e,t,n){"use strict";n.r(t);var r=n("2909"),o=n("1da1"),i=(n("96cf"),n("d81d"),n("b0c0"),n("99af"),n("a026")),a=n("a18c"),u=n("2033"),s=n("9f2e"),c=n("f121"),l=n("61f7"),f=function(){return{routes:[],cachedRoutes:[]}},d={routes:function(e){return e.routes},cachedRoutes:function(e){return e.cachedRoutes}},h={setRoutes:function(e,t){e.routes=t},setCachedRoutes:function(e,t){e.cachedRoutes=t},changeMenuMeta:function(e,t){function n(e){return e.map((function(e){return e.name===t.name&&Object.assign(e.meta,t.meta),e.children&&e.children.length&&(e.children=n(e.children)),e}))}e.routes=n(e.routes)}},p={setRoutes:function(e){var t=arguments;return Object(o["a"])(regeneratorRuntime.mark((function n(){var o,f,d,h,p,m,g,v;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.commit,f=t.length>1&&void 0!==t[1]?t[1]:"none",d=Object(r["a"])(a["asyncRoutes"]),h="visit"!==f&&c["rolesControl"],"all"!==c["authentication"]){n.next=15;break}return n.next=7,Object(u["getRouterList"])();case 7:p=n.sent,m=p.data,g=m,console.log(g,11111111111111111e6),Object(l["isArray"])(g)||i["default"].prototype.$baseMessage("路由格式返回有误!","error",!1,"vab-hey-message-error"),"*"!==g[g.length-1].path&&console.log(g[g.length-1].path,"0000000000000000"),g.push({path:"*",redirect:"/404",meta:{hidden:!0}}),d=Object(s["convertRouter"])(g);case 15:return v=Object(s["filterRoutes"])([].concat(Object(r["a"])(a["constantRoutes"]),Object(r["a"])(d)),h),o("setRoutes",v),n.next=19,Object(a["resetRouter"])(v);case 19:case"end":return n.stop()}}),n)})))()},setCachedRoutes:function(e,t){var n=e.commit;n("setCachedRoutes",t)},changeMenuMeta:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t("changeMenuMeta",n)}};t["default"]={state:f,getters:d,mutations:h,actions:p}},"67a5":function(e,t,n){"use strict";n("7f0d")},"688e":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString,a="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||i.call(t)!==a)throw new TypeError(r+t);for(var n,u=o.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,u.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,u.concat(o.call(arguments)))},c=Math.max(0,t.length-u.length),l=[],f=0;f<c;f++)l.push("$"+f);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var d=function(){};d.prototype=t.prototype,n.prototype=new d,d.prototype=null}return n}},6959: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",{staticClass:"vab-layout-common",class:{fixed:e.fixedHeader,"no-tabs-bar":!e.showTabs}},[n("div",{staticClass:"vab-layout-header",class:{"fixed-header":e.fixedHeader}},[n("vab-header",{attrs:{layout:"common"}}),n("div",[n("vab-side-bar",{attrs:{layout:"common"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showTabs,expression:"showTabs"}],staticClass:"vab-main",class:{"is-collapse-main":e.collapse}},[n("vab-tabs",{attrs:{layout:"common"}})],1)],1)],1),n("div",{staticClass:"vab-main main-padding",class:{"is-collapse-main":e.collapse}},[n("vab-app-main")],1)])},o=[],i={name:"VabLayoutCommon",props:{collapse:{type:Boolean,default:function(){return!1}},fixedHeader:{type:Boolean,default:function(){return!0}},showTabs:{type:Boolean,default:function(){return!0}},device:{type:String,default:function(){return"desktop"}}}},a=i,u=(n("49f3"),n("2877")),s=Object(u["a"])(a,r,o,!1,null,"0413c1a9",null);t["default"]=s.exports},"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 o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,o=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")()}(),i=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),a=2;function u(e,t){var n=!1,r=!1,o=0;function u(){n&&(n=!1,e()),r&&c()}function s(){i(u)}function c(){var e=Date.now();if(n){if(e-o<a)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return c}var s=20,c=["top","right","bottom","left","width","height","size","weight"],l="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=u(this.refresh.bind(this),s)}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),l?(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=c.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 o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||o},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,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=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),o=v(r),i=o.left+o.right,a=o.top+o.bottom,u=m(r.width),s=m(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=g(r,"left","right")+i),Math.round(s+a)!==n&&(s-=g(r,"top","bottom")+a)),!x(e)){var c=Math.round(u+i)-t,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return S(o.left,o.top,u,s)}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 x(e){return e===h(e).document.documentElement}function _(e){return r?w(e)?b(e):y(e):p}function C(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return d(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+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=_(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}(),E=function(){function e(e,t){var n=C(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 E(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}(),A="undefined"!==typeof WeakMap?new WeakMap:new n,T=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);A.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){T.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));var R=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:T}();t["default"]=R}.call(this,n("c8ba"))},"6e07":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("el-col",{attrs:{span:24}},[n("div",{staticClass:"top-panel"},[e._t("default")],2)])},o=[],i={name:"VabQueryFormTopPanel"},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},"6fe3":function(e,t){e.exports={publicPath:"",outputDir:"dist",assetsDir:"static",lintOnSave:!0,transpileDependencies:[],devPort:12e3,providePlugin:{},build7z:!1,buildGzip:!1,imageCompression:!0}},"70f0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.theme.showSearch?n("span",[n("vab-icon",{attrs:{icon:"search-line"},on:{click:e.openDialog}}),n("el-dialog",{attrs:{"append-to-body":"",visible:e.dialogVisible,width:"40%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("el-form",{attrs:{model:e.queryForm},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",{attrs:{"label-width":"0"}},[n("el-autocomplete",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{"fetch-suggestions":e.querySearchAsync,"select-when-unmatched":""},on:{select:e.handleSelect},scopedSlots:e._u([{key:"prefix",fn:function(){return[n("vab-icon",{attrs:{icon:"search-line"}})]},proxy:!0}],null,!1,2799347713),model:{value:e.queryForm.searchWord,callback:function(t){e.$set(e.queryForm,"searchWord",t)},expression:"queryForm.searchWord"}})],1)],1)],1)],1):e._e()},o=[],i=n("1da1"),a=n("5530"),u=(n("4de4"),n("d3b7"),n("caad"),n("2532"),n("96cf"),n("2f62")),s=n("1925"),c={name:"VabSearch",directives:{focus:{inserted:function(e){e.querySelector("input").focus()}}},data:function(){return{dialogVisible:!1,queryForm:{searchWord:""},restaurants:[],state:"",timeout:null}},computed:Object(a["a"])({},Object(u["c"])({theme:"settings/theme"})),created:function(){var e=this;this.$nextTick((function(){e.theme.showSearch&&e.loadAll()}))},methods:{openDialog:function(){this.queryForm.searchWord="",this.dialogVisible=!0},loadAll:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["getList"])();case 2:n=t.sent,r=n.data,o=r.list,e.restaurants=o;case 6:case"end":return t.stop()}}),t)})))()},querySearchAsync:function(e,t){var n=this.restaurants,r=e?n.filter(this.createStateFilter(e)):n;clearTimeout(this.timeout),this.timeout=setTimeout((function(){t(r)}),500)},createStateFilter:function(e){return function(t){return t.value.includes(e.toLowerCase())}},handleSelect:function(e){e.url?window.open(e.url):window.open("https://www.baidu.com/s?wd=".concat(e.value))}}},l=c,f=(n("f07b"),n("2877")),d=Object(f["a"])(l,r,o,!1,null,"4d1fdb65",null);t["default"]=d.exports},"71cb":function(e,t,n){"use strict";n("3c04")},7255: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("vab-router-view")},o=[],i={name:"VabEmptyLayout"},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},"73e1":function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},"75d3":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.theme.showThemeSetting?n("ul",{staticClass:"vab-theme-setting"},[n("li",{on:{click:e.handleOpenTheme}},[n("a",[n("vab-icon",{attrs:{icon:"brush-2-line"}}),n("p",[e._v("主题配置")])],1)]),n("li",{on:{click:e.randomTheme}},[n("a",[n("vab-icon",{attrs:{icon:"apps-line"}}),n("p",[e._v("随机换肤")])],1)]),n("li",{on:{click:e.removeLocalStorage}},[n("a",[n("vab-icon",{attrs:{icon:"delete-bin-4-line"}}),n("p",[e._v("清理缓存")])],1)])]):e._e()},o=[],i=n("5530"),a=n("2f62"),u={name:"VabThemeSetting",computed:Object(i["a"])({},Object(a["c"])({theme:"settings/theme"})),methods:{handleOpenTheme:function(){this.$baseEventBus.$emit("theme")},randomTheme:function(){this.$baseEventBus.$emit("random-theme")},removeLocalStorage:function(){localStorage.clear(),location.reload()}}},s=u,c=(n("93a4"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"7266a45a",null);t["default"]=l.exports},"77ab":function(e,t,n){},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,a){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b3e":function(e,t,n){"use strict";var r,o=n("a3de");
  27. /**
  28. * Checks if an event is supported in the current execution environment.
  29. *
  30. * NOTE: This will not work correctly for non-generic events such as `change`,
  31. * `reset`, `load`, `error`, and `select`.
  32. *
  33. * Borrows from Modernizr.
  34. *
  35. * @param {string} eventNameSuffix Event name, e.g. "click".
  36. * @param {?boolean} capture Check if the capture phase is supported.
  37. * @return {boolean} True if the event is supported.
  38. * @internal
  39. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  40. */
  41. function i(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"===typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=i},"7c00":function(e,t,n){var r={"./components/TinyMce/index.vue":"ed9a","./components/VabAppMain/index.vue":"3825","./components/VabAvatar/index.vue":"c7dc","./components/VabBreadcrumb/index.vue":"0c07","./components/VabErrorLog/index.vue":"296a","./components/VabFold/index.vue":"b32c","./components/VabFooter/index.vue":"a3b2","./components/VabFullScreen/index.vue":"d9a1","./components/VabHeader/index.vue":"3d47","./components/VabKeepAlive/index.vue":"ad27","./components/VabLink/index.vue":"a514","./components/VabLogo/index.vue":"626a","./components/VabMenu/components/VabMenuItem.vue":"1859","./components/VabMenu/components/VabSubmenu.vue":"8b7a","./components/VabMenu/index.vue":"8541","./components/VabNav/index.vue":"4661","./components/VabNotice/index.vue":"daa1","./components/VabQueryForm/components/VabQueryFormBottomPanel.vue":"55b1","./components/VabQueryForm/components/VabQueryFormLeftPanel.vue":"2384","./components/VabQueryForm/components/VabQueryFormRightPanel.vue":"b174","./components/VabQueryForm/components/VabQueryFormTopPanel.vue":"6e07","./components/VabQueryForm/index.vue":"5a53","./components/VabRefresh/index.vue":"4d6e","./components/VabRouterView/index.vue":"05bc","./components/VabSearch/index.vue":"70f0","./components/VabSideBar/index.vue":"8717","./components/VabTabs/index.vue":"a493","./components/VabTheme/components/VabThemeDrawer.vue":"97ee","./components/VabTheme/components/VabThemeSetting.vue":"75d3","./components/VabTheme/index.vue":"3f1c","./layouts/VabEmptyLayout/index.vue":"7255","./layouts/VabLayoutColumn/components/ColumnBar.vue":"f9eb","./layouts/VabLayoutColumn/index.vue":"f312","./layouts/VabLayoutCommon/index.vue":"6959","./layouts/VabLayoutComprehensive/index.vue":"a2d2","./layouts/VabLayoutHorizontal/index.vue":"c0c3","./layouts/VabLayoutVertical/index.vue":"99b1","./layouts/index.vue":"a3b4"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="7c00"},"7cf3":function(e,t,n){},"7d92":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"encryptedData",(function(){return c})),n.d(t,"decryptedData",(function(){return f}));var r=n("1da1"),o=(n("96cf"),n("81b2"),n("0eb6"),n("b7ef"),n("8bd4"),n("fb6a"),n("e9c4"),n("d3b7"),n("25f0"),n("9816")),i=n("3e3c"),a="MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAMFPa+v52FkSUXvcUnrGI/XzW3EpZRI0s9BCWJ3oNQmEYA5luWW5p8h0uadTIoTyYweFPdH4hveyxlwmS7oefvbIdiP+o+QIYW/R4Wjsb4Yl8MhR4PJqUE3RCy6IT9fM8ckG4kN9ECs6Ja8fQFc6/mSl5dJczzJO3k1rWMBhKJD/AgMBAAECgYEAucMakH9dWeryhrYoRHcXo4giPVJsH9ypVt4KzmOQY/7jV7KFQK3x//27UoHfUCak51sxFw9ek7UmTPM4HjikA9LkYeE7S381b4QRvFuf3L6IbMP3ywJnJ8pPr2l5SqQ00W+oKv+w/VmEsyUHr+k4Z+4ik+FheTkVWp566WbqFsECQQDjYaMcaKw3j2Zecl8T6eUe7fdaRMIzp/gcpPMfT/9rDzIQk+7ORvm1NI9AUmFv/FAlfpuAMrdL2n7p9uznWb7RAkEA2aP934kbXg5bdV0R313MrL+7WTK/qdcYxATUbMsMuWWQBoS5irrt80WCZbG48hpocJavLNjbtrjmUX3CuJBmzwJAOJg8uP10n/+ZQzjEYXh+BszEHDuw+pp8LuT/fnOy5zrJA0dO0RjpXijO3vuiNPVgHXT9z1LQPJkNrb5ACPVVgQJBALPeb4uV0bNrJDUb5RB4ghZnIxv18CcaqNIft7vuGCcFBAIPIRTBprR+RuVq+xHDt3sNXdsvom4h49+Hky1b0ksCQBBwUtVaqH6ztCtwUF1j2c/Zcrt5P/uN7IHAd44K0gIJc1+Csr3qPG+G2yoqRM8KVqLI8Z2ZYn9c+AvEE+L9OQY=",u=117,s=128;function c(e){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function t(n){var r,a,s,c,l,f,d,h,p;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["getPublicKey"])();case 2:if(a=t.sent,r=a.data.publicKey,a.data.mockServer&&(r=""),""!==r){t.next=7;break}return t.abrupt("return",n);case 7:s=new o["a"],s.setPublicKey("-----BEGIN PUBLIC KEY-----".concat(r,"-----END PUBLIC KEY-----")),c="",l="",f="",d=e.from(JSON.stringify(n)),h=0,p=d.length;while(p-h>0)c=p-h>u?d.slice(h,h+u):d.slice(h,p),l=s.encrypt(c.toString()),f+=atob(l),h+=u;return t.abrupt("return",btoa(f));case 17:case"end":return t.stop()}}),t)}))),l.apply(this,arguments)}function f(e){var t=new o["a"];t.setPrivateKey("-----BEGIN RSA PRIVATE KEY-----".concat(a,"-----END RSA PRIVATE KEY-----"));var n="",r="",i="",u=atob(e),c=0,l=u.length;while(l-c>0)n=l-c>s?u.slice(c,c+s):u.slice(c,l),r=t.decrypt(btoa(n)),i+=r,c+=s;return JSON.parse(i)}}.call(this,n("1c35").Buffer)},"7dc9":function(e,t,n){"use strict";n("7cf3")},"7f0d":function(e,t,n){},"81df":function(e,t,n){},"83b9":function(e,t,n){"use strict";var r=n("d925"),o=n("e683");e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},"848b":function(e,t,n){"use strict";var r=n("4a0c"),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function u(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}function s(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),o=r.length;while(o-- >0){var i=r[o],a=t[i];if(a){var u=e[i],s=void 0===u||a(u,i,e);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}}o.transitional=function(e,t,n){var o=t&&u(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,u){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,u)}},e.exports={isOlderVersion:u,assertOptions:s,validators:o}},8541:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.meta&&!e.item.meta.hidden?n(e.menuComponent,{tag:"component",attrs:{"item-or-menu":e.itemOrMenu}},[e.item.children&&e.item.children.length?["horizontal"===e.layout&&e.item.children.length>18||"horizontal"!==e.layout&&e.collapse&&e.item.children.length>18?n("el-scrollbar",{staticStyle:{height:"86vh"}},e._l(e.item.children,(function(e){return n("vab-menu",{key:e.fullPath,attrs:{item:e}})})),1):e._l(e.item.children,(function(e){return n("vab-menu",{key:e.fullPath,attrs:{item:e}})}))]:e._e()],2):e._e()},o=[],i=n("5530"),a=(n("d3b7"),n("2f62")),u={name:"VabMenu",props:{item:{type:Object,required:!0},layout:{type:String,default:""}},data:function(){return{itemOrMenu:this.item,menuComponent:"VabMenuItem"}},computed:Object(i["a"])({},Object(a["c"])({collapse:"settings/collapse"})),created:function(){this.item.children&&this.item.children.some((function(e){return e.meta&&!0!==e.meta.hidden}))&&(this.menuComponent="VabSubmenu")}},s=u,c=n("2877"),l=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=l.exports},8717:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-scrollbar",{staticClass:"vab-side-bar",class:{"is-collapse":e.collapse,"side-bar-common":"common"===e.layout}},[r("div",{staticClass:"logo-image"},[r("img",{attrs:{alt:"",mode:"widthFix",src:n("5a8d")}})]),r("el-menu",{attrs:{"active-text-color":e.variables["menu-color-active"],"background-color":e.variables["menu-background"],collapse:e.collapse,"collapse-transition":!1,"default-active":e.activeMenu,"default-openeds":e.defaultOpeneds,"menu-trigger":"click",mode:"vertical","text-color":e.variables["menu-color"],"unique-opened":e.uniqueOpened},on:{open:e.openMenu}},[e._l(e.handleRoutes,(function(t){return[t.meta&&!t.meta.hidden?r("vab-menu",{key:t.fullPath,staticClass:"route",attrs:{item:t}}):e._e()]}))],2)],1)},o=[],i=n("5530"),a=(n("5db7"),n("73d9"),n("d3b7"),n("7db0"),n("b0c0"),n("73e1")),u=n.n(a),s=n("2f62"),c=n("f121"),l=n("9f2e"),f={name:"VabSideBar",props:{layout:{type:String,default:"vertical"}},data:function(){return{activeMenu:"",defaultOpeneds:c["defaultOpeneds"],uniqueOpened:c["uniqueOpened"],variables:u.a}},computed:Object(i["a"])(Object(i["a"])({},Object(s["c"])({collapse:"settings/collapse",extra:"settings/extra",routes:"routes/routes"})),{},{handleRoutes:function(){return"comprehensive"===this.layout?this.handlePartialRoutes:this.routes.flatMap((function(e){return e.meta&&!0===e.meta.levelHidden&&e.children?e.children:e}))},handlePartialRoutes:function(){var e=this,t=this.routes.find((function(t){return t.name===e.extra.first}));return t?t.children:[]}}),watch:{$route:{handler:function(e){this.activeMenu=Object(l["handleActivePath"])(e),console.log(e,this.activeMenu,"侧边导航")},immediate:!0}},methods:{openMenu:function(e){console.log(e,"33333333333pppp")}}},d=f,h=(n("5224"),n("2877")),p=Object(h["a"])(d,r,o,!1,null,"f6adb1f6",null);t["default"]=p.exports},"8b7a":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.itemOrMenu.meta&&e.itemOrMenu.meta.levelHidden?n("div",[e._l(e.itemOrMenu.children,(function(e){return[n("vab-menu",{key:e.fullPath,attrs:{item:e}})]}))],2):n("el-submenu",{ref:"subMenu",attrs:{index:e.itemOrMenu.fullPath,"popper-append-to-body":!1},scopedSlots:e._u([{key:"title",fn:function(){return[e.itemOrMenu.meta&&e.itemOrMenu.meta.icon?n("vab-icon",{attrs:{icon:e.itemOrMenu.meta.icon,"is-custom-svg":e.itemOrMenu.meta.isCustomSvg,title:e.itemOrMenu.meta.title}}):e._e(),n("span",{attrs:{title:e.itemOrMenu.meta.title}},[e._v(e._s(e.itemOrMenu.meta.title))])]},proxy:!0}])},[e._t("default")],2)},o=[],i={name:"VabSubmenu",props:{itemOrMenu:{type:Object,default:function(){return null}}},methods:{change:function(){console.log("ceshiceshi------------")}}},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},"8cf1":function(e,t,n){"use strict";n.r(t);var r=n("e017"),o=n.n(r),i=n("21a1"),a=n.n(i),u=new o.a({id:"vab-icon-vab",use:"vab-icon-vab-usage",viewBox:"0 0 550 400",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 550 400" id="vab-icon-vab">\r\n<g id="vab-icon-vab_PathID_1" transform="matrix(10.7099, 0, 0, 10.7099, 76.4, 396.15)" opacity="1">\r\n<path style="fill: #41b882; fill-opacity: 1;" d="M3.75 -36.65L18.4 -36.65Q22.75 -36.65 24.85 -36.25Q27 -35.9 28.7 -34.75Q30.4 -33.6 31.5 -31.7Q32.65 -29.8 32.65 -27.4Q32.65 -24.85 31.25 -22.7Q29.85 -20.55 27.5 -19.5Q30.85 -18.5 32.65 -16.15Q34.45 -13.8 34.45 -10.6Q34.45 -8.1 33.25 -5.75Q32.1 -3.4 30.1 -1.95Q28.1 -0.55 25.15 -0.25Q23.3 -0.05 16.2 0L3.75 0L3.75 -36.65M11.15 -30.55L11.15 -22.1L16 -22.1Q20.3 -22.1 21.35 -22.2Q23.25 -22.4 24.35 -23.5Q25.45 -24.6 25.45 -26.35Q25.45 -28.05 24.5 -29.1Q23.55 -30.2 21.7 -30.4Q20.6 -30.55 15.4 -30.55L11.15 -30.55M11.15 -16L11.15 -6.2L18 -6.2Q22 -6.2 23.05 -6.4Q24.7 -6.7 25.75 -7.85Q26.8 -9.05 26.8 -11Q26.8 -12.65 26 -13.8Q25.2 -14.95 23.65 -15.45Q22.15 -16 17.1 -16L11.15 -16" />\r\n</g>\r\n <g id="vab-icon-vab_PathID_2" transform="matrix(10.7099, 0, 0, 10.7099, 76.4, 396.15)" opacity="1">\r\n</g>\r\n <g id="vab-icon-vab_PathID_3" transform="matrix(5.31826, 0, 0, 2.59618, 172.9, 161.55)" opacity="1">\r\n<path style="fill: #35495e; fill-opacity: 1;" d="M3.75 -36.65L17.25 -36.65Q21.8 -36.65 24.2 -35.95Q27.45 -35 29.75 -32.55Q32.05 -30.15 33.25 -26.6Q34.45 -23.1 34.45 -17.95Q34.45 -13.45 33.3 -10.15Q31.95 -6.15 29.4 -3.7Q27.45 -1.8 24.2 -0.75Q21.75 0 17.65 0L3.75 0L3.75 -36.65M11.15 -30.45L11.15 -6.2L16.65 -6.2Q19.75 -6.2 21.1 -6.55Q22.9 -6.95 24.1 -8Q25.3 -9.1 26.05 -11.55Q26.8 -14.05 26.8 -18.3Q26.8 -22.55 26.05 -24.8Q25.3 -27.1 23.95 -28.35Q22.6 -29.65 20.5 -30.1Q18.95 -30.45 14.45 -30.45L11.15 -30.45" />\r\n</g>\r\n <g id="vab-icon-vab_PathID_4" transform="matrix(5.31826, 0, 0, 2.59618, 172.9, 161.55)" opacity="1">\r\n</g>\r\n <g id="vab-icon-vab_PathID_5" transform="matrix(5.78477, 0, 0, 3.1825, 171.7, 333.8)" opacity="1">\r\n<path style="fill: #35495e; fill-opacity: 1;" d="M3.75 -36.65L17.25 -36.65Q21.8 -36.65 24.2 -35.95Q27.45 -35 29.75 -32.55Q32.05 -30.15 33.25 -26.6Q34.45 -23.1 34.45 -17.95Q34.45 -13.45 33.3 -10.15Q31.95 -6.15 29.4 -3.7Q27.45 -1.8 24.2 -0.75Q21.75 0 17.65 0L3.75 0L3.75 -36.65M11.15 -30.45L11.15 -6.2L16.65 -6.2Q19.75 -6.2 21.1 -6.55Q22.9 -6.95 24.1 -8Q25.3 -9.1 26.05 -11.55Q26.8 -14.05 26.8 -18.3Q26.8 -22.55 26.05 -24.8Q25.3 -27.1 23.95 -28.35Q22.6 -29.65 20.5 -30.1Q18.95 -30.45 14.45 -30.45L11.15 -30.45" />\r\n</g>\r\n <g id="vab-icon-vab_PathID_6" transform="matrix(5.78477, 0, 0, 3.1825, 171.7, 333.8)" opacity="1">\r\n</g>\r\n</symbol>'});a.a.add(u);t["default"]=u},"8df4":function(e,t,n){"use strict";var r=n("7a77");function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e,t=new o((function(t){e=t}));return{token:t,cancel:e}},e.exports=o},"8eb7":function(e,t){var n,r,o,i,a,u,s,c,l,f,d,h,p,m,g,v=!1;function b(){if(!v){v=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);u=y?parseFloat(y[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,o=t[3]?parseFloat(t[3]):NaN,i=t[4]?parseFloat(t[4]):NaN,i?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=r=o=a=i=NaN;if(b){if(b[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!w||parseFloat(w[1].replace("_","."))}else s=!1;c=!!b[2],l=!!b[3]}else s=c=l=!1}}var y={ie:function(){return b()||n},ieCompatibilityMode:function(){return b()||u>n},ie64:function(){return y.ie()&&d},firefox:function(){return b()||r},opera:function(){return b()||o},webkit:function(){return b()||i},safari:function(){return y.webkit()},chrome:function(){return b()||a},windows:function(){return b()||c},osx:function(){return b()||s},linux:function(){return b()||l},iphone:function(){return b()||h},mobile:function(){return b()||h||p||f||g},nativeApp:function(){return b()||m},android:function(){return b()||f},ipad:function(){return b()||p}};e.exports=y},"8f81":function(e,t,n){},9072:function(e,t,n){},9152:function(e,t){
  42. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  43. t.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,s=(1<<u)-1,c=s>>1,l=-7,f=n?o-1:0,d=n?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=u;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,u,s,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),t+=a+f>=1?d/s:d*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=l?(u=0,a=l):a+f>=1?(u=(t*s-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&u,h+=p,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},9224:function(e){e.exports=JSON.parse('{"a":{"@logicflow/core":"^0.4.11","@logicflow/extension":"^0.4.12","@packy-tang/vue-tinymce":"^1.1.2","@tinymce/tinymce-vue":"^3.2.8","axios":"^0.21.1","clipboard":"^2.0.8","cnpm":"^7.1.1","core-js":"^3.13.1","dayjs":"^1.10.5","dplayer":"^1.26.0","echarts":"^5.3.0","element-ui":"^2.15.2","file-saver":"^2.0.5","image-webpack-loader":"^8.1.0","imagemin-gifsicle":"^2.0.0","imagemin-pngquant":"^9.0.2","jquery":"^3.6.0","js-cookie":"^2.2.1","jsencrypt":"^3.2.0","jsplumb":"^2.15.6","lodash":"^4.17.21","mockjs":"^1.1.0","nprogress":"^0.2.0","prop-types":"^15.7.2","qs":"^6.10.1","quill":"^1.3.7","resize-detector":"^0.3.0","screenfull":"^5.1.0","simple-uploader.js":"^0.5.6","spark-md5":"^3.0.2","swiper":"^4.5.1","tinymce":"^5.10.2","vab-contextmenu":"^0.0.1","vab-count":"^0.0.1","vab-cropper":"^0.0.3","vab-icons":"^0.0.20","vab-magnifier":"^0.0.1","vab-player":"^0.0.4","vab-quill":"^0.0.4","vconsole":"^3.12.1","vue":"^2.6.12","vue-dplayer":"0.0.10","vue-i18n":"^8.24.4","vue-json-viewer":"^2.2.19","vue-router":"^3.5.1","vue-simple-uploader":"^0.7.6","vue-ueditor-wrap":"^2.5.6","vue-video-player":"^5.0.2","vuedraggable":"^2.24.3","vuex":"^3.6.2","webpack-image-loader":"^0.1.2","xlsx":"^0.17.0","zx-markdown-editor":"^0.0.2"},"b":{"@vue/cli-plugin-babel":"^4.5.13","@vue/cli-plugin-eslint":"^4.5.13","@vue/cli-plugin-router":"^4.5.13","@vue/cli-plugin-vuex":"^4.5.13","@vue/cli-service":"^4.5.13","@vue/eslint-config-prettier":"^6.0.0","body-parser":"^1.19.0","chalk":"^4.1.1","chokidar-next":"^4.0.6","compression-webpack-plugin":"^6.1.1","eslint":"^7.27.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-vue":"^7.10.0","filemanager-webpack-plugin":"^3.1.1","gulp-imagemin":"^8.0.0","lint-staged":"^11.0.0","plop":"^2.7.4","prettier":"^2.3.0","raw-loader":"^4.0.2","sass":"~1.32.13","sass-loader":"^10.2.0","stylelint":"^13.13.1","stylelint-config-prettier":"^8.0.2","stylelint-config-recess-order":"^2.4.0","svg-sprite-loader":"^6.0.7","vab-templates":"^0.0.4","video.js":"^7.14.3","vue-eslint-parser":"^7.6.0","vue-template-compiler":"^2.6.12","webpackbar":"^5.0.0-3"}}')},9288:function(e,t,n){"use strict";n.r(t);n("ac1f"),n("5319");var r=n("a026"),o=n("f121"),i=n("5c96"),a=n("9224");r["default"].prototype.$baseLoading=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o["loadingText"];return i["Loading"].service({lock:!0,text:t,spinner:e?"vab-loading-type"+e:e,background:"hsla(0,0%,100%,.8)"})},r["default"].prototype.$baseColorfullLoading=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o["loadingText"];if(e){switch(e){case 1:e="dots";break;case 2:e="gauge";break;case 3:e="inner-circles";break;case 4:e="plus";break}t=i["Loading"].service({lock:!0,text:n,spinner:e+"-loader",background:"hsla(0,0%,100%,.8)"})}else t=i["Loading"].service({lock:!0,text:n,spinner:"dots-loader",background:"hsla(0,0%,100%,.8)"});return t},r["default"].prototype.$baseMessage=function(e,t,n,r){Object(i["Message"])({showClose:!0,message:e,type:t,dangerouslyUseHTMLString:n,duration:o["messageDuration"],customClass:r})},r["default"].prototype.$baseAlert=function(e,t,n){i["MessageBox"].alert(e,t||"温馨提示",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(){n&&n()}}).then((function(){}))},r["default"].prototype.$baseConfirm=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"确定",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"取消";i["MessageBox"].confirm(e,t||"温馨提示",{confirmButtonText:o,cancelButtonText:a,closeOnClickModal:!1,type:"warning",lockScroll:!1}).then((function(){n&&n()})).catch((function(){r&&r()}))},r["default"].prototype.$baseNotify=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"success",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"top-right";Object(i["Notification"])({title:t,message:e,position:r,type:n,duration:o["messageDuration"]})},r["default"].prototype.$baseTableHeight=function(e){var t=window.innerHeight,n=291,r=60;return"number"===typeof e?t=t-n-r*e:t-=n,t},r["default"].prototype.$baseEventBus=new r["default"],function(){var e="vab-icons",t=unescape(e.replace(/\\u/g,"%u"));a["a"][t]||(r["default"].prototype=null)}()},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var o,i,a,u,s;for(a in t)if(o=e[a],i=t[a],o&&n.test(a))if("class"===a&&("string"===typeof o&&(s=o,e[a]=o={},o[s]=!0),"string"===typeof i&&(s=i,t[a]=i={},i[s]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(u in i)o[u]=r(o[u],i[u]);else if(Array.isArray(o))e[a]=o.concat(i);else if(Array.isArray(i))e[a]=[o].concat(i);else for(u in i)o[u]=i[u];else e[a]=t[a];return e}),{})}},"93a4":function(e,t,n){"use strict";n("e9c1")},"93bf":function(e,t,n){
  44. /*!
  45. * screenfull
  46. * v5.2.0 - 2021-11-03
  47. * (c) Sindre Sorhus; MIT License
  48. */
  49. (function(){"use strict";var t="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,o=n.length,i={};r<o;r++)if(e=n[r],e&&e[1]in t){for(r=0;r<e.length;r++)i[n[0][r]]=e[r];return i}return!1}(),o={change:r.fullscreenchange,error:r.fullscreenerror},i={request:function(e,n){return new Promise(function(o,i){var a=function(){this.off("change",a),o()}.bind(this);this.on("change",a),e=e||t.documentElement;var u=e[r.requestFullscreen](n);u instanceof Promise&&u.then(a).catch(i)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var o=function(){this.off("change",o),e()}.bind(this);this.on("change",o);var i=t[r.exitFullscreen]();i instanceof Promise&&i.then(o).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=o[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=o[e];r&&t.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(i,{isFullscreen:{get:function(){return Boolean(t[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[r.fullscreenEnabled])}}}),n?e.exports=i:window.screenfull=i):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}})()},"94a9":function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},9523:function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},9619:function(e,t,n){var r=n("597f"),o=n("0e15");e.exports={throttle:r,debounce:o}},"96cf":function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(D){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new T(r||[]);return i._invoke=k(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(D){return{type:"throw",arg:D}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",m={};function g(){}function v(){}function b(){}var y={};s(y,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,i)&&(y=x);var _=b.prototype=g.prototype=Object.create(y);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,u){var s=l(e[o],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,u)}))}u(s.arg)}var o;function i(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}this._invoke=i}function k(e,t,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return N()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var u=E(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var s=l(e,t,n);if("normal"===s.type){if(r=n.done?p:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=p,n.method="throw",n.arg=s.arg)}}}function E(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function R(e){if(e){var n=e[i];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){while(++o<e.length)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:N}}function N(){return{value:t,done:!0}}return v.prototype=b,s(_,"constructor",b),s(b,"constructor",v),v.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},C(S.prototype),s(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(_),s(_,u,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"97ee":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("el-drawer",{attrs:{"append-to-body":"","custom-class":"vab-drawer",direction:"rtl",size:"280px",title:"主题配置",visible:e.drawerVisible},on:{"update:visible":function(t){e.drawerVisible=t}}},[n("el-scrollbar",{staticClass:"theme-scrollbar"},[n("div",{staticClass:"el-drawer__body"},[n("el-form",{ref:"form",attrs:{"label-position":"left",model:e.theme}},[n("el-divider",{attrs:{"content-position":"left"}},[n("vab-icon",{attrs:{icon:"settings-3-line"}}),e._v(" 常用设置 ")],1),n("el-form-item",{scopedSlots:e._u([{key:"label",fn:function(){return[n("label",{staticClass:"el-form-item__label"},[e._v(" 布局 "),n("el-tooltip",{attrs:{content:"布局配置仅在电脑视窗下生效,手机视窗时将默认锁定为纵向布局",effect:"dark",placement:"top"}},[n("vab-icon",{attrs:{icon:"question-line"}})],1)],1)]},proxy:!0}])},[n("el-select",{attrs:{disabled:"mobile"===e.device},model:{value:e.theme.layout,callback:function(t){e.$set(e.theme,"layout",t)},expression:"theme.layout"}},[n("el-option",{key:"column",attrs:{label:"分栏",value:"column"}}),n("el-option",{key:"comprehensive",attrs:{label:"综合",value:"comprehensive"}}),n("el-option",{key:"vertical",attrs:{label:"纵向",value:"vertical"}}),n("el-option",{key:"horizontal",attrs:{label:"横向",value:"horizontal"}}),n("el-option",{key:"common",attrs:{label:"常规",value:"common"}})],1)],1),n("el-form-item",{attrs:{label:"主题"}},[n("el-select",{on:{change:e.setTheme},model:{value:e.theme.themeName,callback:function(t){e.$set(e.theme,"themeName",t)},expression:"theme.themeName"}},[n("el-option",{key:"default",attrs:{label:"默认",value:"default"}}),n("el-option",{key:"ocean",attrs:{label:"海洋之心",value:"ocean"}}),n("el-option",{key:"green",attrs:{label:"绿荫草场",value:"green"}}),n("el-option",{key:"white",attrs:{label:"碰触纯白",value:"white"}}),n("el-option",{key:"red",attrs:{label:"月上重火(非内置)",value:"red"}})],1)],1),n("el-form-item",{attrs:{label:"标签"}},[n("el-switch",{model:{value:e.theme.showTabs,callback:function(t){e.$set(e.theme,"showTabs",t)},expression:"theme.showTabs"}})],1),n("el-form-item",{scopedSlots:e._u([{key:"label",fn:function(){return[n("label",{staticClass:"el-form-item__label"},[e._v(" 标签图标 "),n("el-tooltip",{attrs:{content:"标签开启时生效",effect:"dark",placement:"top"}},[n("vab-icon",{attrs:{icon:"question-line"}})],1)],1)]},proxy:!0}])},[n("el-switch",{attrs:{disabled:!e.theme.showTabs},model:{value:e.theme.showTabsBarIcon,callback:function(t){e.$set(e.theme,"showTabsBarIcon",t)},expression:"theme.showTabsBarIcon"}})],1),n("el-form-item",{scopedSlots:e._u([{key:"label",fn:function(){return[n("label",{staticClass:"el-form-item__label"},[e._v(" 标签风格 "),n("el-tooltip",{attrs:{content:"标签开启时生效",effect:"dark",placement:"top"}},[n("vab-icon",{attrs:{icon:"question-line"}})],1)],1)]},proxy:!0}])},[n("el-select",{attrs:{disabled:!e.theme.showTabs},model:{value:e.theme.tabsBarStyle,callback:function(t){e.$set(e.theme,"tabsBarStyle",t)},expression:"theme.tabsBarStyle"}},[n("el-option",{key:"card",attrs:{label:"卡片",value:"card"}}),n("el-option",{key:"smart",attrs:{label:"灵动",value:"smart"}}),n("el-option",{key:"smooth",attrs:{label:"圆滑",value:"smooth"}})],1)],1),n("el-form-item",{scopedSlots:e._u([{key:"label",fn:function(){return[n("label",{staticClass:"el-form-item__label"},[e._v(" 分栏风格 "),n("el-tooltip",{attrs:{content:"分栏布局时生效",effect:"dark",placement:"top"}},[n("vab-icon",{attrs:{icon:"question-line"}})],1)],1)]},proxy:!0}])},[n("el-select",{attrs:{disabled:"column"!==e.theme.layout},model:{value:e.theme.columnStyle,callback:function(t){e.$set(e.theme,"columnStyle",t)},expression:"theme.columnStyle"}},[n("el-option",{key:"vertical",attrs:{label:"纵向",value:"vertical"}}),n("el-option",{key:"horizontal",attrs:{label:"横向",value:"horizontal"}}),n("el-option",{key:"card",attrs:{label:"卡片",value:"card"}}),n("el-option",{key:"arrow",attrs:{label:"箭头",value:"arrow"}})],1)],1),n("el-divider",{staticStyle:{"margin-top":"20px"},attrs:{"content-position":"left"}},[n("vab-icon",{attrs:{icon:"settings-3-line"}}),e._v(" 其它设置 ")],1),n("el-form-item",{attrs:{label:"头部固定"}},[n("el-switch",{attrs:{disabled:"common"===e.theme.layout},model:{value:e.theme.fixedHeader,callback:function(t){e.$set(e.theme,"fixedHeader",t)},expression:"theme.fixedHeader"}})],1),n("el-form-item",{attrs:{label:"进度条"}},[n("el-switch",{model:{value:e.theme.showProgressBar,callback:function(t){e.$set(e.theme,"showProgressBar",t)},expression:"theme.showProgressBar"}})],1),n("el-form-item",{attrs:{label:"刷新"}},[n("el-switch",{model:{value:e.theme.showRefresh,callback:function(t){e.$set(e.theme,"showRefresh",t)},expression:"theme.showRefresh"}})],1),n("el-form-item",{attrs:{label:"搜索"}},[n("el-switch",{model:{value:e.theme.showSearch,callback:function(t){e.$set(e.theme,"showSearch",t)},expression:"theme.showSearch"}})],1),n("el-form-item",{attrs:{label:"通知"}},[n("el-switch",{model:{value:e.theme.showNotice,callback:function(t){e.$set(e.theme,"showNotice",t)},expression:"theme.showNotice"}})],1),n("el-form-item",{attrs:{label:"全屏"}},[n("el-switch",{model:{value:e.theme.showFullScreen,callback:function(t){e.$set(e.theme,"showFullScreen",t)},expression:"theme.showFullScreen"}})],1)],1)],1)]),n("div",{staticClass:"el-drawer__footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.handleSaveTheme}},[e._v("保存")]),n("el-button",{on:{click:e.setDefaultTheme}},[e._v("恢复默认")])],1)],1)},o=[],i=n("1da1"),a=n("5530"),u=(n("96cf"),n("2f62")),s=n("2ef0"),c=n.n(s),l={name:"VabThemeDrawer",data:function(){return{drawerVisible:!1}},computed:Object(a["a"])({},Object(u["c"])({theme:"settings/theme",device:"settings/device"})),created:function(){var e=this;this.$baseEventBus.$on("theme",(function(){e.handleOpenTheme()})),this.$baseEventBus.$on("random-theme",(function(){e.randomTheme()})),this.setTheme()},methods:Object(a["a"])(Object(a["a"])({},Object(u["b"])({saveTheme:"settings/saveTheme",resetTheme:"settings/resetTheme"})),{},{handleOpenTheme:function(){this.drawerVisible=!0},setDefaultTheme:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.resetTheme();case 2:e.drawerVisible=!1;case 3:case"end":return t.stop()}}),t)})))()},handleSaveTheme:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.saveTheme();case 2:e.drawerVisible=!1;case 3:case"end":return t.stop()}}),t)})))()},randomTheme:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r,o,i,a,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$baseColorfullLoading(0),t.next=3,e.resetTheme();case 3:return r=["default","ocean","green","white"],e.theme.themeName=c.a.sample(c.a.pull(r,[e.theme.themeName])),o=["vertical","horizontal","card","arrow"],e.theme.columnStyle=c.a.sample(c.a.pull(o,[e.theme.columnStyle])),i=["card","smart","smooth"],e.theme.tabsBarStyle=c.a.sample(c.a.pull(i,[e.theme.tabsBarStyle])),a=[!0,!1],e.theme.showTabsBarIcon=c.a.sample(c.a.pull(a,[e.theme.showTabsBarIcon])),"desktop"===e.device?(u=["horizontal","vertical","column","comprehensive","common"],e.theme.layout=c.a.sample(c.a.pull(u,[e.theme.layout]))):e.theme.layout="vertical",t.next=14,e.setTheme();case 14:return t.next=16,e.saveTheme();case 16:setTimeout((function(){n.close()}),1e3);case 17:case"end":return t.stop()}}),t)})))()},setTheme:function(){document.getElementsByTagName("body")[0].className="vab-theme-".concat(this.theme.themeName)}})},f=l,d=(n("dc95"),n("9ee1"),n("2877")),h=Object(d["a"])(f,r,o,!1,null,"5aedb479",null);t["default"]=h.exports},9813:function(e,t,n){"use strict";n.r(t);n("7db0"),n("d3b7"),n("a434"),n("c740"),n("4de4"),n("d81d"),n("b0c0");var r=function(){return{visitedRoutes:[]}},o={visitedRoutes:function(e){return e.visitedRoutes}},i={addVisitedRoute:function(e,t){var n=e.visitedRoutes.find((function(e){return e.path===t.path}));n&&!t.meta.dynamicNewTab?Object.assign(n,t):n||e.visitedRoutes.push(Object.assign({},t))},delVisitedRoute:function(e,t){e.visitedRoutes.splice(e.visitedRoutes.findIndex((function(e){return e.path===t})),1)},delOthersVisitedRoutes:function(e,t){e.visitedRoutes=e.visitedRoutes.filter((function(e){return e.meta.noClosable||e.path===t}))},delLeftVisitedRoutes:function(e,t){var n=!1;e.visitedRoutes=e.visitedRoutes.filter((function(e){return e.path===t&&(n=!0),e.meta.noClosable||n}))},delRightVisitedRoutes:function(e,t){var n=!1;e.visitedRoutes=e.visitedRoutes.filter((function(e){var r=n;return e.path===t&&(n=!0),e.meta.noClosable||!r}))},delAllVisitedRoutes:function(e){e.visitedRoutes=e.visitedRoutes.filter((function(e){return e.meta.noClosable}))},changeTabsMeta:function(e,t){function n(e){return e.map((function(e){return e.name!==t.name&&e.meta.title!==t.title||Object.assign(e.meta,t.meta),e.children&&e.children.length&&(e.children=n(e.children)),e}))}e.visitedRoutes=n(e.visitedRoutes)}},a={addVisitedRoute:function(e,t){var n=e.commit;n("addVisitedRoute",t)},delVisitedRoute:function(e,t){var n=e.commit;n("delVisitedRoute",t)},delOthersVisitedRoutes:function(e,t){var n=e.commit;n("delOthersVisitedRoutes",t)},delLeftVisitedRoutes:function(e,t){var n=e.commit;n("delLeftVisitedRoutes",t)},delRightVisitedRoutes:function(e,t){var n=e.commit;n("delRightVisitedRoutes",t)},delAllVisitedRoutes:function(e){var t=e.commit;t("delAllVisitedRoutes")},changeTabsMeta:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t("changeTabsMeta",n)}};t["default"]={state:r,getters:o,mutations:i,actions:a}},9816:function(e,t,n){"use strict";var r="0123456789abcdefghijklmnopqrstuvwxyz";function o(e){return r.charAt(e)}function i(e,t){return e&t}function a(e,t){return e|t}function u(e,t){return e^t}function s(e,t){return e&~t}function c(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function l(e){var t=0;while(0!=e)e&=e-1,++t;return t}var f,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="=";function p(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=d.charAt(n>>6)+d.charAt(63&n);t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=d.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=d.charAt(n>>2)+d.charAt((3&n)<<4));while((3&r.length)>0)r+=h;return r}function m(e){var t,n="",r=0,i=0;for(t=0;t<e.length;++t){if(e.charAt(t)==h)break;var a=d.indexOf(e.charAt(t));a<0||(0==r?(n+=o(a>>2),i=3&a,r=1):1==r?(n+=o(i<<2|a>>4),i=15&a,r=2):2==r?(n+=o(i),n+=o(a>>2),i=3&a,r=3):(n+=o(i<<2|a>>4),n+=o(15&a),r=0))}return 1==r&&(n+=o(i<<2)),n}var g,v={decode:function(e){var t;if(void 0===f){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(f={},t=0;t<16;++t)f[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)f[n.charAt(t)]=t;for(t=0;t<r.length;++t)f[r.charAt(t)]=-1}var o=[],i=0,a=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if("="==u)break;if(u=f[u],-1!=u){if(void 0===u)throw new Error("Illegal character at offset "+t);i|=u,++a>=2?(o[o.length]=i,i=0,a=0):i<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return o}},b={decode:function(e){var t;if(void 0===g){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="= \f\n\r\t \u2028\u2029";for(g=Object.create(null),t=0;t<64;++t)g[n.charAt(t)]=t;for(g["-"]=62,g["_"]=63,t=0;t<r.length;++t)g[r.charAt(t)]=-1}var o=[],i=0,a=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if("="==u)break;if(u=g[u],-1!=u){if(void 0===u)throw new Error("Illegal character at offset "+t);i|=u,++a>=4?(o[o.length]=i>>16,o[o.length]=i>>8&255,o[o.length]=255&i,i=0,a=0):i<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:o[o.length]=i>>10;break;case 3:o[o.length]=i>>16,o[o.length]=i>>8&255;break}return o},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=b.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return b.decode(e)}},y=1e13,w=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,r,o=this.buf,i=o.length;for(n=0;n<i;++n)r=o[n]*e+t,r<y?t=0:(t=0|r/y,r-=t*y),o[n]=r;t>0&&(o[n]=t)},e.prototype.sub=function(e){var t,n,r=this.buf,o=r.length;for(t=0;t<o;++t)n=r[t]-e,n<0?(n+=y,e=1):e=0,r[t]=n;while(0===r[r.length-1])r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(y+t[r]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*y+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),x="…",_=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,C=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function S(e,t){return e.length>t&&(e=e.substring(0,t)+x),e}var k,E=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset "+e+" on a stream of length "+this.enc.length);return"string"===typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var r="",o=e;o<t;++o)if(r+=this.hexByte(this.get(o)),!0!==n)switch(15&o){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",r=e;r<t;){var o=this.get(r++);n+=o<128?String.fromCharCode(o):o>191&&o<224?String.fromCharCode((31&o)<<6|63&this.get(r++)):String.fromCharCode((15&o)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,r,o="",i=e;i<t;)n=this.get(i++),r=this.get(i++),o+=String.fromCharCode(n<<8|r);return o},e.prototype.parseTime=function(e,t,n){var r=this.parseStringISO(e,t),o=(n?_:C).exec(r);return o?(n&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),r=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(r+=":"+o[5],o[6]&&(r+=":"+o[6],o[7]&&(r+="."+o[7]))),o[8]&&(r+=" UTC","Z"!=o[8]&&(r+=o[8],o[9]&&(r+=":"+o[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){var n,r=this.get(e),o=r>127,i=o?255:0,a="";while(r==i&&++e<t)r=this.get(e);if(n=t-e,0===n)return o?-1:0;if(n>4){a=r,n<<=3;while(0==(128&(+a^i)))a=+a<<1,--n;a="("+n+" bit)\n"}o&&(r-=256);for(var u=new w(r),s=e+1;s<t;++s)u.mulAdd(256,this.get(s));return a+u.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),o=(t-e-1<<3)-r,i="("+o+" bit)\n",a="",u=e+1;u<t;++u){for(var s=this.get(u),c=u==t-1?r:0,l=7;l>=c;--l)a+=s>>l&1?"1":"0";if(a.length>n)return i+S(a,n)}return i+a},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return S(this.parseStringISO(e,t),n);var r=t-e,o="("+r+" byte)\n";n/=2,r>n&&(t=e+n);for(var i=e;i<t;++i)o+=this.hexByte(this.get(i));return r>n&&(o+=x),o},e.prototype.parseOID=function(e,t,n){for(var r="",o=new w,i=0,a=e;a<t;++a){var u=this.get(a);if(o.mulAdd(128,127&u),i+=7,!(128&u)){if(""===r)if(o=o.simplify(),o instanceof w)o.sub(80),r="2."+o.toString();else{var s=o<80?o<40?0:1:2;r=s+"."+(o-40*s)}else r+="."+o.toString();if(r.length>n)return S(r,n);o=new w,i=0}}return i>0&&(r+=".incomplete"),r},e}(),O=function(){function e(e,t,n,r,o){if(!(r instanceof A))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=o}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return S(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return S(this.stream.parseStringISO(t,t+n),e);case 30:return S(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof E?t:new E(t,0);var r=new E(n),o=new A(n),i=e.decodeLength(n),a=n.pos,u=a-r.pos,s=null,c=function(){var t=[];if(null!==i){var r=a+i;while(n.pos<r)t[t.length]=e.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var o=e.decode(n);if(o.tag.isEOC())break;t[t.length]=o}i=a-n.pos}catch(u){throw new Error("Exception while decoding undefined length content: "+u)}return t};if(o.tagConstructed)s=c();else if(o.isUniversal()&&(3==o.tagNumber||4==o.tagNumber))try{if(3==o.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");s=c();for(var l=0;l<s.length;++l)if(s[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){s=null}if(null===s){if(null===i)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(i)}return new e(r,u,i,o,s)},e}(),A=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=0!==(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new w;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),T=0xdeadbeefcafe,R=15715070==(16777215&T),N=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],D=(1<<26)/N[N.length-1],B=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,a="",u=this.t,s=this.DB-u*this.DB%t;if(u-- >0){s<this.DB&&(n=this[u]>>s)>0&&(i=!0,a=o(n));while(u>=0)s<t?(n=(this[u]&(1<<s)-1)<<t-s,n|=this[--u]>>(s+=this.DB-t)):(n=this[u]>>(s-=t)&r,s<=0&&(s+=this.DB,--u)),n>0&&(i=!0),i&&(a+=o(n))}return i?a:"0"},e.prototype.negate=function(){var t=I();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+K(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=I();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new j(t):new L(t),this.exp(e,n)},e.prototype.clone=function(){var e=I();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,r=this.DB-e*this.DB%8,o=0;if(e-- >0){r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[o++]=n|this.s<<this.DB-r);while(e>=0)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==o&&(128&this.s)!=(128&n)&&++o,(o>0||n!=this.s)&&(t[o++]=n)}return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=I();return this.bitwiseTo(e,i,t),t},e.prototype.or=function(e){var t=I();return this.bitwiseTo(e,a,t),t},e.prototype.xor=function(e){var t=I();return this.bitwiseTo(e,u,t),t},e.prototype.andNot=function(e){var t=I();return this.bitwiseTo(e,s,t),t},e.prototype.not=function(){for(var e=I(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=I();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=I();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+c(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=l(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,a)},e.prototype.clearBit=function(e){return this.changeBit(e,s)},e.prototype.flipBit=function(e){return this.changeBit(e,u)},e.prototype.add=function(e){var t=I();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=I();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=I();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=I();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=I();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=I(),n=I();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,o=e.bitLength(),i=W(1);if(o<=0)return i;n=o<18?1:o<48?3:o<144?4:o<768?5:6,r=o<8?new j(t):t.isEven()?new M(t):new L(t);var a=[],u=3,s=n-1,c=(1<<n)-1;if(a[1]=r.convert(this),n>1){var l=I();r.sqrTo(a[1],l);while(u<=c)a[u]=I(),r.mulTo(l,a[u-2],a[u]),u+=2}var f,d,h=e.t-1,p=!0,m=I();o=K(e[h])-1;while(h>=0){o>=s?f=e[h]>>o-s&c:(f=(e[h]&(1<<o+1)-1)<<s-o,h>0&&(f|=e[h-1]>>this.DB+o-s)),u=n;while(0==(1&f))f>>=1,--u;if((o-=u)<0&&(o+=this.DB,--h),p)a[f].copyTo(i),p=!1;else{while(u>1)r.sqrTo(i,m),r.sqrTo(m,i),u-=2;u>0?r.sqrTo(i,m):(d=i,i=m,m=d),r.mulTo(m,a[f],i)}while(h>=0&&0==(e[h]&1<<o))r.sqrTo(i,m),d=i,i=m,m=d,--o<0&&(o=this.DB-1,--h)}return r.revert(i)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;var r=t.clone(),o=this.clone(),i=W(1),a=W(0),u=W(0),s=W(1);while(0!=r.signum()){while(r.isEven())r.rShiftTo(1,r),n?(i.isEven()&&a.isEven()||(i.addTo(this,i),a.subTo(t,a)),i.rShiftTo(1,i)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);while(o.isEven())o.rShiftTo(1,o),n?(u.isEven()&&s.isEven()||(u.addTo(this,u),s.subTo(t,s)),u.rShiftTo(1,u)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);r.compareTo(o)>=0?(r.subTo(o,r),n&&i.subTo(u,i),a.subTo(s,a)):(o.subTo(r,o),n&&u.subTo(i,u),s.subTo(a,s))}return 0!=o.compareTo(e.ONE)?e.ZERO:s.compareTo(t)>=0?s.subtract(t):s.signum()<0?(s.addTo(t,s),s.signum()<0?s.add(t):s):s},e.prototype.pow=function(e){return this.exp(e,new P)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var o=t.getLowestSetBit(),i=n.getLowestSetBit();if(i<0)return t;o<i&&(i=o),i>0&&(t.rShiftTo(i,t),n.rShiftTo(i,n));while(t.signum()>0)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return i>0&&n.lShiftTo(i,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=N[N.length-1]){for(t=0;t<N.length;++t)if(n[0]==N[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<N.length){var r=N[t],o=t+1;while(o<N.length&&r<D)r*=N[o++];r=n.modInt(r);while(t<o)if(r%N[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(t,n);r=2}this.t=0,this.s=0;var o=t.length,i=!1,a=0;while(--o>=0){var u=8==r?255&+t[o]:$(t,o);u<0?"-"==t.charAt(o)&&(i=!0):(i=!1,0==a?this[this.t++]=u:a+r>this.DB?(this[this.t-1]|=(u&(1<<this.DB-a)-1)<<a,this[this.t++]=u>>this.DB-a):this[this.t-1]|=u<<a,a+=r,a>=this.DB&&(a-=this.DB))}8==r&&0!=(128&+t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,o=(1<<r)-1,i=Math.floor(e/this.DB),a=this.s<<n&this.DM,u=this.t-1;u>=0;--u)t[u+i+1]=this[u]>>r|a,a=(this[u]&o)<<n;for(u=i-1;u>=0;--u)t[u]=0;t[i]=a,t.t=this.t+i+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,i=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&i)<<o,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&i)<<o),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){var n=0,r=0,o=Math.min(e.t,this.t);while(n<o)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r-=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),o=t.abs(),i=r.t;n.t=i+o.t;while(--i>=0)n[i]=0;for(i=0;i<o.t;++i)n[i+r.t]=r.am(0,o[i],n,i,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,r){var o=t.abs();if(!(o.t<=0)){var i=this.abs();if(i.t<o.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=I());var a=I(),u=this.s,s=t.s,c=this.DB-K(o[o.t-1]);c>0?(o.lShiftTo(c,a),i.lShiftTo(c,r)):(o.copyTo(a),i.copyTo(r));var l=a.t,f=a[l-1];if(0!=f){var d=f*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),h=this.FV/d,p=(1<<this.F1)/d,m=1<<this.F2,g=r.t,v=g-l,b=null==n?I():n;a.dlShiftTo(v,b),r.compareTo(b)>=0&&(r[r.t++]=1,r.subTo(b,r)),e.ONE.dlShiftTo(l,b),b.subTo(a,a);while(a.t<l)a[a.t++]=0;while(--v>=0){var y=r[--g]==f?this.DM:Math.floor(r[g]*h+(r[g-1]+m)*p);if((r[g]+=a.am(0,y,r,v,0,l))<y){a.dlShiftTo(v,b),r.subTo(b,r);while(r[g]<--y)r.subTo(b,r)}}null!=n&&(r.drShiftTo(l,n),u!=s&&e.ZERO.subTo(n,n)),r.t=l,r.clamp(),c>0&&r.rShiftTo(c,r),u<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=I(),o=I(),i=n.convert(this),a=K(t)-1;i.copyTo(r);while(--a>=0)if(n.sqrTo(r,o),(t&1<<a)>0)n.mulTo(o,i,r);else{var u=r;r=o,o=u}return n.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=W(n),o=I(),i=I(),a="";this.divRemTo(r,o,i);while(o.signum()>0)a=(n+i.intValue()).toString(e).substr(1)+a,o.divRemTo(r,o,i);return i.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),o=Math.pow(n,r),i=!1,a=0,u=0,s=0;s<t.length;++s){var c=$(t,s);c<0?"-"==t.charAt(s)&&0==this.signum()&&(i=!0):(u=n*u+c,++a>=r&&(this.dMultiply(o),this.dAddOffset(u,0),a=0,u=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(u,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),a,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(n))this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this)}else{var o=[],i=7&t;o.length=1+(t>>3),n.nextBytes(o),i>0?o[0]&=(1<<i)-1:o[0]=0,this.fromString(o,256)}},e.prototype.bitwiseTo=function(e,t,n){var r,o,i=Math.min(e.t,this.t);for(r=0;r<i;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(o=e.s&this.DM,r=i;r<this.t;++r)n[r]=t(this[r],o);n.t=this.t}else{for(o=this.s&this.DM,r=i;r<e.t;++r)n[r]=t(o,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(e,t){var n=0,r=0,o=Math.min(e.t,this.t);while(n<o)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r+=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var r=Math.min(this.t+e.t,t);n.s=0,n.t=r;while(r>0)n[--r]=0;for(var o=n.t-this.t;r<o;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(o=Math.min(e.t,t);r<o;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;n.s=0;while(--r>=0)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var o=n.shiftRight(r);t=t+1>>1,t>N.length&&(t=N.length);for(var i=I(),a=0;a<t;++a){i.fromInt(N[Math.floor(Math.random()*N.length)]);var u=i.modPow(o,this);if(0!=u.compareTo(e.ONE)&&0!=u.compareTo(n)){var s=1;while(s++<r&&0!=u.compareTo(n))if(u=u.modPowInt(2,this),0==u.compareTo(e.ONE))return!1;if(0!=u.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=I();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var o=n;n=r,r=o}var i=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)t(n);else{i<a&&(a=i),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var u=function(){(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(u,0):(a>0&&r.lShiftTo(a,r),setTimeout((function(){t(r)}),0))};setTimeout(u,10)}},e.prototype.fromNumberAsync=function(t,n,r,o){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),a,this),this.isEven()&&this.dAddOffset(1,0);var i=this,u=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(e.ONE.shiftLeft(t-1),i),i.isProbablePrime(n)?setTimeout((function(){o()}),0):setTimeout(u,0)};setTimeout(u,0)}else{var s=[],c=7&t;s.length=1+(t>>3),n.nextBytes(s),c>0?s[0]&=(1<<c)-1:s[0]=0,this.fromString(s,256)}},e}(),P=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),j=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),L=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=I();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(B.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=I();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),M=function(){function e(e){this.m=e,this.r2=I(),this.q3=I(),B.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=I();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function I(){return new B(null)}function F(e,t){return new B(e,t)}var V="undefined"!==typeof navigator;V&&R&&"Microsoft Internet Explorer"==navigator.appName?(B.prototype.am=function(e,t,n,r,o,i){var a=32767&t,u=t>>15;while(--i>=0){var s=32767&this[e],c=this[e++]>>15,l=u*s+c*a;s=a*s+((32767&l)<<15)+n[r]+(1073741823&o),o=(s>>>30)+(l>>>15)+u*c+(o>>>30),n[r++]=1073741823&s}return o},k=30):V&&R&&"Netscape"!=navigator.appName?(B.prototype.am=function(e,t,n,r,o,i){while(--i>=0){var a=t*this[e++]+n[r]+o;o=Math.floor(a/67108864),n[r++]=67108863&a}return o},k=26):(B.prototype.am=function(e,t,n,r,o,i){var a=16383&t,u=t>>14;while(--i>=0){var s=16383&this[e],c=this[e++]>>14,l=u*s+c*a;s=a*s+((16383&l)<<14)+n[r]+o,o=(s>>28)+(l>>14)+u*c,n[r++]=268435455&s}return o},k=28),B.prototype.DB=k,B.prototype.DM=(1<<k)-1,B.prototype.DV=1<<k;var U=52;B.prototype.FV=Math.pow(2,U),B.prototype.F1=U-k,B.prototype.F2=2*k-U;var q,z,H=[];for(q="0".charCodeAt(0),z=0;z<=9;++z)H[q++]=z;for(q="a".charCodeAt(0),z=10;z<36;++z)H[q++]=z;for(q="A".charCodeAt(0),z=10;z<36;++z)H[q++]=z;function $(e,t){var n=H[e.charCodeAt(t)];return null==n?-1:n}function W(e){var t=I();return t.fromInt(e),t}function K(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}B.ZERO=W(0),B.ONE=W(1);var Q=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();function G(){return new Q}var Y,J,X=256,Z=null;if(null==Z){Z=[],J=0;var ee=void 0;if(window.crypto&&window.crypto.getRandomValues){var te=new Uint32Array(256);for(window.crypto.getRandomValues(te),ee=0;ee<te.length;++ee)Z[J++]=255&te[ee]}var ne=0,re=function(e){if(ne=ne||0,ne>=256||J>=X)window.removeEventListener?window.removeEventListener("mousemove",re,!1):window.detachEvent&&window.detachEvent("onmousemove",re);else try{var t=e.x+e.y;Z[J++]=255&t,ne+=1}catch(n){}};window.addEventListener?window.addEventListener("mousemove",re,!1):window.attachEvent&&window.attachEvent("onmousemove",re)}function oe(){if(null==Y){Y=G();while(J<X){var e=Math.floor(65536*Math.random());Z[J++]=255&e}for(Y.init(Z),J=0;J<Z.length;++J)Z[J]=0;J=0}return Y.next()}var ie=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=oe()},e}();function ae(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",o=0;o<n;o+=2)r+="ff";var i="0001"+r+"00"+e;return F(i,16)}function ue(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;var n=[],r=e.length-1;while(r>=0&&t>0){var o=e.charCodeAt(r--);o<128?n[--t]=o:o>127&&o<2048?(n[--t]=63&o|128,n[--t]=o>>6|192):(n[--t]=63&o|128,n[--t]=o>>6&63|128,n[--t]=o>>12|224)}n[--t]=0;var i=new ie,a=[];while(t>2){a[0]=0;while(0==a[0])i.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new B(n)}var se=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(n)<0)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=F(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=ue(e,t);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var o=r.toString(16),i=o.length,a=0;a<2*t-i;a++)o="0"+o;return o},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=F(e,16),this.e=parseInt(t,16),this.d=F(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,r,o,i,a,u){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=F(e,16),this.e=parseInt(t,16),this.d=F(n,16),this.p=F(r,16),this.q=F(o,16),this.dmp1=F(i,16),this.dmq1=F(a,16),this.coeff=F(u,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new ie,r=e>>1;this.e=parseInt(t,16);for(var o=new B(t,16);;){for(;;)if(this.p=new B(e-r,1,n),0==this.p.subtract(B.ONE).gcd(o).compareTo(B.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new B(r,1,n),0==this.q.subtract(B.ONE).gcd(o).compareTo(B.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var a=this.p.subtract(B.ONE),u=this.q.subtract(B.ONE),s=a.multiply(u);if(0==s.gcd(o).compareTo(B.ONE)){this.n=this.p.multiply(this.q),this.d=o.modInverse(s),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=F(e,16),n=this.doPrivate(t);return null==n?null:ce(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new ie,o=e>>1;this.e=parseInt(t,16);var i=new B(t,16),a=this,u=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(B.ONE),r=a.q.subtract(B.ONE),o=t.multiply(r);0==o.gcd(i).compareTo(B.ONE)?(a.n=a.p.multiply(a.q),a.d=i.modInverse(o),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(u,0)},s=function(){a.q=I(),a.q.fromNumberAsync(o,1,r,(function(){a.q.subtract(B.ONE).gcda(i,(function(e){0==e.compareTo(B.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(s,0)}))}))},c=function(){a.p=I(),a.p.fromNumberAsync(e-o,1,r,(function(){a.p.subtract(B.ONE).gcda(i,(function(e){0==e.compareTo(B.ONE)&&a.p.isProbablePrime(10)?setTimeout(s,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(u,0)},e.prototype.sign=function(e,t,n){var r=fe(n),o=r+t(e).toString(),i=ae(o,this.n.bitLength()/4);if(null==i)return null;var a=this.doPrivate(i);if(null==a)return null;var u=a.toString(16);return 0==(1&u.length)?u:"0"+u},e.prototype.verify=function(e,t,n){var r=F(t,16),o=this.doPublic(r);if(null==o)return null;var i=o.toString(16).replace(/^1f+00/,""),a=de(i);return a==n(e).toString()},e}();function ce(e,t){var n=e.toByteArray(),r=0;while(r<n.length&&0==n[r])++r;if(n.length-r!=t-1||2!=n[r])return null;++r;while(0!=n[r])if(++r>=n.length)return null;var o="";while(++r<n.length){var i=255&n[r];i<128?o+=String.fromCharCode(i):i>191&&i<224?(o+=String.fromCharCode((31&i)<<6|63&n[r+1]),++r):(o+=String.fromCharCode((15&i)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return o}var le={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function fe(e){return le[e]||""}function de(e){for(var t in le)if(le.hasOwnProperty(t)){var n=le[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}
  50. /*!
  51. Copyright (c) 2011, Yahoo! Inc. All rights reserved.
  52. Code licensed under the BSD License:
  53. http://developer.yahoo.com/yui/license.html
  54. version: 2.9.0
  55. */var he={};he.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var o;for(o in n)e.prototype[o]=n[o];var i=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(e,t){for(o=0;o<a.length;o+=1){var n=a[o],r=t[n];"function"===typeof r&&r!=Object.prototype[n]&&(e[n]=r)}})}catch(u){}i(e.prototype,n)}}};
  56. /**
  57. * @fileOverview
  58. * @name asn1-1.0.js
  59. * @author Kenji Urushima kenji.urushima@gmail.com
  60. * @version asn1 1.0.13 (2017-Jun-02)
  61. * @since jsrsasign 2.1
  62. * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
  63. */
  64. var pe={};"undefined"!=typeof pe.asn1&&pe.asn1||(pe.asn1={}),pe.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1),r=n.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var o="",i=0;i<r;i++)o+="f";var a=new B(o,16),u=a.xor(e).add(B.ONE);t=u.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=pe,n=t.asn1,r=n.DERBoolean,o=n.DERInteger,i=n.DERBitString,a=n.DEROctetString,u=n.DERNull,s=n.DERObjectIdentifier,c=n.DEREnumerated,l=n.DERUTF8String,f=n.DERNumericString,d=n.DERPrintableString,h=n.DERTeletexString,p=n.DERIA5String,m=n.DERUTCTime,g=n.DERGeneralizedTime,v=n.DERSequence,b=n.DERSet,y=n.DERTaggedObject,w=n.ASN1Util.newObject,x=Object.keys(e);if(1!=x.length)throw"key of param shall be only one.";var _=x[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":"))throw"undefined key: "+_;if("bool"==_)return new r(e[_]);if("int"==_)return new o(e[_]);if("bitstr"==_)return new i(e[_]);if("octstr"==_)return new a(e[_]);if("null"==_)return new u(e[_]);if("oid"==_)return new s(e[_]);if("enum"==_)return new c(e[_]);if("utf8str"==_)return new l(e[_]);if("numstr"==_)return new f(e[_]);if("prnstr"==_)return new d(e[_]);if("telstr"==_)return new h(e[_]);if("ia5str"==_)return new p(e[_]);if("utctime"==_)return new m(e[_]);if("gentime"==_)return new g(e[_]);if("seq"==_){for(var C=e[_],S=[],k=0;k<C.length;k++){var E=w(C[k]);S.push(E)}return new v({array:S})}if("set"==_){for(C=e[_],S=[],k=0;k<C.length;k++){E=w(C[k]);S.push(E)}return new b({array:S})}if("tag"==_){var O=e[_];if("[object Array]"===Object.prototype.toString.call(O)&&3==O.length){var A=w(O[2]);return new y({tag:O[0],explicit:O[1],obj:A})}var T={};if(void 0!==O.explicit&&(T.explicit=O.explicit),void 0!==O.tag&&(T.tag=O.tag),void 0===O.obj)throw"obj shall be specified for 'tag'.";return T.obj=w(O.obj),new y(T)}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},pe.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=Math.floor(n/40),o=n%40,i=(t=r+"."+o,""),a=2;a<e.length;a+=2){var u=parseInt(e.substr(a,2),16),s=("00000000"+u.toString(2)).slice(-8);if(i+=s.substr(1,7),"0"==s.substr(0,1)){var c=new B(i,2);t=t+"."+c.toString(10),i=""}}return t},pe.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new B(e,10),o=r.toString(2),i=7-o.length%7;7==i&&(i=0);for(var a="",u=0;u<i;u++)a+="0";o=a+o;for(u=0;u<o.length-1;u+=7){var s=o.substr(u,7);u!=o.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",o=e.split("."),i=40*parseInt(o[0])+parseInt(o[1]);r+=t(i),o.splice(0,2);for(var a=0;a<o.length;a++)r+=n(o[a]);return r},pe.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,n=t.toString(16);if(n.length%2==1&&(n="0"+n),t<128)return n;var r=n.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var o=128+r;return o.toString(16)+n},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},pe.asn1.DERAbstractString=function(e){pe.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e?this.setString(e):"undefined"!=typeof e["str"]?this.setString(e["str"]):"undefined"!=typeof e["hex"]&&this.setStringHex(e["hex"]))},he.lang.extend(pe.asn1.DERAbstractString,pe.asn1.ASN1Object),pe.asn1.DERAbstractTime=function(e){pe.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(e){utc=e.getTime()+6e4*e.getTimezoneOffset();var t=new Date(utc);return t},this.formatDate=function(e,t,n){var r=this.zeroPadding,o=this.localDateToUTC(e),i=String(o.getFullYear());"utc"==t&&(i=i.substr(2,2));var a=r(String(o.getMonth()+1),2),u=r(String(o.getDate()),2),s=r(String(o.getHours()),2),c=r(String(o.getMinutes()),2),l=r(String(o.getSeconds()),2),f=i+a+u+s+c+l;if(!0===n){var d=o.getMilliseconds();if(0!=d){var h=r(String(d),3);h=h.replace(/[0]+$/,""),f=f+"."+h}}return f+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,r,o,i){var a=new Date(Date.UTC(e,t-1,n,r,o,i,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},he.lang.extend(pe.asn1.DERAbstractTime,pe.asn1.ASN1Object),pe.asn1.DERAbstractStructured=function(e){pe.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,"undefined"!=typeof e&&"undefined"!=typeof e["array"]&&(this.asn1Array=e["array"])},he.lang.extend(pe.asn1.DERAbstractStructured,pe.asn1.ASN1Object),pe.asn1.DERBoolean=function(){pe.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},he.lang.extend(pe.asn1.DERBoolean,pe.asn1.ASN1Object),pe.asn1.DERInteger=function(e){pe.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=pe.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new B(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["bigint"]?this.setByBigInteger(e["bigint"]):"undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e["hex"]&&this.setValueHex(e["hex"]))},he.lang.extend(pe.asn1.DERInteger,pe.asn1.ASN1Object),pe.asn1.DERBitString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=pe.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}pe.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var t=8-e.length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var r="";for(n=0;n<e.length-1;n+=8){var o=e.substr(n,8),i=parseInt(o,2).toString(16);1==i.length&&(i="0"+i),r+=i}this.hTLV=null,this.isModified=!0,this.hV="0"+t+r},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):"undefined"!=typeof e["hex"]?this.setHexValueIncludingUnusedBits(e["hex"]):"undefined"!=typeof e["bin"]?this.setByBinaryString(e["bin"]):"undefined"!=typeof e["array"]&&this.setByBooleanArray(e["array"]))},he.lang.extend(pe.asn1.DERBitString,pe.asn1.ASN1Object),pe.asn1.DEROctetString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=pe.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}pe.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},he.lang.extend(pe.asn1.DEROctetString,pe.asn1.DERAbstractString),pe.asn1.DERNull=function(){pe.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},he.lang.extend(pe.asn1.DERNull,pe.asn1.ASN1Object),pe.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new B(e,10),o=r.toString(2),i=7-o.length%7;7==i&&(i=0);for(var a="",u=0;u<i;u++)a+="0";o=a+o;for(u=0;u<o.length-1;u+=7){var s=o.substr(u,7);u!=o.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};pe.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",o=e.split("."),i=40*parseInt(o[0])+parseInt(o[1]);r+=t(i),o.splice(0,2);for(var a=0;a<o.length;a++)r+=n(o[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(e){var t=pe.asn1.x509.OID.name2oid(e);if(""===t)throw"DERObjectIdentifier oidName undefined: "+e;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"===typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},he.lang.extend(pe.asn1.DERObjectIdentifier,pe.asn1.ASN1Object),pe.asn1.DEREnumerated=function(e){pe.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=pe.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new B(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e["hex"]&&this.setValueHex(e["hex"]))},he.lang.extend(pe.asn1.DEREnumerated,pe.asn1.ASN1Object),pe.asn1.DERUTF8String=function(e){pe.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},he.lang.extend(pe.asn1.DERUTF8String,pe.asn1.DERAbstractString),pe.asn1.DERNumericString=function(e){pe.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},he.lang.extend(pe.asn1.DERNumericString,pe.asn1.DERAbstractString),pe.asn1.DERPrintableString=function(e){pe.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},he.lang.extend(pe.asn1.DERPrintableString,pe.asn1.DERAbstractString),pe.asn1.DERTeletexString=function(e){pe.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},he.lang.extend(pe.asn1.DERTeletexString,pe.asn1.DERAbstractString),pe.asn1.DERIA5String=function(e){pe.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},he.lang.extend(pe.asn1.DERIA5String,pe.asn1.DERAbstractString),pe.asn1.DERUTCTime=function(e){pe.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return"undefined"==typeof this.date&&"undefined"==typeof this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},he.lang.extend(pe.asn1.DERUTCTime,pe.asn1.DERAbstractTime),pe.asn1.DERGeneralizedTime=function(e){pe.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},he.lang.extend(pe.asn1.DERGeneralizedTime,pe.asn1.DERAbstractTime),pe.asn1.DERSequence=function(e){pe.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e+=n.getEncodedHex()}return this.hV=e,this.hV}},he.lang.extend(pe.asn1.DERSequence,pe.asn1.DERAbstractStructured),pe.asn1.DERSet=function(e){pe.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},"undefined"!=typeof e&&"undefined"!=typeof e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},he.lang.extend(pe.asn1.DERSet,pe.asn1.DERAbstractStructured),pe.asn1.DERTaggedObject=function(e){pe.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["tag"]&&(this.hT=e["tag"]),"undefined"!=typeof e["explicit"]&&(this.isExplicit=e["explicit"]),"undefined"!=typeof e["obj"]&&(this.asn1Object=e["obj"],this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},he.lang.extend(pe.asn1.DERTaggedObject,pe.asn1.ASN1Object);var me=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ge=function(e){function t(n){var r=e.call(this)||this;return n&&("string"===typeof n?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return me(t,e),t.prototype.parseKey=function(e){try{var t=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=r.test(e)?v.decode(e):b.unarmor(e),i=O.decode(o);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){t=i.sub[1].getHexStringValue(),this.n=F(t,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=F(a,16);var u=i.sub[4].getHexStringValue();this.p=F(u,16);var s=i.sub[5].getHexStringValue();this.q=F(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=F(c,16);var l=i.sub[7].getHexStringValue();this.dmq1=F(l,16);var f=i.sub[8].getHexStringValue();this.coeff=F(f,16)}else{if(2!==i.sub.length)return!1;var d=i.sub[1],h=d.sub[0];t=h.sub[0].getHexStringValue(),this.n=F(t,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(p){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new pe.asn1.DERInteger({int:0}),new pe.asn1.DERInteger({bigint:this.n}),new pe.asn1.DERInteger({int:this.e}),new pe.asn1.DERInteger({bigint:this.d}),new pe.asn1.DERInteger({bigint:this.p}),new pe.asn1.DERInteger({bigint:this.q}),new pe.asn1.DERInteger({bigint:this.dmp1}),new pe.asn1.DERInteger({bigint:this.dmq1}),new pe.asn1.DERInteger({bigint:this.coeff})]},t=new pe.asn1.DERSequence(e);return t.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return p(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new pe.asn1.DERSequence({array:[new pe.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new pe.asn1.DERNull]}),t=new pe.asn1.DERSequence({array:[new pe.asn1.DERInteger({bigint:this.n}),new pe.asn1.DERInteger({int:this.e})]}),n=new pe.asn1.DERBitString({hex:"00"+t.getEncodedHex()}),r=new pe.asn1.DERSequence({array:[e,n]});return r.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return p(this.getPublicBaseKey())},t.wordwrap=function(e,t){if(t=t||64,!e)return e;var n="(.{1,"+t+"})( +|$\n?)|(.{1,"+t+"})";return e.match(RegExp(n,"g")).join("\n")},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n",e+="-----END RSA PRIVATE KEY-----",e},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n",e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(se),ve=n("a524"),be=function(){function e(e){void 0===e&&(e={}),e=e||{},this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}return e.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ge(e)},e.prototype.setPrivateKey=function(e){this.setKey(e)},e.prototype.setPublicKey=function(e){this.setKey(e)},e.prototype.decrypt=function(e){try{return this.getKey().decrypt(m(e))}catch(t){return!1}},e.prototype.encrypt=function(e){try{return p(this.getKey().encrypt(e))}catch(t){return!1}},e.prototype.sign=function(e,t,n){try{return p(this.getKey().sign(e,t,n))}catch(r){return!1}},e.prototype.verify=function(e,t,n){try{return this.getKey().verify(e,m(t),n)}catch(r){return!1}},e.prototype.getKey=function(e){if(!this.key){if(this.key=new ge,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=ve.version,e}();t["a"]=be},"99b1":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",{staticClass:"vab-layout-vertical",class:{fixed:e.fixedHeader,"no-tabs-bar":!e.showTabs}},[n("vab-side-bar"),"mobile"!==e.device||e.collapse?e._e():n("div",{staticClass:"v-modal",on:{click:e.handleFoldSideBar}}),n("div",{staticClass:"vab-main",class:{"is-collapse-main":e.collapse}},[n("div",{staticClass:"vab-layout-header",class:{"fixed-header":e.fixedHeader}},[n("vab-nav"),n("vab-tabs",{directives:[{name:"show",rawName:"v-show",value:e.showTabs,expression:"showTabs"}]})],1),n("vab-app-main")],1)],1)},o=[],i=n("5530"),a=n("2f62"),u={name:"VabLayoutVertical",props:{collapse:{type:Boolean,default:function(){return!1}},fixedHeader:{type:Boolean,default:function(){return!0}},showTabs:{type:Boolean,default:function(){return!0}},device:{type:String,default:function(){return"desktop"}}},methods:Object(i["a"])({},Object(a["b"])({handleFoldSideBar:"settings/foldSideBar"}))},s=u,c=(n("3b0c"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"71984608",null);t["default"]=l.exports},"9e6a":function(e,t,n){"use strict";var r=n("d233"),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",f=function(e,t){var n,f={},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,h),m=-1,g=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&(p[n]===l?g="utf-8":p[n]===c&&(g="iso-8859-1"),m=n,n=p.length);for(n=0;n<p.length;++n)if(n!==m){var v,b,y=p[n],w=y.indexOf("]="),x=-1===w?y.indexOf("="):w+1;-1===x?(v=t.decoder(y,a.decoder,g,"key"),b=t.strictNullHandling?null:""):(v=t.decoder(y.slice(0,x),a.decoder,g,"key"),b=r.maybeMap(s(y.slice(x+1),t),(function(e){return t.decoder(e,a.decoder,g,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===g&&(b=u(b)),y.indexOf("[]=")>-1&&(b=i(b)?[b]:b),o.call(f,v)?f[v]=r.combine(f[v],b):f[v]=b}return f},d=function(e,t,n,r){for(var o=r?t:s(t,n),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&u!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[],a[l]=o):"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o},h=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,s=n.depth>0&&a.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}var f=0;while(n.depth>0&&null!==(s=u.exec(i))&&f<n.depth){if(f+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),d(l,t,n,r)}},p=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=p(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var o="string"===typeof e?f(e,n):e,i=n.plainObjects?Object.create(null):{},a=Object.keys(o),u=0;u<a.length;++u){var s=a[u],c=h(s,o[s],n,"string"===typeof e);i=r.merge(i,c,n)}return!0===n.allowSparse?i:r.compact(i)}},"9ee1":function(e,t,n){"use strict";n("94a9")},"9f2e":function(e,t,n){"use strict";n.r(t),n.d(t,"convertRouter",(function(){return u})),n.d(t,"filterRoutes",(function(){return s})),n.d(t,"handleActivePath",(function(){return c})),n.d(t,"toLoginRoute",(function(){return l}));n("d81d"),n("fb6a"),n("4de4"),n("d3b7");var r=n("df7c"),o=n("4ff3"),i=n("61f7"),a=n("f121");function u(e){return e.map((function(e){if(e.component)if("Layout"===e.component)e.component=function(e){return Promise.resolve().then(function(){var t=[n("a3b4")];e.apply(null,t)}.bind(this)).catch(n.oe)};else{var t=e.component.indexOf("views"),r=t>0?e.component.slice(t):"views/".concat(e.component);e.component=function(e){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-00e35e3c"),n.e("chunk-13151101"),n.e("chunk-646ef995"),n.e("chunk-44d2eeab")]).then(function(){var t=[n("a8ec")("./".concat(r))];e.apply(null,t)}.bind(this)).catch(n.oe)}}return e.children&&e.children.length&&(e.children=u(e.children)),e.children&&0===e.children.length&&delete e.children,e}))}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/";return e.filter((function(e){return!(t&&e.meta&&e.meta.roles)||Object(o["hasAccess"])(e.meta.roles)})).map((function(e){return e.fullPath="*"===e.path||Object(i["isExternal"])(e.path)?e.path:Object(r["resolve"])(n,e.path),e.children&&(e.children=s(e.children,t,e.fullPath),e.redirect||(e.redirect=e.children[0].fullPath)),e}))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.meta,r=e.fullPath,o=e.matched?e.matched[e.matched.length-1].path:r;return t?n.dynamicNewTab?r:o:n.activeMenu?n.activeMenu:r||o}function l(e){return a["recordRoute"]&&"/"!==e?{path:"/login",query:{redirect:e},replace:!0}:{path:"/login",replace:!0}}},a03f:function(e,t,n){"use strict";n.r(t);var r=n("e017"),o=n.n(r),i=n("21a1"),a=n.n(i),u=new o.a({id:"vab-icon-vuejs-fill",use:"vab-icon-vuejs-fill-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="vab-icon-vuejs-fill">\r\n <path fill="none" d="M0 0h24v24H0z" />\r\n <path d="M1 3h4l7 12 7-12h4L12 22 1 3zm8.667 0L12 7l2.333-4h4.035L12 14 5.632 3h4.035z" />\r\n</symbol>'});a.a.add(u);t["default"]=u},a0d3:function(e,t,n){"use strict";var r=n("0f7c");e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},a15e:function(e,t,n){"use strict";n.r(t);var r=n("41b2"),o=n.n(r),i=n("1098"),a=n.n(i),u=/%[sdj%]/g,s=function(){};function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,o=t[0],i=t.length;if("function"===typeof o)return o.apply(null,t.slice(1));if("string"===typeof o){for(var a=String(o).replace(u,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),s=t[r];r<i;s=t[++r])a+=" "+s;return a}return o}function l(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function f(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!l(t)||"string"!==typeof e||e))}function d(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e),o++,o===i&&n(r)}e.forEach((function(e){t(e,a)}))}function h(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length)n(a);else{var u=r;r+=1,u<o?t(e[u],i):n([])}}i([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function m(e,t,n,r){if(t.first){var o=p(e);return h(o,n,r)}var i=t.firstFields||[];!0===i&&(i=Object.keys(e));var a=Object.keys(e),u=a.length,s=0,c=[],l=function(e){c.push.apply(c,e),s++,s===u&&r(c)};a.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?h(r,n,l):d(r,n,l)}))}function g(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function v(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(e[n])?e[n]=o()({},e[n],r):e[n]=r}return e}function b(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!f(t,i||e.type)||r.push(c(o.messages.required,e.fullField))}var y=b;function w(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(c(o.messages.whitespace,e.fullField))}var x=w,_={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},C={integer:function(e){return C.number(e)&&parseInt(e,10)===e},float:function(e){return C.number(e)&&!C.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":a()(e))&&!C.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(_.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(_.url)},hex:function(e){return"string"===typeof e&&!!e.match(_.hex)}};function S(e,t,n,r,o){if(e.required&&void 0===t)y(e,t,n,r,o);else{var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=e.type;i.indexOf(u)>-1?C[u](t)||r.push(c(o.messages.types[u],e.fullField,e.type)):u&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&r.push(c(o.messages.types[u],e.fullField,e.type))}}var k=S;function E(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,u="number"===typeof e.max,s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,d="number"===typeof t,h="string"===typeof t,p=Array.isArray(t);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(l=t.length),h&&(l=t.replace(s,"_").length),i?l!==e.len&&r.push(c(o.messages[f].len,e.fullField,e.len)):a&&!u&&l<e.min?r.push(c(o.messages[f].min,e.fullField,e.min)):u&&!a&&l>e.max?r.push(c(o.messages[f].max,e.fullField,e.max)):a&&u&&(l<e.min||l>e.max)&&r.push(c(o.messages[f].range,e.fullField,e.min,e.max))}var O=E,A="enum";function T(e,t,n,r,o){e[A]=Array.isArray(e[A])?e[A]:[],-1===e[A].indexOf(t)&&r.push(c(o.messages[A],e.fullField,e[A].join(", ")))}var R=T;function N(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(c(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var i=new RegExp(e.pattern);i.test(t)||r.push(c(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var D=N,B={required:y,whitespace:x,type:k,range:O,enum:R,pattern:D};function P(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();B.required(e,t,r,i,o,"string"),f(t,"string")||(B.type(e,t,r,i,o),B.range(e,t,r,i,o),B.pattern(e,t,r,i,o),!0===e.whitespace&&B.whitespace(e,t,r,i,o))}n(i)}var j=P;function L(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)}var M=L;function I(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)}var F=I;function V(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)}var U=V;function q(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),f(t)||B.type(e,t,r,i,o)}n(i)}var z=q;function H(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)}var $=H;function W(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)}var K=W;function Q(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"array")&&!e.required)return n();B.required(e,t,r,i,o,"array"),f(t,"array")||(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)}var G=Q;function Y(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)}var J=Y,X="enum";function Z(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();B.required(e,t,r,i,o),t&&B[X](e,t,r,i,o)}n(i)}var ee=Z;function te(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();B.required(e,t,r,i,o),f(t,"string")||B.pattern(e,t,r,i,o)}n(i)}var ne=te;function re(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();if(B.required(e,t,r,i,o),!f(t)){var u=void 0;u="number"===typeof t?new Date(t):t,B.type(e,u,r,i,o),u&&B.range(e,u.getTime(),r,i,o)}}n(i)}var oe=re;function ie(e,t,n,r,o){var i=[],u=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);B.required(e,t,r,i,o,u),n(i)}var ae=ie;function ue(e,t,n,r,o){var i=e.type,a=[],u=e.required||!e.required&&r.hasOwnProperty(e.field);if(u){if(f(t,i)&&!e.required)return n();B.required(e,t,r,a,o,i),f(t,i)||B.type(e,t,r,a,o)}n(a)}var se=ue,ce={string:j,method:M,number:F,boolean:U,regexp:z,integer:$,float:K,array:G,object:J,enum:ee,pattern:ne,date:oe,url:se,hex:se,email:se,required:ae};function le(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var fe=le();function de(e){this.rules=null,this._messages=fe,this.define(e)}de.prototype={messages:function(e){return e&&(this._messages=v(le(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":a()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],i=e,u=n,l=r;if("function"===typeof u&&(l=u,u={}),this.rules&&0!==Object.keys(this.rules).length){if(u.messages){var f=this.messages();f===fe&&(f=le()),v(f,u.messages),u.messages=f}else u.messages=this.messages();var d=void 0,h=void 0,p={},b=u.keys||Object.keys(this.rules);b.forEach((function(n){d=t.rules[n],h=i[n],d.forEach((function(r){var a=r;"function"===typeof a.transform&&(i===e&&(i=o()({},i)),h=i[n]=a.transform(h)),a="function"===typeof a?{validator:a}:o()({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:h,source:i,field:n}))}))}));var y={};m(p,u,(function(e,t){var n=e.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function i(e,t){return o()({},t,{fullField:n.fullField+"."+e})}function l(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=a;if(Array.isArray(l)||(l=[l]),l.length&&s("async-validator:",l),l.length&&n.message&&(l=[].concat(n.message)),l=l.map(g(n)),u.first&&l.length)return y[n.field]=1,t(l);if(r){if(n.required&&!e.value)return l=n.message?[].concat(n.message).map(g(n)):u.error?[u.error(n,c(u.messages.required,n.field))]:[],t(l);var f={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var h in f=o()({},f,e.rule.fields),f)if(f.hasOwnProperty(h)){var p=Array.isArray(f[h])?f[h]:[f[h]];f[h]=p.map(i.bind(null,h))}var m=new de(f);m.messages(u.messages),e.rule.options&&(e.rule.options.messages=u.messages,e.rule.options.error=u.error),m.validate(e.value,e.rule.options||u,(function(e){t(e&&e.length?l.concat(e):e)}))}else t(l)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=n.validator(n,e.value,l,e.source,u);f&&f.then&&f.then((function(){return l()}),(function(e){return l(e)}))}),(function(e){w(e)}))}else l&&l();function w(e){var t=void 0,n=void 0,r=[],o={};function i(e){Array.isArray(e)?r=r.concat.apply(r,e):r.push(e)}for(t=0;t<e.length;t++)i(e[t]);if(r.length)for(t=0;t<r.length;t++)n=r[t].field,o[n]=o[n]||[],o[n].push(r[t]);else r=null,o=null;l(r,o)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ce.hasOwnProperty(e.type))throw new Error(c("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ce.required:ce[this.getType(e)]||!1}},de.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ce[e]=t},de.messages=fe;t["default"]=de},a18c:function(e,t,n){"use strict";n.r(t),n.d(t,"constantRoutes",(function(){return u})),n.d(t,"asyncRoutes",(function(){return s})),n.d(t,"resetRouter",(function(){return l}));n("d3b7"),n("3ca3"),n("ddb0");var r=n("a026"),o=n("8c4f"),i=n("a3b4"),a=n("f121");r["default"].use(o["a"]);var u=[{path:"/login",component:function(){return n.e("chunk-670da3bb").then(n.bind(null,"9ed6"))},meta:{hidden:!0}},{path:"/register",component:function(){return n.e("chunk-a419cf34").then(n.bind(null,"d5c2"))},meta:{hidden:!0}},{path:"/403",name:"403",component:function(){return n.e("chunk-d9a12c9c").then(n.bind(null,"00a5"))},meta:{hidden:!0}},{path:"/404",name:"404",component:function(){return n.e("chunk-710fdf81").then(n.bind(null,"8cdb"))},meta:{hidden:!0}}],s=[{path:"/",name:"Root",component:i["default"],redirect:"/index",meta:{title:"首页",icon:"home-2-line"},children:[{path:"index",name:"Index",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-13151101")]).then(n.bind(null,"37f9"))},meta:{title:"首页",icon:"home-2-line",noClosable:!0}}]},{path:"/course",name:"Course",component:i["default"],redirect:"/course/scheduling_online",meta:{title:"辅导课",icon:"user-settings-line"},children:[{path:"scheduling",name:"Scheduling",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-fc198122")]).then(n.bind(null,"f21c"))},meta:{title:"值班表"}},{path:"record",name:"Record",component:function(){return n.e("chunk-5e8c6ca8").then(n.bind(null,"7749"))},meta:{title:"值班记录"}},{path:"scheduling_online",name:"scheduling_online",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-887d8434")]).then(n.bind(null,"5a5d"))},meta:{title:"在线排班"}},{path:"student_order",name:"studentOrder",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-646ef995")]).then(n.bind(null,"a013"))},meta:{title:"在线预约"}},{path:"teacher_record",name:"teacherRecord",component:function(){return n.e("chunk-b5bc11ec").then(n.bind(null,"685f"))},meta:{title:"排班记录"}},{path:"student_record",name:"studentRecord",component:function(){return n.e("chunk-47c150ca").then(n.bind(null,"799e"))},meta:{title:"预约记录"}}]},{path:"/mystudent",name:"Mystudent",component:i["default"],redirect:"/mystudent/student_list",meta:{title:"学生",icon:"user-settings-line"},children:[{path:"student_list",name:"student_list",component:function(){return n.e("chunk-c8f5582a").then(n.bind(null,"68bd"))},meta:{title:"学生列表"}},{path:"teacher_list",name:"teacher_list",component:function(){return n.e("chunk-2e0ff522").then(n.bind(null,"264a"))},meta:{title:"导师列表"}}]},{path:"/new",name:"New",component:i["default"],redirect:"/new/index",meta:{title:"新闻资讯",icon:"user-settings-line"},children:[{path:"index",name:"NewIndex",component:function(){return n.e("chunk-ee0820be").then(n.bind(null,"2ba0"))},meta:{title:"新闻资讯",icon:"account-box-line"}},{path:"new_detail",name:"NewDetail",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-e8b59212")]).then(n.bind(null,"9768"))},meta:{title:"资讯详情",icon:"account-box-line",hidden:!0}}]},{path:"/notice",name:"Notice",component:i["default"],redirect:"/notice/notice",meta:{title:"通知公告",icon:"volume-down-line"},children:[{path:"notice",name:"notice",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-6357b5de")]).then(n.bind(null,"f908"))},meta:{title:"公告资讯",icon:"message-3-line",noClosable:!0}},{path:"noticeEdit",name:"NoticeEdit",component:function(){return n.e("chunk-cd006518").then(n.bind(null,"41b4"))},meta:{title:"公告编辑",icon:"file-list-line",hidden:!0}},{path:"details",name:"NoticeDetail",component:function(){return n.e("chunk-23f4bb69").then(n.bind(null,"5089"))},meta:{title:"公告详情",icon:"file-list-line",dot:!0,hidden:!0}},{path:"noticeSort",name:"NoticeSort",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-5c635c06")]).then(n.bind(null,"ab2e"))},meta:{title:"分类管理",icon:"bar-chart-fill",dot:!0}}]},{path:"/organization/teacher",name:"teacher",component:i["default"],redirect:"/organization/teacher/teacher_friend",meta:{title:"导师管理"},children:[{path:"teacher_study",name:"teacher_study",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-0b1e0316")]).then(n.bind(null,"0939"))},meta:{title:"学业导师"}},{path:"teacher_friend",name:"teacher_friend",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-837153b4")]).then(n.bind(null,"ab15"))},meta:{title:"朋辈导师"}},{path:"teacher_life",name:"teacher_life",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-3cf856ae")]).then(n.bind(null,"a639"))},meta:{title:"生活导师"}},{path:"teacher_statistics",name:"teacher_statistics",component:function(){return n.e("chunk-93b7fa1c").then(n.bind(null,"4729"))},meta:{title:"导师统计"}}]},{path:"/organization",name:"Organization",component:i["default"],redirect:"/organization/student",meta:{title:"组织",icon:"organization-chart"},children:[{path:"student",name:"student",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-5dbb0c84")]).then(n.bind(null,"4034"))},meta:{title:"学生管理"}},{path:"admin",name:"admin",component:function(){return n.e("chunk-93e80a26").then(n.bind(null,"5713"))},meta:{title:"管理员管理",icon:"account-box-line",noClosable:!0}},{path:"semester",name:"semester",component:function(){return n.e("chunk-88562136").then(n.bind(null,"e8e6"))},meta:{title:"学期管理"}},{path:"time",name:"time",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-9dbe6f0c")]).then(n.bind(null,"282d"))},meta:{title:"时间段管理"}},{path:"department",name:"department",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-1aa7186e")]).then(n.bind(null,"986f"))},meta:{title:"部门管理"}},{path:"teacher_choose",name:"teacherChoose",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-3e57e041")]).then(n.bind(null,"50a3"))},meta:{title:"导师选择记录"}},{path:"evaluate",name:"evaluate",component:function(){return n.e("chunk-06c25441").then(n.bind(null,"d51e"))},meta:{title:"评价记录"}}]},{path:"/seting",name:"Seting",component:i["default"],redirect:"/seting/configure",meta:{title:"配置",icon:"user-settings-line"},children:[{path:"configure",name:"configure",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-672d027a")]).then(n.bind(null,"d761"))},meta:{title:"配置管理",icon:"account-box-line",noClosable:!0}},{path:"menu",name:"menu",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-e87aa4a8")]).then(n.bind(null,"a611"))},meta:{title:"菜单管理",icon:"account-box-line",noClosable:!0}},{path:"role",name:"role",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-35cfdf82")]).then(n.bind(null,"ef17"))},meta:{title:"角色管理",icon:"account-box-line",noClosable:!0}},{path:"banner",name:"Banner",component:function(){return Promise.all([n.e("chunk-d939e436"),n.e("chunk-89a6d8ff"),n.e("chunk-2214a5a2")]).then(n.bind(null,"b44a"))},meta:{title:"轮播图管理",icon:"account-box-line",noClosable:!0}}]},{path:"/info",name:"Info",component:i["default"],redirect:"/info/infoIndex",meta:{title:"个人中心",icon:"user-settings-line"},children:[{path:"infoIndex",name:"InfoIndex",component:function(){return n.e("chunk-1bb16ba4").then(n.bind(null,"a965"))},meta:{title:"个人信息"}}]},{path:"/wenJuan",name:"WenJuan",component:i["default"],redirect:"/wenjuan/wenJuan",meta:{title:"问卷调查",icon:"user-settings-line"},children:[{path:"wenJuan",name:"WenJuan",component:function(){return n.e("chunk-52b1447c").then(n.bind(null,"3216"))},meta:{title:"学生网上评议"}},{path:"wenJuanO",name:"WenJuanO",component:function(){return n.e("chunk-686cc3f0").then(n.bind(null,"ae55"))},meta:{title:"量化自评表"}},{path:"wenJuanTs",name:"WenJuanT",component:function(){return n.e("chunk-6ea10d1e").then(n.bind(null,"4cbe"))},meta:{title:"考核评议表"}}]},{path:"/leavingMessage",name:"LeavingMessage",component:i["default"],redirect:"/leavingMessage/leaving",meta:{title:"留言管理",icon:"user-settings-line"},children:[{path:"leaving",name:"Leaving",component:function(){return n.e("chunk-5642fb22").then(n.bind(null,"6a23"))},meta:{title:"留言列表"}}]},{path:"*",redirect:"/404",meta:{hidden:!0}}],c=f();function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;c.matcher=f(e).matcher}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return new o["a"]({base:a["publicPath"],mode:a["routerMode"],scrollBehavior:function(){return{y:0}},routes:e})}var d=o["a"].prototype.push;o["a"].prototype.push=function(e,t,n){return t||n?d.call(this,e,t,n):d.call(this,e).catch((function(e){return e}))},t["default"]=c},a2d2: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",{staticClass:"vab-layout-comprehensive",class:{fixed:e.fixedHeader,"no-tabs-bar":!e.showTabs}},[n("vab-side-bar",{attrs:{layout:"comprehensive"}}),n("div",{staticClass:"vab-main",class:{"is-collapse-main":e.collapse}},[n("div",{staticClass:"vab-layout-header",class:{"fixed-header":e.fixedHeader}},[n("vab-nav",{attrs:{layout:"comprehensive"}}),n("vab-tabs",{directives:[{name:"show",rawName:"v-show",value:e.showTabs,expression:"showTabs"}]})],1),n("vab-app-main")],1)],1)},o=[],i={name:"VabLayoutComprehensive",props:{collapse:{type:Boolean,default:function(){return!1}},fixedHeader:{type:Boolean,default:function(){return!0}},showTabs:{type:Boolean,default:function(){return!0}},device:{type:String,default:function(){return"desktop"}}}},a=i,u=(n("faba"),n("2877")),s=Object(u["a"])(a,r,o,!1,null,"1d912f1f",null);t["default"]=s.exports},a3b2: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("footer",{staticClass:"vab-footer"},[e._v(" Copyright "),n("vab-icon",{attrs:{icon:"copyright-line"}}),e._v(" "+e._s(e.title)+" "+e._s(e.fullYear)+" ")],1)},o=[],i=n("f121"),a={name:"VabFooter",data:function(){return{fullYear:(new Date).getFullYear(),title:i["title"]}}},u=a,s=(n("f69c"),n("2877")),c=Object(s["a"])(u,r,o,!1,null,"39f9a2d4",null);t["default"]=c.exports},a3b4: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",{staticClass:"vue-admin-beautiful-wrapper",class:e.classObj},[n("vab-layout-"+e.theme.layout,{tag:"component",attrs:{collapse:e.collapse,device:e.device,"fixed-header":e.theme.fixedHeader,"show-tabs":e.theme.showTabs}}),n("el-backtop",{attrs:{target:"#app"}}),n("vab-theme-drawer")],1)},o=[],i=n("5530"),a=n("2f62"),u={name:"Layouts",data:function(){return{isMobile:!1,oldLayout:""}},computed:Object(i["a"])(Object(i["a"])({},Object(a["c"])({device:"settings/device",collapse:"settings/collapse",theme:"settings/theme"})),{},{classObj:function(){return{mobile:"mobile"===this.device}}}),beforeMount:function(){this.oldLayout=this.theme.layout,window.addEventListener("resize",this.handleLayouts),this.handleLayouts()},beforeDestroy:function(){window.removeEventListener("resize",this.handleLayouts),this.isMobile&&(this.theme.layout=this.oldLayout)},methods:Object(i["a"])(Object(i["a"])({},Object(a["b"])({toggleDevice:"settings/toggleDevice",foldSideBar:"settings/foldSideBar",openSideBar:"settings/openSideBar"})),{},{handleLayouts:function(){var e=document.body.getBoundingClientRect().width-1<992;this.isMobile!==e&&(e?(this.oldLayout=this.theme.layout,this.foldSideBar()):this.openSideBar(),this.toggleDevice(e?"mobile":"desktop"),this.theme.layout=e?"vertical":this.oldLayout,this.isMobile=e)}})},s=u,c=(n("67a5"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"ee562fb0",null);t["default"]=l.exports},a3de:function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},a404:function(e,t,n){var r={"./directive.js":"3975","./element.js":"e3bf","./errorLog.js":"0a48","./permissions.js":"a842","./support.js":"cfc2","./vab.js":"9288"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="a404"},a493:function(e,t,n){"use strict";n.r(t);var r=function(){var e,t=this,n=t.$createElement,r=t._self._c||n;return r("div",{staticClass:"vab-tabs"},["common"===t.layout?r("vab-fold"):t._e(),r("el-tabs",{staticClass:"vab-tabs-content",class:(e={},e["vab-tabs-content-"+t.theme.tabsBarStyle]=!0,e),attrs:{type:"card"},on:{"tab-click":t.handleTabClick,"tab-remove":t.handleTabRemove},model:{value:t.tabActive,callback:function(e){t.tabActive=e},expression:"tabActive"}},t._l(t.visitedRoutes,(function(e){return r("el-tab-pane",{key:e.path,attrs:{closable:!t.isNoClosable(e),name:e.path}},[r("span",{staticStyle:{display:"inline-block"},attrs:{slot:"label"},on:{contextmenu:function(n){return n.preventDefault(),t.openMenu(n,e)}},slot:"label"},[t.theme.showTabsBarIcon?[e.meta&&e.meta.icon?r("vab-icon",{attrs:{icon:e.meta.icon,"is-custom-svg":e.meta.isCustomSvg}}):r("vab-icon",{attrs:{icon:e.parentIcon}})]:t._e(),r("span",[t._v(t._s(e.meta.title))])],2)])})),1),r("el-dropdown",{on:{command:t.handleCommand,"visible-change":t.handleVisibleChange},scopedSlots:t._u([{key:"dropdown",fn:function(){return[r("el-dropdown-menu",{staticClass:"tabs-more"},[r("el-dropdown-item",{attrs:{command:"closeOthersTabs"}},[r("vab-icon",{attrs:{icon:"close-line"}}),r("span",[t._v("关闭其他")])],1),r("el-dropdown-item",{attrs:{command:"closeLeftTabs"}},[r("vab-icon",{attrs:{icon:"arrow-left-line"}}),r("span",[t._v("关闭左侧")])],1),r("el-dropdown-item",{attrs:{command:"closeRightTabs"}},[r("vab-icon",{attrs:{icon:"arrow-right-line"}}),r("span",[t._v("关闭右侧")])],1),r("el-dropdown-item",{attrs:{command:"closeAllTabs"}},[r("vab-icon",{attrs:{icon:"close-line"}}),r("span",[t._v("关闭全部")])],1)],1)]},proxy:!0}])},[r("span",{staticClass:"vab-tabs-more",class:{"vab-tabs-more-active":t.active}},[r("span",{staticClass:"vab-tabs-more-icon"},[r("i",{staticClass:"box box-t"}),r("i",{staticClass:"box box-b"})])])]),t.visible?r("ul",{staticClass:"contextmenu el-dropdown-menu el-dropdown-menu--small",style:{left:t.left+"px",top:t.top+"px"}},[r("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":1===t.visitedRoutes.length},on:{click:t.closeOthersTabs}},[r("vab-icon",{attrs:{icon:"close-line"}}),r("span",[t._v("关闭其他")])],1),r("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":!t.visitedRoutes.indexOf(t.hoverRoute)},on:{click:t.closeLeftTabs}},[r("vab-icon",{attrs:{icon:"arrow-left-line"}}),r("span",[t._v("关闭左侧")])],1),r("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":t.visitedRoutes.indexOf(t.hoverRoute)===t.visitedRoutes.length-1},on:{click:t.closeRightTabs}},[r("vab-icon",{attrs:{icon:"arrow-right-line"}}),r("span",[t._v("关闭右侧")])],1),r("li",{staticClass:"el-dropdown-menu__item",on:{click:t.closeAllTabs}},[r("vab-icon",{attrs:{icon:"close-line"}}),r("span",[t._v("关闭全部")])],1)]):t._e()],1)},o=[],i=n("1da1"),a=n("5530"),u=(n("96cf"),n("b0c0"),n("d3b7"),n("159b"),n("d81d"),n("fb6a"),n("2f62")),s=n("9f2e"),c={name:"VabTabs",props:{layout:{type:String,default:""}},data:function(){return{tabActive:"",active:!1,visible:!1,top:0,left:0,hoverRoute:null}},computed:Object(a["a"])({},Object(u["c"])({visitedRoutes:"tabs/visitedRoutes",routes:"routes/routes",theme:"settings/theme"})),watch:{$route:{handler:function(e){var t=this;this.$nextTick((function(){t.addTabs(e)}))},immediate:!0},visible:function(e){e?document.body.addEventListener("click",this.closeMenu):document.body.removeEventListener("click",this.closeMenu)}},created:function(){this.initNoClosableTabs(this.routes)},methods:Object(a["a"])(Object(a["a"])({},Object(u["b"])({addVisitedRoute:"tabs/addVisitedRoute",delVisitedRoute:"tabs/delVisitedRoute",delOthersVisitedRoutes:"tabs/delOthersVisitedRoutes",delLeftVisitedRoutes:"tabs/delLeftVisitedRoutes",delRightVisitedRoutes:"tabs/delRightVisitedRoutes",delAllVisitedRoutes:"tabs/delAllVisitedRoutes"})),{},{handleTabClick:function(e){this.isActive(e.name)||this.$router.push(this.visitedRoutes[e.index])},handleVisibleChange:function(e){this.active=e},initNoClosableTabs:function(e){var t=this;e.forEach((function(e){e.meta&&e.meta.noClosable&&t.addTabs(e,!0),e.children&&t.initNoClosableTabs(e.children)}))},addTabs:function(e){var t=arguments,n=this;return Object(i["a"])(regeneratorRuntime.mark((function r(){var o,i,u,c;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=t.length>1&&void 0!==t[1]&&t[1],i=null,e.matched)for(u=e.matched.length-2;u>=0;u--)!i&&e.matched[u].meta.icon&&(i=e.matched[u].meta.icon);if(i||(i="menu-line"),!e.name||!e.meta||!0===e.meta.tabHidden){r.next=9;break}return c=Object(s["handleActivePath"])(e,!0),r.next=8,n.addVisitedRoute({path:c,query:e.query,params:e.params,name:e.name,matched:o?[e.name]:e.matched.map((function(e){return e.components.default.name})),parentIcon:i,meta:Object(a["a"])({},e.meta)});case 8:n.tabActive=c;case 9:case"end":return r.stop()}}),r)})))()},handleTabRemove:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.delVisitedRoute(e);case 2:t.isActive(e)&&t.toLastTab();case 3:case"end":return n.stop()}}),n)})))()},handleCommand:function(e){switch(e){case"closeOthersTabs":this.closeOthersTabs();break;case"closeLeftTabs":this.closeLeftTabs();break;case"closeRightTabs":this.closeRightTabs();break;case"closeAllTabs":this.closeAllTabs();break}},closeOthersTabs:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.hoverRoute){t.next=7;break}return t.next=3,e.$router.push(e.hoverRoute);case 3:return t.next=5,e.delOthersVisitedRoutes(e.hoverRoute.path);case 5:t.next=9;break;case 7:return t.next=9,e.delOthersVisitedRoutes(Object(s["handleActivePath"])(e.$route,!0));case 9:return t.next=11,e.closeMenu();case 11:case"end":return t.stop()}}),t)})))()},closeLeftTabs:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.hoverRoute){t.next=7;break}return t.next=3,e.$router.push(e.hoverRoute);case 3:return t.next=5,e.delLeftVisitedRoutes(e.hoverRoute.path);case 5:t.next=9;break;case 7:return t.next=9,e.delLeftVisitedRoutes(Object(s["handleActivePath"])(e.$route,!0));case 9:return t.next=11,e.closeMenu();case 11:case"end":return t.stop()}}),t)})))()},closeRightTabs:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.hoverRoute){t.next=7;break}return t.next=3,e.$router.push(e.hoverRoute);case 3:return t.next=5,e.delRightVisitedRoutes(e.hoverRoute.path);case 5:t.next=9;break;case 7:return t.next=9,e.delRightVisitedRoutes(Object(s["handleActivePath"])(e.$route,!0));case 9:return t.next=11,e.closeMenu();case 11:case"end":return t.stop()}}),t)})))()},closeAllTabs:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.delAllVisitedRoutes();case 2:return e.toLastTab(),t.next=5,e.closeMenu();case 5:case"end":return t.stop()}}),t)})))()},toLastTab:function(){var e=this.visitedRoutes.slice(-1)[0];e?this.$router.push(e):this.$router.push("/")},isActive:function(e){return e===Object(s["handleActivePath"])(this.$route,!0)},isNoClosable:function(e){return e.meta&&e.meta.noClosable},openMenu:function(e,t){var n=this.$el.getBoundingClientRect().left,r=this.$el.offsetWidth,o=Math.round(r),i=Math.round(e.clientX-n);this.left=i>o?o:i,this.top=Math.round(e.clientY-80),this.hoverRoute=t,this.hoverRoute.fullPath=t.path,this.visible=!0},closeMenu:function(){this.visible=!1,this.hoverRoute=null}})},l=c,f=(n("a573"),n("2877")),d=Object(f["a"])(l,r,o,!1,null,"6135aae0",null);t["default"]=d.exports},a514: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(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},o=[],i=n("61f7"),a={name:"VabLink",props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(i["isExternal"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},u=a,s=n("2877"),c=Object(s["a"])(u,r,o,!1,null,null,null);t["default"]=c.exports},a524:function(e){e.exports=JSON.parse('{"version":"3.2.1"}')},a573:function(e,t,n){"use strict";n("81df")},a5d8:function(e,t,n){},a6a5:function(e,t,n){n("d81d"),n("d3b7"),n("ddb0");var r=n("b986");r.keys().map(r)},a777:function(e,t,n){"use strict";n("e5ff")},a78e:function(e,t,n){var r,o;
  65. /*!
  66. * JavaScript Cookie v2.2.1
  67. * https://github.com/js-cookie/js-cookie
  68. *
  69. * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
  70. * Released under the MIT license
  71. */(function(i){var a;if(r=i,o="function"===typeof r?r.call(t,n,t,e):r,void 0===o||(e.exports=o),a=!0,e.exports=i(),a=!0,!a){var u=window.Cookies,s=window.Cookies=i();s.noConflict=function(){return window.Cookies=u,s}}})((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function o(){}function i(t,n,i){if("undefined"!==typeof document){i=e({path:"/"},o.defaults,i),"number"===typeof i.expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(c){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var u="";for(var s in i)i[s]&&(u+="; "+s,!0!==i[s]&&(u+="="+i[s].split(";")[0]));return document.cookie=t+"="+n+u}}function a(e,n){if("undefined"!==typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var u=i[a].split("="),s=u.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var c=t(u[0]);if(s=(r.read||r)(s,c)||t(s),n)try{s=JSON.parse(s)}catch(l){}if(o[c]=s,e===c)break}catch(l){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}return n((function(){}))}))},a842:function(e,t,n){"use strict";n.r(t);var r=n("5530"),o=n("1da1"),i=(n("96cf"),n("caad"),n("2532"),n("a18c")),a=n("4360"),u=n("323e"),s=n.n(u),c=(n("a5d8"),n("f8ab")),l=n("9f2e"),f=n("f121");s.a.configure({easing:"ease",speed:500,trickleSpeed:200,showSpinner:!1}),i["default"].beforeEach(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,n,o){var i,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=a["default"].getters["settings/theme"].showProgressBar,i&&s.a.start(),u=a["default"].getters["user/token"],console.log(u,"hasToken"),f["loginInterception"]||(u=!0),!u){e.next=31;break}if(!a["default"].getters["routes/routes"].length){e.next=10;break}"/login"===t.path?(o({path:"/"}),i&&s.a.done()):o(),e.next=29;break;case 10:if(e.prev=10,!f["loginInterception"]){e.next=16;break}return e.next=14,a["default"].dispatch("user/getUserInfo");case 14:e.next=18;break;case 16:return e.next=18,a["default"].dispatch("user/setVirtualRoles");case 18:return e.next=20,a["default"].dispatch("routes/setRoutes",f["authentication"]);case 20:o(Object(r["a"])(Object(r["a"])({},t),{},{replace:!0})),e.next=29;break;case 23:return e.prev=23,e.t0=e["catch"](10),console.error("vue-admin-beautiful错误拦截:",e.t0),e.next=28,a["default"].dispatch("user/resetAll");case 28:o(Object(l["toLoginRoute"])(t.path));case 29:e.next=42;break;case 31:if(!f["routesWhiteList"].includes(t.path)){e.next=41;break}if(!f["supportVisit"]||a["default"].getters["routes/routes"].length){e.next=38;break}return e.next=35,a["default"].dispatch("routes/setRoutes","visit");case 35:o(Object(r["a"])(Object(r["a"])({},t),{},{replace:!0})),e.next=39;break;case 38:o();case 39:e.next=42;break;case 41:o(Object(l["toLoginRoute"])(t.path));case 42:case"end":return e.stop()}}),e,null,[[10,23]])})));return function(t,n,r){return e.apply(this,arguments)}}()),i["default"].afterEach((function(e){document.title=Object(c["default"])(e.meta.title),s.a.status&&s.a.done()}))},a88d:function(e,t,n){},abd2:function(e,t,n){},ad27:function(e,t,n){"use strict";n.r(t);n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0"),n("a9e3"),n("d3b7"),n("ddb0"),n("a434"),n("b0c0"),n("99af");var r,o,i={name:"VabKeepAlive",abstract:!0,props:{include:{type:[String,RegExp,Array],default:void 0},max:{type:[String,Number],default:void 0}},updated:function(){this.cacheVNode()},created:function(){this.keys=[],this.cache=Object.create(null)},destroyed:function(){for(var e in this.cache)this.pruneCacheEntry(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){e.pruneCache(e,(function(n){return e.matches(t,n)}))}))},methods:{cacheVNode:function(){var e=this.cache,t=this.keys,n=this.vnodeToCache,r=this.keyToCache;if(n){var o=n.tag,i=n.componentInstance,a=n.componentOptions;e[r]={tag:o,componentInstance:i,name:this.getComponentName(a)},t.push(r),this.max&&t.length>parseInt(this.max)&&this.pruneCacheEntry(e,t[0],t,this._vnode),this.vnodeToCache=null}},isDef:function(e){return void 0!==e&&null!==e},matches:function(e,t){return e.indexOf(t)>-1},remove:function(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}},isAsyncPlaceholder:function(e){return e.isComment&&e.asyncFactory},getFirstComponentChild:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(this.isDef(n)&&(this.isDef(n.componentOptions)||this.isAsyncPlaceholder(n)))return n}},getComponentName:function(e){return e&&(e.Ctor.options.name||e.tag)},pruneCache:function(e,t){var n=e.cache,r=e.keys,o=e.vnode;for(var i in n){var a=n[i];if(a){var u=a.name;u&&!t(u)&&this.pruneCacheEntry(n,i,r,o)}}},pruneCacheEntry:function(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,this.remove(n,t)}},render:function(){var e=this.$slots.default,t=this.getFirstComponentChild(e),n=t&&t.componentOptions;if(n){var r=this.getComponentName(n);if(this.include&&(!r||!this.matches(this.include,r)))return t;var o=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key,i="".concat(n.Ctor.cid,"::").concat(o),a=this.cache,u=this.keys;a[i]?(t.componentInstance=a[i].componentInstance,this.remove(u,i),u.push(i)):(this.keyToCache=i,this.vnodeToCache=t),t.data.keepAlive=!0}return t||e&&e[0]}},a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},b174: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("el-col",{attrs:{lg:e.span,md:24,sm:24,xl:e.span,xs:24}},[n("div",{staticClass:"right-panel"},[e._t("default")],2)])},o=[],i=(n("a9e3"),{name:"VabQueryFormRightPanel",props:{span:{type:Number,default:10}}}),a=i,u=n("2877"),s=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=s.exports},b313:function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},b32c: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("vab-icon",{staticClass:"fold-unfold",attrs:{icon:e.collapse?"menu-unfold-line":"menu-fold-line"},on:{click:e.toggleCollapse}})},o=[],i=n("5530"),a=n("2f62"),u={name:"VabFold",data:function(){return{}},computed:Object(i["a"])({},Object(a["c"])({collapse:"settings/collapse"})),methods:Object(i["a"])({},Object(a["b"])({toggleCollapse:"settings/toggleCollapse"}))},s=u,c=(n("1404"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"9471af0a",null);t["default"]=l.exports},b50d:function(e,t,n){"use strict";var r=n("c532"),o=n("467f"),i=n("7aac"),a=n("30b5"),u=n("83b9"),s=n("c345"),c=n("3934"),l=n("2d83");e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,h=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+g)}var v=u(e.baseURL,e.url);function b(){if(p){var r="getAllResponseHeaders"in p?s(p.getAllResponseHeaders()):null,i=h&&"text"!==h&&"json"!==h?p.response:p.responseText,a={data:i,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,n,a),p=null}}if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(b)},p.onabort=function(){p&&(n(l("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(l("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=(e.withCredentials||c(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;y&&(d[e.xsrfHeaderName]=y)}"setRequestHeader"in p&&r.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},b775:function(e,t,n){"use strict";n.r(t);var r,o=n("2909"),i=(n("99af"),n("d9e2"),n("d3b7"),n("caad"),n("2532"),n("a026")),a=n("bc3a"),u=n.n(a),s=n("f121"),c=n("4360"),l=n("4328"),f=n.n(l),d=n("a18c"),h=n("61f7"),p=n("0a48"),m=Object(h["isArray"])(s["successCode"])?Object(o["a"])(s["successCode"]):[s["successCode"]].concat(),g={200:"服务器成功返回请求数据",201:"新建或修改数据成功",202:"一个请求已经进入后台排队(异步任务)",400:"发出信息有误",401:"用户没有权限(令牌失效、用户名、密码错误、登录过期)",402:"前端无痛刷新token",403:"用户得到授权,但是访问是被禁止的",404:"访问资源不存在",406:"请求格式不可得",410:"请求资源被永久删除,且不会被看到",500:"服务器发生错误",502:"网关错误",503:"服务不可用,服务器暂时过载或维护",504:"网关超时"},v=function(e){var t=e.config,n=e.data,o=e.status,a=e.statusText;console.log("1111111111111111111111111111111111111111111"),r&&r.close();var u=n&&n[s["statusName"]]?n[s["statusName"]]:o;switch(m.indexOf(n[s["statusName"]])+1&&(u=200),u){case 200:return n;case 204:return n;case 401:c["default"].dispatch("user/resetAll").then((function(){return d["default"].push({path:"/login",replace:!0}).then((function(){}))}));break;case 402:return c["default"].dispatch("user/setToken",n.data.token),n;case 403:d["default"].push({path:"/403"}).then((function(){}));break}var l="".concat(n&&n[s["messageName"]]?n[s["messageName"]]:g[u]?g[u]:a);i["default"].prototype.$baseMessage(l,"error",!1,"vab-hey-message-error");var f=new Error(l);return Object(p["checkNeed"])()&&c["default"].dispatch("errorLog/addErrorLog",{err:f,url:t.url}).then((function(){})),Promise.reject(f)},b=u.a.create({baseURL:s["baseURL"],timeout:s["requestTimeout"],headers:{"Content-Type":s["contentType"]}});b.interceptors.request.use((function(e){var t=c["default"].getters["user/token"];return t&&(e.headers["Authorization"]="Bearer ".concat(t)),e.data&&"application/x-www-form-urlencoded;charset=UTF-8"===e.headers["Content-Type"]&&(e.data=f.a.stringify(e.data)),s["debounce"].some((function(t){return e.url.includes(t)}))&&(r=i["default"].prototype.$baseLoading()),e}),(function(e){return Promise.reject(e)})),b.interceptors.response.use((function(e){return v(e)}),(function(e){var t=e.response;return void 0===t?(i["default"].prototype.$baseMessage("未可知错误,大部分是由于后端不支持跨域CORS或无效配置引起","error"),{}):v(t)})),t["default"]=b},b986:function(e,t,n){var r={"./vab.svg":"8cf1","./vuejs-fill.svg":"a03f"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="b986"},bc3a:function(e,t,n){e.exports=n("cee4")},be42:function(e,t,n){},c00b:function(e,t,n){},c098:function(e,t,n){e.exports=n("d4af")},c0c3: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",{staticClass:"vab-layout-horizontal",class:{fixed:e.fixedHeader,"no-tabs-bar":!e.showTabs}},[n("div",{staticClass:"vab-layout-header",class:{"fixed-header":e.fixedHeader}},[n("vab-header"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showTabs,expression:"showTabs"}],class:{"vab-tabs-horizontal":e.showTabs}},[n("div",{staticClass:"vab-main"},[n("vab-tabs")],1)])],1),n("div",{staticClass:"vab-main main-padding"},[n("vab-app-main")],1)])},o=[],i={name:"VabLayoutHorizontal",props:{collapse:{type:Boolean,default:function(){return!1}},fixedHeader:{type:Boolean,default:function(){return!0}},showTabs:{type:Boolean,default:function(){return!0}},device:{type:String,default:function(){return"desktop"}}}},a=i,u=(n("cf18"),n("2877")),s=Object(u["a"])(a,r,o,!1,null,"0fa1649a",null);t["default"]=s.exports},c24f:function(e,t,n){"use strict";n.r(t),n.d(t,"login",(function(){return u})),n.d(t,"socialLogin",(function(){return c})),n.d(t,"getUserInfo",(function(){return f})),n.d(t,"logout",(function(){return d})),n.d(t,"register",(function(){return h}));var r=n("1da1"),o=(n("96cf"),n("b775")),i=n("7d92"),a=n("f121");function u(e){return s.apply(this,arguments)}function s(){return s=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a["loginRSA"]){e.next=4;break}return e.next=3,Object(i["encryptedData"])(t);case 3:t=e.sent;case 4:return e.abrupt("return",Object(o["default"])({url:"/base/auth/login",method:"post",data:t}));case 5:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function c(e){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a["loginRSA"]){e.next=4;break}return e.next=3,Object(i["encryptedData"])(t);case 3:t=e.sent;case 4:return e.abrupt("return",Object(o["default"])({url:"/socialLogin",method:"post",data:t}));case 5:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function f(){return Object(o["default"])({url:"/base/auth/me",method:"get"})}function d(){return Object(o["default"])({url:"/base/auth/logout",method:"get"})}function h(e){return Object(o["default"])({url:"/register",method:"post",data:e})}},c345:function(e,t,n){"use strict";var r=n("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c401:function(e,t,n){"use strict";var r=n("c532"),o=n("2444");e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},c532:function(e,t,n){"use strict";var r=n("1d2b"),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function u(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function s(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function l(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function h(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===o.call(e)}function g(e){return"[object File]"===o.call(e)}function v(e){return"[object Blob]"===o.call(e)}function b(e){return"[object Function]"===o.call(e)}function y(e){return h(e)&&b(e.pipe)}function w(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function S(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=S(e[n],t):p(t)?e[n]=S({},t):i(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)C(arguments[n],t);return e}function k(e,t,n){return C(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e}function E(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:i,isArrayBuffer:s,isBuffer:u,isFormData:c,isArrayBufferView:l,isString:f,isNumber:d,isObject:h,isPlainObject:p,isUndefined:a,isDate:m,isFile:g,isBlob:v,isFunction:b,isStream:y,isURLSearchParams:w,isStandardBrowserEnv:_,forEach:C,merge:S,extend:k,trim:x,stripBOM:E}},c6a4:function(e,t,n){"use strict";n.r(t);var r=function(){return{admin:!1,role:[],ability:[]}},o={admin:function(e){return e.admin},role:function(e){return e.role},ability:function(e){return e.ability}},i={setFull:function(e,t){e.admin=t},setRole:function(e,t){e.role=t},setAbility:function(e,t){e.ability=t}},a={setFull:function(e,t){var n=e.commit;n("setFull",t)},setRole:function(e,t){var n=e.commit;n("setRole",t)},setAbility:function(e,t){var n=e.commit;n("setAbility",t)}};t["default"]={state:r,getters:o,mutations:i,actions:a}},c6bc:function(e,t,n){"use strict";n("de52")},c7dc: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("el-dropdown",{on:{command:e.handleCommand,"visible-change":e.handleVisibleChange},scopedSlots:e._u([{key:"dropdown",fn:function(){return[n("el-dropdown-menu",[n("el-dropdown-item",{attrs:{command:"logout"}},[n("vab-icon",{attrs:{icon:"logout-circle-r-line"}}),e._v(" 退出登录 ")],1)],1)]},proxy:!0}])},[n("span",{staticClass:"avatar-dropdown"},[n("el-avatar",{staticClass:"user-avatar",attrs:{src:e.avatar}}),n("div",{staticClass:"user-name"},[n("span",{staticClass:"hidden-xs-only"},[e._v(e._s(e.username))]),n("vab-icon",{staticClass:"vab-dropdown",class:{"vab-dropdown-active":e.active},attrs:{icon:"arrow-down-s-line"}})],1)],1)])},o=[],i=n("1da1"),a=n("5530"),u=(n("96cf"),n("2f62")),s=n("9f2e"),c=n("2400"),l={name:"VabAvatar",data:function(){return{active:!1}},computed:Object(a["a"])({},Object(u["c"])({avatar:"user/avatar",username:"user/username"})),created:function(){this.getUser()},methods:Object(a["a"])(Object(a["a"])({},Object(u["b"])({_logout:"user/logout",setAvatar:"user/setAvatar",setRole_id:"user/setRole_id"})),{},{handleCommand:function(e){switch(e){case"logout":this.logout();break}},handleVisibleChange:function(e){this.active=e},logout:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e._logout();case 2:return t.next=4,e.$router.push(Object(s["toLoginRoute"])());case 4:case"end":return t.stop()}}),t)})))()},getUser:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(c["getUser"])();case 3:n=t.sent,r=n.data,console.log(r,"user1"),e.setAvatar(r.headimg),e.setRole_id(r.role_id);case 8:case"end":return t.stop()}}),t)})))()}})},f=l,d=(n("5ed6"),n("2877")),h=Object(d["a"])(f,r,o,!1,null,"0a59aff6",null);t["default"]=h.exports},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},cb11:function(e,t,n){},cc33:function(e,t,n){"use strict";n.r(t),n.d(t,"getToken",(function(){return a})),n.d(t,"setToken",(function(){return u})),n.d(t,"removeToken",(function(){return s}));var r=n("f121"),o=n("a78e"),i=n.n(o);function a(){return r["storage"]?"localStorage"===r["storage"]?localStorage.getItem(r["tokenTableName"]):"sessionStorage"===r["storage"]?sessionStorage.getItem(r["tokenTableName"]):"cookie"===r["storage"]?i.a.get(r["tokenTableName"]):localStorage.getItem(r["tokenTableName"]):localStorage.getItem(r["tokenTableName"])}function u(e){return r["storage"]?"localStorage"===r["storage"]?localStorage.setItem(r["tokenTableName"],e):"sessionStorage"===r["storage"]?sessionStorage.setItem(r["tokenTableName"],e):"cookie"===r["storage"]?i.a.set(r["tokenTableName"],e):localStorage.setItem(r["tokenTableName"],e):localStorage.setItem(r["tokenTableName"],e)}function s(){return r["storage"]?"localStorage"===r["storage"]?localStorage.removeItem(r["tokenTableName"]):"sessionStorage"===r["storage"]?sessionStorage.clear():"cookie"===r["storage"]?i.a.remove(r["tokenTableName"]):localStorage.removeItem(r["tokenTableName"]):localStorage.removeItem(r["tokenTableName"])}},cee4:function(e,t,n){"use strict";var r=n("c532"),o=n("1d2b"),i=n("0a06"),a=n("4a7b"),u=n("2444");function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=s(u);c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),c.isAxiosError=n("5f02"),e.exports=c,e.exports.default=c},cf18:function(e,t,n){"use strict";n("146c")},cfc2:function(e,t,n){"use strict";n.r(t);n("ac1f"),n("5319");var r=n("a026"),o=n("5c96"),i=n("f121"),a=n("9224");(window.ActiveXObject||"ActiveXObject"in window)&&Object(o["MessageBox"])({title:"温馨提示",message:'检测到您当前浏览器使用的是IE内核,自2015年3月起,微软已宣布弃用IE,且不再对IE提供任何更新维护,请<a target="_blank" style="color:blue" href="https://www.microsoft.com/zh-cn/edge/">点击此处</a>访问微软官网更新浏览器,如果您使用的是双核浏览器,请您切换浏览器内核为极速模式',type:"warning",showClose:!0,showConfirmButton:!1,closeOnClickModal:!1,closeOnPressEscape:!1,closeOnHashChange:!1,dangerouslyUseHTMLString:!0}),console.log(" %c ".concat(i["title"]," %c 基于admin-pro构建 "),"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),function(){var e="vab-icons",t=unescape(e.replace(/\\u/g,"%u"));a["a"][t]||(r["default"].prototype=null)}()},d161:function(e,t,n){"use strict";n.r(t),n.d(t,"messageList",(function(){return o})),n.d(t,"getRead",(function(){return i}));var r=n("b775");function o(e){return Object(r["default"])({url:"/base/messages",method:"get",params:e})}function i(e){return Object(r["default"])({url:"/base/message",method:"get",params:e})}},d233:function(e,t,n){"use strict";var r=n("b313"),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)"undefined"!==typeof n[o]&&r.push(n[o]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},c=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(i(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"===typeof a&&n&&"object"===typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)},l=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},f=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},d=function(e,t,n,o,i){if(0===e.length)return e;var u=e;if("symbol"===typeof e?u=Symbol.prototype.toString.call(e):"string"!==typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",c=0;c<u.length;++c){var l=u.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?s+=u.charAt(c):l<128?s+=a[l]:l<2048?s+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?s+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&u.charCodeAt(c)),s+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return s},h=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],l=i[c];"object"===typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:i,prop:c}),n.push(l))}return u(t),e},p=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},v=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:s,assign:l,combine:g,compact:h,decode:f,encode:d,isBuffer:m,isRegExp:p,maybeMap:v,merge:c}},d307:function(e,t,n){var r={"./acl.js":"c6a4","./errorLog.js":"4d49","./routes.js":"66f7","./settings.js":"0781","./tabs.js":"9813","./user.js":"0f9a"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="d307"},d4a5:function(e,t){e.exports={title:"智慧导师预约",titleSeparator:" - ",titleReverse:!1,abbreviation:"导师预约",copyright:"Mead 751066209@qq.com",keepAliveMaxNum:0,routerMode:"hash",routesWhiteList:["/login","/register","/404","/403"],loadingText:"正在加载中...",tokenName:"token",tokenTableName:"mentor-token",storage:"localStorage",recordRoute:!0,logo:"vuejs-fill",messageDuration:3e3,errorLog:"development",loginInterception:!0,authentication:"all",supportVisit:!1,rolesControl:!0,uniqueOpened:!0,defaultOpeneds:[],debounce:["doEdit"],openFirstMenu:!0}},d4af:function(e,t,n){"use strict";var r=n("8eb7"),o=n("7b3e"),i=10,a=40,u=800;function s(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*i,o=n*i,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=a,o*=a):(r*=u,o*=u)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}s.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=s},d844:function(e,t,n){},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d9a1:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.theme.showFullScreen?n("vab-icon",{attrs:{icon:e.isFullscreen?"fullscreen-exit-fill":"fullscreen-fill"},on:{click:e.click}}):e._e()},o=[],i=n("5530"),a=n("2f62"),u=n("93bf"),s=n.n(u),c={name:"VabFullScreen",data:function(){return{isFullscreen:!1}},computed:Object(i["a"])({},Object(a["c"])({theme:"settings/theme"})),mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){s.a.isEnabled||this.$baseMessage("开启全屏失败","error",!1,"vab-hey-message-error"),s.a.toggle(),this.$emit("refresh")},change:function(){this.isFullscreen=s.a.isFullscreen},init:function(){s.a.isEnabled&&s.a.on("change",this.change)},destroy:function(){s.a.isEnabled&&s.a.off("change",this.change)}}},l=c,f=n("2877"),d=Object(f["a"])(l,r,o,!1,null,null,null);t["default"]=d.exports},daa1:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.theme.showNotice?n("el-badge",{attrs:{value:e.badge}},[n("el-popover",{attrs:{placement:"bottom",trigger:"hover",width:"300"},scopedSlots:e._u([{key:"reference",fn:function(){return[n("vab-icon",{attrs:{icon:"notification-line"}})]},proxy:!0}],null,!1,3189420217)},[n("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"通知",name:"notice"}},[n("div",{staticClass:"notice-list"},[n("el-scrollbar",[n("ul",e._l(e.list,(function(t,r){return n("li",{key:r},[n("div",[e._v(e._s(t.message))]),n("div",{staticClass:"time"},[n("div",[e._v("2020-09-06 12:30")]),n("div",{staticClass:"biaoji",on:{click:function(n){return e.handleRead(t.id)}}},[e._v(" 标记已读 ")])])])})),0),0==e.list.length?n("el-empty",{attrs:{description:"暂无消息","image-size":60}}):e._e()],1)],1)])],1)],1)],1):e._e()},o=[],i=n("1da1"),a=n("5530"),u=(n("96cf"),n("2f62")),s=n("d161"),c={name:"VabNotice",data:function(){return{activeName:"notice",badge:null,list:[]}},computed:Object(a["a"])({},Object(u["c"])({theme:"settings/theme",is_test:"user/is_test"})),created:function(){var e=this;this.$nextTick((function(){e.theme.showNotice&&e.fetchData()}))},methods:{handleClick:function(){this.fetchData()},handleRead:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.is_test){n.next=8;break}return n.next=3,Object(s["getRead"])({id:e});case 3:return t.$baseMessage("标记成功","success",!1,"vab-hey-message-success"),n.next=6,t.fetchData();case 6:n.next=9;break;case 8:t.$message.warning("游客模式,暂无权限!");case 9:case"end":return n.stop()}}),n)})))()},handleClearNotice:function(){this.badge=null,this.list=[],this.$baseMessage("清空消息成功","success",!1,"vab-hey-message-success")},fetchData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["messageList"])();case 2:n=t.sent,r=n.data,o=r.list,e.list=o,e.badge=0==o.length?"":o.length;case 7:case"end":return t.stop()}}),t)})))()}}},l=c,f=(n("e02b"),n("2877")),d=Object(f["a"])(l,r,o,!1,null,"001f37b7",null);t["default"]=d.exports},dc95:function(e,t,n){"use strict";n("8f81")},de52:function(e,t,n){},ded3:function(e,t,n){n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");var r=n("9523");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},df13:function(e,t,n){},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===i(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),u=a,s=0;s<a;s++)if(o[s]!==i[s]){u=s;break}var c=[];for(s=u;s<o.length;s++)c.push("..");return c=c.concat(i.slice(u)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===r&&(o=!1,r=a+1),46===u?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}var o=r((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var o=r&&!0===r.clone;return o&&e(n)?i(t(n),n,r):n}function r(t,r,o){var a=t.slice();return r.forEach((function(r,u){"undefined"===typeof a[u]?a[u]=n(r,o):e(r)?a[u]=i(t[u],r,o):-1===t.indexOf(r)&&a.push(n(r,o))})),a}function o(t,r,o){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],o)})),Object.keys(r).forEach((function(u){e(r[u])&&t[u]?a[u]=i(t[u],r[u],o):a[u]=n(r[u],o)})),a}function i(e,t,i){var a=Array.isArray(t),u=i||{arrayMerge:r},s=u.arrayMerge||r;return a?Array.isArray(e)?s(e,t,i):n(t,i):o(e,t,i)}return i.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 i(e,n,t)}))},i}))})),i=r((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),a=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,"&quot;");return t+'="'+n+'"'})).join(" ")},u=i.svg,s=i.xlink,c={};c[u.name]=u.uri,c[s.name]=s.uri;var l=function(e,t){void 0===e&&(e="");var n=o(c,t||{}),r=a(n);return"<svg "+r+">"+e+"</svg>"},f=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,r),t}(e);return f}))}).call(this,n("c8ba"))},e02b:function(e,t,n){"use strict";n("f318")},e2c1:function(e,t,n){},e3bf:function(e,t,n){"use strict";n.r(t);var r=n("a026"),o=n("5c96"),i=n.n(o);n("5155"),n("e05f");r["default"].use(i.a,{size:"small"})},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e562:function(e,t,n){(function(t){(function(){"use strict";var n=function(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},r=function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)},o=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},i=function(e,t){return a((function(n,r){return e.eq(t(n),t(r))}))},a=function(e){return{eq:e}},u=a((function(e,t){return e===t})),s=u,c=function(e){return a((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e.eq(t[o],n[o]))return!1;return!0}))},l=function(e,t){return i(c(e),(function(e){return o(e,t)}))},f=function(e){return a((function(t,n){var r=Object.keys(t),o=Object.keys(n);if(!l(s).eq(r,o))return!1;for(var i=r.length,a=0;a<i;a++){var u=r[a];if(!e.eq(t[u],n[u]))return!1}return!0}))},d=a((function(e,t){if(e===t)return!0;var o=n(e),i=n(t);return o===i&&(r(o)?e===t:"array"===o?c(d).eq(e,t):"object"===o&&f(d).eq(e,t))})),h=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},p=function(e){return function(t){return h(t)===e}},m=function(e){return function(t){return typeof t===e}},g=function(e){return function(t){return e===t}},v=p("string"),b=p("object"),y=p("array"),w=g(null),x=m("boolean"),_=g(void 0),C=function(e){return null===e||void 0===e},S=function(e){return!C(e)},k=m("function"),E=m("number"),O=function(){},A=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},T=function(e,t){return function(n){return e(t(n))}},R=function(e){return function(){return e}},N=function(e){return e},D=function(e,t){return e===t};function B(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 o=t.concat(n);return e.apply(null,o)}}var P=function(e){return function(t){return!e(t)}},j=function(e){return function(){throw new Error(e)}},L=function(e){return e()},M=function(e){e()},I=R(!1),F=R(!0),V=function(){return U},U=function(){var e=function(e){return e()},t=N,n={fold:function(e,t){return e()},isSome:I,isNone:F,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:R(null),getOrUndefined:R(void 0),or:t,orThunk:e,map:V,each:O,bind:V,exists:I,forall:F,filter:function(){return V()},toArray:function(){return[]},toString:R("none()")};return n}(),q=function(e){var t=R(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:F,isNone:I,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return q(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:U},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},z=function(e){return null===e||void 0===e?U:q(e)},H={some:q,none:V,from:z},$=Array.prototype.slice,W=Array.prototype.indexOf,K=Array.prototype.push,Q=function(e,t){return W.call(e,t)},G=function(e,t){var n=Q(e,t);return-1===n?H.none():H.some(n)},Y=function(e,t){return Q(e,t)>-1},J=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},X=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},Z=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},ee=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},te=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o],u=t(a,o)?n:r;u.push(a)}return{pass:n,fail:r}},ne=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},re=function(e,t,n){return ee(e,(function(e,r){n=t(n,e,r)})),n},oe=function(e,t,n){return Z(e,(function(e,r){n=t(n,e,r)})),n},ie=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return H.some(i);if(n(i,r))break}return H.none()},ae=function(e,t){return ie(e,t,I)},ue=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return H.some(n)}return H.none()},se=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!y(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);K.apply(t,e[n])}return t},ce=function(e,t){return se(X(e,t))},le=function(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(!0!==t(o,n))return!1}return!0},fe=function(e){var t=$.call(e,0);return t.reverse(),t},de=function(e,t){return ne(e,(function(e){return!Y(t,e)}))},he=function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n},pe=function(e,t){var n=$.call(e,0);return n.sort(t),n},me=function(e,t){return t>=0&&t<e.length?H.some(e[t]):H.none()},ge=function(e){return me(e,0)},ve=function(e){return me(e,e.length-1)},be=k(Array.from)?Array.from:function(e){return $.call(e)},ye=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return H.none()},we=Object.keys,xe=Object.hasOwnProperty,_e=function(e,t){for(var n=we(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},Ce=function(e,t){return Se(e,(function(e,n){return{k:n,v:t(e,n)}}))},Se=function(e,t){var n={};return _e(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},ke=function(e){return function(t,n){e[n]=t}},Ee=function(e,t,n,r){var o={};return _e(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},Oe=function(e,t){var n={},r={};return Ee(e,t,ke(n),ke(r)),{t:n,f:r}},Ae=function(e,t){var n={};return Ee(e,t,ke(n),O),n},Te=function(e,t){var n=[];return _e(e,(function(e,r){n.push(t(e,r))})),n},Re=function(e){return Te(e,N)},Ne=function(e,t){return De(e,t)?H.from(e[t]):H.none()},De=function(e,t){return xe.call(e,t)},Be=function(e,t){return De(e,t)&&void 0!==e[t]&&null!==e[t]},Pe=function(e,t,n){return void 0===n&&(n=d),f(n).eq(e,t)},je=Array.isArray,Le=function(e){if(je(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},Me=function(e,t,n){var r,o;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,o=e.length;r<o;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(De(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0},Ie=function(e,t){var n=[];return Me(e,(function(r,o){n.push(t(r,o,e))})),n},Fe=function(e,t){var n=[];return Me(e,(function(r,o){t&&!t(r,o,e)||n.push(r)})),n},Ve=function(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Ue=function(e,t,n,r){for(var o=_(n)?e[0]:n,i=0;i<e.length;i++)o=t.call(r,o,e[i],i);return o},qe=function(e,t,n){var r,o;for(r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return r;return-1},ze=function(e){return e[e.length-1]},He=function(){return He=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},He.apply(this,arguments)};function $e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function We(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var Ke=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},Qe=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),u=a||r("(pointer:coarse)"),s=o||!i&&a&&r("(min-device-width:768px)"),c=i||a&&!s,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!c&&!s&&!l;return{isiPad:R(o),isiPhone:R(i),isTablet:R(s),isPhone:R(c),isTouch:R(u),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:R(l),isDesktop:R(f)}},Ge=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Ye=function(e,t){var n=Ge(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Ze(r(1),r(2))},Je=function(e,t){var n=String(t).toLowerCase();return 0===e.length?Xe():Ye(e,n)},Xe=function(){return Ze(0,0)},Ze=function(e,t){return{major:e,minor:t}},et={nu:Ze,detect:Je,unknown:Xe},tt=function(e,t){return ye(t.brands,(function(t){var n=t.brand.toLowerCase();return ae(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:et.nu(parseInt(t.version,10),0)}}))}))},nt=function(e,t){var n=String(t).toLowerCase();return ae(e,(function(e){return e.search(n)}))},rt=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ot=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},it=function(e,t){return e.substring(t)},at=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},ut=function(e,t){return ct(e,t)?it(e,t.length):e},st=function(e,t){return-1!==e.indexOf(t)},ct=function(e,t){return at(e,t,0)},lt=function(e){return function(t){return t.replace(e,"")}},ft=lt(/^\s+|\s+$/g),dt=lt(/^\s+/g),ht=lt(/\s+$/g),pt=function(e){return e.length>0},mt=function(e){return!pt(e)},gt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,vt=function(e){return function(t){return st(t,e)}},bt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return st(e,"edge/")&&st(e,"chrome")&&st(e,"safari")&&st(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,gt],search:function(e){return st(e,"chrome")&&!st(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return st(e,"msie")||st(e,"trident")}},{name:"Opera",versionRegexes:[gt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:vt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:vt("firefox")},{name:"Safari",versionRegexes:[gt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(st(e,"safari")||st(e,"mobile/"))&&st(e,"applewebkit")}}],yt=[{name:"Windows",search:vt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return st(e,"iphone")||st(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:vt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:vt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:vt("linux"),versionRegexes:[]},{name:"Solaris",search:vt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:vt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:vt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],wt={browsers:R(bt),oses:R(yt)},xt="Edge",_t="Chrome",Ct="IE",St="Opera",kt="Firefox",Et="Safari",Ot=function(){return At({current:void 0,version:et.unknown()})},At=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(xt),isChrome:r(_t),isIE:r(Ct),isOpera:r(St),isFirefox:r(kt),isSafari:r(Et)}},Tt={unknown:Ot,nu:At,edge:R(xt),chrome:R(_t),ie:R(Ct),opera:R(St),firefox:R(kt),safari:R(Et)},Rt="Windows",Nt="iOS",Dt="Android",Bt="Linux",Pt="OSX",jt="Solaris",Lt="FreeBSD",Mt="ChromeOS",It=function(){return Ft({current:void 0,version:et.unknown()})},Ft=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Rt),isiOS:r(Nt),isAndroid:r(Dt),isOSX:r(Pt),isLinux:r(Bt),isSolaris:r(jt),isFreeBSD:r(Lt),isChromeOS:r(Mt)}},Vt={unknown:It,nu:Ft,windows:R(Rt),ios:R(Nt),android:R(Dt),linux:R(Bt),osx:R(Pt),solaris:R(jt),freebsd:R(Lt),chromeos:R(Mt)},Ut=function(e,t,n){var r=wt.browsers(),o=wt.oses(),i=t.bind((function(e){return tt(r,e)})).orThunk((function(){return rt(r,e)})).fold(Tt.unknown,Tt.nu),a=ot(o,e).fold(Vt.unknown,Vt.nu),u=Qe(a,i,e,n);return{browser:i,os:a,deviceType:u}},qt={detect:Ut},zt=function(e){return window.matchMedia(e).matches},Ht=Ke((function(){return qt.detect(navigator.userAgent,H.from(navigator.userAgentData),zt)})),$t=function(){return Ht()},Wt=navigator.userAgent,Kt=$t(),Qt=Kt.browser,Gt=Kt.os,Yt=Kt.deviceType,Jt=/WebKit/.test(Wt)&&!Qt.isEdge(),Xt="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Zt=-1!==Wt.indexOf("Windows Phone"),en={opera:Qt.isOpera(),webkit:Jt,ie:!(!Qt.isIE()&&!Qt.isEdge())&&Qt.version.major,gecko:Qt.isFirefox(),mac:Gt.isOSX()||Gt.isiOS(),iOS:Yt.isiPad()||Yt.isiPhone(),android:Gt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Qt.isIE()?document.documentMode||7:10,fileApi:Xt,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Qt.isIE(),desktop:Yt.isDesktop(),windowsPhone:Zt,browser:{current:Qt.current,version:Qt.version,isChrome:Qt.isChrome,isEdge:Qt.isEdge,isFirefox:Qt.isFirefox,isIE:Qt.isIE,isOpera:Qt.isOpera,isSafari:Qt.isSafari},os:{current:Gt.current,version:Gt.version,isAndroid:Gt.isAndroid,isChromeOS:Gt.isChromeOS,isFreeBSD:Gt.isFreeBSD,isiOS:Gt.isiOS,isLinux:Gt.isLinux,isOSX:Gt.isOSX,isSolaris:Gt.isSolaris,isWindows:Gt.isWindows},deviceType:{isDesktop:Yt.isDesktop,isiPad:Yt.isiPad,isiPhone:Yt.isiPhone,isPhone:Yt.isPhone,isTablet:Yt.isTablet,isTouch:Yt.isTouch,isWebView:Yt.isWebView}},tn=/^\s*|\s*$/g,nn=function(e){return null===e||void 0===e?"":(""+e).replace(tn,"")},rn=function(e,t){return t?!("array"!==t||!je(e))||typeof e===t:void 0!==e},on=function(e,t,n){var r;e=e||[],t=t||",","string"===typeof e&&(e=e.split(t)),n=n||{},r=e.length;while(r--)n[e[r]]={};return n},an=De,un=function(e,t,n){var r,o,i,a=this,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var s=e[3].match(/(^|\.)(\w+)$/i)[2],c=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!c[s]){if("static"===e[2])return c[s]=t,void(this.onCreate&&this.onCreate(e[2],e[3],c[s]));t[s]||(t[s]=function(){},u=1),c[s]=t[s],a.extend(c[s].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,o=e[5].match(/\.(\w+)$/i)[1],i=c[s],c[s]=u?function(){return r[o].apply(this,arguments)}:function(){return this.parent=r[o],i.apply(this,arguments)},c[s].prototype[s]=c[s],a.each(r,(function(e,t){c[s].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?c[s].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==s&&(c[s].prototype[t]=e)}))),a.each(t.static,(function(e,t){c[s][t]=e}))}},sn=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 o=t[r];for(var i in o)if(De(o,i)){var a=o[i];void 0!==a&&(e[i]=a)}}return e},cn=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Me(e,(function(e,o){if(!1===t.call(r,e,o,n))return!1;cn(e,t,n,r)})))},ln=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)r=e[n],t[r]||(t[r]={}),t=t[r];return t},fn=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0,r=e.length;n<r;n++)if(t=t[e[n]],!t)break;return t},dn=function(e,t){return!e||rn(e,"array")?e:Ie(e.split(t||","),nn)},hn=function(e){var t=en.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},pn={trim:nn,isArray:je,is:rn,toArray:Le,makeMap:on,each:Me,map:Ie,grep:Fe,inArray:Ve,hasOwn:an,extend:sn,create:un,walk:cn,createNS:ln,resolve:fn,explode:dn,_addCacheSuffix:hn},mn=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 bn(r.childNodes[0])},gn=function(e,t){var n=t||document,r=n.createElement(e);return bn(r)},vn=function(e,t){var n=t||document,r=n.createTextNode(e);return bn(r)},bn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},yn=function(e,t,n){return H.from(e.dom.elementFromPoint(t,n)).map(bn)},wn={fromHtml:mn,fromTag:gn,fromText:vn,fromDom:bn,fromPoint:yn},xn=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},o=t(e);do{o=o.bind(r)}while(o.isSome());return n},_n=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Cn=function(e,t){return _n(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Sn=8,kn=9,En=11,On=1,An=3,Tn=function(e,t){var n=e.dom;if(n.nodeType!==On)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")},Rn=function(e){return e.nodeType!==On&&e.nodeType!==kn&&e.nodeType!==En||0===e.childElementCount},Nn=function(e,t){var n=void 0===t?document:t.dom;return Rn(n)?[]:X(n.querySelectorAll(e),wn.fromDom)},Dn=function(e,t){var n=void 0===t?document:t.dom;return Rn(n)?H.none():H.from(n.querySelector(e)).map(wn.fromDom)},Bn=function(e,t){return e.dom===t.dom},Pn=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},jn=function(e,t){return Cn(e.dom,t.dom)},Ln=function(e,t){return $t().browser.isIE()?jn(e,t):Pn(e,t)};"undefined"!==typeof window?window:Function("return this;")();var Mn=function(e){var t=e.dom.nodeName;return t.toLowerCase()},In=function(e){return e.dom.nodeType},Fn=function(e){return function(t){return In(t)===e}},Vn=function(e){return In(e)===Sn||"#comment"===Mn(e)},Un=Fn(On),qn=Fn(An),zn=Fn(kn),Hn=Fn(En),$n=function(e){return function(t){return Un(t)&&Mn(t)===e}},Wn=function(e){return wn.fromDom(e.dom.ownerDocument)},Kn=function(e){return zn(e)?e:Wn(e)},Qn=function(e){return wn.fromDom(Kn(e).dom.documentElement)},Gn=function(e){return wn.fromDom(Kn(e).dom.defaultView)},Yn=function(e){return H.from(e.dom.parentNode).map(wn.fromDom)},Jn=function(e,t){var n=k(t)?t:I,r=e.dom,o=[];while(null!==r.parentNode&&void 0!==r.parentNode){var i=r.parentNode,a=wn.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},Xn=function(e){var t=function(t){return ne(t,(function(t){return!Bn(e,t)}))};return Yn(e).map(rr).map(t).getOr([])},Zn=function(e){return H.from(e.dom.previousSibling).map(wn.fromDom)},er=function(e){return H.from(e.dom.nextSibling).map(wn.fromDom)},tr=function(e){return fe(xn(e,Zn))},nr=function(e){return xn(e,er)},rr=function(e){return X(e.dom.childNodes,wn.fromDom)},or=function(e,t){var n=e.dom.childNodes;return H.from(n[t]).map(wn.fromDom)},ir=function(e){return or(e,0)},ar=function(e){return or(e,e.dom.childNodes.length-1)},ur=function(e){return e.dom.childNodes.length},sr=function(e){var t=e.dom.head;if(null===t||void 0===t)throw new Error("Head is not available yet");return wn.fromDom(t)},cr=function(e){return Hn(e)&&S(e.dom.host)},lr=k(Element.prototype.attachShadow)&&k(Node.prototype.getRootNode),fr=R(lr),dr=lr?function(e){return wn.fromDom(e.dom.getRootNode())}:Kn,hr=function(e){return cr(e)?e:sr(Kn(e))},pr=function(e){var t=dr(e);return cr(t)?H.some(t):H.none()},mr=function(e){return wn.fromDom(e.dom.host)},gr=function(e){if(fr()&&S(e.target)){var t=wn.fromDom(e.target);if(Un(t)&&vr(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return ge(n)}}return H.from(e.target)},vr=function(e){return S(e.dom.shadowRoot)},br=function(e,t){var n=Yn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},yr=function(e,t){var n=er(e);n.fold((function(){var n=Yn(e);n.each((function(e){xr(e,t)}))}),(function(e){br(e,t)}))},wr=function(e,t){var n=ir(e);n.fold((function(){xr(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},xr=function(e,t){e.dom.appendChild(t.dom)},_r=function(e,t){br(e,t),xr(t,e)},Cr=function(e,t){Z(t,(function(t){br(e,t)}))},Sr=function(e,t){Z(t,(function(t){xr(e,t)}))},kr=function(e){e.dom.textContent="",Z(rr(e),(function(e){Er(e)}))},Er=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Or=function(e){var t=rr(e);t.length>0&&Cr(e,t),Er(e)},Ar=function(e){var t=qn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return pr(wn.fromDom(t)).fold((function(){return n.body.contains(t)}),T(Ar,mr))},Tr=function(e,t){var n=function(n,r){return Tr(e+n,t+r)};return{left:e,top:t,translate:n}},Rr=Tr,Nr=function(e){var t=e.getBoundingClientRect();return Rr(t.left,t.top)},Dr=function(e,t){return void 0!==e?e:void 0!==t?t:0},Br=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom)return Rr(n.offsetLeft,n.offsetTop);var i=Dr(null===r||void 0===r?void 0:r.pageYOffset,o.scrollTop),a=Dr(null===r||void 0===r?void 0:r.pageXOffset,o.scrollLeft),u=Dr(o.clientTop,n.clientTop),s=Dr(o.clientLeft,n.clientLeft);return Pr(e).translate(a-s,i-u)},Pr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Rr(r.offsetLeft,r.offsetTop):Ar(e)?Nr(t):Rr(0,0)},jr=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Rr(n,r)},Lr=function(e,t,n){var r=void 0!==n?n.dom:document,o=r.defaultView;o&&o.scrollTo(e,t)},Mr=function(e,t){var n=$t().browser.isSafari();n&&k(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},Ir=function(e){var t=void 0===e?window:e;return $t().browser.isFirefox()?H.none():H.from(t["visualViewport"])},Fr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Vr=function(e){var t=void 0===e?window:e,n=t.document,r=jr(wn.fromDom(n));return Ir(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return Fr(r.left,r.top,n,o)}),(function(e){return Fr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Ur=function(e){return function(t){return!!t&&t.nodeType===e}},qr=function(e){return!!e&&!Object.getPrototypeOf(e)},zr=Ur(1),Hr=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return Y(t,n)}return!1}},$r=function(e,t){var n=t.toLowerCase().split(" ");return function(t){if(zr(t))for(var r=0;r<n.length;r++){var o=t.ownerDocument.defaultView.getComputedStyle(t,null),i=o?o.getPropertyValue(e):null;if(i===n[r])return!0}return!1}},Wr=function(e){return function(t){return zr(t)&&t.hasAttribute(e)}},Kr=function(e,t){return function(n){return zr(n)&&n.getAttribute(e)===t}},Qr=function(e){return zr(e)&&e.hasAttribute("data-mce-bogus")},Gr=function(e){return zr(e)&&"all"===e.getAttribute("data-mce-bogus")},Yr=function(e){return zr(e)&&"TABLE"===e.tagName},Jr=function(e){return function(t){if(zr(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Xr=Hr(["textarea","input"]),Zr=Ur(3),eo=Ur(8),to=Ur(9),no=Ur(11),ro=Hr(["br"]),oo=Hr(["img"]),io=Jr("true"),ao=Jr("false"),uo=Hr(["td","th"]),so=Hr(["video","audio","object","embed"]),co=function(e,t,n){return void 0===n&&(n=D),e.exists((function(e){return n(e,t)}))},lo=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},fo=function(e,t,n){return e.isSome()&&t.isSome()?H.some(n(e.getOrDie(),t.getOrDie())):H.none()},ho=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?H.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):H.none()},po=function(e,t){return e?H.some(t):H.none()},mo=function(e){return void 0!==e.style&&k(e.style.getPropertyValue)},go=function(e,t,n){if(!(v(n)||x(n)||E(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+"")},vo=function(e,t,n){go(e.dom,t,n)},bo=function(e,t){var n=e.dom;_e(t,(function(e,t){go(n,t,e)}))},yo=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},wo=function(e,t){return H.from(yo(e,t))},xo=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},_o=function(e,t){e.dom.removeAttribute(t)},Co=function(e){return oe(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},So=function(e,t,n){if(!v(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);mo(e)&&e.style.setProperty(t,n)},ko=function(e,t){var n=e.dom;_e(t,(function(e,t){So(n,t,e)}))},Eo=function(e,t){var n=e.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(t);return""!==o||Ar(e)?o:Oo(n,t)},Oo=function(e,t){return mo(e)?e.style.getPropertyValue(t):""},Ao=function(e,t){var n=e.dom,r=Oo(n,t);return H.from(r).filter((function(e){return e.length>0}))},To=function(e){var t={},n=e.dom;if(mo(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);t[o]=n.style[o]}return t},Ro=function(e){return e.dom.offsetWidth},No=$t().browser,Do=function(e){return ae(e,Un)},Bo=function(e){return No.isFirefox()&&"table"===Mn(e)?Do(rr(e)).filter((function(e){return"caption"===Mn(e)})).bind((function(e){return Do(nr(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,o=e.dom.offsetHeight;return n<=r?-o:0}))})).getOr(0):0},Po=function(e,t){return e.children&&Y(e.children,t)},jo=function(e,t,n){var r=0,o=0,i=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Eo(wn.fromDom(e),"position")){var a=t.getBoundingClientRect();return r=a.left+(i.documentElement.scrollLeft||e.scrollLeft)-i.documentElement.clientLeft,o=a.top+(i.documentElement.scrollTop||e.scrollTop)-i.documentElement.clientTop,{x:r,y:o}}var u=t;while(u&&u!==n&&u.nodeType&&!Po(u,n)){var s=u;r+=s.offsetLeft||0,o+=s.offsetTop||0,u=s.offsetParent}u=t.parentNode;while(u&&u!==n&&u.nodeType&&!Po(u,n))r-=u.scrollLeft||0,o-=u.scrollTop||0,u=u.parentNode;o+=Bo(wn.fromDom(t))}return{x:r,y:o}},Lo={},Mo={exports:Lo};(function(e,n,r,o){(function(t,o){"object"===typeof n&&"undefined"!==typeof r?r.exports=o():"function"===typeof e&&e.amd?e(o):(t="undefined"!==typeof globalThis?globalThis:t||self,t.EphoxContactWrapper=o())})(this,(function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},n={exports:{}};(function(t){(function(e){var n=setTimeout;function r(){}function o(e,t){return function(){e.apply(t,arguments)}}function i(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=[],f(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(o){return void s(t.promise,o)}u(t.promise,r)}else(1===e._state?u:s)(t.promise,e._value)}))):e._deferreds.push(t)}function u(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 i)return e._state=3,e._value=t,void c(e);if("function"===typeof n)return void f(o(n,t),e)}e._state=1,e._value=t,c(e)}catch(r){s(e,r)}}function s(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,u(t,e))}),(function(e){n||(n=!0,s(t,e))}))}catch(r){if(n)return;n=!0,s(t,r)}}i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i((function(e,n){if(0===t.length)return e([]);var r=t.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var u=a.then;if("function"===typeof u)return void u.call(a,(function(e){o(i,e)}),n)}t[i]=a,0===--r&&e(t)}catch(s){n(s)}}for(var i=0;i<t.length;i++)o(i,t[i])}))},i.resolve=function(e){return e&&"object"===typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)}))},i._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},t.exports?t.exports=i:e.Promise||(e.Promise=i)})(e)})(n);var r=n.exports,o=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),i={boltExport:o.Promise||r};return i}))})(void 0,Lo,Mo);var Io=Mo.exports.boltExport,Fo=function(e){var t=H.none(),n=[],r=function(e){return Fo((function(t){o((function(n){t(e(n))}))}))},o=function(e){a()?s(e):n.push(e)},i=function(e){a()||(t=H.some(e),u(n),n=[])},a=function(){return t.isSome()},u=function(e){Z(e,s)},s=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(i),{get:o,map:r,isReady:a}},Vo=function(e){return Fo((function(t){t(e)}))},Uo={nu:Fo,pure:Vo},qo=function(e){setTimeout((function(){throw e}),0)},zo=function(e){var t=function(t){e().then(t,qo)},n=function(t){return zo((function(){return e().then(t)}))},r=function(t){return zo((function(){return e().then((function(e){return t(e).toPromise()}))}))},o=function(t){return zo((function(){return e().then((function(){return t.toPromise()}))}))},i=function(){return Uo.nu(t)},a=function(){var t=null;return zo((function(){return null===t&&(t=e()),t}))},u=e;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:u,get:t}},Ho=function(e){return zo((function(){return new Io(e)}))},$o=function(e){return zo((function(){return Io.resolve(e)}))},Wo={nu:Ho,pure:$o},Ko=function(e,t){return t((function(t){var n=[],r=0,o=function(o){return function(i){n[o]=i,r++,r>=e.length&&t(n)}};0===e.length?t([]):Z(e,(function(e,t){e.get(o(t))}))}))},Qo=function(e){return Ko(e,Wo.nu)},Go=function(e){var t=function(t){return Go(e)},n=function(t){return Go(e)},r=function(t){return Go(t(e))},o=function(t){return Go(e)},i=function(t){t(e)},a=function(t){return t(e)},u=function(t,n){return n(e)},s=function(t){return t(e)},c=function(t){return t(e)},l=function(){return H.some(e)};return{isValue:F,isError:I,getOr:R(e),getOrThunk:R(e),getOrDie:R(e),or:t,orThunk:n,fold:u,map:r,mapError:o,each:i,bind:a,exists:s,forall:c,toOptional:l}},Yo=function(e){var t=function(e){return e()},n=function(){return j(String(e))()},r=N,o=function(e){return e()},i=function(t){return Yo(e)},a=function(t){return Yo(t(e))},u=function(t){return Yo(e)},s=function(t,n){return t(e)};return{isValue:I,isError:F,getOr:N,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:s,map:i,mapError:a,each:O,bind:u,exists:I,forall:F,toOptional:H.none}},Jo=function(e,t){return e.fold((function(){return Yo(t)}),Go)},Xo={value:Go,error:Yo,fromOption:Jo},Zo=function(e){if(!y(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 Z(e,(function(r,o){var i=we(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],u=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(!y(u))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 i=n.length;if(i!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+i);var s=function(e){var r=we(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var o=le(t,(function(e){return Y(r,e)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};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);var i=t[o];return i.apply(null,n)},match:s,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},ei={generate:Zo};ei.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var ti=function(e){return e.fold(N,N)};function ni(e,t,n,r,o){return e(n,r)?H.some(n):k(o)&&o(n)?H.none():t(n,r,o)}var ri,oi,ii,ai,ui,si,ci,li,fi,di,hi,pi,mi,gi,vi,bi,yi,wi,xi,_i=function(e,t,n){var r=e.dom,o=k(n)?n:I;while(r.parentNode){r=r.parentNode;var i=wn.fromDom(r);if(t(i))return H.some(i);if(o(i))break}return H.none()},Ci=function(e,t,n){var r=function(e,t){return t(e)};return ni(r,_i,e,t,n)},Si=function(e,t){var n=e.dom;return n.parentNode?ki(wn.fromDom(n.parentNode),(function(n){return!Bn(e,n)&&t(n)})):H.none()},ki=function(e,t){var n=function(e){return t(wn.fromDom(e))},r=ae(e.dom.childNodes,n);return r.map(wn.fromDom)},Ei=function(e,t,n){return _i(e,(function(e){return Tn(e,t)}),n)},Oi=function(e,t){return Dn(t,e)},Ai=function(e,t,n){var r=function(e,t){return Tn(e,t)};return ni(r,Ei,e,t,n)},Ti=window.Promise?window.Promise:Io,Ri=function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],o=function(e){window.setTimeout(e,0)},i=0;i<r.length&&!n;i++)n=window[r[i]+"RequestAnimationFrame"];n||(n=o),n(e,t)},Ni=function(e,t){return"number"!==typeof t&&(t=0),setTimeout(e,t)},Di=function(e,t){return"number"!==typeof t&&(t=1),setInterval(e,t)},Bi=function(e){return clearTimeout(e)},Pi=function(e){return clearInterval(e)},ji=function(e,t){var n,r=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];clearTimeout(n),n=Ni((function(){e.apply(this,r)}),t)};return r.stop=function(){clearTimeout(n)},r},Li={requestAnimationFrame:function(e,t){ri?ri.then(e):ri=new Ti((function(e){t||(t=document.body),Ri(e,t)})).then(e)},setTimeout:Ni,setInterval:Di,setEditorTimeout:function(e,t,n){return Ni((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=Di((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:ji,throttle:ji,clearInterval:Pi,clearTimeout:Bi},Mi=function(e,t){void 0===t&&(t={});var n=0,r={},o=wn.fromDom(e),i=Kn(o),a=t.maxLoadTime||5e3,u=function(e){t.referrerPolicy=e},s=function(e){xr(hr(o),e)},c=function(e){var t=hr(o);Oi(t,"#"+e).each(Er)},l=function(e){return Ne(r,e).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))},f=function(n,o,u){var c,f=pn._addCacheSuffix(n),d=l(f);r[f]=d,d.count++;var h=function(e,t){var n=e.length;while(n--)e[n]();d.status=t,d.passed=[],d.failed=[],c&&(c.onload=null,c.onerror=null,c=null)},p=function(){return h(d.passed,2)},m=function(){return h(d.failed,3)},g=function(e,t){e()||(Date.now()-y<a?Li.setTimeout(t):m())},v=function(){g((function(){var t=e.styleSheets,n=t.length;while(n--){var r=t[n],o=r.ownerNode;if(o&&o.id===c.id)return p(),!0}return!1}),v)};if(o&&d.passed.push(o),u&&d.failed.push(u),1!==d.status)if(2!==d.status)if(3!==d.status){d.status=1;var b=wn.fromTag("link",i.dom);bo(b,{rel:"stylesheet",type:"text/css",id:d.id});var y=Date.now();t.contentCssCors&&vo(b,"crossOrigin","anonymous"),t.referrerPolicy&&vo(b,"referrerpolicy",t.referrerPolicy),c=b.dom,c.onload=v,c.onerror=m,s(b),vo(b,"href",f)}else m();else p()},d=function(e){return Wo.nu((function(t){f(e,A(t,R(Xo.value(e))),A(t,R(Xo.error(e))))}))},h=function(e,t,n){Qo(X(e,d)).get((function(e){var r=te(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(ti)):t(r.pass.map(ti))}))},p=function(e){var t=pn._addCacheSuffix(e);Ne(r,t).each((function(e){var n=--e.count;0===n&&(delete r[t],c(e.id))}))},m=function(e){Z(e,(function(e){p(e)}))};return{load:f,loadAll:h,unload:p,unloadAll:m,_setReferrerPolicy:u}},Ii=function(){var e=new WeakMap,t=function(t,n){var r=dr(t),o=r.dom;return H.from(e.get(o)).getOrThunk((function(){var t=Mi(o,n);return e.set(o,t),t}))};return{forElement:t}},Fi=Ii(),Vi=function(){function e(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)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(o=e[n],o)return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n],o)return o}}},e.prototype.findPreviousNode=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}if(i=e.parentNode,i&&i!==this.rootNode)return i}},e}(),Ui=["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"],qi=["td","th"],zi=["thead","tbody","tfoot"],Hi=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],$i=["h1","h2","h3","h4","h5","h6"],Wi=["li","dd","dt"],Ki=["ul","ol","dl"],Qi=["pre","script","textarea","style"],Gi=function(e){var t;return function(n){return t=t||he(e,F),De(t,Mn(n))}},Yi=Gi($i),Ji=Gi(Ui),Xi=function(e){return"table"===Mn(e)},Zi=function(e){return Un(e)&&!Ji(e)},ea=function(e){return Un(e)&&"br"===Mn(e)},ta=Gi(Hi),na=Gi(Ki),ra=Gi(Wi),oa=Gi(zi),ia=Gi(qi),aa=Gi(Qi),ua=function(e,t,n){return Ei(e,t,n).isSome()},sa="\ufeff",ca=" ",la=function(e){return e===sa},fa=function(e){return e.replace(/\uFEFF/g,"")},da=sa,ha=la,pa=fa,ma=zr,ga=Zr,va=function(e){return ga(e)&&(e=e.parentNode),ma(e)&&e.hasAttribute("data-mce-caret")},ba=function(e){return ga(e)&&ha(e.data)},ya=function(e){return va(e)||ba(e)},wa=function(e){return e.firstChild!==e.lastChild||!ro(e.firstChild)},xa=function(e,t){var n=e.ownerDocument,r=n.createTextNode(da),o=e.parentNode;if(t){i=e.previousSibling;if(ga(i)){if(ya(i))return i;if(Oa(i))return i.splitText(i.data.length-1)}o.insertBefore(r,e)}else{var i=e.nextSibling;if(ga(i)){if(ya(i))return i;if(Ea(i))return i.splitText(1),i}e.nextSibling?o.insertBefore(r,e.nextSibling):o.appendChild(r)}return r},_a=function(e){var t=e.container();return!!Zr(t)&&(t.data.charAt(e.offset())===da||e.isAtStart()&&ba(t.previousSibling))},Ca=function(e){var t=e.container();return!!Zr(t)&&(t.data.charAt(e.offset()-1)===da||e.isAtEnd()&&ba(t.nextSibling))},Sa=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},ka=function(e,t,n){var r=t.ownerDocument,o=r.createElement(e);o.setAttribute("data-mce-caret",n?"before":"after"),o.setAttribute("data-mce-bogus","all"),o.appendChild(Sa());var i=t.parentNode;return n?i.insertBefore(o,t):t.nextSibling?i.insertBefore(o,t.nextSibling):i.appendChild(o),o},Ea=function(e){return ga(e)&&e.data[0]===da},Oa=function(e){return ga(e)&&e.data[e.data.length-1]===da},Aa=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];Qr(n)&&n.parentNode.removeChild(n)},Ta=function(e){return e&&e.hasAttribute("data-mce-caret")?(Aa(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},Ra=function(e){return va(e.startContainer)},Na=io,Da=ao,Ba=ro,Pa=Zr,ja=Hr(["script","style","textarea"]),La=Hr(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Ma=Hr(["table"]),Ia=ya,Fa=function(e){return!Ia(e)&&(Pa(e)?!ja(e.parentNode):La(e)||Ba(e)||Ma(e)||Ua(e))},Va=function(e){return zr(e)&&"true"===e.getAttribute("unselectable")},Ua=function(e){return!1===Va(e)&&Da(e)},qa=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Ua(e))return!1;if(Na(e))return!0}return!0},za=function(e){return!!Ua(e)&&!0!==oe(be(e.getElementsByTagName("*")),(function(e,t){return e||Na(t)}),!1)},Ha=function(e){return La(e)||za(e)},$a=function(e,t){return Fa(e)&&qa(e,t)},Wa=/^[ \t\r\n]*$/,Ka=function(e){return Wa.test(e)},Qa=function(e,t){var n=wn.fromDom(t),r=wn.fromDom(e);return ua(r,"pre,code",B(Bn,n))},Ga=function(e,t){return Zr(e)&&Ka(e.data)&&!1===Qa(e,t)},Ya=function(e){return zr(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},Ja=function(e,t){return Fa(e)&&!1===Ga(e,t)||Ya(e)||Xa(e)},Xa=Wr("data-mce-bookmark"),Za=Wr("data-mce-bogus"),eu=Kr("data-mce-bogus","all"),tu=function(e,t){var n=0;if(Ja(e,e))return!1;var r=e.firstChild;if(!r)return!0;var o=new Vi(r,e);do{if(t){if(eu(r)){r=o.next(!0);continue}if(Za(r)){r=o.next();continue}}if(ro(r))n++,r=o.next();else{if(Ja(r,e))return!1;r=o.next()}}while(r);return n<=1},nu=function(e,t){return void 0===t&&(t=!0),tu(e.dom,t)},ru=function(e){return"span"===e.nodeName.toLowerCase()},ou=function(e,t){return S(e)&&(Ja(e,t)||Zi(wn.fromDom(e)))},iu=function(e,t){var n=new Vi(e,t).prev(!1),r=new Vi(e,t).next(!1),o=_(n)||ou(n,t),i=_(r)||ou(r,t);return o&&i},au=function(e){return ru(e)&&"bookmark"===e.getAttribute("data-mce-type")},uu=function(e,t){return Zr(e)&&e.data.length>0&&iu(e,t)},su=function(e){return!!zr(e)&&e.childNodes.length>0},cu=function(e){return no(e)||to(e)},lu=function(e,t,n){var r=n||t;if(zr(t)&&au(t))return t;for(var o=t.childNodes,i=o.length-1;i>=0;i--)lu(e,o[i],r);if(zr(t)){var a=t.childNodes;1===a.length&&au(a[0])&&t.parentNode.insertBefore(a[0],t)}return cu(t)||Ja(t,r)||su(t)||uu(t,r)||e.remove(t),t},fu=pn.makeMap,du=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hu=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pu=/[<>&\"\']/g,mu=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,gu={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:"Ÿ"},vu={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},bu={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},yu=function(e){var t=wn.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},wu=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),vu[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}},xu=wu("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),_u=function(e,t){return e.replace(t?du:hu,(function(e){return vu[e]||e}))},Cu=function(e){return(""+e).replace(pu,(function(e){return vu[e]||e}))},Su=function(e,t){return e.replace(t?du:hu,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":vu[e]||"&#"+e.charCodeAt(0)+";"}))},ku=function(e,t,n){return n=n||xu,e.replace(t?du:hu,(function(e){return vu[e]||n[e]||e}))},Eu=function(e,t){var n=wu(t)||xu,r=function(e,t){return e.replace(t?du:hu,(function(e){return void 0!==vu[e]?vu[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))},o=function(e,t){return ku(e,t,n)},i=fu(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?o:ku:i.numeric?Su:_u},Ou=function(e){return e.replace(mu,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):gu[t]||String.fromCharCode(t)):bu[e]||xu[e]||yu(e)}))},Au={encodeRaw:_u,encodeAllRaw:Cu,encodeNumeric:Su,encodeNamed:ku,getEncodeFunc:Eu,decode:Ou},Tu={},Ru={},Nu=pn.makeMap,Du=pn.each,Bu=pn.extend,Pu=pn.explode,ju=pn.inArray,Lu=function(e,t){return e=pn.trim(e),e?e.split(t||" "):[]},Mu=function(e){var t,n,r,o,i,a,u={},s=function(e,n,r){var o,i,a,s=function(e,t){var n,r,o={};for(n=0,r=e.length;n<r;n++)o[e[n]]=t||{};return o};r=r||[],n=n||"","string"===typeof r&&(r=Lu(r));var c=Lu(e);o=c.length;while(o--)i=Lu([t,n].join(" ")),a={attributes:s(i),attributesOrder:i,children:s(r,Ru)},u[c[o]]=a},c=function(e,t){var n,r,o,i,a=Lu(e);n=a.length;var s=Lu(t);while(n--)for(r=u[a[n]],o=0,i=s.length;o<i;o++)r.attributes[s[o]]={},r.attributesOrder.push(s[o])};return Tu[e]?Tu[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="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"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),Du(Lu(a),(function(e){s(e,"",r)})),i="center dir isindex noframes",n=[n,i].join(" "),o=[n,r].join(" "),Du(Lu(i),(function(e){s(e,"",o)}))),o=o||[n,r].join(" "),s("html","manifest","head body"),s("head","","base command link meta noscript script style title"),s("title hr noscript br"),s("base","href target"),s("link","href rel media hreflang type sizes hreflang"),s("meta","name http-equiv content charset"),s("style","media type scoped"),s("script","src async defer type charset"),s("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",o),s("address dt dd div caption","",o),s("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","",r),s("blockquote","cite",o),s("ol","reversed start type","li"),s("ul","","li"),s("li","value",o),s("dl","","dt dd"),s("a","href target rel media hreflang type",r),s("q","cite",r),s("ins del","cite datetime",o),s("img","src sizes srcset alt usemap ismap width height"),s("iframe","src name width height",o),s("embed","src type width height"),s("object","data type typemustmatch name usemap form width height",[o,"param"].join(" ")),s("param","name value"),s("map","name",[o,"area"].join(" ")),s("area","alt coords shape href target rel media hreflang type"),s("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),s("colgroup","span","col"),s("col","span"),s("tbody thead tfoot","","tr"),s("tr","","td th"),s("td","colspan rowspan headers",o),s("th","colspan rowspan headers scope abbr",o),s("form","accept-charset action autocomplete enctype method name novalidate target",o),s("fieldset","disabled form name",[o,"legend"].join(" ")),s("label","form for",r),s("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"),s("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?o:r),s("select","disabled form multiple name required size","option optgroup"),s("optgroup","disabled label","option"),s("option","disabled label selected value"),s("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),s("menu","type label",[o,"li"].join(" ")),s("noscript","",o),"html4"!==e&&(s("wbr"),s("ruby","",[r,"rt rp"].join(" ")),s("figcaption","",o),s("mark rt rp summary bdi","",r),s("canvas","width height",o),s("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[o,"track source"].join(" ")),s("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[o,"track source"].join(" ")),s("picture","","img source"),s("source","src srcset type media sizes"),s("track","kind src srclang label default"),s("datalist","",[r,"option"].join(" ")),s("article section nav aside main header footer","",o),s("hgroup","","h1 h2 h3 h4 h5 h6"),s("figure","",[o,"figcaption"].join(" ")),s("time","datetime",r),s("dialog","open",o),s("command","type label icon disabled checked radiogroup command"),s("output","for form name",r),s("progress","value max",r),s("meter","value min max low high optimum",r),s("details","open",[o,"summary"].join(" ")),s("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(c("script","language xml:space"),c("style","xml:space"),c("object","declare classid code codebase codetype archive standby align border hspace vspace"),c("embed","align name hspace vspace"),c("param","valuetype type"),c("a","charset name rev shape coords"),c("br","clear"),c("applet","codebase archive code object alt name width height align hspace vspace"),c("img","name longdesc align border hspace vspace"),c("iframe","longdesc frameborder marginwidth marginheight scrolling align"),c("font basefont","size color face"),c("input","usemap align"),c("select"),c("textarea"),c("h1 h2 h3 h4 h5 h6 div p legend caption","align"),c("ul","type compact"),c("li","type"),c("ol dl menu dir","compact"),c("pre","width xml:space"),c("hr","align noshade size width"),c("isindex","prompt"),c("table","summary width frame rules cellspacing cellpadding align bgcolor"),c("col","width align char charoff valign"),c("colgroup","width align char charoff valign"),c("thead","align char charoff valign"),c("tr","align char charoff valign bgcolor"),c("th","axis align char charoff valign nowrap bgcolor width height"),c("form","accept"),c("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),c("tfoot","align char charoff valign"),c("tbody","align char charoff valign"),c("area","nohref"),c("body","background bgcolor text link vlink alink")),"html4"!==e&&(c("input button select textarea","autofocus"),c("input textarea","placeholder"),c("a","download"),c("link script img","crossorigin"),c("img","loading"),c("iframe","sandbox seamless allowfullscreen loading")),Du(Lu("a form meter progress dfn"),(function(e){u[e]&&delete u[e].children[e]})),delete u.caption.children.table,delete u.script,Tu[e]=u,u)},Iu=function(e,t){var n;return e&&(n={},"string"===typeof e&&(e={"*":e}),Du(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?Nu(e,/[, ]/):Pu(e,/[, ]/)}))),n},Fu=function(e){var t={},n={},r=[],o={},i={},a=function(t,n,r){var o=e[t];return o?o=Nu(o,/[, ]/,Nu(o.toUpperCase(),/[, ]/)):(o=Tu[t],o||(o=Nu(n," ",Nu(n.toUpperCase()," ")),o=Bu(o,r),Tu[t]=o)),o};e=e||{};var u=Mu(e.schema);!1===e.verify_html&&(e.valid_elements="*[*]");var s=Iu(e.valid_styles),c=Iu(e.invalid_styles,"map"),l=Iu(e.valid_classes,"map"),f=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),d=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),h=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),p=a("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),m="td th iframe video audio object script code",g=a("non_empty_elements",m+" pre",h),v=a("move_caret_before_on_enter_elements",m+" table",h),b=a("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"),y=a("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",b),w=a("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp");Du((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){i[e]=new RegExp("</"+e+"[^>]*>","gi")}));var x=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},_=function(e){var n,o,i,a,u,s,c,l,f,d,h,p,m,g,v,b,y,w,_=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,C=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,S=/[*?+]/;if(e){var k=Lu(e,",");for(t["@"]&&(b=t["@"].attributes,y=t["@"].attributesOrder),n=0,o=k.length;n<o;n++)if(u=_.exec(k[n]),u){if(g=u[1],f=u[2],v=u[3],l=u[5],p={},m=[],s={attributes:p,attributesOrder:m},"#"===g&&(s.paddEmpty=!0),"-"===g&&(s.removeEmpty=!0),"!"===u[4]&&(s.removeEmptyAttrs=!0),b&&(_e(b,(function(e,t){p[t]=e})),m.push.apply(m,y)),l)for(l=Lu(l,"|"),i=0,a=l.length;i<a;i++)if(u=C.exec(l[i]),u){if(c={},h=u[1],d=u[2].replace(/[\\:]:/g,":"),g=u[3],w=u[4],"!"===h&&(s.attributesRequired=s.attributesRequired||[],s.attributesRequired.push(d),c.required=!0),"-"===h){delete p[d],m.splice(ju(m,d),1);continue}g&&("="===g&&(s.attributesDefault=s.attributesDefault||[],s.attributesDefault.push({name:d,value:w}),c.defaultValue=w),":"===g&&(s.attributesForced=s.attributesForced||[],s.attributesForced.push({name:d,value:w}),c.forcedValue=w),"<"===g&&(c.validValues=Nu(w,"?"))),S.test(d)?(s.attributePatterns=s.attributePatterns||[],c.pattern=x(d),s.attributePatterns.push(c)):(p[d]||m.push(d),p[d]=c)}b||"@"!==f||(b=p,y=m),v&&(s.outputName=f,t[v]=s),S.test(f)?(s.pattern=x(f),r.push(s)):t[f]=s}}},C=function(e){t={},r=[],_(e),Du(u,(function(e,t){n[t]=e.children}))},S=function(e){var r=/^(~)?(.+)$/;e&&(Tu.text_block_elements=Tu.block_elements=null,Du(Lu(e,","),(function(e){var i=r.exec(e),a="~"===i[1],u=a?"span":"div",s=i[2];if(n[s]=n[u],o[s]=u,a||(y[s.toUpperCase()]={},y[s]={}),!t[s]){var c=t[u];c=Bu({},c),delete c.removeEmptyAttrs,delete c.removeEmpty,t[s]=c}Du(n,(function(e,t){e[u]&&(n[t]=e=Bu({},n[t]),e[s]=e[u])}))})))},k=function(t){var r=/^([+\-]?)([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]+)\[([^\]]+)]$/;Tu[e.schema]=null,t&&Du(Lu(t,","),(function(e){var t,o,i=r.exec(e);i&&(o=i[1],t=o?n[i[2]]:n[i[2]]={"#comment":{}},t=n[i[2]],Du(Lu(i[3],"|"),(function(e){"-"===o?delete t[e]:t[e]={}})))}))},E=function(e){var n,o=t[e];if(o)return o;n=r.length;while(n--)if(o=r[n],o.pattern.test(e))return o};e.valid_elements?C(e.valid_elements):(Du(u,(function(e,r){t[r]={attributes:e.attributes,attributesOrder:e.attributesOrder},n[r]=e.children})),"html5"!==e.schema&&Du(Lu("strong/b em/i"),(function(e){var n=Lu(e,"/");t[n[1]].outputName=n[0]})),Du(Lu("ol ul sub sup blockquote span font a table tbody strong em b i"),(function(e){t[e]&&(t[e].removeEmpty=!0)})),Du(Lu("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){t[e].paddEmpty=!0})),Du(Lu("span"),(function(e){t[e].removeEmptyAttrs=!0}))),S(e.custom_elements),k(e.valid_children),_(e.extended_valid_elements),k("+ol[ul|ol],+ul[ul|ol]"),Du({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,n){t[n]&&(t[n].parentsRequired=Lu(e))})),e.invalid_elements&&Du(Pu(e.invalid_elements),(function(e){t[e]&&delete t[e]})),E("span")||_("span[!data-mce-type|*]");var O=R(s),A=R(c),T=R(l),N=R(p),D=R(y),B=R(b),P=R(w),j=R(h),L=R(d),M=R(g),I=R(v),F=R(f),V=R(i),U=function(e,t){var r=n[e.toLowerCase()];return!(!r||!r[t.toLowerCase()])},q=function(e,t){var n,r,o=E(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(e))return!0}}return!1},z=R(o);return{children:n,elements:t,getValidStyles:O,getValidClasses:T,getBlockElements:D,getInvalidStyles:A,getShortEndedElements:j,getTextBlockElements:B,getTextInlineElements:P,getBoolAttrs:N,getElementRule:E,getSelfClosingElements:L,getNonEmptyElements:M,getMoveCaretBeforeOnEnterElements:I,getWhiteSpaceElements:F,getSpecialElements:V,isValidChild:U,isValid:q,getCustomElements:z,addValidElements:_,setValidElements:C,addCustomElements:S,addValidChildren:k}},Vu=function(e,t,n,r){var o=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+o(t)+o(n)+o(r)},Uu=function(e,t){var n,r,o,i=this,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,u=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,s=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,l={},f=sa;e=e||{},t&&(r=t.getValidStyles(),o=t.getInvalidStyles());var d=("\\\" \\' \\; \\: ; : "+f).split(" ");for(n=0;n<d.length;n++)l[d[n]]=f+n,l[f+n]=d[n];return{toHex:function(e){return e.replace(a,Vu)},parse:function(t){var r,o,d,h,p={},m=e.url_converter,g=e.url_converter_scope||i,v=function(e,t,r){var o=p[e+"-top"+t];if(o){var i=p[e+"-right"+t];if(i){var a=p[e+"-bottom"+t];if(a){var u=p[e+"-left"+t];if(u){var s=[o,i,a,u];n=s.length-1;while(n--)if(s[n]!==s[n+1])break;n>-1&&r||(p[e+t]=-1===n?s[0]:s.join(" "),delete p[e+"-top"+t],delete p[e+"-right"+t],delete p[e+"-bottom"+t],delete p[e+"-left"+t])}}}}},b=function(e){var t,n=p[e];if(n){n=n.split(" "),t=n.length;while(t--)if(n[t]!==n[0])return!1;return p[e]=n[0],!0}},y=function(e,t,n,r){b(t)&&b(n)&&b(r)&&(p[e]=p[t]+" "+p[n]+" "+p[r],delete p[t],delete p[n],delete p[r])},w=function(e){return h=!0,l[e]},x=function(e,t){return h&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return l[e]}))),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},_=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},C=function(e){return e.replace(/\\[0-9a-f]+/gi,_)},S=function(t,n,r,o,i,a){if(i=i||a,i)return i=x(i),"'"+i.replace(/\'/g,"\\'")+"'";if(n=x(n||r||o),!e.allow_script_urls){var u=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(u))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(u))return""}return m&&(n=m.call(g,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,w).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,w)}));while(r=s.exec(t))if(s.lastIndex=r.index+r[0].length,o=r[1].replace(c,"").toLowerCase(),d=r[2].replace(c,""),o&&d){if(o=C(o),d=C(d),-1!==o.indexOf(f)||-1!==o.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===o||/expression\s*\(|\/\*|\*\//.test(d)))continue;"font-weight"===o&&"700"===d?d="bold":"color"!==o&&"background-color"!==o||(d=d.toLowerCase()),d=d.replace(a,Vu),d=d.replace(u,S),p[o]=h?x(d,!0):d}v("border","",!0),v("border","-width"),v("border","-color"),v("border","-style"),v("padding",""),v("margin",""),y("border","border-width","border-style","border-color"),"medium none"===p.border&&delete p.border,"none"===p["border-image"]&&delete p["border-image"]}return p},serialize:function(e,t){var n="",i=function(t){var o,i=r[t];if(i)for(var a=0,u=i.length;a<u;a++)t=i[a],o=e[t],o&&(n+=(n.length>0?" ":"")+t+": "+o+";")},a=function(e,t){var n=o["*"];return(!n||!n[e])&&(n=o[t],!(n&&n[e]))};return t&&r?(i("*"),i(t)):_e(e,(function(e,r){!e||o&&!a(r,t)||(n+=(n.length>0?" ":"")+r+": "+e+";")})),n}}},qu={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},zu=function(e){return e instanceof Event||k(e.initEvent)},Hu=function(e){return e.isDefaultPrevented===F||e.isDefaultPrevented===I},$u=function(e){return C(e.preventDefault)||zu(e)},Wu=function(e,t){var n=null!==t&&void 0!==t?t:{};for(var r in e)De(qu,r)||(n[r]=e[r]);return S(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n},Ku=function(e,t,n,r){var o,i=Wu(t,r);return i.type=e,C(i.target)&&(i.target=null!==(o=i.srcElement)&&void 0!==o?o:n),$u(t)&&(i.preventDefault=function(){i.defaultPrevented=!0,i.isDefaultPrevented=F,k(t.preventDefault)?t.preventDefault():zu(t)&&(t.returnValue=!1)},i.stopPropagation=function(){i.cancelBubble=!0,i.isPropagationStopped=F,k(t.stopPropagation)?t.stopPropagation():zu(t)&&(t.cancelBubble=!0)},i.stopImmediatePropagation=function(){i.isImmediatePropagationStopped=F,i.stopPropagation()},Hu(i)||(i.isDefaultPrevented=!0===i.defaultPrevented?F:I,i.isPropagationStopped=!0===i.cancelBubble?F:I,i.isImmediatePropagationStopped=I)),i},Qu="mce-data-",Gu=/^(?:mouse|contextmenu)|click/,Yu=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Ju=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},Xu=function(e){return S(e)&&Gu.test(e.type)},Zu=function(e,t){var n=Ku(e.type,e,document,t);if(Xu(e)&&_(e.pageX)&&!_(e.clientX)){var r=n.target.ownerDocument||document,o=r.documentElement,i=r.body,a=n;a.pageX=e.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),a.pageY=e.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)}return _(n.metaKey)&&(n.metaKey=!1),n},es=function(e,t,n){var r=e.document,o={type:"ready"};if(n.domLoaded)t(o);else{var i=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){Ju(e,"DOMContentLoaded",a),Ju(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(o)),e=null};i()?a():Yu(e,"DOMContentLoaded",a),n.domLoaded||Yu(e,"load",a)}},ts=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Qu+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return e.prototype.bind=function(e,t,n,r){var o,i,a,u,s,c,l,f=this,d=window,h=function(e){f.executeHandlers(Zu(e||d.event),o)};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;var p=t.split(" ");a=p.length;while(a--)u=p[a],c=h,s=l=!1,"DOMContentLoaded"===u&&(u="ready"),f.domLoaded&&"ready"===u&&"complete"===e.readyState?n.call(r,Zu({type:u})):(f.hasMouseEnterLeave||(s=f.mouseEnterLeave[u],s&&(c=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else while(n&&n!==t)n=n.parentNode;n||(e=Zu(e||d.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,f.executeHandlers(e,o))})),f.hasFocusIn||"focusin"!==u&&"focusout"!==u||(l=!0,s="focusin"===u?"focus":"blur",c=function(e){e=Zu(e||d.event),e.type="focus"===e.type?"focusin":"focusout",f.executeHandlers(e,o)}),i=f.events[o][u],i?"ready"===u&&f.domLoaded?n(Zu({type:u})):i.push({func:n,scope:r}):(f.events[o][u]=i=[{func:n,scope:r}],i.fakeName=s,i.capture=l,i.nativeHandler=c,"ready"===u?es(e,c,f):Yu(e,s||u,c,l)));return e=i=null,n}},e.prototype.unbind=function(e,t,n){var r,o,i,a,u;if(!e||3===e.nodeType||8===e.nodeType)return this;var s=e[this.expando];if(s){if(u=this.events[s],t){var c=t.split(" ");o=c.length;while(o--)if(a=c[o],r=u[a],r){if(n){i=r.length;while(i--)if(r[i].func===n){var l=r.nativeHandler,f=r.fakeName,d=r.capture;r=r.slice(0,i).concat(r.slice(i+1)),r.nativeHandler=l,r.fakeName=f,r.capture=d,u[a]=r}}n&&0!==r.length||(delete u[a],Ju(e,r.fakeName||a,r.nativeHandler,r.capture))}}else _e(u,(function(t,n){Ju(e,t.fakeName||n,t.nativeHandler,t.capture)})),u={};for(a in u)if(De(u,a))return this;delete this.events[s];try{delete e[this.expando]}catch(h){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var o=Zu({type:t,target:e},n);do{r=e[this.expando],r&&this.executeHandlers(o,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!o.isPropagationStopped());return this},e.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.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;while(t--)e=n[t],e[this.expando]&&this.unbind(e)}return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n=this.events[t],r=n&&n[e.type];if(r)for(var o=0,i=r.length;o<i;o++){var a=r[o];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},e.Event=new e,e}(),ns="sizzle"+-new Date,rs=window.document,os=0,is=0,as=Vs(),us=Vs(),ss=Vs(),cs=function(e,t){return e===t&&(hi=!0),0},ls="undefined",fs=1<<31,ds={}.hasOwnProperty,hs=[],ps=hs.pop,ms=hs.push,gs=hs.push,vs=hs.slice,bs=hs.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},ys="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ws="[\\x20\\t\\r\\n\\f]",xs="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",_s="\\["+ws+"*("+xs+")(?:"+ws+"*([*^$|!~]?=)"+ws+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+xs+"))|)"+ws+"*\\]",Cs=":("+xs+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+_s+")*)|.*)\\)|)",Ss=new RegExp("^"+ws+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ws+"+$","g"),ks=new RegExp("^"+ws+"*,"+ws+"*"),Es=new RegExp("^"+ws+"*([>+~]|"+ws+")"+ws+"*"),Os=new RegExp("="+ws+"*([^\\]'\"]*?)"+ws+"*\\]","g"),As=new RegExp(Cs),Ts=new RegExp("^"+xs+"$"),Rs={ID:new RegExp("^#("+xs+")"),CLASS:new RegExp("^\\.("+xs+")"),TAG:new RegExp("^("+xs+"|[*])"),ATTR:new RegExp("^"+_s),PSEUDO:new RegExp("^"+Cs),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ws+"*(even|odd|(([+-]|)(\\d*)n|)"+ws+"*(?:([+-]|)"+ws+"*(\\d+)|))"+ws+"*\\)|)","i"),bool:new RegExp("^(?:"+ys+")$","i"),needsContext:new RegExp("^"+ws+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ws+"*((?:-\\d)?\\d*)"+ws+"*\\)|)(?=[^-]|$)","i")},Ns=/^(?:input|select|textarea|button)$/i,Ds=/^h\d$/i,Bs=/^[^{]+\{\s*\[native \w/,Ps=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,js=/[+~]/,Ls=/'|\\/g,Ms=new RegExp("\\\\([\\da-f]{1,6}"+ws+"?|("+ws+")|.)","ig"),Is=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{gs.apply(hs=vs.call(rs.childNodes),rs.childNodes),hs[rs.childNodes.length].nodeType}catch(pU){gs={apply:hs.length?function(e,t){ms.apply(e,vs.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}var Fs=function(e,t,n,r){var o,i,a,u,s,c,l,f,d,h;if((t?t.ownerDocument||t:rs)!==mi&&pi(t),t=t||mi,n=n||[],!e||"string"!==typeof e)return n;if(1!==(u=t.nodeType)&&9!==u)return[];if(vi&&!r){if(o=Ps.exec(e))if(a=o[1]){if(9===u){if(i=t.getElementById(a),!i||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&xi(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return gs.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&oi.getElementsByClassName)return gs.apply(n,t.getElementsByClassName(a)),n}if(oi.qsa&&(!bi||!bi.test(e))){if(f=l=ns,d=t,h=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){c=si(e),(l=t.getAttribute("id"))?f=l.replace(Ls,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",s=c.length;while(s--)c[s]=f+Qs(c[s]);d=js.test(e)&&Ws(t.parentNode)||t,h=c.join(",")}if(h)try{return gs.apply(n,d.querySelectorAll(h)),n}catch(p){}finally{l||t.removeAttribute("id")}}}return li(e.replace(Ss,"$1"),t,n,r)};function Vs(){var e=[];function t(n,r){return e.push(n+" ")>ii.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function Us(e){return e[ns]=!0,e}function qs(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||fs)-(~e.sourceIndex||fs);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function zs(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function Hs(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function $s(e){return Us((function(t){return t=+t,Us((function(n,r){var o,i=e([],n.length,t),a=i.length;while(a--)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function Ws(e){return e&&typeof e.getElementsByTagName!==ls&&e}function Ks(){}function Qs(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Gs(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=is++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var u,s,c=[os,i];if(a){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||o){if(s=t[ns]||(t[ns]={}),(u=s[r])&&u[0]===os&&u[1]===i)return c[2]=u[2];if(s[r]=c,c[2]=e(t,n,a))return!0}}}function Ys(e){return e.length>1?function(t,n,r){var o=e.length;while(o--)if(!e[o](t,n,r))return!1;return!0}:e[0]}function Js(e,t,n){for(var r=0,o=t.length;r<o;r++)Fs(e,t[r],n);return n}function Xs(e,t,n,r,o){for(var i,a=[],u=0,s=e.length,c=null!=t;u<s;u++)(i=e[u])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(u)));return a}function Zs(e,t,n,r,o,i){return r&&!r[ns]&&(r=Zs(r)),o&&!o[ns]&&(o=Zs(o,i)),Us((function(i,a,u,s){var c,l,f,d=[],h=[],p=a.length,m=i||Js(t||"*",u.nodeType?[u]:u,[]),g=!e||!i&&t?m:Xs(m,d,e,u,s),v=n?o||(i?e:p||r)?[]:a:g;if(n&&n(g,v,u,s),r){c=Xs(v,h),r(c,[],u,s),l=c.length;while(l--)(f=c[l])&&(v[h[l]]=!(g[h[l]]=f))}if(i){if(o||e){if(o){c=[],l=v.length;while(l--)(f=v[l])&&c.push(g[l]=f);o(null,v=[],c,s)}l=v.length;while(l--)(f=v[l])&&(c=o?bs.call(i,f):d[l])>-1&&(i[c]=!(a[c]=f))}}else v=Xs(v===a?v.splice(p,v.length):v),o?o(null,a,v,s):gs.apply(a,v)}))}function ec(e){for(var t,n,r,o=e.length,i=ii.relative[e[0].type],a=i||ii.relative[" "],u=i?1:0,s=Gs((function(e){return e===t}),a,!0),c=Gs((function(e){return bs.call(t,e)>-1}),a,!0),l=[function(e,n,r){var o=!i&&(r||n!==fi)||((t=n).nodeType?s(e,n,r):c(e,n,r));return t=null,o}];u<o;u++)if(n=ii.relative[e[u].type])l=[Gs(Ys(l),n)];else{if(n=ii.filter[e[u].type].apply(null,e[u].matches),n[ns]){for(r=++u;r<o;r++)if(ii.relative[e[r].type])break;return Zs(u>1&&Ys(l),u>1&&Qs(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(Ss,"$1"),n,u<r&&ec(e.slice(u,r)),r<o&&ec(e=e.slice(r)),r<o&&Qs(e))}l.push(n)}return Ys(l)}function tc(e,t){var n=t.length>0,r=e.length>0,o=function(o,i,a,u,s){var c,l,f,d=0,h="0",p=o&&[],m=[],g=fi,v=o||r&&ii.find.TAG("*",s),b=os+=null==g?1:Math.random()||.1,y=v.length;for(s&&(fi=i!==mi&&i);h!==y&&null!=(c=v[h]);h++){if(r&&c){l=0;while(f=e[l++])if(f(c,i,a)){u.push(c);break}s&&(os=b)}n&&((c=!f&&c)&&d--,o&&p.push(c))}if(d+=h,n&&h!==d){l=0;while(f=t[l++])f(p,m,i,a);if(o){if(d>0)while(h--)p[h]||m[h]||(m[h]=ps.call(u));m=Xs(m)}gs.apply(u,m),s&&!o&&m.length>0&&d+t.length>1&&Fs.uniqueSort(u)}return s&&(os=b,fi=g),p};return n?Us(o):o}oi=Fs.support={},ui=Fs.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},pi=Fs.setDocument=function(e){var t,n=e?e.ownerDocument||e:rs,r=n.defaultView;function o(e){try{return e.top}catch(t){}return null}return n!==mi&&9===n.nodeType&&n.documentElement?(mi=n,gi=n.documentElement,vi=!ui(n),r&&r!==o(r)&&(r.addEventListener?r.addEventListener("unload",(function(){pi()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){pi()}))),oi.attributes=!0,oi.getElementsByTagName=!0,oi.getElementsByClassName=Bs.test(n.getElementsByClassName),oi.getById=!0,ii.find.ID=function(e,t){if(typeof t.getElementById!==ls&&vi){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},ii.filter.ID=function(e){var t=e.replace(Ms,Is);return function(e){return e.getAttribute("id")===t}},ii.find.TAG=oi.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==ls)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){while(n=i[o++])1===n.nodeType&&r.push(n);return r}return i},ii.find.CLASS=oi.getElementsByClassName&&function(e,t){if(vi)return t.getElementsByClassName(e)},yi=[],bi=[],oi.disconnectedMatch=!0,bi=bi.length&&new RegExp(bi.join("|")),yi=yi.length&&new RegExp(yi.join("|")),t=Bs.test(gi.compareDocumentPosition),xi=t||Bs.test(gi.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)while(t=t.parentNode)if(t===e)return!0;return!1},cs=t?function(e,t){if(e===t)return hi=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!oi.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===rs&&xi(rs,e)?-1:t===n||t.ownerDocument===rs&&xi(rs,t)?1:di?bs.call(di,e)-bs.call(di,t):0:4&r?-1:1)}:function(e,t){if(e===t)return hi=!0,0;var r,o=0,i=e.parentNode,a=t.parentNode,u=[e],s=[t];if(!i||!a)return e===n?-1:t===n?1:i?-1:a?1:di?bs.call(di,e)-bs.call(di,t):0;if(i===a)return qs(e,t);r=e;while(r=r.parentNode)u.unshift(r);r=t;while(r=r.parentNode)s.unshift(r);while(u[o]===s[o])o++;return o?qs(u[o],s[o]):u[o]===rs?-1:s[o]===rs?1:0},n):mi},Fs.matches=function(e,t){return Fs(e,null,null,t)},Fs.matchesSelector=function(e,t){if((e.ownerDocument||e)!==mi&&pi(e),t=t.replace(Os,"='$1']"),oi.matchesSelector&&vi&&(!yi||!yi.test(t))&&(!bi||!bi.test(t)))try{var n=wi.call(e,t);if(n||oi.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(pU){}return Fs(t,mi,null,[e]).length>0},Fs.contains=function(e,t){return(e.ownerDocument||e)!==mi&&pi(e),xi(e,t)},Fs.attr=function(e,t){(e.ownerDocument||e)!==mi&&pi(e);var n=ii.attrHandle[t.toLowerCase()],r=n&&ds.call(ii.attrHandle,t.toLowerCase())?n(e,t,!vi):void 0;return void 0!==r?r:oi.attributes||!vi?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},Fs.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Fs.uniqueSort=function(e){var t,n=[],r=0,o=0;if(hi=!oi.detectDuplicates,di=!oi.sortStable&&e.slice(0),e.sort(cs),hi){while(t=e[o++])t===e[o]&&(r=n.push(o));while(r--)e.splice(n[r],1)}return di=null,e},ai=Fs.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=ai(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=ai(t);return n},ii=Fs.selectors={cacheLength:50,createPseudo:Us,match:Rs,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(Ms,Is),e[3]=(e[3]||e[4]||e[5]||"").replace(Ms,Is),"~="===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]||Fs.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]&&Fs.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Rs.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&As.test(n)&&(t=si(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(Ms,Is).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=as[e+" "];return t||(t=new RegExp("(^|"+ws+")"+e+"("+ws+"|$)"))&&as(e,(function(e){return t.test("string"===typeof e.className&&e.className||typeof e.getAttribute!==ls&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=Fs.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,s){var c,l,f,d,h,p,m=i!==a?"nextSibling":"previousSibling",g=t.parentNode,v=u&&t.nodeName.toLowerCase(),b=!s&&!u;if(g){if(i){while(m){f=t;while(f=f[m])if(u?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){l=g[ns]||(g[ns]={}),c=l[e]||[],h=c[0]===os&&c[1],d=c[0]===os&&c[2],f=h&&g.childNodes[h];while(f=++h&&f&&f[m]||(d=h=0)||p.pop())if(1===f.nodeType&&++d&&f===t){l[e]=[os,h,d];break}}else if(b&&(c=(t[ns]||(t[ns]={}))[e])&&c[0]===os)d=c[1];else while(f=++h&&f&&f[m]||(d=h=0)||p.pop())if((u?f.nodeName.toLowerCase()===v:1===f.nodeType)&&++d&&(b&&((f[ns]||(f[ns]={}))[e]=[os,d]),f===t))break;return d-=o,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(e,t){var n,r=ii.pseudos[e]||ii.setFilters[e.toLowerCase()]||Fs.error("unsupported pseudo: "+e);return r[ns]?r(t):r.length>1?(n=[e,e,"",t],ii.setFilters.hasOwnProperty(e.toLowerCase())?Us((function(e,n){var o,i=r(e,t),a=i.length;while(a--)o=bs.call(e,i[a]),e[o]=!(n[o]=i[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:Us((function(e){var t=[],n=[],r=ci(e.replace(Ss,"$1"));return r[ns]?Us((function(e,t,n,o){var i,a=r(e,null,o,[]),u=e.length;while(u--)(i=a[u])&&(e[u]=!(t[u]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:Us((function(e){return function(t){return Fs(e,t).length>0}})),contains:Us((function(e){return e=e.replace(Ms,Is),function(t){return(t.textContent||t.innerText||ai(t)).indexOf(e)>-1}})),lang:Us((function(e){return Ts.test(e||"")||Fs.error("unsupported lang: "+e),e=e.replace(Ms,Is).toLowerCase(),function(t){var n;do{if(n=vi?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===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===gi},focus:function(e){return e===mi.activeElement&&(!mi.hasFocus||mi.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!ii.pseudos.empty(e)},header:function(e){return Ds.test(e.nodeName)},input:function(e){return Ns.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:$s((function(){return[0]})),last:$s((function(e,t){return[t-1]})),eq:$s((function(e,t,n){return[n<0?n+t:n]})),even:$s((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:$s((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:$s((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:$s((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},ii.pseudos.nth=ii.pseudos.eq,Z(["radio","checkbox","file","password","image"],(function(e){ii.pseudos[e]=zs(e)})),Z(["submit","reset"],(function(e){ii.pseudos[e]=Hs(e)})),Ks.prototype=ii.filters=ii.pseudos,ii.setFilters=new Ks,si=Fs.tokenize=function(e,t){var n,r,o,i,a,u,s,c=us[e+" "];if(c)return t?0:c.slice(0);a=e,u=[],s=ii.preFilter;while(a){for(i in n&&!(r=ks.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=Es.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(Ss," ")}),a=a.slice(n.length)),ii.filter)ii.filter.hasOwnProperty(i)&&(!(r=Rs[i].exec(a))||s[i]&&!(r=s[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?Fs.error(e):us(e,u).slice(0)},ci=Fs.compile=function(e,t){var n,r=[],o=[],i=ss[e+" "];if(!i){t||(t=si(e)),n=t.length;while(n--)i=ec(t[n]),i[ns]?r.push(i):o.push(i);i=ss(e,tc(o,r)),i.selector=e}return i},li=Fs.select=function(e,t,n,r){var o,i,a,u,s,c="function"===typeof e&&e,l=!r&&si(e=c.selector||e);if(n=n||[],1===l.length){if(i=l[0]=l[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&oi.getById&&9===t.nodeType&&vi&&ii.relative[i[1].type]){if(t=(ii.find.ID(a.matches[0].replace(Ms,Is),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}o=Rs.needsContext.test(e)?0:i.length;while(o--){if(a=i[o],ii.relative[u=a.type])break;if((s=ii.find[u])&&(r=s(a.matches[0].replace(Ms,Is),js.test(i[0].type)&&Ws(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&Qs(i),!e)return gs.apply(n,r),n;break}}}return(c||ci(e,l))(r,t,!vi,n,js.test(e)&&Ws(t.parentNode)||t),n},oi.sortStable=ns.split("").sort(cs).join("")===ns,oi.detectDuplicates=!!hi,pi(),oi.sortDetached=!0;var nc=document,rc=Array.prototype.push,oc=Array.prototype.slice,ic=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,ac=ts.Event,uc=pn.makeMap("children,contents,next,prev"),sc=function(e){return"undefined"!==typeof e},cc=function(e){return"string"===typeof e},lc=function(e){return e&&e===e.window},fc=function(e,t){t=t||nc;var n,r=t.createElement("div"),o=t.createDocumentFragment();r.innerHTML=e;while(n=r.firstChild)o.appendChild(n);return o},dc=function(e,t,n,r){var o;if(cc(t))t=fc(t,Oc(e[0]));else if(t.length&&!t.nodeType){if(t=Nc.makeArray(t),r)for(o=t.length-1;o>=0;o--)dc(e,t[o],n,r);else for(o=0;o<t.length;o++)dc(e,t[o],n,r);return e}if(t.nodeType){o=e.length;while(o--)n.call(e[o],t)}return e},hc=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},pc=function(e,t,n){var r,o;return t=Nc(t)[0],e.each((function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,o=t.cloneNode(!1),e.parentNode.insertBefore(o,e)),o.appendChild(e)})),e},mc=pn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),gc=pn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),vc={for:"htmlFor",class:"className",readonly:"readOnly"},bc={float:"cssFloat"},yc={},wc={},xc=function(e,t){return new Nc.fn.init(e,t)},_c=function(e,t){var n;if(t.indexOf)return t.indexOf(e);n=t.length;while(n--)if(t[n]===e)return n;return-1},Cc=/^\s*|\s*$/g,Sc=function(e){return null===e||void 0===e?"":(""+e).replace(Cc,"")},kc=function(e,t){var n,r,o,i;if(e)if(n=e.length,void 0===n){for(r in e)if(e.hasOwnProperty(r)&&(i=e[r],!1===t.call(i,r,i)))break}else for(o=0;o<n;o++)if(i=e[o],!1===t.call(i,o,i))break;return e},Ec=function(e,t){var n=[];return kc(e,(function(e,r){t(r,e)&&n.push(r)})),n},Oc=function(e){return e?9===e.nodeType?e:e.ownerDocument:nc};xc.fn=xc.prototype={constructor:xc,selector:"",context:null,length:0,init:function(e,t){var n,r,o=this;if(!e)return o;if(e.nodeType)return o.context=o[0]=e,o.length=1,o;if(t&&t.nodeType)o.context=t;else{if(t)return Nc(e).attr(t);o.context=t=document}if(cc(e)){if(o.selector=e,n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:ic.exec(e),!n)return Nc(t).find(e);if(n[1]){r=fc(e,Oc(t)).firstChild;while(r)rc.call(o,r),r=r.nextSibling}else{if(r=Oc(t).getElementById(n[2]),!r)return o;if(r.id!==n[2])return o.find(e);o.length=1,o[0]=r}}else this.add(e,!1);return o},toArray:function(){return pn.toArray(this)},add:function(e,t){var n,r,o=this;if(cc(e))return o.add(Nc(e));if(!1!==t)for(n=Nc.unique(o.toArray().concat(Nc.makeArray(e))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else rc.apply(o,Nc.makeArray(e));return o},attr:function(e,t){var n,r=this;if("object"===typeof e)kc(e,(function(e,t){r.attr(e,t)}));else{if(!sc(t)){if(r[0]&&1===r[0].nodeType){if(n=yc[e],n&&n.get)return n.get(r[0],e);if(gc[e])return r.prop(e)?e:void 0;t=r[0].getAttribute(e,2),null===t&&(t=void 0)}return t}this.each((function(){var n;if(1===this.nodeType){if(n=yc[e],n&&n.set)return void 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(e=vc[e]||e,"object"===typeof e)kc(e,(function(e,t){n.prop(e,t)}));else{if(!sc(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){var n,r,o=this,i=function(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))},a=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))};if("object"===typeof e)kc(e,(function(e,t){o.css(e,t)}));else if(sc(t))e=i(e),"number"!==typeof t||mc[e]||(t=t.toString()+"px"),o.each((function(){var n=this.style;if(r=wc[e],r&&r.set)r.set(this,t);else{try{this.style[bc[e]||e]=t}catch(o){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}}));else{if(n=o[0],r=wc[e],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[i(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(u){return}}return o},remove:function(){var e,t=this,n=this.length;while(n--)e=t[n],ac.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){var e,t=this,n=this.length;while(n--){e=t[n];while(e.firstChild)e.removeChild(e.firstChild)}return this},html:function(e){var t,n=this;if(sc(e)){t=n.length;try{while(t--)n[t].innerHTML=e}catch(r){Nc(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(sc(e)){t=n.length;while(t--)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return dc(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return dc(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?dc(e,arguments,(function(e){this.parentNode.insertBefore(e,this)})):e},after:function(){var e=this;return e[0]&&e[0].parentNode?dc(e,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):e},appendTo:function(e){return Nc(e).append(this),this},prependTo:function(e){return Nc(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return pc(this,e)},wrapAll:function(e){return pc(this,e,!0)},wrapInner:function(e){return this.each((function(){Nc(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Nc(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Nc(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(" ")?kc(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var o=hc(r,e);if(o!==t){var i=r.className;o?r.className=Sc((" "+i+" ").replace(" "+e+" "," ")):r.className+=i?" "+e:e}}))),n},hasClass:function(e){return hc(this[0],e)},each:function(e){return kc(this,e)},on:function(e,t){return this.each((function(){ac.bind(this,e,t)}))},off:function(e,t){return this.each((function(){ac.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"===typeof e?ac.fire(this,e.type,e):ac.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Nc(oc.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){var t,n,r=[];for(t=0,n=this.length;t<n;t++)Nc.find(e,this[t],r);return Nc(r)},filter:function(e){return Nc("function"===typeof e?Ec(this.toArray(),(function(t,n){return e(n,t)})):Nc.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Nc&&(e=e[0]),this.each((function(n,r){while(r){if("string"===typeof e&&Nc(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Nc(t)},offset:function(e){var t,n,r,o,i=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(o=t.getBoundingClientRect(),i=o.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:rc,sort:Array.prototype.sort,splice:Array.prototype.splice},pn.extend(xc,{extend:pn.extend,makeArray:function(e){return lc(e)||e.nodeType?[e]:pn.toArray(e)},inArray:_c,isArray:pn.isArray,each:kc,trim:Sc,grep:Ec,find:Fs,expr:Fs.selectors,unique:Fs.uniqueSort,text:Fs.getText,contains:Fs.contains,filter:function(e,t,n){var r=t.length;n&&(e=":not("+e+")");while(r--)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Nc.find.matchesSelector(t[0],e)?[t[0]]:[]:Nc.find.matches(e,t),t}});var Ac=function(e,t,n){var r=[],o=e[t];"string"!==typeof n&&n instanceof Nc&&(n=n[0]);while(o&&9!==o.nodeType){if(void 0!==n){if(o===n)break;if("string"===typeof n&&Nc(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},Tc=function(e,t,n,r){var o=[];for(r instanceof Nc&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"===typeof r&&Nc(e).is(r))break}o.push(e)}return o},Rc=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};kc({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ac(e,"parentNode")},next:function(e){return Rc(e,"nextSibling",1)},prev:function(e){return Rc(e,"previousSibling",1)},children:function(e){return Tc(e.firstChild,"nextSibling",1)},contents:function(e){return pn.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){xc.fn[e]=function(n){var r=this,o=[];r.each((function(){var e=t.call(o,this,n,o);e&&(Nc.isArray(e)?o.push.apply(o,e):o.push(e))})),this.length>1&&(uc[e]||(o=Nc.unique(o)),0===e.indexOf("parents")&&(o=o.reverse()));var i=Nc(o);return n?i.filter(n):i}})),kc({parentsUntil:function(e,t){return Ac(e,"parentNode",t)},nextUntil:function(e,t){return Tc(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Tc(e,"previousSibling",1,t).slice(1)}},(function(e,t){xc.fn[e]=function(n,r){var o=this,i=[];o.each((function(){var e=t.call(i,this,n,i);e&&(Nc.isArray(e)?i.push.apply(i,e):i.push(e))})),this.length>1&&(i=Nc.unique(i),0!==e.indexOf("parents")&&"prevUntil"!==e||(i=i.reverse()));var a=Nc(i);return r?a.filter(r):a}})),xc.fn.is=function(e){return!!e&&this.filter(e).length>0},xc.fn.init.prototype=xc.fn,xc.overrideDefaults=function(e){var t,n=function(r,o){return t=t||e(),0===arguments.length&&(r=t.element),o||(o=t.context),new n.fn.init(r,o)};return Nc.extend(n,this),n},xc.attrHooks=yc,xc.cssHooks=wc;var Nc=xc,Dc=pn.each,Bc=pn.grep,Pc=en.ie,jc=/^([a-z0-9],?)+$/i,Lc=function(e,t,n){var r=t.keep_values,o={set:function(e,r,o){t.url_converter&&null!==r&&(r=t.url_converter.call(t.url_converter_scope||n(),r,o,e[0])),e.attr("data-mce-"+o,r).attr(o,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},i={style:{set:function(t,n){null===n||"object"!==typeof n?(r&&t.attr("data-mce-style",n),null!==n&&"string"===typeof n?(t.removeAttr("style"),t.css(e.parse(n))):t.attr("style",n)):t.css(n)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName),n}}};return r&&(i.href=i.src=o),i},Mc=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},Ic=function(e,t){var n,r,o=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)&&(o++,n=r);return o},Fc=function(e,t){void 0===t&&(t={});var n={},r=window,o={},i=0,a=!0,u=!0,s=Fi.forElement(wn.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),c=[],l=t.schema?t.schema:Fu({}),f=Uu({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),d=t.ownEvents?new ts:ts.Event,h=l.getBlockElements(),p=Nc.overrideDefaults((function(){return{context:e,element:Ne.getRoot()}})),m=function(e){if("string"===typeof e)return!!h[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!h[e.nodeName])}return!1},g=function(t){return t&&e&&v(t)?e.getElementById(t):t},b=function(e){return p("string"===typeof e?g(e):e)},y=function(e,t,n){var r,o,i=b(e);return i.length&&(r=De[t],o=r&&r.get?r.get(i,t):i.attr(t)),"undefined"===typeof o&&(o=n||""),o},w=function(e){var t=g(e);return t?t.attributes:[]},x=function(e,n,r){""===r&&(r=null);var o=b(e),i=o.attr(n);if(o.length){var a=De[n];a&&a.set?a.set(o,r,n):o.attr(n,r),i!==r&&t.onSetAttrib&&t.onSetAttrib({attrElm:o,attrName:n,attrValue:r})}},_=function(t,n){if(!Pc||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return Dc(w(t),(function(e){x(r,e.nodeName,y(t,e.nodeName))})),r},S=function(){return t.root_element||e.body},k=function(e){var t=Vr(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},E=function(t,n){return jo(e.body,g(t),n)},A=function(e,n,r){var o=v(n)?b(e).css(n,r):b(e).css(n);t.update_styles&&Mc(f,o)},T=function(e,n){var r=b(e).css(n);t.update_styles&&Mc(f,r)},N=function(e,t,n){var r=b(e);return n?r.css(t):(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})),"float"===t&&(t=en.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},D=function(e){var t,n;return e=g(e),t=N(e,"width"),n=N(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},B=function(e){e=g(e);var t=E(e),n=D(e);return{x:t.x,y:t.y,w:n.w,h:n.h}},P=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(jc.test(t)){var r=t.toLowerCase().split(/,/),o=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===o)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var i=Array.isArray(e)?e:[e];return Fs(t,i[0].ownerDocument||i[0],null,i).length>0},j=function(e,t,n,r){var o,i=[],a=g(e);r=void 0===r,n=n||("BODY"!==S().nodeName?S().parentNode:null),pn.is(t,"string")&&(o=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return P(e,o)});while(a){if(a===n||C(a.nodeType)||to(a)||no(a))break;if(!t||"function"===typeof t&&t(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},L=function(e,t,n){var r=j(e,t,n,!1);return r&&r.length>0?r[0]:null},M=function(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},I=function(e,t){return M(e,t,"nextSibling")},F=function(e,t){return M(e,t,"previousSibling")},V=function(n,r){return Fs(n,g(r)||t.root_element||e,[])},U=function(e,t,n){var r,o="string"===typeof e?g(e):e;if(!o)return!1;if(pn.isArray(o)&&(o.length||0===o.length))return r=[],Dc(o,(function(e,o){e&&r.push(t.call(n,"string"===typeof e?g(e):e,o))})),r;var i=n||this;return t.call(i,o)},q=function(e,t){b(e).each((function(e,n){Dc(t,(function(e,t){x(n,t,e)}))}))},z=function(e,t){var n=b(e);Pc?n.each((function(e,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){Nc("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)},H=function(t,n,r,o,i){return U(t,(function(t){var a="string"===typeof n?e.createElement(n):n;return q(a,r),o&&("string"!==typeof o&&o.nodeType?a.appendChild(o):"string"===typeof o&&z(a,o)),i?a:t.appendChild(a)}))},$=function(t,n,r){return H(e.createElement(t),t,n,r,!0)},W=Au.decode,K=Au.encodeAllRaw,Q=function(e,t,n){var r,o="";for(r in o+="<"+e,t)Be(t,r)&&(o+=" "+r+'="'+K(t[r])+'"');return"undefined"!==typeof n?o+">"+n+"</"+e+">":o+" />"},G=function(t){var n,r=e.createElement("div"),o=e.createDocumentFragment();o.appendChild(r),t&&(r.innerHTML=t);while(n=r.firstChild)o.appendChild(n);return o.removeChild(r),o},Y=function(e,t){var n=b(e);return t?n.each((function(){var e;while(e=this.firstChild)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},J=function(e){return U(e,(function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))}))},X=function(e){return f.parse(e)},ee=function(e,t){return f.serialize(e,t)},te=function(t){var r,o;if(Ne!==Fc.DOM&&e===document){if(n[t])return;n[t]=!0}o=e.getElementById("mceDefaultStyles"),o||(o=e.createElement("style"),o.id="mceDefaultStyles",o.type="text/css",r=e.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o)),o.styleSheet?o.styleSheet.cssText+=t:o.appendChild(e.createTextNode(t))},ne=function(e){e||(e=""),Z(e.split(","),(function(e){o[e]=!0,s.load(e,O)}))},re=function(e,t,n){b(e).toggleClass(t,n).each((function(){""===this.className&&Nc(this).attr("class",null)}))},oe=function(e,t){b(e).addClass(t)},ie=function(e,t){re(e,t,!1)},ae=function(e,t){return b(e).hasClass(t)},ue=function(e){b(e).show()},se=function(e){b(e).hide()},ce=function(e){return"none"===b(e).css("display")},le=function(e){return(e||"mce_")+i++},fe=function(e){var t="string"===typeof e?g(e):e;return zr(t)?t.outerHTML:Nc("<div></div>").append(Nc(t).clone()).html()},de=function(e,t){b(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}Y(Nc(this).html(t),!0)}))},he=function(e,t){var n=g(t);return U(e,(function(e){var t=n.parentNode,r=n.nextSibling;return r?t.insertBefore(e,r):t.appendChild(e),e}))},pe=function(e,t,n){return U(t,(function(t){return pn.is(t,"array")&&(e=e.cloneNode(!0)),n&&Dc(Bc(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))},me=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=$(t),Dc(w(e),(function(t){x(n,t.nodeName,y(e,t.nodeName))})),pe(n,e,!0)),n||e},ge=function(e,t){var n,r=e;while(r){n=t;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},ve=function(e){return f.toHex(pn.trim(e))},be=function(e){if(zr(e)){var t="a"===e.nodeName.toLowerCase()&&!y(e,"href")&&y(e,"id");if(y(e,"name")||y(e,"data-mce-bookmark")||t)return!0}return!1},ye=function(e,t){var n,r,o=0;if(be(e))return!1;if(e=e.firstChild,e){var i=new Vi(e,e.parentNode),a=l?l.getWhiteSpaceElements():{};t=t||(l?l.getNonEmptyElements():null);do{if(n=e.nodeType,zr(e)){var u=e.getAttribute("data-mce-bogus");if(u){e=i.next("all"===u);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"===r){o++,e=i.next();continue}return!1}if(be(e))return!1}if(8===n)return!1;if(3===n&&!Ka(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Ka(e.nodeValue))return!1;e=i.next()}while(e)}return o<=1},we=function(){return e.createRange()},xe=function(e,t,n){var r,o,i,a=we();if(e&&t)return a.setStart(e.parentNode,Ic(e)),a.setEnd(t.parentNode,Ic(t)),r=a.extractContents(),a=we(),a.setStart(t.parentNode,Ic(t)+1),a.setEnd(e.parentNode,Ic(e)+1),o=a.extractContents(),i=e.parentNode,i.insertBefore(lu(Ne,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(lu(Ne,o),e),Y(e),n||t},Ce=function(n,o,i,a){if(pn.isArray(n)){var u=n.length,s=[];while(u--)s[u]=Ce(n[u],o,i,a);return s}!t.collect||n!==e&&n!==r||c.push([n,o,i,a]);var l=d.bind(n,o,i,a||Ne);return l},Se=function(t,n,o){if(pn.isArray(t)){var i=t.length,a=[];while(i--)a[i]=Se(t[i],n,o);return a}if(c.length>0&&(t===e||t===r)){i=c.length;while(i--){var u=c[i];t!==u[0]||n&&n!==u[1]||o&&o!==u[2]||d.unbind(u[0],u[1],u[2])}}return d.unbind(t,n,o)},ke=function(e,t,n){return d.fire(e,t,n)},Ee=function(e){if(e&&zr(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Oe=function(e){for(var t=S(),n=null;e&&e!==t;e=e.parentNode)if(n=Ee(e),null!==n)break;return n},Ae=function(){if(c.length>0){var e=c.length;while(e--){var t=c[e];d.unbind(t[0],t[1],t[2])}}_e(o,(function(e,t){s.unload(t),delete o[t]})),Fs.setDocument&&Fs.setDocument()},Te=function(e,t){if(Pc){while(e){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},Re=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},Ne={doc:e,settings:t,win:r,files:o,stdMode:a,boxModel:u,styleSheetLoader:s,boundEvents:c,styles:f,schema:l,events:d,isBlock:m,$:p,$$:b,root:null,clone:_,getRoot:S,getViewPort:k,getRect:B,getSize:D,getParent:L,getParents:j,get:g,getNext:I,getPrev:F,select:V,is:P,add:H,create:$,createHTML:Q,createFragment:G,remove:Y,setStyle:A,getStyle:N,setStyles:T,removeAllAttribs:J,setAttrib:x,setAttribs:q,getAttrib:y,getPos:E,parseStyle:X,serializeStyle:ee,addStyle:te,loadCSS:ne,addClass:oe,removeClass:ie,hasClass:ae,toggleClass:re,show:ue,hide:se,isHidden:ce,uniqueId:le,setHTML:z,getOuterHTML:fe,setOuterHTML:de,decode:W,encode:K,insertAfter:he,replace:pe,rename:me,findCommonAncestor:ge,toHex:ve,run:U,getAttribs:w,isEmpty:ye,createRng:we,nodeIndex:Ic,split:xe,bind:Ce,unbind:Se,fire:ke,getContentEditable:Ee,getContentEditableParent:Oe,destroy:Ae,isChildOf:Te,dumpRng:Re},De=Lc(f,t,R(Ne));return Ne};Fc.DOM=Fc(document),Fc.nodeIndex=Ic;var Vc=Fc.DOM,Uc=pn.each,qc=pn.grep,zc=0,Hc=1,$c=2,Wc=3,Kc=function(){function e(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return e.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},e.prototype.loadScript=function(e,t,n){var r,o=Vc,i=function(){o.remove(s),r&&(r.onerror=r.onload=r=null)},a=function(){i(),t()},u=function(){i(),k(n)?n():"undefined"!==typeof console&&console.log&&console.log("Failed to load script: "+e)},s=o.uniqueId();r=document.createElement("script"),r.id=s,r.type="text/javascript",r.src=pn._addCacheSuffix(e),this.settings.referrerPolicy&&o.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=u,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},e.prototype.isDone=function(e){return this.states[e]===$c},e.prototype.markDone=function(e){this.states[e]=$c},e.prototype.add=function(e,t,n,r){var o=this.states[e];this.queue.push(e),void 0===o&&(this.states[e]=zc),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(e,t,n,r){var o=this,i=[],a=function(e,t){Uc(o.scriptLoadedCallbacks[t],(function(t){k(t[e])&&t[e].call(t.scope)})),o.scriptLoadedCallbacks[t]=void 0};o.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var u=function(){var t=qc(e);if(e.length=0,Uc(t,(function(e){o.states[e]!==$c?o.states[e]!==Wc?o.states[e]!==Hc&&(o.states[e]=Hc,o.loading++,o.loadScript(e,(function(){o.states[e]=$c,o.loading--,a("success",e),u()}),(function(){o.states[e]=Wc,o.loading--,i.push(e),a("failure",e),u()}))):a("failure",e):a("success",e)})),!o.loading){var n=o.queueLoadedCallbacks.slice(0);o.queueLoadedCallbacks.length=0,Uc(n,(function(e){0===i.length?k(e.success)&&e.success.call(e.scope):k(e.failure)&&e.failure.call(e.scope,i)}))}};u()},e.ScriptLoader=new e,e}(),Qc=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Gc=function(e){return b(e)&&De(e,"raw")},Yc=function(e){return y(e)&&e.length>1},Jc={},Xc=Qc("en"),Zc=function(){return Ne(Jc,Xc.get())},el=function(){return Ce(Jc,(function(e){return He({},e)}))},tl=function(e){e&&Xc.set(e)},nl=function(){return Xc.get()},rl=function(e,t){var n=Jc[e];n||(Jc[e]=n={}),_e(t,(function(e,t){n[t.toLowerCase()]=e}))},ol=function(e){var t=Zc().getOr({}),n=function(e){return k(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},o=function(e){var r=n(e);return Ne(t,r.toLowerCase()).map(n).getOr(r)},i=function(e){return e.replace(/{context:\w+}$/,"")};if(r(e))return"";if(Gc(e))return n(e.raw);if(Yc(e)){var a=e.slice(1),u=o(e[0]).replace(/\{([0-9]+)\}/g,(function(e,t){return De(a,t)?n(a[t]):e}));return i(u)}return i(o(e))},il=function(){return Zc().bind((function(e){return Ne(e,"_dir")})).exists((function(e){return"rtl"===e}))},al=function(e){return De(Jc,e)},ul={getData:el,setCode:tl,getCode:nl,add:rl,translate:ol,isRtl:il,hasCode:al},sl=function(){var e=[],t={},n={},r=[],o=function(e,t){var n=ne(r,(function(n){return n.name===e&&n.state===t}));Z(n,(function(e){return e.callback()}))},i=function(e){if(n[e])return n[e].instance},a=function(e){var t;return n[e]&&(t=n[e].dependencies),t||[]},u=function(e,n){!1!==sl.languageLoad&&p(e,(function(){var r=ul.getCode(),o=","+(n||"")+",";!r||n&&-1===o.indexOf(","+r+",")||Kc.ScriptLoader.add(t[e]+"/langs/"+r+".js")}),"loaded")},s=function(t,r,i){var a=r;return e.push(a),n[t]={instance:a,dependencies:i},o(t,"added"),a},c=function(e){delete t[e],delete n[e]},l=function(e,t){return"object"===typeof t?t:"string"===typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},f=function(e,n){var r=t[e];Z(n,(function(e){Kc.ScriptLoader.add(r+"/"+e)}))},d=function(e,t,n,r){var o=a(e);Z(o,(function(e){var n=l(t,e);h(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(Kc))},h=function(e,r,i,a,u){if(!t[e]){var s="string"===typeof r?r:r.prefix+r.resource+r.suffix;0!==s.indexOf("/")&&-1===s.indexOf("://")&&(s=sl.baseURL+"/"+s),t[e]=s.substring(0,s.lastIndexOf("/"));var c=function(){o(e,"loaded"),d(e,r,i,a)};n[e]?c():Kc.ScriptLoader.add(s,c,a,u)}},p=function(e,o,i){void 0===i&&(i="added"),De(n,e)&&"added"===i||De(t,e)&&"loaded"===i?o():r.push({name:e,state:i,callback:o})};return{items:e,urls:t,lookup:n,_listeners:r,get:i,dependencies:a,requireLangPack:u,add:s,remove:c,createUrl:l,addComponents:f,load:h,waitFor:p}};sl.languageLoad=!0,sl.baseURL="",sl.PluginManager=sl(),sl.ThemeManager=sl();var cl=function(e){var t=Qc(H.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(H.none())},o=function(){return t.get().isSome()},i=function(){return t.get()},a=function(e){n(),t.set(H.some(e))};return{clear:r,isSet:o,get:i,set:a}},ll=function(){var e=cl(O),t=function(t){return e.get().each(t)};return He(He({},e),{on:t})},fl=function(e,t){var n=null,r=function(){w(n)||(clearTimeout(n),n=null)},o=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];w(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:o}},dl=function(e,t){var n=null,r=function(){w(n)||(clearTimeout(n),n=null)},o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];r(),n=setTimeout((function(){n=null,e.apply(null,o)}),t)};return{cancel:r,throttle:o}},hl=function(e,t){var n=yo(e,t);return void 0===n||""===n?[]:n.split(" ")},pl=function(e,t,n){var r=hl(e,t),o=r.concat([n]);return vo(e,t,o.join(" ")),!0},ml=function(e,t,n){var r=ne(hl(e,t),(function(e){return e!==n}));return r.length>0?vo(e,t,r.join(" ")):_o(e,t),!1},gl=function(e){return void 0!==e.dom.classList},vl=function(e){return hl(e,"class")},bl=function(e,t){return pl(e,"class",t)},yl=function(e,t){return ml(e,"class",t)},wl=function(e,t){gl(e)?e.dom.classList.add(t):bl(e,t)},xl=function(e){var t=gl(e)?e.dom.classList:vl(e);0===t.length&&_o(e,"class")},_l=function(e,t){if(gl(e)){var n=e.dom.classList;n.remove(t)}else yl(e,t);xl(e)},Cl=function(e,t){return gl(e)&&e.dom.classList.contains(t)},Sl=function(e,t){var n=[];return Z(rr(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Sl(e,t))})),n},kl=function(e,t){return Nn(t,e)},El=R("mce-annotation"),Ol=R("data-mce-annotation"),Al=R("data-mce-annotation-uid"),Tl=function(e,t){var n=e.selection.getRng(),r=wn.fromDom(n.startContainer),o=wn.fromDom(e.getBody()),i=t.fold((function(){return"."+El()}),(function(e){return"["+Ol()+'="'+e+'"]'})),a=or(r,n.startOffset).getOr(r),u=Ai(a,i,(function(e){return Bn(e,o)})),s=function(e,t){return xo(e,t)?H.some(yo(e,t)):H.none()};return u.bind((function(t){return s(t,""+Al()).bind((function(n){return s(t,""+Ol()).map((function(t){var r=Nl(e,n);return{uid:n,name:t,elements:r}}))}))}))},Rl=function(e){return Un(e)&&Cl(e,El())},Nl=function(e,t){var n=wn.fromDom(e.getBody());return kl(n,"["+Al()+'="'+t+'"]')},Dl=function(e,t){var n=wn.fromDom(e.getBody()),r=kl(n,"["+Ol()+'="'+t+'"]'),o={};return Z(r,(function(e){var t=yo(e,Al()),n=Ne(o,t).getOr([]);o[t]=n.concat([e])})),o},Bl=function(e,t){var n=Qc({}),r=function(){return{listeners:[],previous:ll()}},o=function(e,t){i(e,(function(e){return t(e),e}))},i=function(e,t){var o=n.get(),i=Ne(o,e).getOrThunk(r),a=t(i);o[e]=a,n.set(o)},a=function(e,t,n){o(e,(function(r){Z(r.listeners,(function(r){return r(!0,e,{uid:t,nodes:X(n,(function(e){return e.dom}))})}))}))},u=function(e){o(e,(function(t){Z(t.listeners,(function(t){return t(!1,e)}))}))},s=dl((function(){var t=n.get(),r=pe(we(t));Z(r,(function(t){i(t,(function(n){var r=n.previous.get();return Tl(e,H.some(t)).fold((function(){r.isSome()&&(u(t),n.previous.clear())}),(function(e){var t=e.uid,o=e.name,i=e.elements;co(r,t)||(a(o,t,i),n.previous.set(t))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);e.on("remove",(function(){s.cancel()})),e.on("NodeChange",(function(){s.throttle()}));var c=function(e,t){i(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))};return{addListener:c}},Pl=function(e,t){var n=function(e){return H.from(e.attr(Ol())).bind(t.lookup)};e.on("init",(function(){e.serializer.addNodeFilter("span",(function(e){Z(e,(function(e){n(e).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}))},jl=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return Ne(e,t).map((function(e){return e.settings}))};return{register:t,lookup:n}},Ll=0,Ml=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Ll++,e+"_"+r+Ll+String(n)},Il=function(e,t){Z(t,(function(t){wl(e,t)}))},Fl=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,rr(wn.fromDom(r))},Vl=function(e){return X(e,wn.fromDom)},Ul=function(e){return e.dom.innerHTML},ql=function(e,t){var n=Wn(e),r=n.dom,o=wn.fromDom(r.createDocumentFragment()),i=Fl(t,r);Sr(o,i),kr(e),xr(e,o)},zl=function(e,t){return wn.fromDom(e.dom.cloneNode(t))},Hl=function(e){return zl(e,!1)},$l=function(e){return zl(e,!0)},Wl=function(e,t,n){void 0===n&&(n=I);var r=new Vi(e,t),o=function(e){var t;do{t=r[e]()}while(t&&!Zr(t)&&!n(t));return H.from(t).filter(Zr)};return{current:function(){return H.from(r.current()).filter(Zr)},next:function(){return o("next")},prev:function(){return o("prev")},prev2:function(){return o("prev2")}}},Kl=function(e,t){var n=t||function(t){return e.isBlock(t)||ro(t)||ao(t)},r=function(e,t,n,o){if(Zr(e)){var i=o(e,t,e.data);if(-1!==i)return H.some({container:e,offset:i})}return n().bind((function(e){return r(e.container,e.offset,n,o)}))},o=function(e,t,o,i){var a=Wl(e,i,n);return r(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),o).getOrNull()},i=function(e,t,o,i){var a=Wl(e,i,n);return r(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),o).getOrNull()};return{backwards:o,forwards:i}},Ql=Math.round,Gl=function(e){return e?{left:Ql(e.left),top:Ql(e.top),bottom:Ql(e.bottom),right:Ql(e.right),width:Ql(e.width),height:Ql(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Yl=function(e,t){return e=Gl(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Jl=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},Xl=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},Zl=function(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&Xl(t.top-e.bottom,e,t)},ef=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&Xl(t.bottom-e.top,e,t)},tf=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},nf=function(e,t,n){return Math.min(Math.max(e,t),n)},rf=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},of=function(e,t){if(zr(e)&&e.hasChildNodes()){var n=e.childNodes,r=nf(t,0,n.length-1);return n[r]}return e},af=function(e,t){return t<0&&zr(e)&&e.hasChildNodes()?void 0:of(e,t)},uf=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),sf=function(e){return"string"===typeof e&&e.charCodeAt(0)>=768&&uf.test(e)},cf=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}},lf=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}},ff=zr,df=Fa,hf=$r("display","block table"),pf=$r("float","left right"),mf=lf(ff,df,P(pf)),gf=P($r("white-space","pre pre-line pre-wrap")),vf=Zr,bf=ro,yf=Fc.nodeIndex,wf=af,xf=function(e){return"createRange"in e?e.createRange():Fc.DOM.createRng()},_f=function(e){return e&&/[\r\n\t ]/.test(e)},Cf=function(e){return!!e.setStart&&!!e.setEnd},Sf=function(e){var t=e.startContainer,n=e.startOffset;if(_f(e.toString())&&gf(t.parentNode)&&Zr(t)){var r=t.data;if(_f(r[n-1])||_f(r[n+1]))return!0}return!1},kf=function(e){var t=e.ownerDocument,n=xf(t),r=t.createTextNode(ca),o=e.parentNode;o.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var i=Gl(n.getBoundingClientRect());return o.removeChild(r),i},Ef=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&Zr(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),Af(i)}return null},Of=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Af=function(e){var t,n=e.getClientRects();return t=n.length>0?Gl(n[0]):Gl(e.getBoundingClientRect()),!Cf(e)&&bf(e)&&Of(t)?kf(e):Of(t)&&Cf(e)?Ef(e):t},Tf=function(e,t){var n=Yl(e,t);return n.width=1,n.right=n.left+1,n},Rf=function(e){var t=[],n=function(e){0!==e.height&&(t.length>0&&Jl(e,t[t.length-1])||t.push(e))},r=function(e,r){var o=xf(e.ownerDocument);if(r<e.data.length){if(sf(e.data[r]))return t;if(sf(e.data[r-1])&&(o.setStart(e,r),o.setEnd(e,r+1),!Sf(o)))return n(Tf(Af(o),!1)),t}r>0&&(o.setStart(e,r-1),o.setEnd(e,r),Sf(o)||n(Tf(Af(o),!1))),r<e.data.length&&(o.setStart(e,r),o.setEnd(e,r+1),Sf(o)||n(Tf(Af(o),!0)))},o=e.container(),i=e.offset();if(vf(o))return r(o,i),t;if(ff(o))if(e.isAtEnd()){var a=wf(o,i);vf(a)&&r(a,a.data.length),mf(a)&&!bf(a)&&n(Tf(Af(a),!1))}else{a=wf(o,i);if(vf(a)&&r(a,0),mf(a)&&e.isAtEnd())return n(Tf(Af(a),!1)),t;var u=wf(e.container(),e.offset()-1);mf(u)&&!bf(u)&&(hf(u)||hf(a)||!mf(a))&&n(Tf(Af(u),!1)),mf(a)&&n(Tf(Af(a),!0))}return t},Nf=function(e,t,n){var r=function(){return vf(e),0===t},o=function(){return vf(e)?t>=e.data.length:t>=e.childNodes.length},i=function(){var n=xf(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=Rf(Nf(e,t))),n},u=function(){return a().length>0},s=function(n){return n&&e===n.container()&&t===n.offset()},c=function(n){return wf(e,n?t-1:t)};return{container:R(e),offset:R(t),toRange:i,getClientRects:a,isVisible:u,isAtStart:r,isAtEnd:o,isEqual:s,getNode:c}};Nf.fromRangeStart=function(e){return Nf(e.startContainer,e.startOffset)},Nf.fromRangeEnd=function(e){return Nf(e.endContainer,e.endOffset)},Nf.after=function(e){return Nf(e.parentNode,yf(e)+1)},Nf.before=function(e){return Nf(e.parentNode,yf(e))},Nf.isAbove=function(e,t){return fo(ge(t.getClientRects()),ve(e.getClientRects()),Zl).getOr(!1)},Nf.isBelow=function(e,t){return fo(ve(t.getClientRects()),ge(e.getClientRects()),ef).getOr(!1)},Nf.isAtStart=function(e){return!!e&&e.isAtStart()},Nf.isAtEnd=function(e){return!!e&&e.isAtEnd()},Nf.isTextPosition=function(e){return!!e&&Zr(e.container())},Nf.isElementPosition=function(e){return!1===Nf.isTextPosition(e)};var Df,Bf=function(e,t){Zr(t)&&0===t.data.length&&e.remove(t)},Pf=function(e,t,n){t.insertNode(n),Bf(e,n.previousSibling),Bf(e,n.nextSibling)},jf=function(e,t,n){var r=H.from(n.firstChild),o=H.from(n.lastChild);t.insertNode(n),r.each((function(t){return Bf(e,t.previousSibling)})),o.each((function(t){return Bf(e,t.nextSibling)}))},Lf=function(e,t,n){no(n)?jf(e,t,n):Pf(e,t,n)},Mf=Zr,If=Qr,Ff=Fc.nodeIndex,Vf=function(e){var t=e.parentNode;return If(t)?Vf(t):t},Uf=function(e){return e?Ue(e.childNodes,(function(e,t){return If(t)&&"BR"!==t.nodeName?e=e.concat(Uf(t)):e.push(t),e}),[]):[]},qf=function(e,t){while(e=e.previousSibling){if(!Mf(e))break;t+=e.data.length}return t},zf=function(e){return function(t){return e===t}},Hf=function(e){var t,n;t=Uf(Vf(e)),n=qe(t,zf(e),e),t=t.slice(0,n+1);var r=Ue(t,(function(e,n,r){return Mf(n)&&Mf(t[r-1])&&e++,e}),0);return t=Fe(t,Hr([e.nodeName])),n=qe(t,zf(e),e),n-r},$f=function(e){var t;return t=Mf(e)?"text()":e.nodeName.toLowerCase(),t+"["+Hf(e)+"]"},Wf=function(e,t,n){var r=[];for(t=t.parentNode;t!==e;t=t.parentNode){if(n&&n(t))break;r.push(t)}return r},Kf=function(e,t){var n,r,o,i,a,u=[];return n=t.container(),r=t.offset(),Mf(n)?o=qf(n,r):(i=n.childNodes,r>=i.length?(o="after",r=i.length-1):o="before",n=i[r]),u.push($f(n)),a=Wf(e,n),a=Fe(a,P(Qr)),u=u.concat(Ie(a,(function(e){return $f(e)}))),u.reverse().join("/")+","+o},Qf=function(e,t,n){var r=Uf(e);return r=Fe(r,(function(e,t){return!Mf(e)||!Mf(r[t-1])})),r=Fe(r,Hr([t])),r[n]},Gf=function(e,t){var n,r=e,o=0;while(Mf(r)){if(n=r.data.length,t>=o&&t<=o+n){e=r,t-=o;break}if(!Mf(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return Mf(e)&&t>e.data.length&&(t=e.data.length),Nf(e,t)},Yf=function(e,t){var n;if(!t)return null;var r=t.split(","),o=r[0].split("/");n=r.length>1?r[1]:"before";var i=Ue(o,(function(e,t){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return n?("text()"===n[1]&&(n[1]="#text"),Qf(e,n[1],parseInt(n[2],10))):null}),e);return i?Mf(i)?Gf(i,parseInt(n,10)):(n="after"===n?Ff(i)+1:Ff(i),Nf(i.parentNode,n)):null},Jf=ao,Xf=function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Zr(r);r=r.previousSibling)o+=e(r.data).length;return o},Zf=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],u=r[o?"startOffset":"endOffset"],s=[],c=0,l=e.getRoot();for(Zr(a)?s.push(n?Xf(t,a,u):u):(i=a.childNodes,u>=i.length&&i.length&&(c=1,u=Math.max(0,i.length-1)),s.push(e.nodeIndex(i[u],n)+c));a&&a!==l;a=a.parentNode)s.push(e.nodeIndex(a,n));return s},ed=function(e,t,n,r){var o=t.dom,i={};return i.start=Zf(o,e,n,r,!0),t.isCollapsed()||(i.end=Zf(o,e,n,r,!1)),Ra(r)&&(i.isFakeCaret=!0),i},td=function(e,t,n){var r=0;return pn.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r},nd=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],zr(n)&&"TR"===n.nodeName&&(o=n.childNodes,n=o[Math.min(t?r:r-1,o.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},rd=function(e){return nd(e,!0),nd(e,!1),e},od=function(e,t){var n;if(zr(e)&&(e=of(e,t),Jf(e)))return e;if(ya(e)){if(Zr(e)&&va(e)&&(e=e.parentNode),n=e.previousSibling,Jf(n))return n;if(n=e.nextSibling,Jf(n))return n}},id=function(e){return od(e.startContainer,e.startOffset)||od(e.endContainer,e.endOffset)},ad=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Jf(r)||"IMG"===o)return{name:o,index:td(n.dom,o,r)};var a=id(i);return a?(o=a.tagName,{name:o,index:td(n.dom,o,a)}):ed(e,n,t,i)},ud=function(e){var t=e.getRng();return{start:Kf(e.dom.getRoot(),Nf.fromRangeStart(t)),end:Kf(e.dom.getRoot(),Nf.fromRangeEnd(t))}},sd=function(e){return{rng:e.getRng()}},cd=function(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)},ld=function(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),u=a.nodeName;if("IMG"===u)return{name:u,index:td(n,u,a)};var s=rd(r.cloneRange());if(!i){s.collapse(!1);var c=cd(n,o+"_end",t);Lf(n,s,c)}r=rd(r),r.collapse(!0);var l=cd(n,o+"_start",t);return Lf(n,r,l),e.moveToBookmark({id:o,keep:!0}),{id:o}},fd=function(e,t,n){return 2===t?ad(pa,n,e):3===t?ud(e):t?sd(e):ld(e,!1)},dd=B(ad,N,!0),hd=Fc.DOM,pd="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",md=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var o=e.getParam(t,"","hash");return Ne(o,e.id).getOr(n)}return r},gd=function(e){return e.getParam("iframe_attrs",{})},vd=function(e){return e.getParam("doctype","<!DOCTYPE html>")},bd=function(e){return e.getParam("document_base_url","")},yd=function(e){return md(e,"body_id","tinymce")},wd=function(e){return md(e,"body_class","")},xd=function(e){return e.getParam("content_security_policy","")},_d=function(e){return e.getParam("br_in_pre",!0)},Cd=function(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},Sd=function(e){return e.getParam("forced_root_block_attrs",{})},kd=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Ed=function(e){return e.getParam("no_newline_selector","")},Od=function(e){return e.getParam("keep_styles",!0)},Ad=function(e){return e.getParam("end_container_on_empty_block",!1)},Td=function(e){return pn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Rd=function(e){return pn.explode(e.getParam("font_size_classes",""))},Nd=function(e){return e.getParam("images_dataimg_filter",F,"function")},Dd=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Bd=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Pd=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},jd=function(e){return e.getParam("icons","","string")},Ld=function(e){return e.getParam("icons_url","","string")},Md=function(e){return e.getParam("images_upload_url","","string")},Id=function(e){return e.getParam("images_upload_base_path","","string")},Fd=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Vd=function(e){return e.getParam("images_upload_handler",null,"function")},Ud=function(e){return e.getParam("content_css_cors",!1,"boolean")},qd=function(e){return e.getParam("referrer_policy","","string")},zd=function(e){return e.getParam("language","en","string")},Hd=function(e){return e.getParam("language_url","","string")},$d=function(e){return e.getParam("indent_use_margin",!1)},Wd=function(e){return e.getParam("indentation","40px","string")},Kd=function(e){var t=e.getParam("content_css");return v(t)?X(t.split(","),ft):y(t)?t:!1===t||e.inline?[]:["default"]},Qd=function(e){var t=e.getParam("font_css",[]);return y(t)?t:X(t.split(","),ft)},Gd=function(e){return e.getParam("directionality",ul.isRtl()?"rtl":void 0)},Yd=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Jd=function(e){var t=e.getParam("object_resizing");return!1!==t&&!en.iOS&&(v(t)?t:"table,img,figure.image,div,video,iframe")},Xd=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},Zd=function(e){return e.getParam("placeholder",hd.getAttrib(e.getElement(),"placeholder"),"string")},eh=function(e){return e.getParam("event_root")},th=function(e){return e.getParam("service_message")},nh=function(e){return e.getParam("theme")},rh=function(e){return e.getParam("validate")},oh=function(e){return!1!==e.getParam("inline_boundaries")},ih=function(e){return e.getParam("formats")},ah=function(e){var t=e.getParam("preview_styles",pd);return v(t)?t:""},uh=function(e){return e.getParam("format_empty_lines",!1,"boolean")},sh=function(e){return e.getParam("custom_ui_selector","","string")},ch=function(e){return e.getParam("theme_url")},lh=function(e){return e.getParam("inline")},fh=function(e){return e.getParam("hidden_input")},dh=function(e){return e.getParam("submit_patch")},hh=function(e){return"xml"===e.getParam("encoding")},ph=function(e){return e.getParam("add_form_submit_trigger")},mh=function(e){return e.getParam("add_unload_trigger")},gh=function(e){return""!==Cd(e)},vh=function(e){return e.getParam("custom_undo_redo_levels",0,"number")},bh=function(e){return e.getParam("disable_nodechange")},yh=function(e){return e.getParam("readonly")},wh=function(e){return e.getParam("content_css_cors")},xh=function(e){return e.getParam("plugins","","string")},_h=function(e){return e.getParam("external_plugins")},Ch=function(e){return e.getParam("block_unsupported_drop",!0,"boolean")},Sh=function(e){return e.getParam("visual",!0,"boolean")},kh=function(e){return e.getParam("visual_table_class","mce-item-table","string")},Eh=function(e){return e.getParam("visual_anchor_class","mce-item-anchor","string")},Oh=function(e){return e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string")},Ah=zr,Th=Zr,Rh=function(e){var t=e.parentNode;t&&t.removeChild(e)},Nh=function(e){var t=pa(e);return{count:e.length-t.length,text:t}},Dh=function(e){var t;while(-1!==(t=e.data.lastIndexOf(da)))e.deleteData(t,1)},Bh=function(e,t){return Fh(e),t},Ph=function(e,t){var n=Nh(e.data.substr(0,t.offset())),r=Nh(e.data.substr(t.offset())),o=n.text+r.text;return o.length>0?(Dh(e),Nf(e,t.offset()-n.count)):t},jh=function(e,t){var n=t.container(),r=G(be(n.childNodes),e).map((function(e){return e<t.offset()?Nf(n,t.offset()-1):t})).getOr(t);return Fh(e),r},Lh=function(e,t){return Th(e)&&t.container()===e?Ph(e,t):Bh(e,t)},Mh=function(e,t){return t.container()===e.parentNode?jh(e,t):Bh(e,t)},Ih=function(e,t){return Nf.isTextPosition(t)?Lh(e,t):Mh(e,t)},Fh=function(e){Ah(e)&&ya(e)&&(wa(e)?e.removeAttribute("data-mce-caret"):Rh(e)),Th(e)&&(Dh(e),0===e.data.length&&Rh(e))},Vh=$t().browser,Uh=ao,qh=so,zh=uo,Hh="*[contentEditable=false],video,audio,embed,object",$h=function(e,t,n){var r,o,i=Yl(t.getBoundingClientRect(),n);if("BODY"===e.tagName){var a=e.ownerDocument.documentElement;r=e.scrollLeft||a.scrollLeft,o=e.scrollTop||a.scrollTop}else{var u=e.getBoundingClientRect();r=e.scrollLeft-u.left,o=e.scrollTop-u.top}i.left+=r,i.right+=r,i.top+=o,i.bottom+=o,i.width=1;var s=t.offsetWidth-t.clientWidth;return s>0&&(n&&(s*=-1),i.left+=s,i.right+=s),i},Wh=function(e){for(var t=kl(wn.fromDom(e),Hh),n=0;n<t.length;n++){var r=t[n].dom,o=r.previousSibling;if(Oa(o)){var i=o.data;1===i.length?o.parentNode.removeChild(o):o.deleteData(i.length-1,1)}if(o=r.nextSibling,Ea(o)){i=o.data;1===i.length?o.parentNode.removeChild(o):o.deleteData(0,1)}}},Kh=function(e,t,n,r){var o,i,a=ll(),u=Cd(e),s=u.length>0?u:"p",c=function(e,r){var o;if(l(),zh(r))return null;if(!n(r))return i=xa(r,e),o=r.ownerDocument.createRange(),Gh(i.nextSibling)?(o.setStart(i,0),o.setEnd(i,0)):(o.setStart(i,1),o.setEnd(i,1)),o;i=ka(s,r,e);var u=$h(t,r,e);Nc(i).css("top",u.top);var c=Nc('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(He({},u)).appendTo(t)[0];return a.set({caret:c,element:r,before:e}),e&&Nc(c).addClass("mce-visual-caret-before"),f(),o=r.ownerDocument.createRange(),o.setStart(i,0),o.setEnd(i,0),o},l=function(){Wh(t),i&&(Fh(i),i=null),a.on((function(e){Nc(e.caret).remove(),a.clear()})),o&&(Li.clearInterval(o),o=void 0)},f=function(){o=Li.setInterval((function(){r()?Nc("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Nc("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500)},d=function(){a.on((function(e){var n=$h(t,e.element,e.before);Nc(e.caret).css(He({},n))}))},h=function(){return Li.clearInterval(o)},p=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;}"};return{show:c,hide:l,getCss:p,reposition:d,destroy:h}},Qh=function(){return Vh.isIE()||Vh.isEdge()||Vh.isFirefox()},Gh=function(e){return Uh(e)||qh(e)},Yh=function(e){return Gh(e)||Yr(e)&&Qh()},Jh=ao,Xh=so,Zh=$r("display","block table table-cell table-caption list-item"),ep=ya,tp=va,np=zr,rp=Fa,op=function(e){return e>0},ip=function(e){return e<0},ap=function(e,t){var n;while(n=e(t))if(!tp(n))return n;return null},up=function(e,t,n,r,o){var i=new Vi(e,r),a=Jh(e)||tp(e);if(ip(t)){if(a&&(e=ap(i.prev.bind(i),!0),n(e)))return e;while(e=ap(i.prev.bind(i),o))if(n(e))return e}if(op(t)){if(a&&(e=ap(i.next.bind(i),!0),n(e)))return e;while(e=ap(i.next.bind(i),o))if(n(e))return e}return null},sp=function(e,t){while(e&&e!==t){if(Zh(e))return e;e=e.parentNode}return null},cp=function(e,t,n){return sp(e.container(),n)===sp(t.container(),n)},lp=function(e,t){if(!t)return null;var n=t.container(),r=t.offset();return np(n)?n.childNodes[r+e]:null},fp=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},dp=function(e,t,n){return sp(t,e)===sp(n,e)},hp=function(e,t,n){var r=e?"previousSibling":"nextSibling";while(n&&n!==t){var o=n[r];if(ep(o)&&(o=o[r]),Jh(o)||Xh(o)){if(dp(t,o,n))return o;break}if(rp(o))break;n=n.parentNode}return null},pp=B(fp,!0),mp=B(fp,!1),gp=function(e,t,n){var r,o=B(hp,!0,t),i=B(hp,!1,t),a=n.startContainer,u=n.startOffset;if(va(a)){np(a)||(a=a.parentNode);var s=a.getAttribute("data-mce-caret");if("before"===s&&(r=a.nextSibling,Yh(r)))return pp(r);if("after"===s&&(r=a.previousSibling,Yh(r)))return mp(r)}if(!n.collapsed)return n;if(Zr(a)){if(ep(a)){if(1===e){if(r=i(a),r)return pp(r);if(r=o(a),r)return mp(r)}if(-1===e){if(r=o(a),r)return mp(r);if(r=i(a),r)return pp(r)}return n}if(Oa(a)&&u>=a.data.length-1)return 1===e&&(r=i(a),r)?pp(r):n;if(Ea(a)&&u<=1)return-1===e&&(r=o(a),r)?mp(r):n;if(u===a.data.length)return r=i(a),r?pp(r):n;if(0===u)return r=o(a),r?mp(r):n}return n},vp=function(e,t){return H.from(lp(e?0:-1,t)).filter(Jh)},bp=function(e,t,n){var r=gp(e,t,n);return-1===e?Nf.fromRangeStart(r):Nf.fromRangeEnd(r)},yp=function(e){return H.from(e.getNode()).map(wn.fromDom)},wp=function(e){return H.from(e.getNode(!0)).map(wn.fromDom)},xp=function(e,t){while(t=e(t))if(t.isVisible())return t;return t},_p=function(e,t){var n=cp(e,t);return!(n||!ro(e.getNode()))||n};(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(Df||(Df={}));var Cp=ao,Sp=Zr,kp=zr,Ep=ro,Op=Fa,Ap=Ha,Tp=$a,Rp=function(e,t){var n=[];while(e&&e!==t)n.push(e),e=e.parentNode;return n},Np=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Dp=function(e,t){if(op(e)){if(Op(t.previousSibling)&&!Sp(t.previousSibling))return Nf.before(t);if(Sp(t))return Nf(t,0)}if(ip(e)){if(Op(t.nextSibling)&&!Sp(t.nextSibling))return Nf.after(t);if(Sp(t))return Nf(t,t.data.length)}return ip(e)?Ep(t)?Nf.before(t):Nf.after(t):Nf.before(t)},Bp=function(e,t){var n=t.nextSibling;return n&&Op(n)?Sp(n)?Nf(n,0):Nf.before(n):Pp(Df.Forwards,Nf.after(t),e)},Pp=function(e,t,n){var r,o,i,a;if(!kp(n)||!t)return null;if(t.isEqual(Nf.after(n))&&n.lastChild){if(a=Nf.after(n.lastChild),ip(e)&&Op(n.lastChild)&&kp(n.lastChild))return Ep(n.lastChild)?Nf.before(n.lastChild):a}else a=t;var u=a.container(),s=a.offset();if(Sp(u)){if(ip(e)&&s>0)return Nf(u,--s);if(op(e)&&s<u.length)return Nf(u,++s);r=u}else{if(ip(e)&&s>0&&(o=Np(u,s-1),Op(o)))return!Ap(o)&&(i=up(o,e,Tp,o),i)?Sp(i)?Nf(i,i.data.length):Nf.after(i):Sp(o)?Nf(o,o.data.length):Nf.before(o);if(op(e)&&s<u.childNodes.length&&(o=Np(u,s),Op(o)))return Ep(o)?Bp(n,o):!Ap(o)&&(i=up(o,e,Tp,o),i)?Sp(i)?Nf(i,0):Nf.before(i):Sp(o)?Nf(o,0):Nf.after(o);r=o||a.getNode()}if((op(e)&&a.isAtEnd()||ip(e)&&a.isAtStart())&&(r=up(r,e,F,n,!0),Tp(r,n)))return Dp(e,r);o=up(r,e,Tp,n);var c=ze(ne(Rp(u,n),Cp));return!c||o&&c.contains(o)?o?Dp(e,o):null:(a=op(e)?Nf.after(c):Nf.before(c),a)},jp=function(e){return{next:function(t){return Pp(Df.Forwards,t,e)},prev:function(t){return Pp(Df.Backwards,t,e)}}},Lp=function(e,t,n){var r=e?Nf.before(n):Nf.after(n);return zp(e,t,r)},Mp=function(e){return ro(e)?Nf.before(e):Nf.after(e)},Ip=function(e){return Nf.isTextPosition(e)?0===e.offset():Fa(e.getNode())},Fp=function(e){if(Nf.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Fa(e.getNode(!0))},Vp=function(e,t){return!Nf.isTextPosition(e)&&!Nf.isTextPosition(t)&&e.getNode()===t.getNode(!0)},Up=function(e){return!Nf.isTextPosition(e)&&ro(e.getNode())},qp=function(e,t,n){return e?!Vp(t,n)&&!Up(t)&&Fp(t)&&Ip(n):!Vp(n,t)&&Ip(t)&&Fp(n)},zp=function(e,t,n){var r=jp(t);return H.from(e?r.next(n):r.prev(n))},Hp=function(e,t,n){return zp(e,t,n).bind((function(r){return cp(n,r,t)&&qp(e,n,r)?zp(e,t,r):H.some(r)}))},$p=function(e,t,n,r){return Hp(e,t,n).bind((function(n){return r(n)?$p(e,t,n,r):H.some(n)}))},Wp=function(e,t){var n=e?t.firstChild:t.lastChild;return Zr(n)?H.some(Nf(n,e?0:n.data.length)):n?Fa(n)?H.some(e?Nf.before(n):Mp(n)):Lp(e,t,n):H.none()},Kp=B(zp,!0),Qp=B(zp,!1),Gp=B(Wp,!0),Yp=B(Wp,!1),Jp="_mce_caret",Xp=function(e){return zr(e)&&e.id===Jp},Zp=function(e,t){while(t&&t!==e){if(t.id===Jp)return t;t=t.parentNode}return null},em=function(e){return v(e.start)},tm=function(e){return De(e,"rng")},nm=function(e){return De(e,"id")},rm=function(e){return De(e,"name")},om=function(e){return pn.isArray(e.start)},im=function(e,t){return zr(t)&&e.isBlock(t)&&!t.innerHTML&&!en.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},am=function(e,t){var n,r=e.createRng();return n=Yf(e.getRoot(),t.start),r.setStart(n.container(),n.offset()),n=Yf(e.getRoot(),t.end),r.setEnd(n.container(),n.offset()),r},um=function(e,t){var n=e.ownerDocument.createTextNode(da);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},sm=function(e){return!1===e.hasChildNodes()},cm=function(e,t){return Yp(e).fold(I,(function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0}))},lm=function(e,t,n){return!(!sm(t)||!Zp(e,t))&&(um(t,n),!0)},fm=function(e,t,n,r){var o,i,a,u,s=n[t?"start":"end"],c=e.getRoot();if(s){for(a=s[0],i=c,o=s.length-1;o>=1;o--){if(u=i.childNodes,lm(c,i,r))return!0;if(s[o]>u.length-1)return!!lm(c,i,r)||cm(i,r);i=u[s[o]]}3===i.nodeType&&(a=Math.min(s[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(s[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return!0},dm=function(e){return Zr(e)&&e.data.length>0},hm=function(e,t,n){var r,o,i,a,u,s,c=e.get(n.id+"_"+t),l=n.keep;if(c){if(r=c.parentNode,"start"===t?(l?c.hasChildNodes()?(r=c.firstChild,o=1):dm(c.nextSibling)?(r=c.nextSibling,o=0):dm(c.previousSibling)?(r=c.previousSibling,o=c.previousSibling.data.length):(r=c.parentNode,o=e.nodeIndex(c)+1):o=e.nodeIndex(c),u=r,s=o):(l?c.hasChildNodes()?(r=c.firstChild,o=1):dm(c.previousSibling)?(r=c.previousSibling,o=c.previousSibling.data.length):(r=c.parentNode,o=e.nodeIndex(c)):o=e.nodeIndex(c),u=r,s=o),!l){a=c.previousSibling,i=c.nextSibling,pn.each(pn.grep(c.childNodes),(function(e){Zr(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));while(c=e.get(n.id+"_"+t))e.remove(c,!0);a&&i&&a.nodeType===i.nodeType&&Zr(a)&&!en.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),u=a,s=o)}return H.some(Nf(u,s))}return H.none()},pm=function(e,t){var n=e.createRng();return fm(e,!0,t,n)&&fm(e,!1,t,n)?H.some(n):H.none()},mm=function(e,t){var n=hm(e,"start",t),r=hm(e,"end",t);return fo(n,r.or(n),(function(t,n){var r=e.createRng();return r.setStart(im(e,t.container()),t.offset()),r.setEnd(im(e,n.container()),n.offset()),r}))},gm=function(e,t){return H.from(e.select(t.name)[t.index]).map((function(t){var n=e.createRng();return n.selectNode(t),n}))},vm=function(e,t){var n=e.dom;if(t){if(om(t))return pm(n,t);if(em(t))return H.some(am(n,t));if(nm(t))return mm(n,t);if(rm(t))return gm(n,t);if(tm(t))return H.some(t.rng)}return H.none()},bm=function(e,t,n){return fd(e,t,n)},ym=function(e,t){vm(e,t).each((function(t){e.setRng(t)}))},wm=function(e){return zr(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},xm=function(e){return function(t){return e===t}},_m=xm(ca),Cm=function(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)},Sm=function(e){return!Cm(e)&&!_m(e)},km=function(e){return!!e.nodeType},Em=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Om=function(e,t,n){var r=n.startOffset,o=n.startContainer;if((o!==n.endContainer||!Em(o.childNodes[r]))&&zr(o)){var i=o.childNodes,a=void 0;r<i.length?(o=i[r],a=new Vi(o,e.getParent(o,e.isBlock))):(o=i[i.length-1],a=new Vi(o,e.getParent(o,e.isBlock)),a.next(!0));for(var u=a.current();u;u=a.next())if(Zr(u)&&!Nm(u))return n.setStart(u,0),void t.setRng(n)}},Am=function(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(zr(e)||!Nm(e))return e}},Tm=function(e,t){return km(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},Rm=function(e,t,n){return e.schema.isValidChild(t,n)},Nm=function(e,t){if(void 0===t&&(t=!1),S(e)&&Zr(e)){var n=t?e.data.replace(/ /g," "):e.data;return Ka(n)}return!1},Dm=function(e){return S(e)&&Zr(e)&&0===e.length},Bm=function(e,t){return k(e)?e=e(t):S(t)&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e},Pm=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},jm=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},Lm=function(e,t,n){return jm(e,e.getStyle(t,n),n)},Mm=function(e,t){var n;return e.getParent(t,(function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n})),n},Im=function(e,t,n){return e.getParents(t,n,e.getRoot())},Fm=function(e,t){var n=function(e){var t=function(e){return e.length>1&&"%"===e.charAt(0)};return J(["styles","attributes"],(function(n){return Ne(e,n).exists((function(e){var n=y(e)?e:Re(e);return J(n,t)}))}))};return J(e.formatter.get(t),n)},Vm=function(e,t,n){var r=["inline","block","selector","attributes","styles","classes"],o=function(e){return Ae(e,(function(e,t){return J(r,(function(e){return e===t}))}))};return J(e.formatter.get(t),(function(t){var r=o(t);return J(e.formatter.get(n),(function(e){var t=o(e);return Pe(r,t)}))}))},Um=function(e){return Be(e,"block")},qm=function(e){return Be(e,"selector")},zm=function(e){return Be(e,"inline")},Hm=function(e){return qm(e)&&zm(e)&&co(Ne(e,"mixed"),!0)},$m=function(e){return qm(e)&&!1!==e.expand&&!zm(e)},Wm=wm,Km=Im,Qm=Nm,Gm=Tm,Ym=function(e){return ro(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},Jm=function(e,t){var n=t;while(n){if(zr(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},Xm=function(e,t,n,r){for(var o=t.data,i=n;e?i>=0:i<o.length;e?i--:i++)if(r(o.charAt(i)))return e?i+1:i;return-1},Zm=function(e,t,n){return Xm(e,t,n,(function(e){return _m(e)||Cm(e)}))},eg=function(e,t,n){return Xm(e,t,n,Sm)},tg=function(e,t,n,r,o,i){var a,u=e.getParent(n,e.isBlock)||t,s=function(t,n,r){var i=Kl(e),s=o?i.backwards:i.forwards;return H.from(s(t,n,(function(e,t){return Wm(e.parentNode)?-1:(a=e,r(o,e,t))}),u))},c=s(n,r,Zm);return c.bind((function(e){return i?s(e.container,e.offset+(o?-1:0),eg):H.some(e)})).orThunk((function(){return a?H.some({container:a,offset:o?0:a.length}):H.none()}))},ng=function(e,t,n,r,o){Zr(r)&&mt(r.data)&&r[o]&&(r=r[o]);for(var i=Km(e,r),a=0;a<i.length;a++)for(var u=0;u<t.length;u++){var s=t[u];if((!S(s.collapsed)||s.collapsed===n.collapsed)&&(qm(s)&&e.is(i[a],s.selector)))return i[a]}return r},rg=function(e,t,n,r){var o=n,i=e.dom,a=i.getRoot(),u=t[0];if(Um(u)&&(o=u.wrapper?null:i.getParent(n,u.block,a)),!o){var s=i.getParent(n,"LI,TD,TH");o=i.getParent(Zr(n)?n.parentNode:n,(function(t){return t!==a&&Gm(e,t)}),s)}if(o&&Um(u)&&u.wrapper&&(o=Km(i,o,"ul,ol").reverse()[0]||o),!o){o=n;while(o[r]&&!i.isBlock(o[r]))if(o=o[r],Pm(o,"br"))break}return o||n},og=function(e,t,n,r){var o=n.parentNode;return!S(n[r])&&(!(o!==t&&!C(o)&&!e.isBlock(o))||og(e,t,o,r))},ig=function(e,t,n,r,o){var i=n,a=o?"previousSibling":"nextSibling",u=e.getRoot();if(Zr(n)&&!Qm(n)&&(o?r>0:r<n.data.length))return n;while(1){if(!t[0].block_expand&&e.isBlock(i))return i;for(var s=i[a];s;s=s[a]){var c=Zr(s)&&!og(e,u,s,a);if(!Wm(s)&&!Ym(s)&&!Qm(s,c))return i}if(i===u||i.parentNode===u){n=i;break}i=i.parentNode}return n},ag=function(e){return Wm(e.parentNode)||Wm(e)},ug=function(e,t,n,r){void 0===r&&(r=!1);var o=t.startContainer,i=t.startOffset,a=t.endContainer,u=t.endOffset,s=e.dom,c=n[0];if(zr(o)&&o.hasChildNodes()&&(o=of(o,i),Zr(o)&&(i=0)),zr(a)&&a.hasChildNodes()&&(a=of(a,t.collapsed?u:u-1),Zr(a)&&(u=a.nodeValue.length)),o=Jm(s,o),a=Jm(s,a),ag(o)&&(o=Wm(o)?o:o.parentNode,o=t.collapsed?o.previousSibling||o:o.nextSibling||o,Zr(o)&&(i=t.collapsed?o.length:0)),ag(a)&&(a=Wm(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Zr(a)&&(u=t.collapsed?0:a.length)),t.collapsed){var l=tg(s,e.getBody(),o,i,!0,r);l.each((function(e){var t=e.container,n=e.offset;o=t,i=n}));var f=tg(s,e.getBody(),a,u,!1,r);f.each((function(e){var t=e.container,n=e.offset;a=t,u=n}))}return(zm(c)||c.block_expand)&&(zm(c)&&Zr(o)&&0!==i||(o=ig(s,n,o,i,!0)),zm(c)&&Zr(a)&&u!==a.nodeValue.length||(a=ig(s,n,a,u,!1))),$m(c)&&(o=ng(s,n,t,o,"previousSibling"),a=ng(s,n,t,a,"nextSibling")),(Um(c)||qm(c))&&(o=rg(e,n,o,"previousSibling"),a=rg(e,n,a,"nextSibling"),Um(c)&&(s.isBlock(o)||(o=ig(s,n,o,i,!0)),s.isBlock(a)||(a=ig(s,n,a,u,!1)))),zr(o)&&(i=s.nodeIndex(o),o=o.parentNode),zr(a)&&(u=s.nodeIndex(a)+1,a=a.parentNode),{startContainer:o,startOffset:i,endContainer:a,endOffset:u}},sg=function(e,t,n){var r=t.startOffset,o=of(t.startContainer,r),i=t.endOffset,a=of(t.endContainer,i-1),u=function(e){var t=e[0];Zr(t)&&t===o&&r>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===i&&e.length>0&&n===a&&Zr(n)&&e.splice(e.length-1,1),e},s=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},c=function(t,n){return e.getParent(t,(function(e){return e.parentNode===n}),n)},l=function(e,t,r){for(var o=r?"nextSibling":"previousSibling",i=e,a=i.parentNode;i&&i!==t;i=a){a=i.parentNode;var c=s(i===e?i:i[o],o);c.length&&(r||c.reverse(),n(u(c)))}};if(o===a)return n(u([o]));var f=e.findCommonAncestor(o,a);if(e.isChildOf(o,a))return l(o,f,!0);if(e.isChildOf(a,o))return l(a,f);var d=c(o,f)||o,h=c(a,f)||a;l(o,d,!0);var p=s(d===o?d:d.nextSibling,"nextSibling",h===a?h.nextSibling:h);p.length&&n(u(p)),l(a,h)},cg=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},lg=function(e){return ce(e,(function(e){var t=rf(e);return t?[wn.fromDom(t)]:[]}))},fg=function(e){return cg(e).length>1},dg=function(e){return ne(lg(e),ia)},hg=function(e){return kl(e,"td[data-mce-selected],th[data-mce-selected]")},pg=function(e,t){var n=hg(t);return n.length>0?n:dg(e)},mg=function(e){return pg(cg(e.selection.getSel()),wn.fromDom(e.getBody()))},gg=function(e,t){return Ei(e,"table",t)},vg=function(e){var t=e.startContainer,n=e.startOffset;return Zr(t)?0===n?H.some(wn.fromDom(t)):H.none():H.from(t.childNodes[n]).map(wn.fromDom)},bg=function(e){var t=e.endContainer,n=e.endOffset;return Zr(t)?n===t.data.length?H.some(wn.fromDom(t)):H.none():H.from(t.childNodes[n-1]).map(wn.fromDom)},yg=function(e){return ir(e).fold(R([e]),(function(t){return[e].concat(yg(t))}))},wg=function(e){return ar(e).fold(R([e]),(function(t){return"br"===Mn(t)?Zn(t).map((function(t){return[e].concat(wg(t))})).getOr([]):[e].concat(wg(t))}))},xg=function(e,t){return fo(vg(t),bg(t),(function(t,n){var r=ae(yg(e),B(Bn,t)),o=ae(wg(e),B(Bn,n));return r.isSome()&&o.isSome()})).getOr(!1)},_g=function(e,t,n,r){var o=n,i=new Vi(n,o),a=Ae(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!Y(["td","th","table"],t.toLowerCase())}));do{if(Zr(n)&&0!==pn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))},Cg=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},Sg=function(e,t){var n=mg(e);n.length>0?Z(n,(function(n){var r=n.dom,o=e.dom.createRng();o.setStartBefore(r),o.setEndAfter(r),t(o,!0)})):t(e.selection.getRng(),!1)},kg=function(e,t,n){var r=ld(e,t);n(r),e.moveToBookmark(r)},Eg=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?H.from(t.dom.nodeValue):H.none()},o=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}},Og=Eg(qn,"text"),Ag=function(e){return Og.get(e)},Tg=function(e){return qn(e)&&Ag(e)===da},Rg=function(e,t,n,r){return Yn(t).fold((function(){return"skipping"}),(function(o){return"br"===r||Tg(t)?"valid":Rl(t)?"existing":Xp(t.dom)?"caret":Rm(e,n,r)&&Rm(e,Mn(o),n)?"valid":"invalid-child"}))},Ng=function(e,t){var n=ug(e,t,[{inline:"span"}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Dg=function(e,t,n,r){var o=t.uid,i=void 0===o?Ml("mce-annotation"):o,a=$e(t,["uid"]),u=wn.fromTag("span",e);wl(u,El()),vo(u,""+Al(),i),vo(u,""+Ol(),n);var s=r(i,a),c=s.attributes,l=void 0===c?{}:c,f=s.classes,d=void 0===f?[]:f;return bo(u,l),Il(u,d),u},Bg=function(e,t,n,r,o){var i=[],a=Dg(e.getDoc(),o,n,r),u=ll(),s=function(){u.clear()},c=function(){return u.get().getOrThunk((function(){var e=Hl(a);return i.push(e),u.set(e),e}))},l=function(e){Z(e,f)},f=function(t){var n=Rg(e,t,"span",Mn(t));switch(n){case"invalid-child":s();var r=rr(t);l(r),s();break;case"valid":var o=c();_r(t,o);break}},d=function(e){var t=X(e,wn.fromDom);l(t)};return sg(e.dom,t,(function(e){s(),d(e)})),i},Pg=function(e,t,n,r){e.undoManager.transact((function(){var o=e.selection,i=o.getRng(),a=mg(e).length>0;if(i.collapsed&&!a&&Ng(e,i),o.getRng().collapsed&&!a){var u=Dg(e.getDoc(),r,t,n.decorate);ql(u,ca),o.getRng().insertNode(u.dom),o.select(u.dom)}else kg(o,!1,(function(){Sg(e,(function(o){Bg(e,o,t,n.decorate,r)}))}))}))},jg=function(e){var t=jl();Pl(e,t);var n=Bl(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each((function(t){Pg(e,n,t,r)}))},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){Tl(e,H.some(t)).each((function(e){var t=e.elements;Z(t,Or)}))},getAll:function(t){var n=Dl(e,t);return Ce(n,(function(e){return X(e,(function(e){return e.dom}))}))}}},Lg=function(e){return{getBookmark:B(bm,e),moveToBookmark:B(ym,e)}};Lg.isBookmarkNode=wm;var Mg=function(e,t){while(t&&t!==e){if(io(t)||ao(t))return t;t=t.parentNode}return null},Ig=function(e,t,n){if(n.collapsed)return!1;if(en.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(zr(r))return J(r.getClientRects(),(function(n){return tf(n,e,t)}))}return J(n.getClientRects(),(function(n){return tf(n,e,t)}))},Fg=function(e,t){return e.fire("PreProcess",t)},Vg=function(e,t){return e.fire("PostProcess",t)},Ug=function(e){return e.fire("remove")},qg=function(e){return e.fire("detach")},zg=function(e,t){return e.fire("SwitchMode",{mode:t})},Hg=function(e,t,n,r,o){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:o})},$g=function(e,t,n,r,o){e.fire("ObjectResized",{target:t,width:n,height:r,origin:o})},Wg=function(e){return e.fire("PreInit")},Kg=function(e){return e.fire("PostRender")},Qg=function(e){return e.fire("Init")},Gg=function(e,t){return e.fire("PlaceholderToggle",{state:t})},Yg=function(e,t,n){return e.fire(t,n)},Jg=function(e,t,n,r){return e.fire("FormatApply",{format:t,node:n,vars:r})},Xg=function(e,t,n,r){return e.fire("FormatRemove",{format:t,node:n,vars:r})},Zg={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||Zg.metaKeyPressed(e)},metaKeyPressed:function(e){return en.mac?e.metaKey:e.ctrlKey&&!e.altKey}},ev=ao,tv=function(e,t){var n,r,o,i,a,u,s,c,l,f,d,h,p,m,g,v,b,y="data-mce-selected",w=t.dom,x=pn.each,_=t.getDoc(),C=document,k=Math.abs,E=Math.round,O=t.getBody(),A={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},T=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},R=function(e){return so(e)||w.hasClass(e,"mce-preview-object")},N=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return T(e.target)&&!Ig(n.clientX,n.clientY,t)}return T(e.target)&&!Ig(e.clientX,e.clientY,t)},D=function(e){var n=e.target;N(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},B=function(e){return w.is(e,"figure.image")?[e.querySelector("img")]:w.hasClass(e,"mce-preview-object")&&S(e.firstElementChild)?[e,e.firstElementChild]:[e]},P=function(e){var n=Jd(t);return!!n&&("false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&(w.hasClass(e,"mce-preview-object")?Tn(wn.fromDom(e.firstElementChild),n):Tn(wn.fromDom(e),n))))},j=function(e){return R(e)?w.create("img",{src:en.transparentSrc}):e.cloneNode(!0)},L=function(e,n,r){if(S(r)){var o=B(e);Z(o,(function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?w.setStyle(e,n,r):w.setAttrib(e,n,""+r)}))}},M=function(e,t,n){L(e,"width",t),L(e,"height",n)},I=function(e){var a,y,x,_,C;a=e.screenX-u,y=e.screenY-s,m=a*i[2]+f,g=y*i[3]+d,m=m<5?5:m,g=g<5?5:g,x=(T(n)||R(n))&&!1!==Xd(t)?!Zg.modifierPressed(e):Zg.modifierPressed(e),x&&(k(a)>k(y)?(g=E(m*h),m=E(g/h)):(m=E(g/h),g=E(m*h))),M(r,m,g),_=i.startPos.x+a,C=i.startPos.y+y,_=_>0?_:0,C=C>0?C:0,w.setStyles(o,{left:_,top:C,display:"block"}),o.innerHTML=m+" &times; "+g,i[2]<0&&r.clientWidth<=m&&w.setStyle(r,"left",c+(f-m)),i[3]<0&&r.clientHeight<=g&&w.setStyle(r,"top",l+(d-g)),a=O.scrollWidth-v,y=O.scrollHeight-b,a+y!==0&&w.setStyles(o,{left:_-a,top:C-y}),p||(Hg(t,n,f,d,"corner-"+i.name),p=!0)},F=function(){var e=p;p=!1,e&&(L(n,"width",m),L(n,"height",g)),w.unbind(_,"mousemove",I),w.unbind(_,"mouseup",F),C!==_&&(w.unbind(C,"mousemove",I),w.unbind(C,"mouseup",F)),w.remove(r),w.remove(o),w.remove(a),V(n),e&&($g(t,n,m,g,"corner-"+i.name),w.setAttrib(n,"style",w.getAttrib(n,"style"))),t.nodeChanged()},V=function(e){H();var c=w.getPos(e,O),l=c.x,p=c.y,S=e.getBoundingClientRect(),k=S.width||S.right-S.left,E=S.height||S.bottom-S.top;n!==e&&(U(),n=e,m=g=0);var T=t.fire("ObjectSelected",{target:e}),R=w.getAttrib(n,y,"1");P(e)&&!T.isDefaultPrevented()?x(A,(function(e,t){var c,m=function(c){var m=B(n)[0];u=c.screenX,s=c.screenY,f=m.clientWidth,d=m.clientHeight,h=d/f,i=e,i.name=t,i.startPos={x:k*e[0]+l,y:E*e[1]+p},v=O.scrollWidth,b=O.scrollHeight,a=w.add(O,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),w.setStyles(a,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),r=j(n),w.addClass(r,"mce-clonedresizable"),w.setAttrib(r,"data-mce-bogus","all"),r.contentEditable="false",w.setStyles(r,{left:l,top:p,margin:0}),M(r,k,E),r.removeAttribute(y),O.appendChild(r),w.bind(_,"mousemove",I),w.bind(_,"mouseup",F),C!==_&&(w.bind(C,"mousemove",I),w.bind(C,"mouseup",F)),o=w.add(O,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},f+" &times; "+d)};c=w.get("mceResizeHandle"+t),c&&w.remove(c),c=w.add(O,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===en.ie&&(c.contentEditable=!1),w.bind(c,"mousedown",(function(e){e.stopImmediatePropagation(),e.preventDefault(),m(e)})),e.elm=c,w.setStyles(c,{left:k*e[0]+l-c.offsetWidth/2,top:E*e[1]+p-c.offsetHeight/2})})):U(),w.getAttrib(n,y)||n.setAttribute(y,R)},U=function(){H(),n&&n.removeAttribute(y),_e(A,(function(e,t){var n=w.get("mceResizeHandle"+t);n&&(w.unbind(n),w.remove(n))}))},q=function(n){var r,o,i=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};p||t.removed||(x(w.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(y)})),o="mousedown"===n.type?n.target:e.getNode(),o=w.$(o).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],i(o,O)&&($(),r=e.getStart(!0),i(r,o)&&i(e.getEnd(!0),o))?V(o):U())},z=function(e){return ev(Mg(t.getBody(),e))},H=function(){_e(A,(function(e){e.elm&&(w.unbind(e.elm),delete e.elm)}))},$=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}};t.on("init",(function(){if($(),en.browser.isIE()||en.browser.isEdge()){t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;p||!/^(TABLE|IMG|HR)$/.test(r)||z(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())}));var e=function(e){var n=function(e){Li.setEditorTimeout(t,(function(){return t.selection.select(e)}))};if(z(e.target)||so(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))};w.bind(O,"mscontrolselect",e),t.on("remove",(function(){return w.unbind(O,"mscontrolselect",e)}))}var r=Li.throttle((function(e){t.composing||q(e)}));t.on("nodechange ResizeEditor ResizeWindow ResizeContent drop FullscreenStateChanged",r),t.on("keyup compositionend",(function(e){n&&"TABLE"===n.nodeName&&r(e)})),t.on("hide blur",U),t.on("contextmenu longpress",D,!0)})),t.on("remove",H);var W=function(){n=r=a=null};return{isResizable:P,showResizeRect:V,hideResizeRect:U,updateResizeRect:q,destroy:W}},nv=function(e){return io(e)||ao(e)},rv=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},ov=function(e,t,n){var r,o=n.elementFromPoint(e,t),i=n.body.createTextRange();if(o&&"HTML"!==o.tagName||(o=n.body),i.moveToElementText(o),r=pn.toArray(i.getClientRects()),r=r.sort((function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n})),r.length>0){t=(r[0].bottom+r[0].top)/2;try{return i.moveToPoint(e,t),i.collapse(!0),i}catch(a){}}return null},iv=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return ao(rv(n,t,nv))?null:e},av=function(e,t,n){var r,o,i=n;if(i.caretPositionFromPoint)o=i.caretPositionFromPoint(e,t),o&&(r=n.createRange(),r.setStart(o.offsetNode,o.offset),r.collapse(!0));else if(i.caretRangeFromPoint)r=i.caretRangeFromPoint(e,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=ov(e,t,n)}return iv(r,n.body)}return r},uv=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},sv=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},cv=function(e,t,n){return null!==sv(e,t,n)},lv=function(e,t,n){return cv(e,t,(function(e){return e.nodeName===n}))},fv=function(e){return e&&"TABLE"===e.nodeName},dv=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},hv=function(e,t){return ya(e)&&!1===cv(e,t,Xp)},pv=function(e,t,n){var r=new Vi(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());while(t=r[n?"prev":"next"]())if(ro(t))return!0},mv=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},gv=function(e,t){while(t&&t!==e){if(ao(t))return!0;t=t.parentNode}return!1},vv=function(e,t,n,r,o){var i,a,u=e.getRoot(),s=e.schema.getNonEmptyElements(),c=e.getParent(o.parentNode,e.isBlock)||u;if(r&&ro(o)&&t&&e.isEmpty(c))return H.some(Nf(o.parentNode,e.nodeIndex(o)));var l=new Vi(o,c);while(a=l[r?"prev":"next"]()){if("false"===e.getContentEditableParent(a)||hv(a,u))return H.none();if(Zr(a)&&a.nodeValue.length>0)return!1===lv(a,u,"A")?H.some(Nf(a,r?a.nodeValue.length:0)):H.none();if(e.isBlock(a)||s[a.nodeName.toLowerCase()])return H.none();i=a}return n&&i?H.some(Nf(i,0)):H.none()},bv=function(e,t,n,r){var o,i,a,u,s=e.getRoot(),c=!1;o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"];var l=zr(o)&&i===o.childNodes.length,f=e.schema.getNonEmptyElements();if(u=n,ya(o))return H.none();if(zr(o)&&i>o.childNodes.length-1&&(u=!1),to(o)&&(o=s,i=0),o===s){if(u&&(a=o.childNodes[i>0?i-1:0],a)){if(ya(a))return H.none();if(f[a.nodeName]||fv(a))return H.none()}if(o.hasChildNodes()){if(i=Math.min(!u&&i>0?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=Zr(o)&&l?o.data.length:0,!t&&o===s.lastChild&&fv(o))return H.none();if(gv(s,o)||ya(o))return H.none();if(o.hasChildNodes()&&!1===fv(o)){a=o;var d=new Vi(o,s);do{if(ao(a)||ya(a)){c=!1;break}if(Zr(a)&&a.nodeValue.length>0){i=u?0:a.nodeValue.length,o=a,c=!0;break}if(f[a.nodeName.toLowerCase()]&&!dv(a)){i=e.nodeIndex(a),o=a.parentNode,u||i++,c=!0;break}}while(a=u?d.next():d.prev())}}}return t&&(Zr(o)&&0===i&&vv(e,l,t,!0,o).each((function(e){o=e.container(),i=e.offset(),c=!0})),zr(o)&&(a=o.childNodes[i],a||(a=o.childNodes[i-1]),!a||!ro(a)||mv(a,"A")||pv(e,a,!1)||pv(e,a,!0)||vv(e,l,t,!0,a).each((function(e){o=e.container(),i=e.offset(),c=!0})))),u&&!t&&Zr(o)&&i===o.nodeValue.length&&vv(e,l,t,!1,o).each((function(e){o=e.container(),i=e.offset(),c=!0})),c?H.some(Nf(o,i)):H.none()},yv=function(e,t){var n=t.collapsed,r=t.cloneRange(),o=Nf.fromRangeStart(t);return bv(e,n,!0,r).each((function(e){n&&Nf.isAbove(o,e)||r.setStart(e.container(),e.offset())})),n||bv(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),uv(t,r)?H.none():H.some(r)},wv=function(e,t){return e.splitText(t)},xv=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&Zr(t)?n>0&&n<t.nodeValue.length&&(r=wv(t,n),t=r.previousSibling,o>n?(o-=n,t=r=wv(r,o).previousSibling,o=r.nodeValue.length,n=0):o=0):(Zr(t)&&n>0&&n<t.nodeValue.length&&(t=wv(t,n),n=0),Zr(r)&&o>0&&o<r.nodeValue.length&&(r=wv(r,o).previousSibling,o=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}},_v=function(e){var t=function(t,n){return sg(e,t,n)},n=xv,r=function(t){return yv(e,t).fold(I,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))};return{walk:t,split:n,normalize:r}};_v.compareRanges=uv,_v.getCaretRangeFromPoint=av,_v.getSelectedNode=rf,_v.getNode=of;var Cv,Sv=function(e,t){var n=function(t,n){if(!E(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;mo(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var o=Eo(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return oe(t,(function(t,n){var r=Eo(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o}),0)},a=function(e,t,n){var r=i(e,n),o=t>r?t-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}},kv=Sv("height",(function(e){var t=e.dom;return Ar(e)?t.getBoundingClientRect().height:t.offsetHeight})),Ev=function(e){return kv.get(e)},Ov=function(e,t){var n=e.view(t);return n.fold(R([]),(function(t){var n=e.owner(t),r=Ov(e,n);return[t].concat(r)}))},Av=function(e,t){var n=t.owner(e);return Ov(t,n)},Tv=function(e){var t,n=e.dom===document?H.none():H.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(wn.fromDom)},Rv=function(e){return Kn(e)},Nv=Object.freeze({__proto__:null,view:Tv,owner:Rv}),Dv=function(e){var t=wn.fromDom(document),n=jr(t),r=Av(e,Nv),o=Pr(e),i=re(r,(function(e,t){var n=Pr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return Rr(i.left+o.left+n.left,i.top+o.top+n.top)},Bv=function(e){return"textarea"===Mn(e)},Pv=function(e,t){var n=e.fire("ScrollIntoView",t);return n.isDefaultPrevented()},jv=function(e,t){e.fire("AfterScrollIntoView",t)},Lv=function(e,t){var n=rr(e);if(0===n.length||Bv(e))return{element:e,offset:t};if(t<n.length&&!Bv(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Bv(r)?{element:e,offset:t}:"img"===Mn(r)?{element:r,offset:1}:qn(r)?{element:r,offset:Ag(r).length}:{element:r,offset:rr(r).length}},Mv=function(e,t){var n=Br(e),r=Ev(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}},Iv=function(e,t){var n=Lv(e,t),r=wn.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">'+da+"</span>");return br(n.element,r),Mv(r,(function(){return Er(r)}))},Fv=function(e){return Mv(wn.fromDom(e),O)},Vv=function(e,t,n,r){Hv(e,(function(o,i){return qv(e,t,n,r)}),n)},Uv=function(e,t,n,r,o){var i={elm:r.element.dom,alignToTop:o};if(!Pv(e,i)){var a=jr(t).top;n(t,a,r,o),jv(e,i)}},qv=function(e,t,n,r){var o=wn.fromDom(e.getBody()),i=wn.fromDom(e.getDoc());Ro(o);var a=Iv(wn.fromDom(n.startContainer),n.startOffset);Uv(e,i,t,a,r),a.cleanup()},zv=function(e,t,n,r){var o=wn.fromDom(e.getDoc());Uv(e,o,n,Fv(t),r)},Hv=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,a=n.endOffset;t(wn.fromDom(r),wn.fromDom(i));var u=e.dom.createRng();u.setStart(r,o),u.setEnd(i,a),e.selection.setRng(n)},$v=function(e,t,n,r){var o=e.pos;if(n)Lr(o.left,o.top,r);else{var i=o.top-t+e.height;Lr(o.left,i,r)}},Wv=function(e,t,n,r,o){var i=n+t,a=r.pos.top,u=r.bottom,s=u-a>=n;if(a<t)$v(r,n,!1!==o,e);else if(a>i){var c=s?!1!==o:!0===o;$v(r,n,c,e)}else u>i&&!s&&$v(r,n,!0===o,e)},Kv=function(e,t,n,r){var o=e.dom.defaultView.innerHeight;Wv(e,t,o,n,r)},Qv=function(e,t,n,r){var o=e.dom.defaultView.innerHeight;Wv(e,t,o,n,r);var i=Dv(n.element),a=Vr(window);i.top<a.y?Mr(n.element,!1!==r):i.top>a.bottom&&Mr(n.element,!0===r)},Gv=function(e,t,n){return Vv(e,Kv,t,n)},Yv=function(e,t,n){return zv(e,t,Kv,n)},Jv=function(e,t,n){return Vv(e,Qv,t,n)},Xv=function(e,t,n){return zv(e,t,Qv,n)},Zv=function(e,t,n){var r=e.inline?Yv:Xv;r(e,t,n)},eb=function(e,t,n){var r=e.inline?Gv:Jv;r(e,t,n)},tb=function(){return wn.fromDom(document)},nb=function(e){return e.dom.focus()},rb=function(e){var t=dr(e).dom;return e.dom===t.activeElement},ob=function(e){return void 0===e&&(e=tb()),H.from(e.dom.activeElement).map(wn.fromDom)},ib=function(e){return ob(dr(e)).filter((function(t){return e.dom.contains(t.dom)}))},ab=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},ub={create:ab},sb=ei.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),cb=function(e,t,n,r){return e.fold(t,n,r)},lb=function(e){return e.fold(N,N,N)},fb=sb.before,db=sb.on,hb=sb.after,pb={before:fb,on:db,after:hb,cata:cb,getStart:lb},mb=ei.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),gb=function(e){return mb.exact(e.start,e.soffset,e.finish,e.foffset)},vb=function(e){return e.match({domRange:function(e){return wn.fromDom(e.startContainer)},relative:function(e,t){return pb.getStart(e)},exact:function(e,t,n,r){return e}})},bb=mb.domRange,yb=mb.relative,wb=mb.exact,xb=function(e){var t=vb(e);return Gn(t)},_b=ub.create,Cb={domRange:bb,relative:yb,exact:wb,exactFromRange:gb,getWin:xb,range:_b},Sb=$t().browser,kb=function(e,t){var n=qn(t)?Ag(t).length:rr(t).length+1;return e>n?n:e<0?0:e},Eb=function(e){return Cb.range(e.start,kb(e.soffset,e.start),e.finish,kb(e.foffset,e.finish))},Ob=function(e,t){return!qr(t.dom)&&(Ln(e,t)||Bn(e,t))},Ab=function(e){return function(t){return Ob(e,t.start)&&Ob(e,t.finish)}},Tb=function(e){return!0===e.inline||Sb.isIE()},Rb=function(e){return Cb.range(wn.fromDom(e.startContainer),e.startOffset,wn.fromDom(e.endContainer),e.endOffset)},Nb=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?H.from(t.getRangeAt(0)):H.none();return n.map(Rb)},Db=function(e){var t=Gn(e);return Nb(t.dom).filter(Ab(e))},Bb=function(e,t){return H.from(t).filter(Ab(e)).map(Eb)},Pb=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),H.some(t)}catch(n){return H.none()}},jb=function(e){var t=Tb(e)?Db(wn.fromDom(e.getBody())):H.none();e.bookmark=t.isSome()?t:e.bookmark},Lb=function(e,t){var n=wn.fromDom(e.getBody()),r=Tb(e)?H.from(t):H.none(),o=r.map(Rb).filter(Ab(n));e.bookmark=o.isSome()?o:e.bookmark},Mb=function(e){var t=e.bookmark?e.bookmark:H.none();return t.bind((function(t){return Bb(wn.fromDom(e.getBody()),t)})).bind(Pb)},Ib=function(e){Mb(e).each((function(t){return e.selection.setRng(t)}))},Fb=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},Vb={isEditorUIElement:Fb},Ub=function(e){return"nodechange"===e.type&&e.selectionChange},qb=function(e,t){var n=function(){t.throttle()};Fc.DOM.bind(document,"mouseup",n),e.on("remove",(function(){Fc.DOM.unbind(document,"mouseup",n)}))},zb=function(e){e.on("focusout",(function(){jb(e)}))},Hb=function(e,t){e.on("mouseup touchend",(function(e){t.throttle()}))},$b=function(e,t){var n=$t().browser;n.isIE()?zb(e):Hb(e,t),e.on("keyup NodeChange",(function(t){Ub(t)||jb(e)}))},Wb=function(e){var t=fl((function(){jb(e)}),0);e.on("init",(function(){e.inline&&qb(e,t),$b(e,t)})),e.on("remove",(function(){t.cancel()}))},Kb=Fc.DOM,Qb=function(e){return Vb.isEditorUIElement(e)},Gb=function(e){var t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},Yb=function(e,t){var n=sh(e),r=Kb.getParent(t,(function(t){return Qb(t)||!!n&&e.dom.is(t,n)}));return null!==r},Jb=function(e){try{var t=dr(wn.fromDom(e.getElement()));return ob(t).fold((function(){return document.body}),(function(e){return e.dom}))}catch(n){return document.body}},Xb=function(e,t){var n=t.editor;Wb(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){Li.setEditorTimeout(n,(function(){var t=e.focusedEditor;Yb(n,Jb(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),Cv||(Cv=function(t){var n=e.activeEditor;n&&gr(t).each((function(t){t.ownerDocument===document&&(t===document.body||Yb(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},Kb.bind(document,"focusin",Cv))},Zb=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(Kb.unbind(document,"focusin",Cv),Cv=null)},ey=function(e){e.on("AddEditor",B(Xb,e)),e.on("RemoveEditor",B(Zb,e))},ty=function(e,t){return e.dom.getParent(t,(function(t){return"true"===e.dom.getContentEditable(t)}))},ny=function(e){return e.collapsed?H.from(of(e.startContainer,e.startOffset)).map(wn.fromDom):H.none()},ry=function(e,t){return ny(t).bind((function(t){return oa(t)?H.some(t):!1===Ln(e,t)?H.some(e):H.none()}))},oy=function(e,t){ry(wn.fromDom(e.getBody()),t).bind((function(e){return Gp(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))},iy=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},ay=function(e){return rb(e)||ib(e).isSome()},uy=function(e){return e.iframeElement&&rb(wn.fromDom(e.iframeElement))},sy=function(e){var t=e.getBody();return t&&ay(wn.fromDom(t))},cy=function(e){var t=dr(wn.fromDom(e.getElement()));return ob(t).filter((function(t){return!Gb(t.dom)&&Yb(e,t.dom)})).isSome()},ly=function(e){return e.inline?sy(e):uy(e)},fy=function(e){return ly(e)||cy(e)},dy=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===ly(e)&&Mb(e).each((function(t){e.selection.setRng(t),r=t}));var o=ty(e,t.getNode());if(e.$.contains(n,o))return iy(o),oy(e,r),void hy(e);e.inline||(en.opera||iy(n),e.getWin().focus()),(en.gecko||e.inline)&&(iy(n),oy(e,r)),hy(e)},hy=function(e){return e.editorManager.setActive(e)},py=function(e,t){e.removed||(t?hy(e):dy(e))},my=function(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return H.from(i).map(wn.fromDom).map((function(e){return r&&t.collapsed?e:or(e,o(e,a)).getOr(e)})).bind((function(e){return Un(e)?H.some(e):Yn(e).filter(Un)})).map((function(e){return e.dom})).getOr(e)},gy=function(e,t,n){return my(e,t,!0,n,(function(e,t){return Math.min(ur(e),t)}))},vy=function(e,t,n){return my(e,t,!1,n,(function(e,t){return t>0?t-1:t}))},by=function(e,t){var n=e;while(e&&Zr(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||n},yy=function(e,t){var n,r,o;if(!t)return e;r=t.startContainer,o=t.endContainer;var i=t.startOffset,a=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===o&&a-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),3===r.nodeType&&3===o.nodeType&&(r=r.length===i?by(r.nextSibling,!0):r.parentNode,o=0===a?by(o.previousSibling,!1):o.parentNode,r&&r===o))?r:n&&3===n.nodeType?n.parentNode:n},wy=function(e,t,n,r){var o,i=[],a=e.getRoot();if(n=e.getParent(n||gy(a,t,t.collapsed),e.isBlock),r=e.getParent(r||vy(a,t,t.collapsed),e.isBlock),n&&n!==a&&i.push(n),n&&r&&n!==r){o=n;var u=new Vi(n,a);while((o=u.next())&&o!==r)e.isBlock(o)&&i.push(o)}return r&&n!==r&&r!==a&&i.push(r),i},xy=function(e,t,n){return H.from(t).map((function(t){var r=e.nodeIndex(t),o=e.createRng();return o.setStart(t.parentNode,r),o.setEnd(t.parentNode,r+1),n&&(_g(e,o,t,!0),_g(e,o,t,!1)),o}))},_y=function(e,t){return X(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))},Cy={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Sy=function(e,t,n){var r=n?"lastChild":"firstChild",o=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[o];if(i)return i;for(var a=e.parent;a&&a!==t;a=a.parent)if(i=a[o],i)return i}},ky=function(e){if(!Ka(e.value))return!1;var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)},Ey=function(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},Oy=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,Cy[t]||1);return n&&_e(n,(function(e,t){r.attr(t,e)})),r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!==typeof e)return void 0!==e&&null!==e&&_e(e,(function(e,t){r.attr(t,e)})),r;if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];var o=n.length;while(o--)if(n[o].name===e)return n.splice(o,1),r}return r}if(e in n.map){o=n.length;while(o--)if(n[o].name===e){n[o].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var o=[];o.map={};for(var i=0,a=t.length;i<a;i++){var u=t[i];"id"!==u.name&&(o[o.length]={name:u.name,value:u.value},o.map[u.name]=u.value)}r.attributes=o}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.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,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=Sy(r,t))r.name===e&&n.push(r);return n},e.prototype.children=function(){for(var e=this,t=[],n=e.firstChild;n;n=n.next)t.push(n);return t},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=Sy(n,e))t.push(n);var r=t.length;while(r--){n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,o=r.firstChild;if(Ey(r))return!1;if(o)do{if(1===o.type){if(o.attr("data-mce-bogus"))continue;if(e[o.name])return!1;if(Ey(o))return!1}if(8===o.type)return!1;if(3===o.type&&!ky(o))return!1;if(3===o.type&&o.parent&&t[o.parent.name]&&Ka(o.value))return!1;if(n&&n(o))return!1}while(o=Sy(o,r));return!0},e.prototype.walk=function(e){return Sy(this,null,e)},e}(),Ay=function(e){var t,n=/data:[^;]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],o={},i=Ml("img"),a=0,u=0;while(t=n.exec(e)){var s=t[0],c=i+"_"+u++;o[c]=s,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(c),a=t.index+s.length}var l=new RegExp(i+"_[0-9]+","g");return 0===a?{prefix:i,uris:o,html:e,re:l}:(a<e.length&&r.push(e.substr(a)),{prefix:i,uris:o,html:r.join(""),re:l})},Ty=function(e,t){return e.replace(t.re,(function(e){return Ne(t.uris,e).getOr(e)}))},Ry=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(e);return t?H.some({type:t[1],data:decodeURIComponent(t[2])}):H.none()},Ny=pn.each,Dy=pn.trim,By="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),Py={ftp:21,http:80,https:443,mailto:25},jy=["img","video"],Ly=function(e,t){return S(e)?!e:!S(t)||!Y(jy,t)},My=function(e,t,n){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?Ly(e.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},Iy=function(){function e(t,n){t=Dy(t),this.settings=n||{};var r=this.settings.base_uri,o=this;if(/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t))o.source=t;else{var i=0===t.indexOf("//");if(0!==t.indexOf("/")||i||(t=(r&&r.protocol||"http")+"://mce_host"+t),!/^[\w\-]*:?\/\//.test(t)){var a=this.settings.base_uri?this.settings.base_uri.path:new e(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)t="//mce_host"+o.toAbsPath(a,t);else{var u=/([^#?]*)([#?]?.*)/.exec(t);t=(r&&r.protocol||"http")+"://mce_host"+o.toAbsPath(a,u[1])+u[2]}}t=t.replace(/@@/g,"(mce_at)");var s=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t);Ny(By,(function(e,t){var n=s[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),o[e]=n})),r&&(o.protocol||(o.protocol=r.protocol),o.userInfo||(o.userInfo=r.userInfo),o.port||"mce_host"!==o.host||(o.port=r.port),o.host&&"mce_host"!==o.host||(o.host=r.host),o.source=""),i&&(o.protocol="")}}return e.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},e.isDomSafe=function(e,t,n){if(void 0===n&&(n={}),n.allow_script_urls)return!0;var r=Au.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{r=decodeURIComponent(r)}catch(o){r=unescape(r)}return!/((java|vb)script|mhtml):/i.test(r)&&!My(n,r,t)},e.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},e.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()},e.prototype.toRelative=function(t){var n;if("./"===t)return t;var r=new e(t,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var o=this.getURI(),i=r.getURI();return o===i||"/"===o.charAt(o.length-1)&&o.substr(0,o.length-1)===i?o:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},e.prototype.toAbsolute=function(t,n){var r=new e(t,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},e.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=Py[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},e.prototype.toRelPath=function(e,t){var n,r,o=0,i="",a=e.substring(0,e.lastIndexOf("/")).split("/"),u=t.split("/");if(a.length>=u.length)for(n=0,r=a.length;n<r;n++)if(n>=u.length||a[n]!==u[n]){o=n+1;break}if(a.length<u.length)for(n=0,r=u.length;n<r;n++)if(n>=a.length||a[n]!==u[n]){o=n+1;break}if(1===o)return t;for(n=0,r=a.length-(o-1);n<r;n++)i+="../";for(n=o-1,r=u.length;n<r;n++)i+=n!==o-1?"/"+u[n]:u[n];return i},e.prototype.toAbsPath=function(e,t){var n,r,o=0,i=[],a=/\/$/.test(t)?"/":"",u=e.split("/"),s=t.split("/");for(Ny(u,(function(e){e&&i.push(e)})),u=i,n=s.length-1,i=[];n>=0;n--)0!==s[n].length&&"."!==s[n]&&(".."!==s[n]?o>0?o--:i.push(s[n]):o++);return n=u.length-o,r=n<=0?fe(i).join("/"):u.slice(0,n).join("/")+"/"+fe(i).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},e.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},e}(),Fy=pn.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),Vy=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},Uy=function(e,t,n){var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,o=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,i=e.getShortEndedElements(),a=1,u=n;while(0!==a){r.lastIndex=u;while(1){var s=r.exec(t);if(null===s)return u;if("!"===s[1]){u=ct(s[2],"--")?zy(t,!1,s.index+"!--".length):zy(t,!0,s.index+1);break}o.lastIndex=r.lastIndex;var c=o.exec(t);if(!w(c)&&c.index===r.lastIndex){"/"===s[1]?a-=1:De(i,s[2])||(a+=1),u=r.lastIndex+c[0].length;break}}}return u},qy=function(e,t){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(e.substr(t))},zy=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&qy(r,n)){var o=r.indexOf("[endif]",n);return r.indexOf(">",o)}if(t){var i=r.indexOf(">",n);return-1!==i?i:r.length}var a=/--!?>/g;a.lastIndex=n;var u=a.exec(e);return u?u.index+u[0].length:r.length},Hy=function(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null},$y=function(e,t){var n;void 0===t&&(t=Fu()),e=e||{};var r=null!==(n=e.document)&&void 0!==n?n:document,o=r.createElement("form");!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var i=e.comment?e.comment:O,a=e.cdata?e.cdata:O,u=e.text?e.text:O,s=e.start?e.start:O,c=e.end?e.end:O,l=e.pi?e.pi:O,f=e.doctype?e.doctype:O,d=function(n,d){void 0===d&&(d="html");var h,p,m,g,v,b,y,w,x,_,C,S,k,E,O,A,T,R,N,D,B=n.html,P=0,j=[],L=0,M=Au.decode,I=pn.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),F="html"===d?0:1,V=function(e){var t,n;t=j.length;while(t--)if(j[t].name===e)break;if(t>=0){for(n=j.length-1;n>=t;n--)e=j[n],e.valid&&c(e.name);j.length=t}},U=function(e,t){return u(Ty(e,n),t)},q=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),i(Ty(t,n)))},z=function(e){return Ty(e,n)},H=function(e,t){var n=e||"",r=!ct(n,"--"),o=zy(B,r,t);return e=B.substr(t,o-t),q(r?n+e:e),o+1},$=function(t,n,i,a,u){if(n=n.toLowerCase(),i=z(n in Y?n:M(i||a||u||"")),J&&!w&&!1===Vy(n)){var s=E[n];if(!s&&O){var c=O.length;while(c--)if(s=O[c],s.pattern.test(n))break;-1===c&&(s=null)}if(!s)return;if(s.validValues&&!(i in s.validValues))return}var l="name"===n||"id"===n;l&&t in Fy&&(i in r||i in o)||I[n]&&!Iy.isDomSafe(i,t,e)||w&&(n in I||0===n.indexOf("on"))||(g.map[n]=i,g.push({name:n,value:i}))},W=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"),K=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,Q=t.getShortEndedElements(),G=e.self_closing_elements||t.getSelfClosingElements(),Y=t.getBoolAttrs(),J=e.validate,X=e.remove_internals,Z=e.fix_self_closing,ee=t.getSpecialElements(),te=B+">";while(h=W.exec(te)){var ne=h[0];if(P<h.index&&U(M(B.substr(P,h.index-P))),p=h[7])p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),V(p);else if(p=h[8]){if(h.index+ne.length>B.length){U(M(B.substr(h.index))),P=h.index+ne.length;continue}p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),x=p in Q,Z&&G[p]&&j.length>0&&j[j.length-1].name===p&&V(p);var re=Hy(K,h[9]);if(null!==re){if("all"===re){P=Uy(t,B,W.lastIndex),W.lastIndex=P;continue}C=!1}if(!J||(_=t.getElementRule(p))){if(C=!0,J&&(E=_.attributes,O=_.attributePatterns),(k=h[9])?(w=-1!==k.indexOf("data-mce-type"),w&&X&&(C=!1),g=[],g.map={},k.replace(K,(function(e,t,n,r,o){return $(p,t,n,r,o),""}))):(g=[],g.map={}),J&&!w){if(A=_.attributesRequired,T=_.attributesDefault,R=_.attributesForced,N=_.removeEmptyAttrs,N&&!g.length&&(C=!1),R){v=R.length;while(v--)S=R[v],y=S.name,D=S.value,"{$uid}"===D&&(D="mce_"+L++),g.map[y]=D,g.push({name:y,value:D})}if(T){v=T.length;while(v--)S=T[v],y=S.name,y in g.map||(D=S.value,"{$uid}"===D&&(D="mce_"+L++),g.map[y]=D,g.push({name:y,value:D}))}if(A){v=A.length;while(v--)if(A[v]in g.map)break;-1===v&&(C=!1)}if(S=g.map["data-mce-bogus"]){if("all"===S){P=Uy(t,B,W.lastIndex),W.lastIndex=P;continue}C=!1}}C&&s(p,g,x)}else C=!1;if(m=ee[p]){m.lastIndex=P=h.index+ne.length,(h=m.exec(B))?(C&&(b=B.substr(P,h.index-P)),P=h.index+h[0].length):(b=B.substr(P),P=B.length),C&&(b.length>0&&U(b,!0),c(p)),W.lastIndex=P;continue}x||(k&&k.indexOf("/")===k.length-1?C&&c(p):j.push({name:p,valid:C}))}else if(p=h[1])q(p);else if(p=h[2]){var oe=1===F||e.preserve_cdata||j.length>0&&t.isValidChild(j[j.length-1].name,"#cdata");if(!oe){P=H("",h.index+2),W.lastIndex=P;continue}a(p)}else if(p=h[3])f(p);else{if((p=h[4])||"<!"===ne){P=H(p,h.index+ne.length),W.lastIndex=P;continue}if(p=h[5]){if(1!==F){P=H("?",h.index+2),W.lastIndex=P;continue}l(p,h[6])}}P=h.index+ne.length}for(P<B.length&&U(M(B.substr(P))),v=j.length-1;v>=0;v--)p=j[v],p.valid&&c(p.name)},h=function(e,t){void 0===t&&(t="html"),d(Ay(e),t)};return{parse:h}};$y.findEndTag=Uy;var Wy=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},Ky=function(e,t){var n,r=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,o=e.schema,i=Wy(e.getTempAttrs(),t),a=o.getShortEndedElements();while(n=r.exec(i)){var u=r.lastIndex,s=n[0].length,c=void 0;c=a[n[1]]?u:$y.findEndTag(o,i,u),i=i.substring(0,u-s)+i.substring(c),r.lastIndex=u-s}return pa(i)},Qy=Ky,Gy=function(e,t){var n=Cd(e),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},Yy=function(e,t){return He(He({},e),{format:t,get:!0,getInner:!0})},Jy=function(e,t,n,r){var o,i=Yy(t,n),a=t.no_events?i:e.fire("BeforeGetContent",i);return o="raw"===a.format?pn.trim(Qy(e.serializer,r.innerHTML)):"text"===a.format?e.dom.isEmpty(r)?"":pa(r.innerText||r.textContent):"tree"===a.format?e.serializer.serialize(r,a):Gy(e,e.serializer.serialize(r,a)),Y(["text","tree"],a.format)||aa(wn.fromDom(r))?a.content=o:a.content=pn.trim(o),a.no_events?a.content:e.fire("GetContent",a).content},Xy=function(e,t,n){return H.from(e.getBody()).fold(R("tree"===t.format?new Oy("body",11):""),(function(r){return Jy(e,t,n,r)}))},Zy=pn.each,ew=function(e){var t=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return Zy(e.getAttribs(t),(function(r){var o=r.nodeName.toLowerCase();0!==o.indexOf("_")&&"style"!==o&&0!==o.indexOf("data-")&&(n[o]=e.getAttrib(t,o))})),n},o=function(e,t){var n,r;for(r in e)if(De(e,r)){if(n=t[r],"undefined"===typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(De(t,r))return!1;return!0};return!!o(r(t),r(n))&&(!!o(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))&&(!wm(t)&&!wm(n)))};return{compare:t}},tw=pn.makeMap,nw=function(e){var t=[];e=e||{};var n=e.indent,r=tw(e.indent_before||""),o=tw(e.indent_after||""),i=Au.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,u,s){var c,l,f,d;if(n&&r[e]&&t.length>0&&(d=t[t.length-1],d.length>0&&"\n"!==d&&t.push("\n")),t.push("<",e),u)for(c=0,l=u.length;c<l;c++)f=u[c],t.push(" ",f.name,'="',i(f.value,!0),'"');t[t.length]=!s||a?">":" />",s&&n&&o[e]&&t.length>0&&(d=t[t.length-1],d.length>0&&"\n"!==d&&t.push("\n"))},end:function(e){var r;t.push("</",e,">"),n&&o[e]&&t.length>0&&(r=t[t.length-1],r.length>0&&"\n"!==r&&t.push("\n"))},text:function(e,n){e.length>0&&(t[t.length]=n?e:i(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,r){r?t.push("<?",e," ",i(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$/,"")}}},rw=function(e,t){void 0===t&&(t=Fu());var n=nw(e);e=e||{},e.validate=!("validate"in e)||e.validate;var r=function(r){var o=e.validate,i={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)do{a(e)}while(e=e.next)}};n.reset();var a=function(e){var r=i[e.type];if(r)r(e);else{var u=e.name,s=e.shortEnded,c=e.attributes;if(o&&c&&c.length>1){var l=[];l.map={};var f=t.getElementRule(e.name);if(f){for(var d=0,h=f.attributesOrder.length;d<h;d++){var p=f.attributesOrder[d];if(p in c.map){var m=c.map[p];l.map[p]=m,l.push({name:p,value:m})}}for(d=0,h=c.length;d<h;d++){p=c[d].name;if(!(p in l.map)){m=c.map[p];l.map[p]=m,l.push({name:p,value:m})}}c=l}}if(n.start(e.name,c,s),!s){if(e=e.firstChild)do{a(e)}while(e=e.next);n.end(u)}}};return 1!==r.type||e.inner?i[11](r):a(r),n.getContent()};return{serialize:r}},ow=new Set;(function(){var e=["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"];Z(e,(function(e){ow.add(e)}))})();var iw=["font","text-decoration","text-emphasis"],aw=function(e,t){return we(e.parseStyle(e.getAttrib(t,"style")))},uw=function(e){return ow.has(e)},sw=function(e,t){return le(aw(e,t),(function(e){return!uw(e)}))},cw=function(e){return ne(e,(function(e){return J(iw,(function(t){return ct(e,t)}))}))},lw=function(e,t,n){var r=aw(e,t),o=aw(e,n),i=function(r){var o=e.getStyle(t,r),i=e.getStyle(n,r);return pt(o)&&pt(i)&&o!==i};return J(r,(function(e){var t=function(t){return J(t,(function(t){return t===e}))};if(!t(o)&&t(iw)){var n=cw(o);return J(n,i)}return i(e)}))},fw=function(e,t,n){return H.from(n.container()).filter(Zr).exists((function(r){var o=e?0:-1;return t(r.data.charAt(n.offset()+o))}))},dw=B(fw,!0,Cm),hw=B(fw,!1,Cm),pw=function(e){var t=e.container();return Zr(t)&&(0===t.data.length||ha(t.data)&&Lg.isBookmarkNode(t.parentNode))},mw=function(e,t){return function(n){return H.from(lp(e?0:-1,n)).filter(t).isSome()}},gw=function(e){return oo(e)&&"block"===Eo(wn.fromDom(e),"display")},vw=function(e){return ao(e)&&!Gr(e)},bw=mw(!0,gw),yw=mw(!1,gw),ww=mw(!0,so),xw=mw(!1,so),_w=mw(!0,Yr),Cw=mw(!1,Yr),Sw=mw(!0,vw),kw=mw(!1,vw),Ew=function(e){var t=[],n=e.dom;while(n)t.push(wn.fromDom(n)),n=n.lastChild;return t},Ow=function(e){var t=kl(e,"br"),n=ne(Ew(e).slice(-1),ea);t.length===n.length&&Z(n,Er)},Aw=function(e){kr(e),xr(e,wn.fromHtml('<br data-mce-bogus="1">'))},Tw=function(e){ar(e).each((function(t){Zn(t).each((function(n){Ji(e)&&ea(t)&&Ji(n)&&Er(t)}))}))},Rw=function(e){return e.slice(0,-1)},Nw=function(e,t,n){return Ln(t,e)?Rw(Jn(e,(function(e){return n(e)||Bn(e,t)}))):[]},Dw=function(e,t){return Nw(e,t,I)},Bw=function(e,t){return[e].concat(Dw(e,t))},Pw=function(e,t,n){return $p(e,t,n,pw)},jw=function(e,t){return ae(Bw(wn.fromDom(t.container()),e),Ji)},Lw=function(e,t,n){return Pw(e,t.dom,n).forall((function(e){return jw(t,n).fold((function(){return!1===cp(e,n,t.dom)}),(function(r){return!1===cp(e,n,t.dom)&&Ln(r,wn.fromDom(e.container()))}))}))},Mw=function(e,t,n){return jw(t,n).fold((function(){return Pw(e,t.dom,n).forall((function(e){return!1===cp(e,n,t.dom)}))}),(function(t){return Pw(e,t.dom,n).isNone()}))},Iw=B(Mw,!1),Fw=B(Mw,!0),Vw=B(Lw,!1),Uw=B(Lw,!0),qw=function(e){return yp(e).exists(ea)},zw=function(e,t,n){var r=ne(Bw(wn.fromDom(n.container()),t),Ji),o=ge(r).getOr(t);return zp(e,o.dom,n).filter(qw)},Hw=function(e,t){return yp(t).exists(ea)||zw(!0,e,t).isSome()},$w=function(e,t){return wp(t).exists(ea)||zw(!1,e,t).isSome()},Ww=B(zw,!1),Kw=B(zw,!0),Qw=function(e){return Nf.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},Gw=function(e,t){var n=ne(Bw(wn.fromDom(t.container()),e),Ji);return ge(n).getOr(e)},Yw=function(e,t){return Qw(t)?hw(t):hw(t)||Qp(Gw(e,t).dom,t).exists(hw)},Jw=function(e,t){return Qw(t)?dw(t):dw(t)||Kp(Gw(e,t).dom,t).exists(dw)},Xw=function(e){return Y(["pre","pre-wrap"],e)},Zw=function(e){return yp(e).bind((function(e){return Ci(e,Un)})).exists((function(e){return Xw(Eo(e,"white-space"))}))},ex=function(e,t){return Qp(e.dom,t).isNone()},tx=function(e,t){return Kp(e.dom,t).isNone()},nx=function(e,t){return ex(e,t)||tx(e,t)||Iw(e,t)||Fw(e,t)||$w(e,t)||Hw(e,t)},rx=function(e,t){return!Zw(t)&&(nx(e,t)||Yw(e,t)||Jw(e,t))},ox=function(e,t){return!Zw(t)&&(Iw(e,t)||Vw(e,t)||$w(e,t)||Yw(e,t))},ix=function(e){var t=e.container(),n=e.offset();return Zr(t)&&n<t.data.length?Nf(t,n+1):e},ax=function(e,t){return!Zw(t)&&(Fw(e,t)||Uw(e,t)||Hw(e,t)||Jw(e,t))},ux=function(e,t){return ox(e,t)||ax(e,ix(t))},sx=function(e,t){return _m(e.charAt(t))},cx=function(e){var t=e.container();return Zr(t)&&st(t.data,ca)},lx=function(e){var t=e.split("");return X(t,(function(e,n){return _m(e)&&n>0&&n<t.length-1&&Sm(t[n-1])&&Sm(t[n+1])?" ":e})).join("")},fx=function(e,t){var n=t.data,r=Nf(t,0);return!(!sx(n,0)||ux(e,r))&&(t.data=" "+n.slice(1),!0)},dx=function(e){var t=e.data,n=lx(t);return n!==t&&(e.data=n,!0)},hx=function(e,t){var n=t.data,r=Nf(t,n.length-1);return!(!sx(n,n.length-1)||ux(e,r))&&(t.data=n.slice(0,-1)+" ",!0)},px=function(e,t){return H.some(t).filter(cx).bind((function(t){var n=t.container(),r=fx(e,n)||dx(n)||hx(e,n);return r?H.some(t):H.none()}))},mx=function(e){var t=wn.fromDom(e.getBody());e.selection.isCollapsed()&&px(t,Nf.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))},gx=function(e,t,n){var r=oe(e,(function(r,o){return Cm(o)||_m(o)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+ca}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+o}}),{previousCharIsSpace:!1,str:""});return r.str},vx=function(e,t,n){if(0!==n){var r=wn.fromDom(e),o=_i(r,Ji).getOr(r),i=e.data.slice(t,t+n),a=t+n>=e.data.length&&ax(o,Nf(e,e.data.length)),u=0===t&&ox(o,Nf(e,0));e.replaceData(t,n,gx(i,u,a))}},bx=function(e,t){var n=e.data.slice(t),r=n.length-dt(n).length;vx(e,t,r)},yx=function(e,t){var n=e.data.slice(0,t),r=n.length-ht(n).length;vx(e,t-r,r)},wx=function(e,t,n,r){void 0===r&&(r=!0);var o=ht(e.data).length,i=r?e:t,a=r?t:e;return r?i.appendData(a.data):i.insertData(0,a.data),Er(wn.fromDom(a)),n&&bx(i,o),i},xx=function(e,t){var n=e.container(),r=e.offset();return!1===Nf.isTextPosition(e)&&n===t.parentNode&&r>Nf.before(t).offset()},_x=function(e,t){return xx(t,e)?Nf(t.container(),t.offset()-1):t},Cx=function(e){return Zr(e)?Nf(e,0):Nf.before(e)},Sx=function(e){return Zr(e)?Nf(e,e.data.length):Nf.after(e)},kx=function(e){return Fa(e.previousSibling)?H.some(Sx(e.previousSibling)):e.previousSibling?Yp(e.previousSibling):H.none()},Ex=function(e){return Fa(e.nextSibling)?H.some(Cx(e.nextSibling)):e.nextSibling?Gp(e.nextSibling):H.none()},Ox=function(e,t){var n=Nf.before(t.previousSibling?t.previousSibling:t.parentNode);return Qp(e,n).fold((function(){return Kp(e,Nf.after(t))}),H.some)},Ax=function(e,t){return Kp(e,Nf.after(t)).fold((function(){return Qp(e,Nf.before(t))}),H.some)},Tx=function(e,t){return kx(t).orThunk((function(){return Ex(t)})).orThunk((function(){return Ox(e,t)}))},Rx=function(e,t){return Ex(t).orThunk((function(){return kx(t)})).orThunk((function(){return Ax(e,t)}))},Nx=function(e,t,n){return e?Rx(t,n):Tx(t,n)},Dx=function(e,t,n){return Nx(e,t,n).map(B(_x,n))},Bx=function(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))},Px=function(e){return function(t){return t.dom===e}},jx=function(e,t){return t&&De(e.schema.getBlockElements(),Mn(t))},Lx=function(e){if(nu(e)){var t=wn.fromHtml('<br data-mce-bogus="1">');return kr(e),xr(e,t),H.some(Nf.before(t.dom))}return H.none()},Mx=function(e,t,n){var r=Zn(e).filter(qn),o=er(e).filter(qn);return Er(e),ho(r,o,t,(function(e,t,r){var o=e.dom,i=t.dom,a=o.data.length;return wx(o,i,n),r.container()===i?Nf(o,a):r})).orThunk((function(){return n&&(r.each((function(e){return yx(e.dom,e.dom.length)})),o.each((function(e){return bx(e.dom,0)}))),t}))},Ix=function(e,t){return De(e.schema.getTextInlineElements(),Mn(t))},Fx=function(e,t,n,r){void 0===r&&(r=!0);var o=Dx(t,e.getBody(),n.dom),i=_i(n,B(jx,e),Px(e.getBody())),a=Mx(n,o,Ix(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):i.bind(Lx).fold((function(){r&&Bx(e,t,a)}),(function(n){r&&Bx(e,t,H.some(n))}))},Vx=function(e){return function(t){return Bn(e,t)}},Ux=function(e){return kl(e,"td,th")},qx=function(e,t){var n=function(e){return gg(wn.fromDom(e),t)},r=n(e.startContainer),o=n(e.endContainer),i=r.isSome(),a=o.isSome(),u=fo(r,o,Bn).getOr(!1),s=!u&&i&&a;return{startTable:r,endTable:o,isStartInTable:i,isEndInTable:a,isSameTable:u,isMultiTable:s}},zx=function(e,t){return{start:e,end:t}},Hx=function(e,t,n){return{rng:e,table:t,cells:n}},$x=ei.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Wx=function(e,t){return Ai(wn.fromDom(e),"td,th",t)},Kx=function(e){return!Bn(e.start,e.end)},Qx=function(e,t){return gg(e.start,t).bind((function(n){return gg(e.end,t).bind((function(e){return po(Bn(n,e),n)}))}))},Gx=function(e,t){return!Kx(e)&&Qx(e,t).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))},Yx=function(e,t){var n=Wx(e.startContainer,t),r=Wx(e.endContainer,t);return fo(n,r,zx)},Jx=function(e){return function(t){return gg(t,e).bind((function(e){return ve(Ux(e)).map((function(e){return zx(t,e)}))}))}},Xx=function(e){return function(t){return gg(t,e).bind((function(e){return ge(Ux(e)).map((function(e){return zx(e,t)}))}))}},Zx=function(e){return function(t){return Qx(t,e).map((function(e){return Hx(t,e,Ux(e))}))}},e_=function(e,t,n,r){if(n.collapsed||!e.forall(Kx))return H.none();if(t.isSameTable){var o=e.bind(Zx(r));return H.some({start:o,end:o})}var i=Wx(n.startContainer,r),a=Wx(n.endContainer,r),u=i.bind(Jx(r)).bind(Zx(r)),s=a.bind(Xx(r)).bind(Zx(r));return H.some({start:u,end:s})},t_=function(e,t){return ue(e,(function(e){return Bn(e,t)}))},n_=function(e){return fo(t_(e.cells,e.rng.start),t_(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))},r_=function(e,t,n){return e.exists((function(e){return Gx(e,n)&&xg(e.start,t)}))},o_=function(e,t){var n=t.startTable,r=t.endTable,o=e.cloneRange();return n.each((function(e){return o.setStartAfter(e.dom)})),r.each((function(e){return o.setEndBefore(e.dom)})),o},i_=function(e,t,n,r){return e_(e,t,n,r).bind((function(e){var t=e.start,n=e.end;return t.or(n)})).bind((function(e){var r=t.isSameTable,o=n_(e).getOr([]);if(r&&e.cells.length===o.length)return H.some($x.fullTable(e.table));if(o.length>0){if(r)return H.some($x.partialTable(o,H.none()));var i=o_(n,t);return H.some($x.partialTable(o,H.some(He(He({},t),{rng:i}))))}return H.none()}))},a_=function(e,t,n,r){return e_(e,t,n,r).bind((function(e){var r=e.start,o=e.end,i=r.bind(n_).getOr([]),a=o.bind(n_).getOr([]);if(i.length>0&&a.length>0){var u=o_(n,t);return H.some($x.multiTable(i,a,u))}return H.none()}))},u_=function(e,t){var n=Vx(e),r=Yx(t,n),o=qx(t,n);return r_(r,t,n)?r.map((function(e){return $x.singleCellTable(t,e.start)})):o.isMultiTable?a_(r,o,t,n):i_(r,o,t,n)},s_=function(e){var t=Vn(e)?Zn(e):ar(e);return t.bind(s_).orThunk((function(){return H.some(e)}))},c_=function(e){return Z(e,(function(e){_o(e,"contenteditable"),Aw(e)}))},l_=function(e,t){return H.from(e.dom.getParent(t,e.dom.isBlock)).map(wn.fromDom)},f_=function(e,t,n){n.each((function(n){t?Er(n):(Aw(n),e.selection.setCursorLocation(n.dom,0))}))},d_=function(e,t,n,r){var o=n.cloneRange();r?(o.setStart(n.startContainer,n.startOffset),o.setEndAfter(t.dom.lastChild)):(o.setStartBefore(t.dom.firstChild),o.setEnd(n.endContainer,n.endOffset)),g_(e,o,t,!1)},h_=function(e){var t=mg(e),n=wn.fromDom(e.selection.getNode());uo(n.dom)&&nu(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),t.length>1&&J(t,(function(e){return Bn(e,n)}))&&vo(n,"data-mce-selected","1")},p_=function(e,t,n){var r=e.selection.getRng(),o=n.bind((function(n){var o=n.rng,i=n.isStartInTable,a=l_(e,i?o.endContainer:o.startContainer);o.deleteContents(),f_(e,i,a.filter(nu));var u=i?t[0]:t[t.length-1];return d_(e,u,r,i),nu(u)?H.none():H.some(i?t.slice(1):t.slice(0,-1))})).getOr(t);return c_(o),h_(e),!0},m_=function(e,t,n,r){var o=e.selection.getRng(),i=t[0],a=n[n.length-1];d_(e,i,o,!0),d_(e,a,o,!1);var u=nu(i)?t:t.slice(1),s=nu(a)?n:n.slice(0,-1);return c_(u.concat(s)),r.deleteContents(),h_(e),!0},g_=function(e,t,n,r){void 0===r&&(r=!0),t.deleteContents();var o=s_(n).getOr(n),i=wn.fromDom(e.dom.getParent(o.dom,e.dom.isBlock));if(nu(i)&&(Aw(i),r&&e.selection.setCursorLocation(i.dom,0)),!Bn(n,i)){var a=co(Yn(i),n)?[]:Xn(i);Z(a.concat(rr(n)),(function(e){Bn(e,i)||Ln(e,i)||!nu(e)||Er(e)}))}return!0},v_=function(e,t){return Fx(e,!1,t),!0},b_=function(e,t,n){return u_(t,n).map((function(t){return t.fold(B(g_,e),B(v_,e),B(p_,e),B(m_,e))}))},y_=function(e,t){return k_(e,t)},w_=function(e,t,n,r){return C_(t,r).fold((function(){return b_(e,t,n)}),(function(t){return y_(e,t)})).getOr(!1)},x_=function(e,t,n){var r=wn.fromDom(e.getBody()),o=e.selection.getRng();return 0!==n.length?p_(e,n,H.none()):w_(e,r,o,t)},__=function(e,t){return ae(Bw(t,e),ia)},C_=function(e,t){return ae(Bw(t,e),$n("caption"))},S_=function(e,t,n,r,o){return Hp(n,e.getBody(),o).bind((function(e){return __(t,wn.fromDom(e.getNode())).map((function(e){return!1===Bn(e,r)}))}))},k_=function(e,t){return Aw(t),e.selection.setCursorLocation(t.dom,0),H.some(!0)},E_=function(e,t,n,r){return Gp(e.dom).bind((function(o){return Yp(e.dom).map((function(e){return t?n.isEqual(o)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(o)}))})).getOr(!0)},O_=function(e,t){return k_(e,t)},A_=function(e,t,n){return C_(e,wn.fromDom(n.getNode())).map((function(e){return!1===Bn(e,t)}))},T_=function(e,t,n,r,o){return Hp(n,e.getBody(),o).bind((function(i){return E_(r,n,o,i)?O_(e,r):A_(t,r,i)})).or(H.some(!0))},R_=function(e,t,n,r){var o=Nf.fromRangeStart(e.selection.getRng());return __(n,r).bind((function(r){return nu(r)?k_(e,r):S_(e,n,t,r,o)})).getOr(!1)},N_=function(e,t,n,r){var o=Nf.fromRangeStart(e.selection.getRng());return nu(r)?k_(e,r):T_(e,n,t,r,o)},D_=function(e,t){return e?_w(t):Cw(t)},B_=function(e,t){var n=Nf.fromRangeStart(e.selection.getRng());return D_(t,n)||zp(t,e.getBody(),n).exists((function(e){return D_(t,e)}))},P_=function(e,t,n){var r=wn.fromDom(e.getBody());return C_(r,n).fold((function(){return R_(e,t,r,n)||B_(e,t)}),(function(n){return N_(e,t,r,n).getOr(!1)}))},j_=function(e,t){var n=wn.fromDom(e.selection.getStart(!0)),r=mg(e);return e.selection.isCollapsed()&&0===r.length?P_(e,t,n):x_(e,n,r)},L_=function(e,t,n,r){var o=document.createRange();return o.setStart(e,t),o.setEnd(n,r),o},M_=function(e){var t=Nf.fromRangeStart(e),n=Nf.fromRangeEnd(e),r=e.commonAncestorContainer;return zp(!1,r,n).map((function(o){return!cp(t,n,r)&&cp(t,o,r)?L_(t.container(),t.offset(),o.container(),o.offset()):e})).getOr(e)},I_=function(e){return e.collapsed?e:M_(e)},F_=function(e){return e.firstChild&&e.firstChild===e.lastChild},V_=function(e){return"br"===e.name||e.value===ca},U_=function(e,t){var n=e.getBlockElements();return n[t.name]&&F_(t)&&V_(t.firstChild)},q_=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||U_(e,t))},z_=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),q_(e,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},H_=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},$_=function(e,t,n){var r=t.serialize(n),o=e.createFragment(r);return H_(o)},W_=function(e){return ne(e.childNodes,(function(e){return"LI"===e.nodeName}))},K_=function(e){return e.data===ca||ro(e)},Q_=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&K_(e.firstChild)},G_=function(e){return!e.firstChild||Q_(e)},Y_=function(e){return e.length>0&&G_(e[e.length-1])?e.slice(0,-1):e},J_=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},X_=function(e,t){return!!J_(e,t)},Z_=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},eC=function(e,t){var n=Nf.before(e),r=jp(t),o=r.next(n);return o?o.toRange():null},tC=function(e,t){var n=Nf.after(e),r=jp(t),o=r.prev(n);return o?o.toRange():null},nC=function(e,t,n,r){var o=Z_(e,r),i=e.parentNode;return i.insertBefore(o[0],e),pn.each(t,(function(t){i.insertBefore(t,e)})),i.insertBefore(o[1],e),i.removeChild(e),tC(t[t.length-1],n)},rC=function(e,t,n){var r=e.parentNode;return pn.each(t,(function(t){r.insertBefore(t,e)})),eC(e,n)},oC=function(e,t,n,r){return r.insertAfter(t.reverse(),e),tC(t[0],n)},iC=function(e,t,n,r){var o=$_(t,e,r),i=J_(t,n.startContainer),a=Y_(W_(o.firstChild)),u=1,s=2,c=t.getRoot(),l=function(e){var r=Nf.fromRangeStart(n),o=jp(t.getRoot()),a=e===u?o.prev(r):o.next(r);return!a||J_(t,a.getNode())!==i};return l(u)?rC(i,a,c):l(s)?oC(i,a,c,t):nC(i,a,c,n)},aC=function(e,t,n){var r=wn.fromDom(e.getRoot());return n=ox(r,Nf.fromRangeStart(t))?n.replace(/^ /,"&nbsp;"):n.replace(/^&nbsp;/," "),n=ax(r,Nf.fromRangeEnd(t))?n.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):n.replace(/&nbsp;(<br( \/)?>)?$/," "),n},uC=uo,sC=function(e,t,n){if(null!==n){var r=e.getParent(t.endContainer,uC);return n===r&&xg(wn.fromDom(n),t)}return!1},cC=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):e.selection.setContent(t)}},lC=function(e,t){H.from(e.getParent(t,"td,th")).map(wn.fromDom).each(Tw)},fC=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=ew(r);pn.each(r.select("*[data-mce-fragment]"),(function(e){var t=S(n[e.nodeName.toLowerCase()]);if(t&&sw(r,e))for(var a=e.parentNode;S(a)&&a!==o;a=a.parentNode){var u=lw(r,e,a);if(u)break;if(i.compare(a,e)){r.remove(e,!0);break}}}))}},dC=function(e){var t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},hC=function(e){pn.each(e.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")}))},pC=function(e){return!!e.getAttribute("data-mce-fragment")},mC=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},gC=function(e,t){var n,r=e.dom,o=e.selection;if(t){o.scrollIntoView(t);var i=Mg(e.getBody(),t);if("false"===r.getContentEditable(i))return r.remove(t),void o.select(i);var a=r.createRng(),u=t.previousSibling;if(Zr(u)){if(a.setStart(u,u.nodeValue.length),!en.ie){var s=t.nextSibling;Zr(s)&&(u.appendData(s.data),s.parentNode.removeChild(s))}}else a.setStartBefore(t),a.setEndBefore(t);var c=function(t){var n=Nf.fromRangeStart(t),r=jp(e.getBody());if(n=r.next(n),n)return n.toRange()},l=r.getParent(t,r.isBlock);r.remove(t),l&&r.isEmpty(l)&&(e.$(l).empty(),a.setStart(l,0),a.setEnd(l,0),uC(l)||pC(l)||!(n=c(a))?r.add(l,r.create("br",{"data-mce-bogus":"1"})):(a=n,r.remove(l))),o.setRng(a)}},vC=function(e){var t=e.dom,n=I_(e.selection.getRng());e.selection.setRng(n);var r=t.getParent(n.startContainer,uC);sC(t,n,r)?g_(e,n,wn.fromDom(r)):e.getDoc().execCommand("Delete",!1,null)},bC=function(e,t,n){var r,o,i,a=e.selection,u=e.dom;/^ | $/.test(t)&&(t=aC(u,a.getRng(),t));var s=e.parser,c=n.merge,l=rw({validate:rh(e)},e.schema),f='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>',d=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(d.isDefaultPrevented())e.fire("SetContent",{content:d.content,format:"html",selection:!0,paste:n.paste});else{t=d.content,-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,f),o=a.getRng();var h=o.startContainer||(o.parentElement?o.parentElement():null),p=e.getBody();h===p&&a.isCollapsed()&&u.isBlock(p.firstChild)&&mC(e,p.firstChild)&&u.isEmpty(p.firstChild)&&(o=u.createRng(),o.setStart(p.firstChild,0),o.setEnd(p.firstChild,0),a.setRng(o)),a.isCollapsed()||vC(e),r=a.getNode();var m={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},g=s.parse(t,m);if(!0===n.paste&&z_(e.schema,g)&&X_(u,r))return o=iC(l,u,a.getRng(),g),a.setRng(o),void e.fire("SetContent",d);if(dC(g),i=g.lastChild,"mce_marker"===i.attr("id")){var v=i;for(i=i.prev;i;i=i.walk(!0))if(3===i.type||!u.isBlock(i.name)){e.schema.isValidChild(i.parent.name,"span")&&i.parent.insert(v,i,"br"===i.name);break}}if(e._selectionOverrides.showBlockCaretContainer(r),m.invalid){e.selection.setContent(f),r=a.getNode();var b=e.getBody();9===r.nodeType?r=i=b:i=r;while(i!==b)r=i,i=i.parentNode;t=r===b?b.innerHTML:u.getOuterHTML(r),t=l.serialize(s.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return l.serialize(g)})))),r===b?u.setHTML(b,t):u.setOuterHTML(r,t)}else t=l.serialize(g),cC(e,t,r);fC(e,c),gC(e,u.get("mce_marker")),hC(e.getBody()),lC(u,a.getStart()),e.fire("SetContent",d),e.addVisual()}},yC=function(e,t){t(e),e.firstChild&&yC(e.firstChild,t),e.next&&yC(e.next,t)},wC=function(e,t,n){var r={},o={},i=[];for(var a in n.firstChild&&yC(n.firstChild,(function(n){Z(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),Z(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]})}))})),r)De(r,a)&&i.push(r[a]);for(var u in o)De(o,u)&&i.push(o[u]);return i},xC=function(e,t,n){var r=wC(e,t,n);Z(r,(function(e){Z(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}))},_C="html",CC=function(e){return e instanceof Oy},SC=function(e){ly(e)&&Gp(e.getBody()).each((function(t){var n=t.getNode(),r=Yr(n)?Gp(n).getOr(t):t;e.selection.setRng(r.toRange())}))},kC=function(e,t,n){e.dom.setHTML(e.getBody(),t),!0!==n&&SC(e)},EC=function(e,t,n,r){if(0===n.length||/^\s+$/.test(n)){var o='<br data-mce-bogus="1">';"TABLE"===t.nodeName?n="<tr><td>"+o+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+o+"</li>");var i=Cd(e);i&&e.schema.isValidChild(t.nodeName.toLowerCase(),i.toLowerCase())?(n=o,n=e.dom.createHTML(i,Sd(e),n)):n||(n='<br data-mce-bogus="1">'),kC(e,n,r.no_selection),e.fire("SetContent",r)}else"raw"!==r.format&&(n=rw({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=aa(wn.fromDom(t))?n:pn.trim(n),kC(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r);return r.content},OC=function(e,t,n,r){xC(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=rw({validate:e.validate},e.schema).serialize(n);return r.content=aa(wn.fromDom(t))?o:pn.trim(o),kC(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r),n},AC=function(e,t){return He(He({format:_C},e),{set:!0,content:CC(t)?"":t})},TC=function(e,t,n){var r=AC(n,t),o=n.no_events?r:e.fire("BeforeSetContent",r);return CC(t)||(t=o.content),H.from(e.getBody()).fold(R(t),(function(n){return CC(t)?OC(e,n,t,o):EC(e,n,t,o)}))},RC=function(e,t){return Si(e,t).isSome()},NC=function(e){return k(e)?e:I},DC=function(e,t,n){var r=e.dom,o=NC(n);while(r.parentNode){r=r.parentNode;var i=wn.fromDom(r),a=t(i);if(a.isSome())return a;if(o(i))break}return H.none()},BC=function(e,t,n){var r=t(e),o=NC(n);return r.orThunk((function(){return o(e)?H.none():DC(e,t,o)}))},PC=Pm,jC=function(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o<r.length;o++){var i=r[o];if(qm(i)&&!1===i.inherit&&e.dom.is(t,i.selector))return!0}return!1},LC=function(e,t,n,r,o){var i=e.dom.getRoot();return t!==i&&(t=e.dom.getParent(t,(function(t){return!!jC(e,t,n)||(t.parentNode===i||!!FC(e,t,n,r,!0))})),!!FC(e,t,n,r,o))},MC=function(e,t,n){return!!PC(t,n.inline)||(!!PC(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},IC=function(e,t,n,r,o,i){var a=n[r];if(k(n.onmatch))return n.onmatch(t,n,r);if(a)if(_(a.length)){for(var u in a)if(De(a,u)){var s="attributes"===r?e.getAttrib(t,u):Lm(e,t,u),c=Bm(a[u],i),l=C(s)||mt(s);if(l&&C(c))continue;if(o&&l&&!n.exact)return!1;if((!o||n.exact)&&!PC(s,jm(e,c,u)))return!1}}else for(var f=0;f<a.length;f++)if("attributes"===r?e.getAttrib(t,a[f]):Lm(e,t,a[f]))return!0;return!0},FC=function(e,t,n,r,o){var i=e.formatter.get(n),a=e.dom;if(i&&t)for(var u=0;u<i.length;u++){var s=i[u];if(MC(e.dom,t,s)&&IC(a,t,s,"attributes",o,r)&&IC(a,t,s,"styles",o,r)){var c=s.classes;if(c)for(var l=0;l<c.length;l++)if(!e.dom.hasClass(t,Bm(c[l],r)))return;return s}}},VC=function(e,t,n,r,o){if(r)return LC(e,r,t,n,o);if(r=e.selection.getNode(),LC(e,r,t,n,o))return!0;var i=e.selection.getStart();return!(i===r||!LC(e,i,t,n,o))},UC=function(e,t,n){var r=[],o={},i=e.selection.getStart();return e.dom.getParent(i,(function(i){for(var a=0;a<t.length;a++){var u=t[a];!o[u]&&FC(e,i,u,n)&&(o[u]=!0,r.push(u))}}),e.dom.getRoot()),r},qC=function(e,t){var n=function(t){return Bn(t,wn.fromDom(e.getBody()))},r=function(t,n){return FC(e,t.dom,n)?H.some(n):H.none()};return H.from(e.selection.getStart(!0)).bind((function(e){return BC(wn.fromDom(e),(function(e){return ye(t,(function(t){return r(e,t)}))}),n)})).getOrNull()},zC=function(e,t){var n=e.formatter.get(t),r=e.dom;if(n)for(var o=e.selection.getStart(),i=Im(r,o),a=n.length-1;a>=0;a--){var u=n[a];if(!qm(u)||S(u.defaultBlock))return!0;for(var s=i.length-1;s>=0;s--)if(r.is(i[s],u.selector))return!0}return!1},HC=function(e,t,n){return oe(n,(function(n,r){var o=Fm(e,r);return e.formatter.matchNode(t,r,{},o)?n.concat([r]):n}),[])},$C=da,WC="_mce_caret",KC=function(e,t){return e.importNode(t,!0)},QC=function(e){var t=[];while(e){if(3===e.nodeType&&e.nodeValue!==$C||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},GC=function(e){return QC(e).length>0},YC=function(e){if(e){var t=new Vi(e,e);for(e=t.current();e;e=t.next())if(Zr(e))return e}return null},JC=function(e){var t=wn.fromTag("span");return bo(t,{id:WC,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&xr(t,wn.fromText($C)),t},XC=function(e){var t=YC(e);return t&&t.nodeValue.charAt(0)===$C&&t.deleteData(0,1),t},ZC=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(GC(t))Fx(e,!1,wn.fromDom(t),n);else{var i=o.getRng(),a=r.getParent(t,r.isBlock),u=i.startContainer,s=i.startOffset,c=i.endContainer,l=i.endOffset,f=XC(t);r.remove(t,!0),u===f&&s>0&&i.setStart(f,s-1),c===f&&l>0&&i.setEnd(f,l-1),a&&r.isEmpty(a)&&Aw(wn.fromDom(a)),o.setRng(i)}},eS=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)ZC(e,t,n);else if(t=Zp(e.getBody(),o.getStart()),!t)while(t=r.get(WC))ZC(e,t,!1)},tS=function(e,t,n){var r=e.dom,o=r.getParent(n,B(Tm,e));o&&r.isEmpty(o)?n.parentNode.replaceChild(t,n):(Ow(wn.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},nS=function(e,t){return e.appendChild(t),t},rS=function(e,t){var n=re(e,(function(e,t){return nS(e,t.cloneNode(!1))}),t);return nS(n,n.ownerDocument.createTextNode($C))},oS=function(e,t,n,r,o,i){var a=e.formatter,u=e.dom,s=ne(we(a.get()),(function(e){return e!==r&&!st(e,"removeformat")})),c=HC(e,n,s),l=ne(c,(function(t){return!Vm(e,t,r)}));if(l.length>0){var f=n.cloneNode(!1);return u.add(t,f),a.remove(r,o,f,i),u.remove(f),H.some(f)}return H.none()},iS=function(e,t,n){var r,o,i=e.selection,a=i.getRng(),u=a.startOffset,s=a.startContainer,c=s.nodeValue;r=Zp(e.getBody(),i.getStart()),r&&(o=YC(r));var l=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(c&&u>0&&u<c.length&&l.test(c.charAt(u))&&l.test(c.charAt(u-1))){var f=i.getBookmark();a.collapse(!0);var d=ug(e,a,e.formatter.get(t));d=xv(d),e.formatter.apply(t,n,d),i.moveToBookmark(f)}else r&&o.nodeValue===$C||(r=KC(e.getDoc(),JC(!0).dom),o=r.firstChild,a.insertNode(r),u=1),e.formatter.apply(t,n,r),i.setCursorLocation(o,u)},aS=function(e,t,n,r){var o,i,a,u=e.dom,s=e.selection,c=[],l=s.getRng(),f=l.startContainer,d=l.startOffset;i=f,3===f.nodeType&&(d!==f.nodeValue.length&&(o=!0),i=i.parentNode);while(i){if(FC(e,i,t,n,r)){a=i;break}i.nextSibling&&(o=!0),c.push(i),i=i.parentNode}if(a)if(o){var h=s.getBookmark();l.collapse(!0);var p=ug(e,l,e.formatter.get(t),!0);p=xv(p),e.formatter.remove(t,n,p,r),s.moveToBookmark(h)}else{var m=Zp(e.getBody(),a),g=JC(!1).dom;tS(e,g,null!==m?m:a);var v=oS(e,g,a,t,n,r),b=rS(c.concat(v.toArray()),g);ZC(e,m,!1),s.setCursorLocation(b,1),u.isEmpty(a)&&u.remove(a)}},uS=function(e,t){var n=e.selection,r=e.getBody();eS(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==$C||eS(e,Zp(r,n.getStart())),37!==t&&39!==t||eS(e,Zp(r,n.getStart()))},sS=function(e){e.on("mouseup keydown",(function(t){uS(e,t.keyCode)}))},cS=function(e,t){var n=JC(!1),r=rS(t,n.dom);return br(wn.fromDom(e),n),Er(wn.fromDom(e)),Nf(r,0)},lS=function(e,t){var n=e.schema.getTextInlineElements();return De(n,Mn(t))&&!Xp(t.dom)&&!Qr(t.dom)},fS=function(e){return Xp(e.dom)&&GC(e.dom)},dS={},hS=Fe,pS=Me,mS=function(e,t){var n=dS[e];n||(dS[e]=[]),dS[e].push(t)},gS=function(e,t){pS(dS[e],(function(e){e(t)}))};mS("pre",(function(e){var t,n=e.selection.getRng(),r=function(e){return i(e.previousSibling)&&-1!==Ve(t,e.previousSibling)},o=function(e,t){Nc(t).remove(),Nc(e).append("<br><br>").append(t.childNodes)},i=Hr(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),pS(hS(hS(t,i),r),(function(e){o(e.previousSibling,e)})))}));var vS=pn.each,bS=function(e){return zr(e)&&!wm(e)&&!Xp(e)&&!Qr(e)},yS=function(e,t){for(var n=e;n;n=n[t]){if(Zr(n)&&pt(n.data))return e;if(zr(n)&&!wm(n))return n}return e},wS=function(e,t,n){var r=ew(e);if(t&&n&&(t=yS(t,"previousSibling"),n=yS(n,"nextSibling"),r.compare(t,n))){for(var o=t.nextSibling;o&&o!==n;){var i=o;o=o.nextSibling,t.appendChild(i)}return e.remove(n),pn.each(pn.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n},xS=function(e,t,n,r){if(r&&!1!==t.merge_siblings){var o=wS(e,Am(r),r);wS(e,o,Am(o,!0))}},_S=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";vS(e.select(r,n),(function(n){bS(n)&&vS(t.styles,(function(t,r){e.setStyle(n,r,"")}))}))}},CS=function(e,t,n){vS(e.childNodes,(function(e){bS(e)&&(t(e)&&n(e),e.hasChildNodes()&&CS(e,t,n))}))},SS=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},kS=function(e,t){return function(n){return!(!n||!Lm(e,n,t))}},ES=function(e,t,n){return function(r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),SS(e,r)}},OS=ei.generate([{keep:[]},{rename:["name"]},{removed:[]}]),AS=/^(src|href|style)$/,TS=pn.each,RS=Pm,NS=function(e){return/^(TR|TH|TD)$/.test(e.nodeName)},DS=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},BS=function(e,t,n){var r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];if(zr(r)){var i=r.childNodes.length-1;!n&&o&&o--,r=r.childNodes[o>i?i:o]}return Zr(r)&&n&&o>=r.nodeValue.length&&(r=new Vi(r,e.getBody()).next()||r),Zr(r)&&!n&&0===o&&(r=new Vi(r,e.getBody()).prev()||r),r},PS=function(e,t){var n=t?"firstChild":"lastChild";if(NS(e)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e},jS=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},LS=function(e,t,n,r,o){var i=wn.fromDom(t),a=wn.fromDom(e.create(r,o)),u=n?nr(i):tr(i);return Sr(a,u),n?(br(i,a),wr(a,i)):(yr(i,a),xr(a,i)),a.dom},MS=function(e,t,n){return!(!zm(n)||!RS(t,n.inline))||(!(!Um(n)||!RS(t,n.block))||(qm(n)?zr(t)&&e.is(t,n.selector):void 0))},IS=function(e,t){return t.links&&"A"===e.nodeName},FS=function(e,t,n,r){var o=Am(t,n,r);return C(o)||"BR"===o.nodeName||e.isBlock(o)},VS=function(e,t,n){var r,o=t.parentNode,i=e.dom,a=Cd(e);Um(n)&&(a?o===i.getRoot()&&(n.list_block&&RS(t,n.list_block)||Z(be(t.childNodes),(function(t){Rm(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=jS(i,t,a),i.setAttribs(r,e.settings.forced_root_block_attrs)):r=null}))):i.isBlock(t)&&!i.isBlock(o)&&(FS(i,t,!1)||FS(i,t.firstChild,!0,!0)||t.insertBefore(i.create("br"),t.firstChild),FS(i,t,!0)||FS(i,t.lastChild,!1,!0)||t.appendChild(i.create("br")))),Hm(n)&&!RS(n.inline,t)||i.remove(t,!0)},US=function(e,t,n,r,o){var i,a=e.dom;if(!MS(a,r,t)&&!IS(r,t))return OS.keep();var u=r;if(zm(t)&&"all"===t.remove&&y(t.preserve_attributes)){var s=ne(a.getAttribs(u),(function(e){return Y(t.preserve_attributes,e.name.toLowerCase())}));if(a.removeAllAttribs(u),Z(s,(function(e){return a.setAttrib(u,e.name,e.value)})),s.length>0)return OS.rename("span")}if("all"!==t.remove){TS(t.styles,(function(e,r){e=jm(a,Bm(e,n),r+""),E(r)&&(r=e,o=null),(t.remove_similar||!o||RS(Lm(a,o,r),e))&&a.setStyle(u,r,""),i=!0})),i&&""===a.getAttrib(u,"style")&&(u.removeAttribute("style"),u.removeAttribute("data-mce-style")),TS(t.attributes,(function(e,r){var i;if(e=Bm(e,n),E(r)&&(r=e,o=null),t.remove_similar||!o||RS(a.getAttrib(o,r),e)){if("class"===r&&(e=a.getAttrib(u,r),e&&(i="",Z(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(i+=(i?" ":"")+e)})),i)))return void a.setAttrib(u,r,i);if(AS.test(r)&&u.removeAttribute("data-mce-"+r),"style"===r&&Hr(["li"])(u)&&"none"===a.getStyle(u,"list-style-type"))return u.removeAttribute(r),void a.setStyle(u,"list-style-type","none");"class"===r&&u.removeAttribute("className"),u.removeAttribute(r)}})),TS(t.classes,(function(e){e=Bm(e,n),o&&!a.hasClass(o,e)||a.removeClass(u,e)}));for(var c=a.getAttribs(u),l=0;l<c.length;l++){var f=c[l].nodeName;if(0!==f.indexOf("_")&&0!==f.indexOf("data-"))return OS.keep()}}return"none"!==t.remove?(VS(e,u,t),OS.removed()):OS.keep()},qS=function(e,t,n,r,o){return US(e,t,n,r,o).fold(I,(function(t){return e.dom.rename(r,t),!0}),F)},zS=function(e,t,n,r,o){var i;return Z(Im(e.dom,t.parentNode).reverse(),(function(t){if(!i&&"_start"!==t.id&&"_end"!==t.id){var a=FC(e,t,n,r,o);a&&!1!==a.split&&(i=t)}})),i},HS=function(e,t,n,r){return US(e,t,n,r,r).fold(R(r),(function(t){var n=e.dom.createFragment();return n.appendChild(r),e.dom.rename(r,t)}),R(null))},$S=function(e,t,n,r,o,i,a,u){var s,c,l,f=e.dom;if(n){for(var d=n.parentNode,h=r.parentNode;h&&h!==d;h=h.parentNode){s=f.clone(h,!1);for(var p=0;p<t.length;p++)if(s=HS(e,t[p],u,s),null===s)break;s&&(c&&s.appendChild(c),l||(l=s),c=s)}!i||a.mixed&&f.isBlock(n)||(r=f.split(n,r)),c&&(o.parentNode.insertBefore(c,o),l.appendChild(o),zm(a)&&xS(f,a,u,c))}return r},WS=function(e,t,n,r,o){var i=e.formatter.get(t),a=i[0],u=!0,s=e.dom,c=e.selection,l=function(r){var u=zS(e,r,t,n,o);return $S(e,i,u,r,r,!0,a,n)},f=function(e){return wm(e)&&zr(e)&&("_start"===e.id||"_end"===e.id)},d=function(t){return J(i,(function(r){return qS(e,r,n,t,t)}))},h=function(t){var n=!0,r=!1;zr(t)&&s.getContentEditable(t)&&(n=u,u="true"===s.getContentEditable(t),r=!0);var o=be(t.childNodes);if(u&&!r){var c=d(t),l=c||J(i,(function(e){return MC(s,t,e)})),f=t.parentNode;!l&&S(f)&&$m(a)&&d(f)}if(a.deep&&o.length){for(var p=0;p<o.length;p++)h(o[p]);r&&(u=n)}var m=["underline","line-through","overline"];Z(m,(function(n){zr(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&Mm(s,t.parentNode)===n&&qS(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))},p=function(e){var t=s.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return f(n)&&(n=n[e?"firstChild":"lastChild"]),Zr(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),s.remove(t,!0),n},m=function(t){var n,r,o=ug(e,t,i,t.collapsed);if(a.split){if(o=xv(o),n=BS(e,o,!0),r=BS(e,o),n!==r){if(n=PS(n,!0),r=PS(r,!1),DS(s,n,r)){var u=H.from(n.firstChild).getOr(n);return l(LS(s,u,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void p(!0)}if(DS(s,r,n)){u=H.from(r.lastChild).getOr(r);return l(LS(s,u,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void p(!1)}n=jS(s,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=jS(s,r,"span",{id:"_end","data-mce-type":"bookmark"});var c=s.createRng();c.setStartAfter(n),c.setEndBefore(r),sg(s,c,(function(e){Z(e,(function(e){wm(e)||wm(e.parentNode)||l(e)}))})),l(n),l(r),n=p(!0),r=p()}else n=r=l(n);o.startContainer=n.parentNode?n.parentNode:n,o.startOffset=s.nodeIndex(n),o.endContainer=r.parentNode?r.parentNode:r,o.endOffset=s.nodeIndex(r)+1}sg(s,o,(function(e){Z(e,h)}))};if(r){if(km(r)){var g=s.createRng();g.setStartBefore(r),g.setEndAfter(r),m(g)}else m(r);Xg(e,t,r,n)}else if("false"!==s.getContentEditable(c.getNode()))c.isCollapsed()&&zm(a)&&!mg(e).length?aS(e,t,n,o):(kg(c,!0,(function(){Sg(e,m)})),zm(a)&&VC(e,t,n,c.getStart())&&Om(s,c,c.getRng()),e.nodeChanged()),Xg(e,t,r,n);else{r=c.getNode();for(var v=0;v<i.length;v++)if(i[v].ceFalseOverride&&qS(e,i[v],n,r,r))break;Xg(e,t,r,n)}},KS=pn.each,QS=function(e,t,n,r){var o=function(t){if(1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType){var n=Mm(e,t.parentNode);e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null)}};t.styles&&(t.styles.color||t.styles.textDecoration)&&(pn.walk(r,o,"childNodes"),o(r))},GS=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&CS(r,kS(e,"fontSize"),ES(e,"backgroundColor",Bm(t.styles.backgroundColor,n)))},YS=function(e,t,n,r){!zm(t)||"sub"!==t.inline&&"sup"!==t.inline||(CS(r,kS(e,"fontSize"),ES(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},JS=function(e,t,n,r){KS(t,(function(t){zm(t)&&KS(e.dom.select(t.inline,r),(function(r){bS(r)&&qS(e,t,n,r,t.exact?r:null)})),_S(e.dom,t,r)}))},XS=function(e,t,n,r,o){FC(e,o.parentNode,n,r)&&qS(e,t,r,o)||t.merge_with_parents&&e.dom.getParent(o.parentNode,(function(i){if(FC(e,i,n,r))return qS(e,t,r,o),!0}))},ZS=pn.each,ek=function(e){return zr(e)&&!wm(e)&&!Xp(e)&&!Qr(e)},tk=function(e,t,n,r){if(uh(e)&&zm(t)){var o=He(He({},e.schema.getTextBlockElements()),{td:{},th:{},li:{},dt:{},dd:{},figcaption:{},caption:{},details:{},summary:{}}),i=RC(wn.fromDom(n),(function(e){return Xp(e.dom)}));return Be(o,r)&&nu(wn.fromDom(n.parentNode),!1)&&!i}return!1},nk=function(e,t,n,r){var o=e.formatter.get(t),i=o[0],a=!r&&e.selection.isCollapsed(),u=e.dom,s=e.selection,c=function(e,t){if(void 0===t&&(t=i),k(t.onformat)&&t.onformat(e,t,n,r),ZS(t.styles,(function(t,r){u.setStyle(e,r,Bm(t,n))})),t.styles){var o=u.getAttrib(e,"style");o&&u.setAttrib(e,"data-mce-style",o)}ZS(t.attributes,(function(t,r){u.setAttrib(e,r,Bm(t,n))})),ZS(t.classes,(function(t){t=Bm(t,n),u.hasClass(e,t)||u.addClass(e,t)}))},l=function(e,t){var n=!1;return ZS(e,(function(e){return!!qm(e)&&(S(e.collapsed)&&e.collapsed!==a?void 0:u.is(t,e.selector)&&!Xp(t)?(c(t,e),n=!0,!1):void 0)})),n},f=function(e){if(v(e)){var t=u.create(e);return c(t),t}return null},d=function(r,a,u){var s=[],d=!0,h=i.inline||i.block,p=f(h);sg(r,a,(function(a){var f,m=function(a){var g=!1,v=d,b=a.nodeName.toLowerCase(),y=a.parentNode,w=y.nodeName.toLowerCase();if(zr(a)&&r.getContentEditable(a)&&(v=d,d="true"===r.getContentEditable(a),g=!0),ro(a)&&!tk(e,i,a,w))return f=null,void(Um(i)&&r.remove(a));if(Um(i)&&i.wrapper&&FC(e,a,t,n))f=null;else{if(d&&!g&&Um(i)&&!i.wrapper&&Tm(e,b)&&Rm(e,w,h)){var x=r.rename(a,h);return c(x),s.push(x),void(f=null)}if(qm(i)){var _=l(o,a);if(!_&&S(y)&&$m(i)&&(_=l(o,y)),!zm(i)||_)return void(f=null)}!d||g||!Rm(e,h,b)||!Rm(e,w,h)||!u&&Zr(a)&&ha(a.data)||Xp(a)||zm(i)&&r.isBlock(a)?(f=null,Z(be(a.childNodes),m),g&&(d=v),f=null):(f||(f=r.clone(p,!1),a.parentNode.insertBefore(f,a),s.push(f)),f.appendChild(a))}};Z(a,m)})),!0===i.links&&Z(s,(function(e){var t=function(e){"A"===e.nodeName&&c(e,i),Z(be(e.childNodes),t)};t(e)})),Z(s,(function(a){var u=function(e){var t=0;return Z(e.childNodes,(function(e){Dm(e)||wm(e)||t++})),t},l=function(e){var t=ae(e.childNodes,ek).filter((function(e){return MC(r,e,i)}));return t.map((function(t){var n=r.clone(t,!1);return c(n),r.replace(n,e,!0),r.remove(t,!0),n})).getOr(e)},f=u(a);!(s.length>1)&&r.isBlock(a)||0!==f?(zm(i)||Um(i)&&i.wrapper)&&(i.exact||1!==f||(a=l(a)),JS(e,o,n,a),XS(e,i,t,n,a),GS(r,i,n,a),QS(r,i,n,a),YS(r,i,n,a),xS(r,i,n,a)):r.remove(a,!0)}))};if("false"!==u.getContentEditable(s.getNode())){if(i){if(r)if(km(r)){if(!l(o,r)){var h=u.createRng();h.setStartBefore(r),h.setEndAfter(r),d(u,ug(e,h,o),!0)}}else d(u,r,!0);else if(a&&zm(i)&&!mg(e).length)iS(e,t,n);else{var p=s.getNode(),m=o[0];e.settings.forced_root_block||!m.defaultBlock||u.getParent(p,u.isBlock)||nk(e,m.defaultBlock),s.setRng(I_(s.getRng())),kg(s,!0,(function(){Sg(e,(function(t,n){var r=n?t:ug(e,t,o);d(u,r,!1)}))})),Om(u,s,s.getRng()),e.nodeChanged()}gS(t,e)}Jg(e,t,r,n)}else{r=s.getNode();for(var g=0,b=o.length;g<b;g++){var y=o[g];if(y.ceFalseOverride&&qm(y)&&u.is(r,y.selector)){c(r,y);break}}Jg(e,t,r,n)}},rk=function(e){return De(e,"vars")},ok=function(e,t){e.set({}),t.on("NodeChange",(function(n){sk(t,n.element,e.get())})),t.on("FormatApply FormatRemove",(function(n){var r=H.from(n.node).map((function(e){return km(e)?e:e.startContainer})).bind((function(e){return zr(e)?H.some(e):H.from(e.parentElement)})).getOrThunk((function(){return ik(t)}));sk(t,r,e.get())}))},ik=function(e){return e.selection.getStart()},ak=function(e,t,n,r,o){var i=function(t){var i=e.formatter.matchNode(t,n,null!==o&&void 0!==o?o:{},r);return!_(i)},a=function(t){return!!jC(e,t,n)||!r&&S(e.formatter.matchNode(t,n,o,!0))};return ie(t,i,a)},uk=function(e,t){var n=null!==t&&void 0!==t?t:ik(e);return ne(Im(e.dom,n),(function(e){return zr(e)&&!Qr(e)}))},sk=function(e,t,n){var r=uk(e,t);_e(n,(function(n,o){var i=function(n){var i=ak(e,r,o,n.similar,rk(n)?n.vars:void 0),a=i.isSome();if(n.state.get()!==a){n.state.set(a);var u=i.getOr(t);rk(n)?n.callback(a,{node:u,format:o,parents:r}):Z(n.callbacks,(function(e){return e(a,{node:u,format:o,parents:r})}))}};Z([n.withSimilar,n.withoutSimilar],i),Z(n.withVars,i)}))},ck=function(e,t,n,r,o,i){var a=t.get();Z(n.split(","),(function(t){var n=Ne(a,t).getOrThunk((function(){var e={withSimilar:{state:Qc(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Qc(!1),similar:!1,callbacks:[]},withVars:[]};return a[t]=e,e})),u=function(){var n=uk(e);return ak(e,n,t,o,i).isSome()};if(_(i)){var s=o?n.withSimilar:n.withoutSimilar;s.callbacks.push(r),1===s.callbacks.length&&s.state.set(u())}else n.withVars.push({state:Qc(u()),similar:o,vars:i,callback:r})})),t.set(a)},lk=function(e,t,n){var r=e.get();Z(t.split(","),(function(e){return Ne(r,e).each((function(t){r[e]={withSimilar:He(He({},t.withSimilar),{callbacks:ne(t.withSimilar.callbacks,(function(e){return e!==n}))}),withoutSimilar:He(He({},t.withoutSimilar),{callbacks:ne(t.withoutSimilar.callbacks,(function(e){return e!==n}))}),withVars:ne(t.withVars,(function(e){return e.callback!==n}))}}))})),e.set(r)},fk=function(e,t,n,r,o,i){return null===t.get()&&ok(t,e),ck(e,t,n,r,o,i),{unbind:function(){return lk(t,n,r)}}},dk=function(e,t,n,r){var o=e.formatter.get(t);!VC(e,t,n,r)||"toggle"in o[0]&&!o[0].toggle?nk(e,t,n,r):WS(e,t,n,r)},hk=function(e,t){var n=t||document,r=n.createDocumentFragment();return Z(e,(function(e){r.appendChild(e.dom)})),wn.fromDom(r)},pk=function(e,t,n){return{element:e,width:t,rows:n}},mk=function(e,t){return{element:e,cells:t}},gk=function(e,t){return{x:e,y:t}},vk=function(e,t){var n=parseInt(yo(e,t),10);return isNaN(n)?1:n},bk=function(e,t,n,r,o){for(var i=vk(o,"rowspan"),a=vk(o,"colspan"),u=e.rows,s=n;s<n+i;s++){u[s]||(u[s]=mk($l(r),[]));for(var c=t;c<t+a;c++){var l=u[s].cells;l[c]=s===n&&c===t?o:Hl(o)}}},yk=function(e,t,n){var r=e.rows,o=r[n]?r[n].cells:[];return!!o[t]},wk=function(e,t,n){while(yk(e,t,n))t++;return t},xk=function(e){return oe(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)},_k=function(e,t){for(var n=e.rows,r=0;r<n.length;r++)for(var o=n[r].cells,i=0;i<o.length;i++)if(Bn(o[i],t))return H.some(gk(i,r));return H.none()},Ck=function(e,t,n,r,o){for(var i=[],a=e.rows,u=n;u<=o;u++){var s=a[u].cells,c=t<r?s.slice(t,r+1):s.slice(r,t+1);i.push(mk(a[u].element,c))}return i},Sk=function(e,t,n){var r=t.x,o=t.y,i=n.x,a=n.y,u=o<a?Ck(e,r,o,i,a):Ck(e,r,a,i,o);return pk(e.element,xk(u),u)},kk=function(e,t){var n=Hl(e.element),r=wn.fromTag("tbody");return Sr(r,t),xr(n,r),n},Ek=function(e){return X(e.rows,(function(e){var t=X(e.cells,(function(e){var t=$l(e);return _o(t,"colspan"),_o(t,"rowspan"),t})),n=Hl(e.element);return Sr(n,t),n}))},Ok=function(e){var t=pk(Hl(e),0,[]);return Z(kl(e,"tr"),(function(e,n){Z(kl(e,"td,th"),(function(r,o){bk(t,wk(t,o,n),n,e,r)}))})),pk(t.element,xk(t.rows),t.rows)},Ak=function(e){return kk(e,Ek(e))},Tk=function(e,t,n){return _k(e,t).bind((function(t){return _k(e,n).map((function(n){return Sk(e,t,n)}))}))},Rk=function(e){return ae(e,(function(e){return"ul"===Mn(e)||"ol"===Mn(e)}))},Nk=function(e,t){return ae(e,(function(e){return"li"===Mn(e)&&xg(e,t)})).fold(R([]),(function(t){return Rk(e).map((function(e){var t=wn.fromTag(Mn(e)),n=Ae(To(e),(function(e,t){return ct(t,"list-style")}));return ko(t,n),[wn.fromTag("li"),t]})).getOr([])}))},Dk=function(e,t){var n=oe(t,(function(e,t){return xr(t,e),t}),e);return t.length>0?hk([n]):n},Bk=function(e){return ra(e)?Yn(e).filter(na).fold(R([]),(function(t){return[e,t]})):na(e)?[e]:[]},Pk=function(e,t){var n=wn.fromDom(t.commonAncestorContainer),r=Bw(n,e),o=ne(r,(function(e){return Zi(e)||Yi(e)})),i=Nk(r,t),a=o.concat(i.length?i:Bk(n));return X(a,Hl)},jk=function(){return hk([])},Lk=function(e,t){return Dk(wn.fromDom(t.cloneContents()),Pk(e,t))},Mk=function(e,t){return Ei(t,"table",B(Bn,e))},Ik=function(e,t){return Mk(e,t[0]).bind((function(e){var n=t[0],r=t[t.length-1],o=Ok(e);return Tk(o,n,r).map((function(e){return hk([Ak(e)])}))})).getOrThunk(jk)},Fk=function(e,t){return t.length>0&&t[0].collapsed?jk():Lk(e,t[0])},Vk=function(e,t){var n=pg(t,e);return n.length>0?Ik(e,n):Fk(e,t)},Uk=function(e){return e.replace(/^[ \f\n\r\t\v]+/,"")},qk=function(e,t){return t>=0&&t<e.length&&Cm(e.charAt(t))},zk=function(e,t){var n=pa(e.innerText);return t?Uk(n):n},Hk=function(e){return e.map((function(e){return e.nodeName})).getOr("div").toLowerCase()},$k=function(e){return H.from(e.selection.getRng()).map((function(t){var n=H.from(e.dom.getParent(t.commonAncestorContainer,e.dom.isBlock)),r=e.getBody(),o=Hk(n),i=en.browser.isIE()&&"pre"!==o,a=e.dom.add(r,o,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),u=zk(a,i),s=pa(a.textContent);if(e.dom.remove(a),qk(s,0)||qk(s,s.length-1)){var c=n.getOr(r),l=zk(c,i),f=l.indexOf(u);if(-1===f)return u;var d=qk(l,f-1),h=qk(l,f+u.length);return(d?" ":"")+u+(h?" ":"")}return u})).getOr("")},Wk=function(e,t){var n=e.selection.getRng(),r=e.dom.create("body"),o=e.selection.getSel(),i=_y(e,cg(o)),a=t.contextual?Vk(wn.fromDom(e.getBody()),i).dom:n.cloneContents();return a&&r.appendChild(a),e.selection.serializer.serialize(r,t)},Kk=function(e,t){return He(He({},e),{format:t,get:!0,selection:!0})},Qk=function(e,t,n){void 0===n&&(n={});var r=Kk(n,t),o=e.fire("BeforeGetContent",r);if(o.isDefaultPrevented())return e.fire("GetContent",o),o.content;if("text"===o.format)return $k(e);o.getInner=!0;var i=Wk(e,o);return"tree"===o.format?i:(o.content=e.selection.isCollapsed()?"":i,e.fire("GetContent",o),o.content)},Gk=0,Yk=1,Jk=2,Xk=function(e,t){var n=e.length+t.length+2,r=new Array(n),o=new Array(n),i=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,o,i,u){var c=s(n,r,o,i);if(null===c||c.start===r&&c.diag===r-i||c.end===n&&c.diag===n-o){var l=n,f=o;while(l<r||f<i)l<r&&f<i&&e[l]===t[f]?(u.push([Gk,e[l]]),++l,++f):r-n>i-o?(u.push([Jk,e[l]]),++l):(u.push([Yk,t[f]]),++f)}else{a(n,c.start,o,c.start-c.diag,u);for(var d=c.start;d<c.end;++d)u.push([Gk,e[d]]);a(c.end,r,c.end-c.diag,i,u)}},u=function(n,r,o,a){var u=n;while(u-r<a&&u<o&&e[u]===t[u-r])++u;return i(n,u,r)},s=function(n,i,a,s){var c=i-n,l=s-a;if(0===c||0===l)return null;var f,d,h,p,m,g=c-l,v=l+c,b=(v%2===0?v:v+1)/2;for(r[1+b]=n,o[1+b]=i+1,f=0;f<=b;++f){for(d=-f;d<=f;d+=2){h=d+b,d===-f||d!==f&&r[h-1]<r[h+1]?r[h]=r[h+1]:r[h]=r[h-1]+1,p=r[h],m=p-n+a-d;while(p<i&&m<s&&e[p]===t[m])r[h]=++p,++m;if(g%2!==0&&g-f<=d&&d<=g+f&&o[h-g]<=r[h])return u(o[h-g],d+n-a,i,s)}for(d=g-f;d<=g+f;d+=2){h=d+b-g,d===g-f||d!==g+f&&o[h+1]<=o[h-1]?o[h]=o[h+1]-1:o[h]=o[h-1],p=o[h]-1,m=p-n+a-d;while(p>=n&&m>=a&&e[p]===t[m])o[h]=p--,m--;if(g%2===0&&-f<=d&&d<=f&&o[h]<=r[h+g])return u(o[h],d+n-a,i,s)}}},c=[];return a(0,e.length,0,t.length,c),c},Zk=function(e){return zr(e)?e.outerHTML:Zr(e)?Au.encodeRaw(e.data,!1):eo(e)?"\x3c!--"+e.data+"--\x3e":""},eE=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();e&&(n.innerHTML=e);while(t=n.firstChild)r.appendChild(t);return r},tE=function(e,t,n){var r=eE(t);if(e.hasChildNodes()&&n<e.childNodes.length){var o=e.childNodes[n];o.parentNode.insertBefore(r,o)}else e.appendChild(r)},nE=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},rE=function(e,t){var n=0;Z(e,(function(e){e[0]===Gk?n++:e[0]===Yk?(tE(t,e[1],n),n++):e[0]===Jk&&nE(t,n)}))},oE=function(e){return ne(X(be(e.childNodes),Zk),(function(e){return e.length>0}))},iE=function(e,t){var n=X(be(t.childNodes),Zk);return rE(Xk(n,e),t),t},aE=Ke((function(){return document.implementation.createHTMLDocument("undo")})),uE=function(e){return-1!==e.indexOf("</iframe>")},sE=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},cE=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},lE=function(e){var t=oE(e.getBody()),n=ce(t,(function(t){var n=Ky(e.serializer,t);return n.length>0?[n]:[]})),r=n.join("");return uE(r)?sE(n):cE(r)},fE=function(e,t,n){var r=n?t.beforeBookmark:t.bookmark;"fragmented"===t.type?iE(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw",no_selection:!S(r)||!om(r)||!r.isFakeCaret}),e.selection.moveToBookmark(r)},dE=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},hE=function(e){var t=wn.fromTag("body",aE());return ql(t,dE(e)),Z(kl(t,"*[data-mce-bogus]"),Or),Ul(t)},pE=function(e,t){return dE(e)===dE(t)},mE=function(e,t){return hE(e)===hE(t)},gE=function(e,t){return!(!e||!t)&&(!!pE(e,t)||mE(e,t))},vE=function(e){return 0===e.get()},bE=function(e,t,n){vE(n)&&(e.typing=t)},yE=function(e,t){e.typing&&(bE(e,!1,t),e.add())},wE=function(e){e.typing&&(e.typing=!1,e.add())},xE=function(e,t,n){vE(t)&&n.set(dd(e.selection))},_E=function(e,t,n,r,o,i,a){var u=lE(e);if(i=i||{},i=pn.extend(i,u),!1===vE(r)||e.removed)return null;var s=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:s,originalEvent:a}).isDefaultPrevented())return null;if(s&&gE(s,i))return null;t.data[n.get()]&&o.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var c=vh(e);if(c&&t.data.length>c){for(var l=0;l<t.data.length-1;l++)t.data[l]=t.data[l+1];t.data.length--,n.set(t.data.length)}i.bookmark=dd(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(i),n.set(t.data.length-1);var f={level:i,lastLevel:s,originalEvent:a};return n.get()>0?(e.setDirty(!0),e.fire("AddUndo",f),e.fire("change",f)):e.fire("AddUndo",f),i},CE=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},SE=function(e,t,n,r,o){if(t.transact(r)){var i=t.data[n.get()].bookmark,a=t.data[n.get()-1];fE(e,a,!0),t.transact(o)&&(t.data[n.get()-1].beforeBookmark=i)}},kE=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],fE(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},EE=function(e,t,n,r){var o;return t.typing&&(t.add(),t.typing=!1,bE(t,!1,n)),r.get()>0&&(r.set(r.get()-1),o=t.data[r.get()],fE(e,o,!0),e.setDirty(!0),e.fire("Undo",{level:o})),o},OE=function(e){e.clear(),e.add()},AE=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!gE(lE(e),t.data[0])},TE=function(e,t){return t.get()<e.data.length-1&&!e.typing},RE=function(e,t,n){return yE(e,t),e.beforeChange(),e.ignore(n),e.add()},NE=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},DE=function(e,t){var n=e.dom,r=S(t)?t:e.getBody();_(e.hasVisual)&&(e.hasVisual=Sh(e)),Z(n.select("table,a",r),(function(t){switch(t.nodeName){case"TABLE":var r=kh(e),o=n.getAttrib(t,"border");o&&"0"!==o||!e.hasVisual?n.removeClass(t,r):n.addClass(t,r);break;case"A":if(!n.getAttrib(t,"href")){var i=n.getAttrib(t,"name")||t.id,a=Eh(e);i&&e.hasVisual?n.addClass(t,a):n.removeClass(t,a)}break}})),e.fire("VisualAid",{element:t,hasVisual:e.hasVisual})},BE=function(e){return{undoManager:{beforeChange:function(t,n){return xE(e,t,n)},add:function(t,n,r,o,i,a){return _E(e,t,n,r,o,i,a)},undo:function(t,n,r){return EE(e,t,n,r)},redo:function(t,n){return kE(e,t,n)},clear:function(t,n){return CE(e,t,n)},reset:function(e){return OE(e)},hasUndo:function(t,n){return AE(e,t,n)},hasRedo:function(e,t){return TE(e,t)},transact:function(e,t,n){return RE(e,t,n)},ignore:function(e,t){return NE(e,t)},extra:function(t,n,r,o){return SE(e,t,n,r,o)}},formatter:{match:function(t,n,r,o){return VC(e,t,n,r,o)},matchAll:function(t,n){return UC(e,t,n)},matchNode:function(t,n,r,o){return FC(e,t,n,r,o)},canApply:function(t){return zC(e,t)},closest:function(t){return qC(e,t)},apply:function(t,n,r){return nk(e,t,n,r)},remove:function(t,n,r,o){return WS(e,t,n,r,o)},toggle:function(t,n,r){return dk(e,t,n,r)},formatChanged:function(t,n,r,o,i){return fk(e,t,n,r,o,i)}},editor:{getContent:function(t,n){return Xy(e,t,n)},setContent:function(t,n){return TC(e,t,n)},insertContent:function(t,n){return bC(e,t,n)},addVisual:function(t){return DE(e,t)}},selection:{getContent:function(t,n){return Qk(e,t,n)}},raw:{getModel:function(){return H.none()}}}},PE=function(e){var t=function(e){return b(e)?e:{}},n=e.undoManager,r=e.formatter,o=e.editor,i=e.selection,a=e.raw;return{undoManager:{beforeChange:n.beforeChange,add:n.add,undo:n.undo,redo:n.redo,clear:n.clear,reset:n.reset,hasUndo:n.hasUndo,hasRedo:n.hasRedo,transact:function(e,t,r){return n.transact(r)},ignore:function(e,t){return n.ignore(t)},extra:function(e,t,r,o){return n.extra(r,o)}},formatter:{match:function(e,n,o,i){return r.match(e,t(n),i)},matchAll:r.matchAll,matchNode:r.matchNode,canApply:function(e){return r.canApply(e)},closest:function(e){return r.closest(e)},apply:function(e,n,o){return r.apply(e,t(n))},remove:function(e,n,o,i){return r.remove(e,t(n))},toggle:function(e,n,o){return r.toggle(e,t(n))},formatChanged:function(e,t,n,o,i){return r.formatChanged(t,n,o,i)}},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 i.getContent(t)}},raw:{getModel:function(){return H.some(a.getRawModel())}}}},jE=function(){var e=R(null),t=R("");return{undoManager:{beforeChange:O,add:e,undo:e,redo:e,clear:O,reset:O,hasUndo:I,hasRedo:I,transact:e,ignore:O,extra:O},formatter:{match:I,matchAll:R([]),matchNode:R(void 0),canApply:I,closest:t,apply:O,remove:O,toggle:O,formatChanged:R({unbind:O})},editor:{getContent:t,setContent:t,insertContent:O,addVisual:O},selection:{getContent:t},raw:{getModel:R(H.none())}}},LE=function(e){return De(e.plugins,"rtc")},ME=function(e){return Ne(e.plugins,"rtc").bind((function(e){return H.from(e.setup)}))},IE=function(e){var t=e;return ME(e).fold((function(){return t.rtcInstance=BE(e),H.none()}),(function(e){return t.rtcInstance=jE(),H.some((function(){return e().then((function(e){return t.rtcInstance=PE(e),e.rtc.isRemote}))}))}))},FE=function(e){return e.rtcInstance?e.rtcInstance:BE(e)},VE=function(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")},UE=function(e,t,n){VE(e).undoManager.beforeChange(t,n)},qE=function(e,t,n,r,o,i,a){return VE(e).undoManager.add(t,n,r,o,i,a)},zE=function(e,t,n,r){return VE(e).undoManager.undo(t,n,r)},HE=function(e,t,n){return VE(e).undoManager.redo(t,n)},$E=function(e,t,n){VE(e).undoManager.clear(t,n)},WE=function(e,t){VE(e).undoManager.reset(t)},KE=function(e,t,n){return VE(e).undoManager.hasUndo(t,n)},QE=function(e,t,n){return VE(e).undoManager.hasRedo(t,n)},GE=function(e,t,n,r){return VE(e).undoManager.transact(t,n,r)},YE=function(e,t,n){VE(e).undoManager.ignore(t,n)},JE=function(e,t,n,r,o){VE(e).undoManager.extra(t,n,r,o)},XE=function(e,t,n,r,o){return VE(e).formatter.match(t,n,r,o)},ZE=function(e,t,n){return VE(e).formatter.matchAll(t,n)},eO=function(e,t,n,r,o){return VE(e).formatter.matchNode(t,n,r,o)},tO=function(e,t){return VE(e).formatter.canApply(t)},nO=function(e,t){return VE(e).formatter.closest(t)},rO=function(e,t,n,r){VE(e).formatter.apply(t,n,r)},oO=function(e,t,n,r,o){VE(e).formatter.remove(t,n,r,o)},iO=function(e,t,n,r){VE(e).formatter.toggle(t,n,r)},aO=function(e,t,n,r,o,i){return VE(e).formatter.formatChanged(t,n,r,o,i)},uO=function(e,t,n){return FE(e).editor.getContent(t,n)},sO=function(e,t,n){return FE(e).editor.setContent(t,n)},cO=function(e,t,n){return FE(e).editor.insertContent(t,n)},lO=function(e,t,n){return VE(e).selection.getContent(t,n)},fO=function(e,t){return VE(e).editor.addVisual(t)},dO=function(e,t){void 0===t&&(t={});var n=t.format?t.format:"html";return lO(e,n,t)},hO=function(e){return 0===e.dom.length?(Er(e),H.none()):H.some(e)},pO=function(e,t){return e.filter((function(e){return Lg.isBookmarkNode(e.dom)})).bind(t?er:Zn)},mO=function(e,t,n,r){var o=e.dom,i=t.dom,a=r?o.length:i.length;r?(wx(o,i,!1,!r),n.setStart(i,a)):(wx(i,o,!1,!r),n.setEnd(i,a))},gO=function(e,t){Yn(e).each((function(n){var r=e.dom;t&&ox(n,Nf(r,0))?bx(r,0):!t&&ax(n,Nf(r,r.length))&&yx(r,r.length)}))},vO=function(e,t,n,r){e.bind((function(e){var o=r?yx:bx;return o(e.dom,r?e.dom.length:0),t.filter(qn).map((function(t){return mO(e,t,n,r)}))})).orThunk((function(){var e=pO(t,r).or(t).filter(qn);return e.map((function(e){return gO(e,r)}))}))},bO=function(e,t){var n=H.from(t.firstChild).map(wn.fromDom),r=H.from(t.lastChild).map(wn.fromDom);e.deleteContents(),e.insertNode(t);var o=n.bind(Zn).filter(qn).bind(hO),i=r.bind(er).filter(qn).bind(hO);vO(o,n,e,!0),vO(i,r,e,!1),e.collapse(!1)},yO=function(e,t){return He(He({format:"html"},e),{set:!0,selection:!0,content:t})},wO=function(e,t){if("raw"!==t.format){var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),o=r?{context:r.nodeName.toLowerCase()}:{},i=e.parser.parse(t.content,He(He({isRootContent:!0,forced_root_block:!1},o),t));return rw({validate:e.validate},e.schema).serialize(i)}return t.content},xO=function(e,t,n){void 0===n&&(n={});var r=yO(n,t),o=r;if(!r.no_events){var i=e.fire("BeforeSetContent",r);if(i.isDefaultPrevented())return void e.fire("SetContent",i);o=i}o.content=wO(e,o);var a=e.selection.getRng();bO(a,a.createContextualFragment(o.content)),e.selection.setRng(a),eb(e,a),o.no_events||e.fire("SetContent",o)},_O=function(e,t,n){if(e&&De(e,t)){var r=ne(e[t],(function(e){return e!==n}));0===r.length?delete e[t]:e[t]=r}};function CO(e,t){var n,r,o=function(t,n){return ae(n,(function(n){return e.is(n,t)}))},i=function(t){return e.getParents(t,null,e.getRoot())};return{selectorChangedWithUnbind:function(e,a){return n||(n={},r={},t.on("NodeChange",(function(e){var t=e.element,a=i(t),u={};pn.each(n,(function(e,t){o(t,a).each((function(n){r[t]||(Z(e,(function(e){e(!0,{node:n,selector:t,parents:a})})),r[t]=e),u[t]=e}))})),pn.each(r,(function(e,n){u[n]||(delete r[n],pn.each(e,(function(e){e(!1,{node:t,selector:n,parents:a})})))}))}))),n[e]||(n[e]=[]),n[e].push(a),o(e,i(t.selection.getStart())).each((function(){r[e]=n[e]})),{unbind:function(){_O(n,e,a),_O(r,e,a)}}}}}var SO=function(e){return!!e.select},kO=function(e){return!(!e||!e.ownerDocument)&&Ln(wn.fromDom(e.ownerDocument),wn.fromDom(e))},EO=function(e){return!!e&&(!!SO(e)||kO(e.startContainer)&&kO(e.endContainer))},OO=function(e,t,n,r){var o,i,a=CO(e,r).selectorChangedWithUnbind,u=function(t,n){var o=e.createRng();S(t)&&S(n)?(o.setStart(t,n),o.setEnd(t,n),y(o),g(!1)):(_g(e,o,r.getBody(),!0),y(o))},s=function(e){return dO(r,e)},c=function(e,t){return xO(r,e,t)},l=function(e){return gy(r.getBody(),b(),e)},f=function(e){return vy(r.getBody(),b(),e)},d=function(e,t){return B.getBookmark(e,t)},h=function(e){return B.moveToBookmark(e)},p=function(t,n){return xy(e,t,n).each(y),t},m=function(){var e=b(),t=v();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},g=function(e){var t=b();t.collapse(!!e),y(t)},v=function(){return t.getSelection?t.getSelection():t.document.selection},b=function(){var n,a,u,s=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}},c=t.document;if(void 0!==r.bookmark&&!1===ly(r)){var l=Mb(r);if(l.isSome())return l.map((function(e){return _y(r,[e])[0]})).getOr(c.createRange())}try{(n=v())&&!qr(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():c.createRange(),a=_y(r,[a])[0])}catch(f){}return a||(a=c.createRange?c.createRange():c.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(u=e.getRoot(),a.setStart(u,0),a.setEnd(u,0)),o&&i&&(0===s(a.START_TO_START,a,o)&&0===s(a.END_TO_END,a,o)?a=i:(o=null,i=null)),a},y=function(e,t){var n;if(EO(e)){var a=SO(e)?e:null;if(a){i=null;try{a.select()}catch(c){}}else{var u=v(),s=r.fire("SetSelectionRange",{range:e,forward:t});if(e=s.range,u){i=e;try{u.removeAllRanges(),u.addRange(e)}catch(c){}!1===t&&u.extend&&(u.collapse(e.endContainer,e.endOffset),u.extend(e.startContainer,e.startOffset)),o=u.rangeCount>0?u.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!u.setBaseAndExtent||en.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset],n&&"IMG"===n.tagName&&(u.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),u.anchorNode===e.startContainer&&u.focusNode===e.endContainer||u.setBaseAndExtent(n,0,n,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},w=function(t){return c(e.getOuterHTML(t)),t},x=function(){return yy(r.getBody(),b())},_=function(t,n){return wy(e,b(),t,n)},C=function(){var t=v(),n=null===t||void 0===t?void 0:t.anchorNode,r=null===t||void 0===t?void 0:t.focusNode;if(!t||!n||!r||qr(n)||qr(r))return!0;var o=e.createRng();o.setStart(n,t.anchorOffset),o.collapse(!0);var i=e.createRng();return i.setStart(r,t.focusOffset),i.collapse(!0),o.compareBoundaryPoints(o.START_TO_START,i)<=0},k=function(){var t=b(),n=v();if(!fg(n)&&Cg(r)){var o=yv(e,t);return o.each((function(e){y(e,C())})),o.getOr(t)}return t},E=function(e,t){return a(e,t),D},O=function(){var t,n=e.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},A=function(e,t){S(e)?Zv(r,e,t):eb(r,b(),t)},T=function(e,t){return y(av(e,t,r.getDoc()))},R=function(){var e=b();return e.collapsed?Nf.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},N=function(){t=o=i=null,P.destroy()},D={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:g,setCursorLocation:u,getContent:s,setContent:c,getBookmark:d,moveToBookmark:h,select:p,isCollapsed:m,isForward:C,setNode:w,getNode:x,getSel:v,setRng:y,getRng:b,getStart:l,getEnd:f,getSelectedBlocks:_,normalize:k,selectorChanged:E,selectorChangedWithUnbind:a,getScrollContainer:O,scrollIntoView:A,placeCaretAt:T,getBoundingClientRect:R,destroy:N},B=Lg(D),P=tv(D,r);return D.bookmarkManager=B,D.controlSelection=P,D},AO=function(e,t){Z(t,(function(t){e.attr(t,null)}))},TO=function(e,t,n){e.addNodeFilter("font",(function(e){Z(e,(function(e){var r=t.parse(e.attr("style")),o=e.attr("color"),i=e.attr("face"),a=e.attr("size");o&&(r.color=o),i&&(r["font-family"]=i),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),AO(e,["color","face","size"])}))}))},RO=function(e,t){e.addNodeFilter("strike",(function(e){Z(e,(function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))}))}))},NO=function(e,t){var n=Uu();t.convert_fonts_to_spans&&TO(e,n,pn.explode(t.font_size_legacy_values)),RO(e,n)},DO=function(e,t){t.inline_styles&&NO(e,t)},BO=function(e){return new Ti((function(t,n){var r=function(){n("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){200===o.status?t(o.response):r()},o.onerror=r,o.send()}catch(i){r()}}))},PO=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},jO=function(e,t){var n;try{n=atob(t)}catch(pU){return H.none()}for(var r=new Uint8Array(n.length),o=0;o<r.length;o++)r[o]=n.charCodeAt(o);return H.some(new Blob([r],{type:e}))},LO=function(e){return new Ti((function(t){var n=PO(e),r=n.type,o=n.data;jO(r,o).fold((function(){return t(new Blob([]))}),t)}))},MO=function(e){return 0===e.indexOf("blob:")?BO(e):0===e.indexOf("data:")?LO(e):null},IO=function(e){return new Ti((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},FO=0,VO=function(e){return(e||"blobid")+FO++},UO=function(e,t,n,r){var o,i;if(0===t.src.indexOf("blob:"))return i=e.getByUri(t.src),void(i?n({image:t,blobInfo:i}):MO(t.src).then((function(r){IO(r).then((function(a){o=PO(a).data,i=e.create(VO(),r,o),e.add(i),n({image:t,blobInfo:i})}))}),(function(e){r(e)})));var a=PO(t.src),u=a.data,s=a.type;o=u,i=e.getByData(o,s),i?n({image:t,blobInfo:i}):MO(t.src).then((function(r){i=e.create(VO(),r,o),e.add(i),n({image:t,blobInfo:i})}),(function(e){r(e)}))},qO=function(e){return e?be(e.getElementsByTagName("img")):[]},zO=function(e,t){var n={},r=function(r,o){o||(o=F);var i=ne(qO(r),(function(t){var n=t.src;return!!en.fileApi&&(!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!n||n===en.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&o(t):0===n.indexOf("data:")&&o(t)))))})),a=X(i,(function(e){if(void 0!==n[e.src])return new Ti((function(t){n[e.src].then((function(n){if("string"===typeof n)return n;t({image:e,blobInfo:n.blobInfo})}))}));var r=new Ti((function(n,r){UO(t,e,n,r)})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r,r}));return Ti.all(a)};return{findAll:r}},HO=function(e,t,n,r){var o=e.padd_empty_with_br||t.insert;o&&n[r.name]?r.empty().append(new Oy("br",1)).shortEnded=!0:r.empty().append(new Oy("#text",3)).value=ca},$O=function(e){return WO(e,"#text")&&e.firstChild.value===ca},WO=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},KO=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},QO=function(e,t,n,r){return r.isEmpty(t,n,(function(t){return KO(e,t)}))},GO=function(e,t){return e&&(De(t,e.name)||"br"===e.name)},YO=function(e){return S(e.attr("data-mce-bogus"))},JO=function(e){return e.attr("src")===en.transparentSrc||S(e.attr("data-mce-placeholder"))},XO=function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),_e(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0},ZO=function(e,t){var n=t.blob_cache,r=function(e){var r=e.attr("src");JO(e)||YO(e)||Ry(r).filter((function(){return XO(e,t)})).bind((function(e){var t=e.type,r=e.data;return H.from(n.getByData(r,t)).orThunk((function(){return jO(t,r).map((function(e){var t=n.create(VO(),e,r);return n.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))};n&&e.addAttributeFilter("src",(function(e){return Z(e,r)}))},eA=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,r,o){var i,a,u,s,c,l,f,d,h=e.length,p=pn.extend({},n.getBlockElements()),m=n.getNonEmptyElements(),g=n.getWhiteSpaceElements();for(p.body=1,i=0;i<h;i++)if(a=e[i],u=a.parent,p[a.parent.name]&&a===u.lastChild){c=a.prev;while(c){if(l=c.name,"span"!==l||"bookmark"!==c.attr("data-mce-type")){"br"===l&&(a=null);break}c=c.prev}a&&(a.remove(),QO(n,m,g,u)&&(f=n.getElementRule(u.name),f&&(f.removeEmpty?u.remove():f.paddEmpty&&HO(t,o,p,u))))}else{s=a;while(u&&u.firstChild===s&&u.lastChild===s){if(s=u,p[u.name])break;u=u.parent}s===u&&!0!==t.padd_empty_with_br&&(d=new Oy("#text",3),d.value=ca,a.replace(d))}})),e.addAttributeFilter("href",(function(e){var n=e.length,r=function(e){var t=e.split(" ").filter((function(e){return e.length>0}));return t.concat(["noopener"]).sort().join(" ")},o=function(e){var t=e?pn.trim(e):"";return/\b(noopener)\b/g.test(t)?t:r(t)};if(!t.allow_unsafe_link_target)while(n--){var i=e[n];"a"===i.name&&"_blank"===i.attr("target")&&i.attr("rel",o(i.attr("rel")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){var t,n,r,o,i=e.length;while(i--)if(o=e[i],"a"===o.name&&o.firstChild&&!o.attr("href")){r=o.parent,t=o.lastChild;do{n=t.prev,r.insert(t,o),t=n}while(t)}})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){var t,n,r=e.length;while(r--)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var o=new Oy("li",1);o.attr("style","list-style-type: none"),t.wrap(o)}})),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",(function(e){var t=n.getValidClasses(),r=e.length;while(r--){for(var o=e[r],i=o.attr("class").split(" "),a="",u=0;u<i.length;u++){var s=i[u],c=!1,l=t["*"];l&&l[s]&&(c=!0),l=t[o.name],!c&&l&&l[s]&&(c=!0),c&&(a&&(a+=" "),a+=s)}a.length||(a=null),o.attr("class",a)}})),ZO(e,t)},tA=pn.makeMap,nA=pn.each,rA=pn.explode,oA=pn.extend,iA=function(e,t){void 0===t&&(t=Fu());var n={},r=[],o={},i={};e=e||{},e.validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a=function(e){for(var n=tA("tr,td,th,tbody,thead,tfoot,table"),r=t.getNonEmptyElements(),o=t.getWhiteSpaceElements(),i=t.getTextBlockElements(),a=t.getSpecialElements(),s=function(e,n){if(void 0===n&&(n=e.parent),a[e.name])e.empty().remove();else{for(var r=e.children(),o=0,i=r;o<i.length;o++){var u=i[o];t.isValidChild(n.name,u.name)||s(u,n)}e.unwrap()}},c=0;c<e.length;c++){var l=e[c],f=void 0,d=void 0,h=void 0;if(l.parent&&!l.fixed)if(i[l.name]&&"li"===l.parent.name){var p=l.next;while(p){if(!i[p.name])break;p.name="li",p.fixed=!0,l.parent.insert(p,l.parent),p=p.next}l.unwrap()}else{var m=[l];for(f=l.parent;f&&!t.isValidChild(f.name,l.name)&&!n[f.name];f=f.parent)m.push(f);if(f&&m.length>1)if(t.isValidChild(f.name,l.name)){m.reverse(),d=u(m[0].clone());for(var g=d,v=0;v<m.length-1;v++){t.isValidChild(g.name,m[v].name)?(h=u(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}QO(t,r,o,d)?f.insert(l,m[0],!0):(f.insert(d,m[0],!0),f.insert(l,d)),f=m[0],(QO(t,r,o,f)||WO(f,"br"))&&f.empty().remove()}else s(l);else if(l.parent){if("li"===l.name){p=l.prev;if(p&&("ul"===p.name||"ol"===p.name)){p.append(l);continue}if(p=l.next,p&&("ul"===p.name||"ol"===p.name)){p.insert(l,p.firstChild,!0);continue}l.wrap(u(new Oy("ul",1)));continue}t.isValidChild(l.parent.name,"div")&&t.isValidChild("div",l.name)?l.wrap(u(new Oy("div",1))):s(l)}}}},u=function(e){var t=e.name;if(t in n){var a=o[t];a?a.push(e):o[t]=[e]}var u=r.length;while(u--){var s=r[u].name;if(s in e.attributes.map){a=i[s];a?a.push(e):i[s]=[e]}}return e},s=function(e,t){nA(rA(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},c=function(){var e=[];for(var t in n)De(n,t)&&e.push({name:t,callbacks:n[t]});return e},l=function(e,t){nA(rA(e),(function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},f=function(){return[].concat(r)},d=function(u,s){var c,l,f,d,h,p,m,g,v=[],b=function(e){return!1===e?"":!0===e?"p":e};s=s||{},o={},i={};var y=oA(tA("script,style,head,html,body,title,meta,param"),t.getBlockElements()),w=t.getNonEmptyElements(),x=t.children,_=e.validate,C="forced_root_block"in s?s.forced_root_block:e.forced_root_block,S=b(C),k=t.getWhiteSpaceElements(),E=/^[ \t\r\n]+/,O=/[ \t\r\n]+$/,A=/[ \t\r\n]+/g,T=/^[ \t\r\n]+$/,R=De(k,s.context)||De(k,e.root_name),N=function(){var n=L.firstChild,r=null,o=function(e){e&&(n=e.firstChild,n&&3===n.type&&(n.value=n.value.replace(E,"")),n=e.lastChild,n&&3===n.type&&(n.value=n.value.replace(O,"")))};if(t.isValidChild(L.name,S.toLowerCase())){while(n){var i=n.next;3===n.type||1===n.type&&"p"!==n.name&&!y[n.name]&&!n.attr("data-mce-type")?(r||(r=D(S,1),r.attr(e.forced_root_block_attrs),L.insert(r,n)),r.append(n)):(o(r),r=null),n=i}o(r)}},D=function(e,t){var r,i=new Oy(e,t);return e in n&&(r=o[e],r?r.push(i):o[e]=[i]),i},B=function(e){for(var n=t.getBlockElements(),r=e.prev;r&&3===r.type;){var o=r.value.replace(O,"");if(o.length>0)return void(r.value=o);var i=r.next;if(i){if(3===i.type&&i.value.length){r=r.prev;continue}if(!n[i.name]&&"script"!==i.name&&"style"!==i.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}},P=function(e){var t={};for(var n in e)"li"!==n&&"p"!==n&&(t[n]=e[n]);return t},j=$y({validate:_,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:P(t.getSelfClosingElements()),cdata:function(e){g.append(D("#cdata",4)).value=e},text:function(e,t){var n;R||(e=e.replace(A," "),GO(g.lastChild,y)&&(e=e.replace(E,""))),0!==e.length&&(n=D("#text",3),n.raw=!!t,g.append(n).value=e)},comment:function(e){g.append(D("#comment",8)).value=e},pi:function(e,t){g.append(D(e,7)).value=t,B(g)},doctype:function(e){var t=g.append(D("#doctype",10));t.value=e,B(g)},start:function(e,n,o){var a=_?t.getElementRule(e):{};if(a){var u=D(a.outputName||e,1);u.attributes=n,u.shortEnded=o,g.append(u);var s=x[g.name];s&&x[u.name]&&!s[u.name]&&v.push(u);var c=r.length;while(c--){var l=r[c].name;l in n.map&&(p=i[l],p?p.push(u):i[l]=[u])}y[e]&&B(u),o||(g=u),!R&&k[e]&&(R=!0)}},end:function(n){var r,o,i,a,u=_?t.getElementRule(n):{};if(u){if(y[n]&&!R){if(r=g.firstChild,r&&3===r.type)if(o=r.value.replace(E,""),o.length>0)r.value=o,r=r.next;else{i=r.next,r.remove(),r=i;while(r&&3===r.type)o=r.value,i=r.next,(0===o.length||T.test(o))&&(r.remove(),r=i),r=i}if(r=g.lastChild,r&&3===r.type)if(o=r.value.replace(O,""),o.length>0)r.value=o,r=r.prev;else{i=r.prev,r.remove(),r=i;while(r&&3===r.type)o=r.value,i=r.prev,(0===o.length||T.test(o))&&(r.remove(),r=i),r=i}}if(R&&k[n]&&(R=!1),u.removeEmpty&&QO(t,w,k,g))return a=g.parent,y[g.name]?g.empty().remove():g.unwrap(),void(g=a);u.paddEmpty&&($O(g)||QO(t,w,k,g))&&HO(e,s,y,g),g=g.parent}}},t),L=g=new Oy(s.context||e.root_name,11);if(j.parse(u,s.format),_&&v.length&&(s.context?s.invalid=!0:a(v)),S&&("body"===L.name||s.isRootContent)&&N(),!s.invalid){for(m in o)if(De(o,m)){p=n[m],c=o[m],d=c.length;while(d--)c[d].parent||c.splice(d,1);for(l=0,f=p.length;l<f;l++)p[l](c,m,s)}for(l=0,f=r.length;l<f;l++)if(p=r[l],p.name in i){c=i[p.name],d=c.length;while(d--)c[d].parent||c.splice(d,1);for(d=0,h=p.callbacks.length;d<h;d++)p.callbacks[d](c,p.name,s)}}return L},h={schema:t,addAttributeFilter:l,getAttributeFilters:f,addNodeFilter:s,getNodeFilters:c,filterNode:u,parse:d};return eA(h,e),DO(h,e),h},aA=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",(function(e,t){var n=e.length;while(n--){var r=e[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(t,null)}})),e.addAttributeFilter("src,href,style",(function(e,r){var o="data-mce-"+r,i=t.url_converter,a=t.url_converter_scope,u=e.length;while(u--){var s=e[u],c=s.attr(o);void 0!==c?(s.attr(r,c.length>0?c:null),s.attr(o,null)):(c=s.attr(r),"style"===r?c=n.serializeStyle(n.parseStyle(c),s.name):i&&(c=i.call(a,c,r,s.name)),s.attr(r,c.length>0?c:null))}})),e.addAttributeFilter("class",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("class");r&&(r=n.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),n.attr("class",r.length>0?r:null))}})),e.addAttributeFilter("data-mce-type",(function(e,t,n){var r=e.length;while(r--){var o=e[r];if("bookmark"===o.attr("data-mce-type")&&!n.cleanup){var i=H.from(o.firstChild).exists((function(e){return!ha(e.value)}));i?o.unwrap():o.remove()}}})),e.addNodeFilter("noscript",(function(e){var t=e.length;while(t--){var n=e[t].firstChild;n&&(n.value=Au.decode(n.value))}})),e.addNodeFilter("script,style",(function(e,n){var r=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,"")},o=e.length;while(o--){var i=e[o],a=i.firstChild?i.firstChild.value:"";if("script"===n){var u=i.attr("type");u&&i.attr("type","mce-no/type"===u?null:u.replace(/^mce\-/,"")),"xhtml"===t.element_format&&a.length>0&&(i.firstChild.value="// <![CDATA[\n"+r(a)+"\n// ]]>")}else"xhtml"===t.element_format&&a.length>0&&(i.firstChild.value="\x3c!--\n"+r(a)+"\n--\x3e")}})),e.addNodeFilter("#comment",(function(e){var r=e.length;while(r--){var o=e[r];t.preserve_cdata&&0===o.value.indexOf("[CDATA[")?(o.name="#cdata",o.type=4,o.value=n.decode(o.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===o.value.indexOf("mce:protected ")&&(o.name="#text",o.type=3,o.raw=!0,o.value=unescape(o.value).substr(14))}})),e.addNodeFilter("xml:namespace,input",(function(e,t){var n=e.length;while(n--){var r=e[n];7===r.type?r.remove():1===r.type&&("input"!==t||r.attr("type")||r.attr("type","text"))}})),e.addAttributeFilter("data-mce-type",(function(t){Z(t,(function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())}))})),e.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){var n=e.length;while(n--)e[n].attr(t,null)}))},uA=function(e){var t=function(e){return e&&"br"===e.name},n=e.lastChild;if(t(n)){var r=n.prev;t(r)&&(n.remove(),r.remove())}},sA=function(e,t,n){var r,o=e.dom,i=t.cloneNode(!0),a=document.implementation;if(a.createHTMLDocument){var u=a.createHTMLDocument("");pn.each("BODY"===i.nodeName?i.childNodes:[i],(function(e){u.body.appendChild(u.importNode(e,!0))})),i="BODY"!==i.nodeName?u.body.firstChild:u.body,r=o.doc,o.doc=u}return Fg(e,He(He({},n),{node:i})),r&&(o.doc=r),i},cA=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},lA=function(e,t,n){return cA(e,n)?sA(e,t,n):t},fA=function(e,t,n){-1===pn.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)})),t.push(n))},dA=function(e,t,n){if(!t.no_events&&e){var r=Vg(e,He(He({},t),{content:n}));return r.content}return n},hA=function(e,t,n){var r=pa(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||aa(wn.fromDom(t))?r:pn.trim(r)},pA=function(e,t,n){var r=n.selection?He({forced_root_block:!1},n):n,o=e.parse(t,r);return uA(o),o},mA=function(e,t,n){var r=rw(e,t);return r.serialize(n)},gA=function(e,t,n,r,o){var i=mA(t,n,r);return dA(e,o,i)},vA=function(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:Fc.DOM,o=t&&t.schema?t.schema:Fu(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var i=iA(e,o);aA(i,e,r);var a=function(n,a){void 0===a&&(a={});var u=He({format:"html"},a),s=lA(t,n,u),c=hA(r,s,u),l=pA(i,c,u);return"tree"===u.format?l:gA(t,e,o,l,u)};return{schema:o,addNodeFilter:i.addNodeFilter,addAttributeFilter:i.addAttributeFilter,serialize:a,addRules:o.addValidElements,setRules:o.setValidElements,addTempAttr:B(fA,i,n),getTempAttrs:R(n),getNodeFilters:i.getNodeFilters,getAttributeFilters:i.getAttributeFilters}},bA=function(e,t){var n=vA(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}},yA="html",wA=function(e,t){void 0===t&&(t={});var n=t.format?t.format:yA;return uO(e,t,n)},xA=function(e,t,n){return void 0===n&&(n={}),sO(e,t,n)},_A=Fc.DOM,CA=function(e){_A.setStyle(e.id,"display",e.orgDisplay)},SA=function(e){return H.from(e).each((function(e){return e.destroy()}))},kA=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},EA=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),_A.unbind(t,"submit reset",e.formEventDelegate))},OA=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&_A.remove(o.nextSibling),Ug(e),e.editorManager.remove(e),!e.inline&&r&&CA(e),qg(e),_A.remove(e.getContainer()),SA(t),SA(n),e.destroy()}},AA=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),SA(n),SA(r)),EA(e),kA(e),e.destroyed=!0):e.remove())},TA=function(e,t){var n=b(e)&&b(t);return n?NA(e,t):t},RA=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<t.length;o++){var i=t[o];for(var a in i)De(i,a)&&(r[a]=e(r[a],i[a]))}return r}},NA=RA(TA),DA="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(","),BA="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),PA="imagetools,toc".split(","),jA=function(e){var t=ne(DA,(function(t){return De(e,t)})),n=e.forced_root_block;return!1!==n&&""!==n||t.push("forced_root_block (false only)"),pe(t)},LA=function(e){var t=pn.makeMap(e.plugins," "),n=function(e){return De(t,e)},r=We(We([],ne(BA,n),!0),ce(PA,(function(e){return n(e)?[e+" (moving to premium)"]:[]})),!0);return pe(r)},MA=function(e,t){var n=jA(e),r=LA(t),o=r.length>0,i=n.length>0,a="mobile"===t.theme;if(o||i||a){var u="\n- ",s=a?"\n\nThemes:"+u+"mobile":"",c=o?"\n\nPlugins:"+u+r.join(u):"",l=i?"\n\nSettings:"+u+n.join(u):"";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."+s+c+l)}},IA=function(e,t){return{sections:R(e),settings:R(t)}},FA=$t().deviceType,VA=FA.isTouch(),UA=FA.isPhone(),qA=FA.isTablet(),zA=["lists","autolink","autosave"],HA={table_grid:!1,object_resizing:!1,resize:!1},$A=function(e){var t=y(e)?e.join(" "):e,n=X(v(t)?t.split(" "):[],ft);return ne(n,(function(e){return e.length>0}))},WA=function(e){return ne(e,B(Y,zA))},KA=function(e,t){var n=Oe(t,(function(t,n){return Y(e,n)}));return IA(n.t,n.f)},QA=function(e,t,n){void 0===n&&(n={});var r=e.sections(),o=Ne(r,t).getOr({});return pn.extend({},n,o)},GA=function(e,t){return De(e.sections(),t)},YA=function(e,t,n){var r=e.sections();return GA(e,t)&&r[t].theme===n},JA=function(e,t){return GA(e,t)?e.sections()[t]:{}},XA=function(e,t){return Ne(e,"toolbar_mode").orThunk((function(){return Ne(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)},ZA=function(e,t,n,r,o){var i={id:t,theme:"silver",toolbar_mode:XA(e,"floating"),plugins:"",document_base_url:n,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:o.convertURL,url_converter_scope:o};return He(He({},i),r?HA:{})},eT=function(e,t){var n={resize:!1,toolbar_mode:XA(e,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return He(He(He({},HA),n),t?r:{})},tT=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?pn.extend({},e.external_plugins,n):n},nT=function(e,t){return[].concat($A(e)).concat($A(t))},rT=function(e,t,n,r){return e&&YA(t,"mobile","mobile")?WA(r):e&&GA(t,"mobile")?r:n},oT=function(e,t,n,r){var o=$A(n.forced_plugins),i=$A(r.plugins),a=JA(t,"mobile"),u=a.plugins?$A(a.plugins):i,s=rT(e,t,i,u),c=nT(o,s);if(en.browser.isIE()&&Y(c,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return pn.extend(r,{plugins:c.join(" ")})},iT=function(e,t){return e&&GA(t,"mobile")},aT=function(e,t,n,r,o){var i=e?{mobile:eT(o.mobile||{},t)}:{},a=KA(["mobile"],NA(i,o)),u=pn.extend(n,r,a.settings(),iT(e,a)?QA(a,"mobile"):{},{validate:!0,external_plugins:tT(r,a.settings())});return oT(e,a,r,u)},uT=function(e,t,n,r,o){var i=ZA(o,t,n,VA,e),a=aT(UA||qA,UA,i,r,o);return!1!==a.deprecation_warnings&&MA(o,a),a},sT=function(e,t,n){return H.from(t.settings[n]).filter(e)},cT=function(e){var t={};return"string"===typeof e?Z(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),(function(e){var n=e.split("=");n.length>1?t[pn.trim(n[0])]=pn.trim(n[1]):t[pn.trim(n[0])]=pn.trim(n[0])})):t=e,t},lT=function(e){return function(t){return y(t)&&le(t,e)}},fT=function(e,t,n,r){var o=t in e.settings?e.settings[t]:n;return"hash"===r?cT(o):"string"===r?sT(v,e,t).getOr(n):"number"===r?sT(E,e,t).getOr(n):"boolean"===r?sT(x,e,t).getOr(n):"object"===r?sT(b,e,t).getOr(n):"array"===r?sT(y,e,t).getOr(n):"string[]"===r?sT(lT(v),e,t).getOr(n):"function"===r?sT(k,e,t).getOr(n):o},dT=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return De(e,t)};return{add:t,get:n,has:r}},hT=dT(),pT=function(e,t){var n=t.dom;return n[e]},mT=function(e,t){return parseInt(Eo(t,e),10)},gT=B(pT,"clientWidth"),vT=B(pT,"clientHeight"),bT=B(mT,"margin-top"),yT=B(mT,"margin-left"),wT=function(e){return e.dom.getBoundingClientRect()},xT=function(e,t,n){var r=gT(e),o=vT(e);return t>=0&&n>=0&&t<=r&&n<=o},_T=function(e,t,n,r){var o=wT(t),i=e?o.left+t.dom.clientLeft+yT(t):0,a=e?o.top+t.dom.clientTop+bT(t):0,u=n-i,s=r-a;return{x:u,y:s}},CT=function(e,t,n){var r=wn.fromDom(e.getBody()),o=e.inline?r:Qn(r),i=_T(e.inline,o,t,n);return xT(o,i.x,i.y)},ST=function(e){return H.from(e).map(wn.fromDom)},kT=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return ST(t).map(Ar).getOr(!1)},ET=function(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}},OT=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():ET()},r=function(){return H.from(t[0])},o=function(e,t){return e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout},i=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},u=function(e){ue(t,(function(t){return t===e})).each((function(e){t.splice(e,1)}))},s=function(s,c){if(void 0===c&&(c=!0),!e.removed&&kT(e))return c&&e.fire("BeforeOpenNotification",{notification:s}),ae(t,(function(e){return o(n().getArgs(e),s)})).getOrThunk((function(){e.editorManager.setActive(e);var t=n().open(s,(function(){u(t),i(),r().fold((function(){return e.focus()}),(function(e){return nb(wn.fromDom(e.getEl()))}))}));return a(t),i(),e.fire("OpenNotification",{notification:He({},t)}),t}))},c=function(){r().each((function(e){n().close(e),u(e),i()}))},l=R(t),f=function(e){e.on("SkinLoaded",(function(){var t=th(e);t&&s({text:t,type:"warning",timeout:0},!1),i()})),e.on("show ResizeEditor ResizeWindow NodeChange",(function(){Li.requestAnimationFrame(i)})),e.on("remove",(function(){Z(t.slice(),(function(e){n().close(e)}))}))};return f(e),{open:s,close:c,getNotifications:l}},AT=sl.PluginManager,TT=sl.ThemeManager;function RT(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}var NT=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():RT()},r=function(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}},o=function(t){e.fire("OpenWindow",{dialog:t})},i=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),o(e)},u=function(n){i(n),t=ne(t,(function(e){return e!==n})),0===t.length&&e.focus()},s=function(){return H.from(t[t.length-1])},c=function(t){e.editorManager.setActive(e),jb(e);var n=t();return a(n),n},l=function(e,t){return c((function(){return n().open(e,t,u)}))},f=function(e){return c((function(){return n().openUrl(e,u)}))},d=function(e,t,o){var i=n();i.alert(e,r(o||i,t))},h=function(e,t,o){var i=n();i.confirm(e,r(o||i,t))},p=function(){s().each((function(e){n().close(e),u(e)}))};return e.on("remove",(function(){Z(t,(function(e){n().close(e)}))})),{open:l,openUrl:f,alert:d,confirm:h,close:p}},DT=function(e,t){e.notificationManager.open({type:"error",text:t})},BT=function(e,t){e._skinLoaded?DT(e,t):e.on("SkinLoaded",(function(){DT(e,t)}))},PT=function(e,t){BT(e,ul.translate(["Failed to upload image: {0}",t]))},jT=function(e,t,n){Yg(e,t,{message:n}),console.error(n)},LT=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},MT=function(e,t,n){jT(e,"PluginLoadError",LT("plugin",t,n))},IT=function(e,t,n){jT(e,"IconsLoadError",LT("icons",t,n))},FT=function(e,t,n){jT(e,"LanguageLoadError",LT("language",t,n))},VT=function(e,t,n){var r=ul.translate(["Failed to initialize plugin: {0}",t]);Yg(e,"PluginLoadError",{message:r}),UT(r,n),BT(e,r)},UT=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,We([e],t,!1)):r.log.apply(r,We([e],t,!1)))},qT=function(e){return/^[a-z0-9\-]+$/i.test(e)},zT=function(e){return $T(e,Kd(e))},HT=function(e){return $T(e,Qd(e))},$T=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,o="content"+r+".css",i=!0===e.inline;return X(t,(function(t){return qT(t)&&!i?n+"/"+t+"/"+o:e.documentBaseURI.toAbsolute(t)}))},WT=function(e){e.contentCSS=e.contentCSS.concat(zT(e),HT(e))},KT=function(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},o=function(e){return e in n},i=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return!!o(t)&&n[t].status===e},u=function(e){return!!o(e)&&n[e].status===t},s=function(t){n[t]=r(e,null)},c=function(e,o){n[e]=r(t,o)},l=function(e){delete n[e]},f=function(){n={}};return{hasBlobUri:o,getResultUri:i,isPending:a,isUploaded:u,markPending:s,markUploaded:c,removeFailed:l,destroy:f}},QT=0,GT=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},YT=function(e){return e+QT+++GT()},JT=function(){var e=[],t=function(e){var t={"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"};return t[e.toLowerCase()]||"dat"},n=function(e,t,n,o,i){if(v(e)){var a=e;return r({id:a,name:o,filename:i,blob:t,base64:n})}if(b(e))return r(e);throw new Error("Unknown input type")},r=function(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=e.id||YT("blobid"),r=e.name||n,o=e.blob;return{id:R(n),name:R(r),filename:R(e.filename||r+"."+t(o.type)),blob:R(o),base64:R(e.base64),blobUri:R(e.blobUri||URL.createObjectURL(o)),uri:R(e.uri)}},o=function(t){a(t.id())||e.push(t)},i=function(t){return ae(e,t).getOrUndefined()},a=function(e){return i((function(t){return t.id()===e}))},u=function(e){return i((function(t){return t.blobUri()===e}))},s=function(e,t){return i((function(n){return n.base64()===e&&n.blob().type===t}))},c=function(t){e=ne(e,(function(e){return e.blobUri()!==t||(URL.revokeObjectURL(e.blobUri()),!1)}))},l=function(){Z(e,(function(e){URL.revokeObjectURL(e.blobUri())})),e=[]};return{create:n,add:o,get:a,getByUri:u,getByData:s,findFirst:i,removeByUri:c,destroy:l}},XT=function(e,t){var n={},r=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},o=function(e,n,o,i){var a=new XMLHttpRequest;a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=function(e){i(e.loaded/e.total*100)},a.onerror=function(){o("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)o("HTTP Error: "+a.status);else{var e=JSON.parse(a.responseText);e&&"string"===typeof e.location?n(r(t.basePath,e.location)):o("Invalid JSON: "+a.responseText)}};var u=new FormData;u.append("file",e.blob(),e.filename()),a.send(u)},i=function(){return new Ti((function(e){e([])}))},a=function(e,t){return{url:t,blobInfo:e,status:!0}},u=function(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}},s=function(e,t){pn.each(n[e],(function(e){e(t)})),delete n[e]},c=function(t,n,r){return e.markPending(t.blobUri()),new Ti((function(o){var i,c;try{var l=function(){i&&(i.close(),c=O)},f=function(n){l(),e.markUploaded(t.blobUri(),n),s(t.blobUri(),a(t,n)),o(a(t,n))},d=function(n,r){var i=r||{};l(),e.removeFailed(t.blobUri()),s(t.blobUri(),u(t,n,i)),o(u(t,n,i))};c=function(e){e<0||e>100||H.from(i).orThunk((function(){return H.from(r).map(L)})).each((function(t){i=t,t.progressBar.value(e)}))},n(t,f,d,c)}catch(h){o(u(t,h.message,{}))}}))},l=function(e){return e===o},f=function(e){var t=e.blobUri();return new Ti((function(e){n[t]=n[t]||[],n[t].push(e)}))},d=function(n,r){return n=pn.grep(n,(function(t){return!e.isUploaded(t.blobUri())})),Ti.all(pn.map(n,(function(n){return e.isPending(n.blobUri())?f(n):c(n,t.handler,r)})))},h=function(e,n){return!t.url&&l(t.handler)?i():d(e,n)};return!1===k(t.handler)&&(t.handler=o),{upload:h}},ZT=function(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}},eR=function(e,t){return XT(t,{url:Md(e),basePath:Id(e),credentials:Fd(e),handler:Vd(e)})},tR=function(e){var t=KT(),n=eR(e,t);return{upload:function(t,r){return void 0===r&&(r=!0),n.upload(t,r?ZT(e):void 0)}}},nR=function(e){var t=Qc(null);e.on("change AddUndo",(function(e){t.set(He({},e.level))}));var n=function(){var n=e.undoManager.data;ve(n).filter((function(e){return!gE(t.get(),e)})).each((function(t){e.setDirty(!0),e.fire("change",{level:t,lastLevel:me(n,n.length-2).getOrNull()})}))};return{fireIfChanged:n}},rR=function(e){var t,n,r=JT(),o=KT(),i=[],a=nR(e),u=function(t){return function(n){return e.selection?t(n):[]}},s=function(e){return e+(-1===e.indexOf("?")?"?":"&")+(new Date).getTime()},c=function(e,t,n){var r=0;do{r=e.indexOf(t,r),-1!==r&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},l=function(e,t,n){var r='src="'+n+'"'+(n===en.transparentSrc?' data-mce-placeholder="1"':"");return e=c(e,'src="'+t+'"',r),e=c(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"'),e},f=function(t,n){Z(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=X(e.fragments,(function(e){return l(e,t,n)})):e.content=l(e.content,t,n)}))},d=function(t,n){var r=e.convertURL(n,"src");f(t.src,n),e.$(t).attr({src:Bd(e)?s(n):n,"data-mce-src":r})},h=function(n){return t||(t=eR(e,o)),v().then(u((function(o){var i=X(o,(function(e){return e.blobInfo}));return t.upload(i,ZT(e)).then(u((function(t){var i=[],u=X(t,(function(t,n){var a=o[n].blobInfo,u=o[n].image;return t.status&&Pd(e)?(r.removeByUri(u.src),LE(e)||d(u,t.url)):t.error&&(t.error.options.remove&&(f(u.getAttribute("src"),en.transparentSrc),i.push(u)),PT(e,t.error.message)),{element:u,status:t.status,uploadUri:t.url,blobInfo:a}}));return u.length>0&&a.fireIfChanged(),i.length>0&&(LE(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact((function(){Z(i,(function(t){e.dom.remove(t),r.removeByUri(t.src)}))}))),n&&n(u),u})))})))},p=function(t){if(Dd(e))return h(t)},m=function(t){if(!1===le(i,(function(e){return e(t)})))return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=Nd(e);return n(t)}return!0},g=function(e){i.push(e)},v=function(){return n||(n=zO(o,r)),n.findAll(e.getBody(),m).then(u((function(t){return t=ne(t,(function(t){return"string"!==typeof t||(BT(e,t),!1)})),LE(e)||Z(t,(function(e){f(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))},b=function(){r.destroy(),o.destroy(),n=t=null},y=function(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var i=o.getResultUri(n);if(i)return'src="'+i+'"';var a=r.getByUri(n);if(a||(a=oe(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null)),a){var u=a.blob();return'src="data:'+u.type+";base64,"+a.base64()+'"'}return t}))};return e.on("SetContent",(function(){Dd(e)?p():v()})),e.on("RawSaveContent",(function(e){e.content=y(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=y(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){Z(e,(function(e){var t=e.attr("src");if(!r.getByUri(t)){var n=o.getResultUri(t);n&&e.attr("src",n)}}))}))})),{blobCache:r,addFilter:g,uploadImages:h,uploadImagesAuto:p,scanForImages:v,destroy:b}},oR=function(e){var t={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 zr(e)&&e.hasAttribute("href")},onformat:function(t,n,r){pn.each(r,(function(n,r){e.setAttrib(t,r,n)}))}},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?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}]};return pn.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),(function(e){t[e]={block:e,remove:"all"}})),t},iR=function(e){var t={},n=function(e){return S(e)?t[e]:t},r=function(e){return De(t,e)},o=function(e,n){e&&(v(e)?(y(n)||(n=[n]),Z(n,(function(e){_(e.deep)&&(e.deep=!qm(e)),_(e.split)&&(e.split=!qm(e)||zm(e)),_(e.remove)&&qm(e)&&!zm(e)&&(e.remove="none"),qm(e)&&zm(e)&&(e.mixed=!0,e.block_expand=!0),v(e.classes)&&(e.classes=e.classes.split(/\s+/))})),t[e]=n):_e(e,(function(e,t){o(t,e)})))},i=function(e){return e&&t[e]&&delete t[e],t};return o(oR(e.dom)),o(ih(e)),{get:n,has:r,register:o,unregister:i}},aR=pn.each,uR=Fc.DOM,sR=function(e,t){var n,r,o,i=t&&t.schema||Fu({}),a=function(e,t){t.classes.length&&uR.addClass(e,t.classes.join(" ")),uR.setAttribs(e,t.attrs)},u=function(e){r="string"===typeof e?{name:e,classes:[],attrs:{}}:e;var t=uR.create(r.name);return a(t,r),t},s=function(e,t){var n="string"!==typeof e?e.nodeName.toLowerCase():e,r=i.getElementRule(n),o=r&&r.parentsRequired;return!(!o||!o.length)&&(t&&-1!==pn.inArray(o,t)?t:o[0])},c=function(e,t,n){var r,o,i=t.length>0&&t[0],a=i&&i.name,l=s(e,a);if(l)a===l?(o=t[0],t=t.slice(1)):o=l;else if(i)o=t[0],t=t.slice(1);else if(!n)return e;return o&&(r=u(o),r.appendChild(e)),n&&(r||(r=uR.create("div"),r.appendChild(e)),pn.each(n,(function(t){var n=u(t);r.insertBefore(n,e)}))),c(r,t,o&&o.siblings)};return e&&e.length?(r=e[0],n=u(r),o=uR.create("div"),o.appendChild(c(n,e.slice(1),r.siblings)),o):""},cR=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=pn.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,o,i){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==pn.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===o){var a=i.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=t||"div",n},lR=function(e){return e&&"string"===typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),pn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=pn.map(e.split(/(?:~\+|~|\+)/),cR),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[]},fR=function(e,t){var n,r,o,i="",a=ah(e);if(""===a)return"";var u=function(e){return e.replace(/%(\w+)/g,"")};if("string"===typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}if("preview"in t){var s=Ne(t,"preview");if(co(s,!1))return"";a=s.getOr(a)}n=t.block||t.inline||"span";var c=lR(t.selector);c.length?(c[0].name||(c[0].name=n),n=t.selector,r=sR(c,e)):r=sR([n],e);var l=uR.select(n,r)[0]||r.firstChild;return aR(t.styles,(function(e,t){var n=u(e);n&&uR.setStyle(l,t,n)})),aR(t.attributes,(function(e,t){var n=u(e);n&&uR.setAttrib(l,t,n)})),aR(t.classes,(function(e){var t=u(e);uR.hasClass(l,t)||uR.addClass(l,t)})),e.fire("PreviewFormats"),uR.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),o=uR.getStyle(e.getBody(),"fontSize",!0),o=/px$/.test(o)?parseInt(o,10):0,aR(a.split(" "),(function(t){var n=uR.getStyle(l,t,!0);if(("background-color"!==t||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=uR.getStyle(e.getBody(),t,!0),"#ffffff"!==uR.toHex(n).toLowerCase()))&&("color"!==t||"#000000"!==uR.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===o)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*o+"px"}"border"===t&&n&&(i+="padding:0 2px;"),i+=t+":"+n+";"}})),e.fire("AfterPreviewFormats"),uR.remove(r),i},dR=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"])},hR=function(e){var t=iR(e),n=Qc(null);return dR(e),sS(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:function(t,n,r){rO(e,t,n,r)},remove:function(t,n,r,o){oO(e,t,n,r,o)},toggle:function(t,n,r){iO(e,t,n,r)},match:function(t,n,r,o){return XE(e,t,n,r,o)},closest:function(t){return nO(e,t)},matchAll:function(t,n){return ZE(e,t,n)},matchNode:function(t,n,r,o){return eO(e,t,n,r,o)},canApply:function(t){return tO(e,t)},formatChanged:function(t,r,o,i){return aO(e,n,t,r,o,i)},getCssText:B(fR,e)}},pR=function(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return!0;default:return!1}},mR=function(e,t,n){var r=Qc(!1),o=function(e){bE(t,!1,n),t.add({},e)};e.on("init",(function(){t.add()})),e.on("BeforeExecCommand",(function(e){var r=e.command;pR(r)||(yE(t,n),t.beforeChange())})),e.on("ExecCommand",(function(e){var t=e.command;pR(t)||o(e)})),e.on("ObjectResizeStart cut",(function(){t.beforeChange()})),e.on("SaveContent ObjectResized blur",o),e.on("dragend",o),e.on("keyup",(function(n){var i=n.keyCode;n.isDefaultPrevented()||((i>=33&&i<=36||i>=37&&i<=40||45===i||n.ctrlKey)&&(o(),e.nodeChanged()),46!==i&&8!==i||e.nodeChanged(),r.get()&&t.typing&&!1===gE(lE(e),t.data[0])&&(!1===e.isDirty()&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))})),e.on("keydown",(function(e){var i=e.keyCode;if(!e.isDefaultPrevented())if(i>=33&&i<=36||i>=37&&i<=40||45===i)t.typing&&o(e);else{var a=e.ctrlKey&&!e.altKey||e.metaKey;!(i<16||i>20)||224===i||91===i||t.typing||a||(t.beforeChange(),bE(t,!0,n),t.add({},e),r.set(!0))}})),e.on("mousedown",(function(e){t.typing&&o(e)}));var i=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data},u=function(e){return"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType};e.on("input",(function(e){e.inputType&&(i(e)||a(e)||u(e))&&o(e)})),e.on("AddUndo Undo Redo ClearUndos",(function(t){t.isDefaultPrevented()||e.nodeChanged()}))},gR=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},vR=function(e){var t=ll(),n=Qc(0),r=Qc(0),o={data:[],typing:!1,beforeChange:function(){UE(e,n,t)},add:function(i,a){return qE(e,o,r,n,t,i,a)},undo:function(){return zE(e,o,n,r)},redo:function(){return HE(e,r,o.data)},clear:function(){$E(e,o,r)},reset:function(){WE(e,o)},hasUndo:function(){return KE(e,o,r)},hasRedo:function(){return QE(e,o,r)},transact:function(t){return GE(e,o,n,t)},ignore:function(t){YE(e,n,t)},extra:function(t,n){JE(e,o,r,t,n)}};return LE(e)||mR(e,o,n),gR(e),o},bR=[9,27,Zg.HOME,Zg.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Zg.DOWN,Zg.UP,Zg.LEFT,Zg.RIGHT].concat(en.browser.isFirefox()?[224]:[]),yR="data-mce-placeholder",wR=function(e){return"keydown"===e.type||"keyup"===e.type},xR=function(e){var t=e.keyCode;return t===Zg.BACKSPACE||t===Zg.DELETE},_R=function(e){if(wR(e)){var t=e.keyCode;return!xR(e)&&(Zg.metaKeyPressed(e)||e.altKey||t>=112&&t<=123||Y(bR,t))}return!1},CR=function(e){return wR(e)&&!(xR(e)||"keyup"===e.type&&229===e.keyCode)},SR=function(e,t,n){if(nu(wn.fromDom(t),!1)){var r=""===n,o=t.firstElementChild;return!o||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(o):n===o.nodeName.toLowerCase())}return!1},kR=function(e){var t=e.dom,n=Cd(e),r=Zd(e),o=function(i,a){if(!_R(i)){var u=e.getBody(),s=!CR(i)&&SR(t,u,n),c=""!==t.getAttrib(u,yR);(c!==s||a)&&(t.setAttrib(u,yR,s?r:null),t.setAttrib(u,"aria-placeholder",s?r:null),Gg(e,s),e.on(s?"keydown":"keyup",o),e.off(s?"keyup":"keydown",o))}};r&&e.on("init",(function(t){o(t,!0),e.on("change SetContent ExecCommand",o),e.on("paste",(function(t){return Li.setEditorTimeout(e,(function(){return o(t)}))}))}))},ER=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,OR=function(e){return ER.test(e)},AR=function(e,t){return Tn(wn.fromDom(t),Yd(e))},TR=function(e){return"rtl"===Fc.DOM.getStyle(e,"direction",!0)||OR(e.textContent)},RR=function(e,t,n){return ne(Fc.DOM.getParents(n.container(),"*",t),e)},NR=function(e,t,n){var r=RR(e,t,n);return H.from(r[r.length-1])},DR=function(e,t,n){var r=sp(t,e),o=sp(n,e);return r&&r===o},BR=function(e){return _a(e)||Ca(e)},PR=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?ba(n)?Zr(n.nextSibling)?Nf(n.nextSibling,0):Nf.after(n):_a(t)?Nf(n,r+1):t:ba(n)?Zr(n.previousSibling)?Nf(n.previousSibling,n.previousSibling.data.length):Nf.before(n):Ca(t)?Nf(n,r-1):t},jR=B(PR,!0),LR=B(PR,!1),MR=function(e){return function(t){return Bn(e,wn.fromDom(t.dom.parentNode))}},IR=function(e){return ta(e)||ra(e)},FR=function(e,t){return Ln(e,t)?Ci(t,IR,MR(e)):H.none()},VR=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},UR=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),VR(e))},qR=function(e,t,n){return fo(Gp(n),Yp(n),(function(r,o){var i=PR(!0,r),a=PR(!1,o),u=PR(!1,t);return e?Kp(n,u).exists((function(e){return e.isEqual(a)&&t.isEqual(i)})):Qp(n,u).exists((function(e){return e.isEqual(i)&&t.isEqual(a)}))})).getOr(!0)},zR=function(e,t){return{block:e,position:t}},HR=function(e,t){return{from:e,to:t}},$R=function(e,t){var n=wn.fromDom(e),r=wn.fromDom(t.container());return FR(n,r).map((function(e){return zR(e,t)}))},WR=function(e){return!1===Bn(e.from.block,e.to.block)},KR=function(e){return Yn(e.from.block).bind((function(t){return Yn(e.to.block).filter((function(e){return Bn(t,e)}))})).isSome()},QR=function(e){return!1===ao(e.from.block.dom)&&!1===ao(e.to.block.dom)},GR=function(e,t,n){return ro(n.position.getNode())&&!1===nu(n.block)?Wp(!1,n.block.dom).bind((function(r){return r.isEqual(n.position)?zp(t,e,r).bind((function(t){return $R(e,t)})):H.some(n)})).getOr(n):n},YR=function(e,t,n){var r=$R(e,Nf.fromRangeStart(n)),o=r.bind((function(n){return zp(t,e,n.position).bind((function(n){return $R(e,n).map((function(n){return GR(e,t,n)}))}))}));return fo(r,o,HR).filter((function(e){return WR(e)&&KR(e)&&QR(e)}))},JR=function(e,t,n){return n.collapsed?YR(e,t,n):H.none()},XR=function(e){var t=rr(e);return ue(t,Ji).fold(R(t),(function(e){return t.slice(0,e)}))},ZR=function(e){var t=XR(e);return Z(t,Er),t},eN=function(e,t){var n=Bw(t,e);return ae(n.reverse(),(function(e){return nu(e)})).each(Er)},tN=function(e){return 0===ne(tr(e),(function(e){return!nu(e)})).length},nN=function(e,t,n,r){if(nu(n))return Aw(n),Gp(n.dom);tN(r)&&nu(t)&&br(r,wn.fromTag("br"));var o=Qp(n.dom,Nf.before(r.dom));return Z(ZR(t),(function(e){br(r,e)})),eN(e,t),o},rN=function(e,t,n){if(nu(n))return Er(n),nu(t)&&Aw(t),Gp(t.dom);var r=Yp(n.dom);return Z(ZR(t),(function(e){xr(n,e)})),eN(e,t),r},oN=function(e,t){var n=Bw(t,e);return H.from(n[n.length-1])},iN=function(e,t){return Ln(t,e)?oN(t,e):H.none()},aN=function(e,t){Wp(e,t.dom).map((function(e){return e.getNode()})).map(wn.fromDom).filter(ea).each(Er)},uN=function(e,t,n){return aN(!0,t),aN(!1,n),iN(t,n).fold(B(rN,e,t,n),B(nN,e,t,n))},sN=function(e,t,n,r){return t?uN(e,r,n):uN(e,n,r)},cN=function(e,t){var n=wn.fromDom(e.getBody()),r=JR(n.dom,t,e.selection.getRng()).bind((function(e){return sN(n,t,e.from.block,e.to.block)}));return r.each((function(t){e.selection.setRng(t.toRange())})),r.isSome()},lN=function(e,t){var n=t.getRng();return fo(FR(e,wn.fromDom(n.startContainer)),FR(e,wn.fromDom(n.endContainer)),(function(r,o){return!1===Bn(r,o)&&(n.deleteContents(),sN(e,!0,r,o).each((function(e){t.setRng(e.toRange())})),!0)})).getOr(!1)},fN=function(e,t){var n=wn.fromDom(t),r=B(Bn,e);return _i(n,ia,r).isSome()},dN=function(e,t){return fN(e,t.startContainer)||fN(e,t.endContainer)},hN=function(e,t){var n=Qp(e.dom,Nf.fromRangeStart(t)).isNone(),r=Kp(e.dom,Nf.fromRangeEnd(t)).isNone();return!dN(e,t)&&n&&r},pN=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},mN=function(e){var t=wn.fromDom(e.getBody()),n=e.selection.getRng();return hN(t,n)?pN(e):lN(t,e.selection)},gN=function(e,t){return!e.selection.isCollapsed()&&mN(e)},vN=io,bN=ao,yN=function(e,t,n,r,o){return H.from(t._selectionOverrides.showCaret(e,n,r,o))},wN=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},xN=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?H.none():H.some(wN(t))},_N=function(e,t,n){var r=gp(1,e.getBody(),t),o=Nf.fromRangeStart(r),i=o.getNode();if(Gh(i))return yN(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(Gh(a))return yN(1,e,a,!1,!1);var u=e.dom.getParent(o.getNode(),(function(e){return bN(e)||vN(e)}));return Gh(u)?yN(1,e,u,!1,n):H.none()},CN=function(e,t,n){return t.collapsed?_N(e,t,n).getOr(t):t},SN=function(e){return Sw(e)||ww(e)},kN=function(e){return kw(e)||xw(e)},EN=function(e,t){Zr(t)&&0===t.data.length&&e.remove(t)},ON=function(e,t,n,r,o,i){return yN(r,e,i.getNode(!o),o,!0).each((function(n){if(t.collapsed){var r=t.cloneRange();o?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else t.deleteContents();e.selection.setRng(n)})),EN(e.dom,n),!0},AN=function(e,t){var n=e.selection.getRng();if(!Zr(n.commonAncestorContainer))return!1;var r=t?Df.Forwards:Df.Backwards,o=jp(e.getBody()),i=B(xp,t?o.next:o.prev),a=t?SN:kN,u=bp(r,e.getBody(),n),s=PR(t,i(u));if(!s||!_p(u,s))return!1;if(a(s))return ON(e,n,u.getNode(),r,t,s);var c=i(s);return!!(c&&a(c)&&_p(s,c))&&ON(e,n,u.getNode(),r,t,c)},TN=function(e,t){return AN(e,t)},RN=function(e){return ia(wn.fromDom(e))||ra(wn.fromDom(e))},NN=ei.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),DN=function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return zr(n)&&n.getAttribute("data-mce-caret")===r},BN=function(e,t,n,r){var o=function(t){return Zi(wn.fromDom(t))&&!cp(n,r,e)};return vp(!t,n).fold((function(){return vp(t,r).fold(I,o)}),o)},PN=function(e,t,n,r){var o=r.getNode(!1===t);return FR(wn.fromDom(e),wn.fromDom(n.getNode())).map((function(e){return nu(e)?NN.remove(e.dom):NN.moveToElement(o)})).orThunk((function(){return H.some(NN.moveToElement(o))}))},jN=function(e,t,n){return zp(t,e,n).bind((function(r){return RN(r.getNode())||BN(e,t,n,r)?H.none():t&&ao(r.getNode())||!1===t&&ao(r.getNode(!0))?PN(e,t,n,r):t&&kw(n)||!1===t&&Sw(n)?H.some(NN.moveToPosition(r)):H.none()}))},LN=function(e,t){return e&&ao(t.nextSibling)?H.some(NN.moveToElement(t.nextSibling)):!1===e&&ao(t.previousSibling)?H.some(NN.moveToElement(t.previousSibling)):H.none()},MN=function(e,t,n){return n.fold((function(e){return H.some(NN.remove(e))}),(function(e){return H.some(NN.moveToElement(e))}),(function(n){return cp(t,n,e)?H.none():H.some(NN.moveToPosition(n))}))},IN=function(e,t,n){return DN(t,n)?LN(t,n.getNode(!1===t)).fold((function(){return jN(e,t,n)}),H.some):jN(e,t,n).bind((function(t){return MN(e,n,t)}))},FN=function(e,t,n){var r=gp(t?1:-1,e,n),o=Nf.fromRangeStart(r),i=wn.fromDom(e);return!1===t&&kw(o)?H.some(NN.remove(o.getNode(!0))):t&&Sw(o)?H.some(NN.remove(o.getNode())):!1===t&&Sw(o)&&$w(i,o)?Ww(i,o).map((function(e){return NN.remove(e.getNode())})):t&&kw(o)&&Hw(i,o)?Kw(i,o).map((function(e){return NN.remove(e.getNode())})):IN(e,t,o)},VN=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),Fx(e,t,wn.fromDom(n)),!0}},UN=function(e,t){return function(n){var r=t?Nf.before(n):Nf.after(n);return e.selection.setRng(r.toRange()),!0}},qN=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},zN=function(e,t){return H.from(Mg(e.getBody(),t))},HN=function(e,t){var n=e.selection.getNode();return zN(e,n).filter(ao).fold((function(){return FN(e.getBody(),t,e.selection.getRng()).exists((function(n){return n.fold(VN(e,t),UN(e,t),qN(e))}))}),F)},$N=function(e){Z(kl(e,".mce-offscreen-selection"),Er)},WN=function(e,t){var n=e.selection.getNode();if(ao(n)&&!uo(n)){var r=zN(e,n.parentNode).filter(ao);return r.fold((function(){return $N(wn.fromDom(e.getBody())),Fx(e,t,wn.fromDom(e.selection.getNode())),UR(e),!0}),F)}return!1},KN=function(e){var t=e.dom,n=e.selection,r=Mg(e.getBody(),n.getNode());if(io(r)&&t.isBlock(r)&&t.isEmpty(r)){var o=t.create("br",{"data-mce-bogus":"1"});t.setHTML(r,""),r.appendChild(o),n.setRng(Nf.before(o).toRange())}return!0},QN=function(e,t){return e.selection.isCollapsed()?HN(e,t):WN(e,t)},GN=function(e,t){var n=Nf.fromRangeStart(e.selection.getRng());return zp(t,e.getBody(),n).filter((function(e){return t?bw(e):yw(e)})).bind((function(e){return H.from(lp(t?0:-1,e))})).exists((function(t){return e.selection.select(t),!0}))},YN=function(e,t){return!!e.selection.isCollapsed()&&GN(e,t)},JN=Zr,XN=function(e){return JN(e)&&e.data[0]===da},ZN=function(e){return JN(e)&&e.data[e.data.length-1]===da},eD=function(e){return e.ownerDocument.createTextNode(da)},tD=function(e){if(JN(e.previousSibling))return ZN(e.previousSibling)||e.previousSibling.appendData(da),e.previousSibling;if(JN(e))return XN(e)||e.insertData(0,da),e;var t=eD(e);return e.parentNode.insertBefore(t,e),t},nD=function(e){if(JN(e.nextSibling))return XN(e.nextSibling)||e.nextSibling.insertData(0,da),e.nextSibling;if(JN(e))return ZN(e)||e.appendData(da),e;var t=eD(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},rD=function(e,t){return e?tD(t):nD(t)},oD=B(rD,!0),iD=B(rD,!1),aD=function(e,t){return Zr(e.container())?rD(t,e.container()):rD(t,e.getNode())},uD=function(e,t){var n=t.get();return n&&e.container()===n&&ba(n)},sD=function(e,t){return t.fold((function(t){Fh(e.get());var n=oD(t);return e.set(n),H.some(Nf(n,n.length-1))}),(function(t){return Gp(t).map((function(t){if(uD(t,e))return Nf(e.get(),1);Fh(e.get());var n=aD(t,!0);return e.set(n),Nf(n,1)}))}),(function(t){return Yp(t).map((function(t){if(uD(t,e))return Nf(e.get(),e.get().length-1);Fh(e.get());var n=aD(t,!1);return e.set(n),Nf(n,n.length-1)}))}),(function(t){Fh(e.get());var n=iD(t);return e.set(n),H.some(Nf(n,1))}))},cD=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return H.none()},lD=ei.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),fD=function(e,t){var n=sp(t,e);return n||e},dD=function(e,t,n){var r=jR(n),o=fD(t,r.container());return NR(e,o,r).fold((function(){return Kp(o,r).bind(B(NR,e,o)).map((function(e){return lD.before(e)}))}),H.none)},hD=function(e,t){return null===Zp(e,t)},pD=function(e,t,n){return NR(e,t,n).filter(B(hD,t))},mD=function(e,t,n){var r=LR(n);return pD(e,t,r).bind((function(e){var t=Qp(e,r);return t.isNone()?H.some(lD.start(e)):H.none()}))},gD=function(e,t,n){var r=jR(n);return pD(e,t,r).bind((function(e){var t=Kp(e,r);return t.isNone()?H.some(lD.end(e)):H.none()}))},vD=function(e,t,n){var r=LR(n),o=fD(t,r.container());return NR(e,o,r).fold((function(){return Qp(o,r).bind(B(NR,e,o)).map((function(e){return lD.after(e)}))}),H.none)},bD=function(e){return!1===TR(wD(e))},yD=function(e,t,n){var r=cD([dD,mD,gD,vD],[e,t,n]);return r.filter(bD)},wD=function(e){return e.fold(N,N,N,N)},xD=function(e){return e.fold(R("before"),R("start"),R("end"),R("after"))},_D=function(e){return e.fold(lD.before,lD.before,lD.after,lD.after)},CD=function(e){return e.fold(lD.start,lD.start,lD.end,lD.end)},SD=function(e,t){return xD(e)===xD(t)&&wD(e)===wD(t)},kD=function(e,t,n,r,o,i){return fo(NR(t,n,r),NR(t,n,o),(function(t,r){return t!==r&&DR(n,t,r)?lD.after(e?t:r):i})).getOr(i)},ED=function(e,t){return e.fold(F,(function(e){return!SD(e,t)}))},OD=function(e,t,n,r,o){var i=PR(e,o),a=zp(e,n,i).map(B(PR,e)),u=a.fold((function(){return r.map(_D)}),(function(o){return yD(t,n,o).map(B(kD,e,t,n,i,o)).filter(B(ED,r))}));return u.filter(bD)},AD=function(e,t){return e?t.fold(A(H.some,lD.start),H.none,A(H.some,lD.after),H.none):t.fold(H.none,A(H.some,lD.before),H.none,A(H.some,lD.end))},TD=function(e,t,n,r){var o=PR(e,r),i=yD(t,n,o);return yD(t,n,o).bind(B(AD,e)).orThunk((function(){return OD(e,t,n,i,r)}))};B(TD,!1),B(TD,!0);var RD,ND=function(e){return k(e.selection.getSel().modify)},DD=function(e,t,n){var r=e?1:-1;return t.setRng(Nf(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},BD=function(e,t){var n=t.selection.getRng(),r=e?Nf.fromRangeEnd(n):Nf.fromRangeStart(n);return!!ND(t)&&(e&&_a(r)?DD(!0,t.selection,r):!(e||!Ca(r))&&DD(!1,t.selection,r))};(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(RD||(RD={}));var PD,jD=function(e,t){return e===Df.Backwards?fe(t):t},LD=function(e,t,n){return e===Df.Forwards?t.next(n):t.prev(n)},MD=function(e,t,n,r){return ro(r.getNode(t===Df.Forwards))?RD.Br:!1===cp(n,r)?RD.Block:RD.Wrap},ID=function(e,t,n,r){var o=jp(n),i=r,a=[];while(i){var u=LD(t,o,i);if(!u)break;if(ro(u.getNode(!1)))return t===Df.Forwards?{positions:jD(t,a).concat([u]),breakType:RD.Br,breakAt:H.some(u)}:{positions:jD(t,a),breakType:RD.Br,breakAt:H.some(u)};if(u.isVisible()){if(e(i,u)){var s=MD(n,t,i,u);return{positions:jD(t,a),breakType:s,breakAt:H.some(u)}}a.push(u),i=u}else i=u}return{positions:jD(t,a),breakType:RD.Eol,breakAt:H.none()}},FD=function(e,t,n,r){return t(n,r).breakAt.map((function(r){var o=t(n,r).positions;return e===Df.Backwards?o.concat(r):[r].concat(o)})).getOr([])},VD=function(e,t){return oe(e,(function(e,n){return e.fold((function(){return H.some(n)}),(function(r){return fo(ge(r.getClientRects()),ge(n.getClientRects()),(function(e,o){var i=Math.abs(t-e.left),a=Math.abs(t-o.left);return a<=i?n:r})).or(e)}))}),H.none())},UD=function(e,t){return ge(t.getClientRects()).bind((function(t){return VD(e,t.left)}))},qD=B(ID,Nf.isAbove,-1),zD=B(ID,Nf.isBelow,1),HD=B(FD,-1,qD),$D=B(FD,1,zD),WD=function(e,t){return qD(e,t).breakAt.isNone()},KD=function(e,t){return zD(e,t).breakAt.isNone()},QD=function(e){return Gp(e).map((function(t){return[t].concat(zD(e,t).positions)})).getOr([])},GD=function(e){return Yp(e).map((function(t){return qD(e,t).positions.concat(t)})).getOr([])},YD=function(e){var t=function(t){return X(t,(function(t){var n=Gl(t);return n.node=e,n}))};if(zr(e))return t(e.getClientRects());if(Zr(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},JD=function(e){return ce(e,YD)};(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(PD||(PD={}));var XD,ZD,eB=function(e,t,n,r){while(r=up(r,e,$a,t))if(n(r))return},tB=function(e,t,n,r,o,i){var a=0,u=[],s=function(r){var i=JD([r]);-1===e&&(i=i.reverse());for(var s=0;s<i.length;s++){var l=i[s];if(!n(l,c)){if(u.length>0&&t(l,ze(u))&&a++,l.line=a,o(l))return!0;u.push(l)}}},c=ze(i.getClientRects());if(!c)return u;var l=i.getNode();return s(l),eB(e,r,s,l),u},nB=function(e,t){return t.line>e},rB=function(e,t){return t.line===e},oB=B(tB,PD.Up,Zl,ef),iB=B(tB,PD.Down,ef,Zl),aB=function(e,t,n,r){var o,i,a,u,s=jp(t),c=[],l=0,f=function(e){return ze(e.getClientRects())};1===e?(o=s.next,i=ef,a=Zl,u=Nf.after(r)):(o=s.prev,i=Zl,a=ef,u=Nf.before(r));var d=f(u);do{if(u.isVisible()){var h=f(u);if(!a(h,d)){c.length>0&&i(h,ze(c))&&l++;var p=Gl(h);if(p.position=u,p.line=l,n(p))return c;c.push(p)}}}while(u=o(u));return c},uB=function(e){return function(t){return nB(e,t)}},sB=function(e){return function(t){return rB(e,t)}},cB=ao,lB=up,fB=function(e,t){return Math.abs(e.left-t)},dB=function(e,t){return Math.abs(e.right-t)},hB=function(e,t){return e>=t.left&&e<=t.right},pB=function(e,t){return e>=t.top&&e<=t.bottom},mB=function(e){return Be(e,"node")},gB=function(e,t,n){return void 0===n&&(n=F),Ue(e,(function(e,r){if(hB(t,r))return n(r)?r:e;if(hB(t,e))return n(e)?e:r;var o=Math.min(fB(e,t),dB(e,t)),i=Math.min(fB(r,t),dB(r,t));return i===o&&mB(r)&&cB(r.node)||i<o?r:e}))},vB=function(e,t,n,r,o){var i=lB(r,e,$a,t,!o);do{if(!i||n(i))return}while(i=lB(i,e,$a,t))},bB=function(e,t,n){void 0===n&&(n=!0);var r=[],o=function(e,n){var o=ne(JD([n]),(function(n){return!e(n,t)}));return r=r.concat(o),0===o.length};return r.push(t),vB(PD.Up,e,B(o,Zl),t.node,n),vB(PD.Down,e,B(o,ef),t.node,n),r},yB=function(e){return ne(be(e.getElementsByTagName("*")),Yh)},wB=function(e,t){return{node:e.node,before:fB(e,t)<dB(e,t)}},xB=function(e,t,n){var r=JD(yB(e)),o=ne(r,B(pB,n)),i=function(e){return!Yr(e.node)&&!so(e.node)},a=gB(o,t,i);if(a){var u=i(a);if(a=gB(bB(e,a,u),t,i),a&&Yh(a.node))return wB(a,t)}return null},_B=function(e,t){e.selection.setRng(t),eb(e,e.selection.getRng())},CB=function(e,t,n){return H.some(CN(e,t,n))},SB=function(e,t,n,r,o,i){var a=t===Df.Forwards,u=jp(e.getBody()),s=B(xp,a?u.next:u.prev),c=a?r:o;if(!n.collapsed){var l=rf(n);if(i(l))return yN(t,e,l,t===Df.Backwards,!1)}var f=bp(t,e.getBody(),n);if(c(f))return xN(e,f.getNode(!a));var d=PR(a,s(f)),h=Ra(n);if(!d)return h?H.some(n):H.none();if(c(d))return yN(t,e,d.getNode(!a),a,!1);var p=s(d);return p&&c(p)&&_p(d,p)?yN(t,e,p.getNode(!a),a,!1):h?CB(e,d.toRange(),!1):H.none()},kB=function(e,t,n,r,o,i){var a=bp(t,e.getBody(),n),u=ze(a.getClientRects()),s=t===PD.Down;if(!u)return H.none();var c,l=s?iB:oB,f=l(e.getBody(),uB(1),a),d=ne(f,sB(1)),h=u.left,p=gB(d,h);if(p&&i(p.node)){var m=Math.abs(h-p.left),g=Math.abs(h-p.right);return yN(t,e,p.node,m<g,!1)}if(c=r(a)?a.getNode():o(a)?a.getNode(!0):rf(n),c){var v=aB(t,e.getBody(),uB(1),c),b=gB(ne(v,sB(1)),h);if(b)return CB(e,b.position.toRange(),!1);if(b=ze(ne(v,sB(0))),b)return CB(e,b.position.toRange(),!1)}return 0===d.length?EB(e,s).filter(s?o:r).map((function(t){return CN(e,t.toRange(),!1)})):H.none()},EB=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var o=Nf.fromRangeEnd(n),i=zD(r,o);return ve(i.positions)}o=Nf.fromRangeStart(n),i=qD(r,o);return ge(i.positions)},OB=function(e,t,n){return EB(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))},AB=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},TB=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},RB=function(e,t,n){return sD(t,n).map((function(t){return AB(e,t),n}))},NB=function(e,t,n){var r=e.getBody(),o=Nf.fromRangeStart(e.selection.getRng()),i=B(AR,e),a=TD(n,i,r,o);return a.bind((function(n){return RB(e,t,n)}))},DB=function(e,t,n){var r=X(kl(wn.fromDom(t.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),o=ne(r,e),i=ne(n,e);Z(de(o,i),B(TB,!1)),Z(de(i,o),B(TB,!0))},BB=function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=Nf.fromRangeStart(e.selection.getRng());Nf.isTextPosition(n)&&!1===BR(n)&&(AB(e,Ih(t.get(),n)),t.set(null))}},PB=function(e,t,n,r){if(t.selection.isCollapsed()){var o=ne(r,e);Z(o,(function(r){var o=Nf.fromRangeStart(t.selection.getRng());yD(e,t.getBody(),o).bind((function(e){return RB(t,n,e)}))}))}},jB=function(e,t,n){return!!oh(e)&&NB(e,t,n).isSome()},LB=function(e,t,n){return!!oh(t)&&BD(e,t)},MB=function(e){var t=Qc(null),n=B(AR,e);return e.on("NodeChange",(function(r){!oh(e)||en.browser.isIE()&&r.initial||(DB(n,e.dom,r.parents),BB(e,t),PB(n,e,t,r.parents))})),t},IB=B(LB,!0),FB=B(LB,!1),VB=function(e,t,n){if(oh(e)){var r=EB(e,t).getOrThunk((function(){var n=e.selection.getRng();return t?Nf.fromRangeEnd(n):Nf.fromRangeStart(n)}));return yD(B(AR,e),e.getBody(),r).exists((function(t){var r=_D(t);return sD(n,r).exists((function(t){return AB(e,t),!0}))}))}return!1},UB=function(e,t){var n=document.createRange();return n.setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n},qB=function(e){return fo(Gp(e),Yp(e),(function(t,n){var r=PR(!0,t),o=PR(!1,n);return Kp(e,r).forall((function(e){return e.isEqual(o)}))})).getOr(!0)},zB=function(e,t){return function(n){return sD(t,n).exists((function(t){return AB(e,t),!0}))}},HB=function(e,t,n,r){var o=e.getBody(),i=B(AR,e);e.undoManager.ignore((function(){e.selection.setRng(UB(n,r)),e.execCommand("Delete"),yD(i,o,Nf.fromRangeStart(e.selection.getRng())).map(CD).map(zB(e,t))})),e.nodeChanged()},$B=function(e,t){var n=sp(t,e);return n||e},WB=function(e,t,n,r){var o=$B(e.getBody(),r.container()),i=B(AR,e),a=yD(i,o,r);return a.bind((function(e){return n?e.fold(R(H.some(CD(e))),H.none,R(H.some(_D(e))),H.none):e.fold(H.none,R(H.some(_D(e))),H.none,R(H.some(CD(e))))})).map(zB(e,t)).getOrThunk((function(){var u=Hp(n,o,r),s=u.bind((function(e){return yD(i,o,e)}));return fo(a,s,(function(){return NR(i,o,r).exists((function(t){return!!qB(t)&&(Fx(e,n,wn.fromDom(t)),!0)}))})).orThunk((function(){return s.bind((function(o){return u.map((function(o){return n?HB(e,t,r,o):HB(e,t,o,r),!0}))}))})).getOr(!1)}))},KB=function(e,t,n){if(e.selection.isCollapsed()&&oh(e)){var r=Nf.fromRangeStart(e.selection.getRng());return WB(e,t,n,r)}return!1},QB=function(e,t){var n=Bw(t,e);return ue(n,Ji).fold(R(n),(function(e){return n.slice(0,e)}))},GB=function(e){return 1===ur(e)},YB=function(e,t,n,r){var o=B(lS,t),i=X(ne(r,o),(function(e){return e.dom}));if(0===i.length)Fx(t,e,n);else{var a=cS(n.dom,i);t.selection.setRng(a.toRange())}},JB=function(e,t){var n=wn.fromDom(e.getBody()),r=wn.fromDom(e.selection.getStart()),o=ne(QB(n,r),GB);return ve(o).exists((function(n){var r=Nf.fromRangeStart(e.selection.getRng());return!(!qR(t,r,n.dom)||fS(n))&&(YB(t,e,n,o),!0)}))},XB=function(e,t){return!!e.selection.isCollapsed()&&JB(e,t)},ZB=function(e,t,n){return e._selectionOverrides.hideFakeCaret(),Fx(e,t,wn.fromDom(n)),!0},eP=function(e,t){var n=t?ww:xw,r=t?Df.Forwards:Df.Backwards,o=bp(r,e.getBody(),e.selection.getRng());return n(o)?ZB(e,t,o.getNode(!t)):H.from(PR(t,o)).filter((function(e){return n(e)&&_p(o,e)})).exists((function(n){return ZB(e,t,n.getNode(!t))}))},tP=function(e,t){var n=e.selection.getNode();return!!so(n)&&ZB(e,t,n)},nP=function(e,t){return e.selection.isCollapsed()?eP(e,t):tP(e,t)},rP=function(e){return Ci(e,(function(e){return io(e.dom)||ao(e.dom)})).exists((function(e){return io(e.dom)}))},oP=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},iP=function(e,t){var n=e||Xi(t)?"margin":"padding",r="rtl"===Eo(t,"direction")?"-right":"-left";return n+r},aP=function(e,t,n,r,o,i){var a=iP(n,wn.fromDom(i));if("outdent"===t){var u=Math.max(0,oP(i.style[a])-r);e.setStyle(i,a,u?u+o:"")}else{u=oP(i.style[a])+r+o;e.setStyle(i,a,u)}},uP=function(e,t){return le(t,(function(t){var n=iP($d(e),t),r=Ao(t,n).map(oP).getOr(0),o=e.dom.getContentEditable(t.dom);return"false"!==o&&r>0}))},sP=function(e){var t=fP(e);return!e.mode.isReadOnly()&&(t.length>1||uP(e,t))},cP=function(e){return na(e)||ra(e)},lP=function(e){return Yn(e).exists(cP)},fP=function(e){return ne(Vl(e.selection.getSelectedBlocks()),(function(e){return!cP(e)&&!lP(e)&&rP(e)}))},dP=function(e,t){var n=e.dom,r=e.selection,o=e.formatter,i=Wd(e),a=/[a-z%]+$/i.exec(i)[0],u=parseInt(i,10),s=$d(e),c=Cd(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==c||n.getParent(r.getNode(),n.isBlock)||o.apply("div"),Z(fP(e),(function(e){aP(n,t,s,u,a,e.dom)}))},hP=function(e,t){if(e.selection.isCollapsed()&&sP(e)){var n=e.dom,r=e.selection.getRng(),o=Nf.fromRangeStart(r),i=n.getParent(r.startContainer,n.isBlock);if(null!==i&&Iw(wn.fromDom(i),o))return dP(e,"outdent"),!0}return!1},pP=function(e,t){e.getDoc().execCommand(t,!1,null)},mP=function(e,t){hP(e)||QN(e,!1)||TN(e,!1)||KB(e,t,!1)||cN(e,!1)||j_(e)||YN(e,!1)||nP(e,!1)||gN(e)||XB(e,!1)||(pP(e,"Delete"),UR(e))},gP=function(e,t){QN(e,!0)||TN(e,!0)||KB(e,t,!0)||cN(e,!0)||j_(e)||YN(e,!0)||nP(e,!0)||gN(e)||XB(e,!0)||pP(e,"ForwardDelete")},vP=function(e,t){e.addCommand("delete",(function(){mP(e,t)})),e.addCommand("forwardDelete",(function(){gP(e,t)}))},bP=5,yP=400,wP=function(e){return void 0===e.touches||1!==e.touches.length?H.none():H.some(e.touches[0])},xP=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>bP||r>bP},_P=function(e){var t=ll(),n=Qc(!1),r=dl((function(t){e.fire("longpress",He(He({},t),{type:"longpress"})),n.set(!0)}),yP);e.on("touchstart",(function(e){wP(e).each((function(o){r.cancel();var i={x:o.clientX,y:o.clientY,target:e.target};r.throttle(e),n.set(!1),t.set(i)}))}),!0),e.on("touchmove",(function(o){r.cancel(),wP(o).each((function(r){t.on((function(o){xP(r,o)&&(t.clear(),n.set(!1),e.fire("longpresscancel"))}))}))}),!0),e.on("touchend touchcancel",(function(o){r.cancel(),"touchcancel"!==o.type&&t.get().filter((function(e){return e.target.isEqualNode(o.target)})).each((function(){n.get()?o.preventDefault():e.fire("tap",He(He({},o),{type:"tap"}))}))}),!0)},CP=function(e,t){return De(e,t.nodeName)},SP=function(e,t){return!!Zr(t)||!!zr(t)&&(!CP(e,t)&&!wm(t))},kP=function(e,t,n){return J(Dw(wn.fromDom(n),wn.fromDom(t)),(function(t){return CP(e,t.dom)}))},EP=function(e,t){if(Zr(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||CP(e,t.nextSibling)))return!0}return!1},OP=function(e){var t,n,r,o=e.dom,i=e.selection,a=e.schema,u=a.getBlockElements(),s=i.getStart(),c=e.getBody(),l=Cd(e);if(s&&zr(s)&&l){var f=c.nodeName.toLowerCase();if(a.isValidChild(f,l.toLowerCase())&&!kP(u,c,s)){var d=i.getRng(),h=d.startContainer,p=d.startOffset,m=d.endContainer,g=d.endOffset,v=ly(e);s=c.firstChild;while(s)if(SP(u,s)){if(EP(u,s)){n=s,s=s.nextSibling,o.remove(n);continue}t||(t=o.create(l,Sd(e)),s.parentNode.insertBefore(t,s),r=!0),n=s,s=s.nextSibling,t.appendChild(n)}else t=null,s=s.nextSibling;r&&v&&(d.setStart(h,p),d.setEnd(m,g),i.setRng(d),e.nodeChanged())}}},AP=function(e){Cd(e)&&e.on("NodeChange",B(OP,e))},TP=function(e){return Oi(wn.fromDom(e.getBody()),"*[data-mce-caret]").map((function(e){return e.dom})).getOrNull()},RP=function(e){e.selection.setRng(e.selection.getRng())},NP=function(e,t){t.hasAttribute("data-mce-caret")&&(Ta(t),RP(e),e.selection.scrollIntoView(t))},DP=function(e,t){var n=TP(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void NP(e,n)):void(wa(n)&&(NP(e,n),e.undoManager.add()))},BP=function(e){e.on("keyup compositionstart",B(DP,e))},PP=ao,jP=function(e,t,n){return SB(t,e,n,Sw,kw,PP)},LP=function(e,t,n){var r=function(e){return Sw(e)||_w(e)},o=function(e){return kw(e)||Cw(e)};return kB(t,e,n,r,o,PP)},MP=function(e){var t=e.dom.create(Cd(e));return(!en.ie||en.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},IP=function(e,t,n){var r=jp(e.getBody()),o=B(xp,1===t?r.next:r.prev);if(n.collapsed&&gh(e)){var i=e.dom.getParent(n.startContainer,"PRE");if(!i)return;var a=o(Nf.fromRangeStart(n));if(!a){var u=MP(e);1===t?e.$(i).after(u):e.$(i).before(u),e.selection.select(u,!0),e.selection.collapse()}}},FP=function(e,t){var n=t?Df.Forwards:Df.Backwards,r=e.selection.getRng();return jP(n,e,r).orThunk((function(){return IP(e,n,r),H.none()}))},VP=function(e,t){var n=t?1:-1,r=e.selection.getRng();return LP(n,e,r).orThunk((function(){return IP(e,n,r),H.none()}))},UP=function(e,t){return FP(e,t).exists((function(t){return _B(e,t),!0}))},qP=function(e,t){return VP(e,t).exists((function(t){return _B(e,t),!0}))},zP=function(e,t){var n=t?kw:Sw;return OB(e,t,n)},HP=function(e){return Y(["figcaption"],Mn(e))},$P=function(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t},WP=function(e,t,n){n?xr(e,t):wr(e,t)},KP=function(e,t){var n=wn.fromTag("br");return WP(e,n,t),$P(n)},QP=function(e,t,n,r){var o=wn.fromTag(n),i=wn.fromTag("br");return bo(o,r),xr(o,i),WP(e,o,t),$P(i)},GP=function(e,t,n,r){return""===t?KP(e,r):QP(e,r,t,n)},YP=function(e,t){var n=B(Bn,t);return Ci(wn.fromDom(e.container()),Ji,n).filter(HP)},JP=function(e,t,n){return t?KD(e.dom,n):WD(e.dom,n)},XP=function(e,t){var n=wn.fromDom(e.getBody()),r=Nf.fromRangeStart(e.selection.getRng()),o=Cd(e),i=Sd(e);return YP(r,n).exists((function(){if(JP(n,t,r)){var a=GP(n,o,i,t);return e.selection.setRng(a),!0}return!1}))},ZP=function(e,t){return!!e.selection.isCollapsed()&&XP(e,t)},ej=function(e){return X(e,(function(e){return He({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:O},e)}))},tj=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},nj=function(e,t){return ce(ej(e),(function(e){return tj(e,t)?[e]:[]}))},rj=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}},oj=function(e,t){return ae(nj(e,t),(function(e){return e.action()}))},ij=function(e,t){var n=t?Df.Forwards:Df.Backwards,r=e.selection.getRng();return SB(e,n,r,ww,xw,so).exists((function(t){return _B(e,t),!0}))},aj=function(e,t){var n=t?1:-1,r=e.selection.getRng();return kB(e,n,r,ww,xw,so).exists((function(t){return _B(e,t),!0}))},uj=function(e,t){var n=t?xw:ww;return OB(e,t,n)},sj=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},cj=function(e,t){return ce(t,(function(t){var n=sj(Gl(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))},lj=function(e,t,n){return oe(e,(function(e,r){return e.fold((function(){return H.some(r)}),(function(e){var o=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),i=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return H.some(i<o?r:e)}))}),H.none())},fj=function(e,t,n,r,o){var i=kl(wn.fromDom(n),"td,th,caption").map((function(e){return e.dom})),a=ne(cj(e,i),(function(e){return t(e,o)}));return lj(a,r,o).map((function(e){return e.cell}))},dj=function(e){return e.bottom},hj=function(e){return e.top},pj=function(e,t){return e.y<t},mj=function(e,t){return e.y>t},gj=B(fj,dj,pj),vj=B(fj,hj,mj),bj=function(e,t){return ge(t.getClientRects()).bind((function(t){return gj(e,t.left,t.top)})).bind((function(e){return UD(GD(e),t)}))},yj=function(e,t){return ve(t.getClientRects()).bind((function(t){return vj(e,t.left,t.top)})).bind((function(e){return UD(QD(e),t)}))},wj=function(e,t,n){return n.breakAt.exists((function(n){return e(t,n).breakAt.isSome()}))},xj=function(e){return e.breakType===RD.Wrap&&0===e.positions.length},_j=function(e){return e.breakType===RD.Br&&1===e.positions.length},Cj=function(e,t,n){var r=e(t,n);return xj(r)||!ro(n.getNode())&&_j(r)?!wj(e,t,r):r.breakAt.isNone()},Sj=B(Cj,qD),kj=B(Cj,zD),Ej=function(e,t,n){var r=Nf.fromRangeStart(t);return Wp(!e,n).exists((function(e){return e.isEqual(r)}))},Oj=function(e,t,n,r){var o=e.selection.getRng(),i=t?1:-1;return!(!Qh()||!Ej(t,o,n))&&(yN(i,e,n,!t,!1).each((function(t){_B(e,t)})),!0)},Aj=function(e,t,n){return bj(t,n).orThunk((function(){return ge(n.getClientRects()).bind((function(n){return VD(HD(e,Nf.before(t)),n.left)}))})).getOr(Nf.before(t))},Tj=function(e,t,n){return yj(t,n).orThunk((function(){return ge(n.getClientRects()).bind((function(n){return VD($D(e,Nf.after(t)),n.left)}))})).getOr(Nf.after(t))},Rj=function(e,t){var n=t.getNode(e);return zr(n)&&"TABLE"===n.nodeName?H.some(n):H.none()},Nj=function(e,t,n,r){var o=Cd(t);o?t.undoManager.transact((function(){var r=wn.fromTag(o);bo(r,Sd(t)),xr(r,wn.fromTag("br")),e?yr(wn.fromDom(n),r):br(wn.fromDom(n),r);var i=t.dom.createRng();i.setStart(r.dom,0),i.setEnd(r.dom,0),_B(t,i)})):_B(t,r.toRange())},Dj=function(e,t,n){var r=Rj(!!t,n),o=!1===t;r.fold((function(){return _B(e,n.toRange())}),(function(r){return Wp(o,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return _B(e,n.toRange())}),(function(o){return Nj(t,e,r,n)}))}))},Bj=function(e,t,n,r){var o=e.selection.getRng(),i=Nf.fromRangeStart(o),a=e.getBody();if(!t&&Sj(r,i)){var u=Aj(a,n,i);return Dj(e,t,u),!0}if(t&&kj(r,i)){u=Tj(a,n,i);return Dj(e,t,u),!0}return!1},Pj=function(e,t,n){return H.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(r){return H.from(e.dom.getParent(r,"table")).map((function(o){return n(e,t,o,r)}))})).getOr(!1)},jj=function(e,t){return Pj(e,t,Oj)},Lj=function(e,t){return Pj(e,t,Bj)},Mj=function(e,t,n){var r=$t().os;oj([{keyCode:Zg.RIGHT,action:rj(UP,e,!0)},{keyCode:Zg.LEFT,action:rj(UP,e,!1)},{keyCode:Zg.UP,action:rj(qP,e,!1)},{keyCode:Zg.DOWN,action:rj(qP,e,!0)},{keyCode:Zg.RIGHT,action:rj(jj,e,!0)},{keyCode:Zg.LEFT,action:rj(jj,e,!1)},{keyCode:Zg.UP,action:rj(Lj,e,!1)},{keyCode:Zg.DOWN,action:rj(Lj,e,!0)},{keyCode:Zg.RIGHT,action:rj(ij,e,!0)},{keyCode:Zg.LEFT,action:rj(ij,e,!1)},{keyCode:Zg.UP,action:rj(aj,e,!1)},{keyCode:Zg.DOWN,action:rj(aj,e,!0)},{keyCode:Zg.RIGHT,action:rj(jB,e,t,!0)},{keyCode:Zg.LEFT,action:rj(jB,e,t,!1)},{keyCode:Zg.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:rj(IB,e,t)},{keyCode:Zg.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:rj(FB,e,t)},{keyCode:Zg.UP,action:rj(ZP,e,!1)},{keyCode:Zg.DOWN,action:rj(ZP,e,!0)}],n).each((function(e){n.preventDefault()}))},Ij=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&Mj(e,t,n)}))},Fj=function(e,t,n){oj([{keyCode:Zg.BACKSPACE,action:rj(hP,e,!1)},{keyCode:Zg.BACKSPACE,action:rj(QN,e,!1)},{keyCode:Zg.DELETE,action:rj(QN,e,!0)},{keyCode:Zg.BACKSPACE,action:rj(TN,e,!1)},{keyCode:Zg.DELETE,action:rj(TN,e,!0)},{keyCode:Zg.BACKSPACE,action:rj(KB,e,t,!1)},{keyCode:Zg.DELETE,action:rj(KB,e,t,!0)},{keyCode:Zg.BACKSPACE,action:rj(j_,e,!1)},{keyCode:Zg.DELETE,action:rj(j_,e,!0)},{keyCode:Zg.BACKSPACE,action:rj(YN,e,!1)},{keyCode:Zg.DELETE,action:rj(YN,e,!0)},{keyCode:Zg.BACKSPACE,action:rj(nP,e,!1)},{keyCode:Zg.DELETE,action:rj(nP,e,!0)},{keyCode:Zg.BACKSPACE,action:rj(gN,e,!1)},{keyCode:Zg.DELETE,action:rj(gN,e,!0)},{keyCode:Zg.BACKSPACE,action:rj(cN,e,!1)},{keyCode:Zg.DELETE,action:rj(cN,e,!0)},{keyCode:Zg.BACKSPACE,action:rj(XB,e,!1)},{keyCode:Zg.DELETE,action:rj(XB,e,!0)}],n).each((function(e){n.preventDefault()}))},Vj=function(e,t){oj([{keyCode:Zg.BACKSPACE,action:rj(KN,e)},{keyCode:Zg.DELETE,action:rj(KN,e)}],t)},Uj=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&Fj(e,t,n)})),e.on("keyup",(function(t){!1===t.isDefaultPrevented()&&Vj(e,t)}))},qj=function(e){while(e){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},zj=function(e,t){var n,r=t,o=e.dom,i=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var a=qj(t.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&t.insertBefore(o.doc.createTextNode(ca),t.firstChild)}var u=o.createRng();if(t.normalize(),t.hasChildNodes()){var s=new Vi(t,t);while(n=s.current()){if(Zr(n)){u.setStart(n,0),u.setEnd(n,0);break}if(i[n.nodeName.toLowerCase()]){u.setStartBefore(n),u.setEndBefore(n);break}r=n,n=s.next()}n||(u.setStart(r,0),u.setEnd(r,0))}else ro(t)?t.nextSibling&&o.isBlock(t.nextSibling)?(u.setStartBefore(t),u.setEndBefore(t)):(u.setStartAfter(t),u.setEndAfter(t)):(u.setStart(t,0),u.setEnd(t,0));e.selection.setRng(u),eb(e,u)}},Hj=function(e,t){var n,r,o=e.getRoot();n=t;while(n!==o&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},$j=function(e){return H.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},Wj=function(e){return $j(e).fold(R(""),(function(e){return e.nodeName.toUpperCase()}))},Kj=function(e){return $j(e).filter((function(e){return ra(wn.fromDom(e))})).isSome()},Qj=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},Gj=function(e){var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e},Yj=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},Jj=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},Xj=function(e){return Jj(e)&&Jj(e.parentNode)},Zj=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},eL=function(e,t,n){var r=e[n?"firstChild":"lastChild"];while(r){if(zr(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===t},tL=function(e,t,n,r,o){var i=e.dom,a=e.selection.getRng();if(n!==e.getBody()){Xj(n)&&(o="LI");var u=o?t(o):i.create("BR");if(eL(n,r,!0)&&eL(n,r,!1))if(Yj(n,"LI")){var s=Zj(n);i.insertAfter(u,s),Gj(n)?i.remove(s):i.remove(n)}else i.replace(u,n);else if(eL(n,r,!0))Yj(n,"LI")?(i.insertAfter(u,Zj(n)),u.appendChild(i.doc.createTextNode(" ")),u.appendChild(n)):n.parentNode.insertBefore(u,n),i.remove(r);else if(eL(n,r,!1))i.insertAfter(u,Zj(n)),i.remove(r);else{n=Zj(n);var c=a.cloneRange();c.setStartAfter(r),c.setEndAfter(n);var l=c.extractContents();"LI"===o&&Qj(l,"LI")?(u=l.firstChild,i.insertAfter(l,n)):(i.insertAfter(l,n),i.insertAfter(u,n)),i.remove(r)}zj(e,u)}},nL=function(e){Z(Sl(wn.fromDom(e),qn),(function(e){var t=e.dom;t.nodeValue=pa(t.nodeValue)}))},rL=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},oL=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},iL=function(e){e.innerHTML='<br data-mce-bogus="1">'},aL=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},uL=function(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)},sL=function(e,t,n){var r,o=n,i=[];if(o){while(o=o.firstChild){if(e.isBlock(o))return;zr(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}r=i.length;while(r--)o=i[r],(!o.hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue||rL(e,o))&&e.remove(o)}},cL=function(e,t,n){return!1===Zr(t)?n:e?1===n&&t.data.charAt(n-1)===da?0:n:n===t.data.length-1&&t.data.charAt(n)===da?t.data.length:n},lL=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,cL(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,cL(!1,e.endContainer,e.endOffset)),t},fL=function(e){do{Zr(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)},dL=function(e,t){var n,r,o=e.getRoot();n=t;while(n!==o&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},hL=function(e,t,n){var r=e.dom;H.from(n.style).map(r.parseStyle).each((function(e){var n=To(wn.fromDom(t)),o=He(He({},n),e);r.setStyles(t,o)}));var o=H.from(n.class).map((function(e){return e.split(/\s+/)})),i=H.from(t.className).map((function(e){return ne(e.split(/\s+/),(function(e){return""!==e}))}));fo(o,i,(function(e,n){var o=ne(n,(function(t){return!Y(e,t)})),i=We(We([],e,!0),o,!0);r.setAttrib(t,"class",i.join(" "))}));var a=["style","class"],u=Ae(n,(function(e,t){return!Y(a,t)}));r.setAttribs(t,u)},pL=function(e,t){var n=Cd(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=Sd(e);hL(e,t,r)}},mL=function(e,t,n,r,o){var i,a,u,s,c,l,f=t||"P",d=e.dom,h=dL(d,r);if(a=d.getParent(r,d.isBlock),!a||!uL(d,a)){if(a=a||h,l=a===e.getBody()||oL(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=d.create(f),pL(e,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;s=r;while(s.parentNode!==a)s=s.parentNode;while(s&&!d.isBlock(s))u=s,s=s.previousSibling;if(u&&e.schema.isValidChild(l,f.toLowerCase())){i=d.create(f),pL(e,i),u.parentNode.insertBefore(i,u),s=u;while(s&&!d.isBlock(s))c=s.nextSibling,i.appendChild(s),s=c;n.setStart(r,o),n.setEnd(r,o)}}return r},gL=function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")},vL=function(e,t){var n,r,o,i,a,u,s,c,l,f,d=e.dom,h=e.schema,p=h.getNonEmptyElements(),m=e.selection.getRng(),g=function(t){var n,o,a,u=r,s=h.getTextInlineElements();if(n=t||"TABLE"===c||"HR"===c?d.create(t||l):i.cloneNode(!1),a=n,!1===Od(e))d.setAttrib(n,"style",null),d.setAttrib(n,"class",null);else do{if(s[u.nodeName]){if(Xp(u)||wm(u))continue;o=u.cloneNode(!1),d.setAttrib(o,"id",""),n.hasChildNodes()?(o.appendChild(n.firstChild),n.appendChild(o)):(a=o,n.appendChild(o))}}while((u=u.parentNode)&&u!==x);return pL(e,n),iL(a),n},v=function(e){var t,n,a=cL(e,r,o);if(Zr(r)&&(e?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===i&&f&&!e)return!0;if(e&&zr(r)&&r===i.firstChild)return!0;if(aL(r,"TABLE")||aL(r,"HR"))return f&&!e||!f&&e;var u=new Vi(r,i);Zr(r)&&(e&&0===a?u.prev():e||a!==r.nodeValue.length||u.next());while(t=u.current()){if(zr(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),p[n]&&"br"!==n))return!1}else if(Zr(t)&&!Ka(t.nodeValue))return!1;e?u.prev():u.next()}return!0},b=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(c)&&"HGROUP"!==_?g(l):g(),Ad(e)&&uL(d,s)&&d.isEmpty(i)?a=d.split(s,i):d.insertAfter(a,i),zj(e,a)};yv(d,m).each((function(e){m.setStart(e.startContainer,e.startOffset),m.setEnd(e.endContainer,e.endOffset)})),r=m.startContainer,o=m.startOffset,l=Cd(e);var y=!(!t||!t.shiftKey),w=!(!t||!t.ctrlKey);zr(r)&&r.hasChildNodes()&&(f=o>r.childNodes.length-1,r=r.childNodes[Math.min(o,r.childNodes.length-1)]||r,o=f&&Zr(r)?r.nodeValue.length:0);var x=dL(d,r);if(x){(l&&!y||!l&&y)&&(r=mL(e,l,m,r,o)),i=d.getParent(r,d.isBlock),s=i?d.getParent(i.parentNode,d.isBlock):null,c=i?i.nodeName.toUpperCase():"";var _=s?s.nodeName.toUpperCase():"";"LI"!==_||w||(i=s,s=s.parentNode,c=_),/^(LI|DT|DD)$/.test(c)&&d.isEmpty(i)?tL(e,g,s,i,l):l&&i===e.getBody()||(l=l||"P",va(i)?(a=Ta(i),d.isEmpty(i)&&iL(i),pL(e,a),zj(e,a)):v()?b():v(!0)?(a=i.parentNode.insertBefore(g(),i),zj(e,aL(i,"HR")?a:i)):(n=lL(m).cloneRange(),n.setEndAfter(i),u=n.extractContents(),nL(u),fL(u),a=u.firstChild,d.insertAfter(u,i),sL(d,p,a),gL(d,i),d.isEmpty(i)&&iL(i),a.normalize(),d.isEmpty(a)?(d.remove(a),b()):(pL(e,a),zj(e,a))),d.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a}))}},bL=function(e,t,n){var r,o=new Vi(t,n),i=e.getNonEmptyElements();while(r=o.next())if(i[r.nodeName.toLowerCase()]||r.length>0)return!0},yL=function(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),eb(e,r)},wL=function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();yv(i,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var u=a.startOffset,s=a.startContainer;if(1===s.nodeType&&s.hasChildNodes()){var c=u>s.childNodes.length-1;s=s.childNodes[Math.min(u,s.childNodes.length-1)]||s,u=c&&3===s.nodeType?s.nodeValue.length:0}var l=i.getParent(s,i.isBlock),f=l?i.getParent(l.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==d||h||(l=f),s&&3===s.nodeType&&u>=s.nodeValue.length&&(bL(e.schema,s,l)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),Lf(i,a,n),yL(e,n,r),e.undoManager.add()},xL=function(e,t){var n=wn.fromTag("br");br(wn.fromDom(t),n),e.undoManager.add()},_L=function(e,t){SL(e.getBody(),t)||yr(wn.fromDom(t),wn.fromTag("br"));var n=wn.fromTag("br");yr(wn.fromDom(t),n),yL(e,n.dom,!1),e.undoManager.add()},CL=function(e){return ro(e.getNode())},SL=function(e,t){return!!CL(Nf.after(t))||Kp(e,Nf.after(t)).map((function(e){return ro(e.getNode())})).getOr(!1)},kL=function(e){return e&&"A"===e.nodeName&&"href"in e},EL=function(e){return e.fold(I,kL,kL,I)},OL=function(e){var t=B(AR,e),n=Nf.fromRangeStart(e.selection.getRng());return yD(t,e.getBody(),n).filter(EL)},AL=function(e,t){t.fold(O,B(xL,e),B(_L,e),O)},TL=function(e,t){var n=OL(e);n.isSome()?n.each(B(AL,e)):wL(e,t)},RL=function(e,t){return $j(e).filter((function(e){return t.length>0&&Tn(wn.fromDom(e),t)})).isSome()},NL=function(e){return RL(e,kd(e))},DL=function(e){return RL(e,Ed(e))},BL=ei.generate([{br:[]},{block:[]},{none:[]}]),PL=function(e,t){return DL(e)},jL=function(e){return function(t,n){var r=""===Cd(t);return r===e}},LL=function(e){return function(t,n){return Kj(t)===e}},ML=function(e,t){return function(n,r){var o=Wj(n)===e.toUpperCase();return o===t}},IL=function(e){return ML("pre",e)},FL=function(){return ML("summary",!0)},VL=function(e){return function(t,n){return _d(t)===e}},UL=function(e,t){return NL(e)},qL=function(e,t){return t},zL=function(e){var t=Cd(e),n=Hj(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},HL=function(e,t){return function(n,r){var o=oe(e,(function(e,t){return e&&t(n,r)}),!0);return o?H.some(t):H.none()}},$L=function(e,t){return cD([HL([PL],BL.none()),HL([FL()],BL.br()),HL([IL(!0),VL(!1),qL],BL.br()),HL([IL(!0),VL(!1)],BL.block()),HL([IL(!0),VL(!0),qL],BL.block()),HL([IL(!0),VL(!0)],BL.br()),HL([LL(!0),qL],BL.br()),HL([LL(!0)],BL.block()),HL([jL(!0),qL,zL],BL.block()),HL([jL(!0)],BL.br()),HL([UL],BL.br()),HL([jL(!1),qL],BL.br()),HL([zL],BL.block())],[e,!(!t||!t.shiftKey)]).getOr(BL.none())},WL=function(e,t){$L(e,t).fold((function(){TL(e,t)}),(function(){vL(e,t)}),O)},KL=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),wE(e.undoManager),e.undoManager.transact((function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),WL(e,t)})))},QL=function(e){e.on("keydown",(function(t){t.keyCode===Zg.ENTER&&KL(e,t)}))},GL=function(e,t,n){oj([{keyCode:Zg.END,action:rj(zP,e,!0)},{keyCode:Zg.HOME,action:rj(zP,e,!1)},{keyCode:Zg.END,action:rj(uj,e,!0)},{keyCode:Zg.HOME,action:rj(uj,e,!1)},{keyCode:Zg.END,action:rj(VB,e,!0,t)},{keyCode:Zg.HOME,action:rj(VB,e,!1,t)}],n).each((function(e){n.preventDefault()}))},YL=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&GL(e,t,n)}))},JL=$t().browser,XL=function(e){var t=fl((function(){e.composing||mx(e)}),0);JL.isIE()&&(e.on("keypress",(function(e){t.throttle()})),e.on("remove",(function(e){t.cancel()})))},ZL=function(e){XL(e),e.on("input",(function(t){!1===t.isComposing&&mx(e)}))},eM=$t(),tM=function(e,t,n){oj([{keyCode:Zg.PAGE_UP,action:rj(VB,e,!1,t)},{keyCode:Zg.PAGE_DOWN,action:rj(VB,e,!0,t)}],n)},nM=function(e){return e.stopImmediatePropagation()},rM=function(e){return e.keyCode===Zg.PAGE_UP||e.keyCode===Zg.PAGE_DOWN},oM=function(e,t,n){n&&!e.get()?t.on("NodeChange",nM,!0):!n&&e.get()&&t.off("NodeChange",nM),e.set(n)},iM=function(e,t){if(!eM.os.isOSX()){var n=Qc(!1);e.on("keydown",(function(t){rM(t)&&oM(n,e,!0)})),e.on("keyup",(function(r){!1===r.isDefaultPrevented()&&tM(e,t,r),rM(r)&&n.get()&&(oM(n,e,!1),e.nodeChanged())}))}},aM=function(e,t){var n=t.container(),r=t.offset();return Zr(n)?(n.insertData(r,e),H.some(Nf(n,r+e.length))):yp(t).map((function(n){var r=wn.fromText(e);return t.isAtEnd()?yr(n,r):br(n,r),Nf(r.dom,e.length)}))},uM=B(aM,ca),sM=B(aM," "),cM=function(e){return function(t){return t.fold((function(t){return Qp(e.dom,Nf.before(t))}),(function(e){return Gp(e)}),(function(e){return Yp(e)}),(function(t){return Kp(e.dom,Nf.after(t))}))}},lM=function(e,t){return function(n){return rx(e,n)?uM(t):sM(t)}},fM=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},dM=function(e){var t=Nf.fromRangeStart(e.selection.getRng()),n=wn.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=B(AR,e),o=Nf.fromRangeStart(e.selection.getRng());return yD(r,e.getBody(),o).bind(cM(n)).bind(lM(n,t)).exists(fM(e))}return!1},hM=function(e,t){oj([{keyCode:Zg.SPACEBAR,action:rj(dM,e)}],t).each((function(e){t.preventDefault()}))},pM=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&hM(e,t)}))},mM=function(e){var t=MB(e);return BP(e),Ij(e,t),Uj(e,t),QL(e),pM(e),ZL(e),YL(e,t),iM(e,t),t},gM=function(e){return LE(e)?Qc(null):mM(e)},vM=function(){function e(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(),o={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&uv(o,t)||e.fire("SelectionChange"),t=o})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!en.range&&e.selection.isCollapsed()||Cg(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&Cg(e)&&("IMG"===e.selection.getNode().nodeName?Li.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}return e.prototype.nodeChanged=function(e){var t,n,r,o=this.editor.selection;this.editor.initialized&&o&&!bh(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),t=o.getStart(!0)||r,t.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){if(e===r)return!0;n.push(e)})),e=e||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.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;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),bM=function(e){e.on("click",(function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()}))},yM=function(e){e.parser.addNodeFilter("details",(function(e){Z(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),e.serializer.addNodeFilter("details",(function(e){Z(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",v(t)?t:null),e.attr("data-mce-open",null)}))}))},wM=function(e){bM(e),yM(e)},xM=function(e){return zr(e)&&ta(wn.fromDom(e))},_M=function(e){var t=e.selection.getRng(),n=Nf.fromRangeStart(t),r=Nf.fromRangeEnd(t);if(Nf.isElementPosition(n)){var o=n.container();xM(o)&&Gp(o).each((function(e){return t.setStart(e.container(),e.offset())}))}if(Nf.isElementPosition(r)){o=n.container();xM(o)&&Yp(o).each((function(e){return t.setEnd(e.container(),e.offset())}))}e.selection.setRng(I_(t))},CM=function(e){e.on("click",(function(t){t.detail>=3&&_M(e)}))},SM=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,o=n.defaultView;return{top:t.top+o.pageYOffset-r.clientTop,left:t.left+o.pageXOffset-r.clientLeft}},kM=function(e){return e.inline?SM(e.getBody()):{left:0,top:0}},EM=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},OM=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},o={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:o},AM=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=SM(e.getContentAreaContainer()),r=OM(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},TM=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},RM=function(e,t){return TM(kM(e),EM(e),AM(e,t))},NM=ao,DM=io,BM=function(e,t){return NM(t)&&t!==e},PM=function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!NM(t)},jM=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},LM=function(e,t,n,r){var o=e.dom,i=t.cloneNode(!0);o.setStyles(i,{width:n,height:r}),o.setAttrib(i,"data-mce-selected",null);var a=o.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return o.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),o.setStyles(i,{margin:0,boxSizing:"border-box"}),a.appendChild(i),a},MM=function(e,t){e.parentNode!==t&&t.appendChild(e)},IM=function(e,t,n,r,o,i){var a=0,u=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>o&&(a=t.pageX+n-o),t.pageY+r>i&&(u=t.pageY+r-i),e.style.width=n-a+"px",e.style.height=r-u+"px"},FM=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},VM=function(e){return 0===e.button},UM=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},qM=function(e,t){return function(n){if(VM(n)){var r=ae(t.dom.getParents(n.target),cf(NM,DM)).getOr(null);if(BM(t.getBody(),r)){var o=t.dom.getPos(r),i=t.getBody(),a=t.getDoc().documentElement;e.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(t.inline?i.scrollWidth:a.offsetWidth)-2,maxY:(t.inline?i.scrollHeight:a.offsetHeight)-2,relX:n.pageX-o.x,relY:n.pageY-o.y,width:r.offsetWidth,height:r.offsetHeight,ghost:LM(t,r,r.offsetWidth,r.offsetHeight)})}}}},zM=function(e,t){var n=Li.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 o=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&o>10){var i=t.fire("dragstart",{target:e.element});if(i.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=UM(e,RM(t,r));MM(e.ghost,t.getBody()),IM(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}))}},HM=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},$M=function(e,t){return function(n){e.on((function(e){if(e.dragging){if(PM(t,HM(t.selection),e.element)){var r=jM(e.element),o=t.fire("drop",{clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||t.undoManager.transact((function(){FM(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}t.fire("dragend")}})),KM(e)}},WM=function(e,t){return function(){e.on((function(e){e.dragging&&t.fire("dragend")})),KM(e)}},KM=function(e){e.on((function(e){FM(e.ghost)})),e.clear()},QM=function(e){var t=ll(),n=Fc.DOM,r=document,o=qM(t,e),i=zM(t,e),a=$M(t,e),u=WM(t,e);e.on("mousedown",o),e.on("mousemove",i),e.on("mouseup",a),n.bind(r,"mousemove",i),n.bind(r,"mouseup",u),e.on("remove",(function(){n.unbind(r,"mousemove",i),n.unbind(r,"mouseup",u)})),e.on("keydown",(function(e){e.keyCode===Zg.ESC&&u()}))},GM=function(e){e.on("drop",(function(t){var n="undefined"!==typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(NM(n)||"false"===e.dom.getContentEditableParent(n))&&t.preventDefault()}))},YM=function(e){var t=function(t){if(!t.isDefaultPrevented()){var n=t.dataTransfer;n&&(Y(n.types,"Files")||n.files.length>0)&&(t.preventDefault(),"drop"===t.type&&BT(e,"Dropped file type is not supported"))}},n=function(n){Yb(e,n.target)&&t(n)},r=function(){var r=Fc.DOM,o=e.dom,i=document,a=e.inline?e.getBody():e.getDoc(),u=["drop","dragover"];Z(u,(function(e){r.bind(i,e,n),o.bind(a,e,t)})),e.on("remove",(function(){Z(u,(function(e){r.unbind(i,e,n),o.unbind(a,e,t)}))}))};e.on("init",(function(){Li.setEditorTimeout(e,r,0)}))},JM=function(e){QM(e),GM(e),Ch(e)&&YM(e)},XM=function(e){var t=fl((function(){if(!e.removed&&e.getBody().contains(document.activeElement)){var t=e.selection.getRng();if(t.collapsed){var n=CN(e,t,!1);e.selection.setRng(n)}}}),0);e.on("focus",(function(){t.throttle()})),e.on("blur",(function(){t.cancel()}))},ZM=function(e){e.on("init",(function(){e.on("focusin",(function(t){var n=t.target;if(so(n)){var r=Mg(e.getBody(),n),o=ao(r)?r:n;e.selection.getNode()!==o&&xN(e,o).each((function(t){return e.selection.setRng(t)}))}}))}))},eI=io,tI=ao,nI=function(e,t){return Mg(e.getBody(),t)},rI=function(e){var t,n=e.selection,r=e.dom,o=r.isBlock,i=e.getBody(),a=Kh(e,i,o,(function(){return ly(e)})),u="sel-"+r.uniqueId(),s="data-mce-selected",c=function(e){return r.hasClass(e,"mce-offscreen-selection")},l=function(e){return e!==i&&(tI(e)||so(e))&&r.isChildOf(e,i)},f=function(e){return Sw(e)||kw(e)||ww(e)||xw(e)},d=function(){var e=r.get(u);return e?e.getElementsByTagName("*")[0]:e},h=function(e){e&&n.setRng(e)},p=n.getRng,m=function(t,r,o,i){void 0===i&&(i=!0);var u=e.fire("ShowCaret",{target:r,direction:t,before:o});return u.isDefaultPrevented()?null:(i&&n.scrollIntoView(r,-1===t),a.show(o,r))},g=function(e){e.hasAttribute("data-mce-caret")&&(Ta(e),h(p()),n.scrollIntoView(e))},v=function(){e.on("mouseup",(function(t){var n=p();n.collapsed&&CT(e,t.clientX,t.clientY)&&_N(e,n,!1).each(h)})),e.on("click",(function(t){var o=nI(e,t.target);o&&(tI(o)&&(t.preventDefault(),e.focus()),eI(o)&&r.isChildOf(o,n.getNode())&&k())})),e.on("blur NewBlock",k),e.on("ResizeWindow FullscreenStateChanged",a.reposition);var u=function(e){var t=e.firstChild;if(C(t))return!1;var n=Nf.before(t);if(ro(n.getNode())&&1===e.childNodes.length)return!f(n);var r=jp(e),o=r.next(n);return o&&!f(o)},s=function(e,t){var n=r.getParent(e,o),i=r.getParent(t,o);return n===i},g=function(t,n){var i=r.getParent(t,o),a=r.getParent(n,o);return!C(i)&&(!(t===a||!r.isChildOf(i,a)||!1!==tI(nI(e,i)))||!r.isChildOf(a,i)&&!s(i,a)&&u(i))};e.on("tap",(function(t){var n=t.target,r=nI(e,n);tI(r)?(t.preventDefault(),xN(e,r).each(S)):l(n)&&xN(e,n).each(S)}),!0),e.on("mousedown",(function(t){var o=t.target;if((o===i||"HTML"===o.nodeName||r.isChildOf(o,i))&&!1!==CT(e,t.clientX,t.clientY)){var a=nI(e,o);if(a)tI(a)?(t.preventDefault(),xN(e,a).each(S)):(k(),eI(a)&&t.shiftKey||Ig(t.clientX,t.clientY,n.getRng())||(O(),n.placeCaretAt(t.clientX,t.clientY)));else if(l(o))xN(e,o).each(S);else if(!1===Yh(o)){k(),O();var u=xB(i,t.clientX,t.clientY);if(u&&!g(o,u.node)){t.preventDefault();var s=m(1,u.node,u.before,!1);h(s),e.getBody().focus()}}}})),e.on("keypress",(function(e){Zg.modifierPressed(e)||tI(n.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}})),e.on("SetSelectionRange",(function(e){e.range=w(e.range);var t=S(e.range,e.forward);t&&(e.range=t)}));var v=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;y(t)||v(n)||O(),c(n)||k()})),e.on("copy",(function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!en.ie){var n=d();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText||n.innerText))}})),JM(e),XM(e),ZM(e)},b=function(e){return ya(e)||Ea(e)||Oa(e)},y=function(e){return b(e.startContainer)||b(e.endContainer)},w=function(t){var n=e.schema.getShortEndedElements(),o=r.createRng(),i=t.startContainer,a=t.startOffset,u=t.endContainer,s=t.endOffset;return De(n,i.nodeName.toLowerCase())?0===a?o.setStartBefore(i):o.setStartAfter(i):o.setStart(i,a),De(n,u.nodeName.toLowerCase())?0===s?o.setEndBefore(u):o.setEndAfter(u):o.setEnd(u,s),o},x=function(t,o,i){var a=e.$,s=Oi(wn.fromDom(e.getBody()),"#"+u).fold((function(){return a([])}),(function(e){return a([e.dom])}));0===s.length&&(s=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",u),s.appendTo(e.getBody()));var c=r.createRng();o===i&&en.ie?(s.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(o),c.setStartAfter(s[0].firstChild.firstChild),c.setEndAfter(o)):(s.empty().append(ca).append(o).append(ca),c.setStart(s[0].firstChild,1),c.setEnd(s[0].lastChild,0)),s.css({top:r.getPos(t,e.getBody()).y}),s[0].focus();var l=n.getSel();return l.removeAllRanges(),l.addRange(c),c},_=function(n){var o=n.cloneNode(!0),i=e.fire("ObjectSelected",{target:n,targetClone:o});if(i.isDefaultPrevented())return null;var a=x(n,i.targetClone,o),u=wn.fromDom(n);return Z(kl(wn.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){Bn(u,e)||_o(e,s)})),r.getAttrib(n,s)||n.setAttribute(s,"1"),t=n,O(),a},S=function(e,t){if(!e)return null;if(e.collapsed){if(!y(e)){var n=t?1:-1,o=bp(n,i,e),a=o.getNode(!t);if(Yh(a))return m(n,a,!!t&&!o.isAtEnd(),!1);var u=o.getNode(t);if(Yh(u))return m(n,u,!t&&!o.isAtEnd(),!1)}return null}var s=e.startContainer,c=e.startOffset,f=e.endOffset;if(3===s.nodeType&&0===c&&tI(s.parentNode)&&(s=s.parentNode,c=r.nodeIndex(s),s=s.parentNode),1!==s.nodeType)return null;if(f===c+1&&s===e.endContainer){var d=s.childNodes[c];if(l(d))return _(d)}return null},k=function(){t&&t.removeAttribute(s),Oi(wn.fromDom(e.getBody()),"#"+u).each(Er),t=null},E=function(){a.destroy(),t=null},O=function(){a.hide()};return en.ceFalse&&!LE(e)&&v(),{showCaret:m,showBlockCaretContainer:g,hideFakeCaret:O,destroy:E}},oI=function(e){var t=pn.each,n=Zg.BACKSPACE,r=Zg.DELETE,o=e.dom,i=e.selection,a=e.parser,u=en.gecko,s=en.ie,c=en.webkit,l="data:text/mce-internal,",f=s?"Text":"URL",d=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},h=function(e){return e.isDefaultPrevented()},p=function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&i.select(t.target),n=e.selection.getContent(),n.length>0&&(r=l+escape(e.id)+","+escape(n),t.dataTransfer.setData(f,r)))},m=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(f),t&&t.indexOf(l)>=0)?(t=t.substr(l.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},g=function(t,n){e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:t,internal:n}):e.execCommand("mceInsertContent",!1,t)},v=function(){var t=function(e){var t=o.create("body"),n=e.cloneContents();return t.appendChild(n),i.serializer.serialize(t,{format:"html"})},a=function(n){var r=t(n),i=o.createRng();i.selectNode(e.getBody());var a=t(i);return r===a};e.on("keydown",(function(t){var i,u,s=t.keyCode;if(!h(t)&&(s===r||s===n)){if(i=e.selection.isCollapsed(),u=e.getBody(),i&&!o.isEmpty(u))return;if(!i&&!a(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),u.firstChild&&o.isBlock(u.firstChild)?e.selection.setCursorLocation(u.firstChild,0):e.selection.setCursorLocation(u,0),e.nodeChanged()}}))},b=function(){e.shortcuts.add("meta+a",null,"SelectAll")},y=function(){e.inline||o.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;if(t.target===e.getDoc().documentElement)if(n=i.getRng(),e.getBody().focus(),"mousedown"===t.type){if(ya(n.startContainer))return;i.placeCaretAt(t.clientX,t.clientY)}else i.setRng(n)}))},w=function(){e.on("keydown",(function(t){if(!h(t)&&t.keyCode===n){if(!e.getBody().getElementsByTagName("hr").length)return;if(i.isCollapsed()&&0===i.getRng().startOffset){var r=i.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return o.remove(r),void t.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(o.remove(a),t.preventDefault())}}}))},x=function(){Range.prototype.getClientRects||e.on("mousedown",(function(t){if(!h(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),Li.setEditorTimeout(e,(function(){n.focus()}))}}))},_=function(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==o.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&o.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),i.select(n))}))},C=function(){var n=function(){var n=o.getAttribs(i.getStart().cloneNode(!1));return function(){var r=i.getStart();r!==e.getBody()&&(o.setAttrib(r,"style",null),t(n,(function(e){r.setAttributeNode(e.cloneNode(!0))})))}},r=function(){return!i.isCollapsed()&&o.getParent(i.getStart(),o.isBlock)!==o.getParent(i.getEnd(),o.isBlock)};e.on("keypress",(function(t){var o;if(!h(t)&&(8===t.keyCode||46===t.keyCode)&&r())return o=n(),e.getDoc().execCommand("delete",!1,null),o(),t.preventDefault(),!1})),o.bind(e.getDoc(),"cut",(function(t){var o;!h(t)&&r()&&(o=n(),Li.setEditorTimeout(e,(function(){o()})))}))},S=function(){e.on("keydown",(function(e){if(!h(e)&&e.keyCode===n&&i.isCollapsed()&&0===i.getRng().startOffset){var t=i.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))},k=function(){e.on("keydown",(function(t){var n,r;if(!h(t)&&t.keyCode===Zg.BACKSPACE){n=i.getRng();var a=n.startContainer,u=n.startOffset,s=o.getRoot();if(r=a,n.collapsed&&0===u){while(r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==s)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(e.formatter.toggle("blockquote",null,r),n=o.createRng(),n.setStart(a,0),n.setEnd(a,0),i.setRng(n))}}}))},E=function(){var t=function(){d("StyleWithCSS",!1),d("enableInlineTableEditing",!1),Jd(e)||d("enableObjectResizing",!1)};yh(e)||e.on("BeforeExecCommand mousedown",t)},A=function(){var n=function(){t(o.select("a"),(function(e){var t=e.parentNode,n=o.getRoot();if(t.lastChild===e){while(t&&!o.isBlock(t)){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}o.add(t,"br",{"data-mce-bogus":1})}}))};e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||n()}))},T=function(){Cd(e)&&e.on("init",(function(){d("DefaultParagraphSeparator",Cd(e))}))},R=function(){e.on("keyup focusin mouseup",(function(e){Zg.modifierPressed(e)||i.normalize()}),!0)},N=function(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},D=function(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))},B=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;if("HTML"===t.target.nodeName){if(en.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}})))},P=function(){en.mac&&e.on("keydown",(function(t){if(Zg.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();var n=e.selection.getSel();n.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}}))},j=function(){d("AutoUrlDetect",!1)},L=function(){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}")},M=function(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))},I=function(){a.addNodeFilter("br",(function(e){var t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}))},F=function(){e.on("dragstart",(function(e){p(e)})),e.on("drop",(function(t){if(!h(t)){var n=m(t);if(n&&n.id!==e.id){t.preventDefault();var r=av(t.x,t.y,e.getDoc());i.setRng(r),g(n.html,!0)}}}))},V=O,U=function(){if(!u||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount},q=function(){c&&(y(),_(),M(),b(),en.iOS&&(D(),B(),L())),u&&(x(),E(),N(),P())},z=function(){k(),v(),en.windowsPhone||R(),c&&(y(),_(),T(),M(),S(),I(),en.iOS?(D(),B(),L()):b()),en.ie>=11&&(B(),S()),en.ie&&(b(),j(),F()),u&&(w(),x(),C(),E(),A(),N(),P(),S())};return LE(e)?q():z(),{refreshContentEditable:V,isHidden:U}},iI=Fc.DOM,aI=function(e,t){var n=wn.fromDom(e.getBody()),r=hr(dr(n)),o=wn.fromTag("style");vo(o,"type","text/css"),xr(o,wn.fromText(t)),xr(r,o),e.on("remove",(function(){Er(o)}))},uI=function(e){return e.inline?e.getElement().nodeName.toLowerCase():void 0},sI=function(e){return Ae(e,(function(e){return!1===_(e)}))},cI=function(e){var t=e.settings,n=e.editorUpload.blobCache;return sI({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:uI(e),validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})},lI=function(e){var t=e.settings;return He(He({},cI(e)),sI({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope,element_format:t.element_format,entities:t.entities,entity_encoding:t.entity_encoding,indent:t.indent,indent_after:t.indent_after,indent_before:t.indent_before,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}))},fI=function(e){var t=iA(cI(e),e.schema);return t.addAttributeFilter("src,href,style,tabindex",(function(t,n){var r,o,i=t.length,a=e.dom,u="data-mce-"+n;while(i--)if(r=t[i],o=r.attr(n),o&&!r.attr(u)){if(0===o.indexOf("data:")||0===o.indexOf("blob:"))continue;"style"===n?(o=a.serializeStyle(a.parseStyle(o),r.name),o.length||(o=null),r.attr(u,o),r.attr(n,o)):"tabindex"===n?(r.attr(u,o),r.attr(n,null)):r.attr(u,e.convertURL(o,n,r.name))}})),t.addNodeFilter("script",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),e.settings.preserve_cdata&&t.addNodeFilter("#cdata",(function(t){var n=t.length;while(n--){var r=t[n];r.type=8,r.name="#comment",r.value="[CDATA["+e.dom.encode(r.value)+"]]"}})),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(t){var n=t.length,r=e.schema.getNonEmptyElements();while(n--){var o=t[n];o.isEmpty(r)&&0===o.getAll("br").length&&(o.append(new Oy("br",1)).shortEnded=!0)}})),t},dI=function(e){e.settings.auto_focus&&Li.setEditorTimeout(e,(function(){var t;t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()}),100)},hI=function(e){var t=e.dom.getRoot();e.inline||Cg(e)&&e.selection.getStart(!0)!==t||Gp(t).each((function(t){var n=t.getNode(),r=Yr(n)?Gp(n).getOr(t):t;en.browser.isIE()?Lb(e,r.toRange()):e.selection.setRng(r.toRange())}))},pI=function(e){e.bindPendingEventDelegates(),e.initialized=!0,Qg(e),e.focus(!0),hI(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),dI(e)},mI=function(e){return e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader},gI=function(e,t,n){var r=[new Ti((function(n,r){return mI(e).loadAll(t,n,r)}))];return e.inline?r:r.concat([new Ti((function(t,r){return e.ui.styleSheetLoader.loadAll(n,t,r)}))])},vI=function(e){var t=mI(e),n=Qd(e),r=e.contentCSS,o=function(){t.unloadAll(r),e.inline||e.ui.styleSheetLoader.unloadAll(n)},i=function(){e.removed?o():e.on("remove",o)};if(e.contentStyles.length>0){var a="";pn.each(e.contentStyles,(function(e){a+=e+"\r\n"})),e.dom.addStyle(a)}var u=Ti.all(gI(e,r,n)).then(i).catch(i);return e.settings.content_style&&aI(e,e.settings.content_style),u},bI=function(e){var t=e.settings,n=e.getDoc(),r=e.getBody();Wg(e),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,iI.setAttrib(r,"spellcheck","false")),e.quirks=oI(e),Kg(e);var o=Gd(e);void 0!==o&&(r.dir=o),t.protect&&e.on("BeforeSetContent",(function(e){pn.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}))},yI=function(e){LE(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})},wI=function(e){!0!==e.removed&&(yI(e),pI(e))},xI=function(e,t){var n=e.settings,r=e.getElement(),o=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(o.open(),o.write(e.iframeHTML),o.close()),e.inline&&(iI.addClass(r,"mce-content-body"),e.contentDocument=o=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var i=e.getBody();i.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===iI.getStyle(i,"position",!0)&&(i.style.position="relative"),i.contentEditable=e.getParam("content_editable_state",!0)),i.disabled=!1,e.editorUpload=rR(e),e.schema=Fu(n),e.dom=Fc(o,{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:Ud(e),referrerPolicy:qd(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=fI(e),e.serializer=bA(lI(e),e),e.selection=OO(e.dom,e.getWin(),e.serializer,e),e.annotator=jg(e),e.formatter=hR(e),e.undoManager=vR(e),e._nodeChangeDispatcher=new vM(e),e._selectionOverrides=rI(e),_P(e),wM(e),LE(e)||CM(e);var a=gM(e);vP(e,a),AP(e),kR(e);var u=IE(e);bI(e),u.fold((function(){vI(e).then((function(){return wI(e)}))}),(function(t){e.setProgressState(!0),vI(e).then((function(){t().then((function(t){e.setProgressState(!1),wI(e)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),wI(e)}))}))}))},_I=Fc.DOM,CI=function(e,t){if(document.domain!==window.location.hostname&&en.browser.isIE()){var n=YT("mce");e[n]=function(){xI(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 _I.setAttrib(t,"src",r),!0}return!1},SI=function(e,t,n,r){var o=wn.fromTag("iframe");return bo(o,r),bo(o,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),wl(o,"tox-edit-area__iframe"),o},kI=function(e){var t=vd(e)+"<html><head>";bd(e)!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=yd(e),r=wd(e),o=e.translate(Oh(e));return xd(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+xd(e)+'" />'),t+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'" aria-label="'+o+'"><br></body></html>',t},EI=function(e,t){var n=e.translate("Rich Text Area"),r=SI(e.id,n,t.height,gd(e)).dom;r.onload=function(){r.onload=null,e.fire("load")};var o=CI(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=kI(e),_I.add(t.iframeContainer,r),o},OI=function(e,t){var n=EI(e,t);t.editorContainer&&(_I.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=_I.isHidden(t.editorContainer)),e.getElement().style.display="none",_I.setAttrib(e.id,"aria-hidden","true"),n||xI(e)},AI=Fc.DOM,TI=function(e,t,n){var r=AT.get(n),o=AT.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=pn.trim(n),r&&-1===pn.inArray(t,n)){if(pn.each(AT.dependencies(n),(function(n){TI(e,t,n)})),e.plugins[n])return;try{var i=new r(e,o,e.$);e.plugins[n]=i,i.init&&(i.init(e,o),t.push(n))}catch(pU){VT(e,n,pU)}}},RI=function(e){return e.replace(/^\-/,"")},NI=function(e){var t=[];pn.each(xh(e).split(/[ ,]/),(function(n){TI(e,t,RI(n))}))},DI=function(e){var t=pn.trim(jd(e)),n=e.ui.registry.getAll().icons,r=He(He({},hT.get("default").icons),hT.get(t).icons);_e(r,(function(t,r){De(n,r)||e.ui.registry.addIcon(r,t)}))},BI=function(e){var t=nh(e);if(v(t)){e.settings.theme=RI(t);var n=TT.get(t);e.theme=new n(e,TT.urls[t]),e.theme.init&&e.theme.init(e,TT.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},PI=function(e){return e.theme.renderUI()},jI=function(e){var t=e.getElement(),n=nh(e),r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},LI=function(e){return{editorContainer:e,iframeContainer:e,api:{}}},MI=function(e){var t=AI.create("div");return AI.insertAfter(t,e),LI(t)},II=function(e){var t=e.getElement();return e.inline?LI(null):MI(t)},FI=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,v(nh(e))?PI(e):k(nh(e))?jI(e):II(e)},VI=function(e,t){var n={show:H.from(t.show).getOr(O),hide:H.from(t.hide).getOr(O),disable:H.from(t.disable).getOr(O),isDisabled:H.from(t.isDisabled).getOr(I),enable:function(){e.mode.isReadOnly()||H.from(t.enable).map(M)}};e.ui=He(He({},e.ui),n)},UI=function(e){e.fire("ScriptsLoaded"),DI(e),BI(e),NI(e);var t=FI(e);VI(e,H.from(t.api).getOr({}));var n={editorContainer:t.editorContainer,iframeContainer:t.iframeContainer};return e.editorContainer=n.editorContainer?n.editorContainer:null,WT(e),e.inline?xI(e):OI(e,n)},qI=Fc.DOM,zI=function(e){return"-"===e.charAt(0)},HI=function(e,t){var n=zd(t),r=Hd(t);if(!1===ul.hasCode(n)&&"en"!==n){var o=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(o,O,void 0,(function(){FT(t,o,n)}))}},$I=function(e,t,n,r){var o=nh(t);if(v(o)){if(!zI(o)&&!De(TT.urls,o)){var i=ch(t);i?TT.load(o,t.documentBaseURI.toAbsolute(i)):TT.load(o,"themes/"+o+"/theme"+n+".js")}e.loadQueue((function(){TT.waitFor(o,r)}))}else r()},WI=function(e){return H.from(Ld(e)).filter((function(e){return e.length>0})).map((function(e){return{url:e,name:H.none()}}))},KI=function(e,t,n){return H.from(t).filter((function(e){return e.length>0&&!hT.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:H.some(t)}}))},QI=function(e,t,n){var r=KI(t,"default",n),o=WI(t).orThunk((function(){return KI(t,jd(t),"")}));Z(lo([r,o]),(function(n){e.add(n.url,O,void 0,(function(){IT(t,n.url,n.name.getOrUndefined())}))}))},GI=function(e,t){pn.each(_h(e),(function(t,n){AT.load(n,t,O,void 0,(function(){MT(e,t,n)})),e.settings.plugins+=" "+n})),pn.each(xh(e).split(/[ ,]/),(function(n){if(n=pn.trim(n),n&&!AT.urls[n])if(zI(n)){n=n.substr(1,n.length);var r=AT.dependencies(n);pn.each(r,(function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"},o=AT.createUrl(r,n);AT.load(o.resource,o,O,void 0,(function(){MT(e,o.prefix+o.resource+o.suffix,o.resource)}))}))}else{var o={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"};AT.load(n,o,O,void 0,(function(){MT(e,o.prefix+o.resource+o.suffix,n)}))}}))},YI=function(e,t){var n=Kc.ScriptLoader;$I(n,e,t,(function(){HI(n,e),QI(n,e,t),GI(e,t),n.loadQueue((function(){e.removed||UI(e)}),e,(function(){e.removed||UI(e)}))}))},JI=function(e,t){return Fi.forElement(e,{contentCssCors:wh(t),referrerPolicy:qd(t)})},XI=function(e){var t=e.id;ul.setCode(zd(e));var n=function(){qI.unbind(window,"ready",n),e.render()};if(ts.Event.domLoaded){if(e.getElement()&&en.contentEditable){var r=wn.fromDom(e.getElement()),o=Co(r);e.on("remove",(function(){ee(r.dom.attributes,(function(e){return _o(r,e.name)})),bo(r,o)})),e.ui.styleSheetLoader=JI(r,e),lh(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var i=e.getElement().form||qI.getParent(t,"form");i&&(e.formElement=i,fh(e)&&!Xr(e.getElement())&&(qI.insertAfter(qI.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},qI.bind(i,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!dh(e)||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),i._mceOldSubmit(i)})),e.windowManager=NT(e),e.notificationManager=OT(e),hh(e)&&e.on("GetContent",(function(e){e.save&&(e.content=qI.encode(e.content))})),ph(e)&&e.on("submit",(function(){e.initialized&&e.save()})),mh(e)&&(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),YI(e,e.suffix)}}else qI.bind(window,"ready",n)},ZI=function(e,t){return fO(e,t)},eF={"font-size":"size","font-family":"face"},tF=function(e,t,n){var r=function(t){return Ao(t,e).orThunk((function(){return"font"===Mn(t)?Ne(eF,e).bind((function(e){return wo(t,e)})):H.none()}))},o=function(e){return Bn(wn.fromDom(t),e)};return BC(wn.fromDom(n),(function(e){return r(e)}),o)},nF=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},rF=function(e,t){return H.from(Fc.DOM.getStyle(t,e,!0))},oF=function(e){return function(t,n){return H.from(n).map(wn.fromDom).filter(Un).bind((function(n){return tF(e,t,n.dom).or(rF(e,n.dom))})).getOr("")}},iF=oF("font-size"),aF=A(nF,oF("font-family")),uF=function(e){return Gp(e.getBody()).map((function(e){var t=e.container();return Zr(t)?t.parentNode:t}))},sF=function(e){return H.from(e.selection.getRng()).bind((function(t){var n=e.getBody(),r=t.startContainer===n&&0===t.startOffset;return r?H.none():H.from(e.selection.getStart(!0))}))},cF=function(e,t){return sF(e).orThunk(B(uF,e)).map(wn.fromDom).filter(Un).bind(t)},lF=function(e,t){return cF(e,T(H.some,t))},fF=function(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=Td(e),o=Rd(e);return o?o[n-1]||t:r[n-1]||t}return t}return t},dF=function(e){var t=e.split(/\s*,\s*/);return X(t,(function(e){return-1===e.indexOf(" ")||ct(e,'"')||ct(e,"'")?e:"'"+e+"'"})).join(",")},hF=function(e,t){var n=fF(e,t);e.formatter.toggle("fontname",{value:dF(n)}),e.nodeChanged()},pF=function(e){return lF(e,(function(t){return aF(e.getBody(),t.dom)})).getOr("")},mF=function(e,t){e.formatter.toggle("fontsize",{value:fF(e,t)}),e.nodeChanged()},gF=function(e){return lF(e,(function(t){return iF(e.getBody(),t.dom)})).getOr("")},vF=function(e){return lF(e,(function(t){var n=wn.fromDom(e.getBody()),r=BC(t,(function(e){return Ao(e,"line-height")}),B(Bn,n)),o=function(){var e=parseFloat(Eo(t,"line-height")),n=parseFloat(Eo(t,"font-size"));return String(e/n)};return r.getOrThunk(o)})).getOr("")},bF=function(e,t){e.formatter.toggle("lineheight",{value:String(t)}),e.nodeChanged()},yF=function(e){if("string"!==typeof e){var t=pn.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}return{content:e,details:{}}},wF=function(e,t){var n=yF(t);cO(e,n.content,n.details)},xF=pn.each,_F=pn.map,CF=pn.inArray,SF=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var o,i=!1,a=this;if(!a.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?Ib(a.editor):a.editor.focus()),r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;var u=e.toLowerCase();if(o=a.commands.exec[u])return o(u,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(xF(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),i=!0,!1})),i)return i;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{i=a.editor.getDoc().execCommand(e,t,n)}catch(s){}return!!i&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.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(n){}return!1}},e.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(n){}}},e.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;xF(e,(function(e,r){xF(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,a){return t.call(n||r.editor,o,i,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":O,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,r){py(e,r)},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");en.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),xF("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 o=e.dom.getParent(e.selection.getNode(),"ol,ul");o&&(r=o.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(t.storeSelection(),e.dom.split(r,o),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){hF(e,r)},FontSize:function(t,n,r){mF(e,r)},LineHeight:function(t,n,r){bF(e,r)},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,o){var i=o||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&o++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){wF(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){WL(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){dP(e,t)},mceRepaint:O,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 o=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),io);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return TL(e,r),!0}});var n=function(t){return function(){var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),o=_F(r,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==CF(o,!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 sP(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 pF(e)}),this),t.addQueryValueHandler("FontSize",(function(){return gF(e)}),this),t.addQueryValueHandler("LineHeight",(function(){return vF(e)}),this)},e}(),kF="data-mce-contenteditable",EF=function(e,t,n){Cl(e,t)&&!1===n?_l(e,t):n&&wl(e,t)},OF=function(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(r){}},AF=function(e,t){e.dom.contentEditable=t?"true":"false"},TF=function(e){Z(kl(e,'*[contenteditable="true"]'),(function(e){vo(e,kF,"true"),AF(e,!1)}))},RF=function(e){Z(kl(e,"*["+kF+'="true"]'),(function(e){_o(e,kF),AF(e,!0)}))},NF=function(e){H.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")}))},DF=function(e){e.selection.setRng(e.selection.getRng())},BF=function(e,t){var n=wn.fromDom(e.getBody());EF(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),NF(e),e.readonly=!0,AF(n,!1),TF(n)):(e.readonly=!1,AF(n,!0),RF(n),OF(e,"StyleWithCSS",!1),OF(e,"enableInlineTableEditing",!1),OF(e,"enableObjectResizing",!1),fy(e)&&e.focus(),DF(e),e.nodeChanged())},PF=function(e){return e.readonly},jF=function(e){e.parser.addAttributeFilter("contenteditable",(function(t){PF(e)&&Z(t,(function(e){e.attr(kF,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(kF,(function(t){PF(e)&&Z(t,(function(e){e.attr("contenteditable",e.attr(kF))}))})),e.serializer.addTempAttr(kF)},LF=function(e){e.serializer?jF(e):e.on("PreInit",(function(){jF(e)}))},MF=function(e){return"click"===e.type},IF=function(e,t){var n=function(t){return Bn(t,wn.fromDom(e.getBody()))};return Ai(t,"a",n).bind((function(e){return wo(e,"href")}))},FF=function(e,t){if(MF(t)&&!Zg.metaKeyPressed(t)){var n=wn.fromDom(t.target);IF(e,n).each((function(n){if(t.preventDefault(),/^#/.test(n)){var r=e.dom.select(n+',[name="'+ut(n,"#")+'"]');r.length&&e.selection.scrollIntoView(r[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")}))}},VF=function(e){e.on("ShowCaret",(function(t){PF(e)&&t.preventDefault()})),e.on("ObjectSelected",(function(t){PF(e)&&t.preventDefault()}))},UF=pn.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"," "),qF=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||I}return e.isNative=function(e){return!!UF[e.toLowerCase()]},e.prototype.fire=function(e,t){var n=e.toLowerCase(),r=Ku(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var o=this.bindings[n];if(o)for(var i=0,a=o.length;i<a;i++){var u=o[i];if(!u.removed){if(u.once&&this.off(n,u.func),r.isImmediatePropagationStopped())return r;if(!1===u.func.call(this.scope,r))return r.preventDefault(),r}}return r},e.prototype.on=function(e,t,n,r){if(!1===t&&(t=I),t){var o={func:t,removed:!1};r&&pn.extend(o,r);var i=e.toLowerCase().split(" "),a=i.length;while(a--){var u=i[a],s=this.bindings[u];s||(s=[],this.toggleEvent(u,!0)),s=n?We([o],s,!0):We(We([],s,!0),[o],!1),this.bindings[u]=s}}return this},e.prototype.off=function(e,t){var n=this;if(e){var r=e.toLowerCase().split(" "),o=r.length;while(o--){var i=r[o],a=this.bindings[i];if(!i)return _e(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;if(a){if(t){var u=te(a,(function(e){return e.func===t}));a=u.fail,this.bindings[i]=a,Z(u.pass,(function(e){e.removed=!0}))}else a.length=0;a.length||(this.toggleEvent(e,!1),delete this.bindings[i])}}}else _e(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),zF=function(e){return e._eventDispatcher||(e._eventDispatcher=new qF({scope:e,toggleEvent:function(t,n){qF.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},HF={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var o=zF(r).fire(e,t);if(!1!==n&&r.parent){var i=r.parent();while(i&&!o.isPropagationStopped())i.fire(e,o,!1),i=i.parent()}return o},on:function(e,t,n){return zF(this).on(e,t,n)},off:function(e,t){return zF(this).off(e,t)},once:function(e,t){return zF(this).once(e,t)},hasEventListeners:function(e){return zF(this).has(e)}},$F=Fc.DOM,WF=function(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=eh(e);return n?(e.eventRoot||(e.eventRoot=$F.select(n)[0]),e.eventRoot):e.getBody()},KF=function(e){return!e.hidden&&!PF(e)},QF=function(e,t,n){KF(e)?e.fire(t,n):PF(e)&&FF(e,n)},GF=function(e,t){var n;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed){var r=WF(e,t);if(eh(e)){if(XD||(XD={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||XD&&(_e(XD,(function(t,n){e.dom.unbind(WF(e,n))})),XD=null)}))),XD[t])return;n=function(n){var r=n.target,o=e.editorManager.get(),i=o.length;while(i--){var a=o[i].getBody();(a===r||$F.isChildOf(r,a))&&QF(o[i],t,n)}},XD[t]=n,$F.bind(r,t,n)}else n=function(n){QF(e,t,n)},$F.bind(r,t,n),e.delegates[t]=n}},YF=He(He({},HF),{bindPendingEventDelegates:function(){var e=this;pn.each(e._pendingNativeEvents,(function(t){GF(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?GF(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(WF(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(_e(e.delegates,(function(t,n){e.dom.unbind(WF(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()))}}),JF=["design","readonly"],XF=function(e,t,n,r){var o=n[t.get()],i=n[r];try{i.activate()}catch(pU){return void console.error("problem while activating editor mode "+r+":",pU)}o.deactivate(),o.editorReadOnly!==i.editorReadOnly&&BF(e,i.editorReadOnly),t.set(r),zg(e,r)},ZF=function(e,t,n,r){if(r!==n.get()){if(!De(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?XF(e,n,t,r):e.on("init",(function(){return XF(e,n,t,r)}))}},eV=function(e,t,n){var r;if(Y(JF,t))throw new Error("Cannot override default mode "+t);return He(He({},e),(r={},r[t]=He(He({},n),{deactivate:function(){try{n.deactivate()}catch(pU){console.error("problem while deactivating editor mode "+t+":",pU)}}}),r))},tV=function(e){var t=Qc("design"),n=Qc({design:{activate:O,deactivate:O,editorReadOnly:!1},readonly:{activate:O,deactivate:O,editorReadOnly:!0}});return LF(e),VF(e),{isReadOnly:function(){return PF(e)},set:function(r){return ZF(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(eV(n.get(),e,t))}}},nV=pn.each,rV=pn.explode,oV={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},iV=pn.makeMap("alt,ctrl,shift,meta,access"),aV=function(e){var t,n={};nV(rV(e.toLowerCase(),"+"),(function(e){e in iV?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=oV[e]||e.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(t in iV)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,en.mac?n.ctrl=!0:n.shift=!0),n.meta&&(en.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},uV=function(){function e(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()||(nV(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()))}))}return e.prototype.add=function(e,t,n,r){var o=this,i=o.normalizeCommandFunc(n);return nV(rV(pn.trim(e)),(function(e){var n=o.createShortcut(e,t,i,r);o.shortcuts[n.id]=n})),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"===typeof n?function(){t.editor.execCommand(n,!1,null)}:pn.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},e.prototype.createShortcut=function(e,t,n,r){var o=pn.map(rV(e,">"),aV);return o[o.length-1]=pn.extend(o[o.length-1],{func:n,scope:r||this.editor}),pn.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.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))))},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),sV=function(){var e={},t={},n={},r={},o={},i={},a={},u=function(e,t){return function(n,r){return e[n.toLowerCase()]=He(He({},r),{type:t})}},s=function(e,t){return r[e.toLowerCase()]=t};return{addButton:u(e,"button"),addGroupToolbarButton:u(e,"grouptoolbarbutton"),addToggleButton:u(e,"togglebutton"),addMenuButton:u(e,"menubutton"),addSplitButton:u(e,"splitbutton"),addMenuItem:u(t,"menuitem"),addNestedMenuItem:u(t,"nestedmenuitem"),addToggleMenuItem:u(t,"togglemenuitem"),addAutocompleter:u(n,"autocompleter"),addContextMenu:u(o,"contextmenu"),addContextToolbar:u(i,"contexttoolbar"),addContextForm:u(i,"contextform"),addSidebar:u(a,"sidebar"),addIcon:s,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:o,contextToolbars:i,sidebars:a}}}},cV=function(){var e=sV();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},lV=Fc.DOM,fV=pn.extend,dV=pn.each,hV=pn.resolve,pV=en.ie,mV=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,fV(this,YF),this.settings=uT(this,e,this.documentBaseUrl,n.defaultSettings,t),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&&(Kc.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Fc.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),sl.languageLoad=this.settings.language_load,sl.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new Iy(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new uV(this),this.editorCommands=new SF(this),this.settings.cache_suffix&&(en.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:cV(),styleSheetLoader:void 0,show:O,hide:O,enable:O,disable:O,isDisabled:I};var o=this,i=tV(o);this.mode=i,this.setMode=i.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Nc.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return e.prototype.render=function(){XI(this)},e.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},e.prototype.hasFocus=function(){return ly(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o=this,i=o.settings[e];if(i)return o.callbackLookup&&(r=o.callbackLookup[e])&&(i=r.func,r=r.scope),"string"===typeof i&&(r=i.replace(/\.\w+$/,""),r=r?hV(r):0,i=hV(i),o.callbackLookup=o.callbackLookup||{},o.callbackLookup[e]={func:i,scope:r}),i.apply(r||o,t)},e.prototype.translate=function(e){return ul.translate(e)},e.prototype.getParam=function(e,t,n){return fT(this,e,t,n)},e.prototype.hasPlugin=function(e,t){var n=Y(xh(this).split(/[ ,]/),e);return!!n&&(!t||void 0!==AT.get(e))},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(lV.show(e.getContainer()),lV.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(pV&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(lV.hide(e.getContainer()),lV.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this,r=n.getElement();if(n.removed)return"";if(r){e=e||{},e.load=!0;var o=Xr(r)?r.value:r.innerHTML;return t=n.setContent(o,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,t}},e.prototype.save=function(e){var t,n,r=this,o=r.getElement();if(o&&r.initialized&&!r.removed)return e=e||{},e.save=!0,e.element=o,t=e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Xr(o)?o.value=t:(!e.is_removing&&r.inline||(o.innerHTML=t),(n=lV.getParent(r.id,"form"))&&dV(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=o=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return xA(this,e,t)},e.prototype.getContent=function(e){return wA(this,e)},e.prototype.insertContent=function(e,t){t&&(e=fV({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?xA(this,this.startContent,{format:"raw"}):xA(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){var e=this;return e.container||(e.container=lV.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=lV.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e,t=this;return t.contentWindow||(e=t.iframeElement,e&&(t.contentWindow=e.contentWindow)),t.contentWindow},e.prototype.getDoc=function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this,o=r.settings;return o.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!o.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:o.relative_urls?r.documentBaseURI.toRelative(e):(e=r.documentBaseURI.toAbsolute(e,o.remove_script_host),e)},e.prototype.addVisual=function(e){ZI(this,e)},e.prototype.remove=function(){OA(this)},e.prototype.destroy=function(e){AA(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.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")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),gV=Fc.DOM,vV=pn.explode,bV=pn.each,yV=pn.extend,wV=0,xV=!1,_V=[],CV=[],SV=function(e){return"length"!==e},kV=function(e){var t=e.type;bV(RV.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e);break}}))},EV=function(e){e!==xV&&(e?Nc(window).on("resize scroll",kV):Nc(window).off("resize scroll",kV),xV=e)},OV=function(e){var t=CV;delete _V[e.id];for(var n=0;n<_V.length;n++)if(_V[n]===e){_V.splice(n,1);break}return CV=ne(CV,(function(t){return e!==t})),RV.activeEditor===e&&(RV.activeEditor=CV.length>0?CV[0]:null),RV.focusedEditor===e&&(RV.focusedEditor=null),t.length!==CV.length},AV=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(OV(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},TV="CSS1Compat"!==document.compatMode,RV=He(He({},HF),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Nc,majorVersion:"5",minorVersion:"10.3",releaseDate:"2022-02-09",editors:_V,i18n:ul,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,n=this,r="";t=Iy.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var o=window.tinymce||window.tinyMCEPreInit;if(o)e=o.base||o.baseURL,r=o.suffix;else{for(var i=document.getElementsByTagName("script"),a=0;a<i.length;a++){var u=i[a].src||"";if(""!==u){var s=u.substring(u.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(u)){-1!==s.indexOf(".min")&&(r=".min"),e=u.substring(0,u.lastIndexOf("/"));break}}}if(!e&&document.currentScript){u=document.currentScript.src;-1!==u.indexOf(".min")&&(r=".min"),e=u.substring(0,u.lastIndexOf("/"))}}n.baseURL=new Iy(t).toAbsolute(e),n.documentBaseURL=t,n.baseURI=new Iy(n.baseURL),n.suffix=r,ey(n)},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;void 0!==r&&_e(r,(function(e,t){sl.PluginManager.urls[t]=e}))},init:function(e){var t,n=this,r=pn.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"," "),o=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},i=function(e){var t=e.id;return t||(t=Ne(e,"name").filter((function(e){return!gV.get(e)})).getOrThunk(gV.uniqueId),e.setAttribute("id",t)),t},a=function(t){var r=e[t];if(r)return r.apply(n,[])},u=function(e,t){return t.constructor===RegExp?t.test(e.className):gV.hasClass(e,t)},s=function(e){var t=[];if(en.browser.isIE()&&en.browser.version.major<11)return UT("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(TV)return UT("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return bV(e.types,(function(e){t=t.concat(gV.select(e.selector))})),t;if(e.selector)return gV.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var n=e.elements||"";n.length>0&&bV(vV(n),(function(e){var n=gV.get(e);n?t.push(n):bV(document.forms,(function(n){bV(n.elements,(function(n){n.name===e&&(e="mce_editor_"+wV++,gV.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":bV(gV.select("textarea"),(function(n){e.editor_deselector&&u(n,e.editor_deselector)||e.editor_selector&&!u(n,e.editor_selector)||t.push(n)}));break}return t},c=function(e){t=e},l=function(){var t,r=0,u=[],f=function(e,o,i){var a=new mV(e,o,n);u.push(a),a.on("init",(function(){++r===t.length&&c(u)})),a.targetElm=a.targetElm||i,a.render()};gV.unbind(window,"ready",l),a("onpageload"),t=Nc.unique(s(e)),e.types?bV(e.types,(function(n){pn.each(t,(function(t){return!gV.is(t,n.selector)||(f(i(t),yV({},e,n),t),!1)}))})):(pn.each(t,(function(e){AV(n.get(e.id))})),t=pn.grep(t,(function(e){return!n.get(e.id)})),0===t.length?c([]):bV(t,(function(t){o(e,t)?UT("Could not initialize inline editor on invalid inline target element",t):f(i(t),e,t)})))};return n.settings=e,gV.bind(window,"ready",l),new Ti((function(e){t?e(t):c=function(t){e(t)}}))},get:function(e){return 0===arguments.length?CV.slice(0):v(e)?ae(CV,(function(t){return t.id===e})).getOr(null):E(e)&&CV[e]?CV[e]:null},add:function(e){var t=this,n=_V[e.id];return n===e||(null===t.get(e.id)&&(SV(e.id)&&(_V[e.id]=e),_V.push(e),CV.push(e)),EV(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),ZD||(ZD=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",ZD))),e},createEditor:function(e,t){return this.add(new mV(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!v(e))return n=e,w(r.get(n.id))?null:(OV(n)&&r.fire("RemoveEditor",{editor:n}),0===CV.length&&window.removeEventListener("beforeunload",ZD),n.remove(),EV(CV.length>0),n);bV(gV.select(e),(function(e){n=r.get(e.id),n&&r.remove(n)}))}else for(t=CV.length-1;t>=0;t--)r.remove(CV[t])},execCommand:function(e,t,n){var r=this,o=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new mV(n,r.settings,r).render(),!0;case"mceRemoveEditor":return o&&o.remove(),!0;case"mceToggleEditor":return o?(o.isHidden()?o.show():o.hide(),!0):(r.execCommand("mceAddEditor",!1,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:function(){bV(CV,(function(e){e.save()}))},addI18n:function(e,t){ul.add(e,t)},translate:function(e){return ul.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 Iy(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new Iy(this.baseURL)}});RV.setup();var NV,DV,BV=Math.min,PV=Math.max,jV=Math.round,LV=function(e,t,n){var r=t.x,o=t.y,i=e.w,a=e.h,u=t.w,s=t.h,c=(n||"").split("");return"b"===c[0]&&(o+=s),"r"===c[1]&&(r+=u),"c"===c[0]&&(o+=jV(s/2)),"c"===c[1]&&(r+=jV(u/2)),"b"===c[3]&&(o-=a),"r"===c[4]&&(r-=i),"c"===c[3]&&(o-=jV(a/2)),"c"===c[4]&&(r-=jV(i/2)),UV(r,o,i,a)},MV=function(e,t,n,r){var o,i;for(i=0;i<r.length;i++)if(o=LV(e,t,r[i]),o.x>=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},IV=function(e,t,n){return UV(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},FV=function(e,t){var n=PV(e.x,t.x),r=PV(e.y,t.y),o=BV(e.x+e.w,t.x+t.w),i=BV(e.y+e.h,t.y+t.h);return o-n<0||i-r<0?null:UV(n,r,o-n,i-r)},VV=function(e,t,n){var r=e.x,o=e.y,i=e.x+e.w,a=e.y+e.h,u=t.x+t.w,s=t.y+t.h,c=PV(0,t.x-r),l=PV(0,t.y-o),f=PV(0,i-u),d=PV(0,a-s);return r+=c,o+=l,n&&(i+=c,a+=l,r-=f,o-=d),i-=f,a-=d,UV(r,o,i-r,a-o)},UV=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},qV=function(e){return UV(e.left,e.top,e.width,e.height)},zV={inflate:IV,relativePosition:LV,findBestRelativePosition:MV,intersect:FV,clamp:VV,create:UV,fromClientRect:qV},HV=function(e,t,n){void 0===n&&(n=1e3);var r=!1,o=null,i=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,null!==o&&(clearTimeout(o),o=null),e.apply(null,t))}},a=i(e),u=i(t),s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r||null!==o||(o=setTimeout((function(){return u.apply(null,e)}),n))};return{start:s,resolve:a,reject:u}},$V=function(){var e={},t={},n=function(n,r){var o='Script at URL "'+r+'" failed to load',i='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==e[n])return e[n];var a=new Ti((function(e,a){var u=HV(e,a);t[n]=u.resolve,Kc.ScriptLoader.loadScript(r,(function(){return u.start(i)}),(function(){return u.reject(o)}))}));return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=Ti.resolve(r)};return{load:n,add:r}},WV=$V(),KV=pn.each,QV=pn.extend,GV=function(){};GV.extend=NV=function(e){var t=this,n=t.prototype,r=function(){var e,t,n,r=this;if(!DV&&(r.init&&r.init.apply(r,arguments),t=r.Mixins,t)){e=t.length;while(e--)n=t[e],n.init&&n.init.apply(r,arguments)}},o=function(){return this},i=function(e,t){return function(){var r=this,o=r._super;r._super=n[e];var i=t.apply(r,arguments);return r._super=o,i}};DV=!0;var a=new t;return DV=!1,e.Mixins&&(KV(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),n.Mixins&&(e.Mixins=n.Mixins.concat(e.Mixins))),e.Methods&&KV(e.Methods.split(","),(function(t){e[t]=o})),e.Properties&&KV(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}})),e.Statics&&KV(e.Statics,(function(e,t){r[t]=e})),e.Defaults&&n.Defaults&&(e.Defaults=QV({},n.Defaults,e.Defaults)),_e(e,(function(e,t){"function"===typeof e&&n[t]?a[t]=i(t,e):a[t]=e})),r.prototype=a,r.constructor=r,r.extend=NV,r};var YV,JV=Math.min,XV=Math.max,ZV=Math.round,eU=function(e){var t={},n=0,r=0,o=0,i=function(e,t,n){var r,o,i;r=0,o=0,i=0,e/=255,t/=255,n/=255;var a=JV(e,JV(t,n)),u=XV(e,XV(t,n));if(a===u)return i=a,{h:0,s:0,v:100*i};var s=e===a?t-n:n===a?e-t:n-e;return r=e===a?3:n===a?1:5,r=60*(r-s/(u-a)),o=(u-a)/u,i=u,{h:ZV(r),s:ZV(100*o),v:ZV(100*i)}},a=function(e,t,i){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,i=parseInt(i,10)/100,t=XV(0,JV(t,1)),i=XV(0,JV(i,1)),0!==t){var a=e/60,u=i*t,s=u*(1-Math.abs(a%2-1)),c=i-u;switch(Math.floor(a)){case 0:n=u,r=s,o=0;break;case 1:n=s,r=u,o=0;break;case 2:n=0,r=u,o=s;break;case 3:n=0,r=s,o=u;break;case 4:n=s,r=0,o=u;break;case 5:n=u,r=0,o=s;break;default:n=r=o=0}n=ZV(255*(n+c)),r=ZV(255*(r+c)),o=ZV(255*(o+c))}else n=r=o=ZV(255*i)},u=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(o)},s=function(){return{r:n,g:r,b:o}},c=function(){return i(n,r,o)},l=function(e){var i;return"object"===typeof e?"r"in e?(n=e.r,r=e.g,o=e.b):"v"in e&&a(e.h,e.s,e.v):(i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10)):(i=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16)):(i=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(i[1]+i[1],16),r=parseInt(i[2]+i[2],16),o=parseInt(i[3]+i[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,o=o<0?0:o>255?255:o,t};return e&&l(e),t.toRgb=s,t.toHsv=c,t.toHex=u,t.parse=l,t},tU=function(e){var t=JSON.stringify(e);return v(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},nU={serialize:tU,parse:function(e){try{return JSON.parse(e)}catch(t){}}},rU={callbacks:{},count:0,send:function(e){var t=this,n=Fc.DOM,r=void 0!==e.count?e.count:t.count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},oU=He(He({},HF),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||n++>1e4?(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,n>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):Li.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||"",oU.fire("beforeInitialize",{settings:e}),t=new XMLHttpRequest,t.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&&pn.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t=oU.fire("beforeSend",{xhr:t,settings:e}).xhr,t.send(e.data),!e.async)return r();Li.setTimeout(r,10)}}),iU=pn.extend,aU=function(){function e(e){this.settings=iU({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=iU(this.settings,e);r.success=function(e,o){e=nU.parse(e),"undefined"===typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,o):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=nU.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",oU.send(r)},e}(),uU=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter((function(e){return e===n})),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{var sU="__storage_test__";YV=window.localStorage,YV.setItem(sU,sU),YV.removeItem(sU)}catch(pU){YV=uU()}var cU=YV,lU={geom:{Rect:zV},util:{Promise:Ti,Delay:Li,Tools:pn,VK:Zg,URI:Iy,Class:GV,EventDispatcher:qF,Observable:HF,I18n:ul,XHR:oU,JSON:nU,JSONRequest:aU,JSONP:rU,LocalStorage:cU,Color:eU,ImageUploader:tR},dom:{EventUtils:ts,Sizzle:Fs,DomQuery:Nc,TreeWalker:Vi,TextSeeker:Kl,DOMUtils:Fc,ScriptLoader:Kc,RangeUtils:_v,Serializer:bA,StyleSheetLoader:Mi,ControlSelection:tv,BookmarkManager:Lg,Selection:OO,Event:ts.Event},html:{Styles:Uu,Entities:Au,Node:Oy,Schema:Fu,SaxParser:$y,DomParser:iA,Writer:nw,Serializer:rw},Env:en,AddOnManager:sl,Annotator:jg,Formatter:hR,UndoManager:vR,EditorCommands:SF,WindowManager:NT,NotificationManager:OT,EditorObservable:YF,Shortcuts:uV,Editor:mV,FocusManager:Vb,EditorManager:RV,DOM:Fc.DOM,ScriptLoader:Kc.ScriptLoader,PluginManager:AT,ThemeManager:TT,IconManager:hT,Resource:WV,trim:pn.trim,isArray:pn.isArray,is:pn.is,toArray:pn.toArray,makeMap:pn.makeMap,each:pn.each,map:pn.map,grep:pn.grep,inArray:pn.inArray,extend:pn.extend,create:pn.create,walk:pn.walk,createNS:pn.createNS,resolve:pn.resolve,explode:pn.explode,_addCacheSuffix:pn._addCacheSuffix,isOpera:en.opera,isWebKit:en.webkit,isIE:en.ie,isGecko:en.gecko,isMac:en.mac},fU=pn.extend(RV,lU),dU=function(t){try{e.exports=t}catch(n){}},hU=function(e){window.tinymce=e,window.tinyMCE=e};hU(fU),dU(fU)})()}).call(this,n("c8ba"))},e5ff:function(e,t,n){},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e72f:function(e,t,n){"use strict";n("c00b")},e766:function(e,t,n){},e9c1:function(e,t,n){},ed9a: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",{staticClass:"menu-management-container"},[n("vue-tinymce",{attrs:{setting:e.setting},model:{value:e.content1,callback:function(t){e.content1=t},expression:"content1"}})],1)},o=[],i=(n("a9e3"),n("2962")),a={name:"TinyMce",props:{content:{type:String,default:""},tinyHeight:{type:Number,default:300}},data:function(){return{content1:"",setting:{branding:!1,statusbar:!1,elementpath:!1,paste_data_images:!0,menubar:!0,language_url:"/tinymce/langs/zh_CN.js",toolbar:"undo redo | fullscreen | formatselect alignleft aligncenter alignright alignjustify | link unlink| numlist bullist | image table | fontselect fontsizeselect forecolor backcolor | bold italic underline strikethrough charmap | indent outdent | superscript subscript | removeformat | pagebreak | print preview | code template |insertdatetime|",toolbar_drawer:"sliding",quickbars_selection_toolbar:"removeformat | bold italic underline strikethrough | fontsizeselect forecolor backcolor",language:"zh_CN",plugins:"advlist autolink link image table lists media charmap print preview code pagebreak insertdatetime template paste",height:this.tinyHeight,font_formats:"宋体=宋体;黑体=黑体;仿宋=仿宋;微软雅黑=微软雅黑;楷体-GB2312=楷体-GB2312;仿宋_GB2312=仿宋_GB2312;隶书=隶书;",images_upload_handler:function(e,t,n){if(e.blob().size/1024/1024>2)n("上传失败,图片大小请控制在 2M 以内");else{var r=new FormData;r.append("file",e.blob()),r.append("sourceTable","harmonize_knowledge_article"),r.append("file_type","img"),r.append("type","course_thumb"),console.log(r,"params"),Object(i["uploadImg"])(r).then((function(e){console.log(e,"lllll");var n=e.data.url;t(n)}))}}}}},watch:{content1:function(){this.$emit("childByValue",this.content1)},content:function(){console.log(this.content,"this.content----------------------5"),this.content?this.content1=this.content:this.content1=""}},created:function(){console.log(this.content,"pppppp"),this.content?this.content1=this.content:this.content1=""},methods:{setup:function(e){console.log(e)},save:function(){console.log("ppppp"),this.$emit("childByValue",this.content)}}},u=a,s=(n("71cb"),n("2877")),c=Object(s["a"])(u,r,o,!1,null,"90b11552",null);t["default"]=c.exports},eddd:function(e,t,n){"use strict";n("9072")},ef9b:function(e,t,n){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},f07b:function(e,t,n){"use strict";n("abd2")},f121:function(e,t,n){var r=n("ded3").default,o=n("6fe3"),i=n("d4a5"),a=n("448d"),u=n("197e");e.exports=r(r(r(r({},o),i),a),u)},f312:function(e,t,n){"use strict";n.r(t);var r=function(){var e,t=this,n=t.$createElement,r=t._self._c||n;return r("div",{staticClass:"vab-layout-column",class:{fixed:t.fixedHeader,"no-tabs-bar":!t.showTabs}},[r("vab-column-bar"),r("div",{staticClass:"vab-main",class:(e={},e["vab-main-"+t.theme.columnStyle]=!0,e["is-collapse-main"]=t.collapse,e)},[r("div",{staticClass:"vab-layout-header",class:{"fixed-header":t.fixedHeader}},[r("vab-nav"),r("vab-tabs",{directives:[{name:"show",rawName:"v-show",value:t.showTabs,expression:"showTabs"}]})],1),r("vab-app-main")],1)],1)},o=[],i=n("5530"),a=n("2f62"),u={name:"VabLayoutColumn",props:{collapse:{type:Boolean,default:function(){return!1}},fixedHeader:{type:Boolean,default:function(){return!0}},showTabs:{type:Boolean,default:function(){return!0}}},computed:Object(i["a"])({},Object(a["c"])({theme:"settings/theme"}))},s=u,c=(n("3132"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"96ab005e",null);t["default"]=l.exports},f318:function(e,t,n){},f69c:function(e,t,n){"use strict";n("77ab")},f6b4:function(e,t,n){"use strict";var r=n("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},f893:function(e,t,n){e.exports={default:n("8119"),__esModule:!0}},f8ab:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));n("a15b");var r=n("f121");function o(e){var t=[];return e&&t.push(e),r["title"]&&t.push(r["title"]),r["titleReverse"]&&(t=t.reverse()),t.join(r["titleSeparator"])}},f9eb:function(e,t,n){"use strict";n.r(t);var r=function(){var e,t=this,n=t.$createElement,r=t._self._c||n;return r("el-scrollbar",{staticClass:"vab-column-bar-container",class:(e={"is-collapse":t.collapse},e["vab-column-bar-container-"+t.theme.columnStyle]=!0,e)},[r("vab-logo"),r("el-tabs",{attrs:{"tab-position":"left"},on:{"tab-click":t.handleTabClick},model:{value:t.extra.first,callback:function(e){t.$set(t.extra,"first",e)},expression:"extra.first"}},t._l(t.handleRoutes,(function(e){var n;return r("el-tab-pane",{key:e.name,attrs:{name:e.name}},[r("template",{slot:"label"},[r("div",{staticClass:"vab-column-grid",class:(n={},n["vab-column-grid-"+t.theme.columnStyle]=!0,n),attrs:{title:e.meta.title}},[r("div",[e.meta.icon?r("vab-icon",{attrs:{icon:e.meta.icon,"is-custom-svg":e.meta.isCustomSvg}}):t._e(),r("span",[t._v(" "+t._s(e.meta.title)+" ")])],1)])])],2)})),1),r("el-menu",{attrs:{"background-color":t.variables["column-second-menu-background"],"default-active":t.activeMenu,"default-openeds":t.defaultOpeneds,mode:"vertical","unique-opened":t.uniqueOpened}},[r("el-divider",[t._v(" "+t._s(t.handleGroupTitle)+" ")]),t._l(t.handlePartialRoutes,(function(e){return[e.meta&&!e.meta.hidden?r("vab-menu",{key:e.fullPath,attrs:{item:e}}):t._e()]}))],2)],1)},o=[],i=n("5530"),a=(n("4de4"),n("d3b7"),n("7db0"),n("b0c0"),n("73e1")),u=n.n(a),s=n("2f62"),c=n("f121"),l=n("9f2e"),f={name:"VabColumnBar",data:function(){return{activeMenu:"",groupTitle:"",defaultOpeneds:c["defaultOpeneds"],uniqueOpened:c["uniqueOpened"],variables:u.a}},computed:Object(i["a"])(Object(i["a"])({},Object(s["c"])({collapse:"settings/collapse",routes:"routes/routes",theme:"settings/theme",extra:"settings/extra"})),{},{handleRoutes:function(){return this.routes.filter((function(e){return e.meta&&!0!==e.meta.hidden}))},handleActiveMenu:function(){var e=this;return this.routes.find((function(t){return t.name===e.extra.first}))},handlePartialRoutes:function(){var e=this.handleActiveMenu;return e?e.children:[]},handleGroupTitle:function(){var e=this.handleActiveMenu;return e?e.meta.title:""}}),watch:{$route:{handler:function(e){this.activeMenu=Object(l["handleActivePath"])(e);var t=e.matched[0].name;this.extra.first!==t&&(this.extra.first=t,this.handleTabClick(!0))},immediate:!0}},methods:{handleTabClick:function(e){!0!==e&&c["openFirstMenu"]&&(this.$router.push(this.handleActiveMenu),this.$store.dispatch("settings/openSideBar"))}}},d=f,h=(n("2edb"),n("2877")),p=Object(h["a"])(d,r,o,!1,null,"0faaf8b0",null);t["default"]=p.exports},faba:function(e,t,n){"use strict";n("cb11")},fe19:function(e,t,n){var r={"./green.scss":"560f","./ocean.scss":"5df5","./white.scss":"64fa"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="fe19"}});