diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..9ae7bca --- /dev/null +++ b/.classpath @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml index 8164e53..b03e284 100644 --- a/.idea/dataSources.local.xml +++ b/.idea/dataSources.local.xml @@ -9,7 +9,9 @@ master_key root + *:db_blog db_blog: + db_blog: \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml new file mode 100644 index 0000000..1c24f9a --- /dev/null +++ b/.idea/kotlinc.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index fd53f0f..e655b8c 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,7 +2,6 @@ - diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4008e6d..b12b5dd 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,19 +2,30 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - @@ -349,44 +360,35 @@ - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - @@ -933,6 +935,8 @@ + + @@ -1068,103 +1072,101 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -1194,7 +1196,6 @@ @@ -1207,13 +1208,7 @@ @@ -1286,9 +1287,38 @@ + + + + + + + + + + + + + + + + + + + @@ -1327,7 +1357,7 @@ - + @@ -1340,46 +1370,14 @@ - - - - - - - - - - - - - - - - - - + - - + @@ -1391,29 +1389,41 @@ - + - + + + + + - - + - - - + + + - + - + - + - - + + - - - - - - + + - + - - + + + + + + + @@ -2152,19 +2158,19 @@ - - - - - + + + + + - - - - - + + + + + @@ -2194,7 +2200,17 @@ - + + + + + + + + + + + 1492160072434 @@ -2245,12 +2261,19 @@ - - - + + @@ -2281,7 +2304,7 @@ - @@ -2293,16 +2316,15 @@ - - + - - + + - + @@ -2312,21 +2334,21 @@ - + - + + - - - + + - - + + @@ -2344,11 +2366,16 @@ + + + - @@ -2359,8 +2386,14 @@ @@ -2369,353 +2402,178 @@ - + - - - + + - + - - - + + - + - - - + + - + - - - + + - + - - - + + - + - - - + + - + - - - + + - + - - + + - + - - - - - - - - - - JAVA - org.apache.lucene.search.highlight.Fragmenter - - org.apache.lucene.search.highlight.Fragmenter - - - - - - org.apache.lucene.search.highlight.Fragmenter - - - All - private - - - - - - - JAVA - org.apache.lucene.search.highlight.SimpleFragmenter - - org.apache.lucene.search.highlight.Fragmenter - org.apache.lucene.search.highlight.SimpleFragmenter - - - - - - - All - private + + - - - - JAVA - org.apache.lucene.search.highlight.Formatter - - org.apache.lucene.search.highlight.Formatter - - - - - - - All - private + + + + + + + - + + + + - - - + + - - - - JAVA - org.apache.lucene.search.highlight - - org.apache.lucene.search.highlight.TokenStreamFromTermVector - org.apache.lucene.search.highlight.QueryScorer - org.apache.lucene.search.highlight.PositionSpan - org.apache.lucene.search.highlight.WeightedSpanTermExtractor - org.apache.lucene.search.highlight.SimpleHTMLEncoder - org.apache.lucene.search.highlight.Highlighter - org.apache.lucene.search.highlight.TextFragment - org.apache.lucene.search.highlight.TokenSources - org.apache.lucene.search.highlight.Formatter - org.apache.lucene.search.highlight.Scorer - org.apache.lucene.search.highlight.WeightedSpanTerm - org.apache.lucene.search.highlight.SimpleFragmenter - org.apache.lucene.search.highlight.InvalidTokenOffsetsException - org.apache.lucene.search.highlight.Fragmenter - org.apache.lucene.search.highlight.SimpleSpanFragmenter - org.apache.lucene.search.highlight.DefaultEncoder - org.apache.lucene.search.highlight.TermVectorLeafReader - org.apache.lucene.search.highlight.package-info - org.apache.lucene.search.highlight.FragmentQueue - org.apache.lucene.search.highlight.OffsetLimitTokenFilter - org.apache.lucene.search.highlight.NullFragmenter - org.apache.lucene.search.highlight.SpanGradientFormatter - org.apache.lucene.search.highlight.QueryTermScorer - org.apache.lucene.search.highlight.Encoder - org.apache.lucene.search.highlight.SimpleHTMLFormatter - org.apache.lucene.search.highlight.TokenGroup - org.apache.lucene.search.highlight.WeightedTerm - org.apache.lucene.search.highlight.QueryTermExtractor - org.apache.lucene.search.highlight.GradientFormatter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.apache.lucene.search.highlight.Fragmenter - - - All - private + + + + - + - - - + + + + + + + + + + + + + + + - - - - JAVA - org.apache.lucene.search.highlight.SimpleSpanFragmenter - - org.apache.lucene.search.highlight.Fragmenter - org.apache.lucene.search.highlight.SimpleSpanFragmenter - - - - - - - - - - - org.apache.lucene.search.highlight.SimpleSpanFragmenter - - - All - private + + + + - + - - - + + - + - - + + - + - - - + + - + - - - + + - + - - - + + - + - - - + + - + - - - - - - - - - - + + - - + + @@ -2727,253 +2585,217 @@ - - - - - - - - - - - - - + - - - - - - - - - - - + + - + - - + + - + - + - + + + + + + - - - + + + + + + - + - - - + + + + + - + - - + + - - - - - - - - - - - + - - + + - + - - - - - - + + + - + - - - + + + + + - + - - - + + + + + - + - - + + - + - - + + - + - + - - - - - - - - - - - + - - - - - + + + - + - - - - - + + + - + - - + + - + - - + + - + - - - - - + + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + diff --git a/.project b/.project new file mode 100644 index 0000000..03e9893 --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + Blog + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..abec6ca --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/1.sql b/1.sql new file mode 100644 index 0000000..ba34794 --- /dev/null +++ b/1.sql @@ -0,0 +1,8 @@ +create table student_range( + sno number(4) constraint s_pk primary key, + sname varchar2(10) constraint s_uk unique, + sage number, + sex char(2), + cno number(2) + ) + partition by range diff --git a/Blog.iml b/Blog.iml index 882bc2f..ec0172a 100644 --- a/Blog.iml +++ b/Blog.iml @@ -15,8 +15,11 @@ + + + - + diff --git a/src/main/java/ssm/blog/controller/BloggerController.java b/src/main/java/ssm/blog/controller/BloggerController.java index 91898e2..a857455 100644 --- a/src/main/java/ssm/blog/controller/BloggerController.java +++ b/src/main/java/ssm/blog/controller/BloggerController.java @@ -49,7 +49,7 @@ public String login(Blogger blogger, HttpServletRequest request) { } } - @RequestMapping("/myalbum") + @RequestMapping("/aboutme") public ModelAndView abouotMe() { ModelAndView modelAndView = new ModelAndView(); Blogger blogger = bloggerService.getBloggerData(); @@ -60,7 +60,7 @@ public ModelAndView abouotMe() { return modelAndView; } - @RequestMapping(value = "/malbum") + @RequestMapping(value = "/myalbum") public ModelAndView myAlbum() { ModelAndView modelAndView = new ModelAndView(); //要写一个相册的service获取相册 diff --git a/src/main/resources/generatorConfig.xml b/src/main/resources/generatorConfig.xml new file mode 100644 index 0000000..ae377ec --- /dev/null +++ b/src/main/resources/generatorConfig.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
diff --git a/src/main/resources/images/Snip20170704_11.png b/src/main/resources/images/Snip20170704_11.png new file mode 100644 index 0000000..254b4e2 Binary files /dev/null and b/src/main/resources/images/Snip20170704_11.png differ diff --git a/src/main/resources/images/Snip20170704_12.png b/src/main/resources/images/Snip20170704_12.png new file mode 100644 index 0000000..75fd49c Binary files /dev/null and b/src/main/resources/images/Snip20170704_12.png differ diff --git a/src/main/resources/images/Snip20170704_13.png b/src/main/resources/images/Snip20170704_13.png new file mode 100644 index 0000000..21a28ff Binary files /dev/null and b/src/main/resources/images/Snip20170704_13.png differ diff --git a/src/main/resources/images/Snip20170704_2.png b/src/main/resources/images/Snip20170704_2.png new file mode 100644 index 0000000..1d26cb3 Binary files /dev/null and b/src/main/resources/images/Snip20170704_2.png differ diff --git a/src/main/resources/images/Snip20170704_3.png b/src/main/resources/images/Snip20170704_3.png new file mode 100644 index 0000000..081109a Binary files /dev/null and b/src/main/resources/images/Snip20170704_3.png differ diff --git a/src/main/resources/images/Snip20170704_4.png b/src/main/resources/images/Snip20170704_4.png new file mode 100644 index 0000000..9f11f34 Binary files /dev/null and b/src/main/resources/images/Snip20170704_4.png differ diff --git a/src/main/resources/images/Snip20170704_5.png b/src/main/resources/images/Snip20170704_5.png new file mode 100644 index 0000000..8619457 Binary files /dev/null and b/src/main/resources/images/Snip20170704_5.png differ diff --git a/src/main/resources/images/Snip20170704_6.png b/src/main/resources/images/Snip20170704_6.png new file mode 100644 index 0000000..c29fc9d Binary files /dev/null and b/src/main/resources/images/Snip20170704_6.png differ diff --git a/src/main/resources/images/Snip20170704_7.png b/src/main/resources/images/Snip20170704_7.png new file mode 100644 index 0000000..f533e64 Binary files /dev/null and b/src/main/resources/images/Snip20170704_7.png differ diff --git a/src/main/resources/images/Snip20170704_8.png b/src/main/resources/images/Snip20170704_8.png new file mode 100644 index 0000000..81ef898 Binary files /dev/null and b/src/main/resources/images/Snip20170704_8.png differ diff --git a/src/main/resources/images/Snip20170704_9.png b/src/main/resources/images/Snip20170704_9.png new file mode 100644 index 0000000..b5190f5 Binary files /dev/null and b/src/main/resources/images/Snip20170704_9.png differ diff --git a/src/main/webapp/foreground/blog/blogDetail.jsp b/src/main/webapp/foreground/blog/blogDetail.jsp index 5fa4255..284dcb4 100755 --- a/src/main/webapp/foreground/blog/blogDetail.jsp +++ b/src/main/webapp/foreground/blog/blogDetail.jsp @@ -14,7 +14,7 @@ } function loadimage(){ - document.getElementById("randImage").src="${pageContext.request.contextPath}/image.jsp?"+Math.random(); + document.getElementById("randImage").src="${pageContext.request.contextPath}/images.jsp?"+Math.random(); } function submitData() { diff --git a/src/main/webapp/image.jsp b/src/main/webapp/image.jsp index 5d13fc1..61b6837 100755 --- a/src/main/webapp/image.jsp +++ b/src/main/webapp/image.jsp @@ -19,7 +19,7 @@ java.awt.image.*,java.util.*,javax.imageio.*" response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("Expires", 0); int width = 60, height = 20; - BufferedImage image = new BufferedImage(width, height, + BufferedImage images = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); Graphics g = image.getGraphics(); Random random = new Random(); diff --git a/src/main/webapp/static/jquery-easyui-1.3.5/demo/datebox/basic.html b/src/main/webapp/static/jquery-easyui-1.3.5/demo/datebox/basic.html index efaa469..c35e363 100755 --- a/src/main/webapp/static/jquery-easyui-1.3.5/demo/datebox/basic.html +++ b/src/main/webapp/static/jquery-easyui-1.3.5/demo/datebox/basic.html @@ -13,7 +13,7 @@

Basic DateBox

-
Click the calendar image on the right side.
+
Click the calendar images on the right side.
diff --git a/src/main/webapp/static/jquery-easyui-1.3.5/demo/datebox/events.html b/src/main/webapp/static/jquery-easyui-1.3.5/demo/datebox/events.html index 9e67cd3..e93f622 100755 --- a/src/main/webapp/static/jquery-easyui-1.3.5/demo/datebox/events.html +++ b/src/main/webapp/static/jquery-easyui-1.3.5/demo/datebox/events.html @@ -13,7 +13,7 @@

DateBox Events

-
Click the calendar image on the right side.
+
Click the calendar images on the right side.
diff --git a/src/main/webapp/static/jquery-easyui-1.3.5/demo/datetimebox/basic.html b/src/main/webapp/static/jquery-easyui-1.3.5/demo/datetimebox/basic.html index 6cb9c14..27909ab 100755 --- a/src/main/webapp/static/jquery-easyui-1.3.5/demo/datetimebox/basic.html +++ b/src/main/webapp/static/jquery-easyui-1.3.5/demo/datetimebox/basic.html @@ -13,7 +13,7 @@

Basic DateTimeBox

-
Click the calendar image on the right side.
+
Click the calendar images on the right side.
diff --git a/src/main/webapp/static/jquery-easyui-1.3.5/demo/tabs/tabimage.html b/src/main/webapp/static/jquery-easyui-1.3.5/demo/tabs/tabimage.html index 4fd8842..1c97c18 100755 --- a/src/main/webapp/static/jquery-easyui-1.3.5/demo/tabs/tabimage.html +++ b/src/main/webapp/static/jquery-easyui-1.3.5/demo/tabs/tabimage.html @@ -21,7 +21,8 @@

Tabs with Images

A modem (modulator-demodulator) is a device that modulates an analog carrier signal to encode digital information, and also demodulates such a carrier signal to decode the transmitted information.

-

In computing, an image scanner—often abbreviated to just scanner—is a device that optically scans images, printed text, handwriting, or an object, and converts it to a digital image.

+

In computing, an images scanner—often abbreviated to just scanner—is a device that optically scans images, + printed text, handwriting, or an object, and converts it to a digital images.

A personal digital assistant (PDA), also known as a palmtop computer, or personal data assistant, is a mobile device that functions as a personal information manager. PDAs are largely considered obsolete with the widespread adoption of smartphones.

diff --git a/src/main/webapp/static/jquery-easyui-1.3.5/licence_gpl.txt b/src/main/webapp/static/jquery-easyui-1.3.5/licence_gpl.txt index 2f6e875..e979d42 100755 --- a/src/main/webapp/static/jquery-easyui-1.3.5/licence_gpl.txt +++ b/src/main/webapp/static/jquery-easyui-1.3.5/licence_gpl.txt @@ -631,7 +631,7 @@ to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - Galleria is a javascript image gallery written in jQuery + Galleria is a javascript images gallery written in jQuery Copyright (C) 2008 David Hellsing This program is free software: you can redistribute it and/or modify diff --git a/src/main/webapp/static/luceneIndex/_0.cfe b/src/main/webapp/static/luceneIndex/_0.cfe new file mode 100644 index 0000000..c29543d Binary files /dev/null and b/src/main/webapp/static/luceneIndex/_0.cfe differ diff --git a/src/main/webapp/static/luceneIndex/_0.cfs b/src/main/webapp/static/luceneIndex/_0.cfs new file mode 100644 index 0000000..8115af3 Binary files /dev/null and b/src/main/webapp/static/luceneIndex/_0.cfs differ diff --git a/src/main/webapp/static/luceneIndex/_0.si b/src/main/webapp/static/luceneIndex/_0.si new file mode 100644 index 0000000..c9c34a4 Binary files /dev/null and b/src/main/webapp/static/luceneIndex/_0.si differ diff --git a/src/main/webapp/static/luceneIndex/segments_1 b/src/main/webapp/static/luceneIndex/segments_1 new file mode 100644 index 0000000..bce7aa4 Binary files /dev/null and b/src/main/webapp/static/luceneIndex/segments_1 differ diff --git a/src/main/webapp/static/luceneIndex/write.lock b/src/main/webapp/static/luceneIndex/write.lock new file mode 100644 index 0000000..e69de29 diff --git a/src/main/webapp/static/ueditor1_4_3_3/dialogs/image/image.html b/src/main/webapp/static/ueditor1_4_3_3/dialogs/image/image.html index 08ca022..cc693bf 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/dialogs/image/image.html +++ b/src/main/webapp/static/ueditor1_4_3_3/dialogs/image/image.html @@ -12,7 +12,7 @@ - + diff --git a/src/main/webapp/static/ueditor1_4_3_3/dialogs/scrawl/scrawl.html b/src/main/webapp/static/ueditor1_4_3_3/dialogs/scrawl/scrawl.html index 9371abd..0404c4e 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/dialogs/scrawl/scrawl.html +++ b/src/main/webapp/static/ueditor1_4_3_3/dialogs/scrawl/scrawl.html @@ -55,7 +55,7 @@
+ accept="images/gif,images/jpeg,images/png,images/jpg,images/bmp"/>
diff --git a/src/main/webapp/static/ueditor1_4_3_3/third-party/video-js/video.dev.js b/src/main/webapp/static/ueditor1_4_3_3/third-party/video-js/video.dev.js index d01ea60..d75e908 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/third-party/video-js/video.dev.js +++ b/src/main/webapp/static/ueditor1_4_3_3/third-party/video-js/video.dev.js @@ -3754,7 +3754,7 @@ vjs.Player.prototype.loop = function(value){ vjs.Player.prototype.poster_; /** - * get or set the poster image source url + * get or set the poster images source url * * ##### EXAMPLE: * @@ -3764,7 +3764,7 @@ vjs.Player.prototype.poster_; * // setting * myPlayer.poster('http://example.com/myImage.jpg'); * - * @param {String=} [src] Poster image source URL + * @param {String=} [src] Poster images source URL * @return {String} poster URL when getting * @return {vjs.Player} self when setting */ diff --git a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.js b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.js index 583a0b8..8769865 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.js +++ b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.js @@ -1198,7 +1198,7 @@ // 如果没有指定mimetype, 但是知道文件后缀。 if ( !this.type && ~'jpg,jpeg,png,gif,bmp'.indexOf( ext ) ) { - this.type = 'image/' + (ext === 'jpg' ? 'jpeg' : ext); + this.type = 'images/' + (ext === 'jpg' ? 'jpeg' : ext); } this.ext = ext; @@ -1551,14 +1551,14 @@ * { * title: 'Images', * extensions: 'gif,jpg,jpeg,bmp,png', - * mimeTypes: 'image/*' + * mimeTypes: 'images/*' * } * ``` */ accept: null/*{ title: 'Images', extensions: 'gif,jpg,jpeg,bmp,png', - mimeTypes: 'image/*' + mimeTypes: 'images/*' }*/ }); @@ -1738,7 +1738,7 @@ define('widgets/image',[ 'base', 'uploader', - 'lib/image', + 'lib/images', 'widgets/widget' ], function( Base, Uploader, Image ) { @@ -1784,7 +1784,7 @@ * width: 110, * height: 110, * - * // 图片质量,只有type为`image/jpeg`的时候才有效。 + * // 图片质量,只有type为`images/jpeg`的时候才有效。 * quality: 70, * * // 是否允许放大,如果想要生成小图的时候不失真,此选项应该设置为false. @@ -1798,7 +1798,7 @@ * * // 为空的话则保留原有图片格式。 * // 否则强制转换成指定的类型。 - * type: 'image/jpeg' + * type: 'images/jpeg' * } * ``` */ @@ -1813,8 +1813,8 @@ // 为空的话则保留原有图片格式。 // 否则强制转换成指定的类型。 // IE 8下面 base64 大小不能超过 32K 否则预览失败,而非 jpeg 编码的图片很可 - // 能会超过 32k, 所以这里设置成预览的时候都是 image/jpeg - type: 'image/jpeg' + // 能会超过 32k, 所以这里设置成预览的时候都是 images/jpeg + type: 'images/jpeg' }, /** @@ -1830,7 +1830,7 @@ * width: 1600, * height: 1600, * - * // 图片质量,只有type为`image/jpeg`的时候才有效。 + * // 图片质量,只有type为`images/jpeg`的时候才有效。 * quality: 90, * * // 是否允许放大,如果想要生成小图的时候不失真,此选项应该设置为false. @@ -1946,7 +1946,7 @@ file = this.request( 'get-file', file ); // 只预览图片格式。 - if ( !opts || !~'image/jpeg,image/jpg'.indexOf( file.type ) || + if ( !opts || !~'images/jpeg,images/jpg'.indexOf( file.type ) || file.size < compressSize || file._compressed ) { return; @@ -4206,7 +4206,7 @@ // b = dataView.getUint8(offset + i); // hexData.push((b < 16 ? '0' : '') + b.toString(16)); // } - // return 'data:image/jpeg,%' + hexData.join('%'); + // return 'data:images/jpeg,%' + hexData.join('%'); // }; EXIF.parseExifData = function( dataView, offset, length, data ) { @@ -4255,7 +4255,7 @@ dirOffset = dataView.getUint32( tiffOffset + 4, littleEndian ); // Create the exif object to store the tags: data.exif = new EXIF.ExifMap(); - // Parse the tags of the main image directory and retrieve the + // Parse the tags of the main images directory and retrieve the // offset to the next directory, usually the thumbnail directory: dirOffset = EXIF.parseExifTags( dataView, tiffOffset, tiffOffset + dirOffset, littleEndian, data ); @@ -4294,7 +4294,7 @@ 'runtime/html5/util' ], function( Base, Html5Runtime, Util ) { - var BLANK = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D'; + var BLANK = 'data:images/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D'; return Html5Runtime.register( 'Image', { @@ -4314,7 +4314,7 @@ }; // 读取meta信息。 - if ( !me._metas && 'image/jpeg' === me.type ) { + if ( !me._metas && 'images/jpeg' === me.type ) { Util.parseMeta( me._blob, function( error, ret ) { me._metas = ret; me.owner.trigger('load'); @@ -4364,9 +4364,9 @@ if ( this.modified || this.type !== type ) { canvas = this._canvas; - if ( type === 'image/jpeg' ) { + if ( type === 'images/jpeg' ) { - blob = Util.canvasToDataUrl( canvas, 'image/jpeg', + blob = Util.canvasToDataUrl( canvas, 'images/jpeg', opts.quality ); if ( opts.preserveHeaders && this._metas && @@ -4393,7 +4393,7 @@ type = type || this.type; - if ( type === 'image/jpeg' ) { + if ( type === 'images/jpeg' ) { return Util.canvasToDataUrl( this._canvas, type, opts.quality ); } else { return this._canvas.toDataURL( type ); @@ -4541,7 +4541,7 @@ }, // https://github.com/stomita/ios-imagefile-megapixel/ - // blob/master/src/megapix-image.js + // blob/master/src/megapix-images.js _renderImageToCanvas: (function() { // 如果不是ios, 不需要这么复杂! @@ -4552,8 +4552,8 @@ } /** - * Detecting vertical squash in loaded image. - * Fixes a bug which squash image vertically while drawing into + * Detecting vertical squash in loaded images. + * Fixes a bug which squash images vertically while drawing into * canvas for some images. */ function detectVerticalSquash( img, iw, ih ) { @@ -4570,7 +4570,7 @@ ctx.drawImage( img, 0, 0 ); data = ctx.getImageData( 0, 0, 1, ih ).data; - // search image edge pixel position in case + // search images edge pixel position in case // it is squashed vertically. while ( py > sy ) { alpha = data[ (py - 1) * 4 + 3 ]; @@ -4604,7 +4604,7 @@ } /** - * Detect subsampling in loaded image. + * Detect subsampling in loaded images. * In iOS, larger images than 2M pixels may be * subsampled in rendering. */ @@ -4613,17 +4613,17 @@ ih = img.naturalHeight, canvas, ctx; - // subsampling may happen overmegapixel image + // subsampling may happen overmegapixel images if ( iw * ih > 1024 * 1024 ) { canvas = document.createElement('canvas'); canvas.width = canvas.height = 1; ctx = canvas.getContext('2d'); ctx.drawImage( img, -iw + 1, 0 ); - // subsampled image becomes half smaller in rendering size. - // check alpha channel value to confirm image is covering + // subsampled images becomes half smaller in rendering size. + // check alpha channel value to confirm images is covering // edge pixel or not. if alpha value is 0 - // image is not covering, hence subsampled. + // images is not covering, hence subsampled. return ctx.getImageData( 0, 0, 1, 1 ).data[ 3 ] === 0; } else { return false; @@ -4636,7 +4636,7 @@ ih = img.naturalHeight, ctx = canvas.getContext('2d'), subsampled = detectSubsampling( img ), - doSquash = this.type === 'image/jpeg', + doSquash = this.type === 'images/jpeg', d = 1024, sy = 0, dy = 0, @@ -4680,7 +4680,7 @@ }); /** * 这个方式性能不行,但是可以解决android里面的toDataUrl的bug - * android里面toDataUrl('image/jpege')得到的结果却是png. + * android里面toDataUrl('images/jpege')得到的结果却是png. * * 所以这里没辙,只能借助这个工具 * @fileOverview jpeg encoder @@ -5269,7 +5269,7 @@ } } - this.encode = function(image,quality) // image data object + this.encode = function(image,quality) // images data object { // var time_start = new Date().getTime(); @@ -5370,7 +5370,7 @@ writeWord(0xFFD9); //EOI - var jpegDataUri = 'data:image/jpeg;base64,' + btoa(byteout.join('')); + var jpegDataUri = 'data:images/jpeg;base64,' + btoa(byteout.join('')); byteout = []; @@ -5451,7 +5451,7 @@ // 检测是否canvas支持jpeg导出,根据数据格式来判断。 // JPEG 前两位分别是:255, 216 - if ( type === 'image/jpeg' && typeof supportJpeg === 'undefined' ) { + if ( type === 'images/jpeg' && typeof supportJpeg === 'undefined' ) { fragement = origin.apply( null, arguments ); parts = fragement.split(','); @@ -5469,7 +5469,7 @@ } // 只有在android环境下才修复 - if ( type === 'image/jpeg' && !supportJpeg ) { + if ( type === 'images/jpeg' && !supportJpeg ) { w = canvas.width; h = canvas.height; ctx = canvas.getContext('2d'); @@ -5653,14 +5653,14 @@ define('webuploader',[ 'base', 'widgets/filepicker', - 'widgets/image', + 'widgets/images', 'widgets/queue', 'widgets/runtime', 'widgets/upload', 'runtime/html5/blob', 'runtime/html5/filepicker', 'runtime/html5/imagemeta/exif', - 'runtime/html5/image', + 'runtime/html5/images', 'runtime/html5/androidpatch', 'runtime/html5/transport' ], function( Base ) { diff --git a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.min.js b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.min.js index 5c256b4..7e62a40 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.min.js +++ b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.min.js @@ -1,2 +1,2 @@ -/* WebUploader 0.1.2 */!function(a,b){var c,d={},e=function(a,b){var c,d,e;if("string"==typeof a)return h(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));return b.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){var f,g={exports:b};"function"==typeof b&&(c.length||(c=[e,g.exports,g]),f=b.apply(null,c),void 0!==f&&(g.exports=f)),d[a]=g.exports},h=function(b){var c=d[b]||a[b];if(!c)throw new Error("`"+b+"` is undefined");return c},i=function(a){var b,c,e,f,g,h;h=function(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)};for(b in d)if(c=a,d.hasOwnProperty(b)){for(e=b.split("/"),g=h(e.pop());f=h(e.shift());)c[f]=c[f]||{},c=c[f];c[g]=d[b]}},j=b(a,f,e);i(j),"object"==typeof module&&"object"==typeof module.exports?module.exports=j:"function"==typeof define&&define.amd?define([],j):(c=a.WebUploader,a.WebUploader=j,a.WebUploader.noConflict=function(){a.WebUploader=c})}(this,function(a,b,c){return b("dollar-third",[],function(){return a.jQuery||a.Zepto}),b("dollar",["dollar-third"],function(a){return a}),b("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(a){return a&&"function"==typeof a.then}}}),b("promise",["promise-third"],function(a){return a}),b("base",["dollar","promise"],function(b,c){function d(a){return function(){return h.apply(a,arguments)}}function e(a,b){return function(){return a.apply(b,arguments)}}function f(a){var b;return Object.create?Object.create(a):(b=function(){},b.prototype=a,new b)}var g=function(){},h=Function.call;return{version:"0.1.2",$:b,Deferred:c.Deferred,isPromise:c.isPromise,when:c.when,browser:function(a){var b={},c=a.match(/WebKit\/([\d.]+)/),d=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),e=a.match(/MSIE\s([\d\.]+)/)||a.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=a.match(/Firefox\/([\d.]+)/),g=a.match(/Safari\/([\d.]+)/),h=a.match(/OPR\/([\d.]+)/);return c&&(b.webkit=parseFloat(c[1])),d&&(b.chrome=parseFloat(d[1])),e&&(b.ie=parseFloat(e[1])),f&&(b.firefox=parseFloat(f[1])),g&&(b.safari=parseFloat(g[1])),h&&(b.opera=parseFloat(h[1])),b}(navigator.userAgent),os:function(a){var b={},c=a.match(/(?:Android);?[\s\/]+([\d.]+)?/),d=a.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return c&&(b.android=parseFloat(c[1])),d&&(b.ios=parseFloat(d[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(a,c,d){var e;return"function"==typeof c?(e=c,c=null):e=c&&c.hasOwnProperty("constructor")?c.constructor:function(){return a.apply(this,arguments)},b.extend(!0,e,a,d||{}),e.__super__=a.prototype,e.prototype=f(a.prototype),c&&b.extend(!0,e.prototype,c),e},noop:g,bindFn:e,log:function(){return a.console?e(console.log,console):g}(),nextTick:function(){return function(a){setTimeout(a,1)}}(),slice:d([].slice),guid:function(){var a=0;return function(b){for(var c=(+new Date).toString(32),d=0;5>d;d++)c+=Math.floor(65535*Math.random()).toString(32);return(b||"wu_")+c+(a++).toString(32)}}(),formatSize:function(a,b,c){var d;for(c=c||["B","K","M","G","TB"];(d=c.shift())&&a>1024;)a/=1024;return("B"===d?a:a.toFixed(b||2))+d}}}),b("mediator",["base"],function(a){function b(a,b,c,d){return f.grep(a,function(a){return!(!a||b&&a.e!==b||c&&a.cb!==c&&a.cb._cb!==c||d&&a.ctx!==d)})}function c(a,b,c){f.each((a||"").split(h),function(a,d){c(d,b)})}function d(a,b){for(var c,d=!1,e=-1,f=a.length;++e1?void(d.isPlainObject(b)&&d.isPlainObject(c[a])?d.extend(c[a],b):c[a]=b):a?c[a]:c},getStats:function(){var a=this.request("get-stats");return{successNum:a.numOfSuccess,cancelNum:a.numOfCancel,invalidNum:a.numOfInvalid,uploadFailNum:a.numOfUploadFailed,queueNum:a.numOfQueue}},trigger:function(a){var c=[].slice.call(arguments,1),e=this.options,f="on"+a.substring(0,1).toUpperCase()+a.substring(1);return b.trigger.apply(this,arguments)===!1||d.isFunction(e[f])&&e[f].apply(this,c)===!1||d.isFunction(this[f])&&this[f].apply(this,c)===!1||b.trigger.apply(b,[this,a].concat(c))===!1?!1:!0},request:a.noop}),a.create=c.create=function(a){return new c(a)},a.Uploader=c,c}),b("runtime/runtime",["base","mediator"],function(a,b){function c(b){this.options=d.extend({container:document.body},b),this.uid=a.guid("rt_")}var d=a.$,e={},f=function(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null};return d.extend(c.prototype,{getContainer:function(){var a,b,c=this.options;return this._container?this._container:(a=d(c.container||document.body),b=d(document.createElement("div")),b.attr("id","rt_"+this.uid),b.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),a.append(b),a.addClass("webuploader-container"),this._container=b,b)},init:a.noop,exec:a.noop,destroy:function(){this._container&&this._container.parentNode.removeChild(this.__container),this.off()}}),c.orders="html5,flash",c.addRuntime=function(a,b){e[a]=b},c.hasRuntime=function(a){return!!(a?e[a]:f(e))},c.create=function(a,b){var g,h;if(b=b||c.orders,d.each(b.split(/\s*,\s*/g),function(){return e[this]?(g=this,!1):void 0}),g=g||f(e),!g)throw new Error("Runtime Error");return h=new e[g](a)},b.installTo(c.prototype),c}),b("runtime/client",["base","mediator","runtime/runtime"],function(a,b,c){function d(b,d){var f,g=a.Deferred();this.uid=a.guid("client_"),this.runtimeReady=function(a){return g.done(a)},this.connectRuntime=function(b,h){if(f)throw new Error("already connected!");return g.done(h),"string"==typeof b&&e.get(b)&&(f=e.get(b)),f=f||e.get(null,d),f?(a.$.extend(f.options,b),f.__promise.then(g.resolve),f.__client++):(f=c.create(b,b.runtimeOrder),f.__promise=g.promise(),f.once("ready",g.resolve),f.init(),e.add(f),f.__client=1),d&&(f.__standalone=d),f},this.getRuntime=function(){return f},this.disconnectRuntime=function(){f&&(f.__client--,f.__client<=0&&(e.remove(f),delete f.__promise,f.destroy()),f=null)},this.exec=function(){if(f){var c=a.slice(arguments);return b&&c.unshift(b),f.exec.apply(this,c)}},this.getRuid=function(){return f&&f.uid},this.destroy=function(a){return function(){a&&a.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}var e;return e=function(){var a={};return{add:function(b){a[b.uid]=b},get:function(b,c){var d;if(b)return a[b];for(d in a)if(!c||!a[d].__standalone)return a[d];return null},remove:function(b){delete a[b.uid]}}}(),b.installTo(d.prototype),d}),b("lib/blob",["base","runtime/client"],function(a,b){function c(a,c){var d=this;d.source=c,d.ruid=a,b.call(d,"Blob"),this.uid=c.uid||this.uid,this.type=c.type||"",this.size=c.size||0,a&&d.connectRuntime(a)}return a.inherits(b,{constructor:c,slice:function(a,b){return this.exec("slice",a,b)},getSource:function(){return this.source}}),c}),b("lib/file",["base","lib/blob"],function(a,b){function c(a,c){var f;b.apply(this,arguments),this.name=c.name||"untitled"+d++,f=e.exec(c.name)?RegExp.$1.toLowerCase():"",!f&&this.type&&(f=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(this.type)?RegExp.$1.toLowerCase():"",this.name+="."+f),!this.type&&~"jpg,jpeg,png,gif,bmp".indexOf(f)&&(this.type="image/"+("jpg"===f?"jpeg":f)),this.ext=f,this.lastModifiedDate=c.lastModifiedDate||(new Date).toLocaleString()}var d=1,e=/\.([^.]+)$/;return a.inherits(b,c)}),b("lib/filepicker",["base","runtime/client","lib/file"],function(b,c,d){function e(a){if(a=this.options=f.extend({},e.options,a),a.container=f(a.id),!a.container.length)throw new Error("按钮指定错误");a.innerHTML=a.innerHTML||a.label||a.container.html()||"",a.button=f(a.button||document.createElement("div")),a.button.html(a.innerHTML),a.container.html(a.button),c.call(this,"FilePicker",!0)}var f=b.$;return e.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file"},b.inherits(c,{constructor:e,init:function(){var b=this,c=b.options,e=c.button;e.addClass("webuploader-pick"),b.on("all",function(a){var g;switch(a){case"mouseenter":e.addClass("webuploader-pick-hover");break;case"mouseleave":e.removeClass("webuploader-pick-hover");break;case"change":g=b.exec("getFiles"),b.trigger("select",f.map(g,function(a){return a=new d(b.getRuid(),a),a._refer=c.container,a}),c.container)}}),b.connectRuntime(c,function(){b.refresh(),b.exec("init",c),b.trigger("ready")}),f(a).on("resize",function(){b.refresh()})},refresh:function(){var a=this.getRuntime().getContainer(),b=this.options.button,c=b.outerWidth?b.outerWidth():b.width(),d=b.outerHeight?b.outerHeight():b.height(),e=b.offset();c&&d&&a.css({bottom:"auto",right:"auto",width:c+"px",height:d+"px"}).offset(e)},enable:function(){var a=this.options.button;a.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var a=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),a.addClass("webuploader-pick-disable")},destroy:function(){this.runtime&&(this.exec("destroy"),this.disconnectRuntime())}}),e}),b("widgets/widget",["base","uploader"],function(a,b){function c(a){if(!a)return!1;var b=a.length,c=e.type(a);return 1===a.nodeType&&b?!0:"array"===c||"function"!==c&&"string"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){this.owner=a,this.options=a.options}var e=a.$,f=b.prototype._init,g={},h=[];return e.extend(d.prototype,{init:a.noop,invoke:function(a,b){var c=this.responseMap;return c&&a in c&&c[a]in this&&e.isFunction(this[c[a]])?this[c[a]].apply(this,b):g},request:function(){return this.owner.request.apply(this.owner,arguments)}}),e.extend(b.prototype,{_init:function(){var a=this,b=a._widgets=[];return e.each(h,function(c,d){b.push(new d(a))}),f.apply(a,arguments)},request:function(b,d,e){var f,h,i,j,k=0,l=this._widgets,m=l.length,n=[],o=[];for(d=c(d)?d:[d];m>k;k++)f=l[k],h=f.invoke(b,d),h!==g&&(a.isPromise(h)?o.push(h):n.push(h));return e||o.length?(i=a.when.apply(a,o),j=i.pipe?"pipe":"then",i[j](function(){var b=a.Deferred(),c=arguments;return setTimeout(function(){b.resolve.apply(b,c)},1),b.promise()})[j](e||a.noop)):n[0]}}),b.register=d.register=function(b,c){var f,g={init:"init"};return 1===arguments.length?(c=b,c.responseMap=g):c.responseMap=e.extend(g,b),f=a.inherits(d,c),h.push(f),f},d}),b("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(a,b,c){var d=a.$;return d.extend(b.options,{pick:null,accept:null}),b.register({"add-btn":"addButton",refresh:"refresh",disable:"disable",enable:"enable"},{init:function(a){return this.pickers=[],a.pick&&this.addButton(a.pick)},refresh:function(){d.each(this.pickers,function(){this.refresh()})},addButton:function(b){var e,f,g,h=this,i=h.options,j=i.accept;if(b)return g=a.Deferred(),d.isPlainObject(b)||(b={id:b}),e=d.extend({},b,{accept:d.isPlainObject(j)?[j]:j,swf:i.swf,runtimeOrder:i.runtimeOrder}),f=new c(e),f.once("ready",g.resolve),f.on("select",function(a){h.owner.request("add-file",[a])}),f.init(),this.pickers.push(f),g.promise()},disable:function(){d.each(this.pickers,function(){this.disable()})},enable:function(){d.each(this.pickers,function(){this.enable()})}})}),b("lib/image",["base","runtime/client","lib/blob"],function(a,b,c){function d(a){this.options=e.extend({},d.options,a),b.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}var e=a.$;return d.options={quality:90,crop:!1,preserveHeaders:!0,allowMagnify:!0},a.inherits(b,{constructor:d,info:function(a){return a?(this._info=a,this):this._info},meta:function(a){return a?(this._meta=a,this):this._meta},loadFromBlob:function(a){var b=this,c=a.getRuid();this.connectRuntime(c,function(){b.exec("init",b.options),b.exec("loadFromBlob",a)})},resize:function(){var b=a.slice(arguments);return this.exec.apply(this,["resize"].concat(b))},getAsDataUrl:function(a){return this.exec("getAsDataUrl",a)},getAsBlob:function(a){var b=this.exec("getAsBlob",a);return new c(this.getRuid(),b)}}),d}),b("widgets/image",["base","uploader","lib/image","widgets/widget"],function(a,b,c){var d,e=a.$;return d=function(a){var b=0,c=[],d=function(){for(var d;c.length&&a>b;)d=c.shift(),b+=d[0],d[1]()};return function(a,e,f){c.push([e,f]),a.once("destroy",function(){b-=e,setTimeout(d,1)}),setTimeout(d,1)}}(5242880),e.extend(b.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),b.register({"make-thumb":"makeThumb","before-send-file":"compressImage"},{makeThumb:function(a,b,f,g){var h,i;return a=this.request("get-file",a),a.type.match(/^image/)?(h=e.extend({},this.options.thumb),e.isPlainObject(f)&&(h=e.extend(h,f),f=null),f=f||h.width,g=g||h.height,i=new c(h),i.once("load",function(){a._info=a._info||i.info(),a._meta=a._meta||i.meta(),i.resize(f,g)}),i.once("complete",function(){b(!1,i.getAsDataUrl(h.type)),i.destroy()}),i.once("error",function(){b(!0),i.destroy()}),void d(i,a.source.size,function(){a._info&&i.info(a._info),a._meta&&i.meta(a._meta),i.loadFromBlob(a.source)})):void b(!0)},compressImage:function(b){var d,f,g=this.options.compress||this.options.resize,h=g&&g.compressSize||307200;return b=this.request("get-file",b),!g||!~"image/jpeg,image/jpg".indexOf(b.type)||b.sizeb;b++)if(c=this._queue[b],a===c.getStatus())return c;return null},sort:function(a){"function"==typeof a&&this._queue.sort(a)},getFiles:function(){for(var a,b=[].slice.call(arguments,0),c=[],d=0,f=this._queue.length;f>d;d++)a=this._queue[d],(!b.length||~e.inArray(a.getStatus(),b))&&c.push(a);return c},_fileAdded:function(a){var b=this,c=this._map[a.id];c||(this._map[a.id]=a,a.on("statuschange",function(a,c){b._onFileStatusChange(a,c)})),a.setStatus(f.QUEUED)},_onFileStatusChange:function(a,b){var c=this.stats;switch(b){case f.PROGRESS:c.numOfProgress--;break;case f.QUEUED:c.numOfQueue--;break;case f.ERROR:c.numOfUploadFailed--;break;case f.INVALID:c.numOfInvalid--}switch(a){case f.QUEUED:c.numOfQueue++;break;case f.PROGRESS:c.numOfProgress++;break;case f.ERROR:c.numOfUploadFailed++;break;case f.COMPLETE:c.numOfSuccess++;break;case f.CANCELLED:c.numOfCancel++;break;case f.INVALID:c.numOfInvalid++}}}),b.installTo(d.prototype),d}),b("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(a,b,c,d,e,f){var g=a.$,h=/\.\w+$/,i=d.Status;return b.register({"sort-files":"sortFiles","add-file":"addFiles","get-file":"getFile","fetch-file":"fetchFile","get-stats":"getStats","get-files":"getFiles","remove-file":"removeFile",retry:"retry",reset:"reset","accept-file":"acceptFile"},{init:function(b){var d,e,h,i,j,k,l,m=this;if(g.isPlainObject(b.accept)&&(b.accept=[b.accept]),b.accept){for(j=[],h=0,e=b.accept.length;e>h;h++)i=b.accept[h].extensions,i&&j.push(i);j.length&&(k="\\."+j.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),m.accept=new RegExp(k,"i")}return m.queue=new c,m.stats=m.queue.stats,"html5"===this.request("predict-runtime-type")?(d=a.Deferred(),l=new f("Placeholder"),l.connectRuntime({runtimeOrder:"html5"},function(){m._ruid=l.getRuid(),d.resolve()}),d.promise()):void 0},_wrapFile:function(a){if(!(a instanceof d)){if(!(a instanceof e)){if(!this._ruid)throw new Error("Can't add external files.");a=new e(this._ruid,a)}a=new d(a)}return a},acceptFile:function(a){var b=!a||a.size<6||this.accept&&h.exec(a.name)&&!this.accept.test(a.name);return!b},_addFile:function(a){var b=this;return a=b._wrapFile(a),b.owner.trigger("beforeFileQueued",a)?b.acceptFile(a)?(b.queue.append(a),b.owner.trigger("fileQueued",a),a):void b.owner.trigger("error","Q_TYPE_DENIED",a):void 0},getFile:function(a){return this.queue.getFile(a)},addFiles:function(a){var b=this;a.length||(a=[a]),a=g.map(a,function(a){return b._addFile(a)}),b.owner.trigger("filesQueued",a),b.options.auto&&b.request("start-upload")},getStats:function(){return this.stats},removeFile:function(a){var b=this;a=a.id?a:b.queue.getFile(a),a.setStatus(i.CANCELLED),b.owner.trigger("fileDequeued",a)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(a,b){var c,d,e,f=this;if(a)return a=a.id?a:f.queue.getFile(a),a.setStatus(i.QUEUED),void(b||f.request("start-upload"));for(c=f.queue.getFiles(i.ERROR),d=0,e=c.length;e>d;d++)a=c[d],a.setStatus(i.QUEUED);f.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.queue=new c,this.stats=this.queue.stats}})}),b("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(a,b){return a.support=function(){return b.hasRuntime.apply(b,arguments)},a.register({"predict-runtime-type":"predictRuntmeType"},{init:function(){if(!this.predictRuntmeType())throw Error("Runtime Error")},predictRuntmeType:function(){var a,c,d=this.options.runtimeOrder||b.orders,e=this.type;if(!e)for(d=d.split(/\s*,\s*/g),a=0,c=d.length;c>a;a++)if(b.hasRuntime(d[a])){this.type=e=d[a];break}return e}})}),b("lib/transport",["base","runtime/client","mediator"],function(a,b,c){function d(a){var c=this;a=c.options=e.extend(!0,{},d.options,a||{}),b.call(this,"Transport"),this._blob=null,this._formData=a.formData||{},this._headers=a.headers||{},this.on("progress",this._timeout),this.on("load error",function(){c.trigger("progress",1),clearTimeout(c._timer)})}var e=a.$;return d.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:12e4,formData:{},headers:{},sendAsBinary:!1},e.extend(d.prototype,{appendBlob:function(a,b,c){var d=this,e=d.options;d.getRuid()&&d.disconnectRuntime(),d.connectRuntime(b.ruid,function(){d.exec("init")}),d._blob=b,e.fileVal=a||e.fileVal,e.filename=c||e.filename},append:function(a,b){"object"==typeof a?e.extend(this._formData,a):this._formData[a]=b},setRequestHeader:function(a,b){"object"==typeof a?e.extend(this._headers,a):this._headers[a]=b},send:function(a){this.exec("send",a),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var a=this,b=a.options.timeout;b&&(clearTimeout(a._timer),a._timer=setTimeout(function(){a.abort(),a.trigger("error","timeout")},b))}}),c.installTo(d.prototype),d}),b("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(a,b,c,d){function e(a,b){for(var c,d=[],e=a.source,f=e.size,g=b?Math.ceil(f/b):1,h=0,i=0;g>i;)c=Math.min(b,f-h),d.push({file:a,start:h,end:b?h+c:f,total:f,chunks:g,chunk:i++}),h+=c;return a.blocks=d.concat(),a.remaning=d.length,{file:a,has:function(){return!!d.length},fetch:function(){return d.shift()}}}var f=a.$,g=a.isPromise,h=c.Status;f.extend(b.options,{prepareNextFile:!1,chunked:!1,chunkSize:5242880,chunkRetry:2,threads:3,formData:null}),b.register({"start-upload":"start","stop-upload":"stop","skip-file":"skipFile","is-in-progress":"isInProgress"},{init:function(){var b=this.owner;this.runing=!1,this.pool=[],this.pending=[],this.remaning=0,this.__tick=a.bindFn(this._tick,this),b.on("uploadComplete",function(a){a.blocks&&f.each(a.blocks,function(a,b){b.transport&&(b.transport.abort(),b.transport.destroy()),delete b.transport}),delete a.blocks,delete a.remaning})},start:function(){var b=this;f.each(b.request("get-files",h.INVALID),function(){b.request("remove-file",this)}),b.runing||(b.runing=!0,f.each(b.pool,function(a,c){var d=c.file;d.getStatus()===h.INTERRUPT&&(d.setStatus(h.PROGRESS),b._trigged=!1,c.transport&&c.transport.send())}),b._trigged=!1,b.owner.trigger("startUpload"),a.nextTick(b.__tick))},stop:function(a){var b=this;b.runing!==!1&&(b.runing=!1,a&&f.each(b.pool,function(a,b){b.transport&&b.transport.abort(),b.file.setStatus(h.INTERRUPT)}),b.owner.trigger("stopUpload"))},isInProgress:function(){return!!this.runing},getStats:function(){return this.request("get-stats")},skipFile:function(a,b){a=this.request("get-file",a),a.setStatus(b||h.COMPLETE),a.skipped=!0,a.blocks&&f.each(a.blocks,function(a,b){var c=b.transport;c&&(c.abort(),c.destroy(),delete b.transport)}),this.owner.trigger("uploadSkip",a)},_tick:function(){var b,c,d=this,e=d.options;return d._promise?d._promise.always(d.__tick):void(d.pool.length1&&(f.each(k.blocks,function(a,b){d+=(b.percentage||0)*(b.end-b.start)}),c=d/k.size),i.trigger("uploadProgress",k,c||0)}),c=function(a){var c;return e=l.getResponseAsJson()||{},e._raw=l.getResponse(),c=function(b){a=b},i.trigger("uploadAccept",b,e,c)||(a=a||"server"),a},l.on("error",function(a,d){b.retried=b.retried||0,b.chunks>1&&~"http,abort".indexOf(a)&&b.retried1&&f.extend(m,{chunks:b.chunks,chunk:b.chunk}),i.trigger("uploadBeforeSend",b,m,n),l.appendBlob(j.fileVal,b.blob,k.name),l.append(m),l.setRequestHeader(n),l.send()},_finishFile:function(a,b,c){var d=this.owner;return d.request("after-send-file",arguments,function(){a.setStatus(h.COMPLETE),d.trigger("uploadSuccess",a,b,c)}).fail(function(b){a.getStatus()===h.PROGRESS&&a.setStatus(h.ERROR,b),d.trigger("uploadError",a,b)}).always(function(){d.trigger("uploadComplete",a)})}})}),b("runtime/compbase",[],function(){function a(a,b){this.owner=a,this.options=a.options,this.getRuntime=function(){return b},this.getRuid=function(){return b.uid},this.trigger=function(){return a.trigger.apply(a,arguments)}}return a}),b("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(b,c,d){function e(){var a={},d=this,e=this.destory;c.apply(d,arguments),d.type=f,d.exec=function(c,e){var f,h=this,i=h.uid,j=b.slice(arguments,2);return g[c]&&(f=a[i]=a[i]||new g[c](h,d),f[e])?f[e].apply(f,j):void 0},d.destory=function(){return e&&e.apply(this,arguments)}}var f="html5",g={};return b.inherits(c,{constructor:e,init:function(){var a=this;setTimeout(function(){a.trigger("ready")},1)}}),e.register=function(a,c){var e=g[a]=b.inherits(d,c);return e},a.Blob&&a.FileReader&&a.DataView&&c.addRuntime(f,e),e}),b("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(a,b){return a.register("Blob",{slice:function(a,c){var d=this.owner.source,e=d.slice||d.webkitSlice||d.mozSlice;return d=e.call(d,a,c),new b(this.getRuid(),d)}})}),b("runtime/html5/filepicker",["base","runtime/html5/runtime"],function(a,b){var c=a.$;return b.register("FilePicker",{init:function(){var a,b,d,e,f=this.getRuntime().getContainer(),g=this,h=g.owner,i=g.options,j=c(document.createElement("label")),k=c(document.createElement("input"));if(k.attr("type","file"),k.attr("name",i.name),k.addClass("webuploader-element-invisible"),j.on("click",function(){k.trigger("click")}),j.css({opacity:0,width:"100%",height:"100%",display:"block",cursor:"pointer",background:"#ffffff"}),i.multiple&&k.attr("multiple","multiple"),i.accept&&i.accept.length>0){for(a=[],b=0,d=i.accept.length;d>b;b++)a.push(i.accept[b].mimeTypes);k.attr("accept",a.join(","))}f.append(k),f.append(j),e=function(a){h.trigger(a.type)},k.on("change",function(a){var b,d=arguments.callee;g.files=a.target.files,b=this.cloneNode(!0),this.parentNode.replaceChild(b,this),k.off(),k=c(b).on("change",d).on("mouseenter mouseleave",e),h.trigger("change")}),j.on("mouseenter mouseleave",e)},getFiles:function(){return this.files},destroy:function(){}})}),b("runtime/html5/util",["base"],function(b){var c=a.createObjectURL&&a||a.URL&&URL.revokeObjectURL&&URL||a.webkitURL,d=b.noop,e=d;return c&&(d=function(){return c.createObjectURL.apply(c,arguments)},e=function(){return c.revokeObjectURL.apply(c,arguments)}),{createObjectURL:d,revokeObjectURL:e,dataURL2Blob:function(a){var b,c,d,e,f,g;for(g=a.split(","),b=~g[0].indexOf("base64")?atob(g[1]):decodeURIComponent(g[1]),d=new ArrayBuffer(b.length),c=new Uint8Array(d),e=0;ei&&(d=h.getUint16(i),d>=65504&&65519>=d||65534===d)&&(e=h.getUint16(i+2)+2,!(i+e>h.byteLength));){if(f=b.parsers[d],!c&&f)for(g=0;g6&&(l.imageHead=a.slice?a.slice(2,k):new Uint8Array(a).subarray(2,k))}return l}},updateImageHead:function(a,b){var c,d,e,f=this._parse(a,!0);return e=2,f.imageHead&&(e=2+f.imageHead.byteLength),d=a.slice?a.slice(e):new Uint8Array(a).subarray(e),c=new Uint8Array(b.byteLength+2+d.byteLength),c[0]=255,c[1]=216,c.set(new Uint8Array(b),2),c.set(new Uint8Array(d),b.byteLength+2),c.buffer}},a.parseMeta=function(){return b.parse.apply(b,arguments)},a.updateImageHead=function(){return b.updateImageHead.apply(b,arguments)},b}),b("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],function(a,b){var c={};return c.ExifMap=function(){return this},c.ExifMap.prototype.map={Orientation:274},c.ExifMap.prototype.get=function(a){return this[a]||this[this.map[a]]},c.exifTagTypes={1:{getValue:function(a,b){return a.getUint8(b)},size:1},2:{getValue:function(a,b){return String.fromCharCode(a.getUint8(b))},size:1,ascii:!0},3:{getValue:function(a,b,c){return a.getUint16(b,c)},size:2},4:{getValue:function(a,b,c){return a.getUint32(b,c) +/* WebUploader 0.1.2 */!function(a,b){var c,d={},e=function(a,b){var c,d,e;if("string"==typeof a)return h(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));return b.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){var f,g={exports:b};"function"==typeof b&&(c.length||(c=[e,g.exports,g]),f=b.apply(null,c),void 0!==f&&(g.exports=f)),d[a]=g.exports},h=function(b){var c=d[b]||a[b];if(!c)throw new Error("`"+b+"` is undefined");return c},i=function(a){var b,c,e,f,g,h;h=function(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)};for(b in d)if(c=a,d.hasOwnProperty(b)){for(e=b.split("/"),g=h(e.pop());f=h(e.shift());)c[f]=c[f]||{},c=c[f];c[g]=d[b]}},j=b(a,f,e);i(j),"object"==typeof module&&"object"==typeof module.exports?module.exports=j:"function"==typeof define&&define.amd?define([],j):(c=a.WebUploader,a.WebUploader=j,a.WebUploader.noConflict=function(){a.WebUploader=c})}(this,function(a,b,c){return b("dollar-third",[],function(){return a.jQuery||a.Zepto}),b("dollar",["dollar-third"],function(a){return a}),b("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(a){return a&&"function"==typeof a.then}}}),b("promise",["promise-third"],function(a){return a}),b("base",["dollar","promise"],function(b,c){function d(a){return function(){return h.apply(a,arguments)}}function e(a,b){return function(){return a.apply(b,arguments)}}function f(a){var b;return Object.create?Object.create(a):(b=function(){},b.prototype=a,new b)}var g=function(){},h=Function.call;return{version:"0.1.2",$:b,Deferred:c.Deferred,isPromise:c.isPromise,when:c.when,browser:function(a){var b={},c=a.match(/WebKit\/([\d.]+)/),d=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),e=a.match(/MSIE\s([\d\.]+)/)||a.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=a.match(/Firefox\/([\d.]+)/),g=a.match(/Safari\/([\d.]+)/),h=a.match(/OPR\/([\d.]+)/);return c&&(b.webkit=parseFloat(c[1])),d&&(b.chrome=parseFloat(d[1])),e&&(b.ie=parseFloat(e[1])),f&&(b.firefox=parseFloat(f[1])),g&&(b.safari=parseFloat(g[1])),h&&(b.opera=parseFloat(h[1])),b}(navigator.userAgent),os:function(a){var b={},c=a.match(/(?:Android);?[\s\/]+([\d.]+)?/),d=a.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return c&&(b.android=parseFloat(c[1])),d&&(b.ios=parseFloat(d[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(a,c,d){var e;return"function"==typeof c?(e=c,c=null):e=c&&c.hasOwnProperty("constructor")?c.constructor:function(){return a.apply(this,arguments)},b.extend(!0,e,a,d||{}),e.__super__=a.prototype,e.prototype=f(a.prototype),c&&b.extend(!0,e.prototype,c),e},noop:g,bindFn:e,log:function(){return a.console?e(console.log,console):g}(),nextTick:function(){return function(a){setTimeout(a,1)}}(),slice:d([].slice),guid:function(){var a=0;return function(b){for(var c=(+new Date).toString(32),d=0;5>d;d++)c+=Math.floor(65535*Math.random()).toString(32);return(b||"wu_")+c+(a++).toString(32)}}(),formatSize:function(a,b,c){var d;for(c=c||["B","K","M","G","TB"];(d=c.shift())&&a>1024;)a/=1024;return("B"===d?a:a.toFixed(b||2))+d}}}),b("mediator",["base"],function(a){function b(a,b,c,d){return f.grep(a,function(a){return!(!a||b&&a.e!==b||c&&a.cb!==c&&a.cb._cb!==c||d&&a.ctx!==d)})}function c(a,b,c){f.each((a||"").split(h),function(a,d){c(d,b)})}function d(a,b){for(var c,d=!1,e=-1,f=a.length;++e1?void(d.isPlainObject(b)&&d.isPlainObject(c[a])?d.extend(c[a],b):c[a]=b):a?c[a]:c},getStats:function(){var a=this.request("get-stats");return{successNum:a.numOfSuccess,cancelNum:a.numOfCancel,invalidNum:a.numOfInvalid,uploadFailNum:a.numOfUploadFailed,queueNum:a.numOfQueue}},trigger:function(a){var c=[].slice.call(arguments,1),e=this.options,f="on"+a.substring(0,1).toUpperCase()+a.substring(1);return b.trigger.apply(this,arguments)===!1||d.isFunction(e[f])&&e[f].apply(this,c)===!1||d.isFunction(this[f])&&this[f].apply(this,c)===!1||b.trigger.apply(b,[this,a].concat(c))===!1?!1:!0},request:a.noop}),a.create=c.create=function(a){return new c(a)},a.Uploader=c,c}),b("runtime/runtime",["base","mediator"],function(a,b){function c(b){this.options=d.extend({container:document.body},b),this.uid=a.guid("rt_")}var d=a.$,e={},f=function(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null};return d.extend(c.prototype,{getContainer:function(){var a,b,c=this.options;return this._container?this._container:(a=d(c.container||document.body),b=d(document.createElement("div")),b.attr("id","rt_"+this.uid),b.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),a.append(b),a.addClass("webuploader-container"),this._container=b,b)},init:a.noop,exec:a.noop,destroy:function(){this._container&&this._container.parentNode.removeChild(this.__container),this.off()}}),c.orders="html5,flash",c.addRuntime=function(a,b){e[a]=b},c.hasRuntime=function(a){return!!(a?e[a]:f(e))},c.create=function(a,b){var g,h;if(b=b||c.orders,d.each(b.split(/\s*,\s*/g),function(){return e[this]?(g=this,!1):void 0}),g=g||f(e),!g)throw new Error("Runtime Error");return h=new e[g](a)},b.installTo(c.prototype),c}),b("runtime/client",["base","mediator","runtime/runtime"],function(a,b,c){function d(b,d){var f,g=a.Deferred();this.uid=a.guid("client_"),this.runtimeReady=function(a){return g.done(a)},this.connectRuntime=function(b,h){if(f)throw new Error("already connected!");return g.done(h),"string"==typeof b&&e.get(b)&&(f=e.get(b)),f=f||e.get(null,d),f?(a.$.extend(f.options,b),f.__promise.then(g.resolve),f.__client++):(f=c.create(b,b.runtimeOrder),f.__promise=g.promise(),f.once("ready",g.resolve),f.init(),e.add(f),f.__client=1),d&&(f.__standalone=d),f},this.getRuntime=function(){return f},this.disconnectRuntime=function(){f&&(f.__client--,f.__client<=0&&(e.remove(f),delete f.__promise,f.destroy()),f=null)},this.exec=function(){if(f){var c=a.slice(arguments);return b&&c.unshift(b),f.exec.apply(this,c)}},this.getRuid=function(){return f&&f.uid},this.destroy=function(a){return function(){a&&a.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}var e;return e=function(){var a={};return{add:function(b){a[b.uid]=b},get:function(b,c){var d;if(b)return a[b];for(d in a)if(!c||!a[d].__standalone)return a[d];return null},remove:function(b){delete a[b.uid]}}}(),b.installTo(d.prototype),d}),b("lib/blob",["base","runtime/client"],function(a,b){function c(a,c){var d=this;d.source=c,d.ruid=a,b.call(d,"Blob"),this.uid=c.uid||this.uid,this.type=c.type||"",this.size=c.size||0,a&&d.connectRuntime(a)}return a.inherits(b,{constructor:c,slice:function(a,b){return this.exec("slice",a,b)},getSource:function(){return this.source}}),c}),b("lib/file",["base","lib/blob"],function(a,b){function c(a,c){var f;b.apply(this,arguments),this.name=c.name||"untitled"+d++,f=e.exec(c.name)?RegExp.$1.toLowerCase():"",!f&&this.type&&(f=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(this.type)?RegExp.$1.toLowerCase():"",this.name+="."+f),!this.type&&~"jpg,jpeg,png,gif,bmp".indexOf(f)&&(this.type="image/"+("jpg"===f?"jpeg":f)),this.ext=f,this.lastModifiedDate=c.lastModifiedDate||(new Date).toLocaleString()}var d=1,e=/\.([^.]+)$/;return a.inherits(b,c)}),b("lib/filepicker",["base","runtime/client","lib/file"],function(b,c,d){function e(a){if(a=this.options=f.extend({},e.options,a),a.container=f(a.id),!a.container.length)throw new Error("按钮指定错误");a.innerHTML=a.innerHTML||a.label||a.container.html()||"",a.button=f(a.button||document.createElement("div")),a.button.html(a.innerHTML),a.container.html(a.button),c.call(this,"FilePicker",!0)}var f=b.$;return e.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file"},b.inherits(c,{constructor:e,init:function(){var b=this,c=b.options,e=c.button;e.addClass("webuploader-pick"),b.on("all",function(a){var g;switch(a){case"mouseenter":e.addClass("webuploader-pick-hover");break;case"mouseleave":e.removeClass("webuploader-pick-hover");break;case"change":g=b.exec("getFiles"),b.trigger("select",f.map(g,function(a){return a=new d(b.getRuid(),a),a._refer=c.container,a}),c.container)}}),b.connectRuntime(c,function(){b.refresh(),b.exec("init",c),b.trigger("ready")}),f(a).on("resize",function(){b.refresh()})},refresh:function(){var a=this.getRuntime().getContainer(),b=this.options.button,c=b.outerWidth?b.outerWidth():b.width(),d=b.outerHeight?b.outerHeight():b.height(),e=b.offset();c&&d&&a.css({bottom:"auto",right:"auto",width:c+"px",height:d+"px"}).offset(e)},enable:function(){var a=this.options.button;a.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var a=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),a.addClass("webuploader-pick-disable")},destroy:function(){this.runtime&&(this.exec("destroy"),this.disconnectRuntime())}}),e}),b("widgets/widget",["base","uploader"],function(a,b){function c(a){if(!a)return!1;var b=a.length,c=e.type(a);return 1===a.nodeType&&b?!0:"array"===c||"function"!==c&&"string"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){this.owner=a,this.options=a.options}var e=a.$,f=b.prototype._init,g={},h=[];return e.extend(d.prototype,{init:a.noop,invoke:function(a,b){var c=this.responseMap;return c&&a in c&&c[a]in this&&e.isFunction(this[c[a]])?this[c[a]].apply(this,b):g},request:function(){return this.owner.request.apply(this.owner,arguments)}}),e.extend(b.prototype,{_init:function(){var a=this,b=a._widgets=[];return e.each(h,function(c,d){b.push(new d(a))}),f.apply(a,arguments)},request:function(b,d,e){var f,h,i,j,k=0,l=this._widgets,m=l.length,n=[],o=[];for(d=c(d)?d:[d];m>k;k++)f=l[k],h=f.invoke(b,d),h!==g&&(a.isPromise(h)?o.push(h):n.push(h));return e||o.length?(i=a.when.apply(a,o),j=i.pipe?"pipe":"then",i[j](function(){var b=a.Deferred(),c=arguments;return setTimeout(function(){b.resolve.apply(b,c)},1),b.promise()})[j](e||a.noop)):n[0]}}),b.register=d.register=function(b,c){var f,g={init:"init"};return 1===arguments.length?(c=b,c.responseMap=g):c.responseMap=e.extend(g,b),f=a.inherits(d,c),h.push(f),f},d}),b("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(a,b,c){var d=a.$;return d.extend(b.options,{pick:null,accept:null}),b.register({"add-btn":"addButton",refresh:"refresh",disable:"disable",enable:"enable"},{init:function(a){return this.pickers=[],a.pick&&this.addButton(a.pick)},refresh:function(){d.each(this.pickers,function(){this.refresh()})},addButton:function(b){var e,f,g,h=this,i=h.options,j=i.accept;if(b)return g=a.Deferred(),d.isPlainObject(b)||(b={id:b}),e=d.extend({},b,{accept:d.isPlainObject(j)?[j]:j,swf:i.swf,runtimeOrder:i.runtimeOrder}),f=new c(e),f.once("ready",g.resolve),f.on("select",function(a){h.owner.request("add-file",[a])}),f.init(),this.pickers.push(f),g.promise()},disable:function(){d.each(this.pickers,function(){this.disable()})},enable:function(){d.each(this.pickers,function(){this.enable()})}})}),b("lib/image",["base","runtime/client","lib/blob"],function(a,b,c){function d(a){this.options=e.extend({},d.options,a),b.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}var e=a.$;return d.options={quality:90,crop:!1,preserveHeaders:!0,allowMagnify:!0},a.inherits(b,{constructor:d,info:function(a){return a?(this._info=a,this):this._info},meta:function(a){return a?(this._meta=a,this):this._meta},loadFromBlob:function(a){var b=this,c=a.getRuid();this.connectRuntime(c,function(){b.exec("init",b.options),b.exec("loadFromBlob",a)})},resize:function(){var b=a.slice(arguments);return this.exec.apply(this,["resize"].concat(b))},getAsDataUrl:function(a){return this.exec("getAsDataUrl",a)},getAsBlob:function(a){var b=this.exec("getAsBlob",a);return new c(this.getRuid(),b)}}),d}),b("widgets/image",["base","uploader","lib/image","widgets/widget"],function(a,b,c){var d,e=a.$;return d=function(a){var b=0,c=[],d=function(){for(var d;c.length&&a>b;)d=c.shift(),b+=d[0],d[1]()};return function(a,e,f){c.push([e,f]),a.once("destroy",function(){b-=e,setTimeout(d,1)}),setTimeout(d,1)}}(5242880),e.extend(b.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),b.register({"make-thumb":"makeThumb","before-send-file":"compressImage"},{makeThumb:function(a,b,f,g){var h,i;return a=this.request("get-file",a),a.type.match(/^image/)?(h=e.extend({},this.options.thumb),e.isPlainObject(f)&&(h=e.extend(h,f),f=null),f=f||h.width,g=g||h.height,i=new c(h),i.once("load",function(){a._info=a._info||i.info(),a._meta=a._meta||i.meta(),i.resize(f,g)}),i.once("complete",function(){b(!1,i.getAsDataUrl(h.type)),i.destroy()}),i.once("error",function(){b(!0),i.destroy()}),void d(i,a.source.size,function(){a._info&&i.info(a._info),a._meta&&i.meta(a._meta),i.loadFromBlob(a.source)})):void b(!0)},compressImage:function(b){var d,f,g=this.options.compress||this.options.resize,h=g&&g.compressSize||307200;return b=this.request("get-file",b),!g||!~"images/jpeg,images/jpg".indexOf(b.type)||b.sizeb;b++)if(c=this._queue[b],a===c.getStatus())return c;return null},sort:function(a){"function"==typeof a&&this._queue.sort(a)},getFiles:function(){for(var a,b=[].slice.call(arguments,0),c=[],d=0,f=this._queue.length;f>d;d++)a=this._queue[d],(!b.length||~e.inArray(a.getStatus(),b))&&c.push(a);return c},_fileAdded:function(a){var b=this,c=this._map[a.id];c||(this._map[a.id]=a,a.on("statuschange",function(a,c){b._onFileStatusChange(a,c)})),a.setStatus(f.QUEUED)},_onFileStatusChange:function(a,b){var c=this.stats;switch(b){case f.PROGRESS:c.numOfProgress--;break;case f.QUEUED:c.numOfQueue--;break;case f.ERROR:c.numOfUploadFailed--;break;case f.INVALID:c.numOfInvalid--}switch(a){case f.QUEUED:c.numOfQueue++;break;case f.PROGRESS:c.numOfProgress++;break;case f.ERROR:c.numOfUploadFailed++;break;case f.COMPLETE:c.numOfSuccess++;break;case f.CANCELLED:c.numOfCancel++;break;case f.INVALID:c.numOfInvalid++}}}),b.installTo(d.prototype),d}),b("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(a,b,c,d,e,f){var g=a.$,h=/\.\w+$/,i=d.Status;return b.register({"sort-files":"sortFiles","add-file":"addFiles","get-file":"getFile","fetch-file":"fetchFile","get-stats":"getStats","get-files":"getFiles","remove-file":"removeFile",retry:"retry",reset:"reset","accept-file":"acceptFile"},{init:function(b){var d,e,h,i,j,k,l,m=this;if(g.isPlainObject(b.accept)&&(b.accept=[b.accept]),b.accept){for(j=[],h=0,e=b.accept.length;e>h;h++)i=b.accept[h].extensions,i&&j.push(i);j.length&&(k="\\."+j.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),m.accept=new RegExp(k,"i")}return m.queue=new c,m.stats=m.queue.stats,"html5"===this.request("predict-runtime-type")?(d=a.Deferred(),l=new f("Placeholder"),l.connectRuntime({runtimeOrder:"html5"},function(){m._ruid=l.getRuid(),d.resolve()}),d.promise()):void 0},_wrapFile:function(a){if(!(a instanceof d)){if(!(a instanceof e)){if(!this._ruid)throw new Error("Can't add external files.");a=new e(this._ruid,a)}a=new d(a)}return a},acceptFile:function(a){var b=!a||a.size<6||this.accept&&h.exec(a.name)&&!this.accept.test(a.name);return!b},_addFile:function(a){var b=this;return a=b._wrapFile(a),b.owner.trigger("beforeFileQueued",a)?b.acceptFile(a)?(b.queue.append(a),b.owner.trigger("fileQueued",a),a):void b.owner.trigger("error","Q_TYPE_DENIED",a):void 0},getFile:function(a){return this.queue.getFile(a)},addFiles:function(a){var b=this;a.length||(a=[a]),a=g.map(a,function(a){return b._addFile(a)}),b.owner.trigger("filesQueued",a),b.options.auto&&b.request("start-upload")},getStats:function(){return this.stats},removeFile:function(a){var b=this;a=a.id?a:b.queue.getFile(a),a.setStatus(i.CANCELLED),b.owner.trigger("fileDequeued",a)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(a,b){var c,d,e,f=this;if(a)return a=a.id?a:f.queue.getFile(a),a.setStatus(i.QUEUED),void(b||f.request("start-upload"));for(c=f.queue.getFiles(i.ERROR),d=0,e=c.length;e>d;d++)a=c[d],a.setStatus(i.QUEUED);f.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.queue=new c,this.stats=this.queue.stats}})}),b("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(a,b){return a.support=function(){return b.hasRuntime.apply(b,arguments)},a.register({"predict-runtime-type":"predictRuntmeType"},{init:function(){if(!this.predictRuntmeType())throw Error("Runtime Error")},predictRuntmeType:function(){var a,c,d=this.options.runtimeOrder||b.orders,e=this.type;if(!e)for(d=d.split(/\s*,\s*/g),a=0,c=d.length;c>a;a++)if(b.hasRuntime(d[a])){this.type=e=d[a];break}return e}})}),b("lib/transport",["base","runtime/client","mediator"],function(a,b,c){function d(a){var c=this;a=c.options=e.extend(!0,{},d.options,a||{}),b.call(this,"Transport"),this._blob=null,this._formData=a.formData||{},this._headers=a.headers||{},this.on("progress",this._timeout),this.on("load error",function(){c.trigger("progress",1),clearTimeout(c._timer)})}var e=a.$;return d.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:12e4,formData:{},headers:{},sendAsBinary:!1},e.extend(d.prototype,{appendBlob:function(a,b,c){var d=this,e=d.options;d.getRuid()&&d.disconnectRuntime(),d.connectRuntime(b.ruid,function(){d.exec("init")}),d._blob=b,e.fileVal=a||e.fileVal,e.filename=c||e.filename},append:function(a,b){"object"==typeof a?e.extend(this._formData,a):this._formData[a]=b},setRequestHeader:function(a,b){"object"==typeof a?e.extend(this._headers,a):this._headers[a]=b},send:function(a){this.exec("send",a),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var a=this,b=a.options.timeout;b&&(clearTimeout(a._timer),a._timer=setTimeout(function(){a.abort(),a.trigger("error","timeout")},b))}}),c.installTo(d.prototype),d}),b("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(a,b,c,d){function e(a,b){for(var c,d=[],e=a.source,f=e.size,g=b?Math.ceil(f/b):1,h=0,i=0;g>i;)c=Math.min(b,f-h),d.push({file:a,start:h,end:b?h+c:f,total:f,chunks:g,chunk:i++}),h+=c;return a.blocks=d.concat(),a.remaning=d.length,{file:a,has:function(){return!!d.length},fetch:function(){return d.shift()}}}var f=a.$,g=a.isPromise,h=c.Status;f.extend(b.options,{prepareNextFile:!1,chunked:!1,chunkSize:5242880,chunkRetry:2,threads:3,formData:null}),b.register({"start-upload":"start","stop-upload":"stop","skip-file":"skipFile","is-in-progress":"isInProgress"},{init:function(){var b=this.owner;this.runing=!1,this.pool=[],this.pending=[],this.remaning=0,this.__tick=a.bindFn(this._tick,this),b.on("uploadComplete",function(a){a.blocks&&f.each(a.blocks,function(a,b){b.transport&&(b.transport.abort(),b.transport.destroy()),delete b.transport}),delete a.blocks,delete a.remaning})},start:function(){var b=this;f.each(b.request("get-files",h.INVALID),function(){b.request("remove-file",this)}),b.runing||(b.runing=!0,f.each(b.pool,function(a,c){var d=c.file;d.getStatus()===h.INTERRUPT&&(d.setStatus(h.PROGRESS),b._trigged=!1,c.transport&&c.transport.send())}),b._trigged=!1,b.owner.trigger("startUpload"),a.nextTick(b.__tick))},stop:function(a){var b=this;b.runing!==!1&&(b.runing=!1,a&&f.each(b.pool,function(a,b){b.transport&&b.transport.abort(),b.file.setStatus(h.INTERRUPT)}),b.owner.trigger("stopUpload"))},isInProgress:function(){return!!this.runing},getStats:function(){return this.request("get-stats")},skipFile:function(a,b){a=this.request("get-file",a),a.setStatus(b||h.COMPLETE),a.skipped=!0,a.blocks&&f.each(a.blocks,function(a,b){var c=b.transport;c&&(c.abort(),c.destroy(),delete b.transport)}),this.owner.trigger("uploadSkip",a)},_tick:function(){var b,c,d=this,e=d.options;return d._promise?d._promise.always(d.__tick):void(d.pool.length1&&(f.each(k.blocks,function(a,b){d+=(b.percentage||0)*(b.end-b.start)}),c=d/k.size),i.trigger("uploadProgress",k,c||0)}),c=function(a){var c;return e=l.getResponseAsJson()||{},e._raw=l.getResponse(),c=function(b){a=b},i.trigger("uploadAccept",b,e,c)||(a=a||"server"),a},l.on("error",function(a,d){b.retried=b.retried||0,b.chunks>1&&~"http,abort".indexOf(a)&&b.retried1&&f.extend(m,{chunks:b.chunks,chunk:b.chunk}),i.trigger("uploadBeforeSend",b,m,n),l.appendBlob(j.fileVal,b.blob,k.name),l.append(m),l.setRequestHeader(n),l.send()},_finishFile:function(a,b,c){var d=this.owner;return d.request("after-send-file",arguments,function(){a.setStatus(h.COMPLETE),d.trigger("uploadSuccess",a,b,c)}).fail(function(b){a.getStatus()===h.PROGRESS&&a.setStatus(h.ERROR,b),d.trigger("uploadError",a,b)}).always(function(){d.trigger("uploadComplete",a)})}})}),b("runtime/compbase",[],function(){function a(a,b){this.owner=a,this.options=a.options,this.getRuntime=function(){return b},this.getRuid=function(){return b.uid},this.trigger=function(){return a.trigger.apply(a,arguments)}}return a}),b("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(b,c,d){function e(){var a={},d=this,e=this.destory;c.apply(d,arguments),d.type=f,d.exec=function(c,e){var f,h=this,i=h.uid,j=b.slice(arguments,2);return g[c]&&(f=a[i]=a[i]||new g[c](h,d),f[e])?f[e].apply(f,j):void 0},d.destory=function(){return e&&e.apply(this,arguments)}}var f="html5",g={};return b.inherits(c,{constructor:e,init:function(){var a=this;setTimeout(function(){a.trigger("ready")},1)}}),e.register=function(a,c){var e=g[a]=b.inherits(d,c);return e},a.Blob&&a.FileReader&&a.DataView&&c.addRuntime(f,e),e}),b("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(a,b){return a.register("Blob",{slice:function(a,c){var d=this.owner.source,e=d.slice||d.webkitSlice||d.mozSlice;return d=e.call(d,a,c),new b(this.getRuid(),d)}})}),b("runtime/html5/filepicker",["base","runtime/html5/runtime"],function(a,b){var c=a.$;return b.register("FilePicker",{init:function(){var a,b,d,e,f=this.getRuntime().getContainer(),g=this,h=g.owner,i=g.options,j=c(document.createElement("label")),k=c(document.createElement("input"));if(k.attr("type","file"),k.attr("name",i.name),k.addClass("webuploader-element-invisible"),j.on("click",function(){k.trigger("click")}),j.css({opacity:0,width:"100%",height:"100%",display:"block",cursor:"pointer",background:"#ffffff"}),i.multiple&&k.attr("multiple","multiple"),i.accept&&i.accept.length>0){for(a=[],b=0,d=i.accept.length;d>b;b++)a.push(i.accept[b].mimeTypes);k.attr("accept",a.join(","))}f.append(k),f.append(j),e=function(a){h.trigger(a.type)},k.on("change",function(a){var b,d=arguments.callee;g.files=a.target.files,b=this.cloneNode(!0),this.parentNode.replaceChild(b,this),k.off(),k=c(b).on("change",d).on("mouseenter mouseleave",e),h.trigger("change")}),j.on("mouseenter mouseleave",e)},getFiles:function(){return this.files},destroy:function(){}})}),b("runtime/html5/util",["base"],function(b){var c=a.createObjectURL&&a||a.URL&&URL.revokeObjectURL&&URL||a.webkitURL,d=b.noop,e=d;return c&&(d=function(){return c.createObjectURL.apply(c,arguments)},e=function(){return c.revokeObjectURL.apply(c,arguments)}),{createObjectURL:d,revokeObjectURL:e,dataURL2Blob:function(a){var b,c,d,e,f,g;for(g=a.split(","),b=~g[0].indexOf("base64")?atob(g[1]):decodeURIComponent(g[1]),d=new ArrayBuffer(b.length),c=new Uint8Array(d),e=0;ei&&(d=h.getUint16(i),d>=65504&&65519>=d||65534===d)&&(e=h.getUint16(i+2)+2,!(i+e>h.byteLength));){if(f=b.parsers[d],!c&&f)for(g=0;g6&&(l.imageHead=a.slice?a.slice(2,k):new Uint8Array(a).subarray(2,k))}return l}},updateImageHead:function(a,b){var c,d,e,f=this._parse(a,!0);return e=2,f.imageHead&&(e=2+f.imageHead.byteLength),d=a.slice?a.slice(e):new Uint8Array(a).subarray(e),c=new Uint8Array(b.byteLength+2+d.byteLength),c[0]=255,c[1]=216,c.set(new Uint8Array(b),2),c.set(new Uint8Array(d),b.byteLength+2),c.buffer}},a.parseMeta=function(){return b.parse.apply(b,arguments)},a.updateImageHead=function(){return b.updateImageHead.apply(b,arguments)},b}),b("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],function(a,b){var c={};return c.ExifMap=function(){return this},c.ExifMap.prototype.map={Orientation:274},c.ExifMap.prototype.get=function(a){return this[a]||this[this.map[a]]},c.exifTagTypes={1:{getValue:function(a,b){return a.getUint8(b)},size:1},2:{getValue:function(a,b){return String.fromCharCode(a.getUint8(b))},size:1,ascii:!0},3:{getValue:function(a,b,c){return a.getUint16(b,c)},size:2},4:{getValue:function(a,b,c){return a.getUint32(b,c) },size:4},5:{getValue:function(a,b,c){return a.getUint32(b,c)/a.getUint32(b+4,c)},size:8},9:{getValue:function(a,b,c){return a.getInt32(b,c)},size:4},10:{getValue:function(a,b,c){return a.getInt32(b,c)/a.getInt32(b+4,c)},size:8}},c.exifTagTypes[7]=c.exifTagTypes[1],c.getExifValue=function(b,d,e,f,g,h){var i,j,k,l,m,n,o=c.exifTagTypes[f];if(!o)return void a.log("Invalid Exif data: Invalid tag type.");if(i=o.size*g,j=i>4?d+b.getUint32(e+8,h):e+8,j+i>b.byteLength)return void a.log("Invalid Exif data: Invalid data offset.");if(1===g)return o.getValue(b,j,h);for(k=[],l=0;g>l;l+=1)k[l]=o.getValue(b,j+l*o.size,h);if(o.ascii){for(m="",l=0;lb.byteLength)return void a.log("Invalid Exif data: Invalid directory offset.");if(g=b.getUint16(d,e),h=d+2+12*g,h+4>b.byteLength)return void a.log("Invalid Exif data: Invalid directory size.");for(i=0;g>i;i+=1)this.parseExifTag(b,c,d+2+12*i,e,f);return b.getUint32(h,e)},c.parseExifData=function(b,d,e,f){var g,h,i=d+10;if(1165519206===b.getUint32(d+4)){if(i+8>b.byteLength)return void a.log("Invalid Exif data: Invalid segment size.");if(0!==b.getUint16(d+8))return void a.log("Invalid Exif data: Missing byte alignment offset.");switch(b.getUint16(i)){case 18761:g=!0;break;case 19789:g=!1;break;default:return void a.log("Invalid Exif data: Invalid byte alignment marker.")}if(42!==b.getUint16(i+2,g))return void a.log("Invalid Exif data: Missing TIFF marker.");h=b.getUint32(i+4,g),f.exif=new c.ExifMap,h=c.parseExifTags(b,i,i+h,g,f)}},b.parsers[65505].push(c.parseExifData),c}),b("runtime/html5/image",["base","runtime/html5/runtime","runtime/html5/util"],function(a,b,c){var d="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D";return b.register("Image",{modified:!1,init:function(){var a=this,b=new Image;b.onload=function(){a._info={type:a.type,width:this.width,height:this.height},a._metas||"image/jpeg"!==a.type?a.owner.trigger("load"):c.parseMeta(a._blob,function(b,c){a._metas=c,a.owner.trigger("load")})},b.onerror=function(){a.owner.trigger("error")},a._img=b},loadFromBlob:function(a){var b=this,d=b._img;b._blob=a,b.type=a.type,d.src=c.createObjectURL(a.getSource()),b.owner.once("load",function(){c.revokeObjectURL(d.src)})},resize:function(a,b){var c=this._canvas||(this._canvas=document.createElement("canvas"));this._resize(this._img,c,a,b),this._blob=null,this.modified=!0,this.owner.trigger("complete")},getAsBlob:function(a){var b,d=this._blob,e=this.options;if(a=a||this.type,this.modified||this.type!==a){if(b=this._canvas,"image/jpeg"===a){if(d=c.canvasToDataUrl(b,"image/jpeg",e.quality),e.preserveHeaders&&this._metas&&this._metas.imageHead)return d=c.dataURL2ArrayBuffer(d),d=c.updateImageHead(d,this._metas.imageHead),d=c.arrayBufferToBlob(d,a)}else d=c.canvasToDataUrl(b,a);d=c.dataURL2Blob(d)}return d},getAsDataUrl:function(a){var b=this.options;return a=a||this.type,"image/jpeg"===a?c.canvasToDataUrl(this._canvas,a,b.quality):this._canvas.toDataURL(a)},getOrientation:function(){return this._metas&&this._metas.exif&&this._metas.exif.get("Orientation")||1},info:function(a){return a?(this._info=a,this):this._info},meta:function(a){return a?(this._meta=a,this):this._meta},destroy:function(){var a=this._canvas;this._img.onload=null,a&&(a.getContext("2d").clearRect(0,0,a.width,a.height),a.width=a.height=0,this._canvas=null),this._img.src=d,this._img=this._blob=null},_resize:function(a,b,c,d){var e,f,g,h,i,j=this.options,k=a.width,l=a.height,m=this.getOrientation();~[5,6,7,8].indexOf(m)&&(c^=d,d^=c,c^=d),e=Math[j.crop?"max":"min"](c/k,d/l),j.allowMagnify||(e=Math.min(1,e)),f=k*e,g=l*e,j.crop?(b.width=c,b.height=d):(b.width=f,b.height=g),h=(b.width-f)/2,i=(b.height-g)/2,j.preserveHeaders||this._rotate2Orientaion(b,m),this._renderImageToCanvas(b,a,h,i,f,g)},_rotate2Orientaion:function(a,b){var c=a.width,d=a.height,e=a.getContext("2d");switch(b){case 5:case 6:case 7:case 8:a.width=d,a.height=c}switch(b){case 2:e.translate(c,0),e.scale(-1,1);break;case 3:e.translate(c,d),e.rotate(Math.PI);break;case 4:e.translate(0,d),e.scale(1,-1);break;case 5:e.rotate(.5*Math.PI),e.scale(1,-1);break;case 6:e.rotate(.5*Math.PI),e.translate(0,-d);break;case 7:e.rotate(.5*Math.PI),e.translate(c,-d),e.scale(-1,1);break;case 8:e.rotate(-.5*Math.PI),e.translate(-c,0)}},_renderImageToCanvas:function(){function b(a,b,c){var d,e,f,g=document.createElement("canvas"),h=g.getContext("2d"),i=0,j=c,k=c;for(g.width=1,g.height=c,h.drawImage(a,0,0),d=h.getImageData(0,0,1,c).data;k>i;)e=d[4*(k-1)+3],0===e?j=k:i=k,k=j+i>>1;return f=k/c,0===f?1:f}function c(a){var b,c,d=a.naturalWidth,e=a.naturalHeight;return d*e>1048576?(b=document.createElement("canvas"),b.width=b.height=1,c=b.getContext("2d"),c.drawImage(a,-d+1,0),0===c.getImageData(0,0,1,1).data[3]):!1}return a.os.ios?a.os.ios>=7?function(a,c,d,e,f,g){var h=c.naturalWidth,i=c.naturalHeight,j=b(c,h,i);return a.getContext("2d").drawImage(c,0,0,h*j,i*j,d,e,f,g)}:function(a,d,e,f,g,h){var i,j,k,l,m,n,o,p=d.naturalWidth,q=d.naturalHeight,r=a.getContext("2d"),s=c(d),t="image/jpeg"===this.type,u=1024,v=0,w=0;for(s&&(p/=2,q/=2),r.save(),i=document.createElement("canvas"),i.width=i.height=u,j=i.getContext("2d"),k=t?b(d,p,q):1,l=Math.ceil(u*g/p),m=Math.ceil(u*h/q/k);q>v;){for(n=0,o=0;p>n;)j.clearRect(0,0,u,u),j.drawImage(d,-n,-v),r.drawImage(i,0,0,u,u,e+o,f+w,l,m),n+=u,o+=l;v+=u,w+=m}r.restore(),i=j=null}:function(a,b,c,d,e,f){a.getContext("2d").drawImage(b,c,d,e,f)}}()})}),b("runtime/html5/jpegencoder",[],function(){function a(a){function b(a){for(var b=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],c=0;64>c;c++){var d=y((b[c]*a+50)/100);1>d?d=1:d>255&&(d=255),z[P[c]]=d}for(var e=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],f=0;64>f;f++){var g=y((e[f]*a+50)/100);1>g?g=1:g>255&&(g=255),A[P[f]]=g}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],i=0,j=0;8>j;j++)for(var k=0;8>k;k++)B[i]=1/(z[P[i]]*h[j]*h[k]*8),C[i]=1/(A[P[i]]*h[j]*h[k]*8),i++}function c(a,b){for(var c=0,d=0,e=new Array,f=1;16>=f;f++){for(var g=1;g<=a[f];g++)e[b[d]]=[],e[b[d]][0]=c,e[b[d]][1]=f,d++,c++;c*=2}return e}function d(){t=c(Q,R),u=c(U,V),v=c(S,T),w=c(W,X)}function e(){for(var a=1,b=2,c=1;15>=c;c++){for(var d=a;b>d;d++)E[32767+d]=c,D[32767+d]=[],D[32767+d][1]=c,D[32767+d][0]=d;for(var e=-(b-1);-a>=e;e++)E[32767+e]=c,D[32767+e]=[],D[32767+e][1]=c,D[32767+e][0]=b-1+e;a<<=1,b<<=1}}function f(){for(var a=0;256>a;a++)O[a]=19595*a,O[a+256>>0]=38470*a,O[a+512>>0]=7471*a+32768,O[a+768>>0]=-11059*a,O[a+1024>>0]=-21709*a,O[a+1280>>0]=32768*a+8421375,O[a+1536>>0]=-27439*a,O[a+1792>>0]=-5329*a}function g(a){for(var b=a[0],c=a[1]-1;c>=0;)b&1<J&&(255==I?(h(255),h(0)):h(I),J=7,I=0)}function h(a){H.push(N[a])}function i(a){h(a>>8&255),h(255&a)}function j(a,b){var c,d,e,f,g,h,i,j,k,l=0,m=8,n=64;for(k=0;m>k;++k){c=a[l],d=a[l+1],e=a[l+2],f=a[l+3],g=a[l+4],h=a[l+5],i=a[l+6],j=a[l+7];var o=c+j,p=c-j,q=d+i,r=d-i,s=e+h,t=e-h,u=f+g,v=f-g,w=o+u,x=o-u,y=q+s,z=q-s;a[l]=w+y,a[l+4]=w-y;var A=.707106781*(z+x);a[l+2]=x+A,a[l+6]=x-A,w=v+t,y=t+r,z=r+p;var B=.382683433*(w-z),C=.5411961*w+B,D=1.306562965*z+B,E=.707106781*y,G=p+E,H=p-E;a[l+5]=H+C,a[l+3]=H-C,a[l+1]=G+D,a[l+7]=G-D,l+=8}for(l=0,k=0;m>k;++k){c=a[l],d=a[l+8],e=a[l+16],f=a[l+24],g=a[l+32],h=a[l+40],i=a[l+48],j=a[l+56];var I=c+j,J=c-j,K=d+i,L=d-i,M=e+h,N=e-h,O=f+g,P=f-g,Q=I+O,R=I-O,S=K+M,T=K-M;a[l]=Q+S,a[l+32]=Q-S;var U=.707106781*(T+R);a[l+16]=R+U,a[l+48]=R-U,Q=P+N,S=N+L,T=L+J;var V=.382683433*(Q-T),W=.5411961*Q+V,X=1.306562965*T+V,Y=.707106781*S,Z=J+Y,$=J-Y;a[l+40]=$+W,a[l+24]=$-W,a[l+8]=Z+X,a[l+56]=Z-X,l++}var _;for(k=0;n>k;++k)_=a[k]*b[k],F[k]=_>0?_+.5|0:_-.5|0;return F}function k(){i(65504),i(16),h(74),h(70),h(73),h(70),h(0),h(1),h(1),h(0),i(1),i(1),h(0),h(0)}function l(a,b){i(65472),i(17),h(8),i(b),i(a),h(3),h(1),h(17),h(0),h(2),h(17),h(1),h(3),h(17),h(1)}function m(){i(65499),i(132),h(0);for(var a=0;64>a;a++)h(z[a]);h(1);for(var b=0;64>b;b++)h(A[b])}function n(){i(65476),i(418),h(0);for(var a=0;16>a;a++)h(Q[a+1]);for(var b=0;11>=b;b++)h(R[b]);h(16);for(var c=0;16>c;c++)h(S[c+1]);for(var d=0;161>=d;d++)h(T[d]);h(1);for(var e=0;16>e;e++)h(U[e+1]);for(var f=0;11>=f;f++)h(V[f]);h(17);for(var g=0;16>g;g++)h(W[g+1]);for(var j=0;161>=j;j++)h(X[j])}function o(){i(65498),i(12),h(3),h(1),h(0),h(2),h(17),h(3),h(17),h(0),h(63),h(0)}function p(a,b,c,d,e){for(var f,h=e[0],i=e[240],k=16,l=63,m=64,n=j(a,b),o=0;m>o;++o)G[P[o]]=n[o];var p=G[0]-c;c=G[0],0==p?g(d[0]):(f=32767+p,g(d[E[f]]),g(D[f]));for(var q=63;q>0&&0==G[q];q--);if(0==q)return g(h),c;for(var r,s=1;q>=s;){for(var t=s;0==G[s]&&q>=s;++s);var u=s-t;if(u>=k){r=u>>4;for(var v=1;r>=v;++v)g(i);u=15&u}f=32767+G[s],g(e[(u<<4)+E[f]]),g(D[f]),s++}return q!=l&&g(h),c}function q(){for(var a=String.fromCharCode,b=0;256>b;b++)N[b]=a(b)}function r(a){if(0>=a&&(a=1),a>100&&(a=100),x!=a){var c=0;c=Math.floor(50>a?5e3/a:200-2*a),b(c),x=a}}function s(){a||(a=50),q(),d(),e(),f(),r(a)}var t,u,v,w,x,y=(Math.round,Math.floor),z=new Array(64),A=new Array(64),B=new Array(64),C=new Array(64),D=new Array(65535),E=new Array(65535),F=new Array(64),G=new Array(64),H=[],I=0,J=7,K=new Array(64),L=new Array(64),M=new Array(64),N=new Array(256),O=new Array(2048),P=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],T=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],U=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],V=[0,1,2,3,4,5,6,7,8,9,10,11],W=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],X=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];this.encode=function(a,b){b&&r(b),H=new Array,I=0,J=7,i(65496),k(),m(),l(a.width,a.height),n(),o();var c=0,d=0,e=0;I=0,J=7,this.encode.displayName="_encode_";for(var f,h,j,q,s,x,y,z,A,D=a.data,E=a.width,F=a.height,G=4*E,N=0;F>N;){for(f=0;G>f;){for(s=G*N+f,x=s,y=-1,z=0,A=0;64>A;A++)z=A>>3,y=4*(7&A),x=s+z*G+y,N+z>=F&&(x-=G*(N+1+z-F)),f+y>=G&&(x-=f+y-G+4),h=D[x++],j=D[x++],q=D[x++],K[A]=(O[h]+O[j+256>>0]+O[q+512>>0]>>16)-128,L[A]=(O[h+768>>0]+O[j+1024>>0]+O[q+1280>>0]>>16)-128,M[A]=(O[h+1280>>0]+O[j+1536>>0]+O[q+1792>>0]>>16)-128;c=p(K,B,c,t,v),d=p(L,C,d,u,w),e=p(M,C,e,u,w),f+=32}N+=8}if(J>=0){var P=[];P[1]=J+1,P[0]=(1<=200&&b.status<300?(a._response=b.responseText,a.trigger("load")):b.status>=500&&b.status<600?(a._response=b.responseText,a.trigger("error","server")):a.trigger("error",a._status?"http":"abort")):void 0},a._xhr=b,b},_setRequestHeader:function(a,b){d.each(b,function(b,c){a.setRequestHeader(b,c)})},_parseJson:function(a){var b;try{b=JSON.parse(a)}catch(c){b={}}return b}})}),b("webuploader",["base","widgets/filepicker","widgets/image","widgets/queue","widgets/runtime","widgets/upload","runtime/html5/blob","runtime/html5/filepicker","runtime/html5/imagemeta/exif","runtime/html5/image","runtime/html5/androidpatch","runtime/html5/transport"],function(a){return a}),c("webuploader")}); \ No newline at end of file diff --git a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.js b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.js index 10f4496..3705ca9 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.js +++ b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.js @@ -1198,7 +1198,7 @@ // 如果没有指定mimetype, 但是知道文件后缀。 if ( !this.type && ~'jpg,jpeg,png,gif,bmp'.indexOf( ext ) ) { - this.type = 'image/' + (ext === 'jpg' ? 'jpeg' : ext); + this.type = 'images/' + (ext === 'jpg' ? 'jpeg' : ext); } this.ext = ext; @@ -1551,14 +1551,14 @@ * { * title: 'Images', * extensions: 'gif,jpg,jpeg,bmp,png', - * mimeTypes: 'image/*' + * mimeTypes: 'images/*' * } * ``` */ accept: null/*{ title: 'Images', extensions: 'gif,jpg,jpeg,bmp,png', - mimeTypes: 'image/*' + mimeTypes: 'images/*' }*/ }); @@ -1738,7 +1738,7 @@ define('widgets/image',[ 'base', 'uploader', - 'lib/image', + 'lib/images', 'widgets/widget' ], function( Base, Uploader, Image ) { @@ -1784,7 +1784,7 @@ * width: 110, * height: 110, * - * // 图片质量,只有type为`image/jpeg`的时候才有效。 + * // 图片质量,只有type为`images/jpeg`的时候才有效。 * quality: 70, * * // 是否允许放大,如果想要生成小图的时候不失真,此选项应该设置为false. @@ -1798,7 +1798,7 @@ * * // 为空的话则保留原有图片格式。 * // 否则强制转换成指定的类型。 - * type: 'image/jpeg' + * type: 'images/jpeg' * } * ``` */ @@ -1813,8 +1813,8 @@ // 为空的话则保留原有图片格式。 // 否则强制转换成指定的类型。 // IE 8下面 base64 大小不能超过 32K 否则预览失败,而非 jpeg 编码的图片很可 - // 能会超过 32k, 所以这里设置成预览的时候都是 image/jpeg - type: 'image/jpeg' + // 能会超过 32k, 所以这里设置成预览的时候都是 images/jpeg + type: 'images/jpeg' }, /** @@ -1830,7 +1830,7 @@ * width: 1600, * height: 1600, * - * // 图片质量,只有type为`image/jpeg`的时候才有效。 + * // 图片质量,只有type为`images/jpeg`的时候才有效。 * quality: 90, * * // 是否允许放大,如果想要生成小图的时候不失真,此选项应该设置为false. @@ -1946,7 +1946,7 @@ file = this.request( 'get-file', file ); // 只预览图片格式。 - if ( !opts || !~'image/jpeg,image/jpg'.indexOf( file.type ) || + if ( !opts || !~'images/jpeg,images/jpg'.indexOf( file.type ) || file.size < compressSize || file._compressed ) { return; @@ -4152,7 +4152,7 @@ // widgets 'widgets/filepicker', - 'widgets/image', + 'widgets/images', 'widgets/queue', 'widgets/runtime', 'widgets/upload', @@ -4162,7 +4162,7 @@ // flash 'runtime/flash/filepicker', - 'runtime/flash/image', + 'runtime/flash/images', 'runtime/flash/transport' ], function( Base ) { return Base; diff --git a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.min.js b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.min.js index 49c6b50..4e77b9d 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.min.js +++ b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.min.js @@ -1,2 +1,2 @@ -/* WebUploader 0.1.2 */!function(a,b){var c,d={},e=function(a,b){var c,d,e;if("string"==typeof a)return h(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));return b.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){var f,g={exports:b};"function"==typeof b&&(c.length||(c=[e,g.exports,g]),f=b.apply(null,c),void 0!==f&&(g.exports=f)),d[a]=g.exports},h=function(b){var c=d[b]||a[b];if(!c)throw new Error("`"+b+"` is undefined");return c},i=function(a){var b,c,e,f,g,h;h=function(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)};for(b in d)if(c=a,d.hasOwnProperty(b)){for(e=b.split("/"),g=h(e.pop());f=h(e.shift());)c[f]=c[f]||{},c=c[f];c[g]=d[b]}},j=b(a,f,e);i(j),"object"==typeof module&&"object"==typeof module.exports?module.exports=j:"function"==typeof define&&define.amd?define([],j):(c=a.WebUploader,a.WebUploader=j,a.WebUploader.noConflict=function(){a.WebUploader=c})}(this,function(a,b,c){return b("dollar-third",[],function(){return a.jQuery||a.Zepto}),b("dollar",["dollar-third"],function(a){return a}),b("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(a){return a&&"function"==typeof a.then}}}),b("promise",["promise-third"],function(a){return a}),b("base",["dollar","promise"],function(b,c){function d(a){return function(){return h.apply(a,arguments)}}function e(a,b){return function(){return a.apply(b,arguments)}}function f(a){var b;return Object.create?Object.create(a):(b=function(){},b.prototype=a,new b)}var g=function(){},h=Function.call;return{version:"0.1.2",$:b,Deferred:c.Deferred,isPromise:c.isPromise,when:c.when,browser:function(a){var b={},c=a.match(/WebKit\/([\d.]+)/),d=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),e=a.match(/MSIE\s([\d\.]+)/)||a.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=a.match(/Firefox\/([\d.]+)/),g=a.match(/Safari\/([\d.]+)/),h=a.match(/OPR\/([\d.]+)/);return c&&(b.webkit=parseFloat(c[1])),d&&(b.chrome=parseFloat(d[1])),e&&(b.ie=parseFloat(e[1])),f&&(b.firefox=parseFloat(f[1])),g&&(b.safari=parseFloat(g[1])),h&&(b.opera=parseFloat(h[1])),b}(navigator.userAgent),os:function(a){var b={},c=a.match(/(?:Android);?[\s\/]+([\d.]+)?/),d=a.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return c&&(b.android=parseFloat(c[1])),d&&(b.ios=parseFloat(d[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(a,c,d){var e;return"function"==typeof c?(e=c,c=null):e=c&&c.hasOwnProperty("constructor")?c.constructor:function(){return a.apply(this,arguments)},b.extend(!0,e,a,d||{}),e.__super__=a.prototype,e.prototype=f(a.prototype),c&&b.extend(!0,e.prototype,c),e},noop:g,bindFn:e,log:function(){return a.console?e(console.log,console):g}(),nextTick:function(){return function(a){setTimeout(a,1)}}(),slice:d([].slice),guid:function(){var a=0;return function(b){for(var c=(+new Date).toString(32),d=0;5>d;d++)c+=Math.floor(65535*Math.random()).toString(32);return(b||"wu_")+c+(a++).toString(32)}}(),formatSize:function(a,b,c){var d;for(c=c||["B","K","M","G","TB"];(d=c.shift())&&a>1024;)a/=1024;return("B"===d?a:a.toFixed(b||2))+d}}}),b("mediator",["base"],function(a){function b(a,b,c,d){return f.grep(a,function(a){return!(!a||b&&a.e!==b||c&&a.cb!==c&&a.cb._cb!==c||d&&a.ctx!==d)})}function c(a,b,c){f.each((a||"").split(h),function(a,d){c(d,b)})}function d(a,b){for(var c,d=!1,e=-1,f=a.length;++e1?void(d.isPlainObject(b)&&d.isPlainObject(c[a])?d.extend(c[a],b):c[a]=b):a?c[a]:c},getStats:function(){var a=this.request("get-stats");return{successNum:a.numOfSuccess,cancelNum:a.numOfCancel,invalidNum:a.numOfInvalid,uploadFailNum:a.numOfUploadFailed,queueNum:a.numOfQueue}},trigger:function(a){var c=[].slice.call(arguments,1),e=this.options,f="on"+a.substring(0,1).toUpperCase()+a.substring(1);return b.trigger.apply(this,arguments)===!1||d.isFunction(e[f])&&e[f].apply(this,c)===!1||d.isFunction(this[f])&&this[f].apply(this,c)===!1||b.trigger.apply(b,[this,a].concat(c))===!1?!1:!0},request:a.noop}),a.create=c.create=function(a){return new c(a)},a.Uploader=c,c}),b("runtime/runtime",["base","mediator"],function(a,b){function c(b){this.options=d.extend({container:document.body},b),this.uid=a.guid("rt_")}var d=a.$,e={},f=function(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null};return d.extend(c.prototype,{getContainer:function(){var a,b,c=this.options;return this._container?this._container:(a=d(c.container||document.body),b=d(document.createElement("div")),b.attr("id","rt_"+this.uid),b.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),a.append(b),a.addClass("webuploader-container"),this._container=b,b)},init:a.noop,exec:a.noop,destroy:function(){this._container&&this._container.parentNode.removeChild(this.__container),this.off()}}),c.orders="html5,flash",c.addRuntime=function(a,b){e[a]=b},c.hasRuntime=function(a){return!!(a?e[a]:f(e))},c.create=function(a,b){var g,h;if(b=b||c.orders,d.each(b.split(/\s*,\s*/g),function(){return e[this]?(g=this,!1):void 0}),g=g||f(e),!g)throw new Error("Runtime Error");return h=new e[g](a)},b.installTo(c.prototype),c}),b("runtime/client",["base","mediator","runtime/runtime"],function(a,b,c){function d(b,d){var f,g=a.Deferred();this.uid=a.guid("client_"),this.runtimeReady=function(a){return g.done(a)},this.connectRuntime=function(b,h){if(f)throw new Error("already connected!");return g.done(h),"string"==typeof b&&e.get(b)&&(f=e.get(b)),f=f||e.get(null,d),f?(a.$.extend(f.options,b),f.__promise.then(g.resolve),f.__client++):(f=c.create(b,b.runtimeOrder),f.__promise=g.promise(),f.once("ready",g.resolve),f.init(),e.add(f),f.__client=1),d&&(f.__standalone=d),f},this.getRuntime=function(){return f},this.disconnectRuntime=function(){f&&(f.__client--,f.__client<=0&&(e.remove(f),delete f.__promise,f.destroy()),f=null)},this.exec=function(){if(f){var c=a.slice(arguments);return b&&c.unshift(b),f.exec.apply(this,c)}},this.getRuid=function(){return f&&f.uid},this.destroy=function(a){return function(){a&&a.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}var e;return e=function(){var a={};return{add:function(b){a[b.uid]=b},get:function(b,c){var d;if(b)return a[b];for(d in a)if(!c||!a[d].__standalone)return a[d];return null},remove:function(b){delete a[b.uid]}}}(),b.installTo(d.prototype),d}),b("lib/blob",["base","runtime/client"],function(a,b){function c(a,c){var d=this;d.source=c,d.ruid=a,b.call(d,"Blob"),this.uid=c.uid||this.uid,this.type=c.type||"",this.size=c.size||0,a&&d.connectRuntime(a)}return a.inherits(b,{constructor:c,slice:function(a,b){return this.exec("slice",a,b)},getSource:function(){return this.source}}),c}),b("lib/file",["base","lib/blob"],function(a,b){function c(a,c){var f;b.apply(this,arguments),this.name=c.name||"untitled"+d++,f=e.exec(c.name)?RegExp.$1.toLowerCase():"",!f&&this.type&&(f=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(this.type)?RegExp.$1.toLowerCase():"",this.name+="."+f),!this.type&&~"jpg,jpeg,png,gif,bmp".indexOf(f)&&(this.type="image/"+("jpg"===f?"jpeg":f)),this.ext=f,this.lastModifiedDate=c.lastModifiedDate||(new Date).toLocaleString()}var d=1,e=/\.([^.]+)$/;return a.inherits(b,c)}),b("lib/filepicker",["base","runtime/client","lib/file"],function(b,c,d){function e(a){if(a=this.options=f.extend({},e.options,a),a.container=f(a.id),!a.container.length)throw new Error("按钮指定错误");a.innerHTML=a.innerHTML||a.label||a.container.html()||"",a.button=f(a.button||document.createElement("div")),a.button.html(a.innerHTML),a.container.html(a.button),c.call(this,"FilePicker",!0)}var f=b.$;return e.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file"},b.inherits(c,{constructor:e,init:function(){var b=this,c=b.options,e=c.button;e.addClass("webuploader-pick"),b.on("all",function(a){var g;switch(a){case"mouseenter":e.addClass("webuploader-pick-hover");break;case"mouseleave":e.removeClass("webuploader-pick-hover");break;case"change":g=b.exec("getFiles"),b.trigger("select",f.map(g,function(a){return a=new d(b.getRuid(),a),a._refer=c.container,a}),c.container)}}),b.connectRuntime(c,function(){b.refresh(),b.exec("init",c),b.trigger("ready")}),f(a).on("resize",function(){b.refresh()})},refresh:function(){var a=this.getRuntime().getContainer(),b=this.options.button,c=b.outerWidth?b.outerWidth():b.width(),d=b.outerHeight?b.outerHeight():b.height(),e=b.offset();c&&d&&a.css({bottom:"auto",right:"auto",width:c+"px",height:d+"px"}).offset(e)},enable:function(){var a=this.options.button;a.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var a=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),a.addClass("webuploader-pick-disable")},destroy:function(){this.runtime&&(this.exec("destroy"),this.disconnectRuntime())}}),e}),b("widgets/widget",["base","uploader"],function(a,b){function c(a){if(!a)return!1;var b=a.length,c=e.type(a);return 1===a.nodeType&&b?!0:"array"===c||"function"!==c&&"string"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){this.owner=a,this.options=a.options}var e=a.$,f=b.prototype._init,g={},h=[];return e.extend(d.prototype,{init:a.noop,invoke:function(a,b){var c=this.responseMap;return c&&a in c&&c[a]in this&&e.isFunction(this[c[a]])?this[c[a]].apply(this,b):g},request:function(){return this.owner.request.apply(this.owner,arguments)}}),e.extend(b.prototype,{_init:function(){var a=this,b=a._widgets=[];return e.each(h,function(c,d){b.push(new d(a))}),f.apply(a,arguments)},request:function(b,d,e){var f,h,i,j,k=0,l=this._widgets,m=l.length,n=[],o=[];for(d=c(d)?d:[d];m>k;k++)f=l[k],h=f.invoke(b,d),h!==g&&(a.isPromise(h)?o.push(h):n.push(h));return e||o.length?(i=a.when.apply(a,o),j=i.pipe?"pipe":"then",i[j](function(){var b=a.Deferred(),c=arguments;return setTimeout(function(){b.resolve.apply(b,c)},1),b.promise()})[j](e||a.noop)):n[0]}}),b.register=d.register=function(b,c){var f,g={init:"init"};return 1===arguments.length?(c=b,c.responseMap=g):c.responseMap=e.extend(g,b),f=a.inherits(d,c),h.push(f),f},d}),b("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(a,b,c){var d=a.$;return d.extend(b.options,{pick:null,accept:null}),b.register({"add-btn":"addButton",refresh:"refresh",disable:"disable",enable:"enable"},{init:function(a){return this.pickers=[],a.pick&&this.addButton(a.pick)},refresh:function(){d.each(this.pickers,function(){this.refresh()})},addButton:function(b){var e,f,g,h=this,i=h.options,j=i.accept;if(b)return g=a.Deferred(),d.isPlainObject(b)||(b={id:b}),e=d.extend({},b,{accept:d.isPlainObject(j)?[j]:j,swf:i.swf,runtimeOrder:i.runtimeOrder}),f=new c(e),f.once("ready",g.resolve),f.on("select",function(a){h.owner.request("add-file",[a])}),f.init(),this.pickers.push(f),g.promise()},disable:function(){d.each(this.pickers,function(){this.disable()})},enable:function(){d.each(this.pickers,function(){this.enable()})}})}),b("lib/image",["base","runtime/client","lib/blob"],function(a,b,c){function d(a){this.options=e.extend({},d.options,a),b.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}var e=a.$;return d.options={quality:90,crop:!1,preserveHeaders:!0,allowMagnify:!0},a.inherits(b,{constructor:d,info:function(a){return a?(this._info=a,this):this._info},meta:function(a){return a?(this._meta=a,this):this._meta},loadFromBlob:function(a){var b=this,c=a.getRuid();this.connectRuntime(c,function(){b.exec("init",b.options),b.exec("loadFromBlob",a)})},resize:function(){var b=a.slice(arguments);return this.exec.apply(this,["resize"].concat(b))},getAsDataUrl:function(a){return this.exec("getAsDataUrl",a)},getAsBlob:function(a){var b=this.exec("getAsBlob",a);return new c(this.getRuid(),b)}}),d}),b("widgets/image",["base","uploader","lib/image","widgets/widget"],function(a,b,c){var d,e=a.$;return d=function(a){var b=0,c=[],d=function(){for(var d;c.length&&a>b;)d=c.shift(),b+=d[0],d[1]()};return function(a,e,f){c.push([e,f]),a.once("destroy",function(){b-=e,setTimeout(d,1)}),setTimeout(d,1)}}(5242880),e.extend(b.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),b.register({"make-thumb":"makeThumb","before-send-file":"compressImage"},{makeThumb:function(a,b,f,g){var h,i;return a=this.request("get-file",a),a.type.match(/^image/)?(h=e.extend({},this.options.thumb),e.isPlainObject(f)&&(h=e.extend(h,f),f=null),f=f||h.width,g=g||h.height,i=new c(h),i.once("load",function(){a._info=a._info||i.info(),a._meta=a._meta||i.meta(),i.resize(f,g)}),i.once("complete",function(){b(!1,i.getAsDataUrl(h.type)),i.destroy()}),i.once("error",function(){b(!0),i.destroy()}),void d(i,a.source.size,function(){a._info&&i.info(a._info),a._meta&&i.meta(a._meta),i.loadFromBlob(a.source)})):void b(!0)},compressImage:function(b){var d,f,g=this.options.compress||this.options.resize,h=g&&g.compressSize||307200;return b=this.request("get-file",b),!g||!~"image/jpeg,image/jpg".indexOf(b.type)||b.sizeb;b++)if(c=this._queue[b],a===c.getStatus())return c;return null},sort:function(a){"function"==typeof a&&this._queue.sort(a)},getFiles:function(){for(var a,b=[].slice.call(arguments,0),c=[],d=0,f=this._queue.length;f>d;d++)a=this._queue[d],(!b.length||~e.inArray(a.getStatus(),b))&&c.push(a);return c},_fileAdded:function(a){var b=this,c=this._map[a.id];c||(this._map[a.id]=a,a.on("statuschange",function(a,c){b._onFileStatusChange(a,c)})),a.setStatus(f.QUEUED)},_onFileStatusChange:function(a,b){var c=this.stats;switch(b){case f.PROGRESS:c.numOfProgress--;break;case f.QUEUED:c.numOfQueue--;break;case f.ERROR:c.numOfUploadFailed--;break;case f.INVALID:c.numOfInvalid--}switch(a){case f.QUEUED:c.numOfQueue++;break;case f.PROGRESS:c.numOfProgress++;break;case f.ERROR:c.numOfUploadFailed++;break;case f.COMPLETE:c.numOfSuccess++;break;case f.CANCELLED:c.numOfCancel++;break;case f.INVALID:c.numOfInvalid++}}}),b.installTo(d.prototype),d}),b("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(a,b,c,d,e,f){var g=a.$,h=/\.\w+$/,i=d.Status;return b.register({"sort-files":"sortFiles","add-file":"addFiles","get-file":"getFile","fetch-file":"fetchFile","get-stats":"getStats","get-files":"getFiles","remove-file":"removeFile",retry:"retry",reset:"reset","accept-file":"acceptFile"},{init:function(b){var d,e,h,i,j,k,l,m=this;if(g.isPlainObject(b.accept)&&(b.accept=[b.accept]),b.accept){for(j=[],h=0,e=b.accept.length;e>h;h++)i=b.accept[h].extensions,i&&j.push(i);j.length&&(k="\\."+j.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),m.accept=new RegExp(k,"i")}return m.queue=new c,m.stats=m.queue.stats,"html5"===this.request("predict-runtime-type")?(d=a.Deferred(),l=new f("Placeholder"),l.connectRuntime({runtimeOrder:"html5"},function(){m._ruid=l.getRuid(),d.resolve()}),d.promise()):void 0},_wrapFile:function(a){if(!(a instanceof d)){if(!(a instanceof e)){if(!this._ruid)throw new Error("Can't add external files.");a=new e(this._ruid,a)}a=new d(a)}return a},acceptFile:function(a){var b=!a||a.size<6||this.accept&&h.exec(a.name)&&!this.accept.test(a.name);return!b},_addFile:function(a){var b=this;return a=b._wrapFile(a),b.owner.trigger("beforeFileQueued",a)?b.acceptFile(a)?(b.queue.append(a),b.owner.trigger("fileQueued",a),a):void b.owner.trigger("error","Q_TYPE_DENIED",a):void 0},getFile:function(a){return this.queue.getFile(a)},addFiles:function(a){var b=this;a.length||(a=[a]),a=g.map(a,function(a){return b._addFile(a)}),b.owner.trigger("filesQueued",a),b.options.auto&&b.request("start-upload")},getStats:function(){return this.stats},removeFile:function(a){var b=this;a=a.id?a:b.queue.getFile(a),a.setStatus(i.CANCELLED),b.owner.trigger("fileDequeued",a)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(a,b){var c,d,e,f=this;if(a)return a=a.id?a:f.queue.getFile(a),a.setStatus(i.QUEUED),void(b||f.request("start-upload"));for(c=f.queue.getFiles(i.ERROR),d=0,e=c.length;e>d;d++)a=c[d],a.setStatus(i.QUEUED);f.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.queue=new c,this.stats=this.queue.stats}})}),b("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(a,b){return a.support=function(){return b.hasRuntime.apply(b,arguments)},a.register({"predict-runtime-type":"predictRuntmeType"},{init:function(){if(!this.predictRuntmeType())throw Error("Runtime Error")},predictRuntmeType:function(){var a,c,d=this.options.runtimeOrder||b.orders,e=this.type;if(!e)for(d=d.split(/\s*,\s*/g),a=0,c=d.length;c>a;a++)if(b.hasRuntime(d[a])){this.type=e=d[a];break}return e}})}),b("lib/transport",["base","runtime/client","mediator"],function(a,b,c){function d(a){var c=this;a=c.options=e.extend(!0,{},d.options,a||{}),b.call(this,"Transport"),this._blob=null,this._formData=a.formData||{},this._headers=a.headers||{},this.on("progress",this._timeout),this.on("load error",function(){c.trigger("progress",1),clearTimeout(c._timer)})}var e=a.$;return d.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:12e4,formData:{},headers:{},sendAsBinary:!1},e.extend(d.prototype,{appendBlob:function(a,b,c){var d=this,e=d.options;d.getRuid()&&d.disconnectRuntime(),d.connectRuntime(b.ruid,function(){d.exec("init")}),d._blob=b,e.fileVal=a||e.fileVal,e.filename=c||e.filename},append:function(a,b){"object"==typeof a?e.extend(this._formData,a):this._formData[a]=b},setRequestHeader:function(a,b){"object"==typeof a?e.extend(this._headers,a):this._headers[a]=b},send:function(a){this.exec("send",a),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var a=this,b=a.options.timeout;b&&(clearTimeout(a._timer),a._timer=setTimeout(function(){a.abort(),a.trigger("error","timeout")},b))}}),c.installTo(d.prototype),d}),b("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(a,b,c,d){function e(a,b){for(var c,d=[],e=a.source,f=e.size,g=b?Math.ceil(f/b):1,h=0,i=0;g>i;)c=Math.min(b,f-h),d.push({file:a,start:h,end:b?h+c:f,total:f,chunks:g,chunk:i++}),h+=c;return a.blocks=d.concat(),a.remaning=d.length,{file:a,has:function(){return!!d.length},fetch:function(){return d.shift()}}}var f=a.$,g=a.isPromise,h=c.Status;f.extend(b.options,{prepareNextFile:!1,chunked:!1,chunkSize:5242880,chunkRetry:2,threads:3,formData:null}),b.register({"start-upload":"start","stop-upload":"stop","skip-file":"skipFile","is-in-progress":"isInProgress"},{init:function(){var b=this.owner;this.runing=!1,this.pool=[],this.pending=[],this.remaning=0,this.__tick=a.bindFn(this._tick,this),b.on("uploadComplete",function(a){a.blocks&&f.each(a.blocks,function(a,b){b.transport&&(b.transport.abort(),b.transport.destroy()),delete b.transport}),delete a.blocks,delete a.remaning})},start:function(){var b=this;f.each(b.request("get-files",h.INVALID),function(){b.request("remove-file",this)}),b.runing||(b.runing=!0,f.each(b.pool,function(a,c){var d=c.file;d.getStatus()===h.INTERRUPT&&(d.setStatus(h.PROGRESS),b._trigged=!1,c.transport&&c.transport.send())}),b._trigged=!1,b.owner.trigger("startUpload"),a.nextTick(b.__tick))},stop:function(a){var b=this;b.runing!==!1&&(b.runing=!1,a&&f.each(b.pool,function(a,b){b.transport&&b.transport.abort(),b.file.setStatus(h.INTERRUPT)}),b.owner.trigger("stopUpload"))},isInProgress:function(){return!!this.runing},getStats:function(){return this.request("get-stats")},skipFile:function(a,b){a=this.request("get-file",a),a.setStatus(b||h.COMPLETE),a.skipped=!0,a.blocks&&f.each(a.blocks,function(a,b){var c=b.transport;c&&(c.abort(),c.destroy(),delete b.transport)}),this.owner.trigger("uploadSkip",a)},_tick:function(){var b,c,d=this,e=d.options;return d._promise?d._promise.always(d.__tick):void(d.pool.length1&&(f.each(k.blocks,function(a,b){d+=(b.percentage||0)*(b.end-b.start)}),c=d/k.size),i.trigger("uploadProgress",k,c||0)}),c=function(a){var c;return e=l.getResponseAsJson()||{},e._raw=l.getResponse(),c=function(b){a=b},i.trigger("uploadAccept",b,e,c)||(a=a||"server"),a},l.on("error",function(a,d){b.retried=b.retried||0,b.chunks>1&&~"http,abort".indexOf(a)&&b.retried1&&f.extend(m,{chunks:b.chunks,chunk:b.chunk}),i.trigger("uploadBeforeSend",b,m,n),l.appendBlob(j.fileVal,b.blob,k.name),l.append(m),l.setRequestHeader(n),l.send()},_finishFile:function(a,b,c){var d=this.owner;return d.request("after-send-file",arguments,function(){a.setStatus(h.COMPLETE),d.trigger("uploadSuccess",a,b,c)}).fail(function(b){a.getStatus()===h.PROGRESS&&a.setStatus(h.ERROR,b),d.trigger("uploadError",a,b)}).always(function(){d.trigger("uploadComplete",a)})}})}),b("widgets/validator",["base","uploader","file","widgets/widget"],function(a,b,c){var d,e=a.$,f={};return d={addValidator:function(a,b){f[a]=b},removeValidator:function(a){delete f[a]}},b.register({init:function(){var a=this;e.each(f,function(){this.call(a.owner)})}}),d.addValidator("fileNumLimit",function(){var a=this,b=a.options,c=0,d=b.fileNumLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){return c>=d&&e&&(e=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",d,a),setTimeout(function(){e=!0},1)),c>=d?!1:!0}),a.on("fileQueued",function(){c++}),a.on("fileDequeued",function(){c--}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSizeLimit",function(){var a=this,b=a.options,c=0,d=b.fileSizeLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){var b=c+a.size>d;return b&&e&&(e=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",d,a),setTimeout(function(){e=!0},1)),b?!1:!0}),a.on("fileQueued",function(a){c+=a.size}),a.on("fileDequeued",function(a){c-=a.size}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSingleSizeLimit",function(){var a=this,b=a.options,d=b.fileSingleSizeLimit;d&&a.on("beforeFileQueued",function(a){return a.size>d?(a.setStatus(c.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",a),!1):void 0})}),d.addValidator("duplicate",function(){function a(a){for(var b,c=0,d=0,e=a.length;e>d;d++)b=a.charCodeAt(d),c=b+(c<<6)+(c<<16)-c;return c}var b=this,c=b.options,d={};c.duplicate||(b.on("beforeFileQueued",function(b){var c=b.__hash||(b.__hash=a(b.name+b.size+b.lastModifiedDate));return d[c]?(this.trigger("error","F_DUPLICATE",b),!1):void 0}),b.on("fileQueued",function(a){var b=a.__hash;b&&(d[b]=!0)}),b.on("fileDequeued",function(a){var b=a.__hash;b&&delete d[b]}))}),d}),b("runtime/compbase",[],function(){function a(a,b){this.owner=a,this.options=a.options,this.getRuntime=function(){return b},this.getRuid=function(){return b.uid},this.trigger=function(){return a.trigger.apply(a,arguments)}}return a}),b("runtime/flash/runtime",["base","runtime/runtime","runtime/compbase"],function(b,c,d){function e(){var a;try{a=navigator.plugins["Shockwave Flash"],a=a.description}catch(b){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(c){a="0.0"}}return a=a.match(/\d+/g),parseFloat(a[0]+"."+a[1],10)}function f(){function d(a,b){var c,d,e=a.type||a;c=e.split("::"),d=c[0],e=c[1],"Ready"===e&&d===j.uid?j.trigger("ready"):f[d]&&f[d].trigger(e.toLowerCase(),a,b)}var e={},f={},g=this.destory,j=this,k=b.guid("webuploader_");c.apply(j,arguments),j.type=h,j.exec=function(a,c){var d,g=this,h=g.uid,k=b.slice(arguments,2);return f[h]=g,i[a]&&(e[h]||(e[h]=new i[a](g,j)),d=e[h],d[c])?d[c].apply(d,k):j.flashExec.apply(g,arguments)},a[k]=function(){var a=arguments;setTimeout(function(){d.apply(null,a)},1)},this.jsreciver=k,this.destory=function(){return g&&g.apply(this,arguments)},this.flashExec=function(a,c){var d=j.getFlash(),e=b.slice(arguments,2);return d.exec(this.uid,a,c,e)}}var g=b.$,h="flash",i={};return b.inherits(c,{constructor:f,init:function(){var a,c=this.getContainer(),d=this.options;c.css({position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"}),a='',c.html(a)},getFlash:function(){return this._flash?this._flash:(this._flash=g("#"+this.uid).get(0),this._flash)}}),f.register=function(a,c){return c=i[a]=b.inherits(d,g.extend({flashExec:function(){var a=this.owner,b=this.getRuntime();return b.flashExec.apply(a,arguments)}},c))},e()>=11.4&&c.addRuntime(h,f),f}),b("runtime/flash/filepicker",["base","runtime/flash/runtime"],function(a,b){var c=a.$;return b.register("FilePicker",{init:function(a){var b,d,e=c.extend({},a);for(b=e.accept&&e.accept.length,d=0;b>d;d++)e.accept[d].title||(e.accept[d].title="Files");delete e.button,delete e.container,this.flashExec("FilePicker","init",e)},destroy:function(){}})}),b("runtime/flash/image",["runtime/flash/runtime"],function(a){return a.register("Image",{loadFromBlob:function(a){var b=this.owner;b.info()&&this.flashExec("Image","info",b.info()),b.meta()&&this.flashExec("Image","meta",b.meta()),this.flashExec("Image","loadFromBlob",a.uid)}})}),b("runtime/flash/transport",["base","runtime/flash/runtime","runtime/client"],function(a,b,c){var d=a.$;return b.register("Transport",{init:function(){this._status=0,this._response=null,this._responseJson=null},send:function(){var a,b=this.owner,c=this.options,e=this._initAjax(),f=b._blob,g=c.server;e.connectRuntime(f.ruid),c.sendAsBinary?(g+=(/\?/.test(g)?"&":"?")+d.param(b._formData),a=f.uid):(d.each(b._formData,function(a,b){e.exec("append",a,b) +/* WebUploader 0.1.2 */!function(a,b){var c,d={},e=function(a,b){var c,d,e;if("string"==typeof a)return h(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));return b.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){var f,g={exports:b};"function"==typeof b&&(c.length||(c=[e,g.exports,g]),f=b.apply(null,c),void 0!==f&&(g.exports=f)),d[a]=g.exports},h=function(b){var c=d[b]||a[b];if(!c)throw new Error("`"+b+"` is undefined");return c},i=function(a){var b,c,e,f,g,h;h=function(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)};for(b in d)if(c=a,d.hasOwnProperty(b)){for(e=b.split("/"),g=h(e.pop());f=h(e.shift());)c[f]=c[f]||{},c=c[f];c[g]=d[b]}},j=b(a,f,e);i(j),"object"==typeof module&&"object"==typeof module.exports?module.exports=j:"function"==typeof define&&define.amd?define([],j):(c=a.WebUploader,a.WebUploader=j,a.WebUploader.noConflict=function(){a.WebUploader=c})}(this,function(a,b,c){return b("dollar-third",[],function(){return a.jQuery||a.Zepto}),b("dollar",["dollar-third"],function(a){return a}),b("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(a){return a&&"function"==typeof a.then}}}),b("promise",["promise-third"],function(a){return a}),b("base",["dollar","promise"],function(b,c){function d(a){return function(){return h.apply(a,arguments)}}function e(a,b){return function(){return a.apply(b,arguments)}}function f(a){var b;return Object.create?Object.create(a):(b=function(){},b.prototype=a,new b)}var g=function(){},h=Function.call;return{version:"0.1.2",$:b,Deferred:c.Deferred,isPromise:c.isPromise,when:c.when,browser:function(a){var b={},c=a.match(/WebKit\/([\d.]+)/),d=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),e=a.match(/MSIE\s([\d\.]+)/)||a.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=a.match(/Firefox\/([\d.]+)/),g=a.match(/Safari\/([\d.]+)/),h=a.match(/OPR\/([\d.]+)/);return c&&(b.webkit=parseFloat(c[1])),d&&(b.chrome=parseFloat(d[1])),e&&(b.ie=parseFloat(e[1])),f&&(b.firefox=parseFloat(f[1])),g&&(b.safari=parseFloat(g[1])),h&&(b.opera=parseFloat(h[1])),b}(navigator.userAgent),os:function(a){var b={},c=a.match(/(?:Android);?[\s\/]+([\d.]+)?/),d=a.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return c&&(b.android=parseFloat(c[1])),d&&(b.ios=parseFloat(d[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(a,c,d){var e;return"function"==typeof c?(e=c,c=null):e=c&&c.hasOwnProperty("constructor")?c.constructor:function(){return a.apply(this,arguments)},b.extend(!0,e,a,d||{}),e.__super__=a.prototype,e.prototype=f(a.prototype),c&&b.extend(!0,e.prototype,c),e},noop:g,bindFn:e,log:function(){return a.console?e(console.log,console):g}(),nextTick:function(){return function(a){setTimeout(a,1)}}(),slice:d([].slice),guid:function(){var a=0;return function(b){for(var c=(+new Date).toString(32),d=0;5>d;d++)c+=Math.floor(65535*Math.random()).toString(32);return(b||"wu_")+c+(a++).toString(32)}}(),formatSize:function(a,b,c){var d;for(c=c||["B","K","M","G","TB"];(d=c.shift())&&a>1024;)a/=1024;return("B"===d?a:a.toFixed(b||2))+d}}}),b("mediator",["base"],function(a){function b(a,b,c,d){return f.grep(a,function(a){return!(!a||b&&a.e!==b||c&&a.cb!==c&&a.cb._cb!==c||d&&a.ctx!==d)})}function c(a,b,c){f.each((a||"").split(h),function(a,d){c(d,b)})}function d(a,b){for(var c,d=!1,e=-1,f=a.length;++e1?void(d.isPlainObject(b)&&d.isPlainObject(c[a])?d.extend(c[a],b):c[a]=b):a?c[a]:c},getStats:function(){var a=this.request("get-stats");return{successNum:a.numOfSuccess,cancelNum:a.numOfCancel,invalidNum:a.numOfInvalid,uploadFailNum:a.numOfUploadFailed,queueNum:a.numOfQueue}},trigger:function(a){var c=[].slice.call(arguments,1),e=this.options,f="on"+a.substring(0,1).toUpperCase()+a.substring(1);return b.trigger.apply(this,arguments)===!1||d.isFunction(e[f])&&e[f].apply(this,c)===!1||d.isFunction(this[f])&&this[f].apply(this,c)===!1||b.trigger.apply(b,[this,a].concat(c))===!1?!1:!0},request:a.noop}),a.create=c.create=function(a){return new c(a)},a.Uploader=c,c}),b("runtime/runtime",["base","mediator"],function(a,b){function c(b){this.options=d.extend({container:document.body},b),this.uid=a.guid("rt_")}var d=a.$,e={},f=function(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null};return d.extend(c.prototype,{getContainer:function(){var a,b,c=this.options;return this._container?this._container:(a=d(c.container||document.body),b=d(document.createElement("div")),b.attr("id","rt_"+this.uid),b.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),a.append(b),a.addClass("webuploader-container"),this._container=b,b)},init:a.noop,exec:a.noop,destroy:function(){this._container&&this._container.parentNode.removeChild(this.__container),this.off()}}),c.orders="html5,flash",c.addRuntime=function(a,b){e[a]=b},c.hasRuntime=function(a){return!!(a?e[a]:f(e))},c.create=function(a,b){var g,h;if(b=b||c.orders,d.each(b.split(/\s*,\s*/g),function(){return e[this]?(g=this,!1):void 0}),g=g||f(e),!g)throw new Error("Runtime Error");return h=new e[g](a)},b.installTo(c.prototype),c}),b("runtime/client",["base","mediator","runtime/runtime"],function(a,b,c){function d(b,d){var f,g=a.Deferred();this.uid=a.guid("client_"),this.runtimeReady=function(a){return g.done(a)},this.connectRuntime=function(b,h){if(f)throw new Error("already connected!");return g.done(h),"string"==typeof b&&e.get(b)&&(f=e.get(b)),f=f||e.get(null,d),f?(a.$.extend(f.options,b),f.__promise.then(g.resolve),f.__client++):(f=c.create(b,b.runtimeOrder),f.__promise=g.promise(),f.once("ready",g.resolve),f.init(),e.add(f),f.__client=1),d&&(f.__standalone=d),f},this.getRuntime=function(){return f},this.disconnectRuntime=function(){f&&(f.__client--,f.__client<=0&&(e.remove(f),delete f.__promise,f.destroy()),f=null)},this.exec=function(){if(f){var c=a.slice(arguments);return b&&c.unshift(b),f.exec.apply(this,c)}},this.getRuid=function(){return f&&f.uid},this.destroy=function(a){return function(){a&&a.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}var e;return e=function(){var a={};return{add:function(b){a[b.uid]=b},get:function(b,c){var d;if(b)return a[b];for(d in a)if(!c||!a[d].__standalone)return a[d];return null},remove:function(b){delete a[b.uid]}}}(),b.installTo(d.prototype),d}),b("lib/blob",["base","runtime/client"],function(a,b){function c(a,c){var d=this;d.source=c,d.ruid=a,b.call(d,"Blob"),this.uid=c.uid||this.uid,this.type=c.type||"",this.size=c.size||0,a&&d.connectRuntime(a)}return a.inherits(b,{constructor:c,slice:function(a,b){return this.exec("slice",a,b)},getSource:function(){return this.source}}),c}),b("lib/file",["base","lib/blob"],function(a,b){function c(a,c){var f;b.apply(this,arguments),this.name=c.name||"untitled"+d++,f=e.exec(c.name)?RegExp.$1.toLowerCase():"",!f&&this.type&&(f=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(this.type)?RegExp.$1.toLowerCase():"",this.name+="."+f),!this.type&&~"jpg,jpeg,png,gif,bmp".indexOf(f)&&(this.type="image/"+("jpg"===f?"jpeg":f)),this.ext=f,this.lastModifiedDate=c.lastModifiedDate||(new Date).toLocaleString()}var d=1,e=/\.([^.]+)$/;return a.inherits(b,c)}),b("lib/filepicker",["base","runtime/client","lib/file"],function(b,c,d){function e(a){if(a=this.options=f.extend({},e.options,a),a.container=f(a.id),!a.container.length)throw new Error("按钮指定错误");a.innerHTML=a.innerHTML||a.label||a.container.html()||"",a.button=f(a.button||document.createElement("div")),a.button.html(a.innerHTML),a.container.html(a.button),c.call(this,"FilePicker",!0)}var f=b.$;return e.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file"},b.inherits(c,{constructor:e,init:function(){var b=this,c=b.options,e=c.button;e.addClass("webuploader-pick"),b.on("all",function(a){var g;switch(a){case"mouseenter":e.addClass("webuploader-pick-hover");break;case"mouseleave":e.removeClass("webuploader-pick-hover");break;case"change":g=b.exec("getFiles"),b.trigger("select",f.map(g,function(a){return a=new d(b.getRuid(),a),a._refer=c.container,a}),c.container)}}),b.connectRuntime(c,function(){b.refresh(),b.exec("init",c),b.trigger("ready")}),f(a).on("resize",function(){b.refresh()})},refresh:function(){var a=this.getRuntime().getContainer(),b=this.options.button,c=b.outerWidth?b.outerWidth():b.width(),d=b.outerHeight?b.outerHeight():b.height(),e=b.offset();c&&d&&a.css({bottom:"auto",right:"auto",width:c+"px",height:d+"px"}).offset(e)},enable:function(){var a=this.options.button;a.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var a=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),a.addClass("webuploader-pick-disable")},destroy:function(){this.runtime&&(this.exec("destroy"),this.disconnectRuntime())}}),e}),b("widgets/widget",["base","uploader"],function(a,b){function c(a){if(!a)return!1;var b=a.length,c=e.type(a);return 1===a.nodeType&&b?!0:"array"===c||"function"!==c&&"string"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){this.owner=a,this.options=a.options}var e=a.$,f=b.prototype._init,g={},h=[];return e.extend(d.prototype,{init:a.noop,invoke:function(a,b){var c=this.responseMap;return c&&a in c&&c[a]in this&&e.isFunction(this[c[a]])?this[c[a]].apply(this,b):g},request:function(){return this.owner.request.apply(this.owner,arguments)}}),e.extend(b.prototype,{_init:function(){var a=this,b=a._widgets=[];return e.each(h,function(c,d){b.push(new d(a))}),f.apply(a,arguments)},request:function(b,d,e){var f,h,i,j,k=0,l=this._widgets,m=l.length,n=[],o=[];for(d=c(d)?d:[d];m>k;k++)f=l[k],h=f.invoke(b,d),h!==g&&(a.isPromise(h)?o.push(h):n.push(h));return e||o.length?(i=a.when.apply(a,o),j=i.pipe?"pipe":"then",i[j](function(){var b=a.Deferred(),c=arguments;return setTimeout(function(){b.resolve.apply(b,c)},1),b.promise()})[j](e||a.noop)):n[0]}}),b.register=d.register=function(b,c){var f,g={init:"init"};return 1===arguments.length?(c=b,c.responseMap=g):c.responseMap=e.extend(g,b),f=a.inherits(d,c),h.push(f),f},d}),b("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(a,b,c){var d=a.$;return d.extend(b.options,{pick:null,accept:null}),b.register({"add-btn":"addButton",refresh:"refresh",disable:"disable",enable:"enable"},{init:function(a){return this.pickers=[],a.pick&&this.addButton(a.pick)},refresh:function(){d.each(this.pickers,function(){this.refresh()})},addButton:function(b){var e,f,g,h=this,i=h.options,j=i.accept;if(b)return g=a.Deferred(),d.isPlainObject(b)||(b={id:b}),e=d.extend({},b,{accept:d.isPlainObject(j)?[j]:j,swf:i.swf,runtimeOrder:i.runtimeOrder}),f=new c(e),f.once("ready",g.resolve),f.on("select",function(a){h.owner.request("add-file",[a])}),f.init(),this.pickers.push(f),g.promise()},disable:function(){d.each(this.pickers,function(){this.disable()})},enable:function(){d.each(this.pickers,function(){this.enable()})}})}),b("lib/image",["base","runtime/client","lib/blob"],function(a,b,c){function d(a){this.options=e.extend({},d.options,a),b.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}var e=a.$;return d.options={quality:90,crop:!1,preserveHeaders:!0,allowMagnify:!0},a.inherits(b,{constructor:d,info:function(a){return a?(this._info=a,this):this._info},meta:function(a){return a?(this._meta=a,this):this._meta},loadFromBlob:function(a){var b=this,c=a.getRuid();this.connectRuntime(c,function(){b.exec("init",b.options),b.exec("loadFromBlob",a)})},resize:function(){var b=a.slice(arguments);return this.exec.apply(this,["resize"].concat(b))},getAsDataUrl:function(a){return this.exec("getAsDataUrl",a)},getAsBlob:function(a){var b=this.exec("getAsBlob",a);return new c(this.getRuid(),b)}}),d}),b("widgets/image",["base","uploader","lib/image","widgets/widget"],function(a,b,c){var d,e=a.$;return d=function(a){var b=0,c=[],d=function(){for(var d;c.length&&a>b;)d=c.shift(),b+=d[0],d[1]()};return function(a,e,f){c.push([e,f]),a.once("destroy",function(){b-=e,setTimeout(d,1)}),setTimeout(d,1)}}(5242880),e.extend(b.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),b.register({"make-thumb":"makeThumb","before-send-file":"compressImage"},{makeThumb:function(a,b,f,g){var h,i;return a=this.request("get-file",a),a.type.match(/^image/)?(h=e.extend({},this.options.thumb),e.isPlainObject(f)&&(h=e.extend(h,f),f=null),f=f||h.width,g=g||h.height,i=new c(h),i.once("load",function(){a._info=a._info||i.info(),a._meta=a._meta||i.meta(),i.resize(f,g)}),i.once("complete",function(){b(!1,i.getAsDataUrl(h.type)),i.destroy()}),i.once("error",function(){b(!0),i.destroy()}),void d(i,a.source.size,function(){a._info&&i.info(a._info),a._meta&&i.meta(a._meta),i.loadFromBlob(a.source)})):void b(!0)},compressImage:function(b){var d,f,g=this.options.compress||this.options.resize,h=g&&g.compressSize||307200;return b=this.request("get-file",b),!g||!~"images/jpeg,images/jpg".indexOf(b.type)||b.sizeb;b++)if(c=this._queue[b],a===c.getStatus())return c;return null},sort:function(a){"function"==typeof a&&this._queue.sort(a)},getFiles:function(){for(var a,b=[].slice.call(arguments,0),c=[],d=0,f=this._queue.length;f>d;d++)a=this._queue[d],(!b.length||~e.inArray(a.getStatus(),b))&&c.push(a);return c},_fileAdded:function(a){var b=this,c=this._map[a.id];c||(this._map[a.id]=a,a.on("statuschange",function(a,c){b._onFileStatusChange(a,c)})),a.setStatus(f.QUEUED)},_onFileStatusChange:function(a,b){var c=this.stats;switch(b){case f.PROGRESS:c.numOfProgress--;break;case f.QUEUED:c.numOfQueue--;break;case f.ERROR:c.numOfUploadFailed--;break;case f.INVALID:c.numOfInvalid--}switch(a){case f.QUEUED:c.numOfQueue++;break;case f.PROGRESS:c.numOfProgress++;break;case f.ERROR:c.numOfUploadFailed++;break;case f.COMPLETE:c.numOfSuccess++;break;case f.CANCELLED:c.numOfCancel++;break;case f.INVALID:c.numOfInvalid++}}}),b.installTo(d.prototype),d}),b("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(a,b,c,d,e,f){var g=a.$,h=/\.\w+$/,i=d.Status;return b.register({"sort-files":"sortFiles","add-file":"addFiles","get-file":"getFile","fetch-file":"fetchFile","get-stats":"getStats","get-files":"getFiles","remove-file":"removeFile",retry:"retry",reset:"reset","accept-file":"acceptFile"},{init:function(b){var d,e,h,i,j,k,l,m=this;if(g.isPlainObject(b.accept)&&(b.accept=[b.accept]),b.accept){for(j=[],h=0,e=b.accept.length;e>h;h++)i=b.accept[h].extensions,i&&j.push(i);j.length&&(k="\\."+j.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),m.accept=new RegExp(k,"i")}return m.queue=new c,m.stats=m.queue.stats,"html5"===this.request("predict-runtime-type")?(d=a.Deferred(),l=new f("Placeholder"),l.connectRuntime({runtimeOrder:"html5"},function(){m._ruid=l.getRuid(),d.resolve()}),d.promise()):void 0},_wrapFile:function(a){if(!(a instanceof d)){if(!(a instanceof e)){if(!this._ruid)throw new Error("Can't add external files.");a=new e(this._ruid,a)}a=new d(a)}return a},acceptFile:function(a){var b=!a||a.size<6||this.accept&&h.exec(a.name)&&!this.accept.test(a.name);return!b},_addFile:function(a){var b=this;return a=b._wrapFile(a),b.owner.trigger("beforeFileQueued",a)?b.acceptFile(a)?(b.queue.append(a),b.owner.trigger("fileQueued",a),a):void b.owner.trigger("error","Q_TYPE_DENIED",a):void 0},getFile:function(a){return this.queue.getFile(a)},addFiles:function(a){var b=this;a.length||(a=[a]),a=g.map(a,function(a){return b._addFile(a)}),b.owner.trigger("filesQueued",a),b.options.auto&&b.request("start-upload")},getStats:function(){return this.stats},removeFile:function(a){var b=this;a=a.id?a:b.queue.getFile(a),a.setStatus(i.CANCELLED),b.owner.trigger("fileDequeued",a)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(a,b){var c,d,e,f=this;if(a)return a=a.id?a:f.queue.getFile(a),a.setStatus(i.QUEUED),void(b||f.request("start-upload"));for(c=f.queue.getFiles(i.ERROR),d=0,e=c.length;e>d;d++)a=c[d],a.setStatus(i.QUEUED);f.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.queue=new c,this.stats=this.queue.stats}})}),b("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(a,b){return a.support=function(){return b.hasRuntime.apply(b,arguments)},a.register({"predict-runtime-type":"predictRuntmeType"},{init:function(){if(!this.predictRuntmeType())throw Error("Runtime Error")},predictRuntmeType:function(){var a,c,d=this.options.runtimeOrder||b.orders,e=this.type;if(!e)for(d=d.split(/\s*,\s*/g),a=0,c=d.length;c>a;a++)if(b.hasRuntime(d[a])){this.type=e=d[a];break}return e}})}),b("lib/transport",["base","runtime/client","mediator"],function(a,b,c){function d(a){var c=this;a=c.options=e.extend(!0,{},d.options,a||{}),b.call(this,"Transport"),this._blob=null,this._formData=a.formData||{},this._headers=a.headers||{},this.on("progress",this._timeout),this.on("load error",function(){c.trigger("progress",1),clearTimeout(c._timer)})}var e=a.$;return d.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:12e4,formData:{},headers:{},sendAsBinary:!1},e.extend(d.prototype,{appendBlob:function(a,b,c){var d=this,e=d.options;d.getRuid()&&d.disconnectRuntime(),d.connectRuntime(b.ruid,function(){d.exec("init")}),d._blob=b,e.fileVal=a||e.fileVal,e.filename=c||e.filename},append:function(a,b){"object"==typeof a?e.extend(this._formData,a):this._formData[a]=b},setRequestHeader:function(a,b){"object"==typeof a?e.extend(this._headers,a):this._headers[a]=b},send:function(a){this.exec("send",a),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var a=this,b=a.options.timeout;b&&(clearTimeout(a._timer),a._timer=setTimeout(function(){a.abort(),a.trigger("error","timeout")},b))}}),c.installTo(d.prototype),d}),b("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(a,b,c,d){function e(a,b){for(var c,d=[],e=a.source,f=e.size,g=b?Math.ceil(f/b):1,h=0,i=0;g>i;)c=Math.min(b,f-h),d.push({file:a,start:h,end:b?h+c:f,total:f,chunks:g,chunk:i++}),h+=c;return a.blocks=d.concat(),a.remaning=d.length,{file:a,has:function(){return!!d.length},fetch:function(){return d.shift()}}}var f=a.$,g=a.isPromise,h=c.Status;f.extend(b.options,{prepareNextFile:!1,chunked:!1,chunkSize:5242880,chunkRetry:2,threads:3,formData:null}),b.register({"start-upload":"start","stop-upload":"stop","skip-file":"skipFile","is-in-progress":"isInProgress"},{init:function(){var b=this.owner;this.runing=!1,this.pool=[],this.pending=[],this.remaning=0,this.__tick=a.bindFn(this._tick,this),b.on("uploadComplete",function(a){a.blocks&&f.each(a.blocks,function(a,b){b.transport&&(b.transport.abort(),b.transport.destroy()),delete b.transport}),delete a.blocks,delete a.remaning})},start:function(){var b=this;f.each(b.request("get-files",h.INVALID),function(){b.request("remove-file",this)}),b.runing||(b.runing=!0,f.each(b.pool,function(a,c){var d=c.file;d.getStatus()===h.INTERRUPT&&(d.setStatus(h.PROGRESS),b._trigged=!1,c.transport&&c.transport.send())}),b._trigged=!1,b.owner.trigger("startUpload"),a.nextTick(b.__tick))},stop:function(a){var b=this;b.runing!==!1&&(b.runing=!1,a&&f.each(b.pool,function(a,b){b.transport&&b.transport.abort(),b.file.setStatus(h.INTERRUPT)}),b.owner.trigger("stopUpload"))},isInProgress:function(){return!!this.runing},getStats:function(){return this.request("get-stats")},skipFile:function(a,b){a=this.request("get-file",a),a.setStatus(b||h.COMPLETE),a.skipped=!0,a.blocks&&f.each(a.blocks,function(a,b){var c=b.transport;c&&(c.abort(),c.destroy(),delete b.transport)}),this.owner.trigger("uploadSkip",a)},_tick:function(){var b,c,d=this,e=d.options;return d._promise?d._promise.always(d.__tick):void(d.pool.length1&&(f.each(k.blocks,function(a,b){d+=(b.percentage||0)*(b.end-b.start)}),c=d/k.size),i.trigger("uploadProgress",k,c||0)}),c=function(a){var c;return e=l.getResponseAsJson()||{},e._raw=l.getResponse(),c=function(b){a=b},i.trigger("uploadAccept",b,e,c)||(a=a||"server"),a},l.on("error",function(a,d){b.retried=b.retried||0,b.chunks>1&&~"http,abort".indexOf(a)&&b.retried1&&f.extend(m,{chunks:b.chunks,chunk:b.chunk}),i.trigger("uploadBeforeSend",b,m,n),l.appendBlob(j.fileVal,b.blob,k.name),l.append(m),l.setRequestHeader(n),l.send()},_finishFile:function(a,b,c){var d=this.owner;return d.request("after-send-file",arguments,function(){a.setStatus(h.COMPLETE),d.trigger("uploadSuccess",a,b,c)}).fail(function(b){a.getStatus()===h.PROGRESS&&a.setStatus(h.ERROR,b),d.trigger("uploadError",a,b)}).always(function(){d.trigger("uploadComplete",a)})}})}),b("widgets/validator",["base","uploader","file","widgets/widget"],function(a,b,c){var d,e=a.$,f={};return d={addValidator:function(a,b){f[a]=b},removeValidator:function(a){delete f[a]}},b.register({init:function(){var a=this;e.each(f,function(){this.call(a.owner)})}}),d.addValidator("fileNumLimit",function(){var a=this,b=a.options,c=0,d=b.fileNumLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){return c>=d&&e&&(e=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",d,a),setTimeout(function(){e=!0},1)),c>=d?!1:!0}),a.on("fileQueued",function(){c++}),a.on("fileDequeued",function(){c--}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSizeLimit",function(){var a=this,b=a.options,c=0,d=b.fileSizeLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){var b=c+a.size>d;return b&&e&&(e=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",d,a),setTimeout(function(){e=!0},1)),b?!1:!0}),a.on("fileQueued",function(a){c+=a.size}),a.on("fileDequeued",function(a){c-=a.size}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSingleSizeLimit",function(){var a=this,b=a.options,d=b.fileSingleSizeLimit;d&&a.on("beforeFileQueued",function(a){return a.size>d?(a.setStatus(c.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",a),!1):void 0})}),d.addValidator("duplicate",function(){function a(a){for(var b,c=0,d=0,e=a.length;e>d;d++)b=a.charCodeAt(d),c=b+(c<<6)+(c<<16)-c;return c}var b=this,c=b.options,d={};c.duplicate||(b.on("beforeFileQueued",function(b){var c=b.__hash||(b.__hash=a(b.name+b.size+b.lastModifiedDate));return d[c]?(this.trigger("error","F_DUPLICATE",b),!1):void 0}),b.on("fileQueued",function(a){var b=a.__hash;b&&(d[b]=!0)}),b.on("fileDequeued",function(a){var b=a.__hash;b&&delete d[b]}))}),d}),b("runtime/compbase",[],function(){function a(a,b){this.owner=a,this.options=a.options,this.getRuntime=function(){return b},this.getRuid=function(){return b.uid},this.trigger=function(){return a.trigger.apply(a,arguments)}}return a}),b("runtime/flash/runtime",["base","runtime/runtime","runtime/compbase"],function(b,c,d){function e(){var a;try{a=navigator.plugins["Shockwave Flash"],a=a.description}catch(b){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(c){a="0.0"}}return a=a.match(/\d+/g),parseFloat(a[0]+"."+a[1],10)}function f(){function d(a,b){var c,d,e=a.type||a;c=e.split("::"),d=c[0],e=c[1],"Ready"===e&&d===j.uid?j.trigger("ready"):f[d]&&f[d].trigger(e.toLowerCase(),a,b)}var e={},f={},g=this.destory,j=this,k=b.guid("webuploader_");c.apply(j,arguments),j.type=h,j.exec=function(a,c){var d,g=this,h=g.uid,k=b.slice(arguments,2);return f[h]=g,i[a]&&(e[h]||(e[h]=new i[a](g,j)),d=e[h],d[c])?d[c].apply(d,k):j.flashExec.apply(g,arguments)},a[k]=function(){var a=arguments;setTimeout(function(){d.apply(null,a)},1)},this.jsreciver=k,this.destory=function(){return g&&g.apply(this,arguments)},this.flashExec=function(a,c){var d=j.getFlash(),e=b.slice(arguments,2);return d.exec(this.uid,a,c,e)}}var g=b.$,h="flash",i={};return b.inherits(c,{constructor:f,init:function(){var a,c=this.getContainer(),d=this.options;c.css({position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"}),a='',c.html(a)},getFlash:function(){return this._flash?this._flash:(this._flash=g("#"+this.uid).get(0),this._flash)}}),f.register=function(a,c){return c=i[a]=b.inherits(d,g.extend({flashExec:function(){var a=this.owner,b=this.getRuntime();return b.flashExec.apply(a,arguments)}},c))},e()>=11.4&&c.addRuntime(h,f),f}),b("runtime/flash/filepicker",["base","runtime/flash/runtime"],function(a,b){var c=a.$;return b.register("FilePicker",{init:function(a){var b,d,e=c.extend({},a);for(b=e.accept&&e.accept.length,d=0;b>d;d++)e.accept[d].title||(e.accept[d].title="Files");delete e.button,delete e.container,this.flashExec("FilePicker","init",e)},destroy:function(){}})}),b("runtime/flash/image",["runtime/flash/runtime"],function(a){return a.register("Image",{loadFromBlob:function(a){var b=this.owner;b.info()&&this.flashExec("Image","info",b.info()),b.meta()&&this.flashExec("Image","meta",b.meta()),this.flashExec("Image","loadFromBlob",a.uid)}})}),b("runtime/flash/transport",["base","runtime/flash/runtime","runtime/client"],function(a,b,c){var d=a.$;return b.register("Transport",{init:function(){this._status=0,this._response=null,this._responseJson=null},send:function(){var a,b=this.owner,c=this.options,e=this._initAjax(),f=b._blob,g=c.server;e.connectRuntime(f.ruid),c.sendAsBinary?(g+=(/\?/.test(g)?"&":"?")+d.param(b._formData),a=f.uid):(d.each(b._formData,function(a,b){e.exec("append",a,b) }),e.exec("appendBlob",c.fileVal,f.uid,c.filename||b._formData.name||"")),this._setRequestHeader(e,c.headers),e.exec("send",{method:c.method,url:g},a)},getStatus:function(){return this._status},getResponse:function(){return this._response},getResponseAsJson:function(){return this._responseJson},abort:function(){var a=this._xhr;a&&(a.exec("abort"),a.destroy(),this._xhr=a=null)},destroy:function(){this.abort()},_initAjax:function(){var a=this,b=new c("XMLHttpRequest");return b.on("uploadprogress progress",function(b){return a.trigger("progress",b.loaded/b.total)}),b.on("load",function(){var c=b.exec("getStatus"),d="";return b.off(),a._xhr=null,c>=200&&300>c?(a._response=b.exec("getResponse"),a._responseJson=b.exec("getResponseAsJson")):c>=500&&600>c?(a._response=b.exec("getResponse"),a._responseJson=b.exec("getResponseAsJson"),d="server"):d="http",b.destroy(),b=null,d?a.trigger("error",d):a.trigger("load")}),b.on("error",function(){b.off(),a._xhr=null,a.trigger("error","http")}),a._xhr=b,b},_setRequestHeader:function(a,b){d.each(b,function(b,c){a.exec("setRequestHeader",b,c)})}})}),b("preset/flashonly",["base","widgets/filepicker","widgets/image","widgets/queue","widgets/runtime","widgets/upload","widgets/validator","runtime/flash/filepicker","runtime/flash/image","runtime/flash/transport"],function(a){return a}),b("webuploader",["preset/flashonly"],function(a){return a}),c("webuploader")}); \ No newline at end of file diff --git a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.js b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.js index 5dd4813..a6ece23 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.js +++ b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.js @@ -1559,7 +1559,7 @@ // 如果没有指定mimetype, 但是知道文件后缀。 if ( !this.type && ~'jpg,jpeg,png,gif,bmp'.indexOf( ext ) ) { - this.type = 'image/' + (ext === 'jpg' ? 'jpeg' : ext); + this.type = 'images/' + (ext === 'jpg' ? 'jpeg' : ext); } this.ext = ext; @@ -1745,14 +1745,14 @@ * { * title: 'Images', * extensions: 'gif,jpg,jpeg,bmp,png', - * mimeTypes: 'image/*' + * mimeTypes: 'images/*' * } * ``` */ accept: null/*{ title: 'Images', extensions: 'gif,jpg,jpeg,bmp,png', - mimeTypes: 'image/*' + mimeTypes: 'images/*' }*/ }); @@ -1932,7 +1932,7 @@ define('widgets/image',[ 'base', 'uploader', - 'lib/image', + 'lib/images', 'widgets/widget' ], function( Base, Uploader, Image ) { @@ -1978,7 +1978,7 @@ * width: 110, * height: 110, * - * // 图片质量,只有type为`image/jpeg`的时候才有效。 + * // 图片质量,只有type为`images/jpeg`的时候才有效。 * quality: 70, * * // 是否允许放大,如果想要生成小图的时候不失真,此选项应该设置为false. @@ -1992,7 +1992,7 @@ * * // 为空的话则保留原有图片格式。 * // 否则强制转换成指定的类型。 - * type: 'image/jpeg' + * type: 'images/jpeg' * } * ``` */ @@ -2007,8 +2007,8 @@ // 为空的话则保留原有图片格式。 // 否则强制转换成指定的类型。 // IE 8下面 base64 大小不能超过 32K 否则预览失败,而非 jpeg 编码的图片很可 - // 能会超过 32k, 所以这里设置成预览的时候都是 image/jpeg - type: 'image/jpeg' + // 能会超过 32k, 所以这里设置成预览的时候都是 images/jpeg + type: 'images/jpeg' }, /** @@ -2024,7 +2024,7 @@ * width: 1600, * height: 1600, * - * // 图片质量,只有type为`image/jpeg`的时候才有效。 + * // 图片质量,只有type为`images/jpeg`的时候才有效。 * quality: 90, * * // 是否允许放大,如果想要生成小图的时候不失真,此选项应该设置为false. @@ -2140,7 +2140,7 @@ file = this.request( 'get-file', file ); // 只预览图片格式。 - if ( !opts || !~'image/jpeg,image/jpg'.indexOf( file.type ) || + if ( !opts || !~'images/jpeg,images/jpg'.indexOf( file.type ) || file.size < compressSize || file._compressed ) { return; @@ -4880,7 +4880,7 @@ // b = dataView.getUint8(offset + i); // hexData.push((b < 16 ? '0' : '') + b.toString(16)); // } - // return 'data:image/jpeg,%' + hexData.join('%'); + // return 'data:images/jpeg,%' + hexData.join('%'); // }; EXIF.parseExifData = function( dataView, offset, length, data ) { @@ -4929,7 +4929,7 @@ dirOffset = dataView.getUint32( tiffOffset + 4, littleEndian ); // Create the exif object to store the tags: data.exif = new EXIF.ExifMap(); - // Parse the tags of the main image directory and retrieve the + // Parse the tags of the main images directory and retrieve the // offset to the next directory, usually the thumbnail directory: dirOffset = EXIF.parseExifTags( dataView, tiffOffset, tiffOffset + dirOffset, littleEndian, data ); @@ -4968,7 +4968,7 @@ 'runtime/html5/util' ], function( Base, Html5Runtime, Util ) { - var BLANK = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D'; + var BLANK = 'data:images/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D'; return Html5Runtime.register( 'Image', { @@ -4988,7 +4988,7 @@ }; // 读取meta信息。 - if ( !me._metas && 'image/jpeg' === me.type ) { + if ( !me._metas && 'images/jpeg' === me.type ) { Util.parseMeta( me._blob, function( error, ret ) { me._metas = ret; me.owner.trigger('load'); @@ -5038,9 +5038,9 @@ if ( this.modified || this.type !== type ) { canvas = this._canvas; - if ( type === 'image/jpeg' ) { + if ( type === 'images/jpeg' ) { - blob = Util.canvasToDataUrl( canvas, 'image/jpeg', + blob = Util.canvasToDataUrl( canvas, 'images/jpeg', opts.quality ); if ( opts.preserveHeaders && this._metas && @@ -5067,7 +5067,7 @@ type = type || this.type; - if ( type === 'image/jpeg' ) { + if ( type === 'images/jpeg' ) { return Util.canvasToDataUrl( this._canvas, type, opts.quality ); } else { return this._canvas.toDataURL( type ); @@ -5215,7 +5215,7 @@ }, // https://github.com/stomita/ios-imagefile-megapixel/ - // blob/master/src/megapix-image.js + // blob/master/src/megapix-images.js _renderImageToCanvas: (function() { // 如果不是ios, 不需要这么复杂! @@ -5226,8 +5226,8 @@ } /** - * Detecting vertical squash in loaded image. - * Fixes a bug which squash image vertically while drawing into + * Detecting vertical squash in loaded images. + * Fixes a bug which squash images vertically while drawing into * canvas for some images. */ function detectVerticalSquash( img, iw, ih ) { @@ -5244,7 +5244,7 @@ ctx.drawImage( img, 0, 0 ); data = ctx.getImageData( 0, 0, 1, ih ).data; - // search image edge pixel position in case + // search images edge pixel position in case // it is squashed vertically. while ( py > sy ) { alpha = data[ (py - 1) * 4 + 3 ]; @@ -5278,7 +5278,7 @@ } /** - * Detect subsampling in loaded image. + * Detect subsampling in loaded images. * In iOS, larger images than 2M pixels may be * subsampled in rendering. */ @@ -5287,17 +5287,17 @@ ih = img.naturalHeight, canvas, ctx; - // subsampling may happen overmegapixel image + // subsampling may happen overmegapixel images if ( iw * ih > 1024 * 1024 ) { canvas = document.createElement('canvas'); canvas.width = canvas.height = 1; ctx = canvas.getContext('2d'); ctx.drawImage( img, -iw + 1, 0 ); - // subsampled image becomes half smaller in rendering size. - // check alpha channel value to confirm image is covering + // subsampled images becomes half smaller in rendering size. + // check alpha channel value to confirm images is covering // edge pixel or not. if alpha value is 0 - // image is not covering, hence subsampled. + // images is not covering, hence subsampled. return ctx.getImageData( 0, 0, 1, 1 ).data[ 3 ] === 0; } else { return false; @@ -5310,7 +5310,7 @@ ih = img.naturalHeight, ctx = canvas.getContext('2d'), subsampled = detectSubsampling( img ), - doSquash = this.type === 'image/jpeg', + doSquash = this.type === 'images/jpeg', d = 1024, sy = 0, dy = 0, @@ -5532,7 +5532,7 @@ 'widgets/filednd', 'widgets/filepaste', 'widgets/filepicker', - 'widgets/image', + 'widgets/images', 'widgets/queue', 'widgets/runtime', 'widgets/upload', @@ -5545,7 +5545,7 @@ 'runtime/html5/filepaste', 'runtime/html5/filepicker', 'runtime/html5/imagemeta/exif', - 'runtime/html5/image', + 'runtime/html5/images', 'runtime/html5/transport' ], function( Base ) { return Base; diff --git a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.min.js b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.min.js index 866dcde..46d6d49 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.min.js +++ b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.min.js @@ -1,2 +1,2 @@ -/* WebUploader 0.1.2 */!function(a,b){var c,d={},e=function(a,b){var c,d,e;if("string"==typeof a)return h(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));return b.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){var f,g={exports:b};"function"==typeof b&&(c.length||(c=[e,g.exports,g]),f=b.apply(null,c),void 0!==f&&(g.exports=f)),d[a]=g.exports},h=function(b){var c=d[b]||a[b];if(!c)throw new Error("`"+b+"` is undefined");return c},i=function(a){var b,c,e,f,g,h;h=function(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)};for(b in d)if(c=a,d.hasOwnProperty(b)){for(e=b.split("/"),g=h(e.pop());f=h(e.shift());)c[f]=c[f]||{},c=c[f];c[g]=d[b]}},j=b(a,f,e);i(j),"object"==typeof module&&"object"==typeof module.exports?module.exports=j:"function"==typeof define&&define.amd?define([],j):(c=a.WebUploader,a.WebUploader=j,a.WebUploader.noConflict=function(){a.WebUploader=c})}(this,function(a,b,c){return b("dollar-third",[],function(){return a.jQuery||a.Zepto}),b("dollar",["dollar-third"],function(a){return a}),b("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(a){return a&&"function"==typeof a.then}}}),b("promise",["promise-third"],function(a){return a}),b("base",["dollar","promise"],function(b,c){function d(a){return function(){return h.apply(a,arguments)}}function e(a,b){return function(){return a.apply(b,arguments)}}function f(a){var b;return Object.create?Object.create(a):(b=function(){},b.prototype=a,new b)}var g=function(){},h=Function.call;return{version:"0.1.2",$:b,Deferred:c.Deferred,isPromise:c.isPromise,when:c.when,browser:function(a){var b={},c=a.match(/WebKit\/([\d.]+)/),d=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),e=a.match(/MSIE\s([\d\.]+)/)||a.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=a.match(/Firefox\/([\d.]+)/),g=a.match(/Safari\/([\d.]+)/),h=a.match(/OPR\/([\d.]+)/);return c&&(b.webkit=parseFloat(c[1])),d&&(b.chrome=parseFloat(d[1])),e&&(b.ie=parseFloat(e[1])),f&&(b.firefox=parseFloat(f[1])),g&&(b.safari=parseFloat(g[1])),h&&(b.opera=parseFloat(h[1])),b}(navigator.userAgent),os:function(a){var b={},c=a.match(/(?:Android);?[\s\/]+([\d.]+)?/),d=a.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return c&&(b.android=parseFloat(c[1])),d&&(b.ios=parseFloat(d[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(a,c,d){var e;return"function"==typeof c?(e=c,c=null):e=c&&c.hasOwnProperty("constructor")?c.constructor:function(){return a.apply(this,arguments)},b.extend(!0,e,a,d||{}),e.__super__=a.prototype,e.prototype=f(a.prototype),c&&b.extend(!0,e.prototype,c),e},noop:g,bindFn:e,log:function(){return a.console?e(console.log,console):g}(),nextTick:function(){return function(a){setTimeout(a,1)}}(),slice:d([].slice),guid:function(){var a=0;return function(b){for(var c=(+new Date).toString(32),d=0;5>d;d++)c+=Math.floor(65535*Math.random()).toString(32);return(b||"wu_")+c+(a++).toString(32)}}(),formatSize:function(a,b,c){var d;for(c=c||["B","K","M","G","TB"];(d=c.shift())&&a>1024;)a/=1024;return("B"===d?a:a.toFixed(b||2))+d}}}),b("mediator",["base"],function(a){function b(a,b,c,d){return f.grep(a,function(a){return!(!a||b&&a.e!==b||c&&a.cb!==c&&a.cb._cb!==c||d&&a.ctx!==d)})}function c(a,b,c){f.each((a||"").split(h),function(a,d){c(d,b)})}function d(a,b){for(var c,d=!1,e=-1,f=a.length;++e1?void(d.isPlainObject(b)&&d.isPlainObject(c[a])?d.extend(c[a],b):c[a]=b):a?c[a]:c},getStats:function(){var a=this.request("get-stats");return{successNum:a.numOfSuccess,cancelNum:a.numOfCancel,invalidNum:a.numOfInvalid,uploadFailNum:a.numOfUploadFailed,queueNum:a.numOfQueue}},trigger:function(a){var c=[].slice.call(arguments,1),e=this.options,f="on"+a.substring(0,1).toUpperCase()+a.substring(1);return b.trigger.apply(this,arguments)===!1||d.isFunction(e[f])&&e[f].apply(this,c)===!1||d.isFunction(this[f])&&this[f].apply(this,c)===!1||b.trigger.apply(b,[this,a].concat(c))===!1?!1:!0},request:a.noop}),a.create=c.create=function(a){return new c(a)},a.Uploader=c,c}),b("runtime/runtime",["base","mediator"],function(a,b){function c(b){this.options=d.extend({container:document.body},b),this.uid=a.guid("rt_")}var d=a.$,e={},f=function(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null};return d.extend(c.prototype,{getContainer:function(){var a,b,c=this.options;return this._container?this._container:(a=d(c.container||document.body),b=d(document.createElement("div")),b.attr("id","rt_"+this.uid),b.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),a.append(b),a.addClass("webuploader-container"),this._container=b,b)},init:a.noop,exec:a.noop,destroy:function(){this._container&&this._container.parentNode.removeChild(this.__container),this.off()}}),c.orders="html5,flash",c.addRuntime=function(a,b){e[a]=b},c.hasRuntime=function(a){return!!(a?e[a]:f(e))},c.create=function(a,b){var g,h;if(b=b||c.orders,d.each(b.split(/\s*,\s*/g),function(){return e[this]?(g=this,!1):void 0}),g=g||f(e),!g)throw new Error("Runtime Error");return h=new e[g](a)},b.installTo(c.prototype),c}),b("runtime/client",["base","mediator","runtime/runtime"],function(a,b,c){function d(b,d){var f,g=a.Deferred();this.uid=a.guid("client_"),this.runtimeReady=function(a){return g.done(a)},this.connectRuntime=function(b,h){if(f)throw new Error("already connected!");return g.done(h),"string"==typeof b&&e.get(b)&&(f=e.get(b)),f=f||e.get(null,d),f?(a.$.extend(f.options,b),f.__promise.then(g.resolve),f.__client++):(f=c.create(b,b.runtimeOrder),f.__promise=g.promise(),f.once("ready",g.resolve),f.init(),e.add(f),f.__client=1),d&&(f.__standalone=d),f},this.getRuntime=function(){return f},this.disconnectRuntime=function(){f&&(f.__client--,f.__client<=0&&(e.remove(f),delete f.__promise,f.destroy()),f=null)},this.exec=function(){if(f){var c=a.slice(arguments);return b&&c.unshift(b),f.exec.apply(this,c)}},this.getRuid=function(){return f&&f.uid},this.destroy=function(a){return function(){a&&a.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}var e;return e=function(){var a={};return{add:function(b){a[b.uid]=b},get:function(b,c){var d;if(b)return a[b];for(d in a)if(!c||!a[d].__standalone)return a[d];return null},remove:function(b){delete a[b.uid]}}}(),b.installTo(d.prototype),d}),b("lib/dnd",["base","mediator","runtime/client"],function(a,b,c){function d(a){a=this.options=e.extend({},d.options,a),a.container=e(a.container),a.container.length&&c.call(this,"DragAndDrop")}var e=a.$;return d.options={accept:null,disableGlobalDnd:!1},a.inherits(c,{constructor:d,init:function(){var a=this;a.connectRuntime(a.options,function(){a.exec("init"),a.trigger("ready")})},destroy:function(){this.disconnectRuntime()}}),b.installTo(d.prototype),d}),b("widgets/widget",["base","uploader"],function(a,b){function c(a){if(!a)return!1;var b=a.length,c=e.type(a);return 1===a.nodeType&&b?!0:"array"===c||"function"!==c&&"string"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){this.owner=a,this.options=a.options}var e=a.$,f=b.prototype._init,g={},h=[];return e.extend(d.prototype,{init:a.noop,invoke:function(a,b){var c=this.responseMap;return c&&a in c&&c[a]in this&&e.isFunction(this[c[a]])?this[c[a]].apply(this,b):g},request:function(){return this.owner.request.apply(this.owner,arguments)}}),e.extend(b.prototype,{_init:function(){var a=this,b=a._widgets=[];return e.each(h,function(c,d){b.push(new d(a))}),f.apply(a,arguments)},request:function(b,d,e){var f,h,i,j,k=0,l=this._widgets,m=l.length,n=[],o=[];for(d=c(d)?d:[d];m>k;k++)f=l[k],h=f.invoke(b,d),h!==g&&(a.isPromise(h)?o.push(h):n.push(h));return e||o.length?(i=a.when.apply(a,o),j=i.pipe?"pipe":"then",i[j](function(){var b=a.Deferred(),c=arguments;return setTimeout(function(){b.resolve.apply(b,c)},1),b.promise()})[j](e||a.noop)):n[0]}}),b.register=d.register=function(b,c){var f,g={init:"init"};return 1===arguments.length?(c=b,c.responseMap=g):c.responseMap=e.extend(g,b),f=a.inherits(d,c),h.push(f),f},d}),b("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],function(a,b,c){var d=a.$;return b.options.dnd="",b.register({init:function(b){if(b.dnd&&"html5"===this.request("predict-runtime-type")){var e,f=this,g=a.Deferred(),h=d.extend({},{disableGlobalDnd:b.disableGlobalDnd,container:b.dnd,accept:b.accept});return e=new c(h),e.once("ready",g.resolve),e.on("drop",function(a){f.request("add-file",[a])}),e.on("accept",function(a){return f.owner.trigger("dndAccept",a)}),e.init(),g.promise()}}})}),b("lib/filepaste",["base","mediator","runtime/client"],function(a,b,c){function d(a){a=this.options=e.extend({},a),a.container=e(a.container||document.body),c.call(this,"FilePaste")}var e=a.$;return a.inherits(c,{constructor:d,init:function(){var a=this;a.connectRuntime(a.options,function(){a.exec("init"),a.trigger("ready")})},destroy:function(){this.exec("destroy"),this.disconnectRuntime(),this.off()}}),b.installTo(d.prototype),d}),b("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],function(a,b,c){var d=a.$;return b.register({init:function(b){if(b.paste&&"html5"===this.request("predict-runtime-type")){var e,f=this,g=a.Deferred(),h=d.extend({},{container:b.paste,accept:b.accept});return e=new c(h),e.once("ready",g.resolve),e.on("paste",function(a){f.owner.request("add-file",[a])}),e.init(),g.promise()}}})}),b("lib/blob",["base","runtime/client"],function(a,b){function c(a,c){var d=this;d.source=c,d.ruid=a,b.call(d,"Blob"),this.uid=c.uid||this.uid,this.type=c.type||"",this.size=c.size||0,a&&d.connectRuntime(a)}return a.inherits(b,{constructor:c,slice:function(a,b){return this.exec("slice",a,b)},getSource:function(){return this.source}}),c}),b("lib/file",["base","lib/blob"],function(a,b){function c(a,c){var f;b.apply(this,arguments),this.name=c.name||"untitled"+d++,f=e.exec(c.name)?RegExp.$1.toLowerCase():"",!f&&this.type&&(f=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(this.type)?RegExp.$1.toLowerCase():"",this.name+="."+f),!this.type&&~"jpg,jpeg,png,gif,bmp".indexOf(f)&&(this.type="image/"+("jpg"===f?"jpeg":f)),this.ext=f,this.lastModifiedDate=c.lastModifiedDate||(new Date).toLocaleString()}var d=1,e=/\.([^.]+)$/;return a.inherits(b,c)}),b("lib/filepicker",["base","runtime/client","lib/file"],function(b,c,d){function e(a){if(a=this.options=f.extend({},e.options,a),a.container=f(a.id),!a.container.length)throw new Error("按钮指定错误");a.innerHTML=a.innerHTML||a.label||a.container.html()||"",a.button=f(a.button||document.createElement("div")),a.button.html(a.innerHTML),a.container.html(a.button),c.call(this,"FilePicker",!0)}var f=b.$;return e.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file"},b.inherits(c,{constructor:e,init:function(){var b=this,c=b.options,e=c.button;e.addClass("webuploader-pick"),b.on("all",function(a){var g;switch(a){case"mouseenter":e.addClass("webuploader-pick-hover");break;case"mouseleave":e.removeClass("webuploader-pick-hover");break;case"change":g=b.exec("getFiles"),b.trigger("select",f.map(g,function(a){return a=new d(b.getRuid(),a),a._refer=c.container,a}),c.container)}}),b.connectRuntime(c,function(){b.refresh(),b.exec("init",c),b.trigger("ready")}),f(a).on("resize",function(){b.refresh()})},refresh:function(){var a=this.getRuntime().getContainer(),b=this.options.button,c=b.outerWidth?b.outerWidth():b.width(),d=b.outerHeight?b.outerHeight():b.height(),e=b.offset();c&&d&&a.css({bottom:"auto",right:"auto",width:c+"px",height:d+"px"}).offset(e)},enable:function(){var a=this.options.button;a.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var a=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),a.addClass("webuploader-pick-disable")},destroy:function(){this.runtime&&(this.exec("destroy"),this.disconnectRuntime())}}),e}),b("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(a,b,c){var d=a.$;return d.extend(b.options,{pick:null,accept:null}),b.register({"add-btn":"addButton",refresh:"refresh",disable:"disable",enable:"enable"},{init:function(a){return this.pickers=[],a.pick&&this.addButton(a.pick)},refresh:function(){d.each(this.pickers,function(){this.refresh()})},addButton:function(b){var e,f,g,h=this,i=h.options,j=i.accept;if(b)return g=a.Deferred(),d.isPlainObject(b)||(b={id:b}),e=d.extend({},b,{accept:d.isPlainObject(j)?[j]:j,swf:i.swf,runtimeOrder:i.runtimeOrder}),f=new c(e),f.once("ready",g.resolve),f.on("select",function(a){h.owner.request("add-file",[a])}),f.init(),this.pickers.push(f),g.promise()},disable:function(){d.each(this.pickers,function(){this.disable()})},enable:function(){d.each(this.pickers,function(){this.enable()})}})}),b("lib/image",["base","runtime/client","lib/blob"],function(a,b,c){function d(a){this.options=e.extend({},d.options,a),b.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}var e=a.$;return d.options={quality:90,crop:!1,preserveHeaders:!0,allowMagnify:!0},a.inherits(b,{constructor:d,info:function(a){return a?(this._info=a,this):this._info},meta:function(a){return a?(this._meta=a,this):this._meta},loadFromBlob:function(a){var b=this,c=a.getRuid();this.connectRuntime(c,function(){b.exec("init",b.options),b.exec("loadFromBlob",a)})},resize:function(){var b=a.slice(arguments);return this.exec.apply(this,["resize"].concat(b))},getAsDataUrl:function(a){return this.exec("getAsDataUrl",a)},getAsBlob:function(a){var b=this.exec("getAsBlob",a);return new c(this.getRuid(),b)}}),d}),b("widgets/image",["base","uploader","lib/image","widgets/widget"],function(a,b,c){var d,e=a.$;return d=function(a){var b=0,c=[],d=function(){for(var d;c.length&&a>b;)d=c.shift(),b+=d[0],d[1]()};return function(a,e,f){c.push([e,f]),a.once("destroy",function(){b-=e,setTimeout(d,1)}),setTimeout(d,1)}}(5242880),e.extend(b.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),b.register({"make-thumb":"makeThumb","before-send-file":"compressImage"},{makeThumb:function(a,b,f,g){var h,i;return a=this.request("get-file",a),a.type.match(/^image/)?(h=e.extend({},this.options.thumb),e.isPlainObject(f)&&(h=e.extend(h,f),f=null),f=f||h.width,g=g||h.height,i=new c(h),i.once("load",function(){a._info=a._info||i.info(),a._meta=a._meta||i.meta(),i.resize(f,g)}),i.once("complete",function(){b(!1,i.getAsDataUrl(h.type)),i.destroy()}),i.once("error",function(){b(!0),i.destroy()}),void d(i,a.source.size,function(){a._info&&i.info(a._info),a._meta&&i.meta(a._meta),i.loadFromBlob(a.source)})):void b(!0)},compressImage:function(b){var d,f,g=this.options.compress||this.options.resize,h=g&&g.compressSize||307200;return b=this.request("get-file",b),!g||!~"image/jpeg,image/jpg".indexOf(b.type)||b.sizeb;b++)if(c=this._queue[b],a===c.getStatus())return c;return null},sort:function(a){"function"==typeof a&&this._queue.sort(a)},getFiles:function(){for(var a,b=[].slice.call(arguments,0),c=[],d=0,f=this._queue.length;f>d;d++)a=this._queue[d],(!b.length||~e.inArray(a.getStatus(),b))&&c.push(a);return c},_fileAdded:function(a){var b=this,c=this._map[a.id];c||(this._map[a.id]=a,a.on("statuschange",function(a,c){b._onFileStatusChange(a,c)})),a.setStatus(f.QUEUED)},_onFileStatusChange:function(a,b){var c=this.stats;switch(b){case f.PROGRESS:c.numOfProgress--;break;case f.QUEUED:c.numOfQueue--;break;case f.ERROR:c.numOfUploadFailed--;break;case f.INVALID:c.numOfInvalid--}switch(a){case f.QUEUED:c.numOfQueue++;break;case f.PROGRESS:c.numOfProgress++;break;case f.ERROR:c.numOfUploadFailed++;break;case f.COMPLETE:c.numOfSuccess++;break;case f.CANCELLED:c.numOfCancel++;break;case f.INVALID:c.numOfInvalid++}}}),b.installTo(d.prototype),d}),b("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(a,b,c,d,e,f){var g=a.$,h=/\.\w+$/,i=d.Status;return b.register({"sort-files":"sortFiles","add-file":"addFiles","get-file":"getFile","fetch-file":"fetchFile","get-stats":"getStats","get-files":"getFiles","remove-file":"removeFile",retry:"retry",reset:"reset","accept-file":"acceptFile"},{init:function(b){var d,e,h,i,j,k,l,m=this;if(g.isPlainObject(b.accept)&&(b.accept=[b.accept]),b.accept){for(j=[],h=0,e=b.accept.length;e>h;h++)i=b.accept[h].extensions,i&&j.push(i);j.length&&(k="\\."+j.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),m.accept=new RegExp(k,"i")}return m.queue=new c,m.stats=m.queue.stats,"html5"===this.request("predict-runtime-type")?(d=a.Deferred(),l=new f("Placeholder"),l.connectRuntime({runtimeOrder:"html5"},function(){m._ruid=l.getRuid(),d.resolve()}),d.promise()):void 0},_wrapFile:function(a){if(!(a instanceof d)){if(!(a instanceof e)){if(!this._ruid)throw new Error("Can't add external files.");a=new e(this._ruid,a)}a=new d(a)}return a},acceptFile:function(a){var b=!a||a.size<6||this.accept&&h.exec(a.name)&&!this.accept.test(a.name);return!b},_addFile:function(a){var b=this;return a=b._wrapFile(a),b.owner.trigger("beforeFileQueued",a)?b.acceptFile(a)?(b.queue.append(a),b.owner.trigger("fileQueued",a),a):void b.owner.trigger("error","Q_TYPE_DENIED",a):void 0},getFile:function(a){return this.queue.getFile(a)},addFiles:function(a){var b=this;a.length||(a=[a]),a=g.map(a,function(a){return b._addFile(a)}),b.owner.trigger("filesQueued",a),b.options.auto&&b.request("start-upload")},getStats:function(){return this.stats},removeFile:function(a){var b=this;a=a.id?a:b.queue.getFile(a),a.setStatus(i.CANCELLED),b.owner.trigger("fileDequeued",a)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(a,b){var c,d,e,f=this;if(a)return a=a.id?a:f.queue.getFile(a),a.setStatus(i.QUEUED),void(b||f.request("start-upload"));for(c=f.queue.getFiles(i.ERROR),d=0,e=c.length;e>d;d++)a=c[d],a.setStatus(i.QUEUED);f.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.queue=new c,this.stats=this.queue.stats}})}),b("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(a,b){return a.support=function(){return b.hasRuntime.apply(b,arguments)},a.register({"predict-runtime-type":"predictRuntmeType"},{init:function(){if(!this.predictRuntmeType())throw Error("Runtime Error")},predictRuntmeType:function(){var a,c,d=this.options.runtimeOrder||b.orders,e=this.type;if(!e)for(d=d.split(/\s*,\s*/g),a=0,c=d.length;c>a;a++)if(b.hasRuntime(d[a])){this.type=e=d[a];break}return e}})}),b("lib/transport",["base","runtime/client","mediator"],function(a,b,c){function d(a){var c=this;a=c.options=e.extend(!0,{},d.options,a||{}),b.call(this,"Transport"),this._blob=null,this._formData=a.formData||{},this._headers=a.headers||{},this.on("progress",this._timeout),this.on("load error",function(){c.trigger("progress",1),clearTimeout(c._timer)})}var e=a.$;return d.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:12e4,formData:{},headers:{},sendAsBinary:!1},e.extend(d.prototype,{appendBlob:function(a,b,c){var d=this,e=d.options;d.getRuid()&&d.disconnectRuntime(),d.connectRuntime(b.ruid,function(){d.exec("init")}),d._blob=b,e.fileVal=a||e.fileVal,e.filename=c||e.filename},append:function(a,b){"object"==typeof a?e.extend(this._formData,a):this._formData[a]=b},setRequestHeader:function(a,b){"object"==typeof a?e.extend(this._headers,a):this._headers[a]=b},send:function(a){this.exec("send",a),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var a=this,b=a.options.timeout;b&&(clearTimeout(a._timer),a._timer=setTimeout(function(){a.abort(),a.trigger("error","timeout")},b))}}),c.installTo(d.prototype),d}),b("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(a,b,c,d){function e(a,b){for(var c,d=[],e=a.source,f=e.size,g=b?Math.ceil(f/b):1,h=0,i=0;g>i;)c=Math.min(b,f-h),d.push({file:a,start:h,end:b?h+c:f,total:f,chunks:g,chunk:i++}),h+=c;return a.blocks=d.concat(),a.remaning=d.length,{file:a,has:function(){return!!d.length},fetch:function(){return d.shift()}}}var f=a.$,g=a.isPromise,h=c.Status;f.extend(b.options,{prepareNextFile:!1,chunked:!1,chunkSize:5242880,chunkRetry:2,threads:3,formData:null}),b.register({"start-upload":"start","stop-upload":"stop","skip-file":"skipFile","is-in-progress":"isInProgress"},{init:function(){var b=this.owner;this.runing=!1,this.pool=[],this.pending=[],this.remaning=0,this.__tick=a.bindFn(this._tick,this),b.on("uploadComplete",function(a){a.blocks&&f.each(a.blocks,function(a,b){b.transport&&(b.transport.abort(),b.transport.destroy()),delete b.transport}),delete a.blocks,delete a.remaning})},start:function(){var b=this;f.each(b.request("get-files",h.INVALID),function(){b.request("remove-file",this)}),b.runing||(b.runing=!0,f.each(b.pool,function(a,c){var d=c.file;d.getStatus()===h.INTERRUPT&&(d.setStatus(h.PROGRESS),b._trigged=!1,c.transport&&c.transport.send())}),b._trigged=!1,b.owner.trigger("startUpload"),a.nextTick(b.__tick))},stop:function(a){var b=this;b.runing!==!1&&(b.runing=!1,a&&f.each(b.pool,function(a,b){b.transport&&b.transport.abort(),b.file.setStatus(h.INTERRUPT)}),b.owner.trigger("stopUpload"))},isInProgress:function(){return!!this.runing},getStats:function(){return this.request("get-stats")},skipFile:function(a,b){a=this.request("get-file",a),a.setStatus(b||h.COMPLETE),a.skipped=!0,a.blocks&&f.each(a.blocks,function(a,b){var c=b.transport;c&&(c.abort(),c.destroy(),delete b.transport)}),this.owner.trigger("uploadSkip",a)},_tick:function(){var b,c,d=this,e=d.options;return d._promise?d._promise.always(d.__tick):void(d.pool.length1&&(f.each(k.blocks,function(a,b){d+=(b.percentage||0)*(b.end-b.start)}),c=d/k.size),i.trigger("uploadProgress",k,c||0)}),c=function(a){var c;return e=l.getResponseAsJson()||{},e._raw=l.getResponse(),c=function(b){a=b},i.trigger("uploadAccept",b,e,c)||(a=a||"server"),a},l.on("error",function(a,d){b.retried=b.retried||0,b.chunks>1&&~"http,abort".indexOf(a)&&b.retried1&&f.extend(m,{chunks:b.chunks,chunk:b.chunk}),i.trigger("uploadBeforeSend",b,m,n),l.appendBlob(j.fileVal,b.blob,k.name),l.append(m),l.setRequestHeader(n),l.send()},_finishFile:function(a,b,c){var d=this.owner;return d.request("after-send-file",arguments,function(){a.setStatus(h.COMPLETE),d.trigger("uploadSuccess",a,b,c)}).fail(function(b){a.getStatus()===h.PROGRESS&&a.setStatus(h.ERROR,b),d.trigger("uploadError",a,b)}).always(function(){d.trigger("uploadComplete",a)})}})}),b("widgets/validator",["base","uploader","file","widgets/widget"],function(a,b,c){var d,e=a.$,f={};return d={addValidator:function(a,b){f[a]=b},removeValidator:function(a){delete f[a]}},b.register({init:function(){var a=this;e.each(f,function(){this.call(a.owner)})}}),d.addValidator("fileNumLimit",function(){var a=this,b=a.options,c=0,d=b.fileNumLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){return c>=d&&e&&(e=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",d,a),setTimeout(function(){e=!0},1)),c>=d?!1:!0}),a.on("fileQueued",function(){c++}),a.on("fileDequeued",function(){c--}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSizeLimit",function(){var a=this,b=a.options,c=0,d=b.fileSizeLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){var b=c+a.size>d;return b&&e&&(e=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",d,a),setTimeout(function(){e=!0},1)),b?!1:!0}),a.on("fileQueued",function(a){c+=a.size}),a.on("fileDequeued",function(a){c-=a.size}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSingleSizeLimit",function(){var a=this,b=a.options,d=b.fileSingleSizeLimit;d&&a.on("beforeFileQueued",function(a){return a.size>d?(a.setStatus(c.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",a),!1):void 0})}),d.addValidator("duplicate",function(){function a(a){for(var b,c=0,d=0,e=a.length;e>d;d++)b=a.charCodeAt(d),c=b+(c<<6)+(c<<16)-c;return c}var b=this,c=b.options,d={};c.duplicate||(b.on("beforeFileQueued",function(b){var c=b.__hash||(b.__hash=a(b.name+b.size+b.lastModifiedDate));return d[c]?(this.trigger("error","F_DUPLICATE",b),!1):void 0}),b.on("fileQueued",function(a){var b=a.__hash;b&&(d[b]=!0)}),b.on("fileDequeued",function(a){var b=a.__hash;b&&delete d[b]}))}),d}),b("runtime/compbase",[],function(){function a(a,b){this.owner=a,this.options=a.options,this.getRuntime=function(){return b},this.getRuid=function(){return b.uid},this.trigger=function(){return a.trigger.apply(a,arguments)}}return a}),b("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(b,c,d){function e(){var a={},d=this,e=this.destory;c.apply(d,arguments),d.type=f,d.exec=function(c,e){var f,h=this,i=h.uid,j=b.slice(arguments,2);return g[c]&&(f=a[i]=a[i]||new g[c](h,d),f[e])?f[e].apply(f,j):void 0},d.destory=function(){return e&&e.apply(this,arguments)}}var f="html5",g={};return b.inherits(c,{constructor:e,init:function(){var a=this;setTimeout(function(){a.trigger("ready")},1)}}),e.register=function(a,c){var e=g[a]=b.inherits(d,c);return e},a.Blob&&a.FileReader&&a.DataView&&c.addRuntime(f,e),e}),b("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(a,b){return a.register("Blob",{slice:function(a,c){var d=this.owner.source,e=d.slice||d.webkitSlice||d.mozSlice;return d=e.call(d,a,c),new b(this.getRuid(),d)}})}),b("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],function(a,b,c){var d=a.$,e="webuploader-dnd-";return b.register("DragAndDrop",{init:function(){var b=this.elem=this.options.container;this.dragEnterHandler=a.bindFn(this._dragEnterHandler,this),this.dragOverHandler=a.bindFn(this._dragOverHandler,this),this.dragLeaveHandler=a.bindFn(this._dragLeaveHandler,this),this.dropHandler=a.bindFn(this._dropHandler,this),this.dndOver=!1,b.on("dragenter",this.dragEnterHandler),b.on("dragover",this.dragOverHandler),b.on("dragleave",this.dragLeaveHandler),b.on("drop",this.dropHandler),this.options.disableGlobalDnd&&(d(document).on("dragover",this.dragOverHandler),d(document).on("drop",this.dropHandler)) +/* WebUploader 0.1.2 */!function(a,b){var c,d={},e=function(a,b){var c,d,e;if("string"==typeof a)return h(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));return b.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){var f,g={exports:b};"function"==typeof b&&(c.length||(c=[e,g.exports,g]),f=b.apply(null,c),void 0!==f&&(g.exports=f)),d[a]=g.exports},h=function(b){var c=d[b]||a[b];if(!c)throw new Error("`"+b+"` is undefined");return c},i=function(a){var b,c,e,f,g,h;h=function(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)};for(b in d)if(c=a,d.hasOwnProperty(b)){for(e=b.split("/"),g=h(e.pop());f=h(e.shift());)c[f]=c[f]||{},c=c[f];c[g]=d[b]}},j=b(a,f,e);i(j),"object"==typeof module&&"object"==typeof module.exports?module.exports=j:"function"==typeof define&&define.amd?define([],j):(c=a.WebUploader,a.WebUploader=j,a.WebUploader.noConflict=function(){a.WebUploader=c})}(this,function(a,b,c){return b("dollar-third",[],function(){return a.jQuery||a.Zepto}),b("dollar",["dollar-third"],function(a){return a}),b("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(a){return a&&"function"==typeof a.then}}}),b("promise",["promise-third"],function(a){return a}),b("base",["dollar","promise"],function(b,c){function d(a){return function(){return h.apply(a,arguments)}}function e(a,b){return function(){return a.apply(b,arguments)}}function f(a){var b;return Object.create?Object.create(a):(b=function(){},b.prototype=a,new b)}var g=function(){},h=Function.call;return{version:"0.1.2",$:b,Deferred:c.Deferred,isPromise:c.isPromise,when:c.when,browser:function(a){var b={},c=a.match(/WebKit\/([\d.]+)/),d=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),e=a.match(/MSIE\s([\d\.]+)/)||a.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=a.match(/Firefox\/([\d.]+)/),g=a.match(/Safari\/([\d.]+)/),h=a.match(/OPR\/([\d.]+)/);return c&&(b.webkit=parseFloat(c[1])),d&&(b.chrome=parseFloat(d[1])),e&&(b.ie=parseFloat(e[1])),f&&(b.firefox=parseFloat(f[1])),g&&(b.safari=parseFloat(g[1])),h&&(b.opera=parseFloat(h[1])),b}(navigator.userAgent),os:function(a){var b={},c=a.match(/(?:Android);?[\s\/]+([\d.]+)?/),d=a.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return c&&(b.android=parseFloat(c[1])),d&&(b.ios=parseFloat(d[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(a,c,d){var e;return"function"==typeof c?(e=c,c=null):e=c&&c.hasOwnProperty("constructor")?c.constructor:function(){return a.apply(this,arguments)},b.extend(!0,e,a,d||{}),e.__super__=a.prototype,e.prototype=f(a.prototype),c&&b.extend(!0,e.prototype,c),e},noop:g,bindFn:e,log:function(){return a.console?e(console.log,console):g}(),nextTick:function(){return function(a){setTimeout(a,1)}}(),slice:d([].slice),guid:function(){var a=0;return function(b){for(var c=(+new Date).toString(32),d=0;5>d;d++)c+=Math.floor(65535*Math.random()).toString(32);return(b||"wu_")+c+(a++).toString(32)}}(),formatSize:function(a,b,c){var d;for(c=c||["B","K","M","G","TB"];(d=c.shift())&&a>1024;)a/=1024;return("B"===d?a:a.toFixed(b||2))+d}}}),b("mediator",["base"],function(a){function b(a,b,c,d){return f.grep(a,function(a){return!(!a||b&&a.e!==b||c&&a.cb!==c&&a.cb._cb!==c||d&&a.ctx!==d)})}function c(a,b,c){f.each((a||"").split(h),function(a,d){c(d,b)})}function d(a,b){for(var c,d=!1,e=-1,f=a.length;++e1?void(d.isPlainObject(b)&&d.isPlainObject(c[a])?d.extend(c[a],b):c[a]=b):a?c[a]:c},getStats:function(){var a=this.request("get-stats");return{successNum:a.numOfSuccess,cancelNum:a.numOfCancel,invalidNum:a.numOfInvalid,uploadFailNum:a.numOfUploadFailed,queueNum:a.numOfQueue}},trigger:function(a){var c=[].slice.call(arguments,1),e=this.options,f="on"+a.substring(0,1).toUpperCase()+a.substring(1);return b.trigger.apply(this,arguments)===!1||d.isFunction(e[f])&&e[f].apply(this,c)===!1||d.isFunction(this[f])&&this[f].apply(this,c)===!1||b.trigger.apply(b,[this,a].concat(c))===!1?!1:!0},request:a.noop}),a.create=c.create=function(a){return new c(a)},a.Uploader=c,c}),b("runtime/runtime",["base","mediator"],function(a,b){function c(b){this.options=d.extend({container:document.body},b),this.uid=a.guid("rt_")}var d=a.$,e={},f=function(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null};return d.extend(c.prototype,{getContainer:function(){var a,b,c=this.options;return this._container?this._container:(a=d(c.container||document.body),b=d(document.createElement("div")),b.attr("id","rt_"+this.uid),b.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),a.append(b),a.addClass("webuploader-container"),this._container=b,b)},init:a.noop,exec:a.noop,destroy:function(){this._container&&this._container.parentNode.removeChild(this.__container),this.off()}}),c.orders="html5,flash",c.addRuntime=function(a,b){e[a]=b},c.hasRuntime=function(a){return!!(a?e[a]:f(e))},c.create=function(a,b){var g,h;if(b=b||c.orders,d.each(b.split(/\s*,\s*/g),function(){return e[this]?(g=this,!1):void 0}),g=g||f(e),!g)throw new Error("Runtime Error");return h=new e[g](a)},b.installTo(c.prototype),c}),b("runtime/client",["base","mediator","runtime/runtime"],function(a,b,c){function d(b,d){var f,g=a.Deferred();this.uid=a.guid("client_"),this.runtimeReady=function(a){return g.done(a)},this.connectRuntime=function(b,h){if(f)throw new Error("already connected!");return g.done(h),"string"==typeof b&&e.get(b)&&(f=e.get(b)),f=f||e.get(null,d),f?(a.$.extend(f.options,b),f.__promise.then(g.resolve),f.__client++):(f=c.create(b,b.runtimeOrder),f.__promise=g.promise(),f.once("ready",g.resolve),f.init(),e.add(f),f.__client=1),d&&(f.__standalone=d),f},this.getRuntime=function(){return f},this.disconnectRuntime=function(){f&&(f.__client--,f.__client<=0&&(e.remove(f),delete f.__promise,f.destroy()),f=null)},this.exec=function(){if(f){var c=a.slice(arguments);return b&&c.unshift(b),f.exec.apply(this,c)}},this.getRuid=function(){return f&&f.uid},this.destroy=function(a){return function(){a&&a.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}var e;return e=function(){var a={};return{add:function(b){a[b.uid]=b},get:function(b,c){var d;if(b)return a[b];for(d in a)if(!c||!a[d].__standalone)return a[d];return null},remove:function(b){delete a[b.uid]}}}(),b.installTo(d.prototype),d}),b("lib/dnd",["base","mediator","runtime/client"],function(a,b,c){function d(a){a=this.options=e.extend({},d.options,a),a.container=e(a.container),a.container.length&&c.call(this,"DragAndDrop")}var e=a.$;return d.options={accept:null,disableGlobalDnd:!1},a.inherits(c,{constructor:d,init:function(){var a=this;a.connectRuntime(a.options,function(){a.exec("init"),a.trigger("ready")})},destroy:function(){this.disconnectRuntime()}}),b.installTo(d.prototype),d}),b("widgets/widget",["base","uploader"],function(a,b){function c(a){if(!a)return!1;var b=a.length,c=e.type(a);return 1===a.nodeType&&b?!0:"array"===c||"function"!==c&&"string"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){this.owner=a,this.options=a.options}var e=a.$,f=b.prototype._init,g={},h=[];return e.extend(d.prototype,{init:a.noop,invoke:function(a,b){var c=this.responseMap;return c&&a in c&&c[a]in this&&e.isFunction(this[c[a]])?this[c[a]].apply(this,b):g},request:function(){return this.owner.request.apply(this.owner,arguments)}}),e.extend(b.prototype,{_init:function(){var a=this,b=a._widgets=[];return e.each(h,function(c,d){b.push(new d(a))}),f.apply(a,arguments)},request:function(b,d,e){var f,h,i,j,k=0,l=this._widgets,m=l.length,n=[],o=[];for(d=c(d)?d:[d];m>k;k++)f=l[k],h=f.invoke(b,d),h!==g&&(a.isPromise(h)?o.push(h):n.push(h));return e||o.length?(i=a.when.apply(a,o),j=i.pipe?"pipe":"then",i[j](function(){var b=a.Deferred(),c=arguments;return setTimeout(function(){b.resolve.apply(b,c)},1),b.promise()})[j](e||a.noop)):n[0]}}),b.register=d.register=function(b,c){var f,g={init:"init"};return 1===arguments.length?(c=b,c.responseMap=g):c.responseMap=e.extend(g,b),f=a.inherits(d,c),h.push(f),f},d}),b("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],function(a,b,c){var d=a.$;return b.options.dnd="",b.register({init:function(b){if(b.dnd&&"html5"===this.request("predict-runtime-type")){var e,f=this,g=a.Deferred(),h=d.extend({},{disableGlobalDnd:b.disableGlobalDnd,container:b.dnd,accept:b.accept});return e=new c(h),e.once("ready",g.resolve),e.on("drop",function(a){f.request("add-file",[a])}),e.on("accept",function(a){return f.owner.trigger("dndAccept",a)}),e.init(),g.promise()}}})}),b("lib/filepaste",["base","mediator","runtime/client"],function(a,b,c){function d(a){a=this.options=e.extend({},a),a.container=e(a.container||document.body),c.call(this,"FilePaste")}var e=a.$;return a.inherits(c,{constructor:d,init:function(){var a=this;a.connectRuntime(a.options,function(){a.exec("init"),a.trigger("ready")})},destroy:function(){this.exec("destroy"),this.disconnectRuntime(),this.off()}}),b.installTo(d.prototype),d}),b("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],function(a,b,c){var d=a.$;return b.register({init:function(b){if(b.paste&&"html5"===this.request("predict-runtime-type")){var e,f=this,g=a.Deferred(),h=d.extend({},{container:b.paste,accept:b.accept});return e=new c(h),e.once("ready",g.resolve),e.on("paste",function(a){f.owner.request("add-file",[a])}),e.init(),g.promise()}}})}),b("lib/blob",["base","runtime/client"],function(a,b){function c(a,c){var d=this;d.source=c,d.ruid=a,b.call(d,"Blob"),this.uid=c.uid||this.uid,this.type=c.type||"",this.size=c.size||0,a&&d.connectRuntime(a)}return a.inherits(b,{constructor:c,slice:function(a,b){return this.exec("slice",a,b)},getSource:function(){return this.source}}),c}),b("lib/file",["base","lib/blob"],function(a,b){function c(a,c){var f;b.apply(this,arguments),this.name=c.name||"untitled"+d++,f=e.exec(c.name)?RegExp.$1.toLowerCase():"",!f&&this.type&&(f=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(this.type)?RegExp.$1.toLowerCase():"",this.name+="."+f),!this.type&&~"jpg,jpeg,png,gif,bmp".indexOf(f)&&(this.type="image/"+("jpg"===f?"jpeg":f)),this.ext=f,this.lastModifiedDate=c.lastModifiedDate||(new Date).toLocaleString()}var d=1,e=/\.([^.]+)$/;return a.inherits(b,c)}),b("lib/filepicker",["base","runtime/client","lib/file"],function(b,c,d){function e(a){if(a=this.options=f.extend({},e.options,a),a.container=f(a.id),!a.container.length)throw new Error("按钮指定错误");a.innerHTML=a.innerHTML||a.label||a.container.html()||"",a.button=f(a.button||document.createElement("div")),a.button.html(a.innerHTML),a.container.html(a.button),c.call(this,"FilePicker",!0)}var f=b.$;return e.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file"},b.inherits(c,{constructor:e,init:function(){var b=this,c=b.options,e=c.button;e.addClass("webuploader-pick"),b.on("all",function(a){var g;switch(a){case"mouseenter":e.addClass("webuploader-pick-hover");break;case"mouseleave":e.removeClass("webuploader-pick-hover");break;case"change":g=b.exec("getFiles"),b.trigger("select",f.map(g,function(a){return a=new d(b.getRuid(),a),a._refer=c.container,a}),c.container)}}),b.connectRuntime(c,function(){b.refresh(),b.exec("init",c),b.trigger("ready")}),f(a).on("resize",function(){b.refresh()})},refresh:function(){var a=this.getRuntime().getContainer(),b=this.options.button,c=b.outerWidth?b.outerWidth():b.width(),d=b.outerHeight?b.outerHeight():b.height(),e=b.offset();c&&d&&a.css({bottom:"auto",right:"auto",width:c+"px",height:d+"px"}).offset(e)},enable:function(){var a=this.options.button;a.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var a=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),a.addClass("webuploader-pick-disable")},destroy:function(){this.runtime&&(this.exec("destroy"),this.disconnectRuntime())}}),e}),b("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(a,b,c){var d=a.$;return d.extend(b.options,{pick:null,accept:null}),b.register({"add-btn":"addButton",refresh:"refresh",disable:"disable",enable:"enable"},{init:function(a){return this.pickers=[],a.pick&&this.addButton(a.pick)},refresh:function(){d.each(this.pickers,function(){this.refresh()})},addButton:function(b){var e,f,g,h=this,i=h.options,j=i.accept;if(b)return g=a.Deferred(),d.isPlainObject(b)||(b={id:b}),e=d.extend({},b,{accept:d.isPlainObject(j)?[j]:j,swf:i.swf,runtimeOrder:i.runtimeOrder}),f=new c(e),f.once("ready",g.resolve),f.on("select",function(a){h.owner.request("add-file",[a])}),f.init(),this.pickers.push(f),g.promise()},disable:function(){d.each(this.pickers,function(){this.disable()})},enable:function(){d.each(this.pickers,function(){this.enable()})}})}),b("lib/image",["base","runtime/client","lib/blob"],function(a,b,c){function d(a){this.options=e.extend({},d.options,a),b.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}var e=a.$;return d.options={quality:90,crop:!1,preserveHeaders:!0,allowMagnify:!0},a.inherits(b,{constructor:d,info:function(a){return a?(this._info=a,this):this._info},meta:function(a){return a?(this._meta=a,this):this._meta},loadFromBlob:function(a){var b=this,c=a.getRuid();this.connectRuntime(c,function(){b.exec("init",b.options),b.exec("loadFromBlob",a)})},resize:function(){var b=a.slice(arguments);return this.exec.apply(this,["resize"].concat(b))},getAsDataUrl:function(a){return this.exec("getAsDataUrl",a)},getAsBlob:function(a){var b=this.exec("getAsBlob",a);return new c(this.getRuid(),b)}}),d}),b("widgets/image",["base","uploader","lib/image","widgets/widget"],function(a,b,c){var d,e=a.$;return d=function(a){var b=0,c=[],d=function(){for(var d;c.length&&a>b;)d=c.shift(),b+=d[0],d[1]()};return function(a,e,f){c.push([e,f]),a.once("destroy",function(){b-=e,setTimeout(d,1)}),setTimeout(d,1)}}(5242880),e.extend(b.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),b.register({"make-thumb":"makeThumb","before-send-file":"compressImage"},{makeThumb:function(a,b,f,g){var h,i;return a=this.request("get-file",a),a.type.match(/^image/)?(h=e.extend({},this.options.thumb),e.isPlainObject(f)&&(h=e.extend(h,f),f=null),f=f||h.width,g=g||h.height,i=new c(h),i.once("load",function(){a._info=a._info||i.info(),a._meta=a._meta||i.meta(),i.resize(f,g)}),i.once("complete",function(){b(!1,i.getAsDataUrl(h.type)),i.destroy()}),i.once("error",function(){b(!0),i.destroy()}),void d(i,a.source.size,function(){a._info&&i.info(a._info),a._meta&&i.meta(a._meta),i.loadFromBlob(a.source)})):void b(!0)},compressImage:function(b){var d,f,g=this.options.compress||this.options.resize,h=g&&g.compressSize||307200;return b=this.request("get-file",b),!g||!~"images/jpeg,images/jpg".indexOf(b.type)||b.sizeb;b++)if(c=this._queue[b],a===c.getStatus())return c;return null},sort:function(a){"function"==typeof a&&this._queue.sort(a)},getFiles:function(){for(var a,b=[].slice.call(arguments,0),c=[],d=0,f=this._queue.length;f>d;d++)a=this._queue[d],(!b.length||~e.inArray(a.getStatus(),b))&&c.push(a);return c},_fileAdded:function(a){var b=this,c=this._map[a.id];c||(this._map[a.id]=a,a.on("statuschange",function(a,c){b._onFileStatusChange(a,c)})),a.setStatus(f.QUEUED)},_onFileStatusChange:function(a,b){var c=this.stats;switch(b){case f.PROGRESS:c.numOfProgress--;break;case f.QUEUED:c.numOfQueue--;break;case f.ERROR:c.numOfUploadFailed--;break;case f.INVALID:c.numOfInvalid--}switch(a){case f.QUEUED:c.numOfQueue++;break;case f.PROGRESS:c.numOfProgress++;break;case f.ERROR:c.numOfUploadFailed++;break;case f.COMPLETE:c.numOfSuccess++;break;case f.CANCELLED:c.numOfCancel++;break;case f.INVALID:c.numOfInvalid++}}}),b.installTo(d.prototype),d}),b("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(a,b,c,d,e,f){var g=a.$,h=/\.\w+$/,i=d.Status;return b.register({"sort-files":"sortFiles","add-file":"addFiles","get-file":"getFile","fetch-file":"fetchFile","get-stats":"getStats","get-files":"getFiles","remove-file":"removeFile",retry:"retry",reset:"reset","accept-file":"acceptFile"},{init:function(b){var d,e,h,i,j,k,l,m=this;if(g.isPlainObject(b.accept)&&(b.accept=[b.accept]),b.accept){for(j=[],h=0,e=b.accept.length;e>h;h++)i=b.accept[h].extensions,i&&j.push(i);j.length&&(k="\\."+j.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),m.accept=new RegExp(k,"i")}return m.queue=new c,m.stats=m.queue.stats,"html5"===this.request("predict-runtime-type")?(d=a.Deferred(),l=new f("Placeholder"),l.connectRuntime({runtimeOrder:"html5"},function(){m._ruid=l.getRuid(),d.resolve()}),d.promise()):void 0},_wrapFile:function(a){if(!(a instanceof d)){if(!(a instanceof e)){if(!this._ruid)throw new Error("Can't add external files.");a=new e(this._ruid,a)}a=new d(a)}return a},acceptFile:function(a){var b=!a||a.size<6||this.accept&&h.exec(a.name)&&!this.accept.test(a.name);return!b},_addFile:function(a){var b=this;return a=b._wrapFile(a),b.owner.trigger("beforeFileQueued",a)?b.acceptFile(a)?(b.queue.append(a),b.owner.trigger("fileQueued",a),a):void b.owner.trigger("error","Q_TYPE_DENIED",a):void 0},getFile:function(a){return this.queue.getFile(a)},addFiles:function(a){var b=this;a.length||(a=[a]),a=g.map(a,function(a){return b._addFile(a)}),b.owner.trigger("filesQueued",a),b.options.auto&&b.request("start-upload")},getStats:function(){return this.stats},removeFile:function(a){var b=this;a=a.id?a:b.queue.getFile(a),a.setStatus(i.CANCELLED),b.owner.trigger("fileDequeued",a)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(a,b){var c,d,e,f=this;if(a)return a=a.id?a:f.queue.getFile(a),a.setStatus(i.QUEUED),void(b||f.request("start-upload"));for(c=f.queue.getFiles(i.ERROR),d=0,e=c.length;e>d;d++)a=c[d],a.setStatus(i.QUEUED);f.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.queue=new c,this.stats=this.queue.stats}})}),b("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(a,b){return a.support=function(){return b.hasRuntime.apply(b,arguments)},a.register({"predict-runtime-type":"predictRuntmeType"},{init:function(){if(!this.predictRuntmeType())throw Error("Runtime Error")},predictRuntmeType:function(){var a,c,d=this.options.runtimeOrder||b.orders,e=this.type;if(!e)for(d=d.split(/\s*,\s*/g),a=0,c=d.length;c>a;a++)if(b.hasRuntime(d[a])){this.type=e=d[a];break}return e}})}),b("lib/transport",["base","runtime/client","mediator"],function(a,b,c){function d(a){var c=this;a=c.options=e.extend(!0,{},d.options,a||{}),b.call(this,"Transport"),this._blob=null,this._formData=a.formData||{},this._headers=a.headers||{},this.on("progress",this._timeout),this.on("load error",function(){c.trigger("progress",1),clearTimeout(c._timer)})}var e=a.$;return d.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:12e4,formData:{},headers:{},sendAsBinary:!1},e.extend(d.prototype,{appendBlob:function(a,b,c){var d=this,e=d.options;d.getRuid()&&d.disconnectRuntime(),d.connectRuntime(b.ruid,function(){d.exec("init")}),d._blob=b,e.fileVal=a||e.fileVal,e.filename=c||e.filename},append:function(a,b){"object"==typeof a?e.extend(this._formData,a):this._formData[a]=b},setRequestHeader:function(a,b){"object"==typeof a?e.extend(this._headers,a):this._headers[a]=b},send:function(a){this.exec("send",a),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var a=this,b=a.options.timeout;b&&(clearTimeout(a._timer),a._timer=setTimeout(function(){a.abort(),a.trigger("error","timeout")},b))}}),c.installTo(d.prototype),d}),b("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(a,b,c,d){function e(a,b){for(var c,d=[],e=a.source,f=e.size,g=b?Math.ceil(f/b):1,h=0,i=0;g>i;)c=Math.min(b,f-h),d.push({file:a,start:h,end:b?h+c:f,total:f,chunks:g,chunk:i++}),h+=c;return a.blocks=d.concat(),a.remaning=d.length,{file:a,has:function(){return!!d.length},fetch:function(){return d.shift()}}}var f=a.$,g=a.isPromise,h=c.Status;f.extend(b.options,{prepareNextFile:!1,chunked:!1,chunkSize:5242880,chunkRetry:2,threads:3,formData:null}),b.register({"start-upload":"start","stop-upload":"stop","skip-file":"skipFile","is-in-progress":"isInProgress"},{init:function(){var b=this.owner;this.runing=!1,this.pool=[],this.pending=[],this.remaning=0,this.__tick=a.bindFn(this._tick,this),b.on("uploadComplete",function(a){a.blocks&&f.each(a.blocks,function(a,b){b.transport&&(b.transport.abort(),b.transport.destroy()),delete b.transport}),delete a.blocks,delete a.remaning})},start:function(){var b=this;f.each(b.request("get-files",h.INVALID),function(){b.request("remove-file",this)}),b.runing||(b.runing=!0,f.each(b.pool,function(a,c){var d=c.file;d.getStatus()===h.INTERRUPT&&(d.setStatus(h.PROGRESS),b._trigged=!1,c.transport&&c.transport.send())}),b._trigged=!1,b.owner.trigger("startUpload"),a.nextTick(b.__tick))},stop:function(a){var b=this;b.runing!==!1&&(b.runing=!1,a&&f.each(b.pool,function(a,b){b.transport&&b.transport.abort(),b.file.setStatus(h.INTERRUPT)}),b.owner.trigger("stopUpload"))},isInProgress:function(){return!!this.runing},getStats:function(){return this.request("get-stats")},skipFile:function(a,b){a=this.request("get-file",a),a.setStatus(b||h.COMPLETE),a.skipped=!0,a.blocks&&f.each(a.blocks,function(a,b){var c=b.transport;c&&(c.abort(),c.destroy(),delete b.transport)}),this.owner.trigger("uploadSkip",a)},_tick:function(){var b,c,d=this,e=d.options;return d._promise?d._promise.always(d.__tick):void(d.pool.length1&&(f.each(k.blocks,function(a,b){d+=(b.percentage||0)*(b.end-b.start)}),c=d/k.size),i.trigger("uploadProgress",k,c||0)}),c=function(a){var c;return e=l.getResponseAsJson()||{},e._raw=l.getResponse(),c=function(b){a=b},i.trigger("uploadAccept",b,e,c)||(a=a||"server"),a},l.on("error",function(a,d){b.retried=b.retried||0,b.chunks>1&&~"http,abort".indexOf(a)&&b.retried1&&f.extend(m,{chunks:b.chunks,chunk:b.chunk}),i.trigger("uploadBeforeSend",b,m,n),l.appendBlob(j.fileVal,b.blob,k.name),l.append(m),l.setRequestHeader(n),l.send()},_finishFile:function(a,b,c){var d=this.owner;return d.request("after-send-file",arguments,function(){a.setStatus(h.COMPLETE),d.trigger("uploadSuccess",a,b,c)}).fail(function(b){a.getStatus()===h.PROGRESS&&a.setStatus(h.ERROR,b),d.trigger("uploadError",a,b)}).always(function(){d.trigger("uploadComplete",a)})}})}),b("widgets/validator",["base","uploader","file","widgets/widget"],function(a,b,c){var d,e=a.$,f={};return d={addValidator:function(a,b){f[a]=b},removeValidator:function(a){delete f[a]}},b.register({init:function(){var a=this;e.each(f,function(){this.call(a.owner)})}}),d.addValidator("fileNumLimit",function(){var a=this,b=a.options,c=0,d=b.fileNumLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){return c>=d&&e&&(e=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",d,a),setTimeout(function(){e=!0},1)),c>=d?!1:!0}),a.on("fileQueued",function(){c++}),a.on("fileDequeued",function(){c--}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSizeLimit",function(){var a=this,b=a.options,c=0,d=b.fileSizeLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){var b=c+a.size>d;return b&&e&&(e=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",d,a),setTimeout(function(){e=!0},1)),b?!1:!0}),a.on("fileQueued",function(a){c+=a.size}),a.on("fileDequeued",function(a){c-=a.size}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSingleSizeLimit",function(){var a=this,b=a.options,d=b.fileSingleSizeLimit;d&&a.on("beforeFileQueued",function(a){return a.size>d?(a.setStatus(c.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",a),!1):void 0})}),d.addValidator("duplicate",function(){function a(a){for(var b,c=0,d=0,e=a.length;e>d;d++)b=a.charCodeAt(d),c=b+(c<<6)+(c<<16)-c;return c}var b=this,c=b.options,d={};c.duplicate||(b.on("beforeFileQueued",function(b){var c=b.__hash||(b.__hash=a(b.name+b.size+b.lastModifiedDate));return d[c]?(this.trigger("error","F_DUPLICATE",b),!1):void 0}),b.on("fileQueued",function(a){var b=a.__hash;b&&(d[b]=!0)}),b.on("fileDequeued",function(a){var b=a.__hash;b&&delete d[b]}))}),d}),b("runtime/compbase",[],function(){function a(a,b){this.owner=a,this.options=a.options,this.getRuntime=function(){return b},this.getRuid=function(){return b.uid},this.trigger=function(){return a.trigger.apply(a,arguments)}}return a}),b("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(b,c,d){function e(){var a={},d=this,e=this.destory;c.apply(d,arguments),d.type=f,d.exec=function(c,e){var f,h=this,i=h.uid,j=b.slice(arguments,2);return g[c]&&(f=a[i]=a[i]||new g[c](h,d),f[e])?f[e].apply(f,j):void 0},d.destory=function(){return e&&e.apply(this,arguments)}}var f="html5",g={};return b.inherits(c,{constructor:e,init:function(){var a=this;setTimeout(function(){a.trigger("ready")},1)}}),e.register=function(a,c){var e=g[a]=b.inherits(d,c);return e},a.Blob&&a.FileReader&&a.DataView&&c.addRuntime(f,e),e}),b("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(a,b){return a.register("Blob",{slice:function(a,c){var d=this.owner.source,e=d.slice||d.webkitSlice||d.mozSlice;return d=e.call(d,a,c),new b(this.getRuid(),d)}})}),b("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],function(a,b,c){var d=a.$,e="webuploader-dnd-";return b.register("DragAndDrop",{init:function(){var b=this.elem=this.options.container;this.dragEnterHandler=a.bindFn(this._dragEnterHandler,this),this.dragOverHandler=a.bindFn(this._dragOverHandler,this),this.dragLeaveHandler=a.bindFn(this._dragLeaveHandler,this),this.dropHandler=a.bindFn(this._dropHandler,this),this.dndOver=!1,b.on("dragenter",this.dragEnterHandler),b.on("dragover",this.dragOverHandler),b.on("dragleave",this.dragLeaveHandler),b.on("drop",this.dropHandler),this.options.disableGlobalDnd&&(d(document).on("dragover",this.dragOverHandler),d(document).on("drop",this.dropHandler)) },_dragEnterHandler:function(a){var b,c=this,d=c._denied||!1;return a=a.originalEvent||a,c.dndOver||(c.dndOver=!0,b=a.dataTransfer.items,b&&b.length&&(c._denied=d=!c.trigger("accept",b)),c.elem.addClass(e+"over"),c.elem[d?"addClass":"removeClass"](e+"denied")),a.dataTransfer.dropEffect=d?"none":"copy",!1},_dragOverHandler:function(a){var b=this.elem.parent().get(0);return b&&!d.contains(b,a.currentTarget)?!1:(clearTimeout(this._leaveTimer),this._dragEnterHandler.call(this,a),!1)},_dragLeaveHandler:function(){var a,b=this;return a=function(){b.dndOver=!1,b.elem.removeClass(e+"over "+e+"denied")},clearTimeout(b._leaveTimer),b._leaveTimer=setTimeout(a,100),!1},_dropHandler:function(a){var b=this,f=b.getRuid(),g=b.elem.parent().get(0);return g&&!d.contains(g,a.currentTarget)?!1:(b._getTansferFiles(a,function(a){b.trigger("drop",d.map(a,function(a){return new c(f,a)}))}),b.dndOver=!1,b.elem.removeClass(e+"over"),!1)},_getTansferFiles:function(b,c){var d,e,f,g,h,i,j,k,l=[],m=[];for(b=b.originalEvent||b,f=b.dataTransfer,d=f.items,e=f.files,k=!(!d||!d[0].webkitGetAsEntry),i=0,j=e.length;j>i;i++)g=e[i],h=d&&d[i],k&&h.webkitGetAsEntry().isDirectory?m.push(this._traverseDirectoryTree(h.webkitGetAsEntry(),l)):l.push(g);a.when.apply(a,m).done(function(){l.length&&c(l)})},_traverseDirectoryTree:function(b,c){var d=a.Deferred(),e=this;return b.isFile?b.file(function(a){c.push(a),d.resolve()}):b.isDirectory&&b.createReader().readEntries(function(b){var f,g=b.length,h=[],i=[];for(f=0;g>f;f++)h.push(e._traverseDirectoryTree(b[f],i));a.when.apply(a,h).then(function(){c.push.apply(c,i),d.resolve()},d.reject)}),d.promise()},destroy:function(){var a=this.elem;a.off("dragenter",this.dragEnterHandler),a.off("dragover",this.dragEnterHandler),a.off("dragleave",this.dragLeaveHandler),a.off("drop",this.dropHandler),this.options.disableGlobalDnd&&(d(document).off("dragover",this.dragOverHandler),d(document).off("drop",this.dropHandler))}})}),b("runtime/html5/filepaste",["base","runtime/html5/runtime","lib/file"],function(a,b,c){return b.register("FilePaste",{init:function(){var b,c,d,e,f=this.options,g=this.elem=f.container,h=".*";if(f.accept){for(b=[],c=0,d=f.accept.length;d>c;c++)e=f.accept[c].mimeTypes,e&&b.push(e);b.length&&(h=b.join(","),h=h.replace(/,/g,"|").replace(/\*/g,".*"))}this.accept=h=new RegExp(h,"i"),this.hander=a.bindFn(this._pasteHander,this),g.on("paste",this.hander)},_pasteHander:function(a){var b,d,e,f,g,h=[],i=this.getRuid();for(a=a.originalEvent||a,b=a.clipboardData.items,f=0,g=b.length;g>f;f++)d=b[f],"file"===d.kind&&(e=d.getAsFile())&&h.push(new c(i,e));h.length&&(a.preventDefault(),a.stopPropagation(),this.trigger("paste",h))},destroy:function(){this.elem.off("paste",this.hander)}})}),b("runtime/html5/filepicker",["base","runtime/html5/runtime"],function(a,b){var c=a.$;return b.register("FilePicker",{init:function(){var a,b,d,e,f=this.getRuntime().getContainer(),g=this,h=g.owner,i=g.options,j=c(document.createElement("label")),k=c(document.createElement("input"));if(k.attr("type","file"),k.attr("name",i.name),k.addClass("webuploader-element-invisible"),j.on("click",function(){k.trigger("click")}),j.css({opacity:0,width:"100%",height:"100%",display:"block",cursor:"pointer",background:"#ffffff"}),i.multiple&&k.attr("multiple","multiple"),i.accept&&i.accept.length>0){for(a=[],b=0,d=i.accept.length;d>b;b++)a.push(i.accept[b].mimeTypes);k.attr("accept",a.join(","))}f.append(k),f.append(j),e=function(a){h.trigger(a.type)},k.on("change",function(a){var b,d=arguments.callee;g.files=a.target.files,b=this.cloneNode(!0),this.parentNode.replaceChild(b,this),k.off(),k=c(b).on("change",d).on("mouseenter mouseleave",e),h.trigger("change")}),j.on("mouseenter mouseleave",e)},getFiles:function(){return this.files},destroy:function(){}})}),b("runtime/html5/util",["base"],function(b){var c=a.createObjectURL&&a||a.URL&&URL.revokeObjectURL&&URL||a.webkitURL,d=b.noop,e=d;return c&&(d=function(){return c.createObjectURL.apply(c,arguments)},e=function(){return c.revokeObjectURL.apply(c,arguments)}),{createObjectURL:d,revokeObjectURL:e,dataURL2Blob:function(a){var b,c,d,e,f,g;for(g=a.split(","),b=~g[0].indexOf("base64")?atob(g[1]):decodeURIComponent(g[1]),d=new ArrayBuffer(b.length),c=new Uint8Array(d),e=0;ei&&(d=h.getUint16(i),d>=65504&&65519>=d||65534===d)&&(e=h.getUint16(i+2)+2,!(i+e>h.byteLength));){if(f=b.parsers[d],!c&&f)for(g=0;g6&&(l.imageHead=a.slice?a.slice(2,k):new Uint8Array(a).subarray(2,k))}return l}},updateImageHead:function(a,b){var c,d,e,f=this._parse(a,!0);return e=2,f.imageHead&&(e=2+f.imageHead.byteLength),d=a.slice?a.slice(e):new Uint8Array(a).subarray(e),c=new Uint8Array(b.byteLength+2+d.byteLength),c[0]=255,c[1]=216,c.set(new Uint8Array(b),2),c.set(new Uint8Array(d),b.byteLength+2),c.buffer}},a.parseMeta=function(){return b.parse.apply(b,arguments)},a.updateImageHead=function(){return b.updateImageHead.apply(b,arguments)},b}),b("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],function(a,b){var c={};return c.ExifMap=function(){return this},c.ExifMap.prototype.map={Orientation:274},c.ExifMap.prototype.get=function(a){return this[a]||this[this.map[a]]},c.exifTagTypes={1:{getValue:function(a,b){return a.getUint8(b)},size:1},2:{getValue:function(a,b){return String.fromCharCode(a.getUint8(b))},size:1,ascii:!0},3:{getValue:function(a,b,c){return a.getUint16(b,c)},size:2},4:{getValue:function(a,b,c){return a.getUint32(b,c)},size:4},5:{getValue:function(a,b,c){return a.getUint32(b,c)/a.getUint32(b+4,c)},size:8},9:{getValue:function(a,b,c){return a.getInt32(b,c)},size:4},10:{getValue:function(a,b,c){return a.getInt32(b,c)/a.getInt32(b+4,c)},size:8}},c.exifTagTypes[7]=c.exifTagTypes[1],c.getExifValue=function(b,d,e,f,g,h){var i,j,k,l,m,n,o=c.exifTagTypes[f];if(!o)return void a.log("Invalid Exif data: Invalid tag type.");if(i=o.size*g,j=i>4?d+b.getUint32(e+8,h):e+8,j+i>b.byteLength)return void a.log("Invalid Exif data: Invalid data offset.");if(1===g)return o.getValue(b,j,h);for(k=[],l=0;g>l;l+=1)k[l]=o.getValue(b,j+l*o.size,h);if(o.ascii){for(m="",l=0;lb.byteLength)return void a.log("Invalid Exif data: Invalid directory offset.");if(g=b.getUint16(d,e),h=d+2+12*g,h+4>b.byteLength)return void a.log("Invalid Exif data: Invalid directory size.");for(i=0;g>i;i+=1)this.parseExifTag(b,c,d+2+12*i,e,f);return b.getUint32(h,e)},c.parseExifData=function(b,d,e,f){var g,h,i=d+10;if(1165519206===b.getUint32(d+4)){if(i+8>b.byteLength)return void a.log("Invalid Exif data: Invalid segment size.");if(0!==b.getUint16(d+8))return void a.log("Invalid Exif data: Missing byte alignment offset.");switch(b.getUint16(i)){case 18761:g=!0;break;case 19789:g=!1;break;default:return void a.log("Invalid Exif data: Invalid byte alignment marker.")}if(42!==b.getUint16(i+2,g))return void a.log("Invalid Exif data: Missing TIFF marker.");h=b.getUint32(i+4,g),f.exif=new c.ExifMap,h=c.parseExifTags(b,i,i+h,g,f)}},b.parsers[65505].push(c.parseExifData),c}),b("runtime/html5/image",["base","runtime/html5/runtime","runtime/html5/util"],function(a,b,c){var d="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D";return b.register("Image",{modified:!1,init:function(){var a=this,b=new Image;b.onload=function(){a._info={type:a.type,width:this.width,height:this.height},a._metas||"image/jpeg"!==a.type?a.owner.trigger("load"):c.parseMeta(a._blob,function(b,c){a._metas=c,a.owner.trigger("load")})},b.onerror=function(){a.owner.trigger("error")},a._img=b},loadFromBlob:function(a){var b=this,d=b._img;b._blob=a,b.type=a.type,d.src=c.createObjectURL(a.getSource()),b.owner.once("load",function(){c.revokeObjectURL(d.src)})},resize:function(a,b){var c=this._canvas||(this._canvas=document.createElement("canvas"));this._resize(this._img,c,a,b),this._blob=null,this.modified=!0,this.owner.trigger("complete")},getAsBlob:function(a){var b,d=this._blob,e=this.options;if(a=a||this.type,this.modified||this.type!==a){if(b=this._canvas,"image/jpeg"===a){if(d=c.canvasToDataUrl(b,"image/jpeg",e.quality),e.preserveHeaders&&this._metas&&this._metas.imageHead)return d=c.dataURL2ArrayBuffer(d),d=c.updateImageHead(d,this._metas.imageHead),d=c.arrayBufferToBlob(d,a)}else d=c.canvasToDataUrl(b,a);d=c.dataURL2Blob(d)}return d},getAsDataUrl:function(a){var b=this.options;return a=a||this.type,"image/jpeg"===a?c.canvasToDataUrl(this._canvas,a,b.quality):this._canvas.toDataURL(a)},getOrientation:function(){return this._metas&&this._metas.exif&&this._metas.exif.get("Orientation")||1},info:function(a){return a?(this._info=a,this):this._info},meta:function(a){return a?(this._meta=a,this):this._meta},destroy:function(){var a=this._canvas;this._img.onload=null,a&&(a.getContext("2d").clearRect(0,0,a.width,a.height),a.width=a.height=0,this._canvas=null),this._img.src=d,this._img=this._blob=null},_resize:function(a,b,c,d){var e,f,g,h,i,j=this.options,k=a.width,l=a.height,m=this.getOrientation();~[5,6,7,8].indexOf(m)&&(c^=d,d^=c,c^=d),e=Math[j.crop?"max":"min"](c/k,d/l),j.allowMagnify||(e=Math.min(1,e)),f=k*e,g=l*e,j.crop?(b.width=c,b.height=d):(b.width=f,b.height=g),h=(b.width-f)/2,i=(b.height-g)/2,j.preserveHeaders||this._rotate2Orientaion(b,m),this._renderImageToCanvas(b,a,h,i,f,g)},_rotate2Orientaion:function(a,b){var c=a.width,d=a.height,e=a.getContext("2d");switch(b){case 5:case 6:case 7:case 8:a.width=d,a.height=c}switch(b){case 2:e.translate(c,0),e.scale(-1,1);break;case 3:e.translate(c,d),e.rotate(Math.PI);break;case 4:e.translate(0,d),e.scale(1,-1);break;case 5:e.rotate(.5*Math.PI),e.scale(1,-1);break;case 6:e.rotate(.5*Math.PI),e.translate(0,-d);break;case 7:e.rotate(.5*Math.PI),e.translate(c,-d),e.scale(-1,1);break;case 8:e.rotate(-.5*Math.PI),e.translate(-c,0)}},_renderImageToCanvas:function(){function b(a,b,c){var d,e,f,g=document.createElement("canvas"),h=g.getContext("2d"),i=0,j=c,k=c;for(g.width=1,g.height=c,h.drawImage(a,0,0),d=h.getImageData(0,0,1,c).data;k>i;)e=d[4*(k-1)+3],0===e?j=k:i=k,k=j+i>>1;return f=k/c,0===f?1:f}function c(a){var b,c,d=a.naturalWidth,e=a.naturalHeight;return d*e>1048576?(b=document.createElement("canvas"),b.width=b.height=1,c=b.getContext("2d"),c.drawImage(a,-d+1,0),0===c.getImageData(0,0,1,1).data[3]):!1}return a.os.ios?a.os.ios>=7?function(a,c,d,e,f,g){var h=c.naturalWidth,i=c.naturalHeight,j=b(c,h,i);return a.getContext("2d").drawImage(c,0,0,h*j,i*j,d,e,f,g)}:function(a,d,e,f,g,h){var i,j,k,l,m,n,o,p=d.naturalWidth,q=d.naturalHeight,r=a.getContext("2d"),s=c(d),t="image/jpeg"===this.type,u=1024,v=0,w=0;for(s&&(p/=2,q/=2),r.save(),i=document.createElement("canvas"),i.width=i.height=u,j=i.getContext("2d"),k=t?b(d,p,q):1,l=Math.ceil(u*g/p),m=Math.ceil(u*h/q/k);q>v;){for(n=0,o=0;p>n;)j.clearRect(0,0,u,u),j.drawImage(d,-n,-v),r.drawImage(i,0,0,u,u,e+o,f+w,l,m),n+=u,o+=l;v+=u,w+=m}r.restore(),i=j=null}:function(a,b,c,d,e,f){a.getContext("2d").drawImage(b,c,d,e,f)}}()})}),b("runtime/html5/transport",["base","runtime/html5/runtime"],function(a,b){var c=a.noop,d=a.$;return b.register("Transport",{init:function(){this._status=0,this._response=null},send:function(){var b,c,e,f=this.owner,g=this.options,h=this._initAjax(),i=f._blob,j=g.server;g.sendAsBinary?(j+=(/\?/.test(j)?"&":"?")+d.param(f._formData),c=i.getSource()):(b=new FormData,d.each(f._formData,function(a,c){b.append(a,c)}),b.append(g.fileVal,i.getSource(),g.filename||f._formData.name||"")),g.withCredentials&&"withCredentials"in h?(h.open(g.method,j,!0),h.withCredentials=!0):h.open(g.method,j),this._setRequestHeader(h,g.headers),c?(h.overrideMimeType("application/octet-stream"),a.os.android?(e=new FileReader,e.onload=function(){h.send(this.result),e=e.onload=null},e.readAsArrayBuffer(c)):h.send(c)):h.send(b)},getResponse:function(){return this._response},getResponseAsJson:function(){return this._parseJson(this._response)},getStatus:function(){return this._status},abort:function(){var a=this._xhr;a&&(a.upload.onprogress=c,a.onreadystatechange=c,a.abort(),this._xhr=a=null)},destroy:function(){this.abort()},_initAjax:function(){var a=this,b=new XMLHttpRequest,d=this.options;return!d.withCredentials||"withCredentials"in b||"undefined"==typeof XDomainRequest||(b=new XDomainRequest),b.upload.onprogress=function(b){var c=0;return b.lengthComputable&&(c=b.loaded/b.total),a.trigger("progress",c)},b.onreadystatechange=function(){return 4===b.readyState?(b.upload.onprogress=c,b.onreadystatechange=c,a._xhr=null,a._status=b.status,b.status>=200&&b.status<300?(a._response=b.responseText,a.trigger("load")):b.status>=500&&b.status<600?(a._response=b.responseText,a.trigger("error","server")):a.trigger("error",a._status?"http":"abort")):void 0},a._xhr=b,b},_setRequestHeader:function(a,b){d.each(b,function(b,c){a.setRequestHeader(b,c)})},_parseJson:function(a){var b;try{b=JSON.parse(a)}catch(c){b={}}return b}})}),b("preset/html5only",["base","widgets/filednd","widgets/filepaste","widgets/filepicker","widgets/image","widgets/queue","widgets/runtime","widgets/upload","widgets/validator","runtime/html5/blob","runtime/html5/dnd","runtime/html5/filepaste","runtime/html5/filepicker","runtime/html5/imagemeta/exif","runtime/html5/image","runtime/html5/transport"],function(a){return a}),b("webuploader",["preset/html5only"],function(a){return a}),c("webuploader")}); \ No newline at end of file diff --git a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.js b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.js index 39d9351..0d9d496 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.js +++ b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.js @@ -1978,7 +1978,7 @@ * width: 110, * height: 110, * - * // 图片质量,只有type为`image/jpeg`的时候才有效。 + * // 图片质量,只有type为`images/jpeg`的时候才有效。 * quality: 70, * * // 是否允许放大,如果想要生成小图的时候不失真,此选项应该设置为false. @@ -1992,7 +1992,7 @@ * * // 为空的话则保留原有图片格式。 * // 否则强制转换成指定的类型。 - * type: 'image/jpeg' + * type: 'images/jpeg' * } * ``` */ @@ -2140,7 +2140,7 @@ file = this.request( 'get-file', file ); // 只预览图片格式。 - if ( !opts || !~'image/jpeg,image/jpg'.indexOf( file.type ) || + if ( !opts || !~'images/jpeg,images/jpg'.indexOf( file.type ) || file.size < compressSize || file._compressed ) { return; @@ -6028,8 +6028,8 @@ } /** - * Detecting vertical squash in loaded image. - * Fixes a bug which squash image vertically while drawing into + * Detecting vertical squash in loaded images. + * Fixes a bug which squash images vertically while drawing into * canvas for some images. */ function detectVerticalSquash( img, iw, ih ) { diff --git a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.min.js b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.min.js index 8807780..9e574f4 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.min.js +++ b/src/main/webapp/static/ueditor1_4_3_3/third-party/webuploader/webuploader.min.js @@ -1,2 +1,2 @@ -/* WebUploader 0.1.2 */!function(a,b){var c,d={},e=function(a,b){var c,d,e;if("string"==typeof a)return h(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));return b.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){var f,g={exports:b};"function"==typeof b&&(c.length||(c=[e,g.exports,g]),f=b.apply(null,c),void 0!==f&&(g.exports=f)),d[a]=g.exports},h=function(b){var c=d[b]||a[b];if(!c)throw new Error("`"+b+"` is undefined");return c},i=function(a){var b,c,e,f,g,h;h=function(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)};for(b in d)if(c=a,d.hasOwnProperty(b)){for(e=b.split("/"),g=h(e.pop());f=h(e.shift());)c[f]=c[f]||{},c=c[f];c[g]=d[b]}},j=b(a,f,e);i(j),"object"==typeof module&&"object"==typeof module.exports?module.exports=j:"function"==typeof define&&define.amd?define([],j):(c=a.WebUploader,a.WebUploader=j,a.WebUploader.noConflict=function(){a.WebUploader=c})}(this,function(a,b,c){return b("dollar-third",[],function(){return a.jQuery||a.Zepto}),b("dollar",["dollar-third"],function(a){return a}),b("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(a){return a&&"function"==typeof a.then}}}),b("promise",["promise-third"],function(a){return a}),b("base",["dollar","promise"],function(b,c){function d(a){return function(){return h.apply(a,arguments)}}function e(a,b){return function(){return a.apply(b,arguments)}}function f(a){var b;return Object.create?Object.create(a):(b=function(){},b.prototype=a,new b)}var g=function(){},h=Function.call;return{version:"0.1.2",$:b,Deferred:c.Deferred,isPromise:c.isPromise,when:c.when,browser:function(a){var b={},c=a.match(/WebKit\/([\d.]+)/),d=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),e=a.match(/MSIE\s([\d\.]+)/)||a.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=a.match(/Firefox\/([\d.]+)/),g=a.match(/Safari\/([\d.]+)/),h=a.match(/OPR\/([\d.]+)/);return c&&(b.webkit=parseFloat(c[1])),d&&(b.chrome=parseFloat(d[1])),e&&(b.ie=parseFloat(e[1])),f&&(b.firefox=parseFloat(f[1])),g&&(b.safari=parseFloat(g[1])),h&&(b.opera=parseFloat(h[1])),b}(navigator.userAgent),os:function(a){var b={},c=a.match(/(?:Android);?[\s\/]+([\d.]+)?/),d=a.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return c&&(b.android=parseFloat(c[1])),d&&(b.ios=parseFloat(d[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(a,c,d){var e;return"function"==typeof c?(e=c,c=null):e=c&&c.hasOwnProperty("constructor")?c.constructor:function(){return a.apply(this,arguments)},b.extend(!0,e,a,d||{}),e.__super__=a.prototype,e.prototype=f(a.prototype),c&&b.extend(!0,e.prototype,c),e},noop:g,bindFn:e,log:function(){return a.console?e(console.log,console):g}(),nextTick:function(){return function(a){setTimeout(a,1)}}(),slice:d([].slice),guid:function(){var a=0;return function(b){for(var c=(+new Date).toString(32),d=0;5>d;d++)c+=Math.floor(65535*Math.random()).toString(32);return(b||"wu_")+c+(a++).toString(32)}}(),formatSize:function(a,b,c){var d;for(c=c||["B","K","M","G","TB"];(d=c.shift())&&a>1024;)a/=1024;return("B"===d?a:a.toFixed(b||2))+d}}}),b("mediator",["base"],function(a){function b(a,b,c,d){return f.grep(a,function(a){return!(!a||b&&a.e!==b||c&&a.cb!==c&&a.cb._cb!==c||d&&a.ctx!==d)})}function c(a,b,c){f.each((a||"").split(h),function(a,d){c(d,b)})}function d(a,b){for(var c,d=!1,e=-1,f=a.length;++e1?void(d.isPlainObject(b)&&d.isPlainObject(c[a])?d.extend(c[a],b):c[a]=b):a?c[a]:c},getStats:function(){var a=this.request("get-stats");return{successNum:a.numOfSuccess,cancelNum:a.numOfCancel,invalidNum:a.numOfInvalid,uploadFailNum:a.numOfUploadFailed,queueNum:a.numOfQueue}},trigger:function(a){var c=[].slice.call(arguments,1),e=this.options,f="on"+a.substring(0,1).toUpperCase()+a.substring(1);return b.trigger.apply(this,arguments)===!1||d.isFunction(e[f])&&e[f].apply(this,c)===!1||d.isFunction(this[f])&&this[f].apply(this,c)===!1||b.trigger.apply(b,[this,a].concat(c))===!1?!1:!0},request:a.noop}),a.create=c.create=function(a){return new c(a)},a.Uploader=c,c}),b("runtime/runtime",["base","mediator"],function(a,b){function c(b){this.options=d.extend({container:document.body},b),this.uid=a.guid("rt_")}var d=a.$,e={},f=function(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null};return d.extend(c.prototype,{getContainer:function(){var a,b,c=this.options;return this._container?this._container:(a=d(c.container||document.body),b=d(document.createElement("div")),b.attr("id","rt_"+this.uid),b.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),a.append(b),a.addClass("webuploader-container"),this._container=b,b)},init:a.noop,exec:a.noop,destroy:function(){this._container&&this._container.parentNode.removeChild(this.__container),this.off()}}),c.orders="html5,flash",c.addRuntime=function(a,b){e[a]=b},c.hasRuntime=function(a){return!!(a?e[a]:f(e))},c.create=function(a,b){var g,h;if(b=b||c.orders,d.each(b.split(/\s*,\s*/g),function(){return e[this]?(g=this,!1):void 0}),g=g||f(e),!g)throw new Error("Runtime Error");return h=new e[g](a)},b.installTo(c.prototype),c}),b("runtime/client",["base","mediator","runtime/runtime"],function(a,b,c){function d(b,d){var f,g=a.Deferred();this.uid=a.guid("client_"),this.runtimeReady=function(a){return g.done(a)},this.connectRuntime=function(b,h){if(f)throw new Error("already connected!");return g.done(h),"string"==typeof b&&e.get(b)&&(f=e.get(b)),f=f||e.get(null,d),f?(a.$.extend(f.options,b),f.__promise.then(g.resolve),f.__client++):(f=c.create(b,b.runtimeOrder),f.__promise=g.promise(),f.once("ready",g.resolve),f.init(),e.add(f),f.__client=1),d&&(f.__standalone=d),f},this.getRuntime=function(){return f},this.disconnectRuntime=function(){f&&(f.__client--,f.__client<=0&&(e.remove(f),delete f.__promise,f.destroy()),f=null)},this.exec=function(){if(f){var c=a.slice(arguments);return b&&c.unshift(b),f.exec.apply(this,c)}},this.getRuid=function(){return f&&f.uid},this.destroy=function(a){return function(){a&&a.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}var e;return e=function(){var a={};return{add:function(b){a[b.uid]=b},get:function(b,c){var d;if(b)return a[b];for(d in a)if(!c||!a[d].__standalone)return a[d];return null},remove:function(b){delete a[b.uid]}}}(),b.installTo(d.prototype),d}),b("lib/dnd",["base","mediator","runtime/client"],function(a,b,c){function d(a){a=this.options=e.extend({},d.options,a),a.container=e(a.container),a.container.length&&c.call(this,"DragAndDrop")}var e=a.$;return d.options={accept:null,disableGlobalDnd:!1},a.inherits(c,{constructor:d,init:function(){var a=this;a.connectRuntime(a.options,function(){a.exec("init"),a.trigger("ready")})},destroy:function(){this.disconnectRuntime()}}),b.installTo(d.prototype),d}),b("widgets/widget",["base","uploader"],function(a,b){function c(a){if(!a)return!1;var b=a.length,c=e.type(a);return 1===a.nodeType&&b?!0:"array"===c||"function"!==c&&"string"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){this.owner=a,this.options=a.options}var e=a.$,f=b.prototype._init,g={},h=[];return e.extend(d.prototype,{init:a.noop,invoke:function(a,b){var c=this.responseMap;return c&&a in c&&c[a]in this&&e.isFunction(this[c[a]])?this[c[a]].apply(this,b):g},request:function(){return this.owner.request.apply(this.owner,arguments)}}),e.extend(b.prototype,{_init:function(){var a=this,b=a._widgets=[];return e.each(h,function(c,d){b.push(new d(a))}),f.apply(a,arguments)},request:function(b,d,e){var f,h,i,j,k=0,l=this._widgets,m=l.length,n=[],o=[];for(d=c(d)?d:[d];m>k;k++)f=l[k],h=f.invoke(b,d),h!==g&&(a.isPromise(h)?o.push(h):n.push(h));return e||o.length?(i=a.when.apply(a,o),j=i.pipe?"pipe":"then",i[j](function(){var b=a.Deferred(),c=arguments;return setTimeout(function(){b.resolve.apply(b,c)},1),b.promise()})[j](e||a.noop)):n[0]}}),b.register=d.register=function(b,c){var f,g={init:"init"};return 1===arguments.length?(c=b,c.responseMap=g):c.responseMap=e.extend(g,b),f=a.inherits(d,c),h.push(f),f},d}),b("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],function(a,b,c){var d=a.$;return b.options.dnd="",b.register({init:function(b){if(b.dnd&&"html5"===this.request("predict-runtime-type")){var e,f=this,g=a.Deferred(),h=d.extend({},{disableGlobalDnd:b.disableGlobalDnd,container:b.dnd,accept:b.accept});return e=new c(h),e.once("ready",g.resolve),e.on("drop",function(a){f.request("add-file",[a])}),e.on("accept",function(a){return f.owner.trigger("dndAccept",a)}),e.init(),g.promise()}}})}),b("lib/filepaste",["base","mediator","runtime/client"],function(a,b,c){function d(a){a=this.options=e.extend({},a),a.container=e(a.container||document.body),c.call(this,"FilePaste")}var e=a.$;return a.inherits(c,{constructor:d,init:function(){var a=this;a.connectRuntime(a.options,function(){a.exec("init"),a.trigger("ready")})},destroy:function(){this.exec("destroy"),this.disconnectRuntime(),this.off()}}),b.installTo(d.prototype),d}),b("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],function(a,b,c){var d=a.$;return b.register({init:function(b){if(b.paste&&"html5"===this.request("predict-runtime-type")){var e,f=this,g=a.Deferred(),h=d.extend({},{container:b.paste,accept:b.accept});return e=new c(h),e.once("ready",g.resolve),e.on("paste",function(a){f.owner.request("add-file",[a])}),e.init(),g.promise()}}})}),b("lib/blob",["base","runtime/client"],function(a,b){function c(a,c){var d=this;d.source=c,d.ruid=a,b.call(d,"Blob"),this.uid=c.uid||this.uid,this.type=c.type||"",this.size=c.size||0,a&&d.connectRuntime(a)}return a.inherits(b,{constructor:c,slice:function(a,b){return this.exec("slice",a,b)},getSource:function(){return this.source}}),c}),b("lib/file",["base","lib/blob"],function(a,b){function c(a,c){var f;b.apply(this,arguments),this.name=c.name||"untitled"+d++,f=e.exec(c.name)?RegExp.$1.toLowerCase():"",!f&&this.type&&(f=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(this.type)?RegExp.$1.toLowerCase():"",this.name+="."+f),!this.type&&~"jpg,jpeg,png,gif,bmp".indexOf(f)&&(this.type="image/"+("jpg"===f?"jpeg":f)),this.ext=f,this.lastModifiedDate=c.lastModifiedDate||(new Date).toLocaleString()}var d=1,e=/\.([^.]+)$/;return a.inherits(b,c)}),b("lib/filepicker",["base","runtime/client","lib/file"],function(b,c,d){function e(a){if(a=this.options=f.extend({},e.options,a),a.container=f(a.id),!a.container.length)throw new Error("按钮指定错误");a.innerHTML=a.innerHTML||a.label||a.container.html()||"",a.button=f(a.button||document.createElement("div")),a.button.html(a.innerHTML),a.container.html(a.button),c.call(this,"FilePicker",!0)}var f=b.$;return e.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file"},b.inherits(c,{constructor:e,init:function(){var b=this,c=b.options,e=c.button;e.addClass("webuploader-pick"),b.on("all",function(a){var g;switch(a){case"mouseenter":e.addClass("webuploader-pick-hover");break;case"mouseleave":e.removeClass("webuploader-pick-hover");break;case"change":g=b.exec("getFiles"),b.trigger("select",f.map(g,function(a){return a=new d(b.getRuid(),a),a._refer=c.container,a}),c.container)}}),b.connectRuntime(c,function(){b.refresh(),b.exec("init",c),b.trigger("ready")}),f(a).on("resize",function(){b.refresh()})},refresh:function(){var a=this.getRuntime().getContainer(),b=this.options.button,c=b.outerWidth?b.outerWidth():b.width(),d=b.outerHeight?b.outerHeight():b.height(),e=b.offset();c&&d&&a.css({bottom:"auto",right:"auto",width:c+"px",height:d+"px"}).offset(e)},enable:function(){var a=this.options.button;a.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var a=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),a.addClass("webuploader-pick-disable")},destroy:function(){this.runtime&&(this.exec("destroy"),this.disconnectRuntime())}}),e}),b("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(a,b,c){var d=a.$;return d.extend(b.options,{pick:null,accept:null}),b.register({"add-btn":"addButton",refresh:"refresh",disable:"disable",enable:"enable"},{init:function(a){return this.pickers=[],a.pick&&this.addButton(a.pick)},refresh:function(){d.each(this.pickers,function(){this.refresh()})},addButton:function(b){var e,f,g,h=this,i=h.options,j=i.accept;if(b)return g=a.Deferred(),d.isPlainObject(b)||(b={id:b}),e=d.extend({},b,{accept:d.isPlainObject(j)?[j]:j,swf:i.swf,runtimeOrder:i.runtimeOrder}),f=new c(e),f.once("ready",g.resolve),f.on("select",function(a){h.owner.request("add-file",[a])}),f.init(),this.pickers.push(f),g.promise()},disable:function(){d.each(this.pickers,function(){this.disable()})},enable:function(){d.each(this.pickers,function(){this.enable()})}})}),b("lib/image",["base","runtime/client","lib/blob"],function(a,b,c){function d(a){this.options=e.extend({},d.options,a),b.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}var e=a.$;return d.options={quality:90,crop:!1,preserveHeaders:!0,allowMagnify:!0},a.inherits(b,{constructor:d,info:function(a){return a?(this._info=a,this):this._info},meta:function(a){return a?(this._meta=a,this):this._meta},loadFromBlob:function(a){var b=this,c=a.getRuid();this.connectRuntime(c,function(){b.exec("init",b.options),b.exec("loadFromBlob",a)})},resize:function(){var b=a.slice(arguments);return this.exec.apply(this,["resize"].concat(b))},getAsDataUrl:function(a){return this.exec("getAsDataUrl",a)},getAsBlob:function(a){var b=this.exec("getAsBlob",a);return new c(this.getRuid(),b)}}),d}),b("widgets/image",["base","uploader","lib/image","widgets/widget"],function(a,b,c){var d,e=a.$;return d=function(a){var b=0,c=[],d=function(){for(var d;c.length&&a>b;)d=c.shift(),b+=d[0],d[1]()};return function(a,e,f){c.push([e,f]),a.once("destroy",function(){b-=e,setTimeout(d,1)}),setTimeout(d,1)}}(5242880),e.extend(b.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),b.register({"make-thumb":"makeThumb","before-send-file":"compressImage"},{makeThumb:function(a,b,f,g){var h,i;return a=this.request("get-file",a),a.type.match(/^image/)?(h=e.extend({},this.options.thumb),e.isPlainObject(f)&&(h=e.extend(h,f),f=null),f=f||h.width,g=g||h.height,i=new c(h),i.once("load",function(){a._info=a._info||i.info(),a._meta=a._meta||i.meta(),i.resize(f,g)}),i.once("complete",function(){b(!1,i.getAsDataUrl(h.type)),i.destroy()}),i.once("error",function(){b(!0),i.destroy()}),void d(i,a.source.size,function(){a._info&&i.info(a._info),a._meta&&i.meta(a._meta),i.loadFromBlob(a.source)})):void b(!0)},compressImage:function(b){var d,f,g=this.options.compress||this.options.resize,h=g&&g.compressSize||307200;return b=this.request("get-file",b),!g||!~"image/jpeg,image/jpg".indexOf(b.type)||b.sizeb;b++)if(c=this._queue[b],a===c.getStatus())return c;return null},sort:function(a){"function"==typeof a&&this._queue.sort(a)},getFiles:function(){for(var a,b=[].slice.call(arguments,0),c=[],d=0,f=this._queue.length;f>d;d++)a=this._queue[d],(!b.length||~e.inArray(a.getStatus(),b))&&c.push(a);return c},_fileAdded:function(a){var b=this,c=this._map[a.id];c||(this._map[a.id]=a,a.on("statuschange",function(a,c){b._onFileStatusChange(a,c)})),a.setStatus(f.QUEUED)},_onFileStatusChange:function(a,b){var c=this.stats;switch(b){case f.PROGRESS:c.numOfProgress--;break;case f.QUEUED:c.numOfQueue--;break;case f.ERROR:c.numOfUploadFailed--;break;case f.INVALID:c.numOfInvalid--}switch(a){case f.QUEUED:c.numOfQueue++;break;case f.PROGRESS:c.numOfProgress++;break;case f.ERROR:c.numOfUploadFailed++;break;case f.COMPLETE:c.numOfSuccess++;break;case f.CANCELLED:c.numOfCancel++;break;case f.INVALID:c.numOfInvalid++}}}),b.installTo(d.prototype),d}),b("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(a,b,c,d,e,f){var g=a.$,h=/\.\w+$/,i=d.Status;return b.register({"sort-files":"sortFiles","add-file":"addFiles","get-file":"getFile","fetch-file":"fetchFile","get-stats":"getStats","get-files":"getFiles","remove-file":"removeFile",retry:"retry",reset:"reset","accept-file":"acceptFile"},{init:function(b){var d,e,h,i,j,k,l,m=this;if(g.isPlainObject(b.accept)&&(b.accept=[b.accept]),b.accept){for(j=[],h=0,e=b.accept.length;e>h;h++)i=b.accept[h].extensions,i&&j.push(i);j.length&&(k="\\."+j.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),m.accept=new RegExp(k,"i")}return m.queue=new c,m.stats=m.queue.stats,"html5"===this.request("predict-runtime-type")?(d=a.Deferred(),l=new f("Placeholder"),l.connectRuntime({runtimeOrder:"html5"},function(){m._ruid=l.getRuid(),d.resolve()}),d.promise()):void 0},_wrapFile:function(a){if(!(a instanceof d)){if(!(a instanceof e)){if(!this._ruid)throw new Error("Can't add external files.");a=new e(this._ruid,a)}a=new d(a)}return a},acceptFile:function(a){var b=!a||a.size<6||this.accept&&h.exec(a.name)&&!this.accept.test(a.name);return!b},_addFile:function(a){var b=this;return a=b._wrapFile(a),b.owner.trigger("beforeFileQueued",a)?b.acceptFile(a)?(b.queue.append(a),b.owner.trigger("fileQueued",a),a):void b.owner.trigger("error","Q_TYPE_DENIED",a):void 0},getFile:function(a){return this.queue.getFile(a)},addFiles:function(a){var b=this;a.length||(a=[a]),a=g.map(a,function(a){return b._addFile(a)}),b.owner.trigger("filesQueued",a),b.options.auto&&b.request("start-upload")},getStats:function(){return this.stats},removeFile:function(a){var b=this;a=a.id?a:b.queue.getFile(a),a.setStatus(i.CANCELLED),b.owner.trigger("fileDequeued",a)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(a,b){var c,d,e,f=this;if(a)return a=a.id?a:f.queue.getFile(a),a.setStatus(i.QUEUED),void(b||f.request("start-upload"));for(c=f.queue.getFiles(i.ERROR),d=0,e=c.length;e>d;d++)a=c[d],a.setStatus(i.QUEUED);f.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.queue=new c,this.stats=this.queue.stats}})}),b("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(a,b){return a.support=function(){return b.hasRuntime.apply(b,arguments)},a.register({"predict-runtime-type":"predictRuntmeType"},{init:function(){if(!this.predictRuntmeType())throw Error("Runtime Error")},predictRuntmeType:function(){var a,c,d=this.options.runtimeOrder||b.orders,e=this.type;if(!e)for(d=d.split(/\s*,\s*/g),a=0,c=d.length;c>a;a++)if(b.hasRuntime(d[a])){this.type=e=d[a];break}return e}})}),b("lib/transport",["base","runtime/client","mediator"],function(a,b,c){function d(a){var c=this;a=c.options=e.extend(!0,{},d.options,a||{}),b.call(this,"Transport"),this._blob=null,this._formData=a.formData||{},this._headers=a.headers||{},this.on("progress",this._timeout),this.on("load error",function(){c.trigger("progress",1),clearTimeout(c._timer)})}var e=a.$;return d.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:12e4,formData:{},headers:{},sendAsBinary:!1},e.extend(d.prototype,{appendBlob:function(a,b,c){var d=this,e=d.options;d.getRuid()&&d.disconnectRuntime(),d.connectRuntime(b.ruid,function(){d.exec("init")}),d._blob=b,e.fileVal=a||e.fileVal,e.filename=c||e.filename},append:function(a,b){"object"==typeof a?e.extend(this._formData,a):this._formData[a]=b},setRequestHeader:function(a,b){"object"==typeof a?e.extend(this._headers,a):this._headers[a]=b},send:function(a){this.exec("send",a),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var a=this,b=a.options.timeout;b&&(clearTimeout(a._timer),a._timer=setTimeout(function(){a.abort(),a.trigger("error","timeout")},b))}}),c.installTo(d.prototype),d}),b("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(a,b,c,d){function e(a,b){for(var c,d=[],e=a.source,f=e.size,g=b?Math.ceil(f/b):1,h=0,i=0;g>i;)c=Math.min(b,f-h),d.push({file:a,start:h,end:b?h+c:f,total:f,chunks:g,chunk:i++}),h+=c;return a.blocks=d.concat(),a.remaning=d.length,{file:a,has:function(){return!!d.length},fetch:function(){return d.shift()}}}var f=a.$,g=a.isPromise,h=c.Status;f.extend(b.options,{prepareNextFile:!1,chunked:!1,chunkSize:5242880,chunkRetry:2,threads:3,formData:null}),b.register({"start-upload":"start","stop-upload":"stop","skip-file":"skipFile","is-in-progress":"isInProgress"},{init:function(){var b=this.owner;this.runing=!1,this.pool=[],this.pending=[],this.remaning=0,this.__tick=a.bindFn(this._tick,this),b.on("uploadComplete",function(a){a.blocks&&f.each(a.blocks,function(a,b){b.transport&&(b.transport.abort(),b.transport.destroy()),delete b.transport}),delete a.blocks,delete a.remaning})},start:function(){var b=this;f.each(b.request("get-files",h.INVALID),function(){b.request("remove-file",this)}),b.runing||(b.runing=!0,f.each(b.pool,function(a,c){var d=c.file;d.getStatus()===h.INTERRUPT&&(d.setStatus(h.PROGRESS),b._trigged=!1,c.transport&&c.transport.send())}),b._trigged=!1,b.owner.trigger("startUpload"),a.nextTick(b.__tick))},stop:function(a){var b=this;b.runing!==!1&&(b.runing=!1,a&&f.each(b.pool,function(a,b){b.transport&&b.transport.abort(),b.file.setStatus(h.INTERRUPT)}),b.owner.trigger("stopUpload"))},isInProgress:function(){return!!this.runing},getStats:function(){return this.request("get-stats")},skipFile:function(a,b){a=this.request("get-file",a),a.setStatus(b||h.COMPLETE),a.skipped=!0,a.blocks&&f.each(a.blocks,function(a,b){var c=b.transport;c&&(c.abort(),c.destroy(),delete b.transport)}),this.owner.trigger("uploadSkip",a)},_tick:function(){var b,c,d=this,e=d.options;return d._promise?d._promise.always(d.__tick):void(d.pool.length1&&(f.each(k.blocks,function(a,b){d+=(b.percentage||0)*(b.end-b.start)}),c=d/k.size),i.trigger("uploadProgress",k,c||0)}),c=function(a){var c;return e=l.getResponseAsJson()||{},e._raw=l.getResponse(),c=function(b){a=b},i.trigger("uploadAccept",b,e,c)||(a=a||"server"),a},l.on("error",function(a,d){b.retried=b.retried||0,b.chunks>1&&~"http,abort".indexOf(a)&&b.retried1&&f.extend(m,{chunks:b.chunks,chunk:b.chunk}),i.trigger("uploadBeforeSend",b,m,n),l.appendBlob(j.fileVal,b.blob,k.name),l.append(m),l.setRequestHeader(n),l.send()},_finishFile:function(a,b,c){var d=this.owner;return d.request("after-send-file",arguments,function(){a.setStatus(h.COMPLETE),d.trigger("uploadSuccess",a,b,c)}).fail(function(b){a.getStatus()===h.PROGRESS&&a.setStatus(h.ERROR,b),d.trigger("uploadError",a,b)}).always(function(){d.trigger("uploadComplete",a)})}})}),b("widgets/validator",["base","uploader","file","widgets/widget"],function(a,b,c){var d,e=a.$,f={};return d={addValidator:function(a,b){f[a]=b},removeValidator:function(a){delete f[a]}},b.register({init:function(){var a=this;e.each(f,function(){this.call(a.owner)})}}),d.addValidator("fileNumLimit",function(){var a=this,b=a.options,c=0,d=b.fileNumLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){return c>=d&&e&&(e=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",d,a),setTimeout(function(){e=!0},1)),c>=d?!1:!0}),a.on("fileQueued",function(){c++}),a.on("fileDequeued",function(){c--}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSizeLimit",function(){var a=this,b=a.options,c=0,d=b.fileSizeLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){var b=c+a.size>d;return b&&e&&(e=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",d,a),setTimeout(function(){e=!0},1)),b?!1:!0}),a.on("fileQueued",function(a){c+=a.size}),a.on("fileDequeued",function(a){c-=a.size}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSingleSizeLimit",function(){var a=this,b=a.options,d=b.fileSingleSizeLimit;d&&a.on("beforeFileQueued",function(a){return a.size>d?(a.setStatus(c.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",a),!1):void 0})}),d.addValidator("duplicate",function(){function a(a){for(var b,c=0,d=0,e=a.length;e>d;d++)b=a.charCodeAt(d),c=b+(c<<6)+(c<<16)-c;return c}var b=this,c=b.options,d={};c.duplicate||(b.on("beforeFileQueued",function(b){var c=b.__hash||(b.__hash=a(b.name+b.size+b.lastModifiedDate));return d[c]?(this.trigger("error","F_DUPLICATE",b),!1):void 0}),b.on("fileQueued",function(a){var b=a.__hash;b&&(d[b]=!0)}),b.on("fileDequeued",function(a){var b=a.__hash;b&&delete d[b]}))}),d}),b("runtime/compbase",[],function(){function a(a,b){this.owner=a,this.options=a.options,this.getRuntime=function(){return b},this.getRuid=function(){return b.uid},this.trigger=function(){return a.trigger.apply(a,arguments)}}return a}),b("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(b,c,d){function e(){var a={},d=this,e=this.destory;c.apply(d,arguments),d.type=f,d.exec=function(c,e){var f,h=this,i=h.uid,j=b.slice(arguments,2);return g[c]&&(f=a[i]=a[i]||new g[c](h,d),f[e])?f[e].apply(f,j):void 0},d.destory=function(){return e&&e.apply(this,arguments)}}var f="html5",g={};return b.inherits(c,{constructor:e,init:function(){var a=this;setTimeout(function(){a.trigger("ready")},1)}}),e.register=function(a,c){var e=g[a]=b.inherits(d,c);return e},a.Blob&&a.FileReader&&a.DataView&&c.addRuntime(f,e),e}),b("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(a,b){return a.register("Blob",{slice:function(a,c){var d=this.owner.source,e=d.slice||d.webkitSlice||d.mozSlice;return d=e.call(d,a,c),new b(this.getRuid(),d)}})}),b("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],function(a,b,c){var d=a.$,e="webuploader-dnd-";return b.register("DragAndDrop",{init:function(){var b=this.elem=this.options.container;this.dragEnterHandler=a.bindFn(this._dragEnterHandler,this),this.dragOverHandler=a.bindFn(this._dragOverHandler,this),this.dragLeaveHandler=a.bindFn(this._dragLeaveHandler,this),this.dropHandler=a.bindFn(this._dropHandler,this),this.dndOver=!1,b.on("dragenter",this.dragEnterHandler),b.on("dragover",this.dragOverHandler),b.on("dragleave",this.dragLeaveHandler),b.on("drop",this.dropHandler),this.options.disableGlobalDnd&&(d(document).on("dragover",this.dragOverHandler),d(document).on("drop",this.dropHandler)) +/* WebUploader 0.1.2 */!function(a,b){var c,d={},e=function(a,b){var c,d,e;if("string"==typeof a)return h(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));return b.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){var f,g={exports:b};"function"==typeof b&&(c.length||(c=[e,g.exports,g]),f=b.apply(null,c),void 0!==f&&(g.exports=f)),d[a]=g.exports},h=function(b){var c=d[b]||a[b];if(!c)throw new Error("`"+b+"` is undefined");return c},i=function(a){var b,c,e,f,g,h;h=function(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)};for(b in d)if(c=a,d.hasOwnProperty(b)){for(e=b.split("/"),g=h(e.pop());f=h(e.shift());)c[f]=c[f]||{},c=c[f];c[g]=d[b]}},j=b(a,f,e);i(j),"object"==typeof module&&"object"==typeof module.exports?module.exports=j:"function"==typeof define&&define.amd?define([],j):(c=a.WebUploader,a.WebUploader=j,a.WebUploader.noConflict=function(){a.WebUploader=c})}(this,function(a,b,c){return b("dollar-third",[],function(){return a.jQuery||a.Zepto}),b("dollar",["dollar-third"],function(a){return a}),b("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(a){return a&&"function"==typeof a.then}}}),b("promise",["promise-third"],function(a){return a}),b("base",["dollar","promise"],function(b,c){function d(a){return function(){return h.apply(a,arguments)}}function e(a,b){return function(){return a.apply(b,arguments)}}function f(a){var b;return Object.create?Object.create(a):(b=function(){},b.prototype=a,new b)}var g=function(){},h=Function.call;return{version:"0.1.2",$:b,Deferred:c.Deferred,isPromise:c.isPromise,when:c.when,browser:function(a){var b={},c=a.match(/WebKit\/([\d.]+)/),d=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),e=a.match(/MSIE\s([\d\.]+)/)||a.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=a.match(/Firefox\/([\d.]+)/),g=a.match(/Safari\/([\d.]+)/),h=a.match(/OPR\/([\d.]+)/);return c&&(b.webkit=parseFloat(c[1])),d&&(b.chrome=parseFloat(d[1])),e&&(b.ie=parseFloat(e[1])),f&&(b.firefox=parseFloat(f[1])),g&&(b.safari=parseFloat(g[1])),h&&(b.opera=parseFloat(h[1])),b}(navigator.userAgent),os:function(a){var b={},c=a.match(/(?:Android);?[\s\/]+([\d.]+)?/),d=a.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return c&&(b.android=parseFloat(c[1])),d&&(b.ios=parseFloat(d[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(a,c,d){var e;return"function"==typeof c?(e=c,c=null):e=c&&c.hasOwnProperty("constructor")?c.constructor:function(){return a.apply(this,arguments)},b.extend(!0,e,a,d||{}),e.__super__=a.prototype,e.prototype=f(a.prototype),c&&b.extend(!0,e.prototype,c),e},noop:g,bindFn:e,log:function(){return a.console?e(console.log,console):g}(),nextTick:function(){return function(a){setTimeout(a,1)}}(),slice:d([].slice),guid:function(){var a=0;return function(b){for(var c=(+new Date).toString(32),d=0;5>d;d++)c+=Math.floor(65535*Math.random()).toString(32);return(b||"wu_")+c+(a++).toString(32)}}(),formatSize:function(a,b,c){var d;for(c=c||["B","K","M","G","TB"];(d=c.shift())&&a>1024;)a/=1024;return("B"===d?a:a.toFixed(b||2))+d}}}),b("mediator",["base"],function(a){function b(a,b,c,d){return f.grep(a,function(a){return!(!a||b&&a.e!==b||c&&a.cb!==c&&a.cb._cb!==c||d&&a.ctx!==d)})}function c(a,b,c){f.each((a||"").split(h),function(a,d){c(d,b)})}function d(a,b){for(var c,d=!1,e=-1,f=a.length;++e1?void(d.isPlainObject(b)&&d.isPlainObject(c[a])?d.extend(c[a],b):c[a]=b):a?c[a]:c},getStats:function(){var a=this.request("get-stats");return{successNum:a.numOfSuccess,cancelNum:a.numOfCancel,invalidNum:a.numOfInvalid,uploadFailNum:a.numOfUploadFailed,queueNum:a.numOfQueue}},trigger:function(a){var c=[].slice.call(arguments,1),e=this.options,f="on"+a.substring(0,1).toUpperCase()+a.substring(1);return b.trigger.apply(this,arguments)===!1||d.isFunction(e[f])&&e[f].apply(this,c)===!1||d.isFunction(this[f])&&this[f].apply(this,c)===!1||b.trigger.apply(b,[this,a].concat(c))===!1?!1:!0},request:a.noop}),a.create=c.create=function(a){return new c(a)},a.Uploader=c,c}),b("runtime/runtime",["base","mediator"],function(a,b){function c(b){this.options=d.extend({container:document.body},b),this.uid=a.guid("rt_")}var d=a.$,e={},f=function(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null};return d.extend(c.prototype,{getContainer:function(){var a,b,c=this.options;return this._container?this._container:(a=d(c.container||document.body),b=d(document.createElement("div")),b.attr("id","rt_"+this.uid),b.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),a.append(b),a.addClass("webuploader-container"),this._container=b,b)},init:a.noop,exec:a.noop,destroy:function(){this._container&&this._container.parentNode.removeChild(this.__container),this.off()}}),c.orders="html5,flash",c.addRuntime=function(a,b){e[a]=b},c.hasRuntime=function(a){return!!(a?e[a]:f(e))},c.create=function(a,b){var g,h;if(b=b||c.orders,d.each(b.split(/\s*,\s*/g),function(){return e[this]?(g=this,!1):void 0}),g=g||f(e),!g)throw new Error("Runtime Error");return h=new e[g](a)},b.installTo(c.prototype),c}),b("runtime/client",["base","mediator","runtime/runtime"],function(a,b,c){function d(b,d){var f,g=a.Deferred();this.uid=a.guid("client_"),this.runtimeReady=function(a){return g.done(a)},this.connectRuntime=function(b,h){if(f)throw new Error("already connected!");return g.done(h),"string"==typeof b&&e.get(b)&&(f=e.get(b)),f=f||e.get(null,d),f?(a.$.extend(f.options,b),f.__promise.then(g.resolve),f.__client++):(f=c.create(b,b.runtimeOrder),f.__promise=g.promise(),f.once("ready",g.resolve),f.init(),e.add(f),f.__client=1),d&&(f.__standalone=d),f},this.getRuntime=function(){return f},this.disconnectRuntime=function(){f&&(f.__client--,f.__client<=0&&(e.remove(f),delete f.__promise,f.destroy()),f=null)},this.exec=function(){if(f){var c=a.slice(arguments);return b&&c.unshift(b),f.exec.apply(this,c)}},this.getRuid=function(){return f&&f.uid},this.destroy=function(a){return function(){a&&a.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}var e;return e=function(){var a={};return{add:function(b){a[b.uid]=b},get:function(b,c){var d;if(b)return a[b];for(d in a)if(!c||!a[d].__standalone)return a[d];return null},remove:function(b){delete a[b.uid]}}}(),b.installTo(d.prototype),d}),b("lib/dnd",["base","mediator","runtime/client"],function(a,b,c){function d(a){a=this.options=e.extend({},d.options,a),a.container=e(a.container),a.container.length&&c.call(this,"DragAndDrop")}var e=a.$;return d.options={accept:null,disableGlobalDnd:!1},a.inherits(c,{constructor:d,init:function(){var a=this;a.connectRuntime(a.options,function(){a.exec("init"),a.trigger("ready")})},destroy:function(){this.disconnectRuntime()}}),b.installTo(d.prototype),d}),b("widgets/widget",["base","uploader"],function(a,b){function c(a){if(!a)return!1;var b=a.length,c=e.type(a);return 1===a.nodeType&&b?!0:"array"===c||"function"!==c&&"string"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){this.owner=a,this.options=a.options}var e=a.$,f=b.prototype._init,g={},h=[];return e.extend(d.prototype,{init:a.noop,invoke:function(a,b){var c=this.responseMap;return c&&a in c&&c[a]in this&&e.isFunction(this[c[a]])?this[c[a]].apply(this,b):g},request:function(){return this.owner.request.apply(this.owner,arguments)}}),e.extend(b.prototype,{_init:function(){var a=this,b=a._widgets=[];return e.each(h,function(c,d){b.push(new d(a))}),f.apply(a,arguments)},request:function(b,d,e){var f,h,i,j,k=0,l=this._widgets,m=l.length,n=[],o=[];for(d=c(d)?d:[d];m>k;k++)f=l[k],h=f.invoke(b,d),h!==g&&(a.isPromise(h)?o.push(h):n.push(h));return e||o.length?(i=a.when.apply(a,o),j=i.pipe?"pipe":"then",i[j](function(){var b=a.Deferred(),c=arguments;return setTimeout(function(){b.resolve.apply(b,c)},1),b.promise()})[j](e||a.noop)):n[0]}}),b.register=d.register=function(b,c){var f,g={init:"init"};return 1===arguments.length?(c=b,c.responseMap=g):c.responseMap=e.extend(g,b),f=a.inherits(d,c),h.push(f),f},d}),b("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],function(a,b,c){var d=a.$;return b.options.dnd="",b.register({init:function(b){if(b.dnd&&"html5"===this.request("predict-runtime-type")){var e,f=this,g=a.Deferred(),h=d.extend({},{disableGlobalDnd:b.disableGlobalDnd,container:b.dnd,accept:b.accept});return e=new c(h),e.once("ready",g.resolve),e.on("drop",function(a){f.request("add-file",[a])}),e.on("accept",function(a){return f.owner.trigger("dndAccept",a)}),e.init(),g.promise()}}})}),b("lib/filepaste",["base","mediator","runtime/client"],function(a,b,c){function d(a){a=this.options=e.extend({},a),a.container=e(a.container||document.body),c.call(this,"FilePaste")}var e=a.$;return a.inherits(c,{constructor:d,init:function(){var a=this;a.connectRuntime(a.options,function(){a.exec("init"),a.trigger("ready")})},destroy:function(){this.exec("destroy"),this.disconnectRuntime(),this.off()}}),b.installTo(d.prototype),d}),b("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],function(a,b,c){var d=a.$;return b.register({init:function(b){if(b.paste&&"html5"===this.request("predict-runtime-type")){var e,f=this,g=a.Deferred(),h=d.extend({},{container:b.paste,accept:b.accept});return e=new c(h),e.once("ready",g.resolve),e.on("paste",function(a){f.owner.request("add-file",[a])}),e.init(),g.promise()}}})}),b("lib/blob",["base","runtime/client"],function(a,b){function c(a,c){var d=this;d.source=c,d.ruid=a,b.call(d,"Blob"),this.uid=c.uid||this.uid,this.type=c.type||"",this.size=c.size||0,a&&d.connectRuntime(a)}return a.inherits(b,{constructor:c,slice:function(a,b){return this.exec("slice",a,b)},getSource:function(){return this.source}}),c}),b("lib/file",["base","lib/blob"],function(a,b){function c(a,c){var f;b.apply(this,arguments),this.name=c.name||"untitled"+d++,f=e.exec(c.name)?RegExp.$1.toLowerCase():"",!f&&this.type&&(f=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(this.type)?RegExp.$1.toLowerCase():"",this.name+="."+f),!this.type&&~"jpg,jpeg,png,gif,bmp".indexOf(f)&&(this.type="image/"+("jpg"===f?"jpeg":f)),this.ext=f,this.lastModifiedDate=c.lastModifiedDate||(new Date).toLocaleString()}var d=1,e=/\.([^.]+)$/;return a.inherits(b,c)}),b("lib/filepicker",["base","runtime/client","lib/file"],function(b,c,d){function e(a){if(a=this.options=f.extend({},e.options,a),a.container=f(a.id),!a.container.length)throw new Error("按钮指定错误");a.innerHTML=a.innerHTML||a.label||a.container.html()||"",a.button=f(a.button||document.createElement("div")),a.button.html(a.innerHTML),a.container.html(a.button),c.call(this,"FilePicker",!0)}var f=b.$;return e.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file"},b.inherits(c,{constructor:e,init:function(){var b=this,c=b.options,e=c.button;e.addClass("webuploader-pick"),b.on("all",function(a){var g;switch(a){case"mouseenter":e.addClass("webuploader-pick-hover");break;case"mouseleave":e.removeClass("webuploader-pick-hover");break;case"change":g=b.exec("getFiles"),b.trigger("select",f.map(g,function(a){return a=new d(b.getRuid(),a),a._refer=c.container,a}),c.container)}}),b.connectRuntime(c,function(){b.refresh(),b.exec("init",c),b.trigger("ready")}),f(a).on("resize",function(){b.refresh()})},refresh:function(){var a=this.getRuntime().getContainer(),b=this.options.button,c=b.outerWidth?b.outerWidth():b.width(),d=b.outerHeight?b.outerHeight():b.height(),e=b.offset();c&&d&&a.css({bottom:"auto",right:"auto",width:c+"px",height:d+"px"}).offset(e)},enable:function(){var a=this.options.button;a.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var a=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),a.addClass("webuploader-pick-disable")},destroy:function(){this.runtime&&(this.exec("destroy"),this.disconnectRuntime())}}),e}),b("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(a,b,c){var d=a.$;return d.extend(b.options,{pick:null,accept:null}),b.register({"add-btn":"addButton",refresh:"refresh",disable:"disable",enable:"enable"},{init:function(a){return this.pickers=[],a.pick&&this.addButton(a.pick)},refresh:function(){d.each(this.pickers,function(){this.refresh()})},addButton:function(b){var e,f,g,h=this,i=h.options,j=i.accept;if(b)return g=a.Deferred(),d.isPlainObject(b)||(b={id:b}),e=d.extend({},b,{accept:d.isPlainObject(j)?[j]:j,swf:i.swf,runtimeOrder:i.runtimeOrder}),f=new c(e),f.once("ready",g.resolve),f.on("select",function(a){h.owner.request("add-file",[a])}),f.init(),this.pickers.push(f),g.promise()},disable:function(){d.each(this.pickers,function(){this.disable()})},enable:function(){d.each(this.pickers,function(){this.enable()})}})}),b("lib/image",["base","runtime/client","lib/blob"],function(a,b,c){function d(a){this.options=e.extend({},d.options,a),b.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}var e=a.$;return d.options={quality:90,crop:!1,preserveHeaders:!0,allowMagnify:!0},a.inherits(b,{constructor:d,info:function(a){return a?(this._info=a,this):this._info},meta:function(a){return a?(this._meta=a,this):this._meta},loadFromBlob:function(a){var b=this,c=a.getRuid();this.connectRuntime(c,function(){b.exec("init",b.options),b.exec("loadFromBlob",a)})},resize:function(){var b=a.slice(arguments);return this.exec.apply(this,["resize"].concat(b))},getAsDataUrl:function(a){return this.exec("getAsDataUrl",a)},getAsBlob:function(a){var b=this.exec("getAsBlob",a);return new c(this.getRuid(),b)}}),d}),b("widgets/image",["base","uploader","lib/image","widgets/widget"],function(a,b,c){var d,e=a.$;return d=function(a){var b=0,c=[],d=function(){for(var d;c.length&&a>b;)d=c.shift(),b+=d[0],d[1]()};return function(a,e,f){c.push([e,f]),a.once("destroy",function(){b-=e,setTimeout(d,1)}),setTimeout(d,1)}}(5242880),e.extend(b.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),b.register({"make-thumb":"makeThumb","before-send-file":"compressImage"},{makeThumb:function(a,b,f,g){var h,i;return a=this.request("get-file",a),a.type.match(/^image/)?(h=e.extend({},this.options.thumb),e.isPlainObject(f)&&(h=e.extend(h,f),f=null),f=f||h.width,g=g||h.height,i=new c(h),i.once("load",function(){a._info=a._info||i.info(),a._meta=a._meta||i.meta(),i.resize(f,g)}),i.once("complete",function(){b(!1,i.getAsDataUrl(h.type)),i.destroy()}),i.once("error",function(){b(!0),i.destroy()}),void d(i,a.source.size,function(){a._info&&i.info(a._info),a._meta&&i.meta(a._meta),i.loadFromBlob(a.source)})):void b(!0)},compressImage:function(b){var d,f,g=this.options.compress||this.options.resize,h=g&&g.compressSize||307200;return b=this.request("get-file",b),!g||!~"images/jpeg,images/jpg".indexOf(b.type)||b.sizeb;b++)if(c=this._queue[b],a===c.getStatus())return c;return null},sort:function(a){"function"==typeof a&&this._queue.sort(a)},getFiles:function(){for(var a,b=[].slice.call(arguments,0),c=[],d=0,f=this._queue.length;f>d;d++)a=this._queue[d],(!b.length||~e.inArray(a.getStatus(),b))&&c.push(a);return c},_fileAdded:function(a){var b=this,c=this._map[a.id];c||(this._map[a.id]=a,a.on("statuschange",function(a,c){b._onFileStatusChange(a,c)})),a.setStatus(f.QUEUED)},_onFileStatusChange:function(a,b){var c=this.stats;switch(b){case f.PROGRESS:c.numOfProgress--;break;case f.QUEUED:c.numOfQueue--;break;case f.ERROR:c.numOfUploadFailed--;break;case f.INVALID:c.numOfInvalid--}switch(a){case f.QUEUED:c.numOfQueue++;break;case f.PROGRESS:c.numOfProgress++;break;case f.ERROR:c.numOfUploadFailed++;break;case f.COMPLETE:c.numOfSuccess++;break;case f.CANCELLED:c.numOfCancel++;break;case f.INVALID:c.numOfInvalid++}}}),b.installTo(d.prototype),d}),b("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(a,b,c,d,e,f){var g=a.$,h=/\.\w+$/,i=d.Status;return b.register({"sort-files":"sortFiles","add-file":"addFiles","get-file":"getFile","fetch-file":"fetchFile","get-stats":"getStats","get-files":"getFiles","remove-file":"removeFile",retry:"retry",reset:"reset","accept-file":"acceptFile"},{init:function(b){var d,e,h,i,j,k,l,m=this;if(g.isPlainObject(b.accept)&&(b.accept=[b.accept]),b.accept){for(j=[],h=0,e=b.accept.length;e>h;h++)i=b.accept[h].extensions,i&&j.push(i);j.length&&(k="\\."+j.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),m.accept=new RegExp(k,"i")}return m.queue=new c,m.stats=m.queue.stats,"html5"===this.request("predict-runtime-type")?(d=a.Deferred(),l=new f("Placeholder"),l.connectRuntime({runtimeOrder:"html5"},function(){m._ruid=l.getRuid(),d.resolve()}),d.promise()):void 0},_wrapFile:function(a){if(!(a instanceof d)){if(!(a instanceof e)){if(!this._ruid)throw new Error("Can't add external files.");a=new e(this._ruid,a)}a=new d(a)}return a},acceptFile:function(a){var b=!a||a.size<6||this.accept&&h.exec(a.name)&&!this.accept.test(a.name);return!b},_addFile:function(a){var b=this;return a=b._wrapFile(a),b.owner.trigger("beforeFileQueued",a)?b.acceptFile(a)?(b.queue.append(a),b.owner.trigger("fileQueued",a),a):void b.owner.trigger("error","Q_TYPE_DENIED",a):void 0},getFile:function(a){return this.queue.getFile(a)},addFiles:function(a){var b=this;a.length||(a=[a]),a=g.map(a,function(a){return b._addFile(a)}),b.owner.trigger("filesQueued",a),b.options.auto&&b.request("start-upload")},getStats:function(){return this.stats},removeFile:function(a){var b=this;a=a.id?a:b.queue.getFile(a),a.setStatus(i.CANCELLED),b.owner.trigger("fileDequeued",a)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(a,b){var c,d,e,f=this;if(a)return a=a.id?a:f.queue.getFile(a),a.setStatus(i.QUEUED),void(b||f.request("start-upload"));for(c=f.queue.getFiles(i.ERROR),d=0,e=c.length;e>d;d++)a=c[d],a.setStatus(i.QUEUED);f.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.queue=new c,this.stats=this.queue.stats}})}),b("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(a,b){return a.support=function(){return b.hasRuntime.apply(b,arguments)},a.register({"predict-runtime-type":"predictRuntmeType"},{init:function(){if(!this.predictRuntmeType())throw Error("Runtime Error")},predictRuntmeType:function(){var a,c,d=this.options.runtimeOrder||b.orders,e=this.type;if(!e)for(d=d.split(/\s*,\s*/g),a=0,c=d.length;c>a;a++)if(b.hasRuntime(d[a])){this.type=e=d[a];break}return e}})}),b("lib/transport",["base","runtime/client","mediator"],function(a,b,c){function d(a){var c=this;a=c.options=e.extend(!0,{},d.options,a||{}),b.call(this,"Transport"),this._blob=null,this._formData=a.formData||{},this._headers=a.headers||{},this.on("progress",this._timeout),this.on("load error",function(){c.trigger("progress",1),clearTimeout(c._timer)})}var e=a.$;return d.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:12e4,formData:{},headers:{},sendAsBinary:!1},e.extend(d.prototype,{appendBlob:function(a,b,c){var d=this,e=d.options;d.getRuid()&&d.disconnectRuntime(),d.connectRuntime(b.ruid,function(){d.exec("init")}),d._blob=b,e.fileVal=a||e.fileVal,e.filename=c||e.filename},append:function(a,b){"object"==typeof a?e.extend(this._formData,a):this._formData[a]=b},setRequestHeader:function(a,b){"object"==typeof a?e.extend(this._headers,a):this._headers[a]=b},send:function(a){this.exec("send",a),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var a=this,b=a.options.timeout;b&&(clearTimeout(a._timer),a._timer=setTimeout(function(){a.abort(),a.trigger("error","timeout")},b))}}),c.installTo(d.prototype),d}),b("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(a,b,c,d){function e(a,b){for(var c,d=[],e=a.source,f=e.size,g=b?Math.ceil(f/b):1,h=0,i=0;g>i;)c=Math.min(b,f-h),d.push({file:a,start:h,end:b?h+c:f,total:f,chunks:g,chunk:i++}),h+=c;return a.blocks=d.concat(),a.remaning=d.length,{file:a,has:function(){return!!d.length},fetch:function(){return d.shift()}}}var f=a.$,g=a.isPromise,h=c.Status;f.extend(b.options,{prepareNextFile:!1,chunked:!1,chunkSize:5242880,chunkRetry:2,threads:3,formData:null}),b.register({"start-upload":"start","stop-upload":"stop","skip-file":"skipFile","is-in-progress":"isInProgress"},{init:function(){var b=this.owner;this.runing=!1,this.pool=[],this.pending=[],this.remaning=0,this.__tick=a.bindFn(this._tick,this),b.on("uploadComplete",function(a){a.blocks&&f.each(a.blocks,function(a,b){b.transport&&(b.transport.abort(),b.transport.destroy()),delete b.transport}),delete a.blocks,delete a.remaning})},start:function(){var b=this;f.each(b.request("get-files",h.INVALID),function(){b.request("remove-file",this)}),b.runing||(b.runing=!0,f.each(b.pool,function(a,c){var d=c.file;d.getStatus()===h.INTERRUPT&&(d.setStatus(h.PROGRESS),b._trigged=!1,c.transport&&c.transport.send())}),b._trigged=!1,b.owner.trigger("startUpload"),a.nextTick(b.__tick))},stop:function(a){var b=this;b.runing!==!1&&(b.runing=!1,a&&f.each(b.pool,function(a,b){b.transport&&b.transport.abort(),b.file.setStatus(h.INTERRUPT)}),b.owner.trigger("stopUpload"))},isInProgress:function(){return!!this.runing},getStats:function(){return this.request("get-stats")},skipFile:function(a,b){a=this.request("get-file",a),a.setStatus(b||h.COMPLETE),a.skipped=!0,a.blocks&&f.each(a.blocks,function(a,b){var c=b.transport;c&&(c.abort(),c.destroy(),delete b.transport)}),this.owner.trigger("uploadSkip",a)},_tick:function(){var b,c,d=this,e=d.options;return d._promise?d._promise.always(d.__tick):void(d.pool.length1&&(f.each(k.blocks,function(a,b){d+=(b.percentage||0)*(b.end-b.start)}),c=d/k.size),i.trigger("uploadProgress",k,c||0)}),c=function(a){var c;return e=l.getResponseAsJson()||{},e._raw=l.getResponse(),c=function(b){a=b},i.trigger("uploadAccept",b,e,c)||(a=a||"server"),a},l.on("error",function(a,d){b.retried=b.retried||0,b.chunks>1&&~"http,abort".indexOf(a)&&b.retried1&&f.extend(m,{chunks:b.chunks,chunk:b.chunk}),i.trigger("uploadBeforeSend",b,m,n),l.appendBlob(j.fileVal,b.blob,k.name),l.append(m),l.setRequestHeader(n),l.send()},_finishFile:function(a,b,c){var d=this.owner;return d.request("after-send-file",arguments,function(){a.setStatus(h.COMPLETE),d.trigger("uploadSuccess",a,b,c)}).fail(function(b){a.getStatus()===h.PROGRESS&&a.setStatus(h.ERROR,b),d.trigger("uploadError",a,b)}).always(function(){d.trigger("uploadComplete",a)})}})}),b("widgets/validator",["base","uploader","file","widgets/widget"],function(a,b,c){var d,e=a.$,f={};return d={addValidator:function(a,b){f[a]=b},removeValidator:function(a){delete f[a]}},b.register({init:function(){var a=this;e.each(f,function(){this.call(a.owner)})}}),d.addValidator("fileNumLimit",function(){var a=this,b=a.options,c=0,d=b.fileNumLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){return c>=d&&e&&(e=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",d,a),setTimeout(function(){e=!0},1)),c>=d?!1:!0}),a.on("fileQueued",function(){c++}),a.on("fileDequeued",function(){c--}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSizeLimit",function(){var a=this,b=a.options,c=0,d=b.fileSizeLimit>>0,e=!0;d&&(a.on("beforeFileQueued",function(a){var b=c+a.size>d;return b&&e&&(e=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",d,a),setTimeout(function(){e=!0},1)),b?!1:!0}),a.on("fileQueued",function(a){c+=a.size}),a.on("fileDequeued",function(a){c-=a.size}),a.on("uploadFinished",function(){c=0}))}),d.addValidator("fileSingleSizeLimit",function(){var a=this,b=a.options,d=b.fileSingleSizeLimit;d&&a.on("beforeFileQueued",function(a){return a.size>d?(a.setStatus(c.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",a),!1):void 0})}),d.addValidator("duplicate",function(){function a(a){for(var b,c=0,d=0,e=a.length;e>d;d++)b=a.charCodeAt(d),c=b+(c<<6)+(c<<16)-c;return c}var b=this,c=b.options,d={};c.duplicate||(b.on("beforeFileQueued",function(b){var c=b.__hash||(b.__hash=a(b.name+b.size+b.lastModifiedDate));return d[c]?(this.trigger("error","F_DUPLICATE",b),!1):void 0}),b.on("fileQueued",function(a){var b=a.__hash;b&&(d[b]=!0)}),b.on("fileDequeued",function(a){var b=a.__hash;b&&delete d[b]}))}),d}),b("runtime/compbase",[],function(){function a(a,b){this.owner=a,this.options=a.options,this.getRuntime=function(){return b},this.getRuid=function(){return b.uid},this.trigger=function(){return a.trigger.apply(a,arguments)}}return a}),b("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(b,c,d){function e(){var a={},d=this,e=this.destory;c.apply(d,arguments),d.type=f,d.exec=function(c,e){var f,h=this,i=h.uid,j=b.slice(arguments,2);return g[c]&&(f=a[i]=a[i]||new g[c](h,d),f[e])?f[e].apply(f,j):void 0},d.destory=function(){return e&&e.apply(this,arguments)}}var f="html5",g={};return b.inherits(c,{constructor:e,init:function(){var a=this;setTimeout(function(){a.trigger("ready")},1)}}),e.register=function(a,c){var e=g[a]=b.inherits(d,c);return e},a.Blob&&a.FileReader&&a.DataView&&c.addRuntime(f,e),e}),b("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(a,b){return a.register("Blob",{slice:function(a,c){var d=this.owner.source,e=d.slice||d.webkitSlice||d.mozSlice;return d=e.call(d,a,c),new b(this.getRuid(),d)}})}),b("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],function(a,b,c){var d=a.$,e="webuploader-dnd-";return b.register("DragAndDrop",{init:function(){var b=this.elem=this.options.container;this.dragEnterHandler=a.bindFn(this._dragEnterHandler,this),this.dragOverHandler=a.bindFn(this._dragOverHandler,this),this.dragLeaveHandler=a.bindFn(this._dragLeaveHandler,this),this.dropHandler=a.bindFn(this._dropHandler,this),this.dndOver=!1,b.on("dragenter",this.dragEnterHandler),b.on("dragover",this.dragOverHandler),b.on("dragleave",this.dragLeaveHandler),b.on("drop",this.dropHandler),this.options.disableGlobalDnd&&(d(document).on("dragover",this.dragOverHandler),d(document).on("drop",this.dropHandler)) },_dragEnterHandler:function(a){var b,c=this,d=c._denied||!1;return a=a.originalEvent||a,c.dndOver||(c.dndOver=!0,b=a.dataTransfer.items,b&&b.length&&(c._denied=d=!c.trigger("accept",b)),c.elem.addClass(e+"over"),c.elem[d?"addClass":"removeClass"](e+"denied")),a.dataTransfer.dropEffect=d?"none":"copy",!1},_dragOverHandler:function(a){var b=this.elem.parent().get(0);return b&&!d.contains(b,a.currentTarget)?!1:(clearTimeout(this._leaveTimer),this._dragEnterHandler.call(this,a),!1)},_dragLeaveHandler:function(){var a,b=this;return a=function(){b.dndOver=!1,b.elem.removeClass(e+"over "+e+"denied")},clearTimeout(b._leaveTimer),b._leaveTimer=setTimeout(a,100),!1},_dropHandler:function(a){var b=this,f=b.getRuid(),g=b.elem.parent().get(0);return g&&!d.contains(g,a.currentTarget)?!1:(b._getTansferFiles(a,function(a){b.trigger("drop",d.map(a,function(a){return new c(f,a)}))}),b.dndOver=!1,b.elem.removeClass(e+"over"),!1)},_getTansferFiles:function(b,c){var d,e,f,g,h,i,j,k,l=[],m=[];for(b=b.originalEvent||b,f=b.dataTransfer,d=f.items,e=f.files,k=!(!d||!d[0].webkitGetAsEntry),i=0,j=e.length;j>i;i++)g=e[i],h=d&&d[i],k&&h.webkitGetAsEntry().isDirectory?m.push(this._traverseDirectoryTree(h.webkitGetAsEntry(),l)):l.push(g);a.when.apply(a,m).done(function(){l.length&&c(l)})},_traverseDirectoryTree:function(b,c){var d=a.Deferred(),e=this;return b.isFile?b.file(function(a){c.push(a),d.resolve()}):b.isDirectory&&b.createReader().readEntries(function(b){var f,g=b.length,h=[],i=[];for(f=0;g>f;f++)h.push(e._traverseDirectoryTree(b[f],i));a.when.apply(a,h).then(function(){c.push.apply(c,i),d.resolve()},d.reject)}),d.promise()},destroy:function(){var a=this.elem;a.off("dragenter",this.dragEnterHandler),a.off("dragover",this.dragEnterHandler),a.off("dragleave",this.dragLeaveHandler),a.off("drop",this.dropHandler),this.options.disableGlobalDnd&&(d(document).off("dragover",this.dragOverHandler),d(document).off("drop",this.dropHandler))}})}),b("runtime/html5/filepaste",["base","runtime/html5/runtime","lib/file"],function(a,b,c){return b.register("FilePaste",{init:function(){var b,c,d,e,f=this.options,g=this.elem=f.container,h=".*";if(f.accept){for(b=[],c=0,d=f.accept.length;d>c;c++)e=f.accept[c].mimeTypes,e&&b.push(e);b.length&&(h=b.join(","),h=h.replace(/,/g,"|").replace(/\*/g,".*"))}this.accept=h=new RegExp(h,"i"),this.hander=a.bindFn(this._pasteHander,this),g.on("paste",this.hander)},_pasteHander:function(a){var b,d,e,f,g,h=[],i=this.getRuid();for(a=a.originalEvent||a,b=a.clipboardData.items,f=0,g=b.length;g>f;f++)d=b[f],"file"===d.kind&&(e=d.getAsFile())&&h.push(new c(i,e));h.length&&(a.preventDefault(),a.stopPropagation(),this.trigger("paste",h))},destroy:function(){this.elem.off("paste",this.hander)}})}),b("runtime/html5/filepicker",["base","runtime/html5/runtime"],function(a,b){var c=a.$;return b.register("FilePicker",{init:function(){var a,b,d,e,f=this.getRuntime().getContainer(),g=this,h=g.owner,i=g.options,j=c(document.createElement("label")),k=c(document.createElement("input"));if(k.attr("type","file"),k.attr("name",i.name),k.addClass("webuploader-element-invisible"),j.on("click",function(){k.trigger("click")}),j.css({opacity:0,width:"100%",height:"100%",display:"block",cursor:"pointer",background:"#ffffff"}),i.multiple&&k.attr("multiple","multiple"),i.accept&&i.accept.length>0){for(a=[],b=0,d=i.accept.length;d>b;b++)a.push(i.accept[b].mimeTypes);k.attr("accept",a.join(","))}f.append(k),f.append(j),e=function(a){h.trigger(a.type)},k.on("change",function(a){var b,d=arguments.callee;g.files=a.target.files,b=this.cloneNode(!0),this.parentNode.replaceChild(b,this),k.off(),k=c(b).on("change",d).on("mouseenter mouseleave",e),h.trigger("change")}),j.on("mouseenter mouseleave",e)},getFiles:function(){return this.files},destroy:function(){}})}),b("runtime/html5/util",["base"],function(b){var c=a.createObjectURL&&a||a.URL&&URL.revokeObjectURL&&URL||a.webkitURL,d=b.noop,e=d;return c&&(d=function(){return c.createObjectURL.apply(c,arguments)},e=function(){return c.revokeObjectURL.apply(c,arguments)}),{createObjectURL:d,revokeObjectURL:e,dataURL2Blob:function(a){var b,c,d,e,f,g;for(g=a.split(","),b=~g[0].indexOf("base64")?atob(g[1]):decodeURIComponent(g[1]),d=new ArrayBuffer(b.length),c=new Uint8Array(d),e=0;ei&&(d=h.getUint16(i),d>=65504&&65519>=d||65534===d)&&(e=h.getUint16(i+2)+2,!(i+e>h.byteLength));){if(f=b.parsers[d],!c&&f)for(g=0;g6&&(l.imageHead=a.slice?a.slice(2,k):new Uint8Array(a).subarray(2,k))}return l}},updateImageHead:function(a,b){var c,d,e,f=this._parse(a,!0);return e=2,f.imageHead&&(e=2+f.imageHead.byteLength),d=a.slice?a.slice(e):new Uint8Array(a).subarray(e),c=new Uint8Array(b.byteLength+2+d.byteLength),c[0]=255,c[1]=216,c.set(new Uint8Array(b),2),c.set(new Uint8Array(d),b.byteLength+2),c.buffer}},a.parseMeta=function(){return b.parse.apply(b,arguments)},a.updateImageHead=function(){return b.updateImageHead.apply(b,arguments)},b}),b("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],function(a,b){var c={};return c.ExifMap=function(){return this},c.ExifMap.prototype.map={Orientation:274},c.ExifMap.prototype.get=function(a){return this[a]||this[this.map[a]]},c.exifTagTypes={1:{getValue:function(a,b){return a.getUint8(b)},size:1},2:{getValue:function(a,b){return String.fromCharCode(a.getUint8(b))},size:1,ascii:!0},3:{getValue:function(a,b,c){return a.getUint16(b,c)},size:2},4:{getValue:function(a,b,c){return a.getUint32(b,c)},size:4},5:{getValue:function(a,b,c){return a.getUint32(b,c)/a.getUint32(b+4,c)},size:8},9:{getValue:function(a,b,c){return a.getInt32(b,c)},size:4},10:{getValue:function(a,b,c){return a.getInt32(b,c)/a.getInt32(b+4,c)},size:8}},c.exifTagTypes[7]=c.exifTagTypes[1],c.getExifValue=function(b,d,e,f,g,h){var i,j,k,l,m,n,o=c.exifTagTypes[f];if(!o)return void a.log("Invalid Exif data: Invalid tag type.");if(i=o.size*g,j=i>4?d+b.getUint32(e+8,h):e+8,j+i>b.byteLength)return void a.log("Invalid Exif data: Invalid data offset.");if(1===g)return o.getValue(b,j,h);for(k=[],l=0;g>l;l+=1)k[l]=o.getValue(b,j+l*o.size,h);if(o.ascii){for(m="",l=0;lb.byteLength)return void a.log("Invalid Exif data: Invalid directory offset.");if(g=b.getUint16(d,e),h=d+2+12*g,h+4>b.byteLength)return void a.log("Invalid Exif data: Invalid directory size.");for(i=0;g>i;i+=1)this.parseExifTag(b,c,d+2+12*i,e,f);return b.getUint32(h,e)},c.parseExifData=function(b,d,e,f){var g,h,i=d+10;if(1165519206===b.getUint32(d+4)){if(i+8>b.byteLength)return void a.log("Invalid Exif data: Invalid segment size.");if(0!==b.getUint16(d+8))return void a.log("Invalid Exif data: Missing byte alignment offset.");switch(b.getUint16(i)){case 18761:g=!0;break;case 19789:g=!1;break;default:return void a.log("Invalid Exif data: Invalid byte alignment marker.")}if(42!==b.getUint16(i+2,g))return void a.log("Invalid Exif data: Missing TIFF marker.");h=b.getUint32(i+4,g),f.exif=new c.ExifMap,h=c.parseExifTags(b,i,i+h,g,f)}},b.parsers[65505].push(c.parseExifData),c}),b("runtime/html5/jpegencoder",[],function(){function a(a){function b(a){for(var b=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],c=0;64>c;c++){var d=y((b[c]*a+50)/100);1>d?d=1:d>255&&(d=255),z[P[c]]=d}for(var e=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],f=0;64>f;f++){var g=y((e[f]*a+50)/100);1>g?g=1:g>255&&(g=255),A[P[f]]=g}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],i=0,j=0;8>j;j++)for(var k=0;8>k;k++)B[i]=1/(z[P[i]]*h[j]*h[k]*8),C[i]=1/(A[P[i]]*h[j]*h[k]*8),i++}function c(a,b){for(var c=0,d=0,e=new Array,f=1;16>=f;f++){for(var g=1;g<=a[f];g++)e[b[d]]=[],e[b[d]][0]=c,e[b[d]][1]=f,d++,c++;c*=2}return e}function d(){t=c(Q,R),u=c(U,V),v=c(S,T),w=c(W,X)}function e(){for(var a=1,b=2,c=1;15>=c;c++){for(var d=a;b>d;d++)E[32767+d]=c,D[32767+d]=[],D[32767+d][1]=c,D[32767+d][0]=d;for(var e=-(b-1);-a>=e;e++)E[32767+e]=c,D[32767+e]=[],D[32767+e][1]=c,D[32767+e][0]=b-1+e;a<<=1,b<<=1}}function f(){for(var a=0;256>a;a++)O[a]=19595*a,O[a+256>>0]=38470*a,O[a+512>>0]=7471*a+32768,O[a+768>>0]=-11059*a,O[a+1024>>0]=-21709*a,O[a+1280>>0]=32768*a+8421375,O[a+1536>>0]=-27439*a,O[a+1792>>0]=-5329*a}function g(a){for(var b=a[0],c=a[1]-1;c>=0;)b&1<J&&(255==I?(h(255),h(0)):h(I),J=7,I=0)}function h(a){H.push(N[a])}function i(a){h(a>>8&255),h(255&a)}function j(a,b){var c,d,e,f,g,h,i,j,k,l=0,m=8,n=64;for(k=0;m>k;++k){c=a[l],d=a[l+1],e=a[l+2],f=a[l+3],g=a[l+4],h=a[l+5],i=a[l+6],j=a[l+7];var o=c+j,p=c-j,q=d+i,r=d-i,s=e+h,t=e-h,u=f+g,v=f-g,w=o+u,x=o-u,y=q+s,z=q-s;a[l]=w+y,a[l+4]=w-y;var A=.707106781*(z+x);a[l+2]=x+A,a[l+6]=x-A,w=v+t,y=t+r,z=r+p;var B=.382683433*(w-z),C=.5411961*w+B,D=1.306562965*z+B,E=.707106781*y,G=p+E,H=p-E;a[l+5]=H+C,a[l+3]=H-C,a[l+1]=G+D,a[l+7]=G-D,l+=8}for(l=0,k=0;m>k;++k){c=a[l],d=a[l+8],e=a[l+16],f=a[l+24],g=a[l+32],h=a[l+40],i=a[l+48],j=a[l+56];var I=c+j,J=c-j,K=d+i,L=d-i,M=e+h,N=e-h,O=f+g,P=f-g,Q=I+O,R=I-O,S=K+M,T=K-M;a[l]=Q+S,a[l+32]=Q-S;var U=.707106781*(T+R);a[l+16]=R+U,a[l+48]=R-U,Q=P+N,S=N+L,T=L+J;var V=.382683433*(Q-T),W=.5411961*Q+V,X=1.306562965*T+V,Y=.707106781*S,Z=J+Y,$=J-Y;a[l+40]=$+W,a[l+24]=$-W,a[l+8]=Z+X,a[l+56]=Z-X,l++}var _;for(k=0;n>k;++k)_=a[k]*b[k],F[k]=_>0?_+.5|0:_-.5|0;return F}function k(){i(65504),i(16),h(74),h(70),h(73),h(70),h(0),h(1),h(1),h(0),i(1),i(1),h(0),h(0)}function l(a,b){i(65472),i(17),h(8),i(b),i(a),h(3),h(1),h(17),h(0),h(2),h(17),h(1),h(3),h(17),h(1)}function m(){i(65499),i(132),h(0);for(var a=0;64>a;a++)h(z[a]);h(1);for(var b=0;64>b;b++)h(A[b])}function n(){i(65476),i(418),h(0);for(var a=0;16>a;a++)h(Q[a+1]);for(var b=0;11>=b;b++)h(R[b]);h(16);for(var c=0;16>c;c++)h(S[c+1]);for(var d=0;161>=d;d++)h(T[d]);h(1);for(var e=0;16>e;e++)h(U[e+1]);for(var f=0;11>=f;f++)h(V[f]);h(17);for(var g=0;16>g;g++)h(W[g+1]);for(var j=0;161>=j;j++)h(X[j])}function o(){i(65498),i(12),h(3),h(1),h(0),h(2),h(17),h(3),h(17),h(0),h(63),h(0)}function p(a,b,c,d,e){for(var f,h=e[0],i=e[240],k=16,l=63,m=64,n=j(a,b),o=0;m>o;++o)G[P[o]]=n[o];var p=G[0]-c;c=G[0],0==p?g(d[0]):(f=32767+p,g(d[E[f]]),g(D[f]));for(var q=63;q>0&&0==G[q];q--);if(0==q)return g(h),c;for(var r,s=1;q>=s;){for(var t=s;0==G[s]&&q>=s;++s);var u=s-t;if(u>=k){r=u>>4;for(var v=1;r>=v;++v)g(i);u=15&u}f=32767+G[s],g(e[(u<<4)+E[f]]),g(D[f]),s++}return q!=l&&g(h),c}function q(){for(var a=String.fromCharCode,b=0;256>b;b++)N[b]=a(b)}function r(a){if(0>=a&&(a=1),a>100&&(a=100),x!=a){var c=0;c=Math.floor(50>a?5e3/a:200-2*a),b(c),x=a}}function s(){a||(a=50),q(),d(),e(),f(),r(a)}var t,u,v,w,x,y=(Math.round,Math.floor),z=new Array(64),A=new Array(64),B=new Array(64),C=new Array(64),D=new Array(65535),E=new Array(65535),F=new Array(64),G=new Array(64),H=[],I=0,J=7,K=new Array(64),L=new Array(64),M=new Array(64),N=new Array(256),O=new Array(2048),P=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],T=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],U=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],V=[0,1,2,3,4,5,6,7,8,9,10,11],W=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],X=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];this.encode=function(a,b){b&&r(b),H=new Array,I=0,J=7,i(65496),k(),m(),l(a.width,a.height),n(),o();var c=0,d=0,e=0;I=0,J=7,this.encode.displayName="_encode_";for(var f,h,j,q,s,x,y,z,A,D=a.data,E=a.width,F=a.height,G=4*E,N=0;F>N;){for(f=0;G>f;){for(s=G*N+f,x=s,y=-1,z=0,A=0;64>A;A++)z=A>>3,y=4*(7&A),x=s+z*G+y,N+z>=F&&(x-=G*(N+1+z-F)),f+y>=G&&(x-=f+y-G+4),h=D[x++],j=D[x++],q=D[x++],K[A]=(O[h]+O[j+256>>0]+O[q+512>>0]>>16)-128,L[A]=(O[h+768>>0]+O[j+1024>>0]+O[q+1280>>0]>>16)-128,M[A]=(O[h+1280>>0]+O[j+1536>>0]+O[q+1792>>0]>>16)-128;c=p(K,B,c,t,v),d=p(L,C,d,u,w),e=p(M,C,e,u,w),f+=32}N+=8}if(J>=0){var P=[];P[1]=J+1,P[0]=(1<i;)e=d[4*(k-1)+3],0===e?j=k:i=k,k=j+i>>1;return f=k/c,0===f?1:f}function c(a){var b,c,d=a.naturalWidth,e=a.naturalHeight;return d*e>1048576?(b=document.createElement("canvas"),b.width=b.height=1,c=b.getContext("2d"),c.drawImage(a,-d+1,0),0===c.getImageData(0,0,1,1).data[3]):!1}return a.os.ios?a.os.ios>=7?function(a,c,d,e,f,g){var h=c.naturalWidth,i=c.naturalHeight,j=b(c,h,i);return a.getContext("2d").drawImage(c,0,0,h*j,i*j,d,e,f,g)}:function(a,d,e,f,g,h){var i,j,k,l,m,n,o,p=d.naturalWidth,q=d.naturalHeight,r=a.getContext("2d"),s=c(d),t="image/jpeg"===this.type,u=1024,v=0,w=0;for(s&&(p/=2,q/=2),r.save(),i=document.createElement("canvas"),i.width=i.height=u,j=i.getContext("2d"),k=t?b(d,p,q):1,l=Math.ceil(u*g/p),m=Math.ceil(u*h/q/k);q>v;){for(n=0,o=0;p>n;)j.clearRect(0,0,u,u),j.drawImage(d,-n,-v),r.drawImage(i,0,0,u,u,e+o,f+w,l,m),n+=u,o+=l;v+=u,w+=m}r.restore(),i=j=null}:function(a,b,c,d,e,f){a.getContext("2d").drawImage(b,c,d,e,f)}}()})}),b("runtime/html5/transport",["base","runtime/html5/runtime"],function(a,b){var c=a.noop,d=a.$;return b.register("Transport",{init:function(){this._status=0,this._response=null},send:function(){var b,c,e,f=this.owner,g=this.options,h=this._initAjax(),i=f._blob,j=g.server;g.sendAsBinary?(j+=(/\?/.test(j)?"&":"?")+d.param(f._formData),c=i.getSource()):(b=new FormData,d.each(f._formData,function(a,c){b.append(a,c)}),b.append(g.fileVal,i.getSource(),g.filename||f._formData.name||"")),g.withCredentials&&"withCredentials"in h?(h.open(g.method,j,!0),h.withCredentials=!0):h.open(g.method,j),this._setRequestHeader(h,g.headers),c?(h.overrideMimeType("application/octet-stream"),a.os.android?(e=new FileReader,e.onload=function(){h.send(this.result),e=e.onload=null},e.readAsArrayBuffer(c)):h.send(c)):h.send(b)},getResponse:function(){return this._response},getResponseAsJson:function(){return this._parseJson(this._response)},getStatus:function(){return this._status},abort:function(){var a=this._xhr;a&&(a.upload.onprogress=c,a.onreadystatechange=c,a.abort(),this._xhr=a=null)},destroy:function(){this.abort()},_initAjax:function(){var a=this,b=new XMLHttpRequest,d=this.options;return!d.withCredentials||"withCredentials"in b||"undefined"==typeof XDomainRequest||(b=new XDomainRequest),b.upload.onprogress=function(b){var c=0;return b.lengthComputable&&(c=b.loaded/b.total),a.trigger("progress",c)},b.onreadystatechange=function(){return 4===b.readyState?(b.upload.onprogress=c,b.onreadystatechange=c,a._xhr=null,a._status=b.status,b.status>=200&&b.status<300?(a._response=b.responseText,a.trigger("load")):b.status>=500&&b.status<600?(a._response=b.responseText,a.trigger("error","server")):a.trigger("error",a._status?"http":"abort")):void 0},a._xhr=b,b},_setRequestHeader:function(a,b){d.each(b,function(b,c){a.setRequestHeader(b,c)})},_parseJson:function(a){var b;try{b=JSON.parse(a)}catch(c){b={}}return b}})}),b("runtime/flash/runtime",["base","runtime/runtime","runtime/compbase"],function(b,c,d){function e(){var a;try{a=navigator.plugins["Shockwave Flash"],a=a.description}catch(b){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(c){a="0.0"}}return a=a.match(/\d+/g),parseFloat(a[0]+"."+a[1],10)}function f(){function d(a,b){var c,d,e=a.type||a;c=e.split("::"),d=c[0],e=c[1],"Ready"===e&&d===j.uid?j.trigger("ready"):f[d]&&f[d].trigger(e.toLowerCase(),a,b)}var e={},f={},g=this.destory,j=this,k=b.guid("webuploader_");c.apply(j,arguments),j.type=h,j.exec=function(a,c){var d,g=this,h=g.uid,k=b.slice(arguments,2);return f[h]=g,i[a]&&(e[h]||(e[h]=new i[a](g,j)),d=e[h],d[c])?d[c].apply(d,k):j.flashExec.apply(g,arguments)},a[k]=function(){var a=arguments;setTimeout(function(){d.apply(null,a)},1)},this.jsreciver=k,this.destory=function(){return g&&g.apply(this,arguments)},this.flashExec=function(a,c){var d=j.getFlash(),e=b.slice(arguments,2);return d.exec(this.uid,a,c,e)}}var g=b.$,h="flash",i={};return b.inherits(c,{constructor:f,init:function(){var a,c=this.getContainer(),d=this.options;c.css({position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"}),a='',c.html(a)},getFlash:function(){return this._flash?this._flash:(this._flash=g("#"+this.uid).get(0),this._flash)}}),f.register=function(a,c){return c=i[a]=b.inherits(d,g.extend({flashExec:function(){var a=this.owner,b=this.getRuntime();return b.flashExec.apply(a,arguments)}},c))},e()>=11.4&&c.addRuntime(h,f),f}),b("runtime/flash/filepicker",["base","runtime/flash/runtime"],function(a,b){var c=a.$;return b.register("FilePicker",{init:function(a){var b,d,e=c.extend({},a);for(b=e.accept&&e.accept.length,d=0;b>d;d++)e.accept[d].title||(e.accept[d].title="Files");delete e.button,delete e.container,this.flashExec("FilePicker","init",e)},destroy:function(){}})}),b("runtime/flash/image",["runtime/flash/runtime"],function(a){return a.register("Image",{loadFromBlob:function(a){var b=this.owner;b.info()&&this.flashExec("Image","info",b.info()),b.meta()&&this.flashExec("Image","meta",b.meta()),this.flashExec("Image","loadFromBlob",a.uid)}})}),b("runtime/flash/transport",["base","runtime/flash/runtime","runtime/client"],function(a,b,c){var d=a.$;return b.register("Transport",{init:function(){this._status=0,this._response=null,this._responseJson=null},send:function(){var a,b=this.owner,c=this.options,e=this._initAjax(),f=b._blob,g=c.server;e.connectRuntime(f.ruid),c.sendAsBinary?(g+=(/\?/.test(g)?"&":"?")+d.param(b._formData),a=f.uid):(d.each(b._formData,function(a,b){e.exec("append",a,b)}),e.exec("appendBlob",c.fileVal,f.uid,c.filename||b._formData.name||"")),this._setRequestHeader(e,c.headers),e.exec("send",{method:c.method,url:g},a)},getStatus:function(){return this._status},getResponse:function(){return this._response},getResponseAsJson:function(){return this._responseJson},abort:function(){var a=this._xhr;a&&(a.exec("abort"),a.destroy(),this._xhr=a=null)},destroy:function(){this.abort()},_initAjax:function(){var a=this,b=new c("XMLHttpRequest");return b.on("uploadprogress progress",function(b){return a.trigger("progress",b.loaded/b.total)}),b.on("load",function(){var c=b.exec("getStatus"),d="";return b.off(),a._xhr=null,c>=200&&300>c?(a._response=b.exec("getResponse"),a._responseJson=b.exec("getResponseAsJson")):c>=500&&600>c?(a._response=b.exec("getResponse"),a._responseJson=b.exec("getResponseAsJson"),d="server"):d="http",b.destroy(),b=null,d?a.trigger("error",d):a.trigger("load")}),b.on("error",function(){b.off(),a._xhr=null,a.trigger("error","http")}),a._xhr=b,b},_setRequestHeader:function(a,b){d.each(b,function(b,c){a.exec("setRequestHeader",b,c)})}})}),b("preset/all",["base","widgets/filednd","widgets/filepaste","widgets/filepicker","widgets/image","widgets/queue","widgets/runtime","widgets/upload","widgets/validator","runtime/html5/blob","runtime/html5/dnd","runtime/html5/filepaste","runtime/html5/filepicker","runtime/html5/imagemeta/exif","runtime/html5/androidpatch","runtime/html5/image","runtime/html5/transport","runtime/flash/filepicker","runtime/flash/image","runtime/flash/transport"],function(a){return a}),b("webuploader",["preset/all"],function(a){return a}),c("webuploader")}); \ No newline at end of file diff --git a/src/main/webapp/static/ueditor1_4_3_3/ueditor.all.js b/src/main/webapp/static/ueditor1_4_3_3/ueditor.all.js index a0d9553..089813b 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/ueditor.all.js +++ b/src/main/webapp/static/ueditor1_4_3_3/ueditor.all.js @@ -8011,7 +8011,7 @@ var fillCharReg = new RegExp(domUtils.fillChar, 'g'); * @example * ```javascript * editor.getActionUrl('config'); //返回 "/ueditor/php/controller.php?action=config" - * editor.getActionUrl('image'); //返回 "/ueditor/php/controller.php?action=uplaodimage" + * editor.getActionUrl('images'); //返回 "/ueditor/php/controller.php?action=uplaodimage" * editor.getActionUrl('scrawl'); //返回 "/ueditor/php/controller.php?action=uplaodscrawl" * editor.getActionUrl('imageManager'); //返回 "/ueditor/php/controller.php?action=listimage" * ``` @@ -10923,7 +10923,7 @@ UE.plugin.register('background', function () { } }); -// plugins/image.js +// plugins/images.js /** * 图片插入、排版插件 * @file @@ -15001,11 +15001,11 @@ UE.plugins['list'] = function () { var customCss = []; for(var p in customStyle){ if(p == 'dash' || p == 'dot'){ - customCss.push('li.list-' + customStyle[p] + '{background-image:url(' + liiconpath +customStyle[p]+'.gif)}'); + customCss.push('li.list-' + customStyle[p] + '{background-images:url(' + liiconpath +customStyle[p]+'.gif)}'); customCss.push('ul.custom_'+p+'{list-style:none;}ul.custom_'+p+' li{background-position:0 3px;background-repeat:no-repeat}'); }else{ for(var i= 0;i<99;i++){ - customCss.push('li.list-' + customStyle[p] + i + '{background-image:url(' + liiconpath + 'list-'+customStyle[p] + i + '.gif)}') + customCss.push('li.list-' + customStyle[p] + i + '{background-images:url(' + liiconpath + 'list-'+customStyle[p] + i + '.gif)}') } customCss.push('ol.custom_'+p+'{list-style:none;}ol.custom_'+p+' li{background-position:0 3px;background-repeat:no-repeat}'); } @@ -20725,7 +20725,7 @@ UE.plugins['table'] = function () { dragButton = doc.createElement("div"); dragButton.contentEditable = false; dragButton.innerHTML = ""; - dragButton.style.cssText = "width:15px;height:15px;background-image:url(" + editor.options.UEDITOR_HOME_URL + "dialogs/table/dragicon.png);position: absolute;cursor:move;top:" + (pos.y - 15) + "px;left:" + (pos.x) + "px;"; + dragButton.style.cssText = "width:15px;height:15px;background-images:url(" + editor.options.UEDITOR_HOME_URL + "dialogs/table/dragicon.png);position: absolute;cursor:move;top:" + (pos.y - 15) + "px;left:" + (pos.x) + "px;"; domUtils.unSelectable(dragButton); dragButton.onmouseover = function (evt) { dragOver = true; @@ -21630,7 +21630,7 @@ UE.plugins['table'] = function () { 'onresizestart':'return false', 'ondragstart':'return false', 'onselectstart':'return false', - style:"background-color:blue;position:absolute;padding:0;margin:0;background-image:none;border:0px none;opacity:0;filter:alpha(opacity=0)" + style:"background-color:blue;position:absolute;padding:0;margin:0;background-images:none;border:0px none;opacity:0;filter:alpha(opacity=0)" }); editor.body.appendChild(dragLine); } @@ -21849,7 +21849,7 @@ UE.plugins['tablesort'] = function () { //添加表格可排序的样式 utils.cssRule('tablesort', 'table.sortEnabled tr.firstRow th,table.sortEnabled tr.firstRow td{padding-right:20px;background-repeat: no-repeat;background-position: center right;' + - ' background-image:url(' + me.options.themePath + me.options.theme + '/images/sortable.png);}', + ' background-images:url(' + me.options.themePath + me.options.theme + '/images/sortable.png);}', me.document); //做单元格合并操作时,清除可排序标识 @@ -23819,7 +23819,7 @@ UE.plugin.register('autoupload', function (){ params = utils.serializeParam(me.queryCommandValue('serverparam')) || '', url = utils.formatUrl(actionUrl + (actionUrl.indexOf('?') == -1 ? '?':'&') + params); - fd.append(fieldName, file, file.name || ('blob.' + file.type.substr('image/'.length))); + fd.append(fieldName, file, file.name || ('blob.' + file.type.substr('images/'.length))); fd.append('type', 'ajax'); xhr.open("post", url, true); xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); @@ -24483,7 +24483,7 @@ UE.plugin.register('simpleupload', function (){ wrapper.innerHTML = '
' + - '' + '
' + ''; @@ -27801,7 +27801,7 @@ UE.ui = baidu.editor.ui = {}; var iframeUrlMap = { 'anchor':'~/dialogs/anchor/anchor.html', - 'insertimage':'~/dialogs/image/image.html', + 'insertimage':'~/dialogs/images/images.html', 'link':'~/dialogs/link/link.html', 'spechars':'~/dialogs/spechars/spechars.html', 'searchreplace':'~/dialogs/searchreplace/searchreplace.html', diff --git a/src/main/webapp/static/ueditor1_4_3_3/ueditor.all.min.js b/src/main/webapp/static/ueditor1_4_3_3/ueditor.all.min.js index b2d1b22..9bacde5 100755 --- a/src/main/webapp/static/ueditor1_4_3_3/ueditor.all.min.js +++ b/src/main/webapp/static/ueditor1_4_3_3/ueditor.all.min.js @@ -14,5 +14,5 @@ null===d?d=this.scrollY:0==this.scrollY&&0!=d&&(b.window.scrollTo(0,0),d=null)}} if(d.selectedTds.length)for(var g=d.cellsRange,i=0,j=g.endColIndex-g.beginColIndex+1;j>i;i++)d.insertCol(g.endColIndex+1,c);else d.insertCol(f.colIndex+f.colSpan,c);a.moveToBookmark(b).select()}},UE.commands.deletecol={queryCommandState:function(){var a=e(this);return a.cell?0:-1},execCommand:function(){var a=e(this).cell,b=h(a),c=b.cellsRange,d=b.getCellInfo(a),f=b.getHSideCell(a),g=b.getHSideCell(a,!0);if(utils.isEmptyObject(c))b.deleteCol(d.colIndex);else for(var i=c.beginColIndex;i0?-1:b&&(b.colSpan>1||b.rowSpan>1)?0:-1},execCommand:function(){var a=this.selection.getRange(),b=a.createBookmark(!0),c=e(this).cell,d=h(c);d.splitToCells(c),a.moveToBookmark(b).select()}},UE.commands.splittorows={queryCommandState:function(){var a=e(this),b=a.cell;if(!b)return-1;var c=h(a.table);return c.selectedTds.length>0?-1:b&&b.rowSpan>1?0:-1},execCommand:function(){var a=this.selection.getRange(),b=a.createBookmark(!0),c=e(this).cell,d=h(c);d.splitToRows(c),a.moveToBookmark(b).select()}},UE.commands.splittocols={queryCommandState:function(){var a=e(this),b=a.cell;if(!b)return-1;var c=h(a.table);return c.selectedTds.length>0?-1:b&&b.colSpan>1?0:-1},execCommand:function(){var a=this.selection.getRange(),b=a.createBookmark(!0),c=e(this).cell,d=h(c);d.splitToCols(c),a.moveToBookmark(b).select()}},UE.commands.adaptbytext=UE.commands.adaptbywindow={queryCommandState:function(){return e(this).table?0:-1},execCommand:function(b){var c=e(this),d=c.table;if(d)if("adaptbywindow"==b)a(d,this);else{var f=domUtils.getElementsByTagName(d,"td th");utils.each(f,function(a){a.removeAttribute("width")}),d.removeAttribute("width")}}},UE.commands.averagedistributecol={queryCommandState:function(){var a=f(this);return a&&(a.isFullRow()||a.isFullCol())?0:-1},execCommand:function(a){function b(){var a,b=e.table,c=0,f=0,h=g(d,b);if(e.isFullRow())c=b.offsetWidth,f=e.colsNum;else for(var i,j=e.cellsRange.beginColIndex,k=e.cellsRange.endColIndex,l=j;k>=l;)i=e.selectedTds[l],c+=i.offsetWidth,l+=i.colSpan,f+=1;return a=Math.ceil(c/f)-2*h.tdBorder-2*h.tdPadding}function c(a){utils.each(domUtils.getElementsByTagName(e.table,"th"),function(a){a.setAttribute("width","")});var b=e.isFullRow()?domUtils.getElementsByTagName(e.table,"td"):e.selectedTds;utils.each(b,function(b){1==b.colSpan&&b.setAttribute("width",a)})}var d=this,e=f(d);e&&e.selectedTds.length&&c(b())}},UE.commands.averagedistributerow={queryCommandState:function(){var a=f(this);return a?a.selectedTds&&/th/gi.test(a.selectedTds[0].tagName)?-1:a.isFullRow()||a.isFullCol()?0:-1:-1},execCommand:function(a){function b(){var a,b,c=0,f=e.table,h=g(d,f),i=parseInt(domUtils.getComputedStyle(f.getElementsByTagName("td")[0],"padding-top"));if(e.isFullCol()){var j,k,l=domUtils.getElementsByTagName(f,"caption"),m=domUtils.getElementsByTagName(f,"th");l.length>0&&(j=l[0].offsetHeight),m.length>0&&(k=m[0].offsetHeight),c=f.offsetHeight-(j||0)-(k||0),b=0==m.length?e.rowsNum:e.rowsNum-1}else{for(var n=e.cellsRange.beginRowIndex,o=e.cellsRange.endRowIndex,p=0,q=domUtils.getElementsByTagName(f,"tr"),r=n;o>=r;r++)c+=q[r].offsetHeight,p+=1;b=p}return a=browser.ie&&browser.version<9?Math.ceil(c/b):Math.ceil(c/b)-2*h.tdBorder-2*i}function c(a){var b=e.isFullCol()?domUtils.getElementsByTagName(e.table,"td"):e.selectedTds;utils.each(b,function(b){1==b.rowSpan&&b.setAttribute("height",a)})}var d=this,e=f(d);e&&e.selectedTds.length&&c(b())}},UE.commands.cellalignment={queryCommandState:function(){return e(this).table?0:-1},execCommand:function(a,b){var c=this,d=f(c);if(d)utils.each(d.selectedTds,function(a){domUtils.setAttributes(a,b)});else{var e=c.selection.getStart(),g=e&&domUtils.findParentByTagName(e,["td","th","caption"],!0);/caption/gi.test(g.tagName)?(g.style.textAlign=b.align,g.style.verticalAlign=b.vAlign):domUtils.setAttributes(g,b),c.selection.getRange().setCursor(!0)}},queryCommandValue:function(a){var b=e(this).cell;if(b||(b=c(this)[0]),b){var d=UE.UETable.getUETable(b).selectedTds;return!d.length&&(d=b),UE.UETable.getTableCellAlignState(d)}return null}},UE.commands.tablealignment={queryCommandState:function(){return browser.ie&&browser.version<8?-1:e(this).table?0:-1},execCommand:function(a,b){var c=this,d=c.selection.getStart(),e=d&&domUtils.findParentByTagName(d,["table"],!0);e&&e.setAttribute("align",b)}},UE.commands.edittable={queryCommandState:function(){return e(this).table?0:-1},execCommand:function(a,b){var c=this.selection.getRange(),d=domUtils.findParentByTagName(c.startContainer,"table");if(d){var e=domUtils.getElementsByTagName(d,"td").concat(domUtils.getElementsByTagName(d,"th"),domUtils.getElementsByTagName(d,"caption"));utils.each(e,function(a){a.style.borderColor=b})}}},UE.commands.edittd={queryCommandState:function(){return e(this).table?0:-1},execCommand:function(a,b){var c=this,d=f(c);if(d)utils.each(d.selectedTds,function(a){a.style.backgroundColor=b});else{var e=c.selection.getStart(),g=e&&domUtils.findParentByTagName(e,["td","th","caption"],!0);g&&(g.style.backgroundColor=b)}}},UE.commands.settablebackground={queryCommandState:function(){return c(this).length>1?0:-1},execCommand:function(a,b){var d,e;d=c(this),e=h(d[0]),e.setBackground(d,b)}},UE.commands.cleartablebackground={queryCommandState:function(){var a=c(this);if(!a.length)return-1;for(var b,d=0;b=a[d++];)if(""!==b.style.backgroundColor)return 0;return-1},execCommand:function(){var a=c(this),b=h(a[0]);b.removeBackground(a)}},UE.commands.interlacetable=UE.commands.uninterlacetable={queryCommandState:function(a){var b=e(this).table;if(!b)return-1;var c=b.getAttribute("interlaced");return"interlacetable"==a?"enabled"===c?-1:0:c&&"disabled"!==c?0:-1},execCommand:function(a,b){var c=e(this).table;"interlacetable"==a?(c.setAttribute("interlaced","enabled"),this.fireEvent("interlacetable",c,b)):(c.setAttribute("interlaced","disabled"),this.fireEvent("uninterlacetable",c))}},UE.commands.setbordervisible={queryCommandState:function(a){var b=e(this).table;return b?0:-1},execCommand:function(){var a=e(this).table;utils.each(domUtils.getElementsByTagName(a,"td"),function(a){a.style.borderWidth="1px",a.style.borderStyle="solid"})}}}(),UE.plugins.table=function(){function a(a){}function b(a,b){c(a,"width",!0),c(a,"height",!0)}function c(a,b,c){a.style[b]&&(c&&a.setAttribute(b,parseInt(a.style[b],10)),a.style[b]="")}function d(a){if("TD"==a.tagName||"TH"==a.tagName)return a;var b;return(b=domUtils.findParentByTagName(a,"td",!0)||domUtils.findParentByTagName(a,"th",!0))?b:null}function e(a){var b=new RegExp(domUtils.fillChar,"g");if(a[browser.ie?"innerText":"textContent"].replace(/^\s*$/,"").replace(b,"").length>0)return 0;for(var c in dtd.$isNotEmpty)if(a.getElementsByTagName(c).length)return 0;return 1}function f(a){return a.pageX||a.pageY?{x:a.pageX,y:a.pageY}:{x:a.clientX+N.document.body.scrollLeft-N.document.body.clientLeft,y:a.clientY+N.document.body.scrollTop-N.document.body.clientTop}}function g(b){if(!A())try{var c,e=d(b.target||b.srcElement);if(R&&(N.body.style.webkitUserSelect="none",(Math.abs(V.x-b.clientX)>T||Math.abs(V.y-b.clientY)>T)&&(t(),R=!1,U=0,v(b))),ca&&ha)return U=0,N.body.style.webkitUserSelect="none",N.selection.getNative()[browser.ie9below?"empty":"removeAllRanges"](),c=f(b),m(N,!0,ca,c,e),void("h"==ca?ga.style.left=k(ha,b)+"px":"v"==ca&&(ga.style.top=l(ha,b)+"px"));if(e){if(N.fireEvent("excludetable",e)===!0)return;c=f(b);var g=n(e,c),i=domUtils.findParentByTagName(e,"table",!0);if(j(i,e,b,!0)){if(N.fireEvent("excludetable",i)===!0)return;N.body.style.cursor="url("+N.options.cursorpath+"h.png),pointer"}else if(j(i,e,b)){if(N.fireEvent("excludetable",i)===!0)return;N.body.style.cursor="url("+N.options.cursorpath+"v.png),pointer"}else{N.body.style.cursor="text";/\d/.test(g)&&(g=g.replace(/\d/,""),e=Y(e).getPreviewCell(e,"v"==g)),m(N,e?!!g:!1,e?g:"",c,e)}}else h(!1,i,N)}catch(o){a(o)}}function h(a,b,c){if(a)i(b,c);else{if(fa)return;la=setTimeout(function(){!fa&&ea&&ea.parentNode&&ea.parentNode.removeChild(ea)},2e3)}}function i(a,b){function c(c,d){clearTimeout(g),g=setTimeout(function(){b.fireEvent("tableClicked",a,d)},300)}function d(c){clearTimeout(g);var d=Y(a),e=a.rows[0].cells[0],f=d.getLastCell(),h=d.getCellsRange(e,f);b.selection.getRange().setStart(e,0).setCursor(!1,!0),d.setSelected(h)}var e=domUtils.getXY(a),f=a.ownerDocument;if(ea&&ea.parentNode)return ea;ea=f.createElement("div"),ea.contentEditable=!1,ea.innerHTML="",ea.style.cssText="width:15px;height:15px;background-image:url("+b.options.UEDITOR_HOME_URL+"dialogs/table/dragicon.png);position: absolute;cursor:move;top:"+(e.y-15)+"px;left:"+e.x+"px;",domUtils.unSelectable(ea),ea.onmouseover=function(a){fa=!0},ea.onmouseout=function(a){fa=!1},domUtils.on(ea,"click",function(a,b){c(b,this)}),domUtils.on(ea,"dblclick",function(a,b){d(b)}),domUtils.on(ea,"dragstart",function(a,b){domUtils.preventDefault(b)});var g;f.body.appendChild(ea)}function j(a,b,c,d){var e=f(c),g=n(b,e);if(d){var h=a.getElementsByTagName("caption")[0],i=h?h.offsetHeight:0;return"v1"==g&&e.y-domUtils.getXY(a).y-i<8}return"h1"==g&&e.x-domUtils.getXY(a).x<8}function k(a,b){var c=Y(a);if(c){var d=c.getSameEndPosCells(a,"x")[0],e=c.getSameStartPosXCells(a)[0],g=f(b).x,h=(d?domUtils.getXY(d).x:domUtils.getXY(c.table).x)+20,i=e?domUtils.getXY(e).x+e.offsetWidth-20:N.body.offsetWidth+5||parseInt(domUtils.getComputedStyle(N.body,"width"),10);return h+=Q,i-=Q,h>g?h:g>i?i:g}}function l(b,c){try{var d=domUtils.getXY(b).y,e=f(c).y;return d>e?d:e}catch(g){a(g)}}function m(b,c,d,e,f){try{b.body.style.cursor="h"==d?"col-resize":"v"==d?"row-resize":"text",browser.ie&&(!d||ia||Z(b)?I(b):(H(b,b.document),J(d,f))),da=c}catch(g){a(g)}}function n(a,b){var c=domUtils.getXY(a);return c?c.x+a.offsetWidth-b.xk[c]?(a=!1,!1):void l.push(d)});var b=a?l:k;utils.each(i,function(a,c){a.width=b[c]-G()})},0)}}}}function q(a){if(_(domUtils.getElementsByTagName(N.body,"td th")),utils.each(N.document.getElementsByTagName("table"),function(a){a.ueTable=null}),aa=M(N,a)){var b=domUtils.findParentByTagName(aa,"table",!0);ut=Y(b),ut&&ut.clearSelected(),da?r(a):(N.document.body.style.webkitUserSelect="",ia=!0,N.addListener("mouseover",x))}}function r(a){browser.ie&&(a=u(a)),t(),R=!0,O=setTimeout(function(){v(a)},W)}function s(a,b){for(var c=[],d=null,e=0,f=a.length;f>e;e++)d=a[e][b],d&&c.push(d);return c}function t(){O&&clearTimeout(O),O=null}function u(a){var b=["pageX","pageY","clientX","clientY","srcElement","target"],c={};if(a)for(var d,e,f=0;d=b[f];f++)e=a[d],e&&(c[d]=e);return c}function v(a){if(R=!1,aa=a.target||a.srcElement){var b=n(aa,f(a));/\d/.test(b)&&(b=b.replace(/\d/,""),aa=Y(aa).getPreviewCell(aa,"v"==b)),I(N),H(N,N.document),N.fireEvent("saveScene"),J(b,aa),ia=!0,ca=b,ha=aa}}function w(a,b){if(!A()){if(t(),R=!1,da&&(U=++U%3,V={x:b.clientX,y:b.clientY},P=setTimeout(function(){U>0&&U--},W),2===U))return U=0,void p(b);if(2!=b.button){var c=this,d=c.selection.getRange(),e=domUtils.findParentByTagName(d.startContainer,"table",!0),f=domUtils.findParentByTagName(d.endContainer,"table",!0);if((e||f)&&(e===f?(e=domUtils.findParentByTagName(d.startContainer,["td","th","caption"],!0),f=domUtils.findParentByTagName(d.endContainer,["td","th","caption"],!0),e!==f&&c.selection.clearRange()):c.selection.clearRange()),ia=!1,c.document.body.style.webkitUserSelect="",ca&&ha&&(c.selection.getNative()[browser.ie9below?"empty":"removeAllRanges"](),U=0,ga=c.document.getElementById("ue_tableDragLine"))){var g=domUtils.getXY(ha),h=domUtils.getXY(ga);switch(ca){case"h":z(ha,h.x-g.x);break;case"v":B(ha,h.y-g.y-ha.offsetHeight)}return ca="",ha=null,I(c),void c.fireEvent("saveScene")}if(aa){var i=Y(aa),j=i?i.selectedTds[0]:null;if(j)d=new dom.Range(c.document),domUtils.isEmptyBlock(j)?d.setStart(j,0).setCursor(!1,!0):d.selectNodeContents(j).shrinkBoundary().setCursor(!1,!0);else if(d=c.selection.getRange().shrinkBoundary(),!d.collapsed){var e=domUtils.findParentByTagName(d.startContainer,["td","th"],!0),f=domUtils.findParentByTagName(d.endContainer,["td","th"],!0);(e&&!f||!e&&f||e&&f&&e!==f)&&d.setCursor(!1,!0)}aa=null,c.removeListener("mouseover",x)}else{var k=domUtils.findParentByTagName(b.target||b.srcElement,"td",!0);if(k||(k=domUtils.findParentByTagName(b.target||b.srcElement,"th",!0)),k&&("TD"==k.tagName||"TH"==k.tagName)){if(c.fireEvent("excludetable",k)===!0)return;d=new dom.Range(c.document),d.setStart(k,0).setCursor(!1,!0)}}c._selectionChange(250,b)}}}function x(a,b){if(!A()){var c=this,d=b.target||b.srcElement;if(ba=domUtils.findParentByTagName(d,"td",!0)||domUtils.findParentByTagName(d,"th",!0),aa&&ba&&("TD"==aa.tagName&&"TD"==ba.tagName||"TH"==aa.tagName&&"TH"==ba.tagName)&&domUtils.findParentByTagName(aa,"table")==domUtils.findParentByTagName(ba,"table")){var e=Y(ba);if(aa!=ba){c.document.body.style.webkitUserSelect="none",c.selection.getNative()[browser.ie9below?"empty":"removeAllRanges"]();var f=e.getCellsRange(aa,ba);e.setSelected(f)}else c.document.body.style.webkitUserSelect="",e.clearSelected()}b.preventDefault?b.preventDefault():b.returnValue=!1}}function y(a,b,c){var d=parseInt(domUtils.getComputedStyle(a,"line-height"),10),e=c+b;b=d>e?d:e,a.style.height&&(a.style.height=""),1==a.rowSpan?a.setAttribute("height",b):a.removeAttribute&&a.removeAttribute("height")}function z(a,b){var c=Y(a);if(c){var d=c.table,e=C(a,d);if(d.style.width="",d.removeAttribute("width"),b=D(b,a,e),a.nextSibling){utils.each(e,function(a){a.left.width=+a.left.width+b,a.right&&(a.right.width=+a.right.width-b)})}else utils.each(e,function(a){a.left.width-=-b})}}function A(){return"false"===N.body.contentEditable}function B(a,b){if(!(Math.abs(b)<10)){var c=Y(a);if(c)for(var d,e=c.getSameEndPosCells(a,"y"),f=e[0]?e[0].offsetHeight:0,g=0;d=e[g++];)y(d,b,f)}}function C(a,b,c){if(b||(b=domUtils.findParentByTagName(a,"table")),!b)return null;for(var d=(domUtils.getNodeIndex(a),a),e=b.rows,f=0;d;)1===d.nodeType&&(f+=d.colSpan||1),d=d.previousSibling;d=null;var g=[];return utils.each(e,function(a){var b=a.cells,d=0;utils.each(b,function(a){return d+=a.colSpan||1,d===f?(g.push({left:a,right:a.nextSibling||null}),!1):d>f?(c&&g.push({left:a}),!1):void 0})}),g}function D(a,b,c){if(a-=G(),0>a)return 0;a-=E(b);var d=0>a?"left":"right";return a=Math.abs(a),utils.each(c,function(b){var c=b[d];c&&(a=Math.min(a,E(c)-Q))}),a=0>a?0:a,"left"===d?-a:a}function E(a){var b=0,b=a.offsetWidth-G();a.nextSibling||(b-=F(a)),b=0>b?0:b;try{a.width=b}catch(c){}return b}function F(a){if(tab=domUtils.findParentByTagName(a,"table",!1),void 0===tab.offsetVal){var b=a.previousSibling;b?tab.offsetVal=a.offsetWidth-b.offsetWidth===X.borderWidth?X.borderWidth:0:tab.offsetVal=0}return tab.offsetVal}function G(){if(void 0===X.tabcellSpace){var a=N.document.createElement("table"),b=N.document.createElement("tbody"),c=N.document.createElement("tr"),d=N.document.createElement("td"),e=null;d.style.cssText="border: 0;",d.width=1,c.appendChild(d),c.appendChild(e=d.cloneNode(!1)),b.appendChild(c),a.appendChild(b),a.style.cssText="visibility: hidden;",N.body.appendChild(a),X.paddingSpace=d.offsetWidth-1;var f=a.offsetWidth;d.style.cssText="",e.style.cssText="",X.borderWidth=(a.offsetWidth-f)/3,X.tabcellSpace=X.paddingSpace+X.borderWidth,N.body.removeChild(a)}return G=function(){return X.tabcellSpace},X.tabcellSpace}function H(a,b){ia||(ga=a.document.createElement("div"),domUtils.setAttributes(ga,{id:"ue_tableDragLine",unselectable:"on",contenteditable:!1,onresizestart:"return false",ondragstart:"return false",onselectstart:"return false",style:"background-color:blue;position:absolute;padding:0;margin:0;background-image:none;border:0px none;opacity:0;filter:alpha(opacity=0)"}),a.body.appendChild(ga))}function I(a){if(!ia)for(var b;b=a.document.getElementById("ue_tableDragLine");)domUtils.remove(b)}function J(a,b){if(b){var c,d=domUtils.findParentByTagName(b,"table"),e=d.getElementsByTagName("caption"),f=d.offsetWidth,g=d.offsetHeight-(e.length>0?e[0].offsetHeight:0),h=domUtils.getXY(d),i=domUtils.getXY(b);switch(a){case"h":c="height:"+g+"px;top:"+(h.y+(e.length>0?e[0].offsetHeight:0))+"px;left:"+(i.x+b.offsetWidth),ga.style.cssText=c+"px;position: absolute;display:block;background-color:blue;width:1px;border:0; color:blue;opacity:.3;filter:alpha(opacity=30)";break;case"v":c="width:"+f+"px;left:"+h.x+"px;top:"+(i.y+b.offsetHeight),ga.style.cssText=c+"px;overflow:hidden;position: absolute;display:block;background-color:blue;height:1px;border:0;color:blue;opacity:.2;filter:alpha(opacity=20)"}}}function K(a,b){for(var c,d,e=domUtils.getElementsByTagName(a.body,"table"),f=0;d=e[f++];){var g=domUtils.getElementsByTagName(d,"td");g[0]&&(b?(c=g[0].style.borderColor.replace(/\s/g,""),/(#ffffff)|(rgb\(255,255,255\))/gi.test(c)&&domUtils.addClass(d,"noBorderTable")):domUtils.removeClasses(d,"noBorderTable"))}}function L(a,b,c){var d=a.body;return d.offsetWidth-(b?2*parseInt(domUtils.getComputedStyle(d,"margin-left"),10):0)-2*c.tableBorder-(a.options.offsetWidth||0)}function M(a,b){var c=domUtils.findParentByTagName(b.target||b.srcElement,["td","th"],!0),d=null;if(!c)return null;if(d=n(c,f(b)),!c)return null;if("h1"===d&&c.previousSibling){var e=domUtils.getXY(c),g=c.offsetWidth;Math.abs(e.x+g-b.clientX)>g/3&&(c=c.previousSibling)}else if("v1"===d&&c.parentNode.previousSibling){var e=domUtils.getXY(c),h=c.offsetHeight;Math.abs(e.y+h-b.clientY)>h/3&&(c=c.parentNode.previousSibling.firstChild)}return c&&a.fireEvent("excludetable",c)!==!0?c:null}var N=this,O=null,P=null,Q=5,R=!1,S=5,T=10,U=0,V=null,W=360,X=UE.UETable,Y=function(a){return X.getUETable(a)},Z=function(a){return X.getUETableBySelected(a)},$=function(a,b){return X.getDefaultValue(a,b)},_=function(a){return X.removeSelectedClass(a)};N.ready(function(){var a=this,b=a.selection.getText;a.selection.getText=function(){var c=Z(a);if(c){var d="";return utils.each(c.selectedTds,function(a){d+=a[browser.ie?"innerText":"textContent"]}),d}return b.call(a.selection)}});var aa=null,ba=null,ca="",da=!1,ea=null,fa=!1,ga=null,ha=null,ia=!1,ja=!0;N.setOpt({maxColNum:20,maxRowNum:100,defaultCols:5,defaultRows:5,tdvalign:"top",cursorpath:N.options.UEDITOR_HOME_URL+"themes/default/images/cursor_",tableDragable:!1,classList:["ue-table-interlace-color-single","ue-table-interlace-color-double"]}),N.getUETable=Y;var ka={deletetable:1,inserttable:1,cellvalign:1,insertcaption:1,deletecaption:1,inserttitle:1,deletetitle:1,mergeright:1,mergedown:1,mergecells:1,insertrow:1,insertrownext:1,deleterow:1,insertcol:1,insertcolnext:1,deletecol:1,splittocells:1,splittorows:1,splittocols:1,adaptbytext:1,adaptbywindow:1,adaptbycustomer:1,insertparagraph:1,insertparagraphbeforetable:1,averagedistributecol:1,averagedistributerow:1};N.ready(function(){utils.cssRule("table",".selectTdClass{background-color:#edf5fa !important}table.noBorderTable td,table.noBorderTable th,table.noBorderTable caption{border:1px dashed #ddd !important}table{margin-bottom:10px;border-collapse:collapse;display:table;}td,th{padding: 5px 10px;border: 1px solid #DDD;}caption{border:1px dashed #DDD;border-bottom:0;padding:3px;text-align:center;}th{border-top:1px solid #BBB;background-color:#F7F7F7;}table tr.firstRow th{border-top-width:2px;}.ue-table-interlace-color-single{ background-color: #fcfcfc; } .ue-table-interlace-color-double{ background-color: #f7faff; }td p{margin:0;padding:0;}",N.document);var a,c,f;N.addListener("keydown",function(b,d){var g=this,h=d.keyCode||d.which;if(8==h){var i=Z(g);i&&i.selectedTds.length&&(i.isFullCol()?g.execCommand("deletecol"):i.isFullRow()?g.execCommand("deleterow"):g.fireEvent("delcells"),domUtils.preventDefault(d));var j=domUtils.findParentByTagName(g.selection.getStart(),"caption",!0),k=g.selection.getRange();if(k.collapsed&&j&&e(j)){g.fireEvent("saveScene");var l=j.parentNode;domUtils.remove(j),l&&k.setStart(l.rows[0].cells[0],0).setCursor(!1,!0),g.fireEvent("saveScene")}}if(46==h&&(i=Z(g))){g.fireEvent("saveScene");for(var m,n=0;m=i.selectedTds[n++];)domUtils.fillNode(g.document,m);g.fireEvent("saveScene"),domUtils.preventDefault(d)}if(13==h){var o=g.selection.getRange(),j=domUtils.findParentByTagName(o.startContainer,"caption",!0);if(j){var l=domUtils.findParentByTagName(j,"table");return o.collapsed?j&&o.setStart(l.rows[0].cells[0],0).setCursor(!1,!0):(o.deleteContents(),g.fireEvent("saveScene")),void domUtils.preventDefault(d)}if(o.collapsed){var l=domUtils.findParentByTagName(o.startContainer,"table");if(l){var p=l.rows[0].cells[0],q=domUtils.findParentByTagName(g.selection.getStart(),["td","th"],!0),r=l.previousSibling;if(p===q&&(!r||1==r.nodeType&&"TABLE"==r.tagName)&&domUtils.isStartInblock(o)){var s=domUtils.findParent(g.selection.getStart(),function(a){return domUtils.isBlockElm(a)},!0);s&&(/t(h|d)/i.test(s.tagName)||s===q.firstChild)&&(g.execCommand("insertparagraphbeforetable"),domUtils.preventDefault(d))}}}}if((d.ctrlKey||d.metaKey)&&"67"==d.keyCode){a=null;var i=Z(g);if(i){var t=i.selectedTds;c=i.isFullCol(),f=i.isFullRow(),a=[[i.cloneCell(t[0],null,!0)]];for(var m,n=1;m=t[n];n++)m.parentNode!==t[n-1].parentNode?a.push([i.cloneCell(m,null,!0)]):a[a.length-1].push(i.cloneCell(m,null,!0))}}}),N.addListener("tablehasdeleted",function(){m(this,!1,"",null),ea&&domUtils.remove(ea)}),N.addListener("beforepaste",function(d,g){var h=this,i=h.selection.getRange();if(domUtils.findParentByTagName(i.startContainer,"caption",!0)){var j=h.document.createElement("div");return j.innerHTML=g.html,void(g.html=j[browser.ie9below?"innerText":"textContent"])}var k=Z(h);if(a){h.fireEvent("saveScene");var l,m,i=h.selection.getRange(),n=domUtils.findParentByTagName(i.startContainer,["td","th"],!0);if(n){var o=Y(n);if(f){var p=o.getCellInfo(n).rowIndex;"TH"==n.tagName&&p++;for(var q,r=0;q=a[r++];){for(var s,t=o.insertRow(p++,"td"),u=0;s=q[u];u++){var v=t.cells[u];v||(v=t.insertCell(u)),v.innerHTML=s.innerHTML,s.getAttribute("width")&&v.setAttribute("width",s.getAttribute("width")),s.getAttribute("vAlign")&&v.setAttribute("vAlign",s.getAttribute("vAlign")),s.getAttribute("align")&&v.setAttribute("align",s.getAttribute("align")),s.style.cssText&&(v.style.cssText=s.style.cssText)}for(var s,u=0;(s=t.cells[u])&&q[u];u++)s.innerHTML=q[u].innerHTML,q[u].getAttribute("width")&&s.setAttribute("width",q[u].getAttribute("width")),q[u].getAttribute("vAlign")&&s.setAttribute("vAlign",q[u].getAttribute("vAlign")),q[u].getAttribute("align")&&s.setAttribute("align",q[u].getAttribute("align")),q[u].style.cssText&&(s.style.cssText=q[u].style.cssText)}}else{if(c){y=o.getCellInfo(n);for(var s,w=0,u=0,q=a[0];s=q[u++];)w+=s.colSpan||1;for(h.__hasEnterExecCommand=!0,r=0;w>r;r++)h.execCommand("insertcol");h.__hasEnterExecCommand=!1,n=o.table.rows[0].cells[y.cellIndex],"TH"==n.tagName&&(n=o.table.rows[1].cells[y.cellIndex])}for(var q,r=0;q=a[r++];){l=n;for(var s,u=0;s=q[u++];)if(n)n.innerHTML=s.innerHTML,s.getAttribute("width")&&n.setAttribute("width",s.getAttribute("width")),s.getAttribute("vAlign")&&n.setAttribute("vAlign",s.getAttribute("vAlign")),s.getAttribute("align")&&n.setAttribute("align",s.getAttribute("align")),s.style.cssText&&(n.style.cssText=s.style.cssText),m=n,n=n.nextSibling;else{var x=s.cloneNode(!0);domUtils.removeAttributes(x,["class","rowSpan","colSpan"]),m.parentNode.appendChild(x)}if(n=o.getNextCell(l,!0,!0),!a[r])break;if(!n){var y=o.getCellInfo(l);o.table.insertRow(o.table.rows.length),o.update(),n=o.getVSideCell(l,!0)}}}o.update()}else{k=h.document.createElement("table");for(var q,r=0;q=a[r++];){for(var s,t=k.insertRow(k.rows.length),u=0;s=q[u++];)x=X.cloneCell(s,null,!0),domUtils.removeAttributes(x,["class"]),t.appendChild(x);2==u&&x.rowSpan>1&&(x.rowSpan=1)}var z=$(h),A=h.body.offsetWidth-(ja?2*parseInt(domUtils.getComputedStyle(h.body,"margin-left"),10):0)-2*z.tableBorder-(h.options.offsetWidth||0);h.execCommand("insertHTML",""+k.innerHTML.replace(/>\s*<").replace(/\bth\b/gi,"td")+"
")}return h.fireEvent("contentchange"),h.fireEvent("saveScene"),g.html="",!0}var B,j=h.document.createElement("div");j.innerHTML=g.html,B=j.getElementsByTagName("table"),domUtils.findParentByTagName(h.selection.getStart(),"table")?(utils.each(B,function(a){domUtils.remove(a)}),domUtils.findParentByTagName(h.selection.getStart(),"caption",!0)&&(j.innerHTML=j[browser.ie?"innerText":"textContent"])):utils.each(B,function(a){b(a,!0),domUtils.removeAttributes(a,["style","border"]),utils.each(domUtils.getElementsByTagName(a,"td"),function(a){e(a)&&domUtils.fillNode(h.document,a),b(a,!0)})}),g.html=j.innerHTML}),N.addListener("afterpaste",function(){utils.each(domUtils.getElementsByTagName(N.body,"table"),function(a){if(a.offsetWidth>N.body.offsetWidth){var b=$(N,a);a.style.width=N.body.offsetWidth-(ja?2*parseInt(domUtils.getComputedStyle(N.body,"margin-left"),10):0)-2*b.tableBorder-(N.options.offsetWidth||0)+"px"}})}),N.addListener("blur",function(){a=null});var i;N.addListener("keydown",function(){clearTimeout(i),i=setTimeout(function(){var a=N.selection.getRange(),b=domUtils.findParentByTagName(a.startContainer,["th","td"],!0);if(b){var c=b.parentNode.parentNode.parentNode;c.offsetWidth>c.getAttribute("width")&&(b.style.wordBreak="break-all")}},100)}),N.addListener("selectionchange",function(){m(N,!1,"",null)}),N.addListener("contentchange",function(){var a=this;if(I(a),!Z(a)){var b=a.selection.getRange(),c=b.startContainer;c=domUtils.findParentByTagName(c,["td","th"],!0),utils.each(domUtils.getElementsByTagName(a.document,"table"),function(b){a.fireEvent("excludetable",b)!==!0&&(b.ueTable=new X(b),b.onmouseover=function(){a.fireEvent("tablemouseover",b)},b.onmousemove=function(){a.fireEvent("tablemousemove",b),a.options.tableDragable&&h(!0,this,a),utils.defer(function(){a.fireEvent("contentchange",50)},!0)},b.onmouseout=function(){a.fireEvent("tablemouseout",b),m(a,!1,"",null),I(a)},b.onclick=function(b){b=a.window.event||b;var c=d(b.target||b.srcElement);if(c){var e,f=Y(c),g=f.table,h=f.getCellInfo(c),i=a.selection.getRange();if(j(g,c,b,!0)){var k=f.getCell(f.indexTable[f.rowsNum-1][h.colIndex].rowIndex,f.indexTable[f.rowsNum-1][h.colIndex].cellIndex);return void(b.shiftKey&&f.selectedTds.length?f.selectedTds[0]!==k?(e=f.getCellsRange(f.selectedTds[0],k),f.setSelected(e)):i&&i.selectNodeContents(k).select():c!==k?(e=f.getCellsRange(c,k),f.setSelected(e)):i&&i.selectNodeContents(k).select())}if(j(g,c,b)){var l=f.getCell(f.indexTable[h.rowIndex][f.colsNum-1].rowIndex,f.indexTable[h.rowIndex][f.colsNum-1].cellIndex);b.shiftKey&&f.selectedTds.length?f.selectedTds[0]!==l?(e=f.getCellsRange(f.selectedTds[0],l),f.setSelected(e)):i&&i.selectNodeContents(l).select():c!==l?(e=f.getCellsRange(c,l),f.setSelected(e)):i&&i.selectNodeContents(l).select()}}})}),K(a,!0)}}),domUtils.on(N.document,"mousemove",g),domUtils.on(N.document,"mouseout",function(a){var b=a.target||a.srcElement;"TABLE"==b.tagName&&m(N,!1,"",null)}),N.addListener("interlacetable",function(a,b,c){if(b)for(var d=this,e=b.rows,f=e.length,g=function(a,b,c){return a[b]?a[b]:c?a[b%a.length]:""},h=0;f>h;h++)e[h].className=g(c||d.options.classList,h,!0)}),N.addListener("uninterlacetable",function(a,b){if(b)for(var c=this,d=b.rows,e=c.options.classList,f=d.length,g=0;f>g;g++)domUtils.removeClasses(d[g],e)}),N.addListener("mousedown",o),N.addListener("mouseup",w),domUtils.on(N.body,"dragstart",function(a){w.call(N,"dragstart",a)}),N.addOutputRule(function(a){utils.each(a.getNodesByTagName("div"),function(a){"ue_tableDragLine"==a.getAttr("id")&&a.parentNode.removeChild(a)})});var k=0;N.addListener("mousedown",function(){k=0}),N.addListener("tabkeydown",function(){var a=this.selection.getRange(),b=a.getCommonAncestor(!0,!0),c=domUtils.findParentByTagName(b,"table");if(c){if(domUtils.findParentByTagName(b,"caption",!0)){var d=domUtils.getElementsByTagName(c,"th td");d&&d.length&&a.setStart(d[0],0).setCursor(!1,!0)}else{var d=domUtils.findParentByTagName(b,["td","th"],!0),f=Y(d);k=d.rowSpan>1?k:f.getCellInfo(d).rowIndex;var g=f.getTabNextCell(d,k);g?e(g)?a.setStart(g,0).setCursor(!1,!0):a.selectNodeContents(g).select():(N.fireEvent("saveScene"),N.__hasEnterExecCommand=!0,this.execCommand("insertrownext"),N.__hasEnterExecCommand=!1,a=this.selection.getRange(),a.setStart(c.rows[c.rows.length-1].cells[0],0).setCursor(),N.fireEvent("saveScene"))}return!0}}),browser.ie&&N.addListener("selectionchange",function(){m(this,!1,"",null)}),N.addListener("keydown",function(a,b){var c=this,d=b.keyCode||b.which;if(8!=d&&46!=d){var e=!(b.ctrlKey||b.metaKey||b.shiftKey||b.altKey);e&&_(domUtils.getElementsByTagName(c.body,"td"));var f=Z(c);f&&e&&f.clearSelected()}}),N.addListener("beforegetcontent",function(){K(this,!1),browser.ie&&utils.each(this.document.getElementsByTagName("caption"),function(a){domUtils.isEmptyNode(a)&&(a.innerHTML=" ")})}),N.addListener("aftergetcontent",function(){K(this,!0)}),N.addListener("getAllHtml",function(){_(N.document.getElementsByTagName("td"))}),N.addListener("fullscreenchanged",function(a,b){if(!b){var c=this.body.offsetWidth/document.body.offsetWidth,d=domUtils.getElementsByTagName(this.body,"table");utils.each(d,function(a){if(a.offsetWidthj;j++)e[j]=d[j];e.splice(0,h.beginRowIndex),g=h.endRowIndex+1===this.rowsNum?0:h.endRowIndex+1; }else for(var j=0,i=d.length;i>j;j++)e[j]=d[j];var k={reversecurrent:function(a,b){return 1},orderbyasc:function(a,b){var c=a.innerText||a.textContent,d=b.innerText||b.textContent;return c.localeCompare(d)},reversebyasc:function(a,b){var c=a.innerHTML,d=b.innerHTML;return d.localeCompare(c)},orderbynum:function(a,b){var c=a[browser.ie?"innerText":"textContent"].match(/\d+/),d=b[browser.ie?"innerText":"textContent"].match(/\d+/);return c&&(c=+c[0]),d&&(d=+d[0]),(c||0)-(d||0)},reversebynum:function(a,b){var c=a[browser.ie?"innerText":"textContent"].match(/\d+/),d=b[browser.ie?"innerText":"textContent"].match(/\d+/);return c&&(c=+c[0]),d&&(d=+d[0]),(d||0)-(c||0)}};c.setAttribute("data-sort-type",b&&"string"==typeof b&&k[b]?b:""),f&&e.splice(0,1),e=utils.sort(e,function(c,d){var e;return e=b&&"function"==typeof b?b.call(this,c.cells[a],d.cells[a]):b&&"number"==typeof b?1:b&&"string"==typeof b&&k[b]?k[b].call(this,c.cells[a],d.cells[a]):k.orderbyasc.call(this,c.cells[a],d.cells[a])});for(var l=c.ownerDocument.createDocumentFragment(),m=0,i=e.length;i>m;m++)l.appendChild(e[m]);var n=c.getElementsByTagName("tbody")[0];g?n.insertBefore(l,d[g-h.endRowIndex+h.beginRowIndex-1]):n.appendChild(l)},UE.plugins.tablesort=function(){var a=this,b=UE.UETable,c=function(a){return b.getUETable(a)},d=function(a){return b.getTableItemsByRange(a)};a.ready(function(){utils.cssRule("tablesort","table.sortEnabled tr.firstRow th,table.sortEnabled tr.firstRow td{padding-right:20px;background-repeat: no-repeat;background-position: center right; background-image:url("+a.options.themePath+a.options.theme+"/images/sortable.png);}",a.document),a.addListener("afterexeccommand",function(a,b){"mergeright"!=b&&"mergedown"!=b&&"mergecells"!=b||this.execCommand("disablesort")})}),UE.commands.sorttable={queryCommandState:function(){var a=this,b=d(a);if(!b.cell)return-1;for(var c,e=b.table,f=e.getElementsByTagName("td"),g=0;c=f[g++];)if(1!=c.rowSpan||1!=c.colSpan)return-1;return 0},execCommand:function(a,b){var e=this,f=e.selection.getRange(),g=f.createBookmark(!0),h=d(e),i=h.cell,j=c(h.table),k=j.getCellInfo(i);j.sortTable(k.cellIndex,b),f.moveToBookmark(g);try{f.select()}catch(l){}}},UE.commands.enablesort=UE.commands.disablesort={queryCommandState:function(a){var b=d(this).table;if(b&&"enablesort"==a)for(var c=domUtils.getElementsByTagName(b,"th td"),e=0;e1||c[e].getAttribute("rowspan")>1)return-1;return b?"enablesort"==a^"sortEnabled"!=b.getAttribute("data-sort")?-1:0:-1},execCommand:function(a){var b=d(this).table;b.setAttribute("data-sort","enablesort"==a?"sortEnabled":"sortDisabled"),"enablesort"==a?domUtils.addClass(b,"sortEnabled"):domUtils.removeClasses(b,"sortEnabled")}}},UE.plugins.contextmenu=function(){var a=this;if(a.setOpt("enableContextMenu",!0),a.getOpt("enableContextMenu")!==!1){var b,c=a.getLang("contextMenu"),d=a.options.contextMenu||[{label:c.selectall,cmdName:"selectall"},{label:c.cleardoc,cmdName:"cleardoc",exec:function(){confirm(c.confirmclear)&&this.execCommand("cleardoc")}},"-",{label:c.unlink,cmdName:"unlink"},"-",{group:c.paragraph,icon:"justifyjustify",subMenu:[{label:c.justifyleft,cmdName:"justify",value:"left"},{label:c.justifyright,cmdName:"justify",value:"right"},{label:c.justifycenter,cmdName:"justify",value:"center"},{label:c.justifyjustify,cmdName:"justify",value:"justify"}]},"-",{group:c.table,icon:"table",subMenu:[{label:c.inserttable,cmdName:"inserttable"},{label:c.deletetable,cmdName:"deletetable"},"-",{label:c.deleterow,cmdName:"deleterow"},{label:c.deletecol,cmdName:"deletecol"},{label:c.insertcol,cmdName:"insertcol"},{label:c.insertcolnext,cmdName:"insertcolnext"},{label:c.insertrow,cmdName:"insertrow"},{label:c.insertrownext,cmdName:"insertrownext"},"-",{label:c.insertcaption,cmdName:"insertcaption"},{label:c.deletecaption,cmdName:"deletecaption"},{label:c.inserttitle,cmdName:"inserttitle"},{label:c.deletetitle,cmdName:"deletetitle"},{label:c.inserttitlecol,cmdName:"inserttitlecol"},{label:c.deletetitlecol,cmdName:"deletetitlecol"},"-",{label:c.mergecells,cmdName:"mergecells"},{label:c.mergeright,cmdName:"mergeright"},{label:c.mergedown,cmdName:"mergedown"},"-",{label:c.splittorows,cmdName:"splittorows"},{label:c.splittocols,cmdName:"splittocols"},{label:c.splittocells,cmdName:"splittocells"},"-",{label:c.averageDiseRow,cmdName:"averagedistributerow"},{label:c.averageDisCol,cmdName:"averagedistributecol"},"-",{label:c.edittd,cmdName:"edittd",exec:function(){UE.ui.edittd&&new UE.ui.edittd(this),this.getDialog("edittd").open()}},{label:c.edittable,cmdName:"edittable",exec:function(){UE.ui.edittable&&new UE.ui.edittable(this),this.getDialog("edittable").open()}},{label:c.setbordervisible,cmdName:"setbordervisible"}]},{group:c.tablesort,icon:"tablesort",subMenu:[{label:c.enablesort,cmdName:"enablesort"},{label:c.disablesort,cmdName:"disablesort"},"-",{label:c.reversecurrent,cmdName:"sorttable",value:"reversecurrent"},{label:c.orderbyasc,cmdName:"sorttable",value:"orderbyasc"},{label:c.reversebyasc,cmdName:"sorttable",value:"reversebyasc"},{label:c.orderbynum,cmdName:"sorttable",value:"orderbynum"},{label:c.reversebynum,cmdName:"sorttable",value:"reversebynum"}]},{group:c.borderbk,icon:"borderBack",subMenu:[{label:c.setcolor,cmdName:"interlacetable",exec:function(){this.execCommand("interlacetable")}},{label:c.unsetcolor,cmdName:"uninterlacetable",exec:function(){this.execCommand("uninterlacetable")}},{label:c.setbackground,cmdName:"settablebackground",exec:function(){this.execCommand("settablebackground",{repeat:!0,colorList:["#bbb","#ccc"]})}},{label:c.unsetbackground,cmdName:"cleartablebackground",exec:function(){this.execCommand("cleartablebackground")}},{label:c.redandblue,cmdName:"settablebackground",exec:function(){this.execCommand("settablebackground",{repeat:!0,colorList:["red","blue"]})}},{label:c.threecolorgradient,cmdName:"settablebackground",exec:function(){this.execCommand("settablebackground",{repeat:!0,colorList:["#aaa","#bbb","#ccc"]})}}]},{group:c.aligntd,icon:"aligntd",subMenu:[{cmdName:"cellalignment",value:{align:"left",vAlign:"top"}},{cmdName:"cellalignment",value:{align:"center",vAlign:"top"}},{cmdName:"cellalignment",value:{align:"right",vAlign:"top"}},{cmdName:"cellalignment",value:{align:"left",vAlign:"middle"}},{cmdName:"cellalignment",value:{align:"center",vAlign:"middle"}},{cmdName:"cellalignment",value:{align:"right",vAlign:"middle"}},{cmdName:"cellalignment",value:{align:"left",vAlign:"bottom"}},{cmdName:"cellalignment",value:{align:"center",vAlign:"bottom"}},{cmdName:"cellalignment",value:{align:"right",vAlign:"bottom"}}]},{group:c.aligntable,icon:"aligntable",subMenu:[{cmdName:"tablealignment",className:"left",label:c.tableleft,value:"left"},{cmdName:"tablealignment",className:"center",label:c.tablecenter,value:"center"},{cmdName:"tablealignment",className:"right",label:c.tableright,value:"right"}]},"-",{label:c.insertparagraphbefore,cmdName:"insertparagraph",value:!0},{label:c.insertparagraphafter,cmdName:"insertparagraph"},{label:c.copy,cmdName:"copy"},{label:c.paste,cmdName:"paste"}];if(d.length){var e=UE.ui.uiUtils;a.addListener("contextmenu",function(f,g){var h=e.getViewportOffsetByEvent(g);a.fireEvent("beforeselectionchange"),b&&b.destroy();for(var i,j=0,k=[];i=d[j];j++){var l;!function(b){function d(){switch(b.icon){case"table":return a.getLang("contextMenu.table");case"justifyjustify":return a.getLang("contextMenu.paragraph");case"aligntd":return a.getLang("contextMenu.aligntd");case"aligntable":return a.getLang("contextMenu.aligntable");case"tablesort":return c.tablesort;case"borderBack":return c.borderbk;default:return""}}if("-"==b)(l=k[k.length-1])&&"-"!==l&&k.push("-");else if(b.hasOwnProperty("group")){for(var e,f=0,g=[];e=b.subMenu[f];f++)!function(b){"-"==b?(l=g[g.length-1])&&"-"!==l?g.push("-"):g.splice(g.length-1):(a.commands[b.cmdName]||UE.commands[b.cmdName]||b.query)&&(b.query?b.query():a.queryCommandState(b.cmdName))>-1&&g.push({label:b.label||a.getLang("contextMenu."+b.cmdName+(b.value||""))||"",className:"edui-for-"+b.cmdName+(b.className?" edui-for-"+b.cmdName+"-"+b.className:""),onclick:b.exec?function(){b.exec.call(a)}:function(){a.execCommand(b.cmdName,b.value)}})}(e);g.length&&k.push({label:d(),className:"edui-for-"+b.icon,subMenu:{items:g,editor:a}})}else(a.commands[b.cmdName]||UE.commands[b.cmdName]||b.query)&&(b.query?b.query.call(a):a.queryCommandState(b.cmdName))>-1&&k.push({label:b.label||a.getLang("contextMenu."+b.cmdName),className:"edui-for-"+(b.icon?b.icon:b.cmdName+(b.value||"")),onclick:b.exec?function(){b.exec.call(a)}:function(){a.execCommand(b.cmdName,b.value)}})}(i)}if("-"==k[k.length-1]&&k.pop(),b=new UE.ui.Menu({items:k,className:"edui-contextmenu",editor:a}),b.render(),b.showAt(h),a.fireEvent("aftershowcontextmenu",b),domUtils.preventDefault(g),browser.ie){var m;try{m=a.selection.getNative().createRange()}catch(n){return}if(m.item){var o=new dom.Range(a.document);o.selectNode(m.item(0)).select(!0,!0)}}}),a.addListener("aftershowcontextmenu",function(b,c){if(a.zeroclipboard){var d=c.items;for(var e in d)"edui-for-copy"==d[e].className&&a.zeroclipboard.clip(d[e].getDom())}})}}},UE.plugins.shortcutmenu=function(){var a,b=this,c=b.options.shortcutMenu||[];c.length&&(b.addListener("contextmenu mouseup",function(b,d){var e=this,f={type:b,target:d.target||d.srcElement,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY};if(setTimeout(function(){var d=e.selection.getRange();d.collapsed!==!1&&"contextmenu"!=b||(a||(a=new baidu.editor.ui.ShortCutMenu({editor:e,items:c,theme:e.options.theme,className:"edui-shortcutmenu"}),a.render(),e.fireEvent("afterrendershortcutmenu",a)),a.show(f,!!UE.plugins.contextmenu))}),"contextmenu"==b&&(domUtils.preventDefault(d),browser.ie9below)){var g;try{g=e.selection.getNative().createRange()}catch(d){return}if(g.item){var h=new dom.Range(e.document);h.selectNode(g.item(0)).select(!0,!0)}}}),b.addListener("keydown",function(b){"keydown"==b&&a&&!a.isHidden&&a.hide()}))},UE.plugins.basestyle=function(){var a={bold:["strong","b"],italic:["em","i"],subscript:["sub"],superscript:["sup"]},b=function(a,b){return domUtils.filterNodeList(a.selection.getStartElementPath(),b)},c=this;c.addshortcutkey({Bold:"ctrl+66",Italic:"ctrl+73",Underline:"ctrl+85"}),c.addInputRule(function(a){utils.each(a.getNodesByTagName("b i"),function(a){switch(a.tagName){case"b":a.tagName="strong";break;case"i":a.tagName="em"}})});for(var d in a)!function(a,d){c.commands[a]={execCommand:function(a){var e=c.selection.getRange(),f=b(this,d);if(e.collapsed){if(f){var g=c.document.createTextNode("");e.insertNode(g).removeInlineStyle(d),e.setStartBefore(g),domUtils.remove(g)}else{var h=e.document.createElement(d[0]);"superscript"!=a&&"subscript"!=a||(g=c.document.createTextNode(""),e.insertNode(g).removeInlineStyle(["sub","sup"]).setStartBefore(g).collapse(!0)),e.insertNode(h).setStart(h,0)}e.collapse(!0)}else"superscript"!=a&&"subscript"!=a||f&&f.tagName.toLowerCase()==a||e.removeInlineStyle(["sub","sup"]),f?e.removeInlineStyle(d):e.applyInlineStyle(d[0]);e.select()},queryCommandState:function(){return b(this,d)?1:0}}}(d,a[d])},UE.plugins.elementpath=function(){var a,b,c=this;c.setOpt("elementPathEnabled",!0),c.options.elementPathEnabled&&(c.commands.elementpath={execCommand:function(d,e){var f=b[e],g=c.selection.getRange();a=1*e,g.selectNode(f).select()},queryCommandValue:function(){var c=[].concat(this.selection.getStartElementPath()).reverse(),d=[];b=c;for(var e,f=0;e=c[f];f++)if(3!=e.nodeType){var g=e.tagName.toLowerCase();if("img"==g&&e.getAttribute("anchorname")&&(g="anchor"),d[f]=g,a==f){a=-1;break}}return d}})},UE.plugins.formatmatch=function(){function a(f,g){function h(a){return m&&a.selectNode(m),a.applyInlineStyle(d[d.length-1].tagName,null,d)}if(browser.webkit)var i="IMG"==g.target.tagName?g.target:null;c.undoManger&&c.undoManger.save();var j=c.selection.getRange(),k=i||j.getClosedNode();if(b&&k&&"IMG"==k.tagName)k.style.cssText+=";float:"+(b.style.cssFloat||b.style.styleFloat||"none")+";display:"+(b.style.display||"inline"),b=null;else if(!b){var l=j.collapsed;if(l){var m=c.document.createTextNode("match");j.insertNode(m).select()}c.__hasEnterExecCommand=!0;var n=c.options.removeFormatAttributes;c.options.removeFormatAttributes="",c.execCommand("removeformat"),c.options.removeFormatAttributes=n,c.__hasEnterExecCommand=!1,j=c.selection.getRange(),d.length&&h(j),m&&j.setStartBefore(m).collapse(!0),j.select(),m&&domUtils.remove(m)}c.undoManger&&c.undoManger.save(),c.removeListener("mouseup",a),e=0}var b,c=this,d=[],e=0;c.addListener("reset",function(){d=[],e=0}),c.commands.formatmatch={execCommand:function(f){if(e)return e=0,d=[],void c.removeListener("mouseup",a);var g=c.selection.getRange();if(b=g.getClosedNode(),!b||"IMG"!=b.tagName){g.collapse(!0).shrinkBoundary();var h=g.startContainer;d=domUtils.findParents(h,!0,function(a){return!domUtils.isBlockElm(a)&&1==a.nodeType});for(var i,j=0;i=d[j];j++)if("A"==i.tagName){d.splice(j,1);break}}c.addListener("mouseup",a),e=1},queryCommandState:function(){return e},notNeedUndo:1}},UE.plugin.register("searchreplace",function(){function a(a,b,c){var d=b.searchStr;-1==b.dir&&(a=a.split("").reverse().join(""),d=d.split("").reverse().join(""),c=a.length-c);for(var e,f=new RegExp(d,"g"+(b.casesensitive?"":"i"));e=f.exec(a);)if(e.index>=c)return-1==b.dir?a.length-e.index-b.searchStr.length:e.index;return-1}function b(b,c,d){var e,f,h=d.all||1==d.dir?"getNextDomNode":"getPreDomNode";domUtils.isBody(b)&&(b=b.firstChild);for(var i=1;b;){if(e=3==b.nodeType?b.nodeValue:b[browser.ie?"innerText":"textContent"],f=a(e,d,c),i=0,-1!=f)return{node:b,index:f};for(b=domUtils[h](b);b&&g[b.nodeName.toLowerCase()];)b=domUtils[h](b,!0);b&&(c=-1==d.dir?(3==b.nodeType?b.nodeValue:b[browser.ie?"innerText":"textContent"]).length:0)}}function c(a,b,d){for(var e,f=0,g=a.firstChild,h=0;g;){if(3==g.nodeType){if(h=g.nodeValue.replace(/(^[\t\r\n]+)|([\t\r\n]+$)/,"").length,f+=h,f>=b)return{node:g,index:h-(f-b)}}else if(!dtd.$empty[g.tagName]&&(h=g[browser.ie?"innerText":"textContent"].replace(/(^[\t\r\n]+)|([\t\r\n]+$)/,"").length,f+=h,f>=b&&(e=c(g,h-(f-b),d))))return e;g=domUtils.getNextDomNode(g)}}function d(a,d){var f,g=a.selection.getRange(),h=d.searchStr,i=a.document.createElement("span");if(i.innerHTML="$$ueditor_searchreplace_key$$",g.shrinkBoundary(!0),!g.collapsed){g.select();var j=a.selection.getText();if(new RegExp("^"+d.searchStr+"$",d.casesensitive?"":"i").test(j)){if(void 0!=d.replaceStr)return e(g,d.replaceStr),g.select(),!0;g.collapse(-1==d.dir)}}g.insertNode(i),g.enlargeToBlockElm(!0),f=g.startContainer;var k=f[browser.ie?"innerText":"textContent"].indexOf("$$ueditor_searchreplace_key$$");g.setStartBefore(i),domUtils.remove(i);var l=b(f,k,d);if(l){var m=c(l.node,l.index,h),n=c(l.node,l.index+h.length,h);return g.setStart(m.node,m.index).setEnd(n.node,n.index),void 0!==d.replaceStr&&e(g,d.replaceStr),g.select(),!0}g.setCursor()}function e(a,b){b=f.document.createTextNode(b),a.deleteContents().insertNode(b)}var f=this,g={table:1,tbody:1,tr:1,ol:1,ul:1};return{commands:{searchreplace:{execCommand:function(a,b){utils.extend(b,{all:!1,casesensitive:!1,dir:1},!0);var c=0;if(b.all){var e=f.selection.getRange(),g=f.body.firstChild;for(g&&1==g.nodeType?(e.setStart(g,0),e.shrinkBoundary(!0)):3==g.nodeType&&e.setStartBefore(g),e.collapse(!0).select(!0),void 0!==b.replaceStr&&f.fireEvent("saveScene");d(this,b);)c++;c&&f.fireEvent("saveScene")}else void 0!==b.replaceStr&&f.fireEvent("saveScene"),d(this,b)&&c++,c&&f.fireEvent("saveScene");return c},notNeedUndo:1}}}}),UE.plugins.customstyle=function(){var a=this;a.setOpt({customstyle:[{tag:"h1",name:"tc",style:"font-size:32px;font-weight:bold;border-bottom:#ccc 2px solid;padding:0 4px 0 0;text-align:center;margin:0 0 20px 0;"},{tag:"h1",name:"tl",style:"font-size:32px;font-weight:bold;border-bottom:#ccc 2px solid;padding:0 4px 0 0;text-align:left;margin:0 0 10px 0;"},{tag:"span",name:"im",style:"font-size:16px;font-style:italic;font-weight:bold;line-height:18px;"},{tag:"span",name:"hi",style:"font-size:16px;font-style:italic;font-weight:bold;color:rgb(51, 153, 204);line-height:18px;"}]}),a.commands.customstyle={execCommand:function(a,b){var c,d,e=this,f=b.tag,g=domUtils.findParent(e.selection.getStart(),function(a){return a.getAttribute("label")},!0),h={};for(var i in b)void 0!==b[i]&&(h[i]=b[i]);if(delete h.tag,g&&g.getAttribute("label")==b.label){if(c=this.selection.getRange(),d=c.createBookmark(),c.collapsed)if(dtd.$block[g.tagName]){var j=e.document.createElement("p");domUtils.moveChild(g,j),g.parentNode.insertBefore(j,g),domUtils.remove(g)}else domUtils.remove(g,!0);else{var k=domUtils.getCommonAncestor(d.start,d.end),l=domUtils.getElementsByTagName(k,f);new RegExp(f,"i").test(k.tagName)&&l.push(k);for(var m,n=0;m=l[n++];)if(m.getAttribute("label")==b.label){var o=domUtils.getPosition(m,d.start),p=domUtils.getPosition(m,d.end);if((o&domUtils.POSITION_FOLLOWING||o&domUtils.POSITION_CONTAINS)&&(p&domUtils.POSITION_PRECEDING||p&domUtils.POSITION_CONTAINS)&&dtd.$block[f]){var j=e.document.createElement("p");domUtils.moveChild(m,j),m.parentNode.insertBefore(j,m)}domUtils.remove(m,!0)}g=domUtils.findParent(k,function(a){return a.getAttribute("label")==b.label},!0),g&&domUtils.remove(g,!0)}c.moveToBookmark(d).select()}else if(dtd.$block[f]){if(this.execCommand("paragraph",f,h,"customstyle"),c=e.selection.getRange(),!c.collapsed){c.collapse(),g=domUtils.findParent(e.selection.getStart(),function(a){return a.getAttribute("label")==b.label},!0);var q=e.document.createElement("p");domUtils.insertAfter(g,q),domUtils.fillNode(e.document,q),c.setStart(q,0).setCursor()}}else{if(c=e.selection.getRange(),c.collapsed)return g=e.document.createElement(f),domUtils.setAttributes(g,h),void c.insertNode(g).setStart(g,0).setCursor();d=c.createBookmark(),c.applyInlineStyle(f,h).moveToBookmark(d).select()}},queryCommandValue:function(){var a=domUtils.filterNodeList(this.selection.getStartElementPath(),function(a){return a.getAttribute("label")});return a?a.getAttribute("label"):""}},a.addListener("keyup",function(b,c){var d=c.keyCode||c.which;if(32==d||13==d){var e=a.selection.getRange();if(e.collapsed){var f=domUtils.findParent(a.selection.getStart(),function(a){return a.getAttribute("label")},!0);if(f&&dtd.$block[f.tagName]&&domUtils.isEmptyNode(f)){var g=a.document.createElement("p");domUtils.insertAfter(f,g),domUtils.fillNode(a.document,g),domUtils.remove(f),e.setStart(g,0).setCursor()}}}})},UE.plugins.catchremoteimage=function(){var me=this,ajax=UE.ajax;me.options.catchRemoteImageEnable!==!1&&(me.setOpt({catchRemoteImageEnable:!1}),me.addListener("afterpaste",function(){me.fireEvent("catchRemoteImage")}),me.addListener("catchRemoteImage",function(){function catchremoteimage(a,b){var c=utils.serializeParam(me.queryCommandValue("serverparam"))||"",d=utils.formatUrl(catcherActionUrl+(-1==catcherActionUrl.indexOf("?")?"?":"&")+c),e=utils.isCrossDomainUrl(d),f={method:"POST",dataType:e?"jsonp":"",timeout:6e4,onsuccess:b.success,onerror:b.error};f[catcherFieldName]=a,ajax.request(d,f)}for(var catcherLocalDomain=me.getOpt("catcherLocalDomain"),catcherActionUrl=me.getActionUrl(me.getOpt("catcherActionName")),catcherUrlPrefix=me.getOpt("catcherUrlPrefix"),catcherFieldName=me.getOpt("catcherFieldName"),remoteImages=[],imgs=domUtils.getElementsByTagName(me.document,"img"),test=function(a,b){if(-1!=a.indexOf(location.host)||/(^\.)|(^\/)/.test(a))return!0;if(b)for(var c,d=0;c=b[d++];)if(-1!==a.indexOf(c))return!0;return!1},i=0,ci;ci=imgs[i++];)if(!ci.getAttribute("word_img")){var src=ci.getAttribute("_src")||ci.src||"";/^(https?|ftp):/i.test(src)&&!test(src,catcherLocalDomain)&&remoteImages.push(src)}remoteImages.length&&catchremoteimage(remoteImages,{success:function(r){try{var info=void 0!==r.state?r:eval("("+r.responseText+")")}catch(e){return}var i,j,ci,cj,oldSrc,newSrc,list=info.list;for(i=0;ci=imgs[i++];)for(oldSrc=ci.getAttribute("_src")||ci.src||"",j=0;cj=list[j++];)if(oldSrc==cj.source&&"SUCCESS"==cj.state){newSrc=catcherUrlPrefix+cj.url,domUtils.setAttributes(ci,{src:newSrc,_src:newSrc});break}me.fireEvent("catchremotesuccess")},error:function(){me.fireEvent("catchremoteerror")}})}))},UE.plugin.register("snapscreen",function(){function getLocation(a){var b,c=document.createElement("a"),d=utils.serializeParam(me.queryCommandValue("serverparam"))||"";return c.href=a,browser.ie&&(c.href=c.href),b=c.search,d&&(b=b+(-1==b.indexOf("?")?"?":"&")+d,b=b.replace(/[&]+/gi,"&")),{port:c.port,hostname:c.hostname,path:c.pathname+b||+c.hash}}var me=this,snapplugin;return{commands:{snapscreen:{execCommand:function(cmd){function onSuccess(rs){try{if(rs=eval("("+rs+")"),"SUCCESS"==rs.state){var opt=me.options;me.execCommand("insertimage",{src:opt.snapscreenUrlPrefix+rs.url,_src:opt.snapscreenUrlPrefix+rs.url,alt:rs.title||"",floatStyle:opt.snapscreenImgAlign})}else alert(rs.state)}catch(e){alert(lang.callBackErrorMsg)}}var url,local,res,lang=me.getLang("snapScreen_plugin");if(!snapplugin){var container=me.container,doc=me.container.ownerDocument||me.container.document;snapplugin=doc.createElement("object");try{snapplugin.type="application/x-pluginbaidusnap"}catch(e){return}snapplugin.style.cssText="position:absolute;left:-9999px;width:0;height:0;",snapplugin.setAttribute("width","0"),snapplugin.setAttribute("height","0"),container.appendChild(snapplugin)}url=me.getActionUrl(me.getOpt("snapscreenActionName")),local=getLocation(url),setTimeout(function(){try{res=snapplugin.saveSnapshot(local.hostname,local.path,local.port)}catch(a){return void me.ui._dialogs.snapscreenDialog.open()}onSuccess(res)},50)},queryCommandState:function(){return-1!=navigator.userAgent.indexOf("Windows",0)?0:-1}}}}}),UE.commands.insertparagraph={execCommand:function(a,b){for(var c,d=this,e=d.selection.getRange(),f=e.startContainer;f&&!domUtils.isBody(f);)c=f,f=f.parentNode;if(c){var g=d.document.createElement("p");b?c.parentNode.insertBefore(g,c):c.parentNode.insertBefore(g,c.nextSibling),domUtils.fillNode(d.document,g),e.setStart(g,0).setCursor(!1,!0)}}},UE.plugin.register("webapp",function(){function a(a,c){return c?'':'"}var b=this;return{outputRule:function(b){utils.each(b.getNodesByTagName("img"),function(b){var c;if("edui-faked-webapp"==b.getAttr("class")){c=a({title:b.getAttr("title"),width:b.getAttr("width"),height:b.getAttr("height"),align:b.getAttr("align"),cssfloat:b.getStyle("float"),url:b.getAttr("_url"),logo:b.getAttr("_logo_url")},!0);var d=UE.uNode.createElement(c);b.parentNode.replaceChild(d,b)}})},inputRule:function(b){utils.each(b.getNodesByTagName("iframe"),function(b){if("edui-faked-webapp"==b.getAttr("class")){var c=UE.uNode.createElement(a({title:b.getAttr("title"),width:b.getAttr("width"),height:b.getAttr("height"),align:b.getAttr("align"),cssfloat:b.getStyle("float"),url:b.getAttr("src"),logo:b.getAttr("logo_url")}));b.parentNode.replaceChild(c,b)}})},commands:{webapp:{execCommand:function(b,c){var d=this,e=a(utils.extend(c,{align:"none"}),!1);d.execCommand("inserthtml",e)},queryCommandState:function(){var a=this,b=a.selection.getRange().getClosedNode(),c=b&&"edui-faked-webapp"==b.className;return c?1:0}}}}}),UE.plugins.template=function(){UE.commands.template={execCommand:function(a,b){b.html&&this.execCommand("inserthtml",b.html)}},this.addListener("click",function(a,b){var c=b.target||b.srcElement,d=this.selection.getRange(),e=domUtils.findParent(c,function(a){return a.className&&domUtils.hasClass(a,"ue_t")?a:void 0},!0);e&&d.selectNode(e).shrinkBoundary().select()}),this.addListener("keydown",function(a,b){var c=this.selection.getRange();if(!c.collapsed&&!(b.ctrlKey||b.metaKey||b.shiftKey||b.altKey)){var d=domUtils.findParent(c.startContainer,function(a){return a.className&&domUtils.hasClass(a,"ue_t")?a:void 0},!0);d&&domUtils.removeClasses(d,["ue_t"])}})},UE.plugin.register("music",function(){function a(a,c,d,e,f,g){return g?'':"'}var b=this;return{outputRule:function(b){utils.each(b.getNodesByTagName("img"),function(b){var c;if("edui-faked-music"==b.getAttr("class")){var d=b.getStyle("float"),e=b.getAttr("align");c=a(b.getAttr("_url"),b.getAttr("width"),b.getAttr("height"),e,d,!0);var f=UE.uNode.createElement(c);b.parentNode.replaceChild(f,b)}})},inputRule:function(b){utils.each(b.getNodesByTagName("embed"),function(b){if("edui-faked-music"==b.getAttr("class")){var c=b.getStyle("float"),d=b.getAttr("align");html=a(b.getAttr("src"),b.getAttr("width"),b.getAttr("height"),d,c,!1);var e=UE.uNode.createElement(html);b.parentNode.replaceChild(e,b)}})},commands:{music:{execCommand:function(b,c){var d=this,e=a(c.url,c.width||400,c.height||95,"none",!1);d.execCommand("inserthtml",e)},queryCommandState:function(){var a=this,b=a.selection.getRange().getClosedNode(),c=b&&"edui-faked-music"==b.className;return c?1:0}}}}}),UE.plugin.register("autoupload",function(){function a(a,b){var c,d,e,f,g,h,i,j,k=b,l=/image\/\w+/i.test(a.type)?"image":"file",m="loading_"+(+new Date).toString(36);if(c=k.getOpt(l+"FieldName"),d=k.getOpt(l+"UrlPrefix"),e=k.getOpt(l+"MaxSize"),f=k.getOpt(l+"AllowFiles"),g=k.getActionUrl(k.getOpt(l+"ActionName")),i=function(a){var b=k.document.getElementById(m);b&&domUtils.remove(b),k.fireEvent("showmessage",{id:m,content:a,type:"error",timeout:4e3})},"image"==l?(h='',j=function(a){var b=d+a.url,c=k.document.getElementById(m);c&&(c.setAttribute("src",b),c.setAttribute("_src",b),c.setAttribute("title",a.title||""),c.setAttribute("alt",a.original||""),c.removeAttribute("id"),domUtils.removeClasses(c,"loadingclass"))}):(h='

',j=function(a){var b=d+a.url,c=k.document.getElementById(m),e=k.selection.getRange(),f=e.createBookmark();e.selectNode(c).select(),k.execCommand("insertfile",{url:b}),e.moveToBookmark(f).select()}),k.execCommand("inserthtml",h),!k.getOpt(l+"ActionName"))return void i(k.getLang("autoupload.errorLoadConfig"));if(a.size>e)return void i(k.getLang("autoupload.exceedSizeError"));var n=a.name?a.name.substr(a.name.lastIndexOf(".")):"";if(n&&"image"!=l||f&&-1==(f.join("")+".").indexOf(n.toLowerCase()+"."))return void i(k.getLang("autoupload.exceedTypeError"));var o=new XMLHttpRequest,p=new FormData,q=utils.serializeParam(k.queryCommandValue("serverparam"))||"",r=utils.formatUrl(g+(-1==g.indexOf("?")?"?":"&")+q);p.append(c,a,a.name||"blob."+a.type.substr("image/".length)),p.append("type","ajax"),o.open("post",r,!0),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.addEventListener("load",function(a){try{var b=new Function("return "+utils.trim(a.target.response))();"SUCCESS"==b.state&&b.url?j(b):i(b.state)}catch(c){i(k.getLang("autoupload.loadError"))}}),o.send(p)}function b(a){return a.clipboardData&&a.clipboardData.items&&1==a.clipboardData.items.length&&/^image\//.test(a.clipboardData.items[0].type)?a.clipboardData.items:null}function c(a){return a.dataTransfer&&a.dataTransfer.files?a.dataTransfer.files:null}return{outputRule:function(a){utils.each(a.getNodesByTagName("img"),function(a){/\b(loaderrorclass)|(bloaderrorclass)\b/.test(a.getAttr("class"))&&a.parentNode.removeChild(a)}),utils.each(a.getNodesByTagName("p"),function(a){/\bloadpara\b/.test(a.getAttr("class"))&&a.parentNode.removeChild(a)})},bindEvents:{ready:function(d){var e=this;window.FormData&&window.FileReader&&(domUtils.on(e.body,"paste drop",function(d){var f,g=!1;if(f="paste"==d.type?b(d):c(d)){for(var h,i=f.length;i--;)h=f[i],h.getAsFile&&(h=h.getAsFile()),h&&h.size>0&&(a(h,e),g=!0);g&&d.preventDefault()}}),domUtils.on(e.body,"dragover",function(a){"Files"==a.dataTransfer.types[0]&&a.preventDefault()}),utils.cssRule("loading",".loadingclass{display:inline-block;cursor:default;background: url('"+this.options.themePath+this.options.theme+"/images/loading.gif') no-repeat center center transparent;border:1px solid #cccccc;margin-left:1px;height: 22px;width: 22px;}\n.loaderrorclass{display:inline-block;cursor:default;background: url('"+this.options.themePath+this.options.theme+"/images/loaderror.png') no-repeat center center transparent;border:1px solid #cccccc;margin-right:1px;height: 22px;width: 22px;}",this.document))}}}}),UE.plugin.register("autosave",function(){function a(a){var f;if(!(new Date-c0?b._saveFlag=window.setTimeout(function(){a(b)},b.options.saveInterval):a(b))}},commands:{clearlocaldata:{execCommand:function(a,c){e&&b.getPreferences(e)&&b.removePreferences(e)},notNeedUndo:!0,ignoreContentChange:!0},getlocaldata:{execCommand:function(a,c){return e?b.getPreferences(e)||"":""},notNeedUndo:!0,ignoreContentChange:!0},drafts:{execCommand:function(a,c){e&&(b.body.innerHTML=b.getPreferences(e)||"

"+domUtils.fillHtml+"

",b.focus(!0))},queryCommandState:function(){return e?null===b.getPreferences(e)?-1:0:-1},notNeedUndo:!0,ignoreContentChange:!0}}}}),UE.plugin.register("charts",function(){function a(a){var b=null,c=0;if(a.rows.length<2)return!1;if(a.rows[0].cells.length<2)return!1;b=a.rows[0].cells,c=b.length;for(var d,e=0;d=b[e];e++)if("th"!==d.tagName.toLowerCase())return!1;for(var f,e=1;f=a.rows[e];e++){if(f.cells.length!=c)return!1;if("th"!==f.cells[0].tagName.toLowerCase())return!1;for(var d,g=1;d=f.cells[g];g++){var h=utils.trim(d.innerText||d.textContent||"");if(h=h.replace(new RegExp(UE.dom.domUtils.fillChar,"g"),"").replace(/^\s+|\s+$/g,""),!/^\d*\.?\d+$/.test(h))return!1}}return!0}var b=this;return{bindEvents:{chartserror:function(){}},commands:{charts:{execCommand:function(c,d){var e=domUtils.findParentByTagName(this.selection.getRange().startContainer,"table",!0),f=[],g={};if(!e)return!1;if(!a(e))return b.fireEvent("chartserror"),!1;g.title=d.title||"",g.subTitle=d.subTitle||"",g.xTitle=d.xTitle||"",g.yTitle=d.yTitle||"",g.suffix=d.suffix||"",g.tip=d.tip||"",g.dataFormat=d.tableDataFormat||"",g.chartType=d.chartType||0;for(var h in g)g.hasOwnProperty(h)&&f.push(h+":"+g[h]);e.setAttribute("data-chart",f.join(";")),domUtils.addClass(e,"edui-charts-table"); },queryCommandState:function(b,c){var d=domUtils.findParentByTagName(this.selection.getRange().startContainer,"table",!0);return d&&a(d)?0:-1}}},inputRule:function(a){utils.each(a.getNodesByTagName("table"),function(a){void 0!==a.getAttr("data-chart")&&a.setAttr("style")})},outputRule:function(a){utils.each(a.getNodesByTagName("table"),function(a){void 0!==a.getAttr("data-chart")&&a.setAttr("style","display: none;")})}}}),UE.plugin.register("section",function(){function a(a){this.tag="",this.level=-1,this.dom=null,this.nextSection=null,this.previousSection=null,this.parentSection=null,this.startAddress=[],this.endAddress=[],this.children=[]}function b(b){var c=new a;return utils.extend(c,b)}function c(a,b){for(var c=b,d=0;dm;m++)if(i=l[m],f=d(i),f>=0){var o=h.selection.getRange().selectNode(i).createAddress(!0).startAddress,p=b({tag:i.tagName,title:i.innerText||i.textContent||"",level:f,dom:i,startAddress:utils.clone(o,[]),endAddress:utils.clone(o,[]),children:[]});for(j.nextSection=p,p.previousSection=j,g=j;f<=g.level;)g=g.parentSection;p.parentSection=g,g.children.push(p),k=j=p}else 1===i.nodeType&&e(i,c),k&&k.endAddress[k.endAddress.length-1]++}for(var f=c||["h1","h2","h3","h4","h5","h6"],g=0;g=c.length);f++){if(c[f]>a[f]){d=!0;break}if(c[f]=c.length);f++){if(c[f]a[f])break}return d&&e}var g,h,i=this;if(b&&d&&-1!=d.level&&(g=e?d.endAddress:d.startAddress,h=c(g,i.body),g&&h&&!f(b.startAddress,b.endAddress,g))){var j,k,l=c(b.startAddress,i.body),m=c(b.endAddress,i.body);if(e)for(j=m;j&&!(domUtils.getPosition(l,j)&domUtils.POSITION_FOLLOWING)&&(k=j.previousSibling,domUtils.insertAfter(h,j),j!=l);)j=k;else for(j=l;j&&!(domUtils.getPosition(j,m)&domUtils.POSITION_FOLLOWING)&&(k=j.nextSibling,h.parentNode.insertBefore(j,h),j!=m);)j=k;i.fireEvent("updateSections")}}},deletesection:{execCommand:function(a,b,c){function d(a){for(var b=e.body,c=0;c',b.className="edui-"+c.options.theme,b.id=c.ui.id+"_iframeupload",i.style.cssText=g,i.style.width=a+"px",i.style.height=e+"px",i.appendChild(b),i.parentNode&&(i.parentNode.style.width=a+"px",i.parentNode.style.height=a+"px");var k=h.getElementById("edui_form_"+j),l=h.getElementById("edui_input_"+j),m=h.getElementById("edui_iframe_"+j);domUtils.on(l,"change",function(){function a(){try{var e,f,g,h=(m.contentDocument||m.contentWindow.document).body,i=h.innerText||h.textContent||"";f=new Function("return "+i)(),e=c.options.imageUrlPrefix+f.url,"SUCCESS"==f.state&&f.url?(g=c.document.getElementById(d),g.setAttribute("src",e),g.setAttribute("_src",e),g.setAttribute("title",f.title||""),g.setAttribute("alt",f.original||""),g.removeAttribute("id"),domUtils.removeClasses(g,"loadingclass")):b&&b(f.state)}catch(j){b&&b(c.getLang("simpleupload.loadError"))}k.reset(),domUtils.un(m,"load",a)}function b(a){if(d){var b=c.document.getElementById(d);b&&domUtils.remove(b),c.fireEvent("showmessage",{id:d,content:a,type:"error",timeout:4e3})}}if(l.value){var d="loading_"+(+new Date).toString(36),e=utils.serializeParam(c.queryCommandValue("serverparam"))||"",f=c.getActionUrl(c.getOpt("imageActionName")),g=c.getOpt("imageAllowFiles");if(c.focus(),c.execCommand("inserthtml",''),!c.getOpt("imageActionName"))return void errorHandler(c.getLang("autoupload.errorLoadConfig"));var h=l.value,i=h?h.substr(h.lastIndexOf(".")):"";if(!i||g&&-1==(g.join("")+".").indexOf(i.toLowerCase()+"."))return void b(c.getLang("simpleupload.exceedTypeError"));domUtils.on(m,"load",a),k.action=utils.formatUrl(f+(-1==f.indexOf("?")?"?":"&")+e),k.submit()}});var n;c.addListener("selectionchange",function(){clearTimeout(n),n=setTimeout(function(){var a=c.queryCommandState("simpleupload");-1==a?l.disabled="disabled":l.disabled=!1},400)}),d=!0}),f.style.cssText=g,b.appendChild(f)}var b,c=this,d=!1;return{bindEvents:{ready:function(){utils.cssRule("loading",".loadingclass{display:inline-block;cursor:default;background: url('"+this.options.themePath+this.options.theme+"/images/loading.gif') no-repeat center center transparent;border:1px solid #cccccc;margin-right:1px;height: 22px;width: 22px;}\n.loaderrorclass{display:inline-block;cursor:default;background: url('"+this.options.themePath+this.options.theme+"/images/loaderror.png') no-repeat center center transparent;border:1px solid #cccccc;margin-right:1px;height: 22px;width: 22px;}",this.document)},simpleuploadbtnready:function(d,e){b=e,c.afterConfigReady(a)}},outputRule:function(a){utils.each(a.getNodesByTagName("img"),function(a){/\b(loaderrorclass)|(bloaderrorclass)\b/.test(a.getAttr("class"))&&a.parentNode.removeChild(a)})},commands:{simpleupload:{queryCommandState:function(){return d?0:-1}}}}}),UE.plugin.register("serverparam",function(){var a={};return{commands:{serverparam:{execCommand:function(b,c,d){void 0===c||null===c?a={}:utils.isString(c)?void 0===d||null===d?delete a[c]:a[c]=d:utils.isObject(c)?utils.extend(a,c,!0):utils.isFunction(c)&&utils.extend(a,c(),!0)},queryCommandValue:function(){return a||{}}}}}}),UE.plugin.register("insertfile",function(){function a(a){var b=a.substr(a.lastIndexOf(".")+1).toLowerCase(),c={rar:"icon_rar.gif",zip:"icon_rar.gif",tar:"icon_rar.gif",gz:"icon_rar.gif",bz2:"icon_rar.gif",doc:"icon_doc.gif",docx:"icon_doc.gif",pdf:"icon_pdf.gif",mp3:"icon_mp3.gif",xls:"icon_xls.gif",chm:"icon_chm.gif",ppt:"icon_ppt.gif",pptx:"icon_ppt.gif",avi:"icon_mv.gif",rmvb:"icon_mv.gif",wmv:"icon_mv.gif",flv:"icon_mv.gif",swf:"icon_mv.gif",rm:"icon_mv.gif",exe:"icon_exe.gif",psd:"icon_psd.gif",txt:"icon_txt.gif",jpg:"icon_jpg.gif",png:"icon_jpg.gif",jpeg:"icon_jpg.gif",gif:"icon_jpg.gif",ico:"icon_jpg.gif",bmp:"icon_jpg.gif"};return c[b]?c[b]:c.txt}var b=this;return{commands:{insertfile:{execCommand:function(c,d){d=utils.isArray(d)?d:[d];var e,f,g,h,i="",j=b.getOpt("UEDITOR_HOME_URL"),k=j+("/"==j.substr(j.length-1)?"":"/")+"dialogs/attachment/fileTypeImages/";for(e=0;e'+h+"

";b.execCommand("insertHtml",i)}}}}}),UE.plugins.xssFilter=function(){function a(a){var b=a.tagName,d=a.attrs;return c.hasOwnProperty(b)?void UE.utils.each(d,function(d,e){-1===c[b].indexOf(e)&&a.setAttr(e)}):(a.parentNode.removeChild(a),!1)}var b=UEDITOR_CONFIG,c=b.whitList;c&&b.xssFilterRules&&(this.options.filterRules=function(){var b={};return UE.utils.each(c,function(c,d){b[d]=function(b){return a(b)}}),b}());var d=[];UE.utils.each(c,function(a,b){d.push(b)}),c&&b.inputXssFilter&&this.addInputRule(function(b){b.traversal(function(b){return"element"!==b.type?!1:void a(b)})}),c&&b.outputXssFilter&&this.addOutputRule(function(b){b.traversal(function(b){return"element"!==b.type?!1:void a(b)})})};var baidu=baidu||{};baidu.editor=baidu.editor||{},UE.ui=baidu.editor.ui={},function(){function a(){var a=document.getElementById("edui_fixedlayer");i.setViewportOffset(a,{left:0,top:0})}function b(b){d.on(window,"scroll",a),d.on(window,"resize",baidu.editor.utils.defer(a,0,!0))}var c=baidu.editor.browser,d=baidu.editor.dom.domUtils,e="$EDITORUI",f=window[e]={},g="ID"+e,h=0,i=baidu.editor.ui.uiUtils={uid:function(a){return a?a[g]||(a[g]=++h):++h},hook:function(a,b){var c;return a&&a._callbacks?c=a:(c=function(){var b;a&&(b=a.apply(this,arguments));for(var d=c._callbacks,e=d.length;e--;){var f=d[e].apply(this,arguments);void 0===b&&(b=f)}return b},c._callbacks=[]),c._callbacks.push(b),c},createElementByHtml:function(a){var b=document.createElement("div");return b.innerHTML=a,b=b.firstChild,b.parentNode.removeChild(b),b},getViewportElement:function(){return c.ie&&c.quirks?document.body:document.documentElement},getClientRect:function(a){var b;try{b=a.getBoundingClientRect()}catch(c){b={left:0,top:0,height:0,width:0}}for(var e,f={left:Math.round(b.left),top:Math.round(b.top),height:Math.round(b.bottom-b.top),width:Math.round(b.right-b.left)};(e=a.ownerDocument)!==document&&(a=d.getWindow(e).frameElement);)b=a.getBoundingClientRect(),f.left+=b.left,f.top+=b.top;return f.bottom=f.top+f.height,f.right=f.left+f.width,f},getViewportRect:function(){var a=i.getViewportElement(),b=0|(window.innerWidth||a.clientWidth),c=0|(window.innerHeight||a.clientHeight);return{left:0,top:0,height:c,width:b,bottom:c,right:b}},setViewportOffset:function(a,b){var c=i.getFixedLayer();a.parentNode===c?(a.style.left=b.left+"px",a.style.top=b.top+"px"):d.setViewportOffset(a,b)},getEventOffset:function(a){var b=a.target||a.srcElement,c=i.getClientRect(b),d=i.getViewportOffsetByEvent(a);return{left:d.left-c.left,top:d.top-c.top}},getViewportOffsetByEvent:function(a){var b=a.target||a.srcElement,c=d.getWindow(b).frameElement,e={left:a.clientX,top:a.clientY};if(c&&b.ownerDocument!==document){var f=i.getClientRect(c);e.left+=f.left,e.top+=f.top}return e},setGlobal:function(a,b){return f[a]=b,e+'["'+a+'"]'},unsetGlobal:function(a){delete f[a]},copyAttributes:function(a,b){for(var e=b.attributes,f=e.length;f--;){var g=e[f];"style"==g.nodeName||"class"==g.nodeName||c.ie&&!g.specified||a.setAttribute(g.nodeName,g.nodeValue)}b.className&&d.addClass(a,b.className),b.style.cssText&&(a.style.cssText+=";"+b.style.cssText)},removeStyle:function(a,b){if(a.style.removeProperty)a.style.removeProperty(b);else{if(!a.style.removeAttribute)throw"";a.style.removeAttribute(b)}},contains:function(a,b){return a&&b&&(a===b?!1:a.contains?a.contains(b):16&a.compareDocumentPosition(b))},startDrag:function(a,b,c){function d(a){var c=a.clientX-g,d=a.clientY-h;b.ondragmove(c,d,a),a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function e(a){c.removeEventListener("mousemove",d,!0),c.removeEventListener("mouseup",e,!0),window.removeEventListener("mouseup",e,!0),b.ondragstop()}function f(){i.releaseCapture(),i.detachEvent("onmousemove",d),i.detachEvent("onmouseup",f),i.detachEvent("onlosecaptrue",f),b.ondragstop()}var c=c||document,g=a.clientX,h=a.clientY;if(c.addEventListener)c.addEventListener("mousemove",d,!0),c.addEventListener("mouseup",e,!0),window.addEventListener("mouseup",e,!0),a.preventDefault();else{var i=a.srcElement;i.setCapture(),i.attachEvent("onmousemove",d),i.attachEvent("onmouseup",f),i.attachEvent("onlosecaptrue",f),a.returnValue=!1}b.ondragstart()},getFixedLayer:function(){var d=document.getElementById("edui_fixedlayer");return null==d&&(d=document.createElement("div"),d.id="edui_fixedlayer",document.body.appendChild(d),c.ie&&c.version<=8?(d.style.position="absolute",b(),setTimeout(a)):d.style.position="fixed",d.style.left="0",d.style.top="0",d.style.width="0",d.style.height="0"),d},makeUnselectable:function(a){if(c.opera||c.ie&&c.version<9){if(a.unselectable="on",a.hasChildNodes())for(var b=0;b'}},a.inherits(c,b)}(),function(){var a=baidu.editor.utils,b=baidu.editor.dom.domUtils,c=baidu.editor.ui.UIBase,d=baidu.editor.ui.uiUtils,e=baidu.editor.ui.Mask=function(a){this.initOptions(a),this.initUIBase()};e.prototype={getHtmlTpl:function(){return'
'},postRender:function(){var a=this;b.on(window,"resize",function(){setTimeout(function(){a.isHidden()||a._fill()})})},show:function(a){this._fill(),this.getDom().style.display="",this.getDom().style.zIndex=a},hide:function(){this.getDom().style.display="none",this.getDom().style.zIndex=""},isHidden:function(){return"none"==this.getDom().style.display},_onMouseDown:function(){return!1},_onClick:function(a,b){this.fireEvent("click",a,b)},_fill:function(){var a=this.getDom(),b=d.getViewportRect();a.style.width=b.width+"px",a.style.height=b.height+"px"}},a.inherits(e,c)}(),function(){function a(a,b){for(var c=0;c
'+this.getContentHtmlTpl()+"
"},getContentHtmlTpl:function(){return this.content?"string"==typeof this.content?this.content:this.content.renderHtml():""},_UIBase_postRender:e.prototype.postRender,postRender:function(){if(this.content instanceof e&&this.content.postRender(),this.captureWheel&&!this.captured){this.captured=!0;var a=(document.documentElement.clientHeight||document.body.clientHeight)-80,b=this.getDom().offsetHeight,f=c.getClientRect(this.combox.getDom()).top,g=this.getDom("content"),h=this.getDom("body").getElementsByTagName("iframe"),i=this;for(h.length&&(h=h[0]);f+b>a;)b-=30;g.style.height=b+"px",h&&(h.style.height=b+"px"),window.XMLHttpRequest?d.on(g,"onmousewheel"in document.body?"mousewheel":"DOMMouseScroll",function(a){a.preventDefault?a.preventDefault():a.returnValue=!1,a.wheelDelta?g.scrollTop-=a.wheelDelta/120*60:g.scrollTop-=a.detail/-3*60}):d.on(this.getDom(),"mousewheel",function(a){a.returnValue=!1,i.getDom("content").scrollTop-=a.wheelDelta/120*60})}this.fireEvent("postRenderAfter"),this.hide(!0),this._UIBase_postRender()},_doAutoRender:function(){!this.getDom()&&this.autoRender&&this.render()},mesureSize:function(){var a=this.getDom("content");return c.getClientRect(a)},fitSize:function(){if(this.captureWheel&&this.sized)return this.__size;this.sized=!0;var a=this.getDom("body");a.style.width="",a.style.height="";var b=this.mesureSize();if(this.captureWheel){a.style.width=-(-20-b.width)+"px";var c=parseInt(this.getDom("content").style.height,10);!window.isNaN(c)&&(b.height=c)}else a.style.width=b.width+"px";return a.style.height=b.height+"px",this.__size=b,this.captureWheel&&(this.getDom("content").style.overflow="auto"),b},showAnchor:function(a,b){this.showAnchorRect(c.getClientRect(a),b)},showAnchorRect:function(a,b,e){this._doAutoRender();var f=c.getViewportRect();this.getDom().style.visibility="hidden",this._show();var g,i,j,k,l=this.fitSize();b?(g=this.canSideLeft&&a.right+l.width>f.right&&a.left>l.width,i=this.canSideUp&&a.top+l.height>f.bottom&&a.bottom>l.height,j=g?a.left-l.width:a.right,k=i?a.bottom-l.height:a.top):(g=this.canSideLeft&&a.right+l.width>f.right&&a.left>l.width,i=this.canSideUp&&a.top+l.height>f.bottom&&a.bottom>l.height,j=g?a.right-l.width:a.left,k=i?a.top-l.height:a.bottom);var m=this.getDom();c.setViewportOffset(m,{left:j,top:k}),d.removeClasses(m,h),m.className+=" "+h[2*(i?1:0)+(g?1:0)],this.editor&&(m.style.zIndex=1*this.editor.container.style.zIndex+10,baidu.editor.ui.uiUtils.getFixedLayer().style.zIndex=m.style.zIndex-1),this.getDom().style.visibility="visible"},showAt:function(a){var b=a.left,c=a.top,d={left:b,top:c,right:b,bottom:c,height:0,width:0};this.showAnchorRect(d,!1,!0)},_show:function(){if(this._hidden){var a=this.getDom();a.style.display="",this._hidden=!1,this.fireEvent("show")}},isHidden:function(){return this._hidden},show:function(){this._doAutoRender(),this._show()},hide:function(a){!this._hidden&&this.getDom()&&(this.getDom().style.display="none",this._hidden=!0,a||this.fireEvent("hide"))},queryAutoHide:function(a){return!a||!c.contains(this.getDom(),a)}},b.inherits(f,e),d.on(document,"mousedown",function(b){var c=b.target||b.srcElement;a(b,c)}),d.on(window,"scroll",function(b,c){a(b,c)})}(),function(){function a(a,b){for(var c='
'+a+'
',d=0;d"+(60==d?'":"")+""),c+=70>d?'':"";return c+="
'+b.getLang("themeColor")+'
'+b.getLang("standardColor")+"
d||d>=60?"border-width:1px;":d>=10&&20>d?"border-width:1px 1px 0 1px;":"border-width:0 1px 0 1px;")+'">
"}var b=baidu.editor.utils,c=baidu.editor.ui.UIBase,d=baidu.editor.ui.ColorPicker=function(a){this.initOptions(a),this.noColorText=this.noColorText||this.editor.getLang("clearColor"),this.initUIBase()};d.prototype={getHtmlTpl:function(){return a(this.noColorText,this.editor)},_onTableClick:function(a){var b=a.target||a.srcElement,c=b.getAttribute("data-color");c&&this.fireEvent("pickcolor",c)},_onTableOver:function(a){var b=a.target||a.srcElement,c=b.getAttribute("data-color");c&&(this.getDom("preview").style.backgroundColor=c)},_onTableOut:function(){this.getDom("preview").style.backgroundColor=""},_onPickNoColor:function(){this.fireEvent("picknocolor")}},b.inherits(d,c);var e="ffffff,000000,eeece1,1f497d,4f81bd,c0504d,9bbb59,8064a2,4bacc6,f79646,f2f2f2,7f7f7f,ddd9c3,c6d9f0,dbe5f1,f2dcdb,ebf1dd,e5e0ec,dbeef3,fdeada,d8d8d8,595959,c4bd97,8db3e2,b8cce4,e5b9b7,d7e3bc,ccc1d9,b7dde8,fbd5b5,bfbfbf,3f3f3f,938953,548dd4,95b3d7,d99694,c3d69b,b2a2c7,92cddc,fac08f,a5a5a5,262626,494429,17365d,366092,953734,76923c,5f497a,31859b,e36c09,7f7f7f,0c0c0c,1d1b10,0f243e,244061,632423,4f6128,3f3151,205867,974806,c00000,ff0000,ffc000,ffff00,92d050,00b050,00b0f0,0070c0,002060,7030a0,".split(",")}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.uiUtils,c=baidu.editor.ui.UIBase,d=baidu.editor.ui.TablePicker=function(a){this.initOptions(a),this.initTablePicker()};d.prototype={defaultNumRows:10,defaultNumCols:10,maxNumRows:20,maxNumCols:20,numRows:10,numCols:10,lengthOfCellSide:22,initTablePicker:function(){this.initUIBase()},getHtmlTpl:function(){return'
'},_UIBase_render:c.prototype.render,render:function(a){this._UIBase_render(a),this.getDom("label").innerHTML="0"+this.editor.getLang("t_row")+" x 0"+this.editor.getLang("t_col")},_track:function(a,b){var c=this.getDom("overlay").style,d=this.lengthOfCellSide;c.width=a*d+"px",c.height=b*d+"px";var e=this.getDom("label");e.innerHTML=a+this.editor.getLang("t_col")+" x "+b+this.editor.getLang("t_row"),this.numCols=a,this.numRows=b},_onMouseOver:function(a,c){var d=a.relatedTarget||a.fromElement;b.contains(c,d)||c===d||(this.getDom("label").innerHTML="0"+this.editor.getLang("t_col")+" x 0"+this.editor.getLang("t_row"),this.getDom("overlay").style.visibility="")},_onMouseOut:function(a,c){var d=a.relatedTarget||a.toElement;b.contains(c,d)||c===d||(this.getDom("label").innerHTML="0"+this.editor.getLang("t_col")+" x 0"+this.editor.getLang("t_row"),this.getDom("overlay").style.visibility="hidden")},_onMouseMove:function(a,c){var d=(this.getDom("overlay").style,b.getEventOffset(a)),e=this.lengthOfCellSide,f=Math.ceil(d.left/e),g=Math.ceil(d.top/e);this._track(f,g)},_onClick:function(){this.fireEvent("picktable",this.numCols,this.numRows)}},a.inherits(d,c)}(),function(){var a=baidu.editor.browser,b=baidu.editor.dom.domUtils,c=baidu.editor.ui.uiUtils,d='onmousedown="$$.Stateful_onMouseDown(event, this);" onmouseup="$$.Stateful_onMouseUp(event, this);"'+(a.ie?' onmouseenter="$$.Stateful_onMouseEnter(event, this);" onmouseleave="$$.Stateful_onMouseLeave(event, this);"':' onmouseover="$$.Stateful_onMouseOver(event, this);" onmouseout="$$.Stateful_onMouseOut(event, this);"');baidu.editor.ui.Stateful={alwalysHoverable:!1,target:null,Stateful_init:function(){this._Stateful_dGetHtmlTpl=this.getHtmlTpl,this.getHtmlTpl=this.Stateful_getHtmlTpl},Stateful_getHtmlTpl:function(){var a=this._Stateful_dGetHtmlTpl();return a.replace(/stateful/g,function(){return d})},Stateful_onMouseEnter:function(a,b){this.target=b,this.isDisabled()&&!this.alwalysHoverable||(this.addState("hover"),this.fireEvent("over"))},Stateful_onMouseLeave:function(a,b){this.isDisabled()&&!this.alwalysHoverable||(this.removeState("hover"),this.removeState("active"),this.fireEvent("out"))},Stateful_onMouseOver:function(a,b){var d=a.relatedTarget;c.contains(b,d)||b===d||this.Stateful_onMouseEnter(a,b)},Stateful_onMouseOut:function(a,b){var d=a.relatedTarget;c.contains(b,d)||b===d||this.Stateful_onMouseLeave(a,b)},Stateful_onMouseDown:function(a,b){this.isDisabled()||this.addState("active")},Stateful_onMouseUp:function(a,b){this.isDisabled()||this.removeState("active")},Stateful_postRender:function(){this.disabled&&!this.hasState("disabled")&&this.addState("disabled")},hasState:function(a){return b.hasClass(this.getStateDom(),"edui-state-"+a)},addState:function(a){this.hasState(a)||(this.getStateDom().className+=" edui-state-"+a)},removeState:function(a){this.hasState(a)&&b.removeClasses(this.getStateDom(),["edui-state-"+a])},getStateDom:function(){return this.getDom("state")},isChecked:function(){return this.hasState("checked")},setChecked:function(a){!this.isDisabled()&&a?this.addState("checked"):this.removeState("checked")},isDisabled:function(){return this.hasState("disabled")},setDisabled:function(a){a?(this.removeState("hover"),this.removeState("checked"),this.removeState("active"),this.addState("disabled")):this.removeState("disabled")}}}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.UIBase,c=baidu.editor.ui.Stateful,d=baidu.editor.ui.Button=function(a){if(a.name){var b=a.name,c=a.cssRules;a.className||(a.className="edui-for-"+b),a.cssRules=".edui-default .edui-for-"+b+" .edui-icon {"+c+"}"}this.initOptions(a),this.initButton()};d.prototype={uiName:"button",label:"",title:"",showIcon:!0,showText:!0,cssRules:"",initButton:function(){this.initUIBase(),this.Stateful_init(),this.cssRules&&a.cssRule("edui-customize-"+this.name+"-style",this.cssRules)},getHtmlTpl:function(){return'
'+(this.showIcon?'
':"")+(this.showText?'
'+this.label+"
":"")+"
"},postRender:function(){this.Stateful_postRender(),this.setDisabled(this.disabled)},_onMouseDown:function(a){var b=a.target||a.srcElement,c=b&&b.tagName&&b.tagName.toLowerCase();return"input"==c||"object"==c||"object"==c?!1:void 0},_onClick:function(){this.isDisabled()||this.fireEvent("click")},setTitle:function(a){var b=this.getDom("label");b.innerHTML=a}},a.inherits(d,b),a.extend(d.prototype,c)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.uiUtils,c=(baidu.editor.dom.domUtils,baidu.editor.ui.UIBase),d=baidu.editor.ui.Stateful,e=baidu.editor.ui.SplitButton=function(a){this.initOptions(a),this.initSplitButton()};e.prototype={popup:null,uiName:"splitbutton",title:"",initSplitButton:function(){this.initUIBase(),this.Stateful_init();if(null!=this.popup){var a=this.popup;this.popup=null,this.setPopup(a)}},_UIBase_postRender:c.prototype.postRender,postRender:function(){this.Stateful_postRender(),this._UIBase_postRender()},setPopup:function(c){this.popup!==c&&(null!=this.popup&&this.popup.dispose(),c.addListener("show",a.bind(this._onPopupShow,this)),c.addListener("hide",a.bind(this._onPopupHide,this)),c.addListener("postrender",a.bind(function(){c.getDom("body").appendChild(b.createElementByHtml('
')),c.getDom().className+=" "+this.className},this)),this.popup=c)},_onPopupShow:function(){this.addState("opened")},_onPopupHide:function(){this.removeState("opened")},getHtmlTpl:function(){return'
'},showPopup:function(){var a=b.getClientRect(this.getDom());a.top-=this.popup.SHADOW_RADIUS,a.height+=this.popup.SHADOW_RADIUS,this.popup.showAnchorRect(a)},_onArrowClick:function(a,b){this.isDisabled()||this.showPopup()},_onButtonClick:function(){this.isDisabled()||this.fireEvent("buttonclick")}},a.inherits(e,c),a.extend(e.prototype,d,!0)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.uiUtils,c=baidu.editor.ui.ColorPicker,d=baidu.editor.ui.Popup,e=baidu.editor.ui.SplitButton,f=baidu.editor.ui.ColorButton=function(a){this.initOptions(a),this.initColorButton()};f.prototype={initColorButton:function(){var a=this;this.popup=new d({content:new c({noColorText:a.editor.getLang("clearColor"),editor:a.editor,onpickcolor:function(b,c){a._onPickColor(c)},onpicknocolor:function(b,c){a._onPickNoColor(c)}}),editor:a.editor}),this.initSplitButton()},_SplitButton_postRender:e.prototype.postRender,postRender:function(){this._SplitButton_postRender(),this.getDom("button_body").appendChild(b.createElementByHtml('
')), -this.getDom().className+=" edui-colorbutton"},setColor:function(a){this.getDom("colorlump").style.backgroundColor=a,this.color=a},_onPickColor:function(a){this.fireEvent("pickcolor",a)!==!1&&(this.setColor(a),this.popup.hide())},_onPickNoColor:function(a){this.fireEvent("picknocolor")!==!1&&this.popup.hide()}},a.inherits(f,e)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.Popup,c=baidu.editor.ui.TablePicker,d=baidu.editor.ui.SplitButton,e=baidu.editor.ui.TableButton=function(a){this.initOptions(a),this.initTableButton()};e.prototype={initTableButton:function(){var a=this;this.popup=new b({content:new c({editor:a.editor,onpicktable:function(b,c,d){a._onPickTable(c,d)}}),editor:a.editor}),this.initSplitButton()},_onPickTable:function(a,b){this.fireEvent("picktable",a,b)!==!1&&this.popup.hide()}},a.inherits(e,d)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.UIBase,c=baidu.editor.ui.AutoTypeSetPicker=function(a){this.initOptions(a),this.initAutoTypeSetPicker()};c.prototype={initAutoTypeSetPicker:function(){this.initUIBase()},getHtmlTpl:function(){var a=this.editor,b=a.options.autotypeset,c=a.getLang("autoTypeSet"),d="textAlignValue"+a.uid,e="imageBlockLineValue"+a.uid,f="symbolConverValue"+a.uid;return'
"+c.mergeLine+'"+c.delLine+'
"+c.removeFormat+'"+c.indent+'
"+c.alignment+'"+a.getLang("justifyleft")+'"+a.getLang("justifycenter")+'"+a.getLang("justifyright")+'
"+c.imageFloat+'"+a.getLang("default")+'"+a.getLang("justifyleft")+'"+a.getLang("justifycenter")+'"+a.getLang("justifyright")+'
"+c.removeFontsize+'"+c.removeFontFamily+'
"+c.removeHtml+'
"+c.pasteFilter+'
"+c.symbol+'"+c.bdc2sb+'"+c.tobdc+'
"},_UIBase_render:b.prototype.render},a.inherits(c,b)}(),function(){function a(a){for(var c,d={},e=a.getDom(),f=a.editor.uid,g=null,h=null,i=domUtils.getElementsByTagName(e,"input"),j=i.length-1;c=i[j--];)if(g=c.getAttribute("type"),"checkbox"==g)if(h=c.getAttribute("name"),d[h]&&delete d[h],c.checked){var k=document.getElementById(h+"Value"+f);if(k){if(/input/gi.test(k.tagName))d[h]=k.value;else for(var l,m=k.getElementsByTagName("input"),n=m.length-1;l=m[n--];)if(l.checked){d[h]=l.value;break}}else d[h]=!0}else d[h]=!1;else d[c.getAttribute("value")]=c.checked;for(var o,p=domUtils.getElementsByTagName(e,"select"),j=0;o=p[j++];){var q=o.getAttribute("name");d[q]=d[q]?o.value:""}b.extend(a.editor.options.autotypeset,d),a.editor.setPreferences("autotypeset",d)}var b=baidu.editor.utils,c=baidu.editor.ui.Popup,d=baidu.editor.ui.AutoTypeSetPicker,e=baidu.editor.ui.SplitButton,f=baidu.editor.ui.AutoTypeSetButton=function(a){this.initOptions(a),this.initAutoTypeSetButton()};f.prototype={initAutoTypeSetButton:function(){var b=this;this.popup=new c({content:new d({editor:b.editor}),editor:b.editor,hide:function(){!this._hidden&&this.getDom()&&(a(this),this.getDom().style.display="none",this._hidden=!0,this.fireEvent("hide"))}});var e=0;this.popup.addListener("postRenderAfter",function(){var c=this;if(!e){var d=this.getDom(),f=d.getElementsByTagName("button")[0];f.onclick=function(){a(c),b.editor.execCommand("autotypeset"),c.hide()},domUtils.on(d,"click",function(d){var e=d.target||d.srcElement,f=b.editor.uid;if(e&&"INPUT"==e.tagName){if("imageBlockLine"==e.name||"textAlign"==e.name||"symbolConver"==e.name)for(var g=e.checked,h=document.getElementById(e.name+"Value"+f),i=h.getElementsByTagName("input"),j={imageBlockLine:"none",textAlign:"left",symbolConver:"tobdc"},k=0;kf;f++)c=this.selectedIndex===f?' class="edui-cellalign-selected" ':"",d=f%3,0===d&&e.push(""),e.push('
'),2===d&&e.push("");return'
'+e.join("")+"
"},getStateDom:function(){return this.target},_onClick:function(a){var c=a.target||a.srcElement;/icon/.test(c.className)&&(this.items[c.parentNode.getAttribute("index")].onclick(),b.postHide(a))},_UIBase_render:d.prototype.render},a.inherits(e,d),a.extend(e.prototype,c,!0)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.Stateful,c=baidu.editor.ui.uiUtils,d=baidu.editor.ui.UIBase,e=baidu.editor.ui.PastePicker=function(a){this.initOptions(a),this.initPastePicker()};e.prototype={initPastePicker:function(){this.initUIBase(),this.Stateful_init()},getHtmlTpl:function(){return'
'+this.editor.getLang("pasteOpt")+'
'},getStateDom:function(){return this.target},format:function(a){this.editor.ui._isTransfer=!0,this.editor.fireEvent("pasteTransfer",a)},_onClick:function(a){var b=domUtils.getNextDomNode(a),d=c.getViewportRect().height,e=c.getClientRect(b);e.top+e.height>d?b.style.top=-e.height-a.offsetHeight+"px":b.style.top="",/hidden/gi.test(domUtils.getComputedStyle(b,"visibility"))?(b.style.visibility="visible",domUtils.addClass(a,"edui-state-opened")):(b.style.visibility="hidden",domUtils.removeClasses(a,"edui-state-opened"))},_UIBase_render:d.prototype.render},a.inherits(e,d),a.extend(e.prototype,b,!0)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.uiUtils,c=baidu.editor.ui.UIBase,d=baidu.editor.ui.Toolbar=function(a){this.initOptions(a),this.initToolbar()};d.prototype={items:null,initToolbar:function(){this.items=this.items||[],this.initUIBase()},add:function(a,b){void 0===b?this.items.push(a):this.items.splice(b,0,a)},getHtmlTpl:function(){for(var a=[],b=0;b'+a.join("")+""},postRender:function(){for(var a=this.getDom(),c=0;c
'},postRender:function(){},queryAutoHide:function(){return!0}};h.prototype={items:null,uiName:"menu",initMenu:function(){this.items=this.items||[],this.initPopup(),this.initItems()},initItems:function(){for(var a=0;a'+a.join("")+""},_Popup_postRender:e.prototype.postRender,postRender:function(){for(var a=this,d=0;d
'+this.renderLabelHtml()+"
"},postRender:function(){var a=this;this.addListener("over",function(){a.ownerMenu.fireEvent("submenuover",a),a.subMenu&&a.delayShowSubMenu()}),this.subMenu&&(this.getDom().className+=" edui-hassubmenu",this.subMenu.render(),this.addListener("out",function(){a.delayHideSubMenu()}),this.subMenu.addListener("over",function(){clearTimeout(a._closingTimer),a._closingTimer=null,a.addState("opened")}),this.ownerMenu.addListener("hide",function(){a.hideSubMenu()}),this.ownerMenu.addListener("submenuover",function(b,c){c!==a&&a.delayHideSubMenu()}),this.subMenu._bakQueryAutoHide=this.subMenu.queryAutoHide,this.subMenu.queryAutoHide=function(b){return b&&c.contains(a.getDom(),b)?!1:this._bakQueryAutoHide(b)}),this.getDom().style.tabIndex="-1",c.makeUnselectable(this.getDom()),this.Stateful_postRender()},delayShowSubMenu:function(){var a=this;a.isDisabled()||(a.addState("opened"),clearTimeout(a._showingTimer),clearTimeout(a._closingTimer),a._closingTimer=null,a._showingTimer=setTimeout(function(){a.showSubMenu()},250))},delayHideSubMenu:function(){var a=this;a.isDisabled()||(a.removeState("opened"),clearTimeout(a._showingTimer),a._closingTimer||(a._closingTimer=setTimeout(function(){a.hasState("opened")||a.hideSubMenu(),a._closingTimer=null},400)))},renderLabelHtml:function(){return'
'+(this.label||"")+"
"},getStateDom:function(){return this.getDom()},queryAutoHide:function(a){return this.subMenu&&this.hasState("opened")?this.subMenu.queryAutoHide(a):void 0},_onClick:function(a,b){this.hasState("disabled")||this.fireEvent("click",a,b)!==!1&&(this.subMenu?this.showSubMenu():e.postHide(a))},showSubMenu:function(){var a=c.getClientRect(this.getDom());a.right-=5,a.left+=2,a.width-=7,a.top-=4,a.bottom+=4,a.height+=8,this.subMenu.showAnchorRect(a,!0,!0)},hideSubMenu:function(){this.subMenu.hide()}},a.inherits(j,d),a.extend(j.prototype,f,!0)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.uiUtils,c=baidu.editor.ui.Menu,d=baidu.editor.ui.SplitButton,e=baidu.editor.ui.Combox=function(a){this.initOptions(a),this.initCombox()};e.prototype={uiName:"combox",onbuttonclick:function(){this.showPopup()},initCombox:function(){var a=this;this.items=this.items||[];for(var b=0;bd.right&&(g=d.right-e.width);var h=a.top;h+e.height>d.bottom&&(h=d.bottom-e.height),c.style.left=Math.max(g,0)+"px",c.style.top=Math.max(h,0)+"px"},showAtCenter:function(){var a=f.getViewportRect();if(this.fullscreen){var b=this.getDom(),c=this.getDom("content");b.style.display="block";var d=UE.ui.uiUtils.getClientRect(b),g=UE.ui.uiUtils.getClientRect(c);b.style.left="-100000px",c.style.width=a.width-d.width+g.width+"px",c.style.height=a.height-d.height+g.height+"px",b.style.width=a.width+"px",b.style.height=a.height+"px",b.style.left=0,this._originalContext={html:{overflowX:document.documentElement.style.overflowX,overflowY:document.documentElement.style.overflowY},body:{overflowX:document.body.style.overflowX,overflowY:document.body.style.overflowY}},document.documentElement.style.overflowX="hidden",document.documentElement.style.overflowY="hidden",document.body.style.overflowX="hidden",document.body.style.overflowY="hidden"}else{this.getDom().style.display="";var h=this.fitSize(),i=0|this.getDom("titlebar").offsetHeight,j=a.width/2-h.width/2,k=a.height/2-(h.height-i)/2-i,l=this.getDom();this.safeSetOffset({left:Math.max(0|j,0),top:Math.max(0|k,0)}),e.hasClass(l,"edui-state-centered")||(l.className+=" edui-state-centered")}this._show()},getContentHtml:function(){var a="";return"string"==typeof this.content?a=this.content:this.iframeUrl&&(a=''),a},getHtmlTpl:function(){var a="";if(this.buttons){for(var b=[],c=0;c
'+b.join("")+"
"}return'
'+(this.title||"")+"
"+this.closeButton.renderHtml()+'
'+(this.autoReset?"":this.getContentHtml())+"
"+a+"
"},postRender:function(){this.modalMask.getDom()||(this.modalMask.render(),this.modalMask.hide()),this.dragMask.getDom()||(this.dragMask.render(),this.dragMask.hide());var a=this;if(this.addListener("show",function(){a.modalMask.show(this.getDom().style.zIndex-2)}),this.addListener("hide",function(){a.modalMask.hide()}),this.buttons)for(var b=0;b',a.editor.container.style.zIndex&&(this.getDom().style.zIndex=1*a.editor.container.style.zIndex+1))}}),this.onbuttonclick=function(){this.showPopup()},this.initSplitButton()}},a.inherits(d,c)}(),function(){function a(a){var b=a.target||a.srcElement,c=g.findParent(b,function(a){return g.hasClass(a,"edui-shortcutmenu")||g.hasClass(a,"edui-popup")},!0);if(!c)for(var d,e=0;d=h[e++];)d.hide()}var b,c=baidu.editor.ui,d=c.UIBase,e=c.uiUtils,f=baidu.editor.utils,g=baidu.editor.dom.domUtils,h=[],i=!1,j=c.ShortCutMenu=function(a){this.initOptions(a),this.initShortCutMenu()};j.postHide=a,j.prototype={isHidden:!0,SPACE:5,initShortCutMenu:function(){this.items=this.items||[],this.initUIBase(),this.initItems(),this.initEvent(),h.push(this)},initEvent:function(){var a=this,c=a.editor.document;g.on(c,"mousemove",function(c){if(a.isHidden===!1){if(a.getSubMenuMark()||"contextmenu"==a.eventType)return;var d=!0,e=a.getDom(),f=e.offsetWidth,g=e.offsetHeight,h=f/2+a.SPACE,i=g/2,j=Math.abs(c.screenX-a.left),k=Math.abs(c.screenY-a.top);clearTimeout(b),b=setTimeout(function(){k>0&&i>k?a.setOpacity(e,"1"):k>i&&i+70>k?(a.setOpacity(e,"0.5"),d=!1):k>i+70&&i+140>k&&a.hide(),d&&j>0&&h>j?a.setOpacity(e,"1"):j>h&&h+70>j?a.setOpacity(e,"0.5"):j>h+70&&h+140>j&&a.hide()})}}),browser.chrome&&g.on(c,"mouseout",function(b){var c=b.relatedTarget||b.toElement;null!=c&&"HTML"!=c.tagName||a.hide()}),a.editor.addListener("afterhidepop",function(){a.isHidden||(i=!0)})},initItems:function(){if(f.isArray(this.items))for(var a=0,b=this.items.length;b>a;a++){var d=this.items[a].toLowerCase();c[d]&&(this.items[a]=new c[d](this.editor),this.items[a].className+=" edui-shortcutsubmenu ")}},setOpacity:function(a,b){browser.ie&&browser.version<9?a.style.filter="alpha(opacity = "+100*parseFloat(b)+");":a.style.opacity=b},getSubMenuMark:function(){i=!1;for(var a,b=e.getFixedLayer(),c=g.getElementsByTagName(b,"div",function(a){return g.hasClass(a,"edui-shortcutsubmenu edui-popup")}),d=0;a=c[d++];)"none"!=a.style.display&&(i=!0);return i},show:function(a,b){function c(a){a.left<0&&(a.left=0),a.top<0&&(a.top=0),i.style.cssText="position:absolute;left:"+a.left+"px;top:"+a.top+"px;"}function d(a){a.tagName||(a=a.getDom()),h.left=parseInt(a.style.left),h.top=parseInt(a.style.top),h.top-=i.offsetHeight+15,c(h)}var f=this,h={},i=this.getDom(),j=e.getFixedLayer();if(f.eventType=a.type,i.style.cssText="display:block;left:-9999px","contextmenu"==a.type&&b){var k=g.getElementsByTagName(j,"div","edui-contextmenu")[0];k?d(k):f.editor.addListener("aftershowcontextmenu",function(a,b){d(b)})}else h=e.getViewportOffsetByEvent(a),h.top-=i.offsetHeight+f.SPACE,h.left+=f.SPACE+20,c(h),f.setOpacity(i,.2);f.isHidden=!1,f.left=a.screenX+i.offsetWidth/2-f.SPACE,f.top=a.screenY-i.offsetHeight/2-f.SPACE,f.editor&&(i.style.zIndex=1*f.editor.container.style.zIndex+10,j.style.zIndex=i.style.zIndex-1)},hide:function(){this.getDom()&&(this.getDom().style.display="none"),this.isHidden=!0},postRender:function(){if(f.isArray(this.items))for(var a,b=0;a=this.items[b++];)a.postRender()},getHtmlTpl:function(){var a;if(f.isArray(this.items)){a=[];for(var b=0;b'+a+""}},f.inherits(j,d),g.on(document,"mousedown",function(b){a(b)}),g.on(window,"scroll",function(b){a(b)})}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.UIBase,c=baidu.editor.ui.Breakline=function(a){this.initOptions(a),this.initSeparator()};c.prototype={uiName:"Breakline",initSeparator:function(){this.initUIBase()},getHtmlTpl:function(){return"
"}},a.inherits(c,b)}(),function(){var a=baidu.editor.utils,b=baidu.editor.dom.domUtils,c=baidu.editor.ui.UIBase,d=baidu.editor.ui.Message=function(a){this.initOptions(a),this.initMessage()};d.prototype={initMessage:function(){this.initUIBase()},getHtmlTpl:function(){return'
×
'},reset:function(a){var b=this;a.keepshow||(clearTimeout(this.timer),b.timer=setTimeout(function(){b.hide()},a.timeout||4e3)),void 0!==a.content&&b.setContent(a.content),void 0!==a.type&&b.setType(a.type),b.show()},postRender:function(){var a=this,c=this.getDom("closer");c&&b.on(c,"click",function(){a.hide()})},setContent:function(a){this.getDom("content").innerHTML=a},setType:function(a){a=a||"info";var b=this.getDom("body");b.className=b.className.replace(/edui-message-type-[\w-]+/,"edui-message-type-"+a)},getContent:function(){return this.getDom("content").innerHTML},getType:function(){var a=this.getDom("body").match(/edui-message-type-([\w-]+)/);return a?a[1]:""},show:function(){this.getDom().style.display="block"},hide:function(){var a=this.getDom();a&&(a.style.display="none",a.parentNode&&a.parentNode.removeChild(a))}},a.inherits(d,c)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui,c=b.Dialog;b.buttons={},b.Dialog=function(a){var b=new c(a);return b.addListener("hide",function(){if(b.editor){var a=b.editor;try{if(browser.gecko){var c=a.window.scrollY,d=a.window.scrollX;a.body.focus(),a.window.scrollTo(d,c)}else a.focus()}catch(e){}}}),b};for(var d,e={anchor:"~/dialogs/anchor/anchor.html",insertimage:"~/dialogs/image/image.html",link:"~/dialogs/link/link.html",spechars:"~/dialogs/spechars/spechars.html",searchreplace:"~/dialogs/searchreplace/searchreplace.html",map:"~/dialogs/map/map.html",gmap:"~/dialogs/gmap/gmap.html",insertvideo:"~/dialogs/video/video.html",help:"~/dialogs/help/help.html",preview:"~/dialogs/preview/preview.html",emotion:"~/dialogs/emotion/emotion.html",wordimage:"~/dialogs/wordimage/wordimage.html",attachment:"~/dialogs/attachment/attachment.html",insertframe:"~/dialogs/insertframe/insertframe.html",edittip:"~/dialogs/table/edittip.html",edittable:"~/dialogs/table/edittable.html",edittd:"~/dialogs/table/edittd.html",webapp:"~/dialogs/webapp/webapp.html",snapscreen:"~/dialogs/snapscreen/snapscreen.html",scrawl:"~/dialogs/scrawl/scrawl.html",music:"~/dialogs/music/music.html",template:"~/dialogs/template/template.html",background:"~/dialogs/background/background.html",charts:"~/dialogs/charts/charts.html"},f=["undo","redo","formatmatch","bold","italic","underline","fontborder","touppercase","tolowercase","strikethrough","subscript","superscript","source","indent","outdent","blockquote","pasteplain","pagebreak","selectall","print","horizontal","removeformat","time","date","unlink","insertparagraphbeforetable","insertrow","insertcol","mergeright","mergedown","deleterow","deletecol","splittorows","splittocols","splittocells","mergecells","deletetable","drafts"],g=0;d=f[g++];)d=d.toLowerCase(),b[d]=function(a){return function(c){var d=new b.Button({className:"edui-for-"+a,title:c.options.labelMap[a]||c.getLang("labelMap."+a)||"",onclick:function(){c.execCommand(a)},theme:c.options.theme,showText:!1});return b.buttons[a]=d,c.addListener("selectionchange",function(b,e,f){var g=c.queryCommandState(a);-1==g?(d.setDisabled(!0),d.setChecked(!1)):f||(d.setDisabled(!1),d.setChecked(g))}),d}}(d);b.cleardoc=function(a){var c=new b.Button({className:"edui-for-cleardoc",title:a.options.labelMap.cleardoc||a.getLang("labelMap.cleardoc")||"",theme:a.options.theme,onclick:function(){confirm(a.getLang("confirmClear"))&&a.execCommand("cleardoc")}});return b.buttons.cleardoc=c,a.addListener("selectionchange",function(){c.setDisabled(-1==a.queryCommandState("cleardoc"))}),c};var h={justify:["left","right","center","justify"],imagefloat:["none","left","center","right"],directionality:["ltr","rtl"]};for(var i in h)!function(a,c){for(var d,e=0;d=c[e++];)!function(c){ +this.getDom().className+=" edui-colorbutton"},setColor:function(a){this.getDom("colorlump").style.backgroundColor=a,this.color=a},_onPickColor:function(a){this.fireEvent("pickcolor",a)!==!1&&(this.setColor(a),this.popup.hide())},_onPickNoColor:function(a){this.fireEvent("picknocolor")!==!1&&this.popup.hide()}},a.inherits(f,e)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.Popup,c=baidu.editor.ui.TablePicker,d=baidu.editor.ui.SplitButton,e=baidu.editor.ui.TableButton=function(a){this.initOptions(a),this.initTableButton()};e.prototype={initTableButton:function(){var a=this;this.popup=new b({content:new c({editor:a.editor,onpicktable:function(b,c,d){a._onPickTable(c,d)}}),editor:a.editor}),this.initSplitButton()},_onPickTable:function(a,b){this.fireEvent("picktable",a,b)!==!1&&this.popup.hide()}},a.inherits(e,d)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.UIBase,c=baidu.editor.ui.AutoTypeSetPicker=function(a){this.initOptions(a),this.initAutoTypeSetPicker()};c.prototype={initAutoTypeSetPicker:function(){this.initUIBase()},getHtmlTpl:function(){var a=this.editor,b=a.options.autotypeset,c=a.getLang("autoTypeSet"),d="textAlignValue"+a.uid,e="imageBlockLineValue"+a.uid,f="symbolConverValue"+a.uid;return'
"+c.mergeLine+'"+c.delLine+'
"+c.removeFormat+'"+c.indent+'
"+c.alignment+'"+a.getLang("justifyleft")+'"+a.getLang("justifycenter")+'"+a.getLang("justifyright")+'
"+c.imageFloat+'"+a.getLang("default")+'"+a.getLang("justifyleft")+'"+a.getLang("justifycenter")+'"+a.getLang("justifyright")+'
"+c.removeFontsize+'"+c.removeFontFamily+'
"+c.removeHtml+'
"+c.pasteFilter+'
"+c.symbol+'"+c.bdc2sb+'"+c.tobdc+'
"},_UIBase_render:b.prototype.render},a.inherits(c,b)}(),function(){function a(a){for(var c,d={},e=a.getDom(),f=a.editor.uid,g=null,h=null,i=domUtils.getElementsByTagName(e,"input"),j=i.length-1;c=i[j--];)if(g=c.getAttribute("type"),"checkbox"==g)if(h=c.getAttribute("name"),d[h]&&delete d[h],c.checked){var k=document.getElementById(h+"Value"+f);if(k){if(/input/gi.test(k.tagName))d[h]=k.value;else for(var l,m=k.getElementsByTagName("input"),n=m.length-1;l=m[n--];)if(l.checked){d[h]=l.value;break}}else d[h]=!0}else d[h]=!1;else d[c.getAttribute("value")]=c.checked;for(var o,p=domUtils.getElementsByTagName(e,"select"),j=0;o=p[j++];){var q=o.getAttribute("name");d[q]=d[q]?o.value:""}b.extend(a.editor.options.autotypeset,d),a.editor.setPreferences("autotypeset",d)}var b=baidu.editor.utils,c=baidu.editor.ui.Popup,d=baidu.editor.ui.AutoTypeSetPicker,e=baidu.editor.ui.SplitButton,f=baidu.editor.ui.AutoTypeSetButton=function(a){this.initOptions(a),this.initAutoTypeSetButton()};f.prototype={initAutoTypeSetButton:function(){var b=this;this.popup=new c({content:new d({editor:b.editor}),editor:b.editor,hide:function(){!this._hidden&&this.getDom()&&(a(this),this.getDom().style.display="none",this._hidden=!0,this.fireEvent("hide"))}});var e=0;this.popup.addListener("postRenderAfter",function(){var c=this;if(!e){var d=this.getDom(),f=d.getElementsByTagName("button")[0];f.onclick=function(){a(c),b.editor.execCommand("autotypeset"),c.hide()},domUtils.on(d,"click",function(d){var e=d.target||d.srcElement,f=b.editor.uid;if(e&&"INPUT"==e.tagName){if("imageBlockLine"==e.name||"textAlign"==e.name||"symbolConver"==e.name)for(var g=e.checked,h=document.getElementById(e.name+"Value"+f),i=h.getElementsByTagName("input"),j={imageBlockLine:"none",textAlign:"left",symbolConver:"tobdc"},k=0;kf;f++)c=this.selectedIndex===f?' class="edui-cellalign-selected" ':"",d=f%3,0===d&&e.push(""),e.push('
'),2===d&&e.push("");return'
'+e.join("")+"
"},getStateDom:function(){return this.target},_onClick:function(a){var c=a.target||a.srcElement;/icon/.test(c.className)&&(this.items[c.parentNode.getAttribute("index")].onclick(),b.postHide(a))},_UIBase_render:d.prototype.render},a.inherits(e,d),a.extend(e.prototype,c,!0)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.Stateful,c=baidu.editor.ui.uiUtils,d=baidu.editor.ui.UIBase,e=baidu.editor.ui.PastePicker=function(a){this.initOptions(a),this.initPastePicker()};e.prototype={initPastePicker:function(){this.initUIBase(),this.Stateful_init()},getHtmlTpl:function(){return'
'+this.editor.getLang("pasteOpt")+'
'},getStateDom:function(){return this.target},format:function(a){this.editor.ui._isTransfer=!0,this.editor.fireEvent("pasteTransfer",a)},_onClick:function(a){var b=domUtils.getNextDomNode(a),d=c.getViewportRect().height,e=c.getClientRect(b);e.top+e.height>d?b.style.top=-e.height-a.offsetHeight+"px":b.style.top="",/hidden/gi.test(domUtils.getComputedStyle(b,"visibility"))?(b.style.visibility="visible",domUtils.addClass(a,"edui-state-opened")):(b.style.visibility="hidden",domUtils.removeClasses(a,"edui-state-opened"))},_UIBase_render:d.prototype.render},a.inherits(e,d),a.extend(e.prototype,b,!0)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.uiUtils,c=baidu.editor.ui.UIBase,d=baidu.editor.ui.Toolbar=function(a){this.initOptions(a),this.initToolbar()};d.prototype={items:null,initToolbar:function(){this.items=this.items||[],this.initUIBase()},add:function(a,b){void 0===b?this.items.push(a):this.items.splice(b,0,a)},getHtmlTpl:function(){for(var a=[],b=0;b'+a.join("")+""},postRender:function(){for(var a=this.getDom(),c=0;c
'},postRender:function(){},queryAutoHide:function(){return!0}};h.prototype={items:null,uiName:"menu",initMenu:function(){this.items=this.items||[],this.initPopup(),this.initItems()},initItems:function(){for(var a=0;a'+a.join("")+""},_Popup_postRender:e.prototype.postRender,postRender:function(){for(var a=this,d=0;d
'+this.renderLabelHtml()+"
"},postRender:function(){var a=this;this.addListener("over",function(){a.ownerMenu.fireEvent("submenuover",a),a.subMenu&&a.delayShowSubMenu()}),this.subMenu&&(this.getDom().className+=" edui-hassubmenu",this.subMenu.render(),this.addListener("out",function(){a.delayHideSubMenu()}),this.subMenu.addListener("over",function(){clearTimeout(a._closingTimer),a._closingTimer=null,a.addState("opened")}),this.ownerMenu.addListener("hide",function(){a.hideSubMenu()}),this.ownerMenu.addListener("submenuover",function(b,c){c!==a&&a.delayHideSubMenu()}),this.subMenu._bakQueryAutoHide=this.subMenu.queryAutoHide,this.subMenu.queryAutoHide=function(b){return b&&c.contains(a.getDom(),b)?!1:this._bakQueryAutoHide(b)}),this.getDom().style.tabIndex="-1",c.makeUnselectable(this.getDom()),this.Stateful_postRender()},delayShowSubMenu:function(){var a=this;a.isDisabled()||(a.addState("opened"),clearTimeout(a._showingTimer),clearTimeout(a._closingTimer),a._closingTimer=null,a._showingTimer=setTimeout(function(){a.showSubMenu()},250))},delayHideSubMenu:function(){var a=this;a.isDisabled()||(a.removeState("opened"),clearTimeout(a._showingTimer),a._closingTimer||(a._closingTimer=setTimeout(function(){a.hasState("opened")||a.hideSubMenu(),a._closingTimer=null},400)))},renderLabelHtml:function(){return'
'+(this.label||"")+"
"},getStateDom:function(){return this.getDom()},queryAutoHide:function(a){return this.subMenu&&this.hasState("opened")?this.subMenu.queryAutoHide(a):void 0},_onClick:function(a,b){this.hasState("disabled")||this.fireEvent("click",a,b)!==!1&&(this.subMenu?this.showSubMenu():e.postHide(a))},showSubMenu:function(){var a=c.getClientRect(this.getDom());a.right-=5,a.left+=2,a.width-=7,a.top-=4,a.bottom+=4,a.height+=8,this.subMenu.showAnchorRect(a,!0,!0)},hideSubMenu:function(){this.subMenu.hide()}},a.inherits(j,d),a.extend(j.prototype,f,!0)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.uiUtils,c=baidu.editor.ui.Menu,d=baidu.editor.ui.SplitButton,e=baidu.editor.ui.Combox=function(a){this.initOptions(a),this.initCombox()};e.prototype={uiName:"combox",onbuttonclick:function(){this.showPopup()},initCombox:function(){var a=this;this.items=this.items||[];for(var b=0;bd.right&&(g=d.right-e.width);var h=a.top;h+e.height>d.bottom&&(h=d.bottom-e.height),c.style.left=Math.max(g,0)+"px",c.style.top=Math.max(h,0)+"px"},showAtCenter:function(){var a=f.getViewportRect();if(this.fullscreen){var b=this.getDom(),c=this.getDom("content");b.style.display="block";var d=UE.ui.uiUtils.getClientRect(b),g=UE.ui.uiUtils.getClientRect(c);b.style.left="-100000px",c.style.width=a.width-d.width+g.width+"px",c.style.height=a.height-d.height+g.height+"px",b.style.width=a.width+"px",b.style.height=a.height+"px",b.style.left=0,this._originalContext={html:{overflowX:document.documentElement.style.overflowX,overflowY:document.documentElement.style.overflowY},body:{overflowX:document.body.style.overflowX,overflowY:document.body.style.overflowY}},document.documentElement.style.overflowX="hidden",document.documentElement.style.overflowY="hidden",document.body.style.overflowX="hidden",document.body.style.overflowY="hidden"}else{this.getDom().style.display="";var h=this.fitSize(),i=0|this.getDom("titlebar").offsetHeight,j=a.width/2-h.width/2,k=a.height/2-(h.height-i)/2-i,l=this.getDom();this.safeSetOffset({left:Math.max(0|j,0),top:Math.max(0|k,0)}),e.hasClass(l,"edui-state-centered")||(l.className+=" edui-state-centered")}this._show()},getContentHtml:function(){var a="";return"string"==typeof this.content?a=this.content:this.iframeUrl&&(a=''),a},getHtmlTpl:function(){var a="";if(this.buttons){for(var b=[],c=0;c
'+b.join("")+"
"}return'
'+(this.title||"")+"
"+this.closeButton.renderHtml()+'
'+(this.autoReset?"":this.getContentHtml())+"
"+a+"
"},postRender:function(){this.modalMask.getDom()||(this.modalMask.render(),this.modalMask.hide()),this.dragMask.getDom()||(this.dragMask.render(),this.dragMask.hide());var a=this;if(this.addListener("show",function(){a.modalMask.show(this.getDom().style.zIndex-2)}),this.addListener("hide",function(){a.modalMask.hide()}),this.buttons)for(var b=0;b',a.editor.container.style.zIndex&&(this.getDom().style.zIndex=1*a.editor.container.style.zIndex+1))}}),this.onbuttonclick=function(){this.showPopup()},this.initSplitButton()}},a.inherits(d,c)}(),function(){function a(a){var b=a.target||a.srcElement,c=g.findParent(b,function(a){return g.hasClass(a,"edui-shortcutmenu")||g.hasClass(a,"edui-popup")},!0);if(!c)for(var d,e=0;d=h[e++];)d.hide()}var b,c=baidu.editor.ui,d=c.UIBase,e=c.uiUtils,f=baidu.editor.utils,g=baidu.editor.dom.domUtils,h=[],i=!1,j=c.ShortCutMenu=function(a){this.initOptions(a),this.initShortCutMenu()};j.postHide=a,j.prototype={isHidden:!0,SPACE:5,initShortCutMenu:function(){this.items=this.items||[],this.initUIBase(),this.initItems(),this.initEvent(),h.push(this)},initEvent:function(){var a=this,c=a.editor.document;g.on(c,"mousemove",function(c){if(a.isHidden===!1){if(a.getSubMenuMark()||"contextmenu"==a.eventType)return;var d=!0,e=a.getDom(),f=e.offsetWidth,g=e.offsetHeight,h=f/2+a.SPACE,i=g/2,j=Math.abs(c.screenX-a.left),k=Math.abs(c.screenY-a.top);clearTimeout(b),b=setTimeout(function(){k>0&&i>k?a.setOpacity(e,"1"):k>i&&i+70>k?(a.setOpacity(e,"0.5"),d=!1):k>i+70&&i+140>k&&a.hide(),d&&j>0&&h>j?a.setOpacity(e,"1"):j>h&&h+70>j?a.setOpacity(e,"0.5"):j>h+70&&h+140>j&&a.hide()})}}),browser.chrome&&g.on(c,"mouseout",function(b){var c=b.relatedTarget||b.toElement;null!=c&&"HTML"!=c.tagName||a.hide()}),a.editor.addListener("afterhidepop",function(){a.isHidden||(i=!0)})},initItems:function(){if(f.isArray(this.items))for(var a=0,b=this.items.length;b>a;a++){var d=this.items[a].toLowerCase();c[d]&&(this.items[a]=new c[d](this.editor),this.items[a].className+=" edui-shortcutsubmenu ")}},setOpacity:function(a,b){browser.ie&&browser.version<9?a.style.filter="alpha(opacity = "+100*parseFloat(b)+");":a.style.opacity=b},getSubMenuMark:function(){i=!1;for(var a,b=e.getFixedLayer(),c=g.getElementsByTagName(b,"div",function(a){return g.hasClass(a,"edui-shortcutsubmenu edui-popup")}),d=0;a=c[d++];)"none"!=a.style.display&&(i=!0);return i},show:function(a,b){function c(a){a.left<0&&(a.left=0),a.top<0&&(a.top=0),i.style.cssText="position:absolute;left:"+a.left+"px;top:"+a.top+"px;"}function d(a){a.tagName||(a=a.getDom()),h.left=parseInt(a.style.left),h.top=parseInt(a.style.top),h.top-=i.offsetHeight+15,c(h)}var f=this,h={},i=this.getDom(),j=e.getFixedLayer();if(f.eventType=a.type,i.style.cssText="display:block;left:-9999px","contextmenu"==a.type&&b){var k=g.getElementsByTagName(j,"div","edui-contextmenu")[0];k?d(k):f.editor.addListener("aftershowcontextmenu",function(a,b){d(b)})}else h=e.getViewportOffsetByEvent(a),h.top-=i.offsetHeight+f.SPACE,h.left+=f.SPACE+20,c(h),f.setOpacity(i,.2);f.isHidden=!1,f.left=a.screenX+i.offsetWidth/2-f.SPACE,f.top=a.screenY-i.offsetHeight/2-f.SPACE,f.editor&&(i.style.zIndex=1*f.editor.container.style.zIndex+10,j.style.zIndex=i.style.zIndex-1)},hide:function(){this.getDom()&&(this.getDom().style.display="none"),this.isHidden=!0},postRender:function(){if(f.isArray(this.items))for(var a,b=0;a=this.items[b++];)a.postRender()},getHtmlTpl:function(){var a;if(f.isArray(this.items)){a=[];for(var b=0;b'+a+""}},f.inherits(j,d),g.on(document,"mousedown",function(b){a(b)}),g.on(window,"scroll",function(b){a(b)})}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui.UIBase,c=baidu.editor.ui.Breakline=function(a){this.initOptions(a),this.initSeparator()};c.prototype={uiName:"Breakline",initSeparator:function(){this.initUIBase()},getHtmlTpl:function(){return"
"}},a.inherits(c,b)}(),function(){var a=baidu.editor.utils,b=baidu.editor.dom.domUtils,c=baidu.editor.ui.UIBase,d=baidu.editor.ui.Message=function(a){this.initOptions(a),this.initMessage()};d.prototype={initMessage:function(){this.initUIBase()},getHtmlTpl:function(){return'
×
'},reset:function(a){var b=this;a.keepshow||(clearTimeout(this.timer),b.timer=setTimeout(function(){b.hide()},a.timeout||4e3)),void 0!==a.content&&b.setContent(a.content),void 0!==a.type&&b.setType(a.type),b.show()},postRender:function(){var a=this,c=this.getDom("closer");c&&b.on(c,"click",function(){a.hide()})},setContent:function(a){this.getDom("content").innerHTML=a},setType:function(a){a=a||"info";var b=this.getDom("body");b.className=b.className.replace(/edui-message-type-[\w-]+/,"edui-message-type-"+a)},getContent:function(){return this.getDom("content").innerHTML},getType:function(){var a=this.getDom("body").match(/edui-message-type-([\w-]+)/);return a?a[1]:""},show:function(){this.getDom().style.display="block"},hide:function(){var a=this.getDom();a&&(a.style.display="none",a.parentNode&&a.parentNode.removeChild(a))}},a.inherits(d,c)}(),function(){var a=baidu.editor.utils,b=baidu.editor.ui,c=b.Dialog;b.buttons={},b.Dialog=function(a){var b=new c(a);return b.addListener("hide",function(){if(b.editor){var a=b.editor;try{if(browser.gecko){var c=a.window.scrollY,d=a.window.scrollX;a.body.focus(),a.window.scrollTo(d,c)}else a.focus()}catch(e){}}}),b};for(var d,e={anchor:"~/dialogs/anchor/anchor.html",insertimage:"~/dialogs/images/images.html",link:"~/dialogs/link/link.html",spechars:"~/dialogs/spechars/spechars.html",searchreplace:"~/dialogs/searchreplace/searchreplace.html",map:"~/dialogs/map/map.html",gmap:"~/dialogs/gmap/gmap.html",insertvideo:"~/dialogs/video/video.html",help:"~/dialogs/help/help.html",preview:"~/dialogs/preview/preview.html",emotion:"~/dialogs/emotion/emotion.html",wordimage:"~/dialogs/wordimage/wordimage.html",attachment:"~/dialogs/attachment/attachment.html",insertframe:"~/dialogs/insertframe/insertframe.html",edittip:"~/dialogs/table/edittip.html",edittable:"~/dialogs/table/edittable.html",edittd:"~/dialogs/table/edittd.html",webapp:"~/dialogs/webapp/webapp.html",snapscreen:"~/dialogs/snapscreen/snapscreen.html",scrawl:"~/dialogs/scrawl/scrawl.html",music:"~/dialogs/music/music.html",template:"~/dialogs/template/template.html",background:"~/dialogs/background/background.html",charts:"~/dialogs/charts/charts.html"},f=["undo","redo","formatmatch","bold","italic","underline","fontborder","touppercase","tolowercase","strikethrough","subscript","superscript","source","indent","outdent","blockquote","pasteplain","pagebreak","selectall","print","horizontal","removeformat","time","date","unlink","insertparagraphbeforetable","insertrow","insertcol","mergeright","mergedown","deleterow","deletecol","splittorows","splittocols","splittocells","mergecells","deletetable","drafts"],g=0;d=f[g++];)d=d.toLowerCase(),b[d]=function(a){return function(c){var d=new b.Button({className:"edui-for-"+a,title:c.options.labelMap[a]||c.getLang("labelMap."+a)||"",onclick:function(){c.execCommand(a)},theme:c.options.theme,showText:!1});return b.buttons[a]=d,c.addListener("selectionchange",function(b,e,f){var g=c.queryCommandState(a);-1==g?(d.setDisabled(!0),d.setChecked(!1)):f||(d.setDisabled(!1),d.setChecked(g))}),d}}(d);b.cleardoc=function(a){var c=new b.Button({className:"edui-for-cleardoc",title:a.options.labelMap.cleardoc||a.getLang("labelMap.cleardoc")||"",theme:a.options.theme,onclick:function(){confirm(a.getLang("confirmClear"))&&a.execCommand("cleardoc")}});return b.buttons.cleardoc=c,a.addListener("selectionchange",function(){c.setDisabled(-1==a.queryCommandState("cleardoc"))}),c};var h={justify:["left","right","center","justify"],imagefloat:["none","left","center","right"],directionality:["ltr","rtl"]};for(var i in h)!function(a,c){for(var d,e=0;d=c[e++];)!function(c){ b[a.replace("float","")+c]=function(d){var e=new b.Button({className:"edui-for-"+a.replace("float","")+c,title:d.options.labelMap[a.replace("float","")+c]||d.getLang("labelMap."+a.replace("float","")+c)||"",theme:d.options.theme,onclick:function(){d.execCommand(a,c)}});return b.buttons[a]=e,d.addListener("selectionchange",function(b,f,g){e.setDisabled(-1==d.queryCommandState(a)),e.setChecked(d.queryCommandValue(a)==c&&!g)}),e}}(d)}(i,h[i]);for(var d,g=0;d=["backcolor","forecolor"][g++];)b[d]=function(a){return function(c){var d=new b.ColorButton({className:"edui-for-"+a,color:"default",title:c.options.labelMap[a]||c.getLang("labelMap."+a)||"",editor:c,onpickcolor:function(b,d){c.execCommand(a,d)},onpicknocolor:function(){c.execCommand(a,"default"),this.setColor("transparent"),this.color="default"},onbuttonclick:function(){c.execCommand(a,this.color)}});return b.buttons[a]=d,c.addListener("selectionchange",function(){d.setDisabled(-1==c.queryCommandState(a))}),d}}(d);var j={noOk:["searchreplace","help","spechars","webapp","preview"],ok:["attachment","anchor","link","insertimage","map","gmap","insertframe","wordimage","insertvideo","insertframe","edittip","edittable","edittd","scrawl","template","music","background","charts"]};for(var i in j)!function(c,d){for(var f,g=0;f=d[g++];)browser.opera&&"searchreplace"===f||!function(d){b[d]=function(f,g,h){g=g||(f.options.iframeUrlMap||{})[d]||e[d],h=f.options.labelMap[d]||f.getLang("labelMap."+d)||"";var i;g&&(i=new b.Dialog(a.extend({iframeUrl:f.ui.mapUrl(g),editor:f,className:"edui-for-"+d,title:h,holdScroll:"insertimage"===d,fullscreen:/charts|preview/.test(d),closeDialog:f.getLang("closeDialog")},"ok"==c?{buttons:[{className:"edui-okbutton",label:f.getLang("ok"),editor:f,onclick:function(){i.close(!0)}},{className:"edui-cancelbutton",label:f.getLang("cancel"),editor:f,onclick:function(){i.close(!1)}}]}:{})),f.ui._dialogs[d+"Dialog"]=i);var j=new b.Button({className:"edui-for-"+d,title:h,onclick:function(){if(i)switch(d){case"wordimage":var a=f.execCommand("wordimage");a&&a.length&&(i.render(),i.open());break;case"scrawl":-1!=f.queryCommandState("scrawl")&&(i.render(),i.open());break;default:i.render(),i.open()}},theme:f.options.theme,disabled:"scrawl"==d&&-1==f.queryCommandState("scrawl")||"charts"==d});return b.buttons[d]=j,f.addListener("selectionchange",function(){var a={edittable:1};if(!(d in a)){var b=f.queryCommandState(d);j.getDom()&&(j.setDisabled(-1==b),j.setChecked(b))}}),j}}(f.toLowerCase())}(i,j[i]);b.snapscreen=function(a,c,d){d=a.options.labelMap.snapscreen||a.getLang("labelMap.snapscreen")||"";var f=new b.Button({className:"edui-for-snapscreen",title:d,onclick:function(){a.execCommand("snapscreen")},theme:a.options.theme});if(b.buttons.snapscreen=f,c=c||(a.options.iframeUrlMap||{}).snapscreen||e.snapscreen){var g=new b.Dialog({iframeUrl:a.ui.mapUrl(c),editor:a,className:"edui-for-snapscreen",title:d,buttons:[{className:"edui-okbutton",label:a.getLang("ok"),editor:a,onclick:function(){g.close(!0)}},{className:"edui-cancelbutton",label:a.getLang("cancel"),editor:a,onclick:function(){g.close(!1)}}]});g.render(),a.ui._dialogs.snapscreenDialog=g}return a.addListener("selectionchange",function(){f.setDisabled(-1==a.queryCommandState("snapscreen"))}),f},b.insertcode=function(c,d,e){d=c.options.insertcode||[],e=c.options.labelMap.insertcode||c.getLang("labelMap.insertcode")||"";var f=[];a.each(d,function(a,b){f.push({label:a,value:b,theme:c.options.theme,renderLabelHtml:function(){return'
'+(this.label||"")+"
"}})});var g=new b.Combox({editor:c,items:f,onselect:function(a,b){c.execCommand("insertcode",this.items[b].value)},onbuttonclick:function(){this.showPopup()},title:e,initValue:e,className:"edui-for-insertcode",indexByValue:function(a){if(a)for(var b,c=0;b=this.items[c];c++)if(-1!=b.value.indexOf(a))return c;return-1}});return b.buttons.insertcode=g,c.addListener("selectionchange",function(a,b,d){if(!d){var f=c.queryCommandState("insertcode");if(-1==f)g.setDisabled(!0);else{g.setDisabled(!1);var h=c.queryCommandValue("insertcode");if(!h)return void g.setValue(e);h&&(h=h.replace(/['"]/g,"").split(",")[0]),g.setValue(h)}}}),g},b.fontfamily=function(c,d,e){if(d=c.options.fontfamily||[],e=c.options.labelMap.fontfamily||c.getLang("labelMap.fontfamily")||"",d.length){for(var f,g=0,h=[];f=d[g];g++){var i=c.getLang("fontfamily")[f.name]||"";!function(b,d){h.push({label:b,value:d,theme:c.options.theme,renderLabelHtml:function(){return'
'+(this.label||"")+"
"}})}(f.label||i,f.val)}var j=new b.Combox({editor:c,items:h,onselect:function(a,b){c.execCommand("FontFamily",this.items[b].value)},onbuttonclick:function(){this.showPopup()},title:e,initValue:e,className:"edui-for-fontfamily",indexByValue:function(a){if(a)for(var b,c=0;b=this.items[c];c++)if(-1!=b.value.indexOf(a))return c;return-1}});return b.buttons.fontfamily=j,c.addListener("selectionchange",function(a,b,d){if(!d){var e=c.queryCommandState("FontFamily");if(-1==e)j.setDisabled(!0);else{j.setDisabled(!1);var f=c.queryCommandValue("FontFamily");f&&(f=f.replace(/['"]/g,"").split(",")[0]),j.setValue(f)}}}),j}},b.fontsize=function(a,c,d){if(d=a.options.labelMap.fontsize||a.getLang("labelMap.fontsize")||"",c=c||a.options.fontsize||[],c.length){for(var e=[],f=0;f'+(this.label||"")+""}})}var h=new b.Combox({editor:a,items:e,title:d,initValue:d,onselect:function(b,c){a.execCommand("FontSize",this.items[c].value)},onbuttonclick:function(){this.showPopup()},className:"edui-for-fontsize"});return b.buttons.fontsize=h,a.addListener("selectionchange",function(b,c,d){if(!d){var e=a.queryCommandState("FontSize");-1==e?h.setDisabled(!0):(h.setDisabled(!1),h.setValue(a.queryCommandValue("FontSize")))}}),h}},b.paragraph=function(c,d,e){if(e=c.options.labelMap.paragraph||c.getLang("labelMap.paragraph")||"",d=c.options.paragraph||[],!a.isEmptyObject(d)){var f=[];for(var g in d)f.push({value:g,label:d[g]||c.getLang("paragraph")[g],theme:c.options.theme,renderLabelHtml:function(){return'
'+(this.label||"")+"
"}});var h=new b.Combox({editor:c,items:f,title:e,initValue:e,className:"edui-for-paragraph",onselect:function(a,b){c.execCommand("Paragraph",this.items[b].value)},onbuttonclick:function(){this.showPopup()}});return b.buttons.paragraph=h,c.addListener("selectionchange",function(a,b,d){if(!d){var e=c.queryCommandState("Paragraph");if(-1==e)h.setDisabled(!0);else{h.setDisabled(!1);var f=c.queryCommandValue("Paragraph"),g=h.indexByValue(f);-1!=g?h.setValue(f):h.setValue(h.initValue)}}}),h}},b.customstyle=function(a){var c=a.options.customstyle||[],d=a.options.labelMap.customstyle||a.getLang("labelMap.customstyle")||"";if(c.length){for(var e,f=a.getLang("customstyle"),g=0,h=[];e=c[g++];)!function(b){var c={};c.label=b.label?b.label:f[b.name],c.style=b.style,c.className=b.className,c.tag=b.tag,h.push({label:c.label,value:c,theme:a.options.theme,renderLabelHtml:function(){return'
<'+c.tag+" "+(c.className?' class="'+c.className+'"':"")+(c.style?' style="'+c.style+'"':"")+">"+c.label+"
"}})}(e);var i=new b.Combox({editor:a,items:h,title:d,initValue:d,className:"edui-for-customstyle",onselect:function(b,c){a.execCommand("customstyle",this.items[c].value)},onbuttonclick:function(){this.showPopup()},indexByValue:function(a){for(var b,c=0;b=this.items[c++];)if(b.label==a)return c-1;return-1}});return b.buttons.customstyle=i,a.addListener("selectionchange",function(b,c,d){if(!d){var e=a.queryCommandState("customstyle");if(-1==e)i.setDisabled(!0);else{i.setDisabled(!1);var f=a.queryCommandValue("customstyle"),g=i.indexByValue(f);-1!=g?i.setValue(f):i.setValue(i.initValue)}}}),i}},b.inserttable=function(a,c,d){d=a.options.labelMap.inserttable||a.getLang("labelMap.inserttable")||"";var e=new b.TableButton({editor:a,title:d,className:"edui-for-inserttable",onpicktable:function(b,c,d){a.execCommand("InsertTable",{numRows:d,numCols:c,border:1})},onbuttonclick:function(){this.showPopup()}});return b.buttons.inserttable=e,a.addListener("selectionchange",function(){e.setDisabled(-1==a.queryCommandState("inserttable"))}),e},b.lineheight=function(a){var c=a.options.lineheight||[];if(c.length){for(var d,e=0,f=[];d=c[e++];)f.push({label:d,value:d,theme:a.options.theme,onclick:function(){a.execCommand("lineheight",this.value)}});var g=new b.MenuButton({editor:a,className:"edui-for-lineheight",title:a.options.labelMap.lineheight||a.getLang("labelMap.lineheight")||"",items:f,onbuttonclick:function(){var b=a.queryCommandValue("LineHeight")||this.value;a.execCommand("LineHeight",b)}});return b.buttons.lineheight=g,a.addListener("selectionchange",function(){var b=a.queryCommandState("LineHeight");if(-1==b)g.setDisabled(!0);else{g.setDisabled(!1);var c=a.queryCommandValue("LineHeight");c&&g.setValue((c+"").replace(/cm/,"")),g.setChecked(b)}}),g}};for(var k,l=["top","bottom"],m=0;k=l[m++];)!function(a){b["rowspacing"+a]=function(c){var d=c.options["rowspacing"+a]||[];if(!d.length)return null;for(var e,f=0,g=[];e=d[f++];)g.push({label:e,value:e,theme:c.options.theme,onclick:function(){c.execCommand("rowspacing",this.value,a)}});var h=new b.MenuButton({editor:c,className:"edui-for-rowspacing"+a,title:c.options.labelMap["rowspacing"+a]||c.getLang("labelMap.rowspacing"+a)||"",items:g,onbuttonclick:function(){var b=c.queryCommandValue("rowspacing",a)||this.value;c.execCommand("rowspacing",b,a)}});return b.buttons[a]=h,c.addListener("selectionchange",function(){var b=c.queryCommandState("rowspacing",a);if(-1==b)h.setDisabled(!0);else{h.setDisabled(!1);var d=c.queryCommandValue("rowspacing",a);d&&h.setValue((d+"").replace(/%/,"")),h.setChecked(b)}}),h}}(k);for(var n,o=["insertorderedlist","insertunorderedlist"],p=0;n=o[p++];)!function(a){b[a]=function(c){var d=c.options[a],e=function(){c.execCommand(a,this.value)},f=[];for(var g in d)f.push({label:d[g]||c.getLang()[a][g]||"",value:g,theme:c.options.theme,onclick:e});var h=new b.MenuButton({editor:c,className:"edui-for-"+a,title:c.getLang("labelMap."+a)||"",items:f,onbuttonclick:function(){var b=c.queryCommandValue(a)||this.value;c.execCommand(a,b)}});return b.buttons[a]=h,c.addListener("selectionchange",function(){var b=c.queryCommandState(a);if(-1==b)h.setDisabled(!0);else{h.setDisabled(!1);var d=c.queryCommandValue(a);h.setValue(d),h.setChecked(b)}}),h}}(n);b.fullscreen=function(a,c){c=a.options.labelMap.fullscreen||a.getLang("labelMap.fullscreen")||"";var d=new b.Button({className:"edui-for-fullscreen",title:c,theme:a.options.theme,onclick:function(){a.ui&&a.ui.setFullScreen(!a.ui.isFullScreen()),this.setChecked(a.ui.isFullScreen())}});return b.buttons.fullscreen=d,a.addListener("selectionchange",function(){var b=a.queryCommandState("fullscreen");d.setDisabled(-1==b),d.setChecked(a.ui.isFullScreen())}),d},b.emotion=function(a,c){var d="emotion",f=new b.MultiMenuPop({title:a.options.labelMap[d]||a.getLang("labelMap."+d)||"",editor:a,className:"edui-for-"+d,iframeUrl:a.ui.mapUrl(c||(a.options.iframeUrlMap||{})[d]||e[d])});return b.buttons[d]=f,a.addListener("selectionchange",function(){f.setDisabled(-1==a.queryCommandState(d))}),f},b.autotypeset=function(a){var c=new b.AutoTypeSetButton({editor:a,title:a.options.labelMap.autotypeset||a.getLang("labelMap.autotypeset")||"",className:"edui-for-autotypeset",onbuttonclick:function(){a.execCommand("autotypeset")}});return b.buttons.autotypeset=c,a.addListener("selectionchange",function(){c.setDisabled(-1==a.queryCommandState("autotypeset"))}),c},b.simpleupload=function(a){var c="simpleupload",d=new b.Button({className:"edui-for-"+c,title:a.options.labelMap[c]||a.getLang("labelMap."+c)||"",onclick:function(){},theme:a.options.theme,showText:!1});return b.buttons[c]=d,a.addListener("ready",function(){var b=d.getDom("body"),c=b.children[0];a.fireEvent("simpleuploadbtnready",c)}),a.addListener("selectionchange",function(b,e,f){var g=a.queryCommandState(c);-1==g?(d.setDisabled(!0),d.setChecked(!1)):f||(d.setDisabled(!1),d.setChecked(g))}),d}}(),function(){function a(a){this.initOptions(a),this.initEditorUI()}var b=baidu.editor.utils,c=baidu.editor.ui.uiUtils,d=baidu.editor.ui.UIBase,e=baidu.editor.dom.domUtils,f=[];a.prototype={uiName:"editor",initEditorUI:function(){function a(a,b){a.setOpt({wordCount:!0,maximumWords:1e4,wordCountMsg:a.options.wordCountMsg||a.getLang("wordCountMsg"),wordOverFlowMsg:a.options.wordOverFlowMsg||a.getLang("wordOverFlowMsg")});var c=a.options,d=c.maximumWords,e=c.wordCountMsg,f=c.wordOverFlowMsg,g=b.getDom("wordcount");if(c.wordCount){var h=a.getContentLength(!0);h>d?(g.innerHTML=f,a.fireEvent("wordcountoverflow")):g.innerHTML=e.replace("{#leave}",d-h).replace("{#count}",h)}}this.editor.ui=this,this._dialogs={},this.initUIBase(),this._initToolbars();var b=this.editor,c=this;b.addListener("ready",function(){function d(){a(b,c),e.un(b.document,"click",arguments.callee)}b.getDialog=function(a){return b.ui._dialogs[a+"Dialog"]},e.on(b.window,"scroll",function(a){baidu.editor.ui.Popup.postHide(a)}),b.ui._actualFrameWidth=b.options.initialFrameWidth,UE.browser.ie&&6===UE.browser.version&&b.container.ownerDocument.execCommand("BackgroundImageCache",!1,!0),b.options.elementPathEnabled&&(b.ui.getDom("elementpath").innerHTML='
'+b.getLang("elementPathTip")+":
"),b.options.wordCount&&(e.on(b.document,"click",d),b.ui.getDom("wordcount").innerHTML=b.getLang("wordCountTip")),b.ui._scale(),b.options.scaleEnabled?(b.autoHeightEnabled&&b.disableAutoHeight(),c.enableScale()):c.disableScale(),b.options.elementPathEnabled||b.options.wordCount||b.options.scaleEnabled||(b.ui.getDom("elementpath").style.display="none",b.ui.getDom("wordcount").style.display="none",b.ui.getDom("scale").style.display="none"),b.selection.isFocus()&&b.fireEvent("selectionchange",!1,!0)}),b.addListener("mousedown",function(a,b){var c=b.target||b.srcElement;baidu.editor.ui.Popup.postHide(b,c),baidu.editor.ui.ShortCutMenu.postHide(b)}),b.addListener("delcells",function(){UE.ui.edittip&&new UE.ui.edittip(b),b.getDialog("edittip").open()});var d,f,g=!1;b.addListener("afterpaste",function(){b.queryCommandState("pasteplain")||(baidu.editor.ui.PastePicker&&(d=new baidu.editor.ui.Popup({content:new baidu.editor.ui.PastePicker({editor:b}),editor:b,className:"edui-wordpastepop"}),d.render()),g=!0)}),b.addListener("afterinserthtml",function(){clearTimeout(f),f=setTimeout(function(){if(d&&(g||b.ui._isTransfer)){if(d.isHidden()){var a=e.createElement(b.document,"span",{style:"line-height:0px;",innerHTML:"\ufeff"}),c=b.selection.getRange();c.insertNode(a);var f=getDomNode(a,"firstChild","previousSibling");f&&d.showAnchor(3==f.nodeType?f.parentNode:f),e.remove(a)}else d.show();delete b.ui._isTransfer,g=!1}},200)}),b.addListener("contextmenu",function(a,b){baidu.editor.ui.Popup.postHide(b)}),b.addListener("keydown",function(a,b){d&&d.dispose(b);var c=b.keyCode||b.which;b.altKey&&90==c&&UE.ui.buttons.fullscreen.onclick()}),b.addListener("wordcount",function(b){a(this,c)}),b.addListener("selectionchange",function(){b.options.elementPathEnabled&&c[(-1==b.queryCommandState("elementpath")?"dis":"en")+"ableElementPath"](),b.options.scaleEnabled&&c[(-1==b.queryCommandState("scale")?"dis":"en")+"ableScale"]()});var h=new baidu.editor.ui.Popup({editor:b,content:"",className:"edui-bubble",_onEditButtonClick:function(){this.hide(),b.ui._dialogs.linkDialog.open()},_onImgEditButtonClick:function(a){this.hide(),b.ui._dialogs[a]&&b.ui._dialogs[a].open()},_onImgSetFloat:function(a){this.hide(),b.execCommand("imagefloat",a)},_setIframeAlign:function(a){var b=h.anchorEl,c=b.cloneNode(!0);switch(a){case-2:c.setAttribute("align","");break;case-1:c.setAttribute("align","left");break;case 1:c.setAttribute("align","right")}b.parentNode.insertBefore(c,b),e.remove(b),h.anchorEl=c,h.showAnchor(h.anchorEl)},_updateIframe:function(){var a=b._iframe=h.anchorEl;e.hasClass(a,"ueditor_baidumap")?(b.selection.getRange().selectNode(a).select(),b.ui._dialogs.mapDialog.open(),h.hide()):(b.ui._dialogs.insertframeDialog.open(),h.hide())},_onRemoveButtonClick:function(a){b.execCommand(a),this.hide()},queryAutoHide:function(a){return a&&a.ownerDocument==b.document&&("img"==a.tagName.toLowerCase()||e.findParentByTagName(a,"a",!0))?a!==h.anchorEl:baidu.editor.ui.Popup.prototype.queryAutoHide.call(this,a)}});h.render(),b.options.imagePopup&&(b.addListener("mouseover",function(a,c){c=c||window.event;var d=c.target||c.srcElement;if(b.ui._dialogs.insertframeDialog&&/iframe/gi.test(d.tagName)){var e=h.formatHtml(""+b.getLang("property")+': '+b.getLang("default")+'  '+b.getLang("justifyleft")+'  '+b.getLang("justifyright")+'   '+b.getLang("modify")+"");e?(h.getDom("content").innerHTML=e,h.anchorEl=d,h.showAnchor(h.anchorEl)):h.hide()}}),b.addListener("selectionchange",function(a,c){if(c){var d="",f="",g=b.selection.getRange().getClosedNode(),i=b.ui._dialogs;if(g&&"IMG"==g.tagName){var j="insertimageDialog";if(-1==g.className.indexOf("edui-faked-video")&&-1==g.className.indexOf("edui-upload-video")||(j="insertvideoDialog"),-1!=g.className.indexOf("edui-faked-webapp")&&(j="webappDialog"),-1!=g.src.indexOf("http://api.map.baidu.com")&&(j="mapDialog"),-1!=g.className.indexOf("edui-faked-music")&&(j="musicDialog"),-1!=g.src.indexOf("http://maps.google.com/maps/api/staticmap")&&(j="gmapDialog"),g.getAttribute("anchorname")&&(j="anchorDialog",d=h.formatHtml(""+b.getLang("property")+': '+b.getLang("modify")+"  "+b.getLang("delete")+"")),g.getAttribute("word_img")&&(b.word_img=[g.getAttribute("word_img")],j="wordimageDialog"),(e.hasClass(g,"loadingclass")||e.hasClass(g,"loaderrorclass"))&&(j=""),!i[j])return;f=""+b.getLang("property")+': '+b.getLang("default")+'  '+b.getLang("justifyleft")+'  '+b.getLang("justifyright")+'  '+b.getLang("justifycenter")+"  '+b.getLang("modify")+"",!d&&(d=h.formatHtml(f))}if(b.ui._dialogs.linkDialog){var k,l=b.queryCommandValue("link");if(l&&(k=l.getAttribute("_href")||l.getAttribute("href",2))){var m=k;k.length>30&&(m=k.substring(0,20)+"..."),d&&(d+='
'),d+=h.formatHtml(""+b.getLang("anthorMsg")+': '+m+' '+b.getLang("modify")+' '+b.getLang("clear")+""),h.showAnchor(l)}}d?(h.getDom("content").innerHTML=d,h.anchorEl=g||l,h.showAnchor(h.anchorEl)):h.hide()}}))},_initToolbars:function(){for(var a=this.editor,c=this.toolbars||[],d=[],e=0;e
'+(this.toolbars.length?'
'+this.renderToolbarBoxHtml()+"
":"")+'
'},showWordImageDialog:function(){this._dialogs.wordimageDialog.open()},renderToolbarBoxHtml:function(){for(var a=[],b=0;b'+c+"");b.innerHTML='
'+this.editor.getLang("elementPathTip")+": "+d.join(" > ")+"
"}else b.style.display="none"},disableElementPath:function(){var a=this.getDom("elementpath");a.innerHTML="",a.style.display="none",this.elementPathEnabled=!1},enableElementPath:function(){var a=this.getDom("elementpath");a.style.display="",this.elementPathEnabled=!0,this._updateElementPath()},_scale:function(){function a(){o=e.getXY(h),p||(p=g.options.minFrameHeight+j.offsetHeight+k.offsetHeight),m.style.cssText="position:absolute;left:0;display:;top:0;background-color:#41ABFF;opacity:0.4;filter: Alpha(opacity=40);width:"+h.offsetWidth+"px;height:"+h.offsetHeight+"px;z-index:"+(g.options.zIndex+1),e.on(f,"mousemove",b),e.on(i,"mouseup",c),e.on(f,"mouseup",c)}function b(a){d();var b=a||window.event;r=b.pageX||f.documentElement.scrollLeft+b.clientX,s=b.pageY||f.documentElement.scrollTop+b.clientY,t=r-o.x,u=s-o.y,t>=q&&(n=!0,m.style.width=t+"px"),u>=p&&(n=!0,m.style.height=u+"px")}function c(){n&&(n=!1,g.ui._actualFrameWidth=m.offsetWidth-2,h.style.width=g.ui._actualFrameWidth+"px",g.setHeight(m.offsetHeight-k.offsetHeight-j.offsetHeight-2,!0)),m&&(m.style.display="none"),d(),e.un(f,"mousemove",b),e.un(i,"mouseup",c),e.un(f,"mouseup",c)}function d(){browser.ie?f.selection.clear():window.getSelection().removeAllRanges()}var f=document,g=this.editor,h=g.container,i=g.document,j=this.getDom("toolbarbox"),k=this.getDom("bottombar"),l=this.getDom("scale"),m=this.getDom("scalelayer"),n=!1,o=null,p=0,q=g.options.minFrameWidth,r=0,s=0,t=0,u=0,v=this;this.editor.addListener("fullscreenchanged",function(a,b){if(b)v.disableScale();else if(v.editor.options.scaleEnabled){v.enableScale();var c=v.editor.document.createElement("span");v.editor.body.appendChild(c),v.editor.body.style.height=Math.max(e.getXY(c).y,v.editor.iframe.offsetHeight-20)+"px",e.remove(c)}}),this.enableScale=function(){1!=g.queryCommandState("source")&&(l.style.display="",this.scaleEnabled=!0,e.on(l,"mousedown",a))},this.disableScale=function(){l.style.display="none",this.scaleEnabled=!1,e.un(l,"mousedown",a)}},isFullScreen:function(){return this._fullscreen},postRender:function(){d.prototype.postRender.call(this);for(var a=0;a[\n\r\t]+([ ]{4})+/g,">").replace(/[\n\r\t]+([ ]{4})+[\n\r\t]+<"),c.className&&(b.className=c.className),c.style.cssText&&(b.style.cssText=c.style.cssText),/textarea/i.test(c.tagName)?(d.textarea=c,d.textarea.style.display="none"):c.parentNode.removeChild(c),c.id&&(b.id=c.id,e.removeAttributes(c,"id")),c=b,c.innerHTML=""}e.addClass(c,"edui-"+d.options.theme),d.ui.render(c);var h=d.options;d.container=d.ui.getDom();for(var i,j=e.findParents(c,!0),k=[],l=0;i=j[l];l++)k[l]=i.style.display,i.style.display="block";if(h.initialFrameWidth)h.minFrameWidth=h.initialFrameWidth;else{h.minFrameWidth=h.initialFrameWidth=c.offsetWidth;var m=c.style.width;/%$/.test(m)&&(h.initialFrameWidth=m)}h.initialFrameHeight?h.minFrameHeight=h.initialFrameHeight:h.initialFrameHeight=h.minFrameHeight=c.offsetHeight;for(var i,l=0;i=j[l];l++)i.style.display=k[l];c.style.height&&(c.style.height=""),d.container.style.width=h.initialFrameWidth+(/%$/.test(h.initialFrameWidth)?"":"px"),d.container.style.zIndex=h.zIndex,f.call(d,d.ui.getDom("iframeholder")),d.fireEvent("afteruiready")}d.langIsReady?b():d.addListener("langReady",b)})},d},UE.getEditor=function(a,b){var c=g[a];return c||(c=g[a]=new UE.ui.Editor(b),c.render(a)),c},UE.delEditor=function(a){var b;(b=g[a])&&(b.key&&b.destroy(),delete g[a])},UE.registerUI=function(a,c,d,e){b.each(a.split(/\s+/),function(a){UE._customizeUI[a]={id:e,execFn:c,index:d}})}}(),UE.registerUI("message",function(a){function b(){var a=g.ui.getDom("toolbarbox");a&&(c.style.top=a.offsetHeight+3+"px"),c.style.zIndex=Math.max(g.options.zIndex,g.iframe.style.zIndex)+1}var c,d=baidu.editor.ui,e=d.Message,f=[],g=a;g.addListener("ready",function(){c=document.getElementById(g.ui.id+"_message_holder"),b(),setTimeout(function(){b()},500)}),g.addListener("showmessage",function(a,d){d=utils.isString(d)?{content:d}:d;var h=new e({timeout:d.timeout,type:d.type,content:d.content,keepshow:d.keepshow,editor:g}),i=d.id||"msg_"+(+new Date).toString(36);return h.render(c),f[i]=h,h.reset(d),b(),i}),g.addListener("updatemessage",function(a,b,d){d=utils.isString(d)?{content:d}:d;var e=f[b];e.render(c),e&&e.reset(d)}),g.addListener("hidemessage",function(a,b){var c=f[b];c&&c.hide()})}),UE.registerUI("autosave",function(a){var b=null,c=null;a.on("afterautosave",function(){clearTimeout(b),b=setTimeout(function(){c&&a.trigger("hidemessage",c),c=a.trigger("showmessage",{content:a.getLang("autosave.success"),timeout:2e3})},2e3)})})}(); \ No newline at end of file diff --git a/target/Blog/WEB-INF/classes/db_blog.sql b/target/Blog/WEB-INF/classes/db_blog.sql old mode 100644 new mode 100755 diff --git a/target/Blog/WEB-INF/classes/log4j.properties b/target/Blog/WEB-INF/classes/log4j.properties old mode 100644 new mode 100755 diff --git a/target/Blog/WEB-INF/classes/mapper/BlogMapper.xml b/target/Blog/WEB-INF/classes/mapper/BlogMapper.xml old mode 100644 new mode 100755 diff --git a/target/Blog/WEB-INF/classes/ssm/blog/controller/BloggerController.class b/target/Blog/WEB-INF/classes/ssm/blog/controller/BloggerController.class index 7de5858..669a8dd 100644 Binary files a/target/Blog/WEB-INF/classes/ssm/blog/controller/BloggerController.class and b/target/Blog/WEB-INF/classes/ssm/blog/controller/BloggerController.class differ diff --git a/target/Blog/admin/blogManage.jsp b/target/Blog/admin/blogManage.jsp old mode 100644 new mode 100755 diff --git a/target/Blog/admin/writeBlog.jsp b/target/Blog/admin/writeBlog.jsp old mode 100644 new mode 100755 diff --git a/target/Blog/index.jsp b/target/Blog/index.jsp old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/css/bootstrap-theme.css b/target/Blog/static/bootstrap3/css/bootstrap-theme.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/css/bootstrap-theme.css.map b/target/Blog/static/bootstrap3/css/bootstrap-theme.css.map old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/css/bootstrap-theme.min.css b/target/Blog/static/bootstrap3/css/bootstrap-theme.min.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/css/bootstrap.css b/target/Blog/static/bootstrap3/css/bootstrap.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/css/bootstrap.css.map b/target/Blog/static/bootstrap3/css/bootstrap.css.map old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/css/bootstrap.min.css b/target/Blog/static/bootstrap3/css/bootstrap.min.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/fonts/glyphicons-halflings-regular.eot b/target/Blog/static/bootstrap3/fonts/glyphicons-halflings-regular.eot old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/fonts/glyphicons-halflings-regular.svg b/target/Blog/static/bootstrap3/fonts/glyphicons-halflings-regular.svg old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/fonts/glyphicons-halflings-regular.ttf b/target/Blog/static/bootstrap3/fonts/glyphicons-halflings-regular.ttf old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/fonts/glyphicons-halflings-regular.woff b/target/Blog/static/bootstrap3/fonts/glyphicons-halflings-regular.woff old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/js/bootstrap.js b/target/Blog/static/bootstrap3/js/bootstrap.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/js/bootstrap.min.js b/target/Blog/static/bootstrap3/js/bootstrap.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/js/jquery-1.11.2.min.js b/target/Blog/static/bootstrap3/js/jquery-1.11.2.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/bootstrap3/js/npm.js b/target/Blog/static/bootstrap3/js/npm.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/css/blog.css b/target/Blog/static/css/blog.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/about_icon.png b/target/Blog/static/images/about_icon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/blog_show_icon.png b/target/Blog/static/images/blog_show_icon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/byDate_icon.png b/target/Blog/static/images/byDate_icon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/byType_icon.png b/target/Blog/static/images/byType_icon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/comment_icon.png b/target/Blog/static/images/comment_icon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/download_icon.png b/target/Blog/static/images/download_icon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/hand.png b/target/Blog/static/images/hand.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/left-handing.png b/target/Blog/static/images/left-handing.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/left_hand.png b/target/Blog/static/images/left_hand.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/link_icon.png b/target/Blog/static/images/link_icon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/list_icon.png b/target/Blog/static/images/list_icon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/logo.png b/target/Blog/static/images/logo.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/logo1.jpg b/target/Blog/static/images/logo1.jpg old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/password.png b/target/Blog/static/images/password.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/publish_comment_icon.png b/target/Blog/static/images/publish_comment_icon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/right_hand.png b/target/Blog/static/images/right_hand.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/right_handing.png b/target/Blog/static/images/right_handing.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/search_icon.png b/target/Blog/static/images/search_icon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/tou.png b/target/Blog/static/images/tou.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/user_icon.png b/target/Blog/static/images/user_icon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/images/username.png b/target/Blog/static/images/username.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/changelog.txt b/target/Blog/static/jquery-easyui-1.3.5/changelog.txt old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/_content.html b/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/_content.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/actions.html b/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/actions.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/ajax.html b/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/ajax.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/datagrid_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/datagrid_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/expandable.html b/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/expandable.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/multiple.html b/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/multiple.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/tools.html b/target/Blog/static/jquery-easyui-1.3.5/demo/accordion/tools.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/calendar/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/calendar/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/calendar/firstday.html b/target/Blog/static/jquery-easyui-1.3.5/demo/calendar/firstday.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combo/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combo/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/actions.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/actions.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/combobox_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/combobox_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/combobox_data2.json b/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/combobox_data2.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/customformat.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/customformat.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/dynamicdata.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/dynamicdata.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/group.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/group.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/multiple.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/multiple.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/navigation.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/navigation.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/remotedata.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/remotedata.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/remotejsonp.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combobox/remotejsonp.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/actions.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/actions.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/datagrid_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/datagrid_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/initvalue.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/initvalue.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/multiple.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/multiple.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/navigation.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combogrid/navigation.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combotree/actions.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combotree/actions.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combotree/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combotree/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combotree/initvalue.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combotree/initvalue.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combotree/multiple.html b/target/Blog/static/jquery-easyui-1.3.5/demo/combotree/multiple.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/combotree/tree_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/combotree/tree_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/aligncolumns.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/aligncolumns.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/cellediting.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/cellediting.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/cellstyle.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/cellstyle.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/checkbox.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/checkbox.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/clientpagination.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/clientpagination.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/columngroup.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/columngroup.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/complextoolbar.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/complextoolbar.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/contextmenu.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/contextmenu.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/custompager.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/custompager.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/datagrid_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/datagrid_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/datagrid_data2.json b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/datagrid_data2.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/footer.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/footer.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/formatcolumns.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/formatcolumns.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/frozencolumns.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/frozencolumns.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/frozenrows.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/frozenrows.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/mergecells.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/mergecells.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/multisorting.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/multisorting.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/products.json b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/products.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/rowborder.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/rowborder.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/rowediting.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/rowediting.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/rowstyle.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/rowstyle.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/selection.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/selection.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/simpletoolbar.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/simpletoolbar.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/transform.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datagrid/transform.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datebox/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datebox/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datebox/buttons.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datebox/buttons.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datebox/dateformat.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datebox/dateformat.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datebox/events.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datebox/events.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datebox/validate.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datebox/validate.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datetimebox/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datetimebox/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datetimebox/initvalue.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datetimebox/initvalue.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/datetimebox/showseconds.html b/target/Blog/static/jquery-easyui-1.3.5/demo/datetimebox/showseconds.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/demo.css b/target/Blog/static/jquery-easyui-1.3.5/demo/demo.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/dialog/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/dialog/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/dialog/complextoolbar.html b/target/Blog/static/jquery-easyui-1.3.5/demo/dialog/complextoolbar.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/dialog/toolbarbuttons.html b/target/Blog/static/jquery-easyui-1.3.5/demo/dialog/toolbarbuttons.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/draggable/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/draggable/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/draggable/constain.html b/target/Blog/static/jquery-easyui-1.3.5/demo/draggable/constain.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/draggable/snap.html b/target/Blog/static/jquery-easyui-1.3.5/demo/draggable/snap.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/droppable/accept.html b/target/Blog/static/jquery-easyui-1.3.5/demo/droppable/accept.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/droppable/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/droppable/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/droppable/sort.html b/target/Blog/static/jquery-easyui-1.3.5/demo/droppable/sort.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/easyloader/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/easyloader/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/form/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/form/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/form/form_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/form/form_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/form/load.html b/target/Blog/static/jquery-easyui-1.3.5/demo/form/load.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/layout/_content.html b/target/Blog/static/jquery-easyui-1.3.5/demo/layout/_content.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/layout/addremove.html b/target/Blog/static/jquery-easyui-1.3.5/demo/layout/addremove.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/layout/autoheight.html b/target/Blog/static/jquery-easyui-1.3.5/demo/layout/autoheight.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/layout/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/layout/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/layout/complex.html b/target/Blog/static/jquery-easyui-1.3.5/demo/layout/complex.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/layout/datagrid_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/layout/datagrid_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/layout/full.html b/target/Blog/static/jquery-easyui-1.3.5/demo/layout/full.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/layout/nestedlayout.html b/target/Blog/static/jquery-easyui-1.3.5/demo/layout/nestedlayout.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/layout/nocollapsible.html b/target/Blog/static/jquery-easyui-1.3.5/demo/layout/nocollapsible.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/layout/propertygrid_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/layout/propertygrid_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/layout/tree_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/layout/tree_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/linkbutton/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/linkbutton/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/linkbutton/group.html b/target/Blog/static/jquery-easyui-1.3.5/demo/linkbutton/group.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/linkbutton/iconalign.html b/target/Blog/static/jquery-easyui-1.3.5/demo/linkbutton/iconalign.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/linkbutton/plain.html b/target/Blog/static/jquery-easyui-1.3.5/demo/linkbutton/plain.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/linkbutton/toggle.html b/target/Blog/static/jquery-easyui-1.3.5/demo/linkbutton/toggle.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/menu/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/menu/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/menu/customitem.html b/target/Blog/static/jquery-easyui-1.3.5/demo/menu/customitem.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/menu/events.html b/target/Blog/static/jquery-easyui-1.3.5/demo/menu/events.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/menubutton/actions.html b/target/Blog/static/jquery-easyui-1.3.5/demo/menubutton/actions.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/menubutton/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/menubutton/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/messager/alert.html b/target/Blog/static/jquery-easyui-1.3.5/demo/messager/alert.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/messager/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/messager/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/messager/interactive.html b/target/Blog/static/jquery-easyui-1.3.5/demo/messager/interactive.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/messager/position.html b/target/Blog/static/jquery-easyui-1.3.5/demo/messager/position.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/numberbox/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/numberbox/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/numberbox/format.html b/target/Blog/static/jquery-easyui-1.3.5/demo/numberbox/format.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/numberbox/range.html b/target/Blog/static/jquery-easyui-1.3.5/demo/numberbox/range.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/numberspinner/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/numberspinner/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/numberspinner/increment.html b/target/Blog/static/jquery-easyui-1.3.5/demo/numberspinner/increment.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/numberspinner/range.html b/target/Blog/static/jquery-easyui-1.3.5/demo/numberspinner/range.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/attaching.html b/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/attaching.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/custombuttons.html b/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/custombuttons.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/layout.html b/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/layout.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/links.html b/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/links.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/simple.html b/target/Blog/static/jquery-easyui-1.3.5/demo/pagination/simple.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/panel/_content.html b/target/Blog/static/jquery-easyui-1.3.5/demo/panel/_content.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/panel/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/panel/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/panel/customtools.html b/target/Blog/static/jquery-easyui-1.3.5/demo/panel/customtools.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/panel/loadcontent.html b/target/Blog/static/jquery-easyui-1.3.5/demo/panel/loadcontent.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/panel/nestedpanel.html b/target/Blog/static/jquery-easyui-1.3.5/demo/panel/nestedpanel.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/panel/paneltools.html b/target/Blog/static/jquery-easyui-1.3.5/demo/panel/paneltools.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/progressbar/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/progressbar/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/propertygrid/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/propertygrid/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/propertygrid/customcolumns.html b/target/Blog/static/jquery-easyui-1.3.5/demo/propertygrid/customcolumns.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/propertygrid/groupformat.html b/target/Blog/static/jquery-easyui-1.3.5/demo/propertygrid/groupformat.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/propertygrid/propertygrid_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/propertygrid/propertygrid_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/resizable/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/resizable/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/searchbox/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/searchbox/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/searchbox/category.html b/target/Blog/static/jquery-easyui-1.3.5/demo/searchbox/category.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/slider/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/slider/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/slider/formattip.html b/target/Blog/static/jquery-easyui-1.3.5/demo/slider/formattip.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/slider/rule.html b/target/Blog/static/jquery-easyui-1.3.5/demo/slider/rule.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/slider/vertical.html b/target/Blog/static/jquery-easyui-1.3.5/demo/slider/vertical.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/splitbutton/actions.html b/target/Blog/static/jquery-easyui-1.3.5/demo/splitbutton/actions.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/splitbutton/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/splitbutton/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/_content.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/_content.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/autoheight.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/autoheight.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/dropdown.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/dropdown.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/fixedwidth.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/fixedwidth.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/hover.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/hover.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/images/modem.png b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/images/modem.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/images/pda.png b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/images/pda.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/images/scanner.png b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/images/scanner.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/images/tablet.png b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/images/tablet.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/nestedtabs.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/nestedtabs.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/striptools.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/striptools.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/tabimage.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/tabimage.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/tabposition.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/tabposition.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/tabstools.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/tabstools.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/tree_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/tabs/tree_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/timespinner/actions.html b/target/Blog/static/jquery-easyui-1.3.5/demo/timespinner/actions.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/timespinner/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/timespinner/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/timespinner/range.html b/target/Blog/static/jquery-easyui-1.3.5/demo/timespinner/range.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/_content.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/_content.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/_dialog.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/_dialog.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/ajax.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/ajax.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/customcontent.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/customcontent.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/customstyle.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/customstyle.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/position.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/position.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/toolbar.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/toolbar.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/tooltipdialog.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tooltip/tooltipdialog.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/actions.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/actions.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/animation.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/animation.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/checkbox.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/checkbox.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/contextmenu.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/contextmenu.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/dnd.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/dnd.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/editable.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/editable.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/formatting.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/formatting.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/icons.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/icons.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/lazyload.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/lazyload.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/lines.html b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/lines.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/tree_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/tree_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/tree/tree_data2.json b/target/Blog/static/jquery-easyui-1.3.5/demo/tree/tree_data2.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/actions.html b/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/actions.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/clientpagination.html b/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/clientpagination.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/contextmenu.html b/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/contextmenu.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/editable.html b/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/editable.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/footer.html b/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/footer.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/reports.html b/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/reports.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/treegrid_data1.json b/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/treegrid_data1.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/treegrid_data2.json b/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/treegrid_data2.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/treegrid_data3.json b/target/Blog/static/jquery-easyui-1.3.5/demo/treegrid/treegrid_data3.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/validatebox/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/validatebox/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/validatebox/customtooltip.html b/target/Blog/static/jquery-easyui-1.3.5/demo/validatebox/customtooltip.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/window/basic.html b/target/Blog/static/jquery-easyui-1.3.5/demo/window/basic.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/window/customtools.html b/target/Blog/static/jquery-easyui-1.3.5/demo/window/customtools.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/window/inlinewindow.html b/target/Blog/static/jquery-easyui-1.3.5/demo/window/inlinewindow.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/window/modalwindow.html b/target/Blog/static/jquery-easyui-1.3.5/demo/window/modalwindow.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/demo/window/windowlayout.html b/target/Blog/static/jquery-easyui-1.3.5/demo/window/windowlayout.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/easyloader.js b/target/Blog/static/jquery-easyui-1.3.5/easyloader.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/jquery.easyui.min.js b/target/Blog/static/jquery-easyui-1.3.5/jquery.easyui.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/jquery.min.js b/target/Blog/static/jquery-easyui-1.3.5/jquery.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/licence_gpl.txt b/target/Blog/static/jquery-easyui-1.3.5/licence_gpl.txt old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/license_commercial.txt b/target/Blog/static/jquery-easyui-1.3.5/license_commercial.txt old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-af.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-af.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-ar.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-ar.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-bg.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-bg.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-ca.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-ca.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-cs.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-cs.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-cz.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-cz.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-da.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-da.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-de.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-de.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-el.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-el.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-en.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-en.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-es.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-es.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-fr.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-fr.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-it.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-it.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-jp.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-jp.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-nl.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-nl.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-pl.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-pl.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-pt_BR.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-pt_BR.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-ru.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-ru.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-sv_SE.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-sv_SE.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-tr.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-tr.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-zh_CN.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-zh_CN.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-zh_TW.js b/target/Blog/static/jquery-easyui-1.3.5/locale/easyui-lang-zh_TW.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.accordion.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.accordion.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.calendar.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.calendar.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.combo.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.combo.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.combobox.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.combobox.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.combogrid.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.combogrid.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.combotree.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.combotree.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.datagrid.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.datagrid.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.datebox.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.datebox.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.datetimebox.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.datetimebox.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.dialog.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.dialog.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.draggable.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.draggable.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.droppable.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.droppable.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.form.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.form.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.layout.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.layout.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.linkbutton.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.linkbutton.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.menu.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.menu.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.menubutton.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.menubutton.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.messager.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.messager.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.numberbox.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.numberbox.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.numberspinner.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.numberspinner.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.pagination.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.pagination.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.panel.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.panel.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.parser.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.parser.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.progressbar.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.progressbar.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.propertygrid.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.propertygrid.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.resizable.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.resizable.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.searchbox.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.searchbox.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.slider.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.slider.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.spinner.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.spinner.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.splitbutton.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.splitbutton.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.tabs.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.tabs.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.timespinner.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.timespinner.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.tooltip.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.tooltip.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.tree.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.tree.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.treegrid.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.treegrid.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.validatebox.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.validatebox.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.window.js b/target/Blog/static/jquery-easyui-1.3.5/plugins/jquery.window.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/readme.txt b/target/Blog/static/jquery-easyui-1.3.5/readme.txt old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/easyloader.js b/target/Blog/static/jquery-easyui-1.3.5/src/easyloader.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.accordion.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.accordion.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.calendar.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.calendar.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.combobox.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.combobox.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.datebox.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.datebox.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.draggable.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.draggable.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.droppable.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.droppable.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.form.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.form.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.linkbutton.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.linkbutton.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.menu.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.menu.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.parser.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.parser.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.progressbar.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.progressbar.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.propertygrid.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.propertygrid.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.resizable.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.resizable.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.slider.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.slider.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.tabs.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.tabs.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/src/jquery.window.js b/target/Blog/static/jquery-easyui-1.3.5/src/jquery.window.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/accordion.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/accordion.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/calendar.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/calendar.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/combo.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/combo.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/combobox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/combobox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/datagrid.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/datagrid.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/datebox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/datebox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/dialog.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/dialog.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/easyui.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/easyui.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/Thumbs.db b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/Thumbs.db old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/accordion_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/accordion_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/blank.gif b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/blank.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/calendar_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/calendar_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/combo_arrow.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/combo_arrow.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/datagrid_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/datagrid_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/datebox_arrow.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/datebox_arrow.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/layout_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/layout_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/linkbutton_bg.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/linkbutton_bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/loading.gif b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/loading.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/menu_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/menu_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/messager_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/messager_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/pagination_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/pagination_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/panel_tools.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/panel_tools.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/searchbox_button.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/searchbox_button.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/slider_handle.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/slider_handle.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/spinner_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/spinner_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/tabs_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/tabs_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/tree_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/tree_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/validatebox_warning.png b/target/Blog/static/jquery-easyui-1.3.5/themes/black/images/validatebox_warning.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/layout.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/layout.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/linkbutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/linkbutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/menu.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/menu.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/menubutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/menubutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/messager.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/messager.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/pagination.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/pagination.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/panel.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/panel.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/progressbar.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/progressbar.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/propertygrid.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/propertygrid.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/searchbox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/searchbox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/slider.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/slider.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/spinner.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/spinner.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/splitbutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/splitbutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/tabs.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/tabs.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/tooltip.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/tooltip.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/tree.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/tree.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/validatebox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/validatebox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/black/window.css b/target/Blog/static/jquery-easyui-1.3.5/themes/black/window.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/accordion.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/accordion.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/calendar.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/calendar.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/combo.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/combo.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/combobox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/combobox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/datagrid.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/datagrid.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/datebox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/datebox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/dialog.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/dialog.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/easyui.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/easyui.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/Thumbs.db b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/Thumbs.db old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/accordion_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/accordion_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/blank.gif b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/blank.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/calendar_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/calendar_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/combo_arrow.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/combo_arrow.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/datagrid_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/datagrid_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/datebox_arrow.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/datebox_arrow.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/layout_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/layout_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/linkbutton_bg.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/linkbutton_bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/loading.gif b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/loading.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/menu_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/menu_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/messager_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/messager_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/pagination_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/pagination_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/panel_tools.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/panel_tools.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/searchbox_button.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/searchbox_button.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/slider_handle.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/slider_handle.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/spinner_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/spinner_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/tabs_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/tabs_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/tree_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/tree_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/validatebox_warning.png b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/images/validatebox_warning.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/layout.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/layout.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/linkbutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/linkbutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/menu.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/menu.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/menubutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/menubutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/messager.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/messager.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/pagination.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/pagination.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/panel.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/panel.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/progressbar.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/progressbar.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/propertygrid.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/propertygrid.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/searchbox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/searchbox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/slider.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/slider.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/spinner.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/spinner.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/splitbutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/splitbutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/tabs.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/tabs.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/tooltip.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/tooltip.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/tree.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/tree.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/validatebox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/validatebox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/window.css b/target/Blog/static/jquery-easyui-1.3.5/themes/bootstrap/window.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/accordion.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/accordion.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/calendar.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/calendar.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/combo.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/combo.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/combobox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/combobox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/datagrid.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/datagrid.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/datebox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/datebox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/dialog.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/dialog.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/easyui.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/easyui.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/Thumbs.db b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/Thumbs.db old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/accordion_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/accordion_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/blank.gif b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/blank.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/calendar_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/calendar_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/combo_arrow.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/combo_arrow.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/datagrid_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/datagrid_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/datebox_arrow.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/datebox_arrow.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/layout_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/layout_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/linkbutton_bg.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/linkbutton_bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/loading.gif b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/loading.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/menu_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/menu_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/messager_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/messager_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/pagination_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/pagination_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/panel_tools.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/panel_tools.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/searchbox_button.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/searchbox_button.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/slider_handle.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/slider_handle.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/spinner_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/spinner_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/tabs_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/tabs_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/tree_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/tree_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/validatebox_warning.png b/target/Blog/static/jquery-easyui-1.3.5/themes/default/images/validatebox_warning.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/layout.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/layout.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/linkbutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/linkbutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/menu.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/menu.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/menubutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/menubutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/messager.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/messager.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/pagination.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/pagination.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/panel.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/panel.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/progressbar.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/progressbar.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/propertygrid.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/propertygrid.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/searchbox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/searchbox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/slider.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/slider.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/spinner.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/spinner.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/splitbutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/splitbutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/tabs.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/tabs.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/tooltip.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/tooltip.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/tree.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/tree.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/validatebox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/validatebox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/default/window.css b/target/Blog/static/jquery-easyui-1.3.5/themes/default/window.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/accordion.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/accordion.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/calendar.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/calendar.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/combo.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/combo.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/combobox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/combobox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/datagrid.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/datagrid.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/datebox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/datebox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/dialog.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/dialog.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/easyui.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/easyui.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/Thumbs.db b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/Thumbs.db old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/accordion_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/accordion_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/blank.gif b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/blank.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/calendar_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/calendar_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/combo_arrow.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/combo_arrow.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/datagrid_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/datagrid_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/datebox_arrow.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/datebox_arrow.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/layout_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/layout_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/linkbutton_bg.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/linkbutton_bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/loading.gif b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/loading.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/menu_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/menu_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/messager_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/messager_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/pagination_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/pagination_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/panel_tools.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/panel_tools.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/searchbox_button.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/searchbox_button.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/slider_handle.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/slider_handle.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/spinner_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/spinner_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/tabs_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/tabs_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/tree_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/tree_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/validatebox_warning.png b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/images/validatebox_warning.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/layout.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/layout.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/linkbutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/linkbutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/menu.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/menu.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/menubutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/menubutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/messager.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/messager.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/pagination.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/pagination.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/panel.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/panel.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/progressbar.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/progressbar.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/propertygrid.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/propertygrid.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/searchbox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/searchbox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/slider.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/slider.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/spinner.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/spinner.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/splitbutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/splitbutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/tabs.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/tabs.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/tooltip.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/tooltip.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/tree.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/tree.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/validatebox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/validatebox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/gray/window.css b/target/Blog/static/jquery-easyui-1.3.5/themes/gray/window.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icon.css b/target/Blog/static/jquery-easyui-1.3.5/themes/icon.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/back.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/back.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/bkgl.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/bkgl.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/bklb.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/bklb.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/blank.gif b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/blank.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/cancel.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/cancel.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/cut.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/cut.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/edit_add.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/edit_add.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/edit_remove.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/edit_remove.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/exit.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/exit.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/filesave.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/filesave.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/filter.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/filter.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/grxx.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/grxx.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/grxxxg.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/grxxxg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/help.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/help.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/home.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/home.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/item.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/item.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/link.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/link.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/mini_add.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/mini_add.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/mini_edit.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/mini_edit.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/mini_refresh.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/mini_refresh.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/modifyPassword.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/modifyPassword.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/no.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/no.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/ok.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/ok.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/pencil.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/pencil.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/plgl.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/plgl.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/print.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/print.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/redo.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/redo.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/refresh.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/refresh.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/reload.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/reload.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/review.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/review.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/search.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/search.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/submit.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/submit.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/sum.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/sum.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/system.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/system.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/tip.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/tip.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/undo.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/undo.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/icons/writeblog.png b/target/Blog/static/jquery-easyui-1.3.5/themes/icons/writeblog.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/accordion.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/accordion.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/calendar.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/calendar.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/combo.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/combo.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/combobox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/combobox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/datagrid.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/datagrid.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/datebox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/datebox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/dialog.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/dialog.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/easyui.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/easyui.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/Thumbs.db b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/Thumbs.db old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/accordion_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/accordion_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/blank.gif b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/blank.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/calendar_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/calendar_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/combo_arrow.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/combo_arrow.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/datagrid_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/datagrid_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/datebox_arrow.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/datebox_arrow.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/layout_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/layout_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/linkbutton_bg.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/linkbutton_bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/loading.gif b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/loading.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/menu_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/menu_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/messager_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/messager_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/pagination_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/pagination_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/panel_tools.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/panel_tools.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/searchbox_button.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/searchbox_button.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/slider_handle.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/slider_handle.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/spinner_arrows.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/spinner_arrows.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/tabs_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/tabs_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/tree_icons.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/tree_icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/validatebox_warning.png b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/images/validatebox_warning.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/layout.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/layout.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/linkbutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/linkbutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/menu.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/menu.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/menubutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/menubutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/messager.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/messager.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/pagination.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/pagination.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/panel.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/panel.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/progressbar.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/progressbar.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/propertygrid.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/propertygrid.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/searchbox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/searchbox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/slider.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/slider.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/spinner.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/spinner.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/splitbutton.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/splitbutton.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/tabs.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/tabs.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/tooltip.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/tooltip.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/tree.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/tree.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/validatebox.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/validatebox.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/metro/window.css b/target/Blog/static/jquery-easyui-1.3.5/themes/metro/window.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/bkgl.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/bkgl.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/bklb.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/bklb.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/exit.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/exit.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/grxx.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/grxx.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/grxxxg.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/grxxxg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/home.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/home.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/item.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/item.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/link.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/link.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/modifyPassword.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/modifyPassword.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/plgl.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/plgl.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/refresh.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/refresh.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/review.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/review.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/submit.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/submit.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/system.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/system.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/writeblog.png b/target/Blog/static/jquery-easyui-1.3.5/themes/usericons/writeblog.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/anchor/anchor.html b/target/Blog/static/ueditor1_4_3_3/dialogs/anchor/anchor.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/attachment.css b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/attachment.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/attachment.html b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/attachment.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/attachment.js b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/attachment.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_chm.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_chm.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_default.png b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_default.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_doc.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_doc.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_exe.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_exe.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_jpg.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_jpg.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_mp3.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_mp3.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_mv.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_mv.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_pdf.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_pdf.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_ppt.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_ppt.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_psd.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_psd.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_rar.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_rar.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_txt.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_txt.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_xls.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/fileTypeImages/icon_xls.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/alignicon.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/alignicon.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/alignicon.png b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/alignicon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/bg.png b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/file-icons.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/file-icons.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/file-icons.png b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/file-icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/icons.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/icons.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/icons.png b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/image.png b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/image.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/progress.png b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/progress.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/success.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/success.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/success.png b/target/Blog/static/ueditor1_4_3_3/dialogs/attachment/images/success.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/background/background.css b/target/Blog/static/ueditor1_4_3_3/dialogs/background/background.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/background/background.html b/target/Blog/static/ueditor1_4_3_3/dialogs/background/background.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/background/background.js b/target/Blog/static/ueditor1_4_3_3/dialogs/background/background.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/background/images/bg.png b/target/Blog/static/ueditor1_4_3_3/dialogs/background/images/bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/background/images/success.png b/target/Blog/static/ueditor1_4_3_3/dialogs/background/images/success.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/charts/chart.config.js b/target/Blog/static/ueditor1_4_3_3/dialogs/charts/chart.config.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/charts/charts.css b/target/Blog/static/ueditor1_4_3_3/dialogs/charts/charts.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/charts/charts.html b/target/Blog/static/ueditor1_4_3_3/dialogs/charts/charts.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/charts/charts.js b/target/Blog/static/ueditor1_4_3_3/dialogs/charts/charts.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts0.png b/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts0.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts1.png b/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts1.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts2.png b/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts2.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts3.png b/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts3.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts4.png b/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts4.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts5.png b/target/Blog/static/ueditor1_4_3_3/dialogs/charts/images/charts5.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/emotion.css b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/emotion.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/emotion.html b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/emotion.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/emotion.js b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/emotion.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/0.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/0.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/bface.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/bface.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/cface.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/cface.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/fface.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/fface.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/jxface2.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/jxface2.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/neweditor-tab-bg.png b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/neweditor-tab-bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/tface.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/tface.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/wface.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/wface.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/yface.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/emotion/images/yface.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/gmap/gmap.html b/target/Blog/static/ueditor1_4_3_3/dialogs/gmap/gmap.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/help/help.css b/target/Blog/static/ueditor1_4_3_3/dialogs/help/help.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/help/help.html b/target/Blog/static/ueditor1_4_3_3/dialogs/help/help.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/help/help.js b/target/Blog/static/ueditor1_4_3_3/dialogs/help/help.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/image/image.css b/target/Blog/static/ueditor1_4_3_3/dialogs/image/image.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/image/image.html b/target/Blog/static/ueditor1_4_3_3/dialogs/image/image.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/image/image.js b/target/Blog/static/ueditor1_4_3_3/dialogs/image/image.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/alignicon.jpg b/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/alignicon.jpg old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/bg.png b/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/icons.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/icons.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/icons.png b/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/image.png b/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/image.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/progress.png b/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/progress.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/success.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/success.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/success.png b/target/Blog/static/ueditor1_4_3_3/dialogs/image/images/success.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/insertframe/insertframe.html b/target/Blog/static/ueditor1_4_3_3/dialogs/insertframe/insertframe.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/internal.js b/target/Blog/static/ueditor1_4_3_3/dialogs/internal.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/link/link.html b/target/Blog/static/ueditor1_4_3_3/dialogs/link/link.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/map/map.html b/target/Blog/static/ueditor1_4_3_3/dialogs/map/map.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/map/show.html b/target/Blog/static/ueditor1_4_3_3/dialogs/map/show.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/music/music.css b/target/Blog/static/ueditor1_4_3_3/dialogs/music/music.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/music/music.html b/target/Blog/static/ueditor1_4_3_3/dialogs/music/music.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/music/music.js b/target/Blog/static/ueditor1_4_3_3/dialogs/music/music.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/preview/preview.html b/target/Blog/static/ueditor1_4_3_3/dialogs/preview/preview.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/addimg.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/addimg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/brush.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/brush.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/delimg.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/delimg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/delimgH.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/delimgH.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/empty.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/empty.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/emptyH.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/emptyH.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/eraser.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/eraser.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/redo.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/redo.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/redoH.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/redoH.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/scale.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/scale.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/scaleH.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/scaleH.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/size.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/size.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/undo.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/undo.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/undoH.png b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/images/undoH.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/scrawl.css b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/scrawl.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/scrawl.html b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/scrawl.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/scrawl.js b/target/Blog/static/ueditor1_4_3_3/dialogs/scrawl/scrawl.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/searchreplace/searchreplace.html b/target/Blog/static/ueditor1_4_3_3/dialogs/searchreplace/searchreplace.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/searchreplace/searchreplace.js b/target/Blog/static/ueditor1_4_3_3/dialogs/searchreplace/searchreplace.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/snapscreen/snapscreen.html b/target/Blog/static/ueditor1_4_3_3/dialogs/snapscreen/snapscreen.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/spechars/spechars.html b/target/Blog/static/ueditor1_4_3_3/dialogs/spechars/spechars.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/spechars/spechars.js b/target/Blog/static/ueditor1_4_3_3/dialogs/spechars/spechars.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/table/dragicon.png b/target/Blog/static/ueditor1_4_3_3/dialogs/table/dragicon.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/table/edittable.css b/target/Blog/static/ueditor1_4_3_3/dialogs/table/edittable.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/table/edittable.html b/target/Blog/static/ueditor1_4_3_3/dialogs/table/edittable.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/table/edittable.js b/target/Blog/static/ueditor1_4_3_3/dialogs/table/edittable.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/table/edittd.html b/target/Blog/static/ueditor1_4_3_3/dialogs/table/edittd.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/table/edittip.html b/target/Blog/static/ueditor1_4_3_3/dialogs/table/edittip.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/template/config.js b/target/Blog/static/ueditor1_4_3_3/dialogs/template/config.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/bg.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/bg.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/pre0.png b/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/pre0.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/pre1.png b/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/pre1.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/pre2.png b/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/pre2.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/pre3.png b/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/pre3.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/pre4.png b/target/Blog/static/ueditor1_4_3_3/dialogs/template/images/pre4.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/template/template.css b/target/Blog/static/ueditor1_4_3_3/dialogs/template/template.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/template/template.html b/target/Blog/static/ueditor1_4_3_3/dialogs/template/template.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/template/template.js b/target/Blog/static/ueditor1_4_3_3/dialogs/template/template.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/bg.png b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/center_focus.jpg b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/center_focus.jpg old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/file-icons.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/file-icons.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/file-icons.png b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/file-icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/icons.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/icons.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/icons.png b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/image.png b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/image.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/left_focus.jpg b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/left_focus.jpg old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/none_focus.jpg b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/none_focus.jpg old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/progress.png b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/progress.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/right_focus.jpg b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/right_focus.jpg old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/success.gif b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/success.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/success.png b/target/Blog/static/ueditor1_4_3_3/dialogs/video/images/success.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/video.css b/target/Blog/static/ueditor1_4_3_3/dialogs/video/video.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/video.html b/target/Blog/static/ueditor1_4_3_3/dialogs/video/video.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/video/video.js b/target/Blog/static/ueditor1_4_3_3/dialogs/video/video.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/webapp/webapp.html b/target/Blog/static/ueditor1_4_3_3/dialogs/webapp/webapp.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/wordimage/fClipboard_ueditor.swf b/target/Blog/static/ueditor1_4_3_3/dialogs/wordimage/fClipboard_ueditor.swf old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/wordimage/imageUploader.swf b/target/Blog/static/ueditor1_4_3_3/dialogs/wordimage/imageUploader.swf old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/wordimage/tangram.js b/target/Blog/static/ueditor1_4_3_3/dialogs/wordimage/tangram.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/wordimage/wordimage.html b/target/Blog/static/ueditor1_4_3_3/dialogs/wordimage/wordimage.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/dialogs/wordimage/wordimage.js b/target/Blog/static/ueditor1_4_3_3/dialogs/wordimage/wordimage.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/index.html b/target/Blog/static/ueditor1_4_3_3/index.html old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/jsp/config.json b/target/Blog/static/ueditor1_4_3_3/jsp/config.json old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/jsp/controller.jsp b/target/Blog/static/ueditor1_4_3_3/jsp/controller.jsp old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/jsp/lib/commons-codec-1.9.jar b/target/Blog/static/ueditor1_4_3_3/jsp/lib/commons-codec-1.9.jar old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/jsp/lib/commons-fileupload-1.3.1.jar b/target/Blog/static/ueditor1_4_3_3/jsp/lib/commons-fileupload-1.3.1.jar old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/jsp/lib/commons-io-2.4.jar b/target/Blog/static/ueditor1_4_3_3/jsp/lib/commons-io-2.4.jar old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/jsp/lib/json.jar b/target/Blog/static/ueditor1_4_3_3/jsp/lib/json.jar old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/jsp/lib/ueditor-1.1.2.jar b/target/Blog/static/ueditor1_4_3_3/jsp/lib/ueditor-1.1.2.jar old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/en.js b/target/Blog/static/ueditor1_4_3_3/lang/en/en.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/addimage.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/addimage.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/alldeletebtnhoverskin.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/alldeletebtnhoverskin.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/alldeletebtnupskin.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/alldeletebtnupskin.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/background.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/background.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/button.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/button.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/copy.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/copy.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/deletedisable.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/deletedisable.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/deleteenable.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/deleteenable.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/listbackground.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/listbackground.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/localimage.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/localimage.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/music.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/music.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/rotateleftdisable.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/rotateleftdisable.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/rotateleftenable.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/rotateleftenable.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/rotaterightdisable.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/rotaterightdisable.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/rotaterightenable.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/rotaterightenable.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/en/images/upload.png b/target/Blog/static/ueditor1_4_3_3/lang/en/images/upload.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/zh-cn/images/copy.png b/target/Blog/static/ueditor1_4_3_3/lang/zh-cn/images/copy.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/zh-cn/images/localimage.png b/target/Blog/static/ueditor1_4_3_3/lang/zh-cn/images/localimage.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/zh-cn/images/music.png b/target/Blog/static/ueditor1_4_3_3/lang/zh-cn/images/music.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/zh-cn/images/upload.png b/target/Blog/static/ueditor1_4_3_3/lang/zh-cn/images/upload.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/lang/zh-cn/zh-cn.js b/target/Blog/static/ueditor1_4_3_3/lang/zh-cn/zh-cn.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/css/ueditor.css b/target/Blog/static/ueditor1_4_3_3/themes/default/css/ueditor.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/css/ueditor.min.css b/target/Blog/static/ueditor1_4_3_3/themes/default/css/ueditor.min.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/dialogbase.css b/target/Blog/static/ueditor1_4_3_3/themes/default/dialogbase.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/anchor.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/anchor.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/arrow.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/arrow.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/arrow_down.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/arrow_down.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/arrow_up.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/arrow_up.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/button-bg.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/button-bg.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/cancelbutton.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/cancelbutton.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/charts.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/charts.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/cursor_h.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/cursor_h.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/cursor_h.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/cursor_h.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/cursor_v.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/cursor_v.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/cursor_v.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/cursor_v.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/dialog-title-bg.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/dialog-title-bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/filescan.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/filescan.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/highlighted.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/highlighted.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/icons-all.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/icons-all.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/icons.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/icons.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/icons.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/icons.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/loaderror.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/loaderror.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/loading.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/loading.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/lock.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/lock.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/neweditor-tab-bg.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/neweditor-tab-bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/pagebreak.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/pagebreak.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/scale.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/scale.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/sortable.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/sortable.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/spacer.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/spacer.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/sparator_v.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/sparator_v.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/table-cell-align.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/table-cell-align.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/tangram-colorpicker.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/tangram-colorpicker.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/toolbar_bg.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/toolbar_bg.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/unhighlighted.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/unhighlighted.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/upload.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/upload.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/videologo.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/videologo.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/word.gif b/target/Blog/static/ueditor1_4_3_3/themes/default/images/word.gif old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/default/images/wordpaste.png b/target/Blog/static/ueditor1_4_3_3/themes/default/images/wordpaste.png old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/themes/iframe.css b/target/Blog/static/ueditor1_4_3_3/themes/iframe.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/SyntaxHighlighter/shCore.js b/target/Blog/static/ueditor1_4_3_3/third-party/SyntaxHighlighter/shCore.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/SyntaxHighlighter/shCoreDefault.css b/target/Blog/static/ueditor1_4_3_3/third-party/SyntaxHighlighter/shCoreDefault.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/codemirror/codemirror.css b/target/Blog/static/ueditor1_4_3_3/third-party/codemirror/codemirror.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/codemirror/codemirror.js b/target/Blog/static/ueditor1_4_3_3/third-party/codemirror/codemirror.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/mootools-adapter.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/mootools-adapter.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/mootools-adapter.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/mootools-adapter.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/prototype-adapter.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/prototype-adapter.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/prototype-adapter.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/prototype-adapter.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/standalone-framework.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/standalone-framework.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/standalone-framework.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/adapters/standalone-framework.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/highcharts-more.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/highcharts-more.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/highcharts-more.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/highcharts-more.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/highcharts.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/highcharts.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/highcharts.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/highcharts.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/annotations.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/annotations.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/annotations.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/annotations.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/canvas-tools.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/canvas-tools.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/canvas-tools.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/canvas-tools.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/data.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/data.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/data.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/data.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/drilldown.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/drilldown.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/drilldown.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/drilldown.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/exporting.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/exporting.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/exporting.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/exporting.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/funnel.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/funnel.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/funnel.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/funnel.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/heatmap.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/heatmap.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/heatmap.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/heatmap.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/map.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/map.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/map.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/map.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/no-data-to-display.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/no-data-to-display.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/no-data-to-display.src.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/modules/no-data-to-display.src.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/themes/dark-blue.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/themes/dark-blue.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/themes/dark-green.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/themes/dark-green.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/themes/gray.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/themes/gray.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/themes/grid.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/themes/grid.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/themes/skies.js b/target/Blog/static/ueditor1_4_3_3/third-party/highcharts/themes/skies.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/jquery-1.10.2.js b/target/Blog/static/ueditor1_4_3_3/third-party/jquery-1.10.2.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/jquery-1.10.2.min.js b/target/Blog/static/ueditor1_4_3_3/third-party/jquery-1.10.2.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/jquery-1.10.2.min.map b/target/Blog/static/ueditor1_4_3_3/third-party/jquery-1.10.2.min.map old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/snapscreen/UEditorSnapscreen.exe b/target/Blog/static/ueditor1_4_3_3/third-party/snapscreen/UEditorSnapscreen.exe old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/video-js/font/vjs.eot b/target/Blog/static/ueditor1_4_3_3/third-party/video-js/font/vjs.eot old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/video-js/font/vjs.svg b/target/Blog/static/ueditor1_4_3_3/third-party/video-js/font/vjs.svg old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/video-js/font/vjs.ttf b/target/Blog/static/ueditor1_4_3_3/third-party/video-js/font/vjs.ttf old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/video-js/font/vjs.woff b/target/Blog/static/ueditor1_4_3_3/third-party/video-js/font/vjs.woff old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/video-js/video-js.css b/target/Blog/static/ueditor1_4_3_3/third-party/video-js/video-js.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/video-js/video-js.min.css b/target/Blog/static/ueditor1_4_3_3/third-party/video-js/video-js.min.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/video-js/video-js.swf b/target/Blog/static/ueditor1_4_3_3/third-party/video-js/video-js.swf old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/video-js/video.dev.js b/target/Blog/static/ueditor1_4_3_3/third-party/video-js/video.dev.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/video-js/video.js b/target/Blog/static/ueditor1_4_3_3/third-party/video-js/video.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/Uploader.swf b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/Uploader.swf old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.css b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.css old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.js b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.min.js b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.custom.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.js b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.min.js b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.flashonly.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.js b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.min.js b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.html5only.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.js b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.min.js b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.withoutimage.js b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.withoutimage.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.withoutimage.min.js b/target/Blog/static/ueditor1_4_3_3/third-party/webuploader/webuploader.withoutimage.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/xss.min.js b/target/Blog/static/ueditor1_4_3_3/third-party/xss.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/zeroclipboard/ZeroClipboard.js b/target/Blog/static/ueditor1_4_3_3/third-party/zeroclipboard/ZeroClipboard.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/zeroclipboard/ZeroClipboard.min.js b/target/Blog/static/ueditor1_4_3_3/third-party/zeroclipboard/ZeroClipboard.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/third-party/zeroclipboard/ZeroClipboard.swf b/target/Blog/static/ueditor1_4_3_3/third-party/zeroclipboard/ZeroClipboard.swf old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/ueditor.all.js b/target/Blog/static/ueditor1_4_3_3/ueditor.all.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/ueditor.all.min.js b/target/Blog/static/ueditor1_4_3_3/ueditor.all.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/ueditor.config.js b/target/Blog/static/ueditor1_4_3_3/ueditor.config.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/ueditor.parse.js b/target/Blog/static/ueditor1_4_3_3/ueditor.parse.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/ueditor1_4_3_3/ueditor.parse.min.js b/target/Blog/static/ueditor1_4_3_3/ueditor.parse.min.js old mode 100644 new mode 100755 diff --git a/target/Blog/static/userImages/myhead.jpg b/target/Blog/static/userImages/myhead.jpg old mode 100644 new mode 100755 diff --git a/target/Blog/static/userImages/yuan.jpg b/target/Blog/static/userImages/yuan.jpg old mode 100644 new mode 100755 diff --git a/target/classes/db_blog.sql b/target/classes/db_blog.sql old mode 100644 new mode 100755 diff --git a/target/classes/log4j.properties b/target/classes/log4j.properties old mode 100644 new mode 100755 diff --git a/target/classes/mapper/BlogMapper.xml b/target/classes/mapper/BlogMapper.xml old mode 100644 new mode 100755 diff --git a/target/classes/ssm/blog/controller/BloggerController.class b/target/classes/ssm/blog/controller/BloggerController.class index 7de5858..669a8dd 100644 Binary files a/target/classes/ssm/blog/controller/BloggerController.class and b/target/classes/ssm/blog/controller/BloggerController.class differ