Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pass tc in phantomjs with travis-ci

  • Loading branch information...
commit 1274597206bbcd7af4314e3386e3eda0c8c4c2e4 1 parent ff86205
@yiminghe yiminghe authored
Showing with 1,636 additions and 996 deletions.
  1. +5 −1 .travis.yml
  2. +2 −2 build/event/dom/touch-min.js
  3. +4 −2 build/event/dom/touch.js
  4. +278 −277 build/kissy-min.js
  5. +65 −64 build/kissy-nodejs-min.js
  6. +7 −5 build/kissy-nodejs.js
  7. +75 −40 build/kissy.js
  8. +76 −75 build/seed-min.js
  9. +58 −36 build/seed.js
  10. +6 −6 build/ua-min.js
  11. +13 −2 build/ua.js
  12. +1 −1  package.json
  13. +2 −2 reports/TEST-base.xml
  14. +6 −6 reports/TEST-base_complex.xml
  15. +8 −8 reports/TEST-custom_event.xml
  16. +5 −5 reports/TEST-htmlparser_for_editor.xml
  17. +1 −1  reports/TEST-htmlparser_lexer.xml
  18. +6 −6 reports/TEST-htmlparser_parser.xml
  19. +4 −4 reports/TEST-json.xml
  20. +8 −8 reports/TEST-kison.xml
  21. +18 −18 reports/TEST-template.xml
  22. +26 −26 reports/TEST-xtemplate.xml
  23. +4 −5 src/ajax/src/iframe-transport.js
  24. +1 −1  src/ajax/src/xhr-transport-base.js
  25. +1 −1  src/ajax/tests/data/ajax.jss
  26. +0 −1  src/ajax/tests/data/ifModified.jss
  27. +1 −1  src/ajax/tests/others/form/upload-domain.jss
  28. +21 −18 src/ajax/tests/others/form/upload.jss
  29. +1 −1  src/ajax/tests/others/subdomain/upload.jss
  30. +2 −0  src/ajax/tests/others/test-serialize.html
  31. +1 −1  src/ajax/tests/others/xdr/xdr.jss
  32. +2 −0  src/ajax/tests/runner/test-basic.html
  33. +2 −0  src/ajax/tests/runner/test-xdr.html
  34. +2 −0  src/ajax/tests/runner/test.html
  35. +13 −4 src/ajax/tests/specs/advanced-spec.js
  36. +5 −5 src/ajax/tests/specs/promise/io-promise-spec.js
  37. +2 −0  src/ajax/tests/specs/promise/test.html
  38. +2 −0  src/anim/tests/runner/test.html
  39. +38 −37 src/anim/tests/specs/anim-spec.js
  40. +2 −0  src/base/tests/runner/test.html
  41. +1 −1  src/combobox/src/base.js
  42. +2 −0  src/combobox/tests/runner/test.html
  43. +18 −17 src/combobox/tests/specs/simple-spec.js
  44. +2 −1  src/component/tests/runner/test.html
  45. +1 −1  src/component/tests/specs/uibase-spec.js
  46. +2 −0  src/cookie/tests/runner/test.html
  47. +1 −1  src/cookie/tests/specs/cookie-spec.js
  48. +2 −0  src/dd/sub-modules/base/tests/runner/test.html
  49. +2 −0  src/dd/sub-modules/constrain/tests/runner/test.html
  50. +2 −0  src/dd/sub-modules/droppable/tests/runner/test.html
  51. +2 −0  src/dd/sub-modules/proxy/tests/runner/test.html
  52. +2 −0  src/dd/sub-modules/scroll/tests/runner/test.html
  53. +2 −0  src/dom/tests/runner/test.html
  54. +2 −0  src/editor/tests/runner/test.html
  55. +3 −3 src/event/sub-modules/custom/tests/runner/test.html
  56. +3 −3 src/event/sub-modules/dom/sub-modules/base/tests/runner/test-domain-error.html
  57. +3 −3 src/event/sub-modules/dom/sub-modules/base/tests/runner/test-domain.html
  58. +6 −5 src/event/sub-modules/dom/sub-modules/base/tests/runner/test.html
  59. +3 −1 src/event/sub-modules/dom/sub-modules/touch/src/handle.js
  60. +2 −0  src/flash/tests/runner/test.html
  61. +5 −0 src/flash/tests/specs/flash-spec.js
  62. +2 −0  src/grid/tests/{runner → xrunner}/bar.html
  63. +2 −0  src/grid/tests/{runner → xrunner}/body.html
  64. +2 −0  src/grid/tests/{runner → xrunner}/editing.html
  65. +2 −0  src/grid/tests/{runner → xrunner}/editor.html
  66. +2 −0  src/grid/tests/{runner → xrunner}/grid.html
  67. +2 −0  src/grid/tests/{runner → xrunner}/head.html
  68. +2 −0  src/grid/tests/{runner → xrunner}/plugins.html
  69. +2 −0  src/grid/tests/{runner → xrunner}/util.html
  70. +13 −13 src/htmlparser/tests/runner/test.html
  71. +2 −0  src/imagezoom/tests/runner/test.html
  72. +2 −0  src/input-selection/tests/runner/test.html
  73. +2 −0  src/json/tests/runner/test.html
  74. +2 −0  src/kison/tests/runner/test.html
  75. +2 −0  src/menu/tests/runner/test.html
  76. +2 −0  src/mvc/tests/runner/test-domain-error.html
  77. +2 −0  src/mvc/tests/runner/test-domain.html
  78. +2 −0  src/mvc/tests/runner/test-router-html5.html
  79. +2 −0  src/mvc/tests/runner/test.html
  80. +6 −1 src/mvc/tests/specs/router-spec.js
  81. +2 −0  src/node/tests/runner/test.html
  82. +2 −0  src/overlay/tests/runner/test.html
  83. +7 −3 src/overlay/tests/specs/overlay-spec.js
  84. +2 −0  src/resizable/tests/runner/test.html
  85. +3 −1 src/seed/src/features.js
  86. +33 −29 src/seed/src/loader/css-onload.js
  87. +19 −2 src/seed/src/loader/get-script.js
  88. +1 −0  src/seed/tests/others/manual/comboOverlay/t.html
  89. +1 −0  src/seed/tests/others/manual/useCore/t.html
  90. +2 −0  src/seed/tests/runner/clean-combo-loader.html
  91. +2 −0  src/seed/tests/runner/combo-loader-core.html
  92. +2 −0  src/seed/tests/runner/combo-loader.html
  93. +12 −6 src/seed/tests/runner/lang.html
  94. +2 −0  src/seed/tests/runner/simple-loader-core.html
  95. +2 −0  src/seed/tests/runner/simple-loader-native.html
  96. +2 −0  src/seed/tests/runner/simple-loader.html
  97. +9 −7 src/seed/tests/specs/add_require/test.html
  98. +2 −0  src/seed/tests/specs/alias/test-combo.html
  99. +2 −0  src/seed/tests/specs/alias/test.html
  100. +2 −0  src/seed/tests/specs/combo/test.html
  101. +10 −8 src/seed/tests/specs/css-combo/test.html
  102. +4 −1 src/seed/tests/specs/lang-spec.js
  103. +2 −0  src/seed/tests/specs/loader-map/test.html
  104. +4 −2 src/seed/tests/specs/package-raw/demo-combo.html
  105. +7 −0 src/seed/tests/specs/package-raw/package-raw-combo-spec.js
  106. +36 −0 src/seed/tests/specs/package-raw/test-combo.html
  107. +9 −6 src/seed/tests/specs/package-raw/test.html
  108. +2 −0  src/seed/tests/specs/package_path_longest_match/test.html
  109. +2 −0  src/seed/tests/specs/promise/test.html
  110. +2 −0  src/seed/tests/specs/timestamp/t-combo.html
  111. +2 −0  src/seed/tests/specs/timestamp/t.html
  112. +2 −0  src/sizzle/tests/runner/test.html
  113. +2 −0  src/stylesheet/tests/runner/test.html
  114. +2 −0  src/tabs/tests/runner/test.html
  115. +2 −0  src/template/tests/runner/test.html
  116. +12 −1 src/ua/src/base.js
  117. +2 −0  src/xtemplate/tests/runner/test-min.html
  118. +1 −1  src/xtemplate/tests/runner/test.html
  119. +102 −50 tools/jasmine/event-simulate.js
  120. +90 −128 tools/jasmine/jasmine.console_reporter.js
  121. +142 −0 tools/jasmine/jasmine.console_reporter_bak.js
  122. +39 −0 tools/test/gen-tc.js
  123. +50 −0 tools/test/jasmine-phantomjs.js
  124. +5 −22 tools/test/server.js
  125. +98 −0 tools/test/tc.js
  126. +5 −9 tools/test/test.js
View
6 .travis.yml
@@ -6,4 +6,8 @@ notifications:
node_js:
- 0.6
- - 0.8
+ - 0.8
+
+script:
+ - npm test
+ - phantomjs ./tools/test/jasmine-phantomjs.js
View
4 build/event/dom/touch-min.js
@@ -1,7 +1,7 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 20 16:19
+build time: Nov 20 23:38
*/
KISSY.add("event/dom/touch/single-touch",function(e){function b(){}b.prototype={requiredTouchCount:1,onTouchStart:function(b){if(b.touches.length!=this.requiredTouchCount)return!1;this.lastTouches=b.touches},onTouchMove:e.noop,onTouchEnd:e.noop};return b});
KISSY.add("event/dom/touch/double-tap",function(e,b,f,c){function a(){}e.extend(a,c,{onTouchStart:function(g){if(!1===a.superclass.onTouchStart.apply(this,arguments))return!1;this.startTime=g.timeStamp;this.singleTapTimer&&(clearTimeout(this.singleTapTimer),this.singleTapTimer=0)},onTouchMove:function(){return!1},onTouchEnd:function(a){var b=this.lastEndTime,c=a.timeStamp,d=a.target,j=a.changedTouches[0],h=c-this.startTime;this.lastEndTime=c;if(b&&(h=c-b,300>h)){this.lastEndTime=0;f.fire(d,"doubleTap",
@@ -10,7 +10,7 @@ KISSY.add("event/dom/touch/handle-map",function(){return{}});
KISSY.add("event/dom/touch/handle",function(e,b,f,c,a){function g(a){this.doc=a;this.eventHandle={};this.init()}var i=e.guid("touch-handle"),m=e.Features,d={};d[a.start]="onTouchStart";d[a.move]="onTouchMove";d[a.end]="onTouchEnd";"mousedown"!==a.start&&(d.touchcancel="onTouchEnd");g.prototype={init:function(){var a=this.doc,g,b;this.onTouchMove=e.throttle(this.onTouchMove,30);for(g in d){b=d[g];c.on(a,g,this[b],this)}},normalize:function(a){var g=a.type,b;if(!m.isTouchSupported()){if(g.indexOf("mouse")!=
-1&&a.which!=1)return;b=[a];g=!g.match(/up$/i);a.touches=g?b:[];a.targetTouches=g?b:[];a.changedTouches=b}return a},onTouchStart:function(a){var g,b,c=this.eventHandle;for(g in c){b=c[g];b.isActive=1}this.callEventHandle("onTouchStart",a)},onTouchMove:function(a){this.callEventHandle("onTouchMove",a)},onTouchEnd:function(a){this.callEventHandle("onTouchEnd",a)},callEventHandle:function(a,g){var b=this.eventHandle,c,d;if(g=this.normalize(g)){for(c in b){d=b[c];if(!d.processed){d.processed=1;if(d.isActive&&
d[a](g)===false)d.isActive=0}}for(c in b){d=b[c];d.processed=0}}},addEventHandle:function(a){var g=f[a];this.eventHandle[a]||(this.eventHandle[a]=g)},removeEventHandle:function(a){delete this.eventHandle[a]},destroy:function(){var a=this.doc,g,b;for(g in d){b=d[g];c.detach(a,g,this[b],this)}}};return{addDocumentHandle:function(a,c){var d=b._getWin(a.ownerDocument||a).document,f=b.data(d,i);f||b.data(d,i,f=new g(d));f.addEventHandle(c)},removeDocumentHandle:function(a,g){var c=b._getWin(a.ownerDocument||
-a).document,d=b.data(c,i);if(d){d.removeEventHandle(g);if(e.isEmptyObject(eventHandle)){d.destroy();b.removeData(c,i)}}}}},{requires:"dom,./handle-map,event/dom/base,./gesture,./tap,./swipe,./double-tap,./pinch,./tap-hold,./rotate".split(",")});
+a).document,d=b.data(c,i);if(d){d.removeEventHandle(g);if(e.isEmptyObject(d.eventHandle)){d.destroy();b.removeData(c,i)}}}}},{requires:"dom,./handle-map,event/dom/base,./gesture,./tap,./swipe,./double-tap,./pinch,./tap-hold,./rotate".split(",")});
KISSY.add("event/dom/touch/multi-touch",function(e,b){function f(){}f.prototype={requiredTouchCount:2,onTouchStart:function(b){var a=this.requiredTouchCount,g=b.touches.length;g===a?this.start():g>a&&this.end(b)},onTouchEnd:function(b){this.end(b)},start:function(){this.isTracking||(this.isTracking=!0,this.isStarted=!1)},fireEnd:e.noop,getCommonTarget:function(c){var a=c.touches,c=a[0].target,a=a[1].target;if(c==a||b.contains(c,a))return c;for(;;){if(b.contains(a,c))return a;a=a.parentNode}},end:function(b){this.isTracking&&
(this.isTracking=!1,this.isStarted&&(this.isStarted=!1,this.fireEnd(b)))}};return f},{requires:["dom"]});
KISSY.add("event/dom/touch/pinch",function(e,b,f,c){function a(){}e.extend(a,c,{onTouchMove:function(a){if(this.isTracking){var b=a.touches,c,d=b[0],e=b[1];c=d.pageX-e.pageX;d=d.pageY-e.pageY;c=Math.sqrt(c*c+d*d);this.isStarted?f.fire(this.target,"pinch",{touches:b,distance:c,scale:c/this.startDistance}):(this.isStarted=!0,this.startDistance=c,a=this.target=this.getCommonTarget(a),f.fire(a,"pinchStart",{touches:b,distance:c,scale:1}));this.lastTouches=b}},fireEnd:function(){f.fire(this.target,"pinchEnd",
View
6 build/event/dom/touch.js
@@ -1,7 +1,7 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 20 16:19
+build time: Nov 20 23:38
*/
/**
* @ignore
@@ -172,6 +172,8 @@ KISSY.add('event/dom/touch/handle-map', function () {
*/
KISSY.add('event/dom/touch/handle', function (S, DOM, eventHandleMap, Event, Gesture) {
+ 'use strict';
+
var key = S.guid('touch-handle'),
Features = S.Features,
MOVE_DELAY = 30,
@@ -316,7 +318,7 @@ KISSY.add('event/dom/touch/handle', function (S, DOM, eventHandleMap, Event, Ges
handle = DOM.data(doc, key);
if (handle) {
handle.removeEventHandle(event);
- if (S.isEmptyObject(eventHandle)) {
+ if (S.isEmptyObject(handle.eventHandle)) {
handle.destroy();
DOM.removeData(doc, key);
}
View
555 build/kissy-min.js
278 additions, 277 deletions not shown
View
129 build/kissy-nodejs-min.js
@@ -1,76 +1,77 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 20 16:22
+build time: Nov 21 02:29
*/
-var KISSY=function(a){var k=this,g,e=0;g={__BUILD_TIME:"20121120162241",Env:{host:k,nodejs:"function"==typeof require&&"object"==typeof exports},Config:{debug:"",fns:{}},version:"1.40dev",config:function(b,c){var d,h,m=this,j,o=g.Config,f=o.fns;g.isObject(b)?g.each(b,function(a,i){(j=f[i])?j.call(m,a):o[i]=a}):(d=f[b],c===a?h=d?d.call(m):o[b]:d?h=d.call(m,c):o[b]=c);return h},log:function(b,c,d){if(g.Config.debug&&(d&&(b=d+": "+b),k.console!==a&&console.log))console[c&&console[c]?c:"log"](b)},
-error:function(a){if(g.Config.debug)throw a instanceof Error?a:Error(a);},guid:function(a){return(a||"")+e++}};g.Env.nodejs&&(g.KISSY=g,module.exports=g);return g}();
-(function(a,k){function g(a,c,f,l,i,p){if(!c||!a)return a;f===k&&(f=d);var q=0,n,s;c[b]=a;p.push(c);if(l&&(s=l.length))for(;q<s;q++)n=l[q],n in c&&e(n,a,c,f,l,i,p);else{for(n in c)n!=b&&e(n,a,c,f,l,i,p);if(h)for(;n=m[q++];)c.hasOwnProperty(n)&&e(n,a,c,f,l,i,p)}return a}function e(j,c,f,l,i,p,q){if(l||!(j in c)||p){var n=c[j],f=f[j];if(n!==f)if(p&&f&&(a.isArray(f)||a.isPlainObject(f)))f[b]?c[j]=f[b]:(p=n&&(a.isArray(n)||a.isPlainObject(n))?n:a.isArray(f)?[]:{},c[j]=p,g(p,f,l,i,d,q));else if(f!==k&&
-(l||!(j in c)))c[j]=f}}var b="__MIX_CIRCULAR",c=this,d=!0,h=!{toString:1}.propertyIsEnumerable("toString"),m="hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toString,toLocaleString,valueOf".split(",");(function(a,b){for(var f in b)a[f]=b[f]})(a,{stamp:function(j,b,f){if(!j)return j;var f=f||"__~ks_stamped",l=j[f];if(!l&&!b)try{l=j[f]=a.guid(f)}catch(i){l=k}return l},keys:function(j){var b=[],f;for(f in j)b.push(f);h&&a.each(m,function(a){j.hasOwnProperty(a)&&b.push(a)});return b},mix:function(a,
-c,f,l,i){"object"===typeof f&&(l=f.whitelist,i=f.deep,f=f.overwrite);var d=[],q=0;for(g(a,c,f,l,i,d);c=d[q++];)delete c[b];return a},merge:function(j){var j=a.makeArray(arguments),b={},f,l=j.length;for(f=0;f<l;f++)a.mix(b,j[f]);return b},augment:function(j,b){var f=a.makeArray(arguments),l=f.length-2,i=1,c=f[l],d=f[l+1];a.isArray(d)||(c=d,d=k,l++);a.isBoolean(c)||(c=k,l++);for(;i<l;i++)a.mix(j.prototype,f[i].prototype||f[i],c,d);return j},extend:function(b,c,f,l){if(!c||!b)return b;var i=Object.create?
-function(a,i){return Object.create(a,{constructor:{value:i}})}:function(a,i){function b(){}b.prototype=a;var f=new b;f.constructor=i;return f},d=c.prototype,q;q=i(d,b);b.prototype=a.mix(q,b.prototype);b.superclass=i(d,c);f&&a.mix(q,f);l&&a.mix(b,l);return b},namespace:function(){var b=a.makeArray(arguments),m=b.length,f=null,l,i,p,q=b[m-1]===d&&m--;for(l=0;l<m;l++){p=(""+b[l]).split(".");f=q?c:this;for(i=c[p[0]]===f?1:0;i<p.length;++i)f=f[p[i]]=f[p[i]]||{}}return f}})})(KISSY);
-(function(a,k){var g=Array.prototype,e=g.indexOf,b=g.lastIndexOf,c=g.filter,d=g.every,h=g.some,m=g.map;a.mix(a,{each:function(b,c,f){if(b){var l,i=0,d=b&&b.length,m=d===k||"function"===a.type(b),f=f||null;if(m)for(l in b){if(!1===c.call(f,b[l],l,b))break}else for(l=b[0];i<d&&!1!==c.call(f,l,i,b);l=b[++i]);}return b},indexOf:e?function(a,b){return e.call(b,a)}:function(a,b){for(var f=0,l=b.length;f<l;++f)if(b[f]===a)return f;return-1},lastIndexOf:b?function(a,c){return b.call(c,a)}:function(a,b){for(var f=
-b.length-1;0<=f&&b[f]!==a;f--);return f},unique:function(b,c){var f=b.slice();c&&f.reverse();for(var l=0,i,d;l<f.length;){for(d=f[l];(i=a.lastIndexOf(d,f))!==l;)f.splice(i,1);l+=1}c&&f.reverse();return f},inArray:function(b,c){return-1<a.indexOf(b,c)},filter:c?function(a,b,f){return c.call(a,b,f||this)}:function(b,c,f){var l=[];a.each(b,function(a,b,d){c.call(f||this,a,b,d)&&l.push(a)});return l},map:m?function(a,b,f){return m.call(a,b,f||this)}:function(a,b,f){for(var c=a.length,i=Array(c),d=0;d<
-c;d++){var m="string"==typeof a?a.charAt(d):a[d];if(m||d in a)i[d]=b.call(f||this,m,d,a)}return i},reduce:function(a,b,f){var c=a.length;if("function"!==typeof b)throw new TypeError("callback is not function!");if(0===c&&2==arguments.length)throw new TypeError("arguments invalid");var i=0,d;if(3<=arguments.length)d=arguments[2];else{do{if(i in a){d=a[i++];break}i+=1;if(i>=c)throw new TypeError;}while(1)}for(;i<c;)i in a&&(d=b.call(k,d,a[i],i,a)),i++;return d},every:d?function(a,b,c){return d.call(a,
-b,c||this)}:function(a,b,c){for(var d=a&&a.length||0,i=0;i<d;i++)if(i in a&&!b.call(c,a[i],i,a))return!1;return!0},some:h?function(a,b,c){return h.call(a,b,c||this)}:function(a,b,c){for(var d=a&&a.length||0,i=0;i<d;i++)if(i in a&&b.call(c,a[i],i,a))return!0;return!1},makeArray:function(b){if(null==b)return[];if(a.isArray(b))return b;if("number"!==typeof b.length||b.alert||"string"==typeof b||a.isFunction(b))return[b];for(var c=[],d=0,l=b.length;d<l;d++)c[d]=b[d];return c}})})(KISSY);
-(function(a,k){function g(a){var b=typeof a;return null==a||"object"!==b&&"function"!==b}function e(){if(m)return m;var b=c;a.each(d,function(a){b+=a+"|"});b=b.slice(0,-1);return m=RegExp(b,"g")}function b(){if(j)return j;var b=c;a.each(h,function(a){b+=a+"|"});b+="&#(\\d{1,5});";return j=RegExp(b,"g")}var c="",d={"&amp;":"&","&gt;":">","&lt;":"<","&#x60;":"`","&#x2F;":"/","&quot;":'"',"&#x27;":"'"},h={},m,j,o=/[\-#$\^*()+\[\]{}|\\,.?\s]/g;(function(){for(var a in d)h[d[a]]=a})();a.mix(a,{urlEncode:function(a){return encodeURIComponent(""+
-a)},urlDecode:function(a){return decodeURIComponent(a.replace(/\+/g," "))},fromUnicode:function(a){return a.replace(/\\u([a-f\d]{4})/ig,function(a,b){return String.fromCharCode(parseInt(b,16))})},escapeHTML:function(a){return(a+"").replace(e(),function(a){return h[a]})},escapeRegExp:function(a){return a.replace(o,"\\$&")},unEscapeHTML:function(a){return a.replace(b(),function(a,b){return d[a]||String.fromCharCode(+b)})},param:function(b,d,i,m){if(!a.isPlainObject(b))return c;d=d||"&";i=i||"=";a.isUndefined(m)&&
-(m=!0);var j=[],n,h,e,o,r,u=a.urlEncode;for(n in b)if(r=b[n],n=u(n),g(r))j.push(n),r!==k&&j.push(i,u(r+c)),j.push(d);else if(a.isArray(r)&&r.length){h=0;for(o=r.length;h<o;++h)e=r[h],g(e)&&(j.push(n,m?u("[]"):c),e!==k&&j.push(i,u(e+c)),j.push(d))}j.pop();return j.join(c)},unparam:function(b,d,i){if("string"!=typeof b||!(b=a.trim(b)))return{};for(var i=i||"=",c={},m,n=a.urlDecode,b=b.split(d||"&"),j=0,h=b.length;j<h;++j){m=b[j].indexOf(i);if(-1==m)d=n(b[j]),m=k;else{d=n(b[j].substring(0,m));m=b[j].substring(m+
-1);try{m=n(m)}catch(e){}a.endsWith(d,"[]")&&(d=d.substring(0,d.length-2))}d in c?a.isArray(c[d])?c[d].push(m):c[d]=[c[d],m]:c[d]=m}return c}})})(KISSY);
-(function(a){function k(a,e,b){var c=[].slice,d=c.call(arguments,3),h=function(){},m=function(){var m=c.call(arguments);return e.apply(this instanceof h?this:b,a?m.concat(d):d.concat(m))};h.prototype=e.prototype;m.prototype=new h;return m}a.mix(a,{noop:function(){},bind:k(0,k,null,0),rbind:k(0,k,null,1),later:function(g,e,b,c,d){var e=e||0,h=g,m=a.makeArray(d),j;"string"==typeof g&&(h=c[g]);g=function(){h.apply(c,m)};j=b?setInterval(g,e):setTimeout(g,e);return{id:j,interval:b,cancel:function(){this.interval?
-clearInterval(j):clearTimeout(j)}}},throttle:function(g,e,b){e=e||150;if(-1===e)return function(){g.apply(b||this,arguments)};var c=a.now();return function(){var d=a.now();d-c>e&&(c=d,g.apply(b||this,arguments))}},buffer:function(g,e,b){function c(){c.stop();d=a.later(g,e,0,b||this,arguments)}e=e||150;if(-1===e)return function(){g.apply(b||this,arguments)};var d=null;c.stop=function(){d&&(d.cancel(),d=0)};return c}})})(KISSY);
-(function(a,k){function g(b,j,h){var f=b,l,i,e,q;if(!b)return f;if(b[d])return h[b[d]].destination;if("object"===typeof b){q=b.constructor;if(a.inArray(q,[Boolean,String,Number,Date,RegExp]))f=new q(b.valueOf());else if(l=a.isArray(b))f=j?a.filter(b,j):b.concat();else if(i=a.isPlainObject(b))f={};b[d]=q=a.guid();h[q]={destination:f,input:b}}if(l)for(b=0;b<f.length;b++)f[b]=g(f[b],j,h);else if(i)for(e in b)if(e!==d&&(!j||j.call(b,b[e],e,b)!==c))f[e]=g(b[e],j,h);return f}function e(d,c,e,f){if(d[h]===
-c&&c[h]===d)return b;d[h]=c;c[h]=d;var l=function(a,b){return null!==a&&a!==k&&a[b]!==k},i;for(i in c)!l(d,i)&&l(c,i)&&e.push("expected has key '"+i+"', but missing from actual.");for(i in d)!l(c,i)&&l(d,i)&&e.push("expected missing key '"+i+"', but present in actual.");for(i in c)i!=h&&(a.equals(d[i],c[i],e,f)||f.push("'"+i+"' was '"+(c[i]?c[i].toString():c[i])+"' in expected, but was '"+(d[i]?d[i].toString():d[i])+"' in actual."));a.isArray(d)&&a.isArray(c)&&d.length!=c.length&&f.push("arrays were not the same length");
-delete d[h];delete c[h];return 0===e.length&&0===f.length}var b=!0,c=!1,d="__~ks_cloned",h="__~ks_compared";a.mix(a,{equals:function(d,c,h,f){h=h||[];f=f||[];return d===c?b:d===k||null===d||c===k||null===c?null==d&&null==c:d instanceof Date&&c instanceof Date?d.getTime()==c.getTime():"string"==typeof d&&"string"==typeof c||a.isNumber(d)&&a.isNumber(c)?d==c:"object"===typeof d&&"object"===typeof c?e(d,c,h,f):d===c},clone:function(b,c){var h={},f=g(b,c,h);a.each(h,function(a){a=a.input;if(a[d])try{delete a[d]}catch(b){a[d]=
-k}});h=null;return f},now:Date.now||function(){return+new Date}})})(KISSY);
-(function(a,k){var g=/^[\s\xa0]+|[\s\xa0]+$/g,e=String.prototype.trim;a.mix(a,{trim:e?function(a){return null==a?"":e.call(a)}:function(a){return null==a?"":a.toString().replace(g,"")},substitute:function(b,c,d){return"string"!=typeof b||!a.isPlainObject(c)?b:b.replace(d||/\\?\{([^{}]+)\}/g,function(a,b){return"\\"===a.charAt(0)?a.slice(1):c[b]===k?"":c[b]})},ucfirst:function(a){a+="";return a.charAt(0).toUpperCase()+a.substring(1)},startsWith:function(a,c){return 0===a.lastIndexOf(c,0)},endsWith:function(a,
+var KISSY=function(a){var k=this,h,e=0;h={__BUILD_TIME:"20121121022910",Env:{host:k,nodejs:"function"==typeof require&&"object"==typeof exports},Config:{debug:"",fns:{}},version:"1.40dev",config:function(b,c){var d,g,l=this,j,o=h.Config,f=o.fns;h.isObject(b)?h.each(b,function(a,i){(j=f[i])?j.call(l,a):o[i]=a}):(d=f[b],c===a?g=d?d.call(l):o[b]:d?g=d.call(l,c):o[b]=c);return g},log:function(b,c,d){if(h.Config.debug&&(d&&(b=d+": "+b),k.console!==a&&console.log))console[c&&console[c]?c:"log"](b)},
+error:function(a){if(h.Config.debug)throw a instanceof Error?a:Error(a);},guid:function(a){return(a||"")+e++}};h.Env.nodejs&&(h.KISSY=h,module.exports=h);return h}();
+(function(a,k){function h(a,c,f,m,i,p){if(!c||!a)return a;f===k&&(f=d);var q=0,n,u;c[b]=a;p.push(c);if(m&&(u=m.length))for(;q<u;q++)n=m[q],n in c&&e(n,a,c,f,m,i,p);else{for(n in c)n!=b&&e(n,a,c,f,m,i,p);if(g)for(;n=l[q++];)c.hasOwnProperty(n)&&e(n,a,c,f,m,i,p)}return a}function e(j,c,f,m,i,p,q){if(m||!(j in c)||p){var n=c[j],f=f[j];if(n!==f)if(p&&f&&(a.isArray(f)||a.isPlainObject(f)))f[b]?c[j]=f[b]:(p=n&&(a.isArray(n)||a.isPlainObject(n))?n:a.isArray(f)?[]:{},c[j]=p,h(p,f,m,i,d,q));else if(f!==k&&
+(m||!(j in c)))c[j]=f}}var b="__MIX_CIRCULAR",c=this,d=!0,g=!{toString:1}.propertyIsEnumerable("toString"),l="hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toString,toLocaleString,valueOf".split(",");(function(a,b){for(var f in b)a[f]=b[f]})(a,{stamp:function(j,b,f){if(!j)return j;var f=f||"__~ks_stamped",m=j[f];if(!m&&!b)try{m=j[f]=a.guid(f)}catch(i){m=k}return m},keys:function(j){var b=[],f;for(f in j)b.push(f);g&&a.each(l,function(a){j.hasOwnProperty(a)&&b.push(a)});return b},mix:function(a,
+d,f,m,i){"object"===typeof f&&(m=f.whitelist,i=f.deep,f=f.overwrite);var c=[],q=0;for(h(a,d,f,m,i,c);d=c[q++];)delete d[b];return a},merge:function(j){var j=a.makeArray(arguments),b={},f,m=j.length;for(f=0;f<m;f++)a.mix(b,j[f]);return b},augment:function(j,b){var f=a.makeArray(arguments),m=f.length-2,i=1,d=f[m],c=f[m+1];a.isArray(c)||(d=c,c=k,m++);a.isBoolean(d)||(d=k,m++);for(;i<m;i++)a.mix(j.prototype,f[i].prototype||f[i],d,c);return j},extend:function(b,d,f,m){if(!d||!b)return b;var i=Object.create?
+function(a,i){return Object.create(a,{constructor:{value:i}})}:function(a,i){function b(){}b.prototype=a;var f=new b;f.constructor=i;return f},c=d.prototype,q;q=i(c,b);b.prototype=a.mix(q,b.prototype);b.superclass=i(c,d);f&&a.mix(q,f);m&&a.mix(b,m);return b},namespace:function(){var b=a.makeArray(arguments),l=b.length,f=null,m,i,p,q=b[l-1]===d&&l--;for(m=0;m<l;m++){p=(""+b[m]).split(".");f=q?c:this;for(i=c[p[0]]===f?1:0;i<p.length;++i)f=f[p[i]]=f[p[i]]||{}}return f}})})(KISSY);
+(function(a,k){var h=Array.prototype,e=h.indexOf,b=h.lastIndexOf,c=h.filter,d=h.every,g=h.some,l=h.map;a.mix(a,{each:function(b,d,f){if(b){var m,i=0,c=b&&b.length,l=c===k||"function"===a.type(b),f=f||null;if(l)for(m in b){if(!1===d.call(f,b[m],m,b))break}else for(m=b[0];i<c&&!1!==d.call(f,m,i,b);m=b[++i]);}return b},indexOf:e?function(a,b){return e.call(b,a)}:function(a,b){for(var f=0,d=b.length;f<d;++f)if(b[f]===a)return f;return-1},lastIndexOf:b?function(a,d){return b.call(d,a)}:function(a,b){for(var f=
+b.length-1;0<=f&&b[f]!==a;f--);return f},unique:function(b,d){var f=b.slice();d&&f.reverse();for(var m=0,i,c;m<f.length;){for(c=f[m];(i=a.lastIndexOf(c,f))!==m;)f.splice(i,1);m+=1}d&&f.reverse();return f},inArray:function(b,d){return-1<a.indexOf(b,d)},filter:c?function(a,b,f){return c.call(a,b,f||this)}:function(b,d,f){var c=[];a.each(b,function(a,b,j){d.call(f||this,a,b,j)&&c.push(a)});return c},map:l?function(a,b,f){return l.call(a,b,f||this)}:function(a,b,f){for(var d=a.length,i=Array(d),c=0;c<
+d;c++){var l="string"==typeof a?a.charAt(c):a[c];if(l||c in a)i[c]=b.call(f||this,l,c,a)}return i},reduce:function(a,b,d){var c=a.length;if("function"!==typeof b)throw new TypeError("callback is not function!");if(0===c&&2==arguments.length)throw new TypeError("arguments invalid");var i=0,l;if(3<=arguments.length)l=arguments[2];else{do{if(i in a){l=a[i++];break}i+=1;if(i>=c)throw new TypeError;}while(1)}for(;i<c;)i in a&&(l=b.call(k,l,a[i],i,a)),i++;return l},every:d?function(a,b,c){return d.call(a,
+b,c||this)}:function(a,b,c){for(var d=a&&a.length||0,i=0;i<d;i++)if(i in a&&!b.call(c,a[i],i,a))return!1;return!0},some:g?function(a,b,c){return g.call(a,b,c||this)}:function(a,b,c){for(var d=a&&a.length||0,i=0;i<d;i++)if(i in a&&b.call(c,a[i],i,a))return!0;return!1},makeArray:function(b){if(null==b)return[];if(a.isArray(b))return b;if("number"!==typeof b.length||b.alert||"string"==typeof b||a.isFunction(b))return[b];for(var c=[],d=0,m=b.length;d<m;d++)c[d]=b[d];return c}})})(KISSY);
+(function(a,k){function h(a){var b=typeof a;return null==a||"object"!==b&&"function"!==b}function e(){if(l)return l;var b=c;a.each(d,function(a){b+=a+"|"});b=b.slice(0,-1);return l=RegExp(b,"g")}function b(){if(j)return j;var b=c;a.each(g,function(a){b+=a+"|"});b+="&#(\\d{1,5});";return j=RegExp(b,"g")}var c="",d={"&amp;":"&","&gt;":">","&lt;":"<","&#x60;":"`","&#x2F;":"/","&quot;":'"',"&#x27;":"'"},g={},l,j,o=/[\-#$\^*()+\[\]{}|\\,.?\s]/g;(function(){for(var a in d)g[d[a]]=a})();a.mix(a,{urlEncode:function(a){return encodeURIComponent(""+
+a)},urlDecode:function(a){return decodeURIComponent(a.replace(/\+/g," "))},fromUnicode:function(a){return a.replace(/\\u([a-f\d]{4})/ig,function(a,b){return String.fromCharCode(parseInt(b,16))})},escapeHTML:function(a){return(a+"").replace(e(),function(a){return g[a]})},escapeRegExp:function(a){return a.replace(o,"\\$&")},unEscapeHTML:function(a){return a.replace(b(),function(a,b){return d[a]||String.fromCharCode(+b)})},param:function(b,d,i,l){if(!a.isPlainObject(b))return c;d=d||"&";i=i||"=";a.isUndefined(l)&&
+(l=!0);var j=[],n,g,e,o,r,t=a.urlEncode;for(n in b)if(r=b[n],n=t(n),h(r))j.push(n),r!==k&&j.push(i,t(r+c)),j.push(d);else if(a.isArray(r)&&r.length){g=0;for(o=r.length;g<o;++g)e=r[g],h(e)&&(j.push(n,l?t("[]"):c),e!==k&&j.push(i,t(e+c)),j.push(d))}j.pop();return j.join(c)},unparam:function(b,d,i){if("string"!=typeof b||!(b=a.trim(b)))return{};for(var i=i||"=",c={},l,n=a.urlDecode,b=b.split(d||"&"),j=0,g=b.length;j<g;++j){l=b[j].indexOf(i);if(-1==l)d=n(b[j]),l=k;else{d=n(b[j].substring(0,l));l=b[j].substring(l+
+1);try{l=n(l)}catch(e){}a.endsWith(d,"[]")&&(d=d.substring(0,d.length-2))}d in c?a.isArray(c[d])?c[d].push(l):c[d]=[c[d],l]:c[d]=l}return c}})})(KISSY);
+(function(a){function k(a,e,b){var c=[].slice,d=c.call(arguments,3),g=function(){},l=function(){var l=c.call(arguments);return e.apply(this instanceof g?this:b,a?l.concat(d):d.concat(l))};g.prototype=e.prototype;l.prototype=new g;return l}a.mix(a,{noop:function(){},bind:k(0,k,null,0),rbind:k(0,k,null,1),later:function(h,e,b,c,d){var e=e||0,g=h,l=a.makeArray(d),j;"string"==typeof h&&(g=c[h]);h=function(){g.apply(c,l)};j=b?setInterval(h,e):setTimeout(h,e);return{id:j,interval:b,cancel:function(){this.interval?
+clearInterval(j):clearTimeout(j)}}},throttle:function(h,e,b){e=e||150;if(-1===e)return function(){h.apply(b||this,arguments)};var c=a.now();return function(){var d=a.now();d-c>e&&(c=d,h.apply(b||this,arguments))}},buffer:function(h,e,b){function c(){c.stop();d=a.later(h,e,0,b||this,arguments)}e=e||150;if(-1===e)return function(){h.apply(b||this,arguments)};var d=null;c.stop=function(){d&&(d.cancel(),d=0)};return c}})})(KISSY);
+(function(a,k){function h(b,j,g){var f=b,m,i,e,q;if(!b)return f;if(b[d])return g[b[d]].destination;if("object"===typeof b){q=b.constructor;if(a.inArray(q,[Boolean,String,Number,Date,RegExp]))f=new q(b.valueOf());else if(m=a.isArray(b))f=j?a.filter(b,j):b.concat();else if(i=a.isPlainObject(b))f={};b[d]=q=a.guid();g[q]={destination:f,input:b}}if(m)for(b=0;b<f.length;b++)f[b]=h(f[b],j,g);else if(i)for(e in b)if(e!==d&&(!j||j.call(b,b[e],e,b)!==c))f[e]=h(b[e],j,g);return f}function e(d,c,e,f){if(d[g]===
+c&&c[g]===d)return b;d[g]=c;c[g]=d;var m=function(a,b){return null!==a&&a!==k&&a[b]!==k},i;for(i in c)!m(d,i)&&m(c,i)&&e.push("expected has key '"+i+"', but missing from actual.");for(i in d)!m(c,i)&&m(d,i)&&e.push("expected missing key '"+i+"', but present in actual.");for(i in c)i!=g&&(a.equals(d[i],c[i],e,f)||f.push("'"+i+"' was '"+(c[i]?c[i].toString():c[i])+"' in expected, but was '"+(d[i]?d[i].toString():d[i])+"' in actual."));a.isArray(d)&&a.isArray(c)&&d.length!=c.length&&f.push("arrays were not the same length");
+delete d[g];delete c[g];return 0===e.length&&0===f.length}var b=!0,c=!1,d="__~ks_cloned",g="__~ks_compared";a.mix(a,{equals:function(d,c,g,f){g=g||[];f=f||[];return d===c?b:d===k||null===d||c===k||null===c?null==d&&null==c:d instanceof Date&&c instanceof Date?d.getTime()==c.getTime():"string"==typeof d&&"string"==typeof c||a.isNumber(d)&&a.isNumber(c)?d==c:"object"===typeof d&&"object"===typeof c?e(d,c,g,f):d===c},clone:function(b,c){var g={},f=h(b,c,g);a.each(g,function(a){a=a.input;if(a[d])try{delete a[d]}catch(b){a[d]=
+k}});g=null;return f},now:Date.now||function(){return+new Date}})})(KISSY);
+(function(a,k){var h=/^[\s\xa0]+|[\s\xa0]+$/g,e=String.prototype.trim;a.mix(a,{trim:e?function(a){return null==a?"":e.call(a)}:function(a){return null==a?"":a.toString().replace(h,"")},substitute:function(b,c,d){return"string"!=typeof b||!a.isPlainObject(c)?b:b.replace(d||/\\?\{([^{}]+)\}/g,function(a,b){return"\\"===a.charAt(0)?a.slice(1):c[b]===k?"":c[b]})},ucfirst:function(a){a+="";return a.charAt(0).toUpperCase()+a.substring(1)},startsWith:function(a,c){return 0===a.lastIndexOf(c,0)},endsWith:function(a,
c){var d=a.length-c.length;return 0<=d&&a.indexOf(c,d)==d}})})(KISSY);
-(function(a,k){var g={},e=Object.prototype.toString;a.mix(a,{isBoolean:0,isNumber:0,isString:0,isFunction:0,isArray:0,isDate:0,isRegExp:0,isObject:0,type:function(a){return null==a?""+a:g[e.call(a)]||"object"},isNull:function(a){return null===a},isUndefined:function(a){return a===k},isEmptyObject:function(a){for(var c in a)if(c!==k)return!1;return!0},isPlainObject:function(b){if(!b||"object"!==a.type(b)||b.nodeType||b.window==b)return!1;try{if(b.constructor&&!Object.prototype.hasOwnProperty.call(b,
-"constructor")&&!Object.prototype.hasOwnProperty.call(b.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var d in b);return d===k||Object.prototype.hasOwnProperty.call(b,d)}});a.each("Boolean,Number,String,Function,Array,Date,RegExp,Object".split(","),function(b,c){g["[object "+b+"]"]=c=b.toLowerCase();a["is"+b]=function(b){return a.type(b)==c}})})(KISSY);
-(function(a,k){function g(a,c,h){if(a instanceof d)return h(a[o]);var e=a[o];if(a=a[f])a.push([c,h]);else if(b(e))g(e,c,h);else return c&&c(e);return k}function e(a){if(!(this instanceof e))return new e(a);this.promise=a||new c}function b(a){return a&&a instanceof c}function c(a){this[o]=a;a===k&&(this[f]=[])}function d(a){if(a instanceof d)return a;c.apply(this,arguments);return k}function h(a,b,f){function h(a){try{return b?b(a):a}catch(c){return new d(c)}}function n(a){try{return f?f(a):new d(a)}catch(b){return new d(b)}}
-function s(a){m||(m=1,j.resolve(h(a)))}var j=new e,m=0;a instanceof c?g(a,s,function(a){m||(m=1,j.resolve(n(a)))}):s(a);return j.promise}function m(a){return!j(a)&&b(a)&&a[f]===k&&(!b(a[o])||m(a[o]))}function j(a){return b(a)&&a[f]===k&&a[o]instanceof d}var o="__promise_value",f="__promise_pendings";e.prototype={constructor:e,resolve:function(b){var c=this.promise,d;if(!(d=c[f]))return k;c[o]=b;d=[].concat(d);c[f]=k;a.each(d,function(a){g(c,a[0],a[1])});return b},reject:function(a){return this.resolve(new d(a))}};
-c.prototype={constructor:c,then:function(a,b){return h(this,a,b)},fail:function(a){return h(this,0,a)},fin:function(a){return h(this,function(b){return a(b,!0)},function(b){return a(b,!1)})},isResolved:function(){return m(this)},isRejected:function(){return j(this)}};a.extend(d,c);KISSY.Defer=e;KISSY.Promise=c;a.mix(c,{when:h,isPromise:b,isResolved:m,isRejected:j,all:function(a){var b=a.length;if(!b)return a;for(var c=e(),d=0;d<a.length;d++)(function(d,f){h(d,function(d){a[f]=d;0===--b&&c.resolve(a)},
+(function(a,k){var h={},e=Object.prototype.toString;a.mix(a,{isBoolean:0,isNumber:0,isString:0,isFunction:0,isArray:0,isDate:0,isRegExp:0,isObject:0,type:function(a){return null==a?""+a:h[e.call(a)]||"object"},isNull:function(a){return null===a},isUndefined:function(a){return a===k},isEmptyObject:function(a){for(var c in a)if(c!==k)return!1;return!0},isPlainObject:function(b){if(!b||"object"!==a.type(b)||b.nodeType||b.window==b)return!1;try{if(b.constructor&&!Object.prototype.hasOwnProperty.call(b,
+"constructor")&&!Object.prototype.hasOwnProperty.call(b.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var d in b);return d===k||Object.prototype.hasOwnProperty.call(b,d)}});a.each("Boolean,Number,String,Function,Array,Date,RegExp,Object".split(","),function(b,c){h["[object "+b+"]"]=c=b.toLowerCase();a["is"+b]=function(b){return a.type(b)==c}})})(KISSY);
+(function(a,k){function h(a,c,g){if(a instanceof d)return g(a[o]);var e=a[o];if(a=a[f])a.push([c,g]);else if(b(e))h(e,c,g);else return c&&c(e);return k}function e(a){if(!(this instanceof e))return new e(a);this.promise=a||new c}function b(a){return a&&a instanceof c}function c(a){this[o]=a;a===k&&(this[f]=[])}function d(a){if(a instanceof d)return a;c.apply(this,arguments);return k}function g(a,b,f){function g(a){try{return b?b(a):a}catch(c){return new d(c)}}function n(a){try{return f?f(a):new d(a)}catch(b){return new d(b)}}
+function j(a){k||(k=1,l.resolve(g(a)))}var l=new e,k=0;a instanceof c?h(a,j,function(a){k||(k=1,l.resolve(n(a)))}):j(a);return l.promise}function l(a){return!j(a)&&b(a)&&a[f]===k&&(!b(a[o])||l(a[o]))}function j(a){return b(a)&&a[f]===k&&a[o]instanceof d}var o="__promise_value",f="__promise_pendings";e.prototype={constructor:e,resolve:function(b){var c=this.promise,d;if(!(d=c[f]))return k;c[o]=b;d=[].concat(d);c[f]=k;a.each(d,function(a){h(c,a[0],a[1])});return b},reject:function(a){return this.resolve(new d(a))}};
+c.prototype={constructor:c,then:function(a,b){return g(this,a,b)},fail:function(a){return g(this,0,a)},fin:function(a){return g(this,function(b){return a(b,!0)},function(b){return a(b,!1)})},isResolved:function(){return l(this)},isRejected:function(){return j(this)}};a.extend(d,c);KISSY.Defer=e;KISSY.Promise=c;a.mix(c,{when:g,isPromise:b,isResolved:l,isRejected:j,all:function(a){var b=a.length;if(!b)return a;for(var c=e(),d=0;d<a.length;d++)(function(d,f){g(d,function(d){a[f]=d;0===--b&&c.resolve(a)},
function(a){c.reject(a)})})(a[d],d);return c.promise}})})(KISSY);
-(function(a){function k(a,c){for(var d=0,h=a.length-1;0<=h;h--){var e=a[h];"."==e?a.splice(h,1):".."===e?(a.splice(h,1),d++):d&&(a.splice(h,1),d--)}if(c)for(;d--;d)a.unshift("..");return a}var g=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/,e={resolve:function(){var b="",c,d=a.makeArray(arguments),h,e=0;for(c=d.length-1;0<=c&&!e;c--)h=d[c],"string"==typeof h&&h&&(b=h+"/"+b,e="/"==h.charAt(0));b=k(a.filter(b.split("/"),function(a){return!!a}),!e).join("/");return(e?"/":"")+b||"."},
-normalize:function(b){var c="/"==b.charAt(0),d="/"==b.slice(-1),b=k(a.filter(b.split("/"),function(a){return!!a}),!c).join("/");!b&&!c&&(b=".");b&&d&&(b+="/");return(c?"/":"")+b},join:function(){var b=a.makeArray(arguments);return e.normalize(a.filter(b,function(a){return a&&"string"==typeof a}).join("/"))},relative:function(b,c){var b=e.normalize(b),c=e.normalize(c),d=a.filter(b.split("/"),function(a){return!!a}),h=[],m,j,g=a.filter(c.split("/"),function(a){return!!a});j=Math.min(d.length,g.length);
-for(m=0;m<j&&d[m]==g[m];m++);for(j=m;m<d.length;)h.push(".."),m++;h=h.concat(g.slice(j));return h=h.join("/")},basename:function(a,c){var d=a.match(g)||[],d=d[3]||"";c&&d&&d.slice(-1*c.length)==c&&(d=d.slice(0,-1*c.length));return d},dirname:function(a){var c=a.match(g)||[],a=c[1]||"",c=c[2]||"";if(!a&&!c)return".";c&&(c=c.substring(0,c.length-1));return a+c},extname:function(a){return(a.match(g)||[])[4]||""}};a.Path=e})(KISSY);
-(function(a,k){function g(b){b._queryMap||(b._queryMap=a.unparam(b._query))}function e(a){this._query=a||""}function b(a,b){return encodeURI(a).replace(b,function(a){a=a.charCodeAt(0).toString(16);return"%"+(1==a.length?"0"+a:a)})}function c(b){if(b instanceof c)return b.clone();var d,f=this;a.mix(f,{scheme:"",userInfo:"",hostname:"",port:"",path:"",query:"",fragment:""});d=(b||"").match(o)||[];a.each(l,function(b,c){var i=d[b]||"";"query"==c?f.query=new e(i):f[c]=a.urlDecode(i)});return k}var d=
-/[#\/\?@]/g,h=/[#\?]/g,m=/[#@]/g,j=/#/g,o=RegExp("^(?:([\\w\\d+.-]+):)?(?://(?:([^/?#@]*)@)?([\\w\\d\\-\\u0100-\\uffff.+%]*|\\[[^\\]]+\\])(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),f=a.Path,l={scheme:1,userInfo:2,hostname:3,port:4,path:5,query:6,fragment:7};e.prototype={constructor:e,clone:function(){return new e(this.toString())},reset:function(a){this._query=a||"";this._queryMap=0},count:function(){var b=0,d=this._queryMap,c;g(this);for(c in d)a.isArray(d[c])?b+=d[c].length:b++;return b},
-get:function(a){g(this);return a?this._queryMap[a]:this._queryMap},keys:function(){g(this);return a.keys(this._queryMap)},set:function(b,d){var c;g(this);c=this._queryMap;"string"==typeof b?this._queryMap[b]=d:(b instanceof e&&(b=b.get()),a.each(b,function(a,b){c[b]=a}));return this},remove:function(a){g(this);a?delete this._queryMap[a]:this._queryMap={};return this},add:function(b,d){var c=this,f,h;a.isObject(b)?(b instanceof e&&(b=b.get()),a.each(b,function(a,b){c.add(b,a)})):(g(c),f=c._queryMap,
-h=f[b],h=h===k?d:[].concat(h).concat(d),f[b]=h);return c},toString:function(b){g(this);return a.param(this._queryMap,k,k,b)}};c.prototype={constructor:c,clone:function(){var b=new c,d=this;a.each(l,function(a,c){b[c]=d[c]});b.query=b.query.clone();return b},resolve:function(b){"string"==typeof b&&(b=new c(b));var d=0,h,e=this.clone();a.each("scheme,userInfo,hostname,port,path,query,fragment".split(","),function(c){if(c=="path")if(d)e[c]=b[c];else{if(c=b.path){d=1;if(!a.startsWith(c,"/"))if(e.hostname&&
-!e.path)c="/"+c;else if(e.path){h=e.path.lastIndexOf("/");h!=-1&&(c=e.path.slice(0,h+1)+c)}e.path=f.normalize(c)}}else if(c=="query"){if(d||b.query.toString()){e.query=b.query.clone();d=1}}else if(d||b[c]){e[c]=b[c];d=1}});return e},getScheme:function(){return this.scheme},setScheme:function(a){this.scheme=a;return this},getHostname:function(){return this.hostname},setHostname:function(a){this.hostname=a;return this},setUserInfo:function(a){this.userInfo=a;return this},getUserInfo:function(){return this.userInfo},
-setPort:function(a){this.port=a;return this},getPort:function(){return this.port},setPath:function(a){this.path=a;return this},getPath:function(){return this.path},setQuery:function(c){"string"==typeof c&&(a.startsWith(c,"?")&&(c=c.slice(1)),c=new e(b(c,m)));this.query=c;return this},getQuery:function(){return this.query},getFragment:function(){return this.fragment},setFragment:function(b){a.startsWith(b,"#")||(b="#"+b);this.fragment=b;return this},hasSameDomainAs:function(a){return this.hostname.toLowerCase()==
-a.hostname.toLowerCase()&&this.scheme.toLowerCase()==a.scheme.toLowerCase()&&this.port.toLowerCase()==a.port.toLowerCase()},toString:function(c){var e=[],g,n;if(g=this.scheme)e.push(b(g,d)),e.push(":");if(g=this.hostname){e.push("//");if(n=this.userInfo)e.push(b(n,d)),e.push("@");e.push(encodeURIComponent(g));if(n=this.port)e.push(":"),e.push(n)}if(n=this.path)g&&!a.startsWith(n,"/")&&(n="/"+n),n=f.normalize(n),e.push(b(n,h));if(c=this.query.toString.call(this.query,c))e.push("?"),e.push(c);if(c=
-this.fragment)e.push("#"),e.push(b(c,j));return e.join("")}};c.Query=e;a.Uri=c})(KISSY);(function(a){var k=a.Env,g=k.host,e=g.document||{},b="ontouchstart"in e,e=e.documentMode,c=(k.nodejs&&"object"===typeof global?global:g).JSON;e&&9>e&&(c=0);a.Features={isTouchSupported:function(){return b},isNativeJSONSupported:function(){return c}}})(KISSY);(function(){function a(a){this.runtime=a}a.STATUS={INIT:0,LOADING:1,LOADED:2,ERROR:3,ATTACHED:4};KISSY.Loader=a})(KISSY);
-(function(a){function k(a,b,c){a=a[g]||(a[g]={});c&&(a[b]=a[b]||[]);return a[b]}a.namespace("Loader");var g="__events__"+a.now();KISSY.Loader.Target={on:function(a,b){k(this,a,1).push(b)},detach:function(e,b){var c,d;if(e){if(c=k(this,e))b&&(d=a.indexOf(b,c),-1!=d&&c.splice(d,1)),(!b||!c.length)&&delete (this[g]||(this[g]={}))[e]}else delete this[g]},fire:function(e,b){var c=k(this,e);a.each(c,function(a){a.call(null,b)})}}})(KISSY);
-(function(a){function k(b){if(a.isArray(b)){for(var c=[],d=0;d<b.length;d++)c[d]=g(b[d]);return c}return g(b)}function g(b){a.endsWith(c.basename(b),"/")&&(b+="index");return b}function e(b,c,d){var b=b.Env.mods,f,c=a.makeArray(c);for(f=0;f<c.length;f++){var e=b[c[f]];if(!e||e.status!==d)return!1}return!0}var b=a.Loader,c=a.Path,d=a.Uri,h=a.Env.host,m=h.navigator&&navigator.userAgent||"",j=a.startsWith,o=b.STATUS,f=o.ATTACHED,l=o.LOADED,i={},o=!!m.match(/AppleWebKit/),p=h.document,q=new d(h.location&&
-location.href||"");a.mix(i,{docHead:function(){return p.getElementsByTagName("head")[0]||p.documentElement},isWebKit:o,isGecko:!o&&!!m.match(/Gecko/),isPresto:!!m.match(/Presto/),IE:!!m.match(/MSIE/),normalDepModuleName:function(b,d){var f=0;if(!d)return d;if(a.isArray(d)){for(;f<d.length;f++)d[f]=i.normalDepModuleName(b,d[f]);return d}return j(d,"../")||j(d,"./")?c.resolve(c.dirname(b),d):c.normalize(d)},removeExtname:function(a){return a.replace(/(-min)?\.js$/i,"")},resolveByPage:function(a){return q.resolve(a)},
-createModulesInfo:function(b,c){a.each(c,function(a){i.createModuleInfo(b,a)})},createModuleInfo:function(c,d,f){var d=g(d),e=c.Env.mods,h=e[d];return h?h:e[d]=h=new b.Module(a.mix({name:d,runtime:c},f))},isAttached:function(a,b){return e(a,b,f)},isLoaded:function(a,b){return e(a,b,l)},getModules:function(b,c){var d=[b],e,h,j,g,l=b.Env.mods;a.each(c,function(c){e=l[c];if(!e||"css"!=e.getType())h=i.unalias(b,c),(j=a.reduce(h,function(a,b){g=l[b];return a&&g&&g.status==f},!0))?d.push(l[h[0]].value):
-d.push(null)});return d},attachMod:function(b,c){if(c.status==l){var d=c.fn;d&&(d=a.isFunction(d)?d.apply(c,i.getModules(b,c.getRequiresWithAlias())):d,c.value=d);c.status=f;b.getLoader().fire("afterModAttached",{mod:c})}},getModNamesAsArray:function(a){"string"==typeof a&&(a=a.replace(/\s+/g,"").split(","));return a},normalizeModNames:function(a,b,c){return i.unalias(a,i.normalizeModNamesWithAlias(a,b,c))},unalias:function(a,b){for(var c=[].concat(b),d,f,e,h=0,i=a.Env.mods;!h;){h=1;for(d=c.length-
-1;0<=d;d--)if((f=i[c[d]])&&(e=f.alias))h=0,c.splice.apply(c,[d,1].concat(k(e)))}return c},normalizeModNamesWithAlias:function(a,b,c){var a=[],d,f;if(b){d=0;for(f=b.length;d<f;d++)b[d]&&a.push(k(b[d]))}c&&(a=i.normalDepModuleName(c,a));return a},registerModule:function(b,c,d,f){var e=b.Env.mods,h=e[c];if(!h||!h.fn)i.createModuleInfo(b,c),h=e[c],a.mix(h,{name:c,status:l}),h.fn=d,a.mix(e[c]=h,f)},getMappedPath:function(a,b,c){for(var a=c||a.Config.mappedRules||[],d,c=0;c<a.length;c++)if(d=a[c],b.match(d[0]))return b.replace(d[0],
+(function(a){function k(a,c){for(var d=0,g=a.length-1;0<=g;g--){var e=a[g];"."==e?a.splice(g,1):".."===e?(a.splice(g,1),d++):d&&(a.splice(g,1),d--)}if(c)for(;d--;d)a.unshift("..");return a}var h=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/,e={resolve:function(){var b="",c,d=a.makeArray(arguments),g,e=0;for(c=d.length-1;0<=c&&!e;c--)g=d[c],"string"==typeof g&&g&&(b=g+"/"+b,e="/"==g.charAt(0));b=k(a.filter(b.split("/"),function(a){return!!a}),!e).join("/");return(e?"/":"")+b||"."},
+normalize:function(b){var c="/"==b.charAt(0),d="/"==b.slice(-1),b=k(a.filter(b.split("/"),function(a){return!!a}),!c).join("/");!b&&!c&&(b=".");b&&d&&(b+="/");return(c?"/":"")+b},join:function(){var b=a.makeArray(arguments);return e.normalize(a.filter(b,function(a){return a&&"string"==typeof a}).join("/"))},relative:function(b,c){var b=e.normalize(b),c=e.normalize(c),d=a.filter(b.split("/"),function(a){return!!a}),g=[],l,j,h=a.filter(c.split("/"),function(a){return!!a});j=Math.min(d.length,h.length);
+for(l=0;l<j&&d[l]==h[l];l++);for(j=l;l<d.length;)g.push(".."),l++;g=g.concat(h.slice(j));return g=g.join("/")},basename:function(a,c){var d=a.match(h)||[],d=d[3]||"";c&&d&&d.slice(-1*c.length)==c&&(d=d.slice(0,-1*c.length));return d},dirname:function(a){var c=a.match(h)||[],a=c[1]||"",c=c[2]||"";if(!a&&!c)return".";c&&(c=c.substring(0,c.length-1));return a+c},extname:function(a){return(a.match(h)||[])[4]||""}};a.Path=e})(KISSY);
+(function(a,k){function h(b){b._queryMap||(b._queryMap=a.unparam(b._query))}function e(a){this._query=a||""}function b(a,b){return encodeURI(a).replace(b,function(a){a=a.charCodeAt(0).toString(16);return"%"+(1==a.length?"0"+a:a)})}function c(b){if(b instanceof c)return b.clone();var d,f=this;a.mix(f,{scheme:"",userInfo:"",hostname:"",port:"",path:"",query:"",fragment:""});d=(b||"").match(o)||[];a.each(m,function(b,c){var i=d[b]||"";"query"==c?f.query=new e(i):f[c]=a.urlDecode(i)});return k}var d=
+/[#\/\?@]/g,g=/[#\?]/g,l=/[#@]/g,j=/#/g,o=RegExp("^(?:([\\w\\d+.-]+):)?(?://(?:([^/?#@]*)@)?([\\w\\d\\-\\u0100-\\uffff.+%]*|\\[[^\\]]+\\])(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),f=a.Path,m={scheme:1,userInfo:2,hostname:3,port:4,path:5,query:6,fragment:7};e.prototype={constructor:e,clone:function(){return new e(this.toString())},reset:function(a){this._query=a||"";this._queryMap=0},count:function(){var b=0,d=this._queryMap,c;h(this);for(c in d)a.isArray(d[c])?b+=d[c].length:b++;return b},
+get:function(a){h(this);return a?this._queryMap[a]:this._queryMap},keys:function(){h(this);return a.keys(this._queryMap)},set:function(b,d){var c;h(this);c=this._queryMap;"string"==typeof b?this._queryMap[b]=d:(b instanceof e&&(b=b.get()),a.each(b,function(a,b){c[b]=a}));return this},remove:function(a){h(this);a?delete this._queryMap[a]:this._queryMap={};return this},add:function(b,d){var c=this,f,g;a.isObject(b)?(b instanceof e&&(b=b.get()),a.each(b,function(a,b){c.add(b,a)})):(h(c),f=c._queryMap,
+g=f[b],g=g===k?d:[].concat(g).concat(d),f[b]=g);return c},toString:function(b){h(this);return a.param(this._queryMap,k,k,b)}};c.prototype={constructor:c,clone:function(){var b=new c,d=this;a.each(m,function(a,c){b[c]=d[c]});b.query=b.query.clone();return b},resolve:function(b){"string"==typeof b&&(b=new c(b));var d=0,g,e=this.clone();a.each("scheme,userInfo,hostname,port,path,query,fragment".split(","),function(c){if(c=="path")if(d)e[c]=b[c];else{if(c=b.path){d=1;if(!a.startsWith(c,"/"))if(e.hostname&&
+!e.path)c="/"+c;else if(e.path){g=e.path.lastIndexOf("/");g!=-1&&(c=e.path.slice(0,g+1)+c)}e.path=f.normalize(c)}}else if(c=="query"){if(d||b.query.toString()){e.query=b.query.clone();d=1}}else if(d||b[c]){e[c]=b[c];d=1}});return e},getScheme:function(){return this.scheme},setScheme:function(a){this.scheme=a;return this},getHostname:function(){return this.hostname},setHostname:function(a){this.hostname=a;return this},setUserInfo:function(a){this.userInfo=a;return this},getUserInfo:function(){return this.userInfo},
+setPort:function(a){this.port=a;return this},getPort:function(){return this.port},setPath:function(a){this.path=a;return this},getPath:function(){return this.path},setQuery:function(c){"string"==typeof c&&(a.startsWith(c,"?")&&(c=c.slice(1)),c=new e(b(c,l)));this.query=c;return this},getQuery:function(){return this.query},getFragment:function(){return this.fragment},setFragment:function(b){a.startsWith(b,"#")||(b="#"+b);this.fragment=b;return this},hasSameDomainAs:function(a){return this.hostname.toLowerCase()==
+a.hostname.toLowerCase()&&this.scheme.toLowerCase()==a.scheme.toLowerCase()&&this.port.toLowerCase()==a.port.toLowerCase()},toString:function(c){var e=[],l,n;if(l=this.scheme)e.push(b(l,d)),e.push(":");if(l=this.hostname){e.push("//");if(n=this.userInfo)e.push(b(n,d)),e.push("@");e.push(encodeURIComponent(l));if(n=this.port)e.push(":"),e.push(n)}if(n=this.path)l&&!a.startsWith(n,"/")&&(n="/"+n),n=f.normalize(n),e.push(b(n,g));if(c=this.query.toString.call(this.query,c))e.push("?"),e.push(c);if(c=
+this.fragment)e.push("#"),e.push(b(c,j));return e.join("")}};c.Query=e;a.Uri=c})(KISSY);(function(a){var k=a.Env,h=k.host,e=h.document||{},b=(h.navigator||{}).userAgent||"",c="ontouchstart"in e&&!/PhantomJS/.test(b),e=e.documentMode,d=(k.nodejs&&"object"===typeof global?global:h).JSON;e&&9>e&&(d=0);a.Features={isTouchSupported:function(){return c},isNativeJSONSupported:function(){return d}}})(KISSY);
+(function(){function a(a){this.runtime=a}a.STATUS={INIT:0,LOADING:1,LOADED:2,ERROR:3,ATTACHED:4};KISSY.Loader=a})(KISSY);
+(function(a){function k(a,b,c){a=a[h]||(a[h]={});c&&(a[b]=a[b]||[]);return a[b]}a.namespace("Loader");var h="__events__"+a.now();KISSY.Loader.Target={on:function(a,b){k(this,a,1).push(b)},detach:function(e,b){var c,d;if(e){if(c=k(this,e))b&&(d=a.indexOf(b,c),-1!=d&&c.splice(d,1)),(!b||!c.length)&&delete (this[h]||(this[h]={}))[e]}else delete this[h]},fire:function(e,b){var c=k(this,e);a.each(c,function(a){a.call(null,b)})}}})(KISSY);
+(function(a){function k(b){if(a.isArray(b)){for(var c=[],d=0;d<b.length;d++)c[d]=h(b[d]);return c}return h(b)}function h(b){a.endsWith(c.basename(b),"/")&&(b+="index");return b}function e(b,c,d){var b=b.Env.mods,f,c=a.makeArray(c);for(f=0;f<c.length;f++){var e=b[c[f]];if(!e||e.status!==d)return!1}return!0}var b=a.Loader,c=a.Path,d=a.Uri,g=a.Env.host,l=g.navigator&&navigator.userAgent||"",j=a.startsWith,o=b.STATUS,f=o.ATTACHED,m=o.LOADED,i={},o=!!l.match(/AppleWebKit/),p=g.document,q=new d(g.location&&
+location.href||"");a.mix(i,{docHead:function(){return p.getElementsByTagName("head")[0]||p.documentElement},isWebKit:o,isGecko:!o&&!!l.match(/Gecko/),isPresto:!!l.match(/Presto/),IE:!!l.match(/MSIE/),normalDepModuleName:function(b,d){var f=0;if(!d)return d;if(a.isArray(d)){for(;f<d.length;f++)d[f]=i.normalDepModuleName(b,d[f]);return d}return j(d,"../")||j(d,"./")?c.resolve(c.dirname(b),d):c.normalize(d)},removeExtname:function(a){return a.replace(/(-min)?\.js$/i,"")},resolveByPage:function(a){return q.resolve(a)},
+createModulesInfo:function(b,c){a.each(c,function(a){i.createModuleInfo(b,a)})},createModuleInfo:function(c,d,f){var d=h(d),e=c.Env.mods,g=e[d];return g?g:e[d]=g=new b.Module(a.mix({name:d,runtime:c},f))},isAttached:function(a,b){return e(a,b,f)},isLoaded:function(a,b){return e(a,b,m)},getModules:function(b,c){var d=[b],e,g,j,l,h=b.Env.mods;a.each(c,function(c){e=h[c];if(!e||"css"!=e.getType())g=i.unalias(b,c),(j=a.reduce(g,function(a,b){l=h[b];return a&&l&&l.status==f},!0))?d.push(h[g[0]].value):
+d.push(null)});return d},attachMod:function(b,c){if(c.status==m){var d=c.fn;d&&(d=a.isFunction(d)?d.apply(c,i.getModules(b,c.getRequiresWithAlias())):d,c.value=d);c.status=f;b.getLoader().fire("afterModAttached",{mod:c})}},getModNamesAsArray:function(a){"string"==typeof a&&(a=a.replace(/\s+/g,"").split(","));return a},normalizeModNames:function(a,b,c){return i.unalias(a,i.normalizeModNamesWithAlias(a,b,c))},unalias:function(a,b){for(var c=[].concat(b),d,f,e,g=0,i=a.Env.mods;!g;){g=1;for(d=c.length-
+1;0<=d;d--)if((f=i[c[d]])&&(e=f.alias))g=0,c.splice.apply(c,[d,1].concat(k(e)))}return c},normalizeModNamesWithAlias:function(a,b,c){var a=[],d,f;if(b){d=0;for(f=b.length;d<f;d++)b[d]&&a.push(k(b[d]))}c&&(a=i.normalDepModuleName(c,a));return a},registerModule:function(b,c,d,f){var e=b.Env.mods,g=e[c];if(!g||!g.fn)i.createModuleInfo(b,c),g=e[c],a.mix(g,{name:c,status:m}),g.fn=d,a.mix(e[c]=g,f)},getMappedPath:function(a,b,c){for(var a=c||a.Config.mappedRules||[],d,c=0;c<a.length;c++)if(d=a[c],b.match(d[0]))return b.replace(d[0],
d[1]);return b}});b.Utils=i})(KISSY);
-(function(a){function k(b){a.mix(this,b)}function g(c){this.status=b.STATUS.INIT;a.mix(this,c)}var e=a.Path,b=a.Loader,c=b.Utils;a.augment(k,{getTag:function(){return this.tag||this.runtime.Config.tag},getName:function(){return this.name},getBase:function(){return this.base||this.runtime.Config.base},getBaseUri:function(){return this.baseUri||this.runtime.Config.baseUri},isDebug:function(){var a=this.debug;return void 0===a?this.runtime.Config.debug:a},getCharset:function(){return this.charset||this.runtime.Config.charset},
-isCombine:function(){var a=this.combine;return void 0===a?this.runtime.Config.combine:a}});b.Package=k;a.augment(g,{setValue:function(a){this.value=a},getType:function(){var a;if(void 0===(a=this.type))this.type=a=".css"==e.extname(this.name).toLowerCase()?"css":"js";return a},getFullPath:function(){var a,b;this.fullpath||(b=this.getPackage().getBaseUri(),b=b.resolve(this.getPath()),(a=this.getTag())&&b.query.set("t",a),this.fullpath=c.getMappedPath(this.runtime,b.toString()));return this.fullpath},
-getPath:function(){var a;if(!(a=this.path)){a=this.name;var b=(e.extname(a)||"").toLowerCase(),c="-min";".css"!=b&&(b=".js");a=e.join(e.dirname(a),e.basename(a,b));this.getPackage().isDebug()&&(c="");a=this.path=a+c+b}return a},getValue:function(){return this.value},getName:function(){return this.name},getPackage:function(){var b;if(!(b=this.packageInfo)){b=this.name;var c=this.runtime.Config.packages||{},e="",g;for(g in c)a.startsWith(b,g)&&g.length>e.length&&(e=g);b=this.packageInfo=c[e]}return b},
+(function(a){function k(b){a.mix(this,b)}function h(c){this.status=b.STATUS.INIT;a.mix(this,c)}var e=a.Path,b=a.Loader,c=b.Utils;a.augment(k,{getTag:function(){return this.tag||this.runtime.Config.tag},getName:function(){return this.name},getBase:function(){return this.base||this.runtime.Config.base},getBaseUri:function(){return this.baseUri||this.runtime.Config.baseUri},isDebug:function(){var a=this.debug;return void 0===a?this.runtime.Config.debug:a},getCharset:function(){return this.charset||this.runtime.Config.charset},
+isCombine:function(){var a=this.combine;return void 0===a?this.runtime.Config.combine:a}});b.Package=k;a.augment(h,{setValue:function(a){this.value=a},getType:function(){var a;if(void 0===(a=this.type))this.type=a=".css"==e.extname(this.name).toLowerCase()?"css":"js";return a},getFullPath:function(){var a,b;this.fullpath||(b=this.getPackage().getBaseUri(),b=b.resolve(this.getPath()),(a=this.getTag())&&b.query.set("t",a),this.fullpath=c.getMappedPath(this.runtime,b.toString()));return this.fullpath},
+getPath:function(){var a;if(!(a=this.path)){a=this.name;var b=(e.extname(a)||"").toLowerCase(),c="-min";".css"!=b&&(b=".js");a=e.join(e.dirname(a),e.basename(a,b));this.getPackage().isDebug()&&(c="");a=this.path=a+c+b}return a},getValue:function(){return this.value},getName:function(){return this.name},getPackage:function(){var b;if(!(b=this.packageInfo)){b=this.name;var c=this.runtime.Config.packages||{},e="",j;for(j in c)a.startsWith(b,j)&&j.length>e.length&&(e=j);b=this.packageInfo=c[e]}return b},
getTag:function(){return this.tag||this.getPackage().getTag()},getCharset:function(){return this.charset||this.getPackage().getCharset()},getRequiredMods:function(){var b=this.runtime.Env.mods;return a.map(this.getNormalizedRequires(),function(a){return b[a]})},getRequiresWithAlias:function(){var a=this.requiresWithAlias,b=this.requires;if(!b||0==b.length)return b||[];a||(this.requiresWithAlias=a=c.normalizeModNamesWithAlias(this.runtime,b,this.name));return a},getNormalizedRequires:function(){var a,
-b=this.normalizedRequiresStatus,e=this.status,g=this.requires;if(!g||0==g.length)return g||[];if((a=this.normalizedRequires)&&b==e)return a;this.normalizedRequiresStatus=e;return this.normalizedRequires=c.normalizeModNames(this.runtime,g,this.name)}});b.Module=g})(KISSY);
-(function(a){var k=require("fs"),g=require("vm");a.mix(a,{getScript:function(e,b,c){var d;a.isPlainObject(b)&&(c=b.charset,d=b.error,b=b.success);if(a.startsWith(a.Path.extname(e).toLowerCase(),".css"))return b&&b();var h=new a.Uri(e);try{var m=k.readFileSync(h.getPath(),c||"utf-8");g.runInThisContext("(function(KISSY){"+m+"})",e)(a);b&&b()}catch(j){d&&d(j)}}})})(KISSY);
-(function(a){var k=a.Loader,g=k.Utils,e=a.Config.fns;e.map=function(a){var c=this.Config;return!1===a?c.mappedRules=[]:c.mappedRules=(c.mappedRules||[]).concat(a||[])};e.mapCombo=function(a){var c=this.Config;return!1===a?c.mappedComboRules=[]:c.mappedComboRules=(c.mappedComboRules||[]).concat(a||[])};e.packages=function(b){var c,d,e=this.Config,m=e.packages=e.packages||{};if(b)a.each(b,function(b,e){c=b.name||e;d=b.base||b.path;a.Env.nodejs&&!a.startsWith(d,"file:")&&(d="file:"+d);a.endsWith(d,"/")||
-(d+="/");b.name=c;var f=g.resolveByPage(d);b.base=f.toString();b.baseUri=f;b.runtime=a;delete b.path;m[c]=new k.Package(b)});else if(!1===b)e.packages={"":e.packages[""]};else return m};e.modules=function(b){var c=this,d=c.Env;b?a.each(b,function(b,e){g.createModuleInfo(c,e,b);a.mix(d.mods[e],b)}):!1===b&&(d.mods={})};e.base=function(b){var c=this.Config;if(!b)return c.base;a.Env.nodejs&&!a.startsWith(b,"file:")&&(b="file:"+b);b=g.resolveByPage(b);c.base=b.toString();c.baseUri=b;this.config("packages",
+b=this.normalizedRequiresStatus,e=this.status,j=this.requires;if(!j||0==j.length)return j||[];if((a=this.normalizedRequires)&&b==e)return a;this.normalizedRequiresStatus=e;return this.normalizedRequires=c.normalizeModNames(this.runtime,j,this.name)}});b.Module=h})(KISSY);
+(function(a){var k=require("fs"),h=require("vm");a.mix(a,{getScript:function(e,b,c){var d;a.isPlainObject(b)&&(c=b.charset,d=b.error,b=b.success);if(a.startsWith(a.Path.extname(e).toLowerCase(),".css"))return b&&b();var g=new a.Uri(e);try{var l=k.readFileSync(g.getPath(),c||"utf-8");h.runInThisContext("(function(KISSY){"+l+"})",e)(a);b&&b()}catch(j){d&&d(j)}}})})(KISSY);
+(function(a){var k=a.Loader,h=k.Utils,e=a.Config.fns;e.map=function(a){var c=this.Config;return!1===a?c.mappedRules=[]:c.mappedRules=(c.mappedRules||[]).concat(a||[])};e.mapCombo=function(a){var c=this.Config;return!1===a?c.mappedComboRules=[]:c.mappedComboRules=(c.mappedComboRules||[]).concat(a||[])};e.packages=function(b){var c,d,e=this.Config,l=e.packages=e.packages||{};if(b)a.each(b,function(b,e){c=b.name||e;d=b.base||b.path;a.Env.nodejs&&!a.startsWith(d,"file:")&&(d="file:"+d);a.endsWith(d,"/")||
+(d+="/");b.name=c;var f=h.resolveByPage(d);b.base=f.toString();b.baseUri=f;b.runtime=a;delete b.path;l[c]=new k.Package(b)});else if(!1===b)e.packages={"":e.packages[""]};else return l};e.modules=function(b){var c=this,d=c.Env;b?a.each(b,function(b,e){h.createModuleInfo(c,e,b);a.mix(d.mods[e],b)}):!1===b&&(d.mods={})};e.base=function(b){var c=this.Config;if(!b)return c.base;a.Env.nodejs&&!a.startsWith(b,"file:")&&(b="file:"+b);b=h.resolveByPage(b);c.base=b.toString();c.baseUri=b;this.config("packages",
{"":{base:a.config("base")}})}})(KISSY);
-(function(a,k){var g=a.Loader,e=a.Path,b=g.Utils;a.augment(g,g.Target,{__currentModule:null,__startLoadTime:0,__startLoadModuleName:null,add:function(c,d,h){var g=this.runtime,j,o=g.Env.mods;if(a.isPlainObject(c))return g.config({modules:c});if("string"==typeof c)b.registerModule(g,c,d,h),d=o[c],h&&!1===h.attach||(h&&(j=d.getNormalizedRequires()),(!j||b.isAttached(g,j))&&b.attachMod(g,d));else if(a.isFunction(c))if(h=d,d=c,b.IE){j=this.runtime;for(var c=a.Env.host.document.getElementsByTagName("script"),f,
-l,o=0;o<c.length;o++)if(l=c[o],"interactive"==l.readyState){f=l;break}if(f){f=b.resolveByPage(f.src);var c=f.toString(),o=j.config("packages"),i,p;l=j.Config;var q,n=-1;for(p in o)j=o[p].getBase(),a.startsWith(c,j)&&j.length>n&&(n=j.length,i=j,q=o[p].getBaseUri());c=i?b.removeExtname(e.relative(q.getPath(),f.getPath())):a.startsWith(c,l.base)?b.removeExtname(e.relative(l.baseUri.getPath(),f.getPath())):k}else c=this.__startLoadModuleName;b.registerModule(g,c,d,h);this.__startLoadModuleName=null;this.__startLoadTime=
-0}else this.__currentModule={fn:d,config:h}}})})(KISSY);
-(function(a){function k(a){this.fn=a;this.waitMods={};this.requireLoadedMods={}}function g(b,c,d){var e,f=b.length,i=d.length;for(e=0;e<f;e++){var l=b[e],j=c,m=d,k=j.Env.mods[l];k.status!=p&&(a.inArray(l,m)?m.push(l):(m.push(l),g(k.getNormalizedRequires(),j,m),h.attachMod(j,k)));d.length=i}}function e(a,c,d){var e,i=c.length;for(e=0;e<i;e++){var g=a,l=c[e],j=d,m=g.runtime,k=void 0,k=m.Env.mods,t=k[l];t||(h.createModuleInfo(m,l),t=k[l]);k=t.status;k!=p&&(k===f?j.loadModRequires(g,t):(m=j.isModWait(l),
-j.addWaitMod(l),k<=o&&!m&&b(g,t,j)))}}function b(b,c,d){function e(){c.fn?(d.loadModRequires(b,c),d.removeWaitMod(g),d.check()):c.status=l}var f=b.runtime,g=c.getName(),k=c.getCharset(),p=c.getFullPath(),w="css"==c.getType();c.status=o;m&&!w&&(b.__startLoadModuleName=g,b.__startLoadTime=Number(+new Date));a.getScript(p,{success:function(){j[g]||(j[g]=1);if(c.status==o)if(w)h.registerModule(f,g,a.noop);else{var d;if(d=b[i]){h.registerModule(f,g,d.fn,d.config);b[i]=null}}a.later(e)},error:e,charset:k})}
-var c=a.Loader,d=c.STATUS,h=c.Utils,m=h.IE,j={},o=d.LOADING,f=d.LOADED,l=d.ERROR,i="__currentModule",p=d.ATTACHED;k.prototype={check:function(){var b=this.waitMods,c=this.fn;c&&a.isEmptyObject(b)&&(c(),this.fn=null)},addWaitMod:function(a){this.waitMods[a]=1},removeWaitMod:function(a){delete this.waitMods[a]},isModWait:function(a){return this.waitMods[a]},loadModRequires:function(a,b){var c=this.requireLoadedMods,d=b.name;c[d]||(c[d]=1,c=b.getNormalizedRequires(),e(a,c,this))}};a.augment(c,{use:function(a,
-b){var c,d=new k(function(){g(c,f,[]);b&&b.apply(f,h.getModules(f,a))}),f=this.runtime,a=h.getModNamesAsArray(a),a=h.normalizeModNamesWithAlias(f,a);c=h.unalias(f,a);e(this,c,d);d.check();return this},clear:function(){}})})(KISSY);
-(function(a){function k(){var c=/^(.*)(seed|kissy)(?:-min)?\.js[^/]*/i,h=/(seed|kissy)(?:-min)?\.js/i,g,j,k=e.host.document.getElementsByTagName("script"),f=k[k.length-1],k=b.resolveByPage(f.src).toString(),f=(f=f.getAttribute("data-config"))?(new Function("return "+f))():{},k=k.replace(/%3f/gi,"?").replace(/%2c/gi,",");g=f.comboPrefix=f.comboPrefix||"??";j=f.comboSep=f.comboSep||",";var l,i=k.indexOf(g);-1==i?l=k.replace(c,"$1"):(l=k.substring(0,i),k=k.substring(i+g.length).split(j),a.each(k,function(a){if(a.match(h))return l+=
-a.replace(c,"$1"),!1}));return a.mix({base:l},f)}a.mix(a,{add:function(a,b,c){this.getLoader().add(a,b,c)},use:function(a,b){this.getLoader().use(a,b)},getLoader:function(){var a=this.Env;return this.Config.combine&&!a.nodejs?a._comboLoader:a._loader},clearLoader:function(){var a=this.Env,b;(b=a._comboLoader)&&b.clear&&b.clear();(b=a._loader)&&b.clear&&b.clear();this.config({map:!1,mapCombo:!1,modules:!1,packages:!1})},require:function(a){return b.getModules(this,[a])[1]}});var g=a.Loader,e=a.Env,
-b=g.Utils,c=a.Loader.Combo;a.Env.nodejs?a.config("base",__dirname.replace(/\\/g,"/").replace(/\/$/,"")+"/"):a.config(a.mix({comboMaxUrlLength:2E3,comboMaxFileNum:40,charset:"utf-8",tag:"20121120162241"},k()));e.mods={};e._loader=new g(a);c&&(e._comboLoader=new c(a));a.add("empty",a.noop)})(KISSY);
-(function(a,k){var g=a.Env.host,e=g.document,b=e&&e.documentElement,c=g.location,d=g.navigator,h=new a.Defer,m=h.promise,j=/^#?([\w-]+)$/,o=/\S/;a.mix(a,{isWindow:function(a){return null!=a&&a==a.window},parseXML:function(a){if(a.documentElement)return a;var b;try{g.DOMParser?b=(new DOMParser).parseFromString(a,"text/xml"):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a))}catch(c){b=k}!b||!b.documentElement||b.getElementsByTagName("parsererror");return b},globalEval:function(a){a&&
-o.test(a)&&(g.execScript||function(a){g.eval.call(g,a)})(a)},ready:function(a){m.then(a);return this},available:function(b,c){if((b=(b+"").match(j)[1])&&a.isFunction(c))var d=1,f,g=a.later(function(){((f=e.getElementById(b))&&(c(f)||1)||500<++d)&&g.cancel()},40,!0)}});if(c&&-1!==(c.search||"").indexOf("ks-debug"))a.Config.debug=!0;(function(){var c=b&&b.doScroll,d=c?"onreadystatechange":"DOMContentLoaded",f=function(){h.resolve(a)};if(!e||"complete"===e.readyState)return f();if(e.addEventListener){var j=
-function(){e.removeEventListener(d,j,!1);f()};e.addEventListener(d,j,!1);g.addEventListener("load",f,!1)}else{var k=function(){"complete"===e.readyState&&(e.detachEvent(d,k),f())};e.attachEvent(d,k);g.attachEvent("onload",f);var m;try{m=null===g.frameElement}catch(o){m=!1}if(c&&m){var v=function(){try{c("left"),f()}catch(a){setTimeout(v,40)}};v()}}return 0})();if(d&&d.userAgent.match(/MSIE/))try{e.execCommand("BackgroundImageCache",!1,!0)}catch(f){}})(KISSY,void 0);
+(function(a,k){var h=a.Loader,e=a.Path,b=h.Utils;a.augment(h,h.Target,{__currentModule:null,__startLoadTime:0,__startLoadModuleName:null,add:function(c,d,g){var h=this.runtime,j,o=h.Env.mods;if(a.isPlainObject(c))return h.config({modules:c});if("string"==typeof c)b.registerModule(h,c,d,g),d=o[c],g&&!1===g.attach||(g&&(j=d.getNormalizedRequires()),(!j||b.isAttached(h,j))&&b.attachMod(h,d));else if(a.isFunction(c))if(g=d,d=c,b.IE){j=this.runtime;for(var c=a.Env.host.document.getElementsByTagName("script"),f,
+m,o=0;o<c.length;o++)if(m=c[o],"interactive"==m.readyState){f=m;break}if(f){f=b.resolveByPage(f.src);var c=f.toString(),o=j.config("packages"),i,p;m=j.Config;var q,n=-1;for(p in o)j=o[p].getBase(),a.startsWith(c,j)&&j.length>n&&(n=j.length,i=j,q=o[p].getBaseUri());c=i?b.removeExtname(e.relative(q.getPath(),f.getPath())):a.startsWith(c,m.base)?b.removeExtname(e.relative(m.baseUri.getPath(),f.getPath())):k}else c=this.__startLoadModuleName;b.registerModule(h,c,d,g);this.__startLoadModuleName=null;this.__startLoadTime=
+0}else this.__currentModule={fn:d,config:g}}})})(KISSY);
+(function(a){function k(a){this.fn=a;this.waitMods={};this.requireLoadedMods={}}function h(b,c,d){var e,f=b.length,i=d.length;for(e=0;e<f;e++){var j=b[e],m=c,l=d,k=m.Env.mods[j];k.status!=p&&(a.inArray(j,l)?l.push(j):(l.push(j),h(k.getNormalizedRequires(),m,l),g.attachMod(m,k)));d.length=i}}function e(a,c,d){var e,i=c.length;for(e=0;e<i;e++){var h=a,j=c[e],l=d,m=h.runtime,k=void 0,k=m.Env.mods,s=k[j];s||(g.createModuleInfo(m,j),s=k[j]);k=s.status;k!=p&&(k===f?l.loadModRequires(h,s):(m=l.isModWait(j),
+l.addWaitMod(j),k<=o&&!m&&b(h,s,l)))}}function b(b,c,d){function e(){c.fn?(d.loadModRequires(b,c),d.removeWaitMod(h),d.check()):c.status=m}var f=b.runtime,h=c.getName(),k=c.getCharset(),p=c.getFullPath(),w="css"==c.getType();c.status=o;l&&!w&&(b.__startLoadModuleName=h,b.__startLoadTime=Number(+new Date));a.getScript(p,{success:function(){j[h]||(j[h]=1);if(c.status==o)if(w)g.registerModule(f,h,a.noop);else{var d;if(d=b[i]){g.registerModule(f,h,d.fn,d.config);b[i]=null}}a.later(e)},error:e,charset:k})}
+var c=a.Loader,d=c.STATUS,g=c.Utils,l=g.IE,j={},o=d.LOADING,f=d.LOADED,m=d.ERROR,i="__currentModule",p=d.ATTACHED;k.prototype={check:function(){var b=this.waitMods,c=this.fn;c&&a.isEmptyObject(b)&&(c(),this.fn=null)},addWaitMod:function(a){this.waitMods[a]=1},removeWaitMod:function(a){delete this.waitMods[a]},isModWait:function(a){return this.waitMods[a]},loadModRequires:function(a,b){var c=this.requireLoadedMods,d=b.name;c[d]||(c[d]=1,c=b.getNormalizedRequires(),e(a,c,this))}};a.augment(c,{use:function(a,
+b){var c,d=new k(function(){h(c,f,[]);b&&b.apply(f,g.getModules(f,a))}),f=this.runtime,a=g.getModNamesAsArray(a),a=g.normalizeModNamesWithAlias(f,a);c=g.unalias(f,a);e(this,c,d);d.check();return this},clear:function(){}})})(KISSY);
+(function(a){function k(){var c=/^(.*)(seed|kissy)(?:-min)?\.js[^/]*/i,g=/(seed|kissy)(?:-min)?\.js/i,h,j,k=e.host.document.getElementsByTagName("script"),f=k[k.length-1],k=b.resolveByPage(f.src).toString(),f=(f=f.getAttribute("data-config"))?(new Function("return "+f))():{},k=k.replace(/%3f/gi,"?").replace(/%2c/gi,",");h=f.comboPrefix=f.comboPrefix||"??";j=f.comboSep=f.comboSep||",";var m,i=k.indexOf(h);-1==i?m=k.replace(c,"$1"):(m=k.substring(0,i),k=k.substring(i+h.length).split(j),a.each(k,function(a){if(a.match(g))return m+=
+a.replace(c,"$1"),!1}));return a.mix({base:m},f)}a.mix(a,{add:function(a,b,c){this.getLoader().add(a,b,c)},use:function(a,b){this.getLoader().use(a,b)},getLoader:function(){var a=this.Env;return this.Config.combine&&!a.nodejs?a._comboLoader:a._loader},clearLoader:function(){var a=this.Env,b;(b=a._comboLoader)&&b.clear&&b.clear();(b=a._loader)&&b.clear&&b.clear();this.config({map:!1,mapCombo:!1,modules:!1,packages:!1})},require:function(a){return b.getModules(this,[a])[1]}});var h=a.Loader,e=a.Env,
+b=h.Utils,c=a.Loader.Combo;a.Env.nodejs?a.config("base",__dirname.replace(/\\/g,"/").replace(/\/$/,"")+"/"):a.config(a.mix({comboMaxUrlLength:2E3,comboMaxFileNum:40,charset:"utf-8",tag:"20121121022910"},k()));e.mods={};e._loader=new h(a);c&&(e._comboLoader=new c(a));a.add("empty",a.noop)})(KISSY);
+(function(a,k){var h=a.Env.host,e=h.document,b=e&&e.documentElement,c=h.location,d=h.navigator,g=new a.Defer,l=g.promise,j=/^#?([\w-]+)$/,o=/\S/;a.mix(a,{isWindow:function(a){return null!=a&&a==a.window},parseXML:function(a){if(a.documentElement)return a;var b;try{h.DOMParser?b=(new DOMParser).parseFromString(a,"text/xml"):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a))}catch(c){b=k}!b||!b.documentElement||b.getElementsByTagName("parsererror");return b},globalEval:function(a){a&&
+o.test(a)&&(h.execScript||function(a){h.eval.call(h,a)})(a)},ready:function(a){l.then(a);return this},available:function(b,c){if((b=(b+"").match(j)[1])&&a.isFunction(c))var d=1,f,g=a.later(function(){((f=e.getElementById(b))&&(c(f)||1)||500<++d)&&g.cancel()},40,!0)}});if(c&&-1!==(c.search||"").indexOf("ks-debug"))a.Config.debug=!0;(function(){var c=b&&b.doScroll,d=c?"onreadystatechange":"DOMContentLoaded",f=function(){g.resolve(a)};if(!e||"complete"===e.readyState)return f();if(e.addEventListener){var j=
+function(){e.removeEventListener(d,j,!1);f()};e.addEventListener(d,j,!1);h.addEventListener("load",f,!1)}else{var k=function(){"complete"===e.readyState&&(e.detachEvent(d,k),f())};e.attachEvent(d,k);h.attachEvent("onload",f);var l;try{l=null===h.frameElement}catch(o){l=!1}if(c&&l){var v=function(){try{c("left"),f()}catch(a){setTimeout(v,40)}};v()}}return 0})();if(d&&d.userAgent.match(/MSIE/))try{e.execCommand("BackgroundImageCache",!1,!0)}catch(f){}})(KISSY,void 0);
(function(a,k){a({ajax:{requires:["dom","json","event"]}});a({anim:{requires:["dom","event","ua"]}});a({base:{requires:["event/custom"]}});a({button:{requires:["component/base","event"]}});a({calendar:{requires:["node","event","ua"]}});a({color:{requires:["base"]}});a({combobox:{requires:["component/base","node","input-selection","menu","ajax"]}});a({"component/base":{requires:["rich-base","node","ua","event"]}});a({"component/extension":{requires:["ua","dom","node"]}});a({datalazyload:{requires:["dom",
"event","base"]}});a({dd:{alias:["dd/base","dd/droppable","dd/proxy","dd/scroll","dd/constrain"]}});a({"dd/base":{requires:["dom","node","event","ua","base"]}});a({"dd/constrain":{requires:["base","node","dd/base"]}});a({"dd/droppable":{requires:["dd/base","dom","node","base"]}});a({"dd/proxy":{requires:["node","base","dd/base"]}});a({"dd/scroll":{requires:["dd/base","base","node","dom"]}});a({dom:{requires:["ua"]}});a({editor:{requires:["htmlparser","component/base","core"]}});a({event:{alias:["event/base",
"event/dom","event/custom"]}});a({"event/custom":{requires:["event/base"]}});a({"event/dom":{alias:["event/dom/base",k.isTouchSupported()?"event/dom/touch":"empty"]}});a({"event/dom/base":{requires:["ua","dom","event/base"]}});a({"event/dom/touch":{requires:["event/dom/base","dom"]}});a({flash:{requires:["ua","dom","json"]}});a({grid:{requires:"component,overlay,template,button,node,toolbar".split(",")}});a({imagezoom:{requires:["node","overlay"]}});a({"input-selection":{requires:["dom"]}});a({json:{requires:[KISSY.Features.isNativeJSONSupported()?
View
12 build/kissy-nodejs.js
@@ -1,7 +1,7 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 20 16:22
+build time: Nov 21 02:29
*/
/**
* @ignore
@@ -39,11 +39,11 @@ var KISSY = (function (undefined) {
/**
* The build time of the library.
- * NOTICE: '20121120162241' will replace with current timestamp when compressing.
+ * NOTICE: '20121121022910' will replace with current timestamp when compressing.
* @private
* @type {String}
*/
- __BUILD_TIME: '20121120162241',
+ __BUILD_TIME: '20121121022910',
/**
* KISSY Environment.
* @private
@@ -3014,7 +3014,9 @@ var KISSY = (function (undefined) {
win = Env.host,
// nodejs
doc = win.document || {},
- isTouchSupported = 'ontouchstart' in doc,
+ ua = ((win.navigator || {}).userAgent) || "",
+ // phantomjs issue: http://code.google.com/p/phantomjs/issues/detail?id=375
+ isTouchSupported = ('ontouchstart' in doc) && !(/PhantomJS/.test(ua)),
documentMode = doc.documentMode,
isNativeJSONSupported = ((Env.nodejs && typeof global === 'object') ? global : win).JSON;
@@ -4749,7 +4751,7 @@ var KISSY = (function (undefined) {
// file limit number for a single combo url
comboMaxFileNum: 40,
charset: 'utf-8',
- tag: '20121120162241'
+ tag: '20121121022910'
}, getBaseInfo()));
}
View
115 build/kissy.js
@@ -1,7 +1,7 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 20 16:22
+build time: Nov 21 02:29
*/
/**
* @ignore
@@ -39,11 +39,11 @@ var KISSY = (function (undefined) {
/**
* The build time of the library.
- * NOTICE: '20121120162241' will replace with current timestamp when compressing.
+ * NOTICE: '20121121022910' will replace with current timestamp when compressing.
* @private
* @type {String}
*/
- __BUILD_TIME: '20121120162241',
+ __BUILD_TIME: '20121121022910',
/**
* KISSY Environment.
* @private
@@ -3014,7 +3014,9 @@ var KISSY = (function (undefined) {
win = Env.host,
// nodejs
doc = win.document || {},
- isTouchSupported = 'ontouchstart' in doc,
+ ua = ((win.navigator || {}).userAgent) || "",
+ // phantomjs issue: http://code.google.com/p/phantomjs/issues/detail?id=375
+ isTouchSupported = ('ontouchstart' in doc) && !(/PhantomJS/.test(ua)),
documentMode = doc.documentMode,
isNativeJSONSupported = ((Env.nodejs && typeof global === 'object') ? global : win).JSON;
@@ -3936,41 +3938,45 @@ var KISSY = (function (undefined) {
// single thread is ok
function cssPoll() {
- var callbackObj = monitors[url],
- node = callbackObj.node,
- exName,
- loaded = 0;
- if (utils.isWebKit) {
- // http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html
- if (node['sheet']) {
- S.log('webkit loaded : ' + url);
- loaded = 1;
- }
- } else if (node['sheet']) {
- try {
- var cssRules = node['sheet'].cssRules;
- if (cssRules) {
- S.log('same domain firefox loaded : ' + url);
+ for (var url in monitors) {
+
+ var callbackObj = monitors[url],
+ node = callbackObj.node,
+ exName,
+ loaded = 0;
+ if (utils.isWebKit) {
+ // http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html
+ if (node['sheet']) {
+ S.log('webkit loaded : ' + url);
loaded = 1;
}
- } catch (ex) {
- exName = ex.name;
- S.log('firefox getStyle : ' + exName + ' ' + ex.code + ' ' + url);
- // http://www.w3.org/TR/dom/#dom-domexception-code
- if (// exName == 'SecurityError' ||
- // for old firefox
- exName == 'NS_ERROR_DOM_SECURITY_ERR') {
- S.log(exName + ' firefox loaded : ' + url);
- loaded = 1;
+ } else if (node['sheet']) {
+ try {
+ var cssRules = node['sheet'].cssRules;
+ if (cssRules) {
+ S.log('same domain firefox loaded : ' + url);
+ loaded = 1;
+ }
+ } catch (ex) {
+ exName = ex.name;
+ S.log('firefox getStyle : ' + exName + ' ' + ex.code + ' ' + url);
+ // http://www.w3.org/TR/dom/#dom-domexception-code
+ if (// exName == 'SecurityError' ||
+ // for old firefox
+ exName == 'NS_ERROR_DOM_SECURITY_ERR') {
+ S.log(exName + ' firefox loaded : ' + url);
+ loaded = 1;
+ }
}
}
- }
- if (loaded) {
- if (callbackObj.callback) {
- callbackObj.callback.call(node);
+ if (loaded) {
+ if (callbackObj.callback) {
+ callbackObj.callback.call(node);
+ }
+ delete monitors[url];
}
- delete monitors[url];
+
}
if (S.isEmptyObject(monitors)) {
@@ -4005,7 +4011,13 @@ var KISSY = (function (undefined) {
doc = S.Env.host.document,
utils = S.Loader.Utils,
Path = S.Path,
- jsCssCallbacks = {};
+ jsCssCallbacks = {},
+ UA = navigator.userAgent,
+ // onload for webkit 535.23 Firefox 9.0
+ // https://bugs.webkit.org/show_activity.cgi?id=38995
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=185236
+ // https://developer.mozilla.org/en/HTML/Element/link#Stylesheet_load_events
+ isOldWebKit = Number(UA.replace(/.*AppleWebKit\/(\d+)\..*/, '$1')) < 536;
S.mix(S, {
/**
@@ -4104,8 +4116,18 @@ var KISSY = (function (undefined) {
delete jsCssCallbacks[src];
};
+ var useNative = !css;
+
+ if (css) {
+ if (isOldWebKit) {
+ useNative = false;
+ } else {
+ useNative = 'onload' in node;
+ }
+ }
+
//标准浏览器 css and all script
- if ('onload' in node || !css) {
+ if (useNative) {
node.onload = node.onreadystatechange = function () {
var readyState = node.readyState;
if (!readyState ||
@@ -5452,7 +5474,7 @@ var KISSY = (function (undefined) {
// file limit number for a single combo url
comboMaxFileNum: 40,
charset: 'utf-8',
- tag: '20121120162241'
+ tag: '20121121022910'
}, getBaseInfo()));
}
@@ -5919,7 +5941,7 @@ config({
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 14 21:54
+build time: Nov 20 23:00
*/
/**
* @ignore
@@ -6021,7 +6043,14 @@ KISSY.add('ua/base', function (S, undefined) {
* @type String
* @member KISSY.UA
*/
- shell: undefined
+ shell: undefined,
+
+ /**
+ * PhantomJS version number
+ * @type undefined|Number
+ * @member KISSY.UA
+ */
+ phantomjs: 0
},
numberify = function (s) {
var c = 0;
@@ -6085,6 +6114,10 @@ KISSY.add('ua/base', function (S, undefined) {
else if ((m = ua.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/))) {
UA[MOBILE] = m[0].toLowerCase(); // Nokia N-series, Android, webOS, ex: NokiaN95
}
+
+ if ((m = ua.match(/PhantomJS\/([^\s]*)/)) && m[1]) {
+ UA.phantomjs = numberify(m[1]);
+ }
}
// NOT WebKit
else {
@@ -14442,7 +14475,7 @@ KISSY.add('event/dom/base/valuechange', function (S, Event, DOM, special) {
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 20 16:19
+build time: Nov 20 23:38
*/
/**
* @ignore
@@ -14613,6 +14646,8 @@ KISSY.add('event/dom/touch/handle-map', function () {
*/
KISSY.add('event/dom/touch/handle', function (S, DOM, eventHandleMap, Event, Gesture) {
+ 'use strict';
+
var key = S.guid('touch-handle'),
Features = S.Features,
MOVE_DELAY = 30,
@@ -14757,7 +14792,7 @@ KISSY.add('event/dom/touch/handle', function (S, DOM, eventHandleMap, Event, Ges
handle = DOM.data(doc, key);
if (handle) {
handle.removeEventHandle(event);
- if (S.isEmptyObject(eventHandle)) {
+ if (S.isEmptyObject(handle.eventHandle)) {
handle.destroy();
DOM.removeData(doc, key);
}
View
151 build/seed-min.js
@@ -1,89 +1,90 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 20 16:22
+build time: Nov 21 02:29
*/
-var KISSY=function(a){var m=this,h,f=0;h={__BUILD_TIME:"20121120162241",Env:{host:m,nodejs:"function"==typeof require&&"object"==typeof exports},Config:{debug:"",fns:{}},version:"1.40dev",config:function(b,c){var d,l,o=this,e,n=h.Config,g=n.fns;h.isObject(b)?h.each(b,function(a,i){(e=g[i])?e.call(o,a):n[i]=a}):(d=g[b],c===a?l=d?d.call(o):n[b]:d?l=d.call(o,c):n[b]=c);return l},log:function(b,c,d){if(h.Config.debug&&(d&&(b=d+": "+b),m.console!==a&&console.log))console[c&&console[c]?c:"log"](b)},
-error:function(a){if(h.Config.debug)throw a instanceof Error?a:Error(a);},guid:function(a){return(a||"")+f++}};h.Env.nodejs&&(h.KISSY=h,module.exports=h);return h}();
-(function(a,m){function h(a,c,g,j,i,k){if(!c||!a)return a;g===m&&(g=d);var q=0,p,r;c[b]=a;k.push(c);if(j&&(r=j.length))for(;q<r;q++)p=j[q],p in c&&f(p,a,c,g,j,i,k);else{for(p in c)p!=b&&f(p,a,c,g,j,i,k);if(l)for(;p=o[q++];)c.hasOwnProperty(p)&&f(p,a,c,g,j,i,k)}return a}function f(e,c,g,j,i,k,q){if(j||!(e in c)||k){var p=c[e],g=g[e];if(p!==g)if(k&&g&&(a.isArray(g)||a.isPlainObject(g)))g[b]?c[e]=g[b]:(k=p&&(a.isArray(p)||a.isPlainObject(p))?p:a.isArray(g)?[]:{},c[e]=k,h(k,g,j,i,d,q));else if(g!==m&&
-(j||!(e in c)))c[e]=g}}var b="__MIX_CIRCULAR",c=this,d=!0,l=!{toString:1}.propertyIsEnumerable("toString"),o="hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toString,toLocaleString,valueOf".split(",");(function(a,b){for(var g in b)a[g]=b[g]})(a,{stamp:function(e,b,g){if(!e)return e;var g=g||"__~ks_stamped",j=e[g];if(!j&&!b)try{j=e[g]=a.guid(g)}catch(i){j=m}return j},keys:function(e){var b=[],g;for(g in e)b.push(g);l&&a.each(o,function(a){e.hasOwnProperty(a)&&b.push(a)});return b},mix:function(a,
-d,g,j,i){"object"===typeof g&&(j=g.whitelist,i=g.deep,g=g.overwrite);var k=[],c=0;for(h(a,d,g,j,i,k);d=k[c++];)delete d[b];return a},merge:function(e){var e=a.makeArray(arguments),b={},g,j=e.length;for(g=0;g<j;g++)a.mix(b,e[g]);return b},augment:function(e,b){var g=a.makeArray(arguments),j=g.length-2,i=1,k=g[j],d=g[j+1];a.isArray(d)||(k=d,d=m,j++);a.isBoolean(k)||(k=m,j++);for(;i<j;i++)a.mix(e.prototype,g[i].prototype||g[i],k,d);return e},extend:function(e,b,g,j){if(!b||!e)return e;var i=Object.create?
-function(a,i){return Object.create(a,{constructor:{value:i}})}:function(a,i){function e(){}e.prototype=a;var j=new e;j.constructor=i;return j},k=b.prototype,d;d=i(k,e);e.prototype=a.mix(d,e.prototype);e.superclass=i(k,b);g&&a.mix(d,g);j&&a.mix(e,j);return e},namespace:function(){var e=a.makeArray(arguments),b=e.length,g=null,j,i,k,q=e[b-1]===d&&b--;for(j=0;j<b;j++){k=(""+e[j]).split(".");g=q?c:this;for(i=c[k[0]]===g?1:0;i<k.length;++i)g=g[k[i]]=g[k[i]]||{}}return g}})})(KISSY);
-(function(a,m){var h=Array.prototype,f=h.indexOf,b=h.lastIndexOf,c=h.filter,d=h.every,l=h.some,o=h.map;a.mix(a,{each:function(e,b,g){if(e){var j,i=0,k=e&&e.length,d=k===m||"function"===a.type(e),g=g||null;if(d)for(j in e){if(!1===b.call(g,e[j],j,e))break}else for(j=e[0];i<k&&!1!==b.call(g,j,i,e);j=e[++i]);}return e},indexOf:f?function(a,b){return f.call(b,a)}:function(a,b){for(var g=0,j=b.length;g<j;++g)if(b[g]===a)return g;return-1},lastIndexOf:b?function(a,d){return b.call(d,a)}:function(a,b){for(var g=
-b.length-1;0<=g&&b[g]!==a;g--);return g},unique:function(b,d){var g=b.slice();d&&g.reverse();for(var j=0,i,k;j<g.length;){for(k=g[j];(i=a.lastIndexOf(k,g))!==j;)g.splice(i,1);j+=1}d&&g.reverse();return g},inArray:function(b,d){return-1<a.indexOf(b,d)},filter:c?function(a,b,d){return c.call(a,b,d||this)}:function(b,d,g){var j=[];a.each(b,function(a,b,e){d.call(g||this,a,b,e)&&j.push(a)});return j},map:o?function(a,b,d){return o.call(a,b,d||this)}:function(a,b,d){for(var j=a.length,i=Array(j),k=0;k<
-j;k++){var c="string"==typeof a?a.charAt(k):a[k];if(c||k in a)i[k]=b.call(d||this,c,k,a)}return i},reduce:function(a,b,d){var j=a.length;if("function"!==typeof b)throw new TypeError("callback is not function!");if(0===j&&2==arguments.length)throw new TypeError("arguments invalid");var i=0,k;if(3<=arguments.length)k=arguments[2];else{do{if(i in a){k=a[i++];break}i+=1;if(i>=j)throw new TypeError;}while(1)}for(;i<j;)i in a&&(k=b.call(m,k,a[i],i,a)),i++;return k},every:d?function(a,b,g){return d.call(a,
-b,g||this)}:function(a,b,d){for(var j=a&&a.length||0,i=0;i<j;i++)if(i in a&&!b.call(d,a[i],i,a))return!1;return!0},some:l?function(a,b,d){return l.call(a,b,d||this)}:function(a,b,d){for(var j=a&&a.length||0,i=0;i<j;i++)if(i in a&&b.call(d,a[i],i,a))return!0;return!1},makeArray:function(b){if(null==b)return[];if(a.isArray(b))return b;if("number"!==typeof b.length||b.alert||"string"==typeof b||a.isFunction(b))return[b];for(var d=[],g=0,j=b.length;g<j;g++)d[g]=b[g];return d}})})(KISSY);
-(function(a,m){function h(a){var b=typeof a;return null==a||"object"!==b&&"function"!==b}function f(){if(o)return o;var b=c;a.each(d,function(a){b+=a+"|"});b=b.slice(0,-1);return o=RegExp(b,"g")}function b(){if(e)return e;var b=c;a.each(l,function(a){b+=a+"|"});b+="&#(\\d{1,5});";return e=RegExp(b,"g")}var c="",d={"&amp;":"&","&gt;":">","&lt;":"<","&#x60;":"`","&#x2F;":"/","&quot;":'"',"&#x27;":"'"},l={},o,e,n=/[\-#$\^*()+\[\]{}|\\,.?\s]/g;(function(){for(var a in d)l[d[a]]=a})();a.mix(a,{urlEncode:function(a){return encodeURIComponent(""+
-a)},urlDecode:function(a){return decodeURIComponent(a.replace(/\+/g," "))},fromUnicode:function(a){return a.replace(/\\u([a-f\d]{4})/ig,function(a,i){return String.fromCharCode(parseInt(i,16))})},escapeHTML:function(a){return(a+"").replace(f(),function(a){return l[a]})},escapeRegExp:function(a){return a.replace(n,"\\$&")},unEscapeHTML:function(a){return a.replace(b(),function(a,i){return d[a]||String.fromCharCode(+i)})},param:function(b,d,i,k){if(!a.isPlainObject(b))return c;d=d||"&";i=i||"=";a.isUndefined(k)&&
-(k=!0);var e=[],p,r,o,l,f,n=a.urlEncode;for(p in b)if(f=b[p],p=n(p),h(f))e.push(p),f!==m&&e.push(i,n(f+c)),e.push(d);else if(a.isArray(f)&&f.length){r=0;for(l=f.length;r<l;++r)o=f[r],h(o)&&(e.push(p,k?n("[]"):c),o!==m&&e.push(i,n(o+c)),e.push(d))}e.pop();return e.join(c)},unparam:function(b,d,i){if("string"!=typeof b||!(b=a.trim(b)))return{};for(var i=i||"=",k={},c,p=a.urlDecode,b=b.split(d||"&"),e=0,o=b.length;e<o;++e){c=b[e].indexOf(i);if(-1==c)d=p(b[e]),c=m;else{d=p(b[e].substring(0,c));c=b[e].substring(c+
-1);try{c=p(c)}catch(l){}a.endsWith(d,"[]")&&(d=d.substring(0,d.length-2))}d in k?a.isArray(k[d])?k[d].push(c):k[d]=[k[d],c]:k[d]=c}return k}})})(KISSY);
-(function(a){function m(a,f,b){var c=[].slice,d=c.call(arguments,3),l=function(){},o=function(){var e=c.call(arguments);return f.apply(this instanceof l?this:b,a?e.concat(d):d.concat(e))};l.prototype=f.prototype;o.prototype=new l;return o}a.mix(a,{noop:function(){},bind:m(0,m,null,0),rbind:m(0,m,null,1),later:function(h,f,b,c,d){var f=f||0,l=h,o=a.makeArray(d),e;"string"==typeof h&&(l=c[h]);h=function(){l.apply(c,o)};e=b?setInterval(h,f):setTimeout(h,f);return{id:e,interval:b,cancel:function(){this.interval?
-clearInterval(e):clearTimeout(e)}}},throttle:function(h,f,b){f=f||150;if(-1===f)return function(){h.apply(b||this,arguments)};var c=a.now();return function(){var d=a.now();d-c>f&&(c=d,h.apply(b||this,arguments))}},buffer:function(h,f,b){function c(){c.stop();d=a.later(h,f,0,b||this,arguments)}f=f||150;if(-1===f)return function(){h.apply(b||this,arguments)};var d=null;c.stop=function(){d&&(d.cancel(),d=0)};return c}})})(KISSY);
-(function(a,m){function h(b,e,l){var g=b,j,i,k,q;if(!b)return g;if(b[d])return l[b[d]].destination;if("object"===typeof b){q=b.constructor;if(a.inArray(q,[Boolean,String,Number,Date,RegExp]))g=new q(b.valueOf());else if(j=a.isArray(b))g=e?a.filter(b,e):b.concat();else if(i=a.isPlainObject(b))g={};b[d]=q=a.guid();l[q]={destination:g,input:b}}if(j)for(b=0;b<g.length;b++)g[b]=h(g[b],e,l);else if(i)for(k in b)if(k!==d&&(!e||e.call(b,b[k],k,b)!==c))g[k]=h(b[k],e,l);return g}function f(d,c,f,g){if(d[l]===
-c&&c[l]===d)return b;d[l]=c;c[l]=d;var j=function(a,b){return null!==a&&a!==m&&a[b]!==m},i;for(i in c)!j(d,i)&&j(c,i)&&f.push("expected has key '"+i+"', but missing from actual.");for(i in d)!j(c,i)&&j(d,i)&&f.push("expected missing key '"+i+"', but present in actual.");for(i in c)i!=l&&(a.equals(d[i],c[i],f,g)||g.push("'"+i+"' was '"+(c[i]?c[i].toString():c[i])+"' in expected, but was '"+(d[i]?d[i].toString():d[i])+"' in actual."));a.isArray(d)&&a.isArray(c)&&d.length!=c.length&&g.push("arrays were not the same length");
-delete d[l];delete c[l];return 0===f.length&&0===g.length}var b=!0,c=!1,d="__~ks_cloned",l="__~ks_compared";a.mix(a,{equals:function(d,c,l,g){l=l||[];g=g||[];return d===c?b:d===m||null===d||c===m||null===c?null==d&&null==c:d instanceof Date&&c instanceof Date?d.getTime()==c.getTime():"string"==typeof d&&"string"==typeof c||a.isNumber(d)&&a.isNumber(c)?d==c:"object"===typeof d&&"object"===typeof c?f(d,c,l,g):d===c},clone:function(b,c){var l={},g=h(b,c,l);a.each(l,function(a){a=a.input;if(a[d])try{delete a[d]}catch(b){a[d]=
-m}});l=null;return g},now:Date.now||function(){return+new Date}})})(KISSY);
-(function(a,m){var h=/^[\s\xa0]+|[\s\xa0]+$/g,f=String.prototype.trim;a.mix(a,{trim:f?function(a){return null==a?"":f.call(a)}:function(a){return null==a?"":a.toString().replace(h,"")},substitute:function(b,c,d){return"string"!=typeof b||!a.isPlainObject(c)?b:b.replace(d||/\\?\{([^{}]+)\}/g,function(a,b){return"\\"===a.charAt(0)?a.slice(1):c[b]===m?"":c[b]})},ucfirst:function(a){a+="";return a.charAt(0).toUpperCase()+a.substring(1)},startsWith:function(a,c){return 0===a.lastIndexOf(c,0)},endsWith:function(a,
+var KISSY=function(a){var l=this,g,f=0;g={__BUILD_TIME:"20121121022910",Env:{host:l,nodejs:"function"==typeof require&&"object"==typeof exports},Config:{debug:"",fns:{}},version:"1.40dev",config:function(b,c){var d,j,n=this,h,o=g.Config,e=o.fns;g.isObject(b)?g.each(b,function(a,i){(h=e[i])?h.call(n,a):o[i]=a}):(d=e[b],c===a?j=d?d.call(n):o[b]:d?j=d.call(n,c):o[b]=c);return j},log:function(b,c,d){if(g.Config.debug&&(d&&(b=d+": "+b),l.console!==a&&console.log))console[c&&console[c]?c:"log"](b)},
+error:function(a){if(g.Config.debug)throw a instanceof Error?a:Error(a);},guid:function(a){return(a||"")+f++}};g.Env.nodejs&&(g.KISSY=g,module.exports=g);return g}();
+(function(a,l){function g(a,c,e,k,i,q){if(!c||!a)return a;e===l&&(e=d);var m=0,p,B;c[b]=a;q.push(c);if(k&&(B=k.length))for(;m<B;m++)p=k[m],p in c&&f(p,a,c,e,k,i,q);else{for(p in c)p!=b&&f(p,a,c,e,k,i,q);if(j)for(;p=n[m++];)c.hasOwnProperty(p)&&f(p,a,c,e,k,i,q)}return a}function f(h,c,e,k,i,q,m){if(k||!(h in c)||q){var p=c[h],e=e[h];if(p!==e)if(q&&e&&(a.isArray(e)||a.isPlainObject(e)))e[b]?c[h]=e[b]:(q=p&&(a.isArray(p)||a.isPlainObject(p))?p:a.isArray(e)?[]:{},c[h]=q,g(q,e,k,i,d,m));else if(e!==l&&
+(k||!(h in c)))c[h]=e}}var b="__MIX_CIRCULAR",c=this,d=!0,j=!{toString:1}.propertyIsEnumerable("toString"),n="hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toString,toLocaleString,valueOf".split(",");(function(a,b){for(var e in b)a[e]=b[e]})(a,{stamp:function(h,b,e){if(!h)return h;var e=e||"__~ks_stamped",k=h[e];if(!k&&!b)try{k=h[e]=a.guid(e)}catch(i){k=l}return k},keys:function(h){var b=[],e;for(e in h)b.push(e);j&&a.each(n,function(a){h.hasOwnProperty(a)&&b.push(a)});return b},mix:function(a,
+d,e,k,i){"object"===typeof e&&(k=e.whitelist,i=e.deep,e=e.overwrite);var q=[],m=0;for(g(a,d,e,k,i,q);d=q[m++];)delete d[b];return a},merge:function(h){var h=a.makeArray(arguments),b={},e,k=h.length;for(e=0;e<k;e++)a.mix(b,h[e]);return b},augment:function(h,b){var e=a.makeArray(arguments),k=e.length-2,i=1,d=e[k],m=e[k+1];a.isArray(m)||(d=m,m=l,k++);a.isBoolean(d)||(d=l,k++);for(;i<k;i++)a.mix(h.prototype,e[i].prototype||e[i],d,m);return h},extend:function(h,b,e,k){if(!b||!h)return h;var i=Object.create?
+function(a,i){return Object.create(a,{constructor:{value:i}})}:function(a,i){function k(){}k.prototype=a;var e=new k;e.constructor=i;return e},d=b.prototype,m;m=i(d,h);h.prototype=a.mix(m,h.prototype);h.superclass=i(d,b);e&&a.mix(m,e);k&&a.mix(h,k);return h},namespace:function(){var h=a.makeArray(arguments),b=h.length,e=null,k,i,q,m=h[b-1]===d&&b--;for(k=0;k<b;k++){q=(""+h[k]).split(".");e=m?c:this;for(i=c[q[0]]===e?1:0;i<q.length;++i)e=e[q[i]]=e[q[i]]||{}}return e}})})(KISSY);
+(function(a,l){var g=Array.prototype,f=g.indexOf,b=g.lastIndexOf,c=g.filter,d=g.every,j=g.some,n=g.map;a.mix(a,{each:function(h,b,e){if(h){var k,i=0,d=h&&h.length,m=d===l||"function"===a.type(h),e=e||null;if(m)for(k in h){if(!1===b.call(e,h[k],k,h))break}else for(k=h[0];i<d&&!1!==b.call(e,k,i,h);k=h[++i]);}return h},indexOf:f?function(a,b){return f.call(b,a)}:function(a,b){for(var e=0,k=b.length;e<k;++e)if(b[e]===a)return e;return-1},lastIndexOf:b?function(a,d){return b.call(d,a)}:function(a,b){for(var e=
+b.length-1;0<=e&&b[e]!==a;e--);return e},unique:function(b,d){var e=b.slice();d&&e.reverse();for(var k=0,i,c;k<e.length;){for(c=e[k];(i=a.lastIndexOf(c,e))!==k;)e.splice(i,1);k+=1}d&&e.reverse();return e},inArray:function(b,d){return-1<a.indexOf(b,d)},filter:c?function(a,b,e){return c.call(a,b,e||this)}:function(b,d,e){var k=[];a.each(b,function(a,b,h){d.call(e||this,a,b,h)&&k.push(a)});return k},map:n?function(a,b,e){return n.call(a,b,e||this)}:function(a,b,e){for(var k=a.length,i=Array(k),d=0;d<
+k;d++){var m="string"==typeof a?a.charAt(d):a[d];if(m||d in a)i[d]=b.call(e||this,m,d,a)}return i},reduce:function(a,b,d){var k=a.length;if("function"!==typeof b)throw new TypeError("callback is not function!");if(0===k&&2==arguments.length)throw new TypeError("arguments invalid");var i=0,c;if(3<=arguments.length)c=arguments[2];else{do{if(i in a){c=a[i++];break}i+=1;if(i>=k)throw new TypeError;}while(1)}for(;i<k;)i in a&&(c=b.call(l,c,a[i],i,a)),i++;return c},every:d?function(a,b,e){return d.call(a,
+b,e||this)}:function(a,b,d){for(var k=a&&a.length||0,i=0;i<k;i++)if(i in a&&!b.call(d,a[i],i,a))return!1;return!0},some:j?function(a,b,d){return j.call(a,b,d||this)}:function(a,b,d){for(var k=a&&a.length||0,i=0;i<k;i++)if(i in a&&b.call(d,a[i],i,a))return!0;return!1},makeArray:function(b){if(null==b)return[];if(a.isArray(b))return b;if("number"!==typeof b.length||b.alert||"string"==typeof b||a.isFunction(b))return[b];for(var d=[],e=0,k=b.length;e<k;e++)d[e]=b[e];return d}})})(KISSY);
+(function(a,l){function g(a){var b=typeof a;return null==a||"object"!==b&&"function"!==b}function f(){if(n)return n;var b=c;a.each(d,function(a){b+=a+"|"});b=b.slice(0,-1);return n=RegExp(b,"g")}function b(){if(h)return h;var b=c;a.each(j,function(a){b+=a+"|"});b+="&#(\\d{1,5});";return h=RegExp(b,"g")}var c="",d={"&amp;":"&","&gt;":">","&lt;":"<","&#x60;":"`","&#x2F;":"/","&quot;":'"',"&#x27;":"'"},j={},n,h,o=/[\-#$\^*()+\[\]{}|\\,.?\s]/g;(function(){for(var a in d)j[d[a]]=a})();a.mix(a,{urlEncode:function(a){return encodeURIComponent(""+
+a)},urlDecode:function(a){return decodeURIComponent(a.replace(/\+/g," "))},fromUnicode:function(a){return a.replace(/\\u([a-f\d]{4})/ig,function(a,i){return String.fromCharCode(parseInt(i,16))})},escapeHTML:function(a){return(a+"").replace(f(),function(a){return j[a]})},escapeRegExp:function(a){return a.replace(o,"\\$&")},unEscapeHTML:function(a){return a.replace(b(),function(a,i){return d[a]||String.fromCharCode(+i)})},param:function(b,d,i,q){if(!a.isPlainObject(b))return c;d=d||"&";i=i||"=";a.isUndefined(q)&&
+(q=!0);var m=[],p,h,n,j,f,o=a.urlEncode;for(p in b)if(f=b[p],p=o(p),g(f))m.push(p),f!==l&&m.push(i,o(f+c)),m.push(d);else if(a.isArray(f)&&f.length){h=0;for(j=f.length;h<j;++h)n=f[h],g(n)&&(m.push(p,q?o("[]"):c),n!==l&&m.push(i,o(n+c)),m.push(d))}m.pop();return m.join(c)},unparam:function(b,d,i){if("string"!=typeof b||!(b=a.trim(b)))return{};for(var i=i||"=",c={},m,p=a.urlDecode,b=b.split(d||"&"),h=0,n=b.length;h<n;++h){m=b[h].indexOf(i);if(-1==m)d=p(b[h]),m=l;else{d=p(b[h].substring(0,m));m=b[h].substring(m+
+1);try{m=p(m)}catch(j){}a.endsWith(d,"[]")&&(d=d.substring(0,d.length-2))}d in c?a.isArray(c[d])?c[d].push(m):c[d]=[c[d],m]:c[d]=m}return c}})})(KISSY);
+(function(a){function l(a,f,b){var c=[].slice,d=c.call(arguments,3),j=function(){},n=function(){var h=c.call(arguments);return f.apply(this instanceof j?this:b,a?h.concat(d):d.concat(h))};j.prototype=f.prototype;n.prototype=new j;return n}a.mix(a,{noop:function(){},bind:l(0,l,null,0),rbind:l(0,l,null,1),later:function(g,f,b,c,d){var f=f||0,j=g,n=a.makeArray(d),h;"string"==typeof g&&(j=c[g]);g=function(){j.apply(c,n)};h=b?setInterval(g,f):setTimeout(g,f);return{id:h,interval:b,cancel:function(){this.interval?
+clearInterval(h):clearTimeout(h)}}},throttle:function(g,f,b){f=f||150;if(-1===f)return function(){g.apply(b||this,arguments)};var c=a.now();return function(){var d=a.now();d-c>f&&(c=d,g.apply(b||this,arguments))}},buffer:function(g,f,b){function c(){c.stop();d=a.later(g,f,0,b||this,arguments)}f=f||150;if(-1===f)return function(){g.apply(b||this,arguments)};var d=null;c.stop=function(){d&&(d.cancel(),d=0)};return c}})})(KISSY);
+(function(a,l){function g(b,h,j){var e=b,k,i,q,m;if(!b)return e;if(b[d])return j[b[d]].destination;if("object"===typeof b){m=b.constructor;if(a.inArray(m,[Boolean,String,Number,Date,RegExp]))e=new m(b.valueOf());else if(k=a.isArray(b))e=h?a.filter(b,h):b.concat();else if(i=a.isPlainObject(b))e={};b[d]=m=a.guid();j[m]={destination:e,input:b}}if(k)for(b=0;b<e.length;b++)e[b]=g(e[b],h,j);else if(i)for(q in b)if(q!==d&&(!h||h.call(b,b[q],q,b)!==c))e[q]=g(b[q],h,j);return e}function f(d,c,f,e){if(d[j]===
+c&&c[j]===d)return b;d[j]=c;c[j]=d;var k=function(a,b){return null!==a&&a!==l&&a[b]!==l},i;for(i in c)!k(d,i)&&k(c,i)&&f.push("expected has key '"+i+"', but missing from actual.");for(i in d)!k(c,i)&&k(d,i)&&f.push("expected missing key '"+i+"', but present in actual.");for(i in c)i!=j&&(a.equals(d[i],c[i],f,e)||e.push("'"+i+"' was '"+(c[i]?c[i].toString():c[i])+"' in expected, but was '"+(d[i]?d[i].toString():d[i])+"' in actual."));a.isArray(d)&&a.isArray(c)&&d.length!=c.length&&e.push("arrays were not the same length");
+delete d[j];delete c[j];return 0===f.length&&0===e.length}var b=!0,c=!1,d="__~ks_cloned",j="__~ks_compared";a.mix(a,{equals:function(d,c,j,e){j=j||[];e=e||[];return d===c?b:d===l||null===d||c===l||null===c?null==d&&null==c:d instanceof Date&&c instanceof Date?d.getTime()==c.getTime():"string"==typeof d&&"string"==typeof c||a.isNumber(d)&&a.isNumber(c)?d==c:"object"===typeof d&&"object"===typeof c?f(d,c,j,e):d===c},clone:function(b,c){var j={},e=g(b,c,j);a.each(j,function(a){a=a.input;if(a[d])try{delete a[d]}catch(b){a[d]=
+l}});j=null;return e},now:Date.now||function(){return+new Date}})})(KISSY);
+(function(a,l){var g=/^[\s\xa0]+|[\s\xa0]+$/g,f=String.prototype.trim;a.mix(a,{trim:f?function(a){return null==a?"":f.call(a)}:function(a){return null==a?"":a.toString().replace(g,"")},substitute:function(b,c,d){return"string"!=typeof b||!a.isPlainObject(c)?b:b.replace(d||/\\?\{([^{}]+)\}/g,function(a,b){return"\\"===a.charAt(0)?a.slice(1):c[b]===l?"":c[b]})},ucfirst:function(a){a+="";return a.charAt(0).toUpperCase()+a.substring(1)},startsWith:function(a,c){return 0===a.lastIndexOf(c,0)},endsWith:function(a,
c){var d=a.length-c.length;return 0<=d&&a.indexOf(c,d)==d}})})(KISSY);
-(function(a,m){var h={},f=Object.prototype.toString;a.mix(a,{isBoolean:0,isNumber:0,isString:0,isFunction:0,isArray:0,isDate:0,isRegExp:0,isObject:0,type:function(a){return null==a?""+a:h[f.call(a)]||"object"},isNull:function(a){return null===a},isUndefined:function(a){return a===m},isEmptyObject:function(a){for(var c in a)if(c!==m)return!1;return!0},isPlainObject:function(b){if(!b||"object"!==a.type(b)||b.nodeType||b.window==b)return!1;try{if(b.constructor&&!Object.prototype.hasOwnProperty.call(b,
-"constructor")&&!Object.prototype.hasOwnProperty.call(b.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var d in b);return d===m||Object.prototype.hasOwnProperty.call(b,d)}});a.each("Boolean,Number,String,Function,Array,Date,RegExp,Object".split(","),function(b,c){h["[object "+b+"]"]=c=b.toLowerCase();a["is"+b]=function(b){return a.type(b)==c}})})(KISSY);
-(function(a,m){function h(a,i,c){if(a instanceof d)return c(a[n]);var e=a[n];if(a=a[g])a.push([i,c]);else if(b(e))h(e,i,c);else return i&&i(e);return m}function f(a){if(!(this instanceof f))return new f(a);this.promise=a||new c}function b(a){return a&&a instanceof c}function c(a){this[n]=a;a===m&&(this[g]=[])}function d(a){if(a instanceof d)return a;c.apply(this,arguments);return m}function l(a,b,k){function e(a){try{return b?b(a):a}catch(c){return new d(c)}}function p(a){try{return k?k(a):new d(a)}catch(b){return new d(b)}}
-function g(a){o||(o=1,l.resolve(e(a)))}var l=new f,o=0;a instanceof c?h(a,g,function(a){o||(o=1,l.resolve(p(a)))}):g(a);return l.promise}function o(a){return!e(a)&&b(a)&&a[g]===m&&(!b(a[n])||o(a[n]))}function e(a){return b(a)&&a[g]===m&&a[n]instanceof d}var n="__promise_value",g="__promise_pendings";f.prototype={constructor:f,resolve:function(b){var i=this.promise,d;if(!(d=i[g]))return m;i[n]=b;d=[].concat(d);i[g]=m;a.each(d,function(a){h(i,a[0],a[1])});return b},reject:function(a){return this.resolve(new d(a))}};
-c.prototype={constructor:c,then:function(a,b){return l(this,a,b)},fail:function(a){return l(this,0,a)},fin:function(a){return l(this,function(b){return a(b,!0)},function(b){return a(b,!1)})},isResolved:function(){return o(this)},isRejected:function(){return e(this)}};a.extend(d,c);KISSY.Defer=f;KISSY.Promise=c;a.mix(c,{when:l,isPromise:b,isResolved:o,isRejected:e,all:function(a){var b=a.length;if(!b)return a;for(var d=f(),c=0;c<a.length;c++)(function(c,e){l(c,function(c){a[e]=c;0===--b&&d.resolve(a)},
+(function(a,l){var g={},f=Object.prototype.toString;a.mix(a,{isBoolean:0,isNumber:0,isString:0,isFunction:0,isArray:0,isDate:0,isRegExp:0,isObject:0,type:function(a){return null==a?""+a:g[f.call(a)]||"object"},isNull:function(a){return null===a},isUndefined:function(a){return a===l},isEmptyObject:function(a){for(var c in a)if(c!==l)return!1;return!0},isPlainObject:function(b){if(!b||"object"!==a.type(b)||b.nodeType||b.window==b)return!1;try{if(b.constructor&&!Object.prototype.hasOwnProperty.call(b,
+"constructor")&&!Object.prototype.hasOwnProperty.call(b.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var d in b);return d===l||Object.prototype.hasOwnProperty.call(b,d)}});a.each("Boolean,Number,String,Function,Array,Date,RegExp,Object".split(","),function(b,c){g["[object "+b+"]"]=c=b.toLowerCase();a["is"+b]=function(b){return a.type(b)==c}})})(KISSY);
+(function(a,l){function g(a,i,c){if(a instanceof d)return c(a[o]);var m=a[o];if(a=a[e])a.push([i,c]);else if(b(m))g(m,i,c);else return i&&i(m);return l}function f(a){if(!(this instanceof f))return new f(a);this.promise=a||new c}function b(a){return a&&a instanceof c}function c(a){this[o]=a;a===l&&(this[e]=[])}function d(a){if(a instanceof d)return a;c.apply(this,arguments);return l}function j(a,b,e){function m(a){try{return b?b(a):a}catch(c){return new d(c)}}function p(a){try{return e?e(a):new d(a)}catch(b){return new d(b)}}
+function j(a){n||(n=1,h.resolve(m(a)))}var h=new f,n=0;a instanceof c?g(a,j,function(a){n||(n=1,h.resolve(p(a)))}):j(a);return h.promise}function n(a){return!h(a)&&b(a)&&a[e]===l&&(!b(a[o])||n(a[o]))}function h(a){return b(a)&&a[e]===l&&a[o]instanceof d}var o="__promise_value",e="__promise_pendings";f.prototype={constructor:f,resolve:function(b){var i=this.promise,d;if(!(d=i[e]))return l;i[o]=b;d=[].concat(d);i[e]=l;a.each(d,function(a){g(i,a[0],a[1])});return b},reject:function(a){return this.resolve(new d(a))}};
+c.prototype={constructor:c,then:function(a,b){return j(this,a,b)},fail:function(a){return j(this,0,a)},fin:function(a){return j(this,function(b){return a(b,!0)},function(b){return a(b,!1)})},isResolved:function(){return n(this)},isRejected:function(){return h(this)}};a.extend(d,c);KISSY.Defer=f;KISSY.Promise=c;a.mix(c,{when:j,isPromise:b,isResolved:n,isRejected:h,all:function(a){var b=a.length;if(!b)return a;for(var d=f(),c=0;c<a.length;c++)(function(c,m){j(c,function(c){a[m]=c;0===--b&&d.resolve(a)},
function(a){d.reject(a)})})(a[c],c);return d.promise}})})(KISSY);
-(function(a){function m(a,c){for(var d=0,l=a.length-1;0<=l;l--){var f=a[l];"."==f?a.splice(l,1):".."===f?(a.splice(l,1),d++):d&&(a.splice(l,1),d--)}if(c)for(;d--;d)a.unshift("..");return a}var h=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/,f={resolve:function(){var b="",c,d=a.makeArray(arguments),l,f=0;for(c=d.length-1;0<=c&&!f;c--)l=d[c],"string"==typeof l&&l&&(b=l+"/"+b,f="/"==l.charAt(0));b=m(a.filter(b.split("/"),function(a){return!!a}),!f).join("/");return(f?"/":"")+b||"."},
-normalize:function(b){var c="/"==b.charAt(0),d="/"==b.slice(-1),b=m(a.filter(b.split("/"),function(a){return!!a}),!c).join("/");!b&&!c&&(b=".");b&&d&&(b+="/");return(c?"/":"")+b},join:function(){var b=a.makeArray(arguments);return f.normalize(a.filter(b,function(a){return a&&"string"==typeof a}).join("/"))},relative:function(b,c){var b=f.normalize(b),c=f.normalize(c),d=a.filter(b.split("/"),function(a){return!!a}),l=[],h,e,m=a.filter(c.split("/"),function(a){return!!a});e=Math.min(d.length,m.length);
-for(h=0;h<e&&d[h]==m[h];h++);for(e=h;h<d.length;)l.push(".."),h++;l=l.concat(m.slice(e));return l=l.join("/")},basename:function(a,c){var d=a.match(h)||[],d=d[3]||"";c&&d&&d.slice(-1*c.length)==c&&(d=d.slice(0,-1*c.length));return d},dirname:function(a){var c=a.match(h)||[],a=c[1]||"",c=c[2]||"";if(!a&&!c)return".";c&&(c=c.substring(0,c.length-1));return a+c},extname:function(a){return(a.match(h)||[])[4]||""}};a.Path=f})(KISSY);
-(function(a,m){function h(b){b._queryMap||(b._queryMap=a.unparam(b._query))}function f(a){this._query=a||""}function b(a,b){return encodeURI(a).replace(b,function(a){a=a.charCodeAt(0).toString(16);return"%"+(1==a.length?"0"+a:a)})}function c(b){if(b instanceof c)return b.clone();var d,e=this;a.mix(e,{scheme:"",userInfo:"",hostname:"",port:"",path:"",query:"",fragment:""});d=(b||"").match(n)||[];a.each(j,function(b,i){var c=d[b]||"";"query"==i?e.query=new f(c):e[i]=a.urlDecode(c)});return m}var d=
-/[#\/\?@]/g,l=/[#\?]/g,o=/[#@]/g,e=/#/g,n=RegExp("^(?:([\\w\\d+.-]+):)?(?://(?:([^/?#@]*)@)?([\\w\\d\\-\\u0100-\\uffff.+%]*|\\[[^\\]]+\\])(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),g=a.Path,j={scheme:1,userInfo:2,hostname:3,port:4,path:5,query:6,fragment:7};f.prototype={constructor:f,clone:function(){return new f(this.toString())},reset:function(a){this._query=a||"";this._queryMap=0},count:function(){var b=0,d=this._queryMap,c;h(this);for(c in d)a.isArray(d[c])?b+=d[c].length:b++;return b},
-get:function(a){h(this);return a?this._queryMap[a]:this._queryMap},keys:function(){h(this);return a.keys(this._queryMap)},set:function(b,d){var c;h(this);c=this._queryMap;"string"==typeof b?this._queryMap[b]=d:(b instanceof f&&(b=b.get()),a.each(b,function(a,b){c[b]=a}));return this},remove:function(a){h(this);a?delete this._queryMap[a]:this._queryMap={};return this},add:function(b,d){var c=this,p,e;a.isObject(b)?(b instanceof f&&(b=b.get()),a.each(b,function(a,b){c.add(b,a)})):(h(c),p=c._queryMap,
-e=p[b],e=e===m?d:[].concat(e).concat(d),p[b]=e);return c},toString:function(b){h(this);return a.param(this._queryMap,m,m,b)}};c.prototype={constructor:c,clone:function(){var b=new c,d=this;a.each(j,function(a,c){b[c]=d[c]});b.query=b.query.clone();return b},resolve:function(b){"string"==typeof b&&(b=new c(b));var d=0,e,p=this.clone();a.each("scheme,userInfo,hostname,port,path,query,fragment".split(","),function(c){if(c=="path")if(d)p[c]=b[c];else{if(c=b.path){d=1;if(!a.startsWith(c,"/"))if(p.hostname&&
-!p.path)c="/"+c;else if(p.path){e=p.path.lastIndexOf("/");e!=-1&&(c=p.path.slice(0,e+1)+c)}p.path=g.normalize(c)}}else if(c=="query"){if(d||b.query.toString()){p.query=b.query.clone();d=1}}else if(d||b[c]){p[c]=b[c];d=1}});return p},getScheme:function(){return this.scheme},setScheme:function(a){this.scheme=a;return this},getHostname:function(){return this.hostname},setHostname:function(a){this.hostname=a;return this},setUserInfo:function(a){this.userInfo=a;return this},getUserInfo:function(){return this.userInfo},
-setPort:function(a){this.port=a;return this},getPort:function(){return this.port},setPath:function(a){this.path=a;return this},getPath:function(){return this.path},setQuery:function(d){"string"==typeof d&&(a.startsWith(d,"?")&&(d=d.slice(1)),d=new f(b(d,o)));this.query=d;return this},getQuery:function(){return this.query},getFragment:function(){return this.fragment},setFragment:function(b){a.startsWith(b,"#")||(b="#"+b);this.fragment=b;return this},hasSameDomainAs:function(a){return this.hostname.toLowerCase()==
-a.hostname.toLowerCase()&&this.scheme.toLowerCase()==a.scheme.toLowerCase()&&this.port.toLowerCase()==a.port.toLowerCase()},toString:function(c){var k=[],f,p;if(f=this.scheme)k.push(b(f,d)),k.push(":");if(f=this.hostname){k.push("//");if(p=this.userInfo)k.push(b(p,d)),k.push("@");k.push(encodeURIComponent(f));if(p=this.port)k.push(":"),k.push(p)}if(p=this.path)f&&!a.startsWith(p,"/")&&(p="/"+p),p=g.normalize(p),k.push(b(p,l));if(c=this.query.toString.call(this.query,c))k.push("?"),k.push(c);if(c=
-this.fragment)k.push("#"),k.push(b(c,e));return k.join("")}};c.Query=f;a.Uri=c})(KISSY);(function(a){var m=a.Env,h=m.host,f=h.document||{},b="ontouchstart"in f,f=f.documentMode,c=(m.nodejs&&"object"===typeof global?global:h).JSON;f&&9>f&&(c=0);a.Features={isTouchSupported:function(){return b},isNativeJSONSupported:function(){return c}}})(KISSY);(function(){function a(a){this.runtime=a}a.STATUS={INIT:0,LOADING:1,LOADED:2,ERROR:3,ATTACHED:4};KISSY.Loader=a})(KISSY);
-(function(a){function m(a,b,c){a=a[h]||(a[h]={});c&&(a[b]=a[b]||[]);return a[b]}a.namespace("Loader");var h="__events__"+a.now();KISSY.Loader.Target={on:function(a,b){m(this,a,1).push(b)},detach:function(f,b){var c,d;if(f){if(c=m(this,f))b&&(d=a.indexOf(b,c),-1!=d&&c.splice(d,1)),(!b||!c.length)&&delete (this[h]||(this[h]={}))[f]}else delete this[h]},fire:function(f,b){var c=m(this,f);a.each(c,function(a){a.call(null,b)})}}})(KISSY);
-(function(a){function m(b){if(a.isArray(b)){for(var d=[],c=0;c<b.length;c++)d[c]=h(b[c]);return d}return h(b)}function h(b){a.endsWith(c.basename(b),"/")&&(b+="index");return b}function f(b,d,c){var b=b.Env.mods,i,d=a.makeArray(d);for(i=0;i<d.length;i++){var e=b[d[i]];if(!e||e.status!==c)return!1}return!0}var b=a.Loader,c=a.Path,d=a.Uri,l=a.Env.host,o=l.navigator&&navigator.userAgent||"",e=a.startsWith,n=b.STATUS,g=n.ATTACHED,j=n.LOADED,i={},n=!!o.match(/AppleWebKit/),k=l.document,q=new d(l.location&&
-location.href||"");a.mix(i,{docHead:function(){return k.getElementsByTagName("head")[0]||k.documentElement},isWebKit:n,isGecko:!n&&!!o.match(/Gecko/),isPresto:!!o.match(/Presto/),IE:!!o.match(/MSIE/),normalDepModuleName:function(b,d){var k=0;if(!d)return d;if(a.isArray(d)){for(;k<d.length;k++)d[k]=i.normalDepModuleName(b,d[k]);return d}return e(d,"../")||e(d,"./")?c.resolve(c.dirname(b),d):c.normalize(d)},removeExtname:function(a){return a.replace(/(-min)?\.js$/i,"")},resolveByPage:function(a){return q.resolve(a)},
-createModulesInfo:function(b,d){a.each(d,function(a){i.createModuleInfo(b,a)})},createModuleInfo:function(d,c,i){var c=h(c),e=d.Env.mods,k=e[c];return k?k:e[c]=k=new b.Module(a.mix({name:c,runtime:d},i))},isAttached:function(a,b){return f(a,b,g)},isLoaded:function(a,b){return f(a,b,j)},getModules:function(b,d){var c=[b],e,k,l,f,j=b.Env.mods;a.each(d,function(d){e=j[d];if(!e||"css"!=e.getType())k=i.unalias(b,d),(l=a.reduce(k,function(a,b){f=j[b];return a&&f&&f.status==g},!0))?c.push(j[k[0]].value):
-c.push(null)});return c},attachMod:function(b,d){if(d.status==j){var c=d.fn;c&&(c=a.isFunction(c)?c.apply(d,i.getModules(b,d.getRequiresWithAlias())):c,d.value=c);d.status=g;b.getLoader().fire("afterModAttached",{mod:d})}},getModNamesAsArray:function(a){"string"==typeof a&&(a=a.replace(/\s+/g,"").split(","));return a},normalizeModNames:function(a,b,d){return i.unalias(a,i.normalizeModNamesWithAlias(a,b,d))},unalias:function(a,b){for(var d=[].concat(b),c,i,e,k=0,g=a.Env.mods;!k;){k=1;for(c=d.length-
-1;0<=c;c--)if((i=g[d[c]])&&(e=i.alias))k=0,d.splice.apply(d,[c,1].concat(m(e)))}return d},normalizeModNamesWithAlias:function(a,b,d){var a=[],c,e;if(b){c=0;for(e=b.length;c<e;c++)b[c]&&a.push(m(b[c]))}d&&(a=i.normalDepModuleName(d,a));return a},registerModule:function(b,d,c,e){var k=b.Env.mods,g=k[d];if(!g||!g.fn)i.createModuleInfo(b,d),g=k[d],a.mix(g,{name:d,status:j}),g.fn=c,a.mix(k[d]=g,e)},getMappedPath:function(a,b,d){for(var a=d||a.Config.mappedRules||[],c,d=0;d<a.length;d++)if(c=a[d],b.match(c[0]))return b.replace(c[0],
+(function(a){function l(a,c){for(var d=0,j=a.length-1;0<=j;j--){var f=a[j];"."==f?a.splice(j,1):".."===f?(a.splice(j,1),d++):d&&(a.splice(j,1),d--)}if(c)for(;d--;d)a.unshift("..");return a}var g=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/,f={resolve:function(){var b="",c,d=a.makeArray(arguments),j,f=0;for(c=d.length-1;0<=c&&!f;c--)j=d[c],"string"==typeof j&&j&&(b=j+"/"+b,f="/"==j.charAt(0));b=l(a.filter(b.split("/"),function(a){return!!a}),!f).join("/");return(f?"/":"")+b||"."},
+normalize:function(b){var c="/"==b.charAt(0),d="/"==b.slice(-1),b=l(a.filter(b.split("/"),function(a){return!!a}),!c).join("/");!b&&!c&&(b=".");b&&d&&(b+="/");return(c?"/":"")+b},join:function(){var b=a.makeArray(arguments);return f.normalize(a.filter(b,function(a){return a&&"string"==typeof a}).join("/"))},relative:function(b,c){var b=f.normalize(b),c=f.normalize(c),d=a.filter(b.split("/"),function(a){return!!a}),j=[],g,h,l=a.filter(c.split("/"),function(a){return!!a});h=Math.min(d.length,l.length);
+for(g=0;g<h&&d[g]==l[g];g++);for(h=g;g<d.length;)j.push(".."),g++;j=j.concat(l.slice(h));return j=j.join("/")},basename:function(a,c){var d=a.match(g)||[],d=d[3]||"";c&&d&&d.slice(-1*c.length)==c&&(d=d.slice(0,-1*c.length));return d},dirname:function(a){var c=a.match(g)||[],a=c[1]||"",c=c[2]||"";if(!a&&!c)return".";c&&(c=c.substring(0,c.length-1));return a+c},extname:function(a){return(a.match(g)||[])[4]||""}};a.Path=f})(KISSY);
+(function(a,l){function g(b){b._queryMap||(b._queryMap=a.unparam(b._query))}function f(a){this._query=a||""}function b(a,b){return encodeURI(a).replace(b,function(a){a=a.charCodeAt(0).toString(16);return"%"+(1==a.length?"0"+a:a)})}function c(b){if(b instanceof c)return b.clone();var d,m=this;a.mix(m,{scheme:"",userInfo:"",hostname:"",port:"",path:"",query:"",fragment:""});d=(b||"").match(o)||[];a.each(k,function(b,i){var c=d[b]||"";"query"==i?m.query=new f(c):m[i]=a.urlDecode(c)});return l}var d=
+/[#\/\?@]/g,j=/[#\?]/g,n=/[#@]/g,h=/#/g,o=RegExp("^(?:([\\w\\d+.-]+):)?(?://(?:([^/?#@]*)@)?([\\w\\d\\-\\u0100-\\uffff.+%]*|\\[[^\\]]+\\])(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),e=a.Path,k={scheme:1,userInfo:2,hostname:3,port:4,path:5,query:6,fragment:7};f.prototype={constructor:f,clone:function(){return new f(this.toString())},reset:function(a){this._query=a||"";this._queryMap=0},count:function(){var b=0,d=this._queryMap,c;g(this);for(c in d)a.isArray(d[c])?b+=d[c].length:b++;return b},
+get:function(a){g(this);return a?this._queryMap[a]:this._queryMap},keys:function(){g(this);return a.keys(this._queryMap)},set:function(b,d){var c;g(this);c=this._queryMap;"string"==typeof b?this._queryMap[b]=d:(b instanceof f&&(b=b.get()),a.each(b,function(a,b){c[b]=a}));return this},remove:function(a){g(this);a?delete this._queryMap[a]:this._queryMap={};return this},add:function(b,d){var c=this,p,e;a.isObject(b)?(b instanceof f&&(b=b.get()),a.each(b,function(a,b){c.add(b,a)})):(g(c),p=c._queryMap,
+e=p[b],e=e===l?d:[].concat(e).concat(d),p[b]=e);return c},toString:function(b){g(this);return a.param(this._queryMap,l,l,b)}};c.prototype={constructor:c,clone:function(){var b=new c,d=this;a.each(k,function(a,c){b[c]=d[c]});b.query=b.query.clone();return b},resolve:function(b){"string"==typeof b&&(b=new c(b));var d=0,m,p=this.clone();a.each("scheme,userInfo,hostname,port,path,query,fragment".split(","),function(c){if(c=="path")if(d)p[c]=b[c];else{if(c=b.path){d=1;if(!a.startsWith(c,"/"))if(p.hostname&&
+!p.path)c="/"+c;else if(p.path){m=p.path.lastIndexOf("/");m!=-1&&(c=p.path.slice(0,m+1)+c)}p.path=e.normalize(c)}}else if(c=="query"){if(d||b.query.toString()){p.query=b.query.clone();d=1}}else if(d||b[c]){p[c]=b[c];d=1}});return p},getScheme:function(){return this.scheme},setScheme:function(a){this.scheme=a;return this},getHostname:function(){return this.hostname},setHostname:function(a){this.hostname=a;return this},setUserInfo:function(a){this.userInfo=a;return this},getUserInfo:function(){return this.userInfo},
+setPort:function(a){this.port=a;return this},getPort:function(){return this.port},setPath:function(a){this.path=a;return this},getPath:function(){return this.path},setQuery:function(d){"string"==typeof d&&(a.startsWith(d,"?")&&(d=d.slice(1)),d=new f(b(d,n)));this.query=d;return this},getQuery:function(){return this.query},getFragment:function(){return this.fragment},setFragment:function(b){a.startsWith(b,"#")||(b="#"+b);this.fragment=b;return this},hasSameDomainAs:function(a){return this.hostname.toLowerCase()==
+a.hostname.toLowerCase()&&this.scheme.toLowerCase()==a.scheme.toLowerCase()&&this.port.toLowerCase()==a.port.toLowerCase()},toString:function(c){var f=[],m,p;if(m=this.scheme)f.push(b(m,d)),f.push(":");if(m=this.hostname){f.push("//");if(p=this.userInfo)f.push(b(p,d)),f.push("@");f.push(encodeURIComponent(m));if(p=this.port)f.push(":"),f.push(p)}if(p=this.path)m&&!a.startsWith(p,"/")&&(p="/"+p),p=e.normalize(p),f.push(b(p,j));if(c=this.query.toString.call(this.query,c))f.push("?"),f.push(c);if(c=
+this.fragment)f.push("#"),f.push(b(c,h));return f.join("")}};c.Query=f;a.Uri=c})(KISSY);(function(a){var l=a.Env,g=l.host,f=g.document||{},b=(g.navigator||{}).userAgent||"",c="ontouchstart"in f&&!/PhantomJS/.test(b),f=f.documentMode,d=(l.nodejs&&"object"===typeof global?global:g).JSON;f&&9>f&&(d=0);a.Features={isTouchSupported:function(){return c},isNativeJSONSupported:function(){return d}}})(KISSY);
+(function(){function a(a){this.runtime=a}a.STATUS={INIT:0,LOADING:1,LOADED:2,ERROR:3,ATTACHED:4};KISSY.Loader=a})(KISSY);
+(function(a){function l(a,b,c){a=a[g]||(a[g]={});c&&(a[b]=a[b]||[]);return a[b]}a.namespace("Loader");var g="__events__"+a.now();KISSY.Loader.Target={on:function(a,b){l(this,a,1).push(b)},detach:function(f,b){var c,d;if(f){if(c=l(this,f))b&&(d=a.indexOf(b,c),-1!=d&&c.splice(d,1)),(!b||!c.length)&&delete (this[g]||(this[g]={}))[f]}else delete this[g]},fire:function(f,b){var c=l(this,f);a.each(c,function(a){a.call(null,b)})}}})(KISSY);
+(function(a){function l(b){if(a.isArray(b)){for(var d=[],c=0;c<b.length;c++)d[c]=g(b[c]);return d}return g(b)}function g(b){a.endsWith(c.basename(b),"/")&&(b+="index");return b}function f(b,d,c){var b=b.Env.mods,i,d=a.makeArray(d);for(i=0;i<d.length;i++){var e=b[d[i]];if(!e||e.status!==c)return!1}return!0}var b=a.Loader,c=a.Path,d=a.Uri,j=a.Env.host,n=j.navigator&&navigator.userAgent||"",h=a.startsWith,o=b.STATUS,e=o.ATTACHED,k=o.LOADED,i={},o=!!n.match(/AppleWebKit/),q=j.document,m=new d(j.location&&
+location.href||"");a.mix(i,{docHead:function(){return q.getElementsByTagName("head")[0]||q.documentElement},isWebKit:o,isGecko:!o&&!!n.match(/Gecko/),isPresto:!!n.match(/Presto/),IE:!!n.match(/MSIE/),normalDepModuleName:function(b,d){var e=0;if(!d)return d;if(a.isArray(d)){for(;e<d.length;e++)d[e]=i.normalDepModuleName(b,d[e]);return d}return h(d,"../")||h(d,"./")?c.resolve(c.dirname(b),d):c.normalize(d)},removeExtname:function(a){return a.replace(/(-min)?\.js$/i,"")},resolveByPage:function(a){return m.resolve(a)},
+createModulesInfo:function(b,d){a.each(d,function(a){i.createModuleInfo(b,a)})},createModuleInfo:function(d,c,i){var c=g(c),e=d.Env.mods,m=e[c];return m?m:e[c]=m=new b.Module(a.mix({name:c,runtime:d},i))},isAttached:function(a,b){return f(a,b,e)},isLoaded:function(a,b){return f(a,b,k)},getModules:function(b,d){var c=[b],m,j,f,h,k=b.Env.mods;a.each(d,function(d){m=k[d];if(!m||"css"!=m.getType())j=i.unalias(b,d),(f=a.reduce(j,function(a,b){h=k[b];return a&&h&&h.status==e},!0))?c.push(k[j[0]].value):
+c.push(null)});return c},attachMod:function(b,d){if(d.status==k){var c=d.fn;c&&(c=a.isFunction(c)?c.apply(d,i.getModules(b,d.getRequiresWithAlias())):c,d.value=c);d.status=e;b.getLoader().fire("afterModAttached",{mod:d})}},getModNamesAsArray:function(a){"string"==typeof a&&(a=a.replace(/\s+/g,"").split(","));return a},normalizeModNames:function(a,b,d){return i.unalias(a,i.normalizeModNamesWithAlias(a,b,d))},unalias:function(a,b){for(var d=[].concat(b),c,i,e,m=0,j=a.Env.mods;!m;){m=1;for(c=d.length-
+1;0<=c;c--)if((i=j[d[c]])&&(e=i.alias))m=0,d.splice.apply(d,[c,1].concat(l(e)))}return d},normalizeModNamesWithAlias:function(a,b,d){var a=[],c,e;if(b){c=0;for(e=b.length;c<e;c++)b[c]&&a.push(l(b[c]))}d&&(a=i.normalDepModuleName(d,a));return a},registerModule:function(b,d,c,e){var m=b.Env.mods,j=m[d];if(!j||!j.fn)i.createModuleInfo(b,d),j=m[d],a.mix(j,{name:d,status:k}),j.fn=c,a.mix(m[d]=j,e)},getMappedPath:function(a,b,d){for(var a=d||a.Config.mappedRules||[],c,d=0;d<a.length;d++)if(c=a[d],b.match(c[0]))return b.replace(c[0],
c[1]);return b}});b.Utils=i})(KISSY);
-(function(a){function m(b){a.mix(this,b)}function h(d){this.status=b.STATUS.INIT;a.mix(this,d)}var f=a.Path,b=a.Loader,c=b.Utils;a.augment(m,{getTag:function(){return this.tag||this.runtime.Config.tag},getName:function(){return this.name},getBase:function(){return this.base||this.runtime.Config.base},getBaseUri:function(){return this.baseUri||this.runtime.Config.baseUri},isDebug:function(){var a=this.debug;return void 0===a?this.runtime.Config.debug:a},getCharset:function(){return this.charset||this.runtime.Config.charset},
-isCombine:function(){var a=this.combine;return void 0===a?this.runtime.Config.combine:a}});b.Package=m;a.augment(h,{setValue:function(a){this.value=a},getType:function(){var a;if(void 0===(a=this.type))this.type=a=".css"==f.extname(this.name).toLowerCase()?"css":"js";return a},getFullPath:function(){var a,b;this.fullpath||(b=this.getPackage().getBaseUri(),b=b.resolve(this.getPath()),(a=this.getTag())&&b.query.set("t",a),this.fullpath=c.getMappedPath(this.runtime,b.toString()));return this.fullpath},
-getPath:function(){var a;if(!(a=this.path)){a=this.name;var b=(f.extname(a)||"").toLowerCase(),c="-min";".css"!=b&&(b=".js");a=f.join(f.dirname(a),f.basename(a,b));this.getPackage().isDebug()&&(c="");a=this.path=a+c+b}return a},getValue:function(){return this.value},getName:function(){return this.name},getPackage:function(){var b;if(!(b=this.packageInfo)){b=this.name;var c=this.runtime.Config.packages||{},f="",e;for(e in c)a.startsWith(b,e)&&e.length>f.length&&(f=e);b=this.packageInfo=c[f]}return b},
+(function(a){function l(b){a.mix(this,b)}function g(d){this.status=b.STATUS.INIT;a.mix(this,d)}var f=a.Path,b=a.Loader,c=b.Utils;a.augment(l,{getTag:function(){return this.tag||this.runtime.Config.tag},getName:function(){return this.name},getBase:function(){return this.base||this.runtime.Config.base},getBaseUri:function(){return this.baseUri||this.runtime.Config.baseUri},isDebug:function(){var a=this.debug;return void 0===a?this.runtime.Config.debug:a},getCharset:function(){return this.charset||this.runtime.Config.charset},
+isCombine:function(){var a=this.combine;return void 0===a?this.runtime.Config.combine:a}});b.Package=l;a.augment(g,{setValue:function(a){this.value=a},getType:function(){var a;if(void 0===(a=this.type))this.type=a=".css"==f.extname(this.name).toLowerCase()?"css":"js";return a},getFullPath:function(){var a,b;this.fullpath||(b=this.getPackage().getBaseUri(),b=b.resolve(this.getPath()),(a=this.getTag())&&b.query.set("t",a),this.fullpath=c.getMappedPath(this.runtime,b.toString()));return this.fullpath},
+getPath:function(){var a;if(!(a=this.path)){a=this.name;var b=(f.extname(a)||"").toLowerCase(),c="-min";".css"!=b&&(b=".js");a=f.join(f.dirname(a),f.basename(a,b));this.getPackage().isDebug()&&(c="");a=this.path=a+c+b}return a},getValue:function(){return this.value},getName:function(){return this.name},getPackage:function(){var b;if(!(b=this.packageInfo)){b=this.name;var c=this.runtime.Config.packages||{},f="",h;for(h in c)a.startsWith(b,h)&&h.length>f.length&&(f=h);b=this.packageInfo=c[f]}return b},
getTag:function(){return this.tag||this.getPackage().getTag()},getCharset:function(){return this.charset||this.getPackage().getCharset()},getRequiredMods:function(){var b=this.runtime.Env.mods;return a.map(this.getNormalizedRequires(),function(a){return b[a]})},getRequiresWithAlias:function(){var a=this.requiresWithAlias,b=this.requires;if(!b||0==b.length)return b||[];a||(this.requiresWithAlias=a=c.normalizeModNamesWithAlias(this.runtime,b,this.name));return a},getNormalizedRequires:function(){var a,
-b=this.normalizedRequiresStatus,f=this.status,e=this.requires;if(!e||0==e.length)return e||[];if((a=this.normalizedRequires)&&b==f)return a;this.normalizedRequiresStatus=f;return this.normalizedRequires=c.normalizeModNames(this.runtime,e,this.name)}});b.Module=h})(KISSY);
-(function(a){function m(){var d=c[url],l=d.node,o,e=0;if(f.isWebKit)l.sheet&&(e=1);else if(l.sheet)try{l.sheet.cssRules&&(e=1)}catch(n){o=n.name,"NS_ERROR_DOM_SECURITY_ERR"==o&&(e=1)}e&&(d.callback&&d.callback.call(l),delete c[url]);b=a.isEmptyObject(c)?0:setTimeout(m,h)}var h=30,f=a.Loader.Utils,b=0,c={};a.mix(f,{pollCss:function(a,f){var h;h=c[a.href]={};h.node=a;h.callback=f;b||m()}})})(KISSY);
-(function(a){var m=a.Env.host.document,h=a.Loader.Utils,f=a.Path,b={};a.mix(a,{getScript:function(c,d,l){var o=h.resolveByPage(c).toString(),e=d,n=0,g,j,i;a.startsWith(f.extname(c).toLowerCase(),".css")&&(n=1);a.isPlainObject(e)&&(d=e.success,g=e.error,j=e.timeout,l=e.charset);e=b[o]=b[o]||[];e.push([d,g]);if(1<e.length)return e.node;var d=h.docHead(),k=m.createElement(n?"link":"script");n?(k.href=c,k.rel="stylesheet"):(k.src=c,k.async=!0);e.node=k;l&&(k.charset=l);var q=function(c){var d=c?1:0;if(i){i.cancel();
-i=void 0}a.each(b[o],function(a){a[d]&&a[d].call(k)});delete b[o]};"onload"in k||!n?(k.onload=k.onreadystatechange=function(){var a=k.readyState;if(!a||a=="loaded"||a=="complete"){k.onreadystatechange=k.onload=null;q(0)}},k.onerror=function(){k.onerror=null;g(1)}):h.pollCss(k,function(){q(0)});j&&(i=a.later(function(){q(1)},1E3*j));n?d.appendChild(k):d.insertBefore(k,d.firstChild);return k}})})(KISSY);
-(function(a){var m=a.Loader,h=m.Utils,f=a.Config.fns;f.map=function(a){var c=this.Config;return!1===a?c.mappedRules=[]:c.mappedRules=(c.mappedRules||[]).concat(a||[])};f.mapCombo=function(a){var c=this.Config;return!1===a?c.mappedComboRules=[]:c.mappedComboRules=(c.mappedComboRules||[]).concat(a||[])};f.packages=function(b){var c,d,f=this.Config,o=f.packages=f.packages||{};if(b)a.each(b,function(b,f){c=b.name||f;d=b.base||b.path;a.Env.nodejs&&!a.startsWith(d,"file:")&&(d="file:"+d);a.endsWith(d,"/")||
-(d+="/");b.name=c;var g=h.resolveByPage(d);b.base=g.toString();b.baseUri=g;b.runtime=a;delete b.path;o[c]=new m.Package(b)});else if(!1===b)f.packages={"":f.packages[""]};else return o};f.modules=function(b){var c=this,d=c.Env;b?a.each(b,function(b,f){h.createModuleInfo(c,f,b);a.mix(d.mods[f],b)}):!1===b&&(d.mods={})};f.base=function(b){var c=this.Config;if(!b)return c.base;a.Env.nodejs&&!a.startsWith(b,"file:")&&(b="file:"+b);b=h.resolveByPage(b);c.base=b.toString();c.baseUri=b;this.config("packages",
+b=this.normalizedRequiresStatus,f=this.status,h=this.requires;if(!h||0==h.length)return h||[];if((a=this.normalizedRequires)&&b==f)return a;this.normalizedRequiresStatus=f;return this.normalizedRequires=c.normalizeModNames(this.runtime,h,this.name)}});b.Module=g})(KISSY);
+(function(a){function l(){for(var d in c){var j=c[d],n=j.node,h,o=0;if(f.isWebKit)n.sheet&&(o=1);else if(n.sheet)try{n.sheet.cssRules&&(o=1)}catch(e){h=e.name,"NS_ERROR_DOM_SECURITY_ERR"==h&&(o=1)}o&&(j.callback&&j.callback.call(n),delete c[d])}b=a.isEmptyObject(c)?0:setTimeout(l,g)}var g=30,f=a.Loader.Utils,b=0,c={};a.mix(f,{pollCss:function(a,f){var g;g=c[a.href]={};g.node=a;g.callback=f;b||l()}})})(KISSY);
+(function(a){var l=a.Env.host.document,g=a.Loader.Utils,f=a.Path,b={},c=536>Number(navigator.userAgent.replace(/.*AppleWebKit\/(\d+)\..*/,"$1"));a.mix(a,{getScript:function(d,j,n){var h=g.resolveByPage(d).toString(),o=j,e=0,k,i,q;a.startsWith(f.extname(d).toLowerCase(),".css")&&(e=1);a.isPlainObject(o)&&(j=o.success,k=o.error,i=o.timeout,n=o.charset);o=b[h]=b[h]||[];o.push([j,k]);if(1<o.length)return o.node;var j=g.docHead(),m=l.createElement(e?"link":"script");e?(m.href=d,m.rel="stylesheet"):(m.src=
+d,m.async=!0);o.node=m;n&&(m.charset=n);var p=function(c){var d=c?1:0;if(q){q.cancel();q=void 0}a.each(b[h],function(a){a[d]&&a[d].call(m)});delete b[h]},d=!e;e&&(d=c?!1:"onload"in m);d?(m.onload=m.onreadystatechange=function(){var a=m.readyState;if(!a||a=="loaded"||a=="complete"){m.onreadystatechange=m.onload=null;p(0)}},m.onerror=function(){m.onerror=null;k(1)}):g.pollCss(m,function(){p(0)});i&&(q=a.later(function(){p(1)},1E3*i));e?j.appendChild(m):j.insertBefore(m,j.firstChild);return m}})})(KISSY);
+(function(a){var l=a.Loader,g=l.Utils,f=a.Config.fns;f.map=function(a){var c=this.Config;return!1===a?c.mappedRules=[]:c.mappedRules=(c.mappedRules||[]).concat(a||[])};f.mapCombo=function(a){var c=this.Config;return!1===a?c.mappedComboRules=[]:c.mappedComboRules=(c.mappedComboRules||[]).concat(a||[])};f.packages=function(b){var c,d,f=this.Config,n=f.packages=f.packages||{};if(b)a.each(b,function(b,f){c=b.name||f;d=b.base||b.path;a.Env.nodejs&&!a.startsWith(d,"file:")&&(d="file:"+d);a.endsWith(d,"/")||
+(d+="/");b.name=c;var e=g.resolveByPage(d);b.base=e.toString();b.baseUri=e;b.runtime=a;delete b.path;n[c]=new l.Package(b)});else if(!1===b)f.packages={"":f.packages[""]};else return n};f.modules=function(b){var c=this,d=c.Env;b?a.each(b,function(b,f){g.createModuleInfo(c,f,b);a.mix(d.mods[f],b)}):!1===b&&(d.mods={})};f.base=function(b){var c=this.Config;if(!b)return c.base;a.Env.nodejs&&!a.startsWith(b,"file:")&&(b="file:"+b);b=g.resolveByPage(b);c.base=b.toString();c.baseUri=b;this.config("packages",
{"":{base:a.config("base")}})}})(KISSY);
-(function(a,m){var h=a.Loader,f=a.Path,b=h.Utils;a.augment(h,h.Target,{__currentModule:null,__startLoadTime:0,__startLoadModuleName:null,add:function(c,d,l){var h=this.runtime,e,n=h.Env.mods;if(a.isPlainObject(c))return h.config({modules:c});if("string"==typeof c)b.registerModule(h,c,d,l),d=n[c],l&&!1===l.attach||(l&&(e=d.getNormalizedRequires()),(!e||b.isAttached(h,e))&&b.attachMod(h,d));else if(a.isFunction(c))if(l=d,d=c,b.IE){e=this.runtime;for(var c=a.Env.host.document.getElementsByTagName("script"),g,
-j,n=0;n<c.length;n++)if(j=c[n],&quo