Skip to content
Browse files

new release

  • Loading branch information...
1 parent 3f4c212 commit 1daf0e0de3197ac472af55d5cf98264ebff19a58 @andrewplummer committed Jul 22, 2011
Showing with 111 additions and 0 deletions.
  1. +2 −0 CHANGELOG
  2. +109 −0 release/sugar-0.9.1.min.js
View
2 CHANGELOG
@@ -4,4 +4,6 @@
- Use of defineProperty in modern browsers to prevent enumeration in for..in loops.
- Add test for for..in loop breakage and allowed older browsers to have a "warning" message.
- Object.isArray will now alias native Array.isArray if it is present.
+- Fix collisions with Prototype on Object.clone.
+- Test cleanup.
View
109 release/sugar-0.9.1.min.js
@@ -0,0 +1,109 @@
+/*
+ * Sugar Library v0.9
+ *
+ * Freely distributable and licensed under the MIT-style license.
+ * Copyright (c) 2011 Andrew Plummer
+ * http://sugarjs.com/
+ *
+ * ---------------------------- */
+(function(){var k=function(a,b,c){for(var d in c)if(c.hasOwnProperty(d)&&(b?!a.prototype[d]:!a[d]))b?j(a.prototype,d,c[d]):j(a,d,c[d])},s=function(a,b,c,d){var e=b?a.prototype:a;q(d,function(f,g){j(e,f,Y(e[f],g,c))})},Y=function(a,b,c){return function(){return a&&(c===true||c.apply(this,arguments))?a.apply(this,arguments):b.apply(this,arguments)}},j=function(a,b,c){if(Object.defineProperty&&Object.defineProperties)Object.defineProperty(a,b,{value:c,configurable:true,enumerable:false,writeable:true});
+else a[b]=c},t=function(a){if(typeof a[0]==="object")return a;else if(a.length==1&&Object.isNumber(a[0]))return[a[0]];for(var b={},c=Array.prototype.slice.call(arguments,1),d=0;d<a.length;d++)b[c[d]]=a[d];return[b]},y=function(a,b){if(typeof a=="object"&&typeof b=="object"){var c=false,d;for(d in a)if(a.hasOwnProperty(d)){if(!y(a[d],b[d]))return false;c=true}if(!c)for(d in b)if(b.hasOwnProperty(d))return false;return true}else return a===b},n=function(a,b,c,d){return Object.isRegExp(b)?b.test(a):
+Object.isFunction(b)?b.apply(c,[a].concat(d)):typeof b==="object"?y(b,a):b!==undefined?b===a:!!a},u=function(a,b,c,d){return Object.isFunction(b)?b.apply(c,[a].concat(d)):b===undefined?a:typeof a[b]=="function"?a[b].call(a):a[b]},z=function(a,b,c){var d=b==="max";b=b==="min";var e=d?-Infinity:Infinity,f=[],g;for(g in a)if(a.hasOwnProperty(g)){var h=a[g],i=u(h,c);if(!(i===undefined||i===null))if(i===e)f.push(h);else if(d&&i>e||b&&i<e){f=[h];e=i}}return f},L=function(a,b,c){var d=b[b.length-1]!==false,
+e=[],f,g;for(g=0;g<b.length;g++){f=b[g];if(f===true||f===false)break;if(d){f%=a.length;if(f<0)f=a.length+f}if(f>=0&&f<a.length)e.push(c?a.charAt(f):a[f])}return e.length==0?c?"":null:e.length==1?e[0]:e},I=function(a,b){return Object.prototype.toString.call(a)==="[object "+b+"]"},A=function(a){var b=Object.isArray(a)?[]:Object.extended({});q(a,function(c,d){b[c]=Object.isObject(d)||Object.isArray(d)?A(d):d});return b},v=function(a){var b=this;q(a,function(c,d){b[c]=d})};v.prototype.constructor=Object;
+var M=["Array","Boolean","Date","Function","Number","String","RegExp"],N=["keys","values","each","merge","isEmpty","equals"],q=function(a,b){var c=0,d;for(d in a)if(a.hasOwnProperty(d)){b.call(a,d,a[d],c);c++}};k(Object,false,{extended:function(a){return new v(a)}});k(Object,false,{isObject:function(a){return a===null||a===undefined||arguments.length===0?false:I(a,"Object")&&a.constructor===Object},each:function(a,b){q(a,function(c,d){b&&b.call(a,c,d,a)});return a},merge:function(){for(var a=arguments[0],
+b=1;b<arguments.length;b++){var c=arguments[b],d;for(d in c)if(c.hasOwnProperty(d))a[d]=c[d]}return a},isEmpty:function(a){return y(a,{})},equals:function(a,b){return y(a,b)}});s(Object,false,function(){return arguments.length==1},{keys:function(a,b){var c=[];q(a,function(d){c.push(d);b&&b.call(a,d)});return c},values:function(a,b){var c=[];q(a,function(d,e){c.push(e);b&&b.call(a,e)});return c}});RegExp.NPCGSupport=/()??/.exec("")[1]===undefined;k(RegExp,false,{escape:function(a){return a.replace(/([/'*+?|()\[\]{}.^$])/g,
+"\\$1")}});k(RegExp,true,{setFlags:function(a){return RegExp(this.source,a)},addFlag:function(a){var b="";if(this.global||a=="g")b+="g";if(this.ignoreCase||a=="i")b+="i";if(this.multiline||a=="m")b+="m";if(this.sticky||a=="y")b+="y";return this.setFlags(b)},removeFlag:function(a){var b="";if(this.global&&a!="g")b+="g";if(this.ignoreCase&&a!="i")b+="i";if(this.multiline&&a!="m")b+="m";if(this.sticky&&a!="y")b+="y";return this.setFlags(b)}});var J=function(a,b,c){c=Math[c];var d=Math.pow(10,Math.abs(b||
+0));if(b<0)d=1/d;return c(a*d)/d},Z=function(a,b){var c=function(){return Math.round(this*b)},d=function(){return O(this,arguments,a,"rewind")},e=function(){return O(this,arguments,a,"advance")};j(Number.prototype,a,c);j(Number.prototype,a+"s",c);j(Number.prototype,a+"Before",d);j(Number.prototype,a+"sBefore",d);j(Number.prototype,a+"Ago",d);j(Number.prototype,a+"sAgo",d);j(Number.prototype,a+"After",e);j(Number.prototype,a+"sAfter",e);j(Number.prototype,a+"FromNow",e);j(Number.prototype,a+"sFromNow",
+e)};k(Number,false,{random:function(a,b){if(arguments.length==1){b=a;a=0}min=Math.min(a||0,b||1);max=Math.max(a||0,b||1);return Math.round(Math.random()*(max-min)+min)}});k(Number,true,{toNumber:function(){return parseFloat(this,10)},ceil:function(a){return J(this,a,"ceil")},floor:function(a){return J(this,a,"floor")},abs:function(){return Math.abs(this)},pow:function(a){if(a===undefined||a==null)a=1;return Math.pow(this,a)},round:function(a){return J(this,a,"round")},chr:function(){return String.fromCharCode(this)},
+isOdd:function(){return!this.isMultipleOf(2)},isEven:function(){return this.isMultipleOf(2)},isMultipleOf:function(a){return this%a===0},upto:function(a,b){for(var c=[],d=parseInt(this);d<=a;d++){c.push(d);b&&b.call(this,d)}return c},downto:function(a,b){for(var c=[],d=parseInt(this);d>=a;d--){c.push(d);b&&b.call(this,d)}return c},times:function(a){if(a)for(var b=0;b<this;b++)a.call(this,b);return this.toNumber()},ordinalize:function(){var a;if(this>=11&&this<=13)a="th";else switch(this%10){case 1:a=
+"st";break;case 2:a="nd";break;case 3:a="rd";break;default:a="th"}return this.toString()+a},pad:function(a,b){var c=this.toNumber()===0?"":this.toString().replace(/^-/,"");c=c.padLeft(a-c.length,"0");if(b||this<0)c=(this<0?"-":"+")+c;return c},format:function(a,b){a=a||",";b=b||".";var c=this.toString().split("."),d=c[0];c=c.length>1?b+c[1]:"";for(var e=/(\d+)(\d{3})/;e.test(d);)d=d.replace(e,"$1"+a+"$2");return d+c},hex:function(){return this.toString(16)}});var o,w,B,C,$=[{base:"A",reg:/[A\u24b6\uff21\u00c0\u00c1\u00c2\u1ea6\u1ea4\u1eaa\u1ea8\u00c3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\u00c4\u01de\u1ea2\u00c5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f]/g},
+{base:"B",reg:/[B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181]/g},{base:"C",reg:/[C\u24b8\uff23\u0106\u0108\u010a\u010c\u00c7\u1e08\u0187\u023b\ua73e]/g},{base:"D",reg:/[D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779]/g},{base:"E",reg:/[E\u24ba\uff25\u00c8\u00c9\u00ca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\u00cb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e]/g},{base:"F",reg:/[F\u24bb\uff26\u1e1e\u0191\ua77b]/g},
+{base:"G",reg:/[G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e]/g},{base:"H",reg:/[H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d]/g},{base:"I",reg:/[I\u24be\uff29\u00cc\u00cd\u00ce\u0128\u012a\u012c\u0130\u00cf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197]/g},{base:"J",reg:/[J\u24bf\uff2a\u0134\u0248]/g},{base:"K",reg:/[K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2]/g},{base:"L",reg:/[L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780]/g},
+{base:"M",reg:/[M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c]/g},{base:"N",reg:/[N\u24c3\uff2e\u01f8\u0143\u00d1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4]/g},{base:"O",reg:/[O\u24c4\uff2f\u00d2\u00d3\u00d4\u1ed2\u1ed0\u1ed6\u1ed4\u00d5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\u00d6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\u00d8\u01fe\u0186\u019f\ua74a\ua74c]/g},{base:"P",reg:/[P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754]/g},
+{base:"Q",reg:/[Q\u24c6\uff31\ua756\ua758\u024a]/g},{base:"R",reg:/[R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782]/g},{base:"S",reg:/[S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784]/g},{base:"T",reg:/[T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786]/g},{base:"U",reg:/[U\u24ca\uff35\u00d9\u00da\u00db\u0168\u1e78\u016a\u1e7a\u016c\u00dc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244]/g},
+{base:"V",reg:/[V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245]/g},{base:"W",reg:/[W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72]/g},{base:"X",reg:/[X\u24cd\uff38\u1e8a\u1e8c]/g},{base:"Y",reg:/[Y\u24ce\uff39\u1ef2\u00dd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe]/g},{base:"Z",reg:/[Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762]/g},{base:"a",reg:/[a\u24d0\uff41\u1e9a\u00e0\u00e1\u00e2\u1ea7\u1ea5\u1eab\u1ea9\u00e3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\u00e4\u01df\u1ea3\u00e5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250]/g},
+{base:"b",reg:/[b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253]/g},{base:"c",reg:/[c\u24d2\uff43\u0107\u0109\u010b\u010d\u00e7\u1e09\u0188\u023c\ua73f\u2184]/g},{base:"d",reg:/[d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a]/g},{base:"e",reg:/[e\u24d4\uff45\u00e8\u00e9\u00ea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\u00eb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd]/g},{base:"f",reg:/[f\u24d5\uff46\u1e1f\u0192\ua77c]/g},
+{base:"g",reg:/[g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f]/g},{base:"h",reg:/[h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265]/g},{base:"i",reg:/[i\u24d8\uff49\u00ec\u00ed\u00ee\u0129\u012b\u012d\u00ef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131]/g},{base:"j",reg:/[j\u24d9\uff4a\u0135\u01f0\u0249]/g},{base:"k",reg:/[k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3]/g},{base:"l",
+reg:/[l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747]/g},{base:"m",reg:/[m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f]/g},{base:"n",reg:/[n\u24dd\uff4e\u01f9\u0144\u00f1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5]/g},{base:"o",reg:/[o\u24de\uff4f\u00f2\u00f3\u00f4\u1ed3\u1ed1\u1ed7\u1ed5\u00f5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\u00f6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\u00f8\u01ff\u0254\ua74b\ua74d\u0275]/g},
+{base:"p",reg:/[p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755]/g},{base:"q",reg:/[q\u24e0\uff51\u024b\ua757\ua759]/g},{base:"r",reg:/[r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783]/g},{base:"s",reg:/[s\u24e2\uff53\u00df\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b]/g},{base:"t",reg:/[t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787]/g},{base:"u",reg:/[u\u24e4\uff55\u00f9\u00fa\u00fb\u0169\u1e79\u016b\u1e7b\u016d\u00fc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289]/g},
+{base:"v",reg:/[v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c]/g},{base:"w",reg:/[w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73]/g},{base:"x",reg:/[x\u24e7\uff58\u1e8b\u1e8d]/g},{base:"y",reg:/[y\u24e8\uff59\u1ef3\u00fd\u0177\u1ef9\u0233\u1e8f\u00ff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff]/g},{base:"z",reg:/[z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763]/g},{base:"AA",reg:/[\ua732]/g},{base:"AE",reg:/[\u00c6\u01fc\u01e2]/g},{base:"AO",reg:/[\ua734]/g},{base:"AU",
+reg:/[\ua736]/g},{base:"AV",reg:/[\ua738\ua73a]/g},{base:"AY",reg:/[\ua73c]/g},{base:"DZ",reg:/[\u01f1\u01c4]/g},{base:"Dz",reg:/[\u01f2\u01c5]/g},{base:"LJ",reg:/[\u01c7]/g},{base:"Lj",reg:/[\u01c8]/g},{base:"NJ",reg:/[\u01ca]/g},{base:"Nj",reg:/[\u01cb]/g},{base:"OI",reg:/[\u01a2]/g},{base:"OO",reg:/[\ua74e]/g},{base:"OU",reg:/[\u0222]/g},{base:"TZ",reg:/[\ua728]/g},{base:"VY",reg:/[\ua760]/g},{base:"aa",reg:/[\ua733]/g},{base:"ae",reg:/[\u00e6\u01fd\u01e3]/g},{base:"ao",reg:/[\ua735]/g},{base:"au",
+reg:/[\ua737]/g},{base:"av",reg:/[\ua739\ua73b]/g},{base:"ay",reg:/[\ua73d]/g},{base:"dz",reg:/[\u01f3\u01c6]/g},{base:"hv",reg:/[\u0195]/g},{base:"lj",reg:/[\u01c9]/g},{base:"nj",reg:/[\u01cc]/g},{base:"oi",reg:/[\u01a3]/g},{base:"ou",reg:/[\u0223]/g},{base:"oo",reg:/[\ua74f]/g},{base:"tz",reg:/[\ua729]/g},{base:"vy",reg:/[\ua761]/g}],P=[{full:"\u3000",half:" ",type:"p"},{full:"\u3001",half:"\uff64",type:"p"},{full:"\u3002",half:"\uff61",type:"p"},{full:"\uff0c",half:",",type:"p"},{full:"\uff0e",
+half:".",type:"p"},{full:"\u30fb",half:"\uff65",type:"p"},{full:"\uff1a",half:":",type:"p"},{full:"\uff1b",half:";",type:"p"},{full:"\uff1f",half:"?",type:"p"},{full:"\uff01",half:"!",type:"p"},{full:"\u2018",half:"'",type:"p"},{full:"\u2019",half:"'",type:"p"},{full:"\u201c",half:'"',type:"p"},{full:"\u201d",half:'"',type:"p"},{full:"\u30fc",half:"\uff70",type:"p"},{full:"\uff5e",half:"~",type:"p"},{full:"\u309b",half:"\uff9e",type:"s"},{full:"\u309c",half:"\uff9f",type:"s"},{full:"\uff3e",half:"^",
+type:"s"},{full:"\u2010",half:"-",type:"s"},{full:"\uff0f",half:"/",type:"s"},{full:"\uff5c",half:"|",type:"s"},{full:"\uff08",half:"(",type:"s"},{full:"\uff09",half:")",type:"s"},{full:"\uff3b",half:"[",type:"s"},{full:"\uff3d",half:"]",type:"s"},{full:"\uff5b",half:"{",type:"s"},{full:"\uff5d",half:"}",type:"s"},{full:"\u300c",half:"\uff62",type:"s"},{full:"\u300d",half:"\uff63",type:"s"},{full:"\u3008",half:"<",type:"s"},{full:"\u3009",half:">",type:"s"},{full:"\u300a",half:"\u00ab",type:"s"},
+{full:"\u300b",half:"\u00bb",type:"s"},{full:"\uff0b",half:"+",type:"s"},{full:"\uff0d",half:"-",type:"s"},{full:"\uff1d",half:"=",type:"s"},{full:"\uff1c",half:"<",type:"s"},{full:"\uff1e",half:">",type:"s"},{full:"\u2103",half:"\u00b0C",type:"s"},{full:"\uffe5",half:"\u00a5",type:"s"},{full:"\uff04",half:"$",type:"s"},{full:"\uffe0",half:"\u00a2",type:"s"},{full:"\uffe1",half:"\u00a3",type:"s"},{full:"\uff05",half:"%",type:"s"},{full:"\uff03",half:"#",type:"s"},{full:"\uff06",half:"&",type:"s"},
+{full:"\uff0a",half:"*",type:"s"},{full:"\uff20",half:"@",type:"s"},{full:"\uff10",half:"0",type:"n"},{full:"\uff11",half:"1",type:"n"},{full:"\uff12",half:"2",type:"n"},{full:"\uff13",half:"3",type:"n"},{full:"\uff14",half:"4",type:"n"},{full:"\uff15",half:"5",type:"n"},{full:"\uff16",half:"6",type:"n"},{full:"\uff17",half:"7",type:"n"},{full:"\uff18",half:"8",type:"n"},{full:"\uff19",half:"9",type:"n"},{full:"\uff21",half:"A",type:"a"},{full:"\uff22",half:"B",type:"a"},{full:"\uff23",half:"C",type:"a"},
+{full:"\uff24",half:"D",type:"a"},{full:"\uff25",half:"E",type:"a"},{full:"\uff26",half:"F",type:"a"},{full:"\uff27",half:"G",type:"a"},{full:"\uff28",half:"H",type:"a"},{full:"\uff29",half:"I",type:"a"},{full:"\uff2a",half:"J",type:"a"},{full:"\uff2b",half:"K",type:"a"},{full:"\uff2c",half:"L",type:"a"},{full:"\uff2d",half:"M",type:"a"},{full:"\uff2e",half:"N",type:"a"},{full:"\uff2f",half:"O",type:"a"},{full:"\uff30",half:"P",type:"a"},{full:"\uff31",half:"Q",type:"a"},{full:"\uff32",half:"R",type:"a"},
+{full:"\uff33",half:"S",type:"a"},{full:"\uff34",half:"T",type:"a"},{full:"\uff35",half:"U",type:"a"},{full:"\uff36",half:"V",type:"a"},{full:"\uff37",half:"W",type:"a"},{full:"\uff38",half:"X",type:"a"},{full:"\uff39",half:"Y",type:"a"},{full:"\uff3a",half:"Z",type:"a"},{full:"\uff41",half:"a",type:"a"},{full:"\uff42",half:"b",type:"a"},{full:"\uff43",half:"c",type:"a"},{full:"\uff44",half:"d",type:"a"},{full:"\uff45",half:"e",type:"a"},{full:"\uff46",half:"f",type:"a"},{full:"\uff47",half:"g",type:"a"},
+{full:"\uff48",half:"h",type:"a"},{full:"\uff49",half:"i",type:"a"},{full:"\uff4a",half:"j",type:"a"},{full:"\uff4b",half:"k",type:"a"},{full:"\uff4c",half:"l",type:"a"},{full:"\uff4d",half:"m",type:"a"},{full:"\uff4e",half:"n",type:"a"},{full:"\uff4f",half:"o",type:"a"},{full:"\uff50",half:"p",type:"a"},{full:"\uff51",half:"q",type:"a"},{full:"\uff52",half:"r",type:"a"},{full:"\uff53",half:"s",type:"a"},{full:"\uff54",half:"t",type:"a"},{full:"\uff55",half:"u",type:"a"},{full:"\uff56",half:"v",type:"a"},
+{full:"\uff57",half:"w",type:"a"},{full:"\uff58",half:"x",type:"a"},{full:"\uff59",half:"y",type:"a"},{full:"\uff5a",half:"z",type:"a"},{full:"\u30a1",half:"\uff67",type:"k"},{full:"\u30a2",half:"\uff71",type:"k"},{full:"\u30a3",half:"\uff68",type:"k"},{full:"\u30a4",half:"\uff72",type:"k"},{full:"\u30a5",half:"\uff69",type:"k"},{full:"\u30a6",half:"\uff73",type:"k"},{full:"\u30a7",half:"\uff6a",type:"k"},{full:"\u30a8",half:"\uff74",type:"k"},{full:"\u30a9",half:"\uff6b",type:"k"},{full:"\u30aa",
+half:"\uff75",type:"k"},{full:"\u30ab",half:"\uff76",type:"k"},{full:"\u30ac",half:"\uff76\uff9e",type:"k"},{full:"\u30ad",half:"\uff77",type:"k"},{full:"\u30ae",half:"\uff77\uff9e",type:"k"},{full:"\u30af",half:"\uff78",type:"k"},{full:"\u30b0",half:"\uff78\uff9e",type:"k"},{full:"\u30b1",half:"\uff79",type:"k"},{full:"\u30b2",half:"\uff79\uff9e",type:"k"},{full:"\u30b3",half:"\uff7a",type:"k"},{full:"\u30b4",half:"\uff7a\uff9e",type:"k"},{full:"\u30b5",half:"\uff7b",type:"k"},{full:"\u30b6",half:"\uff7b\uff9e",
+type:"k"},{full:"\u30b7",half:"\uff7c",type:"k"},{full:"\u30b8",half:"\uff7c\uff9e",type:"k"},{full:"\u30b9",half:"\uff7d",type:"k"},{full:"\u30ba",half:"\uff7d\uff9e",type:"k"},{full:"\u30bb",half:"\uff7e",type:"k"},{full:"\u30bc",half:"\uff7e\uff9e",type:"k"},{full:"\u30bd",half:"\uff7f",type:"k"},{full:"\u30be",half:"\uff7f\uff9e",type:"k"},{full:"\u30bf",half:"\uff80",type:"k"},{full:"\u30c0",half:"\uff80\uff9e",type:"k"},{full:"\u30c1",half:"\uff81",type:"k"},{full:"\u30c2",half:"\uff81\uff9e",
+type:"k"},{full:"\u30c3",half:"\uff6f",type:"k"},{full:"\u30c4",half:"\uff82",type:"k"},{full:"\u30c5",half:"\uff82\uff9e",type:"k"},{full:"\u30c6",half:"\uff83",type:"k"},{full:"\u30c7",half:"\uff83\uff9e",type:"k"},{full:"\u30c8",half:"\uff84",type:"k"},{full:"\u30c9",half:"\uff84\uff9e",type:"k"},{full:"\u30ca",half:"\uff85",type:"k"},{full:"\u30cb",half:"\uff86",type:"k"},{full:"\u30cc",half:"\uff87",type:"k"},{full:"\u30cd",half:"\uff88",type:"k"},{full:"\u30ce",half:"\uff89",type:"k"},{full:"\u30cf",
+half:"\uff8a",type:"k"},{full:"\u30d0",half:"\uff8a\uff9e",type:"k"},{full:"\u30d1",half:"\uff8a\uff9f",type:"k"},{full:"\u30d2",half:"\uff8b",type:"k"},{full:"\u30d3",half:"\uff8b\uff9e",type:"k"},{full:"\u30d4",half:"\uff8b\uff9f",type:"k"},{full:"\u30d5",half:"\uff8c",type:"k"},{full:"\u30d6",half:"\uff8c\uff9e",type:"k"},{full:"\u30d7",half:"\uff8c\uff9f",type:"k"},{full:"\u30d8",half:"\uff8d",type:"k"},{full:"\u30d9",half:"\uff8d\uff9e",type:"k"},{full:"\u30da",half:"\uff8d\uff9f",type:"k"},
+{full:"\u30db",half:"\uff8e",type:"k"},{full:"\u30dc",half:"\uff8e\uff9e",type:"k"},{full:"\u30dd",half:"\uff8e\uff9f",type:"k"},{full:"\u30de",half:"\uff8f",type:"k"},{full:"\u30df",half:"\uff90",type:"k"},{full:"\u30e0",half:"\uff91",type:"k"},{full:"\u30e1",half:"\uff92",type:"k"},{full:"\u30e2",half:"\uff93",type:"k"},{full:"\u30e3",half:"\uff6c",type:"k"},{full:"\u30e4",half:"\uff94",type:"k"},{full:"\u30e5",half:"\uff6d",type:"k"},{full:"\u30e6",half:"\uff95",type:"k"},{full:"\u30e7",half:"\uff6e",
+type:"k"},{full:"\u30e8",half:"\uff96",type:"k"},{full:"\u30e9",half:"\uff97",type:"k"},{full:"\u30ea",half:"\uff98",type:"k"},{full:"\u30eb",half:"\uff99",type:"k"},{full:"\u30ec",half:"\uff9a",type:"k"},{full:"\u30ed",half:"\uff9b",type:"k"},{full:"\u30ef",half:"\uff9c",type:"k"},{full:"\u30f2",half:"\uff66",type:"k"},{full:"\u30f3",half:"\uff9d",type:"k"}],Q=[{hira:"\u3041",kata:"\u30a1"},{hira:"\u3042",kata:"\u30a2"},{hira:"\u3043",kata:"\u30a3"},{hira:"\u3044",kata:"\u30a4"},{hira:"\u3045",kata:"\u30a5"},
+{hira:"\u3046",kata:"\u30a6"},{hira:"\u3047",kata:"\u30a7"},{hira:"\u3048",kata:"\u30a8"},{hira:"\u3049",kata:"\u30a9"},{hira:"\u304a",kata:"\u30aa"},{hira:"\u304b",kata:"\u30ab"},{hira:"\u304c",kata:"\u30ac"},{hira:"\u304d",kata:"\u30ad"},{hira:"\u304e",kata:"\u30ae"},{hira:"\u304f",kata:"\u30af"},{hira:"\u3050",kata:"\u30b0"},{hira:"\u3051",kata:"\u30b1"},{hira:"\u3052",kata:"\u30b2"},{hira:"\u3053",kata:"\u30b3"},{hira:"\u3054",kata:"\u30b4"},{hira:"\u3055",kata:"\u30b5"},{hira:"\u3056",kata:"\u30b6"},
+{hira:"\u3057",kata:"\u30b7"},{hira:"\u3058",kata:"\u30b8"},{hira:"\u3059",kata:"\u30b9"},{hira:"\u305a",kata:"\u30ba"},{hira:"\u305b",kata:"\u30bb"},{hira:"\u305c",kata:"\u30bc"},{hira:"\u305d",kata:"\u30bd"},{hira:"\u305e",kata:"\u30be"},{hira:"\u305f",kata:"\u30bf"},{hira:"\u3060",kata:"\u30c0"},{hira:"\u3061",kata:"\u30c1"},{hira:"\u3062",kata:"\u30c2"},{hira:"\u3063",kata:"\u30c3"},{hira:"\u3064",kata:"\u30c4"},{hira:"\u3065",kata:"\u30c5"},{hira:"\u3066",kata:"\u30c6"},{hira:"\u3067",kata:"\u30c7"},
+{hira:"\u3068",kata:"\u30c8"},{hira:"\u3069",kata:"\u30c9"},{hira:"\u306a",kata:"\u30ca"},{hira:"\u306b",kata:"\u30cb"},{hira:"\u306c",kata:"\u30cc"},{hira:"\u306d",kata:"\u30cd"},{hira:"\u306e",kata:"\u30ce"},{hira:"\u306f",kata:"\u30cf"},{hira:"\u3070",kata:"\u30d0"},{hira:"\u3071",kata:"\u30d1"},{hira:"\u3072",kata:"\u30d2"},{hira:"\u3073",kata:"\u30d3"},{hira:"\u3074",kata:"\u30d4"},{hira:"\u3075",kata:"\u30d5"},{hira:"\u3076",kata:"\u30d6"},{hira:"\u3077",kata:"\u30d7"},{hira:"\u3078",kata:"\u30d8"},
+{hira:"\u3079",kata:"\u30d9"},{hira:"\u307a",kata:"\u30da"},{hira:"\u307b",kata:"\u30db"},{hira:"\u307c",kata:"\u30dc"},{hira:"\u307d",kata:"\u30dd"},{hira:"\u307e",kata:"\u30de"},{hira:"\u307f",kata:"\u30df"},{hira:"\u3080",kata:"\u30e0"},{hira:"\u3081",kata:"\u30e1"},{hira:"\u3082",kata:"\u30e2"},{hira:"\u3083",kata:"\u30e3"},{hira:"\u3084",kata:"\u30e4"},{hira:"\u3085",kata:"\u30e5"},{hira:"\u3086",kata:"\u30e6"},{hira:"\u3087",kata:"\u30e7"},{hira:"\u3088",kata:"\u30e8"},{hira:"\u3089",kata:"\u30e9"},
+{hira:"\u308a",kata:"\u30ea"},{hira:"\u308b",kata:"\u30eb"},{hira:"\u308c",kata:"\u30ec"},{hira:"\u308d",kata:"\u30ed"},{hira:"\u308e",kata:"\u30ee"},{hira:"\u308f",kata:"\u30ef"},{hira:"\u3090",kata:"\u30f0"},{hira:"\u3091",kata:"\u30f1"},{hira:"\u3092",kata:"\u30f2"},{hira:"\u3093",kata:"\u30f3"}],aa=[{names:["Greek"],source:"\\u0370-\\u03FF"},{names:["Cyrillic"],source:"\\u0400-\\u04FF"},{names:["Armenian"],source:"\\u0530-\\u058F"},{names:["Hebrew"],source:"\\u0590-\\u05FF"},{names:["Arabic"],
+source:"\\u0600-\\u06FF"},{names:["Thai"],source:"\\u0E00-\\u0E7F"},{names:["Tibetan"],source:"\\u0F00-\\u0FFF"},{names:["Georgian"],source:"\\u10A0-\\u10FF"},{names:["Tagalog"],source:"\\u1700-\\u171F"},{names:["Mongolian"],source:"\\u1800-\\u18AF"},{names:["Hiragana"],source:"\\u3040-\\u309F\\u30FB-\\u30FC"},{names:["Katakana"],source:"\\u30A0-\\u30FF\\uFF61-\\uFF9F"},{names:["Kana"],source:"\\u3040-\\u30FF\\uFF61-\\uFF9F"},{names:["Bopomofo"],source:"\\u3100-\\u312F"},{names:["Hangul"],source:"\\uAC00-\\uD7AF\\u1100-\\u11FF"},
+{names:["Han","Kanji"],source:"\\u4E00-\\u9FFF\\uF900-\\uFAFF"}],R=function(a){if(!a||a=="all")return{a:true,n:true,k:true,s:true,p:true};var b={};if(a.length<6)for(var c=0;c<a.length;c++)b[a.charAt(c)]=true;else{if(a==="alphabet")b.a=true;if(a==="numbers")b.n=true;if(a==="katakana")b.k=true;if(a==="special")b.s=true;if(a==="punctuation")b.p=true}return b},S=function(a,b,c,d){b=b||0;c=c||" ";d=d||"both";for(var e=0;e<b;e++){if(d==="left"||d==="both")a=c+a;if(d==="right"||d==="both")a+=c}return a.toString()},
+ba=function(a,b){var c=a.match(b);if(c&&!RegExp.NPCGSupport&&!b.global)for(var d=1;d<c.length;d++)if(c[d]==="")c[d]=undefined;return c};if(typeof btoa==="undefined")btoa=function(a){var b="",c,d,e="",f,g,h="",i=0;do{c=a.charCodeAt(i++);d=a.charCodeAt(i++);e=a.charCodeAt(i++);f=c>>2;c=(c&3)<<4|d>>4;g=(d&15)<<2|e>>6;h=e&63;if(isNaN(d))g=h=64;else if(isNaN(e))h=64;b=b+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)+
+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)}while(i<a.length);return b};if(typeof atob==="undefined")atob=function(a){var b="",c,d,e="",f,g="",h=0;if(/[^A-Za-z0-9\+\/\=]/g.test(a))throw Error("String contains invalid base64 characters");a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));
+f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));c=c<<2|d>>4;d=(d&15)<<4|f>>2;e=(f&3)<<6|g;b+=String.fromCharCode(c);if(f!=64)b+=String.fromCharCode(d);if(g!=64)b+=String.fromCharCode(e)}while(h<a.length);return unescape(b)};k(String,true,{escapeRegExp:function(){return RegExp.escape(this)},escapeURL:function(a){return a?encodeURIComponent(this):encodeURI(this)},
+unescapeURL:function(a){return a?decodeURI(this):decodeURIComponent(this)},encodeBase64:function(){return btoa(this)},decodeBase64:function(){return atob(this)},capitalize:function(){return this.substr(0,1).toUpperCase()+this.substr(1).toLowerCase()},trim:function(){return this.trimLeft().trimRight()},trimLeft:function(){return this.replace(/^[\s\u3000][\s\u3000]*/,"")},trimRight:function(){return this.replace(/[\s\u3000][\s\u3000]*$/,"")},pad:function(a,b){return this.padLeft(a,b).padRight(a,b)},
+padLeft:function(a,b){return S(this,a,b,"left")},padRight:function(a,b){return S(this,a,b,"right")},repeat:function(a){a=a||0;if(a<0)return this;for(var b="",c=0;c<a;c++)b+=this;return b},each:function(a,b){if(Object.isFunction(a)){b=a;a=/./g}else if(a)if(Object.isString(a))a=RegExp(RegExp.escape(a),"gi");else{if(Object.isRegExp(a))a=a.addFlag("g")}else a=/./g;var c=this.match(a)||[];if(b)for(var d=0;d<c.length;d++)c[d]=b.call(this,c[d],d)||c[d];return c},codes:function(a){for(var b=[],c=0;c<this.length;c++){var d=
+this.charCodeAt(c);b.push(d);a&&a.call(this,d,c)}return b},chars:function(a){return this.trim().each(a)},words:function(a){return this.trim().each(/\S+/g,a)},lines:function(a){return this.trim().each(/^.*$/gm,a)},paragraphs:function(a){var b=this.trim().split(/[\r\n]{2,}/);return b=b.map(function(c){if(a)var d=a.call(c);return d?d:c})},normalize:function(){var a=this.toString();$.each(function(b){a=a.replace(b.reg,b.base)});return a},startsWith:function(a,b){if(b===undefined)b=true;var c=Object.isRegExp(a)?
+a.source.replace("^",""):RegExp.escape(a);return RegExp("^"+c,b?"":"i").test(this)},endsWith:function(a,b){if(b===undefined)b=true;var c=Object.isRegExp(a)?a.source.replace("$",""):RegExp.escape(a);return RegExp(c+"$",b?"":"i").test(this)},isBlank:function(){return this.trim().length===0},has:function(a){return this.search(a)!==-1},add:function(a,b){b=b||0;if(b<0)b=this.length+b+1;if(b<0||b>this.length)return this;return this.substr(0,b)+a+this.substr(b)},hankaku:function(a){a=R(a);for(var b="",c=
+0;c<this.length;c++){var d=this.charAt(c);b+=w[d]&&a[w[d].type]?w[d].half:d}return b},zenkaku:function(a){a=R(a);for(var b="",c=0;c<this.length;c++){var d=this.charAt(c),e=this.charAt(c+1);if(e&&o[d+e]){b+=o[d+e].full;c++}else b+=o[d]&&a[o[d].type]?o[d].full:d}return b},hiragana:function(a){a=a===false?this:this.zenkaku("k");for(var b="",c=0;c<a.length;c++){var d=a.charAt(c);b+=B[d]?B[d].hira:d}return b},katakana:function(){for(var a="",b=0;b<this.length;b++){var c=this.charAt(b);a+=C[c]?C[c].kata:
+c}return a},toNumber:function(a){var b=this.replace(/,/g,"");return b.match(/\./)?parseFloat(b):parseInt(b,a||10)},reverse:function(){return this.split("").reverse().join("")},compact:function(){return this.replace(/[\r\n]/g,"").trim().replace(/([\s\u3000])+/g,"$1")},at:function(){return L(this,arguments,true)},first:function(a){a=a===undefined?1:a;return this.substr(0,a)},last:function(a){a=a===undefined?1:a;return this.substr(this.length-a<0?0:this.length-a)},from:function(a){return this.slice(a)},
+to:function(a){if(a===undefined)a=this.length;return this.slice(0,a)},toDate:function(){return K([this.toString()])},dasherize:function(){return this.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/_/g,"-").toLowerCase()},underscore:function(){return this.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/-/g,"_").toLowerCase()},camelize:function(a){for(var b=this.dasherize().split("-"),c="",d=0;d<b.length;d++)c+=a===false&&d===0?b[d].toLowerCase():b[d].substr(0,1).toUpperCase()+b[d].substr(1).toLowerCase();
+return c},titleize:function(){return this.trim().words(function(a){return a.capitalize()}).join(" ")},stripTags:function(){args=arguments.length>0?arguments:[""];for(var a=this.toString(),b=0;b<args.length;b++){var c=RegExp("</?"+args[b].escapeRegExp()+"[^<>]*>","gi");a=a.replace(c,"")}return a},removeTags:function(){var a=this.toString();if(arguments.length==0){a=a.replace(/<.+?\/>/g,"");a=a.replace(/<.+?>.*<\/.+?>/g,"")}else for(var b=0;b<arguments.length;b++){var c=arguments[b].escapeRegExp();
+a=a.replace(RegExp("<"+c+"[^<>]*?/>","gi"),"");a=a.replace(RegExp("<"+c+"[^<>]*>.*?</"+c+">","gi"),"")}return a},toObject:function(a,b){var c={};this.split(a||"&").each(function(d){var e=d.split(b||"=");d=e[0];var f=e[1];if(e=parseInt(e[1]))f=e;else if(f==="true")f=true;else if(f==="false")f=false;c[d]=f});return c}});s(String,true,function(a){return!Object.isRegExp(a)},{split:function(a,b){var c=[],d=0,e=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.sticky?"y":"");a=a.addFlag("g");var f,g,h;RegExp.NPCGSupport||
+(f=RegExp("^"+a.source+"$(?!\\s)",e));if(b===undefined||+b<0)b=Infinity;else{b=Math.floor(+b);if(!b)return[]}for(;g=a.exec(this);){e=g.index+g[0].length;if(e>d){c.push(this.slice(d,g.index));!RegExp.NPCGSupport&&g.length>1&&g[0].replace(f,function(){for(var i=1;i<arguments.length-2;i++)if(arguments[i]===undefined)g[i]=undefined});g.length>1&&g.index<this.length&&Array.prototype.push.apply(c,g.slice(1));h=g[0].length;d=e;if(c.length>=b)break}a.lastIndex===g.index&&a.lastIndex++}if(d===this.length){if(h||
+!a.test(""))c.push("")}else c.push(this.slice(d));return c.length>b?c.slice(0,b):c}});k(String,true,{insert:String.prototype.add});s(Array,true,true,{forEach:function(a,b){for(var c=0,d=this.length;c<d;c++)a.call(b,this[c],c,this)},reduce:function(a,b){for(var c=b===undefined?this[0]:b,d=b?0:1,e=this.length;d<e;d++)c=a.call(null,c,this[d],d,this);return c},reduceRight:function(a,b){for(var c=b===undefined?this[this.length-1]:b,d=b?this.length-1:this.length-2;d>=0;d--)c=a.call(null,c,this[d],d,this);
+return c}});s(Array,true,function(a){return!Object.isObject(a)&&!Object.isFunction(a)},{indexOf:function(a,b){if(b<0)b=this.length+b;else if(b===undefined)b=0;if(b>=this.length)return-1;for(var c=b,d=this.length;c<d;c++)if(n(this[c],a,this,[c,this]))return c;return-1},lastIndexOf:function(a,b){if(b<0)b=this.length+b;else if(b===undefined||b>this.length)b=this.length-1;for(var c=b;c>=0;c--)if(n(this[c],a,this,[c,this]))return c;return-1}});s(Array,true,function(a){return Object.isFunction(a)},{every:function(a,
+b){for(var c=0,d=this.length;c<d;c++)if(!n(this[c],a,b,[c,this]))return false;return true},some:function(a,b){for(var c=0,d=this.length;c<d;c++)if(n(this[c],a,b,[c,this]))return true;return false},filter:function(a,b){for(var c=[],d=0,e=this.length;d<e;d++)n(this[d],a,b,[d,this])&&c.push(this[d]);return c},map:function(a,b){for(var c=[],d=0,e=this.length;d<e;d++)c.push(u(this[d],a,b,[d,this]));return c}});k(Array,true,{find:function(a,b,c){a=this.findAll(a,b,c);return a.length>0?a[0]:undefined},findAll:function(a,
+b,c){var d=[],e=this;b=b||0;this.eachFromIndex(b,function(f,g){n(f,a,e,[g,e])&&d.push(f)},c);return d},eachFromIndex:function(a,b,c){c=c?this.length:this.length-a;for(var d,e=0;e<c;e++){d=(a+e)%this.length;b.call(this,this[d],d)}},count:function(a){if(a===undefined)return this.length;return this.findAll(a).length},none:function(a){return!this.any(a)},remove:function(a){for(var b=0;a&&b<this.length;)if(n(this[b],a,this,[b,this]))this.splice(b,1);else b++;return this},removeAtIndex:function(a,b){if(a===
+undefined)return this;if(b===undefined)b=a;for(var c=0;c<=b-a;c++)this.splice(a,1);return this},add:function(a,b){if(!Object.isNumber(b)||isNaN(b))b=this.length;Array.prototype.splice.apply(this,[b,0].concat(a));return this},include:function(a,b){return this.clone().add(a,b)},exclude:function(a){return this.clone().remove(a)},clone:function(){return this.concat()},unique:function(){var a=[];this.each(function(b){a.indexOf(b)===-1&&a.push(b)});return a},union:function(a){return this.concat(a).unique()},
+intersect:function(a){var b=[];Object.isArray(a)||(a=[a]);this.each(function(c){a.indexOf(c)!==-1&&b.push(c)});return b.unique()},subtract:function(a){var b=[];Object.isArray(a)||(a=[a]);this.each(function(c){a.indexOf(c)===-1&&b.push(c)});return b},at:function(){return L(this,arguments,false)},first:function(a){if(a===undefined)return this[0];if(a<0)a=0;return this.slice(0,a)},last:function(a){if(a===undefined)return this[this.length-1];return this.slice(this.length-a<0?0:this.length-a)},from:function(a){return this.slice(a)},
+to:function(a){if(a===undefined)a=this.length;return this.slice(0,a)},min:function(a){return z(this,"min",a).unique()},max:function(a){return z(this,"max",a).unique()},least:function(a){a=z(this.groupBy(a),"min","length").flatten();return a.length===this.length?[]:a.unique()},most:function(a){a=z(this.groupBy(a),"max","length").flatten();return a.length===this.length?[]:a.unique()},sum:function(a){a=a?this.map(a):this;return a.length>0?a.reduce(function(b,c){return b+c}):0},average:function(a){a=
+a?this.map(a):this;return a.length>0?a.sum()/a.length:0},groupBy:function(a){var b={};this.each(function(c){var d=u(c,a);b[d]||(b[d]=[]);b[d].push(c)});return b},inGroups:function(a,b){var c=arguments.length>1,d=this,e=[],f=Math.ceil(this.length/a);(0).upto(a-1,function(g){g=g*f;var h=d.slice(g,g+f);c&&h.length<f&&(f-h.length).times(function(){h=h.add(b)});e.push(h)});return e},inGroupsOf:function(a,b){if(this.length===0||a===0)return this;if(a===undefined)a=1;if(b===undefined)b=null;var c=[],d=null;
+this.each(function(e,f){if(f%a===0){d&&c.push(d);d=[]}if(e===undefined)e=b;d.push(e)});if(!this.length.isMultipleOf(a)){(a-this.length%a).times(function(){d.push(b)});this.length+=a-this.length%a}d.length>0&&c.push(d);return c},split:function(a){var b=[],c=[];this.forEach(function(d,e,f){var g=n(d,a,f,[e,f]);g||c.push(d);if(c.length>0&&(g||e==f.length-1)){b.push(c);c=[]}});return b},compact:function(){var a=[];this.each(function(b){if(Object.isArray(b))a.push(b.compact());else b!==undefined&&b!==
+null&&!isNaN(b)&&a.push(b)});return a},isEmpty:function(){return this.compact().length==0},flatten:function(){var a=[];this.each(function(b){if(Object.isArray(b))a=a.concat(b.flatten());else a.push(b)});return a},sortBy:function(a,b){this.sort(function(c,d){var e=u(c,a),f=u(d,a),g=typeof e=="number";return g&&b?f-e:g&&!b?e-f:e===f?0:b?e<f?1:-1:e<f?-1:1});return this},randomize:function(){for(var a=this.concat(),b,c,d=a.length;d;b=parseInt(Math.random()*d),c=a[--d],a[d]=a[b],a[b]=c);return a}});k(Array,
+true,{collect:Array.prototype.map,shuffle:Array.prototype.randomize,each:Array.prototype.forEach,all:Array.prototype.every,any:Array.prototype.some,has:Array.prototype.some,insert:Array.prototype.add});var D,E,F=["january","february","march","april","may","june","july","august","september","october","november","december"],G=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],T=["zero","one","two","three","four","five","six","seven","eight","nine","ten"],U=[{reg:"(\\d{4})",to:["year"]},
+{reg:"(\\d{4})[-/.](\\d{1,2})",to:["year","month"]},{reg:"([+-])?(\\d{4})[-/.]?(\\d{1,2})[-/.]?(\\d{1,2})",to:["year_sign","year","month","day"]},{reg:"(\\d{2})-?(\\d{2})-?(\\d{2})",to:["year","month","day"]},{reg:"(\\d{1,2})[\\-/.](\\d{1,2})",to:["month","day"],variant:true},{reg:"(\\d{1,2})[\\-/.](\\d{1,2})[\\-/.](\\d{2,4})",to:["month","day","year"],variant:true},{reg:"({MONTHS})[\\s\\-.](\\d{4})",to:["month","year"]},{reg:"(?:{WEEKDAYS})?\\s*({MONTHS})[\\s\\-.]?(?:(\\d{1,2})(?:st|nd|rd|th)?)?,?[\\s\\-.]?(\\d{2,4})?",
+to:["month","day","year"]},{reg:"(\\d{1,2}) ({MONTHS}),? (\\d{4})",to:["day","month","year"]},{reg:"(?:(the|a|{NUMBER}|\\d+) (day|week|month|year)s? (before|after|from)\\s+)?(today|tomorrow|yesterday|{WEEKDAYS})(?: at)?",to:["modifier_amount","modifier_unit","modifier_sign","fuzzy_day"]},{reg:"(a|{NUMBER}|\\d+) (millisecond|second|minute|hour|day|week|month|year)s? (from now|ago)",to:["modifier_amount","modifier_unit","modifier_sign"],relative:true},{reg:"(this|next|last)?\\s*(?:week\\s*)?({WEEKDAYS})(?: at)?",
+to:["modifier_sign","fuzzy_day"]},{reg:"({WEEKDAYS}) (?:of\\s*)?(this|next|last) week",to:["fuzzy_day","modifier_sign"]},{reg:"({MONTHS})(?: (\\d{1,2})(?:st|nd|rd|th)?)? of (this|next|last) (year)",to:["month","day","modifier_sign","modifier_unit"]},{reg:"(?:the\\s)?(first day|last day)?(\\d{1,2}(?:st|nd|rd|th))? of (?:(the|this|next|last) (month)|({MONTHS}))",to:["modifier_edge","day","modifier_sign","modifier_unit","month"]},{reg:"(?:the\\s)?(beginning|end|first day|last day) of (?:(the|this|next|last) (week|month|year)|(\\d{4})|({MONTHS}))",
+to:["modifier_edge","modifier_sign","modifier_unit","year","month"]},{reg:"(this|next|last) (week|month|year)",to:["modifier_sign","modifier_unit"],relative:true},{reg:"(midnight|noon)(?: (tonight|today|tomorrow|yesterday|{WEEKDAYS}))?",to:["hour","fuzzy_day"],timeIncluded:true},{reg:"^(?:(\\d{1,2}):?(\\d{2})?:?(\\d{2})?(\\.\\d{1,6})?(am|pm)?(?:(Z)|(?:([+-])(\\d{2})(?::?(\\d{2}))?)?)?)$",to:["hour","minute","second","millisecond","meridian","utc","offset_sign","offset_hours","offset_minutes"],today:true,
+timeIncluded:true}],ca=[{token:"millisec(?:onds?)?|ms(?:ms)?",pad:3,format:function(a,b){return l(a,"get",b,"Milliseconds")}},{token:"s(?:s|ec(?:onds?)?)?",pad:2,format:function(a,b){return l(a,"get",b,"Seconds")}},{token:"m(?:m|in(?:utes?)?)?",pad:2,caps:true,format:function(a,b){return l(a,"get",b,"Minutes")}},{token:"h(?:h|(?:ours?))?|24hr",pad:2,format:function(a,b){return l(a,"get",b,"Hours")}},{token:"12hr",pad:2,format:function(a,b){var c=l(a,"get",b,"Hours");return c===0?12:c-Math.floor(c/
+13)*12}},{token:"d(?:d|ate|ays?)?",pad:2,format:function(a,b){return l(a,"get",b,"Date")}},{token:"dow|weekday(?: short)?",weekdays:true,format:function(a,b){return l(a,"get",b,"Day")}},{token:"MM?",pad:2,caps:true,format:function(a,b){return l(a,"get",b,"Month")+1}},{token:"mon(th)?(?: short)?",months:true,format:function(a,b){return l(a,"get",b,"Month")}},{token:"yy",format:function(a,b){return l(a,"get",b,"FullYear").toString().from(2)}},{token:"yyyy|year",format:function(a,b){return l(a,"get",
+b,"FullYear")}},{token:"t{1,2}",meridian:true,format:function(a,b){return l(a,"get",b,"Hours")<12?"am":"pm"}},{token:"tz|timezone",format:function(a){return a.getUTCOffset()}},{token:"iso(tz|timezone)",format:function(a){return a.getUTCOffset(true)}},{token:"ord",format:function(a,b){return l(a,"get",b,"Date").ordinalize()}}],r=[{unit:"year",method:"FullYear",multiplier:function(a){return(365+(a?a.isLeapYear()?1:0:0.25))*24*60*60*1E3}},{unit:"month",method:"Month",multiplier:function(a){return(a?
+a.daysInMonth():30.4375)*24*60*60*1E3}},{unit:"week",method:"Week",multiplier:function(){return 6048E5}},{unit:"day",method:"Date",multiplier:function(){return 864E5}},{unit:"hour",method:"Hours",multiplier:function(){return 36E5}},{unit:"minute",method:"Minutes",multiplier:function(){return 6E4}},{unit:"second",method:"Seconds",multiplier:function(){return 1E3}},{unit:"millisecond",method:"Milliseconds",multiplier:function(){return 1}}],da=function(a,b){var c={};b.each(function(d,e){var f=a[e+1];
+if(typeof f==="string")f=f.toLowerCase();c[d]=f});return c},V=function(a){var b,c={},d={},e=false,f=new Date;if(Object.isObject(a)){d=a;f=(new Date).set(a,true)}else if(Object.isNumber(a))f=new Date(a);else if(Object.isDate(a))f=a;else if(Object.isString(a)){a=a.trim().replace(/\.+$/,"").replace(/^now$/,"");U.each(function(g){if(!b)if(b=ba(a,g.reg)){c=g;var h=da(b,c.to);if(Date.allowVariant&&c.variant){g=h.month;h.month=h.day;h.day=g}if(h.year){if(!h.modifier_unit)h.modifier_unit="year";if(h.year.length===
+2)h.year=ea(h.year.toNumber())}if(h.month){g=h.month.toNumber();h.month=isNaN(g)?D.indexOf(h.month.to(3)):g-1}if(h.hour==="noon"||h.hour==="midnight"){h.hour=h.hour==="noon"?12:24;if(!d.day&&!h.fuzzy_day)h.fuzzy_day="today"}if(h.fuzzy_day){g=0;var i=h.fuzzy_day;if(i==="yesterday")g=-1;else if(i==="tomorrow")g=1;else if((i=E.indexOf(i.to(3)))!==-1){f.setWeekday(i);g=0;if(h.modifier_sign&&!h.modifier_unit&&!h.modifier_amount)h.modifier_unit="week"}d.year=f.getFullYear();d.month=f.getMonth();d.day=f.getDate()+
+g}if(h.millisecond)h.millisecond=(parseFloat(h.millisecond,10)*1E3).round();r.each(function(x){x=x.unit;if(h[x]!==undefined)d[x]=h[x].toNumber()});if(h.meridian)if(h.meridian==="pm"&&h.hour<12)d.hour+=12;if(h.utc||h.offset_hours||h.offset_minutes){e=true;g=0;if(h.offset_hours)g+=h.offset_hours.toNumber()*60;if(h.offset_minutes)g+=h.offset_minutes.toNumber();if(h.offset_sign&&h.offset_sign==="-")g*=-1;d.minute-=g}if(h.modifier_unit&&h.modifier_sign){g=h.modifier_amount||1;i=h.modifier_unit;var m;g=
+g==="the"||g==="a"?1:(m=T.indexOf(g))!==-1?m:g.toNumber();if(h.modifier_sign==="before"||h.modifier_sign==="ago"||h.modifier_sign==="last")g*=-1;else if(h.modifier_sign==="this"||h.modifier_sign==="the")g=0;if(i==="year"&&!c.relative)d.year=f.getFullYear();else if(i==="month"&&!c.relative)d.month=f.getMonth();else if(i==="week"&&!c.relative){d.day=f.getDate();i="day";g*=7}if(d[i]===undefined)d[i]=0;d[i]+=g}if(h.modifier_edge){m=h.modifier_edge;if(m==="beginning"||m==="first"||m==="first day"){if(h.modifier_unit===
+"week"){d.month=f.getMonth();d.weekday=0}else if(h.modifier_unit==="month"||h.month)d.day=1;if(!m.match(/day/)){d.hour=0;d.minute=0;d.second=0;d.millisecond=0}}else if(m==="end"||m==="last"||m==="last day"){if(h.modifier_unit==="week"){d.month=f.getMonth();d.weekday=6}else if(h.modifier_unit==="month"||h.month)d.day=32-(new Date(f.getFullYear(),d.month,32)).getDate();else if(h.modifier_unit==="year"){d.month=11;d.day=31}if(!m.match(/day/)){d.hour=23;d.minute=59;d.second=59;d.millisecond=999}}}if(h.year_sign&&
+h.year_sign==="-")d.year*=-1;if(c.today){d.year=f.getFullYear();d.month=f.getMonth();d.day=f.getDate()}}});if(b)if(c.relative)f.advance(d);else e?f.setUTC(d,true):f.set(d,true);else f=a?new Date(a):new Date}return{date:f,set:d,format:c}},p=function(a,b,c,d,e){var f,g,h=V(b);c=c>0?c:0;if(!h.date.isValid())return false;r.each(function(m){if(h.set[m.unit]!==undefined||h.set[m.unit+"s"]!==undefined){f=m.unit;g=m.multiplier(h.date)-1}});if(h.format.relative)if(b=h.date["beginningOf"+f.capitalize()])b.call(h.date);
+else{c=c||Math.round(g/2);g=0}g=g||0;a=a.getTime();b=h.date.getTime();var i=b+g;return d==="after"?e?a-c>b:a>i+c:d==="before"?e?a<i+c:a-c<b:a>=b-c&&a<i+c+1},H=function(a,b,c,d,e){d=d===true?"UTC":"";if(Object.isNumber(b)&&!e){a.setTime(b);return a}else if(Object.isNumber(b)&&e)b={milliseconds:b};if(b.date)b.day=b.date;c&&a.setDate(15);r.each(function(g){var h=g.unit;g=g.method;var i=W(b,h,c);if(i!==undefined){if(e){if(h==="week"){i=(b.day||0)+i*7;g="Date"}i=i*e+l(a,"get","",g)}l(a,"set",d,g,i)}});
+if(!e){var f=W(b,"weekday",c);f!==undefined&&l(a,"set",d,"Weekday",f)}return a},W=function(a,b,c){var d=a[b];if(d===undefined)d=a[b+"s"];if(d===undefined&&c)switch(b){case "day":d=1;break;case "year":case "week":case "weekday":break;default:d=0}return d},l=function(a,b,c,d,e){return a[b+c+d].call(a,e)},ea=function(a){return Math.round((new Date).getFullYear()/100)*100-Math.round(a/100)*100+a},fa=function(a){if(/\w+\s+\w+/.test(a))return null;a=D.indexOf(a.toLowerCase().to(3));return a===-1?null:a},
+ga=function(a){if(/\w+\s+\w+/.test(a))return null;a=E.indexOf(a.toLowerCase().to(3));return a===-1?null:a},O=function(a,b,c,d){b=K(b);var e={};e[c]=a;return b[d].call(b,e)},X=function(a){var b,c=a.millisecondsAgo(),d=Math.abs(c),e=d;c=c>=0?-1:1;var f="millisecond";r.concat().reverse().slice(1).each(function(g){b=Math.floor(d/g.multiplier(a));if(b>=1){e=b;f=g.unit}});if(e!=1)f+="s";return[e,f,d,c]},K=function(a){a=a.length>=2&&Object.isNumber(a[0])?t(a,"year","month","day","hour","minute","second",
+"millisecond")[0]:a[0];return V(a).date};k(Date,false,{make:function(){return K(arguments)},DSTOffset:((new Date(2E3,6,1)).getTimezoneOffset()-(new Date(2E3,0,1)).getTimezoneOffset())*60*1E3,INTERNATIONAL_TIME:"{h}:{mm}:{ss}",RFC1123:"{Dow}, {dd} {Mon} {yyyy} {hh}:{mm}:{ss} GMT{tz}",RFC1036:"{Weekday}, {dd}-{Mon}-{yy} {hh}:{mm}:{ss} GMT{tz}",ISO8601_DATE:"{yyyy}-{MM}-{dd}",ISO8601_DATETIME:"{yyyy}-{MM}-{dd}T{hh}:{mm}:{ss}.{ms}{isotz}"});k(Date,true,{set:function(){var a=t(arguments,"year","month",
+"day","hour","minute","second","millisecond");return H(this,a[0],a[1])},setUTC:function(){var a=t(arguments,"year","month","day","hour","minute","second","millisecond");return H(this,a[0],a[1],true)},setWeekday:function(a){a!==undefined&&this.setDate(this.getDate()+a-this.getDay())},setUTCWeekday:function(a){a!==undefined&&this.setDate(this.getUTCDate()+a-this.getDay())},setWeek:function(a){if(a!==undefined){this.getDate();this.setMonth(0);this.setDate(a*7+1)}},setUTCWeek:function(a){if(a!==undefined){this.getUTCDate();
+this.setMonth(0);this.setUTCDate(a*7+1)}},getWeek:function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil((this.getTime()-a.getTime()+1)/6048E5)},getUTCWeek:function(){var a=(new Date).setUTC(this.getUTCFullYear(),0,1,0,0,0,0);return Math.ceil((this.getTime()-a.getTime()+1)/6048E5)},getUTCOffset:function(a){var b=this.utc?0:this.getTimezoneOffset(),c=a===true?":":"";if(!b&&a)return"Z";return Math.round(-b/60).pad(2,true)+c+(b%60).pad(2)},toUTC:function(){if(this.utc)return this;var a=this.clone().addMinutes(this.getTimezoneOffset());
+a.utc=true;return a},isUTC:function(){return this.utc||this.getTimezoneOffset()===0},advance:function(){var a=t(arguments,"year","month","day","hour","minute","second","millisecond");return H(this,a[0],false,false,1,true)},rewind:function(){var a=t(arguments,"year","month","day","hour","minute","second","millisecond");return H(this,a[0],false,false,-1)},isValid:function(){return!isNaN(this.getTime())},isAfter:function(a,b){return p(this,a,b,"after")},isBefore:function(a,b){return p(this,a,b,"before")},
+isBetween:function(a,b,c){return p(this,a,c,"after",true)&&p(this,b,c,"before",true)?true:p(this,b,c,"after",true)&&p(this,a,c,"before",true)},isLeapYear:function(){var a=this.getFullYear();return a%4===0&&a%100!==0||a%400===0},daysInMonth:function(){return 32-(new Date(this.getFullYear(),this.getMonth(),32)).getDate()},format:function(a){var b=this,c;if(b.isValid())if(a)if(Date[a])a=Date[a];else{if(Object.isFunction(a)){c=X(b);a=a.apply(b,c)||"relative"}}else return this.toString();else return"Invalid Date";
+if(a=="relative"){c=c||X(b);if(c[2]<1E3){c[0]=1;c[1]="second"}return c[0]+" "+c[1]+" "+(c[3]<0?"ago":"from now")}ca.each(function(d){if(a)a=a.replace(RegExp("\\{("+d.token+")(?: (pad))?\\}",d.caps?"":"i"),function(e,f,g){e=d.format.call(null,b,"");if(d.pad&&(f.length===2||g==="pad"))e=e.pad(d.pad);if(d.weekdays){g=f.toLowerCase();e=(g=g==="dow"||g==="weekday short")?E[e]:G[e];if(f.first().toUpperCase()===f.first())e=e.capitalize()}if(d.months){g=f.toLowerCase();e=(g=g==="mon"||g==="month short")?
+D[e]:F[e];if(f.first().toUpperCase()===f.first())e=e.capitalize()}if(d.meridian){if(f.length===1)e=e.to(1);if(f.toUpperCase()===f)e=e.toUpperCase()}return e})});return a},relative:function(a){return this.format(a||"relative")},is:function(a,b){var c,d;if(Object.isString(b)){var e=r.find(function(f){return f.unit===b});if(e)b=e.multiplier()}b=b>0?b:0;if(Object.isString(a)){a=a.trim();return a==="future"?this.getTime()>(new Date).getTime():a==="past"?this.getTime()<(new Date).getTime():a==="weekday"?
+!(this.getDay()===0||this.getDay()===6):a==="weekend"?this.getDay()===0||this.getDay()===6:(d=ga(a))?this.getDay()===d:(c=fa(a))?this.getMonth()===c:p(this,a,b)}else{a=Date.create(a);b=b||0;c=this.getTime();e=a.getTime();return c>=e-b&&c<e+1+b}},resetTime:function(){return this.set({hour:0,minute:0,second:0,millisecond:0})},clone:function(){return new Date(this.getTime())},toISOString:function(){return this.toUTC().format(Date.ISO8601_DATETIME)}});k(Date,false,{ISO8601:Date.ISO8601_DATETIME,create:Date.make});
+k(Date,true,{getWeekday:Date.prototype.getDay,getUTCWeekday:Date.prototype.getUTCDay,iso:Date.prototype.toISOString});k(Function,false,{lazy:function(a,b){if(b===undefined)b=1;var c=0;return function(){var d=this,e=arguments;setTimeout(function(){return a.apply(d,e)},Math.round(++c*b))}}});k(Function,true,{bind:function(a){var b=this,c=Array.prototype.slice.call(arguments,1);return function(){return b.apply(a,c.concat(Array.prototype.slice.call(arguments)))}},delay:function(a){var b=this,c=Array.prototype.slice.call(arguments,
+1);return this.timer=setTimeout(function(){return b.apply(b,c)},a)},defer:function(){this.delay.apply(this,[0].concat(Array.prototype.slice.call(arguments)));return this},cancel:function(){return clearTimeout(this.timer)}});(function(){M.slice(1).each(function(a){j(Object,"is"+a,function(b){return I(b,a)})});j(Object,"isArray",Array.isArray||function(a){return I(a,"Array")});N.each(function(a){j(v.prototype,a,function(){return Object[a].apply(null,[this].concat(Array.prototype.slice.call(arguments)))})});
+j(Object,"clone",A);j(v.prototype,"clone",function(){return A(this)});j(Object,"enableSugar",function(){M.each(function(a){j(Object.prototype,"is"+a,function(){return Object["is"+a](this)})});N.each(function(a){j(Object.prototype,a,v.prototype[a])});j(Object.prototype,"clone",function(){return A(this)})})})();(function(){B={};C={};for(var a=0;a<Q.length;a++){var b=Q[a];B[b.kata]=b;C[b.hira]=b}})();(function(){o={};w={};for(var a=0;a<P.length;a++){var b=P[a];o[b.half]=b;w[b.full]=b}})();(function(){aa.each(function(a){var b=
+RegExp("^["+a.source+"\\s]+$"),c=RegExp("["+a.source+"]");a.names.each(function(d){j(String.prototype,"is"+d,function(){return!!this.trim().match(b)});j(String.prototype,"has"+d,function(){return!!this.match(c)})})})})();(function(){r.each(function(a,b){var c=a.unit,d=c.capitalize(),e=a.multiplier();j(Date.prototype,c+"sSince",function(f){return((this.getTime()-Date.create(f).getTime())/e).round()});j(Date.prototype,c+"sUntil",function(f){return((Date.create(f).getTime()-this.getTime())/e).round()});
+j(Date.prototype,c+"sAgo",Date.prototype[c+"sUntil"]);j(Date.prototype,c+"sFromNow",Date.prototype[c+"sSince"]);j(Date.prototype,"add"+d+"s",function(f){var g={};g[c]=f;return this.advance(g)});Z(c,e);if(b<3){j(Date.prototype,"isLast"+d,function(){return this.is("last "+c)});j(Date.prototype,"isThis"+d,function(){return this.is("this "+c)});j(Date.prototype,"isNext"+d,function(){return this.is("next "+c)})}if(b<4){j(Date.prototype,"beginningOf"+d,function(f){if(f===undefined||c=="day")f=true;var g=
+{month:0,day:1};switch(c){case "week":g.weekday=0;case "day":g.day=this.getDate();case "month":g.month=this.getMonth()}return this.set(g,f)});j(Date.prototype,"endOf"+d,function(f){if(f===undefined||c=="day")f=true;var g=f?{hours:23,minutes:59,seconds:59,milliseconds:999}:{};g.day=this.getDate();g.month=this.getMonth();switch(c){case "year":g.month=11;g.day=31;break;case "month":g.day=this.daysInMonth();break;case "week":g.weekday=6}return this.set(g,f)})}})})();(function(){D=F.map(function(d){return d.to(3)});
+E=G.map(function(d){return d.to(3)});var a=F.map(function(d){return d.to(3)+"(?:\\.|"+d.from(3)+")?"}).join("|"),b=G.map(function(d){return d.to(3)+"(?:\\.|"+d.from(3)+")?"}).join("|"),c=T.join("|");U.each(function(d){var e="^"+d.reg;e=e.replace(/{WEEKDAYS}/,b);e=e.replace(/{MONTHS}/,a);e=e.replace(/{NUMBER}/,c);if(!d.timeIncluded){e+="(?:(?:\\s+|t)(\\d{1,2}):?(\\d{2})?:?(\\d{2})?(\\.\\d{1,6})?(am|pm)?(?:(Z)|(?:([+-])(\\d{2})(?::?(\\d{2}))?)?)?)?$";d.to=d.to.concat(["hour","minute","second","millisecond",
+"meridian","utc","offset_sign","offset_hours","offset_minutes"])}d.reg=RegExp(e,"i")})})();(function(){["today","yesterday","tomorrow","weekday","weekend","future","past"].concat(G).concat(F).each(function(a){j(Date.prototype,"is"+a.capitalize(),function(){return this.is(a)})})})()})();

0 comments on commit 1daf0e0

Please sign in to comment.
Something went wrong with that request. Please try again.