diff --git a/build/js/metro.js b/build/js/metro.js index a5f520146..9ece92c67 100644 --- a/build/js/metro.js +++ b/build/js/metro.js @@ -1,5 +1,5 @@ /*! - * Metro 4 Components Library v4.1.0 build 624 (https://metroui.org.ua) + * Metro 4 Components Library v4.1.0 build 625 (https://metroui.org.ua) * Copyright 2018 Sergey Pimenov * Licensed under MIT */ @@ -79,7 +79,7 @@ var isTouch = (('ontouchstart' in window) || (navigator.MaxTouchPoints > 0) || ( var Metro = { - version: "4.1.0-624", + version: "4.1.0-625", isTouchable: isTouch, fullScreenEnabled: document.fullscreenEnabled, sheet: null, diff --git a/build/js/metro.min.js b/build/js/metro.min.js index 316c224dd..89982a789 100644 --- a/build/js/metro.min.js +++ b/build/js/metro.min.js @@ -1,8 +1,8 @@ /*! - * Metro 4 Components Library v4.1.0 build 624 (https://metroui.org.ua) + * Metro 4 Components Library v4.1.0 build 625 (https://metroui.org.ua) * Copyright 2018 Sergey Pimenov * Licensed under MIT */ -!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"use strict";var t=e;if(void 0===e)throw new Error("Metro 4 requires jQuery!");if("MutationObserver"in window==!1)throw new Error("Metro 4 requires MutationObserver!");var n=t("meta[name='metro4:init']").attr("content"),s=t("meta[name='metro4:locale']").attr("content"),i=t("meta[name='metro4:week_start']").attr("content"),a=t("meta[name='metro4:animation_duration']").attr("content"),o=t("meta[name='metro4:callback_timeout']").attr("content"),l=t("meta[name='metro4:timeout']").attr("content");void 0===window.METRO_INIT&&(window.METRO_INIT=void 0===n||JSON.parse(n)),void 0===window.METRO_DEBUG&&(window.METRO_DEBUG=!0),void 0===window.METRO_WEEK_START&&(window.METRO_WEEK_START=void 0!==i?parseInt(i):1),void 0===window.METRO_LOCALE&&(window.METRO_LOCALE=void 0!==s?s:"en-US"),void 0===window.METRO_ANIMATION_DURATION&&(window.METRO_ANIMATION_DURATION=void 0!==a?parseInt(a):300),void 0===window.METRO_CALLBACK_TIMEOUT&&(window.METRO_CALLBACK_TIMEOUT=void 0!==o?parseInt(o):500),void 0===window.METRO_TIMEOUT&&(window.METRO_TIMEOUT=void 0!==l?parseInt(l):2e3),void 0===window.METRO_HOTKEYS_FILTER_CONTENT_EDITABLE&&(window.METRO_HOTKEYS_FILTER_CONTENT_EDITABLE=!0),void 0===window.METRO_HOTKEYS_FILTER_INPUT_ACCEPTING_ELEMENTS&&(window.METRO_HOTKEYS_FILTER_INPUT_ACCEPTING_ELEMENTS=!0),void 0===window.METRO_HOTKEYS_FILTER_TEXT_INPUTS&&(window.METRO_HOTKEYS_FILTER_TEXT_INPUTS=!0),void 0===window.METRO_HOTKEYS_BUBBLE_UP&&(window.METRO_HOTKEYS_BUBBLE_UP=!1),void 0===window.METRO_THROWS&&(window.METRO_THROWS=!0),window.METRO_MEDIA=[],"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),"function"!=typeof Object.values&&(Object.values=function(e){return Object.keys(e).map(function(t){return e[t]})});var r="ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,c={version:"4.1.0-624",isTouchable:r,fullScreenEnabled:document.fullscreenEnabled,sheet:null,controlsPosition:{INSIDE:"inside",OUTSIDE:"outside"},groupMode:{ONE:"one",MULTI:"multi"},aspectRatio:{HD:"hd",SD:"sd",CINEMA:"cinema"},fullScreenMode:{WINDOW:"window",DESKTOP:"desktop"},position:{TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right",TOP_RIGHT:"top-right",TOP_LEFT:"top-left",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",LEFT_BOTTOM:"left-bottom",LEFT_TOP:"left-top",RIGHT_TOP:"right-top",RIGHT_BOTTOM:"right-bottom"},popoverEvents:{CLICK:"click",HOVER:"hover",FOCUS:"focus"},stepperView:{SQUARE:"square",CYCLE:"cycle",DIAMOND:"diamond"},listView:{LIST:"list",CONTENT:"content",ICONS:"icons",ICONS_MEDIUM:"icons-medium",ICONS_LARGE:"icons-large",TILES:"tiles",TABLE:"table"},events:{click:"click.metro",start:"touchstart.metro mousedown.metro",stop:"touchend.metro mouseup.metro",move:"touchmove.metro mousemove.metro",enter:"touchstart.metro mouseenter.metro",leave:"touchend.metro mouseleave.metro",focus:"focus.metro",blur:"blur.metro",resize:"resize.metro",keyup:"keyup.metro",keydown:"keydown.metro",dblclick:"dblclick.metro",input:"input.metro",change:"change.metro",cut:"cut.metro",paste:"paste.metro",drop:"drop.metro",scroll:"scroll.metro",scrollStart:"scrollstart.metro",scrollStop:"scrollstop.metro",mousewheel:"mousewheel.metro",inputchange:"change.metro input.metro propertychange.metro cut.metro paste.metro copy.metro"},media_queries:{FS:"(min-width: 0px)",SM:"(min-width: 576px)",MD:"(min-width: 768px)",LG:"(min-width: 992px)",XL:"(min-width: 1200px)",XXL:"(min-width: 1452px)"},media_sizes:{FS:0,SM:576,MD:768,LG:992,XL:1200,XXL:1452},media_mode:{FS:"fs",SM:"sm",MD:"md",LG:"lg",XL:"xl",XXL:"xxl"},hotkeys:[],about:function(){console.log("Metro 4 Components Library - v"+this.version)},ver:function(){return this.version},observe:function(){new MutationObserver(function(e){e.map(function(e){if("attributes"===e.type&&"data-role"!==e.attributeName){var n=t(e.target),s=n.data("metroComponent");void 0!==s&&t.each(s,function(){var t=n.data(this);t&&t.changeAttribute(e.attributeName)})}else if("childList"===e.type&&e.addedNodes.length>0){var i,a,o={},l={},r=e.addedNodes;for(i=0;i0&&t.each(n,function(){c.destroyPlugin(e,this)})},initPlugin:function(e,n){e=t(e);try{if(void 0!==t.fn[n]){t.fn[n].call(e),e.data(n+"-initiated",!0);var s=e.data("metroComponent");void 0===s?s=[n]:s.push(n),e.data("metroComponent",s)}}catch(e){console.log(e.message,e.stack)}},reinitPligin:function(e,t){this.destroyPlugin(e,t),this.initPlugin(e,t)},reinitPliginAll:function(e){var n=t(e).data("metroComponent");void 0!==n&&n.length>0&&t.each(n,function(){c.reinitPligin(e,this)})},noop:function(){},noop_true:function(){return!0},noop_false:function(){return!1},requestFullScreen:function(e){e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.msRequestFullscreen?e.msRequestFullscreen():e.requestFullscreen()},exitFullScreen:function(){document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.exitFullscreen()},inFullScreen:function(){return void 0!==(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)}};window.Metro=c,t(window).on(c.events.resize,function(){window.METRO_MEDIA=[],t.each(c.media_queries,function(e,t){L.media(t)&&METRO_MEDIA.push(c.media_mode[e])})});var d={duration:METRO_ANIMATION_DURATION,func:"swing",switch:function(e,t){e.hide(),t.css({top:0,left:0}).show()},slideUp:function(e,t,n,s){var i=e.parent().outerHeight(!0);void 0===n&&(n=this.duration),void 0===s&&(s=this.func),e.css("z-index",1).animate({top:-i},n,s),t.css({top:i,left:0,zIndex:2}).animate({top:0},n,s)},slideDown:function(e,t,n,s){var i=e.parent().outerHeight(!0);void 0===n&&(n=this.duration),void 0===s&&(s=this.func),e.css("z-index",1).animate({top:i},n,s),t.css({left:0,top:-i,zIndex:2}).animate({top:0},n,s)},slideLeft:function(e,t,n,s){var i=e.parent().outerWidth(!0);void 0===n&&(n=this.duration),void 0===s&&(s=this.func),e.css("z-index",1).animate({left:-i},n,s),t.css({left:i,zIndex:2}).animate({left:0},n,s)},slideRight:function(e,t,n,s){var i=e.parent().outerWidth(!0);void 0===n&&(n=this.duration),void 0===s&&(s=this.func),e.css("z-index",1).animate({left:i},n,s),t.css({left:-i,zIndex:2}).animate({left:0},n,s)},fade:function(e,t,n){void 0===n&&(n=this.duration),e.animate({opacity:0},n),t.css({top:0,left:0}).animate({opacity:1},n)}};c.animation=d;var h={TYPES:{HEX:"hex",RGB:"rgb",RGBA:"rgba",HSV:"hsv",HSL:"hsl",CMYK:"cmyk",UNKNOWN:"unknown"},PALETTES:{ALL:"colorList",METRO:"colorListMetro",STANDARD:"colorListStandard"},colorListMetro:{lime:"#a4c400",green:"#60a917",emerald:"#008a00",blue:"#00AFF0",teal:"#00aba9",cyan:"#1ba1e2",cobalt:"#0050ef",indigo:"#6a00ff",violet:"#aa00ff",pink:"#dc4fad",magenta:"#d80073",crimson:"#a20025",red:"#CE352C",orange:"#fa6800",amber:"#f0a30a",yellow:"#fff000",brown:"#825a2c",olive:"#6d8764",steel:"#647687",mauve:"#76608a",taupe:"#87794e"},colorListStandard:{aliceBlue:"#f0f8ff",antiqueWhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedAlmond:"#ffebcd",blue:"#0000ff",blueViolet:"#8a2be2",brown:"#a52a2a",burlyWood:"#deb887",cadetBlue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerBlue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkBlue:"#00008b",darkCyan:"#008b8b",darkGoldenRod:"#b8860b",darkGray:"#a9a9a9",darkGreen:"#006400",darkKhaki:"#bdb76b",darkMagenta:"#8b008b",darkOliveGreen:"#556b2f",darkOrange:"#ff8c00",darkOrchid:"#9932cc",darkRed:"#8b0000",darkSalmon:"#e9967a",darkSeaGreen:"#8fbc8f",darkSlateBlue:"#483d8b",darkSlateGray:"#2f4f4f",darkTurquoise:"#00ced1",darkViolet:"#9400d3",deepPink:"#ff1493",deepSkyBlue:"#00bfff",dimGray:"#696969",dodgerBlue:"#1e90ff",fireBrick:"#b22222",floralWhite:"#fffaf0",forestGreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#DCDCDC",ghostWhite:"#F8F8FF",gold:"#ffd700",goldenRod:"#daa520",gray:"#808080",green:"#008000",greenYellow:"#adff2f",honeyDew:"#f0fff0",hotPink:"#ff69b4",indianRed:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderBlush:"#fff0f5",lawnGreen:"#7cfc00",lemonChiffon:"#fffacd",lightBlue:"#add8e6",lightCoral:"#f08080",lightCyan:"#e0ffff",lightGoldenRodYellow:"#fafad2",lightGray:"#d3d3d3",lightGreen:"#90ee90",lightPink:"#ffb6c1",lightSalmon:"#ffa07a",lightSeaGreen:"#20b2aa",lightSkyBlue:"#87cefa",lightSlateGray:"#778899",lightSteelBlue:"#b0c4de",lightYellow:"#ffffe0",lime:"#00ff00",limeGreen:"#32dc32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumAquaMarine:"#66cdaa",mediumBlue:"#0000cd",mediumOrchid:"#ba55d3",mediumPurple:"#9370db",mediumSeaGreen:"#3cb371",mediumSlateBlue:"#7b68ee",mediumSpringGreen:"#00fa9a",mediumTurquoise:"#48d1cc",mediumVioletRed:"#c71585",midnightBlue:"#191970",mintCream:"#f5fffa",mistyRose:"#ffe4e1",moccasin:"#ffe4b5",navajoWhite:"#ffdead",navy:"#000080",oldLace:"#fdd5e6",olive:"#808000",oliveDrab:"#6b8e23",orange:"#ffa500",orangeRed:"#ff4500",orchid:"#da70d6",paleGoldenRod:"#eee8aa",paleGreen:"#98fb98",paleTurquoise:"#afeeee",paleVioletRed:"#db7093",papayaWhip:"#ffefd5",peachPuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderBlue:"#b0e0e6",purple:"#800080",rebeccaPurple:"#663399",red:"#ff0000",rosyBrown:"#bc8f8f",royalBlue:"#4169e1",saddleBrown:"#8b4513",salmon:"#fa8072",sandyBrown:"#f4a460",seaGreen:"#2e8b57",seaShell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",slyBlue:"#87ceeb",slateBlue:"#6a5acd",slateGray:"#708090",snow:"#fffafa",springGreen:"#00ff7f",steelBlue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whiteSmoke:"#f5f5f5",yellow:"#ffff00",yellowGreen:"#9acd32"},colorList:{},options:{angle:30,algorithm:1,step:.1,distance:5,tint1:.8,tint2:.4,shade1:.6,shade2:.3,alpha:1},init:function(){return this.colorList=t.extend({},this.colorListStandard,this.colorListMetro),this},setup:function(e){this.options=t.extend({},this.options,e)},color:function(e,t){return void 0!==this[t=t||this.PALETTES.ALL][e]&&this[t][e]},palette:function(e){return e=e||this.PALETTES.ALL,Object.keys(this[e])},hex2rgb:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,s){return t+t+n+n+s+s});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgb2hex:function(e){return"#"+((1<<24)+(e.r<<16)+(e.g<<8)+e.b).toString(16).slice(1)},rgb2hsv:function(e){var t,n,s,i=new function(e,t,n){this.h=e||0,this.s=t||0,this.v=n||0},a=e.r/255,o=e.g/255,l=e.b/255,r=Math.max(a,o,l),c=Math.min(a,o,l),d=r-c;return s=r,n=0===r?0:1-c/r,t=r===c?0:r===a&&o>=l?(o-l)/d*60:r===a&&o>16)+t;l>255?l=255:l<0&&(l=0);var r=(o>>8&255)+t;r>255?r=255:r<0&&(r=0);var c=(255&o)+t;switch(c>255?c=255:c<0&&(c=0),i="#"+(c|r<<8|l<<16).toString(16),s){case"rgb":return this.toRGB(i);case"rgba":return this.toRGBA(i,a);case"hsv":return this.toHSV(i);case"hsl":return this.toHSL(i);case"cmyk":return this.toCMYK(i);default:return i}},isDark:function(e){var t=this.toRGB(e);return(299*t.r+587*t.g+114*t.b)/1e3<128},isLight:function(e){return!this.isDark(e)},isHSV:function(e){return L.isObject(e)&&"h"in e&&"s"in e&&"v"in e},isHSL:function(e){return L.isObject(e)&&"h"in e&&"s"in e&&"l"in e},isHSLA:function(e){return L.isObject(e)&&"h"in e&&"s"in e&&"l"in e&&"a"in e},isRGB:function(e){return L.isObject(e)&&"r"in e&&"g"in e&&"b"in e},isRGBA:function(e){return L.isObject(e)&&"r"in e&&"g"in e&&"b"in e&&"a"in e},isCMYK:function(e){return L.isObject(e)&&"c"in e&&"m"in e&&"y"in e&&"k"in e},isHEX:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isColor:function(e){return this.isHEX(e)||this.isRGB(e)||this.isRGBA(e)||this.isHSV(e)||this.isHSL(e)||this.isCMYK(e)},hueShift:function(e,t){for(e+=t;e>=360;)e-=360;for(;e<0;)e+=360;return e},getScheme:function(e,n,s,i){var a;this.options=t.extend({},this.options,i);var o,l=[],r=this;if(o=this.toHSV(e),!1===this.isHSV(o))return console.log("The value is a not supported color format!"),!1;function c(e,t,n){return Math.max(t,Math.min(e,n))}function d(e,t,n){return en?n:e}var u,p=o.h,f=o.s,v=o.v,m=this.options;switch(n){case"monochromatic":case"mono":if(1===m.algorithm)(u=this.hsv2rgb(o)).r=d(Math.round(u.r+(255-u.r)*m.tint1),0,255),u.g=d(Math.round(u.g+(255-u.g)*m.tint1),0,255),u.b=d(Math.round(u.b+(255-u.b)*m.tint1),0,255),l.push(this.rgb2hsv(u)),(u=this.hsv2rgb(o)).r=d(Math.round(u.r+(255-u.r)*m.tint2),0,255),u.g=d(Math.round(u.g+(255-u.g)*m.tint2),0,255),u.b=d(Math.round(u.b+(255-u.b)*m.tint2),0,255),l.push(this.rgb2hsv(u)),l.push(o),(u=this.hsv2rgb(o)).r=d(Math.round(u.r*m.shade1),0,255),u.g=d(Math.round(u.g*m.shade1),0,255),u.b=d(Math.round(u.b*m.shade1),0,255),l.push(this.rgb2hsv(u)),(u=this.hsv2rgb(o)).r=d(Math.round(u.r*m.shade2),0,255),u.g=d(Math.round(u.g*m.shade2),0,255),u.b=d(Math.round(u.b*m.shade2),0,255),l.push(this.rgb2hsv(u));else if(2===m.algorithm)for(l.push(o),a=1;a<=m.distance;a++)v=c(v-m.step,0,1),f=c(f-m.step,0,1),l.push({h:p,s:f,v:v});else if(3===m.algorithm)for(l.push(o),a=1;a<=m.distance;a++)v=c(v-m.step,0,1),l.push({h:p,s:f,v:v});else v=c(o.v+2*m.step,0,1),l.push({h:p,s:f,v:v}),v=c(o.v+m.step,0,1),l.push({h:p,s:f,v:v}),l.push(o),f=o.s,v=o.v,v=c(o.v-m.step,0,1),l.push({h:p,s:f,v:v}),v=c(o.v-2*m.step,0,1),l.push({h:p,s:f,v:v});break;case"complementary":case"complement":case"comp":l.push(o),p=this.hueShift(o.h,180),l.push({h:p,s:f,v:v});break;case"double-complementary":case"double-complement":case"double":l.push(o),console.log(p),p=this.hueShift(p,180),l.push({h:p,s:f,v:v}),console.log(p),p=this.hueShift(p,m.angle),l.push({h:p,s:f,v:v}),console.log(p),p=this.hueShift(p,180),l.push({h:p,s:f,v:v}),console.log(p);break;case"analogous":case"analog":p=this.hueShift(p,m.angle),l.push({h:p,s:f,v:v}),l.push(o),p=this.hueShift(o.h,0-m.angle),l.push({h:p,s:f,v:v});break;case"triadic":case"triad":for(l.push(o),a=1;a<3;a++)p=this.hueShift(p,120),l.push({h:p,s:f,v:v});break;case"tetradic":case"tetra":l.push(o),p=this.hueShift(o.h,180),l.push({h:p,s:f,v:v}),p=this.hueShift(o.h,-1*m.angle),l.push({h:p,s:f,v:v}),p=this.hueShift(p,180),l.push({h:p,s:f,v:v});break;case"square":for(l.push(o),a=1;a<4;a++)p=this.hueShift(p,90),l.push({h:p,s:f,v:v});break;case"split-complementary":case"split-complement":case"split":p=this.hueShift(p,180-m.angle),l.push({h:p,s:f,v:v}),l.push(o),p=this.hueShift(o.h,180+m.angle),l.push({h:p,s:f,v:v});break;default:console.log("Unknown scheme name")}return function(e,t){var n=[],s=r.options;switch(t){case"hex":n=e.map(function(e){return h.toHEX(e)});break;case"rgb":n=e.map(function(e){return h.toRGB(e)});break;case"rgba":n=e.map(function(e){return h.toRGBA(e,s.alpha)});break;case"hsl":n=e.map(function(e){return h.toHSL(e)});break;case"cmyk":n=e.map(function(e){return h.toCMYK(e)});break;default:n=e}return n}(l,s)}};c.colors=h.init(),t.easing.jswing=t.easing.swing,t.extend(t.easing,{def:"easeOutQuad",swing:function(e,n,s,i,a){return t.easing[t.easing.def](e,n,s,i,a)},easeInQuad:function(e,t,n,s,i){return s*(t/=i)*t+n},easeOutQuad:function(e,t,n,s,i){return-s*(t/=i)*(t-2)+n},easeInOutQuad:function(e,t,n,s,i){return(t/=i/2)<1?s/2*t*t+n:-s/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,s,i){return s*(t/=i)*t*t+n},easeOutCubic:function(e,t,n,s,i){return s*((t=t/i-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,s,i){return(t/=i/2)<1?s/2*t*t*t+n:s/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,s,i){return s*(t/=i)*t*t*t+n},easeOutQuart:function(e,t,n,s,i){return-s*((t=t/i-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,s,i){return(t/=i/2)<1?s/2*t*t*t*t+n:-s/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,s,i){return s*(t/=i)*t*t*t*t+n},easeOutQuint:function(e,t,n,s,i){return s*((t=t/i-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,s,i){return(t/=i/2)<1?s/2*t*t*t*t*t+n:s/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,s,i){return-s*Math.cos(t/i*(Math.PI/2))+s+n},easeOutSine:function(e,t,n,s,i){return s*Math.sin(t/i*(Math.PI/2))+n},easeInOutSine:function(e,t,n,s,i){return-s/2*(Math.cos(Math.PI*t/i)-1)+n},easeInExpo:function(e,t,n,s,i){return 0==t?n:s*Math.pow(2,10*(t/i-1))+n},easeOutExpo:function(e,t,n,s,i){return t==i?n+s:s*(1-Math.pow(2,-10*t/i))+n},easeInOutExpo:function(e,t,n,s,i){return 0==t?n:t==i?n+s:(t/=i/2)<1?s/2*Math.pow(2,10*(t-1))+n:s/2*(2-Math.pow(2,-10*--t))+n},easeInCirc:function(e,t,n,s,i){return-s*(Math.sqrt(1-(t/=i)*t)-1)+n},easeOutCirc:function(e,t,n,s,i){return s*Math.sqrt(1-(t=t/i-1)*t)+n},easeInOutCirc:function(e,t,n,s,i){return(t/=i/2)<1?-s/2*(Math.sqrt(1-t*t)-1)+n:s/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,s,i){var a=1.70158,o=0,l=s;return 0==t?n:1==(t/=i)?n+s:(o||(o=.3*i),l0?"\\D":"$")+")",a=this.toFixed(Math.max(0,~~e));return(s?a.replace(".",s):a).replace(new RegExp(i,"g"),"$&"+(n||","))},String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},String.prototype.contains=function(){return!!~String.prototype.indexOf.apply(this,arguments)},Date.prototype.format=function(e,t){void 0===t&&(t="en-US");var n=(void 0!==c.locales[t]?c.locales[t]:c.locales["en-US"]).calendar,s=this,i=s.getDay(),a=s.getDate(),o=s.getMonth(),l=s.getFullYear(),r=s.getHours(),d=n.days,h=n.months,u=[0,31,59,90,120,151,181,212,243,273,304,334],p=function(){var e=new Date(s);return e.setDate(a-(i+6)%7+3),e},f=function(e,t){return(""+(Math.pow(10,t)+e)).slice(1)};return e.replace(/%[a-z]/gi,function(e){return{"%a":d[i].slice(0,3),"%A":d[i],"%b":h[o].slice(0,3),"%B":h[o],"%c":s.toUTCString(),"%C":Math.floor(l/100),"%d":f(a,2),"%e":a,"%F":s.toISOString().slice(0,10),"%G":p().getFullYear(),"%g":(""+p().getFullYear()).slice(2),"%H":f(r,2),"%I":f((r+11)%12+1,2),"%j":f(u[o]+a+(o>1&&(l%4==0&&l%100!=0||l%400==0)?1:0),3),"%k":""+r,"%l":(r+11)%12+1,"%m":f(o+1,2),"%M":f(s.getMinutes(),2),"%p":r<12?"AM":"PM","%P":r<12?"am":"pm","%s":Math.round(s.getTime()/1e3),"%S":f(s.getSeconds(),2),"%u":i||7,"%V":function(){var e=p(),t=e.valueOf();e.setMonth(0,1);var n=e.getDay();return 4!==n&&e.setMonth(0,1+(4-n+7)%7),f(1+Math.ceil((t-e)/6048e5),2)}(),"%w":""+i,"%x":s.toLocaleDateString(),"%X":s.toLocaleTimeString(),"%y":(""+l).slice(2),"%Y":l,"%z":s.toTimeString().replace(/.+GMT([+-]\d+).+/,"$1"),"%Z":s.toTimeString().replace(/.+\((.+?)\)$/,"$1")}[e]||e})};var u={specialKeys:{8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"},textAcceptingInputTypes:["text","password","number","email","url","range","date","month","week","time","datetime","datetime-local","search","color","tel"],textInputTypes:/textarea|input|select/i,options:{filterInputAcceptingElements:METRO_HOTKEYS_FILTER_INPUT_ACCEPTING_ELEMENTS,filterTextInputs:METRO_HOTKEYS_FILTER_TEXT_INPUTS,filterContentEditable:METRO_HOTKEYS_FILTER_CONTENT_EDITABLE},keyHandler:function(e){if("string"==typeof e.data&&(e.data={keys:e.data}),e.data&&e.data.keys&&"string"==typeof e.data.keys){var n=e.handler,s=e.data.keys.toLowerCase().split(" ");e.handler=function(e){if(this===e.target||!(u.options.filterInputAcceptingElements&&u.textInputTypes.test(e.target.nodeName)||u.options.filterContentEditable&&t(e.target).attr("contenteditable")||u.options.filterTextInputs&&t.inArray(e.target.type,u.textAcceptingInputTypes)>-1)){var i="keypress"!==e.type&&u.specialKeys[e.which],a=String.fromCharCode(e.which).toLowerCase(),o="",l={};t.each(["alt","ctrl","shift"],function(t,n){e[n+"Key"]&&i!==n&&(o+=n+"+")}),e.metaKey&&!e.ctrlKey&&"meta"!==i&&(o+="meta+"),e.metaKey&&"meta"!==i&&o.indexOf("alt+ctrl+shift+")>-1&&(o=o.replace("alt+ctrl+shift+","hyper+")),i?l[o+i]=!0:(l[o+a]=!0,l[o+u.shiftNums[a]]=!0,"shift+"===o&&(l[u.shiftNums[a]]=!0));for(var r=0,c=s.length;r>>4&15)+n.charAt(15&t);return s}function m(e){for(var t,n,s="",i=-1;++i>>6&31,128|63&t):t<=65535?s+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(s+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return s}function g(e){var t,n=new Array(e.length>>2);for(t=0;t>5]|=(255&e.charCodeAt(t/8))<>5]>>>n%32&255);return t}function b(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,s=-271733879,i=-1732584194,a=271733878,o=0;o>>32-l,n);var o,l}function w(e,t,n,s,i,a,o){return y(t&n|~t&s,e,t,i,a,o)}function x(e,t,n,s,i,a,o){return y(t&s|n&~s,e,t,i,a,o)}function T(e,t,n,s,i,a,o){return y(t^n^s,e,t,i,a,o)}function _(e,t,n,s,i,a,o){return y(n^(t|~s),e,t,i,a,o)}function k(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}var S,O,M=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],I="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],D=Array.prototype.slice;if(t.event.fixHooks)for(var E=M.length;E;)t.event.fixHooks[M[--E]]=t.event.mouseHooks;function A(e){var n,s=e||window.event,i=D.call(arguments,1),a=0,o=0,l=0,r=0,c=0;if((e=t.event.fix(s)).type="mousewheel","detail"in s&&(l=-1*s.detail),"wheelDelta"in s&&(l=s.wheelDelta),"wheelDeltaY"in s&&(l=s.wheelDeltaY),"wheelDeltaX"in s&&(o=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(o=-1*l,l=0),a=0===l?o:l,"deltaY"in s&&(a=l=-1*s.deltaY),"deltaX"in s&&(o=s.deltaX,0===l&&(a=-1*o)),0!==l||0!==o){if(1===s.deltaMode){var d=t.data(this,"mousewheel-line-height");a*=d,l*=d,o*=d}else if(2===s.deltaMode){var h=t.data(this,"mousewheel-page-height");a*=h,l*=h,o*=h}if(n=Math.max(Math.abs(l),Math.abs(o)),(!O||n=1?"floor":"ceil"](a/O),o=Math[o>=1?"floor":"ceil"](o/O),l=Math[l>=1?"floor":"ceil"](l/O),t.event.special.mousewheel.settings.normalizeOffset&&this.getBoundingClientRect){var u=this.getBoundingClientRect();r=e.clientX-u.left,c=e.clientY-u.top}return e.deltaX=o,e.deltaY=l,e.deltaFactor=O,e.offsetX=r,e.offsetY=c,e.deltaMode=0,i.unshift(e,a,o,l),S&&clearTimeout(S),S=setTimeout(N,200),(t.event.dispatch||t.event.handle).apply(this,i)}}function N(){O=null}function F(e,n){return t.event.special.mousewheel.settings.adjustOldDeltas&&"mousewheel"===e.type&&n%120==0}t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=I.length;e;)this.addEventListener(I[--e],A,!1);else this.onmousewheel=A;t.data(this,"mousewheel-line-height",t.event.special.mousewheel.getLineHeight(this)),t.data(this,"mousewheel-page-height",t.event.special.mousewheel.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=I.length;e;)this.removeEventListener(I[--e],A,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var n=t(e),s=n["offsetParent"in t.fn?"offsetParent":"parent"]();return s.length||(s=t("body")),parseInt(s.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}},t.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}});var P=t.event.dispatch||t.event.handle,R=e.event.special,B="D"+ +new Date,H="D"+(+new Date+1);R.scrollstart={setup:function(e){var n,s=t.extend({latency:R.scrollstop.latency},e),i=function(e){n?(clearTimeout(n),n=null):(e.type="scrollstart",P.apply(this,arguments)),n=setTimeout(function(){n=null},s.latency)};t(this).on("scroll",i).data(B,i)},teardown:function(){t(this).off("scroll",t(this).data(B))}},R.scrollstop={latency:250,setup:function(e){var n,s=t.extend({latency:R.scrollstop.latency},e),i=function(e){var t=this,i=arguments;n&&(clearTimeout(n),n=null),n=setTimeout(function(){n=null,e.type="scrollstop",P.apply(t,i)},s.latency)};t(this).on("scroll",i).data(H,i)},teardown:function(){t(this).off("scroll",t(this).data(H))}};var z={key:"METRO:APP",init:function(e,n){return this.options=t.extend({},this.options,e),this},nvl:function(e,t){return null==e?t:e},setKey:function(e){this.key=e},getKey:function(){return this.key},setItem:function(e,t){window.localStorage.setItem(this.key+":"+e,JSON.stringify(t))},getItem:function(e,t,n){var s,i;i=this.nvl(window.localStorage.getItem(this.key+":"+e),t);try{s=JSON.parse(i,n)}catch(e){s=null}return s},getItemPart:function(e,t,n,s){var i,a=this.getItem(e,n,s);for(t=t.split("->"),i=0;i/g,a=/(^( )?(var|if|for|else|switch|case|break|{|}|;))(.*)?/g,o="with(obj) { var r=[];\n",l=0,r=function(e,t){return o+=t?e.match(a)?e+"\n":"r.push("+e+");\n":""!==e?'r.push("'+e.replace(/"/g,'\\"')+'");\n':"",r};s=i.exec(e);)r(e.slice(l,s.index))(s[1],!0),l=s.index+s[0].length;r(e.substr(l,e.length-l)),o=(o+'return r.join(""); }').replace(/[\r\t\n]/g," ");try{n=new Function("obj",o).apply(t,[t])}catch(e){console.error("'"+e.message+"'"," in \n\nCode:\n",o,"\n")}return n};var L={isUrl:function(e){return/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@\-\/]))?/.test(e)},isTag:function(e){return/^<\/?[\w\s="/.':;#-\/\?]+>/gi.test(e)},isColor:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isEmbedObject:function(e){var n=!1;return t.each(["iframe","object","embed","video"],function(){-1!==e.indexOf(this)&&(n=!0)}),n},isVideoUrl:function(e){return/youtu\.be|youtube|vimeo/gi.test(e)},isDate:function(e){return"Invalid Date"!==String(new Date(e))},isInt:function(e){return Number(e)===e&&e%1==0},isFloat:function(e){return Number(e)===e&&e%1!=0},isTouchDevice:function(){return"ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0},isFunc:function(e){return this.isType(e,"function")},isObject:function(e){return this.isType(e,"object")},isArray:function(e){return Array.isArray(e)},isType:function(e,t){if(null==e)return!1;if(typeof e===t)return e;if(this.isTag(e)||this.isUrl(e))return!1;if(typeof window[e]===t)return window[e];if("string"==typeof e&&-1===e.indexOf("."))return!1;if("string"==typeof e&&-1!==e.indexOf(" "))return!1;if("string"==typeof e&&-1!==e.indexOf("("))return!1;if("string"==typeof e&&-1!==e.indexOf("["))return!1;var n,s=e.split("."),i=window;for(n=0;n"+e+""},embedUrl:function(e){return-1!==e.indexOf("youtu.be")&&(e="https://www.youtube.com/embed/"+e.split("/").pop()),"
"},secondsToTime:function(e){var t=e%3600,n=t%60;return{h:Math.floor(e/3600),m:Math.floor(t/60),s:Math.ceil(n)}},hex2rgba:function(e,t){var n;if(t=isNaN(t)?1:t,/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n].join(",")+","+t+")";throw new Error("Hex2rgba error. Bad Hex value")},random:function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},uniqueId:function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})},elementId:function(e){return e+"-"+(new Date).getTime()+L.random(1,1e3)},secondsToFormattedString:function(e){var t=parseInt(e,10),n=Math.floor(t/3600),s=Math.floor((t-3600*n)/60),i=t-3600*n-60*s;return n<10&&(n="0"+n),s<10&&(s="0"+s),i<10&&(i="0"+i),[n,s,i].join(":")},callback:function(e,t,n){return this.exec(e,t,n)},exec:function(e,t,n){var s;if(null==e)return!1;var i=this.isFunc(e);!1===i&&(i=new Function("a",e));try{s=i.apply(n,t)}catch(e){if(s=null,!0===METRO_THROWS)throw e}return s},isOutsider:function(e){var n,s=(e=this.isJQueryObject(e)?e:t(e)).clone();return s.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),e.parent().append(s),n=s[0].getBoundingClientRect(),s.remove(),n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},inViewport:function(t){"function"==typeof e&&t instanceof e&&(t=t[0]);var n=t.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},objectLength:function(e){return Object.keys(e).length},percent:function(e,t,n){if(0===e)return 0;var s=100*t/e;return!0===n?Math.round(s):Math.round(100*s)/100},camelCase:function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})},objectShift:function(e){var n=0;return t.each(e,function(e){0===n?n=e:n>e&&(n=e)}),delete e[n],e},objectDelete:function(e,t){void 0!==e[t]&&delete e[t]},arrayDelete:function(e,t){e.splice(e.indexOf(t),1)},arrayDeleteByKey:function(e,t){e.splice(t,1)},nvl:function(e,t){return null==e?t:e},objectClone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},github:function(e,n){var s=this;t.ajax({url:"https://api.github.com/repos/"+e,dataType:"jsonp"}).done(function(e){s.callback(n,[e.data])})},detectIE:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var s=e.indexOf("Edge/");return s>0&&parseInt(e.substring(s+5,e.indexOf(".",s)),10)},detectChrome:function(){return/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)},md5:function(e){return v(f(m(e)))},encodeURI:function(e){return encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")},pageHeight:function(){var e=document.body,t=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)},cleanPreCode:function(e){Array.prototype.slice.call(document.querySelectorAll(e),0).forEach(function(e){var t=e.textContent.replace(/^[\r\n]+/,"").replace(/\s+$/g,"");if(/^\S/gm.test(t))e.textContent=t;else{for(var n,s,i,a=/^[\t ]+/gm,o=1e3;n=a.exec(t);)(i=n[0].length)>16&255,t>>8&255,255&t]):[0,0,0]},hexColorToRgbA:function(e,t){var n;return/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)?(3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n,t||1].join(",")+")"):"rgba(0,0,0,1)"},getInlineStyles:function(e){var t={};this.isJQueryObject(e)&&(e=e[0]);for(var n=0,s=e.style.length;n-1},keyInObject:function(){return Object.keys(obj).indexOf(value)>-1},newCssSheet:function(e){var t=document.createElement("style");return void 0!==e&&t.setAttribute("media",e),t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet},addCssRule:function(e,t,n,s){"insertRule"in e?e.insertRule(t+"{"+n+"}",s):"addRule"in e&&e.addRule(t,n,s)},media:function(e){return window.matchMedia(e).matches}};c.utils=L;var Y={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),L.exec(this.options.onAccordionCreate,[this.element]),this},options:{duration:METRO_ANIMATION_DURATION,oneFrame:!0,showActive:!0,activeFrameClass:"",activeHeadingClass:"",activeContentClass:"",onFrameOpen:c.noop,onFrameBeforeOpen:c.noop_true,onFrameClose:c.noop,onFrameBeforeClose:c.noop_true,onAccordionCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e,t=this.element,n=this.options,s=t.children(".frame"),i=t.children(".frame.active");t.addClass("accordion"),e=0===i.length?s[0]:i[0],this._hideAll(),!0!==n.showActive&&!0!==n.oneFrame||this._openFrame(e),this._createEvents()},_createEvents:function(){var e=this,n=this.element,s=this.options,i=n.children(".frame.active");n.on(c.events.click,".heading",function(){var a=t(this),o=a.parent();if(a.closest(".accordion")[0]!==n[0])return!1;o.hasClass("active")?1===i.length&&s.oneFrame||e._closeFrame(o):e._openFrame(o),n.trigger("open",{frame:o})})},_openFrame:function(e){var n=this.element,s=this.options,i=(n.children(".frame"),t(e));if(!1===L.exec(s.onFrameBeforeOpen,i[0]))return!1;!0===s.oneFrame&&this._closeAll(),i.addClass("active "+s.activeFrameClass),i.children(".heading").addClass(s.activeHeadingClass),i.children(".content").addClass(s.activeContentClass).slideDown(s.duration),L.callback(s.onFrameOpen,i[0])},_closeFrame:function(e){this.element;var n=this.options,s=t(e);!1!==L.exec(n.onFrameBeforeOpen,s[0])&&(s.removeClass("active "+n.activeFrameClass),s.children(".heading").removeClass(n.activeHeadingClass),s.children(".content").removeClass(n.activeContentClass).slideUp(n.duration),L.callback(n.onFrameClose,s[0]))},_closeAll:function(){var e=this,n=this.element,s=(this.options,n.children(".frame"));t.each(s,function(){e._closeFrame(this)})},_hideAll:function(){var e=this.element,n=(this.options,e.children(".frame"));t.each(n,function(){t(this).children(".content").hide(0)})},_openAll:function(){var e=this,n=this.element,s=(this.options,n.children(".frame"));t.each(s,function(){e._openFrame(this)})},changeAttribute:function(e){},destroy:function(){this.element.off(c.events.click,".heading")}};c.plugin("accordion",Y);var j={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),L.exec(this.options.onActivityCreate,[this.element]),this},options:{type:"ring",style:"light",size:64,radius:20,onActivityCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e,n,s=this.element,i=this.options;switch(s.html("").addClass(i.style+"-style").addClass("activity-"+i.type),i.type){case"metro":!function(){for(e=0;e<5;e++)t("
").addClass("circle").appendTo(s)}();break;case"square":!function(){for(e=0;e<4;e++)t("
").addClass("square").appendTo(s)}();break;case"cycle":t("
").addClass("cycle").appendTo(s);break;case"simple":t('').appendTo(s);break;default:!function(){for(e=0;e<5;e++)n=t("
").addClass("wrap").appendTo(s),t("
").addClass("circle").appendTo(n)}()}},changeAttribute:function(e){},destroy:function(){var e=this.element,t=this.options;e.html("").removeClass(t.style+"-style").removeClass("activity-"+t.type)}};c.plugin("activity",j);var U={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),this},options:{duration:100,onAppBarCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e=this.element,t=this.options;this._createStructure(),this._createEvents(),L.exec(t.onAppBarCreate,[e])},_createStructure:function(){var e,n,s=this.element,i=(this.options,L.elementId("app-bar"));if(s.addClass("app-bar"),0===(e=s.find(".hamburger")).length){e=t("
"},embedUrl:function(e){return-1!==e.indexOf("youtu.be")&&(e="https://www.youtube.com/embed/"+e.split("/").pop()),"
"},secondsToTime:function(e){var t=e%3600,n=t%60;return{h:Math.floor(e/3600),m:Math.floor(t/60),s:Math.ceil(n)}},hex2rgba:function(e,t){var n;if(t=isNaN(t)?1:t,/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n].join(",")+","+t+")";throw new Error("Hex2rgba error. Bad Hex value")},random:function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},uniqueId:function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})},elementId:function(e){return e+"-"+(new Date).getTime()+L.random(1,1e3)},secondsToFormattedString:function(e){var t=parseInt(e,10),n=Math.floor(t/3600),s=Math.floor((t-3600*n)/60),i=t-3600*n-60*s;return n<10&&(n="0"+n),s<10&&(s="0"+s),i<10&&(i="0"+i),[n,s,i].join(":")},callback:function(e,t,n){return this.exec(e,t,n)},exec:function(e,t,n){var s;if(null==e)return!1;var i=this.isFunc(e);!1===i&&(i=new Function("a",e));try{s=i.apply(n,t)}catch(e){if(s=null,!0===METRO_THROWS)throw e}return s},isOutsider:function(e){var n,s=(e=this.isJQueryObject(e)?e:t(e)).clone();return s.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),e.parent().append(s),n=s[0].getBoundingClientRect(),s.remove(),n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},inViewport:function(t){"function"==typeof e&&t instanceof e&&(t=t[0]);var n=t.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},objectLength:function(e){return Object.keys(e).length},percent:function(e,t,n){if(0===e)return 0;var s=100*t/e;return!0===n?Math.round(s):Math.round(100*s)/100},camelCase:function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})},objectShift:function(e){var n=0;return t.each(e,function(e){0===n?n=e:n>e&&(n=e)}),delete e[n],e},objectDelete:function(e,t){void 0!==e[t]&&delete e[t]},arrayDelete:function(e,t){e.splice(e.indexOf(t),1)},arrayDeleteByKey:function(e,t){e.splice(t,1)},nvl:function(e,t){return null==e?t:e},objectClone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},github:function(e,n){var s=this;t.ajax({url:"https://api.github.com/repos/"+e,dataType:"jsonp"}).done(function(e){s.callback(n,[e.data])})},detectIE:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var s=e.indexOf("Edge/");return s>0&&parseInt(e.substring(s+5,e.indexOf(".",s)),10)},detectChrome:function(){return/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)},md5:function(e){return v(f(m(e)))},encodeURI:function(e){return encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")},pageHeight:function(){var e=document.body,t=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)},cleanPreCode:function(e){Array.prototype.slice.call(document.querySelectorAll(e),0).forEach(function(e){var t=e.textContent.replace(/^[\r\n]+/,"").replace(/\s+$/g,"");if(/^\S/gm.test(t))e.textContent=t;else{for(var n,s,i,a=/^[\t ]+/gm,o=1e3;n=a.exec(t);)(i=n[0].length)>16&255,t>>8&255,255&t]):[0,0,0]},hexColorToRgbA:function(e,t){var n;return/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)?(3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n,t||1].join(",")+")"):"rgba(0,0,0,1)"},getInlineStyles:function(e){var t={};this.isJQueryObject(e)&&(e=e[0]);for(var n=0,s=e.style.length;n-1},keyInObject:function(){return Object.keys(obj).indexOf(value)>-1},newCssSheet:function(e){var t=document.createElement("style");return void 0!==e&&t.setAttribute("media",e),t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet},addCssRule:function(e,t,n,s){"insertRule"in e?e.insertRule(t+"{"+n+"}",s):"addRule"in e&&e.addRule(t,n,s)},media:function(e){return window.matchMedia(e).matches}};c.utils=L;var Y={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),L.exec(this.options.onAccordionCreate,[this.element]),this},options:{duration:METRO_ANIMATION_DURATION,oneFrame:!0,showActive:!0,activeFrameClass:"",activeHeadingClass:"",activeContentClass:"",onFrameOpen:c.noop,onFrameBeforeOpen:c.noop_true,onFrameClose:c.noop,onFrameBeforeClose:c.noop_true,onAccordionCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e,t=this.element,n=this.options,s=t.children(".frame"),i=t.children(".frame.active");t.addClass("accordion"),e=0===i.length?s[0]:i[0],this._hideAll(),!0!==n.showActive&&!0!==n.oneFrame||this._openFrame(e),this._createEvents()},_createEvents:function(){var e=this,n=this.element,s=this.options,i=n.children(".frame.active");n.on(c.events.click,".heading",function(){var a=t(this),o=a.parent();if(a.closest(".accordion")[0]!==n[0])return!1;o.hasClass("active")?1===i.length&&s.oneFrame||e._closeFrame(o):e._openFrame(o),n.trigger("open",{frame:o})})},_openFrame:function(e){var n=this.element,s=this.options,i=(n.children(".frame"),t(e));if(!1===L.exec(s.onFrameBeforeOpen,i[0]))return!1;!0===s.oneFrame&&this._closeAll(),i.addClass("active "+s.activeFrameClass),i.children(".heading").addClass(s.activeHeadingClass),i.children(".content").addClass(s.activeContentClass).slideDown(s.duration),L.callback(s.onFrameOpen,i[0])},_closeFrame:function(e){this.element;var n=this.options,s=t(e);!1!==L.exec(n.onFrameBeforeOpen,s[0])&&(s.removeClass("active "+n.activeFrameClass),s.children(".heading").removeClass(n.activeHeadingClass),s.children(".content").removeClass(n.activeContentClass).slideUp(n.duration),L.callback(n.onFrameClose,s[0]))},_closeAll:function(){var e=this,n=this.element,s=(this.options,n.children(".frame"));t.each(s,function(){e._closeFrame(this)})},_hideAll:function(){var e=this.element,n=(this.options,e.children(".frame"));t.each(n,function(){t(this).children(".content").hide(0)})},_openAll:function(){var e=this,n=this.element,s=(this.options,n.children(".frame"));t.each(s,function(){e._openFrame(this)})},changeAttribute:function(e){},destroy:function(){this.element.off(c.events.click,".heading")}};c.plugin("accordion",Y);var j={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),L.exec(this.options.onActivityCreate,[this.element]),this},options:{type:"ring",style:"light",size:64,radius:20,onActivityCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e,n,s=this.element,i=this.options;switch(s.html("").addClass(i.style+"-style").addClass("activity-"+i.type),i.type){case"metro":!function(){for(e=0;e<5;e++)t("
").addClass("circle").appendTo(s)}();break;case"square":!function(){for(e=0;e<4;e++)t("
").addClass("square").appendTo(s)}();break;case"cycle":t("
").addClass("cycle").appendTo(s);break;case"simple":t('').appendTo(s);break;default:!function(){for(e=0;e<5;e++)n=t("
").addClass("wrap").appendTo(s),t("
").addClass("circle").appendTo(n)}()}},changeAttribute:function(e){},destroy:function(){var e=this.element,t=this.options;e.html("").removeClass(t.style+"-style").removeClass("activity-"+t.type)}};c.plugin("activity",j);var U={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),this},options:{duration:100,onAppBarCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e=this.element,t=this.options;this._createStructure(),this._createEvents(),L.exec(t.onAppBarCreate,[e])},_createStructure:function(){var e,n,s=this.element,i=(this.options,L.elementId("app-bar"));if(s.addClass("app-bar"),0===(e=s.find(".hamburger")).length){e=t("
"},embedUrl:function(e){return-1!==e.indexOf("youtu.be")&&(e="https://www.youtube.com/embed/"+e.split("/").pop()),"
"},secondsToTime:function(e){var t=e%3600,n=t%60;return{h:Math.floor(e/3600),m:Math.floor(t/60),s:Math.ceil(n)}},hex2rgba:function(e,t){var n;if(t=isNaN(t)?1:t,/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n].join(",")+","+t+")";throw new Error("Hex2rgba error. Bad Hex value")},random:function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},uniqueId:function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})},elementId:function(e){return e+"-"+(new Date).getTime()+L.random(1,1e3)},secondsToFormattedString:function(e){var t=parseInt(e,10),n=Math.floor(t/3600),s=Math.floor((t-3600*n)/60),i=t-3600*n-60*s;return n<10&&(n="0"+n),s<10&&(s="0"+s),i<10&&(i="0"+i),[n,s,i].join(":")},callback:function(e,t,n){return this.exec(e,t,n)},exec:function(e,t,n){var s;if(null==e)return!1;var i=this.isFunc(e);!1===i&&(i=new Function("a",e));try{s=i.apply(n,t)}catch(e){if(s=null,!0===METRO_THROWS)throw e}return s},isOutsider:function(e){var n,s=(e=this.isJQueryObject(e)?e:t(e)).clone();return s.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),e.parent().append(s),n=s[0].getBoundingClientRect(),s.remove(),n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},inViewport:function(t){"function"==typeof e&&t instanceof e&&(t=t[0]);var n=t.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},objectLength:function(e){return Object.keys(e).length},percent:function(e,t,n){if(0===e)return 0;var s=100*t/e;return!0===n?Math.round(s):Math.round(100*s)/100},camelCase:function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})},objectShift:function(e){var n=0;return t.each(e,function(e){0===n?n=e:n>e&&(n=e)}),delete e[n],e},objectDelete:function(e,t){void 0!==e[t]&&delete e[t]},arrayDelete:function(e,t){e.splice(e.indexOf(t),1)},arrayDeleteByKey:function(e,t){e.splice(t,1)},nvl:function(e,t){return null==e?t:e},objectClone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},github:function(e,n){var s=this;t.ajax({url:"https://api.github.com/repos/"+e,dataType:"jsonp"}).done(function(e){s.callback(n,[e.data])})},detectIE:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var s=e.indexOf("Edge/");return s>0&&parseInt(e.substring(s+5,e.indexOf(".",s)),10)},detectChrome:function(){return/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)},md5:function(e){return v(f(m(e)))},encodeURI:function(e){return encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")},pageHeight:function(){var e=document.body,t=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)},cleanPreCode:function(e){Array.prototype.slice.call(document.querySelectorAll(e),0).forEach(function(e){var t=e.textContent.replace(/^[\r\n]+/,"").replace(/\s+$/g,"");if(/^\S/gm.test(t))e.textContent=t;else{for(var n,s,i,a=/^[\t ]+/gm,o=1e3;n=a.exec(t);)(i=n[0].length)>16&255,t>>8&255,255&t]):[0,0,0]},hexColorToRgbA:function(e,t){var n;return/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)?(3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n,t||1].join(",")+")"):"rgba(0,0,0,1)"},getInlineStyles:function(e){var t={};this.isJQueryObject(e)&&(e=e[0]);for(var n=0,s=e.style.length;n-1},keyInObject:function(){return Object.keys(obj).indexOf(value)>-1},newCssSheet:function(e){var t=document.createElement("style");return void 0!==e&&t.setAttribute("media",e),t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet},addCssRule:function(e,t,n,s){"insertRule"in e?e.insertRule(t+"{"+n+"}",s):"addRule"in e&&e.addRule(t,n,s)},media:function(e){return window.matchMedia(e).matches}};c.utils=L;var Y={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),L.exec(this.options.onAccordionCreate,[this.element]),this},options:{duration:METRO_ANIMATION_DURATION,oneFrame:!0,showActive:!0,activeFrameClass:"",activeHeadingClass:"",activeContentClass:"",onFrameOpen:c.noop,onFrameBeforeOpen:c.noop_true,onFrameClose:c.noop,onFrameBeforeClose:c.noop_true,onAccordionCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e,t=this.element,n=this.options,s=t.children(".frame"),i=t.children(".frame.active");t.addClass("accordion"),e=0===i.length?s[0]:i[0],this._hideAll(),!0!==n.showActive&&!0!==n.oneFrame||this._openFrame(e),this._createEvents()},_createEvents:function(){var e=this,n=this.element,s=this.options,i=n.children(".frame.active");n.on(c.events.click,".heading",function(){var a=t(this),o=a.parent();if(a.closest(".accordion")[0]!==n[0])return!1;o.hasClass("active")?1===i.length&&s.oneFrame||e._closeFrame(o):e._openFrame(o),n.trigger("open",{frame:o})})},_openFrame:function(e){var n=this.element,s=this.options,i=(n.children(".frame"),t(e));if(!1===L.exec(s.onFrameBeforeOpen,i[0]))return!1;!0===s.oneFrame&&this._closeAll(),i.addClass("active "+s.activeFrameClass),i.children(".heading").addClass(s.activeHeadingClass),i.children(".content").addClass(s.activeContentClass).slideDown(s.duration),L.callback(s.onFrameOpen,i[0])},_closeFrame:function(e){this.element;var n=this.options,s=t(e);!1!==L.exec(n.onFrameBeforeOpen,s[0])&&(s.removeClass("active "+n.activeFrameClass),s.children(".heading").removeClass(n.activeHeadingClass),s.children(".content").removeClass(n.activeContentClass).slideUp(n.duration),L.callback(n.onFrameClose,s[0]))},_closeAll:function(){var e=this,n=this.element,s=(this.options,n.children(".frame"));t.each(s,function(){e._closeFrame(this)})},_hideAll:function(){var e=this.element,n=(this.options,e.children(".frame"));t.each(n,function(){t(this).children(".content").hide(0)})},_openAll:function(){var e=this,n=this.element,s=(this.options,n.children(".frame"));t.each(s,function(){e._openFrame(this)})},changeAttribute:function(e){},destroy:function(){this.element.off(c.events.click,".heading")}};c.plugin("accordion",Y);var j={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),L.exec(this.options.onActivityCreate,[this.element]),this},options:{type:"ring",style:"light",size:64,radius:20,onActivityCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e,n,s=this.element,i=this.options;switch(s.html("").addClass(i.style+"-style").addClass("activity-"+i.type),i.type){case"metro":!function(){for(e=0;e<5;e++)t("
").addClass("circle").appendTo(s)}();break;case"square":!function(){for(e=0;e<4;e++)t("
").addClass("square").appendTo(s)}();break;case"cycle":t("
").addClass("cycle").appendTo(s);break;case"simple":t('').appendTo(s);break;default:!function(){for(e=0;e<5;e++)n=t("
").addClass("wrap").appendTo(s),t("
").addClass("circle").appendTo(n)}()}},changeAttribute:function(e){},destroy:function(){var e=this.element,t=this.options;e.html("").removeClass(t.style+"-style").removeClass("activity-"+t.type)}};c.plugin("activity",j);var U={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),this},options:{duration:100,onAppBarCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e=this.element,t=this.options;this._createStructure(),this._createEvents(),L.exec(t.onAppBarCreate,[e])},_createStructure:function(){var e,n,s=this.element,i=(this.options,L.elementId("app-bar"));if(s.addClass("app-bar"),0===(e=s.find(".hamburger")).length){e=t("
"},embedUrl:function(e){return-1!==e.indexOf("youtu.be")&&(e="https://www.youtube.com/embed/"+e.split("/").pop()),"
"},secondsToTime:function(e){var t=e%3600,n=t%60;return{h:Math.floor(e/3600),m:Math.floor(t/60),s:Math.ceil(n)}},hex2rgba:function(e,t){var n;if(t=isNaN(t)?1:t,/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n].join(",")+","+t+")";throw new Error("Hex2rgba error. Bad Hex value")},random:function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},uniqueId:function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})},elementId:function(e){return e+"-"+(new Date).getTime()+L.random(1,1e3)},secondsToFormattedString:function(e){var t=parseInt(e,10),n=Math.floor(t/3600),s=Math.floor((t-3600*n)/60),i=t-3600*n-60*s;return n<10&&(n="0"+n),s<10&&(s="0"+s),i<10&&(i="0"+i),[n,s,i].join(":")},callback:function(e,t,n){return this.exec(e,t,n)},exec:function(e,t,n){var s;if(null==e)return!1;var i=this.isFunc(e);!1===i&&(i=new Function("a",e));try{s=i.apply(n,t)}catch(e){if(s=null,!0===METRO_THROWS)throw e}return s},isOutsider:function(e){var n,s=(e=this.isJQueryObject(e)?e:t(e)).clone();return s.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),e.parent().append(s),n=s[0].getBoundingClientRect(),s.remove(),n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},inViewport:function(t){"function"==typeof e&&t instanceof e&&(t=t[0]);var n=t.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},objectLength:function(e){return Object.keys(e).length},percent:function(e,t,n){if(0===e)return 0;var s=100*t/e;return!0===n?Math.round(s):Math.round(100*s)/100},camelCase:function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})},objectShift:function(e){var n=0;return t.each(e,function(e){0===n?n=e:n>e&&(n=e)}),delete e[n],e},objectDelete:function(e,t){void 0!==e[t]&&delete e[t]},arrayDelete:function(e,t){e.splice(e.indexOf(t),1)},arrayDeleteByKey:function(e,t){e.splice(t,1)},nvl:function(e,t){return null==e?t:e},objectClone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},github:function(e,n){var s=this;t.ajax({url:"https://api.github.com/repos/"+e,dataType:"jsonp"}).done(function(e){s.callback(n,[e.data])})},detectIE:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var s=e.indexOf("Edge/");return s>0&&parseInt(e.substring(s+5,e.indexOf(".",s)),10)},detectChrome:function(){return/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)},md5:function(e){return v(f(m(e)))},encodeURI:function(e){return encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")},pageHeight:function(){var e=document.body,t=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)},cleanPreCode:function(e){Array.prototype.slice.call(document.querySelectorAll(e),0).forEach(function(e){var t=e.textContent.replace(/^[\r\n]+/,"").replace(/\s+$/g,"");if(/^\S/gm.test(t))e.textContent=t;else{for(var n,s,i,a=/^[\t ]+/gm,o=1e3;n=a.exec(t);)(i=n[0].length)>16&255,t>>8&255,255&t]):[0,0,0]},hexColorToRgbA:function(e,t){var n;return/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)?(3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n,t||1].join(",")+")"):"rgba(0,0,0,1)"},getInlineStyles:function(e){var t={};this.isJQueryObject(e)&&(e=e[0]);for(var n=0,s=e.style.length;n-1},keyInObject:function(){return Object.keys(obj).indexOf(value)>-1},newCssSheet:function(e){var t=document.createElement("style");return void 0!==e&&t.setAttribute("media",e),t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet},addCssRule:function(e,t,n,s){"insertRule"in e?e.insertRule(t+"{"+n+"}",s):"addRule"in e&&e.addRule(t,n,s)},media:function(e){return window.matchMedia(e).matches}};c.utils=L;var Y={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),L.exec(this.options.onAccordionCreate,[this.element]),this},options:{duration:METRO_ANIMATION_DURATION,oneFrame:!0,showActive:!0,activeFrameClass:"",activeHeadingClass:"",activeContentClass:"",onFrameOpen:c.noop,onFrameBeforeOpen:c.noop_true,onFrameClose:c.noop,onFrameBeforeClose:c.noop_true,onAccordionCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e,t=this.element,n=this.options,s=t.children(".frame"),i=t.children(".frame.active");t.addClass("accordion"),e=0===i.length?s[0]:i[0],this._hideAll(),!0!==n.showActive&&!0!==n.oneFrame||this._openFrame(e),this._createEvents()},_createEvents:function(){var e=this,n=this.element,s=this.options,i=n.children(".frame.active");n.on(c.events.click,".heading",function(){var a=t(this),o=a.parent();if(a.closest(".accordion")[0]!==n[0])return!1;o.hasClass("active")?1===i.length&&s.oneFrame||e._closeFrame(o):e._openFrame(o),n.trigger("open",{frame:o})})},_openFrame:function(e){var n=this.element,s=this.options,i=(n.children(".frame"),t(e));if(!1===L.exec(s.onFrameBeforeOpen,i[0]))return!1;!0===s.oneFrame&&this._closeAll(),i.addClass("active "+s.activeFrameClass),i.children(".heading").addClass(s.activeHeadingClass),i.children(".content").addClass(s.activeContentClass).slideDown(s.duration),L.callback(s.onFrameOpen,i[0])},_closeFrame:function(e){this.element;var n=this.options,s=t(e);!1!==L.exec(n.onFrameBeforeOpen,s[0])&&(s.removeClass("active "+n.activeFrameClass),s.children(".heading").removeClass(n.activeHeadingClass),s.children(".content").removeClass(n.activeContentClass).slideUp(n.duration),L.callback(n.onFrameClose,s[0]))},_closeAll:function(){var e=this,n=this.element,s=(this.options,n.children(".frame"));t.each(s,function(){e._closeFrame(this)})},_hideAll:function(){var e=this.element,n=(this.options,e.children(".frame"));t.each(n,function(){t(this).children(".content").hide(0)})},_openAll:function(){var e=this,n=this.element,s=(this.options,n.children(".frame"));t.each(s,function(){e._openFrame(this)})},changeAttribute:function(e){},destroy:function(){this.element.off(c.events.click,".heading")}};c.plugin("accordion",Y);var j={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),L.exec(this.options.onActivityCreate,[this.element]),this},options:{type:"ring",style:"light",size:64,radius:20,onActivityCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e,n,s=this.element,i=this.options;switch(s.html("").addClass(i.style+"-style").addClass("activity-"+i.type),i.type){case"metro":!function(){for(e=0;e<5;e++)t("
").addClass("circle").appendTo(s)}();break;case"square":!function(){for(e=0;e<4;e++)t("
").addClass("square").appendTo(s)}();break;case"cycle":t("
").addClass("cycle").appendTo(s);break;case"simple":t('').appendTo(s);break;default:!function(){for(e=0;e<5;e++)n=t("
").addClass("wrap").appendTo(s),t("
").addClass("circle").appendTo(n)}()}},changeAttribute:function(e){},destroy:function(){var e=this.element,t=this.options;e.html("").removeClass(t.style+"-style").removeClass("activity-"+t.type)}};c.plugin("activity",j);var U={init:function(e,n){return this.options=t.extend({},this.options,e),this.elem=n,this.element=t(n),this._setOptionsFromDOM(),this._create(),this},options:{duration:100,onAppBarCreate:c.noop},_setOptionsFromDOM:function(){var e=this.element,n=this.options;t.each(e.data(),function(e,t){if(e in n)try{n[e]=JSON.parse(t)}catch(s){n[e]=t}})},_create:function(){var e=this.element,t=this.options;this._createStructure(),this._createEvents(),L.exec(t.onAppBarCreate,[e])},_createStructure:function(){var e,n,s=this.element,i=(this.options,L.elementId("app-bar"));if(s.addClass("app-bar"),0===(e=s.find(".hamburger")).length){e=t("