/*
    Elfsight Instagram Feed
    Version: 3.6.2
    Release date: Fri Nov 09 2018

    https://elfsight.com

    Copyright (c) 2018 Elfsight, LLC. ALL RIGHTS RESERVED
*/

!function(e){function r(e,t,o,i,n){this._listener=t,this._isOnce=o,this.context=i,this._signal=e,this._priority=n||0}function i(e,t){if("function"!=typeof e)throw Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}function t(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){t.prototype.dispatch.apply(e,arguments)}}t.prototype={VERSION:"1.0.0",memorize:!(r.prototype={active:!0,params:null,execute:function(e){var t;return this.active&&this._listener&&(e=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,e),this._isOnce&&this.detach()),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}}),_shouldPropagate:!0,active:!0,_registerListener:function(e,t,o,i){var n=this._indexOfListener(e,o);if(-1!==n){if((e=this._bindings[n]).isOnce()!==t)throw Error("You cannot add"+(t?"":"Once")+"() then add"+(t?"Once":"")+"() the same listener without removing the relationship first.")}else e=new r(this,e,t,o,i),this._addBinding(e);return this.memorize&&this._prevParams&&e.execute(this._prevParams),e},_addBinding:function(e){for(var t=this._bindings.length;--t,this._bindings[t]&&e._priority<=this._bindings[t]._priority;);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var o,i=this._bindings.length;i--;)if((o=this._bindings[i])._listener===e&&o.context===t)return i;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,o){return i(e,"add"),this._registerListener(e,!1,t,o)},addOnce:function(e,t,o){return i(e,"addOnce"),this._registerListener(e,!0,t,o)},remove:function(e,t){i(e,"remove");var o=this._indexOfListener(e,t);return-1!==o&&(this._bindings[o]._destroy(),this._bindings.splice(o,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(e){if(this.active){var t,o=Array.prototype.slice.call(arguments),i=this._bindings.length;if(this.memorize&&(this._prevParams=o),i)for(t=this._bindings.slice(),this._shouldPropagate=!0;t[--i]&&this._shouldPropagate&&!1!==t[i].execute(o););}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}};var o=t;o.Signal=t,"function"==typeof define&&define.amd?define(function(){return o}):"undefined"!=typeof module&&module.exports?module.exports=o:e.signals=o}(this),function(){var e=function(s){function a(e,t){if(e.indexOf)return e.indexOf(t);for(var o=e.length;o--;)if(e[o]===t)return o;return-1}function t(e,t){var o=a(e,t);-1!==o&&e.splice(o,1)}function o(e,t){return"[object "+t+"]"===Object.prototype.toString.call(e)}function l(e){return o(e,"RegExp")}function c(e){return o(e,"Array")}function d(e){return"function"==typeof e}function u(e){return null===e||"null"===e?null:"true"===e||"false"!==e&&(e===r||"undefined"===e?r:""===e||isNaN(e)?e:parseFloat(e))}function h(e,t){for(var o,i,n,r,s=(e||"").replace("?","").split("&"),a=-1,l={};i=s[++a];)o=i.indexOf("="),r=i.substring(0,o),n=decodeURIComponent(i.substring(o+1)),!1!==t&&(n=u(n)),r in l?c(l[r])?l[r].push(n):l[r]=[l[r],n]:l[r]=n;return l}function e(){this.bypassed=new s.Signal,this.routed=new s.Signal,this._routes=[],this._prevRoutes=[],this._piped=[],this.resetState()}function n(e,t,o,i){var n=l(e),r=i.patternLexer;this._router=i,this._pattern=e,this._paramsIds=n?null:r.getParamIds(e),this._optionalParamsIds=n?null:r.getOptionalParamsIds(e),this._matchRegexp=n?e:r.compilePattern(e,i.ignoreCase),this.matched=new s.Signal,this.switched=new s.Signal,t&&this.matched.add(t),this._priority=o||0}var i,p,r;return p=""===/t(.+)?/.exec("t")[1],e.prototype={greedy:!1,greedyEnabled:!0,ignoreCase:!0,ignoreState:!1,shouldTypecast:!1,normalizeFn:null,resetState:function(){this._prevRoutes.length=0,this._prevMatchedRequest=null,this._prevBypassedRequest=null},create:function(){return new e},addRoute:function(e,t,o){var i=new n(e,t,o,this);return this._sortedInsert(i),i},removeRoute:function(e){t(this._routes,e),e._destroy()},removeAllRoutes:function(){for(var e=this.getNumRoutes();e--;)this._routes[e]._destroy();this._routes.length=0},parse:function(e,t){if(e=e||"",t=t||[],this.ignoreState||e!==this._prevMatchedRequest&&e!==this._prevBypassedRequest){var o,i=this._getMatchedRoutes(e),n=0,r=i.length;if(r)for(this._prevMatchedRequest=e,this._notifyPrevRoutes(i,e),this._prevRoutes=i;n<r;)(o=i[n]).route.matched.dispatch.apply(o.route.matched,t.concat(o.params)),o.isFirst=!n,this.routed.dispatch.apply(this.routed,t.concat([e,o])),n+=1;else this._prevBypassedRequest=e,this.bypassed.dispatch.apply(this.bypassed,t.concat([e]));this._pipeParse(e,t)}},_notifyPrevRoutes:function(e,t){for(var o,i=0;o=this._prevRoutes[i++];)o.route.switched&&this._didSwitch(o.route,e)&&o.route.switched.dispatch(t)},_didSwitch:function(e,t){for(var o,i=0;o=t[i++];)if(o.route===e)return!1;return!0},_pipeParse:function(e,t){for(var o,i=0;o=this._piped[i++];)o.parse(e,t)},getNumRoutes:function(){return this._routes.length},_sortedInsert:function(e){for(var t=this._routes,o=t.length;t[--o]&&e._priority<=t[o]._priority;);t.splice(o+1,0,e)},_getMatchedRoutes:function(e){for(var t,o=[],i=this._routes,n=i.length;(t=i[--n])&&((!o.length||this.greedy||t.greedy)&&t.match(e)&&o.push({route:t,params:t._getParamsArray(e)}),this.greedyEnabled||!o.length););return o},pipe:function(e){this._piped.push(e)},unpipe:function(e){t(this._piped,e)},toString:function(){return"[crossroads numRoutes:"+this.getNumRoutes()+"]"}},(i=new e).VERSION="0.12.2",i.NORM_AS_ARRAY=function(e,t){return[t.vals_]},i.NORM_AS_OBJECT=function(e,t){return[t]},n.prototype={greedy:!1,rules:void 0,match:function(e){return e=e||"",this._matchRegexp.test(e)&&this._validateParams(e)},_validateParams:function(e){var t,o=this.rules,i=this._getParamsObject(e);for(t in o)if("normalize_"!==t&&o.hasOwnProperty(t)&&!this._isValidParam(e,t,i))return!1;return!0},_isValidParam:function(e,t,o){var i=this.rules[t],n=o[t],r=!1,s=0===t.indexOf("?");return null==n&&this._optionalParamsIds&&-1!==a(this._optionalParamsIds,t)?r=!0:l(i)?(s&&(n=o[t+"_"]),r=i.test(n)):c(i)?(s&&(n=o[t+"_"]),r=this._isValidArrayRule(i,n)):d(i)&&(r=i(n,e,o)),r},_isValidArrayRule:function(e,t){if(!this._router.ignoreCase)return-1!==a(e,t);"string"==typeof t&&(t=t.toLowerCase());for(var o,i=e.length;i--;)if(("string"==typeof(o=e[i])?o.toLowerCase():o)===t)return!0;return!1},_getParamsObject:function(e){for(var t,o,i=this._router.shouldTypecast,n=this._router.patternLexer.getParamValues(e,this._matchRegexp,i),r={},s=n.length;s--;)o=n[s],this._paramsIds&&(0===(t=this._paramsIds[s]).indexOf("?")&&o&&(o=h(r[t+"_"]=o,i),n[s]=o),p&&""===o&&-1!==a(this._optionalParamsIds,t)&&(o=void 0,n[s]=o),r[t]=o),r[s]=o;return r.request_=i?u(e):e,r.vals_=n,r},_getParamsArray:function(e){var t=this.rules?this.rules.normalize_:null;return(t=t||this._router.normalizeFn)&&d(t)?t(e,this._getParamsObject(e)):this._getParamsObject(e).vals_},interpolate:function(e){var t=this._router.patternLexer.interpolate(this._pattern,e);if(!this._validateParams(t))throw new Error("Generated string doesn't validate against `Route.rules`.");return t},dispose:function(){this._router.removeRoute(this)},_destroy:function(){this.matched.dispose(),this.switched.dispose(),this.matched=this.switched=this._pattern=this._matchRegexp=null},toString:function(){return'[Route pattern:"'+this._pattern+'", numListeners:'+this.matched.getNumListeners()+"]"}},e.prototype.patternLexer=function(){function t(e,t){var o,i=[];for(e.lastIndex=0;o=e.exec(t);)i.push(o[1]);return i}function o(e,t,o){var i,n;for(n in l)l.hasOwnProperty(n)&&(i=l[n],e=e.replace(i[t],i[o]));return e}var i=/[\\.+*?\^$\[\](){}\/'#]/g,n=/^\/|\/$/g,r=/\/$/g,s=/(?:\{|:)([^}:]+)(?:\}|:)/g,l={OS:{rgx:/([:}]|\w(?=\/))\/?(:|(?:\{\?))/g,save:"$1{{id}}$2",res:"\\/?"},RS:{rgx:/([:}])\/?(\{)/g,save:"$1{{id}}$2",res:"\\/"},RQ:{rgx:/\{\?([^}]+)\}/g,res:"\\?([^#]+)"},OQ:{rgx:/:\?([^:]+):/g,res:"(?:\\?([^#]*))?"},OR:{rgx:/:([^:]+)\*:/g,res:"(.*)?"},RR:{rgx:/\{([^}]+)\*\}/g,res:"(.+)"},RP:{rgx:/\{([^}]+)\}/g,res:"([^\\/?]+)"},OP:{rgx:/:([^:]+):/g,res:"([^\\/?]+)?/?"}},a=1;return function(){var e,t;for(e in l)l.hasOwnProperty(e)&&((t=l[e]).id="__CR_"+e+"__",t.save="save"in t?t.save.replace("{{id}}",t.id):t.id,t.rRestore=new RegExp(t.id,"g"))}(),{strict:function(){a=2},loose:function(){a=1},legacy:function(){a=3},getParamIds:function(e){return t(s,e)},getOptionalParamsIds:function(e){return t(l.OP.rgx,e)},getParamValues:function(e,t,o){var i=t.exec(e);return i&&(i.shift(),o&&(i=function(e){for(var t=e.length,o=[];t--;)o[t]=u(e[t]);return o}(i))),i},compilePattern:function(e,t){return(e=e||"")&&(1===a?e=e.replace(n,""):3===a&&(e=e.replace(r,"")),e=o(e=(e=o(e,"rgx","save")).replace(i,"\\$&"),"rRestore","res"),1===a&&(e="\\/?"+e)),2!==a&&(e+="\\/?"),new RegExp("^"+e+"$",t?"i":"")},interpolate:function(e,a){if(a=a||{},"string"!=typeof e)throw new Error("Route pattern should be a string.");return l.OS.trail||(l.OS.trail=new RegExp("(?:"+l.OS.id+")+$")),e.replace(l.OS.rgx,l.OS.save).replace(s,function(e,t){var o;if(t="?"===t.substr(0,1)?t.substr(1):t,null!=a[t]){if("object"==typeof a[t]){var i,n=[];for(var r in a[t])if(c(i=a[t][r]))for(var s in i)"[]"==r.slice(-2)?n.push(encodeURI(r.slice(0,-2))+"[]="+encodeURI(i[s])):n.push(encodeURI(r+"="+i[s]));else n.push(encodeURI(r+"="+i));o="?"+n.join("&")}else o=String(a[t]);if(-1===e.indexOf("*")&&-1!==o.indexOf("/"))throw new Error('Invalid value "'+o+'" for segment "'+e+'".')}else{if(-1!==e.indexOf("{"))throw new Error("The segment "+e+" is required.");o=""}return o}).replace(l.OS.trail,"").replace(l.OS.rRestore,"/")}}}(),i};"function"==typeof define&&define.amd?define(["signals"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("signals")):window.crossroads=e(window.signals)}(),function(){var e=function(b){return function(i){var n,r,s,a,l,e=i.document,t=(i.history,b.Signal),o=/#(.*)$/,c=/(\?.*)|(\#.*)/,d=/^\#/,u="onhashchange"in i&&7!==e.documentMode;location.protocol;function h(e){return String(e||"").replace(/\W/g,"\\$&")}function p(e){if(!e)return"";var t=new RegExp("^"+h(n.prependHash)+"|"+h(n.appendHash)+"$","g");return e.replace(t,"")}function f(){var e=o.exec(n.getURL()),t=e&&e[1]||"";try{return n.raw?t:decodeURIComponent(t)}catch(e){return t}}function g(e,t){if(r!==e){var o=r;r=e,n.changed.dispatch(p(e),p(o))}}function m(e){var t=(e=Array.prototype.slice.call(arguments)).join(n.separator);return t=t?n.prependHash+t.replace(d,"")+n.appendHash:t}function v(e){return e=encodeURI(e)}return(n={VERSION:"1.2.0",raw:!(l=function(){var e=f();e!==r&&g(e)}),appendHash:"",prependHash:"/",separator:"/",changed:new t,stopped:new t,initialized:new t,init:function(){var e,t,o;a||(r=f(),u?(t="hashchange",o=l,(e=i).addEventListener?e.addEventListener(t,o,!1):e.attachEvent&&e.attachEvent("on"+t,o)):s=setInterval(l,25),a=!0,n.initialized.dispatch(p(r)))},stop:function(){var e,t,o;a&&(u?(t="hashchange",o=l,(e=i).removeEventListener?e.removeEventListener(t,o,!1):e.detachEvent&&e.detachEvent("on"+t,o)):(clearInterval(s),s=null),a=!1,n.stopped.dispatch(p(r)))},isActive:function(){return a},getURL:function(){return i.location.href},getBaseURL:function(){return n.getURL().replace(c,"")},setHash:function(e){(e=m.apply(null,arguments))!==r&&(g(e),e===r&&(n.raw||(e=v(e)),i.location.hash="#"+e))},replaceHash:function(e){(e=m.apply(null,arguments))!==r&&(g(e),e===r&&(n.raw||(e=v(e)),i.location.replace("#"+e)))},getHash:function(){return p(r)},getHashAsArray:function(){return n.getHash().split(n.separator)},dispose:function(){n.stop(),n.initialized.dispose(),n.stopped.dispose(),n.changed.dispose(),n=i.hasher=null},toString:function(){return'[hasher version="'+n.VERSION+'" hash="'+n.getHash()+'"]'}}).initialized.memorize=!0,n}(window)};"function"==typeof define&&define.amd?define(["signals"],e):"object"==typeof exports?module.exports=e(require("signals")):window.hasher=e(window.signals)}(),function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];function benchmark(e,t){log(e+","+((new Date).getTime()-t.getTime())+"ms")}function log(e){"undefined"!=typeof console&&void 0!==console.debug?console.log(e):alert(e)}function buildParserCache(e,t){if(e.config.debug)var o="";if(0!=e.tBodies.length){var i=e.tBodies[0].rows;if(i[0])for(var n=[],r=i[0].cells.length,s=0;s<r;s++){var a=!1;$.metadata&&$(t[s]).metadata()&&$(t[s]).metadata().sorter?a=getParserById($(t[s]).metadata().sorter):e.config.headers[s]&&e.config.headers[s].sorter&&(a=getParserById(e.config.headers[s].sorter)),a||(a=detectParserForColumn(e,i,-1,s)),e.config.debug&&(o+="column:"+s+" parser:"+a.id+"\n"),n.push(a)}return e.config.debug&&log(o),n}}function detectParserForColumn(e,t,o,i){for(var n=parsers.length,r=!1,s=!1,a=!0;""==s&&a;)t[++o]?(r=getNodeFromRowAndCellIndex(t,o,i),s=trimAndGetNodeText(e.config,r),e.config.debug&&log("Checking if value was empty on row:"+o)):a=!1;for(var l=1;l<n;l++)if(parsers[l].is(s,e,r))return parsers[l];return parsers[0]}function getNodeFromRowAndCellIndex(e,t,o){return e[t].cells[o]}function trimAndGetNodeText(e,t){return $.trim(getElementText(e,t))}function getParserById(e){for(var t=parsers.length,o=0;o<t;o++)if(parsers[o].id.toLowerCase()==e.toLowerCase())return parsers[o];return!1}function buildCache(e){if(e.config.debug)var t=new Date;for(var o=e.tBodies[0]&&e.tBodies[0].rows.length||0,i=e.tBodies[0].rows[0]&&e.tBodies[0].rows[0].cells.length||0,n=e.config.parsers,r={row:[],normalized:[]},s=0;s<o;++s){var a=$(e.tBodies[0].rows[s]),l=[];if(a.hasClass(e.config.cssChildRow))r.row[r.row.length-1]=r.row[r.row.length-1].add(a);else{r.row.push(a);for(var c=0;c<i;++c)l.push(n[c].format(getElementText(e.config,a[0].cells[c]),e,a[0].cells[c]));l.push(r.normalized.length),r.normalized.push(l),l=null}}return e.config.debug&&benchmark("Building cache for "+o+" rows:",t),r}function getElementText(e,t){return t?(e.supportsTextContent||(e.supportsTextContent=t.textContent||!1),"simple"==e.textExtraction?e.supportsTextContent?t.textContent:t.childNodes[0]&&t.childNodes[0].hasChildNodes()?t.childNodes[0].innerHTML:t.innerHTML:"function"==typeof e.textExtraction?e.textExtraction(t):$(t).text()):""}function appendToTable(e,t){if(e.config.debug)var o=new Date;for(var i=t,n=i.row,r=i.normalized,s=r.length,a=r[0].length-1,l=$(e.tBodies[0]),c=[],d=0;d<s;d++){var u=r[d][a];if(c.push(n[u]),!e.config.appender)for(var h=n[u].length,p=0;p<h;p++)l[0].appendChild(n[u][p])}e.config.appender&&e.config.appender(e,c),c=null,e.config.debug&&benchmark("Rebuilt table:",o),applyWidget(e),setTimeout(function(){$(e).trigger("sortEnd")},0)}function buildHeaders(o){if(o.config.debug)var e=new Date;$.metadata;var i=computeTableHeaderCellIndexes(o);return $tableHeaders=$(o.config.selectorHeaders,o).each(function(e){if(this.column=i[this.parentNode.rowIndex+"-"+this.cellIndex],this.order=formatSortingOrder(o.config.sortInitialOrder),this.count=this.order,(checkHeaderMetadata(this)||checkHeaderOptions(o,e))&&(this.sortDisabled=!0),checkHeaderOptionsSortingLocked(o,e)&&(this.order=this.lockedOrder=checkHeaderOptionsSortingLocked(o,e)),!this.sortDisabled){var t=$(this).addClass(o.config.cssHeader);o.config.onRenderHeader&&o.config.onRenderHeader.apply(t)}o.config.headerList[e]=this}),o.config.debug&&(benchmark("Built headers:",e),log($tableHeaders)),$tableHeaders}function computeTableHeaderCellIndexes(e){for(var t=[],o={},i=e.getElementsByTagName("THEAD")[0].getElementsByTagName("TR"),n=0;n<i.length;n++)for(var r=i[n].cells,s=0;s<r.length;s++){var a,l=r[s],c=l.parentNode.rowIndex,d=c+"-"+l.cellIndex,u=l.rowSpan||1,h=l.colSpan||1;void 0===t[c]&&(t[c]=[]);for(var p=0;p<t[c].length+1;p++)if(void 0===t[c][p]){a=p;break}o[d]=a;for(p=c;p<c+u;p++){void 0===t[p]&&(t[p]=[]);for(var f=t[p],g=a;g<a+h;g++)f[g]="x"}}return o}function checkCellColSpan(e,t,o){for(var i=[],n=e.tHead.rows,r=n[o].cells,s=0;s<r.length;s++){var a=r[s];1<a.colSpan?i=i.concat(checkCellColSpan(e,headerArr,o++)):(1==e.tHead.length||1<a.rowSpan||!n[o+1])&&i.push(a)}return i}function checkHeaderMetadata(e){return!(!$.metadata||!1!==$(e).metadata().sorter)}function checkHeaderOptions(e,t){return!(!e.config.headers[t]||!1!==e.config.headers[t].sorter)}function checkHeaderOptionsSortingLocked(e,t){return!(!e.config.headers[t]||!e.config.headers[t].lockedOrder)&&e.config.headers[t].lockedOrder}function applyWidget(e){for(var t=e.config.widgets,o=t.length,i=0;i<o;i++)getWidgetById(t[i]).format(e)}function getWidgetById(e){for(var t=widgets.length,o=0;o<t;o++)if(widgets[o].id.toLowerCase()==e.toLowerCase())return widgets[o]}function formatSortingOrder(e){return"Number"!=typeof e?"desc"==e.toLowerCase()?1:0:1==e?1:0}function isValueInArray(e,t){for(var o=t.length,i=0;i<o;i++)if(t[i][0]==e)return!0;return!1}function setHeadersCss(e,t,o,i){t.removeClass(i[0]).removeClass(i[1]);var n=[];t.each(function(e){this.sortDisabled||(n[this.column]=$(this))});for(var r=o.length,s=0;s<r;s++)n[o[s][0]].addClass(i[o[s][1]])}function fixColumnWidth(e,t){if(e.config.widthFixed){var o=$("<colgroup>");$("tr:first td",e.tBodies[0]).each(function(){o.append($("<col>").css("width",$(this).width()))}),$(e).prepend(o)}}function updateHeaderSortCount(e,t){for(var o=e.config,i=t.length,n=0;n<i;n++){var r=t[n],s=o.headerList[r[0]];s.count=r[1],s.count++}}function multisort(table,sortList,cache){if(table.config.debug)var sortTime=new Date;for(var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length,i=0;i<l;i++){var c=sortList[i][0],order=sortList[i][1],s="text"==table.config.parsers[c].type?makeSortFunction("text",0==order?"asc":"desc",c):makeSortFunction("numeric",0==order?"asc":"desc",c),e="e"+i;dynamicExp+="var "+e+" = "+s,dynamicExp+="if("+e+") { return "+e+"; } ",dynamicExp+="else { "}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++)dynamicExp+="}; ";return dynamicExp+="return 0; ",dynamicExp+="}; ",table.config.debug&&benchmark("Evaling expression:"+dynamicExp,new Date),eval(dynamicExp),cache.normalized.sort(sortWrapper),table.config.debug&&benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime),cache}function makeSortFunction(e,t,o){var i="a["+o+"]",n="b["+o+"]";return"text"==e&&"asc"==t?"("+i+" == "+n+" ? 0 : ("+i+" === null ? Number.POSITIVE_INFINITY : ("+n+" === null ? Number.NEGATIVE_INFINITY : ("+i+" < "+n+") ? -1 : 1 )));":"text"==e&&"desc"==t?"("+i+" == "+n+" ? 0 : ("+i+" === null ? Number.POSITIVE_INFINITY : ("+n+" === null ? Number.NEGATIVE_INFINITY : ("+n+" < "+i+") ? -1 : 1 )));":"numeric"==e&&"asc"==t?"("+i+" === null && "+n+" === null) ? 0 :("+i+" === null ? Number.POSITIVE_INFINITY : ("+n+" === null ? Number.NEGATIVE_INFINITY : "+i+" - "+n+"));":"numeric"==e&&"desc"==t?"("+i+" === null && "+n+" === null) ? 0 :("+i+" === null ? Number.POSITIVE_INFINITY : ("+n+" === null ? Number.NEGATIVE_INFINITY : "+n+" - "+i+"));":void 0}function makeSortText(e){return"((a["+e+"] < b["+e+"]) ? -1 : ((a["+e+"] > b["+e+"]) ? 1 : 0));"}function makeSortTextDesc(e){return"((b["+e+"] < a["+e+"]) ? -1 : ((b["+e+"] > a["+e+"]) ? 1 : 0));"}function makeSortNumeric(e){return"a["+e+"]-b["+e+"];"}function makeSortNumericDesc(e){return"b["+e+"]-a["+e+"];"}function sortText(e,t){return table.config.sortLocaleCompare?e.localeCompare(t):e<t?-1:t<e?1:0}function sortTextDesc(e,t){return table.config.sortLocaleCompare?t.localeCompare(e):t<e?-1:e<t?1:0}function sortNumeric(e,t){return e-t}function sortNumericDesc(e,t){return t-e}function getCachedSortType(e,t){return e[t].type}this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:!0,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:!1,cancelSelection:!0,sortList:[],headerList:[],dateFormat:"us",decimal:"/.|,/g",onRenderHeader:null,selectorHeaders:"thead th",debug:!1},this.benchmark=benchmark,this.construct=function(e){return this.each(function(){if(this.tHead&&this.tBodies){var a,l,c,d;this.config={},d=$.extend(this.config,$.tablesorter.defaults,e),a=$(this),$.data(this,"tablesorter",d),l=buildHeaders(this),this.config.parsers=buildParserCache(this,l),c=buildCache(this);var u=[d.cssDesc,d.cssAsc];fixColumnWidth(this),l.click(function(e){var t=a[0].tBodies[0]&&a[0].tBodies[0].rows.length||0;if(!this.sortDisabled&&0<t){a.trigger("sortStart");$(this);var o=this.column;if(this.order=this.count++%2,this.lockedOrder&&(this.order=this.lockedOrder),e[d.sortMultiSortKey])if(isValueInArray(o,d.sortList))for(s=0;s<d.sortList.length;s++){var i=d.sortList[s],n=d.headerList[i[0]];i[0]==o&&(n.count=i[1],n.count++,i[1]=n.count%2)}else d.sortList.push([o,this.order]);else{if(d.sortList=[],null!=d.sortForce)for(var r=d.sortForce,s=0;s<r.length;s++)r[s][0]!=o&&d.sortList.push(r[s]);d.sortList.push([o,this.order])}return setTimeout(function(){setHeadersCss(a[0],l,d.sortList,u),appendToTable(a[0],multisort(a[0],d.sortList,c))},1),!1}}).mousedown(function(){if(d.cancelSelection)return!(this.onselectstart=function(){return!1})}),a.bind("update",function(){var e=this;setTimeout(function(){e.config.parsers=buildParserCache(e,l),c=buildCache(e)},1)}).bind("updateCell",function(e,t){var o=this.config,i=[t.parentNode.rowIndex-1,t.cellIndex];c.normalized[i[0]][i[1]]=o.parsers[i[1]].format(getElementText(o,t),t)}).bind("sorton",function(e,t){$(this).trigger("sortStart"),d.sortList=t;var o=d.sortList;updateHeaderSortCount(this,o),setHeadersCss(this,l,o,u),appendToTable(this,multisort(this,o,c))}).bind("appendCache",function(){appendToTable(this,c)}).bind("applyWidgetId",function(e,t){getWidgetById(t).format(this)}).bind("applyWidgets",function(){applyWidget(this)}),$.metadata&&$(this).metadata()&&$(this).metadata().sortlist&&(d.sortList=$(this).metadata().sortlist),0<d.sortList.length&&a.trigger("sorton",[d.sortList]),applyWidget(this)}})},this.addParser=function(e){for(var t=parsers.length,o=!0,i=0;i<t;i++)parsers[i].id.toLowerCase()==e.id.toLowerCase()&&(o=!1);o&&parsers.push(e)},this.addWidget=function(e){widgets.push(e)},this.formatFloat=function(e){var t=parseFloat(e);return isNaN(t)?0:t},this.formatInt=function(e){var t=parseInt(e);return isNaN(t)?0:t},this.isDigit=function(e,t){return/^[-+]?\d*$/.test($.trim(e.replace(/[,.']/g,"")))},this.clearTableBody=function(e){if($.browser.msie){(function(){for(;this.firstChild;)this.removeChild(this.firstChild)}).apply(e.tBodies[0])}else e.tBodies[0].innerHTML=""}}}),$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(e){return!0},format:function(e){return $.trim(e.toLocaleLowerCase())},type:"text"}),ts.addParser({id:"digit",is:function(e,t){var o=t.config;return $.tablesorter.isDigit(e,o)},format:function(e){return $.tablesorter.formatFloat(e)},type:"numeric"}),ts.addParser({id:"currency",is:function(e){return/^[£$€?.]/.test(e)},format:function(e){return $.tablesorter.formatFloat(e.replace(new RegExp(/[£$€]/g),""))},type:"numeric"}),ts.addParser({id:"ipAddress",is:function(e){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(e)},format:function(e){for(var t=e.split("."),o="",i=t.length,n=0;n<i;n++){var r=t[n];2==r.length?o+="0"+r:o+=r}return $.tablesorter.formatFloat(o)},type:"numeric"}),ts.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\/$/.test(e)},format:function(e){return jQuery.trim(e.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"}),ts.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(e)},format:function(e){return $.tablesorter.formatFloat(""!=e?new Date(e.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"}),ts.addParser({id:"percent",is:function(e){return/\%$/.test($.trim(e))},format:function(e){return $.tablesorter.formatFloat(e.replace(new RegExp(/%/g),""))},type:"numeric"}),ts.addParser({id:"usLongDate",is:function(e){return e.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(e){return $.tablesorter.formatFloat(new Date(e).getTime())},type:"numeric"}),ts.addParser({id:"shortDate",is:function(e){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(e)},format:function(e,t){var o=t.config;return e=e.replace(/\-/g,"/"),"us"==o.dateFormat?e=e.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2"):"pt"==o.dateFormat?e=e.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1"):"uk"==o.dateFormat?e=e.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1"):"dd/mm/yy"!=o.dateFormat&&"dd-mm-yy"!=o.dateFormat||(e=e.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")),$.tablesorter.formatFloat(new Date(e).getTime())},type:"numeric"}),ts.addParser({id:"time",is:function(e){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(e)},format:function(e){return $.tablesorter.formatFloat(new Date("2000/01/01 "+e).getTime())},type:"numeric"}),ts.addParser({id:"metadata",is:function(e){return!1},format:function(e,t,o){var i=t.config,n=i.parserMetadataName?i.parserMetadataName:"sortValue";return $(o).metadata()[n]},type:"numeric"}),ts.addWidget({id:"zebra",format:function(t){if(t.config.debug)var e=new Date;var o,i,n=-1;$("tr:visible",t.tBodies[0]).each(function(e){(o=$(this)).hasClass(t.config.cssChildRow)||n++,i=n%2==0,o.removeClass(t.config.widgetZebra.css[i?0:1]).addClass(t.config.widgetZebra.css[i?1:0])}),t.config.debug&&$.tablesorter.benchmark("Applying Zebra widget",e)}})}(jQuery),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return function(o){function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n={};return i.m=o,i.c=n,i.i=function(e){return e},i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=3)}([function(e,t,o){var i,n,r;n=[e,o(7)],void 0!==(r="function"==typeof(i=function(e,t){"use strict";var o,i=(o=t)&&o.__esModule?o:{default:o},n="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=function(){function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e}}(),s=function(){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),this.resolveOptions(e),this.initSelection()}return r(t,[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":n(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),t}();e.exports=s})?i.apply(t,n):i)&&(e.exports=r)},function(e,t,o){var h=o(6),p=o(5);e.exports=function(e,t,o){if(!e&&!t&&!o)throw new Error("Missing required arguments");if(!h.string(t))throw new TypeError("Second argument must be a String");if(!h.fn(o))throw new TypeError("Third argument must be a Function");if(h.node(e))return n=t,r=o,(i=e).addEventListener(n,r),{destroy:function(){i.removeEventListener(n,r)}};var i,n,r,s,a,l,c,d,u;if(h.nodeList(e))return s=e,a=t,l=o,Array.prototype.forEach.call(s,function(e){e.addEventListener(a,l)}),{destroy:function(){Array.prototype.forEach.call(s,function(e){e.removeEventListener(a,l)})}};if(h.string(e))return c=e,d=t,u=o,p(document.body,c,d,u);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){function o(){}o.prototype={on:function(e,t,o){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:o}),this},once:function(e,t,o){function i(){n.off(e,i),t.apply(o,arguments)}var n=this;return i._=t,this.on(e,i,o)},emit:function(e){for(var t=[].slice.call(arguments,1),o=((this.e||(this.e={}))[e]||[]).slice(),i=0,n=o.length;i<n;i++)o[i].fn.apply(o[i].ctx,t);return this},off:function(e,t){var o=this.e||(this.e={}),i=o[e],n=[];if(i&&t)for(var r=0,s=i.length;r<s;r++)i[r].fn!==t&&i[r].fn._!==t&&n.push(i[r]);return n.length?o[e]=n:delete o[e],this}},e.exports=o},function(e,t,o){var i,n,r;n=[e,o(0),o(2),o(1)],void 0!==(r="function"==typeof(i=function(e,t,o,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var o="data-clipboard-"+e;if(t.hasAttribute(o))return t.getAttribute(o)}var s=n(t),a=n(o),l=n(i),c="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},d=function(){function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e}}(),u=function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return o.resolveOptions(t),o.listenClick(e),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),d(i,[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===c(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,l.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return r("action",e)}},{key:"defaultTarget",value:function(e){var t=r("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return r("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return t.forEach(function(e){o=o&&!!document.queryCommandSupported(e)}),o}}]),i}(a.default);e.exports=u})?i.apply(t,n):i)&&(e.exports=r)},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,o){function r(e,t,o,i,n){var r=function(t,o,e,i){return function(e){e.delegateTarget=s(e.target,o),e.delegateTarget&&i.call(t,e)}}.apply(this,arguments);return e.addEventListener(o,r,n),{destroy:function(){e.removeEventListener(o,r,n)}}}var s=o(4);e.exports=function(e,t,o,i,n){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof o?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,o,i,n)}))}},function(e,o){o.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},o.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||o.node(e[0]))},o.string=function(e){return"string"==typeof e||e instanceof String},o.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var o=e.hasAttribute("readonly");o||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),o||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),n=document.createRange();n.selectNodeContents(e),i.removeAllRanges(),i.addRange(n),t=i.toString()}return t}}])}),function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var r=function(e,t,o){"string"==typeof e?(2==arguments.length&&(o=t),r.modules[e]||(r.payloads[e]=o,r.modules[e]=null)):r.original?r.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};r.modules={},r.payloads={};var t,o,s=function(e,t,o){if("string"==typeof t){var i=c(e,t);if(null!=i)return o&&o(),i}else if("[object Array]"===Object.prototype.toString.call(t)){for(var n=[],r=0,s=t.length;r<s;++r){var a=c(e,t[r]);if(null==a&&l.original)return;n.push(a)}return o&&o.apply(null,n)||!0}},l=function(e,t){var o=s("",e,t);return null==o&&l.original?l.original.apply(this,arguments):o},a=function(e,t){if(-1!==t.indexOf("!")){var o=t.split("!");return a(e,o[0])+"!"+a(e,o[1])}if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&i!=t;){var i=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},c=function(e,o){o=a(e,o);var t=r.modules[o];if(!t){if("function"==typeof(t=r.payloads[o])){var i={},n={id:o,uri:"",exports:i,packaged:!0};i=t(function(e,t){return s(o,e,t)},i,n)||n.exports,r.modules[o]=i,delete r.payloads[o]}t=r.modules[o]=i||t}return t};o=e,(t="ace")&&(e[t]||(e[t]={}),o=e[t]),o.define&&o.define.packaged||(r.original=o.define,o.define=r,o.define.packaged=!0),o.require&&o.require.packaged||(l.original=o.require,o.require=l,o.require.packaged=!0)}(),ace.define("ace/lib/regexp",["require","exports","module"],function(e,t,o){"use strict";var i,s={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},a=void 0===s.exec.call(/()??/,"")[1],l=(i=/^/g,s.test.call(i,""),!i.lastIndex);l&&a||(RegExp.prototype.exec=function(e){var t,o,i,n=s.exec.apply(this,arguments);if("string"==typeof e&&n){if(!a&&1<n.length&&-1<function(e,t,o){if(Array.prototype.indexOf)return e.indexOf(t,o);for(var i=o||0;i<e.length;i++)if(e[i]===t)return i;return-1}(n,"")&&(o=RegExp(this.source,s.replace.call(((i=this).global?"g":"")+(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),"g","")),s.replace.call(e.slice(n.index),o,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(n[e]=void 0)})),this._xregexp&&this._xregexp.captureNames)for(var r=1;r<n.length;r++)(t=this._xregexp.captureNames[r-1])&&(n[t]=n[r]);!l&&this.global&&!n[0].length&&this.lastIndex>n.index&&this.lastIndex--}return n},l||(RegExp.prototype.test=function(e){var t=s.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(e,t,o){function r(){}Function.prototype.bind||(Function.prototype.bind=function(t){var o=this;if("function"!=typeof o)throw new TypeError("Function.prototype.bind called on incompatible "+o);var i=h.call(arguments,1),n=function(){if(this instanceof n){var e=o.apply(this,i.concat(h.call(arguments)));return Object(e)===e?e:this}return o.apply(t,i.concat(h.call(arguments)))};return o.prototype&&(r.prototype=o.prototype,n.prototype=new r,r.prototype=null),n});var n,s,a,l,c,i=Function.prototype.call,d=Array.prototype,u=Object.prototype,h=d.slice,p=i.bind(u.toString),f=i.bind(u.hasOwnProperty);if((c=f(u,"__defineGetter__"))&&(n=i.bind(u.__defineGetter__),s=i.bind(u.__defineSetter__),a=i.bind(u.__lookupGetter__),l=i.bind(u.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,o=[];if(o.splice.apply(o,e(20)),o.splice.apply(o,e(26)),t=o.length,o.splice(5,0,"XXX"),o.length,t+1==o.length)return!0}()){var g=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?g.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(h.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var o=this.length;0<e?o<e&&(e=o):null==e?e=0:e<0&&(e=Math.max(o+e,0)),e+t<o||(t=o-e);var i=this.slice(e,e+t),n=h.call(arguments,2),r=n.length;if(e===o)r&&this.push.apply(this,n);else{var s=Math.min(t,o-e),a=e+s,l=a+r-s,c=o-a,d=o-s;if(l<a)for(var u=0;u<c;++u)this[l+u]=this[a+u];else if(a<l)for(u=c;u--;)this[l+u]=this[a+u];if(r&&e===d)this.length=d,this.push.apply(this,n);else for(this.length=d+r,u=0;u<r;++u)this[e+u]=n[u]}return i};Array.isArray||(Array.isArray=function(e){return"[object Array]"==p(e)});var m,v,b=Object("a"),w="a"!=b[0]||!(0 in b);if(Array.prototype.forEach||(Array.prototype.forEach=function(e){var t=L(this),o=w&&"[object String]"==p(this)?this.split(""):t,i=arguments[1],n=-1,r=o.length>>>0;if("[object Function]"!=p(e))throw new TypeError;for(;++n<r;)n in o&&e.call(i,o[n],n,t)}),Array.prototype.map||(Array.prototype.map=function(e){var t=L(this),o=w&&"[object String]"==p(this)?this.split(""):t,i=o.length>>>0,n=Array(i),r=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var s=0;s<i;s++)s in o&&(n[s]=e.call(r,o[s],s,t));return n}),Array.prototype.filter||(Array.prototype.filter=function(e){var t,o=L(this),i=w&&"[object String]"==p(this)?this.split(""):o,n=i.length>>>0,r=[],s=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var a=0;a<n;a++)a in i&&(t=i[a],e.call(s,t,a,o)&&r.push(t));return r}),Array.prototype.every||(Array.prototype.every=function(e){var t=L(this),o=w&&"[object String]"==p(this)?this.split(""):t,i=o.length>>>0,n=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var r=0;r<i;r++)if(r in o&&!e.call(n,o[r],r,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){var t=L(this),o=w&&"[object String]"==p(this)?this.split(""):t,i=o.length>>>0,n=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var r=0;r<i;r++)if(r in o&&e.call(n,o[r],r,t))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(e){var t=L(this),o=w&&"[object String]"==p(this)?this.split(""):t,i=o.length>>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!i&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var n,r=0;if(2<=arguments.length)n=arguments[1];else for(;;){if(r in o){n=o[r++];break}if(++r>=i)throw new TypeError("reduce of empty array with no initial value")}for(;r<i;r++)r in o&&(n=e.call(void 0,n,o[r],r,t));return n}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){var t=L(this),o=w&&"[object String]"==p(this)?this.split(""):t,i=o.length>>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!i&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var n,r=i-1;if(2<=arguments.length)n=arguments[1];else for(;;){if(r in o){n=o[r--];break}if(--r<0)throw new TypeError("reduceRight of empty array with no initial value")}for(;r in this&&(n=e.call(void 0,n,o[r],r,t)),r--;);return n}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=w&&"[object String]"==p(this)?this.split(""):L(this),o=t.length>>>0;if(!o)return-1;var i=0;for(1<arguments.length&&(i=D(arguments[1])),i=0<=i?i:Math.max(0,o+i);i<o;i++)if(i in t&&t[i]===e)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(e){var t=w&&"[object String]"==p(this)?this.split(""):L(this),o=t.length>>>0;if(!o)return-1;var i=o-1;for(1<arguments.length&&(i=Math.min(i,D(arguments[1]))),i=0<=i?i:o-Math.abs(i);0<=i;i--)if(i in t&&e===t[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(f(e,t)){var o;if(o={enumerable:!0,configurable:!0},c){var i=e.__proto__;e.__proto__=u;var n=a(e,t),r=l(e,t);if(e.__proto__=i,n||r)return n&&(o.get=n),r&&(o.set=r),o}return o.value=e[t],o}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(m=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var o;if(null===e)o=m();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var i=function(){};i.prototype=e,(o=new i).__proto__=e}return void 0!==t&&Object.defineProperties(o,t),o});function y(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(e){}}if(Object.defineProperty){var x=y({}),_="undefined"==typeof document||y(document.createElement("div"));if(!x||!_)var C=Object.defineProperty}if(!Object.defineProperty||C){Object.defineProperty=function(e,t,o){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=typeof o&&"function"!=typeof o||null===o)throw new TypeError("Property description must be an object: "+o);if(C)try{return C.call(Object,e,t,o)}catch(e){}if(f(o,"value"))if(c&&(a(e,t)||l(e,t))){var i=e.__proto__;e.__proto__=u,delete e[t],e[t]=o.value,e.__proto__=i}else e[t]=o.value;else{if(!c)throw new TypeError("getters & setters can not be defined on this javascript engine");f(o,"get")&&n(e,t,o.get),f(o,"set")&&s(e,t,o.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var o in t)f(t,o)&&Object.defineProperty(e,o,t[o]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze(function(){})}catch(e){Object.freeze=(v=Object.freeze,function(e){return"function"==typeof e?e:v(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";f(e,t);)t+="?";e[t]=!0;var o=f(e,t);return delete e[t],o}),!Object.keys){var A=!0,k=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],E=k.length;for(var $ in{toString:null})A=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var o in e)f(e,o)&&t.push(o);if(A)for(var i=0,n=E;i<n;i++){var r=k[i];f(e,r)&&t.push(r)}return t}}Date.now||(Date.now=function(){return(new Date).getTime()});var S="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff";if(!String.prototype.trim||S.trim()){S="["+S+"]";var j=new RegExp("^"+S+S+"*"),F=new RegExp(S+S+"*$");String.prototype.trim=function(){return String(this).replace(j,"").replace(F,"")}}function D(e){return(e=+e)!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(0<e||-1)*Math.floor(Math.abs(e))),e}var L=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(e,t,o){"use strict";e("./regexp"),e("./es5-shim")}),ace.define("ace/lib/dom",["require","exports","module"],function(e,a,t){"use strict";a.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},a.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},a.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},a.addCssClass=function(e,t){a.hasCssClass(e,t)||(e.className+=" "+t)},a.removeCssClass=function(e,t){for(var o=e.className.split(/\s+/g);;){var i=o.indexOf(t);if(-1==i)break;o.splice(i,1)}e.className=o.join(" ")},a.toggleCssClass=function(e,t){for(var o=e.className.split(/\s+/g),i=!0;;){var n=o.indexOf(t);if(-1==n)break;i=!1,o.splice(n,1)}return i&&o.push(t),e.className=o.join(" "),i},a.setCssClass=function(e,t,o){o?a.addCssClass(e,t):a.removeCssClass(e,t)},a.hasCssString=function(e,t){var o,i=0;if((t=t||document).createStyleSheet&&(o=t.styleSheets)){for(;i<o.length;)if(o[i++].owningElement.id===e)return!0}else if(o=t.getElementsByTagName("style"))for(;i<o.length;)if(o[i++].id===e)return!0;return!1},a.importCssString=function(e,t,o){if(o=o||document,t&&a.hasCssString(t,o))return null;var i;t&&(e+="\n/*# sourceURL=ace/css/"+t+" */"),o.createStyleSheet?((i=o.createStyleSheet()).cssText=e,t&&(i.owningElement.id=t)):((i=a.createElement("style")).appendChild(o.createTextNode(e)),t&&(i.id=t),a.getDocumentHead(o).appendChild(i))},a.importCssStylsheet=function(e,t){if(t.createStyleSheet)t.createStyleSheet(e);else{var o=a.createElement("link");o.rel="stylesheet",o.href=e,a.getDocumentHead(t).appendChild(o)}},a.getInnerWidth=function(e){return parseInt(a.computedStyle(e,"paddingLeft"),10)+parseInt(a.computedStyle(e,"paddingRight"),10)+e.clientWidth},a.getInnerHeight=function(e){return parseInt(a.computedStyle(e,"paddingTop"),10)+parseInt(a.computedStyle(e,"paddingBottom"),10)+e.clientHeight},a.scrollbarWidth=function(e){var t=a.createElement("ace_inner");t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block";var o=a.createElement("ace_outer"),i=o.style;i.position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",o.appendChild(t);var n=e.documentElement;n.appendChild(o);var r=t.offsetWidth;i.overflow="scroll";var s=t.offsetWidth;return r==s&&(s=o.clientWidth),n.removeChild(o),r-s},"undefined"!=typeof document?(void 0!==window.pageYOffset?(a.getPageScrollTop=function(){return window.pageYOffset},a.getPageScrollLeft=function(){return window.pageXOffset}):(a.getPageScrollTop=function(){return document.body.scrollTop},a.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?a.computedStyle=function(e,t){return t?(window.getComputedStyle(e,"")||{})[t]||"":window.getComputedStyle(e,"")||{}}:a.computedStyle=function(e,t){return t?e.currentStyle[t]:e.currentStyle},a.setInnerHtml=function(e,t){var o=e.cloneNode(!1);return o.innerHTML=t,e.parentNode.replaceChild(o,e),o},"textContent"in document.documentElement?(a.setInnerText=function(e,t){e.textContent=t},a.getInnerText=function(e){return e.textContent}):(a.setInnerText=function(e,t){e.innerText=t},a.getInnerText=function(e){return e.innerText}),a.getParentWindow=function(e){return e.defaultView||e.parentWindow}):a.importCssString=function(){}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,o,t){"use strict";o.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},o.mixin=function(e,t){for(var o in t)e[o]=t[o];return e},o.implement=function(e,t){o.mixin(e,t)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],function(e,t,o){"use strict";e("./fixoldbrowsers");var i=e("./oop"),n=function(){var e,t,o={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in o.FUNCTION_KEYS)e=o.FUNCTION_KEYS[t].toLowerCase(),o[e]=parseInt(t,10);for(t in o.PRINTABLE_KEYS)e=o.PRINTABLE_KEYS[t].toLowerCase(),o[e]=parseInt(t,10);return i.mixin(o,o.MODIFIER_KEYS),i.mixin(o,o.PRINTABLE_KEYS),i.mixin(o,o.FUNCTION_KEYS),o.enter=o.return,o.escape=o.esc,o.del=o.delete,o[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)o.KEY_MODS[t]=e.filter(function(e){return t&o.KEY_MODS[e]}).join("-")+"-"}(),o.KEY_MODS[0]="",o.KEY_MODS[-1]="input-",o}();i.mixin(t,n),t.keyCodeToString=function(e){var t=n[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,t,o){"use strict";if(t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS},"object"==typeof navigator){var i=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),n=navigator.userAgent;t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==navigator.appName||0<=navigator.appName.indexOf("MSAppHost")?parseFloat((n.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((n.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&"Gecko"===window.navigator.product,t.isOldGecko=t.isGecko&&parseInt((n.match(/rv:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(n.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(n.split(" Chrome/")[1])||void 0,t.isAIR=0<=n.indexOf("AdobeAIR"),t.isIPad=0<=n.indexOf("iPad"),t.isChromeOS=0<=n.indexOf(" CrOS "),t.isIOS=/iPad|iPhone|iPod/.test(n)&&!window.MSStream,t.isIOS&&(t.isMac=!0)}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,u,t){"use strict";var r=e("./keys"),h=e("./useragent"),s=null,a=0;u.addListener=function(e,t,o){if(e.addEventListener)return e.addEventListener(t,o,!1);if(e.attachEvent){var i=function(){o.call(e,window.event)};o._wrapper=i,e.attachEvent("on"+t,i)}},u.removeListener=function(e,t,o){if(e.removeEventListener)return e.removeEventListener(t,o,!1);e.detachEvent&&e.detachEvent("on"+t,o._wrapper||o)},u.stopEvent=function(e){return u.stopPropagation(e),u.preventDefault(e),!1},u.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},u.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},u.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||h.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},u.capture=function(e,t,o){function i(e){t&&t(e),o&&o(e),u.removeListener(document,"mousemove",t,!0),u.removeListener(document,"mouseup",i,!0),u.removeListener(document,"dragstart",i,!0)}return u.addListener(document,"mousemove",t,!0),u.addListener(document,"mouseup",i,!0),u.addListener(document,"dragstart",i,!0),i},u.addTouchMoveListener=function(e,i){var n,r;u.addListener(e,"touchstart",function(e){var t=e.touches[0];n=t.clientX,r=t.clientY}),u.addListener(e,"touchmove",function(e){var t=e.touches;if(!(1<t.length)){var o=t[0];e.wheelX=n-o.clientX,e.wheelY=r-o.clientY,n=o.clientX,r=o.clientY,i(e)}})},u.addMouseWheelListener=function(e,t){"onmousewheel"in e?u.addListener(e,"mousewheel",function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),t(e)}):"onwheel"in e?u.addListener(e,"wheel",function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}t(e)}):u.addListener(e,"DOMMouseScroll",function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)})},u.addMultiMouseDownListener=function(e,o,i,n){var r,s,a,l=0,c={2:"dblclick",3:"tripleclick",4:"quadclick"};function t(e){if(0!==u.getButton(e)?l=0:1<e.detail?4<++l&&(l=1):l=1,h.isIE){var t=5<Math.abs(e.clientX-r)||5<Math.abs(e.clientY-s);a&&!t||(l=1),a&&clearTimeout(a),a=setTimeout(function(){a=null},o[l-1]||600),1==l&&(r=e.clientX,s=e.clientY)}if(e._clicks=l,i[n]("mousedown",e),4<l)l=0;else if(1<l)return i[n](c[l],e)}function d(e){l=2,a&&clearTimeout(a),a=setTimeout(function(){a=null},o[l-1]||600),i[n]("mousedown",e),i[n](c[l],e)}Array.isArray(e)||(e=[e]),e.forEach(function(e){u.addListener(e,"mousedown",t),h.isOldIE&&u.addListener(e,"dblclick",d)})};var l=!h.isMac||!h.isOpera||"KeyboardEvent"in window?function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}:function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)};function c(e,t,o){var i=l(t);if(!h.isMac&&s){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(i|=8),s.altGr){if(3==(3&i))return;s.altGr=0}if(18===o||17===o){var n="location"in t?t.location:t.keyLocation;if(17===o&&1===n)1==s[o]&&(a=t.timeStamp);else if(18===o&&3===i&&2===n){t.timeStamp-a<50&&(s.altGr=!0)}}}if((o in r.MODIFIER_KEYS&&(o=-1),8&i&&91<=o&&o<=93&&(o=-1),!i&&13===o)&&(3===(n="location"in t?t.location:t.keyLocation)&&(e(t,i,-o),t.defaultPrevented)))return;if(h.isChromeOS&&8&i){if(e(t,i,o),t.defaultPrevented)return;i&=-9}return!!(i||o in r.FUNCTION_KEYS||o in r.PRINTABLE_KEYS)&&e(t,i,o)}function d(){s=Object.create(null)}if(u.getModifierString=function(e){return r.KEY_MODS[l(e)]},u.addCommandKeyListener=function(e,o){var t=u.addListener;if(h.isOldGecko||h.isOpera&&!("KeyboardEvent"in window)){var i=null;t(e,"keydown",function(e){i=e.keyCode}),t(e,"keypress",function(e){return c(o,e,i)})}else{var n=null;t(e,"keydown",function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=c(o,e,e.keyCode);return n=e.defaultPrevented,t}),t(e,"keypress",function(e){n&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(u.stopEvent(e),n=null)}),t(e,"keyup",function(e){s[e.keyCode]=null}),s||(d(),t(window,"focus",d))}},"object"==typeof window&&window.postMessage&&!h.isOldIE){u.nextTick=function(o,i){i=i||window;var n="zero-timeout-message-1";u.addListener(i,"message",function e(t){t.data==n&&(u.stopPropagation(t),u.removeListener(i,"message",e),o())}),i.postMessage(n,"*")}}u.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),u.nextFrame?u.nextFrame=u.nextFrame.bind(window):u.nextFrame=function(e){setTimeout(e,17)}}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t,o){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var o="";0<t;)1&t&&(o+=e),(t>>=1)&&(e+=e);return o};var i=/^\s\s*/,n=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(i,"")},t.stringTrimRight=function(e){return e.replace(n,"")},t.copyObject=function(e){var t={};for(var o in e)t[o]=e[o];return t},t.copyArray=function(e){for(var t=[],o=0,i=e.length;o<i;o++)e[o]&&"object"==typeof e[o]?t[o]=this.copyObject(e[o]):t[o]=e[o];return t},t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;var o;if(Array.isArray(t)){o=[];for(var i=0;i<t.length;i++)o[i]=e(t[i]);return o}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var i in o={},t)o[i]=e(t[i]);return o},t.arrayToMap=function(e){for(var t={},o=0;o<e.length;o++)t[e[o]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var o in e)t[o]=e[o];return t},t.arrayRemove=function(e,t){for(var o=0;o<=e.length;o++)t===e[o]&&e.splice(o,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return e.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var o=[];return e.replace(t,function(e){o.push({offset:arguments[arguments.length-2],length:e.length})}),o},t.deferredCall=function(e){var t=null,o=function(){t=null,e()},i=function(e){return i.cancel(),t=setTimeout(o,e||0),i};return(i.schedule=i).call=function(){return this.cancel(),e(),i},i.cancel=function(){return clearTimeout(t),t=null,i},i.isPending=function(){return t},i},t.delayedCall=function(e,t){var o=null,i=function(){o=null,e()},n=function(e){null==o&&(o=setTimeout(i,e||t))};return n.delay=function(e){o&&clearTimeout(o),o=setTimeout(i,e||t)},(n.schedule=n).call=function(){this.cancel(),e()},n.cancel=function(){o&&clearTimeout(o),o=null},n.isPending=function(){return o},n}}),ace.define("ace/keyboard/textinput_ios",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/lib/keys"],function(e,t,o){"use strict";var F=e("../lib/event"),D=e("../lib/useragent"),L=e("../lib/dom"),M=e("../lib/lang"),T=e("../lib/keys"),B=T.KEY_MODS,R=D.isChrome<18,I=D.isIE;t.TextInput=function(e,l){var c=L.createElement("textarea");c.className=D.isIOS?"ace_text-input ace_text-input-ios":"ace_text-input",D.isTouchPad&&c.setAttribute("x-palm-disable-auto-cap",!0),c.setAttribute("wrap","off"),c.setAttribute("autocorrect","off"),c.setAttribute("autocapitalize","off"),c.setAttribute("spellcheck",!1),c.style.opacity="0",e.insertBefore(c,e.firstChild);var t="\n aaaa a\n",i=!1,n=!1,o=!1,r=!1,d="",s=!0;try{var a=document.activeElement===c}catch(e){}F.addListener(c,"blur",function(e){l.onBlur(e),a=!1}),F.addListener(c,"focus",function(e){a=!0,l.onFocus(e),p()}),this.focus=function(){if(d)return c.focus();c.style.position="fixed",c.focus()},this.blur=function(){c.blur()},this.isFocused=function(){return a};var u=M.delayedCall(function(){a&&p(s)}),h=M.delayedCall(function(){r||(c.value=t,a&&p())});function p(e){if(!r){if(r=!0,g)t=0,o=e?0:c.value.length-1;else var t=4,o=5;try{c.setSelectionRange(t,o)}catch(e){}r=!1}}function f(){r||(c.value=t,D.isWebKit&&h.schedule())}D.isWebKit||l.addEventListener("changeSelection",function(){l.selection.isEmpty()!=s&&(s=!s,u.schedule())}),f(),a&&l.onFocus();var g=null;this.setInputHandler=function(e){g=e};var m=(this.getInputHandler=function(){return g},!1),v=function(e){4===c.selectionStart&&5===c.selectionEnd||(g&&(e=g(e),g=null),o?(p(),e&&l.onPaste(e),o=!1):e==t.substr(0)&&4===c.selectionStart?m?l.execCommand("del",{source:"ace"}):l.execCommand("backspace",{source:"ace"}):i||(e.substring(0,9)==t&&e.length>t.length?e=e.substr(9):e.substr(0,4)==t.substr(0,4)?e=e.substr(4,e.length-t.length+1):e.charAt(e.length-1)==t.charAt(0)&&(e=e.slice(0,-1)),e==t.charAt(0)||e.charAt(e.length-1)==t.charAt(0)&&(e=e.slice(0,-1)),e&&l.onTextInput(e)),i&&(i=!1),m&&(m=!1))},b=function(e){if(!r){var t=c.value;v(t),f()}},w=function(e,t,o){var i=e.clipboardData||window.clipboardData;if(i&&!R){var n=I||o?"Text":"text/plain";try{return t?!1!==i.setData(n,t):i.getData(n)}catch(e){if(!o)return w(e,t,!0)}}},y=function(e,t){var o=l.getCopyText();if(!o)return F.preventDefault(e);w(e,o)?(D.isIOS&&(n=t,c.value="\n aa"+o+"a a\n",c.setSelectionRange(4,4+o.length),i={value:o}),t?l.onCut():l.onCopy(),D.isIOS||F.preventDefault(e)):(i=!0,c.value=o,c.select(),setTimeout(function(){i=!1,f(),p(),t?l.onCut():l.onCopy()}))};F.addCommandKeyListener(c,l.onCommandKey.bind(l)),F.addListener(c,"select",function(e){var t;0===(t=c).selectionStart&&t.selectionEnd===t.value.length?(l.selectAll(),p()):g&&p(l.selection.isEmpty())}),F.addListener(c,"input",b),F.addListener(c,"cut",function(e){y(e,!0)}),F.addListener(c,"copy",function(e){y(e,!1)}),F.addListener(c,"paste",function(e){var t=w(e);"string"==typeof t?(t&&l.onPaste(t,e),D.isIE&&setTimeout(p),F.preventDefault(e)):(c.value="",o=!0)});var x,_=function(){if(r&&l.onCompositionUpdate&&!l.$readOnly){var e=c.value.replace(/\x01/g,"");if(r.lastValue!==e&&(l.onCompositionUpdate(e),r.lastValue&&l.undo(),r.canUndo&&(r.lastValue=e),r.lastValue)){var t=l.selection.getRange();l.insert(r.lastValue),l.session.markUndoGroup(),r.range=l.selection.getRange(),l.selection.setRange(t),l.selection.clearSelection()}}},C=function(e){if(l.onCompositionEnd&&!l.$readOnly){var t=r;r=!1;var o=setTimeout(function(){o=null;var e=c.value.replace(/\x01/g,"");r||(e==t.lastValue?f():!t.lastValue&&e&&(f(),v(e)))});g=function(e){return o&&clearTimeout(o),(e=e.replace(/\x01/g,""))==t.lastValue?"":(t.lastValue&&o&&l.undo(),e)},l.onCompositionEnd(),l.removeListener("mousedown",C),"compositionend"==e.type&&t.range&&l.selection.setRange(t.range),(D.isChrome&&53<=D.isChrome||D.isWebKit&&603<=D.isWebKit)&&b()}},A=M.delayedCall(_,50);function k(){clearTimeout(x),x=setTimeout(function(){d&&(c.style.cssText=d,d=""),null==l.renderer.$keepTextAreaAtCursor&&(l.renderer.$keepTextAreaAtCursor=!0,l.renderer.$moveTextAreaToCursor())},0)}F.addListener(c,"compositionstart",function(e){r||!l.onCompositionStart||l.$readOnly||((r={}).canUndo=l.session.$undoManager,l.onCompositionStart(),setTimeout(_,0),l.on("mousedown",C),r.canUndo&&!l.selection.isEmpty()&&(l.insert(""),l.session.markUndoGroup(),l.selection.clearSelection()),l.session.markUndoGroup())}),D.isGecko?F.addListener(c,"text",function(){A.schedule()}):(F.addListener(c,"keyup",function(){A.schedule()}),F.addListener(c,"keydown",function(){A.schedule()})),F.addListener(c,"compositionend",C),this.getElement=function(){return c},this.setReadOnly=function(e){c.readOnly=e},this.onContextMenu=function(e){m=!0,p(l.selection.isEmpty()),l._emit("nativecontextmenu",{target:l,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,t){d||(d=c.style.cssText),c.style.cssText=(t?"z-index:100000;":"")+"height:"+c.style.height+";"+(D.isIE?"opacity:0.1;":"");var o=l.container.getBoundingClientRect(),i=L.computedStyle(l.container),n=o.top+(parseInt(i.borderTopWidth)||0),r=o.left+(parseInt(o.borderLeftWidth)||0),s=o.bottom-n-c.clientHeight-2,a=function(e){c.style.left=e.clientX-r-2+"px",c.style.top=Math.min(e.clientY-n-2,s)+"px"};a(e),"mousedown"==e.type&&(l.renderer.$keepTextAreaAtCursor&&(l.renderer.$keepTextAreaAtCursor=null),clearTimeout(x),D.isWin&&F.capture(l.container,a,k))},this.onContextMenuClose=k;var E=function(e){l.textInput.onContextMenu(e),k()};if(F.addListener(c,"mouseup",E),F.addListener(c,"mousedown",function(e){e.preventDefault(),k()}),F.addListener(l.renderer.scroller,"contextmenu",E),F.addListener(c,"contextmenu",E),D.isIOS){var $=null,S=!1;e.addEventListener("keydown",function(e){$&&clearTimeout($),S=!0}),e.addEventListener("keyup",function(e){$=setTimeout(function(){S=!1},100)});var j=function(e){if(document.activeElement===c&&!S){if(n)return setTimeout(function(){n=!1},100);var t=c.selectionStart,o=c.selectionEnd;if(c.setSelectionRange(4,5),t==o)switch(t){case 0:l.onCommandKey(null,0,T.up);break;case 1:l.onCommandKey(null,0,T.home);break;case 2:l.onCommandKey(null,B.option,T.left);break;case 4:l.onCommandKey(null,0,T.left);break;case 5:l.onCommandKey(null,0,T.right);break;case 7:l.onCommandKey(null,B.option,T.right);break;case 8:l.onCommandKey(null,0,T.end);break;case 9:l.onCommandKey(null,0,T.down)}else{switch(o){case 6:l.onCommandKey(null,B.shift,T.right);break;case 7:l.onCommandKey(null,B.shift|B.option,T.right);break;case 8:l.onCommandKey(null,B.shift,T.end);break;case 9:l.onCommandKey(null,B.shift,T.down)}switch(t){case 0:l.onCommandKey(null,B.shift,T.up);break;case 1:l.onCommandKey(null,B.shift,T.home);break;case 2:l.onCommandKey(null,B.shift|B.option,T.left);break;case 3:l.onCommandKey(null,B.shift,T.left)}}}};document.addEventListener("selectionchange",j),l.on("destroy",function(){document.removeEventListener("selectionchange",j)})}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],function(e,t,o){"use strict";var j=e("../lib/event"),F=e("../lib/useragent"),D=e("../lib/dom"),L=e("../lib/lang"),M=F.isChrome<18,T=F.isIE,B=e("./textinput_ios").TextInput;t.TextInput=function(e,l){if(F.isIOS)return B.call(this,e,l);var c=D.createElement("textarea");c.className="ace_text-input",c.setAttribute("wrap","off"),c.setAttribute("autocorrect","off"),c.setAttribute("autocapitalize","off"),c.setAttribute("spellcheck",!1),c.style.opacity="0",e.insertBefore(c,e.firstChild);var t="\u2028\u2028",i=!1,o=!1,n=!1,d="",r=!0;try{var s=document.activeElement===c}catch(e){}j.addListener(c,"blur",function(e){l.onBlur(e),s=!1}),j.addListener(c,"focus",function(e){s=!0,l.onFocus(e),h()}),this.focus=function(){if(d)return c.focus();var e=c.style.top;c.style.position="fixed",c.style.top="0px",c.focus(),setTimeout(function(){c.style.position="","0px"==c.style.top&&(c.style.top=e)},0)},this.blur=function(){c.blur()},this.isFocused=function(){return s};var a=L.delayedCall(function(){s&&h(r)}),u=L.delayedCall(function(){n||(c.value=t,s&&h())});function h(e){if(!n){if(n=!0,f)var t=0,o=e?0:c.value.length-1;else t=e?2:1,o=2;try{c.setSelectionRange(t,o)}catch(e){}n=!1}}function p(){n||(c.value=t,F.isWebKit&&u.schedule())}F.isWebKit||l.addEventListener("changeSelection",function(){l.selection.isEmpty()!=r&&(r=!r,a.schedule())}),p(),s&&l.onFocus();var f=null;this.setInputHandler=function(e){f=e};var g=(this.getInputHandler=function(){return f},!1),m=function(e){f&&(e=f(e),f=null),o?(h(),e&&l.onPaste(e),o=!1):e==t.charAt(0)?g?l.execCommand("del",{source:"ace"}):l.execCommand("backspace",{source:"ace"}):(e.substring(0,2)==t?e=e.substr(2):e.charAt(0)==t.charAt(0)?e=e.substr(1):e.charAt(e.length-1)==t.charAt(0)&&(e=e.slice(0,-1)),e.charAt(e.length-1)==t.charAt(0)&&(e=e.slice(0,-1)),e&&l.onTextInput(e)),g&&(g=!1)},v=function(e){if(!n){var t=c.value;m(t),p()}},b=function(e,t,o){var i=e.clipboardData||window.clipboardData;if(i&&!M){var n=T||o?"Text":"text/plain";try{return t?!1!==i.setData(n,t):i.getData(n)}catch(e){if(!o)return b(e,t,!0)}}},w=function(e,t){var o=l.getCopyText();if(!o)return j.preventDefault(e);b(e,o)?(t?l.onCut():l.onCopy(),j.preventDefault(e)):(i=!0,c.value=o,c.select(),setTimeout(function(){i=!1,p(),h(),t?l.onCut():l.onCopy()}))},y=function(e){w(e,!0)},x=function(e){w(e,!1)},_=function(e){var t=b(e);"string"==typeof t?(t&&l.onPaste(t,e),F.isIE&&setTimeout(h),j.preventDefault(e)):(c.value="",o=!0)};j.addCommandKeyListener(c,l.onCommandKey.bind(l)),j.addListener(c,"select",function(e){var t;i?i=!1:0===(t=c).selectionStart&&t.selectionEnd===t.value.length?(l.selectAll(),h()):f&&h(l.selection.isEmpty())}),j.addListener(c,"input",v),j.addListener(c,"cut",y),j.addListener(c,"copy",x),j.addListener(c,"paste",_),"oncut"in c&&"oncopy"in c&&"onpaste"in c||j.addListener(e,"keydown",function(e){if((!F.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:x(e);break;case 86:_(e);break;case 88:y(e)}});var C,A=function(){if(n&&l.onCompositionUpdate&&!l.$readOnly){var e=c.value.replace(/\u2028/g,"");if(n.lastValue!==e&&(l.onCompositionUpdate(e),n.lastValue&&l.undo(),n.canUndo&&(n.lastValue=e),n.lastValue)){var t=l.selection.getRange();l.insert(n.lastValue),l.session.markUndoGroup(),n.range=l.selection.getRange(),l.selection.setRange(t),l.selection.clearSelection()}}},k=function(e){if(l.onCompositionEnd&&!l.$readOnly){var t=n;n=!1;var o=setTimeout(function(){o=null;var e=c.value.replace(/\u2028/g,"");n||(e==t.lastValue?p():!t.lastValue&&e&&(p(),m(e)))});f=function(e){return o&&clearTimeout(o),(e=e.replace(/\u2028/g,""))==t.lastValue?"":(t.lastValue&&o&&l.undo(),e)},l.onCompositionEnd(),l.removeListener("mousedown",k),"compositionend"==e.type&&t.range&&l.selection.setRange(t.range),(F.isChrome&&53<=F.isChrome||F.isWebKit&&603<=F.isWebKit)&&v()}},E=L.delayedCall(A,50);function $(){clearTimeout(C),C=setTimeout(function(){d&&(c.style.cssText=d,d=""),null==l.renderer.$keepTextAreaAtCursor&&(l.renderer.$keepTextAreaAtCursor=!0,l.renderer.$moveTextAreaToCursor())},0)}j.addListener(c,"compositionstart",function(e){n||!l.onCompositionStart||l.$readOnly||((n={}).canUndo=l.session.$undoManager,l.onCompositionStart(),setTimeout(A,0),l.on("mousedown",k),n.canUndo&&!l.selection.isEmpty()&&(l.insert(""),l.session.markUndoGroup(),l.selection.clearSelection()),l.session.markUndoGroup())}),F.isGecko?j.addListener(c,"text",function(){E.schedule()}):(j.addListener(c,"keyup",function(){E.schedule()}),j.addListener(c,"keydown",function(){E.schedule()})),j.addListener(c,"compositionend",k),this.getElement=function(){return c},this.setReadOnly=function(e){c.readOnly=e},this.onContextMenu=function(e){g=!0,h(l.selection.isEmpty()),l._emit("nativecontextmenu",{target:l,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,t){d||(d=c.style.cssText),c.style.cssText=(t?"z-index:100000;":"")+"height:"+c.style.height+";"+(F.isIE?"opacity:0.1;":"");var o=l.container.getBoundingClientRect(),i=D.computedStyle(l.container),n=o.top+(parseInt(i.borderTopWidth)||0),r=o.left+(parseInt(o.borderLeftWidth)||0),s=o.bottom-n-c.clientHeight-2,a=function(e){c.style.left=e.clientX-r-2+"px",c.style.top=Math.min(e.clientY-n-2,s)+"px"};a(e),"mousedown"==e.type&&(l.renderer.$keepTextAreaAtCursor&&(l.renderer.$keepTextAreaAtCursor=null),clearTimeout(C),F.isWin&&j.capture(l.container,a,$))},this.onContextMenuClose=$;var S=function(e){l.textInput.onContextMenu(e),$()};j.addListener(c,"mouseup",S),j.addListener(c,"mousedown",function(e){e.preventDefault(),$()}),j.addListener(l.renderer.scroller,"contextmenu",S),j.addListener(c,"contextmenu",S)}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,o){"use strict";e("../lib/dom"),e("../lib/event");var s=e("../lib/useragent");function i(t){t.$clickSelection=null;var e=t.editor;e.setDefaultHandler("mousedown",this.onMouseDown.bind(t)),e.setDefaultHandler("dblclick",this.onDoubleClick.bind(t)),e.setDefaultHandler("tripleclick",this.onTripleClick.bind(t)),e.setDefaultHandler("quadclick",this.onQuadClick.bind(t)),e.setDefaultHandler("mousewheel",this.onMouseWheel.bind(t)),e.setDefaultHandler("touchmove",this.onTouchMove.bind(t));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(e){t[e]=this[e]},this),t.selectByLines=this.extendSelectionBy.bind(t,"getLineRange"),t.selectByWords=this.extendSelectionBy.bind(t,"getWordRange")}function l(e,t){if(e.start.row==e.end.row)var o=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)o=2*t.row-e.start.row-e.end.row;else var o=t.column-4;return o<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),o=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,n=e.getButton();if(0!==n){var r=i.getSelectionRange().isEmpty();return i.$blockScrolling++,(r||1==n)&&i.selection.moveToPosition(o),i.$blockScrolling--,void(2==n&&(i.textInput.onContextMenu(e.domEvent),s.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(o,1<e.domEvent._clicks),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;o.$blockScrolling++,this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(e):t||o.selection.moveToPosition(e),t||this.select(),o.renderer.scroller.setCapture&&o.renderer.scroller.setCapture(),o.setStyle("ace_selecting"),this.setState("select"),o.$blockScrolling--},this.select=function(){var e,t=this.editor,o=t.renderer.screenToTextCoordinates(this.x,this.y);if(t.$blockScrolling++,this.$clickSelection){var i=this.$clickSelection.comparePoint(o);if(-1==i)e=this.$clickSelection.end;else if(1==i)e=this.$clickSelection.start;else{var n=l(this.$clickSelection,o);o=n.cursor,e=n.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(o),t.$blockScrolling--,t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,o=this.editor,i=o.renderer.screenToTextCoordinates(this.x,this.y),n=o.selection[e](i.row,i.column);if(o.$blockScrolling++,this.$clickSelection){var r=this.$clickSelection.comparePoint(n.start),s=this.$clickSelection.comparePoint(n.end);if(-1==r&&s<=0)t=this.$clickSelection.end,n.end.row==i.row&&n.end.column==i.column||(i=n.start);else if(1==s&&0<=r)t=this.$clickSelection.start,n.start.row==i.row&&n.start.column==i.column||(i=n.end);else if(-1==r&&1==s)i=n.end,t=n.start;else{var a=l(this.$clickSelection,i);i=a.cursor,t=a.anchor}o.selection.setSelectionAnchor(t.row,t.column)}o.selection.selectToPosition(i),o.$blockScrolling--,o.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,o,i,n=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,o=this.x,i=this.y,Math.sqrt(Math.pow(o-e,2)+Math.pow(i-t,2))),r=Date.now();(0<n||r-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),o=this.editor,i=o.session.getBracketRange(t);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=o.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var i=o.getSelectionRange();i.isMultiLine()&&i.contains(t.row,t.column)?(this.$clickSelection=o.selection.getLineRange(i.start.row),this.$clickSelection.end=o.selection.getLineRange(i.end.row).end):this.$clickSelection=o.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,i=e.domEvent.timeStamp,n=i-o.t,r=e.wheelX/n,s=e.wheelY/n;n<250&&(r=(r+o.vx)/2,s=(s+o.vy)/2);var a=Math.abs(r/s),l=!1;if(1<=a&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)o.allowed=i;else if(i-o.allowed<250){Math.abs(r)<=1.1*Math.abs(o.vx)&&Math.abs(s)<=1.1*Math.abs(o.vy)?(l=!0,o.allowed=i):o.allowed=0}return o.t=i,o.vx=r,o.vy=s,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){this.editor._emit("mousewheel",e)}}).call(i.prototype),t.DefaultHandlers=i}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(e,t,o){"use strict";e("./lib/oop");var i=e("./lib/dom");function n(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){i.setInnerText(this.getElement(),e)},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,o){null!=e&&this.setText(e),null!=t&&null!=o&&this.setPosition(t,o),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(n.prototype),t.Tooltip=n}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(e,t,o){"use strict";var i=e("../lib/dom"),n=e("../lib/oop"),r=e("../lib/event"),s=e("../tooltip").Tooltip;function f(e){s.call(this,e)}n.inherits(f,s),function(){this.setPosition=function(e,t){var o=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,n=this.getWidth(),r=this.getHeight();o<(e+=15)+n&&(e-=e+n-o),i<(t+=15)+r&&(t-=20+r),s.prototype.setPosition.call(this,e,t)}}.call(f.prototype),t.GutterHandler=function(s){var o,a,l,c=s.editor,d=c.renderer.$gutterLayer,u=new f(c.container);function h(){o&&(o=clearTimeout(o)),l&&(u.hide(),l=null,c._signal("hideGutterTooltip",u),c.removeEventListener("mousewheel",h))}function p(e){u.setPosition(e.x,e.y)}s.editor.setDefaultHandler("guttermousedown",function(e){if(c.isFocused()&&0==e.getButton()&&"foldWidgets"!=d.getRegion(e)){var t=e.getDocumentPosition().row,o=c.session.selection;if(e.getShiftKey())o.selectTo(t,0);else{if(2==e.domEvent.detail)return c.selectAll(),e.preventDefault();s.$clickSelection=c.selection.getLineRange(t)}return s.setState("selectByLines"),s.captureMouse(e),e.preventDefault()}}),s.editor.setDefaultHandler("guttermousemove",function(e){var t=e.domEvent.target||e.domEvent.srcElement;if(i.hasCssClass(t,"ace_fold-widget"))return h();l&&s.$tooltipFollowsMouse&&p(e),a=e,o||(o=setTimeout(function(){o=null,a&&!s.isMousePressed?function(){var e=a.getDocumentPosition().row,t=d.$annotations[e];if(!t)return h();if(e==c.session.getLength()){var o=c.renderer.pixelToScreenCoordinates(0,a.y).row,i=a.$pos;if(o>c.session.documentToScreenRow(i.row,i.column))return h()}if(l!=t)if(l=t.text.join("<br/>"),u.setHtml(l),u.show(),c._signal("showGutterTooltip",u),c.on("mousewheel",h),s.$tooltipFollowsMouse)p(a);else{var n=a.domEvent.target.getBoundingClientRect(),r=u.getElement().style;r.left=n.right+"px",r.top=n.bottom+"px"}}():h()},50))}),r.addListener(c.renderer.$gutter,"mouseout",function(e){a=null,l&&!o&&(o=setTimeout(function(){o=null,h()},50))}),c.on("changeSession",h)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,o){"use strict";var i=e("../lib/event"),n=e("../lib/useragent"),r=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return i.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=n.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(r.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,o){"use strict";var C=e("../lib/dom"),A=e("../lib/event"),k=e("../lib/useragent");function i(t){var p=t.editor,i=C.createElement("img");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",k.isOpera&&(i.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(e){t[e]=this[e]},this),p.addEventListener("mousedown",this.onMouseDown.bind(t));var o,f,g,e,n,s,r,a,m,l,c,d=p.container,u=0;function h(){var e,t,o,i,n,r=s;s=p.renderer.screenToTextCoordinates(f,g),e=s,t=r,o=Date.now(),i=!t||e.row!=t.row,n=!t||e.column!=t.column,!l||i||n?(p.$blockScrolling+=1,p.moveCursorToPosition(e),p.$blockScrolling-=1,l=o,c={x:f,y:g}):5<E(c.x,c.y,f,g)?l=null:200<=o-l&&(p.renderer.scrollCursorIntoView(),l=null),function(e,t){var o=Date.now(),i=p.renderer.layerConfig.lineHeight,n=p.renderer.layerConfig.characterWidth,r=p.renderer.scroller.getBoundingClientRect(),s={x:{left:f-r.left,right:r.right-f},y:{top:g-r.top,bottom:r.bottom-g}},a=Math.min(s.x.left,s.x.right),l=Math.min(s.y.top,s.y.bottom),c={row:e.row,column:e.column};a/n<=2&&(c.column+=s.x.left<s.x.right?-3:2),l/i<=1&&(c.row+=s.y.top<s.y.bottom?-1:1);var d=e.row!=c.row,u=e.column!=c.column,h=!t||e.row!=t.row;d||u&&!h?m?200<=o-m&&p.renderer.scrollCursorIntoView(c):m=o:m=null}(s,r)}function v(){n=p.selection.toOrientedRange(),o=p.session.addMarker(n,"ace_selection",p.getSelectionStyle()),p.clearSelection(),p.isFocused()&&p.renderer.$cursorLayer.setBlinking(!1),clearInterval(e),h(),e=setInterval(h,20),u=0,A.addListener(document,"mousemove",y)}function b(){clearInterval(e),p.session.removeMarker(o),o=null,p.$blockScrolling+=1,p.selection.fromOrientedRange(n),p.$blockScrolling-=1,p.isFocused()&&!a&&p.renderer.$cursorLayer.setBlinking(!p.getReadOnly()),u=0,l=m=s=n=null,A.removeListener(document,"mousemove",y)}this.onDragStart=function(e){if(this.cancelDrag||!d.draggable){var t=this;return setTimeout(function(){t.startSelect(),t.captureMouse(e)},0),e.preventDefault()}n=p.getSelectionRange();var o=e.dataTransfer;o.effectAllowed=p.getReadOnly()?"copy":"copyMove",k.isOpera&&(p.container.appendChild(i),i.scrollTop=0),o.setDragImage&&o.setDragImage(i,0,0),k.isOpera&&p.container.removeChild(i),o.clearData(),o.setData("Text",p.session.getTextRange()),a=!0,this.setState("drag")},this.onDragEnd=function(e){if(d.draggable=!1,a=!1,this.setState(null),!p.getReadOnly()){var t=e.dataTransfer.dropEffect;r||"move"!=t||p.session.remove(p.getSelectionRange()),p.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!p.getReadOnly()&&x(e.dataTransfer))return f=e.clientX,g=e.clientY,o||v(),u++,e.dataTransfer.dropEffect=r=_(e),A.preventDefault(e)},this.onDragOver=function(e){if(!p.getReadOnly()&&x(e.dataTransfer))return f=e.clientX,g=e.clientY,o||(v(),u++),null!==w&&(w=null),e.dataTransfer.dropEffect=r=_(e),A.preventDefault(e)},this.onDragLeave=function(e){if(--u<=0&&o)return b(),r=null,A.preventDefault(e)},this.onDrop=function(e){if(s){var t=e.dataTransfer;if(a)switch(r){case"move":n=n.contains(s.row,s.column)?{start:s,end:s}:p.moveText(n,s);break;case"copy":n=p.moveText(n,s,!0)}else{var o=t.getData("Text");n={start:s,end:p.session.insert(s,o)},p.focus(),r=null}return b(),A.preventDefault(e)}},A.addListener(d,"dragstart",this.onDragStart.bind(t)),A.addListener(d,"dragend",this.onDragEnd.bind(t)),A.addListener(d,"dragenter",this.onDragEnter.bind(t)),A.addListener(d,"dragover",this.onDragOver.bind(t)),A.addListener(d,"dragleave",this.onDragLeave.bind(t)),A.addListener(d,"drop",this.onDrop.bind(t));var w=null;function y(){null==w&&(w=setTimeout(function(){null!=w&&o&&b()},20))}function x(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return"text/plain"==e||"Text"==e})}function _(e){var t=["copy","copymove","all","uninitialized"],o=k.isMac?e.altKey:e.ctrlKey,i="uninitialized";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var n="none";return o&&0<=t.indexOf(i)?n="copy":0<=["move","copymove","linkmove","all","uninitialized"].indexOf(i)?n="move":0<=t.indexOf(i)&&(n="copy"),n}}function E(e,t,o,i){return Math.sqrt(Math.pow(o-e,2)+Math.pow(i-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=k.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;k.isIE&&"dragReady"==this.state&&(3<E(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&t.dragDrop());"dragWait"===this.state&&(0<E(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,o=e.inSelection(),i=e.getButton();if(1===(e.domEvent.detail||1)&&0===i&&o){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var n=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in n&&(n.unselectable="on"),t.getDragDelay()){if(k.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(i.prototype),t.DragdropHandler=i}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t,o){"use strict";var n=e("./dom");t.get=function(e,t){var o=new XMLHttpRequest;o.open("GET",e,!0),o.onreadystatechange=function(){4===o.readyState&&t(o.responseText)},o.send(null)},t.loadScript=function(e,o){var t=n.getDocumentHead(),i=document.createElement("script");i.src=e,t.appendChild(i),i.onload=i.onreadystatechange=function(e,t){!t&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,t||o())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t,o){"use strict";var i={},r=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};i._emit=i._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[e]||[],i=this._defaultHandlers[e];if(o.length||i){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=r),t.preventDefault||(t.preventDefault=s),o=o.slice();for(var n=0;n<o.length&&(o[n](t,this),!t.propagationStopped);n++);return i&&!t.defaultPrevented?i(t,this):void 0}},i._signal=function(e,t){var o=(this._eventRegistry||{})[e];if(o){o=o.slice();for(var i=0;i<o.length;i++)o[i](t,this)}},i.once=function(t,o){var i=this;o&&this.addEventListener(t,function e(){i.removeEventListener(t,e),o.apply(null,arguments)})},i.setDefaultHandler=function(e,t){var o=this._defaultHandlers;if(o||(o=this._defaultHandlers={_disabled_:{}}),o[e]){var i=o[e],n=o._disabled_[e];n||(o._disabled_[e]=n=[]),n.push(i);var r=n.indexOf(t);-1!=r&&n.splice(r,1)}o[e]=t},i.removeDefaultHandler=function(e,t){var o=this._defaultHandlers;if(o){var i=o._disabled_[e];if(o[e]==t){o[e];i&&this.setDefaultHandler(e,i.pop())}else if(i){var n=i.indexOf(t);-1!=n&&i.splice(n,1)}}},i.on=i.addEventListener=function(e,t,o){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[e];return i||(i=this._eventRegistry[e]=[]),-1==i.indexOf(t)&&i[o?"unshift":"push"](t),t},i.off=i.removeListener=i.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[e];if(o){var i=o.indexOf(t);-1!==i&&o.splice(i,1)}},i.removeAllListeners=function(e){this._eventRegistry&&(this._eventRegistry[e]=[])},t.EventEmitter=i}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,o){var n=e("./oop"),i=e("./event_emitter").EventEmitter,r={setOptions:function(t){Object.keys(t).forEach(function(e){this.setOption(e,t[e])},this)},getOptions:function(e){var t={};return e?Array.isArray(e)||(t=e,e=Object.keys(t)):e=Object.keys(this.$options),e.forEach(function(e){t[e]=this.getOption(e)},this),t},setOption:function(e,t){if(this["$"+e]!==t){var o=this.$options[e];if(!o)return s('misspelled option "'+e+'"');if(o.forwardTo)return this[o.forwardTo]&&this[o.forwardTo].setOption(e,t);o.handlesSet||(this["$"+e]=t),o&&o.set&&o.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:s('misspelled option "'+e+'"')}};function s(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function a(e,t){var o=new Error(e);o.data=t,"object"==typeof console&&console.error&&console.error(o),setTimeout(function(){throw o})}var l=function(){this.$defaultOptions={}};(function(){n.implement(this,i),this.defineOptions=function(o,e,i){return o.$options||(this.$defaultOptions[e]=o.$options={}),Object.keys(i).forEach(function(e){var t=i[e];"string"==typeof t&&(t={forwardTo:t}),t.name||(t.name=e),"initialValue"in(o.$options[t.name]=t)&&(o["$"+t.name]=t.initialValue)}),n.implement(o,r),this},this.resetOptions=function(o){Object.keys(o.$options).forEach(function(e){var t=o.$options[e];"value"in t&&o.setOption(e,t.value)})},this.setDefaultValue=function(e,t,o){var i=this.$defaultOptions[e]||(this.$defaultOptions[e]={});i[t]&&(i.forwardTo?this.setDefaultValue(i.forwardTo,t,o):i[t].value=o)},this.setDefaultValues=function(t,o){Object.keys(o).forEach(function(e){this.setDefaultValue(t,e,o[e])},this)},this.warn=s,this.reportError=a}).call(l.prototype),t.AppConfig=l}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],function(g,m,v){var e=g("./lib/lang"),r=(g("./lib/oop"),g("./lib/net")),t=g("./lib/app_config").AppConfig;v.exports=m=new t;var b=function(){return this||"undefined"!=typeof window&&window}(),w={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{}};function o(e){if(b&&b.document){w.packaged=e||g.packaged||v.packaged||b.define&&define.packaged;for(var t,o={},i="",n=document.currentScript||document._currentScript,r=(n&&n.ownerDocument||document).getElementsByTagName("script"),s=0;s<r.length;s++){var a=r[s],l=a.src||a.getAttribute("src");if(l){for(var c=a.attributes,d=0,u=c.length;d<u;d++){var h=c[d];0===h.name.indexOf("data-ace-")&&(o[(t=h.name.replace(/^data-ace-/,""),t.replace(/-(.)/g,function(e,t){return t.toUpperCase()}))]=h.value)}var p=l.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);p&&(i=p[1])}}for(var f in i&&(o.base=o.base||i,o.packaged=!0),o.basePath=o.base,o.workerPath=o.workerPath||o.base,o.modePath=o.modePath||o.base,o.themePath=o.themePath||o.base,delete o.base,o)void 0!==o[f]&&m.set(f,o[f])}}m.get=function(e){if(!w.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return w[e]},m.set=function(e,t){if(!w.hasOwnProperty(e))throw new Error("Unknown config key: "+e);w[e]=t},m.all=function(){return e.copyObject(w)},m.moduleUrl=function(e,t){if(w.$moduleUrls[e])return w.$moduleUrls[e];var o=e.split("/"),i="snippets"==(t=t||o[o.length-2]||"")?"/":"-",n=o[o.length-1];if("worker"==t&&"-"==i){var r=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");n=n.replace(r,"")}(!n||n==t)&&1<o.length&&(n=o[o.length-2]);var s=w[t+"Path"];return null==s?s=w.basePath:"/"==i&&(t=i=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+t+i+n+this.get("suffix")},m.setModuleUrl=function(e,t){return w.$moduleUrls[e]=t},m.$loading={},m.loadModule=function(o,e){var t,i;Array.isArray(o)&&(i=o[0],o=o[1]);try{t=g(o)}catch(e){}if(t&&!m.$loading[o])return e&&e(t);if(m.$loading[o]||(m.$loading[o]=[]),m.$loading[o].push(e),!(1<m.$loading[o].length)){var n=function(){g([o],function(t){m._emit("load.module",{name:o,module:t});var e=m.$loading[o];m.$loading[o]=null,e.forEach(function(e){e&&e(t)})})};if(!m.get("packaged"))return n();r.loadScript(m.moduleUrl(o,i),n)}},o(!0),m.init=o}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/config"],function(e,t,o){"use strict";var l=e("../lib/event"),c=e("../lib/useragent"),i=e("./default_handlers").DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,d=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,n=e("../config"),r=function(n){var r=this;this.editor=n,new i(this),new s(this),new a(this);var e=function(e){(!document.hasFocus||!document.hasFocus()||!n.isFocused()&&document.activeElement==(n.textInput&&n.textInput.getElement()))&&window.focus(),n.focus()},t=n.renderer.getMouseEventTarget();l.addListener(t,"click",this.onMouseEvent.bind(this,"click")),l.addListener(t,"mousemove",this.onMouseMove.bind(this,"mousemove")),l.addMultiMouseDownListener([t,n.renderer.scrollBarV&&n.renderer.scrollBarV.inner,n.renderer.scrollBarH&&n.renderer.scrollBarH.inner,n.textInput&&n.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent"),l.addMouseWheelListener(n.container,this.onMouseWheel.bind(this,"mousewheel")),l.addTouchMoveListener(n.container,this.onTouchMove.bind(this,"touchmove"));var o=n.renderer.$gutter;l.addListener(o,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),l.addListener(o,"click",this.onMouseEvent.bind(this,"gutterclick")),l.addListener(o,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),l.addListener(o,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),l.addListener(t,"mousedown",e),l.addListener(o,"mousedown",e),c.isIE&&n.renderer.scrollBarV&&(l.addListener(n.renderer.scrollBarV.element,"mousedown",e),l.addListener(n.renderer.scrollBarH.element,"mousedown",e)),n.on("mousemove",function(e){if(!r.state&&!r.$dragDelay&&r.$dragEnabled){var t=n.renderer.screenToTextCoordinates(e.x,e.y),o=n.session.selection.getRange(),i=n.renderer;!o.isEmpty()&&o.insideStart(t.row,t.column)?i.setCursorStyle("default"):i.setCursorStyle("")}})};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new d(t,this.editor))},this.onMouseMove=function(e,t){var o=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;o&&o.length&&this.editor._emit(e,new d(t,this.editor))},this.onMouseWheel=function(e,t){var o=new d(t,this.editor);o.speed=2*this.$scrollSpeed,o.wheelX=t.wheelX,o.wheelY=t.wheelY,this.editor._emit(e,o)},this.onTouchMove=function(e,t){var o=new d(t,this.editor);o.speed=1,o.wheelX=t.wheelX,o.wheelY=t.wheelY,this.editor._emit(e,o)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var o=this.editor.renderer;o.$keepTextAreaAtCursor&&(o.$keepTextAreaAtCursor=null);var i=this,n=function(e){if(e){if(c.isWebKit&&!e.which&&i.releaseMouse)return i.releaseMouse();i.x=e.clientX,i.y=e.clientY,t&&t(e),i.mouseEvent=new d(e,i.editor),i.$mouseMoved=!0}},r=function(e){clearInterval(a),s(),i[i.state+"End"]&&i[i.state+"End"](e),i.state="",null==o.$keepTextAreaAtCursor&&(o.$keepTextAreaAtCursor=!0,o.$moveTextAreaToCursor()),i.isMousePressed=!1,i.$onCaptureMouseMove=i.releaseMouse=null,e&&i.onMouseEvent("mouseup",e)},s=function(){i[i.state]&&i[i.state](),i.$mouseMoved=!1};if(c.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout(function(){r(e)});i.$onCaptureMouseMove=n,i.releaseMouse=l.capture(this.editor.container,n,r);var a=setInterval(s,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var t=function(e){e&&e.domEvent&&"contextmenu"!=e.domEvent.type||(this.editor.off("nativecontextmenu",t),e&&e.domEvent&&l.stopEvent(e.domEvent))}.bind(this);setTimeout(t,10),this.editor.on("nativecontextmenu",t)}}).call(r.prototype),n.defineOptions(r.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:c.isMac?150:0},dragEnabled:{initialValue:!0},focusTimout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=r}),ace.define("ace/mouse/fold_handler",["require","exports","module"],function(e,t,o){"use strict";t.FoldHandler=function(s){s.on("click",function(e){var t=e.getDocumentPosition(),o=s.session,i=o.getFoldAt(t.row,t.column,1);i&&(e.getAccelKey()?o.removeFold(i):o.expandFold(i),e.stop())}),s.on("gutterclick",function(e){if("foldWidgets"==s.renderer.$gutterLayer.getRegion(e)){var t=e.getDocumentPosition().row,o=s.session;o.foldWidgets&&o.foldWidgets[t]&&s.session.onFoldWidgetClick(t,e),s.isFocused()||s.focus(),e.stop()}}),s.on("gutterdblclick",function(e){if("foldWidgets"==s.renderer.$gutterLayer.getRegion(e)){var t=e.getDocumentPosition().row,o=s.session,i=o.getParentFoldRangeData(t,!0),n=i.range||i.firstRange;if(n){t=n.start.row;var r=o.getFoldAt(t,o.getLine(t).length,1);r?o.removeFold(r):(o.addFold("...",n),s.renderer.scrollCursorIntoView({row:n.start.row,column:0}))}e.stop()}})}}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,t,o){"use strict";var n=e("../lib/keys"),l=e("../lib/event"),i=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var o=this.$handlers.indexOf(e);-1!=o&&this.$handlers.splice(o,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==o&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var t=this.$data,o=t.editor;return this.$handlers.map(function(e){return e.getStatusText&&e.getStatusText(o,t)||""}).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,o,i){for(var n,r=!1,s=this.$editor.commands,a=this.$handlers.length;a--&&!((n=this.$handlers[a].handleKeyboard(this.$data,e,t,o,i))&&n.command&&((r="null"==n.command||s.exec(n.command,this.$editor,n.args,i))&&i&&-1!=e&&1!=n.passEvent&&1!=n.command.passEvent&&l.stopEvent(i),r)););return r||-1!=e||(n={command:"insertstring"},r=s.exec("insertstring",this.$editor,t)),r&&this.$editor._signal&&this.$editor._signal("keyboardActivity",n),r},this.onCommandKey=function(e,t,o){var i=n.keyCodeToString(o);this.$callKeyboardHandlers(t,i,o,e)},this.onTextInput=function(e){this.$callKeyboardHandlers(-1,e)}}).call(i.prototype),t.KeyBinding=i}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,l,t){"use strict";var g=0,m=0,v=!1,b=!1,w=!1,y=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],x=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,h=1,p=2,f=3,_=4,C=5,A=6,k=7,E=8,$=9,S=10,j=11,F=12,D=13,L=14,M=15,T=16,B=17,R=18,i=[R,R,R,R,R,R,R,R,R,A,C,A,E,C,R,R,R,R,R,R,R,R,R,R,R,R,R,R,C,C,C,A,E,_,_,j,j,j,_,_,_,_,_,S,$,S,$,$,p,p,p,p,p,p,p,p,p,p,$,_,_,_,_,_,_,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,_,_,_,_,_,_,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,_,_,_,_,R,R,R,R,R,R,C,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,$,_,j,j,j,j,_,_,_,_,u,_,_,R,_,_,j,j,p,p,_,u,_,_,_,p,u,_,_,_,_,_],n=[E,E,E,E,E,E,E,E,E,E,E,R,R,R,u,h,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,E,C,D,L,M,T,B,$,j,j,j,j,j,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,$,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,E];function c(e,t,o){if(!(m<e))if(1!=e||1!=g||b)for(var i,n,r,s,a=o.length,l=0;l<a;){if(t[l]>=e){for(i=l+1;i<a&&t[i]>=e;)i++;for(n=l,r=i-1;n<r;n++,r--)s=o[n],o[n]=o[r],o[r]=s;l=i}l++}else o.reverse()}function I(e,t,o,i){var n,r,s,a,l=t[i];switch(l){case u:case h:v=!1;case _:case f:return l;case p:return v?f:p;case k:return v=!0,h;case E:return _;case $:return i<1||i+1>=t.length||(n=o[i-1])!=p&&n!=f||(r=t[i+1])!=p&&r!=f?_:(v&&(r=f),r==n?r:_);case S:return(n=0<i?o[i-1]:C)==p&&i+1<t.length&&t[i+1]==p?p:_;case j:if(0<i&&o[i-1]==p)return p;if(v)return _;for(a=i+1,s=t.length;a<s&&t[a]==j;)a++;return a<s&&t[a]==p?p:_;case F:for(s=t.length,a=i+1;a<s&&t[a]==F;)a++;if(a<s){var c=e[i],d=1425<=c&&c<=2303||64286==c;if(n=t[a],d&&(n==h||n==k))return h}return i<1||(n=t[i-1])==C?_:o[i-1];case C:return b=!(v=!1),g;case A:return w=!0,_;case D:case L:case T:case B:case M:v=!1;case R:return _}}function O(e){var t=e.charCodeAt(0),o=t>>8;return 0==o?191<t?u:i[t]:5==o?/[\u0591-\u05f4]/.test(e)?h:u:6==o?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?F:/[\u0660-\u0669\u066b-\u066c]/.test(e)?f:1642==t?j:/[\u06f0-\u06f9]/.test(e)?p:k:32==o&&t<=8287?n[255&t]:254==o&&65136<=t?k:_}l.L=u,l.R=h,l.EN=p,l.ON_R=3,l.AN=4,l.R_H=5,l.B=6,l.DOT="·",l.doBidiReorder=function(e,t,o){if(e.length<2)return{};var i=e.split(""),n=new Array(i.length),r=new Array(i.length),s=[];g=o?1:0,function(e,t,o,i){var n=g?x:y,r=null,s=null,a=null,l=0,c=null,d=-1,u=null,h=null,p=[];if(!i)for(u=0,i=[];u<o;u++)i[u]=O(e[u]);for(m=g,w=b=v=!1,h=0;h<o;h++){if(r=l,p[h]=s=I(e,i,p,h),c=240&(l=n[r][s]),l&=15,t[h]=a=n[l][5],0<c)if(16==c){for(u=d;u<h;u++)t[u]=1;d=-1}else d=-1;if(n[l][6])-1==d&&(d=h);else if(-1<d){for(u=d;u<h;u++)t[u]=a;d=-1}i[h]==C&&(t[h]=0),m|=a}if(w)for(u=0;u<o;u++)if(i[u]==A){t[u]=g;for(var f=u-1;0<=f&&i[f]==E;f--)t[f]=g}}(i,s,i.length,t);for(var a=0;a<n.length;n[a]=a,a++);c(2,s,n),c(1,s,n);for(a=0;a<n.length-1;a++)t[a]===f?s[a]=l.AN:s[a]===h&&(t[a]>k&&t[a]<D||t[a]===_||t[a]===R)?s[a]=l.ON_R:0<a&&"ل"===i[a-1]&&/\u0622|\u0623|\u0625|\u0627/.test(i[a])&&(s[a-1]=s[a]=l.R_H,a++);i[i.length-1]===l.DOT&&(s[i.length-1]=l.B);for(a=0;a<n.length;a++)r[a]=s[n[a]];return{logicalFromVisual:n,bidiLevels:r}},l.hasBidiCharacters=function(e,t){for(var o=!1,i=0;i<e.length;i++)t[i]=O(e.charAt(i)),o||t[i]!=h&&t[i]!=k||(o=!0);return o},l.getVisualFromLogicalIdx=function(e,t){for(var o=0;o<t.logicalFromVisual.length;o++)if(t.logicalFromVisual[o]==e)return o;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang","ace/lib/useragent"],function(e,t,o){"use strict";var f=e("./lib/bidiutil"),s=e("./lib/lang"),i=e("./lib/useragent"),n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=f,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.line="",this.wrapIndent=0,this.isLastRow=!1,this.EOF="¶",this.seenBidi=!1};(function(){this.isBidiRow=function(e,t,o){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,o),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&n.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var o=this.session.$getRowCacheIndex(t,this.currentRow);0<=o&&(e=this.session.$docRowCache[o])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var o,i=this.session.$getRowCacheIndex(t,this.currentRow);0<this.currentRow-e&&(o=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===i;)i=o,e++;return e},this.updateRowLine=function(e,t){if(void 0===e&&(e=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=e===this.session.getLength()-1,this.line=this.session.getLine(e),this.session.$useWrapMode){var o=this.session.$wrapData[e];o&&(void 0===t&&(t=this.getSplitIndex()),0<t&&o.length?(this.wrapIndent=o.indent,this.line=t<o.length?this.line.substring(o[t-1],o[o.length-1]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[t]))}var i,n=this.session,r=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(e,t){return"\t"===e||n.isFullWidth(e.charCodeAt(0))?(i="\t"===e?n.getScreenTabSize(t+r):2,r+=i-1,s.stringRepeat(f.DOT,i)):e})},this.updateBidiMap=function(){var e=[],t=this.isLastRow?this.EOF:this.EOL,o=this.line+(this.showInvisibles?t:f.DOT);f.hasBidiCharacters(o,e)?this.bidiMap=f.doBidiReorder(o,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.seenBidi&&this.characterWidth!==e.$characterSize.width){var t=this.characterWidth=e.$characterSize.width,o=e.$measureCharWidth("ה");this.charWidths[f.L]=this.charWidths[f.EN]=this.charWidths[f.ON_R]=t,this.charWidths[f.R]=this.charWidths[f.AN]=o,this.charWidths[f.R_H]=i.isChrome?o:.45*o,this.charWidths[f.B]=0,this.currentRow=null}},this.getShowInvisibles=function(){return this.showInvisibles},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setTextDir=function(e){this.isRtlDir=e},this.getPosLeft=function(e){e-=this.wrapIndent;var t=f.getVisualFromLogicalIdx(0<e?e-1:0,this.bidiMap),o=this.bidiMap.bidiLevels,i=0;0===e&&o[t]%2!=0&&t++;for(var n=0;n<t;n++)i+=this.charWidths[o[n]];return 0!==e&&o[t]%2==0&&(i+=this.charWidths[o[t]]),this.wrapIndent&&(i+=this.wrapIndent*this.charWidths[f.L]),i},this.getSelections=function(e,t){for(var o,i,n=this.bidiMap,r=n.bidiLevels,s=this.wrapIndent*this.charWidths[f.L],a=[],l=Math.min(e,t)-this.wrapIndent,c=Math.max(e,t)-this.wrapIndent,d=!1,u=!1,h=0,p=0;p<r.length;p++)i=n.logicalFromVisual[p],o=r[p],(d=l<=i&&i<c)&&!u?h=s:!d&&u&&a.push({left:h,width:s-h}),s+=this.charWidths[o],u=d;return d&&p===r.length&&a.push({left:h,width:s-h}),a},this.offsetToCol=function(e){var t=0,o=(e=Math.max(e,0),0),i=0,n=this.bidiMap.bidiLevels,r=this.charWidths[n[i]];for(this.wrapIndent&&(e-=this.wrapIndent*this.charWidths[f.L]);o+r/2<e;){if(o+=r,i===n.length-1){r=0;break}r=this.charWidths[n[++i]]}return 0<i&&n[i-1]%2!=0&&n[i]%2==0?(e<o&&i--,t=this.bidiMap.logicalFromVisual[i]):0<i&&n[i-1]%2==0&&n[i]%2!=0?t=1+(o<e?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===n.length-1&&0===r&&n[i-1]%2==0||!this.isRtlDir&&0===i&&n[i]%2!=0?t=1+this.bidiMap.logicalFromVisual[i]:(0<i&&n[i-1]%2!=0&&0!==r&&i--,t=this.bidiMap.logicalFromVisual[i]),t+this.wrapIndent}}).call(r.prototype),t.BidiHandler=r}),ace.define("ace/range",["require","exports","module"],function(e,t,o){"use strict";var r=function(e,t,o,i){this.start={row:e,column:t},this.end={row:o,column:i}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,o=e.end,i=e.start;return 1==(t=this.compare(o.row,o.column))?1==(t=this.compare(i.row,i.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(i.row,i.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var o={row:t+1,column:0};else if(this.end.row<e)o={row:e,column:0};if(this.start.row>t)var i={row:t+1,column:0};else if(this.start.row<e)i={row:e,column:0};return r.fromPoints(i||this.start,o||this.end)},this.extend=function(e,t){var o=this.compare(e,t);if(0==o)return this;if(-1==o)var i={row:e,column:t};else var n={row:e,column:t};return r.fromPoints(i||this.start,n||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),o=e.documentToScreenPosition(this.end);return new r(t.row,t.column,o.row,o.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(r.prototype),r.fromPoints=function(e,t){return new r(e.row,e.column,t.row,t.column)},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=r}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,t,o){"use strict";var i=e("./lib/oop"),s=e("./lib/lang"),n=e("./lib/event_emitter").EventEmitter,r=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.lead=this.selectionLead=this.doc.createAnchor(0,0),this.anchor=this.selectionAnchor=this.doc.createAnchor(0,0);var t=this;this.lead.on("change",function(e){t._emit("changeCursor"),t.$isEmpty||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)}),this.selectionAnchor.on("change",function(){t.$isEmpty||t._emit("changeSelection")})};(function(){i.implement(this,n),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.isEmpty()&&this.getRange().isMultiLine()},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.anchor.setPosition(e,t),this.$isEmpty&&(this.$isEmpty=!1,this._emit("changeSelection"))},this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.shiftSelection=function(e){if(this.$isEmpty)this.moveCursorTo(this.lead.row,this.lead.column+e);else{var t=this.getSelectionAnchor(),o=this.getSelectionLead(),i=this.isBackwards();i&&0===t.column||this.setSelectionAnchor(t.row,t.column+e),(i||0!==o.column)&&this.$moveSelection(function(){this.moveCursorTo(o.row,o.column+e)})}},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.isEmpty()?r.fromPoints(t,t):this.isBackwards()?r.fromPoints(t,e):r.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(e,this.doc.getLine(e).length)},this.setRange=this.setSelectionRange=function(e,t){t?(this.setSelectionAnchor(e.end.row,e.end.column),this.selectTo(e.start.row,e.start.column)):(this.setSelectionAnchor(e.start.row,e.start.column),this.selectTo(e.end.row,e.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var o=e||this.lead;e=o.row,t=o.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var o,i="number"==typeof e?e:this.lead.row,n=this.session.getFoldLine(i);return n?(i=n.start.row,o=n.end.row):o=i,!0===t?new r(i,0,o,this.session.getLine(o).length):new r(i,0,o+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,o){var i=e.column,n=e.column+t;return o<0&&(i=e.column-t,n=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,n).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)0<t.row&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var o=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,o,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-o):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var o=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,o,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,o):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,o=this.session.documentToScreenRow(e,t),i=this.session.screenToDocumentPosition(o,0),n=this.session.getDisplayLine(e,null,i.row,i.column).match(/^\s*/);n[0].length==t||this.session.$useEmacsStyleLineStart||(i.column+=n[0].length),this.moveCursorToPosition(i)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var o=this.session.getLine(t.row);if(t.column==o.length){var i=o.search(/\s+$/);0<i&&(t.column=i)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,o=this.doc.getLine(e),i=o.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var n=this.session.getFoldAt(e,t,1);if(n)this.moveCursorTo(n.end.row,n.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=o.substring(t)),t>=o.length)return this.moveCursorTo(e,o.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,o=this.lead.column;if(e=this.session.getFoldAt(t,o,-1))this.moveCursorTo(e.start.row,e.start.column);else{var i=this.session.getFoldStringAt(t,o,-1);null==i&&(i=this.doc.getLine(t).substring(0,o));var n=s.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(n)&&(o-=this.session.nonTokenRe.lastIndex,n=n.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),o<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(0<t&&this.moveCursorWordLeft());this.session.tokenRe.exec(n)&&(o-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,o)}},this.$shortWordEndIndex=function(e){var t,o=0,i=/\s/,n=this.session.tokenRe;if(n.lastIndex=0,this.session.tokenRe.exec(e))o=this.session.tokenRe.lastIndex;else{for(;(t=e[o])&&i.test(t);)o++;if(o<1)for(n.lastIndex=0;(t=e[o])&&!n.test(t);)if(n.lastIndex=0,o++,i.test(t)){if(2<o){o--;break}for(;(t=e[o])&&i.test(t);)o++;if(2<o)break}}return n.lastIndex=0,o},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,o=this.doc.getLine(e),i=o.substring(t),n=this.session.getFoldAt(e,t,1);if(n)return this.moveCursorTo(n.end.row,n.end.column);if(t==o.length){for(var r=this.doc.getLength();e++,i=this.doc.getLine(e),e<r&&/^\s*$/.test(i););/^\s+/.test(i)||(i=""),t=0}var s=this.$shortWordEndIndex(i);this.moveCursorTo(e,t+s)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,o=this.lead.column;if(e=this.session.getFoldAt(t,o,-1))return this.moveCursorTo(e.start.row,e.start.column);var i=this.session.getLine(t).substring(0,o);if(0===o){for(;t--,i=this.doc.getLine(t),0<t&&/^\s*$/.test(i););o=i.length,/\s+$/.test(i)||(i="")}var n=s.stringReverse(i),r=this.$shortWordEndIndex(n);return this.moveCursorTo(t,o-r)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var o,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column);var n=this.session.screenToDocumentPosition(i.row+e,i.column,o);0!==e&&0===t&&n.row===this.lead.row&&n.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[n.row]&&(0<n.row||0<e)&&n.row++,this.moveCursorTo(n.row,n.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,o){var i=this.session.getFoldAt(e,t,1);i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0;var n=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(n.charAt(t))&&n.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,o||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,o){var i=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(i.row,i.column,o)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var o=this.getCursor();return r.fromPoints(t,o)}catch(e){return r.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t});else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList){this.toSingleRange(e[0]);for(var t=e.length;t--;){var o=r.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(o.cursor=o.start),this.addRange(o,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(e,t,o){"use strict";var i=e("./config"),b=2e3,n=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var o=this.states[t],i=[],n=0,r=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],l=0;l<o.length;l++){var c=o[l];if(c.defaultToken&&(r.defaultToken=c.defaultToken),c.caseInsensitive&&(s="gi"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var d=c.regex,u=new RegExp("(?:("+d+")|(.))").exec("a").length-2;Array.isArray(c.token)?1==c.token.length||1==u?c.token=c.token[0]:u-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:u-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):"function"!=typeof c.token||c.onMatch||(c.onMatch=1<u?this.$applyToken:c.token),1<u&&(/\\\d/.test(c.regex)?d=c.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+n+1)}):(u=1,d=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||a.push(c)),r[n]=l,n+=u,i.push(d),c.onMatch||(c.onMatch=null)}}i.length||(r[0]=0,i.push("$")),a.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",s)}};(function(){this.$setMaxTokenCount=function(e){b=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),o=this.token.apply(this,t);if("string"==typeof o)return[{type:o,value:e}];for(var i=[],n=0,r=o.length;n<r;n++)t[n]&&(i[i.length]={type:o[n],value:t[n]});return i},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var o=[],i=this.tokenArray,n=0,r=i.length;n<r;n++)t[n+1]&&(o[o.length]={type:i[n],value:t[n+1]});return o},this.removeCapturingGroups=function(e){return e.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g,function(e,t){return t?"(?:":e})},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var s=0,a=!1,l={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(e,t,o,i,n,r){return a?a="]"!=n:n?a=!0:i?(s==l.stack&&(l.end=r+1,l.stack=-1),s--):o&&(s++,1!=o.length&&(l.stack=s,l.start=r)),e}),null!=l.end&&/^\)*$/.test(e.substr(l.end))&&(e=e.substring(0,l.start)+e.substr(l.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t)"#tmp"===(t=(o=t.slice(0))[0])&&(o.shift(),t=o.shift());else var o=[];var i=t||"start",n=this.states[i];n||(i="start",n=this.states[i]);for(var r,s=this.matchMappings[i],a=this.regExps[i],l=[],c=a.lastIndex=0,d=0,u={type:null,value:""};r=a.exec(e);){var h=s.defaultToken,p=null,f=r[0],g=a.lastIndex;if(g-f.length>c){var m=e.substring(c,g-f.length);u.type==h?u.value+=m:(u.type&&l.push(u),u={type:h,value:m})}for(var v=0;v<r.length-2;v++)if(void 0!==r[v+1]){h=(p=n[s[v]]).onMatch?p.onMatch(f,i,o,e):p.token,p.next&&(i="string"==typeof p.next?p.next:p.next(i,o),(n=this.states[i])||(this.reportError("state doesn't exist",i),i="start",n=this.states[i]),s=this.matchMappings[i],c=g,(a=this.regExps[i]).lastIndex=g),p.consumeLineEnd&&(c=g);break}if(f)if("string"==typeof h)p&&!1===p.merge||u.type!==h?(u.type&&l.push(u),u={type:h,value:f}):u.value+=f;else if(h){u.type&&l.push(u),u={type:null,value:""};for(v=0;v<h.length;v++)l.push(h[v])}if(c==e.length)break;if(c=g,d++>b){for(d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});c<e.length;)u.type&&l.push(u),u={value:e.substring(c,c+=2e3),type:"overflow"};i="start",o=[];break}}return u.type&&l.push(u),1<o.length&&o[0]!==i&&o.unshift("#tmp",i),{tokens:l,state:o.length?o:i}},this.reportError=i.reportError}).call(n.prototype),t.Tokenizer=n}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(e,t,o){"use strict";var c=e("../lib/lang"),i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var o in e){for(var i=e[o],n=0;n<i.length;n++){var r=i[n];(r.next||r.onMatch)&&("string"==typeof r.next&&0!==r.next.indexOf(t)&&(r.next=t+r.next),r.nextState&&0!==r.nextState.indexOf(t)&&(r.nextState=t+r.nextState))}this.$rules[t+o]=i}else for(var o in e)this.$rules[o]=e[o]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,o,i,n){var r="function"==typeof e?(new e).getRules():e;if(i)for(var s=0;s<i.length;s++)i[s]=t+i[s];else for(var a in i=[],r)i.push(t+a);if(this.addRules(r,t),o){var l=Array.prototype[n?"push":"unshift"];for(s=0;s<i.length;s++)l.apply(this.$rules[i[s]],c.deepCopy(o))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var p=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},f=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var u=0,h=this.$rules;Object.keys(h).forEach(function e(t){var o=h[t];o.processed=!0;for(var i=0;i<o.length;i++){var n=o[i],r=null;Array.isArray(n)&&(r=n,n={}),!n.regex&&n.start&&(n.regex=n.start,n.next||(n.next=[]),n.next.push({defaultToken:n.token},{token:n.token+".end",regex:n.end||n.start,next:"pop"}),n.token=n.token+".start",n.push=!0);var s=n.next||n.push;if(s&&Array.isArray(s)){var a=n.stateName;a||("string"!=typeof(a=n.token)&&(a=a[0]||""),h[a]&&(a+=u++)),h[a]=s,e(n.next=a)}else"pop"==s&&(n.next=f);if(n.push&&(n.nextState=n.next||n.push,n.next=p,delete n.push),n.rules)for(var l in n.rules)h[l]?h[l].push&&h[l].push.apply(h[l],n.rules[l]):h[l]=n.rules[l];var c="string"==typeof n?n:n.include;if(c&&(r=Array.isArray(c)?c.map(function(e){return h[e]}):h[c]),r){var d=[i,1].concat(r);n.noEscape&&(d=d.filter(function(e){return!e.next})),o.splice.apply(o,d),i--}n.keywordMap&&(n.token=this.createKeywordMapper(n.keywordMap,n.defaultToken||"text",n.caseInsensitive),delete n.defaultToken)}},this)},this.createKeywordMapper=function(n,t,r,s){var a=Object.create(null);return Object.keys(n).forEach(function(e){var t=n[e];r&&(t=t.toLowerCase());for(var o=t.split(s||"|"),i=o.length;i--;)a[o[i]]=e}),Object.getPrototypeOf(a)&&(a.__proto__=null),this.$keywordList=Object.keys(a),n=null,r?function(e){return a[e.toLowerCase()]||t}:function(e){return a[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(i.prototype),t.TextHighlightRules=i}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,t,o){"use strict";var i=function(){this.$behaviours={}};(function(){this.add=function(e,t,o){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=o},this.addBehaviours=function(e){for(var t in e)for(var o in e[t])this.add(t,o,e[t][o])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"==typeof e)var o=(new e).getBehaviours(t);else o=e.getBehaviours(t);this.addBehaviours(o)},this.getBehaviours=function(e){if(e){for(var t={},o=0;o<e.length;o++)this.$behaviours[e[o]]&&(t[e[o]]=this.$behaviours[e[o]]);return t}return this.$behaviours}}).call(i.prototype),t.Behaviour=i}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,t,o){"use strict";var i=e("./range").Range,n=function(e,t,o){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var i=e.getTokenAt(t,o);this.$tokenIndex=i?i.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,o=e[t].start;if(void 0!==o)return o;for(o=0;0<t;)o+=e[t-=1].value.length;return o},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new i(this.$row,t,this.$row,t+e.value.length)}}).call(n.prototype),t.TokenIterator=n}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t,o){"use strict";var f,i=e("../../lib/oop"),n=e("../behaviour").Behaviour,r=e("../../token_iterator").TokenIterator,g=e("../../lib/lang"),s=["text","paren.rparen","punctuation.operator"],a=["text","paren.rparen","punctuation.operator","comment"],l={},x={'"':'"',"'":"'"},_=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,l.rangeCount!=e.multiSelect.rangeCount&&(l={rangeCount:e.multiSelect.rangeCount})),l[t])return f=l[t];f=l[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},C=function(e,t,o,i){var n=e.end.row-e.start.row;return{text:o+t+i,selection:[0,e.start.column+1,n,e.end.column+(n?0:1)]}},m=function(p){this.add("braces","insertion",function(e,t,o,i,n){var r=o.getCursorPosition(),s=i.doc.getLine(r.row);if("{"==n){_(o);var a=o.getSelectionRange(),l=i.doc.getTextRange(a);if(""!==l&&"{"!==l&&o.getWrapBehavioursEnabled())return C(a,l,"{","}");if(m.isSaneInsertion(o,i))return/[\]\}\)]/.test(s[r.column])||o.inMultiSelectMode||p&&p.braces?(m.recordAutoInsert(o,i,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(o,i,"{"),{text:"{",selection:[1,1]})}else if("}"==n){if(_(o),"}"==s.substring(r.column,r.column+1))if(null!==i.$findOpeningBracket("}",{column:r.column+1,row:r.row})&&m.isAutoInsertedClosing(r,s,n))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==n||"\r\n"==n){_(o);var c="";if(m.isMaybeInsertedClosing(r,s)&&(c=g.stringRepeat("}",f.maybeInsertedBrackets),m.clearMaybeInsertedClosing()),"}"===s.substring(r.column,r.column+1)){var d=i.findMatchingBracket({row:r.row,column:r.column+1},"}");if(!d)return null;var u=this.$getIndent(i.getLine(d.row))}else{if(!c)return void m.clearMaybeInsertedClosing();u=this.$getIndent(s)}var h=u+i.getTabString();return{text:"\n"+h+"\n"+u+c,selection:[1,h.length,1,h.length]}}m.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(e,t,o,i,n){var r=i.doc.getTextRange(n);if(!n.isMultiLine()&&"{"==r){if(_(o),"}"==i.doc.getLine(n.start.row).substring(n.end.column,n.end.column+1))return n.end.column++,n;f.maybeInsertedBrackets--}}),this.add("parens","insertion",function(e,t,o,i,n){if("("==n){_(o);var r=o.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&o.getWrapBehavioursEnabled())return C(r,s,"(",")");if(m.isSaneInsertion(o,i))return m.recordAutoInsert(o,i,")"),{text:"()",selection:[1,1]}}else if(")"==n){_(o);var a=o.getCursorPosition(),l=i.doc.getLine(a.row);if(")"==l.substring(a.column,a.column+1))if(null!==i.$findOpeningBracket(")",{column:a.column+1,row:a.row})&&m.isAutoInsertedClosing(a,l,n))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(e,t,o,i,n){var r=i.doc.getTextRange(n);if(!n.isMultiLine()&&"("==r&&(_(o),")"==i.doc.getLine(n.start.row).substring(n.start.column+1,n.start.column+2)))return n.end.column++,n}),this.add("brackets","insertion",function(e,t,o,i,n){if("["==n){_(o);var r=o.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&o.getWrapBehavioursEnabled())return C(r,s,"[","]");if(m.isSaneInsertion(o,i))return m.recordAutoInsert(o,i,"]"),{text:"[]",selection:[1,1]}}else if("]"==n){_(o);var a=o.getCursorPosition(),l=i.doc.getLine(a.row);if("]"==l.substring(a.column,a.column+1))if(null!==i.$findOpeningBracket("]",{column:a.column+1,row:a.row})&&m.isAutoInsertedClosing(a,l,n))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(e,t,o,i,n){var r=i.doc.getTextRange(n);if(!n.isMultiLine()&&"["==r&&(_(o),"]"==i.doc.getLine(n.start.row).substring(n.start.column+1,n.start.column+2)))return n.end.column++,n}),this.add("string_dquotes","insertion",function(e,t,o,i,n){var r=i.$mode.$quotes||x;if(1==n.length&&r[n]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(n))return;_(o);var s=n,a=o.getSelectionRange(),l=i.doc.getTextRange(a);if(!(""===l||1==l.length&&r[l])&&o.getWrapBehavioursEnabled())return C(a,l,s,s);if(!l){var c=o.getCursorPosition(),d=i.doc.getLine(c.row),u=d.substring(c.column-1,c.column),h=d.substring(c.column,c.column+1),p=i.getTokenAt(c.row,c.column),f=i.getTokenAt(c.row,c.column+1);if("\\"==u&&p&&/escape/.test(p.type))return null;var g,m=p&&/string|escape/.test(p.type),v=!f||/string|escape/.test(f.type);if(h==s)(g=m!==v)&&/string\.end/.test(f.type)&&(g=!1);else{if(m&&!v)return null;if(m&&v)return null;var b=i.$mode.tokenRe;b.lastIndex=0;var w=b.test(u);b.lastIndex=0;var y=b.test(u);if(w||y)return null;if(h&&!/[\s;,.})\]\\]/.test(h))return null;g=!0}return{text:g?s+s:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,o,i,n){var r=i.doc.getTextRange(n);if(!n.isMultiLine()&&('"'==r||"'"==r)&&(_(o),i.doc.getLine(n.start.row).substring(n.start.column+1,n.start.column+2)==r))return n.end.column++,n})};m.isSaneInsertion=function(e,t){var o=e.getCursorPosition(),i=new r(t,o.row,o.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",s)){var n=new r(t,o.row,o.column+1);if(!this.$matchTokenType(n.getCurrentToken()||"text",s))return!1}return i.stepForward(),i.getCurrentTokenRow()!==o.row||this.$matchTokenType(i.getCurrentToken()||"text",a)},m.$matchTokenType=function(e,t){return-1<t.indexOf(e.type||e)},m.recordAutoInsert=function(e,t,o){var i=e.getCursorPosition(),n=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,n,f.autoInsertedLineEnd[0])||(f.autoInsertedBrackets=0),f.autoInsertedRow=i.row,f.autoInsertedLineEnd=o+n.substr(i.column),f.autoInsertedBrackets++},m.recordMaybeInsert=function(e,t,o){var i=e.getCursorPosition(),n=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,n)||(f.maybeInsertedBrackets=0),f.maybeInsertedRow=i.row,f.maybeInsertedLineStart=n.substr(0,i.column)+o,f.maybeInsertedLineEnd=n.substr(i.column),f.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(e,t,o){return 0<f.autoInsertedBrackets&&e.row===f.autoInsertedRow&&o===f.autoInsertedLineEnd[0]&&t.substr(e.column)===f.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(e,t){return 0<f.maybeInsertedBrackets&&e.row===f.maybeInsertedRow&&t.substr(e.column)===f.maybeInsertedLineEnd&&t.substr(0,e.column)==f.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){f.autoInsertedLineEnd=f.autoInsertedLineEnd.substr(1),f.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){f&&(f.maybeInsertedBrackets=0,f.maybeInsertedRow=-1)},i.inherits(m,n),t.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(e,i,t){"use strict";i.packages={},function(e){var t=/\w{4}/g;for(var o in e)i.packages[o]=e[o].replace(t,"\\u$&")}({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"})}),ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,t,o){"use strict";var i=e("../tokenizer").Tokenizer,n=e("./text_highlight_rules").TextHighlightRules,r=e("./behaviour/cstyle").CstyleBehaviour,s=e("../unicode"),x=e("../lib/lang"),g=e("../token_iterator").TokenIterator,m=e("../range").Range,a=function(){this.HighlightRules=n};(function(){this.$defaultBehaviour=new r,this.tokenRe=new RegExp("^["+s.packages.L+s.packages.Mn+s.packages.Mc+s.packages.Nd+s.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+s.packages.L+s.packages.Mn+s.packages.Mc+s.packages.Nd+s.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,n,o,i){var r=n.doc,s=!0,a=!0,l=1/0,c=n.getTabSize(),t=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))f=this.lineCommentStart.map(x.escapeRegExp).join("|"),h=this.lineCommentStart[0];else f=x.escapeRegExp(this.lineCommentStart),h=this.lineCommentStart;f=new RegExp("^(\\s*)(?:"+f+") ?"),t=n.getUseSoftTabs();v=function(e,t){var o=e.match(f);if(o){var i=o[1].length,n=o[0].length;u(e,i,n)||" "!=o[0][n-1]||n--,r.removeInLine(t,i,n)}};var d=h+" ",u=(m=function(e,t){s&&!/\S/.test(e)||(u(e,l,l)?r.insertInLine({row:t,column:l},d):r.insertInLine({row:t,column:l},h))},b=function(e,t){return f.test(e)},function(e,t,o){for(var i=0;t--&&" "==e.charAt(t);)i++;if(i%c!=0)return!1;for(i=0;" "==e.charAt(o++);)i++;return 2<c?i%c!=c-1:i%c==0})}else{if(!this.blockComment)return!1;var h=this.blockComment.start,p=this.blockComment.end,f=new RegExp("^(\\s*)(?:"+x.escapeRegExp(h)+")"),g=new RegExp("(?:"+x.escapeRegExp(p)+")\\s*$"),m=function(e,t){b(e,t)||s&&!/\S/.test(e)||(r.insertInLine({row:t,column:e.length},p),r.insertInLine({row:t,column:l},h))},v=function(e,t){var o;(o=e.match(g))&&r.removeInLine(t,e.length-o[0].length,e.length),(o=e.match(f))&&r.removeInLine(t,o[1].length,o[0].length)},b=function(e,t){if(f.test(e))return!0;for(var o=n.getTokens(t),i=0;i<o.length;i++)if("comment"===o[i].type)return!0}}function w(e){for(var t=o;t<=i;t++)e(r.getLine(t),t)}var y=1/0;w(function(e,t){var o=e.search(/\S/);-1!==o?(o<l&&(l=o),a&&!b(e,t)&&(a=!1)):y>e.length&&(y=e.length)}),l==1/0&&(l=y,a=s=!1),t&&l%c!=0&&(l=Math.floor(l/c)*c),w(a?v:m)},this.toggleBlockComment=function(e,t,o,i){var n=this.blockComment;if(n){!n.start&&n[0]&&(n=n[0]);var r,s,a=(p=new g(t,i.row,i.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var c,d;a&&/comment/.test(a.type);){if(-1!=(f=a.value.indexOf(n.start))){var u=p.getCurrentTokenRow(),h=p.getCurrentTokenColumn()+f;c=new m(u,h,u,h+n.start.length);break}a=p.stepBackward()}var p;for(a=(p=new g(t,i.row,i.column)).getCurrentToken();a&&/comment/.test(a.type);){var f;if(-1!=(f=a.value.indexOf(n.end))){u=p.getCurrentTokenRow(),h=p.getCurrentTokenColumn()+f;d=new m(u,h,u,h+n.end.length);break}a=p.stepForward()}d&&t.remove(d),c&&(t.remove(c),r=c.start.row,s=-n.start.length)}else s=n.start.length,r=o.start.row,t.insert(o.end,n.end),t.insert(o.start,n.start);l.start.row==r&&(l.start.column+=s),l.end.row==r&&(l.end.column+=s),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,o){return this.$getIndent(t)},this.checkOutdent=function(e,t,o){return!1},this.autoOutdent=function(e,t,o){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var i in this.$embeds=[],this.$modes={},e)e[i]&&(this.$embeds.push(i),this.$modes[i]=new e[i]);var n=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(i=0;i<n.length;i++)!function(e){var t=n[i],o=e[t];e[n[i]]=function(){return this.$delegator(t,arguments,o)}}(this)},this.$delegator=function(e,t,o){var i=t[0];"string"!=typeof i&&(i=i[0]);for(var n=0;n<this.$embeds.length;n++)if(this.$modes[this.$embeds[n]]){var r=i.split(this.$embeds[n]);if(!r[0]&&r[1]){t[0]=r[1];var s=this.$modes[this.$embeds[n]];return s[e].apply(s,t)}}var a=o.apply(this,t);return o?a:void 0},this.transformAction=function(e,t,o,i,n){if(this.$behaviour){var r=this.$behaviour.getBehaviours();for(var s in r)if(r[s][t]){var a=r[s][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,o=[];for(var i in t)for(var n=t[i],r=0,s=n.length;r<s;r++)if("string"==typeof n[r].token)/keyword|support|storage/.test(n[r].token)&&o.push(n[r].regex);else if("object"==typeof n[r].token)for(var a=0,l=n[r].token.length;a<l;a++)if(/keyword|support|storage/.test(n[r].token[a])){i=n[r].regex.match(/\(.+?\)/g)[a];o.push(i.substr(1,i.length-2))}this.completionKeywords=o}return e?o.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,o,i){return(this.$keywordList||this.$createKeywordList()).map(function(e){return{name:e,value:e,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(a.prototype),t.Mode=a}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t,o){"use strict";t.applyDelta=function(e,t,o){var i=t.start.row,n=t.start.column,r=e[i]||"";switch(t.action){case"insert":if(1===t.lines.length)e[i]=r.substring(0,n)+t.lines[0]+r.substring(n);else{var s=[i,1].concat(t.lines);e.splice.apply(e,s),e[i]=r.substring(0,n)+e[i],e[i+t.lines.length-1]+=r.substring(n)}break;case"remove":var a=t.end.column,l=t.end.row;i===l?e[i]=r.substring(0,n)+r.substring(a):e.splice(i,l-i+1,r.substring(0,n)+e[l].substring(a))}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,o){"use strict";var i=e("./lib/oop"),n=e("./lib/event_emitter").EventEmitter,r=t.Anchor=function(e,t,o){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===o?this.setPosition(t.row,t.column):this.setPosition(t,o)};(function(){function l(e,t,o){var i=o?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&i}i.implement(this,n),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var t=function(e,t,o){var i="insert"==e.action,n=(i?1:-1)*(e.end.row-e.start.row),r=(i?1:-1)*(e.end.column-e.start.column),s=e.start,a=i?s:e.end;if(l(t,s,o))return{row:t.row,column:t.column};if(l(a,t,!o))return{row:t.row+n,column:t.column+(t.row==a.row?r:0)};return{row:s.row,column:s.column}}(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(t.row,t.column,!0)}},this.setPosition=function(e,t,o){var i;if(i=o?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=i.row||this.column!=i.column){var n={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:n,value:i})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var o={};return e>=this.document.getLength()?(o.row=Math.max(0,this.document.getLength()-1),o.column=this.document.getLine(o.row).length):e<0?(o.row=0,o.column=0):(o.row=e,o.column=Math.min(this.document.getLine(o.row).length,Math.max(0,t))),t<0&&(o.column=0),o}}).call(r.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,o){"use strict";var i=e("./lib/oop"),n=e("./apply_delta").applyDelta,r=e("./lib/event_emitter").EventEmitter,d=e("./range").Range,s=e("./anchor").Anchor,a=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){i.implement(this,r),this.setValue=function(e){var t=this.getLength()-1;this.remove(new d(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new s(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var o=t.length-1;e.end.row-e.start.row==o&&(t[o]=t[o].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var o=this.clippedPos(e.row,e.column),i=this.pos(e.row,e.column+t.length);return this.applyDelta({start:o,end:i,action:"insert",lines:[t]},!0),this.clonePos(i)},this.clippedPos=function(e,t){var o=this.getLength();void 0===e?e=o:e<0?e=0:o<=e&&(e=o-1,t=void 0);var i=this.getLine(e);return null==t&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var o=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),o=0):(t=[""].concat(t),e--,o=this.$lines[e].length),this.insertMergedLines({row:e,column:o},t)},this.insertMergedLines=function(e,t){var o=this.clippedPos(e.row,e.column),i={row:o.row+t.length-1,column:(1==t.length?o.column:0)+t[t.length-1].length};return this.applyDelta({start:o,end:i,action:"insert",lines:t}),this.clonePos(i)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),o=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:o,action:"remove",lines:this.getLinesForRange({start:t,end:o})}),this.clonePos(t)},this.removeInLine=function(e,t,o){var i=this.clippedPos(e,t),n=this.clippedPos(e,o);return this.applyDelta({start:i,end:n,action:"remove",lines:this.getLinesForRange({start:i,end:n})},!0),this.clonePos(i)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var o=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&0<e,i=t<this.getLength()-1,n=o?e-1:e,r=o?this.getLine(n).length:0,s=i?t+1:t,a=i?0:this.getLine(s).length,l=new d(n,r,s,a),c=this.$lines.slice(e,t+1);return this.applyDelta({start:l.start,end:l.end,action:"remove",lines:this.getLinesForRange(l)}),c},this.removeNewLine=function(e){e<this.getLength()-1&&0<=e&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof d||(e=d.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;0<=t;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var o="insert"==e.action;(o?e.lines.length<=1&&!e.lines[0]:!d.comparePoints(e.start,e.end))||(o&&2e4<e.lines.length&&this.$splitAndapplyLargeDelta(e,2e4),n(this.$lines,e,t),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,t){for(var o=e.lines,i=o.length,n=e.start.row,r=e.start.column,s=0,a=0;;){s=a,a+=t-1;var l=o.slice(s,a);if(i<a){e.lines=l,e.start.row=n+s,e.start.column=r;break}l.push(""),this.applyDelta({start:this.pos(n+s,r),end:this.pos(n+a,r=0),action:e.action,lines:l},!0)}},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var o=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,n=t||0,r=o.length;n<r;n++)if((e-=o[n].length+i)<0)return{row:n,column:e+o[n].length+i};return{row:r-1,column:o[r-1].length}},this.positionToIndex=function(e,t){for(var o=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,n=0,r=Math.min(e.row,o.length),s=t||0;s<r;++s)n+=o[s].length+i;return n+e.column}}).call(a.prototype),t.Document=a}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,o){"use strict";var i=e("./lib/oop"),n=e("./lib/event_emitter").EventEmitter,r=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var a=this;this.$worker=function(){if(a.running){for(var e=new Date,t=a.currentLine,o=-1,i=a.doc,n=t;a.lines[t];)t++;var r=i.getLength(),s=0;for(a.running=!1;t<r;){for(a.$tokenizeRow(t),o=t;t++,a.lines[t];);if(++s%5==0&&20<new Date-e){a.running=setTimeout(a.$worker,20);break}}a.currentLine=t,-1==o&&(o=t),n<=o&&a.fireUpdateEvent(n,o)}}};(function(){i.implement(this,n),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var o={first:e,last:t};this._signal("update",{data:o})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,o=e.end.row-t;if(0===o)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,o+1,null),this.states.splice(t,o+1,null);else{var i=Array(o+1);i.unshift(t,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),o=this.states[e-1],i=this.tokenizer.getLineTokens(t,o,e);return this.states[e]+""!=i.state+""?(this.states[e]=i.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=i.tokens}}).call(r.prototype),t.BackgroundTokenizer=r}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,o){"use strict";var c=e("./lib/lang"),d=(e("./lib/oop"),e("./range").Range),i=function(e,t,o){this.setRegexp(e),this.clazz=t,this.type=o||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,o,i){if(this.regExp)for(var n=i.firstRow,r=i.lastRow,s=n;s<=r;s++){var a=this.cache[s];null==a&&((a=c.getMatchOffsets(o.getLine(s),this.regExp)).length>this.MAX_RANGES&&(a=a.slice(0,this.MAX_RANGES)),a=a.map(function(e){return new d(s,e.offset,s,e.offset+e.length)}),this.cache[s]=a.length?a:"");for(var l=a.length;l--;)t.drawSingleLineMarker(e,a[l].toScreenRange(o),this.clazz,i)}}}).call(i.prototype),t.SearchHighlight=i}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,o){"use strict";var i=e("../range").Range;function c(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var o=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,o.end.row,o.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach(function(e){e.start.row+=t,e.end.row+=t})},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),0<this.range.compareEnd(e.start.row,e.start.column)?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,o){var i,n,r=0,s=this.folds,a=!0;null==t&&(t=this.end.row,o=this.end.column);for(var l=0;l<s.length;l++){if(-1==(n=(i=s[l]).range.compareStart(t,o)))return void e(null,t,o,r,a);if(!e(null,i.start.row,i.start.column,r,a)&&e(i.placeholder,i.start.row,i.start.column,r)||0===n)return;a=!i.sameRow,r=i.end.column}e(null,t,o,r,a)},this.getNextFoldTo=function(e,t){for(var o,i,n=0;n<this.folds.length;n++){if(-1==(i=(o=this.folds[n]).range.compareEnd(e,t)))return{fold:o,kind:"after"};if(0===i)return{fold:o,kind:"inside"}}return null},this.addRemoveChars=function(e,t,o){var i,n,r=this.getNextFoldTo(e,t);if(r)if(i=r.fold,"inside"==r.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){var s=(n=this.folds).indexOf(i);for(0===s&&(this.start.column+=o);s<n.length;s++){if((i=n[s]).start.column+=o,!i.sameRow)return;i.end.column+=o}this.end.column+=o}},this.split=function(e,t){var o=this.getNextFoldTo(e,t);if(!o||"inside"==o.kind)return null;var i=o.fold,n=this.folds,r=this.foldData,s=n.indexOf(i),a=n[s-1];this.end.row=a.end.row,this.end.column=a.end.column;var l=new c(r,n=n.splice(s,n.length-s));return r.splice(r.indexOf(this)+1,0,l),l},this.merge=function(e){for(var t=e.folds,o=0;o<t.length;o++)this.addFold(t[o]);var i=this.foldData;i.splice(i.indexOf(e),1)},this.toString=function(){var t=[this.range.toString()+": ["];return this.folds.forEach(function(e){t.push("  "+e.toString())}),t.push("]"),t.join("\n")},this.idxToPosition=function(e){for(var t=0,o=0;o<this.folds.length;o++){var i=this.folds[o];if((e-=i.start.column-t)<0)return{row:i.start.row,column:i.start.column+e};if((e-=i.placeholder.length)<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(c.prototype),t.FoldLine=c}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,t,o){"use strict";var l=e("./range").Range.comparePoints,i=function(){this.ranges=[]};(function(){this.comparePoints=l,this.pointIndex=function(e,t,o){for(var i=this.ranges,n=o||0;n<i.length;n++){var r=i[n],s=l(e,r.end);if(!(0<s)){var a=l(e,r.start);return 0===s?t&&0!==a?-n-2:n:0<a||0===a&&!t?n:-n-1}}return-n-1},this.add=function(e){var t=!e.isEmpty(),o=this.pointIndex(e.start,t);o<0&&(o=-o-1);var i=this.pointIndex(e.end,t,o);return i<0?i=-i-1:i++,this.ranges.splice(o,i-o,e)},this.addList=function(e){for(var t=[],o=e.length;o--;)t.push.apply(t,this.add(e[o]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],o=this.ranges,i=(o=o.sort(function(e,t){return l(e.start,t.start)}))[0],n=1;n<o.length;n++){e=i,i=o[n];var r=l(e.end,i.start);r<0||(0!=r||e.isEmpty()||i.isEmpty())&&(l(e.end,i.end)<0&&(e.end.row=i.end.row,e.end.column=i.end.column),o.splice(n,1),t.push(i),i=e,n--)}return this.ranges=o,t},this.contains=function(e,t){return 0<=this.pointIndex({row:e,column:t})},this.containsPoint=function(e){return 0<=this.pointIndex(e)},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges[t]},this.clipRows=function(e,t){var o=this.ranges;if(o[0].start.row>t||o[o.length-1].start.row<e)return[];var i=this.pointIndex({row:e,column:0});i<0&&(i=-i-1);var n=this.pointIndex({row:t,column:0},i);n<0&&(n=-n-1);for(var r=[],s=i;s<n;s++)r.push(o[s]);return r},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){if("insert"==e.action)var t=e.start,o=e.end;else o=e.start,t=e.end;for(var i=t.row,n=o.row-i,r=-t.column+o.column,s=this.ranges,a=0,l=s.length;a<l;a++){if(!((c=s[a]).end.row<i)){if(c.start.row>i)break;if(c.start.row==i&&c.start.column>=t.column&&(c.start.column==t.column&&this.$insertRight||(c.start.column+=r,c.start.row+=n)),c.end.row==i&&c.end.column>=t.column){if(c.end.column==t.column&&this.$insertRight)continue;c.end.column==t.column&&0<r&&a<l-1&&c.end.column>c.start.column&&c.end.column==s[a+1].start.column&&(c.end.column-=r),c.end.column+=r,c.end.row+=n}}}if(0!=n&&a<l)for(;a<l;a++){var c;(c=s[a]).start.row+=n,c.end.row+=n}}}).call(i.prototype),t.RangeList=i}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range","ace/range_list","ace/lib/oop"],function(e,t,o){"use strict";e("../range").Range;var i=e("../range_list").RangeList,n=e("../lib/oop"),r=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function c(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function s(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}n.inherits(r,i),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(t){this.foldLine=t,this.subFolds.forEach(function(e){e.setFoldLine(t)})},this.clone=function(){var e=this.range.clone(),t=new r(e,this.placeholder);return this.subFolds.forEach(function(e){t.subFolds.push(e.clone())}),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){if(!this.range.containsRange(e))throw new Error("A fold can't intersect already existing fold"+e.range+this.range);var t,o;t=e,o=this.start,c(t.start,o),c(t.end,o);for(var i=e.start.row,n=e.start.column,r=0,s=-1;r<this.subFolds.length&&1==(s=this.subFolds[r].range.compare(i,n));r++);var a=this.subFolds[r];if(0==s)return a.addSubFold(e);i=e.range.end.row,n=e.range.end.column;var l=r;for(s=-1;l<this.subFolds.length&&1==(s=this.subFolds[l].range.compare(i,n));l++);this.subFolds[l];if(0==s)throw new Error("A fold can't intersect already existing fold"+e.range+this.range);this.subFolds.splice(r,l-r,e);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return t=e,o=this.start,s(t.start,o),void s(t.end,o);var t,o}}.call(r.prototype)}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],function(e,t,o){"use strict";var d=e("../range").Range,g=e("./fold_line").FoldLine,m=e("./fold").Fold,u=e("../token_iterator").TokenIterator;t.Folding=function(){this.getFoldAt=function(e,t,o){var i=this.getFoldLine(e);if(!i)return null;for(var n=i.folds,r=0;r<n.length;r++){var s=n[r];if(s.range.contains(e,t)){if(1==o&&s.range.isEnd(e,t))continue;if(-1==o&&s.range.isStart(e,t))continue;return s}}},this.getFoldsInRange=function(e){var t=e.start,o=e.end,i=this.$foldData,n=[];t.column+=1,o.column-=1;for(var r=0;r<i.length;r++){var s=i[r].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=i[r].folds,l=0;l<a.length;l++){var c=a[l];if(-2==(s=c.range.compareRange(e)))break;if(2!=s){if(42==s)break;n.push(c)}}}}return t.column-=1,o.column+=1,n},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach(function(e){t=t.concat(this.getFoldsInRange(e))},this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,o=0;o<t.length;o++)for(var i=0;i<t[o].folds.length;i++)e.push(t[o].folds[i]);return e},this.getFoldStringAt=function(e,t,o,i){if(!(i=i||this.getFoldLine(e)))return null;for(var n,r,s={end:{column:0}},a=0;a<i.folds.length;a++){var l=(r=i.folds[a]).range.compareEnd(e,t);if(-1==l){n=this.getLine(r.start.row).substring(s.end.column,r.start.column);break}if(0===l)return null;s=r}return n||(n=this.getLine(r.start.row).substring(s.end.column)),-1==o?n.substring(0,t-s.end.column):1==o?n.substring(t-s.end.column):n},this.getFoldLine=function(e,t){var o=this.$foldData,i=0;for(t&&(i=o.indexOf(t)),-1==i&&(i=0);i<o.length;i++){var n=o[i];if(n.start.row<=e&&n.end.row>=e)return n;if(n.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var o=this.$foldData,i=0;for(t&&(i=o.indexOf(t)),-1==i&&(i=0);i<o.length;i++){var n=o[i];if(n.end.row>=e)return n}return null},this.getFoldedRowCount=function(e,t){for(var o=this.$foldData,i=t-e+1,n=0;n<o.length;n++){var r=o[n],s=r.end.row,a=r.start.row;if(t<=s){a<t&&(e<=a?i-=t-a:i=0);break}e<=s&&(i-=e<=a?s-a:s-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var o,i=this.$foldData,n=!1;e instanceof m?o=e:(o=new m(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(o.range);var r=o.start.row,s=o.start.column,a=o.end.row,l=o.end.column;if(!(r<a||r==a&&s<=l-2))throw new Error("The range has to be at least 2 characters width");var c=this.getFoldAt(r,s,1),d=this.getFoldAt(a,l,-1);if(c&&d==c)return c.addSubFold(o);c&&!c.range.isStart(r,s)&&this.removeFold(c),d&&!d.range.isEnd(a,l)&&this.removeFold(d);var u=this.getFoldsInRange(o.range);0<u.length&&(this.removeFolds(u),u.forEach(function(e){o.addSubFold(e)}));for(var h=0;h<i.length;h++){var p=i[h];if(a==p.start.row){p.addFold(o),n=!0;break}if(r==p.end.row){if(p.addFold(o),n=!0,!o.sameRow){var f=i[h+1];if(f&&f.start.row==a){p.merge(f);break}}break}if(a<=p.start.row)break}return n||(p=this.$addFoldLine(new g(this.$foldData,o))),this.$useWrapMode?this.$updateWrapData(p.start.row,p.start.row):this.$updateRowLengthCache(p.start.row,p.start.row),this.$modified=!0,this._signal("changeFold",{data:o,action:"add"}),o},this.addFolds=function(e){e.forEach(function(e){this.addFold(e)},this)},this.removeFold=function(e){var t=e.foldLine,o=t.start.row,i=t.end.row,n=this.$foldData,r=t.folds;if(1==r.length)n.splice(n.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))r.pop(),t.end.row=r[r.length-1].end.row,t.end.column=r[r.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))r.shift(),t.start.row=r[0].start.row,t.start.column=r[0].start.column;else if(e.sameRow)r.splice(r.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);(r=s.folds).shift(),s.start.row=r[0].start.row,s.start.column=r[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(o,i):this.$updateRowLengthCache(o,i)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],o=0;o<e.length;o++)t.push(e[o]);t.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(t){this.removeFold(t),t.subFolds.forEach(function(e){t.restoreRange(e),this.addFold(e)},this),0<t.collapseChildren&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var o,i;if(null==e?(o=new d(0,0,this.getLength(),0),t=!0):o="number"==typeof e?new d(e,0,e,this.getLine(e).length):"row"in e?d.fromPoints(e,e):e,i=this.getFoldsInRangeList(o),t)this.removeFolds(i);else for(var n=i;n.length;)this.expandFolds(n),n=this.getFoldsInRangeList(o);if(i.length)return i},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var o=this.getFoldLine(e,t);return o?o.end.row:e},this.getRowFoldStart=function(e,t){var o=this.getFoldLine(e,t);return o?o.start.row:e},this.getFoldDisplayLine=function(e,t,o,n,r){null==n&&(n=e.start.row),null==r&&(r=0),null==t&&(t=e.end.row),null==o&&(o=this.getLine(t).length);var s=this.doc,a="";return e.walk(function(e,t,o,i){if(!(t<n)){if(t==n){if(o<r)return;i=Math.max(r,i)}a+=null!=e?e:s.getLine(t).substring(i,o)}},t,o),a},this.getDisplayLine=function(e,t,o,i){var n,r=this.getFoldLine(e);return r?this.getFoldDisplayLine(r,e,t,o,i):(n=this.doc.getLine(e)).substring(i||0,t||n.length)},this.$cloneFoldData=function(){var o=[];return o=this.$foldData.map(function(e){var t=e.folds.map(function(e){return e.clone()});return new g(o,t)})},this.toggleFold=function(e){var t,o,i=this.selection.getRange();if(i.isEmpty()){var n=i.start;if(t=this.getFoldAt(n.row,n.column))return void this.expandFold(t);(o=this.findMatchingBracket(n))?1==i.comparePoint(o)?i.end=o:(i.start=o,i.start.column++,i.end.column--):(o=this.findMatchingBracket({row:n.row,column:n.column+1}))?(1==i.comparePoint(o)?i.end=o:i.start=o,i.start.column++):i=this.getCommentFoldRange(n.row,n.column)||i}else{var r=this.getFoldsInRange(i);if(e&&r.length)return void this.expandFolds(r);1==r.length&&(t=r[0])}if(t||(t=this.getFoldAt(i.start.row,i.start.column)),t&&t.range.toString()==i.toString())this.expandFold(t);else{var s="...";if(!i.isMultiLine()){if((s=this.getTextRange(i)).length<4)return;s=s.trim().substring(0,2)+".."}this.addFold(s,i)}},this.getCommentFoldRange=function(e,t,o){var i=new u(this,e,t),n=i.getCurrentToken(),r=n.type;if(n&&/^comment|string/.test(r)){"comment"==(r=r.match(/comment|string/)[0])&&(r+="|doc-start");var s=new RegExp(r),a=new d;if(1!=o){for(;(n=i.stepBackward())&&s.test(n.type););i.stepForward()}if(a.start.row=i.getCurrentTokenRow(),a.start.column=i.getCurrentTokenColumn()+2,i=new u(this,e,t),-1!=o){var l=-1;do{if(n=i.stepForward(),-1==l){var c=this.getState(i.$row);s.test(c)||(l=i.$row)}else if(i.$row>l)break}while(n&&s.test(n.type));n=i.stepBackward()}else n=i.getCurrentToken();return a.end.row=i.getCurrentTokenRow(),a.end.column=i.getCurrentTokenColumn()+n.value.length-2,a}},this.foldAll=function(e,t,o){null==o&&(o=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength();for(var n=e=e||0;n<t;n++)if(null==i[n]&&(i[n]=this.getFoldWidget(n)),"start"==i[n]){var r=this.getFoldWidgetRange(n);if(r&&r.isMultiLine()&&r.end.row<=t&&r.start.row>=e){n=r.end.row;try{var s=this.addFold("...",r);s&&(s.collapseChildren=o)}catch(e){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){"manual"==(this.$foldStyle=e)&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var o=this.foldWidgets;if(!o||t&&o[e])return{};for(var i,n=e-1;0<=n;){var r=o[n];if(null==r&&(r=o[n]=this.getFoldWidget(n)),"start"==r){var s=this.getFoldWidgetRange(n);if(i||(i=s),s&&s.end.row>=e)break}n--}return{range:-1!==n&&s,firstRange:i}},this.onFoldWidgetClick=function(e,t){var o={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,o)){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var o=this.getFoldWidget(e),i=this.getLine(e),n="end"===o?-1:1,r=this.getFoldAt(e,-1===n?0:i.length,n);if(r)return t.children||t.all?this.removeFold(r):this.expandFold(r),r;var s=this.getFoldWidgetRange(e,!0);if(s&&!s.isMultiLine()&&(r=this.getFoldAt(s.start.row,s.start.column,1))&&s.isEqual(r.range))return this.removeFold(r),r;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,c=a.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=s?s.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var o=this.$toggleFoldWidget(t,{});if(!o){var i=this.getParentFoldRangeData(t,!0);if(o=i.range||i.firstRange){t=o.start.row;var n=this.getFoldAt(t,this.getLine(t).length,1);n?this.removeFold(n):this.addFold("...",o)}}},this.updateFoldWidgets=function(e){var t=e.start.row,o=e.end.row-t;if(0===o)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,o+1,null);else{var i=Array(o+1);i.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,o){"use strict";var u=e("../token_iterator").TokenIterator,a=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var o=t||this.getLine(e.row).charAt(e.column-1);if(""==o)return null;var i=o.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e):null},this.getBracketRange=function(e){var t,o=this.getLine(e.row),i=!0,n=o.charAt(e.column-1),r=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(r||(n=o.charAt(e.column),e={row:e.row,column:e.column+1},r=n&&n.match(/([\(\[\{])|([\)\]\}])/),i=!1),!r)return null;if(r[1]){if(!(s=this.$findClosingBracket(r[1],e)))return null;t=a.fromPoints(e,s),i||(t.end.column++,t.start.column--),t.cursor=t.end}else{var s;if(!(s=this.$findOpeningBracket(r[2],e)))return null;t=a.fromPoints(s,e),i||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(e,t,o){var i=this.$brackets[e],n=1,r=new u(this,t.row,t.column),s=r.getCurrentToken();if(s||(s=r.stepForward()),s){o||(o=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var a=t.column-r.getCurrentTokenColumn()-2,l=s.value;;){for(;0<=a;){var c=l.charAt(a);if(c==i){if(0==(n-=1))return{row:r.getCurrentTokenRow(),column:a+r.getCurrentTokenColumn()}}else c==e&&(n+=1);a-=1}for(;(s=r.stepBackward())&&!o.test(s.type););if(null==s)break;a=(l=s.value).length-1}return null}},this.$findClosingBracket=function(e,t,o){var i=this.$brackets[e],n=1,r=new u(this,t.row,t.column),s=r.getCurrentToken();if(s||(s=r.stepForward()),s){o||(o=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var a=t.column-r.getCurrentTokenColumn();;){for(var l=s.value,c=l.length;a<c;){var d=l.charAt(a);if(d==i){if(0==(n-=1))return{row:r.getCurrentTokenRow(),column:a+r.getCurrentTokenColumn()}}else d==e&&(n+=1);a+=1}for(;(s=r.stepForward())&&!o.test(s.type););if(null==s)break;a=0}return null}}}}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,t,o){"use strict";var i=e("./lib/oop"),n=e("./lib/lang"),r=e("./bidihandler").BidiHandler,s=e("./config"),l=e("./lib/event_emitter").EventEmitter,a=e("./selection").Selection,c=e("./mode/text").Mode,d=e("./range").Range,u=e("./document").Document,h=e("./background_tokenizer").BackgroundTokenizer,p=e("./search_highlight").SearchHighlight,f=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++f.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new u(e)),this.$bidiHandler=new r(this),this.setDocument(e),this.selection=new a(this),s.resetOptions(this),this.setMode(t),s._signal("session",this)};f.$uid=0,function(){i.implement(this,l),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),(this.doc=e).on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,o=this.$getRowCacheIndex(this.$docRowCache,e)+1;o<t&&(this.$docRowCache.splice(o,t),this.$screenRowCache.splice(o,t))},this.$getRowCacheIndex=function(e,t){for(var o=0,i=e.length-1;o<=i;){var n=o+i>>1,r=e[n];if(r<t)o=n+1;else{if(!(t<r))return n;i=n-1}}return o-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);this.$fromUndo||!this.$undoManager||e.ignore||(this.$deltasDoc.push(e),t&&0!=t.length&&this.$deltasFold.push({action:"removeFolds",folds:t}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var o,i=this.bgTokenizer.getTokens(e),n=0;if(null==t){var r=i.length-1;n=this.getLine(e).length}else for(r=0;r<i.length&&!(t<=(n+=i[r].value.length));r++);return(o=i[r])?(o.index=r,o.start=n-o.value.length,o):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.$deltasFold.length&&(t.$deltas.push({group:"fold",deltas:t.$deltasFold}),t.$deltasFold=[]),t.$deltasDoc.length&&(t.$deltas.push({group:"doc",deltas:t.$deltasDoc}),t.$deltasDoc=[]),0<t.$deltas.length&&e.execute({action:"aceupdate",args:[t.$deltas,t],merge:t.mergeUndoDeltas}),t.mergeUndoDeltas=!1,t.$deltas=[]},this.$informUndoManager=n.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?n.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,o,i){var n=this.$markerId++,r={range:e,type:o||"line",renderer:"function"==typeof o?o:null,clazz:t,inFront:!!i,id:n};return i?(this.$frontMarkers[n]=r,this._signal("changeFrontMarker")):(this.$backMarkers[n]=r,this._signal("changeBackMarker")),n},this.addDynamicMarker=function(e,t){if(e.update){var o=this.$markerId++;return e.id=o,e.inFront=!!t,t?(this.$frontMarkers[o]=e,this._signal("changeFrontMarker")):(this.$backMarkers[o]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var o=t.inFront?this.$frontMarkers:this.$backMarkers;t&&(delete o[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new p(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,o,i){"number"!=typeof t&&(o=t,t=e),o||(o="ace_step");var n=new d(e,0,t,1/0);return n.id=this.addMarker(n,o,"fullLine",i),n},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var o=this.getLine(e),i=!1;if(0<t&&(i=!!o.charAt(t-1).match(this.tokenRe)),i||(i=!!o.charAt(t).match(this.tokenRe)),i)var n=this.tokenRe;else if(/^\s+$/.test(o.slice(t-1,t+1)))n=/\s/;else n=this.nonTokenRe;var r=t;if(0<r){for(;0<=--r&&o.charAt(r).match(n););r++}for(var s=t;s<o.length&&o.charAt(s).match(n);)s++;return new d(e,r,e,s)},this.getAWordRange=function(e,t){for(var o=this.getWordRange(e,t),i=this.getLine(o.end.row);i.charAt(o.end.column).match(/[ \t]/);)o.end.column+=1;return o},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes={},this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var o=e,i=o.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[i]&&!o)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,s.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!o?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(o),o||((this.$modes[i]=e).$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var o=e.getTokenizer();if(void 0!==o.addEventListener){var i=this.onReloadTokenizer.bind(this);o.addEventListener("update",i)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(o);else{this.bgTokenizer=new h(o);var n=this;this.bgTokenizer.addEventListener("update",function(e){n._signal("tokenizerUpdate",e)})}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var t=0;return this.lineWidgets.forEach(function(e){e&&e.screenWidth>t&&(t=e.screenWidth)}),this.lineWidgetWidth=t},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),o=this.$rowLengthCache,i=0,n=0,r=this.$foldData[n],s=r?r.start.row:1/0,a=t.length,l=0;l<a;l++){if(s<l){if(a<=(l=r.end.row+1))break;s=(r=this.$foldData[n++])?r.start.row:1/0}null==o[l]&&(o[l]=this.$getStringScreenWidth(t[l])[0]),o[l]>i&&(i=o[l])}this.screenWidth=i}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var o=null,i=e.length-1;-1!=i;i--){var n=e[i];"doc"==n.group?(this.doc.revertDeltas(n.deltas),o=this.$getUndoSelection(n.deltas,!0,o)):n.deltas.forEach(function(e){this.addFolds(e.folds)},this)}return this.$fromUndo=!1,o&&this.$undoSelect&&!t&&this.selection.setSelectionRange(o),o}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var o=null,i=0;i<e.length;i++){var n=e[i];"doc"==n.group&&(this.doc.applyDeltas(n.deltas),o=this.$getUndoSelection(n.deltas,!1,o))}return this.$fromUndo=!1,o&&this.$undoSelect&&!t&&this.selection.setSelectionRange(o),o}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t,o){function i(e){return t?"insert"!==e.action:"insert"===e.action}var n,r,s=e[0];i(s)?n=d.fromPoints(s.start,s.end):n=d.fromPoints(s.start,s.start);for(var a=1;a<e.length;a++)i(s=e[a])?(r=s.start,-1==n.compare(r.row,r.column)&&n.setStart(r),r=s.end,1==n.compare(r.row,r.column)&&n.setEnd(r),!0):(r=s.start,-1==n.compare(r.row,r.column)&&(n=d.fromPoints(s.start,s.start)),!1);if(null!=o){0===d.comparePoints(o.start,n.start)&&(o.start.column+=n.end.column-n.start.column,o.end.column+=n.end.column-n.start.column);var l=o.compareRange(n);1==l?n.setStart(o.start):-1==l&&n.setEnd(o.end)}return n},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,o){var i=this.getTextRange(e),n=this.getFoldsInRange(e),r=d.fromPoints(t,t);if(!o){this.remove(e);var s=e.start.row-e.end.row;(c=s?-e.end.column:e.start.column-e.end.column)&&(r.start.row==e.end.row&&r.start.column>e.end.column&&(r.start.column+=c),r.end.row==e.end.row&&r.end.column>e.end.column&&(r.end.column+=c)),s&&r.start.row>=e.end.row&&(r.start.row+=s,r.end.row+=s)}if(r.end=this.insert(r.start,i),n.length){var a=e.start,l=r.start,c=(s=l.row-a.row,l.column-a.column);this.addFolds(n.map(function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=c),e.end.row==a.row&&(e.end.column+=c),e.start.row+=s,e.end.row+=s,e}))}return r},this.indentRows=function(e,t,o){o=o.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},o)},this.outdentRows=function(e){for(var t=e.collapseRows(),o=new d(0,0,0,0),i=this.getTabSize(),n=t.start.row;n<=t.end.row;++n){var r=this.getLine(n);o.start.row=n,o.end.row=n;for(var s=0;s<i&&" "==r.charAt(s);++s);s<i&&"\t"==r.charAt(s)?(o.start.column=s,o.end.column=s+1):(o.start.column=0,o.end.column=s),this.remove(o)}},this.$moveLines=function(e,t,o){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),o<0){if((n=this.getRowFoldStart(e+o))<0)return 0;var i=n-e}else if(0<o){var n;if((n=this.getRowFoldEnd(t+o))>this.doc.getLength()-1)return 0;i=n-t}else{e=this.$clipRowToDocument(e);i=(t=this.$clipRowToDocument(t))-e+1}var r=new d(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(r).map(function(e){return(e=e.clone()).start.row+=i,e.end.row+=i,e}),a=0==o?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,a),s.length&&this.addFolds(s),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)t=e=0;else{var o=this.doc.getLength();o<=e?(e=o-1,t=this.doc.getLine(o-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var o=this.$wrapLimitRange;o.max<0&&(o={min:t,max:t});var i=this.$constrainWrapLimit(e,o.min,o.max);return i!=this.$wrapLimit&&1<i&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,o){return t&&(e=Math.max(t,e)),o&&(e=Math.min(o,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,o=e.action,i=e.start,n=e.end,r=i.row,s=n.row,a=s-r,l=null;if(this.$updating=!0,0!=a)if("remove"===o){this[t?"$wrapData":"$rowLengthCache"].splice(r,a);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var d=0;if(g=this.getFoldLine(n.row)){g.addRemoveChars(n.row,n.column,i.column-n.column),g.shiftRow(-a);var u=this.getFoldLine(r);u&&u!==g&&(u.merge(g),g=u),d=c.indexOf(g)+1}for(;d<c.length;d++){(g=c[d]).start.row>=n.row&&g.shiftRow(-a)}s=r}else{var h=Array(a);h.unshift(r,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,h);c=this.$foldData,d=0;if(g=this.getFoldLine(r)){var f=g.range.compareInside(i.row,i.column);0==f?(g=g.split(i.row,i.column))&&(g.shiftRow(a),g.addRemoveChars(s,0,n.column-i.column)):-1==f&&(g.addRemoveChars(r,0,n.column-i.column),g.shiftRow(a)),d=c.indexOf(g)+1}for(;d<c.length;d++){var g;(g=c[d]).start.row>=r&&g.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===o&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(g=this.getFoldLine(r))&&g.addRemoveChars(r,i.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(r,s):this.$updateRowLengthCache(r,s),l},this.$updateRowLengthCache=function(e,t,o){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var s,o,a=this.doc.getAllLines(),i=this.getTabSize(),n=this.$wrapData,r=this.$wrapLimit,l=e;for(t=Math.min(t,a.length-1);l<=t;)(o=this.getFoldLine(l,o))?(s=[],o.walk(function(e,t,o,i){var n;if(null!=e){(n=this.$getDisplayTokens(e,s.length))[0]=f;for(var r=1;r<n.length;r++)n[r]=g}else n=this.$getDisplayTokens(a[t].substring(i,o),s.length);s=s.concat(n)}.bind(this),o.end.row,a[o.end.row].length+1),n[o.start.row]=this.$computeWrapSplits(s,r,i),l=o.end.row+1):(s=this.$getDisplayTokens(a[l]),n[l]=this.$computeWrapSplits(s,r,i),l++)};var f=3,g=4;function a(e){return!(e<4352)&&(4352<=e&&e<=4447||4515<=e&&e<=4519||4602<=e&&e<=4607||9001<=e&&e<=9002||11904<=e&&e<=11929||11931<=e&&e<=12019||12032<=e&&e<=12245||12272<=e&&e<=12283||12288<=e&&e<=12350||12353<=e&&e<=12438||12441<=e&&e<=12543||12549<=e&&e<=12589||12593<=e&&e<=12686||12688<=e&&e<=12730||12736<=e&&e<=12771||12784<=e&&e<=12830||12832<=e&&e<=12871||12880<=e&&e<=13054||13056<=e&&e<=19903||19968<=e&&e<=42124||42128<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||55216<=e&&e<=55238||55243<=e&&e<=55291||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65106||65108<=e&&e<=65126||65128<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510)}this.$computeWrapSplits=function(i,e,n){if(0==i.length)return[];var r=[],t=i.length,s=0,a=0,l=this.$wrapAsCode,c=this.$indentedSoftWrap,d=e<=Math.max(2*n,8)||!1===c?0:Math.floor(e/2);function o(e){var t=i.slice(s,e),o=t.length;t.join("").replace(/12/g,function(){o-=1}).replace(/2/g,function(){o-=1}),r.length||(u=function(){var e=0;if(0===d)return e;if(c)for(var t=0;t<i.length;t++){var o=i[t];if(10==o)e+=1;else{if(11!=o){if(12==o)continue;break}e+=n}}return l&&!1!==c&&(e+=n),Math.min(e,d)}(),r.indent=u),a+=o,r.push(a),s=e}for(var u=0;e-u<t-s;){var h=s+e-u;if(10<=i[h-1]&&10<=i[h])o(h);else if(i[h]!=f&&i[h]!=g){for(var p=Math.max(h-(e-(e>>2)),s-1);p<h&&i[h]<f;)h--;if(l){for(;p<h&&i[h]<f;)h--;for(;p<h&&9==i[h];)h--}else for(;p<h&&i[h]<10;)h--;p<h?o(++h):(2==i[h=s+e]&&h--,o(h-u))}else{for(;h!=s-1&&i[h]!=f;h--);if(s<h){o(h);continue}for(h=s+e;h<i.length&&i[h]==g;h++);if(h==i.length)break;o(h)}}return r},this.$getDisplayTokens=function(e,t){var o,i=[];t=t||0;for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(9==r){o=this.getScreenTabSize(i.length+t),i.push(11);for(var s=1;s<o;s++)i.push(12)}else 32==r?i.push(10):39<r&&r<48||57<r&&r<64?i.push(9):4352<=r&&a(r)?i.push(1,2):i.push(1)}return i},this.$getStringScreenWidth=function(e,t,o){if(0==t)return[0,0];var i,n;for(null==t&&(t=1/0),o=o||0,n=0;n<e.length&&(9==(i=e.charCodeAt(n))?o+=this.getScreenTabSize(o):4352<=i&&a(i)?o+=2:o+=1,!(t<o));n++);return[o,n]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),o=this.$wrapData[t.row];return o.length&&o[0]<t.column?o.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var o=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(o)},this.getDocumentLastRowColumnPosition=function(e,t){var o=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(o,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-e%this.$tabSize},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,o){if(e<0)return{row:0,column:0};var i,n,r=0,s=0,a=0,l=0,c=this.$screenRowCache,d=this.$getRowCacheIndex(c,e),u=c.length;if(u&&0<=d){a=c[d],r=this.$docRowCache[d];var h=e>c[u-1]}else h=!u;for(var p=this.getLength()-1,f=this.getNextFoldLine(r),g=f?f.start.row:1/0;a<=e&&!(e<a+(l=this.getRowLength(r))||p<=r);)a+=l,g<++r&&(r=f.end.row+1,g=(f=this.getNextFoldLine(r,f))?f.start.row:1/0),h&&(this.$docRowCache.push(r),this.$screenRowCache.push(a));if(f&&f.start.row<=r)i=this.getFoldDisplayLine(f),r=f.start.row;else{if(a+l<=e||p<r)return{row:p,column:this.getLine(p).length};i=this.getLine(r),f=null}var m=0,v=Math.floor(e-a);if(this.$useWrapMode){var b=this.$wrapData[r];b&&(n=b[v],0<v&&b.length&&(m=b.indent,s=b[v-1]||b[b.length-1],i=i.substring(s)))}return void 0!==o&&this.$bidiHandler.isBidiRow(a+v,r,v)&&(t=this.$bidiHandler.offsetToCol(o)),s+=this.$getStringScreenWidth(i,t-m)[1],this.$useWrapMode&&n<=s&&(s=n-1),f?f.idxToPosition(s):{row:r,column:s}},this.documentToScreenPosition=function(e,t){if(void 0===t)var o=this.$clipPositionToDocument(e.row,e.column);else o=this.$clipPositionToDocument(e,t);e=o.row,t=o.column;var i,n=0,r=null;(i=this.getFoldAt(e,t,1))&&(e=i.start.row,t=i.start.column);var s,a=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),d=l.length;if(d&&0<=c){a=l[c],n=this.$screenRowCache[c];var u=e>l[d-1]}else u=!d;for(var h=this.getNextFoldLine(a),p=h?h.start.row:1/0;a<e;){if(p<=a){if(e<(s=h.end.row+1))break;p=(h=this.getNextFoldLine(s,h))?h.start.row:1/0}else s=a+1;n+=this.getRowLength(a),a=s,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(n))}var f="";h&&p<=a?(f=this.getFoldDisplayLine(h,e,t),r=h.start.row):(f=this.getLine(e).substring(0,t),r=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[r];if(m){for(var v=0;f.length>=m[v];)n++,v++;f=f.substring(m[v-1]||0,f.length),g=0<v?m.indent:0}}return{row:n,column:g+this.$getStringScreenWidth(f)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var o=this.$wrapData.length,i=0,n=(a=0,(t=this.$foldData[a++])?t.start.row:1/0);i<o;){var r=this.$wrapData[i];e+=r?r.length+1:1,n<++i&&(i=t.end.row+1,n=(t=this.$foldData[a++])?t.start.row:1/0)}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)e-=(t=s[a]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(r){this.$enableVarChar&&(this.$getStringScreenWidth=function(e,t,o){if(0===t)return[0,0];var i,n;for(t||(t=1/0),o=o||0,n=0;n<e.length&&!(t<(o+="\t"===(i=e.charAt(n))?this.getScreenTabSize(o):r.getCharacterWidth(i)));n++);return[o,n]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=a}.call(f.prototype),e("./edit_session/folding").Folding.call(f.prototype),e("./edit_session/bracket_match").BracketMatch.call(f.prototype),s.defineOptions(f.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId}}}),t.EditSession=f}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,o){"use strict";var y=e("./lib/lang"),i=e("./lib/oop"),x=e("./range").Range,n=function(){this.$options={}};(function(){this.set=function(e){return i.mixin(this.$options,e),this},this.getOptions=function(){return y.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var n=this.$options,t=this.$matchIterator(e,n);if(!t)return!1;var r=null;return t.forEach(function(e,t,o,i){return r=new x(e,t,o,i),!(t==i&&n.start&&n.start.start&&0!=n.skipCurrent&&r.isEqual(n.start))||(r=null,!1)}),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var o=t.range,i=o?e.getLines(o.start.row,o.end.row):e.doc.getAllLines(),n=[],r=t.re;if(t.$isMultiLine){var s,a=r.length,l=i.length-a;e:for(var c=r.offset||0;c<=l;c++){for(var d=0;d<a;d++)if(-1==i[c+d].search(r[d]))continue e;var u=i[c],h=i[c+a-1],p=u.length-u.match(r[0])[0].length,f=h.match(r[a-1])[0].length;s&&s.end.row===c&&s.end.column>p||(n.push(s=new x(c,p,c+a-1,f)),2<a&&(c=c+a-2))}}else for(var g=0;g<i.length;g++){var m=y.getMatchOffsets(i[g],r);for(d=0;d<m.length;d++){var v=m[d];n.push(new x(g,v.offset,g,v.offset+v.length))}}if(o){var b=o.start.column,w=o.start.column;for(g=0,d=n.length-1;g<d&&n[g].start.column<b&&n[g].start.row==o.start.row;)g++;for(;g<d&&n[d].end.column>w&&n[d].end.row==o.end.row;)d--;for(n=n.slice(g,d+1),g=0,d=n.length;g<d;g++)n[g].start.row+=o.start.row,n[g].end.row+=o.start.row}return n},this.replace=function(e,t){var o=this.$options,i=this.$assembleRegExp(o);if(o.$isMultiLine)return t;if(i){var n=i.exec(e);if(!n||n[0].length!=e.length)return null;if(t=e.replace(i,t),o.preserveCase){t=t.split("");for(var r=Math.min(e.length,e.length);r--;){var s=e[r];s&&s.toLowerCase()!=s?t[r]=t[r].toUpperCase():t[r]=t[r].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var o=e.needle;if(!e.needle)return e.re=!1;e.regExp||(o=y.escapeRegExp(o)),e.wholeWord&&(o=function(e,t){function o(e){return/\w/.test(e)||t.regExp?"\\b":""}return o(e[0])+e+o(e[e.length-1])}(o,e));var i=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(o),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(o,i);try{var n=new RegExp(o,i)}catch(e){n=!1}return e.re=n},this.$assembleMultilineRegExp=function(e,t){for(var o=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],n=0;n<o.length;n++)try{i.push(new RegExp(o[n],t))}catch(e){return!1}return i},this.$matchIterator=function(d,o){var u=this.$assembleRegExp(o);if(!u)return!1;var l=1==o.backwards,e=0!=o.skipCurrent,t=o.range,i=o.start;i||(i=t?t[l?"end":"start"]:d.selection.getRange()),i.start&&(i=i[e!=l?"end":"start"]);var n=t?t.start.row:0,r=t?t.end.row:d.getLength()-1;if(l)var s=function(e){var t=i.row;if(!a(t,i.column,e)){for(t--;n<=t;t--)if(a(t,Number.MAX_VALUE,e))return;if(0!=o.wrap)for(t=r,n=i.row;n<=t;t--)if(a(t,Number.MAX_VALUE,e))return}};else s=function(e){var t=i.row;if(!a(t,i.column,e)){for(t+=1;t<=r;t++)if(a(t,0,e))return;if(0!=o.wrap)for(t=n,r=i.row;t<=r;t++)if(a(t,0,e))return}};if(o.$isMultiLine)var c=u.length,a=function(e,t,o){var i=l?e-c+1:e;if(!(i<0)){var n=d.getLine(i),r=n.search(u[0]);if(!(!l&&r<t||-1===r)){for(var s=1;s<c;s++)if(-1==(n=d.getLine(i+s)).search(u[s]))return;var a=n.match(u[c-1])[0].length;if(!(l&&t<a))return!!o(i,r,i+c-1,a)||void 0}}};else if(l)a=function(e,t,o){var i,n=d.getLine(e),r=[],s=0;for(u.lastIndex=0;i=u.exec(n);){var a=i[0].length;if(s=i.index,!a){if(s>=n.length)break;u.lastIndex=s+=1}if(i.index+a>t)break;r.push(i.index,a)}for(var l=r.length-1;0<=l;l-=2){var c=r[l-1];if(o(e,c,e,c+(a=r[l])))return!0}};else a=function(e,t,o){var i,n=d.getLine(e),r=t;for(u.lastIndex=t;i=u.exec(n);){var s=i[0].length;if(o(e,r=i.index,e,r+s))return!0;if(!s&&(u.lastIndex=r+=1,r>=n.length))return!1}};return{forEach:s}}}).call(n.prototype),t.Search=n}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,o){"use strict";var a=e("../lib/keys"),i=e("../lib/useragent"),l=a.KEY_MODS;function n(e,t){this.platform=t||(i.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function r(e,t){n.call(this,e,t),this.$singleCommand=!1}r.prototype=n.prototype,function(){function s(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var o=e&&("string"==typeof e?e:e.name);e=this.commands[o],t||delete this.commands[o];var i=this.commandKeyBinding;for(var n in i){var r=i[n];if(r==e)delete i[n];else if(Array.isArray(r)){var s=r.indexOf(e);-1!=s&&(r.splice(s,1),1==r.length&&(i[n]=r[0]))}}},this.bindKey=function(e,r,s){if("object"==typeof e&&e&&(null==s&&(s=e.position),e=e[this.platform]),e)return"function"==typeof r?this.addCommand({exec:r,bindKey:e,name:r.name||e}):void e.split("|").forEach(function(e){var i="";if(-1!=e.indexOf(" ")){var t=e.split(/\s+/);e=t.pop(),t.forEach(function(e){var t=this.parseKeys(e),o=l[t.hashId]+t.key;i+=(i?" ":"")+o,this._addCommandToBinding(i,"chainKeys")},this),i+=" "}var o=this.parseKeys(e),n=l[o.hashId]+o.key;this._addCommandToBinding(i+n,r,s)},this)},this._addCommandToBinding=function(e,t,o){var i,n=this.commandKeyBinding;if(t)if(!n[e]||this.$singleCommand)n[e]=t;else{Array.isArray(n[e])?-1!=(i=n[e].indexOf(t))&&n[e].splice(i,1):n[e]=[n[e]],"number"!=typeof o&&(o=s(t));var r=n[e];for(i=0;i<r.length;i++){if(o<s(r[i]))break}r.splice(i,0,t)}else delete n[e]},this.addCommands=function(o){o&&Object.keys(o).forEach(function(e){var t=o[e];if(t){if("string"==typeof t)return this.bindKey(t,e);"function"==typeof t&&(t={exec:t}),"object"==typeof t&&(t.name||(t.name=e),this.addCommand(t))}},this)},this.removeCommands=function(t){Object.keys(t).forEach(function(e){this.removeCommand(t[e])},this)},this.bindKeys=function(t){Object.keys(t).forEach(function(e){this.bindKey(e,t[e])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),o=t.pop(),i=a[o];if(a.FUNCTION_KEYS[i])o=a.FUNCTION_KEYS[i].toLowerCase();else{if(!t.length)return{key:o,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:o.toUpperCase(),hashId:-1}}for(var n=0,r=t.length;r--;){var s=a.KEY_MODS[t[r]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[r]+" in "+e),!1;n|=s}return{key:o,hashId:n}},this.findKeyCommand=function(e,t){var o=l[e]+t;return this.commandKeyBinding[o]},this.handleKeyboard=function(e,t,o,i){if(!(i<0)){var n=l[t]+o,r=this.commandKeyBinding[n];return e.$keyChain&&(e.$keyChain+=" "+n,r=this.commandKeyBinding[e.$keyChain]||r),!r||"chainKeys"!=r&&"chainKeys"!=r[r.length-1]?(e.$keyChain&&(t&&4!=t||1!=o.length?(-1==t||0<i)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-n.length-1)),{command:r}):(e.$keyChain=e.$keyChain||n,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(n.prototype),t.HashHandler=n,t.MultiHashHandler=r}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,o){"use strict";var i=e("../lib/oop"),n=e("../keyboard/hash_handler").MultiHashHandler,r=e("../lib/event_emitter").EventEmitter,s=function(e,t){n.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.command.exec(e.editor,e.args||{})})};i.inherits(s,n),function(){i.implement(this,r),this.exec=function(e,t,o){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,o))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(e.isAvailable&&!e.isAvailable(t))return!1;var n={editor:t,command:e,args:o};return n.returnValue=this._emit("exec",n),this._signal("afterExec",n),!1!==n.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(t){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(t);try{this.$inReplay=!0,this.macro.forEach(function(e){"string"==typeof e?this.exec(e,t):this.exec(e[0],t,e[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e})}}.call(s.prototype),t.CommandManager=s}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,o){"use strict";var c=e("../lib/lang"),i=e("../config"),d=e("../range").Range;function n(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:n("Ctrl-,","Command-,"),exec:function(t){i.loadModule("ace/ext/settings_menu",function(e){e.init(t),t.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:n("Alt-E","F4"),exec:function(t){i.loadModule("ace/ext/error_marker",function(e){e.showErrorMarker(t,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:n("Alt-Shift-E","Shift-F4"),exec:function(t){i.loadModule("ace/ext/error_marker",function(e){e.showErrorMarker(t,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:n("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",bindKey:n(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:n("Ctrl-L","Command-L"),exec:function(e){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||e.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:n("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:n("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:n("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:n("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:n(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:n("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:n("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:n("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:n("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:n("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:n("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",bindKey:n("Ctrl-F","Command-F"),exec:function(t){i.loadModule("ace/ext/searchbox",function(e){e.Search(t)})},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:n("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:n("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:n("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:n("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:n("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:n("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:n("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:n("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:n("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:n("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:n("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:n("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:n("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:n("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:n("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:n("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:n("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:n("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:n("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:n("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:n(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:n("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:n(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:n("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:n("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:n("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",bindKey:n("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",bindKey:n("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:n("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:n("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:n(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(e){},readOnly:!0},{name:"cut",exec:function(e){var t=e.getSelectionRange();e._emit("cut",t),e.selection.isEmpty()||(e.session.remove(t),e.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:n("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:n("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:n("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:n("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:n("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:n("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:n("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:n("Ctrl-H","Command-Option-F"),exec:function(t){i.loadModule("ace/ext/searchbox",function(e){e.Search(t,!0)})}},{name:"undo",bindKey:n("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",bindKey:n("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",bindKey:n("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:n("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:n("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:n("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:n("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:n("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:n("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:n("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:n("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:n("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:n("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:n("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:n("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:n("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:n("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:n("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:n("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(e,t){e.insert(c.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:n(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:n("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:n("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:n("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:n("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:n(null,null),exec:function(e){for(var t=e.selection.isBackwards(),o=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),n=e.session.doc.getLine(o.row).length,r=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,s=e.session.doc.getLine(o.row),a=o.row+1;a<=i.row+1;a++){var l=c.stringTrimLeft(c.stringTrimRight(e.session.doc.getLine(a)));0!==l.length&&(l=" "+l),s+=l}i.row+1<e.session.doc.getLength()-1&&(s+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new d(o.row,0,i.row+2,0),s),0<r?(e.selection.moveCursorTo(o.row,o.column),e.selection.selectTo(o.row,o.column+r)):(n=e.session.doc.getLine(o.row).length>n?n+1:n,e.selection.moveCursorTo(o.row,n))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:n(null,null),exec:function(e){var t=e.session.doc.getLength()-1,o=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,n=[];i.length<1&&(i=[e.selection.getRange()]);for(var r=0;r<i.length;r++)r==i.length-1&&(i[r].end.row===t&&i[r].end.column===o||n.push(new d(i[r].end.row,i[r].end.column,t,o))),0===r?0===i[r].start.row&&0===i[r].start.column||n.push(new d(0,0,i[r].start.row,i[r].start.column)):n.push(new d(i[r-1].end.row,i[r-1].end.column,i[r].start.row,i[r].start.column));e.exitMultiSelectMode(),e.clearSelection();for(r=0;r<n.length;r++)e.selection.addRange(n[r],!1)},readOnly:!0,scrollIntoView:"none"}]}),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator"],function(e,t,o){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/oop"),i=e("./lib/dom"),d=e("./lib/lang"),n=e("./lib/useragent"),s=e("./keyboard/textinput").TextInput,a=e("./mouse/mouse_handler").MouseHandler,l=e("./mouse/fold_handler").FoldHandler,c=e("./keyboard/keybinding").KeyBinding,u=e("./edit_session").EditSession,h=e("./search").Search,g=e("./range").Range,p=e("./lib/event_emitter").EventEmitter,f=e("./commands/command_manager").CommandManager,m=e("./commands/default_commands").commands,v=e("./config"),b=e("./token_iterator").TokenIterator,w=function(e,t){var o=e.getContainerElement();this.container=o,this.renderer=e,this.id="editor"+ ++w.$uid,this.commands=new f(n.isMac?"mac":"win",m),"object"==typeof document&&(this.textInput=new s(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new a(this),new l(this)),this.keyBinding=new c(this),this.$blockScrolling=0,this.$search=(new h).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=d.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(e,t){t._$emitInputEvent.schedule(31)}),this.setSession(t||new u("")),v.resetOptions(this),v._signal("editor",this)};w.$uid=0,function(){r.implement(this,p),this.$initOperationListeners=function(){this.selections=[],this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=d.delayedCall(this.endOperation.bind(this)),this.on("change",function(){this.curOp||this.startOperation(),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||this.startOperation(),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.command.name&&void 0!==this.curOp.command.scrollIntoView&&this.$blockScrolling++},this.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null;this._signal("beforeEndOperation");var t=this.curOp.command;t.name&&0<this.$blockScrolling&&this.$blockScrolling--;var o=t&&t.scrollIntoView;if(o){switch(o){case"center-animate":o="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),n=this.renderer.layerConfig;(i.start.row>=n.lastRow||i.end.row<=n.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==o&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,o=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var n=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(n)||/\s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==o.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&2e3<Date.now()-this.sequenceStartTime&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==o.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(t,o){if(t&&"string"==typeof t){this.$keybindingId=t;var i=this;v.loadModule(["keybinding",t],function(e){i.$keybindingId==t&&i.keyBinding.setKeyboardHandler(e&&e.handler),o&&o()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(t),o&&o()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var o=this.session.getSelection();o.off("changeCursor",this.$onCursorChange),o.off("changeSelection",this.$onSelectionChange)}(this.session=e)?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||i.computedStyle(this.container,"fontSize")},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var i=this;this.$highlightPending=!0,setTimeout(function(){i.$highlightPending=!1;var e=i.session;if(e&&e.bgTokenizer){var t=e.findMatchingBracket(i.getCursorPosition());if(t)var o=new g(t.row,t.column,t.row,t.column+1);else if(e.$mode.getMatching)o=e.$mode.getMatching(i.session);o&&(e.$bracketHighlight=e.addMarker(o,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var u=this;this.$highlightTagPending=!0,setTimeout(function(){u.$highlightTagPending=!1;var e=u.session;if(e&&e.bgTokenizer){var t=u.getCursorPosition(),o=new b(u.session,t.row,t.column),i=o.getCurrentToken();if(!i||!/\b(?:tag-open|tag-name)/.test(i.type))return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);if(-1==i.type.indexOf("tag-open")||(i=o.stepForward())){var n=i.value,r=0,s=o.stepBackward();if("<"==s.value)for(;s=i,(i=o.stepForward())&&i.value===n&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?r++:"</"===s.value&&r--),i&&0<=r;);else{for(;i=s,s=o.stepBackward(),i&&i.value===n&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?r++:"</"===s.value&&r--),s&&r<=0;);o.stepForward()}if(!i)return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);var a=o.getCurrentTokenRow(),l=o.getCurrentTokenColumn(),c=new g(a,l,a,l+i.value.length),d=e.$backMarkers[e.$tagHighlight];e.$tagHighlight&&null!=d&&0!==c.compareRange(d.range)&&(e.removeMarker(e.$tagHighlight),e.$tagHighlight=null),c&&!e.$tagHighlight&&(e.$tagHighlight=e.addMarker(c,"ace_bracket","text"))}}},50)}},this.focus=function(){var e=this;setTimeout(function(){e.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,o=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,o,t),this._signal("change",e),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(v.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),!this.renderer.$maxLines||1!==this.session.getLength()||1<this.renderer.$minLines||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var o=new g(e.row,e.column,e.row,1/0);o.id=t.addMarker(o,"ace_active-line","screenLine"),t.$highlightLineMarker=o}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var o=this.selection.getRange(),i=this.getSelectionStyle();t.$selectionMarker=t.addMarker(o,"ace_selection",i)}var n=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(n),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var o=t.start.column-1,i=t.end.column+1,n=e.getLine(t.start.row),r=n.length,s=n.substring(Math.max(o,0),Math.min(i,r));if(!(0<=o&&/^[\w\d]/.test(s)||i<=r&&/[\w\d]$/.test(s)))if(s=n.substring(t.start.column,t.end.column),/^[\w\d]+$/.test(s))return this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:s})}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText();return this._signal("copy",e),e},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var o={text:e,event:t};this.commands.exec("paste",this,o)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(t);else{var o=t.split(/\r\n|\r|\n/),i=this.selection.rangeList.ranges;if(o.length>i.length||o.length<2||!o[1])return this.commands.exec("insertstring",this,t);for(var n=i.length;n--;){var r=i[n];r.isEmpty()||this.session.remove(r),this.session.insert(r.start,o[n])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var o=this.session,i=o.getMode(),n=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var r=i.transformAction(o.getState(n.row),"insertion",this,o,e);r&&(e!==r.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),e=r.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){(s=new g.fromPoints(n,n)).end.column+=e.length,this.session.remove(s)}}else{var s=this.getSelectionRange();n=this.session.remove(s),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=o.getLine(n.row);if(n.column>a.search(/\S|$/)){var l=a.substr(n.column).search(/\S|$/);o.doc.removeInLine(n.row,n.column,n.column+l)}}this.clearSelection();var c=n.column,d=o.getState(n.row),u=(a=o.getLine(n.row),i.checkOutdent(d,a,e));o.insert(n,e);if(r&&r.selection&&(2==r.selection.length?this.selection.setSelectionRange(new g(n.row,c+r.selection[0],n.row,c+r.selection[1])):this.selection.setSelectionRange(new g(n.row+r.selection[0],r.selection[1],n.row+r.selection[2],r.selection[3]))),o.getDocument().isNewLine(e)){var h=i.getNextLineIndent(d,a.slice(0,n.column),o.getTabString());o.insert({row:n.row+1,column:0},h)}u&&i.autoOutdent(d,o,n.row)},this.onTextInput=function(e){this.keyBinding.onTextInput(e)},this.onCommandKey=function(e,t,o){this.keyBinding.onCommandKey(e,t,o)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var o=this.session,i=o.getState(t.start.row),n=o.getMode().transformAction(i,"deletion",this,o,t);if(0===t.end.column){var r=o.getTextRange(t);if("\n"==r[r.length-1]){var s=o.getLine(t.end.row);/^\s+$/.test(s)&&(t.end.column=s.length)}}n&&(t=n)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var o,i,n=this.session.getLine(e.row);t<n.length?(o=n.charAt(t)+n.charAt(t-1),i=new g(e.row,t-1,e.row,t+1)):(o=n.charAt(t-1)+n.charAt(t-2),i=new g(e.row,t-2,e.row,t)),this.session.replace(i,o),this.session.selection.moveToPosition(i.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),o=this.session.getTextRange(t);this.session.replace(t,o.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),o=this.session.getTextRange(t);this.session.replace(t,o.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var o=e.getTextRange(t);if(!/^\s+$/.test(o)){c=this.$getSelectedRows();return void e.indentRows(c.first,c.last,"\t")}}var i=e.getLine(t.start.row),n=t.start,r=e.getTabSize(),s=e.documentToScreenColumn(n.row,n.column);if(this.session.getUseSoftTabs())var a=r-s%r,l=d.stringRepeat(" ",a);else{for(a=s%r;" "==i[t.start.column-1]&&a;)t.start.column--,a--;this.selection.setSelectionRange(t),l="\t"}return this.insert(l)}var c=this.$getSelectedRows();e.indentRows(c.first,c.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,o=[],i=e.first;i<=e.last;i++)o.push(t.getLine(i));o.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0});var n=new g(0,0,0,0);for(i=e.first;i<=e.last;i++){var r=t.getLine(i);n.start.row=i,n.end.row=i,n.end.column=r.length,t.replace(n,o[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),o=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,o,e)},this.getNumberAt=function(e,t){var o=/[\-]?[0-9]+(?:\.[0-9]+)?/g;o.lastIndex=0;for(var i=this.session.getLine(e);o.lastIndex<t;){var n=o.exec(i);if(n.index<=t&&n.index+n[0].length>=t)return{value:n[0],start:n.index,end:n.index+n[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,o=this.selection.getCursor().column,i=new g(t,o-1,t,o),n=this.session.getTextRange(i);if(!isNaN(parseFloat(n))&&isFinite(n)){var r=this.getNumberAt(t,o);if(r){var s=0<=r.value.indexOf(".")?r.start+r.value.indexOf(".")+1:r.end,a=r.start+r.value.length-s,l=parseFloat(r.value);l*=Math.pow(10,a),s!==r.end&&o<s?e*=Math.pow(10,r.end-o-1):e*=Math.pow(10,r.end-o),l+=e;var c=(l/=Math.pow(10,a)).toFixed(a),d=new g(t,r.start,t,r.end);this.session.replace(d,c),this.moveCursorTo(t,Math.max(r.start+1,o+c.length-r.value.length))}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,o=e.getRange(),i=e.isBackwards();if(o.isEmpty()){var n=o.start.row;t.duplicateLines(n,n)}else{var r=i?o.start:o.end,s=t.insert(r,t.getTextRange(o),!1);o.start=r,o.end=s,e.setSelectionRange(o,i)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,o){return this.session.moveText(e,t,o)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var o,i,n=this.selection;if(!n.inMultiSelectMode||this.inVirtualSelectionMode){var r=n.toOrientedRange();o=this.$getSelectedRows(r),i=this.session.$moveLines(o.first,o.last,t?0:e),t&&-1==e&&(i=0),r.moveBy(i,0),n.fromOrientedRange(r)}else{var s=n.rangeList.ranges;n.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=s.length,d=0;d<c;d++){var u=d;s[d].moveBy(a,0);for(var h=(o=this.$getSelectedRows(s[d])).first,p=o.last;++d<c;){l&&s[d].moveBy(l,0);var f=this.$getSelectedRows(s[d]);if(t&&f.first!=p)break;if(!t&&f.first>p+1)break;p=f.last}for(d--,a=this.session.$moveLines(h,p,t?0:e),t&&-1==e&&(u=d+1);u<=d;)s[u].moveBy(a,0),u++;t||(a=0),l+=a}n.fromOrientedRange(n.ranges[0]),n.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var o=this.renderer,i=this.renderer.layerConfig,n=e*Math.floor(i.height/i.lineHeight);this.$blockScrolling++,!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(n,0)}):!1===t&&(this.selection.moveCursorBy(n,0),this.selection.clearSelection()),this.$blockScrolling--;var r=o.scrollTop;o.scrollBy(0,n*i.lineHeight),null!=t&&o.scrollCursorIntoView(null,.5),o.animateScrolling(r)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,o,i){this.renderer.scrollToLine(e,t,o,i)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var o=this.getCursorPosition(),i=new b(this.session,o.row,o.column),n=i.getCurrentToken(),r=n||i.stepForward();if(r){var s,a,l=!1,c={},d=o.column-r.start,u={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(r.value.match(/[{}()\[\]]/g)){for(;d<r.value.length&&!l;d++)if(u[r.value[d]])switch(a=u[r.value[d]]+"."+r.type.replace("rparen","lparen"),isNaN(c[a])&&(c[a]=0),r.value[d]){case"(":case"[":case"{":c[a]++;break;case")":case"]":case"}":c[a]--,-1===c[a]&&(s="bracket",l=!0)}}else r&&-1!==r.type.indexOf("tag-name")&&(isNaN(c[r.value])&&(c[r.value]=0),"<"===n.value?c[r.value]++:"</"===n.value&&c[r.value]--,-1===c[r.value]&&(s="tag",l=!0));l||(n=r,r=i.stepForward(),d=0)}while(r&&!l);if(s){var h,p;if("bracket"===s)(h=this.session.getBracketRange(o))||(p=(h=new g(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+d-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+d-1)).start,(t||p.row===o.row&&Math.abs(p.column-o.column)<2)&&(h=this.session.getBracketRange(p)));else if("tag"===s){if(!r||-1===r.type.indexOf("tag-name"))return;var f=r.value;if(0===(h=new g(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2)).compare(o.row,o.column))for(l=!1;r=n,(n=i.stepBackward())&&(-1!==n.type.indexOf("tag-close")&&h.setEnd(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+1),r.value===f&&-1!==r.type.indexOf("tag-name")&&("<"===n.value?c[f]++:"</"===n.value&&c[f]--,0===c[f]&&(l=!0))),n&&!l;);r&&r.type.indexOf("tag-name")&&(p=h.start).row==o.row&&Math.abs(p.column-o.column)<2&&(p=h.end)}(p=h&&h.cursor||p)&&(e?h&&t?this.selection.setRange(h):h&&h.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(p.row,p.column):this.selection.moveTo(p.row,p.column))}}},this.gotoLine=function(e,t,o){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.$blockScrolling+=1,this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.$blockScrolling-=1,this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,o)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var o=this.$search.find(this.session),i=0;return o&&(this.$tryReplace(o,e)&&(i=1),null!==o&&(this.selection.setSelectionRange(o),this.renderer.scrollSelectionIntoView(o.start,o.end))),i},this.replaceAll=function(e,t){t&&this.$search.set(t);var o=this.$search.findAll(this.session),i=0;if(!o.length)return i;this.$blockScrolling+=1;var n=this.getSelectionRange();this.selection.moveTo(0,0);for(var r=o.length-1;0<=r;--r)this.$tryReplace(o[r],e)&&i++;return this.selection.setSelectionRange(n),this.$blockScrolling-=1,i},this.$tryReplace=function(e,t){var o=this.session.getTextRange(e);return null!==(t=this.$search.replace(o,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,o){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var i=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(i)||this.$search.$options.needle)||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var n=this.$search.find(this.session);return t.preventScroll?n:n?(this.revealRange(n,o),n):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.$blockScrolling+=1,this.session.unfold(e),this.selection.setSelectionRange(e),this.$blockScrolling-=1;var o=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(o)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var n,r=this,s=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var a=this.$scrollAnchor;a.style.cssText="position:absolute",this.container.insertBefore(a,this.container.firstChild);var t=this.on("changeSelection",function(){s=!0}),o=this.renderer.on("beforeRender",function(){s&&(n=r.renderer.container.getBoundingClientRect())}),i=this.renderer.on("afterRender",function(){if(s&&n&&(r.isFocused()||r.searchBox&&r.searchBox.isFocused())){var e=r.renderer,t=e.$cursorLayer.$pixelPos,o=e.layerConfig,i=t.top-o.offset;null!=(s=0<=t.top&&i+n.top<0||!(t.top<o.height&&t.top+n.top+o.lineHeight>window.innerHeight)&&null)&&(a.style.top=i+"px",a.style.left=t.left+"px",a.style.height=o.lineHeight+"px",a.scrollIntoView(s)),s=n=null}});this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",t),this.renderer.off("afterRender",i),this.renderer.off("beforeRender",o))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,i.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))}}.call(w.prototype),v.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=w}),ace.define("ace/undomanager",["require","exports","module"],function(e,t,o){"use strict";var i=function(){this.reset()};(function(){function t(e){return{action:e.action,start:e.start,end:e.end,lines:1==e.lines.length?null:e.lines,text:1==e.lines.length?e.lines[0]:null}}function o(e){return{action:e.action,start:e.start,end:e.end,lines:e.lines||[e.text]}}function i(e,t){for(var o=new Array(e.length),i=0;i<e.length;i++){for(var n=e[i],r={group:n.group,deltas:new Array(n.length)},s=0;s<n.deltas.length;s++){var a=n.deltas[s];r.deltas[s]=t(a)}o[i]=r}return o}this.execute=function(e){var t=e.args[0];this.$doc=e.args[1],e.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(e){var t=this.$undoStack.pop(),o=null;return t&&(o=this.$doc.undoChanges(t,e),this.$redoStack.push(t),this.dirtyCounter--),o},this.redo=function(e){var t=this.$redoStack.pop(),o=null;return t&&(o=this.$doc.redoChanges(this.$deserializeDeltas(t),e),this.$undoStack.push(t),this.dirtyCounter++),o},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return 0<this.$undoStack.length},this.hasRedo=function(){return 0<this.$redoStack.length},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return 0===this.dirtyCounter},this.$serializeDeltas=function(e){return i(e,t)},this.$deserializeDeltas=function(e){return i(e,o)}}).call(i.prototype),t.UndoManager=i}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter"],function(e,t,o){"use strict";var x=e("../lib/dom"),i=e("../lib/oop"),a=e("../lib/lang"),n=e("../lib/event_emitter").EventEmitter,r=function(e){this.element=x.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$cells=[]};(function(){i.implement(this,n),this.setSession=function(e){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),(this.session=e)&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var o=e[t],i=o.row,n=this.$annotations[i];n||(n=this.$annotations[i]={text:[]});var r=o.text;r=r?a.escapeHTML(r):o.html||"",-1===n.text.indexOf(r)&&n.text.push(r);var s=o.type;"error"==s?n.className=" ace_error":"warning"==s&&" ace_error"!=n.className?n.className=" ace_warning":"info"!=s||n.className||(n.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,o=e.end.row-t;if(0===o);else if("remove"==e.action)this.$annotations.splice(t,o+1,null);else{var i=new Array(o+1);i.unshift(t,1),this.$annotations.splice.apply(this.$annotations,i)}}},this.update=function(e){for(var t=this.session,o=e.firstRow,i=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),n=t.getNextFoldLine(o),r=n?n.start.row:1/0,s=this.$showFoldWidgets&&t.foldWidgets,a=t.$breakpoints,l=t.$decorations,c=t.$firstLineNumber,d=0,u=t.gutterRenderer||this.$renderer,h=null,p=-1,f=o;;){if(r<f&&(f=n.end.row+1,r=(n=t.getNextFoldLine(f,n))?n.start.row:1/0),i<f){for(;this.$cells.length>p+1;)h=this.$cells.pop(),this.element.removeChild(h.element);break}(h=this.$cells[++p])||((h={element:null,textNode:null,foldWidget:null}).element=x.createElement("div"),h.textNode=document.createTextNode(""),h.element.appendChild(h.textNode),this.element.appendChild(h.element),this.$cells[p]=h);var g="ace_gutter-cell ";if(a[f]&&(g+=a[f]),l[f]&&(g+=l[f]),this.$annotations[f]&&(g+=this.$annotations[f].className),h.element.className!=g&&(h.element.className=g),(v=t.getRowLength(f)*e.lineHeight+"px")!=h.element.style.height&&(h.element.style.height=v),s){var m=s[f];null==m&&(m=s[f]=t.getFoldWidget(f))}if(m){h.foldWidget||(h.foldWidget=x.createElement("span"),h.element.appendChild(h.foldWidget));g="ace_fold-widget ace_"+m;"start"==m&&f==r&&f<n.end.row?g+=" ace_closed":g+=" ace_open",h.foldWidget.className!=g&&(h.foldWidget.className=g);var v=e.lineHeight+"px";h.foldWidget.style.height!=v&&(h.foldWidget.style.height=v)}else h.foldWidget&&(h.element.removeChild(h.foldWidget),h.foldWidget=null);var b=d=u?u.getText(t,f):f+c;b!==h.textNode.data&&(h.textNode.data=b),f++}this.element.style.height=e.minHeight+"px",(this.$fixedWidth||t.$useWrapMode)&&(d=t.getLength()+c);var w=u?u.getWidth(t,d,e):d.toString().length*e.characterWidth,y=this.$padding||this.$computePadding();(w+=y.left+y.right)===this.gutterWidth||isNaN(w)||(this.gutterWidth=w,this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._emit("changeGutterWidth",w))},this.$fixedWidth=!1,this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return""},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?x.addCssClass(this.element,"ace_folding-enabled"):x.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=x.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=parseInt(e.paddingLeft)+1||0,this.$padding.right=parseInt(e.paddingRight)||0,this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),o=this.element.getBoundingClientRect();return e.x<t.left+o.left?"markers":this.$showFoldWidgets&&e.x>o.right-t.right?"foldWidgets":void 0}}).call(r.prototype),t.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,o){"use strict";var f=e("../range").Range,i=e("../lib/dom"),n=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.update=function(e){if(e){this.config=e;var t=[];for(var o in this.markers){var i=this.markers[o];if(i.range){var n=i.range.clipRows(e.firstRow,e.lastRow);if(!n.isEmpty())if(n=n.toScreenRange(this.session),i.renderer){var r=this.$getTop(n.start.row,e),s=this.$padding+(this.session.$bidiHandler.isBidiRow(n.start.row)?this.session.$bidiHandler.getPosLeft(n.start.column):n.start.column*e.characterWidth);i.renderer(t,n,s,r,e)}else"fullLine"==i.type?this.drawFullLineMarker(t,n,i.clazz,e):"screenLine"==i.type?this.drawScreenLineMarker(t,n,i.clazz,e):n.isMultiLine()?"text"==i.type?this.drawTextMarker(t,n,i.clazz,e):this.drawMultiLineMarker(t,n,i.clazz,e):this.session.$bidiHandler.isBidiRow(n.start.row)?this.drawBidiSingleLineMarker(t,n,i.clazz+" ace_start ace_br15",e):this.drawSingleLineMarker(t,n,i.clazz+" ace_start ace_br15",e)}else i.update(t,this,this.session,e)}this.element.innerHTML=t.join("")}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,o,i,n){for(var r=this.session,s=t.start.row,a=t.end.row,l=s,c=0,d=0,u=r.getScreenLastRowColumn(l),h=null,p=new f(l,t.start.column,l,d);l<=a;l++)p.start.row=p.end.row=l,p.start.column=l==s?t.start.column:r.getRowWrapIndent(l),c=d,d=p.end.column=u,u=l+1<a?r.getScreenLastRowColumn(l+1):l==a?0:t.end.column,h=o+(l==s?" ace_start":"")+" ace_br"+((l==s||l==s+1&&t.start.column?1:0)|(c<d?2:0)|(u<d?4:0)|(l==a?8:0)),this.session.$bidiHandler.isBidiRow(l)?this.drawBidiSingleLineMarker(e,p,h,i,l==a?0:1,n):this.drawSingleLineMarker(e,p,h,i,l==a?0:1,n)},this.drawMultiLineMarker=function(e,t,o,i,n){var r,s,a,l=this.$padding;(n=n||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((c=t.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,o+" ace_br1 ace_start",i,null,n)):(r=i.lineHeight,s=this.$getTop(t.start.row,i),a=l+t.start.column*i.characterWidth,e.push("<div class='",o," ace_br1 ace_start' style='","height:",r,"px;","right:0;","top:",s,"px;","left:",a,"px;",n,"'></div>"));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var c;(c=t.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,o+" ace_br12",i,null,n)}else{var d=t.end.column*i.characterWidth;r=i.lineHeight,s=this.$getTop(t.end.row,i),e.push("<div class='",o," ace_br12' style='","height:",r,"px;","width:",d,"px;","top:",s,"px;","left:",l,"px;",n,"'></div>")}if(!((r=(t.end.row-t.start.row-1)*i.lineHeight)<=0)){s=this.$getTop(t.start.row+1,i);var u=(t.start.column?1:0)|(t.end.column?0:8);e.push("<div class='",o,u?" ace_br"+u:"","' style='","height:",r,"px;","right:0;","top:",s,"px;","left:",l,"px;",n,"'></div>")}},this.drawSingleLineMarker=function(e,t,o,i,n,r){var s=i.lineHeight,a=(t.end.column+(n||0)-t.start.column)*i.characterWidth,l=this.$getTop(t.start.row,i),c=this.$padding+t.start.column*i.characterWidth;e.push("<div class='",o,"' style='","height:",s,"px;","width:",a,"px;","top:",l,"px;","left:",c,"px;",r||"","'></div>")},this.drawBidiSingleLineMarker=function(t,e,o,i,n,r){var s=i.lineHeight,a=this.$getTop(e.start.row,i),l=this.$padding;this.session.$bidiHandler.getSelections(e.start.column,e.end.column).forEach(function(e){t.push("<div class='",o,"' style='","height:",s,"px;","width:",e.width+(n||0),"px;","top:",a,"px;","left:",l+e.left,"px;",r||"","'></div>")})},this.drawFullLineMarker=function(e,t,o,i,n){var r=this.$getTop(t.start.row,i),s=i.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,i)-r),e.push("<div class='",o,"' style='","height:",s,"px;","top:",r,"px;","left:0;right:0;",n||"","'></div>")},this.drawScreenLineMarker=function(e,t,o,i,n){var r=this.$getTop(t.start.row,i),s=i.lineHeight;e.push("<div class='",o,"' style='","height:",s,"px;","top:",r,"px;","left:0;right:0;",n||"","'></div>")}}).call(n.prototype),t.Marker=n}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,o){"use strict";var i=e("../lib/oop"),c=e("../lib/dom"),u=e("../lib/lang"),n=(e("../lib/useragent"),e("../lib/event_emitter").EventEmitter),r=function(e){this.element=c.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){i.implement(this,n),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var e="\n"==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){(this.session=e)&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],o=1;o<e+1;o++)this.showInvisibles?t.push("<span class='ace_invisible ace_invisible_tab'>"+u.stringRepeat(this.TAB_CHAR,o)+"</span>"):t.push(u.stringRepeat(" ",o));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var i="ace_indent-guide",n="",r="";if(this.showInvisibles){i+=" ace_invisible",n=" ace_invisible_space",r=" ace_invisible_tab";var s=u.stringRepeat(this.SPACE_CHAR,this.tabSize),a=u.stringRepeat(this.TAB_CHAR,this.tabSize)}else a=s=u.stringRepeat(" ",this.tabSize);this.$tabStrings[" "]="<span class='"+i+n+"'>"+s+"</span>",this.$tabStrings["\t"]="<span class='"+i+r+"'>"+a+"</span>"}},this.updateLines=function(e,t,o){this.config.lastRow==e.lastRow&&this.config.firstRow==e.firstRow||this.scrollLines(e),this.config=e;for(var i=Math.max(t,e.firstRow),n=Math.min(o,e.lastRow),r=this.element.childNodes,s=0,a=e.firstRow;a<i;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(i)){i=l.start.row;break}a=l.end.row}s++}a=i;for(var l,c=(l=this.session.getNextFoldLine(a))?l.start.row:1/0;c<a&&(a=l.end.row+1,c=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(n<a);){var d=r[s++];if(d){var u=[];this.$renderLine(u,a,!this.$useLineGroups(),a==c&&l),d.style.height=e.lineHeight*this.session.getRowLength(a)+"px",d.innerHTML=u.join("")}a++}},this.scrollLines=function(e){var t=this.config;if(this.config=e,!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);var o=this.element;if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<i;i--)o.removeChild(o.firstChild);if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0<i;i--)o.removeChild(o.lastChild);if(e.firstRow<t.firstRow){var n=this.$renderLinesFragment(e,e.firstRow,t.firstRow-1);o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n)}if(e.lastRow>t.lastRow){n=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow);o.appendChild(n)}},this.$renderLinesFragment=function(e,t,o){for(var i=this.element.ownerDocument.createDocumentFragment(),n=t,r=this.session.getNextFoldLine(n),s=r?r.start.row:1/0;s<n&&(n=r.end.row+1,s=(r=this.session.getNextFoldLine(n,r))?r.start.row:1/0),!(o<n);){var a=c.createElement("div"),l=[];if(this.$renderLine(l,n,!1,n==s&&r),a.innerHTML=l.join(""),this.$useLineGroups())a.className="ace_line_group",i.appendChild(a),a.style.height=e.lineHeight*this.session.getRowLength(n)+"px";else for(;a.firstChild;)i.appendChild(a.firstChild);n++}return i},this.update=function(e){for(var t=[],o=(this.config=e).firstRow,i=e.lastRow,n=o,r=this.session.getNextFoldLine(n),s=r?r.start.row:1/0;s<n&&(n=r.end.row+1,s=(r=this.session.getNextFoldLine(n,r))?r.start.row:1/0),!(i<n);)this.$useLineGroups()&&t.push("<div class='ace_line_group' style='height:",e.lineHeight*this.session.getRowLength(n),"px'>"),this.$renderLine(t,n,!1,n==s&&r),this.$useLineGroups()&&t.push("</div>"),n++;this.element.innerHTML=t.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,l,t,o){var c=this,i=o.replace(/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,function(e,t,o,i,n){if(t)return c.showInvisibles?"<span class='ace_invisible ace_invisible_space'>"+u.stringRepeat(c.SPACE_CHAR,e.length)+"</span>":e;if("&"==e)return"&#38;";if("<"==e)return"&#60;";if(">"==e)return"&#62;";if("\t"==e){var r=c.session.getScreenTabSize(l+i);return l+=r-1,c.$tabStrings[r]}if("　"==e){var s=c.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",a=c.showInvisibles?c.SPACE_CHAR:"";return l+=1,"<span class='"+s+"' style='width:"+2*c.config.characterWidth+"px'>"+a+"</span>"}return o?"<span class='ace_invisible ace_invisible_space ace_invalid'>"+c.SPACE_CHAR+"</span>":(l+=1,"<span class='ace_cjk' style='width:"+2*c.config.characterWidth+"px'>"+e+"</span>")});if(this.$textToken[t.type])e.push(i);else{var n="ace_"+t.type.replace(/\./g," ace_"),r="";"fold"==t.type&&(r=" style='width:"+t.value.length*this.config.characterWidth+"px;' "),e.push("<span class='",n,"'",r,">",i,"</span>")}return l+o.length},this.renderIndentGuide=function(e,t,o){var i=t.search(this.$indentGuideRe);return i<=0||o<=i?t:" "==t[0]?(i-=i%this.tabSize,e.push(u.stringRepeat(this.$tabStrings[" "],i/this.tabSize)),t.substr(i)):"\t"==t[0]?(e.push(u.stringRepeat(this.$tabStrings["\t"],i)),t.substr(i)):t},this.$renderWrappedLine=function(e,t,o,i){for(var n=0,r=0,s=o[0],a=0,l=0;l<t.length;l++){var c=t[l],d=c.value;if(0==l&&this.displayIndentGuides){if(n=d.length,!(d=this.renderIndentGuide(e,d,s)))continue;n-=d.length}if(n+d.length<s)a=this.$renderToken(e,a,c,d),n+=d.length;else{for(;n+d.length>=s;)a=this.$renderToken(e,a,c,d.substring(0,s-n)),d=d.substring(s-n),n=s,i||e.push("</div>","<div class='ace_line' style='height:",this.config.lineHeight,"px'>"),e.push(u.stringRepeat(" ",o.indent)),a=0,s=o[++r]||Number.MAX_VALUE;0!=d.length&&(n+=d.length,a=this.$renderToken(e,a,c,d))}}},this.$renderSimpleLine=function(e,t){var o=0,i=t[0],n=i.value;this.displayIndentGuides&&(n=this.renderIndentGuide(e,n)),n&&(o=this.$renderToken(e,o,i,n));for(var r=1;r<t.length;r++)n=(i=t[r]).value,o=this.$renderToken(e,o,i,n)},this.$renderLine=function(e,t,o,i){if(i||0==i||(i=this.session.getFoldLine(t)),i)var n=this.$getFoldLineTokens(t,i);else n=this.session.getTokens(t);if(o||e.push("<div class='ace_line' style='height:",this.config.lineHeight*(this.$useLineGroups()?1:this.session.getRowLength(t)),"px'>"),n.length){var r=this.session.getRowSplitData(t);r&&r.length?this.$renderWrappedLine(e,n,r,o):this.$renderSimpleLine(e,n)}this.showInvisibles&&(i&&(t=i.end.row),e.push("<span class='ace_invisible ace_invisible_eol'>",t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"</span>")),o||e.push("</div>")},this.$getFoldLineTokens=function(e,t){var r=this.session,s=[];var a=r.getTokens(e);return t.walk(function(e,t,o,i,n){null!=e?s.push({type:"fold",value:e}):(n&&(a=r.getTokens(t)),a.length&&function(e,t,o){for(var i=0,n=0;n+e[i].value.length<t;)if(n+=e[i].value.length,++i==e.length)return;for(n!=t&&((r=e[i].value.substring(t-n)).length>o-t&&(r=r.substring(0,o-t)),s.push({type:e[i].type,value:r}),n=t+r.length,i+=1);n<o&&i<e.length;){var r;(r=e[i].value).length+n>o?s.push({type:e[i].type,value:r.substring(0,o-n)}):s.push(e[i]),n+=r.length,i+=1}}(a,i,o))},t.end.row,this.session.getLine(t.end.row).length),s},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(r.prototype),t.Text=r}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,o){"use strict";var i,n=e("../lib/dom"),r=function(e){this.element=n.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),void 0===i&&(i=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),n.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(i?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,o=t.length;o--;)t[o].style.visibility=e?"":"hidden"},this.$updateOpacity=function(e){for(var t=this.cursors,o=t.length;o--;)t[o].style.opacity=e?"":"0"},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e==this.smoothBlinking||i||(this.smoothBlinking=e,n.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var e=n.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(1<this.cursors.length){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,n.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,n.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&n.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){n.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var t=function(){this.timeoutId=setTimeout(function(){e(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){e(!0),t()},this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var o=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,e.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),top:(o.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,o=0,i=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);o=0;for(var n=t.length;o<n;o++){var r=this.getPixelPosition(t[o].cursor,!0);if(!((r.top>e.height+e.offset||r.top<0)&&1<o)){var s=(this.cursors[i++]||this.addCursor()).style;this.drawCursor?this.drawCursor(s,r,e,t[o],this.session):(s.left=r.left+"px",s.top=r.top+"px",s.width=e.characterWidth+"px",s.height=e.lineHeight+"px")}}for(;this.cursors.length>i;)this.removeCursor();var a=this.session.getOverwrite();this.$setOverwrite(a),this.$pixelPos=r,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?n.addCssClass(this.element,"ace_overwrite-cursors"):n.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(r.prototype),t.Cursor=r}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,o){"use strict";var i=e("./lib/oop"),n=e("./lib/dom"),r=e("./lib/event"),s=e("./lib/event_emitter").EventEmitter,a=function(e){this.element=n.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=n.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,r.addListener(this.element,"scroll",this.onScroll.bind(this)),r.addListener(this.element,"mousedown",r.preventDefault)};(function(){i.implement(this,s),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(a.prototype);var l=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=n.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};i.inherits(l,a),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){32768<(this.scrollHeight=e)?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(l.prototype);var c=function(e,t){a.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};i.inherits(c,a),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(c.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=c,t.VScrollBar=l,t.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,o){"use strict";var i=e("./lib/event"),n=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.window=t||window};(function(){this.schedule=function(e){if(this.changes=this.changes|e,!this.pending&&this.changes){this.pending=!0;var t=this;i.nextFrame(function(){var e;for(t.pending=!1;e=t.changes;)t.changes=0,t.onRender(e)},this.window)}}}).call(n.prototype),t.RenderLoop=n}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,o){var i=e("../lib/oop"),n=e("../lib/dom"),r=e("../lib/lang"),s=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,l=0,c=t.FontMetrics=function(e){this.el=n.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=n.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=n.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),l||this.$testFractionalRect(),this.$measureNode.innerHTML=r.stringRepeat("X",l),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){i.implement(this,a),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var e=n.createElement("div");this.$setMeasureNodeStyles(e.style),e.style.width="0.2px",document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;l=0<t&&t<1?50:100,e.parentNode.removeChild(e)},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval(function(){e.checkForSizeChanges()},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===l){var t=null;try{t=this.$measureNode.getBoundingClientRect()}catch(e){t={width:0,height:0}}var e={height:t.height,width:t.width/l}}else e={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/l};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(e){return this.$main.innerHTML=r.stringRepeat(e,l),this.$main.getBoundingClientRect().width/l},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(c.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],function(e,t,o){"use strict";var i=e("./lib/oop"),r=e("./lib/dom"),s=e("./config"),n=e("./lib/useragent"),a=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,c=e("./layer/text").Text,d=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,p=e("./renderloop").RenderLoop,f=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter;r.importCssString('.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block;   }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius    : 3px;}.ace_br2 {border-top-right-radius   : 3px;}.ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}.ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}.ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}',"ace_editor.css");var m=function(e,t){var o=this;this.container=e||r.createElement("div"),this.$keepTextAreaAtCursor=!n.isOldIE,r.addCssClass(this.container,"ace_editor"),this.setTheme(t),this.$gutter=r.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=r.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=r.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content);var i=this.$textLayer=new c(this.content);this.canvas=i.element,this.$markerFront=new l(this.content),this.$cursorLayer=new d(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(e){o.$scrollAnimation||o.session.setScrollTop(e.data-o.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(e){o.$scrollAnimation||o.session.setScrollLeft(e.data-o.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(e){o.updateCharacterSize(),o.onResize(!0,o.gutterWidth,o.$size.width,o.$size.height),o._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),s.resetOptions(this),s._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,i.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,o){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!o)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,o,i){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=e?1:0;var n=this.container;i||(i=n.clientHeight||n.scrollHeight),o||(o=n.clientWidth||n.scrollWidth);var r=this.$updateCachedSize(e,t,o,i);if(!this.$size.scrollerHeight||!o&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(r|this.$changes,!0):this.$loop.schedule(r|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,o,i){i-=this.$extraHeight||0;var n=0,r=this.$size,s={width:r.width,height:r.height,scrollerHeight:r.scrollerHeight,scrollerWidth:r.scrollerWidth};return i&&(e||r.height!=i)&&(r.height=i,n|=this.CHANGE_SIZE,r.scrollerHeight=r.height,this.$horizScroll&&(r.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",n|=this.CHANGE_SCROLL),o&&(e||r.width!=o)&&(n|=this.CHANGE_SIZE,r.width=o,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,this.scrollBarH.element.style.left=this.scroller.style.left=t+"px",r.scrollerWidth=Math.max(0,o-t-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(n|=this.CHANGE_FULL)),r.$dirty=!o||!i,n&&this._signal("resize",s),n},this.onGutterResize=function(){var e=this.$showGutter?this.$gutter.offsetWidth:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var e=this.$cursorLayer.$pixelPos,t=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var o=this.session.selection.getCursor();o.column=0,e=this.$cursorLayer.getPixelPosition(o,!0),t*=this.session.getRowLength(o.row)}this.$gutterLineHighlight.style.top=e.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=t+"px"},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=r.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=r.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var e=this.layerConfig,t=this.$cursorLayer.$pixelPos.top,o=this.$cursorLayer.$pixelPos.left;t-=e.offset;var i=this.textarea.style,n=this.lineHeight;if(t<0||t>e.height-n)i.top=i.left="0";else{var r=this.characterWidth;if(this.$composition){var s=this.textarea.value.replace(/^\x01+/,"");r*=this.session.$getStringScreenWidth(s)[0]+2,n+=2}(o-=this.scrollLeft)>this.$size.scrollerWidth-r&&(o=this.$size.scrollerWidth-r),o+=this.gutterWidth,i.height=n+"px",i.width=r+"px",i.left=Math.min(o,this.$size.scrollerWidth-r)+"px",i.top=Math.min(t,this.$size.height-n)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,o,i){var n=this.scrollMargin;n.top=0|e,n.bottom=0|t,n.right=0|i,n.left=0|o,n.v=n.top+n.bottom,n.h=n.left+n.right,n.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-n.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var o=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig(),o.firstRow!=this.layerConfig.firstRow&&o.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(o.firstRow-this.layerConfig.firstRow)*this.lineHeight;0<i&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig())}o=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-o.offset+"px",this.content.style.marginTop=-o.offset+"px",this.content.style.width=o.width+2*this.$padding+"px",this.content.style.height=o.minHeight+"px"}if(e&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$textLayer.update(o),this.$showGutter&&this.$gutterLayer.update(o),this.$markerBack.update(o),this.$markerFront.update(o),this.$cursorLayer.update(o),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),void this._signal("afterRender");if(e&this.CHANGE_SCROLL)return e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(o):this.$textLayer.scrollLines(o),this.$showGutter&&this.$gutterLayer.update(o),this.$markerBack.update(o),this.$markerFront.update(o),this.$cursorLayer.update(o),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),void this._signal("afterRender");e&this.CHANGE_TEXT?(this.$textLayer.update(o),this.$showGutter&&this.$gutterLayer.update(o)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(o):(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(o),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(o),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(o),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(o),this._signal("afterRender")}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,o=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(o+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&o>this.$maxPixelHeight&&(o=this.$maxPixelHeight);var i=t<e;if(o!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var n=this.container.clientWidth;this.container.style.height=o+"px",this.$updateCachedSize(!0,this.$gutterWidth,n,o),this.desiredHeight=o,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,o=t.height<=2*this.lineHeight,i=this.session.getScreenLength()*this.lineHeight,n=this.$getLongestLine(),r=!o&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-n-2*this.$padding<0),s=this.$horizScroll!==r;s&&(this.$horizScroll=r,this.scrollBarH.setVisible(r));var a=this.$vScroll;this.$maxLines&&1<this.lineHeight&&this.$autosize();var l=this.scrollTop%this.lineHeight,c=t.scrollerHeight+this.lineHeight,d=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=d;var u=this.scrollMargin;this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,i-t.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,n+2*this.$padding-t.scrollerWidth+u.right)));var h=!o&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+d<0||this.scrollTop>u.top),p=a!==h;p&&(this.$vScroll=h,this.scrollBarV.setVisible(h));var f,g,m=Math.ceil(c/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-l)/this.lineHeight)),b=v+m,w=this.lineHeight;v=e.screenToDocumentRow(v,0);var y=e.getFoldLine(v);y&&(v=y.start.row),f=e.documentToScreenRow(v,0),g=e.getRowLength(v)*w,b=Math.min(e.screenToDocumentRow(b,0),e.getLength()-1),c=t.scrollerHeight+e.getRowLength(b)*w+g,l=this.scrollTop-f*w;var x=0;return this.layerConfig.width!=n&&(x=this.CHANGE_H_SCROLL),(s||p)&&(x=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),p&&(n=this.$getLongestLine())),this.layerConfig={width:n,padding:this.$padding,firstRow:v,firstRowScreen:f,lastRow:b,lineHeight:w,characterWidth:this.characterWidth,minHeight:c,maxHeight:i,offset:l,gutterOffset:w?Math.max(0,Math.ceil((l+t.height-t.scrollerHeight)/w)):0,height:this.$size.scrollerHeight},x},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var o=this.layerConfig;if(!(e>o.lastRow+1||t<o.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(o),void this.$textLayer.update(o)):(this.$textLayer.updateLines(o,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,o){this.scrollCursorIntoView(e,o),this.scrollCursorIntoView(t,o)},this.scrollCursorIntoView=function(e,t,o){if(0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(e),n=i.left,r=i.top,s=o&&o.top||0,a=o&&o.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;r<l+s?(t&&l+s>r+this.lineHeight&&(r-=t*this.$size.scrollerHeight),0===r&&(r=-this.scrollMargin.top),this.session.setScrollTop(r)):l+this.$size.scrollerHeight-a<r+this.lineHeight&&(t&&l+this.$size.scrollerHeight-a<r-this.lineHeight&&(r+=t*this.$size.scrollerHeight),this.session.setScrollTop(r+this.lineHeight-this.$size.scrollerHeight));var c=this.scrollLeft;n<c?(n<this.$padding+2*this.layerConfig.characterWidth&&(n=-this.scrollMargin.left),this.session.setScrollLeft(n)):c+this.$size.scrollerWidth<n+this.characterWidth?this.session.setScrollLeft(Math.round(n+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&n-c<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var o=this.$cursorLayer.getPixelPosition(e),i=this.$size.scrollerHeight-this.lineHeight,n=o.top-i*(t||0);return this.session.setScrollTop(n),n},this.STEPS=8,this.$calcSteps=function(e,t){var o,i,n=0,r=this.STEPS,s=[];for(n=0;n<r;++n)s.push((o=n/this.STEPS,(t-(i=e))*(Math.pow(o-1,3)+1)+i));return s},this.scrollToLine=function(e,t,o,i){var n=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(n-=this.$size.scrollerHeight/2);var r=this.scrollTop;this.session.setScrollTop(n),!1!==o&&this.animateScrolling(r,i)},this.animateScrolling=function(e,t){var o=this.scrollTop;if(this.$animatedScroll){var i=this;if(e!=o){if(this.$scrollAnimation){var n=this.$scrollAnimation.steps;if(n.length&&(e=n[0])==o)return}var r=i.$calcSteps(e,o);this.$scrollAnimation={from:e,to:o,steps:r},clearInterval(this.$timer),i.session.setScrollTop(r.shift()),i.session.$scrollTop=o,this.$timer=setInterval(function(){r.length?(i.session.setScrollTop(r.shift()),i.session.$scrollTop=o):null!=o?(i.session.$scrollTop=-1,i.session.setScrollTop(o),o=null):(i.$timer=clearInterval(i.$timer),i.$scrollAnimation=null,t&&t())},10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(0<t&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(0<e&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var o=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-o.left-this.$padding,n=i/this.characterWidth,r=Math.floor((t+this.scrollTop-o.top)/this.lineHeight),s=Math.round(n);return{row:r,column:s,side:0<n-s?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var o=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-o.left-this.$padding,n=Math.round(i/this.characterWidth),r=(t+this.scrollTop-o.top)/this.lineHeight;return this.session.screenToDocumentPosition(r,Math.max(n,0),i)},this.textToScreenCoordinates=function(e,t){var o=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),n=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),r=i.row*this.lineHeight;return{pageX:o.left+n-this.scrollLeft,pageY:o.top+r-this.scrollTop}},this.visualizeFocus=function(){r.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){r.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,r.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(e){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(r.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(o,i){var n=this;if(this.$themeId=o,n._dispatchEvent("themeChange",{theme:o}),o&&"string"!=typeof o)t(o);else{var e=o||this.$options.theme.initialValue;s.loadModule(["theme",e],t)}function t(e){if(n.$themeId!=o)return i&&i();if(!e||!e.cssClass)throw new Error("couldn't load module "+o+" or it didn't call define");r.importCssString(e.cssText,e.cssClass,n.container.ownerDocument),n.theme&&r.removeCssClass(n.container,n.theme.cssClass);var t="padding"in e?e.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&t!=n.$padding&&n.setPadding(t),n.$theme=e.cssClass,n.theme=e,r.addCssClass(n.container,e.cssClass),r.setCssClass(n.container,"ace_dark",e.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:e}),i&&i()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){r.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){r.removeCssClass(this.container,e)},this.setCursorStyle=function(e){this.scroller.style.cursor!=e&&(this.scroller.style.cursor=e)},this.setMouseCursor=function(e){this.scroller.style.cursor=e},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(m.prototype),s.defineOptions(m.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){r.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e)},initialValue:!0},showLineNumbers:{set:function(e){this.$gutterLayer.setShowLineNumbers(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=r.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=e?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=m}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(a,e,t){"use strict";var o=a("../lib/oop"),i=a("../lib/net"),l=a("../lib/event_emitter").EventEmitter,c=a("../config");function d(e){var t=function(e){var t="importScripts('"+i.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(e){var o=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return o.append(t),o.getBlob("application/javascript")}}(e),o=(window.URL||window.webkitURL).createObjectURL(t);return new Worker(o)}var n=function(e,t,o,i,n){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),a.nameToUrl&&!a.toUrl&&(a.toUrl=a.nameToUrl),c.get("packaged")||!a.toUrl)i=i||c.moduleUrl(t,"worker");else{var r=this.$normalizePath;i=i||r(a.toUrl("ace/worker/worker.js",null,"_"));var s={};e.forEach(function(e){s[e]=r(a.toUrl(e,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}this.$worker=d(i),n&&this.send("importScripts",n),this.$worker.postMessage({init:!0,tlns:s,module:t,classname:o}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){o.implement(this,l),this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var o=this.callbacks[t.id];o&&(o(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return i.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,o){if(o){var i=this.callbackId++;this.callbacks[i]=o,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,50<e.length&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(n.prototype);var r=function(e,t,o){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var i=null,n=!1,r=Object.create(l),s=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(e){s.messageBuffer.push(e),i&&(n?setTimeout(a):a())},this.setEmitSync=function(e){n=e};var a=function(){var e=s.messageBuffer.shift();e.command?i[e.command].apply(i,e.args):e.event&&r._signal(e.event,e.data)};r.postMessage=function(e){s.onMessage({data:e})},r.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},r.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},c.loadModule(["worker",t],function(e){for(i=new e[o](r);s.messageBuffer.length;)a()})};r.prototype=n.prototype,e.UIWorkerClient=r,e.WorkerClient=n,e.createWorker=d}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,o){"use strict";var l=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,n=e("./lib/oop"),r=function(e,t,o,i,n,r){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=n,this.othersClass=r,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){s.onCursorChange()})},this.$pos=o;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){n.implement(this,i),this.setup=function(){var o=this,i=this.doc,e=this.session;this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var t=this.pos;t.$insertRight=!0,t.detach(),t.markerId=e.addMarker(new l(t.row,t.column,t.row,t.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){var t=i.createAnchor(e.row,e.column);t.$insertRight=!0,t.detach(),o.others.push(t)}),e.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var t=this.session,o=this;this.othersActive=!0,this.others.forEach(function(e){e.markerId=t.addMarker(new l(e.row,e.column,e.row,e.column+o.length),o.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var o="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,n=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=o),i&&!this.session.$fromUndo)if("insert"===e.action)for(var r=this.others.length-1;0<=r;r--){var s={row:(a=this.others[r]).row,column:a.column+n};this.doc.insertMergedLines(s,e.lines)}else if("remove"===e.action)for(r=this.others.length-1;0<=r;r--){var a;s={row:(a=this.others[r]).row,column:a.column+n};this.doc.remove(new l(s.row,s.column,s.row,s.column-o))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var o=this,i=this.session,e=function(e,t){i.removeMarker(e.markerId),e.markerId=i.addMarker(new l(e.row,e.column,e.row,e.column+o.length),t,null,!1)};e(this.pos,this.mainClass);for(var t=this.others.length;t--;)e(this.others[t],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,o=0;o<t;o++)e.undo(!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(r.prototype),t.PlaceHolder=r}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,o){var k=e("../lib/event"),E=e("../lib/useragent");function $(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,o=t.altKey,i=t.shiftKey,n=t.ctrlKey,r=e.getAccelKey(),s=e.getButton();if(n&&E.isMac&&(s=t.button),e.editor.inMultiSelectMode&&2==s)e.editor.textInput.onContextMenu(e.domEvent);else if(n||o||r){if(0===s){var a,l=e.editor,c=l.selection,d=l.inMultiSelectMode,u=e.getDocumentPosition(),h=c.getCursor(),p=e.inSelection()||c.isEmpty()&&$(u,h),f=e.x,g=e.y,m=l.session,v=l.renderer.pixelToScreenCoordinates(f,g),b=v;if(l.$mouseHandler.$enableJumpToDef)n&&o||r&&o?a=i?"block":"add":o&&l.$blockSelectEnabled&&(a="block");else if(r&&!o){if(a="add",!d&&i)return}else o&&l.$blockSelectEnabled&&(a="block");if(a&&E.isMac&&t.ctrlKey&&l.$mouseHandler.cancelContextMenu(),"add"==a){if(!d&&p)return;if(!d){var w=c.toOrientedRange();l.addSelectionMarker(w)}var y=c.rangeList.rangeAtPoint(u);l.$blockScrolling++,l.inVirtualSelectionMode=!0,i&&(y=null,w=c.ranges[0]||w,l.removeSelectionMarker(w)),l.once("mouseup",function(){var e=c.toOrientedRange();y&&e.isEmpty()&&$(y.cursor,e.cursor)?c.substractPoint(e.cursor):(i?c.substractPoint(w.cursor):w&&(l.removeSelectionMarker(w),c.addRange(w)),c.addRange(e)),l.$blockScrolling--,l.inVirtualSelectionMode=!1})}else if("block"==a){var x;e.stop(),l.inVirtualSelectionMode=!0;var _=[];l.$blockScrolling++,d&&!r?c.toSingleRange():!d&&r&&(x=c.toOrientedRange(),l.addSelectionMarker(x)),i?v=m.documentToScreenPosition(c.lead):c.moveToPosition(u),l.$blockScrolling--,b={row:-1,column:-1};var C=function(){var e=l.renderer.pixelToScreenCoordinates(f,g),t=m.screenToDocumentPosition(e.row,e.column,e.offsetX);$(b,e)&&$(t,c.lead)||(b=e,l.$blockScrolling++,l.selection.moveToPosition(t),l.renderer.scrollCursorIntoView(),l.removeSelectionMarkers(_),_=c.rectangularRangeBlock(b,v),l.$mouseHandler.$clickSelection&&1==_.length&&_[0].isEmpty()&&(_[0]=l.$mouseHandler.$clickSelection.clone()),_.forEach(l.addSelectionMarker,l),l.updateSelectionMarkers(),l.$blockScrolling--)};k.capture(l.container,function(e){f=e.clientX,g=e.clientY},function(e){clearInterval(A),l.removeSelectionMarkers(_),_.length||(_=[c.toOrientedRange()]),l.$blockScrolling++,x&&(l.removeSelectionMarker(x),c.toSingleRange(x));for(var t=0;t<_.length;t++)c.addRange(_[t]);l.inVirtualSelectionMode=!1,l.$mouseHandler.$clickSelection=null,l.$blockScrolling--});var A=setInterval(function(){C()},20);return e.preventDefault()}}}else 0===s&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,t,o){t.defaultCommands=[{name:"addCursorAbove",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"splitIntoLines",exec:function(e){e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"alignCursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var i=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new i(t.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,t,o){var i=e("./range_list").RangeList,y=e("./range").Range,g=e("./selection").Selection,n=e("./mouse/multi_select_handler").onMouseDown,r=e("./lib/event"),m=e("./lib/lang"),s=e("./commands/multi_select_commands");t.commands=s.defaultCommands.concat(s.multiSelectCommands);var d=new(e("./search").Search);var a=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(a.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var o=this.toOrientedRange();if(this.rangeList.add(o),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(o),this.$onAddRange(o)}e.cursor||(e.cursor=e.end);var i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length?this.$onRemoveRange(e):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var o=e.length;o--;){var i=this.ranges.indexOf(e[o]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(1<this.rangeCount){var e=this.rangeList.ranges,t=e[e.length-1],o=y.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(o,t.cursor==t.start)}else{o=this.getRange();var i=this.isBackwards(),n=o.start.row,r=o.end.row;if(n==r){if(i)var s=o.end,a=o.start;else s=o.start,a=o.end;return this.addRange(y.fromPoints(a,a)),void this.addRange(y.fromPoints(s,s))}var l=[],c=this.getLineRange(n,!0);c.start.column=o.start.column,l.push(c);for(var d=n+1;d<r;d++)l.push(this.getLineRange(d,!0));(c=this.getLineRange(r,!0)).end.column=o.end.column,l.push(c),l.forEach(this.addRange,this)}},this.toggleBlockSelection=function(){if(1<this.rangeCount){var e=this.rangeList.ranges,t=e[e.length-1],o=y.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(o,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.selectionLead),n=this.session.documentToScreenPosition(this.selectionAnchor);this.rectangularRangeBlock(i,n).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,o){var i=[],n=e.column<t.column;if(n)var r=e.column,s=t.column,a=e.offsetX,l=t.offsetX;else r=t.column,s=e.column,a=t.offsetX,l=e.offsetX;var c,d,u=e.row<t.row;if(u)var h=e.row,p=t.row;else h=t.row,p=e.row;r<0&&(r=0),h<0&&(h=0),h==p&&(o=!0);for(var f=h;f<=p;f++){var g=y.fromPoints(this.session.screenToDocumentPosition(f,r,a),this.session.screenToDocumentPosition(f,s,l));if(g.isEmpty()){if(m&&(c=g.end,d=m,c.row==d.row&&c.column==d.column))break;var m=g.end}g.cursor=n?g.start:g.end,i.push(g)}if(u&&i.reverse(),!o){for(var v=i.length-1;i[v].isEmpty()&&0<v;)v--;if(0<v)for(var b=0;i[b].isEmpty();)b++;for(var w=v;b<=w;w--)i[w].isEmpty()&&i.splice(w,1)}return i}}.call(g.prototype);var l=e("./editor").Editor;function c(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",n),e.commands.addCommands(s.defaultCommands),function(o){var e=o.textInput.getElement(),i=!1;function n(e){i&&(o.renderer.setMouseCursor(""),i=!1)}r.addListener(e,"keydown",function(e){var t=18==e.keyCode&&!(e.ctrlKey||e.shiftKey||e.metaKey);o.$blockSelectEnabled&&t?i||(o.renderer.setMouseCursor("crosshair"),i=!0):i&&n()}),r.addListener(e,"keyup",n),r.addListener(e,"blur",n)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,o=e.length;o--;){var i=e[o];if(i.marker){this.session.removeMarker(i.marker);var n=t.indexOf(i);-1!=n&&t.splice(n,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(s.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(s.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,o=e.editor;if(o.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=o.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=o.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(o.exitMultiSelectMode(),i=t.exec(o,e.args||{})):i=t.multiSelectAction(o,e.args||{});else{var i=t.exec(o,e.args||{});o.multiSelect.addRange(o.multiSelect.toOrientedRange()),o.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,o){if(!this.inVirtualSelectionMode){var i,n=o&&o.keepOrder,r=1==o||o&&o.$byLines,s=this.session,a=this.selection,l=a.rangeList,c=(n?a:l).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var d=a._eventRegistry;a._eventRegistry={};var u=new g(s);this.inVirtualSelectionMode=!0;for(var h=c.length;h--;){if(r)for(;0<h&&c[h].start.row==c[h-1].end.row;)h--;u.fromOrientedRange(c[h]),u.index=h,this.selection=s.selection=u;var p=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===p||(i=p),u.toOrientedRange(c[h])}u.detach(),this.selection=s.selection=a,this.inVirtualSelectionMode=!1,a._eventRegistry=d,a.mergeOverlappingRanges();var f=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),f&&f.from==f.to&&this.renderer.animateScrolling(f.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,o=[],i=0;i<t.length;i++)o.push(this.session.getTextRange(t[i]));var n=this.session.getDocument().getNewLineCharacter();(e=o.join(n)).length==(o.length-1)*n.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var o=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var i=t==this.multiSelect.anchor?o.cursor==o.start?o.end:o.start:o.cursor;i.row==t.row&&this.session.$clipPositionToDocument(i.row,i.column).column==t.column||this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange())}},this.findAll=function(e,t,o){if((t=t||{}).needle=e||t.needle,null==t.needle){var i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(i)}this.$search.set(t);var n=this.$search.findAll(this.session);if(!n.length)return 0;this.$blockScrolling+=1;var r=this.multiSelect;o||r.toSingleRange(n[0]);for(var s=n.length;s--;)r.addRange(n[s],!0);return i&&r.rangeList.rangeAtPoint(i.start)&&r.addRange(i,!0),this.$blockScrolling-=1,n.length},this.selectMoreLines=function(e,t){var o=this.selection.toOrientedRange(),i=o.cursor==o.end,n=this.session.documentToScreenPosition(o.cursor);this.selection.$desiredColumn&&(n.column=this.selection.$desiredColumn);var r,s=this.session.screenToDocumentPosition(n.row+e,n.column);if(o.isEmpty())l=s;else var a=this.session.documentToScreenPosition(i?o.end:o.start),l=this.session.screenToDocumentPosition(a.row+e,a.column);i?(r=y.fromPoints(s,l)).cursor=r.start:(r=y.fromPoints(l,s)).cursor=r.end;if(r.desiredColumn=n.column,this.selection.inMultiSelectMode){if(t)var c=o.cursor}else this.selection.addRange(o);this.selection.addRange(r),c&&this.selection.substractPoint(c)},this.transposeSelections=function(e){for(var t=this.session,o=t.multiSelect,i=o.ranges,n=i.length;n--;){if((a=i[n]).isEmpty()){var r=t.getWordRange(a.start.row,a.start.column);a.start.row=r.start.row,a.start.column=r.start.column,a.end.row=r.end.row,a.end.column=r.end.column}}o.mergeOverlappingRanges();var s=[];for(n=i.length;n--;){var a=i[n];s.unshift(t.getTextRange(a))}e<0?s.unshift(s.pop()):s.push(s.shift());for(n=i.length;n--;){r=(a=i[n]).clone();t.replace(a,s[n]),a.start.row=r.start.row,a.start.column=r.start.column}},this.selectMore=function(e,t,o){var i=this.session,n=i.multiSelect.toOrientedRange();if(!n.isEmpty()||((n=i.getWordRange(n.start.row,n.start.column)).cursor=-1==e?n.start:n.end,this.multiSelect.addRange(n),!o)){var r,s,a,l=i.getTextRange(n),c=(r=i,s=l,a=e,d.$options.wrap=!0,d.$options.needle=s,d.$options.backwards=-1==a,d.find(r));c&&(c.cursor=-1==e?c.start:c.end,this.$blockScrolling+=1,this.session.unfold(c),this.multiSelect.addRange(c),this.$blockScrolling-=1,this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(n.cursor)}},this.alignCursors=function(){var r=this.session,t=r.multiSelect,e=t.ranges,o=-1,i=e.filter(function(e){if(e.cursor.row==o)return!0;o=e.cursor.row});if(e.length&&i.length!=e.length-1){i.forEach(function(e){t.substractPoint(e.cursor)});var s=0,a=1/0,l=e.map(function(e){var t=e.cursor,o=r.getLine(t.row).substr(t.column).search(/\S/g);return-1==o&&(o=0),t.column>s&&(s=t.column),o<a&&(a=o),o});e.forEach(function(e,t){var o=e.cursor,i=s-o.column,n=l[t]-a;n<i?r.insert(o,m.stringRepeat(" ",i-n)):r.remove(new y(o.row,o.column,o.row,o.column-i+n)),e.start.column=e.end.column=s,e.start.row=e.end.row=o.row,e.cursor=e.end}),t.fromOrientedRange(e[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var n=this.selection.getRange(),c=n.start.row,d=n.end.row,u=c==d;if(u){for(var h,p=this.session.getLength();h=this.session.getLine(d),/[=:]/.test(h)&&++d<p;);for(;h=this.session.getLine(c),/[=:]/.test(h)&&0<--c;);c<0&&(c=0),p<=d&&(d=p-1)}var f=this.session.removeFullLines(c,d);f=this.$reAlignText(f,u),this.session.insert({row:c,column:0},f.join("\n")+"\n"),u||(n.start.column=0,n.end.column=f[f.length-1].length),this.selection.setRange(n)}},this.$reAlignText=function(e,t){var o,i,n,r=!0,s=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?(null==o?(o=t[1].length,i=t[2].length,n=t[3].length):(o+i+n!=t[1].length+t[2].length+t[3].length&&(s=!1),o!=t[1].length&&(r=!1),o>t[1].length&&(o=t[1].length),i<t[2].length&&(i=t[2].length),n>t[3].length&&(n=t[3].length)),t):[e]}).map(t?l:r?s?function(e){return e[2]?a(o+i-e[2].length)+e[2]+a(n)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:l:function(e){return e[2]?a(o)+e[2]+a(n)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return m.stringRepeat(" ",e)}function l(e){return e[2]?a(o)+e[2]+a(i-e[2].length+n)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(l.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var o=e.oldSession;o&&(o.multiSelect.off("addRange",this.$onAddRange),o.multiSelect.off("removeRange",this.$onRemoveRange),o.multiSelect.off("multiSelect",this.$onMultiSelect),o.multiSelect.off("singleSelect",this.$onSingleSelect),o.multiSelect.lead.off("change",this.$checkMultiselectChange),o.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=c,e("./config").defineOptions(l.prototype,"editor",{enableMultiselect:{set:function(e){c(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",n)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",n))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,o){"use strict";var h=e("../../range").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,o){var i=e.getLine(o);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(e,t,o){return null},this.indentationBlock=function(e,t,o){var i=/\S/,n=e.getLine(t),r=n.search(i);if(-1!=r){for(var s=o||n.length,a=e.getLength(),l=t,c=t;++t<a;){var d=e.getLine(t).search(i);if(-1!=d){if(d<=r)break;c=t}}if(l<c){var u=e.getLine(c).length;return new h(l,s,c,u)}}},this.openingBracketBlock=function(e,t,o,i,n){var r={row:o,column:i+1},s=e.$findClosingBracket(t,r,n);if(s){var a=e.foldWidgets[s.row];return null==a&&(a=e.getFoldWidget(s.row)),"start"==a&&s.row>r.row&&(s.row--,s.column=e.getLine(s.row).length),h.fromPoints(r,s)}},this.closingBracketBlock=function(e,t,o,i,n){var r={row:o,column:i},s=e.$findOpeningBracket(t,r);if(s)return s.column++,r.column--,h.fromPoints(s,r)}}).call(i.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,o){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(e,t,o){"use strict";e("./lib/oop");var r=e("./lib/dom");e("./range").Range;function i(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach(function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)}),t},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),(this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var o=this.session.lineWidgets;o&&o.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})}},this.updateOnFold=function(e,t){var o=t.lineWidgets;if(o&&e.action){for(var i=e.data,n=i.start.row,r=i.end.row,s="add"==e.action,a=n+1;a<r;a++)o[a]&&(o[a].hidden=s);o[r]&&(s?o[n]?o[r].hidden=s:o[n]=o[r]:(o[n]==o[r]&&(o[n]=void 0),o[r].hidden=s))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var o=e.start.row,i=e.end.row-o;if(0===i);else if("remove"==e.action){t.splice(o+1,i).forEach(function(e){e&&this.removeLineWidget(e)},this),this.$updateRows()}else{var n=new Array(i);n.unshift(o,0),t.splice.apply(t,n),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var o=!0;e.forEach(function(e,t){if(e)for(o=!1,e.row=t;e.$oldWidget;)e.$oldWidget.row=t,e=e.$oldWidget}),o&&(this.session.lineWidgets=null)}},this.addLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];t&&(e.$oldWidget=t).el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1),(this.session.lineWidgets[e.row]=e).session=this.session;var o=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,o.container.appendChild(e.el),e._inDocument=!0),e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/o.layerConfig.lineHeight);var i=this.session.getFoldAt(e.row,0);if(e.$fold=i){var n=this.session.lineWidgets;e.row!=i.end.row||n[i.start.row]?e.hidden=!0:n[i.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,o),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,o=t&&t[e],i=[];o;)i.push(o),o=o.$oldWidget;return i},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var o=this.session._changedWidgets,i=t.layerConfig;if(o&&o.length){for(var n=1/0,r=0;r<o.length;r++){var s=o[r];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/i.characterWidth));var a=s.h/i.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row))<0&&(a=0),s.rowCount!=a&&(s.rowCount=a,s.row<n&&(n=s.row))}}n!=1/0&&(this.session._emit("changeFold",{data:{start:{row:n}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var o=t.layerConfig,i=this.session.lineWidgets;if(i){for(var n=Math.min(this.firstRow,o.firstRow),r=Math.max(this.lastRow,o.lastRow,i.length);0<n&&!i[n];)n--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,t.$cursorLayer.config=o;for(var s=n;s<=r;s++){var a=i[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(l+=o.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-o.offset+"px";var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=o.width+2*o.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(i.prototype),t.LineWidgets=i}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(e,t,o){"use strict";var f=e("../line_widgets").LineWidgets,g=e("../lib/dom"),m=e("../range").Range;t.showErrorMarker=function(e,t){var o=e.session;o.widgetManager||(o.widgetManager=new f(o),o.widgetManager.attach(e));var i=e.getCursorPosition(),n=i.row,r=o.widgetManager.getWidgetsAtRow(n).filter(function(e){return"errorMarker"==e.type})[0];r?r.destroy():n-=t;var s,a=function(e,t,o){var i=e.getAnnotations().sort(m.comparePoints);if(i.length){var n=function(e,t,o){for(var i=0,n=e.length-1;i<=n;){var r=i+n>>1,s=o(t,e[r]);if(0<s)i=r+1;else{if(!(s<0))return r;n=r-1}}return-(i+1)}(i,{row:t,column:-1},m.comparePoints);n<0&&(n=-n-1),n>=i.length?n=0<o?0:i.length-1:0===n&&o<0&&(n=i.length-1);var r=i[n];if(r&&o){if(r.row===t){for(;(r=i[n+=o])&&r.row===t;);if(!r)return i.slice()}var s=[];for(t=r.row;s[o<0?"unshift":"push"](r),(r=i[n+=o])&&r.row==t;);return s.length&&s}}}(o,n,t);if(a){var l=a[0];i.column=(l.pos&&"number"!=typeof l.column?l.pos.sc:l.column)||0,i.row=l.row,s=e.renderer.$gutterLayer.$annotations[i.row]}else{if(r)return;s={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(i.row),e.selection.moveToPosition(i);var c={row:i.row,fixedWidth:!0,coverGutter:!0,el:g.createElement("div"),type:"errorMarker"},d=c.el.appendChild(g.createElement("div")),u=c.el.appendChild(g.createElement("div"));u.className="error_widget_arrow "+s.className;var h=e.renderer.$cursorLayer.getPixelPosition(i).left;u.style.left=h+e.renderer.gutterWidth-5+"px",c.el.className="error_widget_wrapper",d.className="error_widget "+s.className,d.innerHTML=s.text.join("<br>"),d.appendChild(g.createElement("div"));var p=function(e,t,o){if(0===t&&("esc"===o||"return"===o))return c.destroy(),{command:"null"}};c.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(p),o.widgetManager.removeLineWidget(c),e.off("changeSelection",c.destroy),e.off("changeSession",c.destroy),e.off("mouseup",c.destroy),e.off("change",c.destroy))},e.keyBinding.addKeyboardHandler(p),e.on("changeSelection",c.destroy),e.on("changeSession",c.destroy),e.on("mouseup",c.destroy),e.on("change",c.destroy),e.session.widgetManager.addLineWidget(c),c.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:c.el.offsetHeight})},g.importCssString("    .error_widget_wrapper {        background: inherit;        color: inherit;        border:none    }    .error_widget {        border-top: solid 2px;        border-bottom: solid 2px;        margin: 5px 0;        padding: 10px 40px;        white-space: pre-wrap;    }    .error_widget.ace_error, .error_widget_arrow.ace_error{        border-color: #ff5a5a    }    .error_widget.ace_warning, .error_widget_arrow.ace_warning{        border-color: #F1D817    }    .error_widget.ace_info, .error_widget_arrow.ace_info{        border-color: #5a5a5a    }    .error_widget.ace_ok, .error_widget_arrow.ace_ok{        border-color: #5aaa5a    }    .error_widget_arrow {        position: absolute;        border: solid 5px;        border-top-color: transparent!important;        border-right-color: transparent!important;        border-left-color: transparent!important;        top: -5px;    }","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(e,a,t){"use strict";e("./lib/fixoldbrowsers");var l=e("./lib/dom"),c=e("./lib/event"),d=e("./editor").Editor,i=e("./edit_session").EditSession,n=e("./undomanager").UndoManager,u=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),a.config=e("./config"),a.require=e,"function"==typeof define&&(a.define=define),a.edit=function(e){if("string"==typeof e){var t=e;if(!(e=document.getElementById(t)))throw new Error("ace.edit can't find div #"+t)}if(e&&e.env&&e.env.editor instanceof d)return e.env.editor;var o="";if(e&&/input|textarea/i.test(e.tagName)){var i=e;o=i.value,e=l.createElement("pre"),i.parentNode.replaceChild(e,i)}else e&&(o=l.getInnerText(e),e.innerHTML="");var n=a.createEditSession(o),r=new d(new u(e));r.setSession(n);var s={document:n,editor:r,onResize:r.resize.bind(r,null)};return i&&(s.textarea=i),c.addListener(window,"resize",s.onResize),r.on("destroy",function(){c.removeListener(window,"resize",s.onResize),s.editor.container.env=null}),r.container.env=r.env=s,r},a.createEditSession=function(e,t){var o=new i(e,t);return o.setUndoManager(new n),o},a.EditSession=i,a.UndoManager=n,a.version="1.2.9"}),ace.require(["ace/ace"],function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])}),ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],function(e,t,o){t.isDark=!0,t.cssClass="ace-monokai",t.cssText=".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,t,o){"use strict";var i=e("../lib/oop"),n=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),r=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",s=t.supportFunction="rgb|rgba|url|attr|counter|counters",a=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",d=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",u=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",h=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":s,"support.constant":a,"support.type":r,"support.constant.color":l,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:d},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+d+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"},{token:"constant.numeric",regex:d},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:u},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:h},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};i.inherits(p,n),t.CssHighlightRules=p}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,o){"use strict";var s=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var o=e.getLine(t).match(/^(\s*\})/);if(!o)return 0;var i=o[1].length,n=e.findMatchingBracket({row:t,column:i});if(!n||n.row==t)return 0;var r=this.$getIndent(e.getLine(n.row));e.replace(new s(t,0,t,i-1),r)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,t,o){"use strict";var a={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},i=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var o=t.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});a.hasOwnProperty(o)||(a[o]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,o,i){if(this.completionsDefined||this.defineCompletions(),!t.getTokenAt(o.row,o.column))return[];if("ruleset"===e){var n=t.getLine(o.row).substr(0,o.column);return/:[^;]+$/.test(n)?(/([\w\-]+):[^:]*$/.test(n),this.getPropertyValueCompletions(e,t,o,i)):this.getPropertyCompletions(e,t,o,i)}return[]},this.getPropertyCompletions=function(e,t,o,i){return Object.keys(a).map(function(e){return{caption:e,snippet:e+": $0;",meta:"property",score:Number.MAX_VALUE}})},this.getPropertyValueCompletions=function(e,t,o,i){var n=t.getLine(o.row).substr(0,o.column),r=(/([\w\-]+):[^:]*$/.exec(n)||{})[1];if(!r)return[];var s=[];return r in a&&"object"==typeof a[r]&&(s=Object.keys(a[r])),s.map(function(e){return{caption:e,snippet:e,meta:"property value",score:Number.MAX_VALUE}})}}).call(i.prototype),t.CssCompletions=i}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,t,o){"use strict";var i=e("../../lib/oop"),n=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),c=e("../../token_iterator").TokenIterator,r=function(){this.inherit(n),this.add("colon","insertion",function(e,t,o,i,n){if(":"===n){var r=o.getCursorPosition(),s=new c(i,r.row,r.column),a=s.getCurrentToken();if(a&&a.value.match(/\s+/)&&(a=s.stepBackward()),a&&"support.type"===a.type){var l=i.doc.getLine(r.row);if(":"===l.substring(r.column,r.column+1))return{text:"",selection:[1,1]};if(!l.substring(r.column).match(/^\s*;/))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(e,t,o,i,n){var r=i.doc.getTextRange(n);if(!n.isMultiLine()&&":"===r){var s=o.getCursorPosition(),a=new c(i,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type)if(";"===i.doc.getLine(n.start.row).substring(n.end.column,n.end.column+1))return n.end.column++,n}}),this.add("semicolon","insertion",function(e,t,o,i,n){if(";"===n){var r=o.getCursorPosition();if(";"===i.doc.getLine(r.row).substring(r.column,r.column+1))return{text:"",selection:[1,1]}}})};i.inherits(r,n),t.CssBehaviour=r}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,o){"use strict";var i=e("../../lib/oop"),d=e("../../range").Range,n=e("./fold_mode").FoldMode,r=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(r,n),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,o){var i=e.getLine(o);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var n=this._getFoldWidgetBase(e,t,o);return!n&&this.startRegionRe.test(i)?"start":n},this.getFoldWidgetRange=function(e,t,o,i){var n,r=e.getLine(o);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,o);if(n=r.match(this.foldingStartMarker)){var s=n.index;if(n[1])return this.openingBracketBlock(e,n[1],o,s);var a=e.getCommentFoldRange(o,s+n[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,o):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(n=r.match(this.foldingStopMarker))){s=n.index+n[0].length;return n[1]?this.closingBracketBlock(e,n[1],o,s):e.getCommentFoldRange(o,s,-1)}},this.getSectionRange=function(e,t){for(var o=e.getLine(t),i=o.search(/\S/),n=t,r=o.length,s=t+=1,a=e.getLength();++t<a;){var l=(o=e.getLine(t)).search(/\S/);if(-1!==l){if(l<i)break;var c=this.getFoldWidgetRange(e,"all",t);if(c){if(c.start.row<=n)break;if(c.isMultiLine())t=c.end.row;else if(i==l)break}s=t}}return new d(n,r,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,o){for(var i=t.search(/\s*$/),n=e.getLength(),r=o,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;++o<n;){t=e.getLine(o);var l=s.exec(t);if(l&&(l[1]?a--:a++,!a))break}if(r<o)return new d(r,i,o,t.length)}}.call(r.prototype)}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(e,t,o){"use strict";var i=e("../lib/oop"),n=e("./text").Mode,r=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new c,this.$completer=new l,this.foldingRules=new d};i.inherits(u,n),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,o){var i=this.$getIndent(t),n=this.getTokenizer().getLineTokens(t,e).tokens;return n.length&&"comment"==n[n.length-1].type||t.match(/^.*\{\s*$/)&&(i+=o),i},this.checkOutdent=function(e,t,o){return this.$outdent.checkOutdent(t,o)},this.autoOutdent=function(e,t,o){this.$outdent.autoOutdent(t,o)},this.getCompletions=function(e,t,o,i){return this.$completer.getCompletions(e,t,o,i)},this.createWorker=function(t){var e=new a(["ace"],"ace/mode/css_worker","Worker");return e.attachToDocument(t.getDocument()),e.on("annotate",function(e){t.setAnnotations(e.data)}),e.on("terminate",function(){t.clearAnnotations()}),e},this.$id="ace/mode/css"}.call(u.prototype),t.Mode=u}),ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,o){"use strict";var i=e("../lib/oop"),n=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},r.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};i.inherits(r,n),r.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},r.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},r.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=r}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,t,o){"use strict";var i=e("../lib/oop"),n=e("./doc_comment_highlight_rules").DocCommentHighlightRules,r=e("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",a=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),o="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[n.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+s+")(\\.)(prototype)(\\.)("+s+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[n.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:o},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:o},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,o){if(this.next="{"==e?this.nextState:"","{"==e&&o.length)o.unshift("start",t);else if("}"==e&&o.length&&(o.shift(),this.next=o.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:o},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&0==e.jsx||function(){var e=s.replace("\\d","\\d\\-"),t={onMatch:function(e,t,o){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?o.unshift(this.next,this.nextState,0):o.unshift(this.next),o[2]++):2==i&&t==this.nextState&&(o[1]--,(!o[1]||o[1]<0)&&(o.shift(),o.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var o={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[o,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,o){return t==o[0]&&o.shift(),2==e.length&&(o[0]==this.nextState&&o[1]--,(!o[1]||o[1]<0)&&o.splice(0,2)),this.next=o[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},o,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}.call(this)),this.embedRules(n,"doc-",[n.getEndRule("no_regex")]),this.normalizeRules()};function l(e){return[{token:"comment",regex:/\/\*/,next:[n.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[n.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}i.inherits(a,r),t.JavaScriptHighlightRules=a}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,o){"use strict";var s=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var o=e.getLine(t).match(/^(\s*\})/);if(!o)return 0;var i=o[1].length,n=e.findMatchingBracket({row:t,column:i});if(!n||n.row==t)return 0;var r=this.$getIndent(e.getLine(n.row));e.replace(new s(t,0,t,i-1),r)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,o){"use strict";var i=e("../../lib/oop"),d=e("../../range").Range,n=e("./fold_mode").FoldMode,r=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(r,n),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,o){var i=e.getLine(o);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var n=this._getFoldWidgetBase(e,t,o);return!n&&this.startRegionRe.test(i)?"start":n},this.getFoldWidgetRange=function(e,t,o,i){var n,r=e.getLine(o);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,o);if(n=r.match(this.foldingStartMarker)){var s=n.index;if(n[1])return this.openingBracketBlock(e,n[1],o,s);var a=e.getCommentFoldRange(o,s+n[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,o):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(n=r.match(this.foldingStopMarker))){s=n.index+n[0].length;return n[1]?this.closingBracketBlock(e,n[1],o,s):e.getCommentFoldRange(o,s,-1)}},this.getSectionRange=function(e,t){for(var o=e.getLine(t),i=o.search(/\S/),n=t,r=o.length,s=t+=1,a=e.getLength();++t<a;){var l=(o=e.getLine(t)).search(/\S/);if(-1!==l){if(l<i)break;var c=this.getFoldWidgetRange(e,"all",t);if(c){if(c.start.row<=n)break;if(c.isMultiLine())t=c.end.row;else if(i==l)break}s=t}}return new d(n,r,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,o){for(var i=t.search(/\s*$/),n=e.getLength(),r=o,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;++o<n;){t=e.getLine(o);var l=s.exec(t);if(l&&(l[1]?a--:a++,!a))break}if(r<o)return new d(r,i,o,t.length)}}.call(r.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(e,t,o){"use strict";var i=e("../lib/oop"),n=e("./text").Mode,r=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new c};i.inherits(d,n),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,o){var i=this.$getIndent(t),n=this.getTokenizer().getLineTokens(t,e),r=n.tokens,s=n.state;if(r.length&&"comment"==r[r.length-1].type)return i;if("start"==e||"no_regex"==e)(a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/))&&(i+=o);else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";var a;(a=t.match(/^\s*(\/?)\*/))&&(a[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,o){return this.$outdent.checkOutdent(t,o)},this.autoOutdent=function(e,t,o){this.$outdent.autoOutdent(t,o)},this.createWorker=function(t){var e=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return e.attachToDocument(t.getDocument()),e.on("annotate",function(e){t.setAnnotations(e.data)}),e.on("terminate",function(){t.clearAnnotations()}),e},this.$id="ace/mode/javascript"}.call(d.prototype),t.Mode=d}),function(re){"use strict";function A(i,n){return n=n||Error,function(){var e,t=arguments[0];for(e="["+(i?i+":":"")+t+"] http://errors.angularjs.org/1.6.1/"+(i?i+"/":"")+t,t=1;t<arguments.length;t++){var o;e=e+(1==t?"?":"&")+"p"+(t-1)+"=",e+=encodeURIComponent(o="function"==typeof(o=arguments[t])?o.toString().replace(/ \{[\s\S]*$/,""):void 0===o?"undefined":"string"!=typeof o?JSON.stringify(o):o)}return new n(e)}}function S(e){if(null==e||l(e))return!1;if(Zo(e)||fe(e)||Ro&&e instanceof Ro)return!0;var t="length"in Object(e)&&e.length;return p(t)&&(0<=t&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function se(e,t,o){var i,n;if(e)if(ge(e))for(i in e)"prototype"!==i&&"length"!==i&&"name"!==i&&e.hasOwnProperty(i)&&t.call(o,e[i],i,e);else if(Zo(e)||S(e)){var r="object"!=typeof e;for(i=0,n=e.length;i<n;i++)(r||i in e)&&t.call(o,e[i],i,e)}else if(e.forEach&&e.forEach!==se)e.forEach(t,o,e);else if(a(e))for(i in e)t.call(o,e[i],i,e);else if("function"==typeof e.hasOwnProperty)for(i in e)e.hasOwnProperty(i)&&t.call(o,e[i],i,e);else for(i in e)No.call(e,i)&&t.call(o,e[i],i,e);return e}function r(e,t,o){for(var i=Object.keys(e).sort(),n=0;n<i.length;n++)t.call(o,e[i[n]],i[n]);return i}function v(o){return function(e,t){o(t,e)}}function h(e,t,o){for(var i=e.$$hashKey,n=0,r=t.length;n<r;++n){var s=t[n];if(pe(s)||ge(s))for(var a=Object.keys(s),l=0,c=a.length;l<c;l++){var d=a[l],u=s[d];o&&pe(u)?b(u)?e[d]=new Date(u.valueOf()):f(u)?e[d]=new RegExp(u):u.nodeName?e[d]=u.cloneNode(!0):g(u)?e[d]=u.clone():(pe(e[d])||(e[d]=Zo(u)?[]:{}),h(e[d],[u],!0)):e[d]=u}}return i?e.$$hashKey=i:delete e.$$hashKey,e}function ae(e){return h(e,Vo.call(arguments,1),!1)}function e(e){return h(e,Vo.call(arguments,1),!0)}function d(e){return parseInt(e,10)}function le(e,t){return ae(Object.create(e),t)}function ce(){}function de(e){return e}function C(e){return function(){return e}}function u(e){return ge(e.toString)&&e.toString!==Uo}function ue(e){return void 0===e}function he(e){return void 0!==e}function pe(e){return null!==e&&"object"==typeof e}function a(e){return null!==e&&"object"==typeof e&&!Ko(e)}function fe(e){return"string"==typeof e}function p(e){return"number"==typeof e}function b(e){return"[object Date]"===Uo.call(e)}function ge(e){return"function"==typeof e}function f(e){return"[object RegExp]"===Uo.call(e)}function l(e){return e&&e.window===e}function me(e){return e&&e.$evalAsync&&e.$watch}function ve(e){return"boolean"==typeof e}function g(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function be(e){return Po(e.nodeName||e[0]&&e[0].nodeName)}function we(e,t){var o=e.indexOf(t);return 0<=o&&e.splice(o,1),o}function k(e,o){function i(e,t){var o,i=t.$$hashKey;if(Zo(e)){o=0;for(var n=e.length;o<n;o++)t.push(r(e[o]))}else if(a(e))for(o in e)t[o]=r(e[o]);else if(e&&"function"==typeof e.hasOwnProperty)for(o in e)e.hasOwnProperty(o)&&(t[o]=r(e[o]));else for(o in e)No.call(e,o)&&(t[o]=r(e[o]));return i?t.$$hashKey=i:delete t.$$hashKey,t}function r(e){if(!pe(e))return e;if(-1!==(t=n.indexOf(e)))return s[t];if(l(e)||me(e))throw Go("cpws");var t=!1,o=function(e){switch(Uo.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(r(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":return(t=new RegExp(e.source,e.toString().match(/[^/]*$/)[0])).lastIndex=e.lastIndex,t;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(ge(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===o&&(o=Zo(e)?[]:Object.create(Ko(e)),t=!0),n.push(e),s.push(o),t?i(e,o):o}var t,n=[],s=[];if(o){if((t=o)&&p(t.length)&&Qo.test(Uo.call(t))||"[object ArrayBuffer]"===Uo.call(o))throw Go("cpta");if(e===o)throw Go("cpi");return Zo(o)?o.length=0:se(o,function(e,t){"$$hashKey"!==t&&delete o[t]}),n.push(e),s.push(o),i(e,o)}return r(e)}function ye(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var o,i=typeof e;if(i===typeof t&&"object"===i){if(!Zo(e)){if(b(e))return!!b(t)&&ye(e.getTime(),t.getTime());if(f(e))return!!f(t)&&e.toString()===t.toString();if(me(e)||me(t)||l(e)||l(t)||Zo(t)||b(t)||f(t))return!1;for(o in i=ke(),e)if("$"!==o.charAt(0)&&!ge(e[o])){if(!ye(e[o],t[o]))return!1;i[o]=!0}for(o in t)if(!(o in i)&&"$"!==o.charAt(0)&&he(t[o])&&!ge(t[o]))return!1;return!0}if(!Zo(t))return!1;if((i=e.length)===t.length){for(o=0;o<i;o++)if(!ye(e[o],t[o]))return!1;return!0}}return!1}function E(e,t,o){return e.concat(Vo.call(t,o))}function xe(e,t){var o=2<arguments.length?Vo.call(arguments,2):[];return!ge(t)||t instanceof RegExp?t:o.length?function(){return arguments.length?t.apply(e,E(o,arguments,0)):t.apply(e,o)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function i(e,t){var o=t;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?o=void 0:l(t)?o="$WINDOW":t&&re.document===t?o="$DOCUMENT":me(t)&&(o="$SCOPE"),o}function o(e,t){if(!ue(e))return p(t)||(t=t?2:null),JSON.stringify(e,i,t)}function n(e){return fe(e)?JSON.parse(e):e}function m(e,t){e=e.replace(ni,"");var o=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return Jo(o)?t:o}function w(e,t,o){o=o?-1:1;var i=e.getTimezoneOffset();return o*=(t=m(t,i))-i,(e=new Date(e.getTime())).setMinutes(e.getMinutes()+o),e}function _e(e){e=Ro(e).clone();try{e.empty()}catch(e){}var t=Ro("<div>").append(e).html();try{return e[0].nodeType===ci?Po(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+Po(t)})}catch(e){return Po(t)}}function s(e){try{return decodeURIComponent(e)}catch(e){}}function c(e){var n={};return se((e||"").split("&"),function(e){var t,o,i;e&&(o=e=e.replace(/\+/g,"%20"),-1!==(t=e.indexOf("="))&&(o=e.substring(0,t),i=e.substring(t+1)),he(o=s(o))&&(i=!he(i)||s(i),No.call(n,o)?Zo(n[o])?n[o].push(i):n[o]=[n[o],i]:n[o]=i))}),n}function y(e){var o=[];return se(e,function(e,t){Zo(e)?se(e,function(e){o.push(_(t,!0)+(!0===e?"":"="+_(e,!0)))}):o.push(_(t,!0)+(!0===e?"":"="+_(e,!0)))}),o.length?o.join("&"):""}function x(e){return _(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function _(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function t(o,e){var i,n,t={};se(ri,function(e){e+="app",!i&&o.hasAttribute&&o.hasAttribute(e)&&(n=(i=o).getAttribute(e))}),se(ri,function(e){var t;e+="app",!i&&(t=o.querySelector("["+e.replace(":","\\:")+"]"))&&(n=(i=t).getAttribute(e))}),i&&(si?(t.strictDi=null!==function(e,t){var o,i,n=ri.length;for(i=0;i<n;++i)if(o=ri[i]+t,fe(o=e.getAttribute(o)))return o;return null}(i,"strict-di"),e(i,n?[n]:[],t)):re.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function $(t,o,i){pe(i)||(i={}),i=ae({strictDi:!1},i);var n=function(){if((t=Ro(t)).injector()){var e=t[0]===re.document?"document":_e(t);throw Go("btstrpd",e.replace(/</,"&lt;").replace(/>/,"&gt;"))}return(o=o||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&o.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),o.unshift("ng"),(e=Le(o,i.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,o,i){e.$apply(function(){t.data("$injector",i),o(t)(e)})}]),e},e=/^NG_ENABLE_DEBUG_INFO!/,r=/^NG_DEFER_BOOTSTRAP!/;if(re&&e.test(re.name)&&(i.debugInfoEnabled=!0,re.name=re.name.replace(e,"")),re&&!r.test(re.name))return n();re.name=re.name.replace(r,""),Yo.resumeBootstrap=function(e){return se(e,function(e){o.push(e)}),n()},ge(Yo.resumeDeferredBootstrap)&&Yo.resumeDeferredBootstrap()}function j(){re.name="NG_ENABLE_DEBUG_INFO!"+re.name,re.location.reload()}function F(e){if(!(e=Yo.element(e).injector()))throw Go("test");return e.get("$$testability")}function Ce(e,o){return o=o||"_",e.replace(ai,function(e,t){return(t?o:"")+e.toLowerCase()})}function Ae(e,t,o){if(!e)throw Go("areq",t||"?",o||"required");return e}function D(e,t,o){return o&&Zo(e)&&(e=e[e.length-1]),Ae(ge(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function z(e,t){if("hasOwnProperty"===e)throw Go("badname",t)}function L(e,t,o){if(!t)return e;for(var i,n=e,r=(t=t.split(".")).length,s=0;s<r;s++)i=t[s],e&&(e=(n=e)[i]);return!o&&ge(e)?xe(n,e):e}function M(e){for(var t,o=e[0],i=e[e.length-1],n=1;o!==i&&(o=o.nextSibling);n++)(t||e[n]!==o)&&(t||(t=Ro(Vo.call(e,0,n))),t.push(o));return t||e}function ke(){return Object.create(null)}function T(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!u(e)||Zo(e)||b(e)?o(e):e.toString()}return e}function B(e,t){if(Zo(e)){t=t||[];for(var o=0,i=e.length;o<i;o++)t[o]=e[o]}else if(pe(e))for(o in t=t||{},e)"$"===o.charAt(0)&&"$"===o.charAt(1)||(t[o]=e[o]);return t||e}function R(e){var o=[];return JSON.stringify(e,function(e,t){if(pe(t=i(e,t))){if(0<=o.indexOf(t))return"...";o.push(t)}return t})}function I(e,t){return t.toUpperCase()}function O(e){return e.replace(pi,I)}function N(e){return 1===(e=e.nodeType)||!e||9===e}function P(e,t){var o,i,n=t.createDocumentFragment(),r=[];if(bi.test(e)){for(o=n.appendChild(t.createElement("div")),i=(wi.exec(e)||["",""])[1].toLowerCase(),i=xi[i]||xi._default,o.innerHTML=i[1]+e.replace(yi,"<$1></$2>")+i[2],i=i[0];i--;)o=o.lastChild;r=E(r,o.childNodes),(o=n.firstChild).textContent=""}else r.push(t.createTextNode(e));return n.textContent="",n.innerHTML="",se(r,function(e){n.appendChild(e)}),n}function q(e){if(e instanceof q)return e;var t,o;if(fe(e)&&(e=ei(e),t=!0),!(this instanceof q)){if(t&&"<"!==e.charAt(0))throw mi("nosel");return new q(e)}t?(t=re.document,J(this,e=(o=vi.exec(e))?[t.createElement(o[1])]:(o=P(e,t))?o.childNodes:[])):ge(e)?oe(e):J(this,e)}function Ee(e){return e.cloneNode(!0)}function V(e,t){if(t||H(e),e.querySelectorAll)for(var o=e.querySelectorAll("*"),i=0,n=o.length;i<n;i++)H(o[i])}function W(o,e,i,t){if(he(t))throw mi("offargs");var n=(t=U(o))&&t.events,r=t&&t.handle;if(r)if(e){var s=function(e){var t=n[e];he(i)&&we(t||[],i),he(i)&&t&&0<t.length||(o.removeEventListener(e,r),delete n[e])};se(e.split(" "),function(e){s(e),gi[e]&&s(gi[e])})}else for(e in n)"$destroy"!==e&&o.removeEventListener(e,r),delete n[e]}function H(e,t){var o=e.ng339,i=o&&ui[o];i&&(t?delete i.data[t]:(i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),W(e)),delete ui[o],e.ng339=void 0))}function U(e,t){var o=(o=e.ng339)&&ui[o];return t&&!o&&(e.ng339=o=++hi,o=ui[o]={events:{},data:{},handle:void 0}),o}function K(e,t,o){if(N(e)){var i,n=he(o),r=!n&&t&&!pe(t),s=!t;if(e=(e=U(e,!r))&&e.data,n)e[O(t)]=o;else{if(s)return e;if(r)return e&&e[O(t)];for(i in t)e[O(i)]=t[i]}}}function G(e,t){return!!e.getAttribute&&-1<(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")}function Y(t,e){e&&t.setAttribute&&se(e.split(" "),function(e){t.setAttribute("class",ei((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+ei(e)+" "," ")))})}function X(e,t){if(t&&e.setAttribute){var o=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");se(t.split(" "),function(e){e=ei(e),-1===o.indexOf(" "+e+" ")&&(o+=e+" ")}),e.setAttribute("class",ei(o))}}function J(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var o=t.length;if("number"==typeof o&&t.window!==t){if(o)for(var i=0;i<o;i++)e[e.length++]=t[i]}else e[e.length++]=t}}function Z(e,t){return Q(e,"$"+(t||"ngController")+"Controller")}function Q(e,t,o){for(9===e.nodeType&&(e=e.documentElement),t=Zo(t)?t:[t];e;){for(var i=0,n=t.length;i<n;i++)if(he(o=Ro.data(e,t[i])))return o;e=e.parentNode||11===e.nodeType&&e.host}}function ee(e){for(V(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function te(e,t){t||V(e);var o=e.parentNode;o&&o.removeChild(e)}function oe(e){function t(){re.document.removeEventListener("DOMContentLoaded",t),re.removeEventListener("load",t),e()}"complete"===re.document.readyState?re.setTimeout(e):(re.document.addEventListener("DOMContentLoaded",t),re.addEventListener("load",t))}function $e(e,t){var o=Ai[t.toLowerCase()];return o&&ki[be(e)]&&o}function ie(e,t,o){o.call(e,t)}function ne(e,t,o){var i=t.relatedTarget;i&&(i===e||_i.call(e,i))||o.call(e,t)}function Se(){this.$get=function(){return ae(q,{hasClass:function(e,t){return e.attr&&(e=e[0]),G(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),X(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Y(e,t)}})}}function je(e,t){var o=e&&e.$$hashKey;return o?("function"==typeof o&&(o=e.$$hashKey()),o):"function"===(o=typeof e)||"object"===o&&null!==e?e.$$hashKey=o+":"+(t||function(){return++Xo})():o+":"+e}function Fe(e,t){if(t){var o=0;this.nextUid=function(){return++o}}se(e,this.put,this)}function De(e){return(e=(Function.prototype.toString.call(e)+" ").replace(Li,"")).match(Si)||e.match(ji)}function Le(e,l){function t(o){return function(e,t){if(!pe(e))return o(e,t);se(e,v(o))}}function r(e,t){if(z(e,"service"),(ge(t)||Zo(t))&&(t=d.instantiate(t)),!t.$get)throw Mi("pget",e);return c[e+"Provider"]=t}function o(e,t,o){return r(e,{$get:!1!==o?(i=e,n=t,function(){var e=p.invoke(n,this);if(ue(e))throw Mi("undef",i);return e}):t});var i,n}function i(o,i){function a(t,e){if(o.hasOwnProperty(t)){if(o[t]===n)throw Mi("cdep",t+" <- "+s.join(" <- "));return o[t]}try{return s.unshift(t),o[t]=n,o[t]=i(t,e),o[t]}catch(e){throw o[t]===n&&delete o[t],e}finally{s.shift()}}function r(e,t,o){for(var i=[],n=0,r=(e=Le.$$annotate(e,l,o)).length;n<r;n++){var s=e[n];if("string"!=typeof s)throw Mi("itkn",s);i.push(t&&t.hasOwnProperty(s)?t[s]:a(s,o))}return i}return{invoke:function(e,t,o,i){if("string"==typeof o&&(i=o,o=null),o=r(e,o,i),Zo(e)&&(e=e[e.length-1]),i=e,Bo||"function"!=typeof i)i=!1;else{var n=i.$$ngIsClass;ve(n)||(n=i.$$ngIsClass=/^(?:class\b|constructor\()/.test(Function.prototype.toString.call(i)+" ")),i=n}return i?(o.unshift(null),new(Function.prototype.bind.apply(e,o))):e.apply(t,o)},instantiate:function(e,t,o){var i=Zo(e)?e[e.length-1]:e;return(e=r(e,t,o)).unshift(null),new(Function.prototype.bind.apply(i,e))},get:a,annotate:Le.$$annotate,has:function(e){return c.hasOwnProperty(e+"Provider")||o.hasOwnProperty(e)}}}l=!0===l;var n={},s=[],a=new Fe([],!0),c={$provide:{provider:t(r),factory:t(o),service:t(function(e,t){return o(e,["$injector",function(e){return e.instantiate(t)}])}),value:t(function(e,t){return o(e,C(t),!1)}),constant:t(function(e,t){z(e,"constant"),c[e]=t,u[e]=t}),decorator:function(e,t){var o=d.get(e+"Provider"),i=o.$get;o.$get=function(){var e=p.invoke(i,o);return p.invoke(t,null,{$delegate:e})}}}},d=c.$injector=i(c,function(e,t){throw Yo.isString(t)&&s.push(t),Mi("unpr",s.join(" <- "))}),u={},h=i(u,function(e,t){var o=d.get(e+"Provider",t);return p.invoke(o.$get,o,void 0,e)}),p=h;c.$injectorProvider={$get:C(h)};var f=function o(e){Ae(ue(e)||Zo(e),"modulesToLoad","not an array");var i,n=[];return se(e,function(t){function e(e){var t,o;for(t=0,o=e.length;t<o;t++){var i=e[t],n=d.get(i[0]);n[i[1]].apply(n,i[2])}}if(!a.get(t)){a.put(t,!0);try{fe(t)?(i=Oo(t),n=n.concat(o(i.requires)).concat(i._runBlocks),e(i._invokeQueue),e(i._configBlocks)):ge(t)?n.push(d.invoke(t)):Zo(t)?n.push(d.invoke(t)):D(t,"module")}catch(e){throw Zo(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Mi("modulerr",t,e.stack||e.message||e)}}}),n}(e);return(p=h.get("$injector")).strictDi=l,se(f,function(e){e&&p.invoke(e)}),p}function Me(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(o,n,r){function s(e){var t;e?(e.scrollIntoView(),ge(t=a.yOffset)?t=t():g(t)?(t=t[0],t="fixed"!==o.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom):p(t)||(t=0),t&&(e=e.getBoundingClientRect().top,o.scrollBy(0,e-t))):o.scrollTo(0,0)}function a(e){var t,o,i;(e=fe(e)?e:p(e)?e.toString():n.hash())?(t=l.getElementById(e))?s(t):(o=l.getElementsByName(e),i=null,Array.prototype.some.call(o,function(e){if("a"===be(e))return i=e,!0}),(t=i)?s(t):"top"===e&&s(null)):s(null)}var l=o.document;return e&&r.$watch(function(){return n.hash()},function(e,t){var o,i;e===t&&""===e||(o=function(){r.$evalAsync(a)},"complete"===(i=i||re).document.readyState?i.setTimeout(o):Ro(i).on("load",o))}),a}]}function Te(e,t){return e||t?e?t?(Zo(e)&&(e=e.join(" ")),Zo(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function Be(e){return pe(e)?e:{}}function Re(r,e,t,s){function i(e){try{e.apply(null,Vo.call(arguments,1))}finally{if(0===--f)for(;g.length;)try{g.pop()()}catch(e){t.error(e)}}}function o(){y=null,a(),n()}function a(){ye(m=ue(m=x())?null:m,A)&&(m=A),A=m}function n(){b===l.url()&&v===m||(b=l.url(),v=m,se(_,function(e){e(l.url(),m)}))}var l=this,c=r.location,d=r.history,u=r.setTimeout,h=r.clearTimeout,p={};l.isMock=!1;var f=0,g=[];l.$$completeOutstandingRequest=i,l.$$incOutstandingRequestCount=function(){f++},l.notifyWhenNoOutstandingRequests=function(e){0===f?e():g.push(e)};var m,v,b=c.href,w=e.find("base"),y=null,x=s.history?function(){try{return d.state}catch(e){}}:ce;a(),v=m,l.url=function(e,t,o){if(ue(o)&&(o=null),c!==r.location&&(c=r.location),d!==r.history&&(d=r.history),e){var i=v===o;if(b===e&&(!s.history||i))return l;var n=b&&ht(b)===ht(e);return b=e,v=o,!s.history||n&&i?(n||(y=e),t?c.replace(e):n?(t=c,o=-1===(o=e.indexOf("#"))?"":e.substr(o),t.hash=o):c.href=e,c.href!==e&&(y=e)):(d[t?"replaceState":"pushState"](o,"",e),a(),v=m),y&&(y=e),l}return y||c.href.replace(/%27/g,"'")},l.state=function(){return m};var _=[],C=!1,A=null;l.onUrlChange=function(e){return C||(s.history&&Ro(r).on("popstate",o),Ro(r).on("hashchange",o),C=!0),_.push(e),e},l.$$applicationDestroyed=function(){Ro(r).off("hashchange popstate",o)},l.$$checkUrlChange=n,l.baseHref=function(){var e=w.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},l.defer=function(e,t){var o;return f++,o=u(function(){delete p[o],i(e)},t||0),p[o]=!0,o},l.defer.cancel=function(e){return!!p[e]&&(delete p[e],h(e),i(ce),!0)}}function Ie(){this.$get=["$window","$log","$sniffer","$document",function(e,t,o,i){return new Re(e,i,t,o)}]}function Oe(){this.$get=function(){function e(e,t){function o(e){e!==c&&(d?d===e&&(d=e.n):d=e,i(e.n,e.p),i(e,c),(c=e).n=null)}function i(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in u)throw A("$cacheFactory")("iid",e);var n=0,r=ae({},t,{id:e}),s=ke(),a=t&&t.capacity||Number.MAX_VALUE,l=ke(),c=null,d=null;return u[e]={put:function(e,t){if(!ue(t)){if(a<Number.MAX_VALUE)o(l[e]||(l[e]={key:e}));return e in s||n++,s[e]=t,a<n&&this.remove(d.key),t}},get:function(e){if(a<Number.MAX_VALUE){var t=l[e];if(!t)return;o(t)}return s[e]},remove:function(e){if(a<Number.MAX_VALUE){var t=l[e];if(!t)return;t===c&&(c=t.p),t===d&&(d=t.n),i(t.n,t.p),delete l[e]}e in s&&(delete s[e],n--)},removeAll:function(){s=ke(),n=0,l=ke(),c=d=null},destroy:function(){l=r=s=null,delete u[e]},info:function(){return ae({},r,{size:n})}}}var u={};return e.info=function(){var o={};return se(u,function(e,t){o[t]=e.info()}),o},e.get=function(e){return u[e]},e}}function ze(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function Ne(o,t){function g(e,i,n){var r=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,s=ke();return se(e,function(e,t){if(e in a)s[t]=a[e];else{var o=e.match(r);if(!o)throw Pi("iscp",i,t,e,n?"controller bindings definition":"isolate scope definition");s[t]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||t},o[4]&&(a[e]=s[t])}}),s}var m={},L=/^\s*directive:\s*([\w-]+)\s+(.*)$/,M=/(([\w-]+)(?::([^;]+))?;?)/,c=function(e){var t,o={};for(e=e.split(","),t=0;t<e.length;t++)o[e[t]]=!0;return o}("ngSrc,ngSrcset,src,srcset"),b=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,T=/^(on[a-z]+|formaction)$/,a=ke();this.directive=function e(d,t){return Ae(d,"name"),z(d,"directive"),fe(d)?(function(e){var t=e.charAt(0);if(!t||t!==Po(t))throw Pi("baddir",e);if(e!==e.trim())throw Pi("baddir",e)}(d),Ae(t,"directiveFactory"),m.hasOwnProperty(d)||(m[d]=[],o.factory(d+"Directive",["$injector","$exceptionHandler",function(a,l){var c=[];return se(m[d],function(e,t){try{var o=a.invoke(e);ge(o)?o={compile:C(o)}:!o.compile&&o.link&&(o.compile=C(o.link)),o.priority=o.priority||0,o.index=t,o.name=o.name||d,o.require=(s=(r=o).require||r.controller&&r.name,!Zo(s)&&pe(s)&&se(s,function(e,t){var o=e.match(b);e.substring(o[0].length)||(s[t]=o[0]+t)}),s);var i=o,n=o.restrict;if(n&&(!fe(n)||!/[EACM]/.test(n)))throw Pi("badrestrict",n,d);i.restrict=n||"EA",o.$$moduleName=e.$$moduleName,c.push(o)}catch(e){l(e)}var r,s}),c}])),m[d].push(t)):se(d,v(e)),this},this.component=function(e,n){function o(i){function e(o){return ge(o)||Zo(o)?function(e,t){return i.invoke(o,this,{$element:e,$attrs:t})}:o}var t=n.template||n.templateUrl?n.template:"",o={controller:r,controllerAs:function(e,t){if(t&&fe(t))return t;if(fe(e)){var o=Ui.exec(e);if(o)return o[3]}}(n.controller)||n.controllerAs||"$ctrl",template:e(t),templateUrl:e(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return se(n,function(e,t){"$"===t.charAt(0)&&(o[t]=e)}),o}var r=n.controller||function(){};return se(n,function(e,t){"$"===t.charAt(0)&&(o[t]=e,ge(r)&&(r[t]=e))}),o.$inject=["$injector"],this.directive(e,o)},this.aHrefSanitizationWhitelist=function(e){return he(e)?(t.aHrefSanitizationWhitelist(e),this):t.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return he(e)?(t.imgSrcSanitizationWhitelist(e),this):t.imgSrcSanitizationWhitelist()};var B=!0,ne=!(this.debugInfoEnabled=function(e){return he(e)?(B=e,this):B});this.preAssignBindingsEnabled=function(e){return he(e)?(ne=e,this):ne};var R=10;this.onChangesTtl=function(e){return arguments.length?(R=e,this):R};var I=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(I=e,this):I};var O=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(O=e,this):O},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(p,w,z,e,v,N,r,i,n,d){function s(){try{if(!--t)throw a=void 0,Pi("infchng",R);r.$apply(function(){for(var t=[],e=0,o=a.length;e<o;++e)try{a[e]()}catch(e){t.push(e)}if(a=void 0,t.length)throw t})}finally{t++}}function P(e,t){if(t){var o,i,n,r=Object.keys(t);for(o=0,i=r.length;o<i;o++)this[n=r[o]]=t[n]}else this.$attr={};this.$$element=e}function C(e,t){try{e.addClass(t)}catch(e){}}function q(s,e,t,o,a){s instanceof Ro||(s=Ro(s));var l=A(s,e,s,t,o,a);q.$$addScopeClass(s);var c=null;return function(e,t,o){if(!s)throw Pi("multilink");Ae(e,"scope"),a&&a.needsNewScope&&(e=e.$parent.$new());var i=(o=o||{}).parentBoundTranscludeFn,n=o.transcludeControllers;if(o=o.futureParentElement,i&&i.$$boundTransclude&&(i=i.$$boundTransclude),c||(c=(o=o&&o[0])&&"foreignobject"!==be(o)&&Uo.call(o).match(/SVG/)?"svg":"html"),o="html"!==c?Ro(Z(c,Ro("<div>").append(s).html())):t?Ci.clone.call(s):s,n)for(var r in n)o.data("$"+r+"Controller",n[r].instance);return q.$$addScopeInfo(o,e),t&&t(o,e),l&&l(e,o,o,i),t||(s=l=null),o}}function A(e,d,t,o,i,n){for(var r,s,a,l,u,h=[],c=Zo(e)||e instanceof Ro,p=0;p<e.length;p++)r=new P,11===Bo&&f(e,p,c),(n=(s=V(e[p],[],r,0===p?o:void 0,i)).length?E(s,e[p],r,d,t,null,[],[],n):null)&&n.scope&&q.$$addScopeClass(r.$$element),r=n&&n.terminal||!(a=e[p].childNodes)||!a.length?null:A(a,n?(n.transcludeOnThisElement||!n.templateOnThisElement)&&n.transclude:d),(n||r)&&(h.push(p,n,r),l=!0,u=u||n),n=null;return l?function(e,t,o,i){var n,r,s,a,l,c;if(u)for(c=Array(t.length),a=0;a<h.length;a+=3)c[n=h[a]]=t[n];else c=t;for(a=0,l=h.length;a<l;)r=c[h[a++]],t=h[a++],n=h[a++],t?(t.scope?(s=e.$new(),q.$$addScopeInfo(Ro(r),s)):s=e,t(n,s,r,o,t.transcludeOnThisElement?k(e,t.transclude,i):!t.templateOnThisElement&&i?i:!i&&d?k(e,d):null)):n&&n(e,r.childNodes,void 0,i)}:null}function f(e,t,o){var i,n=e[t],r=n.parentNode;if(n.nodeType===ci)for(;(i=r?n.nextSibling:e[t+1])&&i.nodeType===ci;)n.nodeValue+=i.nodeValue,i.parentNode&&i.parentNode.removeChild(i),o&&i===e[t+1]&&e.splice(t+1,1)}function k(r,s,a){function e(e,t,o,i,n){return e||((e=r.$new(!1,n)).$$transcluded=!0),s(e,t,{parentBoundTranscludeFn:a,transcludeControllers:o,futureParentElement:i})}var t,o=e.$$slots=ke();for(t in s.$$slots)o[t]=s.$$slots[t]?k(r,s.$$slots[t],a):null;return e}function V(e,t,o,i,n){var r,s,a,l,c=o.$attr;switch(e.nodeType){case 1:y(t,qe(r=be(e)),"E",i,n);for(var d,u,h,p,f=e.attributes,g=0,m=f&&f.length;g<m;g++){var v=!1,b=!1;u=(d=f[g]).name,h=d.value,d=qe(u),(p=F.test(d))&&(u=u.replace(Vi,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()})),(d=d.match(D))&&x(d[1])&&(b=(v=u).substr(0,u.length-5)+"end",u=u.substr(0,u.length-6)),c[d=qe(u.toLowerCase())]=u,!p&&o.hasOwnProperty(d)||(o[d]=h,$e(e,d)&&(o[d]=!0)),$(e,t,h,d,p),y(t,d,"A",i,n,v,b)}if("input"===r&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!j)break;if(pe(c=e.className)&&(c=c.animVal),fe(c)&&""!==c)for(;e=M.exec(c);)y(t,d=qe(e[2]),"C",i,n)&&(o[d]=ei(e[3])),c=c.substr(e.index+e[0].length);break;case ci:s=t,a=e.nodeValue,(l=w(a,!0))&&s.push({priority:0,compile:function(e){var i=!!(e=e.parent()).length;return i&&q.$$addBindingClass(e),function(e,t){var o=t.parent();i||q.$$addBindingClass(o),q.$$addBindingInfo(o,l.expressions),e.$watch(l,function(e){t[0].nodeValue=e})}}});break;case 8:if(!S)break;!function(e,t,o,i,n){try{var r=L.exec(e.nodeValue);if(r){var s=qe(r[1]);y(t,s,"M",i,n)&&(o[s]=ei(r[2]))}}catch(e){}}(e,t,o,i,n)}return t.sort(_),t}function W(e,t,o){var i=[],n=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw Pi("uterdir",t,o);1===e.nodeType&&(e.hasAttribute(t)&&n++,e.hasAttribute(o)&&n--),i.push(e),e=e.nextSibling}while(0<n);else i.push(e);return Ro(i)}function H(r,s,a){return function(e,t,o,i,n){return t=W(t[0],s,a),r(e,t,o,i,n)}}function U(e,t,o,i,n,r){var s;return e?q(t,o,i,n,r):function(){return s||(s=q(t,o,i,n,r),t=o=r=null),s.apply(this,arguments)}}function E(e,m,v,t,o,i,b,w,n){function r(e,t,o,i){e&&(o&&(e=H(e,o,i)),e.require=a.require,e.directiveName=l,(_===a||a.$$isolateScope)&&(e=ee(e,{isolateScope:!0})),b.push(e)),t&&(o&&(t=H(t,o,i)),t.require=a.require,t.directiveName=l,(_===a||a.$$isolateScope)&&(t=ee(t,{isolateScope:!0})),w.push(t))}function s(e,t,o,i,s){var n,r,a,l,c,d,u,h;for(n in m===o?h=(i=v).$$element:i=new P(h=Ro(o),v),c=t,_?l=t.$new(!0):y&&(c=t.$parent),s&&((u=function(e,t,o,i){var n;if(me(e)||(i=o,o=t,t=e,e=void 0),A&&(n=d),o||(o=A?h.parent():h),!i)return s(e,t,n,o,g);var r=s.$$slots[i];if(r)return r(e,t,n,o,g);if(ue(r))throw Pi("noslot",i,_e(h))}).$$boundTransclude=s,u.isSlotFilled=function(e){return!!s.$$slots[e]}),x&&(d=function(e,t,o,i,n,r,s){var a,l=ke();for(a in i){var c=i[a],d={$scope:c===s||c.$$isolateScope?n:r,$element:e,$attrs:t,$transclude:o},u=c.controller;"@"===u&&(u=t[c.name]),d=N(u,d,!0,c.controllerAs),l[c.name]=d,e.data("$"+c.name+"Controller",d.instance)}return l}(h,i,u,x,l,t,_)),_&&(q.$$addScopeInfo(h,l,!0,!(C&&(C===_||C===_.$$originalDirective))),q.$$addScopeClass(h,!0),l.$$isolateBindings=_.$$isolateBindings,(r=oe(t,i,l,l.$$isolateBindings,_)).removeWatches&&l.$on("$destroy",r.removeWatches)),d){r=x[n],a=d[n];var p=r.$$bindings.bindToController;if(ne){a.bindingInfo=p?oe(c,i,a.instance,p,r):{};var f=a();f!==a.instance&&(a.instance=f,h.data("$"+r.name+"Controller",f),a.bindingInfo.removeWatches&&a.bindingInfo.removeWatches(),a.bindingInfo=oe(c,i,a.instance,p,r))}else a.instance=a(),h.data("$"+r.name+"Controller",a.instance),a.bindingInfo=oe(c,i,a.instance,p,r)}for(se(x,function(e,t){var o=e.require;e.bindToController&&!Zo(o)&&pe(o)&&ae(d[t].instance,K(t,o,h,d))}),se(d,function(e){var t=e.instance;if(ge(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){z(e)}if(ge(t.$onInit))try{t.$onInit()}catch(e){z(e)}ge(t.$doCheck)&&(c.$watch(function(){t.$doCheck()}),t.$doCheck()),ge(t.$onDestroy)&&c.$on("$destroy",function(){t.$onDestroy()})}),n=0,r=b.length;n<r;n++)te(a=b[n],a.isolateScope?l:t,h,i,a.require&&K(a.directiveName,a.require,h,d),u);var g=t;for(_&&(_.template||null===_.templateUrl)&&(g=l),e&&e(g,o.childNodes,void 0,s),n=w.length-1;0<=n;n--)te(a=w[n],a.isolateScope?l:t,h,i,a.require&&K(a.directiveName,a.require,h,d),u);se(d,function(e){ge((e=e.instance).$postLink)&&e.$postLink()})}n=n||{};for(var a,l,c,d,u,h=-Number.MAX_VALUE,y=n.newScopeDirective,x=n.controllerDirectives,_=n.newIsolateScopeDirective,C=n.templateDirective,p=n.nonTlbTranscludeDirective,f=!1,g=!1,A=n.hasElementTranscludeDirective,k=v.$$element=Ro(m),E=t,$=!1,S=!1,j=0,F=e.length;j<F;j++){var D=(a=e[j]).$$start,L=a.$$end;if(D&&(k=W(m,D,L)),c=void 0,h>a.priority)break;if((u=a.scope)&&(a.templateUrl||(pe(u)?(J("new/isolated scope",_||y,a,k),_=a):J("new/isolated scope",_,a,k)),y=y||a),l=a.name,!$&&(a.replace&&(a.templateUrl||a.template)||a.transclude&&!a.$$tlb)){for(u=j+1;$=e[u++];)if($.transclude&&!$.$$tlb||$.replace&&($.templateUrl||$.template)){S=!0;break}$=!0}if(!a.templateUrl&&a.controller&&(x=x||ke(),J("'"+l+"' controller",x[l],a,k),x[l]=a),u=a.transclude)if(f=!0,a.$$tlb||(J("transclusion",p,a,k),p=a),"element"===u)A=!0,h=a.priority,c=k,k=v.$$element=Ro(q.$$createComment(l,v[l])),m=k[0],Q(o,Vo.call(c,0),m),c[0].$$parentNode=c[0].parentNode,E=U(S,c,t,h,i&&i.name,{nonTlbTranscludeDirective:p});else{var M=ke();if(pe(u)){c=[];var T=ke(),B=ke();for(var R in se(u,function(e,t){var o="?"===e.charAt(0);e=o?e.substring(1):e,T[e]=t,M[t]=null,B[t]=o}),se(k.contents(),function(e){var t=T[qe(be(e))];t?(B[t]=!0,M[t]=M[t]||[],M[t].push(e)):c.push(e)}),se(B,function(e,t){if(!e)throw Pi("reqslot",t)}),M)M[R]&&(M[R]=U(S,M[R],t))}else c=Ro(Ee(m)).contents();k.empty(),(E=U(S,c,t,void 0,void 0,{needsNewScope:a.$$isolateScope||a.$$newScope})).$$slots=M}if(a.template)if(g=!0,J("template",C,a,k),u=ge((C=a).template)?a.template(k,v):a.template,u=ie(u),a.replace){if(i=a,c=bi.test(u)?We(Z(a.templateNamespace,ei(u))):[],m=c[0],1!==c.length||1!==m.nodeType)throw Pi("tplrt",l,"");Q(o,k,m),u=V(m,[],F={$attr:{}});var I=e.splice(j+1,e.length-(j+1));(_||y)&&G(u,_,y),e=e.concat(u).concat(I),Y(v,F),F=e.length}else k.html(u);if(a.templateUrl)g=!0,J("template",C,a,k),(C=a).replace&&(i=a),s=X(e.splice(j,e.length-j),k,v,o,f&&E,b,w,{controllerDirectives:x,newScopeDirective:y!==a&&y,newIsolateScopeDirective:_,templateDirective:C,nonTlbTranscludeDirective:p}),F=e.length;else if(a.compile)try{d=a.compile(k,v,E);var O=a.$$originalDirective||a;ge(d)?r(null,xe(O,d),D,L):d&&r(xe(O,d.pre),xe(O,d.post),D,L)}catch(e){z(e,_e(k))}a.terminal&&(s.terminal=!0,h=Math.max(h,a.priority))}return s.scope=y&&!0===y.scope,s.transcludeOnThisElement=f,s.templateOnThisElement=g,s.transclude=E,n.hasElementTranscludeDirective=A,s}function K(o,e,i,n){var r;if(fe(e)){var t=e.match(b);e=e.substring(t[0].length);var s=t[1]||t[3];t="?"===t[2];if("^^"===s?i=i.parent():r=(r=n&&n[e])&&r.instance,!r){var a="$"+e+"Controller";r=s?i.inheritedData(a):i.data(a)}if(!r&&!t)throw Pi("ctreq",e,o)}else if(Zo(e))for(r=[],s=0,t=e.length;s<t;s++)r[s]=K(o,e[s],i,n);else pe(e)&&(r={},se(e,function(e,t){r[t]=K(o,e,i,n)}));return r||null}function G(e,t,o){for(var i=0,n=e.length;i<n;i++)e[i]=le(e[i],{$$isolateScope:t,$$newScope:o})}function y(e,t,o,i,n,r,s){if(t===n)return null;var a=null;if(m.hasOwnProperty(t))for(var l=0,c=(n=p.get(t+"Directive")).length;l<c;l++)if(t=n[l],(ue(i)||i>t.priority)&&-1!==t.restrict.indexOf(o)){if(r&&(t=le(t,{$$start:r,$$end:s})),!t.$$bindings){var d=a=t,u=t.name,h={isolateScope:null,bindToController:null};if(pe(d.scope)&&(!0===d.bindToController?(h.bindToController=g(d.scope,u,!0),h.isolateScope={}):h.isolateScope=g(d.scope,u,!1)),pe(d.bindToController)&&(h.bindToController=g(d.bindToController,u,!0)),h.bindToController&&!d.controller)throw Pi("noctrl",u);pe((a=a.$$bindings=h).isolateScope)&&(t.$$isolateBindings=a.isolateScope)}e.push(t),a=t}return a}function x(e){if(m.hasOwnProperty(e))for(var t=p.get(e+"Directive"),o=0,i=t.length;o<i;o++)if((e=t[o]).multiElement)return!0;return!1}function Y(o,i){var n=i.$attr,r=o.$attr;se(o,function(e,t){"$"!==t.charAt(0)&&(i[t]&&i[t]!==e&&(e=e.length?e+("style"===t?";":" ")+i[t]:i[t]),o.$set(t,e,!0,n[t]))}),se(i,function(e,t){o.hasOwnProperty(t)||"$"===t.charAt(0)||(o[t]=e,"class"!==t&&"style"!==t&&(r[t]=n[t]))})}function X(a,l,c,d,u,h,p,f){var g,m,v=[],b=l[0],w=a.shift(),y=le(w,{templateUrl:null,transclude:null,replace:null,$$originalDirective:w}),x=ge(w.templateUrl)?w.templateUrl(l,c):w.templateUrl,_=w.templateNamespace;return l.empty(),e(x).then(function(e){var o,t;if(e=ie(e),w.replace){if(e=bi.test(e)?We(Z(_,ei(e))):[],o=e[0],1!==e.length||1!==o.nodeType)throw Pi("tplrt",w.name,x);e={$attr:{}},Q(d,l,o);var i=V(o,[],e);pe(w.scope)&&G(i,!0),a=i.concat(a),Y(c,e)}else o=b,l.html(e);for(a.unshift(y),g=E(a,o,c,u,l,w,h,p,f),se(d,function(e,t){e===o&&(d[t]=l[0])}),m=A(l[0].childNodes,u);v.length;){e=v.shift(),t=v.shift();var n=v.shift(),r=v.shift();i=l[0];if(!e.$$destroyed){if(t!==b){var s=t.className;f.hasElementTranscludeDirective&&w.replace||(i=Ee(o)),Q(n,Ro(t),i),C(Ro(i),s)}t=g.transcludeOnThisElement?k(e,g.transclude,r):r,g(m,e,i,d,t)}}v=null}).catch(function(e){e instanceof Error&&z(e)}).catch(ce),function(e,t,o,i,n){e=n,t.$$destroyed||(v?v.push(t,o,i,e):(g.transcludeOnThisElement&&(e=k(t,g.transclude,n)),g(m,t,o,i,e)))}}function _(e,t){var o=t.priority-e.priority;return 0!==o?o:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function J(e,t,o,i){function n(e){return e?" (module: "+e+")":""}if(t)throw Pi("multidir",t.name,n(t.$$moduleName),o.name,n(o.$$moduleName),e,_e(i))}function Z(e,t){switch(e=Po(e||"html")){case"svg":case"math":var o=re.document.createElement("div");return o.innerHTML="<"+e+">"+t+"</"+e+">",o.childNodes[0].childNodes;default:return t}}function $(e,t,n,r,o){var s=function(e,t){if("srcdoc"===t)return i.HTML;var o=be(e);if("src"===t||"ngSrc"===t){if(-1===["img","video","audio","source","track"].indexOf(o))return i.RESOURCE_URL}else if("xlinkHref"===t||"form"===o&&"action"===t||"link"===o&&"href"===t)return i.RESOURCE_URL}(e,r),a=c[r]||o,l=w(n,!o,s,a);if(l){if("multiple"===r&&"select"===be(e))throw Pi("selmulti",_e(e));if(T.test(r))throw Pi("nodomevents");t.push({priority:100,compile:function(){return{pre:function(e,t,o){t=o.$$observers||(o.$$observers=ke());var i=o[r];i!==n&&(l=i&&w(i,!0,s,a),n=i),l&&(o[r]=l(e),(t[r]||(t[r]=[])).$$inter=!0,(o.$$observers&&o.$$observers[r].$$scope||e).$watch(l,function(e,t){"class"===r&&e!==t?o.$updateClass(e,t):o.$set(r,e)}))}}}})}}function Q(e,t,o){var i,n,r=t[0],s=t.length,a=r.parentNode;if(e)for(i=0,n=e.length;i<n;i++)if(e[i]===r){e[i++]=o,n=i+s-1;for(var l=e.length;i<l;i++,n++)n<l?e[i]=e[n]:delete e[i];e.length-=s-1,e.context===r&&(e.context=o);break}for(a&&a.replaceChild(o,r),e=re.document.createDocumentFragment(),i=0;i<s;i++)e.appendChild(t[i]);for(Ro.hasData(r)&&(Ro.data(o,Ro.data(r)),Ro(r).off("$destroy")),Ro.cleanData(e.querySelectorAll("*")),i=1;i<s;i++)delete t[i];t[0]=o,t.length=1}function ee(e,t){return ae(function(){return e.apply(null,arguments)},e,t)}function te(e,t,o,i,n,r){try{e(t,o,i,n,r)}catch(e){z(e,_e(o))}}function oe(d,u,h,e,p){function f(e,t,o){!ge(h.$onChanges)||t===o||t!=t&&o!=o||(a||(d.$$postDigest(s),a=[]),n||(n={},a.push(i)),n[e]&&(o=n[e].previousValue),n[e]=new Pe(o,t))}function i(){h.$onChanges(n),n=void 0}var n,g=[],m={};return se(e,function(e,o){var t,i,n,r,s=e.attrName,a=e.optional;switch(e.mode){case"@":a||No.call(u,s)||(h[o]=u[s]=void 0),a=u.$observe(s,function(e){(fe(e)||ve(e))&&(f(o,e,h[o]),h[o]=e)}),u.$$observers[s].$$scope=d,fe(t=u[s])?h[o]=w(t)(d):ve(t)&&(h[o]=t),m[o]=new Pe(qi,h[o]),g.push(a);break;case"=":if(!No.call(u,s)){if(a)break;u[s]=void 0}if(a&&!u[s])break;i=v(u[s]),r=i.literal?ye:function(e,t){return e===t||e!=e&&t!=t},n=i.assign||function(){throw t=h[o]=i(d),Pi("nonassign",u[s],s,p.name)},t=h[o]=i(d),(a=function(e){return r(e,h[o])||(r(e,t)?n(d,e=h[o]):h[o]=e),t=e}).$stateful=!0,a=e.collection?d.$watchCollection(u[s],a):d.$watch(v(u[s],a),null,i.literal),g.push(a);break;case"<":if(!No.call(u,s)){if(a)break;u[s]=void 0}if(a&&!u[s])break;var l=(i=v(u[s])).literal,c=h[o]=i(d);m[o]=new Pe(qi,h[o]),a=d.$watch(i,function(e,t){if(t===e){if(t===c||l&&ye(t,c))return;t=c}f(o,e,t),h[o]=e},l),g.push(a);break;case"&":if((i=u.hasOwnProperty(s)?v(u[s]):ce)===ce&&a)break;h[o]=function(e){return i(d,e)}}}),{initialChanges:m,removeWatches:g.length&&function(){for(var e=0,t=g.length;e<t;++e)g[e]()}}}var a,u=/^\w/,h=re.document.createElement("div"),S=I,j=O,t=R;P.prototype={$normalize:qe,$addClass:function(e){e&&0<e.length&&n.addClass(this.$$element,e)},$removeClass:function(e){e&&0<e.length&&n.removeClass(this.$$element,e)},$updateClass:function(e,t){var o=Ve(e,t);o&&o.length&&n.addClass(this.$$element,o),(o=Ve(t,e))&&o.length&&n.removeClass(this.$$element,o)},$set:function(e,t,o,i){var n=$e(this.$$element[0],e),r=Ei[e],s=e;if(n?(this.$$element.prop(e,t),i=n):r&&(this[r]=t,s=r),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=Ce(e,"-")),"a"===(n=be(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===n&&"src"===e)this[e]=t=d(t,"src"===e);else if("img"===n&&"srcset"===e&&he(t)){n="",r=ei(t);for(var a=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,l=(a=/\s/.test(r)?a:/(,)/,r=r.split(a),a=Math.floor(r.length/2),0);l<a;l++){var c=2*l;n=(n=n+d(ei(r[c]),!0))+" "+ei(r[c+1])}r=ei(r[2*l]).split(/\s/),n+=d(ei(r[0]),!0),2===r.length&&(n+=" "+ei(r[1])),this[e]=t=n}!1!==o&&(null===t||ue(t)?this.$$element.removeAttr(i):u.test(i)?this.$$element.attr(i,t):function(e,t,o){h.innerHTML="<span "+t+">";var i=(t=h.firstChild.attributes)[0];t.removeNamedItem(i.name),i.value=o,e.attributes.setNamedItem(i)}(this.$$element[0],i,t)),(e=this.$$observers)&&se(e[s],function(e){try{e(t)}catch(e){z(e)}})},$observe:function(e,t){var o=this,i=o.$$observers||(o.$$observers=ke()),n=i[e]||(i[e]=[]);return n.push(t),r.$evalAsync(function(){n.$$inter||!o.hasOwnProperty(e)||ue(o[e])||t(o[e])}),function(){we(n,t)}}};var o=w.startSymbol(),l=w.endSymbol(),ie="{{"===o&&"}}"===l?de:function(e){return e.replace(/\{\{/g,o).replace(/}}/g,l)},F=/^ngAttr[A-Z]/,D=/^(.+)Start$/;return q.$$addBindingInfo=B?function(e,t){var o=e.data("$binding")||[];Zo(t)?o=o.concat(t):o.push(t),e.data("$binding",o)}:ce,q.$$addBindingClass=B?function(e){C(e,"ng-binding")}:ce,q.$$addScopeInfo=B?function(e,t,o,i){e.data(o?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:ce,q.$$addScopeClass=B?function(e,t){C(e,t?"ng-isolate-scope":"ng-scope")}:ce,q.$$createComment=function(e,t){var o="";return B&&(o=" "+(e||"")+": ",t&&(o+=t+" ")),re.document.createComment(o)},q}]}function Pe(e,t){this.previousValue=e,this.currentValue=t}function qe(e){return e.replace(Vi,"").replace(Wi,I)}function Ve(e,t){var o="",i=e.split(/\s+/),n=t.split(/\s+/),r=0;e:for(;r<i.length;r++){for(var s=i[r],a=0;a<n.length;a++)if(s===n[a])continue e;o+=(0<o.length?" ":"")+s}return o}function We(e){var t=(e=Ro(e)).length;if(t<=1)return e;for(;t--;){var o=e[t];(8===o.nodeType||o.nodeType===ci&&""===o.nodeValue.trim())&&Wo.call(e,t,1)}return e}function He(){var d={},u=!1;this.has=function(e){return d.hasOwnProperty(e)},this.register=function(e,t){z(e,"controller"),pe(e)?ae(d,e):d[e]=t},this.allowGlobals=function(){u=!0},this.$get=["$injector","$window",function(a,l){function c(e,t,o,i){if(!e||!pe(e.$scope))throw A("$controller")("noscp",i,t);e.$scope[t]=o}return function(t,o,e,i){var n,r,s;if(e=!0===e,i&&fe(i)&&(s=i),fe(t)){if(!(i=t.match(Ui)))throw Hi("ctrlfmt",t);if(r=i[1],s=s||i[3],!(t=d.hasOwnProperty(r)?d[r]:L(o.$scope,r,!0)||(u?L(l,r,!0):void 0)))throw Hi("ctrlreg",r);D(t,r,!0)}return e?(e=(Zo(t)?t[t.length-1]:t).prototype,n=Object.create(e||null),s&&c(o,s,n,r||t.name),ae(function(){var e=a.invoke(t,n,o,r);return e!==n&&(pe(e)||ge(e))&&(n=e,s&&c(o,s,n,r||t.name)),n},{instance:n,identifier:s})):(n=a.instantiate(t,o,r),s&&c(o,s,n,r||t.name),n)}}]}function Ue(){this.$get=["$window",function(e){return Ro(e.document)}]}function Ke(){this.$get=["$document","$rootScope",function(e,t){function o(){n=i.hidden}var i=e[0],n=i&&i.hidden;return e.on("visibilitychange",o),t.$on("$destroy",function(){e.off("visibilitychange",o)}),function(){return n}}]}function Ge(){this.$get=["$log",function(o){return function(e,t){o.error.apply(o,arguments)}}]}function Ye(e){return pe(e)?b(e)?e.toISOString():o(e):e}function Xe(){this.$get=function(){return function(e){if(!e)return"";var o=[];return r(e,function(e,t){null===e||ue(e)||(Zo(e)?se(e,function(e){o.push(_(t)+"="+_(Ye(e)))}):o.push(_(t)+"="+_(Ye(e))))}),o.join("&")}}}function Je(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function o(e,i,n){null===e||ue(e)||(Zo(e)?se(e,function(e,t){o(e,i+"["+(pe(e)?t:"")+"]")}):pe(e)&&!b(e)?r(e,function(e,t){o(e,i+(n?"":"[")+t+(n?"":"]"))}):t.push(_(i)+"="+_(Ye(e))))}(e,"",!0),t.join("&")}}}function Ze(e,t){if(fe(e)){var o=e.replace(Zi,"").trim();if(o){var i=t("Content-Type");(i=i&&0===i.indexOf(Gi))||(i=(i=o.match(Xi))&&Ji[i[0]].test(o)),i&&(e=n(o))}}return e}function Qe(e){var o,n=ke();return fe(e)?se(e.split("\n"),function(e){o=e.indexOf(":");var t=Po(ei(e.substr(0,o)));e=ei(e.substr(o+1)),t&&(n[t]=n[t]?n[t]+", "+e:e)}):pe(e)&&se(e,function(e,t){var o=Po(t),i=ei(e);o&&(n[o]=n[o]?n[o]+", "+i:i)}),n}function et(t){var o;return function(e){return o||(o=Qe(t)),e?(void 0===(e=o[Po(e)])&&(e=null),e):o}}function tt(t,o,i,e){return ge(e)?e(t,o,i):(se(e,function(e){t=e(t,o,i)}),t)}function ot(){var _=this.defaults={transformResponse:[Ze],transformRequest:[function(e){return pe(e)&&"[object File]"!==Uo.call(e)&&"[object Blob]"!==Uo.call(e)&&"[object FormData]"!==Uo.call(e)?o(e):e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:B(Yi),put:B(Yi),patch:B(Yi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},C=!1;this.useApplyAsync=function(e){return he(e)?(C=!!e,this):C};var t=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(s,g,m,e,v,b,a,w){function y(e){function t(e,t){for(var o=0,i=t.length;o<i;){var n=t[o++],r=t[o++];e=e.then(n,r)}return t.length=0,e}function i(e){var t=ae({},e);return t.data=tt(e.data,e.headers,e.status,o.transformResponse),200<=(e=e.status)&&e<300?t:b.reject(t)}if(!pe(e))throw A("$http")("badreq",e);if(!fe(w.valueOf(e.url)))throw A("$http")("badreq",e.url);var o=ae({method:"get",transformRequest:_.transformRequest,transformResponse:_.transformResponse,paramSerializer:_.paramSerializer,jsonpCallbackParam:_.jsonpCallbackParam},e);o.headers=function(e){var t,o,i,n,r,s,a,l=_.headers,c=ae({},e.headers);l=ae({},l.common,l[Po(e.method)]);e:for(t in l){for(i in o=Po(t),c)if(Po(i)===o)continue e;c[t]=l[t]}return n=c,r=B(e),a={},se(n,function(e,t){ge(e)?null!=(s=e(r))&&(a[t]=s):a[t]=e}),a}(e),o.method=qo(o.method),o.paramSerializer=fe(o.paramSerializer)?a.get(o.paramSerializer):o.paramSerializer,s.$$incOutstandingRequestCount();var n=[],r=[];return e=b.resolve(o),se(l,function(e){(e.request||e.requestError)&&n.unshift(e.request,e.requestError),(e.response||e.responseError)&&r.push(e.response,e.responseError)}),(e=t(e=(e=t(e,n)).then(function(e){var o=e.headers,t=tt(e.data,et(o),void 0,e.transformRequest);return ue(t)&&se(o,function(e,t){"content-type"===Po(t)&&delete o[t]}),ue(e.withCredentials)&&!ue(_.withCredentials)&&(e.withCredentials=_.withCredentials),function(n,e){function t(e){if(e){var t={};return se(e,function(o,e){t[e]=function(e){function t(){o(e)}C?v.$applyAsync(t):v.$$phase?t():v.$apply(t)}}),t}}function r(e,t,o,i){(200<=(t=-1<=t?t:0)&&t<300?l.resolve:l.reject)({data:e,status:t,headers:et(o),config:n,statusText:i})}function o(e){r(e.data,e.status,B(e.headers()),e.statusText)}function i(){var e=y.pendingRequests.indexOf(n);-1!==e&&y.pendingRequests.splice(e,1)}var s,a,l=b.defer(),c=l.promise,d=n.headers,u="jsonp"===Po(n.method),h=n.url;return u?h=w.getTrustedResourceUrl(h):fe(h)||(h=w.valueOf(h)),p=h,f=n.paramSerializer(n.params),0<f.length&&(p+=(-1===p.indexOf("?")?"?":"&")+f),h=p,u&&(h=function(e,t){if(/[&?][^=]+=JSON_CALLBACK/.test(e))throw Qi("badjsonp",e);if(new RegExp("[&?]"+t+"=").test(e))throw Qi("badjsonp",t,e);return e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}(h,n.jsonpCallbackParam)),y.pendingRequests.push(n),c.then(i,i),!n.cache&&!_.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(s=pe(n.cache)?n.cache:pe(_.cache)?_.cache:x),s&&(he(a=s.get(h))?a&&ge(a.then)?a.then(o,o):Zo(a)?r(a[1],a[0],B(a[2]),a[3]):r(a,200,{},"OK"):s.put(h,c)),ue(a)&&((a=Kt(n.url)?m()[n.xsrfCookieName||_.xsrfCookieName]:void 0)&&(d[n.xsrfHeaderName||_.xsrfHeaderName]=a),g(n.method,h,e,function(e,t,o,i){function n(){r(t,e,o,i)}s&&(200<=e&&e<300?s.put(h,[e,t,Qe(o),i]):s.remove(h)),C?v.$applyAsync(n):(n(),v.$$phase||v.$apply())},d,n.timeout,n.withCredentials,n.responseType,t(n.eventHandlers),t(n.uploadEventHandlers))),c;var p,f}(e,t).then(i,i)}),r)).finally(function(){s.$$completeOutstandingRequest(ce)})}var x=e("$http");_.paramSerializer=fe(_.paramSerializer)?a.get(_.paramSerializer):_.paramSerializer;var l=[];return se(t,function(e){l.unshift(fe(e)?a.get(e):a.invoke(e))}),y.pendingRequests=[],function(e){se(arguments,function(o){y[o]=function(e,t){return y(ae({},t||{},{method:o,url:e}))}})}("get","delete","head","jsonp"),function(e){se(arguments,function(i){y[i]=function(e,t,o){return y(ae({},o||{},{method:i,url:e,data:t}))}})}("post","put","patch"),y.defaults=_,y}]}function it(){this.$get=function(){return function(){return new re.XMLHttpRequest}}}function nt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,o,i){return m=i,v=(g=e).defer,b=t,w=o[0],function(e,n,t,r,o,i,s,a,l,c){function d(){h&&h(),p&&p.abort()}if(n=n||g.url(),"jsonp"===Po(e))var u=b.createCallback(n),h=function(e,i,n){e=e.replace("JSON_CALLBACK",i);var r=w.createElement("script"),s=null;return r.type="text/javascript",r.src=e,r.async=!0,s=function(e){r.removeEventListener("load",s),r.removeEventListener("error",s),w.body.removeChild(r),r=null;var t=-1,o="unknown";e&&("load"!==e.type||b.wasCalled(i)||(e={type:"error"}),o=e.type,t="error"===e.type?404:200),n&&n(t,o)},r.addEventListener("load",s),r.addEventListener("error",s),w.body.appendChild(r),s}(n,u,function(e,t){var o=200===e&&b.getResponse(u);he(f)&&v.cancel(f),h=p=null,r(e,o,"",t),b.removeCallback(u)});else{var p=m(e,n);if(p.open(e,n,!0),se(o,function(e,t){he(e)&&p.setRequestHeader(t,e)}),p.onload=function(){var e=p.statusText||"",t="response"in p?p.response:p.responseText,o=1223===p.status?204:p.status;0===o&&(o=t?200:"file"===Ut(n).protocol?404:0);var i=p.getAllResponseHeaders();he(f)&&v.cancel(f),h=p=null,r(o,t,i,e)},e=function(){he(f)&&v.cancel(f),h=p=null,r(-1,null,null,"")},p.onerror=e,p.onabort=e,p.ontimeout=e,se(l,function(e,t){p.addEventListener(t,e)}),se(c,function(e,t){p.upload.addEventListener(t,e)}),s&&(p.withCredentials=!0),a)try{p.responseType=a}catch(e){if("json"!==a)throw e}p.send(ue(t)?null:t)}if(0<i)var f=v(d,i);else i&&ge(i.then)&&i.then(d)};var g,m,v,b,w}]}function rt(){var x="{{",_="}}";this.startSymbol=function(e){return e?(x=e,this):x},this.endSymbol=function(e){return e?(_=e,this):_},this.$get=["$parse","$exceptionHandler","$sce",function(f,g,m){function e(e){return"\\\\\\"+e}function v(e){return e.replace(o,x).replace(i,_)}function b(e,t,o,i){var n=e.$watch(function(e){return n(),i(e)},t,o);return n}function t(n,e,o,i){function t(e){try{var t=e;return e=o?m.getTrusted(o,t):m.valueOf(t),i&&!he(e)?e:T(e)}catch(e){g(en.interr(n,e))}}var r;if(!n.length||-1===n.indexOf(x))return e||((r=C(e=v(n))).exp=n,r.expressions=[],r.$$watchDelegate=b),r;i=!!i;var s,a,l=0,c=[],d=[];r=n.length;for(var u=[],h=[];l<r;){if(-1===(s=n.indexOf(x,l))||-1===(a=n.indexOf(_,s+w))){l!==r&&u.push(v(n.substring(l)));break}l!==s&&u.push(v(n.substring(l,s))),l=n.substring(s+w,a),c.push(l),d.push(f(l,t)),l=a+y,h.push(u.length),u.push("")}if(o&&1<u.length&&en.throwNoconcat(n),!e||c.length){var p=function(e){for(var t=0,o=c.length;t<o;t++){if(i&&ue(e[t]))return;u[h[t]]=e[t]}return u.join("")};return ae(function(e){var t=0,o=c.length,i=Array(o);try{for(;t<o;t++)i[t]=d[t](e);return p(i)}catch(e){g(en.interr(n,e))}},{exp:n,expressions:c,$$watchDelegate:function(i,n){var r;return i.$watchGroup(d,function(e,t){var o=p(e);ge(n)&&n.call(this,o,e!==t?r:o,i),r=o})}})}}var w=x.length,y=_.length,o=new RegExp(x.replace(/./g,e),"g"),i=new RegExp(_.replace(/./g,e),"g");return t.startSymbol=function(){return x},t.endSymbol=function(){return _},t}]}function st(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(p,f,g,m,v){function e(e,t,o,i){function n(){r?e.apply(null,s):e(c)}var r=4<arguments.length,s=r?Vo.call(arguments,4):[],a=f.setInterval,l=f.clearInterval,c=0,d=he(i)&&!i,u=(d?m:g).defer(),h=u.promise;return o=he(o)?o:0,h.$$intervalId=a(function(){d?v.defer(n):p.$evalAsync(n),u.notify(c++),0<o&&o<=c&&(u.resolve(c),l(h.$$intervalId),delete b[h.$$intervalId]),d||p.$apply()},t),b[h.$$intervalId]=u,h}var b={};return e.cancel=function(e){return!!(e&&e.$$intervalId in b)&&(b[e.$$intervalId].promise.catch(ce),b[e.$$intervalId].reject("canceled"),f.clearInterval(e.$$intervalId),delete b[e.$$intervalId],!0)},e}]}function at(e){for(var t=(e=e.split("/")).length;t--;)e[t]=x(e[t]);return e.join("/")}function lt(e,t){var o=Ut(e);t.$$protocol=o.protocol,t.$$host=o.hostname,t.$$port=d(o.port)||nn[o.protocol]||null}function ct(e,t){if(sn.test(e))throw rn("badpath",e);var o="/"!==e.charAt(0);o&&(e="/"+e);var i=Ut(e);t.$$path=decodeURIComponent(o&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname),t.$$search=c(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function dt(e,t){return e.slice(0,t.length)===t}function ut(e,t){if(dt(t,e))return t.substr(e.length)}function ht(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function pt(e){return e.replace(/(#.+)|#$/,"$1")}function ft(n,r,s){this.$$html5=!0,s=s||"",lt(n,this),this.$$parse=function(e){var t=ut(r,e);if(!fe(t))throw rn("ipthprfx",e,r);ct(t,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=y(this.$$search),t=this.$$hash?"#"+x(this.$$hash):"";this.$$url=at(this.$$path)+(e?"?"+e:"")+t,this.$$absUrl=r+this.$$url.substr(1)},this.$$parseLinkUrl=function(e,t){return t&&"#"===t[0]?(this.hash(t.slice(1)),!0):(he(o=ut(n,e))?(i=o,i=s&&he(o=ut(s,o))?r+(ut("/",o)||o):n+i):he(o=ut(r,e))?i=r+o:r===e+"/"&&(i=r),i&&this.$$parse(i),!!i);var o,i}}function gt(n,r,s){lt(n,this),this.$$parse=function(e){var t;ue(o=ut(n,e)||ut(r,e))||"#"!==o.charAt(0)?this.$$html5?t=o:(t="",ue(o)&&(n=e,this.replace())):ue(t=ut(s,o))&&(t=o),ct(t,this),e=this.$$path;var o,i=/^\/[A-Z]:(\/.*)/;dt(t,o=n)&&(t=t.replace(o,"")),i.exec(t)||(e=(t=i.exec(e))?t[1]:e),this.$$path=e,this.$$compose()},this.$$compose=function(){var e=y(this.$$search),t=this.$$hash?"#"+x(this.$$hash):"";this.$$url=at(this.$$path)+(e?"?"+e:"")+t,this.$$absUrl=n+(this.$$url?s+this.$$url:"")},this.$$parseLinkUrl=function(e,t){return ht(n)===ht(e)&&(this.$$parse(e),!0)}}function mt(n,r,s){this.$$html5=!0,gt.apply(this,arguments),this.$$parseLinkUrl=function(e,t){return t&&"#"===t[0]?(this.hash(t.slice(1)),!0):(n===ht(e)?o=e:(i=ut(r,e))?o=n+s+i:r===e+"/"&&(o=r),o&&this.$$parse(o),!!o);var o,i},this.$$compose=function(){var e=y(this.$$search),t=this.$$hash?"#"+x(this.$$hash):"";this.$$url=at(this.$$path)+(e?"?"+e:"")+t,this.$$absUrl=n+s+this.$$url}}function vt(e){return function(){return this[e]}}function bt(t,o){return function(e){return ue(e)?this[t]:(this[t]=o(e),this.$$compose(),this)}}function wt(){var f="!",g={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return he(e)?(f=e,this):f},this.html5Mode=function(e){return ve(e)?(g.enabled=e,this):pe(e)?(ve(e.enabled)&&(g.enabled=e.enabled),ve(e.requireBase)&&(g.requireBase=e.requireBase),(ve(e.rewriteLinks)||fe(e.rewriteLinks))&&(g.rewriteLinks=e.rewriteLinks),this):g},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(s,a,t,n,r){function l(e,t,o){var i=d.url(),n=d.$$state;try{a.url(e,t,o),d.$$state=a.state()}catch(e){throw d.url(i),d.$$state=n,e}}function c(e,t){s.$broadcast("$locationChangeSuccess",d.absUrl(),e,d.$$state,t)}var d,e;e=a.baseHref();var o,i=a.url();if(g.enabled){if(!e&&g.requireBase)throw rn("nobase");o=i.substring(0,i.indexOf("/",i.indexOf("//")+2))+(e||"/"),e=t.history?ft:mt}else o=ht(i),e=gt;var u=o.substr(0,ht(o).lastIndexOf("/")+1);(d=new e(o,u,"#"+f)).$$parseLinkUrl(i,i),d.$$state=a.state();var h=/^\s*(javascript|mailto):/i;n.on("click",function(e){if((o=g.rewriteLinks)&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var t=Ro(e.target);"a"!==be(t[0]);)if(t[0]===n[0]||!(t=t.parent())[0])return;if(!fe(o)||!ue(t.attr(o))){var o=t.prop("href"),i=t.attr("href")||t.attr("xlink:href");pe(o)&&"[object SVGAnimatedString]"===o.toString()&&(o=Ut(o.animVal).href),h.test(o)||!o||t.attr("target")||e.isDefaultPrevented()||!d.$$parseLinkUrl(o,i)||(e.preventDefault(),d.absUrl()!==a.url()&&(s.$apply(),r.angular["ff-684208-preventDefault"]=!0))}}}),pt(d.absUrl())!==pt(i)&&a.url(d.absUrl(),!0);var p=!0;return a.onUrlChange(function(i,n){dt(i,u)?(s.$evalAsync(function(){var e,t=d.absUrl(),o=d.$$state;i=pt(i),d.$$parse(i),d.$$state=n,e=s.$broadcast("$locationChangeStart",i,t,n,o).defaultPrevented,d.absUrl()===i&&(e?(d.$$parse(t),l(t,!1,d.$$state=o)):(p=!1,c(t,o)))}),s.$$phase||s.$digest()):r.location.href=i}),s.$watch(function(){var o=pt(a.url()),e=pt(d.absUrl()),i=a.state(),n=d.$$replace,r=o!==e||d.$$html5&&t.history&&i!==d.$$state;(p||r)&&(p=!1,s.$evalAsync(function(){var e=d.absUrl(),t=s.$broadcast("$locationChangeStart",e,o,d.$$state,i).defaultPrevented;d.absUrl()===e&&(t?(d.$$parse(o),d.$$state=i):(r&&l(e,n,i===d.$$state?null:d.$$state),c(o,i)))})),d.$$replace=!1}),d}]}function yt(){var i=!0,n=this;this.debugEnabled=function(e){return he(e)?(i=e,this):i},this.$get=["$window",function(o){function e(e){var t=o.console||{},i=t[e]||t.log||ce;e=!1;try{e=!!i.apply}catch(e){}return e?function(){var o=[];return se(arguments,function(e){var t;o.push(((t=e)instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t))}),i.apply(t,o)}:function(e,t){i(e,null==t?"":t)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:(t=e("debug"),function(){i&&t.apply(n,arguments)})};var t}]}function xt(e){return e+""}function _t(e,t){return void 0!==e?e:t}function Ct(e,t){return void 0===e?t:void 0===t?e:e+t}function At(e,t){var o,i,n;switch(e.type){case pn.Program:o=!0,se(e.body,function(e){At(e.expression,t),o=o&&e.expression.constant}),e.constant=o;break;case pn.Literal:e.constant=!0,e.toWatch=[];break;case pn.UnaryExpression:At(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case pn.BinaryExpression:At(e.left,t),At(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case pn.LogicalExpression:At(e.left,t),At(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case pn.ConditionalExpression:At(e.test,t),At(e.alternate,t),At(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case pn.Identifier:e.constant=!1,e.toWatch=[e];break;case pn.MemberExpression:At(e.object,t),e.computed&&At(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case pn.CallExpression:o=n=!!e.filter&&!t(e.callee.name).$stateful,i=[],se(e.arguments,function(e){At(e,t),o=o&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=o,e.toWatch=n?i:[e];break;case pn.AssignmentExpression:At(e.left,t),At(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case pn.ArrayExpression:o=!0,i=[],se(e.elements,function(e){At(e,t),o=o&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=o,e.toWatch=i;break;case pn.ObjectExpression:o=!0,i=[],se(e.properties,function(e){At(e.value,t),o=o&&e.value.constant&&!e.computed,e.value.constant||i.push.apply(i,e.value.toWatch)}),e.constant=o,e.toWatch=i;break;case pn.ThisExpression:e.constant=!1,e.toWatch=[];break;case pn.LocalsExpression:e.constant=!1,e.toWatch=[]}}function kt(e){if(1===e.length){var t=(e=e[0].expression).toWatch;return 1!==t.length?t:t[0]!==e?t:void 0}}function Et(e){return e.type===pn.Identifier||e.type===pn.MemberExpression}function $t(e){if(1===e.body.length&&Et(e.body[0].expression))return{type:pn.AssignmentExpression,left:e.body[0].expression,right:{type:pn.NGValueParameter},operator:"="}}function St(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===pn.Literal||e.body[0].expression.type===pn.ArrayExpression||e.body[0].expression.type===pn.ObjectExpression)}function jt(e,t){this.astBuilder=e,this.$filter=t}function Ft(e,t){this.astBuilder=e,this.$filter=t}function Dt(e){return ge(e.valueOf)?e.valueOf():cn.call(e)}function Lt(){var o,i,p=ke(),n={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){n[e]=t},this.setIdentifierFns=function(e,t){return o=e,i=t,this},this.$get=["$filter",function(r){function h(e,t){return null==e||null==t?e===t:("object"!=typeof e||"object"!=typeof(e=Dt(e)))&&(e===t||e!=e&&t!=t)}function l(e,t,o,r,i){var s;if(1===(a=r.inputs).length){var n=h,a=a[0];return e.$watch(function(e){var t=a(e);return h(t,n)||(s=r(e,void 0,void 0,[t]),n=t&&Dt(t)),s},t,o,i)}for(var l=[],c=[],d=0,u=a.length;d<u;d++)l[d]=h,c[d]=null;return e.$watch(function(e){for(var t=!1,o=0,i=a.length;o<i;o++){var n=a[o](e);(t||(t=!h(n,l[o])))&&(c[o]=n,l[o]=n&&Dt(n))}return t&&(s=r(e,void 0,void 0,c)),s},t,o,i)}function a(e,i,t,o,n){function r(e,t,o){a=e,ge(i)&&i(e,t,o),he(e)&&o.$$postDigest(function(){he(a)&&s()})}var s,a;return s=o.inputs?l(e,r,t,o,n):e.$watch(function(e){return o(e)},r,t)}function c(e,i,t,o){function n(e){var t=!0;return se(e,function(e){he(e)||(t=!1)}),t}var r,s;return r=e.$watch(function(e){return o(e)},function(e,t,o){s=e,ge(i)&&i(e,t,o),n(e)&&o.$$postDigest(function(){n(s)&&r()})},t)}function s(e,t,o,i){var n=e.$watch(function(e){return n(),i(e)},t,o);return n}function d(n,r){if(!r)return n;var e=n.$$watchDelegate,s=!1;e=e!==c&&e!==a?function(e,t,o,i){return o=s&&i?i[0]:n(e,t,o,i),r(o,e,t)}:function(e,t,o,i){return o=n(e,t,o,i),e=r(o,e,t),he(o)?e:o},s=!n.inputs;return n.$$watchDelegate&&n.$$watchDelegate!==l?(e.$$watchDelegate=n.$$watchDelegate,e.inputs=n.inputs):r.$stateful||(e.$$watchDelegate=l,e.inputs=n.inputs?n.inputs:[n]),e}var u={csp:oi().noUnsafeEval,literals:k(n),isIdentifierStart:ge(o)&&o,isIdentifierContinue:ge(i)&&i};return function(e,t){var o,i,n;switch(typeof e){case"string":return n=e=e.trim(),(o=p[n])||(":"===e.charAt(0)&&":"===e.charAt(1)&&(i=!0,e=e.substring(2)),o=new hn(u),(o=new fn(o,r,u).parse(e)).constant?o.$$watchDelegate=s:i?o.$$watchDelegate=o.literal?c:a:o.inputs&&(o.$$watchDelegate=l),p[n]=o),d(o,t);case"function":return d(e,t);default:return d(ce,t)}}}]}function Mt(){var o=!0;this.$get=["$rootScope","$exceptionHandler",function(t,e){return Bt(function(e){t.$evalAsync(e)},e,o)}],this.errorOnUnhandledRejections=function(e){return he(e)?(o=e,this):o}}function Tt(){var o=!0;this.$get=["$browser","$exceptionHandler",function(t,e){return Bt(function(e){t.defer(e)},e,o)}],this.errorOnUnhandledRejections=function(e){return he(e)?(o=e,this):o}}function Bt(s,a,l){function o(){return new e}function e(){var t=this.promise=new r;this.resolve=function(e){u(t,e)},this.reject=function(e){h(t,e)},this.notify=function(e){f(t,e)}}function r(){this.$$state={status:0}}function c(){for(;!v&&b.length;){var e=b.shift();if(!e.pur){e.pur=!0;var t="Possibly unhandled rejection: "+("function"==typeof(t=e.value)?t.toString().replace(/ \{[\s\S]*$/,""):ue(t)?"undefined":"string"!=typeof t?R(t):t);e.value instanceof Error?a(e.value,t):a(t)}}}function d(r){!l||r.pending||2!==r.status||r.pur||(0===v&&0===b.length&&s(c),b.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++v,s(function(){var e,t,o;o=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var i=0,n=o.length;i<n;++i){r.pur=!0,t=o[i][0],e=o[i][r.status];try{ge(e)?u(t,e(r.value)):1===r.status?u(t,r.value):h(t,r.value)}catch(e){h(t,e)}}}finally{--v,l&&0===v&&s(c)}}))}function u(e,t){e.$$state.status||(t===e?p(e,m("qcycle",t)):function t(o,e){function i(e){s||(s=!0,t(o,e))}function n(e){s||(s=!0,p(o,e))}var r,s=!1;try{(pe(e)||ge(e))&&(r=e.then),ge(r)?(o.$$state.status=-1,r.call(e,function i(e){s||(s=!0,function t(o,e){function i(e){s||(s=!0,t(o,e))}function n(e){s||(s=!0,p(o,e))}var r,s=!1;try{(pe(e)||ge(e))&&(r=e.then),ge(r)?(o.$$state.status=-1,r.call(e,i,n,function(e){f(o,e)})):(o.$$state.value=e,o.$$state.status=1,d(o.$$state))}catch(e){n(e)}}(o,e))},n,function(e){f(o,e)})):(o.$$state.value=e,o.$$state.status=1,d(o.$$state))}catch(e){n(e)}}(e,t))}function h(e,t){e.$$state.status||p(e,t)}function p(e,t){e.$$state.value=t,e.$$state.status=2,d(e.$$state)}function f(e,n){var r=e.$$state.pending;e.$$state.status<=0&&r&&r.length&&s(function(){for(var e,t,o=0,i=r.length;o<i;o++){t=r[o][0],e=r[o][3];try{f(t,ge(e)?e(n):n)}catch(e){a(e)}}})}function n(e){var t=new r;return h(t,e),t}function i(e,t,o){var i=null;try{ge(o)&&(i=o())}catch(e){return n(e)}return i&&ge(i.then)?i.then(function(){return t(e)},n):t(e)}function g(e,t,o,i){var n=new r;return u(n,e),n.then(t,o,i)}function t(e){if(!ge(e))throw m("norslvr",e);var t=new r;return e(function(e){u(t,e)},function(e){h(t,e)}),t}var m=A("$q",TypeError),v=0,b=[];ae(r.prototype,{then:function(e,t,o){if(ue(e)&&ue(t)&&ue(o))return this;var i=new r;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,e,t,o]),0<this.$$state.status&&d(this.$$state),i},catch:function(e){return this.then(null,e)},finally:function(t,e){return this.then(function(e){return i(e,w,t)},function(e){return i(e,n,t)},e)}});var w=g;return t.prototype=r.prototype,t.defer=o,t.reject=n,t.when=g,t.resolve=w,t.all=function(e){var o=new r,i=0,n=Zo(e)?[]:{};return se(e,function(e,t){i++,g(e).then(function(e){n[t]=e,--i||u(o,n)},function(e){h(o,e)})}),0===i&&u(o,n),o},t.race=function(e){var t=o();return se(e,function(e){g(e).then(t.resolve,t.reject)}),t.promise},t}function Rt(){this.$get=["$window","$timeout",function(e,o){var i=e.requestAnimationFrame||e.webkitRequestAnimationFrame,n=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,t=!!i,r=t?function(e){var t=i(e);return function(){n(t)}}:function(e){var t=o(e,16.66,!1);return function(){o.cancel(t)}};return r.supported=t,r}]}function It(){var y=10,x=A("$rootScope"),_=null,C=null;this.digestTtl=function(e){return arguments.length&&(y=e),y},this.$get=["$exceptionHandler","$parse","$browser",function(d,f,u){function i(e){e.currentScope.$$destroyed=!0}function n(){this.$id=++Xo,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,(this.$root=this).$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function h(e){if(m.$$phase)throw x("inprog",m.$$phase);m.$$phase=e}function l(e,t){for(;e.$$watchersCount+=t,e=e.$parent;);}function r(e,t,o){for(;e.$$listenerCount[o]-=t,0===e.$$listenerCount[o]&&delete e.$$listenerCount[o],e=e.$parent;);}function p(){}function g(){for(;o.length;)try{o.shift()()}catch(e){d(e)}C=null}n.prototype={constructor:n,$new:function(e,t){var o;return t=t||this,e?(o=new n).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++Xo,this.$$ChildScope=null}return t.prototype=e,t}(this)),o=new this.$$ChildScope),o.$parent=t,o.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=o,t.$$childTail=o):t.$$childHead=t.$$childTail=o,(e||t!==this)&&o.$on("$destroy",i),o},$watch:function(e,t,o,i){var n=f(e);if(n.$$watchDelegate)return n.$$watchDelegate(this,t,o,n,e);var r=this,s=r.$$watchers,a={fn:t,last:p,get:n,exp:i||e,eq:!!o};return _=null,ge(t)||(a.fn=ce),s||((s=r.$$watchers=[]).$$digestWatchIndex=-1),s.unshift(a),s.$$digestWatchIndex++,l(this,1),function(){var e=we(s,a);0<=e&&(l(r,-1),e<s.$$digestWatchIndex&&s.$$digestWatchIndex--),_=null}},$watchGroup:function(e,i){function n(){c=!1,t?(t=!1,i(s,s,l)):i(s,r,l)}var r=Array(e.length),s=Array(e.length),a=[],l=this,c=!1,t=!0;if(!e.length){var o=!0;return l.$evalAsync(function(){o&&i(s,s,l)}),function(){o=!1}}return 1===e.length?this.$watch(e[0],function(e,t,o){s[0]=e,r[0]=t,i(s,e===t?s:r,o)}):(se(e,function(e,o){var t=l.$watch(e,function(e,t){s[o]=e,r[o]=t,c||(c=!0,l.$evalAsync(n))});a.push(t)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function o(e){var t,o,i;if(!ue(n=e)){if(pe(n))if(S(n))for(r!==d&&(p=(r=d).length=0,l++),e=n.length,p!==e&&(l++,r.length=p=e),t=0;t<e;t++)i=r[t],o=n[t],i!=i&&o!=o||i===o||(l++,r[t]=o);else{for(t in r!==u&&(r=u={},p=0,l++),e=0,n)No.call(n,t)&&(e++,o=n[t],i=r[t],t in r?i!=i&&o!=o||i===o||(l++,r[t]=o):(p++,r[t]=o,l++));if(e<p)for(t in l++,r)No.call(n,t)||(p--,delete r[t])}else r!==n&&(r=n,l++);return l}}o.$stateful=!0;var n,r,i,s=this,a=1<t.length,l=0,c=f(e,o),d=[],u={},h=!0,p=0;return this.$watch(c,function(){if(h?(h=!1,t(n,n,s)):t(n,i,s),a)if(pe(n))if(S(n)){i=Array(n.length);for(var e=0;e<n.length;e++)i[e]=n[e]}else for(e in i={},n)No.call(n,e)&&(i[e]=n[e]);else i=n})},$digest:function(){var e,t,o,i,n,r,s,a,l=y,c=[];h("$digest"),u.$$checkUrlChange(),this===m&&null!==C&&(u.defer.cancel(C),g()),_=null;do{for(n=!1,r=this,i=0;i<v.length;i++){try{(a=v[i]).scope.$eval(a.expression,a.locals)}catch(e){d(e)}_=null}v.length=0;e:do{if(i=r.$$watchers)for(i.$$digestWatchIndex=i.length;i.$$digestWatchIndex--;)try{if(e=i[i.$$digestWatchIndex])if((t=(0,e.get)(r))===(o=e.last)||(e.eq?ye(t,o):Jo(t)&&Jo(o))){if(e===_){n=!1;break e}}else n=!0,(_=e).last=e.eq?k(t,null):t,(0,e.fn)(t,o===p?t:o,r),l<5&&(c[s=4-l]||(c[s]=[]),c[s].push({msg:ge(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:t,oldVal:o}))}catch(e){d(e)}if(!(i=r.$$watchersCount&&r.$$childHead||r!==this&&r.$$nextSibling))for(;r!==this&&!(i=r.$$nextSibling);)r=r.$parent}while(r=i);if((n||v.length)&&!l--)throw m.$$phase=null,x("infdig",y,c)}while(n||v.length);for(m.$$phase=null;w<b.length;)try{b[w++]()}catch(e){d(e)}b.length=w=0},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===m&&u.$$applicationDestroyed(),l(this,-this.$$watchersCount),this.$$listenerCount)r(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=ce,this.$on=this.$watch=this.$watchGroup=function(){return ce},this.$$listeners={},this.$$nextSibling=null,function e(t){9===Bo&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling&&e(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return f(e)(this,t)},$evalAsync:function(e,t){m.$$phase||v.length||u.defer(function(){v.length&&m.$digest()}),v.push({scope:this,expression:f(e),locals:t})},$$postDigest:function(e){b.push(e)},$apply:function(e){try{h("$apply");try{return this.$eval(e)}finally{m.$$phase=null}}catch(e){d(e)}finally{try{m.$digest()}catch(e){throw d(e),e}}},$applyAsync:function(e){var t=this;e&&o.push(function(){t.$eval(e)}),e=f(e),null===C&&(C=u.defer(function(){m.$apply(g)}))},$on:function(t,o){var i=this.$$listeners[t];i||(this.$$listeners[t]=i=[]),i.push(o);for(var e=this;e.$$listenerCount[t]||(e.$$listenerCount[t]=0),e.$$listenerCount[t]++,e=e.$parent;);var n=this;return function(){var e=i.indexOf(o);-1!==e&&(i[e]=null,r(n,1,t))}},$emit:function(e,t){var o,i,n,r=[],s=this,a=!1,l={name:e,targetScope:s,stopPropagation:function(){a=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=E([l],arguments,1);do{for(o=s.$$listeners[e]||r,l.currentScope=s,i=0,n=o.length;i<n;i++)if(o[i])try{o[i].apply(null,c)}catch(e){d(e)}else o.splice(i,1),i--,n--;if(a)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,t){var o=this,i=this,n={name:e,targetScope:this,preventDefault:function(){n.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[e])return n;for(var r,s,a=E([n],arguments,1);o=i;){for(r=0,s=(i=(n.currentScope=o).$$listeners[e]||[]).length;r<s;r++)if(i[r])try{i[r].apply(null,a)}catch(e){d(e)}else i.splice(r,1),r--,s--;if(!(i=o.$$listenerCount[e]&&o.$$childHead||o!==this&&o.$$nextSibling))for(;o!==this&&!(i=o.$$nextSibling);)o=o.$parent}return n.currentScope=null,n}};var m=new n,v=m.$$asyncQueue=[],b=m.$$postDigestQueue=[],o=m.$$applyAsyncQueue=[],w=0;return m}]}function Ot(){var n=/^\s*(https?|ftp|mailto|tel|file):/,r=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return he(e)?(n=e,this):n},this.imgSrcSanitizationWhitelist=function(e){return he(e)?(r=e,this):r},this.$get=function(){return function(e,t){var o,i=t?r:n;return""===(o=Ut(e).href)||o.match(i)?e:"unsafe:"+o}}}function zt(e){var t=[];return he(e)&&se(e,function(e){t.push(function(e){if("self"===e)return e;if(fe(e)){if(-1<e.indexOf("***"))throw gn("iwcard",e);return e=ti(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(f(e))return new RegExp("^"+e.source+"$");throw gn("imatcher")}(e))}),t}function Nt(){this.SCE_CONTEXTS=mn;var c=["self"],d=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(c=zt(e)),c},this.resourceUrlBlacklist=function(e){return arguments.length&&(d=zt(e)),d},this.$get=["$injector",function(e){function s(e,t){return"self"===e?Kt(t):!!e.exec(t.href)}function t(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var a=function(e){throw gn("unsafe")};e.has("$sanitize")&&(a=e.get("$sanitize"));var o=t(),l={};return l[mn.HTML]=t(o),l[mn.CSS]=t(o),l[mn.URL]=t(o),l[mn.JS]=t(o),l[mn.RESOURCE_URL]=t(l[mn.URL]),{trustAs:function(e,t){var o=l.hasOwnProperty(e)?l[e]:null;if(!o)throw gn("icontext",e,t);if(null===t||ue(t)||""===t)return t;if("string"!=typeof t)throw gn("itype",e);return new o(t)},getTrusted:function(e,t){if(null===t||ue(t)||""===t)return t;if((n=l.hasOwnProperty(e)?l[e]:null)&&t instanceof n)return t.$$unwrapTrustedValue();if(e===mn.RESOURCE_URL){var o,i,n=Ut(t.toString()),r=!1;for(o=0,i=c.length;o<i;o++)if(s(c[o],n)){r=!0;break}if(r)for(o=0,i=d.length;o<i;o++)if(s(d[o],n)){r=!1;break}if(r)return t;throw gn("insecurl",t.toString())}if(e===mn.HTML)return a(t);throw gn("unsafe")},valueOf:function(e){return e instanceof o?e.$$unwrapTrustedValue():e}}}]}function Pt(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(i,e){if(t&&Bo<8)throw gn("iequirks");var n=B(mn);n.isEnabled=function(){return t},n.trustAs=e.trustAs,n.getTrusted=e.getTrusted,n.valueOf=e.valueOf,t||(n.trustAs=n.getTrusted=function(e,t){return t},n.valueOf=de),n.parseAs=function(t,e){var o=i(e);return o.literal&&o.constant?o:i(e,function(e){return n.getTrusted(t,e)})};var r=n.parseAs,s=n.getTrusted,a=n.trustAs;return se(mn,function(t,e){var o=Po(e);n[("parse_as_"+o).replace(vn,I)]=function(e){return r(t,e)},n[("get_trusted_"+o).replace(vn,I)]=function(e){return s(t,e)},n[("trust_as_"+o).replace(vn,I)]=function(e){return a(t,e)}}),n}]}function qt(){this.$get=["$window","$document",function(e,t){var o={},i=!(e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,n=d((/android (\d+)/.exec(Po((e.navigator||{}).userAgent))||[])[1]),r=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},a=s.body&&s.body.style,l=!1,c=!1;return a&&(l=!!("transition"in a||"webkitTransition"in a),c=!!("animation"in a||"webkitAnimation"in a)),{history:!(!i||n<4||r),hasEvent:function(e){if("input"===e&&Bo)return!1;if(ue(o[e])){var t=s.createElement("div");o[e]="on"+e in t}return o[e]},csp:oi(),transitions:l,animations:c,android:n}}]}function Vt(){var c;this.httpOptions=function(e){return e?(c=e,this):c},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(i,n,r,s,a){function l(t,o){l.totalPendingRequests++,fe(t)&&!ue(n.get(t))||(t=a.getTrustedResourceUrl(t));var e=r.defaults&&r.defaults.transformResponse;return Zo(e)?e=e.filter(function(e){return e!==Ze}):e===Ze&&(e=null),r.get(t,ae({cache:n,transformResponse:e},c)).finally(function(){l.totalPendingRequests--}).then(function(e){return n.put(t,e.data),e.data},function(e){return o||(e=bn("tpload",t,e.status,e.statusText),i(e)),s.reject(e)})}return l.totalPendingRequests=0,l}]}function Wt(){this.$get=["$rootScope","$browser","$location",function(t,o,i){return{findBindings:function(e,o,i){e=e.getElementsByClassName("ng-binding");var n=[];return se(e,function(t){var e=Yo.element(t).data("$binding");e&&se(e,function(e){i?new RegExp("(^|\\s)"+ti(o)+"(\\s|\\||$)").test(e)&&n.push(t):-1!==e.indexOf(o)&&n.push(t)})}),n},findModels:function(e,t,o){for(var i=["ng-","data-ng-","ng\\:"],n=0;n<i.length;++n){var r=e.querySelectorAll("["+i[n]+"model"+(o?"=":"*=")+'"'+t+'"]');if(r.length)return r}},getLocation:function(){return i.url()},setLocation:function(e){e!==i.url()&&(i.url(e),t.$digest())},whenStable:function(e){o.notifyWhenNoOutstandingRequests(e)}}}]}function Ht(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(l,c,d,u,h){function e(e,t,o){ge(e)||(o=t,t=e,e=ce);var i,n=Vo.call(arguments,3),r=he(o)&&!o,s=(r?u:d).defer(),a=s.promise;return i=c.defer(function(){try{s.resolve(e.apply(null,n))}catch(e){s.reject(e),h(e)}finally{delete p[a.$$timeoutId]}r||l.$apply()},t),a.$$timeoutId=i,p[i]=s,a}var p={};return e.cancel=function(e){return!!(e&&e.$$timeoutId in p)&&(p[e.$$timeoutId].promise.catch(ce),p[e.$$timeoutId].reject("canceled"),delete p[e.$$timeoutId],c.defer.cancel(e.$$timeoutId))},e}]}function Ut(e){return Bo&&(wn.setAttribute("href",e),e=wn.href),wn.setAttribute("href",e),{href:wn.href,protocol:wn.protocol?wn.protocol.replace(/:$/,""):"",host:wn.host,search:wn.search?wn.search.replace(/^\?/,""):"",hash:wn.hash?wn.hash.replace(/^#/,""):"",hostname:wn.hostname,port:wn.port,pathname:"/"===wn.pathname.charAt(0)?wn.pathname:"/"+wn.pathname}}function Kt(e){return(e=fe(e)?Ut(e):e).protocol===yn.protocol&&e.host===yn.host}function Gt(){this.$get=C(re)}function Yt(e){function r(t){try{return decodeURIComponent(t)}catch(e){return t}}var s=e[0]||{},a={},l="";return function(){var t,e,o,i,n;try{t=s.cookie||""}catch(e){t=""}if(t!==l)for(t=(l=t).split("; "),a={},o=0;o<t.length;o++)0<(i=(e=t[o]).indexOf("="))&&(n=r(e.substring(0,i)),ue(a[n])&&(a[n]=r(e.substring(i+1))));return a}}function Xt(){this.$get=Yt}function Jt(i){function n(e,t){if(pe(e)){var o={};return se(e,function(e,t){o[t]=n(t,e)}),o}return i.factory(e+"Filter",t)}this.register=n,this.$get=["$injector",function(t){return function(e){return t.get(e+"Filter")}}],n("currency",to),n("date",uo),n("filter",Zt),n("json",ho),n("limitTo",po),n("lowercase",$n),n("number",oo),n("orderBy",go),n("uppercase",Sn)}function Zt(){return function(e,t,o,i){if(!S(e)){if(null==e)return e;throw A("filter")("notarray",e)}var n,r,s,a,l,c;switch(i=i||"$",eo(t)){case"function":break;case"boolean":case"null":case"number":case"string":n=!0;case"object":s=o,a=i,l=n,c=pe(r=t)&&a in r,!0===s?s=ye:ge(s)||(s=function(e,t){return!(ue(e)||(null===e||null===t?e!==t:pe(t)||pe(e)&&!u(e)||(e=Po(""+e),t=Po(""+t),-1===e.indexOf(t))))}),t=function(e){return c&&!pe(e)?Qt(e,r[a],s,a,!1):Qt(e,r,s,a,l)};break;default:return e}return Array.prototype.filter.call(e,t)}}function Qt(e,t,o,i,n,r){var s=eo(e),a=eo(t);if("string"===a&&"!"===t.charAt(0))return!Qt(e,t.substring(1),o,i,n);if(Zo(e))return e.some(function(e){return Qt(e,t,o,i,n)});switch(s){case"object":var l;if(n){for(l in e)if("$"!==l.charAt(0)&&Qt(e[l],t,o,i,!0))return!0;return!r&&Qt(e,t,o,i,!1)}if("object"===a){for(l in t)if(!ge(r=t[l])&&!ue(r)&&!Qt((s=l===i)?e:e[l],r,o,i,s,s))return!1;return!0}return o(e,t);case"function":return!1;default:return o(e,t)}}function eo(e){return null===e?"null":typeof e}function to(e){var i=e.NUMBER_FORMATS;return function(e,t,o){return ue(t)&&(t=i.CURRENCY_SYM),ue(o)&&(o=i.PATTERNS[1].maxFrac),null==e?e:io(e,i.PATTERNS[1],i.GROUP_SEP,i.DECIMAL_SEP,o).replace(/\u00A4/g,t)}}function oo(e){var o=e.NUMBER_FORMATS;return function(e,t){return null==e?e:io(e,o.PATTERNS[0],o.GROUP_SEP,o.DECIMAL_SEP,t)}}function io(e,t,o,i,n){if(!fe(e)&&!p(e)||isNaN(e))return"";var r=!isFinite(e),s=!1,a=Math.abs(e)+"",l="";if(r)l="∞";else{for(function(e,t,o,i){var n=e.d,r=n.length-e.i;if(i=n[o=(t=ue(t)?Math.min(Math.max(o,r),i):+t)+e.i],0<o){n.splice(Math.max(e.i,o));for(var s=o;s<n.length;s++)n[s]=0}else for(r=Math.max(0,r),e.i=1,n.length=Math.max(1,o=t+1),n[0]=0,s=1;s<o;s++)n[s]=0;if(5<=i)if(o-1<0){for(i=0;o<i;i--)n.unshift(0),e.i++;n.unshift(1),e.i++}else n[o-1]++;for(;r<Math.max(0,t);r++)n.push(0);(t=n.reduceRight(function(e,t,o,i){return t+=e,i[o]=t%10,Math.floor(t/10)},0))&&(n.unshift(t),e.i++)}(s=function(e){var t,o,i,n,r,s=0;for(-1<(o=e.indexOf(_n))&&(e=e.replace(_n,"")),0<(i=e.search(/e/i))?(o<0&&(o=i),o+=+e.slice(i+1),e=e.substring(0,i)):o<0&&(o=e.length),i=0;e.charAt(i)===Cn;i++);if(i===(r=e.length))t=[0],o=1;else{for(r--;e.charAt(r)===Cn;)r--;for(o-=i,t=[],n=0;i<=r;i++,n++)t[n]=+e.charAt(i)}return xn<o&&(t=t.splice(0,xn-1),s=o-1,o=1),{d:t,e:s,i:o}}(a),n,t.minFrac,t.maxFrac),l=s.d,a=s.i,n=s.e,r=[],s=l.reduce(function(e,t){return e&&!t},!0);a<0;)l.unshift(0),a++;for(0<a?r=l.splice(a,l.length):(r=l,l=[0]),a=[],l.length>=t.lgSize&&a.unshift(l.splice(-t.lgSize,l.length).join(""));l.length>t.gSize;)a.unshift(l.splice(-t.gSize,l.length).join(""));l.length&&a.unshift(l.join("")),l=a.join(o),r.length&&(l+=i+r.join("")),n&&(l+="e+"+n)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function no(e,t,o,i){var n="";for((e<0||i&&e<=0)&&(i?e=1-e:(e=-e,n="-")),e=""+e;e.length<t;)e=Cn+e;return o&&(e=e.substr(e.length-t)),n+e}function ro(t,o,i,n,r){return i=i||0,function(e){return e=e["get"+t](),(0<i||-i<e)&&(e+=i),0===e&&-12===i&&(e=12),no(e,o,n,r)}}function so(i,n,r){return function(e,t){var o=e["get"+i]();return t[qo((r?"STANDALONE":"")+(n?"SHORT":"")+i)][o]}}function ao(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function lo(o){return function(e){var t=ao(e.getFullYear());return e=+new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))-+t,no(e=1+Math.round(e/6048e5),o)}}function co(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function uo(l){var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(t,e,o){var i,n,r="",s=[];if(e=e||"mediumDate",e=l.DATETIME_FORMATS[e]||e,fe(t)&&(t=En.test(t)?d(t):function(e){var t;if(t=e.match(c)){e=new Date(0);var o=0,i=0,n=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(o=d(t[9]+t[10]),i=d(t[9]+t[11])),n.call(e,d(t[1]),d(t[2])-1,d(t[3])),o=d(t[4]||0)-o,i=d(t[5]||0)-i,n=d(t[6]||0),t=Math.round(1e3*parseFloat("0."+(t[7]||0))),r.call(e,o,i,n,t)}return e}(t)),p(t)&&(t=new Date(t)),!b(t)||!isFinite(t.getTime()))return t;for(;e;)(n=kn.exec(e))?e=(s=E(s,n,1)).pop():(s.push(e),e=null);var a=t.getTimezoneOffset();return o&&(a=m(o,a),t=w(t,o,!0)),se(s,function(e){i=An[e],r+=i?i(t,l.DATETIME_FORMATS,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),r}}function ho(){return function(e,t){return ue(t)&&(t=2),o(e,t)}}function po(){return function(e,t,o){return t=1/0===Math.abs(Number(t))?Number(t):d(t),Jo(t)?e:(p(e)&&(e=e.toString()),S(e)?(o=(o=!o||isNaN(o)?0:d(o))<0?Math.max(0,e.length+o):o,0<=t?fo(e,o,o+t):0===o?fo(e,t,e.length):fo(e,Math.max(0,o+t),o)):e)}}function fo(e,t,o){return fe(e)?e.slice(t,o):Vo.call(e,t,o)}function go(n){function l(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function c(e,t){var o=0,i=e.type;if(i===(n=t.type)){var n=e.value,r=t.value;"string"===i?(n=n.toLowerCase(),r=r.toLowerCase()):"object"===i&&(pe(n)&&(n=e.index),pe(r)&&(r=t.index)),n!==r&&(o=n<r?-1:1)}else o=i<n?-1:1;return o}return function(e,t,o,i){if(null==e)return e;if(!S(e))throw A("orderBy")("notarray",e);Zo(t)||(t=[t]),0===t.length&&(t=["+"]);var r=t.map(function(e){var t=1,o=de;if(ge(e))o=e;else if(fe(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(t="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(o=n(e)).constant)){var i=o();o=function(e){return e[i]}}return{get:o,descending:t}}),s=o?-1:1,a=ge(i)?i:c;return(e=Array.prototype.map.call(e,function(o,i){return{value:o,tieBreaker:{value:i,type:"number",index:i},predicateValues:r.map(function(e){var t=e.get(o);return e=typeof t,null===t?(e="string",t="null"):"object"===e&&(ge(t.valueOf)&&l(t=t.valueOf())||u(t)&&l(t=t.toString())),{value:t,type:e,index:i}})}})).sort(function(e,t){for(var o=0,i=r.length;o<i;o++){var n=a(e.predicateValues[o],t.predicateValues[o]);if(n)return n*r[o].descending*s}return a(e.tieBreaker,t.tieBreaker)*s}),e.map(function(e){return e.value})}}function mo(e){return ge(e)&&(e={link:e}),e.restrict=e.restrict||"AC",C(e)}function vo(e,t,o,i,n){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=n(t.name||t.ngForm||"")(o),this.$dirty=!1,this.$valid=this.$pristine=!0,this.$submitted=this.$invalid=!1,this.$$parentForm=Dn,this.$$element=e,this.$$animate=i,bo(this)}function bo(e){e.$$classCache={},e.$$classCache[hr]=!(e.$$classCache[ur]=e.$$element.hasClass(ur))}function wo(e){function i(e,t,o){o&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!o&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function n(e,t,o){t=t?"-"+Ce(t,"-"):"",i(e,ur+t,!0===o),i(e,hr+t,!1===o)}var r=e.set,s=e.unset;e.clazz.prototype.$setValidity=function(e,t,o){ue(t)?(this.$pending||(this.$pending={}),r(this.$pending,e,o)):(this.$pending&&s(this.$pending,e,o),yo(this.$pending)&&(this.$pending=void 0)),ve(t)?t?(s(this.$error,e,o),r(this.$$success,e,o)):(r(this.$error,e,o),s(this.$$success,e,o)):(s(this.$error,e,o),s(this.$$success,e,o)),this.$pending?(i(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,n(this,"",null)):(i(this,"ng-pending",!1),this.$valid=yo(this.$error),this.$invalid=!this.$valid,n(this,"",this.$valid)),n(this,e,t=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,t,this)}}function yo(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function xo(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function _o(e,o,i,n,t,r){var s=Po(o[0].type);if(!t.android){var a=!1;o.on("compositionstart",function(){a=!0}),o.on("compositionend",function(){a=!1,c()})}var l,c=function(e){if(l&&(r.defer.cancel(l),l=null),!a){var t=o.val();e=e&&e.type,"password"===s||i.ngTrim&&"false"===i.ngTrim||(t=ei(t)),(n.$viewValue!==t||""===t&&n.$$hasNativeValidators)&&n.$setViewValue(t,e)}};if(t.hasEvent("input"))o.on("input",c);else{var d=function(e,t,o){l||(l=r.defer(function(){l=null,t&&t.value===o||c(e)}))};o.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||d(e,this,this.value)}),t.hasEvent("paste")&&o.on("paste cut",d)}o.on("change",c),Wn[s]&&n.$$hasNativeValidators&&s===i.type&&o.on("keydown wheel mousedown",function(e){if(!l){var t=this.validity,o=t.badInput,i=t.typeMismatch;l=r.defer(function(){l=null,t.badInput===o&&t.typeMismatch===i||c(e)})}}),n.$render=function(){var e=n.$isEmpty(n.$viewValue)?"":n.$viewValue;o.val()!==e&&o.val(e)}}function Co(n,r){return function(e,t){var o,i;if(b(e))return e;if(fe(e)){if('"'===e.charAt(0)&&'"'===e.charAt(e.length-1)&&(e=e.substring(1,e.length-1)),Bn.test(e))return new Date(e);if(n.lastIndex=0,o=n.exec(e))return o.shift(),i=t?{yyyy:t.getFullYear(),MM:t.getMonth()+1,dd:t.getDate(),HH:t.getHours(),mm:t.getMinutes(),ss:t.getSeconds(),sss:t.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},se(o,function(e,t){t<r.length&&(i[r[t]]=+e)}),new Date(i.yyyy,i.MM-1,i.dd,i.HH,i.mm,i.ss||0,1e3*i.sss||0)}return NaN}}function Ao(p,f,g,m){return function(e,t,o,i,n,r,s){function a(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function l(e){return he(e)&&!b(e)?g(e)||void 0:e}ko(e,t,o,i),_o(0,t,o,i,n,r);var c,d,u,h=i&&i.$options.getOption("timezone");(i.$$parserName=p,i.$parsers.push(function(e){return i.$isEmpty(e)?null:f.test(e)?(e=g(e,c),h&&(e=w(e,h)),e):void 0}),i.$formatters.push(function(e){if(e&&!b(e))throw gr("datefmt",e);return a(e)?((c=e)&&h&&(c=w(c,h,!0)),s("date")(e,m,h)):(c=null,"")}),he(o.min)||o.ngMin)&&(i.$validators.min=function(e){return!a(e)||ue(d)||g(e)>=d},o.$observe("min",function(e){d=l(e),i.$validate()}));(he(o.max)||o.ngMax)&&(i.$validators.max=function(e){return!a(e)||ue(u)||g(e)<=u},o.$observe("max",function(e){u=l(e),i.$validate()}))}}function ko(e,o,t,i){(i.$$hasNativeValidators=pe(o[0].validity))&&i.$parsers.push(function(e){var t=o.prop("validity")||{};return t.badInput||t.typeMismatch?void 0:e})}function Eo(t){t.$$parserName="number",t.$parsers.push(function(e){return t.$isEmpty(e)?null:On.test(e)?parseFloat(e):void 0}),t.$formatters.push(function(e){if(!t.$isEmpty(e)){if(!p(e))throw gr("numfmt",e);e=e.toString()}return e})}function $o(e){return he(e)&&!p(e)&&(e=parseFloat(e)),Jo(e)?void 0:e}function So(e){var t=e.toString(),o=t.indexOf(".");return-1===o?-1<e&&e<1&&(e=/e-(\d+)$/.exec(t))?Number(e[1]):0:t.length-o-1}function jo(e,t,o){if((0|(e=Number(e)))!==e||(0|t)!==t||(0|o)!==o){var i=Math.max(So(e),So(t),So(o));e*=i=Math.pow(10,i),t*=i,o*=i}return 0==(e-t)%o}function Fo(e,t,o,i,n){if(he(i)){if(!(e=e(i)).constant)throw gr("constexpr",o,i);return e(t)}return n}function Do(h,p){function f(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var o=[],i=0;e:for(;i<e.length;i++){for(var n=e[i],r=0;r<t.length;r++)if(n===t[r])continue e;o.push(n)}return o}function g(t){var e=t;return Zo(t)?e=t.map(g).join(" "):pe(t)&&(e=Object.keys(t).filter(function(e){return t[e]}).join(" ")),e}function m(t){var e=t;if(Zo(t))e=t.map(m);else if(pe(t)){var o=!1;e=Object.keys(t).filter(function(e){return e=t[e],!o&&ue(e)&&(o=!0),e});o&&e.push(void 0)}return e}var v;return h="ngClass"+h,["$parse",function(u){return{restrict:"AC",link:function(e,t,n){function r(e,t){var o=[];return se(e,function(e){(0<t||c[e])&&(c[e]=(c[e]||0)+t,c[e]===+(0<t)&&o.push(e))}),o.join(" ")}function o(e){if(d===p){var t=s&&s.split(" "),o=e&&e.split(" "),i=f(t,o);t=f(o,t),i=r(i,-1),t=r(t,1);n.$addClass(t),n.$removeClass(i)}s=e}var s,i=":"===(a=n[h].trim()).charAt(0)&&":"===a.charAt(1),a=u(a,i?m:g),l=i?function(e){(e=g(e))!==s&&o(e)}:o,c=t.data("$classCounts"),d=!0;c||(c=ke(),t.data("$classCounts",c)),"ngClass"!==h&&(v||(v=u("$index",function(e){return 1&e})),e.$watch(v,function(e){if(e===p){var t=r((t=s)&&t.split(" "),1);n.$addClass(t)}else t=r((t=s)&&t.split(" "),-1),n.$removeClass(t);d=e})),e.$watch(a,l,i)}}}]}function Lo(e,t,o,i,n,r,s,a,l){var c;this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=l(o.name||"",!1)(e),this.$$parentForm=Dn,this.$options=mr,this.$$parsedNgModel=n(o.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,this.$$scope=e,this.$$attr=o,this.$$element=i,this.$$animate=r,this.$$timeout=s,this.$$parse=n,this.$$q=a,this.$$exceptionHandler=t,bo(this),(c=this).$$scope.$watch(function(){var e=c.$$ngModelGet(c.$$scope);if(e!==c.$modelValue&&(c.$modelValue==c.$modelValue||e==e)){c.$modelValue=c.$$rawModelValue=e,c.$$parserValid=void 0;for(var t=c.$formatters,o=t.length,i=e;o--;)i=t[o](i);c.$viewValue!==i&&(c.$$updateEmptyClasses(i),c.$viewValue=c.$$lastCommittedViewValue=i,c.$render(),c.$$runValidators(c.$modelValue,c.$viewValue,ce))}return e})}function Mo(e){this.$$options=e}function To(o,e){se(e,function(e,t){he(o[t])||(o[t]=e)})}var Bo,Ro,Io,Oo,zo=/^\/(.+)\/([a-z]*)$/,No=Object.prototype.hasOwnProperty,Po=function(e){return fe(e)?e.toLowerCase():e},qo=function(e){return fe(e)?e.toUpperCase():e},Vo=[].slice,Wo=[].splice,Ho=[].push,Uo=Object.prototype.toString,Ko=Object.getPrototypeOf,Go=A("ng"),Yo=re.angular||(re.angular={}),Xo=0;Bo=re.document.documentMode;var Jo=Number.isNaN||function(e){return e!=e};ce.$inject=[],de.$inject=[];var Zo=Array.isArray,Qo=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,ei=function(e){return fe(e)?e.trim():e},ti=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},oi=function(){if(!he(oi.rules)){var e=re.document.querySelector("[ng-csp]")||re.document.querySelector("[data-ng-csp]");if(e){var t=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");oi.rules={noUnsafeEval:!t||-1!==t.indexOf("no-unsafe-eval"),noInlineStyle:!t||-1!==t.indexOf("no-inline-style")}}else{e=oi;try{new Function(""),t=!1}catch(e){t=!0}e.rules={noUnsafeEval:t,noInlineStyle:!1}}}return oi.rules},ii=function(){if(he(ii.name_))return ii.name_;var e,t,o,i,n=ri.length;for(t=0;t<n;++t)if(o=ri[t],e=re.document.querySelector("["+o.replace(":","\\:")+"jq]")){i=e.getAttribute(o+"jq");break}return ii.name_=i},ni=/:/g,ri=["ng-","data-ng-","ng:","x-ng-"],si=function(e){if(!e.currentScript)return!0;var t=e.currentScript.getAttribute("src"),o=e.createElement("a");if(o.href=t,e.location.origin===o.origin)return!0;switch(o.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}(re.document),ai=/[A-Z]/g,li=!1,ci=3,di={full:"1.6.1",major:1,minor:6,dot:1,codeName:"promise-rectification"};q.expando="ng339";var ui=q.cache={},hi=1;q._data=function(e){return this.cache[e[this.expando]]||{}};var pi=/-([a-z])/g,fi=/^-ms-/,gi={mouseleave:"mouseout",mouseenter:"mouseover"},mi=A("jqLite"),vi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,bi=/<|&#?\w+;/,wi=/<([\w:-]+)/,yi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,xi={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};xi.optgroup=xi.option,xi.tbody=xi.tfoot=xi.colgroup=xi.caption=xi.thead,xi.th=xi.td;var _i=re.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Ci=q.prototype={ready:oe,toString:function(){var t=[];return se(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(e){return Ro(0<=e?this[e]:this[this.length+e])},length:0,push:Ho,sort:[].sort,splice:[].splice},Ai={};se("multiple selected checked disabled readOnly required open".split(" "),function(e){Ai[Po(e)]=e});var ki={};se("input select option textarea button form details".split(" "),function(e){ki[e]=!0});var Ei={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};se({data:K,removeData:H,hasData:function(e){for(var t in ui[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,o=e.length;t<o;t++)H(e[t])}},function(e,t){q[t]=e}),se({data:K,inheritedData:Q,scope:function(e){return Ro.data(e,"$scope")||Q(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Ro.data(e,"$isolateScope")||Ro.data(e,"$isolateScopeNoTemplate")},controller:Z,injector:function(e){return Q(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:G,css:function(e,t,o){if(t=O(t.replace(fi,"ms-")),!he(o))return e.style[t];e.style[t]=o},attr:function(e,t,o){if((i=e.nodeType)!==ci&&2!==i&&8!==i&&e.getAttribute){var i=Po(t),n=Ai[i];if(!he(o))return e=e.getAttribute(t),n&&null!==e&&(e=i),null===e?void 0:e;null===o||!1===o&&n?e.removeAttribute(t):e.setAttribute(t,n?i:o)}},prop:function(e,t,o){if(!he(o))return e[t];e[t]=o},text:function(){function e(e,t){if(ue(t)){var o=e.nodeType;return 1===o||o===ci?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(ue(t)){if(e.multiple&&"select"===be(e)){var o=[];return se(e.options,function(e){e.selected&&o.push(e.value||e.text)}),o}return e.value}e.value=t},html:function(e,t){if(ue(t))return e.innerHTML;V(e,!0),e.innerHTML=t},empty:ee},function(s,e){q.prototype[e]=function(e,t){var o,i,n=this.length;if(s!==ee&&ue(2===s.length&&s!==G&&s!==Z?e:t)){if(pe(e)){for(o=0;o<n;o++)if(s===K)s(this[o],e);else for(i in e)s(this[o],i,e[i]);return this}for(n=ue(o=s.$dv)?Math.min(n,1):n,i=0;i<n;i++){var r=s(this[i],e,t);o=o?o+r:r}return o}for(o=0;o<n;o++)s(this[o],e,t);return this}}),se({removeData:H,on:function(n,e,r,t){if(he(t))throw mi("onargs");if(N(n)){var s=(t=U(n,!0)).events,a=t.handle;a||(a=t.handle=(c=s,(d=function(e,t){e.isDefaultPrevented=function(){return e.defaultPrevented};var o=c[t||e.type],i=o?o.length:0;if(i){if(ue(e.immediatePropagationStopped)){var n=e.stopImmediatePropagation;e.stopImmediatePropagation=function(){e.immediatePropagationStopped=!0,e.stopPropagation&&e.stopPropagation(),n&&n.call(e)}}e.isImmediatePropagationStopped=function(){return!0===e.immediatePropagationStopped};var r=o.specialHandlerWrapper||ie;1<i&&(o=B(o));for(var s=0;s<i;s++)e.isImmediatePropagationStopped()||r(l,e,o[s])}}).elem=l=n,d));for(var o=(t=0<=e.indexOf(" ")?e.split(" "):[e]).length,i=function(e,t,o){var i=s[e];i||((i=s[e]=[]).specialHandlerWrapper=t,"$destroy"===e||o||n.addEventListener(e,a)),i.push(r)};o--;)e=t[o],gi[e]?(i(gi[e],ne),i(e,void 0,!0)):i(e)}var l,c,d},off:W,one:function(t,o,i){(t=Ro(t)).on(o,function e(){t.off(o,i),t.off(o,e)}),t.on(o,i)},replaceWith:function(t,e){var o,i=t.parentNode;V(t),se(new q(e),function(e){o?i.insertBefore(e,o.nextSibling):i.replaceChild(e,t),o=e})},children:function(e){var t=[];return se(e.childNodes,function(e){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){if(1===(o=e.nodeType)||11===o)for(var o=0,i=(t=new q(t)).length;o<i;o++)e.appendChild(t[o])},prepend:function(t,e){if(1===t.nodeType){var o=t.firstChild;se(new q(e),function(e){t.insertBefore(e,o)})}},wrap:function(e,t){var o=Ro(t).eq(0).clone()[0],i=e.parentNode;i&&i.replaceChild(o,e),o.appendChild(e)},remove:te,detach:function(e){te(e,!0)},after:function(e,t){var o=e,i=e.parentNode;if(i)for(var n=0,r=(t=new q(t)).length;n<r;n++){var s=t[n];i.insertBefore(s,o.nextSibling),o=s}},addClass:X,removeClass:Y,toggleClass:function(o,e,i){e&&se(e.split(" "),function(e){var t=i;ue(t)&&(t=!G(o,e)),(t?X:Y)(o,e)})},parent:function(e){return(e=e.parentNode)&&11!==e.nodeType?e:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Ee,triggerHandler:function(t,e,o){var i,n,r=e.type||e,s=U(t);(s=(s=s&&s.events)&&s[r])&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:ce,type:r,target:t},e.type&&(i=ae(i,e)),e=B(s),n=o?[i].concat(o):[i],se(e,function(e){i.isImmediatePropagationStopped()||e.apply(t,n)}))}},function(s,e){q.prototype[e]=function(e,t,o){for(var i,n=0,r=this.length;n<r;n++)ue(i)?he(i=s(this[n],e,t,o))&&(i=Ro(i)):J(i,s(this[n],e,t,o));return he(i)?i:this}}),q.prototype.bind=q.prototype.on,q.prototype.unbind=q.prototype.off,Fe.prototype={put:function(e,t){this[je(e,this.nextUid)]=t},get:function(e){return this[je(e,this.nextUid)]},remove:function(e){var t=this[e=je(e,this.nextUid)];return delete this[e],t}};var $i=[function(){this.$get=[function(){return Fe}]}],Si=/^([^(]+?)=>/,ji=/^[^(]*\(\s*([^)]*)\)/m,Fi=/,/,Di=/^\s*(_?)(\S+?)\1\s*$/,Li=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Mi=A("$injector");Le.$$annotate=function(e,t,o){var i,n;if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw fe(o)&&o||(o=e.name||((n=De(n=e))?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn")),Mi("strictdi",o);se((t=De(e))[1].split(Fi),function(e){e.replace(Di,function(e,t,o){i.push(o)})})}e.$inject=i}}else Zo(e)?(D(e[t=e.length-1],"fn"),i=e.slice(0,t)):D(e,"fn",!0);return i};var Ti=A("$animate"),Bi=function(){this.$get=ce},Ri=function(){var l=new Fe,c=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function s(t,e,o){var i=!1;return e&&se(e=fe(e)?e.split(" "):Zo(e)?e:[],function(e){e&&(i=!0,t[e]=o)}),i}function a(){se(c,function(e){var t=l.get(e);if(t){var o=function(e){fe(e)&&(e=e.split(" "));var t=ke();return se(e,function(e){e.length&&(t[e]=!0)}),t}(e.attr("class")),i="",n="";se(t,function(e,t){e!==!!o[t]&&(e?i+=(i.length?" ":"")+t:n+=(n.length?" ":"")+t)}),se(e,function(e){i&&X(e,i),n&&Y(e,n)}),l.remove(e)}}),c.length=0}return{enabled:ce,on:ce,off:ce,pin:ce,push:function(e,t,o,i){return i&&i(),(o=o||{}).from&&e.css(o.from),o.to&&e.css(o.to),(o.addClass||o.removeClass)&&(t=o.addClass,i=o.removeClass,t=s(o=l.get(e)||{},t,!0),i=s(o,i,!1),(t||i)&&(l.put(e,o),c.push(e),1===c.length&&r.$$postDigest(a))),(e=new n).complete(),e}}}]},Ii=["$provide",function(i){var n=this;this.$$registeredAnimations=Object.create(null),this.register=function(e,t){if(e&&"."!==e.charAt(0))throw Ti("notcsel",e);var o=e+"-animation";n.$$registeredAnimations[e.substr(1)]=o,i.factory(o,t)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw Ti("nongcls","ng-animate");return this.$$classNameFilter},this.$get=["$$animateQueue",function(r){function n(e,t,o){if(o){var i;e:{for(i=0;i<o.length;i++){var n=o[i];if(1===n.nodeType){i=n;break e}}i=void 0}!i||i.parentNode||i.previousElementSibling||(o=null)}o?o.after(e):t.prepend(e)}return{on:r.on,off:r.off,pin:r.pin,enabled:r.enabled,cancel:function(e){e.end&&e.end()},enter:function(e,t,o,i){return t=t&&Ro(t),o=o&&Ro(o),n(e,t=t||o.parent(),o),r.push(e,"enter",Be(i))},move:function(e,t,o,i){return t=t&&Ro(t),o=o&&Ro(o),n(e,t=t||o.parent(),o),r.push(e,"move",Be(i))},leave:function(e,t){return r.push(e,"leave",Be(t),function(){e.remove()})},addClass:function(e,t,o){return(o=Be(o)).addClass=Te(o.addclass,t),r.push(e,"addClass",o)},removeClass:function(e,t,o){return(o=Be(o)).removeClass=Te(o.removeClass,t),r.push(e,"removeClass",o)},setClass:function(e,t,o,i){return(i=Be(i)).addClass=Te(i.addClass,t),i.removeClass=Te(i.removeClass,o),r.push(e,"setClass",i)},animate:function(e,t,o,i,n){return(n=Be(n)).from=n.from?ae(n.from,t):t,n.to=n.to?ae(n.to,o):o,n.tempClasses=Te(n.tempClasses,i||"ng-inline-animate"),r.push(e,"animate",n)}}}]}],Oi=function(){this.$get=["$$rAF",function(t){function o(e){i.push(e),1<i.length||t(function(){for(var e=0;e<i.length;e++)i[e]();i=[]})}var i=[];return function(){var t=!1;return o(function(){t=!0}),function(e){t?e():o(e)}}}]},zi=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,o,i,n){function r(e){this.setHost(e);var t=o();this._doneCallbacks=[],this._tick=function(e){i()?n(e,0,!1):t(e)},this._state=0}return r.chain=function(e,o){var i=0;!function t(){i===e.length?o(!0):e[i](function(e){!1===e?o(!1):(i++,t())})}()},r.all=function(t,o){function i(e){r=r&&e,++n===t.length&&o(r)}var n=0,r=!0;se(t,function(e){e.done(i)})},r.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:ce,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,o){e.done(function(e){!1===e?o():t()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(t){2!==this._state&&(se(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},r}]},Ni=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(s,e,a){return function(e,t){function o(){return s(function(){i.addClass&&(e.addClass(i.addClass),i.addClass=null),i.removeClass&&(e.removeClass(i.removeClass),i.removeClass=null),i.to&&(e.css(i.to),i.to=null),n||r.complete(),n=!0}),r}var i=t||{};i.$$prepared||(i=k(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(e.css(i.from),i.from=null);var n,r=new a;return{start:o,end:o}}}]},Pi=A("$compile"),qi=new function(){};Ne.$inject=["$provide","$$sanitizeUriProvider"],Pe.prototype.isFirstChange=function(){return this.previousValue===qi};var Vi=/^((?:x|data)[:\-_])/i,Wi=/[:\-_]+(.)/g,Hi=A("$controller"),Ui=/^(\S+)(\s+as\s+([\w$]+))?$/,Ki=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof Ro&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Gi="application/json",Yi={"Content-Type":Gi+";charset=utf-8"},Xi=/^\[|^\{(?!\{)/,Ji={"[":/]$/,"{":/}$/},Zi=/^\)]\}',?\n/,Qi=A("$http"),en=Yo.$interpolateMinErr=A("$interpolate");en.throwNoconcat=function(e){throw en("noconcat",e)},en.interr=function(e,t){return en("interr",e,t.toString())};var tn=function(){this.$get=["$window",function(e){var n=e.angular.callbacks,r={};return{createCallback:function(e){var t,o="angular.callbacks."+(e="_"+(n.$$counter++).toString(36)),i=((t=function(e){t.data=e,t.called=!0}).id=e,t);return r[o]=n[e]=i,o},wasCalled:function(e){return r[e].called},getResponse:function(e){return r[e].data},removeCallback:function(e){delete n[r[e].id],delete r[e]}}}]},on=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,nn={http:80,https:443,ftp:21},rn=A("$location"),sn=/^\s*[\\/]{2,}/,an={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:vt("$$absUrl"),url:function(e){if(ue(e))return this.$$url;var t=on.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:vt("$$protocol"),host:vt("$$host"),port:vt("$$port"),path:bt("$$path",function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e}),search:function(o,e){switch(arguments.length){case 0:return this.$$search;case 1:if(fe(o)||p(o))o=o.toString(),this.$$search=c(o);else{if(!pe(o))throw rn("isrcharg");se(o=k(o,{}),function(e,t){null==e&&delete o[t]}),this.$$search=o}break;default:ue(e)||null===e?delete this.$$search[o]:this.$$search[o]=e}return this.$$compose(),this},hash:bt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};se([mt,gt,ft],function(t){t.prototype=Object.create(an),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==ft||!this.$$html5)throw rn("nostate");return this.$$state=ue(e)?null:e,this}});var ln=A("$parse"),cn={}.constructor.prototype.valueOf,dn=ke();se("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){dn[e]=!0});var un={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},hn=function(e){this.options=e};hn.prototype={constructor:hn,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;)if('"'===(e=this.text.charAt(this.index))||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var t=e+this.peek(),o=t+this.peek(2),i=dn[t],n=dn[o];dn[e]||i||n?(e=n?o:i?t:e,this.tokens.push({index:this.index,text:e,operator:!0}),this.index+=e.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){return e=e||1,this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var o=e.charCodeAt(0),i=t.charCodeAt(0);return 55296<=o&&o<=56319&&56320<=i&&i<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,o){throw o=o||this.index,t=he(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,o)+"]":" "+o,ln("lexerr",e,t,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var o=Po(this.text.charAt(this.index));if("."===o||this.isNumber(o))e+=o;else{var i=this.peek();if("e"===o&&this.isExpOperator(i))e+=o;else if(this.isExpOperator(o)&&i&&this.isNumber(i)&&"e"===e.charAt(e.length-1))e+=o;else{if(!this.isExpOperator(o)||i&&this.isNumber(i)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var o="",i=e,n=!1;this.index<this.text.length;){var r=this.text.charAt(this.index);i=i+r;if(n)"u"===r?((n=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+n+"]"),this.index+=4,o+=String.fromCharCode(parseInt(n,16))):o+=un[r]||r,n=!1;else if("\\"===r)n=!0;else{if(r===e)return this.index++,void this.tokens.push({index:t,text:i,constant:!0,value:o});o+=r}this.index++}this.throwError("Unterminated quote",t)}};var pn=function(e,t){this.lexer=e,this.options=t};pn.Program="Program",pn.ExpressionStatement="ExpressionStatement",pn.AssignmentExpression="AssignmentExpression",pn.ConditionalExpression="ConditionalExpression",pn.LogicalExpression="LogicalExpression",pn.BinaryExpression="BinaryExpression",pn.UnaryExpression="UnaryExpression",pn.CallExpression="CallExpression",pn.MemberExpression="MemberExpression",pn.Identifier="Identifier",pn.Literal="Literal",pn.ArrayExpression="ArrayExpression",pn.Property="Property",pn.ObjectExpression="ObjectExpression",pn.ThisExpression="ThisExpression",pn.LocalsExpression="LocalsExpression",pn.NGValueParameter="NGValueParameter",pn.prototype={ast:function(e){return this.text=e,this.tokens=this.lexer.lex(e),e=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var e=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:pn.Program,body:e}},expressionStatement:function(){return{type:pn.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Et(e))throw ln("lval");e={type:pn.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,o=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:pn.ConditionalExpression,test:o,alternate:e,consequent:t}):o},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:pn.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:pn.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:pn.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:pn.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:pn.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:pn.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:pn.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=k(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:pn.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:pn.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:pn.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:pn.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){e=[e];for(var t={type:pn.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return t},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)for(;e.push(this.filterChain()),this.expect(","););return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:pn.Identifier,name:e.text}},constant:function(){return{type:pn.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:pn.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:pn.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:pn.ObjectExpression,properties:t}},throwError:function(e,t){throw ln("syntax",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw ln("ueoe",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw ln("ueoe",this.text);return this.tokens[0]},peek:function(e,t,o,i){return this.peekAhead(0,e,t,o,i)},peekAhead:function(e,t,o,i,n){if(this.tokens.length>e){var r=(e=this.tokens[e]).text;if(r===t||r===o||r===i||r===n||!(t||o||i||n))return e}return!1},expect:function(e,t,o,i){return!!(e=this.peek(e,t,o,i))&&(this.tokens.shift(),e)},selfReferential:{this:{type:pn.ThisExpression},$locals:{type:pn.LocalsExpression}}},jt.prototype={compile:function(e){var n=this;e=this.astBuilder.ast(e),this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},At(e,n.$filter);var t,o="";return this.stage="assign",(t=$t(e))&&(this.state.computing="assign",o=this.nextId(),this.recurse(t,o),this.return_(o),o="fn.assign="+this.generateFunction("assign","s,v,l")),t=kt(e.body),n.stage="inputs",se(t,function(e,t){var o="fn"+t;n.state[o]={vars:[],body:[],own:{}},n.state.computing=o;var i=n.nextId();n.recurse(e,i),n.return_(i),n.state.inputs.push(o),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(e),o='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+o+this.watchFns()+"return fn;",o=new Function("$filter","getStringValue","ifDefined","plus",o)(this.$filter,xt,_t,Ct),this.state=this.stage=void 0,o.literal=St(e),o.constant=e.constant,o},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,o=this;return se(e,function(e){t.push("var "+e+"="+o.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var o=[],i=this;return se(this.state.filters,function(e,t){o.push(e+"=$filter("+i.escape(t)+")")}),o.length?"var "+o.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(o,t,e,i,n,r){var s,a,l,c,d,u=this;if(i=i||ce,!r&&he(o.watchId))t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.computedMember("i",o.watchId)),this.lazyRecurse(o,t,e,i,n,!0));else switch(o.type){case pn.Program:se(o.body,function(e,t){u.recurse(e.expression,void 0,void 0,function(e){a=e}),t!==o.body.length-1?u.current().body.push(a,";"):u.return_(a)});break;case pn.Literal:c=this.escape(o.value),this.assign(t,c),i(t||c);break;case pn.UnaryExpression:this.recurse(o.argument,void 0,void 0,function(e){a=e}),c=o.operator+"("+this.ifDefined(a,0)+")",this.assign(t,c),i(c);break;case pn.BinaryExpression:this.recurse(o.left,void 0,void 0,function(e){s=e}),this.recurse(o.right,void 0,void 0,function(e){a=e}),c="+"===o.operator?this.plus(s,a):"-"===o.operator?this.ifDefined(s,0)+o.operator+this.ifDefined(a,0):"("+s+")"+o.operator+"("+a+")",this.assign(t,c),i(c);break;case pn.LogicalExpression:t=t||this.nextId(),u.recurse(o.left,t),u.if_("&&"===o.operator?t:u.not(t),u.lazyRecurse(o.right,t)),i(t);break;case pn.ConditionalExpression:t=t||this.nextId(),u.recurse(o.test,t),u.if_(t,u.lazyRecurse(o.alternate,t),u.lazyRecurse(o.consequent,t)),i(t);break;case pn.Identifier:t=t||this.nextId(),e&&(e.context="inputs"===u.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",o.name)+"?l:s"),e.computed=!1,e.name=o.name),u.if_("inputs"===u.stage||u.not(u.getHasOwnProperty("l",o.name)),function(){u.if_("inputs"===u.stage||"s",function(){n&&1!==n&&u.if_(u.isNull(u.nonComputedMember("s",o.name)),u.lazyAssign(u.nonComputedMember("s",o.name),"{}")),u.assign(t,u.nonComputedMember("s",o.name))})},t&&u.lazyAssign(t,u.nonComputedMember("l",o.name))),i(t);break;case pn.MemberExpression:s=e&&(e.context=this.nextId())||this.nextId(),t=t||this.nextId(),u.recurse(o.object,s,void 0,function(){u.if_(u.notNull(s),function(){o.computed?(a=u.nextId(),u.recurse(o.property,a),u.getStringValue(a),n&&1!==n&&u.if_(u.not(u.computedMember(s,a)),u.lazyAssign(u.computedMember(s,a),"{}")),c=u.computedMember(s,a),u.assign(t,c),e&&(e.computed=!0,e.name=a)):(n&&1!==n&&u.if_(u.isNull(u.nonComputedMember(s,o.property.name)),u.lazyAssign(u.nonComputedMember(s,o.property.name),"{}")),c=u.nonComputedMember(s,o.property.name),u.assign(t,c),e&&(e.computed=!1,e.name=o.property.name))},function(){u.assign(t,"undefined")}),i(t)},!!n);break;case pn.CallExpression:t=t||this.nextId(),o.filter?(a=u.filter(o.callee.name),l=[],se(o.arguments,function(e){var t=u.nextId();u.recurse(e,t),l.push(t)}),c=a+"("+l.join(",")+")",u.assign(t,c),i(t)):(a=u.nextId(),s={},l=[],u.recurse(o.callee,a,s,function(){u.if_(u.notNull(a),function(){se(o.arguments,function(e){u.recurse(e,o.constant?void 0:u.nextId(),void 0,function(e){l.push(e)})}),c=s.name?u.member(s.context,s.name,s.computed)+"("+l.join(",")+")":a+"("+l.join(",")+")",u.assign(t,c)},function(){u.assign(t,"undefined")}),i(t)}));break;case pn.AssignmentExpression:a=this.nextId(),s={},this.recurse(o.left,void 0,s,function(){u.if_(u.notNull(s.context),function(){u.recurse(o.right,a),c=u.member(s.context,s.name,s.computed)+o.operator+a,u.assign(t,c),i(t||c)})},1);break;case pn.ArrayExpression:l=[],se(o.elements,function(e){u.recurse(e,o.constant?void 0:u.nextId(),void 0,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),i(t||c);break;case pn.ObjectExpression:d=!(l=[]),se(o.properties,function(e){e.computed&&(d=!0)}),d?(t=t||this.nextId(),this.assign(t,"{}"),se(o.properties,function(e){e.computed?(s=u.nextId(),u.recurse(e.key,s)):s=e.key.type===pn.Identifier?e.key.name:""+e.key.value,a=u.nextId(),u.recurse(e.value,a),u.assign(u.member(t,s,e.computed),a)})):(se(o.properties,function(t){u.recurse(t.value,o.constant?void 0:u.nextId(),void 0,function(e){l.push(u.escape(t.key.type===pn.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+l.join(",")+"}",this.assign(t,c)),i(t||c);break;case pn.ThisExpression:this.assign(t,"s"),i(t||"s");break;case pn.LocalsExpression:this.assign(t,"l"),i(t||"l");break;case pn.NGValueParameter:this.assign(t,"v"),i(t||"v")}},getHasOwnProperty:function(e,t){var o=e+"."+t,i=this.current().own;return i.hasOwnProperty(o)||(i[o]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),i[o]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,o){if(!0===e)t();else{var i=this.current().body;i.push("if(",e,"){"),t(),i.push("}"),o&&(i.push("else{"),o(),i.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,o){return o?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,o,i,n,r){var s=this;return function(){s.recurse(e,t,o,i,n,r)}},lazyAssign:function(e,t){var o=this;return function(){o.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(fe(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(p(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw ln("esc")},nextId:function(e,t){var o="v"+this.state.nextId++;return e||this.current().vars.push(o+(t?"="+t:"")),o},current:function(){return this.state[this.state.computing]}},Ft.prototype={compile:function(e){var t,i,n,r=this;At(e=this.astBuilder.ast(e),r.$filter),(t=$t(e))&&(i=this.recurse(t)),(t=kt(e.body))&&(n=[],se(t,function(e,t){var o=r.recurse(e);e.input=o,n.push(o),e.watchId=t}));var s=[];return se(e.body,function(e){s.push(r.recurse(e.expression))}),t=0===e.body.length?ce:1===e.body.length?s[0]:function(t,o){var i;return se(s,function(e){i=e(t,o)}),i},i&&(t.assign=function(e,t,o){return i(e,o,t)}),n&&(t.inputs=n),t.literal=St(e),t.constant=e.constant,t},recurse:function(e,a,t){var r,l,c,o=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case pn.Literal:return this.value(e.value,a);case pn.UnaryExpression:return l=this.recurse(e.argument),this["unary"+e.operator](l,a);case pn.BinaryExpression:case pn.LogicalExpression:return r=this.recurse(e.left),l=this.recurse(e.right),this["binary"+e.operator](r,l,a);case pn.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),a);case pn.Identifier:return o.identifier(e.name,a,t);case pn.MemberExpression:return r=this.recurse(e.object,!1,!!t),e.computed||(l=e.property.name),e.computed&&(l=this.recurse(e.property)),e.computed?this.computedMember(r,l,a,t):this.nonComputedMember(r,l,a,t);case pn.CallExpression:return c=[],se(e.arguments,function(e){c.push(o.recurse(e))}),e.filter&&(l=this.$filter(e.callee.name)),e.filter||(l=this.recurse(e.callee,!0)),e.filter?function(e,t,o,i){for(var n=[],r=0;r<c.length;++r)n.push(c[r](e,t,o,i));return e=l.apply(void 0,n,i),a?{context:void 0,name:void 0,value:e}:e}:function(e,t,o,i){var n,r=l(e,t,o,i);if(null!=r.value){n=[];for(var s=0;s<c.length;++s)n.push(c[s](e,t,o,i));n=r.value.apply(r.context,n)}return a?{value:n}:n};case pn.AssignmentExpression:return r=this.recurse(e.left,!0,1),l=this.recurse(e.right),function(e,t,o,i){var n=r(e,t,o,i);return e=l(e,t,o,i),n.context[n.name]=e,a?{value:e}:e};case pn.ArrayExpression:return c=[],se(e.elements,function(e){c.push(o.recurse(e))}),function(e,t,o,i){for(var n=[],r=0;r<c.length;++r)n.push(c[r](e,t,o,i));return a?{value:n}:n};case pn.ObjectExpression:return c=[],se(e.properties,function(e){e.computed?c.push({key:o.recurse(e.key),computed:!0,value:o.recurse(e.value)}):c.push({key:e.key.type===pn.Identifier?e.key.name:""+e.key.value,computed:!1,value:o.recurse(e.value)})}),function(e,t,o,i){for(var n={},r=0;r<c.length;++r)c[r].computed?n[c[r].key(e,t,o,i)]=c[r].value(e,t,o,i):n[c[r].key]=c[r].value(e,t,o,i);return a?{value:n}:n};case pn.ThisExpression:return function(e){return a?{value:e}:e};case pn.LocalsExpression:return function(e,t){return a?{value:t}:t};case pn.NGValueParameter:return function(e,t,o){return a?{value:o}:o}}},"unary+":function(n,r){return function(e,t,o,i){return e=he(e=n(e,t,o,i))?+e:0,r?{value:e}:e}},"unary-":function(n,r){return function(e,t,o,i){return e=he(e=n(e,t,o,i))?-e:-0,r?{value:e}:e}},"unary!":function(n,r){return function(e,t,o,i){return e=!n(e,t,o,i),r?{value:e}:e}},"binary+":function(r,s,a){return function(e,t,o,i){var n=r(e,t,o,i);return n=Ct(n,e=s(e,t,o,i)),a?{value:n}:n}},"binary-":function(r,s,a){return function(e,t,o,i){var n=r(e,t,o,i);return e=s(e,t,o,i),n=(he(n)?n:0)-(he(e)?e:0),a?{value:n}:n}},"binary*":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)*r(e,t,o,i),s?{value:e}:e}},"binary/":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)/r(e,t,o,i),s?{value:e}:e}},"binary%":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)%r(e,t,o,i),s?{value:e}:e}},"binary===":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)===r(e,t,o,i),s?{value:e}:e}},"binary!==":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)!==r(e,t,o,i),s?{value:e}:e}},"binary==":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)==r(e,t,o,i),s?{value:e}:e}},"binary!=":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)!=r(e,t,o,i),s?{value:e}:e}},"binary<":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)<r(e,t,o,i),s?{value:e}:e}},"binary>":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)>r(e,t,o,i),s?{value:e}:e}},"binary<=":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)<=r(e,t,o,i),s?{value:e}:e}},"binary>=":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)>=r(e,t,o,i),s?{value:e}:e}},"binary&&":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)&&r(e,t,o,i),s?{value:e}:e}},"binary||":function(n,r,s){return function(e,t,o,i){return e=n(e,t,o,i)||r(e,t,o,i),s?{value:e}:e}},"ternary?:":function(n,r,s,a){return function(e,t,o,i){return e=n(e,t,o,i)?r(e,t,o,i):s(e,t,o,i),a?{value:e}:e}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(n,r,s){return function(e,t,o,i){return e=t&&n in t?t:e,s&&1!==s&&e&&null==e[n]&&(e[n]={}),t=e?e[n]:void 0,r?{context:e,name:n,value:t}:t}},computedMember:function(a,l,c,d){return function(e,t,o,i){var n,r,s=a(e,t,o,i);return null!=s&&(n=l(e,t,o,i),n+="",d&&1!==d&&s&&!s[n]&&(s[n]={}),r=s[n]),c?{context:s,name:n,value:r}:r}},nonComputedMember:function(n,r,s,a){return function(e,t,o,i){return e=n(e,t,o,i),a&&1!==a&&e&&null==e[r]&&(e[r]={}),t=null!=e?e[r]:void 0,s?{context:e,name:r,value:t}:t}},inputs:function(n,r){return function(e,t,o,i){return i?i[r]:n(e,t,o)}}};var fn=function(e,t,o){this.lexer=e,this.$filter=t,this.options=o,this.ast=new pn(e,o),this.astCompiler=o.csp?new Ft(this.ast,t):new jt(this.ast,t)};fn.prototype={constructor:fn,parse:function(e){return this.astCompiler.compile(e)}};var gn=A("$sce"),mn={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},vn=/_([a-z])/g,bn=A("$compile"),wn=re.document.createElement("a"),yn=Ut(re.location.href);Yt.$inject=["$document"],Jt.$inject=["$provide"];var xn=22,_n=".",Cn="0";to.$inject=["$locale"];var An={yyyy:ro("FullYear",4,0,!(oo.$inject=["$locale"]),!0),yy:ro("FullYear",2,0,!0,!0),y:ro("FullYear",1,0,!1,!0),MMMM:so("Month"),MMM:so("Month",!0),MM:ro("Month",2,1),M:ro("Month",1,1),LLLL:so("Month",!1,!0),dd:ro("Date",2),d:ro("Date",1),HH:ro("Hours",2),H:ro("Hours",1),hh:ro("Hours",2,-12),h:ro("Hours",1,-12),mm:ro("Minutes",2),m:ro("Minutes",1),ss:ro("Seconds",2),s:ro("Seconds",1),sss:ro("Milliseconds",3),EEEE:so("Day"),EEE:so("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,o){return(0<=(e=-1*o)?"+":"")+(no(Math[0<e?"floor":"ceil"](e/60),2)+no(Math.abs(e%60),2))},ww:lo(2),w:lo(1),G:co,GG:co,GGG:co,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},kn=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,En=/^-?\d+$/;uo.$inject=["$locale"];var $n=C(Po),Sn=C(qo);go.$inject=["$parse"];var jn=C({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var o="[object SVGAnimatedString]"===Uo.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(o)||e.preventDefault()})}}}}),Fn={};se(Ai,function(e,i){function n(e,t,o){e.$watch(o[r],function(e){o.$set(i,!!e)})}if("multiple"!==e){var r=qe("ng-"+i),t=n;"checked"===e&&(t=function(e,t,o){o.ngModel!==o[r]&&n(e,0,o)}),Fn[r]=function(){return{restrict:"A",priority:100,link:t}}}}),se(Ei,function(e,i){Fn[i]=function(){return{priority:100,link:function(e,t,o){"ngPattern"===i&&"/"===o.ngPattern.charAt(0)&&(t=o.ngPattern.match(zo))?o.$set("ngPattern",new RegExp(t[1],t[2])):e.$watch(o[i],function(e){o.$set(i,e)})}}}}),se(["src","srcset","href"],function(r){var s=qe("ng-"+r);Fn[s]=function(){return{priority:99,link:function(e,t,o){var i=r,n=r;"href"===r&&"[object SVGAnimatedString]"===Uo.call(t.prop("href"))&&(n="xlinkHref",o.$attr[n]="xlink:href",i=null),o.$observe(s,function(e){e?(o.$set(n,e),Bo&&i&&t.prop(i,o[n])):"href"===r&&o.$set(n,null)})}}}});var Dn={$addControl:ce,$$renameControl:function(e,t){e.$name=t},$removeControl:ce,$setValidity:ce,$setDirty:ce,$setPristine:ce,$setSubmitted:ce};vo.$inject=["$element","$attrs","$scope","$animate","$interpolate"],vo.prototype={$rollbackViewValue:function(){se(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){se(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){z(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$$renameControl:function(e,t){var o=e.$name;this[o]===e&&delete this[o],(this[t]=e).$name=t},$removeControl:function(o){o.$name&&this[o.$name]===o&&delete this[o.$name],se(this.$pending,function(e,t){this.$setValidity(t,null,o)},this),se(this.$error,function(e,t){this.$setValidity(t,null,o)},this),se(this.$$success,function(e,t){this.$setValidity(t,null,o)},this),we(this.$$controls,o),o.$$parentForm=Dn},$setDirty:function(){this.$$animate.removeClass(this.$$element,pr),this.$$animate.addClass(this.$$element,fr),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,pr,fr+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,se(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){se(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},wo({clazz:vo,set:function(e,t,o){var i=e[t];i?-1===i.indexOf(o)&&i.push(o):e[t]=[o]},unset:function(e,t,o){var i=e[t];i&&(we(i,o),0===i.length&&delete e[t])}});var Ln=function(o){return["$timeout","$parse",function(l,t){function c(e){return""===e?t('this[""]').assign:t(e).assign||ce}return{name:"form",restrict:o?"EAC":"E",require:["form","^^?form"],controller:vo,compile:function(e,t){e.addClass(pr).addClass(ur);var a=t.name?"name":!(!o||!t.ngForm)&&"ngForm";return{pre:function(t,e,o,i){var n=i[0];if(!("action"in o)){var r=function(e){t.$apply(function(){n.$commitViewValue(),n.$setSubmitted()}),e.preventDefault()};e[0].addEventListener("submit",r),e.on("$destroy",function(){l(function(){e[0].removeEventListener("submit",r)},0,!1)})}(i[1]||n.$$parentForm).$addControl(n);var s=a?c(n.$name):ce;a&&(s(t,n),o.$observe(a,function(e){n.$name!==e&&(s(t,void 0),n.$$parentForm.$$renameControl(n,e),(s=c(n.$name))(t,n))})),e.on("$destroy",function(){n.$$parentForm.$removeControl(n),s(t,void 0),ae(n,Dn)})}}}}}]},Mn=Ln(),Tn=Ln(!0),Bn=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Rn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,In=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,On=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,zn=/^(\d{4,})-(\d{2})-(\d{2})$/,Nn=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Pn=/^(\d{4,})-W(\d\d)$/,qn=/^(\d{4,})-(\d\d)$/,Vn=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Wn=ke();se(["date","datetime-local","month","time","week"],function(e){Wn[e]=!0});var Hn={text:function(e,t,o,i,n,r){_o(0,t,o,i,n,r),xo(i)},date:Ao("date",zn,Co(zn,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Ao("datetimelocal",Nn,Co(Nn,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:Ao("time",Vn,Co(Vn,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Ao("week",Pn,function(e,t){if(b(e))return e;if(fe(e)){Pn.lastIndex=0;var o=Pn.exec(e);if(o){var i=+o[1],n=+o[2],r=o=0,s=0,a=0,l=ao(i);n=7*(n-1);return t&&(o=t.getHours(),r=t.getMinutes(),s=t.getSeconds(),a=t.getMilliseconds()),new Date(i,0,l.getDate()+n,o,r,s,a)}}return NaN},"yyyy-Www"),month:Ao("month",qn,Co(qn,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,o,i,n,r){var s,a,l;(ko(0,t,0,i),Eo(i),_o(0,t,o,i,n,r),(he(o.min)||o.ngMin)&&(i.$validators.min=function(e){return i.$isEmpty(e)||ue(s)||s<=e},o.$observe("min",function(e){s=$o(e),i.$validate()})),(he(o.max)||o.ngMax)&&(i.$validators.max=function(e){return i.$isEmpty(e)||ue(a)||e<=a},o.$observe("max",function(e){a=$o(e),i.$validate()})),he(o.step)||o.ngStep)&&(i.$validators.step=function(e,t){return i.$isEmpty(t)||ue(l)||jo(t,s||0,l)},o.$observe("step",function(e){l=$o(e),i.$validate()}))},url:function(e,t,o,i,n,r){_o(0,t,o,i,n,r),xo(i),i.$$parserName="url",i.$validators.url=function(e,t){var o=e||t;return i.$isEmpty(o)||Rn.test(o)}},email:function(e,t,o,i,n,r){_o(0,t,o,i,n,r),xo(i),i.$$parserName="email",i.$validators.email=function(e,t){var o=e||t;return i.$isEmpty(o)||In.test(o)}},radio:function(e,o,i,n){var r=!i.ngTrim||"false"!==ei(i.ngTrim);ue(i.name)&&o.attr("name",++Xo),o.on("click",function(e){var t;o[0].checked&&(t=i.value,r&&(t=ei(t)),n.$setViewValue(t,e&&e.type))}),n.$render=function(){var e=i.value;r&&(e=ei(e)),o[0].checked=e===n.$viewValue},i.$observe("value",n.$render)},range:function(e,o,i,n,t,r){function s(e,t){o.attr(e,i[e]),i.$observe(e,t)}ko(0,o,0,n),Eo(n),_o(0,o,i,n,t,r);var a=n.$$hasNativeValidators&&"range"===o[0].type,l=a?0:void 0,c=a?100:void 0,d=a?1:void 0,u=o[0].validity;e=he(i.min),t=he(i.max),r=he(i.step);var h=n.$render;n.$render=a&&he(u.rangeUnderflow)&&he(u.rangeOverflow)?function(){h(),n.$setViewValue(o.val())}:h,e&&(n.$validators.min=a?function(){return!0}:function(e,t){return n.$isEmpty(t)||ue(l)||l<=t},s("min",function(e){l=$o(e),Jo(n.$modelValue)||(a?((e=o.val())<l&&(e=l,o.val(e)),n.$setViewValue(e)):n.$validate())})),t&&(n.$validators.max=a?function(){return!0}:function(e,t){return n.$isEmpty(t)||ue(c)||t<=c},s("max",function(e){c=$o(e),Jo(n.$modelValue)||(a?(e=o.val(),c<e&&(o.val(c),e=c<l?l:c),n.$setViewValue(e)):n.$validate())})),r&&(n.$validators.step=a?function(){return!u.stepMismatch}:function(e,t){return n.$isEmpty(t)||ue(d)||jo(t,l||0,d)},s("step",function(e){d=$o(e),Jo(n.$modelValue)||(a&&n.$viewValue!==o.val()?n.$setViewValue(o.val()):n.$validate())}))},checkbox:function(e,t,o,i,n,r,s,a){var l=Fo(a,e,"ngTrueValue",o.ngTrueValue,!0),c=Fo(a,e,"ngFalseValue",o.ngFalseValue,!1);t.on("click",function(e){i.$setViewValue(t[0].checked,e&&e.type)}),i.$render=function(){t[0].checked=i.$viewValue},i.$isEmpty=function(e){return!1===e},i.$formatters.push(function(e){return ye(e,l)}),i.$parsers.push(function(e){return e?l:c})},hidden:ce,button:ce,submit:ce,reset:ce,file:ce},Un=["$browser","$sniffer","$filter","$parse",function(n,r,s,a){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,t,o,i){i[0]&&(Hn[Po(o.type)]||Hn.text)(e,t,o,i[0],r,n,s,a)}}}}],Kn=/^(true|false|\d+)$/,Gn=function(){return{restrict:"A",priority:100,compile:function(e,t){return Kn.test(t.ngValue)?function(e,t,o){e=e.$eval(o.ngValue),t.prop("value",e),o.$set("value",e)}:function(e,t,o){e.$watch(o.ngValue,function(e){t.prop("value",e),o.$set("value",e)})}}}},Yn=["$compile",function(i){return{restrict:"AC",compile:function(e){return i.$$addBindingClass(e),function(e,t,o){i.$$addBindingInfo(t,o.ngBind),t=t[0],e.$watch(o.ngBind,function(e){t.textContent=T(e)})}}}}],Xn=["$interpolate","$compile",function(i,n){return{compile:function(e){return n.$$addBindingClass(e),function(e,t,o){e=i(t.attr(o.$attr.ngBindTemplate)),n.$$addBindingInfo(t,e.expressions),t=t[0],o.$observe("ngBindTemplate",function(e){t.textContent=ue(e)?"":e})}}}}],Jn=["$sce","$parse","$compile",function(r,o,s){return{restrict:"A",compile:function(e,t){var i=o(t.ngBindHtml),n=o(t.ngBindHtml,function(e){return r.valueOf(e)});return s.$$addBindingClass(e),function(t,o,e){s.$$addBindingInfo(o,e.ngBindHtml),t.$watch(n,function(){var e=i(t);o.html(r.getTrustedHtml(e)||"")})}}}}],Zn=C({restrict:"A",require:"ngModel",link:function(e,t,o,i){i.$viewChangeListeners.push(function(){e.$eval(o.ngChange)})}}),Qn=Do("",!0),er=Do("Odd",0),tr=Do("Even",1),or=mo({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),ir=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],nr={},rr={blur:!0,focus:!0};se("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(r){var s=qe("ng-"+r);nr[s]=["$parse","$rootScope",function(o,n){return{restrict:"A",compile:function(e,t){var i=o(t[s],null,!0);return function(o,e){e.on(r,function(e){var t=function(){i(o,{$event:e})};rr[r]&&n.$$phase?o.$evalAsync(t):o.$apply(t)})}}}}]});var sr=["$animate","$compile",function(l,c){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(e,o,i,t,n){var r,s,a;e.$watch(i.ngIf,function(e){e?s||n(function(e,t){s=t,e[e.length++]=c.$$createComment("end ngIf",i.ngIf),r={clone:e},l.enter(e,o.parent(),o)}):(a&&(a.remove(),a=null),s&&(s.$destroy(),s=null),r&&(a=M(r.clone),l.leave(a).done(function(e){!1!==e&&(a=null)}),r=null))})}}}],ar=["$templateRequest","$anchorScroll","$animate",function(g,m,v){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Yo.noop,compile:function(e,t){var o=t.ngInclude||t.src,p=t.onload||"",f=t.autoscroll;return function(r,s,e,a,l){var c,t,d,u=0,h=function(){t&&(t.remove(),t=null),c&&(c.$destroy(),c=null),d&&(v.leave(d).done(function(e){!1!==e&&(t=null)}),t=d,d=null)};r.$watch(o,function(o){var i=function(e){!1===e||!he(f)||f&&!r.$eval(f)||m()},n=++u;o?(g(o,!0).then(function(e){if(!r.$$destroyed&&n===u){var t=r.$new();a.template=e,e=l(t,function(e){h(),v.enter(e,null,s).done(i)}),d=e,(c=t).$emit("$includeContentLoaded",o),r.$eval(p)}},function(){r.$$destroyed||n!==u||(h(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(h(),a.template=null)})}}}}],lr=["$compile",function(n){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(e,t,o,i){Uo.call(t[0]).match(/SVG/)?(t.empty(),n(P(i.template,re.document).childNodes)(e,function(e){t.append(e)},{futureParentElement:t})):(t.html(i.template),n(t.contents())(e))}}}],cr=mo({priority:450,compile:function(){return{pre:function(e,t,o){e.$eval(o.ngInit)}}}}),dr=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,o,i){var n=o.ngList||", ",r="false"!==o.ngTrim,s=r?ei(n):n;i.$parsers.push(function(e){if(!ue(e)){var t=[];return e&&se(e.split(s),function(e){e&&t.push(r?ei(e):e)}),t}}),i.$formatters.push(function(e){if(Zo(e))return e.join(n)}),i.$isEmpty=function(e){return!e||!e.length}}}},ur="ng-valid",hr="ng-invalid",pr="ng-pristine",fr="ng-dirty",gr=A("ngModel");Lo.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" "),Lo.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var o=this.$$parse(this.$$attr.ngModel+"()"),i=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(e){var t=this.$$parsedNgModel(e);return ge(t)&&(t=o(e)),t},this.$$ngModelSet=function(e,t){ge(this.$$parsedNgModel(e))?i(e,{$$$p:t}):this.$$parsedNgModelAssign(e,t)}}else if(!this.$$parsedNgModel.assign)throw gr("nonassign",this.$$attr.ngModel,_e(this.$$element))},$render:ce,$isEmpty:function(e){return ue(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,fr),this.$$animate.addClass(this.$$element,pr)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,pr),this.$$animate.addClass(this.$$element,fr),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!Jo(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,o=this.$valid,i=this.$modelValue,n=this.$options.getOption("allowInvalid"),r=this;this.$$runValidators(t,e,function(e){n||o===e||(r.$modelValue=e?t:void 0,r.$modelValue!==i&&r.$$writeModelToScope())})}},$$runValidators:function(i,n,t){function r(e,t){c===d.$$currentValidationRunId&&d.$setValidity(e,t)}function e(e){c===d.$$currentValidationRunId&&t(e)}this.$$currentValidationRunId++;var s,a,l,o,c=this.$$currentValidationRunId,d=this;o=d.$$parserName||"parse",(ue(d.$$parserValid)?(r(o,null),1):(d.$$parserValid||(se(d.$validators,function(e,t){r(t,null)}),se(d.$asyncValidators,function(e,t){r(t,null)})),r(o,d.$$parserValid),d.$$parserValid))?(l=!0,se(d.$validators,function(e,t){var o=Boolean(e(i,n));l=l&&o,r(t,o)}),l||(se(d.$asyncValidators,function(e,t){r(t,null)}),0)?(s=[],a=!0,se(d.$asyncValidators,function(e,t){var o=e(i,n);if(!o||!ge(o.then))throw gr("nopromise",o);r(t,void 0),s.push(o.then(function(){r(t,!0)},function(){r(t,a=!1)}))}),s.length?d.$$q.all(s).then(function(){e(a)},ce):e(!0)):e(!1)):e(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var t=this.$$lastCommittedViewValue,o=this;if(this.$$parserValid=!ue(t)||void 0)for(var e=0;e<this.$parsers.length;e++)if(ue(t=this.$parsers[e](t))){this.$$parserValid=!1;break}Jo(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var i=this.$modelValue,n=this.$options.getOption("allowInvalid");this.$$rawModelValue=t,n&&(this.$modelValue=t,o.$modelValue!==i&&o.$$writeModelToScope()),this.$$runValidators(t,this.$$lastCommittedViewValue,function(e){n||(o.$modelValue=e?t:void 0,o.$modelValue!==i&&o.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),se(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");p(t[e])?t=t[e]:p(t.default)&&(t=t.default),this.$$timeout.cancel(this.$$pendingDebounce);var o=this;0<t?this.$$pendingDebounce=this.$$timeout(function(){o.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){o.$commitViewValue()})}},wo({clazz:Lo,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var mr,vr=["$rootScope",function(s){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Lo,priority:1,compile:function(e){return e.addClass(pr).addClass("ng-untouched").addClass(ur),{pre:function(e,t,o,i){var n=i[0];t=i[1]||n.$$parentForm,(i=i[2])&&(n.$options=i.$options),n.$$initGetterSetters(),t.$addControl(n),o.$observe("name",function(e){n.$name!==e&&n.$$parentForm.$$renameControl(n,e)}),e.$on("$destroy",function(){n.$$parentForm.$removeControl(n)})},post:function(e,t,o,i){function n(){r.$setTouched()}var r=i[0];r.$options.getOption("updateOn")&&t.on(r.$options.getOption("updateOn"),function(e){r.$$debounceViewValueCommit(e&&e.type)}),t.on("blur",function(){r.$touched||(s.$$phase?e.$evalAsync(n):e.$apply(n))})}}}}}],br=/(\s+|^)default(\s+|$)/;Mo.prototype={getOption:function(e){return this.$$options[e]},createChild:function(o){var i=!1;return se(o=ae({},o),function(e,t){"$inherit"===e?"*"===t?i=!0:(o[t]=this.$$options[t],"updateOn"===t&&(o.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===t&&(o.updateOnDefault=!1,o[t]=ei(e.replace(br,function(){return o.updateOnDefault=!0," "})))},this),i&&(delete o["*"],To(o,this.$$options)),To(o,mr.$$options),new Mo(o)}},mr=new Mo({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var wr=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:mr,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},yr=mo({terminal:!0,priority:1e3}),xr=A("ngOptions"),_r=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Cr=["$compile","$document","$parse",function(g,m,x){var v=re.document.createElement("option"),b=re.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,o,i){i[0].registerOption=ce},post:function(e,i,t,o){function n(e){var t=(e=h.getOptionFromViewValue(e))&&e.element;return t&&!t.selected&&(t.selected=!0),e}function r(){var e=h&&s.readValue();if(h)for(var t=h.items.length-1;0<=t;t--){var o=h.items[t];he(o.group)?te(o.element.parentNode):te(o.element)}h=p.getOptions();var r={};u&&i.prepend(s.emptyOption),h.items.forEach(function(e){var t,o,i;if(he(e.group)){(t=r[e.group])||(t=b.cloneNode(!1),f.appendChild(t),t.label=null===e.group?"null":e.group,r[e.group]=t);var n=v.cloneNode(!1)}else t=f,n=v.cloneNode(!1);t.appendChild(n),i=n,((o=e).element=i).disabled=o.disabled,o.label!==i.label&&(i.label=o.label,i.textContent=o.label),i.value=o.selectValue}),i[0].appendChild(f),a.$render(),a.$isEmpty(e)||(t=s.readValue(),(p.trackBy||l?ye(e,t):e===t)||(a.$setViewValue(t),a.$render()))}var s=o[0],a=o[1],l=t.multiple;o=0;for(var c=i.children(),d=c.length;o<d;o++)if(""===c[o].value){s.hasEmptyOption=!0,s.emptyOption=c.eq(o);break}var u=!!s.emptyOption;Ro(v.cloneNode(!1)).val("?");var h,p=function(e,t,c){function d(e,t,o,i,n){this.selectValue=e,this.viewValue=t,this.label=o,this.group=i,this.disabled=n}function u(e){var t;if(!i&&S(e))t=e;else for(var o in t=[],e)e.hasOwnProperty(o)&&"$"!==o.charAt(0)&&t.push(o);return t}var a=e.match(_r);if(!a)throw xr("iexp",e,_e(t));var o=a[5]||a[7],i=a[6];e=/ as /.test(a[0])&&a[1];var h=a[9];t=x(a[2]?a[1]:o);var p=e&&x(e)||t,n=h&&x(h),f=h?function(e,t){return n(c,t)}:function(e){return je(e)},g=function(e,t){return f(e,y(e,t))},m=x(a[2]||a[1]),v=x(a[3]||""),b=x(a[4]||""),w=x(a[8]),r={},y=i?function(e,t){return r[i]=t,r[o]=e,r}:function(e){return r[o]=e,r};return{trackBy:h,getTrackByValue:g,getWatchables:x(w,function(e){for(var t=[],o=u(e=e||[]),i=o.length,n=0;n<i;n++){var r=e[s=e===o?n:o[n]],s=y(r,s);r=f(r,s),t.push(r),(a[2]||a[1])&&(r=m(c,s),t.push(r)),a[4]&&(s=b(c,s),t.push(s))}return t}),getOptions:function(){for(var e=[],t={},o=w(c)||[],i=u(o),n=i.length,r=0;r<n;r++){var s=o===i?r:i[r],a=y(o[s],s),l=p(c,a);l=new d(s=f(l,a),l,m(c,a),v(c,a),a=b(c,a)),e.push(l),t[s]=l}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[g(e)]},getViewValueFromOption:function(e){return h?k(e.viewValue):e.viewValue}}}}}(t.ngOptions,i,e),f=m[0].createDocumentFragment();s.generateUnknownOptionValue=function(e){return"?"},l?(s.writeValue=function(e){var t=e&&e.map(n)||[];h.items.forEach(function(e){e.element.selected&&-1===Array.prototype.indexOf.call(t,e)&&(e.element.selected=!1)})},s.readValue=function(){var e=i.val()||[],t=[];return se(e,function(e){(e=h.selectValueMap[e])&&!e.disabled&&t.push(h.getViewValueFromOption(e))}),t},p.trackBy&&e.$watchCollection(function(){if(Zo(a.$viewValue))return a.$viewValue.map(function(e){return p.getTrackByValue(e)})},function(){a.$render()})):(s.writeValue=function(e){var t=h.selectValueMap[i.val()],o=h.getOptionFromViewValue(e);t&&t.element.removeAttribute("selected"),o?(i[0].value!==o.selectValue&&(s.removeUnknownOption(),s.unselectEmptyOption(),i[0].value=o.selectValue,o.element.selected=!0),o.element.setAttribute("selected","selected")):u?s.selectEmptyOption():s.unknownOption.parent().length?s.updateUnknownOption(e):s.renderUnknownOption(e)},s.readValue=function(){var e=h.selectValueMap[i.val()];return e&&!e.disabled?(s.unselectEmptyOption(),s.removeUnknownOption(),h.getViewValueFromOption(e)):null},p.trackBy&&e.$watch(function(){return p.getTrackByValue(a.$viewValue)},function(){a.$render()})),u&&(s.emptyOption.remove(),g(s.emptyOption)(e),8===s.emptyOption[0].nodeType?(s.hasEmptyOption=!1,s.registerOption=function(e,t){""===t.val()&&(s.hasEmptyOption=!0,s.emptyOption=t,s.emptyOption.removeClass("ng-scope"),a.$render(),t.on("$destroy",function(){s.hasEmptyOption=!1,s.emptyOption=void 0}))}):s.emptyOption.removeClass("ng-scope")),i.empty(),r(),e.$watchCollection(p.getWatchables,r)}}}}],Ar=["$locale","$interpolate","$log",function(f,g,m){var v=/{}/g,b=/^when(Minus)?(.+)$/;return{link:function(i,n,r){function s(e){n.text(e||"")}var a,e=r.count,l=r.$attr.when&&n.attr(r.$attr.when),c=r.offset||0,d=i.$eval(l)||{},u={},t=g.startSymbol(),o=g.endSymbol(),h=t+e+"-"+c+o,p=Yo.noop;se(r,function(e,t){var o=b.exec(t);o&&(o=(o[1]?"-":"")+Po(o[2]),d[o]=n.attr(r.$attr[t]))}),se(d,function(e,t){u[t]=g(e.replace(v,h))}),i.$watch(e,function(e){var t=parseFloat(e),o=Jo(t);o||t in d||(t=f.pluralCat(t-c)),t===a||o&&Jo(a)||(p(),ue(o=u[t])?(null!=e&&m.debug("ngPluralize: no rule defined for '"+t+"' in "+l),p=ce,s()):p=i.$watch(o,s),a=t)})}}}],kr=["$parse","$animate","$compile",function(l,k,c){var E=A("ngRepeat"),$=function(e,t,o,i,n,r,s){e[o]=i,n&&(e[n]=r),e.$index=t,e.$first=0===t,e.$last=t===s-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,t){var v=t.ngRepeat,b=c.$$createComment("end ngRepeat",v);if(!(o=v.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)))throw E("iexp",v);var o,i=o[1],n=o[2],w=o[3],r=o[4];if(!(o=i.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw E("iidexp",i);var y=o[3]||o[1],x=o[2];if(w&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(w)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(w)))throw E("badident",w);var s,_,C,A,a={$id:je};return r?s=l(r):(C=function(e,t){return je(t)},A=function(e){return e}),function(p,f,e,t,g){s&&(_=function(e,t,o){return x&&(a[x]=e),a[y]=t,a.$index=o,s(p,a)});var m=ke();p.$watchCollection(n,function(e){var i,t,o,n,r,s,a,l,c,d,u=f[0],h=ke();if(w&&(p[w]=e),S(e))l=e,t=_||C;else for(d in t=_||A,l=[],e)No.call(e,d)&&"$"!==d.charAt(0)&&l.push(d);for(n=l.length,d=Array(n),i=0;i<n;i++)if(r=e===l?i:l[i],s=e[r],a=t(r,s,i),m[a])c=m[a],delete m[a],h[a]=c,d[i]=c;else{if(h[a])throw se(d,function(e){e&&e.scope&&(m[e.id]=e)}),E("dupes",v,a,s);d[i]={id:a,scope:void 0,clone:void 0},h[a]=!0}for(o in m){if(a=M((c=m[o]).clone),k.leave(a),a[0].parentNode)for(i=0,t=a.length;i<t;i++)a[i].$$NG_REMOVED=!0;c.scope.$destroy()}for(i=0;i<n;i++)if(r=e===l?i:l[i],s=e[r],(c=d[i]).scope){for(o=u;(o=o.nextSibling)&&o.$$NG_REMOVED;);c.clone[0]!==o&&k.move(M(c.clone),null,u),u=c.clone[c.clone.length-1],$(c.scope,i,y,s,x,r,n)}else g(function(e,t){c.scope=t;var o=b.cloneNode(!1);e[e.length++]=o,k.enter(e,null,u),u=o,c.clone=e,h[c.id]=c,$(c.scope,i,y,s,x,r,n)});m=h})}}}}],Er=["$animate",function(i){return{restrict:"A",multiElement:!0,link:function(e,t,o){e.$watch(o.ngShow,function(e){i[e?"removeClass":"addClass"](t,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],$r=["$animate",function(i){return{restrict:"A",multiElement:!0,link:function(e,t,o){e.$watch(o.ngHide,function(e){i[e?"addClass":"removeClass"](t,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Sr=mo(function(e,o,t){e.$watch(t.ngStyle,function(e,t){t&&e!==t&&se(t,function(e,t){o.css(t,"")}),e&&o.css(e)},!0)}),jr=["$animate","$compile",function(d,u){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(e,t,o,n){var r=[],s=[],a=[],l=[],c=function(t,o){return function(e){!1!==e&&t.splice(o,1)}};e.$watch(o.ngSwitch||o.on,function(e){for(var t,o;a.length;)d.cancel(a.pop());for(t=0,o=l.length;t<o;++t){var i=M(s[t].clone);l[t].$destroy(),(a[t]=d.leave(i)).done(c(a,t))}s.length=0,l.length=0,(r=n.cases["!"+e]||n.cases["?"])&&se(r,function(i){i.transclude(function(e,t){l.push(t);var o=i.element;e[e.length++]=u.$$createComment("end ngSwitchWhen"),s.push({clone:e}),d.enter(e,o.parent(),o)})})})}}}],Fr=mo({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,o,i,n){se(o.ngSwitchWhen.split(o.ngSwitchWhenSeparator).sort().filter(function(e,t,o){return o[t-1]!==e}),function(e){i.cases["!"+e]=i.cases["!"+e]||[],i.cases["!"+e].push({transclude:n,element:t})})}}),Dr=mo({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,o,i,n){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:n,element:t})}}),Lr=A("ngTransclude"),Mr=["$compile",function(t){return{restrict:"EAC",terminal:!0,compile:function(e){var n=t(e.contents());return e.empty(),function(e,r,t,o,i){function s(){n(e,function(e){r.append(e)})}if(!i)throw Lr("orphan",_e(r));t.ngTransclude===t.$attr.ngTransclude&&(t.ngTransclude=""),i(function(e,t){var o;if(o=e.length)e:{o=0;for(var i=e.length;o<i;o++){var n=e[o];if(n.nodeType!==ci||n.nodeValue.trim()){o=!0;break e}}o=void 0}o?r.append(e):(s(),t.$destroy())},null,t=t.ngTransclude||t.ngTranscludeSlot),t&&!i.isSlotFilled(t)&&s()}}}}],Tr=["$templateCache",function(o){return{restrict:"E",terminal:!0,compile:function(e,t){"text/ng-template"===t.type&&o.put(t.id,e[0].text)}}}],Br={$setViewValue:ce,$render:ce},Rr=["$element","$scope",function(o,i){function a(e){t||(t=!0,i.$$postDigest(function(){i.$$destroyed||(t=!1,l.ngModelCtrl.$setViewValue(l.readValue()),e&&l.ngModelCtrl.$render())}))}function n(e){e.prop("selected",!0),e.attr("selected",!0)}var l=this,r=new Fe;l.selectValueMap={},l.ngModelCtrl=Br,l.multiple=!1,l.unknownOption=Ro(re.document.createElement("option")),l.hasEmptyOption=!1,l.emptyOption=void 0,l.renderUnknownOption=function(e){e=l.generateUnknownOptionValue(e),l.unknownOption.val(e),o.prepend(l.unknownOption),n(l.unknownOption),o.val(e)},l.updateUnknownOption=function(e){e=l.generateUnknownOptionValue(e),l.unknownOption.val(e),n(l.unknownOption),o.val(e)},l.generateUnknownOptionValue=function(e){return"? "+je(e)+" ?"},l.removeUnknownOption=function(){l.unknownOption.parent()&&l.unknownOption.remove()},l.selectEmptyOption=function(){l.emptyOption&&(o.val(""),n(l.emptyOption))},l.unselectEmptyOption=function(){l.hasEmptyOption&&l.emptyOption.removeAttr("selected")},i.$on("$destroy",function(){l.renderUnknownOption=ce}),l.readValue=function(){var e=(e=o.val())in l.selectValueMap?l.selectValueMap[e]:e;return l.hasOption(e)?e:null},l.writeValue=function(e){var t=o[0].options[o[0].selectedIndex];t&&t.removeAttribute("selected"),l.hasOption(e)?(l.removeUnknownOption(),t=je(e),o.val(t in l.selectValueMap?t:e),n(Ro(o[0].options[o[0].selectedIndex]))):null==e&&l.emptyOption?(l.removeUnknownOption(),l.selectEmptyOption()):l.unknownOption.parent().length?l.updateUnknownOption(e):l.renderUnknownOption(e)},l.addOption=function(e,t){if(8!==t[0].nodeType){z(e,'"option value"'),""===e&&(l.hasEmptyOption=!0,l.emptyOption=t);var o=r.get(e)||0;r.put(e,o+1),s||(s=!0,i.$$postDigest(function(){s=!1,l.ngModelCtrl.$render()}))}},l.removeOption=function(e){var t=r.get(e);t&&(1===t?(r.remove(e),""===e&&(l.hasEmptyOption=!1,l.emptyOption=void 0)):r.put(e,t-1))};var s=!(l.hasOption=function(e){return!!r.get(e)}),t=!1;l.registerOption=function(e,i,n,t,o){if(n.$attr.ngValue){var r,s=NaN;n.$observe("value",function(e){var t,o=i.prop("selected");he(s)&&(l.removeOption(r),delete l.selectValueMap[s],t=!0),s=je(e),r=e,l.selectValueMap[s]=e,l.addOption(e,i),i.attr("value",s),t&&o&&a()})}else t?n.$observe("value",function(e){l.readValue();var t,o=i.prop("selected");he(r)&&(l.removeOption(r),t=!0),r=e,l.addOption(e,i),t&&o&&a()}):o?e.$watch(o,function(e,t){n.$set("value",e);var o=i.prop("selected");t!==e&&l.removeOption(t),l.addOption(e,i),t&&o&&a()}):l.addOption(n.value,i);n.$observe("disabled",function(e){("true"===e||e&&i.prop("selected"))&&(l.multiple?a(!0):(l.ngModelCtrl.$setViewValue(null),l.ngModelCtrl.$render()))}),i.on("$destroy",function(){var e=l.readValue(),t=n.value;l.removeOption(t),l.ngModelCtrl.$render(),(l.multiple&&e&&-1!==e.indexOf(t)||e===t)&&a(!0)})}}],Ir=function(){return{restrict:"E",require:["select","?ngModel"],controller:Rr,priority:1,link:{pre:function(e,o,t,i){var n=i[0],r=i[1];if(r){if(n.ngModelCtrl=r,o.on("change",function(){n.removeUnknownOption(),e.$apply(function(){r.$setViewValue(n.readValue())})}),t.multiple){n.multiple=!0,n.readValue=function(){var t=[];return se(o.find("option"),function(e){e.selected&&!e.disabled&&(e=e.value,t.push(e in n.selectValueMap?n.selectValueMap[e]:e))}),t},n.writeValue=function(e){var t=new Fe(e);se(o.find("option"),function(e){e.selected=he(t.get(e.value))||he(t.get(n.selectValueMap[e.value]))})};var s,a=NaN;e.$watch(function(){a!==r.$viewValue||ye(s,r.$viewValue)||(s=B(r.$viewValue),r.$render()),a=r.$viewValue}),r.$isEmpty=function(e){return!e||0===e.length}}}else n.registerOption=ce},post:function(e,t,o,i){var n=i[1];if(n){var r=i[0];n.$render=function(){r.writeValue(n.$viewValue)}}}}}},Or=["$interpolate",function(o){return{restrict:"E",priority:100,compile:function(e,t){var n,r;return he(t.ngValue)||(he(t.value)?n=o(t.value,!0):(r=o(e.text(),!0))||t.$set("value",e.text())),function(e,t,o){var i=t.parent();(i=i.data("$selectController")||i.parent().data("$selectController"))&&i.registerOption(e,t,o,n,r)}}}}],zr=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,o,i){i&&(o.required=!0,i.$validators.required=function(e,t){return!o.required||!i.$isEmpty(t)},o.$observe("required",function(){i.$validate()}))}}},Nr=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,o,i){if(i){var n,r=o.ngPattern||o.pattern;o.$observe("pattern",function(e){if(fe(e)&&0<e.length&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw A("ngPattern")("noregexp",r,e,_e(t));n=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||ue(n)||n.test(t)}}}}},Pr=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,o,i){if(i){var n=-1;o.$observe("maxlength",function(e){e=d(e),n=Jo(e)?-1:e,i.$validate()}),i.$validators.maxlength=function(e,t){return n<0||i.$isEmpty(t)||t.length<=n}}}}},qr=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,o,i){if(i){var n=0;o.$observe("minlength",function(e){n=d(e)||0,i.$validate()}),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=n}}}}};re.angular.bootstrap?re.console&&console.log("WARNING: Tried to load angular more than once."):(function(){var n;if(!li){var e=ii();(Io=ue(e)?re.jQuery:e?re[e]:void 0)&&Io.fn.on?(ae((Ro=Io).fn,{scope:Ci.scope,isolateScope:Ci.isolateScope,controller:Ci.controller,injector:Ci.injector,inheritedData:Ci.inheritedData}),n=Io.cleanData,Io.cleanData=function(e){for(var t,o,i=0;null!=(o=e[i]);i++)(t=Io._data(o,"events"))&&t.$destroy&&Io(o).triggerHandler("$destroy");n(e)}):Ro=q,Yo.element=Ro,li=!0}}(),ae(Yo,{bootstrap:$,copy:k,extend:ae,merge:e,equals:ye,element:Ro,forEach:se,injector:Le,noop:ce,bind:xe,toJson:o,fromJson:n,identity:de,isUndefined:ue,isDefined:he,isString:fe,isFunction:ge,isObject:pe,isNumber:p,isElement:g,isArray:Zo,version:di,isDate:b,lowercase:Po,uppercase:qo,callbacks:{$$counter:0},getTestability:F,reloadWithDebugInfo:j,$$minErr:A,$$csp:oi,$$encodeUriSegment:x,$$encodeUriQuery:_,$$stringify:T}),(Oo=function(e){function t(e,t,o){return e[t]||(e[t]=o())}var d=A("$injector"),o=A("ng");return(e=t(e,"angular",Object)).$$minErr=e.$$minErr||A,t(e,"module",function(){var e={};return function(a,l,c){if("hasOwnProperty"===a)throw o("badname","module");return l&&e.hasOwnProperty(a)&&(e[a]=null),t(e,a,function(){function e(e,t,o,i){return i||(i=r),function(){return i[o||"push"]([e,t,arguments]),s}}function t(o,i,n){return n||(n=r),function(e,t){return t&&ge(t)&&(t.$$moduleName=a),n.push([o,i,arguments]),s}}if(!l)throw d("nomod",a);var r=[],o=[],i=[],n=e("$injector","invoke","push",o),s={_invokeQueue:r,_configBlocks:o,_runBlocks:i,requires:l,name:a,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator",o),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),component:t("$compileProvider","component"),config:n,run:function(e){return i.push(e),this}};return c&&n(c),s})}})}(re))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Ot}),e.provider("$compile",Ne).directive({a:jn,input:Un,textarea:Un,form:Mn,script:Tr,select:Ir,option:Or,ngBind:Yn,ngBindHtml:Jn,ngBindTemplate:Xn,ngClass:Qn,ngClassEven:tr,ngClassOdd:er,ngCloak:or,ngController:ir,ngForm:Tn,ngHide:$r,ngIf:sr,ngInclude:ar,ngInit:cr,ngNonBindable:yr,ngPluralize:Ar,ngRepeat:kr,ngShow:Er,ngStyle:Sr,ngSwitch:jr,ngSwitchWhen:Fr,ngSwitchDefault:Dr,ngOptions:Cr,ngTransclude:Mr,ngModel:vr,ngList:dr,ngChange:Zn,pattern:Nr,ngPattern:Nr,required:zr,ngRequired:zr,minlength:qr,ngMinlength:qr,maxlength:Pr,ngMaxlength:Pr,ngValue:Gn,ngModelOptions:wr}).directive({ngInclude:lr}).directive(Fn).directive(nr),e.provider({$anchorScroll:Me,$animate:Ii,$animateCss:Ni,$$animateJs:Bi,$$animateQueue:Ri,$$AnimateRunner:zi,$$animateAsyncRun:Oi,$browser:Ie,$cacheFactory:Oe,$controller:He,$document:Ue,$$isDocumentHidden:Ke,$exceptionHandler:Ge,$filter:Jt,$$forceReflow:Ki,$interpolate:rt,$interval:st,$http:ot,$httpParamSerializer:Xe,$httpParamSerializerJQLike:Je,$httpBackend:nt,$xhrFactory:it,$jsonpCallbacks:tn,$location:wt,$log:yt,$parse:Lt,$rootScope:It,$q:Mt,$$q:Tt,$sce:Pt,$sceDelegate:Nt,$sniffer:qt,$templateCache:ze,$templateRequest:Vt,$$testability:Wt,$timeout:Ht,$window:Gt,$$rAF:Rt,$$jqLite:Se,$$HashMap:$i,$$cookieReader:Xt})}]),Yo.module("ngLocale",[],["$provide",function(e){e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var o,i,n=0|e,r=t;return void 0===r&&(r=Math.min((o=e,-1==(i=(o+="").indexOf("."))?0:o.length-i-1),3)),Math.pow(10,r),1==n&&0==r?"one":"other"}})}]),Ro(function(){t(re.document,$)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(o){var i={};function n(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return o[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}n.m=o,n.c=i,n.p="",n(0)}([function(e,t,o){"use strict";o(1),o(3),o(4),o(5);var i=I(o(7)),n=I(o(9)),r=I(o(10)),s=I(o(12)),a=I(o(17)),l=I(o(19)),c=I(o(21)),d=I(o(23)),u=I(o(25)),h=I(o(27)),p=I(o(29)),f=I(o(31)),g=I(o(33)),m=I(o(35)),v=I(o(37)),b=I(o(39)),w=I(o(41)),y=I(o(43)),x=I(o(45)),_=I(o(47)),C=I(o(49)),A=I(o(51)),k=I(o(53)),E=I(o(55)),$=I(o(57)),S=I(o(59)),j=I(o(60)),F=I(o(62)),D=I(o(67)),L=I(o(69)),M=I(o(71)),T=I(o(73)),B=I(o(75)),R=I(o(76));function I(e){return e&&e.__esModule?e:{default:e}}o(77),angular.module("elfsightAppsEditor",["checklist-model","color.picker","angular-sortable-view","gettext"]).directive("elfsightAppsEditor",i.default).directive("control",n.default).directive("elfsightAppsControlText",r.default).directive("elfsightAppsControlTextarea",s.default).directive("elfsightAppsControlNumber",a.default).directive("elfsightAppsControlStaticHtml",l.default).directive("elfsightAppsControlSelect",c.default).directive("elfsightAppsControlSelectInline",d.default).directive("elfsightAppsControlSelectVisual",u.default).directive("elfsightAppsControlTags",h.default).directive("elfsightAppsControlToggle",p.default).directive("elfsightAppsControlChecklist",f.default).directive("elfsightAppsControlColor",g.default).directive("elfsightAppsControlComplex",m.default).directive("elfsightAppsControlFormComplex",v.default).directive("elfsightAppsControlSubgroup",b.default).directive("elfsightAppsControlDivider",w.default).directive("elfsightAppsControlFile",A.default).directive("elfsightAppsControlCustomGoogleMapsCoordinates",y.default).directive("elfsightAppsControlCustomFacebookFeedToken",x.default).directive("elfsightAppsControlCustomTwitterFeedToken",_.default).directive("elfsightAppsControlCustomInstagramToken",C.default).directive("elfsightAppsSub",k.default).directive("elfsightAppsVisual",$.default).directive("editorHint",S.default).directive("elfsightAppsEditorToolbar",j.default).directive("elfsightAppsEditorToolbarResolution",F.default).directive("elfsightAppsEditorToolbarBackground",D.default).directive("elfsightAppsTemplates",E.default).factory("$elfsightAppsEditor",L.default).factory("$sub",M.default).factory("$visual",T.default).factory("$l10n",B.default).factory("$utils",R.default).config(["$provide",function(e){e.decorator("ColorPickerOptions",["$delegate",function(e){var t=angular.copy(e);return t.saturation=!1,t.lightness=!1,t.format="rgb",t}])}]).run(["$rootScope",function(e){}]),o(93)},function(e,t,o){var i;i=function(d){"use strict";function e(e){e.put("template/color-picker/directive.html",'<div class="color-picker-wrapper" ng-class="{\'color-picker-disabled\': AngularColorPickerController.options.disabled,\'color-picker-swatch-only\': AngularColorPickerController.options.swatchOnly,\'color-picker-open\': AngularColorPickerController.is_open,\'color-picker-closed\': !AngularColorPickerController.is_open,\'color-picker-horizontal\': AngularColorPickerController.options.horizontal,}"><div class="color-picker-input-wrapper" ng-class="{\'input-group\': AngularColorPickerController.options.swatchBootstrap && AngularColorPickerController.options.swatch}"><span ng-if="AngularColorPickerController.options.swatchPos === \'left\'" class="color-picker-swatch" ng-click="AngularColorPickerController.onSwatchClick($event)" ng-show="AngularColorPickerController.options.swatch" ng-class="{\'color-picker-swatch-left\': AngularColorPickerController.options.swatchPos !== \'right\', \'color-picker-swatch-right\': AngularColorPickerController.options.swatchPos === \'right\', \'input-group-addon\': AngularColorPickerController.options.swatchBootstrap}"></span><input ng-attr-id="{{AngularColorPickerController.options.id}}" ng-attr-name="{{AngularColorPickerController.options.name}}" class="color-picker-input {{AngularColorPickerController.options.inputClass}}" type="text" ng-model="AngularColorPickerController.internalNgModel" ng-model-options="AngularColorPickerController.ngModelOptions" ng-readonly="AngularColorPickerController.options.swatchOnly" ng-disabled="AngularColorPickerController.options.disabled" ng-change="AngularColorPickerController.onChange($event)" size="7" ng-class="{\'color-picker-input-swatch\': AngularColorPickerController.options.swatch && !AngularColorPickerController.options.swatchOnly && AngularColorPickerController.options.swatchPos === \'left\'}" placeholder="{{AngularColorPickerController.options.placeholder}}" ng-required="AngularColorPickerController.options.required"><span ng-if="AngularColorPickerController.options.swatchPos === \'right\'" class="color-picker-swatch" ng-click="AngularColorPickerController.onSwatchClick($event)" ng-show="AngularColorPickerController.options.swatch" ng-class="{\'color-picker-swatch-left\': AngularColorPickerController.options.swatchPos !== \'right\', \'color-picker-swatch-right\': AngularColorPickerController.options.swatchPos === \'right\', \'input-group-addon\': AngularColorPickerController.options.swatchBootstrap}"></span></div><div class="color-picker-panel" ng-class="{\'color-picker-panel-top color-picker-panel-right\': AngularColorPickerController.options.pos === \'top right\',\'color-picker-panel-top color-picker-panel-left\': AngularColorPickerController.options.pos === \'top left\',\'color-picker-panel-bottom color-picker-panel-right\': AngularColorPickerController.options.pos === \'bottom right\',\'color-picker-panel-bottom color-picker-panel-left\': AngularColorPickerController.options.pos === \'bottom left\',\'color-picker-panel-round\': AngularColorPickerController.options.round,\'color-picker-show-hue\': AngularColorPickerController.options.hue,\'color-picker-show-saturation\': AngularColorPickerController.options.saturation,\'color-picker-show-lightness\': AngularColorPickerController.options.lightness,\'color-picker-show-alpha\': AngularColorPickerController.options.alpha && AngularColorPickerController.options.format !== \'hex\',\'color-picker-show-inline\': AngularColorPickerController.options.inline,}"><div class="color-picker-grid-wrapper"><div class="color-picker-row"><div class="color-picker-grid"><div class="color-picker-overlay"></div><div class="color-picker-grid-inner"></div><div class="color-picker-picker"><div></div></div></div><div class="color-picker-hue" ng-show="AngularColorPickerController.options.hue"><div class="color-picker-overlay"></div><div class="color-picker-slider"></div></div><div class="color-picker-saturation" ng-show="AngularColorPickerController.options.saturation"><div class="color-picker-overlay"></div><div class="color-picker-slider"></div></div><div class="color-picker-lightness" ng-show="AngularColorPickerController.options.lightness"><div class="color-picker-overlay"></div><div class="color-picker-slider"></div></div><div class="color-picker-opacity" ng-show="AngularColorPickerController.options.alpha && AngularColorPickerController.options.format !== \'hex\'"><div class="color-picker-overlay"></div><div class="color-picker-slider"></div></div></div></div><div class="color-picker-actions"><button type="button"class="color-picker-action color-picker-action-clear"tabindex="-1"ng-class="AngularColorPickerController.options.clear.class"ng-show="AngularColorPickerController.options.clear.show"ng-click="AngularColorPickerController.api.clear($event)">{{AngularColorPickerController.options.clear.label}}</button><button type="button"class="color-picker-action color-picker-action-reset"tabindex="-1"ng-class="AngularColorPickerController.options.reset.class"ng-show="AngularColorPickerController.options.reset.show"ng-click="AngularColorPickerController.api.reset($event)">{{AngularColorPickerController.options.reset.label}}</button><button type="button"class="color-picker-action color-picker-action-close"tabindex="-1"ng-class="AngularColorPickerController.options.close.class"ng-show="AngularColorPickerController.options.close.show"ng-click="AngularColorPickerController.api.close($event)">{{AngularColorPickerController.options.close.label}}</button></div></div></div>')}e.$inject=["o"],d=d&&d.hasOwnProperty("default")?d.default:d;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=("function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator,function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),t=function(){function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e}}(),o=function(){function r(e,t,o,i,n){s(this,r),this.$scope=e,this.$element=t,this.$document=o,this.$timeout=i,this.ColorPickerOptions=n,this.$scope.init=this.init.bind(this),this.ngModelOptions={},this.hue=0,this.saturation=void 0,this.lightness=void 0,this.opacity=void 0,this.basicEventTypes=["hue","saturation","lightness","opacity"],this.fullEventTypes=["color","hue","saturation","lightness","opacity"]}return t(r,[{key:"init",value:function(){this.$scope.control[0].$options&&this.$scope.control[0].$options.$$options&&(this.ngModelOptions=this.$scope.control[0].$options.$$options),this.chrome=Boolean(window.chrome);var e=window.navigator.userAgent.match(/Android\s([0-9\.]*)/i);this.android_version=e&&1<e.length?parseFloat(e[1]):NaN,this.updateModel=!0,this.initWatchers(),this.initConfig(),this.initMouseEvents()}},{key:"initConfig",value:function(){this.options||(this.options={}),this.mergeOptions(this.options,this.ColorPickerOptions),this.is_open=this.options.inline,this.options.inline&&(this.options.close.show=!1),this.pickerDimensions={width:150,height:150},this.sliderDimensions={width:this.options.horizontal?this.pickerDimensions.width:20,height:this.options.horizontal?20:this.pickerDimensions.height}}},{key:"mergeOptions",value:function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e&&e.hasOwnProperty(o)?"object"===i(t[o])&&this.mergeOptions(e[o],t[o]):e[o]=t[o])}},{key:"initWatchers",value:function(){var t=this;this.$scope.$watch("AngularColorPickerController.internalNgModel",this.watchInternalNgModel.bind(this)),this.$scope.$watch("AngularColorPickerController.ngModel",this.watchNgModel.bind(this)),this.$scope.$watch("AngularColorPickerController.options.swatchPos",function(e){void 0!==e&&(t.initConfig(),t.$timeout(function(){t.updateSwatchBackground()}))}),this.$scope.$watchGroup(["AngularColorPickerController.options.format","AngularColorPickerController.options.alpha","AngularColorPickerController.options.case","AngularColorPickerController.options.round","AngularColorPickerController.options.restrictToFormat","AngularColorPickerController.options.preserveInputFormat","AngularColorPickerController.options.allowEmpty","AngularColorPickerController.options.horizontal","AngularColorPickerController.options.dynamicHue","AngularColorPickerController.options.dynamicSaturation","AngularColorPickerController.options.dynamicLightness","AngularColorPickerController.options.dynamicAlpha"],function(e){void 0!==e&&(t.initConfig(),t.update())}),this.$scope.$watchGroup(["AngularColorPickerController.options.disabled","AngularColorPickerController.options.swatchBootstrap","AngularColorPickerController.options.swatchOnly","AngularColorPickerController.options.swatch","AngularColorPickerController.options.pos","AngularColorPickerController.options.inline","AngularColorPickerController.options.placeholder"],function(e){void 0!==e&&t.initConfig()}),this.$scope.$watch("AngularColorPickerController.api",this.setupApi.bind(this)),this.$scope.$watch("AngularColorPickerController.swatchColor",this.updateSwatchBackground.bind(this)),this.$scope.$watch("AngularColorPickerController.hue",function(){t.valueUpdate("hue")}),this.$scope.$watch("AngularColorPickerController.saturation",function(){t.valueUpdate("saturation")}),this.$scope.$watch("AngularColorPickerController.lightness",function(){t.valueUpdate("lightness")}),this.$scope.$watch("AngularColorPickerController.opacity",function(){t.valueUpdate("opacity")})}},{key:"watchInternalNgModel",value:function(e,t){this.colorMouse||this.watchNgModelSet(e)}},{key:"watchNgModel",value:function(e,t){void 0===e||this.hasOwnProperty("initialNgModel")||(this.initialNgModel=e),this.checkDirty(e),this.internalNgModel=this.ngModelOptions.getterSetter?this.ngModel():this.ngModel,this.colorMouse||this.watchNgModelSet(e)}},{key:"watchNgModelSet",value:function(e){var t=this;if(null!=e){var o=d(e),i=this.isColorValid(o);i&&(this.setColorValue(o),this.updateModel=!1,this.$timeout(function(){t.updateModel=!0})),this.$scope.control[0].$setValidity("color",i)}else null!==e&&""!==e||(this.hue=0,this.saturation=void 0,this.lightness=void 0,this.opacity=void 0),this.swatchColor=""}},{key:"initMouseEvents",value:function(){var t=this,e={mouseDown:this.onMouseDown.bind(this),mouseUp:this.onMouseUp.bind(this),mouseMove:this.onMouseMove.bind(this),keyUp:this.onKeyUp.bind(this)};this.$document.on("mousedown",e.mouseDown),this.$document.on("mouseup",e.mouseUp),this.$document.on("mousemove",e.mouseMove),this.$document.on("touchstart",e.mouseDown),this.$document.on("touchend",e.mouseUp),this.$document.on("touchmove",e.mouseMove),this.$document.on("keyup",e.keyUp),this.find(".color-picker-grid").on("click",function(e){t.onClick("color",e)}),this.find(".color-picker-grid").on("touchend",function(e){t.onClick("color",e)}),this.find(".color-picker-hue").on("click",function(e){t.onClick("hue",e)}),this.find(".color-picker-hue").on("touchend",function(e){t.onClick("hue",e)}),this.find(".color-picker-saturation").on("click",function(e){t.onClick("saturation",e)}),this.find(".color-picker-saturation").on("touchend",function(e){t.onClick("saturation",e)}),this.find(".color-picker-lightness").on("click",function(e){t.onClick("lightness",e)}),this.find(".color-picker-lightness").on("touchend",function(e){t.onClick("lightness",e)}),this.find(".color-picker-opacity").on("click",function(e){t.onClick("opacity",e)}),this.find(".color-picker-opacity").on("touchend",function(e){t.onClick("opacity",e)}),this.find(".color-picker-input").on("focusin",this.onFocus.bind(this)),this.find(".color-picker-input").on("focusout",this.onBlur.bind(this)),this.$scope.$on("$destroy",function(){t.$document.off("mousedown",e.mouseDown),t.$document.off("mouseup",e.mouseUp),t.$document.off("mousemove",e.mouseMove),t.$document.off("touchstart",e.mouseDown),t.$document.off("touchend",e.mouseUp),t.$document.off("touchmove",e.mouseMove),t.$document.off("keyup",e.keyUp),t.eventApiDispatch("onDestroy")})}},{key:"onMouseDown",value:function(e){if(this.has_moused_moved=!1,this.options.disabled||0===this.find(e.target).length)return!0;for(var t=0;t<this.fullEventTypes.length;t++)this.onMouseDownType(this.fullEventTypes[t],e)}},{key:"onMouseDownType",value:function(e,t){"color"===e&&(t.target.classList.contains("color-picker-grid-inner")||t.target.classList.contains("color-picker-picker")||t.target.parentNode.classList.contains("color-picker-picker"))?this.mouseEventToggle(e,!1,t):(t.target.classList.contains("color-picker-"+e)||t.target.parentNode.classList.contains("color-picker-"+e))&&this.mouseEventToggle(e,!1,t)}},{key:"onMouseUp",value:function(e){if(this.anyMouseEvents()||0!==this.find(e.target).length)for(var t=0;t<this.fullEventTypes.length;t++)this.onMouseUpType(this.fullEventTypes[t],e);else this.setupApi(),this.options.hide.click&&this.api.close(e),this.$scope.$apply()}},{key:"onMouseUpType",value:function(e,t){this[e+"Mouse"]&&this.has_moused_moved&&(this.mouseEventToggle(e,!0,t),this.onChange(t))}},{key:"onMouseMove",value:function(e){for(var t=0;t<this.fullEventTypes.length;t++)this.onMouseMoveType(this.fullEventTypes[t],e)}},{key:"onMouseMoveType",value:function(e,t){this[e+"Mouse"]&&(this.has_moused_moved=!0,this.valueChange(e,t),this.$scope.$apply())}},{key:"onKeyUp",value:function(e){this.options.hide.escape&&27===e.keyCode&&this.api.close(e)}},{key:"onClick",value:function(e,t){this.options.disabled||this.has_moused_moved||(this.valueChange(e,t),this.mouseEventToggle(e,!0,t),this.onChange(t))}},{key:"onChange",value:function(e){this.internalNgModel!==this.onChangeValue&&(this.onChangeValue=this.internalNgModel,this.eventApiDispatch("onChange",[e]))}},{key:"onBlur",value:function(e){this.internalNgModel!==this.onChangeValue&&(this.updateModel=!0,this.update()),this.$scope.control[0].$setTouched(),this.eventApiDispatch("onBlur",[e]),this.options.hide.blur&&0===this.find(e.relatedTarget).length&&this.api.close(e)}},{key:"onSwatchClick",value:function(e){this.options.show.swatch&&!this.options.disabled&&this.api.open(e)}},{key:"onFocus",value:function(e){this.options.show.focus&&this.api.open(e)}},{key:"setupApi",value:function(){var o=this;this.api||(this.api={}),this.api.open=function(e){if(o.is_open)return!0;o.is_open=!0,o.hueMouse=!1,o.opacityMouse=!1,o.colorMouse=!1,o.$scope.$applyAsync();for(var t=0;t<o.basicEventTypes.length;t++)o.valueUpdate(o.basicEventTypes[t]);o.eventApiDispatch("onOpen",[e])},this.api.close=function(e){o.options.inline||!o.is_open&&null===o.$element[0].querySelector(".color-picker-panel").offsetParent||(o.is_open=!1,o.$scope.$applyAsync(),o.update(),o.eventApiDispatch("onClose",[e]))},this.api.clear=function(e){o.setNgModel(null),o.eventApiDispatch("onClear",[e])},this.api.reset=function(e){o.internalNgModel!==o.initialNgModel&&(o.setNgModel(o.initialNgModel),o.eventApiDispatch("onReset",[e]))},this.api.getElement=function(){return o.$element},this.api.getScope=function(){return o.$scope}}},{key:"setNgModel",value:function(e){this.internalNgModel=e,this.ngModelOptions.getterSetter?this.ngModel(e):this.ngModel=e}},{key:"update",value:function(){if(!this.areAllValuesSet())return!1;var e=d(this.getColorValue());this.swatchColor=e.toHslString(),this.updateGridBackground(e),this.updateHueBackground(e),this.huePosUpdate(),this.updateSaturationBackground(e),this.saturationPosUpdate(),this.updateLightnessBackground(e),this.lightnessPosUpdate(),this.updateOpacityBackground(e),this.opacityPosUpdate();var t=this.options.preserveInputFormat&&d(this.internalNgModel).toHsvString()===e.toHsvString();if(this.updateModel&&!t){var o=e[{rgb:"toRgbString",hex:"toHex",hex8:"toHex8",hexstring:"toHexString",hex8string:"toHex8String",hsv:"toHsvString",hsl:"toHslString",raw:"clone"}[this.options.format.toLowerCase()]]();this.options.format.match(/hex/i)&&(o="upper"===this.options.case?o.toUpperCase():o.toLowerCase()),this.setNgModel(o)}}},{key:"mouseEventToggle",value:function(e,t,o){this.stopEvent(o),this[e+"Mouse"]=!t,this.$scope.$apply()}},{key:"valueChange",value:function(e,t){if(this.stopEvent(t),"color"===e)return this.colorChange(t);var o=this.find(".color-picker-"+e),i=this.getEventPos(t),n=this.getMaxFromType(e);this[e]=this.calculateSliderPos(o,i,n),this[e]>n?this[e]=n:this[e]<0&&(this[e]=0)}},{key:"valueUpdate",value:function(e){if(void 0!==this[e]){if("saturation"===e)this[e+"Pos"]=this[e];else{var t=this.getMaxFromType(e);this[e+"Pos"]=100*(1-this[e]/t)}this[e+"Pos"]<0?this[e+"Pos"]=0:100<this[e+"Pos"]&&(this[e+"Pos"]=100),this.options.round&&(this.getRoundPos(),this.updateRoundPos()),this[e+"PosUpdate"](),this.update()}}},{key:"huePosUpdate",value:function(){var e=angular.element(this.$element[0].querySelector(".color-picker-hue .color-picker-slider"));this.options.horizontal?e.css({left:this.sliderDimensions.width*this.huePos/100+"px",top:0}):e.css({left:0,top:this.sliderDimensions.height*this.huePos/100+"px"})}},{key:"updateHueBackground",value:function(e){var t=this.find(".color-picker-hue .color-picker-overlay"),o=this.options.horizontal?"left":"top",i=this.getColorValue(this.options.dynamicHue),n=this.getColorValue(this.options.dynamicHue),r=this.getColorValue(this.options.dynamicHue),s=this.getColorValue(this.options.dynamicHue),a=this.getColorValue(this.options.dynamicHue),l=this.getColorValue(this.options.dynamicHue),c=this.getColorValue(this.options.dynamicHue);i.h=0,n.h=60,r.h=120,s.h=180,a.h=240,l.h=300,c.h=359,t.css({background:"linear-gradient(to "+o+", "+d(i).toRgbString()+" 0%, "+d(n).toRgbString()+" 17%, "+d(r).toRgbString()+" 33%, "+d(s).toRgbString()+" 50%, "+d(a).toRgbString()+" 67%, "+d(l).toRgbString()+" 83%, "+d(c).toRgbString()+" 100%)"})}},{key:"saturationPosUpdate",value:function(){var e;this.options.round||(e=angular.element(this.$element[0].querySelector(".color-picker-grid .color-picker-picker"))).css({left:this.pickerDimensions.height*this.saturationPos/100+"px"}),e=angular.element(this.$element[0].querySelector(".color-picker-saturation .color-picker-slider")),this.options.horizontal?e.css({left:this.sliderDimensions.width*(100-this.saturationPos)/100+"px",top:0}):e.css({left:0,top:this.sliderDimensions.height*(100-this.saturationPos)/100+"px"})}},{key:"updateSaturationBackground",value:function(e){var t=this.find(".color-picker-saturation .color-picker-overlay"),o=this.options.horizontal?"right":"bottom",i=this.getColorValue(this.options.dynamicSaturation),n=this.getColorValue(this.options.dynamicSaturation);i.s="100%",n.s="0%",t.css({background:"linear-gradient(to "+o+", "+d(i).toRgbString()+" 0%, "+d(n).toRgbString()+" 100%)"})}},{key:"lightnessPosUpdate",value:function(){var e;this.options.round||(e=angular.element(this.$element[0].querySelector(".color-picker-grid .color-picker-picker"))).css({top:this.pickerDimensions.width*this.lightnessPos/100+"px"}),e=angular.element(this.$element[0].querySelector(".color-picker-lightness .color-picker-slider")),this.options.horizontal?e.css({left:this.sliderDimensions.width*this.lightnessPos/100+"px",top:0}):e.css({left:0,top:this.sliderDimensions.height*this.lightnessPos/100+"px"})}},{key:"updateLightnessBackground",value:function(e){var t=this.find(".color-picker-lightness .color-picker-overlay"),o=this.options.horizontal?"right":"bottom",i=this.getColorValue(this.options.dynamicLightness),n=this.getColorValue(this.options.dynamicLightness),r=this.getColorValue(this.options.dynamicLightness);this.options.round?(i.l=100,n.l=50,r.l=0):(i.v=100,n.v=50,r.v=0),t.css({background:"linear-gradient(to "+o+", "+d(i).toRgbString()+" 0%, "+d(n).toRgbString()+" 50%, "+d(r).toRgbString()+" 100%)"})}},{key:"opacityPosUpdate",value:function(){var e=angular.element(this.$element[0].querySelector(".color-picker-opacity .color-picker-slider"));this.options.horizontal?e.css({left:this.sliderDimensions.width*this.opacityPos/100+"px",top:0}):e.css({left:0,top:this.sliderDimensions.height*this.opacityPos/100+"px"})}},{key:"updateOpacityBackground",value:function(e){var t=this.find(".color-picker-opacity .color-picker-overlay"),o=this.options.horizontal?"right":"bottom",i=this.getColorValue(this.options.dynamicAlpha),n=this.getColorValue(this.options.dynamicAlpha);i.a=1,n.a=0,t.css({background:"linear-gradient(to "+o+", "+d(i).toRgbString()+" 0%, "+d(n).toRgbString()+" 100%)"})}},{key:"colorChange",value:function(e){this.stopEvent(e);var t=this.find(".color-picker-grid-inner"),o=this.getEventPos(e),i=this.offset(t);this.options.round?this.colorChangeRound(t,i,o):this.colorChangeSquare(t,i,o)}},{key:"colorChangeRound",value:function(e,t,o){var i=2*(o.pageX-t.left)/e.prop("offsetWidth")-1,n=-2*(o.pageY-t.top)/e.prop("offsetHeight")+1,r=Math.atan2(n,i),s=Math.round(57.29577951308233*r);s<0&&(s+=360),this.hue=s;var a=Math.sqrt(i*i+n*n);1<a?a=1:a<0&&(a=0),this.saturation=100*a,void 0===this.lightness&&(this.lightness=50)}},{key:"colorChangeSquare",value:function(e,t,o){this.saturation=(o.pageX-t.left)/e.prop("offsetWidth")*100,this.lightness=100*(1-(o.pageY-t.top)/e.prop("offsetHeight")),100<this.saturation?this.saturation=100:this.saturation<0&&(this.saturation=0),100<this.lightness?this.lightness=100:this.lightness<0&&(this.lightness=0)}},{key:"updateGridBackground",value:function(e){var t=this.find(".color-picker-grid .color-picker-overlay"),o=this.getColorValue();this.options.round?o.s="0%":(o.s="100%",o.v="100%",o.a=1),t.css({"background-color":d(o).toRgbString(),opacity:e.getAlpha()}),this.find(".color-picker-grid .color-picker-grid-inner").css({opacity:e.getAlpha()})}},{key:"updateSwatchBackground",value:function(){angular.element(this.$element[0].querySelector(".color-picker-swatch")).css({"background-color":this.swatchColor})}},{key:"isColorValid",value:function(e){var t=e.isValid();if(t&&this.options.restrictToFormat&&(t=e.getFormat()===this.getTinyColorFormat()),!t&&this.options.allowEmpty){var o=e.getOriginalInput();null!=o&&""!==o||(t=!0)}return t}},{key:"getTinyColorFormat",value:function(){return"hexString"===this.options.format?"hex":"hex8String"===this.options.format?"hex8":this.options.format}},{key:"areAllValuesSet",value:function(){return void 0!==this.hue&&void 0!==this.saturation&&void 0!==this.lightness}},{key:"getColorValue",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],o={h:this.hue,s:e?this.saturation+"%":"100%",v:e?this.lightness+"%":"100%"};return this.options.round&&(o={h:this.hue,s:e?this.saturation+"%":"100%",l:e?this.lightness+"%":"50%"}),t&&(o.a=e?this.opacity/100:1),o}},{key:"setColorValue",value:function(e){var t=!this.anyMouseEvents(),o=this.options.round?e.toHsl():e.toHsv();(t||this.hueMouse)&&(this.hue=o.h),(t||this.saturationMouse)&&(this.saturation=100*o.s),(t||this.lightnessMouse)&&(this.lightness=100*(this.options.round?o.l:o.v)),this.options.alpha&&(t||this.opacityMouse)&&(this.opacity=100*o.a)}},{key:"checkDirty",value:function(e){this.hasOwnProperty("initialNgModel")&&(e===this.initialNgModel?"function"==typeof this.$scope.control[0].$setPristine&&this.$scope.control[0].$setPristine():"function"==typeof this.$scope.control[0].$setDirty&&this.$scope.control[0].$setDirty())}},{key:"stopEvent",value:function(e){e.stopPropagation(),e.preventDefault()}},{key:"getRoundPos",value:function(){var e=.01745329251994*this.hue,t=Math.cos(e)*this.saturation,o=-Math.sin(e)*this.saturation;if(this.xPos=.5*(t+100),this.yPos=.5*(o+100),Math.pow(50-this.xPos,2)+Math.pow(50-this.yPos,2)>Math.pow(50,2)){var i=Math.atan2(this.yPos-50,this.xPos-50);this.xPos=50*Math.cos(i)+50,this.yPos=50*Math.sin(i)+50}}},{key:"updateRoundPos",value:function(){angular.element(this.$element[0].querySelector(".color-picker-grid .color-picker-picker")).css({left:this.pickerDimensions.width*this.xPos/100+"px",top:this.pickerDimensions.height*this.yPos/100+"px"})}},{key:"getEventPos",value:function(e){if(0===e.type.search("touch")){if(e.originalEvent&&e.originalEvent.changedTouches)return e.originalEvent.changedTouches[0];if(e.changedTouches)return e.changedTouches[0]}return e}},{key:"calculateSliderPos",value:function(e,t,o){return this.options.horizontal?Math.round((1-(t.pageX-this.offset(e).left)/e.prop("offsetWidth"))*o):Math.round((1-(t.pageY-this.offset(e).top)/e.prop("offsetHeight"))*o)}},{key:"eventApiDispatch",value:function(e,t){this.eventApi&&"function"==typeof this.eventApi[e]&&(t||(t=[]),t.unshift(this.internalNgModel),t.unshift(this.api),this.eventApi[e].apply(this,t))}},{key:"find",value:function(e){var t,o=this.wrapper?this.wrapper[0]:this.$element[0],i=[];if(!e)return i;if("string"==typeof e){if(1!==(t=o.nodeType)&&9!==t)return[];i=o.querySelectorAll(e)}else o.contains(e)&&i.push(e);return angular.element(i)}},{key:"offset",value:function(e){var t,o,i,n,r=e[0];if(r)return r.getClientRects().length?(i=r.getBoundingClientRect()).width||i.height?(n=r.ownerDocument,o=this.getWindowElements(n),t=n.documentElement,this.chrome&&this.android_version<6&&screen.width<=768?{top:i.top-t.clientTop,left:i.left-t.clientLeft}:{top:i.top+o.pageYOffset-t.clientTop,left:i.left+o.pageXOffset-t.clientLeft}):i:{top:0,left:0}}},{key:"getWindowElements",value:function(e){return null!==e&&e===e.window?e:9===e.nodeType&&e.defaultView}},{key:"anyMouseEvents",value:function(){return this.colorMouse||this.hueMouse||this.saturationMouse||this.lightnessMouse||this.opacityMouse}},{key:"getMaxFromType",value:function(e){return"hue"===e?360:100}}]),r}();return o.$inject=["$scope","$element","$document","$timeout","ColorPickerOptions"],e.$inject=["$templateCache"],angular.module("color.picker",[]).service("ColorPickerOptions",function e(){return s(this,e),{id:void 0,name:void 0,required:!1,disabled:!1,placeholder:"",inputClass:"",restrictToFormat:!1,preserveInputFormat:!1,allowEmpty:!1,format:"hsl",case:"upper",hue:!0,saturation:!1,lightness:!1,alpha:!0,dynamicHue:!0,dynamicSaturation:!0,dynamicLightness:!0,dynamicAlpha:!0,round:!1,pos:"bottom left",inline:!1,horizontal:!1,swatch:!0,swatchOnly:!1,swatchPos:"left",swatchBootstrap:!0,show:{swatch:!0,focus:!0},hide:{blur:!0,escape:!0,click:!0},close:{show:!1,label:"Close",class:""},clear:{show:!1,label:"Clear",class:""},reset:{show:!1,label:"Reset",class:""}}}).directive("colorPicker",function(){return{restrict:"E",require:["^ngModel"],scope:{ngModel:"=",options:"=?",api:"=?",eventApi:"=?"},bindToController:!0,templateUrl:"template/color-picker/directive.html",controller:o,controllerAs:"AngularColorPickerController",link:function(e,t,o,i){e.control=i,e.init()}}}).run(e)},e.exports=i(o(2))},function(P,q,V){var W;!function(u){var h=/^\s+/,p=/\s+$/,i=0,s=u.round,f=u.min,g=u.max,e=u.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var o=function(e){var t={r:0,g:0,b:0},o=1,i=null,n=null,r=null,s=!1,a=!1;"string"==typeof e&&(e=function(e){e=e.replace(h,"").replace(p,"").toLowerCase();var t,o=!1;if(E[e])e=E[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=z.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=z.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=z.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=z.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=z.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=z.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=z.hex8.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),a:B(t[4]),format:o?"name":"hex8"};if(t=z.hex6.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),format:o?"name":"hex"};if(t=z.hex4.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),a:B(t[4]+""+t[4]),format:o?"name":"hex8"};if(t=z.hex3.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),format:o?"name":"hex"};return!1}(e));"object"==typeof e&&(N(e.r)&&N(e.g)&&N(e.b)?(l=e.r,c=e.g,d=e.b,t={r:255*j(l,255),g:255*j(c,255),b:255*j(d,255)},s=!0,a="%"===String(e.r).substr(-1)?"prgb":"rgb"):N(e.h)&&N(e.s)&&N(e.v)?(i=M(e.s),n=M(e.v),t=function(e,t,o){e=6*j(e,360),t=j(t,100),o=j(o,100);var i=u.floor(e),n=e-i,r=o*(1-t),s=o*(1-n*t),a=o*(1-(1-n)*t),l=i%6;return{r:255*[o,s,r,r,a,o][l],g:255*[a,o,o,s,r,r][l],b:255*[r,r,a,o,o,s][l]}}(e.h,i,n),s=!0,a="hsv"):N(e.h)&&N(e.s)&&N(e.l)&&(i=M(e.s),r=M(e.l),t=function(e,t,o){var i,n,r;function s(e,t,o){return o<0&&(o+=1),1<o&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}if(e=j(e,360),t=j(t,100),o=j(o,100),0===t)i=n=r=o;else{var a=o<.5?o*(1+t):o+t-o*t,l=2*o-a;i=s(l,a,e+1/3),n=s(l,a,e),r=s(l,a,e-1/3)}return{r:255*i,g:255*n,b:255*r}}(e.h,i,r),s=!0,a="hsl"),e.hasOwnProperty("a")&&(o=e.a));var l,c,d;return o=S(o),{ok:s,format:e.format||a,r:f(255,g(t.r,0)),g:f(255,g(t.g,0)),b:f(255,g(t.b,0)),a:o}}(e);this._originalInput=e,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=s(100*this._a)/100,this._format=t.format||o.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=o.ok,this._tc_id=i++}function n(e,t,o){e=j(e,255),t=j(t,255),o=j(o,255);var i,n,r=g(e,t,o),s=f(e,t,o),a=(r+s)/2;if(r==s)i=n=0;else{var l=r-s;switch(n=.5<a?l/(2-r-s):l/(r+s),r){case e:i=(t-o)/l+(t<o?6:0);break;case t:i=(o-e)/l+2;break;case o:i=(e-t)/l+4}i/=6}return{h:i,s:n,l:a}}function r(e,t,o){e=j(e,255),t=j(t,255),o=j(o,255);var i,n,r=g(e,t,o),s=f(e,t,o),a=r,l=r-s;if(n=0===r?0:l/r,r==s)i=0;else{switch(r){case e:i=(t-o)/l+(t<o?6:0);break;case t:i=(o-e)/l+2;break;case o:i=(e-t)/l+4}i/=6}return{h:i,s:n,v:a}}function t(e,t,o,i){var n=[L(s(e).toString(16)),L(s(t).toString(16)),L(s(o).toString(16))];return i&&n[0].charAt(0)==n[0].charAt(1)&&n[1].charAt(0)==n[1].charAt(1)&&n[2].charAt(0)==n[2].charAt(1)?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function a(e,t,o,i){return[L(T(i)),L(s(e).toString(16)),L(s(t).toString(16)),L(s(o).toString(16))].join("")}function o(e,t){t=0===t?0:t||10;var o=d(e).toHsl();return o.s-=t/100,o.s=F(o.s),d(o)}function l(e,t){t=0===t?0:t||10;var o=d(e).toHsl();return o.s+=t/100,o.s=F(o.s),d(o)}function c(e){return d(e).desaturate(100)}function m(e,t){t=0===t?0:t||10;var o=d(e).toHsl();return o.l+=t/100,o.l=F(o.l),d(o)}function v(e,t){t=0===t?0:t||10;var o=d(e).toRgb();return o.r=g(0,f(255,o.r-s(-t/100*255))),o.g=g(0,f(255,o.g-s(-t/100*255))),o.b=g(0,f(255,o.b-s(-t/100*255))),d(o)}function b(e,t){t=0===t?0:t||10;var o=d(e).toHsl();return o.l-=t/100,o.l=F(o.l),d(o)}function w(e,t){var o=d(e).toHsl(),i=(o.h+t)%360;return o.h=i<0?360+i:i,d(o)}function y(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function x(e){var t=d(e).toHsl(),o=t.h;return[d(e),d({h:(o+120)%360,s:t.s,l:t.l}),d({h:(o+240)%360,s:t.s,l:t.l})]}function _(e){var t=d(e).toHsl(),o=t.h;return[d(e),d({h:(o+90)%360,s:t.s,l:t.l}),d({h:(o+180)%360,s:t.s,l:t.l}),d({h:(o+270)%360,s:t.s,l:t.l})]}function C(e){var t=d(e).toHsl(),o=t.h;return[d(e),d({h:(o+72)%360,s:t.s,l:t.l}),d({h:(o+216)%360,s:t.s,l:t.l})]}function A(e,t,o){t=t||6,o=o||30;var i=d(e).toHsl(),n=360/o,r=[d(e)];for(i.h=(i.h-(n*t>>1)+720)%360;--t;)i.h=(i.h+n)%360,r.push(d(i));return r}function k(e,t){t=t||6;for(var o=d(e).toHsv(),i=o.h,n=o.s,r=o.v,s=[],a=1/t;t--;)s.push(d({h:i,s:n,v:r})),r=(r+a)%1;return s}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,o,i=this.toRgb();return e=i.r/255,t=i.g/255,o=i.b/255,.2126*(e<=.03928?e/12.92:u.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:u.pow((t+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:u.pow((o+.055)/1.055,2.4))},setAlpha:function(e){return this._a=S(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=r(this._r,this._g,this._b),t=s(360*e.h),o=s(100*e.s),i=s(100*e.v);return 1==this._a?"hsv("+t+", "+o+"%, "+i+"%)":"hsva("+t+", "+o+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=n(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=n(this._r,this._g,this._b),t=s(360*e.h),o=s(100*e.s),i=s(100*e.l);return 1==this._a?"hsl("+t+", "+o+"%, "+i+"%)":"hsla("+t+", "+o+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return t(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,o,i,n){var r=[L(s(e).toString(16)),L(s(t).toString(16)),L(s(o).toString(16)),L(T(i))];if(n&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1))return r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0);return r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*j(this._r,255))+"%",g:s(100*j(this._g,255))+"%",b:s(100*j(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*j(this._r,255))+"%, "+s(100*j(this._g,255))+"%, "+s(100*j(this._b,255))+"%)":"rgba("+s(100*j(this._r,255))+"%, "+s(100*j(this._g,255))+"%, "+s(100*j(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&($[t(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+a(this._r,this._g,this._b,this._a),o=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var n=d(e);o="#"+a(n._r,n._g,n._b,n._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+o+")"},toString:function(e){var t=!!e;e=e||this._format;var o=!1,i=this._a<1&&0<=this._a;return t||!i||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(o=this.toRgbString()),"prgb"===e&&(o=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(o=this.toHexString()),"hex3"===e&&(o=this.toHexString(!0)),"hex4"===e&&(o=this.toHex8String(!0)),"hex8"===e&&(o=this.toHex8String()),"name"===e&&(o=this.toName()),"hsl"===e&&(o=this.toHslString()),"hsv"===e&&(o=this.toHsvString()),o||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var o=e.apply(null,[this].concat([].slice.call(t)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(o,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(c,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(x,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]="a"===i?e[i]:M(e[i]));e=o}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:e(),g:e(),b:e()})},d.mix=function(e,t,o){o=0===o?0:o||50;var i=d(e).toRgb(),n=d(t).toRgb(),r=o/100;return d({r:(n.r-i.r)*r+i.r,g:(n.g-i.g)*r+i.g,b:(n.b-i.b)*r+i.b,a:(n.a-i.a)*r+i.a})},d.readability=function(e,t){var o=d(e),i=d(t);return(u.max(o.getLuminance(),i.getLuminance())+.05)/(u.min(o.getLuminance(),i.getLuminance())+.05)},d.isReadable=function(e,t,o){var i,n,r=d.readability(e,t);switch(n=!1,(i=function(e){var t,o;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==o&&"large"!==o&&(o="small");return{level:t,size:o}}(o)).level+i.size){case"AAsmall":case"AAAlarge":n=4.5<=r;break;case"AAlarge":n=3<=r;break;case"AAAsmall":n=7<=r}return n},d.mostReadable=function(e,t,o){var i,n,r,s,a=null,l=0;n=(o=o||{}).includeFallbackColors,r=o.level,s=o.size;for(var c=0;c<t.length;c++)l<(i=d.readability(e,t[c]))&&(l=i,a=d(t[c]));return d.isReadable(e,a,{level:r,size:s})||!n?a:(o.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],o))};var E=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=d.hexNames=function(e){var t={};for(var o in e)e.hasOwnProperty(o)&&(t[e[o]]=o);return t}(E);function S(e){return e=parseFloat(e),(isNaN(e)||e<0||1<e)&&(e=1),e}function j(e,t){var o;"string"==typeof(o=e)&&-1!=o.indexOf(".")&&1===parseFloat(o)&&(e="100%");var i,n="string"==typeof(i=e)&&-1!=i.indexOf("%");return e=f(t,g(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),u.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function F(e){return f(1,g(0,e))}function D(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function T(e){return u.round(255*parseFloat(e)).toString(16)}function B(e){return D(e)/255}var R,I,O,z=(I="[\\s|\\(]+("+(R="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",O="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+O),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+O),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+O),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function N(e){return!!z.CSS_UNIT.exec(e)}void 0!==P&&P.exports?P.exports=d:void 0===(W=function(){return d}.call(q,V,q,P))||(P.exports=W)}(Math)},function(e,t){void 0!==e&&void 0!==t&&e.exports===t&&(e.exports="checklist-model"),angular.module("checklist-model",[]).directive("checklistModel",["$parse","$compile",function(m,v){function b(e,t,o){if(angular.isArray(e))for(var i=e.length;i--;)if(o(e[i],t))return!0;return!1}function w(e,t,o){return b(e=angular.isArray(e)?e:[],t,o)||e.push(t),e}function y(e,t,o){if(angular.isArray(e))for(var i=e.length;i--;)if(o(e[i],t)){e.splice(i,1);break}return e}function o(i,e,n){var t=n.checklistModel;n.$set("checklistModel",null),v(e)(i),n.$set("checklistModel",t);var r=m(t),o=m(n.checklistChange),s=m(n.checklistBeforeChange),a=m(n.ngModel),l=function(e,t){return isNaN(e)||isNaN(t)?angular.equals(e,t):String(e)===String(t)};if(n.hasOwnProperty("checklistComparator"))if("."==n.checklistComparator[0]){var c=n.checklistComparator.substring(1);l=function(e,t){return e[c]===t[c]}}else l=m(n.checklistComparator)(i.$parent);var d=i.$watch(n.ngModel,function(e,t){e!==t&&(s&&!1===s(i)?a.assign(i,b(r(i.$parent),p(),l)):(f(p(),e),o&&o(i)))}),u=i.$watch(p,function(e,t){if(e!=t&&angular.isDefined(t)&&!0===i[n.ngModel]){var o=r(i.$parent);r.assign(i.$parent,y(o,t,l)),r.assign(i.$parent,w(o,e,l))}},!0),h=i.$on("$destroy",function(){d(),u(),h()});function p(){return n.checklistValue?m(n.checklistValue)(i.$parent):n.value}function f(e,t){var o=r(i.$parent);angular.isFunction(r.assign)&&(!0===t?r.assign(i.$parent,w(o,e,l)):r.assign(i.$parent,y(o,e,l)))}function g(e,t){s&&!1===s(i)?f(p(),a(i)):a.assign(i,b(e,p(),l))}angular.isFunction(i.$parent.$watchCollection)?i.$parent.$watchCollection(t,g):i.$parent.$watch(t,g,!0)}return{restrict:"A",priority:1e3,terminal:!0,scope:!0,compile:function(e,t){if(!t.checklistValue&&!t.value)throw"You should provide `value` or `checklist-value`.";return t.ngModel||t.$set("ngModel","checked"),o}}}])},function(e,t){!function(e,_){"use strict";var t=_.module("angular-sortable-view",[]);function v(e){if(!("clientX"in e||"clientY"in e)){var t=e.touches||e.originalEvent.touches;t&&t.length&&(e.clientX=t[0].clientX,e.clientY=t[0].clientY),e.preventDefault()}}t.directive("svRoot",[function(){function y(e){return i[e]}var x,i=Object.create(null);return{restrict:"A",controller:["$scope","$attrs","$interpolate","$parse",function(u,e,t,o){var h=t(e.svRoot)(u)||u.$id;i[h]||(i[h]=[]);var p,f,g,m,v,b=!1,l=o(e.svOnSort);e.svOnStart=e.$$element[0].attributes["sv-on-start"],e.svOnStart=e.svOnStart&&e.svOnStart.value,e.svOnStop=e.$$element[0].attributes["sv-on-stop"],e.svOnStop=e.svOnStop&&e.svOnStop.value;var w=o(e.svOnStart),c=o(e.svOnStop);if(this.sortingInProgress=function(){return x},e.svGrid){if(null===(b="true"===e.svGrid||"false"!==e.svGrid&&null))throw"Invalid value of sv-grid attribute"}else u.$watchCollection(function(){return y(h)},function(e){b=!1;var t=e.filter(function(e){return!e.container}).map(function(e){return{part:e.getPart().id,y:e.element[0].getBoundingClientRect().top}}),i=Object.create(null);t.forEach(function(e){i[e.part]?i[e.part].push(e.y):i[e.part]=[e.y]}),Object.keys(i).forEach(function(o){i[o].sort(),i[o].forEach(function(e,t){t<i[o].length-1&&0<e&&e===i[o][t+1]&&(b=!0)})})});this.$moveUpdate=function(a,l,e,t,o,i,n){var r=e[0].getBoundingClientRect();"element"===a.tolerance&&(l={x:~~(r.left+r.width/2),y:~~(r.top+r.height/2)}),x=!0,p=[],f||(o?(f=o.clone()).removeClass("ng-hide"):((f=t.clone()).addClass("sv-visibility-hidden"),f.addClass("sv-placeholder"),f.css({height:r.height+"px",width:r.width+"px"})),t.after(f),t.addClass("ng-hide"),m=t,a,w(u,{$helper:{element:g=e},$part:i.model(i.scope),$index:n,$item:i.model(i.scope)[n]}),u.$root&&u.$root.$$phase||u.$apply()),g[0].reposition({x:l.x+document.body.scrollLeft-l.offset.x*r.width,y:l.y+document.body.scrollTop-l.offset.y*r.height}),y(h).forEach(function(e,t){if(null==a.containment||C(e.element,a.containment)||C(e.element,a.containment+" *")){var o,i,n,r=e.element[0].getBoundingClientRect(),s={x:~~(r.left+r.width/2),y:~~(r.top+r.height/2)};e.container||!e.element[0].scrollHeight&&!e.element[0].scrollWidth||p.push({element:e.element,q:(s.x-l.x)*(s.x-l.x)+(s.y-l.y)*(s.y-l.y),view:e.getPart(),targetIndex:e.getIndex(),after:(o=s,i=l,n=b,n?o.x-i.x<0:o.y-i.y<0)}),e.container&&!e.element[0].querySelector("[sv-element]:not(.sv-placeholder):not(.sv-source)")&&p.push({element:e.element,q:(s.x-l.x)*(s.x-l.x)+(s.y-l.y)*(s.y-l.y),view:e.getPart(),targetIndex:0,container:!0})}});var s=f[0].getBoundingClientRect(),c=~~(s.left+s.width/2),d=~~(s.top+s.height/2);p.push({q:(c-l.x)*(c-l.x)+(d-l.y)*(d-l.y),element:f,placeholder:!0}),p.sort(function(e,t){return e.q-t.q}),p.forEach(function(e,t){var o,i,n;0!==t||e.placeholder||e.container?0===t&&e.container?(v=e).element.append(f):e.element.removeClass("sv-candidate"):((v=e).element.addClass("sv-candidate"),e.after?e.element.after(f):(o=e.element,i=f,0<(n=function(e){{if((e=e[0]).previousElementSibling)return _.element(e.previousElementSibling);for(var t=e.previousSibling;null!=t&&1!=t.nodeType;)t=t.previousSibling;return _.element(t)}}(o)).length?n.after(i):o.parent().prepend(i)))})},this.$drop=function(o,i,n){if(f)if(n.revert){var e=f[0].getBoundingClientRect(),t=g[0].getBoundingClientRect(),r=Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2)),s=+n.revert*r/200;s=Math.min(s,+n.revert),["-webkit-","-moz-","-ms-","-o-",""].forEach(function(e){void 0!==g[0].style[e+"transition"]&&(g[0].style[e+"transition"]="all "+s+"ms ease")}),setTimeout(a,s),g.css({top:e.top+document.body.scrollTop+"px",left:e.left+document.body.scrollLeft+"px"})}else a();function a(){if(x=!1,f.remove(),g.remove(),m.removeClass("ng-hide"),m=g=n=f=p=void 0,c(u,{$part:o.model(o.scope),$index:i,$item:o.model(o.scope)[i]}),v){v.element.removeClass("sv-candidate");var e=o.model(o.scope).splice(i,1),t=v.targetIndex;v.view===o&&v.targetIndex>i&&t--,v.after&&t++,v.view.model(v.view.scope).splice(t,0,e[0]),v.view===o&&i===t||l(u,{$partTo:v.view.model(v.view.scope),$partFrom:o.model(o.scope),$item:e[0],$indexTo:t,$indexFrom:i})}v=void 0,u.$root&&u.$root.$$phase||u.$apply()}},this.addToSortableElements=function(e){y(h).push(e)},this.removeFromSortableElements=function(e){var t=y(h),o=t.indexOf(e);-1<o&&(t.splice(o,1),0===t.length&&delete i[h])}}]}}]),t.directive("svPart",["$parse",function(s){return{restrict:"A",require:"^svRoot",controller:["$scope",function(o){(o.$ctrl=this).getPart=function(){return o.part},this.$drop=function(e,t){o.$sortableRoot.$drop(o.part,e,t)}}],scope:!0,link:function(e,t,o,i){if(!o.svPart)throw new Error("no model provided");var n=s(o.svPart);if(!n.assign)throw new Error("model not assignable");e.part={id:e.$id,element:t,model:n,scope:e},e.$sortableRoot=i;var r={element:t,getPart:e.$ctrl.getPart,container:!0};i.addToSortableElements(r),e.$on("$destroy",function(){i.removeFromSortableElements(r)})}}}]),t.directive("svElement",["$parse",function(m){return{restrict:"A",require:["^svPart","^svRoot"],controller:["$scope",function(e){e.$ctrl=this}],link:function(l,c,d,u){var e={element:c,getPart:u[0].getPart,getIndex:function(){return l.$index}};u[1].addToSortableElements(e),l.$on("$destroy",function(){u[1].removeFromSortableElements(e)});var h,p,t=c;t.on("mousedown touchstart",o),l.$watch("$ctrl.handle",function(e){e&&(t.off("mousedown touchstart",o),(t=e).on("mousedown touchstart",o))}),l.$watch("$ctrl.helper",function(e){e&&(h=e)}),l.$watch("$ctrl.placeholder",function(e){e&&(p=e)});_.element(document.body);var f,g=_.element(document.documentElement);function o(e){if(v(e),!u[1].sortingInProgress()&&(0==e.button||"mousedown"!==e.type)){f=!1;var o=m(d.svElement)(l);if((o=_.extend({},{tolerance:"pointer",revert:200,containment:"html"},o)).containment)var r=b.call(c,o.containment)[0].getBoundingClientRect();var s,t=c,i=c[0].getBoundingClientRect();h||(h=u[0].helper),p||(p=u[0].placeholder),h?((s=h.clone()).removeClass("ng-hide"),s.css({left:i.left+document.body.scrollLeft+"px",top:i.top+document.body.scrollTop+"px"}),t.addClass("sv-visibility-hidden")):(s=t.clone()).addClass("sv-helper").css({left:i.left+document.body.scrollLeft+"px",top:i.top+document.body.scrollTop+"px",width:i.width+"px"}),s[0].reposition=function(e){var t=e.x,o=e.y,i=s[0].getBoundingClientRect(),n=document.body;r&&(o<r.top+n.scrollTop&&(o=r.top+n.scrollTop),o+i.height>r.top+n.scrollTop+r.height&&(o=r.top+n.scrollTop+r.height-i.height),t<r.left+n.scrollLeft&&(t=r.left+n.scrollLeft),t+i.width>r.left+n.scrollLeft+r.width&&(t=r.left+n.scrollLeft+r.width-i.width)),this.style.left=t-n.scrollLeft+"px",this.style.top=o-n.scrollTop+"px"};var n={x:(e.clientX-i.left)/i.width,y:(e.clientY-i.top)/i.height};g.addClass("sv-sorting-in-progress"),g.on("mousemove touchmove",a).on("mouseup touchend touchcancel",function e(t){g.off("mousemove touchmove",a),g.off("mouseup touchend",e),g.removeClass("sv-sorting-in-progress"),f&&u[0].$drop(l.$index,o),c.removeClass("sv-visibility-hidden")})}function a(e){v(e),f||(c.parent().prepend(s),f=!0),u[1].$moveUpdate(o,{x:e.clientX,y:e.clientY,offset:n},s,c,p,u[0].getPart(),l.$index)}}}}}]),t.directive("svHandle",function(){return{require:"?^svElement",link:function(e,t,o,i){i&&(i.handle=t.add(i.handle))}}}),t.directive("svHelper",function(){return{require:["?^svPart","?^svElement"],link:function(e,t,o,i){t.addClass("sv-helper").addClass("ng-hide"),i[1]?i[1].helper=t:i[0]&&(i[0].helper=t)}}}),t.directive("svPlaceholder",function(){return{require:["?^svPart","?^svElement"],link:function(e,t,o,i){t.addClass("sv-placeholder").addClass("ng-hide"),i[1]?i[1].placeholder=t:i[0]&&(i[0].placeholder=t)}}}),_.element(document.head).append(["<style>.sv-helper{position: fixed !important;z-index: 99999;margin: 0 !important;}.sv-candidate{}.sv-placeholder{}.sv-sorting-in-progress{-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}.sv-visibility-hidden{visibility: hidden !important;opacity: 0 !important;}</style>"].join(""));var o=document.documentElement,i=o.matches?"matches":o.matchesSelector?"matchesSelector":o.webkitMatches?"webkitMatches":o.webkitMatchesSelector?"webkitMatchesSelector":o.msMatches?"msMatches":o.msMatchesSelector?"msMatchesSelector":o.mozMatches?"mozMatches":o.mozMatchesSelector?"mozMatchesSelector":null;if(null==i)throw"This browser doesn't support the HTMLElement.matches method";function C(e,t){if(e instanceof _.element&&(e=e[0]),null!==i)return e[i](t)}var b=_.element.prototype.closest||function(e){for(var t=this[0].parentNode;t!==document.documentElement&&!t[i](e);)t=t.parentNode;return t[i](e)?_.element(t):_.element()};"function"!=typeof _.element.prototype.add&&(_.element.prototype.add=function(e){var t,o=_.element();for(e=_.element(e),t=0;t<this.length;t++)o.push(this[t]);for(t=0;t<e.length;t++)o.push(e[t]);return o})}(window,window.angular)},function(e,t,o){o(6),e.exports="gettext"},function(e,t){angular.module("gettext",[]),angular.module("gettext").constant("gettext",function(e){return e}),angular.module("gettext").factory("gettextCatalog",["gettextPlurals","gettextFallbackLanguage","$http","$cacheFactory","$interpolate","$rootScope",function(l,s,t,e,a,o){var i,c="$$noContext",n='<span id="test" title="test" class="tested">test</span>',d=angular.element("<span>"+n+"</span>").html()!==n,u=function(e){return i.debug&&i.currentLanguage!==i.baseLanguage?i.debugPrefix+e:e},h=function(e){return i.showTranslatedMarkers?i.translatedMarkerPrefix+e+i.translatedMarkerSuffix:e};function p(){o.$broadcast("gettextLanguageChanged")}return i={debug:!1,debugPrefix:"[MISSING]: ",showTranslatedMarkers:!1,translatedMarkerPrefix:"[",translatedMarkerSuffix:"]",strings:{},baseLanguage:"en",currentLanguage:"en",cache:e("strings"),setCurrentLanguage:function(e){this.currentLanguage=e,p()},getCurrentLanguage:function(){return this.currentLanguage},setStrings:function(e,t){this.strings[e]||(this.strings[e]={});var o=l(e,1);for(var i in t){var n=t[i];if(d&&(i=angular.element("<span>"+i+"</span>").html()),angular.isString(n)||angular.isArray(n)){var r={};r[c]=n,n=r}for(var s in this.strings[e][i]||(this.strings[e][i]={}),n){var a=n[s];angular.isArray(a)?this.strings[e][i][s]=a:(this.strings[e][i][s]=[],this.strings[e][i][s][o]=a)}}p()},getStringFormFor:function(e,t,o,i){return e?(((this.strings[e]||{})[t]||{})[i||c]||[])[l(e,o)]:null},getString:function(e,t,o){var i=s(this.currentLanguage);return e=this.getStringFormFor(this.currentLanguage,e,1,o)||this.getStringFormFor(i,e,1,o)||u(e),e=t?a(e)(t):e,h(e)},getPlural:function(e,t,o,i,n){var r=s(this.currentLanguage);return t=this.getStringFormFor(this.currentLanguage,t,e,n)||this.getStringFormFor(r,t,e,n)||u(1===e?t:o),i&&(i.$count=e,t=a(t)(i)),h(t)},loadRemote:function(e){return t({method:"GET",url:e,cache:i.cache}).then(function(e){var t=e.data;for(var o in t)i.setStrings(o,t[o]);return e})}}}]),angular.module("gettext").directive("translate",["gettextCatalog","$parse","$animate","$compile","$window","gettextUtil",function(p,i,f,g,e,m){var o=parseInt((/msie (\d+)/i.exec(e.navigator.userAgent)||[])[1],10),a="translateParams";function n(t,o,n){var e=Object.keys(o).filter(function(e){return m.startsWith(e,a)&&e!==a});if(!e.length)return null;var r=t.$new(),s=[];return e.forEach(function(i){var e=t.$watch(o[i],function(e){var t,o=(t=i,m.lcFirst(t.replace(a,"")));r[o]=e,n(r)});s.push(e)}),t.$on("$destroy",function(){s.forEach(function(e){e()}),r.$destroy()}),r}return{restrict:"AE",terminal:!0,compile:function(e,t){m.assert(!t.translatePlural||t.translateN,"translate-n","translate-plural"),m.assert(!t.translateN||t.translatePlural,"translate-plural","translate-n");var d=m.trim(e.html()),u=t.translatePlural,h=t.translateContext;return o<=8&&"\x3c!--IE fix--\x3e"===d.slice(-13)&&(d=d.slice(0,-13)),{post:function(r,s,e){var a=i(e.translateN),l=null,c=!0;function t(e){var t;e=e||null,u?((r=l||(l=r.$new())).$count=a(r),t=p.getPlural(r.$count,d,u,null,h)):t=p.getString(d,null,h);var o=s.contents();if(o||t)if(t!==m.trim(o.html())){var i=angular.element("<span>"+t+"</span>");g(i.contents())(e||r);var n=i.contents();f.enter(n,s),f.leave(o)}else c&&g(o)(r)}var o=n(r,e,t);t(o),c=!1,e.translateN&&r.$watch(e.translateN,function(){t(o)}),r.$on("gettextLanguageChanged",function(){t(o)})}}}}}]),angular.module("gettext").factory("gettextFallbackLanguage",function(){var o={},i=/([^_]+)_[^_]+$/;return function(e){if(o[e])return o[e];var t=i.exec(e);return t?(o[e]=t[1],t[1]):null}}),angular.module("gettext").filter("translate",["gettextCatalog",function(o){function e(e,t){return o.getString(e,null,t)}return e.$stateful=!0,e}]),angular.module("gettext").factory("gettextPlurals",function(){var o={pt_BR:"pt_BR","pt-BR":"pt_BR"};return function(e,t){switch(function(e){o[e]||(o[e]=e.split(/\-|_/).shift());return o[e]}(e)){case"ay":case"bo":case"cgg":case"dz":case"fa":case"id":case"ja":case"jbo":case"ka":case"kk":case"km":case"ko":case"ky":case"lo":case"ms":case"my":case"sah":case"su":case"th":case"tt":case"ug":case"vi":case"wo":case"zh":return 0;case"is":return t%10!=1||t%100==11?1:0;case"jv":return 0!=t?1:0;case"mk":return 1==t||t%10==1?0:1;case"ach":case"ak":case"am":case"arn":case"br":case"fil":case"fr":case"gun":case"ln":case"mfe":case"mg":case"mi":case"oc":case"pt_BR":case"tg":case"ti":case"tr":case"uz":case"wa":case"zh":return 1<t?1:0;case"lv":return t%10==1&&t%100!=11?0:0!=t?1:2;case"lt":return t%10==1&&t%100!=11?0:2<=t%10&&(t%100<10||20<=t%100)?1:2;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return t%10==1&&t%100!=11?0:2<=t%10&&t%10<=4&&(t%100<10||20<=t%100)?1:2;case"mnk":return 0==t?0:1==t?1:2;case"ro":return 1==t?0:0==t||0<t%100&&t%100<20?1:2;case"pl":return 1==t?0:2<=t%10&&t%10<=4&&(t%100<10||20<=t%100)?1:2;case"cs":case"sk":return 1==t?0:2<=t&&t<=4?1:2;case"sl":return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0;case"mt":return 1==t?0:0==t||1<t%100&&t%100<11?1:10<t%100&&t%100<20?2:3;case"gd":return 1==t||11==t?0:2==t||12==t?1:2<t&&t<20?2:3;case"cy":return 1==t?0:2==t?1:8!=t&&11!=t?2:3;case"kw":return 1==t?0:2==t?1:3==t?2:3;case"ga":return 1==t?0:2==t?1:t<7?2:t<11?3:4;case"ar":return 0==t?0:1==t?1:2==t?2:3<=t%100&&t%100<=10?3:11<=t%100?4:5;default:return 1!=t?1:0}}}),angular.module("gettext").factory("gettextUtil",function(){return{trim:String.prototype.trim?function(e){return"string"==typeof e?e.trim():e}:function(e){return"string"==typeof e?e.replace(/^\s*/,"").replace(/\s*$/,""):e},assert:function(e,t,o){if(!e)throw new Error("You should add a "+t+" attribute whenever you add a "+o+" attribute.")},startsWith:function(e,t){return 0===e.indexOf(t)},lcFirst:function(e){return e.charAt(0).toLowerCase()+e.substr(1)}}})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{template:r.default,replace:!0,link:function(e){},controller:["$scope",function(t){t.openTab=function(e){angular.forEach(t.tabs,function(e){e.active=!1}),t.tabs[e].active=!0}}]}};var i,n=o(8),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class="ea-editor ea-editor-{{adaptiveClass}}" ng-class="expanded ? \'ea-editor-expanded\' : \'\'"> <div class=ea-editor-overlay ng-click="expanded = !expanded"></div> <div class=ea-editor-responsive-button ng-click="expanded = !expanded"> <svg viewBox="0 0 18 18" class=ea-editor-responsive-button-label-icon width=18 height=18 ng-show="adaptiveClass !== \'small\'"> <path d="M14.6,12c0.2-0.4,0.4-0.8,0.5-1.2c0.1-0.3,0.3-0.4,0.6-0.5l2.3-0.3l0,0V7.9l-2.3-0.3c-0.3,0-0.5-0.2-0.6-0.5\n                C15,6.7,14.8,6.4,14.6,6c-0.1-0.2-0.1-0.5,0.1-0.7l1.4-1.9l-1.5-1.5l-1.9,1.4c-0.2,0.2-0.5,0.2-0.7,0.1c-0.4-0.2-0.8-0.4-1.2-0.5\n                c-0.3-0.1-0.4-0.3-0.5-0.6L10.1,0H7.9L7.6,2.3c0,0.3-0.2,0.5-0.5,0.6C6.8,3,6.4,3.2,6,3.4C5.8,3.5,5.5,3.5,5.3,3.3L3.4,1.9L1.9,3.4\n                l1.4,1.9C3.5,5.5,3.5,5.7,3.4,6C3.2,6.4,3,6.7,2.9,7.2C2.8,7.4,2.6,7.6,2.3,7.6L0,7.9v2.2l2.3,0.3c0.3,0,0.5,0.2,0.6,0.5\n                C3,11.2,3.2,11.6,3.4,12c0.1,0.2,0.1,0.5-0.1,0.7l-1.4,1.9l1.5,1.5l1.9-1.4c0.2-0.2,0.5-0.2,0.7-0.1c0.4,0.2,0.8,0.4,1.2,0.5\n                c0.3,0.1,0.4,0.3,0.5,0.6L7.9,18h2.2l0.3-2.3c0-0.3,0.2-0.5,0.5-0.6c0.4-0.1,0.8-0.3,1.2-0.5c0.2-0.1,0.5-0.1,0.7,0.1l1.9,1.4\n                l1.5-1.5l-1.4-1.9C14.5,12.5,14.5,12.2,14.6,12z M9,11.9c-1.6,0-2.8-1.3-2.8-2.8S7.4,6.1,9,6.1s2.8,1.3,2.8,2.9\n                C11.9,10.6,10.6,11.9,9,11.9z"></path> </svg> <span class=ea-editor-responsive-button-label ng-show="!expanded && adaptiveClass === \'small\'"> <svg viewBox="0 0 18 18" class=ea-editor-responsive-button-label-icon width=18 height=18> <path d="M14.6,12c0.2-0.4,0.4-0.8,0.5-1.2c0.1-0.3,0.3-0.4,0.6-0.5l2.3-0.3l0,0V7.9l-2.3-0.3c-0.3,0-0.5-0.2-0.6-0.5\n                    C15,6.7,14.8,6.4,14.6,6c-0.1-0.2-0.1-0.5,0.1-0.7l1.4-1.9l-1.5-1.5l-1.9,1.4c-0.2,0.2-0.5,0.2-0.7,0.1c-0.4-0.2-0.8-0.4-1.2-0.5\n                    c-0.3-0.1-0.4-0.3-0.5-0.6L10.1,0H7.9L7.6,2.3c0,0.3-0.2,0.5-0.5,0.6C6.8,3,6.4,3.2,6,3.4C5.8,3.5,5.5,3.5,5.3,3.3L3.4,1.9L1.9,3.4\n                    l1.4,1.9C3.5,5.5,3.5,5.7,3.4,6C3.2,6.4,3,6.7,2.9,7.2C2.8,7.4,2.6,7.6,2.3,7.6L0,7.9v2.2l2.3,0.3c0.3,0,0.5,0.2,0.6,0.5\n                    C3,11.2,3.2,11.6,3.4,12c0.1,0.2,0.1,0.5-0.1,0.7l-1.4,1.9l1.5,1.5l1.9-1.4c0.2-0.2,0.5-0.2,0.7-0.1c0.4,0.2,0.8,0.4,1.2,0.5\n                    c0.3,0.1,0.4,0.3,0.5,0.6L7.9,18h2.2l0.3-2.3c0-0.3,0.2-0.5,0.5-0.6c0.4-0.1,0.8-0.3,1.2-0.5c0.2-0.1,0.5-0.1,0.7,0.1l1.9,1.4\n                    l1.5-1.5l-1.4-1.9C14.5,12.5,14.5,12.2,14.6,12z M9,11.9c-1.6,0-2.8-1.3-2.8-2.8S7.4,6.1,9,6.1s2.8,1.3,2.8,2.9\n                    C11.9,10.6,10.6,11.9,9,11.9z"></path> </svg> <span class=ea-editor-responsive-button-label-text translate> Widget Settings </span> <svg viewBox="0 0 8 12" class=ea-editor-responsive-button-arrow> <path d="M5.71,4.286L1.727,0.302c-0.39-0.392-1.023-0.392-1.414,0c-0.39,0.39-0.39,1.023,0,1.414L3.59,4.992\n\t                L0.289,8.284c-0.39,0.39-0.39,1.025,0,1.415c0.39,0.39,1.023,0.39,1.414,0l4.008-4C6.101,5.309,6.101,4.675,5.71,4.286z"></path> </svg> </span> <span class=ea-editor-responsive-button-label ng-show="expanded && adaptiveClass === \'small\'"> <svg viewBox="0 0 12 17" class=ea-editor-responsive-button-label-icon width=18 height=12> <path d="M4.3,8.7l6,5.9c0.4,0.4,1.1,0.4,1.5,0c0.4-0.4,0.4-1.1,0-1.5L6.5,8l5.2-5.2c0.4-0.4,0.4-1.1,0-1.5\n                c-0.4-0.4-1.1-0.4-1.5,0l-6,6C3.9,7.7,3.9,8.3,4.3,8.7z"></path> </svg> <span class=ea-editor-responsive-button-label-text translate> Back to preview </span> </span> </div> <div class=ea-editor-form> <div class=ea-editor-tabs> <div class=ea-editor-tabs-nav> <div class=ea-editor-tabs-nav-item ng-class="{ \'ea-editor-tabs-nav-item-active\': tab.active }" ng-click=openTab(key) ng-show=tab.properties.length ng-repeat="(key, tab) in tabs"> {{tab.name}} </div> </div> <div class=ea-editor-tabs-content> <div class=ea-editor-tabs-content-item ng-class="{ \'ea-editor-tabs-content-item-active\': tab.active }" ng-repeat="tab in tabs"> <div class=ea-editor-property ng-repeat="property in tab.properties" ng-class="property.visible === false ? \'ea-editor-property-hide\' : \'\'"> <div ng-show="property.visible !== false"> <div control=property ng-model=widget.data ng-if="property.type === \'subgroup\'"></div> <div control=property ng-model=widget.data[property.id] ng-if="property.type !== \'subgroup\'"></div> </div> </div> </div> </div> </div> <div class=ea-editor-hint ng-class="{ \'ea-editor-hint-visible\': editorHintVisible }">{{editorHint}}</div> <elfsight-apps-templates ng-if=templates></elfsight-apps-templates> </div> <div class=ea-editor-preview-container> <div class=ea-editor-preview-overlay></div> <div class=ea-editor-preview-loader ng-class="showLoader ? \'ea-editor-preview-loader-show\' : \'\'"></div> </div> </div> '},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$compile","$rootScope","$sce","$l10n",function(n,e,r,s){return{scope:{control:"=",ngModel:"="},replace:!0,controller:["$scope",function(e){}],link:function(e,t){e.control=s.translateControl(e.control),e.setDefaultValueIfEmpty=function(){e.control.allowEmpty||""!==e.ngModel&&null!==e.ngModel&&angular.isDefined(e.ngModel)||(e.ngModel=void 0===e.control.defaultValue?null:angular.copy(e.control.defaultValue))},angular.isDefined(e.ngModel)||(e.ngModel=void 0===e.control.defaultValue?null:angular.copy(e.control.defaultValue)),e.control.caption&&(e.control.caption=r.trustAsHtml(e.control.caption));var o="<elfsight-apps-control-#type#></elfsight-apps-control-#type#>",i=void 0;i="custom"===e.control.type&&e.control.custom.type?angular.element(o.replace("#type#","custom-"+e.control.custom.type)):angular.element(o.replace("#type#",e.control.type)),t.replaceWith(n(i)(e))}}}]},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope","$sce",function(e,t,o){e.showBtn=e.control.text&&e.control.text.button,e.toTrustedHTML=function(e){return o.trustAsHtml(o.valueOf(e))}}],link:function(o,e){var i=document.createElement("div"),n=!1;o.$watch("ngModel",function(e){if(n)n=!1;else{var t=!1;i.innerHTML=e,angular.forEach(i.querySelectorAll("script"),function(e){e.parentNode.removeChild(e),t=!0}),angular.forEach(i.querySelectorAll("iframe"),function(e){e.parentNode.removeChild(e),t=!0}),angular.forEach(i.querySelectorAll("a"),function(e){e.target="_blank",t=!0}),t&&(o.ngModel=i.innerHTML,n=!0)}})}}}];var i,n=o(11),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports="<label class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=toTrustedHTML(control.caption)></div> <div class=\"ea-editor-property-control-text ea-editor-property-control\"> <div ng-if=showBtn class=ea-editor-property-control-text-button translate>Apply</div> <input ng-model=ngModel ng-model-options=\"{ updateOn: showBtn ? 'change blur' : 'default', debounce: 300 }\" type=text ng-blur=setDefaultValueIfEmpty() placeholder={{control.text.placeholder}}> </div> </label>"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$timeout",function(e){return{template:i.default,replace:!0,controller:["$scope","$element",function(e,t){var o="pasteStorage,DragAndDrop,xpath,stat,sticky,search,tableKeyboardNavigation,table,hotkeys,symbols,redoundo,placeholder,paste,orderedlist,mobile,link,justify,inlinePopup,imageProperties,imageProcessor,indent,addNewLine,autofocus,backspace,bold,cleanHTML,color,enter,errorMessages,font,formatBlock,fullsize,iframe";if(e.control.textarea&&e.control.textarea.enableRichEdit){var i=new a.default(t.find("textarea")[0],{spellcheck:!1,toolbarButtonSize:"medium",askBeforePasteHTML:!1,defaultActionOnPaste:"insert_only_text",useNativeTooltip:!0,disablePlugins:o,buttons:"bold,underline,italic,ul,ol,align,link"+(e.control.textarea&&e.control.textarea.enableRichEditHtml?",source":""),toolbarSticky:!1,enter:"BR"});i.events.on("afterInit",function(){i.value=e.ngModel||""}),i.events.on("change",function(){e.ngModel=i.value,e.$apply()})}else if(e.control.textarea&&(e.control.textarea.CSSMode||e.control.textarea.JSONMode)){var n=void 0;e.control.textarea.JSONMode&&(n="json"),e.control.textarea.CSSMode&&(n="css");var r=new a.default(t.find("textarea")[0],{sourceEditorNativeOptions:{mode:"ace/mode/"+n},toolbar:!1,disablePlugins:o,defaultMode:a.default.MODE_SOURCE});r.events.on("afterInit",function(){r.value=e.ngModel||""}),r.events.on("change",function(){e.ngModel=r.value,e.$apply()})}else setTimeout(function(){(0,s.default)(t.find("textarea"))},100)}],link:function(o,e){var i=document.createElement("div"),n=!1;o.$watch("ngModel",function(e){if(n)n=!1;else{var t=!1;i.innerHTML=e,i.querySelectorAll("script").forEach(function(e){e.parentNode.removeChild(e),t=!0}),i.querySelectorAll("iframe").forEach(function(e){e.parentNode.removeChild(e),t=!0}),i.querySelectorAll("a").forEach(function(e){e.target="_blank",t=!0}),t&&(o.ngModel=i.innerHTML,n=!0)}})}}}];var i=n(o(13)),s=n(o(14)),a=n(o(15));function n(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports='<div class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-property-control-textarea ea-editor-property-control"> <textarea ng-model=ngModel ng-model-options="{ debounce: 300 }" ng-blur=setDefaultValueIfEmpty()></textarea> </div> </div>'},function(e,t,o){var i,n,r;n=[t,e],void 0===(r="function"==typeof(i=function(e,t){"use strict";var o,i,u="function"==typeof Map?new Map:(o=[],i=[],{has:function(e){return-1<o.indexOf(e)},get:function(e){return i[o.indexOf(e)]},set:function(e,t){-1===o.indexOf(e)&&(o.push(e),i.push(t))},delete:function(e){var t=o.indexOf(e);-1<t&&(o.splice(t,1),i.splice(t,1))}}),h=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){h=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function n(n){if(n&&n.nodeName&&"TEXTAREA"===n.nodeName&&!u.has(n)){var e,r=null,s=n.clientWidth,a=null,o=function(){n.clientWidth!==s&&d()},i=function(t){window.removeEventListener("resize",o,!1),n.removeEventListener("input",d,!1),n.removeEventListener("keyup",d,!1),n.removeEventListener("autosize:destroy",i,!1),n.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach(function(e){n.style[e]=t[e]}),u.delete(n)}.bind(n,{height:n.style.height,resize:n.style.resize,overflowY:n.style.overflowY,overflowX:n.style.overflowX,wordWrap:n.style.wordWrap});n.addEventListener("autosize:destroy",i,!1),"onpropertychange"in n&&"oninput"in n&&n.addEventListener("keyup",d,!1),window.addEventListener("resize",o,!1),n.addEventListener("input",d,!1),n.addEventListener("autosize:update",d,!1),n.style.overflowX="hidden",n.style.wordWrap="break-word",u.set(n,{destroy:i,update:d}),"vertical"===(e=window.getComputedStyle(n,null)).resize?n.style.resize="none":"both"===e.resize&&(n.style.resize="horizontal"),r="content-box"===e.boxSizing?-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)):parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),isNaN(r)&&(r=0),d()}function l(e){var t=n.style.width;n.style.width="0px",n.offsetWidth,n.style.width=t,n.style.overflowY=e}function c(){var e=n.style.height,t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(n),o=document.documentElement&&document.documentElement.scrollTop;n.style.height="";var i=n.scrollHeight+r;0!==n.scrollHeight?(n.style.height=i+"px",s=n.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)):n.style.height=e}function d(){c();var e=Math.round(parseFloat(n.style.height)),t=window.getComputedStyle(n,null),o="content-box"===t.boxSizing?Math.round(parseFloat(t.height)):n.offsetHeight;if(o!==e?"hidden"===t.overflowY&&(l("scroll"),c(),o="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(n,null).height)):n.offsetHeight):"hidden"!==t.overflowY&&(l("hidden"),c(),o="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(n,null).height)):n.offsetHeight),a!==o){a=o;var i=h("autosize:resized");try{n.dispatchEvent(i)}catch(e){}}}}function r(e){var t=u.get(e);t&&t.destroy()}function s(e){var t=u.get(e);t&&t.update()}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((a=function(e){return e}).destroy=function(e){return e},a.update=function(e){return e}):((a=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e}),t.exports=a})?i.apply(t,n):i)||(e.exports=r)},function(ihc,jhc,khc){(function(lhc){var nhc;"undefined"!=typeof self&&self,nhc=function(){return function(o){function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n={};return i.m=o,i.c=n,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/build/",i(i.s=26)}([function(e,v,t){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var o=t(2),n=t(3),i={},r=i.toString,s=i.hasOwnProperty;v.isIE=function(){return-1!=navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)};var a=1;v.$$=function(e,t){var o;if(!/:scope/.test(e)||!v.isIE()||"undefined"!=typeof HTMLDocument&&t instanceof HTMLDocument)o=t.querySelectorAll(e);else{var i=t.id,n=i||"_selector_id_"+(""+Math.random()).slice(2)+a++;e=e.replace(/:scope/g,"#"+n),!i&&t.setAttribute("id",n),o=t.parentNode.querySelectorAll(e),i||t.removeAttribute("id")}return[].slice.call(o)},v.isWindow=function(e){return null!==e&&e===e.window},v.type=function(e){return null===e?"null":"object"==typeof e||"function"==typeof e?i[r.call(e)]||"object":typeof e},v.each=function(e,t){var o,i,n;if(Array.isArray(e)){for(o=e.length,n=0;n<o;n+=1)if(!1===t.call(e[n],n,e[n]))return!1}else for(i=Object.keys(e),n=0;i.length>n;n+=1)if(!1===t.call(e[i[n]],i[n],e[i[n]]))return!1;return e},v.each(["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol","HTMLDocument","Window","HTMLElement","HTMLBodyElement","Text","DocumentFragment","DOMStringList"],function(e,t){i["[object "+t+"]"]=t.toLowerCase()}),v.inArray=function(e,t){return-1!==t.indexOf(e)},v.isPlainObject=function(e){return!("object"!=typeof e||e.nodeType||v.isWindow(e)||e.constructor&&!s.call(e.constructor.prototype,"isPrototypeOf"))},v.extend=function(){for(var e=[],t=0;arguments.length>t;t++)e[t]=arguments[t];var o,i,n,r,s,a,l,c=e[0]||{},d=1,u=e.length,h=!1;for("boolean"==typeof c&&(h=c,c=e[d]||{},d+=1),"object"!=typeof c&&"function"===v.type(c)&&(c={}),d===u&&(c=this,d+=1);d<u;d+=1)if(null!==(o=e[d])&&void 0!==o)for(l=Object.keys(o),a=0;l.length>a;a+=1)n=c[i=l[a]],c!==(r=o[i])&&(h&&r&&(v.isPlainObject(r)&&!(r instanceof f)||Array.isArray(r)&&!(r instanceof p))?(Array.isArray(r)?(!1,s=n&&Array.isArray(n)?n:[]):s=n&&v.isPlainObject(n)?n:{},c[i]=v.extend(h,s,r)):void 0!==r&&(c[i]=r));return c},v.trim=function(e){return e.replace(o.SPACE_REG_EXP_START,"").replace(o.SPACE_REG_EXP_END,"")},v.colorToHex=function(e){if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;var t,o,i,n=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!n)return"#000000";for(o=parseInt(n[2],10),i=parseInt(n[3],10),t=(parseInt(n[4],10)|i<<8|o<<16).toString(16).toUpperCase();t.length<6;)t="0"+t;return n[1]+"#"+t},v.normalizeColor=function(e){var t,o=["#"],i=v.colorToHex(e);if(!i)return!1;if(3===(i=(i=v.trim(i.toUpperCase())).substr(1)).length){for(t=0;t<3;t+=1)o.push(i[t]),o.push(i[t]);return o.join("")}return 6<i.length&&(i=i.substr(0,6)),"#"+i},v.normalizeSize=function(e){return/^[0-9]+$/.test(""+e)?e+"px":""+e},v.getContentWidth=function(e,t){var o=function(e){return parseInt(e,10)},i=t.getComputedStyle(e);return e.offsetWidth-o(i.getPropertyValue("padding-left")||"0")-o(i.getPropertyValue("padding-right")||"0")},v.ctrlKey=function(e){if(-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1};v.appendScript=function(e,t,o,i){void 0===o&&(o="");var n,r=i.createElement("script");r.className=o,r.type="text/javascript",r.charset="utf-8",void 0!==t&&r.addEventListener("load",t,!1),r.src=(n=e,"file:"===window.location.protocol&&/^\/\//.test(n)&&(n="https:"+n),n),i.body.appendChild(r)},v.dom=function(e,t){if(e instanceof t.defaultView.HTMLElement)return e;var o=t.createElement("div");o.innerHTML=e;var i=o.firstChild===o.lastChild&&o.firstChild?o.firstChild:o;return i.parentNode&&i.parentNode.removeChild(i),i},v.hexToRgb=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,o,i){return t+t+o+o+i+i});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},v.clear=function(e,t){return void 0===t&&(t=!1),e=v.trim(e).replace(o.INVISIBLE_SPACE_REG_EXP,"").replace(/[\s]*class=""/g,""),t&&(e=e.replace(/<p[^>]*>[\s\n\r\t]*(&nbsp;|<br>|<br\/>)?[\s\n\r\t]*<\/p>[\n\r]*/g,"")),e},v.isURL=function(e){return RegExp("^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)},v.pathNormalize=function(e){return e.replace(/([^:])[\\\/]+/g,"$1/")},v.urlNormalize=function(e){return e.replace(/([^:])[\\\/]+/g,"$1/")},v.isHTML=function(e){return/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e)},v.isHTMLFromWord=function(e){return-1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)},v.humanSizeToBytes=function(e){if(/^[0-9.]+$/.test(""+e))return parseFloat(e);var t=e.substr(-2,2).toUpperCase(),o=["KB","MB","GB","TB"],i=parseFloat(e.substr(0,e.length-2));return-1!==o.indexOf(t)?i*Math.pow(1024,o.indexOf(t)+1):parseInt(e,10)},v.parseQuery=function(e){var t,o,i={},n=e.substr(1).split("&");for(t=0;n.length>t;t+=1)o=n[t].split("="),i[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"");return i},v.convertMediaURLToVideoEmbed=function(e,t,o){if(void 0===t&&(t=400),void 0===o&&(o=345),!v.isURL(e))return e;var i=document.createElement("a"),n=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;switch(i.href=e,t||(t=400),o||(o=345),i.hostname){case"www.vimeo.com":case"vimeo.com":return n.test(e)?e.replace(n,'<iframe width="'+t+'" height="'+o+'" src="//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":var r=i.search?v.parseQuery(i.search):{v:i.pathname.substr(1)};return r.v?'<iframe width="'+t+'" height="'+o+'" src="//www.youtube.com/embed/'+r.v+'" frameborder="0" allowfullscreen></iframe>':e}return e},v.browser=function(e){var t=navigator.userAgent.toLowerCase(),o=/(firefox)[\s\/]([\w.]+)/.exec(t)||/(chrome)[\s\/]([\w.]+)/.exec(t)||/(webkit)[\s\/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s\/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||t.indexOf("compatible")<0||[];return"version"===e?o[2]:"webkit"===e?"chrome"===o[1]||"webkit"===o[1]:"ff"===e?"firefox"===o[1]:"msie"===e?"trident"===o[1]||"msie"===o[1]:o[1]===e},v.offset=function(e,t,o,i){void 0===i&&(i=!1);var n,r,s=e.getBoundingClientRect(),a=o.body,l=o.documentElement,c=o.defaultView||o.parentWindow,d=c.pageYOffset||l.scrollTop||a.scrollTop,u=c.pageXOffset||l.scrollLeft||a.scrollLeft,h=l.clientTop||a.clientTop||0,p=l.clientLeft||a.clientLeft||0;if(!i&&t&&t.options&&t.options.iframe&&t.iframe){var f=v.offset(t.iframe,t,t.ownerDocument,!0),g=f.top,m=f.left;n=s.top+g,r=s.left+m}else n=s.top+d-h,r=s.left+u-p;return{top:Math.round(n),left:Math.round(r),width:s.width,height:s.height}},v.camelCase=function(e){return e.replace(/([-_])(.)/g,function(e,t,o){return o.toUpperCase()})},v.fromCamelCase=function(e){return e.replace(/([A-Z]+)/g,function(e,t){return"-"+t.toLowerCase()})},v.htmlspecialchars=function(e){var t=document.createElement("div");return t.innerText=e,t.innerHTML},v.debounce=function(t,o,i,n){3===arguments.length&&"boolean"!=typeof i&&(n=i,i=!1);var r=0;return function(){var e=arguments;n=n||this,(i&&!r||!o)&&t.apply(n,e),o&&(clearTimeout(r),r=window.setTimeout(function(){i||t.apply(n,e),r=0},o))}},v.throttle=function(e,t,o){var i,n,r,s=null;return function(){i=arguments,n=!0,o=o||this,t?s||(r=function(){n?(e.apply(o,i),n=!1,s=setTimeout(r,t)):s=null})():e.apply(o,i)}},v.normilizeCSSValue=function(e,t){switch(e){case"font-weight":return"bold"===t?700:t}return t},v.css=function(e,t,o,i){void 0===i&&(i=!1);var n=/^left|top|bottom|right|width|min|max|height|margin|padding|font-size/i;if(v.isPlainObject(t)||void 0!==o){var r=function(e,t,o){null!=o&&n.test(t)&&/^[\-+]?[0-9.]+$/.test(""+o)&&(o=parseInt(""+o,10)+"px"),void 0!==o&&v.css(e,t,void 0,!0)!==v.normilizeCSSValue(t,o)&&(e.style[t]=o)};if(v.isPlainObject(t)){var s=Object.keys(t),a=void 0;for(a=0;s.length>a;a+=1)r(e,v.camelCase(s[a]),t[s[a]])}else r(e,v.camelCase(t),o);return""}var l=v.fromCamelCase(t),c=e.ownerDocument,d=!!c&&(c.defaultView||c.parentWindow),u=e.style[t],h=void 0!==u&&""!==u?u:d&&!i?d.getComputedStyle(e).getPropertyValue(l):"";return n.test(t)&&/^[\-+]?[0-9.]+px$/.test(""+h)&&(h=parseInt(h,10)),v.normilizeCSSValue(t,h)},v.asArray=function(e){return Array.isArray(e)?e:[e]},v.splitArray=function(e){return"string"==typeof e?e.split(/[,\s]+/):e},v.sprintf=function(){for(var e=[],t=0;arguments.length>t;t++)e[t]=arguments[t];var v=e,b=0,o=v[b++],w=function(e,t,o,i){var n=t>e.length?Array(1+t-e.length>>>0).join(o):"";return i?e+n:n+e},y=function(e,t,o,i,n){var r=i-e.length;return 0<r&&(e=o||!n?w(e,i," ",o):e.slice(0,t.length)+w("",r,"0",!0)+e.slice(t.length)),e},x=function(e,t,o,i,n,r,s){var a=e>>>0,l=(o=o&&a&&{2:"0b",8:"0",16:"0x"}[t]||"")+w(a.toString(t),r||0,"0",!1);return y(l,o,i,n,s)},_=function(e,t,o,i,n){return null!=i&&(e=e.slice(0,i)),y(e,"",t,o,n)};return o.replace(/%%|%(\d+\$)?([-+#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g,function(e,t,o,i,n,r,s){if("%%"==e)return"%";for(var a=!1,l="",c=!1,d=!1,u=0;o&&o.length>u;u++)switch(o.charAt(u)){case" ":l=" ";break;case"+":l="+";break;case"-":a=!0;break;case"0":c=!0;break;case"#":d=!0}if((i=i?"*"===i?+v[b++]:"*"===(""+i)[0]?+v[(""+i).slice(1,-1)]:+i:0)<0&&(i=-i,a=!0),!isFinite(i))throw Error("sprintf: (minimum-)width must be finite");r=r?"*"===r?+v[b++]:"*"===r[0]?+v[r.slice(1,-1)]:+r:-1<"fFeE".indexOf(s)?6:"d"==s?0:void 0;var h=t?v[t.slice(0,-1)]:v[b++];switch(s){case"s":return _(h+"",a,i,r,c);case"c":return _(String.fromCharCode(+h),a,i,r,c);case"b":return x(h,2,d,a,i,r,c);case"o":return x(h,8,d,a,i,r,c);case"x":return x(h,16,d,a,i,r,c);case"X":return x(h,16,d,a,i,r,c).toUpperCase();case"u":return x(h,10,d,a,i,r,c);case"i":case"d":return h=(f=(p=parseInt(""+h,10))<0?"-":l)+w(Math.abs(p)+"",r,"0",!1),y(h,f,a,i,c);case"e":case"E":case"f":case"F":case"g":case"G":var p,f=(p=+h)<0?"-":l,g=["toExponential","toFixed","toPrecision"]["efg".indexOf(s.toLowerCase())],m=["toString","toUpperCase"]["eEfFgG".indexOf(s)%2];return h=f+Math.abs(p)[g](r),y(h,f,a,i,c)[m]();default:return e}})},v.val=function(e,t,o){var i=e.querySelector(t);return i?(o&&(i.value=o),i.value):""},v.defaultLanguage=function(e){return"auto"===e||void 0===e?document.documentElement.lang||navigator.language&&navigator.language.substr(0,2)||!!navigator.browserLanguage&&navigator.browserLanguage.substr(0,2)||"en":e},v.normalizeNode=function(e){if(e){if(e.nodeType===Node.TEXT_NODE&&null!==e.nodeValue&&e.parentNode)for(;e.nextSibling&&e.nextSibling.nodeType===Node.TEXT_NODE;)null!==e.nextSibling.nodeValue&&(e.nodeValue+=e.nextSibling.nodeValue),e.nodeValue=e.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP,""),e.parentNode.removeChild(e.nextSibling);else v.normalizeNode(e.firstChild);v.normalizeNode(e.nextSibling)}},v.cleanFromWord=function(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));var t="";try{var o=document.createElement("div");o.innerHTML=e;var i=[];o.firstChild&&n.Dom.all(o,function(t){switch(t.nodeType){case Node.ELEMENT_NODE:"FONT"===t.nodeName?n.Dom.unwrap(t):[].slice.call(t.attributes).forEach(function(e){-1===["src","href","rel","content"].indexOf(e.name.toLowerCase())&&t.removeAttribute(e.name)});break;case Node.TEXT_NODE:break;default:i.push(t)}}),i.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),t=o.innerHTML}catch(e){}return t&&(e=t),e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")},v.applyStyles=function(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);var t=document.createElement("iframe");t.style.display="none",document.body.appendChild(t);var o="",i=[];try{var n=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(n){n.open(),n.write(e),n.close(),n.styleSheets.length&&(i=n.styleSheets[n.styleSheets.length-1].cssRules);for(var r=0;i.length>r;r+=1)!function(t){if(""===i[t].selectorText)return;v.$$(i[t].selectorText,n.body).forEach(function(e){e.style.cssText+=i[t].style.cssText.replace(/mso-[a-z\-]+:[\s]*[^;]+;/g,"").replace(/border[a-z\-]*:[\s]*[^;]+;/g,"")})}(r);o=n.firstChild?n.body.innerHTML:""}}catch(e){}finally{t.parentNode&&t.parentNode.removeChild(t)}return o&&(e=o),e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")},v.inView=function(e,t,o){var i=e.getBoundingClientRect(),n=i.top,r=i.height,s=e;do{if(s&&s.parentNode){if((i=(s=s.parentNode).getBoundingClientRect()).bottom>=n==0)return!1;if(i.top>=n+r)return!1}}while(s&&s!=t&&s.parentNode);return o.documentElement.clientHeight>=n},v.scrollIntoView=function(e,t,o){v.inView(e,t,o)||(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),v.inView(e,t,o)||e.scrollIntoView())},v.getXPathByElement=function(t,e){if(!t||1!=t.nodeType)return"";if(!t.parentNode||e===t)return"";if(t.id)return"//*[@id='"+t.id+"']";var o=[].filter.call(t.parentNode.childNodes,function(e){return e.nodeName===t.nodeName});return v.getXPathByElement(t.parentNode,e)+"/"+t.nodeName.toLowerCase()+(1<o.length?"["+([].indexOf.call(o,t)+1)+"]":"")},v.dataBind=function(e,t,o){var i=e.JoditDataBindkey;if(i||(i={},Object.defineProperty(e,"JoditDataBindkey",{enumerable:!1,configurable:!0,value:i})),void 0===o)return i[t];i[t]=o},v.isLicense=function(e){return"string"==typeof e&&32===e.length&&/^[a-z0-9]+$/.test(e)},v.normalizeLicense=function(e,t){void 0===t&&(t=8);for(var o=[];e.length;)o.push(e.substr(0,t)),e=e.substr(t);return o[1]=o[1].replace(/./g,"*"),o[2]=o[2].replace(/./g,"*"),o.join("-")};var p=function(){function e(e){var t=this;this.length=0,v.extend(!0,this,e),this.length=e.length;var o=Array.prototype;["map","forEach","reduce","push","pop","shift","unshift","slice","splice"].forEach(function(e){t[e]=o[e]})}return e.prototype.toString=function(){for(var e=[],t=0;this.length>t;t+=1)e[t]=this[t];return""+e},e}();v.JoditArray=p;var f=function(e){v.extend(!0,this,e)};v.JoditObject=f,v.getRange=function(){var e=window.getSelection().getRangeAt(0);return[e.startContainer,e.startOffset,e.endContainer,e.endOffset]},v.innerWidth=function(e,t){var o=t.getComputedStyle(e);return e.clientWidth-(parseFloat(o.paddingLeft||"0")+parseFloat(o.paddingRight||"0"))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),c=o(0),s=o(5),n=o(12),d=n.Widget.TabsWidget,a=n.Widget.FileSelectorWidget,l=o(3),u=o(6),r=function(){this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,popup:{selection:["bold","underline","italic","ul","ol","outdent","indent","\n","fontsize","brush","paragraph","link","align","cut","dots"]},showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,this.zIndex=0,this.readonly=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.toolbarButtonSize="middle",this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.saveHeightInStorage=!1,this.spellcheck=!0,this.editorCssClass=!1,this.triggerChangeEvent=!0,this.width="auto",this.minWidth="200px",this.maxWidth="100%",this.height="auto",this.minHeight=200,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n="en",this.tabIndex=-1,this.toolbar=!0,this.showTooltip=!0,this.showTooltipDelay=500,this.useNativeTooltip=!1,this.enter=i.PARAGRAPH,this.defaultMode=i.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraButtons=[],this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=["source","|","bold","strikethrough","underline","italic","|","superscript","subscript","|","ul","ol","|","outdent","indent","|","font","fontsize","brush","paragraph","|","image","file","video","table","link","|","align","undo","redo","\n","cut","hr","eraser","copyformat","|","symbol","fullsize","selectall","print","about"],this.buttonsMD=["source","|","bold","italic","|","ul","ol","|","font","fontsize","brush","paragraph","|","image","table","link","|","align","|","undo","redo","|","hr","eraser","copyformat","fullsize","dots"],this.buttonsSM=["source","|","bold","italic","|","ul","ol","|","fontsize","brush","paragraph","|","image","table","link","|","align","|","undo","redo","|","eraser","copyformat","fullsize","dots"],this.buttonsXS=["bold","image","|","brush","paragraph","|","align","|","undo","redo","|","eraser","dots"],this.events={},this.textIcons=!1};t.Config=r,t.OptionsDefault=function(e){var i=this,n=this;if(void 0!==(n.plainOptions=e)&&"object"==typeof e){var r=function(e,t){if("preset"===t&&void 0!==s.Jodit.defaultOptions.presets[e.preset]){var o=s.Jodit.defaultOptions.presets[e.preset];Object.keys(o).forEach(r.bind(i,o))}n[t]="object"!=typeof s.Jodit.defaultOptions[t]||Array.isArray(s.Jodit.defaultOptions[t])?e[t]:c.extend(!0,{},s.Jodit.defaultOptions[t],e[t])};Object.keys(e).forEach(r.bind(this,e))}},r.prototype.controls={print:{exec:function(e){var t=window.open("","PRINT");t&&(e.options.iframe?(e.events.fire("generateDocumentStructure.iframe",t.document,e),t.document.body.innerHTML=e.getEditorValue()):(t.document.write("<!doctype html><html><head><title></title></head><body>"+e.getEditorValue()+"</body></html>"),t.document.close()),t.focus(),t.print(),t.close())},mode:i.MODE_SOURCE+i.MODE_WYSIWYG},about:{exec:function(e){var t=e.getInstance("Dialog");t.setTitle(e.i18n("About Jodit")),t.setContent('<div class="jodit_about">                    <div>'+e.i18n("Jodit Editor")+" v."+e.getVersion()+" </div><div>"+e.i18n("License: %s",c.isLicense(e.options.license)?c.normalizeLicense(e.options.license):e.i18n("GNU General Public License, version 2 or later"))+'</div><div><a href="https://xdsoft.net/jodit/" target="_blank">http://xdsoft.net/jodit/</a></div><div><a href="https://xdsoft.net/jodit/doc/" target="_blank">'+e.i18n("Jodit User's Guide")+"</a> "+e.i18n("contains detailed help for using")+"</div><div>"+e.i18n("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")+"</div></div>"),t.open()},tooltip:"About Jodit",mode:i.MODE_SOURCE+i.MODE_WYSIWYG},hr:{command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},image:{popup:function(i,e,t,n){var r=null;return e&&e.nodeType!==Node.TEXT_NODE&&("IMG"===e.tagName||c.$$("img",e).length)&&(r="IMG"===e.tagName?e:c.$$("img",e)[0]),a(i,{filebrowser:function(e){if(e.files&&e.files.length){var t=void 0;for(t=0;e.files.length>t;t+=1)i.selection.insertImage(e.baseurl+e.files[t])}n()},upload:function(e){var t;if(e.files&&e.files.length)for(t=0;e.files.length>t;t+=1)i.selection.insertImage(e.baseurl+e.files[t]);n()},url:function(e,t){var o=r||c.dom('<img src=""/>',i.editorDocument);o.setAttribute("src",e),o.setAttribute("alt",t),r||i.selection.insertImage(o),n()}},r,n)},tags:["img"],tooltip:"Insert Image"},file:{popup:function(o,e,t,i){var n=function(e,t){void 0===t&&(t=""),o.selection.insertNode(c.dom('<a href="'+e+'" title="'+t+'">'+(t||e)+"</a>",o.editorDocument))},r=null;return e&&("A"===e.nodeName||l.Dom.closest(e,"A",o.editor))&&(r="A"===e.nodeName?e:l.Dom.closest(e,"A",o.editor)),a(o,{filebrowser:function(e){if(e.files&&e.files.length){var t=void 0;for(t=0;e.files.length>t;t+=1)n(e.baseurl+e.files[t])}i()},upload:function(e){var t;if(e.files&&e.files.length)for(t=0;e.files.length>t;t+=1)n(e.baseurl+e.files[t]);i()},url:function(e,t){r?(r.setAttribute("href",e),r.setAttribute("title",t)):n(e,t),i()}},r,i,!1)},tags:["a"],tooltip:"Insert file"},video:{popup:function(t,e,o,i){var n=c.dom('<form class="jodit_form">\n                        <input required name="code" placeholder="http://" type="url"/>\n                        <button type="submit">'+t.i18n("Insert")+"</button>\n                        </form>",t.ownerDocument),r=c.dom('<form class="jodit_form">\n                        <textarea required name="code" placeholder="'+t.i18n("Embed code")+'"></textarea>\n                        <button type="submit">'+t.i18n("Insert")+"</button>\n                        </form>",t.ownerDocument),s={},a=t.selection.save(),l=function(e){t.selection.restore(a),t.selection.insertHTML(e),i()};return t.options.textIcons?(s[t.i18n("Link")]=n,s[t.i18n("Code")]=r):(s[u.ToolbarIcon.getIcon("link")+"&nbsp;"+t.i18n("Link")]=n,s[u.ToolbarIcon.getIcon("source")+"&nbsp;"+t.i18n("Code")]=r),r.addEventListener("submit",function(e){return e.preventDefault(),c.trim(c.val(r,"textarea[name=code]"))?l(c.val(r,"textarea[name=code]")):(r.querySelector("textarea[name=code]").focus(),r.querySelector("textarea[name=code]").classList.add("jodit_error")),!1}),n.addEventListener("submit",function(e){return e.preventDefault(),c.isURL(c.val(n,"input[name=code]"))?l(c.convertMediaURLToVideoEmbed(c.val(n,"input[name=code]"))):(n.querySelector("input[name=code]").focus(),n.querySelector("input[name=code]").classList.add("jodit_error")),!1}),d(t,s)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INVISIBLE_SPACE="\ufeff",t.INVISIBLE_SPACE_REG_EXP=/[\uFEFF]/g,t.INVISIBLE_SPACE_REG_EXP_END=/[\uFEFF]+$/g,t.INVISIBLE_SPACE_REG_EXP_START=/^[\uFEFF]+/g,t.SPACE_REG_EXP=/[\s\n\t\r\uFEFF\u200b]+/g,t.SPACE_REG_EXP_START=/^[\s\n\t\r\uFEFF\u200b]+/g,t.SPACE_REG_EXP_END=/[\s\n\t\r\uFEFF\u200b]+$/g,t.IS_BLOCK=/^(PRE|DIV|P|LI|H[1-6]|BLOCKQUOTE|TD|TH|TABLE|BODY|HTML|FIGCAPTION|FIGURE)$/i,t.IS_INLINE=/^(STRONG|SPAN|I|EM|B|SUP|SUB)$/,t.KEY_BACKSPACE=8,t.KEY_TAB=9,t.KEY_ENTER=13,t.KEY_ESC=27,t.KEY_LEFT=37,t.KEY_UP=38,t.KEY_RIGHT=39,t.KEY_DOWN=40,t.KEY_DELETE=46,t.KEY_F=70,t.KEY_R=82,t.KEY_H=72,t.KEY_Y=89,t.KEY_V=86,t.KEY_Z=90,t.KEY_F3=114,t.NEARBY=5,t.ACCURACY=10,t.BR="br",t.PARAGRAPH="P",t.MODE_WYSIWYG=1,t.MODE_SOURCE=2,t.MODE_SPLIT=3,t.URL_LIST="undefined"==typeof navigator||-1==navigator.userAgent.indexOf("MSIE")&&!/rv:11.0/i.test(navigator.userAgent)?"text/uri-list":"url",t.TEXT_PLAIN="undefined"==typeof navigator||-1==navigator.userAgent.indexOf("MSIE")&&!/rv:11.0/i.test(navigator.userAgent)?"text/plain":"text",t.TEXT_HTML="undefined"==typeof navigator||-1==navigator.userAgent.indexOf("MSIE")&&!/rv:11.0/i.test(navigator.userAgent)?"text/html":"text",t.MARKER_CLASS="jodit_selection_marker",t.EMULATE_DBLCLICK_TIMEOUT=300,t.JODIT_SELECTED_CELL_MARKER="data-jodit-selected-cell",t.INSERT_AS_HTML="insert_as_html",t.INSERT_CLEAR_HTML="insert_clear_html",t.INSERT_AS_TEXT="insert_as_text",t.INSERT_ONLY_TEXT="insert_only_text"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(2),s=o(0);t.Dom=function(){function d(){}return d.detach=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},d.unwrap=function(e){var t=e.parentNode,o=e;if(t){for(;o.firstChild;)t.insertBefore(o.firstChild,o);t.removeChild(o)}},d.each=function(e,t){var o=e.firstChild;if(o)for(;o;){if(!1===t.call(o,o)||!1===d.each(o,t))return!1;o=d.next(o,function(e){return!!e},e)}return!0},d.create=function(e,t,o){var i;return"text"===(e=e.toLowerCase())?i=o.createTextNode("string"==typeof t?t:""):(i=o.createElement(e),void 0!==t&&(i.innerHTML=t)),i},d.replace=function(e,t,o,i,n){void 0===o&&(o=!1),void 0===i&&(i=!1);var r="string"==typeof t?n.createElement(t):t;if(!i)for(;e.firstChild;)r.appendChild(e.firstChild);return o&&s.each(e.attributes,function(e,t){r.setAttribute(t.name,t.nodeValue)}),e.parentNode&&e.parentNode.replaceChild(r,e),r},d.isCell=function(e,t){return d.isNode(e,t)&&/^(td|th)$/i.test(e.nodeName)},d.isImage=function(e,t){return d.isNode(e,t)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)},d.isBlock=function(e){return!!e&&"string"==typeof e.nodeName&&n.IS_BLOCK.test(e.nodeName)},d.isInlineBlock=function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE&&-1!==["inline","inline-block"].indexOf(""+s.css(e,"display"))},d.canSplitBlock=function(e,t){return e&&e instanceof t.HTMLElement&&this.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)},d.prev=function(e,t,o,i){return void 0===i&&(i=!0),d.find(e,t,o,!1,"previousSibling",!!i&&"lastChild")},d.next=function(e,t,o,i){return void 0===i&&(i=!0),d.find(e,t,o,void 0,void 0,i?"firstChild":"")},d.find=function(e,t,o,i,n,r){if(void 0===i&&(i=!1),void 0===n&&(n="nextSibling"),void 0===r&&(r="firstChild"),i&&t(e))return e;var s,a=e;do{if(t(s=a[n]))return s||!1;if(r&&s&&s[r]){var l=d.find(s[r],t,s,!0,n,r);if(l)return l}s||(s=a.parentNode),a=s}while(a&&a!==o);return!1},d.findWithCurrent=function(e,t,o,i,n){void 0===i&&(i="nextSibling"),void 0===n&&(n="firstChild");var r=e;do{if(t(r))return r||!1;if(n&&r&&r[n]){var s=d.findWithCurrent(r[n],t,r,i,n);if(s)return s}for(;r&&!r[i]&&r!==o;)r=r.parentNode;r&&r[i]&&r!==o&&(r=r[i])}while(r&&r!==o);return!1},d.isEmptyTextNode=function(e){return e&&e.nodeType===Node.TEXT_NODE&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP,"").length)},d.isEmpty=function(e,t){return void 0===t&&(t=/^(img|svg|canvas|input|textarea|form)$/),!e||(e.nodeType===Node.TEXT_NODE?null===e.nodeValue||0===s.trim(e.nodeValue).length:!e.nodeName.toLowerCase().match(t)&&d.each(e,function(e){if(e&&e.nodeType===Node.TEXT_NODE&&null!==e.nodeValue&&0!==s.trim(e.nodeValue).length||e&&e.nodeType===Node.ELEMENT_NODE&&e.nodeName.toLowerCase().match(t))return!1}))},d.isNode=function(e,t){return"object"==typeof t?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},d.up=function(e,t,o){var i=e;if(!e)return!1;do{if(t(i))return i;if(i===o||!i.parentNode)break;i=i.parentNode}while(i&&i!==o);return!1},d.closest=function(e,t,o){var i;return i="function"==typeof t?t:t instanceof RegExp?function(e){return t.test(e.nodeName)}:function(e){return RegExp("^("+t+")$","i").test(e.nodeName)},d.up(e,i,o)},d.after=function(e,t){var o=e.parentNode;o&&(o.lastChild===e?o.appendChild(t):o.insertBefore(t,e.nextSibling))},d.moveContent=function(e,t,o){void 0===o&&(o=!1);var i=e.ownerDocument.createDocumentFragment();[].slice.call(e.childNodes).forEach(function(e){e.nodeType===Node.TEXT_NODE&&e.nodeValue===n.INVISIBLE_SPACE||i.appendChild(e)}),o&&t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)},d.all=function(e,t,o){void 0===o&&(o=!1);var i=e.childNodes?Array.prototype.slice.call(e.childNodes):[];if(t(e))return e;o&&(i=i.reverse()),i.forEach(function(e){d.all(e,t,o)})},d.wrapInline=function(e,t,o){for(var i,n=e,r=e,s=o.selection.save(),a=!1;a=!1,(i=n.previousSibling)&&!d.isBlock(i)&&(a=!0,n=i),a;);for(;a=!1,(i=r.nextSibling)&&!d.isBlock(i)&&(a=!0,r=i),a;);var l="string"==typeof t?o.editorDocument.createElement(t):t;n.parentNode&&n.parentNode.insertBefore(l,n);for(var c=n;c&&(c=n.nextSibling,l.appendChild(n),n!==r&&c);)n=c;return o.selection.restore(s),l},d.wrap=function(e,t,o){var i=o.selection.save(),n="string"==typeof t?o.editorDocument.createElement(t):t;return e.parentNode?(e.parentNode.insertBefore(n,e),n.appendChild(e),o.selection.restore(i),n):null},d.findInline=function(e,t,o){var i=e,n=null;do{if(!i)break;if((n=t?i.previousSibling:i.nextSibling)||!i.parentNode||i.parentNode===o||!d.isInlineBlock(i.parentNode))break;i=i.parentNode}while(!n);for(;n&&d.isInlineBlock(n)&&(t?n.lastChild:n.firstChild);)n=t?n.lastChild:n.firstChild;return n},d.contains=function(e,t){for(;t.parentNode;){if(t.parentNode===e)return!0;t=t.parentNode}return!1},d.isOrContains=function(e,t,o){return void 0===o&&(o=!1),t&&e&&(e===t&&!o||d.contains(e,t))},d}()},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(5);t.Component=function(){function e(e){var t=this;this.__whoLocked="",this.isLocked=function(){return""!==t.__whoLocked},this.isLockedNotBy=function(e){return t.isLocked()&&t.__whoLocked!==e},this.__modulesInstances={},this.isDestructed=!1,e&&((this.jodit=e)instanceof i.Jodit&&this.jodit.components&&this.jodit.components.push(this))}return e.prototype.destruct=function(){},e.prototype.getInstance=function(e,t){if(void 0===i.Jodit.modules[e])throw Error("Need real module name");return void 0===this.__modulesInstances[e]&&(this.__modulesInstances[e]=new i.Jodit.modules[e](this,t)),this.__modulesInstances[e]},e}()},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),s=this&&this.__awaiter||function(r,s,a,l){return new(a||(a=Promise))(function(e,t){function o(e){try{n(l.next(e))}catch(e){t(e)}}function i(e){try{n(l.throw(e))}catch(e){t(e)}}function n(t){t.done?e(t.value):new a(function(e){e(t.value)}).then(o,i)}n((l=l.apply(r,s||[])).next())})},a=this&&this.__generator||function(o,i){function e(t){return function(e){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(s=2&t[0]?r.return:t[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,t[1])).done)return s;switch(r=0,s&&(t=[2&t[0],s.value]),t[0]){case 0:case 1:s=t;break;case 4:return a.label++,{value:t[1],done:!1};case 5:a.label++,r=t[1],t=[0];continue;case 7:t=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){a=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&s[3]>t[1])){a.label=t[1];break}if(6===t[0]&&s[1]>a.label){a.label=s[1],s=t;break}if(s&&s[2]>a.label){a.label=s[2],a.ops.push(t);break}s[2]&&a.ops.pop(),a.trys.pop();continue}t=i.call(o,a)}catch(e){t=[6,e],r=0}finally{n=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}var n,r,s,t,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t};Object.defineProperty(t,"__esModule",{value:!0});var l=o(17),d=o(11),u=o(3),h=o(13),p=o(2),f=o(0),g=o(0),m=o(1),v=o(33),b=o(21),w=o(22),y=o(8),n=o(19);t.Jodit=function(n){function c(t,e){var o=n.call(this)||this;if(o.version="3.2.9",o.components=[],o.storage=new b.Storage(new b.localStorageProvider),o.iframe=null,o.__plugins={},o.__defaultStyleDisplayKey="data-jodit-default-style-display",o.__defaultClassesKey="data-jodit-default-classes",o.commands={},o.__selectionLocked=null,o.isLockedNotBy=function(e){return o.isLocked()&&o.__whoLocked!==e},o.mode=p.MODE_WYSIWYG,o.getVersion=function(){return o.version},o.buffer={},o.options=new m.OptionsDefault(e),o.editorDocument=o.options.ownerDocument,o.editorWindow=o.options.ownerWindow,o.ownerDocument=o.options.ownerDocument,o.ownerWindow=o.options.ownerWindow,o.events=new h.EventsNative(o.ownerDocument),"string"==typeof t)try{o.element=o.ownerDocument.querySelector(t)}catch(e){throw Error('String "'+t+'" should be valid HTML selector')}else o.element=t;if(!o.element||"object"!=typeof o.element||o.element.nodeType!==Node.ELEMENT_NODE||!o.element.cloneNode)throw Error('Element "'+t+'" should be string or HTMLElement instance');o.options.events&&Object.keys(o.options.events).forEach(function(e){o.events.on(e,o.options.events[e])}),o.selection=new l.Select(o),o.uploader=new d.Uploader(o),o.observer=new w.Observer(o),o.container=f.dom('<div contenteditable="false" class="jodit_container" />',o.ownerDocument);var i=null;return o.options.inline&&(-1===["TEXTAREA","INPUT"].indexOf(o.element.nodeName)&&(o.container=o.element,o.element.setAttribute(o.__defaultClassesKey,""+o.element.className),i=o.container.innerHTML,o.container.innerHTML=""),o.container.classList.add("jodit_inline"),o.container.classList.add("jodit_container")),o.container.classList.add("jodit_"+(o.options.theme||"default")+"_theme"),o.options.zIndex&&(o.container.style.zIndex=""+parseInt(""+o.options.zIndex,10)),o.workplace=f.dom('<div contenteditable="false" class="jodit_workplace" />',o.ownerDocument),o.progress_bar=f.dom('<div class="jodit_progress_bar"><div></div></div>',o.ownerDocument),o.toolbar=new y.ToolbarCollection(o),o.options.toolbar&&o.toolbar.build(f.splitArray(o.options.buttons).concat(o.options.extraButtons),o.container),o.container.classList.add("jodit_toolbar_size-"+(-1!==["middle","large","small"].indexOf(o.options.toolbarButtonSize.toLowerCase())?o.options.toolbarButtonSize.toLowerCase():"middle")),o.options.textIcons&&o.container.classList.add("jodit_text_icons"),o.events.on(o.ownerWindow,"resize",function(){o.events&&o.events.fire("resize")}),o.container.appendChild(o.workplace),o.statusbar=new v.StatusBar(o,o.container),o.workplace.appendChild(o.progress_bar),o.element.parentNode&&o.element!==o.container&&o.element.parentNode.insertBefore(o.container,o.element),o.helper=g,o.id=o.element.getAttribute("id")||""+(new Date).getTime(),o.__initPlugines(),o.__initEditor(i).then(function(){return s(o,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this.events.fire("afterInit",this)];case 1:return e.sent(),this.events.fire("afterConstructor",this),[2]}})})}),o}return r(c,n),c.prototype.__initEditor=function(i){return s(this,void 0,void 0,function(){var t,o;return a(this,function(e){switch(e.label){case 0:return[4,this.__createEditor()];case 1:e.sent(),this.element!==this.container?this.setElementValue():null!==i&&this.setEditorValue(i),c.instances[this.id]=this,t=this.options.defaultMode,this.options.saveModeInStorage&&null!==(o=this.storage.get("jodit_default_mode"))&&(t=parseInt(o,10)),this.setMode(t),this.options.readonly&&this.setReadOnly(!0);try{this.editorDocument.execCommand("defaultParagraphSeparator",!1,this.options.enter.toLowerCase())}catch(e){}try{this.editorDocument.execCommand("enableObjectResizing",!1,!1)}catch(e){}try{this.editorDocument.execCommand("enableInlineTableEditing",!1,!1)}catch(e){}return[2]}})})},c.prototype.__initPlugines=function(){var t=this,o=Array.isArray(this.options.disablePlugins)?this.options.disablePlugins.map(function(e){return e.toLowerCase()}):this.options.disablePlugins.toLowerCase().split(/[\s,]+/);Object.keys(c.plugins).forEach(function(e){-1===o.indexOf(e.toLowerCase())&&(t.__plugins[e]=new c.plugins[e](t))})},c.prototype.__createEditor=function(){return s(this,void 0,void 0,function(){var t=this;return a(this,function(e){switch(e.label){case 0:return[4,this.events.fire("createEditor",this)];case 1:return!1!==e.sent()&&(this.editor=f.dom('<div class="jodit_wysiwyg" contenteditable aria-disabled="false" tabindex="'+this.options.tabIndex+'"></div>',this.ownerDocument),this.workplace.appendChild(this.editor)),this.options.editorCssClass&&this.editor.classList.add(this.options.editorCssClass),this.events.on("synchro",function(){t.setEditorValue()}).on(this.editor,"selectionchange selectionstart keydown keyup keypress mousedown mouseup mousepress click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",function(e){if(!t.options.readonly&&t.events&&t.events.fire){if(!1===t.events.fire(e.type,e))return!1;t.setEditorValue()}}),this.options.spellcheck&&this.editor.setAttribute("spellcheck","true"),this.options.direction&&(this.editor.style.direction="rtl"===this.options.direction.toLowerCase()?"rtl":"ltr"),this.element!==this.container&&(this.element.style.display&&this.element.setAttribute(this.__defaultStyleDisplayKey,this.element.style.display),this.element.style.display="none"),this.options.triggerChangeEvent&&this.events.on("change",f.debounce(function(){t.events&&t.events.fire(t.element,"change")},this.defaultTimeout)),[2]}})})},c.prototype.destruct=function(){var t=this;if(!this.isDestructed&&(!(this.isDestructed=!0)!==this.events.fire("beforeDestruct")&&this.editor)){var e=this.getEditorValue();this.element!==this.container?this.element.hasAttribute(this.__defaultStyleDisplayKey)?(this.element.style.display=this.element.getAttribute(this.__defaultStyleDisplayKey),this.element.removeAttribute(this.__defaultStyleDisplayKey)):this.element.style.display="":this.element.hasAttribute(this.__defaultClassesKey)&&(this.element.className=this.element.getAttribute(this.__defaultClassesKey)||"",this.element.removeAttribute(this.__defaultClassesKey)),this.element.hasAttribute("style")&&!this.element.getAttribute("style")&&this.element.removeAttribute("style"),Object.keys(this.__plugins).forEach(function(e){void 0!==t.__plugins&&void 0!==t.__plugins[e]&&void 0!==t.__plugins[e].destruct&&"function"==typeof t.__plugins[e].destruct&&t.__plugins[e].destruct(),delete t.__plugins[e]}),this.components.forEach(function(e){void 0!==e.destruct&&"function"==typeof e.destruct&&e.destruct()}),delete this.selection,this.events.off(this.ownerWindow),this.events.off(this.ownerDocument),this.events.off(this.ownerDocument.body),this.events.off(this.element),this.events.off(this.editor),this.events.destruct(),delete this.events,this.workplace.parentNode&&this.workplace.parentNode.removeChild(this.workplace),this.editor.parentNode&&this.editor.parentNode.removeChild(this.editor),this.iframe&&this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.container.parentNode&&this.container!==this.element&&this.container.parentNode.removeChild(this.container),delete this.editor,delete this.workplace,this.container===this.element&&(this.element.innerHTML=e),delete c.instances[this.id],delete this.container}},c.prototype.getElementValue=function(){return void 0!==this.element.value?this.element.value:this.element.innerHTML},c.prototype.getNativeEditorValue=function(){return this.editor?this.editor.innerHTML:this.getElementValue()},c.prototype.getEditorValue=function(e){var t;if(void 0===e&&(e=!0),void 0!==(t=this.events.fire("beforeGetValueFromEditor")))return t;t=this.getNativeEditorValue().replace(p.INVISIBLE_SPACE_REG_EXP,""),e&&(t=t.replace(/<span[^>]+id="jodit_selection_marker_[^>]+><\/span>/g,"")),"<br>"===t&&(t="");var o={value:t};return this.events.fire("afterGetValueFromEditor",o),o.value},c.prototype.getEditorText=function(){if(this.editor)return this.editor.innerText;var e=this.ownerDocument.createElement("div");return e.innerHTML=this.getElementValue(),e.innerText},c.prototype.setElementValue=function(e){if("string"!=typeof e&&void 0!==e)throw Error("value must be string");void 0!==e?this.element!==this.container&&(void 0!==this.element.value?this.element.value=e:this.element.innerHTML=e):e=this.getElementValue(),e!==this.getEditorValue()&&this.setEditorValue(e)},c.prototype.setEditorValue=function(e){var t=this.events.fire("beforeSetValueToEditor",e);if(!1!==t){if("string"==typeof t&&(e=t),!this.editor)return void(void 0!==e&&this.setElementValue(e));if("string"!=typeof e&&void 0!==e)throw Error("value must be string");void 0!==e&&this.editor.innerHTML!==e&&(this.editor.innerHTML=e);var o=this.getElementValue(),i=this.getEditorValue();o!==i&&(this.setElementValue(i),this.events.fire("change",i,o))}},Object.defineProperty(c.prototype,"value",{get:function(){return this.getEditorValue()},set:function(e){this.setEditorValue(e)},enumerable:!0,configurable:!0}),c.prototype.execCustomCommands=function(o,i,n){var r=this;if(void 0===i&&(i=!1),void 0===n&&(n=null),o=o.toLowerCase(),void 0!==this.commands[o]){var s=void 0;return this.commands[o].forEach(function(e){var t=("function"==typeof e?e:e.exec).call(r,o,i,n);void 0!==t&&(s=t)}),s}},c.prototype.registerCommand=function(e,t){var o=this,i=e.toLowerCase();if(void 0===this.commands[i]&&(this.commands[i]=[]),this.commands[i].push(t),"function"!=typeof t){var n=this.options.commandToHotkeys[i]||this.options.commandToHotkeys[e]||t.hotkeys;n&&this.events.off(f.asArray(n).map(function(e){return e+".hotkey"}).join(" ")).on(f.asArray(n).map(function(e){return e+".hotkey"}).join(" "),function(){return o.execCommand(i)})}},c.prototype.execCommand=function(e,t,o){if(void 0===t&&(t=!1),void 0===o&&(o=null),!this.options.readonly||"selectall"===e){var i;if(e=e.toLowerCase(),!1!==(i=this.events.fire("beforeCommand",e,t,o))&&(i=this.execCustomCommands(e,t,o)),!1!==i)switch(this.selection.focus(),e){case"selectall":this.selection.select(this.editor,!0);break;default:try{i=this.editorDocument.execCommand(e,t,o)}catch(e){}}return this.events.fire("afterCommand",e,t,o),this.setEditorValue(),i}},c.prototype.lock=function(e){void 0===e&&(e="any"),this.isLocked()||(this.__whoLocked=e,this.__selectionLocked=this.selection.save(),this.editor.classList.add("jodit_disabled"))},c.prototype.unlock=function(){this.isLocked()&&(this.__whoLocked="",this.editor.classList.remove("jodit_disabled"),this.__selectionLocked&&this.selection.restore(this.__selectionLocked))},c.prototype.getMode=function(){return this.mode},c.prototype.isEditorMode=function(){return this.getRealMode()===p.MODE_WYSIWYG},c.prototype.getRealMode=function(){return this.getMode()!==p.MODE_SPLIT?this.getMode():u.Dom.isOrContains(this.editor,this.ownerDocument.activeElement)||u.Dom.isOrContains(this.toolbar.container,this.ownerDocument.activeElement)?p.MODE_WYSIWYG:p.MODE_SOURCE},c.prototype.setMode=function(e){var t=this,o=this.getMode(),i={mode:parseInt(""+e,10)},n=["jodit_wysiwyg_mode","jodit_source_mode","jodit_split_mode"];!1!==this.events.fire("beforeSetMode",i)&&(this.mode=f.inArray(i.mode,[p.MODE_SOURCE,p.MODE_WYSIWYG,p.MODE_SPLIT])?i.mode:p.MODE_WYSIWYG,this.options.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),n.forEach(function(e){t.container.classList.remove(e)}),this.container.classList.add(n[this.mode-1]),o!==this.getMode()&&this.events.fire("afterSetMode"))},c.prototype.toggleMode=function(){var e=this.getMode();f.inArray(e+1,[p.MODE_SOURCE,p.MODE_WYSIWYG,this.options.useSplitMode?p.MODE_SPLIT:9])?e+=1:e=p.MODE_WYSIWYG,this.setMode(e)},c.prototype.i18n=function(e){for(var t=this,o=[],i=1;arguments.length>i;i++)o[i-1]=arguments[i];var n,r=void 0!==this.options&&this.options.debugLanguage,s=function(e){return o.length?f.sprintf.apply(t,[e].concat(o)):e},a="auto"===c.defaultOptions.language?f.defaultLanguage(c.defaultOptions.language):c.defaultOptions.language,l=f.defaultLanguage(this.options?this.options.language:a);return n=void 0!==this.options&&void 0!==c.lang[l]?c.lang[l]:void 0!==c.lang[a]?c.lang[a]:c.lang.en,void 0!==this.options&&void 0!==this.options.i18n[l]&&this.options.i18n[l][e]?s(this.options.i18n[l][e]):"string"==typeof n[e]&&n[e]?s(n[e]):r?"{"+e+"}":s("string"==typeof c.lang.en[e]&&c.lang.en[e]?c.lang.en[e]:e)},c.prototype.setReadOnly=function(e){(this.options.readonly=e)?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.events&&this.events.fire("readonly",e)},c.prototype.getReadOnly=function(){return this.options.readonly},Object.defineProperty(c.prototype,"defaultTimeout",{get:function(){return this.options&&this.options.observer?this.options.observer.timeout:c.defaultOptions.observer.timeout},enumerable:!0,configurable:!0}),c.Array=function(e){return new f.JoditArray(e)},c.Object=function(e){return new f.JoditObject(e)},c.plugins={},c.modules={},c.instances={},c.lang={},c}(n.View)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarIcon=function(){function o(){}return o.exists=function(e){return void 0!==o.icons[e]},o.getIcon=function(e,t){return void 0===t&&(t="<span></span>"),void 0!==o.icons[e]?o.icons[e]:t},o.icons={},o}()},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),s=this&&this.__assign||Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e};Object.defineProperty(t,"__esModule",{value:!0});var u=o(5),a=o(1),h=o(0),l=o(2),c=o(13),p=o(6),r=o(19);a.Config.prototype.dialog={resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[]},a.Config.prototype.controls.dialog={close:{icon:"cancel",exec:function(e){e.close()}},fullsize:{icon:"fullsize",getLabel:a.Config.prototype.controls.fullsize.getLabel,exec:function(e){e.toggleFullSize()}}};var f=function(r){function e(e,t){void 0===t&&(t=a.Config.prototype.dialog);var o=r.call(this,e,t)||this;o.lockSelect=function(){o.container.classList.add("jodit_dialog_box-moved")},o.unlockSelect=function(){o.container.classList.remove("jodit_dialog_box-moved")},o.destinition=document.body,o.document=document,o.window=window,o.destroyAfterClose=!1,o.moved=!1,o.iSetMaximization=!1,o.resizeble=!1,o.draggable=!1,o.startX=0,o.startY=0,o.startPoint={x:0,y:0,w:0,h:0},o.__isDestructed=!1,o.close=function(e){o.__isDestructed||(e&&(e.stopImmediatePropagation(),e.preventDefault()),o.jodit&&o.jodit.events&&o.jodit.events.fire("beforeClose",o),o.container.classList&&o.container.classList.remove("active"),o.iSetMaximization&&o.maximization(!1),o.destroyAfterClose&&o.destruct(),o.jodit&&o.jodit.events&&o.jodit.events.fire(o,"afterClose"))},e&&e instanceof u.Jodit&&(o.window=e.ownerWindow,o.document=e.ownerDocument,e.events.on("beforeDestruct",function(){o.destruct()})),o.events=e&&e.events?e.events:new c.EventsNative;var i=o;i.options=s({},e&&e.options?e.options.dialog:a.Config.prototype.dialog,i.options),i.container=h.dom('<div style="z-index:'+i.options.zIndex+'" class="jodit jodit_dialog_box"><div class="jodit_dialog_overlay"></div><div class="jodit_dialog"><div class="jodit_dialog_header non-selected"><div class="jodit_dialog_header-title"></div><div class="jodit_dialog_header-toolbar"></div></div><div class="jodit_dialog_content"></div><div class="jodit_dialog_footer"></div>'+(i.options.resizable?'<div class="jodit_dialog_resizer"></div>':"")+"</div></div>",o.document),e&&e.id&&i.container.setAttribute("data-editor_id",e.id),Object.defineProperty(i.container,"__jodit_dialog",{value:i}),i.dialog=i.container.querySelector(".jodit_dialog"),i.resizer=i.container.querySelector(".jodit_dialog_resizer"),i.jodit&&i.jodit.options&&i.jodit.options.textIcons&&i.container.classList.add("jodit_text_icons"),i.dialogbox_header=i.container.querySelector(".jodit_dialog_header>.jodit_dialog_header-title"),i.dialogbox_content=i.container.querySelector(".jodit_dialog_content"),i.dialogbox_footer=i.container.querySelector(".jodit_dialog_footer"),i.dialogbox_toolbar=i.container.querySelector(".jodit_dialog_header>.jodit_dialog_header-toolbar"),i.destinition.appendChild(i.container),i.container.addEventListener("close_dialog",i.close),i.toolbar.build(i.options.buttons,i.dialogbox_toolbar),i.events.on(o.window,"mousemove",i.onMouseMove.bind(i)).on(o.window,"mouseup",i.onMouseUp.bind(i)).on(o.window,"keydown",i.onKeyDown.bind(i)).on(o.window,"resize",i.onResize.bind(i));var n=i.container.querySelector(".jodit_dialog_header");return n&&n.addEventListener("mousedown",i.onHeaderMouseDown.bind(i)),i.options.resizable&&i.resizer.addEventListener("mousedown",i.onResizerMouseDown.bind(i)),u.Jodit.plugins.fullsize(i),o}return n(e,r),e.prototype.setSize=function(e,t){e&&h.css(this.dialog,"width",e),t&&h.css(this.dialog,"height",t)},e.prototype.setPosition=function(e,t){var o=this.window.innerWidth,i=this.window.innerHeight,n=o/2-this.dialog.offsetWidth/2,r=i/2-this.dialog.offsetHeight/2;void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=100<Math.abs(e-n)||100<Math.abs(t-r)),this.dialog.style.left=(e||n)+"px",this.dialog.style.top=(t||r)+"px"},e.prototype.setElements=function(o,e){var i=this,n=[];h.asArray(e).forEach(function(e){var t=h.dom(e,i.document);n.push(t),t.parentNode!==o&&o.appendChild(t)}),[].slice.call(o.childNodes).forEach(function(e){-1===n.indexOf(e)&&o.removeChild(e)})},e.prototype.setTitle=function(e){this.setElements(this.dialogbox_header,e)},e.prototype.setContent=function(e){this.setElements(this.dialogbox_content,e)},e.prototype.setFooter=function(e){this.setElements(this.dialogbox_footer,e),this.dialog.classList.toggle("with_footer",!!e)},e.prototype.getZIndex=function(){return parseInt(this.container.style.zIndex||"0",10)},e.prototype.getMaxZIndexDialog=function(){var t,o,i=0,n=this;return h.$$(".jodit_dialog_box",this.destinition).forEach(function(e){t=e.__jodit_dialog,o=parseInt(h.css(e,"zIndex"),10),t.isOpened()&&!isNaN(o)&&i<o&&(n=t,i=o)}),n},e.prototype.setMaxZIndex=function(){var t=0,o=0;h.$$(".jodit_dialog_box",this.destinition).forEach(function(e){o=parseInt(h.css(e,"zIndex"),10),t=Math.max(isNaN(o)?0:o,t)}),this.container.style.zIndex=""+(t+1)},e.prototype.maximization=function(t){return"boolean"!=typeof t&&(t=!this.container.classList.contains("jodit_dialog_box-fullsize")),this.container.classList.toggle("jodit_dialog_box-fullsize",t),[this.destinition,this.destinition.parentNode].forEach(function(e){e&&e.classList&&e.classList.toggle("jodit_fullsize_box",t)}),this.iSetMaximization=t},e.prototype.open=function(e,t,o,i){this.jodit&&this.jodit.events&&!1===this.jodit.events.fire(this,"beforeOpen")||(this.destroyAfterClose=!0===o,void 0!==t&&this.setTitle(t),e&&this.setContent(e),this.container.classList.add("active"),i&&this.container.classList.add("jodit_modal"),this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex(),this.options.fullsize&&this.maximization(!0),this.jodit&&this.jodit.events&&this.jodit.events.fire("afterOpen",this))},e.prototype.isOpened=function(){return!this.__isDestructed&&this.container.classList.contains("active")},e.prototype.onMouseUp=function(){(this.draggable||this.resizeble)&&(this.draggable=!1,this.resizeble=!1,this.unlockSelect(),this.jodit&&this.jodit.events&&this.jodit.events.fire(this,"endResize endMove"))},e.prototype.onHeaderMouseDown=function(e){var t=e.target;!this.options.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=h.css(this.dialog,"left"),this.startPoint.y=h.css(this.dialog,"top"),this.setMaxZIndex(),e.preventDefault(),this.lockSelect(),this.jodit&&this.jodit.events&&this.jodit.events.fire(this,"startMove"))},e.prototype.onMouseMove=function(e){this.draggable&&this.options.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.jodit&&this.jodit.events&&this.jodit.events.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation(),e.preventDefault()),this.resizeble&&this.options.resizable&&(this.setSize(this.startPoint.w+e.clientX-this.startX,this.startPoint.h+e.clientY-this.startY),this.jodit&&this.jodit.events&&this.jodit.events.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation(),e.preventDefault())},e.prototype.onKeyDown=function(e){if(this.isOpened()&&e.which===l.KEY_ESC){var t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}},e.prototype.onResize=function(){!this.options.resizable||this.moved||!this.isOpened()||this.offsetX||this.offsetY||this.setPosition()},e.prototype.destruct=function(){this.__isDestructed||(this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),delete this.container,this.jodit&&this.jodit.events||this.events.destruct(),this.__isDestructed=!0)},e.prototype.onResizerMouseDown=function(e){this.resizeble=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.jodit.events&&this.jodit.events.fire(this,"startResize")},e}(r.View);t.Dialog=f,t.Alert=function(e,t,o,i){void 0===i&&(i="jodit_alert"),"function"==typeof t&&(o=t,t=void 0);var n=new f,r=h.dom('<div class="'+i+'"></div>',n.document),s=h.dom('<a href="javascript:void(0)" style="float:right;" class="jodit_button">'+p.ToolbarIcon.getIcon("cancel")+"<span>"+u.Jodit.prototype.i18n("Ok")+"</span></a>",n.document);return r.appendChild(h.dom(e,n.document)),s.addEventListener("click",function(){o&&"function"==typeof o&&!1===o(n)||n.close()}),n.setFooter([s]),n.open(r,t||"&nbsp;",!0,!0),s.focus(),n},u.Jodit.Alert=t.Alert,t.Promt=function(e,t,o,i){var n=new f,r=h.dom('<a href="javascript:void(0)" style="float:right;" class="jodit_button">'+p.ToolbarIcon.getIcon("cancel")+"<span>"+u.Jodit.prototype.i18n("Cancel")+"</span></a>",n.document),s=h.dom('<a href="javascript:void(0)" style="float:left;" class="jodit_button">'+p.ToolbarIcon.getIcon("check")+"<span>"+u.Jodit.prototype.i18n("Ok")+"</span></a>",n.document),a=h.dom('<form class="jodit_promt"></form>',n.document),l=h.dom("<input autofocus/>",n.document),c=h.dom("<label></label>",n.document);"function"==typeof t&&(o=t,t=void 0),i&&l.setAttribute("placeholder",i),c.appendChild(h.dom(e,n.document)),a.appendChild(c),a.appendChild(l),r.addEventListener("click",n.close,!1);var d=function(){o&&"function"==typeof o&&!1===o(l.value)||n.close()};return s.addEventListener("click",d),a.addEventListener("submit",function(){return d(),!1}),n.setFooter([s,r]),n.open(a,t||"&nbsp;",!0,!0),l.focus(),n},u.Jodit.Promt=t.Promt,t.Confirm=function(e,t,o){var i=new f,n=h.dom('<form class="jodit_promt"></form>',i.document),r=h.dom("<label></label>",i.document);"function"==typeof t&&(o=t,t=void 0),r.appendChild(h.dom(e,i.document)),n.appendChild(r);var s=h.dom('<a href="javascript:void(0)" style="float:right;" class="jodit_button">'+p.ToolbarIcon.getIcon("cancel")+"<span>"+u.Jodit.prototype.i18n("Cancel")+"</span></a>",i.document);s.addEventListener("click",function(){o&&o(!1),i.close()});var a=function(){o&&o(!0),i.close()},l=h.dom('<a href="javascript:void(0)" style="float:left;" class="jodit_button">'+p.ToolbarIcon.getIcon("check")+"<span>"+u.Jodit.prototype.i18n("Yes")+"</span></a>",i.document);return l.addEventListener("click",a),n.addEventListener("submit",function(){return a(),!1}),i.setFooter([l,s]),i.open(n,t||"&nbsp;",!0,!0),l.focus(),i},u.Jodit.Confirm=t.Confirm},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),s=this&&this.__assign||Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),r=o(9),l=o(14),c=o(36),d=o(37),u=o(5);t.ToolbarCollection=function(t){function e(e){var r=t.call(this,e,"ul","jodit_toolbar")||this;return r.__buttons=[],r.__getControlType=function(e){var t,o=r.jodit.options.controls||u.Jodit.defaultOptions.controls;if("string"!=typeof e)void 0!==o[(t=s({name:"empty"},e)).name]&&(t=s({},o[t.name],t));else{var i=e.split(/\./),n=o;1<i.length&&void 0!==o[i[0]]&&(n=o[i[0]],e=i[1]),t=void 0!==n[e]?s({name:e},n[e]):{name:e,command:e,tooltip:e}}return t},r.immedateCheckActiveButtons=function(){r.jodit.isLocked()||(r.__buttons.filter(function(e){return e instanceof l.ToolbarButton}).forEach(function(e){e.disable=e.isDisable(),e.disable||(e.active=e.isActive()),"function"==typeof e.control.getLabel&&e.control.getLabel(r.jodit,e.control,e)}),r.jodit.events&&r.jodit.events.fire("updateToolbar"))},r.checkActiveButtons=a.debounce(r.immedateCheckActiveButtons,r.jodit.defaultTimeout),r.closeAll=function(){r.jodit&&r.jodit.events&&r.jodit.events.fire("closeAllPopups")},r.listenEvents="changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart",r.initEvents=function(){r.jodit.events.on(r.jodit.ownerWindow,"mousedown touchend",r.closeAll).on(r.listenEvents,r.checkActiveButtons).on("afterSetMode focus",r.immedateCheckActiveButtons)},r.initEvents(),r}return n(e,t),e.prototype.getButtonsList=function(){return this.__buttons.map(function(e){return e instanceof l.ToolbarButton?e.control.name:""}).filter(function(e){return""!==e})},e.prototype.appendChild=function(e){this.__buttons.push(e),(e.parentToolbar=this).container.appendChild(e.container)},e.prototype.removeChild=function(e){var t=this.__buttons.indexOf(e);-1!==t&&(this.__buttons.splice(t,1),e.container.parentNode===this.container&&this.container.removeChild(e.container)),e.parentToolbar=null},e.prototype.build=function(e,t,o){var i=this,n=!1;this.clear(),("string"==typeof e?e.split(/[,\s]+/):e).map(this.__getControlType).forEach(function(e){var t=null;if(-1===i.jodit.options.removeButtons.indexOf(e.name)){switch(e.name){case"\n":t=new c.ToolbarBreak(i.jodit);break;case"|":n||(n=!0,t=new d.ToolbarSeparator(i.jodit));break;default:n=!1,t=new l.ToolbarButton(i.jodit,e,o)}t&&i.appendChild(t)}}),this.container.parentNode!==t&&t.appendChild(this.container),this.immedateCheckActiveButtons()},e.prototype.clear=function(){var t=this;this.__buttons.slice().forEach(function(e){t.removeChild(e),e.destruct()}),this.__buttons.length=0},e.prototype.destruct=function(){this.jodit.events.off(this.jodit.ownerWindow,"mousedown touchstart",this.closeAll).off(this.listenEvents,this.checkActiveButtons).off("afterSetMode focus",this.immedateCheckActiveButtons),this.clear(),t.prototype.destruct.call(this)},e}(r.ToolbarElement)},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(4),s=o(0),a=o(6);t.ToolbarElement=function(n){function e(e,t,o){void 0===t&&(t="li"),void 0===o&&(o="jodit_toolbar_btn");var i=n.call(this,e)||this;return i.parentToolbar=null,i.container=i.jodit.ownerDocument.createElement(t),i.container.classList.add(o),i}return r(e,n),e.prototype.createIcon=function(e,t){var o=t?t.icon||t.name:e;if(!this.jodit.options.textIcons){var i=this.jodit.events.fire("getIcon",o,t,e),n=void 0;return t&&t.iconURL&&void 0===i?(n=s.dom("<i></i>",this.jodit.ownerDocument)).style.backgroundImage="url("+t.iconURL+")":(void 0===i&&(i=a.ToolbarIcon.getIcon(a.ToolbarIcon.exists(o)?o:"empty")),n=s.dom(i,this.jodit.ownerDocument)),n.classList.add("jodit_icon","jodit_icon_"+e),n}return s.dom('<span class="jodit_icon">'+this.jodit.i18n(t?t.name:e)+"</span>",this.jodit.ownerDocument)},e}(n.Component)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(4);t.Plugin=function(o){function e(e){var t=o.call(this,e)||this;return e.events.on("afterInit",t.afterInit.bind(t,e)).on("beforeDestruct",t.beforeDestruct.bind(t,e)),t}return n(e,o),e.prototype.beforeDestruct=function(e){},e}(r.Component)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=o(5),r=o(18),i=o(1),g=o(0),f=o(2),n=o(17);i.Config.prototype.enableDragAndDropFileToEditor=!0,i.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,format:"json",prepareData:function(e){return e},isSuccess:function(e){return e.success},getMessage:function(e){return void 0!==e.data.messages&&Array.isArray(e.data.messages)?e.data.messages.join(" "):""},process:function(e){return e.data},error:function(e){this.jodit.events.fire("errorMessage",e.message,"error",4e3)},defaultHandlerSuccess:function(s){var a=this;s.files&&s.files.length&&s.files.forEach(function(e,t){var o=s.isImages&&s.isImages[t]?["img","src"]:["a","href"],i=o[0],n=o[1],r=a.jodit.editorDocument.createElement(i);r.setAttribute(n,s.baseurl+e),"a"===i&&(r.innerText=s.baseurl+e),"img"===i?a.selection.insertImage(r):a.selection.insertNode(r)})},defaultHandlerError:function(e){this.jodit.events.fire("errorMessage",e.message)},contentType:function(e){return(void 0===this.jodit.ownerWindow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}},t.Uploader=function(){function h(e,t){var o=this;this.path="",this.source="default",this.jodit=e,this.selection=e instanceof p.Jodit?e.selection:new n.Select(e),this.options=g.extend(!0,{},i.Config.prototype.uploader,e instanceof p.Jodit?e.options.uploader:null,t),e instanceof p.Jodit&&e.options.enableDragAndDropFileToEditor&&e.options.uploader&&(e.options.uploader.url||e.options.uploader.insertImageAsBase64URI)&&e.events.on("afterInit",function(){o.bind(e.editor)})}return h.prototype.buildData=function(t){if(this.options.buildData&&"function"==typeof this.options.buildData)return this.options.buildData.call(this,t);if(void 0!==this.jodit.ownerWindow.FormData){if(t instanceof FormData)return t;if("string"==typeof t)return t;var o=new FormData;return Object.keys(t).forEach(function(e){o.append(e,t[e])}),o}return t},h.prototype.send=function(e,t){var o=this,i=this.buildData(e),n=function(e){return new r.Ajax(o.jodit||o,{xhr:function(){var e=new XMLHttpRequest;return void 0!==o.jodit.ownerWindow.FormData&&e.upload?e.upload.addEventListener("progress",function(e){if(e.lengthComputable){var t=e.loaded/e.total;t*=100,o.jodit.progress_bar.style.display="block",o.jodit.progress_bar.style.width=t+"%",100===t&&(o.jodit.progress_bar.style.display="none")}},!1):o.jodit.progress_bar.style.display="none",e},method:"POST",data:e,url:o.options.url,headers:o.options.headers,queryBuild:o.options.queryBuild,contentType:o.options.contentType.call(o,e),dataType:o.options.format||"json"}).send().then(t).catch(function(e){o.options.error.call(o,e)})};return i instanceof Promise?i.then(n).catch(function(e){o.options.error.call(o,e)}):n(i)},h.prototype.sendFiles=function(e,i,t,o){var n=this;if(!e)return Promise.reject(Error("Need files"));var r=this,s=[].slice.call(e);if(!s.length)return Promise.reject(Error("Need files"));var a=[];if(this.options.insertImageAsBase64URI){var l,c=void 0,d=this;for(c=0;s.length>c;c+=1)!function(){if((l=s[c])&&l.type){var e=l.type.match(/\/([a-z0-9]+)/i),t=e[1]?e[1].toLowerCase():"";if(-1!==d.options.imagesExtensions.indexOf(t)){var o=new FileReader;a.push(new Promise(function(t,e){o.onerror=e,o.onloadend=function(){var e={baseurl:"",files:[o.result],isImages:[!0]};"function"==typeof(i||r.options.defaultHandlerSuccess)&&(i||r.options.defaultHandlerSuccess).call(r,e),t(e)},o.readAsDataURL(l)})),s[c]=null}}}()}if((s=s.filter(function(e){return e})).length){var u=new FormData;u.append("path",r.path),u.append("source",r.source);var h=void 0;for(c=0;s.length>c;c+=1)if((h=s[c])&&h.type){var p=h.type.match(/\/([a-z0-9]+)/i),f=p[1]?p[1].toLowerCase():"";u.append("files["+c+"]",s[c],s[c].name||(""+Math.random()).replace(".","")+"."+f)}o&&o(u),r.options.data&&g.isPlainObject(r.options.data)&&Object.keys(r.options.data).forEach(function(e){u.append(e,r.options.data[e])}),r.options.prepareData.call(this,u),a.push(r.send(u,function(e){n.options.isSuccess.call(r,e)?"function"==typeof(i||r.options.defaultHandlerSuccess)&&(i||r.options.defaultHandlerSuccess).call(r,r.options.process.call(r,e)):(t||r.options.defaultHandlerError).call(r,Error(r.options.getMessage.call(r,e)))}).then(function(){n.jodit.events&&n.jodit.events.fire("filesWereUploaded")}))}return Promise.all(a)},h.prototype.setPath=function(e){this.path=e},h.prototype.setSource=function(e){this.source=e},h.dataURItoBlob=function(e){var t,o=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(o.length),r=new Uint8Array(n);for(t=0;o.length>t;t+=1)r[t]=o.charCodeAt(t);return new Blob([r],{type:i})},h.prototype.bind=function(t,l,c){var d=this,u=this,e=function(e){var t,o,i,n=function(e){o&&(e.append("extension",i),e.append("mimetype",o.type))};if(e.clipboardData&&e.clipboardData.files&&e.clipboardData.files.length)return d.sendFiles(e.clipboardData.files,l,c),!1;if(g.browser("ff")||g.isIE()){if(e.clipboardData&&!e.clipboardData.types.length&&e.clipboardData.types[0]!==f.TEXT_PLAIN){var r=g.dom('<div tabindex="-1" style="left: -9999px; top: 0; width: 0; height: 100%; line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;" contenteditable="true"></div>',d.jodit.ownerDocument);d.jodit.ownerDocument.body.appendChild(r);var s=d.jodit&&d.jodit instanceof p.Jodit?d.jodit.selection.save():null;r.focus(),setTimeout(function(){var e=r.firstChild;if(r.parentNode&&r.parentNode.removeChild(r),e&&e.hasAttribute("src")){var t=e.getAttribute("src")||"";s&&d.jodit&&d.jodit instanceof p.Jodit&&d.jodit.selection.restore(s),u.sendFiles([h.dataURItoBlob(t)],l,c)}},200)}}else if(e.clipboardData&&e.clipboardData.items&&e.clipboardData.items.length)for(t=0;e.clipboardData.items.length>t;t+=1)if("file"===e.clipboardData.items[t].kind&&"image/png"===e.clipboardData.items[t].type){if(o=e.clipboardData.items[t].getAsFile()){var a=o.type.match(/\/([a-z0-9]+)/i);i=a[1]?a[1].toLowerCase():"",d.sendFiles([o],l,c,n)}e.preventDefault();break}};this.jodit&&this.jodit.editor!==t?u.jodit.events.on(t,"paste",e):u.jodit.events.on("beforePaste",e);var o=function(e){return e.dataTransfer&&e.dataTransfer.files&&0!==e.dataTransfer.files.length};u.jodit.events.on(t,"dragend dragover dragenter dragleave drop",function(e){e.preventDefault()}).on(t,"dragover",function(e){o(e)&&(t.classList.contains("jodit_draghover")||t.classList.add("jodit_draghover"),e.preventDefault())}).on(t,"dragend",function(e){o(e)&&(t.classList.contains("jodit_draghover")&&t.classList.remove("jodit_draghover"),e.preventDefault())}).on(t,"drop",function(e){t.classList.remove("jodit_draghover"),o(e)&&(e.preventDefault(),e.stopImmediatePropagation(),d.sendFiles(e.dataTransfer.files,l,c))});var i=t.querySelector("input[type=file]");i&&u.jodit.events.on(i,"change",function(){u.sendFiles(this.files,l,c).then(function(){i.value="",/safari/i.test(navigator.userAgent)||(i.type="",i.type="file")})})},h.prototype.uploadRemoteImage=function(e,t,o){var i=this,n=this;n.send({action:"fileUploadRemote",url:e},function(e){if(n.options.isSuccess.call(n,e))"function"==typeof t?t.call(n,i.options.process.call(i,e)):i.options.defaultHandlerSuccess.call(n,i.options.process.call(i,e));else if("function"==typeof(o||n.options.defaultHandlerError))return void(o||i.options.defaultHandlerError).call(n,Error(n.options.getMessage.call(i,e)))})},h}()},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u,h=o(5),p=o(0),c=o(3),f=o(11);(u=t.Widget||(t.Widget={})).ColorPickerWidget=function(r,s,e){var i=p.normalizeColor(e),a=p.dom('<div class="jodit_colorpicker"></div>',r.ownerDocument),n=r.options.textIcons?"":h.Jodit.modules.ToolbarIcon.getIcon("eye"),t=r.options.textIcons?"<span>"+r.i18n("eraser")+"</span>":h.Jodit.modules.ToolbarIcon.getIcon("eraser"),l=function(t){var o=[];return p.isPlainObject(t)?Object.keys(t).forEach(function(e){o.push('<div class="jodit_colorpicker_group jodit_colorpicker_group-'+e+'">'),o.push(l(t[e])),o.push("</div>")}):Array.isArray(t)&&t.forEach(function(e){o.push("<a "+(i===e?' class="active" ':"")+' title="'+e+'" style="background-color:'+e+'" data-color="'+e+'" href="javascript:void(0)">'+(i===e?n:"")+"</a>")}),o.join("")};return a.appendChild(p.dom("<div>"+l(r.options.colors)+"</div>",r.ownerDocument)),a.appendChild(p.dom("<a "+(r.options.textIcons?'class="jodit_text_icon"':"")+' data-color="" href="javascript:void(0)">'+t+"</a>",r.ownerDocument)),r.events.on(a,"mousedown touchend",function(e){e.stopPropagation();var t=e.target;if("SVG"!==t.tagName.toUpperCase()&&"PATH"!==t.tagName.toUpperCase()||!t.parentNode||(t=c.Dom.closest(t.parentNode,"A",r.editor)),"A"===t.tagName.toUpperCase()){var o=a.querySelector("a.active");o&&(o.classList.remove("active"),o.innerHTML="");var i=t.getAttribute("data-color")||"";if(i){t.innerHTML=h.Jodit.modules.ToolbarIcon.getIcon("eye"),t.classList.add("active");var n=p.hexToRgb(i);n&&(t.firstChild.style.fill="rgb("+(255-n.r)+","+(255-n.g)+","+(255-n.b)+")")}s&&"function"==typeof s&&s(i),e.preventDefault()}}),a},u.TabsWidget=function(r,e,s){var t=p.dom('<div class="jodit_tabs"></div>',r.ownerDocument),a=p.dom('<div class="jodit_tabs_wrapper"></div>',r.ownerDocument),l=p.dom('<div class="jodit_tabs_buttons"></div>',r.ownerDocument),c={},d="",u=0;return t.appendChild(l),t.appendChild(a),p.each(e,function(t,o){var i=p.dom('<div class="jodit_tab"></div>',r.ownerDocument),n=p.dom('<a href="javascript:void(0);"></a>',r.ownerDocument);d||(d=t),n.innerHTML=r.i18n(t),l.appendChild(n),i.appendChild("function"!=typeof o?p.dom(o,r.ownerDocument):p.dom('<div class="jodit_tab_empty"></div>',r.ownerDocument)),a.appendChild(i),r.events.on(n,"mousedown touchend",function(e){return p.$$("a",l).forEach(function(e){e.classList.remove("active")}),p.$$(".jodit_tab",a).forEach(function(e){e.classList.remove("active")}),n.classList.add("active"),i.classList.add("active"),"function"==typeof o&&o.call(r),e.stopPropagation(),s&&(s.__activeTab=t),!1}),c[t]={button:n,tab:i},u+=1}),u&&(p.$$("a",l).forEach(function(e){e.style.width=(100/u).toFixed(10)+"%"}),s&&s.__activeTab&&c[s.__activeTab]?(c[s.__activeTab].button.classList.add("active"),c[s.__activeTab].tab.classList.add("active")):(c[d].button.classList.add("active"),c[d].tab.classList.add("active"))),t},u.FileSelectorWidget=function(t,o,e,i,n){void 0===n&&(n=!0);var r,s={};if(o.upload&&t.options.uploader&&(t.options.uploader.url||t.options.uploader.insertImageAsBase64URI)){var a=p.dom('<div class="jodit_draganddrop_file_box"><strong>'+t.i18n(n?"Drop image":"Drop file")+"</strong><span><br> "+t.i18n("or click")+'</span><input type="file" accept="'+(n?"image/*":"*")+'image/*" tabindex="-1" dir="auto" multiple=""/></div>',t.ownerDocument);new f.Uploader(t).bind(a,function(e){"function"==typeof o.upload&&o.upload.call(t,{baseurl:e.baseurl,files:e.files})},function(e){t.events.fire("errorMessage",e.message)}),s[(t.options.textIcons?"":h.Jodit.modules.ToolbarIcon.getIcon("upload"))+t.i18n("Upload")]=a}if(o.filebrowser&&(t.options.filebrowser.ajax.url||t.options.filebrowser.items.url)&&(s[(t.options.textIcons?"":h.Jodit.modules.ToolbarIcon.getIcon("folder"))+t.i18n("Browse")]=function(){i&&i(),o.filebrowser&&t.getInstance("FileBrowser").open(o.filebrowser,n)}),o.url){var l=p.dom('<form onsubmit="return false;" class="jodit_form"><input type="text" required name="url" placeholder="http://"/><input type="text" name="text" placeholder="'+t.i18n("Alternative text")+'"/><div style="text-align: right"><button>'+t.i18n("Insert")+"</button></div></form>",t.ownerDocument),c=l.querySelector("button"),d=l.querySelector("input[name=url]");r=null,e&&e.nodeType!==Node.TEXT_NODE&&("IMG"===e.tagName||p.$$("img",e).length)&&(r="IMG"===e.tagName?e:p.$$("img",e)[0],p.val(l,"input[name=url]",r.getAttribute("src")),p.val(l,"input[name=text]",r.getAttribute("alt")),c.innerText=t.i18n("Update")),e&&e.nodeType!==Node.TEXT_NODE&&"A"===e.nodeName&&(p.val(l,"input[name=url]",e.getAttribute("href")||""),p.val(l,"input[name=text]",e.getAttribute("title")||""),c.innerText=t.i18n("Update")),l.addEventListener("submit",function(e){return e.preventDefault(),e.stopPropagation(),p.val(l,"input[name=url]")?"function"==typeof o.url&&o.url.call(t,p.val(l,"input[name=url]"),p.val(l,"input[name=text]")):(d.focus(),d.classList.add("jodit_error")),!1},!1),s[(t.options.textIcons?"":h.Jodit.modules.ToolbarIcon.getIcon("link"))+" URL"]=l}return u.TabsWidget(t,s)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.__store={}}return e.prototype.get=function(e,t){if(void 0!==this.__store[t])return this.__store[t][e]},e.prototype.indexOf=function(e,t,o){var i=this.get(e,t);if(i)for(var n=0;i.length>n;n+=1)if(i[n].originalCallback===o)return n;return!1},e.prototype.namespaces=function(){return Object.keys(this.__store)},e.prototype.events=function(e){return this.__store[e]?Object.keys(this.__store[e]):[]},e.prototype.set=function(e,t,o,i){void 0===i&&(i=!1),void 0===this.__store[t]&&(this.__store[t]={}),void 0===this.__store[t][e]&&(this.__store[t][e]=[]),i?this.__store[t][e].unshift(o):this.__store[t][e].push(o)},e}();t.EventsNative=function(){function e(e){var o=this;this.__defaultNameSpace="JoditEventDefaultNamespace",this.__key="__JoditEventsNativeNamespaces",this.current=[],this.doc=document,this.prepareEvent=function(t){t.cancelBubble||(t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(function(e){Object.defineProperty(t,e,{value:t.changedTouches[0][e],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&o.doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:function(){return o.doc.defaultView.clipboardData},configurable:!0,enumerable:!0}))},this.__stopped=[],e&&(this.doc=e),this.__key+=(new Date).getTime()}return e.prototype.eachEvent=function(e,o){var i=this;e.split(/[\s,]+/).forEach(function(e){var t=e.split(".");o.call(i,t[0],t[1]||i.__defaultNameSpace)})},e.prototype.getStore=function(e){if(void 0===e[this.__key]){var t=new i;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,value:t})}return e[this.__key]},e.prototype.clearStore=function(e){void 0!==e[this.__key]&&delete e[this.__key]},e.prototype.on=function(e,t,o,i,n){var r=this;void 0===n&&(n=!1);var s="string"==typeof e?this:e,a="string"==typeof t?t:e,l=o;void 0===l&&"function"==typeof t&&(l=t);var c=this.getStore(s);if("string"!=typeof a||""===a)throw Error("Need events names");if("function"!=typeof l)throw Error("Need event handler");if(Array.isArray(s))return s.forEach(function(e){r.on(e,a,l,i)}),this;var d="function"==typeof s.addEventListener,u=this,h=function(){return l&&l.apply(this,arguments)};return d&&(h=function(e){if(u.prepareEvent(e),l&&!1===l.call(this,e))return e.preventDefault(),e.stopImmediatePropagation(),!1},i&&(h=function(e){u.prepareEvent(e);for(var t=e.target;t&&t!==this;){if(t.matches(i))return Object.defineProperty(e,"target",{value:t,configurable:!0,enumerable:!0}),l&&!1===l.call(t,e)?(e.preventDefault(),!1):void 0;t=t.parentNode}})),this.eachEvent(a,function(e,t){if(""===e)throw Error("Need event name");!1===c.indexOf(e,t,l)&&(c.set(e,t,{event:e,originalCallback:l,syntheticCallback:h},n),d&&s.addEventListener(e,h,!1))}),this},e.prototype.off=function(e,t,o){var i=this,n="string"==typeof e?this:e,r="string"==typeof t?t:e,s=this.getStore(n),a=o;if("string"!=typeof r||!r)return s.namespaces().forEach(function(e){i.off(n,"."+e)}),this.clearStore(n),this;void 0===a&&"function"==typeof t&&(a=t);var l="function"==typeof n.removeEventListener,c=function(e){l&&n.removeEventListener(e.event,e.syntheticCallback,!1)},d=function(e,t){if(""!==e){var o=s.get(e,t);if(o&&o.length)if("function"!=typeof a)o.forEach(c),o.length=0;else{var i=s.indexOf(e,t,a);!1!==i&&(c(o[i]),o.splice(i,1))}}else s.events(t).forEach(function(e){""!==e&&d(e,t)})};return this.eachEvent(r,function(t,e){e===i.__defaultNameSpace?s.namespaces().forEach(function(e){d(t,e)}):d(t,e)}),this},e.prototype.triggerNativeEvent=function(e,t){var o=this.doc.createEvent("HTMLEvents");"string"==typeof t?o.initEvent(t,!0,!0):(o.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(function(e){Object.defineProperty(o,e,{value:t[e],enumerable:!0})}),Object.defineProperty(o,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(o)},e.prototype.stopPropagation=function(e,t){var i=this,o="string"==typeof e?this:e,n="string"==typeof e?e:t;if("string"!=typeof n)throw Error("Need event names");var r=this.getStore(o);this.eachEvent(n,function(e,t){var o=r.get(e,t);o&&i.__stopped.push(o)})},e.prototype.removeStop=function(e){if(e){var t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(t,1)}},e.prototype.isStopped=function(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)},e.prototype.fire=function(e,t){for(var n=this,o=[],i=2;arguments.length>i;i++)o[i-2]=arguments[i];var r,s=void 0,a="string"==typeof e?this:e,l="string"==typeof e?e:t,c="string"==typeof e?[t].concat(o):o,d="function"==typeof a.dispatchEvent;if(!d&&"string"!=typeof l)throw Error("Need events names");var u=this.getStore(a);return"string"!=typeof l&&d?this.triggerNativeEvent(a,t):this.eachEvent(l,function(o,t){if(d)n.triggerNativeEvent(a,o);else{var i=u.get(o,t);if(i)try{i.every(function(e){return!n.isStopped(i)&&(n.current.push(o),r=e.syntheticCallback.apply(a,c),n.current.pop(),void 0!==r&&(s=r),!0)})}finally{n.removeStop(i)}t!==n.__defaultNameSpace||d||u.namespaces().filter(function(e){return e!==t}).forEach(function(e){var t=n.fire.apply(n,[a,o+"."+e].concat(c));void 0!==t&&(s=t)})}}),s},e.prototype.destruct=function(){this.off(this)},e}()},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(0),l=o(3),r=o(9),c=o(34),d=o(35),u=o(15);t.ToolbarButton=function(r){function e(e,t,o){var s=r.call(this,e)||this;s.__disabled=!1,s.__actived=!1,s.checkActiveStatus=function(o,i){var n=0,r=0;return Object.keys(o).forEach(function(e){var t=o[e];"function"==typeof t?t(s.jodit,""+a.css(i,e))&&(n+=1):-1!==t.indexOf(""+a.css(i,e))&&(n+=1),r+=1}),r===n},s.onMouseDown=function(e){if(e.stopImmediatePropagation(),e.preventDefault(),s.disable)return!1;var t=s.control;if(t.list){var o=new d.ToolbarList(s.jodit,s.container,s.target);o.parentToolbar=s.parentToolbar,o.open(t),s.jodit.events.fire("closeAllPopups",o.container)}else if(void 0!==t.exec&&"function"==typeof t.exec)t.exec(s.jodit,s.target||!!s.jodit.selection&&s.jodit.selection.current(),t,e,s.container),s.jodit.events.fire("synchro"),s.parentToolbar&&s.parentToolbar.immedateCheckActiveButtons(),s.jodit.events.fire("closeAllPopups afterExec");else if(void 0!==t.popup&&"function"==typeof t.popup){var i=new u.ToolbarPopup(s.jodit,s.container,s.target);i.parentToolbar=s.parentToolbar,!1!==s.jodit.events.fire(a.camelCase("before-"+t.name+"-OpenPopup"),s.target||!!s.jodit.selection&&s.jodit.selection.current(),t,i)&&i.open(t.popup(s.jodit,s.target||!!s.jodit.selection&&s.jodit.selection.current(),t,i.close,s)),s.jodit.events.fire(a.camelCase("after-"+t.name+"-OpenPopup")+" closeAllPopups",i.container)}else(t.command||t.name)&&(s.jodit.execCommand(t.command||t.name,t.args&&t.args[0]||!1,t.args&&t.args[1]||null),s.jodit.events.fire("closeAllPopups"))},s.control=t,s.target=o,s.anchor=s.jodit.ownerDocument.createElement("a"),s.container.appendChild(s.anchor),e.options.showTooltip&&t.tooltip&&(e.options.useNativeTooltip?s.anchor.setAttribute("title",s.jodit.i18n(t.tooltip)+(t.hotkeys?"<br>"+a.asArray(t.hotkeys).join(" "):"")):s.tooltip=new c.Tooltip(s)),s.textBox=s.jodit.ownerDocument.createElement("span"),s.anchor.appendChild(s.textBox);var i=t.name.replace(/[^a-zA-Z0-9]/g,"_");if(t.getContent&&"function"==typeof t.getContent)l.Dom.detach(s.container),s.container.appendChild(a.dom(t.getContent(s.jodit,t,s),s.jodit.ownerDocument));else{if(t.list&&s.anchor){var n=s.jodit.ownerDocument.createElement("span");n.classList.add("jodit_with_dropdownlist-trigger"),s.container.classList.add("jodit_with_dropdownlist"),s.anchor.appendChild(n)}s.textBox.appendChild(s.createIcon(i,t))}return s.container.classList.add("jodit_toolbar_btn-"+i),t.isInput?s.container.classList.add("jodit_toolbar-input"):s.jodit.events.on(s.container,"mousedown touchend",s.onMouseDown),s}return n(e,r),Object.defineProperty(e.prototype,"disable",{get:function(){return this.__disabled},set:function(e){this.__disabled=e,this.container.classList.toggle("jodit_disabled",e),e?this.container.hasAttribute("disabled")||this.container.setAttribute("disabled","disabled"):this.container.hasAttribute("disabled")&&this.container.removeAttribute("disabled")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this.__actived},set:function(e){this.__actived=e,this.container.classList.toggle("jodit_active",e)},enumerable:!0,configurable:!0}),e.prototype.isDisable=function(){var e=void 0===this.control||void 0===this.control.mode?s.MODE_WYSIWYG:this.control.mode,t=e===s.MODE_SPLIT||e===this.jodit.getRealMode();return"function"==typeof this.control.isDisable&&(t=t&&!this.control.isDisable(this.jodit,this.control,this)),this.jodit.options.readonly&&-1===this.jodit.options.activeButtonsInReadOnly.indexOf(this.control.name)&&(t=!1),!t},e.prototype.isActive=function(){var t=this;if("function"==typeof this.control.isActive)return this.control.isActive(this.jodit,this.control,this);var o,e,i,n=!!this.jodit.selection&&this.jodit.selection.current();return!!n&&(!(!(this.control.tags||this.control.options&&this.control.options.tags)||(o=this.control.tags||this.control.options&&this.control.options.tags,e=n,!l.Dom.up(e,function(e){if(e&&-1!==o.indexOf(e.nodeName.toLowerCase()))return!0},this.jodit.editor)))||!(!(this.control.css||this.control.options&&this.control.options.css)||(i=this.control.css||this.control.options&&this.control.options.css,e=n,!l.Dom.up(e,function(e){if(e&&e.nodeType!==Node.TEXT_NODE)return t.checkActiveStatus(i,e)},this.jodit.editor))))},e.prototype.destruct=function(){this.jodit.events.off(this.container)},e}(r.ToolbarElement)},function(e,t,o){"use strict";var i,s=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var l=o(0),c=o(3),n=o(9);t.ToolbarPopup=function(n){function r(e,t,o,i){void 0===i&&(i="jodit_toolbar_popup");var a=n.call(this,e,"div",i)||this;return a.target=t,a.current=o,a.className=i,a.isOpened=!1,a.getContainer=function(){return a.container},a.calcPosition=l.throttle(function(){if(a.isOpened){var e=a.getContainer(),t=l.offset(a.jodit.container,a.jodit,a.jodit.ownerDocument,!0),o=l.offset(e,a.jodit,a.jodit.ownerDocument,!0),i=l.css(e,"marginLeft")||0;o.left-=i;var n=i,r="auto";if(n=t.left>o.left?t.left-o.left:t.left+t.width>o.left+o.width?0:-(o.left+o.width-(t.left+t.width)),t.width>o.width||(n=t.left-o.left,r=t.width),n!==i)try{e.style.setProperty("margin-left",n+"px","important")}catch(t){e.style.marginLeft=n+"px"}var s=e.querySelector(".jodit_popup_triangle");s&&(s.style.marginLeft=-n+"px"),l.css(e,"width",r)}},a.jodit.defaultTimeout),a.close=function(e){a.isOpened&&(e&&c.Dom.isOrContains(a.container,e instanceof r?e.target:e)||(a.isOpened=!1,a.jodit.events.off("closeAllPopups",a.close),a.doClose(),a.container.parentNode&&a.container.parentNode.removeChild(a.container),a.jodit.selection&&a.jodit.selection.removeMarkers()))},a.container.setAttribute("data-editor_id",e.id),a.jodit.events.on(a.container,"mousedown touchstart touchend",function(e){e.stopPropagation()}).on([a.jodit.ownerWindow,a.jodit.events],"resize",a.calcPosition),a}return s(r,n),r.prototype.destruct=function(){this.jodit.events.off([this.jodit.ownerWindow,this.jodit.events],"resize",this.calcPosition),n.prototype.destruct.call(this)},r.prototype.doOpen=function(e){e&&(c.Dom.detach(this.container),this.container.innerHTML='<span class="jodit_popup_triangle"></span>',this.container.appendChild(l.dom(e,this.jodit.ownerDocument)),this.container.style.display="block",this.container.style.marginLeft=null)},r.prototype.open=function(e,t,o){void 0===o&&(o=!1),this.jodit.events.fire("beforeOpenPopup closeAllPopups",this,e),o||this.jodit.events.on("closeAllPopups",this.close),this.container.classList.add(this.className+"-open"),this.doOpen(e),this.target.appendChild(this.container),void 0!==t&&this.container.classList.toggle("jodit_right",t),!o&&this.parentToolbar&&this.jodit.events.fire(this.parentToolbar,"afterOpenPopup",this.container),this.isOpened=!0,this.calcPosition()},r.prototype.doClose=function(){},r}(n.ToolbarElement)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Component=o(4).Component,t.Ajax=o(18).Ajax,t.ContextMenu=o(20).ContextMenu,t.Cookie=o(69).Cookie;var i=o(7);t.Dialog=i.Dialog,t.Alert=i.Alert,t.Confirm=i.Confirm,t.Promt=i.Promt,t.Dom=o(3).Dom,t.EventsNative=o(13).EventsNative,t.FileBrowser=o(70).FileBrowser,t.Helpers=o(0),t.ImageEditor=o(72).ImageEditor,t.Observer=o(22).Observer,t.Select=o(17).Select,t.Snapshot=o(23).Snapshot,t.Table=o(25).Table,t.ToolbarIcon=o(6).ToolbarIcon,t.ToolbarCollection=o(8).ToolbarCollection,t.ToolbarButton=o(14).ToolbarButton,t.Stack=o(24).Stack,t.Uploader=o(11).Uploader},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var f=o(2),r=o(4),g=o(0),m=o(3),l=o(2),a=o(2);t.Select=function(e){function t(){var p=null!==e&&e.apply(this,arguments)||this;return p.isMarker=function(e){return m.Dom.isNode(e,p.jodit.editorWindow)&&e.nodeType===Node.ELEMENT_NODE&&"SPAN"===e.nodeName&&e.hasAttribute("data-"+f.MARKER_CLASS)},p.marker=function(e,t){void 0===e&&(e=!1);var o=null;t&&(o=t.cloneRange()).collapse(e);var i=p.jodit.editorDocument.createElement("span");return i.id=f.MARKER_CLASS+"_"+ +new Date+"_"+(""+Math.random()).slice(2),i.style.lineHeight="0",i.style.display="none",i.setAttribute("data-"+f.MARKER_CLASS,e?"start":"end"),i.appendChild(p.jodit.editorDocument.createTextNode(f.INVISIBLE_SPACE)),o&&m.Dom.isOrContains(p.jodit.editor,e?o.startContainer:o.endContainer)&&o.insertNode(i),i},p.focus=function(){var e=p.jodit;if(!p.isFocused()){if(e.options.iframe&&g.isIE())for(var t=0;t<1e5&&"complete"!==e.editorDocument.readyState;)t++;e.iframe&&e.iframe.focus(),e.editorWindow.focus(),e.editor.focus();var o=e.editorWindow.getSelection(),i=e.editorDocument.createRange();return o.rangeCount&&p.current()||(i.setStart(e.editor,0),i.collapse(!0),o.removeAllRanges(),o.addRange(i)),!0}return!1},p.eachSelection=function(o){var e=p.jodit.editorWindow.getSelection();if(e.rangeCount){var t=e.getRangeAt(0),i=[],n=t.startContainer===p.jodit.editor?p.jodit.editor.childNodes[t.startOffset]:t.startContainer,r=t.endContainer===p.jodit.editor?p.jodit.editor.childNodes[t.endOffset-1]:t.endContainer;m.Dom.find(n,function(e){return!e||e===p.jodit.editor||m.Dom.isEmptyTextNode(e)||p.isMarker(e)||i.push(e),e===r},p.jodit.editor,!0,"nextSibling",!1);var s=function(e){if(e.nodeName.match(/^(UL|OL)$/))return[].slice.call(e.childNodes).forEach(s);if("LI"===e.nodeName)if(e.firstChild)e=e.firstChild;else{var t=p.jodit.editorDocument.createTextNode(a.INVISIBLE_SPACE);e.appendChild(t),e=t}o(e)};0===i.length&&m.Dom.isEmptyTextNode(n)&&i.push(n),i.forEach(s)}},p.applyCSS=function(a,l,t){void 0===l&&(l="span");var c,d=function(e){return null!==e&&!m.Dom.isEmptyTextNode(e)&&!p.isMarker(e)},u=function(e){return(RegExp("^"+e.nodeName+"$","i").test(l)||!(!t||("FONT"===(i=e).nodeName||i.nodeType!==Node.ELEMENT_NODE||!(g.isPlainObject(t)&&!1!==g.each(t,function(e,t){var o=g.css(i,e,void 0,!0);return null!==o&&""!==o&&-1!==t.indexOf((""+o).toLowerCase())})||"function"==typeof t&&t(p.jodit,i)))))&&d(e);var i},h=function(t){u(t)&&("SPAN"===t.nodeName&&a&&Object.keys(a).forEach(function(e){0===c||g.css(t,e)==g.normilizeCSSValue(e,a[e])?(g.css(t,e,""),void 0===c&&(c=0)):(g.css(t,e,a[e]),void 0===c&&(c=1))}),m.Dom.isBlock(t)||t.getAttribute("style")&&"SPAN"===t.nodeName||(m.Dom.unwrap(t),void 0===c&&(c=0)))};if(p.isCollapsed()){var e=!1;if(p.current()&&m.Dom.closest(p.current(),l,p.jodit.editor)){e=!0;var o=m.Dom.closest(p.current(),l,p.jodit.editor);o&&p.setCursorAfter(o)}if("SPAN"===l.toUpperCase()||!e){var i=p.jodit.editorDocument.createElement(l);i.appendChild(p.jodit.editorDocument.createTextNode(f.INVISIBLE_SPACE)),p.insertNode(i,!1,!1),"SPAN"===l.toUpperCase()&&a&&g.css(i,a),p.setCursorIn(i)}}else{var n=p.save();g.normalizeNode(p.jodit.editor.firstChild),g.$$("*[style*=font-size]",p.jodit.editor).forEach(function(e){e.style&&e.style.fontSize&&e.setAttribute("data-font-size",""+e.style.fontSize)}),p.jodit.editorDocument.execCommand("fontsize",!1,7),g.$$("*[data-font-size]",p.jodit.editor).forEach(function(e){e.style&&e.getAttribute("data-font-size")&&(e.style.fontSize=e.getAttribute("data-font-size"),e.removeAttribute("data-font-size"))}),g.$$('font[size="7"]',p.jodit.editor).forEach(function(e){if(m.Dom.next(e,d,e.parentNode)||m.Dom.prev(e,d,e.parentNode)||!u(e.parentNode)||e.parentNode===p.jodit.editor||m.Dom.isBlock(e.parentNode)&&!f.IS_BLOCK.test(l))if(e.firstChild&&!m.Dom.next(e.firstChild,d,e)&&!m.Dom.prev(e.firstChild,d,e)&&u(e.firstChild))h(e.firstChild);else if(m.Dom.closest(e,u,p.jodit.editor)){var t=p.jodit.editorDocument.createRange(),o=m.Dom.closest(e,u,p.jodit.editor);t.setStartBefore(o),t.setEndBefore(e);var i=t.extractContents();i.textContent&&g.trim(i.textContent).length||!i.firstChild||m.Dom.unwrap(i.firstChild),o.parentNode&&o.parentNode.insertBefore(i,o),t.setStartAfter(e),t.setEndAfter(o);var n=t.extractContents();n.textContent&&g.trim(n.textContent).length||!n.firstChild||m.Dom.unwrap(n.firstChild),m.Dom.after(o,n),h(o)}else{var r=[],s=void 0;e.firstChild&&m.Dom.find(e.firstChild,function(e){return e&&u(e)?(void 0===s&&(s=!0),r.push(e)):void 0===s&&(s=!1),!1},e,!0),r.forEach(m.Dom.unwrap),s||(void 0===c&&(c=1),1===c&&g.css(m.Dom.replace(e,l,!1,!1,p.jodit.editorDocument),a&&"SPAN"===l.toUpperCase()?a:{}))}else h(e.parentNode);e.parentNode&&m.Dom.unwrap(e)}),p.restore(n)}},p}return n(t,e),t.prototype.remove=function(){var e=this.jodit.editorWindow.getSelection();if(this.current())for(var t=0;e.rangeCount>t;t+=1)e.getRangeAt(t).deleteContents(),e.getRangeAt(t).collapse(!0)},t.prototype.insertCursorAtPoint=function(e,t){var o,i=this.jodit.editorDocument;this.removeMarkers();try{var n=null;if(i.caretPositionFromPoint?(o=i.caretPositionFromPoint(e,t),(n=i.createRange()).setStart(o.offsetNode,o.offset)):i.caretRangeFromPoint&&(o=i.caretRangeFromPoint(e,t),(n=i.createRange()).setStart(o.startContainer,o.startOffset)),n&&void 0!==this.jodit.editorWindow.getSelection){n.collapse(!0);var r=this.jodit.editorWindow.getSelection();r.removeAllRanges(),r.addRange(n)}else if(void 0!==i.body.createTextRange){var s=i.body.createTextRange();s.moveToPoint(e,t);var a=s.duplicate();a.moveToPoint(e,t),s.setEndPoint("EndToEnd",a),s.select()}return!0}catch(e){}return!1},t.prototype.removeMarkers=function(){g.$$("span[data-"+f.MARKER_CLASS+"]",this.jodit.editor).forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})},t.prototype.restore=function(e){var r=this;if(void 0===e&&(e=[]),Array.isArray(e)){var s=this.jodit.editorWindow.getSelection();s.removeAllRanges(),e.forEach(function(e){var t=r.jodit.editorDocument.createRange(),o=r.jodit.editor.querySelector("#"+e.endId),i=r.jodit.editor.querySelector("#"+e.startId);if(i){if(e.collapsed||!o){var n=i.previousSibling;n&&n.nodeType===Node.TEXT_NODE?t.setStart(n,n.nodeValue?n.nodeValue.length:0):t.setStartBefore(i),i.parentNode&&i.parentNode.removeChild(i),t.collapse(!0)}else t.setStartAfter(i),i.parentNode&&i.parentNode.removeChild(i),t.setEndBefore(o),o.parentNode&&o.parentNode.removeChild(o);s.addRange(t)}})}},t.prototype.save=function(){var e=this.jodit.editorWindow.getSelection();if(!e.rangeCount)return[];var t,o,i,n=[],r=e.rangeCount,s=[];for(t=0;t<r;t+=1)s[t]=e.getRangeAt(t),s[t].collapsed?(o=this.marker(!0,s[t]),n[t]={startId:o.id,collapsed:!0,startMarker:o.outerHTML}):(o=this.marker(!0,s[t]),i=this.marker(!1,s[t]),n[t]={startId:o.id,endId:i.id,collapsed:!1,startMarker:o.outerHTML,endMarker:i.outerHTML});for(e.removeAllRanges(),t=r-1;0<=t;--t){var a=this.jodit.editorDocument.getElementById(n[t].startId);if(a)if(n[t].collapsed)s[t].setStartAfter(a),s[t].collapse(!0);else if(s[t].setStartBefore(a),n[t].endId){var l=this.jodit.editorDocument.getElementById(n[t].endId);l&&s[t].setEndAfter(l)}try{e.addRange(s[t].cloneRange())}catch(e){}}return n},t.prototype.isCollapsed=function(){var e,t=this.jodit.editorWindow.getSelection();for(e=0;t.rangeCount>e;e+=1)if(!t.getRangeAt(e).collapsed)return!1;return!0},t.prototype.isFocused=function(){return this.jodit.editorDocument.hasFocus&&this.jodit.editorDocument.hasFocus()&&this.jodit.editor===this.jodit.editorDocument.activeElement},t.prototype.current=function(e){if(void 0===e&&(e=!0),this.jodit.getRealMode()===f.MODE_WYSIWYG&&void 0!==this.jodit.editorWindow.getSelection){var t=this.jodit.editorWindow.getSelection();if(t&&0<t.rangeCount){var o=t.getRangeAt(0),i=o.startContainer,n=!1,r=function(e){return n?e.lastChild:e.firstChild};if(i.nodeType!==Node.TEXT_NODE&&((i=o.startContainer.childNodes[o.startOffset])||(i=o.startContainer.childNodes[o.startOffset-1],n=!0),i&&t.isCollapsed&&i.nodeType!==Node.TEXT_NODE))if(!n&&i.previousSibling&&i.previousSibling.nodeType===Node.TEXT_NODE)i=i.previousSibling;else if(e)for(var s=r(i);s;){if(s&&s.nodeType===Node.TEXT_NODE){i=s;break}s=r(s)}if(i&&m.Dom.isOrContains(this.jodit.editor,i))return i}}return!1},t.prototype.insertNode=function(e,t,o){if(void 0===t&&(t=!0),void 0===o&&(o=!0),!(e instanceof this.jodit.editorWindow.Node))throw Error("Parameter node most be instance of Node");if(this.focus(),!this.jodit.editorWindow.getSelection)throw Error("Jodit does'n support this browser");var i=this.jodit.editorWindow.getSelection();if(this.isCollapsed()||this.jodit.execCommand("Delete"),i.rangeCount){var n=i.getRangeAt(0);m.Dom.isOrContains(this.jodit.editor,n.commonAncestorContainer)?(n.deleteContents(),n.insertNode(e)):this.jodit.editor.appendChild(e)}else this.jodit.editor.appendChild(e);t&&this.setCursorAfter(e),o&&this.jodit.events&&this.jodit.events.fire("synchro"),this.jodit.events&&this.jodit.events.fire("afterInsertNode",e)},t.prototype.insertHTML=function(e){if(""!==e){var t,o,i=this.jodit.editorDocument.createElement("div"),n=this.jodit.editorDocument.createDocumentFragment();if(!this.isFocused()&&this.jodit.isEditorMode()&&this.focus(),e instanceof this.jodit.editorWindow.Node?m.Dom.isNode(e,this.jodit.editorWindow)&&i.appendChild(e):i.innerHTML=""+e,this.jodit.isEditorMode()||!1!==this.jodit.events.fire("insertHTML",i.innerHTML)){for(t=i.lastChild;i.firstChild;)t=i.firstChild,n.appendChild(i.firstChild);for(this.insertNode(n,!1),t?this.setCursorAfter(t):this.setCursorIn(n),o=this.jodit.editor.lastChild;o&&o.nodeType===Node.TEXT_NODE&&o.previousSibling&&o.nodeValue&&/^\s*$/.test(o.nodeValue);)o=o.previousSibling;t&&(o&&t===o&&t.nodeType===Node.ELEMENT_NODE&&this.jodit.editor.appendChild(this.jodit.editorDocument.createElement("br")),this.setCursorAfter(t))}}},t.prototype.insertImage=function(e,t){void 0===t&&(t={});var o="string"==typeof e?g.dom('<img src=""/>',this.jodit.editorDocument):g.dom(e,this.jodit.editorDocument);"string"==typeof e&&o.setAttribute("src",e);var i=""+this.jodit.options.imageDefaultWidth;i&&"auto"!==i&&(i+"").indexOf("px")<0&&(i+"").indexOf("%")<0&&(i+="px"),t.width=i,t&&"object"==typeof t&&g.each(t,function(e,t){o.style[t]=e});var n=function(){(o.offsetHeight>o.naturalHeight||o.offsetWidth>o.naturalWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",n)};o.addEventListener("load",n),o.complete&&n(),this.insertNode(o),this.jodit.events.fire("afterInsertImage",o)},t.prototype.setCursorAfter=function(e){var t=this;if(!(e instanceof this.jodit.editorWindow.Node))throw Error("Parameter node most be instance of Node");if(!m.Dom.up(e,function(e){return e===t.jodit.editor||e&&e.parentNode===t.jodit.editor},this.jodit.editor))throw Error("Node element must be in editor");var o=this.jodit.editorDocument.createRange(),i=!1;return e.nodeType!==Node.TEXT_NODE?(i=this.jodit.editorDocument.createTextNode(f.INVISIBLE_SPACE),o.setStartAfter(e),o.insertNode(i),o.selectNode(i)):o.setEnd(e,null!==e.nodeValue?e.nodeValue.length:0),o.collapse(!1),this.selectRange(o),i},t.prototype.cursorInTheEdge=function(o,i){var e=this.jodit.editorWindow.getSelection(),t=e.rangeCount?e.getRangeAt(0):null;if(!t)return null;var n=o?t.startContainer:t.endContainer,r=function(e){for(;e;)if(t=e,(e=o?m.Dom.prev(t,function(e){return!!e},i):m.Dom.next(t,function(e){return!!e},i))&&!m.Dom.isEmptyTextNode(e)&&"BR"!==e.nodeName)return!1;var t};if(n.nodeType===Node.TEXT_NODE){var s=n.nodeValue||"";if(o&&t.startOffset>s.length-s.replace(l.INVISIBLE_SPACE_REG_EXP_START,"").length)return!1;if(!o&&t.startOffset<s.replace(l.INVISIBLE_SPACE_REG_EXP_END,"").length)return!1;if(!1===r(n))return!1}var a=this.current(!1);return a&&m.Dom.isOrContains(i,a,!0)?!(!o&&t.startContainer.childNodes[t.startOffset]&&a&&!m.Dom.isEmptyTextNode(a))&&!1!==r(a):null},t.prototype.setCursorBefore=function(e){var t=this;if(!(e instanceof this.jodit.editorWindow.Node))throw Error("Parameter node most be instance of Node");if(!m.Dom.up(e,function(e){return e===t.jodit.editor||e&&e.parentNode===t.jodit.editor},this.jodit.editor))throw Error("Node element must be in editor");var o=this.jodit.editorDocument.createRange(),i=!1;return e.nodeType!==Node.TEXT_NODE?(i=this.jodit.editorDocument.createTextNode(f.INVISIBLE_SPACE),o.setStartBefore(e),o.collapse(!0),o.insertNode(i),o.selectNode(i)):o.setStart(e,null!==e.nodeValue?e.nodeValue.length:0),o.collapse(!0),this.selectRange(o),i},t.prototype.setCursorIn=function(e,t){var o=this;if(void 0===t&&(t=!1),!(e instanceof this.jodit.editorWindow.Node))throw Error("Parameter node most be instance of Node");if(!m.Dom.up(e,function(e){return e===o.jodit.editor||e&&e.parentNode===o.jodit.editor},this.jodit.editor))throw Error("Node element must be in editor");var i=this.jodit.editorDocument.createRange(),n=e,r=e;do{if(n.nodeType===Node.TEXT_NODE)break;r=n,n=t?n.firstChild:n.lastChild}while(n);if(!n){var s=this.jodit.editorDocument.createTextNode(f.INVISIBLE_SPACE);/^(img|br|input)$/i.test(r.nodeName)?n=r:(r.appendChild(s),r=s)}return i.selectNodeContents(n||r),i.collapse(t),this.selectRange(i),r},t.prototype.selectRange=function(e){var t=this.jodit.editorWindow.getSelection();t.removeAllRanges(),t.addRange(e),this.jodit.events.fire("changeSelection")},t.prototype.select=function(e,t){var o=this;if(void 0===t&&(t=!1),!(e instanceof this.jodit.editorWindow.Node))throw Error("Parameter node most be instance of Node");if(!m.Dom.up(e,function(e){return e===o.jodit.editor||e&&e.parentNode===o.jodit.editor},this.jodit.editor))throw Error("Node element must be in editor");var i=this.jodit.editorDocument.createRange();i[t?"selectNodeContents":"selectNode"](e),this.selectRange(i)},t.prototype.getHTML=function(){var e=this.jodit.editorWindow.getSelection();if(0<e.rangeCount){var t=e.getRangeAt(0).cloneContents(),o=this.jodit.editorDocument.createElement("div");return o.appendChild(t),o.innerHTML}return""},t}(r.Component)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(0);i.Config.prototype.defaultAjaxOptions={dataType:"json",method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!0,xhr:function(){return new("undefined"==typeof XDomainRequest?XMLHttpRequest:XDomainRequest)}},t.Ajax=function(){function e(e,t){var o=this;this.success_response_codes=[200,201,202],this.jodit=e,this.options=r.extend(!0,{},i.Config.prototype.defaultAjaxOptions,t),this.options.xhr&&(this.xhr=this.options.xhr()),e&&e.events&&e.events.on("beforeDestruct",function(){o.abort()})}return e.prototype.__buildParams=function(e,t){if(this.options.queryBuild&&"function"==typeof this.options.queryBuild)return this.options.queryBuild.call(this,e,t);if("string"==typeof e||this.jodit.ownerWindow.FormData&&e instanceof this.jodit.ownerWindow.FormData)return e;var o,i,n,r=[];for(o in e)e.hasOwnProperty(o)&&(i=t?t+"["+o+"]":o,n=e[o],r.push("object"==typeof n?this.__buildParams(n,i):encodeURIComponent(i)+"="+encodeURIComponent(n)));return r.join("&")},e.prototype.abort=function(){return this.xhr.abort(),this},e.prototype.send=function(){var n=this;return new Promise(function(t,o){var i=function(e){switch(n.options.dataType){case"json":try{e=JSON.parse(e)}catch(e){return void o.call(n.xhr,e)}}return e};if(n.xhr.onabort=function(){o(Error(n.xhr.statusText))},n.xhr.onerror=function(){o(Error(n.xhr.statusText))},n.xhr.ontimeout=function(){o(Error(n.xhr.statusText))},n.xhr.onload=function(){n.response=n.xhr.responseText,n.status=n.xhr.status,t.call(n.xhr,i(n.response))},n.xhr.onreadystatechange=function(){if(n.xhr.readyState===XMLHttpRequest.DONE){var e=n.xhr.responseText;n.response=e,n.status=n.xhr.status,-1<n.success_response_codes.indexOf(n.xhr.status)?t.call(n.xhr,i(e)):o.call(n.xhr,Error(n.xhr.statusText||n.jodit.i18n("Connection error!")))}},n.xhr.withCredentials=n.options.withCredentials||!1,!n.options.url)throw Error("Need URL for AJAX request");n.xhr.open(n.options.method||"get",n.options.url,!0),n.options.contentType&&n.xhr.setRequestHeader&&n.xhr.setRequestHeader("Content-type",n.options.contentType),n.options.headers&&n.xhr.setRequestHeader&&r.each(n.options.headers,function(e,t){n.xhr.setRequestHeader(e,t)}),setTimeout(function(){n.xhr.send(n.options.data?n.__buildParams(n.options.data):void 0)},0)})},e}()},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),s=this&&this.__assign||Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e};Object.defineProperty(t,"__esModule",{value:!0});var r=o(4),a=o(13),l=o(8),c=o(5),d=o(2);t.View=function(r){function e(e,t){void 0===t&&(t={});var o=r.call(this,e)||this;o.options={removeButtons:[],zIndex:100002,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullsize:!0},o.editorDocument=document,o.editorWindow=window,o.__isFullSize=!1,o.isFullSize=function(){return o.__isFullSize};var i=o,n=e?e.ownerDocument:document;return i.ownerDocument=n,i.ownerWindow=e?e.ownerWindow:window,i.progress_bar=e?e.progress_bar:document.createElement("div"),i.editor=e?e.editor:document.createElement("div"),i.events=e?e.events:new a.EventsNative(n),i.buffer=e?e.buffer:{},i.toolbar=new l.ToolbarCollection(i),i.options=s({},i.options,t),o}return n(e,r),e.prototype.getRealMode=function(){return d.MODE_WYSIWYG},e.prototype.i18n=function(e){return this.jodit?this.jodit.i18n(e):c.Jodit.prototype.i18n(e)},e.prototype.toggleFullSize=function(e){void 0===e&&(e=!this.__isFullSize),e!==this.__isFullSize&&(this.__isFullSize=e,this.events&&this.events.fire("toggleFullSize",e))},e.prototype.destruct=function(){this.toolbar.destruct(),r.prototype.destruct.call(this)},e}(r.Component)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(4),s=o(0),a=o(6);t.ContextMenu=function(o){function e(e){var t=o.call(this,e)||this;return t.hide=function(){t.context.classList.remove("jodit_context_menu-show"),t.jodit.ownerWindow.removeEventListener("mouseup",t.hide)},t.context=s.dom('<div data-editor_id="'+t.jodit.id+'" class="jodit_context_menu"></div>',e.ownerDocument),e.ownerDocument.body.appendChild(t.context),t}return n(e,o),e.prototype.destruct=function(){this.context&&this.context.parentNode&&this.context.parentNode.removeChild(this.context)},e.prototype.show=function(e,t,o,i){var n=this,r=this;Array.isArray(o)&&(i&&(this.context.style.zIndex=""+i),this.context.innerHTML="",o.forEach(function(t){if(t){var e=s.dom('<a href="javascript:void(0)">'+(t.icon?a.ToolbarIcon.getIcon(t.icon):"")+"<span></span></a>",n.jodit.ownerDocument),o=e.querySelector("span");e.addEventListener("click",function(e){return t.exec&&t.exec.call(r,e),r.hide(),!1}),o.innerText=r.jodit.i18n(t.title||""),r.context.appendChild(e)}}),s.css(r.context,{left:e,top:t}),this.jodit.ownerWindow.addEventListener("mouseup",r.hide),this.context.classList.add("jodit_context_menu-show"))},e}(r.Component)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0);t.localStorageProvider=function(){function e(){}return e.prototype.set=function(e,t){localStorage.setItem(e,""+t)},e.prototype.get=function(e){return localStorage.getItem(e)},e}(),t.Storage=function(){function e(e){this.provider=e,this.prefix="Jodit_"}return e.prototype.set=function(e,t){this.provider.set(i.camelCase(this.prefix+e),t)},e.prototype.get=function(e){return this.provider.get(i.camelCase(this.prefix+e))},e}()},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(4),a=o(23),l=o(24),c=o(0);r.Config.prototype.observer={timeout:100};var d=function(){function e(e,t,o){this.observer=o,this.oldValue=e,this.newValue=t}return e.prototype.undo=function(){this.observer.snapshot.restore(this.oldValue)},e.prototype.redo=function(){this.observer.snapshot.restore(this.newValue)},e}();t.Command=d,t.Observer=function(i){function e(e){var t=i.call(this,e)||this;t.onChangeStack=function(){t.__newValue=t.snapshot.make(),a.Snapshot.equal(t.__newValue,t.__startValue)||(t.stack.push(new d(t.__startValue,t.__newValue,t)),t.__startValue=t.__newValue,t.changeStack())},t.stack=new l.Stack,t.snapshot=new a.Snapshot(e);var o=c.debounce(t.onChangeStack,e.defaultTimeout);return e.events.on("afterInit",function(){t.__startValue=t.snapshot.make(),e.events.on("changeSelection selectionstart selectionchange mousedown mouseup keydown keyup",function(){t.__startValue.html===t.jodit.getNativeEditorValue()&&(t.__startValue=t.snapshot.make())}).on("change",function(){t.snapshot.isBlocked||o()})}),t}return n(e,i),e.prototype.redo=function(){this.stack.redo()&&(this.__startValue=this.snapshot.make(),this.changeStack())},e.prototype.undo=function(){this.stack.undo()&&(this.__startValue=this.snapshot.make(),this.changeStack())},e.prototype.clear=function(){this.__startValue=this.snapshot.make(),this.stack.clear(),this.changeStack()},e.prototype.changeStack=function(){this.jodit&&this.jodit.events&&this.jodit.events.fire("changeStack")},e}(s.Component)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(4),s=o(3);t.Snapshot=function(t){function a(){var e=null!==t&&t.apply(this,arguments)||this;return e.isBlocked=!1,e}return n(a,t),a.countNodesBeforeInParent=function(e){if(!e.parentNode)return 0;var t,o=e.parentNode.childNodes,i=0,n=null;for(t=0;o.length>t;t+=1){if(!n||o[t].nodeType===Node.TEXT_NODE&&""===o[t].textContent||n.nodeType===Node.TEXT_NODE&&o[t].nodeType===Node.TEXT_NODE||(i+=1),o[t]===e)return i;n=o[t]}return 0},a.prototype.calcHierarchyLadder=function(e){var t=[];if(!e||!e.parentNode||!s.Dom.isOrContains(this.jodit.editor,e))return[];for(;e&&e!==this.jodit.editor;)e&&t.push(a.countNodesBeforeInParent(e)),e=e.parentNode;return t.reverse()},a.strokeOffset=function(e,t){for(;e&&e.nodeType===Node.TEXT_NODE;)(e=e.previousSibling)&&e.nodeType===Node.TEXT_NODE&&null!==e.textContent&&(t+=e.textContent.length);return t},a.prototype.make=function(){var e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.jodit.getNativeEditorValue();var t=this.jodit.editorWindow.getSelection();if(t&&t.rangeCount){var o=t.getRangeAt(0),i=this.calcHierarchyLadder(o.startContainer),n=a.strokeOffset(o.startContainer,o.startOffset),r=this.calcHierarchyLadder(o.endContainer),s=a.strokeOffset(o.endContainer,o.endOffset);i.length||o.startContainer===this.jodit.editor||(n=0),r.length||o.endContainer===this.jodit.editor||(s=0),e.range={startContainer:i,startOffset:n,endContainer:r,endOffset:s}}return e},a.prototype.getElementByLadder=function(e){var t,o=this.jodit.editor;for(t=0;o&&e.length>t;t+=1)o=o.childNodes[e[t]];return o},a.equal=function(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)},a.prototype.restore=function(e){this.isBlocked=!0,this.jodit.setEditorValue(e.html);try{if(e.range){var t=this.jodit.editorDocument.createRange();t.setStart(this.getElementByLadder(e.range.startContainer),e.range.startOffset),t.setEnd(this.getElementByLadder(e.range.endContainer),e.range.endOffset),this.jodit.selection.selectRange(t)}}catch(e){}this.isBlocked=!1},a}(r.Component)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Stack=function(){function e(){this.commands=[],this.stackPosition=-1}return e.prototype.clearRedo=function(){this.commands.length=this.stackPosition+1},e.prototype.clear=function(){this.commands.length=0,this.stackPosition=-1},e.prototype.push=function(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1},e.prototype.undo=function(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)},e.prototype.redo=function(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)},e.prototype.canUndo=function(){return 0<=this.stackPosition},e.prototype.canRedo=function(){return this.commands.length-1>this.stackPosition},e}()},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=o(0),m=o(2),d=o(3);t.Table=function(){function f(){}return f.addSelected=function(e){e.setAttribute(m.JODIT_SELECTED_CELL_MARKER,"1")},f.restoreSelection=function(e){e.removeAttribute(m.JODIT_SELECTED_CELL_MARKER)},f.getAllSelectedCells=function(e){return e?g.$$("td["+m.JODIT_SELECTED_CELL_MARKER+"],th["+m.JODIT_SELECTED_CELL_MARKER+"]",e):[]},f.getRowsCount=function(e){return e.rows.length},f.getColumnsCount=function(e){return f.formalMatrix(e).reduce(function(e,t){return Math.max(e,t.length)},0)},f.formalMatrix=function(e,a){for(var l=[[]],t=Array.prototype.slice.call(e.rows),o=0,i=void 0;t.length>o;o+=1){var n=Array.prototype.slice.call(t[o].cells);for(i=0;n.length>i;i+=1)if(!1===function(e,t){void 0===l[t]&&(l[t]=[]);for(var o,i,n=e.colSpan,r=e.rowSpan,s=0;l[t][s];)s+=1;for(i=0;i<r;i+=1)for(o=0;o<n;o+=1){if(void 0===l[t+i]&&(l[t+i]=[]),a&&!1===a(e,t+i,s+o,n,r))return!1;l[t+i][s+o]=e}}(n[i],o))return l}return l},f.formalCoordinate=function(e,r,s){void 0===s&&(s=!1);var a=0,l=0,c=1,d=1;return f.formalMatrix(e,function(e,t,o,i,n){if(r===e)return a=t,l=o,c=i||1,d=n||1,s&&(l+=(i||1)-1,a+=(n||1)-1),!1}),[a,l,c,d]},f.appendRow=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!0);var i,n=f.getColumnsCount(e),r=e.ownerDocument.createElement("tr");for(i=0;i<n;i+=1)r.appendChild(e.ownerDocument.createElement("td"));o&&t&&t.nextSibling?t.parentNode&&t.parentNode.insertBefore(r,t.nextSibling):!o&&t?t.parentNode&&t.parentNode.insertBefore(r,t):(g.$$(":scope>tbody",e)[0]||e).appendChild(r)},f.removeRow=function(r,s){var a,l=f.formalMatrix(r),c=r.rows[s];g.each(l[s],function(e,t){if(a=!1,s-1<0||l[s-1][e]!==t)if(l[s+1]&&l[s+1][e]===t){if(t.parentNode===c&&t.parentNode.nextSibling){a=!0;for(var o=e+1;l[s+1][o]===t;)o+=1;var i=d.Dom.next(t.parentNode,function(e){return e&&e.nodeType===Node.ELEMENT_NODE&&"TR"===e.nodeName},r);l[s+1][o]?i.insertBefore(t,l[s+1][o]):i.appendChild(t)}}else t.parentNode&&t.parentNode.removeChild(t);else a=!0;if(a&&(t.parentNode===c||t!==l[s][e-1])){var n=t.rowSpan;1<n-1?t.setAttribute("rowspan",""+(n-1)):t.removeAttribute("rowspan")}}),c&&c.parentNode&&c.parentNode.removeChild(c)},f.appendColumn=function(e,t,o){void 0===o&&(o=!0);var i,n=f.formalMatrix(e);for(void 0===t&&(t=f.getColumnsCount(e)-1),i=0;n.length>i;i+=1){var r=e.ownerDocument.createElement("td"),s=n[i][t],a=!1;o?(n[i]&&s&&t+1>=n[i].length||s!==n[i][t+1])&&(s.nextSibling?s.parentNode&&s.parentNode.insertBefore(r,s.nextSibling):s.parentNode&&s.parentNode.appendChild(r),a=!0):(t-1<0||n[i][t]!==n[i][t-1]&&n[i][t].parentNode)&&(s.parentNode&&s.parentNode.insertBefore(r,n[i][t]),a=!0),a||n[i][t].setAttribute("colspan",""+(parseInt(n[i][t].getAttribute("colspan")||"1",10)+1))}},f.removeColumn=function(e,n){var r,s=f.formalMatrix(e);g.each(s,function(e,t){var o=t[n];if(r=!1,n-1<0||s[e][n-1]!==o?t.length>n+1&&s[e][n+1]===o?r=!0:o.parentNode&&o.parentNode.removeChild(o):r=!0,r&&(e-1<0||o!==s[e-1][n])){var i=o.colSpan;1<i-1?o.setAttribute("colspan",""+(i-1)):o.removeAttribute("colspan")}})},f.getSelectedBound=function(e,t){var o,i,n,r=[[1/0,1/0],[0,0]],s=f.formalMatrix(e);for(o=0;s.length>o;o+=1)for(i=0;s[o].length>i;i+=1)-1!==t.indexOf(s[o][i])&&(r[0][0]=Math.min(o,r[0][0]),r[0][1]=Math.min(i,r[0][1]),r[1][0]=Math.max(o,r[1][0]),r[1][1]=Math.max(i,r[1][1]));for(o=r[0][0];r[1][0]>=o;o+=1)for(n=1,i=r[0][1];r[1][1]>=i;i+=1){for(;s[o][i-n]&&s[o][i]===s[o][i-n];)r[0][1]=Math.min(i-n,r[0][1]),r[1][1]=Math.max(i-n,r[1][1]),n+=1;for(n=1;s[o][i+n]&&s[o][i]===s[o][i+n];)r[0][1]=Math.min(i+n,r[0][1]),r[1][1]=Math.max(i+n,r[1][1]),n+=1;for(n=1;s[o-n]&&s[o][i]===s[o-n][i];)r[0][0]=Math.min(o-n,r[0][0]),r[1][0]=Math.max(o-n,r[1][0]),n+=1;for(n=1;s[o+n]&&s[o][i]===s[o+n][i];)r[0][0]=Math.min(o+n,r[0][0]),r[1][0]=Math.max(o+n,r[1][0]),n+=1}return r},f.normalizeTable=function(e){var t,o,i,n,r=[],s=f.formalMatrix(e);for(o=0;s[0].length>o;o+=1){for(n=!(i=1e6),t=0;s.length>t;t+=1)if(void 0!==s[t][o]){if(s[t][o].colSpan<2){n=!0;break}i=Math.min(i,s[t][o].colSpan)}if(!n)for(t=0;s.length>t;t+=1)void 0!==s[t][o]&&f.__mark(s[t][o],"colspan",s[t][o].colSpan-i+1,r)}for(t=0;s.length>t;t+=1){for(n=!(i=1e6),o=0;s[t].length>o;o+=1)if(void 0!==s[t][o]){if(s[t][o].rowSpan<2){n=!0;break}i=Math.min(i,s[t][o].rowSpan)}if(!n)for(o=0;s[t].length>o;o+=1)void 0!==s[t][o]&&f.__mark(s[t][o],"rowspan",s[t][o].rowSpan-i+1,r)}for(t=0;s.length>t;t+=1)for(o=0;s[t].length>o;o+=1)void 0!==s[t][o]&&(s[t][o].hasAttribute("rowspan")&&1===s[t][o].rowSpan&&s[t][o].removeAttribute("rowspan"),s[t][o].hasAttribute("colspan")&&1===s[t][o].colSpan&&s[t][o].removeAttribute("colspan"),s[t][o].hasAttribute("class")&&!s[t][o].getAttribute("class")&&s[t][o].removeAttribute("class"));f.__unmark(r)},f.mergeSelected=function(e){var r,s=f.getSelectedBound(e,f.getAllSelectedCells(e)),a=0,l=null,c=0,d=[],u=0,h=0,p=[];s&&(s[0][0]-s[1][0]||s[0][1]-s[1][1])&&(f.formalMatrix(e,function(e,t,o,i,n){if(!(s[0][0]>t||t>s[1][0]||s[0][1]>o||o>s[1][1])){if((r=e).__i_am_already_was)return;r.__i_am_already_was=!0,t===s[0][0]&&r.style.width&&(a+=r.offsetWidth),""!==g.trim(e.innerHTML.replace(/<br(\/)?>/g,""))&&d.push(e.innerHTML),1<i&&(u+=i-1),1<n&&(h+=n-1),l?f.__mark(r,"remove",1,p):(l=e,c=o)}}),u=s[1][1]-s[0][1]+1,h=s[1][0]-s[0][0]+1,l&&(1<u&&f.__mark(l,"colspan",u,p),1<h&&f.__mark(l,"rowspan",h,p),a&&(f.__mark(l,"width",(a/e.offsetWidth*100).toFixed(m.ACCURACY)+"%",p),c&&f.setColumnWidthByDelta(e,c,0,!0,p)),l.innerHTML=d.join("<br/>"),delete l.__i_am_already_was,f.__unmark(p),f.normalizeTable(e),g.each([].slice.call(e.rows),function(e,t){t.cells.length||t.parentNode.removeChild(t)})))},f.splitHorizontal=function(n){var r,e,t,s,a,l=[];f.getAllSelectedCells(n).forEach(function(i){(e=n.ownerDocument.createElement("td")).appendChild(n.ownerDocument.createElement("br")),t=n.ownerDocument.createElement("tr"),r=f.formalCoordinate(n,i),i.rowSpan<2?(f.formalMatrix(n,function(e,t,o){r[0]===t&&r[1]!==o&&e!==i&&f.__mark(e,"rowspan",e.rowSpan+1,l)}),d.Dom.after(d.Dom.closest(i,"tr",n),t),t.appendChild(e)):(f.__mark(i,"rowspan",i.rowSpan-1,l),f.formalMatrix(n,function(e,t,o){t>r[0]&&r[0]+i.rowSpan>t&&r[1]>o&&e.parentNode.rowIndex===t&&(a=e),t>r[0]&&e===i&&(s=n.rows[t])}),a?d.Dom.after(a,e):s.insertBefore(e,s.firstChild)),1<i.colSpan&&f.__mark(e,"colspan",i.colSpan,l),f.__unmark(l),f.restoreSelection(i)}),this.normalizeTable(n)},f.splitVertical=function(t){var n,o,r,s=[];f.getAllSelectedCells(t).forEach(function(i){n=f.formalCoordinate(t,i),i.colSpan<2?f.formalMatrix(t,function(e,t,o){n[1]===o&&n[0]!==t&&e!==i&&f.__mark(e,"colspan",e.colSpan+1,s)}):f.__mark(i,"colspan",i.colSpan-1,s),(o=t.ownerDocument.createElement("td")).appendChild(t.ownerDocument.createElement("br")),1<i.rowSpan&&f.__mark(o,"rowspan",i.rowSpan,s);var e=i.offsetWidth;d.Dom.after(i,o),r=e/t.offsetWidth/2,f.__mark(i,"width",(100*r).toFixed(m.ACCURACY)+"%",s),f.__mark(o,"width",(100*r).toFixed(m.ACCURACY)+"%",s),f.__unmark(s),f.restoreSelection(i)}),f.normalizeTable(t)},f.__mark=function(e,t,o,i){i.push(e),e.__marked_value||(e.__marked_value={}),e.__marked_value[t]=void 0===o?1:o},f.__unmark=function(e){e.forEach(function(o){o.__marked_value&&(g.each(o.__marked_value,function(e,t){switch(e){case"remove":o.parentNode&&o.parentNode.removeChild(o);break;case"rowspan":1<t?o.setAttribute("rowspan",t):o.removeAttribute("rowspan");break;case"colspan":1<t?o.setAttribute("colspan",t):o.removeAttribute("colspan");break;case"width":o.style.width=t}delete o.__marked_value[e]}),delete o.__marked_value)})},f.setColumnWidthByDelta=function(e,t,o,i,n){var r,s,a=f.formalMatrix(e);for(r=0;a.length>r;r+=1)s=(a[r][t].offsetWidth+o)/e.offsetWidth*100,f.__mark(a[r][t],"width",s.toFixed(m.ACCURACY)+"%",n);i||f.__unmark(n)},f}()},function(e,t,o){"use strict";this&&this.__assign||Object,o(27),"undefined"!=typeof window&&o(28);var i=o(5),n=o(2),r=o(38),s=o(16),a=o(80),l=o(87),c=o(1),d=o(6);Object.keys(n).forEach(function(e){i.Jodit[e]=n[e]});var u=function(e){return"__esModule"!==e};Object.keys(l).filter(u).forEach(function(e){d.ToolbarIcon.icons[e.replace("_","-")]=l[e]}),Object.keys(s).filter(u).forEach(function(e){i.Jodit.modules[e]=s[e]}),Object.keys(r).filter(u).forEach(function(e){i.Jodit.plugins[e]=r[e]}),Object.keys(a).filter(u).forEach(function(e){i.Jodit.lang[e]=a[e]}),i.Jodit.defaultOptions=new c.Config,c.OptionsDefault.prototype=i.Jodit.defaultOptions,e.exports=i.Jodit},function(e,t){},function(e,t,o){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),o(29),o(30),(i=Element.prototype).matches||(i.matches=void 0!==i.matchesSelector?i.matchesSelector:function(e){var t=this.ownerDocument.querySelectorAll(e),o=this;return Array.prototype.some.call(t,function(e){return e===o})})},function(e,t){"document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(e){"use strict";if("Element"in e){var t=e.Element.prototype,o=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array.prototype.indexOf||function(e){for(var t=0,o=this.length;t<o;t++)if(t in this&&this[t]===e)return t;return-1},n=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},s=function(e,t){if(""===t)throw new n("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new n("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(e,t)},a=function(e){for(var t=r.call(e.getAttribute("class")||""),o=t?t.split(/\s+/):[],i=0,n=o.length;i<n;i++)this.push(o[i]);this._updateClassName=function(){e.setAttribute("class",""+this)}},l=a.prototype=[],c=function(){return new a(this)};if(n.prototype=Error.prototype,l.item=function(e){return this[e]||null},l.contains=function(e){return-1!==s(this,e+="")},l.add=function(){for(var e,t=arguments,o=0,i=t.length,n=!1;e=t[o]+"",-1===s(this,e)&&(this.push(e),n=!0),++o<i;);n&&this._updateClassName()},l.remove=function(){var e,t,o=arguments,i=0,n=o.length,r=!1;do{for(e=o[i]+"",t=s(this,e);-1!==t;)this.splice(t,1),r=!0,t=s(this,e)}while(++i<n);r&&this._updateClassName()},l.toggle=function(e,t){e+="";var o=this.contains(e),i=o?!0!==t&&"remove":!1!==t&&"add";return i&&this[i](e),!0===t||!1===t?t:!o},l.toString=function(){return this.join(" ")},o.defineProperty){var d={get:c,enumerable:!0,configurable:!0};try{o.defineProperty(t,"classList",d)}catch(e){void 0!==e.number&&-2146823252!==e.number||(d.enumerable=!1,o.defineProperty(t,"classList",d))}}else o.prototype.__defineGetter__&&t.__defineGetter__("classList",c)}}(window.self),function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var i=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var t,o=arguments.length;for(t=0;t<o;t++)e=arguments[t],i.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:o.call(this,e)}}e=null}())},function(e,t,o){"use strict";e.exports=o(31).polyfill()},function(t,e,o){(function(e){t.exports=function(){"use strict";function c(e){return"function"==typeof e}function t(){var e=setTimeout;return function(){return e(o,1)}}function o(){for(var e=0;e<x;e+=2)(0,F[e])(F[e+1]),F[e]=void 0,F[e+1]=void 0;x=0}function a(e,t){var o=this,i=new this.constructor(s);void 0===i[L]&&b(i);var n=o._state;if(n){var r=arguments[n-1];A(function(){return v(n,i,r,o._result)})}else g(o,i,e,t);return i}function l(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(s);return h(t,e),t}function s(){}function d(e){try{return e.then}catch(e){return R.error=e,R}}function u(e,t,o){var i,n,r,s;t.constructor===e.constructor&&o===a&&t.constructor.resolve===l?(r=e,(s=t)._state===T?p(r,s._result):s._state===B?f(r,s._result):g(s,void 0,function(e){return h(r,e)},function(e){return f(r,e)})):o===R?(f(e,R.error),R.error=null):void 0===o?p(e,t):c(o)?(i=t,n=o,A(function(t){var o=!1,e=function(e,t,o,i){try{e.call(t,o,i)}catch(e){return e}}(n,i,function(e){o||(o=!0,i!==e?h(t,e):p(t,e))},function(e){o||(o=!0,f(t,e))},t._label);!o&&e&&(o=!0,f(t,e))},e)):p(e,t)}function h(e,t){var o,i;e===t?f(e,new TypeError("You cannot resolve a promise with itself")):(i=typeof(o=t),null===o||"object"!==i&&"function"!==i?p(e,t):u(e,t,d(t)))}function i(e){e._onerror&&e._onerror(e._result),m(e)}function p(e,t){e._state===M&&(e._result=t,e._state=T,0!==e._subscribers.length&&A(m,e))}function f(e,t){e._state===M&&(e._state=B,e._result=t,A(i,e))}function g(e,t,o,i){var n=e._subscribers,r=n.length;e._onerror=null,n[r]=t,n[r+T]=o,n[r+B]=i,0===r&&e._state&&A(m,e)}function m(e){var t=e._subscribers,o=e._state;if(0!==t.length){for(var i=void 0,n=void 0,r=e._result,s=0;t.length>s;s+=3)i=t[s],n=t[s+o],i?v(o,i,n,r):n(r);e._subscribers.length=0}}function v(e,t,o,i){var n=c(o),r=void 0,s=void 0,a=void 0,l=void 0;if(n){if((r=function(e,t){try{return e(t)}catch(e){return R.error=e,R}}(o,i))===R?(l=!0,s=r.error,r.error=null):a=!0,t===r)return void f(t,new TypeError("A promises callback cannot return that same promise."))}else r=i,a=!0;t._state!==M||(n&&a?h(t,r):l?f(t,s):e===T?p(t,r):e===B&&f(t,r))}function b(e){e[L]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var e,n,r,w,y=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},x=0,_=void 0,C=void 0,A=function(e,t){F[x]=e,F[x+1]=t,2===(x+=2)&&(C?C(o):D())},k="undefined"!=typeof window?window:void 0,E=k||{},$=E.MutationObserver||E.WebKitMutationObserver,S="undefined"==typeof self&&void 0!==lhc&&"[object process]"==={}.toString.call(lhc),j="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,F=Array(1e3),D=void 0;D=S?function(){return lhc.nextTick(o)}:$?(n=0,r=new $(o),w=document.createTextNode(""),r.observe(w,{characterData:!0}),function(){w.data=n=++n%2}):j?((e=new MessageChannel).port1.onmessage=o,function(){return e.port2.postMessage(0)}):void 0===k?function(){try{var e=Function("return this")().require("vertx");return void 0!==(_=e.runOnLoop||e.runOnContext)?function(){_(o)}:t()}catch(e){return t()}}():t();var L=Math.random().toString(36).substring(2),M=void 0,T=1,B=2,R={error:null},I=0,O=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(s),this.promise[L]||b(this.promise),y(t)?(this.length=t.length,this._remaining=t.length,this._result=Array(this.length),0===this.length?p(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&p(this.promise,this._result))):f(this.promise,Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===M&&e.length>t;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(t,e){var o=this._instanceConstructor,i=o.resolve;if(i===l){var n=d(t);if(n===a&&t._state!==M)this._settledAt(t._state,e,t._result);else if("function"!=typeof n)this._remaining--,this._result[e]=t;else if(o===z){var r=new o(s);u(r,t,n),this._willSettleAt(r,e)}else this._willSettleAt(new o(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},e.prototype._settledAt=function(e,t,o){var i=this.promise;i._state===M&&(this._remaining--,e===B?f(i,o):this._result[t]=o),0===this._remaining&&p(i,this._result)},e.prototype._willSettleAt=function(e,t){var o=this;g(e,void 0,function(e){return o._settledAt(T,t,e)},function(e){return o._settledAt(B,t,e)})},e}(),z=function(){function t(e){this[L]=I++,this._result=this._state=void 0,this._subscribers=[],s!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(t,e){try{e(function(e){h(t,e)},function(e){f(t,e)})}catch(e){f(t,e)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var o=this.constructor;return this.then(function(e){return o.resolve(t()).then(function(){return e})},function(e){return o.resolve(t()).then(function(){throw e})})},t}();return z.prototype.then=a,z.all=function(e){return new O(this,e).promise},z.race=function(n){var r=this;return new r(y(n)?function(e,t){for(var o=n.length,i=0;i<o;i++)r.resolve(n[i]).then(e,t)}:function(e,t){return t(new TypeError("You must pass an array to race."))})},z.resolve=l,z.reject=function(e){var t=new this(s);return f(t,e),t},z._setScheduler=function(e){C=e},z._setAsap=function(e){A=e},z._asap=A,z.polyfill=function(){var e=void 0;if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var o=null;try{o=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===o&&!t.cast)return}e.Promise=z},z.Promise=z}()}).call(e,o(32))},function(SQc,TQc){var UQc;UQc=function(){return this}();try{UQc=UQc||Function("return this")()||eval("this")}catch(SQc){"object"==typeof window&&(UQc=window)}SQc.exports=UQc},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(4);t.StatusBar=function(i){function e(e,t){var o=i.call(this,e)||this;return o.target=t,o.container=e.ownerDocument.createElement("div"),o.container.classList.add("jodit_statusbar"),t.appendChild(o.container),o.hide(),o}return n(e,i),e.prototype.hide=function(){this.container&&(this.container.style.display="none")},e.prototype.show=function(){this.container&&(this.container.style.display="block")},e.prototype.append=function(e,t){void 0===t&&(t=!1);var o=this.jodit.ownerDocument.createElement("div");o.classList.add("jodit_statusbar_item"),t&&o.classList.add("jodit_statusbar_item-right"),o.appendChild(e),this.container.appendChild(o),this.show(),this.jodit.events.fire("resize")},e.prototype.destruct=function(){i.prototype.destruct.call(this),this.container.parentNode&&this.container.parentNode.removeChild(this.container)},e}(r.Component)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0);t.Tooltip=function(e){var o=this;this.button=e,this.timeout=0,this.show=function(){var e=function(){o.button.container.appendChild(o.container),o.container.style.marginLeft=-(o.container.offsetWidth-o.button.container.offsetWidth)/2+"px"},t=o.button.jodit.options.showTooltipDelay;o.button.jodit.events.fire("hideTooltip"),t?o.timeout=window.setTimeout(e,t):e()},this.hide=function(){window.clearTimeout(o.timeout),o.container.parentNode&&o.container.parentNode.removeChild(o.container)},e.control.tooltip&&(this.container=e.jodit.ownerDocument.createElement("div"),this.container.classList.add("jodit_tooltip"),this.container.innerHTML=e.jodit.i18n(e.control.tooltip)+(e.control.hotkeys?"<br>"+i.asArray(e.control.hotkeys).join(" "):""),e.jodit.events.on(e.anchor,"mouseenter",this.show).on(e.anchor,"mouseleave",this.hide).on("change updateToolbar scroll hidePopup closeAllPopups hideTooltip",this.hide))}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),s=this&&this.__assign||Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),r=o(15),l=o(8),c=o(14);t.ToolbarList=function(r){function e(e,t,o,i){void 0===i&&(i="jodit_toolbar_list");var n=r.call(this,e,t,o,i)||this;return n.target=t,n.current=o,n.className=i,n.defaultControl={template:function(e,t,o){return n.jodit.i18n(o)}},n.getContainer=function(){return n.toolbar.container},n}return n(e,r),e.prototype.doClose=function(){this.toolbar&&this.toolbar.destruct()},e.prototype.doOpen=function(n){var r=this;this.toolbar=new l.ToolbarCollection(this.jodit);var e="string"==typeof n.list?n.list.split(/[\s,]/):n.list;a.each(e,function(e,t){var o;if(void 0!==r.jodit.options.controls[t])o=new c.ToolbarButton(r.jodit,s({name:""+t},r.jodit.options.controls[t]),r.current);else if(void 0!==r.jodit.options.controls[e]&&"object"==typeof t)o=new c.ToolbarButton(r.jodit,s({name:""+e},r.jodit.options.controls[e],t),r.current);else{o=new c.ToolbarButton(r.jodit,{name:""+e,exec:n.exec,command:n.command,isActive:n.isActiveChild,isDisable:n.isDisableChild,mode:n.mode,args:[n.args&&n.args[0]||e,n.args&&n.args[1]||t]},r.current);var i=n.template||r.defaultControl.template;o.textBox.innerHTML=i(r.jodit,e,t)}r.toolbar.appendChild(o)}),this.container.appendChild(this.toolbar.container),this.container.style.marginLeft=null,this.toolbar.checkActiveButtons()},e}(r.ToolbarPopup)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(9);t.ToolbarBreak=function(o){function e(e){var t=o.call(this,e)||this;return t.container.classList.add("jodit_toolbar_btn-break"),t}return n(e,o),e}(r.ToolbarElement)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(9);t.ToolbarSeparator=function(o){function e(e){var t=o.call(this,e)||this;return t.container.classList.add("jodit_toolbar_btn-separator"),t}return n(e,o),e}(r.ToolbarElement)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addNewLine=o(39).addNewLine,t.autofocus=o(40).autofocus,t.backspace=o(41).backspace,t.bold=o(42).bold,t.cleanHTML=o(43).cleanHTML,t.color=o(44).color,o(45),t.enter=o(46).enter,t.errorMessages=o(47).errorMessages,t.font=o(48).font,t.formatBlock=o(49).formatBlock,t.fullsize=o(50).fullsize,t.iframe=o(51).iframe,t.indent=o(52).indent,t.imageProcessor=o(53).imageProcessor,t.imageProperties=o(54).imageProperties,t.inlinePopup=o(55).inlinePopup,t.justify=o(56).justify,t.link=o(57).link,t.mobile=o(58).mobile,t.orderedlist=o(59).orderedlist,t.paste=o(60).paste,t.placeholder=o(61).placeholder,t.redoundo=o(62).redoundo,t.resizer=o(63).resizer,t.size=o(64).size,t.source=o(65).source,t.symbols=o(66).symbols,t.hotkeys=o(67).hotkeys,t.table=o(68).TableProcessor,t.tableKeyboardNavigation=o(73).tableKeyboardNavigation,t.search=o(74).search,t.sticky=o(75).sticky,t.stat=o(76).stat,t.xpath=o(77).xpath,t.DragAndDrop=o(78).DragAndDrop,t.pasteStorage=o(79).pasteStorage},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),g=o(0),m=o(3),r=o(6);i.Config.prototype.addNewLine=!0,i.Config.prototype.addNewLineOnDBLClick=!0,i.Config.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","jodit"],t.addNewLine=function(s){if(s.options.addNewLine){var a,l,c=g.dom('<div role="button" tabIndex="-1" title="'+s.i18n("Break")+'" class="jodit-add-new-line"><span>'+r.ToolbarIcon.getIcon("enter")+"</span></div>",s.ownerDocument),d=RegExp("^("+s.options.addNewLineTagsTriggers.join("|")+")$","i"),u=!1,h=!1,e=!1,n=function(){clearTimeout(a),e=!1,c.style.display="none",u=!0},p=function(e){return null!==e&&m.Dom.isBlock(e)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName)},f=function(){u||e||(clearTimeout(a),a=window.setTimeout(n,500))};s.events.on("beforeDestruct",function(){c.parentNode&&c.parentNode.removeChild(c)}).on("afterInit",function(){s.container.appendChild(c),s.events.on(c,"mousemove",function(e){e.stopPropagation()}).on(c,"mousedown touchstart",function(e){var t=s.editorDocument.createElement(s.options.enter);h&&l&&l.parentNode?l.parentNode.insertBefore(t,l):s.editor.appendChild(t),s.selection.setCursorIn(t),s.setEditorValue(),n(),e.preventDefault()})}).on("afterInit",function(){s.events.on(s.editor,"scroll",function(){n()}).on(s.container,"mouseleave",f).on(c,"mouseenter",function(){clearTimeout(a),e=!0}).on(c,"mouseleave",function(){e=!1}).on(s.editor,"dblclick",function(e){if(s.options.addNewLineOnDBLClick&&e.target===s.editor&&s.selection.isCollapsed()){var t=g.offset(s.editor,s,s.editorDocument),o=e.pageY-s.editorWindow.pageYOffset,i=s.editorDocument.createElement(s.options.enter);Math.abs(o-t.top)<Math.abs(o-(t.height+t.top))&&s.editor.firstChild?s.editor.insertBefore(i,s.editor.firstChild):s.editor.appendChild(i),s.selection.setCursorIn(i),s.setEditorValue(),n(),e.preventDefault()}}).on(s.editor,"mousemove",g.debounce(function(e){var t=s.editorDocument.elementFromPoint(e.pageX-s.editorWindow.pageXOffset,e.pageY-s.editorWindow.pageYOffset);if((!t||!m.Dom.isOrContains(c,t))&&t&&m.Dom.isOrContains(s.editor,t)){if(!(t&&t.nodeName.match(d)&&m.Dom.isOrContains(s.editor,t)||(t=m.Dom.closest(t,d,s.editor))))return void f();if(t.nodeName.match(d)){var o=m.Dom.up(t,m.Dom.isBlock,s.editor);o&&o!==s.editor&&(t=o)}var i=g.offset(s.editor,s,s.editorDocument),n=g.offset(t,s,s.editorDocument),r=!1;Math.abs(e.pageY-n.top)<10&&((r=n.top)-i.top<20||(r-=15),h=!0),Math.abs(e.pageY-(n.top+n.height))<10&&(r=n.top+n.height,i.top+i.height-r<25||(r+=15),h=!1),!1!==r&&(h&&!m.Dom.prev(t,p,s.editor)||!h&&!m.Dom.next(t,p,s.editor))?(c.style.top=r+"px",l=t,s.options.readonly||s.isLocked()||s.container.classList.contains("jodit_popup_active")||(clearTimeout(a),c.classList.toggle("jodit-add-new-line_after",!h),c.style.display="block",c.style.width=s.editor.clientWidth+"px",u=!1)):(l=!1,f())}},s.defaultTimeout))})}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3);i.Config.prototype.autofocus=!1,t.autofocus=function(t){var e;t.events.on("afterInit",function(){t.options.autofocus&&(t.defaultTimeout?e=window.setTimeout(t.selection.focus,300):t.selection.focus())}).on("mousedown",function(e){t.isEditorMode()&&e.target&&n.Dom.isBlock(e.target)&&!e.target.childNodes.length&&(t.editor===e.target?t.selection.focus():t.selection.setCursorIn(e.target))}).on("beforeDestruct",function(){clearTimeout(e)})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var w=o(2),y=o(0),x=o(3);t.backspace=function(g){var m=function(e){var t,o=e;y.normalizeNode(e);do{var i=o.innerHTML.replace(w.INVISIBLE_SPACE_REG_EXP,"");if(i.length&&"<br>"!==i||x.Dom.isCell(o,g.editorWindow)||!o.parentNode||e===g.editor)break;t=o.parentNode,o.parentNode.removeChild(o),o=t}while(o&&o!==g.editor)},c=function(e,t,o){if(e.node&&e.node.nodeType===Node.TEXT_NODE&&"string"==typeof e.node.nodeValue){for(var i=t?e.node.nodeValue.length:0,n=i,r=e.node.nodeValue,s=t?-1:1;0<=i&&r.length>=i&&r[i+(t?-1:0)]===w.INVISIBLE_SPACE;)i+=s;i!==n&&(t?r=r.substr(0,i)+r.substr(n):(r=r.substr(0,n)+r.substr(i),i=n),e.node.nodeValue=r),o.setStart(e.node,i),o.collapse(!0),g.selection.selectRange(o);var a=x.Dom.findInline(e.node,t,g.editor);if(r.length){var l=!1;if(t?i&&(l=!0):r.length>i&&(l=!0),l)return!0}else o.setStartBefore(e.node),o.collapse(!0),g.selection.selectRange(o),e.node&&e.node.parentNode&&e.node.parentNode.removeChild(e.node),e.node=a;if(a&&(x.Dom.isInlineBlock(a)&&(a=t?a.lastChild:a.firstChild),a&&a.nodeType===Node.TEXT_NODE))return e.node=a,c(e,t,o)}},t=/^(IMG|BR|IFRAME|SCRIPT|INPUT|TEXTAREA|HR)$/,r=function(e){if(e&&t.test(e.nodeName))return e.parentNode&&e.parentNode.removeChild(e),!1},v=function(e,t,o){if(e.node){var i=e.node;if(void 0!==c(e,t,o))return!0;if(e.node||(e.node=i.parentNode),e.node===g.editor)return!1;var n=e.node;if(!1===r(n))return!1;for(n&&(n=t?n.previousSibling:n.nextSibling);n&&n.nodeType===Node.TEXT_NODE&&n.nodeValue&&n.nodeValue.match(/^[\n\r]+$/);)n=t?n.previousSibling:n.nextSibling;return r(n)}},b=function(e){return null===e.nodeName.match(/^(TD|TH|TR|TABLE|LI)$/)&&(!(!x.Dom.isEmpty(e)&&null===e.nodeName.match(t))||!(e.nodeType===Node.TEXT_NODE&&!x.Dom.isEmptyTextNode(e))&&(!e.childNodes.length||[].slice.call(e.childNodes).every(b)))};g.events.on("afterCommand",function(e){if("delete"===e){var t=g.selection.current();if(t&&t.firstChild&&"BR"===t.firstChild.nodeName&&t.removeChild(t.firstChild),!(y.trim(g.editor.innerText)||g.editor.querySelector("img")||t&&x.Dom.closest(t,"table",g.editor))){g.editor.innerHTML="";var o=g.selection.setCursorIn(g.editor);o.parentNode&&o.parentNode.removeChild(o)}}}).on("keydown",function(e){if(e.which===w.KEY_BACKSPACE||e.which===w.KEY_DELETE){var t=e.which===w.KEY_BACKSPACE;if(g.selection.isFocused()||g.selection.focus(),!g.selection.isCollapsed())return g.execCommand("Delete"),!1;var o=g.editorWindow.getSelection(),i=!!o.rangeCount&&o.getRangeAt(0);if(!i)return!1;var n=g.ownerDocument.createTextNode(w.INVISIBLE_SPACE),r=g.editorDocument.createElement("span");try{if(i.insertNode(n),!x.Dom.isOrContains(g.editor,n))return!1;var s=x.Dom.up(n,x.Dom.isBlock,g.editor),a=x.Dom.findInline(n,t,g.editor),l={node:a},c=void 0;if(a?c=v(l,t,i):n.parentNode&&(c=v({node:t?n.parentNode.previousSibling:n.parentNode.nextSibling},t,i)),void 0!==c)return!!c&&void 0;if(s&&s.nodeName.match(/^(TD)$/))return!1;var d=t?x.Dom.prev(l.node||n,x.Dom.isBlock,g.editor):x.Dom.next(l.node||n,x.Dom.isBlock,g.editor);if(!d&&s&&s.parentNode){d=g.editorDocument.createElement(g.options.enter);for(var u=s;u&&u.parentNode&&u.parentNode!==g.editor;)u=u.parentNode;u.parentNode&&u.parentNode.insertBefore(d,u)}else if(d&&b(d))return d.parentNode&&d.parentNode.removeChild(d),!1;if(d){var h=g.selection.setCursorIn(d,!t);g.selection.insertNode(r,!1,!1),h.nodeType===Node.TEXT_NODE&&h.nodeValue===w.INVISIBLE_SPACE&&h.parentNode&&h.parentNode.removeChild(h)}if(s){if(m(s),d&&s.parentNode&&(s.nodeName===d.nodeName&&s.parentNode&&d.parentNode&&s.parentNode!==g.editor&&d.parentNode!==g.editor&&s.parentNode!==d.parentNode&&s.parentNode.nodeName===d.parentNode.nodeName&&(s=s.parentNode,d=d.parentNode),x.Dom.moveContent(s,d,!t),y.normalizeNode(d)),d&&"LI"===d.nodeName){var p=x.Dom.closest(d,"Ul|OL",g.editor);if(p){var f=p.nextSibling;f&&f.nodeName===p.nodeName&&p!==f&&(x.Dom.moveContent(f,p,!t),f.parentNode&&f.parentNode.removeChild(f))}}return m(s),!1}}finally{n.parentNode&&n.nodeValue===w.INVISIBLE_SPACE&&n.parentNode.removeChild(n),r&&x.Dom.isOrContains(g.editor,r,!0)&&(h=g.selection.setCursorBefore(r),r.parentNode&&r.parentNode.removeChild(r),h&&h.parentNode&&(x.Dom.findInline(h,!0,h.parentNode)||x.Dom.findInline(h,!0,h.parentNode))&&h.parentNode.removeChild(h)),g.setEditorValue()}return!1}})}},function(e,t,o){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e};Object.defineProperty(t,"__esModule",{value:!0});var s=o(5),i=o(1);i.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},i.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},i.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration":"underline"},tooltip:"Underline"},i.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration":"line-through"},tooltip:"Strike through"},t.bold=function(n){var e=function(e){var t=s.Jodit.defaultOptions.controls[e],o=r({},t.css),i={};return Object.keys(o).forEach(function(e){i[e]=Array.isArray(o[e])?o[e][0]:o[e]}),n.selection.applyCSS(i,t.tags?t.tags[0]:void 0,t.css),n.setEditorValue(),!1};n.registerCommand("bold",{exec:e,hotkeys:"ctrl+b"}),n.registerCommand("italic",{exec:e,hotkeys:"ctrl+i"}),n.registerCommand("underline",{exec:e,hotkeys:"ctrl+u"}),n.registerCommand("strikethrough",{exec:e})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),l=o(2),g=o(0),m=o(3),v=o(2);i.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,cleanOnPaste:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:!1},i.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},t.cleanHTML=function(d){d.options.cleanHTML.cleanOnPaste&&d.events.on("processPaste",function(e,t){return g.cleanFromWord(t)});var u,r=/([^\[]*)\[([^\]]+)]/,s=/[\s]*,[\s]*/,a=/^(.*)[\s]*=[\s]*(.*)$/,e=function(t){var n={};return"string"==typeof t?(t.split(s).map(function(e){e=g.trim(e);var t=r.exec(e),o={};if(t){var i=t[2].split(s);t[1]&&(i.forEach(function(e){e=g.trim(e);var t=a.exec(e);t?o[t[1]]=t[2]:o[e]=!0}),n[t[1].toUpperCase()]=o)}else n[e.toUpperCase()]=!0}),n):!!t&&(Object.keys(t).forEach(function(e){n[e.toUpperCase()]=t[e]}),n)},h=e(d.options.cleanHTML.allowTags),p=e(d.options.cleanHTML.denyTags),f=function(e,t){void 0===t&&(t=!1);for(var o=t?e.nextSibling:e.previousSibling;o;){if(o.nodeType===Node.ELEMENT_NODE||!m.Dom.isEmptyTextNode(o))return!0;o=t?o.nextSibling:o.previousSibling}return!1};d.events.on("change afterSetMode afterInit mousedown keydown",g.debounce(function(){if(!d.isDestructed&&d.isEditorMode()){u=d.selection.current();var e=null,n=[],r=!1,s=0,t=d.options.cleanHTML.replaceOldTags;if(t&&u){var o=Object.keys(t).join("|");if(d.selection.isCollapsed()){var i=m.Dom.closest(u,o,d.editor);if(i){var a=d.selection.save(),l=t[i.nodeName.toLowerCase()]||t[i.nodeName];m.Dom.replace(i,l,!0,!1,d.editorDocument),d.selection.restore(a)}}}var c=function(t){if(t){if((i=t).nodeType!==Node.TEXT_NODE&&(h&&!h[i.nodeName]||p&&p[i.nodeName])||u&&"BR"===i.nodeName&&f(i)&&!f(i,!0)&&m.Dom.up(i,m.Dom.isBlock,d.editor)!==m.Dom.up(u,m.Dom.isBlock,d.editor)||d.options.cleanHTML.removeEmptyElements&&!1!==u&&i.nodeType===Node.ELEMENT_NODE&&null!==i.nodeName.match(v.IS_INLINE)&&!d.selection.isMarker(i)&&0===g.trim(i.innerHTML).length&&!m.Dom.isOrContains(i,u))return n.push(t),c(t.nextSibling);if(d.options.cleanHTML.fillEmptyParagraph&&m.Dom.isBlock(t)&&m.Dom.isEmpty(t,/^(img|svg|canvas|input|textarea|form|br)$/)){var e=d.editorDocument.createElement("br");t.appendChild(e)}if(h&&!0!==h[t.nodeName]&&t.attributes&&t.attributes.length){var o=[];for(s=0;t.attributes.length>s;s+=1)(!h[t.nodeName][t.attributes[s].name]||!0!==h[t.nodeName][t.attributes[s].name]&&h[t.nodeName][t.attributes[s].name]!==t.attributes[s].value)&&o.push(t.attributes[s].name);o.length&&(r=!0),o.forEach(function(e){t.removeAttribute(e)})}c(t.firstChild),c(t.nextSibling)}var i};d.editor.firstChild&&(e=d.editor.firstChild),c(e),n.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),(n.length||r)&&d.events&&d.events.fire("syncho")}},d.options.cleanHTML.timeout)).on("keyup",function(){if(!d.options.readonly){var t=d.selection.current();if(t){var e=m.Dom.up(t,m.Dom.isBlock,d.editor);e&&m.Dom.all(e,function(e){e.nodeType===Node.TEXT_NODE&&null!==e.nodeValue&&l.INVISIBLE_SPACE_REG_EXP.test(e.nodeValue)&&0!==e.nodeValue.replace(l.INVISIBLE_SPACE_REG_EXP,"").length&&(e.nodeValue=e.nodeValue.replace(l.INVISIBLE_SPACE_REG_EXP,""),e===t&&d.selection.isCollapsed()&&d.selection.setCursorAfter(e))})}}}).on("afterCommand",function(e){var t,o,i=d.selection;switch(e.toLowerCase()){case"inserthorizontalrule":(t=d.editor.querySelector("hr[id=null]"))&&((o=m.Dom.next(t,m.Dom.isBlock,d.editor,!1))||(o=d.editorDocument.createElement(d.options.enter))&&m.Dom.after(t,o),i.setCursorIn(o));break;case"removeformat":o=i.current();var n=function(t){switch(t.nodeType){case Node.ELEMENT_NODE:m.Dom.each(t,n),"FONT"===t.nodeName?m.Dom.unwrap(t):([].slice.call(t.attributes).forEach(function(e){-1===["src","href","rel","content"].indexOf(e.name.toLowerCase())&&t.removeAttribute(e.name)}),g.normalizeNode(t));break;case Node.TEXT_NODE:d.options.cleanHTML.replaceNBSP&&t.nodeType===Node.TEXT_NODE&&null!==t.nodeValue&&t.nodeValue.match(l.SPACE_REG_EXP)&&(t.nodeValue=t.nodeValue.replace(l.SPACE_REG_EXP," "));break;default:t.parentNode&&t.parentNode.removeChild(t)}};if(i.isCollapsed())for(;o&&o.nodeType!==Node.ELEMENT_NODE&&o!==d.editor;)n(o),o&&(o=o.parentNode);else d.selection.eachSelection(function(e){n(e)})}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=o(0),i=o(1),n=o(12),u=n.Widget.TabsWidget,h=n.Widget.ColorPickerWidget,p=o(3);i.Config.prototype.controls.brush={isActive:function(t,e,o){var i=t.selection.current(),n=o.container.querySelector("svg");if(i){var r=p.Dom.closest(i,function(e){return p.Dom.isBlock(e)||p.Dom.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE},t.editor)||t.editor,s=""+d.css(r,"color"),a=""+d.css(r,"background-color");if(s!==""+d.css(t.editor,"color"))return n&&(n.style.fill=s),!0;if(a!==""+d.css(t.editor,"background-color"))return n&&(n.style.fill=a),!0}return n&&n.style.fill&&(n.style.fill=null),!1},popup:function(t,e,o,i){var n,r="",s="",a=null;e&&e!==t.editor&&p.Dom.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE&&(r=""+d.css(e,"color"),s=""+d.css(e,"background-color"),a=e);var l=h(t,function(e){a?a.style.backgroundColor=e:t.execCommand("background",!1,e),i()},s),c=h(t,function(e){a?a.style.color=e:t.execCommand("forecolor",!1,e),i()},r);return n="background"===t.options.colorPickerDefaultTab?{Background:l,Text:c}:{Text:c,Background:l},u(t,n,a)},tooltip:"Fill color or set the text color"},t.color=function(n){var e=function(e,t,o){var i=d.normalizeColor(o);switch(e){case"background":n.selection.applyCSS({backgroundColor:i||""});break;case"forecolor":n.selection.applyCSS({color:i||""})}return n.setEditorValue(),!1};n.registerCommand("forecolor",e),n.registerCommand("background",e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),d=o(3),u=o(0),h=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],p=function(e,t,o,i){var n=u.css(o,t);return n==i[t]&&(n=o.parentNode&&o!==e.editor&&o.parentNode!==e.editor?p(e,t,o.parentNode,i):void 0),n};i.Config.prototype.controls.copyformat={exec:function(t,e){if(e)if(t.buffer.copyformat)t.buffer.copyformat=!1,t.events.off(t.editor,"mouseup.copyformat");else{var o={},i=d.Dom.up(e,function(e){return e&&e.nodeType!==Node.TEXT_NODE},t.editor)||t.editor,n=t.editorDocument.createElement("span");t.editor.appendChild(n),h.forEach(function(e){o[e]=u.css(n,e)}),n!==t.editor&&n.parentNode&&n.parentNode.removeChild(n);var r=(s=t,l=o,c={},(a=i)&&h.forEach(function(e){c[e]=p(s,e,a,l),e.match(/border(Style|Color)/)&&!c.borderWidth&&(c[e]=void 0)}),c);t.events.on(t.editor,"mouseup.copyformat",function(){t.buffer.copyformat=!1;var e=t.selection.current();e&&("IMG"===e.nodeName?u.css(e,r):t.selection.applyCSS(r)),t.events.off(t.editor,"mouseup.copyformat")}),t.buffer.copyformat=!0}var s,a,l,c},isActive:function(e){return!!e.buffer.copyformat},tooltip:"Paint format"}},function(e,v,t){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var b=t(0),w=t(2),y=t(3);v.insertParagraph=function(e,t,o,i){o||(o=e.options.enter.toLowerCase());var n=e.editorDocument.createElement(o),r=e.editorDocument.createElement("br");n.appendChild(r),i&&i.cssText&&n.setAttribute("style",i.cssText),e.selection.insertNode(n,!1,!1),e.selection.setCursorBefore(r);var s=e.editorDocument.createRange();return s.setStartBefore(r),s.collapse(!0),e.selection.selectRange(s),t&&t.parentNode&&t.parentNode.removeChild(t),b.scrollIntoView(n,e.editor,e.editorDocument),e.events&&e.events.fire("synchro"),n},v.enter=function(m){m.events.on("keydown",function(e){if(e.which===w.KEY_ENTER){var t=m.events.fire("beforeEnter",e);if(void 0!==t)return t;m.selection.isCollapsed()||m.execCommand("Delete"),m.selection.focus();var o=m.selection.current(!1),i=m.editorWindow.getSelection(),n=i.rangeCount?i.getRangeAt(0):m.editorDocument.createRange();o&&o!==m.editor||(m.selection.current(),o=m.editorDocument.createTextNode(w.INVISIBLE_SPACE),i.rangeCount?n.insertNode(o):m.editor.appendChild(o),n.selectNode(o),n.collapse(!1),i.removeAllRanges(),i.addRange(n));var r=!!o&&y.Dom.up(o,y.Dom.isBlock,m.editor);if(m.options.enter.toLowerCase()===w.BR.toLowerCase()||e.shiftKey||y.Dom.closest(o,"PRE|BLOCKQUOTE",m.editor)){var s=m.editorDocument.createElement("br");return m.selection.insertNode(s,!0),b.scrollIntoView(s,m.editor,m.editorDocument),!1}if(!r&&o&&!y.Dom.prev(o,function(e){return y.Dom.isBlock(e)||!!e&&y.Dom.isImage(e,m.ownerWindow)},m.editor)){var a=o;if(y.Dom.up(a,function(e){e&&e.hasChildNodes()&&e!==m.editor&&(a=e)},m.editor),r=y.Dom.wrapInline(a,m.options.enter,m),y.Dom.isEmpty(r)){var l=m.editorDocument.createElement("br");r.appendChild(l),m.selection.setCursorBefore(l)}n=i.rangeCount?i.getRangeAt(0):m.editorDocument.createRange()}var c=!1,d=!1,u=!1;if(r){if(!y.Dom.canSplitBlock(r,m.editorWindow))return s=m.editorDocument.createElement("br"),m.selection.insertNode(s,!1),m.selection.setCursorAfter(s),!1;if((c="LI"===r.nodeName)&&y.Dom.isEmpty(r)){var h=!1,p=y.Dom.closest(r,"ol|ul",m.editor);if(y.Dom.prev(r,function(e){return e&&"LI"===e.nodeName},p))if(y.Dom.next(r,function(e){return e&&"LI"===e.nodeName},p)){(g=m.editorDocument.createRange()).setStartBefore(p),g.setEndAfter(r);var f=g.extractContents();p.parentNode&&p.parentNode.insertBefore(f,p),h=m.selection.setCursorBefore(p)}else h=m.selection.setCursorAfter(p);else h=m.selection.setCursorBefore(p);return r.parentNode&&r.parentNode.removeChild(r),v.insertParagraph(m,h),!b.$$("li",p).length&&p.parentNode&&p.parentNode.removeChild(p),!1}if(m.selection.cursorInTheEdge(!0,r))return d=m.selection.setCursorBefore(r),v.insertParagraph(m,d,c?"li":m.options.enter,r.style),m.selection.setCursorIn(r,!0),!1;var g;if(!1===m.selection.cursorInTheEdge(!1,r))(g=m.editorDocument.createRange()).setStartBefore(r),g.setEnd(n.startContainer,n.startOffset),f=g.extractContents(),r.parentNode&&r.parentNode.insertBefore(f,r),m.selection.setCursorIn(r,!0);else d=m.selection.setCursorAfter(r)}else u=!0;return(u||d)&&v.insertParagraph(m,d,c?"li":m.options.enter,r?r.style:void 0),!1}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=o(0);i.Config.prototype.showMessageErrors=!0,i.Config.prototype.showMessageErrorTime=3e3,i.Config.prototype.showMessageErrorOffsetPx=3,t.errorMessages=function(n){if(n.options.showMessageErrors){var t,r=a.dom('<div class="jodit_error_box_for_messages"></div>',n.ownerDocument),s=function(){t=5,[].slice.call(r.childNodes).forEach(function(e){a.css(r,"bottom",t+"px"),t+=e.offsetWidth+n.options.showMessageErrorOffsetPx})};n.workplace.appendChild(r),n.events.on("errorMessage",function(e,t,o){var i=a.dom('<div class="active '+(t||"")+'">'+e+"</div>",n.ownerDocument);r.appendChild(i),s(),setTimeout(function(){i.classList.remove("active"),setTimeout(function(){r.removeChild(i),s()},300)},o||n.options.showMessageErrorTime)})}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o(0),i=o(1),a=o(3);i.Config.prototype.controls.fontsize={command:"fontSize",list:["8","9","10","11","12","14","16","18","24","30","36","48","60","72","96"],template:function(e,t,o){return o},tooltip:"Font size",isActiveChild:function(t,e){var o=t.selection.current();if(o){var i=a.Dom.closest(o,function(e){return a.Dom.isBlock(e)||a.Dom.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE},t.editor)||t.editor,n=s.css(i,"font-size");return!(!n||!e.args||""+e.args[1]!=""+n)}return!1},isActive:function(t){var e=t.selection.current();if(e){var o=a.Dom.closest(e,function(e){return a.Dom.isBlock(e)||a.Dom.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE},t.editor)||t.editor;return""+s.css(o,"font-size")!=""+s.css(t.editor,"font-size")}return!1}},i.Config.prototype.controls.font={command:"fontname",exec:function(e,t,o){e.execCommand(o.command,!1,o.args?o.args[0]:void 0)},list:{"Helvetica,sans-serif":"Helvetica","Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma","'Times New Roman',Times,serif":"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},template:function(e,t,o){return'<span style="font-family: '+t+'">'+o+"</span>"},isActiveChild:function(t,e){var o=t.selection.current(),i=function(e){return e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9]+/g,",")};if(o){var n=a.Dom.closest(o,function(e){return a.Dom.isBlock(e)||a.Dom.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE},t.editor)||t.editor,r=""+s.css(n,"font-family");return!(!r||!e.args||i(""+e.args[0])!==i(r))}return!1},isActive:function(t){var e=t.selection.current();if(e){var o=a.Dom.closest(e,function(e){return a.Dom.isBlock(e)||a.Dom.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE},t.editor)||t.editor;return""+s.css(o,"font-family")!=""+s.css(t.editor,"font-family")}return!1},tooltip:"Font family"},t.font=function(i){var e=function(e,t,o){switch(e){case"fontsize":i.selection.applyCSS({fontSize:s.normalizeSize(o)});break;case"fontname":i.selection.applyCSS({fontFamily:o})}return i.setEditorValue(),!1};i.registerCommand("fontsize",e),i.registerCommand("fontname",e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o(3),a=o(2);o(1).Config.prototype.controls.paragraph={command:"formatBlock",getLabel:function(e,t,o){var i=e.selection.current();if(i&&e.options.textIcons){var n=(s.Dom.closest(i,s.Dom.isBlock,e.editor)||e.editor).nodeName.toLowerCase();t.data&&t.data.currentValue!==n&&t.list&&t.list[n]&&(o.textBox.innerHTML="<span>"+t.list[n]+"</span>",o.textBox.firstChild.classList.add("jodit_icon"),t.data.currentValue=n)}return!1},exec:function(e,t,o){e.execCommand(o.command,!1,o.args?o.args[0]:void 0)},data:{currentValue:"left"},list:{p:"Normal",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote"},isActiveChild:function(e,t){var o=e.selection.current();if(o){var i=s.Dom.closest(o,s.Dom.isBlock,e.editor);return i&&i!==e.editor&&void 0!==t.args&&i.nodeName.toLowerCase()===t.args[0]}return!1},isActive:function(e,t){var o=e.selection.current();if(o){var i=s.Dom.closest(o,s.Dom.isBlock,e.editor);return i&&i!==e.editor&&void 0!==t.list&&"p"!==i.nodeName.toLowerCase()&&void 0!==t.list[i.nodeName.toLowerCase()]}return!1},template:function(e,t,o){return"<"+t+' class="jodit_list_element"><span>'+e.i18n(o)+"</span></"+t+"></li>"},tooltip:"Insert format block"},t.formatBlock=function(r){r.registerCommand("formatblock",function(e,t,i){r.selection.focus();var n=!1;if(r.selection.eachSelection(function(e){var t=r.selection.save(),o=!!e&&s.Dom.up(e,s.Dom.isBlock,r.editor);if(o&&"LI"!==o.nodeName||!e||(o=s.Dom.wrapInline(e,r.options.enter,r)),!o)return r.selection.restore(t),!1;o.tagName.match(/TD|TH|TBODY|TABLE|THEAD/i)?r.selection.isCollapsed()?s.Dom.wrapInline(e,i,r):r.selection.applyCSS({},i):i===r.options.enter.toLowerCase()&&o.parentNode&&"LI"===o.parentNode.nodeName?s.Dom.unwrap(o):s.Dom.replace(o,i,!0,!1,r.editorDocument),n=!0,r.selection.restore(t)}),!n){var o=r.editorDocument.createElement(i);o.innerHTML=a.INVISIBLE_SPACE,r.selection.insertNode(o,!1),r.selection.setCursorIn(o)}return r.setEditorValue(),!1})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=o(0),n=o(2),r=o(6);i.Config.prototype.fullsize=!1,i.Config.prototype.globalFullsize=!0,i.Config.prototype.controls.fullsize={exec:function(e){e.toggleFullSize()},isActive:function(e){return e.isFullSize()},getLabel:function(e,t,o){var i=e.isFullSize()?"shrink":"fullsize";o.textBox.innerHTML=e.options.textIcons?"<span>"+e.i18n(i)+"</span>":r.ToolbarIcon.getIcon(i),o.textBox.firstChild.classList.add("jodit_icon")},tooltip:"Open editor in fullsize",mode:n.MODE_SOURCE+n.MODE_WYSIWYG},t.fullsize=function(o){var i=!1,e=0,t=0,n=!1,r=function(){o.events&&(i?(e=a.css(o.container,"height"),t=a.css(o.container,"width"),a.css(o.container,{height:o.ownerWindow.innerHeight,width:o.ownerWindow.innerWidth}),n=!0):n&&a.css(o.container,{height:e||"auto",width:t||"auto"}))},s=function(e){if(o.container){if(void 0===e&&(e=!o.container.classList.contains("jodit_fullsize")),o.options.fullsize=!!e,i=e,o.container.classList.toggle("jodit_fullsize",e),o.toolbar&&a.css(o.toolbar.container,"width","auto"),o.options.globalFullsize){for(var t=o.container.parentNode;t&&!(t instanceof Document);)t.classList.toggle("jodit_fullsize_box",e),t=t.parentNode;r()}o.events.fire("afterResize")}};o.options.globalFullsize&&o.events.on(o.ownerWindow,"resize",r),o.events.on("afterInit afterOpen",function(){o.toggleFullSize(o.options.fullsize)}).on("toggleFullSize",s).on("beforeDestruct beforeClose",function(){s(!1)})}},function(e,t,o){"use strict";var i=this&&this.__awaiter||function(r,s,a,l){return new(a||(a=Promise))(function(e,t){function o(e){try{n(l.next(e))}catch(e){t(e)}}function i(e){try{n(l.throw(e))}catch(e){t(e)}}function n(t){t.done?e(t.value):new a(function(e){e(t.value)}).then(o,i)}n((l=l.apply(r,s||[])).next())})},r=this&&this.__generator||function(o,i){function e(t){return function(e){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(s=2&t[0]?r.return:t[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,t[1])).done)return s;switch(r=0,s&&(t=[2&t[0],s.value]),t[0]){case 0:case 1:s=t;break;case 4:return a.label++,{value:t[1],done:!1};case 5:a.label++,r=t[1],t=[0];continue;case 7:t=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){a=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&s[3]>t[1])){a.label=t[1];break}if(6===t[0]&&s[1]>a.label){a.label=s[1],s=t;break}if(s&&s[2]>a.label){a.label=s[2],a.ops.push(t);break}s[2]&&a.ops.pop(),a.trys.pop();continue}t=i.call(o,a)}catch(e){t=[6,e],r=0}finally{n=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}var n,r,s,t,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(0);n.Config.prototype.iframe=!1,n.Config.prototype.iframeBaseUrl="",n.Config.prototype.iframeDefaultSrc="about:blank",n.Config.prototype.iframeStyle='html{margin: 0px;min-height: 100%;}body{box-sizing: border-box;font-size: 13px;    line-height: 1.6;padding:10px;background:transparent;color:#000;position:relative;z-index: 2;user-select:auto;margin:0px;overflow:auto;}table{width:100%;border: none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}td[data-jodit-selected-cell],th[data-jodit-selected-cell]{border: 1px double #1e88e5}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',n.Config.prototype.iframeCSSLinks=[],t.iframe=function(n){var e=this;n.events.on("afterSetMode",function(){n.isEditorMode()&&n.selection.focus()}).on("generateDocumentStructure.iframe",function(e,t){var o=e||t.iframe.contentWindow.document;if(o.open(),o.write('<!DOCTYPE html>\n                    <html dir="'+t.options.direction+'" class="jodit" lang="'+s.defaultLanguage(t.options.language)+'">\n                        <head>\n                            '+(t.options.iframeBaseUrl?'<base href="'+t.options.iframeBaseUrl+'"/>':"")+'\n                        </head>\n                        <body class="jodit_wysiwyg" style="outline:none" contenteditable="true"></body>\n                    </html>'),o.close(),t.options.iframeCSSLinks&&t.options.iframeCSSLinks.forEach(function(e){var t=s.dom('<link rel="stylesheet" href="'+e+'">',o);o.head.appendChild(t)}),t.options.iframeStyle){var i=o.createElement("style");i.innerHTML=t.options.iframeStyle,o.head.appendChild(i)}}).on("createEditor",function(){return i(e,void 0,void 0,function(){var o,i;return r(this,function(e){switch(e.label){case 0:return n.options.iframe?(delete n.editor,n.iframe=n.ownerDocument.createElement("iframe"),n.iframe.style.display="block",n.iframe.src="about:blank",n.iframe.className="jodit_wysiwyg_iframe",n.iframe.setAttribute("allowtransparency","true"),n.iframe.setAttribute("tabindex","0"),n.iframe.setAttribute("frameborder","0"),n.workplace.appendChild(n.iframe),[4,n.events.fire("generateDocumentStructure.iframe",null,n)]):[2];case 1:return e.sent(),o=n.iframe.contentWindow.document,n.editorDocument=o,n.editorWindow=n.iframe.contentWindow,n.editor=o.body,"auto"===n.options.height&&(o.documentElement.style.overflowY="hidden",i=s.throttle(function(){n.editor&&n.iframe&&"auto"===n.options.height&&s.css(n.iframe,"height",n.editor.offsetHeight)},n.defaultTimeout/2),n.events.on("change afterInit afterSetMode resize",i).on([n.iframe,n.editorWindow,o.documentElement],"load",i).on(o,"readystatechange DOMContentLoaded",i)),(t=n.editorWindow.Element.prototype).matches||(t.matches=Element.prototype.matches),n.events.on(n.editorDocument.documentElement,"mousedown touchend",function(){n.selection.isFocused()||(n.selection.focus(),n.selection.setCursorIn(n.editor))}).on(n.editorWindow,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",function(e){n.events&&n.events.fire&&n.events.fire(n.ownerWindow,e)}),[2,!1]}var t})})})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),s=o(3);i.Config.prototype.controls.indent={tooltip:"Increase Indent"},i.Config.prototype.controls.outdent={isDisable:function(e){var t=e.selection.current();if(t){var o=s.Dom.closest(t,s.Dom.isBlock,e.editor);if(o&&o.style&&o.style.marginLeft)return parseInt(o.style.marginLeft,10)<=0}return!0},tooltip:"Decrease Indent"},i.Config.prototype.indentMargin=10,t.indent=function(r){var e=function(n){return r.selection.eachSelection(function(e){var t=r.selection.save(),o=!!e&&s.Dom.up(e,s.Dom.isBlock,r.editor);if(!o&&e&&(o=s.Dom.wrapInline(e,r.options.enter,r)),!o)return r.selection.restore(t),!1;if(o&&o.style){var i=o.style.marginLeft?parseInt(o.style.marginLeft,10):0;i+=r.options.indentMargin*("outdent"===n?-1:1),o.style.marginLeft=0<i?i+"px":"",o.getAttribute("style")||o.removeAttribute("style")}r.selection.restore(t)}),r.setEditorValue(),!1};r.registerCommand("indent",{exec:e,hotkeys:"ctrl+]"}),r.registerCommand("outdent",{exec:e,hotkeys:"ctrl+["})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n="__jodit_imageprocessor_binded";t.imageProcessor=function(o){o.events.on("change afterInit",i.debounce(function(){o.editor&&i.$$("img",o.editor).forEach(function(t){t[n]||(t[n]=!0,t.complete||t.addEventListener("load",function e(){o.events&&o.events.fire&&o.events.fire("resize"),t.removeEventListener("load",e)}),o.events.on(t,"mousedown touchstart",function(){o.selection.select(t)}))})},o.defaultTimeout))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var A=o(5),i=o(1),k=o(0),E=o(7),$=o(3),n=o(12),S=n.Widget.TabsWidget,j=n.Widget.FileSelectorWidget,F=o(15),D=o(6);i.Config.prototype.image={openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0},t.imageProperties=function(C){var t=function(e){var t=this;if(!C.options.readonly){e&&e.stopImmediatePropagation();var o,r=this,i=new E.Dialog(C),n=k.dom('<a href="javascript:void(0)" style="float:right;" class="jodit_button">'+D.ToolbarIcon.getIcon("cancel")+"<span>"+C.i18n("Cancel")+"</span></a>",C.ownerDocument),s=k.dom('<a href="javascript:void(0)" style="float:left;" class="jodit_button">'+D.ToolbarIcon.getIcon("check")+"<span>"+C.i18n("Ok")+"</span></a>",C.ownerDocument),a={remove:k.dom('<a href="javascript:void(0)" class="jodit_button">'+D.ToolbarIcon.getIcon("bin")+" "+C.i18n("Delete")+"</a>",C.ownerDocument)},l=k.dom('<form class="jodit_properties"><div class="jodit_grid"><div class="jodit_col-lg-2-5"><div class="jodit_properties_view_box"><div style="'+(C.options.image.showPreview?"":"display:none")+'" class="jodit_properties_image_view"><img class="imageViewSrc" src="" alt=""/></div><div style="'+(C.options.image.editSize?"":"display:none")+'" class="jodit_form_group jodit_properties_image_sizes"><input type="number" class="imageWidth"/><a class="jodit_lock_helper jodit_lock_size" href="javascript:void(0)">'+D.ToolbarIcon.getIcon("lock")+'</a><input type="number" class="imageHeight"/></div></div></div><div class="jodit_col-lg-3-5 tabsbox"></div></div></form>',C.ownerDocument),c=k.dom('<div style="'+(C.options.image.editMargins?"":"display:none")+'" class="jodit_form_group"><label>'+C.i18n("Margins")+'</label><div class="jodit_grid"><input class="jodit_col-lg-1-5 margins marginTop" data-id="marginTop" type="text" placeholder="'+C.i18n("top")+'"/><a style="text-align: center;" class="jodit_lock_helper jodit_lock_margin jodit_col-lg-1-5" href="javascript:void(0)">'+D.ToolbarIcon.getIcon("lock")+'</a><input disabled="true" class="jodit_col-lg-1-5 margins marginRight" data-id="marginRight" type="text" placeholder="'+C.i18n("right")+'"/><input disabled="true" class="jodit_col-lg-1-5 margins marginBottom" data-id="marginBottom" type="text" placeholder="'+C.i18n("bottom")+'"/><input disabled="true" class="jodit_col-lg-1-5 margins marginLeft" data-id="marginLeft" type="text" placeholder="'+C.i18n("left")+'"/></div></div><div style="'+(C.options.image.editStyle?"":"display:none")+'" class="jodit_form_group"><label>'+C.i18n("Styles")+'</label><input type="text" class="style"/></div><div style="'+(C.options.image.editClass?"":"display:none")+'" class="jodit_form_group"><label for="classes">'+C.i18n("Classes")+'</label><input type="text" class="classes"/></div><div style="'+(C.options.image.editId?"":"display:none")+'" class="jodit_form_group"><label for="id">Id</label><input type="text" class="id"/></div><div style="'+(C.options.image.editBorderRadius?"":"display:none")+'" class="jodit_form_group"><label for="border_radius">Border radius</label><input type="number" class="border_radius"/></div><div style="'+(C.options.image.editAlign?"":"display:none")+'" class="jodit_form_group"><label for="align">'+C.i18n("Align")+'</label><select class="select align"><option value="">'+C.i18n("--Not Set--")+'</option><option value="left">'+C.i18n("Left")+'</option><option value="center">'+C.i18n("Center")+'</option><option value="right">'+C.i18n("Right")+"</option></optgroup></select></div>",C.ownerDocument),d=k.dom('<div style="'+(C.options.image.editSrc?"":"display:none")+'" class="jodit_form_group"><label>'+C.i18n("Src")+'</label><div class="jodit_input_group"><input type="text" class="imageSrc"/>'+(C.options.filebrowser.ajax.url||C.options.uploader.url?'<div class="jodit_input_group-buttons">'+(C.options.filebrowser.ajax.url||C.options.uploader.url?'<a class="jodit_button jodit_rechange" href="javascript:void(0)">'+D.ToolbarIcon.getIcon("image")+"</a>":"")+(C.options.image.useImageEditor&&void 0!==A.Jodit.modules.ImageEditor&&C.options.filebrowser.ajax.url?'<a class="jodit_button jodit_use_image_editor" href="javascript:void(0)">'+D.ToolbarIcon.getIcon("crop")+"</a>":"")+"</div>":"")+'</div></div><div style="'+(C.options.image.editTitle?"":"display:none")+'" class="jodit_form_group"><label for="imageTitle">'+C.i18n("Title")+'</label><input type="text" class="imageTitle"/></div><div style="'+(C.options.image.editAlt?"":"display:none")+'" class="jodit_form_group"><label for="imageAlt">'+C.i18n("Alternative")+'</label><input type="text" class="imageAlt"/></div><div style="'+(C.options.image.editLink?"":"display:none")+'" class="jodit_form_group"><label for="imageLink">'+C.i18n("Link")+'</label><input type="text" class="imageLink"/></div><div style="'+(C.options.image.editLink?"":"display:none")+'" class="jodit_form_group"><input type="checkbox" class="imageLinkOpenInNewTab"/> '+C.i18n("Open link in new tab")+"</div>",C.ownerDocument),u=r.naturalWidth/r.naturalHeight||1,h=l.querySelector(".imageWidth"),p=l.querySelector(".imageHeight"),f=function(){k.val(l,".imageSrc",r.getAttribute("src")||"");var e=l.querySelector(".imageViewSrc");e&&e.setAttribute("src",r.getAttribute("src")||"")},g=function(){f(),function(){r.hasAttribute("title")&&k.val(l,".imageTitle",r.getAttribute("title")||""),r.hasAttribute("alt")&&k.val(l,".imageAlt",r.getAttribute("alt")||"");var e=$.Dom.closest(r,"a",C.editor);e&&(k.val(l,".imageLink",e.getAttribute("href")||""),l.querySelector(".imageLinkOpenInNewTab").checked="_blank"===e.getAttribute("target"))}(),h.value=""+r.offsetWidth,p.value=""+r.offsetHeight,function(){if(C.options.image.editMargins){var i=!1;k.$$(".margins",l).forEach(function(e){var t=e.getAttribute("data-id")||"",o=r.style[t];o&&(/^[0-9]+(px)?$/.test(o)&&(o=parseInt(o,10)),e.value=""+o||"",i||"marginTop"===t||e.value===k.val(l,".marginTop")||(i=!0))}),v=!i;var e=l.querySelector(".jodit_lock_margin");e&&(e.innerHTML=D.ToolbarIcon.getIcon(v?"lock":"unlock")),k.$$(".margins:not(.marginTop)",l).forEach(function(e){return v?e.setAttribute("disabled","true"):e.removeAttribute("disabled")})}}(),k.val(l,".classes",(r.getAttribute("class")||"").replace(/jodit_focused_image[\s]*/,"")),k.val(l,".id",r.getAttribute("id")||""),k.val(l,".border_radius",""+(parseInt(r.style.borderRadius||"0",10)||"0")),r.style.cssFloat&&-1!==["left","right"].indexOf(r.style.cssFloat.toLowerCase())?k.val(l,".align",k.css(r,"float")):"block"===k.css(r,"display")&&"auto"===r.style.marginLeft&&"auto"===r.style.marginRight&&k.val(l,".align","center"),k.val(l,".style",r.getAttribute("style")||"")},m=!0,v=!0,b={},w=l.querySelector(".tabsbox");b[C.i18n("Image")]=d,b[C.i18n("Advanced")]=c,w&&w.appendChild(S(C,b)),g(),C.events.on(i,"afterClose",function(){i.destruct(),r.parentNode&&C.options.image.selectImageAfterClose&&C.selection.select(r)}),a.remove.addEventListener("click",function(){r.parentNode&&r.parentNode.removeChild(r),i.close()}),C.options.image.useImageEditor&&k.$$(".jodit_use_image_editor",d).forEach(function(e){C.events.on(e,"mousedown touchstart",function(){var i=r.getAttribute("src")||"",n=C.ownerDocument.createElement("a"),t=function(){n.host===location.host||E.Confirm(C.i18n("You can only edit your own images. Download this image on the host?"),function(e){e&&C.uploader&&C.uploader.uploadRemoteImage(""+n.href,function(e){E.Alert(C.i18n("The image has been successfully uploaded to the host!"),function(){"string"==typeof e.newfilename&&(r.setAttribute("src",e.baseurl+e.newfilename),f())})},function(e){E.Alert(C.i18n("There was an error loading %s",e.message))})})};n.href=i,C.getInstance("FileBrowser").getPathByUrl(""+n.href,function(e,t,o){C.getInstance("FileBrowser").openImageEditor(n.href,t,e,o,function(){var e=(new Date).getTime();r.setAttribute("src",i+(-1!==i.indexOf("?")?"":"?")+"&_tmp="+e),f()},function(e){E.Alert(e.message)})},function(e){E.Alert(e.message,t)})})}),k.$$(".jodit_rechange",d).forEach(function(o){o.addEventListener("mousedown",function(e){o.classList.toggle("active");var t=new F.ToolbarPopup(C,o);t.open(j(C,{upload:function(e){e.files&&e.files.length&&r.setAttribute("src",e.baseurl+e.files[0]),g(),t.close()},filebrowser:function(e){e&&e.files&&Array.isArray(e.files)&&e.files.length&&(r.setAttribute("src",e.files[0]),t.close(),g())}},r,t.close),!0),e.stopPropagation()})});var y=l.querySelector(".jodit_lock_helper.jodit_lock_size"),x=l.querySelector(".jodit_lock_helper.jodit_lock_margin");y&&y.addEventListener("click",function(){m=!m,this.innerHTML=D.ToolbarIcon.getIcon(m?"lock":"unlock"),C.events.fire(h,"change")}),x&&x.addEventListener("click",function(){v=!v,this.innerHTML=D.ToolbarIcon.getIcon(v?"lock":"unlock"),v?k.$$(".margins",l).forEach(function(e){e.matches(".marginTop")||e.setAttribute("disabled","true")}):k.$$(".margins",l).forEach(function(e){e.matches(".marginTop")||e.removeAttribute("disabled")})});var _=function(e){var t=parseInt(h.value,10),o=parseInt(p.value,10);e.target===h?p.value=""+Math.round(t/u):h.value=""+Math.round(o*u)};return C.events.on([h,p],"change keydown mousedown paste",function(e){m&&(C.defaultTimeout?(clearTimeout(o),o=window.setTimeout(_.bind(t,e),C.defaultTimeout)):_(e))}),i.setTitle([C.i18n("Image properties"),a.remove]),i.setContent(l),n.addEventListener("click",function(){i.close()}),s.addEventListener("click",function(){if(C.options.image.editStyle&&(k.val(l,".style")?r.setAttribute("style",k.val(l,".style")):r.removeAttribute("style")),!k.val(l,".imageSrc"))return r.parentNode&&r.parentNode.removeChild(r),void i.close();r.setAttribute("src",k.val(l,".imageSrc")),r.style.borderRadius="0"!==k.val(l,".border_radius")&&/^[0-9]+$/.test(k.val(l,".border_radius"))?k.val(l,".border_radius")+"px":"",k.val(l,".imageTitle")?r.setAttribute("title",k.val(l,".imageTitle")):r.removeAttribute("title"),k.val(l,".imageAlt")?r.setAttribute("alt",k.val(l,".imageAlt")):r.removeAttribute("alt");var e=$.Dom.closest(r,"a",C.editor);k.val(l,".imageLink")?(e||(e=$.Dom.wrap(r,"a",C)),e.setAttribute("href",k.val(l,".imageLink")),l.querySelector(".imageLinkOpenInNewTab").checked?e.setAttribute("target","_blank"):e.removeAttribute("target")):e&&e.parentNode&&e.parentNode.replaceChild(r,e);var o=function(e){return e=k.trim(e),/^[0-9]+$/.test(e)?e+"px":e};h.value===""+r.offsetWidth&&p.value===""+r.offsetHeight||k.css(r,{width:k.trim(h.value)?o(h.value):null,height:k.trim(p.value)?o(p.value):null}),C.options.image.editMargins&&(v?k.css(r,"margin",o(k.val(l,".marginTop"))):k.$$(".margins",l).forEach(function(e){var t=e.getAttribute("data-id")||"";k.css(r,t,o(e.value))})),C.options.image.editClass&&(k.val(l,".classes")?r.setAttribute("class",k.val(l,".classes")):r.removeAttribute("class")),C.options.image.editId&&(k.val(l,".id")?r.setAttribute("id",k.val(l,".id")):r.removeAttribute("id"));var t=function(){"block"===k.css(r,"display")&&k.css(r,"display",""),"auto"===r.style.marginLeft&&"auto"===r.style.marginRight&&(r.style.marginLeft="",r.style.marginRight="")};C.options.image.editAlign&&(k.val(l,".align")?-1!==["right","left"].indexOf(k.val(l,".align").toLowerCase())?(k.css(r,"float",k.val(l,".align")),t()):(k.css(r,"float",""),k.css(r,{display:"block","margin-left":"auto","margin-right":"auto"})):(k.css(r,"float")&&-1!==["right","left"].indexOf((""+k.css(r,"float")).toLowerCase())&&k.css(r,"float",""),t())),r.getAttribute("style")||r.removeAttribute("style"),C.setEditorValue(),i.close()}),i.setFooter([s,n]),i.setSize(500),i.open(),e&&e.preventDefault(),!1}};C.events.on("afterInit",function(){C.options.image.openOnDblClick?C.events.on(C.editor,"dblclick",t,"img"):C.events.on(C.editor,"dblclick",function(e){e.stopImmediatePropagation(),C.selection.select(this)},"img")}).on("openImageProperties",function(e){t.call(e)})}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(10),c=o(0),d=o(25),s=o(1),a=o(12),u=a.Widget.ColorPickerWidget,h=a.Widget.TabsWidget,l=o(3),p=o(8),f=o(15);s.Config.prototype.toolbarInline=!0,s.Config.prototype.toolbarInlineDisableFor=[],s.Config.prototype.popup={a:[{name:"eye",tooltip:"Open link",exec:function(e,t){var o=t.getAttribute("href");t&&o&&e.ownerWindow.open(o)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"],img:[{name:"bin",tooltip:"Delete",exec:function(e,t){t.parentNode&&(t.parentNode.removeChild(t),e.events.fire("hidePopup"))}},{name:"pencil",exec:function(e,t){"img"===t.tagName.toLowerCase()&&e.events.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom"],tooltip:"Vertical align",exec:function(e,t,o){if("img"===t.tagName.toLowerCase()){var i=o.args&&"string"==typeof o.args[1]?o.args[1].toLowerCase():"";c.css(t,"vertical-align",i),e.events.fire("recalcPositionPopup")}}},{name:"left",list:["Left","Right","Center","Normal"],exec:function(e,t,o){if("img"===t.tagName.toLowerCase()){var i=function(){"block"===c.css(t,"display")&&c.css(t,"display",""),"auto"===t.style.marginLeft&&"auto"===t.style.marginRight&&(t.style.marginLeft="",t.style.marginRight="")},n=o.args&&"string"==typeof o.args[1]?o.args[1].toLowerCase():"";"normal"!==n?-1!==["right","left"].indexOf(n)?(c.css(t,"float",n),i()):(c.css(t,"float",""),c.css(t,{display:"block","margin-left":"auto","margin-right":"auto"})):(c.css(t,"float")&&-1!==["right","left"].indexOf(c.css(t,"float").toLowerCase())&&c.css(t,"float",""),i()),e.events.fire("recalcPositionPopup")}},tooltip:"Horizontal align"}],table:[{name:"brush",popup:function(e,t){var o,i,n,r,s,a,l=d.Table.getAllSelectedCells(t);return!!l.length&&(r=c.css(l[0],"color"),a=c.css(l[0],"background-color"),s=c.css(l[0],"border-color"),o=u(e,function(t){l.forEach(function(e){c.css(e,"background-color",t)}),e.setEditorValue()},a),i=u(e,function(t){l.forEach(function(e){c.css(e,"color",t)}),e.setEditorValue()},r),n=u(e,function(t){l.forEach(function(e){c.css(e,"border-color",t)}),e.setEditorValue()},s),h(e,{Background:o,Text:i,Border:n}))},tooltip:"Background"},{name:"valign",list:["Top","Middle","Bottom"],exec:function(e,t,o){var i=o.args&&"string"==typeof o.args[1]?o.args[1].toLowerCase():"";d.Table.getAllSelectedCells(t).forEach(function(e){c.css(e,"vertical-align",i)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:function(e,t,o){e.execCommand(o.args&&"string"==typeof o.args[0]?o.args[0].toLowerCase():"",!1,t)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:function(e,t,o){e.execCommand(o.args&&"string"==typeof o.args[0]?o.args[0].toLowerCase():"",!1,t)},tooltip:"Add row"},{name:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:function(e,t,o){e.execCommand(o.args&&"string"==typeof o.args[0]?o.args[0].toLowerCase():"",!1,t)},tooltip:"Delete"}]},t.inlinePopup=function(t){function e(e){var a=t.call(this,e)||this;return a.isShown=!1,a.calcWindSizes=function(){var e=a.jodit.ownerWindow,t=a.jodit.ownerDocument.documentElement,o=a.jodit.ownerDocument.body,i=e.pageYOffset||t.scrollTop||o.scrollTop,n=t.clientTop||o.clientTop||0,r=e.pageXOffset||t.scrollLeft||o.scrollLeft,s=t.clientLeft||o.clientLeft||0;return{left:s,top:n,width:t.clientWidth+r-s,height:t.clientHeight+i-n}},a._hiddenClass="jodit_toolbar_popup-inline-target-hidden",a.calcPosition=function(e,t){a.popup.target.classList.remove(a._hiddenClass);var o=e.left+e.width/2,i=c.offset(a.jodit.workplace,a.jodit,a.jodit.ownerDocument,!0),n=e.top+e.height+10;a.target.style.left=o+"px",a.target.style.top=n+"px",a.jodit.isFullSize()&&(a.target.style.zIndex=""+c.css(a.jodit.container,"zIndex"));var r=a.container.offsetWidth/2,s=-r;a.popup.container.classList.remove("jodit_toolbar_popup-inline-top"),n+a.container.offsetHeight>t.height&&(n=e.top-a.container.offsetHeight-10,a.target.style.top=n+"px",a.popup.container.classList.add("jodit_toolbar_popup-inline-top")),o-r<0&&(s=-(e.width/2+e.left)),o+r>t.width&&(s=-(a.container.offsetWidth-(t.width-o))),a.container.style.marginLeft=s+"px",(50<i.top-n||50<n-(i.top+i.height))&&a.popup.target.classList.add(a._hiddenClass)},a.reCalcPosition=function(){a.__getRect&&a.calcPosition(a.__getRect(),a.calcWindSizes())},a.showPopup=function(e,t,o){if(!a.jodit.options.toolbarInline||!a.jodit.options.popup[t.toLowerCase()])return!1;if(a.isExcludedTarget(t))return!0;a.isShown=!0,a.isTargetAction=!0;var i=a.calcWindSizes();return a.target.parentNode||a.jodit.ownerDocument.body.appendChild(a.target),a.toolbar.build(a.jodit.options.popup[t.toLowerCase()],a.container,o),a.popup.open(a.container,!1,!0),a.__getRect=e,a.calcPosition(e(),i),!0},a.hidePopup=function(e){e&&(e instanceof a.jodit.editorWindow.Node||e instanceof f.ToolbarPopup)&&l.Dom.isOrContains(a.target,e instanceof f.ToolbarPopup?e.target:e)||(a.isTargetAction=!1,a.isShown=!1,a.popup.close(),a.target.parentNode&&a.target.parentNode.removeChild(a.target))},a.isSelectionStarted=!1,a.onSelectionEnd=c.debounce(function(){a.jodit.isEditorMode()&&(a.isSelectionStarted&&(a.isTargetAction||a.onChangeSelection()),a.isSelectionStarted=!1,a.isTargetAction=!1)},a.jodit.defaultTimeout),a.isTargetAction=!1,a.isSelectionPopup=!1,a.onSelectionStart=function(e){if(a.jodit.isEditorMode()&&(a.isTargetAction=!1,a.isSelectionPopup=!1,!a.isSelectionStarted)){var t=Object.keys(a.jodit.options.popup).join("|"),o="IMG"===e.target.nodeName?e.target:l.Dom.closest(e.target,t,a.jodit.editor);o&&a.showPopup(function(){return c.offset(o,a.jodit,a.jodit.editorDocument)},o.nodeName,o)||(a.isSelectionStarted=!0)}},a.onChangeSelection=function(){if(a.jodit.options.toolbarInline&&a.jodit.isEditorMode()&&!a.hideIfCollapsed()&&void 0!==a.jodit.options.popup.selection){var e=a.jodit.editorWindow.getSelection();if(e.rangeCount){a.isSelectionPopup=!0;var t=e.getRangeAt(0);a.showPopup(function(){return c.offset(t,a.jodit,a.jodit.editorDocument)},"selection")}}},a.checkIsTargetEvent=function(){a.isTargetAction?a.isTargetAction=!1:a.hidePopup()},a.toolbar=new p.ToolbarCollection(e),a.target=e.ownerDocument.createElement("div"),a.container=e.ownerDocument.createElement("div"),a.target.classList.add("jodit_toolbar_popup-inline-target"),a.popup=new f.ToolbarPopup(e,a.target,void 0,"jodit_toolbar_popup-inline"),a}return n(e,t),e.prototype.isExcludedTarget=function(e){return-1!==c.splitArray(this.jodit.options.toolbarInlineDisableFor).map(function(e){return e.toLowerCase()}).indexOf(e.toLowerCase())},e.prototype.hideIfCollapsed=function(){return!!this.jodit.selection.isCollapsed()&&(this.hidePopup(),!0)},e.prototype.afterInit=function(t){var i=this;t.events.on(this.target,"mousedown keydown touchstart",function(e){e.stopPropagation()}).on("beforeOpenPopup hidePopup",this.hidePopup).on("recalcPositionPopup",this.reCalcPosition).on("getDiffButtons.mobile",function(e){if(i.toolbar===e)return c.splitArray(t.options.buttons).filter(function(e){return"|"!==e&&"\n"!==e}).filter(function(e){return i.toolbar.getButtonsList().indexOf(e)<0})}).on("selectionchange",this.onChangeSelection).on("afterCommand afterExec",function(){i.isShown&&i.isSelectionPopup&&i.onChangeSelection()}).on("showPopup",function(e,t){var o=("string"==typeof e?e:e.nodeName).toLowerCase();i.isSelectionPopup=!1,i.showPopup(t,o,"string"==typeof e?void 0:e)}).on("mousedown keydown touchstart",this.onSelectionStart).on([t.ownerWindow,t.editor],"scroll resize",this.reCalcPosition).on([t.ownerWindow],"mouseup keyup touchend",this.onSelectionEnd).on([t.ownerWindow],"mousedown keydown touchstart",this.checkIsTargetEvent)},e.prototype.beforeDestruct=function(e){this.popup.destruct(),this.toolbar.destruct(),this.target.parentNode&&this.target.parentNode.removeChild(this.target),e.events.off([e.ownerWindow],"scroll resize",this.reCalcPosition).off([e.ownerWindow],"mouseup keyup touchend",this.onSelectionEnd).off([e.ownerWindow],"mousedown keydown touchstart",this.checkIsTargetEvent),t.prototype.destruct.call(this)},e}(r.Plugin)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o(0),a=o(3),i=o(1),l=o(6);i.Config.prototype.controls.align={name:"left",tooltip:"Align",getLabel:function(e,t,o){var i=e.selection.current();if(i){var n=a.Dom.closest(i,a.Dom.isBlock,e.editor)||e.editor,r=""+s.css(n,"text-align");t.defaultValue&&-1!==t.defaultValue.indexOf(r)&&(r="left"),t.data&&t.data.currentValue!==r&&t.list&&-1!==t.list.indexOf(r)&&(o.textBox.innerHTML=e.options.textIcons?"<span>"+r+"</span>":l.ToolbarIcon.getIcon(r,""),o.textBox.firstChild.classList.add("jodit_icon"),t.data.currentValue=r)}return!1},isActive:function(e,t){var o=e.selection.current();if(o&&t.defaultValue){var i=a.Dom.closest(o,a.Dom.isBlock,e.editor)||e.editor;return-1===t.defaultValue.indexOf(""+s.css(i,"text-align"))}return!1},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},i.Config.prototype.controls.center={command:"justifyCenter",tags:["center"],css:{"text-align":"center"},tooltip:"Align Center"},i.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},i.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},i.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},t.justify=function(i){var e=function(t){var o=function(e){if(e instanceof i.editorWindow.HTMLElement)switch(t.toLowerCase()){case"justifyfull":e.style.textAlign="justify";break;case"justifyright":e.style.textAlign="right";break;case"justifyleft":e.style.textAlign="left";break;case"justifycenter":e.style.textAlign="center"}};return i.selection.focus(),i.selection.eachSelection(function(e){if(!e&&i.editor.querySelector(".jodit_selected_cell"))return s.$$(".jodit_selected_cell",i.editor).forEach(o),!1;if(e instanceof i.editorWindow.Node){var t=!!e&&a.Dom.up(e,a.Dom.isBlock,i.editor);!t&&e&&(t=a.Dom.wrapInline(e,i.options.enter,i)),o(t)}}),!1};i.registerCommand("justifyfull",e),i.registerCommand("justifyright",e),i.registerCommand("justifyleft",e),i.registerCommand("justifycenter",e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),c=o(0),d=o(3);i.Config.prototype.link={followOnDblClick:!0,processVideoLink:!0,processPastedLink:!0,openLinkDialogAfterPost:!0,removeLinkAfterFormat:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0},i.Config.prototype.controls.unlink={exec:function(e,t){var o=d.Dom.closest(t,"A",e.editor);o&&d.Dom.unwrap(o),e.events.fire("hidePopup")}},i.Config.prototype.controls.link={isActive:function(e){var t=e.selection.current();return t&&!1!==d.Dom.closest(t,"a",e.editor)},popup:function(o,i,e,n){var t=o.editorWindow.getSelection(),r=c.dom('<form class="jodit_form"><input required type="text" name="url" placeholder="http://" type="text"/><input name="text" placeholder="'+o.i18n("Text")+'" type="text"/>'+(o.options.link.openInNewTabCheckbox?'<label><input name="target" type="checkbox"/> '+o.i18n("Open in new tab")+"</label>":"")+(o.options.link.noFollowCheckbox?'<label><input name="nofollow" type="checkbox"/> '+o.i18n("No follow")+"</label>":"")+'<div style="text-align: right"><button class="jodit_unlink_button" type="button">'+o.i18n("Unlink")+'</button> &nbsp;&nbsp;<button class="jodit_link_insert_button" type="submit"></button></div><form/>',o.ownerDocument);i=!(!i||!d.Dom.closest(i,"A",o.editor))&&d.Dom.closest(i,"A",o.editor);var s=r.querySelector(".jodit_link_insert_button"),a=r.querySelector(".jodit_unlink_button");i?(c.val(r,"input[name=url]",i.getAttribute("href")||""),c.val(r,"input[name=text]",i.innerText),o.options.link.openInNewTabCheckbox&&(r.querySelector("input[name=target]").checked="_blank"===i.getAttribute("target")),o.options.link.noFollowCheckbox&&(r.querySelector("input[name=nofollow]").checked="nofollow"===i.getAttribute("rel")),s&&(s.innerHTML=o.i18n("Update"))):(a&&(a.style.display="none"),c.val(r,"input[name=text]",""+t),s&&(s.innerHTML=o.i18n("Insert")));var l=o.selection.save();return a&&a.addEventListener("mousedown",function(e){i&&d.Dom.unwrap(i),o.selection.restore(l),n(),e.preventDefault()}),r.addEventListener("submit",function(e){e.preventDefault(),o.selection.restore(l);var t=i||o.editorDocument.createElement("a");return c.val(r,"input[name=url]")?(t.setAttribute("href",c.val(r,"input[name=url]")),t.innerText=c.val(r,"input[name=text]"),o.options.link.openInNewTabCheckbox&&(r.querySelector("input[name=target]").checked?t.setAttribute("target","_blank"):t.removeAttribute("target")),o.options.link.noFollowCheckbox&&(r.querySelector("input[name=nofollow]").checked?t.setAttribute("rel","nofollow"):t.removeAttribute("rel")),i||o.selection.insertNode(t),n()):(r.querySelector("input[name=url]").focus(),r.querySelector("input[name=url]").classList.add("jodit_error")),!1}),r},tags:["a"],tooltip:"Insert link"},t.link=function(n){n.options.link.followOnDblClick&&n.events.on("afterInit",function(){n.events.on(n.editor,"dblclick",function(e){var t=this.getAttribute("href");t&&(location.href=t,e.preventDefault())},"a")}),n.options.link.processPastedLink&&n.events.on("processPaste",function(e,t){if(c.isURL(t)){var o=c.convertMediaURLToVideoEmbed(t);if(o!==t)return c.dom(o,n.editorDocument);var i=n.editorDocument.createElement("a");return i.setAttribute("href",t),i.innerText=t,n.options.link.openLinkDialogAfterPost&&setTimeout(function(){},100),i}}),n.options.link.removeLinkAfterFormat&&n.events.on("afterCommand",function(e){var t,o,i=n.selection;"removeFormat"===e&&((o=i.current())&&"A"!==o.nodeName&&(o=d.Dom.closest(o,"A",n.editor)),o&&"A"===o.nodeName&&(o.innerHTML===o.innerText?t=n.editorDocument.createTextNode(o.innerHTML):(t=n.editorDocument.createElement("span")).innerHTML=o.innerHTML,o.parentNode&&(o.parentNode.replaceChild(t,o),n.selection.setCursorIn(t,!0))))})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(2),s=o(0),a=o(8);i.Config.prototype.mobileTapTimeout=300,i.Config.prototype.toolbarAdaptive=!0,i.Config.prototype.controls.dots={mode:n.MODE_SOURCE+n.MODE_WYSIWYG,popup:function(t,e,o,i,n){var r=o.data;return void 0===r&&((r={container:t.ownerDocument.createElement("div"),toolbar:new a.ToolbarCollection(t),rebuild:function(){var e=t.events.fire("getDiffButtons.mobile",n.parentToolbar);e&&r&&r.toolbar.build(s.splitArray(e),r.container)}}).container.style.width="100px",o.data=r),r.rebuild(),r.container}},t.mobile=function(o){var t,i=0,n=s.splitArray(o.options.buttons);o.events.on("touchend",function(e){e.changedTouches.length&&(t=(new Date).getTime())-i>o.options.mobileTapTimeout&&(i=t,o.selection.insertCursorAtPoint(e.changedTouches[0].clientX,e.changedTouches[0].clientY))}).on("getDiffButtons.mobile",function(e){if(e===o.toolbar)return s.splitArray(o.options.buttons).filter(function(e){return n.indexOf(e)<0})}),o.options.toolbarAdaptive&&o.events.on("resize afterInit",function(){if(o.options.toolbar){var e,t=o.container.offsetWidth;""+(e=s.splitArray(o.options.sizeLG>t?o.options.sizeMD>t?o.options.sizeSM>t?o.options.buttonsXS:o.options.buttonsSM:o.options.buttonsMD:o.options.buttons))!=""+n&&(n=e,o.toolbar.build(n.concat(o.options.extraButtons),o.container))}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(3),i=o(1);i.Config.prototype.controls.ul={command:"insertUnorderedList",controlName:"ul",tags:["ul"],tooltip:"Insert Unordered List"},i.Config.prototype.controls.ol={command:"insertOrderedList",controlName:"ol",tags:["ol"],tooltip:"Insert Ordered List"},t.orderedlist=function(i){i.events.on("afterCommand",function(e){if(/insert(un)?orderedlist/i.test(e)){var t=n.Dom.up(i.selection.current(),function(e){return e&&/^UL|OL$/i.test(e.nodeName)},i.editor);if(t&&t.parentNode&&"P"===t.parentNode.nodeName){var o=i.selection.save();n.Dom.unwrap(t.parentNode),[].slice.call(t.childNodes).forEach(function(e){e.lastChild&&e.lastChild.nodeType===Node.ELEMENT_NODE&&"BR"===e.lastChild.nodeName&&e.removeChild(e.lastChild)}),i.selection.restore(o)}i.setEditorValue()}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=o(7),m=o(0),i=o(1),v=o(2);i.Config.prototype.askBeforePasteHTML=!0,i.Config.prototype.askBeforePasteFromWord=!0,i.Config.prototype.defaultActionOnPaste=v.INSERT_AS_HTML,i.Config.prototype.controls.cut={command:"cut",isDisable:function(e){var t=e.editorWindow.getSelection();return!t||t.isCollapsed},tooltip:"Cut selection"},t.paste=function(d){var l="",c=function(e){var t=document.createElement("div");return t.innerHTML=e,t.innerText},u=function(e,t,o,i,n){if(void 0===i&&(i="Clean"),void 0===n&&(n="Insert only Text"),!d.events||!1!==d.events.fire("beforeOpenPasteDialog",e,t,o,i,n)){var r=g.Confirm('<div style="word-break: normal; white-space: normal">'+e+"</div>",t,o);r.container.setAttribute("data-editor_id",d.id);var s=m.dom('<a href="javascript:void(0)" style="float:left;" class="jodit_button"><span>'+d.i18n("Keep")+"</span></a>",r.document),a=m.dom('<a href="javascript:void(0)" style="float:left;" class="jodit_button"><span>'+d.i18n(i)+"</span></a>",r.document),l=m.dom('<a href="javascript:void(0)" style="float:left;" class="jodit_button"><span>'+d.i18n(n)+"</span></a>",r.document),c=m.dom('<a href="javascript:void(0)" style="float:right;" class="jodit_button"><span>'+d.i18n("Cancel")+"</span></a>",r.document);return d.events.on(s,"click",function(){r.close(),o&&o(!0)}),d.events.on(a,"click",function(){r.close(),o&&o(!1)}),d.events.on(l,"click",function(){r.close(),o&&o(0)}),d.events.on(c,"click",function(){r.close()}),r.setFooter([s,a,n?l:"",c]),d.events&&d.events.fire("afterOpenPasteDialog",r,e,t,o,i,n),r}},r=function(e,t){switch(t){case v.INSERT_CLEAR_HTML:e=m.cleanFromWord(e);break;case v.INSERT_ONLY_TEXT:e=c(e);break;case v.INSERT_AS_TEXT:e=m.htmlspecialchars(e)}d.selection.insertHTML(e)},h=function(o,i){if(m.isHTML(o)&&l!==p(o))return d.events.stopPropagation("beforePaste"),o=p(o),u(d.i18n("Your code is similar to HTML. Keep as HTML?"),d.i18n("Paste as HTML"),function(e){var t=v.INSERT_AS_HTML;!1===e&&(t=v.INSERT_AS_TEXT),0===e&&(t=v.INSERT_ONLY_TEXT),"drop"===i.type&&d.selection.insertCursorAtPoint(i.clientX,i.clientY),r(o,t),d.setEditorValue()},"Insert as Text"),!1},p=function(e){var t=e.search(/<!--StartFragment-->/i);-1!==t&&(e=e.substr(t+20));var o=e.search(/<!--EndFragment-->/i);return-1!==o&&(e=e.substr(0,o)),e},f=function(e){return e.clipboardData?e.clipboardData:e.dataTransfer};d.events.on("copy cut",function(e){var t=d.selection.getHTML(),o=f(e)||f(d.editorWindow)||f(e.originalEvent);o.setData(v.TEXT_PLAIN,c(t)),o.setData(v.TEXT_HTML,t),l=t,"cut"===e.type&&(d.selection.remove(),d.selection.focus()),e.preventDefault(),d.events.fire("afterCopy",t)}).on("paste",function(e){if(!1===d.events.fire("beforePaste",e))return e.preventDefault(),!1;if(e&&f(e)){var t=void 0,o=f(e).types,i="",n="";if(Array.isArray(o)||"domstringlist"===m.type(o))for(t=0;o.length>t;t+=1)i+=o[t]+";";else i=o;/text\/html/i.test(i)?n=f(e).getData("text/html"):/text\/rtf/i.test(i)&&m.browser("safari")?n=f(e).getData("text/rtf"):/text\/plain/i.test(i)&&!m.browser("mozilla")?n=f(e).getData(v.TEXT_PLAIN):/text/i.test(i)&&m.isIE&&(n=f(e).getData(v.TEXT_PLAIN)),(n instanceof d.editorWindow.Node||""!==m.trim(n))&&(n=p(n),l!==n&&(n=d.events.fire("processPaste",e,n)),("string"==typeof n||n instanceof d.editorWindow.Node)&&("drop"===e.type&&d.selection.insertCursorAtPoint(e.clientX,e.clientY),r(n,d.options.defaultActionOnPaste)),e.preventDefault(),e.stopPropagation())}return!1!==d.events.fire("afterPaste",e)&&void 0}),d.options.askBeforePasteHTML&&d.events.on("beforePaste",function(e){if(e&&f(e).getData(v.TEXT_PLAIN)){var t=f(e).getData(v.TEXT_PLAIN);return h(t,e)}}),d.options.askBeforePasteFromWord&&d.events.on("beforePaste",function(e){if(e&&f(e).getData&&f(e).getData(v.TEXT_HTML)){var t=function(t){if(m.isHTML(t)&&l!==p(t))return m.isHTMLFromWord(t)?u(d.i18n("The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?"),d.i18n("Word Paste Detected"),function(e){!0===e&&(t=m.applyStyles(t),d.options.beautifyHTML&&d.ownerWindow.html_beautify&&(t=d.ownerWindow.html_beautify(t))),!1===e&&(t=m.cleanFromWord(t)),0===e&&(t=c(m.cleanFromWord(t))),d.selection.insertHTML(t),d.setEditorValue()}):h(t,e),!1};if(f(e).types&&-1!==[].slice.call(f(e).types).indexOf("text/html")){var o=f(e).getData(v.TEXT_HTML);return t(o)}if("drop"!==e.type){var i=m.dom('<div tabindex="-1" style="left: -9999px; top: 0; width: 0; height: 100%; line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;" contenteditable="true"></div>',d.ownerDocument);d.container.appendChild(i);var n=d.selection.save();i.focus();var r=0,s=function(){i.parentNode&&i.parentNode.removeChild(i),d.selection.restore(n)},a=function(){if(r+=1,i.childNodes&&0<i.childNodes.length){var e=i.innerHTML;s(),!1!==t(e)&&d.selection.insertHTML(e)}else r<5?setTimeout(function(){a()},20):s()};a()}}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),s=o(2),a=o(0);i.Config.prototype.showPlaceholder=!0,i.Config.prototype.useInputsPlaceholder=!0,i.Config.prototype.placeholder="Type something",t.placeholder=function(n){if(n.options.showPlaceholder){this.destruct=function(){r.parentNode&&r.parentNode.removeChild(r)};var t=function(){r.parentNode&&(r.style.display="none")},o=a.debounce(function(){if(null!==r.parentNode&&n.editor){if(n.getRealMode()!==s.MODE_WYSIWYG)return t();var e=n.getEditorValue();e&&!/^<(p|div|h[1-6])><\/\1>$/.test(e)?t():function(){if(r.parentNode&&!n.options.readonly){var e=0,t=0,o=n.editorWindow.getComputedStyle(n.editor);if(n.editor.firstChild&&n.editor.firstChild.nodeType===Node.ELEMENT_NODE){var i=n.editorWindow.getComputedStyle(n.editor.firstChild);e=parseInt(i.getPropertyValue("margin-top"),10),t=parseInt(i.getPropertyValue("margin-left"),10),r.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",r.style.lineHeight=i.getPropertyValue("line-height")}else r.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",r.style.lineHeight=o.getPropertyValue("line-height");a.css(r,{display:"block",marginTop:Math.max(parseInt(o.getPropertyValue("margin-top"),10),e),marginLeft:Math.max(parseInt(o.getPropertyValue("margin-left"),10),t)})}}()}},n.defaultTimeout/10),r=a.dom('<span style="display: none;" class="jodit_placeholder">'+n.i18n(n.options.placeholder)+"</span>",n.ownerDocument);"rtl"===n.options.direction&&(r.style.right="0px",r.style.direction="rtl"),n.options.useInputsPlaceholder&&n.element.hasAttribute("placeholder")&&(r.innerHTML=n.element.getAttribute("placeholder")||""),n.events.on("readonly",function(e){e?t():o()}).on("afterInit",function(){n.workplace.appendChild(r),o(),n.events.fire("placeholder",r.innerHTML),n.events.on("change keyup mouseup keydown mousedown afterSetMode",o).on(window,"load",o)})}}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(1),a=o(4);s.Config.prototype.controls.redo={mode:r.MODE_SPLIT,isDisable:function(e){return!e.observer.stack.canRedo()},tooltip:"Redo"},s.Config.prototype.controls.undo={mode:r.MODE_SPLIT,isDisable:function(e){return!e.observer.stack.canUndo()},tooltip:"Undo"},t.redoundo=function(i){function e(t){var o=i.call(this,t)||this,e=function(e){return t.getRealMode()===r.MODE_WYSIWYG&&o.jodit.observer[e](),!1};return t.registerCommand("redo",{exec:e,hotkeys:"ctrl+y,ctrl+shift+z"}),t.registerCommand("undo",{exec:e,hotkeys:"ctrl+z"}),o}return n(e,i),e}(a.Component)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),C=o(2),A=o(0);i.Config.prototype.useIframeResizer=!0,i.Config.prototype.useTableResizer=!0,i.Config.prototype.useImageResizer=!0,i.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,min_width:10,min_height:10},t.resizer=function(l){var o,c,i,n,r,s,a,d,u,h,p,f=!1,g=!1,m=!1,v=0,b=A.dom('<div data-editor_id="'+l.id+'" style="display:none" class="jodit_resizer"><i class="jodit_resizer-topleft"></i><i class="jodit_resizer-topright"></i><i class="jodit_resizer-bottomright"></i><i class="jodit_resizer-bottomleft"></i><span>100x100</span></div>',l.ownerDocument),w=b.getElementsByTagName("span")[0],y=function(){m=g=!1,c=null,b.style.display="none"},x=function(){w.style.opacity="0"},_=function(){if(m&&c&&b){var e=A.offset(b.parentNode||l.ownerDocument.documentElement,l,l.ownerDocument,!0),t=A.offset(c,l,l.editorDocument),o=parseInt(b.style.left||"0",10),i=parseInt(b.style.top||"0",10),n=b.offsetWidth,r=b.offsetHeight,s=t.top-1-e.top,a=t.left-1-e.left;i===s&&o===a&&n===c.offsetWidth&&r===c.offsetHeight||(b.style.top=s+"px",b.style.left=a+"px",b.style.width=c.offsetWidth+"px",b.style.height=c.offsetHeight+"px",l.events&&(l.events.fire(c,"changesize"),isNaN(o)||l.events.fire("resize")))}},t=function(t){var e,o;if("IFRAME"===t.tagName)if(t.parentNode&&t.parentNode.getAttribute("data-jodit_iframe_wrapper"))t=t.parentNode;else{(e=A.dom('<jodit data-jodit-temp="1" contenteditable="false" draggable="true" data-jodit_iframe_wrapper="1"></jodit>',l.editorDocument)).style.display="inline-block"===t.style.display?"inline-block":"block",e.style.width=t.offsetWidth+"px",e.style.height=t.offsetHeight+"px",t.parentNode&&t.parentNode.insertBefore(e,t),e.appendChild(t);var i=t;l.events.on(e,"changesize",function(){i.setAttribute("width",e.offsetWidth+"px"),i.setAttribute("height",e.offsetHeight+"px")}),t=e}l.events.on(t,"dragstart",y).on(t,"mousedown",function(e){A.isIE()&&"IMG"===t.nodeName&&e.preventDefault()}).on(t,"mousedown touchstart",function(){f||(f=!0,c=t,l.options.readonly||(b.parentNode||l.workplace.appendChild(b),m=!0,b.style.display="block",l.isFullSize()&&(b.style.zIndex=""+A.css(l.container,"zIndex")),_()),"IMG"!==c.tagName||c.complete||c.addEventListener("load",function e(){_(),c&&c.removeEventListener("load",e)}),clearTimeout(o)),o=window.setTimeout(function(){f=!1},400)})};A.$$("i",b).forEach(function(t){l.events.on(t,"mousedown touchstart",function(e){if(!c||!c.parentNode)return y(),!1;o=t,e.preventDefault(),e.stopImmediatePropagation(),r=c.offsetWidth,s=c.offsetHeight,a=r/s,g=!0,i=e.clientX,n=e.clientY,l.events.fire("hidePopup"),l.lock("resizer")})}),l.events.on("readonly",function(e){e&&y()}).on("beforeDestruct",function(){b.parentNode&&b.parentNode.removeChild(b)}).on("afterInit",function(){l.events.on(l.editor,"keydown",function(e){m&&e.which===C.KEY_DELETE&&c&&"table"!==c.tagName.toLowerCase()&&("JODIT"!==c.tagName?l.selection.select(c):(c.parentNode&&c.parentNode.removeChild(c),y(),e.preventDefault()))}).on(l.ownerWindow,"mousemove touchmove",function(e){if(g){if(h=e.clientX-i,p=e.clientY-n,!c)return;var t=o.className;"IMG"===c.tagName?(h?(u=r+(t.match(/left/)?-1:1)*h,d=Math.round(u/a)):(d=s+(t.match(/top/)?-1:1)*p,u=Math.round(d*a)),u>A.innerWidth(l.editor,l.ownerWindow)&&(u=A.innerWidth(l.editor,l.ownerWindow),d=Math.round(u/a))):(u=r+(t.match(/left/)?-1:1)*h,d=s+(t.match(/top/)?-1:1)*p),u>l.options.resizer.min_width&&(c.style.width=b.parentNode.offsetWidth>u?u+"px":"100%"),d>l.options.resizer.min_height&&(c.style.height=d+"px"),_(),function(e,t){if(l.options.resizer.showSize){if(w.offsetWidth>e||w.offsetHeight>t)return x();w.style.opacity="1",w.innerHTML=e+" x "+t,window.clearTimeout(v),v=window.setTimeout(x,l.options.resizer.hideSizeTimeout)}}(c.offsetWidth,c.offsetHeight),e.stopImmediatePropagation()}}).on(l.ownerWindow,"resize",function(){m&&_()}).on(l.ownerWindow,"mouseup keydown touchend",function(e){m&&!f&&(g?(l.unlock(),g=!1,l.setEditorValue(),e.stopImmediatePropagation()):y())}).on([l.ownerWindow,l.editor],"scroll",function(){m&&!g&&y()})}).on("afterGetValueFromEditor",function(e){e.value=e.value.replace(/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]+>[\s\n\r]*<\/iframe>.*?)<\/jodit>/gi,"$1")}).on("change afterInit afterSetMode",A.debounce(function(){m&&(c&&c.parentNode?_():y()),l.isDestructed||A.$$("img, table, iframe",l.editor).forEach(function(e){l.getMode()!==C.MODE_SOURCE&&!e.__jodit_resizer_binded&&("IFRAME"===e.tagName&&l.options.useIframeResizer||"IMG"===e.tagName&&l.options.useImageResizer||"TABLE"===e.tagName&&l.options.useTableResizer)&&(e.__jodit_resizer_binded=!0,t(e))})},l.defaultTimeout))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(0),i=o(1);i.Config.prototype.allowResizeX=!1,i.Config.prototype.allowResizeY=!0,t.size=function(i){var o=function(e){u.css(i.container,"height",e),i.options.saveHeightInStorage&&i.storage.set("height",e)},n=function(e){return u.css(i.container,"width",e)},t=function(e){return u.css(i.workplace,"height",e)};if("auto"!==i.options.height&&(i.options.allowResizeX||i.options.allowResizeY)){var r=u.dom('<div class="jodit_editor_resize" ><a href="javascript:void(0)"></a></div>',i.ownerDocument),s={x:0,y:0,w:0,h:0},a=!1;i.events.on(r,"mousedown touchstart",function(e){a=!0,s.x=e.clientX,s.y=e.clientY,s.w=i.container.offsetWidth,s.h=i.container.offsetHeight,i.lock(),e.preventDefault()}).on(i.ownerWindow,"mousemove touchmove",u.throttle(function(e){a&&(o(i.options.allowResizeY?s.h+e.clientY-s.y:s.h),n(i.options.allowResizeX?s.w+e.clientX-s.x:s.w),c(),i.events.fire("resize"))},i.defaultTimeout/10)).on(i.ownerWindow,"mouseup touchsend",function(){a&&(a=!1,i.unlock())}).on("afterInit",function(){i.container.appendChild(r)}).on("toggleFullSize",function(e){r.style.display=e?"none":"block"})}var e=function(){return(i.options.toolbar?i.toolbar.container.offsetHeight:0)+(i.statusbar?i.statusbar.container.offsetHeight:0)},l=function(){if(i.container&&i.container.parentNode){var o=u.css(i.container,"minHeight")-e();[i.workplace,i.iframe,i.editor].map(function(e){var t=e===i.editor?o-2:o;e&&u.css(e,"minHeight",t),i.events.fire("setMinHeight",t)})}},c=function(){i.options.inline||(l(),i.container&&("auto"!==i.options.height||i.isFullSize())&&t(i.container.offsetHeight-e()))},d=u.debounce(c,i.defaultTimeout);i.events.on("toggleFullSize",function(e){e||"auto"!==i.options.height||(t("auto"),l())}).on("afterInit",function(){i.options.inline||(u.css(i.editor,{minHeight:"100%"}),u.css(i.container,{minHeight:i.options.minHeight,minWidth:i.options.minWidth,maxWidth:i.options.maxWidth}));var e=i.options.height;if(i.options.saveHeightInStorage&&"auto"!==e){var t=i.storage.get("height");t&&(e=t)}i.options.inline||(o(e),n(i.options.width)),c()},void 0,void 0,!0).on(window,"load",d).on("afterInit resize updateToolbar scroll afterResize",d)}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),d=o(2),u=o(0),s=o(4),a=o(2);r.Config.prototype.beautifyHTML=!0,r.Config.prototype.useAceEditor=!0,r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.3.3/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.7.5/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.7.5/beautify-html.min.js"],r.Config.prototype.controls.source={mode:d.MODE_SPLIT,exec:function(e){e.toggleMode()},isActive:function(e){return e.getRealMode()===d.MODE_SOURCE},tooltip:"Change mode"},t.source=function(e){function t(t){var s=e.call(this,t)||this;return s.className="jodit_ace_editor",s.loadNext=function(e,t,o,i){if(void 0===o&&(o="aceReady"),void 0===i&&(i=s.className),o&&void 0===t[e]&&s.jodit&&s.jodit.events)return s.jodit.events&&s.jodit.events.fire(o),void(s.jodit.events&&s.jodit.events.fire(s.jodit.ownerWindow,o));void 0!==t[e]&&u.appendScript(t[e],function(){s.loadNext(e+1,t,o,i)},i,s.jodit.ownerDocument)},s.insertHTML=function(e){if(s.mirror.selectionStart||0===s.mirror.selectionStart){var t=s.mirror.selectionStart,o=s.mirror.selectionEnd;s.mirror.value=s.mirror.value.substring(0,t)+e+s.mirror.value.substring(o,s.mirror.value.length)}else s.mirror.value+=s.mirror;s.toWYSIWYG()},s.__lock=!1,s.__oldMirrorValue="",s.fromWYSIWYG=function(e){if(void 0===e&&(e=!1),!s.__lock||!0===e){s.__lock=!0;var t=s.jodit.getEditorValue(!1);t!==s.getMirrorValue()&&s.setMirrorValue(t),s.__lock=!1}},s.toWYSIWYG=function(){if(!s.__lock){var e=s.getMirrorValue();e!==s.__oldMirrorValue&&(s.__lock=!0,s.jodit.setEditorValue(e),s.__lock=!1,s.__oldMirrorValue=e)}},s.autosize=u.debounce(function(){s.mirror.style.height="auto",s.mirror.style.height=s.mirror.scrollHeight+"px"},s.jodit.defaultTimeout),s.getNormalPosition=function(e,t){for(var o=e;0<o;){if("<"===t[--o]&&void 0!==t[o+1]&&t[o+1].match(/[\w\/]+/i))return o;if(">"===t[o])return e}return e},s.tempMarkerStart="{start-jodit-selection}",s.tempMarkerStartReg=/{start-jodit-selection}/g,s.tempMarkerEnd="{end-jodit-selection}",s.tempMarkerEndReg=/{end-jodit-selection}/g,s.__clear=function(e){return e.replace(d.INVISIBLE_SPACE_REG_EXP,"")},s.selInfo=[],s.selectAll=function(){s.mirror.select()},s.onSelectAll=function(e){if("selectall"===e.toLowerCase()&&s.jodit.getRealMode()===a.MODE_SOURCE)return s.selectAll(),!1},s.getSelectionStart=function(){return s.mirror.selectionStart},s.getSelectionEnd=function(){return s.mirror.selectionEnd},s.setMirrorSelectionRange=function(e,t){s.mirror.setSelectionRange(e,t)},s.saveSelection=function(){if(s.jodit.getRealMode()===d.MODE_WYSIWYG)s.selInfo=s.jodit.selection.save()||[],s.jodit.setEditorValue(),s.fromWYSIWYG(!0);else{s.selInfo.length=0;var e=s.getMirrorValue();if(s.getSelectionStart()===s.getSelectionEnd()){var t=s.jodit.selection.marker(!0);s.selInfo[0]={startId:t.id,collapsed:!0,startMarker:t.outerHTML};var o=s.getNormalPosition(s.getSelectionStart(),s.getMirrorValue());s.setMirrorValue(e.substr(0,o)+s.__clear(s.selInfo[0].startMarker)+e.substr(o))}else{var i=s.jodit.selection.marker(!0),n=s.jodit.selection.marker(!1);s.selInfo[0]={startId:i.id,endId:n.id,collapsed:!1,startMarker:s.__clear(i.outerHTML),endMarker:s.__clear(n.outerHTML)};o=s.getNormalPosition(s.getSelectionStart(),e);var r=s.getNormalPosition(s.getSelectionEnd(),e);s.setMirrorValue(e.substr(0,o)+s.selInfo[0].startMarker+e.substr(o,r-o)+s.selInfo[0].endMarker+e.substr(r))}s.toWYSIWYG()}},s.restoreSelection=function(){if(s.selInfo.length){if(s.jodit.getRealMode()===d.MODE_WYSIWYG)return s.__lock=!0,s.jodit.selection.restore(s.selInfo),void(s.__lock=!1);var e=s.getMirrorValue(),t=0,o=0;try{s.selInfo[0].startMarker&&(e=e.replace(/<span[^>]+data-jodit_selection_marker="start"[^>]*>[<>]*?<\/span>/gim,s.tempMarkerStart)),s.selInfo[0].endMarker&&(e=e.replace(/<span[^>]+data-jodit_selection_marker="end"[^>]*>[<>]*?<\/span>/gim,s.tempMarkerEnd)),s.jodit.ownerWindow.html_beautify&&s.jodit.options.beautifyHTML&&(e=s.jodit.ownerWindow.html_beautify(e)),o=t=e.indexOf(s.tempMarkerStart),e=e.replace(s.tempMarkerStartReg,""),s.selInfo[0].collapsed&&-1!==t||(o=e.indexOf(s.tempMarkerEnd),-1===t&&(t=o)),e=e.replace(s.tempMarkerEndReg,"")}finally{e=e.replace(s.tempMarkerEndReg,"").replace(s.tempMarkerStartReg,"")}s.setMirrorValue(e),s.setMirrorSelectionRange(t,o),s.toWYSIWYG(),s.setFocusToMirror()}},s.mirrorContainer=u.dom('<div class="jodit_source"/>',s.jodit.ownerDocument),s.mirror=u.dom('<textarea class="jodit_source_mirror"/>',s.jodit.ownerDocument),t.events.on(s.mirror,"mousedown keydown touchstart input",u.debounce(s.toWYSIWYG,t.defaultTimeout)).on(s.mirror,"change keydown mousedown touchstart input",s.autosize).on("afterSetMode",s.autosize).on(s.mirror,"mousedown focus",function(e){t.events.fire(e.type,e)}),t.events.on("setMinHeight",function(e){s.mirror&&u.css(s.mirror,"minHeight",e)}).on("insertHTML",function(e){if(!t.options.readonly&&!s.jodit.isEditorMode())return s.insertHTML(e),!1}).on("aceInited",function(){t.options.readonly&&s.aceEditor&&s.aceEditor.setReadOnly(!0)},void 0,void 0,!0).on("readonly",function(e){e?s.mirror.setAttribute("readonly","true"):s.mirror.removeAttribute("readonly"),s.aceEditor&&s.aceEditor.setReadOnly(e)}).on("placeholder",function(e){s.mirror.setAttribute("placeholder",e)}).on("afterInit aceInited",function(){t.events.on("beforeSetMode",s.saveSelection).on("afterSetMode",s.restoreSelection)}).on("afterInit",function(){s.mirrorContainer.appendChild(s.mirror),t.workplace.appendChild(s.mirrorContainer),s.autosize(),t.options.beautifyHTML&&void 0===t.ownerWindow.html_beautify&&!u.$$("script.beutyfy_html_jodit_helper",t.ownerDocument.body).length&&s.loadNext(0,t.options.beautifyHTMLCDNUrlsJS,!1,"beutyfy_html_jodit_helper"),t.options.useAceEditor&&s.replaceMirrorToACE()}).on("beforeCommand",s.onSelectAll).on("change afterInit",s.fromWYSIWYG),s}return n(t,e),t.prototype.getMirrorValue=function(){return this.mirror.value},t.prototype.setMirrorValue=function(e){this.mirror.value=e},t.prototype.setFocusToMirror=function(){this.mirror.focus()},t.prototype.replaceMirrorToACE=function(){var r,t,o=this,i=this.jodit,n=function(){t&&i.getRealMode()===d.MODE_SOURCE&&(i.events.fire("canRedo",t.hasRedo()),i.events.fire("canUndo",t.hasUndo()))},s=function(e){return r.session.getLine(e).length},a=function(){for(var e=r.session.getLength(),t=[],o=0,i=0;i<e;i++)o+=s(i),0<i&&(o+=1),t[i]=o;return t},l=function(e){var t=a();if(t[0]>=e)return{row:0,column:e};for(var o=1,i=1;t.length>i;i++)e>t[i]&&(o=i+1);return{row:o,column:e-t[o-1]-1}},c=function(e,t){return a()[e]-s(e)+t},e=function(){if(void 0===r&&void 0!==o.jodit.ownerWindow.ace){var e=u.dom('<div class="jodit_source_mirror-fake"/>',o.jodit.ownerDocument);o.mirrorContainer.insertBefore(e,o.mirrorContainer.firstChild),o.aceEditor=r=o.jodit.ownerWindow.ace.edit(e),r.setTheme(i.options.sourceEditorNativeOptions.theme),r.renderer.setShowGutter(i.options.sourceEditorNativeOptions.showGutter),r.getSession().setMode(i.options.sourceEditorNativeOptions.mode),r.setHighlightActiveLine(i.options.sourceEditorNativeOptions.highlightActiveLine),r.getSession().setUseWrapMode(!0),r.setOption("indentedSoftWrap",!1),r.setOption("wrap",i.options.sourceEditorNativeOptions.wrap),r.getSession().setUseWorker(!1),r.$blockScrolling=1/0,r.setOptions({maxLines:1/0}),r.on("change",o.toWYSIWYG),r.on("focus",function(e){i.events.fire("focus",e)}),r.on("mousedown",function(e){i.events.fire("mousedown",e)}),o.mirror.style.display="none",t=r.getSession().getUndoManager(),o.setMirrorValue=function(e){r.setValue(i.options.beautifyHTML&&i.ownerWindow.html_beautify?i.ownerWindow.html_beautify(e):e),r.clearSelection(),n()},o.jodit.getRealMode()!==d.MODE_WYSIWYG&&o.setMirrorValue(o.getMirrorValue()),o.getMirrorValue=function(){return r.getValue()},o.setFocusToMirror=function(){r.focus()},o.getSelectionStart=function(){var e=r.selection.getRange();return c(e.start.row,e.start.column)},o.getSelectionEnd=function(){var e=r.selection.getRange();return c(e.end.row,e.end.column)},o.selectAll=function(){r.selection.selectAll()},o.insertHTML=function(e){var t=r.selection.getCursor(),o=r.session.insert(t,e);r.selection.setRange({start:t,end:o},!1)},o.setMirrorSelectionRange=function(e,t){var o,i,n;o=t,i=l(e),n=l(o),r.getSelection().setSelectionRange({start:i,end:n})},i.events.on("afterResize",function(){r.resize()}).fire("aceInited",i)}};i.events.on(this.jodit.ownerWindow,"aceReady",e).on("aceReady",e).on("afterSetMode",function(){i.getRealMode()!==d.MODE_SOURCE&&i.getMode()!==d.MODE_SPLIT||(o.fromWYSIWYG(),e())}).on("beforeCommand",function(e){if(i.getRealMode()!==d.MODE_WYSIWYG&&("redo"===e||"undo"===e)&&t)return t["has"+e.substr(0,1).toUpperCase()+e.substr(1)]&&r[e](),n(),!1}),e(),void 0!==this.jodit.ownerWindow.ace||u.$$("script."+this.className,this.jodit.ownerDocument.body).length||this.loadNext(0,i.options.sourceEditorCDNUrlsJS,"aceReady",this.className)},t}(s.Component)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),l=o(7),h=o(0),p=o(2);i.Config.prototype.usePopupForSpecialCharacters=!1,i.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],i.Config.prototype.controls.symbol={icon:"omega",hotkeys:"ctrl+shift+i",tooltip:"Insert Special Character",popup:function(e,t,o,i){var n=e.events.fire("generateSpecialCharactersTable.symbols");if(n){if(e.options.usePopupForSpecialCharacters){var r=e.ownerDocument.createElement("div");return r.classList.add("jodit_symbols"),r.appendChild(n),e.events.on(n,"close_dialog",i),r}var s=l.Alert(n,e.i18n("Select Special Character"),void 0,"jodit_symbols"),a=n.querySelector("a");a&&a.focus(),e.events.on("beforeDestruct",function(){s&&s.close()})}}},t.symbols=function(d){var u=this;this.countInRow=17,d.events.on("generateSpecialCharactersTable.symbols",function(){for(var e=h.dom('<div class="jodit_symbols-container"><div class="jodit_symbols-container_table"><table><tbody></tbody></table></div><div class="jodit_symbols-container_preview"><div class="jodit_symbols-preview"></div></div></div>',d.ownerDocument),t=e.querySelector(".jodit_symbols-preview"),o=e.querySelector("table").tBodies[0],r=[],i=0;d.options.specialCharacters.length>i;){for(var n=d.ownerDocument.createElement("tr"),s=0;u.countInRow>s&&d.options.specialCharacters.length>i;s+=1,i+=1){var a=d.ownerDocument.createElement("td"),l=h.dom('<a data-index="'+i+'" data-index-j="'+s+'" href="javascript:void(0)" role="option" tabindex="-1">'+d.options.specialCharacters[i]+"</a>",d.ownerDocument);r.push(l),a.appendChild(l),n.appendChild(a)}o.appendChild(n)}var c=u;return d.events.on(r,"focus",function(){t.innerHTML=this.innerHTML}).on(r,"mousedown",function(e){this&&"A"===this.nodeName&&(d.selection.focus(),d.selection.insertHTML(this.innerHTML),d.events.fire(this,"close_dialog"),e&&e.preventDefault(),e&&e.stopImmediatePropagation())}).on(r,"mouseenter",function(){this&&"A"===this.nodeName&&this.focus()}).on(r,"keydown",function(e){var t=e.target;if(t&&"A"===t.nodeName){var o=parseInt(t.getAttribute("data-index")||"0",0),i=parseInt(t.getAttribute("data-index-j")||"0",0),n=void 0;switch(e.which){case p.KEY_UP:case p.KEY_DOWN:n=e.which===p.KEY_UP?o-c.countInRow:o+c.countInRow,void 0===r[n]&&(n=e.which===p.KEY_UP?Math.floor(r.length/c.countInRow)*c.countInRow+i:i)>r.length-1&&(n-=c.countInRow),r[n]&&r[n].focus();break;case p.KEY_RIGHT:case p.KEY_LEFT:n=e.which===p.KEY_LEFT?o-1:o+1,void 0===r[n]&&(n=e.which===p.KEY_LEFT?r.length-1:0),r[n]&&r[n].focus();break;case p.KEY_ENTER:d.events.fire(t,"mousedown"),e.stopImmediatePropagation(),e.preventDefault()}}}),e})}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(4),a=o(0);r.Config.prototype.commandToHotkeys={removeFormat:"ctrl+shift+m",insertOrderedList:"ctrl+shift+7",insertUnorderedList:"ctrl+shift+8",selectall:"ctrl+a"},t.hotkeys=function(e){function t(i){var n=e.call(this,i)||this;return n.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},n.shiftNums={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"},n.possible={},n.onKeyPress=function(t){var o="keypress"!==t.type&&n.specialKeys[t.which],e=String.fromCharCode(t.which).toLowerCase(),i="";t.metaKey&&!t.ctrlKey&&(i+="ctrl+"),["alt","ctrl","shift"].forEach(function(e){t[e+"Key"]&&o!==e&&(i+=e+"+")}),t.metaKey&&-1<i.indexOf("alt+ctrl+shift+")&&(i=i.replace("alt+ctrl+shift+","hyper+")),o?n.possible[i+o]=!0:(n.possible[i+e]=!0,n.shiftNums[e]&&(n.possible[i+n.shiftNums[e]]=!0),"shift+"===i&&(n.possible[n.shiftNums[e]]=!0))},Object.keys(i.options.commandToHotkeys).forEach(function(e){var t=i.options.commandToHotkeys[e];t&&i.events.off(a.asArray(t).map(function(e){return e+".hotkey"}).join(" ")).on(a.asArray(t).map(function(e){return e+".hotkey"}).join(" "),function(){return i.execCommand(e)})}),i.events.on("afterInit",function(){var t=!1,o=n;i.events.on("keydown",function(e){if(o.possible={},o.onKeyPress(e),!1===function(t){var o=!0;if(Object.keys(n.possible).forEach(function(e){!1===n.jodit.events.fire(e,t.type)&&(o=!1)}),!o)return!1}(e))return t=!0,i.events.stopPropagation("keydown"),!1},void 0,void 0,!0).on("keyup",function(){if(t)return t=!1,i.events.stopPropagation("keyup"),!1},void 0,void 0,!0)}),n}return n(t,e),t}(s.Component)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a=o(2),y=o(0),r=o(1),x=o(16);r.Config.prototype.useTableProcessor=!0,r.Config.prototype.useExtraClassesOptions=!0,r.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:function(d,e,i,u,t){var h,p,f,n,g=1,m=1,o=i.data&&i.data.rows?i.data.rows:10,v=i.data&&i.data.cols?i.data.cols:10,r=y.dom('<form class="jodit_form jodit_form_inserter"><label><span>1</span> &times; <span>1</span></label><div class="jodit_form-table-creator-box"><div class="jodit_form-container"></div><div class="jodit_form-options">'+function(){if(!d.options.useExtraClassesOptions)return"";var t=[];if(i.data){var o=i.data.classList;Object.keys(o).forEach(function(e){t.push('<label><input value="'+e+'" type="checkbox"/>'+o[e]+"</label>")})}return t.join("")}()+"</div></div></form>",d.ownerDocument),s=r.querySelectorAll("span")[0],a=r.querySelectorAll("span")[1],l=r.querySelector(".jodit_form-container"),c=r.querySelector(".jodit_form-table-creator-box"),b=r.querySelector(".jodit_form-options"),w=[];return l.addEventListener("mousemove",function(e,t){var o=e.target;if(o&&"DIV"===o.tagName){for(f=void 0===t||isNaN(t)?parseInt(o.getAttribute("data-index")||"0",10):t||0,g=Math.ceil((f+1)/v),m=f%v+1,h=0;w.length>h;h+=1)w[h].className=m<h%v+1||g<Math.ceil((h+1)/v)?"":"hovered";a.innerText=""+m,s.innerText=""+g}}),d.events.on(l,"touchstart mousedown",function(e){var t=e.target,o=d.editorDocument;if(e.preventDefault(),e.stopImmediatePropagation(),"DIV"===t.tagName){f=parseInt(t.getAttribute("data-index")||"0",10),g=Math.ceil((f+1)/v),m=f%v+1;var i=o.createElement("table");i.style.width="100%";var n,r,s,a=null;for(h=1;h<=g;h+=1){for(n=o.createElement("tr"),p=1;p<=m;p+=1)r=o.createElement("td"),a||(a=r),s=o.createElement("br"),r.appendChild(s),n.appendChild(o.createTextNode("\n")),n.appendChild(o.createTextNode("\t")),n.appendChild(r);i.appendChild(o.createTextNode("\n")),i.appendChild(n)}var l=d.selection.current();if(l&&d.selection.isCollapsed()){var c=x.Dom.closest(l,x.Dom.isBlock,d.editor);c&&c!==d.editor&&!c.nodeName.match(/^TD|TH|TBODY|TABLE|THEADER|TFOOTER$/)&&d.selection.setCursorAfter(c)}y.$$("input[type=checkbox]:checked",b).forEach(function(e){e.value.split(/[\s]+/).forEach(function(e){i.classList.add(e)})}),d.selection.insertNode(o.createTextNode("\n")),d.selection.insertNode(i,!1),a&&(d.selection.setCursorIn(a),y.scrollIntoView(a,d.editor,d.editorDocument)),u()}}).off(t.parentToolbar,"afterOpenPopup.tableGenerator").on(t.parentToolbar,"afterOpenPopup.tableGenerator",function(){(function(e){var t=e*v;if(w.length>t){for(h=t;w.length>h;h+=1)l.removeChild(w[h]),delete w[h];w.length=t}for(h=0;h<t;h+=1)w[h]||((n=d.ownerDocument.createElement("div")).setAttribute("data-index",""+h),w.push(n));w.forEach(function(e){l.appendChild(e)});var o=(w[0].offsetWidth||18)*v;l.style.width=o+"px",c.style.width=o+b.offsetWidth+1+"px"})(o),w[0]&&(w[0].className="hovered")},"",!0),r},tooltip:"Insert table"},t.TableProcessor=function(e){function u(r){var s=e.call(this,r)||this;return s.__key="table_processor_observer",s.__selectMode=!1,s.__resizerDelta=0,s.__drag=!1,s.__addResizer=function(){if(!s.__resizerHandler&&!(s.__resizerHandler=s.jodit.container.querySelector(".jodit_table_resizer"))){s.__resizerHandler=y.dom('<div class="jodit_table_resizer"></div>',s.jodit.ownerDocument);var o=0;s.jodit.events.on(s.__resizerHandler,"mousedown touchstart",function(e){s.__drag=!0,o=e.clientX,s.jodit.lock(s.__key),s.__resizerHandler.classList.add("jodit_table_resizer-moved");var i,t=s.__workTable.getBoundingClientRect();if(s.__minX=0,s.__maxX=1e6,null!==s.__wholeTable)t=s.__workTable.parentNode.getBoundingClientRect(),s.__minX=t.left,s.__maxX=t.left+t.width;else{var n=x.Table.formalCoordinate(s.__workTable,s.__workCell,!0);x.Table.formalMatrix(s.__workTable,function(e,t,o){n[1]===o&&(i=e.getBoundingClientRect(),s.__minX=Math.max(i.left+a.NEARBY/2,s.__minX)),n[1]+1===o&&(i=e.getBoundingClientRect(),s.__maxX=Math.min(i.left+i.width-a.NEARBY/2,s.__maxX))})}return!1}).on(s.jodit.ownerWindow,"mousemove touchmoove",function(e){if(s.__drag){var t=e.clientX;s.__minX>t&&(t=s.__minX),t>s.__maxX&&(t=s.__maxX),s.__resizerDelta=t-o,s.__resizerHandler.style.left=t+"px",s.jodit.editorWindow.getSelection().removeAllRanges(),e.preventDefault&&e.preventDefault()}}),s.jodit.container.appendChild(s.__resizerHandler)}},s.onExecCommand=function(e){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");var t=x.Table.getAllSelectedCells(s.jodit.editor);if(t.length){var o=t.shift();if(!o)return;var i=x.Dom.closest(o,"table",s.jodit.editor);switch(e){case"splitv":x.Table.splitVertical(i);break;case"splitg":x.Table.splitHorizontal(i);break;case"merge":x.Table.mergeSelected(i);break;case"empty":x.Table.getAllSelectedCells(s.jodit.editor).forEach(function(e){return e.innerHTML=""});break;case"bin":i.parentNode&&i.parentNode.removeChild(i);break;case"binrow":x.Table.removeRow(i,o.parentNode.rowIndex);break;case"bincolumn":x.Table.removeColumn(i,o.cellIndex);break;case"addcolumnafter":case"addcolumnbefore":x.Table.appendColumn(i,o.cellIndex,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":x.Table.appendRow(i,o.parentNode,"addrowafter"===e)}}return!1}},r.options.useTableProcessor&&r.events.on(s.jodit.ownerWindow,"mouseup touchend",function(){if((s.__selectMode||s.__drag)&&(s.__selectMode=!1,s.jodit.unlock()),s.__resizerHandler&&s.__drag){if(s.__drag=!1,s.__resizerHandler.classList.remove("jodit_table_resizer-moved"),null===s.__wholeTable){var e=[];x.Table.setColumnWidthByDelta(s.__workTable,x.Table.formalCoordinate(s.__workTable,s.__workCell,!0)[1],s.__resizerDelta,!0,e);var t=x.Dom.next(s.__workCell,u.isCell,s.__workCell.parentNode);x.Table.setColumnWidthByDelta(s.__workTable,x.Table.formalCoordinate(s.__workTable,t)[1],-s.__resizerDelta,!1,e)}else{var o=s.__workTable.offsetWidth,i=y.getContentWidth(s.__workTable.parentNode,s.jodit.editorWindow);if(s.__wholeTable){var n=parseInt(s.jodit.editorWindow.getComputedStyle(s.__workTable).marginLeft||"0",10);s.__workTable.style.width=(o-s.__resizerDelta)/i*100+"%",s.__workTable.style.marginLeft=(n+s.__resizerDelta)/i*100+"%"}else s.__workTable.style.width=(o+s.__resizerDelta)/i*100+"%"}r.setEditorValue(),r.selection.focus()}}).on(s.jodit.ownerWindow,"scroll",function(){if(s.__drag){var e=x.Dom.up(s.__workCell,function(e){return e&&"TABLE"===e.nodeName},r.editor);if(e){var t=e.getBoundingClientRect();s.__resizerHandler.style.top=t.top+"px"}}}).on(s.jodit.ownerWindow,"mousedown touchend",function(e){var t=x.Dom.closest(e.originalEvent.target,"TD|TH",s.jodit.editor),o=null;t instanceof s.jodit.editorWindow.HTMLTableCellElement&&(o=x.Dom.closest(t,"table",s.jodit.editor)),o?s.__deSelectAll(o,t instanceof s.jodit.editorWindow.HTMLTableCellElement&&t):s.__deSelectAll()}).on("afterGetValueFromEditor",function(e){e.value=e.value.replace(RegExp("([s]*)"+a.JODIT_SELECTED_CELL_MARKER+'="1"',"g"),"")}).on("change afterCommand afterSetMode",function(){y.$$("table",r.editor).forEach(function(e){e[s.__key]||s.observe(e)})}).on("beforeSetMode",function(){x.Table.getAllSelectedCells(r.editor).forEach(function(e){x.Table.restoreSelection(e),x.Table.normalizeTable(x.Dom.closest(e,"table",r.editor))})}).on("keydown",function(e){e.which===a.KEY_TAB&&y.$$("table",r.editor).forEach(function(e){s.__deSelectAll(e)})}).on("beforeCommand",s.onExecCommand.bind(s)),s}return n(u,e),u.prototype.__deSelectAll=function(e,t){var o=x.Table.getAllSelectedCells(e||this.jodit.editor);o.length&&o.forEach(function(e){t&&t===e||x.Table.restoreSelection(e)})},u.isCell=function(e){return!!e&&/^TD|TH$/i.test(e.nodeName)},u.prototype.__setWorkCell=function(e,t){void 0===t&&(t=null),this.__wholeTable=t,this.__workCell=e,this.__workTable=x.Dom.up(e,function(e){return e&&"TABLE"===e.nodeName},this.jodit.editor)},u.prototype.__calcResizerPosition=function(e,t,o,i){void 0===o&&(o=0),void 0===i&&(i=0);var n=y.offset(t,this.jodit,this.jodit.editorDocument);if(o>a.NEARBY&&n.width-o>a.NEARBY)this.__resizerHandler.style.display="none";else{var r=y.offset(e,this.jodit,this.jodit.editorDocument);if(this.__resizerHandler.style.left=(o>a.NEARBY?n.left+n.width:n.left)+i+"px",this.__resizerHandler.style.height=r.height+"px",this.__resizerHandler.style.top=r.top+"px",this.__resizerHandler.style.display="block",o>a.NEARBY)this.__setWorkCell(t,!!x.Dom.next(t,u.isCell,t.parentNode)&&null);else{var s=x.Dom.prev(t,u.isCell,t.parentNode);s?this.__setWorkCell(s):this.__setWorkCell(t,!0)}}},u.prototype.observe=function(l){var c,d=this;l[this.__key]=!0,this.jodit.events.on(l,"mousedown touchstart",function(e){if(!d.jodit.options.readonly){var t=x.Dom.up(e.target,u.isCell,l);t&&t instanceof d.jodit.editorWindow.HTMLElement&&(t.firstChild||t.appendChild(d.jodit.editorDocument.createElement("br")),c=t,x.Table.addSelected(t),d.__selectMode=!0)}}).on(l,"mouseleave",function(e){d.__resizerHandler&&d.__resizerHandler!==e.relatedTarget&&(d.__resizerHandler.style.display="none")}).on(l,"mousemove touchmove",function(e){if(!d.jodit.options.readonly&&!d.__drag&&!d.jodit.isLockedNotBy(d.__key)){var t=x.Dom.up(e.target,u.isCell,l);if(t)if(d.__selectMode){t!==c&&(d.jodit.lock(d.__key),d.jodit.editorWindow.getSelection().removeAllRanges(),e.preventDefault&&e.preventDefault()),d.__deSelectAll(l);for(var o=x.Table.getSelectedBound(l,[t,c]),i=x.Table.formalMatrix(l),n=o[0][0];o[1][0]>=n;n+=1)for(var r=o[0][1];o[1][1]>=r;r+=1)x.Table.addSelected(i[n][r]);var s=i[o[1][0]][o[1][1]],a=i[o[0][0]][o[0][1]];d.jodit.events.fire("showPopup",l,function(){var e=y.offset(a,d.jodit,d.jodit.editorDocument),t=y.offset(s,d.jodit,d.jodit.editorDocument);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}}),e.stopPropagation()}else d.__calcResizerPosition(l,t,e.offsetX)}}),this.__addResizer()},u}(x.Component)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cookie=function(){function e(){}return e.prototype.set=function(e,t,o){var i,n;o?((n=new Date).setTime(n.getTime()+24*o*60*60*1e3),i="; expires="+n.toUTCString()):i="",document.cookie=e+"="+t+i+"; path=/"},e.prototype.get=function(e){var t,o,i=e+"=",n=document.cookie.split(";");for(t=0;n.length>t;t+=1){for(o=n[t];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(i))return o.substring(i.length,o.length)}return null},e.prototype.remove=function(e){this.set(e,"",-1)},e}()},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),s=this&&this.__assign||Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=o(2),l=o(21),h=o(6),p=o(0),f=o(20),g=o(1),m=o(7),v=o(5),b=o(11),c=o(18),r=o(19),w=o(71);g.Config.prototype.filebrowser={filter:function(e,t){return t=t.toLowerCase(),"string"==typeof e?-1!==e.toLowerCase().indexOf(t):"string"==typeof e.name?-1!==e.name.toLowerCase().indexOf(t):"string"!=typeof e.file||-1!==e.file.toLowerCase().indexOf(t)},sortBy:"changed",sort:function(e,t,o){var i,n=function(e,t){return e<t?-1:t<e?1:0};if("string"==typeof e)return n(e.toLowerCase(),t.toLowerCase());if(void 0===e[o]||"name"===o)return"string"==typeof e.name?n(e.name.toLowerCase(),t.name.toLowerCase()):"string"==typeof e.file?n(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(o){case"changed":return i=new Date(e.changed),new Date(t.changed).getTime()-i.getTime();case"size":return p.humanSizeToBytes(e.size)-p.humanSizeToBytes(t.size)}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,moveFolder:!0,moveFile:!0,showFoldersPanel:!0,width:763,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:function(e){return e.success},getMessage:function(e){return void 0!==e.data.messages&&Array.isArray(e.data.messages)?e.data.messages.join(" "):""},showFileName:!0,showFileSize:!0,showFileChangeTime:!0,getThumbTemplate:function(e,t,o){var i,n="",r="",s=""+(new Date).getTime();void 0!==e.file&&(n=e.file,r=e.file),e.thumb&&(r=e.thumb),i='<div class="'+w.ITEM_CLASS+'-info">\n            '+(this.options.showFileName?'<span class="'+w.ITEM_CLASS+'-info-filename">'+n+"</span>":"")+"\n            "+(this.options.showFileSize&&e.size?'<span class="'+w.ITEM_CLASS+'-info-filesize">'+e.size+"</span>":"")+"\n            "+(this.options.showFileChangeTime&&e.changed?'<span class="'+w.ITEM_CLASS+'-info-filechanged">'+e.changed+"</span>":"")+"\n        </div>";var a=p.urlNormalize(t.baseurl+t.path+n);return'<a data-is-file="'+(e.isImage?0:1)+'" draggable="true" class="'+w.ITEM_CLASS+'" href="'+a+'" data-source="'+o+'" data-path="'+p.pathNormalize(t.path?t.path+"/":"/")+'" data-name="'+n+'" title="'+n+'" data-url="'+a+'">\n            <img data-is-file="'+(e.isImage?0:1)+'" data-src="'+a+'" src="'+p.urlNormalize(t.baseurl+t.path+r)+"?_tmst="+s+'" alt="'+n+'"/>\n            '+(this.options.showFileName||this.options.showFileSize&&e.size||this.options.showFileChangeTime&&e.changed?i:"")+"\n        </a>"},ajax:{url:"",async:!0,data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,dataType:"json",headers:{},prepareData:function(e){return e},process:function(e){return e}},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},move:{data:{action:"fileMove"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}},uploader:null},g.Config.prototype.controls.filebrowser={upload:{icon:"plus",isInput:!0,exec:function(){},isDisable:function(e){return!e.canI("FileUpload")},getContent:function(e,t){var o=p.dom('<span class="jodit_upload_button">'+h.ToolbarIcon.getIcon("plus")+'<input type="file" accept="'+(e.buffer.fileBrowserOnlyImages?"image/*":"*")+'" tabindex="-1" dir="auto" multiple=""/></span>',e.ownerDocument),i=o.querySelector("input");return e.events.on("updateToolbar",function(){t&&t.isDisable&&(t.isDisable(e,t)?i.setAttribute("disabled","disabled"):i.removeAttribute("disabled"))}).fire("bindUploader.filebrowser",o),o}},remove:{icon:"bin",isDisable:function(e){return 0===e.getActiveElements().length||!e.canI("FileRemove")},exec:function(e){e.events.fire("fileRemove.filebrowser")}},update:{exec:function(e){e.events.fire("update.filebrowser")}},select:{icon:"check",isDisable:function(e){return 0===e.getActiveElements().length},exec:function(e){e.events.fire("select.filebrowser")}},edit:{icon:"pencil",isDisable:function(e){var t=e.getActiveElements();return 1!==t.length||"1"===t[0].getAttribute("data-is-file")||!(e.canI("ImageCrop")||e.canI("ImageResize"))},exec:function(e){e.events.fire("edit.filebrowser")}},tiles:{icon:"th",isActive:function(e){return"tiles"===e.buffer.fileBrowserView},exec:function(e){e.events.fire("view.filebrowser","tiles")}},list:{icon:"th-list",isActive:function(e){return"list"===e.buffer.fileBrowserView},exec:function(e){e.events.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent:function(e){var t=p.dom('<input class="jodit_input" placeholder="'+e.i18n("Filter")+'"/>',e.ownerDocument);return e.events.on(t,"keydown mousedown",p.debounce(function(){e.events.fire("filter.filebrowser",t.value)},e.defaultTimeout)),t}},sort:{isInput:!0,getContent:function(e){var t=p.dom('<select class="jodit_input"><option value="changed">'+e.i18n("Sort by changed")+'</option><option value="name">'+e.i18n("Sort by name")+'</option><option value="size">'+e.i18n("Sort by size")+"</option></select>",e.ownerDocument);return e.events.on("sort.filebrowser",function(e){t.value!==e&&(t.value=e)}).on(t,"change",function(){e.events.fire("sort.filebrowser",t.value)}),t}}},t.FileBrowser=function(r){function e(e,t){void 0===t&&(t={});var c=r.call(this,e,t)||this;c.currentPath="",c.currentSource=w.DEFAULT_SOURCE_NAME,c.currentBaseUrl="",c.storage=new l.Storage(new l.localStorageProvider),c.__currentPermissions=null,c.view="tiles",c.sortBy="changed",c.dragger=!1,c.filterWord="",c.getPathByUrl=function(e,t,o){var i=c;c.options.getLocalFileByUrl.data.url=e,c.send("getLocalFileByUrl",function(e){i.options.isSuccess(e)?t(e.data.path,e.data.name,e.data.source):o(Error(c.options.getMessage(e)))},function(e){o(e)})},c.loadItems=function(e,t){var i=c;return i.options.items.data.path=e,i.options.items.data.source=t,i.files.classList.add("active"),i.files.appendChild(i.loader.cloneNode(!0)),i.send("items",function(e){var t=i.options.items.process;if(t||(t=c.options.ajax.process),t){var o=t.call(i,e);i.generateItemsBox(o.data.sources),i.someSelectedWasChanged()}},function(e){m.Alert(e.message),i.errorHandler(e)})},c.create=function(e,t,o){return c.options.create.data.source=o,c.options.create.data.path=t,c.options.create.data.name=e,c.send("create",function(e){c.options.isSuccess(e)?(c.currentPath=t,c.currentSource=o,c.loadTree(t,o)):c.status(c.options.getMessage(e))},function(e){c.status(e.message)})},c.move=function(e,t,o){return c.options.move.data.from=e,c.options.move.data.path=t,c.options.move.data.source=o,c.send("move",function(e){c.options.isSuccess(e)?c.loadTree(t,o):c.status(c.options.getMessage(e))},function(e){c.status(e.message)})},c.close=function(){c.dialog.close()},c.onlyImages=!1,c.open=function(i,e){return void 0===e&&(e=!1),c.onlyImages=e,c.buffer.fileBrowserOnlyImages=e,new Promise(function(e){if(!c.options.items.url)throw Error("Need set options.filebrowser.ajax.url");var t=0;c.events.off(c.files,"dblclick").on(c.files,"dblclick",c.onSelect(i),"a").on(c.files,"touchstart",function(){var e=(new Date).getTime();a.EMULATE_DBLCLICK_TIMEOUT>e-t&&c.onSelect(i)(),t=e},"a").off("select.filebrowser").on("select.filebrowser",c.onSelect(i));var o=c.ownerDocument.createElement("div");c.toolbar.build(c.options.buttons,o),c.dialog.dialogbox_header.classList.add("jodit_filebrowser_title_box"),c.dialog.open(c.browser,o),c.events.fire("sort.filebrowser",c.sortBy),c.loadTree(c.currentPath,c.currentSource).then(e)})},c.errorHandler=function(e){c.status(e instanceof Error?c.i18n(e.message):c.options.getMessage(e))},c.uploadHandler=function(){c.loadItems(c.currentPath,c.currentSource)},c.openImageEditor=function(e,n,r,s,a,l){return c.getInstance("ImageEditor").open(e,function(e,t,o,i){void 0===c.options[t.action]&&(c.options[t.action]={}),void 0===c.options[t.action].data&&(c.options[t.action].data={action:t.action}),c.options[t.action].data.newname=e||n,c.options[t.action].data.box=t.box,c.options[t.action].data.path=r,c.options[t.action].data.name=n,c.options[t.action].data.source=s,c.send(t.action,function(e){c.options.isSuccess(e)?(c.loadTree(c.currentPath,c.currentSource),o(),a&&a()):(i(Error(c.options.getMessage(e))),l&&l(Error(c.options.getMessage(e))))},function(e){i(e),l&&l(e)})})};var d=c,u=e?e.ownerDocument:document,o=e?e.editorDocument:u;e&&(c.id=e.id),d.options=new g.OptionsDefault(p.extend(!0,{},d.options,v.Jodit.defaultOptions.filebrowser,t,d.jodit?d.jodit.options.filebrowser:void 0)),d.dialog=new m.Dialog(e||d,{fullsize:d.options.fullsize,buttons:["dialog.fullsize","dialog.close"]}),d.loader=p.dom('<div class="jodit_filebrowser_loader"><i class="jodit_icon-loader"></i></div>',u),d.browser=p.dom('<div class="jodit_filebrowser non-selected">'+(d.options.showFoldersPanel?'<div class="jodit_filebrowser_tree"></div>':"")+'<div class="jodit_filebrowser_files"></div><div class="jodit_filebrowser_status"></div></div>',u),d.status_line=d.browser.querySelector(".jodit_filebrowser_status"),d.tree=d.browser.querySelector(".jodit_filebrowser_tree"),d.files=d.browser.querySelector(".jodit_filebrowser_files"),d.events.on("view.filebrowser",function(e){e!==d.view&&(d.view=e,d.buffer.fileBrowserView=e,d.files.classList.remove("jodit_filebrowser_files_view-tiles"),d.files.classList.remove("jodit_filebrowser_files_view-list"),d.files.classList.add("jodit_filebrowser_files_view-"+d.view),d.storage.set("jodit_filebrowser_view",d.view))}).on("sort.filebrowser",function(e){e!==d.sortBy&&(d.sortBy=e,c.storage.set("jodit_filebrowser_sortby",d.sortBy),d.loadItems(d.currentPath,d.currentSource))}).on("filter.filebrowser",function(e){e!==d.filterWord&&(d.filterWord=e,d.loadItems(d.currentPath,d.currentSource))}).on("fileRemove.filebrowser",function(){c.getActiveElements().length&&m.Confirm(d.i18n("Are you sure?"),"",function(e){if(e){var t=[];d.getActiveElements().forEach(function(e){t.push(d.fileRemove(d.currentPath,e.getAttribute("data-name")||"",e.getAttribute("data-source")||""))}),Promise.all(t).then(function(){d.someSelectedWasChanged(),d.loadTree(d.currentPath,d.currentSource)})}})}).on("edit.filebrowser",function(){var e=c.getActiveElements();1===e.length&&d.openImageEditor(e[0].getAttribute("href")||"",e[0].getAttribute("data-name")||"",e[0].getAttribute("data-path")||"",e[0].getAttribute("data-source")||"")}).on("update.filebrowser",function(){d.loadTree(c.currentPath,c.currentSource)}).on(d.tree,"click",function(e){var t=this.parentNode,o=t.getAttribute("data-path")||"";return m.Confirm(d.i18n("Are you sure?"),"",function(e){e&&d.folderRemove(o,t.getAttribute("data-name")||"",t.getAttribute("data-source")||"").then(function(){d.loadTree(d.currentPath,d.currentSource)})}),e.stopImmediatePropagation(),!1},"a>i.remove").on(d.tree,"click",function(){var t=this;this.classList.contains("addfolder")?m.Promt(d.i18n("Enter Directory name"),d.i18n("Create directory"),function(e){d.create(e,t.getAttribute("data-path")||"",t.getAttribute("data-source")||"")},d.i18n("type name")):(d.currentPath=this.getAttribute("data-path")||"",d.currentSource=this.getAttribute("data-source")||"",d.loadTree(d.currentPath,d.currentSource))},"a").on(c.tree,"dragstart",function(){d.dragger=this},"a").on(c.tree,"drop",function(){if(d.options.moveFolder&&d.dragger){var e=d.dragger.getAttribute("data-path")||"";if(!d.options.moveFolder&&d.dragger.classList.contains("jodit_filebrowser_tree_item"))return!1;if(d.dragger.classList.contains(w.ITEM_CLASS)&&(e+=d.dragger.getAttribute("data-name"),!d.options.moveFile))return!1;d.move(e,this.getAttribute("data-path")||"",this.getAttribute("data-source")||"")}},"a");var i=new f.ContextMenu(c.jodit||c);if(d.events.on(d.files,"contextmenu",function(e){var l=this;if(d.options.contextMenu){var c=this;return i.show(e.pageX,e.pageY,[!("1"===c.getAttribute("data-is-file")||!d.options.editImage||!d.canI("ImageResize")&&!d.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec:function(){d.openImageEditor(c.getAttribute("href")||"",c.getAttribute("data-name")||"",c.getAttribute("data-path")||"",c.getAttribute("data-source")||"")}},!!d.canI("FileRemove")&&{icon:"bin",title:"Delete",exec:function(){d.fileRemove(d.currentPath,c.getAttribute("data-name")||"",c.getAttribute("data-source")||""),d.someSelectedWasChanged(),d.loadTree(d.currentPath,d.currentSource)}},!!d.options.preview&&{icon:"eye",title:"Preview",exec:function(){var i=c.getAttribute("href")||"",n=new m.Dialog(d),r=p.dom('<div class="jodit_filebrowser_preview"><i class="jodit_icon-loader"></i></div>',u),s=u.createElement("img"),a=function(){var o=function(){if(l.removeEventListener("load",o),r.innerHTML="",d.options.showPreviewNavigation){var e=p.dom('<a href="javascript:void(0)" class="jodit_filebrowser_preview_navigation jodit_filebrowser_preview_navigation-next">'+h.ToolbarIcon.getIcon("angle-right")+"</a>",u),t=p.dom('<a href="javascript:void(0)" class="jodit_filebrowser_preview_navigation jodit_filebrowser_preview_navigation-prev">'+h.ToolbarIcon.getIcon("angle-left")+"</a>",u);c.previousSibling&&c.previousSibling.classList&&c.previousSibling.classList.contains(w.ITEM_CLASS)&&r.appendChild(t),c.nextSibling&&c.nextSibling.classList&&c.nextSibling.classList.contains(w.ITEM_CLASS)&&r.appendChild(e),d.events.on([e,t],"click",function(){c=this.classList.contains("jodit_filebrowser_preview_navigation-next")?c.nextSibling:c.previousSibling,r.innerHTML='<i class="jodit_icon-loader"></i>',i=c.getAttribute("href")||"",s.setAttribute("src",i),a()})}r.appendChild(s),n.setPosition()};s.addEventListener("load",o),s.complete&&o()};a(),s.setAttribute("src",i),n.setContent(r),n.open()}},{icon:"upload",title:"Download",exec:function(){var e=c.getAttribute("href");e&&d.ownerWindow.open(e)}}],d.dialog.getZIndex()+1),e.stopPropagation(),e.preventDefault(),!1}},"a").on(d.files,"click",function(e){p.ctrlKey(e)||(c.getActiveElements().forEach(function(e){e.classList.remove("active")}),d.someSelectedWasChanged())}).on(d.files,"click",function(e){return p.ctrlKey(e)||d.getActiveElements().forEach(function(e){e.classList.remove("active")}),this.classList.toggle("active"),d.someSelectedWasChanged(),e.stopPropagation(),!1},"a").on(d.dialog.container,"drop",function(e){return e.preventDefault()}),c.dialog.setSize(c.options.width,c.options.height),c.options.getLocalFileByUrl=p.extend(!0,{},c.options.ajax,c.options.getLocalFileByUrl),c.options.crop=p.extend(!0,{},c.options.ajax,c.options.crop),c.options.resize=p.extend(!0,{},c.options.ajax,c.options.resize),c.options.create=p.extend(!0,{},c.options.ajax,c.options.create),c.options.move=p.extend(!0,{},c.options.ajax,c.options.move),c.options.fileRemove=p.extend(!0,{},c.options.ajax,c.options.fileRemove),c.options.folderRemove=p.extend(!0,{},c.options.ajax,c.options.folderRemove),c.options.folder=p.extend(!0,{},c.options.ajax,c.options.folder),c.options.items=p.extend(!0,{},c.options.ajax,c.options.items),c.options.permissions=p.extend(!0,{},c.options.ajax,c.options.permissions),c.view=c.storage.get("jodit_filebrowser_view")&&null===c.options.view?"list"===c.storage.get("jodit_filebrowser_view")?"list":"tiles":"list"===c.options.view?"list":"tiles",c.files.classList.add("jodit_filebrowser_files_view-"+c.view),d.buffer.fileBrowserView=c.view,c.sortBy=-1!==["changed","name","size"].indexOf(c.options.sortBy)?c.options.sortBy:"changed",c.storage.get("jodit_filebrowser_sortby")&&(c.sortBy=-1!==["changed","name","size"].indexOf(c.storage.get("jodit_filebrowser_sortby")||"")?c.storage.get("jodit_filebrowser_sortby")||"":"changed"),c.currentBaseUrl=p.$$("base",o).length?p.$$("base",o)[0].getAttribute("href")||"":location.protocol+"//"+location.host,void 0!==v.Jodit.modules.Uploader){var n=p.extend(!0,{},v.Jodit.defaultOptions.uploader,d.options.uploader,c.jodit&&c.jodit.options&&null!==c.jodit.options.uploader?s({},c.jodit.options.uploader):{});c.uploader=new b.Uploader(c.jodit||c,n),c.uploader.setPath(c.currentPath),c.uploader.setSource(c.currentSource),c.uploader.bind(c.browser,c.uploadHandler,c.errorHandler),c.events.on("bindUploader.filebrowser",function(e){c.uploader.bind(e,c.uploadHandler,c.errorHandler)})}return c}return n(e,r),e.prototype.canI=function(e){return null!==this.__currentPermissions&&(void 0===this.__currentPermissions["allow"+e]||this.__currentPermissions["allow"+e])},e.prototype.isOpened=function(){return this.dialog.isOpened()&&"none"!==this.browser.style.display},e.prototype.status=function(e,t){var o=this;clearTimeout(this.statustimer),this.status_line.classList.remove("success"),this.status_line.classList.add("active"),this.status_line.innerHTML=e,t&&this.status_line.classList.add("success"),this.statustimer=window.setTimeout(function(){o.status_line.classList.remove("active")},this.options.howLongShowMsg)},e.prototype.generateFolderTree=function(e){var n=this,r=[];p.each(e,function(o,i){o&&o!==w.DEFAULT_SOURCE_NAME&&r.push('<div class="jodit_filebrowser_source_title">'+o+"</div>"),i.folders.forEach(function(e){var t='<a draggable="draggable" class="jodit_filebrowser_tree_item" href="javascript:void(0)" data-path="'+p.pathNormalize(i.path+e)+'/" data-source="'+o+'"><span>'+e+"</span>";n.options.deleteFolder&&".."!==e&&"."!==e&&(t+='<i class="remove" data-path="'+p.pathNormalize(i.path+e+"/")+'">&times;</i>'),t+="</a>",r.push(t)}),n.options.createNewFolder&&n.canI("FolderCreate")&&r.push('<a class="jodit_button addfolder" href="javascript:void(0)" data-path="'+p.pathNormalize(i.path+name)+'/" data-source="'+o+'">'+h.ToolbarIcon.getIcon("plus")+" "+n.i18n("Add folder")+"</a>")}),this.tree.innerHTML=r.join("")},e.prototype.generateItemsBox=function(e){var i=this,n=[];p.each(e,function(t,o){t&&t!==w.DEFAULT_SOURCE_NAME&&n.push('<div class="jodit_filebrowser_source_title">'+t+(o.path?" - "+o.path:"")+"</div>"),o.files&&o.files.length?("function"==typeof i.options.sort&&o.files.sort(function(e,t){return i.options.sort(e,t,i.sortBy,i.jodit)}),o.files.forEach(function(e){(void 0===i.options.filter||i.options.filter(e,i.filterWord))&&(i.onlyImages&&void 0!==e.isImage&&!e.isImage||n.push(i.options.getThumbTemplate.call(i,e,o,t)))})):n.push("<div>"+i.i18n("There are no files")+"</div>")}),this.files.innerHTML=n.join("")},e.prototype.getActiveElements=function(){return p.$$(":scope>a.active",this.files)},e.prototype.someSelectedWasChanged=function(){this.events.fire("changeSelection")},e.prototype.send=function(e,t,o){var i=p.extend(!0,{},this.options.ajax,void 0!==this.options[e]?this.options[e]:this.options.ajax);return i.prepareData&&(i.data=i.prepareData.call(this,i.data)),new c.Ajax(this.jodit||this,i).send().then(t).catch(o)},e.prototype.loadPermissions=function(e,t){var i=this,n=this;return n.options.permissions.data.path=e,n.options.permissions.data.source=t,n.options.permissions.url?n.send("permissions",function(e){var t=n.options.permissions.process;if(t||(t=i.options.ajax.process),t){var o=t.call(n,e);o.data.permissions&&(i.__currentPermissions=o.data.permissions)}},function(e){m.Alert(e.message),n.errorHandler(e)}):Promise.resolve()},e.prototype.loadTree=function(t,o){var n=this;return this.loadPermissions(t,o).then(function(){var i=n;i.options.folder.data.path=t,i.options.folder.data.source=o,i.uploader&&(i.uploader.setPath(t),i.uploader.setSource(o));var e=[];return i.options.showFoldersPanel&&(i.options.folder.url?(i.tree.classList.add("active"),i.tree.innerHTML="",i.tree.appendChild(i.loader.cloneNode(!0)),e.push(n.send("folder",function(e){var t=i.options.folder.process;if(t||(t=n.options.ajax.process),t){var o=t.call(i,e);i.generateFolderTree(o.data.sources)}},function(){i.errorHandler(Error(i.jodit.i18n("Error on load folders")))}))):i.tree.classList.remove("active")),e.push(n.loadItems(t,o)),Promise.all(e)})},e.prototype.fileRemove=function(e,t,o){var i=this;return this.options.fileRemove.data.path=e,this.options.fileRemove.data.name=t,this.options.fileRemove.data.source=o,this.send("fileRemove",function(e){i.options.remove.process&&(e=i.options.remove.process.call(i,e)),i.options.isSuccess(e)?(i.someSelectedWasChanged(),i.status(i.options.getMessage(e),!0)):i.status(i.options.getMessage(e))},function(e){i.status(e.message)})},e.prototype.folderRemove=function(e,t,o){var i=this;return this.options.folderRemove.data.path=e,this.options.folderRemove.data.name=t,this.options.folderRemove.data.source=o,this.send("folderRemove",function(e){i.options.remove.process&&(e=i.options.remove.process.call(i,e)),i.options.isSuccess(e)?(i.someSelectedWasChanged(),i.status(i.options.getMessage(e),!0)):i.status(i.options.getMessage(e))},function(e){i.status(e.message)})},e.prototype.onSelect=function(t){var i=this;return function(){var e=i.getActiveElements();if(e.length){var o=[];e.forEach(function(e){var t=e.getAttribute("data-url");t&&o.push(t)}),i.close(),"function"==typeof t&&t({baseurl:"",files:o})}return!1}},Object.defineProperty(e.prototype,"defaultTimeout",{get:function(){return this.jodit?this.jodit.defaultTimeout:v.Jodit.defaultOptions.observer.timeout},enumerable:!0,configurable:!0}),e}(r.View)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SOURCE_NAME="default",t.ITEM_CLASS="jodit_filebrowser_files_item"},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(0),a=o(7),l=o(5),c=o(6),d=o(4);r.Config.prototype.imageeditor={closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},t.ImageEditor=function(t){function e(e){var r=t.call(this,e)||this;return r.resizeUseRatio=!0,r.cropUseRatio=!0,r.clicked=!1,r.activeTab="resize",r.hide=function(){r.dialog.close()},r.calcValueByPercent=function(e,t){var o,i=""+t,n=parseFloat(""+e);return(o=/^[\-+]?[0-9]+(px)?$/.exec(i))?parseInt(i,10):(o=/^([\-+]?[0-9.]+)%$/.exec(i))?Math.round(n*(parseFloat(o[1])/100)):n||0},r.calcCropBox=function(){var e=.8*r.crop_box.parentNode.offsetWidth,t=.8*r.crop_box.parentNode.offsetHeight,o=e,i=t;e>r.naturalWidth&&t>r.naturalHeight?(o=r.naturalWidth,i=r.naturalHeight):r.ratio>e/t?(o=e,i=r.naturalHeight*(e/r.naturalWidth)):(o=r.naturalWidth*(t/r.naturalHeight),i=t),s.css(r.crop_box,{width:o,height:i})},r.showCrop=function(){r.cropImage&&(r.calcCropBox(),r.new_w=r.calcValueByPercent(r.cropImage.offsetWidth||r.image.offsetWidth,r.options.cropDefaultWidth),r.new_h=r.cropUseRatio?r.new_w/r.ratio:r.calcValueByPercent(r.cropImage.offsetHeight||r.image.offsetHeight,r.options.cropDefaultHeight),s.css(r.cropHandler,{backgroundImage:"url("+r.cropImage.getAttribute("src")+")",width:r.new_w,height:r.new_h,left:(r.cropImage.offsetWidth||r.image.offsetWidth)/2-r.new_w/2,top:(r.cropImage.offsetHeight||r.image.offsetHeight)/2-r.new_h/2}),r.jodit.events.fire(r.cropHandler,"updatesize"))},r.cropBox={x:0,y:0,w:0,h:0},r.updateCropBox=function(){if(r.cropImage){var e=r.cropImage.offsetWidth/r.naturalWidth,t=r.cropImage.offsetHeight/r.naturalHeight;r.cropBox.x=s.css(r.cropHandler,"left")/e,r.cropBox.y=s.css(r.cropHandler,"top")/t,r.cropBox.w=r.cropHandler.offsetWidth/e,r.cropBox.h=r.cropHandler.offsetHeight/t,r.sizes.innerText=r.cropBox.w.toFixed(0)+"x"+r.cropBox.h.toFixed(0)}},r.resizeBox={w:0,h:0},r.updateResizeBox=function(){r.resizeBox.w=r.image.offsetWidth||r.naturalWidth,r.resizeBox.h=r.image.offsetHeight||r.naturalHeight},r.open=function(i,n){return new Promise(function(e){var t=(new Date).getTime();r.image=r.jodit.ownerDocument.createElement("img"),s.$$("img,.jodit_icon-loader",r.resize_box).forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),s.$$("img,.jodit_icon-loader",r.crop_box).forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),s.css(r.cropHandler,"background","transparent"),r.onSave=n,r.resize_box.appendChild(s.dom('<i class="jodit_icon-loader"></i>',r.jodit.ownerDocument)),r.crop_box.appendChild(s.dom('<i class="jodit_icon-loader"></i>',r.jodit.ownerDocument)),/\?/.test(i)?i+="&_tst="+t:i+="?_tst="+t,r.image.setAttribute("src",i),r.dialog.open();var o=function(){r.image.removeEventListener("load",o),r.naturalWidth=r.image.naturalWidth,r.naturalHeight=r.image.naturalHeight,r.widthInput.value=""+r.naturalWidth,r.heightInput.value=""+r.naturalHeight,r.ratio=r.naturalWidth/r.naturalHeight,r.resize_box.appendChild(r.image),r.cropImage=r.image.cloneNode(),r.crop_box.appendChild(r.cropImage),s.$$(".jodit_icon-loader",r.editor).forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),"crop"===r.activeTab&&r.showCrop(),r.jodit.events.fire(r.resizeHandler,"updatesize"),r.jodit.events.fire(r.cropHandler,"updatesize"),r.dialog.setPosition(),r.jodit.events.fire("afterImageEditor"),e(r.dialog)};r.image.addEventListener("load",o),r.image.complete&&o()})},r.setHandlers=function(){var n=r;n.jodit.events.on([n.editor.querySelector(".jodit_bottomright"),n.cropHandler],"mousedown",function(e){n.target=e.target||e.srcElement,e.preventDefault(),e.stopImmediatePropagation(),n.clicked=!0,n.start_x=e.clientX,n.start_y=e.clientY,"crop"===n.activeTab?(n.top_x=s.css(n.cropHandler,"left"),n.top_y=s.css(n.cropHandler,"top"),n.width=n.cropHandler.offsetWidth,n.height=n.cropHandler.offsetHeight):(n.width=n.image.offsetWidth,n.height=n.image.offsetHeight)}).off(r.jodit.ownerWindow,".jodit_image_editor"+n.jodit.id).on(r.jodit.ownerWindow,"mousemove.jodit_image_editor"+n.jodit.id,s.throttle(function(e){n.clicked&&(n.diff_x=e.clientX-n.start_x,n.diff_y=e.clientY-n.start_y,"resize"===n.activeTab&&n.resizeUseRatio||"crop"===n.activeTab&&n.cropUseRatio?n.diff_x?(n.new_w=n.width+n.diff_x,n.new_h=Math.round(n.new_w/n.ratio)):(n.new_h=n.height+n.diff_y,n.new_w=Math.round(n.new_h*n.ratio)):(n.new_w=n.width+n.diff_x,n.new_h=n.height+n.diff_y),"resize"===n.activeTab?(n.new_w>n.options.resizeMinWidth&&(s.css(n.image,"width",n.new_w+"px"),n.widthInput.value=""+n.new_w),n.new_h>n.options.resizeMinHeight&&(s.css(n.image,"height",n.new_h+"px"),n.heightInput.value=""+n.new_h),r.jodit.events.fire(n.resizeHandler,"updatesize")):(n.target!==n.cropHandler?(n.top_x+n.new_w>n.cropImage.offsetWidth&&(n.new_w=n.cropImage.offsetWidth-n.top_x),n.top_y+n.new_h>n.cropImage.offsetHeight&&(n.new_h=n.cropImage.offsetHeight-n.top_y),s.css(n.cropHandler,{width:n.new_w,height:n.new_h})):(n.top_x+n.diff_x+n.cropHandler.offsetWidth>n.cropImage.offsetWidth&&(n.diff_x=n.cropImage.offsetWidth-n.top_x-n.cropHandler.offsetWidth),s.css(n.cropHandler,"left",n.top_x+n.diff_x),n.top_y+n.diff_y+n.cropHandler.offsetHeight>n.cropImage.offsetHeight&&(n.diff_y=n.cropImage.offsetHeight-n.top_y-n.cropHandler.offsetHeight),s.css(n.cropHandler,"top",n.top_y+n.diff_y)),r.jodit.events.fire(n.cropHandler,"updatesize")),e.stopImmediatePropagation())},5)).on(r.jodit.ownerWindow,"resize.jodit_image_editor"+n.jodit.id,function(){r.jodit.events.fire(n.resizeHandler,"updatesize"),n.showCrop(),r.jodit.events.fire(n.cropHandler,"updatesize")}).on(r.jodit.ownerWindow,"mouseup.jodit_image_editor"+n.jodit.id+" keydown.jodit_image_editor"+n.jodit.id,function(e){n.clicked&&(n.clicked=!1,e.stopImmediatePropagation())}),s.$$(".jodit_btn_group",n.editor).forEach(function(e){var t=e.querySelector("input");n.jodit.events.on(e,"click change",function(){s.$$("button",e).forEach(function(e){return e.classList.remove("active")}),this.classList.add("active"),t.checked=!!this.getAttribute("data-yes"),n.jodit.events.fire(t,"change")},"button")}),n.jodit.events.on(r.editor,"click",function(){s.$$(".jodit_image_editor_slider,.jodit_image_editor_area",n.editor).forEach(function(e){return e.classList.remove("active")});var e=this.parentNode;e.classList.add("active"),n.activeTab=e.getAttribute("data-area")||"";var t=n.editor.querySelector(".jodit_image_editor_area.jodit_image_editor_area_"+n.activeTab);t&&t.classList.add("active"),"crop"===n.activeTab&&n.showCrop()},".jodit_image_editor_slider-title").on(n.widthInput,"change mousedown keydown",s.debounce(function(){var e,t=parseInt(n.widthInput.value,10);t>n.jodit.options.resizer.min_width&&(s.css(n.image,"width",t+"px"),n.resizeUseRatio&&(e=Math.round(t/n.ratio))>n.jodit.options.resizer.min_height&&(s.css(n.image,"height",e+"px"),n.heightInput.value=""+e)),r.jodit.events.fire(n.resizeHandler,"updatesize")},200)).on(n.heightInput,"change mousedown keydown",s.debounce(function(){var e,t=parseInt(n.heightInput.value,10);t>n.jodit.options.resizer.min_height&&(s.css(n.image,"height",t+"px"),n.resizeUseRatio&&(e=Math.round(t*n.ratio))>n.jodit.options.resizer.min_width&&(s.css(n.image,"width",e+"px"),n.widthInput.value=""+e)),r.jodit.events.fire(n.resizeHandler,"updatesize")},200));var e=n.editor.querySelector(".jodit_image_editor_keep_spect_ratio");e&&e.addEventListener("change",function(){n.resizeUseRatio=e.checked});var t=n.editor.querySelector(".jodit_image_editor_keep_spect_ratio_crop");t&&t.addEventListener("change",function(){n.cropUseRatio=t.checked}),n.jodit.events.on(n.resizeHandler,"updatesize",function(){s.css(n.resizeHandler,{top:0,left:0,width:(n.image.offsetWidth||n.naturalWidth)+"px",height:(n.image.offsetHeight||n.naturalHeight)+"px"}),r.updateResizeBox()}).on(n.cropHandler,"updatesize",function(){if(n.cropImage){var e=s.css(n.cropHandler,"left"),t=s.css(n.cropHandler,"top"),o=n.cropHandler.offsetWidth,i=n.cropHandler.offsetHeight;e<0&&(e=0),t<0&&(t=0),e+o>n.cropImage.offsetWidth&&(o=n.cropImage.offsetWidth-e,n.cropUseRatio&&(i=o/n.ratio)),t+i>n.cropImage.offsetHeight&&(i=n.cropImage.offsetHeight-t,n.cropUseRatio&&(o=i*n.ratio)),s.css(n.cropHandler,{width:o,height:i,left:e,top:t,backgroundPosition:-e-1+"px "+(-t-1)+"px",backgroundSize:n.cropImage.offsetWidth+"px "+n.cropImage.offsetHeight+"px"}),n.updateCropBox()}}),n.buttons.forEach(function(e){e.addEventListener("mousedown",function(e){e.stopImmediatePropagation()}),e.addEventListener("click",function(){var t={action:n.activeTab,box:"resize"===n.activeTab?n.resizeBox:n.cropBox};switch(e.getAttribute("data-action")){case"saveas":a.Promt(n.jodit.i18n("Enter new name"),n.jodit.i18n("Save in new file"),function(e){if(!s.trim(e))return a.Alert(n.jodit.i18n("The name should not be empty")),!1;n.onSave(e,t,n.hide,function(e){a.Alert(e)})});break;case"save":n.onSave(void 0,t,n.hide,function(e){a.Alert(e)});break;case"reset":"resize"===n.activeTab?(s.css(n.image,{width:null,height:null}),n.widthInput.value=""+n.naturalWidth,n.heightInput.value=""+n.naturalHeight,n.jodit.events.fire(n.resizeHandler,"updatesize")):n.showCrop()}})})},r.options=e&&e.options?e.options.imageeditor:l.Jodit.defaultOptions.imageeditor,r.resizeUseRatio=r.options.resizeUseRatio,r.cropUseRatio=r.options.cropUseRatio,r.buttons=[s.dom('<button data-action="reset" type="button" class="jodit_btn">'+c.ToolbarIcon.getIcon("update")+" "+e.i18n("Reset")+"</button>",e.ownerDocument),s.dom('<button data-action="save" type="button" class="jodit_btn jodit_btn_success">'+c.ToolbarIcon.getIcon("save")+" "+e.i18n("Save")+"</button>",e.ownerDocument),s.dom('<button data-action="saveas" type="button" class="jodit_btn jodit_btn_success">'+c.ToolbarIcon.getIcon("save")+" "+e.i18n("Save as ...")+"</button>",e.ownerDocument)],r.activeTab=r.options.resize?"resize":"crop",r.editor=s.dom('<form class="jodit_image_editor jodit_properties"><div class="jodit_grid"><div class="jodit_col-lg-3-4">'+(r.options.resize?'<div class="jodit_image_editor_area jodit_image_editor_area_resize active">                                <div class="jodit_image_editor_box"></div>                                <div class="jodit_image_editor_resizer">                                    <i class="jodit_bottomright"></i>                                </div>                            </div>':"")+(r.options.crop?'<div class="jodit_image_editor_area jodit_image_editor_area_crop'+(r.options.resize?"":" active")+'">                                <div class="jodit_image_editor_box">                                    <div class="jodit_image_editor_croper">                                        <i class="jodit_bottomright"></i>                                        <i class="jodit_sizes"></i>                                    </div>                                </div>                            </div>':"")+'</div><div class="jodit_col-lg-1-4">'+(r.options.resize?'<div data-area="resize" class="jodit_image_editor_slider active">                                <div class="jodit_image_editor_slider-title">'+c.ToolbarIcon.getIcon("resize")+e.i18n("Resize")+'</div>                                <div class="jodit_image_editor_slider-content">                                    <div class="jodit_form_group">                                        <label for="jodit_image_editor_width">'+e.i18n("Width")+'</label>                                        <input type="number" class="jodit_image_editor_width"/>                                    </div>                                    <div class="jodit_form_group">                                        <label for="jodit_image_editor_height">'+e.i18n("Height")+'</label>                                        <input type="number" class="jodit_image_editor_height"/>                                    </div>                                    <div class="jodit_form_group">                                        <label>'+e.i18n("Keep Aspect Ratio")+'</label>                                        <div class="jodit_btn_group jodit_btn_radio_group">                                            <input '+(r.resizeUseRatio?"checked":"")+' type="checkbox" class="jodit_image_editor_keep_spect_ratio"/>                                            <button type="button"  data-yes="1" class="jodit_col6 jodit_btn jodit_btn_success '+(r.resizeUseRatio?"active":"")+'">'+e.i18n("Yes")+'</button>                                            <button type="button" class="jodit_col6 jodit_btn'+(r.resizeUseRatio?"":"active")+'">'+e.i18n("No")+"</button>                                        </div>                                    </div>                                </div>                            </div>":"")+(r.options.crop?'<div data-area="crop" class="jodit_image_editor_slider'+(r.options.resize?"":" active")+'">                                <div class="jodit_image_editor_slider-title">'+c.ToolbarIcon.getIcon("crop")+e.i18n("Crop")+'</div>                                <div class="jodit_image_editor_slider-content">                                    <div class="jodit_form_group">                                        <label>'+e.i18n("Keep Aspect Ratio")+'</label>                                        <div class="jodit_btn_group jodit_btn_radio_group">                                            <input '+(r.cropUseRatio?"checked":"")+' type="checkbox" class="jodit_image_editor_keep_spect_ratio_crop"/>                                            <button type="button" data-yes="1" class="jodit_col6 jodit_btn jodit_btn_success '+(r.cropUseRatio?"active":"")+'">'+e.i18n("Yes")+'</button>                                            <button type="button" class="jodit_col6 jodit_btn '+(r.cropUseRatio?"":"active")+'">'+e.i18n("No")+"</button>                                        </div>                                    </div>                                </div>                            </div>":"")+"</div></div></form>",e.ownerDocument),r.widthInput=r.editor.querySelector(".jodit_image_editor_width"),r.heightInput=r.editor.querySelector(".jodit_image_editor_height"),r.resize_box=r.editor.querySelector(".jodit_image_editor_area.jodit_image_editor_area_resize .jodit_image_editor_box"),r.crop_box=r.editor.querySelector(".jodit_image_editor_area.jodit_image_editor_area_crop .jodit_image_editor_box"),r.sizes=r.editor.querySelector(".jodit_image_editor_area.jodit_image_editor_area_crop .jodit_sizes"),r.resizeHandler=r.editor.querySelector(".jodit_image_editor_resizer"),r.cropHandler=r.editor.querySelector(".jodit_image_editor_croper"),r.dialog=new a.Dialog(e),r.dialog.setContent(r.editor),r.dialog.setSize(r.options.width,r.options.height),r.dialog.setTitle(r.buttons),r.setHandlers(),r}return n(e,t),e}(d.Component)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=o(2),f=o(16);t.tableKeyboardNavigation=function(h){h.events.on("keydown",function(t){var e,i;if((t.which===p.KEY_TAB||t.which===p.KEY_LEFT||t.which===p.KEY_RIGHT||t.which===p.KEY_UP||t.which===p.KEY_DOWN)&&(e=h.selection.current(),i=f.Dom.up(e,function(e){return e&&e.nodeName&&/^td|th$/i.test(e.nodeName)},h.editor))){var o=h.editorWindow.getSelection(),n=o.rangeCount?o.getRangeAt(0):h.editorDocument.createRange();if(t.which===p.KEY_TAB||e===i||(t.which!==p.KEY_LEFT&&t.which!==p.KEY_UP||!(f.Dom.prev(e,function(e){return t.which===p.KEY_UP?e&&"BR"===e.nodeName:!!e},i)||t.which!==p.KEY_UP&&e.nodeType===Node.TEXT_NODE&&0!==n.startOffset))&&(t.which!==p.KEY_RIGHT&&t.which!==p.KEY_DOWN||!(f.Dom.next(e,function(e){return t.which===p.KEY_DOWN?e&&"BR"===e.nodeName:!!e},i)||t.which!==p.KEY_DOWN&&e.nodeType===Node.TEXT_NODE&&e.nodeValue&&n.startOffset!==e.nodeValue.length))){var r=f.Dom.up(i,function(e){return e&&/^table$/i.test(e.nodeName)},h.editor),s=null;switch(t.which){case p.KEY_TAB:case p.KEY_LEFT:var a=t.which===p.KEY_LEFT||t.shiftKey?"prev":"next";(s=f.Dom[a](i,function(e){return e&&/^td|th$/i.test(e.tagName)},r))||(f.Table.appendRow(r,"next"!==a&&r.querySelector("tr"),"next"===a),s=f.Dom[a](i,function(e){return e&&f.Dom.isCell(e,h.editorWindow)},r));break;case p.KEY_UP:case p.KEY_DOWN:var l=0,c=0,d=f.Table.formalMatrix(r,function(e,t,o){e===i&&(l=t,c=o)});t.which===p.KEY_UP?void 0!==d[l-1]&&(s=d[l-1][c]):void 0!==d[l+1]&&(s=d[l+1][c])}if(s){if(s.firstChild)t.which===p.KEY_TAB?h.selection.select(s,!0):h.selection.setCursorIn(s,t.which===p.KEY_RIGHT||t.which===p.KEY_DOWN);else{var u=h.editorDocument.createElement("br");s.appendChild(u),h.selection.setCursorBefore(u)}return!1}}}})}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),f=o(0),g=o(16),u=o(2),s=o(2);r.Config.prototype.useSearch=!0,t.search=function(e){function p(i){var h=e.call(this,i)||this;if(h.template='<div class="jodit_search"><div class="jodit_search_box"><div class="jodit_search_inputs"><input tabindex="0" class="jodit_search-query" placeholder="'+h.jodit.i18n("Search for")+'" type="text"/><input tabindex="0" class="jodit_search-replace" placeholder="'+h.jodit.i18n("Replace with")+'" type="text"/></div><div class="jodit_search_counts"><span>0/0</span></div><div class="jodit_search_buttons"><button tabindex="0" type="button" class="jodit_search_buttons-next">'+g.ToolbarIcon.getIcon("angle-down")+'</button><button tabindex="0" type="button" class="jodit_search_buttons-prev">'+g.ToolbarIcon.getIcon("angle-up")+'</button><button tabindex="0" type="button" class="jodit_search_buttons-cancel">'+g.ToolbarIcon.getIcon("cancel")+'</button><button tabindex="0" type="button" class="jodit_search_buttons-replace">'+h.jodit.i18n("Replace")+"</button></div></div></div>",h.eachMap=function(e,t,o){g.Dom.findWithCurrent(e,function(e){return!!e&&t(e)},h.jodit.editor,o?"nextSibling":"previousSibling",o?"firstChild":"lastChild")},h.updateCounters=function(){if(h.isOpened){h.counterBox.style.display=h.queryInput.value.length?"inline-block":"none";var e=h.jodit.editorWindow.getSelection(),t=e.rangeCount?e.getRangeAt(0):h.jodit.editorDocument.createRange(),o=h.calcCounts(h.queryInput.value,t);h.counterBox.innerText=o.join("/")}},h.calcCounts=function(e,t){void 0===t&&(t=!1);for(var o=0,i=0,n=[],r=!1,s=h.jodit.editor.firstChild;s&&e.length;)if(r=h.find(s,e,!0,0,r||h.jodit.editorDocument.createRange())){if(h.boundAlreadyWas(r,n))break;n.push(r),s=r.startContainer,i+=1,t&&h.boundAlreadyWas(t,[r])&&(o=i)}else s=null;return[o,i]},h.findAndReplace=function(e,t){var o=h.jodit.editorWindow.getSelection(),i=o.rangeCount?o.getRangeAt(0):h.jodit.editorDocument.createRange(),n=h.find(e,t,!0,0,i);if(n&&n.startContainer&&n.endContainer){var r=h.jodit.editorDocument.createRange();try{if(n&&n.startContainer&&n.endContainer){r.setStart(n.startContainer,n.startOffset),r.setEnd(n.endContainer,n.endOffset),r.deleteContents();var s=h.jodit.editorDocument.createTextNode(h.replaceInput.value);r.insertNode(s),h.jodit.selection.select(s),h.tryScrollToElement(s)}}catch(e){}return!0}return!1},h.findAndSelect=function(e,t,o){var i=h.jodit.editorWindow.getSelection(),n=i.rangeCount?i.getRangeAt(0):h.jodit.editorDocument.createRange(),r=h.find(e,t,o,0,n);if(r&&r.startContainer&&r.endContainer){var s=h.jodit.editorDocument.createRange();try{s.setStart(r.startContainer,r.startOffset),s.setEnd(r.endContainer,r.endOffset),h.jodit.selection.selectRange(s)}catch(e){}return h.tryScrollToElement(r.startContainer),h.current=r.startContainer,h.updateCounters(),!0}return!1},h.find=function(e,s,a,l,c){if(e&&s.length){var d="",u={startContainer:null,startOffset:null,endContainer:null,endOffset:null};if(h.eachMap(e,function(e){if(e.nodeType===Node.TEXT_NODE&&null!==e.nodeValue&&e.nodeValue.length){var t=e.nodeValue;a||e!==c.startContainer?a&&e===c.endContainer&&(t=l?t.substr(0,c.startOffset):t.substr(c.endOffset)):t=l?t.substr(c.endOffset):t.substr(0,c.startOffset);var o=a?d+t:t+d,i=p.findSomePartOfString(s,o,a);if(!1!==i){var n=p.findSomePartOfString(s,t,a);!0===n?n=f.trim(s):!1===n&&!0===(n=p.findSomePartOfString(t,s,a))&&(n=f.trim(t));var r=p.getSomePartOfStringIndex(s,t,a)||0;if((a&&!l||!a&&l)&&0<e.nodeValue.length-t.length&&(r+=e.nodeValue.length-t.length),null===u.startContainer&&(u.startContainer=e,u.startOffset=r),!0===i)return u.endContainer=e,u.endOffset=r,u.endOffset+=n.length,!0;d=o}else d="",u={startContainer:null,startOffset:null,endContainer:null,endOffset:null}}else g.Dom.isBlock(e)&&""!==d&&(d=a?d+" ":" "+d);return!1},a),u.startContainer&&u.endContainer)return u;if(!l)return h.current=a?h.jodit.editor.firstChild:h.jodit.editor.lastChild,h.find(h.current,s,a,l+1,c)}return!1},h.isOpened=!1,h.open=function(e){void 0===e&&(e=!1),h.isOpened||(h.searchBox.classList.add("jodit_search-active"),h.isOpened=!0),h.jodit.events.fire("hidePopup"),h.searchBox.classList.toggle("jodit_search-and-replace",e),h.current=h.jodit.selection.current(),h.selInfo=h.jodit.selection.save();var t=""+h.jodit.ownerWindow.getSelection();t&&(h.queryInput.value=t),h.updateCounters(),t?h.queryInput.select():h.queryInput.focus()},h.selInfo=null,h.current=!1,h.close=function(){h.isOpened&&(h.selInfo&&(h.jodit.selection.restore(h.selInfo),h.selInfo=null),h.searchBox.classList.remove("jodit_search-active"),h.isOpened=!1)},i.options.useSearch){var n=h;n.searchBox=f.dom(n.template,i.ownerDocument),n.queryInput=n.searchBox.querySelector("input.jodit_search-query"),n.replaceInput=n.searchBox.querySelector("input.jodit_search-replace"),n.closeButton=n.searchBox.querySelector(".jodit_search_buttons-cancel"),n.nextButton=n.searchBox.querySelector(".jodit_search_buttons-next"),n.prevButton=n.searchBox.querySelector(".jodit_search_buttons-prev"),n.replaceButton=n.searchBox.querySelector(".jodit_search_buttons-replace"),n.counterBox=n.searchBox.querySelector(".jodit_search_counts span"),i.events.on(n.closeButton,"click",h.close).on(n.queryInput,"mousedown",function(){i.selection.isFocused()&&(i.selection.removeMarkers(),n.selInfo=i.selection.save())}).on(n.replaceButton,"click",function(e){n.findAndReplace(i.selection.current()||i.editor.firstChild,n.queryInput.value),h.updateCounters(),e.preventDefault(),e.stopImmediatePropagation()}).on([n.nextButton,n.prevButton],"click",function(e){i.events.fire(n.nextButton===this?"searchNext":"searchPrevious"),e.preventDefault(),e.stopImmediatePropagation()}).on(h.queryInput,"keydown",f.debounce(function(e){switch(e.which){case u.KEY_ENTER:e.preventDefault(),e.stopImmediatePropagation(),i.events.fire("searchNext")&&h.close();break;default:h.updateCounters()}},h.jodit.defaultTimeout)).on(h.jodit.container,"keydown",function(e){if(i.getRealMode()===s.MODE_WYSIWYG)switch(e.which){case u.KEY_ESC:h.close();break;case u.KEY_F3:n.queryInput.value&&(i.events.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}).on("beforeSetMode",function(){h.close()}).on("afterInit",function(){i.workplace.appendChild(h.searchBox)}).on("keydown mousedown",function(){h.selInfo&&(i.selection.removeMarkers(),h.selInfo=null),h.isOpened&&(h.current=h.jodit.selection.current(),h.updateCounters())}).on("searchNext searchPrevious",function(){return n.findAndSelect(i.selection.current()||i.editor.firstChild,n.queryInput.value,"searchNext"===i.events.current[i.events.current.length-1])}).on("search",function(e,t){void 0===t&&(t=!0),i.execCommand("search",e,t)}),i.registerCommand("search",{exec:function(e,t,o){return void 0===o&&(o=!0),n.findAndSelect(i.selection.current()||i.editor.firstChild,t,o),!1}}),i.registerCommand("openSearchDialog",{exec:function(){return n.open(),!1},hotkeys:"ctrl+f"}),i.registerCommand("openReplaceDialog",{exec:function(){return i.options.readonly||n.open(!0),!1},hotkeys:"ctrl+h"})}return h}return n(p,e),p.getSomePartOfStringIndex=function(e,t,o){return void 0===o&&(o=!0),this.findSomePartOfString(e,t,o,!0)},p.findSomePartOfString=function(e,t,o,i){void 0===o&&(o=!0),void 0===i&&(i=!1),e=f.trim(e.toLowerCase().replace(u.SPACE_REG_EXP," ")),t=t.toLowerCase();for(var n=o?0:t.length-1,r=o?0:e.length-1,s=null,a=o?1:-1,l=[],c=0;void 0!==t[n];n+=a){var d=e[r]===t[n];if(d||null!==s&&u.SPACE_REG_EXP.test(t[n])?(null!==s&&o||(s=n),l.push(t[n]),d&&(c+=1,r+=a)):(s=null,c=l.length=0,r=o?0:e.length-1),c===e.length)return!i||s}return i?null!==s&&s:!!l.length&&(o?l.join(""):l.reverse().join(""))},p.prototype.boundAlreadyWas=function(t,e){return e.some(function(e){return e.startContainer===t.startContainer&&e.endContainer===t.endContainer&&e.startOffset===t.startOffset&&e.endOffset===t.endOffset},!1)},p.prototype.tryScrollToElement=function(e){var t=g.Dom.closest(e,function(e){return e&&e.nodeType===Node.ELEMENT_NODE},this.jodit.editor);t||(t=g.Dom.prev(e,function(e){return e&&e.nodeType===Node.ELEMENT_NODE},this.jodit.editor)),t&&t!==this.jodit.editor&&t.scrollIntoView()},p}(g.Component)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(4),a=o(1),l=o(2);a.Config.prototype.toolbarSticky=!0,a.Config.prototype.toolbarDisableStickyForMobile=!0,a.Config.prototype.toolbarStickyOffset=0,t.sticky=function(e){function t(i){var n=e.call(this,i)||this;return n.isToolbarSticked=!1,n.createDummy=function(e){n.dummyBox||(n.dummyBox=n.jodit.ownerDocument.createElement("div"),n.dummyBox.classList.add("jodit_sticky-dummy_toolbar"),n.jodit.container.insertBefore(n.dummyBox,e))},n.addSticky=function(e){n.isToolbarSticked||(n.createDummy(e),n.jodit.container.classList.add("jodit_sticky"),n.isToolbarSticked=!0),r.css(e,{top:n.jodit.options.toolbarStickyOffset,width:n.jodit.container.offsetWidth}),r.css(n.dummyBox,{height:e.offsetHeight})},n.removeSticky=function(e){n.isToolbarSticked&&(r.css(e,{width:"",top:""}),n.jodit.container.classList.remove("jodit_sticky"),n.isToolbarSticked=!1)},i.events.on("afterInit",function(){i.events.on(i.ownerWindow,"scroll wheel mousewheel resize",function(){var e=i.ownerWindow.pageYOffset||i.ownerDocument.documentElement.scrollTop,t=r.offset(i.container,i,i.ownerDocument,!0),o=i.getMode()===l.MODE_WYSIWYG&&e+i.options.toolbarStickyOffset>t.top&&t.top+t.height>e+i.options.toolbarStickyOffset&&!(i.options.toolbarDisableStickyForMobile&&n.isMobile());i.options.toolbarSticky&&i.options.toolbar&&(o?n.addSticky(i.toolbar.container):n.removeSticky(i.toolbar.container)),i.events.fire("toggleSticky",o)})}),n}return n(t,e),t.prototype.isMobile=function(){return this.jodit&&this.jodit.options&&this.jodit.container&&this.jodit.options.sizeSM>=this.jodit.container.offsetWidth},t}(s.Component)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(10),a=o(0),l=o(2);r.Config.prototype.showCharsCounter=!0,r.Config.prototype.showWordsCounter=!0,t.stat=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.calc=a.throttle(function(){var e=t.jodit.getEditorText();t.jodit.options.showCharsCounter&&(t.charCounter.innerText=t.jodit.i18n("Chars: %d",e.replace(l.SPACE_REG_EXP,"").length)),t.jodit.options.showWordsCounter&&(t.wordCounter.innerText=t.jodit.i18n("Words: %d",e.replace(l.INVISIBLE_SPACE_REG_EXP,"").split(l.SPACE_REG_EXP).filter(function(e){return e.length}).length))},t.jodit.defaultTimeout),t}return n(t,e),t.prototype.afterInit=function(){this.jodit.options.showCharsCounter&&(this.charCounter=this.jodit.ownerDocument.createElement("span"),this.jodit.statusbar.append(this.charCounter,!0)),this.jodit.options.showWordsCounter&&(this.wordCounter=this.jodit.ownerDocument.createElement("span"),this.jodit.statusbar.append(this.wordCounter,!0)),this.jodit.events.on("change",this.calc),this.calc()},t}(s.Plugin)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__assign||Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e};Object.defineProperty(t,"__esModule",{value:!0});var s=o(1),a=o(10),l=o(0),c=o(3),d=o(2),u=o(20),h=o(14);s.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},s.Config.prototype.showXPathInStatusbar=!0,t.xpath=function(e){function t(){var s=null!==e&&e.apply(this,arguments)||this;return s.onContext=function(e,t){return s.menu||(s.menu=new u.ContextMenu(s.jodit)),s.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===s.jodit.editor?"Clear":"Remove",exec:function(){e!==s.jodit.editor?e.parentNode&&e.parentNode.removeChild(e):s.jodit.value="",s.jodit.setEditorValue()}},{icon:"select-all",title:"Select",exec:function(){s.jodit.selection.select(e)}}]),!1},s.onSelectPath=function(e,t){s.jodit.selection.focus();var o=t.target.getAttribute("data-path")||"/";if("/"===o)return s.jodit.execCommand("selectall"),!1;try{var i=s.jodit.editorDocument.evaluate(o,s.jodit.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(i)return s.jodit.selection.select(i),!1}catch(e){}return s.jodit.selection.select(e),!1},s.tpl=function(e,t,o,i){var n=l.dom('<li><a role="button" data-path="'+t+'" href="javascript:void(0)" title="'+i+'" tabindex="-1">'+o+"</a></li>",s.jodit.ownerDocument),r=n.firstChild;return s.jodit.events.on(r,"click",s.onSelectPath.bind(s,e)).on(r,"contextmenu",s.onContext.bind(s,e)),n},s.appendSelectAll=function(){var e=new h.ToolbarButton(s.jodit,r({name:"selectall"},s.jodit.options.controls.selectall,{tooltip:""}));s.container.insertBefore(e.container,s.container.firstChild)},s.calcPathImd=function(){var e=s.jodit.selection.current();s.container.innerHTML=d.INVISIBLE_SPACE,e&&c.Dom.up(e,function(e){if(s.jodit.editor!==e&&e.nodeType!==Node.TEXT_NODE){var t=e.nodeName.toLowerCase(),o=l.getXPathByElement(e,s.jodit.editor).replace(/^\//,""),i=s.tpl(e,o,t,s.jodit.i18n("Select %s",t));s.container.insertBefore(i,s.container.firstChild)}1},s.jodit.editor),s.appendSelectAll()},s.calcPath=l.debounce(s.calcPathImd,2*s.jodit.defaultTimeout),s}return n(t,e),t.prototype.afterInit=function(){var e=this;this.jodit.options.showXPathInStatusbar&&(this.container=this.jodit.ownerDocument.createElement("ul"),this.container.classList.add("jodit_xpath"),this.jodit.statusbar.append(this.container),this.jodit.events.on("mouseup change keydown changeSelection",this.calcPath).on("afterSetMode afterInit",function(){e.jodit.getRealMode()===d.MODE_WYSIWYG?e.calcPath():(e.container.innerHTML=d.INVISIBLE_SPACE,e.appendSelectAll())}),this.calcPath())},t}(a.Plugin)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(10),l=o(0),s=o(2),c=o(3);t.DragAndDrop=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.isFragmentFromEditor=!1,a.isCopyMode=!1,a.startDragPoint={x:0,y:0},a.draggable=null,a.onDragEnd=function(){a.draggable&&(a.draggable.parentNode&&a.draggable.parentNode.removeChild(a.draggable),a.draggable=null),a.isCopyMode=!1},a.onDrag=l.throttle(function(e){a.draggable&&(a.draggable.parentNode||a.jodit.ownerDocument.body.appendChild(a.draggable),a.jodit.events.fire("hidePopup"),l.css(a.draggable,{left:e.clientX+20,top:e.clientY+20}))},10),a.bufferRange=null,a.onDragStart=function(e){var t=e.target;if(a.onDragEnd(),a.isFragmentFromEditor=c.Dom.isOrContains(a.jodit.editor,t,!0),a.isCopyMode=!a.isFragmentFromEditor||l.ctrlKey(e),a.isFragmentFromEditor){var o=a.jodit.editorWindow.getSelection(),i=o.rangeCount?o.getRangeAt(0):null;i&&(a.bufferRange=i.cloneRange())}else a.bufferRange=null;a.startDragPoint.x=e.clientX,a.startDragPoint.y=e.clientY,t.nodeType===Node.ELEMENT_NODE&&t.matches(".jodit_filebrowser_files_item")&&(t=t.querySelector("img")),"IMG"===t.nodeName&&(a.draggable=t.cloneNode(!0),l.dataBind(a.draggable,"target",t),l.css(a.draggable,{"z-index":1e14,position:"fixed",display:"inlin-block",left:a.startDragPoint.x,top:a.startDragPoint.y,width:t.offsetWidth,height:t.offsetHeight}))},a.getDataTransfer=function(e){return e.dataTransfer},a.getText=function(e){var t=a.getDataTransfer(e);return t.getData(s.TEXT_HTML)||t.getData(s.TEXT_PLAIN)},a.onDrop=function(e){if(!e.dataTransfer.files||!e.dataTransfer.files.length){if(!a.isFragmentFromEditor&&!a.draggable)return a.jodit.events.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;var t=a.jodit.editorWindow.getSelection(),o=a.bufferRange||(t.rangeCount?t.getRangeAt(0):null),i=null;if(!a.draggable&&o)i=a.isCopyMode?o.cloneContents():o.extractContents();else if(a.draggable)if(a.isCopyMode){var n="1"===a.draggable.getAttribute("data-is-file")?["a","href"]:["img","src"],r=n[0],s=n[1];(i=a.jodit.editorDocument.createElement(r)).setAttribute(s,a.draggable.getAttribute("data-src")||a.draggable.getAttribute("src")||""),"a"===r&&(i.innerText=i.getAttribute(s)||"")}else i=l.dataBind(a.draggable,"target");else a.getText(e)&&(i=l.dom(a.getText(e),a.jodit.editorDocument));t.removeAllRanges(),a.jodit.selection.insertCursorAtPoint(e.clientX,e.clientY),i&&(a.jodit.selection.insertNode(i,!1,!1),o&&i.firstChild&&i.lastChild&&(o.setStartBefore(i.firstChild),o.setEndAfter(i.lastChild),a.jodit.selection.selectRange(o),a.jodit.events.fire("synchro")),"IMG"===i.nodeName&&a.jodit.events&&a.jodit.events.fire("afterInsertImage",i)),e.preventDefault(),e.stopPropagation()}a.isFragmentFromEditor=!1},a}return n(t,e),t.prototype.afterInit=function(){this.jodit.events.on(window,"dragover",this.onDrag).on([window,this.jodit.editorDocument,this.jodit.editor],"dragstart",this.onDragStart).on("drop",this.onDrop).on(window,"dragend drop mouseup",this.onDragEnd)},t.prototype.beforeDestruct=function(){this.onDragEnd()},t}(r.Plugin)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(10),s=o(7),a=o(2),l=o(0);t.pasteStorage=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.currentIndex=0,i.paste=function(){if(i.jodit.selection.focus(),i.jodit.selection.insertHTML(i.list[i.currentIndex]),0!==i.currentIndex){var e=i.list[0];i.list[0]=i.list[i.currentIndex],i.list[i.currentIndex]=e}i.dialog.close(),i.jodit.setEditorValue()},i.onKeyDown=function(e){var t=i.currentIndex;if(-1!==[a.KEY_UP,a.KEY_DOWN,a.KEY_ENTER].indexOf(e.which)){if(e.which===a.KEY_UP&&(0===t?t=i.list.length-1:t-=1),e.which===a.KEY_DOWN&&(t===i.list.length-1?t=0:t+=1),e.which===a.KEY_ENTER)return void i.paste();t!==i.currentIndex&&i.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()}},i.selectIndex=function(o){[].slice.call(i.listBox.childNodes).forEach(function(e,t){e.classList.remove("jodit_active"),o===t&&(e.classList.add("jodit_active"),i.previewBox.innerHTML=i.list[o],e.focus())}),i.currentIndex=o},i.showDialog=function(){i.list.length<2||(i.dialog||i.createDialog(),i.listBox.innerHTML="",i.previewBox.innerHTML="",i.list.forEach(function(e,t){var o=i.jodit.ownerDocument.createElement("a");o.innerText=t+1+". "+e.replace(a.SPACE_REG_EXP,""),o.addEventListener("keydown",i.onKeyDown),o.setAttribute("href","javascript:void(0)"),o.setAttribute("data-index",""+t),o.setAttribute("tab-index","-1"),i.listBox.appendChild(o)}),i.dialog.open(),setTimeout(function(){i.selectIndex(0)},100))},i.list=[],i}return n(t,e),t.prototype.createDialog=function(){var o=this;this.dialog=new s.Dialog(this.jodit);var e=l.dom('<a href="javascript:void(0)" style="float:right;" class="jodit_button"><span>'+this.jodit.i18n("Paste")+"</span></a>",this.jodit.ownerDocument);e.addEventListener("click",this.paste);var t=l.dom('<a href="javascript:void(0)" style="float:right; margin-right: 10px;" class="jodit_button"><span>'+this.jodit.i18n("Cancel")+"</span></a>",this.jodit.ownerDocument);t.addEventListener("click",this.dialog.close),this.container=this.jodit.ownerDocument.createElement("div"),this.container.classList.add("jodit_paste_storage"),this.listBox=this.jodit.ownerDocument.createElement("div"),this.previewBox=this.jodit.ownerDocument.createElement("div"),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setTitle(this.jodit.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.jodit.events.on(this.listBox,"click dblclick",function(e){var t=e.target;return t&&"A"===t.nodeName&&t.hasAttribute("data-index")&&o.selectIndex(parseInt(t.getAttribute("data-index")||"0",10)),"dblclick"===e.type&&o.paste(),!1},"a")},t.prototype.afterInit=function(){var t=this;this.jodit.events.on("afterCopy",function(e){-1!==t.list.indexOf(e)&&t.list.splice(t.list.indexOf(e),1),t.list.unshift(e),5<t.list.length&&(t.list.length=5)}),this.jodit.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:"ctrl+shift+v"})},t}(r.Plugin)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.de=o(81).default,t.en=o(82).default,t.fr=o(83).default,t.ru=o(84).default,t.ar=o(85).default,t.zh_cn=o(86).default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"Type something":"Bitte geben Sie einen Text ein",Advanced:"Fortgeschritten","About Jodit":"Über Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Freie Nicht-kommerzielle Version","GNU General Public License, version 2 or later":"GNU General Public License, Version 2 oder höher","Jodit User's Guide":"Das Jodit Benutzerhandbuch","contains detailed help for using":"beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.","For information about the license, please go to our website:":"Für Lizenz-Informationen, besuchen Sie bitte unsere Webseite:","Buy full version":"Vollversion kaufen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.",Anchor:"Anker","Open in new tab":"In neuer Registerkarte öffnen","Open editor in fullsize":"Editor in voller Größe öffnen","Clear Formatting":"Formatierung löschen","Fill color or set the text color":"Füllfarbe oder Textfarbe ändern",Redo:"Wiederholen",Undo:"Rückgängig machen",Bold:"Fett",Italic:"Kursiv","Insert Unordered List":"Ungeordnete Liste einfügen","Insert Ordered List":"Sortierte Liste einfügen","Align Center":"Mittig ausrichten","Align Justify":"Blocksatz","Align Left":"Links ausrichten","Align Right":"Rechts ausrichten","Insert Horizontal Line":"Horizontale Linie einfügen","Insert Image":"Bild einfügen","Insert file":"Datei einfügen","Insert youtube/vimeo video":"Youtube/vimeo Video einfügen","Insert link":"Link einfügen","Font size":"Schriftgröße","Font family":"Schriftfamilie","Insert format block":"Formatblock einfügen",Normal:"Normal","Heading 1":"Überschrift 1","Heading 2":"Überschrift 2","Heading 3":"Überschrift 3","Heading 4":"Überschrift 4",Quote:"Zitat",Code:"Code",Insert:"Einfügen","Insert table":"Tabelle einfügen","Decrease Indent":"Einzug verkleinern","Increase Indent":"Einzug vergrößern","Select Special Character":"Sonderzeichen auswählen","Insert Special Character":"Sonderzeichen einfügen","Paint format":"Format kopieren","Change mode":"Änderungsmodus",Margins:"Ränder",top:"Oben",right:"Rechts",bottom:"Unten",left:"Links",Styles:"CSS Stiel",Classes:"CSS Klassen",Align:"Ausrichten",Right:"Rechts",Center:"Zentriert",Left:"Links","--Not Set--":"Keine",Src:"Pfad",Title:"Titel",Alternative:"Alternativer Text",Link:"Link","Open link in new tab":"Link in neuem Tab öffnen",Image:"Bild",file:"Datei",Advansed:"Erweitert","Image properties":"Bildeigenschaften",Cancel:"Abbrechen",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Es scheint als dass Sie HTML-Text einfügen möchten","Paste as HTML":"Als HTML einfügen?",Keep:"Original speichern",Clean:"Säubern","Insert as Text":"Als Text einfügen","Word Paste Detected":"InWord formatierter Text erkannt","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?","Insert only Text":"Als Text einfügen","File Browser":"Dateibrowser","Error on load list":"Fehler beim Laden der Liste","Error on load folders":"Fehler beim Laden der Ordner","Are you sure?":"Sind Sie sicher?","Enter Directory name":"Geben Sie den Verzeichnisnamen ein","Create directory":"Verzeichnis erstellen","type name":"Typname","Drop image":"Bild hier hinziehen","Drop file":"Datei löschen","or click":"oder hier klicken","Alternative text":"Alternativtext",Browse:"Auswählen",Upload:"Hochladen",Background:"Hintergrund",Text:"Text",Top:"Oben",Middle:"Mittig",Bottom:"Unten","Insert column before":"Spalte einfügen vor","Insert column after":"Spalte einfügen nach","Insert row above":"Zeile einfügen oberhalb","Insert row below":"Zeile unterhalb einfügen","Delete table":"Tabelle löschen","Delete row":"Zeile löschen","Delete column":"Spalte löschen","Empty cell":"Leere Zelle",Delete:"Löschen","Strike through":"Durchschlagen",Underline:"Unterstreichen",Break:"Pause","Search for":"Suche nach","Replace with":"Ersetzen durch",Replace:"Ersetzen",Edit:"Bearbeiten","Vertical align":"Vertikale Ausrichtung","Horizontal align":"Horizontale Ausrichtung",Filter:"filter","Sort by changed":"Sortieren nach geändert","Sort by name":"Nach Name sortieren","Sort by size":"Nach Größe sortiert","Add folder":"Ordner hinzufügen","Split vertical":"Split vertikal","Split horizontal":"Split horizontally",Merge:"Verschmelzen","Add column":"Spalte hinzufügen","Add row":"Zeile hinzufügen",Border:"Rand","Embed code":"Code einbetten",Update:"Aktualisieren",superscript:"hochgestellt",subscript:"Index","Cut selection":"Auswahl ausschneid",Paste:"Einfügen","Choose Content to Paste":"Wählen Sie Inhalt zum Einfügen","Chars: %d":"Zeichen: %d","Words: %d":"Wörter: %d",All:"Wählen Sie Alle aus","Select %s":"Markieren: %s","Select all":"Wählen Sie Alle aus",source:"HTML",bold:"Fett gedruckt",italic:"kursiv",brush:"Bürste",link:"Verknüpfung",undo:"rückgängig machen",redo:"wiederholen",table:"Tabelle",image:"Bild",eraser:"Radiergummi",paragraph:"Absatz",fontsize:"Schriftgröße",video:"Video",font:"Schriftart",about:"Über",print:"drucken",symbol:"Symbol",underline:"unterstreichen",strikethrough:"durchgestrichen",indent:"Einzug",outdent:"Aussenseiter",fullsize:"Vollgröße",shrink:"schrumpfen",copyformat:"Format kopierenт",hr:"die Linie",ul:"Liste von",ol:"Nummerierte Liste",cut:"Schnitt",selectall:"Wählen Sie Alle aus","Open link":"Link öffnen","Edit link":"Link bearbeiten","No follow":"Nofollow-Attribut",Unlink:"Link entfernen"," URL":"URL",Reset:"Wiederherstellen",Save:"Speichern","Save as ...":"Speichern als",Resize:"Ändern Sie die Größe",Crop:"Größe anpassen",Width:"Breite",Height:"Höhe","Keep Aspect Ratio":"Halten Sie Proportionen",Yes:"Ja",No:"Nein",Remove:"Entfernen",Select:"Markieren","You can only edit your own images. Download this image on the host?":"Sie können nur Ihre eigenen Bilder bearbeiten. Laden Sie dieses Bild auf dem Host herunter?","The image has been successfully uploaded to the host!":"Das Bild wurde erfolgreich auf den Server hochgeladen!null"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"Type something":"Start writing..."}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"Type something":"Ecrivez ici","About Jodit":"A propos de Jodit","Jodit Editor":"Editeur Jodit","Free Non-commercial Version":"Version gratuite, non commerciale","GNU General Public License, version 2 or later":"GNU General Public License, version 2 ou ultérieure","Jodit User's Guide":"Guide de l'utilisateur","contains detailed help for using":"Aide détaillée à l'utilisation","For information about the license, please go to our website:":"Consulter la licence sur notre site web:","Buy full version":"Acheter la version complète","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open editor in fullsize":"Ouvrir l'éditeur en pleine page","Clear Formatting":"Supprimer le formattage","Fill color or set the text color":"Modifier la couleur du fond ou du texte",Redo:"Refaire",Undo:"Défaire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonnée","Insert Ordered List":"Liste ordonnée","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner à gauche ","Align Right":"Aligner à droite","Insert Horizontal Line":"Insérer une ligne horizontale","Insert Image":"Insérer une image","Insert file":"Insérer un fichier","Insert youtube/vimeo video":"Insérer une vidéo","Insert link":"Insérer un lien","Font size":"Taille des caractères","Font family":"Famille des caractères","Insert format block":"Bloc formatté",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Insérer","Insert table":"Insérer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"Sélectionnez un caractère spécial","Insert Special Character":"Insérer un caractère spécial","Paint format":"Cloner le format","Change mode":"Mode wysiwyg <-> code html",Margins:"Marges",top:"haut",right:"droite",bottom:"Bas",left:"gauche",Styles:"Styles",Classes:"Classes",Align:"Alignement",Right:"Droite",Center:"Centre",Left:"Gauche","--Not Set--":"--Non disponible--",Src:"Source",Title:"Titre",Alternative:"Alternative",Filter:"Filtre",Link:"Lien","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Image:"Image",file:"fichier",Advanced:"Avancé","Image properties":"Propriétés de l'image",Cancel:"Effacer",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?","Paste as HTML":"Coller en HTML?",Keep:"Sauvegarder l'original",Clean:"Nettoyer","Insert as Text":"Coller en tant que texte","Word Paste Detected":"C'est peut-être un fragment de Word ou Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?","Insert only Text":"Coller le texte seulement","File Browser":"Explorateur de fichiers","Error on load list":"Erreur de liste de chargement","Error on load folders":"Erreur de dossier de chargement","Are you sure?":"Etes-vous sûrs ?","Enter Directory name":"Entrer le non de dossier","Create directory":"Créer un dossier","type name":"type de fichier","Drop image":"Coller une image","Drop file":"Déposer un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arrière-plan",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Insert row above":"Insérer une ligne en dessus","Insert row below":"Insérer une ligne en dessous","Delete table":"Supprimer le tableau","Delete row":"Supprimer la ligne","Delete column":"Supprimer la colonne","Empty cell":"Vider la cellule","Chars: %d":"Symboles: %d","Words: %d":"Mots: %d","Strike through":"Frapper à travers",Underline:"Souligner",superscript:"exposant",subscript:"indice","Cut selection":"Couper la sélection","Select all":"Tout sélectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu à coller",source:"la source",bold:"graisseux",italic:"italique",brush:"verser",link:"lien",undo:"abolir",redo:"prêt",table:"graphique",image:"Image",eraser:"la gommen",paragraph:"clause",fontsize:"taille de police",video:"Video",font:"police",about:"à propos de l'éditeur",print:"impression",symbol:"caractère",underline:"souligné",strikethrough:"barré",indent:"indentation",outdent:"indifférent",fullsize:"taille réelle",shrink:"taille conventionnelle",copyformat:"Format de copie",hr:"la ligne",ul:"Liste des",ol:"Liste numérotée",cut:"Couper",selectall:"Sélectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien"," URL":"URL",Reset:"Restaurer",Save:"Sauvegarder","Save as ...":"Enregistrer sous",Resize:"Changer la taille",Crop:"Taille de garniture",Width:"Largeur",Height:"Hauteur","Keep Aspect Ratio":"Garder les proportions",Yes:"Oui",No:"Non",Remove:"Supprimer",Select:"Mettre en évidence","Select %s":"Mettre en évidence: %s",Update:"Mettre à jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rangée",Delete:"Effacer","Horizontal align":"Alignement horizontal","Sort by changed":"Trier par modifié","Sort by name":"Trier par nom","Sort by size":"Classer par taille","Add folder":"Ajouter le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?","The image has been successfully uploaded to the host!":"L'image a été téléchargée avec succès sur le serveur!null"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"Type something":"Напишите что-либо","About Jodit":"О Jodit","Jodit Editor":"Редактор Jodit","Free Non-commercial Version":"Версия для не коммерческого использования","GNU General Public License, version 2 or later":"Стандартная общественная лицензия GNU (GPL), версия 2 или выше","Jodit User's Guide":"Jodit Руководство пользователя","contains detailed help for using":"содержит детальную информацию по использованию","For information about the license, please go to our website:":"Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:","Buy full version":"Купить полную версию","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open editor in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Выровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",Image:"Изображение",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Отчистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",symbol:"символ",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",copyformat:"Копировать формат",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объеденить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"Type something":"إبدأ في الكتابة...","About Jodit":"حول جوديت","Jodit Editor":"محرر جوديت","Free Non-commercial Version":"الإصدار الغير تجاري مجاني","GNU General Public License, version 2 or later":"رخصة جنو العمومية العامة ، الإصدار الثاني أو الأحدث","Jodit User's Guide":"دليل مستخدم جوديت","contains detailed help for using":"يحتوي على مساعدة مفصلة للاستخدام","For information about the license, please go to our website:":"للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:","Buy full version":"شراء النسخة الكاملة","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.",Anchor:"مِرْساة","Open in new tab":"فتح في نافذة جديدة","Open editor in fullsize":"فتح المحرر في الحجم الكامل","Clear Formatting":"مسح التنسيق","Fill color or set the text color":"ملء اللون أو تعيين لون النص",Redo:"إعادة",Undo:"تراجع",Bold:"عريض",Italic:"مائل","Insert Unordered List":"إدراج قائمة غير مرتبة","Insert Ordered List":"إدراج قائمة مرتبة","Align Center":"محاذاة للوسط","Align Justify":"محاذاة مثبتة","Align Left":"محاذاة لليسار","Align Right":"محاذاة لليمين","Insert Horizontal Line":"إدراج خط أفقي","Insert Image":"إدراج صورة","Insert file":"ادخال الملف","Insert youtube/vimeo video":"إدراج فيديو يوتيوب/فيميو ","Insert link":"إدراج رابط","Font size":"حجم الخط","Font family":"نوع الخط","Insert format block":"إدراج كتلة تنسيق",Normal:"عادي","Heading 1":"عنوان 1","Heading 2":"عنوان 2","Heading 3":"عنوان 3","Heading 4":"عنوان 4",Quote:"إقتباس",Code:"كود",Insert:"إدراج","Insert table":"إدراج جدول","Decrease Indent":"تقليل المسافة البادئة","Increase Indent":"زيادة المسافة البادئة","Select Special Character":"تحديد أحرف خاصة","Insert Special Character":"إدراج حرف خاص","Paint format":"تنسيق الرسم","Change mode":"تغيير الوضع",Margins:"هوامش",top:"أعلى",right:"يمين",bottom:"أسفل",left:"يسار",Styles:"الأنماط",Classes:"الطبقات",Align:"محاذاة",Right:"اليمين",Center:"الوسط",Left:"اليسار","--Not Set--":"--غير مضبوط--",Src:"Src",Title:"العنوان",Alternative:"العنوان البديل",Link:"الرابط","Open link in new tab":"افتح الرابط في نافذة جديدة",Image:"الصورة",file:"ملف",Advanced:"متقدم","Image properties":"خصائص الصورة",Cancel:"إلغاء",Ok:"حسنا","File Browser":"متصفح الملفات","Error on load list":"حدث خطأ في تحميل القائمة ","Error on load folders":"حدث خطأ في تحميل المجلدات","Are you sure?":"هل أنت واثق؟","Enter Directory name":"أدخل اسم المجلد","Create directory":"إنشاء مجلد","type name":"أكتب إسم","Drop image":"إسقاط صورة","Drop file":"إسقاط الملف","or click":"أو أنقر","Alternative text":"النص البديل",Upload:"رفع",Browse:"تصفح",Background:"الخلفية",Text:"نص",Top:"أعلى",Middle:"الوسط",Bottom:"الأسفل","Insert column before":"إدراج عمود قبل","Insert column after":"إدراج عمود بعد","Insert row above":"إدراج صف أعلى","Insert row below":"إدراج صف أسفل","Delete table":"حذف الجدول","Delete row":"حذف الصف","Delete column":"حذف العمود","Empty cell":"خلية فارغة","Chars: %d":"%d حرف","Words: %d":"%d كلام","Strike through":"اضرب من خلال",Underline:"أكد",superscript:"حرف فوقي",subscript:"مخطوطة","Cut selection":"قطع الاختيار","Select all":"اختر الكل",Break:"استراحة","Search for":"البحث عن","Replace with":"استبدل ب",Replace:"يحل محل",Paste:"معجون","Choose Content to Paste":"اختر محتوى للصق",source:"مصدر",bold:"بالخط العريض",italic:"مائل",brush:"شغل",link:"صلة",undo:"إلغاء",redo:"كرر",table:"طاولة",image:"صورة",eraser:"نظيف",paragraph:"فقرة",fontsize:"حجم الخط",video:"فيديو",font:"الخط",about:"حول المحرر",print:"طباعة",symbol:"رمز",underline:"أكد",strikethrough:"شطب",indent:"المسافة البادئة",outdent:"نتوء",fullsize:"ملء الشاشة",shrink:"الحجم التقليدي",copyformat:"نسخ التنسيق",hr:"الخط",ul:"قائمة",ol:"قائمة مرقمة",cut:"قطع",selectall:"اختر الكل","Embed code":"قانون","Open link":"فتح الرابط","Edit link":"تعديل الرابط","No follow":"سمة Nofollow",Unlink:"إزالة الرابط",Update:"تحديث"," URL":"URL",Edit:"تحرير","Horizontal align":"محاذاة أفقية",Filter:"فلتر","Sort by changed":"عن طريق التغيير","Sort by name":"بالاسم","Sort by size":"حسب الحجم","Add folder":"إضافة مجلد",Reset:"إعادة",Save:"احتفظ","Save as ...":"حفظ باسم",Resize:"تغيير الحجم",Crop:"حجم القطع",Width:"عرض",Height:"ارتفاع","Keep Aspect Ratio":"حافظ على النسب",Yes:"أن",No:"لا",Remove:"حذف",Select:"تميز","Select %s":"تميز %s","Vertical align":"محاذاة عمودية",Split:"انشق، مزق",Merge:"اذهب","Add column":"أضف العمود","Add row":"اضف سطر","License: %s":"رخصة %s",Delete:"حذف","Split vertical":"انقسام عمودي","Split horizontal":"تقسيم أفقي",Border:"الحدود","Your code is similar to HTML. Keep as HTML?":"يشبه الكود الخاص بك HTML. تبقي كما HTML؟","Paste as HTML":"الصق ك HTML",Keep:"احتفظ","Insert as Text":"إدراج كنص","Insert only Text":"إدراج النص فقط","You can only edit your own images. Download this image on the host?":"يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟","The image has been successfully uploaded to the host!":"تم تحميل الصورة بنجاح على الخادم!"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"Type something":"输入一些内容",Advanced:"高级","About Jodit":"关于Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Free Non-commercial Version","GNU General Public License, version 2 or later":"GNU General Public License, version 2 or later","Jodit User's Guide":"开发者指南","contains detailed help for using":"使用帮助","For information about the license, please go to our website:":"有关许可证的信息，请访问我们的网站：","Buy full version":"购买完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"Anchor","Open in new tab":"在新窗口打开","Open editor in fullsize":"全屏编辑","Clear Formatting":"清除样式","Fill color or set the text color":"颜色",Redo:"重做",Undo:"撤销",Bold:"粗体",Italic:"斜体","Insert Unordered List":"符号列表","Insert Ordered List":"编号","Align Center":"居中","Align Justify":"对齐文本","Align Left":"左对齐","Align Right":"右对齐","Insert Horizontal Line":"分割线","Insert Image":"图片","Insert file":"文件","Insert youtube/vimeo video":"youtube/vimeo 视频","Insert link":"链接","Font size":"字号","Font family":"字体","Insert format block":"格式块",Normal:"文本","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4",Quote:"引用",Code:"代码",Insert:"插入","Insert table":"表格","Decrease Indent":"减少缩进","Increase Indent":"增加缩进","Select Special Character":"选择特殊符号","Insert Special Character":"特殊符号","Paint format":"格式复制","Change mode":"改变模式",Margins:"外边距（Margins）",top:"top",right:"right",bottom:"bottom",left:"left",Styles:"样式",Classes:"Classes",Align:"对齐方式",Right:"居右",Center:"居中",Left:"居左","--Not Set--":"无",Src:"Src",Title:"Title",Alternative:"Alternative",Link:"Link","Open link in new tab":"在新窗口打开链接",Image:"图片",file:"file",Advansed:"高级","Image properties":"图片属性",Cancel:"取消",Ok:"确定","Your code is similar to HTML. Keep as HTML?":"你粘贴的文本是一段html代码，是否保留源格式","Paste as HTML":"html粘贴",Keep:"保留源格式",Clean:"匹配目标格式","Insert as Text":"把html代码视为普通文本","Word Paste Detected":"文本粘贴","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在粘贴 Word/Excel 的文本，是否保留源格式？","Insert only Text":"只保留文本","File Browser":"文件管理","Error on load list":"加载list错误","Error on load folders":"加载folders错误","Are you sure?":"你确定吗？","Enter Directory name":"输入路径","Create directory":"创建路径","type name":"type name","Drop image":"拖动图片到此","Drop file":"拖动文件到此","or click":"或点击","Alternative text":"Alternative text",Browse:"浏览",Upload:"上传",Background:"背景色",Text:"字体颜色",Top:"顶部",Middle:"中间",Bottom:"底部","Insert column before":"在之前插入列","Insert column after":"在之后插入列","Insert row above":"在之前插入行","Insert row below":"在之后插入行","Delete table":"删除表格","Delete row":"删除行","Delete column":"删除列","Empty cell":"清除内容","Chars: %d":"字符数: %d","Words: %d":"单词数: %d","Strike through":"删除线",Underline:"下划线",superscript:"上标",subscript:"下标","Cut selection":"剪切","Select all":"全选",Break:"Pause","Search for":"查找","Replace with":"替换为",Replace:"替换",Paste:"粘贴","Choose Content to Paste":"选择内容并粘贴",source:"源码",bold:"粗体",italic:"斜体",brush:"颜色",link:"链接",undo:"撤销",redo:"重做",table:"表格",image:"图片",eraser:"橡皮擦",paragraph:"段落",fontsize:"字号",video:"视频",font:"字体",about:"关于",print:"打印",symbol:"符号",underline:"下划线",strikethrough:"上出现",indent:"增加缩进",outdent:"减少缩进",fullsize:"全屏",shrink:"收缩",copyformat:"复制格式",hr:"分割线",ul:"无序列表",ol:"顺序列表",cut:"剪切",selectall:"全选","Open link":"打开链接","Edit link":"编辑链接","No follow":"No follow",Unlink:"Unlink"," URL":"URL",Reset:"重置",Save:"保存","Save as ...":"保存为",Resize:"调整大小",Crop:"Crop",Width:"宽",Height:"高","Keep Aspect Ratio":"保存长宽比",Yes:"是",No:"不",Remove:"移除",Select:"选择","Select %s":"选择: %s",Update:"更新","Vertical align":"垂直对齐",Merge:"合并","Add column":"添加列","Add row":"添加行",Delete:"删除","Horizontal align":"水平对齐",Filter:"筛选","Sort by changed":"修改时间排序","Sort by name":"名称排序","Sort by size":"大小排序","Add folder":"新建文件夹","You can only edit your own images. Download this image on the host?":"你只能编辑你自己的图片。Download this image on the host?","The image has been successfully uploaded to the host!":"图片上传成功"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.about=o(88),t.addcolumn=o(89),t.addrow=o(90),t.angle_left=o(91),t.angle_down=o(92),t.angle_right=o(93),t.angle_up=o(94),t.arrows_alt=o(95),t.arrows_h=o(96),t.attachment=o(97),t.bin=o(98),t.dots=o(99),t.bold=o(100),t.brush=o(101),t.cancel=o(102),t.center=o(103),t.chain_broken=o(104),t.check_square=o(105),t.check=o(106),t.copyformat=o(107),t.crop=o(108),t.cut=o(109),t.dedent=o(110),t.enter=o(111),t.eraser=o(112),t.eye=o(113),t.file=o(114),t.folder=o(115),t.font=o(116),t.fontsize=o(117),t.fullsize=o(118),t.hr=o(119),t.image=o(120),t.info_circle=o(121),t.italic=o(122),t.justify=o(123),t.left=o(124),t.link=o(125),t.lock=o(126),t.menu=o(127),t.merge=o(128),t.ol=o(129),t.paragraph=o(130),t.pencil=o(131),t.plus=o(132),t.redo=o(133),t.resize=o(134),t.resizer=o(135),t.right=o(136),t.save=o(137),t.select_all=o(138),t.shrink=o(139),t.source=o(140),t.splitg=o(141),t.splitv=o(142),t.strikethrough=o(143),t.subscript=o(144),t.superscript=o(145),t.table=o(146),t.th_list=o(147),t.th=o(148),t.ul=o(149),t.underline=o(150),t.undo=o(151),t.unlink=o(152),t.unlock=o(153),t.update=o(154),t.upload=o(155),t.valign=o(156),t.video=o(157),t.outdent=o(158),t.indent=o(159),t.print=o(160),t.omega=o(161)},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 18.151 18.151"><g><g><path d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"></path><path d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"></path><polygon points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "></polygon></g></g></svg>'},function(e,t){e.exports='<svg viewBox="0 0 432 432"><g><g><polygon points="203.688,96 0,96 0,144 155.688,144 "></polygon><polygon points="155.719,288 0,288 0,336 203.719,336 "></polygon><rect x="252" y="96"></rect><rect></rect><rect x="252" y="288"></rect><rect y="384"></rect><path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"></path><polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176 "></polygon></g></g></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1411 541l-355 355 355 355 144-144q29-31 70-14 39 17 39 59v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l144-144-355-355-355 355 144 144q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l144 144 355-355-355-355-144 144q-19 19-45 19-12 0-24-5-40-17-40-59v-448q0-26 19-45t45-19h448q42 0 59 40 17 39-14 69l-144 144 355 355 355-355-144-144q-31-30-14-69 17-40 59-40h448q26 0 45 19t19 45v448q0 42-39 59-13 5-25 5-26 0-45-19z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1792 896q0 26-19 45l-256 256q-19 19-45 19t-45-19-19-45v-128h-1024v128q0 26-19 45t-45 19-45-19l-256-256q-19-19-19-45t19-45l256-256q19-19 45-19t45 19 19 45v128h1024v-128q0-26 19-45t45-19 45 19l256 256q19 19 19 45z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1596 1385q0 117-79 196t-196 79q-135 0-235-100l-777-776q-113-115-113-271 0-159 110-270t269-111q158 0 273 113l605 606q10 10 10 22 0 16-30.5 46.5t-46.5 30.5q-13 0-23-10l-606-607q-79-77-181-77-106 0-179 75t-73 181q0 105 76 181l776 777q63 63 145 63 64 0 106-42t42-106q0-82-63-145l-581-581q-26-24-60-24-29 0-48 19t-19 48q0 32 25 59l410 410q10 10 10 22 0 16-31 47t-47 31q-12 0-22-10l-410-410q-63-61-63-149 0-82 57-139t139-57q88 0 149 63l581 581q100 98 100 235z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"></path></svg>'},function(e,t){e.exports='<svg enable-background="new 0 0 24 24" viewBox="0 0 24 24" xml:space="preserve"><circle cx="12" cy="12" r="2.2"></circle><circle cx="12" cy="5" r="2.2"></circle><circle cx="12" cy="19" r="2.2"></circle></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 16 16"><g transform="translate(0,-1036.3622)"><path d="m 2,1050.3622 12,-12" style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"></path><path d="m 2,1038.3622 12,12" style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"></path></g></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M813 1299l614-614q19-19 19-45t-19-45l-102-102q-19-19-45-19t-45 19l-467 467-211-211q-19-19-45-19t-45 19l-102 102q-19 19-19 45t19 45l358 358q19 19 45 19t45-19zm851-883v960q0 119-84.5 203.5t-203.5 84.5h-960q-119 0-203.5-84.5t-84.5-203.5v-960q0-119 84.5-203.5t203.5-84.5h960q119 0 203.5 84.5t84.5 203.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 128 128" xml:space="preserve"><g><polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125 "></polygon></g></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 24 24"><path d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1664 1344v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 312.000000 312.000000"><g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"><path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"></path><path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"></path><path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"></path><path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"></path></g></svg>'},function(e,t){e.exports='<svg role="img" viewBox="0 0 1792 1792"><path d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"><title></title><desc></desc><defs></defs><g><g transform="translate(-251.000000, -443.000000)"><g transform="translate(215.000000, 119.000000)"></g><path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"></path></g></g></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M844 472q0 60-19 113.5t-63 92.5-105 39q-76 0-138-57.5t-92-135.5-30-151q0-60 19-113.5t63-92.5 105-39q77 0 138.5 57.5t91.5 135 30 151.5zm-342 483q0 80-42 139t-119 59q-76 0-141.5-55.5t-100.5-133.5-35-152q0-80 42-139.5t119-59.5q76 0 141.5 55.5t100.5 134 35 152.5zm394-27q118 0 255 97.5t229 237 92 254.5q0 46-17 76.5t-48.5 45-64.5 20-76 5.5q-68 0-187.5-45t-182.5-45q-66 0-192.5 44.5t-200.5 44.5q-183 0-183-146 0-86 56-191.5t139.5-192.5 187.5-146 193-59zm239-211q-61 0-105-39t-63-92.5-19-113.5q0-74 30-151.5t91.5-135 138.5-57.5q61 0 105 39t63 92.5 19 113.5q0 73-30 151t-92 135.5-138 57.5zm432-104q77 0 119 59.5t42 139.5q0 74-35 152t-100.5 133.5-141.5 55.5q-77 0-119-59t-42-139q0-74 35-152.5t100.5-134 141.5-55.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"><g fill-rule="evenodd" stroke="none" stroke-width="1"><g transform="translate(-381.000000, -381.000000)"><g transform="translate(381.000000, 381.000000)"><path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"></path></g></g></g></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 48 48"><path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"></path><path d="M0 0h48v48h-48z" fill="none"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 48 48"><path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"></path><path d="M0 0h48v48h-48z" fill="none"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 270 270"><path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"></path></svg>'}])},ihc.exports=nhc()}).call(jhc,khc(16))},function(e,t){var o,i,n=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(o===setTimeout)return setTimeout(t,0);if((o===r||!o)&&setTimeout)return o=setTimeout,setTimeout(t,0);try{return o(t,0)}catch(e){try{return o.call(null,t,0)}catch(e){return o.call(this,t,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:r}catch(e){o=r}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],d=!1,u=-1;function h(){d&&l&&(d=!1,l.length?c=l.concat(c):u=-1,c.length&&p())}function p(){if(!d){var e=a(h);d=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,d=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var o=1;o<arguments.length;o++)t[o-1]=arguments[o];c.push(new f(e,t)),1!==c.length||d||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{template:r.default,replace:!0,controller:["$scope",function(e){e.control.number||(e.control.number={}),e.control.number.min||(e.control.number.min=0)}]}};var i,n=o(18),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<label class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-property-control-number ea-editor-property-control"> <input ng-model=ngModel ng-model-options="{ debounce: 300 }" type=number ng-blur=setDefaultValueIfEmpty() min={{control.number.min}} max={{control.number.max}}> </div> </label>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{template:r.default,replace:!0,controller:["$scope","$sce",function(e,t){e.toTrustedHTML=function(e){return t.trustAsHtml(t.valueOf(e))}}]}};var i,n=o(20),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<label class=ea-editor-property-inner> <div class=ea-editor-property-label ng-if=control.name editor-hint=control.description>{{control.name}}</div> <div class="ea-editor-property-control-static-html ea-editor-property-control"> <div class=ea-editor-property-control-static-html-content ng-if="control.staticHtml && control.staticHtml.content" ng-bind-html=toTrustedHTML(control.staticHtml.content)> </div> </div> </label>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="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};t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope","$element","$timeout",function(o,e,i,n){var r=function(e,o,i){var n=void 0;return e.some(function(t){if(o.some(function(e){return t[e]===("object"===(void 0===i?"undefined":a(i))?i[e]:i)}))return n=t}),n};o.show=!1,o.readonly=!o.control.select.enableInput,o.currentValue=r(o.control.select.options,["value"],o.ngModel),o.showOptions=function(){!1===o.show&&(o.show=!0,o.binded=!1,o.show&&!o.binded&&i.bind("keydown keypress",function(e){o.binded=!0,38===e.keyCode?(o.currentValue=r(o.control.select.options,["name"],e.target.value),o.currentId=o.control.select.options.indexOf(o.currentValue),n(function(){s()}),e.preventDefault()):40===e.keyCode?(o.currentValue=r(o.control.select.options,["name"],e.target.value),o.currentId=o.control.select.options.indexOf(o.currentValue),n(function(){t()}),e.preventDefault()):13===e.keyCode&&(i[0].querySelector(".ea-editor-property-control-select input").blur(),o.hideOptions(),e.preventDefault())}),angular.element(document).bind("click",function(e){i[0]===e.target||i[0].contains(e.target)?e.preventDefault():o.hideOptions()}))},i.bind("keyup",function(e){var t=String.fromCharCode(e.keyCode);(/[a-zA-Z0-9-_ ]/.test(t)||/[\b]/.test(t))&&n(function(){o.currentValue=e.target.value,o.setValue(o.currentValue),o.$apply()})});var t=function(){var e=o.currentValue,t=0;o.control.select.options.indexOf(o.currentValue)+1>=o.control.select.options.length?(e=o.control.select.options[0],t=0):(e=o.control.select.options[o.control.select.options.indexOf(o.currentValue)+1],t=32*(o.currentId-1)),o.setValue(e),i[0].querySelector(".ea-editor-property-control-select-options").scrollTop=t},s=function(){var e=o.currentValue,t=0;o.control.select.options.indexOf(o.currentValue)<=0?(e=o.control.select.options[o.control.select.options.length-1],t=32*o.control.select.options.length):(e=o.control.select.options[o.control.select.options.indexOf(o.currentValue)-1],t=32*(o.currentId-2)),o.setValue(e),i[0].querySelector(".ea-editor-property-control-select-options").scrollTop=t};o.hideOptions=function(){o.show=!1,o.binded=!1,o.unbind(),o.$apply()},o.unbind=function(){i.unbind("keydown keypress")},o.setValue=function(e,t){o.currentValue=r(o.control.select.options,["value","name"],e)||e,o.ngModel=e.value||0===e.value?e.value:e,t&&"click"===t.type&&n(function(){o.hideOptions()})},e.controls=e.controls||[],e.controls[o.control.id]={id:o.control.id,set:o.setValue},o.$watch("ngModel",function(e,t){o.currentValue=r(o.control.select.options,["value","name"],o.ngModel)||o.ngModel})}]}}];var i,n=o(22),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<label class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-property-control-select ea-editor-property-control" ng-class="{\'ea-editor-property-control-select-readonly\': readonly}"> <input type=text ng-click=showOptions() ng-value="currentValue.name || currentValue || ngModel" ng-readonly=readonly> <div class=ea-editor-property-control-select-options ng-if=show> <div class=ea-editor-property-control-select-options-item ng-repeat="option in control.select.options" ng-click="setValue(option, $event)" ng-class="{\'ea-editor-property-control-select-options-item-selected\': option.name === currentValue.name || option.name === currentValue}"> {{option.name}} </div> </div> </div> </label>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope",function(e,t){}]}}];var i,n=o(24),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-property-control-select-inline ea-editor-property-control"> <div class=ea-editor-property-control-select-inline-wrapper> <label class=ea-editor-property-control-select-inline-item ng-repeat="option in control.selectInline.options"> <input class=ea-editor-property-control-select-inline-item-radio ng-model=$parent.ngModel type=radio ng-value=option.value> <span class=ea-editor-property-control-select-inline-item-label>{{option.name}}</span> </label> </div> </div> </div>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope","$visual",function(o,e,t){(e.currentSelectVisualScope=o).control.select.layout=o.control.select.layout||"one-col";var i=function(e,o,i){var n=void 0;return e.forEach(function(t){o.forEach(function(e){t[e]===i&&(n=t)})}),n};o.openSelectVisual=function(){t.show(o)},o.selected=i(o.control.select.options,["value"],o.ngModel),o.$watch("ngModel",function(e,t){o.selected=i(o.control.select.options,["value"],o.ngModel)})}]}}];var i,n=o(26),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<label class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-select-visual-control ea-editor-property-control" ng-click=openSelectVisual()> <div class=ea-editor-select-visual-control-image-container> <img src={{selected.img}} alt="" class=ea-editor-select-visual-control-image> </div> <div class=ea-editor-select-visual-control-name> {{selected.name}} </div> <div class=ea-editor-select-visual-control-trigger> <div class=ea-editor-select-visual-control-trigger-arrow> <svg width=6px height=10px viewBox="0 0 6 10" fill=#c2c6ca focusable=false> <path d="M5.71,4.286L1.727,0.302c-0.39-0.392-1.023-0.392-1.414,0c-0.39,0.39-0.39,1.023,0,1.414L3.59,4.992\n\t                L0.289,8.284c-0.39,0.39-0.39,1.025,0,1.415c0.39,0.39,1.023,0.39,1.414,0l4.008-4C6.101,5.309,6.101,4.675,5.71,4.286z"></path> </svg> </div> </div> </div> </label>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope",function(e,t){}],link:function(o,e){"string"==typeof o.ngModel&&(o.ngModel=o.ngModel.split(",")),o.addTag=function(){o.newTag&&(angular.isArray(o.ngModel)||(o.ngModel=[]),-1===o.ngModel.indexOf(o.newTag)&&o.ngModel.push(o.newTag),o.newTag="")},o.removeTag=function(e){angular.isArray(o.ngModel)&&o.ngModel.splice(e,1)},e.bind("keydown",function(e){var t=e.which;9!==t&&13!==t||o.newTag&&e.preventDefault()}),e.bind("keyup",function(e){var t=e.which;Array.isArray(o.control.allowedKeys)||(o.control.allowedKeys=[]),9!==t&&13!==t&&-1===o.control.allowedKeys.indexOf(t)||(o.newTag&&e.preventDefault(),o.$apply("addTag()"))}),e.bind("change",function(e){o.$apply("addTag()")})}}}];var i,n=o(28),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<label class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-property-control-tags ea-editor-property-control"> <input class=ea-editor-property-control-tags-input type=text ng-model=newTag placeholder={{control.tags.placeholder}}> <div class=ea-editor-property-control-tags-wrapper> <div class=ea-editor-property-control-tags-item ng-repeat="(key, value) in ngModel"> <div class=ea-editor-property-control-tags-item-label title={{value}}>{{value}}</div> <div class=ea-editor-property-control-tags-item-remove ng-click=removeTag(key)> <svg width=8px height=8px viewBox="0 0 8 8" fill=#fff focusable=false> <path fill=#fff d="M4.708,4l3.146-3.146c0.195-0.195,0.195-0.511,0-0.708c-0.196-0.195-0.513-0.195-0.708,0L4,3.292\n                            L0.854,0.146c-0.195-0.195-0.511-0.195-0.708,0c-0.195,0.196-0.195,0.513,0,0.708L3.292,4L0.146,7.146\n                            c-0.195,0.195-0.195,0.511,0,0.708c0.196,0.195,0.513,0.195,0.708,0L4,4.708l3.146,3.146c0.195,0.195,0.511,0.195,0.708,0\n                            c0.195-0.196,0.195-0.513,0-0.708L4.708,4z"></path> </svg> </div> </div> </div> </div> </label>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope",function(e,t){}]}}];var i,n=o(30),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class=ea-editor-property-inner> <label for=ea-editor-control-{{control.id}} class=ea-editor-property-label editor-hint=control.description>{{control.name}}</label> <div class="ea-editor-property-control-toggle ea-editor-property-control" ng-class="{ \'ea-editor-property-control-toggle-on\': ngModel }"> <label class=ea-editor-property-control-toggle-wrapper> <span class=ea-editor-property-control-toggle-before translate>On</span> <span class=ea-editor-property-control-toggle-inner> <input id=ea-editor-control-{{control.id}} type=checkbox ng-model=ngModel ng-checked=ngModel> </span> <span class=ea-editor-property-control-toggle-after translate>Off</span> </label> </div> </div>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope",function(e,t){e.widthStyle="",e.control.checklist&&e.control.checklist.columns&&e.control.checklist.columns<5&&(e.widthStyle={width:100/e.control.checklist.columns+"%"})}]}}];var i,n=o(32),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-property-control-checklist ea-editor-property-control"> <label class=ea-editor-property-control-checklist-item ng-repeat="option in control.checklist.options" ng-style=widthStyle> <div class=ea-editor-property-control-checklist-checkbox-wrapper> <input type=checkbox checklist-value=option.value checklist-model=ngModel> <span class=ea-editor-property-control-checklist-checkbox></span> </div> <span class=ea-editor-property-control-checklist-item-label>{{option.name}}</span> </label> </div> </div>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope",function(e,t){e.options={clear:{show:!0,label:"Clear color"}},e.eventApi={onClear:function(e){var t;t=e.getElement()[0],angular.element(t.querySelector(".color-picker-swatch")).removeAttr("style")}}}]}}];var i,n=o(34),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<label class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-property-control-color ea-editor-property-control"> <color-picker ng-model=ngModel options=options event-api=eventApi></color-picker> </div> </label>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$timeout","$utils","$l10n",function(n,r,l){return{template:s.default,replace:!0,link:function(e,t){},controller:["$scope","$rootScope","$sub","$sce",function(a,e,i,t){a.itemsToRemove=[],a.controlGroupProperty=a.control.complex.controlGroupProperty,a.getItemName=function(e){var o,i,n,r,t=a.control.complex.nameProperty,s=void 0;return t?(o=e,i=t,n=!1,r="",function t(e){n||e.forEach(function(e){n||("subgroup"===e.type?t(e.subgroup.properties):e.id===i&&(n=!0,r=o[i]||e.defaultValue))})}(a.control.complex.properties),s=r):s=function(e){var t="";if(!angular.isObject(e))return t=e;for(var o=0;o<a.control.complex.properties.length;o++){var i=a.control.complex.properties[o];if(i.complexGroup){t=e.name;break}if("select"!==i.type){t=e[i.id];break}if(i.select&&i.select.options)for(var n=0;n<i.select.options.length;n++){var r=i.select.options[n];if(r.value===e[i.id]){t=r.name;break}}break}return t}(e),l.translate(s)},a.openSub=function(t){angular.isArray(a.ngModel)||(a.ngModel=[]);var o=e.$new();t&&t.complexGroup?a.control.complex.properties.forEach(function(e){e.complexGroup&&e.complexGroup===t.complexGroup&&(o.name=e.name,o.properties=e.properties)}):(o.name=a.control.name,o.properties=a.control.complex.properties),t||(t={},n(function(){r.recursivelyGetAllProps(o.properties,t,"subgroup"),a.ngModel.push(t)},300)),o.data=t,e.currentComplex=t,i.show(o,a.controlGroupProperty)},a.reorderClick=function(e){e.stopPropagation()},a.duplicateItem=function(e,t){a.ngModel.push(angular.copy(e)),t.stopPropagation()},a.removeItem=function(e,t){a.itemsToRemove.splice(a.itemsToRemove.indexOf(e),1),a.ngModel.splice(e,1),t.stopPropagation()},a.showRemoveConfirm=function(e,t){a.itemsToRemove.push(e),t.stopPropagation()},a.hideRemoveConfirm=function(e,t){a.itemsToRemove.splice(a.itemsToRemove.indexOf(e),1),t.stopPropagation()},a.toTrustedHTML=function(e){return t.trustAsHtml(t.valueOf(e))}}]}}];var i,n=o(36),s=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-property-control-complex ea-editor-property-control" sv-root> <div class=ea-editor-property-control-complex-list sv-part=ngModel> <div sv-placeholder class=ea-editor-property-control-complex-item-placeholder></div> <div class=ea-editor-property-control-complex-item ng-repeat="(key, item) in ngModel" ng-click=openSub(item) sv-element ng-class="{ \'ea-editor-property-control-complex-item-removing\': itemsToRemove.indexOf(key) > -1 }"> <div class=ea-editor-property-control-complex-item-inner> <div class=ea-editor-property-control-complex-item-reorder ng-click=reorderClick($event) sv-handle title=Reorder> <svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 7 14" focusable=false> <path d=M1,4c0.6,0,1,0.4,1,1S1.6,6,1,6S0,5.6,0,5S0.4,4,1,4L1,4z /> <path d=M1,0c0.6,0,1,0.4,1,1S1.6,2,1,2S0,1.6,0,1S0.4,0,1,0L1,0z /> <path d=M1,8c0.6,0,1,0.4,1,1s-0.4,1-1,1S0,9.6,0,9S0.4,8,1,8L1,8z /> <path d=M1,12c0.6,0,1,0.4,1,1s-0.4,1-1,1s-1-0.4-1-1S0.4,12,1,12L1,12z /> <path d=M6,0c0.6,0,1,0.4,1,1S6.6,2,6,2S5,1.6,5,1S5.4,0,6,0L6,0z /> <path d=M6,4c0.6,0,1,0.4,1,1S6.6,6,6,6S5,5.6,5,5S5.4,4,6,4L6,4z /> <path d=M6,8c0.6,0,1,0.4,1,1s-0.4,1-1,1S5,9.6,5,9S5.4,8,6,8L6,8z /> <path d=M6,12c0.6,0,1,0.4,1,1s-0.4,1-1,1s-1-0.4-1-1S5.4,12,6,12L6,12z /> </svg> </div> <div class=ea-editor-property-control-complex-item-name title={{getItemName(item)}}> {{getItemName(item)}} </div> <div class=ea-editor-property-control-complex-item-duplicate ng-show="control.complex.duplicateAction !== false" title="{{\'Duplicate item\'|translate}}" ng-click="duplicateItem(item, $event)" ng-if="!control.complex.limit || (!!control.complex.limit && control.complex.limit > 0 && ngModel.length + 1 <= control.complex.limit)"> <svg viewBox="0 0 12 12" focusable=false> <g> <path d="M11.3,0H3.8C3.3,0,3,0.3,3,0.8V3H0.8C0.3,3,0,3.3,0,3.8v7.5C0,11.7,0.3,12,0.8,12h7.5C8.7,12,9,11.7,9,11.3V9h2.3\r\n                        C11.7,9,12,8.7,12,8.3V0.8C12,0.3,11.7,0,11.3,0z M7.9,10.9H1.1V4.1H3v4.1C3,8.7,3.3,9,3.8,9h4.1V10.9z M10.9,7.9H4.1V1.1h6.8\r\n                        V7.9z"/> </g> </svg> </div> <div class=ea-editor-property-control-complex-item-remove ng-show="control.complex.removeAction !== false" title="{{\'Remove item\'|translate}}" ng-click="showRemoveConfirm(key, $event)"> <svg viewBox="0 0 753.2 753.2" focusable=false> <g> <path d="M647.3,117.7H517.8V47.1c0-26-21.1-47.1-47.1-47.1H282.5c-26,0-47.1,21.1-47.1,47.1v70.6H105.9\r\n\t\t\t\t        c-19.5,0-35.3,15.8-35.3,35.3s15.8,35.3,35.3,35.3h11.8v517.8c0,26,21.1,47.1,47.1,47.1h423.7c26,0,47.1-21.1,47.1-47.1V188.3\r\n\t\t\t\t        h11.8c19.5,0,35.3-15.8,35.3-35.3C682.6,133.5,666.8,117.7,647.3,117.7z M306,70.6h141.2v47.1H306V70.6z M564.9,682.6H188.3\r\n\t\t\t\t        V188.3h376.6V682.6z"/> </g> <path d="M290,617.4h23.5c13,0,23.7-10.6,23.7-23.7V276.9c0-13-10.6-23.7-23.7-23.7H290c-13,0-23.7,10.6-23.7,23.7v316.9\r\n\t                    C266.3,606.8,277,617.4,290,617.4z"/> <path d="M441,617.4h23.5c13,0,23.7-10.6,23.7-23.7V276.9c0-13-10.6-23.7-23.7-23.7H441c-13,0-23.7,10.6-23.7,23.7v316.9\r\n\t                    C417.3,606.8,428,617.4,441,617.4z"/> </svg> </div> </div> <div class=ea-editor-property-control-complex-item-remove-confirm> <div class=ea-editor-property-control-complex-item-remove-confirm-label translate>Are you sure you want to remove?</div> <div class=ea-editor-property-control-complex-item-remove-confirm-actions> <div class=ea-editor-property-control-complex-item-remove-confirm-actions-yes ng-click="removeItem(key, $event)" translate>Yes</div> <div class=ea-editor-property-control-complex-item-remove-confirm-actions-no ng-click="hideRemoveConfirm(key, $event)" translate>No</div> </div> </div> </div> </div> <div class="ea-editor-property-control-complex-add-new ea-editor-property-control-complex-item" ng-show="control.complex.addAction !== false" ng-class="{\r\n                 \'ea-editor-property-control-complex-add-new-transparent\': ngModel && ngModel.length,\r\n                 \'ea-editor-property-control-complex-add-new-disable\': !!control.complex.limit && control.complex.limit > 0 && ngModel.length >= control.complex.limit\r\n             }" ng-click=openSub()> <div class=ea-editor-property-control-complex-item-inner> <svg viewBox="1 1 10 10" focusable=false> <path d="M9.987,4.999H7V2.013C7,1.454,6.552,1,6,1S5,1.454,5,2.013v2.986H2.013C1.453,4.999,1,5.449,1,6.001\r\n                    s0.453,1,1.012,1H5v2.987C5,10.548,5.448,11,6,11s1-0.453,1-1.012V7.001h2.987c0.559,0,1.012-0.448,1.012-1\r\n                    S10.547,4.999,9.987,4.999z"></path> </svg> <span class=ea-editor-property-control-complex-add-new-label translate>Add</span> </div> </div> <div class=ea-editor-property-control-complex-limit-exceed ng-show="control.complex.addAction !== false" ng-class="{ \'ea-editor-property-control-complex-add-new-transparent\': ngModel && ngModel.length }" ng-if="!!control.complex.limit && control.complex.limit > 0 && ngModel.length >= control.complex.limit"> <div class=ea-editor-property-control-complex-item-inner ng-bind-html=toTrustedHTML(control.complex.limitExceedHtml)></div> </div> </div> </div>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$timeout","$utils",function(a,l){return{template:r.default,replace:!0,link:function(e,t){},controller:["$scope","$element","$rootScope","$sub","$visual","$sce","$l10n",function(s,e,i,n,r,t,o){s.itemsToRemove=[],s.controlGroupProperty=s.control.complex.controlGroupProperty,s.icons={},s.names={},s.control.complex.properties.forEach(function(e){e.id===s.control.complex.controlGroupProperty&&e.select.options.forEach(function(e){s.icons[e.value]=e.img,s.names[e.value]=e.name})}),s.getItemName=function(e){var o,i,n,r,t=s.control.complex.nameProperty;return e.label?t?(o=e,i=t,n=!1,r="",function t(e){n||e.forEach(function(e){n||("subgroup"===e.type?t(e.subgroup.properties):e.id===i&&(n=!0,r=o[i]||e.defaultValue))})}(s.control.complex.properties),r):function(e){var t="";if(!angular.isObject(e))return t=e;for(var o=0;o<s.control.complex.properties.length;o++){var i=s.control.complex.properties[o];if(i.complexGroup){t=e.name;break}if("select"!==i.type){t=e[i.id];break}if(i.select&&i.select.options)for(var n=0;n<i.select.options.length;n++){var r=i.select.options[n];if(r.value===e[i.id]){t=r.name;break}}break}return t}(e):e.name?e.name:e.placeholder?e.placeholder:e.type},s.openSub=function(t){var e=!1;angular.isArray(s.ngModel)||(s.ngModel=[]);var o=i.$new();t&&t.complexGroup?s.control.complex.properties.forEach(function(e){e.complexGroup&&e.complexGroup===t.complexGroup&&(o.name=e.name,o.properties=e.properties)}):(o.name=s.control.name,o.properties=[],s.control.complex.properties.forEach(function(e){o.properties.push(e)})),t||(e=!0,t={},a(function(){l.recursivelyGetAllProps(o.properties,t,"subgroup"),s.ngModel.push(t)},300)),o.data=t,i.currentComplex=t,n.show(o,s.controlGroupProperty,function(){s.ngModel.forEach(function(e){"group"===e.type&&(e.label=e.name||e.type.replace(/^\w/,function(e){return e.toUpperCase()}))})},e?300:0),e&&a(function(){i.currentSelectVisualScope.control.name="Select element to add",r.show(i.currentSelectVisualScope,function(e){"divider"===e.ngModel&&n.hide(o),e.ngModel?o.name=e.ngModel.replace(/^\w/,function(e){return e.toUpperCase()}):(n.hide(o),s.ngModel.splice(s.ngModel.length-1,1)),s.ngModel.forEach(function(e){e.label||(e.label=s.names[e.type]||e.type.replace(/^\w/,function(e){return e.toUpperCase()}))})})},0)},s.reorderClick=function(e){e.stopPropagation()},s.duplicateItem=function(e,t){s.ngModel.push(angular.copy(e)),t.stopPropagation()},s.removeItem=function(e,t){s.itemsToRemove.splice(s.itemsToRemove.indexOf(e),1),s.ngModel.splice(e,1),t.stopPropagation()},s.showRemoveConfirm=function(e,t){s.itemsToRemove.push(e),t.stopPropagation()},s.hideRemoveConfirm=function(e,t){s.itemsToRemove.splice(s.itemsToRemove.indexOf(e),1),t.stopPropagation()},s.toTrustedHTML=function(e){return t.trustAsHtml(t.valueOf(e))}}]}}];var i,n=o(38),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-property-control-complex ea-editor-property-control" sv-root> <div class=ea-editor-property-control-complex-list sv-part=ngModel> <div sv-placeholder class=ea-editor-property-control-complex-item-placeholder></div> <div class=ea-editor-property-control-complex-item ng-repeat="(key, item) in ngModel" ng-click=openSub(item) sv-element ng-class="{ \'ea-editor-property-control-complex-item-removing\': itemsToRemove.indexOf(key) > -1 }" title=Reorder> <div class=ea-editor-property-control-complex-item-inner> <div class=ea-editor-property-control-complex-item-reorder ng-click=reorderClick($event) sv-handle> <svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 7 14" focusable=false> <path d=M1,4c0.6,0,1,0.4,1,1S1.6,6,1,6S0,5.6,0,5S0.4,4,1,4L1,4z /> <path d=M1,0c0.6,0,1,0.4,1,1S1.6,2,1,2S0,1.6,0,1S0.4,0,1,0L1,0z /> <path d=M1,8c0.6,0,1,0.4,1,1s-0.4,1-1,1S0,9.6,0,9S0.4,8,1,8L1,8z /> <path d=M1,12c0.6,0,1,0.4,1,1s-0.4,1-1,1s-1-0.4-1-1S0.4,12,1,12L1,12z /> <path d=M6,0c0.6,0,1,0.4,1,1S6.6,2,6,2S5,1.6,5,1S5.4,0,6,0L6,0z /> <path d=M6,4c0.6,0,1,0.4,1,1S6.6,6,6,6S5,5.6,5,5S5.4,4,6,4L6,4z /> <path d=M6,8c0.6,0,1,0.4,1,1s-0.4,1-1,1S5,9.6,5,9S5.4,8,6,8L6,8z /> <path d=M6,12c0.6,0,1,0.4,1,1s-0.4,1-1,1s-1-0.4-1-1S5.4,12,6,12L6,12z /> </svg> </div> <div class=ea-editor-property-control-complex-item-icon title={{names[item.type]}}> <img ng-src={{icons[item.type]}} alt=""> </div> <div class=ea-editor-property-control-complex-item-name title={{getItemName(item)}}> {{getItemName(item)}} </div> <div class=ea-editor-property-control-complex-item-duplicate ng-show="control.complex.duplicateAction !== false" title="{{\'Duplicate item\'|translate}}" ng-click="duplicateItem(item, $event)" ng-if="!control.complex.limit || (!!control.complex.limit && control.complex.limit > 0 && ngModel.length + 1 <= control.complex.limit)"> <svg viewBox="0 0 12 12" focusable=false> <g> <path d="M11.3,0H3.8C3.3,0,3,0.3,3,0.8V3H0.8C0.3,3,0,3.3,0,3.8v7.5C0,11.7,0.3,12,0.8,12h7.5C8.7,12,9,11.7,9,11.3V9h2.3\r\n                        C11.7,9,12,8.7,12,8.3V0.8C12,0.3,11.7,0,11.3,0z M7.9,10.9H1.1V4.1H3v4.1C3,8.7,3.3,9,3.8,9h4.1V10.9z M10.9,7.9H4.1V1.1h6.8\r\n                        V7.9z"/> </g> </svg> </div> <div class=ea-editor-property-control-complex-item-remove ng-show="control.complex.removeAction !== false" title="{{\'Remove item\'|translate}}" ng-click="showRemoveConfirm(key, $event)"> <svg viewBox="0 0 753.2 753.2" focusable=false> <g> <path d="M647.3,117.7H517.8V47.1c0-26-21.1-47.1-47.1-47.1H282.5c-26,0-47.1,21.1-47.1,47.1v70.6H105.9\r\n\t\t\t\t        c-19.5,0-35.3,15.8-35.3,35.3s15.8,35.3,35.3,35.3h11.8v517.8c0,26,21.1,47.1,47.1,47.1h423.7c26,0,47.1-21.1,47.1-47.1V188.3\r\n\t\t\t\t        h11.8c19.5,0,35.3-15.8,35.3-35.3C682.6,133.5,666.8,117.7,647.3,117.7z M306,70.6h141.2v47.1H306V70.6z M564.9,682.6H188.3\r\n\t\t\t\t        V188.3h376.6V682.6z"/> </g> <path d="M290,617.4h23.5c13,0,23.7-10.6,23.7-23.7V276.9c0-13-10.6-23.7-23.7-23.7H290c-13,0-23.7,10.6-23.7,23.7v316.9\r\n\t                    C266.3,606.8,277,617.4,290,617.4z"/> <path d="M441,617.4h23.5c13,0,23.7-10.6,23.7-23.7V276.9c0-13-10.6-23.7-23.7-23.7H441c-13,0-23.7,10.6-23.7,23.7v316.9\r\n\t                    C417.3,606.8,428,617.4,441,617.4z"/> </svg> </div> </div> <div class=ea-editor-property-control-complex-item-remove-confirm> <div class=ea-editor-property-control-complex-item-remove-confirm-label translate>Are you sure you want to remove?</div> <div class=ea-editor-property-control-complex-item-remove-confirm-actions> <div class=ea-editor-property-control-complex-item-remove-confirm-actions-yes ng-click="removeItem(key, $event)" translate>Yes</div> <div class=ea-editor-property-control-complex-item-remove-confirm-actions-no ng-click="hideRemoveConfirm(key, $event)" translate>No</div> </div> </div> </div> </div> <div class="ea-editor-property-control-complex-add-new ea-editor-property-control-complex-item" ng-show="control.complex.addAction !== false" ng-class="{\r\n                 \'ea-editor-property-control-complex-add-new-transparent\': ngModel && ngModel.length,\r\n                 \'ea-editor-property-control-complex-add-new-disable\': !!control.complex.limit && control.complex.limit > 0 && ngModel.length >= control.complex.limit\r\n             }" ng-click=openSub()> <div class=ea-editor-property-control-complex-item-inner> <svg viewBox="1 1 10 10" focusable=false> <path d="M9.987,4.999H7V2.013C7,1.454,6.552,1,6,1S5,1.454,5,2.013v2.986H2.013C1.453,4.999,1,5.449,1,6.001\r\n                    s0.453,1,1.012,1H5v2.987C5,10.548,5.448,11,6,11s1-0.453,1-1.012V7.001h2.987c0.559,0,1.012-0.448,1.012-1\r\n                    S10.547,4.999,9.987,4.999z"></path> </svg> <span class=ea-editor-property-control-complex-add-new-label translate>Add</span> </div> </div> <div class=ea-editor-property-control-complex-limit-exceed ng-show="control.complex.addAction !== false" ng-class="{ \'ea-editor-property-control-complex-add-new-transparent\': ngModel && ngModel.length }" ng-if="!!control.complex.limit && control.complex.limit > 0 && ngModel.length >= control.complex.limit"> <div class=ea-editor-property-control-complex-item-inner ng-bind-html=toTrustedHTML(control.complex.limitExceedHtml)></div> </div> </div> </div>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope","$sub",function(t,o,i){t.openSub=function(){var e=o.$new();e.name=t.control.name,e.properties=t.control.subgroup.properties,e.data=t.ngModel,i.show(e)}}]}}];var i,n=o(40),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<label class=ea-editor-property-inner> <div class="ea-editor-property-control-subgroup ea-editor-property-control" ng-click=openSub()> <div class=ea-editor-property-control-subgroup-name> {{control.name}} </div> <div class=ea-editor-property-control-subgroup-icon> <svg width=12 height=12 viewBox="0 0 12 12"> <path id=Rounded_Rectangle_57_copy_6_копия_2 class=cls-1 d=M4.566,2.256L8.317,5.7a0.512,0.512,0,0,1,0,.785,0.681,0.681,0,0,1-.883,0L3.683,3.041a0.512,0.512,0,0,1,0-.785A0.681,0.681,0,0,1,4.566,2.256ZM3.683,9.146L7.433,5.7a0.68,0.68,0,0,1,.883,0,0.512,0.512,0,0,1,0,.785L4.566,9.931a0.681,0.681,0,0,1-.883,0A0.512,0.512,0,0,1,3.683,9.146Z /> </svg> </div> </div> </label>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope",function(e,t){}]}}];var i,n=o(42),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class=ea-editor-property-inner> <div class="ea-editor-property-control-divider ea-editor-property-control"></div> </div>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{scope:"=",template:r.default,replace:!0,controller:["$scope","$rootScope","$http","$element",function(n,t,r,e){n.lastVal="",n.showBtn=n.control.custom&&n.control.custom.button||"send"===n.control.custom.action,n.$input=angular.element(e[0].querySelector(".ea-editor-property-control-text input")),n.$error=angular.element(e[0].querySelector(".ea-editor-property-control-text-error")),n.apiKey=t.appPreferences.apiKey?t.appPreferences.apiKey:"",!n.apiKey&&t.appPreferences.apiKeys&&t.appPreferences.apiKeys.length&&(n.apiKey=t.appPreferences.apiKeys[Math.floor(Math.random()*t.appPreferences.apiKeys.length)]),n.setCoordinates=function(e){t.coordinates=e.lat+", "+e.lng,t.controls.coordinates.set(t.coordinates),n.lastVal=n.ngModel},n.showError=function(e){var t="Geocode was not successful: "+e;"OVER_QUERY_LIMIT"===e?t="Query limit has been reached. Try to repeat the query later":"ZERO_RESULTS"===e?t="Location is not found. Set a more accurate address":"NO_API_KEY"===e&&(t="API key is required"),!(1<arguments.length&&void 0!==arguments[1])||arguments[1]||(n.error=!0,n.$error.html(t)),console.log(t)},n.processCoordinates=function(){if(n.ngModel=n.$input.val(),n.error=!1,n.apiKey){if(n.ngModel&&n.ngModel!==n.lastVal){var e,i={};if(/^(\-?\d+(\.\d+)?),\s*(\-?\d+(\.\d+)?)$/.test(n.ngModel)){var t=n.ngModel.split(/, ?/);i.lat=parseFloat(t[0],10),i.lng=parseFloat(t[1],10),n.setCoordinates(i)}else{var o=function(e){var t=e.data.results,o=e.data.status;if(o&&"OK"!==o)return n.showError(o,!1),!1;"OK"===o&&(i.lat=t[0].geometry.location.lat,i.lng=t[0].geometry.location.lng,n.setCoordinates(i))};e="https://maps.googleapis.com/maps/api/geocode/json?key="+n.apiKey+"&address="+n.ngModel,r.get(e).then(o)}}}else n.showError("NO_API_KEY",!1)},n.setValue=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";n.ngModel=e},t.controls=t.controls||[],t.controls[n.control.id]={id:n.control.id,set:n.setValue}}],link:function(o){"send"===o.control.custom.action&&o.$watch("ngModel",function(e,t){e!==t&&o.processCoordinates()})}}}];var i,n=o(44),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports="<label class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=\"ea-editor-property-control-text ea-editor-property-control\"> <div ng-if=showBtn class=ea-editor-property-control-text-button translate>Apply</div> <input ng-model=ngModel ng-model-options=\"{updateOn: showBtn ? 'change blur' : 'default'}\"> <div ng-show=error class=ea-editor-property-control-text-error></div> </div> </label>"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{scope:"=",template:r.default,replace:!0,controller:["$scope","$rootScope","$q","$window","$timeout","$http",function(t,e,o,i,n,r){t.state="connect",t.load=!1,t.connect=function(){i.open("https://elfsight.com/service/generate-facebook-access-token/","_blank","location=yes,height=600,width=800,scrollbars=yes,status=yes"),t.load=!0},t.disconnect=function(){t.load=!0,r({method:"GET",url:"https://graph.facebook.com/v2.10/me/permissions?method=delete&access_token="+t.ngModel}).then(function(){t.ngModel="",t.state="connect",t.load=!1})},t.update=function(){t.connect()},t.processToken=function(){"connect"===t.state?t.connect():"disconnect"===t.state?t.disconnect():"update"===t.state&&t.update()},window.addEventListener("message",function(e){n(function(){t.load=!1,"https://elfsight.com"===e.origin&&e.data&&"getToken"===e.data.action&&(t.ngModel=e.data.token,t.state="disconnect")})},!1),t.ngModel&&r({method:"GET",url:"https://graph.facebook.com/me?access_token="+t.ngModel}).then(function(e){200===e.status?t.state="disconnect":(t.ngModel=null,t.state="update")}).catch(function(){t.ngModel=null,t.state="update"})}]}}];var i,n=o(46),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class="ea-editor-facebook-feed-token-control-wrapper ea-editor-property-inner ea-editor-facebook-feed-token-control-{{state}} ea-editor-property-control" ng-class="{\'ea-editor-facebook-feed-token-control-load\': load}"> <div class=ea-editor-facebook-feed-token-control-label-wrapper> <span class=ea-editor-property-label editor-hint=control.description>{{control.name}}</span> <span class=ea-editor-facebook-feed-token-control-status> <span ng-if="state === \'disconnect\'" translate>Connected</span> <span ng-if="state === \'update\'" translate>Disconnected</span> </span> </div> <div class=ea-editor-property-caption> <span ng-if="state === \'connect\'" translate>To display Facebook page, please, authorize in Facebook.</span> <span ng-if="state === \'disconnect\'" translate>You widget is successfully connected to Facebook. You can continue customization.</span> <span ng-if="state === \'update\'" translate>Connection error. Probably, your two-month authorization has expired. Please, try to reconnect.</span> </div> <div class=ea-editor-facebook-feed-token-control> <div class=ea-editor-facebook-feed-token-control-button-container> <button ng-click=processToken()> <span class=ea-editor-facebook-feed-token-control-button-icon ng-if="state === \'connect\'"> <svg viewBox="0 0 1024 1024" id=icon-facebook width=100% height=100%><path d="M234.747 554.565V346.624h152.512v-81.02C387.259 125.893 492.2.068 621.186.068h168.068v207.918H621.186c-18.412 0-39.85 22.329-39.85 55.801v82.826h207.918v207.929H581.336v469.39H387.247V554.564H234.746z"></path></svg> </span> <span class=ea-editor-facebook-feed-token-control-button-label> <span ng-if="state === \'connect\'" translate>Connect to Facebook</span> <span ng-if="state === \'disconnect\'" translate>Disconnect</span> <span ng-if="state === \'update\'" translate>Reconnect</span> </span> <span class=ea-editor-facebook-feed-token-control-loader></span></button> </div> </div> </div>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{scope:"=",template:r.default,replace:!0,controller:["$scope","$rootScope","$q","$window","$timeout","$http",function(t,e,o,i,n,r){t.state="connect",t.load=!1;var s=e.user?e.user.public_id:"";!t.ngModel||1===t.ngModel&&"1"===t.ngModel&&""===t.ngModel||(t.state="connected"),t.connect=function(){var e="https://tstorage.elfsight.com/auth?user_id="+s;i.open(e,"_blank","location=yes,height=600,width=800,scrollbars=yes,status=yes")},t.processToken=function(){"connect"===t.state?t.connect():"connected"===t.state&&(t.ngModel="",t.state="connect")},window.addEventListener("message",function(e){n(function(){"https://tstorage.elfsight.com"===e.origin&&e.data&&"token"===e.data.action&&(t.ngModel=s,t.state="connected")})},!1)}]}}];var i,n=o(48),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class="ea-editor-twitter-feed-token-control-wrapper ea-editor-property-inner ea-editor-twitter-feed-token-control-{{state}} ea-editor-property-control" ng-class="{\'ea-editor-twitter-feed-token-control-load\': load}"> <div class=ea-editor-twitter-feed-token-control-label-wrapper> <span class=ea-editor-property-label editor-hint=control.description>{{control.name}}</span> <span class=ea-editor-twitter-feed-token-control-status> <span ng-if="state === \'connected\'">Connected</span> <span ng-if="state === \'connect\'">Disconnected</span> </span> </div> <div class=ea-editor-property-caption> To link your widget to Twitter, please authorize with your Twitter account. </div> <div class=ea-editor-twitter-feed-token-control> <div class=ea-editor-twitter-feed-token-control-button-container> <button ng-click=processToken()> <span class=ea-editor-twitter-feed-token-control-button-icon ng-if="state === \'connect\'"> <svg xmlns=http://www.w3.org/2000/svg width=100% height=100% viewBox="0 0 16 16"> <path d="M16.07 5.388c.219 4.83-3.395 10.216-9.79 10.216A9.765 9.765 0 0 1 1 14.06a6.94 6.94 0 0 0 5.1-1.421 3.446 3.446 0 0 1-3.218-2.385c.54.103 1.07.073 1.555-.06-1.656-.33-2.8-1.82-2.763-3.41.465.258.996.412 1.56.43A3.432 3.432 0 0 1 2.17 2.628a9.788 9.788 0 0 0 7.1 3.589C8.766 4.068 10.4 2 12.624 2c.99 0 1.885.417 2.513 1.084a6.925 6.925 0 0 0 2.188-.833 3.452 3.452 0 0 1-1.515 1.9 6.9 6.9 0 0 0 1.978-.54 6.96 6.96 0 0 1-1.718 1.777z"></path> </svg> </span> <span class=ea-editor-twitter-feed-token-control-button-label> <span ng-if="state === \'connect\'">Connect to Twitter</span> <span ng-if="state === \'connected\'">Disconnect</span> </span> </button> </div> </div> </div>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope","$window",function(d,e,u){d.openModal=function(){var e,t,o,i,n,r,s,a,l,c="http://"+d.control.link;e=c,t="elfsight-apps-embedded-window",o=600,i=748,n=void 0!==u.screenLeft?u.screenLeft:screen.left,r=void 0!==u.screenTop?u.screenTop:screen.top,s=(u.innerWidth?u.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-o/2+n,a=(u.innerHeight?u.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-i/2+r,l=window.open(e,t,"scrollbars=yes, location=no, width="+o+", height="+i+", top="+a+", left="+s),window.focus&&l.focus(),d.windowVisible=!0;u.onmessage=function(e){e.data.token&&(d.ngModel=e.data.token,d.$apply())}}}]}}];var i,n=o(50),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<label class=ea-editor-property-inner> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-property-control-text ea-editor-property-control"> <input ng-model=ngModel ng-model-options="{ debounce: 300 }" type=text ng-blur=setDefaultValueIfEmpty()> <button ng-click=openModal() translate>Open</button> </div> </label>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope",function(e){return{template:r.default,replace:!0,controller:["$scope","$rootScope","$window","$element","$http","$timeout",function(i,e,t,n,r,o){var s=e.elfsightFilesToken;i.loadInProgress=!1,i.uploaded=!1,"string"==typeof i.ngModel?i.file={name:i.ngModel.replace(/^.*[\\\/]/,""),url:i.ngModel}:i.file=i.ngModel,(!s&&i.file&&i.file.url||"string"!=typeof i.ngModel)&&i.file&&(i.ngModel=i.file.url),i.valChangeEvent=function(){var e=angular.element(n[0].querySelector(".ea-editor-property-control-file-input"))[0].files[0],t=e.name;if(i.loadInProgress=!0,i.uploaded=!1,e){var o=new FormData;o.append("access_token",s),o.append("file",e),r.post("https://files.elfsight.com/public/files/upload/",o,{cache:!1,headers:{"Content-Type":void 0}}).then(function(e){i.loadInProgress=!1,i.uploaded=!0,e.status&&(e.data.status?(i.file={name:t,url:e.data.data.file_url},i.ngModel=e.data.data.file_url,i.error=null):(i.file=i.ngModel,i.ngModel&&i.ngModel.url&&(i.file.name=i.ngModel.url.replace(/^.*[\\\/]/,""))))}).catch(function(e){i.loadInProgress=!1,i.uploaded=!1,413===e.status&&(i.error="File size limit exceeded")})}},i.deleteCurrentFile=function(){o(function(){i.file=null,i.ngModel=null,i.$apply()})},i.setValue=function(e){i.ngModel=e.target.value}}]}}];var i,n=o(52),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<label class=ea-editor-property-inner> <script src=https://www.dropbox.com/static/api/2/dropins.js id=dropboxjs data-app-key=twna88dpnr8c17c><\/script> <div class=ea-editor-property-label editor-hint=control.description>{{control.name}}</div> <div class=ea-editor-property-caption ng-if=control.caption ng-bind-html=control.caption></div> <div class="ea-editor-property-control-file ea-editor-property-control" ng-if=$root.elfsightFilesToken> <label for=file class=ea-editor-property-control-file-button ng-if="!file.name && !file.url"> <svg class=ea-editor-property-control-file-button-icon ng-if=!loadInProgress xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink width=14 height=14 viewBox="0 0 14 14"> <defs> <path id=combined-shape-copy-a d="M6.33528971,5.6109113 L4.80754974,7.13865128 C4.54734592,7.3988551 4.12547218,7.3988551 3.86526836,7.13865128 C3.60506454,6.87844746 3.60506454,6.45657371 3.86526836,6.1963699 L6.53044258,3.53119568 C6.7906464,3.27099186 7.21252014,3.27099186 7.47272396,3.53119568 L10.1378982,6.1963699 C10.398102,6.45657371 10.398102,6.87844746 10.1378982,7.13865128 C9.87769436,7.3988551 9.45582062,7.3988551 9.1956168,7.13865128 L7.66787682,5.6109113 L7.66787682,9.75912042 C7.66787682,10.0769352 7.36956704,10.334575 7.00158327,10.334575 C6.6335995,10.334575 6.33528971,10.0769352 6.33528971,9.75912042 L6.33528971,5.6109113 Z M7,14 C3.13400675,14 0,10.8659932 0,7 C0,3.13400675 3.13400675,0 7,0 C10.8659932,0 14,3.13400675 14,7 C14,10.8659932 10.8659932,14 7,14 Z M7,12.7272727 C10.1630854,12.7272727 12.7272727,10.1630854 12.7272727,7 C12.7272727,3.83691461 10.1630854,1.27272727 7,1.27272727 C3.83691461,1.27272727 1.27272727,3.83691461 1.27272727,7 C1.27272727,10.1630854 3.83691461,12.7272727 7,12.7272727 Z"></path> </defs> <g fill=none fill-rule=evenodd opacity=.7> <use fill=#FFF fill-rule=nonzero xlink:href=#combined-shape-copy-a /> </g> </svg> <span class=ea-editor-property-control-file-button-text ng-if=!loadInProgress translate>Upload</span> <span class=ea-editor-property-control-file-button-loader ng-if=loadInProgress></span> <input type=file name=file id=file class=ea-editor-property-control-file-input onchange=angular.element(this).scope().valChangeEvent() accept=image/*> </label> <div class=ea-editor-property-control-file-exists ng-if="file.name && file.url"> <div class=ea-editor-property-control-file-exists-name>{{file.name}}</div> <div class=ea-editor-property-control-file-exists-delete ng-click=deleteCurrentFile()> <svg width=10px height=10px viewBox="0 0 8 8" fill=#fff focusable=false> <path fill=#fff d="M4.708,4l3.146-3.146c0.195-0.195,0.195-0.511,0-0.708c-0.196-0.195-0.513-0.195-0.708,0L4,3.292\n                            L0.854,0.146c-0.195-0.195-0.511-0.195-0.708,0c-0.195,0.196-0.195,0.513,0,0.708L3.292,4L0.146,7.146\n                            c-0.195,0.195-0.195,0.511,0,0.708c0.196,0.195,0.513,0.195,0.708,0L4,4.708l3.146,3.146c0.195,0.195,0.511,0.195,0.708,0\n                            c0.195-0.196,0.195-0.513,0-0.708L4.708,4z"></path> </svg> </div> </div> <div class=ea-editor-property-control-file-error>{{error}}</div> </div> <div class="ea-editor-property-control-file ea-editor-property-control" ng-if=!$root.elfsightFilesToken> <input ng-model=ngModel type=text ng-keyup=setValue($event);> </div> </label> '},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$sub","$timeout",function(r,s){return{template:a.default,replace:!0,link:function(e,t,o){var i=[],n=null;s(function(){angular.forEach(t[0].getElementsByClassName("ea-editor-property-control"),function(e){i.push(e)}),i.forEach(function(e,t,o){(angular.element(e).hasClass("ea-editor-property-control-text")&&!n||angular.element(e).hasClass("ea-editor-property-control-textarea")&&!n||angular.element(e).hasClass("ea-editor-property-control-number")&&!n)&&(n=angular.element(e))}),n&&(n[0].getElementsByTagName("input")[0]?n[0].getElementsByTagName("input")[0].focus():n[0].getElementsByTagName("textarea")[0]&&n[0].getElementsByTagName("textarea")[0].focus())},100),e.$on("$destroy",function(){r.hide(t)}),e.hide=function(){r.hide(e,t)}},controller:["$scope",function(e){}]}}];var i,n=o(54),a=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class=ea-editor-sub ng-class="{ \'ea-editor-sub-active\': visible }"> <div class=ea-editor-sub-header ng-click=hide()> <div class=ea-editor-sub-back-button> <svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 12 12"> <path d="M11.3,5.2H2.5l4-4c0.3-0.3,0.3-0.8,0-1.1c-0.3-0.3-0.8-0.3-1.1,0L0.2,5.4C0.1,5.6,0,5.8,0,6\n                c0,0.2,0.1,0.4,0.2,0.5l5.2,5.2c0.3,0.3,0.8,0.3,1.1,0c0.3-0.3,0.3-0.8,0-1.1l-4-4h8.7C11.7,6.7,12,6.4,12,6\n                C12,5.6,11.7,5.2,11.3,5.2z"></path> </svg> </div> <div class=ea-editor-sub-title>{{name}}</div> </div> <div class=ea-editor-sub-content> <div class=ea-editor-property ng-repeat="property in properties" ng-if="!controlGroupProperty || (controlGroupProperty && property.groups.indexOf(data[controlGroupProperty]) !== -1)" ng-class="property.visible === false  ? \'ea-editor-property-hide\' : \'\'"> <div> <div control=property ng-model=data[property.id] ng-if="property.type !== \'subgroup\'"></div> <div control=property ng-model=data ng-if="property.type == \'subgroup\'"></div> </div> </div> </div> </div>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$sce","$timeout","$l10n",function(e,t,i){return{template:r.default,scope:{ngModel:"="},replace:!0,controller:["$scope","$element","$rootScope",function(o,e,t){o.templates=i.translate(o.$parent.templates),o.editor=o.$parent,o.initialData=o.editor.widget.data||{},o.showTemplates=!1,o.setData=function(e){o.currentTemplate=o.templates[e]||null,o.enableTemplates=!!o.currentTemplate,o.editor.widget&&o.editor.widget.data&&o.currentTemplate&&(o.editor.widget.data=Object.assign({},o.initialData),angular.forEach(o.currentTemplate.settings,function(e,t){o.editor.widget&&o.editor.widget.data&&o.editor.widget.data.hasOwnProperty(t)&&(o.editor.widget.data[t]=e)}))},o.hideTemplates=function(){o.showTemplates=!1,o.enableTemplates=!1,o.editor.onTemplateSelect&&"function"==typeof o.editor.onTemplateSelect&&o.editor.onTemplateSelect()},o.setData(0)}]}}];var i,n=o(56),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class=ea-editor-templates ng-class="{\'ea-editor-templates-hide\': !showTemplates && !enableTemplates, \'ea-editor-templates-enable\': enableTemplates }"> <div class=ea-editor-templates-wrapper> <div class=ea-editor-templates-header translate>Select a template to start with</div> <div class=ea-editor-templates-item ng-repeat="template in templates" ng-click=setData($index) ng-class="{\'ea-editor-templates-item-active\': template.name === currentTemplate.name}"> <div class=ea-editor-templates-item-inner> <div class=ea-editor-templates-item-image-container> <img ng-src={{template.image}} alt={{template.name}} class=ea-editor-templates-item-image ng-if=template.image> </div> <span class=ea-editor-templates-item-title title={{template.name}}>{{template.name}}</span> <input name=template type=radio ng-value=template.name ng-model=$parent.ngModel class=ea-editor-templates-item-radio ng-show=!template.name> </div> </div> </div> <div class=ea-editor-templates-actions> <button class=ea-editor-templates-actions-customize ng-click=hideTemplates()> <span translate>Continue with this template</span> <svg viewBox="0 0 24 24" id=icon-arrow-link width=100% height=100%> <path d="M14.724 11l-2.862-2.862a.667.667 0 0 1 .943-.943l4 4c.26.26.26.683 0 .943l-4 4a.667.667 0 0 1-.943-.943l2.862-2.862H5.667a.667.667 0 1 1 0-1.333h9.057z"></path> </svg> </button> </div> </div>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$visual","$timeout",function(o,e){return{template:r.default,replace:!0,link:function(t,e){t.$on("$destroy",function(){o.hide(e)}),t.hide=function(){o.hide(t,e)},e.on("change",function(){var e,o,i,n;t.selected=(e=t.control.select.options,o=["value"],i=t.ngModel,n=void 0,e.forEach(function(t){o.forEach(function(e){t[e]===i&&(n=t)})}),n)})},controller:["$scope",function(e){}]}}];var i,n=o(58),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class=ea-editor-select-visual-group ng-class="{\'ea-editor-select-visual-group-active\': visible, \'ea-editor-select-visual-group-{{control.select.layout}}\': true }"> <div class=ea-editor-select-visual-group-header ng-click=hide()> <div class=ea-editor-select-visual-group-back-button> <svg width=16px height=16px viewBox="0 0 16 16" fill=#989fa4 focusable=false> <path d="M15.001,6.993H3.367l5.3-5.286c0.391-0.391,0.391-1.024,0-1.415\n            c-0.39-0.39-1.024-0.39-1.414,0L0.292,7.236C0.079,7.45-0.006,7.735,0.014,8.014C0.007,8.278,0.1,8.544,0.302,8.745l6.942,6.961\n            c0.391,0.391,1.024,0.391,1.415,0c0.39-0.39,0.39-1.024,0-1.414L3.374,8.994h11.628c0.551,0,0.999-0.447,0.999-1\n            C16,7.44,15.552,6.993,15.001,6.993z"></path> </svg> </div> <div class=ea-editor-select-visual-group-title>{{control.name}}</div> </div> <div class=ea-editor-select-visual-group-content> <label class=ea-editor-select-visual-group-option ng-repeat="option in control.select.options" ng-class="{\'ea-editor-select-visual-group-option-selected\': option.value === ngModel, \'ea-editor-select-visual-group-option-divider\': option.title}"> <div class=ea-editor-select-visual-group-option-image-container ng-show=!option.title> <img ng-src={{option.img}} alt={{option.name}} class=ea-editor-select-visual-group-option-image ng-if=option.img> </div> <span class=ea-editor-select-visual-group-option-title>{{option.name || option.title}}</span> <input name=skin type=radio ng-value=option.value ng-model=$parent.ngModel class=ea-editor-select-visual-group-option-radio ng-show=!option.title> </label> </div> </div>'},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$rootScope","$l10n",function(o,e){return{link:function(e,t){t.bind("mouseenter",function(){e.control.description&&e.$apply(function(){o.editorHint=e.control.description,o.editorHintVisible=!0})}),t.bind("mouseleave",function(){o.editorHint===e.control.description&&e.$apply(function(){o.editorHintVisible=!1})})}}}]},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{template:r.default,replace:!0,link:function(e,t){var i=t[0].getElementsByClassName("ea-editor-toolbar-item");angular.forEach(i,function(o){o.addEventListener("click",function(e){var t=angular.element(o).hasClass("toolbar-item-active");angular.element(i).removeClass("toolbar-item-active"),t||angular.element(o).addClass("toolbar-item-active")})})},controller:["$scope",function(e){}]}};var i,n=o(61),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports="<div class=ea-editor-toolbar> <elfsight-apps-editor-toolbar-resolution ng-model=toolbar.resolution></elfsight-apps-editor-toolbar-resolution> <elfsight-apps-editor-toolbar-background ng-model=toolbar.background></elfsight-apps-editor-toolbar-background> </div>"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$sce","$timeout",function(e,r){return{template:i.default,scope:{ngModel:"="},replace:!0,controller:["$scope","$element","$rootScope",function(t,o,i){t.values=[{value:"100%",code:e.trustAsHtml(s.default.content)},{value:"768px",code:e.trustAsHtml(a.default.content)},{value:"375px",code:e.trustAsHtml(l.default.content)}],t.select=function(e){t.ngModel=e,r(function(){o.removeClass("toolbar-item-active")}),document.querySelector(".ea-editor-preview-container").style.maxWidth=e.value};var n=t.values[0];i.previewDefaultResolution&&t.values.forEach(function(e){e.value===i.previewDefaultResolution&&(n=e)}),t.select(n)}]}}];var i=n(o(63)),s=n(o(64)),a=n(o(65)),l=n(o(66));function n(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports='<div class=ea-editor-toolbar-item> <div class=ea-editor-toolbar-item-trigger> <div class=ea-editor-toolbar-item-icon> <svg width=16 height=16 viewBox="0 0 16 16" ng-bind-html=ngModel.code></svg> </div> </div> <div class=ea-editor-toolbar-item-values> <div class="ea-editor-toolbar-resolution-value ea-editor-toolbar-item-value" ng-repeat="value in values" ng-click=select(value) ng-class="{\'toolbar-item-value-active\': value === ngModel}"> <div class="ea-editor-toolbar-resolution-value-icon ea-editor-toolbar-item-value-icon"> <svg width=16 height=16 viewBox="0 0 16 16" ng-bind-html=value.code></svg> </div> </div> </div> </div>'},function(e,t){e.exports={attributes:{width:"16",height:"16",viewBox:"0 0 16 16"},content:'<path d="M16,10v1a2,2,0,0,1-2,2H10v1h1a1,1,0,1,1,0,2H5a1,1,0,0,1,0-2H6V13H2a2,2,0,0,1-2-2V10H0V2A2,2,0,0,1,2,0H14a2,2,0,0,1,2,2v8h0ZM14,4h0V3a1,1,0,0,0-1-1H3A1,1,0,0,0,2,3V4H2V8H2V9a1,1,0,0,0,1,1H13a1,1,0,0,0,1-1V8h0V4Z"/>'}},function(e,t){e.exports={attributes:{width:"16",height:"16",viewBox:"0 0 16 16"},content:'<path d="M15,2V14a2,2,0,0,1-2,2H3a2,2,0,0,1-2-2V2A2,2,0,0,1,3,0H13A2,2,0,0,1,15,2ZM4,2A1,1,0,0,0,3,3v9a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V3a1,1,0,0,0-1-1H4Z"/>'}},function(e,t){e.exports={attributes:{width:"16",height:"16",viewBox:"0 0 16 16"},content:'<path d="M13,2V14a2,2,0,0,1-2,2H5a2,2,0,0,1-2-2V2A2,2,0,0,1,5,0h6A2,2,0,0,1,13,2ZM6,2A1,1,0,0,0,5,3v9a1,1,0,0,0,1,1h4a1,1,0,0,0,1-1V3a1,1,0,0,0-1-1H6Z"/>'}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$sce","$timeout",function(e,n){return{template:r.default,scope:{ngModel:"="},replace:!0,controller:["$scope","$element","$rootScope",function(t,o,e){var i=angular.element(document.querySelector(".ea-editor-preview-overlay"));t.select=function(e){n(function(){o.removeClass("toolbar-item-active"),i.removeClass("ea-editor-preview-overlay-"+t.ngModel).addClass("ea-editor-preview-overlay-"+e),t.ngModel=e})},t.values=["white","black","white-chess","black-chess"],t.select(e.previewDefaultBgColor||"white-chess"),t.ngModel=t.values[3]}]}}];var i,n=o(68),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){e.exports='<div class=ea-editor-toolbar-item> <div class=ea-editor-toolbar-item-trigger> <div class=ea-editor-toolbar-item-icon> <svg width=16 height=16 viewBox="0 0 16 16"> <path d=M14.2,10.7c0,0-1.8,1.9-1.8,3.1c0,1,0.8,1.8,1.8,1.8s1.8-0.8,1.8-1.8C16,12.6,14.2,10.7,14.2,10.7z /> <path d="M4.1,0.4L2.8,1.7L5,3.8L0.4,8.4c-0.5,0.5-0.5,1.4,0,1.9l4.9,4.9c0.3,0.3,0.6,0.4,0.9,0.4c0.3,0,0.7-0.1,0.9-0.4l4.9-4.9\n                    c0.5-0.5,0.5-1.4,0-1.9L4.1,0.4z M2,9.3l4.3-4.3l4.3,4.3H2z"/> </svg> </div> </div> <div class=ea-editor-toolbar-item-values> <div class="ea-editor-toolbar-background-value ea-editor-toolbar-item-value" ng-repeat="value in values" ng-click=select(value) ng-class="{\'toolbar-item-value-active\': value === ngModel}"> <div class="ea-editor-toolbar-background-value-icon ea-editor-toolbar-item-value-icon"> <div class="ea-editor-toolbar-background-{{value}} ea-editor-toolbar-background-value-icon-color"></div> </div> </div> </div> </div>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$injector",function(e){return new r.default(e)}];var i,n=o(70),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c="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},i=function(){function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e}}();var o=function(){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=this;this.$rootScope=e.get("$rootScope"),this.$compile=e.get("$compile"),this.$sce=e.get("$sce"),this.$timeout=e.get("$timeout"),this.$q=e.get("$q"),this.$l10n=e.get("$l10n"),this.$utils=e.get("$utils"),this.gettextCatalog=e.get("gettextCatalog"),this.$scope={},window.addEventListener("message",function e(){t.handlePostMessage(event,t),t.handlePostMessageFunc=e})}return i(o,[{key:"init",value:function(o){var r=this,s=this,e=o.parent||{},t=o.widget||{},a=o.settings||{},l=o.preferences||{},i=o.language||null,n=o.localization||{};this.$l10n.init(n,i),this.gettextCatalog.setCurrentLanguage(i),(o.enableCustomCSS||!1)&&l.enableCustomCSS&&a.properties.push({id:"customCSS",name:this.gettextCatalog.getString("Custom CSS"),tab:a.tabs[a.tabs.length-1].id,type:"textarea",textarea:{CSSMode:!0},defaultValue:"",description:this.gettextCatalog.getString("If you need to customize your widget, add your custom styles here. The styles will only be applied to this widget.")});var c="function"==typeof o.onChange?o.onChange:null;this.$rootScope.appPreferences=o.appPreferences||{},this.$rootScope.elfsightFilesToken=o.elfsightFilesToken||null,this.showFreeLink=this.showFreeLink?this.showFreeLink:o.showFreeLink,this.preferences=l||{};var d={};angular.forEach(a.tabs,function(e){e.name=r.$l10n.translate(e.name),d[e.id]=e,d[e.id].properties=[]}),angular.forEach(a.properties,function(e){e.tab in d&&d[e.tab].properties.push(e)});var u=s.$rootScope.$new();if(u.templates=o.templates||{},u.tabs=d,u.widget=t,u.showLoader=!0,u.onTemplateSelect="function"==typeof o.onTemplateSelect?o.onTemplateSelect:null,this.$rootScope.previewDefaultBgColor=l.previewDefaultBgColor||"white-chess",this.$rootScope.previewDefaultResolution=l.previewDefaultResolution||"100%",u.widget.data||(u.widget.data={}),this.$utils.recursivelyGetAllProps(a.properties,u.widget.data,"subgroup"),u.previewUrl=s.$sce.trustAsResourceUrl(o.previewUrl),o.observerUrl){var h=document.createElement("script");h.src=o.observerUrl,h.defer="defer",h.onload=function(){window.eapps&&eapps.observer&&angular.isFunction(eapps.observer)&&eapps.observer(u,a.properties,s.$rootScope)},e[0].appendChild(h)}if(this.editor=s.$compile("<elfsight-apps-editor></elfsight-apps-editor>")(u),e.append(this.editor),o.previewUrl){var p=this.editor[0].getElementsByClassName("ea-editor-preview-container");this.loadPreview(p,o.previewUrl,u).then(function(e){r.toolbar=s.$compile("<elfsight-apps-editor-toolbar></elfsight-apps-editor-toolbar>")(u),setTimeout(function(){r.toolbar[0]&&r.editor.append(r.toolbar)});var i=window.frames.preview,n=void 0,t=JSON.parse(angular.toJson(u.widget.data));r.showFreeLink=r.showFreeLink?r.showFreeLink:o.showFreeLink,(s.currentData=t).deactivate=!1,t.showElfsightLogo=a.showElfsightLogo||r.showFreeLink,i.postMessage({action:"data:updated",data:t,appPreferences:r.$rootScope.appPreferences},"*"),u.showLoader=!1,r.$timeout(function(){u.$apply()}),u.$watch("widget.data",function(e,t){s.$timeout.cancel(n);var o=JSON.parse(angular.toJson(u.widget.data));c&&c(o),o.deactivate=!1,o.showElfsightLogo=a.showElfsightLogo||r.showFreeLink,n=s.$timeout(function(){i.postMessage({action:"data:updated",data:o,appPreferences:r.$rootScope.appPreferences},"*"),s.currentData=o},angular.isNumber(l.previewUpdateTimeout)?l.previewUpdateTimeout:600),n=s.$timeout(function(){i.postMessage({action:"settings.updated",data:o,appPreferences:r.$rootScope.appPreferences},"*"),s.currentData=o},angular.isNumber(l.previewUpdateTimeout)?l.previewUpdateTimeout:600)},!0)}),u.$watch("toolbar",function(e,o){var i=window.frames.preview||null;angular.forEach(e,function(e,t){o&&angular.equals(e,o[t])||i&&i.postMessage({action:"toolbar."+t+".changed",data:JSON.parse(angular.toJson(e))},"*")})},!0)}u.expanded=!1,this.fit(u),this.watch(u),this.$scope=u}},{key:"fit",value:function(e){1024<this.editor[0].clientWidth?e.adaptiveClass="large":this.editor[0].clientWidth<1024&&480<this.editor[0].clientWidth?e.adaptiveClass="medium":this.editor[0].clientWidth<480&&(e.adaptiveClass="small")}},{key:"watch",value:function(e){var t=this;e.$watch(function(){return t.editor[0].offsetWidth},function(){t.fit(e)}),window.addEventListener("resize",function(){e.$apply()})}},{key:"loadPreview",value:function(e,t){var o=document.createElement("iframe"),i=this.$q.defer();return o.id="ea-editor-preview",o.className="ea-editor-preview",o.name="preview",o.src=t,e[0].appendChild(o),o.addEventListener("load",function(){i.resolve(o)}),i.promise}},{key:"getData",value:function(){return void 0!==this.currentData?this.currentData:null}},{key:"handlePostMessage",value:function(e,i){var n=this,t=e.data;if("object"===(void 0===t?"undefined":c(t))){if(t.action&&~t.action.search("EappsPreview.toolbar")){var o=t.action.split("."),r=o[2];"set"===o[3]&&this.$scope&&this.$scope.toolbar&&(i.$scope.toolbar[r]=t.data)}t.action&&~t.action.search("EappsPreview.appPreferences.updated")&&this.$rootScope&&(i.$rootScope.appPreferences=t.data)}else{this.toolbar||(this.toolbar=i.$compile("<elfsight-apps-editor-toolbar></elfsight-apps-editor-toolbar>")(this.$scope),setTimeout(function(){n.toolbar[0]&&n.editor.append(n.toolbar)}));var s=window.frames.preview,a=void 0,l=JSON.parse(angular.toJson(this.$scope.widget.data));(i.currentData=l).deactivate=!1,l.showElfsightLogo=this.showFreeLink,s.postMessage({action:"data:updated",data:l,appPreferences:this.$rootScope.appPreferences},"*"),this.$scope.showLoader=!1,this.$timeout(function(){n.$scope.$apply()}),this.$scope.$watch("widget.data",function(e,t){i.$timeout.cancel(a);var o=JSON.parse(angular.toJson(n.$scope.widget.data));o.deactivate=!1,o.showElfsightLogo=n.showFreeLink,a=i.$timeout(function(){s.postMessage({action:"data:updated",data:o,appPreferences:n.$rootScope.appPreferences},"*"),i.currentData=o},angular.isNumber(n.preferences.previewUpdateTimeout)?n.preferences.previewUpdateTimeout:600),a=i.$timeout(function(){s.postMessage({action:"settings.updated",data:o,appPreferences:n.$rootScope.appPreferences},"*"),i.currentData=o},angular.isNumber(n.preferences.previewUpdateTimeout)?n.preferences.previewUpdateTimeout:600)},!0)}}},{key:"destroy",value:function(){window.removeEventListener("message",this.handlePostMessageFunc)}}]),o}();t.default=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$injector",function(e){return new r.default(e)}];var i,n=o(72),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e}}();var i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);this.$timeout=e.get("$timeout"),this.$compile=e.get("$compile")}return o(t,[{key:"show",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){},i=arguments[3];i=i||0;var n=document.getElementsByClassName("ea-editor-form")[0];e.closeCb=o,e.controlGroupProperty=t,angular.element(n).append(this.$compile("<elfsight-apps-sub></elfsight-apps-sub>")(e)),this.$timeout(function(){e.visible=!0},i)}},{key:"hide",value:function(e,t){!0===e.visible&&(e.visible=!1,this.$timeout(function(){e.$destroy(),e.closeCb(),t&&t.remove()},300))}}]),t}();t.default=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["$injector",function(e){return new r.default(e)}];var i,n=o(74),r=(i=n)&&i.__esModule?i:{default:i}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e}}();var i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);this.$timeout=e.get("$timeout"),this.$compile=e.get("$compile")}return o(t,[{key:"show",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){},o=document.getElementsByClassName("ea-editor-form")[0];e.closeCb=t,angular.element(o).append(this.$compile("<elfsight-apps-visual></elfsight-apps-visual>")(e)),this.$timeout(function(){e.visible=!0}),this.watch(e)}},{key:"hide",value:function(e,t){!0===e.visible&&(e.visible=!1,e.closeCb(e),this.$timeout(function(){t&&t.remove()},300))}},{key:"watch",value:function(e){var t=this;e.$watch("ngModel",function(){e.control.closeOnClick&&t.hide(e)})}}]),t}();t.default=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e}}();t.default=function(){return new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lang=null,this.localization=null}return o(e,[{key:"init",value:function(e,t){this.localization=e,this.lang=t}},{key:"translateControl",value:function(e){return e.name=this.translate(e.name),e.description=this.translate(e.description),e.defaultValue=this.translate(e.defaultValue),e.select&&(e.select.option=this.translateSelect(e.select)),e.selectInline&&(e.selectInline.option=this.translateSelect(e.selectInline)),e.checklist&&(e.checklist.option=this.translateSelect(e.checklist)),e}},{key:"translateSelect",value:function(e){var t=this;if(e&&e.options)return e.options.map(function(e){return e.name=t.translate(e.name),e})}},{key:"translate",value:function(e){var t=this;if(e&&this.lang&&this.localization){if("string"==typeof e)return this.localization[e]?this.localization[e]:e;if("object"===(void 0===e?"undefined":i(e))){if(Array.isArray(e))return e.map(function(e){return t.translate(e)});for(var o in e)e.hasOwnProperty(o)&&(e[o]=this.translate(e[o]));return e}}return e}}]),e}())}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e}}();t.default=["$injector",function(e){return new(function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.$l10n=e.get("$l10n")}return o(t,[{key:"recursivelyGetAllProps",value:function(e,t,o){var i=this;angular.forEach(e,function(e){e[o]?(angular.forEach(e[o].properties,function(e){t.hasOwnProperty(e.id)||(t[e.id]=i.$l10n.translate(e.defaultValue))}),i.recursivelyGetAllProps(e[o].properties,t,o)):t.hasOwnProperty(e.id)||(t[e.id]=i.$l10n.translate(e.defaultValue))})}}]),t}())(e)}]},function(e,t,o){var i=o(78);"string"==typeof i&&(i=[[e.id,i,""]]);o(92)(i,{});i.locals&&(e.exports=i.locals)},function(e,t,o){(e.exports=o(79)()).push([e.id,'/*!\n * angularjs-color-picker v3.4.8\n * https://github.com/ruhley/angular-color-picker/\n *\n * Copyright 2017 ruhley\n *\n * 2017-10-06 09:52:03\n *\n */.color-picker-wrapper{position:relative}.color-picker-wrapper .color-picker-input-wrapper{display:table;position:relative}.color-picker-wrapper .input-group{position:relative;border-collapse:separate}.color-picker-wrapper .input-group .color-picker-input,.color-picker-wrapper .input-group .input-group-addon{display:table-cell}.color-picker-wrapper .input-group .color-picker-input{position:relative;z-index:2;float:left;margin-bottom:0}.color-picker-wrapper .input-group .input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc}.color-picker-wrapper .input-group .input-group-addon:first-child{border-right-width:0}.color-picker-wrapper .input-group .input-group-addon:last-child{border-left-width:0}.color-picker-wrapper .input-group .color-picker-input-swatch{padding-left:12px}.color-picker-wrapper .color-picker-input-swatch{padding-left:36px}.color-picker-wrapper .color-picker-swatch{cursor:pointer;z-index:3}.color-picker-wrapper .color-picker-swatch:not(.input-group-addon){position:absolute;top:3px;width:28px;height:70%;box-sizing:border-box;border-radius:3px;vertical-align:middle;background-position:-80px 0;border:1px solid #ccc;padding:0;margin:0;display:inline-block}.color-picker-wrapper .color-picker-swatch:not(.input-group-addon).color-picker-swatch-left{left:3px}.color-picker-wrapper .color-picker-swatch:not(.input-group-addon).color-picker-swatch-right{right:3px}.color-picker-wrapper .color-picker-panel{position:absolute;background:#fff;border:1px solid #ccc;box-shadow:0 0 20px rgba(0,0,0,.5);z-index:99999;width:150px;table-layout:fixed;border:1px solid #fff;padding-right:1px;box-sizing:content-box}.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper{display:table;width:100%}.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row{display:table-row}.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-overlay{position:absolute;width:100%;height:150px;top:0;left:0;z-index:2}.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-grid,.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-hue,.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-lightness,.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-opacity,.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-saturation{background-image:linear-gradient(45deg,grey 25%,transparent 0),linear-gradient(-45deg,grey 25%,transparent 0),linear-gradient(45deg,transparent 75%,grey 0),linear-gradient(-45deg,transparent 75%,grey 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-hue,.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-lightness,.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-opacity,.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-saturation{display:table-cell;position:relative;left:1px;width:20px;background-color:#fff;cursor:row-resize}.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-slider{position:absolute;top:0;left:0;width:18px;height:2px;background:#fff;border:1px solid #000;box-sizing:content-box;margin-top:-1px;z-index:3}.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-grid{display:table-cell;position:relative;width:150px;height:150px;cursor:crosshair}.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-grid .color-picker-grid-inner{width:150px;height:150px;z-index:9}.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-grid .color-picker-overlay{background-image:url(data:image/png;base64, );pointer-events:none}.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-grid .color-picker-picker{position:absolute;top:70px;left:70px;width:12px;height:12px;border:1px solid #000;border-radius:10px;margin-top:-6px;margin-left:-6px;background:0 0;box-sizing:content-box;z-index:99}.color-picker-wrapper .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-grid .color-picker-picker>div{position:absolute;top:0;left:0;width:8px;height:8px;border-radius:8px;border:2px solid #fff;box-sizing:content-box}.color-picker-wrapper .color-picker-panel .color-picker-actions .color-picker-action{width:calc(33.3333% - 6px);margin:3px}.color-picker-wrapper .color-picker-panel.color-picker-show-inline{position:relative}.color-picker-wrapper .color-picker-panel.color-picker-show-hue.color-picker-show-saturation.color-picker-show-lightness.color-picker-show-alpha{width:230px}.color-picker-wrapper .color-picker-panel.color-picker-show-hue.color-picker-show-lightness.color-picker-show-alpha,.color-picker-wrapper .color-picker-panel.color-picker-show-hue.color-picker-show-saturation.color-picker-show-alpha,.color-picker-wrapper .color-picker-panel.color-picker-show-hue.color-picker-show-saturation.color-picker-show-lightness{width:210px}.color-picker-wrapper .color-picker-panel.color-picker-show-hue.color-picker-show-alpha,.color-picker-wrapper .color-picker-panel.color-picker-show-hue.color-picker-show-lightness,.color-picker-wrapper .color-picker-panel.color-picker-show-hue.color-picker-show-saturation,.color-picker-wrapper .color-picker-panel.color-picker-show-saturation.color-picker-show-alpha,.color-picker-wrapper .color-picker-panel.color-picker-show-saturation.color-picker-show-lightness{width:190px}.color-picker-wrapper .color-picker-panel.color-picker-show-saturation.color-picker-show-lightness.color-picker-show-alpha{width:210px}.color-picker-wrapper .color-picker-panel.color-picker-show-lightness.color-picker-show-alpha{width:190px}.color-picker-wrapper .color-picker-panel.color-picker-show-alpha,.color-picker-wrapper .color-picker-panel.color-picker-show-hue,.color-picker-wrapper .color-picker-panel.color-picker-show-lightness,.color-picker-wrapper .color-picker-panel.color-picker-show-saturation{width:170px}.color-picker-wrapper .color-picker-panel.color-picker-panel-bottom{top:auto}.color-picker-wrapper .color-picker-panel.color-picker-panel-top{bottom:100%}.color-picker-wrapper .color-picker-panel.color-picker-panel-left{left:0}.color-picker-wrapper .color-picker-panel.color-picker-panel-right{right:0}.color-picker-wrapper .color-picker-panel.color-picker-panel-round .color-picker-grid-wrapper .color-picker-row .color-picker-grid .color-picker-overlay{background-image:url(data:image/png;base64, );border-radius:50%}.color-picker-wrapper .color-picker-panel.color-picker-panel-round .color-picker-grid-wrapper .color-picker-row .color-picker-grid .color-picker-grid-inner{background-color:#fff}.color-picker-wrapper .color-picker-hidden{display:none}.color-picker-wrapper.color-picker-disabled .color-picker-grid,.color-picker-wrapper.color-picker-disabled .color-picker-hue,.color-picker-wrapper.color-picker-disabled .color-picker-input,.color-picker-wrapper.color-picker-disabled .color-picker-opacity,.color-picker-wrapper.color-picker-disabled .color-picker-swatch{cursor:not-allowed!important}.color-picker-wrapper.color-picker-swatch-only .color-picker-input{padding-left:33px;padding-right:0;width:35px}.color-picker-wrapper.color-picker-swatch-only .input-group .input-group-addon{width:35px;height:100%;border-right:1px solid #ccc}.color-picker-wrapper.color-picker-swatch-only .input-group .input-group-addon:first-child{border-right-width:1px}.color-picker-wrapper.color-picker-swatch-only .input-group .input-group-addon:last-child{border-left-width:1px}.color-picker-wrapper.color-picker-swatch-only .input-group .color-picker-input{padding:0;width:1px;opacity:0;cursor:pointer}.color-picker-wrapper.color-picker-swatch-only .input-group .color-picker-input:focus{outline:0}.color-picker-wrapper.color-picker-closed .color-picker-panel{display:none}.color-picker-wrapper.color-picker-horizontal .color-picker-panel{width:150px!important}.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row,.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-grid{display:block}.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-hue,.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-lightness,.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-opacity,.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-saturation{cursor:col-resize;display:block;left:0;width:150px;height:20px}.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-hue .color-picker-overlay,.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-lightness .color-picker-overlay,.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-opacity .color-picker-overlay,.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-saturation .color-picker-overlay{height:20px}.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-hue .color-picker-slider,.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-lightness .color-picker-slider,.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-opacity .color-picker-slider,.color-picker-wrapper.color-picker-horizontal .color-picker-panel .color-picker-grid-wrapper .color-picker-row .color-picker-saturation .color-picker-slider{width:2px;height:18px;margin-top:0}iframe{border:none}.ea-editor{position:relative;display:flex;flex-direction:row;height:100%;min-height:600px;color:#fff;font-family:Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow:hidden;line-height:1.555;background:#212121;padding-top:0;transition:all .3s ease}.ea-editor-small{padding-top:36px;box-sizing:border-box}.ea-editor-form{position:relative;width:336px;height:100%;flex-direction:column;flex:0 0 336px;background:#38393a;padding-top:12px;box-sizing:border-box;transition:all .3s;transform:translateX(-100%)}.ea-editor-large .ea-editor-form{transform:translateX(0);transition:none}.ea-editor-medium .ea-editor-form,.ea-editor-small .ea-editor-form{position:absolute;left:0;z-index:1;visibility:hidden;pointer-events:none;width:100%}.ea-editor-medium .ea-editor-form{width:336px}.ea-editor-expanded .ea-editor-form{display:flex;opacity:1;visibility:visible;pointer-events:all;left:0;transform:translateX(0)}.ea-editor-responsive-button{width:56px;height:56px;top:0;display:inline-flex;align-items:center;background:#38393a;z-index:2;position:absolute;cursor:pointer;transition:all .3s;opacity:0;vertical-align:middle;box-sizing:border-box}.ea-editor-responsive-button-label{display:flex;align-items:center;width:100%}.ea-editor-responsive-button-label-icon{fill:#fff}.ea-editor-responsive-button-label-text{margin-left:12px}.ea-editor-responsive-button-arrow{height:12px;width:8px;fill:#c2c6c9;margin-left:auto}.ea-editor-small .ea-editor-responsive-button{top:0;height:36px;opacity:1;width:100%;padding:0 16px;transition:none;border-bottom:1px solid #303131}.ea-editor-medium .ea-editor-responsive-button{opacity:1;padding:8px;justify-content:center}.ea-editor-large .ea-editor-responsive-button{transition:none;pointer-events:none}.ea-editor-medium.ea-editor-expanded .ea-editor-responsive-button{transform:translateX(335px)}.ea-editor-responsive-button-hint{width:80px;height:48px;left:68px;position:absolute;background:#38393a;border-radius:8px;font-size:13px;box-sizing:border-box;padding:4px 16px;display:flex;justify-content:center;animation:jump .5s linear alternate infinite}.ea-editor-responsive-button-hint:before{content:" ";width:8px;height:8px;background:#38393a;position:absolute;left:-4px;top:50%;transform:translateY(-50%) rotate(-45deg)}.ea-editor-small .ea-editor-responsive-button-hint{display:none}.ea-editor-overlay{position:absolute;width:100%;height:100%;top:0;left:0;opacity:0;background:#000;z-index:1;transition:all .3s ease;pointer-events:none}.ea-editor-medium.ea-editor-expanded .ea-editor-overlay{opacity:.5;pointer-events:all}.ea-editor-property{margin:0 0 24px}.ea-editor-property:last-child{margin-bottom:0}.ea-editor-property-label{display:inline-block;color:#b2b4b7;font-size:10px;font-weight:500;text-transform:uppercase;padding:4px 0;margin-bottom:8px}.ea-editor-property-caption{font-size:11px;line-height:16px;padding:3px 0 3px 12px;margin-bottom:12px;border-left:2px solid #474848;color:#abadaf}.ea-editor-property-caption a{color:#abadaf;text-decoration:underline}.ea-editor-property-caption a:hover{color:#abadaf}.ea-editor-property-hide{display:none}.ea-editor-hint{display:flex;position:absolute;right:24px;bottom:0;left:24px;padding:12px 16px;border-radius:2px;font-size:13px;line-height:18px;background:#fff;color:#17191a;opacity:0;visibility:hidden;transition:all .3s ease .4s;z-index:999999}.ea-editor-hint-visible{bottom:24px;opacity:1;visibility:visible}.ea-editor-widget-name{padding:12px 24px}.ea-editor-widget-name input{box-sizing:border-box;border:1px solid transparent;border-radius:5px;padding:6px 10px;width:100%;color:#17191a;font-size:19px;text-align:center;outline:none;transition:all .2s ease}.ea-editor-widget-name input:hover{border-color:#f4f4f4}.ea-editor-widget-name input:focus{border-color:#a8d5ff}.ea-editor-tabs{display:flex;flex-direction:column;height:100%}.ea-editor-tabs-nav{display:flex;flex-direction:row;padding:0 24px;min-height:44px;height:44px;justify-content:flex-start;border-bottom:1px solid #303131;background:#38393a}.ea-editor-tabs-nav-item{position:relative;padding:16px 0;margin-left:20px;font-size:12px;font-weight:600;text-transform:uppercase;text-align:center;cursor:pointer;transition:all .2s ease;outline:none;color:#fff}.ea-editor-tabs-nav-item:first-child{margin-left:0}.ea-editor-tabs-nav-item:after{content:"";position:absolute;display:block;bottom:-1px;right:50%;left:50%;height:2px;background:transparent;transition:all .1s ease}.ea-editor-tabs-nav-item-active{color:#ff6161}.ea-editor-tabs-nav-item-active:after{background:linear-gradient(90deg,#fa3274 0,#fd3462 25%,#ffa863);right:0;left:0}.ea-editor-tabs-content{display:flex;position:relative;flex-direction:column;flex-grow:1;overflow:hidden}.ea-editor-tabs-content:before{content:"";display:block;position:absolute;top:0;right:0;left:0;height:10px;background:linear-gradient(180deg,#f6f6f6 0,hsla(0,0%,96%,0))}.ea-editor-tabs-content-item{display:none;flex-grow:1;position:relative;background:#38393a;padding:24px;overflow:auto;overflow-x:hidden;overflow-y:auto}.ea-editor-tabs-content-item-active{display:block}.ea-editor-sub{display:flex;flex-direction:column;position:absolute;top:0;left:0;width:100%;bottom:0;transition:all .5s cubic-bezier(.2,1,.3,1);transform:translate(-100%);background:#fff;box-shadow:0 0 20px rgba(51,74,96,.16);z-index:5;margin-top:-56px;padding-top:56px}.ea-editor-sub-active{transform:translate(0)}.ea-editor-sub-header{position:relative;background:#38393a;height:56px;line-height:56px;padding:0 54px;cursor:pointer;outline:none;border-bottom:1px solid #303131}.ea-editor-sub-header:hover .ea-editor-sub-back-button{left:20px}.ea-editor-sub-back-button{display:block;position:absolute;top:50%;left:24px;transform:translateY(-50%);transition:all .15s ease}.ea-editor-sub-back-button svg{display:block;width:12px;height:12px;fill:#fff}.ea-editor-sub-title{color:#fff;font-size:18px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ea-editor-sub-content{flex-grow:1;position:relative;background:#38393a;padding:24px;overflow:auto;overflow-x:hidden;overflow-y:auto}.ea-editor-preview{position:relative;width:100%;height:100%;font-size:12px}.ea-editor-preview-container{box-sizing:border-box;position:relative;margin:0 auto;width:100%;max-width:100%;height:100%;transition:.2s}.ea-editor-preview-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;transition:.2s}.ea-editor-preview-loader{box-sizing:border-box;display:block;position:absolute;top:50%;left:50%;border-radius:50%;border-style:solid;border-top-color:transparent;animation:preview-loader 1s infinite linear;width:36px;height:36px;margin:-16px 0 0 -16px;border-width:2px;color:#b2b4b7;opacity:0;visibility:hidden}.ea-editor-preview-loader-show{opacity:1;visibility:visible}@-webkit-keyframes preview-loader{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes preview-loader{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ea-editor-property-control-text{position:relative}.ea-editor-property-control-text input{box-sizing:border-box;color:#fff;font-size:13px;font-weight:400;background:#303131;border-radius:2px;border:none;width:100%;height:32px;outline:none;line-height:20px;padding:6px 16px;margin:0;transition:all .1s ease}.ea-editor-property-control-text input:focus{background-color:#2c2d2d}.ea-editor-property-control-text-button{display:inline-block;position:absolute;right:0;top:0;margin:2px;color:#111;font-size:13px;line-height:16px;padding:6px 16px;border-radius:2px;background:#fff;cursor:pointer;transform:scale(1);transition:transform .3s}.ea-editor-property-control-text-button:active{transform:scale(.95)}.ea-editor-property-control-text-button~input{padding-right:84px;text-overflow:ellipsis;overflow:hidden}.ea-editor-property-control-text-error{display:inline-block;color:#ff4f4f;font-size:10px;font-weight:500;padding:4px 0;margin-top:8px}.ea-editor-property-control-textarea textarea{box-sizing:border-box;color:#fff;font-family:Roboto,Arial,sans-serif;font-size:13px;font-weight:400;background:#303131;border-radius:2px;width:100%;outline:none;overflow:hidden!important;padding:10px 16px;min-height:74px;resize:none;border:none;transition:all .1s ease}.ea-editor-property-control-textarea textarea:focus{background-color:#2c2d2d}.ea-editor-property-control-textarea .jodit_container *{line-height:inherit;margin-bottom:inherit}.ea-editor-property-control-textarea .jodit_container .jodit_source{margin:0}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline){background:none;line-height:inherit;margin-bottom:inherit}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_form{margin:0;padding:20px;box-sizing:border-box}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_form input[type=text]{border-radius:2px;border:none;background:#3f4141;color:#fff;margin-top:0;margin-bottom:12px;box-sizing:border-box;font-size:13px;font-weight:400;width:100%;height:32px;outline:none;line-height:20px;padding:6px 16px;transition:all .1s ease}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_form input[type=text]:focus{background-color:#2c2d2d}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_form input[type=checkbox]{transition:none;margin-right:4px;border:none;box-shadow:none;top:0}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_form input[type=checkbox]:focus{box-shadow:none}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_form input[type=checkbox]:after{background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiP…4zLTAuMi0wLjRDMTAuMSwzLjIsMTAsMy4xLDkuOSwzLjF6Ii8+DQoJPC9nPg0KPC9zdmc+DQo=");background-position:50%;background-repeat:no-repeat;background-size:12px;transition:none}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_form input[type=checkbox]:checked:after{background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgdmlld0JveD0iMCAwIDEyIDEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMiAxMjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KCTxnPg0KCQk8cGF0aCBzdHlsZT0iZmlsbDojZmZmZmZmOyIgZD0iTTkuOSwzLjFjLTAuMiwwLTAuMywwLTAuNCwwLjJMNS4zLDcuNUwzLjQsNS42QzMuMyw1LjUsMy4xLDUuNCwzLDUuNWMtMC4xLDAtMC4zLDAuMS0wLjQsMC4yQzIuNSw1LjcsMi40LDUuOSwyLjQsNg0KCQkJYzAsMC4yLDAsMC4zLDAuMiwwLjRsMi4zLDIuM0M1LDguOCw1LjEsOC45LDUuMyw4LjljMC4xLDAsMC4zLTAuMSwwLjQtMC4ybDQuNi00LjZjMC4xLTAuMSwwLjItMC4zLDAuMi0wLjQNCgkJCWMwLTAuMS0wLjEtMC4zLTAuMi0wLjRDMTAuMSwzLjIsMTAsMy4xLDkuOSwzLjF6Ii8+DQoJPC9nPg0KPC9zdmc+DQo=");background-color:#3f4141;border:none}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_form input[type=checkbox]:checked:before{content:none}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_form label{font-size:13px;font-weight:400;cursor:pointer;height:16px;display:flex;align-items:center;margin-top:12px}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_form button{box-sizing:border-box;color:#fff;background-color:#3f4141;border-radius:2px;border:none;outline:none;cursor:pointer;height:28px;font-size:13px;font-weight:400;line-height:16px;display:flex;align-items:center;padding:0 12px;position:relative;margin:0;margin-left:auto}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_workplace{border:none}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_workplace .jodit_wysiwyg{box-sizing:border-box;color:#fff;font-family:Roboto,Arial,sans-serif;font-size:13px;font-weight:400;background:#303131;border-radius:2px;width:100%;outline:none;overflow:hidden!important;padding:10px 16px;min-height:74px;resize:none;border:none;transition:all .1s ease}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_workplace .jodit_wysiwyg a{color:#1c91ff}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar{background:#404141;border:none;box-shadow:none}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar_popup{border-radius:4px}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar_btn{cursor:auto}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar_btn.jodit_active,.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar_btn:not(.jodit_toolbar-input):hover,.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar_btn>a:hover{background-color:#6b6b6b}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar_btn.jodit_active .jodit_icon,.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar_btn:not(.jodit_toolbar-input):hover .jodit_icon,.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar_btn>a:hover .jodit_icon{fill:#fff}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar_btn .jodit_icon{fill:#fff;backface-visibility:hidden}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar_btn a{cursor:pointer}.ea-editor-property-control-textarea .jodit_container:not(.jodit_inline) .jodit_toolbar .jodit_with_dropdownlist .jodit_with_dropdownlist-trigger{border-top-color:#fff}\n/*!\n * \n *    jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser\n *    Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)\n *    Version: v3.2.9\n *    Url: https://xdsoft.net/jodit/\n *    License(s): GPL-2.0-or-later\n * \n */.jodit,.jodit *,.jodit_container,.jodit_container *{box-sizing:border-box}.jodit .jodit_workplace,.jodit_container .jodit_workplace{position:relative;overflow:auto}.jodit .jodit_workplace .jodit_wysiwyg,.jodit .jodit_workplace .jodit_wysiwyg_iframe,.jodit_container .jodit_workplace .jodit_wysiwyg,.jodit_container .jodit_workplace .jodit_wysiwyg_iframe{height:100%;width:100%}.jodit_container:not(.jodit_inline){background:#fff;font-size:14px;font-family:Helvetica,sans-serif}.jodit_container:not(.jodit_inline) .jodit_workplace{border:1px solid #ccc}.jodit_disabled{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.jodit_hidden{display:none!important}.jodit_wysiwyg{outline:0}.jodit_wysiwyg::-moz-selection,.jodit_wysiwyg ::-moz-selection{background:#b5d6fd;color:#000}.jodit_wysiwyg::selection,.jodit_wysiwyg ::selection{background:#b5d6fd;color:#000}.jodit_container:not(.jodit_inline) .jodit_wysiwyg{margin:0;padding:10px;outline:0;overflow-x:auto;position:relative}.jodit_container:not(.jodit_inline) .jodit_wysiwyg img{position:relative;max-width:100%}.jodit_container:not(.jodit_inline) .jodit_wysiwyg p,.jodit_container:not(.jodit_inline) .jodit_wysiwyg pre{margin:0 0 10px}.jodit_container:not(.jodit_inline) .jodit_wysiwyg h1,.jodit_container:not(.jodit_inline) .jodit_wysiwyg h2,.jodit_container:not(.jodit_inline) .jodit_wysiwyg h3,.jodit_container:not(.jodit_inline) .jodit_wysiwyg h4,.jodit_container:not(.jodit_inline) .jodit_wysiwyg h5{margin-top:0}.jodit_container:not(.jodit_inline) .jodit_wysiwyg blockquote{border-left:2px solid #222;margin-left:0;padding-left:5px;color:#222}.jodit_clearfix:after,.jodit_clearfix:before{content:" ";display:table}.jodit_clearfix:after{clear:both}.jodit_dark_theme.jodit_container{background-color:#575757}.jodit_dark_theme .jodit_workplace{border-color:rgba(87,87,87,.8)}.jodit_dark_theme .jodit_statusbar{background-color:rgba(95,92,92,.8);border-color:rgba(87,87,87,.8)}.jodit_dark_theme .jodit_statusbar,.jodit_dark_theme .jodit_statusbar .jodit_statusbar_item span{color:#d1cccc}.jodit_dark_theme .jodit_toolbar_popup,.jodit_dark_theme .jodit_toolbar_popup-inline,.jodit_dark_theme .jodit_toolbar_popup-inline:before,.jodit_dark_theme .jodit_toolbar_popup:before{background:#575757}.jodit_dark_theme .jodit_toolbar{background:#5f5c5c;border-color:rgba(87,87,87,.8)}.jodit_dark_theme .jodit_toolbar li.jodit_toolbar_btn>a{color:#d1cccc}.jodit_dark_theme .jodit_toolbar li.jodit_toolbar_btn>a:hover{background-color:#575757}.jodit_dark_theme .jodit_toolbar li.jodit_toolbar_btn.jodit_toolbar_btn-break{border-top-color:#686767}.jodit_dark_theme .jodit_toolbar li.jodit_toolbar_btn.jodit_toolbar_btn-separator{border-right-color:#686767}.jodit_dark_theme .jodit_toolbar li.jodit_toolbar_btn.active,.jodit_dark_theme .jodit_toolbar li.jodit_toolbar_btn.jodit_active,.jodit_dark_theme .jodit_toolbar li.jodit_toolbar_btn:active,.jodit_dark_theme .jodit_toolbar li.jodit_toolbar_btn:hover{background-color:#575757}.jodit_dark_theme .jodit_toolbar li.jodit_toolbar_btn.jodit_with_dropdownlist .jodit_with_dropdownlist-trigger{border-top-color:silver}.jodit_dark_theme .jodit_icon{fill:silver}.jodit_dark_theme .jodit_wysiwyg,.jodit_dark_theme .jodit_wysiwyg_iframe{background-color:#575757;color:#d1cccc}.jodit_dark_theme .jodit_wysiwyg [data-jodit-selected-cell],.jodit_dark_theme .jodit_wysiwyg_iframe [data-jodit-selected-cell]{border-color:#152f5f}.jodit_dark_theme .jodit_dropdownlist{background:#5f5c5c}.jodit_dark_theme .jodit_tabs .jodit_tabs_buttons>a{background-color:#686767;color:#d1cccc}.jodit_dark_theme .jodit_tabs .jodit_tabs_buttons>a:hover{background-color:hsla(0,0%,41%,.8);color:#d1cccc;border-color:hsla(0,0%,41%,.9)}.jodit_dark_theme .jodit_tabs .jodit_tabs_buttons>a.active{background:rgba(81,81,81,.41);border-color:#686767}.jodit_dark_theme .jodit_tabs .jodit_tabs_buttons>a svg{fill:silver}.jodit_dark_theme .jodit_form input[type=text],.jodit_dark_theme .jodit_form input[type=url],.jodit_dark_theme .jodit_form textarea{background-color:rgba(81,81,81,.41);border-color:#686767;color:#d1cccc}.jodit_dark_theme .jodit_form button{background-color:hsla(0,0%,41%,.75);color:#d1cccc}.jodit_dark_theme .jodit_placeholder{color:hsla(0,5%,81%,.8)}.jodit_dark_theme .jodit_draganddrop_file_box,.jodit_dark_theme .jodit_uploadfile_button{color:#d1cccc}.jodit_dark_theme .jodit_draganddrop_file_box:hover,.jodit_dark_theme .jodit_uploadfile_button:hover{background-color:hsla(0,0%,41%,.75)}.jodit_dark_theme .jodit-add-new-line:before{border-top-color:#686767}.jodit_dark_theme .jodit-add-new-line span{background:hsla(0,0%,41%,.75);border-color:#686767}.jodit_dark_theme .jodit-add-new-line span svg{fill:#d1cccc}.jodit_dark_theme .jodit_resizer>i{background:hsla(0,0%,41%,.75);border-color:silver}.jodit_btn{border:1px solid;border-radius:0;background-color:#f5f5f5;background-image:linear-gradient(180deg,#fff,#e6e6e6);border-color:#ccc;text-shadow:0 1px 1px hsla(0,0%,100%,.75);color:#333;background-repeat:repeat-x;outline:0;display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jodit_btn:hover{background-color:#e6e6e6;background-position:0 -15px;text-decoration:none}.jodit_btn.jodit_btn_success{text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#5bb75b;background-image:linear-gradient(180deg,#62c462,#51a351);border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);color:#fff}.jodit_btn.jodit_btn_success svg{fill:#fff}.jodit_btn.jodit_btn_success:hover{background-color:#51a351}.jodit_btn.jodit_btn_danger{text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#da4f49;background-image:linear-gradient(180deg,#ee5f5b,#bd362f);border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);color:#fff}.jodit_btn.jodit_btn_danger svg{fill:#fff}.jodit_btn.jodit_btn_danger:hover{background-color:#bd362f}.jodit_btn.jodit_btn_inverse{text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#363636;background-image:linear-gradient(180deg,#444,#222);border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);color:#fff}.jodit_btn.jodit_btn_inverse svg{fill:#fff}.jodit_btn.jodit_btn_inverse:hover{background-color:#222}.jodit_btn.active,.jodit_btn:active{background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.jodit_btn_group{font-size:0;vertical-align:middle}.jodit_btn_group input{display:none}.jodit_btn_group button{float:left}.jodit_btn_group button+button{margin-left:-1px}.jodit_btn_group button:first-child,.jodit_btn_group input:first-child+button{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.jodit_btn_group button:last-child,.jodit_btn_group input:last-child+button{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.jodit_btn_group:after{content:"";clear:both;float:none;display:table}.jodit_context_menu{font-family:Helvetica,sans-serif;display:none;background:#fff;position:absolute;min-width:150px;box-shadow:0 0 5px 0 rgba(0,0,0,.24);z-index:16}.jodit_context_menu a{display:block;border-bottom:1px solid hsla(0,0%,80%,.24);text-decoration:none!important;color:#727272}.jodit_context_menu a svg{float:left;display:block;width:18px;height:28px;margin:0 4.5px;fill:#727272}.jodit_context_menu a span{margin-left:27px;display:block;padding:5px;border-left:1px solid hsla(0,0%,80%,.24);line-height:18px}.jodit_context_menu a:hover{background-color:#e3e3e3;color:#000}.jodit_context_menu a:hover .jodit_icon{fill:#000}.jodit_context_menu a:last-child{border:0}.jodit_context_menu-show{display:block}.jodit_dialog_box{box-sizing:border-box;display:none;width:0;height:0;border:0;position:absolute;will-change:left,top,width,height}.jodit_dialog_box.jodit_dialog_box-moved{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jodit_dialog_box *{box-sizing:border-box}.jodit_dialog_box .jodit_elfinder,.jodit_dialog_box .jodit_elfinder *{box-sizing:initial}.jodit_dialog_box .jodit_dialog_overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:14;text-align:center;white-space:nowrap;overflow:auto;display:none;background-color:rgba(0,0,0,.5)}.jodit_dialog_box.active,.jodit_dialog_box.jodit_modal .jodit_dialog_overlay{display:block}.jodit_dialog_box .jodit_dialog{z-index:15;display:inline-block;vertical-align:middle;white-space:normal;text-align:left;position:fixed;left:0;top:0;background-color:#fff;box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);min-width:200px;min-height:100px}@media (max-width:480px){.jodit_dialog_box .jodit_dialog{max-width:100%;width:100%!important;height:100%!important;top:0!important;left:0!important}}.jodit_dialog_box .jodit_dialog .jodit_promt{max-width:300px;min-width:200px;padding:10px;word-break:break-all}.jodit_dialog_box .jodit_dialog .jodit_promt label{margin-bottom:5px;display:block}.jodit_dialog_box .jodit_dialog .jodit_promt input[type=text]{display:block;border:1px solid #ccc;background:#fff;width:100%;height:28px;line-height:16px;padding:3px 6px;outline:0}.jodit_dialog_box .jodit_dialog .jodit_alert{max-width:300px;min-width:200px;padding:10px;word-break:break-all}.jodit_dialog_box .jodit_dialog .jodit_button{padding:0;margin:0;border:0;display:inline-block;vertical-align:top;width:32px;height:48px;line-height:48px;text-align:center;cursor:pointer;text-decoration:none}.jodit_dialog_box .jodit_dialog .jodit_button:not(.disabled):hover{background-color:#ecebe9}.jodit_dialog_box .jodit_dialog .jodit_button.disabled{opacity:.7}.jodit_dialog_box .jodit_dialog .jodit_input{border:1px solid #ccc;padding:5px;background-color:#fff;outline:0;width:120px;margin-left:10px;font:13px Arial;height:28px;vertical-align:middle}.jodit_dialog_box .jodit_dialog select.jodit_input{width:75px}.jodit_dialog_box .jodit_dialog .jodit_button .jodit_icon,.jodit_dialog_box .jodit_dialog .jodit_button svg,.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_icon,.jodit_dialog_box .jodit_dialog .jodit_dialog_header svg{width:16px;height:16px;display:inline-block;vertical-align:middle}.jodit_dialog_box .jodit_dialog .jodit_dialog_header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;text-align:left;color:#222;box-shadow:0 1px 3px rgba(0,0,0,.16),0 1px 2px rgba(0,0,0,.23);cursor:move;height:48px;overflow:hidden}.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_dialog_header-title,.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_dialog_header-toolbar{-ms-flex-negative:3;flex-shrink:3;font-size:18px;margin:0;font-weight:400;line-height:48px;vertical-align:top;padding:0 10px}@media (max-width:480px){.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_dialog_header-title,.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_dialog_header-toolbar{padding-left:0}}.jodit_dialog_box .jodit_dialog .jodit_dialog_header button{margin-right:10px}.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_dialog_header-button{color:#222;font-size:28px;transition:background-color .2s ease 0s;-ms-flex-preferred-size:48px;flex-basis:48px;height:48px;line-height:48px;text-decoration:none;text-align:center}.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_dialog_header-button:hover{background-color:#ecebe9}.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_toolbar{background:0 0;display:block;height:100%;border:0}.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_toolbar>li.jodit_toolbar_btn{vertical-align:middle}.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_toolbar>li.jodit_toolbar_btn input[type=number],.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_toolbar>li.jodit_toolbar_btn input[type=text],.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_toolbar>li.jodit_toolbar_btn input[type=url],.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_toolbar>li.jodit_toolbar_btn select{margin:0 5px;padding-left:10px;width:auto}.jodit_dialog_box .jodit_dialog .jodit_dialog_content{height:calc(100% - 48px);overflow:auto}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group{margin-bottom:10px;padding:0 10px}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group:first-child{margin-top:10px}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input.select,.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=number],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=text],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=url],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select.select,.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=number],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=text],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=url]{display:block;height:34px;padding:6px 4px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input.select:focus,.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=number]:focus,.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=text]:focus,.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=url]:focus,.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select.select:focus,.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=number]:focus,.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=text]:focus,.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=url]:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input.select[disabled],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=number][disabled],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=text][disabled],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=url][disabled],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select.select[disabled],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=number][disabled],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=text][disabled],.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=url][disabled]{background-color:#f0f0f0;color:#ccc}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input.select:not([class*=col-]),.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=number]:not([class*=col-]),.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=text]:not([class*=col-]),.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group input[type=url]:not([class*=col-]),.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select.select:not([class*=col-]),.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=number]:not([class*=col-]),.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=text]:not([class*=col-]),.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group select[type=url]:not([class*=col-]){width:100%}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group .jodit_input_group{display:table;border-collapse:separate;width:100%}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group .jodit_input_group>*{vertical-align:middle;display:table-cell;height:34px}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group .jodit_input_group>input{float:left;margin:0!important}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group .jodit_input_group>input:not([class*=col-]){width:100%}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group .jodit_input_group-buttons{width:1%;font-size:0;white-space:nowrap;vertical-align:middle}.jodit_dialog_box .jodit_dialog .jodit_dialog_content .jodit_form_group .jodit_input_group-buttons>a{text-align:center;display:inline-block;border:1px solid #ccc;margin-left:-1px;position:relative;height:34px;line-height:34px}.jodit_dialog_box .jodit_dialog .jodit_dialog_footer{padding:0 10px;padding-top:10px;text-align:center;height:48px;display:none}.jodit_dialog_box .jodit_dialog .jodit_dialog_footer .jodit_button{width:auto;margin-bottom:10px;height:32px;line-height:100%;padding:0 15px;background-color:#ccc;border:1px solid #ccc;color:#000;font-size:0}.jodit_dialog_box .jodit_dialog .jodit_dialog_footer .jodit_button:before{content:"";display:inline-block;vertical-align:middle;height:100%}.jodit_dialog_box .jodit_dialog .jodit_dialog_footer .jodit_button svg{display:inline-block;width:24px;height:24px;vertical-align:middle}.jodit_dialog_box .jodit_dialog .jodit_dialog_footer .jodit_button span{display:inline-block;vertical-align:middle;font-size:14px;margin-left:5px}.jodit_dialog_box .jodit_dialog .jodit_dialog_footer .jodit_button:focus{border:1px solid #8bade4;outline:1px solid #82b2e8}.jodit_dialog_box .jodit_dialog .jodit_dialog_footer .jodit_button:nth-child(n+2){margin-left:10px}.jodit_dialog_box .jodit_dialog.with_footer .jodit_dialog_content{height:calc(100% - 96px)}.jodit_dialog_box .jodit_dialog.with_footer .jodit_dialog_footer{display:block}.jodit_dialog_box .jodit_dialog .jodit_dialog_resizer{position:absolute;bottom:0;right:0;cursor:se-resize;width:7px;height:7px;display:inline-block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpilJGRYcACIoB4ORMuCSCOZMIlga4TRQJZJ4YETCdWCSBmZMIlATIOIMAAEyAPt4RnNx0AAAAASUVORK5CYII=)}.jodit_dialog_box .jodit_dialog .jodit_dialog_resizer:hover{border-color:rgba(0,0,0,.6)}@media (max-width:480px){.jodit_dialog_box .jodit_dialog .jodit_dialog_resizer{display:none}}.jodit_dialog_box.jodit_fullsize .jodit_dialog{top:0!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;height:100%!important}.jodit_dialog_box.jodit_fullsize .jodit_dialog .jodit_dialog_resizer{display:none}@media (max-width:768px){.jodit_dialog_header .jodit_input,.jodit_dialog_header .jodit_toolbar_btn-filter,.jodit_dialog_header .jodit_toolbar_btn-separator,.jodit_dialog_header .jodit_toolbar_btn-sort,.jodit_dialog_header_fullsize,.jodit_dialog_header_title{display:none!important}}.jodit_toolbar_list>.jodit_toolbar{max-height:400px;overflow:auto;box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);padding:0;margin:auto;text-align:left;position:absolute;box-sizing:border-box;transition:max-height .2s ease 0s;margin-top:0!important;list-style-type:none;font-size:16px;z-index:9;left:0;top:100%}.jodit_toolbar_list>.jodit_toolbar,.jodit_toolbar_list>.jodit_toolbar .jodit_toolbar{background:#f9f9f9}.jodit_toolbar_list>.jodit_toolbar blockquote,.jodit_toolbar_list>.jodit_toolbar h1,.jodit_toolbar_list>.jodit_toolbar h2,.jodit_toolbar_list>.jodit_toolbar h3,.jodit_toolbar_list>.jodit_toolbar h4,.jodit_toolbar_list>.jodit_toolbar h5,.jodit_toolbar_list>.jodit_toolbar p,.jodit_toolbar_list>.jodit_toolbar pre{font-family:Helvetica,sans-serif;margin:0;padding:0;font-weight:400}.jodit_toolbar_list>.jodit_toolbar h5{font-size:.8em;line-height:1.4}.jodit_toolbar_list>.jodit_toolbar h3{font-size:1.31em;line-height:1.4}.jodit_toolbar_list>.jodit_toolbar h4,.jodit_toolbar_list>.jodit_toolbar p{font-size:1em;line-height:1.5em}.jodit_toolbar_list>.jodit_toolbar h2{font-size:1.74em;line-height:1.4}.jodit_toolbar_list>.jodit_toolbar h1{font-size:2.17em;line-height:1.4}.jodit_toolbar_list>.jodit_toolbar blockquote,.jodit_toolbar_list>.jodit_toolbar pre{font-family:monospace}.jodit_toolbar_list>.jodit_toolbar li.jodit_toolbar_btn{display:block;cursor:pointer;white-space:nowrap;color:inherit;text-decoration:none;width:100%;height:auto;box-sizing:border-box;text-align:left}.jodit_toolbar_list>.jodit_toolbar li.jodit_toolbar_btn>a{background-image:none;padding:7px 24px;cursor:pointer;line-height:100%;width:auto;height:auto;display:block}.jodit_toolbar_list>.jodit_toolbar li.jodit_toolbar_btn>a>span{display:inline-block}.jodit_toolbar_list>.jodit_toolbar li.jodit_toolbar_btn>a:hover{background-color:#f3f0f0}.jodit_toolbar_list>.jodit_toolbar li.jodit_toolbar_btn>a:after{display:none}.jodit_filebrowser{font-family:Helvetica,sans-serif;font-size:0;height:100%}.jodit_filebrowser .jodit_filebrowser_loader{height:100%;width:100%;position:absolute;top:0;left:0}.jodit_filebrowser .jodit_filebrowser_loader i{position:absolute;top:50%;left:50%;margin-top:-64px;margin-left:-64px}.jodit_filebrowser .jodit_filebrowser_status{position:absolute;font-size:10px;padding:2px 3px;border-top:1px solid hsla(0,0%,50%,.4);left:31%;right:0;bottom:0;background-color:#4a4a4a;visibility:hidden;opacity:0;transition:opacity .3s linear;color:#b38888;word-break:break-all}.jodit_filebrowser .jodit_filebrowser_status.success{color:#c5c5c5}.jodit_filebrowser .jodit_filebrowser_status.active{visibility:visible;opacity:1}.jodit_filebrowser .jodit_filebrowser_files,.jodit_filebrowser .jodit_filebrowser_tree{display:none;vertical-align:top;height:100%;position:relative}.jodit_filebrowser .jodit_filebrowser_files.active,.jodit_filebrowser .jodit_filebrowser_tree.active{display:inline-block}.jodit_filebrowser .jodit_filebrowser_files::-webkit-scrollbar,.jodit_filebrowser .jodit_filebrowser_tree::-webkit-scrollbar{width:5px}.jodit_filebrowser .jodit_filebrowser_files::-webkit-scrollbar-track,.jodit_filebrowser .jodit_filebrowser_tree::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit_filebrowser .jodit_filebrowser_files::-webkit-scrollbar-thumb,.jodit_filebrowser .jodit_filebrowser_tree::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #708090}.jodit_filebrowser .jodit_filebrowser_tree.active{width:31%;background-color:#3f3f3f;overflow-y:auto}@media (max-width:480px){.jodit_filebrowser .jodit_filebrowser_tree.active{display:none}}.jodit_filebrowser .jodit_filebrowser_tree.active::-webkit-scrollbar{width:5px}.jodit_filebrowser .jodit_filebrowser_tree.active::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit_filebrowser .jodit_filebrowser_tree.active::-webkit-scrollbar-thumb{background-color:hsla(0,0%,50%,.5);outline:1px solid #708090}.jodit_filebrowser .jodit_filebrowser_tree.active .jodit_filebrowser_source_title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;padding:10px;color:#969696;border-bottom:1px solid #484848;line-height:17px;min-height:38px;position:relative;word-break:break-all;background:#5a5a5a;font-size:16px}.jodit_filebrowser .jodit_filebrowser_tree.active a{display:block;padding:10px 20px;text-decoration:none;color:#b1b1b1;font-weight:600;transition:background-color .2s ease 0s;border-bottom:1px solid #474747;line-height:17px;min-height:38px;position:relative;word-break:break-all;font-size:16px}.jodit_filebrowser .jodit_filebrowser_tree.active a i.remove{height:16px;width:16px;line-height:17px;font-size:16px;position:absolute;right:5px;top:11px;opacity:0;padding-left:3px;display:inline-block}.jodit_filebrowser .jodit_filebrowser_tree.active a i.remove:hover{background:#696969}.jodit_filebrowser .jodit_filebrowser_tree.active a:hover{color:#222;background-color:#ecebe9}.jodit_filebrowser .jodit_filebrowser_tree.active a:hover i.remove{opacity:.6}.jodit_filebrowser .jodit_filebrowser_tree.active a.jodit_button{cursor:pointer;background:#696969;text-align:center;width:auto;height:38px;color:#333}.jodit_filebrowser .jodit_filebrowser_tree.active a.jodit_button svg{vertical-align:top}.jodit_filebrowser .jodit_filebrowser_tree.active a.jodit_button:not(.disabled):hover{background-color:#ecebe9}.jodit_filebrowser .jodit_filebrowser_tree.active a.jodit_button.disabled,.jodit_filebrowser .jodit_filebrowser_tree.active a.jodit_button:hover i{opacity:.7}.jodit_filebrowser .jodit_filebrowser_files.active{width:100%;overflow-y:auto;padding:10px}.jodit_filebrowser .jodit_filebrowser_files.active .jodit_filebrowser_source_title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:-10px -10px 0;display:block;padding:10px;line-height:17px;min-height:38px;position:relative;word-break:break-all;background:#5a5a5a;font-size:16px;color:#969696}.jodit_filebrowser .jodit_filebrowser_files.active a+.jodit_filebrowser_source_title{margin-top:10px}.jodit_filebrowser .jodit_filebrowser_files.active a{vertical-align:top;display:inline-block;width:150px;height:150px;line-height:150px;text-align:center;border:1px solid #ccc;margin:5px 5px 10px;font-size:0;overflow:hidden;transition:border .1s linear,bottom .1s linear;box-sizing:content-box;position:relative}.jodit_filebrowser .jodit_filebrowser_files.active a img{max-width:100%;vertical-align:middle}.jodit_filebrowser .jodit_filebrowser_files.active a:hover{border-color:#433b5c}.jodit_filebrowser .jodit_filebrowser_files.active a.active{border-color:#1e88e5;background-color:#b5b5b5}.jodit_filebrowser .jodit_filebrowser_files.active a .jodit_filebrowser_files_item-info{position:absolute;right:0;left:0;bottom:0;white-space:normal;opacity:.85;overflow:visible;padding:.3em .6em;transition:opacity .4s ease;background-color:#e9e9e9;color:#333;text-shadow:#eee 0 1px 0;font-size:14px;line-height:16px;text-align:left}.jodit_filebrowser .jodit_filebrowser_files.active a .jodit_filebrowser_files_item-info>span{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:.75em}.jodit_filebrowser .jodit_filebrowser_files.active a .jodit_filebrowser_files_item-info>span.jodit_filebrowser_files_item-info-filename{font-weight:700;font-size:.9em}.jodit_filebrowser .jodit_filebrowser_files.active a.active .jodit_filebrowser_files_item-info{background-color:#b5b5b5;color:#fff;text-shadow:none}.jodit_filebrowser .jodit_filebrowser_files.active a:hover .jodit_filebrowser_files_item-info{bottom:-100px}.jodit_filebrowser .jodit_filebrowser_files.active.jodit_filebrowser_files_view-list{scroll-behavior:smooth}.jodit_filebrowser .jodit_filebrowser_files.active.jodit_filebrowser_files_view-list a{display:block;width:100%;height:26px;line-height:26px;margin:0;border-width:0 0 1px;text-align:left;white-space:nowrap}.jodit_filebrowser .jodit_filebrowser_files.active.jodit_filebrowser_files_view-list a img{min-width:16px;max-width:16px;vertical-align:middle;display:inline-block;margin-left:4px}.jodit_filebrowser .jodit_filebrowser_files.active.jodit_filebrowser_files_view-list a .jodit_filebrowser_files_item-info{padding:0;position:static;display:inline-block;width:calc(100% - 20px);margin-left:4px;background-color:transparent;height:100%;line-height:inherit;vertical-align:middle;font-size:0}.jodit_filebrowser .jodit_filebrowser_files.active.jodit_filebrowser_files_view-list a .jodit_filebrowser_files_item-info>span{display:inline-block;height:100%;font-size:12px}.jodit_filebrowser .jodit_filebrowser_files.active.jodit_filebrowser_files_view-list a .jodit_filebrowser_files_item-info>span.jodit_filebrowser_files_item-info-filename{width:50%}.jodit_filebrowser .jodit_filebrowser_files.active.jodit_filebrowser_files_view-list a .jodit_filebrowser_files_item-info>span.jodit_filebrowser_files_item-info-filechanged,.jodit_filebrowser .jodit_filebrowser_files.active.jodit_filebrowser_files_view-list a .jodit_filebrowser_files_item-info>span.jodit_filebrowser_files_item-info-filesize{width:25%}.jodit_filebrowser .jodit_filebrowser_files.active.jodit_filebrowser_files_view-list a:hover{background-color:#433b5c}.jodit_filebrowser .jodit_filebrowser_files.active.jodit_filebrowser_files_view-list a:hover .jodit_filebrowser_files_item-info{color:#fff;text-shadow:none}.jodit_filebrowser .jodit_filebrowser_files.active.jodit_filebrowser_files_view-list a:before{height:100%;content:"";vertical-align:middle;display:inline-block}.jodit_filebrowser .jodit_filebrowser_tree.active+.jodit_filebrowser_files.active{width:69%}@media (max-width:480px){.jodit_filebrowser .jodit_filebrowser_tree.active+.jodit_filebrowser_files.active{width:auto;display:block}}.jodit_filebrowser_preview{text-align:center;min-width:300px;max-width:900px;max-height:700px;position:relative}.jodit_filebrowser_preview .jodit_filebrowser_preview_navigation{position:absolute;top:0;height:100%;left:0}.jodit_filebrowser_preview .jodit_filebrowser_preview_navigation-next{left:auto;right:0}.jodit_filebrowser_preview .jodit_filebrowser_preview_navigation svg{width:45px;height:45px;position:relative;top:50%;margin-top:-22px;transition:fill .3s linear;fill:#9e9ba7}.jodit_filebrowser_preview .jodit_filebrowser_preview_navigation:hover svg{fill:#000}.jodit_filebrowser_preview img{max-width:100%;max-height:100%}.jodit_draghover{background-color:#ecebe9}.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_dialog_header-title .jodit_upload_button{position:relative;width:220px;border:0;padding:25px 0;margin:10px 0;overflow:hidden}.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_dialog_header-title .jodit_upload_button input{cursor:pointer;position:absolute;right:0;top:0;bottom:0;margin:0 -10px 0 0;padding:0;opacity:0;font-size:400px}.jodit_dialog_box .jodit_dialog .jodit_dialog_header .jodit_dialog_header-title.jodit_filebrowser_title_box{padding-left:10px}.jodit_grid{width:100%}.jodit_grid [class*=jodit_col-]{display:block;float:left}.jodit_grid .jodit_col-lg-5-5{width:100%}.jodit_grid .jodit_col-lg-4-5{width:80%}.jodit_grid .jodit_col-lg-3-5{width:60%}.jodit_grid .jodit_col-lg-2-5{width:40%}.jodit_grid .jodit_col-lg-1-5{width:20%}.jodit_grid .jodit_col-lg-4-4{width:100%}.jodit_grid .jodit_col-lg-3-4{width:75%}.jodit_grid .jodit_col-lg-2-4{width:50%}.jodit_grid .jodit_col-lg-1-4{width:25%}.jodit_grid:after,.jodit_grid:before{content:" ";display:table}.jodit_grid:after{clear:both}@keyframes a{to{transform:rotate(1turn)}}.jodit_icon-loader{background:url(data:image/png;base64, ) no-repeat 50%;background-size:100% 100%;width:128px;height:128px;will-change:transform;animation:a 2s ease-out 0s infinite}.jodit_icon,.jodit_icon-loader{display:inline-block;vertical-align:middle}.jodit_icon{font-style:normal;width:14px;font-size:8px;fill:#222;transform-origin:0 0!important;overflow:visible}.jodit_text_icon{font-size:14px}.jodit_toolbar_size-small .jodit_icon{min-width:12px;height:12px;line-height:12px}.jodit_toolbar_size-large .jodit_icon{min-width:16px;height:16px;line-height:16px}.jodit_image_editor{width:100%;height:100%;padding:10px;overflow:hidden}@media (max-width:768px){.jodit_image_editor{height:auto}}.jodit_image_editor>div,.jodit_image_editor>div>div{height:100%}@media (max-width:768px){.jodit_image_editor>div,.jodit_image_editor>div>div{height:auto;min-height:200px}}.jodit_image_editor *{box-sizing:border-box}.jodit_image_editor .jodit_image_editor_slider-title{text-shadow:#f3f3f3 0 1px 0;color:#333;border-bottom:1px solid hsla(0,0%,62%,.31);background-color:#f9f9f9;padding:.8em 1em;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:700;line-height:1em}.jodit_image_editor .jodit_image_editor_slider-title svg{margin-right:10px;width:16px;display:inline-block;vertical-align:middle}.jodit_image_editor .jodit_image_editor_slider-content{display:none}.jodit_image_editor .jodit_image_editor_slider.active .jodit_image_editor_slider-title{background-color:#5d5d5d;color:#fff;text-shadow:#000 0 1px 0}.jodit_image_editor .jodit_image_editor_slider.active .jodit_image_editor_slider-title svg{fill:#fff}.jodit_image_editor .jodit_image_editor_slider.active .jodit_image_editor_slider-content{display:block}.jodit_image_editor_area{background-color:#eee;background-image:linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-size:30px 30px;background-position:0 0,15px 15px;height:100%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none}.jodit_image_editor_area.active{display:block}.jodit_image_editor_area .jodit_image_editor_box{overflow:hidden;position:relative;z-index:1;pointer-events:none;height:100%}.jodit_image_editor_area .jodit_image_editor_box img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;max-width:100%;max-height:100%}.jodit_image_editor_area .jodit_image_editor_croper,.jodit_image_editor_area .jodit_image_editor_resizer{z-index:2;width:100px;height:100px;position:absolute;box-shadow:0 0 11px #000;border:1px solid #fff;background-repeat:no-repeat;top:10px;left:20px;pointer-events:none}.jodit_image_editor_area .jodit_image_editor_croper i.jodit_bottomright,.jodit_image_editor_area .jodit_image_editor_resizer i.jodit_bottomright{position:absolute;display:inline-block;border:1px solid #383838;z-index:4;background-color:#8c7878;cursor:se-resize;border-radius:10px;height:20px;width:20px;right:-10px;bottom:-10px;box-shadow:0 0 11px #000;pointer-events:all}.jodit_image_editor_area .jodit_image_editor_croper i.jodit_bottomright:active,.jodit_image_editor_area .jodit_image_editor_resizer i.jodit_bottomright:active{border:1px solid #ff0}.jodit_image_editor_area.jodit_image_editor_area_crop{height:100%;background:#eee;text-align:center;line-height:100%;position:relative}.jodit_image_editor_area.jodit_image_editor_area_crop:before{content:"";line-height:100%;vertical-align:middle;height:100%;display:inline-block}.jodit_image_editor_area.jodit_image_editor_area_crop .jodit_image_editor_box{height:100%;overflow:visible;display:inline-block;vertical-align:middle;pointer-events:all;font-size:0;text-align:left;line-height:100%}.jodit_image_editor_area.jodit_image_editor_area_crop .jodit_image_editor_box img{max-width:100%;max-height:100%}.jodit_image_editor_area.jodit_image_editor_area_crop .jodit_image_editor_box:before{content:"";line-height:100%;vertical-align:middle;height:100%;display:inline-block}.jodit_image_editor_area.jodit_image_editor_area_crop .jodit_image_editor_box:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;margin:auto;background:hsla(0,0%,100%,.3);z-index:1}.jodit_image_editor_area.jodit_image_editor_area_crop .jodit_image_editor_box .jodit_image_editor_croper{pointer-events:all;cursor:move}.jodit_image_editor_area.jodit_image_editor_area_crop .jodit_image_editor_box .jodit_image_editor_croper i.jodit_sizes{font-size:12px;white-space:pre;position:absolute;bottom:-30px;left:100%;text-align:center;color:#fff;text-shadow:none;background:rgba(0,0,0,.2);border-radius:.4em;padding:9px 6px;display:block}.jodit_properties svg{font-style:normal;display:inline-block;width:14px;height:14px;line-height:14px;font-size:8px;overflow:hidden;vertical-align:middle;fill:#222;transform-origin:0 0!important}.jodit_properties #tabsbox{padding:10px}.jodit_properties #tabsbox .jodit_form_group{padding:0}.jodit_properties .jodit_properties_view_box{padding:10px}.jodit_properties .jodit_properties_view_box .jodit_properties_image_view{height:150px;text-align:center;line-height:1;vertical-align:middle;padding:0;background-color:#f6f6f6;margin:0;vertical-align:baseline;font-size:100%;margin-bottom:10px}.jodit_properties .jodit_properties_view_box .jodit_properties_image_view:before{content:"";display:inline-block;vertical-align:middle;height:100%}.jodit_properties .jodit_properties_view_box .jodit_properties_image_view img{max-width:100%;max-height:100%;vertical-align:middle}.jodit_properties .jodit_properties_view_box .jodit_properties_image_sizes.jodit_form_group{padding:0!important;margin:0!important}.jodit_properties .jodit_properties_view_box .jodit_properties_image_sizes.jodit_form_group a{display:inline-block;cursor:pointer}.jodit_properties .jodit_properties_view_box .jodit_properties_image_sizes.jodit_form_group input[type=number]{display:inline-block!important;width:calc(50% - 8px)!important}.jodit_toolbar,.jodit_toolbar *{box-sizing:border-box}.jodit_toolbar{position:relative;left:0;top:0;margin:0!important;padding:0!important;list-style:none!important;font-size:0;background:#f9f9f9;box-shadow:0 4px 4px -2px rgba(0,0,0,.14);z-index:5;border:1px solid #ccc;border-bottom:0;min-height:16px!important}.jodit_toolbar+.jodit_toolbar_dummy{display:none}.jodit_toolbar.jodit_fly{position:absolute;left:0;right:0;z-index:11;background:#fff}.jodit_toolbar.jodit_sticky{position:fixed;position:-webkit-sticky;position:sticky;z-index:3;top:0;left:auto}.jodit_toolbar.jodit_sticky+.jodit_toolbar_dummy{display:block}.jodit_toolbar .jodit_toolbar_btn>a{color:#000;text-decoration:none;display:block;background:no-repeat 50%}.jodit_toolbar>li.jodit_toolbar_btn{display:inline-block;vertical-align:top;margin:0!important;padding:0;list-style:none!important;outline:0;position:relative;text-align:center;cursor:pointer;transition:background-color .2s linear,opacity .1s linear}.jodit_toolbar>li.jodit_toolbar_btn.jodit_disabled{background-color:transparent!important;opacity:.3;cursor:default}.jodit_toolbar>li.jodit_toolbar_btn.jodit_disabled a{cursor:default}.jodit_toolbar>li.jodit_toolbar_btn.jodit_toolbar_btn-separator{border-left:0;border-right:1px solid #e6e6e6;padding:0;margin:2px 3px 0!important;cursor:default}.jodit_toolbar>li.jodit_toolbar_btn.jodit_toolbar_btn-break{display:block!important;width:auto;border-top:1px solid #e6e6e6;height:0;margin:0 3px!important}.jodit_toolbar>li.jodit_toolbar_btn .jodit_toolbar_btn>a,.jodit_toolbar>li.jodit_toolbar_btn>a{width:100%;height:100%;display:inline-block;outline:0;text-decoration:none}.jodit_toolbar>li.jodit_toolbar_btn .jodit_toolbar_btn>a:after,.jodit_toolbar>li.jodit_toolbar_btn>a:after{content:"";display:inline-block;height:100%;vertical-align:middle}.jodit_toolbar>li.jodit_toolbar_btn .jodit_toolbar_btn>a:active+.jodit_tooltip,.jodit_toolbar>li.jodit_toolbar_btn>a:active+.jodit_tooltip{visibility:hidden!important}.jodit_toolbar>li.jodit_toolbar_btn.jodit_disabled .jodit_tooltip{display:none!important}.jodit_toolbar>li.jodit_toolbar_btn>a{line-height:100%}.jodit_toolbar>li.jodit_toolbar_btn.jodit_dropdown_open .jodit_tooltip,.jodit_toolbar>li.jodit_toolbar_btn .jodit_popap_open,.jodit_toolbar>li.jodit_toolbar_btn.jodit_popup_open .jodit_tooltip{visibility:hidden!important}.jodit_toolbar>li.jodit_toolbar_btn:not(.jodit_toolbar-input):hover{background-color:#dde4ef;outline:0}.jodit_toolbar>li.jodit_toolbar_btn.jodit_active,.jodit_toolbar>li.jodit_toolbar_btn:not(.jodit_toolbar-input):active{background-color:hsla(0,0%,87%,.4);outline:0}.jodit_toolbar>li.jodit_toolbar_btn.jodit-btn-hidden{display:none!important}.jodit_toolbar>li.jodit_toolbar_btn.jodit_with_dropdownlist .jodit_with_dropdownlist-trigger{width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:3px solid #4c4c4c;display:inline-block;vertical-align:middle;margin-left:3px}.jodit_toolbar>li.jodit_toolbar_btn.jodit_toolbar-input input,.jodit_toolbar>li.jodit_toolbar_btn.jodit_toolbar-input select{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:100%;border-radius:0;outline:0;line-height:100%}.jodit_toolbar>li.jodit_toolbar_btn.jodit_toolbar-input select{padding-right:20px;background:url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) no-repeat 98% 50%!important}.jodit_toolbar>li{min-width:32px;height:32px;line-height:32px}.jodit_toolbar>li.jodit_toolbar_btn-separator{height:28px;width:0;min-width:0}.jodit_tooltip{position:fixed;background:#727171;color:#fff;font-size:12px;line-height:15px;padding:4px 5px;font-family:Arial,sans-serif;z-index:10;width:90px;transition:opacity .3s linear}@media (max-width:768px){.jodit_tooltip{display:none}}.jodit_toolbar_size-small .jodit_toolbar{min-height:12px!important}.jodit_toolbar_size-small .jodit_toolbar>li{min-width:24px;height:24px;line-height:24px}.jodit_toolbar_size-small .jodit_toolbar>li.jodit_toolbar_btn-separator{height:20px;width:0;min-width:0}.jodit_toolbar_size-large .jodit_toolbar{min-height:18px!important}.jodit_toolbar_size-large .jodit_toolbar>li{min-width:36px;height:36px;line-height:36px}.jodit_toolbar_size-large .jodit_toolbar>li.jodit_toolbar_btn-separator{height:32px;width:0;min-width:0}.jodit_toolbar_popup{position:absolute;z-index:8;top:100%;margin-top:10px;padding-top:0;left:0;font-size:14px;line-height:14px!important;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2);border:1px solid rgba(0,0,0,.2)}.jodit_toolbar_popup .jodit_toolbar{box-shadow:none;border-width:0;background-color:transparent}.jodit_toolbar_popup .jodit_toolbar .jodit_toolbar{background-color:#f9f9f9;box-shadow:0 4px 4px -2px rgba(0,0,0,.14);border:1px solid #ccc}.jodit_toolbar_popup>*{margin:10px}.jodit_toolbar_popup .jodit_popup_triangle{padding:0;margin:0;width:8px;height:8px;position:absolute;top:-5px;left:9px;display:inline-block;transform:rotate(45deg);background:#fff;border:1px solid rgba(0,0,0,.2);border-width:1px 0 0 1px;z-index:6}.jodit_toolbar_popup.jodit_right{left:auto;right:0}.jodit_toolbar_popup.jodit_right:before{left:auto;right:14px}.jodit_toolbar .jodit_toolbar_btn>svg{max-width:50%;vertical-align:middle;font-smoothing:antialiased}.jodit_container>.jodit_toolbar>li:first-child{margin-left:2px!important}.jodit_draganddrop_file_box,.jodit_uploadfile_button{position:relative;width:220px;border:1px dashed #ccc;padding:25px 0;margin:10px 0;text-align:center;overflow:hidden}.jodit_draganddrop_file_box:hover,.jodit_uploadfile_button:hover{background-color:#ecebe9}.jodit_draganddrop_file_box input,.jodit_uploadfile_button input{cursor:pointer;position:absolute;top:0;bottom:0;right:0;margin:0;padding:0;opacity:0;font-size:400px}@media (max-width:768px){.jodit_draganddrop_file_box{width:auto;max-width:100%;min-width:120px}}.jodit_statusbar{border:1px solid #ccc;border-top:0;font-size:0;background-color:#f9f9f9;padding:0 5px}.jodit_statusbar .jodit_statusbar_item{font-size:11px;float:left;line-height:1.57142857em;margin:0 10px 0 0;padding:0;vertical-align:middle}.jodit_statusbar .jodit_statusbar_item.jodit_statusbar_item-right{float:right;margin:0 0 0 10px}.jodit_statusbar .jodit_statusbar_item li,.jodit_statusbar .jodit_statusbar_item ul{margin:0;padding:0;list-style:none;display:inline-block;vertical-align:top;position:relative}.jodit_statusbar .jodit_statusbar_item li li,.jodit_statusbar .jodit_statusbar_item ul li{margin-right:5px}.jodit_statusbar .jodit_statusbar_item a,.jodit_statusbar .jodit_statusbar_item span{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;vertical-align:baseline;text-align:left;white-space:nowrap;padding:2px 3px;line-height:10px;outline:0;border:0;color:#222}.jodit_statusbar .jodit_statusbar_item a span,.jodit_statusbar .jodit_statusbar_item span span{padding:0}.jodit_statusbar .jodit_statusbar_item svg{width:11px;height:11px;display:inline-block;vertical-align:top}.jodit_statusbar .jodit_statusbar_item a{text-decoration:none;cursor:default;border-radius:3px}.jodit_statusbar .jodit_statusbar_item a:hover{background-color:hsla(0,0%,88%,.99);text-decoration:none;color:#222}.jodit_statusbar:after{content:" ";display:block;visibility:hidden;font-size:0;height:0;float:none;clear:both}.jodit_form{color:#000}.jodit_form input[type=text],.jodit_form input[type=url],.jodit_form textarea{-webkit-appearance:none;-moz-appearance:none;display:block;outline:0;border:1px solid #b5b5b5;height:28px;line-height:28px;padding:0 5px;min-width:220px;margin-top:10px}.jodit_form input[type=text].jodit_error,.jodit_form input[type=url].jodit_error,.jodit_form textarea.jodit_error{border-color:#f7d1d1;box-shadow:inset 0 0 3px 0 hsla(0,0%,74%,.3)}@media (max-width:768px){.jodit_form input[type=text],.jodit_form input[type=url],.jodit_form textarea{min-width:150px}}.jodit_form textarea{height:128px}.jodit_form button{height:36px;line-height:1;color:#000;padding:10px;cursor:pointer;text-decoration:none;border:none;background:#d6d6d6;font-size:16px;outline:0;transition:background .2s ease 0s;margin-top:10px;margin-bottom:10px}.jodit_form button:hover{background-color:#ecebe9;color:#000}.jodit_form button:active{background:#ecebe9;color:#000}.jodit_form input[type=checkbox]{display:inline-block;z-index:2;border:0 none;cursor:pointer;height:16px;margin:0;padding:0;width:16px;position:relative;outline:0;top:3px}.jodit_form input[type=checkbox]:after{content:"";background:#fff;border:1px solid hsla(0,0%,88%,.99);border-radius:2px;background-clip:padding-box;width:16px;height:16px;display:inline-block;position:relative;z-index:1;box-sizing:border-box;transition:background .2s ease 0s,border-color .2s ease 0s}.jodit_form input[type=checkbox]:checked:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 32 32\'%3E%3Cpath d=\'M27 4L12 19l-7-7-5 5 12 12L32 9z\' fill=\'%23FFF\'/%3E%3C/svg%3E") no-repeat 50%;background-color:#b5b5b5;border-color:#b5b5b5}.jodit_form label{margin-top:10px;display:block;text-align:left}.jodit_form form:after{content:"";display:table;clear:both}.jodit_about{padding:20px}.jodit_about a{color:#459ce7;text-decoration:none}.jodit_about a:focus,.jodit_about a:hover{color:#23527c;text-decoration:underline;outline:0}.jodit_about div{margin-bottom:5px}.jodit_colorpicker{min-width:180px;text-align:left;margin:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jodit_colorpicker .jodit_colorpicker_group{margin-bottom:5px;white-space:normal}.jodit_colorpicker a{width:18px;height:18px;line-height:16px;display:inline-block;text-decoration:none;vertical-align:middle;text-align:center}.jodit_colorpicker a.jodit_text_icon{width:auto;text-decoration:none;color:#000}.jodit_colorpicker a:before{content:"";display:inline-block;height:100%;vertical-align:middle;width:0}.jodit_colorpicker a svg{display:inline-block;vertical-align:middle;font-smoothing:antialiased;max-width:14px}.jodit_colorpicker a:hover{border-color:#000}.jodit_colorpicker a:active{background:#d6d6d6;color:#b5b5b5}@keyframes b{30%{opacity:.6}60%{opacity:0}to{opacity:.6}}.jodit_progress_bar{position:absolute;top:0;left:0;height:2px;z-index:17;border-radius:1px;display:none}.jodit_progress_bar div{position:relative;background:#b91f1f;height:2px;transition:width .5s ease-out,opacity .5s linear;will-change:width,opacity}.jodit_progress_bar div:after,.jodit_progress_bar div:before{animation:b 2s ease-out 0s infinite;content:"";display:inline-block;position:absolute;top:0;height:2px;box-shadow:1px 0 6px 1px #b91f1f;border-radius:100%;opacity:.6}.jodit_progress_bar div:before{width:180px;right:-80px;clip:rect(-6px,90px,14px,-6px)}.jodit_progress_bar div:after{width:20px;right:0;clip:rect(-6px,22px,14px,10px)}.jodit_tabs .jodit_tabs_buttons{line-height:18px;margin-bottom:5px;margin-top:4px}.jodit_tabs .jodit_tabs_buttons>a{display:inline-block;text-decoration:none;font-size:11px;font-weight:700;text-align:center;white-space:nowrap;height:29px;line-height:27px;position:relative;vertical-align:middle;transition:background .1s linear;text-overflow:ellipsis;overflow:hidden;box-shadow:none;background-color:#f5f5f5;color:#737373;border:1px solid rgba(0,0,0,.1);outline:0}@media (max-width:768px){.jodit_tabs .jodit_tabs_buttons>a{width:100%!important;border-radius:0!important}}.jodit_tabs .jodit_tabs_buttons>a+a{margin-left:-1px}.jodit_tabs .jodit_tabs_buttons>a i,.jodit_tabs .jodit_tabs_buttons>a svg{width:16px;height:16px;display:inline-block;vertical-align:sub;margin-right:5px;fill:#737373}.jodit_tabs .jodit_tabs_buttons>a:hover{border:1px solid #c6c6c6;color:#111;box-shadow:none;background-color:#f8f8f8;outline:0}.jodit_tabs .jodit_tabs_buttons>a:hover i,.jodit_tabs .jodit_tabs_buttons>a:hover svg{fill:#111}.jodit_tabs .jodit_tabs_buttons>a.active,.jodit_tabs .jodit_tabs_buttons>a:active{outline:0;background:#fff;border:1px solid #ccc;color:#333}.jodit_tabs .jodit_tabs_buttons>a.active i,.jodit_tabs .jodit_tabs_buttons>a.active svg,.jodit_tabs .jodit_tabs_buttons>a:active i,.jodit_tabs .jodit_tabs_buttons>a:active svg{fill:#333}.jodit_tabs .jodit_tabs_wrapper .jodit_tab{display:none}.jodit_tabs .jodit_tabs_wrapper .jodit_tab.active{display:block}.jodit_tabs .jodit_tabs_wrapper .jodit_tab .jodit_tab_empty{min-width:220px;min-height:100px}.jodit-add-new-line{z-index:1;position:absolute;height:20px;line-height:100%;vertical-align:middle;font-size:0;top:0;outline:0;margin-top:-10px;display:none}.jodit-add-new-line,.jodit-add-new-line *{box-sizing:border-box}.jodit-add-new-line:before{height:100%}.jodit-add-new-line:after,.jodit-add-new-line:before{display:inline-block;vertical-align:middle;content:""}.jodit-add-new-line:after{box-sizing:border-box;border-top:1px solid #ccc;height:1px;width:calc(100% - 30px)}.jodit-add-new-line span{right:0;position:absolute;display:inline-block;width:30px;height:20px;background:hsla(40,7%,92%,.3);vertical-align:top;border:1px solid #ccc;padding:0 5px;cursor:pointer}.jodit-add-new-line span:hover{background:#ecebe9}.jodit-add-new-line svg{width:16px;fill:#ccc;vertical-align:top}.jodit_source_mode .jodit-add-new-line{display:none!important}.jodit_error_box_for_messages{position:absolute;right:0;bottom:0;width:0;height:0;overflow:visible;z-index:3}.jodit_error_box_for_messages>*{position:absolute;right:5px;bottom:0;display:block;transition:opacity .1s linear,bottom .3s linear;opacity:0;background:rgba(255,0,0,.29);color:#e02b2b;padding:2px 7px;border:1px solid hsla(0,65%,67%,.44);font-size:14px;white-space:pre}.jodit_error_box_for_messages>.active{opacity:1}.jodit_error_box_for_messages>.info{background:rgba(204,229,247,.71);color:#776565;border:1px solid hsla(0,0%,60%,.44)}.jodit_error_box_for_messages>.success{background:rgba(77,236,112,.29);color:#5d5a5a;border:1px solid hsla(0,0%,58%,.44)}.jodit_fullsize_box{z-index:12!important;position:static!important;overflow:visible!important}body.jodit_fullsize_box,html.jodit_fullsize_box{height:0!important;width:0!important;overflow:initial!important}html.jodit_fullsize_box{position:fixed!important}.jodit_fullsize{position:absolute;top:0;left:0;right:0;bottom:0;z-index:12;max-width:none!important}.jodit_fullsize .toolbar{width:100%!important}.jodit_fullsize .jodit_area,.jodit_fullsize .jodit_editor{height:100%}.jodit_fullsize .jodit_workflow{height:calc(100% - 24px);overflow:auto}.jodit_fullsize.jodit_toolbar_size-small .jodit_workflow{height:calc(100% - 18px)}.jodit_fullsize.jodit_toolbar_size-large .jodit_workflow{height:calc(100% - 27px)}.jodit_placeholder{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;top:0;left:0;display:block;position:absolute;padding:10px;color:rgba(0,0,0,.35);z-index:1;pointer-events:none}.jodit_toolbar_popup-inline-target{position:absolute;width:0;height:0}.jodit_toolbar_popup-inline-target.jodit_toolbar_popup-inline-target-hidden{display:none}.jodit_toolbar_popup-inline{display:inline-block!important;position:relative!important}.jodit_toolbar_popup-inline>div{color:hsla(0,0%,88%,.99);background:#fff;box-shadow:none;background-clip:padding-box;font-family:Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:13!important;text-align:left;border:1px solid hsla(0,0%,88%,.99);display:inline-block;vertical-align:top}.jodit_toolbar_popup-inline .jodit_toolbar{z-index:7;border:0;white-space:normal}.jodit_toolbar_popup-inline>div>.jodit_toolbar{white-space:nowrap;box-shadow:none;vertical-align:top}.jodit_toolbar_popup-inline>.jodit_popup_triangle{padding:0;margin:0;width:8px;height:8px;position:absolute;top:-4px;margin-left:-4px;display:inline-block;transform:rotate(45deg);background:#fff;border:1px solid hsla(0,0%,88%,.99);border-width:1px 0 0 1px;z-index:6}.jodit_toolbar_popup-inline.jodit_toolbar_popup-inline-top>.jodit_popup_triangle{top:auto;bottom:-4px;border-width:0 1px 1px 0}.jodit_toolbar_popup-inline .buttons{box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);padding:0 2px;white-space:nowrap;line-height:0;border-bottom:0}[data-jodit_iframe_wrapper]{display:block;clear:both;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative}[data-jodit_iframe_wrapper]:after{position:absolute;content:"";z-index:1;top:0;left:0;right:0;bottom:0;cursor:pointer;display:block;background:transparent}.jodit_resizer{width:100px;height:100px;position:absolute;border:1px solid rgba(3,14,82,.92);top:0;left:0;display:none;pointer-events:none;font-size:0}.jodit_resizer *{box-sizing:border-box}.jodit_resizer>span{opacity:0;transition:opacity .2s linear;left:50%;top:50%;height:24px;line-height:24px;font-size:12px;width:70px;margin-left:-35px;margin-top:-12px;text-align:center;overflow:visible;color:#fff;background-color:rgba(0,0,0,.35);max-width:100%}.jodit_resizer>i,.jodit_resizer>span{position:absolute;display:inline-block}.jodit_resizer>i{z-index:4;pointer-events:all;border:1px solid rgba(3,14,82,.92);background-color:hsla(0,0%,88%,.99);width:10px;height:10px}.jodit_resizer>i:hover{background-color:#f8f8f8}.jodit_resizer>i:first-child{left:-5px;top:-5px;cursor:nw-resize}.jodit_resizer>i:nth-child(2){right:-5px;top:-5px;cursor:ne-resize}.jodit_resizer>i:nth-child(3){right:-5px;bottom:-5px;cursor:se-resize}.jodit_resizer>i:nth-child(4){left:-5px;bottom:-5px;cursor:sw-resize}@media (max-width:768px){.jodit_resizer>i{width:20px;height:20px}.jodit_resizer>i:first-child{left:-10px;top:-10px;cursor:nw-resize}.jodit_resizer>i:nth-child(2){right:-10px;top:-10px;cursor:ne-resize}.jodit_resizer>i:nth-child(3){right:-10px;bottom:-10px;cursor:se-resize}.jodit_resizer>i:nth-child(4){left:-10px;bottom:-10px;cursor:sw-resize}}.jodit_container{min-height:100px}.jodit_container .jodit_workplace{display:-ms-flexbox;display:flex;height:auto;min-height:50px;overflow:hidden}.jodit_editor_resize{position:relative}.jodit_editor_resize a{position:absolute;bottom:0;right:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:0;height:0;overflow:hidden;border-width:7px 7px 0 0;border-color:transparent #ccc transparent transparent;border-style:dashed solid dashed dashed;cursor:se-resize}.jodit_source{display:none;position:relative;background-color:#f8f8f8;font-size:0;-ms-flex:1;flex:1;overflow:auto}.jodit_source,.jodit_source .jodit_source_mirror-fake{min-height:100%}.jodit_container.jodit_source_mode .jodit_wysiwyg,.jodit_container.jodit_source_mode .jodit_wysiwyg_iframe{display:none!important}.jodit_container.jodit_source_mode .jodit_source{display:block!important}.jodit_container.jodit_split_mode .jodit_source,.jodit_container.jodit_split_mode .jodit_wysiwyg,.jodit_container.jodit_split_mode .jodit_wysiwyg_iframe{display:block!important;width:50%;-ms-flex:1;flex:1}.jodit_source_mirror{border:0;width:100%;background:#3f3f3f;margin:0;height:100%;box-shadow:none;resize:none;box-sizing:border-box;color:#f0f0f0;outline:0;font-family:Menlo,Monaco,monospace,sans-serif;font-size:13px;line-height:1.3em;z-index:2;padding:10px;overflow:auto;white-space:pre-wrap;-moz-tab-size:2em;-o-tab-size:2em;tab-size:2em;min-height:100%}.jodit_source_mirror::-moz-selection{background:#bdbdbd}.jodit_source_mirror::selection{background:#bdbdbd}.jodit_table_resizer{cursor:col-resize;position:absolute;z-index:3;padding-left:5px;padding-right:5px;margin-left:-5px}.jodit_table_resizer:after{content:"";display:block;height:100%;width:0;border:1px solid transparent;border-width:0 1px 0 0}.jodit_table_resizer-moved{z-index:2}.jodit_table_resizer-moved:after{border-color:#1e88e5}.jodit_wysiwyg table{width:100%;border:none;border-collapse:collapse;table-layout:fixed;empty-cells:show;max-width:100%}.jodit_wysiwyg table tr{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jodit_wysiwyg table tr td,.jodit_wysiwyg table tr th{border:1px solid #ddd;text-align:left;vertical-align:middle;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.jodit_wysiwyg table tr td[data-jodit-selected-cell],.jodit_wysiwyg table tr th[data-jodit-selected-cell]{border:1px double #1e88e5}.jodit_form_inserter .jodit_form-table-creator-box{font-size:0}.jodit_form_inserter .jodit_form-table-creator-box .jodit_form-container{display:inline-block;vertical-align:top;padding:0;margin:0;min-width:180px;font-size:0}.jodit_form_inserter .jodit_form-table-creator-box .jodit_form-container>div{width:18px;height:18px;box-sizing:border-box;display:inline-block;position:relative;vertical-align:top}.jodit_form_inserter .jodit_form-table-creator-box .jodit_form-container>div:after{content:"";position:absolute;top:0;left:0;display:inline-block;width:12px;height:12px;border:1px solid #ccc}.jodit_form_inserter .jodit_form-table-creator-box .jodit_form-container>div.hovered:after{background:#7a450f;border:1px solid #b5b5b5}.jodit_form_inserter .jodit_form-table-creator-box .jodit_form-options{font-size:14px;display:inline-block;vertical-align:top}.jodit_form_inserter .jodit_form-table-creator-box .jodit_form-options label{text-align:left;padding-top:0}.jodit_form_inserter .jodit_form-table-creator-box .jodit_form-options label input{margin-right:10px}.jodit_form_inserter label{text-align:center;font-size:14px;padding:8px;display:block;margin:0}.jodit_text_icons .jodit_icon{width:auto;font-size:14px}.jodit_text_icons .jodit_icon:first-letter{text-transform:uppercase}.jodit_text_icons .jodit_tabs .jodit_tabs_buttons>a{font-family:Helvetica,sans-serif;width:auto}.jodit_text_icons .jodit_tabs .jodit_tabs_buttons>a i,.jodit_text_icons .jodit_toolbar>li{width:auto}.jodit_text_icons .jodit_toolbar>li>a{text-decoration:none}.jodit_text_icons.jodit_dialog_box .jodit_dialog .jodit_button,.jodit_text_icons.jodit_dialog_box .jodit_dialog .jodit_dialog_header a,.jodit_text_icons .jodit_toolbar>li>a{padding:0 12px;font-family:Helvetica,sans-serif;width:auto;color:rgba(0,0,0,.75)}.jodit_text_icons.jodit_dialog_box .jodit_dialog .jodit_button .jodit_icon,.jodit_text_icons.jodit_dialog_box .jodit_dialog .jodit_dialog_header a .jodit_icon{width:auto}.jodit_widget,.jodit_widget *{box-sizing:border-box}.jodit_search{visibility:hidden;position:absolute;top:0;right:0;width:0;height:0}.jodit_search.jodit_search-active{visibility:visible}.jodit_search .jodit_search_box{width:320px;position:absolute;right:0;background-color:#f9f9f9;border:1px solid #ccc;border-width:0 0 1px 1px;padding:5px}.jodit_search .jodit_search_box input{margin:0;width:100%;height:100%;border:0;background-color:transparent;outline:0;padding:0 10px}.jodit_search .jodit_search_box input.jodit_search-replace{display:none}.jodit_search .jodit_search_box .jodit_search_buttons,.jodit_search .jodit_search_box .jodit_search_counts,.jodit_search .jodit_search_box .jodit_search_inputs{height:30px;display:inline-block;vertical-align:top}.jodit_search .jodit_search_box .jodit_search_inputs{width:60%;padding-right:5px}.jodit_search .jodit_search_box .jodit_search_counts{width:15%;line-height:100%;text-align:center;color:#ccc;border-left:1px solid #ccc}.jodit_search .jodit_search_box .jodit_search_counts:before{content:"";display:inline-block;vertical-align:middle;height:100%}.jodit_search .jodit_search_box .jodit_search_counts span{display:inline-block;vertical-align:middle}.jodit_search .jodit_search_box .jodit_search_buttons{padding-left:0;width:25%}.jodit_search .jodit_search_box .jodit_search_buttons button{outline:0;width:32%;padding:1px 5px;margin-right:1%;transition:transform .1s linear;height:100%;border:1px solid transparent;background-color:transparent}.jodit_search .jodit_search_box .jodit_search_buttons button.jodit_search_buttons-replace{width:100%;border:1px solid #ccc;margin-top:2px;display:none}.jodit_search .jodit_search_box .jodit_search_buttons button:hover{background-color:#ecebe9}.jodit_search .jodit_search_box .jodit_search_buttons button:focus{border:1px solid rgba(181,214,253,.5)}.jodit_search .jodit_search_box .jodit_search_buttons button:active{border:1px solid #b5d6fd;transform:scale(.95)}.jodit_search.jodit_search-and-replace .jodit_search_counts,.jodit_search.jodit_search-and-replace .jodit_search_inputs{height:60px}.jodit_search.jodit_search-and-replace .jodit_search_counts input,.jodit_search.jodit_search-and-replace .jodit_search_inputs input{height:50%;transition:background-color .1s linear}.jodit_search.jodit_search-and-replace .jodit_search_counts input:focus,.jodit_search.jodit_search-and-replace .jodit_search_inputs input:focus{box-shadow:inset 0 0 3px 0 hsla(0,0%,80%,.58)}.jodit_search.jodit_search-and-replace .jodit_search_buttons button.jodit_search_buttons-replace,.jodit_search.jodit_search-and-replace .jodit_search_inputs input.jodit_search-replace{display:block}@media (max-width:320px){.jodit_search,.jodit_search .jodit_search_box{width:100%}}.jodit_symbols{width:460px;padding:10px}.jodit_symbols .jodit_symbols-container_preview,.jodit_symbols .jodit_symbols-container_table{display:inline-block;vertical-align:top}.jodit_symbols .jodit_symbols-container_table{width:88%}.jodit_symbols .jodit_symbols-container_preview{width:12%}.jodit_symbols .jodit_symbols-container_preview .jodit_symbols-preview{font-size:34px;text-align:center;padding:20px 0;border:1px solid #ccc}.jodit_symbols table{border:0;border-spacing:0;table-layout:fixed}.jodit_symbols table td{padding:0}.jodit_symbols table td a{font-size:16px;text-decoration:none;color:#000;display:inline-block;box-sizing:border-box;width:21.6px;height:21.6px;border:1px solid transparent;text-align:center;line-height:21.6px;vertical-align:top}.jodit_symbols table td a:focus,.jodit_symbols table td a:hover{border:1px solid #1e88e5}.jodit_sticky-dummy_toolbar{display:none}.jodit_sticky>.jodit_toolbar{position:fixed;z-index:3;top:0;left:auto}.jodit_sticky .jodit_sticky-dummy_toolbar{display:block}.jodit_paste_storage{padding:10px;max-width:600px}@media (max-width:768px){.jodit_paste_storage{max-width:100%}}.jodit_paste_storage>div{max-width:100%;max-height:300px;border:1px solid #ccc}.jodit_paste_storage>div:first-child{margin-bottom:10px}.jodit_paste_storage>div:first-child a{outline:0;box-sizing:border-box;display:block;max-width:100%;white-space:pre;overflow:hidden;text-overflow:ellipsis;padding:5px;margin:0;border:1px solid transparent;text-decoration:none;color:#000}.jodit_paste_storage>div:first-child a.jodit_active{color:#fff;background-color:#575757}.jodit_paste_storage>div:first-child a:focus{outline:0}.jodit_paste_storage>div:last-child{padding:10px;overflow:auto}.jodit_paste_storage>div:last-child li,.jodit_paste_storage>div:last-child ul{margin:0}.ea-editor-property-control-number input{box-sizing:border-box;color:#fff;font-size:13px;font-weight:400;background:#303131;border-radius:2px;width:100%;height:32px;outline:none;line-height:20px;padding:6px 16px;margin:0;transition:all .1s ease;border:none}.ea-editor-property-control-number input:focus{background:#2c2d2d}.ea-editor-property-control-static-html img{max-width:100%}.ea-editor-property-control-select{position:relative}.ea-editor-property-control-select-readonly input{cursor:pointer}.ea-editor-property-control-select input{box-sizing:border-box;color:#fff;font-size:13px;font-weight:400;background:#303131;border-radius:3px;width:100%;height:32px;outline:none;line-height:20px;padding:6px 16px;margin:0;transition:all .1s ease;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.ea-editor-property-control-select input:focus{background:#2c2d2d}.ea-editor-property-control-select:after{display:block;content:"";width:7px;height:5px;position:absolute;right:11px;top:50%;transform:translateY(-50%);background-image:url('+o(80)+');background-position:50%;background-repeat:no-repeat;background-size:7px 5px;pointer-events:none}.ea-editor-property-control-select-options{position:absolute;background:#fff;width:100%;z-index:10;border:1px solid #2c2d2d;box-sizing:border-box;max-height:200px;overflow:auto}.ea-editor-property-control-select-options-item{padding:6px 16px;transition:all .1s ease;cursor:pointer;font-size:13px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff;line-height:20px;min-height:20px;color:#111}.ea-editor-property-control-select-options-item-selected,.ea-editor-property-control-select-options-item:hover{background:#eee}.ea-editor-property-control-select-inline-wrapper{display:flex;flex-direction:row;box-sizing:border-box;background:#303131;border-radius:2px;width:100%;height:32px;outline:none;transition:all .1s ease}.ea-editor-property-control-select-inline-item{display:block;flex:1}.ea-editor-property-control-select-inline-item-label{position:relative;display:block;color:#fff;font-size:13px;font-weight:400;line-height:20px;padding:6px 12px;z-index:1;border-radius:2px;cursor:pointer;text-align:center;transition:all .1s ease}.ea-editor-property-control-select-inline-item-label:after{content:"";display:block;position:absolute;top:50%;right:-.5px;height:12px;width:1px;margin-top:-6px;background:#404141}.ea-editor-property-control-select-inline-item:last-child .ea-editor-property-control-select-inline-item-label:after{content:none}.ea-editor-property-control-select-inline-item-radio{position:absolute;visibility:hidden;opacity:0}.ea-editor-property-control-select-inline-item-radio:checked+.ea-editor-property-control-select-inline-item-label{background:#fff;color:#111}.ea-editor-property-control-select-inline-item-radio:checked+.ea-editor-property-control-select-inline-item-label:after{display:none}.ea-editor-select-visual-control{width:100%;height:136px;overflow:hidden;cursor:pointer;background-color:#303131;position:relative;border-radius:2px;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:all .1s ease}.ea-editor-select-visual-control:hover .ea-editor-select-visual-control-trigger{background-color:#474848}.ea-editor-select-visual-control:hover .ea-editor-select-visual-control-trigger-arrow svg{fill:#e8e8e8}.ea-editor-select-visual-control-image{max-width:100%;max-height:100%}.ea-editor-select-visual-control-image-container{height:64px;margin-top:8px;margin-left:-29px;display:flex;align-items:center;justify-content:center}.ea-editor-select-visual-control-name{color:#fff;text-align:center;font-size:13px;font-weight:400;overflow:hidden;text-overflow:ellipsis;border-radius:2px;margin-top:20px;margin-left:-29px}.ea-editor-select-visual-control-trigger{position:absolute;height:100%;width:29px;right:0;top:0;background-color:#404141;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.ea-editor-select-visual-control-trigger-arrow svg{fill:#66686a;display:block;transition:all .2s ease}.ea-editor-select-visual-group{display:flex;flex-direction:column;position:absolute;top:0;left:0;width:100%;bottom:0;transition:all .5s cubic-bezier(.2,1,.3,1);transform:translate(-100%);background:#38393a;box-shadow:0 0 20px rgba(51,74,96,.16);z-index:5;margin-top:-56px;padding-top:56px}.ea-editor-select-visual-group-active{transform:translate(0)}.ea-editor-select-visual-group-header{position:relative;background:#38393a;height:56px;line-height:56px;padding:0 54px;cursor:pointer;outline:none;border-bottom:1px solid #303131}.ea-editor-select-visual-group-back-button{display:block;position:absolute;top:50%;left:24px;transform:translateY(-50%)}.ea-editor-select-visual-group-back-button svg{display:block;width:12px;height:12px;fill:#fff}.ea-editor-select-visual-group-title{color:#fff;font-size:18px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ea-editor-select-visual-group-content{position:relative;background:#38393a;padding:32px 24px;overflow:auto;overflow-x:hidden;display:flex;flex-direction:row;flex-wrap:wrap}.editor-bottom-panel-show .ea-editor-select-visual-group-content{margin-bottom:135px}.ea-editor-select-visual-group-option{width:100%;height:136px;display:inline-flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden;cursor:pointer;background-color:#303131;position:relative;margin-bottom:12px;border-radius:2px;transition:box-shadow .2s ease,opacity .2s ease;box-shadow:inset 0 0 0 1px transparent;backface-visibility:hidden}.ea-editor-select-visual-group-two-cols .ea-editor-select-visual-group-option{width:123px;margin:0 6px 12px;height:123px}.ea-editor-select-visual-group-option:hover{background-color:#2c2d2d;box-shadow:inset 0 0 0 1px #fff}.ea-editor-select-visual-group-option-image{max-width:100%;max-height:100%}.ea-editor-select-visual-group-option-image-container{height:64px;margin-top:8px;display:flex;align-items:center;justify-content:center}.ea-editor-select-visual-group-option-selected{background-color:#2c2d2d;box-shadow:inset 0 0 0 1px #fff}.ea-editor-select-visual-group-option-title{color:#fff;margin-top:12px;font-size:13px;line-height:1;font-weight:400;overflow:hidden;text-align:center;text-overflow:ellipsis}.ea-editor-select-visual-group-option-radio{width:0;height:0;opacity:0;visibility:hidden}.ea-editor-select-visual-group-content .ea-editor-select-visual-group-option-divider:first-child{margin-top:0}.ea-editor-select-visual-group-content .ea-editor-select-visual-group-option-divider{width:100%;background-color:transparent;height:auto;flex-direction:row;justify-content:left;margin-top:24px;margin-bottom:12px;cursor:auto;pointer-events:none}.ea-editor-select-visual-group-content .ea-editor-select-visual-group-option-divider .ea-editor-select-visual-group-option-title{margin-top:0;color:#fff;font-size:12px;font-weight:500;line-height:12px;text-transform:uppercase;margin-bottom:0}.ea-editor-property-control-tags-input{box-sizing:border-box;color:#fff;font-size:13px;font-weight:400;background:#303131;border-radius:2px;width:100%;height:32px;outline:none;line-height:20px;padding:6px 16px;margin:0;transition:all .1s ease;border:none}.ea-editor-property-control-tags-input:focus{background-color:#2c2d2d}.ea-editor-property-control-tags-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;box-sizing:border-box;width:100%}.ea-editor-property-control-tags-item{position:relative;box-sizing:border-box;color:#fff;font-size:13px;font-weight:400;border-radius:2px;border:1px solid hsla(0,0%,100%,.5);height:28px;line-height:28px;padding:0 28px 0 10px;margin:7px 7px 0 0;max-width:100%;overflow:hidden}.ea-editor-property-control-tags-item-label{line-height:26px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ea-editor-property-control-tags-item-remove{position:absolute;top:0;right:0;width:8px;height:8px;cursor:pointer;outline:none;opacity:.7;padding:9px 10px;transition:all .1s ease}.ea-editor-property-control-tags-item-remove svg{display:block}.ea-editor-property-control-toggle-wrapper{box-sizing:border-box;display:inline-block;position:relative;overflow:hidden;width:60px;height:24px;background:#303131;line-height:24px;border-radius:24px;cursor:pointer;transition:all .3s ease}.ea-editor-property-control-toggle-wrapper:hover .ea-editor-property-control-toggle-inner{background:#7a7b7c}.ea-editor-property-control-toggle-after,.ea-editor-property-control-toggle-before{display:block;position:absolute;top:0;height:24px;line-height:24px;color:#feffff;text-transform:uppercase;font-size:10px;font-weight:500;transition:all .3s ease}.ea-editor-property-control-toggle-before{left:-32px;color:#feffff}.ea-editor-property-control-toggle-after{right:9px;color:#7e8184}.ea-editor-property-control-toggle-inner{display:block;position:absolute;overflow:hidden;top:3px;left:3px;width:18px;height:18px;background:#646668;border-radius:50% 50%;transition:all .3s ease}.ea-editor-property-control-toggle-inner input{display:none!important}.ea-editor-property-control-toggle-on .ea-editor-property-control-toggle-wrapper,.ea-editor-property-control-toggle-on .ea-editor-property-control-toggle-wrapper:hover{background:#212121}.ea-editor-property-control-toggle-on .ea-editor-property-control-toggle-wrapper:hover .ea-editor-property-control-toggle-inner{background:#fff}.ea-editor-property-control-toggle-on .ea-editor-property-control-toggle-before{left:10px;opacity:1}.ea-editor-property-control-toggle-on .ea-editor-property-control-toggle-after{right:-40px;opacity:0}.ea-editor-property-control-toggle-on .ea-editor-property-control-toggle-inner{left:39px;background:#e5e7e8}.ea-editor-property-control-checklist-item{display:inline-block;margin:0 0 6px;width:100%;cursor:pointer;position:relative}.ea-editor-property-control-checklist-item-label{color:#fff;font-size:13px;font-weight:400;padding:6px 12px 5px 24px;position:absolute;top:0;left:0;width:100%;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;line-height:1;transition:all .1s ease}.ea-editor-property-control-checklist-checkbox{display:block;cursor:pointer;position:relative}.ea-editor-property-control-checklist-checkbox:before{content:"";position:absolute;background-color:#2c2c2d;width:14px;height:14px;border-radius:2px;top:-12px;transition:background-color .1s ease}.ea-editor-property-control-checklist-checkbox-wrapper{display:inline-block}.ea-editor-property-control-checklist-checkbox-wrapper input{display:none!important}.ea-editor-property-control-checklist-checkbox-wrapper input:checked+.ea-editor-property-control-checklist-checkbox:before{background-image:url('+o(83)+');background-position:50%;background-repeat:no-repeat;background-size:12px}.ea-editor-property-control-color .color-picker-wrapper .input-group{display:inline-block;position:relative}.ea-editor-property-control-color .color-picker-wrapper .input-group:after{display:block;content:"";width:32px;height:32px;position:absolute;top:0;left:0;background:#2c2d2d;border-radius:2px 0 0 2px;z-index:1}.ea-editor-property-control-color .color-picker-wrapper .input-group .input-group-addon{box-sizing:border-box;border-radius:2px 0 0 2px;width:30px;height:30px;transition:all .1s ease;border:none;margin:1px;float:left;position:relative;z-index:2;background:#38393a}.ea-editor-property-control-color .color-picker-wrapper .input-group .color-picker-input-swatch{box-sizing:border-box;color:#fff;font-size:13px;font-weight:400;background:#303131;border-radius:0 2px 2px 0;width:170px;height:32px;outline:none;line-height:20px;padding:6px 16px;transition:all .1s ease;border:none;margin:0}.ea-editor-property-control-color .color-picker-wrapper .input-group .color-picker-input-swatch:focus{background-color:#2c2d2d}.ea-editor-property-control-color .color-picker-wrapper .color-picker-panel .color-picker-actions{padding:8px}.ea-editor-property-control-color .color-picker-wrapper .color-picker-panel .color-picker-actions .color-picker-action{margin:4px;width:auto;height:28px;font-size:11px;border-radius:4px;border:none;background-color:#444;color:#fff;cursor:pointer;padding:0 16px;font-weight:600}.ea-editor-property-control-subgroup{position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;cursor:pointer;background:#404141;padding:0 16px;line-height:32px;height:32px;border-radius:2px;margin-bottom:-2px;outline:none;transition:all .1s ease}.ea-editor-property-control-subgroup:hover{background:#474848}.ea-editor-property-control-subgroup:hover .ea-editor-property-control-subgroup-icon svg{fill:#ebebeb}.ea-editor-property-control-subgroup-name{font-size:13px;font-weight:400;color:#fff}.ea-editor-property-control-subgroup-icon{position:absolute;width:12px;height:12px;top:50%;right:7px;transform:translateY(-50%)}.ea-editor-property-control-subgroup-icon svg{display:block;fill:#5f6163;transition:all .2s ease}.ea-editor-property-control-divider{border-bottom:1px solid hsla(0,0%,100%,.15);margin:32px 0}.ea-editor-property-control-complex-item{position:relative;margin:0 0 12px;outline:none}.ea-editor-property-control-complex-item:hover .ea-editor-property-control-complex-item-inner{background:#474848}.ea-editor-property-control-complex-item-inner{position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;cursor:pointer;background:#404141;padding:0 12px;height:36px;border-radius:2px;outline:none;transition:all .3s ease}.ea-editor-property-control-complex-item-removing .ea-editor-property-control-complex-item-inner{transform:translateX(-100%);right:24px}.ea-editor-property-control-complex-item-reorder{display:block;width:7px;height:14px;padding:11px 16px 11px 7px;margin:0 0 0 -12px;cursor:move;outline:none}.ea-editor-property-control-complex-item-reorder svg{display:block;width:7px;height:14px;fill:rgba(88,89,91,.8);transition:all .2s ease}.ea-editor-property-control-complex-item-icon{display:block;height:14px;margin-right:16px}.ea-editor-property-control-complex-item-icon img{display:block;height:14px;width:14px;transition:all .2s ease}.ea-editor-property-control-complex-item-name{font-size:13px;font-weight:400;overflow:hidden;text-overflow:ellipsis;padding-right:10px;width:100%;white-space:nowrap;color:#fff;line-height:1}.ea-editor-property-control-complex-item-duplicate{display:block;width:12px;height:12px;padding:13px 7px;margin-left:auto;outline:none}.ea-editor-property-control-complex-item-duplicate:hover svg{fill:#dadadb}.ea-editor-property-control-complex-item-duplicate svg{display:block;width:12px;height:12px;fill:#646668;transition:all .2s ease}.ea-editor-property-control-complex-item-remove{display:block;width:12px;height:12px;padding:13px 7px;margin-right:-8px;outline:none}.ea-editor-property-control-complex-item-remove:hover svg{fill:#dadadb}.ea-editor-property-control-complex-item-remove svg{display:block;width:12px;height:12px;fill:#646668;transition:all .2s ease}.ea-editor-property-control-complex-item-remove-confirm{position:absolute;top:0;left:-24px;right:-24px;background:#303131;display:flex;flex-direction:row;align-items:center;line-height:40px;height:40px;transform:translateX(100%);transition:all .3s ease;width:100%;padding:0 24px;opacity:0;visibility:hidden}.ea-editor-property-control-complex-item-removing .ea-editor-property-control-complex-item-remove-confirm{transform:translateX(0);opacity:1;visibility:visible}.ea-editor-property-control-complex-item-remove-confirm-label{color:#fff;font-size:11px;font-weight:400}.ea-editor-property-control-complex-item-remove-confirm-actions{display:flex;flex-direction:row;margin-left:auto}.ea-editor-property-control-complex-item-remove-confirm-actions-no,.ea-editor-property-control-complex-item-remove-confirm-actions-yes{box-sizing:border-box;font-size:10px;font-weight:500;text-transform:uppercase;border-radius:3px;cursor:pointer;height:20px;line-height:20px;width:40px;text-align:center;transition:all .2s ease}.ea-editor-property-control-complex-item-remove-confirm-actions-yes{color:#7e8184}.ea-editor-property-control-complex-item-remove-confirm-actions-yes:hover{color:#fff}.ea-editor-property-control-complex-item-remove-confirm-actions-no{color:#fff;background:#404141;margin-left:6px}.ea-editor-property-control-complex-item-remove-confirm-actions-no:hover{background:#474848}.ea-editor-property-control-complex-item-placeholder{box-sizing:border-box;border-radius:3px;border:1px dashed #66686a;height:40px;width:288px;margin:0 0 12px}.ea-editor-property-control-complex-add-new{margin:0}.ea-editor-property-control-complex-add-new-disable{pointer-events:none}.ea-editor-property-control-complex-add-new-disable svg{fill:hsla(0,0%,100%,.3)!important}.ea-editor-property-control-complex-add-new .ea-editor-property-control-complex-item-inner{justify-content:center;align-items:center;text-transform:uppercase;font-size:10px;font-weight:500;outline:none;transition:background .2s ease,color .2s ease,border .2s ease}.ea-editor-property-control-complex-add-new-transparent{margin-top:-12px}.ea-editor-property-control-complex-add-new-transparent .ea-editor-property-control-complex-item-inner,.ea-editor-property-control-complex-add-new-transparent:hover .ea-editor-property-control-complex-item-inner{background:transparent}.ea-editor-property-control-complex-add-new svg{display:block;width:8px;height:8px;fill:hsla(0,0%,100%,.9);transition:all .2s ease;margin-right:6px}.ea-editor-property-control-complex-add-new-label{color:hsla(0,0%,100%,.9);display:block;transition:color .2s ease}.ea-editor-property-control-complex-add-new-disable .ea-editor-property-control-complex-add-new-label{color:hsla(0,0%,100%,.3)}.ea-editor-property-control-complex-limit-exceed .ea-editor-property-control-complex-item-inner{cursor:default}.ea-editor-property-control-file{position:relative;overflow:hidden}.ea-editor-property-control-file input{background:#303131;width:100%;height:32px;line-height:20px;padding:6px 16px;margin:0;transition:all .1s ease}.ea-editor-property-control-file-button,.ea-editor-property-control-file input{box-sizing:border-box;color:#fff;font-size:13px;font-weight:400;border-radius:2px;border:none;outline:none}.ea-editor-property-control-file-button{background-color:#3f4141;cursor:pointer;height:28px;width:92px;line-height:16px;display:flex;align-items:center;padding:0 12px;position:relative}.ea-editor-property-control-file-button:hover{background-color:#474848}.ea-editor-property-control-file-button-text{margin-left:8px}.ea-editor-property-control-file-button-loader{position:absolute;top:50%;left:50%;width:12px;height:12px;margin:-8px 0 0 -8px;outline:none;border:2px solid #fff;border-top:2px solid transparent;border-radius:50%;animation:button-loader .7s linear infinite}.ea-editor-property-control-file-input[type=file]{position:absolute;opacity:0;cursor:pointer;padding:0;width:0;height:0;z-index:-1}.ea-editor-property-control-file-exists{display:inline-flex;align-items:center;justify-content:space-between;border-radius:2px;border:1px solid hsla(0,0%,100%,.2);height:28px;padding:6px 12px;box-sizing:border-box;max-width:100%}.ea-editor-property-control-file-exists-name{font-size:13px;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}.ea-editor-property-control-file-exists-delete{cursor:pointer;margin-left:12px;opacity:.2}.ea-editor-property-control-file-error{font-size:11px;font-weight:400;margin-top:4px;opacity:.8;color:#ff4734}@-webkit-keyframes button-loader{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes button-loader{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ea-editor-facebook-feed-token-control-wrapper .ea-editor-property-label{color:#fff;font-size:14px;font-weight:500;line-height:12px;text-transform:none;margin-bottom:0}.ea-editor-facebook-feed-token-control-wrapper .ea-editor-property-caption{opacity:.7;color:#fff;font-size:13px;font-weight:400;line-height:20px;padding:0;border-left:0}.ea-editor-facebook-feed-token-control-label-wrapper{display:flex;align-items:center;margin-bottom:8px}.ea-editor-facebook-feed-token-control-button-container{display:inline-flex;align-items:center}.ea-editor-facebook-feed-token-control-button-container button{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;border-radius:2px;border:none;outline:none;cursor:pointer;height:28px;padding:6px 16px;position:relative;text-align:center;color:#111;font-size:13px;font-weight:400;line-height:16px;background-color:#fff}.ea-editor-facebook-feed-token-control-update .ea-editor-facebook-feed-token-control-button-container button{background-color:#fff}.ea-editor-facebook-feed-token-control-connect .ea-editor-facebook-feed-token-control-button-container button{background-color:#3c5a9b;color:#fff}.ea-editor-facebook-feed-token-control-disconnect .ea-editor-facebook-feed-token-control-button-container button{background-color:#474848;color:#fff}.ea-editor-facebook-feed-token-control-button-icon{width:12px;height:12px;margin-right:12px}.ea-editor-facebook-feed-token-control-button-icon svg{fill:#fff}.ea-editor-facebook-feed-token-control-status{margin-left:8px;text-transform:uppercase;font-size:9px}.ea-editor-facebook-feed-token-control-status,.ea-editor-facebook-feed-token-control-status span{display:inline-flex;align-items:center;position:relative}.ea-editor-facebook-feed-token-control-status span:before{content:"";display:inline-block;background:#000;width:4px;height:4px;border-radius:50%;margin:0 6px}.ea-editor-facebook-feed-token-control-connect .ea-editor-facebook-feed-token-control-status span,.ea-editor-facebook-feed-token-control-update .ea-editor-facebook-feed-token-control-status span{color:#ff4734}.ea-editor-facebook-feed-token-control-connect .ea-editor-facebook-feed-token-control-status span:before,.ea-editor-facebook-feed-token-control-update .ea-editor-facebook-feed-token-control-status span:before{background:#ff4734}.ea-editor-facebook-feed-token-control-disconnect .ea-editor-facebook-feed-token-control-status span{color:#4ad504}.ea-editor-facebook-feed-token-control-disconnect .ea-editor-facebook-feed-token-control-status span:before{background:#4ad504}.ea-editor-facebook-feed-token-control-loader{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:2px;pointer-events:none}.ea-editor-facebook-feed-token-control-load .ea-editor-facebook-feed-token-control-loader{background:#717171}.ea-editor-facebook-feed-token-control-loader:after{content:"";box-sizing:border-box;display:block;position:absolute;top:50%;left:50%;border-radius:50%;border-style:solid;border-top-color:transparent;animation:preview-loader 1s infinite linear;width:12px;height:12px;margin:-6px 0 0 -6px;border-width:2px;color:#fff;opacity:0;visibility:hidden}.ea-editor-facebook-feed-token-control-load .ea-editor-facebook-feed-token-control-loader:after{opacity:1;visibility:visible}.ea-editor-facebook-feed-token-control-load button{pointer-events:none}.ea-editor-twitter-feed-token-control-wrapper .ea-editor-property-label{color:#fff;font-size:14px;font-weight:500;line-height:12px;text-transform:none;margin-bottom:0}.ea-editor-twitter-feed-token-control-wrapper .ea-editor-property-caption{opacity:.7;color:#fff;font-size:13px;font-weight:400;line-height:20px;padding:0;border-left:0}.ea-editor-twitter-feed-token-control-label-wrapper{display:flex;align-items:center;margin-bottom:8px}.ea-editor-twitter-feed-token-control-button-container{display:inline-flex;align-items:center}.ea-editor-twitter-feed-token-control-button-container button{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;border-radius:2px;border:none;outline:none;cursor:pointer;height:28px;padding:6px 16px;position:relative;text-align:center;color:#111;font-size:13px;font-weight:400;line-height:16px;background-color:#fff}.ea-editor-twitter-feed-token-control-connect .ea-editor-twitter-feed-token-control-button-container button{background-color:#1da1f2;color:#fff}.ea-editor-twitter-feed-token-control-connected .ea-editor-twitter-feed-token-control-button-container button{background-color:#474848;color:#fff}.ea-editor-twitter-feed-token-control-button-icon{width:12px;height:12px;margin-right:12px}.ea-editor-twitter-feed-token-control-button-icon svg{fill:#fff}.ea-editor-twitter-feed-token-control-status{margin-left:8px;text-transform:uppercase;font-size:9px}.ea-editor-twitter-feed-token-control-status,.ea-editor-twitter-feed-token-control-status span{display:inline-flex;align-items:center;position:relative}.ea-editor-twitter-feed-token-control-status span:before{content:"";display:inline-block;background:#000;width:4px;height:4px;border-radius:50%;margin:0 6px}.ea-editor-twitter-feed-token-control-connect .ea-editor-twitter-feed-token-control-status span{color:#ff4734}.ea-editor-twitter-feed-token-control-connect .ea-editor-twitter-feed-token-control-status span:before{background:#ff4734}.ea-editor-twitter-feed-token-control-connected .ea-editor-twitter-feed-token-control-status span{color:#4ad504}.ea-editor-twitter-feed-token-control-connected .ea-editor-twitter-feed-token-control-status span:before{background:#4ad504}.ea-editor-twitter-feed-token-control-loader{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:2px;pointer-events:none}.ea-editor-twitter-feed-token-control-load .ea-editor-twitter-feed-token-control-loader{background:#717171}.ea-editor-twitter-feed-token-control-loader:after{content:"";box-sizing:border-box;display:block;position:absolute;top:50%;left:50%;border-radius:50%;border-style:solid;border-top-color:transparent;animation:preview-loader 1s infinite linear;width:12px;height:12px;margin:-6px 0 0 -6px;border-width:2px;color:#fff;opacity:0;visibility:hidden}.ea-editor-twitter-feed-token-control-load .ea-editor-twitter-feed-token-control-loader:after{opacity:1;visibility:visible}.ea-editor-twitter-feed-token-control-load button{pointer-events:none}.ea-editor-toolbar{position:absolute;top:80px;right:0}@media only screen and (max-width:480px){.ea-editor-toolbar{display:none}}.ea-editor-toolbar-item{position:relative}.ea-editor-toolbar-item:first-child .ea-editor-toolbar-item-trigger{padding-top:6px}.ea-editor-toolbar-item:last-child .ea-editor-toolbar-item-trigger{padding-bottom:6px}.ea-editor-toolbar-item-trigger{box-sizing:border-box;padding:3px 6px;background:#38393a;cursor:pointer}.ea-editor-toolbar-item-trigger:hover .ea-editor-toolbar-item-icon svg{fill:#fff}.ea-editor-toolbar-item-icon{display:flex;align-items:center;justify-content:center;width:26px;height:26px}.toolbar-item-active .ea-editor-toolbar-item-icon{background:#2c2c2d}.ea-editor-toolbar-item-icon svg{width:16px;height:16px;fill:#66686a;transition:.1s}.toolbar-item-active .ea-editor-toolbar-item-icon svg{fill:#fff}.ea-editor-toolbar-item-values{visibility:hidden;display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:38px;padding:0 2px;border-radius:2px;transition:.2s;opacity:0;background:#38393a}.toolbar-item-active .ea-editor-toolbar-item-values{visibility:visible;opacity:1;right:42px}.ea-editor-toolbar-item-value{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:4px 2px;cursor:pointer}.ea-editor-toolbar-item-value-icon{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:2px}.ea-editor-toolbar-resolution-value:hover .ea-editor-toolbar-resolution-value-icon svg{fill:#fff}.toolbar-item-value-active .ea-editor-toolbar-resolution-value-icon{background:#2c2c2d}.ea-editor-toolbar-resolution-value-icon svg{width:16px;height:16px;fill:#66686a;transition:.1s}.toolbar-item-value-active .ea-editor-toolbar-resolution-value-icon svg{fill:#fff}.ea-editor-toolbar-background-value:hover.toolbar-item-value-active .ea-editor-toolbar-background-value-icon-color{box-shadow:0 0 0 2px #fc4264}.ea-editor-toolbar-background-value:hover .ea-editor-toolbar-background-value-icon-color{box-shadow:0 0 0 2px #fff}.ea-editor-toolbar-background-value-icon{display:flex;align-items:center;justify-content:center}.ea-editor-toolbar-background-value-icon-color{box-sizing:border-box;width:18px;height:18px;border-radius:2px;box-shadow:0 0 0 1px #474848}.toolbar-item-value-active .ea-editor-toolbar-background-value-icon-color{box-shadow:0 0 0 2px #fc4264}.ea-editor-toolbar-background-white{background:#fff}.ea-editor-toolbar-background-black{background:#252627}.ea-editor-toolbar-background-white-chess{background-size:10px;background-image:url('+o(86)+")}.ea-editor-toolbar-background-black-chess{background-size:10px;background-image:url("+o(89)+")}.ea-editor-preview-overlay-white{background:#fff}.ea-editor-preview-overlay-black{background:#252627}.ea-editor-preview-overlay-white-chess{background-image:url("+o(86)+")}.ea-editor-preview-overlay-black-chess{background-image:url("+o(89)+')}.ea-editor-templates{position:absolute;top:0;right:0;bottom:0;left:0;background:#38393a;transition:all .3s ease;transform:translateX(100%);z-index:2}.ea-editor-templates-enable{transition:0s;transform:translateX(0);opacity:1;visibility:visible}.ea-editor-templates-hide{transition:all .3s ease;transform:translateX(100%);opacity:0;pointer-events:0;visibility:hidden}.ea-editor-templates-wrapper{padding-bottom:88px;overflow:auto;height:100%;box-sizing:border-box}.ea-editor-templates-wrapper::-webkit-scrollbar-track{background-color:#f0f0f0;padding:0 2px}.ea-editor-templates-wrapper::-webkit-scrollbar{width:6px}.ea-editor-templates-wrapper::-webkit-scrollbar-thumb{background-color:#888}.ea-editor-templates-header{color:#fff;font-size:18px;font-weight:400;text-align:center;display:block;padding:28px 20px}.ea-editor-templates-item{margin-left:20px;width:138px;display:inline-flex;align-items:center;flex-direction:column;overflow:hidden;cursor:pointer;position:relative;margin-bottom:20px;border-radius:2px;backface-visibility:hidden}.ea-editor-templates-item-inner{height:100%;position:relative;z-index:1;background-color:#252627;margin:2px;border-radius:2px;overflow:hidden;max-width:calc(100% - 4px)}.ea-editor-templates-item:before{background:linear-gradient(40deg,transparent 15%,transparent 50%,transparent 85%);content:"";top:-2px;bottom:-2px;left:-2px;right:-2px;display:block;position:absolute;opacity:0;transition:all .3s ease}.ea-editor-templates-item:hover:before{background:hsla(0,0%,100%,.1);opacity:1}.ea-editor-templates-item-image{width:134px;height:134px;display:block}.ea-editor-templates-item-image-container{width:134px;height:134px;display:flex;align-items:center;justify-content:center;flex-grow:0}.ea-editor-templates-item-active:before,.ea-editor-templates-item-active:hover:before{background:linear-gradient(180deg,#ffa450,#ff4177)}.ea-editor-templates-item-active:before{opacity:1}.ea-editor-templates-item-title{color:#fff;margin-top:auto;font-size:14px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;flex-shrink:0;max-width:100%;padding:14px;box-sizing:border-box;text-align:center;line-height:1}.ea-editor-templates-item-radio{width:0;height:0;opacity:0;visibility:hidden}.ea-editor-templates-actions{position:absolute;display:flex;bottom:0;z-index:1;justify-content:center;align-items:center;padding:20px 0;width:100%;background-color:#404141}.ea-editor-templates-actions-customize{background:none;border-radius:4px;border:none;box-sizing:border-box;color:#fff;font-weight:600;cursor:pointer;display:inline-flex;justify-content:center;align-content:center;align-items:center;position:relative;outline:none;text-align:center;transition:all .4s ease;text-transform:none;background-color:#fa4772;font-size:15px;line-height:24px;padding:8px 40px;padding-right:16px;padding-left:32px;height:40px}.ea-editor-templates-actions-customize:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,.1)}.ea-editor-templates-actions-customize svg{width:24px;height:24px;margin-left:8px;fill:#fff;display:block}@-webkit-keyframes jump{0%{transform:translateZ(0)}40%{transform:translate3d(10%,0,0)}to{transform:translate3d(30%,0,0)}}@keyframes jump{0%{transform:translateZ(0)}40%{transform:translate3d(10%,0,0)}to{transform:translate3d(30%,0,0)}}',""])},function(e,t){e.exports=function(){var s=[];return s.toString=function(){for(var e=[],t=0;t<this.length;t++){var o=this[t];o[2]?e.push("@media "+o[2]+"{"+o[1]+"}"):e.push(o[1])}return e.join("")},s.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},i=0;i<this.length;i++){var n=this[i][0];"number"==typeof n&&(o[n]=!0)}for(i=0;i<e.length;i++){var r=e[i];"number"==typeof r[0]&&o[r[0]]||(t&&!r[2]?r[2]=t:t&&(r[2]="("+r[2]+") and ("+t+")"),s.push(r))}},s}},function(e,t,o){o(81),e.exports=o(82)},function(e,t,o){e.exports=o.p+"assets/img/select-arrow-down.svg"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3IDUiPgogICAgPHBhdGggaWQ9IlJvdW5kZWRfUmVjdGFuZ2xlXzIyX2NvcHlfMyIgc3R5bGU9Im9wYWNpdHk6MC44O2ZpbGw6IzY2Njg2QTsiIGQ9Ik0zLjksNC44CglDMy42LDUuMSwzLjIsNSwyLjksNC43TDAuMywxLjVDMCwxLjEtMC41LDAsMSwwTDYsMGMxLjUsMCwwLjksMS4xLDAuNiwxLjRMNC4xLDQuN0M0LDQuOCw0LDQuOCwzLjksNC44eiIvPgo8L3N2Zz4="},function(e,t,o){o(84),e.exports=o(85)},function(e,t,o){e.exports=o.p+"assets/img/check-mark-icon.svg"},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMiAxMiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIgMTI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KCTxnPgoJCTxwYXRoIHN0eWxlPSJmaWxsOiNmZmZmZmY7IiBkPSJNOS45LDMuMWMtMC4yLDAtMC4zLDAtMC40LDAuMkw1LjMsNy41TDMuNCw1LjZDMy4zLDUuNSwzLjEsNS40LDMsNS41Yy0wLjEsMC0wLjMsMC4xLTAuNCwwLjJDMi41LDUuNywyLjQsNS45LDIuNCw2CgkJCWMwLDAuMiwwLDAuMywwLjIsMC40bDIuMywyLjNDNSw4LjgsNS4xLDguOSw1LjMsOC45YzAuMSwwLDAuMy0wLjEsMC40LTAuMmw0LjYtNC42YzAuMS0wLjEsMC4yLTAuMywwLjItMC40CgkJCWMwLTAuMS0wLjEtMC4zLTAuMi0wLjRDMTAuMSwzLjIsMTAsMy4xLDkuOSwzLjF6Ii8+Cgk8L2c+Cjwvc3ZnPgo="},function(e,t,o){o(87),e.exports=o(88)},function(e,t,o){e.exports=o.p+"assets/img/bg-preview.png"},function(e,t){e.exports="data:image/png;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAUAAA/+4AJkFkb2JlAGTAAAAAAQMAFQQDBgoNAAABpgAAAccAAAIDAAACMP/bAIQAAgICAgICAgICAgMCAgIDBAMCAgMEBQQEBAQEBQYFBQUFBQUGBgcHCAcHBgkJCgoJCQwMDAwMDAwMDAwMDAwMDAEDAwMFBAUJBgYJDQsJCw0PDg4ODg8PDAwMDAwPDwwMDAwMDA8MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8IAEQgAFAAUAwERAAIRAQMRAf/EAH8AAAMBAQAAAAAAAAAAAAAAAAIDBAEIAQEAAAAAAAAAAAAAAAAAAAAAEAACAwEAAAAAAAAAAAAAAAAAATARMRARAQAAAAAAAAAAAAAAAAAAADASAQAAAAAAAAAAAAAAAAAAADATAAEEAwEAAAAAAAAAAAAAAAEAEDAx8BGxYf/aAAwDAQACEQMRAAAB7kHhgCzCgnBP/9oACAEBAAEFAhYUjC3x6f/aAAgBAgABBQKH/9oACAEDAAEFAof/2gAIAQICBj8CH//aAAgBAwIGPwIf/9oACAEBAQY/Ah//2gAIAQEDAT8hVTeSJJaFL2a5v//aAAgBAgMBPyGH/9oACAEDAwE/IYf/2gAMAwEAAhEDEQAAEBBJBB//2gAIAQEDAT8QXV1sRKOD6CgsQDcXG//aAAgBAgMBPxCH/9oACAEDAwE/EIf/2Q=="},function(e,t,o){o(90),e.exports=o(91)},function(e,t,o){e.exports=o.p+"assets/img/bg-preview-black.png"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACxJREFUeNpiVFfXYMAN/v3/j0eWiYECMKp5ZGhmIZCGGBlHA2xUMyWaAQIMAJSTBpxFdlboAAAAAElFTkSuQmCC"},function(e,t,o){var l={},i=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},n=i(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),r=i(function(){return document.head||document.getElementsByTagName("head")[0]}),c=null,d=0,s=[];function u(e,t){for(var o=0;o<e.length;o++){var i=e[o],n=l[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(a(i.parts[r],t))}else{var s=[];for(r=0;r<i.parts.length;r++)s.push(a(i.parts[r],t));l[i.id]={id:i.id,refs:1,parts:s}}}}function h(e){for(var t=[],o={},i=0;i<e.length;i++){var n=e[i],r=n[0],s={css:n[1],media:n[2],sourceMap:n[3]};o[r]?o[r].parts.push(s):t.push(o[r]={id:r,parts:[s]})}return t}function p(e,t){var o=r(),i=s[s.length-1];if("top"===e.insertAt)i?i.nextSibling?o.insertBefore(t,i.nextSibling):o.appendChild(t):o.insertBefore(t,o.firstChild),s.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");o.appendChild(t)}}function f(e){e.parentNode.removeChild(e);var t=s.indexOf(e);0<=t&&s.splice(t,1)}function g(e){var t=document.createElement("style");return t.type="text/css",p(e,t),t}function a(t,e){var o,i,n,r,s;if(e.singleton){var a=d++;o=c||(c=g(e)),i=b.bind(null,o,a,!1),n=b.bind(null,o,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=e,(s=document.createElement("link")).rel="stylesheet",p(r,s),i=function(e,t){var o=t.css,i=t.sourceMap;i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var n=new Blob([o],{type:"text/css"}),r=e.href;e.href=URL.createObjectURL(n),r&&URL.revokeObjectURL(r)}.bind(null,o=s),n=function(){f(o),o.href&&URL.revokeObjectURL(o.href)}):(o=g(e),i=function(e,t){var o=t.css,i=t.media;i&&e.setAttribute("media",i);if(e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}.bind(null,o),n=function(){f(o)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else n()}}e.exports=function(e,s){void 0===(s=s||{}).singleton&&(s.singleton=n()),void 0===s.insertAt&&(s.insertAt="bottom");var a=h(e);return u(a,s),function(e){for(var t=[],o=0;o<a.length;o++){var i=a[o];(n=l[i.id]).refs--,t.push(n)}e&&u(h(e),s);for(o=0;o<t.length;o++){var n;if(0===(n=t[o]).refs){for(var r=0;r<n.parts.length;r++)n.parts[r]();delete l[n.id]}}}};var m,v=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function b(e,t,o,i){var n=o?"":i.css;if(e.styleSheet)e.styleSheet.cssText=v(t,n);else{var r=document.createTextNode(n),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}},function(e,t){"use strict";angular.module("elfsightAppsEditor").run(["gettextCatalog",function(e){e.setStrings("ru_RU",{Add:"Добавить",Apply:"Применить","Are you sure you want to remove?":"Вы уверены, что хотите удалить?","Back to preview":"Назад к предпросмотру","Clear color":"Очистить цвет","Connect to Facebook":"Подключиться к Facebook",Connected:"Подключено","Connection error. Probably, your two-month authorization has expired. Please, try to reconnect.":"Ошибка подключения. Вероятно, истек период Вашей двухмесячной авторизации. Пожалуйста, попробуйте подключиться снова.","Continue with this template":"Продолжить с этим шаблоном","Custom CSS":"Пользовательский CSS",Disconnect:"Отключить",Disconnected:"Отключено","Duplicate item":"Дублировать элемент","If you need to customize your widget, add your custom styles here. The styles will only be applied to this widget.":"Если вам нужно персонализировать виджет, сюда вы можете добавить собственные стили. Стили будут применены только к этому виджету.",No:"Нет",Off:"Выкл",On:"Вкл",Open:"Открыть",Reconnect:"Повторить подключение","Remove item":"Удалить элемент","Select a template to start with":"Чтобы начать, выберите шаблон","To display Facebook page, please, authorize in Facebook.":"Чтобы вывести страницу Facebook, пожалуйста, авторизуйтесь в Facebook.",Upload:"Загрузить","Widget Settings":"Настройки виджета",Yes:"Да","You widget is successfully connected to Facebook. You can continue customization.":"Виджет успешно подключен к Facebook. Вы можете продолжить настройку."})}])}]),function(y,r){"use strict";var x,s,a,l,c,n,d,u,h,_;function e(){this.pages=[]}e.prototype={constructor:e,add:function(e,t){if(!e||!t||!y.isFunction(t))return!1;this.pages[e]=t()||{}},get:function(e){return this.pages[e]||!1},show:function(e,t){var o,i=this,n=this.get(e);return!!n&&("init"in n&&y.isFunction(n.init)&&(o=n.init(t)),y.when(o).then(function(){d.hasClass("elfsight-admin-other-products-hidden-permanently")||d.toggleClass("elfsight-admin-other-products-hidden","widgets"!==e),s.removeClass("elfsight-admin-loading"),l.removeClass("active"),l.filter("[data-elfsight-admin-page="+e+"]").addClass("active"),u.length&&u.removeClass("elfsight-admin-page-active"),u=a.filter("[data-elfsight-admin-page-id="+e+"]"),c.css("min-height",u.outerHeight()),u.addClass("elfsight-admin-page-animation elfsight-admin-page-active"),setTimeout(function(){u.removeClass("elfsight-admin-page-animation"),"function"==typeof i.onPageChanged&&i.onPageChanged(e)},200)}),n)}};var v=new e;function t(){this.popups=[]}r.elfsightAdminPagesController=v,t.prototype={constructor:t,add:function(e,t){if(!e||!t||!y.isFunction(t))return!1;this.popups[e]=t()||{}},get:function(e){return this.popups[e]||!1},hide:function(e){(h=n.filter("[data-elfsight-admin-popup-id="+e+"]")).removeClass("elfsight-admin-popup-active")},show:function(e,t){var o,i=this.get(e);return!!i&&("init"in i&&y.isFunction(i.init)&&(o=i.init(t)),y.when(o).then(function(){h.length&&h.removeClass("elfsight-admin-popup-active"),(h=n.filter("[data-elfsight-admin-popup-id="+e+"]")).addClass("elfsight-admin-popup-animation elfsight-admin-popup-active"),setTimeout(function(){h.removeClass("elfsight-admin-popup-animation")},200)}),i)}};var f=new t;y(function(){x=y(".elfsight-admin"),s=y(".elfsight-admin-main"),a=y("[data-elfsight-admin-page-id]"),l=y("[data-elfsight-admin-page]"),c=y(".elfsight-admin-pages-container"),n=y("[data-elfsight-admin-popup-id]"),d=y(".elfsight-admin-other-products"),u=y(),h=y(),_=s.attr("data-elfsight-admin-slug"),v.add("welcome",y.noop),v.add("widgets",function(){var o=[],i="true"===s.attr("data-elfsight-admin-widgets-clogged"),e=y(".elfsight-admin-page-widgets"),t=y(".elfsight-admin-page-widgets-list",e),c=y(".elfsight-admin-template-widgets-list-item",e),n=y(".elfsight-admin-template-widgets-list-empty",e);t.on("click",".elfsight-admin-page-widgets-list-item-actions-remove",function(e){var t=y(this),o=t.attr("data-widget-id");t.closest(".elfsight-admin-page-widgets-list-item").addClass("elfsight-admin-page-widgets-list-item-removed"),m("remove",{id:o},"post",!0),e.preventDefault()}),t.on("click",".elfsight-admin-page-widgets-list-item-actions-restore a",function(e){var t=y(this),o=t.attr("data-widget-id");t.closest(".elfsight-admin-page-widgets-list-item").removeClass("elfsight-admin-page-widgets-list-item-removed"),m("restore",{id:o},"post",!0),e.preventDefault()}),t.tablesorter({cssAsc:"elfsight-admin-page-widgets-list-sort-asc",cssDesc:"elfsight-admin-page-widgets-list-sort-desc",cssHeader:"elfsight-admin-page-widgets-list-sort",headers:{0:{},1:{},2:{},3:{sorter:!1}}});var r=function(){var l=y("tbody",t).empty();y.isArray(o)&&o.length?(y.each(o,function(e,t){var o=y(c.html()),i="["+_.split("-").join("_")+' id="'+t.id+'"]';o.find(".elfsight-admin-page-widgets-list-item-name a").attr("href","#/edit-widget/"+t.id+"/").text(t.name);var n=new Date(1e3*(t.time_updated||t.time_created));o.find(".elfsight-admin-page-widgets-list-item-date").text(function(e){e instanceof Date||(e=new Date(Date.parse(e)));return["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()}(n)),o.find(".elfsight-admin-page-widgets-list-item-shortcode-hidden").text(i);var r=o.find(".elfsight-admin-page-widgets-list-item-shortcode-input").val(i),s=o.find(".elfsight-admin-page-widgets-list-item-shortcode-copy-trigger").attr("data-clipboard-text",i),a=new ClipboardJS(s.get(0));a.on("success",function(){s.addClass("elfsight-admin-page-widgets-list-item-shortcode-copy-trigger-copied").find("span").text("Copied"),setTimeout(function(){s.removeClass("elfsight-admin-page-widgets-list-item-shortcode-copy-trigger-copied").find("span").text("Copy")},5e3)}),a.on("error",function(){var e=o.find(".elfsight-admin-page-widgets-list-item-shortcode-copy-error").show();r.select(),setTimeout(function(){e.hide()},5e3)}),o.find(".elfsight-admin-page-widgets-list-item-shortcode-value").text(i),o.find(".elfsight-admin-page-widgets-list-item-actions-edit").attr("href","#/edit-widget/"+t.id+"/"),o.find(".elfsight-admin-page-widgets-list-item-actions-duplicate").attr("href","#/edit-widget/"+t.id+"/duplicate/"),o.find(".elfsight-admin-page-widgets-list-item-actions-remove, .elfsight-admin-page-widgets-list-item-actions-restore a").attr("data-widget-id",t.id),o.appendTo(l)}),t.trigger("update")):y(n.html()).appendTo(l)};return{init:function(e,t){return m("list").then(function(e){if(e.status){if(o=e.data,!(i||y.isArray(o)&&o.length))return v.show("welcome"),y.Deferred().reject(e).promise();r()}})}}}),v.add("edit-widget",function(){var r,s,a,i=y(".elfsight-admin-page-edit-widget"),e=y(".elfsight-admin-page-edit-widget-form-submit",i),t=y(".elfsight-admin-page-edit-widget-form-apply",i),l=y(".elfsight-admin-page-edit-widget-name-input",i),n="elfsight-admin-page-edit-widget-form-editor",c=n+"-clone",d=y("."+c,i).parent(),u=y("."+c,i),h=JSON.parse(u.attr("data-elfsight-admin-editor-settings")),p=JSON.parse(u.attr("data-elfsight-admin-editor-preferences")),f=JSON.parse(u.attr("data-elfsight-admin-editor-preview-url")),g=u.attr("data-elfsight-admin-editor-observer-url")||null;g&&(g=JSON.parse(g));var o=function(t){var e=l.val(),o={};s.getData()?o=s.getData():r&&(o=r.options);var i=r?"update":"add",n={name:e||"Untitled",options:encodeURIComponent(JSON.stringify(o))};r&&(n.id=r.id),m(i,n,"post").done(function(e){e.status&&(e.id&&(r={id:e.id}),y.isFunction(t)&&t())})};return e.on("click",function(){y("html, body").animate({scrollTop:0}),o(function(){hasher.setHash("widgets/")})}),t.on("click",function(){o()}),{init:function(t,e){var o=function(){l.val(r?r.name:""),a&&a.remove(),(a=u.clone().removeClass(c).addClass(n)).appendTo(d),angular.module("elfsightEditor",["elfsightAppsEditor"]).controller("AppController",["$elfsightAppsEditor","$scope","$rootScope","$timeout",function(e,t,o,i){s=e;var n={parent:a,previewUrl:f,observerUrl:g||void 0,settings:y.extend(!0,{},h),preferences:p};r&&(n.widget={data:r.options}),e.init(n)}]),a.attr("ng-controller","AppController as app"),angular.bootstrap(a,["elfsightEditor"])};if(t&&t.id)return m("list",{id:t.id}).then(function(e){if(e.status){if(!e.data.length)return v.show("error",{message:"There is no widget with id "+t.id+"."}),y.Deferred().reject(e).promise();r=e.data[0],o(),i.toggleClass("elfsight-admin-page-edit-widget-new",!!t.duplicate),t.duplicate&&(r=null)}},function(){r=null});r=null,o(),i.addClass("elfsight-admin-page-edit-widget-new")}}}),v.add("support",y.noop),v.add("preferences",function(){var e=y(".elfsight-admin-page-preferences-form"),o=e.attr("data-nonce"),r=function(e,i){var t={action:_.split("-").join("_")+"_update_preferences",nonce:o},n=i.find(".elfsight-admin-page-preferences-option-save");n.addClass("elfsight-admin-page-preferences-option-save-loading"),y.post(ajaxurl,y.extend(t,e),null,"json").done(function(e){var t=i.find(".elfsight-admin-page-preferences-option-save-success"),o=i.find(".elfsight-admin-page-preferences-option-save-error");n.removeClass("elfsight-admin-page-preferences-option-save-loading"),e.success?(o.text(""),t.addClass("elfsight-admin-page-preferences-option-save-success-visible"),setTimeout(function(){t.removeClass("elfsight-admin-page-preferences-option-save-success-visible")},2e3)):e.error&&o.text(e.error)})},t=function(e,t){var o=e.getSession().getScreenLength()*e.renderer.lineHeight+e.renderer.scrollBar.getWidth();t.height(o.toString()+"px"),e.resize()},s=ace.edit("elfsightPreferencesSnippetCSS");s.setOption("useWorker",!1),s.setTheme("ace/theme/monokai"),s.getSession().setMode("ace/mode/css"),s.commands.addCommand({name:"save",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:function(){var e=y(".elfsight-admin-page-preferences-option-css");r({preferences_custom_css:s.getSession().doc.getValue()},e)}}),t(s,y("#elfsightPreferencesSnippetCSS")),s.getSession().on("change",function(){t(s,y("#elfsightPreferencesSnippetCSS"))});var a=ace.edit("elfsightPreferencesSnippetJS");a.setOption("useWorker",!1),a.setTheme("ace/theme/monokai"),a.getSession().setMode("ace/mode/javascript"),a.commands.addCommand({name:"save",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:function(){var e=y(".elfsight-admin-page-preferences-option-js");r({preferences_custom_js:a.getSession().doc.getValue()},e)}}),t(a,y("#elfsightPreferencesSnippetJS")),a.getSession().on("change",function(){t(a,y("#elfsightPreferencesSnippetJS"))}),e.find(".elfsight-admin-page-preferences-option-save").click(function(e){e.preventDefault();var t=y(this),o=t.closest(".elfsight-admin-page-preferences-option"),i=t.closest(".elfsight-admin-page-preferences-option-input-container").find('input[type="text"]'),n={};i.each(function(e,t){n[y(t).attr("name")]=y(t).val()}),o.is(".elfsight-admin-page-preferences-option-css")&&(n.preferences_custom_css=s.getSession().doc.getValue()),o.is(".elfsight-admin-page-preferences-option-js")&&(n.preferences_custom_js=a.getSession().doc.getValue()),r(n,o)}),e.find('[name="preferences_force_script_add"]').change(function(){var e=y(this),t=e.closest(".elfsight-admin-page-preferences-option");r({preferences_force_script_add:e.is(":checked")?"on":"off"},t)}),e.find('[name="preferences_access_role"]').change(function(){var e=y(this),t=e.closest(".elfsight-admin-page-preferences-option");r({access_role:e.val()},t)}),e.find('[name="preferences_auto_upgrade"]').change(function(){var e=y(this),t=e.closest(".elfsight-admin-page-preferences-option");r({preferences_auto_upgrade:e.is(":checked")?"on":"off"},t)})}),v.add("activation",function(){var i=y(".elfsight-admin-page-activation-form"),n=y(".elfsight-admin-page-activation-form-purchase-code-input",i),r=y(".elfsight-admin-page-activation-form-activated-input",i),s=y(".elfsight-admin-page-activation-form-supported-until-input",i),a=y(".elfsight-admin-page-activation-form-host-input",i),e=y(".elfsight-admin-page-activation-form-submit",i),l=y(".elfsight-admin-page-activation-form-deactivation",i),t=y(".elfsight-admin-page-activation-form-deactivation-button",i),o=y(".elfsight-admin-page-activation-form-deactivation-confirm-no",i),c=y(".elfsight-admin-page-activation-form-deactivation-confirm-yes",i),d=y(".elfsight-admin-page-activation-form-message-success",i),u=y(".elfsight-admin-page-activation-form-message-error",i),h=y(".elfsight-admin-page-activation-form-message-fail",i),p=y(".elfsight-admin-page-activation-faq"),f=y(".elfsight-admin-page-activation-faq-list-item",p),g=y(".elfsight-admin-page-support-ticket-iframe"),m=g.attr("src"),v=i.attr("data-activation-url"),b=i.attr("data-activation-version"),w=function(e,t,o){y.post(ajaxurl,{action:_.split("-").join("_")+"_update_activation_data",purchase_code:e,supported_until:o||0,activated:t,nonce:i.attr("data-nonce")}),n.prop("readonly",t)};e.click(function(e){e.preventDefault(),e.stopPropagation();var t=n.val(),o=r.val(),i=a.val();y.ajax({url:v,dataType:"jsonp",data:{action:"purchase_code",slug:_+"-cc",host:i,purchase_code:t,version:b}}).done(function(e){e.verification?(o=!!e.verification.valid,r.val(o),s.val(e.verification.supported_until||0),e.verification.valid?(x.removeClass("elfsight-admin-activation-invalid").addClass("elfsight-admin-activation-activated"),u.hide(),h.hide(),d.show(),m=m.replace(/purchase_code=(.*)#/,"purchase_code="+t+"#"),g.attr("src",m)):(x.removeClass("elfsight-admin-activation-activated").toggleClass("elfsight-admin-activation-invalid",!!t),d.hide(),h.hide(),u.text(e.verification.error).show())):o=!1,w(t,o,e.verification.supported_until)}).fail(function(){x.removeClass("elfsight-admin-activation-activated").addClass("elfsight-admin-activation-invalid"),r.val(!1),d.hide(),u.hide(),h.show(),w(t,!1)})}),t.click(function(e){e.preventDefault(),e.stopPropagation(),l.addClass("elfsight-admin-page-activation-form-deactivation-confirm-visible")}),o.click(function(e){e.preventDefault(),e.stopPropagation(),l.removeClass("elfsight-admin-page-activation-form-deactivation-confirm-visible")}),c.click(function(e){e.preventDefault(),e.stopPropagation(),l.removeClass("elfsight-admin-page-activation-form-deactivation-confirm-visible");var t=n.val(),o=(r.val(),a.val());y.ajax({url:v,dataType:"jsonp",data:{action:"deactivate",slug:_+"-cc",host:o,purchase_code:t,version:b}}).done(function(e){n.val(""),r.val("false"),s.val(0),x.removeClass("elfsight-admin-activation-activated"),d.hide(),h.hide(),u.hide(),w("",!1)})}),p.find(".elfsight-admin-page-activation-faq-list-item-question").click(function(){var e=y(this).closest(".elfsight-admin-page-activation-faq-list-item");f.not(e).removeClass("elfsight-admin-page-activation-faq-list-item-active"),e.toggleClass("elfsight-admin-page-activation-faq-list-item-active")})}),v.add("error",function(){var t=y(".elfsight-admin-page-error");return{init:function(e){e&&e.message&&y(".elfsight-admin-page-error-message",t).text(e.message)}}}),f.add("rating",function(){var n=y(".elfsight-admin-header-rating"),e=n.find("input[name=rating-header]"),r=y(".elfsight-admin-popup-rating"),s=r.find("form"),t=r.find("input[name=rating-popup]"),a=r.find(".elfsight-admin-popup-textarea"),o=r.find(".elfsight-admin-popup-text"),l=r.find(".elfsight-admin-popup-footer-button-ok"),c=r.find(".elfsight-admin-popup-footer-button-close"),i=localStorage.getItem("popupRatingShowed")?localStorage.getItem("popupRatingShowed"):Math.floor(Date.now()/1e3),d=parseInt(i)+86400<Math.floor(Date.now()/1e3),u=function(e){r.length&&!r.hasClass("elfsight-admin-popup-sent")&&((!e||e&&d)&&f.show("rating"),localStorage.setItem("popupRatingShowed",Math.floor(Date.now()/1e3)))};setTimeout(function(){u(!0)},3e4),e.on("change",function(){var e=parseInt(y(this).val());u(!1),setTimeout(function(){t.filter('[value="'+e+'"]').prop("checked",!0),h(e)},400),y(this).prop("checked",!1)});var h=function(e){l.removeClass("elfsight-admin-popup-footer-button-hide"),a.toggleClass("elfsight-admin-popup-textarea-hide",5===e),o.toggleClass("elfsight-admin-popup-text-hide",e<5)};return t.on("change",function(){h(parseInt(y(this).val()))}),l.on("click",function(e){e.preventDefault();var t=parseInt(s.find('input[name="rating-popup"]:checked').val()),o=s.find("textarea").val(),i={action:_.split("-").join("_")+"_rating_send",nonce:s.attr("data-nonce"),value:t,comment:o};5===t&&p(y(e.target).attr("href")),t<5&&""===o?a.toggleClass("elfsight-admin-popup-textarea-error",!0):(a.toggleClass("elfsight-admin-popup-textarea-error",!1),y.post(ajaxurl,i).then(function(){r.addClass("elfsight-admin-popup-sent"),c.text("OK"),l.addClass("elfsight-admin-popup-footer-button-hide"),n.slideUp(),localStorage.removeItem("popupRatingShowed")}))}),c.on("click",function(){f.hide("rating"),l.addClass("elfsight-admin-popup-footer-button-hide"),a.addClass("elfsight-admin-popup-textarea-hide"),o.addClass("elfsight-admin-popup-text-hide"),t.prop("checked",!1)}),{init:function(e,t){return!0}}});var p=function(e,t){var o=940,i=700,n=["width="+o,"height="+i,"menubar=no","toolbar=no","resizable=yes","scrollbars=yes","left="+(r.screen.availLeft+r.screen.availWidth/2-o/2),"top="+(r.screen.availTop+r.screen.availHeight/2-i/2)];r.open(e,t,n.join(","))},m=function(e,t,o,i){o="post"===o?"post":"get";var n=y.extend({},{action:_.split("-").join("_")+"_widgets_api",endpoint:e},t);return y.ajax({url:ajaxurl,data:n,dataType:"json",type:o,beforeSend:function(){i||s.addClass("elfsight-admin-loading")}}).always(function(){i||s.removeClass("elfsight-admin-loading")}).then(function(e){return e.status?e:(v.show("error",{message:"An error occurred during your request process. Please, try again."}),y.Deferred().reject(e).promise())},function(e){return v.show("error",{message:"An error occurred during your request process. Please, try again."}),e})};if(r.crossroads&&r.hasher){crossroads.addRoute("/add-widget/",function(){v.show("edit-widget")}),crossroads.addRoute("/edit-widget/{id}/",function(e){v.show("edit-widget",{id:e})}),crossroads.addRoute("/edit-widget/{id}/duplicate/",function(e){v.show("edit-widget",{id:e,duplicate:!0})}),crossroads.addRoute("/{page}/",function(e){e&&-1===e.indexOf("!")&&(v.show(e)||v.show("error",{message:"The requested page was not found."}))});var e=function(e,t){crossroads.parse(e)};hasher.initialized.add(e),hasher.changed.add(e),hasher.init(),hasher.getHash()||hasher.setHash("widgets/")}})}(jQuery,window);