// ce-29.538-develop-mac cf66028de5c5fa694a1f12d093eb4205be36993f
// Copyright 2013-2015 Evernote Corp. All rights reserved.
// http://www.evernote.com

window.enLoadState = 'willLoad';
window['CE_VERSION_INFO'] = {
    'lastCommitDate': '2016-01-05 19:47:57 -0800',
    'major': 29,
    'build': 538,
    'channel': 'develop',
};

try {(function(){ 'use strict';var aa=this;
function ba(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var b=Object.prototype.toString.call(a);if("[object Window]"==b)return"object";if("[object Array]"==b||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==b||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==
c&&"undefined"==typeof a.call)return"object";return c}function ca(a){return"array"==ba(a)}function t(a){return"string"==typeof a}function da(a){return"number"==typeof a}function ea(a){return"function"==ba(a)}function ga(a){var c=typeof a;return"object"==c&&null!=a||"function"==c}function ha(a,c){var b=a.split("."),e=aa;b[0]in e||!e.execScript||e.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length||void 0===c?e[d]?e=e[d]:e=e[d]={}:e[d]=c}
function ia(a,c){function b(){}b.prototype=c.prototype;a.Ed=c.prototype;a.prototype=new b;a.prototype.constructor=a;a.ii=function(a,b,f){for(var g=Array(arguments.length-2),l=2;l<arguments.length;l++)g[l-2]=arguments[l];return c.prototype[b].apply(a,g)}};window.CE_VERSION_INFO=window.CE_VERSION_INFO||{lastCommitDate:"",major:0,build:0,channel:"local",platform:"mac"};function ja(){var a=window.CE_VERSION_INFO;return["ce",a.major+"."+a.build,a.channel,a.platform].join("-")}function ka(){return window.CE_VERSION_INFO.lastCommitDate};var la="style bgcolor title lang dir text".split(" "),ma="address article aside body blockquote caption center col colgroup dd details dir div dl dt fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hgroup hr li listing menu nav ol p plaintext pre section summary table tbody td tfoot th thead tr ul xmp".split(" "),na="a abbr b bdi bdo cite code dfn em h1 h2 h3 h4 h5 h6 i kbd mark p pre q rp rt ruby s samp small span strong sub sup u var acronym listing strike xmp big blink font marquee nobr tt".split(" "),
pa="hr area base br col colgroup embed img input link meta param wbr en-todo en-media".split(" "),qa="margin-left margin-right font-family font-size font-weight text-align color direction background-color font-style text-decoration vertical-alignment line-height".split(" "),sa=["0","0px","none","initial"],ua="colgroup table tbody tfoot thead tr".split(" "),va=["script","style","plaintext","xmp"],ya=["embed","object","img"],za=ma.join(","),Aa=["*","~","!","_","`"],Ba="backcolor bold capitalize content copy createlink cut delete deleteline deletetable deletetablecol deletetablerow deleteword enml focus fontname fontsize forecolor forwarddelete forwarddeleteline forwarddeleteword highlight indent inserthorizontalrule inserthtml insertimage insertlinebreak insertorderedlist insertparagraph inserttable inserttablecol inserttablerow inserttext inserttodo inserttodolist insertunorderedlist italic justifycenter justifyfull justifyleft justifyright lowercase outdent paste pasteplain pasteraw pastesimple plaintext redo removeformat selectall simpletext strikethrough tab tablealign tablebordercolor tableborderwidth tablecellcolor tt underline undo unlink uppercase".split(" ");var Ca=[];function Da(a){ca(a)||(a=[a.toString()]);this.M=a}Da.prototype.log=function(a,c,b){if(800<=a)for(var e=0;e<Ca.length;e++)Ca[e](this.M,a,Array.prototype.slice.call(c),b)};Da.prototype.B=function(){};Da.prototype.info=function(a){this.log(800,arguments)};Da.prototype.warn=function(a){this.log(900,arguments)};Da.prototype.error=function(a){this.log(1E3,arguments)};Da.prototype.A=function(a){this.log(1200,arguments)};function Ea(){}Ea.prototype.B=function(){};Ea.prototype.info=function(){};
Ea.prototype.warn=function(){};Ea.prototype.error=function(){};var Fa=new Da("default"),Ga=Fa.info.bind(Fa),Ha=Fa.warn.bind(Fa),Ia=Fa.error.bind(Fa);Fa.A.bind(Fa);window.evernoteClient&&Ca.push(function(a,c,b){a=a.map(function(a){return"["+a+"]"}).join("");b.unshift(a);window.evernoteClient.log(b.join(" "))});Ca.push(function(a,c,b){a=a.map(function(a){return"["+a+"]"}).join("");b.unshift(a);a=b.map(La).join(" ");1E3<=c?console.error(a):900<=c?console.warn(a):800<=c?console.info(a):console.log(a)});var v={};function Ma(){return!1}function Na(){return!0}function Oa(){}v.qe=function(a,c){null==Pa[a]?(v.error("Unrecognized log level: <"+a+">. Logging as error."),v.error.apply(v.error,arguments)):Pa[a].apply(v,Array.prototype.slice.call(arguments,1))};v.log=function(){};v.info=Ga;v.warn=Ha;v.error=Ia;v.time=Oa;v.timeEnd=Oa;v.trace=Oa;v.dump=function(a){var c=Array.prototype.slice.call(arguments).map(La);v.log.apply(v,c)};var Pa={info:v.info,warn:v.warn,error:v.error};
v.group=function(a){window.console&&window.console.groupCollapsed&&window.console.groupCollapsed(Array.prototype.slice.call(arguments).map(La).join(" "))};v.groupEnd=function(){window.console&&window.console.groupCollapsed&&window.console.groupEnd&&window.console.groupEnd()};var Qa={};v.lg=function(a,c){var b={t:window.performance&&window.performance.now?window.performance.now():(new Date).getTime(),Tc:Array.prototype.slice.call(arguments,1).join(" ")||""};Qa[a]?Qa[a].push(b):Qa[a]=[b]};
v.pi=function(a,c){Qa[a]=[];v.lg.apply(this,arguments)};function Ra(a){a=a.toString();var c=a.indexOf(".");return 0>c?a:a.substring(0,c+4)}v.oi=function(a,c){v.lg.apply(this,arguments);for(var b=Qa[a],e=b[b.length-1].t-b[0].t,d=1;d<b.length;d++){var f=b[d].t-b[d-1].t;v.log("\u25fc "+a+"."+d+": "+Ra(f)+"ms ("+Math.round(100*f/e)+"% of "+Ra(e)+"ms full time)",b[d].Tc?"<-":"",b[d].Tc)}Qa[a]=[]};function Ta(a){var c=Ua(arguments);c.unshift("DEPRECATION WARNING:");v.warn.apply(null,c)}
function A(a,c){if(!a){var b="Assertion failed! "+Array.prototype.slice.call(arguments,1).join(" ");v.error(b);throw b;}}function Va(a){try{if(t(a))return Wa(a);var c=JSON.stringify(a,null,"  ")}catch(b){return a.toString()}return c}
function Ya(a){var c;return a instanceof Text?"<TextNode:"+Va(a.textContent)+">":a instanceof Element?"<Element:"+a.outerHTML.replace(/^<(.*?)>[\s\S]*$/gi,"$1")+(a.id?"#"+a.id:"")+">":a instanceof DocumentFragment?(c=document.createElement("div"),c.appendChild(a.cloneNode(!0)),"<DocumentFragment:"+c.innerHTML.replace(/^<(.*?)>[\s\S]*$/gi,"$1")+">"):a instanceof Range?(c=document.createElement("div"),c.appendChild(a.cloneContents()),"<Range:"+Ya(a.startContainer)+":"+a.startOffset+","+Ya(a.endContainer)+
":"+a.endOffset+" collapsed="+(a.collapsed?"true":"false")+" html="+Va(c.innerHTML)+">"):"<"+typeof a+":"+Va(a)+">"}function La(a){return t(a)?a:Ya(a)}var Za=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;function $a(a){return a instanceof RegExp?a.source:a.replace(Za,"\\$&")}var ab=/[^\x20-\x26\x28-\x5B\x5D-\x7E]/g,cb={"\n":"\\n","'":"\\'",'"':'\\"',"\t":"\\t","\r":"\\r"};
function Wa(a){return"'"+a.replace(ab,function(a){if(cb[a])return cb[a];a=a.charCodeAt(0).toString(16);var b=a.length;return 1===b?"\\x0"+a:2===b?"\\x"+a:3===b?"\\u0"+a:"\\u"+a})+"'"}var eb=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g;function gb(a){eb.lastIndex=0;return eb.test(a)}var hb=/[\u0000\u0001-\u0008\u000E-\u001F\u007F-\u009F\uFDD0-\uFDEF\u000B\uFFFE\uFFFF]|[\x01-\x10][\uFFFE-\uFFFF]/g;function ib(a){return a.replace(hb,"")}
var jb={"&apos;":/&apos;/gi,"&quot;":/&quot;/gi,"&gt;":/&gt;/gi,"&lt;":/&lt;/gi,"&amp;":/&amp;/gi,"&":/&/g,"<":/</g,">":/>/g,'"':/"/g,"'":/'/g};function kb(a){return a.replace(jb["&apos;"],"'").replace(jb["&quot;"],'"').replace(jb["&gt;"],">").replace(jb["&lt;"],"<").replace(jb["&amp;"],"&")}
function lb(a){var c;A(!!a&&mb(a),"obj has to be dict",a);var b={};null==c&&(c=!1);Object.keys(a).forEach(function(c){b[a[c]]=c});c||Object.keys(a).length===Object.keys(b).length||Ha("inverting resulted in a different number of keys","original:",a,"inverted:",b);return b}function nb(a,c){var b;if(a&&c)if(null!=a.length){b=0;for(var e=a.length;b<e&&c.call(a,a[b],b)!==ob;b++);}else"object"===typeof a&&Object.keys(a).every(function(b){return c.call(a,b,a[b])===ob?!1:!0})}var ob={};
function qb(a,c,b){if(c)for(var e in c)if(!b||void 0===a[e]){var d=c[e];void 0!==d&&(a[e]=d)}return a}function B(a,c,b){null==b&&(b=!0);if(null==a||""===a)a={};t(a)&&(a=JSON.parse(a)||{});A(mb(a),"Options of wrong type");if(c){A(mb(c),"Defaults of wrong type");var e,d=Object.keys(c);for(e in a)if(a.hasOwnProperty(e)&&!(0<=d.indexOf(e))&&b){var f=["Key",Va(e),"not supported! Seen in:",(a||{}).name||"",a];v.warn.apply(null,f)}for(e in c)"undefined"===typeof a[e]&&(a[e]=c[e])}return a||{}}
function rb(){var a=navigator.language||navigator.userLanguage||"en",a=a.split("-")[0];window.Evernote&&window.Evernote.getLanguage&&(a=window.Evernote.getLanguage());return a}function Ua(a,c){if(!c)return Array.prototype.slice.call(a,0);var b=a.length,e=[],d;if(c)for(d=b-1;0<=d;d--)e.push(a[d]);else for(d=0;d<b;d++)e.push(a[d]);return e}var sb=/^[\x00-\x20\s]*$/g;function tb(a){return t(a)?(sb.lastIndex=0,0===a.length||sb.test(a)):!1}
function ub(a){return!a||tb(a)||ca(a)&&0===a.length||ga(a)&&0===Object.keys(a).length}var vb=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?((?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))))(?::\d{2,5})?(?:\/\S*)?(?:\?\S*)?$/gi;
function wb(a){vb.lastIndex=0;return t(a)&&vb.test(a)}function mb(a){return!!a&&"object"===ba(a)}function xb(a){var c=a.indexOf(">"),b=a.lastIndexOf("<");return 0>c||0>b?a:a.substring(c+1,b)}function yb(a){var c;if(t(a))c=document.createElement("div"),c.textContent=a;else if(a instanceof Node)c=a.ownerDocument.createElement("div"),c.appendChild(a.cloneNode(!0));else throw"Illegal argument type for en.toHTML";return xb(c.outerHTML)}function zb(){return window.ENUniqueCounter++}
function Ab(a){var c=1+(window.ENUniqueCounterObject[a]||0);window.ENUniqueCounterObject[a]=c;return a+"-"+c}window.ENUniqueCounter=1;window.ENUniqueCounterObject={};function Bb(a){v.error("Exception: "+a.toString())}function Cb(){this.za=[];this.Bb=[]}Cb.prototype.has=function(a){return-1!==this.za.indexOf(a)};Cb.prototype.get=function(a){a=this.za.indexOf(a);return-1!==a?this.Bb[a]:null};Cb.prototype.set=function(a,c){var b=this.za.indexOf(a);-1!==b?this.Bb[b]=c:(this.za.push(a),this.Bb.push(c))};
Cb.prototype.remove=function(a){a=this.za.indexOf(a);-1!==a&&(this.za.splice(a,1),this.Bb.splice(a,1))};function Db(){this.B=Object.create(null)}Db.prototype.add=function(a){this.B[a]=!0};Db.prototype.remove=function(a){delete this.B[a]};Db.prototype.has=function(a){return!!this.B[a]};var Gb=window.onerror;window.onerror=function(a,c,b){var e=!1;Gb&&(e=Gb(a,c,b));v.error("Uncaught error in JS:",a.toString(),c,b);return e};var Hb={"smiling face with open mouth":{icon:"\ud83d\ude03",keystrokes:[":)",":=)",":-)"],color:"yellow"},pensive:{icon:"\ud83d\ude14",keystrokes:[":(",":=(",":-("]},"grinning face":{icon:"\ud83d\ude00",keystrokes:[":D",":=D",":-D"]},"smiling face with sunglasses":{icon:"\ud83d\ude0e",keystrokes:["8=)","8-)","B=)","B-)"]},"winking face":{icon:"\ud83d\ude09",keystrokes:[";)",";=)",";-)"]},"face with open mouth":{icon:"\ud83d\ude2e",keystrokes:":o :=o :-o :O :=O :-O".split(" ")},"crying face":{icon:"\ud83d\ude22",
keystrokes:[";(",";=(",";-("]},"smiling face with open mouth and cold sweat":{icon:"\ud83d\ude05",keystrokes:["(:|",":sweat:"]},"neutral face":{icon:"\ud83d\ude10",keystrokes:[":|",":=|",":-|",":neutral:"]},"kissing face with closed eyes":{icon:"\ud83d\ude1a",keystrokes:[":*",":=*",":-*",":kiss:"]},"face with stuck-out tongue":{icon:"\ud83d\ude1b",keystrokes:":P :=P :-P :p :=p :-p".split(" ")},"smiling face with smiling eyes":{icon:"\ud83d\ude0a",keystrokes:[":$",":-$",":=$",":simple_smile:"]},"angry face":{icon:"\ud83d\ude21",
keystrokes:":@ :-@ :=@ x( x-( x=( X( (X=( :angry:".split(" ")},"smiling face with halo":{icon:"\ud83d\ude07",keystrokes:"O:) O:=) O:-) o:) o:=) o:-) :innocent: :angel:".split(" ")},"heavy black heart":{icon:"\u2764\ufe0f",keystrokes:["<3",":heart:"]},"sleepy face":{icon:"\ud83d\ude2a",keystrokes:["|-)","I-)","I=)",":snooze:"]},"smiling face with heart-shaped eyes":{icon:"\ud83d\ude0d",keystrokes:[":inlove:",":in_love:"]},"smiling face with horns":{icon:"\ud83d\ude08",keystrokes:[":devil:"]},ghost:{icon:"\ud83d\udc7b",
keystrokes:[":ghost:"]},"extraterrestrial alien":{icon:"\ud83d\udc7d",keystrokes:[":alien:"]},skull:{icon:"\ud83d\udc80",keystrokes:[":skull:"]},"face screaming in fear":{icon:"\ud83d\ude31",keystrokes:[":scream:"]},"slice of pizza":{icon:"\ud83c\udf55",keystrokes:[":pizza:"]},"purple heart":{icon:"\ud83d\udc9c",keystrokes:[":purple_heart:",":purpleheart:"]},"green heart":{icon:"\ud83d\udc9a",keystrokes:[":green_heart:",":greenheart:"]},"blue heart":{icon:"\ud83d\udc99",keystrokes:[":blue_heart:",
":blueheart:"]},"yellow heart":{icon:"\ud83d\udc9b",keystrokes:[":yellow_heart:",":yellowheart:"]},droplet:{icon:"\ud83d\udca7",keystrokes:[":droplet:"]}},Ib={":(=|-)?\\)":Hb["smiling face with open mouth"],":(=|-)?\\(":Hb.pensive,":(=|-)?D":Hb["grinning face"],"(8|B)(=|-)?\\)":Hb["smiling face with sunglasses"],";(=|-)?\\)":Hb["winking face"],":(=|-)?(o|O)":Hb["face with open mouth"],";(=|-)?\\(":Hb["crying face"],"\\(:\\|":Hb["smiling face with open mouth and cold sweat"],":sweat:":Hb["smiling face with open mouth and cold sweat"],
":(=|-)?\\|":Hb["neutral face"],":neutral:":Hb["neutral face"],":(=|-)?\\*":Hb["kissing face with closed eyes"],":kiss:":Hb["kissing face with closed eyes"],":(=|-)?(P|p)":Hb["face with stuck-out tongue"],":(-|=)?\\$":Hb["smiling face with smiling eyes"],":simple_smile:":Hb["smiling face with smiling eyes"],"\\(?(:|x|X)(=|-)?(@|\\()":Hb["angry face"],":angry:":Hb["angry face"],"(O|o):(=|-)?\\)":Hb["smiling face with halo"],":innocent:":Hb["smiling face with halo"],":angel:":Hb["smiling face with halo"],
"<3":Hb["heavy black heart"],":heart:":Hb["heavy black heart"],"(\\||I)(-|=)\\)":Hb["sleepy face"],":snooze:":Hb["sleepy face"],":in_?love:":Hb["smiling face with heart-shaped eyes"],":devil:":Hb["smiling face with horns"],":ghost:":Hb.ghost,":alien:":Hb["extraterrestrial alien"],":skull:":Hb.skull,":scream:":Hb["face screaming in fear"],":pizza:":Hb["slice of pizza"],":purple_?heart:":Hb["purple heart"],":green_?heart:":Hb["green heart"],":blue_?heart:":Hb["blue heart"],":yellow_?heart:":Hb["yellow heart"],
":droplet:":Hb.droplet},Jb=new Cb;Object.keys(Ib).forEach(function(a){Jb.set(a,Ib[a])});function Kb(){function a(a,b,c){a.J=B(b,{title:null,id:null,queryGroupName:c.vh})}function c(a){A(t(a)&&a===a.toLowerCase(),"Command name has to be lower case only.");var c=a.lastIndexOf("."),f=[],g=null,l=a;-1===c?(c=b[a])&&(f=c.filter(function(a){return!0!==a.cc})):(g=a.substring(0,c),l=a.substring(c+1),(c=b[l])&&(f=c.filter(function(a){return a.Ib&&-1!==a.Ib.indexOf(g)})));return{Aa:f,mi:l,vh:g,ri:a}}var b={};this.Oh=function(a){A(mb(a),"We require command to be an object:",a);var c=a.name;A(t(c)&&
1<c.length&&!!c.match(/[a-z]+/gi),"Invalid name for command:",Va(c));a.action&&A(!!a.enabled,'We require command to have "enabled" state:',a.name);A(!!(a.action||a.value||a.state),'We require command to have one of "action", "value" or "state":',a.name);A(!a.Ib||ca(a.Ib),"We require command groups to be an Array:",a.name);var f=b[c];f||(f=[],b[c]=f);A(ca(f),"Expected list for commands");f.push(a)};this.Cg=function(a){if(a&&b)for(var c=Object.keys(b||{}),f=0;f<c.length;f++){var g=c[f],l=b[g];if(l)for(var p=
l.length-1;0<=p;p--){var h=l[p];h&&a(h)&&(l.splice(p,1),0>=l.length?delete b[g]:b[g]=l)}}else b={}};this.action=function(b,d,f){var g=null;try{var l=c(b),p=l.Aa;if(0!=p.length)for(b=0;b<p.length;b++){var h=p[b];a(h,f,l);if(h.action&&h&&h.enabled&&h.enabled.call(h,d)){var m={name:h.name,value:d,command:h};Lb("beforeExecCommand",m);var r=h.action.call(h,d),g=!(null===g&&!1===r);m.result=r;Lb("execCommand",m)}}else v.warn("execCommand of unknown command:",b,"with value:",d)}catch(n){v.qe("complete"!==
document.readyState?"warn":"error","Exception in execCommand <$>:",n.toString()),Bb(n)}return g};this.enabled=function(b,d,f){var g=null;try{var l=c(b),p=l.Aa;if(p)for(b=0;b<p.length;b++){var h=p[b];if(h.enabled){a(h,f,l);var m=h.enabled.call(h,d);if(!0===m){g=!0;break}null===g&&!1===m&&(g=!1)}}else v.warn("queryCommandEnabled of unknown command:",b,d)}catch(r){v.qe("complete"!==document.readyState?"warn":"error","Exception in queryCommandEnabled <$>:",r.toString())}return g};this.state=function(b,
d,f){var g=null;try{var l=c(b),p=l.Aa;if(p)for(b=0;b<p.length;b++){var h=p[b];if(h.state){a(h,f,l);if(!0===h.state.call(h,d)){g=!0;break}g=!1}}else v.warn("queryCommandState of unknown command:",b,d)}catch(m){v.qe("complete"!==document.readyState?"warn":"error","Exception in queryCommandState <$>:",m.toString()),Bb(m)}return g};this.value=function(b,d,f){var g=null;try{var l=c(b),p=l.Aa;if(p)for(b=0;b<p.length;b++){var h=p[b];if(h.value){a(h,f,l);var m=h.value.call(h,d);if(null!=m){if(!t(m))try{g=
JSON.stringify(m);break}catch(r){}g=m.toString();break}g=""}}else v.warn("queryCommandValue of unknown command:",b,d)}catch(r){v.qe("complete"!==document.readyState?"warn":"error","Exception in queryCommandValue <$>:",r.toString()),Bb(r)}return g}}function Mb(a){return!(!1===a||0===a||"0"===a||"false"===a.toString().toLocaleLowerCase())}
function Nb(a){if(mb(a))return a;if(t(a)&&0<a.length){if(0===a.indexOf("{"))return JSON.parse(a)||{};Ta('Please use a JSON formatted string in the form { "value": "'+a.substring(0,100)+'"}');return{value:a}}return{}}function Ob(a){var c="";try{var b=a;t(b)&&(b=JSON.parse(b)||{});if(ca(b))return b;if(mb(b))return[b]}catch(e){c=e}v.warn("Problems parsing value",a,c.toString());return null};var Pb=new function(){var a=this;a.name="message";var c;a.G=function(){c={}};a.A=function(a,e){var d=c[a];if(null!=d)for(var f=0;f<d.length;f++)(0,d[f][1])(e,a)};a.H=function(b,e){if(null!=c[b]){var d=e(b);a.A(b,d)}};a.subscribe=function(a,e,d,f){var g=c[a];null==g&&(g=[],c[a]=g);f&&(e=e.bind(f));a=d||0;for(d=0;d<g.length;d++)if(a<g[d][0]){g.splice(d,0,[a,e]);return}g.push([a,e])};a.N=function(b,c,d,f){function g(d){c.apply(f,arguments);a.unsubscribe(b,g)}a.subscribe(b,g,d)};a.C=function(){return null!=
c.beforeDelete};a.L=function(a){a=c[a];return null!=a?a.length:0};a.unsubscribe=function(a,e){var d=c[a];if(null!=d){for(var f=d.length-1;0<=f;f--)d[f][1]===e&&d.splice(f,1);0===d.length&&delete c[a]}};a.I=function(){c={}}};Pb.G({});var Rb={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function Sb(a){a.preventDefault()}function Tb(a){a.state=this.state;a.preventDefault=function(){a.srcEvent.preventDefault()};a.stopPropagation=function(){a.srcEvent.stopPropagation()};this.A(a);this.listener.call(this.target,a)}
function Ub(a,c){var b=Array.prototype.slice.call(a.targetTouches),e={};if(c&3&&1===b.length)return[b,b];var d=Array.prototype.slice.call(a.changedTouches);b.forEach(function(a){e[a.identifier]=!0});d.forEach(function(a){e[a.identifier]||(e[a.identifier]=!0,b.push(a))});return[b,d]}function Vb(a){var c=[];a.touches.forEach(function(a){c.push({clientX:Math.round(a.clientX),clientY:Math.round(a.clientY)})});return{timeStamp:Date.now(),touches:c,center:Wb(c),deltaX:a.deltaX,deltaY:a.deltaY}}
function Wb(a){var c=0,b=0,e=a.length;a.forEach(function(a){c+=a.clientX;b+=a.clientY});return{x:Math.round(c/e),y:Math.round(b/e)}}function Xb(a,c){var b=null==a.x?["clientX","clientY"]:["x","y"];return 180*Math.atan2(c[b[1]]-a[b[1]],c[b[0]]-a[b[0]])/Math.PI}function Yb(a,c){var b=null==a.x?["clientX","clientY"]:["x","y"],e=c[b[0]]-a[b[0]],b=c[b[1]]-a[b[1]];return Math.sqrt(e*e+b*b)}function Zb(a,c){return a===c?1:Math.abs(a)>=Math.abs(c)?0<a?2:4:0<c?8:16}
function $b(a,c,b){A(!!a,"Missing target to work with");A("function"==typeof c,"Listener must be a function");this.listener=c;this.target=a;this.tb={};this.state=1;this.M=!1;this.options=B(b||{},this.B,!1)}var ac=0;$b.prototype.B={};$b.prototype.$c=function(){return 1};$b.prototype.A=function(){};function bc(a,c){A(!!c,"Payload is missing, check proper flow when tryEmit is being used.");a.options.uf&&a.state&6&&!(a.state&8)?dc(a,!0):a.options.uf&&dc(a,!1);a.state&30&&Tb.call(a,c)}
function dc(a,c){a.M&&!c&&0>=--ac?document.body.removeEventListener("touchmove",Sb):!a.M&&c&&0<++ac&&document.body.addEventListener("touchmove",Sb);a.M=c}function gc(a,c,b){$b.call(this,a,c,b);this.H=this.C=0}ia(gc,$b);gc.prototype.B={type:"pan",Eb:1,threshold:10,uf:!0,direction:30};
gc.prototype.$c=function(a){var c=this.state&6,b;if((b=a.touches.length===this.options.Eb)&&!(b=this.state&2)&&(b=!(this.state&2))){b=a.direction;var e=a.distance;a.direction&this.options.direction||(this.options.direction&6?(e=a.deltaX,b=0===e?1:0>e?2:4):(e=a.deltaY,b=0===e?1:0>e?8:16),e=Math.abs(e));b=!!(e>this.options.threshold&&b&this.options.direction)}if(c&&(a.inputType&8||!b))return this.state|16;if(c||b)return a.inputType&4?this.state|8:this.state&2?this.state|4:(this.C=a.deltaX,this.H=a.deltaY,
2);this.H=this.C=0;return 32};gc.prototype.A=function(a){a.deltaX-=this.C;a.deltaY-=this.H;2===this.state&&(a.isInitial=!0)};function hc(a,c,b){$b.call(this,a,c,b)}ia(hc,$b);hc.prototype.B={type:"pinch",Eb:2,threshold:0,uf:!0};hc.prototype.$c=function(a){var c=this.state&6,b=a.touches.length===this.options.Eb&&(Math.abs(a.scale-1)>this.options.threshold||this.state&2);return c&&(a.inputType&8||!b)?this.state|16:c||b?a.inputType&4?this.state|8:this.state&2?this.state|4:2:32};
hc.prototype.A=function(a){this.state&8&&(a.isFinal=!0)};function ic(a,c,b){$b.call(this,a,c,b)}ia(ic,hc);ic.prototype.B={type:"rotate",Eb:2,threshold:0};function jc(a,c,b){$b.call(this,a,c,b)}ia(jc,$b);jc.prototype.B={type:"swipe",threshold:10,hi:.65,direction:30,Eb:1};
jc.prototype.$c=function(a){var c=this.options.direction,b=0;c&30?b=a.velocity:c&6?b=a.velocityX:c&24&&(b=a.velocityY);var e=this.state&6,c=a.touches.length===this.options.Eb&&a.inputType&4&&a.distance>this.options.threshold&&c&a.direction&&Math.abs(b)>this.options.hi;return e&&(a.inputType&8||!c)?this.state|16:e||c?a.inputType&4?this.state|8:this.state&2?this.state|4:2:32};function kc(a,c,b){$b.call(this,a,c,b);this.oc=null;this.Xa=void 0;this.pc=0}ia(kc,$b);
kc.prototype.B={type:"tap",Eb:1,yg:1,interval:300,time:250,threshold:5,offset:10,Yf:!1};
kc.prototype.$c=function(a){var c=a.touches.length===this.options.Eb&&a.distance<this.options.threshold&&a.deltaTime<this.options.time;clearTimeout(this.oc);if(c){var b=this;if(4!=a.inputType)return b.oc=setTimeout(function(){b.state=32;b.Xa=void 0;b.pc=0},b.options.interval),32;var c=!this.Xa||a.timeStamp-this.Xa.timeStamp<this.options.interval,e=!this.Xa||Yb(this.Xa.center,a.center)<this.options.offset;this.Xa=a;this.pc=c&&e?this.pc+1:1;if(this.pc===this.options.yg&&this.options.Yf)return 8;this.pc===
this.options.yg&&(this.oc=setTimeout(function(){b.state=8;bc(b,b.Xa)},this.options.interval))}return 32};kc.prototype.A=function(a){a.count=this.pc;this.pc=0;this.Xa=void 0};function lc(a,c,b){$b.call(this,a,c,b);this.oc=null;this.Xa=void 0}ia(lc,$b);lc.prototype.B={type:"press",Eb:1,time:450,threshold:5};
lc.prototype.$c=function(a){var c=a.touches.length===this.options.Eb&&a.distance<this.options.threshold;if(c&&a.inputType&1){var b=this;clearTimeout(this.oc);this.Xa=a;this.oc=setTimeout(function(){b.state=8;bc(b,b.Xa)},this.options.time)}else c&&a.inputType&2?this.Xa=a:(clearTimeout(this.oc),this.Xa=void 0);return 32};function E(a,c){return a&&a.classList?a.classList.contains(c):!!(a&&a.className&&(new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)","gi")).test(a.className))}function G(a,c){a&&(a.classList?a.classList.add(c):E(a,c)||(a.className=((a.className||" ")+" "+c).trim()))}function H(a,c){a&&(a.classList?a.classList.remove(c):E(a,c)&&(a.className=a.className.replace(new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)","gi")," ").trim()||""),0===a.className.length&&a.removeAttribute("class"))}
function mc(a,c,b){a&&(null!=b?b?G(a,c):H(a,c):a.classList?(a.classList.toggle(c),0===a.className.length&&a.removeAttribute("class")):E(a,c)?H(a,c):G(a,c))}function I(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}function nc(a){return J(a)?Ua(a.childNodes):[]}function oc(a,c){var b=pc(a);if(b.parentNode!==c){for(;b.parentNode!==c;)b=b.parentNode;return pc(b)===pc(a)}return 0===K(b)}function pc(a){return J(a)&&a.firstChild?pc(a.firstChild):a}
function qc(a){return J(a)&&a.lastChild?qc(a.lastChild):a}function rc(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function sc(a,c){var b=a.parentNode;b&&b.replaceChild(c,a);return c}function tc(a){if(a){for(;a.firstChild;)a.parentNode.insertBefore(a.removeChild(a.firstChild),a);I(a)}}function uc(a,c){for(;a.firstChild;)c.appendChild(a.firstChild)}var vc;function wc(a){vc?vc.lastIndex=0:vc=new RegExp("<(("+pa.join("|")+")[^\\s/>]*?)>(?![^]*?<\\/\\1>)","gi");return a.replace(vc,"<$1/>")}
function xc(a,c){var b=null;try{if(a&&0<a.length){var e=yc(c||document,"div");a=ib(a).replace(/&nbsp;/gi,"\u00a0");zc(e)&&(v.log("Before XHTML",a),a=wc(a),v.log("Processed XHTML",a));Bc(e,a);var d=e.ownerDocument.createRange();d.selectNodeContents(e);b=d.extractContents()}}catch(f){}return b}function Cc(a,c){for(var b=c.ownerDocument.createDocumentFragment();a.firstChild;)b.appendChild(a.firstChild);c.appendChild(b)}function Dc(a,c){rc(c);Cc(a,c)}
function Gc(a,c){uc(a,c);a.appendChild(c);return c}function Hc(a,c){c.parentNode.insertBefore(a,c.nextSibling)}function Ic(a,c){A(J(a),"<$>");c=c.toLowerCase();if(L(a)===c||!a.parentNode)return a;for(var b=a.ownerDocument.createElement(c),e=0;e<a.attributes.length;e++)b.setAttributeNS(a.attributes[e].namespaceURI,a.attributes[e].name,a.attributes[e].value);A(J(a),"<$>");A(J(b),"<$>");A(!b.hasChildNodes(),"new node has to be empty <$>");a.parentNode.insertBefore(b,a);uc(a,b);I(a);return b}
function yc(a,c,b,e){a instanceof Document||(a=a.ownerDocument);c=a.createElement(c?c.toString().toLowerCase():"div");if(null!=b)for(var d in b)if(t(d)){var f=b[d];t(f)?c.setAttribute(d,f):v.warn("Provide a string as attribute value",d,f)}if(null!=e)if(t(e))c.innerHTML=e;else if(ca(e))for(b=0;b<e.length;b++)(d=e[b])&&(t(d)?c.appendChild(a.createTextNode(d)):c.appendChild(d));else if(e instanceof Node)c.appendChild(e);else throw"Unsupported type for opt_inner";return c}
function Bc(a,c){a&&(A(J(a),"Expected a HTML element"),a.insertAdjacentHTML?(a.hasChildNodes()&&rc(a),a.insertAdjacentHTML("afterbegin",c)):a.innerHTML=c)}function Jc(a){return null!=a&&null!=a.nodeType?a.innerText:""}function M(a,c,b){return yc(document,a,c,b)}function Kc(){return M("div",{},[M("br")])}
function Lc(a,c){var b;if(a){if(a===c)return null;if(a.previousSibling)a=a.previousSibling;else return(b=a.parentNode)&&b!==c&&1==b.nodeType?b:null}else a=c||document.ownerDocument.documentElement;for(;b=a.lastChild;)a=b;return a}function Mc(a,c){if(!a){if(!c)return null;a=c}var b=a.firstChild;if(b)return b;for(;a&&a!==c;){if(b=a.nextSibling)return b;a=a.parentNode}return null}
function zc(a){return(a=(a?a.ownerDocument||a:document).documentElement)&&a.nodeName?a.nodeName!==a.nodeName.toUpperCase():!1}function Nc(a){return!(!a||3!==a.nodeType)}function J(a){return!(!a||!a.nodeType||1!==a.nodeType)}function Oc(a,c){return c&&a?!!(a.compareDocumentPosition(c)&8):!1}function Pc(a,c){return c&&a?!!(a.compareDocumentPosition(c)&16):!1}function Qc(a){return!(!a||!a.isEqualNode(document.documentElement)&&!Oc(a,document.documentElement))}
function Rc(a){try{if(a&&(J(a)||(a=a.parentNode),a))return window.getComputedStyle(a)}catch(c){}return null}function Sc(a,c){if(null==a)return null;null==c&&(c=!1);var b,e;c||null!=b?e=b=0:(b=document.body.scrollLeft,e=document.body.scrollTop);return{left:a.left+b,right:a.right+b,top:a.top+e,bottom:a.bottom+e,width:a.width,height:a.height}}
function N(a,c){if(null==a)return null;null==c&&(c=!1);if(null==a.nodeType||!Qc(a)||!a.getClientRects)return null;var b=a.getClientRects();0===b.length&&(b=a.ownerDocument.createRange(),b.selectNode(a),b=b.getClientRects());return 1<=b.length?Sc(b[0],c):null}function Tc(a){return(a=Rc(a))&&a.display?"block"===a.display.toLowerCase():!1}function Uc(a){return!(!a||(-1===ma.indexOf(L(a))||E(a,"en-container"))&&9!==a.nodeType&&11!==a.nodeType)}
function Vc(a,c){var b=a;this.B=function(){a:{var a,d;if(b){if(b.firstChild){b=b.firstChild;break a}if(b!=c){if(a=b.nextSibling){b=a;break a}for(d=b.parentNode;d&&d!=c;d=d.parentNode)if(a=d.nextSibling){b=a;break a}}}b=void 0}return b}}function Wc(a){return!(!a||Uc(a))}function Xc(a,c){return null!=a&&null!=c&&!!(a.compareDocumentPosition(c)&4)}function L(a){return a&&a.tagName?a.tagName.toLowerCase()||void 0||"":""}function Yc(a,c){return a&&a.getAttribute?a.getAttribute(c)||void 0||"":""}
function K(a){for(var c=0;a=a.previousSibling;)c++;return c}function O(a){if(!a)return 0;switch(a.nodeType){case 7:case 10:return 0;case 3:case 8:return a.length;default:return a.childNodes.length}}function P(a,c,b){b||(b=document.body);return a===b?null:Q(a,c)?a:(a=a&&a.parentNode)?P(a,c,b):null}function Zc(a,c){return P(a.parentNode,Uc,c)}function Q(a,c){return a&&c?c instanceof Function?c(a):J(a)&&t(c)?a.webkitMatchesSelector(c):!1:!1}function R(a,c){return c?L(a)===c:J(a)}
function $c(a){return"br"===L(a)}function dd(a,c){return!0===c?!!P(a,dd):J(a)?"true"===a.contentEditable:!1}function ed(a,c,b){J(a)&&(!0===b?a.contentEditable=c?"true":"false":(a.contentEditable=c?"true":"inherit",c||a.removeAttribute("contenteditable")))}var fd={};function gd(a){var c=fd[a];c?c.lastIndex=0:(c=new RegExp("(^|;)\\s*("+$a(a)+")\\s*\\:\\s*(.*?)($|;)+","gi"),gd[a]=c);return c}function hd(a){return a&&a.getAttribute?a.B?a.A:a.getAttribute("style"):""}
function jd(a){a&&a.getAttribute&&!a.B&&(a.B=!0,a.A=a.getAttribute?a.getAttribute("style"):"")}function kd(a){if(a&&a.B){var c=a.A;"undefined"!==typeof c&&a.getAttribute("style")!==c&&(null===c||0===c.trim().length?a.removeAttribute("style"):a.setAttribute("style",c));delete a.A;delete a.B}}function ld(a){a&&a.hasAttribute&&a.hasAttribute("style")&&(a.getAttribute("style").trim().length||a.removeAttribute("style"))}
function md(a,c){var b=hd(a);if(null==b)return null;b=gd(c).exec(b);return null===b?null:b[3].trim()}function nd(a,c){var b=hd(a);if(null==b)return"";b=b.replace(gd(c),"$1").trim();if(a.B)return a.A=b;0<b.length?a.setAttribute("style",b):a.removeAttribute("style");return b||""}function S(a,c,b){var e=nd(a,c);null!=b&&(e=e.trim(),e.length&&";"!==e[e.length-1]&&(e+=";"),e=e+c+":"+b+";",a.B?a.A=e:a.setAttribute("style",e))}
function od(a,c){var b=a&&a.getAttribute?a.getAttribute("en-app-data"):"";if(null==b)return null;b=gd(c).exec(b);return null===b?null:b[3].trim()}function pd(a,c){var b=a&&a.getAttribute?a.getAttribute("en-app-data"):"";if(null==b)return"";b=b.replace(gd(c),"$1").trim();0<b.length?a.setAttribute("en-app-data",b):a.removeAttribute("en-app-data");return b||""}function qd(a,c,b){var e=pd(a,c);null!=b&&(e=e.trim(),e.length&&";"!==e[e.length-1]&&(e+=";"),a.setAttribute("en-app-data",e+c+":"+b+";"))}
function rd(a,c){J(a)&&a.style?(a.style.display=c?"":"none",ld(a)):v.warn("Failed to set visibility on non HTML element",a)}function sd(){var a;a="span";A(t("-evernote-sentoj-emoticon")||!0);return a+'[style*="-evernote-sentoj-emoticon"]'}function td(a){a=T(sd(),a,!0);return a=a.filter(function(a){return"true"===md(a,"-evernote-sentoj-emoticon")})}function ud(a){for(var c=[];a&&a.parentNode;)c.unshift(a.parentNode),a=a.parentNode;return c}
function T(a,c,b){c||(c=document);try{return Ua(c.querySelectorAll(a),b)}catch(e){throw 0===e.toString().indexOf("Uncaught error in JS: SyntaxError: DOM Exception 12")&&v.error("Wrong syntax in selector:",a),e;}}function vd(a,c){return T(a,c,!0)}function wd(a,c,b){for(;a&&(a=Mc(a,b));)if(Q(a,c))return a;return null}function xd(a,c,b){for(;a&&(a=Lc(a,b));)if(Q(a,c))return a;return null}var yd=/^[\t\n\r ]+$/;function zd(a){yd.lastIndex=0;return Nc(a)&&(""===a.data||yd.test(a.data))}
function Ad(a,c){var b=M("div",{style:"position: absolute; width: 1px; height: 1px; top: -9999px; left: -9999px;"});b.appendChild(a);document.body.appendChild(b);c(a);I(a);I(b)}function Bd(a,c,b){b=b||document.body;var e;if(!Oc(a,b)){do if(J(a)&&a.hasAttribute("style")&&(e=a.style[c],null!=e))break;while((a=a.parentNode)&&b===a)}return e||""}
function Cd(a,c,b){b=b||document.body;c=c||0;a=a||0;if(0===c)b.scrollTop=a;else{var e=b.scrollTop,d=a-e,f=0,g=function(){f+=20;var a;a=f;a/=c/2;1>a?a=d/2*a*a+e:(a--,a=-d/2*(a*(a-2)-1)+e);b.scrollTop=a;f<c&&window.setTimeout(g,20)};g()}}function Dd(a,c){if(!J(a))return!1;var b=a.getBoundingClientRect();return Ed(b.top,b.bottom,c)}function Ed(a,c,b){var e=window.scrollY,d=e+window.innerHeight;null==b&&(b=55);a+=e;c+=e;return Math.max(0,Math.round((Math.min(d,c)-Math.max(e,a))/(c-a)*100))>=b}
var Fd=new Cb;function Gd(a,c){var b=Fd.get(a);b||(b={},Fd.set(a,b));c&&!b.id&&(b.id=zb().toString());return b}function Hd(a,c){var b=a.id||Gd(a,!0).id;return c+"@"+b}function Id(a){return null==a?a:0<a.children.length?a.children[a.children.length-1]:null}function Jd(){var a=document.querySelector("#en-tools");a||(a=M("div",{"class":"en-tools",id:"en-tools"}),document.body.appendChild(a));return a};function Kd(a,c,b,e){try{var d=document.createRange();null!=a&&(d.setStart(a||null,c||0),null!=b?d.setEnd(b||null,e||0):d.setEnd(a||null,c||0));return d}catch(f){}return null}function Ld(a,c){if(null!=a&&(!c||Md(a,c))){var b=window.getSelection();null!=b&&(b.setBaseAndExtent?b.setBaseAndExtent(a.startContainer,a.startOffset,a.endContainer,a.endOffset||0):(b.removeAllRanges(),b.addRange(a)))}}
function U(a){var c=window.getSelection();if(1>c.rangeCount)return null;c=c.getRangeAt(0);return a&&c&&!Md(c,a)?null:c?c.cloneRange():null}function Nd(a){var c=document.createRange();c.selectNode(a);Ld(c)}function Od(){window.getSelection().removeAllRanges()}function Md(a,c){return(a.startContainer===c||Oc(a.startContainer,c))&&(a.endContainer===c||Oc(a.endContainer,c))}function Pd(a,c,b){if(!a)return null;var e;return(e=P(Qd(a),c,b))?e:a.collapsed?null:P(Sd(a),c,b)}
function Qd(a){return a?Nc(a.startContainer)?a.startContainer:a.startContainer.childNodes[a.startOffset]||a.startContainer:null}function Sd(a){return a?Nc(a.endContainer)?a.endContainer:a.endContainer.childNodes[a.endOffset]||a.endContainer.lastChild||a.endContainer:null}function Td(a,c){return null==a||null==c?!1:a.startContainer===c.startContainer&&a.startOffset===c.startOffset&&a.endContainer===c.endContainer&&a.endOffset===c.endOffset?!0:!1}
function Ud(a){return a?{startContainer:a.startContainer,startOffset:a.startOffset,endContainer:a.endContainer,endOffset:a.endOffset,collapsed:a.collapsed}:null}function Vd(a){if(!a)return null;try{var c=Kd(a.startContainer,a.startOffset,a.endContainer,a.endOffset)}catch(b){c=null}return c}
function Wd(a,c){function b(a,b){var c=document.createNodeIterator(e,window.NodeFilter.SHOW_TEXT,null,!1),f;for(a=Math.max(0,b?a:a-1);0<=a&&(f=c.nextNode());)a-=f.length;return f?{bb:f,offset:a+f.length+(b?0:1)}:null}var e=c||a.root||document.body,d=a.hasOwnProperty("len")?a.len:a.end-a.start,f=a.start,d=a.hasOwnProperty("end")?a.end:f+d,g=b(f,!0),l=g;f!==d&&(l=b(d,!1));return g&&l?Kd(g.bb,g.offset,l.bb,l.offset):null}
function Xd(a,c){if(!a||a.collapsed)return[];for(var b=[],e=a.commonAncestorContainer,d=a.startContainer;d&&a.intersectsNode(d);d=Mc(d,e))c&&!Q(d,c)||b.push(d);return b}function ee(a){a=a.getClientRects();return 0<a.length?a[0]:null}
function fe(a){if(null==a)return null;var c=ee(a);if(null==c||a.collapsed){if(!Qc(a.startContainer))return null;var b=a.cloneRange();Nc(b.startContainer)&&(0<b.startOffset&&b.setStart(b.startContainer,b.startOffset-1),c=ee(b),!c&&b.startOffset<O(b.startContainer)-1&&(b=a.cloneRange(),b.setEnd(b.startContainer,b.startOffset+1),c=ee(b)));if(!c)for(a=Qd(a);a&&a!==document.body;){if(a.getClientRects&&(b=a.getClientRects(),0<b.length)){c=b[0];break}a=a.parentNode}if(!c)return null}return Sc(c)}
function ge(a){if(null!=a){var c=document.body.scrollTop,b=window.innerHeight,e;e=c+b;var d;if(d=(d=he.env)&&null!=d.editorInset?d.editorInset:{top:0,bottom:0,left:0,right:0})0!==d.top&&(c+=d.top),0!==d.bottom&&(e-=d.bottom);a=null==a.nodeType?fe(a):N(a);if(null!=a){var f=Math.min(24,b/12),g=f/2,l=null;a.bottom+g>e?l=Math.max(0,a.bottom-b+f):a.top-g<c&&(l=Math.max(0,a.top-f));null!=l&&(l!==d.top||0===d.top&&0===l)&&(document.body.scrollTop=l)}}}
function ie(a){if(!a)return null;a=a.getClientRects();if(null===a||0===a.length)return null;for(var c=null,b=[],e=document.body,d=0;d<a.length;d++){var f={},g=a[d];if(!(0===g.width||0===g.height||c&&g.left>=c.left&&g.top>=c.top&&g.right<=c.right&&g.bottom<=c.bottom))if(c=g,f.top=g.top+e.scrollTop-0,f.bottom=g.bottom+e.scrollTop-0,f.left=g.left+e.scrollLeft,f.right=g.right+e.scrollLeft,f.width=g.right-g.left,f.height=g.bottom-g.top,g=b.length-1,-1<g&&b[g].left<=f.right&&f.left<=b[g].right&&b[g].top<=
f.bottom&&f.top<=b[g].bottom){var l={};l.top=Math.max(b[g].top,f.top);l.bottom=Math.min(b[g].bottom,f.bottom);l.left=b[g].left;l.right=f.right;l.width=l.right-l.left;l.height=l.bottom-l.top;b[g]=l}else b.push(f)}return b}function je(a,c,b){if(c&&(c=P(a,c,b),null!==c))return c;for(;Nc(a);)a=a.parentNode;return a}
function ke(a,c,b){var e=Qd(a);a=Sd(a);e=je(e,c,b);a=je(a,c,b);if(e===a)return[e,a];c=ud(e);b=ud(a);if(c[0]!==b[0])return[e,a];for(var d=0;d<c.length&&d<b.length&&c[d]===b[d];d++);e=[e,a];d<c.length&&(e[0]=c[d]);d<b.length&&(e[1]=b[d]);return e}
Range.prototype.intersectsNode||(v.warn("Range.intersectsNode has been added by polyfill!"),Range.prototype.intersectsNode=function(a){var c=a.ownerDocument.createRange();try{c.selectNode(a)}catch(b){c.selectNodeContents(a)}return-1===this.compareBoundaryPoints(Range.END_TO_START,c)&&1===this.compareBoundaryPoints(Range.START_TO_END,c)});function le(a,c,b){b||(b=a);b=new Vc(a,b);do if(!c(a))return!1;while(a=b.B());return!0}function me(a){return!(!a||!a.nodeType||3===a.nodeType||-1==="img embed object input param hr".split(" ").indexOf(L(a))&&!E(a,"en-media")&&!E(a,"en-module"))}function ne(a){var c=0;return le(a,function(a){return!(Nc(a)&&!zd(a)||$c(a)&&1<++c||me(a))})}
function oe(a){var c=0;return le(a,function(a){var e=!(a&&a.nodeType&&3!==a.nodeType&&"li"===L(a)),d=!me(a);$c(a)&&(c+=1);var f=!(1<c);a=/^[ \t\n\r]*$/g.test(a.textContent||"");return e&&d&&f&&a})}function pe(a){return le(a.firstChild,function(a){return!(a&&!tb(a.textContent))&&!me(a)},a)};function W(a){a.preventDefault();a.stopPropagation();return!1}var qe={};function re(){var a;a="onmouseenter";if(null!=qe[a])return qe[a];var c=M({select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"}[a]||"div"),b=a in c;b||(c.setAttribute(a,"return;"),b="function"===typeof c[a]);return qe[a]=b};var se={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",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:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};
function te(a){var c={};a=String(a);var b="#"==a.charAt(0)?a:"#"+a;if(ue(b))return c.Nc=ve(b),c.type="hex",c;a:{var e=a.match(we);if(e){var b=Number(e[1]),d=Number(e[2]),e=Number(e[3]);if(0<=b&&255>=b&&0<=d&&255>=d&&0<=e&&255>=e){b=[b,d,e];break a}}b=[]}if(b.length){a=b[0];d=b[1];b=b[2];a=Number(a);d=Number(d);b=Number(b);if(isNaN(a)||0>a||255<a||isNaN(d)||0>d||255<d||isNaN(b)||0>b||255<b)throw Error('"('+a+","+d+","+b+'") is not a valid RGB color');c.Nc="#"+xe(a.toString(16))+xe(d.toString(16))+
xe(b.toString(16));c.type="rgb";return c}if(se&&(b=se[a.toLowerCase()]))return c.Nc=b,c.type="named",c;throw Error(a+" is not a valid color string");}var ye=/#(.)(.)(.)/;function ve(a){if(!ue(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(ye,"#$1$1$2$2$3$3"));return a.toLowerCase()}var ze=/^#(?:[0-9a-f]{3}){1,2}$/i;function ue(a){ze.lastIndex=0;return ze.test(a)}var we=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;
function xe(a){return 1==a.length?"0"+a:a}function Ae(a){if("currentcolor"===a.toLowerCase())return null;try{var c=te(a),b;if(c.Nc){var e=c.Nc,e=ve(e);b="rgb("+[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)].join(", ")+")"}else b=null;return b}catch(d){return null}}function Be(a){try{var c=te(a);if(c.Nc)return c.Nc}catch(b){}return null};function Ce(a,c,b){if("undefined"===typeof b||0===+b)return Math[a](c);c=+c;b=+b;if(isNaN(c)||"number"!==typeof b||0!==b%1)return NaN;c=c.toString().split("e");c=Math[a](+(c[0]+"e"+(c[1]?+c[1]-b:-b)));c=c.toString().split("e");return+(c[0]+"e"+(c[1]?+c[1]+b:b))}Math.sb||(Math.sb=function(a,c){return Ce("round",a,c||0)});Math.qh||(Math.qh=function(a,c){return Ce("floor",a,c||0)});Math.kh||(Math.kh=function(a,c){return Ce("ceil",a,c||0)});var De=/^(\-?\d*\.?\d*)(px|em|\%|pt)?$/,Ee=0,Fe=0;
function Ge(a){var c=null;if("number"===typeof a)c={uc:"px",value:a,gc:a.toString(),re:a||null};else{De.lastIndex=0;var b=De.exec(a);b&&(c={uc:b[2]||"px",value:parseFloat(b[1]),gc:b[1],re:a||null})}return c}
function He(a){a=a||document.body;a=Rc(a);Ee=Ge(a.fontSize).value;A(!!Ee,"Did not find base font size",Ee,a.fontSize);a=M("div",{style:"height: 100pt; left: -100%; position: absolute; top: -100%; width: 100pt; "});document.body.appendChild(a);Fe=a.offsetHeight/100;A(!!Fe,"Did not find pt ratio",Fe);I(a)}
function Ie(a,c,b){var e=a||null;if(t(a)){var d=Ge(a);d?(a=d.value,b=d.uc):a=null}c||(c="px");if(!a)return{uc:c,value:0,gc:"0",re:e,jd:b};b||(b="px");if(b===c)return a=Math.sb(a),{uc:c,value:a,gc:a+c,re:e,jd:b};"px"===b&&"px"===c||A(0<Ee,"en.unit.init needs to get called first!");"px"===b?"em"===c?a=Math.sb(a/Ee):"%"===c?a=Math.sb(100*a/Ee):"pt"===c&&(a=Math.sb(a/Fe)):"pt"===b?"em"===c?a=Math.sb(a*Fe/Ee):"%"===c?a=Math.sb(100*a*Fe/Ee):"px"===c&&(a=Math.sb(a*Fe)):"%"===b?"em"===c?a=Math.sb(a/100):
"pt"===c?a=Math.sb(a*Ee/(100*Fe)):"px"===c&&(a=Math.sb(a*Ee/100)):A(!1,"Not implemented yet",b,"=>",c);return{uc:c,value:a,gc:a+c,re:e,jd:b}};function Je(a,c){null==a&&(a=document.body);for(var b=a,e=c.length-1;0<=e&&null!=b;e--){var d=c[e];d>O(b)&&(d=O(b)-1);b=b.childNodes[d]}return b||null}function Ke(a,c){var b=[];null==c&&(c=document.body);for(;a&&a.parentNode&&a!==c;){for(var e=0,d=a.parentNode.childNodes,f=0;f<d.length;f++)if(d[f]===a){e=f;break}b.push(e);a=a.parentNode}return b}
function Le(a,c,b){for(var e=[];1==c.nodeType;){var d=c.childNodes[b];if(!d&&!c.lastChild)break;d?(c=d,b=0):(c=c.lastChild,b=O(c))}c=b={node:c,offset:b};if(3==c.node.nodeType)for(b=c.node.previousSibling;b&&3==b.nodeType;b=b.previousSibling)c.offset+=O(b);else b=c.node.previousSibling;d=c.node.parentNode;c.node=b?b.nextSibling:d.firstChild;b=c;for(c=b.node;c&&c.parentNode&&c!==a;){for(var f=d=0,g=c.parentNode.childNodes,l=0;l<g.length;l++){var p=g[l];3!==p.nodeType&&0<f&&(++d,f=0);if(p===c)break;
3===p.nodeType?f+=O(p):++d}e.push(d);c=c.parentNode}return{path:e,offset:b.offset}}function Me(a,c,b){null==a&&(a=document.body);var e="";c&&(b?(b=Le(a,c.startContainer,c.startOffset),a=Le(a,c.endContainer,c.endOffset),e={startPath:b.path,startOffset:b.offset,endPath:a.path,endOffset:a.offset,collapsed:c.collapsed}):e={startPath:Ke(c.startContainer,a),startOffset:c.startOffset,endPath:Ke(c.endContainer,a),endOffset:c.endOffset,collapsed:c.collapsed});return JSON.stringify(e)}
function Ne(a,c){null==a&&(a=document.body);if(!c)return null;var b=JSON.parse(c),e;if(b&&b instanceof Object)a:{var d=a;null==d&&(d=document.body);if(void 0===d||!b)throw"All arguments required";try{var f=Je(d,b.startPath),g=Je(d,b.endPath);if(!f||!g){e=null;break a}var l=Kd(f,b.startOffset,g,b.endOffset);b.collapsed&&l.collapse(!0);e=l;break a}catch(p){v.error("Exception <$>",p.toString())}e=null}else e=null;return e}
function Oe(a,c){null==a&&(a=document.body);var b=U(a);return b?Me(a,b,c):null}function Pe(a,c){null==a&&(a=document.body);Oe(a);if(c){var b=Ne(a,c);b&&Ld(b)}};function Qe(){var a=this;a.name="observer";var c=null,b={};a.df=function(a,c,f){var g=zb().toString();b[g]={name:g,vf:a,G:c,S:f||Ma,vc:new Cb}};a.A=function(){var a,d,f,g=Object.keys(b);for(a=0;a<g.length;a++){var l=b[g[a]],p=T(l.vf,c);for(d=0;d<p.length;d++){var h=p[d];l.vc.has(h)||(f=l.G(h),l.vc.set(h,f))}h=l.vc;for(d=h.za.length-1;0<=d;d--){var m=h.za[d];-1===p.indexOf(m)&&(f=h.Bb[d],l.S(m,f),f=h,m=d,f.za.splice(m,1),f.Bb.splice(m,1))}}};a.G=function(b){c=B(b,{root:null}).root||a.K("context").root;
a.D.A("execCommand",a.A.bind(a));a.D.listener(document,"input",a.A.bind(a));a.D.pa(c,"contentReady",a.A.bind(a),-1)};a.S=function(){c=null}};function Re(a){function c(a,b,c){this.Eg=a;this.ph=b;this.title=c||null}A(this instanceof Re,"Use `new` to instantiate this class");var b=[],e=[],d=a&&a.maxLength||0;this.cb=function(a,g,l){if(a)if(g){if(a=new c(a,g,l),e=[],a.Eg(),b.push(a),1<d)for(;b.length>d;)b.shift()}else throw"UndoRedo.do missing required parameter 'down'.";else throw"UndoRedo.do missing required parameter 'up'.";};this.register=function(a,g,l){if(a)if(g){if(a=new c(a,g,l),e=[],b.push(a),1<d)for(;b.length>d;)b.shift()}else throw"UndoRedo.do missing required parameter 'down'.";
else throw"UndoRedo.do missing required parameter 'up'.";};this.H=function(){return 0<b.length};this.C=function(){return 0<e.length};this.W=function(){return b&&0!==b.length?b[b.length-1].title:null};this.A=function(){return e&&0!==e.length?e[e.length-1].title:null};this.M=function(){var a=b.pop();return a?(a.ph(),e.push(a),!0):!1};this.B=function(){var a=e.pop();return a?(a.Eg(),b.push(a),!0):!1};this.clear=function(){b=[];e=[]}};function Se(){function a(a,b,c){c=c||M("div");c.setAttribute("data-en-overlay-id",a);c.setAttribute("data-en-layout-algorithm",b);md(c,"z-index")||S(c,"z-index","900");S(c,"position","absolute");l.appendChild(c);return c}function c(a,b){e.vb(b).forEach(function(a){e.detach(a)});null!=g[b]&&delete g[b];Fd.remove(a)}function b(){for(var a,b,r=Object.keys(f),e=0;e<r.length;e++){var g=f[r[e]],l=T(g.vf,d);for(a=0;a<l.length;a++){var p=l[a];g.vc.has(p)||(b={id:Gd(p,!0).id},g.vc.set(p,b),g.G(p,b))}var p=
[],z=g.vc;for(a=z.za.length-1;0<=a;a--){var F=z.za[a];if(-1===l.indexOf(F)){b=z.Bb[a];g.S(F,b);var C=z,w=a;C.za.splice(w,1);C.Bb.splice(w,1);p.push([F,b.id])}}for(a=p.length-1;0<=a;a--)c.apply(this,p[a])}}var e=this;e.name="layer";var d=null,f={},g={},l=null,p=!1;e.A={};e.A.cover=function(a,b){var c=N(a);b.style.top=c.top+"px";b.style.left=c.left+"px";b.style.width=c.width+"px";b.style.height=c.height+"px"};e.A.anchor=function(a,b){var c=N(a);b.style.top=c.top+"px";b.style.left=c.left+"px"};e.A.bottomRightCorner=
function(a,b){var c=N(a),f=document.documentElement.clientWidth-c.right;b.style.bottom=document.documentElement.clientHeight-c.bottom+"px";b.style.right=f+"px"};e.A.bottomLeftCorner=function(a,b){var c=N(a);b.style.bottom=document.documentElement.clientHeight-c.bottom+"px";b.style.left=c.left+"px"};e.A.bottomRightResizeHandle=function(a,b){var c=N(a),f=document.documentElement.clientWidth-c.right-4;b.style.bottom=document.documentElement.clientHeight-c.bottom-4+"px";b.style.right=f+"px"};e.A.bottomLeftResizeHandle=
function(a,b){var c=N(a),f=c.left-4;b.style.bottom=document.documentElement.clientHeight-c.bottom-4+"px";b.style.left=f+"px"};e.A.rightEdge=function(a,b){var c=Math.floor(N(b).width/2),f=N(a),c=document.documentElement.clientWidth-f.right-c,d=document.documentElement.clientHeight-f.bottom;b.style.top=f.top+"px";b.style.right=c+"px";b.style.bottom=d+"px"};e.A.leftEdge=function(a,b){var c=Math.floor(N(b).width/2),f=N(a),c=f.left-c,d=document.documentElement.clientHeight-f.bottom;b.style.top=f.top+"px";
b.style.left=c+"px";b.style.bottom=d+"px"};e.A.tableColumnEdge=function(a,b){e.A.rightEdge(a,b);var c=P(a,"table"),c=document.documentElement.clientHeight-N(c).bottom;b.style.bottom=c+"px"};e.df=function(a,b,c){var d=zb().toString();f[d]={name:d,vf:a,G:b,S:c||Ma,vc:new Cb}};e.eg=function(){return l};e.C=function(a){return a.getAttribute("data-en-layout-algorithm")};e.vb=function(a){var b="";if(null==a)b="[data-en-overlay-id]";else if("string"===typeof a)b='[data-en-overlay-id="'+a+'"]';else if(a instanceof
Element){a=Gd(a).id;if(null==a)return[];b='[data-en-overlay-id="'+a+'"]'}else return[];return T(b,l)};e.getParent=function(a){return(a=g[a])&&a.node||null};e.ag=function(a){if(a){var b=a.getAttribute("data-en-overlay-id");if(null!=b){var f=e.getParent(b);if(null==f)e.detach(a);else if(Qc(f)){if(b=e.C(a),null!=b&&"undefined"!==typeof e.A[b])e.A[b](f,a)}else c(f,b)}}};e.xb=function(a){!0===a&&(p=!0);p&&b();a=e.vb();for(var c=0;c<a.length;c++)e.ag(a[c])};e.yc=function(b,c){var f;c=c||"cover";A("undefined"!==
typeof e.A[c],"Invalid layout algorithm:",c);A(J(b),"Expected a node!");var d=Gd(b,!0).id;A(!!d&&t(d),"Expected an ID");d in g?++g[d].kb:g[d]={node:b,kb:1};f=a(d,c,f);e.A[c](b,f);return f};e.I=function(b,c,f){f=f||"cover";A("undefined"!==typeof e.A[f],"Invalid layout algorithm:",f);A(J(b),"Expected a node!");var d=Gd(b,!0).id;A(!!d&&t(d),"Expected an ID");d in g?++g[d].kb:g[d]={node:b,kb:1};for(var l=0;l<c.length;l++)c[l]=a(d,f,c[l]),e.A[f](b,c[l]);return c};e.H=function(a){l.appendChild(a);return a};
e.detach=function(a){var b=a.getAttribute("data-en-overlay-id"),c=g[b];c&&0>=--c.kb&&delete g[b];I(a);return b};e.$d=function(a,b,c,f,d){var g=!0;null==g&&(g=!1);var l=!1,p,F,C,w,D=M("div",{style:"position: fixed;top: 0px;left: 0px;right: 0px;bottom: 0px;z-index: 999;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;-o-user-select: none;user-select: none;"+(null==d?"":d)});e.D.listener(a,"mousedown",function(a){l=!0;p=a.pageX;F=a.pageY;C=a.pageX;w=a.pageY;!0===g&&e.eg().appendChild(D);
null!=b&&b()});e.D.listener(window,"mousemove",function(a){if(!1!==l){C=a.pageX;w=a.pageY;a=C-p;var b=w-F;null!=c&&c(a,b)}});e.D.listener(window,"mouseup",function(a){if(!1!==l){l=!1;C=a.pageX;w=a.pageY;a=C-p;var b=w-F;!0===g&&I(D);null!=f&&f(a,b)}})};e.G=function(a){d=B(a,{root:null}).root||e.K("context").root;l=Jd();A(J(d));A(J(l));e.D.A("windowResize",e.xb.bind(e,!1),-2E3);e.D.A("execCommand",e.xb.bind(e,!0),-2E3);e.D.listener(document,"input",e.xb.bind(e,!0));e.xb(!0)};e.S=function(){e.vb().forEach(function(a){e.detach(a)});
d=null}};function Te(a){return Q(a,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")?!0:!1};function Ue(){function a(a){c(a.target)}function c(a){nb(h.vb(a),function(a){E(a,"img-resizer-handle")&&h.detach(a)})}function b(a){e(a.target)}function e(a){if(Te(a))if(1!==y.length)T(".img-resizer-handle",h.eg()).forEach(function(a){a=h.getParent(a);c(a)});else{var b=!1;nb(h.vb(a),function(a){if(E(a,"img-resizer-handle"))return b=!0,ob});if(!0!==b){var f=m.bg(a),e=f===a.naturalWidth;if(!(142>=f)){var n=d(a),g="right"===d(a)?"bottomLeftResizeHandle":"bottomRightResizeHandle",l=h.yc(a,g);S(l,"z-index",
"901");G(l,"img-resizer-handle");G(l,g);var p;"bottomRightResizeHandle"===g?p="cursor: nwse-resize;":"bottomLeftResizeHandle"===g&&(p="cursor: nesw-resize;");var ra=function(){S(a,"height","auto");var b=N(a);nd(a,"width");a.setAttribute("width",b.width)},fa=N(a);h.$d(l,function(){null!=q&&v.warn("Multiple images being resized at once! <$>");q=a;ra()},function(b){var c,d=N(r).width;"right"===n?c=fa.width-b:c="center"===n?fa.width+2*b:fa.width+b;142>=c?a.setAttribute("width","142"):c>=d||c>=f?(a.removeAttribute("width"),
!1===e&&(m.gg(a),ra())):a.setAttribute("width",""+c);h.xb()},function(){q=null;fa=N(a);Ve(r,"setDirty",{qd:!0});Nd(a)},p)}}}}function d(a){a=(a=Rc(a))?a.textAlign:null;return"center"===a?"center":"right"===a?"right":"justify"===a?"full":"left"}function f(a){Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")&&(n=!1,Nd(a.target))}function g(a){Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")&&Nd(a.target)}function l(a){!1!==
!!a.getAttribute("data-en-img-selected")&&(a.removeAttribute("data-en-img-selected"),nb(h.vb(a),function(a){E(a,"img-selected-overlay")&&h.detach(a)}))}var p=this,h=null,m=null,r=null,n=!0;p.name="ui-img-resize";var q,y=[];p.G=function(){r=p.K("context").root;G(r,"en-ui-img-on");h=p.K("layer");m=p.K("img-dpi");p.D.pa(r,"imageSelected",b);p.D.pa(r,"imageUnselected",a);p.D.listener(r,"click",g);p.D.listener(r,"contextmenu",f);p.D.pa(r,"selectionChanged",function(){if(0!==r.getElementsByTagName("img").length){var a=
T("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)",r);y=[];if(0!==a.length){var b=window.getSelection();b.isCollapsed||nb(a,function(a){b.containsNode(a,!1)&&-1===y.indexOf(a)&&y.push(a)});!1===n?n=!0:nb(a,function(a){if(!b.isCollapsed&&b.containsNode(a,!1)){if(!a.getAttribute("data-en-img-selected")&&Te(a)){a.setAttribute("data-en-img-selected","true");var c=h.yc(a);G(c,"img-selected-overlay");var f=M("div",{"class":"img-selected-overlay-top-left-corner"}),d=M("div",
{"class":"img-selected-overlay-top-right-corner"}),m=M("div",{"class":"img-selected-overlay-bottom-left-corner"}),e=M("div",{"class":"img-selected-overlay-bottom-right-corner"}),n=M("div",{"class":"img-selected-overlay-right-edge"}),g=M("div",{"class":"img-selected-overlay-left-edge"});c.appendChild(f);c.appendChild(d);c.appendChild(m);c.appendChild(e);c.appendChild(n);c.appendChild(g)}Ve(r,"imageSelected",{target:a})}else q!==a&&(l(a),Ve(r,"imageUnselected",{target:a}))})}}})};p.S=function(){H(r,
"en-ui-img-on");T("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)",r).forEach(function(a){l(a);c(a)});m=h=r=null}};function We(a,c){var b=a.tagName?a.tagName:"x"+a.nodeType;c[b]||(c[b]=0);c[b]++;return b+c[b]}
function Xe(a,c,b,e,d,f){for(var g=[],l=[],p={},h={},m=0,r=c.length;m<r;m++){var n=c[d?c.length-m-1:m],q=e.childNodes[+(d?e.childNodes.length-b[m]-1:b[m])],y=n.id?n.id:We(n,h);if(!p[y]){var u=a[y];u?(u!==q&&(q=d?e.childNodes.length-u.dd-1:u.dd,g.push({action:"moveChildElement",element:u,baseIndex:f+">"+q,sourceIndex:f+">"+m}),b.splice(m,0,b.splice(q,1)[0])),n.isEqualNode(u)||l.push([n,u])):(n=n.cloneNode(!0),q=d?c.length-m-1:m,g.push({action:"insertChildElement",element:n,baseIndex:f+">"+q,sourceIndex:f+
">"+q}));p[y]=!0}}m=0;for(r=e.childNodes.length;m<r;m++)a=e.childNodes[m],p[a.Kf]||g.push({action:"removeChildElement",element:a,baseIndex:f+">"+a.dd,sourceIndex:null});return{compare:l,diff:g}}function Ye(a,c){return 0===a.baseIndex.indexOf(c.baseIndex)&&a.baseIndex!==c.baseIndex}
function Ze(a,c){if(!c||!a.childNodes||0===a.childNodes.length)return null;for(var b={},e=c.split(">"),d=!0,f="",g=1,l=e.length;g<l;g++){var p=parseInt(e[g],10);if(a.childNodes&&a.childNodes.length>p)a=a.childNodes[p];else{f=e.slice(0,g-1).join(">");d=!1;break}}b.lastParent=d?a.parentNode:a;b.lastParentIndex=d?c.slice(0,c.lastIndexOf(">")):f;b.node=d?a:null;b.found=d;return b}
function $e(a,c,b){var e=[];if(a.isEqualNode(c))return e;null==b&&(b="0");if(3===a.nodeType&&3===c.nodeType)return c.nodeValue!==a.nodeValue&&e.push({action:"replaceText",element:c,baseIndex:b,sourceIndex:b,_deleted:c.nodeValue,_inserted:a.nodeValue}),e;if(a.attributes&&c.attributes){for(var d=a.attributes,f,g,l=0,p=d.length;l<p;l++){f=d[l].nodeValue;g=d[l].nodeName;var h=c.getAttribute(g);h!==f&&(null===h?e.push({action:"setAttribute",name:g,element:c,baseIndex:b,sourceIndex:b,_inserted:f}):e.push({action:"setAttribute",
name:g,element:c,baseIndex:b,sourceIndex:b,_deleted:h,_inserted:f}))}d=c.attributes;l=0;for(p=d.length;l<p;l++)g=d[l].nodeName,null===a.getAttribute(g)&&e.push({action:"removeAttribute",name:g,baseIndex:b,sourceIndex:b,_deleted:c.getAttribute(g)})}d=[];if(a.childNodes&&c.childNodes){l=c.childNodes;p={};d={};g=[];for(var h=0,m=l.length;h<m;h++){f=l[h];var r=f.id?f.id:We(f,d);p[r]=f;f.dd=h;f.Kf=r;g.push(h)}p={map:p,indices:g};a=a.childNodes;l=p.map;d=p.indices;p=Xe(l,a,d.slice(0),c,!1,b);1<p.diff.length&&
(c=Xe(l,a,d.slice(0),c,!0,b),c.diff.length<p.diff.length&&(p=c));e=e.concat(p.diff);d=p.compare}if(0<d.length)for(l=0,p=d.length;l<p;l++)c=d[l][1],a=$e(d[l][0],c,b+">"+c.dd),0<a.length&&(e=e.concat(a)),delete c.dd,delete c.Kf;return e}
function af(a,c){if(a.sourceIndex===c.sourceIndex)return 0;if(!a.sourceIndex&&c.sourceIndex)return-1;if(a.sourceIndex&&!c.sourceIndex)return 1;for(var b=a.sourceIndex.split(">"),e=c.sourceIndex.split(">"),d=0;d<b.length&&d<e.length;){var f=parseInt(b[d],10),g=parseInt(e[d],10);if(f===g)d++;else return isNaN(f)||isNaN(g)?isNaN(f)?1:-1:f>g?1:-1}return 0}
function bf(a,c,b){for(var e=[],d=[],f=[],g=[],l=0,p=a.length;l<p;l++){var h=a[l],m=h.action,r=h.baseIndex,n=h.sourceIndex,q=h._baseReference,y=h._sourceReference;if(h._conflict)h._baseReference=Ze(c,r),n&&r!==n&&(h._sourceReference=Ze(c,n)),g.push(h);else{var u=q;if(null==u&&(u=Ze(c,r),null==u)){e.push(h);continue}q=u.node;u.found?null!==q&&("moveChildElement"===m||"insertChildElement"===m?(u=q,n!==r&&(r=y,null==r&&(r=Ze(c,n)),u=null!==r?r.node:null),"moveChildElement"===m?d.push([q.parentNode,q,
u,h]):b?(n=document.createElement("ins"),n.appendChild(h.element),d.push([q.parentNode,n,u,h])):d.push([q.parentNode,h.element,u,h])):"removeChildElement"===m?(b&&(m=document.createElement("del"),m.appendChild(q.cloneNode(!0)),d.push([q.parentNode,m,null,h,!0])),f.push([q.parentNode,q])):"replaceText"===m?b?(r=q.parentNode,m=document.createElement("del"),m.appendChild(document.createTextNode(h._deleted)),n=document.createElement("ins"),n.appendChild(document.createTextNode(h._inserted)),d.push([r,
n,q,h]),d.push([r,m,q,h]),q.nodeValue=""):q.nodeValue=h._inserted:"setAttribute"===m?q.setAttribute(h.name,h._inserted):"removeAttribute"===m&&q.removeAttribute(h.name)):"insertChildElement"===m?(q=u.lastParent,b?(n=document.createElement("ins"),n.appendChild(h.element),d.push([q,n,null,h])):d.push([q,h.element,null,h])):e.push(h)}}d.sort(function(a,b){return af(a[3],b[3])});a=0;for(c=d.length;a<c;a++)n=d[a],b=n[0],l=n[1],p=n[2],h=n[3],n=n[4],null===p&&!n&&(n=h.sourceIndex)&&(h=parseInt(n.substr(n.lastIndexOf(">")+
1,n.length),10),b.childNodes&&b.childNodes.length>h&&(p=b.childNodes[h])),b.insertBefore(l,p);for(a=0;a<f.length;a++)h=f[a],h[0].removeChild(h[1]);for(f=[];0<g.length;)h=g.pop(),d={},d[h._owner]=h,h._conflictedWith&&(n=h._conflictedWith)&&(a=g.indexOf(n),-1<a&&(g.splice(a,1),d[n._owner]=n),delete h._conflictedWith,delete n._conflictedWith),f.push(d);return{unapplied:e,conflicts:f}};function cf(){var a=this;a.name="debug-overlay";var c=a.element=null;a.A=function(b,e){a.element.textContent=b;S(a.element,"background-color",e);c=a.D.timeout(function(){a.element.textContent="D";nd(a.element,"background-color")},1E3,c)};a.G=function(){};a.S=function(){I(a.element)}};function df(a,c){c=c||{};c.version="1.0";window.evernoteClient&&window.evernoteClient.postNotification&&window.evernoteClient.postNotification(a,JSON.stringify(c))}function ef(a){df("setupDone",{module:a||"document"})}function ff(a,c){c=c||{};c.module=a||"";df("contentChanged",c)}function gf(a,c){var b=N(a,!0);df(c,{left:b.left,top:b.top,width:b.width,height:b.height})}function hf(a,c){c=c||{};c.module=a||"";df("focusChanged",c)}function jf(){df("contentLoaded",{module:"content"})}
function kf(a){df("titleBlur",{module:a||"title"})}function lf(a,c,b){b=b||{};b.href=a;b.module=c||"";df("openLink",b)}function mf(){df("contextVisible",{module:"context"})}function nf(a){df("contextExpanded",{module:"context",expanded:!!a})}function qf(a){console.log(JSON.stringify(a));df("analytics",a)};function rf(){function a(a){df(a.target.dataset.name,{src:m.src,module:f.name});a.stopPropagation()}function c(){p&&(f.D.remove(r),r=null,f.D.remove(n),n=null,g.detach(p),p.removeChild(h),m=p=null)}function b(a){var b=m;!0===y&&(q=!0,c(),null==a||"click"===a?b.click():b.dispatchEvent(new Event(a)))}function e(a){p&&(u=f.D.timeout(function(){var b;!(b=a.target!==m)&&(b=a.target===m)&&(b=m.getBoundingClientRect(),b=!(a.x>b.left&&a.x<b.right&&a.y>b.top&&a.y<b.bottom));b&&(q=!1,c())},100,u))}function d(a){Q(a.target,
"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")&&a.target!==m&&!a.target.getAttribute("data-en-img-selected")&&!q&&Te(a.target)&&(p&&c(),m=a=a.target,p=g.yc(a,"anchor"),S(p,"display","inline"),p.appendChild(h),n=f.D.listener(p,"click",b))}var f=this;f.name="ui-img-buttons";var g=null,l=null,p=null,h=null,m=null,r=null,n=null,q=!1,y=!0,u;f.G=function(b){function c(h,d){var m=b[h];null!=m&&m&&(m=M("div",{"class":"en-imagebar-"+h+" en-imagebar-button","data-name":h}),
f.D.listener(m,"click",a),d.appendChild(m))}l=f.K("context").root;g=f.K("layer");f.D.listener(l,"mouseover",d);f.D.listener(l,"mousemove",e);h=M("div",{"class":"en-imagebar"});c("annotate",h);c("preview",h);c("rotate",h);y=b.bubbleImageClicks};f.S=function(){c();h=g=l=null}};function sf(){A(this instanceof sf,"Use new to instantiate");var a=this;a.name="analytics";var c={bold:"bold",bulleted_list:"insertunorderedlist",change_font_size:"fontsize",underline:"underline",highlighter:"highlight",checkbox:"inserttodo",italic:"italic",change_font_color:"forecolor",horizontal_rule:"inserthorizontalrule",change_font_family:"fontname",numbered_list:"insertorderedlist",strikethrough:"strikethrough",table:"inserttable",center_align:"justifycenter",left_align:"justifyleft",subscript:"subscript",
justified_align:"justifyfull",right_align:"justifyright",superscript:"superscript"},b=lb(c);a.A=null;a.G=function(e){e=B(e,{labels:Object.keys(c)});a.A=new Db;e.labels.forEach(function(b){c[b]&&a.A.add(c[b])});a.D.A("execCommand",function(c){a.A.has(c.name)&&qf({category:"note",action:"note_editor_action",label:b[c.name]})})}};var he={},tf=null,uf=null,vf=[];function wf(a){jd(a);-1===vf.indexOf(a)&&vf.push(a)}function xf(){for(var a=0;a<vf.length;a++)kd(vf[a]);vf=[]}function yf(a){A(mb(a),"Expected to get an non empty object");he=a}function zf(){var a=he.env;return a&&null!=a.selectionColor?a.selectionColor:"rgb(167, 203, 245)"}function Lb(a,c){ea(c)?Pb.H(a,c):Pb.A(a,c)}function Ve(a,c,b){Lb(Hd(a,c),null!=b?b:{target:a})};var Af={tap:kc,press:lc,pan:gc,swipe:jc,rotate:ic,pinch:hc},Bf=["touchstart","touchmove","touchend","touchcancel"],Cf=1;
function Df(){function a(){++m;for(var a=p.Bb,b=a.length-1;0<=b;b--){var c=a[b];m===c.mh&&(c.Gb(),c.Jh&&e.remove(c.Ta))}}function c(a,b){try{1===a?tf.Cg(function(a){return a.Ta===b}):2===a?b[0].removeEventListener(b[1],b[2],b[3]):4===a?window.clearTimeout(b):10===a?(p.remove(b[0]),h&&0===p.za.length&&(window.clearInterval(h),h=null)):5===a?window.clearInterval(b):7===a?b():8===a?(dc(b[4],!1),Bf.forEach(function(a){b[0].removeEventListener(a,b[2],b[3])})):9===a?Pb.unsubscribe(b[0],b[1]):v.error("Unhandled binding cleanup step!",
a,b)}catch(c){Bb(c)}}function b(a,b){var c={mg:++Cf,type:a,value:b};return g[c.mg]=c}var e=this;A(this instanceof Df,"Use `new` to instantiate this class");var d=!1,f=null,g={};e.W=function(){A(!1,"Not public!");return Object.keys(g)};e.remove=function(a){null!=a&&(c(a.type,a.value),delete g[a.mg])};e.G=function(a){a=B(a,{name:null});f=a.name;p=new Cb;A(0===Object.keys(g).length,"Binding are in an undefined state before setup",f);A(!1===d,"You need to call cleanup first!",f);d=!0};e.S=function(){A(d,
"You need to call setup first!");d=!1;for(var a=Object.keys(g).sort(function(a,b){a=+a;b=+b;return a>b?1:a<b?-1:0}),b=a.length-1;0<=b;b--){var m=g[a[b]];c(m.type,m.value)}h&&(window.clearInterval(h),h=null);p=null;g={};f=l=null};var l=null;e.bd=function(a){l=a};e.B=function(a){A(d,"You need to call setup first!");a.Ta=zb().toString();l&&(a=qb(a,l,!0));tf.Oh(a);return b(1,a.Ta)};e.listener=function(a,c,h,f){A(null!=a,"target is required!");A(d,"You need to call setup first!");A(!f||mb(f),"option must be dictionary when used");
var m=!!f&&!0===f.ki,e=[a,c,h,m];if(Af[c.toLocaleLowerCase()]){c=c.toLocaleLowerCase();var g=new Af[c](a,h,f);e[2]=function(a){var b=Rb[a.type],c=Ub.call(g,a,b);if(c){a={inputType:b,srcEvent:a,touches:c[0],changedTouches:c[1],target:a.target,type:g.options.type};var c=a.touches.length,h=a.changedTouches.length;a.isInitial=!!(b&1&&0===c-h);a.isFinal=!!(b&12&&0===c-h);a.isInitial&&(g.tb={});g.tb.Rf||(g.tb.Rf=Vb(a));1<a.touches.length&&!g.tb.We?g.tb.We=Vb(a):1===a.touches.length&&(g.tb.We=void 0);var c=
g.tb.Rf,h=(b=g.tb.We)?b.center:c.center,f=a.center=Wb(a.touches);a.timeStamp=Date.now();a.deltaTime=a.timeStamp-c.timeStamp;a.angle=Xb(h,f);a.distance=Yb(h,f);var c=g.tb,h=a.center,f=c.Ih||{},d=c.Lh||{},m=c.Mh||{};if(1===a.inputType||4===m.inputType)d=c.Lh={x:m.deltaX||0,y:m.deltaY||0},f=c.Ih={x:h.x,y:h.y};a.deltaX=d.x+(h.x-f.x);a.deltaY=d.y+(h.y-f.y);a.offsetDirection=Zb(a.deltaX,a.deltaY);b?(c=b.touches,h=a.touches,c=Yb(h[0],h[1])/Yb(c[0],c[1])):c=1;a.scale=c;b?(b=b.touches,c=a.touches,b=Xb(c[1],
c[0])-Xb(b[1],b[0])):b=0;a.rotation=b;b=g.tb;m=b.Ch||a;c=a.timeStamp-m.timeStamp;8!=a.inputType&&(25<c||null==m.velocity)?(f=m.deltaX-a.deltaX,m=m.deltaY-a.deltaY,d={x:f/c||0,y:m/c||0},c=d.x,h=d.y,d=Math.abs(d.x)>Math.abs(d.y)?d.x:d.y,f=Zb(f,m),b.Ch=a):(d=m.velocity,c=m.velocityX,h=m.velocityY,f=m.direction);a.velocity=d;a.velocityX=c;a.velocityY=h;a.direction=f;g.state&56&&(g.state=1);g.state=g.$c(a);bc(g,a);g.tb.Mh=a}};e.push(g);f=b(8,e);Bf.forEach(function(b){a.addEventListener(b,e[2],m)})}else f=
b(2,e),a.addEventListener(c,h,m);return f};e.selection=function(a,b){function c(a,h){b.stopPropagation&&a.stopPropagation();!h&&0<a.touches.length||(e.remove(l),function(a){l=e.timeout(function(){f(!1);a&&b.Se()},10,l)}(!h&&d&&b.Se),d=!1,g=null)}function h(a){for(var b=0,c=0,f=a.length,d=0;d<f;d++)var m=a[d],b=b+m.clientX,c=c+m.clientY;return{x:Math.round(b/f),y:Math.round(c/f)}}function f(c){c?(G(a,"en-mobile-selected"),b.Ke&&G(a,b.Ke)):(H(a,"en-mobile-selected"),b.Ke&&H(a,b.Ke))}A(null==b||mb(b),
"en.bindingSelectionOpt is not the right object or undefined");var d=!1,m=!1,g=null,l;e.listener(a,"touchstart",function(a){m=b.enabled&&!b.enabled();m||(b.stopPropagation&&a.stopPropagation(),g=h(a.touches),d||(l=e.timeout(function(){d=!0;f(!0)},100,l)))});e.listener(a,"touchmove",function(a){if(!m){b.stopPropagation&&a.stopPropagation();var f;if(f=g){var d=h(a.touches);f=d.x-g.x;d=d.y-g.y;f=5<Math.sqrt(f*f+d*d)}f&&c(a,!0)}});e.listener(a,"touchend",c);e.listener(a,"touchcancel",c);e.listener(a,
"tap",function(a){m||(b.stopPropagation&&a.stopPropagation(),d||e.timeout(function(){f(!0);l=e.timeout(function(){f(!1);b.Se&&b.Se()},50,l)},0,l))},{Yf:!0})};e.A=function(a,c,h){Pb.subscribe(a,c,h);return b(9,[a,c])};e.pa=function(a,b,c,h){e.A(Hd(a,b),c,h)};e.timeout=function(a,c,h){A(d,"You need to call setup first!");h&&e.remove(h);var f=0,f=window.setTimeout(function(){a();for(var b=f,c=g.length-1;0<=c;c--)if(g[c][0]===b){g.splice(c,1);break}},c||0);return b(4,f)};var p=null,h=null,m=0;e.C=function(){m=
0};e.H=function(c,f){A(d,"You need to call setup first!");A(0<f,"Delay needs to be a number >0");var m=zb().toString(),g=b(10,m);p.set(m,{Gb:c,Jh:!1,mh:f,Ta:g,id:m});h||(e.C(),h=window.setInterval(a,1E3))};e.M=function(a){b(7,a)}};function Ef(a){var c=this;c.context=a||{};c.A=null;var b=[],e={};c.load=function(a){try{if(!a)return!1;a.sa=!1;A(!(0<=b.indexOf(a)),"Plugin has already been loaded:",a.name);A(!e[a.name],"There is another plugin with the same name!",a.name);b.push(a);a.name&&0<a.name.length&&(e[a.name]=a);a.D=new Df;return!0}catch(c){v.error("Exception in PluginManager.load <$>",c.toString()),Bb(c)}};c.aa=function(a){return e[a]||null};c.M=function(a){return a?b.filter(function(a){return a.sa}):b};c.Jc=function(a){if(t(a))return e[a]||
null;for(var c=b.length-1;0<=c;c--){var g=b[c];if(a(g))return g}return null};c.B=function(a){A(null!=e[a],"The plugin",a,"is required here!");return e[a]};c.W=function(a){c.C=a};c.G=function(a,f){try{return A(!!a,"Expected a plugin"),A(!a.sa,"Plugin is already set up:",a.name),0<=b.indexOf(a)||c.load(a),a.D.G({name:a.name||"?"+zb()}),a.ec=c,a.ea=function(){a.yb||(a.yb=new Ef(c.context),a.yb.A=a);return a.yb},a.Qb=c.Jc.bind(c),a.K=c.B.bind(c),c.C&&c.C(a),a.G&&a.G(f||{},c.context),a.sa=!0,a}catch(e){v.error("Exception in PluginManager.setup <$>",
e.toString()),Bb(e)}};c.I=function(a){for(var f=0;f<b.length;f++)c.G(b[f],a)};c.Y=function(a){for(var b=c.A;null!=b;){if(t(a)){if(b.name===a)return b}else if(a(b))return b;b=b.ec.A}return null};c.S=function(a){try{A(!!a,"Expected a plugin"),A(a.sa,"Plugin is not yet set up:",a.name),A(0<=b.indexOf(a),"Plugin has not been loaded before:",a.name),a.sa=!1,a.yb&&(a.yb.A=null,a.yb.H(),a.yb=null),a.D.S(),a.S&&a.S(),delete a.ea,delete a.Qb,delete a.K,a.ec=null}catch(c){v.error("Exception in PluginManager.cleanup <$>",
c.toString()),Bb(c)}};c.H=function(){for(var a=b.length-1;0<=a;a--){var f=b[a];!0===f.sa&&(c.S(f),c.D=null)}b=[];e={}}};function Ff(){var a=this;a.name="mutation-observer";a.G=function(c){function b(a){if(a)for(var b=0;b<a.length;b++){var c=a[b],c={type:c.type,target:c.target,addedNodes:Ua(c.addedNodes),removedNodes:Ua(c.removedNodes),oldValue:c.oldValue,nextSibling:c.nextSibling,attributeName:c.attributeName,value:"characterData"===c.type?c.target.data:c.target.getAttribute(c.attributeName)};c.target===e&&"class"===c.attributeName||d.push(c)}}var e=B(c,{element:null}).element;A(J(e),"Element!");var d,f=null;a.D.M(function(){f&&
a.A()});a.L=function(){A(null==f,"Observer already running");d=[];var a=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(a){var c=new (window.MutationObserverInit||window.WebKitMutationObserverInit||window.MozMutationObserverInit||Object);c.subtree=!0;c.childList=!0;c.attributes=!0;c.characterData=!0;c.attributeOldValue=!0;c.characterDataOldValue=!0;f=new a(b);null==f.takeRecords?f=null:f.observe(e,c)}};a.H=function(){return!!f};a.C=function(){A(null!=f,"Observer not running");
var a=f.takeRecords();b(a);return d};a.A=function(){a.C();f.disconnect();f=null;return d};a.N=function(a){if(a)for(var b=0;b<a.length;b++){var c=a[b];if("childList"===c.type){if(c.addedNodes.length)for(var h=0;h<c.addedNodes.length;h++)v.log("  ",b,"add node",L(c.addedNodes[h])||Va(c.addedNodes[h].textContent),c.addedNodes[h].outerHTML);if(c.removedNodes.length)for(h=0;h<c.removedNodes.length;h++)v.log("  ",b,"remove node",L(c.removedNodes[h])||Va(c.removedNodes[h].textContent),c.removedNodes[h].outerHTML)}else"attributes"===
c.type?null===c.oldValue?v.log("  ",b,"remove attribute",L(c.target),c.attributeName,c.target.outerHTML):v.log("  ",b,"set attribute",L(c.target),c.attributeName,c.target.outerHTML):"characterData"===c.type?v.log("  ",b,"change text",Va(c.oldValue),"to",Va(c.value)):v.error("!!! unknown mutation",c.type)}};a.I=function(a){for(var b=a.length-1;0<=b;b--){var c=a[b];if("childList"===c.type){if(c.addedNodes.length)for(var h=0;h<c.addedNodes.length;h++)c.target.removeChild(c.addedNodes[h]);if(c.removedNodes.length)for(h=
0;h<c.removedNodes.length;h++)c.target.insertBefore(c.removedNodes[h],c.nextSibling)}else"attributes"===c.type?null===c.oldValue?c.target.removeAttribute(c.attributeName):c.target.setAttribute(c.attributeName,c.oldValue):"characterData"===c.type?c.target.data=c.oldValue:v.error("!!! unknown mutation",c.type)}}}};function Gf(){A(this instanceof Gf,"Use `new` to instantiate this class");var a=this;a.name="undo";var c=/\s*(id|data\-en\-[a-z0-9\-]+)=".*?"/gi;a.G=function(b){function e(a){return function(){Dc(a.node.cloneNode(!0),l);try{Pe(l,a.selection)}catch(b){}g.ad&&g.ad(a.ed);h=a}}function d(a){!0!==a&&h||(h=f())}function f(){var b={node:l.cloneNode(!0),selection:Oe(l)};if(a.Qb){var c=a.Qb("crypt");c&&c.Gf(b.node)}g.Cb&&(b.ed=g.Cb());return b}var g=B(b,{element:null,hd:"Typing",Cb:null,ad:null},!0),l=g.element;
A(!!l&&J(l),'"element" option must be an HTMLElement');var p=new Re,h=null;a.A=function(){if(!h||!l)return!1;h.node.className=l.className;h.node.id=l.id;if(!l.isEqualNode(h.node)){var a=h.ef;null==a&&(a=h.node.innerHTML.replace(c,""),h.ef=a);var b=l.innerHTML,b=b.replace(c,"");if(a!==b)return!0}return g.Cb?g.Cb()!==h.ed:!1};a.flush=function(b){if(a.A()){Ve(l,"beforeGetContent");var c=f();p.register(e(c),e(h),b||g.hd);return h=c}d(!0);return h};var m=!1;a.D.listener(l,"mousedown",function(){m=!0});
this.D.pa(l,"selectionChanged",function(b){b.Ga&&(!0===m&&a.flush(),d());m=!1});a.cb=function(b,c){Ve(l,"beforeGetContent");var m=a.flush()||f();b();var d=f();p.register(e(d),e(m),c);h=d};a.clear=function(){p.clear();h=null;window.TEST&&d()};var r=a.ec.A;a.H=function(){return p.H()||a.A()};a.C=function(){return p.C()&&!a.A()};a.D.B({name:"undo",action:function(){a.flush();a.H()&&p.M()&&Ve(l,"setDirty");return!0},state:function(){return a.H()},value:function(){return a.A()?g.hd:p.W()},enabled:function(){return!(!(this.J&&
this.J.queryGroupName||r.hasFocus())||!a.H())}});a.D.B({name:"redo",action:function(){a.C()&&p.B()&&Ve(l,"setDirty");return!0},state:function(){return a.C()},value:function(){return p.A()},enabled:function(){return!(!(this.J&&this.J.queryGroupName||r.hasFocus())||!a.C())}})}};function Hf(){A(this instanceof Hf,"Use `new` to instantiate this class");var a=this;a.name="undo";var c=[],b=[];a.G=function(e){function d(a){return function(){m.I(a.pd);try{Pe(p,a.selection)}catch(b){}l.ad&&l.ad(a.ed)}}function f(a){return!0!==a&&h?!1:(h=g(),m.L(),!0)}function g(){var a={pd:[],selection:Oe(p)};l.Cb&&(a.ed=l.Cb());return a}var l=B(e,{element:null,hd:"Typing",Cb:null,ad:null},!0),p=l.element;A(!!p&&J(p),'"element" option must be an HTMLElement');var h=null,m=new Ff;a.ea().G(m,{element:p});
a.A=function(){return h&&p?0<m.C().length?!0:l.Cb?l.Cb()!==h.ed:!1:!1};a.flush=function(e){if(a.A()&&h){Ve(p,"beforeGetContent");h.pd=m.A();var r=d(h);e=e||l.hd;b=[];c.push({Gb:r,title:e});h=null}f()||(h=g());return h};var r=!1;a.D.listener(p,"mousedown",function(){r=!0});this.D.pa(p,"selectionChanged",function(b){b.Ga&&(1==r&&a.flush(),f());r=!1});a.cb=function(e,r){a.flush();h=g();e();h.pd=m.A();var n=d(h);b=[];c.push({Gb:n,title:r});f(!0)};a.clear=function(){m.H()&&(m.A(),h=null);c=[];b=[];window.TEST&&
f()};var n=a.ec.A;a.H=function(){return 0<c.length||a.A()};a.C=function(){return 0<b.length&&!a.A()};a.D.B({name:"undo",action:function(){a.flush();var e=c.pop();return e?(h=g(),e.Gb(),h.pd=m.A(),b.push({Gb:d(h),title:e.title}),f(!0),Ve(p,"setDirty"),!0):!1},state:function(){return a.H()},value:function(){return a.A()?l.hd:c&&0!==c.length?c[c.length-1].title:null},enabled:function(){return!(!(this.J&&this.J.queryGroupName||n.hasFocus())||!a.H())}});a.D.B({name:"redo",action:function(){var e=b.pop();
return e?(a.flush(),h=g(),e.Gb(),h.pd=m.A(),c.push({Gb:d(h),title:e.title}),f(!0),Ve(p,"setDirty"),!0):!1},state:function(){return a.C()},value:function(){return b&&0!==b.length?b[b.length-1].title:null},enabled:function(){return!(!(this.J&&this.J.queryGroupName||n.hasFocus())||!a.C())}})}};function If(){var a=this;a.name="textinput";var c=null;a.G=function(b){function e(b){f.B(b.type);var h={event:b,element:c,Ga:U(c),fc:p};Ve(c,"anyInput",h);p&&(r=null,l=!1,h.fc={bb:h.fc.bb,offset:h.fc.offset},g=!0,a.D.timeout(function(){h.Ga=U(c);h.Ga&&(h.Ga.collapsed||h.Ga.collapse(!1),Ve(c,"input",h));g=!1}),p=null)}function d(a){f.B(a.type,"*beforeInput*",h,l);if(!1===h&&!1===l){var b=U(c);p={bb:b.startContainer,offset:b.startOffset};Ve(c,"beforeInput",{event:a,Ga:b,fc:p,element:c});l=!0}return!0}
c=B(b,{element:null}).element;var f=new Ea,g=!1,l=!1,p=null,h=!1,m=null,r=null,n=null;a.Tg=function(){return h};a.Pg=function(){return h&&m?Vd(m):null};a.bh=function(a){h&&(m=Ud(a))};a.D.listener(c,"compositionstart",function(a){f.B(a.type,a);r=a.data;var b=d(a);Ve(c,"compositionStart",{event:a,element:c,data:r});h=!0;return b});a.D.listener(c,"compositionupdate",function(a){n=a.data;var b=U(c);m=b?Ud(b):null;Nc(m.startContainer)&&(m.endOffset=m.startOffset+n.length);Ve(c,"compositionUpdate",function(){f.B(a.type,
a,b,n);return{event:a,element:c,data:n,lh:r,Ga:b}})});a.D.listener(c,"compositionend",function(a){f.B(a.type,h,l);Ve(c,"compositionEnd",function(){return{event:a,element:c,data:a.data,lh:r}});h=!1;m=null});a.D.listener(c,"webkitBeforeTextInserted",d);a.D.listener(c,"beforeInput",d);a.D.listener(c,"textInput",function(a){d(a)});a.D.listener(c,"textinput",d);a.D.listener(c,"input",function(a){e(a)});a.D.pa(c,"selectionChanged",function(){f.B("selectionChanged",h);!1===h&&!0===g&&(p=null,l=!1)},1E3)}}
;function Jf(){function a(a){a=Nb(a);var d=!1,h=a.visible;null!=h&&(rd(e,!!h),d=!0);h=a.active;null!=h&&(G(e,h?"en-shared-on":"en-shared-off"),H(e,h?"en-shared-off":"en-shared-on"),d=!0);h=a.business;null!=h&&(rd(f,!!h),d=!0);var m=a.value;t(m)&&(g?(c(m),g=!1):b.D.timeout(function(){c(m)},1E3),d=!0);return d}function c(a){d.innerHTML=a;vd("a",d).forEach(function(a){var c=a.getAttribute("href");a.removeAttribute("href");G(a,"en-shared-link");a=Ic(a,"span");b.D.listener(a,"click",function(){var f=N(a);
lf(c,b.name,{left:f.left,top:f.top,width:f.width,height:f.height});return!1})})}var b=this;this.name="shared";A(this instanceof Jf,"Use `new` to instantiate this class");var e=null,d=null,f=null,g=!0;this.G=function(b){var c=document.querySelector(".en-note-container");d=M("div",{"class":"en-shared-message"});f=M("div",{"class":"en-shared-business",style:"display:none;"});e=M("div",{"class":"en-shared en-shared-off",id:"en-shared",style:"display:none;"},[f,d]);c.insertBefore(e,c.firstChild);a(b);
this.D.B({name:"shared",action:a,enabled:Na})};this.S=function(){f=d=null;I(e);e=null}};function Kf(){function a(a){if(!(null==a||t(a)&&""===a||ga(a)&&0===Object.keys(a).length)){var m=Nb(a);a=m.visible;var q=m.expanded,D=m.hideIndicatorLabelWhenExpanded,V=m.hideIndicatorLabelWhenCollapsed,y=m.chatButtonLabel||"Chat",u=m.shareButtonLabel||"Share",z=m.items,Ja=m.contextSectionLabel,db=m.firstLaunchInfo;null!=a&&rd(n,!!a);if(z&&!(0>=z.length)){rc(n);var k=M("div",{"class":"en-context-label"});k.textContent=Ja||"Context";n.appendChild(k);Ja=M("div",{"class":q?"en-context-hide-label":"en-context-show-label"});
n.appendChild(Ja);c(db);db=M("div",{"class":"en-context-card-holder"});n.appendChild(db);for(k=0;k<z.length;k++)db.appendChild(p(z[k],u,y));S(n,"max-height",139*r.maxRows+32+"px");q?f(Ja,D):g(Ja,V);d(Ja,D,V);b();h.D.timeout(b,250);l(!0);!0===a&&!0===q&&0<z.length&&h.D.timeout(function(){e(m)},1500)}}}function c(a){if(null!=a&&null!=a.headline&&null!=a.subHeadline&&null!=a.learnMoreLinkLabel&&null!=a.dismissButtonLabel){Ta("The FLE functionality has been merged into the context-info command. Please switch to that API.");
var b=a.headline,c=a.subHeadline,f=a.learnMoreLinkLabel;a=a.dismissButtonLabel;var m=M("div",{"class":"en-context-fle-container"});n.appendChild(m);var d=M("div",{"class":"en-context-fle-header"});d.textContent=b;m.appendChild(d);b=M("div",{"class":"en-context-fle-body"});m.appendChild(b);d=M("span",{"class":"en-context-fle-subheader"});d.textContent=c+" ";b.appendChild(d);c=M("span",{"class":"en-context-fle-learn-more"});c.textContent=f;b.appendChild(c);h.D.listener(c,"click",function(a){lf("learnMore",
h.name,{kind:"firstLaunch",sharing:!1});W(a)});f=M("div",{"class":"en-context-fle-dismiss-button"});f.textContent=a;m.appendChild(f);h.D.listener(f,"click",function(a){lf("dismiss",h.name,{kind:"firstLaunch",sharing:!1});I(m);a.stopPropagation()})}}function b(){var a;var b=document.querySelector(".en-context-card-holder");a=document.querySelectorAll(".en-context-item").length||0;var c=document.querySelector(".en-context-item");if(null==b||null==c)a=null;else{var b=Math.round(N(b).width),h=Rc(c),f=
Math.round(c.offsetWidth+(parseInt(h["margin-left"],10)+parseInt(h["margin-right"],10)));a={fd:b,Hh:a,ih:f,li:Math.round(c.offsetHeight+(parseInt(h["margin-top"],10)+parseInt(h["margin-bottom"],10))),jh:Math.floor(b/f)}}c=document.querySelector(".en-context-card-holder");null!=a&&null!=c&&(b=Math.min(a.Hh,a.jh),0>=b?S(c,"left","0px"):S(c,"left",(a.fd-a.ih*b)/2+"px"))}function e(a){if(!0!==u&&!1!==r.showPopup&&null==q&&null!=n&&null!=a&&null!=a.items&&0!==a.items.length){var b=a.items,c=a.toastNotificationHeaderLabel||
"FIX HEADER";a=a.toastNotificationFooterLabel||"FIX FOOTER";var f=kb(b[0].title||"Untitled"),m=M("div",{"class":"en-context-popup-header"});m.textContent=c;c="en-context-popup-body";null!=b[0].kind&&(c+=" "+b[0].kind);b=M("div",{"class":c});b.textContent=f;f=M("div",{"class":"en-context-popup-footer"});f.textContent=a;f.appendChild(M("div",{"class":"en-context-popup-down-arrow"}));q=M("div",{"class":"en-context-popup"},[M("div",{"class":"en-context-popup-wrapper"},[m,b,f])]);Hc(q,n);h.D.timeout(function(){G(q,
"en-context-popup-visible")},1);h.D.listener(q,"mousedown",function(){h.D.remove(y)});h.D.listener(q,"mouseup",function(){var a=N(n);Cd(a.top-15,240);H(q,"en-context-popup-visible");S(q,"pointer-events","none")});y=h.D.timeout(function(){H(q,"en-context-popup-visible");S(q,"pointer-events","none");h.D.timeout(function(){rd(q,!1)},250)},5500,y)}}function d(a,b,c){h.D.listener(a,"click",function(){a.textContent===b?(g(a,c),nf(!1)):a.textContent===c&&(f(a,b),nf(!0));l(!0)})}function f(a,b){var c=T(".en-context-card-holder",
n),h=T(".en-context-fle-container",n);1!==c.length?v.error("Couldnt find card holder?!"):(c=c[0],a.textContent=b,H(a,"en-context-show-label"),G(a,"en-context-hide-label"),rd(c,!0),null!=h&&1===h.length&&rd(h[0],!0))}function g(a,b){var c=T(".en-context-card-holder",n),h=T(".en-context-fle-container",n);1!==c.length?v.error("Couldnt find card holder?!"):(c=c[0],a.textContent=b,H(a,"en-context-hide-label"),G(a,"en-context-show-label"),rd(c,!1),null!=h&&1===h.length&&rd(h[0],!1))}function l(a){function b(){var a=
n.querySelector(".en-context-item");null!=a&&Dd(a,100)&&!1===u&&(u=!0,mf())}null==a&&(a=!1);a?b():z=h.D.timeout(b,100,z)}function p(a,b,c){var f=a.link||"#",d=a.kind||"undefined",e=document.createTextNode(kb(a.text||"")),r=a.thumbnail||"",g=""!==r,n=kb(a.title||"Untitled"),l=a.sourceName||"",k=a.sourceId||"",p=a.date||"",q=a.author||"";a=a.canShare;var y=M("div",{"class":g?"en-context-item-title":"en-context-item-title en-context-wide",href:f,name:d});y.textContent=n;n=M("span",{"class":"en-context-author"});
""!==q&&(n.textContent=q);var u=M("span",{"class":"en-context-separator"});u.textContent="|";var z=M("span",{"class":"note"===d?"en-context-note-date":"en-context-news-date"});""!==p&&(z.textContent=p);f=[];"news"===d?""!==p?(f.push(z),""!==q&&(f.push(u),f.push(n))):""!==q&&f.push(n):(""!==p&&f.push(z),f.push(e));e="en-context-item-body";g||(e+=" en-context-wide");"news"===d?e+=" en-context-item-body-one":"note"===d&&"evernote.business"===k?e+=" en-context-item-body-two":"people"===d&&(e+=" en-context-body-italics");
p=M("div",{"class":e},f);e=M("div",{"class":"en-context-graphic-clipper"});f="en-context-graphic";a&&(f+=" en-context-graphic-blur");r=M("img",{"class":f,alt:"graphic",src:r});f="en-context-graphic-hover";g||(f+=" en-context-graphic-hover-solid");b=M("div",{"class":f},[M("div",{"class":"en-context-workchat"}),M("div",{"class":"en-context-share-text"},["people"===d?c:b])]);g&&e.appendChild(r);a&&(e.appendChild(b),h.D.listener(e,"click",function(a){lf(y.getAttribute("href"),h.name,{kind:y.getAttribute("name"),
sharing:!0});a.stopPropagation()}));g=k;"dowjones.wsj"===g&&(g="wsj");"profile.linkedin"===g&&(g="linkedin");if("profile.evernote.business"===g||"evernote.business"===g)g="evernote-business";"profile.factiva"===g&&(g="factiva");"nikkei.bp.business"===g&&(g="nikkeibp");"nikkei.bp.itpro"===g&&(g="itpro");"nikkei.bp.kenplatz"===g&&(g="kenplatz");"nikkei.bp.tech"===g&&(g="techon");c="";if("profile.evernote.business"===k||"evernote.business"===k)c="en-context-source-text-blue";b=M("div",{"class":"en-context-source-img "+
g});c=M("div",{"class":"en-context-source-text "+c});c.textContent="dowjones.wsj"===k?"":"evernote.business"===k?q:l;l=M("div",{"class":"en-context-source"});-1!==m.indexOf(g)&&l.appendChild(b);l.appendChild(c);q=[y,p];q.push(e);("news"===d||"people"===d||"company"===d||"note"===d&&"evernote.business"===k)&&q.push(l);d=M("div",{"class":"en-context-item"},q);h.D.listener(d,"click",function(a){lf(y.getAttribute("href"),h.name,{kind:y.getAttribute("name"),sharing:!1});a.preventDefault()});return d}var h=
this;this.name="context";A(this instanceof Kf,"Use new for this");var m="factiva fastcompany inc lifehacker linkedin pandodaily techcrunch theverge evernote-business wsj forbes nikkei nikkeibp techon itpro kenplatz".split(" "),r,n=null,q=null,y,u=!1,z;this.G=function(c){var f=document.querySelector(".en-note-container");n=M("div",{"class":"en-context",id:"en-context",style:"display:none;"});null!=f?(Hc(n,f),h.D.listener(window,"scroll",l),h.D.listener(window,"resize",l),l(!0),h.D.listener(window,
"resize",b),r=B(c,{showPopup:!0,maxRows:9999},!1),this.D.B({name:"context",action:a,enabled:Na})):v.error("Couldnt find note container! Bailing.")};this.S=function(){I(n);I(q);y=0;n=null;u=!1}};function Rf(){function a(a){if(!(null==a||t(a)&&""===a||ga(a)&&0===Object.keys(a).length)){Ta("The FLE functionality has been merged into the context-info command. Please switch to that API.");var h=Nb(a),n=h.expanded;null==n&&(n=!1);var p=h.headline||"Get more Context with Premium",y=h.subHeadline||"Go Premium to view notes, articles, and people related to what you're working on.";a=h.goPremiumLabel||"Go Premium";var u=h.hideIndicatorLabelWhenExpanded||"Hide",h=h.hideIndicatorLabelWhenCollapsed||
"Show";rc(g);rd(g,!0);l=M("div",{"class":"en-context-upsell-body"});g.appendChild(l);var z=M("div",{"class":n?"en-context-upsell-hide-label":"en-context-upsell-show-label"});g.appendChild(z);n?b(z,u):e(z,h);c(z,u,h);n=M("div",{"class":"en-context-upsell-headline"});n.textContent=p;l.appendChild(n);p=M("div",{"class":"en-context-upsell-subheadline"});p.textContent=y;l.appendChild(p);y=M("div",{"class":"en-context-upsell-go-premium"});y.textContent=a;l.appendChild(y);f.D.listener(y,"click",function(a){lf("http://evernote.com",
"context",{kind:"upsell",sharing:!0});W(a)});d(!0)}}function c(a,c,h){f.D.listener(a,"click",function(){a.textContent===c?(e(a,h),nf(!1)):a.textContent===h&&(b(a,c),nf(!0));d(!0)})}function b(a,b){null!=l&&(a.textContent=b,H(a,"en-context-upsell-show-label"),G(a,"en-context-upsell-hide-label"),rd(l,!0))}function e(a,b){null!=l&&(a.textContent=b,H(a,"en-context-upsell-hide-label"),G(a,"en-context-upsell-show-label"),rd(l,!1))}function d(a){function b(){Dd(g,75)&&!1===p&&(p=!0,mf())}null==a&&(a=!1);
a?b():h=f.D.timeout(b,100,h)}var f=this;this.name="context-upsell";A(this instanceof Rf,'Use "new" to create the Context Upsell Plugin');var g=null,l=null,p=!1,h;this.G=function(b){var c=document.querySelector(".en-note-container");g=M("div",{"class":"en-context-upsell",id:"en-context-upsell",style:"display:none;"});null!=c?(Hc(g,c),f.D.listener(window,"scroll",d),f.D.listener(window,"resize",d),d(!0),a(b),this.D.B({name:"context-upsell",action:a,enabled:Na})):v.error("Couldnt find note container! Bailing.")};
this.S=function(){I(g);l=g=null;p=!1}};function Sf(){function a(a){if(!(null==a||t(a)&&""===a||ga(a)&&0===Object.keys(a).length)){var d=Nb(a),r=d.showLogo||!1,n=d.headline||"HEADLINE",l=d.infoSections||[];a=d.buttonLabel||"BUTTONLABEL";var p=d.hideOnButtonClick||!1;rc(f);rd(f,!0);d=M("div",{"class":"en-context-info-logo"});r&&f.appendChild(d);r=M("div",{"class":"en-context-info-headline"});r.textContent=n;f.appendChild(r);g=M("div",{id:"en-context-info-body"});f.appendChild(g);if(3===l.length){for(n=0;n<l.length;n++)g.appendChild(c(l[n])),
g.appendChild(document.createTextNode(" "));l=M("div",{"class":"en-context-info-stretcher"});g.appendChild(l)}l=M("div",{"class":"en-context-info-button"});l.textContent=a;f.appendChild(l);e.D.listener(l,"click",function(a){lf("http://evernote.com","context",{kind:"info",sharing:!0});p&&rd(f,!1);W(a)});b(!0)}}function c(a){null!=a&&t(a.type)&&t(a.title)&&t(a.text)||v.error("Incomplete section info for context-info!");for(var b=!1,c=0;c<d.length;c++)a.type===d[c]&&(b=!0);!1===b&&v.error("Invalid type given for context-info: ",
a.type);b=M("div",{"class":"en-context-info-section"});c=M("div",{"class":"en-context-info-section-image "+a.type});b.appendChild(c);c=M("div",{"class":"en-context-info-section-title"});c.textContent=a.title;b.appendChild(c);c=M("div",{"class":"en-context-info-section-text"});c.textContent=a.text;b.appendChild(c);return b}function b(a){function b(){Dd(f,75)&&!1===l&&(l=!0,mf())}null==a&&(a=!1);a?b():p=e.D.timeout(b,100,p)}var e=this;this.name="context-info";A(this instanceof Sf,'Use "new" to create the Context Info Plugin');
var d=["note","article","person"],f=null,g=null,l=!1,p;this.G=function(c){var d=document.querySelector(".en-note-container");f=M("div",{"class":"en-context-info",style:"display:none;"});null!=d?(Hc(f,d),e.D.listener(window,"scroll",b),e.D.listener(window,"resize",b),b(!0),a(c),this.D.B({name:"context-info",action:a,enabled:Na})):v.error("Couldnt find note container! Bailing.")};this.S=function(){I(f);g=f=null;l=!1}};function Tf(){function a(){ra&&(I(ra),ra=null)}function c(){a();if(V&&r&&0<r.length){ra=M("div");for(var b=0,c=r.length;b<c;b++)for(var h=r[b],f=0,d=h.length;f<d;f++){var e=h[f],e=yc(ra,"div",{"class":"en-find-result",style:"position:absolute;top:"+e.top+"px;left:"+e.left+"px;width:"+e.width+"px;height:"+e.height+"px"});q===b&&G(e,"en-find-result-active");ra.appendChild(e)}Jd().appendChild(ra)}}function b(){null!=u&&u.length&&(u.forEach(h.D.remove),u=[])}function e(f){b();u=[h.D.A("beforeWindowResize",
function(){a()}),h.D.A("windowResize",function(){f();c()}),h.D.A("selectionChange",function(){var c=U();c&&T(F).some(function(a){return c?Md(c,a):!1})&&(V=!1,b(),a())})];c()}function d(a){var c=B(Nb(a),{highlight:w,excludeMatches:C,limit:z,resourceMatches:null,noteSearchMatching:D,value:null});a=n;c.value&&(a=g(c.value,c.resourceMatches,c.noteSearchMatching,+c.limit),V="all"===c.highlight,b(),V&&e(function(){g(c.value,c.resourceMatches,c.noteSearchMatching,+c.limit)}));if(c.excludeMatches){var h=
{},f;for(f in a)"items"!==f&&(h[f]=a[f]);a=h}return JSON.stringify(a)}function f(a){a=Nb(a).value;if("next"===a)l(q+1);else if("prev"===a)l(q-1);else if("first"===a)l(0);else if("last"===a)l(-1);else if("clear"===a)Lb("findClear"),n=r=m=null,q=-1,y=null;else{a=parseInt(a,10);if(isNaN(a))return!1;l(a)}return!0}function g(a,b,c,f){q=-1;var d=f=f||z,e=!1,g=p(b);f-=g.length;if(t(a)&&0<(a=a.trim()).length&&0<f){var l=-1,k=-1,w=null,D=null;b=null;b=c?h.C(a):h.A(a);null!=b&&(w=b.rg,D=b.Wf,T(F).forEach(function(a){for(var b=
a.textContent,c,h=!1;(c=w.exec(b))&&0<c.length;){var d=D(c,w),m={string:b.slice(d.start,d.end),length:d.end-d.start,from:d.start,to:d.end};w.lastIndex=d.end;d=Wd(d,a);if(d.startContainer!==d.endContainer){var r=Zc(d.startContainer);if(Xd(d).some(function(a){return R(a,"img")||$c(a)||r!==Zc(a)}))continue}if(d=ie(d)){for(var n=0;n<d.length;n++){var p=d[n];p.top&&(p.string=m.string,p.length=m.length,p.from=m.from,p.to=m.to)}if(0>=f--){e=!0;break}m=d[0];y&&V&&y.from===m.from&&(0===m.string.indexOf(y.string)||
0===y.string.indexOf(m.string))&&(k=g.length);h||(n=document.body.scrollTop,Ed(m.top-n,m.bottom-n)&&(h=!0,l=g.length));g.push(d)}}}));r=g;V&&a===m||(m=a,q=0,-1<l&&(q=l),-1<k&&(q=k),y=0<g.length?g[q]:null)}return n=a={limit:d,hasMore:e,count:g.length,items:g,index:q}}function l(a){r&&0<r.length&&(a>=r.length?a-=r.length:0>a&&(a+=r.length),q=a=Math.max(0,Math.min(r.length-1,a)),y=r[a],n.index=q,c())}function p(a){if(null==a||0===a.length)return[];var b=[],c={};h.K("rte").yb.B("resource").rf().forEach(function(a){c[a.info.hash]=
a});a.forEach(function(a){var h=a.hash,f=c[h],d=a.reco,e=a.outline;if(f){var m=f.reference;if(d&&!0!==e&&!0!==f.nd||e&&!0===f.nd)v.error('Invalid "find" resourceMatch',a,'for "'+h+'" resource.');else if(!0!==f.nd&&!0===e)b.push([{reference:m,outline:!0}]);else if(!0===f.nd&&d){var g=parseInt(d.width,10),r=parseInt(d.height,10),e=d.items||[];if(0===e.length||isNaN(r)||isNaN(g))v.error('Invalid "find" resourceMatch',a,"reco data",d,'for "'+h+'" resource.');else{var n=[],l=N(f.dc());l.reference=m;e.forEach(function(a){var b=
JSON.parse(JSON.stringify(l));b.xn=a.x/g;b.yn=a.y/r;b.wn=a.w/g;b.hn=a.h/r;n.push(b)});b.push(n)}}}});return b}A(this instanceof Tf,"Use `new` to instantiate this class");var h=this;h.name="find";var m,r,n,q,y,u,z,F,C,w,D,V,Y={a:"a\u24d0\uff41\u1e9a\u00e0\u00e1\u00e2\u1ea7\u1ea5\u1eab\u1ea9\u00e3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\u00e4\u01df\u1ea3\u00e5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250",b:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253",c:"c\u24d2\uff43\u0107\u0109\u010b\u010d\u00e7\u1e09\u0188\u023c\ua73f\u2184",
d:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a",e:"e\u24d4\uff45\u00e8\u00e9\u00ea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\u00eb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd",f:"f\u24d5\uff46\u1e1f\u0192\ua77c",g:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f",h:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265",i:"i\u24d8\uff49\u00ec\u00ed\u00ee\u0129\u012b\u012d\u00ef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131",
j:"j\u24d9\uff4a\u0135\u01f0\u0249",k:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3",l:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747",m:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f",n:"n\u24dd\uff4e\u01f9\u0144\u00f1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5",o:"o\u24de\uff4f\u00f2\u00f3\u00f4\u1ed3\u1ed1\u1ed7\u1ed5\u00f5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\u00f6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\u00f8\u01ff\u0254\ua74b\ua74d\u0275",
p:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755",q:"q\u24e0\uff51\u024b\ua757\ua759",r:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783",s:"s\u24e2\uff53\u00df\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b",t:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787",u:"u\u24e4\uff55\u00f9\u00fa\u00fb\u0169\u1e79\u016b\u1e7b\u016d\u00fc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289",
v:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c",w:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73",x:"x\u24e7\uff58\u1e8b\u1e8d",y:"y\u24e8\uff59\u1ef3\u00fd\u0177\u1ef9\u0233\u1e8f\u00ff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff",z:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"};h.G=function(a){a=B(a,{limit:100,excludeMatches:!1,highlight:"none",selector:"#en-note",noteSearchMatching:!1});z=0<+a.limit?+a.limit:100;F=t(a.selector)?a.selector:"#en-note";
C=a.excludeMatches;w=a.highlight;D=a.noteSearchMatching;a={};for(var b in Y){var c=Y[b];a[b]="["+b+c+"]";for(var e=0;e<c.length;e++){var g=c[e];a[g]||(a[g]=a[b])}}Y=a;n=r=m=null;q=-1;y=null;u=[];h.D.B({name:"find",action:f,value:d,enabled:Na})};var ra,fa=/(?=[A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19])[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc]/,
Ja=/^(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc])/,
db=/(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc])$/,
k=/[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]/,
wa=/^(a|an|and|are|as|at|be|but|by|for|if|in|into|is|it|no|not|of|on|or|such|that|the|their|then|there|these|they|this|to|was|will|with)$/i;h.A=function(a){a=[a].map($a).join("|");for(var b=[],c=0;c<a.length;c++){var f=a[c],h=Y[f.toLowerCase()];h?b.push(h):b.push(f)}a=b.join("").replace(/\s/g,"\\s");return{rg:new RegExp(a,"gi"),Wf:function(a,b){return{start:a.index,end:b.lastIndex}}}};h.C=function(a){a=a.trim();var b=/\*$/.test(a);b&&(a=a.substring(0,a.length-1));if(0>=a.length||wa.test(a))return null;
for(var c=a,f=1,h=[],d=!1,e=!1,m=0;m<c.length;m++){var g=c[m];fa.test(g)?(e&&h.push("[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]*"),
h.push(g),d=!1,e=!0):(k.test(g)?(d||h.push("[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]+"),
d=!0):(e&&h.push("[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]*"),
(d=Y[g.toLowerCase()])?h.push(d):h.push(g),d=!1),e=!1)}c=h.join("");c=c.replace(/\s/g,"\\s");c="("+c+")";Ja.test(a)||(c="(^|(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc]))"+
c,f++);b||db.test(a)||(c+="(?:(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc])|$)");
return{rg:new RegExp(c,"gi"),Wf:function(a){for(var b=a.index,c=b,h=1;h<=f;h++)b=c,c=b+a[h].length;return{start:b,end:c}}}}};function Uf(){function a(a,b){A(!0===a.Fb,"Only commands supported due to optimizations");a.Fb=a.Fb||!0;a.shiftKey=!!a.shiftKey;a.which=a.charCode||a.key.charCodeAt(0);a.Gb=b;h.push(a)}function c(a){var b=m[a.keyCode];if(!b)return!0;Lb("editingKeyEventOccurred",a);return b(a)?W(a):!0}function b(a){a=g(a);return 2===a?Z.execCommand("deleteword"):4===a?Z.execCommand("deleteline"):Z.execCommand("delete")}function e(a){a=g(a);return 2===a?Z.execCommand("forwarddeleteword"):4===a?Z.execCommand("forwarddeleteline"):
Z.execCommand("forwarddelete")}function d(a){var b=!1;a=g(a);0===a?b=Z.execCommand("insertparagraph"):1===a?b=Z.execCommand("insertlinebreak"):2===a?b=Z.execCommand("inserttodo","toggle"):4!==a&&6!==a&&(b=!0);return b}function f(a){var b=!1;a=g(a);0===a?b=Z.execCommand("tab",""):1===a&&(b=Z.execCommand("tab","true"));return b}function g(a){return(a.shiftKey?1:0)+(a.altKey?2:0)+(a.metaKey?4:0)+(a.ctrlKey?8:0)}function l(a){if(a.ctrlKey||a.metaKey)for(var b=h.length-1;0<=b;b--){var c=h[b];if((null==
a.which?a.keyCode:a.which)===c.which&&a.shiftKey===c.shiftKey)return c.Gb.call(null),W(a)}return!0}var p=this;A(this instanceof Uf,"Use `new` to instantiate this class");p.name="keyboard";var h=[],m={};p.G=function(g){g=B(g,{shortcuts:!0,editing:!0,custom:null,root:null});var n=g.root||document.body;g.shortcuts&&(a({key:"z",Fb:!0},Z.execCommand.bind(Z,"undo")),a({key:"z",Fb:!0,shiftKey:!0},Z.execCommand.bind(Z,"redo")),a({key:"y",Fb:!0},Z.execCommand.bind(Z,"redo")),a({key:"b",Fb:!0},Z.execCommand.bind(Z,
"bold")),a({key:"i",Fb:!0},Z.execCommand.bind(Z,"italic")),a({key:"u",Fb:!0},Z.execCommand.bind(Z,"underline")));g.editing&&(m[9]=f,m[13]=d,m[46]=e,m[8]=b,p.D.listener(n,"keydown",c));if(g.custom){var q=g.custom;A(ca(g.custom),"Expected an Array for custom keyboard definitions");for(g=0;g<q.length;g++){var y=q[g],u=y.key,y=y.fn;A(t(u)&&ea(y),'Expected "key" and "fn"');a({key:u,Fb:!0,shiftKey:u.toUpperCase()===u},y)}}0<h.length&&p.D.listener(n,"keypress",l)};p.S=function(){h=[]}};function Vf(){var a=this;a.name="context";a.G=function(c){function b(){p=!1;var b=a.B();h&&b&&Td(b,h)||(g={},l={},h=b&&b.cloneRange?b.cloneRange():null)}var e=c.root;A(J(e),"We expect a valid root element",e);a.root=e;a.J=c.J||{};var d=c.Ga||U(a.root)||null,f=!1;a.Aa={};a.X=function(b){return a.Aa[b]||{}};var g={},l={},p=!1,h=null;a.eh=function(){var b;null==b&&(b=a.B());h=b};a.H=function(){return p};a.Td=function(a){b();return g[a]};a.Ig=function(a,c){b();g[a]=c;p=!0};a.Hf=function(a){b();delete g[a];
p=!(!Object.keys(g).length&&!Object.keys(l).length)};a.Ud=function(a){b();return l[a]};a.Jg=function(a,c){b();l[a]=c;p=!0};a.dh=function(a){b();delete l[a];p=!0};a.Ng=function(){a.vd("getActiveRangeStartContainerComputedStyle",function(){var b=a.B();return b&&b.startContainer?Rc(b.startContainer):null})};var m={};a.B=function(){return d};a.Zb=function(b){Td(d,b)||(d=b||null,f=!0,a.A())};a.ce=function(b,c){d.setStart(b,c);f=!0;a.A()};a.be=function(b,c){d.setEnd(b,c);f=!0;a.A()};a.Ha=function(){a.Zb(U(e)||
null);f=!1};a.Xg=function(){a.Ma()};a.Zg=function(){function b(a,c){for(var h=c,f=a,d=!0;d;)if(d=f.previousSibling&&Nc(f.previousSibling))h+=O(f.previousSibling),f=f.previousSibling;return h}var c=a.B(),h=b(c.startContainer,c.startOffset),f=b(c.endContainer,c.endOffset);c.startContainer.parentNode.normalize();c.startContainer!==c.endContainer&&c.endContainer.parentNode.normalize();a.ce(c.startContainer,h);a.be(c.endContainer,f)};a.Yg=function(b){if(Nc(b)){for(var c=O(b),h=b,f=!0;f;)if(f=h.previousSibling&&
Nc(h.previousSibling))c+=O(h.previousSibling),h=h.previousSibling;b.parentNode.normalize();a.M(h,c);a.Ma()}else a.M(b.parentNode,K(b)+1)};a.Ma=function(b,c){if(f||b){if(!0===c){var h=d,m=window.getSelection();null!=m&&(m.removeAllRanges(),null!=h&&m.addRange(h))}else Ld(d,e);a.Ha();a.A()}};a.de=function(b){d||(d=e.ownerDocument.createRange());d.selectNode(b);f=!0;a.A()};a.M=function(b,c,h,m){d||(d=e.ownerDocument.createRange());d.setStart(b,c);h?d.setEnd(h,m||0):d.setEnd(b,c);f=!0;a.A()};a.aa=function(b,
c,h){c&&-1===h&&(h=c.childNodes.length);var f=b.parentNode,e=K(b);A(!!d,"Global range expected");for(var m=[[d.startContainer,d.startOffset],[d.endContainer,d.endOffset]],g=m.length,l=0;l<g;l++){var r=m[l];r[0]===c&&r[1]>h&&r[1]++;r[0]!==f||r[1]!==e&&r[1]!==e+1||(c?(r[0]=c,r[1]+=h-e):r[1]>e&&0<r[1]&&--r[1]);r[0]===f&&r[1]>e+1&&r[1]--;!c&&Oc(r[0],b)&&(r[0]=b.parentNode,r[1]=K(b))}c?c.childNodes.length===h?c.appendChild(b):c.insertBefore(b,c.childNodes[+h]):I(b);a.M(m[0][0],m[0][1],m[1][0],m[1][1]);
a.A()};a.Ag=function(b,c,h){A(b!==c,"Do not move into itself");for(var f;f=b.firstChild;)a.aa(f,c,0>h?-1:h++)};a.insertBefore=function(b,c,h){a.aa(b,c,h?K(h):-1)};a.xc=function(b,c){a.aa(b,c,-1)};a.removeNode=function(b){a.aa(b)};a.Hg=function(b){for(;b.firstChild;)a.removeNode(b.firstChild);a.A()};a.Ka=function(b,c){if(b&&b.tagName.toLowerCase()===c.toLocaleLowerCase())return b;var h=b.parentNode;if(!h)return b;for(var f=M(c),d=0;d<b.attributes.length;d++)f.setAttributeNS(b.attributes[d].namespaceURI,
b.attributes[d].name,b.attributes[d].value);a.aa(f,h,K(b));a.Ag(b,f,0);a.removeNode(b);return f};a.hasFocus=function(){var a=U(e);if(a){if(Pd(a,"div.en-module",e))return!1;if((a=Qd(a))&&!0===!(!P(a,dd)&&!dd(document.body)))return!0}return!1};var r=!1;a.vg=function(a){r=!0===a;Lb("noteReadOnlyStateChanged",{readOnly:r})};a.Kb=function(){return r};a.A=function(){m={}};a.I=function(a,b){m[a]=b};a.C=function(a){return m[a]};a.vd=function(a,b){var c=m[a];null==c&&(c=b(a),m[a]=c);return c};a.dump=function(){var b;
if(b=a.B()){var c=Me(e,b);b=e.cloneNode(!0);if(c=Ne(b,c)){if(c.startContainer.nodeType==Node.TEXT_NODE||c.startContainer.nodeType==Node.COMMENT_NODE)c.collapsed?c.startContainer.insertData(c.startOffset,"[]"):c.startContainer.insertData(c.startOffset,"[");else{var h=c.collapsed?"{}":"{";c.startOffset!=c.startContainer.childNodes.length&&c.startContainer.childNodes[c.startOffset].nodeType==Node.TEXT_NODE?c.startContainer.childNodes[c.startOffset].insertData(0,h):0!=c.startOffset&&c.startContainer.childNodes[c.startOffset-
1].nodeType==Node.TEXT_NODE?c.startContainer.childNodes[c.startOffset-1].appendData(h):c.startContainer.insertBefore(document.createTextNode(h),c.startContainer.childNodes.length==c.startOffset?null:c.startContainer.childNodes[c.startOffset])}c.collapsed||(c.endContainer.nodeType==Node.TEXT_NODE||c.endContainer.nodeType==Node.COMMENT_NODE?c.endContainer.insertData(c.endOffset,"]"):c.endOffset!=c.endContainer.childNodes.length&&c.endContainer.childNodes[c.endOffset].nodeType==Node.TEXT_NODE?c.endContainer.childNodes[c.endOffset].insertData(0,
"}"):0!=c.endOffset&&c.endContainer.childNodes[c.endOffset-1].nodeType==Node.TEXT_NODE?c.endContainer.childNodes[c.endOffset-1].appendData("}"):c.endContainer.insertBefore(document.createTextNode("}"),c.endContainer.childNodes.length==c.endOffset?null:c.endContainer.childNodes[c.endOffset]))}b=b.innerHTML}else b=e.innerHTML;return b}};a.S=function(){a.root=null}};function Wf(){var a=this,c=this;c.name="block";c.G=function(){var b=c.K("context"),e=c.K("query"),d=c.K("format"),f=b.root;a.Rb=function(a){if((a=e.na(a))&&(e.O(a)||e.ib(a)))if(e.Gd(a)){var c=a.getElementsByTagName("object");if(0<c.length){var h=!1,c=c[c.length-1];wd(c.lastChild||c,function(a){return h=$c(a)||e.xa(a)},a);h||b.xc(M("br"),a)}}else b.Hg(a),e.kc(a)?b.xc(Kc(),a):b.xc(M("br"),a)};a.Ja=function(c){if(e.O(c))if(e.Vb(c).every(function(a){return!e.ia(c,a)||!e.qa(c,a)})){var f=L(c);"dd"===f||
"dt"===f?d.lb([c],function(a){return R(a,"dl")&&!a.attributes.length},function(){return M("dl")}):e.qa("p",e.Wb(c))&&e.Kc(c)&&("div"!==f&&(c=b.Ka(c,"div"),a.Ja(c)),Ua(c.childNodes).filter(e.Kc).forEach(function(b){var c=d.Ca([b]);a.ya([b]);d.wa(c)}))}else if(!e.qa(c,c.parentNode)){for(f=d.Ca([c]);!e.qa(c,c.parentNode);)a.ya([c]);d.wa(f)}};a.Yb=function(a){if(R(a,"li")&&e.O(a)&&e.O(a.parentNode)){for(var c=function(a){return Q(a,"ol,ul")},h=!1,f=null;Ua(a.childNodes).some(c);){var d=a.lastChild;c(d)||
!f&&zd(d)?(f=null,b.aa(d,a.parentNode,1+K(a)),h=!0):e.va(d)?b.removeNode(d):(f||(f=M("li"),a.parentNode.insertBefore(f,a.nextSibling)),b.aa(d,f,0),h=!0)}h&&e.Oa(a,0)&&b.removeNode(a)}};a.C=function(){if(!b.B()||0===f.getElementsByTagName("li").length)return null;var a=e.Ia(b.B()),a=e.gb(a,function(a){return e.O(a)&&!e.mc(a)&&(Q(a,"ol,ul")||Q(a.parentNode,"ol,ul")||e.qa(a,"li"))});return a.length?a:null};a.hb=function(){var b=a.C();if(!b)return"none";for(var c=[],h=!0,f=!1,d=[],g=b.length;g--;){var q=
b[g],y=!1,u=!1;if(J(q)){var z=e.Cc(q);null!==z&&(0>c.indexOf(z)&&c.push(z),y=!0);var F=e.Sg(q);F&&0<F.length&&(u=!0,null!==z&&(-1<F.indexOf(z)&&F.splice(F.indexOf(z),1),0<F.length&&(y=!1)))}q=q.parentNode;0>d.indexOf(q)&&(d.push(q),z=e.Cc(q),null!==z&&(0>c.indexOf(z)&&c.push(z),y=!0),R(q.parentNode,"li")&&(q=e.Cc(q.parentNode),null!==q&&(0>c.indexOf(q)&&c.push(q),y=!0)));h=h&&y;f=f||y||u;if(!h&&f)return"mixed"}return 0===c.length?"none":!h||1!==c.length&&1!==b.length?"mixed":c[0]};a.Rd=function(a){Uc(a)||
(a=Zc(a,f));if(!a||1!==a.nodeType)return"left";var b=Rc(a).textAlign.replace(/^-(moz|webkit)-/,"").replace(/^auto$/,"start");return"start"===b?"ltr"===e.He(a)?"left":"right":"end"===b?"ltr"===e.He(a)?"right":"left":-1!==["center","justify","left","right"].indexOf(b)?b:"left"};a.Mg=function(c){null==c&&(c={});var f="blockMerging"in c?Boolean(c.ji):!0,h="stripWrappers"in c?Boolean(c.Dd):!0,m="direction"in c?c.direction:"forward";if(b.B()){a.Ac(b.B().startContainer,b.B().startOffset,!1);a.Ac(b.B().endContainer,
b.B().endOffset,!1);c=e.ld(b.B().startContainer,b.B().startOffset);var g=c[0],n=c[1];c=e.kd(b.B().endContainer,b.B().endOffset);var q=c[0],y=c[1];if("after"!==e.Ec(q,y,g,n))b.B().collapse("forward"===m);else{3===g.nodeType&&0==n&&(n=K(g),g=g.parentNode);3===q.nodeType&&y==O(q)&&(y=1+K(q),q=q.parentNode);b.M(g,n,q,y);for(var u=b.B().startContainer;e.ia(u,u.parentNode)&&e.$(u);)u=u.parentNode;if(!e.W(u)&&!e.ib(u)||!e.qa("span",u)||Q(u,"td,th"))u=null;for(var z=b.B().endContainer;e.ia(z,z.parentNode)&&
e.$(z);)z=z.parentNode;if(!e.W(z)&&!e.ib(z)||!e.qa("span",z)||Q(z,"td,th"))z=null;c=d.sf();if(g==q&&e.O(g)&&3===g.nodeType)g.deleteData(n,y-n),a.Ac(g,n,!1),b.B().collapse("forward"===m);else{e.O(g)&&3===g.nodeType&&g.deleteData(n,O(g)-n);for(var F=e.gb(b.B(),function(a){return e.O(a)&&!Q(a,"thead,tbody,tfoot,tr,th,td")}),C=0;C<F.length;C++){var w=F[C];if(n=w.parentNode)if(n.removeChild(w),a.Rb(n),h||!Oc(g,n)&&n!=g)for(;e.O(n)&&e.$(n)&&0==O(n);)w=n.parentNode,w.removeChild(n),n=w}e.O(q)&&3===q.nodeType&&
q.deleteData(0,y);a.Ac(b.B().startContainer,b.B().startOffset,!1);a.Ac(b.B().endContainer,b.B().endOffset,!1);if(f&&u&&z&&e.ia(u,z)&&u!=z){1===u.children.length&&e.Je(u.firstChild)&&u.removeChild(u.firstChild);if(Oc(z,u)){for(f=z;f.parentNode!=u;)f=f.parentNode;b.M(u,K(f));if(!z.hasChildNodes()){for(;e.O(z)&&1==z.parentNode.childNodes.length&&z.parentNode!=u;)n=z,n.removeChild(z),z=n;e.O(z)&&!e.$(z)&&e.$(z.previousSibling)&&e.$(z.nextSibling)&&z.parentNode.insertBefore(M("br"),z.nextSibling);e.O(z)&&
z.parentNode.removeChild(z);d.Ob(c);return}if(!e.$(z.firstChild)){d.Ob(c);return}h=[];for(h.push(z.firstChild);!$c(h[h.length-1])&&e.$(h[h.length-1].nextSibling);)h.push(h[h.length-1].nextSibling);for(f=d.Ca(h);Oc(u,h[0])&&h[0].parentNode!=u;)a.ya(h);e.O(h[0].previousSibling)&&$c(h[0].previousSibling)&&h[0].parentNode.removeChild(h[0].previousSibling)}else if(Oc(u,z)){b.M(u,O(u));for(f=u;f.parentNode!=z;)f=f.parentNode;e.$(f.nextSibling)&&$c(u.lastChild)&&u.removeChild(u.lastChild);h=[];f.nextSibling&&
!e.W(f.nextSibling)&&h.push(f.nextSibling);h.length&&!$c(h[h.length-1])&&h[h.length-1].nextSibling&&!e.W(h[h.length-1].nextSibling)&&h.push(h[h.length-1].nextSibling);f=d.Ca(h);h.forEach(function(a){b.aa(a,u,-1)})}else{b.M(u,O(u));e.$(z.firstChild)&&$c(u.lastChild)&&u.removeChild(u.lastChild);for(f=d.Ca(Ua(z.childNodes));z.hasChildNodes();)b.aa(z.firstChild,u,-1);for(;!(z.hasChildNodes()||0<=["td"].indexOf(z.tagName.toLowerCase()));)n=z.parentNode,n.removeChild(z),z=n}for(var D=u;e.Qg(D).some(function(a){return e.ia(D,
a)&&(R(a,"ol")&&R(a.nextSibling,"ol")||R(a,"ul")&&R(a.nextSibling,"ul"))&&e.ia(D,a.nextSibling)});){for(;!(R(D,"ol")&&R(D.nextSibling,"ol")&&e.ia(D,D.nextSibling)||R(D,"ul")&&R(D.nextSibling,"ul")&&e.ia(D,D.nextSibling));)D=D.parentNode;for(;D.nextSibling.hasChildNodes();)b.aa(D.nextSibling.firstChild,D,-1);D.parentNode.removeChild(D.nextSibling)}d.wa(f);a.Rb(u);d.ff(u)}else b.B().collapse("forward"===m)}d.Ob(c)}}};a.ya=function(a){var c=a[0].parentNode;if(e.O(c)&&c.parentNode){-1!==a.indexOf(c.firstChild)&&
d.hf(c);var f=-1!==a.indexOf(c.firstChild)&&e.xd(c),m=-1!==a.indexOf(c.lastChild)&&e.Rc(c);if(-1===a.indexOf(c.firstChild)&&-1!==a.indexOf(c.lastChild)){for(var g=a.length-1;0<=g;g--)b.aa(a[g],c.parentNode,1+K(c));m&&!e.Rc(a[a.length-1])&&a[a.length-1].parentNode.insertBefore(M("br"),a[a.length-1].nextSibling);d.ff(c)}else{if(-1===a.indexOf(c.firstChild))for(g=c.cloneNode(!1),c.removeAttribute("id"),c.parentNode.insertBefore(g,c);a[0].previousSibling;)b.aa(c.firstChild,g,g.childNodes.length);for(g=
0;g<a.length;g++)b.aa(a[g],c.parentNode,K(c));f&&!e.xd(a[0])&&a[0].parentNode.insertBefore(M("br"),a[0]);e.$(a[a.length-1])&&!$c(a[a.length-1])&&$c(c.firstChild)&&!e.$(c)&&c.removeChild(c.firstChild);e.Oa(c,0)?(a=a[a.length-1],I(c),m&&!e.Rc(a)&&a.parentNode.insertBefore(M("br"),a.nextSibling)):d.hf(c)}}};a.Nd=function(c){e.Gd(c)?a.ya(Ua(c.childNodes)):b.removeNode(c)};a.A=function(a,b,c){if(0==a)return"";if(1==a&&!b&&!c)return" ";if(1==a)return"\u00a0";var f="",d;for(d=b?"\u00a0 ":" \u00a0";3<a;)f+=
d,a-=2;return 3==a?f+(b||c?b&&!c?"\u00a0\u00a0 ":!b&&c?" \u00a0\u00a0":b&&c?"\u00a0 \u00a0":"impossible":" \u00a0 "):f+(b||c?b&&!c?"\u00a0 ":!b&&c?" \u00a0":b&&c?"\u00a0\u00a0":"impossible":"\u00a0 ")};a.Ac=function(b,c,f){null==f&&(f=!0);if(e.O(b)||e.ib(b)){for(;;)if(0<=c-1&&e.ia(b,b.childNodes[c-1]))b=b.childNodes[c-1],c=O(b);else if(0==c&&!e.xd(b)&&e.ia(b,b.parentNode))c=K(b),b=b.parentNode;else if(3===b.nodeType&&-1==["pre","pre-f.wrap"].indexOf(Rc(b.parentNode).whiteSpace)&&0!=c&&/[ \xa0]/.test(b.data[c-
1]))c--;else break;for(var d=b,g=c,n=0,q=0==c&&e.xd(b);;)if(g<d.childNodes.length&&e.ia(d,d.childNodes[g]))d=d.childNodes[g],g=0;else if(g==O(d)&&!e.Rc(d)&&e.ia(d,d.parentNode))g=1+K(d),d=d.parentNode;else if(3===d.nodeType&&-1==["pre","pre-f.wrap"].indexOf(Rc(d.parentNode).whiteSpace)&&g!=O(d)&&/[ \xa0]/.test(d.data[g]))f&&q&&" "==d.data[g]?d.deleteData(g,1):(q=" "==d.data[g],g++,n++);else break;f&&b===d&&Nc(b)&&c===g&&(q=(q=b.textContent.match(/^\s+/))?q[0]:"",q=q.length,q>=c&&(b.deleteData(0,q),
c=g=0));if(f)for(;"before"==e.Ec(b,c,d,g);)if(0<=g-1&&g-1<d.childNodes.length&&e.ia(d,d.childNodes[g-1]))d=d.childNodes[g-1],g=O(d);else if(0==g&&e.ia(d,d.parentNode))g=K(d),d=d.parentNode;else if(3===d.nodeType&&-1==["pre","pre-f.wrap"].indexOf(Rc(d.parentNode).whiteSpace)&&g==O(d)&&" "==d.data[d.data.length-1]&&e.Rc(d))g--,n--,d.deleteData(g,1);else break;for(f=a.A(n,0==c&&e.xd(b),g==O(d)&&e.Rc(d));"before"==e.Ec(b,c,d,g);)c<b.childNodes.length?(b=b.childNodes[c],c=0):3!=b.nodeType||c==O(b)?(c=
1+K(b),b=b.parentNode):(n=f[0],f=f.slice(1),n!=b.data[c]&&(b.insertData(c,n),b.deleteData(c+1,1)),c++)}};a.Ie=function(a){S(a,"margin-left",e.Ad(a)+40+"px")};a.Id=function(){return b.vd("isSelectionAtList",function(){return!(!b.B()||!P(b.B().startContainer,"ul,ol",d.wc()))})};a.tg=function(){return b.vd("isSelectionAtTable",function(){return!(!b.B()||!P(b.B().startContainer,"table",d.wc()))})};a.Xd=function(){return a.tg()||a.Id()};var g=".en-crypt-revealed",g=g+",.en-crypto-revealed";a.jb=function(){return b.vd("isSelectionAtCryptUnveiled",
function(){var a=b.B();return!!(Pd(a,g,f)||0<Xd(a,g).length)})};a.H=function(){return b.vd("isSelectionAtModule",function(){return!!Pd(b.B(),"div.en-module",f)})}}};function Xf(){var a=this,c=this;c.name="query";c.G=function(){var b=c.K("context").root;a.nextNode=function(b){return b.hasChildNodes()?b.firstChild:a.Ra(b)};a.previousNode=function(a){if(a.previousSibling){for(a=a.previousSibling;a.hasChildNodes();)a=a.lastChild;return a}return a.parentNode&&1===a.parentNode.nodeType?a.parentNode:null};a.Ra=function(a){for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null};a.Vb=function(a){for(var b=[];a.parentNode;)b.unshift(a.parentNode),a=a.parentNode;
return b};a.Qg=function(b){return a.Vb(b).concat(b)};a.yd=function(b){for(var c=[],d=a.Ra(b);(b=a.nextNode(b))&&b!=d;)c.push(b);return c};a.He=function(b){return"ltr"==b.dir?"ltr":"rtl"==b.dir?"rtl":R(b.parentNode)?a.He(b.parentNode):"ltr"};a.Ec=function(b,c,d,e){if(b==d){if(c==e)return"equal";if(c<e)return"before";if(c>e)return"after"}if(d.compareDocumentPosition(b)&4){e=a.Ec(d,e,b,c);if("before"==e)return"after";if("after"==e)return"before"}if(d.compareDocumentPosition(b)&8){for(;d.parentNode!=
b;)d=d.parentNode;if(K(d)<c)return"after"}return"before"};a.H=function(a){for(;null!=a.parentNode;)a=a.parentNode;return a};a.Wd=function(b,c){var d=a.Ec(b,0,c.startContainer,c.startOffset),e=a.Ec(b,O(b),c.endContainer,c.endOffset);return a.H(b)==a.H(c.startContainer)&&"after"==d&&"before"==e};a.gb=function(b,c){"undefined"==typeof c&&(c=function(){return!0});var d=b.startContainer;d.hasChildNodes()&&b.startOffset<d.childNodes.length?d=d.childNodes[b.startOffset]:d=b.startOffset==O(d)?a.Ra(d):a.nextNode(d);
var e=b.endContainer;e.hasChildNodes()&&b.endOffset<e.childNodes.length?e=e.childNodes[b.endOffset]:e=a.Ra(e);for(var h=[];Xc(d,e);)a.Wd(d,b)&&c(d)?(h.push(d),d=a.Ra(d)):d=a.nextNode(d);return h};a.ic=function(b,c){"undefined"==typeof c&&(c=function(){return!0});var d=b.startContainer;d.hasChildNodes()&&b.startOffset<d.childNodes.length?d=d.childNodes[b.startOffset]:d=b.startOffset==O(d)?a.Ra(d):a.nextNode(d);var e=b.endContainer;e.hasChildNodes()&&b.endOffset<e.childNodes.length?e=e.childNodes[b.endOffset]:
e=a.Ra(e);for(var h=[];Xc(d,e);)a.Wd(d,b)&&c(d)&&h.push(d),d=a.nextNode(d);return h};a.Kc=function(a){return Q(a,za)};a.W=function(a){return!(!a||a!==b&&(!Uc(a)||E(a,"en-container")))};a.$=function(b){return!(!b||a.W(b))};a.Oa=function(b,c){var d=0;null==c&&(c=1);var e=a.yd(b);0===e.length&&(e=[b]);for(var h=e.length-1;0<=h;h--){var m=e[h];if(Nc(m)&&!zd(m)||$c(m)&&++d>=c+1||me(m))return!1}return!0};a.O=function(b){return!(!b||!a.Z(b)||1!==b.nodeType&&1!==b.parentNode.nodeType)};a.kg=function(b){for(var c=
0;c<b.childNodes.length;c++)if(a.O(b.childNodes[c])||a.kg(b.childNodes[c]))return!0;return!1};a.Gc=function(b){if(!$c(b))return!1;var c=a.Wb(b),d=a.na(b),e=!1,h=!1;wd(b,function(b){if(a.W(b)||d!==a.na(b))return!0;if($c(b))return h=!0;e=e||a.C(b);return!1},c);return!e&&!h};a.C=function(a){return 3===a.nodeType&&!zd(a)||me(a)};a.lc=function(b){if(!$c(b))return!1;for(var c=b,d=a.Wb(b);(c=c.parentNode)&&!(1<c.childNodes.length||c===d);){if("li"===L(c))return!1;if(a.W(c))break}var c=b,e=a.na(b),h=!1,m=
!1;xd(c,function(b){if(a.W(b)||e!==a.na(b))return!0;if($c(b))return m=!0;h=h||a.C(b);return!1},d);var r=!1,n=!1;wd(c,function(b){if(a.W(b)||e!==a.na(b))return!0;if($c(b))return n=!0;r=r||a.C(b);return!1},d);return n||r||m||h?n||r?!1:h&&!r?!0:m?!1:!0:"li"===L(e)};a.Me=function(b){if(!zd(b))return!1;if(""===b.data)return!0;var c=b.parentNode;if(!c)return!0;for(;!a.W(c)&&c.parentNode;)c=c.parentNode;for(var d=b;d!=c;){d=a.previousNode(d);if(a.W(d)||$c(d))return!0;if(3==d.nodeType&&!zd(d)||me(d))break}d=
b;for(b=a.Ra(c);d!=b;){d=a.nextNode(d);if(a.W(d)||$c(d))return!0;if(d&&3==d.nodeType&&!zd(d)||me(d))break}return!1};a.zg=function(b){if(!b)return!1;if(a.W(b)||3===b.nodeType&&!a.Me(b)||me(b))return!0;for(var c=0;c<b.childNodes.length;c++)if(a.zg(b.childNodes[c]))return!0;return!1};a.xa=function(b){if(!b)return!1;if(a.W(b)||me(b)||3===b.nodeType&&!a.Me(b)||$c(b)&&!a.lc(b))return!0;for(var c=0;c<b.childNodes.length;c++)if(a.xa(b.childNodes[c]))return!0;return!1};a.Gd=function(b){return nc(b).some(function(b){return a.xa(b)})};
a.va=function(b){return!!b&&!a.xa(b)};a.Je=function(b){if(a.Gc(b)&&!a.lc(b))return!0;if(!a.$(b)||1!=b.nodeType)return!1;for(var c=!1,d=0;d<b.childNodes.length;d++){if(!a.va(b.childNodes[d])&&!a.Je(b.childNodes[d]))return!1;a.Je(b.childNodes[d])&&(c=!0)}return c};a.V=function(a){return-1!==na.indexOf(L(a))};var e="body caption col colgroup frame frameset head html tbody td tfoot th thead tr".split(" "),d=[[["a"],["a"]],[["dd","dt"],["dd","dt"]],["h1 h2 h3 h4 h5 h6".split(" "),"h1 h2 h3 h4 h5 h6".split(" ")],
[["li"],["li"]],[["nobr"],["nobr"]],[na,ma],[["td","th"],"caption col colgroup tbody td tfoot th thead tr".split(" ")]];a.qa=function(b,c){if((-1!==ua.indexOf(c)||-1!==ua.indexOf(L(c)))&&"object"===typeof b&&3===b.nodeType&&!/^[ \t\n\f\r]*$/.test(b.data)||!(-1===va.indexOf(c)&&-1===va.indexOf(L(c))||"object"===typeof b&&3===b.nodeType)||"object"===typeof b&&(9===b.nodeType||11===b.nodeType||10===b.nodeType))return!1;R(b)&&(b=L(b));if(!t(b))return!0;if(R(c)){for(var l=c;l;){if("a"===b&&R(l,"a")||-1!==
ma.indexOf(b)&&a.V(l)||/^h[1-6]$/.test(b)&&R(l)&&/^h[1-6]$/.test(L(l)))return!1;l=l.parentNode}c=L(c)}if("object"===typeof c&&(1===c.nodeType||11===c.nodeType))return!0;if(!t(c))return!1;switch(c){case "colgroup":return"col"===b;case "table":return-1!=="caption col colgroup tbody td tfoot th thead tr".split(" ").indexOf(b);case "tbody":case "thead":case "tfoot":return-1!==["td","th","tr"].indexOf(b);case "tr":return-1!==["td","th"].indexOf(b);case "dl":return-1!==["dt","dd"].indexOf(b);case "dir":case "ol":case "ul":return-1!==
["dir","li","ol","ul"].indexOf(b);case "hgroup":return/^h[1-6]$/.test(b)}if(-1!==e.indexOf(b)||-1!==["dd","dt"].indexOf(b)&&"dl"!==c||"li"===b&&"ol"!==c&&"ul"!==c)return!1;for(l=0;l<d.length;l++)if(-1!==d[l][0].indexOf(c)&&-1!==d[l][1].indexOf(b))return!1;return!0};a.Qa=function(b){return a.O(b)&&a.xa(b)&&(3===b.nodeType||me(b)||$c(b))};a.mc=function(a){if(!R(a))return!1;var b=L(a);return"blockquote"===b?!0:"div"!==b?!1:"0px"!==Rc(a)["margin-left"]?!0:!1};a.Kd=function(b){if(!a.mc(b))return!1;for(var c=
0;c<b.attributes.length;c++)if(-1===["style","dir"].indexOf(b.attributes[c].name))return!1;for(c=0;c<b.style.length;c++)if(!/^(-[a-z]+-)?(margin|border|padding)/.test(b.style[c]))return!1;return!0};a.ba=function(a){return Q(a,"address,div,h1,h2,h3,h4,h5,h6,listing,p,pre,xmp")};a.Ne=function(b){return a.ba(b)||Q(b,"li,dt,dd")};a.na=function(b){for(;b&&!a.W(b);)b=b.parentNode;return b};a.L=function(b,c){var d=!1;b?0===c?d=a.W(b)||a.wb(b)||!b.parentNode:0<=c-1&&c-1<b.childNodes.length&&(d=a.xa(b.childNodes[c-
1])&&a.W(b.childNodes[c-1])||$c(b.childNodes[c-1])):d=!0;return d};a.I=function(b,c){var d=!1;b?c===O(b)?d=!b.parentNode||a.W(b)||a.wb(b):c<b.childNodes.length&&(d=a.xa(b.childNodes[c])&&a.W(b.childNodes[c])):d=!0;return d};a.A=function(b,c){return a.L(b,c)||a.I(b,c)};a.Ia=function(b){var c=b.startContainer,d=b.startOffset,e=b.endContainer;b=b.endOffset;var h=a.Vb(c).concat(c).filter(function(a){return R(a,"li")}).slice(-1);h.length&&(d=K(h[0]),c=h[0].parentNode);if(!a.L(c,d)){do 0<=d-1&&(me(c.childNodes[d-
1])||a.wb(c.childNodes[d-1]))?d--:0<=d-1&&J(c.childNodes[d-1])&&c.childNodes[d-1].hasChildNodes()?(c=c.childNodes[d-1],d=O(c)):0==d?(d=K(c),c=c.parentNode):d--,Nc(c)&&(d=K(c),c=c.parentNode);while(!a.A(c,d))}for(;0==d&&c.parentNode&&a.O(c)&&!a.wb(c);)d=K(c),c=c.parentNode;h=a.Vb(e).concat(e).filter(function(a){return R(a,"li")}).slice(-1);h.length&&(b=1+K(h[0]),e=h[0].parentNode);if(!a.I(e,b)){do{if(b<O(e)&&(me(e.childNodes[b])||a.wb(e.childNodes[b])))b++;else if(b<O(e)&&J(e)&&e.hasChildNodes())e=
e.childNodes[b],b=0;else if(b>=O(e)){if(a.wb(e))break;b=1+K(e);e=e.parentNode}else b++;Nc(e)&&(b=1+K(e),e=e.parentNode)}while(!a.A(e,b))}for(;b==O(e)&&e.parentNode&&a.O(e)&&!a.wb(e);)b=1+K(e),e=e.parentNode;return Kd(c,d,e,b)};a.xd=function(b){for(var c=0;!a.A(b,c);){if(0<=c-1&&c-1<b.childNodes.length&&a.xa(b.childNodes[c-1]))return!1;0!=c&&b.hasChildNodes()?(b=b.childNodes[c-1],c=O(b)):(c=K(b),b=b.parentNode)}return!0};a.Rc=function(b){for(var c=O(b);!a.A(b,c);){if(c<b.childNodes.length&&a.xa(b.childNodes[c]))return!1;
c!=O(b)&&b.hasChildNodes()?(b=b.childNodes[c],c=0):(c=1+K(b),b=b.parentNode)}return!0};a.Ad=function(a){return a&&a.style?Ie(a.style.marginLeft).value||0:0};a.Yd=function(b,c){if(!b||a.ib(b)||!J(b)||R(b,"table"))return!0;var d=b.style;if(d)for(var e=0;e<d.length;e++){var h=null,m=null,h=d[e],m=d.getPropertyValue(h);if(-1===sa.indexOf(m)&&m&&-1===qa.indexOf(h))return!1}return c?a.Yd(b.parentNode):!0};a.Vg=function(b){return!!P(b,"li,ol,ul,dl,dd,dt",a.Wb(b))};a.Cc=function(a){var b=L(a);return"ul"===
b&&E(a,"en-todo-list")?"tl":"ol"===b||"ul"===b?b:null};a.Sg=function(b){var c=[];b=b.querySelectorAll("ol,ul");for(var d=b.length;d--;){var e=a.Cc(b[d]);null!==e&&0>c.indexOf(e)&&c.push(e)}return c};a.og=function(b,c){return a.Cc(b)===c};a.N=function(b,c){return 0===O(b)?null:c===O(b)&&b.parentNode&&a.$(b)?[b.parentNode,1+K(b)]:0<=c&&c<b.childNodes.length&&0!==O(b.childNodes[c])&&a.$(b.childNodes[c])?[b.childNodes[c],0]:null};a.R=function(b,c){return 0==O(b)?null:0==c&&b.parentNode&&a.$(b)?[b.parentNode,
K(b)]:0<=c-1&&c-1<b.childNodes.length&&0!=O(b.childNodes[c-1])&&a.$(b.childNodes[c-1])?[b.childNodes[c-1],O(b.childNodes[c-1])]:null};a.kd=function(b,c){for(var d;d=a.R(b,c);)b=d[0],c=d[1];return[b,c]};a.ld=function(b,c){for(var d;d=a.N(b,c);)b=d[0],c=d[1];return[b,c]};a.wb=function(b){return!!(b&&J(b)&&(E(b,"en-container")||R(b,"td")||a.W(b)&&!a.Yd(b,!1)))};a.kc=function(c){return b===c?!0:!!(c&&Oc(c,b)&&a.wb(c))};a.ib=function(a){return b===a};a.Wb=function(c){return Oc(c,b)||a.ib(c)?b:null};a.Z=
function(a){return Oc(a,b)};a.ia=function(b,c){return!(!a.Wb(b)||a.Wb(b)!=a.Wb(c))}}};function Yf(a){var c=T("*[id]:not(.en-module):not(.en-container):not(.en-todo):not(.en-media):not(.en-object-placeholder),*[class]:not(.en-module):not(.en-container):not(.en-todo):not(.en-media):not(.en-object-placeholder)",a);a=T(".en-resource *",a);for(var b=a.length;b--;)c.splice(c.indexOf(a[b]),1);for(b=c.length-1;0<=b;b--){var e=c[b];-1===ya.indexOf(L(e))&&"en-editor-last-insertion-point"!==e.id&&e.removeAttribute("id");e.removeAttribute("class");e.attributes&&0<e.attributes.length&&Ua(e.attributes).forEach(function(a){0===
a.name.indexOf("data-")&&e.removeAttribute(a.name)})}}function Zf(a){vd("span",a).forEach(function(a){a.hasAttributes()||tc(a)})}
function $f(a){var c=a.ownerDocument.createNodeIterator(a,136,null,!1),b;for(a=[];b=c.nextNode();)a.push(b);for(c=a.length-1;0<=c;c--)if(b=a[c],8===b.nodeType)if(0==b.data.indexOf("[CDATA[")){var e=b.nextSibling;b=sc(b,document.createTextNode(b.data.substr(7)));b.data.lastIndexOf("]]")!=b.data.length-2&&e&&3==e.nodeType?(e.data=e.data.replace(/^(.*?)\]\]\>(.*?)$/gi,"$1$2"),b.data+=">"):b.data=b.data.replace(/^(.*?)\]\](.*?)$/gi,"$1$2")}else b.parentNode.removeChild(b);else sc(b,document.createTextNode(b.data))}
function ag(a){a=a.querySelectorAll("*[style*='line-height']");for(var c=a.length-1;0<=c;c--){var b=a[c];b.style.lineHeight&&nd(b,"line-height")}}var bg=["javascript"];function cg(a){var c=a;try{c=decodeURIComponent(c)||c}catch(b){v.warn("Could't decode invalid URI:",a),c="#"}c=c.replace(/[\x00-\x20]+/,"");c=c.replace(/<\!\-\-.*?\-\-\>/g,"");return(c=c.match(/^([a-zA-Z]+)\:/))?0<=bg.indexOf(c[1].toLowerCase())?"#":a.trim()||"#":a||"#"}
function dg(a){vd("span[style*='-evernote-last-insertion-point']",a).forEach(function(a){tc(a)})}function eg(){return M("span",{style:"-evernote-last-insertion-point:true;",id:"en-editor-last-insertion-point"})}
function fg(a){for(var c=la.concat("id","contenteditable"),b=Ua(a.attributes||[]).map(function(a){return a.name.toLowerCase()}),e=0;e<b.length;e++){var d=b[e];-1===c.indexOf(d)&&a.removeAttribute(d)}jd(a);nd(a,"height");nd(a,"width");nd(a,"max-height");nd(a,"max-width");nd(a,"min-height");nd(a,"min-width");kd(a)}
function gg(a,c){for(var b='<div id="en-note"',e=0;e<la.length;e++){var d=la[e].toLowerCase();if(a.hasAttribute(d)){var f=a.getAttribute(d);if("lang"!==d||""!==f)b+=" "+d+'="'+f.replace(jb["&"],"&amp;").replace(jb["<"],"&lt;").replace(jb[">"],"&gt;").replace(jb['"'],"&quot;").replace(jb["'"],"&apos;")+'"'}}return b+">"+c+"</div>"};function hg(){var a=this,c=this;c.name="format";c.G=function(){var b=c.K("context"),e=c.K("query"),d=b.root,f={};f.createlink=f.unlink=function(a){for(;a&&(!R(a)||"a"!==L(a)||!a.hasAttribute("href"));)a=a.parentNode;return a?a.getAttribute("href"):null};f.backcolor=function(a){for(;a&&a!==d&&e.$(a);){if(a.style){var b=a.style.backgroundColor;if(b&&"rgba(0, 0, 0, 0)"!==b&&""!==b&&"transparent"!==b)return Rc(a).backgroundColor}a=a.parentNode}return null};f.highlight=function(a){for(;a&&a!==d&&e.$(a);){if(a.style&&
("rgb(255, 250, 165)"===a.style.backgroundColor||"true"===md(a,"-evernote-highlight")||"true"===md(a,"-evernote-highlighted")))return"rgb(255, 250, 165)";a=a.parentNode}return null};f.subscript=f.superscript=function(a){for(var b=!1,c=!1;e.$(a);)R(a,"sub")?b=!0:R(a,"sup")&&(c=!0),a=a.parentNode;return b&&c?"mixed":b?"subscript":c?"superscript":null};f.strikethrough=function(a){return P(a,function(a){var b=L(a);return"s"===b||"strike"===b||"del"===b?!0:a.style&&(a=a.style.textDecoration)?-1!==a.indexOf("line-through"):
!1},b.root)?"line-through":null};f.underline=function(a){return P(a,function(a){return"u"===L(a)?!0:a.style&&(a=a.style.textDecoration)?-1!==a.indexOf("underline"):!1},b.root)?"underline":null};f.tt=function(a){return P(a,"tt",b.root)?"tt":null};a.hf=function(a){var b=a.previousSibling;if(b){for(;b.hasChildNodes();)b=b.lastChild;for(;e.va(b)&&!e.lc(b)&&b!==a.parentNode;)b=e.previousNode(b);e.O(b)&&e.lc(b)&&b.parentNode.removeChild(b)}};a.ff=function(a){for(var b=a;b.hasChildNodes();)b=b.lastChild;
for(;e.va(b)&&!e.lc(b)&&b!==a;)b=e.previousNode(b);if(e.O(b)&&e.lc(b)){for(;e.O(b.parentNode)&&e.va(b.parentNode);)b=b.parentNode;b.parentNode.removeChild(b)}};a.ba=function(b){a.hf(b);a.ff(b)};a.lb=function(c,d,f){"undefined"===typeof d&&(d=function(){return!1});"undefined"===typeof f&&(f=function(){return null});if(c.every(e.va)&&!c.some(function(a){return $c(a)})||!c[0].parentNode)return null;for(e.$(c[c.length-1])&&!$c(c[c.length-1])&&$c(c[c.length-1].nextSibling)&&c.push(c[c.length-1].nextSibling);e.va(c[0].previousSibling);)c.unshift(c[0].previousSibling);
for(;e.va(c[c.length-1].nextSibling);)c.push(c[c.length-1].nextSibling);f=e.O(c[0].previousSibling)&&d(c[0].previousSibling)?c[0].previousSibling:e.O(c[c.length-1].nextSibling)&&d(c[c.length-1].nextSibling)?c[c.length-1].nextSibling:f();if(!f)return null;if(!f.parentNode){c[0].parentNode.insertBefore(f,c[0]);var g=b.B();g.startContainer===f.parentNode&&g.startOffset===K(f)&&b.ce(g.startContainer,g.startOffset+1);g.endContainer===f.parentNode&&g.endOffset===K(f)&&b.be(g.endContainer,g.endOffset+1)}g=
c[0].parentNode;if(Xc(f,c[0])){!e.$(f)&&e.$([].filter.call(f.childNodes,e.xa).slice(-1)[0])&&e.$(c.filter(e.xa)[0])&&!$c(f.lastChild)&&f.appendChild(M("br"));for(var q=0;q<c.length;q++)b.aa(c[q],f,-1)}else for(!e.$(f)&&e.$([].filter.call(f.childNodes,e.xa)[0])&&e.$(c.filter(e.xa).slice(-1)[0])&&!$c(c[c.length-1])&&f.insertBefore(M("br"),f.firstChild),q=c.length-1;0<=q;q--)b.aa(c[q],f,0);e.O(g)&&!g.hasChildNodes()&&g.parentNode.removeChild(g);if(e.O(f.nextSibling)&&d(f.nextSibling)){for(!e.$(f)&&e.$(f.lastChild)&&
e.$(f.nextSibling.firstChild)&&!$c(f.lastChild)&&f.appendChild(M("br"));f.nextSibling.hasChildNodes();)b.aa(f.nextSibling.firstChild,f,-1);b.removeNode(f.nextSibling)}a.ba(f);return f};a.L=function(b,c){return null==c||c.collapsed?!1:e.Wd(b,c)||b===c.startContainer&&3===b.nodeType&&O(b)!==c.startOffset||b===c.endContainer&&3===b.nodeType&&0!==c.endOffset||!(!b.hasChildNodes()||![].every.call(b.childNodes,function(b){return a.L(b,c)})||Oc(c.startContainer,b)&&3===c.startContainer.nodeType&&0!==c.startOffset||
Oc(c.endContainer,b)&&3===c.endContainer.nodeType&&c.endOffset!==O(c.endContainer))?!0:!1};a.jc=function(b,c){"undefined"===typeof c&&(c=function(){return!0});if(null==b||b.collapsed)return null;for(var d=b.startContainer;a.L(d.parentNode,b);)d=d.parentNode;for(var f=e.Ra(b.endContainer);!f&&d||f&&Xc(d,f);){if(a.L(d,b)&&c(d))return d;d=e.nextNode(d)}return null};a.fb=function(b,c){"undefined"===typeof c&&(c=function(){return!0});if(null==b||b.collapsed)return[];for(var d=b.startContainer;a.L(d.parentNode,
b);)d=d.parentNode;for(var f=e.Ra(b.endContainer),g=[];!f&&d||f&&Xc(d,f);)a.L(d,b)&&c(d)&&g.push(d),d=e.nextNode(d);return g};a.R=function(a){if(!R(a))return!1;var b=a.tagName.toUpperCase();if(-1!=="B EM I S SPAN STRIKE STRONG SUB SUP U".split(" ").indexOf(b)&&(0===a.attributes.length||1===a.attributes.length&&a.hasAttribute("style")))return!0;if("FONT"===b||"A"===b){var c=a.attributes.length;a.hasAttribute("style")&&c--;"FONT"===b&&(a.hasAttribute("color")&&c--,a.hasAttribute("face")&&c--,a.hasAttribute("size")&&
c--);"A"===b&&a.hasAttribute("href")&&c--;if(0===c)return!0}return!1};a.N=function(a){if(!R(a))return!1;var b=a.tagName.toUpperCase();return-1==="A B EM FONT I S SPAN STRIKE STRONG SUB SUP U".split(" ").indexOf(b)?!1:0===a.attributes.length?!0:1<a.attributes.length?!1:a.hasAttribute("style")&&0===a.style.length||"A"===b&&a.hasAttribute("href")||"FONT"===b&&(a.hasAttribute("color")||a.hasAttribute("face")||a.hasAttribute("size"))||("B"===b||"STRONG"===b)&&a.hasAttribute("style")&&1===a.style.length&&
""!==a.style.fontWeight||("I"===b||"EM"===b)&&a.hasAttribute("style")&&1===a.style.length&&""!==a.style.fontStyle||("A"===b||"FONT"===b||"SPAN"===b)&&a.hasAttribute("style")&&1===a.style.length&&""===a.style.textDecoration||-1!=="A FONT S SPAN STRIKE U".split(" ").indexOf(b)&&a.hasAttribute("style")&&(1===a.style.length||4===a.style.length&&"MozTextBlink"in a.style&&"MozTextDecorationColor"in a.style&&"MozTextDecorationLine"in a.style&&"MozTextDecorationStyle"in a.style)&&("line-through"===a.style.textDecoration||
"underline"===a.style.textDecoration||"overline"===a.style.textDecoration||"none"===a.style.textDecoration)?!0:!1};a.C=function(a,c,d){return null===c&&null===d||t(c)&&t(d)&&c===d&&!b.X(a).bc||t(c)&&t(d)&&b.X(a).bc&&b.X(a).bc(c,d)?!0:!1};a.H=function(b,c,d){return a.C(b,c,d)?!0:!1};a.da=function(c,e){if(1!==c.nodeType&&(!c.parentNode||1!==c.parentNode.nodeType))return null;if(1!==c.nodeType)return a.da(c.parentNode,e);var g=f[e];if(g)return g(c);A(!!b.X(e).Ua,"Bug: no relevantCssProperty for "+e+
" in f.getEffectiveCommandValue");g=b.X(e).Ua;if(!g)return"";if(!Qc(c))return v.warn("We are not on rendered DOM for fontSize retieval",c),Bd(c,g,d);if(c.style&&null!==c.style[g]&&""!==c.style[g])return c.style[g];g=Rc(c)[g];"fontname"===e&&"-webkit-standard"===g&&(g=(g=he.env)&&null!=g.defaultNoteFont?g.defaultNoteFont:"Default");return g};a.A=function(a,c){if(("backcolor"===c||"highlight"===c)&&Uc(a))return null;var e=L(a);if("createlink"===c||"unlink"===c)return"a"===e&&a.hasAttribute("href")?
a.getAttribute("href"):null;if("subscript"===c||"superscript"===c)return"sup"===e?"superscript":"sub"===e?"subscript":null;if("strikethrough"===c&&""!==a.style.textDecoration)return-1!==a.style.textDecoration.indexOf("line-through")?"line-through":null;if("strikethrough"===c&&("s"===e||"strike"===e||"del"===e))return"line-through";if("underline"===c&&""!==a.style.textDecoration)return-1!==a.style.textDecoration.indexOf("underline")?"underline":null;if("underline"===c&&"u"===e)return"underline";if("highlight"===
c&&"mark"===e)return"rgb(255, 250, 165)";if("tt"===e)return"tt";var f=b.X(c),g=f.Ua;if(null===g)return null;var l=a.style[g];if(""!==l)return(e=f.Pa)&&e.length?("highlight"===c&&(l=Ae(l)),-1!==e.indexOf(l)?l:null):l;if("font"===e){if("color"===g&&a.hasAttribute("color"))return a.color;if("fontFamily"===g&&a.hasAttribute("face"))return a.face;if("fontSize"===g&&a.hasAttribute("size"))return Qc(a)?Rc(a).fontSize.toString():(v.warn("We are not on rendered DOM for fontSize retieval",a),Bd(a,"fontSize",
d))}return"fontWeight"!==g||"b"!==e&&"strong"!==e?"fontStyle"!==g||"i"!==e&&"em"!==e?null:"italic":"bold"};a.Z=function(c,d,e){for(var f=c;a.R(f)&&1===f.childNodes.length&&a.R(f.firstChild)&&(!a.N(f)||!a.C(d,a.A(f,d),e));)f=f.firstChild;if(f!==c&&a.N(f)&&a.C(d,a.A(f,d),e)&&a.H(d,a.da(f,d),e)){for(;f.hasChildNodes();)b.aa(f.firstChild,f.parentNode,K(f));c.parentNode.insertBefore(f,c.nextSibling);b.aa(c,f,-1)}};a.Ca=function(b){var c=[];b.forEach(function(b){"subscript forecolor highlight backcolor fontname fontsize bold italic strikethrough underline tt".split(" ").forEach(function(d){var e=
b;1!==e.nodeType&&(e=e.parentNode);for(;e&&1===e.nodeType&&null===a.A(e,d);)e=e.parentNode;e&&1===e.nodeType?c.push([b,d,a.A(e,d)]):c.push([b,d,null])})});return c};a.wa=function(b){b.forEach(function(b){var c=b[0],d=b[1];b=b[2];var e=c;e&&1===e.nodeType||(e=e.parentNode);for(;e&&1===e.nodeType&&null===a.A(e,d);)e=e.parentNode;null===b&&e&&1===e.nodeType?a.V(c,d,null):(e&&1===e.nodeType&&!a.C(d,a.A(e,d),b)||(!e||1!==e.nodeType)&&null!==b)&&a.I(c,d,b)})};a.Fe=function(c,d){if(e.O(c)&&null!==a.A(c,
d))if(a.N(c)){for(var f=Array.prototype.slice.call(c.childNodes),g=0;g<f.length;g++)b.aa(f[g],c.parentNode,K(c));c.parentNode.removeChild(c)}else"strikethrough"===d&&-1!==c.style.textDecoration.indexOf("line-through")&&("line-through"===c.style.textDecoration?c.style.textDecoration="":c.style.textDecoration=c.style.textDecoration.replace("line-through","")),"underline"===d&&-1!==c.style.textDecoration.indexOf("underline")&&("underline"===c.style.textDecoration?c.style.textDecoration="":c.style.textDecoration=
c.style.textDecoration.replace("underline","")),null!==b.X(d).Ua&&(c.style[b.X(d).Ua]=""),R(c,"font")&&("forecolor"===d&&c.removeAttribute("color"),"fontname"===d&&c.removeAttribute("face"),"fontsize"===d&&c.removeAttribute("size")),!R(c,"a")||"createlink"!==d&&"unlink"!==d||c.removeAttribute("href"),""===c.getAttribute("style")&&c.removeAttribute("style"),null===a.A(c,d)||b.Ka(c,"span")};a.V=function(b,c,d){if(b.parentNode&&1===b.parentNode.nodeType&&!a.H(c,a.da(b,c),d)){for(var f=b.parentNode,g=
[];e.O(f)&&1===f.nodeType&&!a.H(c,a.da(f,c),d);)g.push(f),f=f.parentNode;if(g.length){var l=a.A(g[g.length-1],c);if(null!==l||l===d)if(null===d||a.H(c,a.da(g[g.length-1].parentNode,c),d))for(;g.length;)for(f=g.pop(),null!==a.A(f,c)&&(l=a.A(f,c)),d=Array.prototype.slice.call(f.childNodes),null!==a.A(f,c)&&a.Fe(f,c),f=0;f<d.length;f++){var p=d[f];p!==b&&(1!==p.nodeType||null===a.A(p,c)||a.C(c,l,a.A(p,c)))&&p!==g[g.length-1]&&a.I(p,c,l)}}}};a.I=function(c,d,f){if(c.parentNode&&null!==f&&(e.qa(c,"span")&&
(a.Z(c.previousSibling,d,f),a.Z(c.nextSibling,d,f),a.lb([c],function(b){return a.N(b)&&a.C(d,a.A(b,d),f)&&a.H(d,a.da(b,d),f)},function(){return null})),!e.va(c)&&!a.H(d,a.da(c,d),f)&&c.parentNode))if(!e.qa(c,"span")){for(var g=[],l=0;l<c.childNodes.length;l++){if(1===c.childNodes[l].nodeType){var p=a.A(c.childNodes[l],d);if(null!==p&&!a.C(d,f,p))continue}g.push(c.childNodes[l])}for(l=0;l<g.length;l++)a.I(g[l],d,f)}else if(!a.H(d,a.da(c,d),f)){g=null;if("bold"!==d||"bold"!==f&&"700"!==f)if("italic"===
d&&"italic"===f)g=M("i");else if("strikethrough"===d&&"line-through"===f)g=M("s");else if("underline"===d&&"underline"===f)g=M("u");else if("tt"===d&&"tt"===f)g=M("tt");else if("createlink"===d||"unlink"===d)for(g=M("a"),g.setAttribute("href",f),l=c.parentNode;l;)R(l,"a")&&(l=b.Ka(l,"span")),l=l.parentNode;else"subscript"!==d&&"superscript"!==d||"subscript"!==f?"subscript"!==d&&"superscript"!==d||"superscript"!==f||(g=M("sup")):g=M("sub");else g=M("b");g||(g=M("span"));c.parentNode.insertBefore(g,
c);l=b.X(d).Ua;null===l||g.style[l]===f||a.H(d,a.da(g,d),f)||(g.style[l]=f,"highlight"===d&&S(g,"-evernote-highlight","true"));"forecolor"===d&&Be(f)&&g.style.color!==f&&(g.style.color=f);"fontname"===d&&null!=f&&g.style.fontFamily!==f&&(g.style.fontFamily=f);"fontsize"===d&&null!=f&&g.style.fontSize!==f&&(g.style.fontSize=f);"strikethrough"===d&&"line-through"===f&&"line-through"!==a.da(g,"strikethrough")&&(g.style.textDecoration="line-through");"underline"===d&&"underline"===f&&"underline"!==a.da(g,
"underline")&&(g.style.textDecoration="underline");b.aa(c,g,g.childNodes.length);if(1===c.nodeType&&!a.C(d,a.da(c,d),f)){b.aa(c,g.parentNode,K(g));g.parentNode.removeChild(g);g=[];for(l=0;l<c.childNodes.length;l++){if(1===c.childNodes[l].nodeType&&(p=a.A(c.childNodes[l],d),null!==p&&!a.C(d,f,p)))continue;g.push(c.childNodes[l])}for(l=0;l<g.length;l++)a.I(g[l],d,f)}}};a.xe=function(c,d,f){var g=!1,l=!1,p=a.K("textinput");null==f&&((f=p.Pg())?l=!0:(f=b.B(),g=!0));if(null===a.jc(f,e.Qa))b.eh(),b.X(c).Pa&&
b.Ig(c,-1!==b.X(c).Pa.indexOf(d)),"subscript"===c&&b.Hf("superscript"),"superscript"===c&&b.Hf("subscript"),null===d?b.dh(c):("createlink"===c||b.X(c).value)&&b.Jg(c,d);else{if(e.O(f.startContainer)&&3===f.startContainer.nodeType&&0!==f.startOffset&&f.startOffset!==O(f.startContainer)){var u;if(f.startContainer===f.endContainer){var z=f.endOffset-f.startOffset;u=f.startContainer.splitText(f.startOffset);f.setEnd(u,z)}else u=f.startContainer.splitText(f.startOffset);f.setStart(u,0)}e.O(f.endContainer)&&
3===f.endContainer.nodeType&&0!==f.endOffset&&f.endOffset!==O(f.endContainer)&&(u=[f.startContainer,f.startOffset],z=[f.endContainer,f.endOffset],f.endContainer.splitText(f.endOffset),f.setStart(u[0],u[1]),f.setEnd(z[0],z[1]));g?b.Zb(f):l&&p.bh(f);a.fb(f,function(a){return e.O(a)&&1===a.nodeType}).forEach(function(b){a.Fe(b,c)});a.fb(f,e.O).forEach(function(b){a.V(b,c,d);e.qa(b,"span")&&a.I(b,c,d)})}};var g="bold italic strikethrough subscript superscript underline highlight tt".split(" "),l=["fontname",
"fontsize","forecolor"],p=["object"];a.ae=function(){var a=[];void 0!==b.Ud("createlink")&&a.push(["createlink",b.Ud("createlink")]);g.forEach(function(c){void 0!==b.Td(c)&&a.push([c,b.Td(c)])});l.forEach(function(c){void 0!==b.Ud(c)&&a.push([c,b.Ud(c)])});return a};a.sf=function(c){var d=[],f=a.jc(b.B(),e.Qa);!f&&c&&(c=b.B())&&(f=Qd(c));if(!f)return d;d.push(["createlink",a.da(f,"createlink")]);g.forEach(function(c){var e=a.da(f,c);-1!==b.X(c).Pa.indexOf(e)?d.push([c,!0]):d.push([c,!1])});if(-1!==
p.indexOf(L(f)))return d;l.forEach(function(a){d.push([a,b.X(a).value()])});return d};a.Ob=function(c){var d=a.jc(b.B(),e.Qa);if(null!==d)for(var f=0;f<c.length;f++){var g=c[f][0],l=c[f][1];"boolean"===typeof l&&b.X(g).state()!==l?b.X(g).action(l):t(l)&&!a.C(g,a.da(d,g),l)&&b.X(g).action(l);d=a.jc(b.B(),e.Qa)||d}else for(f=0;f<c.length;f++)g=c[f][0],l=c[f][1],"boolean"===typeof l&&b.Ig(g,l),t(l)&&b.Jg(g,l)};a.Wg=function(c){var d=a.sf(!0);c();b.Ma();a.Ob(d)};a.wc=function(){return e.Wb(Qd(b.B()))}}}
;function ig(){var a=this;a.name="normalize";var c=/\n\r|\r\n|\r|\n/gi,b=/\s/gi;a.G=function(){function e(a,b,c){if(0>a||0>b){var d=c.style.marginLeft?c.style.marginLeft:"0",e=c.style.marginTop?c.style.marginTop:"0";a=c.style.left?c.style.left:"0";b=c.style.top?c.style.top:"0";if(0===d.indexOf("-")||0===e.indexOf("-"))(e=Ge(e))&&0>c.offsetTop&&0>e.value&&(wf(c),S(c,"margin-top",e.value-c.offsetTop+"px")),(d=Ge(d))&&0>c.offsetLeft&&0>d.value&&(wf(c),S(c,"margin-left",d.value-c.offsetLeft+"px"));if(0===
b.indexOf("-")||0===a.indexOf("-"))b=Ge(b).value,a=Ge(a).value,0>c.offsetTop&&0>b&&(wf(c),S(c,"top",b-c.offsetTop+"px")),0>c.offsetLeft&&0>a&&(wf(c),S(c,"left",a-c.offsetLeft+"px"))}}function d(a){var b=Rc(a)||{},b={fontWeight:b.fontWeight,rh:b.fontFamily,fontSize:Ie(b.fontSize).value||0,marginTop:Ie(b.marginTop).value||0,marginBottom:Ie(b.marginBottom).value||0},c=Rc(a.parentNode)||{};a=C.Ka(a,"div");b.fontWeight&&"normal"!==b.fontWeight&&400!=b.fontWeight&&(a.style.fontWeight=b.fontWeight);b.fontFamily&&
b.rh!==c.fontName&&(a.style.fontFamily=b.fontFamily);b.fontSize&&b.fontSize!==(Ie(c.fontSize).value||0)&&(a.style.fontSize=b.fontSize.toString()+"px");0<=1*b.marginTop-(Ie(c.fontSize).value||0)&&(w.Vg(a)?(a.appendChild(M("br")),a.appendChild(M("br"))):(b=Kc(),C.aa(b,a.parentNode,K(a)),jd(b),h(b),kd(b)));return a}function f(a){if(!a)return a;Uc(a)&&(a=C.Ka(a,"div"));wf(a);nd(a,"white-space");nd(a,"word-wrap");nd(a,"word-break");for(var d=nc(a),e,h,m=C.B(),l=0;l<d.length;l++){var n=d[l];if(Nc(n)){for(var w=
n.textContent.split(c),r=M("div"),p=0;p<w.length;p++){var q=w[p].replace(b,"\u00a0").replace(ra,"\u00a0 ");q&&r.appendChild(document.createTextNode(q));p<w.length-1&&r.appendChild(M("br"))}if(m.startContainer===n||Oc(n,m.startContainer))e=g(r,m.startOffset);if(m.endContainer===n||Oc(n,m.endContainer))h=g(r,m.endOffset);sc(n,r);tc(r)}else f(n)}e&&null!==e[0]&&C.ce(e[0],e[1]);h&&null!==h[0]&&C.be(h[0],h[1]);return a}function g(a,b){for(var c=0,d=null,e=0,f=0;f<a.childNodes.length;f++){var g=a.childNodes[f],
h=g.length||1;if(c<b)c+=h,e=h-(c-b),d=g;else{c==b&&(e=0,d=g);break}}return[d,e]}function l(){if(!u(Y,!0)&&w.Oa(Y)){rc(Y);var a=Kc();Y.appendChild(a);C.M(a,0)}}function p(a){if(J(a)&&(a=a.getElementsByTagName("*")))for(var b=a.length-1;0<=b;b--){var c=a[b];c.hasChildNodes()||Uc(c)||me(c)||$c(c)||C.removeNode(c)}}function h(a){(a=q(a))&&F(a,"div>div,div>table,div>ol,div>ul").forEach(function(a){var b=a.parentNode;if(b&&!w.kc(b)&&!w.kc(a)){if(R(a,"div")){["text-align"].forEach(function(c){if(!a.style[c]){var d=
b.style[c];d&&(a.style[c]=d)}});var c=w.Ad(b)+w.Ad(a);0<c?S(a,"margin-left",c+"px"):nd(a,"margin-left")}var c=[a],d=D.Ca(c);V.ya(c);D.wa(d);m(w.na(a))}})}function m(a){var b=a&&a.nextSibling;b&&!u(b)&&C.removeNode(b);(a=a&&a.previousSibling)&&!u(a)&&C.removeNode(a)}function r(a){if(Q(a,"ul,ol")&&w.O(a)&&w.Yd(a,!0))for(var b=null,c=a.childNodes.length-1;0<=c;c--){var d=a.childNodes[c];Q(d,"li,ol,ul")?b=null:Uc(d)?C.Ka(d,"li"):zd(d)?C.removeNode(d):(b||(b=M("li"),C.insertBefore(b,d.parentNode,d.nextSibling)),
C.aa(d,b,0))}}function n(a){A(!!a,"expected node");if("hr"===L(a)){var b=M("div");b.appendChild(a);return b}b=Kd(a,0);b=w.Ia(b);if(b.collapsed)return null;for(;w.W(a=b.startContainer.childNodes[b.startOffset]);)b.setStart(a,0);a=w.gb(b);if(0>=a.length)return Sd(b);for(var b=a[0].parentNode,c=(w.W(b)||w.wb(b))&&a[0]===b.firstChild&&a[a.length-1]===b.lastChild;a.length&&zd(a[0]);)C.removeNode(a.shift());var d=w.kc(b);if(c){if(!d)return b;if(0>=a.length||!nc(b).some(function(a){return u(a)}))return V.Rb(b),
b}a.length&&(c=D.Ca(a),b=D.lb(a,function(){return!1},function(){return M("div")}),D.wa(c),V.Ja(b));return b}function q(a){for(var b;a&&!Q(a,"div.en-module,object")&&(b=a.firstChild);)a=b;return a}function y(a){var b=P(a,"div.en-module,object",Y);return b&&b!==a?!0:!1}function u(a,b){if(!a)return!1;if(3===a.nodeType&&!w.Me(a)||me(a)||Q(a,"table,tr,td,th,li")||$c(a)&&(b?!w.Gc(a):!w.lc(a)))return!0;for(var c=0;c<a.childNodes.length;c++)if(u(a.childNodes[c],b))return!0;return!1}function z(a,b){for(var c=
[];a&&a!==Y;)-1!==b.indexOf(L(a))&&c.unshift(a),a=a.parentNode;return c}function F(a,b){for(var c=[];a&&a!==Y;)Q(a,b)&&c.unshift(a),a=a.parentNode;return c}var C=a.K("context"),w=a.K("query"),D=a.K("format"),V=a.K("block"),Y=C.root,ra=/\u00a0\u00a0/gi,fa={dl:function(a){if(a){for(var b=a.getElementsByTagName("dt"),c=b.length;c--;)d(b[c]);b=a.getElementsByTagName("dd");for(c=b.length;c--;)V.Ie(d(b[c]));return d(a)}return a}};fa.h1=fa.h2=fa.h3=fa.h4=fa.h5=fa.h6=fa.p=d;fa.center=function(a){a=d(a);S(a,
"text-align","center")};fa.blockquote=function(a){a=d(a);a.style.marginLeft="";V.Ie(a);nc(a).forEach(h);return a};fa.th=function(a){a=C.Ka(a,"td");var b=document.createRange();b.selectNodeContents(a);D.xe("bold","bold",b);return a};fa.ol=fa.ul=function(a,b){b||(vd("li div",a).forEach(function(a){w.kc(a)||V.Nd(a)}),vd("li",a).forEach(V.Yb),vd('li[style*="list-style:"]',a).forEach(function(a){if("none"===md(a,"list-style")){for(;zd(a.previousSibling);)C.removeNode(a.previousSibling);Q(a.previousSibling,
"li")?(C.Ag(a,a.previousSibling,-1),C.removeNode(a)):a.removeAttribute("style")}}));r(a);return a};fa.pre=function(a){return f(a)};var Ja=Object.keys(fa);a.A=function(a){if(!a||y(a))return null;a=q(a);var b=!1,c=!1;z(a,Ja).forEach(function(a){var d=L(a),e=fa[d];e&&(e(a,b,c),"pre"===d?c=!0:-1!==["ul","ol"].indexOf(d)&&(b=!0))});F(a,"*[style]").forEach(function(a){var b=md(a,"white-space");if("pre"===b||"pre-wrap"===b)a=f(a),c=!0;for(var b=["line-height","max-width","min-width"],d=b.length;d--;){var g=
b[d];md(a,g)&&(wf(a),nd(a,g))}if(0>a.offsetTop||0>a.offsetLeft||a.style&&a.style.position)if(b=md(a,"position"),"fixed"!==b||a.offsetParent&&a.offsetParent!==Y||(wf(a),S(a,"position","relative")),"absolute"===b&&a.offsetParent===Y&&(a.offsetParent.offsetHeight<a.offsetTop+a.offsetHeight&&a.style.top&&(wf(a),S(a,"position","relative"),nd(a,"top")),a.offsetParent.offsetWidth<a.offsetLeft+a.offsetWidth&&a.style.left&&(wf(a),S(a,"position","relative"),nd(a,"left"))),0>a.offsetTop||0>a.offsetLeft){b=a.offsetParent;
d=a.offsetTop;for(g=a.offsetLeft;null!==b&&b!==Y;){b.offsetLeft&&(g+=b.offsetLeft);b.offsetTop&&(d+=b.offsetTop);var h=md(b,"position");"absolute"!==h&&"fixed"!==h||b.offsetParent!==Y||(wf(b),0>b.offsetLeft||0>b.offsetTop?e(b.offsetTop,b.offsetLeft,b):S(b,"position","relative"));b=b.offsetParent}e(d,g,a)}});b||c||(a=q(a),a=n(a));a=q(a);wf(a);h(a);if(a=w.na(a))p(a),m(a);xf();return a};a.nc=function(){a.A(Qd(C.B()));l()};a.Fg=function(){a.A(Sd(C.B()));l()};a.Ue=function(){C.B().collapsed||a.Fg();a.nc()};
a.$g=function(){for(var b=Qd(C.B()),c,d=2;b&&0<d;)zd(b)?c=Lc(b,Y):w.$(b)?(--d,c=a.A(b),c=xd(c,function(a){return w.$(a)&&w.na(c)!==w.na(a)},Y)):c=Lc(b,Y),b=c;l()};a.Xc=function(b,c){C.B()||C.M(Y,0);var d=0;c||(c=Na);var e=D.wc();vd("td:empty,th:empty",e).forEach(function(a){C.xc(Kc(),a)});vd("li:empty",e).forEach(function(a){C.xc(M("br"),a)});vd("hr",e).forEach(function(a){a.parentNode!==e&&V.ya([a])});for(var f=b||e.firstChild,g=[],h;f&&c(f)&&1111>d++;)if(f=q(f),-1!==g.indexOf(f))f=Mc(f,e);else{g.push(f);
if(zd(f)&&1<O(f.parentNode))h=Mc(f,e),C.removeNode(f);else if(w.$(f)||Q(f,"td,li,div")){var m=f.nextSibling;(h=a.A(f))||(h=m);h=wd(h,function(a){return w.$(a)&&!y(a)&&w.na(h)!==w.na(a)},e)}else h=Mc(f,e);f=h}l();0>=d&&v.error("Normalization reached safety limit, this probably indicates that the current document failed to get normalized and may behave unexpectedly.")};a.Pc=function(){C.B().collapsed?a.nc():a.Xc(Qd(C.B()),function(a){var b=C.B(),c;if(c=b)b=Sd(b),c=!(null!=a&&null!=b&&a.compareDocumentPosition(b)&
2);return c})}}};function jg(){var a=this;a.name="editor";a.G=function(){function c(a,c){var d=!1,e;0==g&&null!=a?b.Zb(a):0==g&&(b.Ha(),d=!0);g++;try{e=c()}catch(f){Bb(f)}g--;d&&b.Ma();return e}var b=a.K("context"),e=a.K("query"),d=a.K("format");a.K("block");var f=b.Aa;He(b.root);var g=0;a.execCommand=function(b,d,e,g){if(1===arguments.length||4<=arguments.length&&null==d)d=!1;if(2>=arguments.length||4<=arguments.length&&null==e)e="";return c(g,function(b,c,d){return function(){if(!(b in f&&a.queryCommandEnabled(b,
d)))return!1;var c=f[b],e=c.action(""===d?null:d);c.Hb&&a.K("spellcheck").Hb(b);if(!0!==e&&!1!==e)throw"execCommand() didn't return true or false: "+e;return!1!==e}}(b,d,e))};a.queryCommandEnabled=function(a,d,e){return c(e,function(a,c){return function(){return a in f?b.X(a).enabled?b.X(a).enabled(c):b.hasFocus():!1}}(a,d))};a.queryCommandIndeterm=function(a,d){return c(d,function(a){return function(){return b.X(a).rb?f[a].rb():!1}}(a))};a.queryCommandState=function(a,d){return c(d,function(a){return function(){var c=
b.X(a);return c.state?null!=b.Td(a)?b.Td(a):c.state():!1}}(a))};a.queryCommandSupported=function(a){return a in f};a.queryCommandValue=function(a,d,e){return c(e,function(){return b.X(a).value?f[a].value(d):""})};b.Od=function(){Object.keys(f).forEach(function(a){b.X(a).Ua||(f[a].Ua=null);b.X(a).Pa&&!b.X(a).rb&&(f[a].rb=function(){if(!b.B())return!1;var c=d.fb(b.B(),e.Qa).map(function(b){return d.da(b,a)}),g=c.filter(function(b){return-1!=f[a].Pa.indexOf(b)});return 1<=g.length&&1<=c.length-g.length});
b.X(a).Pa&&(f[a].state=function(){var c=b.B();if(!c)return!1;b.Ng();return-1!==f[a].Pa.indexOf(d.da(c.startContainer,a))});b.X(a).xg&&(f[a].rb=function(){if(!b.B())return!1;for(var c=d.fb(b.B(),e.Qa).map(function(b){return d.da(b,a)}),f=1;f<c.length;f++)if(c[f]!==c[f-1])return!0;return!1},f[a].value=function(){if(!b.B())return"";var c=d.jc(b.B(),e.Qa);null==c&&(c=b.B().startContainer);c=d.da(c,a);return null===c?"":c});var c=b.X(a).ta,g=f[a].action;f[a].action=function(a){if(c)var e=d.ae();a=g(a);
c&&(b.Ma(),b.B().collapsed&&d.Ob(e));return a}})};a.sh=function(){return f}}};function kg(){function a(){u.D.timeout(function(){var a=-D;D=l(w);a+=D;0!==a&&nb(w.querySelectorAll("table"),function(a){n(a)})})}function c(a){q(a.target);n(a.target);e(a)}function b(a){e(a)}function e(a){y(a.target);f(a.target)}function d(a,b){var c=[],d=-1,e=P(a,"table"),f=P(a,"tr");null==b&&(b=0);if(null==e||null==f)return v.warn("Couldn't find tr or table for a td! <$>"),[];for(var f=f.querySelectorAll("td"),g=0;g<f.length;g++)f[g]===a&&(d=g);if(-1===d)return v.warn("Couldn't find td within its tr! <%>"),
[];d+=b;if(0>d||d>f.length-1)return[];nb(e.querySelectorAll("tr"),function(a){a=a.querySelectorAll("td");null!=a[d]&&c.push(a[d])});return c}function f(a){if(!1!==p(a)&&!1!==g(a)){var b=F.Qd(a);"right"===b?r(a):("center"===b&&r(a),m(a));h(a)}}function g(a){function b(a){n(a);I(a.querySelector("colgroup"));var c=a.querySelector("tbody");Cc(c,a);I(c)}function c(a){n(a);I(a.querySelector("col"))}var d=!1,e=!1;(function(){var b=a.querySelector("col");null!=b&&null!=b.parentElement&&"table"===L(b.parentElement)&&
(d=!0)})();(function(){var b=a.querySelector("tbody");null!=b&&null!=b.parentElement&&"table"===L(b.parentElement)&&(e=!0)})();if(d&&!e)c(a);else if(e)b(a);else{var f=Ua(a.querySelectorAll("colgroup")),g=f[0]||null,h;if(0===f.length)return!0;h=vd("col",g);for(var m=0;m<f.length;m++)if(null!=h[m].getAttribute("style"))return!1;for(m=0;m<h.length;m++)if(null!=h[m].getAttribute("style"))return!1;n(a);I(g)}return!0}function l(a){if(null==a)return null;a=Rc(a);if(null==a)return null;a=a.getPropertyValue("width");
return null!=a?parseInt(a,10):null}function p(a){if(P(a.parentElement,"table")||null!=a.querySelector("table"))return!1;var b=!1;nb(z.vb(a),function(a){E(a,"table-edge")&&(b=!0)});return b?!1:!0}function h(a){var b=a.querySelector("tr").querySelectorAll("td");nb(b,function(c){if(c!==b[b.length-1]){var e=z.yc(c,"tableColumnEdge");G(e,"table-edge");var f=M("div",{"class":"line"});e.appendChild(f);var g,h,m,l,r,p,F=d(c),D=d(c,1),y=N(e).width;z.$d(e,function(){q(a);var b=N(F[0]),c=N(D[0]);g=b.width;h=
c.width;m=window.innerWidth-b.left-35;l=window.innerWidth-c.right+35;r=N(a).width;p=parseInt(md(e,"right"),10);G(e,"no-hide-element")},function(a){a=p-a;a>m-y&&(a=m-y);a<l&&(a=l);e.style.right=a+"px"},function(b){b<-g+35&&(b=-g+35);b>h-35&&(b=h-35);var c=(g+b)/r*100,d=(h-b)/r*100;C.cb(function(){F[0].style.width=c+"%";D[0].style.width=d+"%";H(e,"no-hide-element");z.ag(e);n(a)});Ve(w,"setDirty",{qd:!0});z.xb()},"cursor: col-resize;")}})}function m(a){var b,c,d,e=35*a.querySelector("tr").querySelectorAll("td").length,
f=F.Qd(a),g=z.yc(a,"rightEdge");G(g,"table-edge");g.appendChild(M("div",{"class":"line"}));var h=N(g).width,m;z.$d(g,function(){q(a);var e=N(a);b=e.width;c=window.innerWidth-e.left;m=parseInt(md(g,"right"),10);d=N(a.parentNode).width;G(g,"no-hide-element")},function(a){if("center"===f){a=m-a;var d=c-(h+e+b)/2;a>d&&(a=d)}else a=m-a,a>c-h-e&&(a=c-h-e);0>a&&(a=0);g.style.right=a+"px"},function(c){var h;b="center"===f?b+2*c:b+c;b<e&&(b=e);h=b/d*100;100<h&&(h=100);H(g,"no-hide-element");C.cb(function(){a.style.width=
h+"%";n(a)});Ve(w,"setDirty",{qd:!0});z.xb()},"cursor: col-resize;")}function r(a){var b,c,d,e=35*a.querySelector("tr").querySelectorAll("td").length,f=F.Qd(a),g=z.yc(a,"leftEdge");G(g,"table-edge");g.appendChild(M("div",{"class":"line"}));var h=N(g).width,m;z.$d(g,function(){q(a);var e=N(a);b=e.width;c=e.right;m=parseInt(md(g,"left"),10);d=N(a.parentNode).width;G(g,"no-hide-element")},function(a){if("center"===f){a=m+a;var d=c-(b+e+h)/2;a>d&&(a=d)}else a=m+a,a>c-h-e&&(a=c-h-e);0>a&&(a=0);g.style.left=
a+"px"},function(c){var h;b="center"===f?b-2*c:b-c;b<e&&(b=e);h=b/d*100;100<h&&(h=100);H(g,"no-hide-element");C.cb(function(){a.style.width=h+"%";n(a)});Ve(w,"setDirty",{qd:!0});z.xb()},"cursor: col-resize;")}function n(a){var b=N(a).width,c=35/b*100,d=[],e=0,f=0,g=a.querySelector("tr");if(null!=g&&(g=g.querySelectorAll("td"),0!==g.length)){b<35*g.length&&(b=35*g.length);var h=l(a.parentNode),h=Math.max(0,Math.min(100,b/h*100)),m=md(a,"width"),n=null;null!=m&&(n=Ge(m||""));n&&n.uc&&"%"===n.uc?S(a,
"width",h+"%"):S(a,"width",b+"px");var w=[];nb(g,function(a){a=N(a).width;w.push(a/b*100+"%")});nb(g,function(a){var b=N(a).width,g=w.shift();null==g&&(v.error("Length of first row magically changed <$>"),g="0%");S(a,"width",g);35>=b?(S(a,"width",c+"%"),f++):d.push(a);e+=parseInt(md(a,"width"),10)});if(0!==d.length&&0!==f){a=f*c;var r=e-a,p=100-a;nb(d,function(a){var b=parseInt(md(a,"width"),10),b=b/r*p;S(a,"width",b+"%")})}}}function q(a){S(a,"table-layout","fixed")}function y(a){nb(z.vb(a),function(a){E(a,
"table-edge")&&z.detach(a)});nb(a.querySelectorAll("td"),function(a){nb(z.vb(a),function(a){E(a,"table-edge")&&z.detach(a)})})}var u=this,z=null,F=null,C=null,w=null;u.name="ui-table";var D=null;u.G=function(){w=u.K("context").root;G(w,"en-ui-table-on");z=u.K("layer");F=u.K("table");C=u.K("undo");z.df("table",function(a,b){function c(b){f(a);b.stopPropagation();return!1}re()?b.Ta=u.D.listener(a,"mouseenter",c):b.Ta=u.D.listener(a,"mouseover",c)},function(a,b){b.Ta&&u.D.remove(b.Ta)});u.D.pa(w,"TABLE_ALIGN",
e);u.D.pa(w,"TABLE_INSERT_ROW",b);u.D.pa(w,"TABLE_DELETE_ROW",e);u.D.pa(w,"TABLE_INSERT_COLUMN",b);u.D.pa(w,"TABLE_DELETE_COLUMN",c);D=l(w);u.D.A("windowResize",a)};u.S=function(){H(w,"en-ui-table-on");nb(w.querySelectorAll("table"),function(a){y(a)});w=null}};function lg(){var a=this;a.name="copy";a.G=function(){function c(){var a=U(r);return!(!a||a.collapsed)}function b(){Ve(r,"beforeGetContent");v.warn("The copy/cut action will only work if a ClipboardEvent is passed. Limited to WEB right now and highly experimental!")}function e(a){a=B(a,{fullhtml:!1,html:!0,fullraw:!1,raw:!0,resources:!0,plain:!0});Ve(r,"beforeGetContent");var b=U(r);return(a=d(r,b,a))?JSON.stringify(a):""}function d(b,c,d){d=B(d,{plain:!0,html:!1,fullhtml:!1,fullraw:!1,raw:!1,resources:!1});
if(!c||c.collapsed)return null;var e=uf.Jc("rte").ea(),m=e.Jc("query"),l=e.Jc("table"),r=m.kd(c.startContainer,c.startOffset),w=P(c.startContainer,"td.en-selected",b),D=0;null!==w&&(r=m.kd(w,0),w=l.wd(w),0<w.column&&(D=w.column));c.setStart(r[0],r[1]);w=P(c.endContainer,"td.en-selected",b);r=0;if(null!==w){var V=m.ld(w,O(w));c.setEnd(V[0],V[1]);w=l.wd(w);(l=l.bf(w.table))&&l.columns>w.column&&(r=l.columns-w.column-1)}w=c.cloneContents();l=document.createElement("body");l.appendChild(w);(w=a.Qb("crypt"))&&
w.Gf(l);for(w=c.commonAncestorContainer;w&&m.O(w)&&m.$(w);)J(w)&&Gc(l,w.cloneNode(!1)),w=w.parentNode;if(nc(l).some(function(a){return Q(a,"li,tr,td")})&&(b=P(c.startContainer,"table,ul,ol",b)))for(b=b.cloneNode(!1),l.insertBefore(b,l.firstChild);;)if((m=l.children[1])&&Q(m,"li,ol,ul,tr,td"))b.appendChild(m);else break;if(0<D||0<r){V=T("tr",l);if(0<D&&0<V.length){var Y=V[0];for(b=0;b<D;b++)m=Y.firstChild.cloneNode(!1),w=M("div",{},[M("br")]),m.appendChild(w),Y.insertBefore(m,Y.firstChild)}if(0<r&&
0<V.length)for(D=V[V.length-1],b=0;b<r;b++)m=D.lastChild.cloneNode(!1),w=M("div",{},[M("br")]),m.appendChild(w),D.appendChild(m)}var ra={};d.plain&&Ad(l.cloneNode(!0),function(b){var c=a.Qb("simpletext");c?(b=c.Ge(b))&&Ad(b,function(a){ra.plain=f(ib(Jc(a)))}):ra.plain=f(ib(Jc(b)))});d.resources&&(e=e.Jc("resource"),ra.resources=e?e.rf(l):g(l)||[]);if(d.raw||d.fullraw)e=l.cloneNode(!0),Yf(e),e=ib(xb(e.outerHTML)),d.raw&&(ra.raw=e),d.fullraw&&(ra.fullraw=zc(l)?'<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body>'+
e+"</body></html>":'<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title></head><body>'+e+"</body></html>");if(d.html||d.fullhtml)a.K("transform").Pd(l,3),e=Rc(c.startContainer),c=c.startContainer===c.endContainer?e:Rc(c.endContainer),p(l),Yf(l),h(l,e,c),c=ib(xb(l.outerHTML)),d.html&&(ra.html=c),d.fullhtml&&(ra.fullhtml=zc(l)?'<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body>'+
c+"</body></html>":'<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title></head><body>'+c+"</body></html>");return ra}function f(a){return a?a.replace(/\u00A0/g," "):""}function g(a){if(!a)return null;try{var b=[],c=a.querySelectorAll("embed[id],img[id]");for(a=0;a<c.length;a++){var d=c[a],e=(d.getAttribute("id")||"").split(":");if(3<=e.length&&"en-media"===e[0]){var f=e[2];f&&(d.setAttribute("src","?hash="+f),-1===b.indexOf(f)&&b.push(f))}}return b}catch(g){v.error("Exception in collectResourcesAction <$>",
g.toString())}return null}function l(a){a=(a||"").split(":");return 3<=a.length&&"en-media"===a[0]?a[2]:null}function p(a){vd("embed[src][id]",a).forEach(function(b){var c=l(b.id);c&&(c=yc(a,"object",{type:"application/x-apple-msg-attachment",data:"cid:"+c}),sc(b,c))});vd("img[src]",a).forEach(function(a){var b=l(a.id);b&&(a.setAttribute("src","cid:"+b),a.removeAttribute("class"),a.removeAttribute("id"),a.removeAttribute("data-en-resource-reference"))})}function h(a,b,c){var d={},e={},f={},g={},h=
["font-family","font-size"];a instanceof Element&&(d=Rc(a));d&&d["font-family"]||(d=Rc(document.body));if(d)for(var m=0;m<h.length;m++){var l=h[m];e[l]=d[l]}if(b)for(m=0;m<h.length;m++)l=h[m],f[l]=b[l];if(c)for(m=0;m<h.length;m++)l=h[m],g[l]=c[l];b=nc(a);for(c=b.length-1;0<=c;c--){d=b[c];if(3===d.nodeType){if(0===d.textContent.length)continue;h=M("span");a.insertBefore(h,d);h.appendChild(d);d=h}for(m in e)h=e[m],l=md(d,m),0===c&&f[m]?h=f[m]:c===b.length-1&&g[m]&&(h=g[m]),null===l&&void 0!==h&&S(d,
m,h)}}var m=a.K("context"),r=m.root;a.Og=d;a.D.B({name:"copy",action:function(){b();return!0},value:function(a){if(c())return a=Nb(a),e(a)},enabled:function(){return c()}});a.D.B({name:"cut",action:function(){a.K("undo").cb(function(){b();a.K("edit").ha()});return!0},value:function(){var b=null;c()&&a.K("undo").cb(function(){b=e();null!=b&&a.K("edit").ha()});return b},enabled:function(){return m.hasFocus()&&c()}})}};function mg(){var a=this;a.name="paste";a.G=function(){function c(a,b,c){var d;c=qb(c||{},{keyCode:13,charCode:0},!0);if(a.fireEvent){d=document.createEventObject();qb(d,c);try{return!!a.fireEvent("on"+b,d,!1)}catch(e){}return!1}if(document.createEvent)try{d=document.createEvent("KeyEvents"),d.initKeyEvent(b,!0,!0,window,!1,!1,!1,!1,c.keyCode,c.charCode)}catch(e){d=document.createEvent("Events"),d.initEvent(b,!0,!0),d.keyCode=c.keyCode,d.charCode=c.charCode}else d=document.createEvent("UIEvents"),
d.initUIEvent&&d.initUIEvent(b,!0,!0,window,1),d.keyCode=c.keyCode,d.charCode=c.charCode;return!!a.dispatchEvent(d)}function b(a){var b=d.B(),c=b.startContainer,e={};if(P(c,"li")&&Q(a.firstChild,"ol,ul,li")){b={Re:[],lastChild:null};e=P(d.B().startContainer,"li");f.Oa(e)&&rc(e);e=vd("ol,ul",a);for(c=0;c<e.length;c++){var g=e[c];if(null!=g){for(var h=!0,m=g.parentNode;m;){if(-1!==["ol","ul"].indexOf(L(m))){h=!1;break}m=m.parentNode}h&&tc(g)}}e=!1;1<O(a)&&Q(a.lastChild.previousSibling,"li")&&f.Oa(a.lastChild)&&
Q(a.lastChild,"li")&&(e=!0);c=a.querySelector("li");Q(c.parentNode,"ol,ul")||tc(c);b.lastChild=a.lastChild;b.fi=e;b.Re=f.yd(a);d.B().insertNode(a);e=b}else(c=P(c,"a"))&&a.querySelector(".en-todo")&&(b.selectNode(c),b.collapse(0===b.startOffset)),e.lastChild=a.lastChild,e.Re=f.yd(a),b.insertNode(a);return e}function e(a){var b=d.B();b||(b=Kd(),b.selectNodeContents(h),b.collapse(!1),d.Zb(b),d.Ma());a||p.ha();return d.B()}var d=a.K("context"),f=a.K("query"),g=a.K("block"),l=a.K("normalize"),p=a.K("edit"),
h=d.root,m=d.Aa;a.A=function(a){function b(a){[].filter.call(a.childNodes,function(a){return f.O(a)&&f.Gc(a)&&K(a)>=d.B().startOffset}).forEach(function(a){a.parentNode.removeChild(a)})}if(!p.ha({Dd:!1}))return!1;if(!d.B())return v.warn("insertPlainText did fail due to missing content"),!1;var c;t(a)&&(c=a);var e;a instanceof DocumentFragment?e=a:a instanceof Node&&(e=document.createDocumentFragment(),e.appendChild(a));e&&Ad(document.createElement("body"),function(a){a.appendChild(e);c=Jc(a).replace(/\u00A0/g,
" ")});f.W(d.B().startContainer)?b(d.B().startContainer):f.W(d.B().startContainer.parentNode)&&b(d.B().startContainer.parentNode);a=c.split(/\n/gi);for(var g=d.X("insertparagraph").action,h=0;h<a.length;h++){var m=a[h];0<h&&g&&g();if(m&&m.length){var l=d.B(),w=l.startContainer,l=l.startOffset;0<=l-1&&l-1<w.childNodes.length&&3===w.childNodes[l-1].nodeType&&(w=w.childNodes[l-1],l=O(w));0<=l&&l<w.childNodes.length&&3===w.childNodes[l].nodeType&&(w=w.childNodes[l],l=0);f.W(w)&&f.Oa(w)&&(l=f.ld(w,l),
w=l[0],l=l[1]);d.M(w,l);m.trim()&&(0===m.indexOf(" ")&&(m=m.replace(/^\s/gi,"\u00a0")),3===w.nodeType?(w.insertData(l,m),d.M(w,l+m.length)):(1===w.childNodes.length&&f.Gc(w.firstChild)&&w.removeChild(w.firstChild),w=document.createTextNode(m),d.B().insertNode(w),d.M(w,m.length)))}}d.B().collapse(!1);return!0};a.insertNode=function(c,m,p,y){function u(a){[].filter.call(a.childNodes,function(a){return f.O(a)&&!f.zg(a)&&(!$c(a)||f.Gc(a))&&K(a)>=d.B().startOffset}).forEach(function(a){a.parentNode.removeChild(a)})}
if(!c)return v.warn("insertNode failed due to missing content"),!1;var z=e(),F;m&&(F=document.createTextNode("\u00a0"),z.insertNode(F),z.selectNode(F),d.X("removeformat").action(),d.M(F,1));var C;t(c)?C=xc(c,h):c instanceof DocumentFragment?C=c:c instanceof Node&&(C=document.createDocumentFragment(),C.appendChild(c));p&&(a.K("transform").hc(C,3,y?{info:{source:y}}:void 0),l.nc());if(0<Xd(z,"table").length||P(z.startContainer,"table")||P(z.endContainer,"table"))if(p=T("table",C),0<p.length)for(y=a.K("simpletext"),
c=0;c<p.length;c++){var w=p[c],D=w.nextSibling,V=w.parentNode,Y=y.Ge(w);Oc(w,V)&&V.removeChild(w);D?V.insertBefore(D,Y):V.appendChild(Y)}z.collapse(!1);d.Zb(z);d.Ma();if(null==C.childNodes||0===C.childNodes.length)return v.warn("insertNode failed to empty content argument"),!1;f.W(d.B().startContainer)?u(d.B().startContainer):m&&f.W(d.B().startContainer.parentNode)&&u(d.B().startContainer.parentNode);z=b(C);C=z.Re;m=z.lastChild;d.M(m.parentNode,K(m)+1);g.Rb(d.B().startContainer);g.Rb(m);for(c=0;c<
C.length;c++)g.Ja(C[c]);F&&1===F.length&&d.removeNode(F);d.Ma();l.nc();z.fi&&m&&m.previousSibling&&(F=m.previousSibling,I(m),m=F);m&&m.parentNode&&d.Yg(m);return!0};m.inserthtml={U:!0,ta:!0,action:function(b){if(null!=b){var c=null;t(b)?(e(),c=xc(b,h)):c=b;null!=c&&(a.K("transform").hc(c,3),l.nc(),a.insertNode(c,!1,!1))}return!0},value:function(){var a=d.B();if(!a||a.collapsed)return"";var b=f.kd(a.startContainer,a.startOffset);a.setStart(b[0],b[1]);a=a.cloneContents();return yb(a)}};m.inserttext=
{U:!0,action:function(b){return a.A(b)}};a.Ld=function(b,c){c=B(c,{value:"",selection:"",source:"",resources:[]},!1);c=B(Nb(b),c,!0);var f=c.mode,g=c.type,m=ib(c.value),l=c.selection,p=c.source,C=c.resources||[];C&&0<C.length&&a.K("resource").ge(C);l&&(Pe(d.root,l),d.Ha());if(t(m)){if("raw"!==f&&wb(m.trim()))return f=M("a",{href:m.trim()}),"html"===g?f.innerHTML=m:f.innerText=m,a.insertNode(f,!0,!1,p);if("pre"===f)for(var l=/\u00a0\u00a0/gi,m=m.replace(/\t/gi,"    "),C=/ {2,}/gi,w;w=C.exec(m);)var D=
w[0].replace(/\s/gi,"\u00a0").replace(l,"\u00a0 "),m=m.substring(0,w.index)+D+m.substring(w.index+w[0].length);if("plain"===g)return a.A(m);e(!0);l=xc(m,h);if(!l)return!0;if("raw"===f)return a.insertNode(m,!0,!1,p);if("html"===g&&("plain"===f||"pre"===f||"simple"===f)){g=a.K("simpletext");if(g="simple"===f?g.Lg(l):g.Ge(l))m=g.ownerDocument.createRange(),m.selectNodeContents(g),l=m.cloneContents();if("plain"===f||"pre"===f)return a.A(l)}return a.insertNode(l,!0,"rich"===f||"simple"===f,p)}return!0};
m.paste={U:!0,action:function(b){return a.Ld(b,{type:"html",mode:"rich"})}};m.pasteraw={U:!0,action:function(b){Ta('Please use execCommand("paste", { type: "html", mode: "raw", "value": ... })');return a.Ld(b,{type:"html",mode:"raw"})}};m.pasteplain={U:!0,action:function(b){Ta('Please use execCommand("paste", { type: "plain", mode: "pre", "value": ... })');return a.Ld(b,{type:"plain",mode:"pre"})}};m.pastesimple={U:!0,action:function(b){Ta('Please use execCommand("paste", { type: "html", mode: "simple", "value": ... })');
return a.Ld(b,{type:"html",mode:"simple"})}};a.D.B({name:"type",action:function(b){for(var d=0;d<b.length;d++){var e=b.charCodeAt(d);if(c(h,"keydown",{keyCode:e})&&c(h,"keypress",{keyCode:e})&&c(h,"textInput",{keyCode:e})){try{document.execCommand("inserttext",!1,b[d])}catch(f){v.log("Using fallback for native inserttext command"),a.A(b[d]),c(h,"input",{})}c(h,"keyup",{keyCode:e})}}return!0},enabled:Na});a.D.B({name:"event",action:function(a){var b=Nb(a);a=new document.defaultView.CustomEvent(b.type,
b);a.data=b.data;if(null!=b.html&&(h.innerHTML=b.html,null!=b.selection)){var c=U(h),b=Ne(h,b.selection);c&&b&&!Td(c,b)&&Ld(b)}h.dispatchEvent(a);return!0},enabled:Na});a.D.B({name:"selection",action:function(a){Pe(h,a);return!0},enabled:Na})};a.S=function(){a.C=null}};function ng(){function a(a,b){var c=a.toString();(null!=b?b:1)&&(c=c.trim());return d.L()?c:c.substr(0,d.J.maxLength)}function c(a){try{document.execCommand("inserttext",!1,a.toString())}catch(b){v.error("InsertText did fail with",a),U(f).insertNode(document.createTextNode(a))}}function b(a){A(null!=a&&t(a),"textfield: provide a non-null string to attempt insert into textfield");a=a.replace(/\s+/gi," ");if(d.L())return d.A.cb(function(){c(a)}),!0;var b=d.fd(!0);b<a.length&&e();var f=a.substr(0,Math.max(0,
b));return 0<f.length?(d.A.cb(function(){c(f)}),!0):!1}function e(){!0===d.J.Ff&&df("warning",{module:d.J.name})}A(this instanceof ng,"Use `new` to instantiate this class");var d=this,f=null,g=!1;d.name="textfield-"+zb();d.J=null;d.A=null;d.Z=null;d.G=function(g){d.J=B(g,{element:null,dg:!1,maxLength:0,placeholder:null,qf:!1,Bg:!0,Pf:!0,active:!0,Mf:["textfield"],Hc:null,ne:null,Qf:null,name:null,fontsize:null,Ff:!1});f=d.J.element;A(!!f&&J(f),'"element" option must be an HTMLElement');!0===d.J.Ff&&
A(null!=d.J.name,'"name" is required for warnings to be enabled');d.D.bd({Ib:d.J.Mf});d.V(d.J.placeholder);d.fa(d.J.fontsize);d.setActive(d.J.active);A(!(d.J.dg&&d.J.maxLength),"Max length not supported for multi line fields");d.D.listener(f,"input",function(){if(!(d.L()||0<=d.fd())){f.normalize();f.focus();var b=f.firstChild;if(null!=b){b.textContent=a(f.textContent,!1);var c=U(b);null!=c&&Ld(Kd(b,Math.min(0!==c.endOffset?c.endOffset:d.J.maxLength,d.J.maxLength)))}}d.J.Hc&&d.I(!0)});d.D.listener(f,
"textInput",function(a){return d.L()||0!==d.fd(!0)?!0:(e(),W(a))});d.J.ne&&d.J.name&&(d.D.listener(f,"blur",function(){hf(d.J.name,{focus:d.hasFocus()})}),d.D.listener(f,"focus",function(){d.focus()}));d.J.Hc&&d.D.listener(f,"blur",function(){d.Ic()&&Lb(d.J.Hc,{target:f,value:d.C(!1),blur:!0})});d.J.Qf&&d.D.listener(f,"paste",function(a){if(a&&a.clipboardData){var c=a.clipboardData.getData("text/plain");b(c);return W(a)}});if(d.J.Pf){var p=function(a,c){c=B(Nb(a),c,!0);var d=c.value;"html"===c.type&&
(d=xc(d,f).textContent);return b(d)};d.D.B({name:"paste",action:function(a){if(d.hasFocus())return p(a,{type:"html",mode:"plain",value:""})},enabled:function(){return d.hasFocus()}});d.D.B({name:"pasteplain",action:function(a){if(d.hasFocus())return Ta('Please use execCommand("textfield.paste", { type: "plain", mode: "plain", "value": ... })'),p(a,{type:"plain",mode:"plain",value:""})},enabled:function(){return d.hasFocus()}});var h=function(){var a=U(f);return!(!a||a.collapsed)};d.D.B({name:"copy",
value:function(){if(!h())return null;var a=U(f);return{plain:ib(a.toString())}},enabled:h});d.D.B({name:"inserttext",action:function(a){if(d.hasFocus())return d.A.cb(function(){c(a)}),!0},enabled:function(){return d.hasFocus()}});d.D.B({name:"delete",action:function(a){return"selection"===a?(document.execCommand("delete"),!0):!1},enabled:function(a){return"selection"===a?d.hasFocus():!1}});d.D.B({name:"placeholder",action:function(a){d.V(a||null)},enabled:function(){return!(!this.J||!this.J.queryGroupName)}})}d.J.Bg&&
(d.A=new Gf,d.ea().G(d.A,{element:f}));d.D.B({name:"content",action:function(b){!d.J.qf||b&&a(b)!==d.H()||(b="");d.R(b);return!0},value:function(a){g=B(Nb(a),{resetChangesState:!0});g.resetChangesState&&d.I(!1);return d.C()||(d.J.qf?d.H():"")},enabled:Na,cc:!0});d.D.B({name:"active",action:function(a){d.setActive(Mb(a))},state:function(){return d.N()},enabled:Na,cc:!0});d.D.B({name:"focus",action:function(a){B(Nb(a),{clear:!1}).clear?Od():d.focus();return!0},state:function(){return d.hasFocus()},
enabled:Na,cc:!0});d.D.B({name:"changes",action:function(a){a=Mb(a);d.I(a);return!0},state:function(){return d.Ic()},enabled:Na,cc:!0});d.D.B({name:"selectall",action:function(){d.ba();return!0},enabled:function(){return d.hasFocus()}})};d.S=function(){d.setActive(!1);d.Z=null;d.J=null;f.removeAttribute("data-en-placeholder");f=null};d.C=function(b){b&&d.I(!1);if(d.J.multiline)return Jc(f);f.normalize();b=f.firstChild;return null!=b?a(b.textContent):""};d.R=function(b){f.textContent=a(b);d.I(!1)};
d.hasFocus=function(){if(!d.N())return!1;var a=U(f);return a&&(a=Qd(a))?!!P(a,dd):!1};d.focus=function(){f.focus();Ld(Kd(f,O(f)));d.J.ne&&d.J.name&&hf(d.J.name,{focus:d.hasFocus()})};d.ba=function(){f.focus();window.getSelection().selectAllChildren(f);d.J.ne&&d.J.name&&hf(d.J.name,{focus:d.hasFocus()})};d.H=function(){return f.getAttribute("data-en-placeholder")||""};d.V=function(b){null!=b?f.setAttribute("data-en-placeholder",a(b)):f.removeAttribute("data-en-placeholder")};d.setActive=function(a){a!==
d.N()&&(null==U(f)&&Od(),ed(f,a))};d.N=function(){return dd(f)};d.I=function(a){g=!!a;!1===g&&d.A.flush();!0===d.Ic()&&d.J.Hc&&Lb(d.J.Hc,{target:f,value:d.C(!1)});mc(f,"en-note-is-empty",ne(f))};d.Ic=function(){return g&&d.N()};d.fa=function(a){(a=Ie(a,"px","px"))&&0<a.value&&S(f,"font-size",a.gc)};d.L=function(){return 0>=d.J.maxLength};d.fd=function(a){var b=d.J.maxLength-f.textContent.length,c=U(f),c=null!=c?c.endOffset-c.startOffset:0;a&&(b+=c);return Math.max(0,b)}};function og(){function a(){Ta("Please use title.focus");return g.hasFocus()}function c(a){if("placeholder"===a)return g.H();if("focus"===a)return Ta("Please use title.focus"),g.hasFocus();Ta("Please use title.content");return g.C()||g.H()}function b(a){a=Nb(a);var b=!1,c=a.active;null!=c&&(Ta("Please use title.active"),g.setActive(c),b=!0);c=a.value;null!=c&&(Ta("Please use title.content"),e(c),b=!0);!0===a.focus&&(Ta("Please use title.focus"),g.focus(),b=!0);return b}function e(a){a&&a!==g.H()?g.C()!==
a&&g.R(a):g.R("");l=g.C()||g.H();g.I(!1)}A(this instanceof og,"Use `new` to instantiate this class");var d=this;this.name="title";var f=document.querySelector("#en-title");A(J(f),"Node for title required");var g=null,l=null;d.G=function(p){p=B(p,{active:!0,value:"",placeholder:"Untitled",placeholderAsDefaultValue:!0,fontsize:null});d.D.bd({Ib:["title"]});g=new ng;d.ea().G(g,{element:f,dg:!1,maxLength:255,placeholder:p.placeholder,qf:p.placeholderAsDefaultValue,Bg:!0,Pf:!0,active:p.active,Hc:"titlechanged",
Mf:["title"],ne:!0,Qf:p.pasteEvent,name:d.name,fontsize:p.fontsize,Ff:!0});d.D.M(function(){g=null});l=p.value;e(l);d.D.listener(f,"keydown",function(a){var b=!1,c=(a.shiftKey?1:0)+(a.altKey?2:0)+(a.metaKey?4:0)+(a.ctrlKey?8:0);9===a.keyCode?0===c?(Z.execCommand("content.focus",{pos:"top",force:!0}),b=!0):1===c&&(kf(d.name),b=!0):13===a.keyCode&&(0===c?(Z.execCommand("content.focus",{pos:"top",force:!0}),b=!0):1===c?(kf(d.name),b=!0):4!==c&&6!==c&&(b=!0));return b?W(a):!0});d.D.B({name:"title",action:b,
value:c,state:a,enabled:Na})}};function pg(){var a=this;a.name="crypt";a.G=function(){function c(a){if(a){var b=a.id;a=a.rev;if(b&&a)return l(b,a)}return(b=f())?g(b):null}function b(){var b=U(q);if(!b||b.collapsed)return v.error("No selection"),!1;b=a.K("copy").Og(q,b,{html:!0});if(!b&&!b.html)return v.error("Failed to extract content",b),!1;b=b.html;if(0< !b.length)return v.error("Extracted content is empty",b),!1;var c=l();c.plainText=b;c.length="128";c.cipher="AES";c.hint="";var e=d(c);if(!a.K("edit").ha())return!1;b=m.B();
b.insertNode(e);b=Kd();b.selectNode(e);b.collapse(!1);Ld(b);v.log("pre post");a.D.timeout(function(){v.log("in post");df("encrypt",c);v.log("post post")},0);return!0}function e(b,c,d){var e=b.plainText;if(null!=e){var f=document.getElementById(b.id);if(f&&!E(f,"en-crypt-revealed")&&(m.de(f),m.B())){for(;f&&!r.W(f.parentNode)&&!r.kc(f.parentNode);)n.ya([f]);!0===c?a.K("paste").Ld({value:e,type:"html",mode:"rich"}):(c={"class":"en-crypt en-crypt-revealed en-container",id:b.id},c["data-en-crypt-rev"]=
b.rev,b=M("div",c),Bc(b,e),!0===d&&ed(b,!1,!0),a.K("transform").hc(b,3),a.K("edit").ng(b),m.M(b,O(b)))}}}function d(a){var b={src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","class":"en-crypt en-crypt-placeholder en-object-placeholder",id:a.id};b["data-en-crypt-rev"]=a.rev;return M("img",b)}function f(){var a=U(q);if(!a)return null;var b=Pd(a,".en-crypt",q);return b?b:(a=Xd(a,".en-crypt"))&&a.length?a[0]:null}function g(a){var b=a.id;a=a.getAttribute("data-en-crypt-rev");
return b&&a?l(b,a):null}function l(b,c){b=b||Ab(a.name);var d=z[b];null==d&&(d={},z[b]=d);c=c||Ab(b);var e=d[c];null==e&&(e={id:b,rev:c},d[c]=e);return e}var p=!1!==he.rte.cryptLegacy,h=!0===he.rte.cryptReadOnly,m=a.K("context"),r=a.K("query"),n=a.K("block"),q=m.root,y=m.Aa;a.D.listener(q,"click",function(a){a=a.target;E(a,"en-crypt-placeholder")&&(a=l(a.id,a.getAttribute("data-en-crypt-rev")),df("decrypt",a))});if(p){var u=function(){var a=m.B();if(!a||a.collapsed)return"";var b=r.kd(a.startContainer,
a.startOffset);a.setStart(b[0],b[1]);a=a.cloneContents();return yb(a)};y.insertcrypto={ta:!0,action:function(b){if(!m.B())return v.error("insertCryptoAction: No range",b),!1;a.K("edit").ha()&&a.K("paste").insertNode(b,!1,!0);return!0},value:u};y.revealcrypto={ta:!0,tc:!0,action:function(b){var c=m.B();if(!c)return!1;c=r.ic(c,J);if(!c&&0>=c.length)return!1;for(c=c[0];c&&!r.W(c.parentNode)&&!r.kc(c.parentNode);)n.ya([c]);b=xc(b);if(!b)return!1;b=b.firstChild;a.K("transform").hc(b,3);a.K("edit").ng(b);
m.M(b,O(b));return!0},value:u}}var z={};a.Rg=function(){if(h)return[];var a=[],b,c;for(b in z)for(c in z[b]){var d=z[b][c];null!=d.plainText&&null==d.cipherText&&a.push(d)}return a};a.If=function(a){l(a.id,a.rev).cipherText=a.cipherText};a.D.pa(q,"beforeGetContent",function(){if(!h)for(var a=Ua(q.getElementsByClassName("en-crypt-revealed")),b=a.length-1;0<=b;b--){var c=a[b],d=g(c);if(d){var e=c.innerHTML;if(d.plainText!==e){var f=l(d.id);c.setAttribute("data-en-crypt-rev",f.rev);qb(f,d,!0);f.plainText=
e;delete f.cipherText;delete d.plainText}}}});a.D.B({name:"crypt",action:function(f){var g,w;m.Ha();if(ub(f))return b();g=Nb(f);if(f=g.encrypt)a.If(f);else if(f=g.decrypt)g=f.id,w=f.rev,g=l(g,w),g.plainText=f.plainText,e(g,g.revert,h);else if(f=g.revert){g=c(f);if(!g)return!1;f.plainText&&(g.plainText=f.plainText);null!=g.plainText?e(g,!0):(g.revert=!0,df("decrypt",g))}else if(f=g.open){g=c(f);if(!g)return!1;f.plainText&&(g.plainText=f.plainText);null!=g.plainText?e(g,!1,h):df("decrypt",g)}else if(f=
g.close){g=c(f);if(!g)return!1;a.K("undo").flush();(f=document.getElementById(g.id))&&!E(f,"en-crypt-placeholder")&&(g=d(g),sc(f,g),m.de(g),m.B().collapse(!1))}else return v.error("Invalid crypt value",g),!1;m.Ma();return!0},state:function(a){var b=f();return b?"open"===a?E(b,"en-crypt-revealed"):"closed"===a?E(b,"en-crypt-placeholder")||!E(b,"en-crypt-revealed"):!0:!1},value:function(a){if("selected"===a){if(a=f()){var b=g(a);b.open=E(a,"en-crypt-revealed");return b}return""}return{count:{},items:{}}},
enabled:function(a){if(!ub(a))return!0;a=U(q);return!(!a||a.collapsed||Pd(a,".en-crypt",q)||!(0>=Xd(a,".en-crypt").length))}});a.Gf=function(a){p||vd(".en-crypt-revealed",a).forEach(function(a){var b=g(a);b&&(b=d(b),sc(a,b))})};a.Wa=function(a,b){1===b?vd("en-crypt",a).forEach(function(a){var b;p?(b="en-crypt:"+a.textContent.trim()+":"+a.getAttribute("cipher")+":"+a.getAttribute("length")+":"+a.getAttribute("hint"),b=M("embed",{type:"evernote/x-crypto",align:"absmiddle",id:b})):(b=l(),b.cipherText=
a.textContent,b.length=a.getAttribute("length"),b.cipher=a.getAttribute("cipher"),b.hint=a.getAttribute("hint"),b=d(b));sc(a,b)}):2===b&&(p||vd('embed[type="evernote/x-crypto"]',a).forEach(function(a){var b=a.getAttribute("id").split(":"),c=l();c.cipherText=b[1];c.cipher=b[2];c.length=b[3];c.hint=b.slice(4).join(":");b=d(c);sc(a,b)}))};a.Za=function(a,b,c){if(1===b)if(p){var d=c.crypto||{};A(d,"Expected a crypto info on Mac here",d);T("div.en-crypt-revealed,div.en-crypto-revealed",a).forEach(function(b){var c=
b.getAttribute("id");d[c]?(c=d[c].split(":"),c=yc(a,"en-crypt",{cipher:c[2],length:c[3],hint:c.slice(4).join(":")},[c[1]]),sc(b,c)):v.error("Found revealed crypto but not replacement. Key:",c)});vd('embed[type="evernote/x-crypto"]',a).forEach(function(b){var c=b.getAttribute("id").split(":"),c=yc(a,"en-crypt",{cipher:c[2],length:c[3],hint:c.slice(4).join(":")},[c[1]]);sc(b,c)})}else vd(".en-crypt",a).forEach(function(b){var c=g(b);c&&null!=c.cipherText?(c=yc(a,"en-crypt",{cipher:c.cipher,length:c.length,
hint:c.hint},[c.cipherText]),sc(b,c)):I(b)});else 2===b?p||vd(".en-crypt",a).forEach(function(b){var c=g(b);c&&null!=c.cipherText?(c=yc(a,"embed",{type:"evernote/x-crypto",id:"en-crypt:"+c.cipherText+":"+c.cipher+":"+c.length+":"+c.hint}),sc(b,c)):I(b)}):3!==b&&v.error("Other transformers EN-CRYPT!!!")}}};function qg(){var a=this;a.name="edit";a.G=function(){function c(a){function b(a){return Q(a,"ol,ul")}for(var c=null;Ua(a.childNodes).some(b);){var d=a.lastChild;b(d)||!c&&zd(d)?(c=null,a.parentNode.insertBefore(d,a.nextSibling)):(c||(c=M("li"),a.parentNode.insertBefore(c,a.nextSibling)),c.appendChild(d))}}function b(b){if(!b||!a.ha({Dd:!1}))return!1;var c=n.B();if(!q.O(n.B().startContainer)&&!q.ib(n.B().startContainer))return!0;q.W(c.startContainer)&&1==c.startContainer.childNodes.length&&$c(c.startContainer.firstChild)&&
0==c.startOffset&&c.startContainer.removeChild(c.startContainer.firstChild);c.insertNode(b);n.M(b.parentNode,1+K(b));return!0}function e(a){if(g())return!1;window.getSelection().isCollapsed&&(window.getSelection().modify("extend",a?"backward":"forward","lineboundary"),n.Ha());return n.X(a?"delete":"forwarddelete").action()}function d(a){if(g())return!1;if(!window.getSelection().isCollapsed)return n.X("delete").action();var b=P(n.B().startContainer,"li");u.Id()&&null!=b&&q.Oa(b)||(window.getSelection().modify("extend",
a?"backward":"forward","word"),n.Ha());return n.X(a?"delete":"forwarddelete").action()}function f(){var b=n.B();if(b.collapsed){z.$g();var c=y.wc();if(1!==O(c)||!R(c.firstChild,"div")||1!==O(c.firstChild)||!R(c.firstChild.firstChild,"br")){u.Ac(b.startContainer,b.startOffset);for(var d=b.startContainer,b=b.startOffset;;)if(0===b&&q.O(d.previousSibling)&&q.va(d.previousSibling))d.parentNode.removeChild(d.previousSibling);else if(0<=b-1&&b-1<d.childNodes.length&&q.O(d.childNodes[b-1])&&q.va(d.childNodes[b-
1]))d.removeChild(d.childNodes[b-1]),b--;else if(0===b&&q.$(d)||q.va(d))b=K(d),d=d.parentNode;else{if(0<=b-1&&b-1<d.childNodes.length&&q.O(d.childNodes[b-1])&&R(d.childNodes[b-1],"a")){u.Nd(d.childNodes[b-1]);return}if(0<=b-1&&b-1<d.childNodes.length&&!q.W(d.childNodes[b-1])&&!$c(d.childNodes[b-1])&&!me(d.childNodes[b-1]))d=d.childNodes[b-1],b=O(d);else break}if(0<b&&3===d.nodeType)c=1,1<b&&gb(d.textContent.substring(b-2,b))&&(c=2),n.M(d,b-c,d,b),a.ha();else if(q.O(d)&&0<=b-1&&b-1<d.childNodes.length&&
(Q(d.childNodes[b-1],"br,hr")||me(d.childNodes[b-1])))n.M(d,b-1,d,b),a.ha();else if(!q.$(d)){if(Q(d,"li,dt,dd")&&0===b){if(F){if(d.parentNode.firstChild!==d&&"true"!==d.getAttribute("data-en-list-collapse")){d.setAttribute("data-en-list-collapse","true");return}d.getAttribute("data-en-list-collapse")&&d.removeAttribute("data-en-list-collapse")}if(d.parentNode.firstChild===d){b=[];for(c=d.parentNode;c;c=c.parentNode)R(c,"li")&&b.unshift(c);for(c=0;c<b.length;c++)u.Yb(b[c]);b=y.Ca([d]);u.ya([d]);y.wa(b);
Q(d,"dd,dt")&&q.Vb(d).every(function(a){return!q.ia(d,a)||!q.qa(d,a)})&&(d=n.Ka(d,"div"));u.Ja(d);return}}for(var c=d,e=b;;)if(0==e)e=K(c),c=c.parentNode;else if(0<=e-1&&e-1<c.childNodes.length&&q.O(c.childNodes[e-1])&&q.va(c.childNodes[e-1]))c.removeChild(c.childNodes[e-1]),e--;else break;if(0===b&&q.Yd(d,!0)&&q.Vb(d).concat(d).filter(function(a){return q.O(a)&&q.ia(a,d)&&q.mc(a)}).length)if(b=Kd(d,0),b=q.Ia(b),b=q.gb(b,function(a){return q.O(a)&&!q.kg(a)}),b.filter(function(a){return 3!==a.nodeType}).length)for(c=
0;c<b.length;c++)m(b[c]);else m(d);else if(!Q(d,"table,img,div.en_module,div.en_crypt"))if(0<=e-1&&e-1<c.childNodes.length&&Q(c.childNodes[e-1],"table,img,div.en_module,div.en_crypt"))n.M(c,e-1,c,e);else if(0===b&&(R(c.childNodes[e-1],"hr")||$c(c.childNodes[e-1])&&($c(c.childNodes[e-1].previousSibling)||!q.$(c.childNodes[e-1].previousSibling))))n.M(c,e-1,c,e),a.ha()&&n.M(d,b);else if(Q(c.childNodes[e],"li,dt,dd")&&Q(c.childNodes[e].previousSibling,"li,dt,dd"))c=c.childNodes[e-1],e=O(c),d=c.nextSibling,
n.M(c,e,d,0),a.ha();else{for(;0<=e-1&&e-1<c.childNodes.length;){var f=c.childNodes[e-1];q.O(f)&&q.va(f)?(c.removeChild(f),e--):Q(f,"hr, div.en-container")?e--:(c=f,e=O(c))}n.M(c,e,d,b);a.ha({direction:"backward"})}}}}else a.ha()}function g(){return!!a.K("textinput").Tg()}function l(a){z.Pc();for(var b=q.Ia(n.B()),b=q.ic(b,function(a){return 1===a.nodeType&&q.O(a)&&(a.hasAttribute("align")||""!=a.style.textAlign)}),c=0;c<b.length;c++){var d=b[c];d.removeAttribute("align");nd(d,"text-align")}if("left"!=
a)for(b=q.Ia(n.B()),b=q.gb(b,function(a){return q.O(a)&&R(a,"div")});b.length;)b.shift().setAttribute("style","text-align: "+a)}function p(a){var b=a.toLowerCase(),c="tl"===b,d=c?"ul":b,e=n.B();if(e){z.Pc();var f=u.hb()===b?"disable":"enable",g=function(a){return q.og(a,b)},l=function(a){return!g(a)&&Q(a,"ol,ul")},k=[];(function(){for(var a=e.endContainer;a!==e.commonAncestorContainer;a=a.parentNode)R(a,"li")&&k.unshift(a);for(a=e.startContainer;a;a=a.parentNode)R(a,"li")&&k.unshift(a)})();k.forEach(u.Yb);
a=q.Ia(e);"enable"===f&&q.ic(a,function(a){return q.O(a)&&l(a)}).forEach(function(a){if(q.O(a.previousSibling)&&g(a.previousSibling)||q.O(a.nextSibling)&&g(a.nextSibling)){a=[].slice.call(a.childNodes);var b=y.Ca(a);u.ya(a);y.lb(a,function(a){return g(a)});y.wa(b)}else n.Ka(a,d),mc(a,"en-todo-list",c),S(a,"-evernote-list-type",c?"todo":null)});a=q.gb(a,function(a){return q.O(a)&&(Q(a,"ol,ul")||Q(a.parentNode,"ol,ul")||q.qa(a,"li"))});if(1<a.length){var p=a[a.length-1];""===p.textContent&&($c(p)||
1===O(p)&&$c(pc(p)))&&(a=a.slice(0,a.length-1))}"enable"==f&&(a=a.filter(function(a){return!Q(a,"ol,ul")||Q(a.parentNode,"ol,ul")}));if("disable"==f)for(;a.length;){var r=[];r.push(a.shift());if(g(r[0]))m(r[0]);else{for(;a.length&&a[0]==r[r.length-1].nextSibling&&!g(a[0]);)r.push(a.shift());f=y.Ca(r);u.ya(r);for(p=0;p<r.length;p++)u.Ja(r[p]);y.wa(f);for(p=0;p<r.length;p++)Q(r[p].parentNode,"ol,ul")&&a.push(r.shift())}}else for(;a.length;){for(r=[];!r.length||a.length&&a[0]==r[r.length-1].nextSibling;)if(Q(a[0],
"p,div"))a[0].style.margin="",a[0].style.textAlign="",a[0].removeAttribute("align"),ld(a[0]),r.push(n.Ka(a[0],"li")),a.shift();else if(Q(a[0],"li,ol,ul"))r.push(a.shift());else{for(f=[];!f.length||a.length&&a[0]==f[f.length-1].nextSibling&&q.$(a[0])&&q.$(f[f.length-1])&&!$c(f[f.length-1]);)f.push(a.shift());for(;f.length&&zd(f[f.length-1]);)f.pop();f.length&&r.push(y.lb(f,void 0,function(){return M("li")}))}if(!g(r[0].parentNode)&&!r.every(function(a){return Q(a,"ol,ul")}))if(l(r[0].parentNode)){var r=
Ua(r[0].parentNode.childNodes),F=r[0].parentNode.getAttribute("type"),f=y.Ca(r);u.ya(r);y.lb(r,function(a){return g(a)},function(){return h(b,F)});y.wa(f)}else f=y.lb(r,function(a){return g(a)},function(){if(!(q.O(r[0].parentNode)&&q.Kd(r[0].parentNode)&&q.O(r[0].parentNode.previousSibling)&&g(r[0].parentNode.previousSibling))){var a=r[0].parentNode.getAttribute("type");return h(b,a)}var c=r[0].parentNode.previousSibling;u.Yb(c.lastChild);q.O(c.lastChild)&&g(c.lastChild)||(a=c.getAttribute("type"),
c.appendChild(h(b,a)));return c.lastChild}),u.Ja(f)}}}function h(a,b){A(0<=["ul","ol","tl"].indexOf(a.toLowerCase()));if("tl"===a)return M("ul",{"class":"en-todo-list",style:"-evernote-list-type:todo"});var c=M(a);b&&c.setAttribute("type",b);return c}function m(a){if(q.O(a))if(R(a,"div")){var b=q.Ad(a)-40;0<b?S(a,"margin-left",b+"px"):u.Nd(a)}else if(q.Kd(a))u.Nd(a);else if(q.mc(a))a.removeAttribute("dir"),a.style.margin="",a.style.padding="",a.style.border="",""!=a.getAttribute("style")&&"border-width: initial; border-color: initial; "!=
a.getAttribute("style")||a.removeAttribute("style"),n.Ka(a,"div");else{for(var b=a.parentNode,c=[];q.O(b)&&1==b.nodeType&&!q.Kd(b)&&!Q(b,"ol,ul");)c.push(b),b=b.parentNode;if(!q.O(b)||!q.Kd(b))for(b=a.parentNode,c=[];q.O(b)&&1==b.nodeType&&!q.mc(b)&&!Q(b,"ol,ul");)c.push(b),b=b.parentNode;if(Q(a,"ol,ul")&&(!q.O(b)||!q.mc(b))){a.removeAttribute("reversed");a.removeAttribute("start");a.removeAttribute("type");b=[].slice.call(a.childNodes);if(Q(a.parentNode,"ol,ul")||Ua(a.parentNode.childNodes).every(function(){return Q(a,
"ol,ul")||zd(a)}))c=y.Ca([].slice.call(a.childNodes)),u.Nd(a),y.wa(c);for(c=0;c<b.length;c++)u.Ja(b[c])}else if(q.O(b)&&q.mc(b)){c.push(b);for(var d=b;c.length;){var b=c.pop(),e=a.parentNode==b?a:c[c.length-1];q.$(e)&&!$c(e)&&$c(e.nextSibling)&&e.parentNode.removeChild(e.nextSibling);var f=[].slice.call(b.childNodes,1+K(e));r([].slice.call(b.childNodes,0,K(e)));r(f)}m(d)}}}function r(a){if(a.length){var b=a[0];if(Q(b.parentNode,"ol,ul")){var c=q.Cc(b.parentNode),d=b.parentNode.getAttribute("type");
y.lb(a,function(a){return q.og(a,c)},function(){return h(c,d)})}else{for(var b=!0,e=0;e<a.length;e++)E(a[e],"en-code")||P(a[e],".en-code")||(b=!1);for(;a.length;)e=a.shift(),R(e,"div")?b&&E(e,"en-code")?e.insertBefore(document.createTextNode("\u00a0\u00a0\u00a0\u00a0\u00a0"),e.firstChild):u.Ie(e):(e=y.lb([e],function(a){return q.Kd(a)?!0:!1},function(){return M("div",{style:"margin-left:40px;"})}),u.Ja(e))}}}var n=a.K("context"),q=a.K("query"),y=a.K("format"),u=a.K("block"),z=a.K("normalize"),F=!0===
n.J.smartList,C=n.Aa;a.ha=function(b){if(!n.B())return!0;z.Ue();var c=0<Xd(n.B(),"td").length;if(Pb.C()){var d={stop:!1,element:n.root,Ga:n.B()};Lb("beforeDelete",d);if(!0===d.stop)return!1}u.Mg(b);c&&a.A();z.nc();Qc(n.B().startContainer)||n.Ha();return!0};a.A=function(){for(var a=T("td",n.root),b=0;b<a.length;b++)if(0===O(a[b])){var c=M("div",{},[M("br")]);a[b].appendChild(c)}};C.deleteword={U:!0,Hb:!0,ta:!0,action:function(){return d(!0)}};C.forwarddeleteword={U:!0,Hb:!0,ta:!0,action:function(){return d(!1)}};
C.deleteline={U:!0,Hb:!0,ta:!0,action:function(){return e(!0)}};C.forwarddeleteline={U:!0,Hb:!0,ta:!0,action:function(){return e(!1)}};C["delete"]={U:!1,Hb:!0,ta:!1,action:function(b){if(g())return!1;y.Wg(function(){if("selection"===b)a.ha();else if("word"===b)d(!0);else if("line"===b)e(!0);else if(da(b))for(var c=0;c<b;c++)f();else f()});return!0}};C.forwarddelete={U:!1,Hb:!0,ta:!1,action:function(b){if(g())return!1;"selection"===b?a.ha():"word"===b?d(!1):"line"===b?e(!1):n.B().collapsed?(b=n.B(),
window.getSelection().modify("extend","forward","character"),window.getSelection().collapseToEnd(),n.Ha(),Td(b,n.B())||n.X("delete").action()):a.ha();n.Ma();return!0}};C.indent={U:!0,ta:!0,action:function(){z.Pc();for(var a=[],b=n.B().endContainer;b!=n.B().commonAncestorContainer;b=b.parentNode)R(b,"li")&&a.unshift(b);for(b=n.B().startContainer;b!=n.B().commonAncestorContainer;b=b.parentNode)R(b,"li")&&a.unshift(b);for(b=n.B().commonAncestorContainer;b;b=b.parentNode)R(b,"li")&&a.unshift(b);for(b=
0;b<a.length;b++)u.Yb(a[b]);a=q.Ia(n.B());a=q.gb(a,function(a){return q.O(a)&&Q(a,"div,li")});b=a.filter(q.xa)[0];if(R(b,"li")&&Q(b.parentNode,"ol,ul")){for(b=b.previousSibling;q.va(b);)b=b.previousSibling;R(b,"li")&&u.Yb(b)}for(;a.length;){b=[];for(b.push(a.shift());a.length&&a[0]==b[b.length-1].nextSibling;)b.push(a.shift());r(b)}return!0},enabled:function(){return n.hasFocus()&&!u.jb()}};C.outdent={U:!0,ta:!0,action:function(){z.Pc();var a=y.wc(),b=[];(function(){for(var a=n.B().endContainer;a!=
n.B().commonAncestorContainer;a=a.parentNode)R(a,"li")&&b.unshift(a);for(a=n.B().startContainer;a;a=a.parentNode)R(a,"li")&&b.unshift(a)})();b.forEach(u.Yb);for(var c=q.Ia(n.B()),c=q.gb(c,function(a){return q.O(a)&&(!q.yd(a).some(q.O)||Q(a,"ol,ul")||R(a,"li")&&Q(a.parentNode,"ol,ul"))}),d=!0,e=0;e<c.length;e++)E(c[e],"en-code")||P(c[e],".en-code")||(d=!1);for(e=[];c.length;){for(;c.length&&R(Zc(c[0],a),"div");){var f=Zc(c.shift(),a);if(-1===e.indexOf(f))if(e.push(f),d&&E(f,"en-code"))f=pc(f),Nc(f)&&
(f.textContent=f.textContent.replace(/\s{0,5}/,""));else{var g=q.Ad(f)-40;0<g?S(f,"margin-left",g+"px"):(nd(f,"margin-left"),nd(f,"margin"))}}for(;c.length&&(Q(c[0],"ol,ul")||!Q(c[0].parentNode,"ol,ul"));)m(c.shift());if(!c.length)break;f=[];for(f.push(c.shift());c.length&&c[0]==f[f.length-1].nextSibling&&!Q(c[0],"ol,ul");)f.push(c.shift());g=y.Ca(f);u.ya(f);f.forEach(u.Ja);y.wa(g)}return!0},enabled:function(){return n.hasFocus()&&!u.jb()}};C.inserthorizontalrule={U:!0,ta:!0,action:function(){if(u.Xd())return!1;
n.X("insertparagraph").action();var a=M("div",{},[M("hr")]),b=q.na(n.B().startContainer);n.aa(a,b.parentNode,K(b));return!0},enabled:function(){return n.hasFocus()&&!u.Xd()&&!u.jb()}};a.ng=b;C.insertimage={U:!0,ta:!0,action:function(a){if(""===a)return!1;a=M("img",{src:cg(a)});b(a);a.removeAttribute("width");a.removeAttribute("height");return!0}};C.insertlinebreak={ta:!0,action:function(){if(g())return!1;if(!u.Id())return n.X("insertparagraph").action();if(!a.ha({Dd:!1}))return!1;if(!q.O(n.B().startContainer)&&
!q.ib(n.B().startContainer)||1==n.B().startContainer.nodeType&&!q.qa("br",n.B().startContainer)||1!=n.B().startContainer.nodeType&&!q.qa("br",n.B().startContainer.parentNode))return!0;if(3==n.B().startContainer.nodeType&&0==n.B().startOffset){var b=n.B().startContainer.parentNode,c=K(n.B().startContainer);n.M(b,c)}3==n.B().startContainer.nodeType&&n.B().startOffset==O(n.B().startContainer)&&(b=n.B().startContainer.parentNode,c=1+K(n.B().startContainer),n.M(b,c));b=M("br");n.B().insertNode(b);n.M(b.parentNode,
1+K(b));q.Gc(b)&&(n.B().insertNode(M("br")),n.M(b.parentNode,1+K(b)));return!0}};C.insertparagraph={U:"before",ta:!0,action:function(){if(g())return!1;var b=a.Qb("todo");if(!a.ha())return!1;var c=n.B().startContainer,d=n.B().startOffset;if(!q.O(c)&&!q.ib(c))return!0;3===c.nodeType&&0!==d&&d!==O(c)&&c.splitText(d);3===c.nodeType&&d===O(c)&&(d=1+K(c),c=c.parentNode);3===c.nodeType&&(d=K(c),c=c.parentNode);n.M(c,d);for(var e=c;!q.Ne(e)&&q.O(e.parentNode)&&q.ia(c,e.parentNode);)e=e.parentNode;if(q.O(e)&&
q.Ne(e)&&q.ia(c,e.parentNode)&&Q(e,"p,div")){for(var f=e;!Q(f,"dd,dt,li")&&q.O(f.parentNode);)f=f.parentNode;Q(f,"dd,dt,li")&&(e=f)}if(!q.O(e)||!q.ia(e,c)||!q.Ne(e)){f=q.Ia(n.B());f=q.gb(f,function(a){return q.qa(a,"p")}).slice(0,1);if(!f.length){if(!q.qa("div",n.B().startContainer))return!0;e=Kc();n.B().insertNode(e);n.M(e,0);return!0}for(;f[f.length-1].nextSibling&&q.qa(f[f.length-1].nextSibling,"p");)f.push(f[f.length-1].nextSibling);e=y.lb(f,Ma,function(){return M("div")})}var f=!1,h=b?b.jf(e):
null;if(b&&null!=h){if(b.Ug(e))return rc(e),e.appendChild(M("br")),n.M(e,0),!0;f=!0}if(Q(e,"address,listing,pre"))return b=M("br"),n.B().insertNode(b),n.M(c,d+1),Oc(q.nextNode(b),e)||(n.B().insertNode(M("br")),n.M(c,d+1)),!0;Q(e,"li,dt,dd")&&u.Yb(e);if(Q(e,"li,dt,dd")&&q.Oa(e))return u.ya([e]),q.Gd(e)||(n.Hg(e),e.appendChild(M("br"))),Q(e,"dd,dt")&&q.Vb(e).every(function(a){return!q.ia(e,a)||!q.qa(e,a)})&&(e=n.Ka(e,"div")),u.Ja(e),!0;for(d=Kd(n.B().startContainer,n.B().startOffset,e,O(e));0===d.startOffset&&
!q.Kc(d.startContainer);)d.setStart(d.startContainer.parentNode,K(d.startContainer));for(;d.startOffset===O(d.startContainer)&&!q.Kc(d.startContainer);)d.setStart(d.startContainer.parentNode,1+K(d.startContainer));var c=q.gb(d),h=!c.length||1===c.length&&$c(c[0]),c=Qd(n.B()),c=P(c,function(a){return 0>["a","tt"].indexOf(L(a))},y.wc())||c,c=y.Ca([c]),m;Q(e,"h1,h2,h3,h4,h5,h6,tt")&&h?m="div":R(e,"dt")&&h?m="dd":R(e,"dd")&&h?m="dt":m=e.tagName.toLowerCase();var l=M(m);for(m=0;m<e.attributes.length;m++)l.setAttributeNS(e.attributes[m].namespaceURI,
e.attributes[m].name,e.attributes[m].value);l.removeAttribute("id");l.removeAttribute("class");F&&Yc(e,"data-en-list-collapse")&&l.removeAttribute("data-en-list-collapse");E(e,"en-code")&&G(l,"en-code");e.parentNode.insertBefore(l,e.nextSibling);var h=q.ic(d),d=d.extractContents(),k=q.yd(d);for(m=0;m<k.length;m++)1===k[m].nodeType&&-1===h.indexOf(k[m])&&k[m].removeAttribute("id");for(m=d.childNodes.length-1;0<=m;m--)h=d.childNodes[m],Nc(h)?zd(h)&&I(h):!$c(h)&&q.Oa(h)&&I(h);Q(e,"li")&&1<d.childNodes.length&&
!q.Oa(d)&&$c(d.childNodes[0])&&I(d.childNodes[0]);for(l.appendChild(d);q.Kc(e.lastChild);)e=e.lastChild;for(;q.Kc(l.lastChild);)l=l.lastChild;q.Gd(e)||(e.appendChild(M("br")),y.wa(c.map(function(a){a[0]=e;return a})));if(q.Gd(l))l.children&&1===l.children.length&&$c(l.children[0])&&y.wa(c.map(function(a){a[0]=l;return a}));else{if(f)return rc(l),b=b.ze(l),n.M(b.parentNode,O(b)+1),y.wa(c.map(function(a){a[0]=l;return a})),!0;l.appendChild(M("br"));y.wa(c.map(function(a){a[0]=l;return a}))}m=0;f&&!b.jf(l)&&
(A(3!==l.nodeType,"newContainer for checkbox insertion cannot be text"),b.ze(l),m++);b=q.ld(l,m);l=b[0];m=b[1];n.M(l,m);return!0}};C.insertorderedlist={U:!0,ta:!0,action:function(){p("ol");return!0},rb:function(){return"mixed"===u.hb()},value:function(){return u.hb()},state:function(){return"ol"===u.hb()},enabled:function(){return n.hasFocus()&&!u.jb()}};C.insertunorderedlist={U:!0,ta:!0,action:function(){p("ul");return!0},rb:function(){return"mixed"===u.hb()},value:function(){return u.hb()},state:function(){return"ul"===
u.hb()},enabled:function(){return n.hasFocus()&&!u.jb()}};C.inserttodolist={U:!0,ta:!0,action:function(){p("tl");return!0},rb:function(){return"mixed"===u.hb()},value:function(){return u.hb()},state:function(){return"tl"===u.hb()},enabled:function(){return n.hasFocus()&&!u.jb()}};[{name:"justifyfull",mode:"justify"},{name:"justifyleft",mode:"left"},{name:"justifycenter",mode:"center"},{name:"justifyright",mode:"right"}].forEach(function(a){C[a.name]={U:!0,ta:!0,action:function(){l(a.mode);return!0},
rb:function(){if(!n.B())return!1;var b=q.ic(q.Ia(n.B()),function(a){return q.O(a)&&q.xa(a)&&!a.hasChildNodes()});return b.some(function(b){return u.Rd(b)==a.mode})&&b.some(function(b){return u.Rd(b)!=a.mode})},state:function(){if(!n.B())return!1;var b=q.ic(q.Ia(n.B()),function(a){return q.O(a)&&q.xa(a)&&!a.hasChildNodes()});return b.length&&b.every(function(b){return u.Rd(b)==a.mode})},value:function(){if(!n.B())return"";var a=q.ic(q.Ia(n.B()),function(a){return q.O(a)&&q.xa(a)&&!a.hasChildNodes()});
return a.length?u.Rd(a[0]):"left"},enabled:function(){return n.hasFocus()&&!u.Id()&&!u.jb()}}});C.selectall={action:function(){window.getSelection().selectAllChildren(n.root);return!0},enabled:Na,tc:!0};C.tab={U:!0,ta:!0,action:function(b){if(g())return!1;var c="true"===b||1===+b;if(u.Id()||!n.B().collapsed)return n.X(c?"outdent":"indent").action();if(u.tg()){var d=a.Qb("table");d&&(b=d.Y(),d=d.Sd(),c?(b=xd(d,"td",b))&&n.M(b,0):(c=wd(d,"td",b),c||(n.X("inserttablerow").action("after"),c=wd(d,"td",
b)),n.M(c,0)))}else c||(n.X("inserthtml").action("\u00a0\u00a0\u00a0\u00a0\u00a0"),(b=U(n.root))&&b.endContainer&&b.endContainer.parentNode&&n.Zg());return!0},enabled:function(){return n.hasFocus()&&!u.jb()}};a.Wa=function(a){function b(a,c,d){for(var e=a.getElementsByTagName("o:p"),f=e.length;f--;)I(e[f]);f=a.parentNode;a.removeAttribute("style");a=Ic(a,"div");e=null;a.previousElementSibling&&(1===c&&Q(a.previousElementSibling,d)||1<c&&Q(a.previousElementSibling,"ul,ol"))?e=a.previousElementSibling:
(e=yc(a,d),f.insertBefore(e,a));f=yc(e,"li");for(f.appendChild(a);1<c;){a=Id(e);if(Q(a,"ol,ul"))e=a;else if(Q(a,"li")&&Q(Id(a),"ol,ul"))e=Id(a);else{var g=yc(e,d);a?a.appendChild(g):e.appendChild(g);e=g}c--}e.appendChild(f)}T("p",a).forEach(function(a){1===O(a)&&"o:p"===L(a.firstChild)&&(I(a.firstChild),a.appendChild(yc(a,"br")),Ic(a,"div"))});T('div[style*="mso-line-break-override"]',a).forEach(function(a){var c=T('span[style*="mso-special-format"]',a);if(0<c.length){var d="ul";"bullet"!==md(c[0],
"mso-special-format").toLowerCase()&&(d="ol");1===O(c[0].parentNode)?I(c[0].parentNode):I(c[0]);b(a,1,d)}});T('div[style*="mso-list"],p[style*="mso-list"]',a).forEach(function(a){var c=md(a,"mso-list").toLowerCase();if(0<=c.indexOf("level")&&(c=parseInt(c.substr(c.indexOf("level")+5,1),10),!isNaN(c))){var d="ul",e=T('span[style*="mso-list:"]',a);if(0<e.length)for(var f=0;f<e.length;f++){var g=e[0];"ignore"===md(g,"mso-list").toLowerCase()&&(Jc(g).match(/[0-9]+.*/g)&&(d="ol"),Q(g.parentNode,"span")&&
1===O(g.parentNode)?I(g.parentNode):I(g))}b(a,c,d)}});vd('div[style~="margin-left:"]>ul,div[style~="margin-left:"]>ol',a).forEach(function(b){var c=b.parentElement;if(Q(c,"div")){for(var d=md(c,"margin-left"),d=+d.replace(/(\d+)em/gi,"$1"),e=null;0<d;){var f=yc(a,b.tagName);e?e.appendChild(f):c.parentNode.insertBefore(f,c.nextSibling);e=f;d-=2}e&&(uc(c,e),I(c))}});vd('li[style*="list-style:"]',a).forEach(function(a){"none"===md(a,"list-style")&&tc(a)});vd("li",a).forEach(c);vd("ol,ul",a).forEach(function(b){var c=
null;Ua(b.childNodes).forEach(function(b){-1!==["li","ol","ul"].indexOf(L(b))?c=null:zd(b)?I(b):Uc(b)?Ic(b,"li"):(c||(c=yc(a,"li"),b.parentNode.insertBefore(c,b.nextSibling)),c.appendChild(b))})});vd('ul[style*="-evernote-list-type"]',a).forEach(function(a){G(a,"en-todo-list");nc(a).forEach(function(a){if(R(a,"li")){var b=!1,c=T(".en-todo",a).shift();c&&(b=E(c,"en-todo-checked"),I(c));H(a,"en-todo-over");mc(a,"en-todo-checked",b)}})})};a.Za=function(a){vd("ul.en-todo-list",a).forEach(function(b){nc(b).forEach(function(b){if(R(b,
"li")){var c=yc(a,"img",{"class":"en-todo"});mc(c,"en-todo-checked",E(b,"en-todo-checked"));b.insertBefore(c,b.firstChild)}})});vd("ol>ul,ul>ol,ul>ul,ol>ol",a).forEach(function(b){var c=b.previousSibling;R(c,"li")?c.appendChild(b):(c=yc(a,"li",{style:"display:inline;list-style:none;"}),b.parentNode.insertBefore(c,b),c.appendChild(b))})}}};function rg(){this.name="typebehind-email-"+zb();this.ob=function(){return"email"};this.A=function(){return[/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/gi]};this.C=function(a,c,b){c=M("a");a.insertNode(c);A(null!=c,"new node is null");t(b)&&(c.setAttribute("href","mailto:"+b),c.textContent=b);return{node:c,ub:!1}};this.G=function(a){A(!0===a,"typebehind.email only accepts true as opt")}};function sg(){function a(a){var b=null;Jb.Bb.some(function(c){if(-1!==a.indexOf(c.icon)&&a.length===c.icon.length)return b=c,!0});return null==b?null:c(b)}function c(a){return M("object",{"class":"en-emoticon "+(b.color||b["default"]),contenteditable:"false"},[a.icon])}this.name="typebehind-emoticon-"+zb();var b={"default":"en-emoticon-yellow",yellow:"en-emoticon-yellow",orange:"en-emoticon-orange",pink:"en-emoticon-pink",purple:"en-emoticon-purple","dark-blue":"en-emoticon-dark-blue","light-blue":"en-emoticon-light-blue",
green:"en-emoticon-green",slate:"en-emoticon-slate",brown:"en-emoticon-brown",black:"en-emoticon-black"};this.ob=function(){return"emoticon"};this.A=function(){return Jb.za.map(function(a){return new RegExp(a,"g")})};this.C=function(a,b){var f;f=Jb.get(b.source);f=null==f?null:c(f);A(null!=f,"typebehind: emoji node failed to be created");a.insertNode(f);return{node:f,ub:!1}};this.Wa=function(b){td(b).forEach(function(b){var c=a(b.textContent);null!=c&&sc(b,c)})};this.Za=function(a){vd("object.en-emoticon",
a).forEach(function(a){sc(a,M("span",{style:"-evernote-sentoj-emoticon:true"},a.textContent))})};this.G=function(a){A(!0===a,"typebehind.emoticon only accepts true as opt")}};function tg(){this.name="typebehind-url-"+zb();this.ob=function(){return"url"};this.A=function(){return[/(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?((?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))))(?::\d{2,5})?(?:\/\S*)?/gi]};
this.C=function(a,c,b){c=M("a");a.insertNode(c);A(null!=c,"new node is null");t(b)&&(c.setAttribute("href",b),c.textContent=b);return{node:c,ub:!1}};this.G=function(a){A(!0===a,"typebehind.url only accepts true as opt")}};function ug(a){var c=this;c.name="typebehind-list-"+zb();c.ob=function(){return"list"};c.A=function(){return[/^\s*\*/gi,/^\s*[0-9]+\./gi]};c.od=function(){return!0};c.H=function(a){return null!=P(a.startContainer,"li")?!1:!0};c.L=function(a){var b,c,g=0;b=0;for(c=a.length-1;b<a.length;b+=1,--c)g+=Math.pow(26,c)*("ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(a[b])+1);return g};var b=[["M",1E3],["CM",900],["D",500],["CD",400],["C",100],["XC",90],["L",50],["XL",40],["X",10],["IX",9],["V",5],["IV",4],["I",1]];
c.N=function(a){for(var c=0,f=0;f<b.length;++f)for(var g=b[f],l=g[1],g=RegExp("^"+g[0]);a.match(g);)c+=l,a=a.replace(g,"");return c};c.C=function(b,d,f){b=c.A();d==b[0].toString()?a.X("insertunorderedlist").action():d==b[1].toString()&&(a.X("insertorderedlist").action(),d=U(),d=P(d.startContainer,"ol"),f=f.substr(0,f.length-1),1<f?d.setAttribute("start",f):d.removeAttribute("start"));return{node:null,ub:!0}};c.G=function(a){A(!0===a,"typebehind.list only accepts true as opt")}};function vg(a,c){this.name="typebehind-inline-"+zb();var b=/(?:\s+|\xa0+|^)\`(\S(?:.*\S)?)(?:[\xa0\\t ]*$)/gi,e=[{rx:/\*\*(\S(?:.*\S)?)\*/gi,cmd:"bold",len:2,value:"bold"},{rx:/\*(?!\*)(\S(?:.*\S)?)\*/gi,cmd:"italic",len:1,value:"italic"},{rx:/(?:\s+|\xa0+|^)__(\S(?:.*\S)?)__(?:[\xa0\\t ]*$)/gi,cmd:"underline",len:2,value:"underline"},{rx:/~~(\S(?:.*\S)?)~~/gi,cmd:"strikethrough",len:2,value:"line-through"},{rx:/(?:\s+|\xa0+|^)\!{2}(\S(?:.*\S)?)\!{2}(?:[\xa0\\t ]*$)/gi,cmd:"highlight",len:2,value:"rgb(255, 250, 165)"},
{rx:/(?:\s+|\xa0+|^)\`(?!\`)(\S(?:.*\S)?)\`(?:[\xa0\\t ]*$)/gi,cmd:"tt",len:1,value:"tt"}];this.ob=function(){return"inline"};this.A=function(){return[/(?!(\*{1,2}|_{1,2}|~{2}|\!{2}|\`)\s+\1)(\*{1,2}|_{1,2}|~{2}|\!{2}|\`)(\S(?:.*\S)?)\2/gi]};this.I=function(){return!0};this.C=function(d,f,g){var l=null,p=-1;f=null;for(var h=1,m=null,r=0;r<e.length;r++){f=e[r].cmd;var h=e[r].len,m=e[r].value,n=g.match(e[r].rx),l=null,p=-1;if(n&&0<n.length){l=n[0].trim();p=g.lastIndexOf(l);n=l[0];1<e[r].len&&(n+=n);
if(l.substr(l.length-n.length)!==n)return{node:null,ub:!1};if("tt"!==f&&g.match(b))r=e.length-2;else{r=$a(n);if(l.match(new RegExp("^"+r+"\\s*"+r+"$")))return{node:null,ub:!1};break}}}if(null!=l){g=d.startContainer;for(r=0;Wc(g);){if(Nc(g)){if(r+g.textContent.length>p)break;r+=g.textContent.length}g=Mc(g)}g=pc(g);l=d.endContainer;p-=r;d=d.endOffset-h;g.textContent=g.textContent.slice(0,p)+g.textContent.slice(p+h);g===l&&(d-=h);l.textContent=l.textContent.slice(0,d)+l.textContent.slice(d+h);h=c.sf(!0);
d=Kd(g,p,l,d);c.xe(f,m,d);Ld(Kd(d.endContainer,d.endOffset,d.endContainer,d.endOffset));a.X(f).action();c.Ob(h)}return{node:null,ub:!1}};this.G=function(a){A(!0===a,"typebehind.inline only accepts true as opt")}};function wg(){var a=this;a.name="typebehind-todo-"+zb();a.ob=function(){return"todo"};a.A=function(){return[/\[[\sxX]?\]/gi]};a.C=function(c,b,e){b=a.ec.A.K("todo").Uc();0<e.toLowerCase().indexOf("x")&&G(b,"en-todo-checked");c.insertNode(b);A(null!=b,"new node is null");t(e)&&(b.textContent=e.replace(/^\[[\sxX]?\]/,""));return{node:b,ub:!0}};a.G=function(a){A(!0===a,"typebehind.list only accepts true as opt")}};function xg(){this.name="typebehind-horizontalrule-"+zb();this.ob=function(){return"horizontalrule"};this.A=function(){return[/^\s*[\*\-\=]{3}[\s\*\-\=]*/gi]};this.H=function(a,c){return 13==c};this.od=function(){return!0};this.C=function(a){var c=M("hr");a.insertNode(c);return{node:c,ub:!1}};this.G=function(a){A(!0===a,"typebehind.horizontalrule only accepts true as opt")}};function yg(){this.name="typebehind-code-"+zb();this.ob=function(){return"code"};this.A=function(){return[/\`{3}/gi]};this.od=function(){return!0};this.H=function(a){return null!=P(a.startContainer,".en-code")?!1:!0};this.C=function(a){var c=M("div",{"class":"en-code"});c.appendChild(M("br"));a.insertNode(c);Ld(Kd(c.firstChild,0));return{node:null,ub:!0}};this.G=function(a){A(!0===a,"typebehind.code only accepts true as opt")}};function zg(a){var c=this;c.name="typebehind-table-"+zb();c.ob=function(){return"table"};c.A=function(){return[/^\s*(\[\s*\]){2,}([xX][0-9]+)?/gi]};c.od=function(){return!0};c.H=function(a){return null!=P(a.startContainer,"table,li")?!1:!0};c.C=function(b,e,d){c.A();b=d.split("][").length;d=d.match(/[0-9]+$/);e=1;d&&(e=parseInt(d[0],10));a.X("inserttable").action(b+","+e);a.Ma();return{node:null,ub:!1}};c.G=function(a){A(!0===a,"typebehind.table only accepts true as opt")}};function Ag(){var a=this;a.name="typebehind";a.G=function(c){function b(){var a=U(m);if(a&&a.collapsed){var b=a.endContainer,c=null;if(!(n.get("code")&&(E(a.startContainer,"en-code")||P(a.startContainer,".en-code"))||n.get("inline")&&Nc(a.endContainer)&&"tt"===L(a.endContainer.parentNode))){var f=n.za.slice();0<=f.indexOf("inline")&&f.splice(f.indexOf("inline"),1);if(32===y.currentlyProcessingCode)c=b.textContent.substring(0,a.endOffset);else if(9===y.currentlyProcessingCode)b=pc(b),Nc(b)&&(c=b.textContent,
a=Kd(b,c.length,b,c.length));else if(13===y.currentlyProcessingCode)b=Lc(b),b===a.endContainer.parentNode&&(b=Lc(b)),Nc(b)&&(c=b.textContent,a=Kd(b,c.length,b,c.length));else{b=a.endContainer;for(f=Lc(b);Wc(f)&&"tt"!==L(f)&&null==P(f,"tt",m);)b=f,f=Lc(b);a=Kd(b,0,a.endContainer,a.endOffset);c=a.toString();f=["inline"]}var g=!1;if(0<q.length)for(var l=0;l<q.length;l++){var p=q[l];if(0<=f.indexOf(p)){g=!0;break}}b=g&&oc(b,m);if(null!=c)for(l=0;l<f.length;l++){var p=f[l],r=n.get(p);if(!(!r.sa||r.H&&
!r.H(a,y.currentlyProcessingCode)||r.od&&!b)){var u=r.I&&!0,p=r.A(),Ja=e(c,p,u);if(Ja.possible){h.cb(function(){var b;b=r;var e=a,f=Ja.rx,g=c,h=u,m=e.endContainer;A(Nc(m),"typebehind: node must be text");A(null!=f,"must be given a regex to work");h?b=b.C(e,f,g):(g=d(g,f,h),e=g.matchString,g=g.index,m.replaceData(g,e.length,""),m=Kd(m,g,m,g),b=b.C(m,f,e));null!=b.node&&(f=b.node,32===y.currentlyProcessingCode?Ld(Kd(f.nextSibling,1)):9===y.currentlyProcessingCode&&Ld(Kd(f.nextSibling,5)));b.ub&&(f=
U(),f.startContainer&&Nc(f.startContainer)&&(f.startContainer.textContent=f.startContainer.textContent.replace(/(\xa0)+$/gi,""),null===b.node||Q(b.node,".en-todo")))&&(b=f.startContainer.parentNode,b.appendChild(M("br")),f=O(b),Ld(Kd(b,f,b,f)))});break}}}}}}function e(a,b,c){if(null==a||!t(a)||null==b)return{possible:!1,rx:null};for(var e=0;e<b.length;e++)if(d(a,b[e],c))return{possible:!0,rx:b[e]};return{possible:!1,rx:null}}function d(a,b,c){if(null==a||null==b)return null;b=b.source;c||(b="(?:\\s+|\u00a0+|^)("+
b+")(?:[\u00a0\\t ]*$)");(c=a.match(new RegExp(b,"gi")))&&1<c.length&&v.warn("Should not be multiple matches here!");if(null==c||0>=c.length)return null;c=c[0].trim();return{matchString:c,index:a.lastIndexOf(c)}}function f(a){u.forEach(function(b){if(a.keyCode===b)return y.shouldProcess=!0,y.currentlyProcessingCode=b,!0})}var g=a.K("context"),l=a.K("format"),p=B(c,{emoticon:!1,url:!1,email:!1,list:!1,inline:!1,todo:!1,horizontalrule:!1,code:!1,table:!1}),h=a.K("undo"),m=g.root,r=a.ea(),n=new Cb;n.set("emoticon",
new sg);n.set("url",new tg);n.set("email",new rg);n.set("list",new ug(g));n.set("inline",new vg(g,l));n.set("todo",new wg);n.set("horizontalrule",new xg);n.set("code",new yg);n.set("table",new zg(g));var q=[];n.za.forEach(function(a){var b=n.get(a),c=b.ob(),d=p[c];null!=d&&!1!==d&&(r.G(b,p[c]),b.od&&q.push(a))});var y={shouldProcess:!1,currentlyProcessingCode:null},u=[9,13,32];for(c=0;c<Aa.length;c++)u.push(Aa[c].charCodeAt(0));a.D.listener(m,"keypress",f);a.D.A("editingKeyEventOccurred",f);a.D.listener(m,
"keyup",function(){y.shouldProcess&&(y.shouldProcess=!1,b())});a.Wa=function(a,b){n.za.forEach(function(c){c=n.get(c);var d=p[c.ob()];null!=d&&!1!==d&&null!=c.Wa&&c.Wa(a,b)})};a.Za=function(a,b){n.za.forEach(function(c){c=n.get(c);var d=p[c.ob()];null!=d&&!1!==d&&null!=c.Za&&c.Za(a,b)})}}};function Bg(){var a=this;a.name="enml";var c=/^<!DOCTYPE[^>]*>\n?/g,b=/ +xmlns="(http:\/\/www.w3.org\/1999\/xhtml)?"/g,e=/<en-todo([^>]*?)><\/en-todo>/g,d=/<en-media([^>]*?)><\/en-media>/g,f=/<en-(todo|media)([^>]*?)\/>/g;a.G=function(g){function l(b,c){var d=c?b.documentElement:b.body&&b.body.firstElementChild;null==d&&(d=b.querySelector("en-note"));if(null==d)return v.error("Was not able to extract corrrect node",b),!1;if("en-note"!==L(d))return v.error("Invalid ENML. Expected en-note root node.",
d),!1;la.forEach(function(a){d.hasAttribute(a)?p.setAttribute(a,d.getAttribute(a)):p.removeAttribute(a)});var e=p.ownerDocument.importNode(d,!0);a.K("transform").hc(e,1);Dc(e,p);Ve(p,"setDirty",!1);return!0}var p=B(g,{root:null}).root||a.K("context").root,h=!1;a.Bd=function(a){a=a.replace(f,"<en-$1$2></en-$1>");var b=new DOMParser,c=null;h||(c=b.parseFromString(a,"text/html"));if(h||null==c)h=!0,c=document.implementation.createHTMLDocument(""),a=a.replace(/(\s*<\?xml.*?\?>\s*|\s*<!DOCTYPE[^>]*?>\s*)*/gi,
""),c.body.innerHTML=a;return null==c?(v.error("Was not able to parse",a),!1):l(c,!1)};a.A=function(b,c){var d=new XMLHttpRequest;null!=c&&(a.D.listener(d,"error",c.bind(null,!1,"Error loading "+b)),a.D.listener(d,"abort",c.bind(null,!1,"Cancelled loading "+b)));a.D.listener(d,"load",function(){var a=!1,b=this.responseXML;null!=b&&(a=l(b,!0));null!=c&&c(a)});d.open("GET",b);d.send()};a.oe=function(f){var g=B(f,{crypto:null,contentElement:p}),h=g.contentElement;f=document.implementation.createDocument("http://www.w3.org/1999/xhtml",
"en-note",document.implementation.createDocumentType("en-note","","http://xml.evernote.com/pub/enml2.dtd"));var l=f.documentElement;if(h.hasAttributes())for(var y=0;y<h.attributes.length;y++)-1!==la.indexOf(h.attributes[y].name.toLowerCase())&&l.setAttribute(h.attributes[y].name.toLowerCase(),h.attributes[y].value);Ve(p,"beforeGetContent");y=f.importNode(h,!0);null!=y&&uc(y,l);a.K("transform").Pd(l,1,g);a.ec.M(!0).forEach(function(a){"transform"!==a.name&&a.Za&&a.Za(l,1,g)});h=l.querySelectorAll("*[id],*[class],*[data-en-overlay-id]");
for(y=h.length-1;0<=y;y--){var u=h[y];u.removeAttribute("id");u.removeAttribute("class");u.removeAttribute("data");Ua(u.attributes).forEach(function(a){0===a.name.indexOf("data-")&&u.removeAttribute(a.name)})}f=(new XMLSerializer).serializeToString(f);return wc(ib(f).replace(c,'<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">').replace(b,"").replace(e,"<en-todo$1 />").replace(d,"<en-media$1 />"))};a.D.B({name:"enml",action:function(b){var c=Nb(b);if(c.url)a.A(c.url,function(a,b){a?
jf():v.error("Loading from "+c.url+" did fail: "+b)});else{if(!a.Bd(b))return!1;(b=a.Qb("undo"))&&b.clear()}return!0},value:function(b){return a.oe(Nb(b))},enabled:Na})}};function Cg(){function a(){c.D.listener(b,"click",function(a){if(Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")){var b=a.target,c={};c.src=b.getAttribute("src")||"";c.name=b.getAttribute("name")||"";b=c||{};b.tagname="img";df("clicked",b);a.preventDefault()}});c.D.listener(b,"dblclick",function(a){if(Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")){var b={};b.src=a.target.getAttribute("src")||"";b.name=
a.target.getAttribute("name")||"";b=b||{};b.tagname="img";df("doubleClicked",b);a.preventDefault()}})}var c=this;c.name="img";var b;c.G=function(e){!0===e.imageClickEvents&&(b=c.K("context").root,a())}};function Dg(){function a(a){null!=a&&a!=={}&&(g=a);T("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)",f).forEach(function(a){!0===a.complete?c(a):e.D.listener(a,"load",function(){c(a)})})}function c(a){e.gg(a);var c=b(a),d=c.width,c=c.height;null==d&&null==c?a.style.height="auto":null!=d&&null!=c&&Math.round(a.naturalHeight/a.naturalWidth*10)===Math.round(c/d*10)&&(a.style.height="auto")}function b(a){var b;null!=a.getAttribute("width")?b=parseInt(a.getAttribute("width"),
10):(b=parseInt(a.style.width,10),isNaN(b)&&(b=null));null!=a.getAttribute("height")?a=parseInt(a.getAttribute("height"),10):(a=parseInt(a.style.height,10),isNaN(a)&&(a=null));return{width:b,height:a}}var e=this;e.name="img-dpi";var d,f,g=null;e.bg=function(a){if(null==g)return a.naturalWidth;var b;if(null==g["images-dpi"][a.getAttribute("src")])return a.naturalWidth;b=g["images-dpi"][a.getAttribute("src")][0];a=a.naturalWidth;return 144===b?Math.round(a/(b/72)):a};e.A=function(a){if(null==g)return a.naturalHeight;
var b;if(null==g["images-dpi"][a.getAttribute("src")])return a.naturalHeight;b=g["images-dpi"][a.getAttribute("src")][1];a=a.naturalHeight;return 144===b?Math.round(a/(b/72)):a};e.gg=function(a){var c=a.naturalWidth,d=e.bg(a),f=a.naturalHeight,g=e.A(a),n=b(a);null==n.height&&null==n.width&&(c!==d&&S(a,"width",d+"px"),f!==g&&S(a,"height",g+"px"))};e.G=function(b){d=e.K("context");f=d.root;a(b.images);e.D.B({name:"images",action:function(b){null==b||ga(b)&&0===Object.keys(b).length||""===b?b=null:b=
Nb(b);a(b);return!0},enabled:Na})}};function Eg(){function a(a){if(null==a)return null;b.lastIndex=0;return(a=b.exec(a))&&a[1]?a[1]:null}var c=this;c.name="inline";var b=/^[\'\"]?(.*?)[\'\"]?(,|$)/;c.G=function(){function b(a){var c="";t(a)&&(-1<a.indexOf("+")||-1<a.indexOf("-"))&&(c=a[0],a=a.slice(1));a=Ie(a,"px","px");var g=null;if(a&&0<a.value){if(""===c)return g=a.gc,f("fontsize",g),!0;var h=d(a.jd);if(""!==h&&("+"===c?g=(parseInt(h,10)+a.value).toString()+a.jd:"-"===c&&(g=(parseInt(h,10)-a.value).toString()+a.jd),g))return b(g)}return!1}
function d(a,b){a||(a="px");if(!b){var c=g.B();if(!c)return"";var d=null;c.collapsed||(d=p.jc(c,l.Qa));null===d&&(d=c.startContainer);b=p.da(d,"fontsize")}return(c=Ie(b,a))&&c.value?c.value.toString():"0"}function f(a,b){p.xe(a,b)}var g=c.K("context"),l=c.K("query"),p=c.K("format"),h=c.K("block"),m=c.K("editor"),r=g.root,n=g.Aa;c.K("textinput");var q=new Ea,y=null;c.D.pa(r,"beforeInput",function(a){g.Ha();y=p.ae();null!=y&&0===y.length&&(y=null);q.B("before input",y,a)},1E3);c.D.pa(r,"input",function(a){q.B("en.define.MESSAGE.TEXT_INPUT",
y,"info",a);a=Kd(a.fc.bb,a.fc.offset,a.Ga.endContainer,a.Ga.endOffset);q.B("Changed range",Ya(a));a:{if(null!=y){var b=y;y=null;if(a&&!1===a.collapsed){g.Zb(a);q.B("Applied pending to range",Ya(b));p.Ob(b);a=!0;break a}}a=!1}a&&(a=g.B(),a.collapse(!1),g.Zb(a),g.Ma(!1,!1))},-1E3);n.bold={U:!0,Ya:!0,action:function(a){a=null==a?!m.queryCommandState("bold"):+a;f("bold",a?"bold":"normal");return!0},Pa:["bold","600","700","800","900"],Ua:"fontWeight",bc:function(a,b){return a==b||"bold"==a&&"700"==b||
"700"==a&&"bold"==b||"normal"==a&&"400"==b||"400"==a&&"normal"==b}};n.italic={U:!0,Ya:!0,action:function(a){a=null==a?!m.queryCommandState("italic"):+a;f("italic",a?"italic":"normal");return!0},Pa:["italic","oblique"],Ua:"fontStyle"};n.underline={U:!0,Ya:!0,action:function(a){a=null==a?!m.queryCommandState("underline"):+a;f("underline",a?"underline":null);return!0},Pa:["underline"]};n.strikethrough={U:!0,Ya:!0,action:function(a){a=null==a?!m.queryCommandState("strikethrough"):+a;f("strikethrough",
a?"line-through":null);return!0},Pa:["line-through"]};n.tt={U:!0,Ya:!0,action:function(a){a=null==a?!m.queryCommandState("tt"):+a;f("tt",a?"tt":null);return!0},Pa:["tt"]};n.fontname={U:!0,Ya:!0,action:function(a){f("fontname",a);return!0},value:function(){var b=g.B();if(!b)return"";var c=null;b.collapsed||(c=p.jc(b,l.Qa));null===c&&(c=b.startContainer);b=p.da(c,"fontname");return a(b)||""},Ua:"fontFamily",bc:function(b,c){return a(b)===a(c)}};n.fontsize={U:!0,Ya:!0,action:function(a){return b(a)},
rb:function(){return 2<=p.fb(g.B(),l.Qa).map(function(a){return p.da(a,"fontsize")}).filter(function(a,b,c){return-1==c.slice(0,b).indexOf(a)}).length},value:function(a,b){return d(a,b)},Ua:"fontSize",bc:function(a,b){if(a===b)return!0;var c=a;0<a.indexOf("pt")?c=Ie(a,"px").gc:0>a.indexOf("p")&&(c=a+"px");var d=b;0<b.indexOf("pt")?d=Ie(b,"px").gc:0>b.indexOf("p")&&(d=b+"px");return c===d}};n.forecolor={U:!0,Ya:!0,action:function(a){/^([0-9a-fA-F]{3}){1,2}$/.test(a)&&(a="#"+a);if(!/^(rgba?|hsla?)\(.*\)$/.test(a)&&
!Be(a)&&"transparent"!=a.toLowerCase())return!1;f("forecolor",a);Lb("foreColorChanged",{color:a});return!0},xg:!0,Ua:"color",bc:function(a,b){return Ae(a)===Ae(b)}};n.backcolor={U:!0,Ya:!0,action:function(a){/^([0-9a-fA-F]{3}){1,2}$/.test(a)&&(a="#"+a);if(!/^(rgba?|hsla?)\(.*\)$/.test(a)&&!Be(a)&&"transparent"!=a.toLowerCase())return!1;f("backcolor",a);return!0},rb:function(){return 2<=p.fb(g.B(),function(a){return l.O(a)&&3===a.nodeType}).map(function(a){return p.da(a,"backcolor")}).filter(function(a,
b,c){return-1==c.slice(0,b).indexOf(a)}).length},xg:!0,Ua:"backgroundColor",bc:function(a,b){return Ae(a)===Ae(b)}};n.highlight={U:!0,Ya:!0,action:function(a){a=null==a?!m.queryCommandState("highlight"):+a;f("highlight",a?"rgb(255, 250, 165)":null);return!0},Pa:["rgb(255, 250, 165)","rgb(255, 204, 102)","rgb(246, 238, 150)"],Ua:"backgroundColor",bc:function(a,b){return Ae(a)===Ae(b)}};var u="abbr acronym b bdi bdo big blink cite code dfn em font i ins kbd mark nobr q s samp small span strike strong sub sup tt u var".split(" ");
n.removeformat={U:!0,Ya:!0,action:function(){function a(b){return l.O(b)&&-1<u.indexOf(L(b))}p.fb(g.B(),a).forEach(function(a){for(;a.hasChildNodes();)g.aa(a.firstChild,a.parentNode,K(a));a.parentNode.removeChild(a)});if(l.O(g.B().startContainer)&&3==g.B().startContainer.nodeType&&0!=g.B().startOffset&&g.B().startOffset!=O(g.B().startContainer))if(g.B().startContainer==g.B().endContainer){var b=g.B().endOffset-g.B().startOffset,c=g.B().startContainer.splitText(g.B().startOffset);g.M(c,0,c,b)}else g.ce(g.B().startContainer.splitText(g.B().startOffset),
0);l.O(g.B().endContainer)&&3==g.B().endContainer.nodeType&&0!=g.B().endOffset&&g.B().endOffset!=O(g.B().endContainer)&&(c=[g.B().startContainer,g.B().startOffset],b=[g.B().endContainer,g.B().endOffset],g.be(document.documentElement,0),b[0].splitText(b[1]),g.M(c[0],c[1],b[0],b[1]));p.fb(g.B(),l.O).forEach(function(b){for(;a(b.parentNode)&&l.ia(b.parentNode,b);)h.ya([b])});"subscript superscript bold tt fontname fontsize forecolor highlight backcolor italic strikethrough underline".split(" ").forEach(function(a){f(a,
null)});return!0}};["superscript","subscript"].forEach(function(a){n[a]={U:!0,Ya:!0,action:function(b){b=null==b?!m.queryCommandState(a):+b;f(a,null);b&&f(a,a);return!0},rb:function(){var b=p.fb(g.B(),l.Qa);return b.some(function(b){return p.da(b,a)==a})&&b.some(function(b){return p.da(b,a)!=a})||b.some(function(b){return"mixed"==p.da(b,a)})},Pa:[a]}});if(!0===he.rte.highlightMagic)try{var z=null;c.D.listener(g.root,"mousedown",function(){z=Oe(g.root)});c.D.listener(document,"mouseup",function(a){var b=
U(g.root);b&&!b.collapsed&&z!==Oe(g.root)&&(!a.metaKey||a.altKey||a.shiftKey||a.ctrlKey?a.metaKey&&a.altKey&&!a.shiftKey&&!a.ctrlKey&&Z.execCommand("strikethrough"):Z.execCommand("highlight"));z=null})}catch(F){v.error("Exception in <$>:",F.toString)}}};function Fg(){var a=this;a.name="io";a.G=function(){function c(a){a=!1!==a;!1===a&&(l=d.innerHTML);f===a||!0===a&&l===d.innerHTML||(f=a,!1===f&&e.flush())}var b=a.K("context"),e=a.K("undo"),d=b.root,b=!1!==he.rte.cryptLegacy,f=!1,g,l=null;a.Ic=function(){return f};a.D.pa(d,"setDirty",function(b){c(!1!==b);g=a.D.timeout(function(){f&&ff("content")},1E3,g)},1);b&&(a.C=function(b){var e=B(b,{html:!1,cleanup:!1,stripNS:!1,trim:!0,titleString:null,withInsertionPoint:!1,hiddenCryptoData:null,wrap:!1,resetChangesState:!1,
value:"",type:""});e.resetChangesState&&c(!1);if("enml"===(e.type||e.value||""))return a.K("enml").oe({crypto:e.hiddenCryptoData});var f=b=null,g=e.withInsertionPoint;Ve(d,"beforeGetContent");var l=d,q=Oe(l);if(e.cleanup||g)l=d.cloneNode(!0);!1!==he.rte.cryptLegacy&&T("div.en-crypt-revealed,div.en-crypto-revealed",l).forEach(function(a){var b=a.id;0===b.indexOf("en-revealed-crypto:")?e.hiddenCryptoData&&e.hiddenCryptoData[b]?sc(a,M("embed",{type:"evernote/x-crypto",id:e.hiddenCryptoData[b]})):v.error("Found revealed crypto but not replacement. Key:",
b):v.error("Unsupported revealed crypto element with ID:",b)});e.cleanup&&f&&g&&(f.insertNode(eg()),g=!1);g&&q&&(f=Ne(l,q))&&f.insertNode(eg());e.cleanup&&a.K("transform").Pd(l,2);e.stripNS?b=xb(l.outerHTML):b=l.innerHTML;e.trim&&(b=b.trim());b=ib(b);e.html?b="<html><head><title></title></head><body>"+b+"</body></html>":e.wrap&&(b=gg(l,b));return b});a.A=function(b,c){c&&e.flush();var f=M("div",{},b),f=a.K("transform").hc(f,2,{gf:!0});Dc(f,d);c?e.flush():e.clear();Ve(d,"setDirty",!1)};b?a.D.B({name:"content",
action:function(b){b=Nb(b);null!=b.value&&(Ta("rte.content called with non-JSON string.","String used as new content."),b.content=b.value,delete b.value);b=B(b,{scrollToTop:!0,content:"",undoable:!1,type:"html",placeholder:null,resources:null});ub(b.resources)||a.K("resource").ge(b.resources);null!=b.placeholder&&d.setAttribute("data-en-placeholder",b.placeholder);"enml"===b.type?a.K("enml").Bd(b.content||""):a.A(b.content||"",!0===b.undoable);!0===b.scrollToTop&&Cd(0,0);jf();return!0},value:function(b){return a.C(Nb(b))},
enabled:Na}):a.D.B({name:"content",action:function(b){var c=Nb(b);if(null==b)return v.error("To set content at least provide {value:}"),!1;c=B(c,{type:"enml",content:null,placeholder:null,scrollToTop:!0,resources:null,undoable:!1});ub(c.resources)||a.K("resource").ge(c.resources);null!=c.placeholder&&d.setAttribute("data-en-placeholder",c.placeholder);"enml"===c.type?a.K("enml").Bd(c.content||""):a.A(c.content||"",!0===c.undoable);!0===c.scrollToTop&&Cd(0,0);jf();return!0},value:function(b){b=Nb(b);
b=B(b,{type:"enml",cryptInfo:null,withInsertionPoint:!1,resetChangesState:!1});var e=a.K("crypt"),f=b.cryptInfo;if(f&&f.length)for(var g=0;g<f.length;g++)e.If(f[g]);Ve(d,"beforeGetContent");if((f=e.Rg())&&0<f.length)return{success:!1,cryptInfo:f};if("enml"===b.type||"enex"===b.type)return e=a.K("enml").oe({}),"enex"===b.type&&(f=Z.queryCommandValue("title.content"),e='<?xml version="1.0" encoding="UTF-8"?>\r\n<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export3.dtd">\r\n<en-export application="Evernote" version="Common Editor Build '+
window.CE_VERSION_INFO.lastBuildNumber+'">\r\n<note><title>'+f+'</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">'+e+"]]\x3e</note></content>"),b.resetChangesState&&c(!1),{success:null!=e,value:e,type:b.type};f=Oe(d);g=d.cloneNode(!0);f&&b.withInsertionPoint&&(e=Ne(g,f))&&e.insertNode(eg());a.K("transform").Pd(g,2);e="plain"===b.type?Jc(g):zc()?xb(g.outerHTML):g.innerHTML;null!=e&&(e=e.trim(),e=ib(e),"plain"!==
b.type&&(e=gg(g,e)),b.resetChangesState&&c(!1));return{success:null!=e,value:e,selectionPath:f,type:b.type?b.type:"html"}},enabled:Na});a.D.B({name:"changes",action:function(a){c(Mb(a));return!0},state:function(){return f},enabled:Na,cc:!0})}};function Gg(){var a=this;a.name="link";a.G=function(){function c(b){if(!b||!a.K("edit").ha({Dd:!1}))return!1;var c=d.B();if(!f.O(d.B().startContainer)&&!f.ib(d.B().startContainer))return!0;f.W(c.startContainer)&&1==c.startContainer.childNodes.length&&$c(c.startContainer.firstChild)&&0==c.startOffset&&c.startContainer.removeChild(c.startContainer.firstChild);c.insertNode(b);d.M(b.parentNode,1+K(b));return!0}function b(){if(!d.B()||!d.B().startContainer)return null;var a=window.getSelection().toString();
return wb(a)?a:null}function e(){if(!d.B()||!d.B().startContainer)return null;var a=P(d.B().startContainer,"a[href]",d.root);return a?a.href:null}var d=a.K("context"),f=a.K("query"),g=a.K("format"),l=d.Aa;a.ah=function(){return T("a[href]",d.root)};l.createlink={U:!0,action:function(a){if(!a)return!1;var b={};"{"===a[0]?b=B(a,{url:null,title:null}):(b.url=a,b.title=a);b.url=cg(b.url);if(d.B().collapsed)return a=M("a",{href:cg(b.url)}),a.textContent=b.title,c(a);g.fb(d.B()).forEach(function(a){f.Vb(a).forEach(function(a){f.O(a)&&
R(a,"a")&&a.hasAttribute("href")&&a.setAttribute("href",b.url)})});g.xe("createlink",b.url);return!0},value:function(){return e()||b()||""},state:function(){return!!e()||!!b()}};l.unlink={U:!0,action:function(){var a,b=d.B(),c=[];for(a=b.startContainer;a;a=a.parentNode)R(a,"a")&&a.hasAttribute("href")&&c.unshift(a);for(a=b.startContainer;a!=f.Ra(b.endContainer);a=f.nextNode(a))R(a,"a")&&a.hasAttribute("href")&&(f.Wd(a,b)||Oc(b.endContainer,a)||a==b.endContainer)&&c.push(a);for(a=0;a<c.length;a++)g.Fe(c[a],
"unlink");return!0},value:function(){return e()||""},state:function(){return!!e()}};a.Wa=function(a){vd("*[href]",a).forEach(function(a){var b=a.getAttribute("href"),c=cg(b);b!==c&&(v.info("Sanitized link:",c),a.setAttribute("href",c))});vd("*[src]",a).forEach(function(a){var b=a.getAttribute("src"),c=cg(b);b!==c&&a.setAttribute("src",c)})};a.Za=function(){}}};function Hg(){var a=this;a.name="misc";a.G=function(){var c=a.K("context"),b=a.K("normalize");c.Aa.normalize={tc:!0,action:function(a){if(!a||"all"===a)return b.Xc(),!0;if(!c.B())return v.warn("Command normalize called without selection. Value:",a),!1;if("start"===a)return b.nc(),!0;if("end"===a)return b.Fg(),!0;if("selection"===a)return b.Pc(),!0;if("edges"===a)return b.Ue(),!0;v.warn("Command normalize called with unknown value:",a);return!1},enabled:Na}};a.Wa=function(a,b){if(1===b||2==b){var e=
a.querySelector('*[title="CommonEditorBuild"]');null!=e&&(e.textContent=ja().toString(),e=a.querySelector('*[title="CommonEditorDate"]'),null!=e&&(e.textContent=ka().toString()))}}};function Ig(){function a(a){this.Ta=Ab(c.name);this.info={title:"Unknown",mime:"application/octet-stream",hash:"",filename:"",filesize:"",downloaded:"",progress:0,url:null,state:"unloaded",thumbnailURL:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",contextURL:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",defaultActionURL:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"};this.M=!1;this.C(a);this.R=
function(a){a.preventDefault()}}var c=this;c.name="resource";var b="img.en-media",b=b+",embed";a.prototype.ha=function(a){if(!this.B)if(1===a)this.B=this.W();else return v.warn("A resource has not been transformed to an original HTML element"),null;return this.B};a.prototype.ia=function(){this.A||(this.A=this.Y(),this.update());return this.A};a.prototype.W=function(){var a=qb({},this.info.attrs||{}),b={type:this.info.mime,hash:this.info.hash};delete a.src;delete a["class"];delete a.id;delete a["en.define.DATA_EN_RESOURCE_REFERENCE"];
qb(b,a,!0);return M("en-media",b)};a.prototype.Y=function(){var a=this.info.mime,b=-1!==["image/jpeg","image/png","image/gif","image/tiff","image/svg+xml"].indexOf(a),c="application/pdf"===a,g="application/vnd.evernote.ink"===a,l={src:this.info.url,"class":"en-media"},p=qb({},this.info.attrs||{});delete p.hash;delete p.type;var h="en-media:"+this.info.mime+":"+this.info.hash;b?l.id=h+":"+(p.width||"none")+":"+(p.height||"none"):(g?(l.type=a,l.border="1"):l.type=c?"evernote/x-pdf":"evernote/x-attachment",
l.id=h);qb(l,p,!0);a=M(this.nd?"img":"embed",l);a.setAttribute("data-en-resource-reference",this.Ta);nd(a,"height");return a};a.prototype.dc=function(){return this.ia()};a.prototype.C=function(a){a&&(A(mb(a)||mb(this.info),"Info param must be dictionary."),this.info=qb(this.info,a),this.info.url||(this.info.url="?hash="+this.info.hash),this.info.mime=this.info.mime.toLowerCase(),this.nd=-1!==this.info.mime.indexOf("image/"))};a.prototype.update=function(a){var b=this.info,c=!(!a||["hash","url","mime",
"width","height"].every(function(c){return!a.hasOwnProperty(c)||b[c]===a[c]}));this.C(a);this.B=null;if(!this.A)return c;this.I&&this.I.setAttribute("src",this.info.thumbnailURL);this.da&&(this.da.textContent=this.info.filename);this.N&&(this.N.textContent="loading"===this.info.state&&this.info.downloaded?this.info.downloaded+" / "+this.info.filesize:this.info.filesize);this.L&&(this.L.textContent=this.info.title);this.H&&this.H.setAttribute("src",this.info.contextURL);this.aa&&this.aa.setAttribute("src",
this.info.defaultActionURL);return c};a.prototype.toJSON=function(){return{hash:this.info.hash,url:this.info.url,mime:this.info.mime,rect:N(this.dc()),reference:this.Ta,selected:this.M}};c.G=function(e){function d(a){var b=P(a.target,"a[href]");lf(this.info.url,"resource",{hash:this.info.hash,mime:this.info.mime,reference:this.Ta,anchorHref:b?b.getAttribute("href"):void 0,action:"open"});a.preventDefault()}function f(a){var b={},c;for(c in y){var d=y[c],e=b[d.info[a]];e||(b[d.info[a]]=e=[]);e.push(d)}return b}
function g(a){z||(z=f("url"));return z[a]||[]}function l(a){u||(u=f("hash"));return u[a]||[]}function p(a){var b=J(a)?a.getAttribute("data-en-resource-reference"):a.reference,c=null;b&&(c=y[b]);c||(c=h(a));return c}function h(b){var c,e,f;if(b instanceof HTMLElement){"en-media"===L(b)?(c=b.getAttribute("hash"),e=b.getAttribute("type")):(f=b.getAttribute("id"),A(!!f,"ID for non image resources is mandatory!"),f=f.split(":"),e=f[1],c=f[2]);b.getAttribute("x-evernote-mime");f=q[c]||{};f.hash||(f.hash=
c);!f.mime&&e&&(f.mime=e);e={};if(b&&(b=b.attributes))for(c=b.length;c--;)e[b[c].name.toLowerCase()]=b[c].value;f.attrs=e}else mb(b)&&(f=b);A(f&&f.hash,"Info data or hash inside is missing to create a resource element.");b=new a(f);y[b.Ta]=b;b.R=d;return b}var m=c.K("context"),r=m.root,n=m.Aa,q=e.resources||{},y={},u=null,z=null;c.ge=function(a){z=u=null;if(ca(a)){var b=a;a={};for(var c=0;c<b.length;c++){var d=b[c];a[d.id]=d}}A(mb(a),"Expected dict for resourceInfoDefaults",a);qb(q,a)};c.rf=function(a){var c=
window.getSelection();return T(b,a?a:r).map(function(a){var b=p(a);b.M=c&&!c.isCollapsed&&c.containsNode(a,!1);b.node=a;return b})};n.resources={U:!0,tc:!0,action:function(a){if(a=Ob(a)){var b=!1,d=!1,e=function(a){if(a){var b=a.dc();I(b);delete y[a.Ta]}};a.forEach(function(a){var f;if("update"===a.action||"delete"===a.action)if(b=!0,a.reference){if(f=p(a))"delete"===a.action?(e(f),d=!0):f.update(a)&&(d=!0)}else a.originalURL?"update"===a.action?vd("img:not(.en-media)",r).forEach(function(b){if(b.getAttribute("src")===
a.originalURL){var c=h(a);sc(b,c.dc())}}):g(a.originalURL).forEach(function(a){e(a)}):l(a.hash).forEach(function(b){"delete"===a.action?(e(b),d=!0):b.update(a)&&(d=!0)});else if("insert"===a.action){if(m.Kb())return!1;m.hasFocus()||Z.execCommand("content.focus");var n=a.beforeRef||a.afterRef,q=null==a.afterRef?0:1;f=null;n&&(n=y[n])&&(f=n.dc());f?m.M(f.parentNode,K(f)+q):m.Ha();m.Xg();q=c.K("paste");f=h(a);f=f.dc();q.insertNode(f);ge(f);b=d=!0}});d&&Ve(r,"setDirty");b&&c.D.timeout(function(){c.K("layer").xb()})}return!0},
value:c.rf,enabled:Na};c.Wa=function(a,b){if(1===b)for(var c=a.getElementsByTagName("en-media"),d=c.length-1;0<=d;d--){var e=c[d],f=h(e);A(!!f,"Failed to create resource for",e);sc(e,f.dc())}else vd('embed[id^="en-media:"],img[id^="en-media:"]',a).forEach(function(a){var b=h(a);sc(a,b.dc())})};c.Za=function(a,c){1===c?vd(b,a).forEach(function(a){var b=p(a);b&&(a=Ic(a,"en-media"),a.removeAttribute("src"),a.removeAttribute("class"),a.removeAttribute("id"),a.removeAttribute("data-en-resource-reference"),
a.setAttribute("type",b.info.mime),a.setAttribute("hash",b.info.hash))}):1===c?vd(b,a).forEach(function(a){var b=p(a).ha(c);b?sc(a,b):I(a)}):vd('embed[id^="en-media:"],img[id^="en-media:"],.en-object-placeholder',a).forEach(function(a){a.removeAttribute("class");a.removeAttribute("data-en-resource-reference")})}}};function Jg(){function a(a){n.call(this,a)}function c(a){n.call(this,a)}function b(a){n.call(this,a)}function e(a){n.call(this,a)}function d(a){n.call(this,a)}function f(a){n.call(this,a)}function g(a){n.call(this,a)}function l(a){n.call(this,a)}function p(a){a.Zf=!0;n.call(this,a)}function h(a){n.call(this,a)}function m(a){n.call(this,a)}function r(a){n.call(this,a)}function n(a){if(!(this instanceof n))return new n(a);this.B=a;this.G()}function q(a){var b=md(a.Nf,"-evernote-context-name");b&&(S(a.hg,
"-evernote-context-name",b),a.hg.textContent=a.J.Sc[b+"-label"]||b)}function y(a,b){a.Nf=u(a.bb,"context");a.hg=u(a.pf,"context");var c=a.Nf,d=md(c,"-evernote-context-name");G(c,"en-editable-context");var e;rc(c);c.appendChild(e=M("span"));e.textContent=a.J.Sc[d+"-label"]||d;for(var f=[],g=0;g<b.length;g++){var h=b[g],m=M("option",{value:h},[a.J.Sc[h+"-label"]||h]);h===d&&m.setAttribute("selected","selected");f.push(m)}var l=M("select",{"class":"en-editable-select-context",tabindex:"-1"},f);c.insertBefore(l,
null);w.D.listener(l,"change",function(){var b=l.value;S(c,"-evernote-context-name",b);e.textContent=a.J.Sc[b+"-label"]||b;if(a.J.sd instanceof Object)try{var d=a.J.sd[a.name];d&&d(a)}catch(f){v.error("Exception on onDidChangeActions (2)",f.toString())}a.J.Ve=a.name;Y=!0});c.parentElement.style.textDecoration="none"}function u(a,b){for(var c=Ua(a.querySelectorAll("*[style*='x-evernote:']")),d=0;d<c.length;d++){var e=c[d];if(md(e,"x-evernote")===b)return e}return null}function z(a){var b=a.node;G(b,
"en-editable");G(b,"en-editable-"+a.type);G(b,("en-"+a.J.gd+"-"+a.name).toLowerCase());b.setAttribute("title",(a.J.Sc[a.name+"-placeholder-title"]||"...")+"\u00a0\u00a0\u00a0");ed(b,!0);C(a);a.J.Af&&b.removeAttribute("style");var c=null;w.D.listener(b,"focus",function(){c=a.object.A();w.D.timeout(function(){window.getSelection().selectAllChildren(b)})});w.D.listener(b,"input",function(){Y=!0});w.D.listener(b,"blur",function(){Od();C(a);var b=!1;if(a.J.sd instanceof Object)try{var d=a.J.sd[a.name];
d&&d(a)&&(b=!0)}catch(e){v.error("Exception on onDidChangeActions (1)",e.toString())}d=a.object.A();if(b||c!==d)a.J.Ve=a.name,Y=!0});w.D.listener(b,"keydown",function(c){var d=!1;13===c.keyCode?a.Zf||(b.blur(),d=!0):8===c.keyCode&&(document.execCommand("delete"),d=!0);return d?W(c):!1})}function F(a,b){var c=Jc(a).trim();tb(c)?c="\u00a0":b?(c=c.split("\n"),c=c.map(function(a){return tb(a)?"<div><br/></div>":"<div>"+yb(a)+"</div>"}),c=c.join("")):c=yb(c.replace(/\n/g," "));return c}function C(a){A(!!a,
"We need field info");A(!!a.node,"We need an element to work on");var b=a.node;b.innerHTML=F(b,a.Zf);tb(b.textContent)?G(b,"en-editable-placeholder"):H(b,"en-editable-placeholder");a.ef=b.innerHTML}var w=this,D=null;A(this instanceof Jg,"Use `new` to instantiate this class");w.name="template";var V=!0,Y=!1;n.prototype.G=function(){};n.prototype.A=function(){return this.B.node.innerHTML};n.prototype.Jd=function(a){var b=this.A();this.B.td.innerHTML=b;a&&this.B.J.Ve===this.B.name&&this.B.td.insertBefore(eg(),
null)};ia(r,n);ia(m,n);m.prototype.A=function(){return F(this.B.node)};ia(h,n);h.prototype.G=function(){z(this.B)};h.prototype.A=function(){return F(this.B.node)};ia(p,h);p.prototype.A=function(){try{return F(this.B.node,!0)}catch(a){v.error("getHTML 'PlainTextArea.prototype.getHTML' failed ",a)}return null};ia(l,n);l.prototype.G=function(){this.B.node=u(this.B.bb,"value");this.B.td=u(this.B.pf,"value");A(!!this.B.node,"x-evernote:value element missing in phone field");z(this.B);y(this.B,"phone home work mobile main home-fax work-fax other".split(" "))};
l.prototype.A=function(){return F(this.B.node)};l.prototype.Jd=function(a){l.Ed.Jd.call(this,a);q(this.B)};ia(g,n);g.prototype.M=function(a,b){A(b instanceof Object);b.href=a;return M("a",b,[a])};g.prototype.C=function(){var a=this.B.node.textContent;return!a||tb(a)?"":a.trim()};g.prototype.G=function(){function a(){H(f,"en-editable-hidden");G(e,"en-editable-hidden");rc(g);var c=b.C();tb(c)?(H(e,"en-editable-hidden"),G(f,"en-editable-hidden")):g.appendChild(b.M(c,{tabindex:"-1"}));e.textContent=c}
var b=this;this.B.node=u(this.B.bb,"value");this.B.td=u(this.B.pf,"value");A(!!this.B.node,"x-evernote:value element missing in LinkField");var c=this.B.node,d=this.C();nd(c,"text-decoration");rc(c);var e;c.appendChild(e=M("div"));e.textContent=d;this.B.node=e;z(this.B);var f,g;c.appendChild(f=M("div",{"class":"en-editable-preview"},[g=M("span")]));a();w.D.listener(f,"click",function(){e.focus()});w.D.listener(e,"focus",function(){H(e,"en-editable-hidden");G(f,"en-editable-hidden")});w.D.listener(e,
"blur",function(){a()});G(this.B.bb,"en-editable-container")};g.prototype.A=function(){var a=this.B.node.textContent;return tb(a)?"\u00a0":yb(this.M(a,{}))};ia(f,g);f.prototype.G=function(){f.Ed.G.call(this);y(this.B,["email","home","work","other"])};f.prototype.Jd=function(a){f.Ed.Jd.call(this,a);q(this.B)};f.prototype.M=function(a,b){a=a.trim().replace(/^mailto:/,"");A(b instanceof Object);b.href="mailto:"+a;return M("a",b,[a])};ia(d,g);d.prototype.C=function(){var a=this.B.node.textContent;if(!a)return"";
a=a.trim().replace(/^\@/,"");return tb(a)?"":a};d.prototype.M=function(a,b){A(b instanceof Object);b.href="http://twitter.com/"+encodeURIComponent(a);return M("a",b,["@"+a])};ia(e,g);ia(b,g);ia(c,g);c.prototype.C=function(){var a=this.B.node.textContent;if(!a)return"";a=a.trim().replace(/^\@/,"");return tb(a)?"":a};c.prototype.M=function(a,b){A(b instanceof Object);return document.createTextNode("@"+a)};ia(a,g);a.prototype.M=function(a,b){a=a.trim();A(b instanceof Object);b.href="http://maps.google.com/?q="+
encodeURIComponent(a);return M("a",b,[a])};var ra={title:m,field:h,textarea:p,phone:l,email:f,twitter:d,linkedin:e,facebook:b,weibo:c,address:a,"profile-image":r},fa=Object.keys(ra);w.L=function(){D===document.body?(w.Nb=document.body.parentNode.cloneNode(!0),Ua(w.Nb.getElementsByTagName("head")).forEach(function(a){I(a)})):w.Nb=D.cloneNode(!0);var a=w.H(D),b=w.H(D===document.body?w.Nb.getElementsByTagName("body")[0]:w.Nb);w.nb=[];for(var c=0;c<a.length;c++)try{var d=a[c];d.index=c;d.td=b[c].node;
d.J=this.J;d.bb=d.node;d.pf=d.td;d.object=new ra[d.type](d);w.nb.push(d)}catch(e){v.error("A field failed during setup",e.toString())}};w.I=function(a){a=B(a,{ke:null,gd:null,he:null,Af:!1,Bf:null,Cf:null,of:{},sd:{},Sc:{},Ve:null,root:null});w.J=a;D=a.root||document.getElementById("en-note");A(D&&J(D),"Root not valid!");fg(D);A(null!==w.J.ke,"Content Class is required");w.J.gd=w.J.gd||w.J.ke.replace(/[^\w]+/gi,"-");G(D,"en-template-style-on");G(D,w.J.gd);w.L();w.D.pa(D,"setDirty",function(a){var b=
!0;!1===a&&(b=!1);Y=!!b});null!==w.J.Cf&&w.C(w.J.Cf);w.R=function(a){w.C(a.value)};w.D.A("titlechanged",w.R);if(w.J.of instanceof Object)for(var b=0;b<w.nb.length;b++)try{var c=w.nb[b],d=w.J.of[c.name];d&&d(c)}catch(e){v.error("Exception on onDidInitActions (3)",e.toString())}b=this.ea();b.G(new Vf,{root:D});b.G(new Bg);b.G(new Ig);w.Od();b=a.html;a=a.enml;A(!(null!=b&&null!=a),"You can only provide one content type: html or enml");t(b)?w.A(b):t(a)&&A(!1,"ENML currently not supported for Templates")};
w.S=function(){H(D,"en-template-style-on");H(D,w.J.gd);w.nb=[]};w.hasFocus=function(){var a=U(D);return a&&(a=Qd(a))?P(a,dd):!1};w.Od=function(){function a(b,c){c=B(Nb(b),c,!0);var d=c.value;"html"===c.type&&(d=xc(d,D).textContent);try{document.execCommand("inserttext",!1,d.replace(/\s+/gi," "))}catch(e){}return!0}w.D.bd({Ib:["content","template"]});w.D.B({name:"focus",action:function(){w.focus();return!0},state:function(){return w.hasFocus()},value:function(){if(w.hasFocus())return w.name},enabled:Na});
w.D.B({name:"paste",action:function(b){return a(b,{type:"html",mode:"plain",value:""})},enabled:Na});w.D.B({name:"pasteplain",action:function(b){Ta('Please use execCommand("template.paste", { type: "plain", mode: "plain", "value": ... })');return a(b,{type:"plain",mode:"plain",value:""})},enabled:Na});w.D.B({name:"copy",enabled:Na,value:function(){var a=U(D);if(!a||a.collapsed)return"";var b={},a=a.cloneContents(),c=document.createElement("div");c.appendChild(a);Ad(c,function(a){b.plain=Jc(a)});return JSON.stringify(b)}});
w.D.B({name:"content",action:function(a){a=Nb(a);null!=a.value&&(Ta("rte.content called with non-JSON string.","String used as new content."),a.content=a.value,delete a.value);a=B(a,{scrollToTop:!0,content:"",type:"html",resources:null});ub(a.resources)||w.K("resource").ge(a.resources);var b=a.content||"";"enml"===a.type?w.ea().B("enml").Bd(b):w.A(b);w.L();!0===a.scrollToTop&&Cd(0,0);jf();return!0},value:function(a){return w.N(Nb(a))},enabled:Na});w.D.B({name:"changes",action:function(a){Y=!!Mb(a);
return!0},state:function(){return Y},enabled:Na,cc:!0})};w.focus=function(a){for(a=+a||0;a<this.nb.length;a++){var b=this.nb[a];if(!b.$f){b.node.focus();break}}};w.C=function(a){if(a&&0<a.length&&255>=a.length){for(var b,c=0;c<this.nb.length;c++)if(!0===this.nb[c].$f){b=this.nb[c];break}b&&b.node.textContent!==a&&(b.node.textContent=a,b.ef=b.node.innerHTML)}};w.H=function(a){return Ua(a.querySelectorAll("*[style*='-evernote-editable:']")).map(function(a){var b=md(a,"-evernote-editable");if(0<=fa.indexOf(b)){var c=
md(a,"x-evernote"),d=this.J.Bf&&this.J.Bf===c;d&&(b="title");return d||null===this.J.he||this.J.he.some(function(a){return c===a})?{node:a,name:c,type:b,$f:d}:void 0}v.error("Invalid -evernote-editable field mode!",b)},this).filter(function(a){return a&&a.node})};w.A=function(a){var b=M("div");b.innerHTML=a;Dc(b,D)};w.N=function(a){a=B(a,{html:!1,cleanup:!1,stripNS:!1,trim:!0,withInsertionPoint:!1,titleString:"",hiddenCryptoData:null,resetChangesState:!1,wrap:!1,type:""});v.log("template crypt legacy",
V);a.resetChangesState&&(Y=!1);t(a.titleString)&&w.C(a.titleString);for(var b=0;b<this.nb.length;b++){var c=this.nb[b];try{c.object.Jd(a.withInsertionPoint)}catch(d){v.error("Unable to extract data from field",d.toString(),c)}}if("enml"===(a.type||a.value||""))return b=w.ea().B("enml").oe({crypto:a.hiddenCryptoData,contentElement:w.Nb.cloneNode(!0)}),V?b:{success:null!=b,value:b,type:"enml"};if(V)return b="html"===L(this.Nb)||a.stripNS?w.Nb.outerHTML:w.Nb.innerHTML,a.stripNS&&(b=xb(b)),b=b.trim(),
a.html?b="<html><head><title></title></head><body>"+b+"</body></html>":a.wrap&&(b=gg(D,b)),ib(b);a=w.Nb;b=zc()?xb(a.outerHTML):a.innerHTML;null!=b&&(b=b.trim(),b=ib(b),b=gg(a,b));return{success:null!=b,value:b,type:"html"}};w.G=function(a){var b=a.contentClass,c=a.title,d=a.localization;V=null==a.cryptLegacy?!0:a.cryptLegacy;if("evernote.food.meal.2"===b)w.I({root:a.root||null,ke:b,he:["caption-text","meal-review"],Af:!0,Bf:"title",Cf:c});else if("evernote.contact.1"===b){var e=function(a){return(a=
a.node.textContent)?a.replace(/\s+/g," ").trim():null},f=null,g=c;w.I({root:a.root||null,ke:b,he:"contact-title contact-org note-body weibo twitter phone email address display-as".split(" "),Af:!1,Sc:d||{"display-as-placeholder-title":"Add Name...","contact-title-placeholder-title":"Add Title...","contact-org-placeholder-title":"Add Company...","note-body-placeholder-title":"Add Notes...","linkedin-placeholder-title":"Add LinkedIn URL...","facebook-placeholder-title":"Add Facebook URL...","twitter-placeholder-title":"Add Twitter Name...",
"weibo-placeholder-title":"Add Weibo Name...","phone-placeholder-title":"Add Phone...","email-placeholder-title":"Add Email...","address-placeholder-title":"Add Address...","email-label":"Email","home-label":"Home","work-label":"Work","other-label":"Other","phone-label":"Phone","mobile-label":"Mobile","main-label":"Main","home-fax-label":"Home Fax","work-fax-label":"Work Fax","twitter-label":"Twitter","facebook-label":"Facebook","weibo-label":"Weibo","linkedin-label":"LinkedIn","address-label":"Address"},
of:{"display-as":function(a){f=e(a)}},sd:{"display-as":function(a){g=tf.value("title.content");var b=!1;a=e(a);if(f&&a&&g){var c=new RegExp("\\b"+$a(f)+"\\b","g");if(c=g.replace(c,a))255<c.length&&(c=g),tf.action("title.content",c),tf.action("title.changes",!0),b=!0,f=a}return b}}})}}};function Kg(){function a(c,d,e){if(!(this instanceof a))return new a(c,d,e);b.call(this,c,d,e)}function c(a,d,e){if(!(this instanceof c))return new c(a,d,e);b.call(this,a,d,e)}function b(a,b,c){"undefined"===typeof c&&(c={});this.ma=c;A(null!=this.ma.Fd,"You have to provide tablePlugin config!");void 0!==c.cssBlockStyle?this.N=c.cssBlockStyle:this.N=this.ya;this.async=!!c.async;if(!a)a=document.body;else if(a instanceof DocumentFragment||!Qc(a))c=M("div"),c.appendChild(a),document.body.appendChild(c),
this.Ra=a=c;this.W=a;this.Yc=b;this.na()}function e(a,b,c,d){b=b.getAttribute(c);if(null==b){if(null==d)return;b=d}a.setAttribute(c,b)}function d(a){return a?!!P(a,function(a){return a&&a.style?"rgb(255, 250, 165)"===a.style.backgroundColor:!1}):!1}function f(a){return"td"===a||"th"===a}function g(a){a=L(a);return"ul"===a||"ol"===a}function l(a){a=L(a);return"p"===a||"div"===a}var p=this;this.name="simpletext";b.prototype.V="div";b.prototype.ya=null;b.prototype.La=.8;b.prototype.jb=150;b.prototype.Ca=
10;b.prototype.ib=2E3;b.prototype.fb="evernote://";b.prototype.Sa="rgb(105, 170, 53)";b.prototype.na=function(){var a=this;this.wa=this.Qa=this.R=this.da=this.A=this.block=null;this.I=M("div");this.ba=this.aa=null;this.H=!1;this.L=[];var b=Rc(document.body);this.yb=b&&b.fontSize?+b.fontSize.replace(/px/gi,"")*this.La:16;if(this.async){this.ha=this.fa=this.Ka=0;this.ia=!1;this.wb=this.Ba=(new Date).getTime();for(var b=document.createNodeIterator(this.W,-1,null,!0),c=0;b.nextNode();)++c;this.xb=c}this.ab=
document.createTreeWalker(this.W,-1,{acceptNode:function(b){for(var c=0;c<a.L.length;c++)if(Oc(b,a.L[c]))return 2;return 1}},!0);this.Ja()};b.prototype.Ja=function(){var a=this;if(this.mb)this.S();else{var b;try{for(;(b=this.ab.nextNode())&&!(3===b.nodeType?this.vb(b):1===b.nodeType&&this.Ia(b),this.async&&(++this.Ka,(new Date).getTime()-this.Ba>this.jb)););++this.fa}catch(c){b=null}if(b&&this.async){this.ha=Math.min(1,this.Ka/this.xb);this.ia||(b=((new Date).getTime()-this.wb)/this.ha,b+=(Math.ceil(this.fa/
this.ha)-this.fa)*this.Ca,b>=this.ib&&(this.ia=!0));if(this.ia&&this.ma.onprogress)this.ma.onprogress(this,this.ha);p.D.timeout(function(){a.Ba=(new Date).getTime();a.Ja()},this.Ca)}else{this.L=null;this.Oa(this.block);if(this.ia&&this.ma.onprogress)this.ma.onprogress(this,1);this.va()}}};b.prototype.va=function(){this.Yc?Dc(this.I,this.Yc):this.Yc=this.I;this.S();if(this.ma.onready)this.ma.onready(this)};b.prototype.S=function(){this.Ra&&document.body.removeChild(this.Ra)};b.prototype.$a=function(a){for(var b,
c=document.createNodeIterator(a,4,null,!0);(b=c.nextNode())&&!(b.textContent=b.textContent.replace(/^ /gi,""),0<b.textContent.length);)Nc(b)?b.parentNode.appendChild(M("br")):b.appendChild(M("br"));c=document.createNodeIterator(a,4,null,!0);for(a=[];b=c.nextNode();)a.unshift(b);for(c=0;c<a.length&&!(b=a[c],b.textContent=b.textContent.replace(/\s+$/gi,""),0<b.textContent.length);c++)Nc(b)?b.parentNode.appendChild(M("br")):b.appendChild(M("br"))};b.prototype.Oa=function(a){a&&(this.$a(a),a.normalize())};
b.prototype.Y=function(a){a=M(a?a:this.V);this.N&&a.setAttribute("style",this.N);return a};b.prototype.ra=function(){var a=this.Y();a.appendChild(M("br"));this.I.appendChild(a);this.H=!1};b.prototype.C=function(a){var b=this.Y();null!=a&&(t(a)?b=this.Y(a):J(a)&&(b=a));this.I.hasChildNodes&&this.H&&(a=this.I.lastElementChild)&&a.textContent.length&&l(a)&&l(b)&&this.ra();this.H=!1;this.I.appendChild(b);return b};b.prototype.B=function(){this.Oa(this.block);this.A=this.block=null};b.prototype.Ha=function(a){var b=
document.createRange();b.selectNodeContents(a);b=b.getBoundingClientRect();this.ba&&b&&!Oc(a,this.A)&&Math.abs(b.top-this.ba.bottom)>=this.yb&&(this.H=!0);b&&(this.ba=b)};b.prototype.Va=function(a){var b=P(a,"li");if(null==b)this.da=null;else{if(Nc(a)){if(-1!==a.textContent.search(/^\s*$/i))return;a.textContent.replace(/\s+/gi," ")}if(this.aa&&this.da===b)this.block=this.aa,Wc(this.aa.lastChild)&&Wc(a)||this.block.appendChild(M("br"));else{var c=0;a=null;for(var d=b;d&&d!==this.W;)g(d)&&(++c,a||(a=
L(d))),d=d.parentNode;var c=Math.max(0,c),e=null;for(this.block&&0<this.block.childNodes.length?d=this.block:d=this.I;;){d=d.lastElementChild;if(!d)break;if(g(d)&&(e=d,--c,1>c))break}if(0<c&&e)d=e.lastElementChild,e=this.C(a||"ol"),d.appendChild(e);else if(!e)null!=this.block?(e=M(a||"ol"),this.block.appendChild(e)):e=this.C(a||"ol"),b&&b.parentNode&&E(b.parentNode,"en-todo-list")&&(e.className="en-todo-list");else if(this.H||a&&a!==L(e))null!=this.block?(e=M(a||"ol"),this.block.appendChild(e)):e=
this.C(a||"ol");if(null===this.block&&0<c)for(--c;c--;)d=this.C(a||"ol"),e.appendChild(d),e=d;this.block=this.Y("li");b&&E(b,"en-todo-checked")&&(this.block.className="en-todo-checked");e.appendChild(this.block);this.da=b;this.aa=this.block}}};b.prototype.lb=function(a){var b=P(a,"table"),c=this.ma.Fd;if(null!=b&&null!=c&&J(b)&&"table"===L(b)){var d=c.bf(b);-1!==d.rows&&(this.Qa!==b&&(this.Qa=b,this.wa=c.Of(d),this.C(this.wa),this.R=null),b=c.wd(a),null!=b.table&&(b=c=this.wa.querySelectorAll("tr")[b.row].querySelectorAll("td")[b.column],
null==c?v.warn("Something crazy happened with table simplify: <$>"):(1===c.childNodes.length&&"div"===L(c.childNodes[0])&&(b=c.childNodes[0],1===b.childNodes.length&&"br"===L(b.childNodes[0])&&rc(b)),this.R&&"td"===L(this.R.parentNode)&&this.R.parentNode===c&&"td"!==L(b)&&Nc(a)&&!Wc(a)&&!Wc(a.parentNode)&&(a=this.Y(),P(b,"td").appendChild(a),b=a),this.block=this.R=b)))}else v.warn("Couldn't simplify table. Look into this!")};b.prototype.M=function(a,b,c,d){c=!Oc(a,this.A);if(d&&c)return null;b||(b=
a.cloneNode(!1));"br"!==L(a)&&this.Ha(a);c&&(J(this.A)&&(d=L(this.A),f(d)&&(this.H=!0)),this.B());for(c=a;c!==this.W&&(c=c.parentNode);){this.A=c;d=L(c);if("li"===d)break;if(f(d))break;if(Tc(c))break}P(a,"table")&&this.lb(a);P(a,"li")&&this.Va(a);a=this.Z(a);this.block||(this.block=this.C());this.block.appendChild(this.ka(b,a));return b};b.prototype.vb=function(a){if(a){var b;if((b=Rc(a.parentNode))&&/pre/gi.test(b.whiteSpace)){var c=a.textContent.split(/\n\r|\r\n|\r|\n/gi);if(c&&0<c.length&&(b=c[0].replace(/\s/gi,
" ").replace(/\s\s/gi,"\u00a0 "),a=this.M(a,document.createTextNode(b))))for(var d=1;d<c.length;d++){var e=a.parentNode;e.appendChild(M("br"));b=c[d].replace(/\s/gi," ").replace(/\s\s/gi,"\u00a0 ");e.appendChild(document.createTextNode(b))}}else b=a.textContent.replace(/[\ \n\r\t]+/gi," "),c=!1,-1!==b.search(/^[\ \t\n]*$/i)&&(c=!0),this.M(a,document.createTextNode(b),!1,c)}else v.warn("Node missing",a)};b.prototype.Ia=function(a){if(a){var b=L(a);if("div"===b&&/^en-revealed-crypto:\d+$/.test(a.id))this.B(),
this.M(a,a.cloneNode(!0),!0),this.B(),this.L.push(a);else if("embed"===b)b=Yc(a,"type").toLowerCase(),"evernote/x-crypto"!==b&&"evernote/x-todo"!==b&&"evernote/x-attachment"!==b&&"evernote/x-pdf"!==b||this.M(a);else if("script"===b||"style"===b)this.L.push(a);else if("img"===b&&Q(a,".en-todo"))this.M(a);else if("img"===b&&a.src)this.B(),b=M("img"),e(b,a,"src"),e(b,a,"alt",""),e(b,a,"id"),this.M(a,b,!0),this.B();else if("hr"===b)this.B(),b={},"true"===md(a,"-evernote-encp-section-break")&&(b={style:"display:none;-evernote-encp-section-break:true;"}),
this.M(a,M("hr",b),!0),this.B();else{if("br"===b)if(this.B(),P(a,"table"))b=this.Y(),b.appendChild(M("br")),this.M(a,b,!0);else{this.ra();return}this.block&&a&&(Tc(a)||!Pc(this.A,a))&&this.B()}}else v.warn("Node missing",a)};b.prototype.Z=function(a){for(var b={ac:0,Tc:0,e:0,Lf:0,Xf:0,ye:0,tf:0};a||a===this.W;){var c=L(a);"del"===c||"strike"===c||"s"===c?b.tf=1:"mark"===c?b.Tc=1:"a"===c&&(c=a.href+"")&&c.length&&(b.ac=c,b.e=0===c.indexOf(this.fb));if(c=Rc(a)){var e=c.backgroundColor.toLowerCase();
if("rgb(255, 204, 102)"===e||"rgb(255, 250, 165)"===e||"rgb(246, 238, 150)"===e||d(a))b.Tc=1;var e=c.fontWeight.toLowerCase(),f=c.fontStyle.toLowerCase(),c=c.textDecoration.toLowerCase();if("bold"===e||"bolder"===e||"700"===e)b.Lf=1;if("italic"===f||"oblique"===f)b.Xf=1;!b.ac&&0<=c.indexOf("underline")&&(b.ye=1);0<=c.indexOf("line-through")&&(b.tf=1)}a=a.parentNode}b.ac&&b.ye&&delete b.ye;return b};b.prototype.ka=function(a,b){var c;b.ac&&(c=M("a"),c.setAttribute("href",b.ac),b.e&&c.setAttribute("style",
"color:"+this.Sa+";"),c.appendChild(a),a=c);b.Lf&&(c=M("b"),c.appendChild(a),a=c);b.Xf&&(c=M("i"),c.appendChild(a),a=c);b.ye&&(c=M("u"),c.appendChild(a),a=c);b.tf&&(c=M("s"),c.appendChild(a),a=c);b.Tc&&(c=M("span",{style:"-evernote-highlight:true; background-color:rgb(255, 250, 165);"}),c.appendChild(a),a=c);return a};ia(c,b);ia(a,b);a.prototype.V="div";a.prototype.ya='font-family: Courier, "Courier New", monospace;';a.prototype.oa=!1;a.prototype.hb="\u00a0 \u00a0 ";a.prototype.gb="- ";a.prototype.na=
function(){this.qa=[];a.Ed.na.call(this)};a.prototype.va=function(){this.H=!0;for(var b=0;b<this.qa.length;b++)this.block=this.C(),this.block.appendChild(this.qa[b]);a.Ed.va.call(this)};a.prototype.Y=function(){var a=M(this.V);this.N&&a.setAttribute("style",this.N);return a};a.prototype.M=function(a,b,c,d){c=!Oc(a,this.A);if(d&&c)return null;b||(b=a.cloneNode(!1));this.Ha(a);c&&(J(this.A)&&(d=L(this.A),f(d)&&(this.H=!0)),this.B());for(c=a;c!==this.W&&(c=c.parentNode);){this.A=c;d=L(c);if("li"===d)break;
if(f(d))break;if(Tc(c))break}d=P(a,"li");if(!this.block&&d)if(this.aa&&this.da===d)this.block=this.aa,this.block.appendChild(M("br"));else{c=0;for(var e=d;e&&e!==this.W;)g(e)&&++c,e=e.parentNode;c=Math.max(0,c);this.block=this.C();e=this.gb;for(P(d,"ul.en-todo-list")&&(e=E(d,"en-todo-checked")?"[x] ":"[ ] ");1<c;)e=this.hb+e,--c;this.block.appendChild(document.createTextNode(e));this.da=d;this.aa=this.block}else this.da=null,this.block||(this.block=this.C());a=this.Z(a);this.block.appendChild(this.ka(b,
a));return b};a.prototype.Ia=function(a){var b;b=L(a);E(a,"en-todo")?(b=E(a,"en-todo-checked"),this.M(a,document.createTextNode(b?"[x] ":"[ ] "))):"embed"===b?(b=Yc(a,"type").toLowerCase(),"evernote/x-todo"===b?(b="true"===(Yc(a,"todo-checked")+"").toLowerCase(),this.M(a,document.createTextNode(b?"[x] ":"[ ] "))):"evernote/x-attachment"!==b&&"evernote/x-pdf"!==b||this.qa.push(a.cloneNode(!0))):("script"!==b&&"style"!==b||this.L.push(a),"img"!==b&&("hr"===b?this.B():"br"===b?this.B():f(b)?(this.B(),
this.H=!0):!this.block||!Tc(a)&&Pc(this.A,a)||this.B()))};a.prototype.Z=function(a){var b={};if(this.oa)for(;a||a===this.W;)"a"===L(a)&&(b.ac=a.href),a=a.parentNode;return b};a.prototype.ka=function(a,b){if(this.oa&&b.ac){var c=M("a");c.setAttribute("href",b.ac);c.appendChild(a);a=c}return a};this.G=function(){function b(a,c){var g=d.B(),h,l,q;if(g&&!g.collapsed){e.Ue();l=ke(g,"td",f);l=l[0]===l[1]&&"td"===L(l[0])?ke(g,"div",f):ke(g,"table,ul,ol",f);h=l[0];var D=l[1];q=D.nextSibling;l=D.parentNode;
h===D?d.de(h):d.M(h,0,D,D.childNodes.length);h=d.B().cloneContents()}if(h){var V=(new a(h,null,c)).Yc.childNodes;h=V[0];var D=V[V.length-1],Y=g.startContainer,g=g.endContainer;for(q&&Nc(q)&&0===q.length&&(q=null);0<V.length;)null!==q?d.insertBefore(V[0],l,q):d.xc(V[0],l);p.K("edit").ha({Dd:!0});g!==l&&g!==f&&g!==Y&&d.removeNode(g);Y!==f&&Y!==l&&d.removeNode(Y);g=qc(D);d.M(pc(h),0,g,g.length)}else new a(f,f,c),d.M(f,0),d.Ma();return!0}var d=p.K("context");p.K("query");var e=p.K("normalize"),f=d.root,
g=d.Aa;g.simpletext={U:!0,action:function(a){null!=a&&Ta("simpletext called with an argument!");return b(c,{Fd:p.K("table")})},enabled:Na};g.plaintext={U:!0,action:function(c){var e=null,f=null,f="",e=null;c=Nb(c);null!=c.value&&(Ta("plaintext called with non-JSON string"),c={});c=B(c,{fontStyle:"fixed width"});"fixed width"===c.fontStyle?(e=M("tt",{style:"position: absolute;"}),document.body.appendChild(e),f=Rc(e),f="font-family:"+f.fontFamily+"; font-size:"+f.fontSize+"; font-weight:"+f.fontWeight,
I(e)):"none"===c.fontStyle&&d.X("removeformat").action();e={cssBlockStyle:f,Fd:p.K("table")};return b(a,e)},enabled:Na}};this.Lg=function(a){return(new c(a,null,{Fd:p.K("table")})).Yc};this.Ge=function(b){return(new a(b,null,{Fd:p.K("table"),cssBlockStyle:""})).Yc}};function Lg(){this.name="spellcheck";this.root=null;this.G=function(){function a(a,b){var c;null!=a&&null!=b&&3===a.nodeType&&a===b.startContainer&&a===b.endContainer&&!0!==b.collapsed&&(c=a.data.substr(b.startOffset,b.endOffset-b.startOffset),a.replaceData(b.startOffset,c.length,c))}var c=this.K("context"),b=this.K("format");this.root=c.root;this.Hb=function(){var e=b.ae(),d,f=U(),g=Oe(c.root);null!=f&&f.startContainer===f.endContainer&&3===f.startContainer.nodeType&&!1!==f.collapsed&&(f=f.startContainer,
d=window.getSelection(),d.modify("move","backward","word"),d.modify("extend","forward","word"),d=U(),a(f,d),Pe(c.root,g),d=window.getSelection(),d.modify("move","forward","word"),d.modify("extend","backward","word"),d=U(),a(f,d),Pe(c.root,g));c.Ha();b.Ob(e)};return this};this.S=function(){this.root=this.Hb=null}};function Mg(){var a=this;a.name="stats";a.G=function(){var c=a.K("context"),b=a.K("query"),e=c.root;a.getStats=function(c){var f={};c=B(c,{stats:["todo","firstLine","isEmpty","isDirty","link"]});c=c.stats;A(ca(c));-1!==c.indexOf("todo")&&(f.todo=a.K("todo").Xe().length);if(-1!==c.indexOf("firstLine"))for(var g;g=Mc(g,e);)if(g&&!tb(g.textContent)){f.firstLine=Jc(b.na(g)).substr(0,255).trim();break}-1!==c.indexOf("isEmpty")&&(f.isEmpty=pe(e));-1!==c.indexOf("isDirty")&&(f.isDirty=a.K("io").Ic());-1!=
c.indexOf("link")&&(f.link=a.K("link").ah().length);return f};a.D.B({name:"stats",U:!1,value:function(b){return a.getStats(Nb(b))},enabled:Na,tc:!0})}};function Pg(){this.name="table";this.G=function(){var a=this,c=a.K("context"),b=a.K("query"),e=a.K("block"),d=c.root,f=c.Aa;a.Y=function(){var a=c.B();if(!a)return null;var b=P(a.startContainer,"table",d),a=P(a.endContainer,"table",d);return!b||a&&a!==b?null:b};a.A=function(){return a.Y()?P(c.B().startContainer,"tr",d):null};a.Sd=function(){return a.Y()?P(c.B().startContainer,"td",d):null};a.C=function(){var b;if(null==b&&(b=a.Y(),null==b))return[];var c=window.getSelection(),d=[],e=[],f=[];nb(b.querySelectorAll("td"),
function(a){c.containsNode(a,!1)?(e.push(a),f.push(a)):c.containsNode(a,!0)&&(d.push(a),f.push(a))});return f};a.wd=function(a){var b={table:null,cell:null,row:-1,column:-1},c=P(a,"table"),d=P(a,"tr");a=P(a,"td,th");if(null==c||null==d||null==a)return b;for(var e=-1,f=-1,n=c.querySelectorAll("tr"),q=0;q<n.length;q++)n[q]===d&&(e=q);if(-1===e)return b;d=d.querySelectorAll("td,th");for(q=0;q<d.length;q++)d[q]===a&&(f=q);return-1===f?b:{table:c,cell:a,row:e,column:f}};a.H=function(a){var b=Rc(a.querySelector("td")),
c=parseInt(b.borderWidth,10)||1,d=b.borderColor||"black";nb(Ua(a.style),function(b){0<=b.indexOf("border")&&nd(a,b)});a.removeAttribute("border");S(a,"border-style","solid");S(a,"border-width",c+"px");S(a,"border-color",d);S(a,"border-collapse","collapse");nb(a.querySelectorAll("tr"),function(a){nb(Ua(a.style),function(b){0<=b.indexOf("border")&&nd(a,b)})});nb(a.querySelectorAll("td"),function(a){nb(Ua(a.style),function(b){0<=b.indexOf("border")&&nd(a,b)});S(a,"border-style","solid");S(a,"border-width",
c+"px");S(a,"border-color",d)})};a.Qd=function(a){var b=md(a,"float"),c=a.getAttribute("align"),d=a.style.marginLeft;a=a.style.marginRight;var e;null!=b?e=b:null!=c?e=c:"auto"===d&&"auto"===a?e="center":"auto"===d?e="right":"auto"===a&&(e="left");null==e&&(e="left");return e};a.bf=function(a){if(null==a||!J(a)||"table"!==L(a)||null!=a.querySelector("table"))return{rows:-1,columns:-1};a=a.querySelectorAll("tr");return 0>=a.length?{rows:0,columns:0}:{rows:a.length,columns:a[0].querySelectorAll("td,th").length}};
a.Of=function(a){for(var b=+a.columns||2,c=+a.rows||2,d=a.borderColor||"rgb(211,211,211)",e=+a.borderWidth||1,f=M("table",{style:"-evernote-table:true;border-collapse:collapse;width:100%;table-layout:fixed;"}),n=Math.round(1E4/b)/100,q=0;q<c;q++){var y=M("tr");f.appendChild(y);for(var u=0;u<b;u++){var z=M("td",{style:"border-style:solid;border-width:"+e+"px;border-color:"+d+";padding:10px;margin:0px;width:"+n+"%;"},[Kc()]);a.cellColor&&(z.style.backgroundColor=a.cellColor);y.appendChild(z)}}return f};
f.inserttable={U:!0,action:function(f){if(!c.B()||e.Xd())return!1;var l={};"{"===f[0]?l=B(f,{columns:2,rows:2,borderColor:"rgb(211,211,211)",borderWidth:1,cellColor:null,alignment:"left"}):(f=f.split(","),l.columns=+f[0].trim(),l.rows=+f[1].trim());c.X("insertparagraph").action();f=l.align||"left";var l=a.Of(l),p=b.na(c.B().startContainer);p.parentNode.insertBefore(l,p);e.Ja(l);c.M(l.querySelector("div"),0);c.X("tablealign").action(f);Ve(d,"TABLE_ADDED",{target:l});return!0},state:function(){return!!a.Y()},
enabled:function(){return c.hasFocus()&&!e.Xd()&&!e.jb()}};f.inserttablerow={U:!0,action:function(b){var e=a.Y();if(null==e)return!1;b="before"===b.toString().toLowerCase().trim();var f=P(c.B().startContainer,"tr",d),h=P(c.B().endContainer,"tr",d);if(!f&&!h)return!1;f=f.compareDocumentPosition(h)&(b?4:2)?f:h;if(!f)return!1;var h=f.cloneNode(!0),m=[];nb(h.querySelectorAll("td"),function(a){m.push(a);rc(a);a.appendChild(Kc())});c.aa(h,f.parentNode,K(f)+(b?0:1));Ve(d,"TABLE_INSERT_ROW",{target:e});return!0},
state:function(){return!!a.Y()},enabled:function(){return c.hasFocus()&&!!a.Y()}};f.inserttablecol={U:!0,action:function(b){var e=a.Y();if(!e)return!1;var f=c.B(),h="before"===b.toString().toLowerCase().trim();b=P(f.startContainer,"td",d);var m=P(f.endContainer,"td",d);if(!b&&!m)return!1;if("div"===L(f.endContainer)&&"td"===L(f.endContainer.parentNode)&&0===f.endOffset){var r=a.wd(f.startContainer),n=a.wd(f.endContainer),q=a.bf(e);if(0<q.rows&&r.row===n.row&&r.column+1===n.column||r.row+1===n.row&&
r.column===q.columns-1&&0===n.column)m=b;null==P(f.endContainer,"td")&&(m=b)}else null==m&&(m=b);var f=null,y=b.compareDocumentPosition(m)&(h?4:2)?b:m;if(null==y)return!1;var u=[],z=y.cellIndex;nb(Ua(e.querySelectorAll("td")),function(a){if(a.cellIndex===z&&e===P(y,"table")){var b=a.cloneNode(!0);rc(b);b.appendChild(Kc());u.push(b);var d=md(a,"width"),d=window.parseFloat(d)||0;0<d&&(S(b,"width",d/2+"%"),S(a,"width",d/2+"%"));c.aa(b,a.parentNode,K(a)+(h?0:1))}});Ve(d,"TABLE_INSERT_COLUMN",{target:e});
return!0},state:function(){return!!a.Y()},enabled:function(){return c.hasFocus()&&!!a.Y()}};f.deletetablerow={U:!0,action:function(){var b=a.A();if(!b)return!1;var e=a.Y();if(!e)return!1;var f=T("tr",e);if(1===f.length)return c.X("deletetable").action();f.indexOf(b)===f.length-1?(f=T("td",f[f.length-2]).pop(),c.M(f,O(f))):(f=T("td",f[f.indexOf(b)+1]).shift(),c.M(f,0));c.removeNode(b);Ve(d,"TABLE_DELETE_ROW",{target:e});return!0},state:function(){return!!a.A()},enabled:function(){return c.hasFocus()&&
!!a.A()}};f.deletetablecol={U:!0,action:function(){var b=a.Sd();if(!b)return!1;var e=b.cellIndex,f=a.Y();if(!f)return!1;var h=T("td",f);if(h.every(function(a){return a.cellIndex===e}))return c.X("deletetable").action();var m=h.filter(function(a){return a.cellIndex===e+1});m&&m.length||(m=h.filter(function(a){return a.cellIndex===e-1}));for(var r=T("tr",f),n=0,q=0;q<r.length;q++)for(var y=T("td",r[q]),u=0;u<y.length;u++)y[u]===b&&(n=q);c.M(m[n],0);for(q=h.length-1;0<=q;q--)b=h[q],b.cellIndex===e&&
c.removeNode(b);Ve(d,"TABLE_DELETE_COLUMN",{target:f});return!0},state:function(){return!!a.Sd()},enabled:function(){return c.hasFocus()&&!!a.Sd()}};f.deletetable={U:!0,action:function(){var b=a.Y();if(!b)return!1;c.M(b.parentNode,K(b),b.parentNode,K(b)+1);a.K("edit").ha()&&Ve(d,"TABLE_REMOVED",{target:b});return!0},state:function(){return!!a.Y()},enabled:function(){return c.hasFocus()&&!!a.Y()}};f.tablebordercolor={U:!0,action:function(b){var c=b||"black";b=a.Y();if(null==b)return!1;a.H(b);S(b,"border-color",
c);nb(b.querySelectorAll("td"),function(a){S(a,"border-color",c)});return!0},value:function(){var b=a.Y();return null==b?"":(b=Rc(b.querySelector("td")).borderColor)?""+b:""},state:function(){return!!a.Y()},enabled:function(){return c.hasFocus()&&!!a.Y()}};f.tableborderwidth={U:!0,action:function(b){var c=parseInt(b,10);if(isNaN(c)||0>c)return v.warn("Invalid value given to tableborderwidth <$>",Va(c)),!1;b=a.Y();if(null==b)return!1;a.H(b);S(b,"border-width",c+"px");nb(b.querySelectorAll("td"),function(a){S(a,
"border-width",c+"px")});Ve(d,"TABLE_BORDER_WIDTH",{target:b,value:c});return!0},value:function(){var b=a.Y();if(null==b)return"";b=Rc(b.querySelector("td"));return(b=parseInt(b.borderWidth,10))?""+b:"0"},state:function(){return!!a.Y()},enabled:function(){return c.hasFocus()&&!!a.Y()}};f.tablealign={U:!0,action:function(b){if("left"!==b&&"right"!==b&&"center"!==b)return v.warn("Invalid value given to tablealign <$>"),!1;var c=a.Y();if(null==c)return!1;c.removeAttribute("align");nd(c,"float");nd(c,
"margin");nd(c,"margin-right");nd(c,"margin-left");"left"===b?S(c,"margin-left","0px"):"right"===b?(S(c,"margin-left","auto"),S(c,"margin-right","0px")):"center"===b&&(S(c,"margin-left","auto"),S(c,"margin-right","auto"));Ve(d,"TABLE_ALIGN",{target:c,value:b});return!0},value:function(){var b=a.Y();return null==b?"":a.Qd(b)},state:function(){return!!a.Y()},enabled:function(){return c.hasFocus()&&!!a.Y()}};f.tablecellcolor={U:!0,action:function(b){b=b||"transparent";var c=a.C();if(0===c.length)return!1;
nb(c,function(a){nd(a,"background");nd(a,"background-image");nd(a,"background-attachment");nd(a,"background-position");nd(a,"background-clip");nd(a,"background-repeat");S(a,"background-color",b)});return!0},value:function(){var b=a.C();if(0===b.length)return"";b=b[0].style;return b.backgroundColor?(b=Ae(b.backgroundColor),null!=b?b:""):""},state:function(){return!!a.Y()},enabled:function(){return c.hasFocus()&&!!a.Y()}};a.Wa=function(a,b,c){3===b&&("msexcel"===c.source&&vd('table[border="0"]',a).forEach(function(a){a.setAttribute("border",
"1");md(a,"border")||S(a,"border","1px solid rgb(211,211,211)")}),T("table td:empty",a).forEach(function(a){0===O(a)&&(a.appendChild(M("br")),a.getAttribute(a,"style")||"0"===P(a,"table").getAttribute("cellpadding")&&a.previousElementSibling&&md(a.previousElementSibling,"padding")&&S(a,"padding",md(a.previousElementSibling,"padding")))}))}}};function Qg(){var a=this;this.name="tableselection";this.G=function(){function c(a,b){var c=[],d=[],e=Xd(a,"td");if(0<e.length)for(var f=0;f<e.length;f++){var g=e[f];b.containsNode(g,!1)?d.push(g):b.containsNode(g,!0)&&c.push(g)}return{Oe:d,se:c}}function b(){for(var a=d.getElementsByClassName("en-selected");0<a.length;)H(a[0],"en-selected")}var e=this.K("context"),d=e.root,f=!1,g,l=Kd();this.D.pa(d,"selectionChanged",function(){if(U(d)&&!f&&0!==d.getElementsByTagName("table").length){var a=window.getSelection(),
e=U();l=Kd(e.startContainer,e.startOffset,e.endContainer,e.endOffset);b();e&&!e.collapsed&&(a=c(e,a),1>=a.se.length&&0===a.Oe.length||(nb(d.querySelectorAll("table"),function(a){G(a,"en-selected")}),nb(a.se,function(a){G(a,"en-selected")}),nb(a.Oe,function(a){G(a,"en-selected")})))}});this.D.listener(document,"contextmenu",function(d){f=!0;g=a.D.timeout(function(){f=!1},1E3,g);d=d.target;var m=window.getSelection(),p=U();b();Td(p,l)||(m=c(p,m),2!==m.se.length&&1!==m.se.length||0!==m.Oe.length||P(p.startContainer,
"td")===P(p.endContainer,"td")||(p=document.createRange(),p.selectNodeContents(d),e.Zb(p),e.Ma()));return!0});b();var p=M("style",{type:"text/css"});p.textContent="td.en-selected { background-color: "+zf()+" !important;}";document.querySelector("head").appendChild(p)}};function Rg(){var a=this;this.name="texttransform";this.G=function(){function c(a){null==a&&(a=document.body);b(a);f(a,function(a){var b="";a=a.split(/(\W+)/gi);for(var c=0;c<a.length;c++)var d=a[c],b=0<d.length?b+(d.charAt(0).toLocaleUpperCase()+d.slice(1).toLocaleLowerCase()):b+d;return b})}function b(a){var b=Oe(a,!0);a.normalize();Pe(a,b)}function e(a){null==a&&(a=document.body);f(a,function(a){return a.toLocaleLowerCase()})}function d(a){null==a&&(a=document.body);f(a,function(a){return a.toLocaleUpperCase()})}
function f(a,b){var c;null==a&&(a=document.body);var d=U();if(d&&!(1>d.toString().length)){Nc(d.endContainer)&&0<d.endOffset&&d.endOffset<d.endContainer.textContent.length&&(c=d.endContainer.splitText(d.endOffset),d.setEnd(c,0));Nc(d.startContainer)&&0<d.startOffset&&(c=d.startContainer.splitText(d.startOffset),d.setStart(c,0));Ld(d);for(var e=c=null,f=window.getSelection(),d=document.createTreeWalker(a,4,{acceptNode:function(a){return f.containsNode(a,!1)?1:2}},!1);d.nextNode();)Nc(d.currentNode)&&
(d.currentNode.textContent=b(d.currentNode.textContent),c||(c=d.currentNode),e=d.currentNode);d=document.createRange();d.setStartBefore(c);d.setEndAfter(e);Ld(d)}}var g=a.K("context"),l=g.root,g=g.Aa;g.lowercase={U:!0,action:function(){e(l);return!0}};g.uppercase={U:!0,action:function(){d(l);return!0}};g.capitalize={U:!0,action:function(){c(l);return!0}}}};function Sg(){var a=this;a.name="todo";var c;a.G=function(){function b(a,b){for(var c=0;c<a.length;c++){var d=a[c];b?G(d,"en-todo-checked"):H(d,"en-todo-checked")}}function e(a,b){mc(a,"en-todo-checked");Ve(c,"setDirty",{qd:!0===b})}function d(a){var b=a.target;if(!g.Kb()){var d=T("li.en-todo-over",c);(a=f(a))&&G(b,"en-todo-over");for(var e=0;e<d.length;e++){var h=d[e];a&&h.isEqualNode(b)||H(h,"en-todo-over")}}}function f(a){var b=a.target;return R(b,"li")&&E(b.parentNode,"en-todo-list")&&40>a.clientX-
b.getBoundingClientRect().left}var g=a.K("context"),l=a.K("query"),p=a.K("block"),h=a.K("normalize"),m=a.K("undo");c=g.root;var r=g.Aa;(function(){var a=T(".en-preload");a&&0<a.length||(a=M("div",{style:"position:absolute; top: 0; left: 0; width: 0; height: 0;","class":"en-preload"}),document.body.appendChild(a))})();a.jf=function(a){var b=null;wd(a,function(a){return Q(a,".en-todo")?(b=a,!0):zd(a)||l.$(a)?!1:!0},a);return b};a.Ug=function(b){if(!Q(b,"div,li"))return!1;var c=a.jf(b);if(!c)return!1;
for(var d=b.childNodes.length-1;0<=d;d--){var e=b.childNodes[d];if(e!==c&&(Nc(e)&&!zd(e)||!l.Oa(e)))return!1}return!0};a.Uc=function(){return M("img",{"class":"en-todo",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"})};a.ze=function(b){var c=a.Uc(),d=l.ld(b,0);g.aa(c,J(d[0])?d[0]:d[0].parentNode,0);p.Rb(b);return c};a.Xe=function(){return T(".en-todo",c)};a.A=function(a){if(a&&a.parentNode){var b=a.parentNode,c=a.nextSibling;if(c&&Nc(c)){var d=c.textContent,e=
d.trimLeft(d);d!==e&&(0==e.length?g.removeNode(c):c.textContent=e)}g.removeNode(a);p.Rb(b)}};a.D.listener(c,"mousemove",d);a.D.listener(c,"mouseout",d);a.D.listener(c,"blur",d);var n=!1;a.D.pa(c,"selectionChanged",function(a){!0===n&&(a.Mb?Ld(a.Mb):Od(),n=!1)});a.D.listener(c,"click",function(a){n=!1;if((Q(a.target,".en-todo")||f(a))&&!g.Kb())return m.flush(),e(a.target,!0),n=!0,W(a)});r.controltodos={U:!0,action:function(d){var e=g.B();if(!e||!dd(c))return!1;var f=a.Xe();e.collapsed||(f=Xd(e,".en-todo"),
e=Qd(e),(e=xd(e,".en-todo",l.na(e)||c))&&f.push(e));if(d&&"toggle"!=d)if("on"==d)b(f,!0);else if("off"==d)b(f,!1);else return!1;else for(d=f,f=0;f<d.length;f++)mc(d[f],"en-todo-checked");return!0}};r.inserttodo={U:!0,action:function(b){var d=g.B();if(!d||!dd(c))return!1;if("toggle"===b){b=Qd(d);var f=P(b,"ul.en-todo-list > li",c);if(f||(f=xd(b,".en-todo",l.na(b)||c)))return e(f,!1),!0}if(d.collapsed)return b=a.Uc(),a.K("paste").insertNode(b),p.Rb(b),!0;h.Pc();if((b=a.Xe().filter(function(a){return d.intersectsNode(a)}).reverse())&&
0<b.length)return b.map(function(b){a.A(b)}),!0;(b=T("div,li",c).filter(function(a){return d.intersectsNode(a)}))&&0<b.length&&(b.map(function(b){tb(b.textContent)||a.ze(b)}),d=g.B(),g.M(b[0],0,d.endContainer,d.endOffset));return!0},enabled:function(){return g.hasFocus()&&!p.jb()}}};a.S=function(){T(".en-preload").forEach(I)};a.Wa=function(b,c){1===c?vd("en-todo",b).forEach(function(b){var c=a.Uc();mc(c,"en-todo-checked","true"==b.getAttribute("checked"));sc(b,c)}):(vd("input[type=checkbox]",b).forEach(function(b){var c=
a.Uc();mc(c,"en-todo-checked",b.checked);sc(b,c)}),vd('span[data-en-input-type="checkbox"]',b).forEach(function(b){var c=a.Uc(),e=b.getAttribute("data-en-checked");mc(c,"en-todo-checked","true"===e);sc(b,c)}),vd('embed[type="evernote/x-todo"]',b).forEach(function(a){var c=yc(b,"img",{"class":"en-todo"});"true"===a.getAttribute("todo-checked")&&G(c,"en-todo-checked");sc(a,c)}))};a.Za=function(a,c){if(1===c)vd(".en-todo",a).forEach(function(c){var d=yc(a,"en-todo");E(c,"en-todo-checked")&&d.setAttribute("checked",
"true");sc(c,d)});else{var d;3===c&&(d=function(c){var d=yc(a,"span",{"data-en-input-type":"checkbox"});E(c,"en-todo-checked")?(d.setAttribute("data-en-checked","true"),d.appendChild(document.createTextNode("\u2713"))):d.appendChild(document.createTextNode("\u2610"));sc(c,d)});d&&vd(".en-todo",a).forEach(function(a){d(a)})}}};function Tg(){var a=this;a.name="transform";a.hc=function(c,b,e){function d(c){var d=[];3===b&&(vd("meta",c).forEach(function(a){d.push(a)}),vd("title,script,style,link,base,meta",c).forEach(I));var e=f.info||{};0<d.length&&(e.meta=d);dg(c);1!==b&&Yf(c);$f(c);ag(c);Zf(c);a.ec.M(!0).forEach(function(d){d!==a&&d.Wa&&d.Wa(c,b,e)});return c}A(0<b,"You need to set mode for export!");var f=B(e,{info:{},gf:3===b});if(c instanceof DocumentFragment)return f.gf=!0,d(c);Qc(c)?(e=c.ownerDocument.createRange(),
e.selectNodeContents(c),e=e.extractContents(),d(e),c.appendChild(e)):d(c);f.gf||fg(c);return c};a.Pd=function(c,b,e){A(0<b,"You need to set mode for export!");var d=B(e,{info:{}});ed(c,!1);a.ec.M(!0).forEach(function(e){e!==a&&e.Za&&e.Za(c,b,d.info||{})});1===b&&Yf(c)}};function Ug(){var a=this;a.name="clearly";a.J=null;a.G=function(c){a.J=B(c);G(a.J.root,"en-clearly-style-on")};a.S=function(){H(a.J.root,"en-clearly-style-on")}};function Vg(){this.name="hello";this.Wa=function(a,c){var b=a.querySelectorAll("span[style='x-evernote:hello-encounter']");if(!(null==b||1!==c&&2!==c||0>=b.length)){b&&1<b.length&&v.warn("Hello note with multiple span style markers?");for(var b=b[0],e=0;e<b.childNodes.length;e++){var d=b.childNodes[e],f=md(d,"margin-top");f&&0>parseInt(f,10)&&S(d,"margin-top","0px")}}}};var Wg=function(){function a(a,c){this.eb=a;this.ma=c;this.gh=c.baseURL+"/";this.le={};this.Cd={}}var c=0;a.prototype.registerStringTable=function(a,c){A(!this.Cd[a],"Table is already defined",this.eb,a);this.Cd[a]=c};a.prototype.installCSS=function(a){var e="module-css-"+c++;a=M("link",{rel:"stylesheet",type:"text/css",id:e,href:a});document.querySelector("head").appendChild(a);this.le[e]=a;return e};a.prototype.removeCSS=function(a){A(this.le[a],"Could not find CSS with ID: "+a)};a.prototype.Ph=
function(a,c){A(t(a),"tableName must be a string.");A(ga(c),"stringMap must be a string map object.");A(!this.Cd[a],"This table already exists.");this.Cd[a]=c};a.prototype.localizedStringFromTable=function(a,c){A(a&&a.length&&c&&c.length,"Table and key must be valid strings.");return this.Cd[a][c]};a.prototype.localizedString=function(a,c){return this.localizedStringFromTable("default",a,c)};a.prototype.S=function(){Object.keys(this.le).forEach(function(a){this.removeCSS(a)},this);this.le={}};a.prototype.bundleURL=
function(a){return this.gh+a};return a}();var Xg=function(){function a(a){this.eb=a}a.prototype.Pe=function(){return"Module '"+this.eb+"': "};a.prototype.logAs=function(a,b){var e=Array.prototype.slice.call(arguments,1);null==this[a]?(this.error("Unrecognized log level: <"+a+">. Logging as error."),this.error.apply(this,e)):this[a].apply(this,e)};a.prototype.info=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this.Pe());v.info.apply(null,a)};a.prototype.warn=function(a){var b=Array.prototype.slice.call(arguments);b.unshift(this.Pe());
v.warn.apply(null,b)};a.prototype.error=function(a){var b=Array.prototype.slice.call(arguments);b.unshift(this.Pe());v.error.apply(null,b)};return a}();function Yg(){this.draggingPasteData=this.draggingElement=this.draggingLocationY=this.draggingLocationX=this.draggingType=this.draggingState=null}
var Zg=function(){function a(a,b){this.M=b;this.A=[];this.B=[];this.D=a}a.prototype.Kg=3;a.prototype.Y=function(a){for(var b=0;b<this.A.length;b++){var e=this.A[b];if(e.element===a)return e}return null};a.prototype.Eh=function(a,b,e,d,f){function g(a,c){var f=new Yg;f.draggingType=e;f.draggingLocationX=a;f.draggingLocationY=c;f.draggingElement=b;f.draggingPasteData=d;return f}if(this.Y(b))A(!1,"The draggable element ",b," already registered.");else{var l=this,p=!1,h=0,m=null,r=!1,n=0,q=0,y=[],y=this.D.listener(b,
"mousedown",function(d){var e=d.pageX,u=d.pageY;p=!0;n=e;q=u;h=b.style.zIndex;b.style.zIndex=1E3;d=l.H(e,u);var y=l.C(d),e=g(e,u);e.draggingState=0;f(e);e.draggingState=0;y?(r=!y(e),m=d):l.M(a,e)}),u=this.D.listener(b,"mousemove",function(d){if(p){d.preventDefault();var e=d.pageX;d=d.pageY;var h=l.H(e,d),u=l.C(h),y=l.C(m),z=g(e,d);b.style.webkitTransform="translate("+(e-n)+"px, "+(d-q)+"px)";z.draggingState=1;f(z);r&&m?m=h:h?(m==h?(z.draggingState=1,u(z)):(z.draggingState=2,m?y&&y(z):l.M(a,z),z.draggingState=
0,r=!u(z)),m=h):(m?(y&&(z.draggingState=2,y(z)),z.draggingState=0):z.draggingState=1,l.M(a,z),m=null,r=!1)}}),z=this.D.listener(b,"mouseup",function(d){var e=d.pageX,n=d.pageY;p&&(d=l.H(e,n),d=l.C(d),e=g(e,n),n=!1,e.draggingState=3,n=!r&&d?!d(e):!l.M(a,e),e.draggingState=n?3:2,f(e),b.style.webkitTransform="",b.style.zIndex=h,m=null,p=!1)}),y=[y,u,z];this.A.push({element:b,eb:a,hh:y})}};a.prototype.Qh=function(a){for(var b=0;b<this.A.length;b++){var e=this.A[b];if(e.element===a){var d=this;e.hh.forEach(function(a){d.D.remove(a)});
this.A.splice(b,1);break}}};a.prototype.aa=function(a,b,e){a=a.getBoundingClientRect();return b<a.left+document.body.scrollLeft||b>a.right+document.body.scrollLeft||e<a.top+document.body.scrollTop||e>a.bottom+document.body.scrollTop?!1:!0};a.prototype.H=function(a,b){for(var e=0;e<this.B.length;e++){var d=this.B[e];if(this.aa(d.element,a,b))return d.element}return null};a.prototype.W=function(a){if(!a)return null;for(var b=0;b<this.B.length;b++){var e=this.B[b];if(e.element===a||Oc(a,e.element))return e}return null};
a.prototype.C=function(a){return(a=this.W(a))?a.Ah:null};a.prototype.Fh=function(a,b,e){this.W(b)?A(!1,"The drop handler for ",b," already registered."):this.B.push({element:b,eb:a,Ah:e})};a.prototype.Rh=function(a){for(var b=0;b<this.B.length;b++)if(this.B[b].element===a){this.B.splice(b,1);break}};return a}(),$g=function(){function a(a,b){this.eb=a;this.C=b}a.prototype.DRAGGING_SOURCE_STATE_STARTED=0;a.prototype.DRAGGING_SOURCE_STATE_MOVED=1;a.prototype.DRAGGING_SOURCE_STATE_ENDED=2;a.prototype.DRAGGING_SOURCE_STATE_CANCELED=
3;a.prototype.DRAGGING_DESTINATION_STATE_ENTERED=0;a.prototype.DRAGGING_DESTINATION_STATE_MOVED=1;a.prototype.DRAGGING_DESTINATION_STATE_EXITED=2;a.prototype.DRAGGING_DESTINATION_STATE_RELEASED=3;a.prototype.makeElementDraggable=function(a,b,e,d){this.C.Eh(this.eb,a,b,e,d)};a.prototype.removeDraggableElement=function(a){this.C.Qh(a)};a.prototype.makeElementDropContainer=function(a,b){this.C.Fh(this.eb,a,b)};a.prototype.removeDropContainer=function(a){this.C.Rh(a)};return a}();var ah=function(){function a(a){this.Db=a}a.prototype.getContentClass=function(a){return a.getAttribute("en-content-class")};a.prototype.setContentClass=function(a,b){a.setAttribute("en-content-class",b)};a.prototype.removeContentClass=function(a){a.removeAttribute("en-content-class")};a.prototype.getAppDataValue=function(a,b){return od(a,b)};a.prototype.setAppDataValue=function(a,b,e){qd(a,b,e)};a.prototype.removeAppDataValue=function(a,b){pd(a,b)};return a}();var bh=function(){function a(a){this.A=a;this.D=new Df}a.prototype.G=function(){this.D.G({name:this.A+"-gesture-recognizer"})};a.prototype.S=function(){this.D.S()};a.prototype.B=function(a,b,e){return this.D.listener(a,"tap",b,e)};a.prototype.tapGestureRecognizer=function(a,b,e){return this.B(a,b,e?{touchCount:e}:e)};a.prototype.pinchGestureRecognizer=function(a,b){return this.D.listener(a,"pinch",b,null)};a.prototype.rotationGestureRecognizer=function(a,b){return this.D.listener(a,"rotate",b,null)};
a.prototype.swipeGestureRecognizer=function(a,b){return this.D.listener(a,"swipe",b,null)};a.prototype.panGestureRecognizer=function(a,b){return this.D.listener(a,"pan",b,null)};a.prototype.longPressGestureRecognizer=function(a,b,e){return this.D.listener(a,"press",b,e?{time:e}:null)};a.prototype.removeGestureRecognizerReference=function(a){this.D.remove(a)};return a}();var ch=function(){function a(a){this.Db=a;this.Zc=null}a.prototype.G=function(){Gc(this.Db,document.createElement("div")).classList.add("en-module-content")};a.prototype.mf=function(a,b){this.Zc&&this.Db.removeChild(this.Zc);H(this.Db,"en-module-unknown");G(this.Db,a);var e=M("div",{});Bc(e,b);this.Zc=M("div",{"class":"en-module-overlay"});this.Zc.appendChild(e);this.Db.appendChild(this.Zc)};a.prototype.yf=function(){this.mf("en-module-broken","Broken module")};a.prototype.ci=function(){var a=this.Db.getAttribute("data-en-module-title"),
a=a&&a.length?a:"Unknown module";this.mf("en-module-unknown",a)};a.prototype.wg=function(a){A(t(a),"Module title is required");this.mf("en-module-loading",'Loading "'+a+'"')};a.Dg=function(a){var b=a.querySelector(".en-module-content");A(b,"Element is not wrapped");Ua(a.childNodes).forEach(function(e){e!=b&&a.removeChild(e)});tc(b)};a.Sf=function(a){a.style.cssText="border: 2px solid #CCC; background-color: #EEE; padding: 10px; color: #888;"};a.prototype.S=function(){var c=this.Db;H(c,"en-module-loading");
a.Dg(c);this.Zc=this.Db=null;return c};return a}();var dh=function(){function a(a,d,f){A(J(d),"Container required",d);this.A=d.cloneNode(!0);this.B=!1;this.module=null;this.element=d;this.elementID=f;this.scriptHandler=a;this.node=new b(this);this.gestureRecognizer=new c(f)}var c=bh,b=ah;a.prototype.G=function(){var a=this.scriptHandler.script;A(a,"ScriptHandler has no script?");A(!this.module,"Already setup?");this.gestureRecognizer.G();var b=null;try{b=a.createModule(this)}catch(c){v.error("Could not create new module.",this.scriptHandler.moduleName,
c),Bb(c)}if(!b)return!1;["setupFromStore","setupWithInsertionData","saveENML"].forEach(function(a){A(ea(b[a]),"Expected a module method",a,b.moduleName,b)});this.module=b;return!0};a.prototype.Zh=function(){var a=!1;if(!this.G())return a;try{a=this.module.setupFromStore()}catch(b){v.error("Could not setup module",this.scriptHandler.moduleName,b),Bb(b)}return a};a.prototype.bi=function(a){var b=!1;if(!this.G())return b;try{b=this.module.setupWithInsertionData(a)}catch(c){v.error("Could not setup module",
this.scriptHandler.moduleName,c),Bb(c)}return b};a.prototype.S=function(){this.gestureRecognizer.S();var a=this.module;if(a){if(a.cleanup)try{a.cleanup()}catch(b){v.error("Could not cleanup module.",this.scriptHandler.moduleName,b),Bb(b)}var c=this.scriptHandler.script;if(c.removedModule)try{c.removedModule(a)}catch(b){v.error("Could not remove module.",b),Bb(b)}this.module=null}};a.prototype.Th=function(){function a(){for(var e=b.A.cloneNode(!0);e.firstChild;)c.appendChild(e.firstChild)}var b=this,
c=document.createElement("div");if(this.B){var g=document.createDocumentFragment();try{b.module.saveENML(g,!0),c.appendChild(g)}catch(l){v.error("Could not serialize module. Using original content.",l),a(),Bb(l)}}else a();g=this.node;g.setAppDataValue(c,"en-module-name",this.scriptHandler.moduleName);g.setAppDataValue(c,"en-module-title",this.scriptHandler.Ye());g.setContentClass(c,"evernote.module");return c};a.prototype.removeModule=function(){this.element.parentElement.removeChild(this.element);
this.me()};a.prototype.me=function(){this.scriptHandler.Sh(this);this.S()};a.prototype.markAsDirty=function(){this.B=!0};a.prototype.purgeContent=function(){for(var a=this.element;a.firstChild;)a.removeChild(a.firstChild)};a.prototype.genericPreview=function(){var a=document.createElement("div");this.node.setContentClass(a,"en-module-generic-preview");a.appendChild(document.createTextNode('Unknown module : "'+this.scriptHandler.Ye()+'"'));a.style.cssText="text-align: center; padding: 20px";return a};
return a}();var eh=function(){function a(a,b){this.eb=a;this.I=b;this.B={};b.Nh(this)}a.prototype.S=function(){this.I.gi(this)};a.prototype.sendMessage=function(a,b,e){this.I.sendMessage(this,a,b,e)};a.prototype.registerMessageHandler=function(a,b){this.B[a]=b};a.prototype.yh=function(a,b,e){var d=this.B[a];if(!d)return v.log("Unexpected message received",a),!1;1==d.length?(d(b),e({})):d(b,e);return!0};return a}();var fh=function(){function a(){this.B={};this.A={};this.M={}}var c=0;a.prototype.Nh=function(a){var c=a.eb.toLowerCase();A(!this.B[c],c,"App channel is already registered");this.B[c]=a};a.prototype.gi=function(a){a=a.eb.toLowerCase();A(!!this.B[a],a,"App channel is not registered");delete this.B[a]};a.prototype.sendMessage=function(a,e,d,f){a=a.eb.toLowerCase();v.log("Module",a,"sendMessage",e,d);e={type:"message",moduleName:a,messageName:e,data:d?d:{}};f&&(d=""+c++,this.A[a+":"+d]=f?f:null,e.messageID=
d);df("modulePublished",e)};a.prototype.wh=function(a){v.log("Module receives",a);A(mb(a),"Bad message payload",a);switch(a.type){case "message":this.C(a);break;case "reply":this.H(a)}};a.prototype.C=function(a){var c=this,d=a.moduleName,f=a.messageName,g=a.messageID,l=a.data;A(d&&f&&l,"Bad native message payload",a);if(a=this.B[d.toLowerCase()]){var p=function(){};if(g){var h=d+":"+g;this.M[h]=d;p=function(a){a={type:"reply",moduleName:d,messageName:f,messageID:g,data:a?a:{}};delete c.M[h];df("modulePublished",
a)}}a.yh(f,l,p)||p({})}else v.log("Module call failed - not loaded",d)};a.prototype.H=function(a){var c=a.moduleName,d=a.messageName,f=a.messageID,g=a.data;A(c&&d&&f&&g,"Bad native response payload",a);c=c+":"+f;(d=this.A[c])?(d(a.data),delete this.A[c]):v.log("Unexpected response received",a)};return a}();var gh=function(){function a(a,g,l,p,h){A(t(h.baseURL),"baseURL is required");A(ca(h.urls),"Array of urls is required");A(t(h.title),"Module title is required");this.H=a;this.ma=h;this.B={};this.script=this.M=this.A=null;this.moduleName=g;this.bundle=new b(g,h);this.console=new e(g);this.dragAndDrop=new d(g,p);this.nativeChannel=new c(g,l)}a.Jf=0;a.Be=1;a.fe=2;a.Ae=3;var c=eh,b=Wg,e=Xg,d=$g;a.prototype.Dh=function(){function a(c){e.forEach(function(a){a=M("script",{type:"text/javascript",src:d+"/"+
a});a["data-en-module-name"]=b.moduleName;a.scriptHandler=b;c.appendChild(a)})}var b=this,c=this.ma.mode,d=this.ma.baseURL,e=this.ma.urls;A(ca(e),"No script URLs provided");A(!this.A,"Scripts are already loaded?");this.A=e;switch(c){default:case "iframe":var c=M("script",{type:"text/javascript"},["var scriptHandler = frameElement.scriptHandler;"]),m=M("iframe",{style:"position:absolute;width:1px;height:1px;top:-999px;left:-999px;display:none;"});m["data-en-module-name"]=b.moduleName;m.scriptHandler=
b;document.body.appendChild(m);m.contentDocument.head.appendChild(c);a(m.contentDocument.head);break;case "script":a(document.head)}};a.prototype.registerModuleScript=function(b){A(this.state()==a.Be,"Modules can only be registered once!",this.moduleName,b);A(this.moduleName===b.moduleName,"Module names do not match");A(!this.script,"Module is already setup?");["createModule","setup"].forEach(function(a){A(ea(b[a]),'Expected a module method "'+a+'"',b.moduleName,b)});this.script=b;window.TEST&&(A(!!window.testHook_registerModuleScript,
"Test hook provided by TestModuleEnvironment is missing"),window.testHook_registerModuleScript(this,b));try{b.setup(this)}catch(c){v.error("Could not setup script",this.moduleName,c),this.M=c,Bb(c)}this.H.fh(this.moduleName)};a.prototype.registerModuleLocalization=function(a,b,c){A(this.moduleName===a,"Module names do not match");window.TEST&&(A(!!window.testHook_registerModuleLocalization,"Test hook provided by TestModuleEnvironment is missing"),window.testHook_registerModuleLocalization(a,b,c));
this.bundle.Ph(b,c)};a.prototype.state=function(){return this.M?a.Ae:this.script?a.fe:this.A?a.Be:a.Jf};a.prototype.isReady=function(){return this.state()==a.fe};a.prototype.S=function(){try{this.script.cleanup()}catch(a){v.error("Could not cleanup script",this.moduleName,a),Bb(a)}this.bundle.S();this.A=this.script=null};a.prototype.Bh=function(a){return!!this.B[a]};a.prototype.Uh=function(a){var b=this.B[a];return b?b.Th():(v.error("Could not serialize module. (Module could not be loaded?)",this.moduleName,
a),null)};a.prototype.ai=function(a,b){var c=!1,d=new dh(this,a,b);d&&(this.B[b]=d,(c=d.Zh())||d.me());return c};a.prototype.$h=function(a,b,c){var d=!1;if(a=new dh(this,a,b))this.B[b]=a,(d=a.bi(c))||a.me();return d};a.prototype.C=function(){var a=this;return Ua(document.getElementsByClassName("en-module")).filter(function(b){return b.getAttribute("data-en-module-name")==a.moduleName})};a.prototype.Tf=function(){var a=this.ma.localizedTitle;return a&&(A(t(a),"Title must be a string"),a.length)?a:
this.Ye()};a.prototype.Ye=function(){return this.ma.title};a.prototype.allModuleIDs=function(){return this.C().map(function(a){return a.getAttribute("id")})};a.prototype.moduleHandlerWithID=function(a){a=this.B[a];return a?a:(v.warn("Requested module handler doesn't exist. Probably it is not loaded yet."),null)};a.prototype.Sh=function(a){delete this.B[a.elementID]};a.prototype.ei=function(a){var b=this.script.supportDropIntoEditorForType;return b?b(a):!1};return a}();function hh(){var a=this;a.name="module";a.G=function(c){function b(b,c,d){var e=Ab("en-module"),g=M("div",{id:e,"class":"en-module",contentEditable:"false"});g.setAttribute("data-en-module-name",b);g.classList.add("en-module-newly-inserted");c&&(a.L[e]=c);d.parentNode.insertBefore(g,d);l.Ja(g);f.de(g)}function e(b){A(b.ownerDocument==window.document,"Trying to setup loader for module of element that is not in DOM");var c=b.id;A(!a.H[c],"Loader is already setup?");b=new ch(b);b.G();return a.H[c]=
b}function d(b,c){var d=c.id;A(a.H[d].Db==c,"Bad loader configuration");if(b.state()==gh.Ae)a.H[d].yf();else{A(b.state()==gh.fe,"Unexpected script state");var f=a.H[d];A(f,"This module did not go through the loader phase?");f=f.S();delete a.H[d];if(f.classList.contains("en-module-newly-inserted")){var g=a.L[d];delete a.L[d];if(b.$h(f,d,g)){H(f,"en-module-newly-inserted");return}}else if(b.ai(f,d))return;e(f).yf()}}var f=a.K("context"),g=a.K("query"),l=a.K("block"),p=f.root;c=B(c,{nf:null});a.C=new Zg(a.D,
function(c,d){var e=a.A[c];if(!e||!e.ei(d.draggingType))return!1;switch(d.draggingState){case a.C.Kg:var e=d.draggingElement.style,f=e.display;e.display="none";var h=document.elementFromPoint(d.draggingLocationX,d.draggingLocationY);e.display=f;if(P(h,".en-module"))return!1;e=g.na(h);f=document.getElementById("en-note");f===e&&(e=Kc(),0>=d.draggingLocationY?f.insertBefore(e,f.children[0]):f.appendChild(e));b(c,{type:d.draggingType,data:d.draggingPasteData},e)}return!0});a.I=new fh;a.A={};a.H={};a.L=
{};if(mb(c.nf)){var h=c.nf;Object.keys(h).forEach(function(b){var c=h[b];A(!a.A[b],"Script handler is already registered",b);a.A[b]=new gh(a,b,a.I,a.C,c)})}a.D.A("moduleScript",function(b){var c=b.moduleName;A(t(c)&&0<c.length,'Expected "moduleName" for module!',b);c=a.A[c];A(c,"Unexpected script registration",b);c.registerModuleScript(b)});a.D.A("moduleLocalization",function(b){var c=b.moduleName,d=b.tableName,e=b.stringMap;A(t(c),"moduleName must be a string.");var f=a.A[c];A(f,"Localization for unknown module",
b);f.registerModuleLocalization(c,d,e)});a.D.B({name:"module",action:function(a){a=Ob(a);if(null==a)return!1;for(var c=0;c<a.length;c++){var d=a[c];if("insert"===d.action){var e=d.moduleName;t(e)?(f.X("insertparagraph").action(),d=g.na(f.B().startContainer),b(e,null,d)):v.error("No name for insert provided",d)}}return!0},value:function(a){var b=[];a&&(b=T("div.en-module",p).filter(function(b){return b.getAttribute("data-en-module-name")===a}).map(function(a){return a.id}));return{result:b}},enabled:Na});
a.D.B({name:"module-channel",value:function(b){a.I.wh(b);return null},enabled:Na});a.fh=function(b){var c=a.A[b];A(c,"Unknown module",b);T("div.en-module",p).forEach(function(a){a.getAttribute("data-en-module-name")==b&&d(c,a)})};a.K("observer").df("div.en-module",function(b){var c=b.getAttribute("data-en-module-name");if(b.getAttribute("data-en-module-name")){var f=e(b);if(c=a.A[c])switch(c.state()){case gh.Ae:f.yf();break;case gh.fe:d(c,b);break;case gh.Be:f.wg(c.Tf());break;case gh.Jf:f.wg(c.Tf()),
c.Dh()}else f.ci()}else v.warn("Found module without a name.")},function(b){var c=b.getAttribute("data-en-module-name"),d=a.A[c];d?(b=d.ni(b.id))?b.me():v.error("Could not find module handler.",b):v.error("Could not find script handler.",c)});a.Wa=function(a){T('div[en-content-class="evernote.module"]',a).forEach(function(a){var b="en-module-"+zb().toString(),c=od(a,"en-module-name"),d=od(a,"en-module-title");c?(a.removeAttribute("en-content-class"),a.removeAttribute("en-app-data"),a.removeAttribute("style"),
a.classList.add("en-module"),a.setAttribute("data-en-module-name",c),d?a.setAttribute("data-en-module-title",d):v.warn("Could not read module's title.",c),a.setAttribute("id",b),a.setAttribute("contentEditable","false")):(v.error("Stripped damaged module without a type"),a.parentElement.removeChild(a))})};a.Za=function(b){T("div.en-module",b).forEach(function(b){var c=b.id,d=b.getAttribute("data-en-module-name"),e=b.getAttribute("data-en-module-title");if(b.classList.contains("en-module-newly-inserted"))b.parentNode.removeChild(b);
else{A(0!=d.length,"Malformed module found");var f=a.A[d];f&&f.Bh(c)?(c=f.Uh(c))?(ch.Sf(c),b.parentNode.replaceChild(c,b)):(v.error("Could not serialize module. Discarding module content!",d),b.parentNode.removeChild(b)):(A(a.H[c],"Element must be either handled by application or in unloaded state."),ch.Dg(b),b.removeAttribute("class"),b.removeAttribute("data-en-module-name"),b.removeAttribute("id"),b.removeAttribute("contenteditable"),b.setAttribute("en-content-class","evernote.module"),qd(b,"en-module-name",
d),e&&qd(b,"en-module-title",e),ch.Sf(b))}})}}};function ih(){function a(){b.D.timeout(function(){ge(U())})}function c(){b.D.A("selectionChange",b.R.bind(b));if(b.J.smartHeight){var c=document.body,d=function(){var a=window.innerHeight-0-32;c.style.minHeight="";a>c.clientHeight&&(c.style.minHeight=a+"px")};d();b.D.A("windowResize",d,1E3)}b.J.smartScroll&&b.D.A("execCommand",function(b){-1!==Ba.indexOf(b.name)&&a()});b.J.smartList&&G(b.root,"en-smart-list");b.J.smartPlaceholder&&(d=function(){mc(b.root,"en-note-is-empty",oe(b.root))},d(),b.D.pa(b.root,
"setDirty",d));b.J.smartDelete&&b.D.pa(b.root,"beforeInput",function(a){var c=a.Ga;c&&!1===c.collapsed&&(b.A.flush(),Z.execCommand("delete"),a.Ga=U(a.element),a.fc.bb=a.Ga.startContainer,a.fc.offset=a.Ga.startOffset)},0);b.D.pa(b.root,"anyInput",function(){Ve(b.root,"setDirty",!0)})}var b=this;A(this instanceof ih,"Use `new` to instantiate this class");b.name="rte";b.G=function(a){b.J=B(a,{active:!0,highlightMagic:!1,skipMarkupTransform:!1,placeholder:"",trackStateChanges:null,trackValueChanges:null,
trackEnabledChanges:null,tableResizing:!1,imageResizing:!1,tableSelection:!1,typebehind:{emoticon:!1,url:!1,email:!1,list:!1,inline:!1,todo:!1,horizontalrule:!1,code:!1,table:!1},mutationObserver:!1,undoOnIdle:6,cryptLegacy:!0,resources:null,smartScroll:!1,smartHeight:!1,smartDelete:!1,smartPlaceholder:!0,smartList:!1,imageConfig:{},selector:null,html:null,enml:null,modules:null,clearly:null,root:null});b.J.imageConfig=B(b.J.imageConfig,{annotate:!1,imageClickEvents:!1,images:null,preview:!1,resize:!1,
rotate:!1});var d=b.J.imageConfig;d.bubbleImageClicks=d.resize;t(b.J.selector)?b.root=document.querySelector(b.J.selector):b.root=b.J.root||document.getElementById("en-note")||document.body;A(b.root&&J(b.root),"Root not valid!");A(J(b.root),"RTE root node required to be an HTML element! <$>");var f=b.ea();b.D.bd({Ib:["rte","content"]});f.W(function(a){a.D.bd({Ib:["rte","content"]})});b.Z=null;b.oa=!!(b.J.trackStateChanges||b.J.trackValueChanges||b.J.trackEnabledChanges);var g=new Vf;f.G(g,{root:b.root,
J:b.J});g.vg(!b.J.active);f.G(new Xf);var l=new hg;f.G(l);f.G(new Wf);f.G(new ig);b.A=!0===b.J.mutationObserver?new Hf:new Gf;f.G(b.A,{element:b.root,Cb:function(){g.Ha();return JSON.stringify(l.ae())},ad:function(a){g.Ha();l.Ob(JSON.parse(a))}});b.C=new jg;f.G(b.C);var p=b.J.tableResizing;b.J.imageResizing&&(d.resize=!0);var h=b.J.tableSelection;f.G(new Qe);b.N=new Se;f.load(b.N);f.G(new If,{element:b.root});f.G(new Eg);f.G(new qg);f.G(new lg);f.G(new mg);f.G(new Pg);f.G(new Sg);f.G(new pg);f.G(new Hg);
f.G(new Gg);f.G(new Mg);f.G(new Rg);f.G(new Kg);f.G(new Lg);f.G(new Vg);null!=b.J.modules&&f.G(new hh,{nf:a.modules});b.J.emoticons&&(Ta("Use typebehind: { emoticon: true } instead of adding","emoticons: true directly to the rte options."),b.J.typebehind.emoticon=!0);f.G(new Ag,b.J.typebehind);mb(b.J.resources)&&f.G(new Ig,{resources:b.J.resources});a=new Tg;f.G(a);var m=new Fg,r=new Bg;f.G(m);f.G(r);var n=b.J.html,q=b.J.enml;A(!(null!=n&&null!=q),"You can only provide one content type: html or enml");
t(n)?m.A(n):t(q)?r.Bd(q):(b.J.skipMarkupTransform||a.hc(b.root,2),Ve(b.root,"setDirty",!1));d&&d.imageClickEvents&&f.G(new Cg,d);d&&f.G(new Dg,d);d&&d.resize&&(b.I=new Ue,g.Kb()||f.G(b.I,d));d&&(d.annotate||d.preview||d.rotate)&&(b.H=new rf,g.Kb()||f.G(b.H,d));h&&f.G(new Qg);p&&(b.L=new kg,g.Kb()||f.G(b.L));b.N&&f.G(b.N);null!=b.J.clearly&&f.G(new Ug,{root:b.root});g.Kb()||ed(b.root,!0);g.Od();b.Od();b.D.pa(b.root,"setDirty",function(a){b.fa(a)});0<b.J.undoOnIdle&&b.D.H(function(){m.Ic()&&b.A.flush()},
b.J.undoOnIdle);b.Ba=function(){var a=g.hasFocus();a!==b.V&&(Lb("focusChanged",{focus:a}),hf("content",{focus:a}));if(b.oa){var c=b.ra(),d=JSON.stringify(c);d!==b.ba&&(b.ba=d,Lb("styleChanged",c),c=c||{},c.module="content",df("styleChanged",c))}b.V=a};c();b.J.placeholder&&b.root.setAttribute("data-en-placeholder",b.J.placeholder);b.A.clear();Ve(b.root,"contentReady")};b.S=function(){b.ba=null;Od();b.Mb=null;b.V=null;ed(b.root,!1);b.N=null;b.L=null;b.J=null;b.root=null;b.C=null};b.R=function(){try{var a=
{Mb:b.Mb},c=U(b.root);null!=c&&(b.Mb=Ud(c));a.Ga=c;Ve(b.root,"selectionChanged",a);b.Z=b.D.timeout(b.Ba,50,b.Z)}catch(f){v.error("Exception in en.rte.didChangeSelection <$>:",f.toString())}};b.fa=function(c){c=c||{};b.J.smartScroll&&!c.qd&&a();b.D.C();b.R()};b.ra=function(){function a(b,e,f){if(b&&b.length){for(var h={},m=0;m<b.length;m++){var r=b[m];h[r]=f(r)}h&&(c[e]=h)}}var c={},f=tf;a(b.J.trackStateChanges,"state",f.state);a(b.J.trackValueChanges,"value",f.value);a(b.J.trackEnabledChanges,"enabled",
f.enabled);return c};b.selection=function(a){var c=U(b.root);a&&(b.Mb&&Ld(Vd(b.Mb)),b.root.focus(),c=U(b.root));return c};b.ka=function(a,c){var f=!0;try{!0===a.focus&&b.selection(!0);var g=function(){f=!1!==c();!0!==a.tc&&Ve(b.root,"setDirty")};!0===a.U?b.A.cb(g,a.J.title):("before"===a.U&&b.A.flush(),g(),"after"===a.U&&b.A.flush(a.J.title))}catch(l){Bb(l)}return f||!1};b.hasFocus=function(){return b.ea().B("context").hasFocus()};b.Od=function(){var a=b.C.sh();Object.keys(a).forEach(function(c){var f=
a[c];f.name=c;var g={name:c,U:f.U,tc:f.tc,Ya:f.Ya,action:function(a){a=b.C.execCommand.bind(b.C,c,!1,a);return b.ka(g,a)},state:function(){return b.C.queryCommandState(c)},value:function(a){return b.C.queryCommandValue(c,a)},enabled:function(a){return!!b.C.queryCommandEnabled(c,a)}};b.D.B(g)});b.D.B({name:"diff",value:function(a){var c=Nb(a);a=xc(c.base);var e=xc(c.theirs),l=xc(c.mine),p=b.yb.Jc("normalize");p&&(p.Xc(a),p.Xc(e),p.Xc(l));for(var h,c=c.showChanges,m=$e(e,a),r=$e(l,a),l=[],e=[],m=m.slice(0),
r=r.slice(0),n=0,q=m.length;n<q;n++){for(var y=m[n],u=0,z=r.length;u<z;u++){h=r[u];var F=!1;if(y.baseIndex===h.baseIndex){var F=y,C=h;if(F.baseIndex===C.baseIndex&&F.sourceIndex===C.sourceIndex&&F.action===C.action&&F.name===C.name&&F._deleted===C._deleted&&F._inserted===C._inserted&&(null==F.element&&null==C.element||R(F.element)&&R(C.element)&&F.element.isEqualNode(C.element))){e.push(h);break}else F=!0}else F="removeChildElement"===y.action,C="removeChildElement"===h.action,F=Ye(y,h)&&C&&!F||Ye(h,
y)&&!C&&F;if(F){y._conflict=!0;y._owner="theirs";y._conflictedWith=h;h._conflict=!0;h._owner="mine";h._conflictedWith=y;l.push(y);l.push(h);break}h=null}h?r.splice(u,1):e.push(y)}0<r.length&&(e=e.concat(r));0<l.length&&(e=e.concat(l));e.sort(af);h=bf(e,a,c);p&&p.Xc(a);return{conflicts:h.conflicts.length,result:h,html:yb(a)}},enabled:Na});b.D.B({name:"focus",action:function(a){a=B(Nb(a),{pos:"top",force:!1,scroll:!1,animate:!1,value:null,clear:!1});if(!U(b.root)||a.force)if(a.clear)Od();else if(b.root.focus(),
b.Mb&&!a.force)Ld(Vd(b.Mb));else if("bottom"===a.pos){var c=document.createRange();c.selectNodeContents(b.root);c.collapse(!1);Ld(c)}else Ld(Kd(b.root,0));a.scroll&&0!=O(b.root)&&ge(U());return!0},state:function(){return b.ea().B("context").hasFocus()},value:function(a){var c=b.ea().B("context").hasFocus();if(c&&a&&"position"===a.type)return a=U(),null==a?a=null:(a=ee(a),a=null==a?null:Sc(a)),a;if(c)return b.name},cc:!0,enabled:Na});b.D.B({name:"active",action:function(a){a=Mb(a);var c=b.ea(),e=c.B("context"),
l=!e.Kb();l!==a&&window.getSelection().containsNode(b.root,!0)&&Od();e.vg(!a);l&&!a&&(ed(b.root,!1),b.H&&b.H.sa&&c.S(b.H),b.I&&b.I.sa&&c.S(b.I),b.L&&c.S(b.L));!l&&a&&(Od(),ed(b.root,!0),b.H&&!b.H.sa&&c.G(b.H,b.J.imageConfig),b.I&&!b.I.sa&&c.G(b.I,b.J.imageConfig),b.L&&c.G(b.L));return!0},state:function(){return!b.ea().B("context").Kb()},enabled:Na})}};var jh,kh;
(function(){function a(a){nb(f.querySelectorAll("embed"),function(b){var c=M("div");G(c,"en-print");switch(b.getAttribute("type")){case "evernote/x-pdf":G(c,"pdf");c.textContent=a.pdf_file;break;case "evernote/x-attachment":var d=b.getAttribute("id");null!=d&&d.match(/.*en-media:audio.*/)?(G(c,"audio"),c.textContent=a.audio_file):(G(c,"generic-attachment"),c.textContent=a.generic_file);break;default:v.warn("Found <embed> with unknown type! "+b),G(c,"generic-attachment"),c.textContent=a.generic_file}sc(b,c)});
nb(f.querySelectorAll("object"),function(a){var b=M("div");G(b,"en-print");E(a,"en-todo")&&G(b,"checkbox");E(a,"en-todo-checked")&&G(b,"checked");sc(a,b)})}function c(){var a=b();null!=a&&null!=f||v.error("Couldnt find note body or print container!");f.innerHTML=f.innerHTML+a.innerHTML;nb(f.childNodes,function(a){G(a,"en-print")})}function b(){var a=document.querySelector("#en-note");return null==a?(v.warn("Could not find note!"),null):a}function e(){var a=M("br");G(a,"en-print");f.appendChild(a)}
function d(a,b){for(var c=M("table"),d,e,r=0;4>r;r++){d=M("tr");c.appendChild(d);for(var n=0;2>n;n++)e=M("td"),d.appendChild(e)}c.setAttribute("id","header-table");G(c,"en-print");f.appendChild(c);var q=c.querySelectorAll("td");nb([[0,b.author,"author"],[1,b.notebook,"notebook"],[2,b.created,"created"],[3,b.tags,"tags"],[4,b.updated,"updated"],[5,b.url,"url"],[6,b.deleted,"deleted"],[7,b.location,"location"]],function(b){if(null!=a[b[2]]){q[b[0]].innerHTML="";var c=M("span");G(c,"header-table-label");
c.textContent=b[1];var d=M("span");G(d,"header-table-text");d.textContent=" "+a[b[2]];q[b[0]].appendChild(c);q[b[0]].appendChild(d)}})}var f=null;jh=function(b,l){null!=f&&(v.warn("Multiple unnecessary calls to setup print."),kh());for(var p=0;p<document.body.childNodes.length;p++)J(document.body.childNodes[p])&&rd(document.body.childNodes[p],!1);f=M("div");f.setAttribute("id","print-container");G(f,"en-print");p=document.querySelector("#container");p.parentNode.insertBefore(f,p);var h=B(l,{title:null,
notebook:null,created:null,updated:null,deleted:null,author:null,location:null,tags:null,url:null}),p=B(b,{notebook:"Notebook:",created:"Created:",updated:"Updated:",deleted:"Deleted:",author:"Author:",location:"Location:",tags:"Tags:",url:"Source:",pdf_file:"PDF File",audio_file:"Audio File",generic_file:"Generic File"});null!=l&&""!==l&&(d(h,p),h=M("hr"),f.appendChild(h),e());h=document.querySelector("#en-title");if(null!=h&&null!=h.textContent){var h=h.textContent,m=M("div");m.setAttribute("id",
"header-title");G(m,"en-print");m.textContent=h;f.appendChild(m);e()}c();a(p);df("printReady",{module:"print"})};kh=function(){null==f?v.warn("Print module teardown called while it was off!"):(I(f),f=null)}})();function lh(a){A(a.F,"argument should implement en.ui.toolkit.basic.Basic");mh(a.F())}function mh(a){null!=a&&G(a,"en-ui-toolkit-display-none")}function nh(a){A(a.F,"argument should implement en.ui.toolkit.basic.Basic");oh(a.F())}function oh(a){null!=a&&H(a,"en-ui-toolkit-display-none")}function ph(a){A(a.F,"argument should implement en.ui.toolkit.basic.Basic");qh(a.F())}function qh(a){G(a,"en-ui-toolkit-visibility-hidden")}function rh(a){H(a,"en-ui-toolkit-visibility-hidden")};function sh(a){var c=this;c.name="boxwithbeahvior-"+zb();A(c instanceof sh,"use `new` to instantiate");c.C=a||function(){};c.H=M("div");c.G=function(a){A(null==a||0===Object.keys(a).length,"boxwithbeahvior does not take any setup opt")};c.S=function(){c.C=null};c.Ea=function(a){A(null!=a.F,"argument missing getDOMNode method");c.N(a.F())};c.N=function(a){var e=-2;c.C(a);var d=nc(c.A());0>e?(e=Math.abs(e),e=d.length-e,Hc(a,d[e])):c.A().insertBefore(a,d[e])};c.T=function(a){A(null!=a.F,"argument missing getDOMNode method");
c.Fa(a.F())};c.Fa=function(a){c.C(a);c.A().appendChild(a)};c.ja=function(a){A(null!=a.F,"argument missing getDOMNode method");c.jg(a.F())};c.jg=function(a){c.C(a);c.A().insertBefore(a,c.A().firstChild)};c.F=function(){return c.H};c.A=function(){return c.F()};c.ca=function(a){G(c.F(),a);G(c.A(),a)};c.R=function(a,e){A(null!=a.F&&null!=e.F,"arguments missing getDOMNode method");A(Oc(e.F(),c.A()),"refObj's node should be a member of the box");c.L(a.F(),e.F())};c.ig=function(a,e){A(null!=a.F&&null!=e.F,
"arguments missing getDOMNode method");A(Oc(e.F(),c.A()),"refObj's node should be a member of the box");c.I(a.F(),e.F())};c.L=function(a,e){c.C(a);c.A().insertBefore(a,e)};c.I=function(a,e){c.C(a);Hc(a,e)}};function th(){return new sh(function(){})}th.prototype.F=function(){};function uh(){function a(a,b){b=c(b);jd(a);S(a,"left",b.left);S(a,"top",b.top);S(a,"right",b.right);S(a,"bottom",b.bottom);kd(a)}function c(a){a=JSON.parse(JSON.stringify(a));a=B(a,{top:null,left:null,right:null,bottom:null});Object.keys(a).forEach(function(b){da(a[b])&&(a[b]+="px")});return a}A(this instanceof uh,"please use new to instantiate");var b=this;b.name="overflowbox-"+zb();b.C=new th;b.A=null;b.I=new th;b.N=new th;b.L=new th;b.qg=function(){var a=0;9<nc(b.N.F()).filter(function(b){return E(b,
"divider")?(a+=1,!1):!0}).length&&nc(b.N.F()).slice(9+a).forEach(b.L.jg);9>=nc(b.N.F()).filter(function(a){return E(a,"divider")?!1:!0}).concat(nc(b.L.F()).filter(function(a){return E(a,"divider")?!1:!0})).length&&nc(b.L.F()).forEach(b.N.Fa);var c=N(b.Uf().F());null!=c&&(b.Vf().F().style.width=c.width+"px");0>=nc(b.L.F()).length?(lh(b.L),b.I.F().style.height="34px"):(nh(b.L),b.I.F().style.height="68px")};b.ja=function(a){A(a.F);b.N.ja(a);b.qg()};b.R=null;b.G=function(a){a=B(a,{boxPosition:{left:null,
top:null,right:null,bottom:null},arrowPosition:{left:null,top:null,right:null,bottom:null},hasArrow:!1,cssClassDeep:null});var c=b.ea();c.G(b.C);c.G(b.I);a.hasArrow&&b.V();b.ue(a.boxPosition);b.te(a.arrowPosition);G(b.C.F(),"en-toolbar-overflowbox");G(b.A,"en-toolbar-overflowbox-arrow");G(b.I.F(),"en-toolbar-widgetgroup");G(b.I.F(),"en-toolbar-overflowbox-widgetgroup");G(b.N.F(),"en-toolbar-overflowbox-widgetgroup-row1");G(b.L.F(),"en-toolbar-overflowbox-widgetgroup-row2");null!=a.cssClassDeep&&b.ca(a.cssClassDeep);
b.H()};b.F=function(){return b.C.F()};b.ba=function(){return b.I};b.Z=function(){return b.A};b.Uf=function(){return b.N};b.Vf=function(){return b.L};b.H=function(){b.I.T(b.N);b.I.T(b.L);b.C.T(b.I)};b.V=function(){null!=b.A&&Ha(b.name,"already has arrow");b.A=M("div");b.C.Fa(b.A)};b.fa=function(){I(b.A);b.A=null};b.show=function(a,c){null!=a&&b.ue(a);null!=c&&b.te(c);var f=b.C;A(f.F,"argument should implement en.ui.toolkit.basic.Basic");rh(f.F());b.R=!0};b.Jb=function(a,c){ph(b.C);b.R=!1;null!=a&&
b.ue(a);null!=c&&b.te(c)};b.xa=function(){return b.R};b.ue=function(c){a(b.C.F(),c)};b.te=function(c){null!=b.A&&a(b.A,c)};b.S=function(){b.A=null};b.ca=function(a){b.C.ca(a);G(b.A,a);b.I.ca(a)}};function vh(){var a=this;A(this instanceof vh,"use `new` to instantiate");a.name="twogroupbar-"+zb();a.A=new th;a.C=new th;a.I=new th;a.G=function(c){c=B(c,{cssClassDeep:null});var b=a.ea();b.G(a.A);b.G(a.C);b.G(a.I);G(a.A.F(),"en-toolbar-twogroupbar");G(a.C.F(),"en-toolbar-twogroupbar-leftbox");G(a.I.F(),"en-toolbar-twogroupbar-rightbox");a.H();null!=c.cssClassDeep&&a.ca(c.cssClassDeep)};a.S=function(){};a.H=function(){a.A.T(a.C);a.A.T(a.I)};a.F=function(){return a.A.F()};a.md=function(){return a.C};
a.af=function(){return a.I};a.ca=function(c){a.A.ca(c);a.C.ca(c);a.I.ca(c)}};function wh(a){var c=this;A(this instanceof wh,"use `new` to instantiate");A(null!=a,"coreInstance is required");c.name="widget-"+zb();c.A=new th;c.C=a;c.I=!1;c.G=function(a){a=B(a,{core:{},cssClassDeep:null,disabled:!1});a.core&&null==a.core.cssClassDeep&&(a.core.cssClassDeep=a.cssClassDeep);var e=c.ea();e.G(c.A);e.G(c.C,a.core);G(c.A.F(),"en-ui-toolkit-widget");c.H();null!=a.cssClassDeep&&c.ca(a.cssClassDeep);c.ve(a.disabled)};c.F=function(){return c.A.F()};c.H=function(){c.A.T(c.C)};c.P=function(){return c.C};
c.ca=function(a){c.A.ca(a)};c.R=function(){return c.I};c.ve=function(a){c.I=a}};function xh(){var a=this;A(this instanceof xh,"use `new` to instantiate");a.name="singleiconcore-"+zb();a.A=new th;a.I=M("div");a.F=function(){return a.A.F()};a.pb=function(){return a.I};a.G=function(c){c=B(c,{cssClassDeep:null});a.ea().G(a.A);G(a.A.F(),"en-ui-toolkit-core");G(a.A.F(),"en-ui-toolkit-singleiconcore");G(a.I,"en-ui-toolkit-singleiconcore-icon");a.H();null!=c.cssClassDeep&&a.ca(c.cssClassDeep)};a.S=function(){a.I=null};a.H=function(){a.A.Fa(a.I)};a.ca=function(c){a.A.ca(c);G(a.I,c)}}
;function yh(){var a=this;A(this instanceof yh,"use `new` to instantiate");a.name="selectmenucore-"+zb();a.A=new th;a.I=M("div");a.C=M("select");a.F=function(){return a.A.F()};a.N=function(){return a.I};a.qb=function(){return a.C};a.G=function(c){c=B(c,{menuOptions:[],cssClassDeep:null});a.ea().G(a.A);G(a.A.F(),"en-ui-toolkit-core");G(a.A.F(),"en-ui-toolkit-selectmenucore");G(a.I,"en-ui-toolkit-selectmenucore-menuwrapper");G(a.C,"en-ui-toolkit-selectmenucore-menu");c.menuOptions.forEach(a.Dc);a.H();
null!=c.cssClassDeep&&a.ca(c.cssClassDeep)};a.S=function(){a.I=null;a.C=null};a.Dc=function(c,b){null==c.text&&(c.text=c.value);null==c.selected&&(c.selected=!1);var e=M("option",{value:c.value},[c.text]);!0===c.selected&&e.setAttribute("selected","selected");a.C.add(e,b)};a.$e=function(){return Ua(a.C.options).map(function(a){return a.getAttribute("value")})};a.L=function(c){return a.$e().indexOf(c)};a.Ze=function(c){c=a.L(c);return-1===c?null:a.C.item(c)};a.Yh=function(c){var b;null==b&&(b=!0);
t(c)&&(c=a.Ze(c));null!=c&&(b&&Ua(a.C.selectedOptions).forEach(function(a){a.removeAttribute("selected")}),c.setAttribute("selected","selected"))};a.H=function(){a.I.appendChild(a.C);a.A.Fa(a.I)};a.ca=function(c){a.A.ca(c);G(a.I,c);G(a.C,c)}};function zh(){var a=this;A(this instanceof zh,"use `new` to instantiate");a.name="icontextcore-"+zb();a.Da=new th;a.L=new th;a.A=new th;a.C=M("div");a.I=M("div");a.G=function(c){c=B(c,{packContentFirst:!1,cssClassDeep:null});var b=a.ea();b.G(a.Da);b.G(a.L);b.G(a.A);G(a.Da.F(),"en-ui-toolkit-core");G(a.Da.F(),"en-ui-toolkit-icontextcore");G(a.L.F(),"en-ui-toolkit-icontextcore-textwrapper");G(a.A.F(),"en-ui-toolkit-icontextcore-iconwrapper");G(a.C,"en-ui-toolkit-icontextcore-text");G(a.I,"en-ui-toolkit-icontextcore-icon");
null!=c.cssClassDeep&&a.ca(c.cssClassDeep);a.H(c.packContentFirst)};a.S=function(){a.C=null;a.I=null};a.H=function(c){null==c&&(c=!1);a.L.Fa(a.C);a.A.Fa(a.I);!0===c?(a.Da.T(a.L),a.Da.T(a.A)):(a.Da.T(a.A),a.Da.T(a.L))};a.F=function(){return a.Da.F()};a.ca=function(c){a.Da.ca(c);a.L.ca(c);a.A.ca(c);G(a.I,c);G(a.C,c)};a.Na=function(){return a.L};a.Lc=function(){return a.A};a.pe=function(){return a.C};a.pb=function(){return a.I};a.ua=function(c){null!=c&&(a.C.textContent=c.toString())}};function Ah(){var a=this;A(this instanceof Ah,"use `new` to instantiate");a.name="textlabelcore-"+zb();a.A=new th;a.C=M("div");a.F=function(){return a.A.F()};a.pe=function(){return a.C};a.G=function(c){c=B(c,{text:null,cssClassDeep:null});a.ea().G(a.A);G(a.A.F(),"en-ui-toolkit-core");G(a.A.F(),"en-ui-toolkit-textlabelcore");G(a.C,"en-ui-toolkit-textlabelcore-text");a.H();null!=c.cssClassDeep&&a.ca(c.cssClassDeep);a.ua(c.text)};a.S=function(){a.C=null};a.H=function(){a.A.Fa(a.C)};a.ua=function(c){null!=
c&&(a.C.textContent=c.toString())};a.ca=function(c){a.A.ca(c);G(a.C,c)}};function Bh(){var a=this;a.name="detailednotebooktypecore-"+zb();A(this instanceof Bh,"use `new` to instantiate");var c={personal:"personal",business:"business"};a.Da=new th;a.A=new th;a.R=new th;a.N=M("div");a.C=M("div");a.I=M("div");a.L=M("div");a.F=function(){return this.Da.F()};a.Xh=function(b){null!=b&&(b=c[b],A(null!=b,"unknown notebook type"),G(a.ba(),b))};a.pe=function(){return a.C};a.ba=function(){return a.N};a.V=function(){return a.I};a.nh=function(b){!0===b?rh(a.V()):qh(a.V())};a.oh=function(b){!0===
b?rh(a.Z()):qh(a.Z())};a.ua=function(b){null!=b&&(a.C.textContent=b)};a.Z=function(){return a.L};a.G=function(b){b=B(b,{cssClassDeep:null});a.ea().G(a.Da);G(a.Da.F(),"en-ui-toolkit-core");G(a.Da.F(),"en-toolbar-detailednotebooktypecore");G(a.A.F(),"en-toolbar-detailednotebooktypecore-notebookinfowrapper");G(a.R.F(),"en-toolbar-detailednotebooktypecore-jumpericonwrapper");G(a.N,"en-toolbar-detailednotebooktypecore-typeicon");G(a.C,"en-toolbar-detailednotebooktypecore-text");G(a.I,"en-toolbar-detailednotebooktypecore-dropdownicon");
G(a.L,"en-toolbar-detailednotebooktypecore-jumpericon");a.H();null!=b.cssClassDeep&&a.ca(b.cssClassDeep)};a.S=function(){c=null;a.N=null;a.C=null;a.I=null;a.L=null};a.H=function(){a.A.Fa(a.N);a.A.Fa(a.C);a.A.Fa(a.I);a.R.Fa(a.L);a.Da.T(a.A);a.Da.T(a.R)};a.ca=function(b){a.Da.ca(b);a.A.ca(b);a.R.ca(b);G(a.N,b);G(a.C,b);G(a.I,b);G(a.L,b)}};function Ch(){var a=this;a.name="toolbarbutton-"+zb();var c=null,b=null;A(this instanceof Ch,"use `new` to instantiate");a.A=new wh(new xh);var e={normal:["normal"],disabled:["disabled","en-ui-toolkit-prevent-click"],highlighted:["highlighted"]};a.C=function(){c.click?c.click():(null!=c.execCommand&&Z.execCommand(c.execCommand),c.track&&c.track.click&&qf(c.track.click),c.postBoundingBoxNotification&&c.postBoundingBoxNotification.click&&gf(a.F(),c.postBoundingBoxNotification.click))};a.G=function(d){c=
d=B(d,{cssClassDeep:null,stateAtSetup:"normal",execCommand:null,tooltipLocalizationKey:null,click:null,track:null,postBoundingBoxNotification:null,getState:null});d.tooltipLocalizationKey&&(a.Hd=d.tooltipLocalizationKey);a.la(d.stateAtSetup);a.D.listener(a.A.F(),"mousedown",function(a){Z.execCommand("content.focus");return W(a)});b=a.D.listener(a.A.F(),"click",a.C);d={cssClassDeep:d.cssClassDeep,core:{cssClassDeep:d.cssClassDeep}};a.ea().G(a.A,d)};a.S=function(){e=null};a.H=function(b){Object.keys(e);
var c=a.A.P().pb();e[b].forEach(function(a){G(c,a)})};a.zd=function(b){Object.keys(e);var c=a.A.P().pb();e[b].forEach(function(a){H(c,a)})};a.la=function(d,f){!d&&c.getState&&(d=c.getState());Object.keys(e);null!=f&&!1!==f||Object.keys(e).forEach(a.zd);a.H(d);a.A.ve("disabled"===d);"disabled"===d?(a.D.remove(b),b=null):null==b&&(b=a.D.listener(a.A.F(),"click",a.C))};a.F=function(){return a.A.F()};a.P=function(){return a.A.P()};a.pb=function(){return a.A.P().pb()}};function Dh(){var a=this;A(this instanceof Dh,"use `new` to instantiate");a.name="selectmenubutton-"+zb();a.A=new wh(new yh);a.C=null;a.qb=function(){return a.A.P().qb()};a.G=function(c){c=B(c,{action:function(){},cssClassDeep:null,menuOptions:[]});var b=a.ea(),e={cssClassDeep:c.cssClassDeep,core:{cssClassDeep:c.cssClassDeep,menuOptions:c.menuOptions}};a.we(c.menuOptions);a.D.listener(a.A.P().qb(),"change",function(a){a.target.blur();Z.execCommand("content.focus");c.action(a)});b.G(a.A,e);G(a.A.F(),
"en-toolbar-selectmenubutton")};a.S=function(){a.C=null};a.we=function(c){a.C=c.map(function(a){return a.value})};a.ug=function(c,b){var e=a.A.P().Ze(c);if(null==e){var e=M("option",{value:c},[c]),d=a.A.P().$e();d.push(c);d=d.sort(b).indexOf(c);a.A.P().qb().add(e,a.A.P().qb()[d])}a.A.P().Yh(e);a.refresh()};a.Dc=a.A.P().Dc;a.sg=function(c,b){a.ug(c,b);a.H([c])};a.la=function(c){null==c&&(c="normal");var b=a.A.P().qb();"normal"===c?(b.removeAttribute("disabled"),a.A.ve(!1)):"disabled"===c&&(b.setAttribute("disabled",
"disabled"),a.A.ve(!0))};a.refresh=function(){Cc(a.A.P().qb(),a.A.P().qb())};a.H=function(c){null==c&&(c=[]);null!=a.C&&a.A.P().$e().filter(function(b){return-1===a.C.concat(c).indexOf(b)}).forEach(function(b){I(a.A.P().Ze(b))})};a.F=function(){return a.A.F()}};function Eh(){var a=this;a.name="textinfo-"+zb();a.C=null;A(this instanceof Eh,"use `new` to instantiate");a.A=new wh(new Ah);a.G=function(c){c=B(c,{cssClassDeep:null});a.ea().G(a.A,{cssClassDeep:c.cssClassDeep,core:{cssClassDeep:c.cssClassDeep}})};a.S=function(){a.D.remove(a.C);a.C=null};a.ua=function(c){null!=c&&a.A.P().ua(c)};a.F=function(){return a.A.F()};a.H=function(c){!0===c?G(a.A.P().pe(),"underlined"):H(a.A.P().pe(),"underlined")}};function Fh(){var a=this;A(this instanceof Fh,"use `new` to instantiate");a.name="presenceperson-"+zb();var c=function(){var a=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1)}(),b=1/(2*Math.PI);a.info=null;a.A=new th;a.C=null;a.I=M("div");a.L=null;a.F=function(){return a.A.F()};a.R=function(){return a.I};a.cf=function(){return a.info.type};
a.V=function(){return a.C};a.ka=function(b){A("consolidated"===a.cf(),"presece: should be consolidated type");a.info.consolidatedNum=b;a.I.textContent=""+a.info.consolidatedNum};a.Z=function(){A("consolidated"===a.cf(),"presece: should be consolidated type");return a.info.consolidatedNum};a.G=function(b){b=B(b,{name:null,imageUrl:null,id:null,status:null,type:"single",consolidatedNum:null,localizations:{nameEditingNote:"",nameViewingNote:""}});a.ea().G(a.A);G(a.A.F(),"en-toolbar-presenceperson");
G(a.I,"en-toolbar-presenceperson-avatar");a.ga(b);a.H()};a.H=function(){a.A.Fa(a.I)};a.sc=function(){var b="";"single"===a.info.type&&("viewing"===a.info.status?b=a.info.localizations.nameViewingNote:"editing"===a.info.status&&(b=a.info.localizations.nameEditingNote));a.A.F().setAttribute("title",b)};a.ga=function(b){b=B(b,{name:null,imageUrl:null,id:null,status:null,type:"single",consolidatedNum:null,consolidatedIds:null,localizations:{nameEditingNote:"",nameViewingNote:""}});a.info=b;"consolidated"===
a.info.type?(a.I.textContent=""+a.info.consolidatedNum,a.ca("consolidated")):"single"===a.info.type?(null!=a.info.imageUrl?a.I.style.backgroundImage="url("+a.info.imageUrl+")":G(a.I,"unknown-image"),"editing"===a.info.status&&a.Le(),a.L=M("div",{"class":"hovered-layer"}),a.I.appendChild(a.L),a.sc(),a.ca("single")):A(!1,"unknown presence type");a.D.listener(a.I,"click",function(){var b=N(a.I,!0),b={left:b.left,top:b.top,width:b.width,height:b.height,type:a.info.type,id:null,name:null,consolidatedIds:null};
"single"===a.info.type?(b.id=a.info.id,b.name=a.info.name):"consolidated"===a.info.type&&(b.consolidatedIds=a.info.consolidatedIds);df("presenceClicked",b)})};a.S=function(){a.C=null;a.I=null;a.L=null};a.N=function(){a.C=M("canvas");var e=a.C.getContext("2d");G(a.C,"en-toolbar-presenceperson-canvas");a.C.width=28*c;a.C.height=28*c;a.C.style.width="28px";a.C.style.height="28px";e.setTransform(c,0,0,c,0,0);(function(){var c=0;return function(){e.clearRect(0,0,a.C.width,a.C.height);e.save();e.translate(14,
14);c=(c+b)%(2*Math.PI);e.rotate(c);var f=0+13*Math.cos(0),g=0+13*Math.sin(0),l=0+13*Math.cos(2*Math.PI),p=0+13*Math.sin(2*Math.PI);e.beginPath();e.strokeStyle=e.createLinearGradient(f,l,g,p);e.strokeStyle.addColorStop(0,"rgb(242,248,252)");e.strokeStyle.addColorStop(1,"rgb(0,167,237)");e.arc(0,0,13,0,2*Math.PI);e.lineWidth=1;e.stroke();e.closePath();e.restore()}})()()};a.Le=function(){null==a.C&&a.N();a.A.Fa(a.C)};a.fa=function(){null==a.C?v.warn("presenceheadcore: no spinner exists","returning"):
a.A.F().removeChild(a.C)};a.ba=function(){return 28};a.ca=function(b){a.A.ca(b);G(a.C,b);G(a.I,b);G(a.L,b)}};function Gh(){function a(a,f){d.H=a;var p;p=a.clampedList.length-f;d.C=a.clampedList.slice(0,f).map(function(a){return e(a)});d.I.ga({type:"consolidated",consolidatedNum:a.clampedList.length,consolidatedIds:d.H.clampedList.map(function(a){return a.id})});if(0<p){p+=1;var h=d.H.clampedList.slice(-p).map(function(a){return a.id});d.C.splice(-1,1,e({type:"consolidated",consolidatedNum:p,consolidatedIds:h}))}c()&&1===d.C.length&&"consolidated"===d.C[0].cf()&&(d.C[0].Le(),d.I.Le());b()}function c(){return d.H.clampedList.some(function(a){return"editing"===
a.status})}function b(){rc(d.A.F());d.C.forEach(function(a){d.A.ja(a)});d.A.ja(d.I);0>=d.H.clampedList.length?lh(d.A):nh(d.A)}function e(a){var b=new Fh;f.G(b,a);return b}var d=this;A(this instanceof Gh,"use `new` to instantiate");d.name="presencemanager-"+zb();d.A=new th;d.I=new Fh;var f=null;d.L=3;d.H=null;d.C=null;d.N=function(a){d.L=Math.min(Math.max(1,a),3)};d.ga=function(b){b=B(b,{clampedList:[],num:0});a(b,3)};d.G=function(){d.C=[];f=d.ea();f.G(d.A);f.G(d.I,{type:"consolidated"});G(d.A.F(),
"en-toolbar-presencemanager");G(d.I.F(),"number-only");d.R()};d.R=function(){d.A.T(d.I)};d.S=function(){f=d.C=null};d.je=function(){return 1<d.C.length};d.ie=function(){return d.L>d.C.length&&d.H.clampedList.length>d.C.length};d.Pb=function(){return 28};d.V=function(b){if(!d.je())return{didShrink:!1,shrunkBy:0};if(null==b)return d.N(d.C.length-1),a(d.H,d.L),{didShrink:!0,shrunkBy:d.Pb()};for(var c=0;d.je()&&c<=b;){d.N(d.C.length-1);a(d.H,d.L);var e=d.Pb(),c=c+e;b-=e}return{didShrink:0<c,shrunkBy:c}};
d.expand=function(b){null==b&&(b=Number.POSITIVE_INFINITY);if(!d.ie()||d.Pb()>b)return{didExpand:!1,expandedBy:0};console.log("here");for(var c=0;d.ie()&&d.Pb()<b&&c<=b;){d.N(d.C.length+1);a(d.H,d.L);var e=d.Pb(),c=c+e;b-=e}return{didExpand:0<c,expandedBy:c}};d.F=function(){return d.A.F()}};function Hh(){A(this instanceof Hh,"please use `new` to instantiate");var a=this;a.name="shield-"+zb();a.A=null;a.G=function(c){c=B(c,{style:"top:0;left:0;bottom:0;right:0;background:transparent;position:fixed;z-index:2147483147;"});a.A=M("div",{style:c.style});a.D.listener(a.A,"contextmenu",function(a){return W(a)})};a.F=function(){return a.A};a.S=function(){a.A=null}};function Ih(){A(this instanceof Ih,"use new to instantiate");var a=this;a.name="tagseditablebox-"+zb();a.C=new th;a.A=null;a.F=function(){return a.C.F()};a.rc=function(){return a.C.F()};a.clear=function(){rc(a.A)};a.Jb=function(){lh(a.C)};a.Df=function(){a.pg();nh(a.C)};a.G=function(c){c=B(c,{contenteditable:!1,cssClassDeep:null,spellcheck:null,autocomplete:null,autocapitalize:null,autocorrect:null});a.ea().G(a.C);a.A=a.C.F();A(null!=a.A,"tagseditablebox: editable node should exist in the box");G(a.C.F(),
"en-toolbar-tagseditablebox");G(a.A,"en-toolbar-tagseditablebox-editablediv");null!=c.spellcheck&&a.A.setAttribute("spellcheck",""+c.spellcheck);if(null!=c.autocomplete){var b=c.autocomplete?"on":"off";a.A.setAttribute("autocomplete",b)}null!=c.autocapitalize&&(b=c.autocapitalize?"on":"off",a.A.setAttribute("autocapitalize",b));null!=c.autocorrect&&(b=c.autocorrect?"on":"off",a.A.setAttribute("autocorrect",b));a.wf(c.contenteditable);null!=c.cssClassDeep&&a.ca(c.cssClassDeep)};a.L=function(){a.O()?
(H(a.A,"viewing"),G(a.A,"editing"),G(a.A.parentNode,"editing")):(H(a.A,"editing"),G(a.A,"viewing"),H(a.A.parentNode,"editing"))};a.O=function(){return dd(a.A)};a.Vh=function(c){ed(a.A,c)};a.wf=function(c){ed(a.A,c);a.L()};a.ud=function(c){a.C.Fa(c)};a.S=function(){};a.ca=function(c){a.C.ca(c)};a.I=function(){var c={},c=B(c,{left:null,right:null,top:null,bottom:null});Object.keys(c).forEach(function(a){da(c[a])&&(c[a]+="px")});jd(a.A);S(a.A,"left",c.left);S(a.A,"top",c.top);S(a.A,"right",c.right);
S(a.A,"bottom",c.bottom);kd(a.A)};a.H=function(){return!E(a.A,"en-ui-toolkit-display-none")};a.hasFocus=function(){if(!a.O())return!1;var c=U(a.A);return c&&(c=Qd(c))?!!P(c,dd):!1};a.pg=function(){var c;c=document.querySelector(".en-ui-toolkit-widget.smalltags");A(null!=c,"should be able to located small tags button");c=N(c,!0);A(null!=c,"tagseditablebox: bBox for small tags button should exist");a.I()};a.focus=function(){a.H()||Ha("tagseditablebox: calling focus may have no effect","becasue the node is not displayed");
a.A.focus();Ld(Kd(a.A,O(a.A)))}};function Jh(){function a(a){var b={type:"html",mode:"plain",value:""},b=B(Nb(a),b,!0),c=U();a=null;null!=c&&(a=c.endContainer);c=b.value;"html"===b.type&&(c=xc(c,x.N.F()).textContent);b=null;oa(a)?b=ta(a):(a=x.I().filter(bd),0<a.length&&(b=ec(a[0]),a.forEach(function(a){g(a)})),F(a));var d=[];c.split(",").forEach(function(a){a=a.trim();tb(a)||-1!==Object.keys(x.C).indexOf(a)||(a=Yd(a),d.push(a),d.push(Eb()),x.ra(fc(a),a))});(function(a,b){A(null!=b,"starting space node should exist");for(var c=0,
d=a.length;c<d;)Hc(a[c],b),b=a[c],c+=1})(d,b);if(0>=d.length)return!1;b=d.filter(oa);0<b.length&&(Sa(b[b.length-1]),Cd(x.A.F().scrollHeight,250,x.A.F()));C(d.filter(pb));return!0}function c(a){if(E(a.target,"en-toolbar-tagsmanager-suggestionslist-item")){var b=a.target.textContent;e();var c=U().endContainer;if(oa(c))return c=ta(c),-1===Object.keys(x.C).indexOf(b)?(b=l(c,b),Sa(Ec(b))):(pf(c),Sa(c)),W(a)}}function b(a){a.filter(function(a){return"characterData"===a.type&&oa(a.target)}).forEach(function(a){a=
ta(a.target);a=cc(a);tb(a)?e():df("requireTagSuggestionsForPhrase",{phrase:a})})}function e(){nc(x.R).forEach(function(a){G(a,"selected")});mh(x.L)}function d(a){rc(x.R);a.forEach(function(a){null==a&&(a="");a=M("li",{"class":"en-toolbar-tagsmanager-suggestionslist-item"},[a]);x.R.appendChild(a)})}function f(){Og().filter(function(a){return/\S+/.test(a.textContent)}).forEach(function(a){a=ta(a);l(a)})}function g(a){var b=Ec(a);Zd(b)||I(b);I(a);b.previousSibling&&oa(b.previousSibling)&&I(b);a=fc(a);
x.$a(a)}function l(a,b){a=ta(a);b=null==b?cc(a):b;var c=b.match(/\S+/);A(null!=c,"match should exist for tag text");c=Yd(b);sc(a,c);x.A.F().normalize();var d=Ec(c),e=ec(c),f=c.nextSibling,g=c.previousSibling;null==d&&A(null==f,"if nextSpaceNode is null","so should nextNode");null!=d&&oa(f)||(d=Eb(),Hc(d,c));null!=e&&oa(g)||(e=Eb(),c.parentNode.insertBefore(e,c));x.A.F().normalize();x.ra(fc(c),c);C([c]);return c}function p(a){var b=Kd(a,0);g(a);F(a);a=Eb();b.collapse(!1);b.insertNode(a);b=document.createRange();
b.selectNode(a);b.collapse(!1);oa(ec(a))&&I(ta(ec(a)));return a}function h(){var a=he.note;0===a.active||a.deleted||a.isTagsReadOnly||(Lf(),x.N.T($d),x.A.wf(!0),a=x.D.listener(ae,"mousedown",function(a){m();return W(a)}),x.oa.add(a))}function m(){x.A.O()&&(x.oa.di(),I(ae),Ka(),f(),e(),x.A.F().scrollTop=0,"0"===x.ba("numTags")&&(x.A.Jb(),oh(x.V)),x.A.wf(!1),x.zf())}function r(){var a=null;return x.I().filter(function(a){return!E(a,"ellipsis")}).some(function(b){b=N(b);null==a&&null!=b&&(a=b.top);if(null!=
b&&b.top!==a)return!0})}function n(){var a=null,b=null;x.I().filter(function(a){return!E(a,"ellipsis")}).some(function(c){var d=N(c);null==a&&null!=d&&(a=d.top);if(null!=d&&d.top!==a)return!0;b=c});return b}function q(){return function(a){if(x.A.O())return!0;h();f();x.A.F().focus();Cd(x.A.F().scrollHeight,250,x.A.F());var b=Xa();Sa(b[b.length-1]);W(a);return!1}}function y(){return function(){mh(x.V);h();x.A.Df();var a=Xa();0<a.length?Sa(a[0]):(a=Eb(),x.A.ud(a),Sa(a))}}function u(){mh(x.V);h();x.A.Df();
x.A.F().focus();Cd(x.A.F().scrollHeight,250,x.A.F())}function z(){var a=Xa();0<a.length?Sa(a[a.length-1]):(a=Eb(),x.A.ud(a),Sa(a))}function F(a){ca(a)||(a=[a]);a={names:a.map(fc)};df("tagRemoved",a);a=Object.keys(x.C);Lb("tagsChanged",a)}function C(a){ca(a)||(a=[a]);a={names:a.map(fc)};df("tagAdded",a);a=Object.keys(x.C);Lb("tagsChanged",a)}function w(a){x.fa("numTags",""+a.length);x.A.F().setAttribute("title",a.join(", "));0===a.length&&(x.A.Jb(),oh(x.V),m())}function D(){return function(a){if(!pb(a.target)||
!0===a.metaKey||!0===a.ctrlKey||!0===a.shiftKey)return!0;var b=Fb(a.target);if(-1!==Mf.indexOf(a.which||a.keyCode||0))return W(a),!1;a=p(b);a=ta(a);Ac(a,0,0);return!0}}function V(){function a(b){W(b);return!1}var b={27:function(a){if(ad())return e(),W(a),!1;m();W(a);return!1},9:function(a){if(9===a.keyCode)return m(),W(a)}};b["40"]=a;b["38"]=a;return function(a){var c=""+(a.which||a.keycode||0);return null==b[c]?!0:b[c](a)}}function Y(){return function(a){if(!be)return!0;be=!1;var b=U(x.A.F()).endContainer,
b=ta(b),c=null;if(13===a.keyCode&&cd(b))return m(),Z.execCommand("title.focus"),W(a),!1;ad()&&null!=xa()?(c=xa().textContent,e()):c=cc(b);-1===Object.keys(x.C).indexOf(c)?(b=l(b,c),Sa(Ec(b))):(pf(b),Sa(b));W(a);return!1}}function ra(){return function(a){return-1!==Mf.indexOf(a.which||a.keyCode||0)?(be=!0,W(a),!1):!0}}function fa(){return function(a){if(!x.A.O())return!0;e();var b=U()&&U().endContainer;return b&&oa(b)&&ta(b).hasAttribute("active")?(Ka(),!0):b&&oa(b)?(f(),Ka(),Sa(ta(b)),W(a),!1):!0}}
function Ja(){return function(a){if(!x.A.O())return!0;var b=U()&&U().endContainer;if(b&&oa(b)&&tb(cc(b)))return Sa(ta(b)),W(a),!1}}function db(){function a(b){var c=37===(b.which||b.keycode),d=!c,e=U(),g=Sd(e);if(oa(g)){var h=ta(g),k=g.textContent,g=k.slice(0,e.startOffset),e=k.substring(e.endOffset);if(d&&(" "===e||""===e)){if(Zd(h))return W(b),!1;Ka();fb(ce(h));f();W(b);return!1}if(c&&""===g){if(Nf(h))return W(b),!1;Ka();fb(Of(h));f();W(b);return!1}}return!0}var b={};b["37"]=a;b["39"]=a;b["8"]=
function(a){var b=U(x.A.F());A(oa(b.endContainer),"how did this not end up in a space node?");if(oa(b.endContainer)){var c=ta(b.endContainer);if(Nf(c)&&cd(c))return W(a),!1;if(b.collapsed&&0===b.startOffset)return Ka(),fb(Of(c)),f(),W(a),!1;Ac(c,b.startOffset,b.endOffset)}return!0};b["46"]=function(a){var b=U(x.A.F());A(oa(b.endContainer),"how did this not end up in a space node?");if(oa(b.endContainer)){var c=ta(b.endContainer);if(Zd(c)&&cd(c))return W(a),!1;if(b.collapsed&&b.endOffset>=cc(c).length-
1)return Ka(),fb(ce(c)),f(),W(a),!1;Ac(c,b.startOffset,b.endOffset)}return!0};b["65"]=function(a){if(!a.metaKey)return!0;var b=ta(U().endContainer);cd(b)?x.I().forEach(fb):of(ta(U().endContainer));W(a);return!1};return function(a){var c=""+(a.which||a.keycode||0);if(null==b[c])return!0;e();return b[c](a)}}function k(){return function(a){if(!pb(a.target))return!0;e();var b=Fb(a.target),c=b.textContent,b=p(b);A(oa(b),b,"should be space node");null==c&&(c="");var d=ta(b);d.normalize();d.textContent=
c+" ";d.normalize();of(b);W(a);return!1}}function wa(){function a(b){f();var c=Fb(b.target);if(!x.A.O())return h(),Ka(),fb(c),W(b),!1;if(bd(c))return Ka(),fb(c),W(b),!1;if(b.metaKey)return fb(c),W(b),!1;if(b.shiftKey){var d=x.I(),e=d.indexOf(Pf),c=d.indexOf(c);-1!==e&&(e>=c?x.I().slice(c,e+1):x.I().slice(e,c+1)).forEach(fb);W(b);return!1}Ka();fb(c)}return function(b){if(!pb(b.target))return!0;if(E(b.target,"ellipsis"))return z(),!0;e();return a(b)}}function bb(){function a(b){var c=x.I().filter(bd);
A(0!==c.length,"at least one selection must exist");var d=ec(c[0]);c.forEach(g);F(c);Sa(d);W(b);return!1}var b={};b["46"]=a;b["8"]=a;b["37"]=function(a){Ka();Sa(ec(Fb(a.target)));W(a);return!1};b["39"]=function(a){Ka();Sa(Ec(Fb(a.target)));W(a);return!1};b["65"]=function(a){if(!a.metaKey)return!0;f();x.I().forEach(fb);W(a);return!1};return function(a){if(!pb(a.target))return!0;var c=""+(a.which||a.keycode||0);if(null==b[c])return!0;e();return b[c](a)}}function X(){var a={38:function(){var a=xa();
null==a?Fc(0):null==a.previousSibling?Fc(O(x.R)-1):de(a.previousSibling)},40:function(){var a=xa();null==a?Fc(0):null==a.nextSibling?Fc(0):de(a.nextSibling)}};return function(b){var c=a[""+(b.which||b.keycode||0)];return null==c?!0:c(b)}}function xa(){var a=T(".en-toolbar-tagsmanager-suggestionslist-item.selected",x.R);A(1>=a.length);return 1===a.length?a[0]:null}function ad(){return!E(x.L,"en-ui-toolkit-display-none")}function Qb(){function a(d){var e,f=d.type;e=b[f];A(null!=e,"how did an unregistered event trigger?");
e.some(function(a){return!1===a(d)});e=c[f];null!=e&&e.forEach(function(a){a(d)})}var b={},c={};this.register=function(c,d){d=d.toLowerCase();null==b[d]&&(b[d]=[],x.D.listener(x.A.F(),d,a));b[d].push(c)}}function Xa(){return T(".en-toolbar-tagseditablebox-space",x.A.rc())}function Ka(){x.I().forEach(Rd)}function Rd(a){A(pb(a),"arg should be tag pill");a=Fb(a);H(a,"selected");a.blur()}function fb(a){A(pb(a),"arg should be tag pill");a=Fb(a);a.focus();G(a,"selected");Pf=a}function bd(a){A(pb(a),"arg should be tag pill");
a=Fb(a);return E(a,"selected")}function Ac(a,b,c){A(oa(a),"argument should be a spacing element");a=ta(a);Ka();Xa().forEach(Ng);var d=a;A(oa(d));d=ta(d);d.setAttribute("active","true");Ld(Kd(a.firstChild,b,a.firstChild,c))}function of(a){var b=ta(a);Ac(a,0,O(b.firstChild)-1)}function Sa(a){a=ta(a);Ac(a,0,0)}function Ng(a){A(oa(a));a=ta(a);a.removeAttribute("active")}function ta(a){A(oa(a),"call only if you're sure spaceNode is a space node","or if spaceNode is the child node of a space node root");
return E(a.parentNode,"en-toolbar-tagseditablebox-space")?a.parentNode:a}function oa(a){return null==a?!1:E(a,"en-toolbar-tagseditablebox-space")||E(a.parentNode,"en-toolbar-tagseditablebox-space")}function Eb(){return M("span",{"class":"en-toolbar-tagseditablebox-space","tab-index":"-1"},[" "])}function cc(a){A(oa(a),a,"should be space node");a=ta(a);return a.textContent.substring(0,a.textContent.length-1)}function cd(a){A(oa(a),"should be space node");return" "===ta(a).textContent}function pf(a){A(oa(a),
"should be space node");ta(a).textContent=" "}function Og(){return nc(x.A.F()).filter(function(a){return oa(a)})}function Zd(a){A(oa(a),"argument should be space node");return ta(a)===x.A.F().lastChild}function Nf(a){A(oa(a),"argument should be space node");return ta(a)===x.A.F().firstChild}function ec(a){return xd(a,".en-toolbar-tagseditablebox-space",x.A.rc())}function Ec(a){return wd(a,".en-toolbar-tagseditablebox-space",x.A.rc())}function fc(a){A(pb(a),"call only if you're sure pillNode is a tag pill node",
"or if pillNode is the child node of a tag pill node");return a.textContent}function Fb(a){A(pb(a),"call only if you're sure pillNode is a tag pill node","or if pillNode is the child node of a tag pill node");return E(a,"en-toolbar-tagpill-text")||E(a.parentNode,"en-toolbar-tagpill-text")?a.parentNode:a}function Of(a){return xd(a,".en-toolbar-tagpill",x.A.rc())}function ce(a){return wd(a,".en-toolbar-tagpill",x.A.rc())}function pb(a){return E(a,"en-toolbar-tagpill")||E(a,"en-toolbar-tagpill-text")||
E(a.parentNode,"en-toolbar-tagpill-text")}function Yd(a){A(null!=a&&0<a.length&&!/^\s+$/.test(a),"should not be white-space only string");var b=M("div",{"class":"en-toolbar-tagpill","data-status":"normal",contenteditable:"false",tabindex:"-1"});a=M("div",{"class":"en-toolbar-tagpill-text"},[a.trim()]);b.appendChild(a);return b}function Fc(a){de(nc(x.R)[a])}function de(a){nc(x.R).forEach(function(a){H(a,"selected")});G(a,"selected")}function Lf(){x.A.clear();x.A.ud(Eb());Object.keys(x.C).forEach(function(a){x.A.ud(x.C[a]);
x.A.ud(Eb())})}function Nh(a){!0===a.focus&&m()}function Oh(){var a=[];this.add=function(b){a.push(b)};this.di=function(){a.forEach(function(a){x.D.remove(a)})}}var x=this;x.name="tagsmanager-"+zb();A(this instanceof Jh,"use new to instantiate");var Qf=window.MutationObserver||window.webkitMutationObserver;A(null!=Qf,"tagsmanager: mutation observer is required");var id=null;x.N=new th;x.A=new Ih;x.L=M("div");x.R=M("ul");x.V=M("div");x.Z=function(){var a=M("div",{"class":"en-toolbar-tagpill ellipsis",
"data-status":"normal",contenteditable:"false"}),b=M("div",{"class":"en-toolbar-tagpill-text ellipsis"},["..."]);a.appendChild(b);return a}();x.ma=null;x.ka=null;x.C={};x.Ba=[];x.oa=null;var be=!1,Mf=[9,13,44],$d=new Hh,ae=null;x.ba=function(a){return x.N.F().dataset[a]};x.fa=function(a,b){x.N.F().dataset[a]=b};x.ra=function(a,b){x.C[a]=b};x.$a=function(a){x.C[a]=null;delete x.C[a]};x.La=function(a){x.C={};a.forEach(function(a){A(null==x.C[a],"should be the first time we insert","that is, no repeats are allowed in the tag list");
x.C[a]=Yd(a)})};x.I=function(){return T(".en-toolbar-tagpill",x.A.rc())};x.Ab=function(){return T(".en-toolbar-tagpill.selected",x.A.rc())};var Pf=null;x.Kh=function(a){u();!0===a.edit&&z()};x.zh=function(){u();z()};x.ab=function(){oh(x.Z)};x.Sa=function(){mh(x.Z)};x.Va=function(){var a;a=x.Z;a=null!=a?null==a.parentNode||E(a,"en-ui-toolkit-display-none"):void 0;return a};x.zf=function(){if(r()){x.Va()&&x.ab();var a=n(),b=ce(a);if(null!=b){var c=N(a),b=N(b);c.top!==b.top&&(Hc(x.Z,a),N(x.Z).top!==
c.top&&a.parentNode.insertBefore(x.Z,a))}}else x.Sa()};x.uh=function(){return x.A};x.F=function(){return x.N.F()};x.mb=function(a){A(null!=a,"typingWord should be a non null string");return x.Ba.filter(function(b){var c=a.toLowerCase();b=b.toLowerCase();console.log(c);return 0===b.indexOf(c)})};x.sc=function(a){x.ka=a.tagsPlaceholder;null!=x.ka&&(x.V.textContent=x.ka,x.V.normalize())};x.ga=function(a){if(!x.A.hasFocus()){x.ma=a;var b=a.clampedList;a=Object.keys(x.C).every(function(a){return-1!==b.indexOf(a)})&&
Object.keys(x.C).length===b.length;x.fa("numTags",""+b.length);a||(x.La(b),Lb("tagsChanged",b),Lf());0>=b.length?x.A.Jb():x.A.Df()}};x.xh=function(a){var b=U(),c=null;null!=b&&(c=b.endContainer);if(!c||oa(c))if(b=ta(c),c=cc(b),a.phrase===c){for(var c=[],f=0;10>c.length&&f<a.suggestions.length;)-1===Object.keys(x.C).indexOf(a.suggestions[f])&&c.push(a.suggestions[f]),f+=1;0<c.length?(d(c),a=N(b,!0),a=JSON.parse(JSON.stringify(a)),a.top+=25,null!=a&&(jd(x.L),S(x.L,"left",a.left+"px"),S(x.L,"top",a.top+
"px"),kd(x.L)),oh(x.L),Fc(0)):e()}};x.G=function(d){d=B(d,{readOnly:!1});id=x.ea();id.G(x.N);id.G(x.A,{contenteditable:!1,spellcheck:!1,autocomplete:!1,autocapitalize:!1,autocorrect:!1});id.G($d);ae=$d.F();x.oa=new Oh;G(x.N.F(),"en-toolbar-tagsmanager-all");G(x.L,"en-toolbar-tagsmanager-suggestionslist-wrapper");G(x.R,"en-toolbar-tagsmanager-suggestionslist");G(x.V,"en-toolbar-tagsmanager-placeholder");x.D.A("noteInfoChanged",function(a){var b=x.ba("readOnly");x.fa("readOnly",""+(a.isTagsReadOnly||
a.deleted||0===a.active));b!=x.ba("readOnly")&&x.A.Vh(!x.ba("readOnly"))});x.D.A("focusChanged",Nh);x.D.listener(x.V,"click",y());var e=new Qb,f=bb(),g=V(),h=db(),l=D(),m=wa(),n=k(),p=fa(),r=Ja(),u=q(),Rd=ra(),z=Y();e.register(X(),"keydown");e.register(f,"keydown");e.register(h,"keydown");e.register(g,"keydown");e.register(l,"keypress");e.register(Rd,"keypress");e.register(g,"keydown");(new Qf(b)).observe(x.A.F(),{childList:!0,characterData:!0,subtree:!0});e.register(m,"mousedown");e.register(n,"dblclick");
e.register(p,"click");e.register(r,"dblclick");e.register(u,"mousedown");x.D.listener(x.A.F(),"keyup",z);x.D.listener(x.R,"mousedown",c);x.D.listener(window,"resize",function(){x.zf()});x.D.A("tagsChanged",w);mh(x.L);x.fa("readOnly",d.readOnly+"");x.D.B({name:"paste",action:function(b){console.log(b);if(x.A.O())return a(b)},enabled:function(){return x.A.O()}});x.D.B({name:"copy",value:function(){var a=U(),b=null;null!=a&&(b=a.endContainer);return oa(b)?{plain:ib(a.toString())}:{plain:x.I().filter(bd).map(fc).join(",")}},
enabled:function(){return x.A.O()}});x.H()};x.zb=function(){return x.A.O()};x.H=function(){x.N.Fa(x.V);x.N.T(x.A);x.L.appendChild(x.R);x.N.Fa(x.L)};x.S=function(){}};function Kh(){function a(){k.mb.T(k.A);k.mb.T(k.Vc);k.mb.T(k.Qe);k.mb.T(k.Zd);k.mb.T(k.Bc);k.mb.T(k.R[6]);k.zb.T(k.Md);k.zb.T(k.I);k.zb.T(k.ka);k.zb.T(k.fa);k.zb.T(k.L);k.zb.ja(k.R[7]);k.C.T(k.ra);k.C.T(k.R[0]);k.C.T(k.ba);k.C.T(k.R[1]);k.C.T(k.Sb);k.C.T(k.R[2]);k.C.T(k.Tb);k.C.T(k.R[3]);k.C.T(k.zc);k.C.T(k.Mc);k.C.T(k.Wc);k.C.T(k.V);k.C.T(k.Fc);k.C.T(k.R[4]);k.C.T(k.$a);var a=Qb();k.C.T(k.Qc);D(a,!0);D(a,!1);k.Va.T(k.Z);k.Va.T(k.ba);k.Va.T(k.ab);k.Ab.T(k.oa);k.Ab.T(k.Oc);k.Ab.T(k.Xb);k.Sa.md().T(k.mb);
k.Sa.af().T(k.zb);1200<Qb()?Y():V();k.rd.T(k.Sa);k.rd.T(k.Ub);k.Ba.T(k.rd);k.Ba.T(k.De);k.Ba.T(k.H);k.Ba.T(k.La);a=document.querySelector(".en-note-container");a.parentNode.insertBefore(k.Ba.F(),a)}function c(){k.oa=new Eh;X.G(k.oa,{cssClassDeep:"notesourcemetadata"});k.oa.href=null;k.oa.clickRef=null;k.oa.ga=function(a){k.oa.ua(a.text);k.oa.href=a.href;k.D.remove(k.oa.clickRef);k.oa.clickRef=null;null!=k.oa.href&&(k.oa.clickRef=k.D.listener(k.oa.F(),"click",function(){lf(a.href,"noteSourceMetadata",
null)}))};wa.noteSourceMetadata=function(a){k.oa.ga(a)};k.Oc=new Eh;X.G(k.Oc,{cssClassDeep:"lastsavetimemetadata"});k.Oc.ga=function(a){k.Oc.ua(a.savedDate)};wa.lastSaved=function(a){k.Oc.ga(a)};k.Xb=new wh(new xh);X.G(k.Xb,{cssClassDeep:"lock"});k.Xb.ga=function(a){!0===a?nh(k.Xb):lh(k.Xb)};wa.readOnly=function(a){k.Xb.ga(a)};Xa(k.Xb,"readOnlyButtonClicked")}function b(){k.Z=new wh(new Bh);X.G(k.Z,{cssClassDeep:"detailednotebooktype"});k.Z.ga=function(a){k.Z.P().Xh(a.type);k.Z.P().ua(a.name);k.Z.P().nh(a.showDropdownArrow);
k.Z.P().oh(a.showJumperArrow);!1===a.showDropdownArrow?(G(k.Z.P().F(),"disabled"),G(k.Z.P().F(),"en-ui-toolkit-prevent-click")):(H(k.Z.P().F(),"disabled"),H(k.Z.P().F(),"en-ui-toolkit-prevent-click"));null!=a.name&&k.Z.F().setAttribute("title",a.name)};wa.notebookInfo=function(a){k.Z.ga(a);k.ra.ga(a)};k.D.listener(k.Z.F(),"click",function(a){qf({category:"note",action:"note_action",label:"change_notebook"});null!=P(a.target,".en-toolbar-detailednotebooktypecore-notebookinfowrapper")?gf(a.target,"showNotebookSheet"):
E(a.target,"en-toolbar-detailednotebooktypecore-jumpericon")&&gf(a.target,"jumpToNotebook")});k.ba=new Ch;k.ba.fg=null;X.G(k.ba,{cssClassDeep:"smalltags",getState:function(){return 0===xa.note.active||xa.note.deleted?"disabled":!0===k.Gg||!0===xa.note.isTagsReadOnly?"normal":0<k.ba.fg?"highlighted":"normal"}});k.ba.I=function(a){k.ba.fg=a.length;k.ba.F().setAttribute("title",a.join(", "));k.ba.la()};k.D.A("tagsChanged",k.ba.I);k.ab=new Jh;X.G(k.ab,{readOnly:xa.noteLocked.readOnly||xa.note.isTagsReadOnly});
wa.tags=function(a){k.ab.ga(a)};wa.tagSuggestionsForPhrase=function(a){k.ab.xh(a)};wa.openTagsField=function(a){C();k.ab.Kh(a)};k.D.listener(k.ba.F(),"click",function(){C();k.ab.zh()})}function e(){k.ra=new wh(new xh);X.G(k.ra,{cssClassDeep:"smallnotebooktype"});k.D.listener(k.ra.F(),"mousedown",function(a){fa();return W(a)});Xa(k.ra,"showNotebookSheet");k.ra.ga=function(a){null!=a.type&&(G(k.ra.P().pb(),a.type),!1===a.showDropdownArrow?(G(k.ra.P().F(),"disabled"),G(k.ra.P().F(),"en-ui-toolkit-prevent-click")):
(H(k.ra.P().F(),"disabled"),H(k.ra.P().F(),"en-ui-toolkit-prevent-click")),null!=a.name&&k.ra.F().setAttribute("title",a.name))};k.ra.ga(xa.notebookInfo);k.Sb=new Dh;X.G(k.Sb,{action:function(a){Z.execCommand("fontname",a.target.value)},cssClassDeep:"fontfamily"});k.Tb=new Dh;X.G(k.Tb,{action:function(a){Z.execCommand("fontsize",a.target.value)},cssClassDeep:"fontsize"});k.Sb.ga=function(a){a=a.map(function(a){return t(a)||da(a)?{value:""+a}:a});a.forEach(k.Sb.Dc);k.Sb.we(a)};k.Tb.ga=function(a){a=
a.map(function(a){return t(a)||da(a)?{value:""+a}:a});a.forEach(k.Tb.Dc);k.Tb.we(a)};wa.fontFamilies=function(a){k.Sb.ga(a)};wa.fontSizes=function(a){k.Tb.ga(a)};k.zc=new Ch;X.G(k.zc,{execCommand:"bold",cssClassDeep:"bold",tooltipLocalizationKey:"bold"});k.Mc=new Ch;X.G(k.Mc,{execCommand:"italic",cssClassDeep:"italic",tooltipLocalizationKey:"italic"});k.Wc=new Ch;X.G(k.Wc,{execCommand:"underline",cssClassDeep:"underline",tooltipLocalizationKey:"underline"});k.$a=new Ch;X.G(k.$a,{execCommand:"insertorderedlist",
cssClassDeep:"orderedlist",tooltipLocalizationKey:"applyOrderedList"});k.$b=new Ch;X.G(k.$b,{execCommand:"insertunorderedlist",cssClassDeep:"unorderedlist",tooltipLocalizationKey:"applyUnorderedList"});p();l();k.Fc=new Ch;X.G(k.Fc,{execCommand:"highlight",cssClassDeep:"highlight",tooltipLocalizationKey:"highlight"});k.cd=new Ch;X.G(k.cd,{cssClassDeep:"table",tooltipLocalizationKey:"insertTable",postBoundingBoxNotification:{click:"showTableSizePicker"}});wa.tableSizePickerClosed=function(){H(k.cd.pb(),
"active")};k.ee=new Ch;X.G(k.ee,{execCommand:"inserttodo",cssClassDeep:"todo",tooltipLocalizationKey:"insertTodo"});k.Vd=new Ch;X.G(k.Vd,{execCommand:"inserthorizontalrule",cssClassDeep:"horizontalrule",tooltipLocalizationKey:"insertHorizontalRule"});k.Ce=new Ch;X.G(k.Ce,{cssClassDeep:"attachment",tooltipLocalizationKey:"attachFile",track:{click:{category:"note",action:"note_editor_action",label:"attachment"}},postBoundingBoxNotification:{click:"attachmentRequested"}});k.Te=new Ch;X.G(k.Te,{cssClassDeep:"microphone",
tooltipLocalizationKey:"recordAudio",track:{click:{category:"note",action:"note_editor_action",label:"audio_note"}},postBoundingBoxNotification:{click:"microphoneRequested"}});k.Ee=new Ch;X.G(k.Ee,{cssClassDeep:"camera",tooltipLocalizationKey:"takeSnapshot",track:{click:{category:"note",action:"note_editor_action",label:"snapshot"}},postBoundingBoxNotification:{click:"cameraRequested"}});k.Qc=new Ch;X.G(k.Qc,{cssClassDeep:"overflowdropdown",click:n()})}function d(){k.Md=new Gh;X.G(k.Md);wa.presence=
k.Md.ga;k.D.listener(k.Md.F(),"mousedown",function(a){fa();return W(a)});k.I=new wh(new xh);X.G(k.I,{cssClassDeep:"publiclink"});k.I.href=null;k.I.dblClickRef=null;k.I.clickRef=null;k.D.listener(k.I.F(),"mousedown",function(a){fa();return W(a)});k.I.je=function(){return!E(k.I.F(),"en-ui-toolkit-display-none")};k.I.Pb=function(){return 26};k.I.ie=function(){return E(k.I.F(),"en-ui-toolkit-display-none")};k.I.V=function(){if(!k.I.je())return{didShrink:!1,shrunkBy:0};lh(k.I);return{didShrink:!0,shrunkBy:k.I.Pb()}};
k.I.expand=function(a){console.log(a);if(!k.I.ie()||a<k.I.Pb())return{didExpand:!1,expandedBy:0};nh(k.I);return{didExpand:!0,expandedBy:k.I.Pb()}};k.I.Ef=function(){lh(k.I)};k.I.ga=function(a){k.I.href=a.href;k.I.Ef()};wa.publicLink=function(a){k.I.ga(a)};Xa(k.I,"publicLinkClicked");k.fa=new wh(new zh);X.G(k.fa,{cssClassDeep:"workchattedwith"});Xa(k.fa,"showWorkChattedList");k.fa.qc=!0;k.fa.ga=function(a){0===a.num?lh(k.fa):(nh(k.fa),k.fa.P().ua(a.num));k.fa.qc||(G(k.fa.P().F(),"highlighted"),k.D.timeout(function(){H(k.fa.P().F(),
"highlighted")},1E3));k.fa.qc&&(k.fa.qc=!1)};k.D.listener(k.fa.F(),"mousedown",function(a){fa();return W(a)});wa.workChattedWith=function(a){k.fa.ga(a)};k.ka=new wh(new zh);X.G(k.ka,{cssClassDeep:"sharedwith"});Xa(k.ka,"showSharedList");k.ka.qc=!0;k.D.listener(k.ka.F(),"mousedown",function(a){fa();return W(a)});k.ka.ga=function(a){0===a.num?lh(k.ka):(nh(k.ka),k.ka.P().ua(a.num));k.L.qc||(G(k.ka.P().F(),"highlighted"),k.D.timeout(function(){H(k.ka.P().F(),"highlighted")},1E3));k.ka.qc&&(k.ka.qc=!1)};
wa.sharedWith=function(a){k.ka.ga(a)};g()}function f(){h();k.Vc=new Ch;X.G(k.Vc,{cssClassDeep:"presentation",tooltipLocalizationKey:"showFullScreenPresentation",track:{click:{category:"note",action:"note_action",label:"presentation"}},postBoundingBoxNotification:{click:"presentationRequested"},getState:function(){return 0===xa.note.active||!0===xa.note.deleted?"disabled":"normal"}});k.Zd=new Ch;X.G(k.Zd,{cssClassDeep:"info",tooltipLocalizationKey:"noteInfo",track:{click:{category:"note",action:"note_action",
label:"note_info"}},postBoundingBoxNotification:{click:"showNoteInfo"}});wa.noteInfo=function(a){a.requestPosition&&gf(k.Zd.F(),"noteInfoPosition")};k.Qe=new Ch;X.G(k.Qe,{cssClassDeep:"annotation",tooltipLocalizationKey:"annotateNote",track:{click:{category:"note",action:"note_action",label:"markup"}},postBoundingBoxNotification:{click:"annotationRequested"}});k.Bc=new Ch;X.G(k.Bc,{cssClassDeep:"delete",tooltipLocalizationKey:"moveNoteToTrash",track:{click:{category:"note",action:"note_action",label:"delete"}},
postBoundingBoxNotification:{click:"noteDeleteRequested"},getState:function(){return 0===xa.note.active||!0===xa.note.deleted||!0===xa.noteLocked.readOnly&&!1===xa.note.isLocal?"disabled":"normal"}});k.Vc.la();k.Bc.la()}function g(){k.L=new wh(new zh);X.G(k.L,{cssClassDeep:"share",core:{packContentFirst:!0}});k.L.kf=["normal","en-ui-toolkit-disable-click","disabled"];k.L.la=function(){var a=k.L.F(),b=k.L.P().Na().F(),c=k.L.P().pb();k.L.kf.forEach(function(d){H(a,d);H(b,d);H(c,d)});!0===xa.note.isLocal||
0===xa.note.active||!0===xa.note.deleted?(G(a,"en-ui-toolkit-prevent-click"),G(b,"disabled"),G(c,"disabled")):G(a,"normal")};k.L.la();k.D.listener(k.L.F(),"mousedown",function(a){fa();return W(a)});k.L.N=k.L.P().Na().F();k.L.L=k.L.P().Lc().F();k.D.listener(k.L.L,"mousedown",function(a){G(k.L.P().Lc().F(),"active");Ja(a,"showShareDropdownMenu")});Xa(k.L.N,"showShareDialog");k.L.sc=function(a){k.L.P().ua(a.shareButton)};k.D.listener(k.L.F(),"click",function(){qf({category:"note",action:"note_action",
label:"share"})});wa.shareDropDownMenuClosed=function(){H(k.L.P().Lc().F(),"active")}}function l(){k.V=new wh(new xh);var a=/(\.st0\s*\{\s*fill:)(.*?)(;\})/,b=/(\.st1\s*\{\s*fill:)(.*?)(;\})/,c='url(\'data:image/svg+xml;utf8,<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 12 12" style="enable-background:new 0 0 12 12;" xml:space="preserve"><style type="text/css">.st0{fill:'+bb.normal+';}.st1{fill:#000000;}</style><path id="XMLID_3_" class="st0" d="M7,8L7,8c0,0,0-0.3,0-0.8C6.5,7.6,5.8,8,5,8C3.9,8,3,7.1,3,6s0.9-2,2-2c0.2,0,2,0,2,0s0-0.4,0-0.5C7,2.7,6.3,2,5.5,2C5,2,4.5,2.3,4.2,2.7l-1-0.3C3.7,1.6,4.5,1,5.5,1C6.9,1,8,2.1,8,3.5C8,4,8,8,8,8l0,0H7L7,8z M7,5c0,0-1.4,0-2,0S4,5.4,4,6s0.4,1,1,1C6,7,7,6,7,5L7,5z"/><rect x="2" y="9" class="st1" width="7" height="3"/></svg>\')',
d=!1;X.G(k.V,{cssClassDeep:"color"});k.V.Hd="color";k.D.listener(k.V.F(),"mousedown",function(a){fa();return W(a)});k.D.A("foreColorChanged",function(a){k.V.setStrokeColor(a.color)});Xa(k.V,"showColorPicker");k.D.listener(k.V.F(),"mousedown",function(){d=!0;k.V.xf(bb.active)});k.D.listener(k.V.F(),"mouseleave",function(){d&&(k.V.xf(bb.normal),d=!1)});k.V.xf=function(b){b||(b=bb.normal);var d=k.V.P().pb();b=(d.style.backgroundImage||c).replace(a,"$1"+b+"$3");d.style.backgroundImage=b};k.V.setStrokeColor=
function(a){a||(a="#000000");var d=k.V.P().pb();a=(d.style.backgroundImage||c).replace(b,"$1"+a+"$3");d.style.backgroundImage=a};k.V.xf(bb.normal);k.V.setStrokeColor("#000000")}function p(){k.N=new Dh;k.N.Lb=["alignleft","aligncenter","alignright","alignjustify"];var a=["align-left","align-center","align-right","align-justify"],b={"align-left":k.N.Lb[0],"align-center":k.N.Lb[1],"align-right":k.N.Lb[2],"align-justify":k.N.Lb[3]},c={"align-left":"justifyleft","align-center":"justifycenter","align-right":"justifyright",
"align-justify":"justifyfull"},d={"align-left":"alignLeft","align-center":"alignCenter","align-right":"alignRight","align-justify":"alignJustify"};X.G(k.N,{cssClassDeep:"textalign",action:function(a){var d=a.target,e=b[a.target.value];E(d,e)||(Object.keys(b).forEach(function(a){H(d,b[a])}),G(d,e));Z.execCommand(c[a.target.value])}});k.N.Hd="changeTextAlignment";k.N.Wh=function(a){var b=k.N.qb();k.N.Lb.forEach(function(a){H(b,a)});G(b,a)};k.N.ga=function(a){a.forEach(k.N.Dc);k.N.we(a)};k.N.sc=function(b){var c=
a.map(function(a){return{value:a,text:b[d[a]]}});k.N.ga(c)}}function h(){k.A=new wh(new zh);X.G(k.A,{cssClassDeep:"reminder"});k.A.ma=null;k.A.kf=["normal","highlighted","struck-thru","disabled","en-ui-toolkit-prevent-click"];k.A.la=function(){var a=k.A.P().F();k.A.kf.forEach(function(b){H(a,b)});!0===k.Gg?(G(a,"disabled"),G(a,"en-ui-toolkit-prevent-click")):"set"===k.A.ma.status?G(a,"highlighted"):"cleared"===k.A.ma.status?G(a,"normal"):"done"===k.A.ma.status&&(G(a,"normal"),G(a,"struck-thru"))};
k.A.ma=null;k.A.kb=[];k.A.Gh=null;k.A.cg=null;k.A.lf=null;k.A.sc=function(a){k.A.P().pb().setAttribute("title",a.addReminderToNote);k.A.lf=a.markReminderDone};k.A.Ef=function(){var a=k.A.ma;if("set"===a.status){null==a.date||tb(a.date)?(k.A.P().ua(""),lh(k.A.P().Na())):(k.A.P().ua(a.date),nh(k.A.P().Na()));k.A.kb.forEach(k.D.remove);var b=k.D.listener(k.A.P().Na().F(),"mouseenter",function(){k.A.P().ua(k.A.lf)});k.A.kb.push(b);b=k.A.cg=k.D.listener(k.A.P().Na().F(),"mouseleave",function(){k.A.P().ua(a.date)});
k.A.kb.push(b)}else"cleared"===a.status?(k.A.P().ua(""),lh(k.A.P().Na()),k.A.kb.forEach(k.D.remove),b=k.A.cg=k.D.listener(k.A.P().Na().F(),"mouseenter",function(){k.A.P().ua(k.A.lf)}),k.A.kb.push(b),b=k.A.Gh=k.D.listener(k.A.P().Na().F(),"mouseleave",function(){k.A.P().ua(a.date)}),k.A.kb.push(b)):"done"===a.status&&(null==a.date||tb(a.date)?(k.A.P().ua(""),lh(k.A.P().Na())):(k.A.P().ua(a.date),nh(k.A.P().Na())),k.A.kb.forEach(k.D.remove))};k.A.ga=function(a){k.A.ma=a;k.A.la();k.A.Ef()};k.D.listener(k.A.P().F(),
"click",function(){qf({category:"note",action:"note_action",label:"reminder"})});Xa(k.A.P().Lc(),"showReminderSettings");Xa(k.A.P().Na(),"reminderTextClicked");k.D.listener(k.A.F(),"mousedown",function(a){fa();return W(a)});wa.reminder=function(a){k.A.ga(a)}}function m(){k.mb=new th;k.zb=new th;k.C=new th;k.Va=new th;k.Ab=new th;var a=[k.mb,k.zb,k.C,k.Va,k.Ab];a.forEach(function(a){X.G(a)});G(k.mb.F(),"en-toolbar-widgetgroup1");G(k.zb.F(),"en-toolbar-widgetgroup2");G(k.C.F(),"en-toolbar-widgetgroup3");
G(k.Va.F(),"en-toolbar-widgetgroup4");G(k.Ab.F(),"en-toolbar-widgetgroup5");a.forEach(function(a){G(a.F(),"en-toolbar-widgetgroup")})}function r(){var a;k.R=[];for(a=0;8>a;a++)k.R.push(new wh(new xh)),X.G(k.R[a],{cssClassDeep:"divider"})}function n(){function a(){var d=k.D.listener(window,"keyup",function(a){27===a.keyCode&&("select"===L(document.activeElement)?fa(!0):(b(),k.H.Jb()))}),e=k.D.listener(window,"resize",function(){b();k.H.Jb()}),f=k.D.listener(window,"blur",function(){b();k.H.Jb()});
c.push(d);c.push(e);c.push(f)}function b(){c.forEach(function(a){k.D.remove(a)})}var c=[];return function(){if(k.H.xa())b(),k.H.Jb();else{var c;c=k.H.F().clientWidth;c=Qb()-35-c;0>=c&&(c=10);c={left:c};k.H.ue(c);var d=N(k.Qc.P().F());k.H.te({left:Math.abs(d.left+d.width/4-c.left)});c=N(k.H.Uf().F());null!=c&&(k.H.Vf().F().style.width=c.width+"px");k.H.show();a()}}}function q(a){1200<a.width?Y():V();k.ab.uh().pg()}function y(a){!0===a.focus?(k.C.ig(k.ba,k.R[0]),lh(k.Va),lh(k.Ab),nh(k.C),nh(k.R[6]),
nh(k.R[7])):!1===a.focus?(C(),k.H.Jb()):A(!1,"toolbarPlugin notif: Neither true nor false.","Has the CE focus changed notification API changed?")}function u(){var a={inserthorizontalrule:[k.Vd],inserttable:[k.cd],inserttodo:[k.ee],insertunorderedlist:[k.$b,k.$a],justifyleft:[k.N]},b={bold:k.zc,highlight:k.Fc,italic:k.Mc,underline:k.Wc},c={left:k.N.Lb[0],center:k.N.Lb[1],right:k.N.Lb[2],justify:k.N.Lb[3]},d={left:"align-left",center:"align-center",right:"align-right",justify:"align-justify"};return function(e){var f=
e.enabled,g=e.state;e=e.value;Object.keys(f).forEach(function(b){var c=f[b];null!=a[b]&&a[b].forEach(function(a){a.la&&(!0===c?a.la("normal"):a.la("disabled"))})});Object.keys(g).forEach(function(a){var c=g[a];a=b[a];null!=a&&(!0===c?a.la("highlighted"):a.la("normal"))});k.Sb.sg(e.fontname);k.Tb.sg(e.fontsize,function(a,b){return parseInt(a,10)-parseInt(b,10)});k.V.setStrokeColor(e.forecolor);"none"===e.insertunorderedlist?(k.$a.zd("highlighted"),k.$b.zd("highlighted")):"ul"===e.insertunorderedlist?
(k.$b.la("highlighted"),k.$a.zd("highlighted")):"ol"===e.insertunorderedlist&&(k.$a.la("highlighted"),k.$b.zd("highlighted"));null!=e.justifyleft&&""!==e.justifyleft&&"none"!==e.justifyleft&&(k.N.Wh(c[e.justifyleft]),k.N.ug(d[e.justifyleft]))}}function z(a){qb(xa.note,a);k.L.la();k.Bc.la();k.ba.la();k.Vc.la();k.A.la()}function F(a){k.Gg=a.readOnly;k.ba.la();k.A.la();k.Vc.la();k.Bc.la()}function C(){lh(k.C);k.Va.ig(k.ba,k.Z);nh(k.Va);nh(k.Ab);nh(k.R[6]);nh(k.R[7])}function w(a){D(a.width,a.greater)}
function D(a,b){var c=Object.keys(Ka).map(function(a){return parseInt(a,10)}),c=c.filter(function(c){return b?c<a:c>=a}).sort(function(a,c){return b?a-c:c-a});c.forEach(function(a){b?Ka[a.toString()].greater():Ka[a.toString()].lesser()});k.H.qg()}function V(){H(k.Sa.F(),"wide");k.Ub.md().T(k.C);k.Ub.md().T(k.Va);k.Ub.af().T(k.Ab);nh(k.Ub)}function Y(){G(k.Sa.F(),"wide");lh(k.Ub);k.Sa.md().T(k.C);k.Sa.md().T(k.Va);k.Sa.af().ja(k.Ab)}function ra(){var a=[],b=M("div",{"class":"en-toolbar-bars-underlay"});
k.Ba.F().appendChild(b);k.D.listener(k.Ba.F(),"contextmenu",function(b){if(!a.some(function(a){return E(b.target,a)}))return W(b)},{capture:!0});k.D.listener(k.Ba.F(),"mousedown",function(a){if(2===a.button)return W(a)});k.D.listener(b,"mousedown",function(a){if(2===a.button)return W(a);fa();return W(a)})}function fa(a){a&&document.querySelector("#en-note").focus();Z.queryCommandState("content.focus")?Z.execCommand("content.focus"):Z.queryCommandState("title.focus")&&Z.execCommand("title.focus")}
function Ja(a,b){df(b,{left:a.clientX,top:a.clientY})}function db(a,b){function c(a,b){a.greater=b>a.breakpoint;a.width=b}var d=ca(a)?a:[a],e=[],f,g=null;for(f=0;f<d.length;f++)e[f]={},e[f].breakpoint=d[f],c(e[f],Qb());this.start=function(){return g=k.D.listener(window,"resize",function(){var a,f=Qb();for(a=0;a<d.length;a++){var g=JSON.parse(JSON.stringify(e[a]));c(e[a],f);e[a].greater!==g.greater&&(ca(b)?b[a](e[a],g):b(e[a],g))}})}}A(this instanceof Kh,"toolbar plugin: use `new` to instantiate");
var k=this;k.name="toolbar";var wa={},bb={},X=null,xa=null;bb.normal="#787878";bb.active="#444444";bb.highlighted="#0888e9";bb.disabled="#d8d8d8";G(document.body,"en-feature-toolbar");var ad={notebookInfo:{type:null,name:"",showDropdownArrow:!0,showJumperArrow:!1},fontFamilies:"Andale Mono;Arial;Arial Black;Brush Script MT;Comic Sans MS;Courier New;Georgia;Helvetica Neue;Impact;Times New Roman;Trebuchet;Verdana".split(";"),fontSizes:"9 10 11 12 13 14 18 24 36 48 64 72".split(" "),publicLink:{href:null},
noteSourceMetadata:{text:null,href:null},lastSaved:{savedDate:null},readOnly:{},noteLocked:{readOnly:!0},note:{isLocal:!1},reminder:{status:"done",date:null},sharedWith:{num:0},workChattedWith:{num:0},tags:{clampedList:[],num:0},presence:{clampedList:[],num:0},localizations:{alignLeft:"Align Left",alignCenter:"Center",alignRight:"Align Right",alignJustify:"Justify",bold:"Bold",italic:"Italic",underline:"Underline",highlight:"Highlight",color:"Color",applyUnorderedList:"Apply or remove bulleted list",
applyOrderedList:"Apply or remove numbered list",insertTodo:"Insert To-do",insertHorizontalRule:"Insert horizontal rule",changeTextAlignment:"Change text alignment",insertTable:"Insert table",recordAudio:"Record Audio",takeSnapshot:"Take Snapshot",attachFile:"Attach File",tagsPlaceholder:"click to add tags",addReminderToNote:"Add a reminder to this note",markReminderDone:"DONE",showFullScreenPresentation:"Show your note in full-screen Presentation Mode",annotateNote:"Annotate this note",noteInfo:"Note info",
moveNoteToTrash:"Move note to trash",shareButton:"Share"}},Qb=function(a){null!=a&&null!=a.clientWidth||Ha("width w/o scrollbars:",a,"has no clientWidth property");return a.clientWidth}.bind(null,document.querySelector("html")),Xa=function(a,b,c){b.F&&(b=b.F());return k.D.listener(b,a,function(){gf(b,c)})}.bind(null,"click");(function(a,b,c){b.F&&(b=b.F());return k.D.listener(b,a,function(a){Ja(a,c)})}).bind(null,"click");var Ka={695:{greater:function(){k.C.Ea(k.Te);k.C.Ea(k.Ee);k.La.T(k.Qc)},lesser:function(){k.H.ja(k.Ee);
k.H.ja(k.Te);k.C.T(k.Qc)}},668:{greater:function(){k.C.Ea(k.Ce)},lesser:function(){k.H.ja(k.Ce)}},645:{greater:function(){k.C.Ea(k.Vd)},lesser:function(){k.H.ja(k.Vd)}},620:{greater:function(){k.C.Ea(k.cd)},lesser:function(){k.H.ja(k.cd)}},597:{greater:function(){k.N.qb().style.paddingRight="";k.C.Ea(k.R[5]);k.C.Ea(k.ee)},lesser:function(){k.H.ja(k.ee);k.La.ja(k.R[5]);k.N.qb().style.paddingRight="28px"}},560:{greater:function(){k.La.ja(k.R[5]);k.C.Ea(k.N)},lesser:function(){k.H.ja(k.R[5]);k.H.ja(k.N)}},
520:{greater:function(){k.C.Ea(k.$b)},lesser:function(){k.H.ja(k.$b)}},500:{greater:function(){k.C.Ea(k.R[4]);k.C.Ea(k.$a)},lesser:function(){k.La.ja(k.R[4]);k.H.ja(k.$a)}},470:{greater:function(){k.La.ja(k.R[4]);k.C.Ea(k.Fc)},lesser:function(){k.H.ja(k.R[4]);k.H.ja(k.Fc)}},440:{greater:function(){k.C.Ea(k.V)},lesser:function(){k.H.ja(k.V)}},420:{greater:function(){k.C.Ea(k.Wc)},lesser:function(){k.H.ja(k.Wc)}},395:{greater:function(){k.C.Ea(k.Mc)},lesser:function(){k.H.ja(k.Mc)}},369:{greater:function(){k.La.ja(k.R[3]);
k.C.Ea(k.R[3]);k.C.Ea(k.zc)},lesser:function(){k.La.ja(k.R[3]);k.H.ja(k.zc)}}};k.G=function(g){function h(a,b){var c=!1;nb(a,function(a,d){var e=wa[a];e?(e(d),c=!0):b&&Ha("Toolbar: Unknown property",a,"with content",d)});return c}xa=B(g,ad);X=k.ea();k.D.bd({Ib:["toolbar"],cc:!1});wa.localizations=function(a){var b=k.ea().M();b.filter(function(a){return!!a.sc}).forEach(function(b){b.sc(a)});b.forEach(function(b){null!=b.Hd&&null!=a[b.Hd]&&b.F().setAttribute("title",a[b.Hd])})};k.Ba=new th;k.rd=new th;
k.Sa=new vh;k.Ub=new vh;k.De=new th;k.H=new uh;k.La=new th;X.G(k.Ba);X.G(k.rd);X.G(k.Ub);X.G(k.Sa);X.G(k.De);X.G(k.H,{cssClassDeep:"edit",hasArrow:!0});X.G(k.La);G(k.Ba.F(),"en-toolbar");G(k.rd.F(),"en-toolbar-bars");G(k.Sa.F(),"en-toolbar-actionbar");G(k.Ub.F(),"en-toolbar-formattingbar");G(k.De.F(),"en-toolbar-borderbottom");G(k.H.F(),"en-toolbar-editingoverflowbox");G(k.La.F(),"en-toolbar-tempholderbox");lh(k.La);m();r();f();d();e();b();c();a();g=u();C();ph(k.H);ra();k.D.A("noteReadOnlyStateChanged",
F);k.D.A("noteInfoChanged",z);k.D.A("styleChanged",g);k.D.A("focusChanged",y);(new db(1200,q)).start();(new db(Object.keys(Ka).map(function(a){return parseInt(a,10)}),w)).start();var l={reminder:k.A.F,reminderIcon:k.A.P().Lc().F,reminderText:k.A.P().Na().F,presentation:k.Vc.F,markup:k.Qe.F,noteInfo:k.Zd.F,"delete":k.Bc.F,presence:k.Md.F,publicLink:k.I.F,workChatted:k.fa.F,sharedWith:k.ka.F,share:k.L.F,shareText:k.L.P().Na().F,shareDropdownIcon:k.L.P().Lc().F,smallNotebook:k.ra.F,smallTags:k.ba.F,
fontFamily:k.Sb.F,fontSize:k.Tb.F,bold:k.zc.F,italic:k.Mc.F,underline:k.Wc.F,color:k.V.F,highlight:k.Fc.F,orderedList:k.$a.F,unorderedlist:k.$b.F,detailedNotebook:k.Z.F,tagsField:k.ab.F,noteSource:k.oa.F,lastUpdated:k.Oc.F,lock:k.Xb.F,formattingBarOverflow:k.Qc.F};wa.requestPosition=function(a){var b={};a=a.value;b.buttonName=a;b.box=null;null!=l[a]&&(a=l[a](),b.box=N(a,!0));df("toolbarButtonPosition",b)};k.D.B({name:k.name,action:function(a){return(a=Nb(a))?h(a,!0):!1},enabled:Na});h(xa);F(xa.noteLocked);
k.ab.zf();G(k.Ba.F(),"fixed")};k.S=function(){bb=wa=X=xa=null}};var Z={},Lh=null,Mh=null;Z.sa=!1;
Z.G=function(a){!0===Z.sa&&Z.S();var c;try{a=B(a);tf=new Kb;yf(a);uf=Lh=new Ef({B:tf,J:a,uid:(new Date).getTime()});Mh=new Df;Mh.G({name:"document"});var b,e;a.template?(b=new Jg,e=a.template):a.rte&&(b=new ih,e=a.rte);b?(Lh.G(b,e),Mh.B({name:"bounds",enabled:Na,value:function(){var a=N(b.root),c={left:a.left,right:a.right,top:a.top,bottom:a.bottom,width:a.width,height:a.height};c.y=document.body.scrollHeight-a.bottom;c.x=a.left;return JSON.stringify(c)}}),Lh.G(new cf,{root:b.root})):v.error('Settings for "rte" or "template" are obligatory!');
null!=a.title&&(Lh.G(new og,a.title),Mh.A("titlechanged",function(a){ff("title",{blur:!0===a.blur})}));null!=a.shared&&Lh.G(new Jf,a.shared);null!=a.context&&Lh.G(new Kf,a.context);null!=a["context-upsell"]&&Lh.G(new Rf,a["context-upsell"]);null!=a["context-info"]&&Lh.G(new Sf,a["context-info"]);null!=a.find&&Lh.G(new Tf,a.find);null!=a.keyboard&&Lh.G(new Uf,a.keyboard);a.toolbar&&(a.toolbar=a.toolbar||{},a.toolbar=qb(a.toolbar,{noteLocked:{readOnly:!(a.rte&&a.rte.active)},note:{active:a.note&&a.note.active,
isLocal:a.note&&a.note.isLocal,isTagsReadOnly:a.note&&a.note.isTagsReadOnly}},!0),Lh.G(new Kh,a.toolbar));a.analytics&&Lh.G(new sf,a.analytics);Mh.B({name:"note",action:function(a){var b=he;a=Nb(a);if(!mb(a)||!mb(b))return!1;b.note||(b.note={});qb(b.note,a);Lb("noteInfoChanged",b.note);return!0},value:function(a){var b=he;if(!mb(b))return null;b=b.note;return mb(b)?t(a)?b[a]:b:{}},enabled:Na});Mh.B({name:"env",action:function(a){var b=he;if(!mb(a)||!mb(b))return!1;b.env||(b.env={});qb(b.env,a);return!0},
value:function(a){var b=he;if(!mb(b))return null;b=b.env;return mb(b)?t(a)?b[a]:b:{}},enabled:Na});document.body.setAttribute("data-en-lang",rb());var d;Mh.listener(window,"resize",function(a){d||Lb("beforeWindowResize",{event:a});d=Mh.timeout(function(){d=null;Lb("windowResize",{event:a})},1E3/60*4,d)});Mh.listener(document,"selectionchange",function(a){Lb("selectionChange",{event:a})});Z.sa=!0;Mh.timeout(ef);c=!0}catch(f){c=!1,Bb(f)}return c};
Z.S=function(){if(!0!==Z.sa)v.error("Someone tried to call cleanup before setup!");else if(window.TEST){try{tf.Cg(),Lh.H(),Lh=null,Mh.S(),uf=tf=null,Pb.I(),he={}}catch(a){Bb(a)}Z.sa=!1}};Z.execCommand=function(a,c,b){A(Z.sa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=tf.action(a,c,b)}catch(d){Bb(d)}return e||!1};
Z.queryCommandState=function(a,c,b){A(Z.sa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=tf.state(a,c,b)}catch(d){Bb(d)}return e||!1};Z.queryCommandValue=function(a,c,b){A(Z.sa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=tf.value(a,c,b)}catch(d){Bb(d)}return e||""};
Z.queryCommandEnabled=function(a,c,b){A(Z.sa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=tf.enabled(a,c,b)}catch(d){Bb(d)}return e||!1};ha("EN.setup",Z.G);ha("EN.cleanup",Z.S);ha("EN.execCommand",Z.execCommand);ha("EN.queryCommandState",Z.queryCommandState);ha("EN.queryCommandValue",Z.queryCommandValue);ha("EN.queryCommandEnabled",Z.queryCommandEnabled);ha("EN.registerModuleScript",function(a){Lb("moduleScript",a)});ha("EN.registerModuleLocalization",function(a,c,b){Lb("moduleLocalization",{moduleName:a,tableName:c,stringMap:b})});ha("EN.getVersion",ja);ha("EN.getLastCommitDate",ka);ha("EN.isCompiled",function(){return!0});ha("EN.enablePrint",jh);ha("EN.disablePrint",kh); }).call(window); window.enLoadState = 'didLoad'; }
catch(ex) { window.enLoadState = "Exception: " + ex.toString() + '\n' + ex.stack + ''; }

