diff --git a/bower.json b/bower.json index 679abd4..ee1fbde 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "delite-build", - "version": "0.8.0", + "version": "0.8.1", "dependencies": { "jquery": ">=2.1", "requirejs": "2.1.x", @@ -8,7 +8,7 @@ "dpointer-build": "0.5.x" }, "devDependencies": { - "delite": "0.8.0" + "delite": "0.8.1" }, "keywords": [ "web-components", diff --git a/layer.js b/layer.js index 621c9f2..375e9c9 100644 --- a/layer.js +++ b/layer.js @@ -1,9 +1,9 @@ require.config({"config":{"delite/theme":{"layersMap":{"delite/themes/{{theme}}/common.css":"delite/themes/layer_{{theme}}.css","delite/themes/{{theme}}/global.css":"delite/themes/layer_{{theme}}.css","delite/Scrollable/themes/{{theme}}/Scrollable.css":"delite/themes/layer_{{theme}}.css","delite/DialogUnderlay/themes/{{theme}}/DialogUnderlay.css":"delite/themes/layer_{{theme}}.css"}}}}); -define("requirejs-text/text",["module"],function(a){"use strict";var b,c,d,e,f,g=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],h=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,i=/]*>\s*([\s\S]+)\s*<\/body>/im,j="undefined"!=typeof location&&location.href,k=j&&location.protocol&&location.protocol.replace(/\:/,""),l=j&&location.hostname,m=j&&(location.port||void 0),n={},o=a.config&&a.config()||{};return b={version:"2.0.14",strip:function(a){if(a){a=a.replace(h,"");var b=a.match(i);b&&(a=b[1])}else a="";return a},jsEscape:function(a){return a.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:o.createXhr||function(){var a,b,c;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(b=0;3>b;b+=1){c=g[b];try{a=new ActiveXObject(c)}catch(d){}if(a){g=[c];break}}return a},parseName:function(a){var b,c,d,e=!1,f=a.lastIndexOf("."),g=0===a.indexOf("./")||0===a.indexOf("../");return-1!==f&&(!g||f>1)?(b=a.substring(0,f),c=a.substring(f+1)):b=a,d=c||b,f=d.indexOf("!"),-1!==f&&(e="strip"===d.substring(f+1),d=d.substring(0,f),c?c=d:b=d),{moduleName:b,ext:c,strip:e}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(a,c,d,e){var f,g,h,i=b.xdRegExp.exec(a);return i?(f=i[2],g=i[3],g=g.split(":"),h=g[1],g=g[0],!(f&&f!==c||g&&g.toLowerCase()!==d.toLowerCase()||(h||g)&&h!==e)):!0},finishLoad:function(a,c,d,e){d=c?b.strip(d):d,o.isBuild&&(n[a]=d),e(d)},load:function(a,c,d,e){if(e&&e.isBuild&&!e.inlineText)return void d();o.isBuild=e&&e.isBuild;var f=b.parseName(a),g=f.moduleName+(f.ext?"."+f.ext:""),h=c.toUrl(g),i=o.useXhr||b.useXhr;return 0===h.indexOf("empty:")?void d():void(!j||i(h,k,l,m)?b.get(h,function(c){b.finishLoad(a,f.strip,c,d)},function(a){d.error&&d.error(a)}):c([g],function(a){b.finishLoad(f.moduleName+"."+f.ext,f.strip,a,d)}))},write:function(a,c,d,e){if(n.hasOwnProperty(c)){var f=b.jsEscape(n[c]);d.asModule(a+"!"+c,"define(function () { return '"+f+"';});\n")}},writeFile:function(a,c,d,e,f){var g=b.parseName(c),h=g.ext?"."+g.ext:"",i=g.moduleName+h,j=d.toUrl(g.moduleName+h)+".js";b.load(i,d,function(c){var d=function(a){return e(j,a)};d.asModule=function(a,b){return e.asModule(a,j,b)},b.write(a,i,d,f)},f)}},"node"===o.env||!o.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"]?(c=require.nodeRequire("fs"),b.get=function(a,b,d){try{var e=c.readFileSync(a,"utf8");"\ufeff"===e[0]&&(e=e.substring(1)),b(e)}catch(f){d&&d(f)}}):"xhr"===o.env||!o.env&&b.createXhr()?b.get=function(a,c,d,e){var f,g=b.createXhr();if(g.open("GET",a,!0),e)for(f in e)e.hasOwnProperty(f)&&g.setRequestHeader(f.toLowerCase(),e[f]);o.onXhr&&o.onXhr(g,a),g.onreadystatechange=function(b){var e,f;4===g.readyState&&(e=g.status||0,e>399&&600>e?(f=new Error(a+" HTTP status: "+e),f.xhr=g,d&&d(f)):c(g.responseText),o.onXhrComplete&&o.onXhrComplete(g,a))},g.send(null)}:"rhino"===o.env||!o.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?b.get=function(a,b){var c,d,e="utf-8",f=new java.io.File(a),g=java.lang.System.getProperty("line.separator"),h=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(f),e)),i="";try{for(c=new java.lang.StringBuffer,d=h.readLine(),d&&d.length()&&65279===d.charAt(0)&&(d=d.substring(1)),null!==d&&c.append(d);null!==(d=h.readLine());)c.append(g),c.append(d);i=String(c.toString())}finally{h.close()}b(i)}:("xpconnect"===o.env||!o.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(d=Components.classes,e=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),f="@mozilla.org/windows-registry-key;1"in d,b.get=function(a,b){var c,g,h,i={};f&&(a=a.replace(/\//g,"\\")),h=new FileUtils.File(a);try{c=d["@mozilla.org/network/file-input-stream;1"].createInstance(e.nsIFileInputStream),c.init(h,1,0,!1),g=d["@mozilla.org/intl/converter-input-stream;1"].createInstance(e.nsIConverterInputStream),g.init(c,"utf-8",c.available(),e.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),g.readString(c.available(),i),g.close(),c.close(),b(i.value)}catch(j){throw new Error((h&&h.path||"")+": "+j)}}),b}),define("delite/uacss",["decor/sniff"],function(a){var b=a("ie"),c=Math.floor,d=a("ff"),e={"d-webkit":a("webkit"),"d-safari":a("safari"),"d-chrome":a("chrome"),"d-ios":a("ios"),"d-android":a("android")};b&&(e["d-ie"]=!0,e["d-ie-"+c(b)]=!0),d&&(e["d-ff-"+c(d)]=!0);var f="";for(var g in e)e[g]&&(f+=g+" ");return document.body.className=(document.body.className+" "+f).trim(),a}),define("delite/theme",["require","requirejs-dplugins/has","module","requirejs-dplugins/css"],function(a,b,c,d){"use strict";var e=c.config(),f={themeMap:e.themeMap||[[/.*/,"bootstrap"]],getTheme:function(){var a=f.theme||e.theme;if(!a){var b=location.search.match(/theme=(\w+)/);a=b&&b.length>1?b[1]:null}if(!a)for(var c=e.userAgent||(location.search.match(/ua=(\w+)/)?RegExp.$1:navigator.userAgent),d=this.themeMap,g=0;g0&&a[b].parent===a[b-1].popup;b--);return a[b]},open:function(a){return this._prepareToOpen(a),this._size(a,!0),this._position(a)},_prepareToOpen:function(a){var f=this._stack,g=a.popup,h=a.around;for(g.id||(g.id=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++);f.length&&(!a.parent||!f[f.length-1].popup.contains(a.parent));)this.close(f[f.length-1].popup);var i=this.moveOffScreen(g),j=["d-popup"];((g.baseClass||"")+" "+g.className).split(/ +/).forEach(function(a){a&&j.push(a+"-popup")}),b.mix(i,{id:g.id+"_wrapper",className:j.join(" ")}),i.style.zIndex=this._beginZIndex+f.length,i._popupParent=a.parent?a.parent:null,0===f.length&&h&&(this._firstAroundNode=h,this._firstAroundPosition=e.position(h),this._aroundMoveListener=setTimeout(this._checkScroll.bind(this),50)),d("config-bgIframe")&&!g.bgIframe&&(g.bgIframe=new c(i)),i.style.visibility="visible",g.style.visibility="visible";var k=[],l=function(b){"Esc"!==b.key&&"Tab"!==b.key||!a.onCancel||(b.stopPropagation(),b.preventDefault(),a.onCancel())}.bind(this);i.addEventListener("keydown",l),k.push({remove:function(){i.removeEventListener("keydown",l)}}),a.onCancel&&k.push(g.on("cancel",a.onCancel)),a.onExecute&&(k.push(g.on("execute",a.onExecute)),k.push(g.on("change",a.onExecute)));var m=Object.create(a);m.wrapper=i,m.handlers=k,f.push(m)},_size:function(a,b){var c=a.popup,d=c._popupWrapper,e=a.around,g=a.orient||["below","below-alt","above","above-alt"],h=f.getEffectiveBox(c.ownerDocument);if(b&&(d.style.height="auto","center"===g[0]&&(d.style.width="auto"),a._naturalHeight=c.offsetHeight,a._naturalWidth=c.offsetWidth),"center"===g[0])d.style.height=a._naturalHeight>.9*h.h?Math.floor(.9*h.h)+"px":"auto",d.style.width=a._naturalWidth>.9*h.w?Math.floor(.9*h.w)+"px":"auto";else{var i;if("maxHeight"in a&&-1!==a.maxHeight)i=a.maxHeight||1/0;else{var j=e?e.getBoundingClientRect():{top:a.y-(a.padding||0),height:2*(a.padding||0)};i=Math.floor(Math.max(j.top,h.h-(j.top+j.height)))}d.style.height=a._naturalHeight>i?i+"px":"auto"}c.style.height=d.style.height},_position:function(a){var b=a.popup,c=b._popupWrapper,d=a.around,f=a.orient||["below","below-alt","above","above-alt"],h=a.parent?"rtl"!==a.parent.effectiveDir:g(b.ownerDocument);if("center"!==f[0]){var i=b.orient?b.orient.bind(b):null;return d?e.around(c,d,f,h,i):e.at(c,a,"R"===f?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding,i)}e.center(c)},close:function(a){for(var b=this._stack;a&&b.some(function(b){return b.popup===a})||!a&&b.length;){var c=b.pop(),d=c.popup,e=c.onClose;d.bgIframe&&(d.bgIframe.destroy(),delete d.bgIframe);for(var f;f=c.handlers.pop();)f.remove();this.hide(d),e&&e()}0===b.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),this._firstAroundNode=this._firstAroundPosition=this._aroundMoveListener=null)}});return new i}),define("delite/place",["./Viewport"],function(a){function b(b,c,d,e){var f=a.getEffectiveBox(b.ownerDocument),g=b.style;b.parentNode&&"body"===String(b.parentNode.tagName).toLowerCase()||b.ownerDocument.body.appendChild(b);var h=null;c.some(function(a){var c=a.corner,i=a.pos,j=0,k={w:{L:f.l+f.w-i.x,R:i.x-f.l,M:f.w}[c.charAt(1)],h:{T:f.t+f.h-i.y,B:i.y-f.t,M:f.h}[c.charAt(0)]};if(g.left=g.right="auto",d){var l=d(b,a.aroundCorner,c,k,e);j="undefined"==typeof l?0:l}var m=g.display,n=g.visibility;"none"===g.display&&(g.visibility="hidden",g.display="");var o=b.getBoundingClientRect();g.display=m,g.visibility=n;var p={L:i.x,R:i.x-o.width,M:Math.max(f.l,Math.min(f.l+f.w,i.x+(o.width>>1))-o.width)}[c.charAt(1)],q={T:i.y,B:i.y-o.height,M:Math.max(f.t,Math.min(f.t+f.h,i.y+(o.height>>1))-o.height)}[c.charAt(0)],r=Math.max(f.l,p),s=Math.max(f.t,q),t=Math.min(f.l+f.w,p+o.width),u=Math.min(f.t+f.h,q+o.height),v=t-r,w=u-s;return j+=o.width-v+(o.height-w),(null==h||j>1)}[a.charAt(1)],y:{T:v,B:v+x,M:v+(x>>1)}[a.charAt(0)]}})}var i;if("string"==typeof c||"offsetWidth"in c||"ownerSVGElement"in c){if(i=d.position(c),/^(above|below)/.test(e[0])){var j=function(a){var b=getComputedStyle(a);return{t:parseFloat(b.borderTopWidth),b:parseFloat(b.borderBottomWidth)}},k=j(c),l=c.firstElementChild?j(c.firstElementChild):{t:0,b:0},m=j(a),n=a.firstElementChild?j(a.firstElementChild):{t:0,b:0};i.y+=Math.min(k.t+l.t,m.t+n.t),i.h-=Math.min(k.t+l.t,m.t+n.t)+Math.min(k.b+l.b,m.b+n.b)}}else i=c;if(c.parentNode)for(var o="absolute"===getComputedStyle(c).position,p=c.parentNode;p&&1===p.nodeType&&"BODY"!==p.nodeName;){var q=d.position(p),r=getComputedStyle(p);if(/^(relative|absolute)$/.test(r.position)&&(o=!1),!o&&/^(hidden|auto|scroll)$/.test(r.overflow)){var s=Math.min(i.y+i.h,q.y+q.h),t=Math.min(i.x+i.w,q.x+q.w);i.x=Math.max(i.x,q.x),i.y=Math.max(i.y,q.y),i.h=s-i.y,i.w=t-i.x}"absolute"===r.position&&(o=!0),p=p.parentNode}var u=i.x,v=i.y,w=i.w,x=i.h,y=[];e.forEach(function(a){var b=f;switch(a){case"above-centered":h("TM","BM");break;case"below-centered":h("BM","TM");break;case"after-centered":b=!b;case"before-centered":h(b?"ML":"MR",b?"MR":"ML");break;case"after":b=!b;case"before":h(b?"TL":"TR",b?"TR":"TL"),h(b?"BL":"BR",b?"BR":"BL");break;case"below-alt":b=!b;case"below":h(b?"BL":"BR",b?"TL":"TR"),h(b?"BR":"BL",b?"TR":"TL");break;case"above-alt":b=!b;case"above":h(b?"TL":"TR",b?"BL":"BR"),h(b?"TR":"TL",b?"BR":"BL")}});var z=b(a,y,g,{w:w,h:x});return z.aroundNodePos=i,z},center:function(b){var c=b.style,d=/^rtl$/i.test(b.dir||b.ownerDocument.body.dir||b.ownerDocument.documentElement.dir);c.top="-9999px",c[d?"right":"left"]="-9999px";var e=a.getEffectiveBox(),f=b.getBoundingClientRect();c.top=e.t+(e.h-f.height)/2+"px",c.left=e.l+(e.w-f.width)/2+"px",c.right="auto"},position:function(a){var b=a.getBoundingClientRect(),c=a.ownerDocument,d=c.defaultView;return{x:b.left+(d.pageXOffset||c.documentElement.scrollLeft),y:b.top+(d.pageYOffset||c.documentElement.scrollTop),h:b.height,w:b.width}}};return d}),define("delite/on",[],function(){return function(a,b,c){var d=!1,e={focusin:"focus",focusout:"blur"};if(b in e&&(b=e[b],d=!0),/^key(down|press|up)$/.test(b)){var f=c;c=function(a){var b=a.key||a.keyIdentifier||String.fromCharCode(a.charCode),c={"U+0020":"Spacebar","U+0008":"Backspace","U+0009":"Tab","U+001B":"Esc"," ":"Spacebar","U+00007F":"Backspace"}[b]||b.replace(/^U\+0*(.*)$/,function(b,c){var d=parseInt(c,16);return d>=65&&90>=d&&!a.shiftKey&&(d+=32),String.fromCharCode(d)});a.key!==c&&Object.defineProperty(a,"key",{value:c,enumerable:!0}),f(a)}}return a.addEventListener(b,c,d),{remove:function(){a.removeEventListener(b,c,d)}}}}),define("delite/hc",["requirejs-dplugins/has","requirejs-domready/domReady!"],function(a){return a.add("highcontrast",function(){if("undefined"==typeof window)return!1;var a=document.createElement("div");try{a.style.cssText="border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;",document.body.appendChild(a);var b=getComputedStyle(a);return b.borderTopColor===b.borderRightColor?b.color:null}catch(c){return console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+c.toString()),null}finally{document.body.removeChild(a)}}),a("highcontrast")&&(document.body.className=(document.body.className+" d-hc").trim()),a}),define("delite/handlebars",["module","require","requirejs-dplugins/has","requirejs-dplugins/Promise!","requirejs-text/text","./Template"],function(a,b,c,d,e,f){function g(a,b){for(var c=0,d=a.length,e=!1,f=[];d>c;){var g=a.indexOf(e?"}}":"{{",c),h=a.substring(c,-1===g?d:g);if(e){var i=h.trim();f.push(/this\./.test(i)?"("+i+")":b?"(this."+i+"== null ? '' : this."+i+")":"this."+i)}else h&&f.push("'"+h.replace(/(['\\])/g,"\\$1").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"'");c=-1===g?d:g+2,e=!e}return f.join(" + ")}var h={parse:function(a,b){for(var c,d,e=a.hasAttribute("is")?a.getAttribute("is"):a.tagName.replace(/^template-/i,"").toLowerCase(),g=f.getElement(e),i={},j={},k=0,l=a.attributes;d=l[k++];){var m=d.name,n=d.value;if(n||"boolean"==typeof g[m.toLowerCase()])switch(m){case"xmlns":b=n;break;case"is":break;case"attach-point":case"data-attach-point":c=n.split(/, */);break;default:/^on-/.test(m)?j[m.substring(3)]=n.replace(/\s*({{|}})\s*/g,""):i[m]=this.parseValueAttribute(e,g,m,n)}}return{tag:e,xmlns:b,attributes:i,connects:j,children:h.parseChildren(a,b),attachPoints:c}},parseValueAttribute:function(a,b,c,d){var e=f.getProp(a,c),h=typeof b[e];return e&&"string"!==h&&!/{{/.test(d)&&"style.cssText"!==e?"boolean"===h?"off"===d||"false"===d?"false":"true":d:g(d,"class"===c)},parseChildren:function(a,b){for(var c,d=[],e=a.firstChild;e;e=e.nextSibling){var f=e.nodeType;if(1===f)c=d.length,d.push(h.parse(e,b));else if(3===f){if(/^[ \t\n]*$/.test(e.nodeValue)){if(void 0===c)continue}else c=d.length;d.push(g(e.nodeValue,!0))}}return d.slice(0,c+1)},neutralizeTags:function(a){return a=a.replace(/(<\/? *)([-a-zA-Z0-9]+)/g,"$1template-$2"),a=a.replace(/]*?)\/?>/g,"")},toDom:function(a){a=h.neutralizeTags(a);var b;if(/b||(this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),h+500>b||(this._clearActiveWidgetsTimer=setTimeout(function(){delete this._clearActiveWidgetsTimer,this._setStack([])}.bind(this),0)))},_pointerDownOrFocusHandler:function(a,b){this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);var c=[];try{for(;a;)if(a._popupParent)a=a._popupParent;else if(a.tagName&&"body"===a.tagName.toLowerCase()){if(a===document.body)break;a=a.ownerDocument.defaultView.frameElement}else!a.render||"mouse"===b&&a.disabled||c.unshift(a),a=a.parentNode}catch(d){}this._setStack(c,b),h=(new Date).getTime(),g=a},_focusHandler:function(a){a&&9!==a.nodeType&&(f=(new Date).getTime(),(new Date).getTime()=0&&c[g]!==a[g];g--)f=c[g],f&&(f.emit("delite-deactivated",{bubbles:!1,by:b}),this.emit("deactivated",f,b));for(g++;e>=g;g++)f=a[g],f&&(f.emit("delite-activated",{bubbles:!1,by:b}),this.emit("activated",f,b))}}}),j=new i;return j.registerWin(window),j}),define("jquery/src/attributes/classes",["../core","../var/rnotwhite","../var/strundefined","../data/var/data_priv","../core/init"],function(a,b,c,d){var e=/[\t\r\n\f]/g;a.fn.extend({addClass:function(c){var d,f,g,h,i,j,k="string"==typeof c&&c,l=0,m=this.length;if(a.isFunction(c))return this.each(function(b){a(this).addClass(c.call(this,b,this.className))});if(k)for(d=(c||"").match(b)||[];m>l;l++)if(f=this[l],g=1===f.nodeType&&(f.className?(" "+f.className+" ").replace(e," "):" ")){for(i=0;h=d[i++];)g.indexOf(" "+h+" ")<0&&(g+=h+" ");j=a.trim(g),f.className!==j&&(f.className=j)}return this},removeClass:function(c){var d,f,g,h,i,j,k=0===arguments.length||"string"==typeof c&&c,l=0,m=this.length;if(a.isFunction(c))return this.each(function(b){a(this).removeClass(c.call(this,b,this.className))});if(k)for(d=(c||"").match(b)||[];m>l;l++)if(f=this[l],g=1===f.nodeType&&(f.className?(" "+f.className+" ").replace(e," "):"")){for(i=0;h=d[i++];)for(;g.indexOf(" "+h+" ")>=0;)g=g.replace(" "+h+" "," ");j=c?a.trim(g):"",f.className!==j&&(f.className=j)}return this},toggleClass:function(e,f){var g=typeof e;return"boolean"==typeof f&&"string"===g?f?this.addClass(e):this.removeClass(e):this.each(a.isFunction(e)?function(b){a(this).toggleClass(e.call(this,b,this.className,f),f)}:function(){if("string"===g)for(var f,h=0,i=a(this),j=e.match(b)||[];f=j[h++];)i.hasClass(f)?i.removeClass(f):i.addClass(f);else(g===c||"boolean"===g)&&(this.className&&d.set(this,"__className__",this.className),this.className=this.className||e===!1?"":d.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(e," ").indexOf(b)>=0)return!0;return!1}})}),define("jquery/src/core/init",["../core","./var/rsingleTag","../traversing/findFilter"],function(a,b){var c,d=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,e=a.fn.init=function(e,f){var g,h;if(!e)return this;if("string"==typeof e){if(g="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:d.exec(e),!g||!g[1]&&f)return!f||f.jquery?(f||c).find(e):this.constructor(f).find(e);if(g[1]){if(f=f instanceof a?f[0]:f,a.merge(this,a.parseHTML(g[1],f&&f.nodeType?f.ownerDocument||f:document,!0)),b.test(g[1])&&a.isPlainObject(f))for(g in f)a.isFunction(this[g])?this[g](f[g]):this.attr(g,f[g]);return this}return h=document.getElementById(g[2]),h&&h.parentNode&&(this.length=1,this[0]=h),this.context=document,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):a.isFunction(e)?"undefined"!=typeof c.ready?c.ready(e):e(a):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),a.makeArray(e,this))};return e.prototype=a.fn,c=a(document),e}), -define("jquery/src/traversing/findFilter",["../core","../var/indexOf","./var/rneedsContext","../selector"],function(a,b,c){function d(c,d,f){if(a.isFunction(d))return a.grep(c,function(a,b){return!!d.call(a,b,a)!==f});if(d.nodeType)return a.grep(c,function(a){return a===d!==f});if("string"==typeof d){if(e.test(d))return a.filter(d,c,f);d=a.filter(d,c)}return a.grep(c,function(a){return b.call(d,a)>=0!==f})}var e=/^.[^:#\[\.,]*$/;a.filter=function(b,c,d){var e=c[0];return d&&(b=":not("+b+")"),1===c.length&&1===e.nodeType?a.find.matchesSelector(e,b)?[e]:[]:a.find.matches(b,a.grep(c,function(a){return 1===a.nodeType}))},a.fn.extend({find:function(b){var c,d=this.length,e=[],f=this;if("string"!=typeof b)return this.pushStack(a(b).filter(function(){for(c=0;d>c;c++)if(a.contains(f[c],this))return!0}));for(c=0;d>c;c++)a.find(b,f[c],e);return e=this.pushStack(d>1?a.unique(e):e),e.selector=this.selector?this.selector+" "+b:b,e},filter:function(a){return this.pushStack(d(this,a||[],!1))},not:function(a){return this.pushStack(d(this,a||[],!0))},is:function(b){return!!d(this,"string"==typeof b&&c.test(b)?a(b):b||[],!1).length}})}),define("jquery/src/selector-native",["./core"],function(a){var b,c=window.document.documentElement,d=c.matches||c.webkitMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.msMatchesSelector,e=function(c,d){if(c===d)return b=!0,0;var e=d.compareDocumentPosition&&c.compareDocumentPosition&&c.compareDocumentPosition(d);return e?1&e?c===document||a.contains(document,c)?-1:d===document||a.contains(document,d)?1:0:4&e?-1:1:c.compareDocumentPosition?-1:1};a.extend({find:function(b,c,d,e){var f,g,h=0;if(d=d||[],c=c||document,!b||"string"!=typeof b)return d;if(1!==(g=c.nodeType)&&9!==g)return[];if(e)for(;f=e[h++];)a.find.matchesSelector(f,b)&&d.push(f);else a.merge(d,c.querySelectorAll(b));return d},unique:function(a){var c,d=[],f=0,g=0;if(b=!1,a.sort(e),b){for(;c=a[f++];)c===a[f]&&(g=d.push(f));for(;g--;)a.splice(d[g],1)}return a},text:function(b){var c,d="",e=0,f=b.nodeType;if(f){if(1===f||9===f||11===f)return b.textContent;if(3===f||4===f)return b.nodeValue}else for(;c=b[e++];)d+=a.text(c);return d},contains:function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!c.contains(d))},isXMLDoc:function(a){return"HTML"!==(a.ownerDocument||a).documentElement.nodeName},expr:{attrHandle:{},match:{bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]/}}}),a.extend(a.find,{matches:function(b,c){return a.find(b,null,null,c)},matchesSelector:function(a,b){return d.call(a,b)},attr:function(a,b){return a.getAttribute(b)}})}),define("jquery/src/traversing/var/rneedsContext",["../../core","../../selector"],function(a){return a.expr.match.needsContext}),define("jquery/src/var/indexOf",["./arr"],function(a){return a.indexOf}),define("jquery/src/var/arr",[],function(){return[]}),define("jquery/src/core/var/rsingleTag",[],function(){return/^<(\w+)\s*\/?>(?:<\/\1>|)$/}),define("jquery/src/data/var/data_priv",["../Data"],function(a){return new a}),define("jquery/src/data/Data",["../core","../var/rnotwhite","./accepts"],function(a,b){function c(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=a.expando+c.uid++}return c.uid=1,c.accepts=a.acceptData,c.prototype={key:function(b){if(!c.accepts(b))return 0;var d={},e=b[this.expando];if(!e){e=c.uid++;try{d[this.expando]={value:e},Object.defineProperties(b,d)}catch(f){d[this.expando]=e,a.extend(b,d)}}return this.cache[e]||(this.cache[e]={}),e},set:function(b,c,d){var e,f=this.key(b),g=this.cache[f];if("string"==typeof c)g[c]=d;else if(a.isEmptyObject(g))a.extend(this.cache[f],c);else for(e in c)g[e]=c[e];return g},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(b,c,d){var e;return void 0===c||c&&"string"==typeof c&&void 0===d?(e=this.get(b,c),void 0!==e?e:this.get(b,a.camelCase(c))):(this.set(b,c,d),void 0!==d?d:c)},remove:function(c,d){var e,f,g,h=this.key(c),i=this.cache[h];if(void 0===d)this.cache[h]={};else{a.isArray(d)?f=d.concat(d.map(a.camelCase)):(g=a.camelCase(d),d in i?f=[d,g]:(f=g,f=f in i?[f]:f.match(b)||[])),e=f.length;for(;e--;)delete i[f[e]]}},hasData:function(b){return!a.isEmptyObject(this.cache[b[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}},c}),define("jquery/src/data/accepts",["../core"],function(a){return a.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType},a.acceptData}),define("jquery/src/var/strundefined",[],function(){return"undefined"}),define("jquery/src/var/rnotwhite",[],function(){return/\S+/g}),define("jquery/src/core",["./var/arr","./var/slice","./var/concat","./var/push","./var/indexOf","./var/class2type","./var/toString","./var/hasOwn","./var/support"],function(a,b,c,d,e,f,g,h,i){function j(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var k=window.document,l="@VERSION",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};return m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return b.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:b.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(b.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:a.sort,splice:a.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(m.isPlainObject(d)||(e=m.isArray(d)))?(e?(e=!1,f=c&&m.isArray(c)?c:[]):f=c&&m.isPlainObject(c)?c:{},g[b]=m.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isPlainObject:function(a){return"object"!==m.type(a)||a.nodeType||m.isWindow(a)?!1:a.constructor&&!h.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?f[g.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=m.trim(a),a&&(1===a.indexOf("use strict")?(b=k.createElement("script"),b.text=a,k.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=j(a);if(c){if(g)for(;f>e&&(d=b.apply(a[e],c),d!==!1);e++);else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g)for(;f>e&&(d=b.call(a[e],e,a[e]),d!==!1);e++);else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(j(Object(a))?m.merge(c,"string"==typeof a?[a]:a):d.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:e.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,d){var e,f=0,g=a.length,h=j(a),i=[];if(h)for(;g>f;f++)e=b(a[f],f,d),null!=e&&i.push(e);else for(f in a)e=b(a[f],f,d),null!=e&&i.push(e);return c.apply([],i)},guid:1,proxy:function(a,c){var d,e,f;return"string"==typeof c&&(d=a[c],c=a,a=d),m.isFunction(a)?(e=b.call(arguments,2),f=function(){return a.apply(c||this,e.concat(b.call(arguments)))},f.guid=a.guid=a.guid||m.guid++,f):void 0},now:Date.now,support:i}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){f["[object "+b+"]"]=b.toLowerCase()}),m}),define("jquery/src/var/support",[],function(){return{}}),define("jquery/src/var/hasOwn",["./class2type"],function(a){return a.hasOwnProperty}),define("jquery/src/var/toString",["./class2type"],function(a){return a.toString}),define("jquery/src/var/class2type",[],function(){return{}}),define("jquery/src/var/push",["./arr"],function(a){return a.push}),define("jquery/src/var/concat",["./arr"],function(a){return a.concat}),define("jquery/src/var/slice",["./arr"],function(a){return a.slice}),define("delite/a11yclick",["./on"],function(a){function b(a){if(("Enter"===a.key||"Spacebar"===a.key)&&!/^(input|button|textarea)$/i.test(a.target.nodeName))for(var b=a.target;b;b=b.parentNode)if(b.hasAttribute&&b.hasAttribute("d-keyboard-click"))return!0}var c;return a(document,"keydown",function(a){!a.defaultPrevented&&b(a)?(c=a.target,a.preventDefault()):c=null}),a(document,"keyup",function(a){if(b(a)&&a.target===c){c=null,a.preventDefault();var d=a.target.ownerDocument,e=d.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,d.defaultView,0,0,0,0,0,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,d.body),a.target.dispatchEvent(e)}}),function(a){a.setAttribute("d-keyboard-click","true")}}),define("delite/a11y",[],function(){var a={_isElementShown:function(a){var b=getComputedStyle(a);return"hidden"!==b.visibility&&"collapsed"!==b.visibility&&"none"!==b.display&&"hidden"!==a.type},hasDefaultTabStop:function(a){switch(a.nodeName.toLowerCase()){case"a":return a.hasAttribute("href");case"area":case"button":case"input":case"object":case"select":case"textarea":return!0;case"iframe":var b=a.contentDocument;if("designMode"in b&&"on"===b.designMode)return!0;var c=b.body;return c&&("true"===c.contentEditable||c.firstChild&&"true"===c.firstChild.contentEditable);default:return"true"===a.contentEditable}},effectiveTabIndex:function(b){return b.disabled?void 0:b.hasAttribute("tabIndex")?+b.getAttribute("tabIndex"):a.hasDefaultTabStop(b)?0:void 0},isTabNavigable:function(b){return a.effectiveTabIndex(b)>=0},isFocusable:function(b){return a.effectiveTabIndex(b)>=-1},_getTabNavigable:function(b){function c(a){return a&&"input"===a.tagName.toLowerCase()&&a.type&&"radio"===a.type.toLowerCase()&&a.name&&a.name.toLowerCase()}function d(a){for(var b=a.firstChild;b;b=b.nextSibling)if(1===b.nodeType&&m(b)){var e=n(b);if(e>=0){0===e?(f||(f=b),g=b):e>0&&((!h||i>e)&&(i=e,h=b),(!j||e>=k)&&(k=e,j=b));var o=c(b);b.checked&&o&&(l[o]=b)}"SELECT"!==b.nodeName.toUpperCase()&&d(b)}}function e(a){return l[c(a)]||a}var f,g,h,i,j,k,l={},m=a._isElementShown,n=a.effectiveTabIndex;return m(b)&&d(b),{first:e(f),last:e(g),lowest:e(h),highest:e(j)}},getFirstInTabbingOrder:function(b,c){"string"==typeof b&&(b=(c||document).getElementById(b));var d=a._getTabNavigable(b);return d.lowest?d.lowest:d.first},getLastInTabbingOrder:function(b,c){"string"==typeof b&&(b=(c||document).getElementById(b));var d=a._getTabNavigable(b);return d.last?d.last:d.highest}};return a}),define("delite/Widget",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","./features","decor/Invalidating","./CustomElement","./register","./features!bidi?./Bidi"],function(a,b,c,d,e,f,g){var h=0,i=a([e,d],{baseClass:"",focused:!1,widgetId:0,dir:"",effectiveDir:"",createdCallback:function(){this.widgetId=++h},deliver:a.after(function(){this.initializeInvalidating()}),computeProperties:function(a){"dir"in a&&(/^(ltr|rtl)$/i.test(this._get("dir"))?this.effectiveDir=this._get("dir").toLowerCase():this.effectiveDir=this.getInheritedDir())},shouldInitializeRendering:function(a){return!this.rendered||"template"in a},initializeRendering:function(){this.rendered=!1,this.preRender(),this.render(),this.postRender(),this.rendered=!0},getInheritedDir:function(){return(this.ownerDocument.body.dir||this.ownerDocument.documentElement.dir||"ltr").toLowerCase()},refreshRendering:function(a,c){this._templateHandle&&!c&&this._templateHandle.refresh(a),"baseClass"in a&&b(this).removeClass(a.baseClass).addClass(this.baseClass),"effectiveDir"in a&&b(this).toggleClass("d-rtl","rtl"===this.effectiveDir),"dir"in a&&(this.style.direction=this._get("dir"))},attachedCallback:a.after(function(){this._templateHandle&&!c("document-register-element")&&this._templateHandle.attach()}),preRender:function(){},template:null,render:function(){this._templateHandle&&(this._templateHandle.destroy(),delete this._templateHandle),this.template&&(this._templateHandle=this.template(this.ownerDocument,f),this.attached&&!c("document-register-element")&&this._templateHandle.attach())},setClassComponent:function(a,c,d){d||(d=this);var e="_"+a+"Class";b(d).removeClass(d[e]||"").addClass(c),d[e]=c},setOrRemoveAttribute:function(a,b,c){void 0===c?a.removeAttribute(b):a.setAttribute(b,""+c)},postRender:function(){},detachedCallback:function(){this._templateHandle&&!c("document-register-element")&&this._templateHandle.detach(),this.bgIframe&&(this.bgIframe.destroy(),delete this.bgIframe)},getParent:function(){return this.parentNode?this.getEnclosingWidget(this.parentNode):null},on:a.superCall(function(a){return function(b,c,d){return b={focus:"focusin",blur:"focusout"}[b]||b,a.call(this,b,c,d)}}),placeAt:function(a,b){if("string"==typeof a&&(a=this.ownerDocument.getElementById(a)),"replace"===b)a.parentNode.replaceChild(this,a);else if("only"===b){for(var c;c=a.lastChild;)a.removeChild(c);a.appendChild(this)}else if(/^(before|after)$/.test(b))a.parentNode.insertBefore(this,"before"===b?a:a.nextSibling);else{var d=a.containerNode||a,e=d.children||Array.prototype.filter.call(d.childNodes,function(a){return 1===a.nodeType});d.insertBefore(this,e["first"===b?0:b]||null)}return this.attached||this.attachedCallback(!0),this},getEnclosingWidget:function(a){do if(1===a.nodeType&&a.render)return a;while(a=a.parentNode);return null}});return c("bidi")&&(i=a(i,g)),a.chainAfter(i,"preRender"),a.chainAfter(i,"postRender"),i}),define("delite/Viewport",["decor/Evented","decor/sniff","requirejs-domready/domReady!"],function(a,b){function c(){if(b("ios")<8){var a=document.body.getBoundingClientRect();return{w:Math.max(a.width,window.innerWidth),h:Math.max(a.height,window.innerHeight),t:window.pageYOffset,l:window.pageXOffset}}return{w:window.innerWidth,h:window.innerHeight,t:window.pageYOffset,l:window.pageXOffset}}function d(){var a=g.getEffectiveBox();return a.h!==h.h||a.w!==h.w?(h=a,g.emit("resize",a),!0):!1}function e(){var a=g.getEffectiveBox();return a.t!==i.t||a.l!==i.l?(i=a,g.emit("scroll",a),!0):!1}function f(){var a=d(),b=e();setTimeout(f,a||b?10:50)}var g=new a;g.getEffectiveBox=function(){var a=c(),d=document.activeElement,e=d&&d.tagName&&d.tagName.toLowerCase();return b("ios")&&d&&!d.readOnly&&("textarea"===e||"input"===e&&/^(color|email|number|password|search|tel|text|url)$/.test(d.type))&&(b("ipad")?a.h*=0===window.orientation||180===window.orientation?.65:.38:0===window.orientation||180===window.orientation?a.h*=window.screen.height>500?.54:.42:a.h*=window.screen.height>500&&b("ios")>=8?.26:.19,b("ios")>=8&&(!d.hasAttribute("autocorrect")||"on"===d.getAttribute("autocorrect"))&&/^(color|number|search|tel|text)$/.test(d.type)&&(a.h-=40)),a};var h=g.getEffectiveBox(),i=h;return f(),g}),define("delite/Template",["./register"],function(a){function b(a){var b=a.match(/this\.(\w+)/g);return b?Object.keys(b.reduce(function(a,b){return a[b.substring(5)]=!0,a},{})):[]}var c=a.dcl(null,{constructor:function(a,b,c){this.buildText=[],this.attachText=[],this.detachText=[],this.destroyText=[],this.observeText=[],this.generateNodeCode(b||"this",c,a),this.text=this.buildText.join("\n")+"\nreturn {\n attach: function(){\n "+this.attachText.join("\n ")+"\n },\n detach: function(){\n "+this.detachText.join("\n ")+"\n },\n refresh: function(props){\n "+this.observeText.join("\n ")+"\n }.bind(this),\n destroy: function(){\n"+this.destroyText.join("\n ")+"\n while(this.firstChild){ this.removeChild(this.firstChild); }\n }.bind(this)\n};\n",this.func=new Function("document","register",this.text)},text:"",func:null,generateWatchCode:function(a,b){a.length&&this.observeText.push("if("+a.map(function(a){return"'"+a+"' in props"}).join(" || ")+")"," "+b+";")},generateNodeChildrenCode:function(a,c){c.forEach(function(c,d){var e=("this"===a?"":a)+"c"+(d+1);if(c.tag)this.generateNodeCode(e,!0,c),this.buildText.push(a+".appendChild("+e+");");else{var f=e+"t"+(d+1),g=c,h=b(g);this.buildText.push("var "+f+" = document.createTextNode("+g+");",a+".appendChild("+f+");"),this.generateWatchCode(h,f+".nodeValue = "+g)}},this)},generateNodeCode:function(a,d,e){var f=(e.attachPoints||[]).map(function(a){return"this."+a+" = "}).join("");d?(this.buildText.push("var "+a+" = "+f+(e.xmlns?"document.createElementNS('"+e.xmlns+"', '"+e.tag+"');":"register.createElement('"+e.tag+"');")),/-/.test(e.tag)&&(this.attachText.push(a+".attachedCallback();"),this.detachText.push(a+".detachedCallback();"))):f&&this.buildText.push(f+a+";"),this.destroyText.push((e.attachPoints||[]).map(function(a){return"delete this."+a+";\n"}).join("").trim());for(var g in e.attributes){var h=e.attributes[g],i=b(h),j=c.getProp(e.tag,g);"class"!==g||e.xmlns?(this.buildText.push(j?a+"."+j+" = "+h+";":a+".setAttribute('"+g+"', "+h+");"),this.generateWatchCode(i,j?a+"."+j+" = "+h:"this.setOrRemoveAttribute("+a+", '"+g+"', "+h+")")):(this.buildText.push("this.setClassComponent('template', "+h+", "+a+");"),this.generateWatchCode(i,"this.setClassComponent('template', "+h+", "+a+")"))}/-/.test(e.tag)&&(this.buildText.push(a+".deliver();"),this.observeText.push(a+".deliver();"));for(var k in e.connects){var l=e.connects[k],m=/^[a-zA-Z0-9_]+$/.test(l)?"this."+l+".bind(this)":"function(event){"+l+"}";"this"===a?(this.buildText.push("var h_"+k+" = this.on('"+k+"', "+m+");"),this.destroyText.push("h_"+k+".remove();")):this.buildText.push("this.on('"+k+"', "+m+", "+a+");")}e.children&&this.generateNodeChildrenCode(a,e.children)}}),d={};c.getElement=function(b){return b in d||(d[b]=a.createElement(b)),d[b]};var e={};return c.getProp=function(a,b){if(!(a in e)){var d=c.getElement(a),f=e[a]={};for(var g in d)f[g.toLowerCase()]=g;f.style="style.cssText"}return e[a][b]},c}),define("delite/StoreMap",["dcl/dcl","./Store"],function(a,b){var c=function(a,b,c,d){return a[c+"Func"]?a[c+"Func"](b,d):a[c+"Attr"]?b[a[c+"Attr"]]:b[c]},d=function(a,b,c,d,e){a[c+"Func"]?a[c+"Func"](b,d,e):a[c+"Attr"]?b[a[c+"Attr"]]=e:b[c]=e},e=/^(?!_)(\w)+(?=Attr$|Func$)/,f=/f(?=unc$)|a(?=ttr$)/;return a(b,{allowRemap:!1,_mappedKeys:null,copyAllItemProps:!1,parseAttribute:a.superCall(function(a){return function(b,c){return/Attr$|Func$/i.test(b)?(b=b.toLowerCase(),b=this._propCaseMap[b]||b.replace(f,f.exec(b)[0].toUpperCase()),{prop:b,value:/Attr$/.test(b)?c:this.parseFunctionAttribute(c,["item","store","value"])}):a.apply(this,arguments)}}),queryStoreAndInitItems:a.superCall(function(a){return function(b,c){this.attached||c?a.apply(this,arguments):this._pendingQuery=b}}),attachedCallback:function(){var a=[];for(var b in this){var c=e.exec(b);c&&-1===a.indexOf(c[0])&&a.push(c[0])}if(this.copyAllItemProps){this._itemKeys=[];for(var d=0;d0&&this.updateRenderers(b),this.selectedItems&&this.selectedItems.length>0?(this._set("selectedItem",this.selectedItems[0]),this.updateRenderers(this.selectedItems)):this._set("selectedItem",null)},_getSelectedItemsAttr:function(){return null==this._get("selectedItems")?[]:this._get("selectedItems").concat()},hasSelectionModifier:function(a){return b("mac")?a.metaKey:a.ctrlKey},isSelected:function(a){if(null==this.selectedItems||0===this.selectedItems.length)return!1;var b=this.getIdentity(a);return this.selectedItems.some(function(a){return this.getIdentity(a)===b},this)},getIdentity:function(a){},updateRenderers:function(a){},setSelected:function(a,b){"none"!==this.selectionMode&&null!=a&&this._setSelected(a,b)},_setSelected:function(a,b){var c,d,e=this.selectedItems;if("single"===this.selectionMode||"radio"===this.selectionMode)b?this.selectedItem=a:"single"===this.selectionMode&&this.isSelected(a)&&(this.selectedItems=null);else if(b){if(this.isSelected(a))return;null==e?e=[a]:e.unshift(a),this.selectedItems=e}else{if(d=this.getIdentity(a),c=e?e.filter(function(a){return this.getIdentity(a)!==d},this):[],null==c||c.length===e.length)return;this.selectedItems=c}},selectFromEvent:function(a,b,c,d){return"none"===this.selectionMode?!1:this._selectFromEvent(a,b,c,d)},_selectFromEvent:function(a,b,c,d){var e,f=this.selectedItem,g=null==b?!1:this.isSelected(b);return null==b?"multiple"!==this.selectionMode||this.hasSelectionModifier(a)||null==this.selectedItem||(this.selectedItem=null,e=!0):"multiple"===this.selectionMode?this.hasSelectionModifier(a)?(this.setSelected(b,!g),e=!0):(this.selectedItem=b,e=!0):"single"===this.selectionMode&&this.hasSelectionModifier(a)?(this.selectedItem=g?null:b,e=!0):g||(this.selectedItem=b,e=!0),d&&e&&this.dispatchSelectionChange(f,this.selectedItem,c,a),e},dispatchSelectionChange:function(a,b,c,d){this.emit("selection-change",{oldValue:a,newValue:b,renderer:c,triggerEvent:d})}})}),define("delite/Scrollable",["dcl/dcl","requirejs-dplugins/jquery!css,attributes/classes,effects,event","./Widget","./theme!./Scrollable/themes/{{theme}}/Scrollable.css"],function(a,b,c){return a(c,{scrollDirection:"vertical",scrollableNode:null,render:a.after(function(){this.scrollableNode||(this.scrollableNode=this),this.scrollableNode.setAttribute("unselectable","on"),b(this.scrollableNode).css("user-select","none").on("selectstart",!1)}),refreshRendering:function(a){"scrollDirection"in a&&b(this.scrollableNode).toggleClass("d-scrollable","none"!==this.scrollDirection).toggleClass("d-scrollable-h",/^(both|horizontal)$/.test(this.scrollDirection)).toggleClass("d-scrollable-v",/^(both|vertical)$/.test(this.scrollDirection))},detachedCallback:function(){this._stopAnimation()},isTopScroll:function(){return 0===this.scrollableNode.scrollTop},isBottomScroll:function(){var a=this.scrollableNode;return a.offsetHeight+a.scrollTop>=a.scrollHeight},isLeftScroll:function(){return 0===this.scrollableNode.scrollLeft},isRightScroll:function(){var a=this.scrollableNode;return a.offsetWidth+a.scrollLeft>=a.scrollWidth},getCurrentScroll:function(){return{x:this.scrollableNode.scrollLeft,y:this.scrollableNode.scrollTop}},scrollBy:function(a,b){var c={};void 0!==a.x&&(c.x=this.scrollableNode.scrollLeft+a.x),void 0!==a.y&&(c.y=this.scrollableNode.scrollTop+a.y),this.scrollTo(c,b)},scrollTo:function(a,c){var d=this.scrollableNode;if(this._stopAnimation(),!c||0>=c)void 0!==a.x&&(d.scrollLeft=a.x),void 0!==a.y&&(d.scrollTop=a.y);else{var e={x:void 0!==a.x?d.scrollLeft:void 0,y:void 0!==a.y?d.scrollTop:void 0},f=this;f._animation=b(e).animate(a,{duration:c,rate:20,step:function(){void 0!==this.x&&(d.scrollLeft=this.x),void 0!==this.y&&(d.scrollTop=this.y)},complete:function(){void 0!==this.x&&(d.scrollLeft=this.x),void 0!==this.y&&(d.scrollTop=this.y),delete f._animation}})}},_stopAnimation:function(){this._animation&&this._animation.stop()}})}),define("jquery/src/event",["./core","./var/strundefined","./var/rnotwhite","./var/hasOwn","./var/slice","./event/support","./data/var/data_priv","./core/init","./data/accepts","./selector"],function(a,b,c,d,e,f,g){function h(){return!0}function i(){return!1}function j(){try{return document.activeElement}catch(a){}}var k=/^key/,l=/^(?:mouse|pointer|contextmenu)|click/,m=/^(?:focusinfocus|focusoutblur)$/,n=/^([^.]*)(?:\.(.+)|)$/;return a.event={global:{},add:function(d,e,f,h,i){var j,k,l,m,o,p,q,r,s,t,u,v=g.get(d);if(v)for(f.handler&&(j=f,f=j.handler,i=j.selector),f.guid||(f.guid=a.guid++),(m=v.events)||(m=v.events={}),(k=v.handle)||(k=v.handle=function(c){return typeof a!==b&&a.event.triggered!==c.type?a.event.dispatch.apply(d,arguments):void 0}),e=(e||"").match(c)||[""],o=e.length;o--;)l=n.exec(e[o])||[],s=u=l[1],t=(l[2]||"").split(".").sort(),s&&(q=a.event.special[s]||{},s=(i?q.delegateType:q.bindType)||s,q=a.event.special[s]||{},p=a.extend({type:s,origType:u,data:h,handler:f,guid:f.guid,selector:i,needsContext:i&&a.expr.match.needsContext.test(i),namespace:t.join(".")},j),(r=m[s])||(r=m[s]=[],r.delegateCount=0,q.setup&&q.setup.call(d,h,t,k)!==!1||d.addEventListener&&d.addEventListener(s,k,!1)),q.add&&(q.add.call(d,p),p.handler.guid||(p.handler.guid=f.guid)),i?r.splice(r.delegateCount++,0,p):r.push(p),a.event.global[s]=!0)},remove:function(b,d,e,f,h){var i,j,k,l,m,o,p,q,r,s,t,u=g.hasData(b)&&g.get(b);if(u&&(l=u.events)){for(d=(d||"").match(c)||[""],m=d.length;m--;)if(k=n.exec(d[m])||[],r=t=k[1],s=(k[2]||"").split(".").sort(),r){for(p=a.event.special[r]||{},r=(f?p.delegateType:p.bindType)||r,q=l[r]||[],k=k[2]&&new RegExp("(^|\\.)"+s.join("\\.(?:.*\\.|)")+"(\\.|$)"),j=i=q.length;i--;)o=q[i],!h&&t!==o.origType||e&&e.guid!==o.guid||k&&!k.test(o.namespace)||f&&f!==o.selector&&("**"!==f||!o.selector)||(q.splice(i,1),o.selector&&q.delegateCount--,p.remove&&p.remove.call(b,o));j&&!q.length&&(p.teardown&&p.teardown.call(b,s,u.handle)!==!1||a.removeEvent(b,r,u.handle),delete l[r])}else for(r in l)a.event.remove(b,r+d[m],e,f,!0);a.isEmptyObject(l)&&(delete u.handle,g.remove(b,"events"))}},trigger:function(b,c,e,f){var h,i,j,k,l,n,o,p=[e||document],q=d.call(b,"type")?b.type:b,r=d.call(b,"namespace")?b.namespace.split("."):[];if(i=j=e=e||document,3!==e.nodeType&&8!==e.nodeType&&!m.test(q+a.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),l=q.indexOf(":")<0&&"on"+q,b=b[a.expando]?b:new a.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:a.makeArray(c,[b]),o=a.event.special[q]||{},f||!o.trigger||o.trigger.apply(e,c)!==!1)){if(!f&&!o.noBubble&&!a.isWindow(e)){for(k=o.delegateType||q,m.test(k+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),j=i;j===(e.ownerDocument||document)&&p.push(j.defaultView||j.parentWindow||window); -}for(h=0;(i=p[h++])&&!b.isPropagationStopped();)b.type=h>1?k:o.bindType||q,n=(g.get(i,"events")||{})[b.type]&&g.get(i,"handle"),n&&n.apply(i,c),n=l&&i[l],n&&n.apply&&a.acceptData(i)&&(b.result=n.apply(i,c),b.result===!1&&b.preventDefault());return b.type=q,f||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!a.acceptData(e)||l&&a.isFunction(e[q])&&!a.isWindow(e)&&(j=e[l],j&&(e[l]=null),a.event.triggered=q,e[q](),a.event.triggered=void 0,j&&(e[l]=j)),b.result}},dispatch:function(b){b=a.event.fix(b);var c,d,f,h,i,j=[],k=e.call(arguments),l=(g.get(this,"events")||{})[b.type]||[],m=a.event.special[b.type]||{};if(k[0]=b,b.delegateTarget=this,!m.preDispatch||m.preDispatch.call(this,b)!==!1){for(j=a.event.handlers.call(this,b,l),c=0;(h=j[c++])&&!b.isPropagationStopped();)for(b.currentTarget=h.elem,d=0;(i=h.handlers[d++])&&!b.isImmediatePropagationStopped();)(!b.namespace_re||b.namespace_re.test(i.namespace))&&(b.handleObj=i,b.data=i.data,f=((a.event.special[i.origType]||{}).handle||i.handler).apply(h.elem,k),void 0!==f&&(b.result=f)===!1&&(b.preventDefault(),b.stopPropagation()));return m.postDispatch&&m.postDispatch.call(this,b),b.result}},handlers:function(b,c){var d,e,f,g,h=[],i=c.delegateCount,j=b.target;if(i&&j.nodeType&&(!b.button||"click"!==b.type))for(;j!==this;j=j.parentNode||this)if(j.disabled!==!0||"click"!==b.type){for(e=[],d=0;i>d;d++)g=c[d],f=g.selector+" ",void 0===e[f]&&(e[f]=g.needsContext?a(f,this).index(j)>=0:a.find(f,this,null,[j]).length),e[f]&&e.push(g);e.length&&h.push({elem:j,handlers:e})}return ie;e+=2-b)d=c[e],f["margin"+d]=f["padding"+d]=a;return b&&(f.opacity=f.width=a),f}function i(a,b,c){for(var d,e=(s[b]||[]).concat(s["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function j(b,c,g){var h,j,k,l,m,n,p,q,r=this,s={},t=b.style,u=b.nodeType&&d(b),v=f.get(b,"fxshow");g.queue||(m=a._queueHooks(b,"fx"),null==m.unqueued&&(m.unqueued=0,n=m.empty.fire,m.empty.fire=function(){m.unqueued||n()}),m.unqueued++,r.always(function(){r.always(function(){m.unqueued--,a.queue(b,"fx").length||m.empty.fire()})})),1===b.nodeType&&("height"in c||"width"in c)&&(g.overflow=[t.overflow,t.overflowX,t.overflowY],p=a.css(b,"display"),q="none"===p?f.get(b,"olddisplay")||e(b.nodeName):p,"inline"===q&&"none"===a.css(b,"float")&&(t.display="inline-block")),g.overflow&&(t.overflow="hidden",r.always(function(){t.overflow=g.overflow[0],t.overflowX=g.overflow[1],t.overflowY=g.overflow[2]}));for(h in c)if(j=c[h],o.exec(j)){if(delete c[h],k=k||"toggle"===j,j===(u?"hide":"show")){if("show"!==j||!v||void 0===v[h])continue;u=!0}s[h]=v&&v[h]||a.style(b,h)}else p=void 0;if(a.isEmptyObject(s))"inline"===("none"===p?e(b.nodeName):p)&&(t.display=p);else{v?"hidden"in v&&(u=v.hidden):v=f.access(b,"fxshow",{}),k&&(v.hidden=!u),u?a(b).show():r.done(function(){a(b).hide()}),r.done(function(){var c;f.remove(b,"fxshow");for(c in s)a.style(b,c,s[c])});for(h in s)l=i(u?v[h]:0,h,r),h in v||(v[h]=l.start,u&&(l.end=l.start,l.start="width"===h||"height"===h?1:0))}}function k(b,c){var d,e,f,g,h;for(d in b)if(e=a.camelCase(d),f=c[e],g=b[d],a.isArray(g)&&(f=g[1],g=b[d]=g[0]),d!==e&&(b[e]=g,delete b[d]),h=a.cssHooks[e],h&&"expand"in h){g=h.expand(g),delete b[e];for(d in g)d in b||(b[d]=g[d],c[d]=f)}else c[e]=f}function l(b,c,d){var e,f,h=0,j=r.length,l=a.Deferred().always(function(){delete n.elem}),n=function(){if(f)return!1;for(var a=m||g(),c=Math.max(0,o.startTime+o.duration-a),d=c/o.duration||0,e=1-d,h=0,i=o.tweens.length;i>h;h++)o.tweens[h].run(e);return l.notifyWith(b,[o,e,c]),1>e&&i?c:(l.resolveWith(b,[o]),!1)},o=l.promise({elem:b,props:a.extend({},c),opts:a.extend(!0,{specialEasing:{}},d),originalProperties:c,originalOptions:d,startTime:m||g(),duration:d.duration,tweens:[],createTween:function(c,d){var e=a.Tween(b,o.opts,c,d,o.opts.specialEasing[c]||o.opts.easing);return o.tweens.push(e),e},stop:function(a){var c=0,d=a?o.tweens.length:0;if(f)return this;for(f=!0;d>c;c++)o.tweens[c].run(1);return a?l.resolveWith(b,[o,a]):l.rejectWith(b,[o,a]),this}}),p=o.props;for(k(p,o.opts.specialEasing);j>h;h++)if(e=r[h].call(o,b,p,o.opts))return e;return a.map(p,i,o),a.isFunction(o.opts.start)&&o.opts.start.call(b,o),a.fx.timer(a.extend(n,{elem:b,anim:o,queue:o.opts.queue})),o.progress(o.opts.progress).done(o.opts.done,o.opts.complete).fail(o.opts.fail).always(o.opts.always)}var m,n,o=/^(?:toggle|show|hide)$/,p=new RegExp("^(?:([+-])=|)("+b+")([a-z%]*)$","i"),q=/queueHooks$/,r=[j],s={"*":[function(b,c){var d=this.createTween(b,c),e=d.cur(),f=p.exec(c),g=f&&f[3]||(a.cssNumber[b]?"":"px"),h=(a.cssNumber[b]||"px"!==g&&+e)&&p.exec(a.css(d.elem,b)),i=1,j=20;if(h&&h[3]!==g){g=g||h[3],f=f||[],h=+e||1;do i=i||".5",h/=i,a.style(d.elem,b,h+g);while(i!==(i=d.cur()/e)&&1!==i&&--j)}return f&&(h=d.start=+h||+e||0,d.unit=g,d.end=f[1]?h+(f[1]+1)*f[2]:+f[2]),d}]};return a.Animation=a.extend(l,{tweener:function(b,c){a.isFunction(b)?(c=b,b=["*"]):b=b.split(" ");for(var d,e=0,f=b.length;f>e;e++)d=b[e],s[d]=s[d]||[],s[d].unshift(c)},prefilter:function(a,b){b?r.unshift(a):r.push(a)}}),a.speed=function(b,c,d){var e=b&&"object"==typeof b?a.extend({},b):{complete:d||!d&&c||a.isFunction(b)&&b,duration:b,easing:d&&c||c&&!a.isFunction(c)&&c};return e.duration=a.fx.off?0:"number"==typeof e.duration?e.duration:e.duration in a.fx.speeds?a.fx.speeds[e.duration]:a.fx.speeds._default,(null==e.queue||e.queue===!0)&&(e.queue="fx"),e.old=e.complete,e.complete=function(){a.isFunction(e.old)&&e.old.call(this),e.queue&&a.dequeue(this,e.queue)},e},a.fn.extend({fadeTo:function(a,b,c,e){return this.filter(d).css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(b,c,d,e){var g=a.isEmptyObject(b),h=a.speed(c,d,e),i=function(){var c=l(this,a.extend({},b),h);(g||f.get(this,"finish"))&&c.stop(!0)};return i.finish=i,g||h.queue===!1?this.each(i):this.queue(h.queue,i)},stop:function(b,c,d){var e=function(a){var b=a.stop;delete a.stop,b(d)};return"string"!=typeof b&&(d=c,c=b,b=void 0),c&&b!==!1&&this.queue(b||"fx",[]),this.each(function(){var c=!0,g=null!=b&&b+"queueHooks",h=a.timers,i=f.get(this);if(g)i[g]&&i[g].stop&&e(i[g]);else for(g in i)i[g]&&i[g].stop&&q.test(g)&&e(i[g]);for(g=h.length;g--;)h[g].elem!==this||null!=b&&h[g].queue!==b||(h[g].anim.stop(d),c=!1,h.splice(g,1));(c||!d)&&a.dequeue(this,b)})},finish:function(b){return b!==!1&&(b=b||"fx"),this.each(function(){var c,d=f.get(this),e=d[b+"queue"],g=d[b+"queueHooks"],h=a.timers,i=e?e.length:0;for(d.finish=!0,a.queue(this,b,[]),g&&g.stop&&g.stop.call(this,!0),c=h.length;c--;)h[c].elem===this&&h[c].queue===b&&(h[c].anim.stop(!0),h.splice(c,1));for(c=0;i>c;c++)e[c]&&e[c].finish&&e[c].finish.call(this);delete d.finish})}}),a.each(["toggle","show","hide"],function(b,c){var d=a.fn[c];a.fn[c]=function(a,b,e){return null==a||"boolean"==typeof a?d.apply(this,arguments):this.animate(h(c,!0),a,b,e)}}),a.each({slideDown:h("show"),slideUp:h("hide"),slideToggle:h("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(b,c){a.fn[b]=function(a,b,d){return this.animate(c,a,b,d)}}),a.timers=[],a.fx.tick=function(){var b,c=0,d=a.timers;for(m=a.now();cb;b++)if(a.contains(this,c[b]))return!0})},closest:function(b,d){for(var e,f=0,g=this.length,h=[],i=c.test(b)||"string"!=typeof b?a(b,d||this.context):0;g>f;f++)for(e=this[f];e&&e!==d;e=e.parentNode)if(e.nodeType<11&&(i?i.index(e)>-1:1===e.nodeType&&a.find.matchesSelector(e,b))){h.push(e);break}return this.pushStack(h.length>1?a.unique(h):h)},index:function(c){return c?"string"==typeof c?b.call(a(c),this[0]):b.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(b,c){return this.pushStack(a.unique(a.merge(this.get(),a(b,c))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),a.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(b){return a.dir(b,"parentNode")},parentsUntil:function(b,c,d){return a.dir(b,"parentNode",d)},next:function(a){return d(a,"nextSibling")},prev:function(a){return d(a,"previousSibling")},nextAll:function(b){return a.dir(b,"nextSibling")},prevAll:function(b){return a.dir(b,"previousSibling")},nextUntil:function(b,c,d){return a.dir(b,"nextSibling",d)},prevUntil:function(b,c,d){return a.dir(b,"previousSibling",d)},siblings:function(b){return a.sibling((b.parentNode||{}).firstChild,b)},children:function(b){return a.sibling(b.firstChild)},contents:function(b){return b.contentDocument||a.merge([],b.childNodes)}},function(b,c){a.fn[b]=function(d,g){var h=a.map(this,c,d);return"Until"!==b.slice(-5)&&(g=d),g&&"string"==typeof g&&(h=a.filter(g,h)),this.length>1&&(f[b]||a.unique(h),e.test(b)&&h.reverse()),this.pushStack(h)}}),a}),define("jquery/src/deferred",["./core","./var/slice","./callbacks"],function(a,b){return a.extend({Deferred:function(b){var c=[["resolve","done",a.Callbacks("once memory"),"resolved"],["reject","fail",a.Callbacks("once memory"),"rejected"],["notify","progress",a.Callbacks("memory")]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},then:function(){var b=arguments;return a.Deferred(function(d){a.each(c,function(c,g){var h=a.isFunction(b[c])&&b[c];f[g[1]](function(){var b=h&&h.apply(this,arguments);b&&a.isFunction(b.promise)?b.promise().done(d.resolve).fail(d.reject).progress(d.notify):d[g[0]+"With"](this===e?d.promise():this,h?[b]:arguments)})}),b=null}).promise()},promise:function(b){return null!=b?a.extend(b,e):e}},f={};return e.pipe=e.then,a.each(c,function(a,b){var g=b[2],h=b[3];e[b[1]]=g.add,h&&g.add(function(){d=h},c[1^a][2].disable,c[2][2].lock),f[b[0]]=function(){return f[b[0]+"With"](this===f?e:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(c){var d,e,f,g=0,h=b.call(arguments),i=h.length,j=1!==i||c&&a.isFunction(c.promise)?i:0,k=1===j?c:a.Deferred(),l=function(a,c,e){return function(f){c[a]=this,e[a]=arguments.length>1?b.call(arguments):f,e===d?k.notifyWith(c,e):--j||k.resolveWith(c,e)}};if(i>1)for(d=new Array(i),e=new Array(i),f=new Array(i);i>g;g++)h[g]&&a.isFunction(h[g].promise)?h[g].promise().done(l(g,f,h)).fail(k.reject).progress(l(g,e,d)):--j;return j||k.resolveWith(f,h),k.promise()}}),a}),define("jquery/src/callbacks",["./core","./var/rnotwhite"],function(a,b){function c(c){var e=d[c]={};return a.each(c.match(b)||[],function(a,b){e[b]=!0}),e}var d={};return a.Callbacks=function(b){b="string"==typeof b?d[b]||c(b):a.extend({},b);var e,f,g,h,i,j,k=[],l=!b.once&&[],m=function(a){for(e=b.memory&&a,f=!0,j=h||0,h=0,i=k.length,g=!0;k&&i>j;j++)if(k[j].apply(a[0],a[1])===!1&&b.stopOnFalse){e=!1;break}g=!1,k&&(l?l.length&&m(l.shift()):e?k=[]:n.disable())},n={add:function(){if(k){var c=k.length;!function d(c){a.each(c,function(c,e){var f=a.type(e);"function"===f?b.unique&&n.has(e)||k.push(e):e&&e.length&&"string"!==f&&d(e)})}(arguments),g?i=k.length:e&&(h=c,m(e))}return this},remove:function(){return k&&a.each(arguments,function(b,c){for(var d;(d=a.inArray(c,k,d))>-1;)k.splice(d,1),g&&(i>=d&&i--,j>=d&&j--)}),this},has:function(b){return b?a.inArray(b,k)>-1:!(!k||!k.length)},empty:function(){return k=[],i=0,this},disable:function(){return k=l=e=void 0,this},disabled:function(){return!k},lock:function(){return l=void 0,e||n.disable(),this},locked:function(){return!l},fireWith:function(a,b){return!k||f&&!l||(b=b||[],b=[a,b.slice?b.slice():b],g?l.push(b):m(b)),this},fire:function(){return n.fireWith(this,arguments),this},fired:function(){return!!f}};return n},a}),define("jquery/src/queue",["./core","./data/var/data_priv","./deferred","./callbacks"],function(a,b){return a.extend({queue:function(c,d,e){var f;return c?(d=(d||"fx")+"queue",f=b.get(c,d),e&&(!f||a.isArray(e)?f=b.access(c,d,a.makeArray(e)):f.push(e)),f||[]):void 0},dequeue:function(b,c){c=c||"fx";var d=a.queue(b,c),e=d.length,f=d.shift(),g=a._queueHooks(b,c),h=function(){a.dequeue(b,c)};"inprogress"===f&&(f=d.shift(),e--),f&&("fx"===c&&d.unshift("inprogress"),delete g.stop,f.call(b,h,g)),!e&&g&&g.empty.fire()},_queueHooks:function(c,d){var e=d+"queueHooks";return b.get(c,e)||b.access(c,e,{empty:a.Callbacks("once memory").add(function(){b.remove(c,[d+"queue",e])})})}}),a.fn.extend({queue:function(b,c){var d=2;return"string"!=typeof b&&(c=b,b="fx",d--),arguments.length")).appendTo(f.documentElement),f=d[0].contentDocument,f.write(),f.close(),g=b(c,f),d.detach()),e[c]=g),g}var d,e={};return c}),define("jquery/src/manipulation",["./core","./var/concat","./var/push","./core/access","./manipulation/var/rcheckableType","./manipulation/support","./data/var/data_priv","./data/var/data_user","./core/init","./data/accepts","./traversing","./selector","./event"],function(a,b,c,d,e,f,g,h){function i(b,c){return a.nodeName(b,"table")&&a.nodeName(11!==c.nodeType?c:c.firstChild,"tr")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b}function j(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function k(a){var b=v.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function l(a,b){for(var c=0,d=a.length;d>c;c++)g.set(a[c],"globalEval",!b||g.get(b[c],"globalEval"))}function m(b,c){var d,e,f,i,j,k,l,m;if(1===c.nodeType){if(g.hasData(b)&&(i=g.access(b),j=g.set(c,i),m=i.events)){delete j.handle,j.events={};for(f in m)for(d=0,e=m[f].length;e>d;d++)a.event.add(c,f,m[f][d])}h.hasData(b)&&(k=h.access(b),l=a.extend({},k),h.set(c,l))}}function n(b,c){var d=b.getElementsByTagName?b.getElementsByTagName(c||"*"):b.querySelectorAll?b.querySelectorAll(c||"*"):[];return void 0===c||c&&a.nodeName(b,c)?a.merge([b],d):d}function o(a,b){var c=b.nodeName.toLowerCase();"input"===c&&e.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}var p=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,q=/<([\w:]+)/,r=/<|&#?\w+;/,s=/<(?:script|style|link)/i,t=/checked\s*(?:[^=]|=\s*.checked.)/i,u=/^$|\/(?:java|ecma)script/i,v=/^true\/(.*)/,w=/^\s*\s*$/g,x={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};return x.optgroup=x.option,x.tbody=x.tfoot=x.colgroup=x.caption=x.thead,x.th=x.td,a.extend({clone:function(b,c,d){var e,g,h,i,j=b.cloneNode(!0),k=a.contains(b.ownerDocument,b);if(!(f.noCloneChecked||1!==b.nodeType&&11!==b.nodeType||a.isXMLDoc(b)))for(i=n(j),h=n(b),e=0,g=h.length;g>e;e++)o(h[e],i[e]);if(c)if(d)for(h=h||n(b),i=i||n(j),e=0,g=h.length;g>e;e++)m(h[e],i[e]);else m(b,j);return i=n(j,"script"),i.length>0&&l(i,!k&&n(b,"script")),j},buildFragment:function(b,c,d,e){for(var f,g,h,i,j,k,m=c.createDocumentFragment(),o=[],s=0,t=b.length;t>s;s++)if(f=b[s],f||0===f)if("object"===a.type(f))a.merge(o,f.nodeType?[f]:f);else if(r.test(f)){for(g=g||m.appendChild(c.createElement("div")),h=(q.exec(f)||["",""])[1].toLowerCase(),i=x[h]||x._default,g.innerHTML=i[1]+f.replace(p,"<$1>")+i[2],k=i[0];k--;)g=g.lastChild;a.merge(o,g.childNodes),g=m.firstChild,g.textContent=""}else o.push(c.createTextNode(f));for(m.textContent="",s=0;f=o[s++];)if((!e||-1===a.inArray(f,e))&&(j=a.contains(f.ownerDocument,f),g=n(m.appendChild(f),"script"),j&&l(g),d))for(k=0;f=g[k++];)u.test(f.type||"")&&d.push(f);return m},cleanData:function(b){for(var c,d,e,f,i=a.event.special,j=0;void 0!==(d=b[j]);j++){if(a.acceptData(d)&&(f=d[g.expando],f&&(c=g.cache[f]))){if(c.events)for(e in c.events)i[e]?a.event.remove(d,e):a.removeEvent(d,e,c.handle);g.cache[f]&&delete g.cache[f]}delete h.cache[d[h.expando]]}}}),a.fn.extend({text:function(b){return d(this,function(b){return void 0===b?a.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=b)})},null,b,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=i(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=i(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(b,c){for(var d,e=b?a.filter(b,this):this,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||a.cleanData(n(d)),d.parentNode&&(c&&a.contains(d.ownerDocument,d)&&l(n(d,"script")),d.parentNode.removeChild(d));return this},empty:function(){for(var b,c=0;null!=(b=this[c]);c++)1===b.nodeType&&(a.cleanData(n(b,!1)),b.textContent="");return this},clone:function(b,c){return b=null==b?!1:b,c=null==c?b:c,this.map(function(){return a.clone(this,b,c)})},html:function(b){return d(this,function(b){var c=this[0]||{},d=0,e=this.length;if(void 0===b&&1===c.nodeType)return c.innerHTML;if("string"==typeof b&&!s.test(b)&&!x[(q.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(p,"<$1>");try{for(;e>d;d++)c=this[d]||{},1===c.nodeType&&(a.cleanData(n(c,!1)),c.innerHTML=b);c=0}catch(f){}}c&&this.empty().append(b)},null,b,arguments.length)},replaceWith:function(){var b=arguments[0];return this.domManip(arguments,function(c){b=this.parentNode,a.cleanData(n(this)),b&&b.replaceChild(c,this)}),b&&(b.length||b.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(c,d){c=b.apply([],c);var e,h,i,l,m,o,p=0,q=this.length,r=this,s=q-1,v=c[0],x=a.isFunction(v);if(x||q>1&&"string"==typeof v&&!f.checkClone&&t.test(v))return this.each(function(a){var b=r.eq(a);x&&(c[0]=v.call(this,a,b.html())),b.domManip(c,d)});if(q&&(e=a.buildFragment(c,this[0].ownerDocument,!1,this),h=e.firstChild,1===e.childNodes.length&&(e=h),h)){for(i=a.map(n(e,"script"),j),l=i.length;q>p;p++)m=e,p!==s&&(m=a.clone(m,!0,!0),l&&a.merge(i,n(m,"script"))),d.call(this[p],m,p);if(l)for(o=i[i.length-1].ownerDocument,a.map(i,k),p=0;l>p;p++)m=i[p],u.test(m.type||"")&&!g.access(m,"globalEval")&&a.contains(o,m)&&(m.src?a._evalUrl&&a._evalUrl(m.src):a.globalEval(m.textContent.replace(w,"")))}return this}}),a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,d){a.fn[b]=function(b){for(var e,f=[],g=a(b),h=g.length-1,i=0;h>=i;i++)e=i===h?this:this.clone(!0),a(g[i])[d](e),c.apply(f,e.get());return this.pushStack(f)}}),a}),define("jquery/src/data/var/data_user",["../Data"],function(a){return new a}),define("jquery/src/manipulation/support",["../var/support"],function(a){return function(){var b=document.createDocumentFragment(),c=b.appendChild(document.createElement("div")),d=document.createElement("input");d.setAttribute("type","radio"),d.setAttribute("checked","checked"),d.setAttribute("name","t"),c.appendChild(d),a.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked,c.innerHTML="",a.noCloneChecked=!!c.cloneNode(!0).lastChild.defaultValue}(),a}),define("jquery/src/manipulation/var/rcheckableType",[],function(){return/^(?:checkbox|radio)$/i}),define("jquery/src/core/access",["../core"],function(a){var b=a.access=function(b,c,d,e,f,g,h){var i=0,j=b.length,k=null==d;if("object"===a.type(d)){f=!0;for(i in d)a.access(b,c,i,d[i],!0,g,h)}else if(void 0!==e&&(f=!0,a.isFunction(e)||(h=!0),k&&(h?(c.call(b,e),c=null):(k=c,c=function(b,c,d){return k.call(a(b),d)})),c))for(;j>i;i++)c(b[i],d,h?e:e.call(b[i],i,c(b[i],d)));return f?b:k?c.call(b):j?c(b[0],d):g};return b}),define("jquery/src/css/var/isHidden",["../../core","../../selector"],function(a){return function(b,c){return b=c||b,"none"===a.css(b,"display")||!a.contains(b.ownerDocument,b)}}),define("jquery/src/css/var/cssExpand",[],function(){return["Top","Right","Bottom","Left"]}),define("jquery/src/var/pnum",[],function(){return/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source}),define("jquery/src/css",["./core","./var/pnum","./core/access","./css/var/rmargin","./css/var/rnumnonpx","./css/var/cssExpand","./css/var/isHidden","./css/var/getStyles","./css/curCSS","./css/defaultDisplay","./css/addGetHookIf","./css/support","./data/var/data_priv","./core/init","./css/swap","./core/ready","./selector"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(a,b){if(b in a)return b;for(var c=b[0].toUpperCase()+b.slice(1),d=b,e=x.length;e--;)if(b=x[e]+c,b in a)return b;return d}function o(a,b,c){var d=t.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function p(b,c,d,e,g){for(var h=d===(e?"border":"content")?4:"width"===c?1:0,i=0;4>h;h+=2)"margin"===d&&(i+=a.css(b,d+f[h],!0,g)),e?("content"===d&&(i-=a.css(b,"padding"+f[h],!0,g)),"margin"!==d&&(i-=a.css(b,"border"+f[h]+"Width",!0,g))):(i+=a.css(b,"padding"+f[h],!0,g),"padding"!==d&&(i+=a.css(b,"border"+f[h]+"Width",!0,g)));return i}function q(b,c,d){var f=!0,g="width"===c?b.offsetWidth:b.offsetHeight,j=h(b),k="border-box"===a.css(b,"boxSizing",!1,j);if(0>=g||null==g){if(g=i(b,c,j),(0>g||null==g)&&(g=b.style[c]),e.test(g))return g;f=k&&(l.boxSizingReliable()||g===b.style[c]),g=parseFloat(g)||0}return g+p(b,c,d||(k?"border":"content"),f,j)+"px"}function r(b,c){for(var d,e,f,h=[],i=0,k=b.length;k>i;i++)e=b[i],e.style&&(h[i]=m.get(e,"olddisplay"),d=e.style.display,c?(h[i]||"none"!==d||(e.style.display=""),""===e.style.display&&g(e)&&(h[i]=m.access(e,"olddisplay",j(e.nodeName)))):(f=g(e),"none"===d&&f||m.set(e,"olddisplay",f?d:a.css(e,"display"))));for(i=0;k>i;i++)e=b[i],e.style&&(c&&"none"!==e.style.display&&""!==e.style.display||(e.style.display=c?h[i]||"":"none"));return b}var s=/^(none|table(?!-c[ea]).+)/,t=new RegExp("^("+b+")(.*)$","i"),u=new RegExp("^([+-])=("+b+")","i"),v={position:"absolute",visibility:"hidden",display:"block"},w={letterSpacing:"0",fontWeight:"400"},x=["Webkit","O","Moz","ms"];return a.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=i(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(b,c,d,e){if(b&&3!==b.nodeType&&8!==b.nodeType&&b.style){var f,g,h,i=a.camelCase(c),j=b.style;return c=a.cssProps[i]||(a.cssProps[i]=n(j,i)),h=a.cssHooks[c]||a.cssHooks[i],void 0===d?h&&"get"in h&&void 0!==(f=h.get(b,!1,e))?f:j[c]:(g=typeof d,"string"===g&&(f=u.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(a.css(b,c)),g="number"),null!=d&&d===d&&("number"!==g||a.cssNumber[i]||(d+="px"),l.clearCloneStyle||""!==d||0!==c.indexOf("background")||(j[c]="inherit"),h&&"set"in h&&void 0===(d=h.set(b,d,e))||(j[c]=d)),void 0)}},css:function(b,c,d,e){var f,g,h,j=a.camelCase(c);return c=a.cssProps[j]||(a.cssProps[j]=n(b.style,j)),h=a.cssHooks[c]||a.cssHooks[j],h&&"get"in h&&(f=h.get(b,!0,d)),void 0===f&&(f=i(b,c,e)),"normal"===f&&c in w&&(f=w[c]),""===d||d?(g=parseFloat(f),d===!0||a.isNumeric(g)?g||0:f):f}}),a.each(["height","width"],function(b,c){a.cssHooks[c]={get:function(b,d,e){return d?s.test(a.css(b,"display"))&&0===b.offsetWidth?a.swap(b,v,function(){return q(b,c,e)}):q(b,c,e):void 0},set:function(b,d,e){var f=e&&h(b);return o(b,d,e?p(b,c,e,"border-box"===a.css(b,"boxSizing",!1,f),f):0)}}}),a.cssHooks.marginRight=k(l.reliableMarginRight,function(b,c){return c?a.swap(b,{display:"inline-block"},i,[b,"marginRight"]):void 0}),a.each({margin:"",padding:"",border:"Width" -},function(b,c){a.cssHooks[b+c]={expand:function(a){for(var d=0,e={},g="string"==typeof a?a.split(" "):[a];4>d;d++)e[b+f[d]+c]=g[d]||g[d-2]||g[0];return e}},d.test(b)||(a.cssHooks[b+c].set=o)}),a.fn.extend({css:function(b,d){return c(this,function(b,c,d){var e,f,g={},i=0;if(a.isArray(c)){for(e=h(b),f=c.length;f>i;i++)g[c[i]]=a.css(b,c[i],!1,e);return g}return void 0!==d?a.style(b,c,d):a.css(b,c)},b,d,arguments.length>1)},show:function(){return r(this,!0)},hide:function(){return r(this)},toggle:function(b){return"boolean"==typeof b?b?this.show():this.hide():this.each(function(){g(this)?a(this).show():a(this).hide()})}}),a}),define("jquery/src/core/ready",["../core","../core/init","../deferred"],function(a){function b(){document.removeEventListener("DOMContentLoaded",b,!1),window.removeEventListener("load",b,!1),a.ready()}var c;a.fn.ready=function(b){return a.ready.promise().done(b),this},a.extend({isReady:!1,readyWait:1,holdReady:function(b){b?a.readyWait++:a.ready(!0)},ready:function(b){(b===!0?--a.readyWait:a.isReady)||(a.isReady=!0,b!==!0&&--a.readyWait>0||(c.resolveWith(document,[a]),a.fn.triggerHandler&&(a(document).triggerHandler("ready"),a(document).off("ready"))))}}),a.ready.promise=function(d){return c||(c=a.Deferred(),"complete"===document.readyState?setTimeout(a.ready):(document.addEventListener("DOMContentLoaded",b,!1),window.addEventListener("load",b,!1))),c.promise(d)},a.ready.promise()}),define("jquery/src/css/swap",["../core"],function(a){return a.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},a.swap}),define("jquery/src/css/support",["../core","../var/support"],function(a,b){return function(){function c(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",h.innerHTML="",f.appendChild(g);var a=window.getComputedStyle(h,null);d="1%"!==a.top,e="4px"===a.width,f.removeChild(g)}var d,e,f=document.documentElement,g=document.createElement("div"),h=document.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",g.appendChild(h),window.getComputedStyle&&a.extend(b,{pixelPosition:function(){return c(),d},boxSizingReliable:function(){return null==e&&c(),e},reliableMarginRight:function(){var a,b=h.appendChild(document.createElement("div"));return b.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",b.style.marginRight=b.style.width="0",h.style.width="1px",f.appendChild(g),a=!parseFloat(window.getComputedStyle(b,null).marginRight),f.removeChild(g),h.removeChild(b),a}}))}(),b}),define("jquery/src/css/addGetHookIf",[],function(){function a(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}return a}),define("jquery/src/css/curCSS",["../core","./var/rnumnonpx","./var/rmargin","./var/getStyles","../selector"],function(a,b,c,d){function e(e,f,g){var h,i,j,k,l=e.style;return g=g||d(e),g&&(k=g.getPropertyValue(f)||g[f]),g&&(""!==k||a.contains(e.ownerDocument,e)||(k=a.style(e,f)),b.test(k)&&c.test(f)&&(h=l.width,i=l.minWidth,j=l.maxWidth,l.minWidth=l.maxWidth=l.width=k,k=g.width,l.width=h,l.minWidth=i,l.maxWidth=j)),void 0!==k?k+"":k}return e}),define("jquery/src/css/var/getStyles",[],function(){return function(a){return a.ownerDocument.defaultView.opener?a.ownerDocument.defaultView.getComputedStyle(a,null):window.getComputedStyle(a,null)}}),define("jquery/src/css/var/rnumnonpx",["../../var/pnum"],function(a){return new RegExp("^("+a+")(?!px)[a-z%]+$","i")}),define("jquery/src/css/var/rmargin",[],function(){return/^margin/}),define("delite/KeyNav",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","./features","./Widget","./activationTracker"],function(a,b,c,d){function e(a){var b=a.nodeName.toLowerCase();return!a.readOnly&&("textarea"===b||"input"===b&&/^(color|email|number|password|search|tel|text|url|range)$/.test(a.type))}return a(d,{focusDescendants:!0,navigatedDescendant:null,descendantSelector:null,_getTargetElement:function(a){for(var b=a.target;b!==this;b=b.parentNode)if(this._selectorFunc(b))return b;return this},createdCallback:function(){if(this.on("keypress",this._keynavKeyPressHandler.bind(this)),this.on("keydown",this._keynavKeyDownHandler.bind(this)),this.on("click",function(a){var b=this._getTargetElement(a);b!==this&&this._descendantNavigateHandler(b,a)}),this.on("delite-deactivated",function(){this.focusDescendants&&this._keynavDeactivatedHandler()}.bind(this)),this.on("focusin",function(a){if(this.focusDescendants){var b=this._getTargetElement(a);b===this?this._keynavFocusHandler(a):this._descendantNavigateHandler(b,a)}}.bind(this)),"string"==typeof this.descendantSelector){var a=c("dom-matches");this._selectorFunc=function(b){return b[a](this.descendantSelector)}}else this.descendantSelector?this._selectorFunc=this.descendantSelector:this._selectorFunc=function(a){return a.parentNode===this.containerNode}},attachedCallback:function(){this.focusDescendants&&!this.hasAttribute("tabindex")&&(this.tabIndex="0")},homeKeyHandler:function(a){this.navigateToFirst(a)},endKeyHandler:function(a){this.navigateToLast(a)},focus:function(){this.navigateToFirst()},navigateToFirst:function(a){this.navigateTo(this.getNext(this,1),a)},navigateToLast:function(a){this.navigateTo(this.getNext(this,-1),!1,a)},navigateTo:function(a,b,c){this.focusDescendants?(a.tabIndex="_savedTabIndex"in this?this._savedTabIndex:this.tabIndex,a.focus(b?"end":"start")):this._descendantNavigateHandler(a,c)},_keynavFocusHandler:function(){this.navigatedDescendant||(this._savedTabIndex=this.tabIndex,this.removeAttribute("tabindex"),this.focus())},_keynavDeactivatedHandler:function(){this.setAttribute("tabindex",this._savedTabIndex),delete this._savedTabIndex,this.navigatedDescendant&&(this.navigatedDescendant.tabIndex="-1",this.navigatedDescendant=null)},_descendantNavigateHandler:function(a,c){a&&a!==this.navigatedDescendant&&(this.focusDescendants&&(this.navigatedDescendant&&!this.navigatedDescendant._destroyed&&(this.navigatedDescendant.tabIndex="-1"),"_savedTabIndex"in this||(this._savedTabIndex=this.tabIndex,this.removeAttribute("tabindex")),a.tabIndex=this._savedTabIndex),this.navigatedDescendant&&b(this.navigatedDescendant).removeClass("d-active-descendant"),this.emit("keynav-child-navigated",{oldValue:this.navigatedDescendant,newValue:a,triggerEvent:c}),this.navigatedDescendant=a,a&&b(a).addClass("d-active-descendant"))},_searchString:"",multiCharSearchDuration:1e3,_keyboardSearchHandler:function(a,b,c,d){a&&this.navigateTo(a)},_keyboardSearchCompare:function(a,b){var c=a,d=a.label||(c.focusNode?c.focusNode.label:"")||c.textContent||"",e=d.replace(/^\s+/,"").substr(0,b.length).toLowerCase();return b.length&&e===b?-1:0},_keynavKeyDownHandler:function(a){(!e(a.target)||"Left"!==a.key&&"Right"!==a.key&&"Home"!==a.key&&"End"!==a.key&&"Spacebar"!==a.key)&&("Spacebar"===a.key&&this._searchTimer&&!(a.ctrlKey||a.altKey||a.metaKey)?(a.preventDefault(),this._keyboardSearch(a," ")):this._applyKeyHandler(a))},_applyKeyHandler:function(a){var b;switch(a.key){case"Left":b="rtl"===this.effectiveDir?"nextKeyHandler":"previousKeyHandler";break;case"Right":b="rtl"===this.effectiveDir?"previousKeyHandler":"nextKeyHandler";break;default:b=a.key.charAt(0).toLowerCase()+a.key.substr(1)+"KeyHandler"}var c=this[b];c&&(c.call(this,a,this.navigatedDescendant),a.stopPropagation(),a.preventDefault(),this._searchString="")},_keynavKeyPressHandler:function(a){e(a.target)||a.charCode<=32||a.ctrlKey||a.altKey||a.metaKey||(a.preventDefault(),a.stopPropagation(),this._keyboardSearch(a,a.key.toLowerCase()))},_keyboardSearch:function(a,b){var c,d=null,e=0;this._searchTimer&&this._searchTimer.remove(),this._searchString+=b;var f=/^(.)\1*$/.test(this._searchString),g=f?1:this._searchString.length;c=this._searchString.substr(0,g),this._searchTimer=this.defer(function(){this._searchTimer=null,this._searchString=""},this.multiCharSearchDuration);var h=this.navigatedDescendant||null;if(1!==g&&h||(h=this.getNext(h,1))){var i=h;do{var j=this._keyboardSearchCompare(h,c);if(j&&0===e++&&(d=h),-1===j){e=-1;break}h=this.getNext(h,1)}while(h!==i);this._keyboardSearchHandler(d,a,c,e)}},getNext:function(a,b){function c(a){if(a.firstElementChild)return a.firstElementChild;for(;a!==f;){if(a.nextElementSibling)return a.nextElementSibling;a=a.parentNode}return f}function d(a){for(;a.lastElementChild;)a=a.lastElementChild;return a}function e(a){return a===f?d(f):a.previousElementSibling&&d(a.previousElementSibling)||a.parentNode}for(var f=this,g=a;;){if(a=b>0?c(a):e(a),a===g)return null;if(this._selectorFunc(a))return a}}})}),define("delite/HasDropDown",["dcl/dcl","requirejs-dplugins/Promise!","requirejs-dplugins/jquery!attributes/classes","./place","./popup","./Widget","./activationTracker","dpointer/events"],function(a,b,c,d,e,f){return a(f,{buttonNode:null,popupStateNode:null,aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:-1,dropDownPosition:["below","above"],focusOnPointerOpen:!0,focusOnKeyboardOpen:!0,opened:!1,_dropDownPointerDownHandler:function(){this.disabled||this.readOnly||(this._docHandler=this.on("pointerup",this._dropDownPointerUpHandler.bind(this),this.ownerDocument.body),this.toggleDropDown())},_dropDownPointerUpHandler:function(a){if(this._docHandler&&(this._docHandler.remove(),this._docHandler=null),this._currentDropDown){var b=d.position(this.buttonNode);if(!(a.pageX>=b.x&&a.pageX<=b.x+b.w&&a.pageY>=b.y&&a.pageY<=b.y+b.h)){for(var e,f=a.target;f&&!e;){if(c(f).hasClass("d-popup")){e=!0;break}f=f.parentNode}if(e){if(this._currentDropDown.handleSlideClick){var g=this.getEnclosingWidget(a.target);g.handleSlideClick(g,a)}return}}}if(this._openDropDownPromise){var h="mouse"===a.pointerType&&!this.hovering;this._focusDropDownOnOpen(h)}else this.focus&&this.defer(this.focus)},_focusDropDownOnOpen:function(a){this._openDropDownPromise.then(function(b){var c=b.dropDown;c.focus&&(a?this.focusOnKeyboardOpen:this.focusOnPointerOpen)&&(this._focusDropDownTimer=this.defer(function(){c.focus(),delete this._focusDropDownTimer}))}.bind(this))},createdCallback:function(){this.on("pointerenter",function(){this.hovering=!0}.bind(this)),this.on("pointerleave",function(){this.hovering=!1}.bind(this)),this.on("delite-deactivated",this._deactivatedHandler.bind(this))},preRender:function(){this._HasDropDownListeners&&this._HasDropDownListeners.forEach(function(a){a.remove()})},postRender:function(){this.setAttribute("aria-haspopup","true"),this.buttonNode=this.buttonNode||this.focusNode||this,this.popupStateNode=this.popupStateNode||this.focusNode||this.buttonNode,this._HasDropDownListeners=[this.on("pointerdown",this._dropDownPointerDownHandler.bind(this),this.buttonNode),this.on("keydown",this._dropDownKeyDownHandler.bind(this),this.focusNode||this),this.on("keyup",this._dropDownKeyUpHandler.bind(this),this.focusNode||this),this.on("touchstart",function(a){"center"===this.dropDownPosition[0]&&a.preventDefault()}.bind(this),this.buttonNode),this.on("touchend",function(a){a.preventDefault()},this.buttonNode),this.on("click",function(a){a.preventDefault(),a.stopPropagation()},this.buttonNode)]},detachedCallback:function(){this.opened&&this.closeDropDown(!0),this._previousDropDown&&(e.detach(this._previousDropDown),delete this._previousDropDown)},destroy:function(){this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroy(),delete this.dropDown)},_dropDownKeyDownHandler:function(a){if(!this.disabled&&!this.readOnly){var b=this._currentDropDown,c=a.target;return b&&this.opened&&b.emit("keydown",a)===!1?(a.stopPropagation(),void a.preventDefault()):void(b&&this.opened&&"Esc"===a.key?(this.closeDropDown(),a.stopPropagation(),a.preventDefault()):!this.opened&&("Down"===a.key||("Enter"===a.key||"Spacebar"===a.key&&(!this._searchTimer||a.ctrlKey||a.altKey||a.metaKey))&&("input"!==(c.tagName||"").toLowerCase()||c.type&&"text"!==c.type.toLowerCase()))&&(this._openOnKeyUp=!0,a.stopPropagation(),a.preventDefault()))}},_dropDownKeyUpHandler:function(){this._openOnKeyUp&&(delete this._openOnKeyUp,this.openDropDown(),this._focusDropDownOnOpen(!0))},_deactivatedHandler:function(){this.closeDropDown(!1)},loadDropDown:function(){if(this.dropDown)return this.dropDown;var a;return this.emit("delite-display-load",{setChild:function(b){a=b}}),b.resolve(a).then(function(a){return a.child})},toggleDropDown:function(){return this.disabled||this.readOnly?void 0:this.opened?this.closeDropDown(!0):this.openDropDown()},openDropDown:function(){if(this._openDropDownPromise)return this._openDropDownPromise;var a,d=this.loadDropDown();return this._openDropDownPromise=b.resolve(d).then(function(b){if(this._previousDropDown&&this._previousDropDown!==b&&(e.detach(this._previousDropDown),delete this._previousDropDown),!a){delete this._cancelPendingDisplay,this._currentDropDown=b;var d=this.aroundNode||this,f=this;this.emit("delite-before-show",{child:b,cancelable:!1}),this.id||(this.id="HasDropDown_"+this.widgetId),b._originalStyle=b.style.cssText;var g=e.open({parent:this,popup:b,around:d,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){f.closeDropDown(!0)},onCancel:function(){f.closeDropDown(!0)},onClose:function(){c(f._popupStateNode).removeClass("d-drop-down-open"),this.opened=!1}});if(g&&(this.forceWidth||this.autoWidth&&d.offsetWidth>b._popupWrapper.offsetWidth)){var h=d.offsetWidth-b._popupWrapper.offsetWidth;b._popupWrapper.style.width=d.offsetWidth+"px",b.style.width=d.offsetWidth+"px","R"===g.corner[1]&&(b._popupWrapper.style.left=b._popupWrapper.style.left.replace("px","")-h+"px")}return c(this._popupStateNode).addClass("d-drop-down-open"),this.opened=!0,this.popupStateNode.setAttribute("aria-expanded","true"),this.popupStateNode.setAttribute("aria-owns",b.id),"presentation"===b.getAttribute("role")||b.getAttribute("aria-labelledby")||b.setAttribute("aria-labelledby",this.id),this.emit("delite-after-show",{child:b,cancelable:!1}),{dropDown:b,position:g}}}.bind(this)),this._cancelPendingDisplay=function(){d.cancel&&d.cancel(),a=!0,delete this._cancelPendingDisplay,delete this._openDropDownPromise}.bind(this),this._openDropDownPromise},closeDropDown:function(a){this._cancelPendingDisplay&&this._cancelPendingDisplay(),this._openDropDownPromise&&delete this._openDropDownPromise,this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer),this.opened&&(this.popupStateNode.setAttribute("aria-expanded","false"),a&&this.focus&&this.focus(),this.emit("delite-before-hide",{child:this._currentDropDown,cancelable:!1}),e.close(this._currentDropDown),this.opened=!1,this._currentDropDown.style.cssText=this._currentDropDown._originalStyle,this.emit("delite-after-hide",{child:this._currentDropDown,cancelable:!1})),this._previousDropDown=this._currentDropDown,delete this._currentDropDown}})}),define("delite/FormWidget",["dcl/dcl","./Widget"],function(a,b){return a(b,{name:"",alt:"",value:"",tabIndex:0,tabStops:"focusNode",disabled:!1,_mapAttributes:a.superCall(function(a){return function(){var b=this.querySelector("input");return b?(b.value&&this.setAttribute("value",b.value),b.name&&this.setAttribute("name",b.name)):b=this.ownerDocument.createElement("input"),this.valueNode=b,a.call(this)}}),refreshRendering:function(a){"tabStops"in a&&a.tabStops.split(/, */).forEach(function(a){var b=this[a];b.tabIndex="-1",b.removeAttribute("tabindex")},this),("tabStops"in a||"tabIndex"in a||"disabled"in a||"alt"in a)&&this.forEachFocusNode(function(a){a.disabled=this.disabled,this.disabled?(a.tabIndex="-1",a.removeAttribute("tabindex")):a.tabIndex=this._get("tabIndex"),a.alt=this.alt,a.setAttribute("aria-disabled",""+this.disabled)});var b=this.valueNode!==this&&this.valueNode;b&&("value"in a&&(b.value=this.value),"disabled"in a&&(b.disabled=this.disabled),"name"in a&&(b.name=this.name))},focus:function(){var a=this.firstFocusNode();if(!this.disabled&&a.focus)try{a.focus()}catch(b){}},firstFocusNode:function(){return this[this.tabStops.split(/, */)[0]]},forEachFocusNode:function(a){this.tabStops.split(/, */).map(function(b){var c=this[b];c!==this&&a.call(this,c)},this)},setAttribute:a.superCall(function(a){return function(b,c){/^aria-/.test(b)?this.forEachFocusNode(function(a){a.setAttribute(b,c)}):a.call(this,b,c)}}),getAttribute:a.superCall(function(a){return function(b){return/^aria-/.test(b)?this.firstFocusNode().getAttribute(b):a.call(this,b)}}),hasAttribute:a.superCall(function(a){return function(b){return/^aria-/.test(b)?this.firstFocusNode().hasAttribute(b):a.call(this,b)}}),removeAttribute:a.superCall(function(a){return function(b){/^aria-/.test(b)?this.forEachFocusNode(function(a){a.removeAttribute(b)}):a.call(this,b)}}),postRender:function(){for(var a,b=0;a=this.attributes[b++];)/^aria-/.test(a.name)&&(this.setAttribute(a.name,a.value),HTMLElement.prototype.removeAttribute.call(this,a.name))},attachedCallback:function(){for(var a=this.parentNode;a;a=a.parentNode)if(/^form$/i.test(a.tagName)){this.on("reset",function(){this.defer(function(){this.afterFormResetCallback()})}.bind(this),a);break}},afterFormResetCallback:function(){this.checked!==this.valueNode.checked&&(this.checked=this.valueNode.checked)}})}),define("delite/FormValueWidget",["dcl/dcl","./FormWidget","./activationTracker"],function(a,b){function c(a,b,c){return function(d){this.value=d,this[c]&&this[c].remove(),this[c]=this.defer(function(){delete this[c],(typeof d!=typeof this[b]||0!==this.compare(d,this[b]))&&(this[b]=d,this.deliver(),this.emit(a))})}}return a(b,{readOnly:!1,refreshRendering:function(a){("tabStops"in a||"readOnly"in a)&&this.forEachFocusNode(function(a){a.readOnly=this.readOnly})},compare:function(a,b){return"number"==typeof a&&"number"==typeof b?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:b>a?-1:0},createdCallback:function(){this.on("delite-activated",function(){this._previousOnChangeValue=this.value,this._previousOnInputValue=this.value})},handleOnChange:c("change","_previousOnChangeValue","_onChangeHandle"),handleOnInput:c("input","_previousOnInputValue","_onInputHandle"),afterFormResetCallback:function(){console.log(this.id,"FormValueWidget#afterFormResetCallback"),this.value!==this.valueNode.value&&(this.value=this.valueNode.value)}})}),define("delite/DstoreToStoreAdapter",["dcl/dcl"],function(a){return a(null,{constructor:function(a){this.source=a.source,this.data=a.processQueryResult(this.source.filter(a.query)),this.data.track&&(this.data=this._tracked=this.data.track(),this.track=!0)},track:!1,untrack:function(){this._tracked&&(this._tracked.tracking.remove(),this._tracked=null)},fetch:function(){return this.data.fetch()},fetchRange:function(a){return this.data.fetchRange(a)},on:function(a,b){return this.data.on(a,b)},setIdentity:function(a,b){this.source._setIdentity(a,b)},get:function(a){return this.source.get(a)},getIdentity:function(a){return this.source.getIdentity(a)}})}),define("delite/DisplayContainer",["dcl/dcl","requirejs-dplugins/Promise!","./Container"],function(a,b,c){return a(c,{show:function(c,d){var e=this;return this.loadChild(c,d).then(function(f){-1===e.getIndexOfChild(f.child)&&e.addChild(f.child,f.index);var g={dest:c,cancelable:!1};return a.mix(g,d),a.mix(g,f),e.emit("delite-before-show",g),b.resolve(e.changeDisplay(f.child,g)).then(function(){return e.emit("delite-after-show",g),f})})},hide:function(c,d){var e={hide:!0};a.mix(e,d);var f=this;return this.loadChild(c,e).then(function(e){var g={dest:c,bubbles:!0,cancelable:!1,hide:!0};return a.mix(g,d),a.mix(g,e),f.emit("delite-before-hide",g),b.resolve(f.changeDisplay(e.child,g)).then(function(){return f.emit("delite-after-hide",g),e})})},changeDisplay:function(a,b){b.hide===!0?(a.style.visibility="hidden",a.style.display="none"):(a.style.visibility="visible",a.style.display="")},loadChild:function(c,d){var e,f={dest:c,setChild:function(a){e=a}};return a.mix(f,d),this.emit("delite-display-load",f),e||(e={child:"string"==typeof c?this.ownerDocument.getElementById(c):c}),b.resolve(e)}})}),define("delite/DialogUnderlay",["./register","./Widget","./BackgroundIframe","./Viewport","./theme!./DialogUnderlay/themes/{{theme}}/DialogUnderlay.css"],function(a,b,c,d){var e=a("d-dialog-underlay",[HTMLElement,b],{baseClass:"d-dialog-underlay",createdCallback:a.after(function(){this.ownerDocument.body.appendChild(this),this.attachedCallback()}),attachedCallback:function(){this._resizeListener=d.on("resize",function(){this._open&&this.layout()}.bind(this))},detachedCallback:function(){this._resizeListener.remove()},layout:function(){var a=this.style;a.display="none";var b=this.ownerDocument.documentElement;a.width=b.clientWidth+"px",a.height=b.clientHeight+"px",a.display=""},show:function(){this._open||(this.style.display="block",this._open=!0,this.layout(),this.bgIframe=new c(this))},hide:function(){this._open&&(this.bgIframe.destroy(),delete this.bgIframe,this.style.display="none",this._open=!1)}});return e.show=function(a,b){var c=e._singleton;!c||c._destroyed?c=e._singleton=new e(a):a&&c.mix(a),c.style.zIndex=b,c.show()},e.hide=function(){var a=e._singleton;a&&!a._destroyed&&a.hide()},e}),define("delite/CustomElement",["dcl/advise","dcl/dcl","decor/Observable","decor/Destroyable","decor/Stateful","requirejs-dplugins/has","./on","./register"],function(advise,dcl,Observable,Destroyable,Stateful,has,on,register){function getObject(a){try{return a.split(".").reduce(function(a,b){return a[b]},this)}catch(b){}}has.add("setter-on-native-prop",function(){var a=!1,b=dcl(Stateful,{getProps:function(){return{dir:!0}},dir:"",_setDirAttr:function(){a=!0}}),c=register("test-setter-on-native-prop",[HTMLElement,b],{}),d=new c;return d.dir="rtl",a});var REGEXP_IGNORE_PROPS=/^constructor$|^_set$|^_get$|^deliver$|^discardChanges$|^_(.+)Attr$/,CustomElement=dcl([Stateful,Destroyable],{introspect:function(){if(!has("setter-on-native-prop")){var a=this,b=document.createElement(this._extends||"div"),c=this._nativePropSetterMap={};this._nativeAttrs=[];do Object.keys(a).forEach(function(d){var e=d.toLowerCase();if(d in b&&!c[e]){var f=Object.getOwnPropertyDescriptor(a,d);f&&f.set&&(this._nativeAttrs.push(e),c[e]=f.set)}},this),a=Object.getPrototypeOf(a);while(a&&a!==this._baseElement.prototype)}},getProps:function(){var a={},b=this,c=this._propCaseMap={};do Object.keys(b).forEach(function(b){REGEXP_IGNORE_PROPS.test(b)||(a[b]=!0,c[b.toLowerCase()]=b)}),b=Object.getPrototypeOf(b);while(b&&b!==this._baseElement.prototype);return a},_processNativeProps:function(){has("setter-on-native-prop")||this._nativeAttrs.forEach(function(a){if(this.hasAttribute(a)){var b=this.getAttribute(a);this.removeAttribute(a),null!==b&&this._nativePropSetterMap[a].call(this,b)}},this)},created:!1,createdCallback:dcl.advise({before:function(){this._observable||Observable.call(this),this._parsedAttributes=this._mapAttributes()},after:function(){if(this.created=!0,this._parsedAttributes.forEach(function(a){a.event?this.on(a.event,a.callback):this[a.prop]=a.value},this),!has("setter-on-native-prop")){this._processNativeProps();var a=window.MutationObserver||WebKitMutationObserver,b=new a(function(a){a.forEach(function(a){var b=a.attributeName,c=this._nativePropSetterMap[b],d=this.getAttribute(b);null!==d&&(this.removeAttribute(b),c.call(this,d))},this)}.bind(this));b.observe(this,{subtree:!1,attributeFilter:this._nativeAttrs,attributes:!0})}}}),attached:!1,attachedCallback:dcl.advise({before:function(){this.deliver()},after:function(){this.attached=!0,this.emit("customelement-attached",{bubbles:!1,cancelable:!1})}}),detachedCallback:function(){this.attached=!1},_parsePrototypeAttr:function(name,value){function stringToObject(value){var obj;try{obj=eval("("+("{"===value[0]?"":"{")+value+("{"===value[0]?"":"}")+")")}catch(e){throw new SyntaxError("Error in attribute conversion to object: "+e.message+"\nAttribute Value: '"+value+"'")}return obj}switch(typeof this[name]){case"string":return value;case"number":return value-0;case"boolean":return"false"!==value;case"object":return getObject(value)||(this[name]instanceof Array?value?value.split(/\s+/):[]:stringToObject(value));case"function":return this.parseFunctionAttribute(value,[])}},parseFunctionAttribute:function(a,b){return getObject(a)||new(Function.bind.apply(Function,[void 0].concat(b).concat([a])))},parseAttribute:function(a,b){var c=this._propCaseMap;return a in c?(a=c[a],{prop:a,value:this._parsePrototypeAttr(a,b)}):/^on-/.test(a)?{event:a.substring(3),callback:this.parseFunctionAttribute(b,["event"])}:void 0},_mapAttributes:function(){for(var a,b=0,c=[],d=[];a=this.attributes[b++];){var e=a.name.toLowerCase(),f=this.parseAttribute(e,a.value);f&&(c.push(f),d.push(a.name))}return d.forEach(this.removeAttribute,this),c},destroy:function(){this.findCustomElements().forEach(function(a){a.destroy&&a.destroy()}),this.parentNode&&(this.parentNode.removeChild(this),this.detachedCallback())},emit:function(a,b){b=b||{};var c="bubbles"in b?b.bubbles:!0,d="cancelable"in b?b.cancelable:!0,e=this.ownerDocument.createEvent("HTMLEvents");e.initEvent(a,c,d);for(var f in b)f in e||(e[f]=b[f]);return this.dispatchEvent(e)},on:function(a,b,c){return on(c||this,a,b)},getPropsToObserve:function(){return this._ctor._propsToObserve},deliver:dcl.before(function(){this._processNativeProps()}),findCustomElements:function(a){function b(a){for(var d=a.firstChild;d;d=d.nextSibling)1===d.nodeType&&d.createdCallback?c.push(d):b(d)}var c=[];return b(a||this),c}});return dcl.chainAfter(CustomElement,"createdCallback"),dcl.chainAfter(CustomElement,"attachedCallback"),dcl.chainBefore(CustomElement,"detachedCallback"),CustomElement}),define("delite/CssState",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","./Widget"],function(a,b,c){return a(c,{booleanCssProps:["disabled","readOnly","selected","opened"],refreshRendering:function(a){this.booleanCssProps.forEach(function(c){c in a&&b(this).toggleClass("d-"+c.toLowerCase(),this[c])},this),"checked"in a&&(b(this).removeClass("mixed"===a.checked?"d-mixed":"d-checked"),this.checked&&b(this).addClass("mixed"===this.checked?"d-mixed":"d-checked")),"state"in a&&b(this).removeClass("d-"+a.state.toLowerCase()).addClass("d-"+this.state.toLowerCase())}})}),define("delite/Container",["dcl/dcl","./Widget"],function(a,b){return a(b,{containerNode:void 0,render:a.advise({before:function(){for(var a=this._srcDom=this.ownerDocument.createDocumentFragment(),b=this.containerNode||this;b.firstChild;)a.appendChild(b.firstChild)},after:function(){this.containerNode||(this.containerNode=this),this.containerNode.appendChild(this._srcDom)}}),appendChild:a.superCall(function(a){return function(b){if(this.rendered){var c=a.call(this.containerNode,b);return this.onAddChild(b),c}return a.call(this,b)}}),insertBefore:a.superCall(function(a){return function(b,c){if(this.rendered){var d=a.call(this.containerNode,b,c);return this.onAddChild(b),d}return a.call(this,b,c)}}),onAddChild:function(a){this.attached&&a.attachedCallback&&a.attachedCallback(),this.emit("delite-add-child",{bubbles:!1,cancelable:!1,child:a})},addChild:function(a,b){var c=this.containerNode,d=c.children[b];c.insertBefore(a,d||null)},removeChild:function(a){"number"==typeof a&&(a=this.getChildren()[a]),a&&a.parentNode&&HTMLElement.prototype.removeChild.call(a.parentNode,a),this.emit("delite-remove-child",{bubbles:!1,cancelable:!1,child:a})},getChildren:function(){return Array.prototype.slice.call(this.containerNode.children)},hasChildren:function(){return this.getChildren().length>0},getIndexOfChild:function(a){return this.getChildren().indexOf(a)}})}),define("delite/Bidi",["./features"],function(a){var b="‪",c="‫",d="‬";return{textDir:"",getInheritedDir:function(){return this._inheritedDir||this.ownerDocument.body.dir||this.ownerDocument.documentElement.dir||"ltr"},attachedCallback:function(){a("inherited-dir")&&(this._inheritedDir=window.getComputedStyle(this,null).direction,this.notifyCurrentValue("dir"),this.deliver())},getTextDir:function(a){var b=this.textDir;return"auto"===b?this._checkContextual(a):/^(rtl|ltr)$/i.test(b)?b:this.effectiveDir},_checkContextual:function(a){var b=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(a);return b?b[0]<="z"?"ltr":"rtl":this.effectiveDir},applyTextDir:function(a){if(this.textDir){var b=this.textDir;if("auto"===b){var c=a.tagName.toLowerCase(),d="input"===c||"textarea"===c?a.value:a.textContent;b=this._checkContextual(d)}a.dir=b}else a.dir=this.effectiveDir},applyTextDirection:function(a){return this.textDir?this.wrapWithUcc(this.removeUcc(a)):this.removeUcc(a)},wrapWithUcc:function(a){return("ltr"===this.getTextDir(a)?b:c)+a+d},removeUcc:function(a){return a&&a.replace(/[\u200E\u200F\u202A-\u202C]/g,"")},enforceTextDirWithUcc:function(a){a.originalText=a.text,a.innerHTML=this.applyTextDirection(a.innerHTML)},restoreOriginalText:function(a){a.originalText&&(a.text=a.originalText,delete a.originalText)}}}),define("delite/BackgroundIframe",["dcl/dcl","./features"],function(a,b){var c=function(){var a=[];this.pop=function(){var b;return a.length?(b=a.pop(),b.style.display=""):(b=document.createElement("iframe"),b.src="javascript:''",b.className="d-background-iframe",b.setAttribute("role","presentation"),b.tabIndex=-1),b},this.push=function(b){b.style.display="none",a.push(b)}},d=new c;return a(null,{constructor:function(a){if(b("config-bgIframe")){var c=this.iframe=d.pop();a.appendChild(c),c.style.width="100%",c.style.height="100%"}},destroy:function(){this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),d.push(this.iframe),delete this.iframe)}})}),define("delite/ArrayToStoreAdapter",["dcl/dcl","decor/Evented","decor/ObservableArray","decor/Observable","requirejs-dplugins/Promise!"],function(a,b,c,d,e){return a(b,{constructor:function(a){this.source=a.source,this._itemHandles=[],this._observeCallbackArray=this.__observeCallbackArray.bind(this),this._observeCallbackItems=this.__observeCallbackItems.bind(this);for(var b=0;b=0},_redirectEvt:function(a,b){if(this._isQueried(a.obj)&&0>b){var c=this._addItemToCollection(a);this.emit("add",c)}else if(!this._isQueried(a.obj)&&b>=0){var d=this._removeItemFromCollection(a);this.emit("delete",d)}},_updateItemInCollection:function(a,b){return{index:b,previousIndex:b,target:a.obj}},__observeCallbackArray:function(a){if(!this._beingDiscarded)for(var b=0;bc};case"gte":return function(a){return a[b]>=c};case"in":return function(a){return-1!==c.indexOf(a[b])};case"match":return function(a){return c.test(a[b])};case"contains":return function(a){return this._arrayContains(a[b],c)}.bind(this);case"and":var d=this._compileFilterQuery(b),e=this._compileFilterQuery(c);return function(a){return d(a)&&e(a)};case"or":return d=this._compileFilterQuery(b),e=this._compileFilterQuery(c),function(a){return d(a)||e(a)};default:throw new Error("Unknown filter operation '"+a.type+"'")}},_arrayContains:function(a,b){for(var c=0;c/im,i=/]*>\s*([\s\S]+)\s*<\/body>/im,j="undefined"!=typeof location&&location.href,k=j&&location.protocol&&location.protocol.replace(/\:/,""),l=j&&location.hostname,m=j&&(location.port||void 0),n={},o=a.config&&a.config()||{};return b={version:"2.0.14",strip:function(a){if(a){a=a.replace(h,"");var b=a.match(i);b&&(a=b[1])}else a="";return a},jsEscape:function(a){return a.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:o.createXhr||function(){var a,b,c;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(b=0;3>b;b+=1){c=g[b];try{a=new ActiveXObject(c)}catch(d){}if(a){g=[c];break}}return a},parseName:function(a){var b,c,d,e=!1,f=a.lastIndexOf("."),g=0===a.indexOf("./")||0===a.indexOf("../");return-1!==f&&(!g||f>1)?(b=a.substring(0,f),c=a.substring(f+1)):b=a,d=c||b,f=d.indexOf("!"),-1!==f&&(e="strip"===d.substring(f+1),d=d.substring(0,f),c?c=d:b=d),{moduleName:b,ext:c,strip:e}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(a,c,d,e){var f,g,h,i=b.xdRegExp.exec(a);return i?(f=i[2],g=i[3],g=g.split(":"),h=g[1],g=g[0],!(f&&f!==c||g&&g.toLowerCase()!==d.toLowerCase()||(h||g)&&h!==e)):!0},finishLoad:function(a,c,d,e){d=c?b.strip(d):d,o.isBuild&&(n[a]=d),e(d)},load:function(a,c,d,e){if(e&&e.isBuild&&!e.inlineText)return void d();o.isBuild=e&&e.isBuild;var f=b.parseName(a),g=f.moduleName+(f.ext?"."+f.ext:""),h=c.toUrl(g),i=o.useXhr||b.useXhr;return 0===h.indexOf("empty:")?void d():void(!j||i(h,k,l,m)?b.get(h,function(c){b.finishLoad(a,f.strip,c,d)},function(a){d.error&&d.error(a)}):c([g],function(a){b.finishLoad(f.moduleName+"."+f.ext,f.strip,a,d)}))},write:function(a,c,d,e){if(n.hasOwnProperty(c)){var f=b.jsEscape(n[c]);d.asModule(a+"!"+c,"define(function () { return '"+f+"';});\n")}},writeFile:function(a,c,d,e,f){var g=b.parseName(c),h=g.ext?"."+g.ext:"",i=g.moduleName+h,j=d.toUrl(g.moduleName+h)+".js";b.load(i,d,function(c){var d=function(a){return e(j,a)};d.asModule=function(a,b){return e.asModule(a,j,b)},b.write(a,i,d,f)},f)}},"node"===o.env||!o.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"]?(c=require.nodeRequire("fs"),b.get=function(a,b,d){try{var e=c.readFileSync(a,"utf8");"\ufeff"===e[0]&&(e=e.substring(1)),b(e)}catch(f){d&&d(f)}}):"xhr"===o.env||!o.env&&b.createXhr()?b.get=function(a,c,d,e){var f,g=b.createXhr();if(g.open("GET",a,!0),e)for(f in e)e.hasOwnProperty(f)&&g.setRequestHeader(f.toLowerCase(),e[f]);o.onXhr&&o.onXhr(g,a),g.onreadystatechange=function(b){var e,f;4===g.readyState&&(e=g.status||0,e>399&&600>e?(f=new Error(a+" HTTP status: "+e),f.xhr=g,d&&d(f)):c(g.responseText),o.onXhrComplete&&o.onXhrComplete(g,a))},g.send(null)}:"rhino"===o.env||!o.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?b.get=function(a,b){var c,d,e="utf-8",f=new java.io.File(a),g=java.lang.System.getProperty("line.separator"),h=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(f),e)),i="";try{for(c=new java.lang.StringBuffer,d=h.readLine(),d&&d.length()&&65279===d.charAt(0)&&(d=d.substring(1)),null!==d&&c.append(d);null!==(d=h.readLine());)c.append(g),c.append(d);i=String(c.toString())}finally{h.close()}b(i)}:("xpconnect"===o.env||!o.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(d=Components.classes,e=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),f="@mozilla.org/windows-registry-key;1"in d,b.get=function(a,b){var c,g,h,i={};f&&(a=a.replace(/\//g,"\\")),h=new FileUtils.File(a);try{c=d["@mozilla.org/network/file-input-stream;1"].createInstance(e.nsIFileInputStream),c.init(h,1,0,!1),g=d["@mozilla.org/intl/converter-input-stream;1"].createInstance(e.nsIConverterInputStream),g.init(c,"utf-8",c.available(),e.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),g.readString(c.available(),i),g.close(),c.close(),b(i.value)}catch(j){throw new Error((h&&h.path||"")+": "+j)}}),b}),define("delite/uacss",["decor/sniff"],function(a){var b=a("ie"),c=Math.floor,d=a("ff"),e={"d-webkit":a("webkit"),"d-safari":a("safari"),"d-chrome":a("chrome"),"d-ios":a("ios"),"d-android":a("android")};b&&(e["d-ie"]=!0,e["d-ie-"+c(b)]=!0),d&&(e["d-ff-"+c(d)]=!0);var f="";for(var g in e)e[g]&&(f+=g+" ");return document.body.className=(document.body.className+" "+f).trim(),a}),define("delite/theme",["require","requirejs-dplugins/has","module","requirejs-dplugins/css"],function(a,b,c,d){"use strict";var e=c.config(),f={themeMap:e.themeMap||[[/.*/,"bootstrap"]],getTheme:function(){var a=f.theme||e.theme;if(!a){var b=location.search.match(/theme=(\w+)/);a=b&&b.length>1?b[1]:null}if(!a)for(var c=e.userAgent||(location.search.match(/ua=(\w+)/)?RegExp.$1:navigator.userAgent),d=this.themeMap,g=0;g0&&a[b].parent===a[b-1].popup;b--);return a[b]},open:function(a){return this._prepareToOpen(a),this._size(a,!0),this._position(a)},_prepareToOpen:function(a){var f=this._stack,g=a.popup,h=a.around;for(g.id||(g.id=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++);f.length&&(!a.parent||!f[f.length-1].popup.contains(a.parent));)this.close(f[f.length-1].popup);var i=this.moveOffScreen(g),j=["d-popup"];((g.baseClass||"")+" "+g.className).split(/ +/).forEach(function(a){a&&j.push(a+"-popup")}),b.mix(i,{id:g.id+"_wrapper",className:j.join(" ")}),i.style.zIndex=this._beginZIndex+f.length,i._popupParent=a.parent?a.parent:null,0===f.length&&h&&(this._firstAroundNode=h,this._firstAroundPosition=e.position(h),this._aroundMoveListener=setTimeout(this._checkScroll.bind(this),50)),d("config-bgIframe")&&!g.bgIframe&&(g.bgIframe=new c(i)),i.style.visibility="visible",g.style.visibility="visible";var k=[],l=function(b){"Esc"!==b.key&&"Tab"!==b.key||!a.onCancel||(b.stopPropagation(),b.preventDefault(),a.onCancel())}.bind(this);i.addEventListener("keydown",l),k.push({remove:function(){i.removeEventListener("keydown",l)}}),a.onCancel&&k.push(g.on("cancel",a.onCancel)),a.onExecute&&(k.push(g.on("execute",a.onExecute)),k.push(g.on("change",a.onExecute)));var m=Object.create(a);m.wrapper=i,m.handlers=k,f.push(m)},_size:function(a,b){var c=a.popup,d=c._popupWrapper,e=a.around,g=a.orient||["below","below-alt","above","above-alt"],h=f.getEffectiveBox(c.ownerDocument);if(b&&(d.style.height="auto","center"===g[0]&&(d.style.width="auto"),a._naturalHeight=c.offsetHeight,a._naturalWidth=c.offsetWidth),"center"===g[0])d.style.height=a._naturalHeight>.9*h.h?Math.floor(.9*h.h)+"px":"auto",d.style.width=a._naturalWidth>.9*h.w?Math.floor(.9*h.w)+"px":"auto";else{var i;if("maxHeight"in a&&-1!==a.maxHeight)i=a.maxHeight||1/0;else{var j=e?e.getBoundingClientRect():{top:a.y-(a.padding||0),height:2*(a.padding||0)};i=Math.floor(Math.max(j.top,h.h-(j.top+j.height)))}d.style.height=a._naturalHeight>i?i+"px":"auto"}c.style.height=d.style.height},_position:function(a){var b=a.popup,c=b._popupWrapper,d=a.around,f=a.orient||["below","below-alt","above","above-alt"],h=a.parent?"rtl"!==a.parent.effectiveDir:g(b.ownerDocument);if("center"!==f[0]){var i=b.orient?b.orient.bind(b):null;return d?e.around(c,d,f,h,i):e.at(c,a,"R"===f?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding,i)}e.center(c)},close:function(a){for(var b=this._stack;a&&b.some(function(b){return b.popup===a})||!a&&b.length;){var c=b.pop(),d=c.popup,e=c.onClose;d.bgIframe&&(d.bgIframe.destroy(),delete d.bgIframe);for(var f;f=c.handlers.pop();)f.remove();this.hide(d),e&&e()}0===b.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),this._firstAroundNode=this._firstAroundPosition=this._aroundMoveListener=null)}});return new i}),define("delite/place",["./Viewport"],function(a){function b(b,c,d,e){var f=a.getEffectiveBox(b.ownerDocument),g=b.style;b.parentNode&&"body"===String(b.parentNode.tagName).toLowerCase()||b.ownerDocument.body.appendChild(b);var h=null;c.some(function(a){var c=a.corner,i=a.pos,j=0,k={w:{L:f.l+f.w-i.x,R:i.x-f.l,M:f.w}[c.charAt(1)],h:{T:f.t+f.h-i.y,B:i.y-f.t,M:f.h}[c.charAt(0)]};if(g.left=g.right="auto",d){var l=d(b,a.aroundCorner,c,k,e);j="undefined"==typeof l?0:l}var m=g.display,n=g.visibility;"none"===g.display&&(g.visibility="hidden",g.display="");var o=b.getBoundingClientRect();g.display=m,g.visibility=n;var p={L:i.x,R:i.x-o.width,M:Math.max(f.l,Math.min(f.l+f.w,i.x+(o.width>>1))-o.width)}[c.charAt(1)],q={T:i.y,B:i.y-o.height,M:Math.max(f.t,Math.min(f.t+f.h,i.y+(o.height>>1))-o.height)}[c.charAt(0)],r=Math.max(f.l,p),s=Math.max(f.t,q),t=Math.min(f.l+f.w,p+o.width),u=Math.min(f.t+f.h,q+o.height),v=t-r,w=u-s;return j+=o.width-v+(o.height-w),(null==h||j>1)}[a.charAt(1)],y:{T:v,B:v+x,M:v+(x>>1)}[a.charAt(0)]}})}var i;if("string"==typeof c||"offsetWidth"in c||"ownerSVGElement"in c){if(i=d.position(c),/^(above|below)/.test(e[0])){var j=function(a){var b=getComputedStyle(a);return{t:parseFloat(b.borderTopWidth),b:parseFloat(b.borderBottomWidth)}},k=j(c),l=c.firstElementChild?j(c.firstElementChild):{t:0,b:0},m=j(a),n=a.firstElementChild?j(a.firstElementChild):{t:0,b:0};i.y+=Math.min(k.t+l.t,m.t+n.t),i.h-=Math.min(k.t+l.t,m.t+n.t)+Math.min(k.b+l.b,m.b+n.b)}}else i=c;if(c.parentNode)for(var o="absolute"===getComputedStyle(c).position,p=c.parentNode;p&&1===p.nodeType&&"BODY"!==p.nodeName;){var q=d.position(p),r=getComputedStyle(p);if(/^(relative|absolute)$/.test(r.position)&&(o=!1),!o&&/^(hidden|auto|scroll)$/.test(r.overflow)){var s=Math.min(i.y+i.h,q.y+q.h),t=Math.min(i.x+i.w,q.x+q.w);i.x=Math.max(i.x,q.x),i.y=Math.max(i.y,q.y),i.h=s-i.y,i.w=t-i.x}"absolute"===r.position&&(o=!0),p=p.parentNode}var u=i.x,v=i.y,w=i.w,x=i.h,y=[];e.forEach(function(a){var b=f;switch(a){case"above-centered":h("TM","BM");break;case"below-centered":h("BM","TM");break;case"after-centered":b=!b;case"before-centered":h(b?"ML":"MR",b?"MR":"ML");break;case"after":b=!b;case"before":h(b?"TL":"TR",b?"TR":"TL"),h(b?"BL":"BR",b?"BR":"BL");break;case"below-alt":b=!b;case"below":h(b?"BL":"BR",b?"TL":"TR"),h(b?"BR":"BL",b?"TR":"TL");break;case"above-alt":b=!b;case"above":h(b?"TL":"TR",b?"BL":"BR"),h(b?"TR":"TL",b?"BR":"BL")}});var z=b(a,y,g,{w:w,h:x});return z.aroundNodePos=i,z},center:function(b){var c=b.style,d=/^rtl$/i.test(b.dir||b.ownerDocument.body.dir||b.ownerDocument.documentElement.dir);c.top="-9999px",c[d?"right":"left"]="-9999px";var e=a.getEffectiveBox(),f=b.getBoundingClientRect();c.top=e.t+(e.h-f.height)/2+"px",c.left=e.l+(e.w-f.width)/2+"px",c.right="auto"},position:function(a){var b=a.getBoundingClientRect(),c=a.ownerDocument,d=c.defaultView;return{x:b.left+(d.pageXOffset||c.documentElement.scrollLeft),y:b.top+(d.pageYOffset||c.documentElement.scrollTop),h:b.height,w:b.width}}};return d}),define("delite/on",[],function(){return function(a,b,c){var d=!1,e={focusin:"focus",focusout:"blur"};if(b in e&&(b=e[b],d=!0),/^key(down|press|up)$/.test(b)){var f=c;c=function(a){var b=a.key||a.keyIdentifier||String.fromCharCode(a.charCode),c={"U+0020":"Spacebar","U+0008":"Backspace","U+0009":"Tab","U+001B":"Esc"," ":"Spacebar",Apps:"ContextMenu",Left:"ArrowLeft",Down:"ArrowDown",Right:"ArrowRight",Up:"ArrowUp",Del:"Delete","U+00007F":"Backspace"}[b]||b.replace(/^U\+0*(.*)$/,function(b,c){var d=parseInt(c,16);return d>=65&&90>=d&&!a.shiftKey&&(d+=32),String.fromCharCode(d)});a.key!==c&&Object.defineProperty(a,"key",{get:function(){return c}}),f(a)}}return a.addEventListener(b,c,d),{remove:function(){a.removeEventListener(b,c,d)}}}}),define("delite/hc",["requirejs-dplugins/has","requirejs-domready/domReady!"],function(a){return a.add("highcontrast",function(){if("undefined"==typeof window)return!1;var a=document.createElement("div");try{a.style.cssText="border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;",document.body.appendChild(a);var b=getComputedStyle(a);return b.borderTopColor===b.borderRightColor?b.color:null}catch(c){return console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+c.toString()),null}finally{document.body.removeChild(a)}}),a("highcontrast")&&(document.body.className=(document.body.className+" d-hc").trim()),a}),define("delite/handlebars",["module","require","requirejs-dplugins/has","requirejs-dplugins/Promise!","requirejs-text/text","./Template"],function(a,b,c,d,e,f){function g(a,b){for(var c=0,d=a.length,e=!1,f=[];d>c;){var g=a.indexOf(e?"}}":"{{",c),h=a.substring(c,-1===g?d:g);if(e){var i=h.trim();/this\./.test(i)?f.push("("+i+")"):f.push(b?"(this."+i+"== null ? '' : this."+i+")":"this."+i)}else h&&f.push("'"+h.replace(/(['\\])/g,"\\$1").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"'");c=-1===g?d:g+2,e=!e}return f.join(" + ")}var h={parse:function(a,b){for(var c,d,e=a.hasAttribute("is")?a.getAttribute("is"):a.tagName.replace(/^template-/i,"").toLowerCase(),g=f.getElement(e),i={},j={},k=0,l=a.attributes;d=l[k++];){var m=d.name,n=d.value;if(n||"boolean"==typeof g[m.toLowerCase()])switch(m){case"xmlns":b=n;break;case"is":break;case"attach-point":case"data-attach-point":c=n.split(/, */);break;default:/^on-/.test(m)?j[m.substring(3)]=n.replace(/\s*({{|}})\s*/g,""):i[m]=this.parseValueAttribute(e,g,m,n)}}return{tag:e,xmlns:b,attributes:i,connects:j,children:h.parseChildren(a,b),attachPoints:c}},parseValueAttribute:function(a,b,c,d){var e=f.getProp(a,c),h=typeof b[e];return e&&"string"!==h&&!/{{/.test(d)&&"style.cssText"!==e?"boolean"===h?"off"===d||"false"===d?"false":"true":d:g(d,"class"===c)},parseChildren:function(a,b){for(var c,d=[],e=a.firstChild;e;e=e.nextSibling){var f=e.nodeType;if(1===f)c=d.length,d.push(h.parse(e,b));else if(3===f){if(/^[ \t\n]*$/.test(e.nodeValue)){if(void 0===c)continue}else c=d.length;d.push(g(e.nodeValue,!0))}}return d.slice(0,c+1)},neutralizeTags:function(a){return a=a.replace(/(<\/? *)([-a-zA-Z0-9]+)/g,"$1template-$2"),a=a.replace(/]*?)\/?>/g,"")},toDom:function(a){a=h.neutralizeTags(a);var b;if(/b||(this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),h+500>b||(this._clearActiveWidgetsTimer=setTimeout(function(){delete this._clearActiveWidgetsTimer,this._setStack([])}.bind(this),0)))},_pointerDownOrFocusHandler:function(a,b){this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);var c=[];try{for(;a;)if(a._popupParent)a=a._popupParent;else if(a.tagName&&"body"===a.tagName.toLowerCase()){if(a===document.body)break;a=a.ownerDocument.defaultView.frameElement}else!a.render||"mouse"===b&&a.disabled||c.unshift(a),a=a.parentNode}catch(d){}this._setStack(c,b),h=(new Date).getTime(),g=a},_focusHandler:function(a){a&&9!==a.nodeType&&(f=(new Date).getTime(),(new Date).getTime()=0&&c[g]!==a[g];g--)f=c[g],f&&(f.emit("delite-deactivated",{bubbles:!1,by:b}),this.emit("deactivated",f,b));for(g++;e>=g;g++)f=a[g],f&&(f.emit("delite-activated",{bubbles:!1,by:b}),this.emit("activated",f,b))}}}),j=new i;return j.registerWin(window),j}),define("jquery/src/attributes/classes",["../core","../var/rnotwhite","../var/strundefined","../data/var/data_priv","../core/init"],function(a,b,c,d){var e=/[\t\r\n\f]/g;a.fn.extend({addClass:function(c){var d,f,g,h,i,j,k="string"==typeof c&&c,l=0,m=this.length;if(a.isFunction(c))return this.each(function(b){a(this).addClass(c.call(this,b,this.className))});if(k)for(d=(c||"").match(b)||[];m>l;l++)if(f=this[l],g=1===f.nodeType&&(f.className?(" "+f.className+" ").replace(e," "):" ")){for(i=0;h=d[i++];)g.indexOf(" "+h+" ")<0&&(g+=h+" ");j=a.trim(g),f.className!==j&&(f.className=j)}return this},removeClass:function(c){var d,f,g,h,i,j,k=0===arguments.length||"string"==typeof c&&c,l=0,m=this.length;if(a.isFunction(c))return this.each(function(b){a(this).removeClass(c.call(this,b,this.className))});if(k)for(d=(c||"").match(b)||[];m>l;l++)if(f=this[l],g=1===f.nodeType&&(f.className?(" "+f.className+" ").replace(e," "):"")){for(i=0;h=d[i++];)for(;g.indexOf(" "+h+" ")>=0;)g=g.replace(" "+h+" "," ");j=c?a.trim(g):"",f.className!==j&&(f.className=j)}return this},toggleClass:function(e,f){var g=typeof e;return"boolean"==typeof f&&"string"===g?f?this.addClass(e):this.removeClass(e):a.isFunction(e)?this.each(function(b){a(this).toggleClass(e.call(this,b,this.className,f),f)}):this.each(function(){if("string"===g)for(var f,h=0,i=a(this),j=e.match(b)||[];f=j[h++];)i.hasClass(f)?i.removeClass(f):i.addClass(f);else(g===c||"boolean"===g)&&(this.className&&d.set(this,"__className__",this.className),this.className=this.className||e===!1?"":d.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(e," ").indexOf(b)>=0)return!0;return!1}})}),define("jquery/src/core/init",["../core","./var/rsingleTag","../traversing/findFilter"],function(a,b){var c,d=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,e=a.fn.init=function(e,f){var g,h;if(!e)return this;if("string"==typeof e){if(g="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:d.exec(e),!g||!g[1]&&f)return!f||f.jquery?(f||c).find(e):this.constructor(f).find(e);if(g[1]){if(f=f instanceof a?f[0]:f,a.merge(this,a.parseHTML(g[1],f&&f.nodeType?f.ownerDocument||f:document,!0)),b.test(g[1])&&a.isPlainObject(f))for(g in f)a.isFunction(this[g])?this[g](f[g]):this.attr(g,f[g]);return this}return h=document.getElementById(g[2]),h&&h.parentNode&&(this.length=1,this[0]=h),this.context=document,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):a.isFunction(e)?"undefined"!=typeof c.ready?c.ready(e):e(a):(void 0!==e.selector&&(this.selector=e.selector, +this.context=e.context),a.makeArray(e,this))};return e.prototype=a.fn,c=a(document),e}),define("jquery/src/traversing/findFilter",["../core","../var/indexOf","./var/rneedsContext","../selector"],function(a,b,c){function d(c,d,f){if(a.isFunction(d))return a.grep(c,function(a,b){return!!d.call(a,b,a)!==f});if(d.nodeType)return a.grep(c,function(a){return a===d!==f});if("string"==typeof d){if(e.test(d))return a.filter(d,c,f);d=a.filter(d,c)}return a.grep(c,function(a){return b.call(d,a)>=0!==f})}var e=/^.[^:#\[\.,]*$/;a.filter=function(b,c,d){var e=c[0];return d&&(b=":not("+b+")"),1===c.length&&1===e.nodeType?a.find.matchesSelector(e,b)?[e]:[]:a.find.matches(b,a.grep(c,function(a){return 1===a.nodeType}))},a.fn.extend({find:function(b){var c,d=this.length,e=[],f=this;if("string"!=typeof b)return this.pushStack(a(b).filter(function(){for(c=0;d>c;c++)if(a.contains(f[c],this))return!0}));for(c=0;d>c;c++)a.find(b,f[c],e);return e=this.pushStack(d>1?a.unique(e):e),e.selector=this.selector?this.selector+" "+b:b,e},filter:function(a){return this.pushStack(d(this,a||[],!1))},not:function(a){return this.pushStack(d(this,a||[],!0))},is:function(b){return!!d(this,"string"==typeof b&&c.test(b)?a(b):b||[],!1).length}})}),define("jquery/src/selector-native",["./core"],function(a){var b,c=window.document.documentElement,d=c.matches||c.webkitMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.msMatchesSelector,e=function(c,d){if(c===d)return b=!0,0;var e=d.compareDocumentPosition&&c.compareDocumentPosition&&c.compareDocumentPosition(d);return e?1&e?c===document||a.contains(document,c)?-1:d===document||a.contains(document,d)?1:0:4&e?-1:1:c.compareDocumentPosition?-1:1};a.extend({find:function(b,c,d,e){var f,g,h=0;if(d=d||[],c=c||document,!b||"string"!=typeof b)return d;if(1!==(g=c.nodeType)&&9!==g)return[];if(e)for(;f=e[h++];)a.find.matchesSelector(f,b)&&d.push(f);else a.merge(d,c.querySelectorAll(b));return d},unique:function(a){var c,d=[],f=0,g=0;if(b=!1,a.sort(e),b){for(;c=a[f++];)c===a[f]&&(g=d.push(f));for(;g--;)a.splice(d[g],1)}return a},text:function(b){var c,d="",e=0,f=b.nodeType;if(f){if(1===f||9===f||11===f)return b.textContent;if(3===f||4===f)return b.nodeValue}else for(;c=b[e++];)d+=a.text(c);return d},contains:function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!c.contains(d))},isXMLDoc:function(a){return"HTML"!==(a.ownerDocument||a).documentElement.nodeName},expr:{attrHandle:{},match:{bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]/}}}),a.extend(a.find,{matches:function(b,c){return a.find(b,null,null,c)},matchesSelector:function(a,b){return d.call(a,b)},attr:function(a,b){return a.getAttribute(b)}})}),define("jquery/src/traversing/var/rneedsContext",["../../core","../../selector"],function(a){return a.expr.match.needsContext}),define("jquery/src/var/indexOf",["./arr"],function(a){return a.indexOf}),define("jquery/src/var/arr",[],function(){return[]}),define("jquery/src/core/var/rsingleTag",[],function(){return/^<(\w+)\s*\/?>(?:<\/\1>|)$/}),define("jquery/src/data/var/data_priv",["../Data"],function(a){return new a}),define("jquery/src/data/Data",["../core","../var/rnotwhite","./accepts"],function(a,b){function c(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=a.expando+c.uid++}return c.uid=1,c.accepts=a.acceptData,c.prototype={key:function(b){if(!c.accepts(b))return 0;var d={},e=b[this.expando];if(!e){e=c.uid++;try{d[this.expando]={value:e},Object.defineProperties(b,d)}catch(f){d[this.expando]=e,a.extend(b,d)}}return this.cache[e]||(this.cache[e]={}),e},set:function(b,c,d){var e,f=this.key(b),g=this.cache[f];if("string"==typeof c)g[c]=d;else if(a.isEmptyObject(g))a.extend(this.cache[f],c);else for(e in c)g[e]=c[e];return g},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(b,c,d){var e;return void 0===c||c&&"string"==typeof c&&void 0===d?(e=this.get(b,c),void 0!==e?e:this.get(b,a.camelCase(c))):(this.set(b,c,d),void 0!==d?d:c)},remove:function(c,d){var e,f,g,h=this.key(c),i=this.cache[h];if(void 0===d)this.cache[h]={};else{a.isArray(d)?f=d.concat(d.map(a.camelCase)):(g=a.camelCase(d),d in i?f=[d,g]:(f=g,f=f in i?[f]:f.match(b)||[])),e=f.length;for(;e--;)delete i[f[e]]}},hasData:function(b){return!a.isEmptyObject(this.cache[b[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}},c}),define("jquery/src/data/accepts",["../core"],function(a){return a.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType},a.acceptData}),define("jquery/src/var/strundefined",[],function(){return"undefined"}),define("jquery/src/var/rnotwhite",[],function(){return/\S+/g}),define("jquery/src/core",["./var/arr","./var/slice","./var/concat","./var/push","./var/indexOf","./var/class2type","./var/toString","./var/hasOwn","./var/support"],function(a,b,c,d,e,f,g,h,i){function j(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var k=window.document,l="@VERSION",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};return m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return b.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:b.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(b.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:a.sort,splice:a.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(m.isPlainObject(d)||(e=m.isArray(d)))?(e?(e=!1,f=c&&m.isArray(c)?c:[]):f=c&&m.isPlainObject(c)?c:{},g[b]=m.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isPlainObject:function(a){return"object"!==m.type(a)||a.nodeType||m.isWindow(a)?!1:a.constructor&&!h.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?f[g.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=m.trim(a),a&&(1===a.indexOf("use strict")?(b=k.createElement("script"),b.text=a,k.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=j(a);if(c){if(g)for(;f>e&&(d=b.apply(a[e],c),d!==!1);e++);else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g)for(;f>e&&(d=b.call(a[e],e,a[e]),d!==!1);e++);else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(j(Object(a))?m.merge(c,"string"==typeof a?[a]:a):d.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:e.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,d){var e,f=0,g=a.length,h=j(a),i=[];if(h)for(;g>f;f++)e=b(a[f],f,d),null!=e&&i.push(e);else for(f in a)e=b(a[f],f,d),null!=e&&i.push(e);return c.apply([],i)},guid:1,proxy:function(a,c){var d,e,f;return"string"==typeof c&&(d=a[c],c=a,a=d),m.isFunction(a)?(e=b.call(arguments,2),f=function(){return a.apply(c||this,e.concat(b.call(arguments)))},f.guid=a.guid=a.guid||m.guid++,f):void 0},now:Date.now,support:i}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){f["[object "+b+"]"]=b.toLowerCase()}),m}),define("jquery/src/var/support",[],function(){return{}}),define("jquery/src/var/hasOwn",["./class2type"],function(a){return a.hasOwnProperty}),define("jquery/src/var/toString",["./class2type"],function(a){return a.toString}),define("jquery/src/var/class2type",[],function(){return{}}),define("jquery/src/var/push",["./arr"],function(a){return a.push}),define("jquery/src/var/concat",["./arr"],function(a){return a.concat}),define("jquery/src/var/slice",["./arr"],function(a){return a.slice}),define("delite/a11yclick",["./on"],function(a){function b(a){if(("Enter"===a.key||"Spacebar"===a.key)&&!/^(input|button|textarea)$/i.test(a.target.nodeName))for(var b=a.target;b;b=b.parentNode)if(b.hasAttribute&&b.hasAttribute("d-keyboard-click"))return!0}var c;return a(document,"keydown",function(a){!a.defaultPrevented&&b(a)?(c=a.target,a.preventDefault()):c=null}),a(document,"keyup",function(a){if(b(a)&&a.target===c){c=null,a.preventDefault();var d=a.target.ownerDocument,e=d.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,d.defaultView,0,0,0,0,0,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,d.body),a.target.dispatchEvent(e)}}),function(a){a.setAttribute("d-keyboard-click","true")}}),define("delite/a11y",[],function(){var a={_isElementShown:function(a){var b=getComputedStyle(a);return"hidden"!==b.visibility&&"collapsed"!==b.visibility&&"none"!==b.display&&"hidden"!==a.type},hasDefaultTabStop:function(a){switch(a.nodeName.toLowerCase()){case"a":return a.hasAttribute("href");case"area":case"button":case"input":case"object":case"select":case"textarea":return!0;case"iframe":var b=a.contentDocument;if("designMode"in b&&"on"===b.designMode)return!0;var c=b.body;return c&&("true"===c.contentEditable||c.firstChild&&"true"===c.firstChild.contentEditable);default:return"true"===a.contentEditable}},effectiveTabIndex:function(b){return b.disabled?void 0:b.hasAttribute("tabIndex")?+b.getAttribute("tabIndex"):a.hasDefaultTabStop(b)?0:void 0},isTabNavigable:function(b){return a.effectiveTabIndex(b)>=0},isFocusable:function(b){return a.effectiveTabIndex(b)>=-1},_getTabNavigable:function(b){function c(a){return a&&"input"===a.tagName.toLowerCase()&&a.type&&"radio"===a.type.toLowerCase()&&a.name&&a.name.toLowerCase()}function d(a){for(var b=a.firstChild;b;b=b.nextSibling)if(1===b.nodeType&&m(b)){var e=n(b);if(e>=0){0===e?(f||(f=b),g=b):e>0&&((!h||i>e)&&(i=e,h=b),(!j||e>=k)&&(k=e,j=b));var o=c(b);b.checked&&o&&(l[o]=b)}"SELECT"!==b.nodeName.toUpperCase()&&d(b)}}function e(a){return l[c(a)]||a}var f,g,h,i,j,k,l={},m=a._isElementShown,n=a.effectiveTabIndex;return m(b)&&d(b),{first:e(f),last:e(g),lowest:e(h),highest:e(j)}},getFirstInTabbingOrder:function(b,c){"string"==typeof b&&(b=(c||document).getElementById(b));var d=a._getTabNavigable(b);return d.lowest?d.lowest:d.first},getLastInTabbingOrder:function(b,c){"string"==typeof b&&(b=(c||document).getElementById(b));var d=a._getTabNavigable(b);return d.last?d.last:d.highest}};return a}),define("delite/Widget",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","./features","decor/Invalidating","./CustomElement","./register","./features!bidi?./Bidi"],function(a,b,c,d,e,f,g){var h=0,i=a([e,d],{baseClass:"",focused:!1,widgetId:0,dir:"",effectiveDir:"",createdCallback:function(){this.widgetId=++h},deliver:a.after(function(){this.initializeInvalidating()}),computeProperties:function(a){"dir"in a&&(/^(ltr|rtl)$/i.test(this._get("dir"))?this.effectiveDir=this._get("dir").toLowerCase():this.effectiveDir=this.getInheritedDir())},shouldInitializeRendering:function(a){return!this.rendered||"template"in a},initializeRendering:function(){this.rendered=!1,this.preRender(),this.render(),this.postRender(),this.rendered=!0},getInheritedDir:function(){return(this.ownerDocument.body.dir||this.ownerDocument.documentElement.dir||"ltr").toLowerCase()},refreshRendering:function(a,c){this._templateHandle&&!c&&this._templateHandle.refresh(a),"baseClass"in a&&b(this).removeClass(a.baseClass).addClass(this.baseClass),"effectiveDir"in a&&b(this).toggleClass("d-rtl","rtl"===this.effectiveDir),"dir"in a&&(this.style.direction=this._get("dir"))},attachedCallback:a.after(function(){this._templateHandle&&!c("document-register-element")&&this._templateHandle.attach()}),preRender:function(){},template:null,render:function(){this._templateHandle&&(this._templateHandle.destroy(),delete this._templateHandle),this.template&&(this._templateHandle=this.template(this.ownerDocument,f),this.attached&&!c("document-register-element")&&this._templateHandle.attach())},setClassComponent:function(a,c,d){d||(d=this);var e="_"+a+"Class";b(d).removeClass(d[e]||"").addClass(c),d[e]=c},setOrRemoveAttribute:function(a,b,c){void 0===c?a.removeAttribute(b):a.setAttribute(b,""+c)},postRender:function(){},detachedCallback:function(){this._templateHandle&&!c("document-register-element")&&this._templateHandle.detach(),this.bgIframe&&(this.bgIframe.destroy(),delete this.bgIframe)},getParent:function(){return this.parentNode?this.getEnclosingWidget(this.parentNode):null},on:a.superCall(function(a){return function(b,c,d){return b={focus:"focusin",blur:"focusout"}[b]||b,a.call(this,b,c,d)}}),placeAt:function(a,b){if("string"==typeof a&&(a=this.ownerDocument.getElementById(a)),"replace"===b)a.parentNode.replaceChild(this,a);else if("only"===b){for(var c;c=a.lastChild;)a.removeChild(c);a.appendChild(this)}else if(/^(before|after)$/.test(b))a.parentNode.insertBefore(this,"before"===b?a:a.nextSibling);else{var d=a.containerNode||a,e=d.children||Array.prototype.filter.call(d.childNodes,function(a){return 1===a.nodeType});d.insertBefore(this,e["first"===b?0:b]||null)}return this.attached||this.attachedCallback(!0),this},getEnclosingWidget:function(a){do if(1===a.nodeType&&a.render)return a;while(a=a.parentNode);return null}});return c("bidi")&&(i=a(i,g)),a.chainAfter(i,"preRender"),a.chainAfter(i,"postRender"),i}),define("delite/Viewport",["decor/Evented","decor/sniff","requirejs-domready/domReady!"],function(a,b){function c(){if(b("ios")<8){var a=document.body.getBoundingClientRect();return{w:Math.max(a.width,window.innerWidth),h:Math.max(a.height,window.innerHeight),t:window.pageYOffset,l:window.pageXOffset}}return{w:window.innerWidth,h:window.innerHeight,t:window.pageYOffset,l:window.pageXOffset}}function d(){var a=g.getEffectiveBox();return a.h!==h.h||a.w!==h.w?(h=a,g.emit("resize",a),!0):!1}function e(){var a=g.getEffectiveBox();return a.t!==i.t||a.l!==i.l?(i=a,g.emit("scroll",a),!0):!1}function f(){var a=d(),b=e();setTimeout(f,a||b?10:50)}var g=new a;g.getEffectiveBox=function(){var a=c(),d=document.activeElement,e=d&&d.tagName&&d.tagName.toLowerCase();return b("ios")&&d&&!d.readOnly&&("textarea"===e||"input"===e&&/^(color|email|number|password|search|tel|text|url)$/.test(d.type))&&(b("ipad")?a.h*=0===window.orientation||180===window.orientation?.65:.38:0===window.orientation||180===window.orientation?a.h*=window.screen.height>500?.54:.42:a.h*=window.screen.height>500&&b("ios")>=8?.26:.19,b("ios")>=8&&(!d.hasAttribute("autocorrect")||"on"===d.getAttribute("autocorrect"))&&/^(color|number|search|tel|text)$/.test(d.type)&&(a.h-=40)),a};var h=g.getEffectiveBox(),i=h;return f(),g}),define("delite/Template",["./register"],function(a){function b(a){var b=a.match(/this\.(\w+)/g);return b?Object.keys(b.reduce(function(a,b){return a[b.substring(5)]=!0,a},{})):[]}var c=a.dcl(null,{constructor:function(a,b,c){this.buildText=[],this.attachText=[],this.detachText=[],this.destroyText=[],this.observeText=[],this.generateNodeCode(b||"this",c,a),this.text=this.buildText.join("\n")+"\nreturn {\n attach: function(){\n "+this.attachText.join("\n ")+"\n },\n detach: function(){\n "+this.detachText.join("\n ")+"\n },\n refresh: function(props){\n "+this.observeText.join("\n ")+"\n }.bind(this),\n destroy: function(){\n"+this.destroyText.join("\n ")+"\n while(this.firstChild){ this.removeChild(this.firstChild); }\n }.bind(this)\n};\n",this.func=new Function("document","register",this.text)},text:"",func:null,generateWatchCode:function(a,b){a.length&&this.observeText.push("if("+a.map(function(a){return"'"+a+"' in props"}).join(" || ")+")"," "+b+";")},generateNodeChildrenCode:function(a,c){c.forEach(function(c,d){var e=("this"===a?"":a)+"c"+(d+1);if(c.tag)this.generateNodeCode(e,!0,c),this.buildText.push(a+".appendChild("+e+");");else{var f=e+"t"+(d+1),g=c,h=b(g);this.buildText.push("var "+f+" = document.createTextNode("+g+");",a+".appendChild("+f+");"),this.generateWatchCode(h,f+".nodeValue = "+g)}},this)},generateNodeCode:function(a,d,e){var f=(e.attachPoints||[]).map(function(a){return"this."+a+" = "}).join("");d?(this.buildText.push("var "+a+" = "+f+(e.xmlns?"document.createElementNS('"+e.xmlns+"', '"+e.tag+"');":"register.createElement('"+e.tag+"');")),/-/.test(e.tag)&&(this.attachText.push(a+".attachedCallback();"),this.detachText.push(a+".detachedCallback();"))):f&&this.buildText.push(f+a+";"),this.destroyText.push((e.attachPoints||[]).map(function(a){return"delete this."+a+";\n"}).join("").trim());for(var g in e.attributes){var h=e.attributes[g],i=b(h),j=c.getProp(e.tag,g);"class"!==g||e.xmlns?(this.buildText.push(j?a+"."+j+" = "+h+";":a+".setAttribute('"+g+"', "+h+");"),this.generateWatchCode(i,j?a+"."+j+" = "+h:"this.setOrRemoveAttribute("+a+", '"+g+"', "+h+")")):(this.buildText.push("this.setClassComponent('template', "+h+", "+a+");"),this.generateWatchCode(i,"this.setClassComponent('template', "+h+", "+a+")"))}/-/.test(e.tag)&&(this.buildText.push(a+".deliver();"),this.observeText.push(a+".deliver();"));for(var k in e.connects){var l=e.connects[k],m=/^[a-zA-Z0-9_]+$/.test(l)?"this."+l+".bind(this)":"function(event){"+l+"}";"this"===a?(this.buildText.push("var h_"+k+" = this.on('"+k+"', "+m+");"),this.destroyText.push("h_"+k+".remove();")):this.buildText.push("this.on('"+k+"', "+m+", "+a+");")}e.children&&this.generateNodeChildrenCode(a,e.children)}}),d={};c.getElement=function(b){return b in d||(d[b]=a.createElement(b)),d[b]};var e={};return c.getProp=function(a,b){if(!(a in e)){var d=c.getElement(a),f=e[a]={};for(var g in d)f[g.toLowerCase()]=g;f.style="style.cssText"}return e[a][b]},c}),define("delite/StoreMap",["dcl/dcl","./Store"],function(a,b){var c=function(a,b,c,d){return a[c+"Func"]?a[c+"Func"](b,d):a[c+"Attr"]?b[a[c+"Attr"]]:b[c]},d=function(a,b,c,d,e){a[c+"Func"]?a[c+"Func"](b,d,e):a[c+"Attr"]?b[a[c+"Attr"]]=e:b[c]=e},e=/^(?!_)(\w)+(?=Attr$|Func$)/,f=/f(?=unc$)|a(?=ttr$)/;return a(b,{allowRemap:!1,_mappedKeys:null,copyAllItemProps:!1,parseAttribute:a.superCall(function(a){return function(b,c){return/Attr$|Func$/i.test(b)?(b=b.toLowerCase(),b=this._propCaseMap[b]||b.replace(f,f.exec(b)[0].toUpperCase()),{prop:b,value:/Attr$/.test(b)?c:this.parseFunctionAttribute(c,["item","store","value"])}):a.apply(this,arguments)}}),queryStoreAndInitItems:a.superCall(function(a){return function(b,c){this.attached||c?a.apply(this,arguments):this._pendingQuery=b}}),attachedCallback:function(){var a=[];for(var b in this){var c=e.exec(b);c&&-1===a.indexOf(c[0])&&a.push(c[0])}if(this.copyAllItemProps){this._itemKeys=[];for(var d=0;d0&&this.updateRenderers(b),this.selectedItems&&this.selectedItems.length>0?(this._set("selectedItem",this.selectedItems[0]),this.updateRenderers(this.selectedItems)):this._set("selectedItem",null)},_getSelectedItemsAttr:function(){return null==this._get("selectedItems")?[]:this._get("selectedItems").concat()},hasSelectionModifier:function(a){return b("mac")?a.metaKey:a.ctrlKey},isSelected:function(a){if(null==this.selectedItems||0===this.selectedItems.length)return!1;var b=this.getIdentity(a);return this.selectedItems.some(function(a){return this.getIdentity(a)===b},this)},getIdentity:function(a){},updateRenderers:function(a){},setSelected:function(a,b){"none"!==this.selectionMode&&null!=a&&this._setSelected(a,b)},_setSelected:function(a,b){var c,d,e=this.selectedItems;if("single"===this.selectionMode||"radio"===this.selectionMode)b?this.selectedItem=a:"single"===this.selectionMode&&this.isSelected(a)&&(this.selectedItems=null);else if(b){if(this.isSelected(a))return;null==e?e=[a]:e.unshift(a),this.selectedItems=e}else{if(d=this.getIdentity(a),c=e?e.filter(function(a){return this.getIdentity(a)!==d},this):[],null==c||c.length===e.length)return;this.selectedItems=c}},selectFromEvent:function(a,b,c,d){return"none"===this.selectionMode?!1:this._selectFromEvent(a,b,c,d)},_selectFromEvent:function(a,b,c,d){var e,f=this.selectedItem,g=null==b?!1:this.isSelected(b);return null==b?"multiple"!==this.selectionMode||this.hasSelectionModifier(a)||null==this.selectedItem||(this.selectedItem=null,e=!0):"multiple"===this.selectionMode?this.hasSelectionModifier(a)?(this.setSelected(b,!g),e=!0):(this.selectedItem=b,e=!0):"single"===this.selectionMode&&this.hasSelectionModifier(a)?(this.selectedItem=g?null:b,e=!0):g||(this.selectedItem=b,e=!0),d&&e&&this.dispatchSelectionChange(f,this.selectedItem,c,a),e},dispatchSelectionChange:function(a,b,c,d){this.emit("selection-change",{oldValue:a,newValue:b,renderer:c,triggerEvent:d})}})}),define("delite/Scrollable",["dcl/dcl","requirejs-dplugins/jquery!css,attributes/classes,effects,event","./Widget","./theme!./Scrollable/themes/{{theme}}/Scrollable.css"],function(a,b,c){return a(c,{scrollDirection:"vertical",scrollableNode:null,render:a.after(function(){this.scrollableNode||(this.scrollableNode=this),this.scrollableNode.setAttribute("unselectable","on"),b(this.scrollableNode).css("user-select","none").on("selectstart",!1)}),refreshRendering:function(a){"scrollDirection"in a&&b(this.scrollableNode).toggleClass("d-scrollable","none"!==this.scrollDirection).toggleClass("d-scrollable-h",/^(both|horizontal)$/.test(this.scrollDirection)).toggleClass("d-scrollable-v",/^(both|vertical)$/.test(this.scrollDirection))},detachedCallback:function(){this._stopAnimation()},isTopScroll:function(){return 0===this.scrollableNode.scrollTop},isBottomScroll:function(){var a=this.scrollableNode;return a.offsetHeight+a.scrollTop>=a.scrollHeight},isLeftScroll:function(){return 0===this.scrollableNode.scrollLeft},isRightScroll:function(){var a=this.scrollableNode;return a.offsetWidth+a.scrollLeft>=a.scrollWidth},getCurrentScroll:function(){return{x:this.scrollableNode.scrollLeft,y:this.scrollableNode.scrollTop}},scrollBy:function(a,b){var c={};void 0!==a.x&&(c.x=this.scrollableNode.scrollLeft+a.x),void 0!==a.y&&(c.y=this.scrollableNode.scrollTop+a.y),this.scrollTo(c,b)},scrollTo:function(a,c){var d=this.scrollableNode;if(this._stopAnimation(),!c||0>=c)void 0!==a.x&&(d.scrollLeft=a.x),void 0!==a.y&&(d.scrollTop=a.y);else{var e={x:void 0!==a.x?d.scrollLeft:void 0,y:void 0!==a.y?d.scrollTop:void 0},f=this;f._animation=b(e).animate(a,{duration:c,rate:20,step:function(){void 0!==this.x&&(d.scrollLeft=this.x),void 0!==this.y&&(d.scrollTop=this.y)},complete:function(){void 0!==this.x&&(d.scrollLeft=this.x),void 0!==this.y&&(d.scrollTop=this.y),delete f._animation}})}},_stopAnimation:function(){this._animation&&this._animation.stop()}})}),define("jquery/src/event",["./core","./var/strundefined","./var/rnotwhite","./var/hasOwn","./var/slice","./event/support","./data/var/data_priv","./core/init","./data/accepts","./selector"],function(a,b,c,d,e,f,g){function h(){return!0}function i(){return!1}function j(){try{return document.activeElement}catch(a){}}var k=/^key/,l=/^(?:mouse|pointer|contextmenu)|click/,m=/^(?:focusinfocus|focusoutblur)$/,n=/^([^.]*)(?:\.(.+)|)$/;return a.event={global:{},add:function(d,e,f,h,i){var j,k,l,m,o,p,q,r,s,t,u,v=g.get(d);if(v)for(f.handler&&(j=f,f=j.handler,i=j.selector),f.guid||(f.guid=a.guid++),(m=v.events)||(m=v.events={}),(k=v.handle)||(k=v.handle=function(c){return typeof a!==b&&a.event.triggered!==c.type?a.event.dispatch.apply(d,arguments):void 0}),e=(e||"").match(c)||[""],o=e.length;o--;)l=n.exec(e[o])||[],s=u=l[1],t=(l[2]||"").split(".").sort(),s&&(q=a.event.special[s]||{},s=(i?q.delegateType:q.bindType)||s,q=a.event.special[s]||{},p=a.extend({type:s,origType:u,data:h,handler:f,guid:f.guid,selector:i,needsContext:i&&a.expr.match.needsContext.test(i),namespace:t.join(".")},j),(r=m[s])||(r=m[s]=[],r.delegateCount=0,q.setup&&q.setup.call(d,h,t,k)!==!1||d.addEventListener&&d.addEventListener(s,k,!1)),q.add&&(q.add.call(d,p),p.handler.guid||(p.handler.guid=f.guid)),i?r.splice(r.delegateCount++,0,p):r.push(p),a.event.global[s]=!0)},remove:function(b,d,e,f,h){var i,j,k,l,m,o,p,q,r,s,t,u=g.hasData(b)&&g.get(b);if(u&&(l=u.events)){for(d=(d||"").match(c)||[""],m=d.length;m--;)if(k=n.exec(d[m])||[],r=t=k[1],s=(k[2]||"").split(".").sort(),r){for(p=a.event.special[r]||{},r=(f?p.delegateType:p.bindType)||r,q=l[r]||[],k=k[2]&&new RegExp("(^|\\.)"+s.join("\\.(?:.*\\.|)")+"(\\.|$)"),j=i=q.length;i--;)o=q[i],!h&&t!==o.origType||e&&e.guid!==o.guid||k&&!k.test(o.namespace)||f&&f!==o.selector&&("**"!==f||!o.selector)||(q.splice(i,1),o.selector&&q.delegateCount--,p.remove&&p.remove.call(b,o));j&&!q.length&&(p.teardown&&p.teardown.call(b,s,u.handle)!==!1||a.removeEvent(b,r,u.handle),delete l[r])}else for(r in l)a.event.remove(b,r+d[m],e,f,!0);a.isEmptyObject(l)&&(delete u.handle,g.remove(b,"events"))}},trigger:function(b,c,e,f){var h,i,j,k,l,n,o,p=[e||document],q=d.call(b,"type")?b.type:b,r=d.call(b,"namespace")?b.namespace.split("."):[];if(i=j=e=e||document,3!==e.nodeType&&8!==e.nodeType&&!m.test(q+a.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),l=q.indexOf(":")<0&&"on"+q,b=b[a.expando]?b:new a.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:a.makeArray(c,[b]),o=a.event.special[q]||{},f||!o.trigger||o.trigger.apply(e,c)!==!1)){if(!f&&!o.noBubble&&!a.isWindow(e)){for(k=o.delegateType||q,m.test(k+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i), +j=i;j===(e.ownerDocument||document)&&p.push(j.defaultView||j.parentWindow||window)}for(h=0;(i=p[h++])&&!b.isPropagationStopped();)b.type=h>1?k:o.bindType||q,n=(g.get(i,"events")||{})[b.type]&&g.get(i,"handle"),n&&n.apply(i,c),n=l&&i[l],n&&n.apply&&a.acceptData(i)&&(b.result=n.apply(i,c),b.result===!1&&b.preventDefault());return b.type=q,f||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!a.acceptData(e)||l&&a.isFunction(e[q])&&!a.isWindow(e)&&(j=e[l],j&&(e[l]=null),a.event.triggered=q,e[q](),a.event.triggered=void 0,j&&(e[l]=j)),b.result}},dispatch:function(b){b=a.event.fix(b);var c,d,f,h,i,j=[],k=e.call(arguments),l=(g.get(this,"events")||{})[b.type]||[],m=a.event.special[b.type]||{};if(k[0]=b,b.delegateTarget=this,!m.preDispatch||m.preDispatch.call(this,b)!==!1){for(j=a.event.handlers.call(this,b,l),c=0;(h=j[c++])&&!b.isPropagationStopped();)for(b.currentTarget=h.elem,d=0;(i=h.handlers[d++])&&!b.isImmediatePropagationStopped();)(!b.namespace_re||b.namespace_re.test(i.namespace))&&(b.handleObj=i,b.data=i.data,f=((a.event.special[i.origType]||{}).handle||i.handler).apply(h.elem,k),void 0!==f&&(b.result=f)===!1&&(b.preventDefault(),b.stopPropagation()));return m.postDispatch&&m.postDispatch.call(this,b),b.result}},handlers:function(b,c){var d,e,f,g,h=[],i=c.delegateCount,j=b.target;if(i&&j.nodeType&&(!b.button||"click"!==b.type))for(;j!==this;j=j.parentNode||this)if(j.disabled!==!0||"click"!==b.type){for(e=[],d=0;i>d;d++)g=c[d],f=g.selector+" ",void 0===e[f]&&(e[f]=g.needsContext?a(f,this).index(j)>=0:a.find(f,this,null,[j]).length),e[f]&&e.push(g);e.length&&h.push({elem:j,handlers:e})}return ie;e+=2-b)d=c[e],f["margin"+d]=f["padding"+d]=a;return b&&(f.opacity=f.width=a),f}function i(a,b,c){for(var d,e=(s[b]||[]).concat(s["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function j(b,c,g){var h,j,k,l,m,n,p,q,r=this,s={},t=b.style,u=b.nodeType&&d(b),v=f.get(b,"fxshow");g.queue||(m=a._queueHooks(b,"fx"),null==m.unqueued&&(m.unqueued=0,n=m.empty.fire,m.empty.fire=function(){m.unqueued||n()}),m.unqueued++,r.always(function(){r.always(function(){m.unqueued--,a.queue(b,"fx").length||m.empty.fire()})})),1===b.nodeType&&("height"in c||"width"in c)&&(g.overflow=[t.overflow,t.overflowX,t.overflowY],p=a.css(b,"display"),q="none"===p?f.get(b,"olddisplay")||e(b.nodeName):p,"inline"===q&&"none"===a.css(b,"float")&&(t.display="inline-block")),g.overflow&&(t.overflow="hidden",r.always(function(){t.overflow=g.overflow[0],t.overflowX=g.overflow[1],t.overflowY=g.overflow[2]}));for(h in c)if(j=c[h],o.exec(j)){if(delete c[h],k=k||"toggle"===j,j===(u?"hide":"show")){if("show"!==j||!v||void 0===v[h])continue;u=!0}s[h]=v&&v[h]||a.style(b,h)}else p=void 0;if(a.isEmptyObject(s))"inline"===("none"===p?e(b.nodeName):p)&&(t.display=p);else{v?"hidden"in v&&(u=v.hidden):v=f.access(b,"fxshow",{}),k&&(v.hidden=!u),u?a(b).show():r.done(function(){a(b).hide()}),r.done(function(){var c;f.remove(b,"fxshow");for(c in s)a.style(b,c,s[c])});for(h in s)l=i(u?v[h]:0,h,r),h in v||(v[h]=l.start,u&&(l.end=l.start,l.start="width"===h||"height"===h?1:0))}}function k(b,c){var d,e,f,g,h;for(d in b)if(e=a.camelCase(d),f=c[e],g=b[d],a.isArray(g)&&(f=g[1],g=b[d]=g[0]),d!==e&&(b[e]=g,delete b[d]),h=a.cssHooks[e],h&&"expand"in h){g=h.expand(g),delete b[e];for(d in g)d in b||(b[d]=g[d],c[d]=f)}else c[e]=f}function l(b,c,d){var e,f,h=0,j=r.length,l=a.Deferred().always(function(){delete n.elem}),n=function(){if(f)return!1;for(var a=m||g(),c=Math.max(0,o.startTime+o.duration-a),d=c/o.duration||0,e=1-d,h=0,i=o.tweens.length;i>h;h++)o.tweens[h].run(e);return l.notifyWith(b,[o,e,c]),1>e&&i?c:(l.resolveWith(b,[o]),!1)},o=l.promise({elem:b,props:a.extend({},c),opts:a.extend(!0,{specialEasing:{}},d),originalProperties:c,originalOptions:d,startTime:m||g(),duration:d.duration,tweens:[],createTween:function(c,d){var e=a.Tween(b,o.opts,c,d,o.opts.specialEasing[c]||o.opts.easing);return o.tweens.push(e),e},stop:function(a){var c=0,d=a?o.tweens.length:0;if(f)return this;for(f=!0;d>c;c++)o.tweens[c].run(1);return a?l.resolveWith(b,[o,a]):l.rejectWith(b,[o,a]),this}}),p=o.props;for(k(p,o.opts.specialEasing);j>h;h++)if(e=r[h].call(o,b,p,o.opts))return e;return a.map(p,i,o),a.isFunction(o.opts.start)&&o.opts.start.call(b,o),a.fx.timer(a.extend(n,{elem:b,anim:o,queue:o.opts.queue})),o.progress(o.opts.progress).done(o.opts.done,o.opts.complete).fail(o.opts.fail).always(o.opts.always)}var m,n,o=/^(?:toggle|show|hide)$/,p=new RegExp("^(?:([+-])=|)("+b+")([a-z%]*)$","i"),q=/queueHooks$/,r=[j],s={"*":[function(b,c){var d=this.createTween(b,c),e=d.cur(),f=p.exec(c),g=f&&f[3]||(a.cssNumber[b]?"":"px"),h=(a.cssNumber[b]||"px"!==g&&+e)&&p.exec(a.css(d.elem,b)),i=1,j=20;if(h&&h[3]!==g){g=g||h[3],f=f||[],h=+e||1;do i=i||".5",h/=i,a.style(d.elem,b,h+g);while(i!==(i=d.cur()/e)&&1!==i&&--j)}return f&&(h=d.start=+h||+e||0,d.unit=g,d.end=f[1]?h+(f[1]+1)*f[2]:+f[2]),d}]};return a.Animation=a.extend(l,{tweener:function(b,c){a.isFunction(b)?(c=b,b=["*"]):b=b.split(" ");for(var d,e=0,f=b.length;f>e;e++)d=b[e],s[d]=s[d]||[],s[d].unshift(c)},prefilter:function(a,b){b?r.unshift(a):r.push(a)}}),a.speed=function(b,c,d){var e=b&&"object"==typeof b?a.extend({},b):{complete:d||!d&&c||a.isFunction(b)&&b,duration:b,easing:d&&c||c&&!a.isFunction(c)&&c};return e.duration=a.fx.off?0:"number"==typeof e.duration?e.duration:e.duration in a.fx.speeds?a.fx.speeds[e.duration]:a.fx.speeds._default,(null==e.queue||e.queue===!0)&&(e.queue="fx"),e.old=e.complete,e.complete=function(){a.isFunction(e.old)&&e.old.call(this),e.queue&&a.dequeue(this,e.queue)},e},a.fn.extend({fadeTo:function(a,b,c,e){return this.filter(d).css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(b,c,d,e){var g=a.isEmptyObject(b),h=a.speed(c,d,e),i=function(){var c=l(this,a.extend({},b),h);(g||f.get(this,"finish"))&&c.stop(!0)};return i.finish=i,g||h.queue===!1?this.each(i):this.queue(h.queue,i)},stop:function(b,c,d){var e=function(a){var b=a.stop;delete a.stop,b(d)};return"string"!=typeof b&&(d=c,c=b,b=void 0),c&&b!==!1&&this.queue(b||"fx",[]),this.each(function(){var c=!0,g=null!=b&&b+"queueHooks",h=a.timers,i=f.get(this);if(g)i[g]&&i[g].stop&&e(i[g]);else for(g in i)i[g]&&i[g].stop&&q.test(g)&&e(i[g]);for(g=h.length;g--;)h[g].elem!==this||null!=b&&h[g].queue!==b||(h[g].anim.stop(d),c=!1,h.splice(g,1));(c||!d)&&a.dequeue(this,b)})},finish:function(b){return b!==!1&&(b=b||"fx"),this.each(function(){var c,d=f.get(this),e=d[b+"queue"],g=d[b+"queueHooks"],h=a.timers,i=e?e.length:0;for(d.finish=!0,a.queue(this,b,[]),g&&g.stop&&g.stop.call(this,!0),c=h.length;c--;)h[c].elem===this&&h[c].queue===b&&(h[c].anim.stop(!0),h.splice(c,1));for(c=0;i>c;c++)e[c]&&e[c].finish&&e[c].finish.call(this);delete d.finish})}}),a.each(["toggle","show","hide"],function(b,c){var d=a.fn[c];a.fn[c]=function(a,b,e){return null==a||"boolean"==typeof a?d.apply(this,arguments):this.animate(h(c,!0),a,b,e)}}),a.each({slideDown:h("show"),slideUp:h("hide"),slideToggle:h("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(b,c){a.fn[b]=function(a,b,d){return this.animate(c,a,b,d)}}),a.timers=[],a.fx.tick=function(){var b,c=0,d=a.timers;for(m=a.now();cb;b++)if(a.contains(this,c[b]))return!0})},closest:function(b,d){for(var e,f=0,g=this.length,h=[],i=c.test(b)||"string"!=typeof b?a(b,d||this.context):0;g>f;f++)for(e=this[f];e&&e!==d;e=e.parentNode)if(e.nodeType<11&&(i?i.index(e)>-1:1===e.nodeType&&a.find.matchesSelector(e,b))){h.push(e);break}return this.pushStack(h.length>1?a.unique(h):h)},index:function(c){return c?"string"==typeof c?b.call(a(c),this[0]):b.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(b,c){return this.pushStack(a.unique(a.merge(this.get(),a(b,c))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),a.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(b){return a.dir(b,"parentNode")},parentsUntil:function(b,c,d){return a.dir(b,"parentNode",d)},next:function(a){return d(a,"nextSibling")},prev:function(a){return d(a,"previousSibling")},nextAll:function(b){return a.dir(b,"nextSibling")},prevAll:function(b){return a.dir(b,"previousSibling")},nextUntil:function(b,c,d){return a.dir(b,"nextSibling",d)},prevUntil:function(b,c,d){return a.dir(b,"previousSibling",d)},siblings:function(b){return a.sibling((b.parentNode||{}).firstChild,b)},children:function(b){return a.sibling(b.firstChild)},contents:function(b){return b.contentDocument||a.merge([],b.childNodes)}},function(b,c){a.fn[b]=function(d,g){var h=a.map(this,c,d);return"Until"!==b.slice(-5)&&(g=d),g&&"string"==typeof g&&(h=a.filter(g,h)),this.length>1&&(f[b]||a.unique(h),e.test(b)&&h.reverse()),this.pushStack(h)}}),a}),define("jquery/src/deferred",["./core","./var/slice","./callbacks"],function(a,b){return a.extend({Deferred:function(b){var c=[["resolve","done",a.Callbacks("once memory"),"resolved"],["reject","fail",a.Callbacks("once memory"),"rejected"],["notify","progress",a.Callbacks("memory")]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},then:function(){var b=arguments;return a.Deferred(function(d){a.each(c,function(c,g){var h=a.isFunction(b[c])&&b[c];f[g[1]](function(){var b=h&&h.apply(this,arguments);b&&a.isFunction(b.promise)?b.promise().done(d.resolve).fail(d.reject).progress(d.notify):d[g[0]+"With"](this===e?d.promise():this,h?[b]:arguments)})}),b=null}).promise()},promise:function(b){return null!=b?a.extend(b,e):e}},f={};return e.pipe=e.then,a.each(c,function(a,b){var g=b[2],h=b[3];e[b[1]]=g.add,h&&g.add(function(){d=h},c[1^a][2].disable,c[2][2].lock),f[b[0]]=function(){return f[b[0]+"With"](this===f?e:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(c){var d,e,f,g=0,h=b.call(arguments),i=h.length,j=1!==i||c&&a.isFunction(c.promise)?i:0,k=1===j?c:a.Deferred(),l=function(a,c,e){return function(f){c[a]=this,e[a]=arguments.length>1?b.call(arguments):f,e===d?k.notifyWith(c,e):--j||k.resolveWith(c,e)}};if(i>1)for(d=new Array(i),e=new Array(i),f=new Array(i);i>g;g++)h[g]&&a.isFunction(h[g].promise)?h[g].promise().done(l(g,f,h)).fail(k.reject).progress(l(g,e,d)):--j;return j||k.resolveWith(f,h),k.promise()}}),a}),define("jquery/src/callbacks",["./core","./var/rnotwhite"],function(a,b){function c(c){var e=d[c]={};return a.each(c.match(b)||[],function(a,b){e[b]=!0}),e}var d={};return a.Callbacks=function(b){b="string"==typeof b?d[b]||c(b):a.extend({},b);var e,f,g,h,i,j,k=[],l=!b.once&&[],m=function(a){for(e=b.memory&&a,f=!0,j=h||0,h=0,i=k.length,g=!0;k&&i>j;j++)if(k[j].apply(a[0],a[1])===!1&&b.stopOnFalse){e=!1;break}g=!1,k&&(l?l.length&&m(l.shift()):e?k=[]:n.disable())},n={add:function(){if(k){var c=k.length;!function d(c){a.each(c,function(c,e){var f=a.type(e);"function"===f?b.unique&&n.has(e)||k.push(e):e&&e.length&&"string"!==f&&d(e)})}(arguments),g?i=k.length:e&&(h=c,m(e))}return this},remove:function(){return k&&a.each(arguments,function(b,c){for(var d;(d=a.inArray(c,k,d))>-1;)k.splice(d,1),g&&(i>=d&&i--,j>=d&&j--)}),this},has:function(b){return b?a.inArray(b,k)>-1:!(!k||!k.length)},empty:function(){return k=[],i=0,this},disable:function(){return k=l=e=void 0,this},disabled:function(){return!k},lock:function(){return l=void 0,e||n.disable(),this},locked:function(){return!l},fireWith:function(a,b){return!k||f&&!l||(b=b||[],b=[a,b.slice?b.slice():b],g?l.push(b):m(b)),this},fire:function(){return n.fireWith(this,arguments),this},fired:function(){return!!f}};return n},a}),define("jquery/src/queue",["./core","./data/var/data_priv","./deferred","./callbacks"],function(a,b){return a.extend({queue:function(c,d,e){var f;return c?(d=(d||"fx")+"queue",f=b.get(c,d),e&&(!f||a.isArray(e)?f=b.access(c,d,a.makeArray(e)):f.push(e)),f||[]):void 0},dequeue:function(b,c){c=c||"fx";var d=a.queue(b,c),e=d.length,f=d.shift(),g=a._queueHooks(b,c),h=function(){a.dequeue(b,c)};"inprogress"===f&&(f=d.shift(),e--),f&&("fx"===c&&d.unshift("inprogress"),delete g.stop,f.call(b,h,g)),!e&&g&&g.empty.fire()},_queueHooks:function(c,d){var e=d+"queueHooks";return b.get(c,e)||b.access(c,e,{empty:a.Callbacks("once memory").add(function(){b.remove(c,[d+"queue",e])})})}}),a.fn.extend({queue:function(b,c){var d=2;return"string"!=typeof b&&(c=b,b="fx",d--),arguments.length")).appendTo(f.documentElement),f=d[0].contentDocument,f.write(),f.close(),g=b(c,f),d.detach()),e[c]=g),g}var d,e={};return c}),define("jquery/src/manipulation",["./core","./var/concat","./var/push","./core/access","./manipulation/var/rcheckableType","./manipulation/support","./data/var/data_priv","./data/var/data_user","./core/init","./data/accepts","./traversing","./selector","./event"],function(a,b,c,d,e,f,g,h){function i(b,c){return a.nodeName(b,"table")&&a.nodeName(11!==c.nodeType?c:c.firstChild,"tr")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b}function j(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function k(a){var b=v.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function l(a,b){for(var c=0,d=a.length;d>c;c++)g.set(a[c],"globalEval",!b||g.get(b[c],"globalEval"))}function m(b,c){var d,e,f,i,j,k,l,m;if(1===c.nodeType){if(g.hasData(b)&&(i=g.access(b),j=g.set(c,i),m=i.events)){delete j.handle,j.events={};for(f in m)for(d=0,e=m[f].length;e>d;d++)a.event.add(c,f,m[f][d])}h.hasData(b)&&(k=h.access(b),l=a.extend({},k),h.set(c,l))}}function n(b,c){var d=b.getElementsByTagName?b.getElementsByTagName(c||"*"):b.querySelectorAll?b.querySelectorAll(c||"*"):[];return void 0===c||c&&a.nodeName(b,c)?a.merge([b],d):d}function o(a,b){var c=b.nodeName.toLowerCase();"input"===c&&e.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}var p=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,q=/<([\w:]+)/,r=/<|&#?\w+;/,s=/<(?:script|style|link)/i,t=/checked\s*(?:[^=]|=\s*.checked.)/i,u=/^$|\/(?:java|ecma)script/i,v=/^true\/(.*)/,w=/^\s*\s*$/g,x={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};return x.optgroup=x.option,x.tbody=x.tfoot=x.colgroup=x.caption=x.thead,x.th=x.td,a.extend({clone:function(b,c,d){var e,g,h,i,j=b.cloneNode(!0),k=a.contains(b.ownerDocument,b);if(!(f.noCloneChecked||1!==b.nodeType&&11!==b.nodeType||a.isXMLDoc(b)))for(i=n(j),h=n(b),e=0,g=h.length;g>e;e++)o(h[e],i[e]);if(c)if(d)for(h=h||n(b),i=i||n(j),e=0,g=h.length;g>e;e++)m(h[e],i[e]);else m(b,j);return i=n(j,"script"),i.length>0&&l(i,!k&&n(b,"script")),j},buildFragment:function(b,c,d,e){for(var f,g,h,i,j,k,m=c.createDocumentFragment(),o=[],s=0,t=b.length;t>s;s++)if(f=b[s],f||0===f)if("object"===a.type(f))a.merge(o,f.nodeType?[f]:f);else if(r.test(f)){for(g=g||m.appendChild(c.createElement("div")),h=(q.exec(f)||["",""])[1].toLowerCase(),i=x[h]||x._default,g.innerHTML=i[1]+f.replace(p,"<$1>")+i[2],k=i[0];k--;)g=g.lastChild;a.merge(o,g.childNodes),g=m.firstChild,g.textContent=""}else o.push(c.createTextNode(f));for(m.textContent="",s=0;f=o[s++];)if((!e||-1===a.inArray(f,e))&&(j=a.contains(f.ownerDocument,f),g=n(m.appendChild(f),"script"),j&&l(g),d))for(k=0;f=g[k++];)u.test(f.type||"")&&d.push(f);return m},cleanData:function(b){for(var c,d,e,f,i=a.event.special,j=0;void 0!==(d=b[j]);j++){if(a.acceptData(d)&&(f=d[g.expando],f&&(c=g.cache[f]))){if(c.events)for(e in c.events)i[e]?a.event.remove(d,e):a.removeEvent(d,e,c.handle);g.cache[f]&&delete g.cache[f]}delete h.cache[d[h.expando]]}}}),a.fn.extend({text:function(b){return d(this,function(b){return void 0===b?a.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=b)})},null,b,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=i(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=i(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(b,c){for(var d,e=b?a.filter(b,this):this,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||a.cleanData(n(d)),d.parentNode&&(c&&a.contains(d.ownerDocument,d)&&l(n(d,"script")),d.parentNode.removeChild(d));return this},empty:function(){for(var b,c=0;null!=(b=this[c]);c++)1===b.nodeType&&(a.cleanData(n(b,!1)),b.textContent="");return this},clone:function(b,c){return b=null==b?!1:b,c=null==c?b:c,this.map(function(){return a.clone(this,b,c)})},html:function(b){return d(this,function(b){var c=this[0]||{},d=0,e=this.length;if(void 0===b&&1===c.nodeType)return c.innerHTML;if("string"==typeof b&&!s.test(b)&&!x[(q.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(p,"<$1>");try{for(;e>d;d++)c=this[d]||{},1===c.nodeType&&(a.cleanData(n(c,!1)),c.innerHTML=b);c=0}catch(f){}}c&&this.empty().append(b)},null,b,arguments.length)},replaceWith:function(){var b=arguments[0];return this.domManip(arguments,function(c){b=this.parentNode,a.cleanData(n(this)),b&&b.replaceChild(c,this)}),b&&(b.length||b.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(c,d){c=b.apply([],c);var e,h,i,l,m,o,p=0,q=this.length,r=this,s=q-1,v=c[0],x=a.isFunction(v);if(x||q>1&&"string"==typeof v&&!f.checkClone&&t.test(v))return this.each(function(a){var b=r.eq(a);x&&(c[0]=v.call(this,a,b.html())),b.domManip(c,d)});if(q&&(e=a.buildFragment(c,this[0].ownerDocument,!1,this),h=e.firstChild,1===e.childNodes.length&&(e=h),h)){for(i=a.map(n(e,"script"),j),l=i.length;q>p;p++)m=e,p!==s&&(m=a.clone(m,!0,!0),l&&a.merge(i,n(m,"script"))),d.call(this[p],m,p);if(l)for(o=i[i.length-1].ownerDocument,a.map(i,k),p=0;l>p;p++)m=i[p],u.test(m.type||"")&&!g.access(m,"globalEval")&&a.contains(o,m)&&(m.src?a._evalUrl&&a._evalUrl(m.src):a.globalEval(m.textContent.replace(w,"")))}return this}}),a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,d){a.fn[b]=function(b){for(var e,f=[],g=a(b),h=g.length-1,i=0;h>=i;i++)e=i===h?this:this.clone(!0),a(g[i])[d](e),c.apply(f,e.get());return this.pushStack(f)}}),a}),define("jquery/src/data/var/data_user",["../Data"],function(a){return new a}),define("jquery/src/manipulation/support",["../var/support"],function(a){return function(){var b=document.createDocumentFragment(),c=b.appendChild(document.createElement("div")),d=document.createElement("input");d.setAttribute("type","radio"),d.setAttribute("checked","checked"),d.setAttribute("name","t"),c.appendChild(d),a.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked,c.innerHTML="",a.noCloneChecked=!!c.cloneNode(!0).lastChild.defaultValue}(),a}),define("jquery/src/manipulation/var/rcheckableType",[],function(){return/^(?:checkbox|radio)$/i}),define("jquery/src/core/access",["../core"],function(a){var b=a.access=function(b,c,d,e,f,g,h){var i=0,j=b.length,k=null==d;if("object"===a.type(d)){f=!0;for(i in d)a.access(b,c,i,d[i],!0,g,h)}else if(void 0!==e&&(f=!0,a.isFunction(e)||(h=!0),k&&(h?(c.call(b,e),c=null):(k=c,c=function(b,c,d){return k.call(a(b),d)})),c))for(;j>i;i++)c(b[i],d,h?e:e.call(b[i],i,c(b[i],d)));return f?b:k?c.call(b):j?c(b[0],d):g};return b}),define("jquery/src/css/var/isHidden",["../../core","../../selector"],function(a){return function(b,c){return b=c||b,"none"===a.css(b,"display")||!a.contains(b.ownerDocument,b)}}),define("jquery/src/css/var/cssExpand",[],function(){return["Top","Right","Bottom","Left"]}),define("jquery/src/var/pnum",[],function(){return/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source}),define("jquery/src/css",["./core","./var/pnum","./core/access","./css/var/rmargin","./css/var/rnumnonpx","./css/var/cssExpand","./css/var/isHidden","./css/var/getStyles","./css/curCSS","./css/defaultDisplay","./css/addGetHookIf","./css/support","./data/var/data_priv","./core/init","./css/swap","./core/ready","./selector"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(a,b){if(b in a)return b;for(var c=b[0].toUpperCase()+b.slice(1),d=b,e=x.length;e--;)if(b=x[e]+c,b in a)return b;return d}function o(a,b,c){var d=t.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function p(b,c,d,e,g){for(var h=d===(e?"border":"content")?4:"width"===c?1:0,i=0;4>h;h+=2)"margin"===d&&(i+=a.css(b,d+f[h],!0,g)),e?("content"===d&&(i-=a.css(b,"padding"+f[h],!0,g)),"margin"!==d&&(i-=a.css(b,"border"+f[h]+"Width",!0,g))):(i+=a.css(b,"padding"+f[h],!0,g),"padding"!==d&&(i+=a.css(b,"border"+f[h]+"Width",!0,g)));return i}function q(b,c,d){var f=!0,g="width"===c?b.offsetWidth:b.offsetHeight,j=h(b),k="border-box"===a.css(b,"boxSizing",!1,j);if(0>=g||null==g){if(g=i(b,c,j),(0>g||null==g)&&(g=b.style[c]),e.test(g))return g;f=k&&(l.boxSizingReliable()||g===b.style[c]),g=parseFloat(g)||0}return g+p(b,c,d||(k?"border":"content"),f,j)+"px"}function r(b,c){for(var d,e,f,h=[],i=0,k=b.length;k>i;i++)e=b[i],e.style&&(h[i]=m.get(e,"olddisplay"),d=e.style.display,c?(h[i]||"none"!==d||(e.style.display=""),""===e.style.display&&g(e)&&(h[i]=m.access(e,"olddisplay",j(e.nodeName)))):(f=g(e),"none"===d&&f||m.set(e,"olddisplay",f?d:a.css(e,"display"))));for(i=0;k>i;i++)e=b[i],e.style&&(c&&"none"!==e.style.display&&""!==e.style.display||(e.style.display=c?h[i]||"":"none"));return b}var s=/^(none|table(?!-c[ea]).+)/,t=new RegExp("^("+b+")(.*)$","i"),u=new RegExp("^([+-])=("+b+")","i"),v={position:"absolute",visibility:"hidden",display:"block"},w={letterSpacing:"0",fontWeight:"400"},x=["Webkit","O","Moz","ms"];return a.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=i(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(b,c,d,e){if(b&&3!==b.nodeType&&8!==b.nodeType&&b.style){var f,g,h,i=a.camelCase(c),j=b.style;return c=a.cssProps[i]||(a.cssProps[i]=n(j,i)),h=a.cssHooks[c]||a.cssHooks[i],void 0===d?h&&"get"in h&&void 0!==(f=h.get(b,!1,e))?f:j[c]:(g=typeof d,"string"===g&&(f=u.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(a.css(b,c)),g="number"),null!=d&&d===d&&("number"!==g||a.cssNumber[i]||(d+="px"),l.clearCloneStyle||""!==d||0!==c.indexOf("background")||(j[c]="inherit"),h&&"set"in h&&void 0===(d=h.set(b,d,e))||(j[c]=d)),void 0)}},css:function(b,c,d,e){var f,g,h,j=a.camelCase(c);return c=a.cssProps[j]||(a.cssProps[j]=n(b.style,j)),h=a.cssHooks[c]||a.cssHooks[j],h&&"get"in h&&(f=h.get(b,!0,d)),void 0===f&&(f=i(b,c,e)),"normal"===f&&c in w&&(f=w[c]),""===d||d?(g=parseFloat(f),d===!0||a.isNumeric(g)?g||0:f):f}}),a.each(["height","width"],function(b,c){a.cssHooks[c]={get:function(b,d,e){return d?s.test(a.css(b,"display"))&&0===b.offsetWidth?a.swap(b,v,function(){return q(b,c,e)}):q(b,c,e):void 0},set:function(b,d,e){var f=e&&h(b);return o(b,d,e?p(b,c,e,"border-box"===a.css(b,"boxSizing",!1,f),f):0)}}}),a.cssHooks.marginRight=k(l.reliableMarginRight,function(b,c){return c?a.swap(b,{display:"inline-block" +},i,[b,"marginRight"]):void 0}),a.each({margin:"",padding:"",border:"Width"},function(b,c){a.cssHooks[b+c]={expand:function(a){for(var d=0,e={},g="string"==typeof a?a.split(" "):[a];4>d;d++)e[b+f[d]+c]=g[d]||g[d-2]||g[0];return e}},d.test(b)||(a.cssHooks[b+c].set=o)}),a.fn.extend({css:function(b,d){return c(this,function(b,c,d){var e,f,g={},i=0;if(a.isArray(c)){for(e=h(b),f=c.length;f>i;i++)g[c[i]]=a.css(b,c[i],!1,e);return g}return void 0!==d?a.style(b,c,d):a.css(b,c)},b,d,arguments.length>1)},show:function(){return r(this,!0)},hide:function(){return r(this)},toggle:function(b){return"boolean"==typeof b?b?this.show():this.hide():this.each(function(){g(this)?a(this).show():a(this).hide()})}}),a}),define("jquery/src/core/ready",["../core","../core/init","../deferred"],function(a){function b(){document.removeEventListener("DOMContentLoaded",b,!1),window.removeEventListener("load",b,!1),a.ready()}var c;a.fn.ready=function(b){return a.ready.promise().done(b),this},a.extend({isReady:!1,readyWait:1,holdReady:function(b){b?a.readyWait++:a.ready(!0)},ready:function(b){(b===!0?--a.readyWait:a.isReady)||(a.isReady=!0,b!==!0&&--a.readyWait>0||(c.resolveWith(document,[a]),a.fn.triggerHandler&&(a(document).triggerHandler("ready"),a(document).off("ready"))))}}),a.ready.promise=function(d){return c||(c=a.Deferred(),"complete"===document.readyState?setTimeout(a.ready):(document.addEventListener("DOMContentLoaded",b,!1),window.addEventListener("load",b,!1))),c.promise(d)},a.ready.promise()}),define("jquery/src/css/swap",["../core"],function(a){return a.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},a.swap}),define("jquery/src/css/support",["../core","../var/support"],function(a,b){return function(){function c(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",h.innerHTML="",f.appendChild(g);var a=window.getComputedStyle(h,null);d="1%"!==a.top,e="4px"===a.width,f.removeChild(g)}var d,e,f=document.documentElement,g=document.createElement("div"),h=document.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",g.appendChild(h),window.getComputedStyle&&a.extend(b,{pixelPosition:function(){return c(),d},boxSizingReliable:function(){return null==e&&c(),e},reliableMarginRight:function(){var a,b=h.appendChild(document.createElement("div"));return b.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",b.style.marginRight=b.style.width="0",h.style.width="1px",f.appendChild(g),a=!parseFloat(window.getComputedStyle(b,null).marginRight),f.removeChild(g),h.removeChild(b),a}}))}(),b}),define("jquery/src/css/addGetHookIf",[],function(){function a(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}return a}),define("jquery/src/css/curCSS",["../core","./var/rnumnonpx","./var/rmargin","./var/getStyles","../selector"],function(a,b,c,d){function e(e,f,g){var h,i,j,k,l=e.style;return g=g||d(e),g&&(k=g.getPropertyValue(f)||g[f]),g&&(""!==k||a.contains(e.ownerDocument,e)||(k=a.style(e,f)),b.test(k)&&c.test(f)&&(h=l.width,i=l.minWidth,j=l.maxWidth,l.minWidth=l.maxWidth=l.width=k,k=g.width,l.width=h,l.minWidth=i,l.maxWidth=j)),void 0!==k?k+"":k}return e}),define("jquery/src/css/var/getStyles",[],function(){return function(a){return a.ownerDocument.defaultView.opener?a.ownerDocument.defaultView.getComputedStyle(a,null):window.getComputedStyle(a,null)}}),define("jquery/src/css/var/rnumnonpx",["../../var/pnum"],function(a){return new RegExp("^("+a+")(?!px)[a-z%]+$","i")}),define("jquery/src/css/var/rmargin",[],function(){return/^margin/}),define("delite/KeyNav",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","./features","./Widget","./activationTracker"],function(a,b,c,d){function e(a){var b=a.nodeName.toLowerCase();return!a.readOnly&&("textarea"===b||"input"===b&&/^(color|email|number|password|search|tel|text|url|range)$/.test(a.type))}return a(d,{focusDescendants:!0,navigatedDescendant:null,descendantSelector:null,_getTargetElement:function(a){for(var b=a.target;b!==this;b=b.parentNode)if(this._selectorFunc(b))return b;return this},createdCallback:function(){if(this.on("keypress",this._keynavKeyPressHandler.bind(this)),this.on("keydown",this._keynavKeyDownHandler.bind(this)),this.on("click",function(a){var b=this._getTargetElement(a);b!==this&&this._descendantNavigateHandler(b,a)}),this.on("delite-deactivated",function(){this.focusDescendants&&this._keynavDeactivatedHandler()}.bind(this)),this.on("focusin",function(a){if(this.focusDescendants){var b=this._getTargetElement(a);b===this?this._keynavFocusHandler(a):this._descendantNavigateHandler(b,a)}}.bind(this)),"string"==typeof this.descendantSelector){var a=c("dom-matches");this._selectorFunc=function(b){return b[a](this.descendantSelector)}}else this.descendantSelector?this._selectorFunc=this.descendantSelector:this._selectorFunc=function(a){return a.parentNode===this.containerNode}},attachedCallback:function(){this.focusDescendants&&!this.hasAttribute("tabindex")&&(this.tabIndex="0")},homeKeyHandler:function(a){this.navigateToFirst(a)},endKeyHandler:function(a){this.navigateToLast(a)},focus:function(){this.navigateToFirst()},navigateToFirst:function(a){this.navigateTo(this.getNext(this,1),a)},navigateToLast:function(a){this.navigateTo(this.getNext(this,-1),!1,a)},navigateTo:function(a,b,c){this.focusDescendants?(a.tabIndex="_savedTabIndex"in this?this._savedTabIndex:this.tabIndex,a.focus(b?"end":"start")):this._descendantNavigateHandler(a,c)},_keynavFocusHandler:function(){this.navigatedDescendant||(this._savedTabIndex=this.tabIndex,this.removeAttribute("tabindex"),this.focus())},_keynavDeactivatedHandler:function(){this.setAttribute("tabindex",this._savedTabIndex),delete this._savedTabIndex,this.navigatedDescendant&&(this.navigatedDescendant.tabIndex="-1",this.navigatedDescendant=null)},_descendantNavigateHandler:function(a,c){a&&a!==this.navigatedDescendant&&(this.focusDescendants&&(this.navigatedDescendant&&!this.navigatedDescendant._destroyed&&(this.navigatedDescendant.tabIndex="-1"),"_savedTabIndex"in this||(this._savedTabIndex=this.tabIndex,this.removeAttribute("tabindex")),a.tabIndex=this._savedTabIndex),this.navigatedDescendant&&b(this.navigatedDescendant).removeClass("d-active-descendant"),this.emit("keynav-child-navigated",{oldValue:this.navigatedDescendant,newValue:a,triggerEvent:c}),this.navigatedDescendant=a,a&&b(a).addClass("d-active-descendant"))},_searchString:"",multiCharSearchDuration:1e3,_keyboardSearchHandler:function(a,b,c,d){a&&this.navigateTo(a)},_keyboardSearchCompare:function(a,b){var c=a,d=a.label||(c.focusNode?c.focusNode.label:"")||c.textContent||"",e=d.replace(/^\s+/,"").substr(0,b.length).toLowerCase();return b.length&&e===b?-1:0},_keynavKeyDownHandler:function(a){(!e(a.target)||"ArrowLeft"!==a.key&&"ArrowRight"!==a.key&&"Home"!==a.key&&"End"!==a.key&&"Spacebar"!==a.key)&&("Spacebar"===a.key&&this._searchTimer&&!(a.ctrlKey||a.altKey||a.metaKey)?(a.preventDefault(),this._keyboardSearch(a," ")):this._applyKeyHandler(a))},_applyKeyHandler:function(a){var b;switch(a.key){case"ArrowLeft":b="rtl"===this.effectiveDir?"nextKeyHandler":"previousKeyHandler";break;case"ArrowRight":b="rtl"===this.effectiveDir?"previousKeyHandler":"nextKeyHandler";break;case"ArrowUp":case"ArrowDown":b=a.key.charAt(5).toLowerCase()+a.key.substr(6)+"KeyHandler";break;default:b=a.key.charAt(0).toLowerCase()+a.key.substr(1)+"KeyHandler"}var c=this[b];c&&(c.call(this,a,this.navigatedDescendant),a.stopPropagation(),a.preventDefault(),this._searchString="")},_keynavKeyPressHandler:function(a){e(a.target)||a.charCode<=32||a.ctrlKey||a.altKey||a.metaKey||(a.preventDefault(),a.stopPropagation(),this._keyboardSearch(a,a.key.toLowerCase()))},_keyboardSearch:function(a,b){var c,d=null,e=0;this._searchTimer&&this._searchTimer.remove(),this._searchString+=b;var f=/^(.)\1*$/.test(this._searchString),g=f?1:this._searchString.length;c=this._searchString.substr(0,g),this._searchTimer=this.defer(function(){this._searchTimer=null,this._searchString=""},this.multiCharSearchDuration);var h=this.navigatedDescendant||null;if(1!==g&&h||(h=this.getNext(h,1))){var i=h;do{var j=this._keyboardSearchCompare(h,c);if(j&&0===e++&&(d=h),-1===j){e=-1;break}h=this.getNext(h,1)}while(h!==i);this._keyboardSearchHandler(d,a,c,e)}},getNext:function(a,b){function c(a){if(a.firstElementChild)return a.firstElementChild;for(;a!==f;){if(a.nextElementSibling)return a.nextElementSibling;a=a.parentNode}return f}function d(a){for(;a.lastElementChild;)a=a.lastElementChild;return a}function e(a){return a===f?d(f):a.previousElementSibling&&d(a.previousElementSibling)||a.parentNode}for(var f=this,g=a;;){if(a=b>0?c(a):e(a),a===g)return null;if(this._selectorFunc(a))return a}}})}),define("delite/HasDropDown",["dcl/dcl","requirejs-dplugins/Promise!","requirejs-dplugins/jquery!attributes/classes","./place","./popup","./Widget","./activationTracker","dpointer/events"],function(a,b,c,d,e,f){return a(f,{buttonNode:null,popupStateNode:null,aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:-1,dropDownPosition:["below","above"],focusOnPointerOpen:!0,focusOnKeyboardOpen:!0,opened:!1,_dropDownPointerDownHandler:function(){this.disabled||this.readOnly||(this._docHandler=this.on("pointerup",this._dropDownPointerUpHandler.bind(this),this.ownerDocument.body),this.toggleDropDown())},_dropDownPointerUpHandler:function(a){if(this._docHandler&&(this._docHandler.remove(),this._docHandler=null),this._currentDropDown){var b=d.position(this.buttonNode);if(!(a.pageX>=b.x&&a.pageX<=b.x+b.w&&a.pageY>=b.y&&a.pageY<=b.y+b.h)){for(var e,f=a.target;f&&!e;){if(c(f).hasClass("d-popup")){e=!0;break}f=f.parentNode}if(e){if(this._currentDropDown.handleSlideClick){var g=this.getEnclosingWidget(a.target);g.handleSlideClick(g,a)}return}}}if(this._openDropDownPromise){var h="mouse"===a.pointerType&&!this.hovering;this._focusDropDownOnOpen(h)}else this.focus&&this.defer(this.focus)},_focusDropDownOnOpen:function(a){this._openDropDownPromise.then(function(b){var c=b.dropDown;c.focus&&(a?this.focusOnKeyboardOpen:this.focusOnPointerOpen)&&(this._focusDropDownTimer=this.defer(function(){c.focus(),delete this._focusDropDownTimer}))}.bind(this))},createdCallback:function(){this.on("pointerenter",function(){this.hovering=!0}.bind(this)),this.on("pointerleave",function(){this.hovering=!1}.bind(this)),this.on("delite-deactivated",this._deactivatedHandler.bind(this))},preRender:function(){this._HasDropDownListeners&&this._HasDropDownListeners.forEach(function(a){a.remove()})},postRender:function(){this.setAttribute("aria-haspopup","true"),this.buttonNode=this.buttonNode||this.focusNode||this,this.popupStateNode=this.popupStateNode||this.focusNode||this.buttonNode,this._HasDropDownListeners=[this.on("pointerdown",this._dropDownPointerDownHandler.bind(this),this.buttonNode),this.on("keydown",this._dropDownKeyDownHandler.bind(this),this.focusNode||this),this.on("keyup",this._dropDownKeyUpHandler.bind(this),this.focusNode||this),this.on("touchstart",function(a){"center"===this.dropDownPosition[0]&&a.preventDefault()}.bind(this),this.buttonNode),this.on("touchend",function(a){a.preventDefault()},this.buttonNode),this.on("click",function(a){a.preventDefault(),a.stopPropagation()},this.buttonNode)]},detachedCallback:function(){this.opened&&this.closeDropDown(!0),this._previousDropDown&&(e.detach(this._previousDropDown),delete this._previousDropDown)},destroy:function(){this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroy(),delete this.dropDown)},_dropDownKeyDownHandler:function(a){if(!this.disabled&&!this.readOnly){var b=this._currentDropDown,c=a.target;return b&&this.opened&&b.emit("keydown",a)===!1?(a.stopPropagation(),void a.preventDefault()):void(b&&this.opened&&"Esc"===a.key?(this.closeDropDown(),a.stopPropagation(),a.preventDefault()):!this.opened&&("ArrowDown"===a.key||("Enter"===a.key||"Spacebar"===a.key&&(!this._searchTimer||a.ctrlKey||a.altKey||a.metaKey))&&("input"!==(c.tagName||"").toLowerCase()||c.type&&"text"!==c.type.toLowerCase()))&&(this._openOnKeyUp=!0,a.stopPropagation(),a.preventDefault()))}},_dropDownKeyUpHandler:function(){this._openOnKeyUp&&(delete this._openOnKeyUp,this.openDropDown(),this._focusDropDownOnOpen(!0))},_deactivatedHandler:function(){this.closeDropDown(!1)},loadDropDown:function(){if(this.dropDown)return this.dropDown;var a;return this.emit("delite-display-load",{setChild:function(b){a=b}}),b.resolve(a).then(function(a){return a.child})},toggleDropDown:function(){return this.disabled||this.readOnly?void 0:this.opened?this.closeDropDown(!0):this.openDropDown()},openDropDown:function(){if(this._openDropDownPromise)return this._openDropDownPromise;var a,d=this.loadDropDown();return this._openDropDownPromise=b.resolve(d).then(function(b){if(this._previousDropDown&&this._previousDropDown!==b&&(e.detach(this._previousDropDown),delete this._previousDropDown),!a){delete this._cancelPendingDisplay,this._currentDropDown=b;var d=this.aroundNode||this,f=this;this.emit("delite-before-show",{child:b,cancelable:!1}),this.id||(this.id="HasDropDown_"+this.widgetId),b._originalStyle=b.style.cssText;var g=e.open({parent:this,popup:b,around:d,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){f.closeDropDown(!0)},onCancel:function(){f.closeDropDown(!0)},onClose:function(){c(f._popupStateNode).removeClass("d-drop-down-open"),this.opened=!1}});if(g&&(this.forceWidth||this.autoWidth&&d.offsetWidth>b._popupWrapper.offsetWidth)){var h=d.offsetWidth-b._popupWrapper.offsetWidth;b._popupWrapper.style.width=d.offsetWidth+"px",b.style.width=d.offsetWidth+"px","R"===g.corner[1]&&(b._popupWrapper.style.left=b._popupWrapper.style.left.replace("px","")-h+"px")}return c(this._popupStateNode).addClass("d-drop-down-open"),this.opened=!0,this.popupStateNode.setAttribute("aria-expanded","true"),this.popupStateNode.setAttribute("aria-owns",b.id),"presentation"===b.getAttribute("role")||b.getAttribute("aria-labelledby")||b.setAttribute("aria-labelledby",this.id),this.emit("delite-after-show",{child:b,cancelable:!1}),{dropDown:b,position:g}}}.bind(this)),this._cancelPendingDisplay=function(){d.cancel&&d.cancel(),a=!0,delete this._cancelPendingDisplay,delete this._openDropDownPromise}.bind(this),this._openDropDownPromise},closeDropDown:function(a){this._cancelPendingDisplay&&this._cancelPendingDisplay(),this._openDropDownPromise&&delete this._openDropDownPromise,this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer),this.opened&&(this.popupStateNode.setAttribute("aria-expanded","false"),a&&this.focus&&this.focus(),this.emit("delite-before-hide",{child:this._currentDropDown,cancelable:!1}),e.close(this._currentDropDown),this.opened=!1,this._currentDropDown.style.cssText=this._currentDropDown._originalStyle,this.emit("delite-after-hide",{child:this._currentDropDown,cancelable:!1})),this._previousDropDown=this._currentDropDown,delete this._currentDropDown}})}),define("delite/FormWidget",["dcl/dcl","./Widget"],function(a,b){return a(b,{name:"",alt:"",value:"",tabIndex:0,tabStops:"focusNode",disabled:!1,_mapAttributes:a.superCall(function(a){return function(){var b=this.querySelector("input");return b?(b.value&&this.setAttribute("value",b.value),b.name&&this.setAttribute("name",b.name)):b=this.ownerDocument.createElement("input"),this.valueNode=b,a.call(this)}}),refreshRendering:function(a){"tabStops"in a&&a.tabStops.split(/, */).forEach(function(a){var b=this[a];b.tabIndex="-1",b.removeAttribute("tabindex")},this),("tabStops"in a||"tabIndex"in a||"disabled"in a||"alt"in a)&&this.forEachFocusNode(function(a){a.disabled=this.disabled,this.disabled?(a.tabIndex="-1",a.removeAttribute("tabindex")):a.tabIndex=this._get("tabIndex"),a.alt=this.alt,a.setAttribute("aria-disabled",""+this.disabled)});var b=this.valueNode!==this&&this.valueNode;b&&("value"in a&&(b.value=this.value),"disabled"in a&&(b.disabled=this.disabled),"name"in a&&(b.name=this.name))},focus:function(){var a=this.firstFocusNode();if(!this.disabled&&a.focus)try{a.focus()}catch(b){}},firstFocusNode:function(){return this[this.tabStops.split(/, */)[0]]},forEachFocusNode:function(a){this.tabStops.split(/, */).map(function(b){var c=this[b];c!==this&&a.call(this,c)},this)},setAttribute:a.superCall(function(a){return function(b,c){/^aria-/.test(b)?this.forEachFocusNode(function(a){a.setAttribute(b,c)}):a.call(this,b,c)}}),getAttribute:a.superCall(function(a){return function(b){return/^aria-/.test(b)?this.firstFocusNode().getAttribute(b):a.call(this,b)}}),hasAttribute:a.superCall(function(a){return function(b){return/^aria-/.test(b)?this.firstFocusNode().hasAttribute(b):a.call(this,b)}}),removeAttribute:a.superCall(function(a){return function(b){/^aria-/.test(b)?this.forEachFocusNode(function(a){a.removeAttribute(b)}):a.call(this,b)}}),postRender:function(){for(var a,b=0;a=this.attributes[b++];)/^aria-/.test(a.name)&&(this.setAttribute(a.name,a.value),HTMLElement.prototype.removeAttribute.call(this,a.name))},attachedCallback:function(){for(var a=this.parentNode;a;a=a.parentNode)if(/^form$/i.test(a.tagName)){this.on("reset",function(){this.defer(function(){this.afterFormResetCallback()})}.bind(this),a);break}},afterFormResetCallback:function(){this.checked!==this.valueNode.checked&&(this.checked=this.valueNode.checked)}})}),define("delite/FormValueWidget",["dcl/dcl","./FormWidget","./activationTracker"],function(a,b){function c(a,b,c){return function(d){this.value=d,this[c]&&this[c].remove(),this[c]=this.defer(function(){delete this[c],(typeof d!=typeof this[b]||0!==this.compare(d,this[b]))&&(this[b]=d,this.deliver(),this.emit(a))})}}return a(b,{readOnly:!1,refreshRendering:function(a){("tabStops"in a||"readOnly"in a)&&this.forEachFocusNode(function(a){a.readOnly=this.readOnly})},compare:function(a,b){return"number"==typeof a&&"number"==typeof b?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:b>a?-1:0},createdCallback:function(){this.on("delite-activated",function(){this._previousOnChangeValue=this.value,this._previousOnInputValue=this.value})},handleOnChange:c("change","_previousOnChangeValue","_onChangeHandle"),handleOnInput:c("input","_previousOnInputValue","_onInputHandle"),afterFormResetCallback:function(){console.log(this.id,"FormValueWidget#afterFormResetCallback"),this.value!==this.valueNode.value&&(this.value=this.valueNode.value)}})}),define("delite/DstoreToStoreAdapter",["dcl/dcl"],function(a){return a(null,{constructor:function(a){this.source=a.source,this.data=a.processQueryResult(this.source.filter(a.query)),this.data.track&&(this.data=this._tracked=this.data.track(),this.track=!0)},track:!1,untrack:function(){this._tracked&&(this._tracked.tracking.remove(),this._tracked=null)},fetch:function(){return this.data.fetch()},fetchRange:function(a){return this.data.fetchRange(a)},on:function(a,b){return this.data.on(a,b)},setIdentity:function(a,b){this.source._setIdentity(a,b)},get:function(a){return this.source.get(a)},getIdentity:function(a){return this.source.getIdentity(a)}})}),define("delite/DisplayContainer",["dcl/dcl","requirejs-dplugins/Promise!","./Container"],function(a,b,c){return a(c,{show:function(c,d){var e=this;return this.loadChild(c,d).then(function(f){-1===e.getIndexOfChild(f.child)&&e.addChild(f.child,f.index);var g={dest:c,cancelable:!1};return a.mix(g,d),a.mix(g,f),e.emit("delite-before-show",g),b.resolve(e.changeDisplay(f.child,g)).then(function(){return e.emit("delite-after-show",g),f})})},hide:function(c,d){var e={hide:!0};a.mix(e,d);var f=this;return this.loadChild(c,e).then(function(e){var g={dest:c,bubbles:!0,cancelable:!1,hide:!0};return a.mix(g,d),a.mix(g,e),f.emit("delite-before-hide",g),b.resolve(f.changeDisplay(e.child,g)).then(function(){return f.emit("delite-after-hide",g),e})})},changeDisplay:function(a,b){b.hide===!0?(a.style.visibility="hidden",a.style.display="none"):(a.style.visibility="visible",a.style.display="")},loadChild:function(c,d){var e,f={dest:c,setChild:function(a){e=a}};return a.mix(f,d),this.emit("delite-display-load",f),e||(e={child:"string"==typeof c?this.ownerDocument.getElementById(c):c}),b.resolve(e)}})}),define("delite/DialogUnderlay",["./register","./Widget","./BackgroundIframe","./Viewport","./theme!./DialogUnderlay/themes/{{theme}}/DialogUnderlay.css"],function(a,b,c,d){var e=a("d-dialog-underlay",[HTMLElement,b],{baseClass:"d-dialog-underlay",createdCallback:a.after(function(){this.ownerDocument.body.appendChild(this),this.attachedCallback()}),attachedCallback:function(){this._resizeListener=d.on("resize",function(){this._open&&this.layout()}.bind(this))},detachedCallback:function(){this._resizeListener.remove()},layout:function(){var a=this.style;a.display="none";var b=this.ownerDocument.documentElement;a.width=b.clientWidth+"px",a.height=b.clientHeight+"px",a.display=""},show:function(){this._open||(this.style.display="block",this._open=!0,this.layout(),this.bgIframe=new c(this))},hide:function(){this._open&&(this.bgIframe.destroy(),delete this.bgIframe,this.style.display="none",this._open=!1)}});return e.show=function(a,b){var c=e._singleton;!c||c._destroyed?c=e._singleton=new e(a):a&&c.mix(a),c.style.zIndex=b,c.show()},e.hide=function(){var a=e._singleton;a&&!a._destroyed&&a.hide()},e}),define("delite/CustomElement",["dcl/advise","dcl/dcl","decor/Observable","decor/Destroyable","decor/Stateful","requirejs-dplugins/has","./on","./register"],function(advise,dcl,Observable,Destroyable,Stateful,has,on,register){function getObject(a){try{return a.split(".").reduce(function(a,b){return a[b]},this)}catch(b){}}has.add("setter-on-native-prop",function(){var a=!1,b=dcl(Stateful,{getProps:function(){return{dir:!0}},dir:"",_setDirAttr:function(){a=!0}}),c=register("test-setter-on-native-prop",[HTMLElement,b],{}),d=new c;return d.dir="rtl",a});var REGEXP_IGNORE_PROPS=/^constructor$|^_set$|^_get$|^deliver$|^discardChanges$|^_(.+)Attr$/,CustomElement=dcl([Stateful,Destroyable],{introspect:function(){if(!has("setter-on-native-prop")){var a=this,b=document.createElement(this._extends||"div"),c=this._nativePropSetterMap={};this._nativeAttrs=[];do Object.keys(a).forEach(function(d){var e=d.toLowerCase();if(d in b&&!c[e]){var f=Object.getOwnPropertyDescriptor(a,d);f&&f.set&&(this._nativeAttrs.push(e),c[e]=f.set)}},this),a=Object.getPrototypeOf(a);while(a&&a!==this._baseElement.prototype)}},getProps:function(){var a={},b=this,c=this._propCaseMap={};do Object.keys(b).forEach(function(b){REGEXP_IGNORE_PROPS.test(b)||(a[b]=!0,c[b.toLowerCase()]=b)}),b=Object.getPrototypeOf(b);while(b&&b!==this._baseElement.prototype);return a},_processNativeProps:function(){has("setter-on-native-prop")||this._nativeAttrs.forEach(function(a){if(this.hasAttribute(a)){var b=this.getAttribute(a);this.removeAttribute(a),null!==b&&this._nativePropSetterMap[a].call(this,b)}},this)},created:!1,createdCallback:dcl.advise({before:function(){this._observable||Observable.call(this),this._parsedAttributes=this._mapAttributes()},after:function(){if(this.created=!0,this._parsedAttributes.forEach(function(a){a.event?this.on(a.event,a.callback):this[a.prop]=a.value},this),!has("setter-on-native-prop")){this._processNativeProps();var a=window.MutationObserver||WebKitMutationObserver,b=new a(function(a){a.forEach(function(a){var b=a.attributeName,c=this._nativePropSetterMap[b],d=this.getAttribute(b);null!==d&&(this.removeAttribute(b),c.call(this,d))},this)}.bind(this));b.observe(this,{subtree:!1,attributeFilter:this._nativeAttrs,attributes:!0})}}}),attached:!1,attachedCallback:dcl.advise({before:function(){this.deliver()},after:function(){this.attached=!0,this.emit("customelement-attached",{bubbles:!1,cancelable:!1})}}),detachedCallback:function(){this.attached=!1},_parsePrototypeAttr:function(name,value){function stringToObject(value){var obj;try{obj=eval("("+("{"===value[0]?"":"{")+value+("{"===value[0]?"":"}")+")")}catch(e){throw new SyntaxError("Error in attribute conversion to object: "+e.message+"\nAttribute Value: '"+value+"'")}return obj}switch(typeof this[name]){case"string":return value;case"number":return value-0;case"boolean":return"false"!==value;case"object":return getObject(value)||(this[name]instanceof Array?value?value.split(/\s+/):[]:stringToObject(value));case"function":return this.parseFunctionAttribute(value,[])}},parseFunctionAttribute:function(a,b){return getObject(a)||new(Function.bind.apply(Function,[void 0].concat(b).concat([a])))},parseAttribute:function(a,b){var c=this._propCaseMap;return a in c?(a=c[a],{prop:a,value:this._parsePrototypeAttr(a,b)}):/^on-/.test(a)?{event:a.substring(3),callback:this.parseFunctionAttribute(b,["event"])}:void 0},_mapAttributes:function(){for(var a,b=0,c=[],d=[];a=this.attributes[b++];){var e=a.name.toLowerCase(),f=this.parseAttribute(e,a.value);f&&(c.push(f),d.push(a.name))}return d.forEach(this.removeAttribute,this),c},destroy:function(){this.findCustomElements().forEach(function(a){a.destroy&&a.destroy()}),this.parentNode&&(this.parentNode.removeChild(this),this.detachedCallback())},emit:function(a,b){b=b||{};var c="bubbles"in b?b.bubbles:!0,d="cancelable"in b?b.cancelable:!0,e=this.ownerDocument.createEvent("HTMLEvents");e.initEvent(a,c,d);for(var f in b)f in e||(e[f]=b[f]);return this.dispatchEvent(e)},on:function(a,b,c){return on(c||this,a,b)},getPropsToObserve:function(){return this._ctor._propsToObserve},deliver:dcl.before(function(){this._processNativeProps()}),findCustomElements:function(a){function b(a){for(var d=a.firstChild;d;d=d.nextSibling)1===d.nodeType&&d.createdCallback?c.push(d):b(d)}var c=[];return b(a||this),c}});return dcl.chainAfter(CustomElement,"createdCallback"),dcl.chainAfter(CustomElement,"attachedCallback"),dcl.chainBefore(CustomElement,"detachedCallback"),CustomElement}),define("delite/CssState",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","./Widget"],function(a,b,c){return a(c,{booleanCssProps:["disabled","readOnly","selected","opened"],refreshRendering:function(a){this.booleanCssProps.forEach(function(c){c in a&&b(this).toggleClass("d-"+c.toLowerCase(),this[c])},this),"checked"in a&&(b(this).removeClass("mixed"===a.checked?"d-mixed":"d-checked"),this.checked&&b(this).addClass("mixed"===this.checked?"d-mixed":"d-checked")),"state"in a&&b(this).removeClass("d-"+a.state.toLowerCase()).addClass("d-"+this.state.toLowerCase())}})}),define("delite/Container",["dcl/dcl","./Widget"],function(a,b){return a(b,{containerNode:void 0,render:a.advise({before:function(){for(var a=this._srcDom=this.ownerDocument.createDocumentFragment(),b=this.containerNode||this;b.firstChild;)a.appendChild(b.firstChild)},after:function(){this.containerNode||(this.containerNode=this),this.containerNode.appendChild(this._srcDom)}}),appendChild:a.superCall(function(a){return function(b){if(this.rendered){var c=a.call(this.containerNode,b);return this.onAddChild(b),c}return a.call(this,b)}}),insertBefore:a.superCall(function(a){return function(b,c){if(this.rendered){var d=a.call(this.containerNode,b,c);return this.onAddChild(b),d}return a.call(this,b,c)}}),onAddChild:function(a){this.attached&&a.attachedCallback&&a.attachedCallback(),this.emit("delite-add-child",{bubbles:!1,cancelable:!1,child:a})},addChild:function(a,b){var c=this.containerNode,d=c.children[b];c.insertBefore(a,d||null)},removeChild:function(a){"number"==typeof a&&(a=this.getChildren()[a]),a&&a.parentNode&&HTMLElement.prototype.removeChild.call(a.parentNode,a),this.emit("delite-remove-child",{bubbles:!1,cancelable:!1,child:a})},getChildren:function(){return Array.prototype.slice.call(this.containerNode.children)},hasChildren:function(){return this.getChildren().length>0},getIndexOfChild:function(a){return this.getChildren().indexOf(a)}})}),define("delite/Bidi",["./features"],function(a){var b="‪",c="‫",d="‬";return{textDir:"",getInheritedDir:function(){return this._inheritedDir||this.ownerDocument.body.dir||this.ownerDocument.documentElement.dir||"ltr"},attachedCallback:function(){a("inherited-dir")&&(this._inheritedDir=window.getComputedStyle(this,null).direction,this.notifyCurrentValue("dir"),this.deliver())},getTextDir:function(a){var b=this.textDir;return"auto"===b?this._checkContextual(a):/^(rtl|ltr)$/i.test(b)?b:this.effectiveDir},_checkContextual:function(a){var b=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(a);return b?b[0]<="z"?"ltr":"rtl":this.effectiveDir},applyTextDir:function(a){if(this.textDir){var b=this.textDir;if("auto"===b){var c=a.tagName.toLowerCase(),d="input"===c||"textarea"===c?a.value:a.textContent;b=this._checkContextual(d)}a.dir=b}else a.dir=this.effectiveDir},applyTextDirection:function(a){return this.textDir?this.wrapWithUcc(this.removeUcc(a)):this.removeUcc(a)},wrapWithUcc:function(a){return("ltr"===this.getTextDir(a)?b:c)+a+d},removeUcc:function(a){return a&&a.replace(/[\u200E\u200F\u202A-\u202C]/g,"")},enforceTextDirWithUcc:function(a){a.originalText=a.text,a.innerHTML=this.applyTextDirection(a.innerHTML)},restoreOriginalText:function(a){a.originalText&&(a.text=a.originalText,delete a.originalText)}}}),define("delite/BackgroundIframe",["dcl/dcl","./features"],function(a,b){var c=function(){var a=[];this.pop=function(){var b;return a.length?(b=a.pop(),b.style.display=""):(b=document.createElement("iframe"),b.src="javascript:''",b.className="d-background-iframe",b.setAttribute("role","presentation"),b.tabIndex=-1),b},this.push=function(b){b.style.display="none",a.push(b)}},d=new c;return a(null,{constructor:function(a){if(b("config-bgIframe")){var c=this.iframe=d.pop();a.appendChild(c),c.style.width="100%",c.style.height="100%"}},destroy:function(){this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),d.push(this.iframe),delete this.iframe)}})}),define("delite/ArrayToStoreAdapter",["dcl/dcl","decor/Evented","decor/ObservableArray","decor/Observable","requirejs-dplugins/Promise!"],function(a,b,c,d,e){return a(b,{constructor:function(a){this.source=a.source,this._itemHandles=[],this._observeCallbackArray=this.__observeCallbackArray.bind(this),this._observeCallbackItems=this.__observeCallbackItems.bind(this);for(var b=0;b=0},_redirectEvt:function(a,b){if(this._isQueried(a.obj)&&0>b){var c=this._addItemToCollection(a);this.emit("add",c)}else if(!this._isQueried(a.obj)&&b>=0){var d=this._removeItemFromCollection(a);this.emit("delete",d)}},_updateItemInCollection:function(a,b){return{index:b,previousIndex:b,target:a.obj}},__observeCallbackArray:function(a){if(!this._beingDiscarded)for(var b=0;bc};case"gte":return function(a){return a[b]>=c};case"in":return function(a){return-1!==c.indexOf(a[b])};case"match":return function(a){return c.test(a[b])};case"contains":return function(a){return this._arrayContains(a[b],c)}.bind(this);case"and":var d=this._compileFilterQuery(b),e=this._compileFilterQuery(c);return function(a){return d(a)&&e(a)};case"or":return d=this._compileFilterQuery(b),e=this._compileFilterQuery(c),function(a){return d(a)||e(a)};default:throw new Error("Unknown filter operation '"+a.type+"'")}},_arrayContains:function(a,b){for(var c=0;c