raptor-editor-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ Copyright 2012 Pan Media Limited (http://www.panmedia.co.nz/)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,67 @@
1
+ # raptor-editor-rails
2
+
3
+ The simplest way to get [Raptor Editor](http://www.raptor-editor.com/) onto the
4
+ Asset Pipeline in your Rails applications.
5
+
6
+ ## Requirements
7
+
8
+ * [jQuery](http://jquery.com/),
9
+ * [jQuery UI](http://jqueryui.com/),
10
+ * a jQuery UI theme.
11
+
12
+ ## Usage
13
+
14
+ raptor-editor-rails provides two Raptor Editor packages:
15
+
16
+ * `raptor.min.js` is just Raptor Editor on its own, and
17
+ * `raptor.light.min.js` is Raptor Editor and
18
+ [Rangy](http://code.google.com/p/rangy/).
19
+
20
+ If by some chance you are already using Rangy then use `raptor.min`.
21
+ Otherwise, use `raptor.light.min`.
22
+
23
+ Add raptor-editor-rails to your `Gemfile`:
24
+
25
+ ```ruby
26
+ gem "raptor-editor-rails"
27
+ ```
28
+
29
+ and then
30
+
31
+ ```sh
32
+ bundle install
33
+ ```
34
+
35
+ Add Raptor Editor to your `app/assets/javascripts/application.js` after jQuery
36
+ and jQuery UI:
37
+
38
+ ```js
39
+ //= require jquery
40
+ //= require jquery-ui
41
+ //= require raptor.light.min # or raptor.min.js if you already have Rangy
42
+ ```
43
+
44
+ ## Bugs, Issues and Feature Requests
45
+
46
+ Please raise an issue on
47
+ [GitHub](https://github.com/PANmedia/raptor-editor-rails/issues).
48
+
49
+ ## License
50
+
51
+ This Gem, jquery-raptor-rails, is distributed under the MIT License.
52
+
53
+ Raptor Editor is [distributed under GPL](http://www.raptor-editor.com/license).
54
+
55
+ ## Contributing
56
+
57
+ 1. Fork,
58
+ 2. Hack,
59
+ 3. Create a Pull Request.
60
+
61
+ ### Getting the latest version of Raptor Editor
62
+
63
+ 1. Find the latest version number from the latest release's tag name at
64
+ https://github.com/PANmedia/Raptor/tags,
65
+ 2. Update `RAPTOR_EDITOR_VERSION` in `lib/raptor_editor_rails/version.rb` (don't
66
+ include the "v" in the tag name),
67
+ 3. Run `rake fetch` to automatically download the correct files.
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+
8
+ Bundler::GemHelper.install_tasks
9
+
10
+ require "raptor_editor_rails"
11
+
12
+ desc "Fetch Raptor Editor builds from GitHub"
13
+ task :fetch do
14
+ tag = "v#{RaptorEditorRails::RAPTOR_EDITOR_VERSION}"
15
+ files = RaptorEditorRails::JS_FILES.join(",")
16
+ source = "https://raw.github.com/PANmedia/Raptor/#{tag}/packages/\\{#{files}\\}"
17
+ target = File.join(File.expand_path('..', __FILE__), "vendor/assets/javascripts")
18
+
19
+ `mkdir -p #{target} ; cd #{target} ; curl -O #{source} ; cd -`
20
+ end
@@ -0,0 +1,16 @@
1
+ require "raptor_editor_rails"
2
+
3
+ module RaptorEditorRails
4
+ module Generators
5
+ class InstallGenerator < Rails::Generators::Base
6
+ desc "Copies Raptor Editor #{RaptorEditorRails::RAPTOR_EDITOR_VERSION} to vendor/assets/javascripts"
7
+ source_root File.expand_path('../../../../../vendor/assets/javascripts', __FILE__)
8
+
9
+ def copy_files
10
+ RaptorEditorRails::JS_FILES.each do |file|
11
+ copy_file file, File.join("vendor/assets/javascripts", file)
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1 @@
1
+ require "raptor_editor_rails"
@@ -0,0 +1,5 @@
1
+ require "raptor_editor_rails/engine"
2
+
3
+ module RaptorEditorRails
4
+ JS_FILES = ["raptor.min.js", "raptor.light.min.js"].freeze
5
+ end
@@ -0,0 +1,6 @@
1
+ require "rails"
2
+
3
+ module RaptorEditorRails
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
@@ -0,0 +1,4 @@
1
+ module RaptorEditorRails
2
+ VERSION = "0.1.0"
3
+ RAPTOR_EDITOR_VERSION = "0.0.7-beta"
4
+ end
@@ -0,0 +1,370 @@
1
+ /*! VERSION: 0.0.7 *//*
2
+ Rangy, a cross-browser JavaScript range and selection library
3
+ http://code.google.com/p/rangy/
4
+
5
+ Copyright 2012, Tim Down
6
+ Licensed under the MIT license.
7
+ Version: 1.2.3
8
+ Build date: 26 February 2012
9
+ CSS Class Applier module for Rangy.
10
+ Adds, removes and toggles CSS classes on Ranges and Selections
11
+
12
+ Part of Rangy, a cross-browser JavaScript range and selection library
13
+ http://code.google.com/p/rangy/
14
+
15
+ Depends on Rangy core.
16
+
17
+ Copyright 2012, Tim Down
18
+ Licensed under the MIT license.
19
+ Version: 1.2.3
20
+ Build date: 26 February 2012
21
+ Selection save and restore module for Rangy.
22
+ Saves and restores user selections using marker invisible elements in the DOM.
23
+
24
+ Part of Rangy, a cross-browser JavaScript range and selection library
25
+ http://code.google.com/p/rangy/
26
+
27
+ Depends on Rangy core.
28
+
29
+ Copyright 2012, Tim Down
30
+ Licensed under the MIT license.
31
+ Version: 1.2.3
32
+ Build date: 26 February 2012
33
+ Serializer module for Rangy.
34
+ Serializes Ranges and Selections. An example use would be to store a user's selection on a particular page in a
35
+ cookie or local storage and restore it on the user's next visit to the same page.
36
+
37
+ Part of Rangy, a cross-browser JavaScript range and selection library
38
+ http://code.google.com/p/rangy/
39
+
40
+ Depends on Rangy core.
41
+
42
+ Copyright 2012, Tim Down
43
+ Licensed under the MIT license.
44
+ Version: 1.2.3
45
+ Build date: 26 February 2012
46
+ */
47
+ window.rangy=function(){function d(a,c){var b=typeof a[c];return b==o||!!(b==p&&a[c])||"unknown"==b}function q(a,c){return!!(typeof a[c]==p&&a[c])}function m(a,c){return typeof a[c]!=i}function t(a){return function(c,b){for(var d=b.length;d--;)if(!a(c,b[d]))return!1;return!0}}function r(d){return d&&c(d,b)&&g(d,a)}function s(a){window.alert("Rangy not supported in your browser. Reason: "+a);h.initialized=!0;h.supported=!1}function f(){if(!h.initialized){var a,b=!1,e=!1;d(document,"createRange")&&
48
+ (a=document.createRange(),c(a,k)&&g(a,l)&&(b=!0),a.detach());if((a=q(document,"body")?document.body:document.getElementsByTagName("body")[0])&&d(a,"createTextRange"))a=a.createTextRange(),r(a)&&(e=!0);!b&&!e&&s("Neither Range nor TextRange are implemented");h.initialized=!0;h.features={implementsDomRange:b,implementsTextRange:e};b=C.concat(n);e=0;for(a=b.length;e<a;++e)try{b[e](h)}catch(p){q(window,"console")&&d(window.console,"log")&&window.console.log("Init listener threw an exception. Continuing.",
49
+ p)}}}function v(a){this.name=a;this.supported=this.initialized=!1}var p="object",o="function",i="undefined",l="startContainer,startOffset,endContainer,endOffset,collapsed,commonAncestorContainer,START_TO_START,START_TO_END,END_TO_START,END_TO_END".split(","),k="setStart,setStartBefore,setStartAfter,setEnd,setEndBefore,setEndAfter,collapse,selectNode,selectNodeContents,compareBoundaryPoints,deleteContents,extractContents,cloneContents,insertNode,surroundContents,cloneRange,toString,detach".split(","),
50
+ a="boundingHeight,boundingLeft,boundingTop,boundingWidth,htmlText,text".split(","),b="collapse,compareEndPoints,duplicate,getBookmark,moveToBookmark,moveToElementText,parentElement,pasteHTML,select,setEndPoint,getBoundingClientRect".split(","),c=t(d),e=t(q),g=t(m),h={version:"1.2.3",initialized:!1,supported:!0,util:{isHostMethod:d,isHostObject:q,isHostProperty:m,areHostMethods:c,areHostObjects:e,areHostProperties:g,isTextRange:r},features:{},modules:{},config:{alertOnWarn:!1,preferTextRange:!1}};
51
+ h.fail=s;h.warn=function(a){a="Rangy warning: "+a;h.config.alertOnWarn?window.alert(a):typeof window.console!=i&&typeof window.console.log!=i&&window.console.log(a)};({}).hasOwnProperty?h.util.extend=function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])}:s("hasOwnProperty not supported");var n=[],C=[];h.init=f;h.addInitListener=function(a){h.initialized?a(h):n.push(a)};var B=[];h.addCreateMissingNativeApiListener=function(a){B.push(a)};h.createMissingNativeApi=function(a){a=a||window;f();
52
+ for(var c=0,b=B.length;c<b;++c)B[c](a)};v.prototype.fail=function(a){this.initialized=!0;this.supported=!1;throw Error("Module '"+this.name+"' failed to load: "+a);};v.prototype.warn=function(a){h.warn("Module "+this.name+": "+a)};v.prototype.createError=function(a){return Error("Error in Rangy "+this.name+" module: "+a)};h.createModule=function(a,c){var b=new v(a);h.modules[a]=b;C.push(function(a){c(a,b);b.initialized=!0;b.supported=!0})};h.requireModules=function(a){for(var c=0,b=a.length,d,e;c<
53
+ b;++c){e=a[c];d=h.modules[e];if(!d||!(d instanceof v))throw Error("Module '"+e+"' not found");if(!d.supported)throw Error("Module '"+e+"' not supported");}};var z=!1,e=function(){z||(z=!0,h.initialized||f())};if(typeof window==i)s("No window found");else if(typeof document==i)s("No document found");else return d(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",e,!1),d(window,"addEventListener")?window.addEventListener("load",e,!1):d(window,"attachEvent")?window.attachEvent("onload",
54
+ e):s("Window does not have required addEventListener or attachEvent method"),h}();
55
+ rangy.createModule("DomUtil",function(d,q){function m(a){for(var c=0;a=a.previousSibling;)c++;return c}function t(a,b){var d=[],n;for(n=a;n;n=n.parentNode)d.push(n);for(n=b;n;n=n.parentNode)if(c(d,n))return n;return null}function r(a,c,b){for(b=b?a:a.parentNode;b;){a=b.parentNode;if(a===c)return b;b=a}return null}function s(a){a=a.nodeType;return 3==a||4==a||8==a}function f(a,c){var b=c.nextSibling,d=c.parentNode;b?d.insertBefore(a,b):d.appendChild(a);return a}function v(a){if(9==a.nodeType)return a;
56
+ if(typeof a.ownerDocument!=k)return a.ownerDocument;if(typeof a.document!=k)return a.document;if(a.parentNode)return v(a.parentNode);throw Error("getDocument: no document found for node");}function p(a){return!a?"[No node]":s(a)?'"'+a.data+'"':1==a.nodeType?"<"+a.nodeName+(a.id?' id="'+a.id+'"':"")+">["+a.childNodes.length+"]":a.nodeName}function o(a){this._next=this.root=a}function i(a,c){this.node=a;this.offset=c}function l(a){this.code=this[a];this.codeName=a;this.message="DOMException: "+this.codeName}
57
+ var k="undefined",a=d.util;a.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||q.fail("document missing a Node creation method");a.isHostMethod(document,"getElementsByTagName")||q.fail("document missing getElementsByTagName method");var b=document.createElement("div");a.areHostMethods(b,["insertBefore","appendChild","cloneNode"])||q.fail("Incomplete Element implementation");a.isHostProperty(b,"innerHTML")||q.fail("Element is missing innerHTML property");b=document.createTextNode("test");
58
+ a.areHostMethods(b,["splitText","deleteData","insertData","appendData","cloneNode"])||q.fail("Incomplete Text Node implementation");var c=function(a,c){for(var b=a.length;b--;)if(a[b]===c)return!0;return!1};o.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var a=this._current=this._next,c;if(this._current){c=a.firstChild;if(!c)for(c=null;a!==this.root&&!(c=a.nextSibling);)a=a.parentNode;this._next=c}return this._current},detach:function(){this._current=this._next=this.root=
59
+ null}};i.prototype={equals:function(a){return this.node===a.node&this.offset==a.offset},inspect:function(){return"[DomPosition("+p(this.node)+":"+this.offset+")]"}};l.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11};l.prototype.toString=function(){return this.message};d.dom={arrayContains:c,isHtmlNamespace:function(a){var c;return typeof a.namespaceURI==k||null===(c=a.namespaceURI)||"http://www.w3.org/1999/xhtml"==
60
+ c},parentElement:function(a){a=a.parentNode;return 1==a.nodeType?a:null},getNodeIndex:m,getNodeLength:function(a){var c;return s(a)?a.length:(c=a.childNodes)?c.length:0},getCommonAncestor:t,isAncestorOf:function(a,c,b){for(c=b?c:c.parentNode;c;){if(c===a)return!0;c=c.parentNode}return!1},getClosestAncestorIn:r,isCharacterDataNode:s,insertAfter:f,splitDataNode:function(a,c){var b=a.cloneNode(!1);b.deleteData(0,c);a.deleteData(c,a.length-c);f(b,a);return b},getDocument:v,getWindow:function(a){a=v(a);
61
+ if(typeof a.defaultView!=k)return a.defaultView;if(typeof a.parentWindow!=k)return a.parentWindow;throw Error("Cannot get a window object for node");},getIframeWindow:function(a){if(typeof a.contentWindow!=k)return a.contentWindow;if(typeof a.contentDocument!=k)return a.contentDocument.defaultView;throw Error("getIframeWindow: No Window object found for iframe element");},getIframeDocument:function(a){if(typeof a.contentDocument!=k)return a.contentDocument;if(typeof a.contentWindow!=k)return a.contentWindow.document;
62
+ throw Error("getIframeWindow: No Document object found for iframe element");},getBody:function(c){return a.isHostObject(c,"body")?c.body:c.getElementsByTagName("body")[0]},getRootContainer:function(a){for(var c;c=a.parentNode;)a=c;return a},comparePoints:function(a,c,b,d){var p;if(a==b)return c===d?0:c<d?-1:1;if(p=r(b,a,!0))return c<=m(p)?-1:1;if(p=r(a,b,!0))return m(p)<d?-1:1;c=t(a,b);a=a===c?c:r(a,c,!0);b=b===c?c:r(b,c,!0);if(a===b)throw Error("comparePoints got to case 4 and childA and childB are the same!");
63
+ for(c=c.firstChild;c;){if(c===a)return-1;if(c===b)return 1;c=c.nextSibling}throw Error("Should not be here!");},inspectNode:p,fragmentFromNodeChildren:function(a){for(var c=v(a).createDocumentFragment(),b;b=a.firstChild;)c.appendChild(b);return c},createIterator:function(a){return new o(a)},DomPosition:i};d.DOMException=l});
64
+ rangy.createModule("DomRange",function(d){function q(a,c){return 3!=a.nodeType&&(j.isAncestorOf(a,c.startContainer,!0)||j.isAncestorOf(a,c.endContainer,!0))}function m(a){return j.getDocument(a.startContainer)}function t(a,c,b){if(c=a._listeners[c])for(var d=0,e=c.length;d<e;++d)c[d].call(a,{target:a,args:b})}function r(a){return new J(a.parentNode,j.getNodeIndex(a))}function s(a){return new J(a.parentNode,j.getNodeIndex(a)+1)}function f(a,c,b){var d=11==a.nodeType?a.firstChild:a;j.isCharacterDataNode(c)?
65
+ b==c.length?j.insertAfter(a,c):c.parentNode.insertBefore(a,0==b?c:j.splitDataNode(c,b)):b>=c.childNodes.length?c.appendChild(a):c.insertBefore(a,c.childNodes[b]);return d}function v(a){for(var c,b,d=m(a.range).createDocumentFragment();b=a.next();){c=a.isPartiallySelectedSubtree();b=b.cloneNode(!c);c&&(c=a.getSubtreeIterator(),b.appendChild(v(c)),c.detach(!0));if(10==b.nodeType)throw new D("HIERARCHY_REQUEST_ERR");d.appendChild(b)}return d}function p(a,c,b){for(var d,e,b=b||{stop:!1};d=a.next();)if(a.isPartiallySelectedSubtree())if(!1===
66
+ c(d)){b.stop=!0;break}else{if(d=a.getSubtreeIterator(),p(d,c,b),d.detach(!0),b.stop)break}else for(d=j.createIterator(d);e=d.next();)if(!1===c(e)){b.stop=!0;return}}function o(a){for(var c;a.next();)a.isPartiallySelectedSubtree()?(c=a.getSubtreeIterator(),o(c),c.detach(!0)):a.remove()}function i(a){for(var c,b=m(a.range).createDocumentFragment(),d;c=a.next();){a.isPartiallySelectedSubtree()?(c=c.cloneNode(!1),d=a.getSubtreeIterator(),c.appendChild(i(d)),d.detach(!0)):a.remove();if(10==c.nodeType)throw new D("HIERARCHY_REQUEST_ERR");
67
+ b.appendChild(c)}return b}function l(c,b,d){var e=!(!b||!b.length),g,x=!!d;e&&(g=RegExp("^("+b.join("|")+")$"));var u=[];p(new a(c,!1),function(a){(!e||g.test(a.nodeType))&&(!x||d(a))&&u.push(a)});return u}function k(a){return"["+("undefined"==typeof a.getName?"Range":a.getName())+"("+j.inspectNode(a.startContainer)+":"+a.startOffset+", "+j.inspectNode(a.endContainer)+":"+a.endOffset+")]"}function a(a,c){this.range=a;this.clonePartiallySelectedTextNodes=c;if(!a.collapsed){this.sc=a.startContainer;
68
+ this.so=a.startOffset;this.ec=a.endContainer;this.eo=a.endOffset;var b=a.commonAncestorContainer;this.sc===this.ec&&j.isCharacterDataNode(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc===b&&!j.isCharacterDataNode(this.sc)?this.sc.childNodes[this.so]:j.getClosestAncestorIn(this.sc,b,!0),this._last=this.ec===b&&!j.isCharacterDataNode(this.ec)?this.ec.childNodes[this.eo-1]:j.getClosestAncestorIn(this.ec,b,!0))}}function b(a){this.code=
69
+ this[a];this.codeName=a;this.message="RangeException: "+this.codeName}function c(a,c,b){this.nodes=l(a,c,b);this._next=this.nodes[0];this._position=0}function e(a){return function(c,b){for(var d,e=b?c:c.parentNode;e;){d=e.nodeType;if(j.arrayContains(a,d))return e;e=e.parentNode}return null}}function g(a,c){if(aa(a,c))throw new b("INVALID_NODE_TYPE_ERR");}function h(a){if(!a.startContainer)throw new D("INVALID_STATE_ERR");}function n(a,c){if(!j.arrayContains(c,a.nodeType))throw new b("INVALID_NODE_TYPE_ERR");
70
+ }function C(a,c){if(0>c||c>(j.isCharacterDataNode(a)?a.length:a.childNodes.length))throw new D("INDEX_SIZE_ERR");}function B(a,c){if(Q(a,!0)!==Q(c,!0))throw new D("WRONG_DOCUMENT_ERR");}function z(a){if(ba(a,!0))throw new D("NO_MODIFICATION_ALLOWED_ERR");}function y(a,c){if(!a)throw new D(c);}function F(a){return!!a.startContainer&&!!a.endContainer&&!(!j.arrayContains(M,a.startContainer.nodeType)&&!Q(a.startContainer,!0))&&!(!j.arrayContains(M,a.endContainer.nodeType)&&!Q(a.endContainer,!0))&&a.startOffset<=
71
+ (j.isCharacterDataNode(a.startContainer)?a.startContainer.length:a.startContainer.childNodes.length)&&a.endOffset<=(j.isCharacterDataNode(a.endContainer)?a.endContainer.length:a.endContainer.childNodes.length)}function w(a){h(a);if(!F(a))throw Error("Range error: Range is no longer valid after DOM mutation ("+a.inspect()+")");}function H(){}function G(a){a.START_TO_START=R;a.START_TO_END=V;a.END_TO_END=ca;a.END_TO_START=W;a.NODE_BEFORE=X;a.NODE_AFTER=Y;a.NODE_BEFORE_AND_AFTER=Z;a.NODE_INSIDE=S}function E(a){G(a);
72
+ G(a.prototype)}function u(c,b){return function(){w(this);var d=this.startContainer,e=this.startOffset,g=this.commonAncestorContainer,x=new a(this,!0);d!==g&&(d=j.getClosestAncestorIn(d,g,!0),e=s(d),d=e.node,e=e.offset);p(x,z);x.reset();g=c(x);x.detach();b(this,d,e,d,e);return g}}function I(c,b,e){function x(a,c){return function(b){h(this);n(b,K);n(O(b),M);b=(a?r:s)(b);(c?I:p)(this,b.node,b.offset)}}function I(a,c,d){var e=a.endContainer,g=a.endOffset;if(c!==a.startContainer||d!==a.startOffset){if(O(c)!=
73
+ O(e)||1==j.comparePoints(c,d,e,g))e=c,g=d;b(a,c,d,e,g)}}function p(a,c,d){var e=a.startContainer,g=a.startOffset;if(c!==a.endContainer||d!==a.endOffset){if(O(c)!=O(e)||-1==j.comparePoints(c,d,e,g))e=c,g=d;b(a,e,g,c,d)}}c.prototype=new H;d.util.extend(c.prototype,{setStart:function(a,c){h(this);g(a,!0);C(a,c);I(this,a,c)},setEnd:function(a,c){h(this);g(a,!0);C(a,c);p(this,a,c)},setStartBefore:x(!0,!0),setStartAfter:x(!1,!0),setEndBefore:x(!0,!1),setEndAfter:x(!1,!1),collapse:function(a){w(this);a?
74
+ b(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):b(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(a){h(this);g(a,!0);b(this,a,0,a,j.getNodeLength(a))},selectNode:function(a){h(this);g(a,!1);n(a,K);var c=r(a),a=s(a);b(this,c.node,c.offset,a.node,a.offset)},extractContents:u(i,b),deleteContents:u(o,b),canSurroundContents:function(){w(this);z(this.startContainer);z(this.endContainer);var c=new a(this,!0),b=c._first&&
75
+ q(c._first,this)||c._last&&q(c._last,this);c.detach();return!b},detach:function(){e(this)},splitBoundaries:function(){w(this);var a=this.startContainer,c=this.startOffset,d=this.endContainer,e=this.endOffset,g=a===d;j.isCharacterDataNode(d)&&0<e&&e<d.length&&j.splitDataNode(d,e);j.isCharacterDataNode(a)&&0<c&&c<a.length&&(a=j.splitDataNode(a,c),g?(e-=c,d=a):d==a.parentNode&&e>=j.getNodeIndex(a)&&e++,c=0);b(this,a,c,d,e)},normalizeBoundaries:function(){w(this);var a=this.startContainer,c=this.startOffset,
76
+ d=this.endContainer,e=this.endOffset,g=function(a){var c=a.nextSibling;c&&c.nodeType==a.nodeType&&(d=a,e=a.length,a.appendData(c.data),c.parentNode.removeChild(c))},x=function(b){var g=b.previousSibling;if(g&&g.nodeType==b.nodeType){a=b;var x=b.length;c=g.length;b.insertData(0,g.data);g.parentNode.removeChild(g);a==d?(e+=c,d=a):d==b.parentNode&&(g=j.getNodeIndex(b),e==g?(d=b,e=x):e>g&&e--)}},u=!0;j.isCharacterDataNode(d)?d.length==e&&g(d):(0<e&&(u=d.childNodes[e-1])&&j.isCharacterDataNode(u)&&g(u),
77
+ u=!this.collapsed);u?j.isCharacterDataNode(a)?0==c&&x(a):c<a.childNodes.length&&(g=a.childNodes[c])&&j.isCharacterDataNode(g)&&x(g):(a=d,c=e);b(this,a,c,d,e)},collapseToPoint:function(a,c){h(this);g(a,!0);C(a,c);(a!==this.startContainer||c!==this.startOffset||a!==this.endContainer||c!==this.endOffset)&&b(this,a,c,a,c)}});E(c)}function N(a){a.collapsed=a.startContainer===a.endContainer&&a.startOffset===a.endOffset;a.commonAncestorContainer=a.collapsed?a.startContainer:j.getCommonAncestor(a.startContainer,
78
+ a.endContainer)}function P(a,c,b,d,e){var g=a.startContainer!==c||a.startOffset!==b,x=a.endContainer!==d||a.endOffset!==e;a.startContainer=c;a.startOffset=b;a.endContainer=d;a.endOffset=e;N(a);t(a,"boundarychange",{startMoved:g,endMoved:x})}function A(a){this.startContainer=a;this.startOffset=0;this.endContainer=a;this.endOffset=0;this._listeners={boundarychange:[],detach:[]};N(this)}d.requireModules(["DomUtil"]);var j=d.dom,J=j.DomPosition,D=d.DOMException;a.prototype={_current:null,_next:null,_first:null,
79
+ _last:null,isSingleCharacterDataNode:!1,reset:function(){this._current=null;this._next=this._first},hasNext:function(){return!!this._next},next:function(){var a=this._current=this._next;a&&(this._next=a!==this._last?a.nextSibling:null,j.isCharacterDataNode(a)&&this.clonePartiallySelectedTextNodes&&(a===this.ec&&(a=a.cloneNode(!0)).deleteData(this.eo,a.length-this.eo),this._current===this.sc&&(a=a.cloneNode(!0)).deleteData(0,this.so)));return a},remove:function(){var a=this._current,c,b;j.isCharacterDataNode(a)&&
80
+ (a===this.sc||a===this.ec)?(c=a===this.sc?this.so:0,b=a===this.ec?this.eo:a.length,c!=b&&a.deleteData(c,b-c)):a.parentNode&&a.parentNode.removeChild(a)},isPartiallySelectedSubtree:function(){return q(this._current,this.range)},getSubtreeIterator:function(){var c;if(this.isSingleCharacterDataNode)c=this.range.cloneRange(),c.collapse();else{c=new A(m(this.range));var b=this._current,d=b,e=0,g=b,x=j.getNodeLength(b);j.isAncestorOf(b,this.sc,!0)&&(d=this.sc,e=this.so);j.isAncestorOf(b,this.ec,!0)&&(g=
81
+ this.ec,x=this.eo);P(c,d,e,g,x)}return new a(c,this.clonePartiallySelectedTextNodes)},detach:function(a){a&&this.range.detach();this.range=this._current=this._next=this._first=this._last=this.sc=this.so=this.ec=this.eo=null}};b.prototype={BAD_BOUNDARYPOINTS_ERR:1,INVALID_NODE_TYPE_ERR:2};b.prototype.toString=function(){return this.message};c.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){this._current=this._next;this._next=this.nodes[++this._position];return this._current},
82
+ detach:function(){this._current=this._next=this.nodes=null}};var K=[1,3,4,5,7,8,10],M=[2,9,11],L=[1,3,4,5,7,8,10,11],x=[1,3,4,5,7,8],O=j.getRootContainer,Q=e([9,11]),ba=e([5,6,10,12]),aa=e([6,10,12]),$=document.createElement("style"),T=!1;try{$.innerHTML="<b>x</b>",T=3==$.firstChild.nodeType}catch(da){}d.features.htmlParsingConforms=T;var U="startContainer,startOffset,endContainer,endOffset,collapsed,commonAncestorContainer".split(","),R=0,V=1,ca=2,W=3,X=0,Y=1,Z=2,S=3;H.prototype={attachListener:function(a,
83
+ c){this._listeners[a].push(c)},compareBoundaryPoints:function(a,c){w(this);B(this.startContainer,c.startContainer);var b=a==W||a==R?"start":"end",d=a==V||a==R?"start":"end";return j.comparePoints(this[b+"Container"],this[b+"Offset"],c[d+"Container"],c[d+"Offset"])},insertNode:function(a){w(this);n(a,L);z(this.startContainer);if(j.isAncestorOf(a,this.startContainer,!0))throw new D("HIERARCHY_REQUEST_ERR");this.setStartBefore(f(a,this.startContainer,this.startOffset))},cloneContents:function(){w(this);
84
+ var c,b;if(this.collapsed)return m(this).createDocumentFragment();if(this.startContainer===this.endContainer&&j.isCharacterDataNode(this.startContainer))return c=this.startContainer.cloneNode(!0),c.data=c.data.slice(this.startOffset,this.endOffset),b=m(this).createDocumentFragment(),b.appendChild(c),b;b=new a(this,!0);c=v(b);b.detach();return c},canSurroundContents:function(){w(this);z(this.startContainer);z(this.endContainer);var c=new a(this,!0),b=c._first&&q(c._first,this)||c._last&&q(c._last,
85
+ this);c.detach();return!b},surroundContents:function(a){n(a,x);if(!this.canSurroundContents())throw new b("BAD_BOUNDARYPOINTS_ERR");var c=this.extractContents();if(a.hasChildNodes())for(;a.lastChild;)a.removeChild(a.lastChild);f(a,this.startContainer,this.startOffset);a.appendChild(c);this.selectNode(a)},cloneRange:function(){w(this);for(var a=new A(m(this)),c=U.length,b;c--;)b=U[c],a[b]=this[b];return a},toString:function(){w(this);var c=this.startContainer;if(c===this.endContainer&&j.isCharacterDataNode(c))return 3==
86
+ c.nodeType||4==c.nodeType?c.data.slice(this.startOffset,this.endOffset):"";var b=[],c=new a(this,!0);p(c,function(a){(3==a.nodeType||4==a.nodeType)&&b.push(a.data)});c.detach();return b.join("")},compareNode:function(a){w(this);var c=a.parentNode,b=j.getNodeIndex(a);if(!c)throw new D("NOT_FOUND_ERR");a=this.comparePoint(c,b);c=this.comparePoint(c,b+1);return 0>a?0<c?Z:X:0<c?Y:S},comparePoint:function(a,c){w(this);y(a,"HIERARCHY_REQUEST_ERR");B(a,this.startContainer);return 0>j.comparePoints(a,c,this.startContainer,
87
+ this.startOffset)?-1:0<j.comparePoints(a,c,this.endContainer,this.endOffset)?1:0},createContextualFragment:T?function(a){var c=this.startContainer,b=j.getDocument(c);if(!c)throw new D("INVALID_STATE_ERR");var d=null;1==c.nodeType?d=c:j.isCharacterDataNode(c)&&(d=j.parentElement(c));d=null===d||"HTML"==d.nodeName&&j.isHtmlNamespace(j.getDocument(d).documentElement)&&j.isHtmlNamespace(d)?b.createElement("body"):d.cloneNode(!1);d.innerHTML=a;return j.fragmentFromNodeChildren(d)}:function(a){h(this);
88
+ var c=m(this).createElement("body");c.innerHTML=a;return j.fragmentFromNodeChildren(c)},toHtml:function(){w(this);var a=m(this).createElement("div");a.appendChild(this.cloneContents());return a.innerHTML},intersectsNode:function(a,c){w(this);y(a,"NOT_FOUND_ERR");if(j.getDocument(a)!==m(this))return!1;var b=a.parentNode,d=j.getNodeIndex(a);y(b,"NOT_FOUND_ERR");var e=j.comparePoints(b,d,this.endContainer,this.endOffset),b=j.comparePoints(b,d+1,this.startContainer,this.startOffset);return c?0>=e&&0<=
89
+ b:0>e&&0<b},isPointInRange:function(a,c){w(this);y(a,"HIERARCHY_REQUEST_ERR");B(a,this.startContainer);return 0<=j.comparePoints(a,c,this.startContainer,this.startOffset)&&0>=j.comparePoints(a,c,this.endContainer,this.endOffset)},intersectsRange:function(a,c){w(this);if(m(a)!=m(this))throw new D("WRONG_DOCUMENT_ERR");var b=j.comparePoints(this.startContainer,this.startOffset,a.endContainer,a.endOffset),d=j.comparePoints(this.endContainer,this.endOffset,a.startContainer,a.startOffset);return c?0>=
90
+ b&&0<=d:0>b&&0<d},intersection:function(a){if(this.intersectsRange(a)){var c=j.comparePoints(this.startContainer,this.startOffset,a.startContainer,a.startOffset),b=j.comparePoints(this.endContainer,this.endOffset,a.endContainer,a.endOffset),d=this.cloneRange();-1==c&&d.setStart(a.startContainer,a.startOffset);1==b&&d.setEnd(a.endContainer,a.endOffset);return d}return null},union:function(a){if(this.intersectsRange(a,!0)){var c=this.cloneRange();-1==j.comparePoints(a.startContainer,a.startOffset,this.startContainer,
91
+ this.startOffset)&&c.setStart(a.startContainer,a.startOffset);1==j.comparePoints(a.endContainer,a.endOffset,this.endContainer,this.endOffset)&&c.setEnd(a.endContainer,a.endOffset);return c}throw new b("Ranges do not intersect");},containsNode:function(a,c){return c?this.intersectsNode(a,!1):this.compareNode(a)==S},containsNodeContents:function(a){return 0<=this.comparePoint(a,0)&&0>=this.comparePoint(a,j.getNodeLength(a))},containsRange:function(a){return this.intersection(a).equals(a)},containsNodeText:function(a){var c=
92
+ this.cloneRange();c.selectNode(a);var b=c.getNodes([3]);return 0<b.length?(c.setStart(b[0],0),a=b.pop(),c.setEnd(a,a.length),a=this.containsRange(c),c.detach(),a):this.containsNodeContents(a)},createNodeIterator:function(a,b){w(this);return new c(this,a,b)},getNodes:function(a,c){w(this);return l(this,a,c)},getDocument:function(){return m(this)},collapseBefore:function(a){h(this);this.setEndBefore(a);this.collapse(!1)},collapseAfter:function(a){h(this);this.setStartAfter(a);this.collapse(!0)},getName:function(){return"DomRange"},
93
+ equals:function(a){return A.rangesEqual(this,a)},isValid:function(){return F(this)},inspect:function(){return k(this)}};I(A,P,function(a){h(a);a.startContainer=a.startOffset=a.endContainer=a.endOffset=null;a.collapsed=a.commonAncestorContainer=null;t(a,"detach",null);a._listeners=null});d.rangePrototype=H.prototype;A.rangeProperties=U;A.RangeIterator=a;A.copyComparisonConstants=E;A.createPrototypeRange=I;A.inspect=k;A.getRangeDocument=m;A.rangesEqual=function(a,c){return a.startContainer===c.startContainer&&
94
+ a.startOffset===c.startOffset&&a.endContainer===c.endContainer&&a.endOffset===c.endOffset};d.DomRange=A;d.RangeException=b});
95
+ rangy.createModule("WrappedRange",function(d){function q(d,f,i,l){var k=d.duplicate();k.collapse(i);var a=k.parentElement();r.isAncestorOf(f,a,!0)||(a=f);if(!a.canHaveHTML)return new s(a.parentNode,r.getNodeIndex(a));var f=r.getDocument(a).createElement("span"),b,c=i?"StartToStart":"StartToEnd";do a.insertBefore(f,f.previousSibling),k.moveToElementText(f);while(0<(b=k.compareEndPoints(c,d))&&f.previousSibling);c=f.nextSibling;if(-1==b&&c&&r.isCharacterDataNode(c)){k.setEndPoint(i?"EndToStart":"EndToEnd",
96
+ d);if(/[\r\n]/.test(c.data)){a=k.duplicate();i=a.text.replace(/\r\n/g,"\r").length;for(i=a.moveStart("character",i);-1==a.compareEndPoints("StartToEnd",a);)i++,a.moveStart("character",1)}else i=k.text.length;a=new s(c,i)}else c=(l||!i)&&f.previousSibling,a=(i=(l||i)&&f.nextSibling)&&r.isCharacterDataNode(i)?new s(i,0):c&&r.isCharacterDataNode(c)?new s(c,c.length):new s(a,r.getNodeIndex(f));f.parentNode.removeChild(f);return a}function m(d,f){var i,l,k=d.offset,a=r.getDocument(d.node),b=a.body.createTextRange(),
97
+ c=r.isCharacterDataNode(d.node);c?(i=d.node,l=i.parentNode):(i=d.node.childNodes,i=k<i.length?i[k]:null,l=d.node);a=a.createElement("span");a.innerHTML="&#feff;";i?l.insertBefore(a,i):l.appendChild(a);b.moveToElementText(a);b.collapse(!f);l.removeChild(a);if(c)b[f?"moveStart":"moveEnd"]("character",k);return b}d.requireModules(["DomUtil","DomRange"]);var t,r=d.dom,s=r.DomPosition,f=d.DomRange;if(d.features.implementsDomRange&&(!d.features.implementsTextRange||!d.config.preferTextRange))(function(){function p(a){for(var b=
98
+ i.length,d;b--;)d=i[b],a[d]=a.nativeRange[d]}var o,i=f.rangeProperties,l;t=function(a){if(!a)throw Error("Range must be specified");this.nativeRange=a;p(this)};f.createPrototypeRange(t,function(a,b,d,h,f){var p=a.endContainer!==h||a.endOffset!=f;if(a.startContainer!==b||a.startOffset!=d||p)a.setEnd(h,f),a.setStart(b,d)},function(a){a.nativeRange.detach();a.detached=!0;for(var b=i.length,d;b--;)d=i[b],a[d]=null});o=t.prototype;o.selectNode=function(a){this.nativeRange.selectNode(a);p(this)};o.deleteContents=
99
+ function(){this.nativeRange.deleteContents();p(this)};o.extractContents=function(){var a=this.nativeRange.extractContents();p(this);return a};o.cloneContents=function(){return this.nativeRange.cloneContents()};o.surroundContents=function(a){this.nativeRange.surroundContents(a);p(this)};o.collapse=function(a){this.nativeRange.collapse(a);p(this)};o.cloneRange=function(){return new t(this.nativeRange.cloneRange())};o.refresh=function(){p(this)};o.toString=function(){return this.nativeRange.toString()};
100
+ var k=document.createTextNode("test");r.getBody(document).appendChild(k);var a=document.createRange();a.setStart(k,0);a.setEnd(k,0);try{a.setStart(k,1),o.setStart=function(a,b){this.nativeRange.setStart(a,b);p(this)},o.setEnd=function(a,b){this.nativeRange.setEnd(a,b);p(this)},l=function(a){return function(b){this.nativeRange[a](b);p(this)}}}catch(b){o.setStart=function(a,b){try{this.nativeRange.setStart(a,b)}catch(d){this.nativeRange.setEnd(a,b),this.nativeRange.setStart(a,b)}p(this)},o.setEnd=function(a,
101
+ b){try{this.nativeRange.setEnd(a,b)}catch(d){this.nativeRange.setStart(a,b),this.nativeRange.setEnd(a,b)}p(this)},l=function(a,b){return function(d){try{this.nativeRange[a](d)}catch(h){this.nativeRange[b](d),this.nativeRange[a](d)}p(this)}}}o.setStartBefore=l("setStartBefore","setEndBefore");o.setStartAfter=l("setStartAfter","setEndAfter");o.setEndBefore=l("setEndBefore","setStartBefore");o.setEndAfter=l("setEndAfter","setStartAfter");a.selectNodeContents(k);o.selectNodeContents=a.startContainer==
102
+ k&&a.endContainer==k&&0==a.startOffset&&a.endOffset==k.length?function(a){this.nativeRange.selectNodeContents(a);p(this)}:function(a){this.setStart(a,0);this.setEnd(a,f.getEndOffset(a))};a.selectNodeContents(k);a.setEnd(k,3);l=document.createRange();l.selectNodeContents(k);l.setEnd(k,4);l.setStart(k,2);o.compareBoundaryPoints=-1==a.compareBoundaryPoints(a.START_TO_END,l)&1==a.compareBoundaryPoints(a.END_TO_START,l)?function(a,b){b=b.nativeRange||b;a==b.START_TO_END?a=b.END_TO_START:a==b.END_TO_START&&
103
+ (a=b.START_TO_END);return this.nativeRange.compareBoundaryPoints(a,b)}:function(a,b){return this.nativeRange.compareBoundaryPoints(a,b.nativeRange||b)};d.util.isHostMethod(a,"createContextualFragment")&&(o.createContextualFragment=function(a){return this.nativeRange.createContextualFragment(a)});r.getBody(document).removeChild(k);a.detach();l.detach()})(),d.createNativeRange=function(d){return(d||document).createRange()};else if(d.features.implementsTextRange){t=function(d){this.textRange=d;this.refresh()};
104
+ t.prototype=new f(document);t.prototype.refresh=function(){var d,f,i=this.textRange;d=i.parentElement();var l=i.duplicate();l.collapse(!0);f=l.parentElement();l=i.duplicate();l.collapse(!1);i=l.parentElement();f=f==i?f:r.getCommonAncestor(f,i);f=f==d?f:r.getCommonAncestor(d,f);0==this.textRange.compareEndPoints("StartToEnd",this.textRange)?f=d=q(this.textRange,f,!0,!0):(d=q(this.textRange,f,!0,!1),f=q(this.textRange,f,!1,!1));this.setStart(d.node,d.offset);this.setEnd(f.node,f.offset)};f.copyComparisonConstants(t);
105
+ var v=function(){return this}();"undefined"==typeof v.Range&&(v.Range=t);d.createNativeRange=function(d){return(d||document).body.createTextRange()}}d.features.implementsTextRange&&(t.rangeToTextRange=function(d){if(d.collapsed)return m(new s(d.startContainer,d.startOffset),!0);var f=m(new s(d.startContainer,d.startOffset),!0),i=m(new s(d.endContainer,d.endOffset),!1),d=r.getDocument(d.startContainer).body.createTextRange();d.setEndPoint("StartToStart",f);d.setEndPoint("EndToEnd",i);return d});t.prototype.getName=
106
+ function(){return"WrappedRange"};d.WrappedRange=t;d.createRange=function(f){return new t(d.createNativeRange(f||document))};d.createRangyRange=function(d){return new f(d||document)};d.createIframeRange=function(f){return d.createRange(r.getIframeDocument(f))};d.createIframeRangyRange=function(f){return d.createRangyRange(r.getIframeDocument(f))};d.addCreateMissingNativeApiListener(function(f){f=f.document;if(typeof f.createRange=="undefined")f.createRange=function(){return d.createRange(this)};f=
107
+ f=null})});
108
+ rangy.createModule("WrappedSelection",function(d,q){function m(a){return(a||window).getSelection()}function t(a){return(a||window).document.selection}function r(a,c,b){var d=b?"end":"start",b=b?"start":"end";a.anchorNode=c[d+"Container"];a.anchorOffset=c[d+"Offset"];a.focusNode=c[b+"Container"];a.focusOffset=c[b+"Offset"]}function s(a){a.anchorNode=a.focusNode=null;a.anchorOffset=a.focusOffset=0;a.rangeCount=0;a.isCollapsed=!0;a._ranges.length=0}function f(a){var b;a instanceof g?(b=a._selectionNativeRange,b||
109
+ (b=d.createNativeRange(c.getDocument(a.startContainer)),b.setEnd(a.endContainer,a.endOffset),b.setStart(a.startContainer,a.startOffset),a._selectionNativeRange=b,a.attachListener("detach",function(){this._selectionNativeRange=null}))):a instanceof h?b=a.nativeRange:d.features.implementsDomRange&&a instanceof c.getWindow(a.startContainer).Range&&(b=a);return b}function v(a){var b=a.getNodes(),d;a:if(!b.length||1!=b[0].nodeType)d=!1;else{d=1;for(var e=b.length;d<e;++d)if(!c.isAncestorOf(b[0],b[d])){d=
110
+ !1;break a}d=!0}if(!d)throw Error("getSingleElementFromRange: range "+a.inspect()+" did not consist of a single element");return b[0]}function p(a,c){var b=new h(c);a._ranges=[b];r(a,b,!1);a.rangeCount=1;a.isCollapsed=b.collapsed}function o(a){a._ranges.length=0;if("None"==a.docSelection.type)s(a);else{var b=a.docSelection.createRange();if(b&&"undefined"!=typeof b.text)p(a,b);else{a.rangeCount=b.length;for(var e,g=c.getDocument(b.item(0)),u=0;u<a.rangeCount;++u)e=d.createRange(g),e.selectNode(b.item(u)),
111
+ a._ranges.push(e);a.isCollapsed=1==a.rangeCount&&a._ranges[0].collapsed;r(a,a._ranges[a.rangeCount-1],!1)}}}function i(a,b){for(var d=a.docSelection.createRange(),e=v(b),g=c.getDocument(d.item(0)),g=c.getBody(g).createControlRange(),u=0,h=d.length;u<h;++u)g.add(d.item(u));try{g.add(e)}catch(f){throw Error("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)");}g.select();o(a)}function l(a,c,b){this.nativeSelection=a;this.docSelection=c;this._ranges=
112
+ [];this.win=b;this.refresh()}function k(a,b){for(var d=c.getDocument(b[0].startContainer),d=c.getBody(d).createControlRange(),e=0,g;e<rangeCount;++e){g=v(b[e]);try{d.add(g)}catch(u){throw Error("setRanges(): Element within the one of the specified Ranges could not be added to control selection (does it have layout?)");}}d.select();o(a)}function a(a,b){if(a.anchorNode&&c.getDocument(a.anchorNode)!==c.getDocument(b))throw new n("WRONG_DOCUMENT_ERR");}function b(a){var c=[],b=new C(a.anchorNode,a.anchorOffset),
113
+ d=new C(a.focusNode,a.focusOffset),e="function"==typeof a.getName?a.getName():"Selection";if("undefined"!=typeof a.rangeCount)for(var u=0,h=a.rangeCount;u<h;++u)c[u]=g.inspect(a.getRangeAt(u));return"["+e+"(Ranges: "+c.join(", ")+")(anchor: "+b.inspect()+", focus: "+d.inspect()+"]"}d.requireModules(["DomUtil","DomRange","WrappedRange"]);d.config.checkSelectionRanges=!0;var c=d.dom,e=d.util,g=d.DomRange,h=d.WrappedRange,n=d.DOMException,C=c.DomPosition,B,z,y=d.util.isHostMethod(window,"getSelection"),
114
+ F=d.util.isHostObject(document,"selection"),w=F&&(!y||d.config.preferTextRange);w?(B=t,d.isSelectionValid=function(a){var a=(a||window).document,b=a.selection;return"None"!=b.type||c.getDocument(b.createRange().parentElement())==a}):y?(B=m,d.isSelectionValid=function(){return!0}):q.fail("Neither document.selection or window.getSelection() detected.");d.getNativeSelection=B;var y=B(),H=d.createNativeRange(document),G=c.getBody(document),E=e.areHostObjects(y,e.areHostProperties(y,["anchorOffset","focusOffset"]));
115
+ d.features.selectionHasAnchorAndFocus=E;var u=e.isHostMethod(y,"extend");d.features.selectionHasExtend=u;var I="number"==typeof y.rangeCount;d.features.selectionHasRangeCount=I;var N=!1,P=!0;e.areHostMethods(y,["addRange","getRangeAt","removeAllRanges"])&&"number"==typeof y.rangeCount&&d.features.implementsDomRange&&function(){var a=document.createElement("iframe");a.frameBorder=0;a.style.position="absolute";a.style.left="-10000px";G.appendChild(a);var b=c.getIframeDocument(a);b.open();b.write("<html><head></head><body>12</body></html>");
116
+ b.close();var d=c.getIframeWindow(a).getSelection(),e=b.documentElement.lastChild.firstChild,b=b.createRange();b.setStart(e,1);b.collapse(true);d.addRange(b);P=d.rangeCount==1;d.removeAllRanges();var g=b.cloneRange();b.setStart(e,0);g.setEnd(e,2);d.addRange(b);d.addRange(g);N=d.rangeCount==2;b.detach();g.detach();G.removeChild(a)}();d.features.selectionSupportsMultipleRanges=N;d.features.collapsedNonEditableSelectionsSupported=P;var A=!1,j;G&&e.isHostMethod(G,"createControlRange")&&(j=G.createControlRange(),
117
+ e.areHostProperties(j,["item","add"])&&(A=!0));d.features.implementsControlRange=A;z=E?function(a){return a.anchorNode===a.focusNode&&a.anchorOffset===a.focusOffset}:function(a){return a.rangeCount?a.getRangeAt(a.rangeCount-1).collapsed:false};var J;e.isHostMethod(y,"getRangeAt")?J=function(a,b){try{return a.getRangeAt(b)}catch(c){return null}}:E&&(J=function(a){var b=c.getDocument(a.anchorNode),b=d.createRange(b);b.setStart(a.anchorNode,a.anchorOffset);b.setEnd(a.focusNode,a.focusOffset);if(b.collapsed!==
118
+ this.isCollapsed){b.setStart(a.focusNode,a.focusOffset);b.setEnd(a.anchorNode,a.anchorOffset)}return b});d.getSelection=function(a){var a=a||window,b=a._rangySelection,c=B(a),d=F?t(a):null;if(b){b.nativeSelection=c;b.docSelection=d;b.refresh(a)}else{b=new l(c,d,a);a._rangySelection=b}return b};d.getIframeSelection=function(a){return d.getSelection(c.getIframeWindow(a))};j=l.prototype;if(!w&&E&&e.areHostMethods(y,["removeAllRanges","addRange"])){j.removeAllRanges=function(){this.nativeSelection.removeAllRanges();
119
+ s(this)};var D=function(a,b){var c=g.getRangeDocument(b),c=d.createRange(c);c.collapseToPoint(b.endContainer,b.endOffset);a.nativeSelection.addRange(f(c));a.nativeSelection.extend(b.startContainer,b.startOffset);a.refresh()};j.addRange=I?function(a,b){if(A&&F&&this.docSelection.type=="Control")i(this,a);else if(b&&u)D(this,a);else{var c;if(N)c=this.rangeCount;else{this.removeAllRanges();c=0}this.nativeSelection.addRange(f(a));this.rangeCount=this.nativeSelection.rangeCount;if(this.rangeCount==c+1){if(d.config.checkSelectionRanges)(c=
120
+ J(this.nativeSelection,this.rangeCount-1))&&!g.rangesEqual(c,a)&&(a=new h(c));this._ranges[this.rangeCount-1]=a;r(this,a,L(this.nativeSelection));this.isCollapsed=z(this)}else this.refresh()}}:function(a,b){if(b&&u)D(this,a);else{this.nativeSelection.addRange(f(a));this.refresh()}};j.setRanges=function(a){if(A&&a.length>1)k(this,a);else{this.removeAllRanges();for(var b=0,c=a.length;b<c;++b)this.addRange(a[b])}}}else if(e.isHostMethod(y,"empty")&&e.isHostMethod(H,"select")&&A&&w)j.removeAllRanges=
121
+ function(){try{this.docSelection.empty();if(this.docSelection.type!="None"){var a;if(this.anchorNode)a=c.getDocument(this.anchorNode);else if(this.docSelection.type=="Control"){var b=this.docSelection.createRange();b.length&&(a=c.getDocument(b.item(0)).body.createTextRange())}if(a){a.body.createTextRange().select();this.docSelection.empty()}}}catch(d){}s(this)},j.addRange=function(a){if(this.docSelection.type=="Control")i(this,a);else{h.rangeToTextRange(a).select();this._ranges[0]=a;this.rangeCount=
122
+ 1;this.isCollapsed=this._ranges[0].collapsed;r(this,a,false)}},j.setRanges=function(a){this.removeAllRanges();var b=a.length;b>1?k(this,a):b&&this.addRange(a[0])};else return q.fail("No means of selecting a Range or TextRange was found"),!1;j.getRangeAt=function(a){if(a<0||a>=this.rangeCount)throw new n("INDEX_SIZE_ERR");return this._ranges[a]};var K;if(w)K=function(a){var b;if(d.isSelectionValid(a.win))b=a.docSelection.createRange();else{b=c.getBody(a.win.document).createTextRange();b.collapse(true)}a.docSelection.type==
123
+ "Control"?o(a):b&&typeof b.text!="undefined"?p(a,b):s(a)};else if(e.isHostMethod(y,"getRangeAt")&&"number"==typeof y.rangeCount)K=function(a){if(A&&F&&a.docSelection.type=="Control")o(a);else{a._ranges.length=a.rangeCount=a.nativeSelection.rangeCount;if(a.rangeCount){for(var b=0,c=a.rangeCount;b<c;++b)a._ranges[b]=new d.WrappedRange(a.nativeSelection.getRangeAt(b));r(a,a._ranges[a.rangeCount-1],L(a.nativeSelection));a.isCollapsed=z(a)}else s(a)}};else if(E&&"boolean"==typeof y.isCollapsed&&"boolean"==
124
+ typeof H.collapsed&&d.features.implementsDomRange)K=function(a){var b;b=a.nativeSelection;if(b.anchorNode){b=J(b,0);a._ranges=[b];a.rangeCount=1;b=a.nativeSelection;a.anchorNode=b.anchorNode;a.anchorOffset=b.anchorOffset;a.focusNode=b.focusNode;a.focusOffset=b.focusOffset;a.isCollapsed=z(a)}else s(a)};else return q.fail("No means of obtaining a Range or TextRange from the user's selection was found"),!1;j.refresh=function(a){var b=a?this._ranges.slice(0):null;K(this);if(a){a=b.length;if(a!=this._ranges.length)return false;
125
+ for(;a--;)if(!g.rangesEqual(b[a],this._ranges[a]))return false;return true}};var M=function(a,b){var c=a.getAllRanges(),d=false;a.removeAllRanges();for(var e=0,g=c.length;e<g;++e)d||b!==c[e]?a.addRange(c[e]):d=true;a.rangeCount||s(a)};j.removeRange=A?function(a){if(this.docSelection.type=="Control"){for(var b=this.docSelection.createRange(),a=v(a),d=c.getDocument(b.item(0)),d=c.getBody(d).createControlRange(),e,g=false,u=0,h=b.length;u<h;++u){e=b.item(u);e!==a||g?d.add(b.item(u)):g=true}d.select();
126
+ o(this)}else M(this,a)}:function(a){M(this,a)};var L;!w&&E&&d.features.implementsDomRange?(L=function(a){var b=false;a.anchorNode&&(b=c.comparePoints(a.anchorNode,a.anchorOffset,a.focusNode,a.focusOffset)==1);return b},j.isBackwards=function(){return L(this)}):L=j.isBackwards=function(){return false};j.toString=function(){for(var a=[],b=0,c=this.rangeCount;b<c;++b)a[b]=""+this._ranges[b];return a.join("")};j.collapse=function(b,e){a(this,b);var g=d.createRange(c.getDocument(b));g.collapseToPoint(b,
127
+ e);this.removeAllRanges();this.addRange(g);this.isCollapsed=true};j.collapseToStart=function(){if(this.rangeCount){var a=this._ranges[0];this.collapse(a.startContainer,a.startOffset)}else throw new n("INVALID_STATE_ERR");};j.collapseToEnd=function(){if(this.rangeCount){var a=this._ranges[this.rangeCount-1];this.collapse(a.endContainer,a.endOffset)}else throw new n("INVALID_STATE_ERR");};j.selectAllChildren=function(b){a(this,b);var e=d.createRange(c.getDocument(b));e.selectNodeContents(b);this.removeAllRanges();
128
+ this.addRange(e)};j.deleteFromDocument=function(){if(A&&F&&this.docSelection.type=="Control"){for(var a=this.docSelection.createRange(),b;a.length;){b=a.item(0);a.remove(b);b.parentNode.removeChild(b)}this.refresh()}else if(this.rangeCount){a=this.getAllRanges();this.removeAllRanges();b=0;for(var c=a.length;b<c;++b)a[b].deleteContents();this.addRange(a[c-1])}};j.getAllRanges=function(){return this._ranges.slice(0)};j.setSingleRange=function(a){this.setRanges([a])};j.containsNode=function(a,b){for(var c=
129
+ 0,d=this._ranges.length;c<d;++c)if(this._ranges[c].containsNode(a,b))return true;return false};j.toHtml=function(){var a="";if(this.rangeCount){for(var a=g.getRangeDocument(this._ranges[0]).createElement("div"),b=0,c=this._ranges.length;b<c;++b)a.appendChild(this._ranges[b].cloneContents());a=a.innerHTML}return a};j.getName=function(){return"WrappedSelection"};j.inspect=function(){return b(this)};j.detach=function(){this.win=this.anchorNode=this.focusNode=this.win._rangySelection=null};l.inspect=
130
+ b;d.Selection=l;d.selectionPrototype=j;d.addCreateMissingNativeApiListener(function(a){if(typeof a.getSelection=="undefined")a.getSelection=function(){return d.getSelection(this)};a=null})});
131
+ rangy.createModule("CssClassApplier",function(d,q){function m(a,b){return a.className&&RegExp("(?:^|\\s)"+b+"(?:\\s|$)").test(a.className)}function t(a,b){a.className?m(a,b)||(a.className+=" "+b):a.className=b}function r(a){return a.split(/\s+/).sort().join(" ")}function s(a,b){return r(a.className)==r(b.className)}function f(a){for(var b=a.parentNode;a.hasChildNodes();)b.insertBefore(a.firstChild,a);b.removeChild(a)}function v(a,b){var c=a.cloneRange();c.selectNodeContents(b);var d=c.intersection(a),
132
+ d=d?d.toString():"";c.detach();return""!=d}function p(a){return a.getNodes([3],function(b){return v(a,b)})}function o(a,b){if(a.attributes.length!=b.attributes.length)return!1;for(var c=0,d=a.attributes.length,e,g;c<d;++c)if(e=a.attributes[c],g=e.name,"class"!=g&&(g=b.attributes.getNamedItem(g),e.specified!=g.specified||e.specified&&e.nodeValue!==g.nodeValue))return!1;return!0}function i(a,b){for(var c=0,d=a.attributes.length,e;c<d;++c)if(e=a.attributes[c].name,(!b||!n.arrayContains(b,e))&&a.attributes[c].specified&&
133
+ "class"!=e)return!0;return!1}function l(a){var b;return a&&1==a.nodeType&&((b=a.parentNode)&&9==b.nodeType&&"on"==b.designMode||z(a)&&!z(a.parentNode))}function k(a){return(z(a)||1!=a.nodeType&&z(a.parentNode))&&!l(a)}function a(a){return a&&1==a.nodeType&&!y.test(B(a,"display"))}function b(b){if(0==b.data.length)return!0;if(F.test(b.data))return!1;switch(B(b.parentNode,"whiteSpace")){case "pre":case "pre-wrap":case "-moz-pre-wrap":return!1;case "pre-line":if(/[\r\n]/.test(b.data))return!1}return a(b.previousSibling)||
134
+ a(b.nextSibling)}function c(a,b,d,e){var g,h=0==d;if(n.isAncestorOf(b,a))return a;if(n.isCharacterDataNode(b))if(0==d)d=n.getNodeIndex(b),b=b.parentNode;else if(d==b.length)d=n.getNodeIndex(b)+1,b=b.parentNode;else throw q.createError("splitNodeAt should not be called with offset in the middle of a data node ("+d+" in "+b.data);if(n.isCharacterDataNode(b)?0==d?b.previousSibling:d==b.length?b.nextSibling:1:0<d&&d<b.childNodes.length){if(!g){g=b.cloneNode(!1);for(g.id&&g.removeAttribute("id");h=b.childNodes[d];)g.appendChild(h);
135
+ n.insertAfter(g,b)}return b==a?g:c(a,g.parentNode,n.getNodeIndex(g),e)}return a!=b?(g=b.parentNode,b=n.getNodeIndex(b),h||b++,c(a,g,b,e)):a}function e(a){var b=a?"nextSibling":"previousSibling";return function(c,d){var e=c.parentNode,g=c[b];if(g){if(g&&3==g.nodeType)return g}else if(d&&(g=e[b])&&1==g.nodeType&&e.tagName==g.tagName&&s(e,g)&&o(e,g))return g[a?"firstChild":"lastChild"];return null}}function g(a){this.firstTextNode=(this.isElementMerge=1==a.nodeType)?a.lastChild:a;this.textNodes=[this.firstTextNode]}
136
+ function h(a,b,c){this.cssClass=a;var d,e,g=null;if("object"==typeof b&&null!==b){c=b.tagNames;g=b.elementProperties;for(d=0;e=G[d++];)b.hasOwnProperty(e)&&(this[e]=b[e]);d=b.normalize}else d=b;this.normalize="undefined"==typeof d?!0:d;this.attrExceptions=[];d=document.createElement(this.elementTagName);this.elementProperties={};for(var h in g)g.hasOwnProperty(h)&&(E.hasOwnProperty(h)&&(h=E[h]),d[h]=g[h],this.elementProperties[h]=d[h],this.attrExceptions.push(h));this.elementSortedClassName=this.elementProperties.hasOwnProperty("className")?
137
+ r(this.elementProperties.className+" "+a):a;this.applyToAnyTagName=!1;a=typeof c;if("string"==a)"*"==c?this.applyToAnyTagName=!0:this.tagNames=c.toLowerCase().replace(/^\s\s*/,"").replace(/\s\s*$/,"").split(/\s*,\s*/);else if("object"==a&&"number"==typeof c.length){this.tagNames=[];d=0;for(a=c.length;d<a;++d)"*"==c[d]?this.applyToAnyTagName=!0:this.tagNames.push(c[d].toLowerCase())}else this.tagNames=[this.elementTagName]}d.requireModules(["WrappedSelection","WrappedRange"]);var n=d.dom,C=function(){function a(b,
138
+ c,d){return c&&d?" ":""}return function(b,c){b.className&&(b.className=b.className.replace(RegExp("(?:^|\\s)"+c+"(?:\\s|$)"),a))}}(),B;"undefined"!=typeof window.getComputedStyle?B=function(a,b){return n.getWindow(a).getComputedStyle(a,null)[b]}:"undefined"!=typeof document.documentElement.currentStyle?B=function(a,b){return a.currentStyle[b]}:q.fail("No means of obtaining computed style properties found");var z;(function(){z="boolean"==typeof document.createElement("div").isContentEditable?function(a){return a&&
139
+ 1==a.nodeType&&a.isContentEditable}:function(a){return!a||1!=a.nodeType||"false"==a.contentEditable?!1:"true"==a.contentEditable||z(a.parentNode)}})();var y=/^inline(-block|-table)?$/i,F=/[^\r\n\t\f \u200B]/,w=e(!1),H=e(!0);g.prototype={doMerge:function(){for(var a=[],b,c,d=0,e=this.textNodes.length;d<e;++d)b=this.textNodes[d],c=b.parentNode,a[d]=b.data,d&&(c.removeChild(b),c.hasChildNodes()||c.parentNode.removeChild(c));return this.firstTextNode.data=a=a.join("")},getLength:function(){for(var a=
140
+ this.textNodes.length,b=0;a--;)b+=this.textNodes[a].length;return b},toString:function(){for(var a=[],b=0,c=this.textNodes.length;b<c;++b)a[b]="'"+this.textNodes[b].data+"'";return"[Merge("+a.join(",")+")]"}};var G=["elementTagName","ignoreWhiteSpace","applyToEditableOnly"],E={"class":"className"};h.prototype={elementTagName:"span",elementProperties:{},ignoreWhiteSpace:!0,applyToEditableOnly:!1,hasClass:function(a){return 1==a.nodeType&&n.arrayContains(this.tagNames,a.tagName.toLowerCase())&&m(a,
141
+ this.cssClass)},getSelfOrAncestorWithClass:function(a){for(;a;){if(this.hasClass(a,this.cssClass))return a;a=a.parentNode}return null},isModifiable:function(a){return!this.applyToEditableOnly||k(a)},isIgnorableWhiteSpaceNode:function(a){return this.ignoreWhiteSpace&&a&&3==a.nodeType&&b(a)},postApply:function(a,b,c){for(var d=a[0],e=a[a.length-1],h=[],f,n=d,p=e,i=0,k=e.length,l,m,o=0,C=a.length;o<C;++o)if(l=a[o],m=w(l,!c)){if(f||(f=new g(m),h.push(f)),f.textNodes.push(l),l===d&&(n=f.firstTextNode,
142
+ i=n.length),l===e)p=f.firstTextNode,k=f.getLength()}else f=null;if(a=H(e,!c))f||(f=new g(e),h.push(f)),f.textNodes.push(a);if(h.length){o=0;for(C=h.length;o<C;++o)h[o].doMerge();b.setStart(n,i);b.setEnd(p,k)}},createContainer:function(a){a=a.createElement(this.elementTagName);d.util.extend(a,this.elementProperties);t(a,this.cssClass);return a},applyToTextNode:function(a){var b=a.parentNode;1==b.childNodes.length&&n.arrayContains(this.tagNames,b.tagName.toLowerCase())?t(b,this.cssClass):(b=this.createContainer(n.getDocument(a)),
143
+ a.parentNode.insertBefore(b,a),b.appendChild(a))},isRemovable:function(a){var b;if(b=a.tagName.toLowerCase()==this.elementTagName)if(b=r(a.className)==this.elementSortedClassName){var c;a:{b=this.elementProperties;for(c in b)if(b.hasOwnProperty(c)&&a[c]!==b[c]){c=!1;break a}c=!0}b=c&&!i(a,this.attrExceptions)&&this.isModifiable(a)}return b},undoToTextNode:function(a,b,d){b.containsNode(d)||(a=b.cloneRange(),a.selectNode(d),a.isPointInRange(b.endContainer,b.endOffset)&&(c(d,b.endContainer,b.endOffset,
144
+ [b]),b.setEndAfter(d)),a.isPointInRange(b.startContainer,b.startOffset)&&(d=c(d,b.startContainer,b.startOffset,[b])));this.isRemovable(d)?f(d):C(d,this.cssClass)},applyToRange:function(a){a.splitBoundaries();var b=p(a);if(b.length){for(var c,d=0,e=b.length;d<e;++d)c=b[d],!this.isIgnorableWhiteSpaceNode(c)&&!this.getSelfOrAncestorWithClass(c)&&this.isModifiable(c)&&this.applyToTextNode(c);a.setStart(b[0],0);c=b[b.length-1];a.setEnd(c,c.length);this.normalize&&this.postApply(b,a,!1)}},applyToSelection:function(a){var a=
145
+ d.getSelection(a||window),b,c=a.getAllRanges();a.removeAllRanges();for(var e=c.length;e--;)b=c[e],this.applyToRange(b),a.addRange(b)},undoToRange:function(a){a.splitBoundaries();var b=p(a),c,d,e=b[b.length-1];if(b.length){for(var g=0,h=b.length;g<h;++g)c=b[g],(d=this.getSelfOrAncestorWithClass(c))&&this.isModifiable(c)&&this.undoToTextNode(c,a,d),a.setStart(b[0],0),a.setEnd(e,e.length);this.normalize&&this.postApply(b,a,!0)}},undoToSelection:function(a){var a=d.getSelection(a||window),b=a.getAllRanges(),
146
+ c;a.removeAllRanges();for(var e=0,g=b.length;e<g;++e)c=b[e],this.undoToRange(c),a.addRange(c)},getTextSelectedByRange:function(a,b){var c=b.cloneRange();c.selectNodeContents(a);var d=c.intersection(b),d=d?d.toString():"";c.detach();return d},isAppliedToRange:function(a){if(a.collapsed)return!!this.getSelfOrAncestorWithClass(a.commonAncestorContainer);for(var b=a.getNodes([3]),c=0,d;d=b[c++];)if(!this.isIgnorableWhiteSpaceNode(d)&&v(a,d)&&this.isModifiable(d)&&!this.getSelfOrAncestorWithClass(d))return!1;
147
+ return!0},isAppliedToSelection:function(a){for(var a=d.getSelection(a||window).getAllRanges(),b=a.length;b--;)if(!this.isAppliedToRange(a[b]))return!1;return!0},toggleRange:function(a){this.isAppliedToRange(a)?this.undoToRange(a):this.applyToRange(a)},toggleSelection:function(a){this.isAppliedToSelection(a)?this.undoToSelection(a):this.applyToSelection(a)},detach:function(){}};h.util={hasClass:m,addClass:t,removeClass:C,hasSameClasses:s,replaceWithOwnChildren:f,elementsHaveSameNonClassAttributes:o,
148
+ elementHasNonClassAttributes:i,splitNodeAt:c,isEditableElement:z,isEditingHost:l,isEditable:k};d.CssClassApplier=h;d.createCssClassApplier=function(a,b,c){return new h(a,b,c)}});
149
+ rangy.createModule("SaveRestore",function(d,q){function m(d,m){var i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),l,k=f.getDocument(d.startContainer),a=d.cloneRange();a.collapse(m);l=k.createElement("span");l.id=i;l.style.lineHeight="0";l.style.display="none";l.className="rangySelectionBoundary";l.appendChild(k.createTextNode(v));a.insertNode(l);a.detach();return l}function t(d,f,i,l){(d=(d||document).getElementById(i))?(f[l?"setStartBefore":"setEndBefore"](d),d.parentNode.removeChild(d)):
150
+ q.warn("Marker element has been removed. Cannot restore selection.")}function r(d,f){return f.compareBoundaryPoints(d.START_TO_START,d)}function s(d,f){var i=(d||document).getElementById(f);i&&i.parentNode.removeChild(i)}d.requireModules(["DomUtil","DomRange","WrappedRange"]);var f=d.dom,v="\ufeff";d.saveSelection=function(f){var f=f||window,o=f.document;if(d.isSelectionValid(f)){var i=d.getSelection(f),l=i.getAllRanges(),k=[],a,b;l.sort(r);for(var c=0,e=l.length;c<e;++c)a=l[c],a.collapsed?(b=m(a,
151
+ !1),k.push({markerId:b.id,collapsed:!0})):(b=m(a,!1),a=m(a,!0),k[c]={startMarkerId:a.id,endMarkerId:b.id,collapsed:!1,backwards:1==l.length&&i.isBackwards()});for(c=e-1;0<=c;--c)a=l[c],a.collapsed?a.collapseBefore((o||document).getElementById(k[c].markerId)):(a.setEndBefore((o||document).getElementById(k[c].endMarkerId)),a.setStartAfter((o||document).getElementById(k[c].startMarkerId)));i.setRanges(l);return{win:f,doc:o,rangeInfos:k,restored:!1}}q.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus.")};
152
+ d.restoreSelection=function(f,m){if(!f.restored){for(var i=f.rangeInfos,l=d.getSelection(f.win),k=[],a=i.length,b=a-1,c,e;0<=b;--b){c=i[b];e=d.createRange(f.doc);if(c.collapsed)if(c=(f.doc||document).getElementById(c.markerId)){c.style.display="inline";var g=c.previousSibling;g&&3==g.nodeType?(c.parentNode.removeChild(c),e.collapseToPoint(g,g.length)):(e.collapseBefore(c),c.parentNode.removeChild(c))}else q.warn("Marker element has been removed. Cannot restore selection.");else t(f.doc,e,c.startMarkerId,
153
+ !0),t(f.doc,e,c.endMarkerId,!1);1==a&&e.normalizeBoundaries();k[b]=e}1==a&&m&&d.features.selectionHasExtend&&i[0].backwards?(l.removeAllRanges(),l.addRange(k[0],!0)):l.setRanges(k);f.restored=!0}};d.removeMarkerElement=s;d.removeMarkers=function(d){for(var f=d.rangeInfos,i=0,l=f.length,k;i<l;++i)k=f[i],k.collapsed?s(d.doc,k.markerId):(s(d.doc,k.startMarkerId),s(d.doc,k.endMarkerId))}});
154
+ rangy.createModule("Serializer",function(d,q){function m(a,b){var b=b||[],c=a.nodeType,d=a.childNodes,g=d.length,h=[c,a.nodeName,g].join(":"),f="",i="";switch(c){case 3:f=a.nodeValue.replace(/</g,"&lt;").replace(/>/g,"&gt;");break;case 8:f="<\!--"+a.nodeValue.replace(/</g,"&lt;").replace(/>/g,"&gt;")+"--\>";break;default:f="<"+h+">",i="</>"}f&&b.push(f);for(c=0;c<g;++c)m(d[c],b);i&&b.push(i);return b}function t(a){a=m(a).join("");return l(a).toString(16)}function r(a,b,c){for(var d=[],g=a,c=c||k.getDocument(a).documentElement;g&&
155
+ g!=c;)d.push(k.getNodeIndex(g,!0)),g=g.parentNode;return d.join("/")+":"+b}function s(a,b,c){b?c||k.getDocument(b):b=(c||document).documentElement;for(var a=a.split(":"),c=a[0]?a[0].split("/"):[],d=c.length,g;d--;)if(g=parseInt(c[d],10),g<b.childNodes.length)b=b.childNodes[parseInt(c[d],10)];else throw q.createError("deserializePosition failed: node "+k.inspectNode(b)+" has no child with index "+g+", "+d);return new k.DomPosition(b,parseInt(a[1],10))}function f(a,b,c){c=c||d.DomRange.getRangeDocument(a).documentElement;
156
+ if(!k.isAncestorOf(c,a.commonAncestorContainer,!0))throw Error("serializeRange: range is not wholly contained within specified root node");a=r(a.startContainer,a.startOffset,c)+","+r(a.endContainer,a.endOffset,c);b||(a+="{"+t(c)+"}");return a}function v(a,b,c){b?c=c||k.getDocument(b):(c=c||document,b=c.documentElement);var a=/^([^,]+),([^,\{]+)({([^}]+)})?$/.exec(a),e=a[4],g=t(b);if(e&&e!==t(b))throw Error("deserializeRange: checksums of serialized range root node ("+e+") and target root node ("+
157
+ g+") do not match");e=s(a[1],b,c);b=s(a[2],b,c);c=d.createRange(c);c.setStart(e.node,e.offset);c.setEnd(b.node,b.offset);return c}function p(a,b,c){b?c||k.getDocument(b):b=(c||document).documentElement;a=/^([^,]+),([^,]+)({([^}]+)})?$/.exec(a)[3];return!a||a===t(b)}function o(a,b,c){for(var a=a||d.getSelection(),a=a.getAllRanges(),e=[],g=0,h=a.length;g<h;++g)e[g]=f(a[g],b,c);return e.join("|")}function i(a,b,c){b?c=c||k.getWindow(b):(c=c||window,b=c.document.documentElement);for(var a=a.split("|"),
158
+ e=d.getSelection(c),g=[],h=0,f=a.length;h<f;++h)g[h]=v(a[h],b,c.document);e.setRanges(g);return e}d.requireModules(["WrappedSelection","WrappedRange"]);("undefined"==typeof encodeURIComponent||"undefined"==typeof decodeURIComponent)&&q.fail("Global object is missing encodeURIComponent and/or decodeURIComponent method");var l=function(){var a=null;return function(b){for(var c=[],d=0,g=b.length,h;d<g;++d)h=b.charCodeAt(d),128>h?c.push(h):2048>h?c.push(h>>6|192,h&63|128):c.push(h>>12|224,h>>6&63|128,
159
+ h&63|128);b=-1;if(!a){for(var d=[],g=0,f;256>g;++g){f=g;for(h=8;h--;)f=1==(f&1)?f>>>1^3988292384:f>>>1;d[g]=f>>>0}a=d}d=a;g=0;for(h=c.length;g<h;++g)f=(b^c[g])&255,b=b>>>8^d[f];return(b^-1)>>>0}}(),k=d.dom;d.serializePosition=r;d.deserializePosition=s;d.serializeRange=f;d.deserializeRange=v;d.canDeserializeRange=p;d.serializeSelection=o;d.deserializeSelection=i;d.canDeserializeSelection=function(a,b,c){var d;b?d=c?c.document:k.getDocument(b):b=(c||window).document.documentElement;for(var a=a.split("|"),
160
+ c=0,g=a.length;c<g;++c)if(!p(a[c],b,d))return!1;return!0};d.restoreSelectionFromCookie=function(a){var a=a||window,b;a:{b=a.document.cookie.split(/[;,]/);for(var c=0,d=b.length,g;c<d;++c)if(g=b[c].split("="),"rangySerializedSelection"==g[0].replace(/^\s+/,"")&&(g=g[1])){b=decodeURIComponent(g.replace(/\s+$/,""));break a}b=null}b&&i(b,a.doc)};d.saveSelectionCookie=function(a,b){var a=a||window,b="object"==typeof b?b:{},c=b.expires?";expires="+b.expires.toUTCString():"",e=b.path?";path="+b.path:"",
161
+ g=b.domain?";domain="+b.domain:"",f=b.secure?";secure":"",n=o(d.getSelection(a));a.document.cookie=encodeURIComponent("rangySerializedSelection")+"="+encodeURIComponent(n)+c+e+g+f};d.getElementChecksum=t});
162
+ (function(d,q,m,t){function r(a,b,c){o[a]=c;i[a]=b;p||(p=a)}function s(a){p!==a&&(p=a,d.ui.editor.eachInstance(function(){this.reinit()}))}function f(a,b){p&&o[p]&&o[p][a]&&(a=o[p][a]);if(!b)return a;for(var c in b)a=a.replace("{{"+c+"}}",b[c]);return a}function v(a){if(l===t){l=!0;if(k=/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent))d("html").addClass(a.options.baseClass+"-ios"),k&&d(document).bind("scroll",function(){setInterval(function(){d("body").css("height","+=1").css("height",
163
+ "-=1")},0)});d.browser.mozilla&&d("html").addClass(a.options.baseClass+"-ff");if(d.browser.msie&&9>d.browser.version){l=!1;var b=d("<div></div>").addClass(a.options.baseClass+"-unsupported").html(a.getTemplate("unsupported")).appendTo("body"),c=1;b.siblings().each(function(){var a=d(this).css("z-index");!isNaN(a)&&a>c&&(c=a+1)});b.css("z-index",c);b.find("."+a.options.baseClass+"-unsupported-close").click(function(){b.remove()})}}return l}var p=null,o={},i={};d(function(){m.initialized||m.init();
164
+ d.isFunction(m.rangePrototype.insertNodeAtEnd)||(m.rangePrototype.insertNodeAtEnd=function(a){var b=this.cloneRange();b.collapse(!1);b.insertNode(a);b.detach();this.setEndAfter(a)})});d("html").click(function(){d(".ui-editor-selectmenu-visible").removeClass("ui-editor-selectmenu-visible")});d.widget("ui.editor",{_init:function(){-1===d.inArray(this,d.ui.editor.instances)&&d.ui.editor.instances.push(this);var a=this;d.ui.editor.eachInstance(function(b){a!=b&&a.element.closest(b.element).length&&handleError("Nesting editors is unsupported",
165
+ a.element,b.element)});this.options=d.extend({},d.ui.editor.defaults,this.options);this.options.uiOrder=this.options.uiOrder||[["logo"],["save","cancel"],["dock","showGuides","clean"],["viewSource"],["undo","redo"],["alignLeft","alignCenter","alignJustify","alignRight"],["textBold","textItalic","textUnderline","textStrike"],["textSuper","textSub"],["listUnordered","listOrdered"],["hr","quoteBlock"],["fontSizeInc","fontSizeDec"],["link","unlink"],["embed"],["floatLeft","floatNone","floatRight"],["tagMenu"],
166
+ ["i18n"],["raptorize"],["length"],["debugReinit","debugDestroy"]];this.element.attr("id")||this.element.attr("id",this.getUniqueId());this.ready=!1;this.events={};this.ui={};this.plugins={};this.templates=d.extend({},d.ui.editor.templates);this.path=this.toolbarWrapper=this.toolbar=this.wrapper=null;this.visible=this.enabled=!1;this.uiObjects={};for(var b in this.options.bind)this.bind(b,this.options.bind[b]);this.history=[];this.present=0;this.historyEnabled=!0;v(this)&&(this.cloneDomTools(),this.setOriginalHtml(this.element.is(":input")?
167
+ this.element.val():this.element.html()),this.options.replace&&(this.replaceOriginal(),this.options.replace=!1),this.attach(),this.loadPlugins(),this.dirty=!1,this.previousSelection=this.previousContent=null,this.ready=!0,this.fire("ready"),this.options.autoEnable&&d(function(){a.enableEditing();a.showToolbar()}))},attach:function(){this.bind("change",this.historyPush);this.bind("selectionChange",this.updateTagTree);this.bind("show",this.updateTagTree);var a=d.proxy(this.checkChange,this);this.getElement().find("img").bind("click."+
168
+ this.widgetName,d.proxy(function(a){this.selectOuter(a.target)},this));this.getElement().bind("mouseup."+this.widgetName,a);this.getElement().bind("keyup."+this.widgetName,a);d(q).bind("beforeunload",d.proxy(d.ui.editor.unloadWarning,d.ui.editor))},reinit:function(){if(this.ready){var a=this.enabled,b=this.visible;this.destruct();this._init();a&&this.enableEditing();b&&this.showToolbar()}else{var c;c=function(){this.unbind("ready",c);this.reinit()};this.bind("ready",c)}},getElement:function(){return this.target?
169
+ this.target:this.element},getOriginalElement:function(){return this.element},replaceOriginal:function(){if(!this.target){for(var a=d("<div/>").html(this.element.is(":input")?this.element.val():this.element.html()).insertBefore(this.element).attr("id",this.getUniqueId()).addClass(this.element.attr("class")),b=this.options.domTools.getStyles(this.element),c=0;c<this.options.replaceStyle.length;c++)a.css(this.options.replaceStyle[c],b[this.options.replaceStyle[c]]);this.element.hide();this.bind("change",
170
+ function(){this.element.is("input")?this.element.val(this.getHtml()):this.element.html(this.getHtml())});this.target=a}},cloneDomTools:function(){for(var a in this.options.domTools)this[a]||(this[a]=function(a){return function(){this.options.domTools.constrainSelection(this.getElement());var c=this.getHtml(),d=this.options.domTools[a].apply(this.options.domTools,arguments);c!==this.getHtml()&&this.change();return d}}(a))},checkChange:function(){var a=m.serializeSelection();this.previousSelection!=
171
+ a&&this.fire("selectionChange");this.previousSelection=a;var a=this.getCleanHtml(),b=this.dirty;this.dirty=this.getOriginalHtml()!=a;this.previousHtml!=a&&(this.previousHtml=a,this.change(),b!=this.dirty&&(this.dirty?this.fire("dirty"):this.fire("cleaned")))},change:function(){this.fire("change")},destruct:function(){this.hideToolbar();this.disableEditing();this.fire("destroy",!1);this.events={};this.getElement().unbind("."+this.widgetName);this.wrapper&&this.wrapper.remove()},destroy:function(){this.destruct();
172
+ d.Widget.prototype.destroy.call(this)},persist:function(a,b){return!this.options.persistence?null:d.ui.editor.persist(a,b,this.options.namespace)},enableEditing:function(){this.isToolbarLoaded()||this.loadToolbar();if(!this.enabled){this.enabled=!0;this.getElement().addClass(this.options.baseClass+"-editing");this.options.partialEdit?this.getElement().find(this.options.partialEdit).attr("contenteditable",!0):this.getElement().attr("contenteditable",!0);try{document.execCommand("enableInlineTableEditing",
173
+ !1,!1),document.execCommand("styleWithCSS",!0,!0)}catch(a){}this.fire("enabled");this.fire("resize")}},disableEditing:function(){this.enabled&&(this.enabled=!1,this.getElement().attr("contenteditable",!1).removeClass(this.options.baseClass+"-editing"),this.fire("disabled"))},isEditing:function(){return this.enabled},updateTagTree:function(){if(this.isEditing()){var a=this,b="",c=[],e=0;this.eachRange(function(g){var g=g.commonAncestorContainer,f;f=3===g.nodeType?d(g).parent():d(g);g=[];for(c.push(g);f[0]&&
174
+ !a.isRoot(f)&&"body"!==f[0].tagName.toLowerCase();)g.push(f),f=f.parent();g.reverse();b&&(b+=" | ");b+=this.getTemplate("root");for(f=0;f<g.length;f++)b+=this.getTemplate("tag",{element:g[f][0].tagName.toLowerCase(),data:"["+e+","+f+"]"});e++},null,this);b||(b=this.getTemplate("root"));this.path.html(b).find("a").click(function(){var b=d(this).data("ui-editor-selection");b?(a.selectOuter(c[b[0]][b[1]]),a.updateTagTree()):a.selectOuter(a.getElement())});this.fire("tagTreeUpdated")}},isRoot:function(a){return this.getElement()[0]===
175
+ d(a)[0]},unify:function(a,b){!1!==b&&a(this);if(this.options.unify)for(var c=d.ui.editor.getInstances(),e=0;e<c.length;e++)c[e]!==this&&c[e].options.unify&&a(c[e])},getUniqueId:function(){return d.ui.editor.getUniqueId()},loadMessages:function(){this.messages=d(this.getTemplate("messages")).appendTo(this.wrapper)},showMessage:function(a,b,c){var c=d.extend({},this.options.message,c),e;e={timer:null,editor:this,show:function(){this.element.slideDown();this.timer=q.setTimeout(function(){this.timer=
176
+ null;e.hide()},c.delay,this)},hide:function(){this.timer&&(q.clearTimeout(this.timer),this.timer=null);this.element.stop().slideUp(d.proxy(function(){d.isFunction(c.hide)&&c.hide.call(this);this.element.remove()},this))}};e.element=d(this.getTemplate("message",{type:a,message:b})).hide().appendTo(this.messages).find(".ui-editor-message-close").click(function(){e.hide()}).end();e.show();return e},showLoading:function(a,b){return this.showMessage("clock",a,b)},showInfo:function(a,b){return this.showMessage("info",
177
+ a,b)},showError:function(a,b){return this.showMessage("circle-close",a,b)},showConfirm:function(a,b){return this.showMessage("circle-check",a,b)},showWarning:function(a,b){return this.showMessage("alert",a,b)},loadToolbar:function(){var a=this.toolbar=d("<div/>").addClass(this.options.baseClass+"-toolbar"),a=this.toolbarWrapper=d("<div/>").addClass(this.options.baseClass+"-toolbar-wrapper").addClass("ui-widget-content").append(a),b=this.path=d("<div/>").addClass(this.options.baseClass+"-path").addClass("ui-widget-header").html(this.getTemplate("root")),
178
+ c=this.wrapper=d("<div/>").addClass(this.options.baseClass+"-wrapper").css("display","none").append(b).append(a);d.fn.draggable&&this.options.draggable&&(c.draggable({cancel:"a, button",cursor:"move",handle:".ui-editor-path",stop:d.proxy(function(){var a=this.persist("position",[c.css("top"),c.css("left")]);c.css({top:Math.abs(a[0]),left:Math.abs(a[1])})},this)}),c.css("position",""),(a=this.persist("position")||this.options.dialogPosition)||(a=[10,10]),parseInt(a[0],10)+c.outerHeight()>d(q).height()&&
179
+ (a[0]=d(q).height()-c.outerHeight()),parseInt(a[1],10)+c.outerWidth()>d(q).width()&&(a[1]=d(q).width()-c.outerWidth()),c.css({top:Math.abs(parseInt(a[0])),left:Math.abs(parseInt(a[1]))}),this.loadMessages());d(function(){c.appendTo("body")});this.loadUi()},isToolbarLoaded:function(){return null!==this.wrapper},showToolbar:function(a){this.isToolbarLoaded()||this.loadToolbar();if(!this.visible){this.options.unify&&this.hideOtherToolbars(!0);this.visible=!0;this.wrapper.css("display","");this.fire("resize");
180
+ "undefined"===typeof this.getElement().attr("tabindex")&&this.getElement().attr("tabindex",-1);if(a)if(a.select)a.select();else{var b=q.getSelection();b.removeAllRanges();b.addRange(a)}var c=this;d(function(){c.fire("show");c.getElement().focus()})}},hideToolbar:function(){this.visible&&(this.visible=!1,this.wrapper.hide(),this.fire("hide"),this.fire("resize"))},hideOtherToolbars:function(a){this.unify(function(b){b.hideToolbar(a)},!1)},isVisible:function(){return this.visible},getTemplate:function(a,
181
+ b){var c;c=this.templates[a]?this.templates[a]:d.ui.editor.getTemplate(a,this.options.urlPrefix);c=c.replace(/_\('(.*?)'\)/g,function(a,b){b=b.replace(/\\(.?)/g,function(a,b){switch(b){case "\\":return"\\";case "0":return"\x00";case "":return"";default:return b}});return f(b)});b=d.extend({},this.options,b||{});b=this.getTemplateVars(b);return c=c.replace(/\{\{(.*?)\}\}/g,function(a,c){return b[c]})},getTemplateVars:function(a,b,c){b=b?b+".":"";c||(c=1);var d={},g;for(g in a)if("object"===typeof a[g]&&
182
+ 5>c){var f=this.getTemplateVars(a[g],b+g,++c),n;for(n in f)d[n]=f[n]}else d[b+g]=a[g];return d},historyPush:function(){this.historyEnabled&&this.getHtml()!==this.historyPeak()&&(this.present!==this.history.length-1&&(this.history=this.history.splice(0,this.present+1)),this.history.push(this.getHtml()),this.present=this.history.length-1)},historyPeak:function(){return!this.history.length?null:this.history[this.present]},historyBack:function(){0<this.present&&(this.present--,this.setHtml(this.history[this.present]),
183
+ this.historyEnabled=!1,this.change(),this.historyEnabled=!0)},historyForward:function(){this.present<this.history.length-1&&(this.present++,this.setHtml(this.history[this.present]),this.historyEnabled=!1,this.change(),this.historyEnabled=!0)},uiEnabled:function(a){return!1===this.options.enableUi&&"undefined"===typeof this.options.ui[a]||!1===this.options.ui[a]||-1!==d.inArray(a,this.options.disabledUi)?!1:!0},getUi:function(a){return this.uiObjects[a]},loadUi:function(){for(var a=0,b=this.options.uiOrder.length;a<
184
+ b;a++){for(var c=this.options.uiOrder[a],e=d("<div/>"),g=0,f=c.length;g<f;g++)if(this.uiEnabled(c[g])){var n=c[g].replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()});if(d.ui.editor.ui[c[g]]){var i=d.extend({},d.ui.editor.ui[c[g]]),n=d.extend(!0,{},this.options,{baseClass:this.options.baseClass+"-ui-"+n},i.options,this.options.ui[c[g]]);i.editor=this;i.options=n;i.ui=i.init(this,n);i.ui.init(c[g],this,n,i).appendTo(e);this.uiObjects[c[g]]=i}}e.addClass("ui-buttonset").addClass(this.options.baseClass+
185
+ "-buttonset");0<e.children().length&&e.appendTo(this.toolbar)}d("<div/>").css("clear","both").appendTo(this.toolbar)},uiButton:function(a){return d.extend({button:null,options:{},init:function(a,c,e,g){var h=a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()}),e=d.extend({},c.options,{baseClass:c.options.baseClass+"-"+h+"-button"},this.options,c.options.ui[a]);this.title||(this.title=f("Unnamed Button"));this.button=d("<div/>").html(this.label||this.title).addClass(e.baseClass).attr("name",
186
+ a).attr("title",this.title).val(a);e.classes&&this.button.addClass(e.classes);this.button.bind("mousedown."+g.editor.widgetName,function(a){a.preventDefault()});var n=this;this.button.bind("mouseup."+g.editor.widgetName,function(a){a.preventDefault();n.click.apply(g,arguments)});c.bind("destroy",d.proxy(function(){this.button.button("destroy").remove()},this));this.button.button({icons:{primary:this.icon||"ui-icon-"+h},disabled:e.disabled?!0:!1,text:this.text||!1,label:this.label||null});this.ready.call(g);
187
+ return this.button},disable:function(){this.button.button("option","disabled",!0)},enable:function(){this.button.button("option","disabled",!1)},ready:function(){},click:function(){}},a)},uiSelectMenu:function(a){return d.extend({select:null,selectMenu:null,button:null,menu:null,options:{},init:function(a,c){var e=this,g=a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()});d.extend({},c.options,{baseClass:c.options.baseClass+g+"-select-menu"},e.options,c.options.ui[a]);e.title||(e.title=f("Unnamed Select Menu"));
188
+ e.wrapper=d('<div class="ui-editor-selectmenu-wrapper"/>').append(e.select.hide());e.selectMenu=d('<div class="ui-selectmenu ui-editor-selectmenu"/>').appendTo(e.wrapper);e.menu=d('<div class="ui-selectmenu-menu ui-editor-selectmenu-menu ui-widget-content ui-corner-bottom ui-corner-tr"/>').appendTo(e.wrapper);e.select.find("option").each(function(){d("<div/>").addClass("ui-selectmenu-menu-item ui-editor-selectmenu-menu-item").addClass("ui-corner-all").html(d(this).html()).appendTo(e.menu).bind("mouseenter."+
189
+ c.widgetName,function(){d(this).addClass("ui-state-focus")}).bind("mouseleave."+c.widgetName,function(){d(this).removeClass("ui-state-focus")}).bind("mousedown."+c.widgetName,function(){return false}).bind("click."+c.widgetName,function(){var a=e.select.find("option").eq(d(this).index());e.select.val(a.val());e.update();e.wrapper.removeClass("ui-editor-selectmenu-visible");e.button.addClass("ui-corner-all").removeClass("ui-corner-top");e.change(e.select.val());return false})});var g=d("<div/>").addClass("ui-selectmenu-text"),
190
+ h=d("<div/>").addClass("ui-icon ui-icon-triangle-1-s");e.button=d("<div/>").addClass("ui-selectmenu-button ui-editor-selectmenu-button ui-button ui-state-default").attr("title",e.title).append(g).append(h).prependTo(e.selectMenu);e.button.bind("mousedown."+c.widgetName,function(){return false}).bind("click."+c.widgetName,function(){d(".ui-editor-selectmenu-visible").removeClass("ui-editor-selectmenu-visible");e.menu.css("min-width",e.button.outerWidth()+10);e.wrapper.toggleClass("ui-editor-selectmenu-visible");
191
+ return false});g=e.select.find("option[value="+e.select.val()+"]").html();e.button.find(".ui-selectmenu-text").html(g);return e.wrapper},update:function(){var a=this.select.find("option[value="+this.select.val()+"]").html();this.button.find(".ui-selectmenu-text").html(a)},val:function(){var a=this.select.val.apply(this.select,arguments);this.update();return a},change:function(){}},a)},getPlugin:function(a){return this.plugins[a]},loadPlugins:function(){this.options.plugins||(this.options.plugins=
192
+ {});for(var a in d.ui.editor.plugins)if(!(!1===this.options.enablePlugins&&"undefined"===typeof this.options.plugins[a]||!1===this.options.plugins[a])&&-1===d.inArray(a,this.options.disabledPlugins)){var b=d.extend({},d.ui.editor.plugins[a]),c=a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()}),c=d.extend(!0,{},this.options,{baseClass:this.options.baseClass+"-"+c},b.options,this.options.plugins[a]);b.editor=this;b.options=c;b.init(this,c);this.plugins[a]=b}},isDirty:function(){return this.dirty},
193
+ getHtml:function(){var a=this.getElement().html(),a=d("<div/>").html(a);a.find(".rangySelectionBoundary").remove();return a=a.html()},getCleanHtml:function(){this.fire("clean");var a=this.getElement().html();this.fire("restore");a=d("<div/>").html(a);a.find(".rangySelectionBoundary").remove();return a=a.html()},setHtml:function(a){this.getElement().html(a);this.fire("html");this.change()},resetHtml:function(){this.setHtml(this.getOriginalHtml())},getOriginalHtml:function(){return this.originalHtml},
194
+ save:function(){var a=this.getCleanHtml();this.fire("save");this.setOriginalHtml(a);this.fire("saved");this.fire("change");return a},setOriginalHtml:function(a){this.originalHtml=a},bind:function(a,b,c){var e=this.events;d.each(a.split(","),function(a,f){f=d.trim(f);e[f]||(e[f]=[]);e[f].push({context:c,callback:b})})},unbind:function(a,b,c){for(var d=0,g=this.events[a].length;d<g;d++)this.events[a][d]&&this.events[a][d].callback===b&&this.events[a][d].context===c&&this.events[a].splice(d,1)},fire:function(a,
195
+ b,c){c||this.fire("before:"+a,b,!0);if(this.events[a])for(var e=0,g=this.events[a].length;e<g;e++){var f=this.events[a][e];f.callback.call(f.context||this)}!1!==b&&d.ui.editor.fire(a);c||this.fire("after:"+a,b,!0)}});d.extend(d.ui.editor,{defaults:{plugins:{},ui:{},bind:{},domTools:{savedSelection:!1,saveSelection:function(){this.savedSelection=m.saveSelection()},restoreSelection:function(){this.savedSelection&&(m.restoreSelection(this.savedSelection),this.savedSelection=!1)},eachRange:function(a,
196
+ b,c){for(var b=b||m.getSelection(),c=c||this,d,g=0;d=b.getAllRanges()[g++];)a.call(c,d)},constrainSelection:function(a,b){var a=d(a)[0],b=b||m.getSelection(),c;d(b.getAllRanges()).each(function(e,g){c=3===this.commonAncestorContainer.nodeType?d(g.commonAncestorContainer).parent()[0]:g.commonAncestorContainer;a!==c&&!d.contains(a,c)&&b.removeRange(g)})},getSelectedElements:function(){var a=new jQuery;this.eachRange(function(b){a.push(this.getSelectedElement(b)[0])});return a},getSelectedElement:function(a){a=
197
+ a||m.getSelection().getRangeAt(0);return d(3===a.commonAncestorContainer.nodeType?a.commonAncestorContainer.parentNode:a.commonAncestorContainer)},getSelectedHtml:function(a){a=a||m.getSelection();return a.toHtml()},getSelectionStartElement:function(){var a=m.getSelection();return a.isBackwards()?3===a.focusNode.nodeType?d(a.focusNode.parentElement):d(a.focusNode):3===a.anchorNode.nodeType?d(a.anchorNode.parentElement):d(a.anchorNode)},getSelectionEndElement:function(){var a=m.getSelection();return a.isBackwards()?
198
+ 3===a.anchorNode.nodeType?d(a.anchorNode.parentElement):d(a.anchorNode):3===a.focusNode.nodeType?d(a.focusNode.parentElement):d(a.focusNode)},unwrapParentTag:function(a){this.getSelectedElements().each(function(){d(this).is(a)&&d(this).replaceWith(d(this).html())})},wrapTagWithAttribute:function(a,b,c){this.eachRange(function(d){d=this.getSelectedElement(d);d.is(a)?d.attr(b):this.toggleWrapper(a,{classes:c,attributes:b})})},selectInner:function(a,b){b=b||m.getSelection();b.removeAllRanges();d(a).focus().contents().each(function(){var a=
199
+ m.createRange();a.selectNodeContents(this);b.addRange(a)})},selectOuter:function(a,b){b=b||m.getSelection();b.removeAllRanges();d(a).each(function(){var a=m.createRange();a.selectNode(this);b.addRange(a)}).focus()},selectEnd:function(a,b){b=b||m.getSelection();b.removeAllRanges();d(a).each(function(){var a=m.createRange();a.selectNodeContents(this);a.collapse();b.addRange(a)})},toggleWrapper:function(a,b){var b=b||{},c=m.createCssClassApplier(b.classes||"",{normalize:!0,elementTagName:a,elementProperties:b.attributes||
200
+ {}});this.eachRange(function(e){this.rangeEmptyTag(e)?this.replaceRange(d("<"+a+"/>").addClass(b.classes).attr(b.attributes||{}).append(this.domFragmentToHtml(e.cloneContents())),e):c.toggleRange(e)})},rangeEmptyTag:function(a){a=this.domFragmentToHtml(a.cloneContents());"string"===typeof a&&(a=a.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g,"\\$1"));return d(a).is(":empty")?!0:!1},execCommand:function(a,b,c){document.execCommand(a,b,c)},insertTag:function(a,b){this.eachRange(function(b){b.insertNode(d("<"+
201
+ a+"/>")[0])},b)},insertTagAtEnd:function(a,b){this.eachRange(function(b){b.insertNodeAtEnd(d("<"+a+"/>")[0])},b)},insertElement:function(a,b,c){this.eachRange(function(c){d(a).each(function(){c.insertNode(!1===b?this:this.cloneNode(!0))})},c)},insertElementAtEnd:function(a,b,c){this.eachRange(function(c){d(a).each(function(){c.insertNodeAtEnd(!1===b?this:this.cloneNode(!0))})},c)},toggleBlockStyle:function(a,b){this.eachRange(function(c){for(c=d(c.commonAncestorContainer);c.length&&c[0]!==b[0]&&(3===
202
+ c[0].nodeType||"inline"===c.css("display"));)c=c.parent();c[0]===b[0]&&"inline"!==b.css("display")&&(this.wrapInner(b,"div"),c=b.children().first());this.toggleStyle(c,a)})},wrapInner:function(a,b){this.saveSelection();d(a).each(function(){var c=d("<"+b+"/>").html(d(this).html());a.html(c)});this.restoreSelection()},inverseWrapWithTagClass:function(a,b,c,e){this.saveSelection();var g="domTools"+Math.ceil(1E7*Math.random());this.eachRange(function(a){var d=m.createCssClassApplier(e,{elementTagName:c});
203
+ d.isAppliedToRange(a)?d.toggleSelection():m.createCssClassApplier(b,{elementTagName:g}).toggleSelection()});d(g).each(function(){d(this).replaceWith(d("<"+a+"/>").addClass(b).html(d(this).html()))});this.restoreSelection()},toggleStyle:function(a,b){d.each(b,function(b,e){d(a).css(b)===e?d(a).css(b,""):d(a).css(b,e)})},getStyles:function(a){for(var b={},a=q.getComputedStyle(a[0],null),c=0;c<a.length;c++)b[a.item(c)]=a.getPropertyValue(a.item(c));return b},swapStyles:function(a,b,c){for(var d in c)a.css(d,
204
+ b.css(d)),b.css(d,c[d])},replaceSelectionWithinValidTags:function(a,b,c){var c=c||m.getSelection(),d=this.getSelectionStartElement()[0],g=this.getSelectionEndElement()[0],f=this.isElementValid(this.getSelectedElements()[0],b),d=this.isElementValid(d,b),b=this.isElementValid(g,b);f&&d&&b?this.replaceSelection(a):this.replaceSelectionSplittingSelectedElement(a,c)},replaceSelectionSplittingSelectedElement:function(a,b){var b=b||m.getSelection(),c=b.getRangeAt(0),e=this.getSelectedElements()[0],g=m.createRange();
205
+ g.setStartBefore(e);g.setEnd(c.startContainer,c.startOffset);var g=g.cloneContents(),f=m.createRange();f.setStart(c.endContainer,c.endOffset);f.setEndAfter(e);c=f.cloneContents();g=this.outerHtml(d(this.domFragmentToHtml(g)));g+=this.outerHtml(d(a));g+=this.outerHtml(d(this.domFragmentToHtml(c)));d(e).replaceWith(d(g))},replaceSelection:function(a,b){this.eachRange(function(b){this.replaceRange(a,b)},b)},replaceRange:function(a,b){var c=d("<div></div>").append(a)[0].childNodes;b.deleteContents();
206
+ c.length===t||1===c.length?b.insertNode(c[0].cloneNode(!0)):d.each(c,function(a,c){b.insertNodeAtEnd(c.cloneNode(!0))})},insertDomFragmentBefore:function(a,b,c){for(var e=0,g=a.childNodes.length;e<g;e++){var f=a.childNodes.item(e);(f=3===f.nodeType?f.nodeValue:d(f).html())&&d("<"+c+"/>").html(d.trim(f)).insertBefore(b)}},domFragmentToHtml:function(a,b){for(var c="",e=0,g=a.childNodes.length;e<g;e++){var f=a.childNodes.item(e);(f=3===f.nodeType?f.nodeValue:this.outerHtml(f))&&(c+=f)}b&&(c=d("<"+b+
207
+ ">"+c+"</"+b+">"),c.find("p").wrapInner("<"+b+"/>"),c.find("p > *").unwrap(),c=d("<div></div>").html(c).html());return c},selectionExists:function(a){var b=!1;this.eachRange(function(a){this.isEmpty(a)||(b=!0)},a);return b},isEmpty:function(a){return a.startOffset===a.endOffset&&a.startContainer===a.endContainer},expandToParent:function(a){a.setStartBefore(a.startContainer);a.setEndAfter(a.endContainer)},changeTag:function(a,b){this.insertDomFragmentBefore(a.extractContents(),a.startContainer,b);
208
+ d(a.startContainer).remove()},tagSelection:function(a,b){this.tagSelectionWithin(a,null,b)},tagSelectionWithin:function(a,b,c){this.eachRange(function(c){this.isEmpty(c)?(this.expandToParent(c),b=d(b)[0],"undefined"!==typeof b&&c.startContainer===b&&c.endContainer===b?this.wrapInner(d(b),a):this.changeTag(c,a)):this.replaceRange(this.domFragmentToHtml(c.extractContents(),a),c)},c)},isElementValid:function(a,b){return-1!==d.inArray(d(a)[0].tagName.toLowerCase(),b)},outerHtml:function(a){return d(a).clone().wrap("<div></div>").parent().html()},
209
+ stripTags:function(a,b){allowed=[];for(var c=0;c<b.length;c++)b[c].match(/[a-z][a-z0-9]+/g)&&allowed.push("<"+b[c]+">");return a.replace(/<\!--[\s\S]*?--\>|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,function(a,b){return-1<allowed.indexOf("<"+b.toLowerCase()+">")?a:""})}},namespace:null,unify:!0,persistence:!0,persistenceName:"uiEditor",unloadWarning:!0,autoEnable:!1,partialEdit:!1,enablePlugins:!0,disabledPlugins:[],uiOrder:null,enableUi:!0,disabledUi:[],message:{delay:5E3},
210
+ replace:!1,replaceStyle:"display,position,float,width,padding-left,padding-right,padding-top,padding-bottom,margin-left,margin-right,margin-top,margin-bottom".split(","),baseClass:"ui-editor",cssPrefix:"cms-",draggable:!0},events:{},plugins:{},ui:{},instances:[],getInstances:function(){return this.instances},eachInstance:function(a){for(var b=0;b<this.instances.length;b++)a.call(this.instances[b],this.instances[b])},urlPrefix:"/jquery-raptor/",templates:{"paste.dialog":'<div class="ui-editor-paste-panel ui-dialog-content ui-widget-content">\n <div class="ui-editor-paste-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all">\n <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">\n <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a>_(\'Plain Text\')</a></li>\n <li class="ui-state-default ui-corner-top"><a>_(\'Formatted &amp; Cleaned\')</a></li>\n <li class="ui-state-default ui-corner-top"><a>_(\'Formatted Unclean\')</a></li>\n <li class="ui-state-default ui-corner-top"><a>_(\'Source Code\')</a></li>\n </ul>\n <label class="ui-editor-paste-synchronize-text" title="Synchronize changes to text across the three tabs">\n <input type="checkbox" value="synchronize" name="synchronizeText" class="synchronizeText"/>\n Synchronize\n </label>\n <div class="ui-editor-paste-plain-tab">\n <textarea class="ui-editor-paste-area ui-editor-paste-plain">{{plain}}</textarea>\n </div>\n <div class="ui-editor-paste-markup-tab" style="display: none">\n <div contenteditable="true" class="ui-editor-paste-area ui-editor-paste-markup">{{markup}}</div>\n </div>\n <div class="ui-editor-paste-rich-tab" style="display: none">\n <div contenteditable="true" class="ui-editor-paste-area ui-editor-paste-rich">{{html}}</div>\n </div>\n <div class="ui-editor-paste-source-tab" style="display: none">\n <textarea class="ui-editor-paste-area ui-editor-paste-source">{{html}}</textarea>\n </div>\n </div>\n</div>\n',
211
+ "imageresize.manually-resize-image":'<div>\n <fieldset>\n <label for="{{baseClass}}-width">_(\'Image width\')</label>\n <input id="{{baseClass}}-width" name="width" type="text" value="{{width}}" placeholder="_(\'Image width\')"/>\n </fieldset>\n <fieldset>\n <label for="{{baseClass}}-height">_(\'Image height\')</label>\n <input id="{{baseClass}}-height" name="height" type="text" value="{{height}}" placeholder="_(\'Image height\')"/>\n </fieldset>\n</div>',"viewsource.dialog":'<div style="display:none" class="{{baseClass}}-dialog">\n <div class="{{baseClass}}-plain-text" style="display:none">\n <textarea></textarea>\n </div>\n <div class="{{baseClass}}-highlighted" style="display:none">\n <pre id="{{baseClass}}-rainbow"><code data-language="html"></code></pre>\n </div>\n</div>\n',
212
+ "clicktoedit.message":'<div class="{{baseClass}}-message" style="opacity: 0;">_(\'Click to begin editing\')</div>\n',"length.dialog":"<div>\n <ul>\n <li>{{characters}}</li>\n <li>{{words}}</li>\n <li>{{sentences}}</li>\n <li>{{truncation}}</li>\n </ul>\n</div>\n","i18n.menu":'<select autocomplete="off" name="tag" class="ui-editor-tag-select">\n <option value="na">_(\'N/A\')</option>\n <option value="p">_(\'Paragraph\')</option>\n <option value="h1">_(\'Heading&nbsp;1\')</option>\n <option value="h2">_(\'Heading&nbsp;2\')</option>\n <option value="h3">_(\'Heading&nbsp;3\')</option>\n <option value="div">_(\'Divider\')</option>\n</select>\n',
213
+ "link.label":'<label>\n <input class="{{classes}}" type="radio" value="{{type}}" name="link-type" autocomplete="off"/>\n <span>{{title}}</span>\n</label>\n',"link.email":'<h2>_(\'Link to an email address\')</h2>\n<fieldset class="{{baseClass}}-email">\n <label for="{{baseClass}}-email">_(\'Email\')</label>\n <input id="{{baseClass}}-email" name="email" type="text" placeholder="_(\'Enter email address\')"/>\n</fieldset>\n<fieldset class="{{baseClass}}-email">\n <label for="{{baseClass}}-email-subject">_(\'Subject (optional)\')</label>\n <input id="{{baseClass}}-email-subject" name="subject" type="text" placeholder="_(\'Enter subject\')"/>\n</fieldset>\n',
214
+ "link.error":'<div style="display:none" class="ui-widget {{baseClass}}-error-message {{messageClass}}">\n <div class="ui-state-error ui-corner-all"> \n <p>\n <span class="ui-icon ui-icon-alert"></span> \n {{message}}\n </p>\n </div>\n</div>',"link.dialog":'<div style="display:none" class="{{baseClass}}-panel">\n <div class="{{baseClass}}-menu">\n <p>_(\'Choose a link type:\')</p>\n <fieldset></fieldset>\n </div>\n <div class="{{baseClass}}-wrap">\n <div class="{{baseClass}}-content"></div>\n </div>\n</div>\n',
215
+ "link.file-url":'<h2>_(\'Link to a document or other file\')</h2>\n<fieldset>\n <label for="{{baseClass}}-external-href">_(\'Location\')</label>\n <input id="{{baseClass}}-external-href" value="http://" name="location" class="{{baseClass}}-external-href" type="text" placeholder="_(\'Enter your URL\')" />\n</fieldset>\n<h2>_(\'New window\')</h2>\n<fieldset>\n <label for="{{baseClass}}-external-target">\n <input id="{{baseClass}}-external-target" name="blank" type="checkbox" />\n <span>_(\'Check this box to have the file open in a new browser window\')</span>\n </label>\n</fieldset>\n<h2>_(\'Not sure what to put in the box above?\')</h2>\n<ol>\n <li>_(\'Ensure the file has been uploaded to your website\')</li>\n <li>_(\'Open the uploaded file in your browser\')</li>\n <li>_(\'Copy the file\'s URL from your browser\'s address bar and paste it into the box above\')</li>\n</ol>\n',
216
+ "link.external":'<h2>_(\'Link to a page on this or another website\')</h2>\n<fieldset>\n <label for="{{baseClass}}-external-href">_(\'Location\')</label>\n <input id="{{baseClass}}-external-href" value="http://" name="location" class="{{baseClass}}-external-href" type="text" placeholder="_(\'Enter your URL\')" />\n</fieldset>\n<h2>_(\'New window\')</h2>\n<fieldset>\n <label for="{{baseClass}}-external-target">\n <input id="{{baseClass}}-external-target" name="blank" type="checkbox" />\n <span>_(\'Check this box to have the link open in a new browser window\')</span>\n </label>\n</fieldset>\n<h2>_(\'Not sure what to put in the box above?\')</h2>\n<ol>\n <li>_(\'Find the page on the web you want to link to\')</li>\n <li>_(\'Copy the web address from your browser\'s address bar and paste it into the box above\')</li>\n</ol>\n',
217
+ "embed.dialog":'<div style="display:none" class="{{baseClass}}-dialog">\n <div class="ui-editor-embed-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all">\n <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">\n <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a>_(\'Embed Code\')</a></li>\n <li class="ui-state-default ui-corner-top"><a>_(\'Preview\')</a></li>\n </ul>\n <div class="ui-editor-embed-code-tab">\n <p>_(\'Paste your embed code into the text area below.\')</p>\n <textarea></textarea>\n </div>\n <div class="ui-editor-preview-tab" style="display: none">\n <p>_(\'A preview of your embedded object is displayed below.\')</p>\n <div class="ui-editor-embed-preview"></div>\n </div>\n </div>\n</div>\n',
218
+ "cancel.dialog":"<div>\n _('Are you sure you want to stop editing?')\n <br/><br/>\n _('All changes will be lost!')\n</div>\n","tagmenu.menu":'<select autocomplete="off" name="tag" class="ui-editor-tag-select">\n <option value="na">_(\'N/A\')</option>\n <option value="p">_(\'Paragraph\')</option>\n <option value="h1">_(\'Heading&nbsp;1\')</option>\n <option value="h2">_(\'Heading&nbsp;2\')</option>\n <option value="h3">_(\'Heading&nbsp;3\')</option>\n <option value="div">_(\'Divider\')</option>\n</select>\n',
219
+ "unsavededitwarning.warning":'<div title="_(\'This block contains unsaved changes\')" class="{{baseClass}}" style="display: none2">\n <span class="ui-icon ui-icon-alert"></span>\n <span>There are unsaved edits on this page</span>\n</div>',root:"<a href=\"javascript: // _('Select all editable content')\" \n class=\"{{baseClass}}-select-element\"\n title=\"_('Click to select all editable content')\">_('root')</a> \n",message:'<div class="{{baseClass}}-message-wrapper {{baseClass}}-message-{{type}}">\n <div class="ui-icon ui-icon-{{type}}" />\n <div class="{{baseClass}}-message">{{message}}</div>\n <div class="{{baseClass}}-message-close ui-icon ui-icon-circle-close"></div>\n</div>\n',
220
+ tag:' &gt; <a href="javascript: // _(\'Select {{element}} element\')" \n class="{{baseClass}}-select-element"\n title="_(\'Click to select the contents of the \'{{element}}\' element\')"\n data-ui-editor-selection="{{data}}">{{element}}</a> \n',unsupported:'<div class="{{baseClass}}-unsupported-overlay"></div>\n<div class="{{baseClass}}-unsupported-content">\n It has been detected that you a using a browser that is not supported by Raptor, please\n use one of the following browsers:\n\n <ul>\n <li><a href="http://www.google.com/chrome">Google Chrome</a></li>\n <li><a href="http://www.firefox.com">Mozilla Firefox</a></li>\n <li><a href="http://www.google.com/chromeframe">Internet Explorer with Chrome Frame</a></li>\n </ul>\n\n <div class="{{baseClass}}-unsupported-input">\n <button class="{{baseClass}}-unsupported-close">Close</button>\n <input name="{{baseClass}}-unsupported-show" type="checkbox" />\n <label>Don\'t show this message again</label>\n </div>\n<div>',
221
+ messages:'<div class="{{baseClass}}-messages" />\n'},getTemplate:function(a,b){var c;if(this.templates[a])c=this.templates[a];else{var e=b||this.urlPrefix,g=a.split("."),e=1===g.length?e+("templates/"+g[0]+".html"):e+("plugins/"+g[0]+"/templates/"+g.splice(1).join("/")+".html");d.ajax({url:e,type:"GET",async:!1,timeout:15E3,error:function(){c=null},success:function(a){c=a}});this.templates[a]=c}return c},getUniqueId:function(){for(var a=d.ui.editor.defaults.baseClass+"-uid-"+(new Date).getTime()+
222
+ "-"+Math.floor(1E5*Math.random());d("#"+a).length;)a=d.ui.editor.defaults.baseClass+"-uid-"+(new Date).getTime()+"-"+Math.floor(1E5*Math.random());return a},isDirty:function(){for(var a=this.getInstances(),b=0;b<a.length;b++)if(a[b].isDirty())return!0;return!1},unloadWarning:function(){for(var a=this.getInstances(),b=0;b<a.length;b++)if(a[b].isDirty()&&a[b].isEditing()&&a[b].options.unloadWarning)return f("\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes")},
223
+ defaultUi:{ui:null,editor:null,options:null,init:function(){},persist:function(a,b){return this.editor.persist(a,b)},bind:function(a,b,c){this.editor.bind(a,b,c||this)},unbind:function(a,b,c){this.editor.unbind(a,b,c||this)}},registerUi:function(a,b){if("string"===typeof a)this.ui[a]=d.extend({},this.defaultUi,b);else for(var c in a)this.registerUi(c,a[c])},defaultPlugin:{editor:null,options:null,init:function(){},persist:function(a,b){return this.editor.persist(a,b)},bind:function(a,b,c){this.editor.bind(a,
224
+ b,c||this)},unbind:function(a,b,c){this.editor.unbind(a,b,c||this)}},registerPlugin:function(a,b){if("string"===typeof a)this.plugins[a]=d.extend({},this.defaultPlugin,b);else for(var c in a)this.registerPlugin(c,a[c])},bind:function(a,b){this.events[a]||(this.events[a]=[]);this.events[a].push(b)},unbind:function(a){d.each(this.events,function(b){for(var c=0;c<this.length;c++)this[c]===a&&this.events[b].splice(c,1)})},fire:function(a){if(this.events[a])for(var b=0,c=this.events[a].length;b<c;b++)this.events[a][b].call(this)},
225
+ persist:function(a,b,c){a=c?c+"."+a:a;if(localStorage){c=localStorage.uiWidgetEditor?JSON.parse(localStorage.uiWidgetEditor):{};if(b===t)return c[a];c[a]=b;localStorage.uiWidgetEditor=JSON.stringify(c)}return b}});var l,k;d.ui.editor.registerUi({alignLeft:{init:function(a){return a.uiButton({title:f("Left Align"),click:function(){a.toggleBlockStyle({"text-align":"left"},a.getElement())}})}},alignJustify:{init:function(a){return a.uiButton({title:f("Justify"),click:function(){a.toggleBlockStyle({"text-align":"justify"},
226
+ a.getElement())}})}},alignCenter:{init:function(a){return a.uiButton({title:f("Center Align"),click:function(){a.toggleBlockStyle({"text-align":"center"},a.getElement())}})}},alignRight:{init:function(a){return a.uiButton({title:f("Right Align"),click:function(){a.toggleBlockStyle({"text-align":"right"},a.getElement())}})}}});d.ui.editor.registerUi({textBold:{init:function(a,b){return this.editor.uiButton({title:f("Bold"),click:function(){a.toggleWrapper("strong",{classes:b.classes||b.cssPrefix+"bold"})}})}},
227
+ textItalic:{init:function(a,b){return a.uiButton({title:f("Italic"),click:function(){a.toggleWrapper("em",{classes:b.classes||b.cssPrefix+"italic"})}})}},textUnderline:{init:function(a,b){return a.uiButton({title:f("Underline"),click:function(){a.toggleWrapper("u",{classes:b.classes||b.cssPrefix+"underline"})}})}},textStrike:{init:function(a,b){return a.uiButton({title:f("Strikethrough"),click:function(){a.toggleWrapper("del",{classes:b.classes||b.cssPrefix+"strike"})}})}},textSub:{init:function(a,
228
+ b){return a.uiButton({title:f("Sub script"),click:function(){a.toggleWrapper("sub",{classes:b.classes||b.cssPrefix+"sub"})}})}},textSuper:{init:function(a,b){return a.uiButton({title:f("Super script"),click:function(){a.toggleWrapper("sup",{classes:b.classes||b.cssPrefix+"super"})}})}}});d.ui.editor.registerUi({quoteBlock:{init:function(a,b){return a.uiButton({title:f("Blockquote"),icon:"ui-icon-quote",click:function(){a.toggleWrapper("blockquote",{classes:b.classes||b.cssPrefix+"blockquote"})}})}}});
229
+ d.ui.editor.registerUi({cancel:{init:function(a){return a.uiButton({name:"cancel",title:f("Cancel"),icons:{primary:"ui-icon-cancel"},dialog:null,click:function(){this.confirm()}})},confirm:function(){var a=this.editor.getPlugin("cancel"),b=this.editor;b.isDirty()?(this.dialog||(this.dialog=d(b.getTemplate("cancel.dialog"))),this.dialog.dialog({modal:!0,resizable:!1,title:f("Confirm Cancel Editing"),dialogClass:b.options.dialogClass+" "+b.options.baseClass,show:b.options.dialogShowAnimation,hide:b.options.dialogHideAnimation,
230
+ buttons:[{text:f("OK"),click:function(){a.cancel();d(this).dialog("close")}},{text:f("Cancel"),click:function(){d(this).dialog("close")}}],open:function(){var a=d(this).parent().find(".ui-dialog-buttonpane");a.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});a.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}})},close:function(){d(this).dialog("destroy").remove()}})):a.cancel()}}});d.ui.editor.registerPlugin({cancel:{cancel:function(){this.editor.unify(function(a){a.fire("cancel");
231
+ a.resetHtml();a.hideToolbar();a.disableEditing()})}}});d.ui.editor.registerPlugin("clean",{options:{stripAttrs:["_moz_dirty"],stripAttrContent:{type:"_moz"},stripEmptyTags:"h1,h2,h3,h4,h5,h6,p,b,i,u,strong,em,big,small,div,span".split(","),stripEmptyAttrs:["class","id","style"]},init:function(a){a.bind("change",this.clean,this)},clean:function(){var a,b=this.editor;for(a=0;a<this.options.stripAttrs.length;a++)b.getElement().find("["+this.options.stripAttrs[a]+"]").removeAttr(this.options.stripAttrs[a]);
232
+ for(a=0;a<this.options.stripAttrContent.length;a++)b.getElement().find("["+a+'="'+this.options.stripAttrs[a]+'"]').removeAttr(this.options.stripAttrs[a]);for(a=0;a<this.options.stripEmptyTags.length;a++)b.getElement().find(this.options.stripEmptyTags[a]).filter(function(){if(""!==d.trim(d(this).html()))return!1;if(!d(this).hasClass("rangySelectionBoundary"))return!0;if(!1!==b.savedSelection)return!1}).remove();for(a=0;a<this.options.stripEmptyAttrs.length;a++){var c=this.options.stripEmptyAttrs[a];
233
+ b.getElement().find("["+this.options.stripEmptyAttrs[a]+"]").filter(function(){return""===d.trim(d(this).attr(c))}).removeAttr(this.options.stripEmptyAttrs[a])}}});d.ui.editor.registerUi({clean:{init:function(a){return a.uiButton({title:f("Remove unnecessary markup from editor content"),click:function(){a.getPlugin("clean").clean()}})}}});d.ui.editor.registerPlugin("clickToEdit",{init:function(a,b){var c=this,e=d(a.getTemplate("clicktoedit.message",b)).appendTo("body"),b=d.extend({},{obscureLinks:!1,
234
+ position:{at:"center center",of:a.getElement(),my:"center center",using:function(a){d(this).css({position:"absolute",top:a.top,left:a.left})}}},b);this.selection=function(){var a;document.selection?a=document.selection.createRange():document.getSelection().rangeCount&&(a=document.getSelection().getRangeAt(0));return a};this.show=function(){a.isEditing()||(a.getElement().addClass(b.baseClass+"-highlight"),a.getElement().addClass(b.baseClass+"-hover"),e.position(b.position),e.addClass(b.baseClass+"-visible"))};
235
+ this.hide=function(){a.getElement().removeClass(b.baseClass+"-highlight");a.getElement().removeClass(b.baseClass+"-hover");e.removeClass(b.baseClass+"-visible")};this.edit=function(){c.hide();a.isEditing()||a.enableEditing();a.isVisible()||a.showToolbar(c.selection())};e.position(b.position);b.obscureLinks||(a.getElement().find("a").bind("mouseenter."+a.widgetName,c.hide),a.getElement().find("a").bind("mouseleave."+a.widgetName,c.show));a.getElement().bind("mouseenter."+a.widgetName,c.show);a.getElement().bind("mouseleave."+
236
+ a.widgetName,c.hide);a.getElement().bind("click."+a.widgetName,function(a){(b.obscureLinks||!d(a.target).is("a")&&!d(a.target).parents("a").length)&&c.edit()});a.bind("destroy",function(){e.remove();a.getElement().unbind("mouseenter."+a.widgetName,c.show);a.getElement().unbind("mouseleave."+a.widgetName,c.hide);a.getElement().unbind("click."+a.widgetName,c.edit)})}});d.ui.editor.registerPlugin("dock",{enabled:!1,docked:!1,topSpacer:null,bottomSpacer:null,options:{docked:!1,dockToElement:!1,dockUnder:!1,
237
+ persist:!0,persistID:null},init:function(){this.bind("show",this.show);this.bind("hide",this.hide);this.bind("disabled",this.disable);this.bind("destroy",this.destroy,this)},show:function(){this.enabled?this.isDocked()&&this.showSpacers():((this.loadState()||this.options.docked)&&this.dock(),this.enabled=!0)},hide:function(){this.hideSpacers();this.editor.toolbar.css("width","auto")},showSpacers:function(){!this.options.dockToElement&&this.editor.toolbar.is(":visible")&&(this.topSpacer=d("<div/>").addClass(this.options.baseClass+
238
+ "-top-spacer").height(this.editor.toolbar.outerHeight()).prependTo("body"),this.bottomSpacer=d("<div/>").addClass(this.options.baseClass+"-bottom-spacer").height(this.editor.path.outerHeight()).appendTo("body"),this.editor.fire("resize"))},hideSpacers:function(){this.topSpacer&&(this.topSpacer.remove(),this.topSpacer=null);this.bottomSpacer&&(this.bottomSpacer.remove(),this.bottomSpacer=null);this.editor.fire("resize")},swapStyle:function(a,b,c){var d={},g;for(g in c)a.css(g,b.css(g)),d[g]=b.css(g),
239
+ b.css(g,c[g]);return d},revertStyle:function(a,b){for(var c in b)a.css(c,b[c])},dockToElement:function(){var a=d("<div/>").insertBefore(this.editor.getElement()).addClass(this.options.baseClass+"-docked-to-element-wrapper");this.editor.wrapper.appendTo(a);this.previousStyle=this.swapStyle(a,this.editor.getElement(),{display:"block","float":"none",clear:"none",position:"static","margin-left":0,"margin-right":0,"margin-top":0,"margin-bottom":0,outline:0,width:"auto"});a.css("width",a.width()+parseInt(this.editor.getElement().css("padding-left"),
240
+ 10)+parseInt(this.editor.getElement().css("padding-right"),10));this.editor.getElement().appendTo(this.editor.wrapper).addClass(this.options.baseClass+"-docked-element")},undockFromElement:function(){this.editor.getElement().insertAfter(this.editor.wrapper).removeClass(this.options.baseClass+"-docked-element");this.editor.wrapper.appendTo("body").removeClass(this.options.baseClass+"-docked-to-element")},dockToBody:function(){var a=0;d(this.options.dockUnder).length&&(a=d(this.options.dockUnder).outerHeight());
241
+ this.top=this.editor.toolbarWrapper.css("top");this.editor.toolbarWrapper.css("top",a);this.editor.wrapper.addClass(this.options.baseClass+"-docked");this.editor.messages.css("top",a+this.editor.toolbar.outerHeight())},undockFromBody:function(){this.editor.toolbarWrapper.css("top",this.top);this.editor.wrapper.removeClass(this.options.baseClass+"-docked");this.hideSpacers()},dock:function(){if(!this.docked){this.docked=this.saveState(!0);this.options.dockToElement?this.dockToElement():this.dockToBody();
242
+ var a=this.editor.wrapper.find("."+this.options.baseClass+"-button").button({icons:{primary:"ui-icon-pin-w"}});a.attr("title")?a.attr("title",this.getTitle()):a.attr("data-title",this.getTitle());this.editor.toolbar.find("."+this.editor.options.baseClass+"-inner").addClass("ui-widget-header");this.showSpacers()}},undock:function(){if(this.docked){this.docked=this.destroying?!1:this.saveState(!1);this.editor.toolbar.find("."+this.editor.options.baseClass+"-inner").removeClass("ui-widget-header");var a=
243
+ this.editor.wrapper.find("."+this.options.baseClass+"-button").button({icons:{primary:"ui-icon-pin-s"}});a.attr("title")?a.attr("title",this.getTitle()):a.attr("data-title",this.getTitle());this.options.dockToElement?this.undockFromElement():this.undockFromBody();this.editor.fire("resize")}},isDocked:function(){return this.docked},getTitle:function(){return this.isDocked()?f("Click to detach the toolbar"):f("Click to dock the toolbar")},saveState:function(a){if(this.persist)return this.persistID?
244
+ this.persist("docked:"+this.persistID,a):this.persist("docked",a),a},loadState:function(){return!this.persist?null:this.persistID?this.persist("docked:"+this.persistID):this.persist("docked")},disable:function(){this.hideSpacers()},destroy:function(){this.destroying=!0;this.undock()}});d.ui.editor.registerUi({dock:{init:function(a){return a.uiButton({title:a.getPlugin("dock").getTitle(),icon:a.getPlugin("dock").isDocked()?"ui-icon-pin-w":"ui-icon-pin-s",click:function(){var b=a.getPlugin("dock");
245
+ b.isDocked()?b.undock():b.dock();a.unify(function(a){b.isDocked()?a.getPlugin("dock").dock():a.getPlugin("dock").undock()})}})}}});d.ui.editor.registerUi({embed:{dialog:null,init:function(a){a.bind("hide",this.hide,this);return a.uiButton({icon:"ui-icon-youtube",title:f("Embed object"),click:function(){this.show()}})},hide:function(){this.dialog&&d(this.dialog).dialog("destroy").remove();this.dialog=null;d(this.ui.button).button("option","disabled",!1)},show:function(){if(!this.dialog){d(this.ui.button).button("option",
246
+ "disabled",!0);var a=this;a.editor.saveSelection();this.dialog=d(this.editor.getTemplate("embed.dialog"));this.dialog.dialog({modal:!1,width:600,height:400,resizable:!0,title:f("Paste Embed Code"),autoOpen:!0,dialogClass:a.options.baseClass+" "+a.options.dialogClass,buttons:[{text:f("Embed Object"),click:function(){a.editor.restoreSelection();a.editor.replaceSelection(d(this).find("textarea").val());d(this).dialog("close")}},{text:f("Close"),click:function(){a.hide()}}],open:function(){var a=d(this).parent().find(".ui-dialog-buttonpane");
247
+ a.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});a.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}});var c=d(this).find(".ui-editor-embed-panel-tabs");c.find("ul li").click(function(){c.find("ul li").removeClass("ui-state-active").removeClass("ui-tabs-selected");d(this).addClass("ui-state-active").addClass("ui-tabs-selected");c.children("div").hide().eq(d(this).index()).show()});var e=d(this).find(".ui-editor-embed-preview");d(this).find("textarea").change(function(){d(e).html(d(this).val())})},
248
+ close:function(){a.hide()}})}}}});d.ui.editor.registerPlugin("emptyElement",{options:{tag:"<p/>"},init:function(){this.bind("change",this.change)},change:function(){var a=this;this.textNodes(this.editor.getElement()).each(function(){d(this).wrap(d(a.options.tag));a.editor.selectEnd(this)})},textNodes:function(a){return d(a).contents().filter(function(){return 3==this.nodeType&&d.trim(this.nodeValue).length})}});d.ui.editor.registerUi({floatLeft:{init:function(a){return a.uiButton({title:f("Float Left"),
249
+ click:function(){a.toggleBlockStyle({"float":"left"},a.getElement())}})}},floatRight:{init:function(a){return a.uiButton({title:f("Float Right"),click:function(){a.toggleBlockStyle({"float":"right"},a.getElement())}})}},floatNone:{init:function(a){return a.uiButton({title:f("Float None"),click:function(){a.toggleBlockStyle({"float":"none"},a.getElement())}})}}});d.ui.editor.registerUi({fontSizeInc:{init:function(a,b){return a.uiButton({title:f("Increase Font Size"),click:function(){a.inverseWrapWithTagClass("big",
250
+ b.cssPrefix+"big","small",b.cssPrefix+"small")}})}},fontSizeDec:{init:function(a,b){return a.uiButton({title:f("Decrease Font Size"),click:function(){a.inverseWrapWithTagClass("small",b.cssPrefix+"small","big",b.cssPrefix+"big")}})}}});d.ui.editor.registerUi({showGuides:{init:function(a,b){a.bind("cancel",this.cancel,this);a.bind("destroy",this.cancel,this);return a.uiButton({title:f("Show Guides"),icon:"ui-icon-pencil",click:function(){a.getElement().toggleClass(b.baseClass+"-visible")}})},cancel:function(){this.editor.getElement().removeClass(this.options.baseClass+
251
+ "-visible")}}});d.ui.editor.registerUi({undo:{init:function(a){a.bind("change",this.change,this);return a.uiButton({title:f("Step Back"),disabled:!0,click:function(){a.historyBack()}})},change:function(){0===this.editor.present?this.ui.disable():this.ui.enable()}},redo:{init:function(a){a.bind("change",this.change,this);return this.ui=a.uiButton({title:f("Step Forward"),disabled:!0,click:function(){a.historyForward()}})},change:function(){this.editor.present===this.editor.history.length-1?this.ui.disable():
252
+ this.ui.enable()}}});d.ui.editor.registerPlugin("hotkeys",{options:{actions:[{ui:"textBold",key:"b",label:f("ctrl + b")},{ui:"textItalic",key:"i",label:f("ctrl + i")},{ui:"textUnderline",key:"u",label:f("ctrl + u")},{ui:"undo",key:"z",label:f("ctrl + z")},{ui:"redo",key:"y",label:f("ctrl + y")},{ui:"cancel",meta:!1,key:27,label:f("esc")},{ui:"save",key:"s",label:f("ctrl + s")}]},indexedActions:{},keyUpEventSignature:null,keyDownEventSignature:null,init:function(a){this.keyUpEventSignature="keyup."+
253
+ this.options.baseClass;this.keyDownEventSignature="keydown."+this.options.baseClass;a.bind("enabled",this.enabled,this);a.bind("disabled",this.disabled,this)},disabled:function(){d(q).unbind(this.keyUpEventSignature);d(q).unbind(this.keyDownEventSignature);this.indexedActions={}},enabled:function(){for(var a,b=0;b<this.options.actions.length;b++)if(a=this.options.actions[b],this.indexedActions[this.isNumeric(a.key)?a.key:a.key.charCodeAt(0)]=a,"undefined"!==typeof a.ui){var c=this.editor.getUi(a.ui);
254
+ "undefined"!==typeof c&&c.ui.button.attr("title",c.ui.title+" ("+a.label+")")}var e=this;d(q).bind(this.keyDownEventSignature,function(a){e.actionForKeyCombination.call(e,a)&&a.preventDefault()});d(q).bind(this.keyUpEventSignature,function(a){var b=e.actionForKeyCombination.call(e,a);b&&((d.isFunction(b.callback)?b.callback:function(){e.triggerUiAction(b.ui)}).call(e,a),a.preventDefault())})},actionForKeyCombination:function(a){var b=a.which;65<=b&&90>=b&&(b+=32);var c=this.indexedActions[b];if("undefined"===
255
+ typeof c||!(!1===c.meta||a.ctrlKey||a.metaKey))return!1;a=!1;return(a=this.isNumeric(c.key)?b===c.key:String.fromCharCode(b).toLowerCase()===c.key)?c:!1},triggerUiAction:function(a,b){var c=this.editor.getUi(a);"undefined"!==typeof c&&c.ui.click.apply(c,b)},isNumeric:function(a){return!isNaN(a-0)}});d.ui.editor.registerUi({hr:{init:function(a){return a.uiButton({title:f("Insert Horizontal Rule"),click:function(){a.replaceSelection("<hr/>")}})}}});d.ui.editor.registerUi({i18n:{init:function(a){var b=
256
+ this,c=this.persist("locale");c&&s(c);var c=d('<select autocomplete="off" name="i18n"/>'),e;for(e in o){var g=d('<option value="'+e+'" class="'+e+'"/>');g.html(i[e]);p===e&&g.attr("selected","selected");c.append(g)}return a.uiSelectMenu({title:f("Change Language"),select:c,change:function(a){s(b.persist("locale",a))}})}}});r("en","English",{"A preview of your embedded object is displayed below.":"A preview of your embedded object is displayed below.","Added link: {{link}}":"Added link: {{link}}",
257
+ "All changes will be lost!":"All changes will be lost!","Apply Source":"Apply Source","Are you sure you want to stop editing?":"Are you sure you want to stop editing?",Blockquote:"Blockquote",Bold:"Bold",Cancel:"Cancel","Center Align":"Center Align","Change HTML tag of selected element":"Change HTML tag of selected element","Change Language":"Change Language","Check this box to have the file open in a new browser window":"Check this box to have the file open in a new browser window","Check this box to have the link open in a new browser window":"Check this box to have the link open in a new browser window",
258
+ "Choose a link type:":"Choose a link type:","Click to begin editing":"Click to begin editing","Click to detach the toolbar":"Click to detach the toolbar","Click to dock the toolbar":"Click to dock the toolbar","Click to select all editable content":"Click to select all editable content","Click to select the contents of the '{{element}}' element":"Click to select the contents of the '{{element}}' element",Close:"Close","Confirm Cancel Editing":"Confirm Cancel Editing","Content Statistics":"Content Statistics",
259
+ "Content contains more than {{limit}} characters and may be truncated":"Content contains more than {{limit}} characters and may be truncated","Content will not be truncated":"Content will not be truncated","Copy the file's URL from your browser's address bar and paste it into the box above":"Copy the file's URL from your browser's address bar and paste it into the box above","Copy the web address from your browser's address bar and paste it into the box above":"Copy the web address from your browser's address bar and paste it into the box above",
260
+ "Decrease Font Size":"Decrease Font Size",Destroy:"Destroy",Divider:"Divider","Document or other file":"Document or other file","Edit Link":"Edit Link",Email:"Email","Email address":"Email address","Embed Code":"Embed Code","Embed Object":"Embed Object","Embed object":"Embed object","Ensure the file has been uploaded to your website":"Ensure the file has been uploaded to your website","Enter email address":"Enter email address","Enter subject":"Enter subject","Enter your URL":"Enter your URL","Failed to resize images (error {{error}})":"Failed to resize images (error {{error}})",
261
+ "Failed to save {{failed}} content block(s).":"Failed to save {{failed}} content block(s).","Find the page on the web you want to link to":"Find the page on the web you want to link to","Float Left":"Float Left","Float None":"Float None","Float Right":"Float Right","Formatted &amp; Cleaned":"Formatted &amp; Cleaned","Formatted Unclean":"Formatted Unclean","Heading&nbsp;1":"Heading&nbsp;1","Heading&nbsp;2":"Heading&nbsp;2","Heading&nbsp;3":"Heading&nbsp;3","Increase Font Size":"Increase Font Size",
262
+ Initializing:"Initializing",Insert:"Insert","Insert Horizontal Rule":"Insert Horizontal Rule","Insert Link":"Insert Link","Insert Snippet":"Insert Snippet",Italic:"Italic",Justify:"Justify","Learn More About the Raptor WYSIWYG Editor":"Learn More About the Raptor WYSIWYG Editor","Left Align":"Left Align","Link to a document or other file":"Link to a document or other file","Link to a page on this or another website":"Link to a page on this or another website","Link to an email address":"Link to an email address",
263
+ Location:"Location","N/A":"N/A","New window":"New window","No changes detected to save...":"No changes detected to save...","Not sure what to put in the box above?":"Not sure what to put in the box above?",OK:"OK","Open the uploaded file in your browser":"Open the uploaded file in your browser","Ordered List":"Ordered List","Page on this or another website":"Page on this or another website",Paragraph:"Paragraph","Paste Embed Code":"Paste Embed Code","Paste your embed code into the text area below.":"Paste your embed code into the text area below.",
264
+ "Plain Text":"Plain Text",Preview:"Preview",Raptorize:"Raptorize",Reinitialise:"Reinitialise","Remaining characters before the recommended character limit is reached":"Remaining characters before the recommended character limit is reached","Remove Link":"Remove Link","Remove unnecessary markup from editor content":"Remove unnecessary markup from editor content","Resizing image(s)":"Resizing image(s)","Right Align":"Right Align",Save:"Save","Saved {{saved}} out of {{dirty}} content blocks.":"Saved {{saved}} out of {{dirty}} content blocks.",
265
+ "Saving changes...":"Saving changes...","Select all editable content":"Select all editable content","Select {{element}} element":"Select {{element}} element","Show Guides":"Show Guides","Source Code":"Source Code","Step Back":"Step Back","Step Forward":"Step Forward",Strikethrough:"Strikethrough","Sub script":"Sub script","Subject (optional)":"Subject (optional)","Successfully saved {{saved}} content block(s).":"Successfully saved {{saved}} content block(s).","Super script":"Super script","The URL does not look well formed":"The URL does not look well formed",
266
+ "The email address does not look well formed":"The email address does not look well formed",'The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.':'The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.','The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.':'The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.',
267
+ "The url for the file you inserted doesn't look well formed":"The url for the file you inserted doesn't look well formed","The url for the link you inserted doesn't look well formed":"The url for the link you inserted doesn't look well formed","This block contains unsaved changes":"This block contains unsaved changes",Underline:"Underline","Unnamed Button":"Unnamed Button","Unnamed Select Menu":"Unnamed Select Menu","Unordered List":"Unordered List","Update Link":"Update Link","Updated link: {{link}}":"Updated link: {{link}}",
268
+ "View / Edit Source":"View / Edit Source","View Source":"View Source","\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes":"\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes","ctrl + b":"ctrl + b","ctrl + i":"ctrl + i","ctrl + s":"ctrl + s","ctrl + u":"ctrl + u","ctrl + y":"ctrl + y","ctrl + z":"ctrl + z",esc:"esc",root:"root","{{charactersRemaining}} characters over limit":"{{charactersRemaining}} characters over limit",
269
+ "{{charactersRemaining}} characters remaining":"{{charactersRemaining}} characters remaining","{{characters}} characters, {{charactersRemaining}} over the recommended limit":"{{characters}} characters, {{charactersRemaining}} over the recommended limit","{{characters}} characters, {{charactersRemaining}} remaining":"{{characters}} characters, {{charactersRemaining}} remaining","{{images}} image(s) have been replaced with resized versions":"{{images}} image(s) have been replaced with resized versions",
270
+ "{{sentences}} sentences":"{{sentences}} sentences","{{words}} word":"{{words}} word","{{words}} words":"{{words}} words"});r("fr","Fran\u00e7ais",{"A preview of your embedded object is displayed below.":"Un aper\u00e7u de votre objet int\u00e9gr\u00e9 est affich\u00e9 ci-dessous.","Added link: {{link}}":"Lien ajout\u00e9 : {{link}}","All changes will be lost!":"Toutes les modifications seront perdues !","Apply Source":"Appliquer la source","Are you sure you want to stop editing?":"\u00cates-vous s\u00fbr(e) de vouloir arr\u00eater la modification ?",
271
+ Blockquote:"Citation",Bold:"Gras",Cancel:"Annuler","Center Align":"Aligner au centre","Change HTML tag of selected element":"Modifier la balise HTML de l'\u00e9l\u00e9ment s\u00e9lectionn\u00e9","Change Language":"Changer de langue","Check this box to have the file open in a new browser window":"Cochez cette case pour ouvrir le fichier dans une nouvelle fen\u00eatre de navigateur","Check this box to have the link open in a new browser window":"Cochez cette case pour ouvrir le lien dans une nouvelle fen\u00eatre de navigateur",
272
+ "Choose a link type:":"Choisissez un type de lien :","Click to begin editing":"Cliquer pour commencer la modification","Click to detach the toolbar":"Cliquer pour d\u00e9tacher la barre d'outils","Click to dock the toolbar":"Cliquer pour ancrer la barre d'outils","Click to select all editable content":"Cliquer pour s\u00e9lectionner tout le contenu modifiable","Click to select the contents of the '{{element}}' element":"Cliquer pour s\u00e9lectionner le contenu de l'\u00e9l\u00e9ment '{{element}}'",
273
+ Close:"Fermer","Confirm Cancel Editing":"Confirmer l'annulation des modifications","Content Statistics":"Statistiques de contenu","Content contains more than {{limit}} characters and may be truncated":"Le contenu contient plus de {{limit}} caract\u00e8res et peut \u00eatre tronqu\u00e9","Content will not be truncated":"Le contenu ne sera pas tronqu\u00e9","Copy the file's URL from your browser's address bar and paste it into the box above":"Copiez l'URL du fichier depuis la barre d'adresse de votre navigateur et collez-la dans le champ ci-dessus",
274
+ "Copy the web address from your browser's address bar and paste it into the box above":"Copiez l'adresse web depuis la barre d'adresse de votre navigateur et collez-la dans le champ ci-dessus","Decrease Font Size":"Diminuer la taille de la police",Destroy:"D\u00e9truire",Divider:"Div","Document or other file":"Document ou autre fichier","Edit Link":"Modifier le lien",Email:"E-mail","Email address":"Adresse e-mail","Embed Code":"Code int\u00e9gr\u00e9","Embed Object":"Int\u00e9grer l'objet","Embed object":"Object int\u00e9gr\u00e9",
275
+ "Ensure the file has been uploaded to your website":"V\u00e9rifiez que le fichier a \u00e9t\u00e9 transf\u00e9r\u00e9 vers votre site","Enter email address":"Saisir l'adresse e-mail","Enter subject":"Saisir le sujet","Enter your URL":"Saisir l'URL","Failed to resize images (error {{error}})":"\u00c9chec de redimensionnement des images (erreur {{error}})","Failed to save {{failed}} content block(s).":"\u00c9chec d'enregistrement du(des) bloc(s) de contenu {{failed}}.","Find the page on the web you want to link to":"Trouvez la page web que vous voulez lier",
276
+ "Float Left":"Flotter \u00e0 gauche","Float None":"Ne pas flotter","Float Right":"Flotter \u00e0 droite","Formatted &amp; Cleaned":"Formatt\u00e9 &amp; Nettoy\u00e9","Formatted Unclean":"Formatt\u00e9 non nettoy\u00e9","Heading&nbsp;1":"Titre&nbsp;1","Heading&nbsp;2":"Titre&nbsp;2","Heading&nbsp;3":"Titre&nbsp;3","Increase Font Size":"Augmenter la taille de la police",Initializing:"Initialisation",Insert:"Ins\u00e9rer","Insert Horizontal Rule":"Ins\u00e9rer une r\u00e8gle horizontale","Insert Link":"Ins\u00e9rer un lien",
277
+ "Insert Snippet":"Ins\u00e9rer un bout de code",Italic:"Italique",Justify:"Justifier","Learn More About the Raptor WYSIWYG Editor":"En savoir plus sur l'\u00e9diteur WYSIWYG Raptor","Left Align":"Aligner \u00e0 gauche","Link to a document or other file":"Lier un document ou un autre fichier","Link to a page on this or another website":"Lier une page ou un autre site","Link to an email address":"Lier une adresse e-mail",Location:"Emplacement","N/A":"N/A","New window":"Nouvelle fen\u00eatre","No changes detected to save...":"Aucune modification d\u00e9tect\u00e9e \u00e0 enregistrer...",
278
+ "Not sure what to put in the box above?":"Pas s\u00fbr(e) de savoir quoi mettre dans le champ ci-dessus ?",OK:"OK","Open the uploaded file in your browser":"Ouvrir le fichier trasnf\u00e9r\u00e9 dans votre navigateur","Ordered List":"Liste ordonn\u00e9e","Page on this or another website":"Page sur ce site ou un autre site",Paragraph:"Paragraphe","Paste Embed Code":"Coller le code","Paste your embed code into the text area below.":"Collez votre code int\u00e9gr\u00e9 dans la zone de texte ci-dessous.",
279
+ "Plain Text":"Texte brut",Preview:"Aper\u00e7u",Raptorize:"Raptoriser",Reinitialise:"R\u00e9initialiser","Remaining characters before the recommended character limit is reached":"Caract\u00e8res restants avant que la limite de caract\u00e8re recommand\u00e9e ne soit atteinte","Remove Link":"Retirer le lien","Remove unnecessary markup from editor content":"Retirer le balisage non n\u00e9cessaire du contenu de l'\u00e9diteur","Resizing image(s)":"Redimensionnement de(s) image(s)","Right Align":"Aligner \u00e0 droite",
280
+ Save:"Enregistrer","Saved {{saved}} out of {{dirty}} content blocks.":"{{saved}} enregistr\u00e9 sur {{dirty}} blocs de contenu.","Saving changes...":"Enregistrement des modifications...","Select all editable content":"S\u00e9lectionner tout le contenu modifiable","Select {{element}} element":"S\u00e9lectionner l'\u00e9l\u00e9ment {{element}}","Show Guides":"Afficher les guides","Source Code":"Code source","Step Back":"En arri\u00e8re","Step Forward":"En avant",Strikethrough:"Barr\u00e9","Sub script":"Indice",
281
+ "Subject (optional)":"Sujet (facultatif)","Successfully saved {{saved}} content block(s).":"{{saved}} bloc(s) de contenu enregistr\u00e9(s) avec succ\u00e8s.","Super script":"Exposant","The URL does not look well formed":"L'URL para\u00eet malform\u00e9e","The email address does not look well formed":"L'adresse e-mail para\u00eet malform\u00e9e",'The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.':"L'image \"{{image}}\" est trop grande pour l'\u00e9l\u00e9ment en cours de modification.<br/>Elle a \u00e9t\u00e9 redimensionn\u00e9e en CSS.",
282
+ 'The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.':"L'image \"{{image}}\" est trop grande pour l'\u00e9l\u00e9ment en cours de modification.<br/>Elle sera remplac\u00e9e par une copie redimensionn\u00e9e quand vos modifications seront enregistr\u00e9es.","The url for the file you inserted doesn't look well formed":"L'url du fichier que vous avez ins\u00e9r\u00e9 para\u00eet malform\u00e9e","The url for the link you inserted doesn't look well formed":"L'url du lien que vous avez ins\u00e9r\u00e9 para\u00eet malform\u00e9e",
283
+ "This block contains unsaved changes":"Ce bloc contient des modifications non enregistr\u00e9es",Underline:"Soulign\u00e9","Unnamed Button":"Boutton sans nom","Unnamed Select Menu":"Menu de s\u00e9lection sans nom","Unordered List":"Liste non ordonn\u00e9e","Update Link":"Mettre \u00e0 jour le lien","Updated link: {{link}}":"Lien mis \u00e0 jour : {{link}}","View / Edit Source":"Voir / Modifier la source","View Source":"Voir la source","\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes":"\nIl y a des modifications non enregistr\u00e9es sur cette page. \nSi vous quittez cette page, vous perdrez vos modifications non enregistr\u00e9es",
284
+ "ctrl + b":"ctrl + b","ctrl + i":"ctrl + i","ctrl + s":"ctrl + s","ctrl + u":"ctrl + u","ctrl + y":"ctrl + y","ctrl + z":"ctrl + z",esc:"esc",root:"racine","{{charactersRemaining}} characters over limit":"{{charactersRemaining}} caract\u00e8res au-dessus de la limite","{{charactersRemaining}} characters remaining":"{{charactersRemaining}} caract\u00e8res restants","{{characters}} characters, {{charactersRemaining}} over the recommended limit":"{{characters}} caract\u00e8res, {{charactersRemaining}} au-dessus de la limite",
285
+ "{{characters}} characters, {{charactersRemaining}} remaining":"{{characters}} caract\u00e8res, {{charactersRemaining}} restants","{{images}} image(s) have been replaced with resized versions":"{{images}} image(s) a(ont) \u00e9t\u00e9 remplac\u00e9e(s) par une version redimensionn\u00e9e","{{sentences}} sentences":"{{sentences}} phrases","{{words}} word":"{{words}} mot","{{words}} words":"{{words}} mots"});r("zh_CN","\u7b80\u4f53\u4e2d\u6587",{"A preview of your embedded object is displayed below.":"A preview of your embedded object is displayed below.",
286
+ "Added link: {{link}}":"Added link: {{link}}","All changes will be lost!":"All changes will be lost!","Apply Source":"\u5e94\u7528\u6e90\u4ee3\u7801","Are you sure you want to stop editing?":"Are you sure you want to stop editing?",Blockquote:"\u5927\u6bb5\u5f15\u7528",Bold:"\u7c97\u4f53",Cancel:"\u53d6\u6d88","Center Align":"\u4e2d\u5fc3\u5bf9\u9f50\u6587\u672c","Change HTML tag of selected element":"Change HTML tag of selected element","Change Language":"\u6539\u53d8\u8bed\u8a00","Check this box to have the file open in a new browser window":"Check this box to have the file open in a new browser window",
287
+ "Check this box to have the link open in a new browser window":"Check this box to have the link open in a new browser window","Choose a link type:":"Choose a link type:","Click to begin editing":"Click to begin editing","Click to detach the toolbar":"Click to detach the toolbar","Click to dock the toolbar":"Click to dock the toolbar","Click to select all editable content":"Click to select all editable content","Click to select the contents of the '{{element}}' element":"Click to select the contents of the '{{element}}' element",
288
+ Close:"Close","Confirm Cancel Editing":"\u786e\u8ba4\u53d6\u6d88\u7f16\u8f91","Content Statistics":"Content Statistics","Content contains more than {{limit}} characters and may be truncated":"Content contains more than {{limit}} characters and may be truncated","Content will not be truncated":"Content will not be truncated","Copy the file's URL from your browser's address bar and paste it into the box above":"Copy the file's URL from your browser's address bar and paste it into the box above","Copy the web address from your browser's address bar and paste it into the box above":"Copy the web address from your browser's address bar and paste it into the box above",
289
+ "Decrease Font Size":"Decrease Font Size",Destroy:"Destroy",Divider:"Divider","Document or other file":"Document or other file","Edit Link":"Edit Link",Email:"Email","Email address":"\u7535\u5b50\u90ae\u4ef6","Embed Code":"Embed Code","Embed Object":"Embed Object","Embed object":"Embed object","Ensure the file has been uploaded to your website":"Ensure the file has been uploaded to your website","Enter email address":"Enter email address","Enter subject":"Enter subject","Enter your URL":"Enter your URL",
290
+ "Failed to resize images (error {{error}})":"Failed to resize images (error {{error}})","Failed to save {{failed}} content block(s).":"Failed to save {{failed}} content block(s).","Find the page on the web you want to link to":"Find the page on the web you want to link to","Float Left":"Float Left","Float None":"Float None","Float Right":"Float Right","Formatted &amp; Cleaned":"Formatted &amp; Cleaned","Formatted Unclean":"Formatted Unclean","Heading&nbsp;1":"Heading&nbsp;1","Heading&nbsp;2":"Heading&nbsp;2",
291
+ "Heading&nbsp;3":"Heading&nbsp;3","Increase Font Size":"Increase Font Size",Initializing:"Initializing",Insert:"Insert","Insert Horizontal Rule":"\u63d2\u5165\u6c34\u5e73\u7ebf","Insert Link":"Insert Link","Insert Snippet":"Insert Snippet",Italic:"\u659c\u4f53\u5b57",Justify:"\u5bf9\u9f50\u6587\u5b57","Learn More About the Raptor WYSIWYG Editor":"Learn More About the Raptor WYSIWYG Editor","Left Align":"\u5de6\u5bf9\u9f50\u6587\u672c","Link to a document or other file":"Link to a document or other file",
292
+ "Link to a page on this or another website":"Link to a page on this or another website","Link to an email address":"Link to an email address",Location:"Location","N/A":"N/A","New window":"New window","No changes detected to save...":"No changes detected to save...","Not sure what to put in the box above?":"Not sure what to put in the box above?",OK:"\u786e\u5b9a","Open the uploaded file in your browser":"Open the uploaded file in your browser","Ordered List":"Ordered List","Page on this or another website":"Page on this or another website",
293
+ Paragraph:"Paragraph","Paste Embed Code":"Paste Embed Code","Paste your embed code into the text area below.":"Paste your embed code into the text area below.","Plain Text":"Plain Text",Preview:"Preview",Raptorize:"Raptorize",Reinitialise:"Reinitialise","Remaining characters before the recommended character limit is reached":"Remaining characters before the recommended character limit is reached","Remove Link":"Remove Link","Remove unnecessary markup from editor content":"Remove unnecessary markup from editor content",
294
+ "Resizing image(s)":"Resizing image(s)","Right Align":"\u53f3\u5bf9\u9f50\u6587\u672c",Save:"\u5b58\u50a8","Saved {{saved}} out of {{dirty}} content blocks.":"Saved {{saved}} out of {{dirty}} content blocks.","Saving changes...":"\u4fdd\u5b58\u66f4\u6539...","Select all editable content":"Select all editable content","Select {{element}} element":"Select {{element}} element","Show Guides":"\u7eb2\u8981","Source Code":"Source Code","Step Back":"Step Back","Step Forward":"Step Forward",Strikethrough:"Strikethrough",
295
+ "Sub script":"Sub script","Subject (optional)":"Subject (optional)","Successfully saved {{saved}} content block(s).":"Successfully saved {{saved}} content block(s).","Super script":"Super script","The URL does not look well formed":"The URL does not look well formed","The email address does not look well formed":"The email address does not look well formed",'The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.':'The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.',
296
+ 'The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.':'The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.',"The url for the file you inserted doesn't look well formed":"The url for the file you inserted doesn't look well formed","The url for the link you inserted doesn't look well formed":"The url for the link you inserted doesn't look well formed",
297
+ "This block contains unsaved changes":"This block contains unsaved changes",Underline:"\u4e0b\u5212\u7ebf","Unnamed Button":"Unnamed Button","Unnamed Select Menu":"Unnamed Select Menu","Unordered List":"Unordered List","Update Link":"Update Link","Updated link: {{link}}":"Updated link: {{link}}","View / Edit Source":"View / Edit Source","View Source":"View Source","\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes":"\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes",
298
+ "ctrl + b":"ctrl + b","ctrl + i":"ctrl + i","ctrl + s":"ctrl + s","ctrl + u":"ctrl + u","ctrl + y":"ctrl + y","ctrl + z":"ctrl + z",esc:"esc",root:"\u672c","{{charactersRemaining}} characters over limit":"{{charactersRemaining}} characters over limit","{{charactersRemaining}} characters remaining":"{{charactersRemaining}} characters remaining","{{characters}} characters, {{charactersRemaining}} over the recommended limit":"{{characters}} characters, {{charactersRemaining}} over the recommended limit",
299
+ "{{characters}} characters, {{charactersRemaining}} remaining":"{{characters}} characters, {{charactersRemaining}} remaining","{{images}} image(s) have been replaced with resized versions":"{{images}} image(s) have been replaced with resized versions","{{sentences}} sentences":"{{sentences}} sentences","{{words}} word":"{{words}} word","{{words}} words":"{{words}} words"});d.ui.editor.registerPlugin("imageResize",{options:{allowOversizeImages:!1,manuallyResizingClass:"",resizeButtonClass:"",resizeAjax:!1,
300
+ resizingClass:"",resizeAjaxClass:"",ajax:{url:"/",type:"post",cache:!1}},init:function(a){this.options=d.extend(this.options,{manuallyResizingClass:this.options.baseClass+"-manually-resize",resizeButtonClass:this.options.baseClass+"-resize-button",resizingClass:this.options.baseClass+"-in-progress",resizeAjaxClass:this.options.baseClass+"-on-save"});a.bind("enabled",this.bind,this)},bind:function(){this.options.allowOversizeImages||(this.addImageListeners(),this.editor.bind("change",this.scanForOversizedImages,
301
+ this),this.editor.bind("save",this.save,this));this.editor.bind("destroy",this.cancel,this);this.editor.bind("cancel",this.cancel,this);this.editor.getElement().on("mouseenter."+this.options.baseClass,"img",d.proxy(this.imageMouseEnter,this));this.editor.getElement().on("mouseleave."+this.options.baseClass,"img",d.proxy(this.imageMouseLeave,this))},unbind:function(){this.options.allowOversizeImages||(this.removeImageListeners(),this.editor.unbind("change",this.scanForOversizedImages,this));this.editor.getElement().off("mouseenter."+
302
+ this.options.baseClass,"img");this.editor.getElement().off("mouseleave."+this.options.baseClass,"img")},addImageListeners:function(){this.resized=d.proxy(this.imageResizedByUser,this);var a=this;this.editor.getElement().find("img").each(function(){this.addEventListener&&this.addEventListener("DOMAttrModified",a.resized,!1);this.attachEvent&&this.attachEvent("onpropertychange",a.resized)})},removeImageListeners:function(){var a=this;this.editor.getElement().find("img").each(function(){this.removeEventListener&&
303
+ this.addEventListener("DOMAttrModified",a.resized,!1);this.detachEvent&&this.detachEvent("onpropertychange",a.resized)})},imageResizedByUser:function(a){var b=d(a.target);b.is("img")&&b.attr("_moz_resizing")&&"style"==a.attrName&&a.newValue.match(/width|height/)&&(this.options.resizeAjax&&b.addClass(this.options.resizeAjaxClass),this.editor.fire("change"))},scanForOversizedImages:function(){var a=this.editor.getElement(),b=[];d(a.find("img")).each(function(){(a.height()<d(this).outerHeight()||a.width()<
304
+ d(this).outerWidth())&&b.push(d(this))});b.length&&this.resizeOversizedImages(b,a.width(),a.height())},resizeOversizedImages:function(a,b,c){for(var e=d("<a>",{href:"",target:"_blank"}),g=0;g<a.length;g++){var f=a[g],n=f.outerWidth(),i=f.outerHeight(),k=Math.min(b/n,c/i),n=Math.abs(k*(n-(f.outerWidth()-f.width()))),i=Math.abs(k*(i-(f.outerHeight()-f.height())));f.addClass(this.options.resizingClass);e=e.html(f.attr("title")||f.attr("src").substr(f.attr("src").lastIndexOf("/")+1)).attr("href",f.attr("src"));
305
+ d(f).css({width:n,height:i}).attr("height",i).attr("width",n);this.options.resizeAjax&&f.addClass(this.options.resizeAjaxClass);var l=this;this.showOversizeWarning(this.editor.outerHtml(e),{hide:function(){f.removeClass(l.options.resizingClass)}})}},cancel:function(){this.removeClasses();this.removeToolsButtons();this.unbind()},save:function(){this.removeClasses(this.options.resizingClass);this.options.resizeAjax&&this.resizeImagesAjax();this.removeToolsButtons();this.unbind()},resizeImagesAjax:function(){var a=
306
+ this,b=[];d("."+this.options.resizeAjaxClass).each(function(){d(this).attr("id")||d(this).attr("id",a.editor.getUniqueId());b.push({id:d(this).attr("id"),src:this.src,width:d(this).width(),height:d(this).height()})});if(b.length){var c=this.editor.showLoading(f("Resizing image(s)")),e=this.options.ajax;e.data={images:b};e.async=!1;d.ajax(e).done(function(e){d(e).each(function(){d("#"+this.id).attr("src",this.src).removeAttr("id")});a.editor.fire("change");c.hide();a.editor.showConfirm(f("{{images}} image(s) have been replaced with resized versions",
307
+ {images:b.length}))}).fail(function(b){c.hide();a.editor.showError(f("Failed to resize images (error {{error}})",{error:b.status}))}).always(function(){a.removeClasses([a.options.resizeAjaxClass])})}},showOversizeWarning:function(a,b){this.options.resizeAjax?this.editor.showInfo(f('The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.',{image:a}),b):this.editor.showInfo(f('The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.',
308
+ {image:a}),b)},removeClasses:function(a){a||(a=[this.options.resizingClass,this.options.resizeAjaxClass,this.options.manuallyResizingClass]);d.isArray(a)||(a=[a]);for(var b=0;b<a.length;b++)this.editor.getElement().find("img."+a[b]).removeClass(a[b])},manuallyResizeImage:function(){this.removeToolsButtons();var a=this.editor.getElement().find("img."+this.options.manuallyResizingClass),b=d(a).innerWidth(),c=d(a).innerHeight(),e="#"+this.options.baseClass+"-width",g="#"+this.options.baseClass+"-height",
309
+ h=this,n=function(){d(a).css({width:Math.round(d(e).val())+"px",height:Math.round(d(g).val())+"px"})};d(this.editor.getTemplate("imageresize.manually-resize-image",{width:b,height:c,baseClass:this.options.baseClass})).dialog({modal:!0,resizable:!1,title:f("Modify Image Size"),buttons:[{text:f("Resize Image"),click:function(){n();d(this).dialog("close")}},{text:f("Cancel"),click:function(){d(this).dialog("close")}}],close:function(){h.editor.fire("change")},open:function(){var a=d(this).find(e),f=
310
+ d(this).find(g);a.keyup(function(){f.val(Math.round(Math.abs(c/b*d(this).val())));n()});f.keyup(function(){a.val(Math.round(Math.abs(b/c*d(this).val())));n()})}}).dialog("open")},displayToolsButtonRelativeToImage:function(a){var b=d("<button/>").appendTo("body").addClass(this.options.resizeButtonClass).button({text:!1,icons:{primary:"ui-icon-tools"}});b.css({position:"absolute",left:d(a).innerWidth()-d(b).outerWidth()-20+"px",marginTop:"20px"}).click(d.proxy(this.manuallyResizeImage,this));d(a).before(b)},
311
+ removeToolsButtons:function(){this.editor.getElement().find("."+this.options.resizeButtonClass).each(function(){d(this).remove()})},imageMouseEnter:function(a){d(a.target).addClass(this.options.manuallyResizingClass);this.displayToolsButtonRelativeToImage(a.target)},imageMouseLeave:function(a){d(a.relatedTarget).hasClass(this.options.resizeButtonClass)||(d(a.target).removeClass(this.options.manuallyResizingClass),this.removeToolsButtons())}});d.ui.editor.registerUi({length:{ui:null,options:{length:150},
312
+ init:function(a){a.bind("show",d.proxy(this.updateCount,this));a.bind("change",d.proxy(this.updateCount,this));return this.ui=this.editor.uiButton({title:f("Remaining characters before the recommended character limit is reached"),label:f("Initializing"),text:!0,icon:"ui-icon-dashboard",click:function(){this.showStatistics()}})},updateCount:function(){var a=this.options.length-d("<div></div>").html(this.editor.getCleanHtml()).text().length,b=this.ui.button,c=null,c=0<=a?f("{{charactersRemaining}} characters remaining",
313
+ {charactersRemaining:a}):f("{{charactersRemaining}} characters over limit",{charactersRemaining:-1*a});b.button("option","label",c);b.button("option","text",!0);0>a?b.addClass("ui-state-error"):0<=a&&15>=a?b.addClass("ui-state-highlight").removeClass("ui-state-error"):b.removeClass("ui-state-highlight ui-state-error")},showStatistics:function(){this.processTemplate().dialog({modal:!0,resizable:!1,title:f("Content Statistics"),dialogClass:this.editor.options.dialogClass+" "+this.editor.options.baseClass,
314
+ show:this.editor.options.dialogShowAnimation,hide:this.editor.options.dialogHideAnimation,buttons:[{text:f("OK"),click:function(){d(this).dialog("close")}}],open:function(){d(this).parent().find(".ui-dialog-buttonpane").find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}})},close:function(){d(this).dialog("destroy").remove()}})},processTemplate:function(){var a=d("<div></div>").html(this.editor.getCleanHtml()).text(),b=null,c=this.options.length-a.length,b=0>c?f("Content contains more than {{limit}} characters and may be truncated",
315
+ {limit:this.options.length}):f("Content will not be truncated"),e=null,e=a.split(" ").length,e=1==e?f("{{words}} word",{words:e}):f("{{words}} words",{words:e}),g=null,g=a.split(". ").length,g=f("{{sentences}} sentences",{sentences:g}),h=null,h=0<=c?f("{{characters}} characters, {{charactersRemaining}} remaining",{characters:a.length,charactersRemaining:c}):f("{{characters}} characters, {{charactersRemaining}} over the recommended limit",{characters:a.length,charactersRemaining:-1*c});return d(this.editor.getTemplate("length.dialog",
316
+ {characters:h,words:e,sentences:g,truncation:b}))}}});d.ui.editor.registerPlugin("link",{visible:null,dialog:null,types:{},defaultLinkTypes:[{type:"external",title:f("Page on this or another website"),focusSelector:'input[name="location"]',init:function(){this.content=this.plugin.editor.getTemplate("link.external",this.options);return this},show:function(a,b){var c=this;a.find('input[name="location"]').bind("keyup",function(){c.validate(a)});b&&(a.find('input[name="location"]').val(this.plugin.selectedElement.attr("href")).trigger("keyup"),
317
+ "_blank"===this.plugin.selectedElement.attr("target")&&a.find('input[name="blank"]').attr("checked","checked"));return this},attributes:function(a){var b={href:a.find('input[name="location"]').val()};a.find('input[name="blank"]').is(":checked")&&(b.target="_blank");this.options.regexLink.test(b.href)||this.plugin.editor.showWarning(f("The url for the link you inserted doesn't look well formed"));return b},validate:function(a){var b="."+this.options.baseClass+"-error-message-url",c=!0;this.options.regexLink.test(a.find('input[name="location"]').val())?
318
+ a.find(b).has(":visible").hide():(a.find(b).size()||a.find('input[name="location"]').after(this.plugin.editor.getTemplate("link.error",d.extend({},this.options,{messageClass:this.options.baseClass+"-error-message-url",message:f("The URL does not look well formed")}))),a.find(b).not(":visible").show(),c=!1);return c}},{type:"email",title:f("Email address"),focusSelector:'input[name="email"]',init:function(){this.content=this.plugin.editor.getTemplate("link.email",this.options);return this},show:function(a,
319
+ b){var c=this;a.find('input[name="email"]').bind("keyup",function(){c.validate(a)});b&&(a.find('input[name="email"]').val(this.plugin.selectedElement.attr("href").replace(/(mailto:)|(\?Subject.*)/gi,"")).trigger("keyup"),/\?Subject\=/i.test(this.plugin.selectedElement.attr("href"))&&a.find('input[name="subject"]').val(decodeURIComponent(this.plugin.selectedElement.attr("href").replace(/(.*\?Subject=)/i,""))));return this},attributes:function(a){var b={href:"mailto:"+a.find('input[name="email"]').val()};
320
+ if(a=a.find('input[name="subject"]').val())b.href=b.href+"?Subject="+encodeURIComponent(a);return b},validate:function(a){var b="."+this.options.baseClass+"-error-message-email",c=!0;this.options.regexEmail.test(a.find('input[name="email"]').val())?a.find(b).has(":visible").hide():(a.find(b).size()||a.find('input[name="email"]').after(this.plugin.editor.getTemplate("link.error",d.extend({},this.options,{messageClass:this.options.baseClass+"-error-message-email",message:f("The email address does not look well formed")}))),
321
+ a.find(b).not(":visible").show(),c=!1);return c}},{type:"fileUrl",title:f("Document or other file"),focusSelector:'input[name="location"]',init:function(){this.content=this.plugin.editor.getTemplate("link.file-url",this.options);return this},show:function(a,b){var c=this;a.find('input[name="location"]').bind("keyup",function(){c.validate(a)});b&&(a.find('input[name="location"]').val(this.plugin.selectedElement.attr("href")).trigger("click"),"_blank"===this.plugin.selectedElement.attr("target")&&a.find('input[name="blank"]').attr("checked",
322
+ "checked"));return this},attributes:function(a){var b={href:a.find('input[name="location"]').val()};a.find('input[name="blank"]').is(":checked")&&(b.target="_blank");this.options.regexLink.test(b.href)||this.plugin.editor.showWarning(f("The url for the file you inserted doesn't look well formed"));return b},validate:function(a){var b="."+this.options.baseClass+"-error-message-file-url",c=!0;this.options.regexLink.test(a.find('input[name="location"]').val())?a.find(b).has(":visible").hide():(a.find(b).size()||
323
+ a.find('input[name="location"]').after(this.plugin.editor.getTemplate("link.error",d.extend({},this.options,{messageClass:this.options.baseClass+"-error-message-file-url",message:f("The URL does not look well formed")}))),a.find(b).not(":visible").show(),c=!1);return c}}],init:function(a,b){this.options=d.extend({},{panelAnimation:"fade",replaceTypes:!1,customTypes:[],typeDataName:"uiWidgetEditorLinkType",dialogWidth:750,dialogHeight:"auto",dialogMinWidth:670,regexLink:/^(http|https|ftp):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i,
324
+ regexEmail:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/},b);a.bind("save",this.repairLinks,this);a.bind("cancel",this.cancel,this)},initTypes:function(){this.types={};for(var a={type:null,title:null,content:null,plugin:this,options:this.options,attributes:function(){},init:function(){return this},show:function(){},editing:function(a){if(a.attr("class"))for(var b=this.classes.split(/\s/gi),c=0;c<b.length;c++)if(b[c].trim()&&
325
+ d(a).hasClass(b[c]))return!0;return!1},focusSelector:null,focus:function(){if(this.focusSelector){var a=d(this.focusSelector),b=a.val();a.val("");a.focus().val(b)}}},b=null,b=this.options.replaceTypes?this.options.customTypes:d.merge(this.defaultLinkTypes,this.options.customTypes),c,e=0;e<b.length;e++)c=d.extend({},a,b[e],{classes:this.options.baseClass+"-"+b[e].type}).init(),this.types[c.type]=c},show:function(){if(!this.visible){this.selectedElement=this.editor.getSelectedElements().first();var a=
326
+ this.selectedElement.is("a"),b=this.options,c=m.saveSelection(),e=this,g=this.dialog=d(this.editor.getTemplate("link.dialog",b)).appendTo("body");this.initTypes();var h=this.dialog.find("fieldset"),n;for(n in this.types)d(this.editor.getTemplate("link.label",this.types[n])).appendTo(h);h.find('input[type="radio"]').bind("change."+this.editor.widgetName,function(){e.typeChange(e.types[d(this).val()],a)});g.dialog({autoOpen:!1,modal:!0,resizable:!0,width:b.dialogWidth,minWidth:b.dialogMinWidth,height:b.dialogHeight,
327
+ title:a?f("Edit Link"):f("Insert Link"),dialogClass:b.baseClass+" "+b.dialogClass,buttons:[{text:a?f("Update Link"):f("Insert Link"),click:function(){m.restoreSelection(c);e.apply(a)?d(this).dialog("close"):c=m.saveSelection()}},{text:f("Cancel"),click:function(){m.restoreSelection(c);d(this).dialog("close")}}],beforeopen:function(){e.dialog.find("."+e.options.baseClass+"-content").hide()},open:function(){e.visible=!0;var b=g.parent().find(".ui-dialog-buttonpane");b.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});
328
+ b.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}});var c=g.find('.ui-editor-link-menu input[type="radio"]');c.first().attr("checked","checked");var f=!1;if(a)for(var h in e.types)if(f=e.types[h].editing(e.selectedElement)){c.filter('[value="'+h+'"]').attr("checked","checked");e.typeChange(e.types[h],a);break}(!a||a&&!f)&&e.typeChange(e.types[c.filter(":checked").val()],a);d(this).unbind("keyup."+e.editor.widgetName).bind("keyup."+e.editor.widgetName,function(a){13==a.keyCode&&
329
+ (a=e.types[c.filter(":checked").val()],(!d.isFunction(a.validate)||a.validate(e.dialog.find("."+e.options.baseClass+"-content")))&&b.find("button:eq(0)").trigger("click"))})},close:function(){e.visible=!1;g.find("."+b.baseClass+"-content").hide();d(this).dialog("destroy")}}).dialog("open")}},apply:function(a){var b=this.types[this.dialog.find('input[type="radio"]:checked').val()],c=b.attributes(this.dialog.find("."+this.options.baseClass+"-content"),a);if(!c)return!0;var e=this.editor.outerHtml(d("<a>"+
330
+ (c.title?c.title:c.href)+"</a>").attr(d.extend({},c,{target:"_blank"})));a?(this.selectedElement[0].className=this.selectedElement[0].className.replace(RegExp(this.options.baseClass+"-[a-zA-Z]+","g"),""),this.selectedElement.addClass(b.classes).attr(c),this.editor.showConfirm(f("Updated link: {{link}}",{link:e}))):(this.editor.wrapTagWithAttribute("a",d.extend(c,{id:this.editor.getUniqueId()}),b.classes),this.editor.showConfirm(f("Added link: {{link}}",{link:e})),this.selectedElement=d("#"+c.id).removeAttr("id"));
331
+ this.selectedElement.data(this.options.baseClass+"-href",c.href);return!0},typeChange:function(a,b){var c=this.dialog.find("."+this.options.baseClass+"-content"),e=c.closest("."+this.options.baseClass+"-wrap"),g=a.ajaxUri&&!this.types[a.type].content;g&&e.addClass(this.options.baseClass+"-loading");var f=this;c.hide(this.options.panelAnimation,function(){g?d.ajax({url:a.ajaxUri,type:"get",success:function(g){c.html(g);f.types[a.type].content=g;e.removeClass(f.options.baseClass+"-loading");a.show(c,
332
+ b);c.show(f.options.panelAnimation,d.proxy(a.focus,a))}}):(c.html(a.content),a.show(c,b),c.show(f.options.panelAnimation,d.proxy(a.focus,a)))})},remove:function(){this.editor.unwrapParentTag("a")},repairLinks:function(){var a=this;this.editor.getElement().find('a[class^="'+this.options.baseClass+'"]').each(function(){d(this).data(a.options.baseClass+"-href")&&d(this).attr("href",d(this).data(a.options.baseClass+"-href"))})},cancel:function(){this.dialog&&d(this.dialog.dialog("close"))}});d.ui.editor.registerUi({link:{init:function(a){a.bind("selectionChange",
333
+ this.change,this);return a.uiButton({title:f("Insert Link"),click:function(){a.getPlugin("link").show()}})},change:function(){this.editor.getSelectedElements().length?this.ui.enable():this.ui.disable()}},unlink:{init:function(a){a.bind("selectionChange",this.change,this);a.bind("show",this.change,this);return a.uiButton({title:f("Remove Link"),click:function(){a.getPlugin("link").remove()}})},change:function(){this.editor.getSelectedElements().is("a")?this.ui.enable():this.ui.disable()}}});d.ui.editor.registerPlugin("list",
334
+ {options:{},validParents:"blockquote,body,button,center,dd,div,fieldset,form,iframe,li,noframes,noscript,object,td,th".split(","),validChildren:"a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,dfn,em,font,i,iframe,img,input,kbd,label,map,object,p,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var".split(","),toggleList:function(a){d(this.editor.getSelectedElements()).is("li")&&d(this.editor.getSelectedElements()).parent().is(a)?this.unwrapList():this.wrapList(a);this.editor.fire("selectionChange");
335
+ this.editor.fire("change")},unwrapList:function(){this.editor.saveSelection();var a=[],b=[],c=this.editor.getSelectionStartElement(),e=this.editor.getSelectionEndElement();a.push(d(c).html());b.push(c);if(d(c)[0]!==d(e)[0]){var g=c;do g=d(g).next(),a.push(d(g).html()),b.push(g);while(d(g)[0]!==d(e)[0])}g=0===d(c).prev().length;e=0===d(e).next().length;c=d(c).parent();for(listElementsIndex=0;listElementsIndex<b.length;listElementsIndex++)d(b[listElementsIndex]).remove();for(b=0;b<a.length;b++)c.parent().is("li")||
336
+ (a[b]="<p>"+a[b]+"</p>");g&&e?(this.editor.selectOuter(c),this.editor.replaceSelection(a.join(""))):(g?d(c).before(a.join("")):e?d(c).after(a.join("")):this.editor.replaceSelectionSplittingSelectedElement(a.join("")),this.editor.restoreSelection())},wrapList:function(a){var b=d("<div>").html(this.editor.getSelectedHtml()),c=[],e=this;d(b).contents().each(function(){var a;a="block"===e.getElementDefaultDisplay(this.tagName)?e.editor.stripTags(d(this).html(),e.validChildren):e.editor.stripTags(e.editor.outerHtml(d(this)),
337
+ e.validChildren);a=d("<li>"+a+"</li>");""!==d.trim(a.text())&&c.push(e.editor.outerHtml(a))});c.length||c.push("<li>List element content</li>");b=this.options.baseClass+"-selection";a="<"+a+' class="'+b+'">'+c.join("")+"</"+a+">";this.editor.restoreSelection();this.editor.replaceSelectionWithinValidTags(a,this.validParents);this.editor.selectInner(d(this.editor.getElement().find("."+b).removeClass(b)).find("li:first")[0])},getElementDefaultDisplay:function(a){var b,a=document.createElement(a);b="getComputedStyle"in
338
+ q;document.body.appendChild(a);b=(b?q.getComputedStyle(a,""):a.currentStyle).display;document.body.removeChild(a);return b}});d.ui.editor.registerUi({listUnordered:{init:function(a){return a.uiButton({title:f("Unordered List"),click:function(){a.getPlugin("list").toggleList("ul")}})}},listOrdered:{init:function(a){return a.uiButton({title:f("Ordered List"),click:function(){a.getPlugin("list").toggleList("ol")}})}}});d.ui.editor.registerUi({logo:{ui:null,init:function(){return this.ui=this.editor.uiButton({title:f("Learn More About the Raptor WYSIWYG Editor"),
339
+ click:function(){q.open("http://www.jquery-raptor.com/about/editors/","_blank")},ready:function(){var a=function(b){var c=typeof b;if("object"!=c||null===b)return"string"==c&&(b='"'+b+'"'),""+b;var e=[],f=b&&d.isArray(b);d.each(b,function(b,d){c=typeof d;"string"==c?d='"'+d+'"':"object"==c&null!==d&&(d=a(d));e.push((f?"":'"'+b+'":')+(""+d))});return(f?"[":"{")+(""+e)+(f?"]":"}")},b={enableUi:this.options.enableUi,enablePlugins:this.options.enablePlugins,disabledPlugins:a(this.options.disabledPlugins),
340
+ ui:a(this.options.ui),t:(new Date).getTime()},c=[],e;for(e in b)c.push(e+"="+encodeURIComponent(b[e]));this.ui.button.find(".ui-button-icon-primary").css({"background-image":"url(http://www.jquery-raptor.com/logo/0.0.7?"+c.join("&")+")"})}})}}});d.ui.editor.registerPlugin("paste",{options:{allowedTags:"h1,h2,h3,h4,h5,h6,div,ul,ol,li,blockquote,p,a,span".split(",")},init:function(a,b){var c=!1,e=!1,g=this;a.getElement().bind("paste."+a.widgetName,d.proxy(function(){if(c)return!1;c=!0;a.saveSelection();
341
+ d(".uiWidgetEditorPasteBin").length&&d(".uiWidgetEditorPasteBin").remove();d('<div class="uiWidgetEditorPasteBin" contenteditable="true" style="width: 1px; height: 1px; overflow: hidden; position: fixed; top: -1px;" />').appendTo("body");d(".uiWidgetEditorPasteBin").focus();q.setTimeout(function(){var h=d(".uiWidgetEditorPasteBin").html(),h=g.filterAttributes(h),h=g.filterChars(h),h=g.editor.stripTags(h,g.options.allowedTags),h=g.stripEmpty(h),h={html:h,plain:d("<div/>").html(h).text(),markup:g.stripAttributes(h)};
342
+ e=d(a.getTemplate("paste.dialog",h));e.find(".ui-editor-paste-area").bind("keyup."+a.widgetname,function(){g.updateAreas(this,e)});d(e).dialog({modal:!0,width:650,height:500,resizable:!0,title:"Paste",position:"center",show:b.dialogShowAnimation,hide:b.dialogHideAnimation,dialogClass:b.baseClass+" "+b.dialogClass,buttons:[{text:f("Insert"),click:function(){var b=null,b=d(this).find(".ui-editor-paste-area:visible"),b=b.hasClass("ui-editor-paste-plain")||b.hasClass("ui-editor-paste-source")?b.val():
343
+ b.html(),b=g.filterAttributes(b),b=g.filterChars(b);a.restoreSelection();a.replaceSelection(b);c=!1;d(this).dialog("close")}},{text:f("Cancel"),click:function(){a.restoreSelection();c=!1;d(this).dialog("close")}}],open:function(){var a=d(this).find(".ui-editor-paste-panel-tabs");a.find("ul li").click(function(){a.find("ul li").removeClass("ui-state-active").removeClass("ui-tabs-selected");d(this).addClass("ui-state-active").addClass("ui-tabs-selected");a.children("div").hide().eq(d(this).index()).show()});
344
+ var b=e.parent().find(".ui-dialog-buttonpane");b.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});b.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}})},close:function(){c=!1;d(this).dialog("destroy").remove()}});d(".uiWidgetEditorPasteBin").remove()},0);return!0},this))},filterAttributes:function(a){d.each([{regexp:/(<meta\s*[^>]*\s*>)|(<\s*link\s* href="file:[^>]*\s*>)|(<\/?\s*\w+:[^>]*\s*>)/gi,handler:""},{regexp:/(class="Mso[^"]*")|(<\!--(.|\s){1,}?--\>)/gi,
345
+ handler:""},{regexp:/(class="Apple-(style|converted)-[a-z]+\s?[^"]+")/,handle:""},{regexp:/id="internal-source-marker_[^"]+"|dir="[rtl]{3}"/,handle:""},{regexp:/(<p[^>]*>\s*(\&nbsp;|\u00A0)*\s*<\/p[^>]*>)|(<p[^>]*>\s*<font[^>]*>\s*(\&nbsp;|\u00A0)*\s*<\/\s*font\s*>\s<\/p[^>]*>)/ig,handler:""},{regexp:/(style="[^"]*mso-[^;][^"]*")|(style="margin:\s*[^;"]*;")/gi,handler:""},{regexp:/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,
346
+ handler:""},{regexp:/(<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>)|(<\s*script\b([^<>]|\s)*>?)|(<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>)/ig,handler:""}],function(b,c){a=a.replace(c.regexp,c.handler)});return a},filterChars:function(a){a=a.replace(/[\u2018|\u2019|\u201A]/g,"'");a=a.replace(/[\u201C|\u201D|\u201E]/g,'"');a=a.replace(/\u2026/g,"...");a=a.replace(/[\u2013|\u2014]/g,"-");a=a.replace(/\u02C6/g,"^");a=a.replace(/\u2039/g,"<");a=a.replace(/\u203A/g,">");return a=a.replace(/[\u02DC|\u00A0]/g,
347
+ " ")},stripAttributes:function(a){a=d("<div/>").html(a);d(a.find("*")).each(function(){var a=d.map(this.attributes,function(a){return a.name}),c=d(this);d.each(a,function(a,b){try{c.removeAttr(b)}catch(d){}})});return a.html()},stripEmpty:function(a){a=d("<div/>").html(a);a.find("*").filter(function(){return""===d.trim(d(this).text())}).remove();return a.html()},updateAreas:function(a,b){var c=b.find('.ui-editor-paste-synchronize-text input[type="checkbox"]'),e=d(a).is("textarea")?d(a).val():d(a).html();
348
+ c.attr("checked")&&(d(a).hasClass("ui-editor-paste-plain")||b.find(".ui-editor-paste-plain").val(d("<div/>").html(e).text()),d(a).hasClass("ui-editor-paste-rich")||b.find(".ui-editor-paste-rich").html(e),d(a).hasClass("ui-editor-paste-source")||b.find(".ui-editor-paste-source").html(e),d(a).hasClass("ui-editor-paste-markup")||b.find(".ui-editor-paste-markup").html(this.stripAttributes(e)))}});d.ui.editor.registerPlugin("placeholder",{init:function(a,b){b=d.extend({},{content:"[Your content here]",
349
+ tag:"p",select:!0},b);this.show=function(){if(!d.trim(a.getElement().html())){var c=d(document.createElement(b.tag)).html(b.content);a.getElement().html(c);b.select&&a.selectInner(c)}};a.bind("show",this.show)}});d.ui.editor.registerPlugin("saveJson",{options:{id:{attr:"name"},postName:"content",showResponse:!1,appendId:!1,ajax:{url:"/",type:"post",cache:!1}},init:function(){},getId:function(){if("string"===typeof this.options.id)return this.options.id;if("function"===typeof this.options.id)return this.options.id.apply(this,
350
+ [this.editor.getOriginalElement()]);if(this.options.id.attr){var a=this.editor.getOriginalElement().attr(this.options.id.attr);if(a)return a}return null},getData:function(){var a={};a[this.getId()]=this.editor.save();return a},save:function(){this.message=this.editor.showLoading(f("Saving changes..."));var a={},b=0;this.editor.unify(function(c){c.isDirty()&&(b++,c=c.getPlugin("saveJson"),d.extend(a,c.getData()))});this.dirty=b;this.requests=this.failed=this.saved=0;this.ajax(a)},done:function(a){this.options.multiple?
351
+ this.saved++:this.saved=this.dirty;this.options.showResponse&&this.editor.showConfirm(a,{delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})},fail:function(a){this.options.multiple?this.failed++:this.failed=this.dirty;this.options.showResponse&&this.editor.showError(a.responseText)},always:function(){this.dirty===this.saved+this.failed&&(this.options.showResponse||(0<this.failed&&0===this.saved?this.editor.showError(f("Failed to save {{failed}} content block(s).",
352
+ this)):0<this.failed?this.editor.showError(f("Saved {{saved}} out of {{dirty}} content blocks.",this)):this.editor.showConfirm(f("Successfully saved {{saved}} content block(s).",this),{delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})),this.message.hide(),this.message=null)},ajax:function(a,b){var c=d.extend(!0,{},this.options.ajax);d.isFunction(c.data)?c.data=c.data.apply(this,[b,a]):this.options.postName&&(c.data={},c.data[this.options.postName]=JSON.stringify(a));
353
+ d.isFunction(c.url)&&(c.url=c.url.apply(this,[b]));this.requests++;d.ajax(c).done(d.proxy(this.done,this)).fail(d.proxy(this.fail,this)).always(d.proxy(this.always,this))}});d.ui.editor.registerPlugin("saveRest",{options:{showResponse:!1,ajax:{url:"/",type:"post",cache:!1}},init:function(){},getId:function(){if("string"===typeof this.options.id)return this.options.id;if(this.options.id.attr){var a=this.editor.getOriginalElement().attr(this.options.id.attr);if(a)return a}return null},getData:function(){this.getId();
354
+ this.editor.save();return this.editor.save()},save:function(){this.message=this.editor.showLoading(f("Saving changes..."));var a=this.requests=this.failed=this.saved=0;this.editor.unify(function(b){if(b.isDirty()){a++;var b=b.getPlugin("saveRest"),c=b.editor.save();b.ajax(c)}});this.dirty=a;0===a&&(this.message.hide(),this.editor.showInfo(f("No changes detected to save...")))},done:function(a){this.options.multiple?this.saved++:this.saved=this.dirty;this.options.showResponse&&this.editor.showConfirm(a,
355
+ {delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})},fail:function(a){this.options.multiple?this.failed++:this.failed=this.dirty;this.options.showResponse&&this.editor.showError(a.responseText)},always:function(){this.dirty===this.saved+this.failed&&(this.options.showResponse||(0<this.failed&&0===this.saved?this.editor.showError(f("Failed to save {{failed}} content block(s).",this)):0<this.failed?this.editor.showError(f("Saved {{saved}} out of {{dirty}} content blocks.",
356
+ this)):this.editor.showConfirm(f("Successfully saved {{saved}} content block(s).",this),{delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})),this.message.hide(),this.message=null)},ajax:function(a,b){var c=d.extend(!0,{},this.options.ajax);d.isFunction(c.data)?c.data=c.data.apply(this,[b,a]):this.options.postName&&(c.data={},c.data[this.options.postName]=JSON.stringify(a));d.isFunction(c.url)&&(c.url=c.url.apply(this,[b]));this.requests++;d.ajax(c).done(d.proxy(this.done,
357
+ this)).fail(d.proxy(this.fail,this)).always(d.proxy(this.always,this))}});d.ui.editor.registerUi({save:{options:{plugin:"saveJson"},init:function(a){return a.uiButton({title:f("Save"),icon:"ui-icon-save",click:function(){a.getPlugin(this.options.plugin).save()}})}}});d.ui.editor.registerPlugin({snippet:{ids:[],enabled:!1,init:function(a,b){if(b.snippets){for(var c=0,d=b.snippets.length;c<d;c++)this.createSnippet(b.snippets[c],a);a.bind("restore",this.createButtons,this);a.bind("save",this.disable,
358
+ this);a.bind("cancel",this.disable,this);a.bind("enabled",this.enable,this);a.bind("disabled",this.disable,this)}},createSnippet:function(){},enable:function(){this.enabled=!0;this.createButtons()},disable:function(){this.removeButtons();this.enabled=!1},createButtons:function(){for(var a=this.editor,b=0,c=this.options.snippets.length;b<c;b++){var d=this.options.snippets[b];d.repeatable&&this.createButton(d,a)}},createButton:function(a,b){if(this.enabled){var c=this,e=b.getUniqueId();this.ids.push(e);
359
+ var g=d("<button/>").addClass(c.options.baseClass).addClass(c.options.baseClass+"-button").addClass(c.options.baseClass+"-button-"+a.name).addClass(e).text("Add").click(function(){c.insertSnippet.call(c,a,b,this)}),f=a.buttonAfter||b.getElement();d.isFunction(f)?f.call(this,g,a):g.insertAfter(f);d("."+e).button({icons:{primary:"ui-icon-plusthick"}})}},removeButtons:function(){if(this.enabled){for(var a=0,b=this.ids.length;a<b;a++)d("."+this.ids[a]).remove();a=0;for(b=this.options.snippets.length;a<
360
+ b;a++){var c=this.options.snippets[a];d.isFunction(c.clean)&&c.clean.call(c,this,this.editor)}}},insertSnippet:function(a,b,c){var e=d(a.template).html(),f=a.appendTo||b.getElement();d.isFunction(f)?f.call(this,e,a,c):d(e).appendTo(f);b.disableEditing();b.enableEditing()}}});d.ui.editor.registerUi({tagMenu:{init:function(a){a.bind("selectionChange",this.change,this);a.bind("show",this.change,this);var b=this;return a.uiSelectMenu({name:"tagMenu",title:f("Change HTML tag of selected element"),select:d(a.getTemplate("tagmenu.menu")),
361
+ change:function(c){"undefined"===typeof c||"na"===c?b.change():a.tagSelectionWithin(c,a.getElement())}})},change:function(){var a=this.editor.getSelectedElements()[0];a&&(a=a.tagName.toLowerCase(),this.ui.select.find("option[value="+a+"]").length?this.ui.val(a):this.ui.val("na"))}}});d.ui.editor.registerPlugin("toolbarTip",{init:function(){d.browser.msie||this.bind("show, tagTreeUpdated",function(){d(".ui-editor-wrapper [title]").each(function(){d(this).attr("data-title",d(this).attr("title"));d(this).removeAttr("title")})})}});
362
+ (function(){var a=null,b=0;d.ui.editor.registerPlugin("unsavedEditWarning",{options:{},init:function(c){a||(a=d(c.getTemplate("unsavededitwarning.warning",this.options)).attr("id",c.getUniqueId()).appendTo("body"));var e=this;c.bind("dirty",function(){b++;0<b&&a.addClass(e.options.baseClass+"-visible")});c.bind("cleaned",function(){b--;0===b&&a.removeClass(e.options.baseClass+"-visible")})},show:function(){},hide:function(){},reposition:function(){}})})();d.ui.editor.registerUi({viewSource:{dialog:null,
363
+ init:function(a){a.bind("hide",this.hide,this);return a.uiButton({title:f("View / Edit Source"),click:function(){this.show()}})},tab:function(){return" "},highlightSource:function(){return"undefined"!==typeof q.Rainbow},untidyHtml:function(a){a=d("<div/>").html(a);d(a).find("span.support").each(function(){d(this).contents().unwrap()});a=a.html();a=a.replace(/&lt;/g,"<");a=a.replace(/&gt;/g,">");return a=a.replace(/&amp;/g,"&")},tidyHtml:function(a){if("undefined"===typeof HTMLParser)return a;var b=
364
+ 0,c="",d=this;HTMLParser(a,{start:function(a,f,i){for(var k=0;k<b;k++)c+=d.tab();c+="<"+a;for(k=0;k<f.length;k++)c+=" "+f[k].name+'="'+f[k].escaped+'"';c+=(i?"/":"")+">";b++},end:function(a){c+="</"+a+">";b--},chars:function(a){c+=a},comment:function(a){c+="<\!--"+a+"--\>"}});return c},prepareSource:function(a){if(this.highlightSource()){var b=this.tidyHtml(d.trim(this.editor.getHtml())),a=d(a).find("."+this.options.baseClass+"-highlighted"),c=function(a,b,f){var a=d(a),i=a.find("code:first");i.unbind("keydown keyup");
365
+ i.attr("contenteditable",!0);Rainbow.color(b,"html",function(b){i.html(b);a.show();var g=function(){var a=m.getSelection();return a.rangeCount?a.getRangeAt(0):null},k="";i.bind("keydown",function(a){k=i.html();switch(a.keyCode){case 13:var b=g(),c=!1,d=document.createTextNode("\r\n");b&&(b.insertNode(d),b.setEndAfter(d),b.setStartAfter(d),c=m.getSelection(),c.setSingleRange(b),c=!0);c&&a.preventDefault();return!1;case 9:return b=g(),a=document.createTextNode(f.tab()),b&&(b.insertNode(a),c=m.getSelection(),
366
+ b.setEndAfter(a),b.setStartAfter(a),c.setSingleRange(b)),!1}});var l=!1;i.bind("keydown",function(){l=!0});i.bind("keyup",function(){l=!1;q.setTimeout(function(){if(!l){if(k==i.html())return!0;try{var b=f.untidyHtml(i.html());d("<div/>").html(b).html()==b&&c(a,b,f)}catch(g){console.log("error")}}},5E3)})})};c(a,b,this)}else d(a).find("textarea").val(d.trim(this.editor.getHtml())),d(a).find("."+this.options.baseClass+"-plain-text").show()},hide:function(){this.dialog&&d(this.dialog).dialog("destroy").remove();
367
+ this.dialog=null;d(this.ui.button).button("option","disabled",!1)},show:function(){if(!this.dialog){d(this.ui.button).button("option","disabled",!0);var a=this;this.dialog=d(this.editor.getTemplate("viewsource.dialog",{baseClass:a.options.baseClass}));this.dialog.dialog({modal:!1,width:600,height:400,resizable:!0,title:f("View Source"),autoOpen:!0,dialogClass:a.options.baseClass+" "+a.options.dialogClass,buttons:[{text:f("Apply Source"),click:function(){var b;a.highlightSource()?(b=d(this).find("."+
368
+ a.options.baseClass+"-highlighted pre code:first").html(),b=a.untidyHtml(b)):b=d(this).find("textarea").val();a.editor.setHtml(b);d(this).find("textarea").val(a.editor.getHtml())}},{text:f("Close"),click:function(){a.hide()}}],open:function(){var b=d(this).parent().find(".ui-dialog-buttonpane");b.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});b.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}});a.prepareSource.call(a,this)},close:function(){a.hide()}})}}}})})(jQuery,
369
+ window,rangy);
370
+ jQuery('<style type="text/css">.ui-editor-wrapper{overflow:visible;z-index:1001;position:fixed}.ui-editor-wrapper .ui-editor-toolbar{padding:6px 0 0 5px;overflow:visible}.ui-editor-wrapper .ui-editor-toolbar,.ui-editor-wrapper .ui-editor-toolbar *{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ui-editor-wrapper .ui-dialog-titlebar .ui-editor-element-path:first-child{margin-left:5px}.ui-editor-wrapper .ui-dialog-titlebar .ui-editor-element-path{min-width:10px;min-height:15px;display:inline-block}.ui-editor-dock-docked-to-element .ui-editor-toolbar{padding:5px 0 0 5px!important}.ui-editor-dock-docked-to-element .ui-editor-toolbar .ui-editor-group{margin:0 5px 5px 0}.ui-editor-dock-docked-element{display:block!important;border:0 none transparent;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-wrapper textarea,.ui-editor-wrapper input{padding:5px}.ui-editor-wrapper .ui-dialog-content{font-size:13px}.ui-editor-wrapper textarea{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1}html body div.ui-dialog div.ui-dialog-titlebar a.ui-dialog-titlebar-close span.ui-icon{margin-top:0!important}.ui-editor-wrapper textarea,.ui-editor-wrapper input{border:1px solid #d4d4d4}.ui-editor-wrapper .ui-dialog-content{font-size:13px}html body div.ui-wrapper div.ui-dialog-titlebar a.ui-dialog-titlebar-close span.ui-icon{margin-top:0!important}.ui-editor-path{padding:5px;font-size:13px}.ui-editor-selectmenu{overflow:visible;position:relative}.ui-editor-selectmenu-button{text-align:left;padding:3px 18px 5px 5px!important}.ui-editor-selectmenu-button .ui-icon{position:absolute;right:1px;top:8px}.ui-editor-selectmenu-button .ui-selectmenu-text{font-size:13px}.ui-editor-selectmenu-wrapper{position:relative}.ui-editor-selectmenu-button .ui-button-text{padding:0 25px 0 5px}.ui-editor-selectmenu-button .ui-icon{background-repeat:no-repeat}.ui-editor-selectmenu-menu{position:absolute;top:100%;left:0;right:auto;display:none;margin-top:-1px!important}.ui-editor-selectmenu-visible .ui-editor-selectmenu-menu{display:block;z-index:1}.ui-editor-selectmenu-menu-item{padding:5px;margin:3px;z-index:1;text-align:left;font-size:13px;font-weight:normal!important;border:1px solid transparent;cursor:pointer;background-color:inherit}.ui-selectmenu-button{background:#f5f5f5;border:1px solid #ccc}.ui-editor-buttonset .ui-selectmenu-button:first-child{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;-ms-border-top-left-radius:5px;-o-border-top-left-radius:5px;border-top-left-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;-ms-border-bottom-left-radius:5px;-o-border-bottom-left-radius:5px;border-bottom-left-radius:5px}.ui-editor-buttonset .ui-selectmenu-button:last-child{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;-ms-border-top-right-radius:5px;-o-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;-ms-border-bottom-right-radius:5px;-o-border-bottom-right-radius:5px;border-bottom-right-radius:5px}.ui-editor-buttonset .ui-editor-selectmenu-visible .ui-editor-selectmenu-button{-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;-ms-border-bottom-left-radius:0;-o-border-bottom-left-radius:0;border-bottom-left-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;-ms-border-bottom-right-radius:0;-o-border-bottom-right-radius:0;border-bottom-right-radius:0}.ui-editor-buttonset{float:left;margin:0 5px 4px 0;display:inline-block}.ui-editor-buttonset>.ui-button{float:left;display:block;margin:0 -1px 0 0;font-size:13px}.ui-editor-buttonset .ui-button:hover{z-index:1}.ui-editor-buttonset .ui-editor-selectmenu{display:block}.ui-editor-buttonset .ui-editor-selectmenu .ui-button{margin:0 -1px 0 0}.ui-editor-ff .ui-editor-buttonset{float:none;vertical-align:top}.ui-editor-wrapper .ui-button{height:32px;margin-bottom:0;margin-top:0;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-wrapper .ui-button-icon-only{width:32px}.ui-editor-wrapper .ui-editor-buttonset>.ui-button{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}.ui-editor-wrapper .ui-editor-buttonset>.ui-button:first-child{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;-ms-border-top-left-radius:5px;-o-border-top-left-radius:5px;border-top-left-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;-ms-border-bottom-left-radius:5px;-o-border-bottom-left-radius:5px;border-bottom-left-radius:5px}.ui-editor-wrapper .ui-editor-buttonset>.ui-button:last-child{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;-ms-border-top-right-radius:5px;-o-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;-ms-border-bottom-right-radius:5px;-o-border-bottom-right-radius:5px;border-bottom-right-radius:5px}.ui-button-icon-only .ui-button-text{display:none}.ui-editor-unsupported{position:relative}.ui-editor-unsupported-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:black;filter:alpha(opacity=50);opacity:.5}.ui-editor-unsupported-content{position:fixed;top:50%;left:50%;margin:-200px 0 0 -300px;width:600px;height:400px}.ui-editor-unsupported-input{position:absolute;bottom:10px}.ui-editor-unsupported-content{padding:10px;background-color:white;border:1px solid #777}.ui-editor-messages{margin:0}.ui-editor-messages .ui-editor-message-close{cursor:pointer;float:right}.ui-editor-messages .ui-icon{margin:0 0 3px 3px}.ui-editor-messages .ui-icon,.ui-editor-messages .ui-editor-message{display:inline-block;vertical-align:top}.ui-editor-messages .ui-editor-message-wrapper{padding:3px 3px 3px 1px;-webkit-box-shadow:inset 0 -1px 1px rgba(0,0,0,0.35),inset 0 1px 2px rgba(255,255,255,0.5);-moz-box-shadow:inset 0 -1px 1px rgba(0,0,0,0.35),inset 0 1px 2px rgba(255,255,255,0.5);box-shadow:inset 0 -1px 1px rgba(0,0,0,0.35),inset 0 1px 2px rgba(255,255,255,0.5)}.ui-editor-messages .ui-editor-message-wrapper:first-child{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;-ms-border-top-right-radius:5px;-o-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;-ms-border-top-left-radius:5px;-o-border-top-left-radius:5px;border-top-left-radius:5px}.ui-editor-messages .ui-editor-message-wrapper:last-child{-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;-ms-border-bottom-right-radius:5px;-o-border-bottom-right-radius:5px;border-bottom-right-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;-ms-border-bottom-left-radius:5px;-o-border-bottom-left-radius:5px;border-bottom-left-radius:5px}.ui-editor-messages .ui-editor-message-circle-close{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmNWQ0YiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZhMWMxYyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#ff5d4b),color-stop(100%,#fa1c1c));background:-webkit-linear-gradient(top,#ff5d4b,#fa1c1c);background:-moz-linear-gradient(top,#ff5d4b,#fa1c1c);background:-o-linear-gradient(top,#ff5d4b,#fa1c1c);background:-ms-linear-gradient(top,#ff5d4b,#fa1c1c);background:linear-gradient(top,#ff5d4b,#fa1c1c)}.ui-editor-messages .ui-editor-message-circle-check{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2NkZWI4ZSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2E1Yzk1NiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#cdeb8e),color-stop(100%,#a5c956));background:-webkit-linear-gradient(top,#cdeb8e,#a5c956);background:-moz-linear-gradient(top,#cdeb8e,#a5c956);background:-o-linear-gradient(top,#cdeb8e,#a5c956);background:-ms-linear-gradient(top,#cdeb8e,#a5c956);background:linear-gradient(top,#cdeb8e,#a5c956)}.ui-editor-messages .ui-editor-message-info{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2E5ZTRmNyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzBmYjRlNyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#a9e4f7),color-stop(100%,#0fb4e7));background:-webkit-linear-gradient(top,#a9e4f7,#0fb4e7);background:-moz-linear-gradient(top,#a9e4f7,#0fb4e7);background:-o-linear-gradient(top,#a9e4f7,#0fb4e7);background:-ms-linear-gradient(top,#a9e4f7,#0fb4e7);background:linear-gradient(top,#a9e4f7,#0fb4e7)}.ui-editor-messages .ui-editor-message-alert{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZDY1ZSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZlYmYwNCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#ffd65e),color-stop(100%,#febf04));background:-webkit-linear-gradient(top,#ffd65e,#febf04);background:-moz-linear-gradient(top,#ffd65e,#febf04);background:-o-linear-gradient(top,#ffd65e,#febf04);background:-ms-linear-gradient(top,#ffd65e,#febf04);background:linear-gradient(top,#ffd65e,#febf04)}.ui-editor-messages .ui-editor-message-clock{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZiODNmYSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2U5M2NlYyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#fb83fa),color-stop(100%,#e93cec));background:-webkit-linear-gradient(top,#fb83fa,#e93cec);background:-moz-linear-gradient(top,#fb83fa,#e93cec);background:-o-linear-gradient(top,#fb83fa,#e93cec);background:-ms-linear-gradient(top,#fb83fa,#e93cec);background:linear-gradient(top,#fb83fa,#e93cec)}.ui-editor-messages .ui-editor-message-clock .ui-icon.ui-icon-clock{background:transparent url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAOXRFWHRTb2Z0d2FyZQBBbmltYXRlZCBQTkcgQ3JlYXRvciB2MS42LjIgKHd3dy5waHBjbGFzc2VzLm9yZyl0zchKAAAAOnRFWHRUZWNobmljYWwgaW5mb3JtYXRpb25zADUuMi4xNzsgYnVuZGxlZCAoMi4wLjM0IGNvbXBhdGlibGUpCBSqhQAAAAhhY1RMAAAACAAAAAC5PYvRAAAAGmZjVEwAAAAAAAAAEAAAABAAAAAAAAAAAAA8A+gAAIIkGDIAAACsSURBVDiNtZLBCcMwDEUfJgOUjhAyQsmp9FA8TgfISj6F4gl66jSdIIf00G9wnLjYKf3w0Qch6Us2fMdVLMYx0haYRZsrMJEegZdiDj3gFFeT54jBiU2mO+XdVvdRyV0OYidVMEAH3AEPHGoboMKwuy+seYqLV9iNTpM90P7S6AQMitXogYnPHSbyz2SAC9HqQVigkW7If90z8FAsctCyvMvKQdpkSOzfxP/hDd++JCi8XmbFAAAAGmZjVEwAAAABAAAAEAAAABAAAAAAAAAAAAA8A+gAABlX8uYAAAC3ZmRBVAAAAAI4jaWQsQ3CQBAEB4cECFGCI1fiAlyFKwARWgSIeqjCNTh0gIjIkBw9gffFSfz74VlpdX/W3Xr3YBmlmIUSmMSoSGHee+CmGsMGaFU/cAecqnVh/95qpg0J/O0gCytgDRzUX4DnryIn5lwO6L7c6fxskRhMwkc4qj+TEcFjC9SqWcsj8x3GhMgu9LHmfUinvgKuYmWWp5BIyEFvBPuUAy9ibzAYgWEhUhQN8BCb2NALKY4q8wCrG7AAAAAaZmNUTAAAAAMAAAAQAAAAEAAAAAAAAAAAADwD6AAA9MEhDwAAAKhmZEFUAAAABDiNY2CgMTgNxTgBExLbh4GB4SCUxgeMcEkcZmBg+A+lcQETqBoTbJI+UM1ku4AiEATFZIEQBoi//kPZxIAAKEaJBYpACAm24wUSBORVGBgYUqA0BtjKAAmHrXg0f4aq+YxuiAQDIiD/Q/k8DAwMdVDMw8DAkIamJo2QCyYjKZ4MtfErlP8VlzeQw2AlkgErkbyBMwzQgRoDA8N+KMapAQDdvyovpG6D8gAAABpmY1RMAAAABQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZC1N1AAAAsWZkQVQAAAAGOI21kkEOgjAURF9YGBbGtYcwLowrwxk8BMcg3XACD9djGJaujKmLTkMRCiXEl0ympYX8+Xz4M62UpIjWR8DI59inDgzg5CkOwEs+YnMFmzhJOdwAK1UAZ+ANfLRewuJ75QAb/kKRvp/HmggVPxHWsAMu8hEN8JRPUdLnt9oP6HTYRc/uEsCVvnlO+wFGFYRJrKPLdU4FU5HCB0KsEt+DxZfBj+xDSo7vF9AbJ9PxYV81AAAAGmZjVEwAAAAHAAAAEAAAABAAAAAAAAAAAAA8A+gAAPSdgJwAAADDZmRBVAAAAAg4jaWSTQrCMBCFP6NIT5AjCF6gJ6jbUnoCL1biDTyF5AAueoZu3LkSrAtHTEJiIn3wmCTz92YILMQ64++BPTDKXQMH4AbcAZQTvAEasTFo4AqcxeowoAFmsSk1s8M+DChRMEnyFFNQAg10sWSFv49cESPUn+RRWFLE8N2DKe2axaIR/sU25eiAi9gUBt6zDzGnFad13nZCgAr/I1UxBdZRUAMPYV2iIETrdGudd28Hqx8FFHCU8wl4xoJeZnUrSRiyCSsAAAAaZmNUTAAAAAkAAAAQAAAAEAAAAAAAAAAAADwD6AAAGe6xwAAAALtmZEFUAAAACjiNpZJBCsIwEEWfpUsPULoSl55Beh4J7nqCHkDceR3pIaSr4Ak8Qq2L/khomlrig+FPhszwJy3EqYCHolq4F6UDBkWnWgbspN+CT7EwMAPuwFM67aUAem/IdIW952jQOeCXg1bN7ZyDNQRvsEkYkgNG+S1XcpHWKwacgatzlLLH2z/8vUJCf5wSaKQxToCVBjSM37jxaluFw+qOXeOgBF4KVzNqNkH3DAfGX7tXnsRREeUD4f8lQGjw+ycAAAAaZmNUTAAAAAsAAAAQAAAAEAAAAAAAAAAAADwD6AAA9HhiKQAAAJ9mZEFUAAAADDiNtZDLCcMwEEQfIUcXoDpCKgg6qIRUEtKB6wg6poDgalyFTj7YBw+2QyRlCc6DYVm0n9FCGQc8JFepWzgBN0WACIxS/NZ8BgYVD8pzA1ogKb5x3xSPyp0a4+YLSe/J4iBH0QF83uCvXKSFq2TBs97KH/Y1ZsdL+3IEgmJt86u0PTAfJlQGdKrprA6ekslBjl76mUYqMgFhpStJaQVr0gAAABpmY1RMAAAADQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZshBTAAAAu2ZkQVQAAAAOOI21kCEOwkAQRR8rKkkFCtmjkJ4ARTgBArViT4LjLJwBgUZUr8NBQlrR38Am3XYEvOTnT7PzuzO7IE8BHFWfgNdELwBLYCMH8EAr+VzIyUvgBlzkZaZ/D1zlCfXXba2+C93sVaNwK08ogUaHzcQEu9wE0O9e83kDEw7YAhG4K/ww5CoJFB52j8bwU6rcTLOJYYWo2kKywk9Zz5yvgCAfDb9nfhLoHztYJzhIpgnGOEv/owMnkSfarUXVlAAAAABJRU5ErkJggg==\') no-repeat center center}.ui-editor-align-left-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAItJREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAjWYrEN2VYPbAZR1QUb0WxEZmPD1lR3wTYCttpSJQxg6mE0sgt2E/AzCLMBMTsQcwCxAskuQE722FwwEYiNsNjKClR8EUjH4w2DActMFBsAEGAAnS84DrgEl1wAAAAASUVORK5CYII=\') 0 0}.ui-editor-align-left-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-align-right-button .ui-icon{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIxJREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAvYjGYrMhuEHanugo0EbETH1jQPg714bGcGYhOqu2A3AT+DMBvQQnYgzQHECiS7ADnZw9j4wmA61J+sQMUcUFtBtrMC8TEg9kNxwYBlJooNAAgwAJo0OAu5XKT8AAAAAElFTkSuQmCC\') 0 0}.ui-editor-align-right-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-align-center-button .ui-icon{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAI1JREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAlswGErjO2KrJiqLtiIw0Zc2JpmYbCTgM2WFIUBTD2MRnbBbgI2gzAbELMDMQcQK5DsAuRkj80FMDAFiI2RbGUFKuaA2noGiEOwhsGAZSaKDQAIMAB/BzgOq8akNwAAAABJRU5ErkJggg==\') 0 0}.ui-editor-align-center-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-align-justify-button .ui-icon{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJFJREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAjWYrEN2VZkNgg7Ut0FGwnYiI6tqe6CbUTYCsPMQGxCdRfsJsJmNqCF7ECaA4gVSHYBcrKHsZFdMBGIjbDYygpUzAG1FWQ7KxAfA2I/FBcMWGai2ACAAAMAvPA4C7ttvJ4AAAAASUVORK5CYII=\') 0 0}.ui-editor-align-justify-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-bold-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKRJREFUeNpi/P//PwMlgImBQjDwBrCgmMbEpA2kGnGofQ3E9UD86t+/fzhdcBWIpwExMxQ3AHEIEK8BYgkgdsLrAih4A8SsaBYwQcWYiDGAEcmAbiwuJBiIIAPYoLgfiMuBeBmUXwHEXIQMYEIy4BUQXwDiy1C+HBBrEPKCDBCzwwwDpVRGRkZksU8ozkVOykCFVkBqOZ5oB3lpAoqe0bzAABBgANfuIyxmXKp/AAAAAElFTkSuQmCC\') 0 0}.ui-editor-text-bold-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-italic-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAH1JREFUeNpi/P//PwMlgImBQjDwBrBgmMgEN1MbiBvRpOv//ft3FUUEFIjImJGRERnrAPF6IO6BiaGrZyLCi6xAvJDcMLAA4j9AfJlcA/yBeCe5sWAExAJAfIKkWIAFJBAUATE7kM+M143ooQoEVkD8EA1b4Yy10bzAABBgAC7mS5rTXrDAAAAAAElFTkSuQmCC\') 0 0}.ui-editor-text-italic-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-underline-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKZJREFUeNpi/P//PwMlgImBQkCxASwopjExhQGpMCSheijdiCz279+/q3AeKAxgmJGREYSdgHgdlIaJ6SCLIevB5oXXUJe9RhK7gkUMZxgwAjEzlEYG2MRwGsCKRTErKQawYFHMQqwBn6G2qSCJGULFPmPYhpwSgdEIY6YCcTKa2rlAPBvEAEYjdgNAUYRMowOYWmQ9LFjUPSGQP2RwemFoZiaAAAMAlEI7bVBRJkoAAAAASUVORK5CYII=\') 0 0}.ui-editor-text-underline-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-strike-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAL5JREFUeNpi/P//PwMlgImBQkCxASwopjHBzbMB4nQg5oTyrwKxNhAXAfGjf//+EXRBFhC/BOI0KAapYwZpxusCJPASquEdlD8FiHWwKWREjgUkL4gDcQ0QfwfiXqiBcIDsBXQD9hATcEADXOAckAEwzMjIiI4lgHgiEM8GYkmYOLIeXAZ4I2sA4vlQjGEArkBsAeJzQAUVYH8yMnIAKTmC6QAaHhpALALEPCBDoOJfgFQ5wVgYmnmBYgMAAgwAEGZWNyZpBykAAAAASUVORK5CYII=\') 0 0}.ui-editor-text-strike-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-sub-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKZJREFUeNpi/P//PwMlgImBQjDwBrDATWJCMWs6lM7Ep/nfv39YXSAPxL+AWALKJtkLLkB8EohZoWySDbAH4uNQQ+xJNUAJiH8DMT8QPwZiWagYDEwA4v1QGgJACQmEGRkZQTgXiI+i4VyoHAy7AfEaEBucCNEM2AzEKkiKu6BiYMuAdAYQLwZiKQwDgGAVED+E0iBgBeUjiy1HErMCWzyaFxgAAgwA5Gw9vTeiCqoAAAAASUVORK5CYII=\') 0 0}.ui-editor-text-sub-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-super-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNpi/P//PwMlgImBQjDwBrCgmMaEYt50KJ0JpRuBWBuIrwJx/b9///C6QB6IfwGxBJQNAvVAPAkqRtALLkB8EohZoWwQiAbiICCuI8YAeyA+DjXEHiqmD8SaQLwIysYMAyhQAuLfQMwPxI+B2AkqVkZsLHgDsQYQTwXiVCBmg4phB6CUCMOMjIwgvBmIVaBsEO6CijEgY5geFAOAYBUQP4TSIGAF5SOLoVjMOJoXGAACDACTRz3jjn6PnwAAAABJRU5ErkJggg==\') 0 0}.ui-editor-text-super-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-quote-block-button .ui-icon-quote{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGVJREFUeNpi/P//PwMlgImBQjAcDWBhYZEA4r1AHA/EKHxiXQBS+BKIF+LgEzTAG4h3I0UvOh+/AUCFbECcDmROA2lC5mMzgAWLGDuUtsTBJ+iFeUDMC6Wx8VEA42hSptwAgAADAO3wKLgntfGkAAAAAElFTkSuQmCC\') 0 0}.ui-editor-quote-block-button:hover .ui-icon-quote{filter:alpha(opacity=100);opacity:1}.ui-editor-clean-button .ui-icon-clean{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABNVBMVEUAAAAAAAAgSocgSocgPnAAAABxcXFPT09YWFggSocgSocoToUbPXgSN3kyYZw0ZqT///8iUZkgSoc1Z6UiUJaJrNkwXpZIeLiOvO03a6s4b7JekNUjUpqCp9eNr9pSjeAwX5g2aqquxuV8otPB1euOsNv8/f6gveFgkdVnkMmbuuVfk9lkk9fK3Pbs8vmWtd5Vjs98odCHqNWkv+Jzms6Qt+xnmNuzyudVidS90u6hwe5mmuQtXKCow+OqxepNg82Xtd3C1Ox0m89vl8x3oNl4n9NSjuDi7PqlxO+MtOyWtt2fwO60y+dUjt5zm8/L2+9qneT3+f7g6/qDrelRi95snuWowuSfvOGPr9uwyeqRsdqUs9qat92OrtmDptN5ns9Rh8hqk8uXuehwnt1vl83e6vmZu+gBAK69AAAADXRSTlMbAKM01gogSSmAy7W1OP1GaAAAAM1JREFUeF5VzNN2A1EAQNE7TIrrsSe0Udu2zf//hHZWk672PO6HAySR/UmUwBjT9XyzeJlZuGpe60wE474TxxghhHEcOz4DzLcxRoZhJGT/AOcoiiKEOE9AZEGw291fOcpNdZeD74fEqKZ5lFLP0+YplIDAzBfXrTQKNyW3bEIhgV51QD5fyVv1fQir0zOzcxfW4tLaCGqkHoYWWR/BxubW9k5/7+PgcAjZ8JicnJKz82wC6gRstTu3d/cPj0/PcFIF6ZQMf5NTaaCAfylf1j4ecCeyzckAAAAASUVORK5CYII=\') 0 0}.ui-editor-clean-button:hover .ui-icon-clean{filter:alpha(opacity=100);opacity:1}.ui-editor-click-to-edit-message{padding:10px;border:1px solid #d4d4d4;font-size:13px;z-index:4000;color:#000;text-shadow:none;-webkit-pointer-events:none;-moz-pointer-events:none;pointer-events:none;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2YyZmZmMiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2RhZjJkNyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#f2fff2),color-stop(100%,#daf2d7));background:-webkit-linear-gradient(top,#f2fff2,#daf2d7);background:-moz-linear-gradient(top,#f2fff2,#daf2d7);background:-o-linear-gradient(top,#f2fff2,#daf2d7);background:-ms-linear-gradient(top,#f2fff2,#daf2d7);background:linear-gradient(top,#f2fff2,#daf2d7);-webkit-box-shadow:0 2px 10px #ccc;-moz-box-shadow:0 2px 10px #ccc;box-shadow:0 2px 10px #ccc;-webkit-transition:opacity .5s 0s;-moz-transition:opacity .5s 0s;-ms-transition:opacity .5s 0s;-o-transition:opacity .5s 0s;transition:opacity .5s 0s;filter:alpha(opacity=0);opacity:0}.ui-editor-click-to-edit-visible{filter:alpha(opacity=100);opacity:1}.ui-editor-click-to-edit-highlight{cursor:pointer;outline:1px dotted rgba(0,0,0,0.5);-webkit-transition:all .5s 0s;-moz-transition:all .5s 0s;-ms-transition:all .5s 0s;-o-transition:all .5s 0s;transition:all .5s 0s}.ui-editor-debug-reinit-button .ui-icon-reload{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAqBJREFUeNqkU01PE2EQnrfdtmyLpbRNA/ULGyAhRi+NHkTk5sEEiRyMEi+evHszJh5I/AF613ho9EIwhEiMB4kSjQcWSDxgIAhJoZV26dd2t/v17jqzkoLGG5vM7rvzzPPsfOww13XhOJdAt8vPN0EIBEAQBPD5/UHGWALdnWgW2iO07H+40sL91APhH2ev4HOH+tJiZzoZCia7guXpj8XsnevprGX9yVQMM8i9K0jA2GI7A+9y3Uwo4I6Mj6aijToHzl2nXrNk27bBMDg0FQ7dcQFezeYljH6PlmsLuI4T8zF+e+zqqZ69ggaKZrH13WaxXDcUwm2LQ6xbgOKOCreu9WTfLuQVy3bSCBV8XoBpjmR6xYvFfKNflpuZTyuF1q+y8sHhXLINA7q6g/Byek06ERWgUlJh8EykHzkTxPUETMMYTcWCQ/Wqllnb3hct0/yM01nWVZUwePZiWcLnt0Vpd1NvmZCMBuL4PtwuwdL1S37GMqpuQaFUL+Mk5rllgeM41BuqeZH5/bmNzdJSbzQEiUggjJyBtgCqRVTDjqrc9c6YOjbRhlCHSON9YKMYGQpDrWVDh2F7mR2WoOsbezVdU30CdMXEGNY3abZ0rLcEVVkGpVqlPk0SRjEUS5y2gGUYX7byckURgnB66OxJ7MFD7MHkAQZ0Jh9hFEOxxDkUMM2ZrR/bMo+IsA3hjuzN4fPpvtQUjneJjM7kI4xiKJY4xGW0C9F7bwDrHvNHwk8T4zcutGz0hRjEQp4+1AwHGoYLosBgf3b+O1e1x9iPuUbu7uGfiEJzerUGu6+npwKDA8lm5lx8J54Ie2lWapr7c6tSWd+QwTSfYGPn/lqmoyKOpkn2yuoErKxeQdfgAbSO9hWXbAa/XDjKYcdd598CDAAkzn7JYhVZYAAAAABJRU5ErkJggg==\') 0 0}.ui-editor-debug-reinit-button:hover .ui-icon-reload{filter:alpha(opacity=100);opacity:1}.ui-editor-debug-destroy-button .ui-icon-close{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAtFBMVEX///+nAABhAACnAACjAACCAACgAACHAACjAAByAAB1AAByAACDAACnAACCAACHAACgAACNAACbAACXAACMAACSAABfAACYAACRAACjAACbAAChAACqAACNAACcAACHAACqAADEERGsERHQERG+NjaiERHUTEzYERG4ERGlFBSfFRX/d3f6cnK0JSWoHh7qYmLkXFyvFRXmXl7vZ2fNRUX4cHDXT0/+dnbbU1O3Li7GPT26MTG2f8oMAAAAIXRSTlMASEjMzADMzAAASMxIAMwAAMzMzEjMzEhISABIzABISEg/DPocAAAAj0lEQVR4Xo3PVw6DMBBF0RgXTO+hBYhtILX3sv99RRpvgPcxVzp/M5syb7lYepxDABDeYcQ5wg+MAMhr3JOyJKfxTABqduuvjD37O6sBwjZ+f76/7TFuQw1VnhyGYZPklYagKbKLlDIrmkBDGq1hUaqhM4UQJpwOwFdK+a4LAbCdlWNTCgGwjLlhUQqZ8uofSk8NKY1Fm8EAAAAASUVORK5CYII=\') 0 0}.ui-editor-debug-destroy-button:hover .ui-icon-close{filter:alpha(opacity=100);opacity:1}.ui-editor-dock-button .ui-icon-pin-s{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAbFJREFUeNpi/P//PwMlgAVEPGNiIqTOBojz/zIwTHrPwHD4BZDzGGhxMhAzEWlRvtTy5SE/GRiKge61R5YgyoB/IHVPnzIoTprk/52BoRJoiDNBA5BCxuY3UN2vz58Znu7ZwyAaHOz+8f//RqC8OzEuAPtdcfbsgM937zJ8+fKFgePHDwa3sDBroKGt8EBEAo1ArAV1ARPQucwqs2f7vz14kOHH378MF/buPQ4S+wXEQPkauAG3EFHp7bBihTHDs2cMf4E2ffvwgQGmeeuyZWf+MDA0ATXs+I8eiP+gGBhNNTsjIs7+5+Vl+HTrFsOry5cZXr56xXB02bKjQM21QCU7sKaDRYiA2wE0RPJnamq2VVGR8adr1xi4uLkZPjMwsDJCNf/HagAjI8SA//95gRRb5pEjxnttbM6aeHsb87CwMED9DAZ/0QxAjgVmRkZGj+vXr0+wt7evWc3ENPfI1q1n2djYGP4TSsqMEBfYLV26tExXVzcfyF8NdM17oG33V69e3QKUO0vIAF1PT8+Y2NhYUDRuh7n0PyTEdzAQ4YKYHTt2TAEyz5OaGxkpzc4AAQYAvlOuK2pYar0AAAAASUVORK5CYII=\') 0 0}.ui-editor-dock-button:hover .ui-icon-pin-s{filter:alpha(opacity=100);opacity:1}.ui-editor-dock-button .ui-icon-pin-w{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wFFgA2AnOoAZ4AAAH4SURBVDjLtZNNaxNhFIXPfefNJJlkppFI09Ca1FiRMiDduCjWQltdtILdu1DcSkpx7UL6A1zGH+BKEFy5MkhErRvpwo+NSDEaaYyZSZNJJslkPl43XQQaaUA8u3M5PFwu5wL/KBo1FEC4DJALiN2jjAWIbcA5EVABzotkUu+ZJmvLsmQwJtcHA2oHQc8FXm8D9eE8HzafgThPpS5H19Zux4kmIqbJWL3OT/u+9LNWK1er1V8PgMMdwBsJ8AARtFoD6na1qK7PubFYTOOc9RqNQxEEX1ygswP4Jx6mDNw3Fhc/WVtb4uPy8uAx0YeHwMaoLBs1DBE9kzTtIJLJ4FQ6LQnghZVMFscCCIB8IeKB7/e6lYpjNZs2V1WeNk02FuApwAJA8xwnFHgeSUL4rmVJ3yIRfyzAFWA+Oj29EZqcvODYNveJEloisZnq9++NAkjD5gCY59nsnfjq6iafnT3bNQzJrtWQzeUm+p3OxQXbll8Cb45tYBGRKcucEd2Irq/fDC8tzSm5nKRMTSEUi3lcUXB1ZSV1RlVvPWLs2rEiaUIIDAbee+AtisWMUyqpRhAoiq7rLdtudvf2fsQlqWe02yQDr/7axEvAbml///uTcHjhqyxncjMz5zqO87th28+vu+47GWjfBdyxP61QKFA+nydVVQn/S38ATpHDEx6slP8AAAAASUVORK5CYII=\') 0 0}.ui-editor-dock-button:hover .ui-icon-pin-w{filter:alpha(opacity=100);opacity:1}.ui-editor-dock-docked{z-index:10000}.ui-editor-dock-docked .ui-editor-toolbar-wrapper{position:fixed;top:0;left:0;right:0;border-top:0;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-pack:center;-moz-box-pack:center;-ms-box-pack:center;box-pack:center;-webkit-box-align:center;-moz-box-align:center;-ms-box-align:center;box-align:center}.ui-editor-dock-docked .ui-editor-toolbar{text-align:center}.ui-editor-dock-docked .ui-editor-path{position:fixed;bottom:0;left:0;right:0}.ui-editor-ios .ui-editor-dock-docked .ui-editor-path{display:none}.ui-editor-dock-docked-to-element-wrapper{font-size:inherit;color:inherit;font-family:inherit}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper{position:relative!important;top:auto!important;left:auto!important;border:0 none;padding:0;margin:0;z-index:auto;width:100%;font-size:inherit;color:inherit;font-family:inherit;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-toolbar{margin:0;z-index:2;-webkit-box-ordinal-group:1;-moz-box-ordinal-group:1;-ms-box-ordinal-group:1;box-ordinal-group:1}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-toolbar .ui-widget-header{border-top:0;border-left:0;border-right:0}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-path{border:0 none;margin:0;-webkit-box-ordinal-group:3;-moz-box-ordinal-group:3;-ms-box-ordinal-group:3;box-ordinal-group:3;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-messages{margin:0}.ui-editor-dock-docked-element{margin:0!important;display:block;z-index:1;-webkit-box-ordinal-group:2;-moz-box-ordinal-group:2;-ms-box-ordinal-group:2;box-ordinal-group:2}.ui-editor-dock-docked .ui-editor-messages{position:fixed;top:0;left:50%;margin:0 -400px 10px;padding:0;text-align:left}.ui-editor-dock-docked .ui-editor-messages .ui-editor-message-wrapper{width:800px}.ui-editor-dock-docked .ui-editor-messages .ui-editor-message-wrapper:first-child{-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;-ms-border-top-right-radius:0;-o-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;-ms-border-top-left-radius:0;-o-border-top-left-radius:0;border-top-left-radius:0}.ui-editor-embed-button .ui-icon-youtube{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAxlBMVEX////////fNzfaMTHVLCzKISHFGxvvR0flPDzpSEjdMTH4Y2PaKyvtTk7PJibXIyOnLi7lQECkKyvSHR3mPj6eJCSUGhqRFxfqQkL0XFziOTmOFBSBBwehKCiHDQ3PFRWaISGXHR3wVlaECgqqMTGLEBDGHR365eW1ICDaXFz139/LDg7NLi6tNDTSKSnMNzd9AwP1TEy/Fhbwxsbqv7+7EhKzFBS6EBDonZ3akJDkhISxBwf8a2vLIiLPcHD88fH67+/fYGAnLmvBAAAAAXRSTlMAQObYZgAAAJtJREFUeF5Vx0WShFAUBMB631F3afdxd7v/pQaiN5C7BK4mgM3nxAahczfihIgrrfVTqs+qGN2qLMvHwy4tB6sOmWeMIXp7/jI9L8PCYowR0e/3xzVj1gLLiHNOg9OR82iJvBZC0GD/J0Sdo7B93+/78+737AKNK6Uker2UA7fBNlBKPdyos2CLWXI/ksywnr+MzNdoLyZa4HYC/3EAHWTN0A0YAAAAAElFTkSuQmCC\') 0 0}.ui-editor-embed-button:hover .ui-icon-youtube{filter:alpha(opacity=100);opacity:1}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;height:100%;width:100%}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs>div{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs>div>p:first-child{padding-top:10px}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs>div textarea{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-flex:4;-moz-box-flex:4;-ms-box-flex:4;box-flex:4}.ui-editor-float-left-button .ui-icon-float-left{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAS5JREFUeNpi/P//PwMlgImBQsACY1zaIH4A6Bp7dAUzV31jnLHy22YgkxFqIQhf/vfvXymKAQ8eidtra35lYAQqY+FgZWBmZ2X49fk7AxvbX6DsN1+CLlgwn5khMECAwcLiL4OogiIDj6QEw9uLZ4AGfAVJ70BzAQg7ohigrnaP4cEDLoY3bzkYzL6/ZVA34ma4ev07w/sPv0HSHgRdoKICUvgR6IWPDK8evWb49+8iw/1bfxhevwYbsBfNdhC2BkkwwqLRxRhuFgM3HyMDrwAjw8vH/xj2nvuH1WZgIDKgGMDExLQNiz9xYWagASboBpAU/zAXsCCJ7SbCZjaghexAmgOIFUh2AXKyh7GRXTARiI2w2MoKVMwBtRVkOysQHwNiPxQXDFhmotgAgAADAKYzbYynfqX2AAAAAElFTkSuQmCC\') 0 0}.ui-editor-float-left-button:hover .ui-icon-float-left{filter:alpha(opacity=100);opacity:1}.ui-editor-float-none-button .ui-icon-float-none{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAkFBMVEUAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAABAQEAAADRrxbRsBYBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAACcegnCrQ6ffgqukQv+/GixkS3duyLhwyfkyizevSNRMDCigDLauC/y41DcuiLrzTTQrhWCYBiObSDErz3r4VvApCt4Vg6dewnDaH3NAAAAGHRSTlMAycfDxcu9v8HYu+DAwIm3uZnRkdDn7LIyy/h+AAAAWklEQVR4Xp2KRwqFMBQAYzfGXmPtvfx//9spgvAWQcRZzgx6gz6dGEDkQ1FWNRBN2/XZCMRvXtZtB4LSfxon6AHTsjVZUQWR5xz2cWfJxYR9eFf2MQnCCH3hAIfwBUXJe8YuAAAAAElFTkSuQmCC\') 0 0}.ui-editor-float-none-button:hover .ui-icon-float-none{filter:alpha(opacity=100);opacity:1}.ui-editor-float-right-button .ui-icon-float-right{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAS1JREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzZYRzBaaHcWE4kZGJ8aCe/0sHFAOAoB5d4avXfAwPH4swaGt+ZWAEGsnCwcrAzM7K8Ovzd3sMFwDBWpjNMPrK5b++C94yMwQGCDBYWPxlEFVQZOCRlGB4e/EMAzYDgtFdICr6kUFd7QfDgwdcDG/ecjCYfX/LoG7EzXD1+ncGeyNMAzYiuQDsCmHhf54qKr+BzI9AL3xkePXoNcO/fxcZ7t/6wwDzAyMsGoGBiDWUnQwR4tx8jAy8AowMLx//Y9h95g+GAdvQXIAPM//798+EKBfgAkADMMJgNxE2swEtZAfSHECsQLILkJM9jI3sgolAbITFVlagYg6orSDbWYH4GBD7obhgwDITxQYABBgAdBpg+9sXURwAAAAASUVORK5CYII=\') 0 0}.ui-editor-float-right-button:hover .ui-icon-float-right{filter:alpha(opacity=100);opacity:1}.ui-editor-font-size-inc-button .ui-icon-font-size-inc{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAOhJREFUeNpi/P//PwMlgImBQkCxASxgU5gwzJkOpTORBZ2ilzO8+MjFwMIixnBhnTlOF8gD8U8gFoey4UBSyZooLzgD8Umo65xhgsYu5USHgS0QHwfiE1A2TtuxGaAIxL+B+AEQnwFiaagYg6Qi2AAHIP4PpbEa4AHEz4HYAIi/QL3hgSS/H4gfQmlELCAHNBBLQGlksenP7x9l4Bc3YMTnBRWogbZIuBOIZUFyW2b5EQwDVyA+giYPcionSA6U5Jc0yTK8vrUcVQU0L1gB8RMotkKSXoMkXgQT5BM3A+sDYcahn5kAAgwArro7Z1GYijsAAAAASUVORK5CYII=\') 0 0}.ui-editor-font-size-inc-button:hover .ui-icon-font-size-inc{filter:alpha(opacity=100);opacity:1}.ui-editor-font-size-dec-button .ui-icon-font-size-dec{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKxJREFUeNpi/P//PwMlgImBQjAMDGBBMY0Jbp4JEFcAcQcQnwEJpLa/Zfj27SvD+fPnGVhYxBgurDPH6wI9IP4DpRmMXcpJ9oIZELcBcRiaOCjOH0BpnAYoAbE6EE8EYnYgtjq7pxMm5wjE8lAapwFOQLwFiIuB+AQ0PBi2zvYHUQeAmBFKYxoATJWWQOwLxJJAfA6I5YE4FyT+9O5hBiSXwAHjaFKm3ACAAAMA85o8WKYZErQAAAAASUVORK5CYII=\') 0 0}.ui-editor-font-size-dec-button:hover .ui-icon-font-size-dec{filter:alpha(opacity=100);opacity:1}.ui-editor-show-guides-button .ui-icon-pencil{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHZJREFUeNpi/P//PwNFAGQAIyMjDK9BYqNgXHqZ0MSYcFmEyxBGsClMTGS5+t+/fxg2biLGAGTXoBvATGoYkuUFGMDmhd2kGjL4vHCUUi9cIjcpnwPi2UAsBaXPQZPwOXxscD5Cy0xLSbUc3YDnJLue0uwMEGAA2O1APJOrHFQAAAAASUVORK5CYII=\') 0 0}.ui-editor-show-guides-button:hover .ui-icon-pencil{filter:alpha(opacity=100);opacity:1}.ui-editor-ui-show-guides-visible *{outline:1px dashed rgba(0,0,0,0.5)}.ui-editor-undo-button .ui-icon-undo{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAe1JREFUeNrEUzFrFEEU/mazu7d3x8U9g0ROwkHEwrSrNmksJBxok1RRwUIEz0awFStZoqQw5B9ok1jYiRDBwl4PSaFJVLCMMfHWS7zb3ZndGd9ssgdXiVzhwGNnH+/75n3vm2FKKQyzDAy5zKmHLRSKRdiOA6tQgGlZDcrPUme3dcFBEPSLlZQQcZyFTFN8WZiGOUCnVCMRws9/4zD8BwkEFpz7N66c8vQJUbeLNEn+LuEQqxo8jv0716e8/f0UPIp0+n1OTbFLsUF1z+n7boAgA0eRf/em521tdeE4BuYunfa0OYehEMUJ3wt6Fza+7s4EkVwh3DJFLyPgYejfa0576+u/MsZe70g/tX8QRujSHDgXtpTpmOvarkjYrZ97Qg/xUTYDOv3B46U3rcnJMqRUUKaBtsXwzWDYJmfax1y0x07gx/FxfLbckd+1Wj0dYddI8vlcwhp1gcUnr/z55mXvbcfA99WXrVwjMwzGHNs0yiWbVSpFXqtVMTFxkrU+zOt55ENc04N7tvTCP9O86mn76D6cIzDSODYRhhUEnXFguy4/bs6gWr1IubN9F3KShHN8Wn6a3QNtZaFU0lvtZXAUm1LK13Jn5z7Vzw0Q9EmE0NvZDNnpoDw6OuC7voFUs0C19Uzif39MQxP8EWAA91//GdkHdYEAAAAASUVORK5CYII=\') 0 0}.ui-editor-undo-button:hover .ui-icon-undo{filter:alpha(opacity=100);opacity:1}.ui-editor-redo-button .ui-icon-redo{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAd9JREFUeNrEU89LG0EUfjP7KyvEGsRorRhoySGCuSyht0IPgicFQZCcvXsvHoP/Q8FDKZRCpQityKIHvZT2YI6t6MUfCJqQKpt1d7Ozu7N9O9vWhIIUcvDBt/OY4X3z3vfNkjiOoZ+g0GfIyaf46gtQSQJF0wQIvePN5nJiJYS8xmUzDAIz8H1gnQ74npcS3BeubYOm60lqCKQjm/89QhSG0HEcSG6tzo4bAWM1JJntGaE7UNQKcL6EaQkxknQfcS6Imk0GizOTxrvPx7Xf4pvdBAOc85VBnVTLU6OPhx8NZBVZUjmPIYpStNsMGo0I5l8+NT5sfxckggCFAYrFzyaHlo1yoYDdSs2WD9e2A/atC4wFooMkJBT79EqBF88Lxu7eYU0QMN+v5Eey1enSRKF1y6ULFoKFAFUDntMgwpsiDuAEMbgBhydDKmxtH9TRmdWUwPOWSsXi2Fmr7RyfNG6sa9vzbI+FHT+MI3730hbmjIwEcLTxSRSrup5qgH6Wvn39cd76ae9TSndw6wzRQNiSooQxiohjHij4Pqy379PiTMb86wJalL+6ZB+pLK9RSv+x0XddkQfrb9K2VdXssRHZk4M1mRDc6XXWsaw/aT15ibKimN3n5MF/pr4JfgkwANDA599q/NhJAAAAAElFTkSuQmCC\') 0 0}.ui-editor-redo-button:hover .ui-icon-redo{filter:alpha(opacity=100);opacity:1}.ui-editor-hr-button .ui-icon-hr{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAXhJREFUeNpi/P//PwMTExMDEmgEYi0gZsSCrwJxNUzhv3//GBixGEA0ABnAgkV8LZqtTFDaF6aAX8KCwdBrA4QDckFq+1sGSUVrBkZGRqKwvEEhg2PyS7BeuAv07AsZXjw4BmJuQLIV5gImJLYrv7g53LlwA8TkLRgCi28wXDzQF/Dr10+G379/M/z58wfoz/9gfUxMrAzMzGwMsnr5DBwcvBgGHABiexBDyTiV4cuXTwxfv35j+PHjB9CQ/0BnszCwsHAysLHxIofVQSB2gBlgnxogAqREiI6B+ikf7ZFdcHD2hjf2X79+Zfj8+TNeF7Cz84K9wMrKdRDZAAcQ8fbJaYYndw4zYAsDHlFjBjZxKwyXwAPx1cMTDIdWxoKY+5BCHo7f31tp8VM9iUFQ0oaBQ9YBYQIoLo1dygmmA2QgIGHJoGhUCtaLLSkfweICVqA6diDNAcQKyJYTlRdAanCJY8sL04HYFM3WM0Acgs0QRlymEwsAAgwAwwCYinucCRoAAAAASUVORK5CYII=\') 0 0}.ui-editor-hr-button:hover .ui-icon-hr{filter:alpha(opacity=100);opacity:1}.ui-editor-wrapper .ui-editor-i18n-select{height:23px;top:-8px;text-align:left}.ui-editor-wrapper .ui-editor-i18n-select .ui-selectmenu-status{font-size:13px;line-height:10px}.ui-selectmenu-menu li a,.ui-selectmenu-status{line-height:12px}.ui-editor-wrapper .ui-editor-i18n-select .ui-selectmenu-item-icon{height:24px;width:24px}.ui-selectmenu-menu .ui-icon.ui-editor-i18n-en,.ui-editor-wrapper .ui-icon.ui-editor-i18n-en{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAflJREFUeNpinDRzn5qN3uFDt16+YWBg+Pv339+KGN0rbVP+//2rW5tf0Hfy/2+mr99+yKpyOl3Ydt8njEWIn8f9zj639NC7j78eP//8739GVUUhNUNuhl8//ysKeZrJ/v7z10Zb2PTQTIY1XZO2Xmfad+f7XgkXxuUrVB6cjPVXef78JyMjA8PFuwyX7gAZj97+T2e9o3d4BWNp84K1NzubTjAB3fH0+fv6N3qP/ir9bW6ozNQCijB8/8zw/TuQ7r4/ndvN5mZgkpPXiis3Pv34+ZPh5t23//79Rwehof/9/NDEgMrOXHvJcrllgpoRN8PFOwy/fzP8+gUlgZI/f/5xcPj/69e/37//AUX+/mXRkN555gsOG2xt/5hZQMwF4r9///75++f3nz8nr75gSms82jfvQnT6zqvXPjC8e/srJQHo9P9fvwNtAHmG4f8zZ6dDc3bIyM2LTNlsbtfM9OPHH3FhtqUz3eXX9H+cOy9ZMB2o6t/Pn0DHMPz/b+2wXGTvPlPGFxdcD+mZyjP8+8MUE6sa7a/xo6Pykn1s4zdzIZ6///8zMGpKM2pKAB0jqy4UE7/msKat6Jw5mafrsxNtWZ6/fjvNLW29qv25pQd///n+5+/fxDDVbcc//P/zx/36m5Ub9zL8+7t66yEROcHK7q5bldMBAgwADcRBCuVLfoEAAAAASUVORK5CYII=\') 0 0}.ui-selectmenu-menu .ui-icon.ui-editor-i18n-zh_CN,.ui-editor-wrapper .ui-icon.ui-editor-i18n-zh_CN{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFqSURBVHjaYrzOwPAPjJgYQEDAleHVbhADIvgHLPgHiQ0QQCxAlkR9NW8sw+cV/1gV/7Gb/hV4+vfzhj8Mv/78//Pn/+/f/8AkhH1t0yaAAAJp4I37zyz2lDfu79uqv/++/WYz+cuq/vvLxt8gdb+A5K9/v34B2SyyskBLAAII5JAva/7/+/z367a/f3/8ZuT9+//Pr78vQUrB6n4CSSj6/RuoASCAWEDO/fD3ddEfhv9/OE3/sKj8/n7k9/fDQNUIs/+DVf8HawAIIJCT/v38C3Hr95N/GDh/f94AVvT7N8RUBpjxQAVADQABBNLw/y/Ifwy/f/399ufTOpDBEPf8g5sN0QBEDAwAAQTWABEChgOSA9BVA00E2wAQQCANQBbEif/AzoCqgLkbbBYwWP/+//sXqBYggFhAkfL7D7OkJFCOCSj65zfUeFjwg8z++/ffX5AGoGKAAGI8jhSRyIw/SJH9D4aAYQoQYAA6rnMw1jU2vQAAAABJRU5ErkJggg==\') 0 0}.ui-editor-image-resize-in-progress{outline:1px dashed rgba(0,0,0,0.5)}.ui-editor-length-button .ui-icon-dashboard{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAhFJREFUeNrEk7tv01AUxr/4kcRO7Fh1HghFgSAeYglDlIfUbGEBhaWoUxFiQWJGMDDyhzB2ZmANYmAoIvQPaIHIkVJjKyWkcdzYSR1zbhSGQhFDB47007333PN9V/cVCcMQ5wkO54wIxe+5q8Rt4gaRW+VsYo9oE1/+ZpAktjKZzL1arXatWCzmFEVhOYzH40m327U7nc7nwWDwhlLbxITN8SsDVvisXq9vtVqtuqZp2XK5HDcMg5vNZlylUon7vq+XSqXLi8WiYJqmTvWfiNkvg8e06gMqLDmOI5AIvV4P8/l8CeuzHMHn8/kcmeiWZQWk6zCD67quP280GuXNdlv4qKrwTk6WwpXoFNVqNTKdTtf6/X7C87wPzOAhrX4nCIK195KEp4aBtxyHKRm4roujozGdwQSO49LYx/7+VzIPeVEUOcsyh+wab9Ge0+SKGW3nhSzj5WiEoWlhMvHolKOIRmVIkgpZVhGPKxAEGdlsIc20zOASz/NSs9lkl4IwJuOJH+CVksDi2APPx0iYIgNlCTNYXy8hmdQkpmUGCfag2u134DgJipKGdqGAR6NjbKdVOAMbQRAiRsaCEKMaHru7XdYutRw95R+Hh0NXVTNIpXQy0KDrOVy8chOb34Z4XcjCMvZoO86p12bbBy7Tsv5dYoc4OAtFFM3BxkZ4xtzOSvvPuE98X7V//oX//ht/CjAAagzmsnB4V5cAAAAASUVORK5CYII=\') 0 0}.ui-editor-length-button:hover .ui-icon-dashboard{filter:alpha(opacity=100);opacity:1}.ui-editor-link-button .ui-icon-link{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAilBMVEX///8EBARUVFRUVFQEBARTU1MqKiwfHx5MTEzGxsZNTU1FRUWAgH8SEhJnZ2fd3d06Ojrg4ODIyMgODg4DAwMSEhLCwsGcnKXExNEvLy+ysrh+foMQEBBBQUEEBATJydeenqcDAwPT09OIiIjj4+OZmZl3d3fU1OPCwsHW1tXq6urr6+va2trGxsaRnmwcAAAAI3RSTlMAimdfRTOWgDXbAGXFj339cv3dAHtC3OP8bt+2cnuA/OMA+Akct2IAAABoSURBVHhetcVZFoIgGAbQ7wcVwyEKtBi01OZh/9urw2EJdV8ufkHmnDHG85RE2a7Wp812GGJtiaqvG1rOXws1dV9BzWKi2/3xfL1pErOCdT6YS2SCdxZdsdtfD8ci1UFnIxGNWUrjHz6V6QhqNdQf6wAAAABJRU5ErkJggg==\') 0 0}.ui-editor-link-button:hover .ui-icon-link{filter:alpha(opacity=100);opacity:1}.ui-editor-unlink-button .ui-icon-unlink{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAA2FBMVEX///8WFhYvLy9LS0sEBAQODg4EBARNTU0DAwNVVVVUVFQtLS1nZ2cfHx46OjoSEhLGxsZTU1OAgH/T09NUVFQEBAQ6OjpMTEwvLy+4uMDCwsEQEBCvr7sSEhIEBAR+foMqKixFRUUEBARDQ0MBAQEBAQG5ucQiIiICAgIODg7Z2dlAQEBMTEwsLCxGRkYAAABPT0/e3t4mJiYqKiopKSlUVFQiIiJJSUkjIyNFRUU5OTkBAQEoKCi/v8zCws+qgFWFZkY7MSbc3Nzj4+Pm5ubOztzU1OTQ0N6IE/7FAAAAQ3RSTlMAAAAAigAAAAAAZwB9gACP2zPF+F9ocjVu39xy40KAtpZlRQBrUPx9AIb8AE8AAAAA/AAAAAAAAAAAAAAA/PwAAAD8PWHlxQAAALtJREFUeF5dzsVWxEAQheHqpGPEPeMWGXfcmQHe/42oC+ewmH95F1UfGWFyhZLQUBHlTvBxOp92gZP/DaN25Esp/ag9ukeUxa5p6qbpxpmHqGgNOtWm6gxahaIokwX1ht16ps3q7rAn9utrg7RxX6Z6KvtjbWJZGHTuuLLtw8P2f/CAWd4uGYNBqCpj5s1NM2cMPd3xc2D4EDDkIWCmj1NgSEHAlGUJDAnEmOfPr+8XxtDr27sQwHDA0GU/2RcVwEV78WkAAAAASUVORK5CYII=\') 0 0}.ui-editor-unlink-button:hover .ui-icon-unlink{filter:alpha(opacity=100);opacity:1}.ui-editor-link-panel .ui-editor-link-menu{height:100%;width:200px;float:left;border-right:1px dashed #d4d4d4;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-link-panel .ui-editor-link-menu p{font-weight:bold;margin:12px 0 8px}.ui-editor-link-panel .ui-editor-link-menu fieldset{-webkit-box-flex:2;-moz-box-flex:2;-ms-box-flex:2;box-flex:2;margin:2px 4px;padding:7px 4px;font-size:13px}.ui-editor-link-panel .ui-editor-link-menu fieldset label{display:block;margin-bottom:10px}.ui-editor-link-panel .ui-editor-link-menu fieldset label span{display:inline-block;width:150px;font-size:13px;vertical-align:top}.ui-editor-link-panel .ui-editor-link-menu fieldset,.ui-editor-link-panel .ui-editor-link-wrap fieldset{border:0}.ui-editor-link-panel .ui-editor-link-wrap{margin-left:200px;padding-left:20px;min-height:200px;position:relative}.ui-editor-link-panel .ui-editor-link-wrap.ui-editor-link-loading:after{content:\'Loading...\';position:absolute;top:60px;left:200px;padding-left:20px;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAOXRFWHRTb2Z0d2FyZQBBbmltYXRlZCBQTkcgQ3JlYXRvciB2MS42LjIgKHd3dy5waHBjbGFzc2VzLm9yZyl0zchKAAAAOnRFWHRUZWNobmljYWwgaW5mb3JtYXRpb25zADUuMi4xNzsgYnVuZGxlZCAoMi4wLjM0IGNvbXBhdGlibGUpCBSqhQAAAAhhY1RMAAAACAAAAAC5PYvRAAAAGmZjVEwAAAAAAAAAEAAAABAAAAAAAAAAAAA8A+gAAIIkGDIAAACsSURBVDiNtZLBCcMwDEUfJgOUjhAyQsmp9FA8TgfISj6F4gl66jSdIIf00G9wnLjYKf3w0Qch6Us2fMdVLMYx0haYRZsrMJEegZdiDj3gFFeT54jBiU2mO+XdVvdRyV0OYidVMEAH3AEPHGoboMKwuy+seYqLV9iNTpM90P7S6AQMitXogYnPHSbyz2SAC9HqQVigkW7If90z8FAsctCyvMvKQdpkSOzfxP/hDd++JCi8XmbFAAAAGmZjVEwAAAABAAAAEAAAABAAAAAAAAAAAAA8A+gAABlX8uYAAAC3ZmRBVAAAAAI4jaWQsQ3CQBAEB4cECFGCI1fiAlyFKwARWgSIeqjCNTh0gIjIkBw9gffFSfz74VlpdX/W3Xr3YBmlmIUSmMSoSGHee+CmGsMGaFU/cAecqnVh/95qpg0J/O0gCytgDRzUX4DnryIn5lwO6L7c6fxskRhMwkc4qj+TEcFjC9SqWcsj8x3GhMgu9LHmfUinvgKuYmWWp5BIyEFvBPuUAy9ibzAYgWEhUhQN8BCb2NALKY4q8wCrG7AAAAAaZmNUTAAAAAMAAAAQAAAAEAAAAAAAAAAAADwD6AAA9MEhDwAAAKhmZEFUAAAABDiNY2CgMTgNxTgBExLbh4GB4SCUxgeMcEkcZmBg+A+lcQETqBoTbJI+UM1ku4AiEATFZIEQBoi//kPZxIAAKEaJBYpACAm24wUSBORVGBgYUqA0BtjKAAmHrXg0f4aq+YxuiAQDIiD/Q/k8DAwMdVDMw8DAkIamJo2QCyYjKZ4MtfErlP8VlzeQw2AlkgErkbyBMwzQgRoDA8N+KMapAQDdvyovpG6D8gAAABpmY1RMAAAABQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZC1N1AAAAsWZkQVQAAAAGOI21kkEOgjAURF9YGBbGtYcwLowrwxk8BMcg3XACD9djGJaujKmLTkMRCiXEl0ympYX8+Xz4M62UpIjWR8DI59inDgzg5CkOwEs+YnMFmzhJOdwAK1UAZ+ANfLRewuJ75QAb/kKRvp/HmggVPxHWsAMu8hEN8JRPUdLnt9oP6HTYRc/uEsCVvnlO+wFGFYRJrKPLdU4FU5HCB0KsEt+DxZfBj+xDSo7vF9AbJ9PxYV81AAAAGmZjVEwAAAAHAAAAEAAAABAAAAAAAAAAAAA8A+gAAPSdgJwAAADDZmRBVAAAAAg4jaWSTQrCMBCFP6NIT5AjCF6gJ6jbUnoCL1biDTyF5AAueoZu3LkSrAtHTEJiIn3wmCTz92YILMQ64++BPTDKXQMH4AbcAZQTvAEasTFo4AqcxeowoAFmsSk1s8M+DChRMEnyFFNQAg10sWSFv49cESPUn+RRWFLE8N2DKe2axaIR/sU25eiAi9gUBt6zDzGnFad13nZCgAr/I1UxBdZRUAMPYV2iIETrdGudd28Hqx8FFHCU8wl4xoJeZnUrSRiyCSsAAAAaZmNUTAAAAAkAAAAQAAAAEAAAAAAAAAAAADwD6AAAGe6xwAAAALtmZEFUAAAACjiNpZJBCsIwEEWfpUsPULoSl55Beh4J7nqCHkDceR3pIaSr4Ak8Qq2L/khomlrig+FPhszwJy3EqYCHolq4F6UDBkWnWgbspN+CT7EwMAPuwFM67aUAem/IdIW952jQOeCXg1bN7ZyDNQRvsEkYkgNG+S1XcpHWKwacgatzlLLH2z/8vUJCf5wSaKQxToCVBjSM37jxaluFw+qOXeOgBF4KVzNqNkH3DAfGX7tXnsRREeUD4f8lQGjw+ycAAAAaZmNUTAAAAAsAAAAQAAAAEAAAAAAAAAAAADwD6AAA9HhiKQAAAJ9mZEFUAAAADDiNtZDLCcMwEEQfIUcXoDpCKgg6qIRUEtKB6wg6poDgalyFTj7YBw+2QyRlCc6DYVm0n9FCGQc8JFepWzgBN0WACIxS/NZ8BgYVD8pzA1ogKb5x3xSPyp0a4+YLSe/J4iBH0QF83uCvXKSFq2TBs97KH/Y1ZsdL+3IEgmJt86u0PTAfJlQGdKrprA6ekslBjl76mUYqMgFhpStJaQVr0gAAABpmY1RMAAAADQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZshBTAAAAu2ZkQVQAAAAOOI21kCEOwkAQRR8rKkkFCtmjkJ4ARTgBArViT4LjLJwBgUZUr8NBQlrR38Am3XYEvOTnT7PzuzO7IE8BHFWfgNdELwBLYCMH8EAr+VzIyUvgBlzkZaZ/D1zlCfXXba2+C93sVaNwK08ogUaHzcQEu9wE0O9e83kDEw7YAhG4K/ww5CoJFB52j8bwU6rcTLOJYYWo2kKywk9Zz5yvgCAfDb9nfhLoHztYJzhIpgnGOEv/owMnkSfarUXVlAAAAABJRU5ErkJggg==\') no-repeat left center}.ui-editor-link-panel .ui-editor-link-wrap h2{margin:10px 0 0}.ui-editor-link-panel .ui-editor-link-wrap fieldset{margin:2px 4px;padding:7px 4px;font-size:13px}.ui-editor-link-panel .ui-editor-link-wrap fieldset input[type=text]{width:400px}.ui-editor-link-panel .ui-editor-link-wrap fieldset.ui-editor-external-href{width:365px}.ui-editor-link-panel .ui-editor-link-wrap fieldset.ui-editor-link-email label{display:inline-block;width:115px}.ui-editor-link-panel .ui-editor-link-wrap fieldset.ui-editor-link-email input{width:340px}.ui-editor-link-panel .ui-editor-link-wrap ol li{list-style:decimal inside}.ui-editor-link-panel .ui-editor-link-wrap .ui-editor-link-panel .ui-editor-link-wrap fieldset #ui-editor-link-external-target{vertical-align:middle}.ui-editor-link-error-message div{padding:0 .7em}.ui-editor-link-error-message div p{margin:0}.ui-editor-link-error-message div p .ui-icon{margin-top:2px;float:left;margin-right:2px}.ui-editor-list-unordered-button .ui-icon-list-unordered{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMlJREFUeNpi/P//PwNFAGQAIyNjGBCvgdIMxGKQXhaoORFlZWWBXV1dTED2KqjYGiBmRMJMaOwrQFwOc0EEEG+A0iS5gBFEMDExkeX9f//+MTAxUAhgBsQC8U4oTRKABWJ8Rkae84wZk5iB7MVQsW1IAYYLW8MCMRGID0Bp+gYiC46EhTPR4QrEdCA+A6VJT8pAcDMsLB3EuAniQP14BIiPAfEJID4FxGehqe8OED8B4vVgvVADioH4GZTGGWhYvUtpbqQ4JQIEGABjeFYu055ToAAAAABJRU5ErkJggg==\') 0 0}.ui-editor-list-unordered-button:hover .ui-icon-list-unordered{filter:alpha(opacity=100);opacity:1}.ui-editor-list-ordered-button .ui-icon-list-ordered{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAM1JREFUeNpi/P//PwNFAGQAIyNjIxCvAWJBIGYgFoP0skDNqQfidUDMiGT2GigfhpnQ2FeAuJwFSQMTmuNCiPEBTFMblF1CahAwgvzBxMREVvj9+/cP7oIuIN4Bpcl2gRMQJwFxDFRuG1KAYcVAF1jDojEBiGcAsQSp0QjzgiEQawLxSiibNoGInmqRE9J0IJaEYnNSXAAzYC4QNwJxIJLcEbRAYwZidiDmgOLTYPVIzgJpPgD2F45Aw+olqAFrgfg5EBeTagAjpdkZIMAAg/ZGwsH5qkAAAAAASUVORK5CYII=\') 0 0}.ui-editor-list-ordered-button:hover .ui-icon-list-ordered{filter:alpha(opacity=100);opacity:1}.ui-editor-paste-panel-tabs{height:100%;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-paste .ui-tabs a{outline:0}.ui-editor-paste-panel-tabs{position:relative;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-paste-panel-tabs .ui-editor-paste-synchronize-text{height:25px;line-height:25px;position:absolute;right:0;top:0;width:100px}.ui-editor-paste-panel-tabs .ui-editor-paste-synchronize-text input{margin:0;padding:0;vertical-align:text-bottom}.ui-editor-paste-panel-tabs>div{overflow:auto;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-paste-panel-tabs>div>.ui-editor-paste-area{-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;display:-webkit-box;display:-moz-box;display:-ms-box;display:box}.ui-editor-raptorize-button .ui-icon-raptorize{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABDlBMVEX///9NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU0Y/iVtAAAAWXRSTlMA/v1mTvW+WQFF+nGpsyPlDhXL1GvZHduk48LslL2a7tadwee772kEfqD8+OGCXWJ2+bQ9pt7xCme4iQU4iNH0mCEPEd82Ocxj4De2HoMaq3MHZJsDeGwCG8H1fioAAAC1SURBVHheNchFlsMwEADRlmRkSDKmMDMMMjMz9P0vkifLrl194F3NW0qtugV5Wt1FHpnloGKRmr3TK96YDjiMxFGCONngcJ1De4GNDJqhvd2VkbzsY+eDw2efMTYsjRFxd4+DZx6ajC1xhXTTB560EyfWASJW2FEG3vGJElZOz4xzH6QLKLqMgpvbu3sxD+4jPBFJe05fBby9ly0S6ADxl4BviGjp5xd0Of0TUqaUEPs/kR1YA96IIUDtx93SAAAAAElFTkSuQmCC\') 0 0}.ui-editor-raptorize-button:hover .ui-icon-raptorize{filter:alpha(opacity=100);opacity:1}.ui-editor-save-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAVNJREFUeNqkU71ugzAQPowtwdAdqRLK3odg6161a+cukZonoGrElgWWDqhb16oP0AfoytStirows0QRMj/unQsohAQi5aTD5vju4/Pd2VBKwTnG6cEYe8bl6s73P09Jel8ur3H5ruv6CUiBYRgfQRAosnrCyQhLOZTLG1ImpYQSA1VVjf7dNE0gLOV0R6AXlAMSk4uiGCUQ6ITdJzDpz0SQTxAoxlqVZo+gLEuQyDxFwIQAwg4IiPV3vYbL2WyUgDBHFbxG0Um9t237sIIkSeDYYGHbur3neQMCTgqoRWEYDToh8NyLxSO4rgtpmrY14D0CUsA5h80mh/n8QQdXq7CTTN/ILMtqa9AjEDjOGrTdSnAcRwdpr1unzB5BMweiGwY8tx/H8U+WZbmUSoPJlfr3NrZLgDkXujbNXaD9DfoLAt8OFRHPfb8X+sLcW+Pc6/wnwABHMdnKf4KT4gAAAABJRU5ErkJggg==\') 0 0}.ui-editor-save-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-cancel-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAtFBMVEX///+nAABhAACnAACjAACCAACgAACHAACjAAByAAB1AAByAACDAACnAACCAACHAACgAACNAACbAACXAACMAACSAABfAACYAACRAACjAACbAAChAACqAACNAACcAACHAACqAADEERGsERHQERG+NjaiERHUTEzYERG4ERGlFBSfFRX/d3f6cnK0JSWoHh7qYmLkXFyvFRXmXl7vZ2fNRUX4cHDXT0/+dnbbU1O3Li7GPT26MTG2f8oMAAAAIXRSTlMASEjMzADMzAAASMxIAMwAAMzMzEjMzEhISABIzABISEg/DPocAAAAj0lEQVR4Xo3PVw6DMBBF0RgXTO+hBYhtILX3sv99RRpvgPcxVzp/M5syb7lYepxDABDeYcQ5wg+MAMhr3JOyJKfxTABqduuvjD37O6sBwjZ+f76/7TFuQw1VnhyGYZPklYagKbKLlDIrmkBDGq1hUaqhM4UQJpwOwFdK+a4LAbCdlWNTCgGwjLlhUQqZ8uofSk8NKY1Fm8EAAAAASUVORK5CYII=\') 0 0}.ui-editor-cancel-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-wrapper .ui-editor-selectmenu .ui-editor-selectmenu-button .ui-icon{text-align:left}.ui-editor-wrapper .ui-editor-selectmenu .ui-editor-selectmenu-button .ui-selectmenu-text{font-size:13px;line-height:22px}.ui-selectmenu-menu li a,.ui-selectmenu-status{line-height:12px}.ui-editor-wrapper [data-title]:after{opacity:0;content:attr(data-title);display:block;position:absolute;top:100%;font-size:12px;font-weight:normal;color:white;padding:11px 16px 7px;white-space:nowrap;overflow:visible;z-index:1000;-webkit-pointer-events:none;-moz-pointer-events:none;pointer-events:none;-webkit-border-radius:9px 9px 2px 2px;-moz-border-radius:9px 9px 2px 2px;-ms-border-radius:9px 9px 2px 2px;-o-border-radius:9px 9px 2px 2px;border-radius:9px 9px 2px 2px;-webkit-transition:opacity .23s 0s;-moz-transition:opacity .23s 0s;-ms-transition:opacity .23s 0s;-o-transition:opacity .23s 0s;transition:opacity .23s 0s;background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSI1cHgiIHN0b3AtY29sb3I9InJnYmEoNDAsIDQwLCA0MCwgMCkiLz48c3RvcCBvZmZzZXQ9IjZweCIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\'),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(5px,rgba(40,40,40,0)),color-stop(6px,#282828),color-stop(100%,#282828)),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-webkit-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-moz-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-o-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-ms-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0}.ui-editor-wrapper [data-title]:hover:after{opacity:1}.ui-editor-wrapper .ui-editor-select-element{position:relative}.ui-editor-wrapper .ui-editor-select-element:after{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSI1cHgiIHN0b3AtY29sb3I9InJnYmEoNDAsIDQwLCA0MCwgMCkiLz48c3RvcCBvZmZzZXQ9IjZweCIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\'),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(5px,rgba(40,40,40,0)),color-stop(6px,#282828),color-stop(100%,#282828)),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-webkit-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-moz-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-o-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-ms-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0}.ui-editor-unsaved-edit-warning{position:fixed;bottom:0;right:0;height:30px;line-height:30px;border-radius:5px 0 0 0;border:1px solid #d4d4d4;padding-right:7px;background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmMiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2VkZWNiZCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#fffff2),color-stop(100%,#edecbd));background:-webkit-linear-gradient(top,#fffff2,#edecbd);background:-moz-linear-gradient(top,#fffff2,#edecbd);background:-o-linear-gradient(top,#fffff2,#edecbd);background:-ms-linear-gradient(top,#fffff2,#edecbd);background:linear-gradient(top,#fffff2,#edecbd);-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-ms-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s;filter:alpha(opacity=0);opacity:0}.ui-editor-unsaved-edit-warning .ui-icon{display:inline-block;float:left;margin:8px 5px 0 5px}.ui-editor-unsaved-edit-warning-visible{filter:alpha(opacity=100);opacity:1}.ui-editor-view-source-button .ui-icon-view-source{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKtJREFUeNpi/P//PwMlgImBQkCxAQwgLzAyMqLjMCCehsSfBhVDUQf2PhYDIoB4JhCLIYmJQcUiCBkQBcRzgFgci6vEoXJRuAyIAeIFODQjG7IAqhbFAAMg3gOlGQhguFp0FyQC8UoglgTx0QFUjSRUTSKuMEgG4nUghVgMkITKJROKhXQg3gbUI42kXxokBpUjGI0gDYVAfBzJABC7EFs6YBz6eYFiAwACDAADJlDtLE22CAAAAABJRU5ErkJggg==\') 0 0}.ui-editor-view-source-button:hover .ui-icon-view-source{filter:alpha(opacity=100);opacity:1}.ui-editor-ui-view-source .ui-editor-ui-view-source-dialog{overflow:auto}.ui-editor-ui-view-source-highlighted,.ui-editor-ui-view-source-plain-text{height:100%;width:100%;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-ui-view-source-dialog code,.ui-editor-ui-view-source-dialog textarea{white-space:pre-line;width:100%;height:100%;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}</style>').appendTo('head');