Return-Path: X-Original-To: apmail-helix-commits-archive@minotaur.apache.org Delivered-To: apmail-helix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F8F217324 for ; Sun, 29 Mar 2015 00:04:35 +0000 (UTC) Received: (qmail 45816 invoked by uid 500); 29 Mar 2015 00:04:35 -0000 Delivered-To: apmail-helix-commits-archive@helix.apache.org Received: (qmail 45741 invoked by uid 500); 29 Mar 2015 00:04:35 -0000 Mailing-List: contact commits-help@helix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@helix.apache.org Delivered-To: mailing list commits@helix.apache.org Received: (qmail 45175 invoked by uid 99); 29 Mar 2015 00:04:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Mar 2015 00:04:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EE503E2F3F; Sun, 29 Mar 2015 00:04:33 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kanak@apache.org To: commits@helix.apache.org Date: Sun, 29 Mar 2015 00:04:49 -0000 Message-Id: <22bd0924914d419ea00f37a7e72c2e8a@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [17/20] helix git commit: Added more licenses; mvn -Prat -DskipTests passes http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/admin.js ---------------------------------------------------------------------- diff --git a/helix-ui/src/main/resources/assets/js/admin.js b/helix-ui/src/main/resources/assets/js/admin.js index 410049d..8f02059 100644 --- a/helix-ui/src/main/resources/assets/js/admin.js +++ b/helix-ui/src/main/resources/assets/js/admin.js @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + $(document).ready(function() { $("#add-cluster-form button").click(function(event) { event.preventDefault() http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/app.js ---------------------------------------------------------------------- diff --git a/helix-ui/src/main/resources/assets/js/app.js b/helix-ui/src/main/resources/assets/js/app.js index 8b6691c..d8caf0b 100644 --- a/helix-ui/src/main/resources/assets/js/app.js +++ b/helix-ui/src/main/resources/assets/js/app.js @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + $(document).ready(function() { var hashRoute = getHashRoute() http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/accordion.min.js ---------------------------------------------------------------------- diff --git a/helix-ui/src/main/resources/assets/js/components/accordion.min.js b/helix-ui/src/main/resources/assets/js/components/accordion.min.js deleted file mode 100644 index 54d3d00..0000000 --- a/helix-ui/src/main/resources/assets/js/components/accordion.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ -!function(t){var i;jQuery&&UIkit&&(i=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-accordion",["uikit"],function(){return i||t(jQuery,UIkit)})}(function(t,i){function o(i){var o=t(i),e="auto";if(o.is(":visible"))e=o.outerHeight();else{var a={position:o.css("position"),visibility:o.css("visibility"),display:o.css("display")};e=o.css({position:"absolute",visibility:"hidden",display:"block"}).outerHeight(),o.css(a)}return e}return i.component("accordion",{defaults:{showfirst:!0,collapse:!0,animate:!0,easing:"swing",duration:300,toggle:".uk-accordion-title",containers:".uk-accordion-content",clsactive:"uk-active"},boot:function(){i.ready(function(t){setTimeout(function(){i.$("[data-@-accordion]",t).each(function(){var t=i.$(this);t.data("accordion")||i.accordion(t,i.Utils.options(t.attr("data-@-accordion")))})},0)})},init:function(){var i=this;this.element.on("click",this.options.toggle,function(o){o.preventDefault(),i.toggleItem(t(this).data("wrapper"),i.options .animate,i.options.collapse)}),this.update(),this.options.showfirst&&this.toggleItem(this.toggle.eq(0).data("wrapper"),!1,!1)},toggleItem:function(t,e,a){var n=this;t.data("toggle").toggleClass(this.options.clsactive);var s=t.data("toggle").hasClass(this.options.clsactive);a&&(this.toggle.not(t.data("toggle")).removeClass(this.options.clsactive),this.content.not(t.data("content")).parent().stop().animate({height:0},{easing:this.options.easing,duration:e?this.options.duration:0})),e?t.stop().animate({height:s?o(t.data("content")):0},{easing:this.options.easing,duration:this.options.duration,complete:function(){s&&i.Utils.checkDisplay(t.data("content")),n.trigger("display.uk.check")}}):(t.stop().height(s?"auto":0),s&&i.Utils.checkDisplay(t.data("content")),this.trigger("display.uk.check")),this.element.trigger("toggle.uk.accordion",[s,t.data("toggle"),t.data("content")])},update:function(){var i,o,e,a=this;this.toggle=this.find(this.options.toggle),this.content=this.find(this.options. containers),this.content.each(function(n){i=t(this),o=i.parent().data("wrapper")?i.parent():t(this).wrap('
').parent(),e=a.toggle.eq(n),o.data("toggle",e),o.data("content",i),e.data("wrapper",o),i.data("wrapper",o)}),this.element.trigger("update.uk.accordion",[this])}}),i.accordion}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/autocomplete.min.js ---------------------------------------------------------------------- diff --git a/helix-ui/src/main/resources/assets/js/components/autocomplete.min.js b/helix-ui/src/main/resources/assets/js/components/autocomplete.min.js deleted file mode 100644 index d4505f5..0000000 --- a/helix-ui/src/main/resources/assets/js/components/autocomplete.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ -!function(t){var e;jQuery&&UIkit&&(e=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-autocomplete",["uikit"],function(){return e||t(jQuery,UIkit)})}(function(t,e){"use strict";var i;return e.component("autocomplete",{defaults:{minLength:3,param:"search",method:"post",delay:300,loadingClass:"@-loading",flipDropdown:!1,skipClass:"@-skip",hoverClass:"@-active",source:null,renderer:null,template:''},visible:!1,value:null,selected:null,boot:function(){e.$html.on("focus.autocomplete.uikit","[data-@-autocomplete]",function(){var t=e.$(this);if(!t.data("autocomplete")){e.autocomplete(t,e.Utils.options(t.attr("data-@-autocomplete")))}}),e.$html.on("click.autocomplete.uikit",function(t){i&&t.target!=i.input[0]&&i.hide()})},init:function(){var t=this,i=!1,s=e.Utils.debounce(function(){return i?i=!1:(t.handle(),void 0)},this.optio ns.delay);this.dropdown=this.find(".@-dropdown"),this.template=this.find('script[type="text/autocomplete"]').html(),this.template=e.Utils.template(e.prefix(this.template||this.options.template)),this.input=this.find("input:first").attr("autocomplete","off"),this.dropdown.length||(this.dropdown=e.$('
').appendTo(this.element)),this.options.flipDropdown&&this.dropdown.addClass(e.prefix("@-dropdown-flip")),this.input.on({keydown:function(e){if(e&&e.which&&!e.shiftKey)switch(e.which){case 13:i=!0,t.selected&&(e.preventDefault(),t.select());break;case 38:e.preventDefault(),t.pick("prev",!0);break;case 40:e.preventDefault(),t.pick("next",!0);break;case 27:case 9:t.hide()}},keyup:s}),this.dropdown.on("click",e.prefix(".@-autocomplete-results > *"),function(){t.select()}),this.dropdown.on("mouseover",e.prefix(".@-autocomplete-results > *"),function(){t.pick(e.$(this))}),this.triggercomplete=s},handle:function(){var t=this,e=this.value;return this.value=this.inpu t.val(),this.value.lengthl-1?o.length-1:l-1)}else n=o["next"==t?"first":"last"]();n=e.$(n)}}else n=t;if(n&&n.length&&(this.selected=n,o.removeClass(this.options.hoverClass),this.selected.addClass(this.options.hoverClass),i)){var a=n.position().top,r=s.dropdown.scrollTop(),h=s.dropdown.height();(a>h||0>a)&&s.dropdown.scrollTop(r+a)}},select:function(){if(this.selected){var t=this.selected.data();this.trigger("select.uk.autocomplete",[t,this]),t.value&&this.input.val(t.value).trigger("change"),this.hide()}},show:function(){return this.visible?void 0:(this.visible=!0,this.element.addClass("@-o pen"),i=this,this)},hide:function(){return this.visible?(this.visible=!1,this.element.removeClass("@-open"),i===this&&(i=!1),this):void 0},request:function(){var e=this,i=function(t){t&&e.render(t),e.element.removeClass(e.options.loadingClass)};if(this.element.addClass(this.options.loadingClass),this.options.source){var s=this.options.source;switch(typeof this.options.source){case"function":this.options.source.apply(this,[i]);break;case"object":if(s.length){var o=[];s.forEach(function(t){t.value&&-1!=t.value.toLowerCase().indexOf(e.value.toLowerCase())&&o.push(t)}),i(o)}break;case"string":var n={};n[this.options.param]=this.value,t.ajax({url:this.options.source,data:n,type:this.options.method,dataType:"json"}).done(function(t){i(t||[])});break;default:i(null)}}else this.element.removeClass(e.options.loadingClass)},render:function(t){return this.dropdown.empty(),this.selected=!1,this.options.renderer?this.options.renderer.apply(this,[t]):t&&t.length&&(this.dropdown.append(this.templa te({items:t})),this.show(),this.trigger("show.uk.autocomplete")),this}}),e.autocomplete}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/cover.min.js ---------------------------------------------------------------------- diff --git a/helix-ui/src/main/resources/assets/js/components/cover.min.js b/helix-ui/src/main/resources/assets/js/components/cover.min.js deleted file mode 100644 index 3bf7a2a..0000000 --- a/helix-ui/src/main/resources/assets/js/components/cover.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ -!function(t){var i;jQuery&&UIkit&&(i=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-cover",["uikit"],function(){return i||t(jQuery,UIkit)})}(function(t,i){"use strict";i.component("cover",{defaults:{automute:!0},boot:function(){i.ready(function(t){i.$("[data-@-cover]",t).each(function(){var t=i.$(this);if(!t.data("cover")){i.cover(t,i.Utils.options(t.attr("data-@-cover")))}})})},init:function(){if(this.parent=this.element.parent(),i.$win.on("load resize orientationchange",i.Utils.debounce(function(){this.check()}.bind(this),100)),this.on("display.uk.check",function(){this.element.is(":visible")&&this.check()}.bind(this)),this.check(),this.element.data("cover",this),this.element.is("iframe")&&this.options.automute){var t=this.element.attr("src");this.element.attr("src","").on("load",function(){this.contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")}).attr("src",[t,t.indexOf("?")>-1?"&":"?","enablejsapi=1&api= 1"].join(""))}},check:function(){this.element.css({width:"",height:""}),this.dimension={w:this.element.width(),h:this.element.height()},this.element.attr("width")&&!isNaN(this.element.attr("width"))&&(this.dimension.w=this.element.attr("width")),this.element.attr("height")&&!isNaN(this.element.attr("height"))&&(this.dimension.h=this.element.attr("height")),this.ratio=this.dimension.w/this.dimension.h;var t,i,e=this.parent.width(),n=this.parent.height();e/this.ratio',o+='',o+='',t.formSelect){var u,c,d,l,h=(new Date).getFullYear(),f=[];for(r=0;r '+n.i18n.months[r]+""):f.push('");for(u=''+n.i18n.months[e.month]+'",f=[],d=i?i.year():h-50,l=s?s.year():h+20,r=d;l>=r;r++)r==e.year?f.push('"):f.push('");c=''+e.year+'",o+='
'+u+" "+c+"
"}else o+='
'+n.i18n.months[e.month]+" "+e.year+"
";for(o+="",o+='',o+="",r=0;r"+e.weekdays[r]+"");for(o+="",o+="",r=0;r";for(var m=0;ms&&p.push("@-datepicker-date-disabled @-datepicker-table-muted"),i&&i>_.day&&p.push("@-datepicker-date-disabled @-datepicker-table-muted"),o+='"}o+=""}return o+="",o+="
'+_.day.format("D")+"
",t.prefix(o)}},boot:function(){t.$win.on("resize orientationchange",function(){s&&s.hide()}),t.$html.on("focus.datepicker.uikit","[data-@-datepicker]",function(e){var n=t.$(this);if(!n.data("datepicker")){e.preventDefault();{t.datepicker(n,t.Utils.options(n.attr("data-@-datepicker")))}n.trigger("focus")}}),t.$html.on("click.datepicker.uikit",function(e){var a=t.$(e.target);!s||a[0]==n[0]||a.data("datepicker")||a.parents(".@-datepicker:first").length||s.hide()})},init:function(){if(!t.support.touch||"date"!=this.element.attr("type")||this.options.mobile){var i=this;this.current=this.element.val()?a(this.element.val(),this.options.format):a(),this.on ("click",function(){s!==i&&i.pick(this.value)}).on("change",function(){i.element.val()&&!a(i.element.val(),i.options.format).isValid()&&i.element.val(a().format(i.options.format))}),n||(n=t.$('
'),n.on("click",".@-datepicker-next, .@-datepicker-previous, [data-date]",function(e){e.stopPropagation(),e.preventDefault();var i=t.$(this);return i.hasClass("@-datepicker-date-disabled")?!1:(i.is("[data-date]")?(s.element.val(a(i.data("date")).format(s.options.format)).trigger("change"),n.hide(),s=!1):s.add(1*(i.hasClass("@-datepicker-next")?1:-1),"months"),void 0)}),n.on("change",".update-picker-month, .update-picker-year",function(){var t=e(this);s[t.is(".update-picker-year")?"setYear":"setMonth"](Number(t.val()))}),n.appendTo("body"))}},pick:function(e){var i=this.element.offset(),r={top:i.top+this.element.outerHeight()+this.options.offsettop,left:i.left,right:""};this.current=e?a(e,this.options.format):a(),this.initdate=this.current.format("YYYY -MM-DD"),this.update(),"right"==t.langdirection&&(r.right=window.innerWidth-(r.left+this.element.outerWidth()),r.left=""),n.css(r).show(),this.trigger("show.uk.datepicker"),s=this},add:function(e,t){this.current.add(e,t),this.update()},setMonth:function(e){this.current.month(e),this.update()},setYear:function(e){this.current.year(e),this.update()},update:function(){var e=this.getRows(this.current.year(),this.current.month()),t=this.options.template(e,this.options);n.html(t),this.trigger("update.uk.datepicker")},getRows:function(e,t){var n=this.options,s=a().format("YYYY-MM-DD"),i=[31,e%4===0&&e%100!==0||e%400===0?29:28,31,30,31,30,31,31,30,31,30,31][t],r=new Date(e,t,1).getDay(),o={month:t,year:e,weekdays:[],days:[]},u=[];o.weekdays=function(){for(var e=0,t=[];7>e;e++){for(var a=e+(n.weekstart||0);a>=7;)a-=7;t.push(n.i18n.weekdays[a])}return t}(),n.weekstart&&n.weekstart>0&&(r-=n.weekstart,0>r&&(r+=7));for(var c=i+r,d=c;d>7;)d-=7;c+=7-d;for(var l,h,f,m,_,p=0,y=0;c>p;p++)l=new Date(e ,t,1+(p-r)),h=n.mindate&&ln.maxdate,_=!(r>p||p>=i+r),l=a(l),f=this.initdate==l.format("YYYY-MM-DD"),m=s==l.format("YYYY-MM-DD"),u.push({selected:f,today:m,disabled:h,day:l,inmonth:_}),7===++y&&(o.days.push(u),u=[],y=0);return o},hide:function(){s&&s===this&&(n.hide(),s=!1,this.trigger("hide.uk.datepicker"))}}),a=function(e){function t(e,t,n){switch(arguments.length){case 2:return null!=e?e:t;case 3:return null!=e?e:null!=t?t:n;default:throw new Error("Implement me")}}function n(e,t){return Yt.call(e,t)}function a(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function s(e){Dt.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function i(e,t){var n=!0;return h(function(){return n&&(s(e),n=!1),t.apply(this,arguments)},t)}function r(e,t){mn[e]||(s(t),mn[e]=!0)}function o(e,t){return function(n ){return _(e.call(this,n),t)}}function u(e,t){return function(n){return this.localeData().ordinal(e.call(this,n),t)}}function c(){}function d(e,t){t!==!1&&F(e),f(this,e),this._d=new Date(+e._d)}function l(e){var t=w(e),n=t.year||0,a=t.quarter||0,s=t.month||0,i=t.week||0,r=t.day||0,o=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._milliseconds=+d+1e3*c+6e4*u+36e5*o,this._days=+r+7*i,this._months=+s+3*a+12*n,this._data={},this._locale=Dt.localeData(),this._bubble()}function h(e,t){for(var a in t)n(t,a)&&(e[a]=t[a]);return n(t,"toString")&&(e.toString=t.toString),n(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t){var n,a,s;if("undefined"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(e._i=t._i),"undefined"!=typeof t._f&&(e._f=t._f),"undefined"!=typeof t._l&&(e._l=t._l),"undefined"!=typeof t._strict&&(e._strict=t._strict),"undefined"!=typeof t._tzm&&(e._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(e._isUTC=t._isUTC),"unde fined"!=typeof t._offset&&(e._offset=t._offset),"undefined"!=typeof t._pf&&(e._pf=t._pf),"undefined"!=typeof t._locale&&(e._locale=t._locale),Ft.length>0)for(n in Ft)a=Ft[n],s=t[a],"undefined"!=typeof s&&(e[a]=s);return e}function m(e){return 0>e?Math.ceil(e):Math.floor(e)}function _(e,t,n){for(var a=""+Math.abs(e),s=e>=0;a.lengtha;a++)(n&&e[a]!==t[a]||!n&&S(e[a])!==S(t[a]))&&r++;return r+i}function v(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,"$1");e=on[e]||un[t]||t}return e}function w(e){var t,a,s={};for(a in e)n(e,a)&&(t=v(a),t&&(s[t]=e[a]));return s}function b(t){var n,a;if(0===t.indexOf("week"))n=7,a="day";else{if(0!==t.indexOf("month"))return;n=12,a="month"}Dt[t]=function(s,i){var r,o,u=Dt._locale[t],c=[];if("number"==typeof s&&(i=s,s=e),o=function(e){var t=Dt().utc().set(a,e);return u.call(Dt._locale,t,s||"")},null!=i)return o(i);for(r=0;n>r;r++)c.push(o(r));return c}}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function T(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function O(e,t,n){return ot(Dt([e,11,31+t-n]),t,n).week}function W(e){return U(e)?366:365}function U(e){return e%4===0&&e%100!==0||e%400===0}function F(e){var t;e._a&&-2===e._pf.overflow&&(t=e._a[wt]<0||e._a[wt]>11?wt:e._a[bt]<1||e._a[bt]>T(e._a[vt],e._a[wt])?bt:e._a[St]<0||e._a[St]>23?St:e._a[Tt]<0||e._a[Tt]>59?Tt:e._a[Ot]<0||e._a[Ot]>59?Ot:e._a[Wt]<0||e._a[Wt]>999?Wt:-1,e._pf._overflowDayOfYear&&(vt>t||t>bt)&&(t=bt),e._pf.overflow=t)}function G(e){return null==e._isValid&&(e._isValid=!isNaN(e._d.getTime())&&e._pf.overflow<0&&!e._pf.empty&&!e._pf.invalidMonth&&!e._pf.nullInput&&!e._pf.invalidFormat&&!e._pf.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===e._pf.charsLeftOver&&0===e._pf.unusedTokens.length)),e._isValid}function C(e){return e?e.toLowerCase().replace("_","-"):e}function z(e){for(var t,n,a,s,i=0;i0;){if(a=I(s.slice(0,t).join("-")))return a;if(n&&n.length>=t&&Y(s,n,!0)>=t-1)break;t--}i++}return null}function I(e){var t=null;if(!Ut[e]&&Gt)try{t=Dt.locale(),require("./locale/"+e),Dt.locale(t)}catch(n){}return Ut[e]}function x(e,t){return t._isUTC?Dt(e).zone(t._offset||0):Dt(e).local()}function L(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function P(e){var t,n,a=e.match(xt);for(t=0,n=a.length;n>t;t++)a[t]=fn[a[t]]?fn[a[t]]:L(a[t]);return function(s){var i="";for(t=0;n>t;t++)i+=a[t]instanceof Function?a[t].call(s,e):a[t];return i}}function H(e,t){return e.isValid()?(t=A(t,e.localeData()),cn[t]||(cn[t]=P(t)),cn[t](e)):e.localeData().invalidDate()}function A(e,t){function n(e){return t.longDateFormat(e)||e}var a=5;for(Lt.lastIndex=0;a>=0&&Lt.test(e);)e=e.replace(Lt,n),Lt.lastIndex=0,a-=1;return e}function j(e,t){var n,a=t._strict;switch(e){case"Q":return qt;case"DDDD":return Rt;case"YYYY":case"GGGG":case"gggg":ret urn a?Xt:At;case"Y":case"G":case"g":return Kt;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return a?Bt:jt;case"S":if(a)return qt;case"SS":if(a)return Qt;case"SSS":if(a)return Rt;case"DDD":return Ht;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Nt;case"a":case"A":return t._locale._meridiemParse;case"X":return Vt;case"Z":case"ZZ":return Et;case"T":return $t;case"SSSS":return Zt;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return a?Qt:Pt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Pt;case"Do":return Jt;default:return n=new RegExp(R(Q(e.replace("\\","")),"i"))}}function Z(e){e=e||"";var t=e.match(Et)||[],n=t[t.length-1]||[],a=(n+"").match(sn)||["-",0,0],s=+(60*a[1])+S(a[2]);return"+"===a[0]?-s:s}function N(e,t,n){var a,s=n._a;switch(e){case"Q":null!=t&&(s[wt]=3*(S(t)-1));break;case"M":case"MM":null!=t&&(s[wt]=S(t)-1);break;case"MMM":case"MMMM":a=n._locale.monthsParse( t),null!=a?s[wt]=a:n._pf.invalidMonth=t;break;case"D":case"DD":null!=t&&(s[bt]=S(t));break;case"Do":null!=t&&(s[bt]=S(parseInt(t,10)));break;case"DDD":case"DDDD":null!=t&&(n._dayOfYear=S(t));break;case"YY":s[vt]=Dt.parseTwoDigitYear(t);break;case"YYYY":case"YYYYY":case"YYYYYY":s[vt]=S(t);break;case"a":case"A":n._isPm=n._locale.isPM(t);break;case"H":case"HH":case"h":case"hh":s[St]=S(t);break;case"m":case"mm":s[Tt]=S(t);break;case"s":case"ss":s[Ot]=S(t);break;case"S":case"SS":case"SSS":case"SSSS":s[Wt]=S(1e3*("0."+t));break;case"X":n._d=new Date(1e3*parseFloat(t));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=Z(t);break;case"dd":case"ddd":case"dddd":a=n._locale.weekdaysParse(t),null!=a?(n._w=n._w||{},n._w.d=a):n._pf.invalidWeekday=t;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":e=e.substr(0,1);case"gggg":case"GGGG":case"GGGGG":e=e.substr(0,2),t&&(n._w=n._w||{},n._w[e]=S(t));break;case"gg":case"GG":n._w=n._w||{},n._w[e]=Dt.parseTwoDigitYear(t)}}function E(e){var n,a,s,i, r,o,u;n=e._w,null!=n.GG||null!=n.W||null!=n.E?(r=1,o=4,a=t(n.GG,e._a[vt],ot(Dt(),1,4).year),s=t(n.W,1),i=t(n.E,1)):(r=e._locale._week.dow,o=e._locale._week.doy,a=t(n.gg,e._a[vt],ot(Dt(),r,o).year),s=t(n.w,1),null!=n.d?(i=n.d,r>i&&++s):i=null!=n.e?n.e+r:r),u=ut(a,s,i,o,r),e._a[vt]=u.year,e._dayOfYear=u.dayOfYear}function $(e){var n,a,s,i,r=[];if(!e._d){for(s=J(e),e._w&&null==e._a[bt]&&null==e._a[wt]&&E(e),e._dayOfYear&&(i=t(e._a[vt],s[vt]),e._dayOfYear>W(i)&&(e._pf._overflowDayOfYear=!0),a=at(i,0,e._dayOfYear),e._a[wt]=a.getUTCMonth(),e._a[bt]=a.getUTCDate()),n=0;3>n&&null==e._a[n];++n)e._a[n]=r[n]=s[n];for(;7>n;n++)e._a[n]=r[n]=null==e._a[n]?2===n?1:0:e._a[n];e._d=(e._useUTC?at:nt).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()+e._tzm)}}function V(e){var t;e._d||(t=w(e._i),e._a=[t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond],$(e))}function J(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.ge tMonth(),t.getDate()]}function q(e){if(e._f===Dt.ISO_8601)return B(e),void 0;e._a=[],e._pf.empty=!0;var t,n,a,s,i,r=""+e._i,o=r.length,u=0;for(a=A(e._f,e._locale).match(xt)||[],t=0;t0&&e._pf.unusedInput.push(i),r=r.slice(r.indexOf(n)+n.length),u+=n.length),fn[s]?(n?e._pf.empty=!1:e._pf.unusedTokens.push(s),N(s,n,e)):e._strict&&!n&&e._pf.unusedTokens.push(s);e._pf.charsLeftOver=o-u,r.length>0&&e._pf.unusedInput.push(r),e._isPm&&e._a[St]<12&&(e._a[St]+=12),e._isPm===!1&&12===e._a[St]&&(e._a[St]=0),$(e),F(e)}function Q(e){return e.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,a,s){return t||n||a||s})}function R(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(e){var t,n,s,i,r;if(0===e._f.length)return e._pf.invalidFormat=!0,e._d=new Date(0/0),void 0;for(i=0;ir)&&(s=r,n=t));h(e,n||t)}function B(e){var t,n,a=e._i,s=en.exec(a);if(s){for(e._pf.iso=!0,t=0,n=nn.length;n>t;t++)if(nn[t][1].exec(a)){e._f=nn[t][0]+(s[6]||" ");break}for(t=0,n=an.length;n>t;t++)if(an[t][1].exec(a)){e._f+=an[t][0];break}a.match(Et)&&(e._f+="Z"),q(e)}else e._isValid=!1}function K(e){B(e),e._isValid===!1&&(delete e._isValid,Dt.createFromInputFallback(e))}function et(e,t){var n,a=[];for(n=0;ne&&o.setFullYear(e),o}function at(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFul lYear(e),t}function st(e,t){if("string"==typeof e)if(isNaN(e)){if(e=t.weekdaysParse(e),"number"!=typeof e)return null}else e=parseInt(e,10);return e}function it(e,t,n,a,s){return s.relativeTime(t||1,!!n,e,a)}function rt(e,t,n){var a=Dt.duration(e).abs(),s=Mt(a.as("s")),i=Mt(a.as("m")),r=Mt(a.as("h")),o=Mt(a.as("d")),u=Mt(a.as("M")),c=Mt(a.as("y")),d=s0,d[4]=n,it.apply({},d)}function ot(e,t,n){var a,s=n-t,i=n-e.day();return i>s&&(i-=7),s-7>i&&(i+=7),a=Dt(e).add(i,"d"),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function ut(e,t,n,a,s){var i,r,o=at(e,0,1).getUTCDay();return o=0===o?7:o,n=null!=n?n:s,i=s-o+(o>a?7:0)-(s>o?7:0),r=7*(t-1)+(n-s)+i+1,{year:r>0?e:e-1,dayOfYear:r>0?r:W(e-1)+r}}function ct(t){var n=t._i,a=t._f;return t._locale=t._locale||Dt.localeData(t._l),null===n||a===e&&""===n?Dt.inva lid({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),Dt.isMoment(n)?new d(n,!0):(a?k(a)?X(t):q(t):tt(t),new d(t)))}function dt(e,t){var n,a;if(1===t.length&&k(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],a=1;a=0?"+":"-";return t+_(Math.abs(e),6)},gg:function(){return _(this.weekYear()%100,2)},gggg:function(){return _(this.weekYear(),4)},ggggg:function(){return _(this.weekYear(),5)},GG:function(){return _(this.isoWeekYear()%100,2)},GGGG:function(){return _(this.isoWeekYear(),4)},GGGGG:function(){return _(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:fun ction(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return S(this.milliseconds()/100)},SS:function(){return _(S(this.milliseconds()/10),2)},SSS:function(){return _(this.milliseconds(),3)},SSSS:function(){return _(this.milliseconds(),3)},Z:function(){var e=-this.zone(),t="+";return 0>e&&(e=-e,t="-"),t+_(S(e/60),2)+":"+_(S(e)%60,2)},ZZ:function(){var e=-this.zone(),t="+";return 0>e&&(e=-e,t="-"),t+_(S(e/60),2)+_(S(e)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},mn={},_n=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];ln.length;)gt=ln.pop(),fn[gt+"o"]=u(fn[gt],gt);for(;hn.length;)gt=hn.pop(),fn[gt+gt]=o(fn[gt],2);fn.DDDD=o(fn.DDD,3),h(c.prototype,{set:function(e){var t,n;for(n in e)t =e[n],"function"==typeof t?this[n]=t:this["_"+n]=t},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(e){return this._months[e.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(e){var t,n,a;for(this._monthsParse||(this._monthsParse=[]),t=0;12>t;t++)if(this._monthsParse[t]||(n=Dt.utc([2e3,t]),a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[t]=new RegExp(a.replace(".",""),"i")),this._monthsParse[t].test(e))return t},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},weekdaysPa rse:function(e){var t,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(n=Dt([2e3,1]).day(t),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t},isPM:function(e){return"p"===(e+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:funct ion(e,t){var n=this._calendar[e];return"function"==typeof n?n.apply(t):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(e,t,n,a){var s=this._relativeTime[n];return"function"==typeof s?s(e,t,n,a):s.replace(/%d/i,e)},pastFuture:function(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace("%d",e)},_ordinal:"%d",preparse:function(e){return e},postformat:function(e){return e},week:function(e){return ot(e,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),Dt=function(t,n,s,i){var r;return"boolean"==typeof s&&(i=s,s=e),r={},r._isAMomentObject=!0,r._i=t,r._f=n,r._l=s,r._strict=i,r._isUTC=!1,r._pf=a(),ct(r)},Dt.suppressDeprecationWarnings=!1,Dt .createFromInputFallback=i("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i)}),Dt.min=function(){var e=[].slice.call(arguments,0);return dt("isBefore",e)},Dt.max=function(){var e=[].slice.call(arguments,0);return dt("isAfter",e)},Dt.utc=function(t,n,s,i){var r;return"boolean"==typeof s&&(i=s,s=e),r={},r._isAMomentObject=!0,r._useUTC=!0,r._isUTC=!0,r._l=s,r._i=t,r._f=n,r._strict=i,r._pf=a(),ct(r).utc()},Dt.unix=function(e){return Dt(1e3*e)},Dt.duration=function(e,t){var a,s,i,r,o=e,u=null;return Dt.isDuration(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(u=zt.exec(e))?(a="-"===u[1]?-1:1,o={y:0,d:S(u[bt])*a,h:S(u[St])*a,m:S(u[Tt])*a,s:S(u[Ot])*a,ms:S(u[Wt])*a}):(u=It.exec(e))?(a="-"===u[1]?-1:1,i=function(e){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)? 0:t)*a},o={y:i(u[2]),M:i(u[3]),d:i(u[4]),h:i(u[5]),m:i(u[6]),s:i(u[7]),w:i(u[8])}):"object"==typeof o&&("from"in o||"to"in o)&&(r=y(Dt(o.from),Dt(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),s=new l(o),Dt.isDuration(e)&&n(e,"_locale")&&(s._locale=e._locale),s},Dt.version=kt,Dt.defaultFormat=tn,Dt.ISO_8601=function(){},Dt.momentProperties=Ft,Dt.updateOffset=function(){},Dt.relativeTimeThreshold=function(t,n){return dn[t]===e?!1:n===e?dn[t]:(dn[t]=n,!0)},Dt.lang=i("moment.lang is deprecated. Use moment.locale instead.",function(e,t){return Dt.locale(e,t)}),Dt.locale=function(e,t){var n;return e&&(n="undefined"!=typeof t?Dt.defineLocale(e,t):Dt.localeData(e),n&&(Dt.duration._locale=Dt._locale=n)),Dt._locale._abbr},Dt.defineLocale=function(e,t){return null!==t?(t.abbr=e,Ut[e]||(Ut[e]=new c),Ut[e].set(t),Dt.locale(e),Ut[e]):(delete Ut[e],null)},Dt.langData=i("moment.langData is deprecated. Use moment.localeData instead.",function(e){return Dt.localeData(e)}),Dt.localeData=function(e){va r t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Dt._locale;if(!k(e)){if(t=I(e))return t;e=[e]}return z(e)},Dt.isMoment=function(e){return e instanceof d||null!=e&&n(e,"_isAMomentObject")},Dt.isDuration=function(e){return e instanceof l};for(gt=_n.length-1;gt>=0;--gt)b(_n[gt]);Dt.normalizeUnits=function(e){return v(e)},Dt.invalid=function(e){var t=Dt.utc(0/0);return null!=e?h(t._pf,e):t._pf.userInvalidated=!0,t},Dt.parseZone=function(){return Dt.apply(null,arguments).parseZone()},Dt.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)},h(Dt.fn=d.prototype,{clone:function(){return Dt(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var e=Dt(this).utc();return 00:!1},parsingFlags:function(){return h({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(e){return this.zone(0,e)},local:function(e){return this._isUTC&&(this.zone(0,e),this._isUTC=!1,e&&this.add(this._dateTzOffset(),"m")),this},format:function(e){var t=H(this,e||Dt.defaultFormat);return this.localeData().postformat(t)},add:D(1,"add"),subtract:D(-1,"subtract"),diff:function(e,t,n){var a,s,i,r=x(e,this),o=6e4*(this.zone()-r.zone());return t=v(t),"year"===t||"month"===t?(a=432e5*(this.daysInMonth()+r.daysInMonth()),s=12*(this.year()-r.year())+(this.month()-r.month()),i=this-Dt(this).startOf("month")-(r-Dt(r).startOf("month")),i-=6e4*(this.zone()-Dt(this ).startOf("month").zone()-(r.zone()-Dt(r).startOf("month").zone())),s+=i/a,"year"===t&&(s/=12)):(a=this-r,s="second"===t?a/1e3:"minute"===t?a/6e4:"hour"===t?a/36e5:"day"===t?(a-o)/864e5:"week"===t?(a-o)/6048e5:a),n?s:m(s)},from:function(e,t){return Dt.duration({to:this,from:e}).locale(this.locale()).humanize(!t)},fromNow:function(e){return this.from(Dt(),e)},calendar:function(e){var t=e||Dt(),n=x(t,this).startOf("day"),a=this.diff(n,"days",!0),s=-6>a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse";return this.format(this.localeData().calendar(s,this))},isLeapYear:function(){return U(this.year())},isDST:function(){return this.zone()+e):+this.clone().startOf(t)>+Dt(e).startOf(t)},isBefore:function(e,t){return t=v("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=Dt.isMoment(e)?e:Dt(e),+e>+this):+this.clone().startOf(t)<+Dt(e).startOf(t)},isSame:function(e,t){return t=v(t||"millisecond"),"millisecond"===t?(e=Dt.isMoment(e)?e:Dt(e),+this===+e):+this.clone().startOf(t)===+x(e,this).startOf(t)},min:i("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(e){re turn e=Dt.apply(null,arguments),this>e?this:e}),max:i("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(e){return e=Dt.apply(null,arguments),e>this?this:e}),zone:function(e,t){var n,a=this._offset||0;return null==e?this._isUTC?a:this._dateTzOffset():("string"==typeof e&&(e=Z(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(n=this._dateTzOffset()),this._offset=e,this._isUTC=!0,null!=n&&this.subtract(n,"m"),a!==e&&(!t||this._changeInProgress?g(this,Dt.duration(a-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Dt.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(e){return e=e?Dt(e).zone():0,(this.zone()-e)%60===0},daysInMonth:function(){return T(this .year(),this.month())},dayOfYear:function(e){var t=Mt((Dt(this).startOf("day")-Dt(this).startOf("year"))/864e5)+1; -return null==e?t:this.add(e-t,"d")},quarter:function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},weekYear:function(e){var t=ot(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},isoWeekYear:function(e){var t=ot(this,1,4).year;return null==e?t:this.add(e-t,"y")},week:function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},isoWeek:function(e){var t=ot(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},weekday:function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},isoWeekday:function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},isoWeeksInYear:function(){return O(this.year(),1,4)},weeksInYear:function(){var e=this.localeData()._week;return O(this.year(),e.dow,e.doy)},get:function(e){return e=v(e),this[e]()},set:function(e,t){return e=v(e),"function"==typeof this[e]&&this[e](t),this},locale:function(t){ var n;return t===e?this._locale._abbr:(n=Dt.localeData(t),null!=n&&(this._locale=n),this)},lang:i("moment().lang() is deprecated. Use moment().localeData() instead.",function(t){return t===e?this.localeData():this.locale(t)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),Dt.fn.millisecond=Dt.fn.milliseconds=mt("Milliseconds",!1),Dt.fn.second=Dt.fn.seconds=mt("Seconds",!1),Dt.fn.minute=Dt.fn.minutes=mt("Minutes",!1),Dt.fn.hour=Dt.fn.hours=mt("Hours",!0),Dt.fn.date=mt("Date",!0),Dt.fn.dates=i("dates accessor is deprecated. Use date instead.",mt("Date",!0)),Dt.fn.year=mt("FullYear",!0),Dt.fn.years=i("years accessor is deprecated. Use year instead.",mt("FullYear",!0)),Dt.fn.days=Dt.fn.day,Dt.fn.months=Dt.fn.month,Dt.fn.weeks=Dt.fn.week,Dt.fn.isoWeeks=Dt.fn.isoWeek,Dt.fn.quarters=Dt.fn.quarter,Dt.fn.toJSON=Dt.fn.toISOString,h(Dt.duration.fn=l.prototype,{_bubble:function(){var e,t,n,a=this._milliseconds,s=this._ days,i=this._months,r=this._data,o=0;r.milliseconds=a%1e3,e=m(a/1e3),r.seconds=e%60,t=m(e/60),r.minutes=t%60,n=m(t/60),r.hours=n%24,s+=m(n/24),o=m(_t(s)),s-=m(pt(o)),i+=m(s/30),s%=30,o+=m(i/12),i%=12,r.days=s,r.months=i,r.years=o},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return m(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12)},humanize:function(e){var t=rt(this,!e,this.localeData());return e&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(e,t){var n=Dt.duration(e ,t);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(e,t){var n=Dt.duration(e,t);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(e){return e=v(e),this[e.toLowerCase()+"s"]()},as:function(e){var t,n;if(e=v(e),"month"===e||"year"===e)return t=this._days+this._milliseconds/864e5,n=this._months+12*_t(t),"month"===e?n:n/12;switch(t=this._days+pt(this._months/12),e){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return 24*t+this._milliseconds/36e5;case"minute":return 24*t*60+this._milliseconds/6e4;case"second":return 24*t*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*t*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+e)}},lang:Dt.fn.lang,locale:Dt.fn.locale,toIsoString:i("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var e=Math.abs(this.years()),t=Math.abs(this.months()),n=Math.abs(this.days()),a=Math.abs(this.hours()),s=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(a||s||i?"T":"")+(a?a+"H":"")+(s?s+"M":"")+(i?i+"S":""):"P0D"},localeData:function(){return this._locale}}),Dt.duration.fn.toString=Dt.duration.fn.toISOString;for(gt in rn)n(rn,gt)&&yt(gt.toLowerCase());return Dt.duration.fn.asMilliseconds=function(){return this.as("ms")},Dt.duration.fn.asSeconds=function(){return this.as("s")},Dt.duration.fn.asMinutes=function(){return this.as("m")},Dt.duration.fn.asHours=function(){return this.as("h")},Dt.duration.fn.asDays=function(){return this.as("d")},Dt.duration.fn.asWeeks=function(){return this.as("weeks")},Dt.duration.fn.asMonths=function(){return this.as("M")},Dt.duration.fn.asYears=function(){r eturn this.as("y")},Dt.locale("en",{ordinal:function(e){var t=e%10,n=1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),Dt}.call(this),t.Utils.moment=a,t.datepicker}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/form-password.min.js ---------------------------------------------------------------------- diff --git a/helix-ui/src/main/resources/assets/js/components/form-password.min.js b/helix-ui/src/main/resources/assets/js/components/form-password.min.js deleted file mode 100644 index 12730a4..0000000 --- a/helix-ui/src/main/resources/assets/js/components/form-password.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ -!function(t){var i;jQuery&&UIkit&&(i=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-form-password",["uikit"],function(){return i||t(jQuery,UIkit)})}(function(t,i){"use strict";return i.component("formPassword",{defaults:{lblShow:"Show",lblHide:"Hide"},boot:function(){i.$html.on("click.formpassword.uikit","[data-@-form-password]",function(t){var e=i.$(this);if(!e.data("formPassword")){t.preventDefault();{i.formPassword(e,i.Utils.options(e.attr("data-@-form-password")))}e.trigger("click")}})},init:function(){var t=this;this.on("click",function(i){if(i.preventDefault(),t.input.length){var e=t.input.attr("type");t.input.attr("type","text"==e?"password":"text"),t.element.text(t.options["text"==e?"lblShow":"lblHide"])}}),this.input=this.element.next("input").length?this.element.next("input"):this.element.prev("input"),this.element.text(this.options[this.input.is("[type='password']")?"lblShow":"lblHide"]),this.element.data("formPassword",this)}}),i.formPassword}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/form-select.min.js ---------------------------------------------------------------------- diff --git a/helix-ui/src/main/resources/assets/js/components/form-select.min.js b/helix-ui/src/main/resources/assets/js/components/form-select.min.js deleted file mode 100644 index 5dcb8bd..0000000 --- a/helix-ui/src/main/resources/assets/js/components/form-select.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ -!function(t){var e;jQuery&&UIkit&&(e=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-form-select",["uikit"],function(){return e||t(jQuery,UIkit)})}(function(t,e){"use strict";return e.component("formSelect",{defaults:{target:">span:first"},boot:function(){e.ready(function(t){e.$("[data-@-form-select]",t).each(function(){var t=e.$(this);if(!t.data("formSelect")){e.formSelect(t,e.Utils.options(t.attr("data-@-form-select")))}})})},init:function(){var t=this;this.target=this.find(this.options.target),this.select=this.find("select"),this.select.on("change",function(){var e=t.select[0],i=function(){try{t.target.text(e.options[e.selectedIndex].text)}catch(n){}return i};return i()}()),this.element.data("formSelect",this)}}),e.formSelect}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/grid.min.js ---------------------------------------------------------------------- diff --git a/helix-ui/src/main/resources/assets/js/components/grid.min.js b/helix-ui/src/main/resources/assets/js/components/grid.min.js deleted file mode 100644 index b200840..0000000 --- a/helix-ui/src/main/resources/assets/js/components/grid.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ -!function(t){var i;jQuery&&UIkit&&(i=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-grid",["uikit"],function(){return i||t(jQuery,UIkit)})}(function(t,i){"use strict";function e(t){return n(t)}i.component("grid",{defaults:{colwidth:"auto",animation:!0,duration:200,gutter:0,controls:!1},boot:function(){i.ready(function(t){i.$("[data-@-grid]",t).each(function(){var t=i.$(this);if(!t.data("grid")){i.grid(t,i.Utils.options(t.attr("data-@-grid")))}})})},init:function(){var e=this;if(this.element.css({position:"relative"}),this.options.controls){var n=t(this.options.controls);n.on("click","[data-uk-filter]",function(i){i.preventDefault(),e.filter(t(this).data("ukFilter"))}),n.on("click","[data-uk-sort]",function(i){i.preventDefault();var n=t(this).data("ukSort").split(":");e.sort(n[0],n[1])})}i.$win.on("load resize orientationchange",i.Utils.debounce(function(){this.updateLayout()}.bind(this),100)),this.updateLayout(),this.on("display.@.check",function(){e.element.i s(":visible")&&e.updateLayout()}),i.$html.on("changed.@.dom",function(){e.updateLayout()})},_prepareElements:function(){var t,i=this.element.children(":not([data-grid-prepared])");i.length&&(t={position:"absolute","box-sizing":"border-box",width:"auto"==this.options.colwidth?"":this.options.colwidth},this.options.gutter&&(t["padding-left"]=this.options.gutter,t["padding-bottom"]=this.options.gutter,this.element.css("margin-left",-1*this.options.gutter)),i.attr("data-grid-prepared","true").css(t))},updateLayout:function(i){this._prepareElements(),i=i||this.element.children(":visible");var n,o,r,a,d,h,s,u,f=this.options.gutter,p=i,l=this.element.width()+2*f+2,c=0,g=0,m=[];this.trigger("beforeupdate.@.grid",[p]),p.each(function(){for(u=e(this),n=t(this),o=u.outerWidth,r=u.outerHeight,c=0,g=0,d=0,s=m.length;s>d;d++)a=m[d],c<=a.aX&&(c=a.aX),c+o>l&&(c=0),g<=a.aY&&(g=a.aY);m.push({ele:n,top:g,left:c,width:o,height:r,aY:g+r,aX:c+o})});var v,b=0;for(d=0,s=m.length;s>d;d++){for(a=m[d],g=0,h=0 ;d>h;h++)v=m[h],a.left-1&&(r=!0)})),n[r?"visible":"hidden"].push(e)}),n.hidden=t(n.hidden).map(function(){return this[0]}),n.visible=t(n.visible).map(function(){return this[0]}),n.hidden.fadeOut(this.options.duration),n.visible.show(),this.updateLayout(n.visible)},sort:function(i,e){e=e||1,"st ring"==typeof e&&(e="desc"==e.toLowerCase()?-1:1);var n=this.element.children();n.sort(function(n,o){return n=t(n),o=t(o),(o.data(i)||"")<(n.data(i)||"")?e:-1*e}).appendTo(this.element),this.updateLayout(n.filter(":visible"))}});var n=function(){function t(t){if(t){if("string"==typeof u[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var i,e=0,n=s.length;n>e;e++)if(i=s[e]+t,"string"==typeof u[i])return i}}function i(t){var i=parseFloat(t),e=-1===t.indexOf("%")&&!isNaN(i);return e&&i}function e(){}function n(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0,e=p.length;e>i;i++){var n=p[i];t[n]=0}return t}function o(){if(!l){l=!0;var e=window.getComputedStyle;if(a=function(){var t=e?function(t){return e(t,null)}:function(t){return t.currentStyle};return function(i){var e=t(i);return e||f("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}}(),d=t("boxSizing")){var n=document.crea teElement("div");n.style.width="200px",n.style.padding="1px 2px 3px 4px",n.style.borderStyle="solid",n.style.borderWidth="1px 2px 3px 4px",n.style[d]="border-box";var o=document.body||document.documentElement;o.appendChild(n);var r=a(n);h=200===i(r.width),o.removeChild(n)}}}function r(t){if(o(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=a(t);if("none"===e.display)return n();var r={};r.width=t.offsetWidth,r.height=t.offsetHeight;for(var s=r.isBorderBox=!(!d||!e[d]||"border-box"!==e[d]),u=0,f=p.length;f>u;u++){var l=p[u],c=e[l],g=parseFloat(c);r[l]=isNaN(g)?0:g}var m=r.paddingLeft+r.paddingRight,v=r.paddingTop+r.paddingBottom,b=r.marginLeft+r.marginRight,y=r.marginTop+r.marginBottom,w=r.borderLeftWidth+r.borderRightWidth,x=r.borderTopWidth+r.borderBottomWidth,W=s&&h,k=i(e.width);k!==!1&&(r.width=k+(W?0:m+w));var L=i(e.height);return L!==!1&&(r.height=L+(W?0:v+x)),r.innerWidth=r.width-(m+w),r.innerHeight=r.height-(v+x),r.outerWidth=r.widt h+b,r.outerHeight=r.height+y,r}}var a,d,h,s="Webkit Moz ms Ms O".split(" "),u=document.documentElement.style,f="undefined"==typeof console?e:function(t){console.error(t)},p=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],l=!1;return r}()}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/htmleditor.min.js ---------------------------------------------------------------------- diff --git a/helix-ui/src/main/resources/assets/js/components/htmleditor.min.js b/helix-ui/src/main/resources/assets/js/components/htmleditor.min.js deleted file mode 100644 index 982e4b1..0000000 --- a/helix-ui/src/main/resources/assets/js/components/htmleditor.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ -!function(t){var e;jQuery&&UIkit&&(e=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-htmleditor",["uikit"],function(){return e||t(jQuery,UIkit)})}(function(t,e){"use strict";var i=[];return e.component("htmleditor",{defaults:{iframe:!1,mode:"split",markdown:!1,autocomplete:!0,height:500,maxsplitsize:1e3,markedOptions:{gfm:!0,tables:!0,breaks:!0,pedantic:!0,sanitize:!1,smartLists:!0,smartypants:!1,langPrefix:"lang-"},codemirror:{mode:"htmlmixed",lineWrapping:!0,dragDrop:!1,autoCloseTags:!0,matchTags:!0,autoCloseBrackets:!0,matchBrackets:!0,indentUnit:4,indentWithTabs:!1,tabSize:4,hintOptions:{completionSingle:!1}},toolbar:["bold","italic","strike","link","image","blockquote","listUl","listOl"],lblPreview:"Preview",lblCodeview:"HTML",lblMarkedview:"Markdown"},boot:function(){e.ready(function(t){e.$("textarea[data-@-htmleditor]",t).each(function(){var t,i=e.$(this);i.data("htmleditor")||(t=e.htmleditor(i,e.Utils.options(i.attr("data-@-htmleditor"))))})})},init:fun ction(){var o=this,r=e.components.htmleditor.template;this.CodeMirror=this.options.CodeMirror||CodeMirror,this.buttons={},r=r.replace(/\{:lblPreview\}/g,this.options.lblPreview),r=r.replace(/\{:lblCodeview\}/g,this.options.lblCodeview),this.htmleditor=e.$(r),this.content=this.htmleditor.find(".@-htmleditor-content"),this.toolbar=this.htmleditor.find(".@-htmleditor-toolbar"),this.preview=this.htmleditor.find(".@-htmleditor-preview").children().eq(0),this.code=this.htmleditor.find(".@-htmleditor-code"),this.element.before(this.htmleditor).appendTo(this.code),this.editor=this.CodeMirror.fromTextArea(this.element[0],this.options.codemirror),this.editor.htmleditor=this,this.editor.on("change",e.Utils.debounce(function(){o.render()},150)),this.editor.on("change",function(){o.editor.save()}),this.code.find(".CodeMirror").css("height",this.options.height),this.options.iframe?(this.iframe=e.$('',width:t,height:e},o.type="iframe",o.promise.resolve()};if((s=o.source.match(t))&&(h=s[2]),(s=o.source.match(e))&&(h=s[1]),h){if(n[h])a(h,n[h].width,n[h].height);else{var d=new Image;d.onerror=function(){n[h]={width:640,height:320},a(h,n[h].width,n[h].height)},d.onload=function(){n[h]={width:d.width,height:d.height},a(h,d.width,d.height)},d.src="//img.youtube.com/vi/"+h+"/0.jpg"}i. stopImmediatePropagation()}})}}),t.plugin("lightbox","vimeo",{init:function(t){var e,o=/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/;t.on("show.uk.lightbox",function(t,h){var s,a=function(i,t,e){h.meta={content:'',width:t,height:e},h.type="iframe",h.promise.resolve()};(e=h.source.match(o))&&(s=e[2],n[s]?a(s,n[s].width,n[s].height):i.ajax({type:"GET",url:"http://vimeo.com/api/oembed.json?url="+encodeURI(h.source),jsonp:"callback",dataType:"jsonp",success:function(i){n[s]={width:i.width,height:i.height},a(s,n[s].width,n[s].height)}}),t.stopImmediatePropagation())})}}),t.plugin("lightbox","video",{init:function(t){t.on("show.uk.lightbox",function(t,e){var o=function(i,t,o){e.meta={content:'',width:t,height:o},e.type="video",e.promise.resolve()};if("vi deo"==e.type||e.source.match(/\.(mp4|webm|ogv)$/))if(n[e.source])o(e.source,n[e.source].width,n[e.source].height);else var h=i('').attr("src",e.source).appendTo("body"),s=setInterval(function(){h[0].videoWidth&&(clearInterval(s),n[e.source]={width:h[0].videoWidth,height:h[0].videoHeight},o(e.source,n[e.source].width,n[e.source].height),h.remove())},20)})}}),t.lightbox}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/helix/blob/8d552070/helix-ui/src/main/resources/assets/js/components/nestable.min.js ---------------------------------------------------------------------- diff --git a/helix-ui/src/main/resources/assets/js/components/nestable.min.js b/helix-ui/src/main/resources/assets/js/components/nestable.min.js deleted file mode 100644 index ff6c06d..0000000 --- a/helix-ui/src/main/resources/assets/js/components/nestable.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! UIkit 2.16.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ -!function(t){var e;jQuery&&UIkit&&(e=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-nestable",["uikit"],function(){return e||t(jQuery,UIkit)})}(function(t,e){"use strict";var s,i="ontouchstart"in window,n=t("html"),a=[],l=e.$win,o=function(){var t=document.createElement("div"),e=document.documentElement;if(!("pointerEvents"in t.style))return!1;t.style.pointerEvents="auto",t.style.pointerEvents="x",e.appendChild(t);var s=window.getComputedStyle&&"auto"===window.getComputedStyle(t,"").pointerEvents;return e.removeChild(t),!!s}(),r=i?"touchstart":"mousedown",d=i?"touchmove":"mousemove",h=i?"touchend":"mouseup",p=i?"touchcancel":"mouseup";return e.component("nestable",{defaults:{prefix:"@",listNodeName:"ul",itemNodeName:"li",listBaseClass:"{prefix}-nestable",listClass:"{prefix}-nestable-list",listitemClass:"{prefix}-nestable-list-item",itemClass:"{prefix}-nestable-item",dragClass:"{prefix}-nestable-list-dragged",movingClass:"{prefix}-nestable-moving",handleClass:" {prefix}-nestable-handle",collapsedClass:"{prefix}-collapsed",placeClass:"{prefix}-nestable-placeholder",noDragClass:"{prefix}-nestable-nodrag",emptyClass:"{prefix}-nestable-empty",group:0,maxDepth:10,threshold:20},boot:function(){e.$html.on("mousemove touchmove",function(){if(s){var t=s.offset().top;twindow.innerHeight+e.$win.scrollTop()&&e.$win.scrollTop(e.$win.scrollTop()+Math.ceil(s.height()/2))}}),e.ready(function(t){e.$("[data-@-nestable]",t).each(function(){var t=e.$(this);if(!t.data("nestable")){e.nestable(t,e.Utils.options(t.attr("data-@-nestable")))}})})},init:function(){var n=this;n.options.prefix=e.prefix(n.options.prefix),Object.keys(this.options).forEach(function(t){-1!=String(n.options[t]).indexOf("{prefix}")&&(n.options[t]=n.options[t].replace("{prefix}",n.options.prefix))}),this.tplempty='
',this.find(">"+this.options.itemNodeName).a ddClass(this.options.listitemClass).end().find("ul:not(.ignore-list)").addClass(this.options.listClass).find(">li").addClass(this.options.listitemClass),this.element.children(this.options.itemNodeName).length||this.element.append(this.tplempty),this.element.data("nestable-id","ID"+(new Date).getTime()+"RAND"+Math.ceil(1e5*Math.random())),this.reset(),this.element.data("nestable-group",this.options.group),this.placeEl=t('
'),this.find(this.options.itemNodeName).each(function(){n.setParent(t(this))}),this.on("click","[data-nestable-action]",function(e){if(!n.dragEl&&(i||0===e.button)){e.preventDefault();var s=t(e.currentTarget),a=s.data("nestableAction"),l=s.closest(n.options.itemNodeName);"collapse"===a&&n.collapseItem(l),"expand"===a&&n.expandItem(l),"toggle"===a&&n.toggleItem(l)}});var a=function(e){var s=t(e.target);if(!s.hasClass(n.options.handleClass)){if(s.closest("."+n.options.noDragClass).length)return;s=s.closest("."+n.options.handleC lass)}!s.length||n.dragEl||!i&&0!==e.button||i&&1!==e.touches.length||(e.preventDefault(),n.dragStart(i?e.touches[0]:e),n.trigger("start.uk.nestable",[n]))},o=function(t){n.dragEl&&(t.preventDefault(),n.dragMove(i?t.touches[0]:t),n.trigger("move.uk.nestable",[n]))},c=function(t){n.dragEl&&(t.preventDefault(),n.dragStop(i?t.touches[0]:t),n.trigger("stop.uk.nestable",[n])),s=!1};i?(this.element[0].addEventListener(r,a,!1),window.addEventListener(d,o,!1),window.addEventListener(h,c,!1),window.addEventListener(p,c,!1)):(this.on(r,a),l.on(d,o),l.on(h,c))},serialize:function(){var e,s=0,i=this,n=function(e,s){var a=[],l=e.children(i.options.itemNodeName);return l.each(function(){var e=t(this),l=t.extend({},e.data()),o=e.children(i.options.listNodeName);o.length&&(l.children=n(o,s+1)),a.push(l)}),a};return e=n(i.element,s)},list:function(e){var s=[],i=this,n=0,e=t.extend({},i.options,e),a=function(i,n,l){var o=i.children(e.itemNodeName);o.each(function(i){var o=t(this),r=t.extend({parent_i d:l?l:null,depth:n,order:i},o.data()),d=o.children(e.listNodeName);s.push(r),d.length&&a(d,n+1,o.data(e.idProperty||"id"))})};return a(i.element,n),s},reset:function(){this.mouse={offsetX:0,offsetY:0,startX:0,startY:0,lastX:0,lastY:0,nowX:0,nowY:0,distX:0,distY:0,dirAx:0,dirX:0,dirY:0,lastDirX:0,lastDirY:0,distAxX:0,distAxY:0},this.moving=!1,this.dragEl=null,this.dragRootEl=null,this.dragDepth=0,this.hasNewRoot=!1,this.pointEl=null;for(var t=0;tthis.dragDepth&&(this.dragDepth=h);n.addClass(this.options.movingClass)},dragStop:function(){var t=this.dragEl.children(this.options.itemNodeName).first();t[0].parentNode.removeChild(t[0]),this.placeEl.replaceWith(t),this.dragEl.remove(),(this.tmpDragOnSiblings[0]!=t[0].previousSibling||this.tmpDragOnSiblings[1]&&this.tmpDragOnSiblings[1]!=t[0].nextSibling)&&(this.element.trigger("change.uk.nestable",[t,this.hasNewRoot?"added":"moved"]),this.hasNewRoot&&this.dragRootEl.trigger(e.prefix("change.uk.nestable"),[t,"removed"])),this.reset(),n.removeClass(this.options.movingClass)},dragMove:function(e){var s,i,n,l,r,d=this.options,h=this.mouse;this.dragEl.css({left:e.pageX-h.offsetX,top:e.pageY-h.offsetY}),h.lastX=h.nowX,h.lastY=h.nowY,h.nowX=e.pageX,h.nowY=e.pageY,h.distX=h.nowX-h.lastX,h.distY=h.nowY-h.lastY,h.lastDirX=h.dirX,h.lastDirY=h.dirY,h.dirX=0===h.distX?0:h.distX>0?1:-1,h.dirY=0===h.distY?0:h.distY>0?1:-1;var p=Math.abs(h.distX)> Math.abs(h.distY)?1:0;if(!h.moving)return h.dirAx=p,h.moving=!0,void 0;h.dirAx!==p?(h.distAxX=0,h.distAxY=0):(h.distAxX+=Math.abs(h.distX),0!==h.dirX&&h.dirX!==h.lastDirX&&(h.distAxX=0),h.distAxY+=Math.abs(h.distY),0!==h.dirY&&h.dirY!==h.lastDirY&&(h.distAxY=0)),h.dirAx=p,h.dirAx&&h.distAxX>=d.threshold&&(h.distAxX=0,n=this.placeEl.prev(d.itemNodeName),h.distX>0&&n.length&&!n.hasClass(d.collapsedClass)&&(s=n.find(d.listNodeName).last(),r=this.placeEl.parents(d.listNodeName).length,r+this.dragDepth<=d.maxDepth&&(s.length?(s=n.children(d.listNodeName).last(),s.append(this.placeEl)):(s=t("<"+d.listNodeName+"/>").addClass(d.listClass),s.append(this.placeEl),n.append(s),this.setParent(n)))),h.distX<0&&(l=this.placeEl.next(d.itemNodeName),l.length||(i=this.placeEl.parent(),this.placeEl.closest(d.itemNodeName).after(this.placeEl),i.children().length||this.unsetParent(i.parent()))));var c=!1;if(o||(this.dragEl[0].style.visibility="hidden"),this.pointEl=t(document.elementFromPoint(e.pageX-do cument.body.scrollLeft,e.pageY-(window.pageYOffset||document.documentElement.scrollTop))),o||(this.dragEl[0].style.visibility="visible"),this.pointEl.hasClass(d.handleClass))this.pointEl=this.pointEl.closest(d.itemNodeName);else{var m=this.pointEl.closest("."+d.itemClass);m.length&&(this.pointEl=m.closest(d.itemNodeName))}if(this.pointEl.hasClass(d.emptyClass))c=!0;else if(this.pointEl.data("nestable")&&!this.pointEl.children().length)c=!0,this.pointEl=t(this.tplempty).appendTo(this.pointEl);else if(!this.pointEl.length||!this.pointEl.hasClass(d.listitemClass))return;var g=this.element,f=this.pointEl.closest("."+this.options.listBaseClass),u=g[0]!==this.pointEl.closest("."+this.options.listBaseClass)[0],E=f;if(!h.dirAx||u||c){if(u&&d.group!==E.data("nestable-group"))return;if(a.push(g),r=this.dragDepth-1+this.pointEl.parents(d.listNodeName).length,r>d.maxDepth)return;var v=e.pageY