From 01dd8db0364ff0076a3819753b33f8c2f0208e58 Mon Sep 17 00:00:00 2001 From: Jason Meller Date: Sat, 7 Dec 2013 15:43:14 -0500 Subject: [PATCH 1/3] Use SCSS import vs sprockets require for compatibility with bourbon and compass --- vendor/assets/stylesheets/redactor-rails.css.scss | 3 +++ vendor/assets/stylesheets/redactor-rails/index.css | 1 - vendor/assets/stylesheets/redactor-rails/index.css.scss | 1 + vendor/assets/stylesheets/redactor-rails/plugins.css | 3 --- vendor/assets/stylesheets/redactor-rails/plugins.css.scss | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 vendor/assets/stylesheets/redactor-rails.css.scss delete mode 100644 vendor/assets/stylesheets/redactor-rails/index.css create mode 100644 vendor/assets/stylesheets/redactor-rails/index.css.scss delete mode 100644 vendor/assets/stylesheets/redactor-rails/plugins.css create mode 100644 vendor/assets/stylesheets/redactor-rails/plugins.css.scss diff --git a/vendor/assets/stylesheets/redactor-rails.css.scss b/vendor/assets/stylesheets/redactor-rails.css.scss new file mode 100644 index 00000000..cab2e1b0 --- /dev/null +++ b/vendor/assets/stylesheets/redactor-rails.css.scss @@ -0,0 +1,3 @@ +@import 'redactor-rails/index'; +@import 'redactor-rails/plugins'; + diff --git a/vendor/assets/stylesheets/redactor-rails/index.css b/vendor/assets/stylesheets/redactor-rails/index.css deleted file mode 100644 index b707b8cd..00000000 --- a/vendor/assets/stylesheets/redactor-rails/index.css +++ /dev/null @@ -1 +0,0 @@ -//= require ./css/redactor diff --git a/vendor/assets/stylesheets/redactor-rails/index.css.scss b/vendor/assets/stylesheets/redactor-rails/index.css.scss new file mode 100644 index 00000000..cde215a1 --- /dev/null +++ b/vendor/assets/stylesheets/redactor-rails/index.css.scss @@ -0,0 +1 @@ +@import "./css/redactor"; diff --git a/vendor/assets/stylesheets/redactor-rails/plugins.css b/vendor/assets/stylesheets/redactor-rails/plugins.css deleted file mode 100644 index a60d4aa0..00000000 --- a/vendor/assets/stylesheets/redactor-rails/plugins.css +++ /dev/null @@ -1,3 +0,0 @@ -/* -*= require redactor-rails/plugins/clips -*/ diff --git a/vendor/assets/stylesheets/redactor-rails/plugins.css.scss b/vendor/assets/stylesheets/redactor-rails/plugins.css.scss new file mode 100644 index 00000000..31b1ac5d --- /dev/null +++ b/vendor/assets/stylesheets/redactor-rails/plugins.css.scss @@ -0,0 +1 @@ +@import "redactor-rails/plugins/clips"; From 8a2d3202663de063d799cc91668be1b763372472 Mon Sep 17 00:00:00 2001 From: Jason Meller Date: Sun, 8 Dec 2013 20:07:43 -0500 Subject: [PATCH 2/3] Ensure we use the right turbolinks event binding --- lib/generators/redactor/templates/config.js | 13 +++++++++---- vendor/assets/javascripts/redactor-rails.js | 1 + vendor/assets/javascripts/redactor-rails/config.js | 9 +++++++-- .../assets/javascripts/redactor-rails/redactor.js | 2 +- .../javascripts/redactor-rails/redactor.min.js | 2 +- 5 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 vendor/assets/javascripts/redactor-rails.js diff --git a/lib/generators/redactor/templates/config.js b/lib/generators/redactor/templates/config.js index d2255d33..27095598 100644 --- a/lib/generators/redactor/templates/config.js +++ b/lib/generators/redactor/templates/config.js @@ -1,5 +1,4 @@ -$(document).ready( - function(){ +window.init_redactor = function(){ var csrf_token = $('meta[name=csrf-token]').attr('content'); var csrf_param = $('meta[name=csrf-param]').attr('content'); var params; @@ -9,9 +8,15 @@ $(document).ready( $('.redactor').redactor( { "imageUpload":"/redactor_rails/pictures?" + params, "imageGetJson":"/redactor_rails/pictures", - "fileUpload":"/redactor_rails/documents?" + params, - "fileGetJson":"/redactor_rails/documents", "path":"/assets/redactor-rails", "css":"style.css"} ); +} + +$(document).ready(function(){ + window.init_redactor(); +}); + +$(window).bind('page:load',function(){ + window.init_redactor(); }); diff --git a/vendor/assets/javascripts/redactor-rails.js b/vendor/assets/javascripts/redactor-rails.js new file mode 100644 index 00000000..6ef0f1c4 --- /dev/null +++ b/vendor/assets/javascripts/redactor-rails.js @@ -0,0 +1 @@ +//= require redactor-rails/index diff --git a/vendor/assets/javascripts/redactor-rails/config.js b/vendor/assets/javascripts/redactor-rails/config.js index 7a2d8843..27095598 100644 --- a/vendor/assets/javascripts/redactor-rails/config.js +++ b/vendor/assets/javascripts/redactor-rails/config.js @@ -13,5 +13,10 @@ window.init_redactor = function(){ ); } -$(document).ready( window.init_redactor ); -$(window).bind('page:change', window.init_redactor); +$(document).ready(function(){ + window.init_redactor(); +}); + +$(window).bind('page:load',function(){ + window.init_redactor(); +}); diff --git a/vendor/assets/javascripts/redactor-rails/redactor.js b/vendor/assets/javascripts/redactor-rails/redactor.js index 11f98916..cfd6d045 100755 --- a/vendor/assets/javascripts/redactor-rails/redactor.js +++ b/vendor/assets/javascripts/redactor-rails/redactor.js @@ -6790,4 +6790,4 @@ } }; -})(jQuery); \ No newline at end of file +})(jQuery); diff --git a/vendor/assets/javascripts/redactor-rails/redactor.min.js b/vendor/assets/javascripts/redactor-rails/redactor.min.js index 0c6a28ad..89141803 100644 --- a/vendor/assets/javascripts/redactor-rails/redactor.min.js +++ b/vendor/assets/javascripts/redactor-rails/redactor.min.js @@ -9,4 +9,4 @@ Usage: $('#content').redactor(); */ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(B(d){y b=0;y a=E;"h7 h9";y e=B(f){7[0]=f.kT;7[1]=f.ef;7.4B=f;F 7};e.4l.eL=B(){F 7[0]===7[1]};d.fn.L=B(g){y h=[];y f=d7.4l.j6.3y(jk,1);if(1o g==="kS"){7.19(B(){y j=d.1i(7,"L");if(1o j!=="1k"&&d.4V(j[g])){y i=j[g].fh(j,f);if(i!==1k&&i!==j){h.23(i)}}G{F d.39(\'k6 gV 5x "\'+g+\'" 2O 3V\')}})}G{7.19(B(){if(!d.1i(7,"L")){d.1i(7,"L",c(7,g))}})}if(h.11===0){F 7}G{if(h.11===1){F h[0]}G{F h}}};B c(g,f){F 1V c.4l.5t(g,f)}d.3V=c;d.3V.gx="9.1.4";d.3V.C={2L:E,1p:E,2W:E,U:E,c4:"en",4n:"ig",3I:E,dH:E,dp:M,cY:M,ds:M,es:E,ca:M,9J:E,4f:M,1s:E,5E:E,4a:M,5B:E,5R:M,5h:E,7w:60,9O:E,8A:E,8D:E,6f:"7k://",dy:E,69:"a9",67:E,3c:E,6j:E,7h:M,9L:E,cA:M,8b:["1c/fP","1c/fK","1c/eg"],5T:E,31:E,3s:M,5d:M,a7:M,9M:E,db:M,2a:E,dS:["4K","|","3h","3d","4c","|","4x","4G","5n","4t"],1a:M,3Y:E,9l:Q,di:0,7u:E,9t:E,dD:M,5X:\'<1u Z="hI">\',dC:{},dm:[],3e:["V","|","4K","|","3h","3d","4c","|","4x","4G","5n","4t","|","1c","2J","2Z","1l","2m","|","7B","|","6m"],6r:["4c","3d","3h","4U","4x","4G","6A","6D","6n","5b","1l"],8m:{b:"3h",3O:"3h",i:"3d",em:"3d",6z:"4c",6B:"4c",2d:"4x",2y:"4G",u:"4U",2P:"1l",1E:"1l",1l:"1l"},6p:E,do:["p","2u","2l","h1","h2","h3","h4","h5","h6"],1B:E,4I:M,9E:M,9z:M,7M:E,9D:E,bf:E,5F:E,56:E,5D:["V","6u","2m","1Q","9k","2p","16","hN"],9v:"3O",9w:"em",6v:20,4d:[],5z:[],4S:E,41:"

S;

",22:"S;",8d:/^(P|H[1-6]|2H|7F|7G|7K|7H|7z|7y)$/i,3Z:["P","eY","fe","fd","eM","ei","ep","eE","eD","eK","7p","6t","4D","eB","8W","7F","7G","7K","7H","7z","7y"],8z:["cr","1Q","6u","hr","i?2e","2m","9k","iy","16","2p","1l","4y","2Q","9y"],8x:["1u","dt","dt","h[1-6]","3t","2p"],ch:["2u","N","dl","co","1C","i0","cq","2y","p","2l","5m","1E","9q","2P","2d"],9W:["P","eY","fe","fd","eM","ei","ep","eE","eD","eK","7p","2H","4D","eB","8W","4C","7F","7G","7K","7H","7z","7y","6t"],bY:{en:{V:"fz",2J:"4A dL",1c:"4A dJ",1l:"9g",2m:"dM",8N:"4A 2m",bG:"bp 2m",4z:"jT",4K:"i5",c6:"hv 1e",bS:"fV",55:"dK",bP:"5O 1",bT:"5O 2",cl:"5O 3",cp:"5O 4",cs:"5O 5",3h:"gM",3d:"kE",8G:"kC cd",8M:"iF cd",4x:"js bK",4G:"jw bK",5n:"iS",4t:"iH",5j:"iJ",6l:"4A",aE:"iX",c1:"5Y",8B:"4A 9g",8q:"5W 9u je",8o:"5W 9u iZ",8r:"5W 9m dE",8Q:"5W 9m dI",8U:"5Y 9m",8O:"5Y 9u",8I:"5Y 9g",b9:"kD",b7:"l4",8R:"5W dF",8S:"5Y dF",R:"kX",bq:"kW",25:"kP",1m:"dE",3E:"dI",bU:"dJ k5 dM",1e:"k9",5S:"aV",kc:"aC",bc:"dL k4 dK",2Z:"4A jW",4M:"cH",jV:"jY",aD:"jZ",dk:"k1 aD",dV:"ke 2Z kq",82:"cL 1e cP cz 1m",85:"kv 1e",87:"cL 1e cP cz 3E",7X:"gI 1e",6m:"4A gz hx",4c:"hA",aM:"hy",aT:"hq 2m in 1V hL",4U:"hF",7B:"hG",aB:"hK (hJ)",aX:"bp"}}};c.fn=d.3V.4l={2s:{6J:8,am:46,8e:40,7m:13,af:27,da:9,hH:17,hD:91,hE:37,cU:91},5t:B(g,f){7.$44=7.$1g=d(g);7.9h=b++;y h=d.3P(M,{},d.3V.C);7.C=d.3P({},h,7.$44.1i(),f);7.4X=M;7.hM=[];7.8g=7.$1g.U("1I");7.hS=7.$1g.U("2i");if(7.C.2W){7.C.1p=M}if(7.C.1B){7.C.4I=E}if(7.C.4I){7.C.1B=E}if(7.C.7u){7.C.3Y=M}7.Q=Q;7.2Y=2Y;7.4e=E;7.c3=1V 2I("^<(/?"+7.C.8z.4T("|/?")+"|"+7.C.8x.4T("|")+")[ >]");7.c2=1V 2I("^<(br|/?"+7.C.8z.4T("|/?")+"|/"+7.C.8x.4T("|/")+")[ >]");7.9e=1V 2I("^]");7.7Y=1V 2I("^("+7.C.9W.4T("|")+")$","i");if(7.C.1B===E){if(7.C.56!==E&&d.3R("p",7.C.56)==="-1"){7.C.56.23("p")}if(7.C.5D!==E){y i=d.3R("p",7.C.5D);if(i!=="-1"){7.C.5D.6E(i,i)}}}if(7.1G("3j")||7.1G("6H")){7.C.3e=7.eJ(7.C.3e,"6m")}7.C.18=7.C.bY[7.C.c4];7.dj()},cM:B(f){F{V:{R:f.V,1b:"96"},4K:{R:f.4K,1b:"1R",2N:{p:{R:f.c6,1b:"3N"},2u:{R:f.bS,1b:"fI",3g:"hP"},2l:{R:f.55,1b:"3N",3g:"hC"},h1:{R:f.bP,1b:"3N",3g:"hn"},h2:{R:f.bT,1b:"3N",3g:"hp"},h3:{R:f.cl,1b:"3N",3g:"hm"},h4:{R:f.cp,1b:"3N",3g:"hi"},h5:{R:f.cs,1b:"3N",3g:"hk"}}},3h:{R:f.3h,1P:"3h"},3d:{R:f.3d,1P:"3d"},4c:{R:f.4c,1P:"hs"},4U:{R:f.4U,1P:"4U"},4x:{R:"&hz; "+f.4x,1P:"6g"},4G:{R:"1. "+f.4G,1P:"6s"},5n:{R:"< "+f.5n,1b:"9N"},4t:{R:"> "+f.4t,1b:"a5"},1c:{R:f.1c,1b:"f4"},2J:{R:f.2J,1b:"eZ"},2Z:{R:f.2Z,1b:"bm"},1l:{R:f.1l,1b:"1R",2N:{8B:{R:f.8B,1b:"fr"},ht:{2q:"7P"},8q:{R:f.8q,1b:"eO"},8o:{R:f.8o,1b:"eP"},8r:{R:f.8r,1b:"eQ"},8Q:{R:f.8Q,1b:"eR"},ip:{2q:"7P"},8R:{R:f.8R,1b:"eS"},8S:{R:f.8S,1b:"8F"},io:{2q:"7P"},8U:{R:f.8U,1b:"eX"},8O:{R:f.8O,1b:"eW"},8I:{R:f.8I,1b:"eV"}}},2m:{R:f.2m,1b:"1R",2N:{2m:{R:f.8N,1b:"8w"},4z:{R:f.4z,1P:"4z"}}},8G:{R:f.8G,1b:"1R"},8M:{R:f.8M,1b:"1R"},7B:{R:f.7B,1b:"1R",2N:{6A:{R:f.82,1b:"9f"},6D:{R:f.85,1b:"9c"},6n:{R:f.87,1b:"9d"},5b:{R:f.7X,1b:"98"}}},6A:{R:f.82,1b:"9f"},6D:{R:f.85,1b:"9c"},6n:{R:f.87,1b:"9d"},5b:{R:f.7X,1b:"98"},6m:{1P:"ba",R:f.6m}}},1h:B(f,g,h){y i=7.C[f+"iw"];if(d.4V(i)){if(g===E){F i.3y(7,h)}G{F i.3y(7,g,h)}}G{F h}},ix:B(){cG(7.7w);d(2Y).2F(".L");7.$1g.2F("L-3W");7.$44.2F(".L").ii("L");y g=7.1S();if(7.C.4S){7.$1M.1W(7.$1g);7.$1M.1j();7.$1g.1f(g).1R()}G{y f=7.$J;if(7.C.1p){f=7.$44}7.$1M.1W(f);7.$1M.1j();f.2k("34").2k("dG").26("30").V(g).1R()}if(7.C.2a){d(".9Y").1j()}},ih:B(){F d.3P({},7)},i2:B(){F 7.$J},i3:B(){F 7.$1M},i4:B(){F(7.C.1p)?7.$2e:E},i1:B(){F 7.$1a},1S:B(){F 7.$1g.1f()},dw:B(){7.$J.26("30").26("4r");y f=7.5u(7.$2e.1K().6O());7.$J.15({30:M,4r:7.C.4n});F f},7x:B(f,g,h){f=f.2V();if(7.C.2W){7.bD(f)}G{7.bt(f,g)}if(h!==E){7.cK()}},bt:B(f,g){if(g!==E){f=7.9r(f);f=7.6c(f);f=7.9n(f);f=7.6y(f);if(7.C.1B===E){f=7.9o(f)}G{f=f.I(/([\\w\\W]*?)<\\/p>/gi,"$2
")}}f=7.9p(f);7.$J.V(f);7.12()},bD:B(f){y g=7.9X();7.$2e[0].2w="hY:hZ";f=7.9n(f);f=7.6y(f);f=7.61(f);g.7q();g.cy(f);g.cF();if(7.C.2W){7.$J=7.$2e.1K().T("1Q").15({30:M,4r:7.C.4n})}7.12()},8Z:B(f){f=7.9r(f,M);f=7.9o(f);f=7.9p(f);7.$J.V(f);7.12()},12:B(){y f="";7.bX();if(7.C.2W){f=7.dw()}G{f=7.$J.V()}f=7.8K(f);f=7.61(f);f=7.9R(f);f=f.I(/<\\/1u><(2d|2y)>([\\w\\W]*?)<\\/(2d|2y)>/gi,"<$1>$2");if(d.2o(f)==="
"){f=""}if(f!==""&&7.C.ds){f=7.bZ(f)}f=f.I(/
/gi,"
");f=7.1h("ic",E,f);7.$1g.1f(f);7.1h("ie",E,f);if(7.4X===E){7.1h("7A",E,f)}},8K:B(f){if(!7.C.2W){f=7.6c(f)}f=d.2o(f);f=7.dc(f);f=f.I(/S;/gi,"");f=f.I(/&#d5;/gi,"");f=f.I(/&2j;/gi," ");if(7.C.dy){f=f.I(//gi,"");f=f.I(//gi,\'\')}f=f.I("","?>");f=f.I(/ 1i-5Q=""/gi,"");f=f.I(/\\n?<\\/(P|H[1-6]|2H|7F|7G|7K|7H|7z|7y)>/gi,"");f=f.I(/([\\w\\W]*?)<1q(.*?)><\\/O>/i,"$3<1q$4>");f=f.I(/(.*?)<\\/O>/i,"");f=f.I(/(.*?)<\\/O>/i,"");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$1");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$3");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$3");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$1");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$1");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$3");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$3");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$1");f=f.I(/;7Q;/gi,";");f=7.bk(f);F f},dj:B(){7.3H="";7.$1M=d(\'\');if(7.$1g[0].X==="gm"){7.C.4S=M}if(7.C.dp===E&&7.43()){7.dn()}G{7.dR();if(7.C.1p){7.C.4a=E;7.cD()}G{if(7.C.4S){7.dT()}G{7.dU()}}if(!7.C.1p){7.9x();7.9b()}}},dn:B(){if(!7.C.4S){7.$J=7.$1g;7.$J.1T();7.$1g=7.7r(7.$J);7.$1g.1f(7.3H)}7.$1M.7s(7.$1g).Y(7.$1g)},dR:B(){if(7.C.4S){7.3H=d.2o(7.$1g.1f())}G{7.3H=d.2o(7.$1g.V())}},dT:B(){7.$J=d("");7.$1M.7s(7.$1g).Y(7.$J).Y(7.$1g);7.dN(7.$J);7.8k()},dU:B(){7.$J=7.$1g;7.$1g=7.7r(7.$J);7.$1M.7s(7.$J).Y(7.$J).Y(7.$1g);7.8k()},7r:B(f){F d("<3W />").15("2q",f.15("id")).U("1I",7.8g)},dN:B(f){d.19(7.$1g.1S(0).3g.3x(/\\s+/),B(g,h){f.28("go"+h)})},8k:B(){7.$J.28("34").15({30:M,4r:7.C.4n});7.$1g.15("4r",7.C.4n).1T();7.7x(7.3H,M,E)},9x:B(){y f=7.$J;if(7.C.1p){f=7.$2e}if(7.C.5E){f.15("5E",7.C.5E)}if(7.C.5B){f.U("gw-1I",7.C.5B+"2r")}if(7.C.dH){7.$J.28("dG")}if(!7.C.4a){f.U("1I",7.8g)}},9b:B(){7.4X=E;if(7.C.1a){7.C.1a=7.cM(7.C.18);7.dQ()}7.fA();7.cB();7.95();if(7.C.5h){7.5h()}2h(d.K(7.5c,7),4);if(7.1G("3o")){84{7.Q.1H("gq",E,E);7.Q.1H("gd",E,E)}86(f){}}if(7.C.1s){2h(d.K(7.1s,7),2x)}if(!7.C.4f){2h(d.K(B(){7.C.4f=M;7.96(E)},7),3S)}7.1h("5t")},95:B(){if(7.C.cA){7.$J.1d("5y.L",d.K(7.d4,7))}7.$J.1d("7j.L",d.K(7.dv,7));7.$J.1d("4k.L",d.K(7.cS,7));7.$J.1d("3D.L",d.K(7.d6,7));if(d.4V(7.C.cE)){7.$1g.1d("4k.L-3W",d.K(7.C.cE,7))}if(d.4V(7.C.cC)){7.$J.1d("1s.L",d.K(7.C.cC,7))}7.$J.1d("cQ.L",d.K(B(){7.4F=E},7));if(d.4V(7.C.cR)){7.$J.1d("cQ.L",d.K(7.C.cR,7))}},d4:B(i){i=i.d0||i;if(2Y.ay===1k){F M}y h=i.aP.6x.11;if(h==0){F M}i.1X();y g=i.aP.6x[0];if(7.C.8b!==E&&7.C.8b.3r(g.1r)==-1){F M}7.1x();y f=d(\'\');d(Q.1Q).Y(f);7.aN(7.C.3c,g,M,f,i)},dv:B(g){y h=E;if(7.1G("3G")&&8E.8P.3r("g0")===-1){y f=7.1G("6M").3x(".");if(f[0]"+7.C.22+"

");d(r).1U(q);7.3A(q)}},7),1)}G{if(i===E){7.1x();y g=d("

"+7.C.22+"

");7.2T(g[0]);7.3A(g);7.1h("5Z",l);F E}}}if(7.C.1B){if(i&&7.C.8d.3u(i.X)){7.1x();2h(d.K(B(){y q=7.1Y();if((q.X==="7p"||q.X==="P")&&!d(q).3i("34")){7.ev(q)}},7),1)}G{F 7.9B(l)}}if(i.X=="4D"||i.X=="8W"){F 7.9B(l)}}7.1h("5Z",l)}G{if(p===7.2s.7m&&(l.9K||l.3T)){7.1x();l.1X();7.a0()}}if(p===7.2s.da&&7.C.5R){if(!7.C.db){F M}if(7.8p(7.1S())){F M}l.1X();if(h===M&&!l.3T){7.1x();7.2T(Q.7o("\\t"));7.12();F E}G{if(7.C.9M!==E){7.1x();7.2T(Q.7o(d7(7.C.9M+1).4T("\\hb")));7.12();F E}G{if(!l.3T){7.a5()}G{7.9N()}}}F E}if(p===7.2s.6J){if(1o m.X!=="1k"&&/^(H[1-6])$/i.3u(m.X)){y g;if(7.C.1B===E){g=d("

"+7.C.22+"

")}G{g=d("
"+7.C.22)}d(m).1U(g);7.3A(g)}if(1o m.5U!=="1k"&&m.5U!==2b){y n=d.2o(m.5U.I(/[^\\fb-\\fc]/g,""));if(m.1j&&m.3n===3&&m.5U.gS(0)==d5&&n==""){m.1j()}}}},9B:B(f){7.1x();f.1X();7.a0();7.1h("5Z",f);F},d6:B(l){if(a){F E}y f=l.6I;y h=7.3w();y j=7.2B();if(!7.C.1B&&j.3n==3&&(h==E||h.X=="8J")){y i=d("

").Y(d(j).4H());d(j).1U(i);y g=d(i).6b();if(1o(g[0])!=="1k"&&g[0].X=="fN"){g.1j()}7.5G(i)}if((7.C.9z||7.C.7M||7.C.9D)&&f===7.2s.7m){7.9H(7.C.6f,7.C.9z,7.C.7M,7.C.9D);2h(d.K(B(){if(7.C.7M){7.3s()}if(7.C.5d){7.5d()}},7),5)}if(7.C.1B===E&&(f===7.2s.am||f===7.2s.6J)){F 7.dP(l)}7.1h("3D",l);7.12()},cB:B(){if(!7.C.9O){F}d.19(7.C.9O,d.K(B(f,g){if(9P[g]){d.3P(7,9P[g]);if(d.4V(9P[g].5t)){7.5t()}}},7))},cD:B(){7.cx();if(7.C.4S){7.a2(7.$1g)}G{7.$9Z=7.$1g.1T();7.$1g=7.7r(7.$9Z);7.a2(7.$9Z)}},a2:B(f){7.$1g.15("4r",7.C.4n).1T();7.$1M.7s(f).Y(7.$2e).Y(7.$1g)},cx:B(){7.$2e=d(\'<1p 16="2i: 2x%;" cm="0" />\').7O("bn",d.K(B(){if(7.C.2W){7.9X();if(7.3H===""){7.3H=7.C.22}7.$2e.1K()[0].cy(7.3H);7.$2e.1K()[0].cF();y f=dX(d.K(B(){if(7.$2e.1K().T("1Q").V()){cG(f);7.9S()}},7),0)}G{7.9S()}},7))},8f:B(){F 7.$2e[0].b0.Q},9X:B(){y f=7.8f();if(f.cO){f.km(f.cO)}F f},9V:B(f){f=f||7.C.U;if(7.f1(f)){7.$2e.1K().T("6u").Y(\'<2m 33="ki" 1w="\'+f+\'" />\')}if(d.kf(f)){d.19(f,d.K(B(h,g){7.9V(g)},7))}},9S:B(){7.$J=7.$2e.1K().T("1Q").15({30:M,4r:7.C.4n});if(7.$J[0]){7.Q=7.$J[0].kn;7.2Y=7.Q.ko||2Y}7.9V();if(7.C.2W){7.8Z(7.$J.V())}G{7.7x(7.3H,M,E)}7.9x();7.9b()},dZ:B(f){if(7.8p(f)){if(7.$44.15("3I")){7.C.3I=7.$44.15("3I")}if(7.C.3I===""){7.C.3I=E}if(7.C.3I!==E){7.C.1s=E;7.$J.7O("1s.4o",d.K(7.cJ,7));F d(\'\').15("30",E).1e(7.C.3I)}}F E},cJ:B(){7.$J.T("O.4o").1j();y f="";if(7.C.1B===E){f=7.C.41}7.$J.2F("1s.4o");7.$J.V(f);if(7.C.1B===E){7.3A(7.$J.6O()[0])}7.12()},cK:B(){7.C.3I=E;7.$J.T("O.4o").1j();7.$J.2F("1s.4o")},dc:B(f){F f.I(/(.*?)<\\/O>/i,"")},5R:B(g,f){if(!7.C.5R){F}if(!g.9a){if(f===77){7.3U(g,"k2")}G{if(f===66){7.3U(g,"3h")}G{if(f===73){7.3U(g,"3d")}G{if(f===74){7.3U(g,"6g")}G{if(f===75){7.3U(g,"6s")}G{if(f===72){7.3U(g,"k3")}G{if(f===76){7.3U(g,"ka")}}}}}}}}G{if(f===48){7.47(g,"p")}G{if(f===49){7.47(g,"h1")}G{if(f===50){7.47(g,"h2")}G{if(f===51){7.47(g,"h3")}G{if(f===52){7.47(g,"h4")}G{if(f===53){7.47(g,"h5")}G{if(f===54){7.47(g,"h6")}}}}}}}}},3U:B(g,f){g.1X();7.1H(f,E)},47:B(g,f){g.1X();7.3N(f)},1s:B(){if(!7.1G("6H")){7.2Y.2h(d.K(7.97,7,M),1)}G{7.$J.1s()}},fE:B(){7.97()},97:B(h){7.$J.1s();y f=7.2C();f.7f(7.$J[0]);f.6L(h||E);y g=7.1L();g.4u();g.5s(f)},96:B(h){y g;if(7.C.4f){if(h!==E){7.1F()}y f=2b;if(7.C.1p){f=7.$2e.1I();if(7.C.2W){7.$J.26("30")}7.$2e.1T()}G{f=7.$J.kZ();7.$J.1T()}g=7.$1g.1f();7.5H=g;7.$1g.1I(f).1R().1s();7.$1g.1d("4k.L-3W-dW",B(j){if(j.2s===9){y i=d(7);y l=i.1S(0).3A;i.1f(i.1f().7T(0,l)+"\\t"+i.1f().7T(i.1S(0).5G));i.1S(0).3A=i.1S(0).5G=l+1;F E}});7.bv();7.4i("V");7.C.4f=E}G{g=7.$1g.1T().1f();if(1o 7.5H!=="1k"){7.5H=7.61(7.5H,E)!==7.61(g,E)}if(7.5H){if(7.C.2W&&g===""){7.8Z(g)}G{7.7x(g);if(7.C.2W){7.95()}}}if(7.C.1p){7.$2e.1R()}G{7.$J.1R()}if(7.C.2W){7.$J.15("30",M)}7.$1g.2F("4k.L-3W-dW");7.$J.1s();7.1n();7.5c();7.bu();7.7W("V");7.C.4f=M}},5h:B(){y f=E;7.7w=dX(d.K(B(){y g=7.1S();if(f!==g){d.c5({32:7.C.5h,1r:"5g",1i:7.$1g.15("2q")+"="+l3(kQ(g)),36:d.K(B(h){7.1h("5h",E,h);f=g},7)})}},7),7.C.7w*kF)},dQ:B(){if(7.C.2a){7.C.3e=7.C.dS}G{if(!7.C.dD){y g=7.C.3e.3r("V"),h=7.C.3e[g+1];7.C.3e.6E(g,1);if(h==="|"){7.C.3e.6E(g,1)}}}d.3P(7.C.1a,7.C.dC);d.19(7.C.dm,d.K(B(j,l){7.C.3e.23(l)},7));if(7.C.1a){d.19(7.C.1a.4K.2N,d.K(B(j,l){if(d.3R(j,7.C.do)=="-1"){al 7.C.1a.4K.2N[j]}},7))}if(7.C.3e.11===0){F E}7.dz();7.$1a=d("<2d>").28("kN").15("id","kM"+7.9h);if(7.C.2a){7.$2a=d(\'\').15("id","kL"+7.9h).1T();7.$2a.Y(7.$1a);d("1Q").Y(7.$2a)}G{if(7.C.9t){d(7.C.9t).V(7.$1a)}G{7.$1M.5k(7.$1a)}}d.19(7.C.3e,d.K(B(l,m){if(m==="|"){7.$1a.Y(d(7.C.5X))}G{if(7.C.1a[m]){y j=7.C.1a[m];if(7.C.6j===E&&m==="2Z"){F M}7.$1a.Y(d("<1u>").Y(7.5o(m,j)))}}},7));7.$1a.T("a").15("5E","-1");if(7.C.3Y){7.9j();d(7.C.9l).1d("kO.L",d.K(7.9j,7))}if(7.C.6r){y f=d.K(7.62,7);7.$J.1d("6F.L 3D.L",f)}},9j:B(){y j=d(7.C.9l).3v();y h=7.$1M.2M().1O;y i=0;y f=h+7.$1M.1I()+40;if(j>h){y g="2x%";if(7.C.7u){i=7.$1M.2M().1m;g=7.$1M.dB();7.$1a.28("dr")}7.3Y=M;7.$1a.U({2G:"7L",2i:g,ah:j3,1O:7.C.di+"2r",1m:i});if(j\')}G{h=d(\'\'+i.R+"");h.1d("1v",d.K(B(l){if(l.1X){l.1X()}if(7.1G("3j")){l.dY=E}if(i.1h){i.1h.3y(7,j,h,i,l)}if(i.1P){7.1H(i.1P,j)}if(i.1b){7[i.1b](j)}7.62();if(7.C.2a){7.$2a.5w(2x)}},7))}g.Y(h)},7))},bB:B(l,p){if(!7.C.4f){l.1X();F E}y m=7.$1a.T(".bz"+p);y f=7.2v(p);if(f.3i("5q")){7.7N()}G{7.7N();7.4i(p);f.28("5q");y q=f.2G();if(7.3Y){q=f.2M()}y n=m.2i();if((q.1m+n)>d(Q).2i()){q.1m-=n}y h=q.1m+"2r";y i=29;y j="7D";y o=i+"2r";if(7.C.3Y&&7.3Y){j="7L"}G{if(!7.C.2a){o=q.1O+i+"2r"}}m.U({2G:j,1m:h,1O:o}).1R()}y g=d.K(B(r){7.cu(r,m)},7);d(Q).7O("1v",g);7.$J.7O("1v",g);l.iL()},7N:B(){7.$1a.T("a.5q").2k("5p").2k("5q");d(".bC").1T()},cu:B(g,f){if(!d(g.1z).3i("5q")){f.2k("5q");7.7N()}},5o:B(i,f){y g=d(\'\');g.1d("1v",d.K(B(j){if(j.1X){j.1X()}if(7.1G("3j")){j.dY=E}if(g.3i("8C")){F E}if(7.7b()===E&&!f.1P){7.$J.1s()}if(f.1P){7.$J.1s();7.1H(f.1P,i);7.7R()}G{if(f.1b&&f.1b!=="1R"){7[f.1b](i);7.7R()}G{if(f.1h){f.1h.3y(7,i,g,f,j);7.7R()}G{if(f.2N){7.bB(j,i)}}}}7.62(E,i)},7));if(f.2N){y h=d(\'\');h.7C(7.$1a);7.by(h,f.2N)}F g},2v:B(f){if(!7.C.1a){F E}F d(7.$1a.T("a.7n"+f))},bF:B(g){y f=7.2v(g);if(f.3i("5p")){f.2k("5p")}G{f.28("5p")}},4i:B(f){7.2v(f).28("5p")},7W:B(f){7.2v(f).2k("5p")},bI:B(f){d.19(7.C.1a,d.K(B(g){if(g!=f){7.7W(g)}},7))},bu:B(){7.$1a.T("a.8i").4Z("a.bx").2k("8C")},bv:B(){7.$1a.T("a.8i").4Z("a.bx").28("8C")},jH:B(f,g){7.2v(f).28("7n"+g)},jI:B(f,g){7.2v(f).2k("7n"+g)},jG:B(){7.$1a.Y(d(7.C.5X))},jF:B(f){7.2v(f).1N().1W(d(7.C.5X))},jC:B(f){7.2v(f).1N().38(d(7.C.5X))},jE:B(f){7.2v(f).1N().6b().1j()},jK:B(f){7.2v(f).1N().6N().1j()},jL:B(f){if(!7.C.1a){F}7.2v(f).1N().28("8T")},jR:B(f){if(!7.C.1a){F}7.2v(f).1N().2k("8T")},jS:B(g,h,j,i){if(!7.C.1a){F}y f=7.5o(g,{R:h,1h:j,2N:i});7.$1a.Y(d("<1u>").Y(f))},jQ:B(g,h,j,i){if(!7.C.1a){F}y f=7.5o(g,{R:h,1h:j,2N:i});7.$1a.5k(d("<1u>").Y(f))},jP:B(m,g,i,l,j){if(!7.C.1a){F}y f=7.5o(g,{R:i,1h:l,2N:j});y h=7.2v(m);if(h.2n()!==0){h.1N().1W(d("<1u>").Y(f))}G{7.$1a.Y(d("<1u>").Y(f))}},jM:B(j,g,i,m,l){if(!7.C.1a){F}y f=7.5o(g,{R:i,1h:m,2N:l});y h=7.2v(j);if(h.2n()!==0){h.1N().38(d("<1u>").Y(f))}G{7.$1a.Y(d("<1u>").Y(f))}},jB:B(f,h){y g=7.2v(f);if(h){g.1N().6b().1j()}g.1N().2k("8T");g.1j()},62:B(h,j){y f=7.3w();7.bI(j);if(h===E&&j!=="V"){if(d.3R(j,7.C.6r)!=-1){7.bF(j)}F}if(f&&f.X==="A"){7.$1a.T("a.bH").1e(7.C.18.bG)}G{7.$1a.T("a.bH").1e(7.C.18.8N)}if(7.C.6p){d.19(7.C.6p,d.K(B(l,m){7.C.6r.23(m)},7));d.3P(7.C.8m,7.C.6p)}d.19(7.C.8m,d.K(B(l,m){if(d(f).2A(l,7.$J.1S()[0]).11!=0){7.4i(m)}},7));y g=d(f).2A(7.C.3Z.2V().2X(),7.$J[0]);if(g.11){y i=g.U("1e-79");jr(i){8j"3E":7.4i("6n");6h;8j"bi":7.4i("6D");6h;8j"5b":7.4i("5b");6h;jz:7.4i("6A");6h}}},1P:B(g,h,f){if(g==="fJ"&&7.1G("3j")){h="<"+h+">"}if(g==="3M"&&7.1G("3j")){7.$J.1s();7.Q.2c.57().a6(h)}G{7.Q.1H(g,E,h)}if(f!==E){7.12()}7.1h("1H",g,h)},1H:B(i,h,q){if(!7.C.4f){7.$1g.1s();F E}if(i==="3M"){7.7g(h,q);7.1h("1H",i,h);F}if(7.5M("4C")&&!7.C.bf){F E}if(i==="6g"||i==="6s"){7.1x();y r=7.3w();y m=d(r).2A("2y, 2d");y l=E;if(m.11){l=M;y o=m[0].X;if((i==="6g"&&o==="ju")||(i==="6s"&&o==="jp")){l=E}}7.1F();if(l){y g=7.4Y();y f=7.2E(g);if(1o g[0]!="1k"&&g.11>1&&g[0].3n==3){f.fw(7.1Y())}y j="",s="";d.19(f,d.K(B(v,w){if(w.X=="2H"){y u=d(w);y t=u.4H();t.T("2d","2y").1j();if(7.C.1B===E){j+=7.5u(d("

").Y(t.1K()))}G{j+=t.V()+"
"}if(v==0){u.28("L-jg").6a();s=7.5u(u)}G{u.1j()}}},7));V=7.$J.V().I(s,""+j+"<"+o+">");7.$J.V(V);7.$J.T(o+":6a").1j()}G{7.Q.1H(i);y r=7.3w();y m=d(r).2A("2y, 2d");if(m.11){if((7.1G("3j")||7.1G("3o"))&&r.X!=="2H"){d(r).1U(d(r).V())}y n=m.1N();if(7.7d(n)&&7.6i(n[0])){n.1U(n.1K())}}if(7.1G("3o")){7.$J.1s()}}7.1n();7.12();7.1h("1H",i,h);F}if(i==="4z"){7.1x();y p=7.5M("A");if(p){d(p).1U(d(p).1e());7.12();7.1h("1H",i,h);F}}7.1P(i,h,q);if(i==="ba"){7.$J.T("hr").26("id")}},a5:B(){7.9A("4t")},9N:B(){7.9A("5n")},9A:B(i){7.1x();if(i==="4t"){y j=7.1Y();7.1F();if(j&&j.X=="2H"){y o=7.3w();y l=d(o).2A("2y, 2d");y n=l[0].X;y g=7.2E();d.19(g,B(t,u){if(u.X=="2H"){y r=d(u).6N();if(r.2n()!=0&&r[0].X=="2H"){y q=r.6O("2d, 2y");if(q.2n()==0){r.Y(d("<"+n+">").Y(u))}G{q.Y(u)}}}})}G{if(j===E&&7.C.1B===M){7.1P("59","2u");y p=7.1Y();y j=d(\'\').V(d(p).V());d(p).1U(j);y h=7.6R(d(j).U("21-1m"))+7.C.6v;d(j).U("21-1m",h+"2r")}G{y f=7.2E();d.19(f,d.K(B(r,s){y q=E;if(s.X==="6t"){F}if(d.3R(s.X,7.C.3Z)!==-1){q=d(s)}G{q=d(s).2A(7.C.3Z.2V().2X(),7.$J[0])}y t=7.6R(q.U("21-1m"))+7.C.6v;q.U("21-1m",t+"2r")},7))}}7.1n()}G{7.1F();y j=7.1Y();if(j&&j.X=="2H"){y g=7.2E();y m=0;7.93(j,m,g)}G{y f=7.2E();d.19(f,d.K(B(r,s){y q=E;if(d.3R(s.X,7.C.3Z)!==-1){q=d(s)}G{q=d(s).2A(7.C.3Z.2V().2X(),7.$J[0])}y t=7.6R(q.U("21-1m"))-7.C.6v;if(t<=0){if(7.C.1B===M&&1o(q.1i("5Q"))!=="1k"){q.1U(q.V())}G{q.U("21-1m","");7.3Q(q,"16")}}G{q.U("21-1m",t+"2r")}},7))}7.1n()}},93:B(f,h,g){if(f&&f.X=="2H"){y i=d(f).1N().1N();if(i.2n()!=0&&i[0].X=="2H"){i.1W(f)}G{if(1o g[h]!="1k"){f=g[h];h++;7.93(f,h,g)}G{7.1H("6g")}}}},9p:B(f){y g=7.dZ(f);if(g!==E){F g}if(7.C.1B===E){if(f===""){f=7.C.41}G{if(f.45(/^$/gi)!==-1){f="


"+7.C.41}}}F f},9o:B(f){if(7.C.9E){f=f.I(/([\\w\\W]*?)<\\/N>/gi,"$2

")}if(7.C.4I){f=7.70(f)}F f},9n:B(f){if(7.C.9J){f=f.I(/\\{\\{(.*?)\\}\\}/gi,"");f=f.I(/\\{(.*?)\\}/gi,"")}f=f.I(/<2p(.*?)>([\\w\\W]*?)<\\/2p>/gi,\'$2\');f=f.I(/<16(.*?)>([\\w\\W]*?)<\\/16>/gi,\'<1D$1 16="2t: 25;" 33="L-16-3L">$2\');f=f.I(/<1C(.*?)>([\\w\\W]*?)<\\/1C>/gi,\'<1D$1 33="L-1C-3L">$2\');if(7.C.5F){f=f.I(/<\\?3k([\\w\\W]*?)\\?>/gi,\'<1D 16="2t: 25;" 33="L-3k-3L">$1\')}G{f=f.I(/<\\?3k([\\w\\W]*?)\\?>/gi,"")}F f},bk:B(f){if(7.C.9J){f=f.I(//gi,"{{$1}}");f=f.I(//gi,"{$1}")}f=f.I(/([\\w\\W]*?)<\\/R>/gi,\'<2p$1 1r="1e/7l">$2<\\/2p>\');f=f.I(/<1D(.*?) 16="2t: 25;" 33="L-16-3L">([\\w\\W]*?)<\\/1D>/gi,"<16$1>$2");f=f.I(/<1D(.*?)33="L-1C-3L"(.*?)>([\\w\\W]*?)<\\/1D>/gi,"<1C$1$2>$3");if(7.C.5F){f=f.I(/<1D 16="2t: 25;" 33="L-3k-3L">([\\w\\W]*?)<\\/1D>/gi,"")}F f},61:B(g,f){if(f!==E){y f=[];y i=g.1J(/<(2l|16|2p|R)(.*?)>([\\w\\W]*?)<\\/(2l|16|2p|R)>/gi);if(i===2b){i=[]}if(7.C.5F){y h=g.1J(/<\\?3k([\\w\\W]*?)\\?>/gi);if(h){i=d.9i(i,h)}}if(i){d.19(i,B(j,l){g=g.I(l,"ce"+j);f.23(l)})}}g=g.I(/\\n/g," ");g=g.I(/[\\t]*/g,"");g=g.I(/\\n\\s*\\n/g,"\\n");g=g.I(/^[\\s\\n]*/g," ");g=g.I(/[\\s\\n]*$/g," ");g=g.I(/>\\s{2,} <");g=7.ci(g,f);g=g.I(/\\n\\n/g,"\\n");F g},ci:B(g,f){if(f===E){F g}d.19(f,B(h,j){g=g.I("ce"+h,j)});F g},9R:B(j){j=j.I(/([\\w\\W]*?)<\\/O>/gi,"$1");j=j.I(/[\\iM-\\iQ\\jx]/g,"");y l=["\\\\s*","&2j;","\\\\s*"];y h=["<2l>","<2u>\\\\s*","
","
","<2d>","<2y>","<1u>","<1l>","<2P>","\\\\s*","&2j;","

\\\\s*

","

","

&2j;

","

\\\\s*
\\\\s*

","\\\\s*","\\\\s*
\\\\s*
"];if(7.C.ca){h=h.jn(l)}G{h=l}y f=h.11;2O(y g=0;g

"){F 7.C.41}m=m+"\\n";y o=[];y l=m.1J(/<(1l|N|2l|2R)(.*?)>([\\w\\W]*?)<\\/(1l|N|2l|2R)>/gi);if(l===2b){l=[]}y n=m.1J(//gi);if(n){l=d.9i(l,n)}if(7.C.5F){y g=m.1J(/<1D(.*?)33="L-3k-3L">([\\w\\W]*?)<\\/1D>/gi);if(g){l=d.9i(l,g)}}if(l){d.19(l,B(q,r){o[q]=r;m=m.I(r,"{I"+q+"}\\n")})}m=m.I(/
\\s*
/gi,"\\n\\n");B j(s,i,q){F m.I(1V 2I(s,i),q)}y f="(jh|V|1Q|6u|R|9k|16|2p|2m|1p|1l|2Q|9y|iV|iU|iT|4y|2P|1E|9q|N|dl|dd|dt|2d|2y|1u|2l|5m|3t|1C|cq|cr|2u|a3|iG|16|p|h[1-6]|hr|co|jd|1D|fF|fD|iY|68|35|j4|kV|l8|kK|kI|kH)";m=j("(<"+f+"[^>]*>)","gi","\\n$1");m=j("()","gi","$1\\n\\n");m=j("\\r\\n","g","\\n");m=j("\\r","g","\\n");m=j("/\\n\\n+/","g","\\n\\n");y p=m.3x(1V 2I("\\kA*\\n","g"),-1);m="";2O(y h in p){if(p.ky(h)){if(p[h].45("{I")==-1){m+="

"+p[h].I(/^\\n+|\\n+$/g,"")+"

"}G{m+=p[h]}}}if(m.45(/<2u/gi)!==-1){d.19(m.1J(/<2u(.*?)>([\\w\\W]*?)<\\/2u>/gi),B(q,r){y t="";t=r.I("

","");t=t.I("

","
");m=m.I(r,t)})}m=j("

s*

","gi","");m=j("

([^<]+)","gi","

$1

");m=j("

s*(]*>)s*

","gi","$1");m=j("

(<1u.+?)

","gi","$1");m=j("

s*(]*>)","gi","$1");m=j("(]*>)s*

","gi","$1");m=j("(]*>)s*
","gi","$1");m=j("
(s*]*>)","gi","$1");m=j("\\n

","gi","

");m=j("<1u>

","gi","<1u>");m=j("

","gi","");m=j("

","gi","");m=j("

\\t?\\n?

","gi","

");m=j("

","gi","");m=j("

","gi","");m=j("

","gi","");m=j("

\\t*

","gi","");d.19(o,B(q,r){m=m.I("{I"+q+"}",r)});F d.2o(m)},6y:B(f){y g="3O";if(7.C.9v==="b"){g="b"}y h="em";if(7.C.9w==="i"){h="i"}f=f.I(/([\\w\\W]*?)<\\/O>/gi,"<"+h+">$1");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"<"+g+">$1");if(7.C.9v==="3O"){f=f.I(/([\\w\\W]*?)<\\/b>/gi,"<3O>$1")}G{f=f.I(/<3O>([\\w\\W]*?)<\\/3O>/gi,"$1")}if(7.C.9w==="em"){f=f.I(/([\\w\\W]*?)<\\/i>/gi,"$1")}G{f=f.I(/([\\w\\W]*?)<\\/em>/gi,"$1")}f=f.I(/<6B>([\\w\\W]*?)<\\/6B>/gi,"<6z>$1");if(!/([\\w\\W]*?)<\\/O>/gi.3u(f)){f=f.I(/([\\w\\W]*?)<\\/O>/gi,\'$3\')}F f},6c:B(h){if(h==""||1o h=="1k"){F h}y i=E;if(7.C.56!==E){i=M}y f=i===M?7.C.56:7.C.5D;y g=/<\\/?([a-z][a-8y-9]*)\\b[^>]*>/gi;h=h.I(g,B(l,j){if(i===M){F d.3R(j.2X(),f)>"-1"?l:""}G{F d.3R(j.2X(),f)>"-1"?"":l}});h=7.6y(h);F h},9r:B(f,g){y h=f.1J(/<(2l|55)(.*?)>([\\w\\W]*?)<\\/(2l|55)>/gi);if(h!==2b){d.19(h,d.K(B(l,m){y j=m.1J(/<(2l|55)(.*?)>([\\w\\W]*?)<\\/(2l|55)>/i);j[3]=j[3].I(/&2j;/g," ");if(g!==E){j[3]=7.9C(j[3])}f=f.I(m,"<"+j[1]+j[2]+">"+j[3]+"")},7))}F f},9C:B(f){f=3z(f).I(/&7Q;/g,"&").I(/&6d;/g,"<").I(/>/g,">").I(/&bW;/g,\'"\');F 3z(f).I(/&/g,"&7Q;").I(//g,">").I(/"/g,"&bW;")},bX:B(){y f=7.$J.T("1u, 1q, a, b, 3O, iD, i9, i, em, u, gK, 6B, 6z, O, gG");f.4Z(\'[1i-L="2K"]\').94(\'[16*="3B-2n"][16*="5N-1I"]\').U("3B-2n","").U("5N-1I","");f.4Z(\'[1i-L="2K"]\').94(\'[16*="6o-5J: bR;"][16*="5N-1I"]\').U("6o-5J","").U("5N-1I","");f.4Z(\'[1i-L="2K"]\').94(\'[16*="6o-5J: bR;"]\').U("6o-5J","");f.4Z(\'[1i-L="2K"]\').U("5N-1I","");d.19(f,d.K(B(g,h){7.3Q(h,"16")},7));7.$J.T(\'N[16="1e-79: -3G-3J;"]\').1K().fG()},bZ:B(g){y l=0,n=g.11,m=0,f=2b,h=2b,q="",j="",p="";7.5A=0;2O(;l"!=g.42(m)){m++}q=g.3q(f,m-f);l=m;y o;if("!--"==q.3q(1,3)){if(!q.1J(/--$/)){2D("-->"!=g.3q(m,3)){m++}m+=2;q=g.3q(f,m-f);l=m}if("\\n"!=j.42(j.11-1)){j+="\\n"}j+=7.58();j+=q+">\\n"}G{if("!"==q[1]){j=7.6q(q+">",j)}G{if("?"==q[1]){j+=q+">\\n"}G{if(o=q.1J(/^<(2p|16|2l)/i)){o[1]=o[1].2X();q=7.8X(q);j=7.6q(q,j);h=3z(g.3q(l+1)).2X().3r("\\n<\\/2p>/gi,"<2p$1><\\/2p>");7.5A=0;F f},8X:B(g){y i="";g=g.I(/\\n/g," ");g=g.I(/\\s{2,}/g," ");g=g.I(/^\\s+|\\s+$/g," ");y h="";if(g.1J(/\\/$/)){h="/";g=g.I(/\\/+$/,"")}y f;2D(f=/\\s*([^= ]+)(?:=(([\'"\']).*?\\3|[^ ]+))?/.1P(g)){if(f[2]){i+=f[1].2X()+"="+f[2]}G{if(f[1]){i+=f[1].2X()}}i+=" ";g=g.3q(f[0].11)}F i.I(/\\s*$/,"")+h+">"},6q:B(f,h){y g=f.1J(7.9e);if(f.1J(7.c3)||g){h=h.I(/\\s*$/,"");h+="\\n"}if(g&&"/"==f.42(1)){7.5A--}if("\\n"==h.42(h.11-1)){h+=7.58()}if(g&&"/"!=f.42(1)){7.5A++}h+=f;if(f.1J(7.c2)||f.1J(7.9e)){h=h.I(/ *$/,"");h+="\\n"}F h},9f:B(){7.5V("","iC")},9d:B(){7.5V("3E","ib")},9c:B(){7.5V("bi","ir")},98:B(){7.5V("5b","hu")},5V:B(g,i){7.1x();if(7.7Z()){7.Q.1H(i,E,E);F M}7.1F();y j=7.1Y();if(!j&&7.C.1B){7.1P("59","2u");y f=7.1Y();y j=d(\'\').V(d(f).V());d(f).1U(j);d(j).U("1e-79",g);7.3Q(j,"16");if(g==""&&1o(d(j).1i("5Q"))!=="1k"){d(j).1U(d(j).V())}}G{y h=7.2E();d.19(h,d.K(B(m,n){y l=E;if(d.3R(n.X,7.C.3Z)!==-1){l=d(n)}G{l=d(n).2A(7.C.3Z.2V().2X(),7.$J[0])}if(l){l.U("1e-79",g);7.3Q(l,"16")}},7))}7.1n();7.12()},dP:B(i){y f=d.2o(7.$J.V());f=f.I(//i,"");y h=f.I(/

\\s?<\\/p>/gi,"");if(f===""||h===""){i.1X();y g=d(7.C.41).1S(0);7.$J.V(g);7.1s()}7.12()},3N:B(f){7.1x();y g=7.2E();7.1F();d.19(g,d.K(B(h,j){if(j.X!=="2H"){7.59(f,j)}},7));7.1n();7.12()},59:B(f,i){if(i===E){i=7.1Y()}if(i===E){if(7.C.1B===M){7.1H("fJ",f)}F M}y h="";if(f!=="2l"){h=d(i).1K()}G{h=d(i).V();if(d.2o(h)===""){h=\'\'}}if(i.X==="4C"){f="p"}if(7.C.1B===M&&f==="p"){d(i).1U(d("").Y(h).V()+"
")}G{y g=d("<"+f+">").Y(h);d(i).1U(g)}},ed:B(h,f,g){if(g!==E){7.1F()}y i=d("<"+f+"/>");d(h).1U(B(){F i.Y(d(7).1K())});if(g!==E){7.1n()}F i},fI:B(){7.1x();if(7.C.1B===E){7.1F();y l=7.2E();if(l){d.19(l,d.K(B(n,o){if(o.X==="4D"){7.59("p",o,E)}G{if(o.X!=="2H"){7.59("2u",o,E)}}},7))}7.1n()}G{y j=7.1Y();if(j.X==="4D"){7.1F();d(j).1U(d(j).V()+"
");7.1n()}G{y m=7.ec("2u");y h=d(m).V();y g=["2d","2y","1l","2P","4y","2Q","9y","dl"];d.19(g,B(n,o){h=h.I(1V 2I("<"+o+"(.*?)>","gi"),"");h=h.I(1V 2I("","gi"),"")});y f=7.C.9W;f.23("1E");d.19(f,B(n,o){h=h.I(1V 2I("<"+o+"(.*?)>","gi"),"");h=h.I(1V 2I("","gi"),"
")});d(m).V(h);7.8l(m);y i=d(m).6b();if(i.2n()!=0&&i[0].X==="fN"){i.1j()}}}7.12()},gf:B(f,h){y g=7.2E();d(g).26(f);7.12()},gn:B(f,h){y g=7.2E();d(g).15(f,h);7.12()},gp:B(g){y f=7.2E();d(f).U(g,"");7.3Q(f,"16");7.12()},gc:B(h,g){y f=7.2E();d(f).U(h,g);7.12()},fY:B(g){y f=7.2E();d(f).2k(g);7.3Q(f,"Z");7.12()},fX:B(g){y f=7.2E();d(f).28(g);7.12()},fW:B(f){7.1F();7.9U(B(g){d(g).2k(f);7.3Q(g,"Z")});7.1n();7.12()},g9:B(f){y g=7.2B();if(!d(g).3i(f)){7.4h("28",f)}},gb:B(f){7.1F();7.9U(B(g){d(g).U(f,"");7.3Q(g,"16")});7.1n();7.12()},g7:B(g,f){7.4h("U",g,f)},hg:B(f){7.1F();y h=7.2C(),i=7.64(),g=7.4Y();if(h.4w||h.4E===h.63&&i){g=d(i)}d(g).26(f);7.fH();7.1n();7.12()},he:B(f,g){7.4h("15",f,g)},4h:B(i,f,j){7.1x();7.1F();y g=7.2C();y h=7.64();if((g.4w||g.4E===g.63)&&h&&!7.6i(h)){d(h)[i](f,j)}G{7.Q.1H("5K",E,4);y l=7.$J.T("3B");d.19(l,d.K(B(m,n){7.fM(i,n,f,j)},7))}7.1n();7.12()},fM:B(j,i,f,l){y h=d(i).1N(),g;if(h&&h[0].X==="9T"&&h[0].gB.11!=0){g=h;d(i).1U(d(i).V())}G{g=d(\'\').Y(d(i).1K());d(i).1U(g)}d(g)[j](f,l);F g},9U:B(j){y g=7.2C(),h=7.64(),f=7.4Y(),i;if(g.4w||g.4E===g.63&&h){f=d(h);i=M}d.19(f,d.K(B(l,m){if(!i&&m.X!=="9T"){if(m.4b.X==="9T"&&!d(m.4b).3i("34")){m=m.4b}G{F}}j.3y(7,m)},7))},fH:B(){y f=7.$J.T("O[1i-L-4h]");d.19(f,d.K(B(h,j){y g=d(j);if(g.15("Z")===1k&&g.15("16")===1k){g.1K().fG()}},7))},kr:B(f){7.1F();7.Q.1H("5K",E,4);y h=7.$J.T("3B");y g;d.19(h,B(j,m){y l=d("<"+f+"/>").Y(d(m).1K());d(m).1U(l);g=l});7.1n();7.12()},kx:B(f){7.1F();y g=f.l7();y h=7.4Y();y i=d(7.3w()).1N();d.19(h,B(j,l){if(l.X===g){7.9Q(l)}});if(i&&i[0].X===g){7.9Q(i)}7.1n();7.12()},9Q:B(f){d(f).1U(d(f).1K())},7g:B(h,j){y m=7.2B();y i=m.4b;7.$J.1s();7.1x();y f=d("").Y(d.a4(h));h=f.V();h=7.9R(h);f=d("").Y(d.a4(h));y g=7.1Y();if(f.1K().11==1){y l=f.1K()[0].X;if(l!="P"&&l==g.X||l=="4C"){h=f.1e();f=d("").Y(h)}}if(!7.C.1B&&f.1K().11==1&&f.1K()[0].3n==3&&(7.8n().11>2||(!m||m.X=="8J"&&!i||i.X=="fz"))){h="

"+h+"

"}if(f.1K().11>1&&g||f.1K().is("p, :68, 2d, 2y, N, 1l, 2u, 2l, a3, 1D, 68, 35, fD, fF")){if(7.1G("3j")){7.Q.2c.57().a6(h)}G{7.Q.1H("3M",E,h)}}G{7.6P(h,E)}if(7.4F){7.2Y.2h(d.K(B(){if(!7.C.1B){7.5G(7.$J.1K().eA())}G{7.fE()}},7),1)}7.5c();if(j!==E){7.12()}},6P:B(g,l){y m=7.1L();if(m.2U&&m.4g){y f=m.2U(0);f.fO();y h=7.Q.3F("N");h.4v=g;y n=7.Q.ek(),j,i;2D((j=h.8V)){i=n.5v(j)}f.2T(n);if(i){f=f.88();f.fR(i);f.6L(M);m.4u();m.5s(f)}}if(l!==E){7.12()}},jO:B(g){y f=d(d.a4(g));if(f.11){g=f.1e()}7.$J.1s();if(7.1G("3j")){7.Q.2c.57().a6(g)}G{7.Q.1H("3M",E,g)}7.12()},2T:B(f){f=f[0]||f;y g=7.1L();if(g.2U&&g.4g){4B=g.2U(0);4B.fO();4B.2T(f);4B.kB(f);4B.fR(f);g.4u();g.5s(4B)}},e5:B(j,i){y g;y f=j.fT,m=j.fS;if(7.Q.fQ){y l=7.Q.fQ(f,m);g=7.2C();g.6X(l.kh,l.2M);g.6L(M);g.2T(i)}G{if(7.Q.fx){g=7.Q.fx(f,m);g.2T(i)}G{if(1o Q.1Q.ex!="1k"){g=7.Q.1Q.ex();g.ey(f,m);y h=g.hB();h.ey(f,m);g.ij("ge",h);g.5m()}}}},6Z:B(f){if(7.e7()){if(d(d.2o(7.$J.V())).1S(0)!=d.2o(f)&&7.$J.1K().eA()[0]!==f){F E}7.1x();if(7.C.1B===E){y g=d(7.C.41);d(f).1W(g);7.3A(g)}G{y g=d(\'\'+7.C.22+"",7.Q)[0];d(f).1W(g);d(g).1W(7.C.22);7.1n()}}},a0:B(){7.1F();7.$J.T("#2c-1y-1").38("
"+(7.1G("3G")?7.C.22:""));7.1n()},l5:B(){7.1F();7.$J.T("#2c-1y-1").38("

"+(7.1G("3G")?7.C.22:""));7.1n()},ev:B(f){y g=d("
"+7.C.22);d(f).1U(g);7.3A(g)},er:B(h){h=7.1h("iN",E,h);if(7.C.es){y g=7.Q.3F("N");h=h.I(/
|<\\/H[1-6]>|<\\/p>|<\\/N>/gi,"\\n");g.4v=h;h=g.80||g.e6;h=h.I("\\n","
");h=7.70(h);7.7c(h);F E}if(7.5M("4C")){h=7.eG(h);7.7c(h);F M}h=h.I(//gi,"<2d>");h=h.I(//gi,"");h=h.I(/|<\\?(?:3k)?[\\s\\S]*?\\?>/gi,"");h=h.I(/(&2j;){2,}/gi,"&2j;");h=h.I(/&2j;/gi," ");h=h.I(/([\\w\\W]*?)<\\/b>/gi,"$2");h=h.I(/([\\w\\W]*?)<\\/b>/gi,"$3");h=7.6c(h);h=h.I(/<1E><\\/1E>/gi,"[1E]");h=h.I(/<1E>&2j;<\\/1E>/gi,"[1E]");h=h.I(/<1E>
<\\/1E>/gi,"[1E]");h=h.I(/([\\w\\W]*?)<\\/a>/gi,\'[a 1w="$2"]$4[/a]\');h=h.I(/<1p(.*?)>([\\w\\W]*?)<\\/1p>/gi,"[1p$1]$2[/1p]");h=h.I(/<2J(.*?)>([\\w\\W]*?)<\\/2J>/gi,"[2J$1]$2[/2J]");h=h.I(/<4j(.*?)>([\\w\\W]*?)<\\/4j>/gi,"[4j$1]$2[/4j]");h=h.I(/<3m(.*?)>([\\w\\W]*?)<\\/3m>/gi,"[3m$1]$2[/3m]");h=h.I(/<2R(.*?)>([\\w\\W]*?)<\\/2R>/gi,"[2R$1]$2[/2R]");h=h.I(/<5a(.*?)>/gi,"[5a$1]");h=h.I(/<1q(.*?)16="(.*?)"(.*?)>/gi,"[1q$1$3]");h=h.I(/<1q(.*?)>/gi,"[1q$1]");h=h.I(/ Z="(.*?)"/gi,"");h=h.I(/<(\\w+)([\\w\\W]*?)>/gi,"<$1>");h=h.I(/<[^\\/>][^>]*>(\\s*|\\t*|\\n*|&2j;|
)<\\/[^>]+>/gi,"");h=h.I(/\\s*?\\t*?\\n*?(<2d>|<2y>|

)/gi,"$1");h=h.I(/\\[1E\\]/gi,"<1E>&2j;");h=h.I(/\\[a 1w="(.*?)"\\]([\\w\\W]*?)\\[\\/a\\]/gi,\'$2\');h=h.I(/\\[1p(.*?)\\]([\\w\\W]*?)\\[\\/1p\\]/gi,"<1p$1>$2");h=h.I(/\\[2J(.*?)\\]([\\w\\W]*?)\\[\\/2J\\]/gi,"<2J$1>$2");h=h.I(/\\[4j(.*?)\\]([\\w\\W]*?)\\[\\/4j\\]/gi,"<4j$1>$2");h=h.I(/\\[3m(.*?)\\]([\\w\\W]*?)\\[\\/3m\\]/gi,"<3m$1>$2");h=h.I(/\\[2R(.*?)\\]([\\w\\W]*?)\\[\\/2R\\]/gi,"<2R$1>$2");h=h.I(/\\[5a(.*?)\\]/gi,"<5a$1>");h=h.I(/\\[1q(.*?)\\]/gi,"<1q$1>");if(7.C.9E){h=h.I(/([\\w\\W]*?)<\\/N>/gi,"

$2

");h=h.I(/<\\/N>

/gi,"

");h=h.I(/<\\/p><\\/N>/gi,"

")}if(7.5M("2H")){h=h.I(/

([\\w\\W]*?)<\\/p>/gi,"$1
")}G{h=7.70(h)}h=h.I(/([\\w\\W]*?)<\\/O>/gi,"$2");h=h.I(/<1q>/gi,"");h=h.I(/<[^\\/>][^>][^1q|5a|1g]*>(\\s*|\\t*|\\n*|&2j;|
)<\\/[^>]+>/gi,"");h=h.I(/\\n{3,}/gi,"\\n");h=h.I(/

/gi,"

");h=h.I(/<\\/p><\\/p>/gi,"

");h=h.I(/<1u>(\\s*|\\t*|\\n*)

/gi,"<1u>");h=h.I(/<\\/p>(\\s*|\\t*|\\n*)<\\/1u>/gi,"");if(7.C.1B===M){h=h.I(/([\\w\\W]*?)<\\/p>/gi,"$2
")}h=h.I(/<[^\\/>][^>][^1q|5a|1g]*>(\\s*|\\t*|\\n*|&2j;|
)<\\/[^>]+>/gi,"");h=h.I(/<1q 2w="3G-iO-32\\:\\/\\/(.*?)"(.*?)>/gi,"");7.9G=E;if(7.1G("3o")){if(7.C.7h){y i=h.1J(/<1q 2w="1i:1c(.*?)"(.*?)>/gi);if(i!==2b){7.9G=i;2O(k in i){y f=i[k].I("<1q",\'<1q 1i-3o-7j-1c="\'+k+\'" \');h=h.I(i[k],f)}}}2D(/
$/gi.3u(h)){h=h.I(/
$/gi,"")}}h=h.I(/

•([\\w\\W]*?)<\\/p>/gi,"<1u>$1");2D(/<3B>([\\w\\W]*?)<\\/3B>/gi.3u(h)){h=h.I(/<3B>([\\w\\W]*?)<\\/3B>/gi,"$1")}7.7c(h)},eG:B(g){g=g.I(/
|<\\/H[1-6]>|<\\/p>|<\\/N>/gi,"\\n");y f=7.Q.3F("N");f.4v=g;F 7.9C(f.80||f.e6)},7c:B(f){if(7.4F){if(!7.C.1B){7.$J.V(7.C.41)}G{7.$J.V("")}7.$J.1s()}f=7.1h("iK",E,f);7.7g(f);7.4F=E;2h(d.K(B(){a=E;if(7.1G("3o")){7.$J.T("p:6a").1j()}if(7.9G!==E){7.e8()}},7),2x);if(7.C.4a){d(7.Q.1Q).3v(7.7i)}G{7.$J.3v(7.7i)}},e8:B(){y f=7.$J.T("1q[1i-3o-7j-1c]");d.19(f,d.K(B(j,l){y h=d(l);y g=l.2w.3x(",");y m=g[1];y n=g[0].3x(";")[0].3x(":")[1];d.5g(7.C.9L,{aH:n,1i:m},d.K(B(o){y i=d.6Y(o);h.15("2w",i.4J);h.26("1i-3o-7j-1c");7.12();7.1h("3c",h,i)},7))},7))},e9:B(i){y g=i.1z.j1;y f=g.3x(",");y h=f[1];y j=f[0].3x(";")[0].3x(":")[1];if(7.C.7h){d.5g(7.C.9L,{aH:j,1i:h},d.K(B(n){y m=d.6Y(n);y l=\'<1q 2w="\'+m.4J+\'" id="e4-1c-1y" />\';7.1H("3M",l,E);y o=d(7.$J.T("1q#e4-1c-1y"));if(o.11){o.26("id")}G{o=E}7.12();if(o){7.1h("3c",o,m)}},7))}G{7.7g(\'<1q 2w="\'+g+\'" />\')}},1x:B(f){if(f!==1k){7.C.4d.23(f)}G{7.1F();7.C.4d.23(7.$J.V());7.7V("4d")}},e0:B(){if(7.C.4d.11===0){7.$J.1s();F}7.1F();7.C.5z.23(7.$J.V());7.1n(E,M);7.$J.V(7.C.4d.e3());7.1n();2h(d.K(7.5c,7),2x)},e1:B(){if(7.C.5z.11===0){7.$J.1s();F E}7.1F();7.C.4d.23(7.$J.V());7.1n(E,M);7.$J.V(7.C.5z.e3());7.1n(M);2h(d.K(7.5c,7),4)},5c:B(){7.3s();7.ea();if(7.C.5d){7.5d()}},5d:B(){7.$J.T("a").1d("1v",d.K(7.eb,7));7.$J.1d("1v.L",d.K(B(f){7.5I(f)},7))},ea:B(){7.$J.T("1l").1d("1v",d.K(7.8H,7))},3s:B(){if(7.C.3s===E){F E}7.$J.T("1q").19(d.K(B(f,g){if(7.1G("3j")){d(g).15("kz","1d")}7.f9(g)},7))},eb:B(h){y i=d(h.1z);y l=i.2M();if(7.C.1p){y g=7.$2e.2M();l.1O=g.1O+(l.1O-d(7.Q).3v());l.1m+=g.1m}y o=d(\'\');y f=i.15("1w");if(f.11>24){f=f.7T(0,24)+"..."}y j=d(\'\'+f+"").1d("1v",d.K(B(p){7.5I(E)},7));y m=d(\'\'+7.C.18.aX+"").1d("1v",d.K(B(p){p.1X();7.8w();7.5I(E)},7));y n=d(\'\'+7.C.18.4z+"").1d("1v",d.K(B(p){p.1X();7.1H("4z");7.5I(E)},7));o.Y(j);o.Y(" | ");o.Y(m);o.Y(" | ");o.Y(n);o.U({1O:(l.1O+20)+"2r",1m:l.1m+"2r"});d(".L-2m-89").1j();d("1Q").Y(o)},5I:B(f){if(f!==E&&f.1z.X=="A"){F E}d(".L-2m-89").1j()},1L:B(){if(!7.C.2L){F 7.Q.1L()}G{if(!7.C.1p){F 2L.1L()}G{F 2L.1L(7.$2e[0])}}},2C:B(){if(!7.C.2L){if(7.Q.1L){y f=7.Q.1L();if(f.2U&&f.4g){F f.2U(0)}}F 7.Q.57()}G{if(!7.C.1p){F 2L.57()}G{F 2L.57(7.8f())}}},8l:B(f){7.eN(f)},3A:B(f){7.6e(f[0]||f,0,2b,0)},5G:B(f){7.6e(f[0]||f,1,2b,1)},6e:B(m,l,j,h){if(j==2b){j=m}if(h==2b){h=l}y g=7.1L();if(!g){F}y f=7.2C();f.6X(m,l);f.6W(j,h);84{g.4u()}86(i){}g.5s(f)},ec:B(f){f=f.2X();y i=7.1Y();if(i){y j=7.ed(i,f);7.12();F j}y h=7.1L();y g=h.2U(0);y j=Q.3F(f);j.5v(g.l0());g.2T(j);7.8l(j);F j},kR:B(){y f=7.2C();f.7f(7.$J[0]);y g=7.1L();g.4u();g.5s(f)},ee:B(){7.1L().4u()},eF:B(i){y f=0;y h=7.2C();y g=h.88();g.7f(i);g.6W(h.63,h.ef);f=d.2o(g.2V()).11;F f},eH:B(){F 1V e(7.1L().2U(0))},eN:B(j,g,n){if(1o n==="1k"){n=g}j=j[0]||j;y p=7.2C();p.7f(j);y q=7.8h(j);y m=E;y f=0,r;if(q.11==1&&g){p.6X(q[0],g);p.6W(q[0],n)}G{2O(y o=0,l;l=q[o++];){r=f+l.11;if(!m&&g>=f&&(g\'+7.C.22+"",7.Q)[0];y g=d(\'\'+7.C.22+"",7.Q)[0];if(i.4w===M){7.6K(i,h,M)}G{7.6K(i,h,M);7.6K(i,g,E)}7.4e=7.$J.V();7.1n(E,E)},6K:B(f,h,g){y i=f.88();i.6L(g);i.2T(h);i.kj()},1n:B(i,f){if(!7.C.2L){if(i===M&&7.4e){7.$J.V(7.4e)}y h=7.$J.T("O#2c-1y-1");y g=7.$J.T("O#2c-1y-2");if(7.1G("3o")){7.$J.1s()}G{if(!7.7b()){7.$J.1s()}}if(h.11!=0&&g.11!=0){7.6e(h[0],0,g[0],0)}G{if(h.11!=0){7.6e(h[0],0,2b,0)}}if(f!==E){7.7V();7.4e=E}}G{2L.kk(7.4e)}},7V:B(f){if(!7.C.2L){d.19(7.$J.T("O.L-2c-1y"),B(){y g=d.2o(d(7).V().I(/[^\\fb-\\fc]/g,""));if(g==""){d(7).1j()}G{d(7).26("Z").26("id")}})}G{2L.gN(7.4e)}},2B:B(){y f=E;y g=7.1L();if(g.4g>0){f=g.2U(0).4E}F 7.7d(f)},3w:B(f){f=f||7.2B();if(f){F 7.7d(d(f).1N()[0])}G{F E}},1Y:B(f){if(1o f==="1k"){f=7.2B()}2D(f){if(7.6i(f)){if(d(f).3i("34")){F E}F f}f=f.4b}F E},2E:B(g){y h=[];if(1o g=="1k"){y f=7.2C();if(f&&f.4w===M){F[7.1Y()]}y g=7.4Y(f)}d.19(g,d.K(B(j,l){if(7.C.1p===E&&d(l).9I("N.34").2n()==0){F E}if(7.6i(l)){h.23(l)}},7));if(h.11===0){h=[7.1Y()]}F h},6i:B(f){F f.3n==1&&7.7Y.3u(f.gP)},81:B(f){F 7.7Y.3u(f)},fu:B(j){if(1o j=="1k"||j==E){y j=7.2C()}if(j&&j.4w===M){F[7.2B()]}y f=7.1L();84{y p=f.2U(0).fp()}86(n){F(E)}y l=7.Q.3F("O");l.5v(p);2Y.83=l.8Y;y m=83.11;y g=[];2O(y h=0,o=m;h"),f=3b.cg(3b.cb()*cc),q=d(\'<1l id="1l\'+f+\'"><4y>\'),h,m,n,p;2O(h=0;h");2O(n=0;n"+7.C.22+"");if(h===0&&n===0){p.Y(\'\'+7.C.22+"")}d(m).Y(p)}q.Y(m)}o.Y(q);y j=o.V();7.2g();7.1n();y l=7.1Y()||7.2B();if(l&&l.X!="8J"){d(l).1W(j)}G{7.6P(j,E)}7.1n();y r=7.$J.T("#1l"+f);7.8H(r);7.62();r.T("O#2c-1y-1").1j();r.26("id");7.12()},8H:B(f){7.$1l=d(f.1z||f).2A("1l");7.$4y=d(f.1z).2A("4y");7.$2Q=7.$1l.T("2Q");7.$8s=d(f.1z||7.$1l.T("1E").6T());7.$3l=d(f.1z||7.$1l.T("2P").6T()).2A("2P")},eV:B(){7.1x();if(!7.$1l){F}7.$1l.1j();7.$1l=E;7.12()},eW:B(){7.1x();if(!7.$3l){F}y f=7.$3l.6N().11?7.$3l.6N():7.$3l.6b();if(f.11){y g=f.6O("1E").6T();if(g.11){g.5k(\'\'+7.C.22+"");7.1n()}}7.$3l.1j();7.12()},eX:B(){7.1x();y f=7.$8s.1S(0).gg;7.$1l.T("2P").19(d.K(B(g,h){y j=f-1<0?f+1:f-1;if(g===0){d(h).T("1E").eq(j).5k(\'\'+7.C.22+"");7.1n()}d(h).T("1E").eq(f).1j()},7));7.12()},eS:B(){7.1x();if(7.$1l.T("2Q").2n()!==0){7.8F()}G{y f=7.$1l.T("2P").6T().4H();f.T("1E").V(7.C.22);7.$2Q=d("<2Q>");7.$2Q.Y(f);7.$1l.5k(7.$2Q);7.12()}},8F:B(){7.1x();d(7.$2Q).1j();7.$2Q=E;7.12()},eO:B(){7.8t("38")},eP:B(){7.8t("1W")},eQ:B(){7.8u("38")},eR:B(){7.8u("1W")},8t:B(f){7.1x();y g=7.$3l.4H();g.T("1E").V(7.C.22);if(f==="1W"){7.$3l.1W(g)}G{7.$3l.38(g)}7.12()},8u:B(g){7.1x();y f=0;7.$3l.T("1E").19(d.K(B(h,j){if(d(j)[0]===7.$8s[0]){f=h}},7));7.$1l.T("2P").19(d.K(B(h,l){y j=d(l).T("1E").eq(f);y m=j.4H();m.V(7.C.22);g==="1W"?j.1W(m):j.38(m)},7));7.12()},eZ:B(){7.1F();7.4m(7.C.18.2J,7.C.bd,im,d.K(B(){d("#bL").1v(d.K(7.f6,7));2h(B(){d("#ax").1s()},3S)},7))},f6:B(){y f=d("#ax").1f();f=7.6c(f);7.1n();y g=7.1Y()||7.2B();if(g){d(g).1W(f)}G{7.6P(f,E)}7.12();7.2g()},8w:B(){7.1F();y f=d.K(B(){7.5e=E;y h=7.1L();y g="",o="",j="";y i=7.3w();y l=d(i).1N().1S(0);if(l&&l.X==="A"){i=l}if(i&&i.X==="A"){g=i.1w;o=d(i).1e();j=i.1z;7.5e=i}G{o=h.2V()}d(".6w").1f(o);y q=f8.f5.1w.I(/\\/$/i,"");y n=g.I(q,"");if(7.C.6f===E){y p=1V 2I("^(7k|a1|71)://"+f8.f5.hj,"i");n=n.I(p,"")}y m=d("#3K").T("a");if(7.C.8D===E){m.eq(1).1j()}if(7.C.8A===E){m.eq(2).1j()}if(7.C.8D===E&&7.C.8A===E){d("#3K").1j();d("#5C").1f(n)}G{if(g.45("5S:")===0){7.av.3y(7,2);d("#6k").1f(2);d("#aR").1f(g.I("5S:",""))}G{if(n.45(/^#/gi)===0){7.av.3y(7,3);d("#6k").1f(3);d("#aL").1f(n.I(/^#/gi,""))}G{d("#5C").1f(n)}}}if(j==="4Q"){d("#5i").6V("6U",M)}d("#bh").1v(d.K(7.f0,7));2h(B(){d("#5C").1s()},3S)},7);7.4m(7.C.18.2m,7.C.c9,ho,f)},f0:B(){y j=d("#6k").1f();y h="",n="",l="",m="";if(j==="1"){h=d("#5C").1f();n=d("#ck").1f();if(d("#5i").6V("6U")){l=\' 1z="4Q"\';m="4Q"}y i="((hO--)?[a-8y-9]+(-[a-8y-9]+)*.)+[a-z]{2,}";y g=1V 2I("^(7k|a1|71)://"+i,"i");y f=1V 2I("^"+i,"i");if(h.45(g)==-1&&h.45(f)==0&&7.C.6f){h=7.C.6f+h}}G{if(j==="2"){h="5S:"+d("#aR").1f();n=d("#bl").1f()}G{if(j==="3"){h="#"+d("#aL").1f();n=d("#bo").1f()}}}n=n.I(/<|>/g,"");7.f3(\'"+n+"",d.2o(n),h,m)},f3:B(f,i,g,h){7.1n();if(i!==""){if(7.5e){7.1x();d(7.5e).1e(i).15("1w",g);if(h!==""){d(7.5e).15("1z",h)}G{d(7.5e).26("1z")}7.12()}G{7.1P("3M",f)}}7.2g()},bm:B(){7.1F();y f=d.K(B(){y g=7.1L();y h="";if(7.7Z()){h=g.1e}G{h=g.2V()}d("#aI").1f(h);if(!7.43()){7.ak("#3X",{32:7.C.6j,31:7.C.31,36:d.K(7.b4,7),39:d.K(B(j,i){7.1h("f2",i)},7)})}7.b3("3X",{3J:M,32:7.C.6j,36:d.K(7.b4,7),39:d.K(B(j,i){7.1h("f2",i)},7)})},7);7.4m(7.C.18.2Z,7.C.fB,bV,f)},b4:B(g){7.1n();if(g!==E){y i=d("#aI").1f();if(i===""){i=g.aB}y h=\'\'+i+"";if(7.1G("3G")&&!!7.2Y.8L){h=h+"&2j;"}7.1H("3M",h,E);y f=d(7.$J.T("a#4J-1y"));if(f.2n()!=0){f.26("id")}G{f=E}7.12();7.1h("6j",f,g)}7.2g()},f4:B(){7.1F();y f=d.K(B(){if(7.C.67){d.hl(7.C.67,d.K(B(m){y i={},l=0;d.19(m,d.K(B(o,p){if(1o p.6Q!=="1k"){l++;i[p.6Q]=l}},7));y j=E;d.19(m,d.K(B(r,s){y q="";if(1o s.R!=="1k"){q=s.R}y o=0;if(!d.f7(i)&&1o s.6Q!=="1k"){o=i[s.6Q];if(j===E){j=".5f"+o}}y p=d(\'<1q 2w="\'+s.hV+\'" Z="5f 5f\'+o+\'" 33="\'+s.1c+\'" R="\'+q+\'" />\');d("#aA").Y(p);d(p).1v(d.K(7.fU,7))},7));if(!d.f7(i)){d(".5f").1T();d(j).1R();y n=B(o){d(".5f").1T();d(".5f"+d(o.1z).1f()).1R()};y h=d(\'<5m id="il">\');d.19(i,B(p,o){h.Y(d(\'<3t 2S="\'+o+\'">\'+p+""))});d("#aA").38(h);h.7A(n)}},7))}G{d("#3K").T("a").eq(1).1j()}if(7.C.3c||7.C.5T){if(!7.43()&&7.C.5T===E){if(d("#3X").11){7.ak("#3X",{32:7.C.3c,31:7.C.31,36:d.K(7.aJ,7),39:d.K(B(i,h){7.1h("ar",h)},7)})}}if(7.C.5T===E){7.b3("3X",{3J:M,32:7.C.3c,36:d.K(7.aJ,7),39:d.K(B(i,h){7.1h("ar",h)},7)})}G{d("#3X").1d("7A.L",d.K(7.cN,7))}}G{d(".3a").1T();if(!7.C.67){d("#3K").1j();d("#aQ").1R()}G{y g=d("#3K").T("a");g.eq(0).1j();g.eq(1).28("4q");d("#aU").1R()}}d("#c8").1v(d.K(7.fC,7));if(!7.C.3c&&!7.C.67){2h(B(){d("#4L").1s()},3S)}},7);7.4m(7.C.18.1c,7.C.c7,it,f)},e2:B(h){y f=h;y g=f.1N().1N();y i=d.K(B(){d("#aF").1f(f.15("aS"));d("#hX").15("1w",f.15("2w"));d("#aG").1f(f.U("4O"));if(d(g).1S(0).X==="A"){d("#4L").1f(d(g).15("1w"));if(d(g).15("1z")=="4Q"){d("#5i").6V("6U",M)}}d("#ct").1v(d.K(B(){7.aq(f)},7));d("#c0").1v(d.K(B(){7.eT(f)},7))},7);7.4m(7.C.18.1c,7.C.fL,i6,i)},aq:B(g){y f=d(g).1N();d(g).1j();if(f.11&&f[0].X==="P"){7.$J.1s();7.3A(f)}7.1h("gh",g);7.2g();7.12()},eT:B(i){y g=d(i);y h=g.1N();g.15("aS",d("#aF").1f());y n=d("#aG").1f();if(n==="1m"){g.U({"4O":"1m",21:"0 "+7.C.69+" "+7.C.69+" 0"})}G{if(n==="3E"){g.U({"4O":"3E",21:"0 0 "+7.C.69+" "+7.C.69+""})}G{y l=g.2A("#L-1c-1M");if(l.2n()!=0){l.U({"4O":"",21:""})}g.U({"4O":"",21:""})}}y j=d.2o(d("#4L").1f());if(j!==""){y m=E;if(d("#5i").6V("6U")){m=M}if(h.1S(0).X!=="A"){y f=d(\'\'+7.5u(i)+"");if(m){f.15("1z","4Q")}g.1U(f)}G{h.15("1w",j);if(m){h.15("1z","4Q")}G{h.26("1z")}}}G{if(h.1S(0).X==="A"){h.1U(7.5u(i))}}7.2g();7.3s();7.12()},4W:B(h){if(h!==E&&d(h.1z).1N().2n()!=0&&d(h.1z).1N()[0].id==="L-1c-1M"){F E}y f=7.$J.T("#L-1c-1M");if(f.2n()==0){F E}7.$J.T("#L-1c-aj, #L-1c-ai").1j();y g=f.U("21");if(g!="fy"){f.T("1q").U("21",g);f.U("21","")}f.T("1q").U("eh","");f.1U(B(){F d(7).1K()});d(Q).2F("1v.L-1c-5L-1T");7.$J.2F("1v.L-1c-5L-1T");7.$J.2F("4k.L-1c-al");7.12()},f9:B(g){y f=d(g);f.1d("aW",d.K(B(){7.4W(E)},7));f.1d("fZ",d.K(B(){7.$J.1d("5y.L-1c-fq-5y",d.K(B(){2h(d.K(B(){7.3s();7.$J.2F("5y.L-1c-fq-5y");7.12()},7),1)},7))},7));f.1d("1v",d.K(B(l){if(7.$J.T("#L-1c-1M").2n()!=0){F E}y n=E,q,p,m=f.2i()/f.1I(),o=20,j=10;y h=7.fg(f);y i=E;h.1d("aW",B(r){i=M;r.1X();m=f.2i()/f.1I();q=3b.4P(r.ap-f.eq(0).2M().1m);p=3b.4P(r.ao-f.eq(0).2M().1O)});d(7.Q.1Q).1d("fv",d.K(B(v){if(i){y s=3b.4P(v.ap-f.eq(0).2M().1m)-q;y r=3b.4P(v.ao-f.eq(0).2M().1O)-p;y u=f.1I();y w=6G(u,10)+r;y t=3b.4P(w*m);if(t>o){f.2i(t);if(t<2x){7.4N.U({7t:"-7a",7U:"-hf",5K:"hd",aa:"hc eo"})}G{7.4N.U({7t:"-7e",7U:"-ej",5K:"7e",aa:"7a a9"})}}q=3b.4P(v.ap-f.eq(0).2M().1m);p=3b.4P(v.ao-f.eq(0).2M().1O);7.12()}},7)).1d("6F",B(){i=E});7.$J.1d("4k.L-1c-al",d.K(B(s){y r=s.6I;if(7.2s.6J==r||7.2s.am==r){7.4W(E);7.aq(f)}},7));d(Q).1d("1v.L-1c-5L-1T",d.K(7.4W,7));7.$J.1d("1v.L-1c-5L-1T",d.K(7.4W,7))},7))},fg:B(g){y h=d(\'\');h.U({2G:"fj",2t:"ku-kp",ag:0,jX:"eI kb k8(0, 0, 0, .6)","4O":g.U("4O")});h.15("30",E);y i=g.U("21");if(i!="fy"){h.U("21",i);g.U("21","")}g.U("eh",0.5).1W(h);7.4N=d(\'\'+7.C.18.aX+"");7.4N.U({2G:"7D",ah:2,1O:"50%",1m:"50%",7t:"-7e",7U:"-ej",ag:1,et:"#ew",5J:"#eC",5K:"7e",aa:"7a a9",ae:"kG"});7.4N.15("30",E);7.4N.1d("1v",d.K(B(){7.e2(g)},7));h.Y(7.4N);y f=d(\'\');f.U({2G:"7D",ah:2,ag:1,ae:"jf-5L",j9:"-iE",3E:"-eo",iP:"eI jJ #eC",et:"#ew",2i:"ez",1I:"ez"});f.15("30",E);h.Y(f);h.Y(g);F f},fU:B(g){y f=\'<1q id="1c-1y" 2w="\'+d(g.1z).15("33")+\'" aS="\'+d(g.1z).15("R")+\'" />\';if(7.C.4I){f="

"+f+"

"}7.78(f,M)},fC:B(){y g=d("#4L").1f();if(g!==""){y f=\'<1q id="1c-1y" 2w="\'+g+\'" />\';if(7.C.1B===E){f="

"+f+"

"}7.78(f,M)}G{7.2g()}},aJ:B(f){7.78(f)},78:B(g,h){7.1n();if(g!==E){y f="";if(h!==M){f=\'<1q id="1c-1y" 2w="\'+g.4J+\'" />\';if(7.C.4I){f="

"+f+"

"}}G{f=g}7.1H("3M",f,E);y i=d(7.$J.T("1q#1c-1y"));if(i.11){i.26("id")}G{i=E}7.12();h!==M&&7.1h("3c",i,g)}7.2g();7.3s()},fA:B(){d.3P(7.C,{fB:3z()+\'<1D><1C id="gQ" 5x="5g" 4s="" 7J="7I/1C-1i"><1t>\'+7.C.18.aB+\'<1A 1r="1e" id="aI" Z="3p" /><1A 1r="2Z" id="3X" 2q="2Z" />\',fL:3z()+"<1D><1t>"+7.C.18.R+\'<1A id="aF" Z="3p" /><1t>\'+7.C.18.2m+\'<1A id="4L" Z="3p" /><1t><1A 1r="cj" id="5i"> \'+7.C.18.aT+"<1t>"+7.C.18.bq+\'<5m id="aG"><3t 2S="25">\'+7.C.18.25+\'<3t 2S="1m">\'+7.C.18.1m+\'<3t 2S="3E">\'+7.C.18.3E+\'<35><2f id="ct" Z="3f">\'+7.C.18.c1+\'&2j;&2j;&2j;<2f Z="3f 5r">\'+7.C.18.5j+\'<1A 1r="2f" 2q="aE" Z="3f" id="c0" 2S="\'+7.C.18.aE+\'" />\',c7:3z()+\'<1D>\'+7.C.18.4M+\'\'+7.C.18.aD+\'\'+7.C.18.2m+\'<1C id="gX" 5x="5g" 4s="" 7J="7I/1C-1i"><1A 1r="2Z" id="3X" 2q="2Z" /><1t>\'+7.C.18.bU+\'<1A 1r="1e" 2q="4L" id="4L" Z="3p" /><35><2f Z="3f 5r">\'+7.C.18.5j+\'<1A 1r="2f" 2q="4M" Z="3f" id="c8" 2S="\'+7.C.18.6l+\'" />\',c9:3z()+\'<1D><1C id="kw" 5x="5g" 4s="">aCaV\'+7.C.18.aM+\'<1A 1r="7E" id="6k" 2S="1" /><1t>aC<1A 1r="1e" id="5C" Z="3p" /><1t>\'+7.C.18.1e+\'<1A 1r="1e" Z="3p 6w" id="ck" /><1t><1A 1r="cj" id="5i"> \'+7.C.18.aT+\'<1t>aV<1A 1r="1e" id="aR" Z="3p" /><1t>\'+7.C.18.1e+\'<1A 1r="1e" Z="3p 6w" id="bl" /><1t>\'+7.C.18.aM+\'<1A 1r="1e" Z="3p" id="aL" /><1t>\'+7.C.18.1e+\'<1A 1r="1e" Z="3p 6w" id="bo" /><35><2f Z="3f 5r">\'+7.C.18.5j+\'<1A 1r="2f" Z="3f" id="bh" 2S="\'+7.C.18.6l+\'" />\',bg:3z()+"<1D><1t>"+7.C.18.b9+\'<1A 1r="1e" 2n="5" 2S="2" id="aO" /><1t>\'+7.C.18.b7+\'<1A 1r="1e" 2n="5" 2S="3" id="b6" /><35><2f Z="3f 5r">\'+7.C.18.5j+\'<1A 1r="2f" 2q="4M" Z="3f" id="bb" 2S="\'+7.C.18.6l+\'" />\',bd:3z()+\'<1D><1C id="jy"><1t>\'+7.C.18.bc+\'<3W id="ax" 16="2i: 99%; 1I: jj;"><35><2f Z="3f 5r">\'+7.C.18.5j+\'<1A 1r="2f" Z="3f" id="bL" 2S="\'+7.C.18.6l+\'" />\'})},4m:B(m,i,g,n){y f=d("#ab");if(!f.11){7.$bw=f=d(\'\');d("1Q").5k(7.$bw)}if(7.C.a7){f.1R().1d("1v",d.K(7.2g,7))}y j=d("#ac");if(!j.11){7.$bA=j=d(\'<68 id="7S">\');d("1Q").Y(7.$bA)}d("#ad").1d("1v",d.K(7.2g,7));7.5P=d.K(B(o){if(o.2s===7.2s.af){7.2g();F E}},7);d(Q).3D(7.5P);7.$J.3D(7.5P);7.4p=E;if(i.3r("#")==0){7.4p=d(i);d("#7v").6a().Y(7.4p.V());7.4p.V("")}G{d("#7v").6a().Y(i)}j.T("#7S").V(m);if(1o d.fn.du!=="1k"){j.du({iW:"#7S"});j.T("#7S").U("ae","jb")}y l=d("#3K");if(l.11){y h=7;l.T("a").19(B(o,p){o++;d(p).1d("1v",B(r){r.1X();l.T("a").2k("4q");d(7).28("4q");d(".3a").1T();d("#3a"+o).1R();d("#6k").1f(o);if(h.43()===E){y q=j.dh();j.U("21-1O","-"+(q+10)/2+"2r")}})})}j.T(".5r").1d("1v",d.K(7.2g,7));if(7.C.4a===M){7.as=7.Q.1Q.3v}if(7.43()===E){j.U({2G:"7L",1O:"-aZ",1m:"50%",2i:g+"2r",7U:"-"+(g+60)/2+"2r"}).1R();7.au=d(Q.1Q).U("at");d(Q.1Q).U("at","7E")}G{j.U({2G:"7L",2i:"2x%",1I:"2x%",1O:"0",1m:"0",21:"0",5B:"jU"}).1R()}if(1o n==="B"){n()}if(7.43()===E){2h(B(){y o=j.dh();j.U({1O:"50%",1I:"3J",5B:"3J",7t:"-"+(o+10)/2+"2r"})},10)}},2g:B(){d("#ad").2F("1v",7.2g);d("#ac").5w("kJ",d.K(B(){y f=d("#7v");if(7.4p!==E){7.4p.V(f.V());7.4p=E}f.V("");if(7.C.a7){d("#ab").1T().2F("1v",7.2g)}d(Q).dO("3D",7.5P);7.$J.dO("3D",7.5P);7.1n();if(7.C.4a&&7.as){d(7.Q.1Q).3v(7.as)}},7));if(7.43()===E){d(Q.1Q).U("at",7.au?7.au:"de")}F E},av:B(f){d(".3a").1T();d("#3K").T("a").2k("4q").eq(f-1).28("4q");d("#3a"+f).1R()},cN:B(l){y h=l.1z.6x;2O(y g=0,j;j=h[g];g++){7.cw(j)}},cw:B(f){7.cv(f,d.K(B(g){7.d1(f,g)},7))},cv:B(f,h){y g=1V d8();g.7q("gO",7.C.5T+"?2q="+f.2q+"&1r="+f.1r,M);g.gJ("1e/gC; gA=x-gD-gE");g.gH=B(i){if(7.d3==4&&7.b5==3S){d("#L-1Z").bj();h(gF(7.gR))}G{if(7.d3==4&&7.b5!=3S){}}};g.b8()},cT:B(h,f){y g=1V d8();if("h8"in g){g.7q(h,f,M)}G{if(1o d2!="1k"){g=1V d2();g.7q(h,f)}G{g=2b}}F g},d1:B(g,f){y h=7.cT("g8",f);if(!h){}G{h.d9=d.K(B(){if(h.b5==3S){d("#L-1Z").1T();y l=f.3x("?");if(!l[0]){F E}7.1n();y i="";i=\'<1q id="1c-1y" 2w="\'+l[0]+\'" />\';if(7.C.4I){i="

"+i+"

"}7.1H("3M",i,E);y j=d(7.$J.T("1q#1c-1y"));if(j.11){j.26("id")}G{j=E}7.12();7.1h("3c",j,E);7.2g();7.3s()}G{}},7);h.i8=B(){};h.4M.i7=B(i){};h.bs("ia-iv",g.1r);h.bs("x-iz-iB","iA-iu");h.b8(g)}},b3:B(h,f){7.2z={32:E,36:E,39:E,4X:E,b1:E,3J:E,1A:E};d.3P(7.2z,f);y g=d("#"+h);if(g.11&&g[0].X==="ik"){7.2z.1A=g;7.el=d(g[0].1C)}G{7.el=g}7.cI=7.el.15("4s");if(7.2z.3J){d(7.2z.1A).7A(d.K(B(i){7.el.b2(B(j){F E});7.aY(i)},7))}G{if(7.2z.b1){d("#"+7.2z.b1).1v(d.K(7.aY,7))}}},aY:B(f){d("#L-1Z").bj();7.bM(7.44,7.bO())},bO:B(){7.id="f"+3b.cg(3b.cb()*cc);y g=7.Q.3F("N");y f=\'<1p 16="2t:25" id="\'+7.id+\'" 2q="\'+7.id+\'">\';g.4v=f;d(g).7C("1Q");if(7.2z.4X){7.2z.4X()}d("#"+7.id).bn(d.K(7.dg,7));F 7.id},bM:B(j,i){if(7.2z.1A){y l="hU"+7.id,g="hw"+7.id;7.1C=d(\'<1C 4s="\'+7.2z.32+\'" 5x="aK" 1z="\'+i+\'" 2q="\'+l+\'" id="\'+l+\'" 7J="7I/1C-1i" />\');if(7.C.31!==E&&1o 7.C.31==="2R"){d.19(7.C.31,d.K(B(n,f){if(f!=2b&&f.2V().3r("#")===0){f=d(f).1f()}y o=d("<1A/>",{1r:"7E",2q:n,2S:f});d(7.1C).Y(o)},7))}y h=7.2z.1A;y m=d(h).4H();d(h).15("id",g).38(m).7C(7.1C);d(7.1C).U("2G","7D").U("1O","-aZ").U("1m","-aZ").7C("1Q");7.1C.b2()}G{j.15("1z",i).15("5x","aK").15("7J","7I/1C-1i").15("4s",7.2z.32);7.44.b2()}},dg:B(){y j=d("#"+7.id)[0],l;if(j.df){l=j.df}G{if(j.b0){l=j.b0.Q}G{l=2Y.gL[7.id].Q}}if(7.2z.36){d("#L-1Z").1T();if(1o l!=="1k"){y h=l.1Q.4v;y g=h.1J(/\\{(.|\\n)*\\}/)[0];g=g.I(/^\\[/,"");g=g.I(/\\]$/,"");y f=d.6Y(g);if(1o f.39=="1k"){7.2z.36(f)}G{7.2z.39(7,f);7.2g()}}G{7.2g();kg("cH kt!")}}7.el.15("4s",7.cI);7.el.15("1z","")},ak:B(g,f){7.4R=d.3P({32:E,36:E,39:E,l6:E,31:E,1e:7.C.18.dV,cf:7.C.18.dk},f);if(2Y.ay===1k){F E}7.aw=d(\'\');7.3C=d(\'\'+7.4R.1e+"");7.bE=d(\'\'+7.4R.cf+"");7.aw.Y(7.3C);d(g).38(7.aw);d(g).38(7.bE);7.3C.1d("jD",d.K(B(){F 7.ff()},7));7.3C.1d("jA",d.K(B(){F 7.fl()},7));7.3C.1S(0).ji=d.K(B(h){h.1X();7.3C.2k("an").28("5y");7.aN(7.4R.32,h.aP.6x[0],E)},7)},aN:B(h,j,f,g,l){if(!f){y m=d.jN.bQ();if(m.4M){m.4M.kU("1Z",d.K(7.fm,7),E)}d.kl({bQ:B(){F m}})}y i=1V ay();i.Y("2Z",j);if(7.C.31!==E&&1o 7.C.31==="2R"){d.19(7.C.31,d.K(B(o,n){if(n!=2b&&n.2V().3r("#")===0){n=d(n).1f()}i.Y(o,n)},7))}d.c5({32:h,gZ:"V",1i:i,hh:E,aH:E,hT:E,1r:"aK",36:d.K(B(p){p=p.I(/^\\[/,"");p=p.I(/\\]$/,"");y o=d.6Y(p);if(f){g.5w("j5",B(){d(7).1j()});y n=d("<1q>");n.15("2w",o.4J).15("id","a8-1c-1y");7.e5(l,n[0]);y q=d(7.$J.T("1q#a8-1c-1y"));if(q.11){q.26("id")}G{q=E}7.12();7.3s();if(q){7.1h("3c",q,o)}if(1o o.39!=="1k"){7.1h("ar",o)}}G{if(1o o.39=="1k"){7.4R.36(o)}G{7.4R.39(7,o);7.4R.36(E)}}},7)})},ff:B(){7.3C.28("an");F E},fl:B(){7.3C.2k("an");F E},fm:B(g,h){y f=g.eU?6G(g.eU/g.gy*2x,10):g;7.3C.1e("gu "+f+"% "+(h||""))},43:B(){F/(gv|gj|gk|iq)/.3u(8E.8P)},6R:B(f){if(1o(f)==="1k"){F 0}F 6G(f.I("2r",""),10)},5u:B(f){F d("").Y(d(f).eq(0).4H()).V()},f1:B(f){F hQ.4l.2V.3y(f)=="[2R 3z]"},8p:B(f){f=f.I(/S;|
||&2j;/gi,"");f=f.I(/\\s/g,"");f=f.I(/^

[^\\W\\w\\D\\d]*?<\\/p>$/i,"");F f==""},1G:B(g){y h=8E.8P.2X();y f=/(8L)[ \\/]([\\w.]+)/.1P(h)||/(3G)[ \\/]([\\w.]+)/.1P(h)||/(6H)(?:.*6M|)[ \\/]([\\w.]+)/.1P(h)||/(3j) ([\\w.]+)/.1P(h)||h.3r("g4")<0&&/(3o)(?:.*? gU:([\\w.]+)|)/.1P(h)||[];if(g=="6M"){F f[2]}if(g=="3G"){F(f[1]=="8L"||f[1]=="3G")}F f[1]==g},7Z:B(){if(7.1G("3j")&&6G(7.1G("6M"),10)<9){F M}F E},fk:B(g){y f=g.k0(M);y h=7.Q.3F("N");h.5v(f);F h.4v},8a:B(){y f=7.$J[0];y h=7.Q.ek();y g;2D((g=f.8V)){h.5v(g)}F h},7d:B(f){if(!f){F E}if(7.C.1p){F f}if(d(f).9I("N.34").11==0||d(f).3i("34")){F E}G{F f}},5M:B(f){y g=7.3w(),h=7.2B();F g&&g.X===f?g:h&&h.X===f?h:E},e7:B(){y g=7.1Y();y i=7.eF(g);y h=d.2o(d(g).1e()).I(/\\n\\r\\n/g,"");y f=h.11;if(i==f){F M}G{F E}},7b:B(){y f,g=7.1L();if(g&&g.4g&&g.4g>0){f=g.2U(0).4E}if(!f){F E}if(7.C.1p){if(7.eH().eL()){F!7.$J.is(f)}G{F M}}F d(f).2A("N.34").11!=0},3Q:B(g,f){if(d(g).15(f)==""){d(g).26(f)}},eJ:B(h,g){y f=2b;2D((f=h.3r(g))!==-1){h.6E(f,1)}F h}};c.4l.5t.4l=c.4l;d.3V.fn.9H=B(x,u,m,r){y s=/(^|&6d;|\\s)(9F\\..+?\\..+?)(\\s|>|$)/g,q=/(^|&6d;|\\s)(((71?|a1):\\/\\/|5S:).+?)(\\s|>|$)/g,f=/(71?:\\/\\/.*\\.(?:fP|hW|fK|eg))/gi,w=/^.*(hR.be\\/|v\\/|u\\/\\w\\/|3m\\/|gs\\?v=|\\&v=)([^#\\&\\?]*).*/,t=/7k:\\/\\/(9F\\.)?bJ.8v\\/(\\d+)($|\\/)/;y v=(7.$J?7.$J.1S(0):7).8Y,l=v.11;2D(l--){y j=v[l];if(j.3n===3){y p=j.5U;if(r&&p){y o=\'<1p 2i="bV" 1I="kY" 2w="\',h=\'" cm="0" l2>\';if(p.1J(w)){p=p.I(w,o+"//9F.iI.8v/3m/$2"+h);d(j).1W(p).1j()}G{if(p.1J(t)){p=p.I(t,o+"//jm.bJ.8v/2J/$2"+h);d(j).1W(p).1j()}}}if(m&&p&&p.1J(f)){p=p.I(f,\'<1q 2w="$1">\');d(j).1W(p).1j()}if(u&&p&&(p.1J(s)||p.1J(q))){y g=(p.1J(s)||p.1J(q));g=g[0];if(g.11>50){g=g.7T(0,50)+"..."}p=p.I(/&/g,"&7Q;").I(//g,">").I(s,\'$1\'+g+"$3").I(q,\'$1\'+g+"$5");d(j).1W(p).1j()}}G{if(j.3n===1&&!/^(a|2f|3W)$/i.3u(j.X)){d.3V.fn.9H.3y(j,x,u,m,r)}}}}})(kd);',62,1311,'|||||||this|||||||||||||||||||||||||||var|||function|opts||false|return|else||replace|editor|proxy|redactor|true|div|span||document|title||find|css|html||tagName|append|class||length|sync|||attr|style||curLang|each|toolbar|func|image|on|text|val|source|callback|data|remove|undefined|table|left|selectionRestore|typeof|iframe|img|type|focus|label|li|click|href|bufferSet|marker|target|input|linebreaks|form|section|td|selectionSave|browser|execCommand|height|match|contents|getSelection|box|parent|top|exec|body|show|get|hide|replaceWith|new|after|preventDefault|getBlock|progress||margin|invisibleSpace|push||none|removeAttr||addClass||air|null|selection|ul|frame|button|modalClose|setTimeout|width|nbsp|removeClass|pre|link|size|trim|script|name|px|keyCode|display|blockquote|buttonGet|src|100|ol|uploadOptions|closest|getCurrent|getRange|while|getBlocks|off|position|LI|RegExp|video|verified|rangy|offset|dropdown|for|tr|thead|object|value|insertNode|getRangeAt|toString|fullpage|toLowerCase|window|file|contenteditable|uploadFields|url|rel|redactor_editor|footer|success||before|error|redactor_tab|Math|imageUpload|italic|buttons|redactor_modal_btn|className|bold|hasClass|msie|php|current_tr|embed|nodeType|mozilla|redactor_input|substr|indexOf|observeImages|option|test|scrollTop|getParent|split|call|String|selectionStart|font|dropareabox|keyup|right|createElement|webkit|content|placeholder|auto|redactor_tabs|tag|inserthtml|formatBlocks|strong|extend|removeEmptyAttr|inArray|200|shiftKey|shortcutsLoad|Redactor|textarea|redactor_file|toolbarFixed|alignmentTags||emptyHtml|charAt|isMobile|element|search||shortcutsLoadFormat|||autoresize|parentNode|deleted|buffer|savedSel|visual|rangeCount|inlineMethods|buttonActive|audio|keydown|prototype|modalInit|direction|redactor_placeholder|modalcontent|redactor_tabs_act|dir|action|indent|removeAllRanges|innerHTML|collapsed|unorderedlist|tbody|unlink|Insert|range|PRE|BLOCKQUOTE|startContainer|selectall|orderedlist|clone|paragraphy|filelink|formatting|redactor_file_link|upload|imageEditter|float|round|_blank|draguploadOptions|textareamode|join|underline|isFunction|imageResizeHide|start|getNodes|not||||||code|allowedTags|createRange|cleanGetTabs|formatBlock|param|justify|observeStart|observeLinks|insert_link_node|redactorfolder|post|autosave|redactor_link_blank|cancel|prepend|bar|select|outdent|buttonBuild|redactor_act|dropact|redactor_btn_modal_close|addRange|init|outerHtml|appendChild|fadeOut|method|drop|rebuffer|cleanlevel|minHeight|redactor_link_url|deniedTags|tabindex|phpTags|selectionEnd|modified|linkObserverTooltipClose|color|fontSize|resize|currentOrParentIs|line|Header|hdlModalClose|tagblock|shortcuts|mailto|s3|nodeValue|alignmentSet|Add|buttonSeparator|Delete|enter||cleanRemoveSpaces|buttonActiveObserver|endContainer|getElement|||imageGetJson|header|imageFloatMargin|empty|next|cleanStripTags|lt|selectionSet|linkProtocol|insertunorderedlist|break|nodeTestBlocks|fileUpload|redactor_tab_selected|insert|horizontalrule|alignright|background|activeButtonsAdd|placeTag|activeButtons|insertorderedlist|TD|head|indentValue|redactor_link_text|files|cleanConvertInlineTags|del|alignleft|strike|template|aligncenter|splice|mouseup|parseInt|opera|which|BACKSPACE|selectionSetMarker|collapse|version|prev|children|insertHtmlAdvanced|folder|normalize|x200b|first|checked|prop|setEnd|setStart|parseJSON|insertAfterLastElement|cleanParagraphy|https|||||||imageInsert|align|7px|isFocused|pasteInsert|isParentRedactor|11px|selectNodeContents|insertHtml|clipboardUpload|saveScroll|paste|http|javascript|ENTER|redactor_btn_|createTextNode|DIV|open|buildCodearea|insertAfter|marginTop|toolbarFixedBox|redactor_modal_inner|autosaveInterval|set|ARTICLE|ASIDE|change|alignment|appendTo|absolute|hidden|ADDRESS|SECTION|FOOTER|multipart|enctype|HEADER|fixed|convertImageLinks|dropdownHideAll|one|separator|amp|airBindMousemoveHide|redactor_modal_header|substring|marginLeft|selectionRemoveMarkers|buttonInactive|align_justify|rTestBlock|oldIE|textContent|tagTestBlock|align_left|selnodes|try|align_center|catch|align_right|cloneRange|tooltip|extractContent|dnbImageTypes|clipboardData|rBlockTest|DOWN|iframeDoc|sourceHeight|getTextNodesIn|redactor_btn|case|buildEnable|selectionElement|activeButtonsStates|getRangeSelectedNodes|insert_row_below|isEmpty|insert_row_above|insert_column_left|current_td|tableAddRow|tableAddColumn|com|linkShow|contOwnLine|z0|ownLine|linkAnchor|insert_table|redactor_button_disabled|linkEmail|navigator|tableDeleteHead|fontcolor|tableObserver|delete_table|BODY|syncClean|chrome|backcolor|link_insert|delete_row|userAgent|insert_column_right|add_head|delete_head|redactor_btn_right|delete_column|firstChild|FIGCAPTION|cleanTag|childNodes|setFullpageOnInit|||cleanFinish|insideOutdent|filter|buildBindKeyboard|toggle|focusSet|alignmentJustify||altKey|buildAfter|alignmentCenter|alignmentRight|cleannewLevel|alignmentLeft|Table|uuid|merge|toolbarObserveScroll|meta|toolbarFixedTarget|Column|cleanConvertProtected|cleanConverters|cleanEmpty|th|cleanSavePreCode|airShow|toolbarExternal|Row|boldTag|italicTag|buildOptions|tfoot|convertLinks|indentingStart|buildEventKeydownInsertLineBreak|cleanEncodeEntities|convertVideoLinks|convertDivs|www|pasteClipboardMozilla|formatLinkify|parents|templateVars|ctrlKey|clipboardUploadUrl|tabSpaces|indentingOutdent|plugins|RedactorPlugins|inlineRemoveFormatReplace|cleanRemoveEmptyTags|iframeLoad|SPAN|inlineEachNodes|iframeAddCss|blockLevelElements|iframePage|redactor_air|sourceOld|insertLineBreak|ftp|iframeAppend|address|parseHTML|indentingIndent|pasteHTML|modalOverlay|drag|10px|padding|redactor_modal_overlay|redactor_modal|redactor_modal_close|cursor|ESC|lineHeight|zIndex|resizer|editter|draguploadInit|delete|DELETE|hover|pageY|pageX|imageRemove|imageUploadError|saveModalScroll|overflow|modalSaveBodyOveflow|modalSetTab|droparea|redactor_insert_video_area|FormData|striped|redactor_image_box|filename|URL|choose|save|redactor_file_alt|redactor_form_image_align|contentType|redactor_filename|imageCallback|POST|redactor_link_anchor|anchor|dragUploadAjax|redactor_table_rows|dataTransfer|redactor_tab3|redactor_link_mailto|alt|link_new_tab|redactor_tab2|Email|mousedown|edit|uploadSubmit|2000px|contentWindow|trigger|submit|uploadInit|fileCallback|status|redactor_table_columns|columns|send|rows|inserthorizontalrule|redactor_insert_table_btn|video_html_code|modal_video||formattingPre|modal_table|redactor_insert_link_btn|center|fadeIn|cleanReConvertProtected|redactor_link_mailto_text|fileShow|load|redactor_link_anchor_text|Edit|image_position||setRequestHeader|setEditor|buttonActiveVisual|buttonInactiveVisual|overlay|redactor_btn_html|dropdownBuild|redactor_dropdown_box_|modal|dropdownShow|redactor_dropdown|setCodeIframe|dropalternative|buttonActiveToggle|link_edit|redactor_dropdown_link|buttonInactiveAll|vimeo|List|redactor_insert_video_btn|uploadForm|double|uploadFrame|header1|xhr|transparent|quote|header2|image_web_link|500|quot|cleanUnverified|langs|cleanHtml|redactorSaveBtn|_delete|cleanlineAfter|cleanlineBefore|lang|ajax|paragraph|modal_image|redactor_upload_btn|modal_link|removeEmptyTags|random|99999|Color|buffer_|atext|floor|newLevel|cleanReplacer|checkbox|redactor_link_url_text|header3|frameborder|redactor_tab1|fieldset|header4|map|area|header5|redactor_image_delete_btn|dropdownHide|s3executeOnSignedUrl|s3uploadFile|iframeCreate|write|the|dragUpload|buildPlugins|focusCallback|iframeStart|textareaKeydownCallback|close|clearInterval|Upload|element_action|placeholderFocus|placeholderRemove|Align|initToolbar|s3handleFileSelect|documentElement|to|blur|blurCallback|buildEventKeydown|s3createCORSRequest|LEFT_WIN|metaKey|clipboardFilePaste|items|cleanup|buildEventClipboardUpload|originalEvent|s3uploadToS3|XDomainRequest|readyState|buildEventDrop|8203|buildEventKeyup|Array|XMLHttpRequest|onload|TAB|tabFocus|placeholderRemoveFromCode||visible|contentDocument|uploadLoaded|outerHeight|toolbarFixedTopOffset|buildStart|or_choose||buttonsAdd|buildMobile|formattingTags|mobile|visibility|toolbar_fixed_box|tidyHtml||draggable|buildEventPaste|getCodeIframe|airBindHide|linkNofollow|airEnable|nofollow|innerWidth|buttonsCustom|buttonSource|Left|Head|redactor_editor_wym|wym|Right|Image|Code|Video|Link|buildAddClasses|unbind|formatEmpty|toolbarBuild|buildContent|airButtons|buildFromTextarea|buildFromElement|drop_file_here|indenting|setInterval|returnValue|placeholderStart|bufferUndo|bufferRedo|imageEdit|pop|clipboard|insertNodeToCaretPositionFromPoint|innerText|isEndOfElement|pasteClipboardUploadMozilla|pasteClipboardUpload|observeTables|linkObserver|selectionWrap|formatChangeTag|selectionRemove|endOffset|gif|opacity|H5|18px|createDocumentFragment||||5px|H6||pasteClean|pastePlainText|backgroundColor|internal|replaceLineBreak|000|createTextRange|moveToPoint|8px|last|OUTPUT|fff|DL|DD|getCaretOffset|pastePre|getCaretOffsetRange|1px|removeFromArrayByValue|DT|equals|H4|setCaret|tableAddRowAbove|tableAddRowBelow|tableAddColumnLeft|tableAddColumnRight|tableAddHead|imageSave|loaded|tableDeleteTable|tableDeleteRow|tableDeleteColumn|H1|videoShow|linkProcess|isString|fileUploadError|linkInsert|imageShow|location|videoInsert|isEmptyObject|self|imageResize|tableInsert|u0000|u1C7F|H3|H2|draguploadOndrag|imageResizeControls|apply|selectionCreateMarker|relative|getFragmentHtml|draguploadOndragleave|uploadProgress||getSelectionText|cloneContents|inside|tableShow|nextSibling|nextNode|getSelectedNodes|mousemove|unshift|caretRangeFromPoint|0px|HTML|modalTemplatesInit|modal_file|imageCallbackLink|aside|focusEnd|article|unwrap|inlineUnwrapSpan|formatQuote|formatblock|jpeg|modal_image_edit|inlineSetMethods|BR|deleteContents|png|caretPositionFromPoint|setStartAfter|clientY|clientX|imageThumbClick|Quote|inlineRemoveClass|blockSetClass|blockRemoveClass|dragstart|Chrome|300|536|getAsFile|compatible|FileReader|readAsDataURL|inlineSetStyle|PUT|inlineSetClass|getSelectionHtml|inlineRemoveStyle|blockSetStyle|enableInlineTableEditing|EndToEnd|blockRemoveAttr|cellIndex|imageDelete||iPod|BlackBerry|redactor_box|TEXTAREA|blockSetAttr|redactor_|blockRemoveStyle|enableObjectResizing|hasChildNodes|watch||Loading|iPhone|min|VERSION|total|Horizontal|charset|attributes|plain|user|defined|decodeURIComponent|cite|onreadystatechange|Justify|overrideMimeType|small|frames|Bold|removeMarkers|GET|nodeName|redactorUploadFileForm|responseText|charCodeAt|TH|rv|such|commonAncestorContainer|redactorInsertImageForm|undo|dataType|redo|||||||use|withCredentials|strict|isCollapsed|u00a0|3px|9px|inlineSetAttr|13px|inlineRemoveAttr|cache|redactor_format_h4|host|redactor_format_h5|getJSON|redactor_format_h3|redactor_format_h1|460|redactor_format_h2|Open||strikethrough|separator_drop1|JustifyFull|Normal|redactorUploadFile|Rule|Anchor|bull|Deleted|duplicate|redactor_format_pre|META|LEFT|Underline|Alignment|CTRL|redactor_separator|optional|Name|tab|dropdowns|applet|xn|redactor_format_blockquote|Object|youtu|sourceWidth|processData|redactorUploadForm|thumb|jpg|redactor_image_edit_src|about|blank|frameset|getToolbar|getEditor|getBox|getIframe|Formatting|380|onprogress|onerror|sup|Content|JustifyRight|syncBefore||syncAfter||ltr|getObject|removeData|setEndPoint|INPUT|redactor_image_box_select|600||separator_drop3|separator_drop2|Android|JustifyCenter||610|read|Type|Callback|destroy|noscript|amz|public|acl|JustifyLeft|sub|4px|Back|math|Indent|youtube|Cancel|pasteAfter|stopPropagation|u200B|pasteBefore|fake|border|u200D|times|Outdent|colgroup|col|caption|handle|Save|hgroup|Below|focusNode|result|redactor_dropareabox|1005|nav|slow|slice|redactor_dropalternative|redactor_separator_drop|bottom|redactor_dropdown_|move|collapseToStart|legend|Above|nw|replaced|comment|ondrop|160px|arguments|docs|player|concat|guid|UL|sid|switch|Unordered|MsoListParagraphCxSpFirst|OL|MsoListParagraphCxSpLast|Ordered|uFEFF|redactorInsertVideoForm|default|dragleave|buttonRemove|buttonAddSeparatorBefore|dragover|buttonRemoveSeparatorAfter|buttonAddSeparatorAfter|buttonAddSeparator|buttonChangeIcon|buttonRemoveIcon|solid|buttonRemoveSeparatorBefore|buttonSetRight|buttonAddBefore|ajaxSettings|insertText|buttonAddAfter|buttonAddFirst|buttonSetLeft|buttonAdd|Unlink|300px|download|File|outline|Download|Choose|cloneNode|Or|removeFormat|superscript|Embed|Web|No|redactor_droparea|rgba|Text|subscript|dashed|web|jQuery|Drop|isArray|alert|offsetNode|stylesheet|detach|restoreSelection|ajaxSetup|removeChild|ownerDocument|defaultView|block|here|inlineFormat|saveSelection|failed|inline|Center|redactorInsertLinkForm|inlineRemoveFormat|hasOwnProperty|unselectable|ns|setEndAfter|Font|Rows|Italic|1000|pointer|summary|menu|fast|details|redactor_air_|redactor_toolbar_|redactor_toolbar|scroll|None|encodeURIComponent|selectionAll|string|startOffset|addEventListener|figure|Position|Title|281|innerHeight|extractContents|weight|allowfullscreen|escape|Columns|insertDoubleLineBreak|preview|toUpperCase|figcaption'.split('|'),0,{})) \ No newline at end of file +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(B(d){y b=0;y a=E;"h7 h9";y e=B(f){7[0]=f.kT;7[1]=f.ef;7.4B=f;F 7};e.4l.eL=B(){F 7[0]===7[1]};d.fn.L=B(g){y h=[];y f=d7.4l.j6.3y(jk,1);if(1o g==="kS"){7.19(B(){y j=d.1i(7,"L");if(1o j!=="1k"&&d.4V(j[g])){y i=j[g].fh(j,f);if(i!==1k&&i!==j){h.23(i)}}G{F d.39(\'k6 gV 5x "\'+g+\'" 2O 3V\')}})}G{7.19(B(){if(!d.1i(7,"L")){d.1i(7,"L",c(7,g))}})}if(h.11===0){F 7}G{if(h.11===1){F h[0]}G{F h}}};B c(g,f){F 1V c.4l.5t(g,f)}d.3V=c;d.3V.gx="9.1.4";d.3V.C={2L:E,1p:E,2W:E,U:E,c4:"en",4n:"ig",3I:E,dH:E,dp:M,cY:M,ds:M,es:E,ca:M,9J:E,4f:M,1s:E,5E:E,4a:M,5B:E,5R:M,5h:E,7w:60,9O:E,8A:E,8D:E,6f:"7k://",dy:E,69:"a9",67:E,3c:E,6j:E,7h:M,9L:E,cA:M,8b:["1c/fP","1c/fK","1c/eg"],5T:E,31:E,3s:M,5d:M,a7:M,9M:E,db:M,2a:E,dS:["4K","|","3h","3d","4c","|","4x","4G","5n","4t"],1a:M,3Y:E,9l:Q,di:0,7u:E,9t:E,dD:M,5X:\'<1u Z="hI">\',dC:{},dm:[],3e:["V","|","4K","|","3h","3d","4c","|","4x","4G","5n","4t","|","1c","2J","2Z","1l","2m","|","7B","|","6m"],6r:["4c","3d","3h","4U","4x","4G","6A","6D","6n","5b","1l"],8m:{b:"3h",3O:"3h",i:"3d",em:"3d",6z:"4c",6B:"4c",2d:"4x",2y:"4G",u:"4U",2P:"1l",1E:"1l",1l:"1l"},6p:E,do:["p","2u","2l","h1","h2","h3","h4","h5","h6"],1B:E,4I:M,9E:M,9z:M,7M:E,9D:E,bf:E,5F:E,56:E,5D:["V","6u","2m","1Q","9k","2p","16","hN"],9v:"3O",9w:"em",6v:20,4d:[],5z:[],4S:E,41:"

S;

",22:"S;",8d:/^(P|H[1-6]|2H|7F|7G|7K|7H|7z|7y)$/i,3Z:["P","eY","fe","fd","eM","ei","ep","eE","eD","eK","7p","6t","4D","eB","8W","7F","7G","7K","7H","7z","7y"],8z:["cr","1Q","6u","hr","i?2e","2m","9k","iy","16","2p","1l","4y","2Q","9y"],8x:["1u","dt","dt","h[1-6]","3t","2p"],ch:["2u","N","dl","co","1C","i0","cq","2y","p","2l","5m","1E","9q","2P","2d"],9W:["P","eY","fe","fd","eM","ei","ep","eE","eD","eK","7p","2H","4D","eB","8W","4C","7F","7G","7K","7H","7z","7y","6t"],bY:{en:{V:"fz",2J:"4A dL",1c:"4A dJ",1l:"9g",2m:"dM",8N:"4A 2m",bG:"bp 2m",4z:"jT",4K:"i5",c6:"hv 1e",bS:"fV",55:"dK",bP:"5O 1",bT:"5O 2",cl:"5O 3",cp:"5O 4",cs:"5O 5",3h:"gM",3d:"kE",8G:"kC cd",8M:"iF cd",4x:"js bK",4G:"jw bK",5n:"iS",4t:"iH",5j:"iJ",6l:"4A",aE:"iX",c1:"5Y",8B:"4A 9g",8q:"5W 9u je",8o:"5W 9u iZ",8r:"5W 9m dE",8Q:"5W 9m dI",8U:"5Y 9m",8O:"5Y 9u",8I:"5Y 9g",b9:"kD",b7:"l4",8R:"5W dF",8S:"5Y dF",R:"kX",bq:"kW",25:"kP",1m:"dE",3E:"dI",bU:"dJ k5 dM",1e:"k9",5S:"aV",kc:"aC",bc:"dL k4 dK",2Z:"4A jW",4M:"cH",jV:"jY",aD:"jZ",dk:"k1 aD",dV:"ke 2Z kq",82:"cL 1e cP cz 1m",85:"kv 1e",87:"cL 1e cP cz 3E",7X:"gI 1e",6m:"4A gz hx",4c:"hA",aM:"hy",aT:"hq 2m in 1V hL",4U:"hF",7B:"hG",aB:"hK (hJ)",aX:"bp"}}};c.fn=d.3V.4l={2s:{6J:8,am:46,8e:40,7m:13,af:27,da:9,hH:17,hD:91,hE:37,cU:91},5t:B(g,f){7.$44=7.$1g=d(g);7.9h=b++;y h=d.3P(M,{},d.3V.C);7.C=d.3P({},h,7.$44.1i(),f);7.4X=M;7.hM=[];7.8g=7.$1g.U("1I");7.hS=7.$1g.U("2i");if(7.C.2W){7.C.1p=M}if(7.C.1B){7.C.4I=E}if(7.C.4I){7.C.1B=E}if(7.C.7u){7.C.3Y=M}7.Q=Q;7.2Y=2Y;7.4e=E;7.c3=1V 2I("^<(/?"+7.C.8z.4T("|/?")+"|"+7.C.8x.4T("|")+")[ >]");7.c2=1V 2I("^<(br|/?"+7.C.8z.4T("|/?")+"|/"+7.C.8x.4T("|/")+")[ >]");7.9e=1V 2I("^]");7.7Y=1V 2I("^("+7.C.9W.4T("|")+")$","i");if(7.C.1B===E){if(7.C.56!==E&&d.3R("p",7.C.56)==="-1"){7.C.56.23("p")}if(7.C.5D!==E){y i=d.3R("p",7.C.5D);if(i!=="-1"){7.C.5D.6E(i,i)}}}if(7.1G("3j")||7.1G("6H")){7.C.3e=7.eJ(7.C.3e,"6m")}7.C.18=7.C.bY[7.C.c4];7.dj()},cM:B(f){F{V:{R:f.V,1b:"96"},4K:{R:f.4K,1b:"1R",2N:{p:{R:f.c6,1b:"3N"},2u:{R:f.bS,1b:"fI",3g:"hP"},2l:{R:f.55,1b:"3N",3g:"hC"},h1:{R:f.bP,1b:"3N",3g:"hn"},h2:{R:f.bT,1b:"3N",3g:"hp"},h3:{R:f.cl,1b:"3N",3g:"hm"},h4:{R:f.cp,1b:"3N",3g:"hi"},h5:{R:f.cs,1b:"3N",3g:"hk"}}},3h:{R:f.3h,1P:"3h"},3d:{R:f.3d,1P:"3d"},4c:{R:f.4c,1P:"hs"},4U:{R:f.4U,1P:"4U"},4x:{R:"&hz; "+f.4x,1P:"6g"},4G:{R:"1. "+f.4G,1P:"6s"},5n:{R:"< "+f.5n,1b:"9N"},4t:{R:"> "+f.4t,1b:"a5"},1c:{R:f.1c,1b:"f4"},2J:{R:f.2J,1b:"eZ"},2Z:{R:f.2Z,1b:"bm"},1l:{R:f.1l,1b:"1R",2N:{8B:{R:f.8B,1b:"fr"},ht:{2q:"7P"},8q:{R:f.8q,1b:"eO"},8o:{R:f.8o,1b:"eP"},8r:{R:f.8r,1b:"eQ"},8Q:{R:f.8Q,1b:"eR"},ip:{2q:"7P"},8R:{R:f.8R,1b:"eS"},8S:{R:f.8S,1b:"8F"},io:{2q:"7P"},8U:{R:f.8U,1b:"eX"},8O:{R:f.8O,1b:"eW"},8I:{R:f.8I,1b:"eV"}}},2m:{R:f.2m,1b:"1R",2N:{2m:{R:f.8N,1b:"8w"},4z:{R:f.4z,1P:"4z"}}},8G:{R:f.8G,1b:"1R"},8M:{R:f.8M,1b:"1R"},7B:{R:f.7B,1b:"1R",2N:{6A:{R:f.82,1b:"9f"},6D:{R:f.85,1b:"9c"},6n:{R:f.87,1b:"9d"},5b:{R:f.7X,1b:"98"}}},6A:{R:f.82,1b:"9f"},6D:{R:f.85,1b:"9c"},6n:{R:f.87,1b:"9d"},5b:{R:f.7X,1b:"98"},6m:{1P:"ba",R:f.6m}}},1h:B(f,g,h){y i=7.C[f+"iw"];if(d.4V(i)){if(g===E){F i.3y(7,h)}G{F i.3y(7,g,h)}}G{F h}},ix:B(){cG(7.7w);d(2Y).2F(".L");7.$1g.2F("L-3W");7.$44.2F(".L").ii("L");y g=7.1S();if(7.C.4S){7.$1M.1W(7.$1g);7.$1M.1j();7.$1g.1f(g).1R()}G{y f=7.$J;if(7.C.1p){f=7.$44}7.$1M.1W(f);7.$1M.1j();f.2k("34").2k("dG").26("30").V(g).1R()}if(7.C.2a){d(".9Y").1j()}},ih:B(){F d.3P({},7)},i2:B(){F 7.$J},i3:B(){F 7.$1M},i4:B(){F(7.C.1p)?7.$2e:E},i1:B(){F 7.$1a},1S:B(){F 7.$1g.1f()},dw:B(){7.$J.26("30").26("4r");y f=7.5u(7.$2e.1K().6O());7.$J.15({30:M,4r:7.C.4n});F f},7x:B(f,g,h){f=f.2V();if(7.C.2W){7.bD(f)}G{7.bt(f,g)}if(h!==E){7.cK()}},bt:B(f,g){if(g!==E){f=7.9r(f);f=7.6c(f);f=7.9n(f);f=7.6y(f);if(7.C.1B===E){f=7.9o(f)}G{f=f.I(/([\\w\\W]*?)<\\/p>/gi,"$2
")}}f=7.9p(f);7.$J.V(f);7.12()},bD:B(f){y g=7.9X();7.$2e[0].2w="hY:hZ";f=7.9n(f);f=7.6y(f);f=7.61(f);g.7q();g.cy(f);g.cF();if(7.C.2W){7.$J=7.$2e.1K().T("1Q").15({30:M,4r:7.C.4n})}7.12()},8Z:B(f){f=7.9r(f,M);f=7.9o(f);f=7.9p(f);7.$J.V(f);7.12()},12:B(){y f="";7.bX();if(7.C.2W){f=7.dw()}G{f=7.$J.V()}f=7.8K(f);f=7.61(f);f=7.9R(f);f=f.I(/<\\/1u><(2d|2y)>([\\w\\W]*?)<\\/(2d|2y)>/gi,"<$1>$2");if(d.2o(f)==="
"){f=""}if(f!==""&&7.C.ds){f=7.bZ(f)}f=f.I(/
/gi,"
");f=7.1h("ic",E,f);7.$1g.1f(f);7.1h("ie",E,f);if(7.4X===E){7.1h("7A",E,f)}},8K:B(f){if(!7.C.2W){f=7.6c(f)}f=d.2o(f);f=7.dc(f);f=f.I(/S;/gi,"");f=f.I(/&#d5;/gi,"");f=f.I(/&2j;/gi," ");if(7.C.dy){f=f.I(//gi,"");f=f.I(//gi,\'\')}f=f.I("","?>");f=f.I(/ 1i-5Q=""/gi,"");f=f.I(/\\n?<\\/(P|H[1-6]|2H|7F|7G|7K|7H|7z|7y)>/gi,"");f=f.I(/([\\w\\W]*?)<1q(.*?)><\\/O>/i,"$3<1q$4>");f=f.I(/(.*?)<\\/O>/i,"");f=f.I(/(.*?)<\\/O>/i,"");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$1");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$3
");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$3
");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$1");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$1");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$3
");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$3
");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"$1");f=f.I(/;7Q;/gi,";");f=7.bk(f);F f},dj:B(){7.3H="";7.$1M=d(\'\');if(7.$1g[0].X==="gm"){7.C.4S=M}if(7.C.dp===E&&7.43()){7.dn()}G{7.dR();if(7.C.1p){7.C.4a=E;7.cD()}G{if(7.C.4S){7.dT()}G{7.dU()}}if(!7.C.1p){7.9x();7.9b()}}},dn:B(){if(!7.C.4S){7.$J=7.$1g;7.$J.1T();7.$1g=7.7r(7.$J);7.$1g.1f(7.3H)}7.$1M.7s(7.$1g).Y(7.$1g)},dR:B(){if(7.C.4S){7.3H=d.2o(7.$1g.1f())}G{7.3H=d.2o(7.$1g.V())}},dT:B(){7.$J=d("");7.$1M.7s(7.$1g).Y(7.$J).Y(7.$1g);7.dN(7.$J);7.8k()},dU:B(){7.$J=7.$1g;7.$1g=7.7r(7.$J);7.$1M.7s(7.$J).Y(7.$J).Y(7.$1g);7.8k()},7r:B(f){F d("<3W />").15("2q",f.15("id")).U("1I",7.8g)},dN:B(f){d.19(7.$1g.1S(0).3g.3x(/\\s+/),B(g,h){f.28("go"+h)})},8k:B(){7.$J.28("34").15({30:M,4r:7.C.4n});7.$1g.15("4r",7.C.4n).1T();7.7x(7.3H,M,E)},9x:B(){y f=7.$J;if(7.C.1p){f=7.$2e}if(7.C.5E){f.15("5E",7.C.5E)}if(7.C.5B){f.U("gw-1I",7.C.5B+"2r")}if(7.C.dH){7.$J.28("dG")}if(!7.C.4a){f.U("1I",7.8g)}},9b:B(){7.4X=E;if(7.C.1a){7.C.1a=7.cM(7.C.18);7.dQ()}7.fA();7.cB();7.95();if(7.C.5h){7.5h()}2h(d.K(7.5c,7),4);if(7.1G("3o")){84{7.Q.1H("gq",E,E);7.Q.1H("gd",E,E)}86(f){}}if(7.C.1s){2h(d.K(7.1s,7),2x)}if(!7.C.4f){2h(d.K(B(){7.C.4f=M;7.96(E)},7),3S)}7.1h("5t")},95:B(){if(7.C.cA){7.$J.1d("5y.L",d.K(7.d4,7))}7.$J.1d("7j.L",d.K(7.dv,7));7.$J.1d("4k.L",d.K(7.cS,7));7.$J.1d("3D.L",d.K(7.d6,7));if(d.4V(7.C.cE)){7.$1g.1d("4k.L-3W",d.K(7.C.cE,7))}if(d.4V(7.C.cC)){7.$J.1d("1s.L",d.K(7.C.cC,7))}7.$J.1d("cQ.L",d.K(B(){7.4F=E},7));if(d.4V(7.C.cR)){7.$J.1d("cQ.L",d.K(7.C.cR,7))}},d4:B(i){i=i.d0||i;if(2Y.ay===1k){F M}y h=i.aP.6x.11;if(h==0){F M}i.1X();y g=i.aP.6x[0];if(7.C.8b!==E&&7.C.8b.3r(g.1r)==-1){F M}7.1x();y f=d(\'\');d(Q.1Q).Y(f);7.aN(7.C.3c,g,M,f,i)},dv:B(g){y h=E;if(7.1G("3G")&&8E.8P.3r("g0")===-1){y f=7.1G("6M").3x(".");if(f[0]"+7.C.22+"

");d(r).1U(q);7.3A(q)}},7),1)}G{if(i===E){7.1x();y g=d("

"+7.C.22+"

");7.2T(g[0]);7.3A(g);7.1h("5Z",l);F E}}}if(7.C.1B){if(i&&7.C.8d.3u(i.X)){7.1x();2h(d.K(B(){y q=7.1Y();if((q.X==="7p"||q.X==="P")&&!d(q).3i("34")){7.ev(q)}},7),1)}G{F 7.9B(l)}}if(i.X=="4D"||i.X=="8W"){F 7.9B(l)}}7.1h("5Z",l)}G{if(p===7.2s.7m&&(l.9K||l.3T)){7.1x();l.1X();7.a0()}}if(p===7.2s.da&&7.C.5R){if(!7.C.db){F M}if(7.8p(7.1S())){F M}l.1X();if(h===M&&!l.3T){7.1x();7.2T(Q.7o("\\t"));7.12();F E}G{if(7.C.9M!==E){7.1x();7.2T(Q.7o(d7(7.C.9M+1).4T("\\hb")));7.12();F E}G{if(!l.3T){7.a5()}G{7.9N()}}}F E}if(p===7.2s.6J){if(1o m.X!=="1k"&&/^(H[1-6])$/i.3u(m.X)){y g;if(7.C.1B===E){g=d("

"+7.C.22+"

")}G{g=d("
"+7.C.22)}d(m).1U(g);7.3A(g)}if(1o m.5U!=="1k"&&m.5U!==2b){y n=d.2o(m.5U.I(/[^\\fb-\\fc]/g,""));if(m.1j&&m.3n===3&&m.5U.gS(0)==d5&&n==""){m.1j()}}}},9B:B(f){7.1x();f.1X();7.a0();7.1h("5Z",f);F},d6:B(l){if(a){F E}y f=l.6I;y h=7.3w();y j=7.2B();if(!7.C.1B&&j.3n==3&&(h==E||h.X=="8J")){y i=d("

").Y(d(j).4H());d(j).1U(i);y g=d(i).6b();if(1o(g[0])!=="1k"&&g[0].X=="fN"){g.1j()}7.5G(i)}if((7.C.9z||7.C.7M||7.C.9D)&&f===7.2s.7m){7.9H(7.C.6f,7.C.9z,7.C.7M,7.C.9D);2h(d.K(B(){if(7.C.7M){7.3s()}if(7.C.5d){7.5d()}},7),5)}if(7.C.1B===E&&(f===7.2s.am||f===7.2s.6J)){F 7.dP(l)}7.1h("3D",l);7.12()},cB:B(){if(!7.C.9O){F}d.19(7.C.9O,d.K(B(f,g){if(9P[g]){d.3P(7,9P[g]);if(d.4V(9P[g].5t)){7.5t()}}},7))},cD:B(){7.cx();if(7.C.4S){7.a2(7.$1g)}G{7.$9Z=7.$1g.1T();7.$1g=7.7r(7.$9Z);7.a2(7.$9Z)}},a2:B(f){7.$1g.15("4r",7.C.4n).1T();7.$1M.7s(f).Y(7.$2e).Y(7.$1g)},cx:B(){7.$2e=d(\'<1p 16="2i: 2x%;" cm="0" />\').7O("bn",d.K(B(){if(7.C.2W){7.9X();if(7.3H===""){7.3H=7.C.22}7.$2e.1K()[0].cy(7.3H);7.$2e.1K()[0].cF();y f=dX(d.K(B(){if(7.$2e.1K().T("1Q").V()){cG(f);7.9S()}},7),0)}G{7.9S()}},7))},8f:B(){F 7.$2e[0].b0.Q},9X:B(){y f=7.8f();if(f.cO){f.km(f.cO)}F f},9V:B(f){f=f||7.C.U;if(7.f1(f)){7.$2e.1K().T("6u").Y(\'<2m 33="ki" 1w="\'+f+\'" />\')}if(d.kf(f)){d.19(f,d.K(B(h,g){7.9V(g)},7))}},9S:B(){7.$J=7.$2e.1K().T("1Q").15({30:M,4r:7.C.4n});if(7.$J[0]){7.Q=7.$J[0].kn;7.2Y=7.Q.ko||2Y}7.9V();if(7.C.2W){7.8Z(7.$J.V())}G{7.7x(7.3H,M,E)}7.9x();7.9b()},dZ:B(f){if(7.8p(f)){if(7.$44.15("3I")){7.C.3I=7.$44.15("3I")}if(7.C.3I===""){7.C.3I=E}if(7.C.3I!==E){7.C.1s=E;7.$J.7O("1s.4o",d.K(7.cJ,7));F d(\'\').15("30",E).1e(7.C.3I)}}F E},cJ:B(){7.$J.T("O.4o").1j();y f="";if(7.C.1B===E){f=7.C.41}7.$J.2F("1s.4o");7.$J.V(f);if(7.C.1B===E){7.3A(7.$J.6O()[0])}7.12()},cK:B(){7.C.3I=E;7.$J.T("O.4o").1j();7.$J.2F("1s.4o")},dc:B(f){F f.I(/(.*?)<\\/O>/i,"")},5R:B(g,f){if(!7.C.5R){F}if(!g.9a){if(f===77){7.3U(g,"k2")}G{if(f===66){7.3U(g,"3h")}G{if(f===73){7.3U(g,"3d")}G{if(f===74){7.3U(g,"6g")}G{if(f===75){7.3U(g,"6s")}G{if(f===72){7.3U(g,"k3")}G{if(f===76){7.3U(g,"ka")}}}}}}}}G{if(f===48){7.47(g,"p")}G{if(f===49){7.47(g,"h1")}G{if(f===50){7.47(g,"h2")}G{if(f===51){7.47(g,"h3")}G{if(f===52){7.47(g,"h4")}G{if(f===53){7.47(g,"h5")}G{if(f===54){7.47(g,"h6")}}}}}}}}},3U:B(g,f){g.1X();7.1H(f,E)},47:B(g,f){g.1X();7.3N(f)},1s:B(){if(!7.1G("6H")){7.2Y.2h(d.K(7.97,7,M),1)}G{7.$J.1s()}},fE:B(){7.97()},97:B(h){7.$J.1s();y f=7.2C();f.7f(7.$J[0]);f.6L(h||E);y g=7.1L();g.4u();g.5s(f)},96:B(h){y g;if(7.C.4f){if(h!==E){7.1F()}y f=2b;if(7.C.1p){f=7.$2e.1I();if(7.C.2W){7.$J.26("30")}7.$2e.1T()}G{f=7.$J.kZ();7.$J.1T()}g=7.$1g.1f();7.5H=g;7.$1g.1I(f).1R().1s();7.$1g.1d("4k.L-3W-dW",B(j){if(j.2s===9){y i=d(7);y l=i.1S(0).3A;i.1f(i.1f().7T(0,l)+"\\t"+i.1f().7T(i.1S(0).5G));i.1S(0).3A=i.1S(0).5G=l+1;F E}});7.bv();7.4i("V");7.C.4f=E}G{g=7.$1g.1T().1f();if(1o 7.5H!=="1k"){7.5H=7.61(7.5H,E)!==7.61(g,E)}if(7.5H){if(7.C.2W&&g===""){7.8Z(g)}G{7.7x(g);if(7.C.2W){7.95()}}}if(7.C.1p){7.$2e.1R()}G{7.$J.1R()}if(7.C.2W){7.$J.15("30",M)}7.$1g.2F("4k.L-3W-dW");7.$J.1s();7.1n();7.5c();7.bu();7.7W("V");7.C.4f=M}},5h:B(){y f=E;7.7w=dX(d.K(B(){y g=7.1S();if(f!==g){d.c5({32:7.C.5h,1r:"5g",1i:7.$1g.15("2q")+"="+l3(kQ(g)),36:d.K(B(h){7.1h("5h",E,h);f=g},7)})}},7),7.C.7w*kF)},dQ:B(){if(7.C.2a){7.C.3e=7.C.dS}G{if(!7.C.dD){y g=7.C.3e.3r("V"),h=7.C.3e[g+1];7.C.3e.6E(g,1);if(h==="|"){7.C.3e.6E(g,1)}}}d.3P(7.C.1a,7.C.dC);d.19(7.C.dm,d.K(B(j,l){7.C.3e.23(l)},7));if(7.C.1a){d.19(7.C.1a.4K.2N,d.K(B(j,l){if(d.3R(j,7.C.do)=="-1"){al 7.C.1a.4K.2N[j]}},7))}if(7.C.3e.11===0){F E}7.dz();7.$1a=d("<2d>").28("kN").15("id","kM"+7.9h);if(7.C.2a){7.$2a=d(\'\').15("id","kL"+7.9h).1T();7.$2a.Y(7.$1a);d("1Q").Y(7.$2a)}G{if(7.C.9t){d(7.C.9t).V(7.$1a)}G{7.$1M.5k(7.$1a)}}d.19(7.C.3e,d.K(B(l,m){if(m==="|"){7.$1a.Y(d(7.C.5X))}G{if(7.C.1a[m]){y j=7.C.1a[m];if(7.C.6j===E&&m==="2Z"){F M}7.$1a.Y(d("<1u>").Y(7.5o(m,j)))}}},7));7.$1a.T("a").15("5E","-1");if(7.C.3Y){7.9j();d(7.C.9l).1d("kO.L",d.K(7.9j,7))}if(7.C.6r){y f=d.K(7.62,7);7.$J.1d("6F.L 3D.L",f)}},9j:B(){y j=d(7.C.9l).3v();y h=7.$1M.2M().1O;y i=0;y f=h+7.$1M.1I()+40;if(j>h){y g="2x%";if(7.C.7u){i=7.$1M.2M().1m;g=7.$1M.dB();7.$1a.28("dr")}7.3Y=M;7.$1a.U({2G:"7L",2i:g,ah:j3,1O:7.C.di+"2r",1m:i});if(j\')}G{h=d(\'\'+i.R+"");h.1d("1v",d.K(B(l){if(l.1X){l.1X()}if(7.1G("3j")){l.dY=E}if(i.1h){i.1h.3y(7,j,h,i,l)}if(i.1P){7.1H(i.1P,j)}if(i.1b){7[i.1b](j)}7.62();if(7.C.2a){7.$2a.5w(2x)}},7))}g.Y(h)},7))},bB:B(l,p){if(!7.C.4f){l.1X();F E}y m=7.$1a.T(".bz"+p);y f=7.2v(p);if(f.3i("5q")){7.7N()}G{7.7N();7.4i(p);f.28("5q");y q=f.2G();if(7.3Y){q=f.2M()}y n=m.2i();if((q.1m+n)>d(Q).2i()){q.1m-=n}y h=q.1m+"2r";y i=29;y j="7D";y o=i+"2r";if(7.C.3Y&&7.3Y){j="7L"}G{if(!7.C.2a){o=q.1O+i+"2r"}}m.U({2G:j,1m:h,1O:o}).1R()}y g=d.K(B(r){7.cu(r,m)},7);d(Q).7O("1v",g);7.$J.7O("1v",g);l.iL()},7N:B(){7.$1a.T("a.5q").2k("5p").2k("5q");d(".bC").1T()},cu:B(g,f){if(!d(g.1z).3i("5q")){f.2k("5q");7.7N()}},5o:B(i,f){y g=d(\'\');g.1d("1v",d.K(B(j){if(j.1X){j.1X()}if(7.1G("3j")){j.dY=E}if(g.3i("8C")){F E}if(7.7b()===E&&!f.1P){7.$J.1s()}if(f.1P){7.$J.1s();7.1H(f.1P,i);7.7R()}G{if(f.1b&&f.1b!=="1R"){7[f.1b](i);7.7R()}G{if(f.1h){f.1h.3y(7,i,g,f,j);7.7R()}G{if(f.2N){7.bB(j,i)}}}}7.62(E,i)},7));if(f.2N){y h=d(\'\');h.7C(7.$1a);7.by(h,f.2N)}F g},2v:B(f){if(!7.C.1a){F E}F d(7.$1a.T("a.7n"+f))},bF:B(g){y f=7.2v(g);if(f.3i("5p")){f.2k("5p")}G{f.28("5p")}},4i:B(f){7.2v(f).28("5p")},7W:B(f){7.2v(f).2k("5p")},bI:B(f){d.19(7.C.1a,d.K(B(g){if(g!=f){7.7W(g)}},7))},bu:B(){7.$1a.T("a.8i").4Z("a.bx").2k("8C")},bv:B(){7.$1a.T("a.8i").4Z("a.bx").28("8C")},jH:B(f,g){7.2v(f).28("7n"+g)},jI:B(f,g){7.2v(f).2k("7n"+g)},jG:B(){7.$1a.Y(d(7.C.5X))},jF:B(f){7.2v(f).1N().1W(d(7.C.5X))},jC:B(f){7.2v(f).1N().38(d(7.C.5X))},jE:B(f){7.2v(f).1N().6b().1j()},jK:B(f){7.2v(f).1N().6N().1j()},jL:B(f){if(!7.C.1a){F}7.2v(f).1N().28("8T")},jR:B(f){if(!7.C.1a){F}7.2v(f).1N().2k("8T")},jS:B(g,h,j,i){if(!7.C.1a){F}y f=7.5o(g,{R:h,1h:j,2N:i});7.$1a.Y(d("<1u>").Y(f))},jQ:B(g,h,j,i){if(!7.C.1a){F}y f=7.5o(g,{R:h,1h:j,2N:i});7.$1a.5k(d("<1u>").Y(f))},jP:B(m,g,i,l,j){if(!7.C.1a){F}y f=7.5o(g,{R:i,1h:l,2N:j});y h=7.2v(m);if(h.2n()!==0){h.1N().1W(d("<1u>").Y(f))}G{7.$1a.Y(d("<1u>").Y(f))}},jM:B(j,g,i,m,l){if(!7.C.1a){F}y f=7.5o(g,{R:i,1h:m,2N:l});y h=7.2v(j);if(h.2n()!==0){h.1N().38(d("<1u>").Y(f))}G{7.$1a.Y(d("<1u>").Y(f))}},jB:B(f,h){y g=7.2v(f);if(h){g.1N().6b().1j()}g.1N().2k("8T");g.1j()},62:B(h,j){y f=7.3w();7.bI(j);if(h===E&&j!=="V"){if(d.3R(j,7.C.6r)!=-1){7.bF(j)}F}if(f&&f.X==="A"){7.$1a.T("a.bH").1e(7.C.18.bG)}G{7.$1a.T("a.bH").1e(7.C.18.8N)}if(7.C.6p){d.19(7.C.6p,d.K(B(l,m){7.C.6r.23(m)},7));d.3P(7.C.8m,7.C.6p)}d.19(7.C.8m,d.K(B(l,m){if(d(f).2A(l,7.$J.1S()[0]).11!=0){7.4i(m)}},7));y g=d(f).2A(7.C.3Z.2V().2X(),7.$J[0]);if(g.11){y i=g.U("1e-79");jr(i){8j"3E":7.4i("6n");6h;8j"bi":7.4i("6D");6h;8j"5b":7.4i("5b");6h;jz:7.4i("6A");6h}}},1P:B(g,h,f){if(g==="fJ"&&7.1G("3j")){h="<"+h+">"}if(g==="3M"&&7.1G("3j")){7.$J.1s();7.Q.2c.57().a6(h)}G{7.Q.1H(g,E,h)}if(f!==E){7.12()}7.1h("1H",g,h)},1H:B(i,h,q){if(!7.C.4f){7.$1g.1s();F E}if(i==="3M"){7.7g(h,q);7.1h("1H",i,h);F}if(7.5M("4C")&&!7.C.bf){F E}if(i==="6g"||i==="6s"){7.1x();y r=7.3w();y m=d(r).2A("2y, 2d");y l=E;if(m.11){l=M;y o=m[0].X;if((i==="6g"&&o==="ju")||(i==="6s"&&o==="jp")){l=E}}7.1F();if(l){y g=7.4Y();y f=7.2E(g);if(1o g[0]!="1k"&&g.11>1&&g[0].3n==3){f.fw(7.1Y())}y j="",s="";d.19(f,d.K(B(v,w){if(w.X=="2H"){y u=d(w);y t=u.4H();t.T("2d","2y").1j();if(7.C.1B===E){j+=7.5u(d("

").Y(t.1K()))}G{j+=t.V()+"
"}if(v==0){u.28("L-jg").6a();s=7.5u(u)}G{u.1j()}}},7));V=7.$J.V().I(s,""+j+"<"+o+">");7.$J.V(V);7.$J.T(o+":6a").1j()}G{7.Q.1H(i);y r=7.3w();y m=d(r).2A("2y, 2d");if(m.11){if((7.1G("3j")||7.1G("3o"))&&r.X!=="2H"){d(r).1U(d(r).V())}y n=m.1N();if(7.7d(n)&&7.6i(n[0])){n.1U(n.1K())}}if(7.1G("3o")){7.$J.1s()}}7.1n();7.12();7.1h("1H",i,h);F}if(i==="4z"){7.1x();y p=7.5M("A");if(p){d(p).1U(d(p).1e());7.12();7.1h("1H",i,h);F}}7.1P(i,h,q);if(i==="ba"){7.$J.T("hr").26("id")}},a5:B(){7.9A("4t")},9N:B(){7.9A("5n")},9A:B(i){7.1x();if(i==="4t"){y j=7.1Y();7.1F();if(j&&j.X=="2H"){y o=7.3w();y l=d(o).2A("2y, 2d");y n=l[0].X;y g=7.2E();d.19(g,B(t,u){if(u.X=="2H"){y r=d(u).6N();if(r.2n()!=0&&r[0].X=="2H"){y q=r.6O("2d, 2y");if(q.2n()==0){r.Y(d("<"+n+">").Y(u))}G{q.Y(u)}}}})}G{if(j===E&&7.C.1B===M){7.1P("59","2u");y p=7.1Y();y j=d(\'\').V(d(p).V());d(p).1U(j);y h=7.6R(d(j).U("21-1m"))+7.C.6v;d(j).U("21-1m",h+"2r")}G{y f=7.2E();d.19(f,d.K(B(r,s){y q=E;if(s.X==="6t"){F}if(d.3R(s.X,7.C.3Z)!==-1){q=d(s)}G{q=d(s).2A(7.C.3Z.2V().2X(),7.$J[0])}y t=7.6R(q.U("21-1m"))+7.C.6v;q.U("21-1m",t+"2r")},7))}}7.1n()}G{7.1F();y j=7.1Y();if(j&&j.X=="2H"){y g=7.2E();y m=0;7.93(j,m,g)}G{y f=7.2E();d.19(f,d.K(B(r,s){y q=E;if(d.3R(s.X,7.C.3Z)!==-1){q=d(s)}G{q=d(s).2A(7.C.3Z.2V().2X(),7.$J[0])}y t=7.6R(q.U("21-1m"))-7.C.6v;if(t<=0){if(7.C.1B===M&&1o(q.1i("5Q"))!=="1k"){q.1U(q.V())}G{q.U("21-1m","");7.3Q(q,"16")}}G{q.U("21-1m",t+"2r")}},7))}7.1n()}},93:B(f,h,g){if(f&&f.X=="2H"){y i=d(f).1N().1N();if(i.2n()!=0&&i[0].X=="2H"){i.1W(f)}G{if(1o g[h]!="1k"){f=g[h];h++;7.93(f,h,g)}G{7.1H("6g")}}}},9p:B(f){y g=7.dZ(f);if(g!==E){F g}if(7.C.1B===E){if(f===""){f=7.C.41}G{if(f.45(/^$/gi)!==-1){f="


"+7.C.41}}}F f},9o:B(f){if(7.C.9E){f=f.I(/([\\w\\W]*?)<\\/N>/gi,"$2

")}if(7.C.4I){f=7.70(f)}F f},9n:B(f){if(7.C.9J){f=f.I(/\\{\\{(.*?)\\}\\}/gi,"");f=f.I(/\\{(.*?)\\}/gi,"")}f=f.I(/<2p(.*?)>([\\w\\W]*?)<\\/2p>/gi,\'$2\');f=f.I(/<16(.*?)>([\\w\\W]*?)<\\/16>/gi,\'<1D$1 16="2t: 25;" 33="L-16-3L">$2\');f=f.I(/<1C(.*?)>([\\w\\W]*?)<\\/1C>/gi,\'<1D$1 33="L-1C-3L">$2\');if(7.C.5F){f=f.I(/<\\?3k([\\w\\W]*?)\\?>/gi,\'<1D 16="2t: 25;" 33="L-3k-3L">$1\')}G{f=f.I(/<\\?3k([\\w\\W]*?)\\?>/gi,"")}F f},bk:B(f){if(7.C.9J){f=f.I(//gi,"{{$1}}");f=f.I(//gi,"{$1}")}f=f.I(/([\\w\\W]*?)<\\/R>/gi,\'<2p$1 1r="1e/7l">$2<\\/2p>\');f=f.I(/<1D(.*?) 16="2t: 25;" 33="L-16-3L">([\\w\\W]*?)<\\/1D>/gi,"<16$1>$2");f=f.I(/<1D(.*?)33="L-1C-3L"(.*?)>([\\w\\W]*?)<\\/1D>/gi,"<1C$1$2>$3");if(7.C.5F){f=f.I(/<1D 16="2t: 25;" 33="L-3k-3L">([\\w\\W]*?)<\\/1D>/gi,"")}F f},61:B(g,f){if(f!==E){y f=[];y i=g.1J(/<(2l|16|2p|R)(.*?)>([\\w\\W]*?)<\\/(2l|16|2p|R)>/gi);if(i===2b){i=[]}if(7.C.5F){y h=g.1J(/<\\?3k([\\w\\W]*?)\\?>/gi);if(h){i=d.9i(i,h)}}if(i){d.19(i,B(j,l){g=g.I(l,"ce"+j);f.23(l)})}}g=g.I(/\\n/g," ");g=g.I(/[\\t]*/g,"");g=g.I(/\\n\\s*\\n/g,"\\n");g=g.I(/^[\\s\\n]*/g," ");g=g.I(/[\\s\\n]*$/g," ");g=g.I(/>\\s{2,} <");g=7.ci(g,f);g=g.I(/\\n\\n/g,"\\n");F g},ci:B(g,f){if(f===E){F g}d.19(f,B(h,j){g=g.I("ce"+h,j)});F g},9R:B(j){j=j.I(/([\\w\\W]*?)<\\/O>/gi,"$1");j=j.I(/[\\iM-\\iQ\\jx]/g,"");y l=["\\\\s*","&2j;","\\\\s*"];y h=["<2l>","<2u>\\\\s*","
","
","<2d>","<2y>","<1u>","<1l>","<2P>","\\\\s*","&2j;","

\\\\s*

","

","

&2j;

","

\\\\s*
\\\\s*

","\\\\s*","\\\\s*
\\\\s*
"];if(7.C.ca){h=h.jn(l)}G{h=l}y f=h.11;2O(y g=0;g

"){F 7.C.41}m=m+"\\n";y o=[];y l=m.1J(/<(1l|N|2l|2R)(.*?)>([\\w\\W]*?)<\\/(1l|N|2l|2R)>/gi);if(l===2b){l=[]}y n=m.1J(//gi);if(n){l=d.9i(l,n)}if(7.C.5F){y g=m.1J(/<1D(.*?)33="L-3k-3L">([\\w\\W]*?)<\\/1D>/gi);if(g){l=d.9i(l,g)}}if(l){d.19(l,B(q,r){o[q]=r;m=m.I(r,"{I"+q+"}\\n")})}m=m.I(/
\\s*
/gi,"\\n\\n");B j(s,i,q){F m.I(1V 2I(s,i),q)}y f="(jh|V|1Q|6u|R|9k|16|2p|2m|1p|1l|2Q|9y|iV|iU|iT|4y|2P|1E|9q|N|dl|dd|dt|2d|2y|1u|2l|5m|3t|1C|cq|cr|2u|a3|iG|16|p|h[1-6]|hr|co|jd|1D|fF|fD|iY|68|35|j4|kV|l8|kK|kI|kH)";m=j("(<"+f+"[^>]*>)","gi","\\n$1");m=j("()","gi","$1\\n\\n");m=j("\\r\\n","g","\\n");m=j("\\r","g","\\n");m=j("/\\n\\n+/","g","\\n\\n");y p=m.3x(1V 2I("\\kA*\\n","g"),-1);m="";2O(y h in p){if(p.ky(h)){if(p[h].45("{I")==-1){m+="

"+p[h].I(/^\\n+|\\n+$/g,"")+"

"}G{m+=p[h]}}}if(m.45(/<2u/gi)!==-1){d.19(m.1J(/<2u(.*?)>([\\w\\W]*?)<\\/2u>/gi),B(q,r){y t="";t=r.I("

","");t=t.I("

","
");m=m.I(r,t)})}m=j("

s*

","gi","");m=j("

([^<]+)","gi","

$1

");m=j("

s*(]*>)s*

","gi","$1");m=j("

(<1u.+?)

","gi","$1");m=j("

s*(]*>)","gi","$1");m=j("(]*>)s*

","gi","$1");m=j("(]*>)s*
","gi","$1");m=j("
(s*]*>)","gi","$1");m=j("\\n

","gi","

");m=j("<1u>

","gi","<1u>");m=j("

","gi","");m=j("

","gi","");m=j("

\\t?\\n?

","gi","

");m=j("

","gi","");m=j("

","gi","");m=j("

","gi","");m=j("

\\t*

","gi","");d.19(o,B(q,r){m=m.I("{I"+q+"}",r)});F d.2o(m)},6y:B(f){y g="3O";if(7.C.9v==="b"){g="b"}y h="em";if(7.C.9w==="i"){h="i"}f=f.I(/([\\w\\W]*?)<\\/O>/gi,"<"+h+">$1");f=f.I(/([\\w\\W]*?)<\\/O>/gi,"<"+g+">$1");if(7.C.9v==="3O"){f=f.I(/([\\w\\W]*?)<\\/b>/gi,"<3O>$1")}G{f=f.I(/<3O>([\\w\\W]*?)<\\/3O>/gi,"$1")}if(7.C.9w==="em"){f=f.I(/([\\w\\W]*?)<\\/i>/gi,"$1")}G{f=f.I(/([\\w\\W]*?)<\\/em>/gi,"$1")}f=f.I(/<6B>([\\w\\W]*?)<\\/6B>/gi,"<6z>$1");if(!/([\\w\\W]*?)<\\/O>/gi.3u(f)){f=f.I(/([\\w\\W]*?)<\\/O>/gi,\'$3\')}F f},6c:B(h){if(h==""||1o h=="1k"){F h}y i=E;if(7.C.56!==E){i=M}y f=i===M?7.C.56:7.C.5D;y g=/<\\/?([a-z][a-8y-9]*)\\b[^>]*>/gi;h=h.I(g,B(l,j){if(i===M){F d.3R(j.2X(),f)>"-1"?l:""}G{F d.3R(j.2X(),f)>"-1"?"":l}});h=7.6y(h);F h},9r:B(f,g){y h=f.1J(/<(2l|55)(.*?)>([\\w\\W]*?)<\\/(2l|55)>/gi);if(h!==2b){d.19(h,d.K(B(l,m){y j=m.1J(/<(2l|55)(.*?)>([\\w\\W]*?)<\\/(2l|55)>/i);j[3]=j[3].I(/&2j;/g," ");if(g!==E){j[3]=7.9C(j[3])}f=f.I(m,"<"+j[1]+j[2]+">"+j[3]+"")},7))}F f},9C:B(f){f=3z(f).I(/&7Q;/g,"&").I(/&6d;/g,"<").I(/>/g,">").I(/&bW;/g,\'"\');F 3z(f).I(/&/g,"&7Q;").I(//g,">").I(/"/g,"&bW;")},bX:B(){y f=7.$J.T("1u, 1q, a, b, 3O, iD, i9, i, em, u, gK, 6B, 6z, O, gG");f.4Z(\'[1i-L="2K"]\').94(\'[16*="3B-2n"][16*="5N-1I"]\').U("3B-2n","").U("5N-1I","");f.4Z(\'[1i-L="2K"]\').94(\'[16*="6o-5J: bR;"][16*="5N-1I"]\').U("6o-5J","").U("5N-1I","");f.4Z(\'[1i-L="2K"]\').94(\'[16*="6o-5J: bR;"]\').U("6o-5J","");f.4Z(\'[1i-L="2K"]\').U("5N-1I","");d.19(f,d.K(B(g,h){7.3Q(h,"16")},7));7.$J.T(\'N[16="1e-79: -3G-3J;"]\').1K().fG()},bZ:B(g){y l=0,n=g.11,m=0,f=2b,h=2b,q="",j="",p="";7.5A=0;2O(;l"!=g.42(m)){m++}q=g.3q(f,m-f);l=m;y o;if("!--"==q.3q(1,3)){if(!q.1J(/--$/)){2D("-->"!=g.3q(m,3)){m++}m+=2;q=g.3q(f,m-f);l=m}if("\\n"!=j.42(j.11-1)){j+="\\n"}j+=7.58();j+=q+">\\n"}G{if("!"==q[1]){j=7.6q(q+">",j)}G{if("?"==q[1]){j+=q+">\\n"}G{if(o=q.1J(/^<(2p|16|2l)/i)){o[1]=o[1].2X();q=7.8X(q);j=7.6q(q,j);h=3z(g.3q(l+1)).2X().3r("\\n<\\/2p>/gi,"<2p$1><\\/2p>");7.5A=0;F f},8X:B(g){y i="";g=g.I(/\\n/g," ");g=g.I(/\\s{2,}/g," ");g=g.I(/^\\s+|\\s+$/g," ");y h="";if(g.1J(/\\/$/)){h="/";g=g.I(/\\/+$/,"")}y f;2D(f=/\\s*([^= ]+)(?:=(([\'"\']).*?\\3|[^ ]+))?/.1P(g)){if(f[2]){i+=f[1].2X()+"="+f[2]}G{if(f[1]){i+=f[1].2X()}}i+=" ";g=g.3q(f[0].11)}F i.I(/\\s*$/,"")+h+">"},6q:B(f,h){y g=f.1J(7.9e);if(f.1J(7.c3)||g){h=h.I(/\\s*$/,"");h+="\\n"}if(g&&"/"==f.42(1)){7.5A--}if("\\n"==h.42(h.11-1)){h+=7.58()}if(g&&"/"!=f.42(1)){7.5A++}h+=f;if(f.1J(7.c2)||f.1J(7.9e)){h=h.I(/ *$/,"");h+="\\n"}F h},9f:B(){7.5V("","iC")},9d:B(){7.5V("3E","ib")},9c:B(){7.5V("bi","ir")},98:B(){7.5V("5b","hu")},5V:B(g,i){7.1x();if(7.7Z()){7.Q.1H(i,E,E);F M}7.1F();y j=7.1Y();if(!j&&7.C.1B){7.1P("59","2u");y f=7.1Y();y j=d(\'\').V(d(f).V());d(f).1U(j);d(j).U("1e-79",g);7.3Q(j,"16");if(g==""&&1o(d(j).1i("5Q"))!=="1k"){d(j).1U(d(j).V())}}G{y h=7.2E();d.19(h,d.K(B(m,n){y l=E;if(d.3R(n.X,7.C.3Z)!==-1){l=d(n)}G{l=d(n).2A(7.C.3Z.2V().2X(),7.$J[0])}if(l){l.U("1e-79",g);7.3Q(l,"16")}},7))}7.1n();7.12()},dP:B(i){y f=d.2o(7.$J.V());f=f.I(//i,"");y h=f.I(/

\\s?<\\/p>/gi,"");if(f===""||h===""){i.1X();y g=d(7.C.41).1S(0);7.$J.V(g);7.1s()}7.12()},3N:B(f){7.1x();y g=7.2E();7.1F();d.19(g,d.K(B(h,j){if(j.X!=="2H"){7.59(f,j)}},7));7.1n();7.12()},59:B(f,i){if(i===E){i=7.1Y()}if(i===E){if(7.C.1B===M){7.1H("fJ",f)}F M}y h="";if(f!=="2l"){h=d(i).1K()}G{h=d(i).V();if(d.2o(h)===""){h=\'\'}}if(i.X==="4C"){f="p"}if(7.C.1B===M&&f==="p"){d(i).1U(d("").Y(h).V()+"
")}G{y g=d("<"+f+">").Y(h);d(i).1U(g)}},ed:B(h,f,g){if(g!==E){7.1F()}y i=d("<"+f+"/>");d(h).1U(B(){F i.Y(d(7).1K())});if(g!==E){7.1n()}F i},fI:B(){7.1x();if(7.C.1B===E){7.1F();y l=7.2E();if(l){d.19(l,d.K(B(n,o){if(o.X==="4D"){7.59("p",o,E)}G{if(o.X!=="2H"){7.59("2u",o,E)}}},7))}7.1n()}G{y j=7.1Y();if(j.X==="4D"){7.1F();d(j).1U(d(j).V()+"
");7.1n()}G{y m=7.ec("2u");y h=d(m).V();y g=["2d","2y","1l","2P","4y","2Q","9y","dl"];d.19(g,B(n,o){h=h.I(1V 2I("<"+o+"(.*?)>","gi"),"");h=h.I(1V 2I("","gi"),"")});y f=7.C.9W;f.23("1E");d.19(f,B(n,o){h=h.I(1V 2I("<"+o+"(.*?)>","gi"),"");h=h.I(1V 2I("","gi"),"
")});d(m).V(h);7.8l(m);y i=d(m).6b();if(i.2n()!=0&&i[0].X==="fN"){i.1j()}}}7.12()},gf:B(f,h){y g=7.2E();d(g).26(f);7.12()},gn:B(f,h){y g=7.2E();d(g).15(f,h);7.12()},gp:B(g){y f=7.2E();d(f).U(g,"");7.3Q(f,"16");7.12()},gc:B(h,g){y f=7.2E();d(f).U(h,g);7.12()},fY:B(g){y f=7.2E();d(f).2k(g);7.3Q(f,"Z");7.12()},fX:B(g){y f=7.2E();d(f).28(g);7.12()},fW:B(f){7.1F();7.9U(B(g){d(g).2k(f);7.3Q(g,"Z")});7.1n();7.12()},g9:B(f){y g=7.2B();if(!d(g).3i(f)){7.4h("28",f)}},gb:B(f){7.1F();7.9U(B(g){d(g).U(f,"");7.3Q(g,"16")});7.1n();7.12()},g7:B(g,f){7.4h("U",g,f)},hg:B(f){7.1F();y h=7.2C(),i=7.64(),g=7.4Y();if(h.4w||h.4E===h.63&&i){g=d(i)}d(g).26(f);7.fH();7.1n();7.12()},he:B(f,g){7.4h("15",f,g)},4h:B(i,f,j){7.1x();7.1F();y g=7.2C();y h=7.64();if((g.4w||g.4E===g.63)&&h&&!7.6i(h)){d(h)[i](f,j)}G{7.Q.1H("5K",E,4);y l=7.$J.T("3B");d.19(l,d.K(B(m,n){7.fM(i,n,f,j)},7))}7.1n();7.12()},fM:B(j,i,f,l){y h=d(i).1N(),g;if(h&&h[0].X==="9T"&&h[0].gB.11!=0){g=h;d(i).1U(d(i).V())}G{g=d(\'\').Y(d(i).1K());d(i).1U(g)}d(g)[j](f,l);F g},9U:B(j){y g=7.2C(),h=7.64(),f=7.4Y(),i;if(g.4w||g.4E===g.63&&h){f=d(h);i=M}d.19(f,d.K(B(l,m){if(!i&&m.X!=="9T"){if(m.4b.X==="9T"&&!d(m.4b).3i("34")){m=m.4b}G{F}}j.3y(7,m)},7))},fH:B(){y f=7.$J.T("O[1i-L-4h]");d.19(f,d.K(B(h,j){y g=d(j);if(g.15("Z")===1k&&g.15("16")===1k){g.1K().fG()}},7))},kr:B(f){7.1F();7.Q.1H("5K",E,4);y h=7.$J.T("3B");y g;d.19(h,B(j,m){y l=d("<"+f+"/>").Y(d(m).1K());d(m).1U(l);g=l});7.1n();7.12()},kx:B(f){7.1F();y g=f.l7();y h=7.4Y();y i=d(7.3w()).1N();d.19(h,B(j,l){if(l.X===g){7.9Q(l)}});if(i&&i[0].X===g){7.9Q(i)}7.1n();7.12()},9Q:B(f){d(f).1U(d(f).1K())},7g:B(h,j){y m=7.2B();y i=m.4b;7.$J.1s();7.1x();y f=d("").Y(d.a4(h));h=f.V();h=7.9R(h);f=d("").Y(d.a4(h));y g=7.1Y();if(f.1K().11==1){y l=f.1K()[0].X;if(l!="P"&&l==g.X||l=="4C"){h=f.1e();f=d("").Y(h)}}if(!7.C.1B&&f.1K().11==1&&f.1K()[0].3n==3&&(7.8n().11>2||(!m||m.X=="8J"&&!i||i.X=="fz"))){h="

"+h+"

"}if(f.1K().11>1&&g||f.1K().is("p, :68, 2d, 2y, N, 1l, 2u, 2l, a3, 1D, 68, 35, fD, fF")){if(7.1G("3j")){7.Q.2c.57().a6(h)}G{7.Q.1H("3M",E,h)}}G{7.6P(h,E)}if(7.4F){7.2Y.2h(d.K(B(){if(!7.C.1B){7.5G(7.$J.1K().eA())}G{7.fE()}},7),1)}7.5c();if(j!==E){7.12()}},6P:B(g,l){y m=7.1L();if(m.2U&&m.4g){y f=m.2U(0);f.fO();y h=7.Q.3F("N");h.4v=g;y n=7.Q.ek(),j,i;2D((j=h.8V)){i=n.5v(j)}f.2T(n);if(i){f=f.88();f.fR(i);f.6L(M);m.4u();m.5s(f)}}if(l!==E){7.12()}},jO:B(g){y f=d(d.a4(g));if(f.11){g=f.1e()}7.$J.1s();if(7.1G("3j")){7.Q.2c.57().a6(g)}G{7.Q.1H("3M",E,g)}7.12()},2T:B(f){f=f[0]||f;y g=7.1L();if(g.2U&&g.4g){4B=g.2U(0);4B.fO();4B.2T(f);4B.kB(f);4B.fR(f);g.4u();g.5s(4B)}},e5:B(j,i){y g;y f=j.fT,m=j.fS;if(7.Q.fQ){y l=7.Q.fQ(f,m);g=7.2C();g.6X(l.kh,l.2M);g.6L(M);g.2T(i)}G{if(7.Q.fx){g=7.Q.fx(f,m);g.2T(i)}G{if(1o Q.1Q.ex!="1k"){g=7.Q.1Q.ex();g.ey(f,m);y h=g.hB();h.ey(f,m);g.ij("ge",h);g.5m()}}}},6Z:B(f){if(7.e7()){if(d(d.2o(7.$J.V())).1S(0)!=d.2o(f)&&7.$J.1K().eA()[0]!==f){F E}7.1x();if(7.C.1B===E){y g=d(7.C.41);d(f).1W(g);7.3A(g)}G{y g=d(\'\'+7.C.22+"",7.Q)[0];d(f).1W(g);d(g).1W(7.C.22);7.1n()}}},a0:B(){7.1F();7.$J.T("#2c-1y-1").38("
"+(7.1G("3G")?7.C.22:""));7.1n()},l5:B(){7.1F();7.$J.T("#2c-1y-1").38("

"+(7.1G("3G")?7.C.22:""));7.1n()},ev:B(f){y g=d("
"+7.C.22);d(f).1U(g);7.3A(g)},er:B(h){h=7.1h("iN",E,h);if(7.C.es){y g=7.Q.3F("N");h=h.I(/
|<\\/H[1-6]>|<\\/p>|<\\/N>/gi,"\\n");g.4v=h;h=g.80||g.e6;h=h.I("\\n","
");h=7.70(h);7.7c(h);F E}if(7.5M("4C")){h=7.eG(h);7.7c(h);F M}h=h.I(//gi,"<2d>");h=h.I(//gi,"");h=h.I(/|<\\?(?:3k)?[\\s\\S]*?\\?>/gi,"");h=h.I(/(&2j;){2,}/gi,"&2j;");h=h.I(/&2j;/gi," ");h=h.I(/([\\w\\W]*?)<\\/b>/gi,"$2");h=h.I(/([\\w\\W]*?)<\\/b>/gi,"$3");h=7.6c(h);h=h.I(/<1E><\\/1E>/gi,"[1E]");h=h.I(/<1E>&2j;<\\/1E>/gi,"[1E]");h=h.I(/<1E>
<\\/1E>/gi,"[1E]");h=h.I(/([\\w\\W]*?)<\\/a>/gi,\'[a 1w="$2"]$4[/a]\');h=h.I(/<1p(.*?)>([\\w\\W]*?)<\\/1p>/gi,"[1p$1]$2[/1p]");h=h.I(/<2J(.*?)>([\\w\\W]*?)<\\/2J>/gi,"[2J$1]$2[/2J]");h=h.I(/<4j(.*?)>([\\w\\W]*?)<\\/4j>/gi,"[4j$1]$2[/4j]");h=h.I(/<3m(.*?)>([\\w\\W]*?)<\\/3m>/gi,"[3m$1]$2[/3m]");h=h.I(/<2R(.*?)>([\\w\\W]*?)<\\/2R>/gi,"[2R$1]$2[/2R]");h=h.I(/<5a(.*?)>/gi,"[5a$1]");h=h.I(/<1q(.*?)16="(.*?)"(.*?)>/gi,"[1q$1$3]");h=h.I(/<1q(.*?)>/gi,"[1q$1]");h=h.I(/ Z="(.*?)"/gi,"");h=h.I(/<(\\w+)([\\w\\W]*?)>/gi,"<$1>");h=h.I(/<[^\\/>][^>]*>(\\s*|\\t*|\\n*|&2j;|
)<\\/[^>]+>/gi,"");h=h.I(/\\s*?\\t*?\\n*?(<2d>|<2y>|

)/gi,"$1");h=h.I(/\\[1E\\]/gi,"<1E>&2j;");h=h.I(/\\[a 1w="(.*?)"\\]([\\w\\W]*?)\\[\\/a\\]/gi,\'$2\');h=h.I(/\\[1p(.*?)\\]([\\w\\W]*?)\\[\\/1p\\]/gi,"<1p$1>$2");h=h.I(/\\[2J(.*?)\\]([\\w\\W]*?)\\[\\/2J\\]/gi,"<2J$1>$2");h=h.I(/\\[4j(.*?)\\]([\\w\\W]*?)\\[\\/4j\\]/gi,"<4j$1>$2");h=h.I(/\\[3m(.*?)\\]([\\w\\W]*?)\\[\\/3m\\]/gi,"<3m$1>$2");h=h.I(/\\[2R(.*?)\\]([\\w\\W]*?)\\[\\/2R\\]/gi,"<2R$1>$2");h=h.I(/\\[5a(.*?)\\]/gi,"<5a$1>");h=h.I(/\\[1q(.*?)\\]/gi,"<1q$1>");if(7.C.9E){h=h.I(/([\\w\\W]*?)<\\/N>/gi,"

$2

");h=h.I(/<\\/N>

/gi,"

");h=h.I(/<\\/p><\\/N>/gi,"

")}if(7.5M("2H")){h=h.I(/

([\\w\\W]*?)<\\/p>/gi,"$1
")}G{h=7.70(h)}h=h.I(/([\\w\\W]*?)<\\/O>/gi,"$2");h=h.I(/<1q>/gi,"");h=h.I(/<[^\\/>][^>][^1q|5a|1g]*>(\\s*|\\t*|\\n*|&2j;|
)<\\/[^>]+>/gi,"");h=h.I(/\\n{3,}/gi,"\\n");h=h.I(/

/gi,"

");h=h.I(/<\\/p><\\/p>/gi,"

");h=h.I(/<1u>(\\s*|\\t*|\\n*)

/gi,"<1u>");h=h.I(/<\\/p>(\\s*|\\t*|\\n*)<\\/1u>/gi,"");if(7.C.1B===M){h=h.I(/([\\w\\W]*?)<\\/p>/gi,"$2
")}h=h.I(/<[^\\/>][^>][^1q|5a|1g]*>(\\s*|\\t*|\\n*|&2j;|
)<\\/[^>]+>/gi,"");h=h.I(/<1q 2w="3G-iO-32\\:\\/\\/(.*?)"(.*?)>/gi,"");7.9G=E;if(7.1G("3o")){if(7.C.7h){y i=h.1J(/<1q 2w="1i:1c(.*?)"(.*?)>/gi);if(i!==2b){7.9G=i;2O(k in i){y f=i[k].I("<1q",\'<1q 1i-3o-7j-1c="\'+k+\'" \');h=h.I(i[k],f)}}}2D(/
$/gi.3u(h)){h=h.I(/
$/gi,"")}}h=h.I(/

•([\\w\\W]*?)<\\/p>/gi,"<1u>$1");2D(/<3B>([\\w\\W]*?)<\\/3B>/gi.3u(h)){h=h.I(/<3B>([\\w\\W]*?)<\\/3B>/gi,"$1")}7.7c(h)},eG:B(g){g=g.I(/
|<\\/H[1-6]>|<\\/p>|<\\/N>/gi,"\\n");y f=7.Q.3F("N");f.4v=g;F 7.9C(f.80||f.e6)},7c:B(f){if(7.4F){if(!7.C.1B){7.$J.V(7.C.41)}G{7.$J.V("")}7.$J.1s()}f=7.1h("iK",E,f);7.7g(f);7.4F=E;2h(d.K(B(){a=E;if(7.1G("3o")){7.$J.T("p:6a").1j()}if(7.9G!==E){7.e8()}},7),2x);if(7.C.4a){d(7.Q.1Q).3v(7.7i)}G{7.$J.3v(7.7i)}},e8:B(){y f=7.$J.T("1q[1i-3o-7j-1c]");d.19(f,d.K(B(j,l){y h=d(l);y g=l.2w.3x(",");y m=g[1];y n=g[0].3x(";")[0].3x(":")[1];d.5g(7.C.9L,{aH:n,1i:m},d.K(B(o){y i=d.6Y(o);h.15("2w",i.4J);h.26("1i-3o-7j-1c");7.12();7.1h("3c",h,i)},7))},7))},e9:B(i){y g=i.1z.j1;y f=g.3x(",");y h=f[1];y j=f[0].3x(";")[0].3x(":")[1];if(7.C.7h){d.5g(7.C.9L,{aH:j,1i:h},d.K(B(n){y m=d.6Y(n);y l=\'<1q 2w="\'+m.4J+\'" id="e4-1c-1y" />\';7.1H("3M",l,E);y o=d(7.$J.T("1q#e4-1c-1y"));if(o.11){o.26("id")}G{o=E}7.12();if(o){7.1h("3c",o,m)}},7))}G{7.7g(\'<1q 2w="\'+g+\'" />\')}},1x:B(f){if(f!==1k){7.C.4d.23(f)}G{7.1F();7.C.4d.23(7.$J.V());7.7V("4d")}},e0:B(){if(7.C.4d.11===0){7.$J.1s();F}7.1F();7.C.5z.23(7.$J.V());7.1n(E,M);7.$J.V(7.C.4d.e3());7.1n();2h(d.K(7.5c,7),2x)},e1:B(){if(7.C.5z.11===0){7.$J.1s();F E}7.1F();7.C.4d.23(7.$J.V());7.1n(E,M);7.$J.V(7.C.5z.e3());7.1n(M);2h(d.K(7.5c,7),4)},5c:B(){7.3s();7.ea();if(7.C.5d){7.5d()}},5d:B(){7.$J.T("a").1d("1v",d.K(7.eb,7));7.$J.1d("1v.L",d.K(B(f){7.5I(f)},7))},ea:B(){7.$J.T("1l").1d("1v",d.K(7.8H,7))},3s:B(){if(7.C.3s===E){F E}7.$J.T("1q").19(d.K(B(f,g){if(7.1G("3j")){d(g).15("kz","1d")}7.f9(g)},7))},eb:B(h){y i=d(h.1z);y l=i.2M();if(7.C.1p){y g=7.$2e.2M();l.1O=g.1O+(l.1O-d(7.Q).3v());l.1m+=g.1m}y o=d(\'\');y f=i.15("1w");if(f.11>24){f=f.7T(0,24)+"..."}y j=d(\'\'+f+"").1d("1v",d.K(B(p){7.5I(E)},7));y m=d(\'\'+7.C.18.aX+"").1d("1v",d.K(B(p){p.1X();7.8w();7.5I(E)},7));y n=d(\'\'+7.C.18.4z+"").1d("1v",d.K(B(p){p.1X();7.1H("4z");7.5I(E)},7));o.Y(j);o.Y(" | ");o.Y(m);o.Y(" | ");o.Y(n);o.U({1O:(l.1O+20)+"2r",1m:l.1m+"2r"});d(".L-2m-89").1j();d("1Q").Y(o)},5I:B(f){if(f!==E&&f.1z.X=="A"){F E}d(".L-2m-89").1j()},1L:B(){if(!7.C.2L){F 7.Q.1L()}G{if(!7.C.1p){F 2L.1L()}G{F 2L.1L(7.$2e[0])}}},2C:B(){if(!7.C.2L){if(7.Q.1L){y f=7.Q.1L();if(f.2U&&f.4g){F f.2U(0)}}F 7.Q.57()}G{if(!7.C.1p){F 2L.57()}G{F 2L.57(7.8f())}}},8l:B(f){7.eN(f)},3A:B(f){7.6e(f[0]||f,0,2b,0)},5G:B(f){7.6e(f[0]||f,1,2b,1)},6e:B(m,l,j,h){if(j==2b){j=m}if(h==2b){h=l}y g=7.1L();if(!g){F}y f=7.2C();f.6X(m,l);f.6W(j,h);84{g.4u()}86(i){}g.5s(f)},ec:B(f){f=f.2X();y i=7.1Y();if(i){y j=7.ed(i,f);7.12();F j}y h=7.1L();y g=h.2U(0);y j=Q.3F(f);j.5v(g.l0());g.2T(j);7.8l(j);F j},kR:B(){y f=7.2C();f.7f(7.$J[0]);y g=7.1L();g.4u();g.5s(f)},ee:B(){7.1L().4u()},eF:B(i){y f=0;y h=7.2C();y g=h.88();g.7f(i);g.6W(h.63,h.ef);f=d.2o(g.2V()).11;F f},eH:B(){F 1V e(7.1L().2U(0))},eN:B(j,g,n){if(1o n==="1k"){n=g}j=j[0]||j;y p=7.2C();p.7f(j);y q=7.8h(j);y m=E;y f=0,r;if(q.11==1&&g){p.6X(q[0],g);p.6W(q[0],n)}G{2O(y o=0,l;l=q[o++];){r=f+l.11;if(!m&&g>=f&&(g\'+7.C.22+"",7.Q)[0];y g=d(\'\'+7.C.22+"",7.Q)[0];if(i.4w===M){7.6K(i,h,M)}G{7.6K(i,h,M);7.6K(i,g,E)}7.4e=7.$J.V();7.1n(E,E)},6K:B(f,h,g){y i=f.88();i.6L(g);i.2T(h);i.kj()},1n:B(i,f){if(!7.C.2L){if(i===M&&7.4e){7.$J.V(7.4e)}y h=7.$J.T("O#2c-1y-1");y g=7.$J.T("O#2c-1y-2");if(7.1G("3o")){7.$J.1s()}G{if(!7.7b()){7.$J.1s()}}if(h.11!=0&&g.11!=0){7.6e(h[0],0,g[0],0)}G{if(h.11!=0){7.6e(h[0],0,2b,0)}}if(f!==E){7.7V();7.4e=E}}G{2L.kk(7.4e)}},7V:B(f){if(!7.C.2L){d.19(7.$J.T("O.L-2c-1y"),B(){y g=d.2o(d(7).V().I(/[^\\fb-\\fc]/g,""));if(g==""){d(7).1j()}G{d(7).26("Z").26("id")}})}G{2L.gN(7.4e)}},2B:B(){y f=E;y g=7.1L();if(g.4g>0){f=g.2U(0).4E}F 7.7d(f)},3w:B(f){f=f||7.2B();if(f){F 7.7d(d(f).1N()[0])}G{F E}},1Y:B(f){if(1o f==="1k"){f=7.2B()}2D(f){if(7.6i(f)){if(d(f).3i("34")){F E}F f}f=f.4b}F E},2E:B(g){y h=[];if(1o g=="1k"){y f=7.2C();if(f&&f.4w===M){F[7.1Y()]}y g=7.4Y(f)}d.19(g,d.K(B(j,l){if(7.C.1p===E&&d(l).9I("N.34").2n()==0){F E}if(7.6i(l)){h.23(l)}},7));if(h.11===0){h=[7.1Y()]}F h},6i:B(f){F f.3n==1&&7.7Y.3u(f.gP)},81:B(f){F 7.7Y.3u(f)},fu:B(j){if(1o j=="1k"||j==E){y j=7.2C()}if(j&&j.4w===M){F[7.2B()]}y f=7.1L();84{y p=f.2U(0).fp()}86(n){F(E)}y l=7.Q.3F("O");l.5v(p);2Y.83=l.8Y;y m=83.11;y g=[];2O(y h=0,o=m;h"),f=3b.cg(3b.cb()*cc),q=d(\'<1l id="1l\'+f+\'"><4y>\'),h,m,n,p;2O(h=0;h");2O(n=0;n"+7.C.22+"");if(h===0&&n===0){p.Y(\'\'+7.C.22+"")}d(m).Y(p)}q.Y(m)}o.Y(q);y j=o.V();7.2g();7.1n();y l=7.1Y()||7.2B();if(l&&l.X!="8J"){d(l).1W(j)}G{7.6P(j,E)}7.1n();y r=7.$J.T("#1l"+f);7.8H(r);7.62();r.T("O#2c-1y-1").1j();r.26("id");7.12()},8H:B(f){7.$1l=d(f.1z||f).2A("1l");7.$4y=d(f.1z).2A("4y");7.$2Q=7.$1l.T("2Q");7.$8s=d(f.1z||7.$1l.T("1E").6T());7.$3l=d(f.1z||7.$1l.T("2P").6T()).2A("2P")},eV:B(){7.1x();if(!7.$1l){F}7.$1l.1j();7.$1l=E;7.12()},eW:B(){7.1x();if(!7.$3l){F}y f=7.$3l.6N().11?7.$3l.6N():7.$3l.6b();if(f.11){y g=f.6O("1E").6T();if(g.11){g.5k(\'\'+7.C.22+"");7.1n()}}7.$3l.1j();7.12()},eX:B(){7.1x();y f=7.$8s.1S(0).gg;7.$1l.T("2P").19(d.K(B(g,h){y j=f-1<0?f+1:f-1;if(g===0){d(h).T("1E").eq(j).5k(\'\'+7.C.22+"");7.1n()}d(h).T("1E").eq(f).1j()},7));7.12()},eS:B(){7.1x();if(7.$1l.T("2Q").2n()!==0){7.8F()}G{y f=7.$1l.T("2P").6T().4H();f.T("1E").V(7.C.22);7.$2Q=d("<2Q>");7.$2Q.Y(f);7.$1l.5k(7.$2Q);7.12()}},8F:B(){7.1x();d(7.$2Q).1j();7.$2Q=E;7.12()},eO:B(){7.8t("38")},eP:B(){7.8t("1W")},eQ:B(){7.8u("38")},eR:B(){7.8u("1W")},8t:B(f){7.1x();y g=7.$3l.4H();g.T("1E").V(7.C.22);if(f==="1W"){7.$3l.1W(g)}G{7.$3l.38(g)}7.12()},8u:B(g){7.1x();y f=0;7.$3l.T("1E").19(d.K(B(h,j){if(d(j)[0]===7.$8s[0]){f=h}},7));7.$1l.T("2P").19(d.K(B(h,l){y j=d(l).T("1E").eq(f);y m=j.4H();m.V(7.C.22);g==="1W"?j.1W(m):j.38(m)},7));7.12()},eZ:B(){7.1F();7.4m(7.C.18.2J,7.C.bd,im,d.K(B(){d("#bL").1v(d.K(7.f6,7));2h(B(){d("#ax").1s()},3S)},7))},f6:B(){y f=d("#ax").1f();f=7.6c(f);7.1n();y g=7.1Y()||7.2B();if(g){d(g).1W(f)}G{7.6P(f,E)}7.12();7.2g()},8w:B(){7.1F();y f=d.K(B(){7.5e=E;y h=7.1L();y g="",o="",j="";y i=7.3w();y l=d(i).1N().1S(0);if(l&&l.X==="A"){i=l}if(i&&i.X==="A"){g=i.1w;o=d(i).1e();j=i.1z;7.5e=i}G{o=h.2V()}d(".6w").1f(o);y q=f8.f5.1w.I(/\\/$/i,"");y n=g.I(q,"");if(7.C.6f===E){y p=1V 2I("^(7k|a1|71)://"+f8.f5.hj,"i");n=n.I(p,"")}y m=d("#3K").T("a");if(7.C.8D===E){m.eq(1).1j()}if(7.C.8A===E){m.eq(2).1j()}if(7.C.8D===E&&7.C.8A===E){d("#3K").1j();d("#5C").1f(n)}G{if(g.45("5S:")===0){7.av.3y(7,2);d("#6k").1f(2);d("#aR").1f(g.I("5S:",""))}G{if(n.45(/^#/gi)===0){7.av.3y(7,3);d("#6k").1f(3);d("#aL").1f(n.I(/^#/gi,""))}G{d("#5C").1f(n)}}}if(j==="4Q"){d("#5i").6V("6U",M)}d("#bh").1v(d.K(7.f0,7));2h(B(){d("#5C").1s()},3S)},7);7.4m(7.C.18.2m,7.C.c9,ho,f)},f0:B(){y j=d("#6k").1f();y h="",n="",l="",m="";if(j==="1"){h=d("#5C").1f();n=d("#ck").1f();if(d("#5i").6V("6U")){l=\' 1z="4Q"\';m="4Q"}y i="((hO--)?[a-8y-9]+(-[a-8y-9]+)*.)+[a-z]{2,}";y g=1V 2I("^(7k|a1|71)://"+i,"i");y f=1V 2I("^"+i,"i");if(h.45(g)==-1&&h.45(f)==0&&7.C.6f){h=7.C.6f+h}}G{if(j==="2"){h="5S:"+d("#aR").1f();n=d("#bl").1f()}G{if(j==="3"){h="#"+d("#aL").1f();n=d("#bo").1f()}}}n=n.I(/<|>/g,"");7.f3(\'"+n+"",d.2o(n),h,m)},f3:B(f,i,g,h){7.1n();if(i!==""){if(7.5e){7.1x();d(7.5e).1e(i).15("1w",g);if(h!==""){d(7.5e).15("1z",h)}G{d(7.5e).26("1z")}7.12()}G{7.1P("3M",f)}}7.2g()},bm:B(){7.1F();y f=d.K(B(){y g=7.1L();y h="";if(7.7Z()){h=g.1e}G{h=g.2V()}d("#aI").1f(h);if(!7.43()){7.ak("#3X",{32:7.C.6j,31:7.C.31,36:d.K(7.b4,7),39:d.K(B(j,i){7.1h("f2",i)},7)})}7.b3("3X",{3J:M,32:7.C.6j,36:d.K(7.b4,7),39:d.K(B(j,i){7.1h("f2",i)},7)})},7);7.4m(7.C.18.2Z,7.C.fB,bV,f)},b4:B(g){7.1n();if(g!==E){y i=d("#aI").1f();if(i===""){i=g.aB}y h=\'\'+i+"";if(7.1G("3G")&&!!7.2Y.8L){h=h+"&2j;"}7.1H("3M",h,E);y f=d(7.$J.T("a#4J-1y"));if(f.2n()!=0){f.26("id")}G{f=E}7.12();7.1h("6j",f,g)}7.2g()},f4:B(){7.1F();y f=d.K(B(){if(7.C.67){d.hl(7.C.67,d.K(B(m){y i={},l=0;d.19(m,d.K(B(o,p){if(1o p.6Q!=="1k"){l++;i[p.6Q]=l}},7));y j=E;d.19(m,d.K(B(r,s){y q="";if(1o s.R!=="1k"){q=s.R}y o=0;if(!d.f7(i)&&1o s.6Q!=="1k"){o=i[s.6Q];if(j===E){j=".5f"+o}}y p=d(\'<1q 2w="\'+s.hV+\'" Z="5f 5f\'+o+\'" 33="\'+s.1c+\'" R="\'+q+\'" />\');d("#aA").Y(p);d(p).1v(d.K(7.fU,7))},7));if(!d.f7(i)){d(".5f").1T();d(j).1R();y n=B(o){d(".5f").1T();d(".5f"+d(o.1z).1f()).1R()};y h=d(\'<5m id="il">\');d.19(i,B(p,o){h.Y(d(\'<3t 2S="\'+o+\'">\'+p+""))});d("#aA").38(h);h.7A(n)}},7))}G{d("#3K").T("a").eq(1).1j()}if(7.C.3c||7.C.5T){if(!7.43()&&7.C.5T===E){if(d("#3X").11){7.ak("#3X",{32:7.C.3c,31:7.C.31,36:d.K(7.aJ,7),39:d.K(B(i,h){7.1h("ar",h)},7)})}}if(7.C.5T===E){7.b3("3X",{3J:M,32:7.C.3c,36:d.K(7.aJ,7),39:d.K(B(i,h){7.1h("ar",h)},7)})}G{d("#3X").1d("7A.L",d.K(7.cN,7))}}G{d(".3a").1T();if(!7.C.67){d("#3K").1j();d("#aQ").1R()}G{y g=d("#3K").T("a");g.eq(0).1j();g.eq(1).28("4q");d("#aU").1R()}}d("#c8").1v(d.K(7.fC,7));if(!7.C.3c&&!7.C.67){2h(B(){d("#4L").1s()},3S)}},7);7.4m(7.C.18.1c,7.C.c7,it,f)},e2:B(h){y f=h;y g=f.1N().1N();y i=d.K(B(){d("#aF").1f(f.15("aS"));d("#hX").15("1w",f.15("2w"));d("#aG").1f(f.U("4O"));if(d(g).1S(0).X==="A"){d("#4L").1f(d(g).15("1w"));if(d(g).15("1z")=="4Q"){d("#5i").6V("6U",M)}}d("#ct").1v(d.K(B(){7.aq(f)},7));d("#c0").1v(d.K(B(){7.eT(f)},7))},7);7.4m(7.C.18.1c,7.C.fL,i6,i)},aq:B(g){y f=d(g).1N();d(g).1j();if(f.11&&f[0].X==="P"){7.$J.1s();7.3A(f)}7.1h("gh",g);7.2g();7.12()},eT:B(i){y g=d(i);y h=g.1N();g.15("aS",d("#aF").1f());y n=d("#aG").1f();if(n==="1m"){g.U({"4O":"1m",21:"0 "+7.C.69+" "+7.C.69+" 0"})}G{if(n==="3E"){g.U({"4O":"3E",21:"0 0 "+7.C.69+" "+7.C.69+""})}G{y l=g.2A("#L-1c-1M");if(l.2n()!=0){l.U({"4O":"",21:""})}g.U({"4O":"",21:""})}}y j=d.2o(d("#4L").1f());if(j!==""){y m=E;if(d("#5i").6V("6U")){m=M}if(h.1S(0).X!=="A"){y f=d(\'\'+7.5u(i)+"");if(m){f.15("1z","4Q")}g.1U(f)}G{h.15("1w",j);if(m){h.15("1z","4Q")}G{h.26("1z")}}}G{if(h.1S(0).X==="A"){h.1U(7.5u(i))}}7.2g();7.3s();7.12()},4W:B(h){if(h!==E&&d(h.1z).1N().2n()!=0&&d(h.1z).1N()[0].id==="L-1c-1M"){F E}y f=7.$J.T("#L-1c-1M");if(f.2n()==0){F E}7.$J.T("#L-1c-aj, #L-1c-ai").1j();y g=f.U("21");if(g!="fy"){f.T("1q").U("21",g);f.U("21","")}f.T("1q").U("eh","");f.1U(B(){F d(7).1K()});d(Q).2F("1v.L-1c-5L-1T");7.$J.2F("1v.L-1c-5L-1T");7.$J.2F("4k.L-1c-al");7.12()},f9:B(g){y f=d(g);f.1d("aW",d.K(B(){7.4W(E)},7));f.1d("fZ",d.K(B(){7.$J.1d("5y.L-1c-fq-5y",d.K(B(){2h(d.K(B(){7.3s();7.$J.2F("5y.L-1c-fq-5y");7.12()},7),1)},7))},7));f.1d("1v",d.K(B(l){if(7.$J.T("#L-1c-1M").2n()!=0){F E}y n=E,q,p,m=f.2i()/f.1I(),o=20,j=10;y h=7.fg(f);y i=E;h.1d("aW",B(r){i=M;r.1X();m=f.2i()/f.1I();q=3b.4P(r.ap-f.eq(0).2M().1m);p=3b.4P(r.ao-f.eq(0).2M().1O)});d(7.Q.1Q).1d("fv",d.K(B(v){if(i){y s=3b.4P(v.ap-f.eq(0).2M().1m)-q;y r=3b.4P(v.ao-f.eq(0).2M().1O)-p;y u=f.1I();y w=6G(u,10)+r;y t=3b.4P(w*m);if(t>o){f.2i(t);if(t<2x){7.4N.U({7t:"-7a",7U:"-hf",5K:"hd",aa:"hc eo"})}G{7.4N.U({7t:"-7e",7U:"-ej",5K:"7e",aa:"7a a9"})}}q=3b.4P(v.ap-f.eq(0).2M().1m);p=3b.4P(v.ao-f.eq(0).2M().1O);7.12()}},7)).1d("6F",B(){i=E});7.$J.1d("4k.L-1c-al",d.K(B(s){y r=s.6I;if(7.2s.6J==r||7.2s.am==r){7.4W(E);7.aq(f)}},7));d(Q).1d("1v.L-1c-5L-1T",d.K(7.4W,7));7.$J.1d("1v.L-1c-5L-1T",d.K(7.4W,7))},7))},fg:B(g){y h=d(\'\');h.U({2G:"fj",2t:"ku-kp",ag:0,jX:"eI kb k8(0, 0, 0, .6)","4O":g.U("4O")});h.15("30",E);y i=g.U("21");if(i!="fy"){h.U("21",i);g.U("21","")}g.U("eh",0.5).1W(h);7.4N=d(\'\'+7.C.18.aX+"");7.4N.U({2G:"7D",ah:2,1O:"50%",1m:"50%",7t:"-7e",7U:"-ej",ag:1,et:"#ew",5J:"#eC",5K:"7e",aa:"7a a9",ae:"kG"});7.4N.15("30",E);7.4N.1d("1v",d.K(B(){7.e2(g)},7));h.Y(7.4N);y f=d(\'\');f.U({2G:"7D",ah:2,ag:1,ae:"jf-5L",j9:"-iE",3E:"-eo",iP:"eI jJ #eC",et:"#ew",2i:"ez",1I:"ez"});f.15("30",E);h.Y(f);h.Y(g);F f},fU:B(g){y f=\'<1q id="1c-1y" 2w="\'+d(g.1z).15("33")+\'" aS="\'+d(g.1z).15("R")+\'" />\';if(7.C.4I){f="

"+f+"

"}7.78(f,M)},fC:B(){y g=d("#4L").1f();if(g!==""){y f=\'<1q id="1c-1y" 2w="\'+g+\'" />\';if(7.C.1B===E){f="

"+f+"

"}7.78(f,M)}G{7.2g()}},aJ:B(f){7.78(f)},78:B(g,h){7.1n();if(g!==E){y f="";if(h!==M){f=\'<1q id="1c-1y" 2w="\'+g.4J+\'" />\';if(7.C.4I){f="

"+f+"

"}}G{f=g}7.1H("3M",f,E);y i=d(7.$J.T("1q#1c-1y"));if(i.11){i.26("id")}G{i=E}7.12();h!==M&&7.1h("3c",i,g)}7.2g();7.3s()},fA:B(){d.3P(7.C,{fB:3z()+\'<1D><1C id="gQ" 5x="5g" 4s="" 7J="7I/1C-1i"><1t>\'+7.C.18.aB+\'<1A 1r="1e" id="aI" Z="3p" /><1A 1r="2Z" id="3X" 2q="2Z" />\',fL:3z()+"<1D><1t>"+7.C.18.R+\'<1A id="aF" Z="3p" /><1t>\'+7.C.18.2m+\'<1A id="4L" Z="3p" /><1t><1A 1r="cj" id="5i"> \'+7.C.18.aT+"<1t>"+7.C.18.bq+\'<5m id="aG"><3t 2S="25">\'+7.C.18.25+\'<3t 2S="1m">\'+7.C.18.1m+\'<3t 2S="3E">\'+7.C.18.3E+\'<35><2f id="ct" Z="3f">\'+7.C.18.c1+\'&2j;&2j;&2j;<2f Z="3f 5r">\'+7.C.18.5j+\'<1A 1r="2f" 2q="aE" Z="3f" id="c0" 2S="\'+7.C.18.aE+\'" />\',c7:3z()+\'<1D>\'+7.C.18.4M+\'\'+7.C.18.aD+\'\'+7.C.18.2m+\'<1C id="gX" 5x="5g" 4s="" 7J="7I/1C-1i"><1A 1r="2Z" id="3X" 2q="2Z" /><1t>\'+7.C.18.bU+\'<1A 1r="1e" 2q="4L" id="4L" Z="3p" /><35><2f Z="3f 5r">\'+7.C.18.5j+\'<1A 1r="2f" 2q="4M" Z="3f" id="c8" 2S="\'+7.C.18.6l+\'" />\',c9:3z()+\'<1D><1C id="kw" 5x="5g" 4s="">aCaV\'+7.C.18.aM+\'<1A 1r="7E" id="6k" 2S="1" /><1t>aC<1A 1r="1e" id="5C" Z="3p" /><1t>\'+7.C.18.1e+\'<1A 1r="1e" Z="3p 6w" id="ck" /><1t><1A 1r="cj" id="5i"> \'+7.C.18.aT+\'<1t>aV<1A 1r="1e" id="aR" Z="3p" /><1t>\'+7.C.18.1e+\'<1A 1r="1e" Z="3p 6w" id="bl" /><1t>\'+7.C.18.aM+\'<1A 1r="1e" Z="3p" id="aL" /><1t>\'+7.C.18.1e+\'<1A 1r="1e" Z="3p 6w" id="bo" /><35><2f Z="3f 5r">\'+7.C.18.5j+\'<1A 1r="2f" Z="3f" id="bh" 2S="\'+7.C.18.6l+\'" />\',bg:3z()+"<1D><1t>"+7.C.18.b9+\'<1A 1r="1e" 2n="5" 2S="2" id="aO" /><1t>\'+7.C.18.b7+\'<1A 1r="1e" 2n="5" 2S="3" id="b6" /><35><2f Z="3f 5r">\'+7.C.18.5j+\'<1A 1r="2f" 2q="4M" Z="3f" id="bb" 2S="\'+7.C.18.6l+\'" />\',bd:3z()+\'<1D><1C id="jy"><1t>\'+7.C.18.bc+\'<3W id="ax" 16="2i: 99%; 1I: jj;"><35><2f Z="3f 5r">\'+7.C.18.5j+\'<1A 1r="2f" Z="3f" id="bL" 2S="\'+7.C.18.6l+\'" />\'})},4m:B(m,i,g,n){y f=d("#ab");if(!f.11){7.$bw=f=d(\'\');d("1Q").5k(7.$bw)}if(7.C.a7){f.1R().1d("1v",d.K(7.2g,7))}y j=d("#ac");if(!j.11){7.$bA=j=d(\'<68 id="7S">\');d("1Q").Y(7.$bA)}d("#ad").1d("1v",d.K(7.2g,7));7.5P=d.K(B(o){if(o.2s===7.2s.af){7.2g();F E}},7);d(Q).3D(7.5P);7.$J.3D(7.5P);7.4p=E;if(i.3r("#")==0){7.4p=d(i);d("#7v").6a().Y(7.4p.V());7.4p.V("")}G{d("#7v").6a().Y(i)}j.T("#7S").V(m);if(1o d.fn.du!=="1k"){j.du({iW:"#7S"});j.T("#7S").U("ae","jb")}y l=d("#3K");if(l.11){y h=7;l.T("a").19(B(o,p){o++;d(p).1d("1v",B(r){r.1X();l.T("a").2k("4q");d(7).28("4q");d(".3a").1T();d("#3a"+o).1R();d("#6k").1f(o);if(h.43()===E){y q=j.dh();j.U("21-1O","-"+(q+10)/2+"2r")}})})}j.T(".5r").1d("1v",d.K(7.2g,7));if(7.C.4a===M){7.as=7.Q.1Q.3v}if(7.43()===E){j.U({2G:"7L",1O:"-aZ",1m:"50%",2i:g+"2r",7U:"-"+(g+60)/2+"2r"}).1R();7.au=d(Q.1Q).U("at");d(Q.1Q).U("at","7E")}G{j.U({2G:"7L",2i:"2x%",1I:"2x%",1O:"0",1m:"0",21:"0",5B:"jU"}).1R()}if(1o n==="B"){n()}if(7.43()===E){2h(B(){y o=j.dh();j.U({1O:"50%",1I:"3J",5B:"3J",7t:"-"+(o+10)/2+"2r"})},10)}},2g:B(){d("#ad").2F("1v",7.2g);d("#ac").5w("kJ",d.K(B(){y f=d("#7v");if(7.4p!==E){7.4p.V(f.V());7.4p=E}f.V("");if(7.C.a7){d("#ab").1T().2F("1v",7.2g)}d(Q).dO("3D",7.5P);7.$J.dO("3D",7.5P);7.1n();if(7.C.4a&&7.as){d(7.Q.1Q).3v(7.as)}},7));if(7.43()===E){d(Q.1Q).U("at",7.au?7.au:"de")}F E},av:B(f){d(".3a").1T();d("#3K").T("a").2k("4q").eq(f-1).28("4q");d("#3a"+f).1R()},cN:B(l){y h=l.1z.6x;2O(y g=0,j;j=h[g];g++){7.cw(j)}},cw:B(f){7.cv(f,d.K(B(g){7.d1(f,g)},7))},cv:B(f,h){y g=1V d8();g.7q("gO",7.C.5T+"?2q="+f.2q+"&1r="+f.1r,M);g.gJ("1e/gC; gA=x-gD-gE");g.gH=B(i){if(7.d3==4&&7.b5==3S){d("#L-1Z").bj();h(gF(7.gR))}G{if(7.d3==4&&7.b5!=3S){}}};g.b8()},cT:B(h,f){y g=1V d8();if("h8"in g){g.7q(h,f,M)}G{if(1o d2!="1k"){g=1V d2();g.7q(h,f)}G{g=2b}}F g},d1:B(g,f){y h=7.cT("g8",f);if(!h){}G{h.d9=d.K(B(){if(h.b5==3S){d("#L-1Z").1T();y l=f.3x("?");if(!l[0]){F E}7.1n();y i="";i=\'<1q id="1c-1y" 2w="\'+l[0]+\'" />\';if(7.C.4I){i="

"+i+"

"}7.1H("3M",i,E);y j=d(7.$J.T("1q#1c-1y"));if(j.11){j.26("id")}G{j=E}7.12();7.1h("3c",j,E);7.2g();7.3s()}G{}},7);h.i8=B(){};h.4M.i7=B(i){};h.bs("ia-iv",g.1r);h.bs("x-iz-iB","iA-iu");h.b8(g)}},b3:B(h,f){7.2z={32:E,36:E,39:E,4X:E,b1:E,3J:E,1A:E};d.3P(7.2z,f);y g=d("#"+h);if(g.11&&g[0].X==="ik"){7.2z.1A=g;7.el=d(g[0].1C)}G{7.el=g}7.cI=7.el.15("4s");if(7.2z.3J){d(7.2z.1A).7A(d.K(B(i){7.el.b2(B(j){F E});7.aY(i)},7))}G{if(7.2z.b1){d("#"+7.2z.b1).1v(d.K(7.aY,7))}}},aY:B(f){d("#L-1Z").bj();7.bM(7.44,7.bO())},bO:B(){7.id="f"+3b.cg(3b.cb()*cc);y g=7.Q.3F("N");y f=\'<1p 16="2t:25" id="\'+7.id+\'" 2q="\'+7.id+\'">\';g.4v=f;d(g).7C("1Q");if(7.2z.4X){7.2z.4X()}d("#"+7.id).bn(d.K(7.dg,7));F 7.id},bM:B(j,i){if(7.2z.1A){y l="hU"+7.id,g="hw"+7.id;7.1C=d(\'<1C 4s="\'+7.2z.32+\'" 5x="aK" 1z="\'+i+\'" 2q="\'+l+\'" id="\'+l+\'" 7J="7I/1C-1i" />\');if(7.C.31!==E&&1o 7.C.31==="2R"){d.19(7.C.31,d.K(B(n,f){if(f!=2b&&f.2V().3r("#")===0){f=d(f).1f()}y o=d("<1A/>",{1r:"7E",2q:n,2S:f});d(7.1C).Y(o)},7))}y h=7.2z.1A;y m=d(h).4H();d(h).15("id",g).38(m).7C(7.1C);d(7.1C).U("2G","7D").U("1O","-aZ").U("1m","-aZ").7C("1Q");7.1C.b2()}G{j.15("1z",i).15("5x","aK").15("7J","7I/1C-1i").15("4s",7.2z.32);7.44.b2()}},dg:B(){y j=d("#"+7.id)[0],l;if(j.df){l=j.df}G{if(j.b0){l=j.b0.Q}G{l=2Y.gL[7.id].Q}}if(7.2z.36){d("#L-1Z").1T();if(1o l!=="1k"){y h=l.1Q.4v;y g=h.1J(/\\{(.|\\n)*\\}/)[0];g=g.I(/^\\[/,"");g=g.I(/\\]$/,"");y f=d.6Y(g);if(1o f.39=="1k"){7.2z.36(f)}G{7.2z.39(7,f);7.2g()}}G{7.2g();kg("cH kt!")}}7.el.15("4s",7.cI);7.el.15("1z","")},ak:B(g,f){7.4R=d.3P({32:E,36:E,39:E,l6:E,31:E,1e:7.C.18.dV,cf:7.C.18.dk},f);if(2Y.ay===1k){F E}7.aw=d(\'\');7.3C=d(\'\'+7.4R.1e+"");7.bE=d(\'\'+7.4R.cf+"");7.aw.Y(7.3C);d(g).38(7.aw);d(g).38(7.bE);7.3C.1d("jD",d.K(B(){F 7.ff()},7));7.3C.1d("jA",d.K(B(){F 7.fl()},7));7.3C.1S(0).ji=d.K(B(h){h.1X();7.3C.2k("an").28("5y");7.aN(7.4R.32,h.aP.6x[0],E)},7)},aN:B(h,j,f,g,l){if(!f){y m=d.jN.bQ();if(m.4M){m.4M.kU("1Z",d.K(7.fm,7),E)}d.kl({bQ:B(){F m}})}y i=1V ay();i.Y("2Z",j);if(7.C.31!==E&&1o 7.C.31==="2R"){d.19(7.C.31,d.K(B(o,n){if(n!=2b&&n.2V().3r("#")===0){n=d(n).1f()}i.Y(o,n)},7))}d.c5({32:h,gZ:"V",1i:i,hh:E,aH:E,hT:E,1r:"aK",36:d.K(B(p){p=p.I(/^\\[/,"");p=p.I(/\\]$/,"");y o=d.6Y(p);if(f){g.5w("j5",B(){d(7).1j()});y n=d("<1q>");n.15("2w",o.4J).15("id","a8-1c-1y");7.e5(l,n[0]);y q=d(7.$J.T("1q#a8-1c-1y"));if(q.11){q.26("id")}G{q=E}7.12();7.3s();if(q){7.1h("3c",q,o)}if(1o o.39!=="1k"){7.1h("ar",o)}}G{if(1o o.39=="1k"){7.4R.36(o)}G{7.4R.39(7,o);7.4R.36(E)}}},7)})},ff:B(){7.3C.28("an");F E},fl:B(){7.3C.2k("an");F E},fm:B(g,h){y f=g.eU?6G(g.eU/g.gy*2x,10):g;7.3C.1e("gu "+f+"% "+(h||""))},43:B(){F/(gv|gj|gk|iq)/.3u(8E.8P)},6R:B(f){if(1o(f)==="1k"){F 0}F 6G(f.I("2r",""),10)},5u:B(f){F d("").Y(d(f).eq(0).4H()).V()},f1:B(f){F hQ.4l.2V.3y(f)=="[2R 3z]"},8p:B(f){f=f.I(/S;|
||&2j;/gi,"");f=f.I(/\\s/g,"");f=f.I(/^

[^\\W\\w\\D\\d]*?<\\/p>$/i,"");F f==""},1G:B(g){y h=8E.8P.2X();y f=/(8L)[ \\/]([\\w.]+)/.1P(h)||/(3G)[ \\/]([\\w.]+)/.1P(h)||/(6H)(?:.*6M|)[ \\/]([\\w.]+)/.1P(h)||/(3j) ([\\w.]+)/.1P(h)||h.3r("g4")<0&&/(3o)(?:.*? gU:([\\w.]+)|)/.1P(h)||[];if(g=="6M"){F f[2]}if(g=="3G"){F(f[1]=="8L"||f[1]=="3G")}F f[1]==g},7Z:B(){if(7.1G("3j")&&6G(7.1G("6M"),10)<9){F M}F E},fk:B(g){y f=g.k0(M);y h=7.Q.3F("N");h.5v(f);F h.4v},8a:B(){y f=7.$J[0];y h=7.Q.ek();y g;2D((g=f.8V)){h.5v(g)}F h},7d:B(f){if(!f){F E}if(7.C.1p){F f}if(d(f).9I("N.34").11==0||d(f).3i("34")){F E}G{F f}},5M:B(f){y g=7.3w(),h=7.2B();F g&&g.X===f?g:h&&h.X===f?h:E},e7:B(){y g=7.1Y();y i=7.eF(g);y h=d.2o(d(g).1e()).I(/\\n\\r\\n/g,"");y f=h.11;if(i==f){F M}G{F E}},7b:B(){y f,g=7.1L();if(g&&g.4g&&g.4g>0){f=g.2U(0).4E}if(!f){F E}if(7.C.1p){if(7.eH().eL()){F!7.$J.is(f)}G{F M}}F d(f).2A("N.34").11!=0},3Q:B(g,f){if(d(g).15(f)==""){d(g).26(f)}},eJ:B(h,g){y f=2b;2D((f=h.3r(g))!==-1){h.6E(f,1)}F h}};c.4l.5t.4l=c.4l;d.3V.fn.9H=B(x,u,m,r){y s=/(^|&6d;|\\s)(9F\\..+?\\..+?)(\\s|>|$)/g,q=/(^|&6d;|\\s)(((71?|a1):\\/\\/|5S:).+?)(\\s|>|$)/g,f=/(71?:\\/\\/.*\\.(?:fP|hW|fK|eg))/gi,w=/^.*(hR.be\\/|v\\/|u\\/\\w\\/|3m\\/|gs\\?v=|\\&v=)([^#\\&\\?]*).*/,t=/7k:\\/\\/(9F\\.)?bJ.8v\\/(\\d+)($|\\/)/;y v=(7.$J?7.$J.1S(0):7).8Y,l=v.11;2D(l--){y j=v[l];if(j.3n===3){y p=j.5U;if(r&&p){y o=\'<1p 2i="bV" 1I="kY" 2w="\',h=\'" cm="0" l2>\';if(p.1J(w)){p=p.I(w,o+"//9F.iI.8v/3m/$2"+h);d(j).1W(p).1j()}G{if(p.1J(t)){p=p.I(t,o+"//jm.bJ.8v/2J/$2"+h);d(j).1W(p).1j()}}}if(m&&p&&p.1J(f)){p=p.I(f,\'<1q 2w="$1">\');d(j).1W(p).1j()}if(u&&p&&(p.1J(s)||p.1J(q))){y g=(p.1J(s)||p.1J(q));g=g[0];if(g.11>50){g=g.7T(0,50)+"..."}p=p.I(/&/g,"&7Q;").I(//g,">").I(s,\'$1\'+g+"$3").I(q,\'$1\'+g+"$5");d(j).1W(p).1j()}}G{if(j.3n===1&&!/^(a|2f|3W)$/i.3u(j.X)){d.3V.fn.9H.3y(j,x,u,m,r)}}}}})(kd);',62,1311,'|||||||this|||||||||||||||||||||||||||var|||function|opts||false|return|else||replace|editor|proxy|redactor|true|div|span||document|title||find|css|html||tagName|append|class||length|sync|||attr|style||curLang|each|toolbar|func|image|on|text|val|source|callback|data|remove|undefined|table|left|selectionRestore|typeof|iframe|img|type|focus|label|li|click|href|bufferSet|marker|target|input|linebreaks|form|section|td|selectionSave|browser|execCommand|height|match|contents|getSelection|box|parent|top|exec|body|show|get|hide|replaceWith|new|after|preventDefault|getBlock|progress||margin|invisibleSpace|push||none|removeAttr||addClass||air|null|selection|ul|frame|button|modalClose|setTimeout|width|nbsp|removeClass|pre|link|size|trim|script|name|px|keyCode|display|blockquote|buttonGet|src|100|ol|uploadOptions|closest|getCurrent|getRange|while|getBlocks|off|position|LI|RegExp|video|verified|rangy|offset|dropdown|for|tr|thead|object|value|insertNode|getRangeAt|toString|fullpage|toLowerCase|window|file|contenteditable|uploadFields|url|rel|redactor_editor|footer|success||before|error|redactor_tab|Math|imageUpload|italic|buttons|redactor_modal_btn|className|bold|hasClass|msie|php|current_tr|embed|nodeType|mozilla|redactor_input|substr|indexOf|observeImages|option|test|scrollTop|getParent|split|call|String|selectionStart|font|dropareabox|keyup|right|createElement|webkit|content|placeholder|auto|redactor_tabs|tag|inserthtml|formatBlocks|strong|extend|removeEmptyAttr|inArray|200|shiftKey|shortcutsLoad|Redactor|textarea|redactor_file|toolbarFixed|alignmentTags||emptyHtml|charAt|isMobile|element|search||shortcutsLoadFormat|||autoresize|parentNode|deleted|buffer|savedSel|visual|rangeCount|inlineMethods|buttonActive|audio|keydown|prototype|modalInit|direction|redactor_placeholder|modalcontent|redactor_tabs_act|dir|action|indent|removeAllRanges|innerHTML|collapsed|unorderedlist|tbody|unlink|Insert|range|PRE|BLOCKQUOTE|startContainer|selectall|orderedlist|clone|paragraphy|filelink|formatting|redactor_file_link|upload|imageEditter|float|round|_blank|draguploadOptions|textareamode|join|underline|isFunction|imageResizeHide|start|getNodes|not||||||code|allowedTags|createRange|cleanGetTabs|formatBlock|param|justify|observeStart|observeLinks|insert_link_node|redactorfolder|post|autosave|redactor_link_blank|cancel|prepend|bar|select|outdent|buttonBuild|redactor_act|dropact|redactor_btn_modal_close|addRange|init|outerHtml|appendChild|fadeOut|method|drop|rebuffer|cleanlevel|minHeight|redactor_link_url|deniedTags|tabindex|phpTags|selectionEnd|modified|linkObserverTooltipClose|color|fontSize|resize|currentOrParentIs|line|Header|hdlModalClose|tagblock|shortcuts|mailto|s3|nodeValue|alignmentSet|Add|buttonSeparator|Delete|enter||cleanRemoveSpaces|buttonActiveObserver|endContainer|getElement|||imageGetJson|header|imageFloatMargin|empty|next|cleanStripTags|lt|selectionSet|linkProtocol|insertunorderedlist|break|nodeTestBlocks|fileUpload|redactor_tab_selected|insert|horizontalrule|alignright|background|activeButtonsAdd|placeTag|activeButtons|insertorderedlist|TD|head|indentValue|redactor_link_text|files|cleanConvertInlineTags|del|alignleft|strike|template|aligncenter|splice|mouseup|parseInt|opera|which|BACKSPACE|selectionSetMarker|collapse|version|prev|children|insertHtmlAdvanced|folder|normalize|x200b|first|checked|prop|setEnd|setStart|parseJSON|insertAfterLastElement|cleanParagraphy|https|||||||imageInsert|align|7px|isFocused|pasteInsert|isParentRedactor|11px|selectNodeContents|insertHtml|clipboardUpload|saveScroll|paste|http|javascript|ENTER|redactor_btn_|createTextNode|DIV|open|buildCodearea|insertAfter|marginTop|toolbarFixedBox|redactor_modal_inner|autosaveInterval|set|ARTICLE|ASIDE|change|alignment|appendTo|absolute|hidden|ADDRESS|SECTION|FOOTER|multipart|enctype|HEADER|fixed|convertImageLinks|dropdownHideAll|one|separator|amp|airBindMousemoveHide|redactor_modal_header|substring|marginLeft|selectionRemoveMarkers|buttonInactive|align_justify|rTestBlock|oldIE|textContent|tagTestBlock|align_left|selnodes|try|align_center|catch|align_right|cloneRange|tooltip|extractContent|dnbImageTypes|clipboardData|rBlockTest|DOWN|iframeDoc|sourceHeight|getTextNodesIn|redactor_btn|case|buildEnable|selectionElement|activeButtonsStates|getRangeSelectedNodes|insert_row_below|isEmpty|insert_row_above|insert_column_left|current_td|tableAddRow|tableAddColumn|com|linkShow|contOwnLine|z0|ownLine|linkAnchor|insert_table|redactor_button_disabled|linkEmail|navigator|tableDeleteHead|fontcolor|tableObserver|delete_table|BODY|syncClean|chrome|backcolor|link_insert|delete_row|userAgent|insert_column_right|add_head|delete_head|redactor_btn_right|delete_column|firstChild|FIGCAPTION|cleanTag|childNodes|setFullpageOnInit|||cleanFinish|insideOutdent|filter|buildBindKeyboard|toggle|focusSet|alignmentJustify||altKey|buildAfter|alignmentCenter|alignmentRight|cleannewLevel|alignmentLeft|Table|uuid|merge|toolbarObserveScroll|meta|toolbarFixedTarget|Column|cleanConvertProtected|cleanConverters|cleanEmpty|th|cleanSavePreCode|airShow|toolbarExternal|Row|boldTag|italicTag|buildOptions|tfoot|convertLinks|indentingStart|buildEventKeydownInsertLineBreak|cleanEncodeEntities|convertVideoLinks|convertDivs|www|pasteClipboardMozilla|formatLinkify|parents|templateVars|ctrlKey|clipboardUploadUrl|tabSpaces|indentingOutdent|plugins|RedactorPlugins|inlineRemoveFormatReplace|cleanRemoveEmptyTags|iframeLoad|SPAN|inlineEachNodes|iframeAddCss|blockLevelElements|iframePage|redactor_air|sourceOld|insertLineBreak|ftp|iframeAppend|address|parseHTML|indentingIndent|pasteHTML|modalOverlay|drag|10px|padding|redactor_modal_overlay|redactor_modal|redactor_modal_close|cursor|ESC|lineHeight|zIndex|resizer|editter|draguploadInit|delete|DELETE|hover|pageY|pageX|imageRemove|imageUploadError|saveModalScroll|overflow|modalSaveBodyOveflow|modalSetTab|droparea|redactor_insert_video_area|FormData|striped|redactor_image_box|filename|URL|choose|save|redactor_file_alt|redactor_form_image_align|contentType|redactor_filename|imageCallback|POST|redactor_link_anchor|anchor|dragUploadAjax|redactor_table_rows|dataTransfer|redactor_tab3|redactor_link_mailto|alt|link_new_tab|redactor_tab2|Email|mousedown|edit|uploadSubmit|2000px|contentWindow|trigger|submit|uploadInit|fileCallback|status|redactor_table_columns|columns|send|rows|inserthorizontalrule|redactor_insert_table_btn|video_html_code|modal_video||formattingPre|modal_table|redactor_insert_link_btn|center|fadeIn|cleanReConvertProtected|redactor_link_mailto_text|fileShow|load|redactor_link_anchor_text|Edit|image_position||setRequestHeader|setEditor|buttonActiveVisual|buttonInactiveVisual|overlay|redactor_btn_html|dropdownBuild|redactor_dropdown_box_|modal|dropdownShow|redactor_dropdown|setCodeIframe|dropalternative|buttonActiveToggle|link_edit|redactor_dropdown_link|buttonInactiveAll|vimeo|List|redactor_insert_video_btn|uploadForm|double|uploadFrame|header1|xhr|transparent|quote|header2|image_web_link|500|quot|cleanUnverified|langs|cleanHtml|redactorSaveBtn|_delete|cleanlineAfter|cleanlineBefore|lang|ajax|paragraph|modal_image|redactor_upload_btn|modal_link|removeEmptyTags|random|99999|Color|buffer_|atext|floor|newLevel|cleanReplacer|checkbox|redactor_link_url_text|header3|frameborder|redactor_tab1|fieldset|header4|map|area|header5|redactor_image_delete_btn|dropdownHide|s3executeOnSignedUrl|s3uploadFile|iframeCreate|write|the|dragUpload|buildPlugins|focusCallback|iframeStart|textareaKeydownCallback|close|clearInterval|Upload|element_action|placeholderFocus|placeholderRemove|Align|initToolbar|s3handleFileSelect|documentElement|to|blur|blurCallback|buildEventKeydown|s3createCORSRequest|LEFT_WIN|metaKey|clipboardFilePaste|items|cleanup|buildEventClipboardUpload|originalEvent|s3uploadToS3|XDomainRequest|readyState|buildEventDrop|8203|buildEventKeyup|Array|XMLHttpRequest|onload|TAB|tabFocus|placeholderRemoveFromCode||visible|contentDocument|uploadLoaded|outerHeight|toolbarFixedTopOffset|buildStart|or_choose||buttonsAdd|buildMobile|formattingTags|mobile|visibility|toolbar_fixed_box|tidyHtml||draggable|buildEventPaste|getCodeIframe|airBindHide|linkNofollow|airEnable|nofollow|innerWidth|buttonsCustom|buttonSource|Left|Head|redactor_editor_wym|wym|Right|Image|Code|Video|Link|buildAddClasses|unbind|formatEmpty|toolbarBuild|buildContent|airButtons|buildFromTextarea|buildFromElement|drop_file_here|indenting|setInterval|returnValue|placeholderStart|bufferUndo|bufferRedo|imageEdit|pop|clipboard|insertNodeToCaretPositionFromPoint|innerText|isEndOfElement|pasteClipboardUploadMozilla|pasteClipboardUpload|observeTables|linkObserver|selectionWrap|formatChangeTag|selectionRemove|endOffset|gif|opacity|H5|18px|createDocumentFragment||||5px|H6||pasteClean|pastePlainText|backgroundColor|internal|replaceLineBreak|000|createTextRange|moveToPoint|8px|last|OUTPUT|fff|DL|DD|getCaretOffset|pastePre|getCaretOffsetRange|1px|removeFromArrayByValue|DT|equals|H4|setCaret|tableAddRowAbove|tableAddRowBelow|tableAddColumnLeft|tableAddColumnRight|tableAddHead|imageSave|loaded|tableDeleteTable|tableDeleteRow|tableDeleteColumn|H1|videoShow|linkProcess|isString|fileUploadError|linkInsert|imageShow|location|videoInsert|isEmptyObject|self|imageResize|tableInsert|u0000|u1C7F|H3|H2|draguploadOndrag|imageResizeControls|apply|selectionCreateMarker|relative|getFragmentHtml|draguploadOndragleave|uploadProgress||getSelectionText|cloneContents|inside|tableShow|nextSibling|nextNode|getSelectedNodes|mousemove|unshift|caretRangeFromPoint|0px|HTML|modalTemplatesInit|modal_file|imageCallbackLink|aside|focusEnd|article|unwrap|inlineUnwrapSpan|formatQuote|formatblock|jpeg|modal_image_edit|inlineSetMethods|BR|deleteContents|png|caretPositionFromPoint|setStartAfter|clientY|clientX|imageThumbClick|Quote|inlineRemoveClass|blockSetClass|blockRemoveClass|dragstart|Chrome|300|536|getAsFile|compatible|FileReader|readAsDataURL|inlineSetStyle|PUT|inlineSetClass|getSelectionHtml|inlineRemoveStyle|blockSetStyle|enableInlineTableEditing|EndToEnd|blockRemoveAttr|cellIndex|imageDelete||iPod|BlackBerry|redactor_box|TEXTAREA|blockSetAttr|redactor_|blockRemoveStyle|enableObjectResizing|hasChildNodes|watch||Loading|iPhone|min|VERSION|total|Horizontal|charset|attributes|plain|user|defined|decodeURIComponent|cite|onreadystatechange|Justify|overrideMimeType|small|frames|Bold|removeMarkers|GET|nodeName|redactorUploadFileForm|responseText|charCodeAt|TH|rv|such|commonAncestorContainer|redactorInsertImageForm|undo|dataType|redo|||||||use|withCredentials|strict|isCollapsed|u00a0|3px|9px|inlineSetAttr|13px|inlineRemoveAttr|cache|redactor_format_h4|host|redactor_format_h5|getJSON|redactor_format_h3|redactor_format_h1|460|redactor_format_h2|Open||strikethrough|separator_drop1|JustifyFull|Normal|redactorUploadFile|Rule|Anchor|bull|Deleted|duplicate|redactor_format_pre|META|LEFT|Underline|Alignment|CTRL|redactor_separator|optional|Name|tab|dropdowns|applet|xn|redactor_format_blockquote|Object|youtu|sourceWidth|processData|redactorUploadForm|thumb|jpg|redactor_image_edit_src|about|blank|frameset|getToolbar|getEditor|getBox|getIframe|Formatting|380|onprogress|onerror|sup|Content|JustifyRight|syncBefore||syncAfter||ltr|getObject|removeData|setEndPoint|INPUT|redactor_image_box_select|600||separator_drop3|separator_drop2|Android|JustifyCenter||610|read|Type|Callback|destroy|noscript|amz|public|acl|JustifyLeft|sub|4px|Back|math|Indent|youtube|Cancel|pasteAfter|stopPropagation|u200B|pasteBefore|fake|border|u200D|times|Outdent|colgroup|col|caption|handle|Save|hgroup|Below|focusNode|result|redactor_dropareabox|1005|nav|slow|slice|redactor_dropalternative|redactor_separator_drop|bottom|redactor_dropdown_|move|collapseToStart|legend|Above|nw|replaced|comment|ondrop|160px|arguments|docs|player|concat|guid|UL|sid|switch|Unordered|MsoListParagraphCxSpFirst|OL|MsoListParagraphCxSpLast|Ordered|uFEFF|redactorInsertVideoForm|default|dragleave|buttonRemove|buttonAddSeparatorBefore|dragover|buttonRemoveSeparatorAfter|buttonAddSeparatorAfter|buttonAddSeparator|buttonChangeIcon|buttonRemoveIcon|solid|buttonRemoveSeparatorBefore|buttonSetRight|buttonAddBefore|ajaxSettings|insertText|buttonAddAfter|buttonAddFirst|buttonSetLeft|buttonAdd|Unlink|300px|download|File|outline|Download|Choose|cloneNode|Or|removeFormat|superscript|Embed|Web|No|redactor_droparea|rgba|Text|subscript|dashed|web|jQuery|Drop|isArray|alert|offsetNode|stylesheet|detach|restoreSelection|ajaxSetup|removeChild|ownerDocument|defaultView|block|here|inlineFormat|saveSelection|failed|inline|Center|redactorInsertLinkForm|inlineRemoveFormat|hasOwnProperty|unselectable|ns|setEndAfter|Font|Rows|Italic|1000|pointer|summary|menu|fast|details|redactor_air_|redactor_toolbar_|redactor_toolbar|scroll|None|encodeURIComponent|selectionAll|string|startOffset|addEventListener|figure|Position|Title|281|innerHeight|extractContents|weight|allowfullscreen|escape|Columns|insertDoubleLineBreak|preview|toUpperCase|figcaption'.split('|'),0,{})) From b542a9a0dfac5218f8a25bc462fee7ab4bf3f93f Mon Sep 17 00:00:00 2001 From: Jason Meller Date: Mon, 9 Dec 2013 12:50:43 -0500 Subject: [PATCH 3/3] Update redactor to version 9.1.7 --- .../javascripts/redactor-rails/redactor.js | 1622 ++++++++++------- .../redactor-rails/redactor.min.js | 14 +- .../redactor-rails/css/redactor-iframe.css | 4 +- .../redactor-rails/css/redactor.css | 48 +- 4 files changed, 971 insertions(+), 717 deletions(-) diff --git a/vendor/assets/javascripts/redactor-rails/redactor.js b/vendor/assets/javascripts/redactor-rails/redactor.js index cfd6d045..e628999e 100755 --- a/vendor/assets/javascripts/redactor-rails/redactor.js +++ b/vendor/assets/javascripts/redactor-rails/redactor.js @@ -1,6 +1,6 @@ /* - Redactor v9.1.4 - Updated: Sep 10, 2013 + Redactor v9.1.7 + Updated: Nov 5, 2013 http://imperavi.com/redactor/ @@ -13,7 +13,6 @@ (function($) { var uuid = 0; - var rtePaste = false; "use strict"; @@ -72,7 +71,7 @@ } $.Redactor = Redactor; - $.Redactor.VERSION = '9.1.4'; + $.Redactor.VERSION = '9.1.7'; $.Redactor.opts = { // settings @@ -94,12 +93,14 @@ pastePlainText: false, removeEmptyTags: true, templateVars: false, + xhtml: false, visual: true, focus: false, tabindex: false, autoresize: true, minHeight: false, + maxHeight: false, shortcuts: true, autosave: false, // false or url @@ -107,16 +108,19 @@ plugins: false, // array - linkAnchor: false, - linkEmail: false, + linkAnchor: true, + linkEmail: true, linkProtocol: 'http://', linkNofollow: false, + linkSize: 50, imageFloatMargin: '10px', imageGetJson: false, // url (ex. /folder/images.json ) or false imageUpload: false, // url + imageUploadParam: 'file', // input name fileUpload: false, // url + fileUploadParam: 'file', // input name clipboardUpload: true, // or false clipboardUploadUrl: false, // url dragUpload: true, // false @@ -298,6 +302,7 @@ init: function(el, options) { + this.rtePaste = false; this.$element = this.$source = $(el); this.uuid = uuid++; @@ -343,7 +348,18 @@ // setup formatting permissions if (this.opts.linebreaks === false) { - if (this.opts.allowedTags !== false && $.inArray('p', this.opts.allowedTags) === '-1') this.opts.allowedTags.push('p'); + if (this.opts.allowedTags !== false) + { + var arrSearch = ['strong', 'em', 'del']; + var arrAdd = ['b', 'i', 'strike']; + + if ($.inArray('p', this.opts.allowedTags) === '-1') this.opts.allowedTags.push('p'); + + for (i in arrSearch) + { + if ($.inArray(arrSearch[i], this.opts.allowedTags) != '-1') this.opts.allowedTags.push(arrAdd[i]); + } + } if (this.opts.deniedTags !== false) { @@ -365,7 +381,7 @@ this.buildStart(); }, - initToolbar: function(lang) + toolbarInit: function(lang) { return { html: @@ -680,7 +696,7 @@ if (this.opts.air) { - $('.redactor_air').remove(); + $('#redactor_air_' + this.uuid).remove(); } }, @@ -703,10 +719,9 @@ }, getToolbar: function() { - return this.$toolbar; + return (this.$toolbar) ? this.$toolbar : false; }, - // CODE GET & SET get: function() { @@ -736,7 +751,7 @@ html = this.cleanSavePreCode(html); html = this.cleanStripTags(html); html = this.cleanConvertProtected(html); - html = this.cleanConvertInlineTags(html); + html = this.cleanConvertInlineTags(html, true); if (this.opts.linebreaks === false) html = this.cleanConverters(html); else html = html.replace(/([\w\W]*?)<\/p>/gi, '$2
'); @@ -745,6 +760,10 @@ html = this.cleanEmpty(html); this.$editor.html(html); + + // set no editable + this.setNonEditable(); + this.setSpansVerified(); this.sync(); }, setCodeIframe: function(html) @@ -766,6 +785,9 @@ this.$editor = this.$frame.contents().find('body').attr({ 'contenteditable': true, 'dir': this.opts.direction }); } + // set no editable + this.setNonEditable(); + this.setSpansVerified(); this.sync(); }, @@ -777,8 +799,41 @@ // set code this.$editor.html(html); + + // set no editable + this.setNonEditable(); + this.setSpansVerified(); this.sync(); }, + setSpansVerified: function() + { + var spans = this.$editor.find('span'); + var replacementTag = 'inline'; + + $.each(spans, function() { + var outer = this.outerHTML; + + // Replace opening tag + var regex = new RegExp('<' + this.tagName, 'i'); + var newTag = outer.replace(regex, '<' + replacementTag); + + // Replace closing tag + regex = new RegExp('/, ''); + return html.replace(/<\/span>/, ''); + }, + setNonEditable: function() + { + this.$editor.find('.noneditable').attr('contenteditable', false); + }, // SYNC sync: function() @@ -791,7 +846,7 @@ else html = this.$editor.html(); html = this.syncClean(html); - html = this.cleanRemoveSpaces(html); + //html = this.cleanRemoveSpaces(html); html = this.cleanRemoveEmptyTags(html); // fix second level up ul, ol @@ -799,8 +854,16 @@ if ($.trim(html) === '
') html = ''; - if (html !== '' && this.opts.tidyHtml) html = this.cleanHtml(html); - html = html.replace(/
/gi, '
'); + // xhtml + if (this.opts.xhtml) + { + var xhtmlTags = ['br', 'hr', 'img', 'link', 'input', 'meta']; + $.each(xhtmlTags, function(i,s) + { + html = html.replace(new RegExp('<' + s + '(.*?[^\/$]?)>', 'gi'), '<' + s + '$1 />'); + }); + + } // before callback html = this.callback('syncBefore', false, html); @@ -841,6 +904,9 @@ html = html.replace('', '?>'); + // revert no editable + html = html.replace(/<(.*?)class="noeditable"(.*?) contenteditable="false"(.*?)>/gi, '<$1class="noeditable"$2$3>'); + html = html.replace(/ data-tagblock=""/gi, ''); html = html.replace(/\n?<\/(P|H[1-6]|LI|ADDRESS|SECTION|HEADER|FOOTER|ASIDE|ARTICLE)>/gi, ''); @@ -849,20 +915,16 @@ html = html.replace(/(.*?)<\/span>/i, ''); html = html.replace(/(.*?)<\/span>/i, ''); + // remove font + html = html.replace(/([\w\W]*?)<\/font>/gi, '$2'); + // remove spans - html = html.replace(/([\w\W]*?)<\/span>/gi, '$1'); - html = html.replace(/([\w\W]*?)<\/span>/gi, '$3'); - html = html.replace(/([\w\W]*?)<\/span>/gi, '$3' ); - html = html.replace(/([\w\W]*?)<\/span>/gi, '$1'); - html = html.replace(/([\w\W]*?)<\/span>/gi, ''); - html = html.replace(/([\w\W]*?)<\/span>/gi, '$1'); - html = html.replace(/([\w\W]*?)<\/span>/gi, '$3'); - html = html.replace(/([\w\W]*?)<\/span>/gi, '$3' ); - html = html.replace(/([\w\W]*?)<\/span>/gi, '$1'); + html = html.replace(/([\w\W]*?)<\/span>/gi, '$2'); + html = html.replace(/([\w\W]*?)<\/inline>/gi, '$2'); + html = html.replace(/([\w\W]*?)<\/span>/gi, ''); // amp fix - html = html.replace(/;amp;/gi, ';'); - + html = html.replace(/&/gi, '&'); html = this.cleanReConvertProtected(html); @@ -972,6 +1034,7 @@ // options if (this.opts.tabindex) $source.attr('tabindex', this.opts.tabindex); if (this.opts.minHeight) $source.css('min-height', this.opts.minHeight + 'px'); + if (this.opts.maxHeight) $source.css('max-height', this.opts.maxHeight + 'px'); if (this.opts.wym) this.$editor.addClass('redactor_editor_wym'); if (!this.opts.autoresize) $source.css('height', this.sourceHeight); }, @@ -982,7 +1045,7 @@ // load toolbar if (this.opts.toolbar) { - this.opts.toolbar = this.initToolbar(this.opts.curLang); + this.opts.toolbar = this.toolbarInit(this.opts.curLang); this.toolbarBuild(); } @@ -1029,7 +1092,7 @@ }, buildBindKeyboard: function() { - if (this.opts.dragUpload) + if (this.opts.dragUpload && this.opts.imageUpload !== false) { this.$editor.on('drop.redactor', $.proxy(this.buildEventDrop, this)); } @@ -1038,8 +1101,6 @@ this.$editor.on('keydown.redactor', $.proxy(this.buildEventKeydown, this)); this.$editor.on('keyup.redactor', $.proxy(this.buildEventKeyup, this)); - - // textarea callback if ($.isFunction(this.opts.textareaKeydownCallback)) { @@ -1052,22 +1113,27 @@ this.$editor.on('focus.redactor', $.proxy(this.opts.focusCallback, this)); } + var clickedElement; + $(document).mousedown(function(e) { + clickedElement = $(e.target); + }); + // blur callback - this.$editor.on('blur.redactor', $.proxy(function() + this.$editor.on('blur.redactor', $.proxy(function(e) { - this.selectall = false; + if (!$(clickedElement).hasClass('redactor_toolbar') && $(clickedElement).parents('.redactor_toolbar').size() == 0) + { + this.selectall = false; + if ($.isFunction(this.opts.blurCallback)) this.callback('blur', e); + } }, this)); - if ($.isFunction(this.opts.blurCallback)) - { - this.$editor.on('blur.redactor', $.proxy(this.opts.blurCallback, this)); - } }, buildEventDrop: function(e) { e = e.originalEvent || e; - if (window.FormData === undefined) return true; + if (window.FormData === undefined || !e.dataTransfer) return true; var length = e.dataTransfer.files.length; if (length == 0) return true; @@ -1086,7 +1152,14 @@ var progress = $('

'); $(document.body).append(progress); - this.dragUploadAjax(this.opts.imageUpload, file, true, progress, e); + if (this.opts.s3 === false) + { + this.dragUploadAjax(this.opts.imageUpload, file, true, progress, e, this.opts.imageUploadParam); + } + else + { + this.s3uploadFile(file); + } }, buildEventPaste: function(e) @@ -1108,7 +1181,7 @@ if (this.opts.cleanup) { - rtePaste = true; + this.rtePaste = true; this.selectionSave(); @@ -1169,7 +1242,7 @@ }, buildEventKeydown: function(e) { - if (rtePaste) return false; + if (this.rtePaste) return false; var key = e.which; var ctrl = e.ctrlKey || e.metaKey; @@ -1192,8 +1265,17 @@ // down if (key === this.keyCode.DOWN) { - if (parent && $(parent).get(0).tagName === 'BLOCKQUOTE') this.insertAfterLastElement(parent); - if (current && $(current).get(0).tagName === 'BLOCKQUOTE') this.insertAfterLastElement(current); + if (parent && $(parent)[0].tagName === 'BLOCKQUOTE') this.insertAfterLastElement(parent); + if (current && $(current)[0].tagName === 'BLOCKQUOTE') this.insertAfterLastElement(current); + + if (parent && $(parent)[0].tagName === 'P' && $(parent).parent()[0].tagName == 'BLOCKQUOTE') + { + this.insertAfterLastElement(parent, $(parent).parent()[0]); + } + if (current && $(current)[0].tagName === 'P' && parent && $(parent)[0].tagName == 'BLOCKQUOTE') + { + this.insertAfterLastElement(current, parent); + } } // shortcuts setup @@ -1224,7 +1306,7 @@ if (key == this.keyCode.ENTER && !e.shiftKey && !e.ctrlKey && !e.metaKey ) { // In ie, opera in the tables are created paragraphs, fix it. - if (parent.nodeType == 1 && (parent.tagName == 'TD' || parent.tagName == 'TH')) + if (this.browser('msie') && (parent.nodeType == 1 && (parent.tagName == 'TD' || parent.tagName == 'TH'))) { e.preventDefault(); this.bufferSet(); @@ -1234,21 +1316,7 @@ } // pre - if (pre === true) - { - e.preventDefault(); - this.bufferSet(); - var html = $(current).parent().text(); - this.insertNode(document.createTextNode('\n')); - if (html.search(/\s$/) == -1) - { - this.insertNode(document.createTextNode('\n')); - } - - this.sync(); - this.callback('enter', e); - return false; - } + if (pre === true) return this.buildEventKeydownPre(e, current); else { if (!this.opts.linebreaks) @@ -1328,57 +1396,75 @@ } // tab - if (key === this.keyCode.TAB && this.opts.shortcuts ) + if (key === this.keyCode.TAB && this.opts.shortcuts) return this.buildEventKeydownTab(e, pre); + + // delete zero-width space before the removing + if (key === this.keyCode.BACKSPACE) this.buildEventKeydownBackspace(current); + + }, + buildEventKeydownPre: function(e, current) + { + e.preventDefault(); + this.bufferSet(); + var html = $(current).parent().text(); + this.insertNode(document.createTextNode('\n')); + if (html.search(/\s$/) == -1) { - if (!this.opts.tabFocus) return true; - if (this.isEmpty(this.get())) return true; + this.insertNode(document.createTextNode('\n')); + } - e.preventDefault(); + this.sync(); + this.callback('enter', e); + return false; + }, + buildEventKeydownTab: function(e, pre) + { + if (!this.opts.tabFocus) return true; + if (this.isEmpty(this.get())) return true; - if (pre === true && !e.shiftKey) - { - this.bufferSet(); - this.insertNode(document.createTextNode('\t')); - this.sync(); - return false; + e.preventDefault(); - } - else if (this.opts.tabSpaces !== false) - { - this.bufferSet(); - this.insertNode(document.createTextNode(Array(this.opts.tabSpaces + 1).join('\u00a0'))); - this.sync(); - return false; - } - else - { - if (!e.shiftKey) this.indentingIndent(); - else this.indentingOutdent(); - } + if (pre === true && !e.shiftKey) + { + this.bufferSet(); + this.insertNode(document.createTextNode('\t')); + this.sync(); + return false; + } + else if (this.opts.tabSpaces !== false) + { + this.bufferSet(); + this.insertNode(document.createTextNode(Array(this.opts.tabSpaces + 1).join('\u00a0'))); + this.sync(); return false; } + else + { + if (!e.shiftKey) this.indentingIndent(); + else this.indentingOutdent(); + } - // delete zero-width space before the removing - if (key === this.keyCode.BACKSPACE) + return false; + }, + buildEventKeydownBackspace: function(current) + { + if (typeof current.tagName !== 'undefined' && /^(H[1-6])$/i.test(current.tagName)) { - if (typeof current.tagName !== 'undefined' && /^(H[1-6])$/i.test(current.tagName)) - { - var node; - if (this.opts.linebreaks === false) node = $('

' + this.opts.invisibleSpace + '

'); - else node = $('
' + this.opts.invisibleSpace); + var node; + if (this.opts.linebreaks === false) node = $('

' + this.opts.invisibleSpace + '

'); + else node = $('
' + this.opts.invisibleSpace); - $(current).replaceWith(node); - this.selectionStart(node); - } + $(current).replaceWith(node); + this.selectionStart(node); + } - if (typeof current.nodeValue !== 'undefined' && current.nodeValue !== null) + if (typeof current.nodeValue !== 'undefined' && current.nodeValue !== null) + { + //var value = $.trim(current.nodeValue.replace(/[^\u0000-\u1C7F]/g, '')); + if (current.remove && current.nodeType === 3 && current.nodeValue.match(/[^/\u200B]/g) == null) { - var value = $.trim(current.nodeValue.replace(/[^\u0000-\u1C7F]/g, '')); - if (current.remove && current.nodeType === 3 && current.nodeValue.charCodeAt(0) == 8203 && value == '') - { - current.remove(); - } + current.remove(); } } }, @@ -1392,7 +1478,7 @@ }, buildEventKeyup: function(e) { - if (rtePaste) return false; + if (this.rtePaste) return false; var key = e.which; var parent = this.getParent(); @@ -1414,17 +1500,11 @@ // convert links if ((this.opts.convertLinks || this.opts.convertImageLinks || this.opts.convertVideoLinks) && key === this.keyCode.ENTER) { - this.formatLinkify(this.opts.linkProtocol, this.opts.convertLinks, this.opts.convertImageLinks, this.opts.convertVideoLinks); - - setTimeout($.proxy(function() - { - if (this.opts.convertImageLinks) this.observeImages(); - if (this.opts.observeLinks) this.observeLinks(); - }, this), 5); + this.buildEventKeyupConverters(); } // if empty - if (this.opts.linebreaks === false && (key === this.keyCode.DELETE || key === this.keyCode.BACKSPACE)) + if (key === this.keyCode.DELETE || key === this.keyCode.BACKSPACE) { return this.formatEmpty(e); } @@ -1432,6 +1512,16 @@ this.callback('keyup', e); this.sync(); }, + buildEventKeyupConverters: function() + { + this.formatLinkify(this.opts.linkProtocol, this.opts.convertLinks, this.opts.convertImageLinks, this.opts.convertVideoLinks, this.opts.linkSize); + + setTimeout($.proxy(function() + { + if (this.opts.convertImageLinks) this.observeImages(); + if (this.opts.observeLinks) this.observeLinks(); + }, this), 5); + }, buildPlugins: function() { if (!this.opts.plugins ) return; @@ -1576,6 +1666,10 @@ // place the cursor inside emptyHtml this.selectionStart(this.$editor.children()[0]); } + else + { + this.focus(); + } this.sync(); }, @@ -1657,89 +1751,95 @@ sel.addRange(range); }, - // TOGGLE toggle: function(direct) { - var html; - if (this.opts.visual) + if (this.opts.visual) this.toggleCode(direct); + else this.toggleVisual(); + }, + toggleVisual: function() + { + var html = this.$source.hide().val(); + + if (typeof this.modified !== 'undefined') { - if (direct !== false) this.selectionSave(); + this.modified = this.cleanRemoveSpaces(this.modified, false) !== this.cleanRemoveSpaces(html, false); + } - var height = null; - if (this.opts.iframe) - { - height = this.$frame.height(); - if (this.opts.fullpage) this.$editor.removeAttr('contenteditable'); - this.$frame.hide(); - } + if (this.modified) + { + // don't remove the iframe even if cleared all. + if (this.opts.fullpage && html === '') this.setFullpageOnInit(html); else { - height = this.$editor.innerHeight(); - this.$editor.hide(); + this.set(html); + if (this.opts.fullpage) this.buildBindKeyboard(); } + } - html = this.$source.val(); - this.modified = html; + if (this.opts.iframe) this.$frame.show(); + else this.$editor.show(); - this.$source.height(height).show().focus(); + if (this.opts.fullpage) this.$editor.attr('contenteditable', true ); - // textarea indenting - this.$source.on('keydown.redactor-textarea-indenting', function (e) - { - if (e.keyCode === 9) - { - var $el = $(this); - var start = $el.get(0).selectionStart; - $el.val($el.val().substring(0, start) + "\t" + $el.val().substring($el.get(0).selectionEnd)); - $el.get(0).selectionStart = $el.get(0).selectionEnd = start + 1; - return false; - } - }); + this.$source.off('keydown.redactor-textarea-indenting'); + + this.$editor.focus(); + this.selectionRestore(); - this.buttonInactiveVisual(); - this.buttonActive('html'); - this.opts.visual = false; + this.observeStart(); + this.buttonActiveVisual(); + this.buttonInactive('html'); + this.opts.visual = true; + }, + toggleCode: function(direct) + { + if (direct !== false) this.selectionSave(); + var height = null; + if (this.opts.iframe) + { + height = this.$frame.height(); + if (this.opts.fullpage) this.$editor.removeAttr('contenteditable'); + this.$frame.hide(); } else { - html = this.$source.hide().val(); - - if (typeof this.modified !== 'undefined') - { - this.modified = this.cleanRemoveSpaces(this.modified, false) !== this.cleanRemoveSpaces(html, false); - } + height = this.$editor.innerHeight(); + this.$editor.hide(); + } - if (this.modified) - { - // don't remove the iframe even if cleared all. - if (this.opts.fullpage && html === '') this.setFullpageOnInit(html); - else - { - this.set(html); - if (this.opts.fullpage) this.buildBindKeyboard(); - } - } + var html = this.$source.val(); - if (this.opts.iframe) this.$frame.show(); - else this.$editor.show(); + // tidy html + if (html !== '' && this.opts.tidyHtml) + { + this.$source.val(this.cleanHtml(html)); + } - if (this.opts.fullpage ) this.$editor.attr('contenteditable', true ); + this.modified = html; - this.$source.off('keydown.redactor-textarea-indenting'); + this.$source.height(height).show().focus(); - this.$editor.focus(); - this.selectionRestore(); + // textarea indenting + this.$source.on('keydown.redactor-textarea-indenting', this.textareaIndenting); - this.observeStart(); - this.buttonActiveVisual(); - this.buttonInactive('html'); - this.opts.visual = true; + this.buttonInactiveVisual(); + this.buttonActive('html'); + this.opts.visual = false; + }, + textareaIndenting: function(e) + { + if (e.keyCode === 9) + { + var $el = $(this); + var start = $el.get(0).selectionStart; + $el.val($el.val().substring(0, start) + "\t" + $el.val().substring($el.get(0).selectionEnd)); + $el.get(0).selectionStart = $el.get(0).selectionEnd = start + 1; + return false; } }, - // AUTOSAVE autosave: function() { @@ -1904,7 +2004,6 @@ var text = this.getSelectionText(); if (e.type === 'mouseup' && text != '') this.airShow(e); - if (e.type === 'keyup' && e.shiftKey && text != '') { var $focusElem = $(this.getElement(this.getSelection().focusNode)), offset = $focusElem.offset(); @@ -2113,7 +2212,7 @@ // BUTTONS buttonBuild: function(btnName, btnObject) { - var $button = $(''); + var $button = $(''); $button.on('click', $.proxy(function(e) { @@ -2369,128 +2468,138 @@ return; } - // stop formatting pre - if (this.currentOrParentIs('PRE') && !this.opts.formattingPre) - { - return false; - } - - if (cmd === 'insertunorderedlist' || cmd === 'insertorderedlist') - { - this.bufferSet(); + // Stop formatting pre + if (this.currentOrParentIs('PRE') && !this.opts.formattingPre) return false; - var parent = this.getParent(); - var $list = $(parent).closest('ol, ul'); - var remove = false; + // Lists + if (cmd === 'insertunorderedlist' || cmd === 'insertorderedlist') return this.execLists(cmd, param); - if ($list.length) - { - remove = true; - var listTag = $list[0].tagName; - if ((cmd === 'insertunorderedlist' && listTag === 'OL') - || (cmd === 'insertorderedlist' && listTag === 'UL')) - { - remove = false; - } - } + // Unlink + if (cmd === 'unlink') return this.execUnlink(cmd, param); - this.selectionSave(); + // Usual exec + this.exec(cmd, param, sync); - // remove lists - if (remove) - { - var nodes = this.getNodes(); - var elems = this.getBlocks(nodes); + // Line + if (cmd === 'inserthorizontalrule') this.$editor.find('hr').removeAttr('id'); - if (typeof nodes[0] != 'undefined' && nodes.length > 1 && nodes[0].nodeType == 3) - { - // fix the adding the first li to the array - elems.unshift(this.getBlock()); - } + }, + execUnlink: function(cmd, param) + { + this.bufferSet(); - var data = '', replaced = ''; - $.each(elems, $.proxy(function(i,s) - { - if (s.tagName == 'LI') - { - var $s = $(s); - var cloned = $s.clone(); - cloned.find('ul', 'ol').remove(); + var link = this.currentOrParentIs('A'); + if (link) + { + $(link).replaceWith($(link).text()); - if (this.opts.linebreaks === false) data += this.outerHtml($('

').append(cloned.contents())); - else data += cloned.html() + '
'; + this.sync(); + this.callback('execCommand', cmd, param); + return; + } + }, + execLists: function(cmd, param) + { + this.bufferSet(); - if (i == 0) - { - $s.addClass('redactor-replaced').empty(); - replaced = this.outerHtml($s); - } - else $s.remove(); - } + var parent = this.getParent(); + var $list = $(parent).closest('ol, ul'); + var remove = false; - }, this)); + if ($list.length) + { + remove = true; + var listTag = $list[0].tagName; + if ((cmd === 'insertunorderedlist' && listTag === 'OL') + || (cmd === 'insertorderedlist' && listTag === 'UL')) + { + remove = false; + } + } - html = this.$editor.html().replace(replaced, '' + data + '<' + listTag + '>'); + this.selectionSave(); - this.$editor.html(html); - this.$editor.find(listTag + ':empty').remove(); + // remove lists + if (remove) + { + var nodes = this.getNodes(); + var elems = this.getBlocks(nodes); + if (typeof nodes[0] != 'undefined' && nodes.length > 1 && nodes[0].nodeType == 3) + { + // fix the adding the first li to the array + elems.unshift(this.getBlock()); } - // insert lists - else + var data = '', replaced = ''; + $.each(elems, $.proxy(function(i,s) { - this.document.execCommand(cmd); - - var parent = this.getParent(); - var $list = $(parent).closest('ol, ul'); - - if ($list.length) + if (s.tagName == 'LI') { - if ((this.browser('msie') || this.browser('mozilla')) && parent.tagName !== 'LI') - { - $(parent).replaceWith($(parent).html()); - } + var $s = $(s); + var cloned = $s.clone(); + cloned.find('ul', 'ol').remove(); - var $listParent = $list.parent(); - if (this.isParentRedactor($listParent) && this.nodeTestBlocks($listParent[0])) + if (this.opts.linebreaks === false) data += this.outerHtml($('

').append(cloned.contents())); + else data += cloned.html() + '
'; + + if (i == 0) { - $listParent.replaceWith($listParent.contents()); + $s.addClass('redactor-replaced').empty(); + replaced = this.outerHtml($s); } + else $s.remove(); } - if (this.browser('mozilla')) this.$editor.focus(); + }, this)); - } + html = this.$editor.html().replace(replaced, '' + data + '<' + listTag + '>'); - this.selectionRestore(); + this.$editor.html(html); + this.$editor.find(listTag + ':empty').remove(); - this.sync(); - this.callback('execCommand', cmd, param); - return; } - if (cmd === 'unlink') + // insert lists + else { - this.bufferSet(); + var firstParent = this.getParent(); + + this.document.execCommand(cmd); + + var parent = this.getParent(); + var $list = $(parent).closest('ol, ul'); - var link = this.currentOrParentIs('A'); - if (link) + if (firstParent && firstParent.tagName == 'TD') { - $(link).replaceWith($(link).text()); + $list.wrapAll(''); + } - this.sync(); - this.callback('execCommand', cmd, param); - return; + + + if ($list.length) + { + if ((this.browser('msie') || this.browser('mozilla')) && parent.tagName !== 'LI') + { + $(parent).replaceWith($(parent).html()); + } + + var $listParent = $list.parent(); + if (this.isParentRedactor($listParent) && this.nodeTestBlocks($listParent[0])) + { + $listParent.replaceWith($listParent.contents()); + } } - } - this.exec(cmd, param, sync); + if (this.browser('mozilla')) this.$editor.focus(); - if (cmd === 'inserthorizontalrule') - { - this.$editor.find('hr').removeAttr('id'); } + + this.selectionRestore(); + + this.sync(); + this.callback('execCommand', cmd, param); + return; }, // INDENTING @@ -2512,7 +2621,6 @@ this.selectionSave(); - if (block && block.tagName == 'LI') { // li @@ -2637,6 +2745,8 @@ this.selectionRestore(); } + this.sync(); + }, insideOutdent: function (li, index, elems) { @@ -2664,8 +2774,84 @@ } }, - // CLEAN - cleanEmpty: function(html) + // ALIGNMENT + alignmentLeft: function() + { + this.alignmentSet('', 'JustifyLeft'); + }, + alignmentRight: function() + { + this.alignmentSet('right', 'JustifyRight'); + }, + alignmentCenter: function() + { + this.alignmentSet('center', 'JustifyCenter'); + }, + alignmentJustify: function() + { + this.alignmentSet('justify', 'JustifyFull'); + }, + alignmentSet: function(type, cmd) + { + this.bufferSet(); + + if (this.oldIE()) + { + this.document.execCommand(cmd, false, false); + return true; + } + + this.selectionSave(); + + var block = this.getBlock(); + if (!block && this.opts.linebreaks) + { + // one element + this.exec('formatBlock', 'blockquote'); + var newblock = this.getBlock(); + var block = $('

').html($(newblock).html()); + $(newblock).replaceWith(block); + + $(block).css('text-align', type); + this.removeEmptyAttr(block, 'style'); + + if (type == '' && typeof($(block).data('tagblock')) !== 'undefined') + { + $(block).replaceWith($(block).html()); + } + } + else + { + var elements = this.getBlocks(); + $.each(elements, $.proxy(function(i, elem) + { + var $el = false; + + if ($.inArray(elem.tagName, this.opts.alignmentTags) !== -1) + { + $el = $(elem); + } + else + { + $el = $(elem).closest(this.opts.alignmentTags.toString().toLowerCase(), this.$editor[0]); + } + + if ($el) + { + $el.css('text-align', type); + this.removeEmptyAttr($el, 'style'); + } + + }, this)); + } + + this.selectionRestore(); + + this.sync(); + }, + + // CLEAN + cleanEmpty: function(html) { var ph = this.placeholderStart(html); if (ph !== false) return ph; @@ -2802,9 +2988,10 @@ html = html + "\n"; + var safes = []; var matches = html.match(/<(table|div|pre|object)(.*?)>([\w\W]*?)<\/(table|div|pre|object)>/gi); - if (matches === null) matches = []; + if (!matches) matches = []; var commentsMatches = html.match(//gi); if (commentsMatches) matches = $.merge(matches, commentsMatches); @@ -2812,10 +2999,7 @@ if (this.opts.phpTags) { var phpMatches = html.match(/([\w\W]*?)<\/section>/gi); - if (phpMatches) - { - matches = $.merge(matches, phpMatches); - } + if (phpMatches) matches = $.merge(matches, phpMatches); } if (matches) @@ -2857,18 +3041,6 @@ } } - // blockquote - if (html.search(/
([\w\W]*?)<\/blockquote>/gi), function(i,s) - { - var str = ''; - str = s.replace('

', ''); - str = str.replace('

', '
'); - html = html.replace(s, str); - }); - } - html = R('

\s*

', 'gi', ''); html = R('

([^<]+)', 'gi', "

$1

"); html = R('

\s*(]*>)\s*

', 'gi', "$1"); @@ -2900,7 +3072,7 @@ return $.trim(html); }, - cleanConvertInlineTags: function(html) + cleanConvertInlineTags: function(html, set) { var boldTag = 'strong'; if (this.opts.boldTag === 'b') boldTag = 'b'; @@ -2918,11 +3090,13 @@ if (this.opts.italicTag === 'em') html = html.replace(/([\w\W]*?)<\/i>/gi, '$1'); else html = html.replace(/([\w\W]*?)<\/em>/gi, '$1'); - html = html.replace(/([\w\W]*?)<\/strike>/gi, '$1'); - - if (!/([\w\W]*?)<\/span>/gi.test(html)) + if (set !== true) + { + html = html.replace(/([\w\W]*?)<\/strike>/gi, '$1'); + } + else { - html = html.replace(/([\w\W]*?)<\/span>/gi, '$3'); + html = html.replace(/([\w\W]*?)<\/del>/gi, '$1'); } return html; @@ -2975,21 +3149,16 @@ cleanUnverified: function() { // label, abbr, mark, meter, code, q, dfn, ins, time, kbd, var - var $elem = this.$editor.find('li, img, a, b, strong, sub, sup, i, em, u, small, strike, del, span, cite'); - $elem.not('[data-redactor="verified"]').filter('[style*="font-size"][style*="line-height"]') - .css('font-size', '') - .css('line-height', ''); - - $elem.not('[data-redactor="verified"]').filter('[style*="background-color: transparent;"][style*="line-height"]') + $elem.filter('[style*="background-color: transparent;"][style*="line-height"]') .css('background-color', '') .css('line-height', ''); - $elem.not('[data-redactor="verified"]').filter('[style*="background-color: transparent;"]') + $elem.filter('[style*="background-color: transparent;"]') .css('background-color', ''); - $elem.not('[data-redactor="verified"]').css('line-height', ''); + $elem.css('line-height', ''); $.each($elem, $.proxy(function(i,s) { @@ -3181,97 +3350,33 @@ return out; }, - // ALIGNMENT - alignmentLeft: function() - { - this.alignmentSet('', 'JustifyLeft'); - }, - alignmentRight: function() - { - this.alignmentSet('right', 'JustifyRight'); - }, - alignmentCenter: function() - { - this.alignmentSet('center', 'JustifyCenter'); - }, - alignmentJustify: function() - { - this.alignmentSet('justify', 'JustifyFull'); - }, - alignmentSet: function(type, cmd) + // FORMAT + formatEmpty: function(e) { - this.bufferSet(); - - if (this.oldIE()) - { - this.document.execCommand(cmd, false, false); - return true; - } - - this.selectionSave(); + var html = $.trim(this.$editor.html()); - var block = this.getBlock(); - if (!block && this.opts.linebreaks) + if (this.opts.linebreaks) { - // one element - this.exec('formatBlock', 'blockquote'); - var newblock = this.getBlock(); - var block = $('
').html($(newblock).html()); - $(newblock).replaceWith(block); - - $(block).css('text-align', type); - this.removeEmptyAttr(block, 'style'); - - if (type == '' && typeof($(block).data('tagblock')) !== 'undefined') + if (html == '') { - $(block).replaceWith($(block).html()); + e.preventDefault(); + this.$editor.html(''); + this.focus(); } } else { - var elements = this.getBlocks(); - $.each(elements, $.proxy(function(i, elem) - { - var $el = false; - - if ($.inArray(elem.tagName, this.opts.alignmentTags) !== -1) - { - $el = $(elem); - } - else - { - $el = $(elem).closest(this.opts.alignmentTags.toString().toLowerCase(), this.$editor[0]); - } - - if ($el) - { - $el.css('text-align', type); - this.removeEmptyAttr($el, 'style'); - } - - }, this)); - } - - this.selectionRestore(); - - this.sync(); - }, - - // FORMAT - formatEmpty: function(e) - { - var html = $.trim(this.$editor.html()); + html = html.replace(//i, ''); + var thtml = html.replace(/

\s?<\/p>/gi, ''); - html = html.replace(//i, ''); - var thtml = html.replace(/

\s?<\/p>/gi, ''); - - if (html === '' || thtml === '') - { - e.preventDefault(); + if (html === '' || thtml === '') + { + e.preventDefault(); - var node = $(this.opts.emptyHtml).get(0); - this.$editor.html(node); - this.focus(); + var node = $(this.opts.emptyHtml).get(0); + this.$editor.html(node); + this.focus(); + } } this.sync(); @@ -3287,7 +3392,26 @@ { if (node.tagName !== 'LI') { - this.formatBlock(tag, node); + var parent = $(node).parent(); + + if (tag === 'p') + { + if ((node.tagName === 'P' + && parent.size() != 0 + && parent[0].tagName === 'BLOCKQUOTE') + || + node.tagName === 'BLOCKQUOTE') + { + this.formatQuote(); + return; + } + else if (this.opts.linebreaks) return; + + } + else + { + this.formatBlock(tag, node); + } } }, this)); @@ -3348,25 +3472,109 @@ { this.bufferSet(); + // paragraphy if (this.opts.linebreaks === false) { this.selectionSave(); var blocks = this.getBlocks(); + var blockquote = false; + var blocksLen = blocks.length; if (blocks) { + var data = ''; + var replaced = ''; + var replace = false; + var paragraphsOnly = true; + + $.each(blocks, function(i,s) + { + if (s.tagName !== 'P') paragraphsOnly = false; + }); + $.each(blocks, $.proxy(function(i,s) { if (s.tagName === 'BLOCKQUOTE') { this.formatBlock('p', s, false); } + else if (s.tagName === 'P') + { + blockquote = $(s).parent(); + // from blockquote + if (blockquote[0].tagName == 'BLOCKQUOTE') + { + var count = $(blockquote).children('p').size(); + + // one + if (count == 1) + { + $(blockquote).replaceWith(s); + } + // all + else if (count == blocksLen) + { + replace = 'blockquote'; + data += this.outerHtml(s); + } + // some + else + { + replace = 'html'; + data += this.outerHtml(s); + + if (i == 0) + { + $(s).addClass('redactor-replaced').empty(); + replaced = this.outerHtml(s); + } + else $(s).remove(); + } + } + // to blockquote + else + { + if (paragraphsOnly === false || blocks.length == 1) + { + this.formatBlock('blockquote', s, false); + } + else + { + replace = 'paragraphs'; + data += this.outerHtml(s); + } + } + + } else if (s.tagName !== 'LI') { this.formatBlock('blockquote', s, false); } }, this)); + + if (replace) + { + if (replace == 'paragraphs') + { + $(blocks[0]).replaceWith('

' + data + '
'); + $(blocks).remove(); + } + else if (replace == 'blockquote') + { + $(blockquote).replaceWith(data); + } + else if (replace == 'html') + { + var html = this.$editor.html().replace(replaced, '
' + data + '
'); + + this.$editor.html(html); + this.$editor.find('blockquote').each(function() + { + if ($.trim($(this).html()) == '') $(this).remove(); + }) + } + } } this.selectionRestore(); @@ -3379,9 +3587,34 @@ { this.selectionSave(); - $(block).replaceWith($(block).html() + '
'); + var html = $.trim($(block).html()); + var selection = $.trim(this.getSelectionHtml()); + + html = html.replace(//gi, ''); + + if (html == selection) + { + $(block).replaceWith($(block).html() + '
'); + } + else + { + // replace + this.inlineFormat('tmp'); + var tmp = this.$editor.find('tmp'); + tmp.empty(); + + var newhtml = this.$editor.html().replace('', '
' + this.opts.invisibleSpace + '' + selection + '
'); + + this.$editor.html(newhtml); + tmp.remove(); + this.$editor.find('blockquote').each(function() + { + if ($.trim($(this).html()) == '') $(this).remove(); + }) + } this.selectionRestore(); + this.$editor.find('span#selection-marker-1').attr('id', false); } else { @@ -3416,8 +3649,7 @@ this.sync(); }, - - // BLOCK CLASS AND STYLE + // BLOCK blockRemoveAttr: function(attr, value) { var nodes = this.getBlocks(); @@ -3463,7 +3695,7 @@ this.sync(); }, - // INLINE CLASS AND STYLE + // INLINE inlineRemoveClass: function(className) { this.selectionSave(); @@ -3554,14 +3786,14 @@ { var parent = $(s).parent(), el; - if (parent && parent[0].tagName === 'SPAN' && parent[0].attributes.length != 0) + if (parent && parent[0].tagName === 'INLINE' && parent[0].attributes.length != 0) { el = parent; $(s).replaceWith($(s).html()); } else { - el = $('').append($(s).contents()); + el = $('').append($(s).contents()); $(s).replaceWith(el); } @@ -3585,9 +3817,9 @@ $.each(nodes, $.proxy(function(i, node) { - if (!collapsed && node.tagName !== 'SPAN') + if (!collapsed && node.tagName !== 'INLINE') { - if (node.parentNode.tagName === 'SPAN' && !$(node.parentNode).hasClass('redactor_editor')) + if (node.parentNode.tagName === 'INLINE' && !$(node.parentNode).hasClass('redactor_editor')) { node = node.parentNode; } @@ -3599,7 +3831,7 @@ }, inlineUnwrapSpan: function() { - var $spans = this.$editor.find('span[data-redactor-inlineMethods]'); + var $spans = this.$editor.find('inline'); $.each($spans, $.proxy(function(i, span) { @@ -3693,16 +3925,10 @@ html = '

' + html + '

'; } - // in the quote, we can insert text or links only -/* - if (currBlock.tagName == 'BLOCKQUOTE' && html.indexOf(' 1 && currBlock - || $html.contents().is('p, :header, ul, ol, div, table, blockquote, pre, address, section, header, footer, aside, article')) + || $html.contents().is('p, :header, ul, ol, li, div, table, td, blockquote, pre, address, section, header, footer, aside, article')) { if (this.browser('msie')) this.document.selection.createRange().pasteHTML(html); else this.document.execCommand('inserthtml', false, html); @@ -3721,6 +3947,9 @@ this.observeStart(); + // set no editable + this.setNonEditable(); + if (sync !== false) this.sync(); }, insertHtmlAdvanced: function(html, sync) @@ -3815,13 +4044,27 @@ } }, - insertAfterLastElement: function(element) + insertAfterLastElement: function(element, parent) { + if (typeof(parent) != 'undefined') element = parent; + if (this.isEndOfElement()) { - - if ($($.trim(this.$editor.html())).get(0) != $.trim(element) - && this.$editor.contents().last()[0] !== element) return false; + if (this.opts.linebreaks) + { + var contents = $('
').append($.trim(this.$editor.html())).contents(); + if (this.outerHtml(contents.last()[0]) != this.outerHtml(element)) + { + return false; + } + } + else + { + if (this.$editor.contents().last()[0] !== element) + { + return false; + } + } this.bufferSet(); @@ -3837,6 +4080,7 @@ $(element).after(node); $(node).after(this.opts.invisibleSpace); this.selectionRestore(); + this.$editor.find('span#selection-marker-1').removeAttr('id'); } } }, @@ -3874,6 +4118,7 @@ tmp.innerHTML = html; html = tmp.textContent || tmp.innerText; + html = $.trim(html); html = html.replace('\n', '
'); html = this.cleanParagraphy(html); @@ -3889,9 +4134,15 @@ return true; } + // ms word list - html = html.replace(//gi, '
    '); - html = html.replace(//gi, '
'); + html = html.replace(//gi, '
    '); + html = html.replace(//gi, ''); + html = html.replace(//gi, '
'); + // one line + html = html.replace(//gi, '
'); + // remove ms word's bullet + html = html.replace(/·/g, ''); // remove comments and php tags html = html.replace(/|<\?(?:php)?[\s\S]*?\?>/gi, ''); @@ -3911,6 +4162,7 @@ html = html.replace(/<\/td>/gi, '[td]'); html = html.replace(/ <\/td>/gi, '[td]'); html = html.replace(/
<\/td>/gi, '[td]'); + html = html.replace(/([\w\W]*?)<\/td>/gi, '[td colspan="$2"]$4[/td]'); html = html.replace(/([\w\W]*?)<\/a>/gi, '[a href="$2"]$4[/a]'); html = html.replace(/([\w\W]*?)<\/iframe>/gi, '[iframe$1]$2[/iframe]'); html = html.replace(/([\w\W]*?)<\/video>/gi, '[video$1]$2[/video]'); @@ -3918,7 +4170,6 @@ html = html.replace(/([\w\W]*?)<\/embed>/gi, '[embed$1]$2[/embed]'); html = html.replace(/([\w\W]*?)<\/object>/gi, '[object$1]$2[/object]'); html = html.replace(//gi, '[param$1]'); - html = html.replace(//gi, '[img$1$3]'); html = html.replace(//gi, '[img$1]'); // remove classes @@ -3929,10 +4180,10 @@ // remove empty html = html.replace(/<[^\/>][^>]*>(\s*|\t*|\n*| |
)<\/[^>]+>/gi, ''); - html = html.replace(/
\s*?\t*?\n*?(
    |
      |

      )/gi, '$1'); // revert + html = html.replace(/\[td colspan="(.*?)"\]([\w\W]*?)\[\/td\]/gi, '$2'); html = html.replace(/\[td\]/gi, ' '); html = html.replace(/\[a href="(.*?)"\]([\w\W]*?)\[\/a\]/gi, '$2'); html = html.replace(/\[iframe(.*?)\]([\w\W]*?)\[\/iframe\]/gi, '$2'); @@ -3988,6 +4239,13 @@ // remove safari local images html = html.replace(//gi, ''); + // remove p in td + html = html.replace(/(\s*|\t*|\n*)

      ([\w\W]*?)<\/p>(\s*|\t*|\n*)<\/td>/gi, '$3'); + + // remove divs + html = html.replace(/([\w\W]*?)<\/div>/gi, '$2'); + html = html.replace(/([\w\W]*?)<\/div>/gi, '$2'); + // FF specific this.pasteClipboardMozilla = false; if (this.browser('mozilla')) @@ -4013,8 +4271,8 @@ } } - // bullets - html = html.replace(/

      •([\w\W]*?)<\/p>/gi, '

    1. $1
    2. '); + // bullets again + html = html.replace(/

      •([\w\W]*?)<\/p>/gi, '

    3. $1
    4. '); // ie inserts a blank font tags when pasting while (/([\w\W]*?)<\/font>/gi.test(html)) @@ -4051,7 +4309,7 @@ this.selectall = false; setTimeout($.proxy(function() { - rtePaste = false; + this.rtePaste = false; // FF specific if (this.browser('mozilla')) @@ -4068,7 +4326,6 @@ if (this.opts.autoresize) $(this.document.body).scrollTop(this.saveScroll); else this.$editor.scrollTop(this.saveScroll); }, - pasteClipboardUploadMozilla: function() { var imgs = this.$editor.find('img[data-mozilla-paste-image]'); @@ -4085,7 +4342,7 @@ }, $.proxy(function(data) { - var json = $.parseJSON(data); + var json = (typeof data === 'string' ? $.parseJSON(data) : data); $s.attr('src', json.filelink); $s.removeAttr('data-mozilla-paste-image'); @@ -4113,7 +4370,7 @@ }, $.proxy(function(data) { - var json = $.parseJSON(data); + var json = (typeof data === 'string' ? $.parseJSON(data) : data); var html = ''; this.execCommand('inserthtml', html, false); @@ -4187,12 +4444,10 @@ setTimeout($.proxy(this.observeStart, this), 4); }, - // OBSERVE observeStart: function() { this.observeImages(); - this.observeTables(); if (this.opts.observeLinks) this.observeLinks(); }, @@ -4205,10 +4460,6 @@ }, this)); }, - observeTables: function() - { - this.$editor.find('table').on('click', $.proxy(this.tableObserver, this)); - }, observeImages: function() { if (this.opts.observeImages === false) return false; @@ -4277,7 +4528,6 @@ $('.redactor-link-tooltip').remove(); }, - // SELECTION getSelection: function() { @@ -4294,7 +4544,7 @@ { if (this.document.getSelection) { - var sel = this.document.getSelection(); + var sel = this.getSelection(); if (sel.getRangeAt && sel.rangeCount) return sel.getRangeAt(0); } @@ -4385,177 +4635,67 @@ }, getCaretOffsetRange: function() { - return new Range(this.getSelection().getRangeAt(0)); - }, - setCaret: function (el, start, end) - { - if (typeof end === 'undefined') end = start; - el = el[0] || el; - - var range = this.getRange(); - range.selectNodeContents(el); - - var textNodes = this.getTextNodesIn(el); - var foundStart = false; - var charCount = 0, endCharCount; - - if (textNodes.length == 1 && start) - { - range.setStart(textNodes[0], start); - range.setEnd(textNodes[0], end); - } - else - { - for (var i = 0, textNode; textNode = textNodes[i++];) - { - endCharCount = charCount + textNode.length; - if (!foundStart && start >= charCount && (start < endCharCount || (start == endCharCount && i < textNodes.length))) - { - range.setStart(textNode, start - charCount); - foundStart = true; - } - - if (foundStart && end <= endCharCount) - { - range.setEnd( textNode, end - charCount ); - break; - } - - charCount = endCharCount; - } - } - - var sel = this.getSelection(); - sel.removeAllRanges(); - sel.addRange( range ); - }, - getTextNodesIn: function (node) - { - var textNodes = []; - - if (node.nodeType == 3) textNodes.push(node); - else - { - var children = node.childNodes; - for (var i = 0, len = children.length; i < len; ++i) - { - textNodes.push.apply(textNodes, this.getTextNodesIn(children[i])); - } - } - - return textNodes; - }, - - // SAVE & RESTORE - selectionSave: function() - { - if (!this.isFocused()) this.$editor.focus(); - - if (!this.opts.rangy) - { - this.selectionCreateMarker(this.getRange()); - } - // rangy - else - { - this.savedSel = rangy.saveSelection(); - } - }, - selectionCreateMarker: function(range, remove) - { - if (!range) return; - - var node1 = $('' + this.opts.invisibleSpace + '', this.document)[0]; - var node2 = $('' + this.opts.invisibleSpace + '', this.document)[0]; - - if (range.collapsed === true) - { - this.selectionSetMarker(range, node1, true); - } - else - { - this.selectionSetMarker(range, node1, true); - this.selectionSetMarker(range, node2, false); - } - - this.savedSel = this.$editor.html(); - - this.selectionRestore(false, false); - }, - selectionSetMarker: function(range, node, type) - { - var boundaryRange = range.cloneRange(); - - boundaryRange.collapse(type); - - boundaryRange.insertNode(node); - boundaryRange.detach(); - }, - selectionRestore: function(replace, remove) - { - if (!this.opts.rangy) - { - if (replace === true && this.savedSel) - { - this.$editor.html(this.savedSel); - } - - var node1 = this.$editor.find('span#selection-marker-1'); - var node2 = this.$editor.find('span#selection-marker-2'); - - if (this.browser('mozilla')) - { - this.$editor.focus(); - } - else if (!this.isFocused()) - { - this.$editor.focus(); - } + return new Range(this.getSelection().getRangeAt(0)); + }, + setCaret: function (el, start, end) + { + if (typeof end === 'undefined') end = start; + el = el[0] || el; - if (node1.length != 0 && node2.length != 0) - { - this.selectionSet(node1[0], 0, node2[0], 0); - } - else if (node1.length != 0) - { - this.selectionSet(node1[0], 0, null, 0); - } + var range = this.getRange(); + range.selectNodeContents(el); - if (remove !== false) - { - this.selectionRemoveMarkers(); - this.savedSel = false; - } - } - // rangy - else + var textNodes = this.getTextNodesIn(el); + var foundStart = false; + var charCount = 0, endCharCount; + + if (textNodes.length == 1 && start) { - rangy.restoreSelection(this.savedSel); + range.setStart(textNodes[0], start); + range.setEnd(textNodes[0], end); } - }, - selectionRemoveMarkers: function(type) - { - if (!this.opts.rangy) + else { - $.each(this.$editor.find('span.redactor-selection-marker'), function() + for (var i = 0, textNode; textNode = textNodes[i++];) { - var html = $.trim($(this).html().replace(/[^\u0000-\u1C7F]/g, '')); - if (html == '') + endCharCount = charCount + textNode.length; + if (!foundStart && start >= charCount && (start < endCharCount || (start == endCharCount && i < textNodes.length))) { - $(this).remove(); + range.setStart(textNode, start - charCount); + foundStart = true; } - else + + if (foundStart && end <= endCharCount) { - $(this).removeAttr('class').removeAttr('id'); + range.setEnd( textNode, end - charCount ); + break; } - }); + + charCount = endCharCount; + } } - // rangy + + var sel = this.getSelection(); + sel.removeAllRanges(); + sel.addRange( range ); + }, + getTextNodesIn: function (node) + { + var textNodes = []; + + if (node.nodeType == 3) textNodes.push(node); else { - rangy.removeMarkers(this.savedSel); + var children = node.childNodes; + for (var i = 0, len = children.length; i < len; ++i) + { + textNodes.push.apply(textNodes, this.getTextNodesIn(children[i])); + } } + + return textNodes; }, + // GET ELEMENTS getCurrent: function() { @@ -4618,47 +4758,8 @@ { return this.rTestBlock.test(tag); }, - getSelectedNodes: function(range) - { - if (typeof range == 'undefined' || range == false) var range = this.getRange() - if (range && range.collapsed === true) - { - return [this.getCurrent()]; - } - - var sel = this.getSelection(); - try { - var frag = sel.getRangeAt(0).cloneContents(); - } - catch(e) - { - return(false); - } - - var tempspan = this.document.createElement("span"); - tempspan.appendChild(frag); - - window.selnodes = tempspan.childNodes; - - var len = selnodes.length; - var output = []; - for(var i = 0, u = len; i' + this.opts.invisibleSpace + '', this.document)[0]; + var node2 = $('' + this.opts.invisibleSpace + '', this.document)[0]; + + if (range.collapsed === true) + { + this.selectionSetMarker(range, node1, true); + } + else + { + this.selectionSetMarker(range, node1, true); + this.selectionSetMarker(range, node2, false); + } + + this.savedSel = this.$editor.html(); + + this.selectionRestore(false, false); + }, + selectionSetMarker: function(range, node, type) + { + var boundaryRange = range.cloneRange(); + + boundaryRange.collapse(type); + + boundaryRange.insertNode(node); + boundaryRange.detach(); + }, + selectionRestore: function(replace, remove) + { + if (!this.opts.rangy) + { + if (replace === true && this.savedSel) + { + this.$editor.html(this.savedSel); + } + + var node1 = this.$editor.find('span#selection-marker-1'); + var node2 = this.$editor.find('span#selection-marker-2'); + + if (this.browser('mozilla')) + { + this.$editor.focus(); + } + else if (!this.isFocused()) + { + this.$editor.focus(); + } + + if (node1.length != 0 && node2.length != 0) + { + this.selectionSet(node1[0], 0, node2[0], 0); + } + else if (node1.length != 0) + { + this.selectionSet(node1[0], 0, null, 0); + } + + if (remove !== false) + { + this.selectionRemoveMarkers(); + this.savedSel = false; + } + } + // rangy + else + { + rangy.restoreSelection(this.savedSel); + } + }, + selectionRemoveMarkers: function(type) + { + if (!this.opts.rangy) + { + $.each(this.$editor.find('span.redactor-selection-marker'), function() + { + var html = $.trim($(this).html().replace(/[^\u0000-\u1C7F]/g, '')); + if (html == '') + { + $(this).remove(); + } + else + { + $(this).removeAttr('class').removeAttr('id'); + } + }); + } + // rangy + else + { + rangy.removeMarkers(this.savedSel); + } + }, + // TABLE tableShow: function() { @@ -4843,20 +5054,13 @@ this.selectionRestore(); var current = this.getBlock() || this.getCurrent(); - if (current && current.tagName != 'BODY') - { - $(current).after(html) - } - else - { - this.insertHtmlAdvanced(html, false); - } + if (current && current.tagName != 'BODY') $(current).after(html) + else this.insertHtmlAdvanced(html, false); this.selectionRestore(); var table = this.$editor.find('#table' + tableId); - this.tableObserver(table); this.buttonActiveObserver(); table.find('span#selection-marker-1').remove(); @@ -4864,92 +5068,98 @@ this.sync(); }, - tableObserver: function(e) - { - this.$table = $(e.target || e).closest('table'); - - this.$tbody = $(e.target).closest('tbody'); - this.$thead = this.$table.find('thead'); - - this.$current_td = $(e.target || this.$table.find('td').first()); - this.$current_tr = $(e.target || this.$table.find('tr').first()).closest('tr'); - }, tableDeleteTable: function() { - this.bufferSet(); + var $table = $(this.getParent()).closest('table'); + if (!this.isParentRedactor($table)) return false; + if ($table.size() == 0) return false; - if (!this.$table) return; + this.bufferSet(); - this.$table.remove(); - this.$table = false; + $table.remove(); this.sync(); - }, tableDeleteRow: function() { - this.bufferSet(); + var $table = $(this.getParent()).closest('table'); + if (!this.isParentRedactor($table)) return false; + if ($table.size() == 0) return false; - if (!this.$current_tr) return; + this.bufferSet(); - // Set the focus correctly - var $focusTR = this.$current_tr.prev().length ? this.$current_tr.prev() : this.$current_tr.next(); - if ($focusTR.length) + var $current_tr = $(this.getParent()).closest('tr'); + var $focus_tr = $current_tr.prev().length ? $current_tr.prev() : $current_tr.next(); + if ($focus_tr.length) { - var $focusTD = $focusTR.children('td' ).first(); - if ($focusTD.length) + var $focus_td = $focus_tr.children('td' ).first(); + if ($focus_td.length) { - $focusTD.prepend('' + this.opts.invisibleSpace + ''); - this.selectionRestore(); + $focus_td.prepend('' + this.opts.invisibleSpace + ''); } } - this.$current_tr.remove(); + $current_tr.remove(); + this.selectionRestore(); this.sync(); }, tableDeleteColumn: function() { + var $table = $(this.getParent()).closest('table'); + if (!this.isParentRedactor($table)) return false; + if ($table.size() == 0) return false; + this.bufferSet(); - var index = this.$current_td.get(0).cellIndex; + + var $current_td = $(this.getParent()).closest('td'); + var index = $current_td.get(0).cellIndex; // Set the focus correctly - this.$table.find('tr').each($.proxy(function(i, elem) + $table.find('tr').each($.proxy(function(i, elem) { var focusIndex = index - 1 < 0 ? index + 1 : index - 1; if (i === 0) { $(elem).find('td').eq(focusIndex).prepend('' + this.opts.invisibleSpace + ''); - this.selectionRestore(); } $(elem).find('td').eq(index).remove(); }, this)); + this.selectionRestore(); this.sync(); }, tableAddHead: function() { + var $table = $(this.getParent()).closest('table'); + if (!this.isParentRedactor($table)) return false; + if ($table.size() == 0) return false; + this.bufferSet(); - if (this.$table.find('thead').size() !== 0) this.tableDeleteHead(); + if ($table.find('thead').size() !== 0) this.tableDeleteHead(); else { - var tr = this.$table.find('tr').first().clone(); - tr.find('td').html( this.opts.invisibleSpace ); - this.$thead = $(''); - this.$thead.append(tr); - this.$table.prepend(this.$thead); + var tr = $table.find('tr').first().clone(); + tr.find('td').html(this.opts.invisibleSpace); + $thead = $(''); + $thead.append(tr); + $table.prepend($thead); this.sync(); } }, tableDeleteHead: function() { - this.bufferSet(); + var $table = $(this.getParent()).closest('table'); + if (!this.isParentRedactor($table)) return false; + var $thead = $table.find('thead'); + + if ($thead.size() == 0) return false; - $(this.$thead).remove(); - this.$thead = false; + this.bufferSet(); + $thead.remove(); this.sync(); }, tableAddRowAbove: function() @@ -4970,29 +5180,41 @@ }, tableAddRow: function(type) { + var $table = $(this.getParent()).closest('table'); + if (!this.isParentRedactor($table)) return false; + if ($table.size() == 0) return false; + this.bufferSet(); - var new_tr = this.$current_tr.clone(); + var $current_tr = $(this.getParent()).closest('tr'); + var new_tr = $current_tr.clone(); new_tr.find('td').html(this.opts.invisibleSpace); - if (type === 'after') this.$current_tr.after(new_tr); - else this.$current_tr.before(new_tr); + if (type === 'after') $current_tr.after(new_tr); + else $current_tr.before(new_tr); this.sync(); }, tableAddColumn: function (type) { + var $table = $(this.getParent()).closest('table'); + if (!this.isParentRedactor($table)) return false; + if ($table.size() == 0) return false; + this.bufferSet(); var index = 0; - this.$current_tr.find('td').each($.proxy(function(i, elem) + var $current_tr = $(this.getParent()).closest('tr'); + var $current_td = $(this.getParent()).closest('td'); + + $current_tr.find('td').each($.proxy(function(i, elem) { - if ($(elem)[0] === this.$current_td[0]) index = i; + if ($(elem)[0] === $current_td[0]) index = i; }, this)); - this.$table.find('tr').each($.proxy(function(i, elem) + $table.find('tr').each($.proxy(function(i, elem) { var $current = $(elem).find('td').eq(index); @@ -5193,6 +5415,12 @@ } } + // link tooltip + setTimeout($.proxy(function() + { + if (this.opts.observeLinks) this.observeLinks(); + }, this), 5); + this.modalClose(); }, @@ -5223,7 +5451,8 @@ { this.callback('fileUploadError', json); - }, this) + }, this), + uploadParam: this.opts.fileUploadParam }); } @@ -5366,7 +5595,8 @@ { this.callback('imageUploadError', json); - }, this) + }, this), + uploadParam: this.opts.imageUploadParam }); } } @@ -5460,7 +5690,7 @@ }, this); - this.modalInit(this.opts.curLang.image, this.opts.modal_image_edit, 380, callback); + this.modalInit(this.opts.curLang.edit, this.opts.modal_image_edit, 380, callback); }, imageRemove: function(el) @@ -5566,7 +5796,7 @@ this.$editor.find('#redactor-image-editter, #redactor-image-resizer').remove(); - var margin = imageBox.css('margin'); + var margin = imageBox[0].style.margin; if (margin != '0px') { imageBox.find('img').css('margin', margin); @@ -5717,7 +5947,7 @@ }); imageBox.attr('contenteditable', false); - var margin = $image.css('margin'); + var margin = $image[0].style.margin; if (margin != '0px') { imageBox.css('margin', margin); @@ -5844,7 +6074,7 @@ + '' + '' + '
      ' - + '' + + '' + '
      ' + '' + '', @@ -5864,9 +6094,9 @@ + '' + '' + '
      ' - + '   ' + + '   ' + '' - + '' + + '' + '
      ', modal_image: String() @@ -5881,7 +6111,7 @@ + '
' + '
' + '
' - + '' + + '' + '
' + '