function uiUploader(n){"use strict";function r(n){for(var i=0;i<n.length;i++)t.files.push(n[i])}function u(){return t.files}function i(n){t.options=n;for(var i=0;i<t.files.length&&t.activeUploads!=t.options.concurrency;i++)t.files[i].active||s(t.files[i],t.options.url)}function f(n){t.files.splice(t.files.indexOf(n),1)}function e(){t.files.splice(0,t.files.length)}function o(n){var t=+Math.floor(Math.log(n)/Math.log(1024));return(n/Math.pow(1024,t)).toFixed(t?1:0)+" "+["n/a","bytes","KiB","MiB","GiB","TB","PB","EiB","ZiB","YiB"][isNaN(n)?0:t+1]}function s(n,r){var u,f,e,s="";if(t.activeUploads+=1,n.active=!0,u=new window.XMLHttpRequest,f=new window.FormData,u.open("POST",r),u.upload.onloadstart=function(){},u.upload.onprogress=function(i){i.lengthComputable&&(n.loaded=i.loaded,n.humanSize=o(i.loaded),t.options.onProgress(n))},u.onload=function(){t.activeUploads-=1;i(t.options);t.options.onCompleted(n,u.responseText)},u.onerror=function(){},s)for(e in s)s.hasOwnProperty(e)&&f.append(e,s[e]);return f.append("file",n,n.name),u.send(f),u}var t=this;return t.files=[],t.options={},t.activeUploads=0,n.info("uiUploader loaded"),{addFiles:r,getFiles:u,files:t.files,startUpload:i,removeFile:f,removeAll:e}}function SimplePagination(){return{restrict:"E",scope:{currentPage:"=",offset:"=",pageLimit:"=",pageLimits:"=",total:"=",onUpdate:"&",id:"=",totalOnLast:"="},bindToController:!0,controller:SimplePaginationController,controllerAs:"pagination",template:'\n      <div class="simple-pagination">\n        <p class="simple-pagination__items">Показано {{pagination.docsOnPage}} з {{pagination.total}} документів<\/p>\n        <p>\n          <button ng-click="pagination.previousPage()" ng-disabled="pagination.currentPage <= 0" class="btn-sm btn-primary btn-bid-docs simple-pagination__button simple-pagination__button--prev">\n            &#10094;\n          <\/button>\n          <span class="simple-pagination__pages">{{pagination.currentPage + 1}} of {{pagination.getTotalPages()}}<\/span>\n          <button ng-click="pagination.nextPage()" ng-disabled="pagination.currentPage === (pagination.getTotalPages() - 1)" class="btn-sm btn-primary btn-bid-docs  simple-pagination__button simple-pagination__button--next">\n            &#10095;\n          <\/button>\n        <\/p>\n        <p class="simple-pagination__page-limit">\n          <span class="simple-pagination__page-limit__option" ng-repeat="limit in pagination.pageLimits" ng-if="limit < pagination.total">\n            <a href="" ng-click="pagination.setItemsPerPages(limit)" ng-class="{\'active\': pagination.isCurrentPageLimit(limit)}">{{limit}}<\/a>\n          <\/span>\n          <span>\n    Показати <a href="" ng-click="pagination.setItemsPerPages(pagination.total)" ng-class="{\'active\': pagination.isCurrentPageLimit(pagination.total)}">Всі<\/a>\n          <\/span>\n        <\/p>\n      <\/div>\n    '}}function SimplePaginationController(){function t(){n.onUpdate&&n.onUpdate()}var n=this;n.docsOnPage=10;n.currentPage=n.currentPage||0;n.pageLimit=10;n.setItemsPerPages=function(i){n.pageLimit=i>=n.total?n.total:i;n.currentPage=0;n.offset=0;t()};n.nextPage=function(){n.currentPage+=1;n.offset=n.currentPage*n.pageLimit;n.docsOnPage=n.currentPage===n.getTotalPages()-1?n.totalOnLast:10};n.previousPage=function(){n.currentPage-=1;n.offset=n.currentPage*n.pageLimit;n.docsOnPage=n.currentPage===n.getTotalPages()-1?n.totalOnLast:10};n.getTotalPages=function(){return Math.ceil(n.total/n.pageLimit)};n.isCurrentPageLimit=function(t){return n.pageLimit==t}}var msViewportStyle,JSON,HtmlSanitizer,abp,saveAs;if(!function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){function ri(n){var t="length"in n&&n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}function ui(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(ef.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return ft.call(t,n)>=0!==r})}function ur(n,t){while((n=n[t])&&1!==n.nodeType);return n}function of(n){var t=fi[n]={};return i.each(n.match(c)||[],function(n,i){t[i]=!0}),t}function ht(){u.removeEventListener("DOMContentLoaded",ht,!1);n.removeEventListener("load",ht,!1);i.ready()}function v(){Object.defineProperty(this.cache={},0,{get:function(){return{}}});this.expando=i.expando+v.uid++}function fr(n,t,r){var u;if(void 0===r&&1===n.nodeType)if(u="data-"+t.replace(hf,"-$1").toLowerCase(),r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:sf.test(r)?i.parseJSON(r):r}catch(f){}e.set(n,t,r)}else r=void 0;return r}function lt(){return!0}function k(){return!1}function hr(){try{return u.activeElement}catch(n){}}function vr(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function bf(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function kf(n){var t=pf.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function ei(n,t){for(var i=0,u=n.length;u>i;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function yr(n,t){var u,c,f,s,h,l,a,o;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),o=s.events)){delete h.handle;h.events={};for(f in o)for(u=0,c=o[f].length;c>u;u++)i.event.add(t,f,o[f][u])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function o(n,t){var r=n.getElementsByTagName?n.getElementsByTagName(t||"*"):n.querySelectorAll?n.querySelectorAll(t||"*"):[];return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function df(n,t){var i=t.nodeName.toLowerCase();"input"===i&&er.test(n.type)?t.checked=n.checked:("input"===i||"textarea"===i)&&(t.defaultValue=n.defaultValue)}function pr(t,r){var f,u=i(r.createElement(t)).appendTo(r.body),e=n.getDefaultComputedStyle&&(f=n.getDefaultComputedStyle(u[0]))?f.display:i.css(u[0],"display");return u.detach(),e}function si(n){var r=u,t=oi[n];return t||(t=pr(n,r),"none"!==t&&t||(at=(at||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=at[0].contentDocument,r.write(),r.close(),t=pr(n,r),at.detach()),oi[n]=t),t}function it(n,t,r){var e,o,s,u,f=n.style;return r=r||vt(n),r&&(u=r.getPropertyValue(t)||r[t]),r&&(""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),hi.test(u)&&wr.test(t)&&(e=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=e,f.minWidth=o,f.maxWidth=s)),void 0!==u?u+"":u}function br(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function gr(n,t){if(t in n)return t;for(var r=t[0].toUpperCase()+t.slice(1),u=t,i=dr.length;i--;)if(t=dr[i]+r,t in n)return t;return u}function nu(n,t,i){var r=ne.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function tu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+p[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+p[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function iu(n,t,r){var o=!0,u="width"===t?n.offsetWidth:n.offsetHeight,e=vt(n),s="border-box"===i.css(n,"boxSizing",!1,e);if(0>=u||null==u){if(u=it(n,t,e),(0>u||null==u)&&(u=n.style[t]),hi.test(u))return u;o=s&&(f.boxSizingReliable()||u===n.style[t]);u=parseFloat(u)||0}return u+tu(n,t,r||(s?"border":"content"),o,e)+"px"}function ru(n,t){for(var e,u,s,o=[],f=0,h=n.length;h>f;f++)u=n[f],u.style&&(o[f]=r.get(u,"olddisplay"),e=u.style.display,t?(o[f]||"none"!==e||(u.style.display=""),""===u.style.display&&tt(u)&&(o[f]=r.access(u,"olddisplay",si(u.nodeName)))):(s=tt(u),"none"===e&&s||r.set(u,"olddisplay",s?e:i.css(u,"display"))));for(f=0;h>f;f++)u=n[f],u.style&&(t&&"none"!==u.style.display&&""!==u.style.display||(u.style.display=t?o[f]||"":"none"));return n}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function fu(){return setTimeout(function(){d=void 0}),d=i.now()}function wt(n,t){var r,u=0,i={height:n};for(t=t?1:0;4>u;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function eu(n,t,i){for(var u,f=(rt[t]||[]).concat(rt["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function fe(n,t,u){var f,a,p,v,o,w,h,b,l=this,y={},s=n.style,c=n.nodeType&&tt(n),e=r.get(n,"fxshow");u.queue||(o=i._queueHooks(n,"fx"),null==o.unqueued&&(o.unqueued=0,w=o.empty.fire,o.empty.fire=function(){o.unqueued||w()}),o.unqueued++,l.always(function(){l.always(function(){o.unqueued--;i.queue(n,"fx").length||o.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],h=i.css(n,"display"),b="none"===h?r.get(n,"olddisplay")||si(n.nodeName):h,"inline"===b&&"none"===i.css(n,"float")&&(s.display="inline-block"));u.overflow&&(s.overflow="hidden",l.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],re.exec(a)){if(delete t[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||i.style(n,f)}else h=void 0;if(i.isEmptyObject(y))"inline"===("none"===h?si(n.nodeName):h)&&(s.display=h);else{e?"hidden"in e&&(c=e.hidden):e=r.access(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;r.remove(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=eu(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function ee(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ou(n,t,r){var h,e,o=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=d||fu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:d||fu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(ee(s,u.opts.specialEasing);l>o;o++)if(h=pt[o].call(u,n,s,u.opts))return h;return i.map(s,eu,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function pu(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(c)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function wu(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===ci;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ai(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function ae(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return(f!==r[0]&&r.unshift(f),i[f])}function ve(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function vi(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||pe.test(n)?u(n,i):vi(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)vi(n+"["+f+"]",t[f],r,u)}function ku(n){return i.isWindow(n)?n:9===n.nodeType&&n.defaultView}var w=[],a=w.slice,bi=w.concat,ti=w.push,ft=w.indexOf,et={},nf=et.toString,ii=et.hasOwnProperty,f={},u=n.document,ki="2.1.4",i=function(n,t){return new i.fn.init(n,t)},tf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rf=/^-ms-/,uf=/-([\da-z])/gi,ff=function(n,t){return t.toUpperCase()},y,ot,nr,tr,ir,rr,c,fi,st,l,b,at,oi,oe,su,g,hu,bt,cu,kt,dt,yi,ni,pi,wi,du,gu;i.fn=i.prototype={jquery:ki,constructor:i,selector:"",length:0,toArray:function(){return a.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:a.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ti,sort:w.sort,splice:w.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(e=arguments[u]))for(f in e)r=n[f],t=e[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(o=i.isArray(t)))?(o?(o=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(ki+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray,isWindow:function(n){return null!=n&&n===n.window},isNumeric:function(n){return!i.isArray(n)&&n-parseFloat(n)+1>=0},isPlainObject:function(n){return"object"!==i.type(n)||n.nodeType||i.isWindow(n)?!1:n.constructor&&!ii.call(n.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(n){for(var t in n)return!1;return!0},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?et[nf.call(n)]||"object":typeof n},globalEval:function(n){var t,r=eval;n=i.trim(n);n&&(1===n.indexOf("use strict")?(t=u.createElement("script"),t.text=n,u.head.appendChild(t).parentNode.removeChild(t)):r(n))},camelCase:function(n){return n.replace(rf,"ms-").replace(uf,ff)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=ri(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(tf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ri(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ti.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ft.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;u>i;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=ri(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return bi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;return"string"==typeof t&&(u=n[t],t=n,n=u),i.isFunction(n)?(f=a.call(arguments,2),r=function(){return n.apply(t||this,f.concat(a.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:Date.now,support:f});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){et["[object "+t+"]"]=t.toLowerCase()});y=function(n){function r(n,t,i,r){var p,s,a,c,w,y,d,v,nt,g;if((t?t.ownerDocument||t:h)!==o&&k(t),t=t||o,i=i||[],c=t.nodeType,"string"!=typeof n||!n||1!==c&&9!==c&&11!==c)return i;if(!r&&l){if(11!==c&&(p=hr.exec(n)))if(a=p[1]){if(9===c){if(s=t.getElementById(a),!s||!s.parentNode)return i;if(s.id===a)return i.push(s),i}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(a))&&et(t,s)&&s.id===a)return i.push(s),i}else{if(p[2])return b.apply(i,t.getElementsByTagName(n)),i;if((a=p[3])&&u.getElementsByClassName)return b.apply(i,t.getElementsByClassName(a)),i}if(u.qsa&&(!e||!e.test(n))){if(v=d=f,nt=t,g=1!==c&&n,1===c&&"object"!==t.nodeName.toLowerCase()){for(y=ft(n),(d=t.getAttribute("id"))?v=d.replace(cr,"\\$&"):t.setAttribute("id",v),v="[id='"+v+"'] ",w=y.length;w--;)y[w]=v+vt(y[w]);nt=dt.test(n)&&ti(t.parentNode)||t;g=y.join(",")}if(g)try{return b.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return oi(n.replace(lt,"$1"),t,i,r)}function gt(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function c(n){return n[f]=!0,n}function v(n){var t=o.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ni(n,i){for(var u=n.split("|"),r=n.length;r--;)t.attrHandle[u[r]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function tt(n){return c(function(t){return t=+t,c(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ti(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function bi(){}function vt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ii(n,t,i){var r=t.dir,u=i&&"parentNode"===r,e=ki++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[a,e];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===a&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ri(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function vr(n,t,i){for(var u=0,f=t.length;f>u;u++)r(n,t[u],i);return i}function yt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function ui(n,t,i,r,u,e){return r&&!r[f]&&(r=ui(r)),u&&!u[f]&&(u=ui(u,e)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||vr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:yt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=yt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=yt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function fi(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ii(function(n){return n===o},c,!0),a=ii(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];s>i;i++)if(u=t.relative[n[i].type])e=[ii(ri(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;s>r;r++)if(t.relative[n[r].type])break;return ui(i>1&&ri(e),i>1&&vt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(lt,"$1"),u,r>i&&fi(n.slice(i,r)),s>r&&fi(n=n.slice(r)),s>r&&vt(n))}e.push(u)}return ri(e)}function yr(n,i){var u=i.length>0,f=n.length>0,e=function(e,s,h,c,l){var y,d,w,k=0,v="0",g=e&&[],p=[],nt=ht,tt=e||f&&t.find.TAG("*",l),it=a+=null==nt?1:Math.random()||.1,rt=tt.length;for(l&&(ht=s!==o&&s);v!==rt&&null!=(y=tt[v]);v++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(a=it)}u&&((y=!w&&y)&&k--,e&&g.push(y))}if(k+=v,u&&v!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(e){if(k>0)while(v--)g[v]||p[v]||(p[v]=gi.call(c));p=yt(p)}b.apply(c,p);l&&!e&&p.length>0&&k+i.length>1&&r.uniqueSort(c)}return l&&(a=it,ht=nt),g};return u?c(e):e}var it,u,t,st,ei,ft,pt,oi,ht,w,rt,k,o,s,l,e,d,ct,et,f="sizzle"+1*new Date,h=n.document,a=0,ki=0,si=gt(),hi=gt(),ci=gt(),wt=function(n,t){return n===t&&(rt=!0),0},li=-2147483648,di={}.hasOwnProperty,g=[],gi=g.pop,nr=g.push,b=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},bt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ut="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi=ut.replace("w","w#"),yi="\\["+i+"*("+ut+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+vi+"))|)"+i+"*\\]",kt=":("+ut+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+yi+")*)|.*)\\)|)",tr=new RegExp(i+"+","g"),lt=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),ir=new RegExp("^"+i+"*,"+i+"*"),rr=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),ur=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),fr=new RegExp(kt),er=new RegExp("^"+vi+"$"),at={ID:new RegExp("^#("+ut+")"),CLASS:new RegExp("^\\.("+ut+")"),TAG:new RegExp("^("+ut.replace("w","w*")+")"),ATTR:new RegExp("^"+yi),PSEUDO:new RegExp("^"+kt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+bt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},or=/^(?:input|select|textarea|button)$/i,sr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,hr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,dt=/[+~]/,cr=/'|\\/g,y=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},pi=function(){k()};try{b.apply(g=ai.call(h.childNodes),h.childNodes);g[h.childNodes.length].nodeType}catch(pr){b={apply:g.length?function(n,t){nr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}u=r.support={};ei=r.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};k=r.setDocument=function(n){var a,c,r=n?n.ownerDocument||n:h;return r!==o&&9===r.nodeType&&r.documentElement?(o=r,s=r.documentElement,c=r.defaultView,c&&c!==c.top&&(c.addEventListener?c.addEventListener("unload",pi,!1):c.attachEvent&&c.attachEvent("onunload",pi)),l=!ei(r),u.attributes=v(function(n){return n.className="i",!n.getAttribute("className")}),u.getElementsByTagName=v(function(n){return n.appendChild(r.createComment("")),!n.getElementsByTagName("*").length}),u.getElementsByClassName=ot.test(r.getElementsByClassName),u.getById=v(function(n){return s.appendChild(n).id=f,!r.getElementsByName||!r.getElementsByName(f).length}),u.getById?(t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&l){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=u.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):u.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=u.getElementsByClassName&&function(n,t){if(l)return t.getElementsByClassName(n)},d=[],e=[],(u.qsa=ot.test(r.querySelectorAll))&&(v(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\f]' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&e.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||e.push("\\["+i+"*(?:value|"+bt+")");n.querySelectorAll("[id~="+f+"-]").length||e.push("~=");n.querySelectorAll(":checked").length||e.push(":checked");n.querySelectorAll("a#"+f+"+*").length||e.push(".#.+[+~]")}),v(function(n){var t=r.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&e.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||e.push(":enabled",":disabled");n.querySelectorAll("*,:x");e.push(",.*:")})),(u.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&v(function(n){u.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");d.push("!=",kt)}),e=e.length&&new RegExp(e.join("|")),d=d.length&&new RegExp(d.join("|")),a=ot.test(s.compareDocumentPosition),et=a||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},wt=a?function(n,t){if(n===t)return rt=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&i||!u.sortDetached&&t.compareDocumentPosition(n)===i?n===r||n.ownerDocument===h&&et(h,n)?-1:t===r||t.ownerDocument===h&&et(h,t)?1:w?nt(w,n)-nt(w,t):0:4&i?-1:1)}:function(n,t){if(n===t)return rt=!0,0;var i,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===r?-1:t===r?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===h?-1:e[u]===h?1:0},r):o};r.matches=function(n,t){return r(n,null,null,t)};r.matchesSelector=function(n,t){if((n.ownerDocument||n)!==o&&k(n),t=t.replace(ur,"='$1']"),!(!u.matchesSelector||!l||d&&d.test(t)||e&&e.test(t)))try{var i=ct.call(n,t);if(i||u.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(f){}return r(t,o,null,[n]).length>0};r.contains=function(n,t){return(n.ownerDocument||n)!==o&&k(n),et(n,t)};r.attr=function(n,i){(n.ownerDocument||n)!==o&&k(n);var f=t.attrHandle[i.toLowerCase()],r=f&&di.call(t.attrHandle,i.toLowerCase())?f(n,i,!l):void 0;return void 0!==r?r:u.attributes||!l?n.getAttribute(i):(r=n.getAttributeNode(i))&&r.specified?r.value:null};r.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};r.uniqueSort=function(n){var r,f=[],t=0,i=0;if(rt=!u.detectDuplicates,w=!u.sortStable&&n.slice(0),n.sort(wt),rt){while(r=n[i++])r===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return w=null,n};st=r.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=r.selectors={cacheLength:50,createPseudo:c,match:at,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||r.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&r.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return at.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&fr.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=si[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&si(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(u){var f=r.attr(u,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(tr," ")+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var v,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),v=k[n]||[],y=v[0]===a&&v[1],l=v[0]===a&&v[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[a,y,l];break}}else if(d&&(v=(t[f]||(t[f]={}))[n])&&v[0]===a)l=v[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[a,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,u=t.pseudos[n]||t.setFilters[n.toLowerCase()]||r.error("unsupported pseudo: "+n);return u[f]?u(i):u.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?c(function(n,t){for(var r,f=u(n,i),e=f.length;e--;)r=nt(n,f[e]),n[r]=!(t[r]=f[e])}):function(n){return u(n,0,e)}):u}},pseudos:{not:c(function(n){var t=[],r=[],i=pt(n.replace(lt,"$1"));return i[f]?c(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:c(function(n){return function(t){return r(n,t).length>0}}),contains:c(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:c(function(n){return er.test(n||"")||r.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=l?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===o.activeElement&&(!o.hasFocus||o.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return sr.test(n.nodeName)},input:function(n){return or.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:tt(function(){return[0]}),last:tt(function(n,t){return[t-1]}),eq:tt(function(n,t,i){return[0>i?i+t:i]}),even:tt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:tt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:tt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:tt(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(it in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[it]=lr(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=ar(it);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,ft=r.tokenize=function(n,i){var e,f,s,o,u,h,c,l=hi[n+" "];if(l)return i?0:l.slice(0);for(u=n,h=[],c=t.preFilter;u;){(!e||(f=ir.exec(u)))&&(f&&(u=u.slice(f[0].length)||u),h.push(s=[]));e=!1;(f=rr.exec(u))&&(e=f.shift(),s.push({value:e,type:f[0].replace(lt," ")}),u=u.slice(e.length));for(o in t.filter)(f=at[o].exec(u))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),u=u.slice(e.length));if(!e)break}return i?u.length:u?r.error(n):hi(n,h).slice(0)},pt=r.compile=function(n,t){var r,u=[],e=[],i=ci[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=fi(t[r]),i[f]?u.push(i):e.push(i);i=ci(n,yr(e,u));i.selector=n}return i},oi=r.select=function(n,i,r,f){var s,e,o,a,v,c="function"==typeof n&&n,h=!f&&ft(n=c.selector||n);if(r=r||[],1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&u.getById&&9===i.nodeType&&l&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],!i)return r;c&&(i=i.parentNode);n=n.slice(e.shift().value.length)}for(s=at.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[a=o.type])break;if((v=t.find[a])&&(f=v(o.matches[0].replace(y,p),dt.test(e[0].type)&&ti(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&vt(e),!n)return b.apply(r,f),r;break}}}return(c||pt(n,h))(f,i,!l,r,dt.test(n)&&ti(i.parentNode)||i),r},u.sortStable=f.split("").sort(wt).join("")===f,u.detectDuplicates=!!rt,k(),u.sortDetached=v(function(n){return 1&n.compareDocumentPosition(o.createElement("div"))}),v(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ni("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),u.attributes&&v(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ni("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),v(function(n){return null==n.getAttribute("disabled")})||ni(bt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),r}(n);i.find=y;i.expr=y.selectors;i.expr[":"]=i.expr.pseudos;i.unique=y.uniqueSort;i.text=y.getText;i.isXMLDoc=y.isXML;i.contains=y.contains;var di=i.expr.match.needsContext,gi=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ef=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,u=this.length,r=[],f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;u>t;t++)if(i.contains(f[t],this))return!0}));for(t=0;u>t;t++)i.find(n,f[t],r);return r=this.pushStack(u>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ui(this,n||[],!1))},not:function(n){return this.pushStack(ui(this,n||[],!0))},is:function(n){return!!ui(this,"string"==typeof n&&di.test(n)?i(n):n||[],!1).length}});nr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;tr=i.fn.init=function(n,t){var r,f;if(!n)return this;if("string"==typeof n){if(r="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:nr.exec(n),!r||!r[1]&&t)return!t||t.jquery?(t||ot).find(n):this.constructor(t).find(n);if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),gi.test(r[1])&&i.isPlainObject(t))for(r in t)i.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return f=u.getElementById(r[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof ot.ready?ot.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};tr.prototype=i.fn;ot=i(u);ir=/^(?:parents|prev(?:Until|All))/;rr={children:!0,contents:!0,next:!0,prev:!0};i.extend({dir:function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;r>n;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=di.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?ft.call(i(n),this[0]):ft.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.unique(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ur(n,"nextSibling")},prev:function(n){return ur(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return n.contentDocument||i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(rr[n]||i.unique(f),ir.test(n)&&f.reverse()),this.pushStack(f)}});c=/\S+/g;fi={};i.Callbacks=function(n){n="string"==typeof n?fi[n]||of(n):i.extend({},n);var u,h,o,c,f,e,t=[],r=!n.once&&[],l=function(i){for(u=n.memory&&i,h=!0,e=c||0,c=0,f=t.length,o=!0;t&&f>e;e++)if(t[e].apply(i[0],i[1])===!1&&n.stopOnFalse){u=!1;break}o=!1;t&&(r?r.length&&l(r.shift()):u?t=[]:s.disable())},s={add:function(){if(t){var r=t.length;!function e(r){i.each(r,function(r,u){var f=i.type(u);"function"===f?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==f&&e(u)})}(arguments);o?f=t.length:u&&(c=r,l(u))}return this},remove:function(){return t&&i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),o&&(f>=u&&f--,e>=u&&e--)}),this},has:function(n){return n?i.inArray(n,t)>-1:!(!t||!t.length)},empty:function(){return t=[],f=0,this},disable:function(){return t=r=u=void 0,this},disabled:function(){return!t},lock:function(){return r=void 0,u||s.disable(),this},locked:function(){return!r},fireWith:function(n,i){return!t||h&&!r||(i=i||[],i=[n,i.slice?i.slice():i],o?r.push(i):l(i)),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=a.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?a.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0||(st.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready"))))}});i.ready.promise=function(t){return st||(st=i.Deferred(),"complete"===u.readyState?setTimeout(i.ready):(u.addEventListener("DOMContentLoaded",ht,!1),n.addEventListener("load",ht,!1))),st.promise(t)};i.ready.promise();l=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};i.acceptData=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};v.uid=1;v.accepts=i.acceptData;v.prototype={key:function(n){if(!v.accepts(n))return 0;var r={},t=n[this.expando];if(!t){t=v.uid++;try{r[this.expando]={value:t};Object.defineProperties(n,r)}catch(u){r[this.expando]=t;i.extend(n,r)}}return this.cache[t]||(this.cache[t]={}),t},set:function(n,t,r){var f,e=this.key(n),u=this.cache[e];if("string"==typeof t)u[t]=r;else if(i.isEmptyObject(u))i.extend(this.cache[e],t);else for(f in t)u[f]=t[f];return u},get:function(n,t){var i=this.cache[this.key(n)];return void 0===t?i:i[t]},access:function(n,t,r){var u;return void 0===t||t&&"string"==typeof t&&void 0===r?(u=this.get(n,t),void 0!==u?u:this.get(n,i.camelCase(t))):(this.set(n,t,r),void 0!==r?r:t)},remove:function(n,t){var u,r,f,o=this.key(n),e=this.cache[o];if(void 0===t)this.cache[o]={};else for(i.isArray(t)?r=t.concat(t.map(i.camelCase)):(f=i.camelCase(t),(t in e)?r=[t,f]:(r=f,r=(r in e)?[r]:r.match(c)||[])),u=r.length;u--;)delete e[r[u]]},hasData:function(n){return!i.isEmptyObject(this.cache[n[this.expando]]||{})},discard:function(n){n[this.expando]&&delete this.cache[n[this.expando]]}};var r=new v,e=new v,sf=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,hf=/([A-Z])/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(void 0===n){if(this.length&&(s=e.get(u),1===u.nodeType&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),fr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return"object"==typeof n?this.each(function(){e.set(this,n)}):l(this,function(t){var r,f=i.camelCase(n);if(u&&void 0===t){if((r=e.get(u,n),void 0!==r)||(r=e.get(u,f),void 0!==r)||(r=fr(u,f,void 0),void 0!==r))return r}else this.each(function(){var i=e.get(this,f);e.set(this,f,t);-1!==n.indexOf("-")&&void 0!==i&&e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return(t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||i.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[])},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var ct=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,p=["Top","Right","Bottom","Left"],tt=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)},er=/^(?:checkbox|radio)$/i;!function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();b="undefined";f.focusinBubbles="onfocusin"in n;var cf=/^key/,lf=/^(?:mouse|pointer|contextmenu)|click/,or=/^(?:focusinfocus|focusoutblur)$/,sr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,k,h,s,l,o,d,g,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){if(typeof i!==b&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),t=(t||"").match(c)||[""],k=t.length;k--;)w=sr.exec(t[k])||[],o=g=w[1],d=(w[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,d,y)!==!1||n.addEventListener&&n.addEventListener(o,y,!1)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,h):l.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var p,k,h,v,w,s,l,a,o,b,d,y=r.hasData(n)&&r.get(n);if(y&&(v=y.events)){for(t=(t||"").match(c)||[""],w=t.length;w--;)if(h=sr.exec(t[w])||[],o=d=h[1],b=(h[2]||"").split(".").sort(),o){for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],h=h[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=p=a.length;p--;)s=a[p],!e&&d!==s.origType||u&&u.guid!==s.guid||h&&!h.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(p,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,y.handle)!==!1||i.removeEvent(n,o,y.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[w],u,f,!0);i.isEmptyObject(v)&&(delete y.handle,r.remove(n,"events"))}},trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=ii.call(t,"type")?t.type:t,y=ii.call(t,"namespace")?t.namespace.split("."):[];if(s=c=e=e||u,3!==e.nodeType&&8!==e.nodeType&&!or.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),f=null==f?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,or.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&i.acceptData(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||l._default&&l._default.apply(p.pop(),f)!==!1||!i.acceptData(e)||a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=void 0,c&&(e[a]=c)),t.result}},dispatch:function(n){n=i.event.fix(n);var o,s,e,u,t,h=[],c=a.call(arguments),l=(r.get(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,l),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(t=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(t.namespace))&&(n.handleObj=t,n.data=t.data,e=((i.event.special[t.origType]||{}).handle||t.handler).apply(u.elem,c),void 0!==e&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,t){var e,u,f,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(!n.button||"click"!==n.type))for(;r!==this;r=r.parentNode||this)if(r.disabled!==!0||"click"!==n.type){for(u=[],e=0;s>e;e++)o=t[e],f=o.selector+" ",void 0===u[f]&&(u[f]=o.needsContext?i(f,this).index(r)>=0:i.find(f,this,null,[r]).length),u[f]&&u.push(o);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var e,i,r,f=t.button;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,i=e.documentElement,r=e.body,n.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),n.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},fix:function(n){if(n[i.expando])return n;var f,e,o,r=n.type,s=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=lf.test(r)?this.mouseHooks:cf.test(r)?this.keyHooks:{}),o=t.props?this.props.concat(t.props):this.props,n=new i.Event(s),f=o.length;f--;)e=o[f],n[e]=s[e];return n.target||(n.target=u),3===n.target.nodeType&&(n.target=n.target.parentNode),t.filter?t.filter(n,s):n},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==hr()&&this.focus)return(this.focus(),!1)},delegateType:"focusin"},blur:{trigger:function(){if(this===hr()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i.nodeName(this,"input"))return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?lt:k):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=lt;n&&n.preventDefault&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=lt;n&&n.stopPropagation&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=lt;n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});f.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});i.fn.extend({on:function(n,t,r,u,f){var e,o;if("object"==typeof n){"string"!=typeof t&&(r=r||t,t=void 0);for(o in n)this.on(o,t,r,n[o],f);return this}if(null==r&&null==u?(u=t,r=t=void 0):null==u&&("string"==typeof t?(u=r,r=void 0):(u=r,r=t,t=void 0)),u===!1)u=k;else if(!u)return this;return 1===f&&(e=u,u=function(n){return i().off(n),e.apply(this,arguments)},u.guid=e.guid||(e.guid=i.guid++)),this.each(function(){i.event.add(this,n,u,r,t)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=void 0),r===!1&&(r=k),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var cr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,lr=/<([\w:]+)/,af=/<|&#?\w+;/,vf=/<(?:script|style|link)/i,yf=/checked\s*(?:[^=]|=\s*.checked.)/i,ar=/^$|\/(?:java|ecma)script/i,pf=/^true\/(.*)/,wf=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,h={option:[1,"<select multiple='multiple'>","<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};h.optgroup=h.option;h.tbody=h.tfoot=h.colgroup=h.caption=h.thead;h.th=h.td;i.extend({clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!(f.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=o(h),s=o(n),u=0,c=s.length;c>u;u++)df(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;c>u;u++)yr(s[u],e[u]);else yr(n,h);return e=o(h,"script"),e.length>0&&ei(e,!l&&o(n,"script")),h},buildFragment:function(n,t,r,u){for(var f,e,y,l,p,a,s=t.createDocumentFragment(),v=[],c=0,w=n.length;w>c;c++)if(f=n[c],f||0===f)if("object"===i.type(f))i.merge(v,f.nodeType?[f]:f);else if(af.test(f)){for(e=e||s.appendChild(t.createElement("div")),y=(lr.exec(f)||["",""])[1].toLowerCase(),l=h[y]||h._default,e.innerHTML=l[1]+f.replace(cr,"<$1><\/$2>")+l[2],a=l[0];a--;)e=e.lastChild;i.merge(v,e.childNodes);e=s.firstChild;e.textContent=""}else v.push(t.createTextNode(f));for(s.textContent="",c=0;f=v[c++];)if((!u||-1===i.inArray(f,u))&&(p=i.contains(f.ownerDocument,f),e=o(s.appendChild(f),"script"),p&&ei(e),r))for(a=0;f=e[a++];)ar.test(f.type||"")&&r.push(f);return s},cleanData:function(n){for(var f,t,o,u,h=i.event.special,s=0;void 0!==(t=n[s]);s++){if(i.acceptData(t)&&(u=t[r.expando],u&&(f=r.cache[u]))){if(f.events)for(o in f.events)h[o]?i.event.remove(t,o):i.removeEvent(t,o,f.handle);r.cache[u]&&delete r.cache[u]}delete e.cache[t[e.expando]]}}});i.fn.extend({text:function(n){return l(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=vr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=vr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,f=n?i.filter(n,this):this,u=0;null!=(r=f[u]);u++)t||1!==r.nodeType||i.cleanData(o(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&ei(o(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return l(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!vf.test(n)&&!h[(lr.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(cr,"<$1><\/$2>");try{for(;u>r;r++)t=this[r]||{},1===t.nodeType&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=arguments[0];return this.domManip(arguments,function(t){n=this.parentNode;i.cleanData(o(this));n&&n.replaceChild(t,this)}),n&&(n.length||n.nodeType)?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t){n=bi.apply([],n);var h,v,s,c,u,y,e=0,l=this.length,w=this,b=l-1,a=n[0],p=i.isFunction(a);if(p||l>1&&"string"==typeof a&&!f.checkClone&&yf.test(a))return this.each(function(i){var r=w.eq(i);p&&(n[0]=a.call(this,i,r.html()));r.domManip(n,t)});if(l&&(h=i.buildFragment(n,this[0].ownerDocument,!1,this),v=h.firstChild,1===h.childNodes.length&&(h=v),v)){for(s=i.map(o(h,"script"),bf),c=s.length;l>e;e++)u=h,e!==b&&(u=i.clone(u,!0,!0),c&&i.merge(s,o(u,"script"))),t.call(this[e],u,e);if(c)for(y=s[s.length-1].ownerDocument,i.map(s,kf),e=0;c>e;e++)u=s[e],ar.test(u.type||"")&&!r.access(u,"globalEval")&&i.contains(y,u)&&(u.src?i._evalUrl&&i._evalUrl(u.src):i.globalEval(u.textContent.replace(wf,"")))}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ti.apply(f,u.get());return this.pushStack(f)}});oi={};var wr=/^margin/,hi=new RegExp("^("+ct+")(?!px)[a-z%]+$","i"),vt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):n.getComputedStyle(t,null)};!function(){var s,o,e=u.documentElement,r=u.createElement("div"),t=u.createElement("div");if(t.style){t.style.backgroundClip="content-box";t.cloneNode(!0).style.backgroundClip="";f.clearCloneStyle="content-box"===t.style.backgroundClip;r.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute";r.appendChild(t);function h(){t.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";t.innerHTML="";e.appendChild(r);var i=n.getComputedStyle(t,null);s="1%"!==i.top;o="4px"===i.width;e.removeChild(r)}n.getComputedStyle&&i.extend(f,{pixelPosition:function(){return h(),s},boxSizingReliable:function(){return null==o&&h(),o},reliableMarginRight:function(){var f,i=t.appendChild(u.createElement("div"));return i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",e.appendChild(r),f=!parseFloat(n.getComputedStyle(i,null).marginRight),e.removeChild(r),t.removeChild(i),f}})}}();i.swap=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};var gf=/^(none|table(?!-c[ea]).+)/,ne=new RegExp("^("+ct+")(.*)$","i"),te=new RegExp("^([+-])=("+ct+")","i"),ie={position:"absolute",visibility:"hidden",display:"block"},kr={letterSpacing:"0",fontWeight:"400"},dr=["Webkit","O","Moz","ms"];i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=it(n,"opacity");return""===i?"1":i}}}},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(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,h,e,s=i.camelCase(t),c=n.style;return t=i.cssProps[s]||(i.cssProps[s]=gr(c,s)),e=i.cssHooks[t]||i.cssHooks[s],void 0===r?e&&"get"in e&&void 0!==(o=e.get(n,!1,u))?o:c[t]:(h=typeof r,"string"===h&&(o=te.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),h="number"),null!=r&&r===r&&("number"!==h||i.cssNumber[s]||(r+="px"),f.clearCloneStyle||""!==r||0!==t.indexOf("background")||(c[t]="inherit"),e&&"set"in e&&void 0===(r=e.set(n,r,u))||(c[t]=r)),void 0)}},css:function(n,t,r,u){var f,s,e,o=i.camelCase(t);return t=i.cssProps[o]||(i.cssProps[o]=gr(n.style,o)),e=i.cssHooks[t]||i.cssHooks[o],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=it(n,t,u)),"normal"===f&&t in kr&&(f=kr[t]),""===r||r?(s=parseFloat(f),r===!0||i.isNumeric(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return gf.test(i.css(n,"display"))&&0===n.offsetWidth?i.swap(n,ie,function(){return iu(n,t,u)}):iu(n,t,u)},set:function(n,r,u){var f=u&&vt(n);return nu(n,r,u?tu(n,t,u,"border-box"===i.css(n,"boxSizing",!1,f),f):0)}}});i.cssHooks.marginRight=br(f.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},it,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};wr.test(n)||(i.cssHooks[n+t].set=nu)});i.fn.extend({css:function(n,t){return l(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=vt(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return ru(this,!0)},hide:function(){return ru(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){tt(this)?i(this).show():i(this).hide()})}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.fx=s.prototype.init;i.fx.step={};var d,yt,re=/^(?:toggle|show|hide)$/,uu=new RegExp("^(?:([+-])=|)("+ct+")([a-z%]*)$","i"),ue=/queueHooks$/,pt=[fe],rt={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=uu.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&uu.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};i.Animation=i.extend(ou,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],rt[r]=rt[r]||[],rt[r].unshift(t)},prefilter:function(n,t){t?pt.unshift(n):pt.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(tt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=ou(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&ue.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;s>t;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(wt(t,!0),n,i,u)}});i.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(d=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();d=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){yt||(yt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(yt);yt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=""!==n.value;f.optSelected=i.selected;t.disabled=!0;f.optDisabled=!i.disabled;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue="t"===n.value}();g=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return l(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return typeof n.getAttribute===b?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?su:oe)),void 0===r?u&&"get"in u&&null!==(f=u.get(n,t))?f:(f=i.find.attr(n,t),null==f?void 0:f):null!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):void i.removeAttr(n,t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(c);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)&&(n[u]=!1),n.removeAttribute(r)},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&"radio"===t&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}}});su={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=g[t]||i.find.attr;g[t]=function(n,t,i){var u,f;return i||(f=g[t],g[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,g[t]=f),u}});hu=/^(?:input|select|textarea|button)$/i;i.fn.extend({prop:function(n,t){return l(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,r){var f,u,o,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return o=1!==e||!i.isXMLDoc(n),o&&(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){return n.hasAttribute("tabindex")||hu.test(n.nodeName)||n.href?n.tabIndex:-1}}}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});bt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,h="string"==typeof n&&n,e=0,l=this.length;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(h)for(o=(n||"").match(c)||[];l>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(bt," "):" ")){for(s=0;u=o[s++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");f=i.trim(r);t.className!==f&&(t.className=f)}return this},removeClass:function(n){var o,t,r,u,s,f,h=0===arguments.length||"string"==typeof n&&n,e=0,l=this.length;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(h)for(o=(n||"").match(c)||[];l>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(bt," "):"")){for(s=0;u=o[s++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");f=n?i.trim(r):"";t.className!==f&&(t.className=f)}return this},toggleClass:function(n,t){var u=typeof n;return"boolean"==typeof t&&"string"===u?t?this.addClass(n):this.removeClass(n):this.each(i.isFunction(n)?function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}:function(){if("string"===u)for(var t,e=0,f=i(this),o=n.match(c)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else(u===b||"boolean"===u)&&(this.className&&r.set(this,"__className__",this.className),this.className=this.className||n===!1?"":r.get(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(bt," ").indexOf(i)>=0)return!0;return!1}});cu=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(cu,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.trim(i.text(n))}},select:{get:function(n){for(var o,t,s=n.options,r=n.selectedIndex,u="select-one"===n.type||0>r,h=u?null:[],c=u?r+1:s.length,e=0>r?c:u?r:0;c>e;e++)if(t=s[e],!(!t.selected&&e!==r||(f.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),u)return o;h.push(o)}return h},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(r.value,e)>=0)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};f.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});kt=i.now();dt=/\?/;i.parseJSON=function(n){return JSON.parse(n+"")};i.parseXML=function(n){var t,r;if(!n||"string"!=typeof n)return null;try{r=new DOMParser;t=r.parseFromString(n,"text/xml")}catch(u){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+n),t};var se=/#.*$/,lu=/([?&])_=[^&]*/,he=/^(.*?):[ \t]*([^\r\n]*)$/gm,ce=/^(?:GET|HEAD)$/,le=/^\/\//,au=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,vu={},ci={},yu="*/".concat("*"),li=n.location.href,nt=au.exec(li.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:li,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(nt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yu,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ai(ai(n,i.ajaxSettings),t):ai(i.ajaxSettings,n)},ajaxPrefilter:pu(vu),ajaxTransport:pu(ci),ajax:function(n,t){function p(n,t,s,h){var v,it,tt,p,nt,c=t;2!==e&&(e=2,b&&clearTimeout(b),l=void 0,w=h||"",u.readyState=n>0?4:0,v=n>=200&&300>n||304===n,s&&(p=ae(r,u,s)),p=ve(r,p,u,v),v?(r.ifModified&&(nt=u.getResponseHeader("Last-Modified"),nt&&(i.lastModified[f]=nt),nt=u.getResponseHeader("etag"),nt&&(i.etag[f]=nt)),204===n||"HEAD"===r.type?c="nocontent":304===n?c="notmodified":(c=p.state,it=p.data,tt=p.error,v=!tt)):(tt=c,(n||!c)&&(c="error",0>n&&(n=0))),u.status=n,u.statusText=(t||c)+"",v?d.resolveWith(o,[it,c,u]):d.rejectWith(o,[u,c,tt]),u.statusCode(y),y=void 0,a&&k.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:tt]),g.fireWith(o,[u,c]),a&&(k.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(t=n,n=void 0);t=t||{};var l,f,w,v,b,s,a,h,r=i.ajaxSetup({},t),o=r.context||r,k=r.context&&(o.nodeType||o.jquery)?i(o):i.event,d=i.Deferred(),g=i.Callbacks("once memory"),y=r.statusCode||{},tt={},it={},e=0,rt="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(2===e){if(!v)for(v={};t=he.exec(w);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===e?w:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=it[i]=it[i]||n,tt[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>e)for(t in n)y[t]=[y[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||rt;return l&&l.abort(t),p(0,t),this}};if(d.promise(u).complete=g.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||li)+"").replace(se,"").replace(le,nt[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(c)||[""],null==r.crossDomain&&(s=au.exec(r.url.toLowerCase()),r.crossDomain=!(!s||s[1]===nt[1]&&s[2]===nt[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(nt[3]||("http:"===nt[1]?"80":"443")))),r.data&&r.processData&&"string"!=typeof r.data&&(r.data=i.param(r.data,r.traditional)),wu(vu,r,t,u),2===e)return u;a=i.event&&r.global;a&&0==i.active++&&i.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!ce.test(r.type);f=r.url;r.hasContent||(r.data&&(f=r.url+=(dt.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=lu.test(f)?f.replace(lu,"$1_="+kt++):f+(dt.test(f)?"&":"?")+"_="+kt++));r.ifModified&&(i.lastModified[f]&&u.setRequestHeader("If-Modified-Since",i.lastModified[f]),i.etag[f]&&u.setRequestHeader("If-None-Match",i.etag[f]));(r.data&&r.hasContent&&r.contentType!==!1||t.contentType)&&u.setRequestHeader("Content-Type",r.contentType);u.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+yu+"; q=0.01":""):r.accepts["*"]);for(h in r.headers)u.setRequestHeader(h,r.headers[h]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||2===e))return u.abort();rt="abort";for(h in{success:1,error:1,complete:1})u[h](r[h]);if(l=wu(ci,r,t,u)){u.readyState=1;a&&k.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(b=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;l.send(tt,p)}catch(ut){if(!(2>e))throw ut;p(-1,ut)}}else p(-1,"No Transport");return u},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){var t;return i.isFunction(n)?this.each(function(t){i(this).wrapAll(n.call(this,t))}):(this[0]&&(t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this)},wrapInner:function(n){return this.each(i.isFunction(n)?function(t){i(this).wrapInner(n.call(this,t))}:function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var ye=/%20/g,pe=/\[\]$/,bu=/\r?\n/g,we=/^(?:submit|button|image|reset|file)$/i,be=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)vi(r,n[r],t,f);return u.join("&").replace(ye,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&be.test(this.nodeName)&&!we.test(n)&&(this.checked||!er.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(bu,"\r\n")}}):{name:t.name,value:r.replace(bu,"\r\n")}}).get()}});i.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(n){}};var ke=0,gt={},de={0:200,1223:204},ut=i.ajaxSettings.xhr();return n.attachEvent&&n.attachEvent("onunload",function(){for(var n in gt)gt[n]()}),f.cors=!!ut&&"withCredentials"in ut,f.ajax=ut=!!ut,i.ajaxTransport(function(n){var t;if(f.cors||ut&&!n.crossDomain)return{send:function(i,r){var f,u=n.xhr(),e=++ke;if(u.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(f in n.xhrFields)u[f]=n.xhrFields[f];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType);n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(f in i)u.setRequestHeader(f,i[f]);t=function(n){return function(){t&&(delete gt[e],t=u.onload=u.onerror=null,"abort"===n?u.abort():"error"===n?r(u.status,u.statusText):r(de[u.status]||u.status,u.statusText,"string"==typeof u.responseText?{text:u.responseText}:void 0,u.getAllResponseHeaders()))}};u.onload=t();u.onerror=t("error");t=gt[e]=t("abort");try{u.send(n.hasContent&&n.data||null)}catch(o){if(t)throw o;}},abort:function(){t&&t()}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),yi=[],ni=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=yi.pop()||i.expando+"_"+kt++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(ni.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ni,"$1"+f):t.jsonp!==!1&&(t.url+=(dt.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return e||i.error(f+" was not called"),e[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){e=arguments},u.always(function(){n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,yi.push(f));e&&i.isFunction(o)&&o(e[0]);e=o=void 0}),"script")}),i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1);t=t||u;var f=gi.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},pi=i.fn.load,i.fn.load=function(n,t,r){if("string"!=typeof n&&pi)return pi.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>=0&&(u=i.trim(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),f.length>0&&i.ajax({url:n,type:o,dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).complete(r&&function(n,t){f.each(r,s||[n.responseText,t,n])}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},wi=n.document.documentElement,i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,u));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,f,t=this[0],u={top:0,left:0},e=t&&t.ownerDocument;if(e)return r=e.documentElement,i.contains(r,t)?(typeof t.getBoundingClientRect!==b&&(u=t.getBoundingClientRect()),f=ku(e),{top:u.top+f.pageYOffset-r.clientTop,left:u.left+f.pageXOffset-r.clientLeft}):u},position:function(){if(this[0]){var n,r,u=this[0],t={top:0,left:0};return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||wi;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||wi})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var u="pageYOffset"===r;i.fn[t]=function(i){return l(this,function(t,i,f){var e=ku(t);return void 0===f?e?e[r]:t[i]:void(e?e.scrollTo(u?n.pageXOffset:f,u?f:n.pageYOffset):t[i]=f)},t,i,arguments.length,null)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=br(f.pixelPosition,function(n,r){if(r)return(r=it(n,t),hi.test(r)?i(n).position()[t]+"px":r)})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return l(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),du=n.jQuery,gu=n.$,i.noConflict=function(t){return n.$===i&&(n.$=gu),t&&n.jQuery===i&&(n.jQuery=du),i},typeof t===b&&(n.jQuery=n.$=i),i}),function(n){"use strict";function i(t){var i=n("");try{i=n(t).clone()}catch(r){i=n("<span />").html(t)}return i}function r(t){var i=n.Deferred();try{setTimeout(function(){t.focus();try{t.document.execCommand("print",!1,null)||t.print()}catch(n){t.print()}t.close();i.resolve()},250)}catch(r){i.reject(r)}return i}function t(n){var t=window.open();return t.document.write(n),t.document.close(),r(t)}function u(n){return!!(typeof Node=="object"?n instanceof Node:n&&typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.nodeName=="string")}n.print=n.fn.print=function(){var f,h,a=this,w,c,o,l,v,p,s,y;a instanceof n&&(a=a.get(0));u(a)?(h=n(a),arguments.length>0&&(f=arguments[0])):arguments.length>0?(h=n(arguments[0]),u(h[0])?arguments.length>1&&(f=arguments[1]):(f=arguments[0],h=n("html"))):h=n("html");w={globalStyles:!0,mediaPrint:!1,stylesheet:null,noPrintSelector:".no-print",iframe:!0,append:null,prepend:null,manuallyCopyFormValues:!0,deferred:n.Deferred()};f=n.extend({},w,f||{});c=n("");f.globalStyles?c=n("style, link, meta, title"):f.mediaPrint&&(c=n("link[media=print]"));f.stylesheet&&(c=n.merge(c,n('<link rel="stylesheet" href="'+f.stylesheet+'">')));o=h.clone();o=n("<span/>").append(o);o.find(f.noPrintSelector).remove();o.append(c.clone());o.append(i(f.append));o.prepend(i(f.prepend));f.manuallyCopyFormValues&&o.find("input, select, textarea").each(function(){var t=n(this);t.is("[type='radio']")||t.is("[type='checkbox']")?t.prop("checked")&&t.attr("checked","checked"):t.is("select")?t.find(":selected").attr("selected","selected"):t.attr("value",t.val())});l=o.html();try{f.deferred.notify("generated_markup",l,o)}catch(b){console.warn("Error notifying deferred",b)}if(o.remove(),f.iframe)try{v=n(f.iframe+"");p=v.length;p===0&&(v=n('<iframe height="0" width="0" border="0" wmode="Opaque"/>').prependTo("body").css({position:"absolute",top:-999,left:-999}));s=v.get(0);s=s.contentWindow||s.contentDocument||s;y=s.document||s.contentDocument||s;y.open();y.write(l);y.close();r(s).done(function(){setTimeout(function(){p===0&&v.remove()},100)}).fail(function(){console.error("Failed to print from iframe",e.stack,e.message);t(l)}).always(function(){try{f.deferred.resolve()}catch(n){console.warn("Error notifying deferred",n)}})}catch(e){console.error("Failed to print from iframe",e.stack,e.message);t(l).always(function(){try{f.deferred.resolve()}catch(n){console.warn("Error notifying deferred",n)}})}else t(l).always(function(){try{f.deferred.resolve()}catch(n){console.warn("Error notifying deferred",n)}});return this}}(jQuery),function(n){"use strict";function lv(n){if(o(n))r(n.objectMaxDepth)&&(af.objectMaxDepth=vf(n.objectMaxDepth)?n.objectMaxDepth:NaN);else return af}function vf(n){return g(n)&&n>0}function l(n,t){return t=t||Error,function(){var e=arguments[0],o=arguments[1],r="["+(n?n+":":"")+e+"] ",u=bi(arguments,2).map(function(n){return eh(n,af.objectMaxDepth)}),f,i;for(r+=o.replace(/\{\d+\}/g,function(n){var t=+n.slice(1,-1);return t<u.length?u[t]:n}),r+="\nhttp://errors.angularjs.org/1.6.5/"+(n?n+"/":"")+e,i=0,f="?";i<u.length;i++,f="&")r+=f+"p"+i+"="+encodeURIComponent(u[i]);return new t(r)}}function gt(n){if(n==null||sr(n))return!1;if(c(n)||h(n)||f&&n instanceof f)return!0;var t="length"in Object(n)&&n.length;return g(t)&&(t>=0&&(t-1 in n||n instanceof Array)||typeof n.item=="function")}function t(n,i,r){var u,f,o;if(n)if(e(n))for(u in n)u!=="prototype"&&u!=="length"&&u!=="name"&&n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else if(c(n)||gt(n))for(o=typeof n!="object",u=0,f=n.length;u<f;u++)(o||u in n)&&i.call(r,n[u],u,n);else if(n.forEach&&n.forEach!==t)n.forEach(i,r,n);else if(vs(n))for(u in n)i.call(r,n[u],u,n);else if(typeof n.hasOwnProperty=="function")for(u in n)n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else for(u in n)lt.call(n,u)&&i.call(r,n[u],u,n);return n}function ls(n,t,i){for(var r=Object.keys(n).sort(),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function pf(n){return function(t,i){n(i,t)}}function ou(){return++bv}function as(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function wf(n,t,i){for(var f,l,s,a,u,r,v=n.$$hashKey,h=0,y=t.length;h<y;++h)if(f=t[h],o(f)||e(f))for(l=Object.keys(f),s=0,a=l.length;s<a;s++)u=l[s],r=f[u],i&&o(r)?ft(r)?n[u]=new Date(r.valueOf()):or(r)?n[u]=new RegExp(r):r.nodeName?n[u]=r.cloneNode(!0):ne(r)?n[u]=r.clone():(o(n[u])||(n[u]=c(r)?[]:{}),wf(n[u],[r],!0)):n[u]=r;return as(n,v),n}function v(n){return wf(n,wi.call(arguments,1),!1)}function kv(n){return wf(n,wi.call(arguments,1),!0)}function tt(n){return parseInt(n,10)}function bf(n,t){return v(Object.create(n),t)}function s(){}function er(n){return n}function ot(n){return function(){return n}}function kf(n){return e(n.toString)&&n.toString!==rt}function u(n){return typeof n=="undefined"}function r(n){return typeof n!="undefined"}function o(n){return n!==null&&typeof n=="object"}function vs(n){return n!==null&&typeof n=="object"&&!cs(n)}function h(n){return typeof n=="string"}function g(n){return typeof n=="number"}function ft(n){return rt.call(n)==="[object Date]"}function df(n){var t=rt.call(n);switch(t){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return n instanceof Error}}function e(n){return typeof n=="function"}function or(n){return rt.call(n)==="[object RegExp]"}function sr(n){return n&&n.window===n}function hr(n){return n&&n.$evalAsync&&n.$watch}function dv(n){return rt.call(n)==="[object File]"}function gv(n){return rt.call(n)==="[object FormData]"}function ny(n){return rt.call(n)==="[object Blob]"}function ni(n){return typeof n=="boolean"}function su(n){return n&&e(n.then)}function ty(n){return n&&g(n.length)&&ys.test(rt.call(n))}function iy(n){return rt.call(n)==="[object ArrayBuffer]"}function ne(n){return!!(n&&(n.nodeName||n.prop&&n.attr&&n.find))}function ry(n){for(var i={},r=n.split(","),t=0;t<r.length;t++)i[r[t]]=!0;return i}function vt(n){return a(n.nodeName||n[0]&&n[0].nodeName)}function te(n,t){return Array.prototype.indexOf.call(n,t)!==-1}function cr(n,t){var i=n.indexOf(t);return i>=0&&n.splice(i,1),i}function oi(n,i,r){function h(n,t,i){var e,r,f,o;if(i--,i<0)return"...";if(e=t.$$hashKey,c(n))for(f=0,o=n.length;f<o;f++)t.push(u(n[f],i));else if(vs(n))for(r in n)t[r]=u(n[r],i);else if(n&&typeof n.hasOwnProperty=="function")for(r in n)n.hasOwnProperty(r)&&(t[r]=u(n[r],i));else for(r in n)lt.call(n,r)&&(t[r]=u(n[r],i));return as(t,e),t}function u(n,t){var r,u,i;if(!o(n))return n;if(r=f.indexOf(n),r!==-1)return s[r];if(sr(n)||hr(n))throw ei("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");return u=!1,i=l(n),i===undefined&&(i=c(n)?[]:Object.create(cs(n)),u=!0),f.push(n),s.push(i),u?h(n,i,t):i}function l(n){var t,i;switch(rt.call(n)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new n.constructor(u(n.buffer),n.byteOffset,n.length);case"[object ArrayBuffer]":return n.slice?n.slice(0):(t=new ArrayBuffer(n.byteLength),new Uint8Array(t).set(new Uint8Array(n)),t);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new n.constructor(n.valueOf());case"[object RegExp]":return i=new RegExp(n.source,n.toString().match(/[^/]*$/)[0]),i.lastIndex=n.lastIndex,i;case"[object Blob]":return new n.constructor([n],{type:n.type})}if(e(n.cloneNode))return n.cloneNode(!0)}var f=[],s=[];if(r=vf(r)?r:NaN,i){if(ty(i)||iy(i))throw ei("cpta","Can't copy! TypedArray destination cannot be mutated.");if(n===i)throw ei("cpi","Can't copy! Source and destination are identical.");return c(i)?i.length=0:t(i,function(n,t){t!=="$$hashKey"&&delete i[t]}),f.push(n),s.push(i),h(n,i,r)}return u(n,r)}function ie(n,t){return n===t||n!==n&&t!==t}function st(n,t){if(n===t)return!0;if(n===null||t===null)return!1;if(n!==n&&t!==t)return!0;var f=typeof n,s=typeof t,o,i,u;if(f===s&&f==="object")if(c(n)){if(!c(t))return!1;if((o=n.length)===t.length){for(i=0;i<o;i++)if(!st(n[i],t[i]))return!1;return!0}}else{if(ft(n))return ft(t)?ie(n.getTime(),t.getTime()):!1;if(or(n))return or(t)?n.toString()===t.toString():!1;if(hr(n)||hr(t)||sr(n)||sr(t)||c(t)||ft(t)||or(t))return!1;u=p();for(i in n)if(i.charAt(0)!=="$"&&!e(n[i])){if(!st(n[i],t[i]))return!1;u[i]=!0}for(i in t)if(!(i in u)&&i.charAt(0)!=="$"&&r(t[i])&&!e(t[i]))return!1;return!0}return!1}function ar(n,t,i){return n.concat(wi.call(t,i))}function bi(n,t){return wi.call(n,t||0)}function ki(n,t){var i=arguments.length>2?bi(arguments,2):[];return!e(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,ar(i,arguments,0)):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function ps(t,i){var r=i;return typeof t=="string"&&t.charAt(0)==="$"&&t.charAt(1)==="$"?r=undefined:sr(i)?r="$WINDOW":i&&n.document===i?r="$DOCUMENT":hr(i)&&(r="$SCOPE"),r}function vr(n,t){return u(n)?undefined:(g(t)||(t=t?2:null),JSON.stringify(n,ps,t))}function ws(n){return h(n)?JSON.parse(n):n}function ks(n,t){n=n.replace(bs,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return it(i)?t:i}function uy(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function re(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset(),u=ks(t,r);return uy(n,i*(u-r))}function yt(n){n=f(n).clone().empty();var t=f("<div>").append(n).html();try{return n[0].nodeType===ii?a(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(n,t){return"<"+a(t)})}catch(i){return a(t)}}function ds(n){try{return decodeURIComponent(n)}catch(t){}}function gs(n){var i={};return t((n||"").split("&"),function(n){var f,t,u;n&&(t=n=n.replace(/\+/g,"%20"),f=n.indexOf("="),f!==-1&&(t=n.substring(0,f),u=n.substring(f+1)),t=ds(t),r(t)&&(u=r(u)?ds(u):!0,lt.call(i,t)?c(i[t])?i[t].push(u):i[t]=[i[t],u]:i[t]=u))}),i}function ue(n){var i=[];return t(n,function(n,r){c(n)?t(n,function(n){i.push(et(r,!0)+(n===!0?"":"="+et(n,!0)))}):i.push(et(r,!0)+(n===!0?"":"="+et(n,!0)))}),i.length?i.join("&"):""}function yr(n){return et(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function et(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function fy(n,t){for(var i,u=si.length,r=0;r<u;++r)if(i=si[r]+t,h(i=n.getAttribute(i)))return i;return null}function ey(t){var i=t.currentScript,r,u;return i?(i instanceof n.HTMLScriptElement||i instanceof n.SVGScriptElement)?(r=i.attributes,u=[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")],u.every(function(n){if(!n)return!0;if(!n.value)return!1;var i=t.createElement("a");if(i.href=n.value,t.location.origin===i.origin)return!0;switch(i.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})):!1:!0}function oy(i,r){var u,f,e={};if(t(si,function(n){var t=n+"app";!u&&i.hasAttribute&&i.hasAttribute(t)&&(u=i,f=i.getAttribute(t))}),t(si,function(n){var r=n+"app",t;!u&&(t=i.querySelector("["+r.replace(":","\\:")+"]"))&&(u=t,f=t.getAttribute(r))}),u){if(!nh){n.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");return}e.strictDi=fy(u,"strict-di")!==null;r(u,f?[f]:[],e)}}function th(i,r,u){var s;o(u)||(u={});s={strictDi:!1};u=v(s,u);var h=function(){var e,t;if(i=f(i),i.injector()){e=i[0]===n.document?"document":yt(i);throw ei("btstrpd","App already bootstrapped with this element '{0}'",e.replace(/</,"&lt;").replace(/>/,"&gt;"));}return r=r||[],r.unshift(["$provide",function(n){n.value("$rootElement",i)}]),u.debugInfoEnabled&&r.push(["$compileProvider",function(n){n.debugInfoEnabled(!0)}]),r.unshift("ng"),t=kr(r,u.strictDi),t.invoke(["$rootScope","$rootElement","$compile","$injector",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),t},c=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;if(n&&c.test(n.name)&&(u.debugInfoEnabled=!0,n.name=n.name.replace(c,"")),n&&!l.test(n.name))return h();n.name=n.name.replace(l,"");ut.resumeBootstrap=function(n){return t(n,function(n){r.push(n)}),h()};e(ut.resumeDeferredBootstrap)&&ut.resumeDeferredBootstrap()}function sy(){n.name="NG_ENABLE_DEBUG_INFO!"+n.name;n.location.reload()}function hy(n){var t=ut.element(n).injector();if(!t)throw ei("test","no injector found for element argument to getTestability");return t.get("$$testability")}function rh(n,t){return t=t||"_",n.replace(ih,function(n,i){return(i?t:"")+n.toLowerCase()})}function cy(){var i,t;fe||(t=lr(),bt=u(t)?n.jQuery:t?n[t]:undefined,bt&&bt.fn.on?(f=bt,v(bt.fn,{scope:hi.scope,isolateScope:hi.isolateScope,controller:hi.controller,injector:hi.injector,inheritedData:hi.inheritedData}),i=bt.cleanData,bt.cleanData=function(n){for(var t,u=0,r;(r=n[u])!=null;u++)t=bt._data(r,"events"),t&&t.$destroy&&bt(r).triggerHandler("$destroy");i(n)}):f=w,ut.element=f,fe=!0)}function pr(n,t,i){if(!n)throw ei("areq","Argument '{0}' is {1}",t||"?",i||"required");return n}function hu(n,t,i){return i&&c(n)&&(n=n[n.length-1]),pr(e(n),t,"not a function, got "+(n&&typeof n=="object"?n.constructor.name||"Object":typeof n)),n}function di(n,t){if(n==="hasOwnProperty")throw ei("badname","hasOwnProperty is not a valid {0} name",t);}function uh(n,t,i){var r;if(!t)return n;var u=t.split("."),f,o=n,s=u.length;for(r=0;r<s;r++)f=u[r],n&&(n=(o=n)[f]);return!i&&e(n)?ki(o,n):n}function cu(n){for(var t=n[0],u=n[n.length-1],i,r=1;t!==u&&(t=t.nextSibling);r++)(i||n[r]!==t)&&(i||(i=f(wi.call(n,0,r))),i.push(t));return i||n}function p(){return Object.create(null)}function ee(n){if(n==null)return"";switch(typeof n){case"string":break;case"number":n=""+n;break;default:n=!kf(n)||c(n)||ft(n)?vr(n):n.toString()}return n}function ay(n){function t(n,t,i){return n[t]||(n[t]=i())}var f=l("$injector"),u=l("ng"),i=t(n,"angular",Object);return i.$$minErr=i.$$minErr||l,t(i,"module",function(){var n={};return function(i,s,h){var c={},l=function(n,t){if(n==="hasOwnProperty")throw u("badname","hasOwnProperty is not a valid {0} name",t);};return l(i,"module"),s&&n.hasOwnProperty(i)&&(n[i]=null),t(n,i,function(){function v(n,i,r,u){return u||(u=t),function(){return u[r||"push"]([n,i,arguments]),a}}function n(n,r,u){return u||(u=t),function(t,f){return f&&e(f)&&(f.$$moduleName=i),u.push([n,r,arguments]),a}}if(!s)throw f("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var t=[],l=[],y=[],p=v("$injector","invoke","push",l),a={_invokeQueue:t,_configBlocks:l,_runBlocks:y,info:function(n){if(r(n)){if(!o(n))throw u("aobj","Argument '{0}' must be an object","value");return c=n,this}return c},requires:s,name:i,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:v("$provide","value"),constant:v("$provide","constant","unshift"),decorator:n("$provide","decorator",l),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:p,run:function(n){return y.push(n),this}};return h&&p(h),a})}})}function pt(n,t){var i,u,r;if(c(n))for(t=t||[],i=0,u=n.length;i<u;i++)t[i]=n[i];else if(o(n)){t=t||{};for(r in n)r.charAt(0)==="$"&&r.charAt(1)==="$"||(t[r]=n[r])}return t||n}function vy(n,t){var i=[];return vf(t)&&(n=ut.copy(n,null,t)),JSON.stringify(n,function(n,t){if(t=ps(n,t),o(t)){if(i.indexOf(t)>=0)return"...";i.push(t)}return t})}function eh(n,t){return typeof n=="function"?n.toString().replace(/ \{[\s\S]*$/,""):u(n)?"undefined":typeof n!="string"?vy(n,t):n}function yy(i){v(i,{errorHandlingConfig:lv,bootstrap:th,copy:oi,extend:v,merge:kv,equals:st,element:f,forEach:t,injector:kr,noop:s,bind:ki,toJson:vr,fromJson:ws,identity:er,isUndefined:u,isDefined:r,isString:h,isFunction:e,isObject:o,isNumber:g,isElement:ne,isArray:c,version:oh,isDate:ft,lowercase:a,uppercase:fr,callbacks:{$$counter:0},getTestability:hy,reloadWithDebugInfo:sy,$$minErr:l,$$csp:ti,$$encodeUriSegment:yr,$$encodeUriQuery:et,$$stringify:ee});yf=ay(n);yf("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:ek});n.provider("$compile",tc).directive({a:ta,input:wa,textarea:wa,form:cd,script:wn,select:dn,option:gn,ngBind:eg,ngBindHtml:sg,ngBindTemplate:og,ngClass:cg,ngClassEven:ag,ngClassOdd:lg,ngCloak:vg,ngController:yg,ngForm:ld,ngHide:hn,ngIf:wg,ngInclude:bg,ngInit:dg,ngNonBindable:tn,ngPluralize:en,ngRepeat:on,ngShow:sn,ngStyle:cn,ngSwitch:ln,ngSwitchWhen:an,ngSwitchDefault:vn,ngOptions:fn,ngTransclude:pn,ngModel:tv,ngList:gg,ngChange:hg,pattern:sv,ngPattern:sv,required:ov,ngRequired:ov,minlength:cv,ngMinlength:cv,maxlength:hv,ngMaxlength:hv,ngValue:fg,ngModelOptions:rv}).directive({ngInclude:kg}).directive(ru).directive(ba);n.provider({$anchorScroll:dp,$animate:uw,$animateCss:ow,$$animateJs:iw,$$animateQueue:rw,$$AnimateRunner:ew,$$animateAsyncRun:fw,$browser:hw,$cacheFactory:cw,$controller:yw,$document:pw,$$isDocumentHidden:ww,$exceptionHandler:bw,$filter:cl,$$forceReflow:kw,$interpolate:sb,$interval:hb,$http:ub,$httpParamSerializer:tb,$httpParamSerializerJQLike:ib,$httpBackend:eb,$xhrFactory:fb,$jsonpCallbacks:cb,$location:pb,$log:wb,$parse:tk,$rootScope:fk,$q:ik,$$q:rk,$sce:ck,$sceDelegate:hk,$sniffer:lk,$templateCache:lw,$templateRequest:ak,$$testability:vk,$timeout:yk,$window:pk,$$rAF:uk,$$jqLite:cp,$$Map:lp,$$cookieReader:wk})}]).info({angularVersion:"1.6.5"})}function py(){return++sh}function ky(n){return au(n.replace(by,"ms-"))}function he(n,t){return t.toUpperCase()}function au(n){return n.replace(wy,he)}function ce(n){return!gy.test(n)}function le(n){var t=n.nodeType;return t===kt||!t||t===fh}function ip(n){for(var t in gi[n.ng339])return!0;return!1}function hh(n,i){var r,o,f,u=i.createDocumentFragment(),e=[],s;if(ce(n))e.push(i.createTextNode(n));else{for(r=u.appendChild(i.createElement("div")),o=(np.exec(n)||["",""])[1].toLowerCase(),f=ht[o]||ht._default,r.innerHTML=f[1]+n.replace(tp,"<$1><\/$2>")+f[2],s=f[0];s--;)r=r.lastChild;e=ar(e,r.childNodes);r=u.firstChild;r.textContent=""}return u.textContent="",u.innerHTML="",t(e,function(n){u.appendChild(n)}),u}function rp(t,i){i=i||n.document;var r;return(r=dy.exec(t))?[i.createElement(r[1])]:(r=hh(t,i))?r.childNodes:[]}function up(n,t){var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)}function w(n){if(n instanceof w)return n;var t;if(h(n)&&(n=y(n),t=!0),!(this instanceof w)){if(t&&n.charAt(0)!=="<")throw se("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new w(n)}t?pe(this,rp(n)):e(n)?yh(n):pe(this,n)}function ae(n){return n.cloneNode(!0)}function vu(n,t){!t&&le(n)&&f.cleanData([n]);n.querySelectorAll&&f.cleanData(n.querySelectorAll("*"))}function lh(n,i,u,f){var h;if(r(f))throw se("offargs","jqLite#off() does not support the `selector` argument");var e=yu(n),o=e&&e.events,s=e&&e.handle;if(s)if(i)h=function(t){var i=o[t];r(u)&&cr(i||[],u);r(u)&&i&&i.length>0||(n.removeEventListener(t,s),delete o[t])},t(i.split(" "),function(n){h(n);lu[n]&&h(lu[n])});else for(i in o)i!=="$destroy"&&n.removeEventListener(i,s),delete o[i]}function ve(n,t){var r=n.ng339,i=r&&gi[r];if(i){if(t){delete i.data[t];return}i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),lh(n));delete gi[r];n.ng339=undefined}}function yu(n,t){var i=n.ng339,r=i&&gi[i];return t&&!r&&(n.ng339=i=py(),r=gi[i]={events:{},data:{},handle:undefined}),r}function ye(n,t,i){if(le(n)){var f,e=r(i),s=!e&&t&&!o(t),c=!t,h=yu(n,!s),u=h&&h.data;if(e)u[au(t)]=i;else{if(c)return u;if(s)return u&&u[au(t)];for(f in t)u[au(f)]=t[f]}}}function pu(n,t){return n.getAttribute?(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function wu(n,i){i&&n.setAttribute&&t(i.split(" "),function(t){n.setAttribute("class",y((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+y(t)+" "," ")))})}function bu(n,i){if(i&&n.setAttribute){var r=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");t(i.split(" "),function(n){n=y(n);r.indexOf(" "+n+" ")===-1&&(r+=n+" ")});n.setAttribute("class",y(r))}}function pe(n,t){var i,r;if(t)if(t.nodeType)n[n.length++]=t;else if(i=t.length,typeof i=="number"&&t.window!==t){if(i)for(r=0;r<i;r++)n[n.length++]=t[r]}else n[n.length++]=t}function ah(n,t){return ku(n,"$"+(t||"ngController")+"Controller")}function ku(n,t,i){var e,u,o;for(n.nodeType===fh&&(n=n.documentElement),e=c(t)?t:[t];n;){for(u=0,o=e.length;u<o;u++)if(r(i=f.data(n,e[u])))return i;n=n.parentNode||n.nodeType===oe&&n.host}}function vh(n){for(vu(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function du(n,t){t||vu(n);var i=n.parentNode;i&&i.removeChild(n)}function fp(t,i){if(i=i||n,i.document.readyState==="complete")i.setTimeout(t);else f(i).on("load",t)}function yh(t){function i(){n.document.removeEventListener("DOMContentLoaded",i);n.removeEventListener("load",i);t()}n.document.readyState==="complete"?n.setTimeout(t):(n.document.addEventListener("DOMContentLoaded",i),n.addEventListener("load",i))}function ph(n,t){var i=br[t.toLowerCase()];return i&&we[vt(n)]&&i}function ep(n){return be[n]}function op(n,t){var i=function(i,r){var f,e,s,h,o;if(i.isDefaultPrevented=function(){return i.defaultPrevented},f=t[r||i.type],e=f?f.length:0,e)for(u(i.immediatePropagationStopped)&&(s=i.stopImmediatePropagation,i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0;i.stopPropagation&&i.stopPropagation();s&&s.call(i)}),i.isImmediatePropagationStopped=function(){return i.immediatePropagationStopped===!0},h=f.specialHandlerWrapper||sp,e>1&&(f=pt(f)),o=0;o<e;o++)i.isImmediatePropagationStopped()||h(n,i,f[o])};return i.elem=n,i}function sp(n,t,i){i.call(n,t)}function hp(n,t,i){var r=t.relatedTarget;r&&(r===n||ch.call(n,r))||i.call(n,t)}function cp(){this.$get=function(){return v(w,{hasClass:function(n,t){return n.attr&&(n=n[0]),pu(n,t)},addClass:function(n,t){return n.attr&&(n=n[0]),bu(n,t)},removeClass:function(n,t){return n.attr&&(n=n[0]),wu(n,t)}})}}function nr(n,t){var r=n&&n.$$hashKey,i;return r?(typeof r=="function"&&(r=n.$$hashKey()),r):(i=typeof n,i==="function"||i==="object"&&n!==null?n.$$hashKey=i+":"+(t||ou)():i+":"+n)}function bh(){this._keys=[];this._values=[];this._lastKey=NaN;this._lastIndex=-1}function kh(n){return Function.prototype.toString.call(n)}function dh(n){var t=kh(n).replace(wp,"");return t.match(ap)||t.match(vp)}function bp(n){var t=dh(n);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function kp(n,i,r){var u,e,f;if(typeof n=="function"){if(!(u=n.$inject)){if(u=[],n.length){if(i){h(r)&&r||(r=n.name||bp(n));throw ci("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",r);}e=dh(n);t(e[1].split(yp),function(n){n.replace(pp,function(n,t,i){u.push(i)})})}n.$inject=u}}else c(n)?(f=n.length-1,hu(n[f],"fn"),u=n.slice(0,f)):hu(n,"fn",!0);return u}function kr(n,i){function v(n){return function(i,r){if(o(i))t(i,pf(n));else return n(i,r)}}function nt(n,t){if(di(n,"service"),(e(t)||c(t))&&(t=f.instantiate(t)),!t.$get)throw ci("pget","Provider '{0}' must define $get factory method.",n);return s[n+l]=t}function rt(n,t){return function(){var i=r.invoke(t,this);if(u(i))throw ci("undef","Provider '{0}' must return a value from $get factory method.",n);return i}}function b(n,t,i){return nt(n,{$get:i!==!1?rt(n,t):t})}function ft(n,t){return b(n,["$injector",function(n){return n.instantiate(t)}])}function et(n,t){return b(n,ot(t),!1)}function st(n,t){di(n,"constant");s[n]=t;d[n]=t}function ht(n,t){var i=f.get(n+l),u=i.$get;i.$get=function(){var n=r.invoke(u,i);return r.invoke(t,null,{$delegate:n})}}function tt(n){pr(u(n)||c(n),"modulesToLoad","not an array");var o=[],i;return t(n,function(n){function u(n){for(var i,r,t=0,u=n.length;t<u;t++)i=n[t],r=f.get(i[0]),r[i[1]].apply(r,i[2])}if(!k.get(n)){k.set(n,!0);try{h(n)?(i=yf(n),r.modules[n]=i,o=o.concat(tt(i.requires)).concat(i._runBlocks),u(i._invokeQueue),u(i._configBlocks)):e(n)?o.push(f.invoke(n)):c(n)?o.push(f.invoke(n)):hu(n,"module")}catch(t){c(n)&&(n=n[n.length-1]);t.message&&t.stack&&t.stack.indexOf(t.message)===-1&&(t=t.message+"\n"+t.stack);throw ci("modulerr","Failed to instantiate module {0} due to:\n{1}",n,t.stack||t.message||t);}}}),o}function it(n,t){function r(i,r){if(n.hasOwnProperty(i)){if(n[i]===y)throw ci("cdep","Circular dependency found: {0}",i+" <- "+a.join(" <- "));return n[i]}try{return a.unshift(i),n[i]=y,n[i]=t(i,r),n[i]}catch(u){n[i]===y&&delete n[i];throw u;}finally{a.shift()}}function u(n,t,u){for(var f,o=[],s=kr.$$annotate(n,i,u),e=0,h=s.length;e<h;e++){if(f=s[e],typeof f!="string")throw ci("itkn","Incorrect injection token! Expected service name as string, got {0}",f);o.push(t&&t.hasOwnProperty(f)?t[f]:r(f,u))}return o}function f(n){if(at||typeof n!="function")return!1;var t=n.$$ngIsClass;return ni(t)||(t=n.$$ngIsClass=/^(?:class\b|constructor\()/.test(kh(n))),t}function e(n,t,i,r){typeof i=="string"&&(r=i,i=null);var e=u(n,i,r);return c(n)&&(n=n[n.length-1]),f(n)?(e.unshift(null),new(Function.prototype.bind.apply(n,e))):n.apply(t,e)}function o(n,t,i){var f=c(n)?n[n.length-1]:n,r=u(n,t,i);return r.unshift(null),new(Function.prototype.bind.apply(f,r))}return{invoke:e,instantiate:o,get:r,annotate:kr.$$annotate,has:function(t){return s.hasOwnProperty(t+l)||n.hasOwnProperty(t)}}}var g;i=i===!0;var y={},l="Provider",a=[],k=new gu,s={$provide:{provider:v(nt),factory:v(b),service:v(ft),value:v(et),constant:v(st),decorator:ht}},f=s.$injector=it(s,function(n,t){ut.isString(t)&&a.push(t);throw ci("unpr","Unknown provider: {0}",a.join(" <- "));}),d={},w=it(d,function(n,t){var i=f.get(n+l,t);return r.invoke(i.$get,i,undefined,n)}),r=w;return s["$injector"+l]={$get:ot(w)},r.modules=f.modules=p(),g=tt(n),r=w.get("$injector"),r.strictDi=i,t(g,function(n){n&&r.invoke(n)}),r}function dp(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,r){function s(n){var t=null;return Array.prototype.some.call(n,function(n){if(vt(n)==="a")return t=n,!0}),t}function c(){var n=f.yOffset,i,r;return e(n)?n=n():ne(n)?(i=n[0],r=t.getComputedStyle(i),n=r.position!=="fixed"?0:i.getBoundingClientRect().bottom):g(n)||(n=0),n}function u(n){var i,r;n?(n.scrollIntoView(),i=c(),i&&(r=n.getBoundingClientRect().top,t.scrollBy(0,r-i))):t.scrollTo(0,0)}function f(n){n=h(n)?n:g(n)?n.toString():i.hash();var t;n?(t=o.getElementById(n))?u(t):(t=s(o.getElementsByName(n)))?u(t):n==="top"&&u(null):u(null)}var o=t.document;return n&&r.$watch(function(){return i.hash()},function(n,t){(n!==t||n!=="")&&fp(function(){r.$evalAsync(f)})}),f}]}function dr(n,t){return!n&&!t?"":n?t?(c(n)&&(n=n.join(" ")),c(t)&&(t=t.join(" ")),n+" "+t):n:t}function nw(n){for(var i,t=0;t<n.length;t++)if(i=n[t],i.nodeType===gp)return i}function tw(n){h(n)&&(n=n.split(" "));var i=p();return t(n,function(n){n.length&&(i[n]=!0)}),i}function li(n){return o(n)?n:{}}function sw(n,i,r,e){function d(n){try{n.apply(null,bi(arguments,1))}finally{if(l--,l===0)while(b.length)try{b.pop()()}catch(t){r.error(t)}}}function et(n){var t=n.indexOf("#");return t===-1?"":n.substr(t)}function tt(){v=null;rt()}function it(){h=ht();h=u(h)?null:h;st(h,k)&&(h=k);k=h;y=h}function rt(){var n=y;(it(),a!==o.url()||n!==h)&&(a=o.url(),y=h,t(g,function(n){n(o.url(),h)}))}var o=this,c=n.location,p=n.history,ut=n.setTimeout,ft=n.clearTimeout,w={},l,b,g,nt,k;o.isMock=!1;l=0;b=[];o.$$completeOutstandingRequest=d;o.$$incOutstandingRequestCount=function(){l++};o.notifyWhenNoOutstandingRequests=function(n){l===0?n():b.push(n)};var h,y,a=c.href,ot=i.find("base"),v=null,ht=e.history?function(){try{return p.state}catch(n){}}:s;it();o.url=function(t,i,r){var s,f;return u(r)&&(r=null),c!==n.location&&(c=n.location),p!==n.history&&(p=n.history),t?(s=y===r,a===t&&(!e.history||s))?o:(f=a&&ai(a)===ai(t),a=t,y=r,!e.history||f&&s?(f||(v=t),i?c.replace(t):f?c.hash=et(t):c.href=t,c.href!==t&&(v=t)):(p[i?"replaceState":"pushState"](r,"",t),it()),v&&(v=t),o):v||c.href.replace(/%27/g,"'")};o.state=function(){return h};g=[];nt=!1;k=null;o.onUrlChange=function(t){if(!nt){if(e.history)f(n).on("popstate",tt);f(n).on("hashchange",tt);nt=!0}return g.push(t),t};o.$$applicationDestroyed=function(){f(n).off("hashchange popstate",tt)};o.$$checkUrlChange=rt;o.baseHref=function(){var n=ot.attr("href");return n?n.replace(/^(https?:)?\/\/[^/]*/,""):""};o.defer=function(n,t){var i;return l++,i=ut(function(){delete w[i];d(n)},t||0),w[i]=!0,i};o.defer.cancel=function(n){return w[n]?(delete w[n],ft(n),d(s),!0):!1}}function hw(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new sw(n,r,t,i)}]}function cw(){this.$get=function(){function i(t,i){function y(n){n!==o&&(r?r===n&&(r=n.n):r=n,c(n.n,n.p),c(n,o),o=n,o.n=null)}function c(n,t){n!==t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw l("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var s=0,a=v({},i,{id:t}),f=p(),h=i&&i.capacity||Number.MAX_VALUE,e=p(),o=null,r=null;return n[t]={put:function(n,t){if(!u(t)){if(h<Number.MAX_VALUE){var i=e[n]||(e[n]={key:n});y(i)}return n in f||s++,f[n]=t,s>h&&this.remove(r.key),t}},get:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;y(t)}return f[n]},remove:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;t===o&&(o=t.p);t===r&&(r=t.n);c(t.n,t.p);delete e[n]}n in f&&(delete f[n],s--)},removeAll:function(){f=p();s=0;e=p();o=r=null},destroy:function(){f=null;a=null;e=null;delete n[t]},info:function(){return v({},a,{size:s})}}}var n={};return i.info=function(){var i={};return t(n,function(n,t){i[t]=n.info()}),i},i.get=function(t){return n[t]},i}}function lw(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function aw(){}function tc(i,l){function ft(n,i,r){var f=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,u=p();return t(n,function(n,t){if(n in ut){u[t]=ut[n];return}var e=n.match(f);if(!e)throw k("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",i,t,n,r?"controller bindings definition":"isolate scope definition");u[t]={mode:e[1][0],collection:e[2]==="*",optional:e[3]==="?",attrName:e[4]||t};e[4]&&(ut[n]=u[t])}),u}function dt(n,t){var i={isolateScope:null,bindToController:null};if(o(n.scope)&&(n.bindToController===!0?(i.bindToController=ft(n.scope,t,!0),i.isolateScope={}):i.isolateScope=ft(n.scope,t,!1)),o(n.bindToController)&&(i.bindToController=ft(n.bindToController,t,!0)),i.bindToController&&!n.controller)throw k("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return i}function gt(n){var t=n.charAt(0);if(!t||t!==a(t))throw k("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",n);if(n!==n.trim())throw k("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",n);}function ti(n){var i=n.require||n.controller&&n.name;return!c(i)&&o(i)&&t(i,function(n,t){var r=n.match(et),u=n.substring(r[0].length);u||(i[t]=r[0]+t)}),i}function ri(n,t){if(n&&!(h(n)&&/[EACM]/.test(n)))throw k("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",n,t);return n||"EA"}var b={},it="Directive",ht=/^\s*directive:\s*([\w-]+)\s+(.*)$/,ct=/(([\w-]+)(?::([^;]+))?;?)/,pt=ry("ngSrc,ngSrcset,src,srcset"),et=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,bt=/^(on[a-z]+|formaction)$/,ut=p(),w,g,d,nt,tt;this.directive=function ui(n,r){return pr(n,"name"),di(n,"directive"),h(n)?(gt(n),pr(r,"directiveFactory"),b.hasOwnProperty(n)||(b[n]=[],i.factory(n+it,["$injector","$exceptionHandler",function(i,r){var u=[];return t(b[n],function(t,f){try{var o=i.invoke(t);e(o)?o={compile:ot(o)}:!o.compile&&o.link&&(o.compile=ot(o.link));o.priority=o.priority||0;o.index=f;o.name=o.name||n;o.require=ti(o);o.restrict=ri(o.restrict,n);o.$$moduleName=t.$$moduleName;u.push(o)}catch(s){r(s)}}),u}])),b[n].push(r)):t(n,pf(ui)),this};this.component=function fi(n,i){function u(n){function u(t){return e(t)||c(t)?function(i,r){return n.invoke(t,this,{$element:i,$attrs:r})}:t}var o=!i.template&&!i.templateUrl?"":i.template,f={controller:r,controllerAs:vw(i.controller)||i.controllerAs||"$ctrl",template:u(o),templateUrl:u(i.templateUrl),transclude:i.transclude,scope:{},bindToController:i.bindings||{},restrict:"E",require:i.require};return t(i,function(n,t){t.charAt(0)==="$"&&(f[t]=n)}),f}if(!h(n))return t(n,pf(ki(this,fi))),this;var r=i.controller||function(){};return t(i,function(n,t){t.charAt(0)==="$"&&(u[t]=n,e(r)&&(r[t]=n))}),u.$inject=["$injector"],this.directive(n,u)};this.aHrefSanitizationWhitelist=function(n){return r(n)?(l.aHrefSanitizationWhitelist(n),this):l.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return r(n)?(l.imgSrcSanitizationWhitelist(n),this):l.imgSrcSanitizationWhitelist()};w=!0;this.debugInfoEnabled=function(n){return r(n)?(w=n,this):w};g=!1;this.preAssignBindingsEnabled=function(n){return r(n)?(g=n,this):g};d=10;this.onChangesTtl=function(n){return arguments.length?(d=n,this):d};nt=!0;this.commentDirectivesEnabled=function(n){return arguments.length?(nt=n,this):nt};tt=!0;this.cssClassDirectivesEnabled=function(n){return arguments.length?(tt=n,this):tt};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(i,l,ut,ft,ot,gt,ti,ri,ui,fi){function tu(){try{if(!--rr){oi=undefined;throw k("infchng","{0} $onChanges() iterations reached. Aborting!\n",d);}ti.$apply(function(){for(var n=[],t=0,i=oi.length;t<i;++t)try{oi[t]()}catch(r){n.push(r)}if(oi=undefined,n.length)throw n;})}finally{rr++}}function pi(n,t){if(t)for(var u=Object.keys(t),r,i=0,f=u.length;i<f;i++)r=u[i],this[r]=t[r];else this.$attr={};this.$$element=n}function iu(n,t,i){ir.innerHTML="<span "+t+">";var u=ir.firstChild.attributes,r=u[0];u.removeNamedItem(r.name);r.value=i;n.attributes.setNamedItem(r)}function wi(n,t){try{n.addClass(t)}catch(i){}}function ei(n,t,i,r,u){var o,e;return n instanceof f||(n=f(n)),o=di(n,t,n,i,r,u),ei.$$addScopeClass(n),e=null,function(t,i,r){var s,l;if(!n)throw k("multilink","This element has already been linked.");pr(t,"scope");u&&u.needsNewScope&&(t=t.$parent.$new());r=r||{};var h=r.parentBoundTranscludeFn,c=r.transcludeControllers,a=r.futureParentElement;if(h&&h.$$boundTransclude&&(h=h.$$boundTransclude),e||(e=fu(a)),s=e!=="html"?f(tr(e,f("<div>").append(n).html())):i?hi.clone.call(n):n,c)for(l in c)s.data("$"+l+"Controller",c[l].instance);return ei.$$addScopeInfo(s,t),i&&i(s,t),o&&o(t,s,s,h),i||(n=o=null),s}}function fu(n){var t=n&&n[0];return t?vt(t)!=="foreignobject"&&rt.call(t).match(/SVG/)?"svg":"html":"html"}function di(n,t,i,r,u,e){function k(n,i,r,u){var o,s,c,l,e,y,v,w,a,b;if(p)for(b=i.length,a=new Array(b),e=0;e<h.length;e+=3)v=h[e],a[v]=i[v];else a=i;for(e=0,y=h.length;e<y;)c=a[h[e++]],o=h[e++],s=h[e++],o?(o.scope?(l=n.$new(),ei.$$addScopeInfo(f(c),l)):l=n,w=o.transcludeOnThisElement?ci(n,o.transclude,u):!o.templateOnThisElement&&u?u:!u&&t?ci(n,t):null,o(s,l,c,r,w)):s&&s(n,c.childNodes,undefined,u)}for(var h=[],b=c(n)||n instanceof f,l,a,o,v,y,w,p,s=0;s<n.length;s++)l=new pi,at===11&&eu(n,s,b),a=gi(n[s],[],l,s===0?r:undefined,u),o=a.length?ar(a,n[s],l,t,i,null,[],[],e):null,o&&o.scope&&ei.$$addScopeClass(l.$$element),y=o&&o.terminal||!(v=n[s].childNodes)||!v.length?null:di(v,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),(o||y)&&(h.push(s,o,y),w=!0,p=p||o),e=null;return w?k:null}function eu(n,t,i){var u=n[t],f=u.parentNode,r;if(u.nodeType===ii)for(;;){if(r=f?u.nextSibling:n[t+1],!r||r.nodeType!==ii)break;u.nodeValue=u.nodeValue+r.nodeValue;r.parentNode&&r.parentNode.removeChild(r);i&&r===n[t+1]&&n.splice(t+1,1)}}function ci(n,t,i){function u(r,u,f,e,o){return r||(r=n.$new(!1,o),r.$$transcluded=!0),t(r,u,{parentBoundTranscludeFn:i,transcludeControllers:f,futureParentElement:e})}var f=u.$$slots=p();for(var r in t.$$slots)f[r]=t.$$slots[r]?ci(n,t.$$slots[r],i):null;return u}function gi(n,t,i,r,u){var tt=n.nodeType,it=i.$attr,c,a,s,d,g,nt;switch(tt){case kt:a=vt(n);ai(t,wt(a),"E",r,u);for(var v,f,e,p,w,l,b=n.attributes,k=0,rt=b&&b.length;k<rt;k++)d=!1,g=!1,v=b[k],f=v.name,w=v.value,p=wt(f),l=ru.test(p),l&&(f=f.replace(ke,"").substr(8).replace(/_(.)/g,function(n,t){return t.toUpperCase()})),nt=p.match(uu),nt&&hu(nt[1])&&(d=f,g=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),e=wt(f.toLowerCase()),it[e]=f,(l||!i.hasOwnProperty(e))&&(i[e]=w,ph(n,e)&&(i[e]=!0)),yu(n,t,w,e,l),ai(t,e,"A",r,u,d,g);if(a==="input"&&n.getAttribute("type")==="hidden"&&n.setAttribute("autocomplete","off"),!nu)break;if(s=n.className,o(s)&&(s=s.animVal),h(s)&&s!=="")while(c=ct.exec(s))e=wt(c[2]),ai(t,e,"C",r,u)&&(i[e]=y(c[3])),s=s.substr(c.index+c[0].length);break;case ii:au(t,n.nodeValue);break;case wr:if(!gr)break;ou(n,t,i,r,u)}return t.sort(lu),t}function ou(n,t,i,r,u){var f,e;try{f=ht.exec(n.nodeValue);f&&(e=wt(f[1]),ai(t,e,"M",r,u)&&(i[e]=y(f[2])))}catch(o){}}function sr(n,t,i){var r=[],u=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw k("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,i);n.nodeType===kt&&(n.hasAttribute(t)&&u++,n.hasAttribute(i)&&u--);r.push(n);n=n.nextSibling}while(u>0)}else r.push(n);return f(r)}function lr(n,t,i){return function(r,u,f,e,o){return u=sr(u[0],t,i),n(r,u,f,e,o)}}function nr(n,t,i,r,u,f){var e;return n?ei(t,i,r,u,f):function(){return e||(e=ei(t,i,r,u,f),t=i=f=null),e.apply(this,arguments)}}function ar(n,i,r,s,h,l,a,w,b){function er(n,t,i,r){n&&(i&&(n=lr(n,i,r)),n.require=d.require,n.directiveName=st,(nt===d||d.$$isolateScope)&&(n=br(n,{isolateScope:!0})),a.push(n));t&&(i&&(t=lr(t,i,r)),t.require=d.require,t.directiveName=st,(nt===d||d.$$isolateScope)&&(t=br(t,{isolateScope:!0})),w.push(t))}function lt(n,s,h,l,y){function dt(n,t,i,r){var e,f;if(hr(n)||(r=i,i=t,t=n,n=undefined),ti&&(e=it),i||(i=ti?p.parent():p),r){if(f=y.$$slots[r],f)return f(n,t,e,i,at);if(u(f))throw k("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,yt(p));}else return y(n,t,e,i,at)}var et,kt,d,tt,st,it,ht,p,rt,wt,bt,pt,at;i===h?(rt=r,p=r.$$element):(p=f(h),rt=new pi(p,r));st=s;nt?tt=s.$new(!0):ft&&(st=s.$parent);y&&(ht=dt,ht.$$boundTransclude=y,ht.isSlotFilled=function(n){return!!y.$$slots[n]});ot&&(it=su(p,rt,ht,ot,tt,s,nt));nt&&(ei.$$addScopeInfo(p,tt,!0,!(ct&&(ct===nt||ct===nt.$$originalDirective))),ei.$$addScopeClass(p,!0),tt.$$isolateBindings=nt.$$isolateBindings,wt=yi(s,rt,tt,tt.$$isolateBindings,nt),wt.removeWatches&&tt.$on("$destroy",wt.removeWatches));for(bt in it){var lt=ot[bt],b=it[bt],vt=lt.$$bindings.bindToController;g?(b.bindingInfo=vt?yi(st,rt,b.instance,vt,lt):{},pt=b(),pt!==b.instance&&(b.instance=pt,p.data("$"+lt.name+"Controller",pt),b.bindingInfo.removeWatches&&b.bindingInfo.removeWatches(),b.bindingInfo=yi(st,rt,b.instance,vt,lt))):(b.instance=b(),p.data("$"+lt.name+"Controller",b.instance),b.bindingInfo=yi(st,rt,b.instance,vt,lt))}for(t(ot,function(n,t){var i=n.require;n.bindToController&&!c(i)&&o(i)&&v(it[t].instance,li(t,i,p,it))}),t(it,function(n){var t=n.instance;if(e(t.$onChanges))try{t.$onChanges(n.bindingInfo.initialChanges)}catch(i){ut(i)}if(e(t.$onInit))try{t.$onInit()}catch(i){ut(i)}e(t.$doCheck)&&(st.$watch(function(){t.$doCheck()}),t.$doCheck());e(t.$onDestroy)&&st.$on("$destroy",function(){t.$onDestroy()})}),et=0,kt=a.length;et<kt;et++)d=a[et],kr(d,d.isolateScope?tt:s,p,rt,d.require&&li(d.directiveName,d.require,p,it),ht);for(at=s,nt&&(nt.template||nt.templateUrl===null)&&(at=tt),n&&n(at,h.childNodes,undefined,y),et=w.length-1;et>=0;et--)d=w[et],kr(d,d.isolateScope?tt:s,p,rt,d.require&&li(d.directiveName,d.require,p,it),ht);t(it,function(n){var t=n.instance;e(t.$postLink)&&t.$postLink()})}var ht,ui,gt,fi,bt,rr,et,di,oi,hi,ci;b=b||{};var dt=-Number.MAX_VALUE,ft=b.newScopeDirective,ot=b.controllerDirectives,nt=b.newIsolateScopeDirective,ct=b.templateDirective,ni=b.nonTlbTranscludeDirective,ai=!1,wi=!1,ti=b.hasElementTranscludeDirective,tt=r.$$element=f(i),d,st,rt,ii=l,at=s,pt,ir=!1,ri=!1,it;for(ht=0,ui=n.length;ht<ui;ht++){if(d=n[ht],gt=d.$$start,fi=d.$$end,gt&&(tt=sr(i,gt,fi)),rt=undefined,dt>d.priority)break;if(it=d.scope,it&&(d.templateUrl||(o(it)?(si("new/isolated scope",nt||ft,d,tt),nt=d):si("new/isolated scope",nt,d,tt)),ft=ft||d),st=d.name,!ir&&(d.replace&&(d.templateUrl||d.template)||d.transclude&&!d.$$tlb)){for(rr=ht+1;bt=n[rr++];)if(bt.transclude&&!bt.$$tlb||bt.replace&&(bt.templateUrl||bt.template)){ri=!0;break}ir=!0}if(!d.templateUrl&&d.controller&&(ot=ot||p(),si("'"+st+"' controller",ot[st],d,tt),ot[st]=d),it=d.transclude,it)if(ai=!0,d.$$tlb||(si("transclusion",ni,d,tt),ni=d),it==="element")ti=!0,dt=d.priority,rt=tt,tt=r.$$element=f(ei.$$createComment(st,r[st])),i=tt[0],vi(h,bi(rt),i),rt[0].$$parentNode=rt[0].parentNode,at=nr(ri,rt,s,dt,ii&&ii.name,{nonTlbTranscludeDirective:ni});else{if(et=p(),o(it)){rt=[];di=p();oi=p();t(it,function(n,t){var i=n.charAt(0)==="?";n=i?n.substring(1):n;di[n]=t;et[t]=null;oi[t]=i});t(tt.contents(),function(n){var t=di[wt(vt(n))];t?(oi[t]=!0,et[t]=et[t]||[],et[t].push(n)):rt.push(n)});t(oi,function(n,t){if(!n)throw k("reqslot","Required transclusion slot `{0}` was not filled.",t);});for(hi in et)et[hi]&&(et[hi]=nr(ri,et[hi],s))}else rt=f(ae(i)).contents();tt.empty();at=nr(ri,rt,s,undefined,undefined,{needsNewScope:d.$$isolateScope||d.$$newScope});at.$$slots=et}if(d.template)if(wi=!0,si("template",ct,d,tt),ct=d,it=e(d.template)?d.template(tt,r):d.template,it=or(it),d.replace){if(ii=d,rt=ce(it)?[]:uc(tr(d.templateNamespace,y(it))),i=rt[0],rt.length!==1||i.nodeType!==kt)throw k("tplrt","Template for directive '{0}' must have exactly one root element. {1}",st,"");vi(h,tt,i);var ur={$attr:{}},fr=gi(i,[],ur),cr=n.splice(ht+1,n.length-(ht+1));(nt||ft)&&vr(fr,nt,ft);n=n.concat(fr).concat(cr);yr(r,ur);ui=n.length}else tt.html(it);if(d.templateUrl)wi=!0,si("template",ct,d,tt),ct=d,d.replace&&(ii=d),lt=cu(n.splice(ht,n.length-ht),tt,r,h,ai&&at,a,w,{controllerDirectives:ot,newScopeDirective:ft!==d&&ft,newIsolateScopeDirective:nt,templateDirective:ct,nonTlbTranscludeDirective:ni}),ui=n.length;else if(d.compile)try{pt=d.compile(tt,r,at);ci=d.$$originalDirective||d;e(pt)?er(null,ki(ci,pt),gt,fi):pt&&er(ki(ci,pt.pre),ki(ci,pt.post),gt,fi)}catch(ar){ut(ar,yt(tt))}d.terminal&&(lt.terminal=!0,dt=Math.max(dt,d.priority))}return lt.scope=ft&&ft.scope===!0,lt.transcludeOnThisElement=ai,lt.templateOnThisElement=wi,lt.transclude=at,b.hasElementTranscludeDirective=ti,lt}function li(n,i,r,u){var f,a,e,y;if(h(i)){var s=i.match(et),l=i.substring(s[0].length),v=s[1]||s[3],p=s[2]==="?";if(v==="^^"?r=r.parent():(f=u&&u[l],f=f&&f.instance),f||(a="$"+l+"Controller",f=v?r.inheritedData(a):r.data(a)),!f&&!p)throw k("ctreq","Controller '{0}', required by directive '{1}', can't be found!",l,n);}else if(c(i))for(f=[],e=0,y=i.length;e<y;e++)f[e]=li(n,i[e],r,u);else o(i)&&(f={},t(i,function(t,i){f[i]=li(n,t,r,u)}));return f||null}function su(n,t,i,r,u,f,e){var c=p(),l,h;for(l in r){var o=r[l],a={$scope:o===e||o.$$isolateScope?u:f,$element:n,$attrs:t,$transclude:i},s=o.controller;s==="@"&&(s=t[o.name]);h=gt(s,a,!0,o.controllerAs);c[o.name]=h;n.data("$"+o.name+"Controller",h.instance)}return c}function vr(n,t,i){for(var r=0,u=n.length;r<u;r++)n[r]=bf(n[r],{$$isolateScope:t,$$newScope:i})}function ai(n,t,r,f,e,s,h){var l,v;if(t===e)return null;if(l=null,b.hasOwnProperty(t))for(var c,y=i.get(t+it),a=0,p=y.length;a<p;a++)c=y[a],(u(f)||f>c.priority)&&c.restrict.indexOf(r)!==-1&&(s&&(c=bf(c,{$$start:s,$$end:h})),c.$$bindings||(v=c.$$bindings=dt(c,c.name),o(v.isolateScope)&&(c.$$isolateBindings=v.isolateScope)),n.push(c),l=c);return l}function hu(n){if(b.hasOwnProperty(n))for(var r,u=i.get(n+it),t=0,f=u.length;t<f;t++)if(r=u[t],r.multiElement)return!0;return!1}function yr(n,i){var r=i.$attr,u=n.$attr;t(n,function(t,u){u.charAt(0)!=="$"&&(i[u]&&i[u]!==t&&(t.length?t+=(u==="style"?";":" ")+i[u]:t=i[u]),n.$set(u,t,!0,r[u]))});t(i,function(t,i){n.hasOwnProperty(i)||i.charAt(0)==="$"||(n[i]=t,i!=="class"&&i!=="style"&&(u[i]=r[i]))})}function cu(n,i,r,u,s,h,c,l){var v=[],p,w,b=i[0],a=n.shift(),g=bf(a,{templateUrl:null,transclude:null,replace:null,$$originalDirective:a}),d=e(a.templateUrl)?a.templateUrl(i,r):a.templateUrl,nt=a.templateNamespace;return i.empty(),ft(d).then(function(e){var tt,rt,ut,st,ft,ct;if(e=or(e),a.replace){if(ut=ce(e)?[]:uc(tr(nt,y(e))),tt=ut[0],ut.length!==1||tt.nodeType!==kt)throw k("tplrt","Template for directive '{0}' must have exactly one root element. {1}",a.name,d);rt={$attr:{}};vi(u,i,tt);ft=gi(tt,[],rt);o(a.scope)&&vr(ft,!0);n=ft.concat(n);yr(r,rt)}else tt=b,i.html(e);for(n.unshift(g),p=ar(n,tt,r,s,i,a,h,c,l),t(u,function(n,t){n===tt&&(u[t]=i[0])}),w=di(i[0].childNodes,s);v.length;){var et=v.shift(),ot=v.shift(),lt=v.shift(),ht=v.shift(),it=i[0];et.$$destroyed||(ot!==b&&(ct=ot.className,l.hasElementTranscludeDirective&&a.replace||(it=ae(tt)),vi(lt,f(ot),it),wi(f(it),ct)),st=p.transcludeOnThisElement?ci(et,p.transclude,ht):ht,p(w,et,it,u,st))}v=null}).catch(function(n){df(n)&&ut(n)}),function(n,t,i,r,u){var f=u;t.$$destroyed||(v?v.push(t,i,r,f):(p.transcludeOnThisElement&&(f=ci(t,p.transclude,u)),p(w,t,i,r,f)))}}function lu(n,t){var i=t.priority-n.priority;return i!==0?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function si(n,t,i,r){function u(n){return n?" (module: "+n+")":""}if(t)throw k("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,u(t.$$moduleName),i.name,u(i.$$moduleName),n,yt(r));}function au(n,t){var i=l(t,!0);i&&n.push({priority:0,compile:function(n){var t=n.parent(),r=!!t.length;return r&&ei.$$addBindingClass(t),function(n,t){var u=t.parent();r||ei.$$addBindingClass(u);ei.$$addBindingInfo(u,i.expressions);n.$watch(i,function(n){t[0].nodeValue=n})}}})}function tr(t,i){t=a(t||"html");switch(t){case"svg":case"math":var r=n.document.createElement("div");return r.innerHTML="<"+t+">"+i+"<\/"+t+">",r.childNodes[0].childNodes;default:return i}}function vu(n,t){if(t==="srcdoc")return ri.HTML;var i=vt(n);if(t==="src"||t==="ngSrc"){if(["img","video","audio","source","track"].indexOf(i)===-1)return ri.RESOURCE_URL}else if(t==="xlinkHref"||i==="form"&&t==="action"||i==="link"&&t==="href")return ri.RESOURCE_URL}function yu(n,t,i,r,u){var e=vu(n,r),s=!u,o=pt[r]||u,f=l(i,s,e,o);if(f){if(r==="multiple"&&vt(n)==="select")throw k("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",yt(n));if(bt.test(r))throw k("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");t.push({priority:100,compile:function(){return{pre:function(n,t,u){var h=u.$$observers||(u.$$observers=p()),s=u[r];(s!==i&&(f=s&&l(s,!0,e,o),i=s),f)&&(u[r]=f(n),(h[r]||(h[r]=[])).$$inter=!0,(u.$$observers&&u.$$observers[r].$$scope||n).$watch(f,function(n,t){r==="class"&&n!==t?u.$updateClass(n,t):u.$set(r,n)}))}}}})}}function vi(t,i,r){var e=i[0],s=i.length,l=e.parentNode,u,a,c;if(t)for(u=0,a=t.length;u<a;u++)if(t[u]===e){t[u++]=r;for(var o=u,h=o+s-1,v=t.length;o<v;o++,h++)h<v?t[o]=t[h]:delete t[o];t.length-=s-1;t.context===e&&(t.context=r);break}for(l&&l.replaceChild(r,e),c=n.document.createDocumentFragment(),u=0;u<s;u++)c.appendChild(i[u]);for(f.hasData(e)&&(f.data(r,f.data(e)),f(e).off("$destroy")),f.cleanData(c.querySelectorAll("*")),u=1;u<s;u++)delete i[u];i[0]=r;i.length=1}function br(n,t){return v(function(){return n.apply(null,arguments)},n,t)}function kr(n,t,i,r,u,f){try{n(t,i,r,u,f)}catch(e){ut(e,yt(i))}}function yi(n,i,r,u,f){function v(t,i,u){e(r.$onChanges)&&!ie(i,u)&&(oi||(n.$$postDigest(tu),oi=[]),o||(o={},oi.push(y)),o[t]&&(u=o[t].previousValue),o[t]=new tf(u,i))}function y(){r.$onChanges(o);o=undefined}var c=[],a={},o;return t(u,function(t,u){var e=t.attrName,p=t.optional,it=t.mode,y,o,tt,g,w,b,nt,d;switch(it){case"@":p||lt.call(i,e)||(r[u]=i[e]=undefined);w=i.$observe(e,function(n){if(h(n)||ni(n)){var t=r[u];v(u,n,t);r[u]=n}});i.$$observers[e].$$scope=n;y=i[e];h(y)?r[u]=l(y)(n):ni(y)&&(r[u]=y);a[u]=new tf(nf,r[u]);c.push(w);break;case"=":if(!lt.call(i,e)){if(p)break;i[e]=undefined}if(p&&!i[e])break;o=ot(i[e]);g=o.literal?st:ie;tt=o.assign||function(){y=r[u]=o(n);throw k("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",i[e],e,f.name);};y=r[u]=o(n);b=function(t){return g(t,r[u])||(g(t,y)?tt(n,t=r[u]):r[u]=t),y=t};b.$stateful=!0;w=t.collection?n.$watchCollection(i[e],b):n.$watch(ot(i[e],b),null,o.literal);c.push(w);break;case"<":if(!lt.call(i,e)){if(p)break;i[e]=undefined}if(p&&!i[e])break;o=ot(i[e]);nt=o.literal;d=r[u]=o(n);a[u]=new tf(nf,r[u]);w=n.$watch(o,function(n,t){if(t===n){if(t===d||nt&&st(t,d))return;t=d}v(u,n,t);r[u]=n},nt);c.push(w);break;case"&":if(o=i.hasOwnProperty(e)?ot(i[e]):s,o===s&&p)break;r[u]=function(t){return o(n,t)}}}),{initialChanges:a,removeWatches:c.length&&function(){for(var n=0,t=c.length;n<t;++n)c[n]()}}}var dr=/^\w/,ir=n.document.createElement("div"),gr=nt,nu=tt,rr=d,oi;pi.prototype={$normalize:wt,$addClass:function(n){n&&n.length>0&&ui.addClass(this.$$element,n)},$removeClass:function(n){n&&n.length>0&&ui.removeClass(this.$$element,n)},$updateClass:function(n,t){var r=rc(n,t),i;r&&r.length&&ui.addClass(this.$$element,r);i=rc(t,n);i&&i.length&&ui.removeClass(this.$$element,i)},$set:function(n,i,f,e){var d=this.$$element[0],w=ph(d,n),a=ep(n),b=n,h,s,v,l,p;if(w?(this.$$element.prop(n,i),e=w):a&&(this[a]=i,b=a),this[n]=i,e?this.$attr[n]=e:(e=this.$attr[n],e||(this.$attr[n]=e=rh(n,"-"))),h=vt(this.$$element),h==="a"&&(n==="href"||n==="xlinkHref")||h==="img"&&n==="src")this[n]=i=fi(i,n==="src");else if(h==="img"&&n==="srcset"&&r(i)){var o="",k=y(i),g=/\s/.test(k)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,c=k.split(g),nt=Math.floor(c.length/2);for(s=0;s<nt;s++)v=s*2,o+=fi(y(c[v]),!0),o+=" "+y(c[v+1]);l=y(c[s*2]).split(/\s/);o+=fi(y(l[0]),!0);l.length===2&&(o+=" "+y(l[1]));this[n]=i=o}f!==!1&&(i===null||u(i)?this.$$element.removeAttr(e):dr.test(e)?this.$$element.attr(e,i):iu(this.$$element[0],e,i));p=this.$$observers;p&&t(p[b],function(n){try{n(i)}catch(t){ut(t)}})},$observe:function(n,t){var i=this,f=i.$$observers||(i.$$observers=p()),r=f[n]||(f[n]=[]);return r.push(t),ti.$evalAsync(function(){r.$$inter||!i.hasOwnProperty(n)||u(i[n])||t(i[n])}),function(){cr(r,t)}}};var ur=l.startSymbol(),fr=l.endSymbol(),or=ur==="{{"&&fr==="}}"?er:function(n){return n.replace(/\{\{/g,ur).replace(/}}/g,fr)},ru=/^ngAttr[A-Z]/,uu=/^(.+)Start$/;return ei.$$addBindingInfo=w?function(n,t){var i=n.data("$binding")||[];c(t)?i=i.concat(t):i.push(t);n.data("$binding",i)}:s,ei.$$addBindingClass=w?function(n){wi(n,"ng-binding")}:s,ei.$$addScopeInfo=w?function(n,t,i,r){var u=i?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";n.data(u,t)}:s,ei.$$addScopeClass=w?function(n,t){wi(n,t?"ng-isolate-scope":"ng-scope")}:s,ei.$$createComment=function(t,i){var r="";return w&&(r=" "+(t||"")+": ",i&&(r+=i+" ")),n.document.createComment(r)},ei}]}function tf(n,t){this.previousValue=n;this.currentValue=t}function wt(n){return n.replace(ke,"").replace(ic,he)}function rc(n,t){var u="",e=n.split(/\s+/),o=t.split(/\s+/),i,f,r;n:for(i=0;i<e.length;i++){for(f=e[i],r=0;r<o.length;r++)if(f===o[r])continue n;u+=(u.length>0?" ":"")+f}return u}function uc(n){var t,i;if(n=f(n),t=n.length,t<=1)return n;while(t--)i=n[t],(i.nodeType===wr||i.nodeType===ii&&i.nodeValue.trim()==="")&&pv.call(n,t,1);return n}function vw(n,t){if(t&&h(t))return t;if(h(n)){var i=ge.exec(n);if(i)return i[3]}}function yw(){var n={},t=!1;this.has=function(t){return n.hasOwnProperty(t)};this.register=function(t,i){di(t,"controller");o(t)?v(n,t):n[t]=i};this.allowGlobals=function(){t=!0};this.$get=["$injector","$window",function(i,r){function u(n,t,i,r){if(!(n&&o(n.$scope)))throw l("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);n.$scope[t]=i}return function(f,s,l,a){var p,b,y,w,k;if(l=l===!0,a&&h(a)&&(w=a),h(f)){if(b=f.match(ge),!b)throw de("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",f);if(y=b[1],w=w||b[3],f=n.hasOwnProperty(y)?n[y]:uh(s.$scope,y,!0)||(t?uh(r,y,!0):undefined),!f)throw de("ctrlreg","The controller with the name '{0}' is not registered.",y);hu(f,y,!0)}return l?(k=(c(f)?f[f.length-1]:f).prototype,p=Object.create(k||null),w&&u(s,w,p,y||f.name),v(function(){var n=i.invoke(f,p,s,y);return n!==p&&(o(n)||e(n))&&(p=n,w&&u(s,w,p,y||f.name)),p},{instance:p,identifier:w})):(p=i.instantiate(f,s,y),w&&u(s,w,p,y||f.name),p)}}]}function pw(){this.$get=["$window",function(n){return f(n.document)}]}function ww(){this.$get=["$document","$rootScope",function(n,t){function u(){r=i.hidden}var i=n[0],r=i&&i.hidden;n.on("visibilitychange",u);return t.$on("$destroy",function(){n.off("visibilitychange",u)}),function(){return r}}]}function bw(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function io(n){return o(n)?ft(n)?n.toISOString():vr(n):n}function tb(){this.$get=function(){return function(n){if(!n)return"";var i=[];return ls(n,function(n,r){n===null||u(n)||(c(n)?t(n,function(n){i.push(et(r)+"="+et(io(n)))}):i.push(et(r)+"="+et(io(n))))}),i.join("&")}}}function ib(){this.$get=function(){return function(n){function i(n,f,e){n===null||u(n)||(c(n)?t(n,function(n,t){i(n,f+"["+(o(n)?t:"")+"]")}):o(n)&&!ft(n)?ls(n,function(n,t){i(n,f+(e?"":"[")+t+(e?"":"]"))}):r.push(et(f)+"="+et(io(n))))}if(!n)return"";var r=[];return i(n,"",!0),r.join("&")}}}function ro(n,t){var i,r;if(h(n)&&(i=n.replace(nb,"").trim(),i&&(r=t("Content-Type"),r&&r.indexOf(fc)===0||rb(i))))try{n=ws(i)}catch(u){throw to("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',n,u);}return n}function rb(n){var t=n.match(dw);return t&&gw[t[0]].test(n)}function ec(n){function u(n,t){n&&(i[n]=i[n]?i[n]+", "+t:t)}var i=p(),r;return h(n)?t(n.split("\n"),function(n){r=n.indexOf(":");u(a(y(n.substr(0,r))),y(n.substr(r+1)))}):o(n)&&t(n,function(n,t){u(a(t),y(n))}),i}function oc(n){var t;return function(i){if(t||(t=ec(n)),i){var r=t[a(i)];return r===undefined&&(r=null),r}return t}}function sc(n,i,r,u){return e(u)?u(n,i,r):(t(u,function(t){n=t(n,i,r)}),n)}function uo(n){return 200<=n&&n<300}function ub(){var n=this.defaults={transformResponse:[ro],transformRequest:[function(n){return o(n)&&!dv(n)&&!ny(n)&&!gv(n)?vr(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:pt(no),put:pt(no),patch:pt(no)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},i=!1,f;this.useApplyAsync=function(n){return r(n)?(i=!!n,this):i};f=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(y,p,w,b,k,d,g,nt){function tt(i){function w(n,t){for(var u,f,i=0,r=t.length;i<r;)u=t[i++],f=t[i++],n=n.then(u,f);return t.length=0,n}function k(){y.$$completeOutstandingRequest(s)}function tt(n,i){var r,u={};return t(n,function(n,t){e(n)?(r=n(i),r!=null&&(u[t]=r)):u[t]=n}),u}function rt(t){var i=n.headers,u=v({},t.headers),r,f,e;i=v({},i.common,i[a(t.method)]);n:for(r in i){f=a(r);for(e in u)if(a(e)===f)continue n;u[r]=i[r]}return tt(u,pt(t))}function ut(i){var r=i.headers,f=sc(i.data,oc(r),undefined,i.transformRequest);return u(f)&&t(r,function(n,t){a(t)==="content-type"&&delete r[t]}),u(i.withCredentials)&&!u(n.withCredentials)&&(i.withCredentials=n.withCredentials),et(i,f).then(b,b)}function b(n){var t=v({},n);return t.data=sc(n.data,n.headers,n.status,r.transformResponse),uo(n.status)?t:d.reject(t)}var r;if(!o(i))throw l("$http")("badreq","Http request configuration must be an object.  Received: {0}",i);if(!h(nt.valueOf(i.url)))throw l("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",i.url);r=v({method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse,paramSerializer:n.paramSerializer,jsonpCallbackParam:n.jsonpCallbackParam},i);r.headers=rt(i);r.method=fr(r.method);r.paramSerializer=h(r.paramSerializer)?g.get(r.paramSerializer):r.paramSerializer;y.$$incOutstandingRequestCount();var c=[],p=[],f=d.resolve(r);return t(it,function(n){(n.request||n.requestError)&&c.unshift(n.request,n.requestError);(n.response||n.responseError)&&p.push(n.response,n.responseError)}),f=w(f,c),f=f.then(ut),f=w(f,p),f.finally(k)}function ut(){t(arguments,function(n){tt[n]=function(t,i){return tt(v({},i||{},{method:n,url:t}))}})}function ft(){t(arguments,function(n){tt[n]=function(t,i,r){return tt(v({},r||{},{method:n,url:t,data:i}))}})}function et(f,e){function et(n){if(n){var r={};return t(n,function(n,t){r[t]=function(t){function r(){n(t)}i?k.$applyAsync(r):k.$$phase?r():k.$apply(r)}}),r}}function lt(n,t,r,u){function f(){y(t,n,r,u)}v&&(uo(n)?v.put(s,[n,t,ec(r),u]):v.remove(s));i?k.$applyAsync(f):(f(),k.$$phase||k.$apply())}function y(n,t,i,r){t=t>=-1?t:0;(uo(t)?b.resolve:b.reject)({data:n,status:t,headers:oc(i),config:f,statusText:r})}function ht(n){y(n.data,n.status,pt(n.headers()),n.statusText)}function ct(){var n=tt.pendingRequests.indexOf(f);n!==-1&&tt.pendingRequests.splice(n,1)}var b=d.defer(),g=b.promise,v,l,ut=f.headers,ft=a(f.method)==="jsonp",s=f.url,it;return ft?s=nt.getTrustedResourceUrl(s):h(s)||(s=nt.valueOf(s)),s=ot(s,f.paramSerializer(f.params)),ft&&(s=st(s,f.jsonpCallbackParam)),tt.pendingRequests.push(f),g.then(ct,ct),(f.cache||n.cache)&&f.cache!==!1&&(f.method==="GET"||f.method==="JSONP")&&(v=o(f.cache)?f.cache:o(n.cache)?n.cache:rt),v&&(l=v.get(s),r(l)?su(l)?l.then(ht,ht):c(l)?y(l[1],l[0],pt(l[2]),l[3]):y(l,200,{},"OK"):v.put(s,g)),u(l)&&(it=sl(f.url)?w()[f.xsrfCookieName||n.xsrfCookieName]:undefined,it&&(ut[f.xsrfHeaderName||n.xsrfHeaderName]=it),p(f.method,s,e,lt,ut,f.timeout,f.withCredentials,f.responseType,et(f.eventHandlers),et(f.uploadEventHandlers))),g}function ot(n,t){return t.length>0&&(n+=(n.indexOf("?")===-1?"?":"&")+t),n}function st(n,t){if(/[&?][^=]+=JSON_CALLBACK/.test(n))throw to("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',n);var i=new RegExp("[&?]"+t+"=");if(i.test(n))throw to("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,n);return n+((n.indexOf("?")===-1?"?":"&")+t+"=JSON_CALLBACK")}var rt=b("$http"),it;return n.paramSerializer=h(n.paramSerializer)?g.get(n.paramSerializer):n.paramSerializer,it=[],t(f,function(n){it.unshift(h(n)?g.get(n):g.invoke(n))}),tt.pendingRequests=[],ut("get","delete","head","jsonp"),ft("post","put","patch"),tt.defaults=n,tt}]}function fb(){this.$get=function(){return function(){return new n.XMLHttpRequest}}}function eb(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(n,t,i,r){return ob(n,r,n.defer,t,i[0])}]}function ob(n,i,f,e,o){function s(n,t,i){n=n.replace("JSON_CALLBACK",t);var r=o.createElement("script"),u=null;return r.type="text/javascript",r.src=n,r.async=!0,u=function(n){r.removeEventListener("load",u);r.removeEventListener("error",u);o.body.removeChild(r);r=null;var f=-1,s="unknown";n&&(n.type!=="load"||e.wasCalled(t)||(n={type:"error"}),s=n.type,f=n.type==="error"?404:200);i&&i(f,s)},r.addEventListener("load",u),r.addEventListener("error",u),o.body.appendChild(r),u}return function(o,h,c,l,v,y,p,w,b,k){function ut(){nt&&nt();d&&d.abort()}function rt(n,t,i,u,e){r(it)&&f.cancel(it);nt=d=null;n(t,i,u,e)}var g,nt,d,tt,it;if(h=h||n.url(),a(o)==="jsonp")g=e.createCallback(h),nt=s(h,g,function(n,t){var i=n===200&&e.getResponse(g);rt(l,n,i,"",t);e.removeCallback(g)});else{if(d=i(o,h),d.open(o,h,!0),t(v,function(n,t){r(n)&&d.setRequestHeader(t,n)}),d.onload=function(){var i=d.statusText||"",t="response"in d?d.response:d.responseText,n=d.status===1223?204:d.status;n===0&&(n=t?200:fi(h).protocol==="file"?404:0);rt(l,n,t,d.getAllResponseHeaders(),i)},tt=function(){rt(l,-1,null,null,"")},d.onerror=tt,d.onabort=tt,d.ontimeout=tt,t(b,function(n,t){d.addEventListener(t,n)}),t(k,function(n,t){d.upload.addEventListener(t,n)}),p&&(d.withCredentials=!0),w)try{d.responseType=w}catch(ft){if(w!=="json")throw ft;}d.send(u(c)?null:c)}y>0?it=f(ut,y):su(y)&&y.then(ut)}}function sb(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,f,o){function l(n){return"\\\\\\"+n}function s(i){return i.replace(y,n).replace(p,t)}function w(n,t,i,r){var u=n.$watch(function(n){return u(),r(n)},t,i);return u}function h(h,l,y,p){function ct(n){try{return n=ht(n),p&&!r(n)?n:ee(n)}catch(t){f(ri.interr(h,t))}}var d,ft,ut,ht;if(!h.length||h.indexOf(n)===-1)return l||(ft=s(h),d=ot(ft),d.exp=h,d.expressions=[],d.$$watchDelegate=w),d;p=!!p;for(var g,tt,b=0,nt=[],it=[],et=h.length,rt,k=[],st=[];b<et;)if((g=h.indexOf(n,b))!==-1&&(tt=h.indexOf(t,g+c))!==-1)b!==g&&k.push(s(h.substring(b,g))),rt=h.substring(g+c,tt),nt.push(rt),it.push(i(rt,ct)),b=tt+a,st.push(k.length),k.push("");else{b!==et&&k.push(s(h.substring(b)));break}return y&&k.length>1&&ri.throwNoconcat(h),!l||nt.length?(ut=function(n){for(var t=0,i=nt.length;t<i;t++){if(p&&u(n[t]))return;k[st[t]]=n[t]}return k.join("")},ht=function(n){return y?o.getTrusted(y,n):o.valueOf(n)},v(function(n){var t=0,i=nt.length,r=new Array(i);try{for(;t<i;t++)r[t]=it[t](n);return ut(r)}catch(u){f(ri.interr(h,u))}},{exp:h,expressions:nt,$$watchDelegate:function(n,t){var i;return n.$watchGroup(it,function(r,u){var f=ut(r);e(t)&&t.call(this,f,r!==u?i:f,n);i=f})}})):void 0}var c=n.length,a=t.length,y=new RegExp(n.replace(/./g,l),"g"),p=new RegExp(t.replace(/./g,l),"g");return h.startSymbol=function(){return n},h.endSymbol=function(){return t},h}]}function hb(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(n,t,i,u,f){function o(o,s,h,c){function w(){p?o.apply(null,b):o(a)}var p=arguments.length>4,b=p?bi(arguments,4):[],k=t.setInterval,d=t.clearInterval,a=0,y=r(c)&&!c,v=(y?u:i).defer(),l=v.promise;return h=r(h)?h:0,l.$$intervalId=k(function(){y?f.defer(w):n.$evalAsync(w);v.notify(a++);h>0&&a>=h&&(v.resolve(a),d(l.$$intervalId),delete e[l.$$intervalId]);y||n.$apply()},s),e[l.$$intervalId]=v,l}var e={};return o.cancel=function(n){return n&&n.$$intervalId in e?(fl(e[n.$$intervalId].promise),e[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete e[n.$$intervalId],!0):!1},o}]}function fo(n){for(var t=n.split("/"),i=t.length;i--;)t[i]=yr(t[i]);return t.join("/")}function hc(n,t){var i=fi(n);t.$$protocol=i.protocol;t.$$host=i.hostname;t.$$port=tt(i.port)||ab[i.protocol]||null}function lc(n,t){var r,i;if(cc.test(n))throw gr("badpath",'Invalid url "{0}".',n);r=n.charAt(0)!=="/";r&&(n="/"+n);i=fi(n);t.$$path=decodeURIComponent(r&&i.pathname.charAt(0)==="/"?i.pathname.substring(1):i.pathname);t.$$search=gs(i.search);t.$$hash=decodeURIComponent(i.hash);t.$$path&&t.$$path.charAt(0)!=="/"&&(t.$$path="/"+t.$$path)}function eo(n,t){return n.slice(0,t.length)===t}function dt(n,t){if(eo(t,n))return t.substr(n.length)}function ai(n){var t=n.indexOf("#");return t===-1?n:n.substr(0,t)}function nu(n){return n.replace(/(#.+)|#$/,"$1")}function vb(n){return n.substr(0,ai(n).lastIndexOf("/")+1)}function yb(n){return n.substring(0,n.indexOf("/",n.indexOf("//")+2))}function oo(n,t,i){this.$$html5=!0;i=i||"";hc(n,this);this.$$parse=function(n){var i=dt(t,n);if(!h(i))throw gr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',n,t);lc(i,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=ue(this.$$search),i=this.$$hash?"#"+yr(this.$$hash):"";this.$$url=fo(this.$$path)+(n?"?"+n:"")+i;this.$$absUrl=t+this.$$url.substr(1);this.$$urlUpdatedByLocation=!0};this.$$parseLinkUrl=function(u,f){if(f&&f[0]==="#")return this.hash(f.slice(1)),!0;var e,s,o;return r(e=dt(n,u))?(s=e,o=i&&r(e=dt(i,e))?t+(dt("/",e)||e):n+s):r(e=dt(t,u))?o=t+e:t===u+"/"&&(o=t),o&&this.$$parse(o),!!o}}function so(n,t,i){hc(n,this);this.$$parse=function(r){function o(n,t,i){var u=/^\/[A-Z]:(\/.*)/,r;return(eo(t,i)&&(t=t.replace(i,"")),u.exec(t))?n:(r=u.exec(n),r?r[1]:n)}var e=dt(n,r)||dt(t,r),f;u(e)||e.charAt(0)!=="#"?this.$$html5?f=e:(f="",u(e)&&(n=r,this.replace())):(f=dt(i,e),u(f)&&(f=e));lc(f,this);this.$$path=o(this.$$path,f,n);this.$$compose()};this.$$compose=function(){var t=ue(this.$$search),r=this.$$hash?"#"+yr(this.$$hash):"";this.$$url=fo(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+(this.$$url?i+this.$$url:"");this.$$urlUpdatedByLocation=!0};this.$$parseLinkUrl=function(t){return ai(n)===ai(t)?(this.$$parse(t),!0):!1}}function ac(n,t,i){this.$$html5=!0;so.apply(this,arguments);this.$$parseLinkUrl=function(r,u){if(u&&u[0]==="#")return this.hash(u.slice(1)),!0;var f,e;return n===ai(r)?f=r:(e=dt(t,r))?f=n+i+e:t===r+"/"&&(f=t),f&&this.$$parse(f),!!f};this.$$compose=function(){var t=ue(this.$$search),r=this.$$hash?"#"+yr(this.$$hash):"";this.$$url=fo(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+i+this.$$url;this.$$urlUpdatedByLocation=!0}}function rf(n){return function(){return this[n]}}function yc(n,t){return function(i){return u(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function pb(){var t="!",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(n){return r(n)?(t=n,this):t};this.html5Mode=function(t){return ni(t)?(n.enabled=t,this):o(t)?(ni(t.enabled)&&(n.enabled=t.enabled),ni(t.requireBase)&&(n.requireBase=t.requireBase),(ni(t.rewriteLinks)||h(t.rewriteLinks))&&(n.rewriteLinks=t.rewriteLinks),this):n};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,r,e,s,c){function d(n,t,i){var u=l.url(),f=l.$$state;try{r.url(n,t,i);l.$$state=r.state()}catch(e){l.url(u);l.$$state=f;throw e;}}function g(n,t){i.$broadcast("$locationChangeSuccess",l.absUrl(),n,l.$$state,t)}var l,p,b=r.baseHref(),a=r.url(),y,w,k,v;if(n.enabled){if(!b&&n.requireBase)throw gr("nobase","$location in HTML5 mode requires a <base> tag to be present!");y=yb(a)+(b||"/");p=e.history?oo:ac}else y=ai(a),p=so;w=vb(y);l=new p(y,w,"#"+t);l.$$parseLinkUrl(a,a);l.$$state=r.state();k=/^\s*(javascript|mailto):/i;s.on("click",function(t){var v=n.rewriteLinks,e,a,y;if(v&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&t.which!==2&&t.button!==2){for(e=f(t.target);vt(e[0])!=="a";)if(e[0]===s[0]||!(e=e.parent())[0])return;h(v)&&u(e.attr(v))||(a=e.prop("href"),y=e.attr("href")||e.attr("xlink:href"),o(a)&&a.toString()==="[object SVGAnimatedString]"&&(a=fi(a.animVal).href),k.test(a))||!a||e.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(a,y)&&(t.preventDefault(),l.absUrl()!==r.url()&&(i.$apply(),c.angular["ff-684208-preventDefault"]=!0))}});nu(l.absUrl())!==nu(a)&&r.url(l.absUrl(),!0);v=!0;r.onUrlChange(function(n,t){if(!eo(n,w)){c.location.href=n;return}i.$evalAsync(function(){var r=l.absUrl(),u=l.$$state,f;(n=nu(n),l.$$parse(n),l.$$state=t,f=i.$broadcast("$locationChangeStart",n,r,t,u).defaultPrevented,l.absUrl()===n)&&(f?(l.$$parse(r),l.$$state=u,d(r,!1,u)):(v=!1,g(r,u)))});i.$$phase||i.$digest()});return i.$watch(function(){if(v||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var t=nu(r.url()),f=nu(l.absUrl()),n=r.state(),o=l.$$replace,u=t!==f||l.$$html5&&e.history&&n!==l.$$state;(v||u)&&(v=!1,i.$evalAsync(function(){var r=l.absUrl(),f=i.$broadcast("$locationChangeStart",r,t,l.$$state,n).defaultPrevented;l.absUrl()===r&&(f?(l.$$parse(t),l.$$state=n):(u&&d(r,o,n===l.$$state?null:l.$$state),g(t,n)))}))}l.$$replace=!1}),l}]}function wb(){var n=!0,i=this;this.debugEnabled=function(t){return r(t)?(n=t,this):n};this.$get=["$window",function(r){function e(n){return df(n)&&(n.stack&&f?n=n.message&&n.stack.indexOf(n.message)===-1?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var i=r.console||{},u=i[n]||i.log||s;return function(){var n=[];return t(arguments,function(t){n.push(e(t))}),Function.prototype.apply.call(u,i,n)}}var f=at||/\bEdge\//.test(r.navigator&&r.navigator.userAgent);return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var t=u("debug");return function(){n&&t.apply(i,arguments)}}()}}]}function wc(n){return n+""}function bb(n,t){return typeof n!="undefined"?n:t}function kc(n,t){return typeof n=="undefined"?t:typeof t=="undefined"?n:n+t}function kb(n,t){var i=n(t);return!i.$stateful}function db(n,t){switch(n.type){case i.MemberExpression:if(n.computed)return!1;break;case i.UnaryExpression:return ho;case i.BinaryExpression:return n.operator!=="+"?ho:!1;case i.CallExpression:return!1}return undefined===t?co:t}function b(n,r,u){var e,o,s,f=n.isPure=db(n,u);switch(n.type){case i.Program:e=!0;t(n.body,function(n){b(n.expression,r,f);e=e&&n.expression.constant});n.constant=e;break;case i.Literal:n.constant=!0;n.toWatch=[];break;case i.UnaryExpression:b(n.argument,r,f);n.constant=n.argument.constant;n.toWatch=n.argument.toWatch;break;case i.BinaryExpression:b(n.left,r,f);b(n.right,r,f);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.left.toWatch.concat(n.right.toWatch);break;case i.LogicalExpression:b(n.left,r,f);b(n.right,r,f);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.constant?[]:[n];break;case i.ConditionalExpression:b(n.test,r,f);b(n.alternate,r,f);b(n.consequent,r,f);n.constant=n.test.constant&&n.alternate.constant&&n.consequent.constant;n.toWatch=n.constant?[]:[n];break;case i.Identifier:n.constant=!1;n.toWatch=[n];break;case i.MemberExpression:b(n.object,r,f);n.computed&&b(n.property,r,f);n.constant=n.object.constant&&(!n.computed||n.property.constant);n.toWatch=[n];break;case i.CallExpression:s=n.filter?kb(r,n.callee.name):!1;e=s;o=[];t(n.arguments,function(n){b(n,r,f);e=e&&n.constant;n.constant||o.push.apply(o,n.toWatch)});n.constant=e;n.toWatch=s?o:[n];break;case i.AssignmentExpression:b(n.left,r,f);b(n.right,r,f);n.constant=n.left.constant&&n.right.constant;n.toWatch=[n];break;case i.ArrayExpression:e=!0;o=[];t(n.elements,function(n){b(n,r,f);e=e&&n.constant;n.constant||o.push.apply(o,n.toWatch)});n.constant=e;n.toWatch=o;break;case i.ObjectExpression:e=!0;o=[];t(n.properties,function(n){b(n.value,r,f);e=e&&n.value.constant&&!n.computed;n.value.constant||o.push.apply(o,n.value.toWatch);n.computed&&(b(n.key,r,f),n.key.constant||o.push.apply(o,n.key.toWatch))});n.constant=e;n.toWatch=o;break;case i.ThisExpression:n.constant=!1;n.toWatch=[];break;case i.LocalsExpression:n.constant=!1;n.toWatch=[]}}function dc(n){if(n.length===1){var i=n[0].expression,t=i.toWatch;return t.length!==1?t:t[0]!==i?t:undefined}}function gc(n){return n.type===i.Identifier||n.type===i.MemberExpression}function nl(n){if(n.body.length===1&&gc(n.body[0].expression))return{type:i.AssignmentExpression,left:n.body[0].expression,right:{type:i.NGValueParameter},operator:"="}}function gb(n){return n.body.length===0||n.body.length===1&&(n.body[0].expression.type===i.Literal||n.body[0].expression.type===i.ArrayExpression||n.body[0].expression.type===i.ObjectExpression)}function nk(n){return n.constant}function tl(n){this.$filter=n}function il(n){this.$filter=n}function lo(n,t,r){this.ast=new i(n,r);this.astCompiler=r.csp?new il(t):new tl(t)}function ao(n){return e(n.valueOf)?n.valueOf():pc.call(n)}function tk(){var u=p(),f={"true":!0,"false":!1,"null":null,undefined:undefined},n,i;this.addLiteral=function(n,t){f[n]=t};this.setIdentifierFns=function(t,r){return n=t,i=r,this};this.$get=["$filter",function(o){function w(n,t){var i,f,r,e,h;switch(typeof n){case"string":return n=n.trim(),r=n,i=u[r],i||(n.charAt(0)===":"&&n.charAt(1)===":"&&(f=!0,n=n.substring(2)),e=new uf(a),h=new lo(e,o,a),i=h.parse(n),i.constant?i.$$watchDelegate=b:f?i.$$watchDelegate=i.literal?y:v:i.inputs&&(i.$$watchDelegate=c),u[r]=i),l(i,t);case"function":return l(n,t);default:return l(s,t)}}function h(n,t,i){return n==null||t==null?n===t:typeof n=="object"&&(n=ao(n),typeof n=="object"&&!i)?!1:n===t||n!==n&&t!==t}function c(n,t,i,r,u){var f=r.inputs,o,l,s,c,e,a;if(f.length===1)return l=h,f=f[0],n.$watch(function(n){var t=f(n);return h(t,l,f.isPure)||(o=r(n,undefined,undefined,[t]),l=t&&ao(t)),o},t,i,u);for(s=[],c=[],e=0,a=f.length;e<a;e++)s[e]=h,c[e]=null;return n.$watch(function(n){for(var i,u=!1,t=0,e=f.length;t<e;t++)i=f[t](n),(u||(u=!h(i,s[t],f[t].isPure)))&&(c[t]=i,s[t]=i&&ao(i));return u&&(o=r(n,undefined,undefined,c)),o},t,i,u)}function v(n,t,i,u,f){function l(n){return u(n)}function h(n,i,u){s=n;e(t)&&t(n,i,u);r(n)&&u.$$postDigest(function(){r(s)&&o()})}var o,s;return o=u.inputs?c(n,h,i,u,f):n.$watch(l,h,i)}function y(n,i,u,f){function h(n){var i=!0;return t(n,function(n){r(n)||(i=!1)}),i}var o,s;return o=n.$watch(function(n){return f(n)},function(n,t,r){s=n;e(i)&&i(n,t,r);h(n)&&r.$$postDigest(function(){h(s)&&o()})},u)}function b(n,t,i,r){var u=n.$watch(function(n){return u(),r(n)},t,i);return u}function l(n,t){if(!t)return n;var u=n.$$watchDelegate,f=!1,e=u!==y&&u!==v,i=e?function(i,r,u,e){var o=f&&e?e[0]:n(i,r,u,e);return t(o,i,r)}:function(i,u,f,e){var o=n(i,u,f,e),s=t(o,i,u);return r(o)?s:o};return f=!n.inputs,u&&u!==c?(i.$$watchDelegate=u,i.inputs=n.inputs):t.$stateful||(i.$$watchDelegate=c,i.inputs=n.inputs?n.inputs:[n]),i.inputs&&(i.inputs=i.inputs.map(function(n){return n.isPure===co?function(t){return n(t)}:n})),i}var p=ti().noUnsafeEval,a={csp:p,literals:oi(f),isIdentifierStart:e(n)&&n,isIdentifierContinue:e(i)&&i};return w}]}function ik(){var n=!0;this.$get=["$rootScope","$exceptionHandler",function(t,i){return rl(function(n){t.$evalAsync(n)},i,n)}];this.errorOnUnhandledRejections=function(t){return r(t)?(n=t,this):n}}function rk(){var n=!0;this.$get=["$browser","$exceptionHandler",function(t,i){return rl(function(n){t.defer(n)},i,n)}];this.errorOnUnhandledRejections=function(t){return r(t)?(n=t,this):n}}function rl(n,i,r){function it(){return new et}function et(){var n=this.promise=new f;this.resolve=function(t){h(n,t)};this.reject=function(t){a(n,t)};this.notify=function(t){g(n,t)}}function f(){this.$$state={status:0}}function ot(t){var o,i,f,u,s;f=t.pending;t.processScheduled=!1;t.pending=undefined;try{for(u=0,s=f.length;u<s;++u){vo(t);i=f[u][0];o=f[u][t.status];try{e(o)?h(i,o(t.value)):t.status===1?h(i,t.value):a(i,t.value)}catch(c){a(i,c)}}}finally{--y;r&&y===0&&n(rt)}}function rt(){for(var n,t;!y&&p.length;)n=p.shift(),ul(n)||(vo(n),t="Possibly unhandled rejection: "+eh(n.value),df(n.value)?i(n.value,t):i(t))}function k(t){(!r||t.pending||t.status!==2||ul(t)||(y===0&&p.length===0&&n(rt),p.push(t)),!t.processScheduled&&t.pending)&&(t.processScheduled=!0,++y,n(function(){ot(t)}))}function h(n,t){n.$$state.status||(t===n?d(n,tt("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):ut(n,t))}function ut(n,t){function s(t){i||(i=!0,ut(n,t))}function u(t){i||(i=!0,d(n,t))}function h(t){g(n,t)}var r,i=!1;try{(o(t)||e(t))&&(r=t.then);e(r)?(n.$$state.status=-1,r.call(t,s,u,h)):(n.$$state.value=t,n.$$state.status=1,k(n.$$state))}catch(f){u(f)}}function a(n,t){n.$$state.status||d(n,t)}function d(n,t){n.$$state.value=t;n.$$state.status=2;k(n.$$state)}function g(t,r){var u=t.$$state.pending;t.$$state.status<=0&&u&&u.length&&n(function(){for(var t,f,n=0,o=u.length;n<o;n++){f=u[n][0];t=u[n][3];try{g(f,e(t)?t(r):r)}catch(s){i(s)}}})}function w(n){var t=new f;return a(t,n),t}function ft(n,t,i){var r=null;try{e(i)&&(r=i())}catch(u){return w(u)}return su(r)?r.then(function(){return t(n)},w):t(n)}function b(n,t,i,r){var u=new f;return h(u,n),u.then(t,i,r)}function st(n){var i=new f,r=0,u=c(n)?[]:{};return t(n,function(n,t){r++;b(n).then(function(n){u[t]=n;--r||h(i,u)},function(n){a(i,n)})}),r===0&&h(i,u),i}function ht(n){var i=it();return t(n,function(n){b(n).then(i.resolve,i.reject)}),i.promise}function s(n){function i(n){h(t,n)}function r(n){a(t,n)}if(!e(n))throw tt("norslvr","Expected resolverFn, got '{0}'",n);var t=new f;return n(i,r),t}var tt=l("$q",TypeError),y=0,p=[],nt;return v(f.prototype,{then:function(n,t,i){if(u(n)&&u(t)&&u(i))return this;var r=new f;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,n,t,i]),this.$$state.status>0&&k(this.$$state),r},"catch":function(n){return this.then(null,n)},"finally":function(n,t){return this.then(function(t){return ft(t,nt,n)},function(t){return ft(t,w,n)},t)}}),nt=b,s.prototype=f.prototype,s.defer=it,s.reject=w,s.when=b,s.resolve=nt,s.all=st,s.race=ht,s}function ul(n){return!!n.pur}function vo(n){n.pur=!0}function fl(n){vo(n.$$state)}function uk(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function fk(){function h(n){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=ou();this.$$ChildScope=null}return t.prototype=n,t}var r=10,f=l("$rootScope"),n=null,i=null;this.digestTtl=function(n){return arguments.length&&(r=n),r};this.$get=["$exceptionHandler","$parse","$browser",function(c,l,a){function et(n){n.currentScope.$$destroyed=!0}function b(n){at===9&&(n.$$childHead&&b(n.$$childHead),n.$$nextSibling&&b(n.$$nextSibling));n.$parent=n.$$nextSibling=n.$$prevSibling=n.$$childHead=n.$$childTail=n.$root=n.$$watchers=null}function p(){this.$id=ou();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function tt(n){if(v.$$phase)throw f("inprog","{0} already in progress",v.$$phase);v.$$phase=n}function g(){v.$$phase=null}function nt(n,t){do n.$$watchersCount+=t;while(n=n.$parent)}function rt(n,t,i){do n.$$listenerCount[i]-=t,n.$$listenerCount[i]===0&&delete n.$$listenerCount[i];while(n=n.$parent)}function ut(){}function ft(){while(k.length)try{k.shift()()}catch(n){c(n)}i=null}function ot(){i===null&&(i=a.defer(function(){v.$apply(ft)}))}p.prototype={constructor:p,$new:function(n,t){var i;return t=t||this,n?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=h(this)),i=new this.$$ChildScope),i.$parent=t,i.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=i,t.$$childTail=i):t.$$childHead=t.$$childTail=i,(n||t!==this)&&i.$on("$destroy",et),i},$watch:function(t,i,r,u){var o=l(t);if(o.$$watchDelegate)return o.$$watchDelegate(this,i,r,o,t);var h=this,f=h.$$watchers,c={fn:i,last:ut,get:o,exp:u||t,eq:!!r};return n=null,e(i)||(c.fn=s),f||(f=h.$$watchers=[],f.$$digestWatchIndex=-1),f.unshift(c),f.$$digestWatchIndex++,nt(this,1),function(){var t=cr(f,c);t>=0&&(nt(h,-1),t<f.$$digestWatchIndex&&f.$$digestWatchIndex--);n=null}},$watchGroup:function(n,i){function c(){o=!1;h?(h=!1,i(r,r,u)):i(r,f,u)}var f=new Array(n.length),r=new Array(n.length),e=[],u=this,o=!1,h=!0,s;return n.length?n.length===1?this.$watch(n[0],function(n,t,u){r[0]=n;f[0]=t;i(r,n===t?r:f,u)}):(t(n,function(n,t){var i=u.$watch(n,function(n,i){r[t]=n;f[t]=i;o||(o=!0,u.$evalAsync(c))});e.push(i)}),function(){while(e.length)e.shift()()}):(s=!0,u.$evalAsync(function(){s&&i(r,r,u)}),function(){s=!1})},$watchCollection:function(n,t){function y(n){var l,s,y,t,h,v;if(i=n,!u(i)){if(o(i))if(gt(i))for(r!==c&&(r=c,e=r.length=0,f++),l=i.length,e!==l&&(f++,r.length=e=l),v=0;v<l;v++)h=r[v],t=i[v],y=h!==h&&t!==t,y||h===t||(f++,r[v]=t);else{r!==a&&(r=a={},e=0,f++);l=0;for(s in i)lt.call(i,s)&&(l++,t=i[s],h=r[s],s in r?(y=h!==h&&t!==t,y||h===t||(f++,r[s]=t)):(e++,r[s]=t,f++));if(e>l){f++;for(s in r)lt.call(i,s)||(e--,delete r[s])}}else r!==i&&(r=i,f++);return f}}function b(){var n,r;if(v?(v=!1,t(i,i,h)):t(i,s,h),p)if(o(i))if(gt(i))for(s=new Array(i.length),n=0;n<i.length;n++)s[n]=i[n];else{s={};for(r in i)lt.call(i,r)&&(s[r]=i[r])}else s=i}y.$stateful=!0;var h=this,i,r,s,p=t.length>1,f=0,w=l(n,y),c=[],a={},v=!0,e=0;return this.$watch(w,b)},$digest:function(){var t,o,s,p,lt,h,l,et=r,ot,u,ht=this,b=[],k,nt,rt;tt("$digest");a.$$checkUrlChange();this===v&&i!==null&&(a.defer.cancel(i),ft());n=null;do{for(l=!1,u=ht,rt=0;rt<y.length;rt++){try{nt=y[rt];p=nt.fn;p(nt.scope,nt.locals)}catch(ct){c(ct)}n=null}y.length=0;n:do{if(h=u.$$watchers)for(h.$$digestWatchIndex=h.length;h.$$digestWatchIndex--;)try{if(t=h[h.$$digestWatchIndex],t)if(lt=t.get,(o=lt(u))===(s=t.last)||(t.eq?st(o,s):it(o)&&it(s))){if(t===n){l=!1;break n}}else l=!0,n=t,t.last=t.eq?oi(o,null):o,p=t.fn,p(o,s===ut?o:s,u),et<5&&(k=4-et,b[k]||(b[k]=[]),b[k].push({msg:e(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:o,oldVal:s}))}catch(ct){c(ct)}if(!(ot=u.$$watchersCount&&u.$$childHead||u!==ht&&u.$$nextSibling))while(u!==ht&&!(ot=u.$$nextSibling))u=u.$parent}while(u=ot);if((l||y.length)&&!et--){g();throw f("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",r,b);}}while(l||y.length);for(g();d<w.length;)try{w[d++]()}catch(ct){c(ct)}w.length=d=0;a.$$checkUrlChange()},$destroy:function(){var n,t;if(!this.$$destroyed){n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===v&&a.$$applicationDestroyed();nt(this,-this.$$watchersCount);for(t in this.$$listenerCount)rt(this,this.$$listenerCount[t],t);n&&n.$$childHead===this&&(n.$$childHead=this.$$nextSibling);n&&n.$$childTail===this&&(n.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=s;this.$on=this.$watch=this.$watchGroup=function(){return s};this.$$listeners={};this.$$nextSibling=null;b(this)}},$eval:function(n,t){return l(n)(this,t)},$evalAsync:function(n,t){v.$$phase||y.length||a.defer(function(){y.length&&v.$digest()});y.push({scope:this,fn:l(n),locals:t})},$$postDigest:function(n){w.push(n)},$apply:function(n){try{tt("$apply");try{return this.$eval(n)}finally{g()}}catch(t){c(t)}finally{try{v.$digest()}catch(t){c(t);throw t;}}},$applyAsync:function(n){function i(){t.$eval(n)}var t=this;n&&k.push(i);n=l(n);ot()},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){var i=r.indexOf(t);i!==-1&&(r[i]=null,rt(u,1,n))}},$emit:function(n){var o=[],u,r=this,e=!1,t={name:n,targetScope:r,stopPropagation:function(){e=!0},preventDefault:function(){t.defaultPrevented=!0},defaultPrevented:!1},s=ar([t],arguments,1),i,f;do{for(u=r.$$listeners[n]||o,t.currentScope=r,i=0,f=u.length;i<f;i++){if(!u[i]){u.splice(i,1);i--;f--;continue}try{u[i].apply(null,s)}catch(h){c(h)}}if(e)return t.currentScope=null,t;r=r.$parent}while(r);return t.currentScope=null,t},$broadcast:function(n){var r=this,t=r,e=r,u={name:n,targetScope:r,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},s,f,i,o;if(!r.$$listenerCount[n])return u;for(s=ar([u],arguments,1);t=e;){for(u.currentScope=t,f=t.$$listeners[n]||[],i=0,o=f.length;i<o;i++){if(!f[i]){f.splice(i,1);i--;o--;continue}try{f[i].apply(null,s)}catch(h){c(h)}}if(!(e=t.$$listenerCount[n]&&t.$$childHead||t!==r&&t.$$nextSibling))while(t!==r&&!(e=t.$$nextSibling))t=t.$parent}return u.currentScope=null,u}};var v=new p,y=v.$$asyncQueue=[],w=v.$$postDigestQueue=[],k=v.$$applyAsyncQueue=[],d=0;return v}]}function ek(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return r(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return r(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return(u=fi(i).href,u!==""&&!u.match(f))?"unsafe:"+u:i}}}function yo(n){return n.replace(ok,he)}function sk(n){if(n==="self")return n;if(h(n)){if(n.indexOf("***")>-1)throw ui("iwcard","Illegal sequence *** in string matcher.  String: {0}",n);return n=gf(n).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+n+"$")}if(or(n))return new RegExp("^"+n.source+"$");throw ui("imatcher",'Matchers may only be "self", string patterns or RegExp objects');}function el(n){var i=[];return r(n)&&t(n,function(n){i.push(sk(n))}),i}function hk(){this.SCE_CONTEXTS=ct;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=el(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=el(n)),t};this.$get=["$injector",function(i){function s(n,t){return n==="self"?sl(t):!!n.exec(t.href)}function h(i){for(var e=fi(i.toString()),f=!1,r=0,u=n.length;r<u;r++)if(s(n[r],e)){f=!0;break}if(f)for(r=0,u=t.length;r<u;r++)if(s(t[r],e)){f=!1;break}return f}function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function c(n,t){var i=r.hasOwnProperty(n)?r[n]:null;if(!i)throw ui("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",n,t);if(t===null||u(t)||t==="")return t;if(typeof t!="string")throw ui("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",n);return new i(t)}function l(n){return n instanceof e?n.$$unwrapTrustedValue():n}function a(n,t){if(t===null||u(t)||t==="")return t;var i=r.hasOwnProperty(n)?r[n]:null;if(i&&t instanceof i)return t.$$unwrapTrustedValue();if(n===ct.RESOURCE_URL){if(h(t))return t;throw ui("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString());}else if(n===ct.HTML)return o(t);throw ui("unsafe","Attempting to use an unsafe value in a safe context.");}var o=function(){throw ui("unsafe","Attempting to use an unsafe value in a safe context.");},e,r;return i.has("$sanitize")&&(o=i.get("$sanitize")),e=f(),r={},r[ct.HTML]=f(e),r[ct.CSS]=f(e),r[ct.URL]=f(e),r[ct.JS]=f(e),r[ct.RESOURCE_URL]=f(r[ct.URL]),{trustAs:c,getTrusted:a,valueOf:l}}]}function ck(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sceDelegate",function(i,r){var u;if(n&&at<8)throw ui("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");u=pt(ct);u.isEnabled=function(){return n};u.trustAs=r.trustAs;u.getTrusted=r.getTrusted;u.valueOf=r.valueOf;n||(u.trustAs=u.getTrusted=function(n,t){return t},u.valueOf=er);u.parseAs=function(n,t){var r=i(t);return r.literal&&r.constant?r:i(t,function(t){return u.getTrusted(n,t)})};var f=u.parseAs,e=u.getTrusted,o=u.trustAs;return t(ct,function(n,t){var i=a(t);u[yo("parse_as_"+i)]=function(t){return f(n,t)};u[yo("get_trusted_"+i)]=function(t){return e(n,t)};u[yo("trust_as_"+i)]=function(t){return o(n,t)}}),u}]}function lk(){this.$get=["$window","$document",function(n,t){var r={},h=n.nw&&n.nw.process,c=!h&&n.chrome&&(n.chrome.app&&n.chrome.app.runtime||!n.chrome.app&&n.chrome.runtime&&n.chrome.runtime.id),l=!c&&n.history&&n.history.pushState,e=tt((/android (\d+)/.exec(a((n.navigator||{}).userAgent))||[])[1]),v=/Boxee/i.test((n.navigator||{}).userAgent),f=t[0]||{},i=f.body&&f.body.style,o=!1,s=!1;return i&&(o=!!("transition"in i||"webkitTransition"in i),s=!!("animation"in i||"webkitAnimation"in i)),{history:!!(l&&!(e<4)&&!v),hasEvent:function(n){if(n==="input"&&at)return!1;if(u(r[n])){var t=f.createElement("div");r[n]="on"+n in t}return r[n]},csp:ti(),transitions:o,animations:s,android:e}}]}function ak(){var n;this.httpOptions=function(t){return t?(n=t,this):n};this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,i,r,f,e){function o(s,l){function y(n){return l||(n=ol("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,n.status,n.statusText),t(n)),f.reject(n)}o.totalPendingRequests++;(!h(s)||u(i.get(s)))&&(s=e.getTrustedResourceUrl(s));var a=r.defaults&&r.defaults.transformResponse;return c(a)?a=a.filter(function(n){return n!==ro}):a===ro&&(a=null),r.get(s,v({cache:i,transformResponse:a},n)).finally(function(){o.totalPendingRequests--}).then(function(n){return i.put(s,n.data),n.data},y)}return o.totalPendingRequests=0,o}]}function vk(){this.$get=["$rootScope","$browser","$location",function(n,i,r){var u={};return u.findBindings=function(n,i,r){var f=n.getElementsByClassName("ng-binding"),u=[];return t(f,function(n){var f=ut.element(n).data("$binding");f&&t(f,function(t){if(r){var f=new RegExp("(^|\\s)"+gf(i)+"(\\s|\\||$)");f.test(t)&&u.push(n)}else t.indexOf(i)!==-1&&u.push(n)})}),u},u.findModels=function(n,t,i){for(var u=["ng-","data-ng-","ng\\:"],r=0;r<u.length;++r){var e=i?"=":"*=",o="["+u[r]+"model"+e+'"'+t+'"]',f=n.querySelectorAll(o);if(f.length)return f}},u.getLocation=function(){return r.url()},u.setLocation=function(t){t!==r.url()&&(r.url(t),n.$digest())},u.whenStable=function(n){i.notifyWhenNoOutstandingRequests(n)},u}]}function yk(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,u,f){function h(h,c,l){e(h)||(l=c,c=h,h=s);var w=bi(arguments,3),p=r(l)&&!l,a=(p?u:i).defer(),v=a.promise,y;return y=t.defer(function(){try{a.resolve(h.apply(null,w))}catch(t){a.reject(t);f(t)}finally{delete o[v.$$timeoutId]}p||n.$apply()},c),v.$$timeoutId=y,o[y]=a,v}var o={};return h.cancel=function(n){return n&&n.$$timeoutId in o?(fl(o[n.$$timeoutId].promise),o[n.$$timeoutId].reject("canceled"),delete o[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},h}]}function fi(n){var t=n;return at&&(d.setAttribute("href",t),t=d.href),d.setAttribute("href",t),{href:d.href,protocol:d.protocol?d.protocol.replace(/:$/,""):"",host:d.host,search:d.search?d.search.replace(/^\?/,""):"",hash:d.hash?d.hash.replace(/^#/,""):"",hostname:d.hostname,port:d.port,pathname:d.pathname.charAt(0)==="/"?d.pathname:"/"+d.pathname}}function sl(n){var t=h(n)?fi(n):n;return t.protocol===po.protocol&&t.host===po.host}function pk(){this.$get=ot(n)}function hl(n){function e(n){try{return n.cookie||""}catch(t){return""}}function r(n){try{return decodeURIComponent(n)}catch(t){return n}}var f=n[0]||{},t={},i="";return function(){var h,n,o,s,c,l=e(f);if(l!==i)for(i=l,h=i.split("; "),t={},o=0;o<h.length;o++)n=h[o],s=n.indexOf("="),s>0&&(c=r(n.substring(0,s)),u(t[c])&&(t[c]=r(n.substring(s+1))));return t}}function wk(){this.$get=hl}function cl(n){function i(u,f){if(o(u)){var e={};return t(u,function(n,t){e[t]=i(t,n)}),e}return n.factory(u+r,f)}var r="Filter";this.register=i;this.$get=["$injector",function(n){return function(t){return n.get(t+r)}}];i("currency",vl);i("date",kl);i("filter",bk);i("json",od);i("limitTo",sd);i("lowercase",dl);i("number",yl);i("orderBy",na);i("uppercase",gl)}function bk(){return function(n,t,i,r){if(!gt(n)){if(n==null)return n;throw l("filter")("notarray","Expected array but received: {0}",n);}r=r||"$";var e=wo(t),u,f;switch(e){case"function":u=t;break;case"boolean":case"null":case"number":case"string":f=!0;case"object":u=kk(t,i,r,f);break;default:return n}return Array.prototype.filter.call(n,u)}}function kk(n,t,i,r){var f=o(n)&&i in n;return t===!0?t=st:e(t)||(t=function(n,t){return u(n)?!1:n===null||t===null?n===t:o(t)||o(n)&&!kf(n)?!1:(n=a(""+n),t=a(""+t),n.indexOf(t)!==-1)}),function(u){return f&&!o(u)?yi(u,n[i],t,i,!1):yi(u,n,t,i,r)}}function yi(n,t,i,r,f,o){var y=wo(n),a=wo(t),s,h,l,v;if(a==="string"&&t.charAt(0)==="!")return!yi(n,t.substring(1),i,r,f);if(c(n))return n.some(function(n){return yi(n,t,i,r,f)});switch(y){case"object":if(f){for(s in n)if(s.charAt&&s.charAt(0)!=="$"&&yi(n[s],t,i,r,!0))return!0;return o?!1:yi(n,t,i,r,!1)}if(a==="object"){for(s in t)if((h=t[s],!e(h)&&!u(h))&&(l=s===r,v=l?n:n[s],!yi(v,h,i,r,l,l)))return!1;return!0}return i(n,t);case"function":return!1;default:return i(n,t)}}function wo(n){return n===null?"null":typeof n}function vl(n){var t=n.NUMBER_FORMATS;return function(n,i,r){return u(i)&&(i=t.CURRENCY_SYM),u(r)&&(r=t.PATTERNS[1].maxFrac),n==null?n:pl(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,i)}}function yl(n){var t=n.NUMBER_FORMATS;return function(n,i){return n==null?n:pl(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function dk(n){var e=0,r,t,i,f,u;for((t=n.indexOf(al))>-1&&(n=n.replace(al,"")),(i=n.search(/e/i))>0?(t<0&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):t<0&&(t=n.length),i=0;n.charAt(i)===bo;i++);if(i===(u=n.length))r=[0],t=1;else{for(u--;n.charAt(u)===bo;)u--;for(t-=i,r=[],f=0;i<=u;i++,f++)r[f]=+n.charAt(i)}return t>ll&&(r=r.splice(0,ll-1),e=t-1,t=1),{d:r,e:e,i:t}}function gk(n,t,i,r){var f=n.d,o=f.length-n.i,e,a,s,h,c,l;if(t=u(t)?Math.min(Math.max(i,o),r):+t,e=t+n.i,a=f[e],e>0)for(f.splice(Math.max(n.i,e)),s=e;s<f.length;s++)f[s]=0;else for(o=Math.max(0,o),n.i=1,f.length=Math.max(1,e=t+1),f[0]=0,h=1;h<e;h++)f[h]=0;if(a>=5)if(e-1<0){for(c=0;c>e;c--)f.unshift(0),n.i++;f.unshift(1);n.i++}else f[e-1]++;for(;o<Math.max(0,t);o++)f.push(0);l=f.reduceRight(function(n,t,i,r){return t=t+n,r[i]=t%10,Math.floor(t/10)},0);l&&(f.unshift(l),n.i++)}function pl(n,t,i,r,u){var s;if(!(h(n)||g(n))||isNaN(n))return"";var y=!isFinite(n),a=!1,p=Math.abs(n)+"",e="",o;if(y)e="∞";else{o=dk(p);gk(o,u,t.minFrac,t.maxFrac);var f=o.d,c=o.i,v=o.e,l=[];for(a=f.reduce(function(n,t){return n&&!t},!0);c<0;)f.unshift(0),c++;for(c>0?l=f.splice(c,f.length):(l=f,f=[0]),s=[],f.length>=t.lgSize&&s.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)s.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&s.unshift(f.join(""));e=s.join(i);l.length&&(e+=r+l.join(""));v&&(e+="e+"+v)}return n<0&&!a?t.negPre+e+t.negSuf:t.posPre+e+t.posSuf}function ff(n,t,i,r){var u="";for((n<0||r&&n<=0)&&(r?n=-n+1:(n=-n,u="-")),n=""+n;n.length<t;)n=bo+n;return i&&(n=n.substr(n.length-t)),u+n}function nt(n,t,i,r,u){return i=i||0,function(f){var e=f["get"+n]();return(i>0||e>-i)&&(e+=i),e===0&&i===-12&&(e=12),ff(e,t,r,u)}}function iu(n,t,i){return function(r,u){var f=r["get"+n](),e=(i?"STANDALONE":"")+(t?"SHORT":""),o=fr(e+n);return u[o][f]}}function nd(n,t,i){var r=-1*i,u=r>=0?"+":"";return u+(ff(Math[r>0?"floor":"ceil"](r/60),2)+ff(Math.abs(r%60),2))}function wl(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(t<=4?5:12)-t)}function td(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function bl(n){return function(t){var i=wl(t.getFullYear()),r=td(t),u=+r-+i,f=1+Math.round(u/6048e5);return ff(f,n)}}function id(n,t){return n.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function ko(n,t){return n.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function rd(n,t){return n.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function kl(n){function r(n){var t;if(t=n.match(i)){var r=new Date(0),u=0,f=0,e=t[8]?r.setUTCFullYear:r.setFullYear,o=t[8]?r.setUTCHours:r.setHours;t[9]&&(u=tt(t[9]+t[10]),f=tt(t[9]+t[11]));e.call(r,tt(t[1]),tt(t[2])-1,tt(t[3]));var s=tt(t[4]||0)-u,h=tt(t[5]||0)-f,c=tt(t[6]||0),l=Math.round(parseFloat("0."+(t[7]||0))*1e3);return o.call(r,s,h,c,l),r}return n}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,u,f){var l="",e=[],s,c,o;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,h(i)&&(i=ed.test(i)?tt(i):r(i)),g(i)&&(i=new Date(i)),!ft(i)||!isFinite(i.getTime()))return i;while(u)c=fd.exec(u),c?(e=ar(e,c,1),u=e.pop()):(e.push(u),u=null);return o=i.getTimezoneOffset(),f&&(o=ks(f,o),i=re(i,f,!0)),t(e,function(t){s=ud[t];l+=s?s(i,n.DATETIME_FORMATS,o):t==="''"?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function od(){return function(n,t){return u(t)&&(t=2),vr(n,t)}}function sd(){return function(n,t,i){return(t=Math.abs(Number(t))===Infinity?Number(t):tt(t),it(t))?n:(g(n)&&(n=n.toString()),!gt(n))?n:(i=!i||isNaN(i)?0:tt(i),i=i<0?Math.max(0,n.length+i):i,t>=0?go(n,i,i+t):i===0?go(n,t,n.length):go(n,Math.max(0,i+t),i))}}function go(n,t,i){return h(n)?n.slice(t,i):wi.call(n,t,i)}function na(n){function r(t){return t.map(function(t){var r=1,i=er,u;return e(t)?i=t:h(t)&&((t.charAt(0)==="+"||t.charAt(0)==="-")&&(r=t.charAt(0)==="-"?-1:1,t=t.substring(1)),t!==""&&(i=n(t),i.constant&&(u=i(),i=function(n){return n[u]}))),{get:i,descending:r}})}function t(n){switch(typeof n){case"number":case"boolean":case"string":return!0;default:return!1}}function u(n){return e(n.valueOf)&&(n=n.valueOf(),t(n))?n:(kf(n)&&(n=n.toString(),t(n)),n)}function f(n,t){var i=typeof n;return n===null?(i="string",n="null"):i==="object"&&(n=u(n)),{value:n,type:i,index:t}}function i(n,t){var f=0,u=n.type,e=t.type,i,r;return u===e?(i=n.value,r=t.value,u==="string"?(i=i.toLowerCase(),r=r.toLowerCase()):u==="object"&&(o(i)&&(i=n.index),o(r)&&(r=t.index)),i!==r&&(f=i<r?-1:1)):f=u<e?-1:1,f}return function(n,t,u,o){function y(n,t){return{value:n,tieBreaker:{value:t,type:"number",index:t},predicateValues:s.map(function(i){return f(i.get(n),t)})}}function p(n,t){for(var u,r=0,f=s.length;r<f;r++)if(u=a(n.predicateValues[r],t.predicateValues[r]),u)return u*s[r].descending*h;return(a(n.tieBreaker,t.tieBreaker)||i(n.tieBreaker,t.tieBreaker))*h}if(n==null)return n;if(!gt(n))throw l("orderBy")("notarray","Expected array but received: {0}",n);c(t)||(t=[t]);t.length===0&&(t=["+"]);var s=r(t),h=u?-1:1,a=e(o)?o:i,v=Array.prototype.map.call(n,y);return v.sort(p),v.map(function(n){return n.value})}}function tr(n){return e(n)&&(n={link:n}),n.restrict=n.restrict||"AC",ot(n)}function hd(n,t){n.$name=t}function of(n,t,i,r,u){this.$$controls=[];this.$error={};this.$$success={};this.$pending=undefined;this.$name=u(t.name||t.ngForm||"")(i);this.$dirty=!1;this.$pristine=!0;this.$valid=!0;this.$invalid=!1;this.$submitted=!1;this.$$parentForm=ef;this.$$element=n;this.$$animate=r;fa(this)}function fa(n){n.$$classCache={};n.$$classCache[ka]=!(n.$$classCache[fu]=n.$$element.hasClass(fu))}function ea(n){function o(n,t,i,u){n[t]||(n[t]={});r(n[t],i,u)}function s(n,i,r,u){n[i]&&t(n[i],r,u);oa(n[i])&&(n[i]=undefined)}function i(n,t,i){i&&!n.$$classCache[t]?(n.$$animate.addClass(n.$$element,t),n.$$classCache[t]=!0):!i&&n.$$classCache[t]&&(n.$$animate.removeClass(n.$$element,t),n.$$classCache[t]=!1)}function f(n,t,r){t=t?"-"+rh(t,"-"):"";i(n,fu+t,r===!0);i(n,ka+t,r===!1)}var e=n.clazz,r=n.set,t=n.unset;e.prototype.$setValidity=function(n,e,h){u(e)?o(this,"$pending",n,h):s(this,"$pending",n,h);ni(e)?e?(t(this.$error,n,h),r(this.$$success,n,h)):(r(this.$error,n,h),t(this.$$success,n,h)):(t(this.$error,n,h),t(this.$$success,n,h));this.$pending?(i(this,ia,!0),this.$valid=this.$invalid=undefined,f(this,"",null)):(i(this,ia,!1),this.$valid=oa(this.$error),this.$invalid=!this.$valid,f(this,"",this.$valid));var c;c=this.$pending&&this.$pending[n]?undefined:this.$error[n]?!1:this.$$success[n]?!0:null;f(this,n,c);this.$$parentForm.$setValidity(n,c,this)}}function oa(n){if(n)for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function is(n){n.$formatters.push(function(t){return n.$isEmpty(t)?t:t.toString()})}function bd(n,t,i,r,u,f){ir(n,t,i,r,u,f);is(r)}function ir(n,t,i,r,u,f){var h=a(t[0].type),s,e,o,c;if(!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(n){if(e&&(f.defer.cancel(e),e=null),!s){var u=t.val(),o=n&&n.type;h==="password"||i.ngTrim&&i.ngTrim==="false"||(u=y(u));(r.$viewValue!==u||u===""&&r.$$hasNativeValidators)&&r.$setViewValue(u,o)}},u.hasEvent("input"))t.on("input",o);else{c=function(n,t,i){e||(e=f.defer(function(){e=null;t&&t.value===i||o(n)}))};t.on("keydown",function(n){var t=n.keyCode;t===91||15<t&&t<19||37<=t&&t<=40||c(n,this,this.value)});if(u.hasEvent("paste"))t.on("paste cut",c)}t.on("change",o);if(aa[h]&&r.$$hasNativeValidators&&h===i.type)t.on(wd,function(n){if(!e){var t=this[hs],i=t.badInput,r=t.typeMismatch;e=f.defer(function(){e=null;(t.badInput!==i||t.typeMismatch!==r)&&o(n)})}});r.$render=function(){var n=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==n&&t.val(n)}}function kd(n,t){var i;if(ft(n))return n;if(h(n)&&(ns.lastIndex=0,i=ns.exec(n),i)){var r=+i[1],s=+i[2],u=0,f=0,e=0,o=0,c=wl(r),l=(s-1)*7;return t&&(u=t.getHours(),f=t.getMinutes(),e=t.getSeconds(),o=t.getMilliseconds()),new Date(r,0,c.getDate()+l,u,f,e,o)}return NaN}function sf(n,i){return function(r,u){var e,f;if(ft(r))return r;if(h(r)){if(r.charAt(0)==='"'&&r.charAt(r.length-1)==='"'&&(r=r.substring(1,r.length-1)),ad.test(r))return new Date(r);if(n.lastIndex=0,e=n.exec(r),e)return e.shift(),f=u?{yyyy:u.getFullYear(),MM:u.getMonth()+1,dd:u.getDate(),HH:u.getHours(),mm:u.getMinutes(),ss:u.getSeconds(),sss:u.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},t(e,function(n,t){t<i.length&&(f[i[t]]=+n)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,f.sss*1e3||0)}return NaN}}function uu(n,t,i,f){return function(e,o,s,h,c,l,a){function b(n){return n&&!(n.getTime&&n.getTime()!==n.getTime())}function k(n){return r(n)&&!ft(n)?i(n)||undefined:n}var v,y,p,w;rs(e,o,s,h);ir(e,o,s,h,c,l);v=h&&h.$options.getOption("timezone");h.$$parserName=n;h.$parsers.push(function(n){if(h.$isEmpty(n))return null;if(t.test(n)){var r=i(n,y);return v&&(r=re(r,v)),r}return undefined});h.$formatters.push(function(n){if(n&&!ft(n))throw eu("datefmt","Expected `{0}` to be a date",n);return b(n)?(y=n,y&&v&&(y=re(y,v,!0)),a("date")(n,f,v)):(y=null,"")});(r(s.min)||s.ngMin)&&(h.$validators.min=function(n){return!b(n)||u(p)||i(n)>=p},s.$observe("min",function(n){p=k(n);h.$validate()}));(r(s.max)||s.ngMax)&&(h.$validators.max=function(n){return!b(n)||u(w)||i(n)<=w},s.$observe("max",function(n){w=k(n);h.$validate()}))}}function rs(n,t,i,r){var u=t[0],f=r.$$hasNativeValidators=o(u.validity);f&&r.$parsers.push(function(n){var i=t.prop(hs)||{};return i.badInput||i.typeMismatch?undefined:n})}function va(n){n.$$parserName="number";n.$parsers.push(function(t){return n.$isEmpty(t)?null:pd.test(t)?parseFloat(t):undefined});n.$formatters.push(function(t){if(!n.$isEmpty(t)){if(!g(t))throw eu("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function rr(n){return r(n)&&!g(n)&&(n=parseFloat(n)),it(n)?undefined:n}function us(n){return(n|0)===n}function fs(n){var t=n.toString(),r=t.indexOf("."),i;return r===-1?-1<n&&n<1&&(i=/e-(\d+)$/.exec(t),i)?Number(i[1]):0:t.length-r-1}function ya(n,t,i){var r=Number(n),u=!us(r),f=!us(t),e=!us(i);if(u||f||e){var s=u?fs(r):0,h=f?fs(t):0,c=e?fs(i):0,l=Math.max(s,h,c),o=Math.pow(10,l);r=r*o;t=t*o;i=i*o;u&&(r=Math.round(r));f&&(t=Math.round(t));e&&(i=Math.round(i))}return(r-t)%i==0}function dd(n,t,i,f,e,o){var s,h,c;rs(n,t,i,f);va(f);ir(n,t,i,f,e,o);(r(i.min)||i.ngMin)&&(f.$validators.min=function(n){return f.$isEmpty(n)||u(s)||n>=s},i.$observe("min",function(n){s=rr(n);f.$validate()}));(r(i.max)||i.ngMax)&&(f.$validators.max=function(n){return f.$isEmpty(n)||u(h)||n<=h},i.$observe("max",function(n){h=rr(n);f.$validate()}));(r(i.step)||i.ngStep)&&(f.$validators.step=function(n,t){return f.$isEmpty(t)||u(c)||ya(t,s||0,c)},i.$observe("step",function(n){c=rr(n);f.$validate()}))}function gd(n,t,i,f,e,o){function v(n,r){t.attr(n,i[n]);i.$observe(n,r)}function k(n){if(h=rr(n),!it(f.$modelValue))if(s){var i=t.val();h>i&&(i=h,t.val(i));f.$setViewValue(i)}else f.$validate()}function d(n){if(c=rr(n),!it(f.$modelValue))if(s){var i=t.val();c<i&&(t.val(c),i=c<h?h:c);f.$setViewValue(i)}else f.$validate()}function g(n){(l=rr(n),it(f.$modelValue))||(s&&f.$viewValue!==t.val()?f.$setViewValue(t.val()):f.$validate())}rs(n,t,i,f);va(f);ir(n,t,i,f,e,o);var s=f.$$hasNativeValidators&&t[0].type==="range",h=s?0:undefined,c=s?100:undefined,l=s?1:undefined,a=t[0].validity,p=r(i.min),w=r(i.max),b=r(i.step),y=f.$render;f.$render=s&&r(a.rangeUnderflow)&&r(a.rangeOverflow)?function(){y();f.$setViewValue(t.val())}:y;p&&(f.$validators.min=s?function(){return!0}:function(n,t){return f.$isEmpty(t)||u(h)||t>=h},v("min",k));w&&(f.$validators.max=s?function(){return!0}:function(n,t){return f.$isEmpty(t)||u(c)||t<=c},v("max",d));b&&(f.$validators.step=s?function(){return!a.stepMismatch}:function(n,t){return f.$isEmpty(t)||u(l)||ya(t,h||0,l)},v("step",g))}function ng(n,t,i,r,u,f){ir(n,t,i,r,u,f);is(r);r.$$parserName="url";r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||vd.test(i)}}function tg(n,t,i,r,u,f){ir(n,t,i,r,u,f);is(r);r.$$parserName="email";r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||yd.test(i)}}function ig(n,t,i,r){var f=!i.ngTrim||y(i.ngTrim)!=="false",e;u(i.name)&&t.attr("name",ou());e=function(n){var u;t[0].checked&&(u=i.value,f&&(u=y(u)),r.$setViewValue(u,n&&n.type))};t.on("click",e);r.$render=function(){var n=i.value;f&&(n=y(n));t[0].checked=n===r.$viewValue};i.$observe("value",r.$render)}function pa(n,t,i,u,f){var e;if(r(u)){if(e=n(u),!e.constant)throw eu("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",i,u);return e(t)}return f}function rg(n,t,i,r,u,f,e,o){var s=pa(o,n,"ngTrueValue",i.ngTrueValue,!0),h=pa(o,n,"ngFalseValue",i.ngFalseValue,!1),c=function(n){r.$setViewValue(t[0].checked,n&&n.type)};t.on("click",c);r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return n===!1};r.$formatters.push(function(n){return st(n,s)});r.$parsers.push(function(n){return n?s:h})}function es(n,i){function s(n,t){var u,i,f,r;if(!n||!n.length)return[];if(!t||!t.length)return n;u=[];n:for(i=0;i<n.length;i++){for(f=n[i],r=0;r<t.length;r++)if(f===t[r])continue n;u.push(f)}return u}function r(n){return n&&n.split(" ")}function e(n){var t=n;return c(n)?t=n.map(e).join(" "):o(n)&&(t=Object.keys(n).filter(function(t){return n[t]}).join(" ")),t}function h(n){var t=n,i;return c(n)?t=n.map(h):o(n)&&(i=!1,t=Object.keys(n).filter(function(t){var r=n[t];return!i&&u(r)&&(i=!0),r}),i&&t.push(undefined)),t}n="ngClass"+n;var f;return["$parse",function(u){return{restrict:"AC",link:function(o,c,l){function it(n){n=y(r(n),1);l.$addClass(n)}function rt(n){n=y(r(n),-1);l.$removeClass(n)}function ut(n,t){var i=r(n),u=r(t),f=s(i,u),e=s(u,i),o=y(f,-1),h=y(e,1);l.$addClass(h);l.$removeClass(o)}function y(n,i){var r=[];return t(n,function(n){(i>0||a[n])&&(a[n]=(a[n]||0)+i,a[n]===+(i>0)&&r.push(n))}),r.join(" ")}function ft(n){n===i?it(v):rt(v);k=n}function et(n){var t=e(n);t!==v&&d(t)}function d(n){k===i&&ut(v,n);v=n}var w=l[n].trim(),b=w.charAt(0)===":"&&w.charAt(1)===":",g=b?h:e,nt=u(w,g),tt=b?et:d,a=c.data("$classCounts"),k=!0,v;a||(a=p(),c.data("$classCounts",a));n!=="ngClass"&&(f||(f=u("$index",function(n){return n&1})),o.$watch(f,ft));o.$watch(nt,tt,b)}}}]}function cf(n,t,i,r,u,f,e,o,s){this.$viewValue=Number.NaN;this.$modelValue=Number.NaN;this.$$rawModelValue=undefined;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=undefined;this.$name=s(i.name||"",!1)(n);this.$$parentForm=ef;this.$options=lf;this.$$parsedNgModel=u(i.ngModel);this.$$parsedNgModelAssign=this.$$parsedNgModel.assign;this.$$ngModelGet=this.$$parsedNgModel;this.$$ngModelSet=this.$$parsedNgModelAssign;this.$$pendingDebounce=null;this.$$parserValid=undefined;this.$$currentValidationRunId=0;Object.defineProperty(this,"$$scope",{value:n});this.$$attr=i;this.$$element=r;this.$$animate=f;this.$$timeout=e;this.$$parse=u;this.$$q=o;this.$$exceptionHandler=t;fa(this);nn(this)}function nn(n){n.$$scope.$watch(function(t){var i=n.$$ngModelGet(t);if(i!==n.$modelValue&&(n.$modelValue===n.$modelValue||i===i)){n.$modelValue=n.$$rawModelValue=i;n.$$parserValid=undefined;for(var u=n.$formatters,f=u.length,r=i;f--;)r=u[f](r);n.$viewValue!==r&&(n.$$updateEmptyClasses(r),n.$viewValue=n.$$lastCommittedViewValue=r,n.$render(),n.$$runValidators(n.$modelValue,n.$viewValue,s))}return i})}function ss(n){this.$$options=n}function uv(n,i){t(i,function(t,i){r(n[i])||(n[i]=t)})}function pi(n,t){n.prop("selected",t);n.attr("selected",t)}var af={objectMaxDepth:5},av=/^\/(.+)\/([a-z]*)$/,hs="validity",lt=Object.prototype.hasOwnProperty,a=function(n){return h(n)?n.toLowerCase():n},fr=function(n){return h(n)?n.toUpperCase():n},vv=function(n){return h(n)?n.replace(/[A-Z]/g,function(n){return String.fromCharCode(n.charCodeAt(0)|32)}):n},yv=function(n){return h(n)?n.replace(/[a-z]/g,function(n){return String.fromCharCode(n.charCodeAt(0)&-33)}):n},it,c,ys,y,gf,ti,lr,bs,si,nh,ih,fe,oh,gi,sh,ch,hi,br,we,be,wh,k,nf,ke,ic,de,ge,ri,cc,vc,vi,pc,tu,bc,uf,i,ho,co,ol,d,po,dl,gl,ta,ru,ts,tv,lf,iv,rv;"i"!=="I".toLowerCase()&&(a=vv,fr=yv);var at,f,bt,wi=[].slice,pv=[].splice,wv=[].push,rt=Object.prototype.toString,cs=Object.getPrototypeOf,ei=l("ng"),ut=n.angular||(n.angular={}),yf,bv=0;at=n.document.documentMode;it=Number.isNaN||function(n){return n!==n};s.$inject=[];er.$inject=[];c=Array.isArray;ys=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;y=function(n){return h(n)?n.trim():n};gf=function(n){return n.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};ti=function(){function u(){try{return new Function(""),!1}catch(n){return!0}}var i,t;return r(ti.rules)||(i=n.document.querySelector("[ng-csp]")||n.document.querySelector("[data-ng-csp]"),i?(t=i.getAttribute("ng-csp")||i.getAttribute("data-ng-csp"),ti.rules={noUnsafeEval:!t||t.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!t||t.indexOf("no-inline-style")!==-1}):ti.rules={noUnsafeEval:u(),noInlineStyle:!1}),ti.rules};lr=function(){if(r(lr.name_))return lr.name_;for(var i,e=si.length,u,f,t=0;t<e;++t)if(u=si[t],i=n.document.querySelector("["+u.replace(":","\\:")+"jq]"),i){f=i.getAttribute(u+"jq");break}return lr.name_=f};bs=/:/g;si=["ng-","data-ng-","ng:","x-ng-"];nh=ey(n.document);ih=/[A-Z]/g;fe=!1;var kt=1,ly=2,ii=3,wr=8,fh=9,oe=11;oh={full:"1.6.5",major:1,minor:6,dot:5,codeName:"toffee-salinization"};w.expando="ng339";gi=w.cache={};sh=1;w._data=function(n){return this.cache[n[this.expando]]||{}};var wy=/-([a-z])/g,by=/^-ms-/,lu={mouseleave:"mouseout",mouseenter:"mouseover"},se=l("jqLite");var dy=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,gy=/<|&#?\w+;/,np=/<([\w:-]+)/,tp=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ht={option:[1,'<select multiple="multiple">',"<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};ht.optgroup=ht.option;ht.tbody=ht.tfoot=ht.colgroup=ht.caption=ht.thead;ht.th=ht.td;ch=n.Node.prototype.contains||function(n){return!!(this.compareDocumentPosition(n)&16)};hi=w.prototype={ready:yh,toString:function(){var n=[];return t(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return n>=0?f(this[n]):f(this[this.length+n])},length:0,push:wv,sort:[].sort,splice:[].splice};br={};t("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(n){br[a(n)]=n});we={};t("input,select,option,textarea,button,form,details".split(","),function(n){we[n]=!0});be={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};t({data:ye,removeData:ve,hasData:ip,cleanData:function(n){for(var t=0,i=n.length;t<i;t++)ve(n[t])}},function(n,t){w[t]=n});t({data:ye,inheritedData:ku,scope:function(n){return f.data(n,"$scope")||ku(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return f.data(n,"$isolateScope")||f.data(n,"$isolateScopeNoTemplate")},controller:ah,injector:function(n){return ku(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:pu,css:function(n,t,i){if(t=ky(t),r(i))n.style[t]=i;else return n.style[t]},attr:function(n,t,i){var u,o=n.nodeType,f,e;if(o!==ii&&o!==ly&&o!==wr&&n.getAttribute)if(f=a(t),e=br[f],r(i))i===null||i===!1&&e?n.removeAttribute(t):n.setAttribute(t,e?f:i);else return u=n.getAttribute(t),e&&u!==null&&(u=f),u===null?undefined:u},prop:function(n,t,i){if(r(i))n[t]=i;else return n[t]},text:function(){function n(n,t){if(u(t)){var i=n.nodeType;return i===kt||i===ii?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,i){if(u(i)){if(n.multiple&&vt(n)==="select"){var r=[];return t(n.options,function(n){n.selected&&r.push(n.value||n.text)}),r}return n.value}n.value=i},html:function(n,t){if(u(t))return n.innerHTML;vu(n,!0);n.innerHTML=t},empty:vh},function(n,t){w.prototype[t]=function(t,i){var r,h,e=this.length,f,l,s,c;if(n!==vh&&u(n.length===2&&n!==pu&&n!==ah?t:i)){if(o(t)){for(r=0;r<e;r++)if(n===ye)n(this[r],t);else for(h in t)n(this[r],h,t[h]);return this}for(f=n.$dv,l=u(f)?Math.min(e,1):e,s=0;s<l;s++)c=n(this[s],t,i),f=f?f+c:c;return f}for(r=0;r<e;r++)n(this[r],t,i);return this}});t({removeData:ve,on:function(n,t,i,u){if(r(u))throw se("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(le(n)){var f=yu(n,!0),e=f.events,o=f.handle;o||(o=f.handle=op(n,e));for(var h=t.indexOf(" ")>=0?t.split(" "):[t],c=h.length,s=function(t,r,u){var f=e[t];f||(f=e[t]=[],f.specialHandlerWrapper=r,t==="$destroy"||u||n.addEventListener(t,o));f.push(i)};c--;)t=h[c],lu[t]?(s(lu[t],hp),s(t,undefined,!0)):s(t)}},off:lh,one:function(n,t,i){n=f(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,i){var r,u=n.parentNode;vu(n);t(new w(i),function(t){r?u.insertBefore(t,r.nextSibling):u.replaceChild(t,n);r=t})},children:function(n){var i=[];return t(n.childNodes,function(n){n.nodeType===kt&&i.push(n)}),i},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){var r=n.nodeType,i,u,f;if(r===kt||r===oe)for(t=new w(t),i=0,u=t.length;i<u;i++)f=t[i],n.appendChild(f)},prepend:function(n,i){if(n.nodeType===kt){var r=n.firstChild;t(new w(i),function(t){n.insertBefore(t,r)})}},wrap:function(n,t){up(n,f(t).eq(0).clone()[0])},remove:du,detach:function(n){du(n,!0)},after:function(n,t){var u=n,f=n.parentNode,i,e,r;if(f)for(t=new w(t),i=0,e=t.length;i<e;i++)r=t[i],f.insertBefore(r,u.nextSibling),u=r},addClass:bu,removeClass:wu,toggleClass:function(n,i,r){i&&t(i.split(" "),function(t){var i=r;u(i)&&(i=!pu(n,t));(i?bu:wu)(n,t)})},parent:function(n){var t=n.parentNode;return t&&t.nodeType!==oe?t:null},next:function(n){return n.nextElementSibling},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:ae,triggerHandler:function(n,i,r){var u,f,e,o=i.type||i,h=yu(n),c=h&&h.events,l=c&&c[o];l&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:s,type:o,target:n},i.type&&(u=v(u,i)),f=pt(l),e=r?[u].concat(r):[u],t(f,function(t){u.isImmediatePropagationStopped()||t.apply(n,e)}))}},function(n,t){w.prototype[t]=function(t,i,e){for(var o,s=0,h=this.length;s<h;s++)u(o)?(o=n(this[s],t,i,e),r(o)&&(o=f(o))):pe(o,n(this[s],t,i,e));return r(o)?o:this}});w.prototype.bind=w.prototype.on;w.prototype.unbind=w.prototype.off;wh=Object.create(null);bh.prototype={_idx:function(n){return n===this._lastKey?this._lastIndex:(this._lastKey=n,this._lastIndex=this._keys.indexOf(n),this._lastIndex)},_transformKey:function(n){return it(n)?wh:n},get:function(n){n=this._transformKey(n);var t=this._idx(n);if(t!==-1)return this._values[t]},set:function(n,t){n=this._transformKey(n);var i=this._idx(n);i===-1&&(i=this._lastIndex=this._keys.length);this._keys[i]=n;this._values[i]=t},"delete":function(n){n=this._transformKey(n);var t=this._idx(n);return t===-1?!1:(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var gu=bh,lp=[function(){this.$get=[function(){return gu}]}],ap=/^([^(]+?)=>/,vp=/^[^(]*\(\s*([^)]*)\)/m,yp=/,/,pp=/^\s*(_?)(\S+?)\1\s*$/,wp=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,ci=l("$injector");kr.$$annotate=kp;var gh=l("$animate"),gp=1,nc="ng-animate";var iw=function(){this.$get=s},rw=function(){var n=new gu,i=[];this.$get=["$$AnimateRunner","$rootScope",function(r,u){function f(n,i,r){var u=!1;return i&&(i=h(i)?i.split(" "):c(i)?i:[],t(i,function(t){t&&(u=!0,n[t]=r)})),u}function e(){t(i,function(i){var f=n.get(i);if(f){var e=tw(i.attr("class")),r="",u="";t(f,function(n,t){var i=!!e[t];n!==i&&(n?r+=(r.length?" ":"")+t:u+=(u.length?" ":"")+t)});t(i,function(n){r&&bu(n,r);u&&wu(n,u)});n.delete(i)}});i.length=0}function o(t,r,o){var s=n.get(t)||{},h=f(s,r,!0),c=f(s,o,!1);(h||c)&&(n.set(t,s),i.push(t),i.length===1&&u.$$postDigest(e))}return{enabled:s,on:s,off:s,pin:s,push:function(n,t,i,u){u&&u();i=i||{};i.from&&n.css(i.from);i.to&&n.css(i.to);(i.addClass||i.removeClass)&&o(n,i.addClass,i.removeClass);var f=new r;return f.complete(),f}}}]},uw=["$provide",function(n){var r=this,t=null,i=null;this.$$registeredAnimations=Object.create(null);this.register=function(t,i){if(t&&t.charAt(0)!==".")throw gh("notcsel","Expecting class selector starting with '.' got '{0}'.",t);var u=t+"-animation";r.$$registeredAnimations[t.substr(1)]=u;n.factory(u,i)};this.customFilter=function(n){return arguments.length===1&&(i=e(n)?n:null),i};this.classNameFilter=function(n){if(arguments.length===1&&(t=n instanceof RegExp?n:null,t)){var i=new RegExp("[(\\s|\\/)]"+nc+"[(\\s|\\/)]");if(i.test(t.toString())){t=null;throw gh("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',nc);}}return t};this.$get=["$$animateQueue",function(n){function t(n,t,i){if(i){var r=nw(i);!r||r.parentNode||r.previousElementSibling||(i=null)}i?i.after(n):t.prepend(n)}return{on:n.on,off:n.off,pin:n.pin,enabled:n.enabled,cancel:function(n){n.end&&n.end()},enter:function(i,r,u,e){return r=r&&f(r),u=u&&f(u),r=r||u.parent(),t(i,r,u),n.push(i,"enter",li(e))},move:function(i,r,u,e){return r=r&&f(r),u=u&&f(u),r=r||u.parent(),t(i,r,u),n.push(i,"move",li(e))},leave:function(t,i){return n.push(t,"leave",li(i),function(){t.remove()})},addClass:function(t,i,r){return r=li(r),r.addClass=dr(r.addclass,i),n.push(t,"addClass",r)},removeClass:function(t,i,r){return r=li(r),r.removeClass=dr(r.removeClass,i),n.push(t,"removeClass",r)},setClass:function(t,i,r,u){return u=li(u),u.addClass=dr(u.addClass,i),u.removeClass=dr(u.removeClass,r),n.push(t,"setClass",u)},animate:function(t,i,r,u,f){return f=li(f),f.from=f.from?v(f.from,i):i,f.to=f.to?v(f.to,r):r,u=u||"ng-inline-animate",f.tempClasses=dr(f.tempClasses,u),n.push(t,"animate",f)}}}]}],fw=function(){this.$get=["$$rAF",function(n){function i(i){(t.push(i),t.length>1)||n(function(){for(var n=0;n<t.length;n++)t[n]();t=[]})}var t=[];return function(){var n=!1;return i(function(){n=!0}),function(t){n?t():i(t)}}}]},ew=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(n,i,r,u,f){function e(n){this.setHost(n);var t=r(),i=function(n){f(n,0,!1)};this._doneCallbacks=[];this._tick=function(n){u()?i(n):t(n)};this._state=0}var h=0,c=1,o=2;return e.chain=function(n,t){function r(){if(i===n.length){t(!0);return}n[i](function(n){if(n===!1){t(!1);return}i++;r()})}var i=0;r()},e.all=function(n,i){function f(t){r=r&&t;++u===n.length&&i(r)}var u=0,r=!0;t(n,function(n){n.done(f)})},e.prototype={setHost:function(n){this.host=n||{}},done:function(n){this._state===o?n():this._doneCallbacks.push(n)},progress:s,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,i){t.done(function(t){t===!1?i():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise()["catch"](n)},"finally":function(n){return this.getPromise()["finally"](n)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(n){var t=this;t._state===h&&(t._state=c,t._tick(function(){t._resolve(n)}))},_resolve:function(n){this._state!==o&&(t(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=o)}},e}]},ow=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(n,t,i){return function(t,r){function o(){return n(function(){s();e||f.complete();e=!0}),f}function s(){u.addClass&&(t.addClass(u.addClass),u.addClass=null);u.removeClass&&(t.removeClass(u.removeClass),u.removeClass=null);u.to&&(t.css(u.to),u.to=null)}var u=r||{},e,f;return u.$$prepared||(u=oi(u)),u.cleanupStyles&&(u.from=u.to=null),u.from&&(t.css(u.from),u.from=null),f=new i,{start:o,end:o}}}]};k=l("$compile");nf=new aw;tc.$inject=["$provide","$$sanitizeUriProvider"];tf.prototype.isFirstChange=function(){return this.previousValue===nf};ke=/^((?:x|data)[:\-_])/i;ic=/[:\-_]+(.)/g;de=l("$controller");ge=/^(\S+)(\s+as\s+([\w$]+))?$/;var kw=function(){this.$get=["$document",function(n){return function(t){return t?!t.nodeType&&t instanceof f&&(t=t[0]):t=n[0].body,t.offsetWidth+1}}]},fc="application/json",no={"Content-Type":fc+";charset=utf-8"},dw=/^\[|^\{(?!\{)/,gw={"[":/]$/,"{":/}$/},nb=/^\)]\}',?\n/,to=l("$http");ri=ut.$interpolateMinErr=l("$interpolate");ri.throwNoconcat=function(n){throw ri("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",n);};ri.interr=function(n,t){return ri("interr","Can't interpolate: {0}\n{1}",n,t.toString())};var cb=function(){this.$get=function(){function i(n){var t=function(n){t.data=n;t.called=!0};return t.id=n,t}var t=ut.callbacks,n={};return{createCallback:function(){var r="_"+(t.$$counter++).toString(36),u="angular.callbacks."+r,f=i(r);return n[u]=t[r]=f,u},wasCalled:function(t){return n[t].called},getResponse:function(t){return n[t].data},removeCallback:function(i){var r=n[i];delete t[r.id];delete n[i]}}}},lb=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ab={http:80,https:443,ftp:21},gr=l("$location");cc=/^\s*[\\/]{2,}/;vc={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:rf("$$absUrl"),url:function(n){if(u(n))return this.$$url;var t=lb.exec(n);return(t[1]||n==="")&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||n==="")&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:rf("$$protocol"),host:rf("$$host"),port:rf("$$port"),path:yc("$$path",function(n){return n=n!==null?n.toString():"",n.charAt(0)==="/"?n:"/"+n}),search:function(n,i){switch(arguments.length){case 0:return this.$$search;case 1:if(h(n)||g(n))n=n.toString(),this.$$search=gs(n);else if(o(n))n=oi(n,{}),t(n,function(t,i){t==null&&delete n[i]}),this.$$search=n;else throw gr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");break;default:u(i)||i===null?delete this.$$search[n]:this.$$search[n]=i}return this.$$compose(),this},hash:yc("$$hash",function(n){return n!==null?n.toString():""}),replace:function(){return this.$$replace=!0,this}};t([ac,so,oo],function(n){n.prototype=Object.create(vc);n.prototype.state=function(t){if(!arguments.length)return this.$$state;if(n!==oo||!this.$$html5)throw gr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=u(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});vi=l("$parse");pc={}.constructor.prototype.valueOf;tu=p();t("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(n){tu[n]=!0});bc={n:"\n",f:"\f",r:"\r",t:"\t",v:'\v',"'":"'",'"':'"'};uf=function(n){this.options=n};uf.prototype={constructor:uf,lex:function(n){var t,r;for(this.text=n,this.index=0,this.tokens=[];this.index<this.text.length;)if(t=this.text.charAt(this.index),t==='"'||t==="'")this.readString(t);else if(this.isNumber(t)||t==="."&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var i=t+this.peek(),u=i+this.peek(2),o=tu[t],f=tu[i],e=tu[u];o||f||e?(r=e?u:f?i:t,this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(n,t){return t.indexOf(n)!==-1},peek:function(n){var t=n||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(n){return"0"<=n&&n<="9"&&typeof n=="string"},isWhitespace:function(n){return n===" "||n==="\r"||n==="\t"||n==="\n"||n==='\v'||n===" "},isIdentifierStart:function(n){return this.options.isIdentifierStart?this.options.isIdentifierStart(n,this.codePointAt(n)):this.isValidIdentifierStart(n)},isValidIdentifierStart:function(n){return"a"<=n&&n<="z"||"A"<=n&&n<="Z"||"_"===n||n==="$"},isIdentifierContinue:function(n){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(n,this.codePointAt(n)):this.isValidIdentifierContinue(n)},isValidIdentifierContinue:function(n,t){return this.isValidIdentifierStart(n,t)||this.isNumber(n)},codePointAt:function(n){return n.length===1?n.charCodeAt(0):(n.charCodeAt(0)<<10)+n.charCodeAt(1)-56613888},peekMultichar:function(){var n=this.text.charAt(this.index),t=this.peek(),i,r;return t?(i=n.charCodeAt(0),r=t.charCodeAt(0),i>=55296&&i<=56319&&r>=56320&&r<=57343)?n+t:n:n},isExpOperator:function(n){return n==="-"||n==="+"||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;var u=r(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw vi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",n,u,this.text);},readNumber:function(){for(var n="",r=this.index,t,i;this.index<this.text.length;){if(t=a(this.text.charAt(this.index)),t==="."||this.isNumber(t))n+=t;else if(i=this.peek(),t==="e"&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&n.charAt(n.length-1)==="e")n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||n.charAt(n.length-1)!=="e")break;else this.throwError("Invalid exponent");this.index++}this.tokens.push({index:r,text:n,constant:!0,value:Number(n)})},readIdent:function(){var t=this.index,n;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){if(n=this.peekMultichar(),!this.isIdentifierContinue(n))break;this.index+=n.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(n){var f=this.index,t,r,o;this.index++;for(var i="",e=n,u=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),e+=t,u)t==="u"?(r=this.text.substring(this.index+1,this.index+5),r.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+r+"]"),this.index+=4,i+=String.fromCharCode(parseInt(r,16))):(o=bc[t],i=i+(o||t)),u=!1;else if(t==="\\")u=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:e,constant:!0,value:i});return}i+=t}this.index++}this.throwError("Unterminated quote",f)}};i=function(n,t){this.lexer=n;this.options=t};i.Program="Program";i.ExpressionStatement="ExpressionStatement";i.AssignmentExpression="AssignmentExpression";i.ConditionalExpression="ConditionalExpression";i.LogicalExpression="LogicalExpression";i.BinaryExpression="BinaryExpression";i.UnaryExpression="UnaryExpression";i.CallExpression="CallExpression";i.MemberExpression="MemberExpression";i.Identifier="Identifier";i.Literal="Literal";i.ArrayExpression="ArrayExpression";i.Property="Property";i.ObjectExpression="ObjectExpression";i.ThisExpression="ThisExpression";i.LocalsExpression="LocalsExpression";i.NGValueParameter="NGValueParameter";i.prototype={ast:function(n){this.text=n;this.tokens=this.lexer.lex(n);var t=this.program();return this.tokens.length!==0&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var n=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&n.push(this.expressionStatement()),!this.expect(";"))return{type:i.Program,body:n}},expressionStatement:function(){return{type:i.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var n=this.expression();this.expect("|");)n=this.filter(n);return n},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary();if(this.expect("=")){if(!gc(n))throw vi("lval","Trying to assign a value to a non l-value");n={type:i.AssignmentExpression,left:n,right:this.assignment(),operator:"="}}return n},ternary:function(){var n=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:i.ConditionalExpression,test:n,alternate:t,consequent:r}):n},logicalOR:function(){for(var n=this.logicalAND();this.expect("||");)n={type:i.LogicalExpression,operator:"||",left:n,right:this.logicalAND()};return n},logicalAND:function(){for(var n=this.equality();this.expect("&&");)n={type:i.LogicalExpression,operator:"&&",left:n,right:this.equality()};return n},equality:function(){for(var n=this.relational(),t;t=this.expect("==","!=","===","!==");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.relational()};return n},relational:function(){for(var n=this.additive(),t;t=this.expect("<",">","<=",">=");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.additive()};return n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.multiplicative()};return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.unary()};return n},unary:function(){var n;return(n=this.expect("+","-","!"))?{type:i.UnaryExpression,operator:n.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var n,t;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?n=oi(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?n={type:i.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?n=this.identifier():this.peek().constant?n=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)t.text==="("?(n={type:i.CallExpression,callee:n,arguments:this.parseArguments()},this.consume(")")):t.text==="["?(n={type:i.MemberExpression,object:n,property:this.expression(),computed:!0},this.consume("]")):t.text==="."?n={type:i.MemberExpression,object:n,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return n},filter:function(n){for(var t=[n],r={type:i.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return r},parseArguments:function(){var n=[];if(this.peekToken().text!==")")do n.push(this.filterChain());while(this.expect(","));return n},identifier:function(){var n=this.consume();return n.identifier||this.throwError("is not a valid identifier",n),{type:i.Identifier,name:n.text}},constant:function(){return{type:i.Literal,value:this.consume().value}},arrayDeclaration:function(){var n=[];if(this.peekToken().text!=="]")do{if(this.peek("]"))break;n.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:i.ArrayExpression,elements:n}},object:function(){var t=[],n;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;n={type:i.Property,kind:"init"};this.peek().constant?(n.key=this.constant(),n.computed=!1,this.consume(":"),n.value=this.expression()):this.peek().identifier?(n.key=this.identifier(),n.computed=!1,this.peek(":")?(this.consume(":"),n.value=this.expression()):n.value=n.key):this.peek("[")?(this.consume("["),n.key=this.expression(),this.consume("]"),n.computed=!0,this.consume(":"),n.value=this.expression()):this.throwError("invalid key",this.peek());t.push(n)}while(this.expect(","));return this.consume("}"),{type:i.ObjectExpression,properties:t}},throwError:function(n,t){throw vi("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,n,t.index+1,this.text,this.text.substring(t.index));},consume:function(n){if(this.tokens.length===0)throw vi("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(n);return t||this.throwError("is unexpected, expecting ["+n+"]",this.peek()),t},peekToken:function(){if(this.tokens.length===0)throw vi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(n,t,i,r){return this.peekAhead(0,n,t,i,r)},peekAhead:function(n,t,i,r,u){if(this.tokens.length>n){var e=this.tokens[n],f=e.text;if(f===t||f===i||f===r||f===u||!t&&!i&&!r&&!u)return e}return!1},expect:function(n,t,i,r){var u=this.peek(n,t,i,r);return u?(this.tokens.shift(),u):!1},selfReferential:{"this":{type:i.ThisExpression},$locals:{type:i.LocalsExpression}}};ho=1;co=2;tl.prototype={compile:function(n){var i=this,r,f,u,e,o,s;return this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},b(n,i.$filter),r="",this.stage="assign",(f=nl(n))&&(this.state.computing="assign",u=this.nextId(),this.recurse(f,u),this.return_(u),r="fn.assign="+this.generateFunction("assign","s,v,l")),e=dc(n.body),i.stage="inputs",t(e,function(n,t){var r="fn"+t,u;i.state[r]={vars:[],body:[],own:{}};i.state.computing=r;u=i.nextId();i.recurse(n,u);i.return_(u);i.state.inputs.push({name:r,isPure:n.isPure});n.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(n),o='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",o)(this.$filter,wc,bb,kc),this.state=this.stage=undefined,s},USE:"use",STRICT:"strict",watchFns:function(){var n=[],i=this.state.inputs,r=this;return t(i,function(t){n.push("var "+t.name+"="+r.generateFunction(t.name,"s"));t.isPure&&n.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")}),i.length&&n.push("fn.inputs=["+i.map(function(n){return n.name}).join(",")+"];"),n.join("")},generateFunction:function(n,t){return"function("+t+"){"+this.varsPrefix(n)+this.body(n)+"};"},filterPrefix:function(){var n=[],i=this;return(t(this.state.filters,function(t,r){n.push(t+"=$filter("+i.escape(r)+")")}),n.length)?"var "+n.join(",")+";":""},varsPrefix:function(n){return this.state[n].vars.length?"var "+this.state[n].vars.join(",")+";":""},body:function(n){return this.state[n].body.join("")},recurse:function(n,u,f,e,o,h){var l,a,c=this,y,v,p;if(e=e||s,!h&&r(n.watchId)){u=u||this.nextId();this.if_("i",this.lazyAssign(u,this.computedMember("i",n.watchId)),this.lazyRecurse(n,u,f,e,o,!0));return}switch(n.type){case i.Program:t(n.body,function(t,i){c.recurse(t.expression,undefined,undefined,function(n){a=n});i!==n.body.length-1?c.current().body.push(a,";"):c.return_(a)});break;case i.Literal:v=this.escape(n.value);this.assign(u,v);e(u||v);break;case i.UnaryExpression:this.recurse(n.argument,undefined,undefined,function(n){a=n});v=n.operator+"("+this.ifDefined(a,0)+")";this.assign(u,v);e(v);break;case i.BinaryExpression:this.recurse(n.left,undefined,undefined,function(n){l=n});this.recurse(n.right,undefined,undefined,function(n){a=n});v=n.operator==="+"?this.plus(l,a):n.operator==="-"?this.ifDefined(l,0)+n.operator+this.ifDefined(a,0):"("+l+")"+n.operator+"("+a+")";this.assign(u,v);e(v);break;case i.LogicalExpression:u=u||this.nextId();c.recurse(n.left,u);c.if_(n.operator==="&&"?u:c.not(u),c.lazyRecurse(n.right,u));e(u);break;case i.ConditionalExpression:u=u||this.nextId();c.recurse(n.test,u);c.if_(u,c.lazyRecurse(n.alternate,u),c.lazyRecurse(n.consequent,u));e(u);break;case i.Identifier:u=u||this.nextId();f&&(f.context=c.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),f.computed=!1,f.name=n.name);c.if_(c.stage==="inputs"||c.not(c.getHasOwnProperty("l",n.name)),function(){c.if_(c.stage==="inputs"||"s",function(){o&&o!==1&&c.if_(c.isNull(c.nonComputedMember("s",n.name)),c.lazyAssign(c.nonComputedMember("s",n.name),"{}"));c.assign(u,c.nonComputedMember("s",n.name))})},u&&c.lazyAssign(u,c.nonComputedMember("l",n.name)));e(u);break;case i.MemberExpression:l=f&&(f.context=this.nextId())||this.nextId();u=u||this.nextId();c.recurse(n.object,l,undefined,function(){c.if_(c.notNull(l),function(){n.computed?(a=c.nextId(),c.recurse(n.property,a),c.getStringValue(a),o&&o!==1&&c.if_(c.not(c.computedMember(l,a)),c.lazyAssign(c.computedMember(l,a),"{}")),v=c.computedMember(l,a),c.assign(u,v),f&&(f.computed=!0,f.name=a)):(o&&o!==1&&c.if_(c.isNull(c.nonComputedMember(l,n.property.name)),c.lazyAssign(c.nonComputedMember(l,n.property.name),"{}")),v=c.nonComputedMember(l,n.property.name),c.assign(u,v),f&&(f.computed=!1,f.name=n.property.name))},function(){c.assign(u,"undefined")});e(u)},!!o);break;case i.CallExpression:u=u||this.nextId();n.filter?(a=c.filter(n.callee.name),y=[],t(n.arguments,function(n){var t=c.nextId();c.recurse(n,t);y.push(t)}),v=a+"("+y.join(",")+")",c.assign(u,v),e(u)):(a=c.nextId(),l={},y=[],c.recurse(n.callee,a,l,function(){c.if_(c.notNull(a),function(){t(n.arguments,function(t){c.recurse(t,n.constant?undefined:c.nextId(),undefined,function(n){y.push(n)})});v=l.name?c.member(l.context,l.name,l.computed)+"("+y.join(",")+")":a+"("+y.join(",")+")";c.assign(u,v)},function(){c.assign(u,"undefined")});e(u)}));break;case i.AssignmentExpression:a=this.nextId();l={};this.recurse(n.left,undefined,l,function(){c.if_(c.notNull(l.context),function(){c.recurse(n.right,a);v=c.member(l.context,l.name,l.computed)+n.operator+a;c.assign(u,v);e(u||v)})},1);break;case i.ArrayExpression:y=[];t(n.elements,function(t){c.recurse(t,n.constant?undefined:c.nextId(),undefined,function(n){y.push(n)})});v="["+y.join(",")+"]";this.assign(u,v);e(u||v);break;case i.ObjectExpression:y=[];p=!1;t(n.properties,function(n){n.computed&&(p=!0)});p?(u=u||this.nextId(),this.assign(u,"{}"),t(n.properties,function(n){n.computed?(l=c.nextId(),c.recurse(n.key,l)):l=n.key.type===i.Identifier?n.key.name:""+n.key.value;a=c.nextId();c.recurse(n.value,a);c.assign(c.member(u,l,n.computed),a)})):(t(n.properties,function(t){c.recurse(t.value,n.constant?undefined:c.nextId(),undefined,function(n){y.push(c.escape(t.key.type===i.Identifier?t.key.name:""+t.key.value)+":"+n)})}),v="{"+y.join(",")+"}",this.assign(u,v));e(u||v);break;case i.ThisExpression:this.assign(u,"s");e(u||"s");break;case i.LocalsExpression:this.assign(u,"l");e(u||"l");break;case i.NGValueParameter:this.assign(u,"v");e(u||"v")}},getHasOwnProperty:function(n,t){var i=n+"."+t,r=this.current().own;return r.hasOwnProperty(i)||(r[i]=this.nextId(!1,n+"&&("+this.escape(t)+" in "+n+")")),r[i]},assign:function(n,t){if(n)return this.current().body.push(n,"=",t,";"),n},filter:function(n){return this.state.filters.hasOwnProperty(n)||(this.state.filters[n]=this.nextId(!0)),this.state.filters[n]},ifDefined:function(n,t){return"ifDefined("+n+","+this.escape(t)+")"},plus:function(n,t){return"plus("+n+","+t+")"},return_:function(n){this.current().body.push("return ",n,";")},if_:function(n,t,i){if(n===!0)t();else{var r=this.current().body;r.push("if(",n,"){");t();r.push("}");i&&(r.push("else{"),i(),r.push("}"))}},not:function(n){return"!("+n+")"},isNull:function(n){return n+"==null"},notNull:function(n){return n+"!=null"},nonComputedMember:function(n,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?n+"."+t:n+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(n,t){return n+"["+t+"]"},member:function(n,t,i){return i?this.computedMember(n,t):this.nonComputedMember(n,t)},getStringValue:function(n){this.assign(n,"getStringValue("+n+")")},lazyRecurse:function(n,t,i,r,u,f){var e=this;return function(){e.recurse(n,t,i,r,u,f)}},lazyAssign:function(n,t){var i=this;return function(){i.assign(n,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)},escape:function(n){if(h(n))return"'"+n.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(g(n))return n.toString();if(n===!0)return"true";if(n===!1)return"false";if(n===null)return"null";if(typeof n=="undefined")return"undefined";throw vi("esc","IMPOSSIBLE");},nextId:function(n,t){var i="v"+this.state.nextId++;return n||this.current().vars.push(i+(t?"="+t:"")),i},current:function(){return this.state[this.state.computing]}};il.prototype={compile:function(n){var f=this,h,e,o,i,r,u;return b(n,f.$filter),(h=nl(n))&&(e=this.recurse(h)),o=dc(n.body),o&&(i=[],t(o,function(n,t){var r=f.recurse(n);r.isPure=n.isPure;n.input=r;i.push(r);n.watchId=t})),r=[],t(n.body,function(n){r.push(f.recurse(n.expression))}),u=n.body.length===0?s:n.body.length===1?r[0]:function(n,i){var u;return t(r,function(t){u=t(n,i)}),u},e&&(u.assign=function(n,t,i){return e(n,i,t)}),i&&(u.inputs=i),u},recurse:function(n,r,u){var o,e,s=this,f;if(n.input)return this.inputs(n.input,n.watchId);switch(n.type){case i.Literal:return this.value(n.value,r);case i.UnaryExpression:return e=this.recurse(n.argument),this["unary"+n.operator](e,r);case i.BinaryExpression:return o=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](o,e,r);case i.LogicalExpression:return o=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](o,e,r);case i.ConditionalExpression:return this["ternary?:"](this.recurse(n.test),this.recurse(n.alternate),this.recurse(n.consequent),r);case i.Identifier:return s.identifier(n.name,r,u);case i.MemberExpression:return o=this.recurse(n.object,!1,!!u),n.computed||(e=n.property.name),n.computed&&(e=this.recurse(n.property)),n.computed?this.computedMember(o,e,r,u):this.nonComputedMember(o,e,r,u);case i.CallExpression:return f=[],t(n.arguments,function(n){f.push(s.recurse(n))}),n.filter&&(e=this.$filter(n.callee.name)),n.filter||(e=this.recurse(n.callee,!0)),n.filter?function(n,t,i,u){for(var s,h=[],o=0;o<f.length;++o)h.push(f[o](n,t,i,u));return s=e.apply(undefined,h,u),r?{context:undefined,name:undefined,value:s}:s}:function(n,t,i,u){var s=e(n,t,i,u),h,c,o;if(s.value!=null){for(c=[],o=0;o<f.length;++o)c.push(f[o](n,t,i,u));h=s.value.apply(s.context,c)}return r?{value:h}:h};case i.AssignmentExpression:return o=this.recurse(n.left,!0,1),e=this.recurse(n.right),function(n,t,i,u){var s=o(n,t,i,u),f=e(n,t,i,u);return s.context[s.name]=f,r?{value:f}:f};case i.ArrayExpression:return f=[],t(n.elements,function(n){f.push(s.recurse(n))}),function(n,t,i,u){for(var e=[],o=0;o<f.length;++o)e.push(f[o](n,t,i,u));return r?{value:e}:e};case i.ObjectExpression:return f=[],t(n.properties,function(n){n.computed?f.push({key:s.recurse(n.key),computed:!0,value:s.recurse(n.value)}):f.push({key:n.key.type===i.Identifier?n.key.name:""+n.key.value,computed:!1,value:s.recurse(n.value)})}),function(n,t,i,u){for(var o={},e=0;e<f.length;++e)f[e].computed?o[f[e].key(n,t,i,u)]=f[e].value(n,t,i,u):o[f[e].key]=f[e].value(n,t,i,u);return r?{value:o}:o};case i.ThisExpression:return function(n){return r?{value:n}:n};case i.LocalsExpression:return function(n,t){return r?{value:t}:t};case i.NGValueParameter:return function(n,t,i){return r?{value:i}:i}}},"unary+":function(n,t){return function(i,u,f,e){var o=n(i,u,f,e);return o=r(o)?+o:0,t?{value:o}:o}},"unary-":function(n,t){return function(i,u,f,e){var o=n(i,u,f,e);return o=r(o)?-o:-0,t?{value:o}:o}},"unary!":function(n,t){return function(i,r,u,f){var e=!n(i,r,u,f);return t?{value:e}:e}},"binary+":function(n,t,i){return function(r,u,f,e){var s=n(r,u,f,e),h=t(r,u,f,e),o=kc(s,h);return i?{value:o}:o}},"binary-":function(n,t,i){return function(u,f,e,o){var s=n(u,f,e,o),h=t(u,f,e,o),c=(r(s)?s:0)-(r(h)?h:0);return i?{value:c}:c}},"binary*":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)*t(r,u,f,e);return i?{value:o}:o}},"binary/":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)/t(r,u,f,e);return i?{value:o}:o}},"binary%":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)%t(r,u,f,e);return i?{value:o}:o}},"binary===":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)===t(r,u,f,e);return i?{value:o}:o}},"binary!==":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)!==t(r,u,f,e);return i?{value:o}:o}},"binary==":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)==t(r,u,f,e);return i?{value:o}:o}},"binary!=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)!=t(r,u,f,e);return i?{value:o}:o}},"binary<":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)<t(r,u,f,e);return i?{value:o}:o}},"binary>":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)>t(r,u,f,e);return i?{value:o}:o}},"binary<=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)<=t(r,u,f,e);return i?{value:o}:o}},"binary>=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)>=t(r,u,f,e);return i?{value:o}:o}},"binary&&":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)&&t(r,u,f,e);return i?{value:o}:o}},"binary||":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)||t(r,u,f,e);return i?{value:o}:o}},"ternary?:":function(n,t,i,r){return function(u,f,e,o){var s=n(u,f,e,o)?t(u,f,e,o):i(u,f,e,o);return r?{value:s}:s}},value:function(n,t){return function(){return t?{context:undefined,name:undefined,value:n}:n}},identifier:function(n,t,i){return function(r,u){var f=u&&n in u?u:r,e;return i&&i!==1&&f&&f[n]==null&&(f[n]={}),e=f?f[n]:undefined,t?{context:f,name:n,value:e}:e}},computedMember:function(n,t,i,r){return function(u,f,e,o){var h=n(u,f,e,o),s,c;return h!=null&&(s=t(u,f,e,o),s=wc(s),r&&r!==1&&h&&!h[s]&&(h[s]={}),c=h[s]),i?{context:h,name:s,value:c}:c}},nonComputedMember:function(n,t,i,r){return function(u,f,e,o){var s=n(u,f,e,o),h;return r&&r!==1&&s&&s[t]==null&&(s[t]={}),h=s!=null?s[t]:undefined,i?{context:s,name:t,value:h}:h}},inputs:function(n,t){return function(i,r,u,f){return f?f[t]:n(i,r,u)}}};lo.prototype={constructor:lo,parse:function(n){var t=this.ast.ast(n),i=this.astCompiler.compile(t);return i.literal=gb(t),i.constant=nk(t),i}};var ui=l("$sce"),ct={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ok=/_([a-z])/g;ol=l("$compile");d=n.document.createElement("a");po=fi(n.location.href);hl.$inject=["$document"];cl.$inject=["$provide"];var ll=22,al=".",bo="0";vl.$inject=["$locale"];yl.$inject=["$locale"];var ud={yyyy:nt("FullYear",4,0,!1,!0),yy:nt("FullYear",2,0,!0,!0),y:nt("FullYear",1,0,!1,!0),MMMM:iu("Month"),MMM:iu("Month",!0),MM:nt("Month",2,1),M:nt("Month",1,1),LLLL:iu("Month",!1,!0),dd:nt("Date",2),d:nt("Date",1),HH:nt("Hours",2),H:nt("Hours",1),hh:nt("Hours",2,-12),h:nt("Hours",1,-12),mm:nt("Minutes",2),m:nt("Minutes",1),ss:nt("Seconds",2),s:nt("Seconds",1),sss:nt("Milliseconds",3),EEEE:iu("Day"),EEE:iu("Day",!0),a:id,Z:nd,ww:bl(2),w:bl(1),G:ko,GG:ko,GGG:ko,GGGG:rd},fd=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,ed=/^-?\d+$/;kl.$inject=["$locale"];dl=ot(a);gl=ot(fr);na.$inject=["$parse"];ta=ot({restrict:"E",compile:function(n,t){if(!t.href&&!t.xlinkHref)return function(n,t){if(t[0].nodeName.toLowerCase()==="a"){var i=rt.call(t.prop("href"))==="[object SVGAnimatedString]"?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}}}});ru={};t(br,function(n,t){function r(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}if(n!=="multiple"){var i=wt("ng-"+t),u=r;n==="checked"&&(u=function(n,t,u){u.ngModel!==u[i]&&r(n,t,u)});ru[i]=function(){return{restrict:"A",priority:100,link:u}}}});t(be,function(n,t){ru[t]=function(){return{priority:100,link:function(n,i,r){if(t==="ngPattern"&&r.ngPattern.charAt(0)==="/"){var u=r.ngPattern.match(av);if(u){r.$set("ngPattern",new RegExp(u[1],u[2]));return}}n.$watch(r[t],function(n){r.$set(t,n)})}}}});t(["src","srcset","href"],function(n){var t=wt("ng-"+n);ru[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;n==="href"&&rt.call(r.prop("href"))==="[object SVGAnimatedString]"&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){if(!t){n==="href"&&u.$set(f,null);return}u.$set(f,t);at&&e&&r.prop(e,u[f])})}}}});var ef={$addControl:s,$$renameControl:hd,$removeControl:s,$setValidity:s,$setDirty:s,$setPristine:s,$setSubmitted:s},ia="ng-pending",ra="ng-submitted";of.$inject=["$element","$attrs","$scope","$animate","$interpolate"];of.prototype={$rollbackViewValue:function(){t(this.$$controls,function(n){n.$rollbackViewValue()})},$commitViewValue:function(){t(this.$$controls,function(n){n.$commitViewValue()})},$addControl:function(n){di(n.$name,"input");this.$$controls.push(n);n.$name&&(this[n.$name]=n);n.$$parentForm=this},$$renameControl:function(n,t){var i=n.$name;this[i]===n&&delete this[i];this[t]=n;n.$name=t},$removeControl:function(n){n.$name&&this[n.$name]===n&&delete this[n.$name];t(this.$pending,function(t,i){this.$setValidity(i,null,n)},this);t(this.$error,function(t,i){this.$setValidity(i,null,n)},this);t(this.$$success,function(t,i){this.$setValidity(i,null,n)},this);cr(this.$$controls,n);n.$$parentForm=ef},$setDirty:function(){this.$$animate.removeClass(this.$$element,ur);this.$$animate.addClass(this.$$element,hf);this.$dirty=!0;this.$pristine=!1;this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,ur,hf+" "+ra);this.$dirty=!1;this.$pristine=!0;this.$submitted=!1;t(this.$$controls,function(n){n.$setPristine()})},$setUntouched:function(){t(this.$$controls,function(n){n.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,ra);this.$submitted=!0;this.$$parentForm.$setSubmitted()}};ea({clazz:of,set:function(n,t,i){var r=n[t],u;r?(u=r.indexOf(i),u===-1&&r.push(i)):n[t]=[i]},unset:function(n,t,i){var r=n[t];r&&(cr(r,i),r.length===0&&delete n[t])}});var ua=function(n){return["$timeout","$parse",function(t,i){function r(n){return n===""?i('this[""]').assign:i(n).assign||s}return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:of,compile:function(i,u){i.addClass(ur).addClass(fu);var f=u.name?"name":n&&u.ngForm?"ngForm":!1;return{pre:function(n,i,u,e){var o=e[0],c,l,h;if(!("action"in u)){c=function(t){n.$apply(function(){o.$commitViewValue();o.$setSubmitted()});t.preventDefault()};i[0].addEventListener("submit",c);i.on("$destroy",function(){t(function(){i[0].removeEventListener("submit",c)},0,!1)})}l=e[1]||o.$$parentForm;l.$addControl(o);h=f?r(o.$name):s;f&&(h(n,o),u.$observe(f,function(t){o.$name!==t&&(h(n,undefined),o.$$parentForm.$$renameControl(o,t),h=r(o.$name),h(n,o))}));i.on("$destroy",function(){o.$$parentForm.$removeControl(o);h(n,undefined);v(o,ef)})}}}}}]},cd=ua(),ld=ua(!0);var ad=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,vd=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,yd=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,pd=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,sa=/^(\d{4,})-(\d{2})-(\d{2})$/,ha=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ns=/^(\d{4,})-W(\d\d)$/,ca=/^(\d{4,})-(\d\d)$/,la=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,wd="keydown wheel mousedown",aa=p();t("date,datetime-local,month,time,week".split(","),function(n){aa[n]=!0});ts={text:bd,date:uu("date",sa,sf(sa,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":uu("datetimelocal",ha,sf(ha,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:uu("time",la,sf(la,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:uu("week",ns,kd,"yyyy-Www"),month:uu("month",ca,sf(ca,["yyyy","MM"]),"yyyy-MM"),number:dd,url:ng,email:tg,radio:ig,range:gd,checkbox:rg,hidden:s,button:s,submit:s,reset:s,file:s};var wa=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(u,f,e,o){o[0]&&(ts[a(e.type)]||ts.text)(u,f,e,o[0],t,n,i,r)}}}}],ug=/^(true|false|\d+)$/,fg=function(){function n(n,t,i){var u=r(i)?i:at===9?"":null;n.prop("value",u);t.$set("value",i)}return{restrict:"A",priority:100,compile:function(t,i){return ug.test(i.ngValue)?function(t,i,r){var u=t.$eval(r.ngValue);n(i,r,u)}:function(t,i,r){t.$watch(r.ngValue,function(t){n(i,r,t)})}}}},eg=["$compile",function(n){return{restrict:"AC",compile:function(t){return n.$$addBindingClass(t),function(t,i,r){n.$$addBindingInfo(i,r.ngBind);i=i[0];t.$watch(r.ngBind,function(n){i.textContent=ee(n)})}}}}],og=["$interpolate","$compile",function(n,t){return{compile:function(i){return t.$$addBindingClass(i),function(i,r,f){var e=n(r.attr(f.$attr.ngBindTemplate));t.$$addBindingInfo(r,e.expressions);r=r[0];f.$observe("ngBindTemplate",function(n){r.textContent=u(n)?"":n})}}}}],sg=["$sce","$parse","$compile",function(n,t,i){return{restrict:"A",compile:function(r,u){var f=t(u.ngBindHtml),e=t(u.ngBindHtml,function(t){return n.valueOf(t)});return i.$$addBindingClass(r),function(t,r,u){i.$$addBindingInfo(r,u.ngBindHtml);t.$watch(e,function(){var i=f(t);r.html(n.getTrustedHtml(i)||"")})}}}}],hg=ot({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}});var cg=es("",!0),lg=es("Odd",0),ag=es("Even",1),vg=tr({compile:function(n,t){t.$set("ngCloak",undefined);n.removeClass("ng-cloak")}}),yg=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ba={},pg={blur:!0,focus:!0};t("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=wt("ng-"+n);ba[t]=["$parse","$rootScope",function(i,r){return{restrict:"A",compile:function(u,f){var e=i(f[t]);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};pg[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var wg=["$animate","$compile",function(n,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,s,o;i.$watch(u.ngIf,function(i){i?s||e(function(i,f){s=f;i[i.length++]=t.$$createComment("end ngIf",u.ngIf);h={clone:i};n.enter(i,r.parent(),r)}):(o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),h&&(o=cu(h.clone),n.leave(o).done(function(n){n!==!1&&(o=null)}),h=null))})}}}],bg=["$templateRequest","$anchorScroll","$animate",function(n,t,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ut.noop,compile:function(u,f){var o=f.ngInclude||f.src,s=f.onload||"",e=f.autoscroll;return function(u,f,h,c,l){var p=0,a,v,y,w=function(){v&&(v.remove(),v=null);a&&(a.$destroy(),a=null);y&&(i.leave(y).done(function(n){n!==!1&&(v=null)}),v=y,y=null)};u.$watch(o,function(o){var v=function(n){n!==!1&&r(e)&&(!e||u.$eval(e))&&t()},h=++p;o?(n(o,!0).then(function(n){var t,r;u.$$destroyed||h===p&&(t=u.$new(),c.template=n,r=l(t,function(n){w();i.enter(n,null,f).done(v)}),a=t,y=r,a.$emit("$includeContentLoaded",o),u.$eval(s))},function(){u.$$destroyed||h===p&&(w(),u.$emit("$includeContentError",o))}),u.$emit("$includeContentRequested",o)):(w(),c.template=null)})}}}}],kg=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,r,u,f){if(rt.call(r[0]).match(/SVG/)){r.empty();t(hh(f.template,n.document).childNodes)(i,function(n){r.append(n)},{futureParentElement:r});return}r.html(f.template);t(r.contents())(i)}}}],dg=tr({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),gg=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(n,i,r,f){var e=r.ngList||", ",o=r.ngTrim!=="false",s=o?y(e):e,h=function(n){if(!u(n)){var i=[];return n&&t(n.split(s),function(n){n&&i.push(o?y(n):n)}),i}};f.$parsers.push(h);f.$formatters.push(function(n){return c(n)?n.join(e):undefined});f.$isEmpty=function(n){return!n||!n.length}}}},fu="ng-valid",ka="ng-invalid",ur="ng-pristine",hf="ng-dirty",os="ng-untouched",da="ng-touched",ga="ng-empty",nv="ng-not-empty",eu=l("ngModel");cf.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"];cf.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var n=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var i=this.$$parsedNgModel(t);return e(i)&&(i=n(t)),i};this.$$ngModelSet=function(n,i){e(this.$$parsedNgModel(n))?t(n,{$$$p:i}):this.$$parsedNgModelAssign(n,i)}}else if(!this.$$parsedNgModel.assign)throw eu("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,yt(this.$$element));},$render:s,$isEmpty:function(n){return u(n)||n===""||n===null||n!==n},$$updateEmptyClasses:function(n){this.$isEmpty(n)?(this.$$animate.removeClass(this.$$element,nv),this.$$animate.addClass(this.$$element,ga)):(this.$$animate.removeClass(this.$$element,ga),this.$$animate.addClass(this.$$element,nv))},$setPristine:function(){this.$dirty=!1;this.$pristine=!0;this.$$animate.removeClass(this.$$element,hf);this.$$animate.addClass(this.$$element,ur)},$setDirty:function(){this.$dirty=!0;this.$pristine=!1;this.$$animate.removeClass(this.$$element,ur);this.$$animate.addClass(this.$$element,hf);this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1;this.$untouched=!0;this.$$animate.setClass(this.$$element,os,da)},$setTouched:function(){this.$touched=!0;this.$untouched=!1;this.$$animate.setClass(this.$$element,da,os)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce);this.$viewValue=this.$$lastCommittedViewValue;this.$render()},$validate:function(){if(!it(this.$modelValue)){var i=this.$$lastCommittedViewValue,t=this.$$rawModelValue,r=this.$valid,u=this.$modelValue,f=this.$options.getOption("allowInvalid"),n=this;this.$$runValidators(t,i,function(i){f||r===i||(n.$modelValue=i?t:undefined,n.$modelValue!==u&&n.$$writeModelToScope())})}},$$runValidators:function(n,i,r){function c(){var n=f.$$parserName||"parse";if(u(f.$$parserValid))e(n,null);else return f.$$parserValid||(t(f.$validators,function(n,t){e(t,null)}),t(f.$asyncValidators,function(n,t){e(t,null)})),e(n,f.$$parserValid),f.$$parserValid;return!0}function l(){var r=!0;return(t(f.$validators,function(t,u){var f=Boolean(t(n,i));r=r&&f;e(u,f)}),!r)?(t(f.$asyncValidators,function(n,t){e(t,null)}),!1):!0}function a(){var r=[],u=!0;t(f.$asyncValidators,function(t,f){var o=t(n,i);if(!su(o))throw eu("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",o);e(f,undefined);r.push(o.then(function(){e(f,!0)},function(){u=!1;e(f,!1)}))});r.length?f.$$q.all(r).then(function(){o(u)},s):o(!0)}function e(n,t){h===f.$$currentValidationRunId&&f.$setValidity(n,t)}function o(n){h===f.$$currentValidationRunId&&r(n)}this.$$currentValidationRunId++;var h=this.$$currentValidationRunId,f=this;if(!c()){o(!1);return}if(!l()){o(!1);return}a()},$commitViewValue:function(){var n=this.$viewValue;(this.$$timeout.cancel(this.$$pendingDebounce),this.$$lastCommittedViewValue!==n||n===""&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(n),this.$$lastCommittedViewValue=n,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){i.$modelValue!==f&&i.$$writeModelToScope()}var o=this.$$lastCommittedViewValue,n=o,i=this,t,f,r;if(this.$$parserValid=u(n)?undefined:!0,this.$$parserValid)for(t=0;t<this.$parsers.length;t++)if(n=this.$parsers[t](n),u(n)){this.$$parserValid=!1;break}it(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));f=this.$modelValue;r=this.$options.getOption("allowInvalid");this.$$rawModelValue=n;r&&(this.$modelValue=n,e());this.$$runValidators(n,this.$$lastCommittedViewValue,function(t){r||(i.$modelValue=t?n:undefined,e())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue);t(this.$viewChangeListeners,function(n){try{n()}catch(t){this.$$exceptionHandler(t)}},this)},$setViewValue:function(n,t){this.$viewValue=n;this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(n){var t=this.$options.getOption("debounce"),i;g(t[n])?t=t[n]:g(t["default"])&&(t=t["default"]);this.$$timeout.cancel(this.$$pendingDebounce);i=this;t>0?this.$$pendingDebounce=this.$$timeout(function(){i.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){i.$commitViewValue()})},$overrideModelOptions:function(n){this.$options=this.$options.createChild(n)}};ea({clazz:cf,set:function(n,t){n[t]=!0},unset:function(n,t){delete n[t]}});tv=["$rootScope",function(n){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:cf,priority:1,compile:function(t){return t.addClass(ur).addClass(os).addClass(fu),{pre:function(n,t,i,r){var u=r[0],e=r[1]||u.$$parentForm,f=r[2];f&&(u.$options=f.$options);u.$$initGetterSetters();e.$addControl(u);i.$observe("name",function(n){u.$name!==n&&u.$$parentForm.$$renameControl(u,n)});n.$on("$destroy",function(){u.$$parentForm.$removeControl(u)})},post:function(t,i,r,u){function e(){f.$setTouched()}var f=u[0];if(f.$options.getOption("updateOn"))i.on(f.$options.getOption("updateOn"),function(n){f.$$debounceViewValueCommit(n&&n.type)});i.on("blur",function(){f.$touched||(n.$$phase?t.$evalAsync(e):t.$apply(e))})}}}}}];iv=/(\s+|^)default(\s+|$)/;ss.prototype={getOption:function(n){return this.$$options[n]},createChild:function(n){var i=!1;return n=v({},n),t(n,function(t,r){t==="$inherit"?r==="*"?i=!0:(n[r]=this.$$options[r],r==="updateOn"&&(n.updateOnDefault=this.$$options.updateOnDefault)):r==="updateOn"&&(n.updateOnDefault=!1,n[r]=y(t.replace(iv,function(){return n.updateOnDefault=!0," "})))},this),i&&(delete n["*"],uv(n,this.$$options)),uv(n,lf.$$options),new ss(n)}};lf=new ss({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});rv=function(){function n(n,t){this.$$attrs=n;this.$$scope=t}return n.$inject=["$attrs","$scope"],n.prototype={$onInit:function(){var n=this.parentCtrl?this.parentCtrl.$options:lf,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=n.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:n}};var tn=tr({terminal:!0,priority:1e3}),rn=l("ngOptions"),un=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,fn=["$compile","$document","$parse",function(i,u,e){function h(n,t,i){function tt(n,t,i,r,u){this.selectValue=n;this.viewValue=t;this.label=i;this.group=r;this.disabled=u}function w(n){var t,i;if(!s&&gt(n))t=n;else{t=[];for(i in n)n.hasOwnProperty(i)&&i.charAt(0)!=="$"&&t.push(i)}return t}var r=n.match(un);if(!r)throw rn("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",n,yt(t));var o=r[5]||r[7],s=r[6],l=/ as /.test(r[0])&&r[1],u=r[9],b=e(r[2]?r[1]:o),k=l&&e(l),d=k||b,g=u&&e(u),h=u?function(n,t){return g(i,t)}:function(n){return nr(n)},a=function(n,t){return h(n,c(n,t))},v=e(r[2]||r[1]),nt=e(r[3]||""),y=e(r[4]||""),p=e(r[8]),f={},c=s?function(n,t){return f[s]=t,f[o]=n,f}:function(n){return f[o]=n,f};return{trackBy:u,getTrackByValue:a,getWatchables:e(p,function(n){var u=[],f,o,t,a,p;for(n=n||[],f=w(n),o=f.length,t=0;t<o;t++){var s=n===f?t:f[t],l=n[s],e=c(l,s),b=h(l,e);u.push(b);(r[2]||r[1])&&(a=v(i,e),u.push(a));r[4]&&(p=y(i,e),u.push(p))}return u}),getOptions:function(){for(var o=[],r={},f=p(i)||[],e=w(f),g=e.length,t=0;t<g;t++){var s=f===e?t:e[t],it=f[s],n=c(it,s),l=d(i,n),b=h(l,n),rt=v(i,n),ut=nt(i,n),ft=y(i,n),k=new tt(b,l,rt,ut,ft);o.push(k);r[b]=k}return{items:o,selectValueMap:r,getOptionFromViewValue:function(n){return r[a(n)]},getViewValueFromOption:function(n){return u?oi(n.viewValue):n.viewValue}}}}}function a(n,e,s,a){function it(n,t){var i=o.cloneNode(!1);t.appendChild(i);ft(n,i)}function ut(n){var t=y.getOptionFromViewValue(n),i=t&&t.element;return i&&!i.selected&&(i.selected=!0),t}function ft(n,t){n.element=t;t.disabled=n.disabled;n.label!==t.label&&(t.label=n.label,t.textContent=n.label);t.value=n.selectValue}function et(){var u=y&&v.readValue(),n,t,f,i,o;if(y)for(n=y.items.length-1;n>=0;n--)t=y.items[n],r(t.group)?du(t.element.parentNode):du(t.element);y=w.getOptions();f={};y.items.forEach(function(n){var t;r(n.group)?(t=f[n.group],t||(t=l.cloneNode(!1),k.appendChild(t),t.label=n.group===null?"null":n.group,f[n.group]=t),it(n,t)):it(n,k)});e[0].appendChild(k);p.$render();p.$isEmpty(u)||(i=v.readValue(),o=w.trackBy||g,(o?st(u,i):u===i)||(p.$setViewValue(i),p.$render()))}for(var nt,tt,y,w,k,v=a[0],p=a[1],g=s.multiple,b=0,d=e.children(),rt=d.length;b<rt;b++)if(d[b].value===""){v.hasEmptyOption=!0;v.emptyOption=d.eq(b);break}e.empty();nt=!!v.emptyOption;tt=f(o.cloneNode(!1));tt.val("?");w=h(s.ngOptions,e,n);k=u[0].createDocumentFragment();v.generateUnknownOptionValue=function(){return"?"};g?(v.writeValue=function(n){if(y){var t=n&&n.map(ut)||[];y.items.forEach(function(n){n.element.selected&&!te(t,n)&&(n.element.selected=!1)})}},v.readValue=function(){var i=e.val()||[],n=[];return t(i,function(t){var i=y.selectValueMap[t];i&&!i.disabled&&n.push(y.getViewValueFromOption(i))}),n},w.trackBy&&n.$watchCollection(function(){if(c(p.$viewValue))return p.$viewValue.map(function(n){return w.getTrackByValue(n)})},function(){p.$render()})):(v.writeValue=function(n){if(y){var i=e[0].options[e[0].selectedIndex],t=y.getOptionFromViewValue(n);i&&i.removeAttribute("selected");t?(e[0].value!==t.selectValue&&(v.removeUnknownOption(),e[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):v.selectUnknownOrEmptyOption(n)}},v.readValue=function(){var n=y.selectValueMap[e.val()];return n&&!n.disabled?(v.unselectEmptyOption(),v.removeUnknownOption(),y.getViewValueFromOption(n)):null},w.trackBy&&n.$watch(function(){return w.getTrackByValue(p.$viewValue)},function(){p.$render()}));nt&&(i(v.emptyOption)(n),e.prepend(v.emptyOption),v.emptyOption[0].nodeType===wr?(v.hasEmptyOption=!1,v.registerOption=function(n,t){if(t.val()===""){v.hasEmptyOption=!0;v.emptyOption=t;v.emptyOption.removeClass("ng-scope");p.$render();t.on("$destroy",function(){var n=v.$isEmptyOptionSelected();v.hasEmptyOption=!1;v.emptyOption=undefined;n&&p.$render()})}}):v.emptyOption.removeClass("ng-scope"));n.$watchCollection(w.getWatchables,et)}var o=n.document.createElement("option"),l=n.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(n,t,i,r){r[0].registerOption=s},post:a}}}],en=["$locale","$interpolate","$log",function(n,i,r){var f=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(o,h,c){function d(n){h.text(n||"")}var p=c.count,w=c.$attr.when&&h.attr(c.$attr.when),b=c.offset||0,l=o.$eval(w)||{},k={},g=i.startSymbol(),nt=i.endSymbol(),tt=g+p+"-"+b+nt,v=ut.noop,y;t(c,function(n,t){var i=e.exec(t),r;i&&(r=(i[1]?"-":"")+a(i[2]),l[r]=h.attr(c.$attr[t]))});t(l,function(n,t){k[t]=i(n.replace(f,tt))});o.$watch(p,function(t){var i=parseFloat(t),e=it(i),f;e||i in l||(i=n.pluralCat(i-b));i===y||e&&it(y)||(v(),f=k[i],u(f)?(t!=null&&r.debug("ngPluralize: no rule defined for '"+i+"' in "+w),v=s,d()):v=o.$watch(f,d),y=i)})}}}],on=["$parse","$animate","$compile",function(n,i,r){var f="$$NG_REMOVED",u=l("ngRepeat"),e=function(n,t,i,r,u,f,e){n[i]=r;u&&(n[u]=f);n.$index=t;n.$first=t===0;n.$last=t===e-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=(t&1)==0)},o=function(n){return n.clone[0]},s=function(n){return n.clone[n.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(h,c){var w=c.ngRepeat,rt=r.$$createComment("end ngRepeat",w),l=w.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),b,v,k,d,tt,it,y;if(!l)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",w);var g=l[1],ut=l[2],a=l[3],nt=l[4];if(l=g.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!l)throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);if(b=l[3]||l[1],v=l[2],a&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(a)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(a)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",a);return y={$id:nr},nt?k=n(nt):(tt=function(n,t){return nr(t)},it=function(n){return n}),function(n,r,h,c,l){k&&(d=function(t,i,r){return v&&(y[v]=t),y[b]=i,y.$index=r,k(n,y)});var g=p();n.$watchCollection(ut,function(h){var c,pt,st=r[0],ft,ht=p(),et,ut,ot,k,yt,nt,y,ct,at,vt,wt;if(a&&(n[a]=h),gt(h))nt=h,yt=d||tt;else{yt=d||it;nt=[];for(vt in h)lt.call(h,vt)&&vt.charAt(0)!=="$"&&nt.push(vt)}for(et=nt.length,ct=new Array(et),c=0;c<et;c++)if(ut=h===nt?c:nt[c],ot=h[ut],k=yt(ut,ot,c),g[k])y=g[k],delete g[k],ht[k]=y,ct[c]=y;else if(ht[k]){t(ct,function(n){n&&n.scope&&(g[n.id]=n)});throw u("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",w,k,ot);}else ct[c]={id:k,scope:undefined,clone:undefined},ht[k]=!0;for(wt in g){if(y=g[wt],at=cu(y.clone),i.leave(at),at[0].parentNode)for(c=0,pt=at.length;c<pt;c++)at[c][f]=!0;y.scope.$destroy()}for(c=0;c<et;c++)if(ut=h===nt?c:nt[c],ot=h[ut],y=ct[c],y.scope){ft=st;do ft=ft.nextSibling;while(ft&&ft[f]);o(y)!==ft&&i.move(cu(y.clone),null,st);st=s(y);e(y.scope,c,b,ot,v,ut,et)}else l(function(n,t){y.scope=t;var r=rt.cloneNode(!1);n[n.length++]=r;i.enter(n,null,st);st=r;y.clone=n;ht[y.id]=y;e(y.scope,c,b,ot,v,ut,et)});g=ht})}}}}],fv="ng-hide",ev="ng-hide-animate",sn=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,fv,{tempClasses:ev})})}}}],hn=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,fv,{tempClasses:ev})})}}}],cn=tr(function(n,i,r){n.$watch(r.ngStyle,function(n,r){r&&n!==r&&t(r,function(n,t){i.css(t,"")});n&&i.css(n)},!0)}),ln=["$animate","$compile",function(n,i){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(r,u,f,e){var l=f.ngSwitch||f.on,c=[],h=[],o=[],s=[],a=function(n,t){return function(i){i!==!1&&n.splice(t,1)}};r.$watch(l,function(r){for(var u,f,l,v;o.length;)n.cancel(o.pop());for(u=0,f=s.length;u<f;++u)l=cu(h[u].clone),s[u].$destroy(),v=o[u]=n.leave(l),v.done(a(o,u));h.length=0;s.length=0;(c=e.cases["!"+r]||e.cases["?"])&&t(c,function(t){t.transclude(function(r,u){var f,e;s.push(u);f=t.element;r[r.length++]=i.$$createComment("end ngSwitchWhen");e={clone:r};h.push(e);n.enter(r,f.parent(),f)})})})}}}],an=tr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,i,r,u,f){var e=r.ngSwitchWhen.split(r.ngSwitchWhenSeparator).sort().filter(function(n,t,i){return i[t-1]!==n});t(e,function(n){u.cases["!"+n]=u.cases["!"+n]||[];u.cases["!"+n].push({transclude:f,element:i})})}}),vn=tr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),yn=l("ngTransclude"),pn=["$compile",function(n){return{restrict:"EAC",terminal:!0,compile:function(t){var i=n(t.contents());return t.empty(),function(n,t,r,u,f){function s(n,i){n.length&&h(n)?t.append(n):(o(),i.$destroy())}function o(){i(n,function(n){t.append(n)})}function h(n){for(var i,t=0,r=n.length;t<r;t++)if(i=n[t],i.nodeType!==ii||i.nodeValue.trim())return!0}if(!f)throw yn("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",yt(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var e=r.ngTransclude||r.ngTranscludeSlot;f(s,null,e);e&&!f.isSlotFilled(e)&&o()}}}}],wn=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){if(i.type==="text/ng-template"){var r=i.id,u=t[0].text;n.put(r,u)}}}}],bn={$setViewValue:s,$render:s};var kn=["$element","$scope",function(t,i){function l(){h||(h=!0,i.$$postDigest(function(){h=!1;u.ngModelCtrl.$render()}))}function o(n){c||(c=!0,i.$$postDigest(function(){i.$$destroyed||(c=!1,u.ngModelCtrl.$setViewValue(u.readValue()),n&&u.ngModelCtrl.$render())}))}var u=this,e=new gu,h,c;u.selectValueMap={};u.ngModelCtrl=bn;u.multiple=!1;u.unknownOption=f(n.document.createElement("option"));u.hasEmptyOption=!1;u.emptyOption=undefined;u.renderUnknownOption=function(n){var i=u.generateUnknownOptionValue(n);u.unknownOption.val(i);t.prepend(u.unknownOption);pi(u.unknownOption,!0);t.val(i)};u.updateUnknownOption=function(n){var i=u.generateUnknownOptionValue(n);u.unknownOption.val(i);pi(u.unknownOption,!0);t.val(i)};u.generateUnknownOptionValue=function(n){return"? "+nr(n)+" ?"};u.removeUnknownOption=function(){u.unknownOption.parent()&&u.unknownOption.remove()};u.selectEmptyOption=function(){u.emptyOption&&(t.val(""),pi(u.emptyOption,!0))};u.unselectEmptyOption=function(){u.hasEmptyOption&&pi(u.emptyOption,!1)};i.$on("$destroy",function(){u.renderUnknownOption=s});u.readValue=function(){var n=t.val(),i=n in u.selectValueMap?u.selectValueMap[n]:n;return u.hasOption(i)?i:null};u.writeValue=function(n){var r=t[0].options[t[0].selectedIndex],i,e;r&&pi(f(r),!1);u.hasOption(n)?(u.removeUnknownOption(),i=nr(n),t.val(i in u.selectValueMap?i:n),e=t[0].options[t[0].selectedIndex],pi(f(e),!0)):u.selectUnknownOrEmptyOption(n)};u.addOption=function(n,t){if(t[0].nodeType!==wr){di(n,'"option value"');n===""&&(u.hasEmptyOption=!0,u.emptyOption=t);var i=e.get(n)||0;e.set(n,i+1);l()}};u.removeOption=function(n){var t=e.get(n);t&&(t===1?(e.delete(n),n===""&&(u.hasEmptyOption=!1,u.emptyOption=undefined)):e.set(n,t-1))};u.hasOption=function(n){return!!e.get(n)};u.$hasEmptyOption=function(){return u.hasEmptyOption};u.$isUnknownOptionSelected=function(){return t[0].options[0]===u.unknownOption[0]};u.$isEmptyOptionSelected=function(){return u.hasEmptyOption&&t[0].options[t[0].selectedIndex]===u.emptyOption[0]};u.selectUnknownOrEmptyOption=function(n){n==null&&u.emptyOption?(u.removeUnknownOption(),u.selectEmptyOption()):u.unknownOption.parent().length?u.updateUnknownOption(n):u.renderUnknownOption(n)};h=!1;c=!1;u.registerOption=function(n,t,i,f,e){if(i.$attr.ngValue){var s,h=NaN;i.$observe("value",function(n){var i,f=t.prop("selected");r(h)&&(u.removeOption(s),delete u.selectValueMap[h],i=!0);h=nr(n);s=n;u.selectValueMap[h]=n;u.addOption(n,t);t.attr("value",h);i&&f&&o()})}else f?i.$observe("value",function(n){u.readValue();var i,f=t.prop("selected");r(s)&&(u.removeOption(s),i=!0);s=n;u.addOption(n,t);i&&f&&o()}):e?n.$watch(e,function(n,r){i.$set("value",n);var f=t.prop("selected");r!==n&&u.removeOption(r);u.addOption(n,t);r&&f&&o()}):u.addOption(i.value,t);i.$observe("disabled",function(n){(n==="true"||n&&t.prop("selected"))&&(u.multiple?o(!0):(u.ngModelCtrl.$setViewValue(null),u.ngModelCtrl.$render()))});t.on("$destroy",function(){var n=u.readValue(),t=i.value;u.removeOption(t);l();(u.multiple&&n&&n.indexOf(t)!==-1||n===t)&&o(!0)})}}],dn=function(){function n(n,i,r,u){var e=u[0],o=u[1],c,h;if(!o){e.registerOption=s;return}e.ngModelCtrl=o;i.on("change",function(){e.removeUnknownOption();n.$apply(function(){o.$setViewValue(e.readValue())})});r.multiple&&(e.multiple=!0,e.readValue=function(){var n=[];return t(i.find("option"),function(t){if(t.selected&&!t.disabled){var i=t.value;n.push(i in e.selectValueMap?e.selectValueMap[i]:i)}}),n},e.writeValue=function(n){t(i.find("option"),function(t){var i=!!n&&(te(n,t.value)||te(n,e.selectValueMap[t.value])),r=t.selected;i!==r&&pi(f(t),i)})},h=NaN,n.$watch(function(){h!==o.$viewValue||st(c,o.$viewValue)||(c=pt(o.$viewValue),o.$render());h=o.$viewValue}),o.$isEmpty=function(n){return!n||n.length===0})}function i(n,t,i,r){var u=r[1],f;u&&(f=r[0],u.$render=function(){f.writeValue(u.$viewValue)})}return{restrict:"E",require:["select","?ngModel"],controller:kn,priority:1,link:{pre:n,post:i}}},gn=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,i){var f,u;return r(i.ngValue)||(r(i.value)?f=n(i.value,!0):(u=n(t.text(),!0),u||i.$set("value",t.text()))),function(n,t,i){var r="$selectController",e=t.parent(),o=e.data(r)||e.parent().data(r);o&&o.registerOption(n,t,i,f,u)}}}}],ov=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){r&&(i.required=!0,r.$validators.required=function(n,t){return!i.required||!r.$isEmpty(t)},i.$observe("required",function(){r.$validate()}))}}},sv=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var f,e=i.ngPattern||i.pattern;i.$observe("pattern",function(n){if(h(n)&&n.length>0&&(n=new RegExp("^"+n+"$")),n&&!n.test)throw l("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,n,yt(t));f=n||undefined;r.$validate()});r.$validators.pattern=function(n,t){return r.$isEmpty(t)||u(f)||f.test(t)}}}}},hv=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=-1;i.$observe("maxlength",function(n){var t=tt(n);u=it(t)?-1:t;r.$validate()});r.$validators.maxlength=function(n,t){return u<0||r.$isEmpty(t)||t.length<=u}}}}},cv=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=0;i.$observe("minlength",function(n){u=tt(n)||0;r.$validate()});r.$validators.minlength=function(n,t){return r.$isEmpty(t)||t.length>=u}}}}};if(n.angular.bootstrap){n.console&&console.log("WARNING: Tried to load angular more than once.");return}cy();yy(ut);ut.module("ngLocale",[],["$provide",function(n){function i(n){n=n+"";var t=n.indexOf(".");return t==-1?0:n.length-t-1}function r(n,t){var r=t,u,f;return undefined===r&&(r=Math.min(i(n),3)),u=Math.pow(10,r),f=(n*u|0)%u,{v:r,f:f}}var t={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};n.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(n,i){var u=n|0,f=r(n,i);return u==1&&f.v==0?t.ONE:t.OTHER}})}]);f(function(){oy(n.document,th)})}(window),window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}<\/style>'),function(n,t){"use strict";function a(n){var t=[];return f(t,h).chars(n),t.join("")}var u=t.$$minErr("$sanitize"),e,i,o,s,r,h,c,l,f;t.module("ngSanitize",[]).provider("$sanitize",function(){function a(n,t){for(var f={},u=n.split(","),i=0;i<u.length;i++)f[t?r(u[i]):u[i]]=!0;return f}function rt(n){for(var i,r={},t=0,u=n.length;t<u;t++)i=n[t],r[i.name]=i.value;return r}function k(n){return n.replace(/&/g,"&amp;").replace(ut,function(n){var t=n.charCodeAt(0);return n=n.charCodeAt(1),"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(ft,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function d(t){for(var u,f;t;){if(t.nodeType===n.Node.ELEMENT_NODE)for(var i=t.attributes,r=0,e=i.length;r<e;r++)u=i[r],f=u.name.toLowerCase(),("xmlns:ns1"===f||0===f.lastIndexOf("ns1:",0))&&(t.removeAttributeNode(u),r--,e--);(i=t.firstChild)&&d(i);t=v("nextSibling",t)}}function v(n,t){var i=t[n];if(i&&c.call(t,i))throw u("elclob",t.outerHTML||t.outerText);return i}var p=!1;this.$get=["$$sanitizeUri",function(n){return p&&i(b,et),function(t){var i=[];return l(t,f(i,function(t,i){return!/^unsafe:/.test(n(t,i))})),i.join("")}}];this.enableSvg=function(n){return s(n)?(p=n,this):p};e=t.bind;i=t.extend;o=t.forEach;s=t.isDefined;r=t.lowercase;h=t.noop;l=function(n,t){var r,i,f;if(null===n||void 0===n?n="":"string"!=typeof n&&(n=""+n),r=it(n),!r)return"";i=5;do{if(0===i)throw u("uinput");i--;n=r.innerHTML;r=it(n)}while(n!==r.innerHTML);for(i=r.firstChild;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),rt(i.attributes));break;case 3:t.chars(i.textContent)}if(!(f=i.firstChild)&&(1===i.nodeType&&t.end(i.nodeName.toLowerCase()),f=v("nextSibling",i),!f))for(;null==f;){if(i=v("parentNode",i),i===r)break;f=v("nextSibling",i);1===i.nodeType&&t.end(i.nodeName.toLowerCase())}i=f}for(;i=r.firstChild;)r.removeChild(i)};f=function(n,t){var u=!1,i=e(n,n.push);return{start:function(n,f){n=r(n);!u&&ot[n]&&(u=n);u||!0!==b[n]||(i("<"),i(n),o(f,function(u,f){var e=r(f),o="img"===n&&"src"===e||"background"===e;!0===st[e]&&(!0!==tt[e]||t(u,o))&&(i(" "),i(f),i('="'),i(k(u)),i('"'))}),i(">"))},end:function(n){n=r(n);u||!0!==b[n]||!0===g[n]||(i("<\/"),i(n),i(">"));n==u&&(u=!1)},chars:function(n){u||i(k(n))}}};c=n.Node.prototype.contains||function(n){return!!(this.compareDocumentPosition(n)&16)};var ut=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ft=/([^#-~ |!])/g,g=a("area,br,col,hr,img,wbr"),w=a("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),y=a("rp,rt"),nt=i({},y,w),w=i({},w,a("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),y=i({},y,a("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),et=a("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),ot=a("script,style"),b=i({},g,w,y,nt),tt=a("background,cite,href,longdesc,src,xlink:href"),nt=a("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),y=a("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),st=i({},tt,y,nt),it=function(n,t){function f(t){t="<remove><\/remove>"+t;try{var i=(new n.DOMParser).parseFromString(t,"text/html").body;return i.firstChild.remove(),i}catch(r){}}function e(n){return i.innerHTML=n,t.documentMode&&d(i),i}var r,i;if(t&&t.implementation)r=t.implementation.createHTMLDocument("inert");else throw u("noinert");return i=(r.documentElement||r.getDocumentElement()).querySelector("body"),i.innerHTML='<svg><g onload="this.parentNode.remove()"><\/g><\/svg>',i.querySelector("svg")?(i.innerHTML='<svg><p><style><img src="<\/style><img src=x onerror=alert(1)//">',i.querySelector("svg img")?f:e):function(t){t="<remove><\/remove>"+t;try{t=encodeURI(t)}catch(r){return}var i=new n.XMLHttpRequest;return i.responseType="document",i.open("GET","data:text/html;charset=utf-8,"+t,!1),i.send(null),t=i.response.body,t.firstChild.remove(),t}}(n,n.document)}).info({angularVersion:"1.6.6"});t.module("ngSanitize").filter("linky",["$sanitize",function(n){var i=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i,u=t.$$minErr("linky"),f=t.isDefined,e=t.isFunction,o=t.isObject,s=t.isString;return function(t,h,c){function p(n){n&&l.push(a(n))}function b(n,t){var i,r=k(n);l.push("<a ");for(i in r)l.push(i+'="'+r[i]+'" ');!f(h)||"target"in r||l.push('target="',h,'" ');l.push('href="',n.replace(/"/g,"&quot;"),'">');p(t);l.push("<\/a>")}if(null==t||""===t)return t;if(!s(t))throw u("notstring",t);for(var k=e(c)?c:o(c)?function(){return c}:function(){return{}},v=t,l=[],y,w;t=v.match(i);)y=t[0],t[2]||t[4]||(y=(t[3]?"http://":"mailto:")+y),w=t.index,p(v.substr(0,w)),b(y,t[0].replace(r,"")),v=v.substring(w+t[0].length);return p(v),n(l.join(""))}}])}(window,window.angular),function(n,t){"use strict";function at(n,t,i){if(!n)throw oi("areq",t||"?",i||"required");return n}function vt(n,t){return!n&&!t?"":n?t?(c(n)&&(n=n.join(" ")),c(t)&&(t=t.join(" ")),n+" "+t):n:t}function ti(n){var t={};return n&&(n.to||n.from)&&(t.to=n.to,t.from=n.from),t}function s(n,t,r){var u="";return n=c(n)?n:n&&o(n)&&n.length?n.split(/\s+/):[],i(n,function(n,i){n&&0<n.length&&(u+=0<i?" ":"",u+=r?t+n:n+t)}),u}function yt(n){if(n instanceof r)switch(n.length){case 0:return n;case 1:if(1===n[0].nodeType)return n;break;default:return r(it(n))}if(1===n.nodeType)return r(n)}function it(n){var t,i;if(!n[0])return n;for(t=0;t<n.length;t++)if(i=n[t],1===i.nodeType)return i}function ii(n,t,r){i(t,function(t){n.addClass(t,r)})}function ri(n,t,r){i(t,function(t){n.removeClass(t,r)})}function w(n){return function(t,i){i.addClass&&(ii(n,t,i.addClass),i.addClass=null);i.removeClass&&(ri(n,t,i.removeClass),i.removeClass=null)}}function b(n){if(n=n||{},!n.$$prepared){var t=n.domOperation||u;n.domOperation=function(){n.$$domOperationFired=!0;t();t=u};n.$$prepared=!0}return n}function l(n,t){pt(n,t);wt(n,t)}function pt(n,t){t.from&&(n.css(t.from),t.from=null)}function wt(n,t){t.to&&(n.css(t.to),t.to=null)}function v(n,t,i){var r=t.options||{},f,e;return i=i.options||{},f=(r.addClass||"")+" "+(i.addClass||""),e=(r.removeClass||"")+" "+(i.removeClass||""),n=ui(n.attr("class"),f,e),i.preparationClasses&&(r.preparationClasses=d(i.preparationClasses,r.preparationClasses),delete i.preparationClasses),f=r.domOperation!==u?r.domOperation:null,ht(r,i),f&&(r.domOperation=f),r.addClass=n.addClass?n.addClass:null,r.removeClass=n.removeClass?n.removeClass:null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function ui(n,t,r){function e(n){o(n)&&(n=n.split(" "));var t={};return i(n,function(n){n.length&&(t[n]=!0)}),t}var f={},u;return n=e(n),t=e(t),i(t,function(n,t){f[t]=1}),r=e(r),i(r,function(n,t){f[t]=1===f[t]?null:-1}),u={addClass:"",removeClass:""},i(f,function(t,i){var r,f;1===t?(r="addClass",f=!n[i]||n[i+"-remove"]):-1===t&&(r="removeClass",f=n[i]||n[i+"-add"]);f&&(u[r].length&&(u[r]+=" "),u[r]+=i)}),u}function f(n){return n instanceof r?n[0]:n}function fi(n,t,i){var r="";t&&(r=s(t,"ng-",!0));i.addClass&&(r=d(r,s(i.addClass,"-add")));i.removeClass&&(r=d(r,s(i.removeClass,"-remove")));r.length&&(i.preparationClasses=r,n.addClass(r))}function k(n,t){var i=t?"-"+t+"s":"";return y(n,[p,i]),[p,i]}function rt(n,t){var i=t?"paused":"",r=h+"PlayState";return y(n,[r,i]),[r,i]}function y(n,t){n.style[t[0]]=t[1]}function d(n,t){return n?t?n+" "+t:n:t}function bt(n,t,r){var u=Object.create(null),f=n.getComputedStyle(t)||{};return i(r,function(n,t){var i=f[n],r;i&&(r=i.charAt(0),("-"===r||"+"===r||0<=r)&&(i=ei(i)),0===i&&(i=null),u[t]=i)}),u}function ei(n){var t=0;return n=n.split(/\s*,\s*/),i(n,function(n){"s"===n.charAt(n.length-1)&&(n=n.substring(0,n.length-1));n=parseFloat(n)||0;t=t?Math.max(n,t):n}),t}function ut(n){return 0===n||null!=n}function kt(n,t){var i=e,r=n+"s";return t?i+="Duration":r+=" linear all",[i,r]}function dt(){var n=Object.create(null);return{flush:function(){n=Object.create(null)},count:function(t){return(t=n[t])?t.total:0},get:function(t){return(t=n[t])&&t.value},put:function(t,i){n[t]?n[t].total++:n[t]={total:1,value:i}}}}function gt(n,t,r){i(r,function(i){n[i]=ct(n[i])?n[i]:t.style.getPropertyValue(i)})}var e,ft,h,et;void 0===n.ontransitionend&&void 0!==n.onwebkittransitionend?(e="WebkitTransition",ft="webkitTransitionEnd transitionend"):(e="transition",ft="transitionend");void 0===n.onanimationend&&void 0!==n.onwebkitanimationend?(h="WebkitAnimation",et="webkitAnimationEnd animationend"):(h="animation",et="animationend");var g=h+"Delay",ot=h+"Duration",p=e+"Delay",ni=e+"Duration",oi=t.$$minErr("ng"),si={transitionDuration:ni,transitionDelay:p,transitionProperty:e+"Property",animationDuration:ot,animationDelay:g,animationIterationCount:h+"IterationCount"},hi={transitionDuration:ni,transitionDelay:p,animationDuration:ot,animationDelay:g},st,ht,i,c,ct,nt,lt,tt,o,a,r,u;t.module("ngAnimate",[],function(){u=t.noop;st=t.copy;ht=t.extend;r=t.element;i=t.forEach;c=t.isArray;o=t.isString;tt=t.isObject;a=t.isUndefined;ct=t.isDefined;lt=t.isFunction;nt=t.isElement}).info({angularVersion:"1.6.5"}).directive("ngAnimateSwap",["$animate","$rootScope",function(n){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,i,r,u,f){var o,e;t.$watchCollection(r.ngAnimateSwap||r["for"],function(r){o&&n.leave(o);e&&(e.$destroy(),e=null);(r||0===r)&&(e=t.$new(),f(e,function(t){o=t;n.enter(t,null,i)}))})}}}]).directive("ngAnimateChildren",["$interpolate",function(n){return{link:function(t,i,r){function f(n){i.data("$$ngAnimateChildren","on"===n||"true"===n)}var u=r.ngAnimateChildren;o(u)&&0===u.length?i.data("$$ngAnimateChildren",!0):(f(n(u)(t)),r.$observe("ngAnimateChildren",f))}}}]).factory("$$rAFScheduler",["$$rAF",function(n){function r(n){i=i.concat(n);u()}function u(){if(i.length){for(var f=i.shift(),r=0;r<f.length;r++)f[r]();t||n(function(){t||u()})}}var i,t;return i=r.queue=[],r.waitUntilQuiet=function(i){t&&t();t=n(function(){t=null;i();u()})},r}]).provider("$$animateQueue",["$animateProvider",function(t){function y(n){if(!n)return null;n=n.split(" ");var t=Object.create(null);return i(n,function(n){t[n]=!0}),t}function h(n,t){if(n&&t){var i=y(t);return n.split(" ").some(function(n){return i[n]})}}function s(n,t,i){return u[n].some(function(n){return n(t,i)})}function e(n,t){var i=0<(n.addClass||"").length,r=0<(n.removeClass||"").length;return t?i&&r:i||r}var u=this.rules={skip:[],cancel:[],join:[]};u.join.push(function(n){return!n.structural&&e(n)});u.skip.push(function(n){return!n.structural&&!e(n)});u.skip.push(function(n,t){return"leave"===t.event&&n.structural});u.skip.push(function(n,t){return t.structural&&2===t.state&&!n.structural});u.cancel.push(function(n,t){return t.structural&&n.structural});u.cancel.push(function(n,t){return 2===t.state&&n.structural});u.cancel.push(function(n,t){if(t.structural)return!1;var i=n.addClass,r=n.removeClass,u=t.addClass,f=t.removeClass;return a(i)&&a(r)||a(u)&&a(f)?!1:h(i,f)||h(r,u)});this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(u,h,y,p,k,d,g,rt,ut,ft,et){function ii(){var n=!1;return function(t){n?t():h.$$postDigest(function(){n=!0;t()})}}function ri(n,t,r){var u=[],f=lt[r];return f&&i(f,function(i){ti.call(i.node,t)?u.push(i.callback):"leave"===r&&ti.call(i.node,n)&&u.push(i.callback)}),u}function dt(n,t,i){var r=it(t);return n.filter(function(n){return!(n.node===r&&(!i||n.callback===i))})}function ui(n,t,r){function rt(n,t,r,f){lt(function(){var n=ri(ct,y,t);n.length?u(function(){i(n,function(n){n(w,r,f)});"close"!==r||y.parentNode||wt.off(y)}):"close"!==r||y.parentNode||wt.off(y)});n.progress(t,r,f)}function nt(n){var i=w,t=a;t.preparationClasses&&(i.removeClass(t.preparationClasses),t.preparationClasses=null);t.activeClasses&&(i.removeClass(t.activeClasses),t.activeClasses=null);ni(w,a);l(w,a);a.domOperation();k.complete(!n)}var a=st(r),w=yt(n),y=f(w),ct=y&&y.parentNode,a=b(a),k=new g,lt=ii(),it,ht;if(c(a.addClass)&&(a.addClass=a.addClass.join(" ")),a.addClass&&!o(a.addClass)&&(a.addClass=null),c(a.removeClass)&&(a.removeClass=a.removeClass.join(" ")),a.removeClass&&!o(a.removeClass)&&(a.removeClass=null),a.from&&!tt(a.from)&&(a.from=null),a.to&&!tt(a.to)&&(a.to=null),!(pt&&y&&hi(y,t,r)&&ci(y,a)))return nt(),k;var ut=0<=["enter","move","leave"].indexOf(t),p=et(),ft=p||vt.get(y);if(r=!ft&&ot.get(y)||{},it=!!r.state,ft||it&&1===r.state||(ft=!oi(y,ct,t)),ft)return p&&rt(k,t,"start"),nt(),p&&rt(k,t,"close"),k;if(ut&&ei(y),p={structural:ut,element:w,event:t,addClass:a.addClass,removeClass:a.removeClass,close:nt,options:a,runner:k},it){if(s("skip",p,r))return 2===r.state?(nt(),k):(v(w,r,p),r.runner);if(s("cancel",p,r))if(2===r.state)r.runner.end();else if(r.structural)r.close();else return v(w,r,p),r.runner;else if(s("join",p,r))if(2===r.state)v(w,p,{});else return fi(w,ut?t:null,a),t=p.event=r.event,a=v(w,r,p),r.runner}else v(w,p,{});return((it=p.structural)||(it="animate"===p.event&&0<Object.keys(p.options.to||{}).length||e(p)),!it)?(nt(),bt(y),k):(ht=(r.counter||0)+1,p.counter=ht,gt(y,1,p),h.$$postDigest(function(){w=yt(n);var i=ot.get(y),r=!i,i=i||{},u=0<(w.parent()||[]).length&&("animate"===i.event||i.structural||e(i));r||i.counter!==ht||!u?(r&&(ni(w,a),l(w,a)),(r||ut&&i.event!==t)&&(a.domOperation(),k.end()),u||bt(y)):(t=!i.structural&&e(i,!0)?"setClass":i.event,gt(y,2),i=d(w,t,i.options),k.setHost(i),rt(k,t,"start",{}),i.done(function(n){nt(!n);(n=ot.get(y))&&n.counter===ht&&bt(y);rt(k,t,"close",{})}))}),k)}function ei(n){n=n.querySelectorAll("[data-ng-animate]");i(n,function(n){var i=parseInt(n.getAttribute("data-ng-animate"),10),t=ot.get(n);if(t)switch(i){case 2:t.runner.end();case 1:ot.delete(n)}})}function bt(n){n.removeAttribute("data-ng-animate");ot.delete(n)}function oi(n,t,i){var c;i=p[0].body;var l=f(y),o=n===i||"HTML"===n.nodeName,u=n===l,s=!1,h=vt.get(n),e;for((n=r.data(n,"$ngAnimatePin"))&&(t=f(n));t;){if(u||(u=t===l),1!==t.nodeType)break;if(n=ot.get(t)||{},!s){if(c=vt.get(t),!0===c&&!1!==h){h=!0;break}else!1===c&&(h=!1);s=n.structural}if((a(e)||!0===e)&&(n=r.data(t,"$$ngAnimateChildren"),ct(n)&&(e=n)),s&&!1===e)break;if(o||(o=t===i),o&&u)break;if(!u&&(n=r.data(t,"$ngAnimatePin"))){t=f(n);continue}t=t.parentNode}return(!s||e)&&!0!==h&&u&&o}function gt(n,t,i){i=i||{};i.state=t;n.setAttribute("data-ng-animate",t);i=(t=ot.get(n))?ht(t,i):i;ot.set(n,i)}var ot=new k,vt=new k,pt=null,si=h.$watch(function(){return 0===rt.totalPendingRequests},function(n){n&&(si(),h.$$postDigest(function(){h.$$postDigest(function(){null===pt&&(pt=!0)})}))}),lt=Object.create(null),kt;k=t.customFilter();kt=t.classNameFilter();ft=function(){return!0};var hi=k||ft,ci=kt?function(n,t){var i=[n.getAttribute("class"),t.addClass,t.removeClass].join(" ");return kt.test(i)}:ft,ni=w(ut),ti=n.Node.prototype.contains||function(n){return this===n||!!(this.compareDocumentPosition(n)&16)},wt={on:function(n,t,i){var u=it(t);lt[n]=lt[n]||[];lt[n].push({node:u,callback:i});r(t).on("$destroy",function(){ot.get(u)||wt.off(n,t,i)})},off:function(n,t,i){if(1!==arguments.length||o(arguments[0])){var r=lt[n];r&&(lt[n]=1===arguments.length?null:dt(r,t,i))}else for(r in t=arguments[0],lt)lt[r]=dt(lt[r],t)},pin:function(n,t){at(nt(n),"element","not an element");at(nt(t),"parentElement","not an element");n.data("$ngAnimatePin",t)},push:function(n,t,i,r){return i=i||{},i.domOperation=r,ui(n,t,i)},enabled:function(n,t){var r=arguments.length,i;return 0===r?t=!!pt:nt(n)?(i=f(n),1===r?t=!vt.get(i):vt.set(i,!t)):t=pt=!!n,t}};return wt}]}]).provider("$$animation",["$animateProvider",function(){var n=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler",function(t,u,e,o,s,h){function a(n){function u(n){var e,t,i;if(n.processed)return n;for(n.processed=!0,e=n.domNode,t=e.parentNode,r.set(e,n);t;){if(i=r.get(t)){i.processed||(i=u(i));break}t=t.parentNode}return(i||f).children.push(n),n}for(var f={children:[]},r=new s,i,t=0;t<n.length;t++)i=n[t],r.set(i.domNode,n[t]={domNode:i.domNode,fn:i.fn,children:[]});for(t=0;t<n.length;t++)u(n[t]);return function(n){for(var f=[],r=[],u,i,e,t=0;t<n.children.length;t++)r.push(n.children[t]);for(n=r.length,u=0,i=[],t=0;t<r.length;t++)e=r[t],0>=n&&(n=u,u=0,f.push(i),i=[]),i.push(e.fn),e.children.forEach(function(n){u++;r.push(n)}),n--;return i.length&&f.push(i),f}(f)}var c=[],v=w(t);return function(s,y,p){function rt(n){n=n.hasAttribute("ng-animate-ref")?[n]:n.querySelectorAll("[ng-animate-ref]");var t=[];return i(n,function(n){var i=n.getAttribute("ng-animate-ref");i&&i.length&&t.push(n)}),t}function ut(n){var t=[],u={},o,e;return i(n,function(n,e){var o=f(n.element),h=0<=["enter","move"].indexOf(n.event),o=n.structural?rt(o):[],s;o.length?(s=h?"to":"from",i(o,function(n){var t=n.getAttribute("ng-animate-ref");u[t]=u[t]||{};u[t][s]={animationID:e,element:r(n)}})):t.push(n)}),o={},e={},i(u,function(i){var r=i.from,u=i.to,c;if(r&&u){var f=n[r.animationID],s=n[u.animationID],h=r.animationID.toString();e[h]||(c=e[h]={structural:!0,beforeStart:function(){f.beforeStart();s.beforeStart()},close:function(){f.close();s.close()},classes:ft(f.classes,s.classes),from:f,to:s,anchors:[]},c.classes.length?t.push(c):(t.push(f),t.push(s)));e[h].anchors.push({out:r.element,"in":u.element})}else r=r?r.animationID:u.animationID,u=r.toString(),o[u]||(o[u]=!0,t.push(n[r]))}),t}function ft(n,t){var f,i,r,u;for(n=n.split(" "),t=t.split(" "),f=[],i=0;i<n.length;i++)if(r=n[i],"ng-"!==r.substring(0,3))for(u=0;u<t.length;u++)if(r===t[u]){f.push(r);break}return f.join(" ")}function et(t){for(var r,i=n.length-1;0<=i;i--)if(r=e.get(n[i])(t),r)return r}function ot(n,t){function i(n){(n=n.data("$$animationRunner"))&&n.setHost(t)}n.from&&n.to?(i(n.from.element),i(n.to.element)):i(n.element)}function it(){var n=s.data("$$animationRunner");!n||"leave"===y&&p.$$domOperationFired||n.end()}function g(n){s.off("$destroy",it);s.removeData("$$animationRunner");v(s,p);l(s,p);p.domOperation();w&&t.removeClass(s,w);s.removeClass("ng-animate");k.complete(!n)}var nt,k,tt,w,d;if(p=b(p),nt=0<=["enter","move","leave"].indexOf(y),k=new o({end:function(){g()},cancel:function(){g(!0)}}),!n.length)return g(),k;s.data("$$animationRunner",k);tt=vt(s.attr("class"),vt(p.addClass,p.removeClass));w=p.tempClasses;w&&(tt+=" "+w,p.tempClasses=null);nt&&(d="ng-"+y+"-prepare",t.addClass(s,d));c.push({element:s,classes:tt,event:y,structural:nt,options:p,beforeStart:function(){s.addClass("ng-animate");w&&t.addClass(s,w);d&&(t.removeClass(s,d),d=null)},close:g});s.on("$destroy",it);return 1<c.length?k:(u.$$postDigest(function(){var t=[],r,n;i(c,function(n){n.element.data("$$animationRunner")?t.push(n):n.close()});c.length=0;r=ut(t);n=[];i(r,function(t){n.push({domNode:f(t.from?t.from.element:t.element),fn:function(){var n,i,r;t.beforeStart();i=t.close;(t.anchors?t.from.element||t.to.element:t.element).data("$$animationRunner")&&(r=et(t),r&&(n=r.start));n?(n=n(),n.done(function(n){i(!n)}),ot(t,n)):i()}})});h(a(n))}),k)}}]}]).provider("$animateCss",["$animateProvider",function(){var n=dt(),t=dt();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(r,o,a,v,d,nt,tt,it){function lt(n,t){var i=n.parentNode;return(i.$$ngAnimateParentKey||(i.$$ngAnimateParentKey=++dt))+"-"+n.getAttribute("class")+"-"+t}function yt(i,u,f,e){var h;return 0<n.count(f)&&(h=t.get(f),h||(u=s(u,"-stagger"),o.addClass(i,u),h=bt(r,i,e),h.animationDuration=Math.max(h.animationDuration,0),h.transitionDuration=Math.max(h.transitionDuration,0),o.removeClass(i,u),t.put(f,h))),h||{}}function at(i){ht.push(i);tt.waitUntilQuiet(function(){n.flush();t.flush();for(var r=d(),i=0;i<ht.length;i++)ht[i](r);ht.length=0})}function vt(t,i,u){return i=n.get(u),i||(i=bt(r,t,si),"infinite"===i.animationIterationCount&&(i.animationIterationCount=1)),n.put(u,i),t=i,u=t.animationDelay,i=t.transitionDelay,t.maxDelay=u&&i?Math.max(u,i):u||i,t.maxDuration=Math.max(t.animationDuration*t.animationIterationCount,t.transitionDuration),t}var ct=w(o),dt=0,ht=[];return function(t,r){function ki(){ii()}function or(){ii(!0)}function ii(n){if(!(wi||rr&&ei)){wi=!0;ei=!1;w.$$skipPreparationClasses||o.removeClass(t,ci);o.removeClass(t,cr);rt(tt,!1);k(tt,!1);i(dt,function(n){tt.style[n[0]]=""});ct(t,w);l(t,w);Object.keys(pi).length&&i(pi,function(n,t){n?tt.style.setProperty(t,n):tt.style.removeProperty(t)});w.onDone&&w.onDone();oi&&oi.length&&t.off(oi.join(" "),hr);var r=t.data("$$animateCss");r&&(v.cancel(r[0].timer),t.removeData("$$animateCss"));li&&li.complete(!n)}}function sr(n){d.blockTransition&&k(tt,n);d.blockKeyframeAnimation&&rt(tt,!!n)}function di(){return li=new a({end:ki,cancel:or}),at(u),ii(),{$$willAnimate:!1,start:function(){return li},end:ki}}function hr(n){n.stopPropagation();var t=n.originalEvent||n;n=t.$manualTimeStamp||Date.now();t=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-fr,0)>=nr&&t>=ni&&(rr=!0,ii())}function lr(){function n(){var r,u,n,s,c;if(!wi){if(sr(!1),i(dt,function(n){tt.style[n[0]]=n[1]}),ct(t,w),o.addClass(t,cr),d.recalculateTimingStyles){if(bi=tt.getAttribute("class")+" "+ci,yi=lt(tt,bi),ht=vt(tt,bi,yi),ui=ht.maxDelay,ai=Math.max(ui,0),ni=ht.maxDuration,0===ni){ii();return}d.hasTransitions=0<ht.transitionDuration;d.hasAnimations=0<ht.animationDuration}if(d.applyAnimationDelay&&(ui="boolean"!=typeof w.delay&&ut(w.delay)?parseFloat(w.delay):ui,ai=Math.max(ui,0),ht.animationDelay=ui,fi=[g,ui+"s"],dt.push(fi),tt.style[fi[0]]=fi[1]),nr=1e3*ai,ur=1e3*ni,w.easing&&(n=w.easing,d.hasTransitions&&(r=e+"TimingFunction",dt.push([r,n]),tt.style[r]=n),d.hasAnimations&&(r=h+"TimingFunction",dt.push([r,n]),tt.style[r]=n)),ht.transitionDuration&&oi.push(ft),ht.animationDuration&&oi.push(et),fr=Date.now(),u=nr+1.5*ur,r=fr+u,n=t.data("$$animateCss")||[],s=!0,n.length&&(c=n[0],(s=r>c.expectedEndTime)?v.cancel(c.timer):n.push(ii)),s&&(u=v(f,u,!1),n[0]={timer:u,expectedEndTime:r},n.push(ii),t.data("$$animateCss",n)),oi.length)t.on(oi.join(" "),hr);w.to&&(w.cleanupStyles&&gt(pi,tt,Object.keys(w.to)),wt(t,w))}}function f(){var i=t.data("$$animateCss"),n;if(i){for(n=1;n<i.length;n++)i[n]();t.removeData("$$animateCss")}}if(!wi)if(tt.parentNode){var r=function(n){if(rr)ei&&n&&(ei=!1,ii());else if(ei=!n,ht.animationDuration)if(n=rt(tt,ei),ei)dt.push(n);else{var t=dt,i=t.indexOf(n);0<=n&&t.splice(i,1)}},u=0<tr&&(ht.transitionDuration&&0===ri.transitionDuration||ht.animationDuration&&0===ri.animationDuration)&&Math.max(ri.animationDelay,ri.transitionDelay);u?v(n,Math.floor(u*tr*1e3),!1):n();gi.resume=function(){r(!0)};gi.pause=function(){r(!1)}}else ii()}var w=r||{},pi,tt,yi,ri,tr,ht,ui,d,fi;if(w.$$prepared||(w=b(st(w))),pi={},tt=f(t),!tt||!tt.parentNode||!it.enabled())return di();var dt=[],ir=t.attr("class"),bt=ti(w),wi,ei,rr,li,gi,ai,nr,ni,ur,fr,oi=[];if(0===w.duration||!nt.animations&&!nt.transitions)return di();var vi=w.event&&c(w.event)?w.event.join(" "):w.event,er="",si="";vi&&w.structural?er=s(vi,"ng-",!0):vi&&(er=vi);w.addClass&&(si+=s(w.addClass,"-add"));w.removeClass&&(si.length&&(si+=" "),si+=s(w.removeClass,"-remove"));w.applyClassesEarly&&si.length&&ct(t,w);var ci=[er,si].join(" ").trim(),bi=ir+" "+ci,cr=s(ci,"-active"),ir=bt.to&&0<Object.keys(bt.to).length;return(0<(w.keyframeStyle||"").length||ir||ci)?(0<w.stagger?(bt=parseFloat(w.stagger),ri={transitionDelay:bt,animationDelay:bt,transitionDuration:0,animationDuration:0}):(yi=lt(tt,bi),ri=yt(tt,ci,yi,hi)),w.$$skipPreparationClasses||o.addClass(t,ci),w.transitionStyle&&(bt=[e,w.transitionStyle],y(tt,bt),dt.push(bt)),0<=w.duration&&(bt=0<tt.style[e].length,bt=kt(w.duration,bt),y(tt,bt),dt.push(bt)),w.keyframeStyle&&(bt=[h,w.keyframeStyle],y(tt,bt),dt.push(bt)),tr=ri?0<=w.staggerIndex?w.staggerIndex:n.count(yi):0,(vi=0===tr)&&!w.skipBlocking&&k(tt,9999),ht=vt(tt,bi,yi),ui=ht.maxDelay,ai=Math.max(ui,0),ni=ht.maxDuration,d={},d.hasTransitions=0<ht.transitionDuration,d.hasAnimations=0<ht.animationDuration,d.hasTransitionAll=d.hasTransitions&&"all"===ht.transitionProperty,d.applyTransitionDuration=ir&&(d.hasTransitions&&!d.hasTransitionAll||d.hasAnimations&&!d.hasTransitions),d.applyAnimationDuration=w.duration&&d.hasAnimations,d.applyTransitionDelay=ut(w.delay)&&(d.applyTransitionDuration||d.hasTransitions),d.applyAnimationDelay=ut(w.delay)&&d.hasAnimations,d.recalculateTimingStyles=0<si.length,(d.applyTransitionDuration||d.applyAnimationDuration)&&(ni=w.duration?parseFloat(w.duration):ni,d.applyTransitionDuration&&(d.hasTransitions=!0,ht.transitionDuration=ni,bt=0<tt.style[e+"Property"].length,dt.push(kt(ni,bt))),d.applyAnimationDuration&&(d.hasAnimations=!0,ht.animationDuration=ni,dt.push([ot,ni+"s"]))),0===ni&&!d.recalculateTimingStyles)?di():(null!=w.delay&&("boolean"!=typeof w.delay&&(fi=parseFloat(w.delay),ai=Math.max(fi,0)),d.applyTransitionDelay&&dt.push([p,fi+"s"]),d.applyAnimationDelay&&dt.push([g,fi+"s"])),null==w.duration&&0<ht.transitionDuration&&(d.recalculateTimingStyles=d.recalculateTimingStyles||vi),nr=1e3*ai,ur=1e3*ni,w.skipBlocking||(d.blockTransition=0<ht.transitionDuration,d.blockKeyframeAnimation=0<ht.animationDuration&&0<ri.animationDelay&&0===ri.animationDuration),w.from&&(w.cleanupStyles&&gt(pi,tt,Object.keys(w.from)),pt(t,w)),d.blockTransition||d.blockKeyframeAnimation?sr(ni):w.skipBlocking||k(tt,!1),{$$willAnimate:!0,end:ki,start:function(){if(!wi)return gi={end:ki,cancel:or,resume:null,pause:null},li=new a(gi),at(lr),li}}):di()}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(n){n.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(n,t,e,s,h,c,l){function y(n){return n.replace(/\bng-\S+\b/g,"")}function p(n,t){return o(n)&&(n=n.split(" ")),o(t)&&(t=t.split(" ")),n.filter(function(n){return-1===t.indexOf(n)}).join(" ")}function b(t,u,o){function l(n){var t={},r=f(n).getBoundingClientRect();return i(["width","height","top","left"],function(n){var i=r[n];switch(n){case"top":i+=a.scrollTop;break;case"left":i+=a.scrollLeft}t[n]=Math.floor(i)+"px"}),t}function v(){var t=y(o.attr("class")||""),i=p(t,b),t=p(b,t),i=n(s,{to:l(o),addClass:"ng-anchor-in "+i,removeClass:"ng-anchor-out "+t,delay:!0});return i.$$willAnimate?i:null}function c(){s.remove();u.removeClass("ng-animate-shim");o.removeClass("ng-animate-shim")}var s=r(f(u).cloneNode(!0)),b=y(s.attr("class")||""),h,k;return(u.addClass("ng-animate-shim"),o.addClass("ng-animate-shim"),s.addClass("ng-anchor"),w.append(s),t=function(){var t=n(s,{addClass:"ng-anchor-out",delay:!0,from:l(u)});return t.$$willAnimate?t:null}(),!t&&(h=v(),!h))?c():(k=t||h,{start:function(){function i(){n&&n.end()}var t,n=k.start();return n.done(function(){if(n=null,!h&&(h=v()))return n=h.start(),n.done(function(){n=null;c();t.complete()}),n;c();t.complete()}),t=new e({end:i,cancel:i})}})}function k(n,t,r,f){var o=v(n,u),s=v(t,u),h=[];return i(f,function(n){(n=b(r,n.out,n["in"]))&&h.push(n)}),o||s||0!==h.length?{start:function(){function r(){i(n,function(n){n.end()})}var n=[],t;return o&&n.push(o.start()),s&&n.push(s.start()),i(h,function(t){n.push(t.start())}),t=new e({end:r,cancel:r}),e.all(n,function(n){t.complete(n)}),t}}:void 0}function v(t){var r=t.element,i=t.options||{};return t.structural&&(i.event=t.event,i.structural=!0,i.applyClassesEarly=!0,"leave"===t.event&&(i.onDone=i.domOperation)),i.preparationClasses&&(i.event=d(i.event,i.preparationClasses)),t=n(r,i),t.$$willAnimate?t:null}var a,w;return!h.animations&&!h.transitions?u:(a=l[0].body,t=f(s),w=r(t.parentNode&&11===t.parentNode.nodeType||a.contains(t)?t:a),function(n){return n.from&&n.to?k(n.from,n.to,n.classes,n.anchors):v(n)})}]}]).provider("$$animateJs",["$animateProvider",function(n){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,r,f){function e(i){var r,f;i=c(i)?i:i.split(" ");for(var e=[],o={},u=0;u<i.length;u++)r=i[u],f=n.$$registeredAnimations[r],f&&!o[r]&&(e.push(t.get(f)),o[r]=!0);return e}var o=w(f);return function(n,t,f,s){function a(){s.domOperation();o(n,s)}function rt(n,t,i,f,e){switch(i){case"animate":t=[t,f.from,f.to,e];break;case"setClass":t=[t,nt,it,e];break;case"addClass":t=[t,nt,e];break;case"removeClass":t=[t,it,e];break;default:t=[t,e]}if(t.push(f),n=n.apply(n,t))if(lt(n.start)&&(n=n.start()),n instanceof r)n.done(e);else if(lt(n))return n;return u}function c(n,t,f,e,o){var s=[];return i(e,function(i){var e=i[o];e&&s.push(function(){var i,s,h=!1,o=function(n){h||(h=!0,(s||u)(n),i.complete(!n))};return i=new r({end:function(){o()},cancel:function(){o(!0)}}),s=rt(e,n,t,f,function(n){o(!1===n)}),i})}),s}function g(n,t,u,f,e){var o=c(n,t,u,f,e),s,h;return 0===o.length&&("beforeSetClass"===e?(s=c(n,"removeClass",u,f,"beforeRemoveClass"),h=c(n,"addClass",u,f,"beforeAddClass")):"setClass"===e&&(s=c(n,"removeClass",u,f,"removeClass"),h=c(n,"addClass",u,f,"addClass")),s&&(o=o.concat(s)),h&&(o=o.concat(h))),0!==o.length?function(n){var t=[];return o.length&&i(o,function(n){t.push(n())}),t.length?r.all(t,n):n(),function(n){i(t,function(t){n?t.cancel():t.end()})}}:void 0}var v=!1,k,d,h;3===arguments.length&&tt(f)&&(s=f,f=null);s=b(s);f||(f=n.attr("class")||"",s.addClass&&(f+=" "+s.addClass),s.removeClass&&(f+=" "+s.removeClass));var nt=s.addClass,it=s.removeClass,w=e(f),y,p;return w.length&&("leave"===t?(d="leave",k="afterLeave"):(d="before"+t.charAt(0).toUpperCase()+t.substr(1),k=t),"enter"!==t&&"move"!==t&&(y=g(n,t,s,w,d)),p=g(n,t,s,w,k)),y||p?{$$willAnimate:!0,end:function(){return h?h.end():(v=!0,a(),l(n,s),h=new r,h.complete(!0)),h},start:function(){function f(t){v=!0;a();l(n,s);h.complete(t)}if(h)return h;h=new r;var i,t=[];return y&&t.push(function(n){i=y(n)}),t.length?t.push(function(n){a();n(!0)}):a(),p&&t.push(function(n){i=p(n)}),h.setHost({end:function(){v||((i||u)(void 0),f(void 0))},cancel:function(){v||((i||u)(!0),f(!0))}}),r.chain(t,f),h}}:void 0}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(n){n.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",function(n,t){function r(t){return n(t.element,t.event,t.classes,t.options)}return function(n){if(n.from&&n.to){var u=r(n.from),f=r(n.to);if(u||f)return{start:function(){function r(){return function(){i(n,function(n){n.end()})}}var n=[],e;return u&&n.push(u.start()),f&&n.push(f.start()),t.all(n,function(n){e.complete(n)}),e=new t({end:r(),cancel:r()})}}}else return r(n)}}]}])}(window,window.angular),function(n,t){"use strict";function i(n,i,r){var u=r.baseHref(),f=n[0];return function(n,r,e){var s,o;e=e||{};o=e.expires;s=t.isDefined(e.path)?e.path:u;t.isUndefined(r)&&(o="Thu, 01 Jan 1970 00:00:00 GMT",r="");t.isString(o)&&(o=new Date(o));r=encodeURIComponent(n)+"="+encodeURIComponent(r);r=r+(s?";path="+s:"")+(e.domain?";domain="+e.domain:"");r+=o?";expires="+o.toUTCString():"";r+=e.secure?";secure":"";e=r.length+1;4096<e&&i.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+e+" > 4096 bytes)!");f.cookie=r}}t.module("ngCookies",["ng"]).info({angularVersion:"1.6.6"}).provider("$cookies",[function(){var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(i,r){return{get:function(n){return i()[n]},getObject:function(n){return(n=this.get(n))?t.fromJson(n):n},getAll:function(){return i()},put:function(i,u,f){r(i,u,f?t.extend({},n,f):n)},putObject:function(n,i,r){this.put(n,t.toJson(i),r)},remove:function(i,u){r(i,void 0,u?t.extend({},n,u):n)}}}]}]);t.module("ngCookies").factory("$cookieStore",["$cookies",function(n){return{get:function(t){return n.getObject(t)},put:function(t,i){n.putObject(t,i)},remove:function(t){n.remove(t)}}}]);i.$inject=["$document","$log","$browser"];t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=i})}(window,window.angular),navigator.userAgent.match(/IEMobile\/10\.0/)&&(msViewportStyle=document.createElement("style"),msViewportStyle.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.getElementsByTagName("head")[0].appendChild(msViewportStyle)),JSON||(JSON={}),function(){"use strict";function i(n){return n<10?"0"+n:n}function f(n){return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function r(i,e){var s,l,h,a,v=n,c,o=e[i];o&&typeof o=="object"&&typeof o.toJSON=="function"&&(o=o.toJSON(i));typeof t=="function"&&(o=t.call(e,i,o));switch(typeof o){case"string":return f(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=u,c=[],Object.prototype.toString.apply(o)==="[object Array]"){for(a=o.length,s=0;s<a;s+=1)c[s]=r(s,o)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,s=0;s<a;s+=1)typeof t[s]=="string"&&(l=t[s],h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));else for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&(h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,u,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",u="",typeof e=="number")for(o=0;o<e;o+=1)u+=" ";else typeof e=="string"&&(u=e);if(t=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return r("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(n,t){function r(n,i){var f,e,u=n[i];if(u&&typeof u=="object")for(f in u)Object.prototype.hasOwnProperty.call(u,f)&&(e=r(u,f),e!==undefined?u[f]=e:delete u[f]);return t.call(n,i,u)}var i;if(n=String(n),e.lastIndex=0,e.test(n)&&(n=n.replace(e,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(n.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return i=eval("("+n+")"),typeof t=="function"?r({"":i},""):i;throw new SyntaxError("JSON.parse");})}(),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(void 0!==i.style[t])return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.5";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,""));r=n(u);i&&i.preventDefault();r.length||(r=f.closest(".alert"));r.trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.5";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";null==u.resetText&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](null==u[t]?this.options[t]:u[t]);"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");n(t.target).is('input[type="radio"]')||n(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.5";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f="prev"==n&&0===i||"next"==n&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r="prev"==n?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(0>n))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.5";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&"click"==t.type&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(u.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",f))))}))}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.5";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.disabled):visible a";f=o.find(".dropdown-menu"+h);f.length&&(u=f.index(t.target),38==t.which&&u>0&&u--,40==t.which&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.5";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(u);this.isShown||u.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)}))};t.prototype.hide=function(i){i&&i.preventDefault();i=n.Event("hide.bs.modal");this.$element.trigger(i);this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==typeof i&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.5";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),i.isInStateTrue()?void 0:(clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide())};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i="bottom"==i&&f.bottom+s>e.bottom?"top":"top"==i&&f.top-s<e.top?"bottom":"right"==i&&f.right+o>e.width?"left":"left"==i&&f.left-o<e.left?"right":i,r.removeClass(p).addClass(i));w=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(w,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;"out"==n&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?2*u.left-l+h:2*u.top-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function f(){"in"!=u.hoverState&&r.detach();u.$element.removeAttr("aria-describedby").trigger("hidden.bs."+u.type);i&&i()}var u=this,r=n(this.$tip),e=n.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f(),this.hoverState=null,this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r="BODY"==u.tagName,i=u.getBoundingClientRect();null==i.width&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.5";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(n(i).is(document.body)?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.3.5";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(void 0===t[n+1]||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.5";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.5";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(null!=i&&"top"==this.affixed)return i>u?"top":!1;if("bottom"==this.affixed)return null!=i?u+this.unpin<=f.top?!1:"bottom":n-r>=u+e?!1:"bottom";var o=null==this.affixed,s=o?u:f.top,h=o?e:t;return null!=i&&i>=u?"top":null!=r&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if("object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin="bottom"==i?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom);null!=t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery);!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function r(){return po.apply(null,arguments)}function th(n){po=n}function pr(n){return"[object Array]"===Object.prototype.toString.call(n)}function wr(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function ih(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function dt(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function br(n,t){for(var i in t)dt(t,i)&&(n[i]=t[i]);return dt(t,"toString")&&(n.toString=t.toString),dt(t,"valueOf")&&(n.valueOf=t.valueOf),n}function gi(n,t,i,r){return ve(n,t,i,r,!0).utc()}function rh(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function s(n){return null==n._pf&&(n._pf=rh()),n._pf}function wf(n){if(null==n._isValid){var t=s(n);n._isValid=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated;n._strict&&(n._isValid=n._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return n._isValid}function bf(n){var t=gi(NaN);return null!=n?br(s(t),n):s(t).userInvalidated=!0,t}function kf(n,t){var u,i,r;if("undefined"!=typeof t._isAMomentObject&&(n._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(n._i=t._i),"undefined"!=typeof t._f&&(n._f=t._f),"undefined"!=typeof t._l&&(n._l=t._l),"undefined"!=typeof t._strict&&(n._strict=t._strict),"undefined"!=typeof t._tzm&&(n._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(n._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(n._offset=t._offset),"undefined"!=typeof t._pf&&(n._pf=s(t)),"undefined"!=typeof t._locale&&(n._locale=t._locale),tf.length>0)for(u in tf)i=tf[u],r=t[i],"undefined"!=typeof r&&(n[i]=r);return n}function nr(n){kf(this,n);this._d=new Date(+n._d);rf===!1&&(rf=!0,r.updateOffset(this),rf=!1)}function at(n){return n instanceof nr||null!=n&&null!=n._isAMomentObject}function h(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function df(n,t,i){for(var f=Math.min(n.length,t.length),e=Math.abs(n.length-t.length),u=0,r=0;f>r;r++)(i&&n[r]!==t[r]||!i&&h(n[r])!==h(t[r]))&&u++;return u+e}function gf(){}function ne(n){return n?n.toLowerCase().replace("_","-"):n}function uh(n){for(var i,t,f,r,u=0;u<n.length;){for(r=ne(n[u]).split("-"),i=r.length,t=ne(n[u+1]),t=t?t.split("-"):null;i>0;){if(f=te(r.slice(0,i).join("-")))return f;if(t&&t.length>=i&&df(r,t,!0)>=i-1)break;i--}u++}return null}function te(n){var t=null;if(!ei[n]&&"undefined"!=typeof module&&module&&module.exports)try{t=iu._abbr;require("./locale/"+n);tr(t)}catch(i){}return ei[n]}function tr(n,t){var i;return n&&(i="undefined"==typeof t?gt(n):ie(n,t),i&&(iu=i)),iu._abbr}function ie(n,t){return null!==t?(t.abbr=n,ei[n]||(ei[n]=new gf),ei[n].set(t),tr(n),ei[n]):(delete ei[n],null)}function gt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return iu;if(!pr(n)){if(t=te(n))return t;n=[n]}return uh(n)}function a(n,t){var i=n.toLowerCase();vr[i]=vr[i+"s"]=vr[t]=n}function p(n){if("string"==typeof n)return vr[n]||vr[n.toLowerCase()]}function re(n){var i,t,r={};for(t in n)dt(n,t)&&(i=p(t),i&&(r[i]=n[t]));return r}function ci(n,t){return function(i){return null!=i?(ue(this,n,i),r.updateOffset(this,t),this):kr(this,n)}}function kr(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function ue(n,t,i){return n._d["set"+(n._isUTC?"UTC":"")+t](i)}function fe(n,t){var i;if("object"==typeof n)for(i in n)this.set(i,n[i]);else if(n=p(n),"function"==typeof this[n])return this[n](t);return this}function cu(n,t,i){for(var r=""+Math.abs(n),u=n>=0;r.length<t;)r="0"+r;return(u?i?"+":"":"-")+r}function u(n,t,i,r){var u=r;"string"==typeof r&&(u=function(){return this[r]()});n&&(bi[n]=u);t&&(bi[t[0]]=function(){return cu(u.apply(this,arguments),t[1],t[2])});i&&(bi[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function fh(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function eh(n){for(var i=n.match(wo),t=0,r=i.length;r>t;t++)i[t]=bi[i[t]]?bi[i[t]]:fh(i[t]);return function(u){var f="";for(t=0;r>t;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function lu(n,t){return n.isValid()?(t=ee(t,n.localeData()),uf[t]||(uf[t]=eh(t)),uf[t](n)):n.localeData().invalidDate()}function ee(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(ru.lastIndex=0;i>=0&&ru.test(n);)n=n.replace(ru,r),ru.lastIndex=0,i-=1;return n}function i(n,t,i){of[n]="function"==typeof t?t:function(n){return n&&i?i:t}}function oh(n,t){return dt(of,n)?of[n](t._strict,t._locale):new RegExp(sh(n))}function sh(n){return n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function l(n,t){var i,r=t;for("string"==typeof n&&(n=[n]),"number"==typeof t&&(r=function(n,i){i[t]=h(n)}),i=0;i<n.length;i++)sf[n[i]]=r}function ir(n,t){l(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function hh(n,t,i){null!=t&&dt(sf,n)&&sf[n](t,i._a,i,n)}function au(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function ch(n){return this._months[n.month()]}function lh(n){return this._monthsShort[n.month()]}function ah(n,t,i){var r,u,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++)if((u=gi([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function oe(n,t){var i;return"string"==typeof t&&(t=n.localeData().monthsParse(t),"number"!=typeof t)?n:(i=Math.min(n.date(),au(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function se(n){return null!=n?(oe(this,n),r.updateOffset(this,!0),this):kr(this,"Month")}function vh(){return au(this.year(),this.month())}function vu(n){var i,t=n._a;return t&&-2===s(n).overflow&&(i=t[ot]<0||t[ot]>11?ot:t[ft]<1||t[ft]>au(t[et],t[ot])?ft:t[v]<0||t[v]>24||24===t[v]&&(0!==t[oi]||0!==t[si]||0!==t[hi])?v:t[oi]<0||t[oi]>59?oi:t[si]<0||t[si]>59?si:t[hi]<0||t[hi]>999?hi:-1,s(n)._overflowDayOfYear&&(et>i||i>ft)&&(i=ft),s(n).overflow=i),n}function he(n){r.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function w(n,t){var i=!0,r=n+"\n"+(new Error).stack;return br(function(){return i&&(he(r),i=!1),t.apply(this,arguments)},t)}function yh(n,t){go[n]||(he(t),go[n]=!0)}function ce(n){var t,i,r=n._i,u=lp.exec(r);if(u){for(s(n).iso=!0,t=0,i=hf.length;i>t;t++)if(hf[t][1].exec(r)){n._f=hf[t][0]+(u[6]||" ");break}for(t=0,i=cf.length;i>t;t++)if(cf[t][1].exec(r)){n._f+=cf[t][0];break}r.match(su)&&(n._f+="Z");wu(n)}else n._isValid=!1}function ph(n){var t=ap.exec(n._i);return null!==t?void(n._d=new Date(+t[1])):(ce(n),void(n._isValid===!1&&(delete n._isValid,r.createFromInputFallback(n))))}function wh(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return 1970>n&&o.setFullYear(n),o}function yu(n){var t=new Date(Date.UTC.apply(null,arguments));return 1970>n&&t.setUTCFullYear(n),t}function le(n){return ae(n)?366:365}function ae(n){return n%4==0&&n%100!=0||n%400==0}function bh(){return ae(this.year())}function ni(n,t,i){var u,f=i-t,r=i-n.day();return r>f&&(r-=7),f-7>r&&(r+=7),u=o(n).add(r,"d"),{week:Math.ceil(u.dayOfYear()/7),year:u.year()}}function kh(n){return ni(n,this._week.dow,this._week.doy).week}function dh(){return this._week.dow}function gh(){return this._week.doy}function nc(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")}function tc(n){var t=ni(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")}function ic(n,t,i,r,u){var o,e,f=yu(n,0,1).getUTCDay();return f=0===f?7:f,i=null!=i?i:u,o=u-f+(f>r?7:0)-(u>f?7:0),e=7*(t-1)+(i-u)+o+1,{year:e>0?n:n-1,dayOfYear:e>0?e:le(n-1)+e}}function rc(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")}function li(n,t,i){return null!=n?n:null!=t?t:i}function uc(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function pu(n){var t,i,r,u,f=[];if(!n._d){for(r=uc(n),n._w&&null==n._a[ft]&&null==n._a[ot]&&fc(n),n._dayOfYear&&(u=li(n._a[et],r[et]),n._dayOfYear>le(u)&&(s(n)._overflowDayOfYear=!0),i=yu(u,0,n._dayOfYear),n._a[ot]=i.getUTCMonth(),n._a[ft]=i.getUTCDate()),t=0;3>t&&null==n._a[t];++t)n._a[t]=f[t]=r[t];for(;7>t;t++)n._a[t]=f[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[v]&&0===n._a[oi]&&0===n._a[si]&&0===n._a[hi]&&(n._nextDay=!0,n._a[v]=0);n._d=(n._useUTC?yu:wh).apply(null,f);null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[v]=24)}}function fc(n){var t,e,u,r,i,f,s;t=n._w;null!=t.GG||null!=t.W||null!=t.E?(i=1,f=4,e=li(t.GG,n._a[et],ni(o(),1,4).year),u=li(t.W,1),r=li(t.E,1)):(i=n._locale._week.dow,f=n._locale._week.doy,e=li(t.gg,n._a[et],ni(o(),i,f).year),u=li(t.w,1),null!=t.d?(r=t.d,i>r&&++u):r=null!=t.e?t.e+i:i);s=ic(e,u,r,f,i);n._a[et]=s.year;n._dayOfYear=s.dayOfYear}function wu(n){if(n._f===r.ISO_8601)return void ce(n);n._a=[];s(n).empty=!0;for(var t,u,o,i=""+n._i,c=i.length,h=0,e=ee(n._f,n._locale).match(wo)||[],f=0;f<e.length;f++)u=e[f],t=(i.match(oh(u,n))||[])[0],t&&(o=i.substr(0,i.indexOf(t)),o.length>0&&s(n).unusedInput.push(o),i=i.slice(i.indexOf(t)+t.length),h+=t.length),bi[u]?(t?s(n).empty=!1:s(n).unusedTokens.push(u),hh(u,t,n)):n._strict&&!t&&s(n).unusedTokens.push(u);s(n).charsLeftOver=c-h;i.length>0&&s(n).unusedInput.push(i);s(n).bigHour===!0&&n._a[v]<=12&&n._a[v]>0&&(s(n).bigHour=void 0);n._a[v]=ec(n._locale,n._a[v],n._meridiem);pu(n);vu(n)}function ec(n,t,i){var r;return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):null!=n.isPM?(r=n.isPM(i),r&&12>t&&(t+=12),r||12!==t||(t=0),t):t}function oc(n){var t,f,u,r,i;if(0===n._f.length)return s(n).invalidFormat=!0,void(n._d=new Date(NaN));for(r=0;r<n._f.length;r++)i=0,t=kf({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[r],wu(t),wf(t)&&(i+=s(t).charsLeftOver,i+=10*s(t).unusedTokens.length,s(t).score=i,(null==u||u>i)&&(u=i,f=t));br(n,f||t)}function sc(n){if(!n._d){var t=re(n._i);n._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond];pu(n)}}function hc(n){var i,t=n._i,r=n._f;return n._locale=n._locale||gt(n._l),null===t||void 0===r&&""===t?bf({nullInput:!0}):("string"==typeof t&&(n._i=t=n._locale.preparse(t)),at(t)?new nr(vu(t)):(pr(r)?oc(n):r?wu(n):wr(t)?n._d=t:cc(n),i=new nr(vu(n)),i._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i))}function cc(n){var t=n._i;void 0===t?n._d=new Date:wr(t)?n._d=new Date(+t):"string"==typeof t?ph(n):pr(t)?(n._a=ih(t.slice(0),function(n){return parseInt(n,10)}),pu(n)):"object"==typeof t?sc(n):"number"==typeof t?n._d=new Date(t):r.createFromInputFallback(n)}function ve(n,t,i,r,u){var f={};return"boolean"==typeof i&&(r=i,i=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,hc(f)}function o(n,t,i,r){return ve(n,t,i,r,!1)}function ye(n,t){var r,i;if(1===t.length&&pr(t[0])&&(t=t[0]),!t.length)return o();for(r=t[0],i=1;i<t.length;++i)t[i][n](r)&&(r=t[i]);return r}function lc(){var n=[].slice.call(arguments,0);return ye("isBefore",n)}function ac(){var n=[].slice.call(arguments,0);return ye("isAfter",n)}function dr(n){var t=re(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*h+6e4*s+36e5*o;this._days=+e+7*f;this._months=+u+3*r+12*i;this._data={};this._locale=gt();this._bubble()}function bu(n){return n instanceof dr}function pe(n,t){u(n,0,0,function(){var n=this.utcOffset(),i="+";return 0>n&&(n=-n,i="-"),i+cu(~~(n/60),2)+t+cu(~~n%60,2)})}function ku(n){var i=(n||"").match(su)||[],u=i[i.length-1]||[],t=(u+"").match(rs)||["-",0,0],r=+(60*t[1])+h(t[2]);return"+"===t[0]?r:-r}function du(n,t){var i,u;return t._isUTC?(i=t.clone(),u=(at(n)||wr(n)?+n:+o(n))-+i,i._d.setTime(+i._d+u),r.updateOffset(i,!1),i):o(n).local()}function gu(n){return 15*-Math.round(n._d.getTimezoneOffset()/15)}function vc(n,t){var i,u=this._offset||0;return null!=n?("string"==typeof n&&(n=ku(n)),Math.abs(n)<16&&(n=60*n),!this._isUTC&&t&&(i=gu(this)),this._offset=n,this._isUTC=!0,null!=i&&this.add(i,"m"),u!==n&&(!t||this._changeInProgress?de(this,vt(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?u:gu(this)}function yc(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function pc(n){return this.utcOffset(0,n)}function wc(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(gu(this),"m")),this}function bc(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(ku(this._i)),this}function kc(n){return n=n?o(n).utcOffset():0,(this.utcOffset()-n)%60==0}function dc(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function gc(){if(this._a){var n=this._isUTC?gi(this._a):o(this._a);return this.isValid()&&df(this._a,n.toArray())>0}return!1}function nl(){return!this._isUTC}function tl(){return this._isUTC}function we(){return this._isUTC&&0===this._offset}function vt(n,t){var u,f,e,i=n,r=null;return bu(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:"number"==typeof n?(i={},t?i[t]=n:i.milliseconds=n):(r=us.exec(n))?(u="-"===r[1]?-1:1,i={y:0,d:h(r[ft])*u,h:h(r[v])*u,m:h(r[oi])*u,s:h(r[si])*u,ms:h(r[hi])*u}):(r=fs.exec(n))?(u="-"===r[1]?-1:1,i={y:ti(r[2],u),M:ti(r[3],u),d:ti(r[4],u),h:ti(r[5],u),m:ti(r[6],u),s:ti(r[7],u),w:ti(r[8],u)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(e=il(o(i.from),o(i.to)),i={},i.ms=e.milliseconds,i.M=e.months),f=new dr(i),bu(n)&&dt(n,"_locale")&&(f._locale=n._locale),f}function ti(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function be(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function il(n,t){var i;return t=du(t,n),n.isBefore(t)?i=be(n,t):(i=be(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i}function ke(n,t){return function(i,r){var u,f;return null===r||isNaN(+r)||(yh(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),f=i,i=r,r=f),i="string"==typeof i?+i:i,u=vt(i,r),de(this,u,n),this}}function de(n,t,i,u){var o=t._milliseconds,f=t._days,e=t._months;u=null==u?!0:u;o&&n._d.setTime(+n._d+o*i);f&&ue(n,"Date",kr(n,"Date")+f*i);e&&oe(n,kr(n,"Month")+e*i);u&&r.updateOffset(n,f||e)}function rl(n){var i=n||o(),r=du(i,this).startOf("day"),t=this.diff(r,"days",!0),u=-6>t?"sameElse":-1>t?"lastWeek":0>t?"lastDay":1>t?"sameDay":2>t?"nextDay":7>t?"nextWeek":"sameElse";return this.format(this.localeData().calendar(u,this,o(i)))}function ul(){return new nr(this)}function fl(n,t){var i;return t=p("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(n=at(n)?n:o(n),+this>+n):(i=at(n)?+n:+o(n),i<+this.clone().startOf(t))}function el(n,t){var i;return t=p("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(n=at(n)?n:o(n),+n>+this):(i=at(n)?+n:+o(n),+this.clone().endOf(t)<i)}function ol(n,t,i){return this.isAfter(n,i)&&this.isBefore(t,i)}function sl(n,t){var i;return t=p(t||"millisecond"),"millisecond"===t?(n=at(n)?n:o(n),+this==+n):(i=+o(n),+this.clone().startOf(t)<=i&&i<=+this.clone().endOf(t))}function it(n){return 0>n?Math.ceil(n):Math.floor(n)}function hl(n,t,i){var r,u,f=du(n,this),e=6e4*(f.utcOffset()-this.utcOffset());return t=p(t),"year"===t||"month"===t||"quarter"===t?(u=cl(this,f),"quarter"===t?u/=3:"year"===t&&(u/=12)):(r=this-f,u="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-e)/864e5:"week"===t?(r-e)/6048e5:r),i?u:it(u)}function cl(n,t){var r,f,u=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(u,"months");return 0>t-i?(r=n.clone().add(u-1,"months"),f=(t-i)/(i-r)):(r=n.clone().add(u+1,"months"),f=(t-i)/(r-i)),-(u+f)}function ll(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ge(){var n=this.clone().utc();return 0<n.year()&&n.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():lu(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):lu(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function al(n){var t=lu(this,n||r.defaultFormat);return this.localeData().postformat(t)}function vl(n,t){return this.isValid()?vt({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yl(n){return this.from(o(),n)}function pl(n,t){return this.isValid()?vt({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function wl(n){return this.to(o(),n)}function no(n){var t;return void 0===n?this._locale._abbr:(t=gt(n),null!=t&&(this._locale=t),this)}function to(){return this._locale}function bl(n){switch(n=p(n)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n&&this.weekday(0),"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this}function kl(n){return n=p(n),void 0===n||"millisecond"===n?this:this.startOf(n).add(1,"isoWeek"===n?"week":n).subtract(1,"ms")}function dl(){return+this._d-6e4*(this._offset||0)}function gl(){return Math.floor(+this/1e3)}function na(){return this._offset?new Date(+this):this._d}function ta(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function ia(){return wf(this)}function ra(){return br({},s(this))}function ua(){return s(this).overflow}function gr(n,t){u(0,[n,n.length],0,t)}function io(n,t,i){return ni(o([n,11,31+t-i]),t,i).week}function fa(n){var t=ni(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==n?t:this.add(n-t,"y")}function ea(n){var t=ni(this,1,4).year;return null==n?t:this.add(n-t,"y")}function oa(){return io(this.year(),1,4)}function sa(){var n=this.localeData()._week;return io(this.year(),n.dow,n.doy)}function ha(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)}function ca(n,t){if("string"==typeof n)if(isNaN(n)){if(n=t.weekdaysParse(n),"number"!=typeof n)return null}else n=parseInt(n,10);return n}function la(n){return this._weekdays[n.day()]}function aa(n){return this._weekdaysShort[n.day()]}function va(n){return this._weekdaysMin[n.day()]}function ya(n){var t,i,r;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(i=o([2e3,1]).day(t),r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[t]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[t].test(n))return t}function pa(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=ca(n,this.localeData()),this.add(n-t,"d")):t}function wa(n){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")}function ba(n){return null==n?this.day()||7:this.day(this.day()%7?n:n-7)}function ro(n,t){u(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function uo(n,t){return t._meridiemParse}function ka(n){return"p"===(n+"").toLowerCase().charAt(0)}function da(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function fo(n){u(0,[n,3],0,"millisecond")}function ga(){return this._isUTC?"UTC":""}function nv(){return this._isUTC?"Coordinated Universal Time":""}function tv(n){return o(1e3*n)}function iv(){return o.apply(null,arguments).parseZone()}function rv(n,t,i){var r=this._calendar[n];return"function"==typeof r?r.call(t,i):r}function uv(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t}function fv(){return this._invalidDate}function ev(n){return this._ordinal.replace("%d",n)}function eo(n){return n}function ov(n,t,i,r){var u=this._relativeTime[i];return"function"==typeof u?u(n,t,i,r):u.replace(/%d/i,n)}function sv(n,t){var i=this._relativeTime[n>0?"future":"past"];return"function"==typeof i?i(t):i.replace(/%s/i,t)}function hv(n){var t;for(var i in n)t=n[i],"function"==typeof t?this[i]=t:this["_"+i]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function oo(n,t,i,r){var u=gt(),f=gi().set(r,t);return u[i](f,n)}function rr(n,t,i,r,u){if("number"==typeof n&&(t=n,n=void 0),n=n||"",null!=t)return oo(n,t,i,u);for(var e=[],f=0;r>f;f++)e[f]=oo(n,f,i,u);return e}function cv(n,t){return rr(n,t,"months",12,"month")}function lv(n,t){return rr(n,t,"monthsShort",12,"month")}function av(n,t){return rr(n,t,"weekdays",7,"day")}function vv(n,t){return rr(n,t,"weekdaysShort",7,"day")}function yv(n,t){return rr(n,t,"weekdaysMin",7,"day")}function pv(){var n=this._data;return this._milliseconds=st(this._milliseconds),this._days=st(this._days),this._months=st(this._months),n.milliseconds=st(n.milliseconds),n.seconds=st(n.seconds),n.minutes=st(n.minutes),n.hours=st(n.hours),n.months=st(n.months),n.years=st(n.years),this}function so(n,t,i,r){var u=vt(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function wv(n,t){return so(this,n,t,1)}function bv(n,t){return so(this,n,t,-1)}function kv(){var u,f,e,o=this._milliseconds,t=this._days,i=this._months,n=this._data,r=0;return n.milliseconds=o%1e3,u=it(o/1e3),n.seconds=u%60,f=it(u/60),n.minutes=f%60,e=it(f/60),n.hours=e%24,t+=it(e/24),r=it(ho(t)),t-=it(co(r)),i+=it(t/30),t%=30,r+=it(i/12),i%=12,n.days=t,n.months=i,n.years=r,this}function ho(n){return 400*n/146097}function co(n){return 146097*n/400}function dv(n){var t,r,i=this._milliseconds;if(n=p(n),"month"===n||"year"===n)return t=this._days+i/864e5,r=this._months+12*ho(t),"month"===n?r:r/12;switch(t=this._days+Math.round(co(this._months/12)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}}function gv(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*h(this._months/12)}function yt(n){return function(){return this.as(n)}}function ny(n){return n=p(n),this[n+"s"]()}function ii(n){return function(){return this._data[n]}}function ty(){return it(this.days()/7)}function iy(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function ry(n,t,i){var r=vt(n).abs(),h=ki(r.as("s")),f=ki(r.as("m")),e=ki(r.as("h")),o=ki(r.as("d")),s=ki(r.as("M")),c=ki(r.as("y")),u=h<kt.s&&["s",h]||1===f&&["m"]||f<kt.m&&["mm",f]||1===e&&["h"]||e<kt.h&&["hh",e]||1===o&&["d"]||o<kt.d&&["dd",o]||1===s&&["M"]||s<kt.M&&["MM",s]||1===c&&["y"]||["yy",c];return u[2]=t,u[3]=+n>0,u[4]=i,iy.apply(null,u)}function uy(n,t){return void 0===kt[n]?!1:void 0===t?kt[n]:(kt[n]=t,!0)}function fy(n){var t=this.localeData(),i=ry(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function nu(){var r=di(this.years()),u=di(this.months()),f=di(this.days()),n=di(this.hours()),t=di(this.minutes()),i=di(this.seconds()+this.milliseconds()/1e3),e=this.asSeconds();return e?(0>e?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"}function ey(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?i[1]:i[2]}function ri(n,t,i){var r={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===i?t?"хвіліна":"хвіліну":"h"===i?t?"гадзіна":"гадзіну":n+" "+ey(r[i],+n)}function oy(n,t){var i={nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function sy(n,t){var i={nominative:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_")},r=/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(t)?"accusative":"nominative";return i[r][n.day()]}function nf(n,t,i){return n+" "+cy({mm:"munutenn",MM:"miz",dd:"devezh"}[i],n)}function hy(n){switch(lo(n)){case 1:case 3:case 4:case 5:case 9:return n+" bloaz";default:return n+" vloaz"}}function lo(n){return n>9?lo(n%10):n}function cy(n,t){return 2===t?ly(n):n}function ly(n){var t={m:"v",b:"v",d:"z"};return void 0===t[n.charAt(0)]?n:t[n.charAt(0)]+n.substring(1)}function ui(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}function ur(n){return n>1&&5>n&&1!=~~(n/10)}function b(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"pár sekund":"pár sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?u+(ur(n)?"minuty":"minut"):u+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?u+(ur(n)?"hodiny":"hodin"):u+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?u+(ur(n)?"dny":"dní"):u+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?u+(ur(n)?"měsíce":"měsíců"):u+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?u+(ur(n)?"roky":"let"):u+"lety"}}function pt(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function wt(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function rt(n,t,i,r){var u={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[n+" minuti",n+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[n+" tunni",n+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[n+" kuu",n+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[n+" aasta",n+" aastat"]};return t?u[i][2]?u[i][2]:u[i][1]:r?u[i][0]:u[i][1]}function k(n,t,i,r){var u="";switch(i){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"m":return r?"minuutin":"minuutti";case"mm":u=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":u=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":u=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":u=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":u=r?"vuoden":"vuotta"}return ay(n,r)+" "+u}function ay(n,t){return 10>n?t?rb[n]:hu[n]:n}function fi(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}function d(n,t,i,r){var u=n;switch(i){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return u+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return u+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return u+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return u+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return u+(r||t?" év":" éve")}return""}function ao(n){return(n?"":"[múlt] ")+"["+sb[this.day()]+"] LT[-kor]"}function vy(n,t){var i={nominative:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_"),accusative:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function yy(n){var t="հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_");return t[n.month()]}function py(n){var t="կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_");return t[n.day()]}function fr(n){return n%100==11?!0:n%10==1?!1:!0}function ut(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return t?"mínúta":"mínútu";case"mm":return fr(n)?u+(t||r?"mínútur":"mínútum"):t?u+"mínúta":u+"mínútu";case"hh":return fr(n)?u+(t||r?"klukkustundir":"klukkustundum"):u+"klukkustund";case"d":return t?"dagur":r?"dag":"degi";case"dd":return fr(n)?t?u+"dagar":u+(r?"daga":"dögum"):t?u+"dagur":u+(r?"dag":"degi");case"M":return t?"mánuður":r?"mánuð":"mánuði";case"MM":return fr(n)?t?u+"mánuðir":u+(r?"mánuði":"mánuðum"):t?u+"mánuður":u+(r?"mánuð":"mánuði");case"y":return t||r?"ár":"ári";case"yy":return fr(n)?u+(t||r?"ár":"árum"):u+(t||r?"ár":"ári")}}function wy(n,t){var i={nominative:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),accusative:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},r=/D[oD] *MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function by(n,t){var i={nominative:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),accusative:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_")},r=/(წინა|შემდეგ)/.test(t)?"accusative":"nominative";return i[r][n.day()]}function er(n,t,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[i][0]:r[i][1]}function ky(n){var t=n.substr(0,n.indexOf(" "));return or(t)?"a "+n:"an "+n}function dy(n){var t=n.substr(0,n.indexOf(" "));return or(t)?"viru "+n:"virun "+n}function or(n){if(n=parseInt(n,10),isNaN(n))return!1;if(0>n)return!0;if(10>n)return n>=4&&7>=n?!0:!1;if(100>n){var t=n%10,i=n/10;return or(0===t?i:t)}if(1e4>n){for(;n>=10;)n/=10;return or(n)}return n/=1e3,or(n)}function gy(n,t,i,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function ai(n,t,i,r){return t?bt(i)[0]:r?bt(i)[1]:bt(i)[2]}function vo(n){return n%10==0||n>10&&20>n}function bt(n){return hb[n].split("_")}function sr(n,t,i,r){var u=n+" ";return 1===n?u+ai(n,t,i[0],r):t?u+(vo(n)?bt(i)[1]:bt(i)[0]):r?u+bt(i)[1]:u+(vo(n)?bt(i)[1]:bt(i)[2])}function np(n,t){var r=-1===t.indexOf("dddd HH:mm"),i=cb[n.day()];return r?i:i.substring(0,i.length-2)+"į"}function yo(n,t,i){return i?t%10==1&&11!==t?n[2]:n[3]:t%10==1&&11!==t?n[0]:n[1]}function hr(n,t,i){return n+" "+yo(bs[i],n,t)}function cr(n,t,i){return yo(bs[i],n,t)}function tp(n,t){return t?"dažas sekundes":"dažām sekundēm"}function tu(n){return 5>n%10&&n%10>1&&~~(n/10)%10!=1}function vi(n,t,i){var r=n+" ";switch(i){case"m":return t?"minuta":"minutę";case"mm":return r+(tu(n)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(tu(n)?"godziny":"godzin");case"MM":return r+(tu(n)?"miesiące":"miesięcy");case"yy":return r+(tu(n)?"lata":"lat")}}function lr(n,t,i){var r=" ";return(n%100>=20||n>=100&&n%100==0)&&(r=" de "),n+r+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}function ip(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?i[1]:i[2]}function yi(n,t,i){var r={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===i?t?"минута":"минуту":n+" "+ip(r[i],+n)}function rp(n,t){var i={nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function up(n,t){var i={nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function fp(n,t){var i={nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")},r=/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative";return i[r][n.day()]}function ar(n){return n>1&&5>n}function g(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?u+(ar(n)?"minúty":"minút"):u+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?u+(ar(n)?"hodiny":"hodín"):u+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?u+(ar(n)?"dni":"dní"):u+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?u+(ar(n)?"mesiace":"mesiacov"):u+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?u+(ar(n)?"roky":"rokov"):u+"rokmi"}}function nt(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return u+(1===n?t?"minuta":"minuto":2===n?t||r?"minuti":"minutama":5>n?t||r?"minute":"minutami":t||r?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return u+(1===n?t?"ura":"uro":2===n?t||r?"uri":"urama":5>n?t||r?"ure":"urami":t||r?"ur":"urami");case"d":return t||r?"en dan":"enim dnem";case"dd":return u+(1===n?t||r?"dan":"dnem":2===n?t||r?"dni":"dnevoma":t||r?"dni":"dnevi");case"M":return t||r?"en mesec":"enim mesecem";case"MM":return u+(1===n?t||r?"mesec":"mesecem":2===n?t||r?"meseca":"mesecema":5>n?t||r?"mesece":"meseci":t||r?"mesecev":"meseci");case"y":return t||r?"eno leto":"enim letom";case"yy":return u+(1===n?t||r?"leto":"letom":2===n?t||r?"leti":"letoma":5>n?t||r?"leta":"leti":t||r?"let":"leti")}}function ep(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?i[1]:i[2]}function pi(n,t,i){return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":n+" "+ep({mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i],+n)}function op(n,t){var i={nominative:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),accusative:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_")},r=/D[oD]? *MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function sp(n,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},r=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return i[r][n.day()]}function wi(n){return function(){return n+"о"+(11===this.hours()?"б":"")+"] LT"}}var po,iu,tf=r.momentProperties=[],rf=!1,ei={},vr={},wo=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,ru=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,uf={},bi={},bo=/\d/,y=/\d\d/,ko=/\d{3}/,ff=/\d{4}/,uu=/[+-]?\d{6}/,c=/\d\d?/,fu=/\d{1,3}/,ef=/\d{1,4}/,eu=/[+-]?\d{1,6}/,ou=/[+-]?\d+/,su=/Z|[+-]\d\d:?\d\d/gi,yr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,of={},sf={},et=0,ot=1,ft=2,v=3,oi=4,si=5,hi=6,lf,ns,ts,is,rs,us,fs,es,os,af,vf,ss,hs,cs,ls,as,t;u("M",["MM",2],"Mo",function(){return this.month()+1});u("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});u("MMMM",0,0,function(n){return this.localeData().months(this,n)});a("month","M");i("M",c);i("MM",c,y);i("MMM",yr);i("MMMM",yr);l(["M","MM"],function(n,t){t[ot]=h(n)-1});l(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);null!=u?t[ot]=u:s(i).invalidMonth=n});var hp="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),cp="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),go={};r.suppressDeprecationWarnings=!1;var lp=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,hf=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],cf=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],ap=/^\/?Date\((\-?\d+)/i;r.createFromInputFallback=w("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});u(0,["YY",2],0,function(){return this.year()%100});u(0,["YYYY",4],0,"year");u(0,["YYYYY",5],0,"year");u(0,["YYYYYY",6,!0],0,"year");a("year","y");i("Y",ou);i("YY",c,y);i("YYYY",ef,ff);i("YYYYY",eu,uu);i("YYYYYY",eu,uu);l(["YYYY","YYYYY","YYYYYY"],et);l("YY",function(n,t){t[et]=r.parseTwoDigitYear(n)});r.parseTwoDigitYear=function(n){return h(n)+(h(n)>68?1900:2e3)};lf=ci("FullYear",!1);u("w",["ww",2],"wo","week");u("W",["WW",2],"Wo","isoWeek");a("week","w");a("isoWeek","W");i("w",c);i("ww",c,y);i("W",c);i("WW",c,y);ir(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=h(n)});ns={dow:0,doy:6};u("DDD",["DDDD",3],"DDDo","dayOfYear");a("dayOfYear","DDD");i("DDD",fu);i("DDDD",ko);l(["DDD","DDDD"],function(n,t,i){i._dayOfYear=h(n)});r.ISO_8601=function(){};ts=w("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var n=o.apply(null,arguments);return this>n?this:n});is=w("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var n=o.apply(null,arguments);return n>this?this:n});pe("Z",":");pe("ZZ","");i("Z",su);i("ZZ",su);l(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=ku(n)});rs=/([\+\-]|\d\d)/gi;r.updateOffset=function(){};us=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/;fs=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;vt.fn=dr.prototype;es=ke(1,"add");os=ke(-1,"subtract");r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";af=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)});u(0,["gg",2],0,function(){return this.weekYear()%100});u(0,["GG",2],0,function(){return this.isoWeekYear()%100});gr("gggg","weekYear");gr("ggggg","weekYear");gr("GGGG","isoWeekYear");gr("GGGGG","isoWeekYear");a("weekYear","gg");a("isoWeekYear","GG");i("G",ou);i("g",ou);i("GG",c,y);i("gg",c,y);i("GGGG",ef,ff);i("gggg",ef,ff);i("GGGGG",eu,uu);i("ggggg",eu,uu);ir(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=h(n)});ir(["gg","GG"],function(n,t,i,u){t[u]=r.parseTwoDigitYear(n)});u("Q",0,0,"quarter");a("quarter","Q");i("Q",bo);l("Q",function(n,t){t[ot]=3*(h(n)-1)});u("D",["DD",2],"Do","date");a("date","D");i("D",c);i("DD",c,y);i("Do",function(n,t){return n?t._ordinalParse:t._ordinalParseLenient});l(["D","DD"],ft);l("Do",function(n,t){t[ft]=h(n.match(c)[0],10)});vf=ci("Date",!0);u("d",0,"do","day");u("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});u("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});u("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});u("e",0,0,"weekday");u("E",0,0,"isoWeekday");a("day","d");a("weekday","e");a("isoWeekday","E");i("d",c);i("e",c);i("E",c);i("dd",yr);i("ddd",yr);i("dddd",yr);ir(["dd","ddd","dddd"],function(n,t,i){var r=i._locale.weekdaysParse(n);null!=r?t.d=r:s(i).invalidWeekday=n});ir(["d","e","E"],function(n,t,i,r){t[r]=h(n)});var vp="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yp="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),pp="Su_Mo_Tu_We_Th_Fr_Sa".split("_");u("H",["HH",2],0,"hour");u("h",["hh",2],0,function(){return this.hours()%12||12});ro("a",!0);ro("A",!1);a("hour","h");i("a",uo);i("A",uo);i("H",c);i("h",c);i("HH",c,y);i("hh",c,y);l(["H","HH"],v);l(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});l(["h","hh"],function(n,t,i){t[v]=h(n);s(i).bigHour=!0});ss=/[ap]\.?m?\.?/i;hs=ci("Hours",!0);u("m",["mm",2],0,"minute");a("minute","m");i("m",c);i("mm",c,y);l(["m","mm"],oi);cs=ci("Minutes",!1);u("s",["ss",2],0,"second");a("second","s");i("s",c);i("ss",c,y);l(["s","ss"],si);ls=ci("Seconds",!1);u("S",0,0,function(){return~~(this.millisecond()/100)});u(0,["SS",2],0,function(){return~~(this.millisecond()/10)});fo("SSS");fo("SSSS");a("millisecond","ms");i("S",fu,bo);i("SS",fu,y);i("SSS",fu,ko);i("SSSS",/\d+/);l(["S","SS","SSS","SSSS"],function(n,t){t[hi]=h(1e3*("0."+n))});as=ci("Milliseconds",!1);u("z",0,0,"zoneAbbr");u("zz",0,0,"zoneName");t=nr.prototype;t.add=es;t.calendar=rl;t.clone=ul;t.diff=hl;t.endOf=kl;t.format=al;t.from=vl;t.fromNow=yl;t.to=pl;t.toNow=wl;t.get=fe;t.invalidAt=ua;t.isAfter=fl;t.isBefore=el;t.isBetween=ol;t.isSame=sl;t.isValid=ia;t.lang=af;t.locale=no;t.localeData=to;t.max=is;t.min=ts;t.parsingFlags=ra;t.set=fe;t.startOf=bl;t.subtract=os;t.toArray=ta;t.toDate=na;t.toISOString=ge;t.toJSON=ge;t.toString=ll;t.unix=gl;t.valueOf=dl;t.year=lf;t.isLeapYear=bh;t.weekYear=fa;t.isoWeekYear=ea;t.quarter=t.quarters=ha;t.month=se;t.daysInMonth=vh;t.week=t.weeks=nc;t.isoWeek=t.isoWeeks=tc;t.weeksInYear=sa;t.isoWeeksInYear=oa;t.date=vf;t.day=t.days=pa;t.weekday=wa;t.isoWeekday=ba;t.dayOfYear=rc;t.hour=t.hours=hs;t.minute=t.minutes=cs;t.second=t.seconds=ls;t.millisecond=t.milliseconds=as;t.utcOffset=vc;t.utc=pc;t.local=wc;t.parseZone=bc;t.hasAlignedHourOffset=kc;t.isDST=dc;t.isDSTShifted=gc;t.isLocal=nl;t.isUtcOffset=tl;t.isUtc=we;t.isUTC=we;t.zoneAbbr=ga;t.zoneName=nv;t.dates=w("dates accessor is deprecated. Use date instead.",vf);t.months=w("months accessor is deprecated. Use month instead",se);t.years=w("years accessor is deprecated. Use year instead",lf);t.zone=w("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",yc);var wp=t,f=gf.prototype;f._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};f.calendar=rv;f._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"};f.longDateFormat=uv;f._invalidDate="Invalid date";f.invalidDate=fv;f._ordinal="%d";f.ordinal=ev;f._ordinalParse=/\d{1,2}/;f.preparse=eo;f.postformat=eo;f._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};f.relativeTime=ov;f.pastFuture=sv;f.set=hv;f.months=ch;f._months=hp;f.monthsShort=lh;f._monthsShort=cp;f.monthsParse=ah;f.week=kh;f._week=ns;f.firstDayOfYear=gh;f.firstDayOfWeek=dh;f.weekdays=la;f._weekdays=vp;f.weekdaysMin=va;f._weekdaysMin=pp;f.weekdaysShort=aa;f._weekdaysShort=yp;f.weekdaysParse=ya;f.isPM=ka;f._meridiemParse=ss;f.meridiem=da;tr("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=1===h(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i}});r.lang=w("moment.lang is deprecated. Use moment.locale instead.",tr);r.langData=w("moment.langData is deprecated. Use moment.localeData instead.",gt);var st=Math.abs,bp=yt("ms"),kp=yt("s"),dp=yt("m"),gp=yt("h"),nw=yt("d"),tw=yt("w"),iw=yt("M"),rw=yt("y"),uw=ii("milliseconds"),fw=ii("seconds"),ew=ii("minutes"),ow=ii("hours"),sw=ii("days"),hw=ii("months"),cw=ii("years"),ki=Math.round,kt={s:45,m:45,h:22,d:26,M:11},di=Math.abs,e=dr.prototype;e.abs=pv;e.add=wv;e.subtract=bv;e.as=dv;e.asMilliseconds=bp;e.asSeconds=kp;e.asMinutes=dp;e.asHours=gp;e.asDays=nw;e.asWeeks=tw;e.asMonths=iw;e.asYears=rw;e.valueOf=gv;e._bubble=kv;e.get=ny;e.milliseconds=uw;e.seconds=fw;e.minutes=ew;e.hours=ow;e.days=sw;e.weeks=ty;e.months=hw;e.years=cw;e.humanize=fy;e.toISOString=nu;e.toString=nu;e.toJSON=nu;e.locale=no;e.localeData=to;e.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nu);e.lang=af;u("X",0,0,"unix");u("x",0,0,"valueOf");i("x",ou);i("X",/[+-]?\d+(\.\d{1,3})?/);l("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n,10))});l("x",function(n,t,i){i._d=new Date(h(n))});r.version="2.10.3";th(o);r.fn=wp;r.min=lc;r.max=ac;r.utc=gi;r.unix=tv;r.months=cv;r.isDate=wr;r.locale=tr;r.invalid=bf;r.duration=vt;r.isMoment=at;r.weekdays=av;r.parseZone=iv;r.localeData=gt;r.isDuration=bu;r.monthsShort=lv;r.weekdaysMin=yv;r.defineLocale=ie;r.weekdaysShort=vv;r.normalizeUnits=p;r.relativeTimeThreshold=uy;var n=r,lw=(n.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(n){return/^nm$/i.test(n)},meridiem:function(n,t,i){return 12>n?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}}),n.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),aw={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},vw=(n.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return 12>n?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(n){return n.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return aw[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return lw[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),n.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),yw={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},vs=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&10>=n%100?3:n%100>=11?4:5},pw={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},tt=function(n){return function(t,i){var u=vs(t),r=pw[n][vs(t)];return 2===u&&(r=r[i?0:1]),r.replace(/%d/i,t)}},ys=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"],yf=(n.defineLocale("ar",{months:ys,monthsShort:ys,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return 12>n?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:tt("s"),m:tt("m"),mm:tt("m"),h:tt("h"),hh:tt("h"),d:tt("d"),dd:tt("d"),M:tt("M"),MM:tt("M"),y:tt("y"),yy:tt("y")},preparse:function(n){return n.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return yw[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return vw[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),{1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"}),ww=(n.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(n){return/^(gündüz|axşam)$/.test(n)},meridiem:function(n){return 4>n?"gecə":12>n?"səhər":17>n?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(n){if(0===n)return n+"-ıncı";var t=n%10,i=n%100-t,r=n>=100?100:null;return n+(yf[t]||yf[i]||yf[r])},week:{dow:1,doy:7}}),n.defineLocale("be",{months:oy,monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:sy,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:ri,mm:ri,h:ri,hh:ri,d:"дзень",dd:ri,M:"месяц",MM:ri,y:"год",yy:ri},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(n){return/^(дня|вечара)$/.test(n)},meridiem:function(n){return 4>n?"ночы":12>n?"раніцы":17>n?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n%10!=2&&n%10!=3||n%100==12||n%100==13?n+"-ы":n+"-і";case"D":return n+"-га";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":i>10&&20>i?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}}),{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}),bw={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},kw=(n.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কএক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(n){return n.replace(/[১২৩৪৫৬৭৮৯০]/g,function(n){return bw[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return ww[n]})},meridiemParse:/রাত|শকাল|দুপুর|বিকেল|রাত/,isPM:function(n){return/^(দুপুর|বিকেল|রাত)$/.test(n)},meridiem:function(n){return 4>n?"রাত":10>n?"শকাল":17>n?"দুপুর":20>n?"বিকেল":"রাত"},week:{dow:0,doy:6}}),{1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"}),dw={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},ps=(n.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(n){return n.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(n){return dw[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return kw[n]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,isPM:function(n){return/^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(n)},meridiem:function(n){return 4>n?"མཚན་མོ":10>n?"ཞོགས་ཀས":17>n?"ཉིན་གུང":20>n?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}}),n.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY LT",LLLL:"dddd, D [a viz] MMMM YYYY LT"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:nf,h:"un eur",hh:"%d eur",d:"un devezh",dd:nf,M:"ur miz",MM:nf,y:"ur bloaz",yy:hy},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(n){var t=1===n?"añ":"vet";return n+t},week:{dow:1,doy:4}}),n.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:ui,mm:ui,h:ui,hh:ui,d:"dan",dd:ui,M:"mjesec",MM:ui,y:"godinu",yy:ui},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(n,t){var i=1===n?"r":2===n?"n":3===n?"r":4===n?"t":"è";return("w"===t||"W"===t)&&(i="a"),n+i},week:{dow:1,doy:4}}),"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_")),ws="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),gw=(n.defineLocale("cs",{months:ps,monthsShort:ws,monthsParse:function(n,t){for(var r=[],i=0;12>i;i++)r[i]=new RegExp("^"+n[i]+"$|^"+t[i]+"$","i");return r}(ps,ws),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:b,m:b,mm:b,h:b,hh:b,d:b,dd:b,M:b,MM:b,y:b,yy:b},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], LT",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], LT"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(n){var t=/сехет$/i.exec(n)?"рен":/ҫул$/i.exec(n)?"тан":"ран";return n+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),n.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(n){var t=n,i="";return t>20?i=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),n+i},week:{dow:1,doy:4}}),n.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd [d.] D. MMMM YYYY LT"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:pt,mm:"%d Minuten",h:pt,hh:"%d Stunden",d:pt,dd:pt,M:pt,MM:pt,y:pt,yy:pt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:wt,mm:"%d Minuten",h:wt,hh:"%d Stunden",d:wt,dd:wt,M:wt,MM:wt,y:wt,yy:wt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(n,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[n.month()]:this._monthsNominativeEl[n.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(n,t,i){return n>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(n){return"μ"===(n+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(n,t){var i=this._calendarEl[n],r=t&&t.hours();return"function"==typeof i&&(i=i.apply(t)),i.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}}),n.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}}),n.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"D MMMM, YYYY",LLL:"D MMMM, YYYY LT",LLLL:"dddd, D MMMM, YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i}}),n.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}}),n.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY LT",LLLL:"dddd, [la] D[-an de] MMMM, YYYY LT"},meridiemParse:/[ap]\.t\.m/i,isPM:function(n){return"p"===n.charAt(0).toLowerCase()},meridiem:function(n,t,i){return n>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}}),"Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.".split("_")),nb="Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic".split("_"),tb=(n.defineLocale("es",{months:"Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?nb[n.month()]:gw[n.month()]},weekdays:"Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mié._Jue._Vie._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:rt,m:rt,mm:rt,h:rt,hh:rt,d:rt,dd:"%d päeva",M:rt,MM:rt,y:rt,yy:rt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] LT",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] LT",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] LT",llll:"ddd, YYYY[ko] MMM D[a] LT"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),{1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"}),ib={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},hu=(n.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(n){return/بعد از ظهر/.test(n)},meridiem:function(n){return 12>n?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(n){return n.replace(/[۰-۹]/g,function(n){return ib[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return tb[n]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}}),"nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" ")),rb=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",hu[7],hu[8],hu[9]],ub=(n.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] LT",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] LT",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] LT",llll:"ddd, Do MMM YYYY, [klo] LT"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:k,m:k,mm:k,h:k,hh:k,d:k,dd:k,M:k,MM:k,y:k,yy:k},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D. MMMM, YYYY LT"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(n){return n+(1===n?"er":"")}}),n.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(n){return n+(1===n?"er":"")},week:{dow:1,doy:4}}),"jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_")),fb="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),eb=(n.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?fb[n.month()]:ub[n.month()]},weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}}),n.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(n){return"uns segundos"===n?"nuns segundos":"en "+n},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}}),n.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY LT",LLLL:"dddd, D [ב]MMMM YYYY LT",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(n){return 2===n?"שעתיים":n+" שעות"},d:"יום",dd:function(n){return 2===n?"יומיים":n+" ימים"},M:"חודש",MM:function(n){return 2===n?"חודשיים":n+" חודשים"},y:"שנה",yy:function(n){return 2===n?"שנתיים":n%10==0&&10!==n?n+" שנה":n+" שנים"}}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),ob={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},sb=(n.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return ob[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return eb[n]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(n,t){return 12===n&&(n=0),"रात"===t?4>n?n:n+12:"सुबह"===t?n:"दोपहर"===t?n>=10?n:n+12:"शाम"===t?n+12:void 0},meridiem:function(n){return 4>n?"रात":10>n?"सुबह":17>n?"दोपहर":20>n?"शाम":"रात"},week:{dow:0,doy:6}}),n.defineLocale("hr",{months:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:fi,mm:fi,h:fi,hh:fi,d:"dan",dd:fi,M:"mjesec",MM:fi,y:"godinu",yy:fi},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),"vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ")),hb=(n.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D., LT",LLLL:"YYYY. MMMM D., dddd LT"},meridiemParse:/de|du/i,isPM:function(n){return"u"===n.charAt(1).toLowerCase()},meridiem:function(n,t,i){return 12>n?i===!0?"de":"DE":i===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return ao.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return ao.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:d,m:d,mm:d,h:d,hh:d,d:d,dd:d,M:d,MM:d,y:d,yy:d},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("hy-am",{months:vy,monthsShort:yy,weekdays:py,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., LT",LLLL:"dddd, D MMMM YYYY թ., LT"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(n){return/^(ցերեկվա|երեկոյան)$/.test(n)},meridiem:function(n){return 4>n?"գիշերվա":12>n?"առավոտվա":17>n?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(n,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===n?n+"-ին":n+"-րդ";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"siang"===t?n>=11?n:n+12:"sore"===t||"malam"===t?n+12:void 0},meridiem:function(n){return 11>n?"pagi":15>n?"siang":19>n?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),n.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd, D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:ut,m:ut,mm:ut,h:"klukkustund",hh:ut,d:ut,dd:ut,M:ut,MM:ut,y:ut,yy:ut},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(n){return(/^[0-9].+$/.test(n)?"tra":"in")+" "+n},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"LTs秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日LT",LLLL:"YYYY年M月D日LT dddd"},meridiemParse:/午前|午後/i,isPM:function(n){return"午後"===n},meridiem:function(n){return 12>n?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),n.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(n,t){return 12===n&&(n=0),"enjing"===t?n:"siyang"===t?n>=11?n:n+12:"sonten"===t||"ndalu"===t?n+12:void 0},meridiem:function(n){return 11>n?"enjing":15>n?"siyang":19>n?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),n.defineLocale("ka",{months:wy,monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:by,weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(n){return/(წამი|წუთი|საათი|წელი)/.test(n)?n.replace(/ი$/,"ში"):n+"ში"},past:function(n){return/(წამი|წუთი|საათი|დღე|თვე)/.test(n)?n.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(n)?n.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(n){return 0===n?n:1===n?n+"-ლი":20>n||100>=n&&n%20==0||n%100==0?"მე-"+n:n+"-ე"},week:{dow:1,doy:7}}),n.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[ថ្ងៃនៈ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}}),n.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 LT",LLLL:"YYYY년 MMMM D일 dddd LT"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(n){return"오후"===n},meridiem:function(n){return 12>n?"오전":"오후"}}),n.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:ky,past:dy,s:"e puer Sekonnen",m:er,mm:"%d Minutten",h:er,hh:"%d Stonnen",d:er,dd:"%d Deeg",M:er,MM:"%d Méint",y:er,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"}),cb="sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),bs=(n.defineLocale("lt",{months:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:np,weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], LT [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, LT [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], LT [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, LT [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:gy,m:ai,mm:sr,h:ai,hh:sr,d:ai,dd:sr,M:ai,MM:sr,y:ai,yy:sr},ordinalParse:/\d{1,2}-oji/,ordinal:function(n){return n+"-oji"},week:{dow:1,doy:4}}),{m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")}),ht=(n.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, LT",LLLL:"YYYY. [gada] D. MMMM, dddd, LT"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:tp,m:cr,mm:hr,h:cr,hh:hr,d:cr,dd:hr,M:cr,MM:hr,y:cr,yy:hr},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&4>=n?t[1]:t[2]},translate:function(n,t,i){var r=ht.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+ht.correctGrammaticalCase(n,r)}}),lb=(n.defineLocale("me",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sri.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:ht.translate,mm:ht.translate,h:ht.translate,hh:ht.translate,d:"dan",dd:ht.translate,M:"mjesec",MM:ht.translate,y:"godinu",yy:ht.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Во изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Во изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":i>10&&20>i?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}}),n.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,isPM:function(n){return/^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(n)},meridiem:function(n){return 4>n?"രാത്രി":12>n?"രാവിലെ":17>n?"ഉച്ച കഴിഞ്ഞ്":20>n?"വൈകുന്നേരം":"രാത്രി"}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),ab={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},vb=(n.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%s नंतर",past:"%s पूर्वी",s:"सेकंद",m:"एक मिनिट",mm:"%d मिनिटे",h:"एक तास",hh:"%d तास",d:"एक दिवस",dd:"%d दिवस",M:"एक महिना",MM:"%d महिने",y:"एक वर्ष",yy:"%d वर्षे"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return ab[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return lb[n]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(n,t){return 12===n&&(n=0),"रात्री"===t?4>n?n:n+12:"सकाळी"===t?n:"दुपारी"===t?n>=10?n:n+12:"सायंकाळी"===t?n+12:void 0},meridiem:function(n){return 4>n?"रात्री":10>n?"सकाळी":17>n?"दुपारी":20>n?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),n.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"tengahari"===t?n>=11?n:n+12:"petang"===t||"malam"===t?n+12:void 0},meridiem:function(n){return 11>n?"pagi":15>n?"tengahari":19>n?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),{1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"}),yb={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},pb=(n.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(n){return n.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(n){return yb[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return vb[n]})},week:{dow:1,doy:4}}),n.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tirs_ons_tors_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"H.mm",LTS:"LT.ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),wb={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},bb=(n.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आइ._सो._मङ्_बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return wb[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return pb[n]})},meridiemParse:/राती|बिहान|दिउँसो|बेलुका|साँझ|राती/,meridiemHour:function(n,t){return 12===n&&(n=0),"राती"===t?3>n?n:n+12:"बिहान"===t?n:"दिउँसो"===t?n>=10?n:n+12:"बेलुका"===t||"साँझ"===t?n+12:void 0},meridiem:function(n){return 3>n?"राती":10>n?"बिहान":15>n?"दिउँसो":18>n?"बेलुका":20>n?"साँझ":"राती"},calendar:{sameDay:"[आज] LT",nextDay:"[भोली] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडी",s:"केही समय",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:1,doy:7}}),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_")),kb="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ks=(n.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?kb[n.month()]:bb[n.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}}),n.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),"styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_")),ds="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),gs=(n.defineLocale("pl",{months:function(n,t){return""===t?"("+ds[n.month()]+"|"+ks[n.month()]+")":/D MMMM/.test(t)?ds[n.month()]:ks[n.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:vi,mm:vi,h:vi,hh:vi,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:vi,y:"rok",yy:vi},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] LT",LLLL:"dddd, D [de] MMMM [de] YYYY [às] LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"}),n.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:lr,h:"o oră",hh:lr,d:"o zi",dd:lr,M:"o lună",MM:lr,y:"un an",yy:lr},week:{dow:1,doy:7}}),n.defineLocale("ru",{months:rp,monthsShort:up,weekdays:fp,weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(n){if(n.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:yi,mm:yi,h:"час",hh:yi,d:"день",dd:yi,M:"месяц",MM:yi,y:"год",yy:yi},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(n){return/^(дня|вечера)$/.test(n)},meridiem:function(n){return 4>n?"ночи":12>n?"утра":17>n?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":return n+"-й";case"D":return n+"-го";case"w":case"W":return n+"-я";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, LT",LLLL:"YYYY MMMM D [වැනි] dddd, LTS"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(n){return n+" වැනි"},meridiem:function(n,t,i){return n>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}}),"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_")),nh="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),ct=(n.defineLocale("sk",{months:gs,monthsShort:nh,monthsParse:function(n,t){for(var r=[],i=0;12>i;i++)r[i]=new RegExp("^"+n[i]+"$|^"+t[i]+"$","i");return r}(gs,nh),weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:nt,m:nt,mm:nt,h:nt,hh:nt,d:nt,dd:nt,M:nt,MM:nt,y:nt,yy:nt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiemParse:/PD|MD/,isPM:function(n){return"M"===n.charAt(0)},meridiem:function(n){return 12>n?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&4>=n?t[1]:t[2]},translate:function(n,t,i){var r=ct.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+ct.correctGrammaticalCase(n,r)}}),lt=(n.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:ct.translate,mm:ct.translate,h:ct.translate,hh:ct.translate,d:"дан",dd:ct.translate,M:"месец",MM:ct.translate,y:"годину",yy:ct.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),{words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&4>=n?t[1]:t[2]},translate:function(n,t,i){var r=lt.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+lt.correctGrammaticalCase(n,r)}}),pf=(n.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:lt.translate,mm:lt.translate,h:lt.translate,hh:lt.translate,d:"dan",dd:lt.translate,M:"mesec",MM:lt.translate,y:"godinu",yy:lt.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"e":1===t?"a":2===t?"a":"e";return n+i},week:{dow:1,doy:4}}),n.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(n){return n+"வது"},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(n){return 2>n?" யாமம்":6>n?" வைகறை":10>n?" காலை":14>n?" நண்பகல்":18>n?" எற்பாடு":22>n?" மாலை":" யாமம்"},meridiemHour:function(n,t){return 12===n&&(n=0),"யாமம்"===t?2>n?n:n+12:"வைகறை"===t||"காலை"===t?n:"நண்பகல்"===t&&n>=10?n:n+12},week:{dow:0,doy:6}}),n.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"LT s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา LT",LLLL:"วันddddที่ D MMMM YYYY เวลา LT"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(n){return"หลังเที่ยง"===n},meridiem:function(n){return 12>n?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),n.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM DD, YYYY LT"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}}),{1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"});return n.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(n){if(0===n)return n+"'ıncı";var t=n%10,i=n%100-t,r=n>=100?100:null;return n+(pf[t]||pf[i]||pf[r])},week:{dow:1,doy:7}}),n.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),n.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),n.defineLocale("uk",{months:op,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:sp,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., LT",LLLL:"dddd, D MMMM YYYY р., LT"},calendar:{sameDay:wi("[Сьогодні "),nextDay:wi("[Завтра "),lastDay:wi("[Вчора "),nextWeek:wi("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return wi("[Минулої] dddd [").call(this);case 1:case 2:case 4:return wi("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:pi,mm:pi,h:"годину",hh:pi,d:"день",dd:pi,M:"місяць",MM:pi,y:"рік",yy:pi},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(n){return/^(дня|вечора)$/.test(n)},meridiem:function(n){return 4>n?"ночі":12>n?"ранку":17>n?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n+"-й";case"D":return n+"-го";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("uz",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"D MMMM YYYY, dddd LT"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),n.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY LT",LLLL:"dddd, D MMMM [năm] YYYY LT",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}}),n.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"下午"===t||"晚上"===t?n+12:n>=11?n:n+12},meridiem:function(n,t){var i=100*n+t;return 600>i?"凌晨":900>i?"早上":1130>i?"上午":1230>i?"中午":1800>i?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var i,t;return i=n().startOf("week"),t=this.unix()-i.unix()>=604800?"[下]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},lastWeek:function(){var i,t;return i=n().startOf("week"),t=this.unix()<i.unix()?"[上]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"周";default:return n}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiemParse:/早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return 12===n&&(n=0),"早上"===t||"上午"===t?n:"中午"===t?n>=11?n:n+12:"下午"===t||"晚上"===t?n+12:void 0},meridiem:function(n,t){var i=100*n+t;return 900>i?"早上":1130>i?"上午":1230>i?"中午":1800>i?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}}),n}),function(){"use strict";function n(n){function s(s,h){var rt,ut,p=s==window,l=h&&h.message!==undefined?h.message:undefined,g,k,d,tt,nt,w,b,it,ft,et,at;if(h=n.extend({},n.blockUI.defaults,h||{}),!h.ignoreIfBlocked||!n(s).data("blockUI.isBlocked")){if(h.overlayCSS=n.extend({},n.blockUI.defaults.overlayCSS,h.overlayCSS||{}),rt=n.extend({},n.blockUI.defaults.css,h.css||{}),h.onOverlayClick&&(h.overlayCSS.cursor="pointer"),ut=n.extend({},n.blockUI.defaults.themedCSS,h.themedCSS||{}),l=l===undefined?h.message:l,p&&t&&e(window,{fadeOut:0}),l&&typeof l!="string"&&(l.parentNode||l.jquery)&&(g=l.jquery?l[0]:l,k={},n(s).data("blockUI.history",k),k.el=g,k.parent=g.parentNode,k.display=g.style.display,k.position=g.style.position,k.parent&&k.parent.removeChild(g)),n(s).data("blockUI.onUnblock",h.onUnblock),d=h.baseZ,tt=f||h.forceIframe?n('<iframe class="blockUI" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+h.iframeSrc+'"><\/iframe>'):n('<div class="blockUI" style="display:none"><\/div>'),nt=h.theme?n('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+d+++';display:none"><\/div>'):n('<div class="blockUI blockOverlay" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"><\/div>'),h.theme&&p?(b='<div class="blockUI '+h.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:fixed">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):h.theme?(b='<div class="blockUI '+h.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:absolute">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):b=p?'<div class="blockUI '+h.blockMsgClass+' blockPage" style="z-index:'+(d+10)+';display:none;position:fixed"><\/div>':'<div class="blockUI '+h.blockMsgClass+' blockElement" style="z-index:'+(d+10)+';display:none;position:absolute"><\/div>',w=n(b),l&&(h.theme?(w.css(ut),w.addClass("ui-widget-content")):w.css(rt)),h.theme||nt.css(h.overlayCSS),nt.css("position",p?"fixed":"absolute"),(f||h.forceIframe)&&tt.css("opacity",0),it=[tt,nt,w],ft=p?n("body"):n(s),n.each(it,function(){this.appendTo(ft)}),h.theme&&h.draggable&&n.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"}),et=v&&(!n.support.boxModel||n("object,embed",p?null:s).length>0),o||et){if(p&&h.allowBodyStretch&&n.support.boxModel&&n("html,body").css("height","100%"),(o||!n.support.boxModel)&&!p)var ot=r(s,"borderTopWidth"),st=r(s,"borderLeftWidth"),ht=ot?"(0 - "+ot+")":0,ct=st?"(0 - "+st+")":0;n.each(it,function(n,t){var i=t[0].style,r,u;i.position="absolute";n<2?(p?i.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"'):i.setExpression("height",'this.parentNode.offsetHeight + "px"'),p?i.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):i.setExpression("width",'this.parentNode.offsetWidth + "px"'),ct&&i.setExpression("left",ct),ht&&i.setExpression("top",ht)):h.centerY?(p&&i.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),i.marginTop=0):!h.centerY&&p&&(r=h.css&&h.css.top?parseInt(h.css.top,10):0,u="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+r+') + "px"',i.setExpression("top",u))})}if(l&&(h.theme?w.find(".ui-widget-content").append(l):w.append(l),(l.jquery||l.nodeType)&&n(l).show()),(f||h.forceIframe)&&h.showOverlay&&tt.show(),h.fadeIn){var lt=h.onBlock?h.onBlock:u,vt=h.showOverlay&&!l?lt:u,yt=l?lt:u;h.showOverlay&&nt._fadeIn(h.fadeIn,vt);l&&w._fadeIn(h.fadeIn,yt)}else h.showOverlay&&nt.show(),l&&w.show(),h.onBlock&&h.onBlock.bind(w)();c(1,s,h);p?(t=w[0],i=n(h.focusableElements,t),h.focusInput&&setTimeout(a,20)):y(w[0],h.centerX,h.centerY);h.timeout&&(at=setTimeout(function(){p?n.unblockUI(h):n(s).unblock(h)},h.timeout),n(s).data("blockUI.timeout",at))}}function e(r,u){var o,s=r==window,e=n(r),l=e.data("blockUI.history"),a=e.data("blockUI.timeout"),f;a&&(clearTimeout(a),e.removeData("blockUI.timeout"));u=n.extend({},n.blockUI.defaults,u||{});c(0,r,u);u.onUnblock===null&&(u.onUnblock=e.data("blockUI.onUnblock"),e.removeData("blockUI.onUnblock"));f=s?n("body").children().filter(".blockUI").add("body > .blockUI"):e.find(">.blockUI");u.cursorReset&&(f.length>1&&(f[1].style.cursor=u.cursorReset),f.length>2&&(f[2].style.cursor=u.cursorReset));s&&(t=i=null);u.fadeOut?(o=f.length,f.stop().fadeOut(u.fadeOut,function(){--o==0&&h(f,l,u,r)})):h(f,l,u,r)}function h(t,i,r,u){var f=n(u);if(!f.data("blockUI.isBlocked")){if(t.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),i&&i.el&&(i.el.style.display=i.display,i.el.style.position=i.position,i.el.style.cursor="default",i.parent&&i.parent.appendChild(i.el),f.removeData("blockUI.history")),f.data("blockUI.static")&&f.css("position","static"),typeof r.onUnblock=="function")r.onUnblock(u,r);var e=n(document.body),o=e.width(),s=e[0].style.width;e.width(o-1).width(o);e[0].style.width=s}}function c(i,r,u){var f=r==window,o=n(r),e;(i||(!f||t)&&(f||o.data("blockUI.isBlocked")))&&(o.data("blockUI.isBlocked",i),f&&u.bindEvents&&(!i||u.showOverlay))&&(e="mousedown mouseup keydown keypress keyup touchstart touchend touchmove",i?n(document).bind(e,u,l):n(document).unbind(e,l))}function l(r){var u,f;if(r.type==="keydown"&&r.keyCode&&r.keyCode==9&&t&&r.data.constrainTabKey){var e=i,s=!r.shiftKey&&r.target===e[e.length-1],o=r.shiftKey&&r.target===e[0];if(s||o)return setTimeout(function(){a(o)},10),!1}if(u=r.data,f=n(r.target),f.hasClass("blockOverlay")&&u.onOverlayClick)u.onOverlayClick(r);return f.parents("div."+u.blockMsgClass).length>0?!0:f.parents().children().filter("div.blockUI").length===0}function a(n){if(i){var t=i[n===!0?i.length-1:0];t&&t.focus()}}function y(n,t,i){var u=n.parentNode,f=n.style,e=(u.offsetWidth-n.offsetWidth)/2-r(u,"borderLeftWidth"),o=(u.offsetHeight-n.offsetHeight)/2-r(u,"borderTopWidth");t&&(f.left=e>0?e+"px":"0");i&&(f.top=o>0?o+"px":"0")}function r(t,i){return parseInt(n.css(t,i),10)||0}var t,i;n.fn._fadeIn=n.fn.fadeIn;var u=n.noop||function(){},f=/MSIE/.test(navigator.userAgent),o=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),p=document.documentMode||0,v=n.isFunction(document.createElement("div").style.setExpression);n.blockUI=function(n){s(window,n)};n.unblockUI=function(n){e(window,n)};n.growlUI=function(t,i,r,u){var f=n('<div class="growlUI"><\/div>'),e,o;t&&f.append("<h1>"+t+"<\/h1>");i&&f.append("<h2>"+i+"<\/h2>");r===undefined&&(r=3e3);e=function(t){t=t||{};n.blockUI({message:f,fadeIn:typeof t.fadeIn!="undefined"?t.fadeIn:700,fadeOut:typeof t.fadeOut!="undefined"?t.fadeOut:1e3,timeout:typeof t.timeout!="undefined"?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:u,css:n.blockUI.defaults.growlCSS})};e();o=f.css("opacity");f.mouseover(function(){e({fadeIn:0,timeout:3e4});var t=n(".blockMsg");t.stop();t.fadeTo(300,1)}).mouseout(function(){n(".blockMsg").fadeOut(1e3)})};n.fn.block=function(t){if(this[0]===window)return n.blockUI(t),this;var i=n.extend({},n.blockUI.defaults,t||{});return this.each(function(){var t=n(this);i.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){n.css(this,"position")=="static"&&(this.style.position="relative",n(this).data("blockUI.static",!0));this.style.zoom=1;s(this,t)})};n.fn.unblock=function(t){return this[0]===window?(n.unblockUI(t),this):this.each(function(){e(this,t)})};n.blockUI.version=2.7;n.blockUI.defaults={message:"<h1>Please wait...<\/h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};t=null;i=[]}typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)}();!function(n){n(["jquery"],function(n){return function(){function v(n,t,r){return u({type:f.error,iconClass:i().iconClasses.error,message:n,optionsOverride:r,title:t})}function r(r,u){return r||(r=i()),t=n("#"+r.containerId),t.length?t:(u&&(t=nt(r)),t)}function y(n,t,r){return u({type:f.info,iconClass:i().iconClasses.info,message:n,optionsOverride:r,title:t})}function p(n){o=n}function w(n,t,r){return u({type:f.success,iconClass:i().iconClasses.success,message:n,optionsOverride:r,title:t})}function b(n,t,r){return u({type:f.warning,iconClass:i().iconClasses.warning,message:n,optionsOverride:r,title:t})}function k(n){var u=i();t||r(u);h(n,u)||g(u)}function d(u){var f=i();return t||r(f),u&&0===n(":focus",u).length?void e(u):void(t.children().length&&t.remove())}function g(i){for(var u=t.children(),r=u.length-1;r>=0;r--)h(n(u[r]),i)}function h(t,i){return t&&0===n(":focus",t).length?(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){e(t)}}),!0):!1}function nt(i){return t=n("<div/>").attr("id",i.containerId).addClass(i.positionClass).attr("aria-live","polite").attr("role","alert"),t.appendTo(n(i.target)),t}function tt(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:'<button type="button">&times;<\/button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function c(n){o&&o(n)}function u(u){function v(t){if(!n(":focus",o).length||t)return(clearTimeout(h.intervalId),o[f.hideMethod]({duration:f.hideDuration,easing:f.hideEasing,complete:function(){e(o);f.onHidden&&"hidden"!==a.state&&f.onHidden();a.state="hidden";a.endTime=new Date;c(a)}}))}function g(){(f.timeOut>0||f.extendedTimeOut>0)&&(w=setTimeout(v,f.extendedTimeOut),h.maxHideTime=parseFloat(f.extendedTimeOut),h.hideEta=(new Date).getTime()+h.maxHideTime)}function nt(){clearTimeout(w);h.hideEta=0;o.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}function tt(){var n=(h.hideEta-(new Date).getTime())/h.maxHideTime*100;b.width(n+"%")}var f=i(),p=u.iconClass||f.iconClass;if("undefined"!=typeof u.optionsOverride&&(f=n.extend(f,u.optionsOverride),p=u.optionsOverride.iconClass||p),f.preventDuplicates){if(u.message===s)return;s=u.message}l++;t=r(f,!0);var w=null,o=n("<div/>"),k=n("<div/>"),d=n("<div/>"),b=n("<div/>"),y=n(f.closeHtml),h={intervalId:null,hideEta:null,maxHideTime:null},a={toastId:l,state:"visible",startTime:new Date,options:f,map:u};return u.iconClass&&o.addClass(f.toastClass).addClass(p),u.title&&(k.append(u.title).addClass(f.titleClass),o.append(k)),u.message&&(d.append(u.message).addClass(f.messageClass),o.append(d)),f.closeButton&&(y.addClass("toast-close-button").attr("role","button"),o.prepend(y)),f.progressBar&&(b.addClass("toast-progress"),o.prepend(b)),o.hide(),f.newestOnTop?t.prepend(o):t.append(o),o[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(w=setTimeout(v,f.timeOut),h.maxHideTime=parseFloat(f.timeOut),h.hideEta=(new Date).getTime()+h.maxHideTime,f.progressBar&&(h.intervalId=setInterval(tt,10))),o.hover(nt,g),!f.onclick&&f.tapToDismiss&&o.click(v),f.closeButton&&y&&y.click(function(n){n.stopPropagation?n.stopPropagation():void 0!==n.cancelBubble&&n.cancelBubble!==!0&&(n.cancelBubble=!0);v(!0)}),f.onclick&&o.click(function(){f.onclick();v()}),c(a),f.debug&&console&&console.log(a),o}function i(){return n.extend({},tt(),a.options)}function e(n){t||(t=r());n.is(":visible")||(n.remove(),n=null,0===t.children().length&&(t.remove(),s=void 0))}var t,o,s,l=0,f={error:"error",info:"info",success:"success",warning:"warning"},a={clear:k,remove:d,error:v,getContainer:r,info:y,options:{},subscribe:p,success:w,version:"2.1.0",warning:b};return a}()})}("function"==typeof define&&define.amd?define:function(n,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(n,t){typeof exports=="object"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Spinner=t()}(this,function(){"use strict";function i(n,t){var i=document.createElement(n||"div");for(var r in t)i[r]=t[r];return i}function t(n){for(var t=1,i=arguments.length;t<i;t++)n.appendChild(arguments[t]);return n}function a(n,t,i,r){var f=["opacity",t,~~(n*100),i,r].join("-"),o=.01+i/r*100,s=Math.max(1-(1-n)/t*(100-o),n),c=u.substring(0,u.indexOf("Animation")).toLowerCase(),l=c&&"-"+c+"-"||"";return h[f]||(e.insertRule("@"+l+"keyframes "+f+"{0%{opacity:"+s+"}"+o+"%{opacity:"+n+"}"+(o+.01)+"%{opacity:1}"+(o+t)%100+"%{opacity:"+n+"}100%{opacity:"+s+"}}",e.cssRules.length),h[f]=1),f}function o(n,t){var u=n.style,r,i;for(t=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<s.length;i++)if(r=s[i]+t,u[r]!==undefined)return r;if(u[t]!==undefined)return t}function n(n,t){for(var i in t)n.style[o(n,i)||i]=t[i];return n}function c(n){for(var r,i,t=1;t<arguments.length;t++){r=arguments[t];for(i in r)n[i]===undefined&&(n[i]=r[i])}return n}function l(n,t){return typeof n=="string"?n:n[t%n.length]}function r(n){this.opts=c(n||{},r.defaults,v)}function y(){function u(n,t){return i("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',t)}e.addRule(".spin-vml","behavior:url(#default#VML)");r.prototype.lines=function(i,r){function s(){return n(u("group",{coordsize:o+" "+o,coordorigin:-e+" "+-e}),{width:o,height:o})}function a(i,f,o){t(c,t(n(s(),{rotation:360/r.lines*i+"deg",left:~~f}),t(n(u("roundrect",{arcsize:r.corners}),{width:e,height:r.width,left:r.radius,top:-r.width>>1,filter:o}),u("fill",{color:l(r.color,i),opacity:r.opacity}),u("stroke",{opacity:0}))))}var e=r.length+r.width,o=2*e,h=-(r.width+r.length)*2+"px",c=n(s(),{position:"absolute",top:h,left:h}),f;if(r.shadow)for(f=1;f<=r.lines;f++)a(f,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(f=1;f<=r.lines;f++)a(f);return t(i,c)};r.prototype.opacity=function(n,t,i,r){var u=n.firstChild;r=r.shadow&&r.lines||0;u&&t+r<u.childNodes.length&&(u=u.childNodes[t+r],u=u&&u.firstChild,u=u&&u.firstChild,u&&(u.opacity=i))}}var s=["webkit","Moz","ms","O"],h={},u,e=function(){var n=i("style",{type:"text/css"});return t(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),v={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:1/4,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"},f;return r.defaults={},c(r.prototype,{spin:function(t){this.stop();var f=this,r=f.opts,e=f.el=n(i(0,{className:r.className}),{position:r.position,width:0,zIndex:r.zIndex}),p=r.radius+r.length+r.width;if(t&&(t.insertBefore(e,t.firstChild||null),n(e,{left:r.left,top:r.top})),e.setAttribute("role","progressbar"),f.lines(e,f.opts),!u){var s=0,l=(r.lines-1)*(1-r.direction)/2,h,c=r.fps,o=c/r.speed,a=(1-r.opacity)/(o*r.trail/100),v=o/r.lines;(function y(){s++;for(var n=0;n<r.lines;n++)h=Math.max(1-(s+(r.lines-n)*v)%o*a,r.opacity),f.opacity(e,n*r.direction+l,h,r);f.timeout=f.el&&setTimeout(y,~~(1e3/c))})()}return f},stop:function(){var n=this.el;return n&&(clearTimeout(this.timeout),n.parentNode&&n.parentNode.removeChild(n),this.el=undefined),this},lines:function(r,f){function s(t,r){return n(i(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:t,boxShadow:r,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*e+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var e=0,h=(f.lines-1)*(1-f.direction)/2,o;e<f.lines;e++)o=n(i(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:u&&a(f.opacity,f.trail,h+e*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&t(o,n(s("#000","0 0 4px #000"),{top:"2px"})),t(r,t(o,s(l(f.color,e),"0 0 1px rgba(0,0,0,.1)")));return r},opacity:function(n,t,i){t<n.childNodes.length&&(n.childNodes[t].style.opacity=i)}}),f=n(i("group"),{behavior:"url(#default#VML)"}),!o(f,"transform")&&f.adj?y():u=o(f,"animation"),r}),function(n){if(typeof exports=="object")n(require("jquery"),require("spin"));else if(typeof define=="function"&&define.amd)define(["jquery","spin"],n);else{if(!window.Spinner)throw new Error("Spin.js not present");n(window.jQuery,window.Spinner)}}(function(n,t){n.fn.spin=function(i,r){return this.each(function(){var f=n(this),u=f.data();u.spinner&&(u.spinner.stop(),delete u.spinner);i!==!1&&(i=n.extend({color:r||f.css("color")},n.fn.spin.presets[i]||i),u.spinner=new t(i).spin(this))})};n.fn.spin.presets={tiny:{lines:8,length:2,width:2,radius:3},small:{lines:8,length:4,width:3,radius:5},large:{lines:10,length:8,width:4,radius:8}}});!function(n,t){"use strict";return"function"==typeof define&&define.amd?void define("ngStorage",["angular"],function(n){return t(n)}):t(n)}("undefined"==typeof angular?null:angular,function(n){"use strict";function t(t){return["$rootScope","$window","$log","$timeout",function(i,r,u,f){function v(n){var t,i;try{t=r[n]}catch(u){t=!1}if(t&&"localStorage"===n){i="__"+Math.round(1e7*Math.random());try{localStorage.setItem(i,i);localStorage.removeItem(i)}catch(u){t=!1}}return t}var s,l,o=v(t)||(u.warn("This browser does not support Web Storage!"),{setItem:function(){},getItem:function(){}}),e={$default:function(t){for(var i in t)n.isDefined(e[i])||(e[i]=t[i]);return e},$reset:function(n){for(var t in e)"$"===t[0]||delete e[t]&&o.removeItem("ngStorage-"+t);return e.$default(n)}},h,c,a;try{o=r[t];o.length}catch(y){u.warn("This browser does not support Web Storage!");o={}}for(c=0,a=o.length;a>c;c++)(h=o.key(c))&&"ngStorage-"===h.slice(0,10)&&(e[h.slice(10)]=n.fromJson(o.getItem(h)));return s=n.copy(e),i.$watch(function(){var t;l||(l=f(function(){if(l=null,!n.equals(e,s)){t=n.copy(s);n.forEach(e,function(i,r){n.isDefined(i)&&"$"!==r[0]&&o.setItem("ngStorage-"+r,n.toJson(i));delete t[r]});for(var i in t)o.removeItem("ngStorage-"+i);s=n.copy(e)}},100,!1))}),"localStorage"===t&&r.addEventListener&&r.addEventListener("storage",function(t){"ngStorage-"===t.key.slice(0,10)&&(t.newValue?e[t.key.slice(10)]=n.fromJson(t.newValue):delete e[t.key.slice(10)],s=n.copy(e),i.$apply())}),e}]}n.module("ngStorage",[]).factory("$localStorage",t("localStorage")).factory("$sessionStorage",t("sessionStorage"))});angular.module("xeditable",[]).value("editableOptions",{theme:"default",icon_set:"default",buttons:"right",blurElem:"cancel",blurForm:"ignore",activate:"focus",isDisabled:!1,activationEvent:"click",submitButtonTitle:"Submit",submitButtonAriaLabel:"Submit",cancelButtonTitle:"Cancel",cancelButtonAriaLabel:"Cancel",clearButtonTitle:"Clear",clearButtonAriaLabel:"Clear",displayClearButton:!1});angular.module("xeditable").directive("editableBsdate",["editableDirectiveFactory","$injector","$parse",function(n,t,i){uibDatepickerConfig=t.get("uibDatepickerConfig");uibDatepickerPopupConfig=t.get("uibDatepickerPopupConfig");var r=[["eIsOpen","is-open"],["eDateDisabled","date-disabled"],["eDatepickerPopup","uib-datepicker-popup"],["eShowButtonBar","show-button-bar"],["eCurrentText","current-text"],["eClearText","clear-text"],["eCloseText","close-text"],["eCloseOnDateSelection","close-on-date-selection"],["eDatepickerAppendToBody","datepicker-append-to-body"],["eOnOpenFocus","on-open-focus"],["eName","name"],["eDateDisabled","date-disabled"],["eAltInputFormats","alt-input-formats"]],u=[["eFormatDay","formatDay"],["eFormatMonth","formatMonth"],["eFormatYear","formatYear"],["eFormatDayHeader","formatDayHeader"],["eFormatDayTitle","formatDayTitle"],["eFormatMonthTitle","formatMonthTitle"],["eMaxMode","maxMode"],["eMinMode","minMode"],["eDatepickerMode","datepickerMode"]];return n({directiveName:"editableBsdate",inputTpl:"<div><\/div>",render:function(){var e,h,s,v,o,c,y,l,a;this.parent.render.call(this);var n=this.attrs,f=this.scope,t=angular.element('<input type="text" class="form-control" ng-model="$parent.$data"/>');for(t.attr("uib-datepicker-popup",n.eDatepickerPopupXEditable||uibDatepickerPopupConfig.datepickerPopup),t.attr("year-range",n.eYearRange||20),t.attr("ng-readonly",n.eReadonly||!1),e=r.length-1;e>=0;e--)h=n[r[e][0]],"undefined"!=typeof h&&t.attr(r[e][1],h);for(n.eNgChange&&(t.attr("ng-change",n.eNgChange),this.inputEl.removeAttr("ng-change")),n.eStyle&&(t.attr("style",n.eStyle),this.inputEl.removeAttr("style")),s={maxDate:f.$eval(n.eMaxDate)||uibDatepickerConfig.maxDate,minDate:f.$eval(n.eMinDate)||uibDatepickerConfig.minDate,showWeeks:n.eShowWeeks?"true"===n.eShowWeeks.toLowerCase():uibDatepickerConfig.showWeeks,startingDay:n.eStartingDay||0,initDate:f.$eval(n.eInitDate)||new Date},n.eDatepickerOptions&&(v=i(n.eDatepickerOptions)(f),angular.extend(s,v)),o=u.length-1;o>=0;o--)c=n[u[o][0]],"undefined"!=typeof c&&(s[u[o][1]]=c);f.dateOptions=s;y=angular.isDefined(n.eShowCalendarButton)?n.eShowCalendarButton:"true";"true"===y?(l=angular.element('<button type="button" class="btn btn-default"><i class="glyphicon glyphicon-calendar"><\/i><\/button>'),a=angular.element('<span class="input-group-btn"><\/span>'),l.attr("ng-click",n.eNgClick),a.append(l),this.inputEl.append(a)):t.attr("ng-click",n.eNgClick);t.attr("datepicker-options","dateOptions");this.inputEl.prepend(t);this.inputEl.removeAttr("class");this.inputEl.removeAttr("ng-click");this.inputEl.removeAttr("is-open");this.inputEl.removeAttr("init-date");this.inputEl.removeAttr("datepicker-popup");this.inputEl.removeAttr("required");this.inputEl.removeAttr("ng-model");this.inputEl.removeAttr("date-picker-append-to-body");this.inputEl.removeAttr("name");this.inputEl.attr("class","input-group")},autosubmit:function(){var n=this;n.inputEl.bind("change",function(){setTimeout(function(){n.scope.$apply(function(){n.scope.$form.$submit()})},500)});n.inputEl.bind("keydown",function(t){9===t.keyCode&&"submit"===n.editorEl.attr("blur")&&n.scope.$apply(function(){n.scope.$form.$submit()})})}})}]);angular.module("xeditable").directive("editableBstime",["editableDirectiveFactory",function(n){return n({directiveName:"editableBstime",inputTpl:"<div uib-timepicker><\/div>",render:function(){this.parent.render.call(this);var n=angular.element('<div class="well well-small" style="display:inline-block;"><\/div>');n.attr("ng-model",this.inputEl.attr("ng-model"));this.inputEl.removeAttr("ng-model");this.attrs.eNgChange&&(n.attr("ng-change",this.inputEl.attr("ng-change")),this.inputEl.removeAttr("ng-change"));this.inputEl.wrap(n)}})}]);angular.module("xeditable").directive("editableCheckbox",["editableDirectiveFactory",function(n){return n({directiveName:"editableCheckbox",inputTpl:'<input type="checkbox">',render:function(){this.parent.render.call(this);this.inputEl.wrap("<label><\/label>");this.attrs.eTitle&&this.inputEl.parent().append("<span>"+this.attrs.eTitle+"<\/span>")},autosubmit:function(){var n=this;n.inputEl.bind("change",function(){setTimeout(function(){n.scope.$apply(function(){n.scope.$form.$submit()})},500)})}})}]);angular.module("xeditable").directive("editableChecklist",["editableDirectiveFactory","editableNgOptionsParser",function(n,t){return n({directiveName:"editableChecklist",inputTpl:"<span><\/span>",useCopy:!0,render:function(){var u;this.parent.render.call(this);var n=t(this.attrs.eNgOptions),i="",r="";this.attrs.eNgChange&&(i=' ng-change="'+this.attrs.eNgChange+'"');this.attrs.eChecklistComparator&&(r=' checklist-comparator="'+this.attrs.eChecklistComparator+'"');u='<label ng-repeat="'+n.ngRepeat+'"><input type="checkbox" checklist-model="$parent.$parent.$data" checklist-value="'+n.locals.valueFn+'"'+i+r+'><span ng-bind="'+n.locals.displayFn+'"><\/span><\/label>';this.inputEl.removeAttr("ng-model");this.inputEl.removeAttr("ng-options");this.inputEl.removeAttr("ng-change");this.inputEl.removeAttr("checklist-comparator");this.inputEl.html(u)}})}]);angular.module("xeditable").directive("editableCombodate",["editableDirectiveFactory","editableCombodate",function(n,t){return n({directiveName:"editableCombodate",inputTpl:'<input type="text">',render:function(){var i,n,r;this.parent.render.call(this);i={value:new Date(this.scope.$data)};n=this;angular.forEach(["format","template","minYear","maxYear","yearDescending","minuteStep","secondStep","firstItem","errorClass","customClass","roundTime","smartDays"],function(t){var r="e"+t.charAt(0).toUpperCase()+t.slice(1);r in n.attrs&&(i[t]="minYear"==t||"maxYear"==t||"minuteStep"==t||"secondStep"==t?parseInt(n.attrs[r],10):n.attrs[r])});r=t.getInstance(this.inputEl,i);r.$widget.find("select").bind("change",function(){n.scope.$data=r.getValue()?new Date(r.getValue().replace(/-/g,"/")).toISOString():null}).change()}})}]),function(){var n=function(n){return n.toLowerCase().replace(/-(.)/g,function(n,t){return t.toUpperCase()})},t="text|password|email|tel|number|url|search|color|date|datetime|datetime-local|time|month|week|file".split("|");angular.forEach(t,function(t){var i=n("editable-"+t);angular.module("xeditable").directive(i,["editableDirectiveFactory",function(n){return n({directiveName:i,inputTpl:'<input type="'+t+'">',render:function(){var t,i,n;(this.parent.render.call(this),this.attrs.eInputgroupleft||this.attrs.eInputgroupright)&&((this.inputEl.wrap('<div class="input-group"><\/div>'),this.attrs.eInputgroupleft)&&(t=angular.element('<span class="input-group-addon">'+this.attrs.eInputgroupleft+"<\/span>"),this.inputEl.parent().prepend(t)),this.attrs.eInputgroupright&&(i=angular.element('<span class="input-group-addon">'+this.attrs.eInputgroupright+"<\/span>"),this.inputEl.parent().append(i)));this.attrs.eLabel&&(n=angular.element("<label>"+this.attrs.eLabel+"<\/label>"),this.attrs.eInputgroupleft||this.attrs.eInputgroupright?this.inputEl.parent().parent().prepend(n):this.inputEl.parent().prepend(n));this.attrs.eFormclass&&(this.editorEl.addClass(this.attrs.eFormclass),this.inputEl.removeAttr("formclass"))},autosubmit:function(){var n=this;n.inputEl.bind("keydown",function(t){9===t.keyCode&&"submit"===n.editorEl.attr("blur")&&n.scope.$apply(function(){n.scope.$form.$submit()})})}})}])});angular.module("xeditable").directive("editableRange",["editableDirectiveFactory","$interpolate",function(n,t){return n({directiveName:"editableRange",inputTpl:'<input type="range" id="range" name="range">',render:function(){this.parent.render.call(this);this.inputEl.after("<output>"+t.startSymbol()+"$data"+t.endSymbol()+"<\/output>")}})}])}();angular.module("xeditable").directive("editableTagsInput",["editableDirectiveFactory","editableUtils",function(n,t){var i=n({directiveName:"editableTagsInput",inputTpl:"<tags-input><\/tags-input>",useCopy:!0,render:function(){this.parent.render.call(this);this.inputEl.append(t.rename("auto-complete",this.attrs.$autoCompleteElement));this.inputEl.removeAttr("ng-model");this.inputEl.attr("ng-model","$parent.$data")}}),r=i.link;return i.link=function(n,t,i,u){var f=t.find("editable-tags-input-auto-complete");return i.$autoCompleteElement=f.clone(),f.remove(),r(n,t,i,u)},i}]);angular.module("xeditable").directive("editableRadiolist",["editableDirectiveFactory","editableNgOptionsParser","$interpolate",function(n,t,i){return n({directiveName:"editableRadiolist",inputTpl:"<span><\/span>",render:function(){var f;this.parent.render.call(this);var n=t(this.attrs.eNgOptions),r="",u="";this.attrs.eNgChange&&(r=' ng-change="'+this.attrs.eNgChange+'"');this.attrs.eName&&(u=' name="'+this.attrs.eName+'"');f='<label data-ng-repeat="'+n.ngRepeat+'"><input type="radio" data-ng-disabled="::'+this.attrs.eNgDisabled+'" data-ng-model="$parent.$parent.$data" data-ng-value="'+i.startSymbol()+"::"+n.locals.valueFn+i.endSymbol()+'"'+r+u+'><span data-ng-bind="::'+n.locals.displayFn+'"><\/span><\/label>';this.inputEl.removeAttr("ng-model");this.inputEl.removeAttr("ng-options");this.inputEl.removeAttr("ng-change");this.inputEl.html(f)},autosubmit:function(){var n=this;n.inputEl.bind("change",function(){setTimeout(function(){n.scope.$apply(function(){n.scope.$form.$submit()})},500)})}})}]);angular.module("xeditable").directive("editableSelect",["editableDirectiveFactory",function(n){return n({directiveName:"editableSelect",inputTpl:"<select><\/select>",render:function(){if(this.parent.render.call(this),this.attrs.ePlaceholder){var n=angular.element('<option value="">'+this.attrs.ePlaceholder+"<\/option>");this.inputEl.append(n)}},autosubmit:function(){var n=this;n.attrs.hasOwnProperty("eMultiple")||n.inputEl.bind("change",function(){n.scope.$apply(function(){n.scope.$form.$submit()})})}})}]);angular.module("xeditable").directive("editableTextarea",["editableDirectiveFactory",function(n){return n({directiveName:"editableTextarea",inputTpl:"<textarea><\/textarea>",render:function(){this.parent.render.call(this);this.attrs.eFormclass&&(this.editorEl.addClass(this.attrs.eFormclass),this.inputEl.removeAttr("formclass"))},addListeners:function(){var n=this;n.parent.addListeners.call(n);n.single&&"no"!==n.buttons&&n.autosubmit()},autosubmit:function(){var n=this;n.inputEl.bind("keydown",function(t){n.attrs.submitOnEnter?13!==t.keyCode||t.shiftKey||n.scope.$apply(function(){n.scope.$form.$submit()}):((t.ctrlKey||t.metaKey)&&13===t.keyCode||9===t.keyCode&&"submit"===n.editorEl.attr("blur"))&&n.scope.$apply(function(){n.scope.$form.$submit()})})}})}]);angular.module("xeditable").directive("editableUidate",["editableDirectiveFactory",function(n){return n({directiveName:"editableUidate",inputTpl:'<input class="form-control" />',render:function(){this.parent.render.call(this);this.inputEl.attr("ui-date",this.attrs.eUiDate);this.inputEl.attr("placeholder",this.attrs.ePlaceholder)}})}]);angular.module("xeditable").directive("editableUiSelect",["editableDirectiveFactory","editableUtils",function(n,t){var i=n({directiveName:"editableUiSelect",inputTpl:"<ui-select><\/ui-select>",render:function(){this.parent.render.call(this);this.inputEl.append(t.rename("ui-select-match",this.attrs.$matchElement));this.inputEl.append(t.rename("ui-select-choices",this.attrs.$choicesElement));this.inputEl.removeAttr("ng-model");this.inputEl.attr("ng-model","$parent.$parent.$data")},autosubmit:function(){var n=this;n.inputEl.bind("change",function(){setTimeout(function(){n.scope.$apply(function(){n.scope.$form.$submit()})},500)});n.inputEl.bind("keydown",function(t){9===t.keyCode&&"submit"===n.editorEl.attr("blur")&&n.scope.$apply(function(){n.scope.$form.$submit()})})}}),r=i.link;return i.link=function(n,t,i,u){var f=t.find("editable-ui-select-match"),e=t.find("editable-ui-select-choices");return i.$matchElement=f.clone(),i.$choicesElement=e.clone(),f.remove(),e.remove(),r(n,t,i,u)},i}]);angular.module("xeditable").factory("editableController",["$q","editableUtils",function(n,t){function i(n,i,r,u,f,e,o,s,h,c,l,a){var y,w,v=this,k,b,p;v.scope=n;v.elem=r;v.attrs=i;v.inputEl=null;v.editorEl=null;v.single=!0;v.error="";v.theme=f[i.editableTheme]||f[o.theme]||f["default"];v.parent={};k=i.editableTheme||o.theme||"default";b=i.editableIconSet||o.icon_set;v.icon_set="default"===b?e["default"][k]:e.external[b];v.inputTpl="";v.directiveName="";v.useCopy=!1;v.single=null;v.buttons="right";v.popover=!1;v.init=function(t){if(v.single=t,v.name=i.eName||i[v.directiveName],!i[v.directiveName])throw"You should provide value for `"+v.directiveName+"` in editable element!";y=u(i[v.directiveName]);v.buttons=v.single?v.attrs.buttons||o.buttons:"no";i.eName&&v.scope.$watch("$data",function(n){v.scope.$form.$data[i.eName]=n});i.onshow&&(v.onshow=function(){return v.catchError(u(i.onshow)(n))});i.onhide&&(v.onhide=function(){return u(i.onhide)(n)});i.oncancel&&(v.oncancel=function(){return u(i.oncancel)(n)});i.onbeforesave&&(v.onbeforesave=function(){return v.catchError(u(i.onbeforesave)(n))});i.onaftersave&&(v.onaftersave=function(){return v.catchError(u(i.onaftersave)(n))});i.popover&&(v.popover=v.attrs.popover);n.$parent.$watch(i[v.directiveName],function(){v.setLocalValue();v.handleEmpty()})};v.render=function(){var r=v.theme,u,n,e,f,s,c,h;v.inputEl=angular.element(v.inputTpl);v.controlsEl=angular.element(r.controlsTpl);v.controlsEl.append(v.inputEl);"no"!==v.buttons&&(v.buttonsEl=angular.element(r.buttonsTpl),v.submitEl=angular.element(r.submitTpl),v.resetEl=angular.element(r.resetTpl),v.cancelEl=angular.element(r.cancelTpl),v.submitEl.attr("title",o.submitButtonTitle),v.submitEl.attr("aria-label",o.submitButtonAriaLabel),v.cancelEl.attr("title",o.cancelButtonTitle),v.cancelEl.attr("aria-label",o.cancelButtonAriaLabel),v.resetEl.attr("title",o.clearButtonTitle),v.resetEl.attr("aria-label",o.clearButtonAriaLabel),v.icon_set&&(v.submitEl.find("span").addClass(v.icon_set.ok),v.cancelEl.find("span").addClass(v.icon_set.cancel),v.resetEl.find("span").addClass(v.icon_set.clear)),v.buttonsEl.append(v.submitEl).append(v.cancelEl),o.displayClearButton&&v.buttonsEl.append(v.resetEl),v.controlsEl.append(v.buttonsEl),v.inputEl.addClass("editable-has-buttons"));v.errorEl=angular.element(r.errorTpl);v.controlsEl.append(v.errorEl);v.editorEl=angular.element(v.single?r.formTpl:r.noformTpl);v.editorEl.append(v.controlsEl);for(u in i.$attr)u.length<=1||(n=!1,e=u.substring(1,2),"e"===u.substring(0,1)&&e===e.toUpperCase()&&(n=u.substring(1),"Form"!==n&&"NgSubmit"!==n)&&(f=n.substring(0,1),s=n.substring(1,2),n=s===s.toUpperCase()&&f===f.toUpperCase()?f.toLowerCase()+"-"+t.camelToDash(n.substring(1)):f.toLowerCase()+t.camelToDash(n.substring(1)),c="value"!==n&&""===i[u]?n:i[u],v.inputEl.attr(n,c)));(v.inputEl.addClass("editable-input"),v.inputEl.attr("ng-model","$parent.$data"),v.editorEl.addClass(t.camelToDash(v.directiveName)),v.single&&(v.editorEl.attr("editable-form","$form"),v.editorEl.attr("blur",v.attrs.blur||o.blurElem)),v.popover)&&(h=angular.element("<div><\/div>"),h.append(v.editorEl),v.editorEl=h,a.put("popover.html",v.editorEl[0].outerHTML));angular.isFunction(r.postrender)&&r.postrender.call(v)};v.setLocalValue=function(){v.scope.$data=v.useCopy?angular.copy(y(n.$parent)):y(n.$parent)};p=null;v.show=function(){return v.setLocalValue(),v.render(),r.after(v.editorEl),p=n.$new(),h(v.editorEl)(p),v.addListeners(),r.addClass("editable-hide"),v.onshow()};v.hide=function(){return p.$destroy(),v.controlsEl.remove(),v.editorEl.remove(),r.removeClass("editable-hide"),v.popover&&a.remove("popover.html"),v.onhide()};v.cancel=function(){v.oncancel()};v.addListeners=function(){v.inputEl.bind("keyup",function(n){if(v.single)switch(n.keyCode){case 27:v.scope.$apply(function(){v.scope.$form.$cancel()})}});v.single&&"no"===v.buttons&&v.autosubmit();v.editorEl.bind("click",function(n){n.which&&1!==n.which||v.scope.$form.$visible&&(v.scope.$form._clicked=!0)})};v.setWaiting=function(n){n?(w=!v.inputEl.attr("disabled")&&!v.inputEl.attr("ng-disabled")&&!v.inputEl.attr("ng-enabled"),w&&(v.inputEl.attr("disabled","disabled"),v.buttonsEl&&v.buttonsEl.find("button").attr("disabled","disabled"))):w&&(v.inputEl.removeAttr("disabled"),v.buttonsEl&&v.buttonsEl.find("button").removeAttr("disabled"))};v.activate=function(n,t){setTimeout(function(){var i=v.inputEl[0];"focus"===o.activate&&i.focus?(void 0!==n&&""!==n&&i.setSelectionRange&&(t=t||n,i.onfocus=function(){setTimeout(function(){try{this.setSelectionRange(n,t)}catch(i){}}.bind(this))}),"editableRadiolist"==v.directiveName||"editableChecklist"==v.directiveName||"editableBsdate"==v.directiveName||"editableTagsInput"==v.directiveName?i.querySelector(".ng-pristine").focus():i.focus()):"select"===o.activate&&(i.select?i.select():i.focus&&i.focus())},0)};v.setError=function(t){angular.isObject(t)||(n.$error=l.trustAsHtml(t),v.error=t)};v.catchError=function(n,t){return angular.isObject(n)&&t!==!0?c.when(n).then(angular.bind(this,function(n){this.catchError(n,!0)}),angular.bind(this,function(n){this.catchError(n,!0)})):t&&angular.isObject(n)&&n.status&&200!==n.status&&n.data&&angular.isString(n.data)?(this.setError(n.data),n=n.data):angular.isString(n)&&this.setError(n),n};v.save=function(){y.assign(n.$parent,v.useCopy?angular.copy(v.scope.$data):v.scope.$data)};v.handleEmpty=function(){var t=y(n.$parent),i=null===t||void 0===t||""===t||angular.isArray(t)&&0===t.length;r.toggleClass("editable-empty",i)};v.autosubmit=angular.noop;v.onshow=angular.noop;v.onhide=angular.noop;v.oncancel=angular.noop;v.onbeforesave=angular.noop;v.onaftersave=angular.noop}return i.$inject=["$scope","$attrs","$element","$parse","editableThemes","editableIcons","editableOptions","$rootScope","$compile","$q","$sce","$templateCache"],i}]);angular.module("xeditable").factory("editableDirectiveFactory",["$parse","$compile","editableThemes","$rootScope","$document","editableController","editableFormController","editableOptions",function(n,t,i,r,u,f,e,o){return function(t){return{restrict:"A",scope:!0,require:[t.directiveName,"?^form"],controller:f,link:function(i,f,s,h){var l,c=h[0],a=!1,y,v,p;if(h[1])l=h[1],a=void 0===s.eSingle;else if(s.eForm)if(y=n(s.eForm)(i),y)l=y,a=!0;else if(f&&"function"==typeof f.parents&&f.parents().last().find('form[name="'+s.eForm+'"]').length)l=null,a=!0;else for(v=0;v<u[0].forms.length;v++)if(u[0].forms[v].name===s.eForm){l=null;a=!0;break}if(angular.forEach(t,function(n,t){void 0!==c[t]&&(c.parent[t]=c[t])}),angular.extend(c,t),p=function(){return angular.isDefined(s.editDisabled)?i.$eval(s.editDisabled):o.isDisabled},c.init(!a),i.$editable=c,f.addClass("editable"),a)if(l){if(i.$form=l,!i.$form.$addEditable)throw"Form with editable elements should have `editable-form` attribute.";i.$form.$addEditable(c)}else r.$$editableBuffer=r.$$editableBuffer||{},r.$$editableBuffer[s.eForm]=r.$$editableBuffer[s.eForm]||[],r.$$editableBuffer[s.eForm].push(c),i.$form=null;else i.$form=e(),i.$form.$addEditable(c),s.eForm&&(n(s.eForm).assign||angular.noop)(i.$parent,i.$form),(!s.eForm||s.eClickable)&&(f.addClass("editable-click"),f.bind(o.activationEvent,function(n){n.preventDefault();n.editable=c;p()||i.$apply(function(){i.$form.$show()})}))}}}}]);angular.module("xeditable").factory("editableFormController",["$parse","$document","$rootScope","editablePromiseCollection","editableUtils",function(n,t,i,r,u){var f=[],s=function(n,t){if(t==n)return!0;for(var i=t.parentNode;null!==i;){if(i==n)return!0;i=i.parentNode}return!1},e=function(n,t){var i=!0,r=n.$editables;return angular.forEach(r,function(n){var r=n.editorEl[0];s(r,t.target)&&(i=!1)}),i},o;return t.bind("click",function(n){if(!n.which||1===n.which){for(var r=[],u=[],t=0;t<f.length;t++)f[t]._clicked?f[t]._clicked=!1:f[t].$waiting||("cancel"===f[t]._blur&&e(f[t],n)&&r.push(f[t]),"submit"===f[t]._blur&&e(f[t],n)&&u.push(f[t]));(r.length||u.length)&&i.$apply(function(){angular.forEach(r,function(n){n.$cancel()});angular.forEach(u,function(n){n.$submit()})})}}),i.$on("closeEdit",function(){for(var n=0;n<f.length;n++)f[n].$hide()}),o={$addEditable:function(n){this.$editables.push(n);n.elem.bind("$destroy",angular.bind(this,this.$removeEditable,n));n.scope.$form||(n.scope.$form=this);this.$visible&&n.catchError(n.show());n.catchError(n.setWaiting(this.$waiting))},$removeEditable:function(n){for(var t=0;t<this.$editables.length;t++)if(this.$editables[t]===n)return void this.$editables.splice(t,1)},$show:function(){if(!this.$visible){this.$visible=!0;var n=r();n.when(this.$onshow());this.$setError(null,"");angular.forEach(this.$editables,function(t){n.when(t.show())});n.then({onWait:angular.bind(this,this.$setWaiting),onTrue:angular.bind(this,this.$activate),onFalse:angular.bind(this,this.$activate),onString:angular.bind(this,this.$activate)});setTimeout(angular.bind(this,function(){this._clicked=!1;-1===u.indexOf(f,this)&&f.push(this)}),0)}},$activate:function(n){var t,i,r;if(this.$editables.length){if(angular.isString(n))for(t=0;t<this.$editables.length;t++)if(this.$editables[t].name===n)return void this.$editables[t].activate();for(t=0;t<this.$editables.length;t++)if(this.$editables[t].error)return void this.$editables[t].activate();i=this.$editables[0].elem[0].selectionStart?this.$editables[0].elem[0].selectionStart:this.$editables[0].elem[0].text?this.$editables[0].elem[0].text.length:this.$editables[0].elem[0].innerHTML?this.$editables[0].elem[0].innerHTML.length:0;r=this.$editables[0].elem[0].selectionEnd?this.$editables[0].elem[0].selectionEnd:this.$editables[0].elem[0].text?this.$editables[0].elem[0].text.length:this.$editables[0].elem[0].innerHTML?this.$editables[0].elem[0].innerHTML.length:0;this.$editables[0].activate(i,r)}},$hide:function(){this.$visible&&(this.$visible=!1,this.$onhide(),angular.forEach(this.$editables,function(n){n.hide()}),u.arrayRemove(f,this))},$cancel:function(){this.$visible&&(this.$oncancel(),angular.forEach(this.$editables,function(n){n.cancel()}),this.$hide())},$setWaiting:function(n){this.$waiting=!!n;angular.forEach(this.$editables,function(t){t.setWaiting(!!n)})},$setError:function(n,t){angular.forEach(this.$editables,function(i){n&&i.name!==n||i.setError(t)})},$submit:function(){function n(n){var t=r();t.when(this.$onbeforesave());t.then({onWait:angular.bind(this,this.$setWaiting),onTrue:n?angular.bind(this,this.$save):angular.bind(this,this.$hide),onFalse:angular.bind(this,this.$hide),onString:angular.bind(this,this.$activate)})}if(!this.$waiting){this.$setError(null,"");var t=r();angular.forEach(this.$editables,function(n){t.when(n.onbeforesave())});t.then({onWait:angular.bind(this,this.$setWaiting),onTrue:angular.bind(this,n,!0),onFalse:angular.bind(this,n,!1),onString:angular.bind(this,this.$activate)})}},$save:function(){angular.forEach(this.$editables,function(n){n.save()});var n=r();n.when(this.$onaftersave());angular.forEach(this.$editables,function(t){n.when(t.onaftersave())});n.then({onWait:angular.bind(this,this.$setWaiting),onTrue:angular.bind(this,this.$hide),onFalse:angular.bind(this,this.$hide),onString:angular.bind(this,this.$activate)})},$onshow:angular.noop,$oncancel:angular.noop,$onhide:angular.noop,$onbeforesave:angular.noop,$onaftersave:angular.noop},function(){return angular.extend({$editables:[],$visible:!1,$waiting:!1,$data:{},_clicked:!1,_blur:null},o)}}]);angular.module("xeditable").directive("editableForm",["$rootScope","$parse","editableFormController","editableOptions",function(n,t,i,r){return{restrict:"A",require:["form"],compile:function(){return{pre:function(t,r,u,f){var e,h=f[0],o,s;u.editableForm?t[u.editableForm]&&t[u.editableForm].$show?(e=t[u.editableForm],angular.extend(h,e)):(e=i(),t[u.editableForm]=e,angular.extend(e,h)):(e=i(),angular.extend(h,e));o=n.$$editableBuffer;s=h.$name;s&&o&&o[s]&&(angular.forEach(o[s],function(n){e.$addEditable(n)}),delete o[s])},post:function(n,i,u,f){var e;e=u.editableForm&&n[u.editableForm]&&n[u.editableForm].$show?n[u.editableForm]:f[0];u.onshow&&(e.$onshow=angular.bind(e,t(u.onshow),n));u.onhide&&(e.$onhide=angular.bind(e,t(u.onhide),n));u.oncancel&&(e.$oncancel=angular.bind(e,t(u.oncancel),n));u.shown&&t(u.shown)(n)&&e.$show();e._blur=u.blur||r.blurForm;u.ngSubmit||u.submit||(u.onbeforesave&&(e.$onbeforesave=function(){return t(u.onbeforesave)(n,{$data:e.$data})}),u.onaftersave&&(e.$onaftersave=function(){return t(u.onaftersave)(n,{$data:e.$data})}),i.bind("submit",function(t){t.preventDefault();n.$apply(function(){e.$submit()})}));i.bind("click",function(n){n.which&&1!==n.which||e.$visible&&(e._clicked=!0)})}}}}}]);angular.module("xeditable").factory("editablePromiseCollection",["$q",function(n){function t(){return{promises:[],hasFalse:!1,hasString:!1,when:function(t,i){if(t===!1)this.hasFalse=!0;else if(!i&&angular.isObject(t))this.promises.push(n.when(t));else{if(!angular.isString(t))return;this.hasString=!0}},then:function(t){function u(){i.hasString||i.hasFalse?!i.hasString&&i.hasFalse?o():f():e()}t=t||{};var e=t.onTrue||angular.noop,o=t.onFalse||angular.noop,f=t.onString||angular.noop,r=t.onWait||angular.noop,i=this;this.promises.length?(r(!0),n.all(this.promises).then(function(n){r(!1);angular.forEach(n,function(n){i.when(n,!0)});u()},function(){r(!1);f()})):u()}}}return t}]);angular.module("xeditable").factory("editableUtils",[function(){return{indexOf:function(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0;i<n.length;i++)if(t===n[i])return i;return-1},arrayRemove:function(n,t){var i=this.indexOf(n,t);return i>=0&&n.splice(i,1),t},camelToDash:function(n){return n.replace(/[A-Z]/g,function(n,t){return(t?"-":"")+n.toLowerCase()})},dashToCamel:function(n){return n.replace(/([\:\-\_]+(.))/g,function(n,t,i,r){return r?i.toUpperCase():i}).replace(/^moz([A-Z])/,"Moz$1")},rename:function(n,t){var r,u,i;if(t[0]&&t[0].attributes){for(r=angular.element("<"+n+"/>"),r.html(t.html()),u=t[0].attributes,i=0;i<u.length;++i)r.attr(u.item(i).nodeName,u.item(i).value);return r}}}}]);angular.module("xeditable").factory("editableNgOptionsParser",[function(){function n(n){var i;if(!(i=n.match(t)))throw"ng-options parse error";var r,s=i[2]||i[1],u=i[4]||i[6],f=i[5],h=(i[3]||"",i[2]?i[1]:u),e=i[7],o=i[8],c=o?i[8]:null;return void 0===f?(r=u+" in "+e,void 0!==o&&(r+=" track by "+c)):r="("+f+", "+u+") in "+e,{ngRepeat:r,locals:{valueName:u,keyName:f,valueFn:h,displayFn:s}}}var t=/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(.*?)(?:\s+track\s+by\s+(.*?))?$/;return n}]);angular.module("xeditable").factory("editableCombodate",[function(){function n(n,t){if(this.$element=angular.element(n),"INPUT"!=this.$element[0].nodeName)throw"Combodate should be applied to INPUT element";var i=(new Date).getFullYear();this.defaults={format:"YYYY-MM-DD HH:mm",template:"D / MMM / YYYY   H : mm",value:null,minYear:1970,maxYear:i,yearDescending:!0,minuteStep:5,secondStep:1,firstItem:"empty",errorClass:null,customClass:"",roundTime:!0,smartDays:!0};this.options=angular.extend({},this.defaults,t);this.init()}return n.prototype={constructor:n,init:function(){if(this.map={day:["D","date"],month:["M","month"],year:["Y","year"],hour:["[Hh]","hours"],minute:["m","minutes"],second:["s","seconds"],ampm:["[Aa]",""]},this.$widget=angular.element('<span class="combodate"><\/span>').html(this.getTemplate()),this.initCombos(),this.options.smartDays){var n=this;this.$widget.find("select").bind("change",function(t){(angular.element(t.target).hasClass("month")||angular.element(t.target).hasClass("year"))&&n.fillCombo("day")})}this.$widget.find("select").css("width","auto");this.$element.css("display","none").after(this.$widget);this.setValue(this.$element.val()||this.options.value)},getTemplate:function(){var n=this.options.template,t=this.options.customClass;return angular.forEach(this.map,function(t){t=t[0];var i=new RegExp(t+"+"),r=t.length>1?t.substring(1,2):t;n=n.replace(i,"{"+r+"}")}),n=n.replace(/ /g,"&nbsp;"),angular.forEach(this.map,function(i,r){i=i[0];var u=i.length>1?i.substring(1,2):i;n=n.replace("{"+u+"}",'<select class="'+r+" "+t+'"><\/select>')}),n},initCombos:function(){var n,t;for(n in this.map)t=this.$widget[0].querySelectorAll("."+n),this["$"+n]=t.length?angular.element(t):null,this.fillCombo(n)},fillCombo:function(n){var t=this["$"+n],i;if(t){var u="fill"+n.charAt(0).toUpperCase()+n.slice(1),r=this[u](),f=t.val();for(t.html(""),i=0;i<r.length;i++)t.append('<option value="'+r[i][0]+'">'+r[i][1]+"<\/option>");t.val(f)}},fillCommon:function(n){var t,r=[],i;return"name"===this.options.firstItem?(t=moment.relativeTime||moment.langData()._relativeTime,i="function"==typeof t[n]?t[n](1,!0,n,!1):t[n],i=i.split(" ").reverse()[0],r.push(["",i])):"empty"===this.options.firstItem&&r.push(["",""]),r},fillDay:function(){var r,n,u=this.fillCommon("d"),e=-1!==this.options.template.indexOf("DD"),f=31,t,i;for(this.options.smartDays&&this.$month&&this.$year&&(t=parseInt(this.$month.val(),10),i=parseInt(this.$year.val(),10),isNaN(t)||isNaN(i)||(f=moment([i,t]).daysInMonth())),n=1;f>=n;n++)r=e?this.leadZero(n):n,u.push([n,r]);return u},fillMonth:function(){for(var t,i=this.fillCommon("M"),r=-1!==this.options.template.indexOf("MMMM"),u=-1!==this.options.template.indexOf("MMM"),f=-1!==this.options.template.indexOf("MM"),n=0;11>=n;n++)t=r?moment().date(1).month(n).format("MMMM"):u?moment().date(1).month(n).format("MMM"):f?this.leadZero(n+1):n+1,i.push([n,t]);return i},fillYear:function(){for(var t,i=[],r=-1!==this.options.template.indexOf("YYYY"),n=this.options.maxYear;n>=this.options.minYear;n--)t=r?n:(n+"").substring(2),i[this.options.yearDescending?"push":"unshift"]([n,t]);return this.fillCommon("y").concat(i)},fillHour:function(){for(var t,i=this.fillCommon("h"),r=-1!==this.options.template.indexOf("h"),u=(-1!==this.options.template.indexOf("H"),-1!==this.options.template.toLowerCase().indexOf("hh")),f=r?1:0,e=r?12:23,n=f;e>=n;n++)t=u?this.leadZero(n):n,i.push([n,t]);return i},fillMinute:function(){for(var t,i=this.fillCommon("m"),r=-1!==this.options.template.indexOf("mm"),n=0;59>=n;n+=this.options.minuteStep)t=r?this.leadZero(n):n,i.push([n,t]);return i},fillSecond:function(){for(var t,i=this.fillCommon("s"),r=-1!==this.options.template.indexOf("ss"),n=0;59>=n;n+=this.options.secondStep)t=r?this.leadZero(n):n,i.push([n,t]);return i},fillAmpm:function(){var n=-1!==this.options.template.indexOf("a");return-1!==this.options.template.indexOf("A"),[["am",n?"am":"AM"],["pm",n?"pm":"PM"]]},getValue:function(n){var i,t={},r=this,u=!1;return angular.forEach(this.map,function(n,i){if("ampm"!==i){var f="day"===i?1:0;return t[i]=r["$"+i]?parseInt(r["$"+i].val(),10):f,isNaN(t[i])?(u=!0,!1):void 0}}),u?"":(this.$ampm&&(t.hour=12===t.hour?"am"===this.$ampm.val()?0:12:"am"===this.$ampm.val()?t.hour:t.hour+12),i=moment([t.year,t.month,t.day,t.hour,t.minute,t.second]),this.highlight(i),n=void 0===n?this.options.format:n,null===n?i.isValid()?i:null:i.isValid()?i.format(n):"")},setValue:function(n){function u(n,t){var i={};return angular.forEach(n.children("option"),function(n){var r=angular.element(n).attr("value"),u;""!==r&&(u=Math.abs(r-t),("undefined"==typeof i.distance||u<i.distance)&&(i={value:r,distance:u}))}),i.value}if(n){var r="string"==typeof n?moment(n,this.options.format,!0):moment(n),i=this,t={};r.isValid()&&(angular.forEach(this.map,function(n,i){"ampm"!==i&&(t[i]=r[n[1]]())}),this.$ampm&&(t.hour>=12?(t.ampm="pm",t.hour>12&&(t.hour-=12)):(t.ampm="am",0===t.hour&&(t.hour=12))),angular.forEach(t,function(n,t){i["$"+t]&&("minute"===t&&i.options.minuteStep>1&&i.options.roundTime&&(n=u(i["$"+t],n)),"second"===t&&i.options.secondStep>1&&i.options.roundTime&&(n=u(i["$"+t],n)),i["$"+t].val(n))}),this.options.smartDays&&this.fillCombo("day"),this.$element.val(r.format(this.options.format)).triggerHandler("change"))}},highlight:function(n){n.isValid()?this.options.errorClass?this.$widget.removeClass(this.options.errorClass):this.$widget.find("select").css("border-color",this.borderColor):this.options.errorClass?this.$widget.addClass(this.options.errorClass):(this.borderColor||(this.borderColor=this.$widget.find("select").css("border-color")),this.$widget.find("select").css("border-color","red"))},leadZero:function(n){return 9>=n?"0"+n:n},destroy:function(){this.$widget.remove();this.$element.removeData("combodate").show()}},{getInstance:function(t,i){return new n(t,i)}}}]);angular.module("xeditable").factory("editableIcons",function(){return{"default":{bs2:{ok:"icon-ok icon-white",cancel:"icon-remove",clear:"icon-trash"},bs3:{ok:"glyphicon glyphicon-ok",cancel:"glyphicon glyphicon-remove",clear:"glyphicon glyphicon-trash"}},external:{"font-awesome":{ok:"fa fa-check",cancel:"fa fa-times",clear:"fa fa-trash"}}}});angular.module("xeditable").factory("editableThemes",function(){return{"default":{formTpl:'<form class="editable-wrap"><\/form>',noformTpl:'<span class="editable-wrap"><\/span>',controlsTpl:'<span class="editable-controls"><\/span>',inputTpl:"",errorTpl:'<div class="editable-error" data-ng-if="$error" data-ng-bind-html="$error"><\/div>',buttonsTpl:'<span class="editable-buttons"><\/span>',submitTpl:'<button type="submit">save<\/button>',cancelTpl:'<button type="button" ng-click="$form.$cancel()">cancel<\/button>',resetTpl:'<button type="reset">clear<\/button>'},bs2:{formTpl:'<form class="form-inline editable-wrap" role="form"><\/form>',noformTpl:'<span class="editable-wrap"><\/span>',controlsTpl:'<div class="editable-controls controls control-group" ng-class="{\'error\': $error}"><\/div>',inputTpl:"",errorTpl:'<div class="editable-error help-block" data-ng-if="$error" data-ng-bind-html="$error"><\/div>',buttonsTpl:'<span class="editable-buttons"><\/span>',submitTpl:'<button type="submit" class="btn btn-primary"><span><\/span><\/button>',cancelTpl:'<button type="button" class="btn" ng-click="$form.$cancel()"><span><\/span><\/button>',resetTpl:'<button type="reset" class="btn btn-danger">clear<\/button>'},bs3:{formTpl:'<form class="form-inline editable-wrap" role="form"><\/form>',noformTpl:'<span class="editable-wrap"><\/span>',controlsTpl:'<div class="editable-controls form-group" ng-class="{\'has-error\': $error}"><\/div>',inputTpl:"",errorTpl:'<div class="editable-error help-block" data-ng-if="$error" data-ng-bind-html="$error"><\/div>',buttonsTpl:'<span class="editable-buttons"><\/span>',submitTpl:'<button type="submit" class="btn btn-primary"><span><\/span><\/button>',cancelTpl:'<button type="button" class="btn btn-default" ng-click="$form.$cancel()"><span><\/span><\/button>',resetTpl:'<button type="reset" class="btn btn-danger">clear<\/button>',buttonsClass:"",inputClass:"",postrender:function(){switch(this.directiveName){case"editableText":case"editableSelect":case"editableTextarea":case"editableEmail":case"editableTel":case"editableNumber":case"editableUrl":case"editableSearch":case"editableDate":case"editableDatetime":case"editableBsdate":case"editableTime":case"editableMonth":case"editableWeek":case"editablePassword":case"editableDatetimeLocal":if(this.inputEl.addClass("form-control"),this.theme.inputClass){if(this.inputEl.attr("multiple")&&("input-sm"===this.theme.inputClass||"input-lg"===this.theme.inputClass))break;this.inputEl.addClass(this.theme.inputClass)}break;case"editableCheckbox":this.editorEl.addClass("checkbox")}this.buttonsEl&&this.theme.buttonsClass&&this.buttonsEl.find("button").addClass(this.theme.buttonsClass)}},semantic:{formTpl:'<form class="editable-wrap ui form" ng-class="{\'error\': $error}" role="form"><\/form>',noformTpl:'<span class="editable-wrap"><\/span>',controlsTpl:'<div class="editable-controls ui fluid input" ng-class="{\'error\': $error}"><\/div>',inputTpl:"",errorTpl:'<div class="editable-error ui error message" data-ng-if="$error" data-ng-bind-html="$error"><\/div>',buttonsTpl:'<span class="mini ui buttons"><\/span>',submitTpl:'<button type="submit" class="ui primary button"><i class="ui check icon"><\/i><\/button>',cancelTpl:'<button type="button" class="ui button" ng-click="$form.$cancel()"><i class="ui cancel icon"><\/i><\/button>',resetTpl:'<button type="reset" class="ui button">clear<\/button>'}}});"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(n,t,i){"use strict";function b(n,t){return u(new(u(function(){},{prototype:n})),t)}function g(n){return e(arguments,function(t){t!==n&&e(t,function(t,i){n.hasOwnProperty(i)||(n[i]=t)})}),n}function ti(n,t){var r=[];for(var i in n.path){if(n.path[i]!==t.path[i])break;r.push(n.path[i])}return r}function v(n){if(Object.keys)return Object.keys(n);var t=[];return e(n,function(n,i){t.push(i)}),t}function c(n,t){if(Array.prototype.indexOf)return n.indexOf(t,Number(arguments[2])||0);var r=n.length>>>0,i=Number(arguments[2])||0;for(i=i<0?Math.ceil(i):Math.floor(i),i<0&&(i+=r);i<r;i++)if(i in n&&n[i]===t)return i;return-1}function rt(n,t,i,r){var f,o=ti(i,r),h={},l=[],s,e;for(s in o)if(o[s]&&o[s].params&&(f=v(o[s].params),f.length))for(e in f)c(l,f[e])>=0||(l.push(f[e]),h[f[e]]=n[f[e]]);return u({},h,t)}function ii(n,t,i){var f,r,u;if(!i){i=[];for(f in n)i.push(f)}for(r=0;r<i.length;r++)if(u=i[r],n[u]!=t[u])return!1;return!0}function k(n,t){var i={};return e(n,function(n){i[n]=t[n]}),i}function ut(n){var t={},i=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return e(i,function(i){i in n&&(t[i]=n[i])}),t}function d(n){var i={},r=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var t in n)c(r,t)==-1&&(i[t]=n[t]);return i}function nt(n,t){var r=a(n),i=r?[]:{};return e(n,function(n,u){t(n,u)&&(i[r?i.length:u]=n)}),i}function p(n,t){var i=a(n)?[]:{};return e(n,function(n,r){i[r]=t(n,r)}),i}function w(n){return n.then(i,function(){})&&n}function ft(n,t){var h=1,l=2,o={},a=[],y=o,p=u(n.when(o),{$$promises:o,$$values:o});this.study=function(o){function it(n,i){if(nt[i]!==l){if(k.push(i),nt[i]===h)throw k.splice(0,c(k,i)),new Error("Cyclic dependency: "+k.join(" -> "));if(nt[i]=h,f(n))b.push(i,[function(){return t.get(n)}],a);else{var r=t.annotate(n);e(r,function(n){n!==i&&o.hasOwnProperty(n)&&it(o[n],n)});b.push(i,n,r)}k.pop();nt[i]=l}}function rt(n){return s(n)&&n.then&&n.$$promises}if(!s(o))throw new Error("'invocables' must be an object");var tt=v(o||{}),b=[],k=[],nt={};return e(o,it),o=k=nt=null,function(f,o,h){function v(){--ot||(ut||g(l,o.$$values),c.$$values=l,c.$$promises=c.$$promises||!0,delete c.$$inheritedValues,it.resolve(l))}function nt(n){c.$$failure=n;it.reject(n)}function et(i,u,o){function a(n){s.reject(n);nt(n)}function p(){if(!r(c.$$failure))try{s.resolve(t.invoke(u,h,l));s.promise.then(function(n){l[i]=n;v()},a)}catch(n){a(n)}}var s=n.defer(),y=0;e(o,function(n){k.hasOwnProperty(n)&&!f.hasOwnProperty(n)&&(y++,k[n].then(function(t){l[n]=t;--y||p()},a))});y||p();k[i]=w(s.promise)}var a,ft;if(rt(f)&&h===i&&(h=o,o=f,f=null),f){if(!s(f))throw new Error("'locals' must be an object");}else f=y;if(o){if(!rt(o))throw new Error("'parent' must be a promise returned by $resolve.resolve()");}else o=p;var it=n.defer(),c=w(it.promise),k=c.$$promises={},l=u({},f),ot=1+b.length/3,ut=!1;if(w(c),r(o.$$failure))return nt(o.$$failure),c;for(o.$$inheritedValues&&g(l,d(o.$$inheritedValues,tt)),u(k,o.$$promises),o.$$values?(ut=g(l,d(o.$$values,tt)),c.$$inheritedValues=d(o.$$values,tt),v()):(o.$$inheritedValues&&(c.$$inheritedValues=d(o.$$inheritedValues,tt)),o.then(v,nt)),a=0,ft=b.length;a<ft;a+=3)f.hasOwnProperty(b[a])?v():et(b[a],b[a+1],b[a+2]);return c}};this.resolve=function(n,t,i,r){return this.study(n)(t,i,r)}}function ri(){var n=t.version.minor<3;this.shouldUnsafelyUseHttp=function(t){n=!!t};this.$get=["$http","$templateCache","$injector",function(t,i,r){return new ui(t,i,r,n)}]}function ui(n,t,i,u){this.fromConfig=function(n,t,i){return r(n.template)?this.fromString(n.template,t):r(n.templateUrl)?this.fromUrl(n.templateUrl,t):r(n.templateProvider)?this.fromProvider(n.templateProvider,t,i):null};this.fromString=function(n,t){return h(n)?n(t):n};this.fromUrl=function(r,f){return h(r)&&(r=r(f)),null==r?null:u?n.get(r,{cache:t,headers:{Accept:"text/html"}}).then(function(n){return n.data}):i.get("$templateRequest")(r)};this.fromProvider=function(n,t,r){return i.invoke(n,null,r||{params:t})}}function y(n,t,r){function d(t,i,r,u){if(it.push(t),tt[t])return tt[t];if(!/^\w+([-.]+\w+)*(?:\[\])?$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+n+"'");if(w[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+n+"'");return w[t]=new l.Param(t,i,r,u),w[t]}function g(n,t,i,r){var u=["",""],f=n.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!t)return f;switch(i){case!1:u=["(",")"+(r?"?":"")];break;case!0:f=f.replace(/\/$/,"");u=["(?:/(",")|/)?"];break;default:u=["("+i+"|",")?"]}return f+u[0]+t+u[1]}function nt(r,u){var e,f,s,h,c;return e=r[2]||r[3],c=t.params[e],s=n.substring(o,r.index),f=u?r[4]:r[4]||("*"==r[1]?".*":null),f&&(h=l.type(f)||b(l.type("string"),{pattern:new RegExp(f,t.caseInsensitive?"i":i)})),{id:e,regexp:f,segment:s,type:h,cfg:c}}var f,h,e,c,k;t=u({params:{}},s(t)?t:{});var a,v=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,rt=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,y="^",o=0,p=this.segments=[],tt=r?r.params:{},w=this.params=r?r.params.$$new():new l.ParamSet,it=[];for(this.source=n;(a=v.exec(n))&&(f=nt(a,!1),!(f.segment.indexOf("?")>=0));)h=d(f.id,f.type,f.cfg,"path"),y+=g(f.segment,h.type.pattern.source,h.squash,h.isOptional),p.push(f.segment),o=v.lastIndex;if(e=n.substring(o),c=e.indexOf("?"),c>=0){if(k=this.sourceSearch=e.substring(c),e=e.substring(0,c),this.sourcePath=n.substring(0,o+c),k.length>0)for(o=0;a=rt.exec(k);)f=nt(a,!0),h=d(f.id,f.type,f.cfg,"search"),o=v.lastIndex}else this.sourcePath=n,this.sourceSearch="";y+=g(e)+(t.strict===!1?"/?":"")+"$";p.push(e);this.regexp=new RegExp(y,t.caseInsensitive?"i":i);this.prefix=p[0];this.$$paramNames=it}function o(n){u(this,n)}function et(){function rt(n){return null!=n?n.toString().replace(/(~|\/)/g,function(n){return{"~":"~~","/":"~2F"}[n]}):n}function ht(n){return null!=n?n.toString().replace(/(~~|~2F)/g,function(n){return{"~~":"~","~2F":"/"}[n]}):n}function ct(){return{strict:g,caseInsensitive:d}}function ut(n){return h(n)||a(n)&&h(n[n.length-1])}function ft(){for(;it.length;){var i=it.shift();if(i.pattern)throw new Error("You cannot override a type's .pattern at runtime.");t.extend(n[i.name],w.invoke(i.def))}}function k(n){u(this,n||{})}l=this;var w,d=!1,g=!0,tt=!1,n={},ot=!0,it=[],st={string:{encode:rt,decode:ht,is:function(n){return null==n||!r(n)||"string"==typeof n},pattern:/[^\/]*/},int:{encode:rt,decode:function(n){return parseInt(n,10)},is:function(n){return n!==i&&null!==n&&this.decode(n.toString())===n},pattern:/\d+/},bool:{encode:function(n){return n?1:0},decode:function(n){return 0!==parseInt(n,10)},is:function(n){return n===!0||n===!1},pattern:/0|1/},date:{encode:function(n){return this.is(n)?[n.getFullYear(),("0"+(n.getMonth()+1)).slice(-2),("0"+n.getDate()).slice(-2)].join("-"):i},decode:function(n){if(this.is(n))return n;var t=this.capture.exec(n);return t?new Date(t[1],t[2]-1,t[3]):i},is:function(n){return n instanceof Date&&!isNaN(n.valueOf())},equals:function(n,t){return this.is(n)&&this.is(t)&&n.toISOString()===t.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:t.toJson,decode:t.fromJson,is:t.isObject,equals:t.equals,pattern:/[^\/]*/},any:{encode:t.identity,decode:t.identity,equals:t.equals,pattern:/.*/}};et.$$getDefaultValue=function(n){if(!ut(n.value))return n.value;if(!w)throw new Error("Injectable functions cannot be called at configuration time");return w.invoke(n.value)};this.caseInsensitive=function(n){return r(n)&&(d=n),d};this.strictMode=function(n){return r(n)&&(g=n),g};this.defaultSquashPolicy=function(n){if(!r(n))return tt;if(n!==!0&&n!==!1&&!f(n))throw new Error("Invalid squash policy: "+n+". Valid policies: false, true, arbitrary-string");return tt=n,n};this.compile=function(n,t){return new y(n,u(ct(),t))};this.isMatcher=function(n){if(!s(n))return!1;var t=!0;return e(y.prototype,function(i,u){h(i)&&(t=t&&r(n[u])&&h(n[u]))}),t};this.type=function(t,i,f){if(!r(i))return n[t];if(n.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return n[t]=new o(u({name:t},i)),f&&(it.push({name:t,def:f}),ot||ft()),this};e(st,function(t,i){n[i]=new o(u({name:i},t))});n=b(n,{});this.$get=["$injector",function(t){return w=t,ot=!1,ft(),e(st,function(t,i){n[i]||(n[i]=new o(t))}),this}];this.Param=function(e,h,l,y){function it(n){var t=s(n)?v(n):[],i=c(t,"value")===-1&&c(t,"type")===-1&&c(t,"squash")===-1&&c(t,"array")===-1;return i&&(n={value:n}),n.$$fn=ut(n.value)?n.value:function(){return n.value},n}function rt(i,r,u){if(i.type&&r)throw new Error("Param '"+e+"' has two type configurations.");return r?r:i.type?t.isString(i.type)?n[i.type]:i.type instanceof o?i.type:new o(i.type):"config"===u?n.any:n.string}function ft(){var n={array:"search"===y&&"auto"},t=e.match(/\[\]$/)?{array:!0}:{};return u(n,t,l).array}function et(n,t){var i=n.squash;if(!t||i===!1)return!1;if(!r(i)||null==i)return tt;if(i===!0||f(i))return i;throw new Error("Invalid squash policy: '"+i+"'. Valid policies: false, true, or arbitrary string");}function ot(n,t,r,u){var e,o,s=[{from:"",to:r||t?i:""},{from:null,to:r||t?i:""}];return e=a(n.replace)?n.replace:[],f(u)&&e.push({from:u,to:i}),o=p(e,function(n){return n.from}),nt(s,function(n){return c(o,n.from)===-1}).concat(e)}function st(){if(!w)throw new Error("Injectable functions cannot be called at configuration time");var n=w.invoke(l.$$fn);if(null!==n&&n!==i&&!k.type.is(n))throw new Error("Default value ("+n+") for parameter '"+k.id+"' is not an instance of Type ("+k.type.name+")");return n}function ht(n){function t(n){return function(t){return t.from===n}}function i(n){var i=p(nt(k.replace,t(n)),function(n){return n.to});return i.length?i[0]:n}return n=i(n),r(n)?k.type.$normalize(n):st()}function ct(){return"{Param:"+e+" "+h+" squash: '"+g+"' optional: "+d+"}"}var k=this,b;l=it(l);h=rt(l,h,y);b=ft();h=b?h.$asArray(b,"search"===y):h;"string"!==h.name||b||"path"!==y||l.value!==i||(l.value="");var d=l.value!==i,g=et(l,d),lt=ot(l,b,d,g);u(this,{id:e,type:h,location:y,array:b,squash:g,replace:lt,isOptional:d,value:ht,dynamic:i,config:l,toString:ct})};k.prototype={$$new:function(){return b(this,u(new k,{$$parent:this}))},$$keys:function(){for(var t=[],i=[],n=this,r=v(k.prototype);n;)i.push(n),n=n.$$parent;return i.reverse(),e(i,function(n){e(v(n),function(n){c(t,n)===-1&&c(r,n)===-1&&t.push(n)})}),t},$$values:function(n){var t={},i=this;return e(i.$$keys(),function(r){t[r]=i[r].value(n&&n[r])}),t},$$equals:function(n,t){var i=!0,r=this;return e(r.$$keys(),function(u){var f=n&&n[u],e=t&&t[u];r[u].type.equals(f,e)||(i=!1)}),i},$$validates:function(n){for(var r,f,e,o,s=this.$$keys(),u=0;u<s.length&&(r=this[s[u]],f=n[s[u]],f!==i&&null!==f||!r.isOptional);u++)if((e=r.type.$normalize(f),!r.type.is(e))||(o=r.type.encode(e),t.isString(o)&&!r.type.pattern.exec(o)))return!1;return!0},$$parent:i};this.ParamSet=k}function ot(n,e){function p(n){var t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(n.source);return null!=t?t[1].replace(/\\(.)/g,"$1"):""}function w(n,t){return n.replace(/\$(\$|\d{1,2})/,function(n,i){return t["$"===i?0:Number(i)]})}function c(n,t,i){if(!i)return!1;var u=n.invoke(t,t,{$match:i});return!r(u)||u}function l(r,u,e,h,c){function k(n,t,i){return"/"===a?n:t?a.slice(0,-1)+n:i?a.slice(1)+n:n}function w(n){function u(n){var t=n(e,r);return!!t&&(f(t)&&r.replace().url(t),!0)}if(!n||!n.defaultPrevented){l&&r.url()===l;l=i;for(var h=o.length,t=0;t<h;t++)if(u(o[t]))return;s&&u(s)}}function b(){return v=v||u.$on("$locationChangeSuccess",w)}var l,a=h.baseHref(),p=r.url();return y||b(),{sync:function(){w()},listen:function(){return b()},update:function(n){return n?void(p=r.url()):void(r.url()!==p&&(r.url(p),r.replace()))},push:function(n,t,u){var f=n.format(t||{});null!==f&&t&&t["#"]&&(f+="#"+t["#"]);r.url(f);l=u&&u.$$avoidResync?r.url():i;u&&u.replace&&r.replace()},href:function(i,u,f){var o,e,h,s;return i.validates(u)?(o=n.html5Mode(),t.isObject(o)&&(o=o.enabled),o=o&&c.history,e=i.format(u),f=f||{},o||null===e||(e="#"+n.hashPrefix()+e),null!==e&&u&&u["#"]&&(e+="#"+u["#"]),e=k(e,o,f.absolute),!f.absolute||!e)?e:(h=!o&&e?"/":"",s=r.port(),s=80===s||443===s?"":":"+s,[r.protocol(),"://",r.host(),s,h,e].join("")):null}}}var v,o=[],s=null,y=!1;this.rule=function(n){if(!h(n))throw new Error("'rule' must be a function");return o.push(n),this};this.otherwise=function(n){if(f(n)){var t=n;n=function(){return t}}else if(!h(n))throw new Error("'rule' must be a function");return s=n,this};this.when=function(n,t){var i,r=f(t),l,o,s;if(f(n)&&(n=e.compile(n)),!r&&!h(t)&&!a(t))throw new Error("invalid 'handler' in when()");l={matcher:function(n,t){return r&&(i=e.compile(t),t=["$match",function(n){return i.format(n)}]),u(function(i,r){return c(i,t,n.exec(r.path(),r.search()))},{prefix:f(n.prefix)?n.prefix:""})},regex:function(n,t){if(n.global||n.sticky)throw new Error("when() RegExp must not be global or sticky");return r&&(i=t,t=["$match",function(n){return w(i,n)}]),u(function(i,r){return c(i,t,n.exec(r.path()))},{prefix:p(n)})}};o={matcher:e.isMatcher(n),regex:n instanceof RegExp};for(s in o)if(o[s])return this.rule(l[s](n,t));throw new Error("invalid 'what' in when()");};this.deferIntercept=function(n){n===i&&(n=!0);y=n};this.$get=l;l.$inject=["$location","$rootScope","$injector","$browser","$sniffer"]}function st(n,o){function ht(n){return 0===n.indexOf(".")||0===n.indexOf("^")}function d(n,t){var s;if(!n)return i;var h=f(n),u=h?n:n.name,c=ht(u);if(c){if(!t)throw new Error("No reference point given for path '"+u+"'");t=d(t);for(var r=u.split("."),e=0,l=r.length,o=t;e<l;e++)if(""!==r[e]||0!==e){if("^"!==r[e])break;if(!o.parent)throw new Error("Path '"+u+"' not valid for state '"+t.name+"'");o=o.parent}else o=t;r=r.slice(e).join(".");u=o.name+(o.name&&r?".":"")+r}return s=tt[u],!s||!h&&(h||s!==n&&s.self!==n)?i:s}function ct(n,t){ft[n]||(ft[n]=[]);ft[n].push(t)}function lt(n){for(var t=ft[n]||[];t.length;)et(t.shift())}function et(t){var i,u,r;if(t=b(t,{self:t,resolve:t.resolve||{},toString:function(){return this.name}}),i=t.name,!f(i)||i.indexOf("@")>=0)throw new Error("State must have a valid name");if(tt.hasOwnProperty(i))throw new Error("State '"+i+"' is already defined");if(u=i.indexOf(".")!==-1?i.substring(0,i.lastIndexOf(".")):f(t.parent)?t.parent:s(t.parent)&&f(t.parent.name)?t.parent.name:"",u&&!tt[u])return ct(u,t.self);for(r in g)h(g[r])&&(t[r]=g[r](t,g.$delegates[r]));return tt[i]=t,!t[st]&&t.url&&n.when(t.url,["$match","$stateParams",function(n,i){y.$current.navigable==t&&ii(n,i)||y.transitionTo(t,n,{inherit:!0,location:!1})}]),lt(i),t}function at(n){return n.indexOf("*")>-1}function vt(n){for(var t=n.split("."),i=y.$current.name.split("."),r=0,u=t.length;r<u;r++)"*"===t[r]&&(i[r]="*");return"**"===t[0]&&(i=i.slice(c(i,t[1])),i.unshift("**")),"**"===t[t.length-1]&&(i.splice(c(i,t[t.length-2])+1,Number.MAX_VALUE),i.push("**")),t.length==i.length&&i.join("")===t.join("")}function yt(n,t){return f(n)&&!r(t)?g[n]:h(t)&&f(n)?(g[n]&&!g.$delegates[n]&&(g.$delegates[n]=g[n]),g[n]=t,this):this}function pt(n,t){return s(n)?t=n:t.name=n,et(t),this}function ot(n,o,c,l,g,ut,ft){function lt(t,i,r,u){var e=n.$broadcast("$stateNotFound",t,i,r),f;return e.defaultPrevented?(ft.update(),ht):e.retry?u.$retry?(ft.update(),ct):(f=y.transition=o.when(e.retry),f.then(function(){return f!==y.transition?(n.$broadcast("$stateChangeCancel",t.to,t.toParams,i,r),et):(t.options.$retry=!0,y.transitionTo(t.to,t.toParams,t.options))},function(){return ht}),ft.update(),f):null}function yt(n,i,r,u,f,s){function p(){var i=[];return e(n.views,function(r,u){var e=r.resolve&&r.resolve!==n.resolve?r.resolve:{};e.$template=[function(){return c.load(u,{view:r,locals:f.globals,params:y,notify:s.notify})||""}];i.push(g.resolve(e,f.globals,f.resolve,n).then(function(i){if(h(r.controllerProvider)||a(r.controllerProvider)){var o=t.extend({},e,f.globals);i.$$controller=l.invoke(r.controllerProvider,null,o)}else i.$$controller=r.controller;i.$$state=n;i.$$controllerAs=r.controllerAs;i.$$resolveAs=r.resolveAs;f[u]=i}))}),o.all(i).then(function(){return f.globals})}var y=r?i:k(n.params.$$keys(),i),w={$stateParams:y},v;return f.resolve=g.resolve(n.resolve,w,f.resolve,n),v=[f.resolve.then(function(n){f.globals=n})],u&&v.push(u),o.all(v).then(p).then(function(){return f})}var ot=new Error("transition superseded"),et=w(o.reject(ot)),pt=w(o.reject(new Error("transition prevented"))),ht=w(o.reject(new Error("transition aborted"))),ct=w(o.reject(new Error("transition failed")));return nt.locals={resolve:null,globals:{$stateParams:{}}},y={params:{},current:nt.self,$current:nt,transition:null},y.reload=function(n){return y.transitionTo(y.current,ut,{reload:n||!0,inherit:!1,notify:!0})},y.go=function(n,t,i){return y.transitionTo(n,t,u({inherit:!0,relative:y.$current},i))},y.transitionTo=function(t,i,e){var vt,ni,ti,gt,bt,ht;i=i||{};e=u({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},e||{});var ii,a=y.$current,v=y.params,at=a.path,p=d(t,e.relative),kt=i["#"];if(!r(p)){if(vt={to:t,toParams:i,options:e},ni=lt(vt,a.self,v,e),ni)return ni;if(t=vt.to,i=vt.toParams,e=vt.options,p=d(t,e.relative),!r(p)){if(!e.relative)throw new Error("No such state '"+t+"'");throw new Error("Could not resolve '"+t+"' from state '"+e.relative+"'");}}if(p[st])throw new Error("Cannot transition to abstract state '"+t+"'");if(e.inherit&&(i=rt(ut,i||{},y.$current,p)),!p.params.$$validates(i))return ct;i=p.params.$$values(i);t=p;var g=t.path,c=0,h=g[c],tt=nt.locals,dt=[];if(e.reload){if(f(e.reload)||s(e.reload)){if(s(e.reload)&&!e.reload.name)throw new Error("Invalid reload state object");if(ti=e.reload===!0?at[0]:d(e.reload),e.reload&&!ti)throw new Error("No such reload state '"+(f(e.reload)?e.reload:e.reload.name)+"'");for(;h&&h===at[c]&&h!==ti;)tt=dt[c]=h.locals,c++,h=g[c]}}else for(;h&&h===at[c]&&h.ownParams.$$equals(i,v);)tt=dt[c]=h.locals,c++,h=g[c];if(wt(t,i,a,v,tt,e))return kt&&(i["#"]=kt),y.params=i,it(y.params,ut),it(k(t.params.$$keys(),ut),t.locals.globals.$stateParams),e.location&&t.navigable&&t.navigable.url&&(ft.push(t.navigable.url,i,{$$avoidResync:!0,replace:"replace"===e.location}),ft.update(!0)),y.transition=null,o.when(y.current);if(i=k(t.params.$$keys(),i||{}),kt&&(i["#"]=kt),e.notify&&n.$broadcast("$stateChangeStart",t.self,i,a.self,v,e).defaultPrevented)return n.$broadcast("$stateChangeCancel",t.self,i,a.self,v),null==y.transition&&ft.update(),pt;for(gt=o.when(tt),bt=c;bt<g.length;bt++,h=g[bt])tt=dt[bt]=b(tt),gt=yt(h,i,h===t,gt,tt,e);return ht=y.transition=gt.then(function(){var r,u,f;if(y.transition!==ht)return n.$broadcast("$stateChangeCancel",t.self,i,a.self,v),et;for(r=at.length-1;r>=c;r--)f=at[r],f.self.onExit&&l.invoke(f.self.onExit,f.self,f.locals.globals),f.locals=null;for(r=c;r<g.length;r++)u=g[r],u.locals=dt[r],u.self.onEnter&&l.invoke(u.self.onEnter,u.self,u.locals.globals);return y.transition!==ht?(n.$broadcast("$stateChangeCancel",t.self,i,a.self,v),et):(y.$current=t,y.current=t.self,y.params=i,it(y.params,ut),y.transition=null,e.location&&t.navigable&&ft.push(t.navigable.url,t.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===e.location}),e.notify&&n.$broadcast("$stateChangeSuccess",t.self,i,a.self,v),ft.update(!0),y.current)}).then(null,function(r){return r===ot?et:y.transition!==ht?(n.$broadcast("$stateChangeCancel",t.self,i,a.self,v),et):(y.transition=null,ii=n.$broadcast("$stateChangeError",t.self,i,a.self,v,r),ii.defaultPrevented||ft.update(),o.reject(r))}),w(ht),ht},y.is=function(n,t,f){f=u({relative:y.$current},f||{});var e=d(n,f.relative);return r(e)?y.$current===e&&(!t||v(t).reduce(function(n,i){var r=e.params[i];return n&&!r||r.type.equals(ut[i],t[i])},!0)):i},y.includes=function(n,t,e){var o,c,s,h,l;if(e=u({relative:y.$current},e||{}),f(n)&&at(n)){if(!vt(n))return!1;n=y.$current.name}if(o=d(n,e.relative),!r(o))return i;if(!r(y.$current.includes[o.name]))return!1;if(!t)return!0;for(c=v(t),s=0;s<c.length;s++)if(h=c[s],l=o.params[h],l&&!l.type.equals(ut[h],t[h]))return!1;return v(t).reduce(function(n,i){var r=o.params[i];return n&&!r||r.type.equals(ut[i],t[i])},!0)},y.href=function(n,t,f){var e,o;return(f=u({lossy:!0,inherit:!0,absolute:!1,relative:y.$current},f||{}),e=d(n,f.relative),!r(e))?null:(f.inherit&&(t=rt(ut,t||{},y.$current,e)),o=e&&f.lossy?e.navigable:e,o&&o.url!==i&&null!==o.url?ft.href(o.url,k(e.params.$$keys().concat("#"),t||{}),{absolute:f.absolute}):null)},y.get=function(n,t){if(0===arguments.length)return p(v(tt),function(n){return tt[n].self});var i=d(n,t||y.$current);return i&&i.self?i.self:null},y}function wt(n,t,i,r,u,f){function e(n,t,i){function r(t){return"search"!=n.params[t].location}var u=n.params.$$keys().filter(r),f=ut.apply({},[n.params].concat(u)),e=new l.ParamSet(f);return e.$$equals(t,i)}if(!f.reload&&n===i&&(u===i.locals||n.self.reloadOnSearch===!1&&e(i,r,t)))return!0}var nt,y,tt={},ft={},st="abstract",g={parent:function(n){if(r(n.parent)&&n.parent)return d(n.parent);var t=/^(.+)\.[^.]+$/.exec(n.name);return t?d(t[1]):nt},data:function(n){return n.parent&&n.parent.data&&(n.data=n.self.data=b(n.parent.data,n.data)),n.data},url:function(n){var t=n.url,i={params:n.params||{}};if(f(t))return"^"==t.charAt(0)?o.compile(t.substring(1),i):(n.parent.navigable||nt).url.concat(t,i);if(!t||o.isMatcher(t))return t;throw new Error("Invalid url '"+t+"' in state '"+n+"'");},navigable:function(n){return n.url?n:n.parent?n.parent.navigable:null},ownParams:function(n){var t=n.url&&n.url.params||new l.ParamSet;return e(n.params||{},function(n,i){t[i]||(t[i]=new l.Param(i,null,n,"config"))}),t},params:function(n){var t=ut(n.ownParams,n.ownParams.$$keys());return n.parent&&n.parent.params?u(n.parent.params.$$new(),t):new l.ParamSet},views:function(n){var t={};return e(r(n.views)?n.views:{"":n},function(i,r){r.indexOf("@")<0&&(r+="@"+n.parent.name);i.resolveAs=i.resolveAs||n.resolveAs||"$resolve";t[r]=i}),t},path:function(n){return n.parent?n.parent.path.concat(n):[]},includes:function(n){var t=n.parent?u({},n.parent.includes):{};return t[n.name]=!0,t},$delegates:{}};nt=et({name:"",url:"^",views:null,abstract:!0});nt.navigable=null;this.decorator=yt;this.state=pt;this.$get=ot;ot.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function ht(){function n(n,t){return{load:function(n,i){var r;return i=u({template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}},i),i.view&&(r=t.fromConfig(i.view,i.params,i.locals)),r}}}this.$get=n;n.$inject=["$rootScope","$templateFactory"]}function fi(){var n=!1;this.useAnchorScroll=function(){n=!0};this.$get=["$anchorScroll","$timeout",function(t,i){return n?t:function(n){return i(function(){n[0].scrollIntoView()},0,!1)}}]}function ct(n,i,r,u,f){function h(){return i.has?function(n){return i.has(n)?i.get(n):null}:function(n){try{return i.get(n)}catch(n){return null}}}function c(n,i){var u=function(){return{enter:function(n,t,i){t.after(n);i()},leave:function(n,t){n.remove();t()}}},r;return e?{enter:function(n,i,r){t.version.minor>2?e.enter(n,null,i).then(r):e.enter(n,null,i,r)},leave:function(n,i){t.version.minor>2?e.leave(n).then(i):e.leave(n,i)}}:o?(r=o&&o(i,n),{enter:function(n,t,i){r.enter(n,null,t);i()},leave:function(n,t){r.leave(n);t()}}):u()}var s=h(),o=s("$animator"),e=s("$animate");return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(i,e,o){return function(i,e,s){function b(){if(a&&(a.remove(),a=null),h&&(h.$destroy(),h=null),l){var n=l.data("$uiViewAnim");w.leave(l,function(){n.$$animLeave.resolve();a=null});a=l;l=null}}function y(c){var y,a=at(i,s,e,u),g=a&&n.$current&&n.$current.locals[a],d;(c||g!==p)&&(y=i.$new(),p=n.$current.locals[a],y.$emit("$viewContentLoading",a),d=o(y,function(n){var u=f.defer(),o=f.defer(),s={$animEnter:u.promise,$animLeave:o.promise,$$animLeave:o};n.data("$uiViewAnim",s);w.enter(n,e,function(){u.resolve();h&&h.$emit("$viewContentAnimationEnded");(t.isDefined(v)&&!v||i.$eval(v))&&r(n)});b()}),l=d,h=y,h.$emit("$viewContentLoaded",a),h.$eval(k))}var a,l,h,p,k=s.onload||"",v=s.autoscroll,w=c(s,i);e.inheritedData("$uiView");i.$on("$stateChangeSuccess",function(){y(!1)});y(!0)}}}}function lt(n,i,r,u){return{restrict:"ECA",priority:-400,compile:function(f){var e=f.html();return f.empty?f.empty():f[0].innerHTML=null,function(f,o,s){var v=r.$current,y=at(f,s,o,u),c=v&&v.locals[y],a,p,l;if(!c)return o.html(e),void n(o.contents())(f);o.data("$uiView",{name:y,state:c.$$state});o.html(c.$template?c.$template:e);a=t.extend({},c);f[c.$$resolveAs]=a;p=n(o.contents());c.$$controller&&(c.$scope=f,c.$element=o,l=i(c.$$controller,c),c.$$controllerAs&&(f[c.$$controllerAs]=l,f[c.$$controllerAs][c.$$resolveAs]=a),h(l.$onInit)&&l.$onInit(),o.data("$ngControllerController",l),o.children().data("$ngControllerController",l));p(f)}}}}function at(n,t,i,r){var u=r(t.uiView||t.name||"")(n),f=i.inheritedData("$uiView");return u.indexOf("@")>=0?u:u+"@"+(f?f.state.name:"")}function vt(n,t){var i,r=n.match(/^\s*({[^}]*})\s*$/);if(r&&(n=t+"("+r[1]+")"),i=n.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!i||4!==i.length)throw new Error("Invalid state ref '"+n+"'");return{state:i[1],paramExpr:i[3]||null}}function yt(n){var t=n.parent().inheritedData("$uiView");if(t&&t.state&&t.state.name)return t.state}function pt(n){var i="[object SVGAnimatedString]"===Object.prototype.toString.call(n.prop("href")),t="FORM"===n[0].nodeName;return{attr:t?"action":i?"xlink:href":"href",isAnchor:"A"===n.prop("tagName").toUpperCase(),clickable:!t}}function wt(n,t,i,r,u){return function(f){var h=f.which||f.button,e=u(),o,s;h>1||f.ctrlKey||f.metaKey||f.shiftKey||n.attr("target")||(o=i(function(){t.go(e.state,e.params,e.options)}),f.preventDefault(),s=r.isAnchor&&!e.href?1:0,f.preventDefault=function(){s--<=0&&i.cancel(o)})}}function ei(n,t){return{relative:yt(n)||t.$current,inherit:!0}}function bt(n,i){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,f,e,o){var c,h=vt(e.uiSref,n.current.name),s={state:h.state,href:null,params:null},l=pt(f),y=o[1]||o[0],a=null,v;s.options=u(ei(f,n),e.uiSrefOpts?r.$eval(e.uiSrefOpts):{});v=function(i){i&&(s.params=t.copy(i));s.href=n.href(h.state,s.params,s.options);a&&a();y&&(a=y.$$addStateInfo(h.state,s.params));null!==s.href&&e.$set(l.attr,s.href)};h.paramExpr&&(r.$watch(h.paramExpr,function(n){n!==s.params&&v(n)},!0),s.params=t.copy(r.$eval(h.paramExpr)));v();l.clickable&&(c=wt(f,n,i,l,function(){return s}),f[f.on?"on":"bind"]("click",c),r.$on("$destroy",function(){f[f.off?"off":"unbind"]("click",c)}))}}}function kt(n,t){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(i,r,u,f){function c(t){e.state=t[0];e.params=t[1];e.options=t[2];e.href=n.href(e.state,e.params,e.options);h&&h();l&&(h=l.$$addStateInfo(e.state,e.params));e.href&&u.$set(s.attr,e.href)}var o,s=pt(r),l=f[1]||f[0],v=[u.uiState,u.uiStateParams||null,u.uiStateOpts||null],a="["+v.map(function(n){return n||"null"}).join(", ")+"]",e={state:null,params:null,options:null,href:null},h=null;i.$watch(a,c,!0);c(i.$eval(a));s.clickable&&(o=wt(r,n,t,s,function(){return e}),r[r.on?"on":"bind"]("click",o),i.$on("$destroy",function(){r[r.off?"off":"unbind"]("click",o)}))}}}function tt(n,t,i){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(t,r,u,o){function y(t,i,u){var o=n.get(t,yt(r)),f=b(t,i),e={state:o||{name:t},params:i,hash:f};return h.push(e),v[f]=u,function(){var n=h.indexOf(e);n!==-1&&h.splice(n,1)}}function b(n,i){if(!f(n))throw new Error("state should be a string");return s(i)?n+ni(i):(i=t.$eval(i),s(i)?n+ni(i):n)}function l(){for(var n=0;n<h.length;n++)k(h[n].state,h[n].params)?p(r,v[h[n].hash]):w(r,v[h[n].hash]),d(h[n].state,h[n].params)?p(r,a):w(r,a)}function p(n,t){o(function(){n.addClass(t)})}function w(n,t){n.removeClass(t)}function k(t,i){return n.includes(t.name,i)}function d(t,i){return n.is(t.name,i)}var a,c,h=[],v={};a=i(u.uiSrefActiveEq||"",!1)(t);try{c=t.$eval(u.uiSrefActive)}catch(n){}c=c||i(u.uiSrefActive||"",!1)(t);s(c)&&e(c,function(i,r){if(f(i)){var u=vt(i,n.current.name);y(u.state,t.$eval(u.paramExpr),r)}});this.$$addStateInfo=function(n,t){if(!(s(c)&&h.length>0)){var i=y(n,t,c);return l(),i}};t.$on("$stateChangeSuccess",l);l()}]}}function dt(n){var t=function(t,i){return n.is(t,i)};return t.$stateful=!0,t}function gt(n){var t=function(t,i,r){return n.includes(t,i,r)};return t.$stateful=!0,t}var r=t.isDefined,h=t.isFunction,f=t.isString,s=t.isObject,a=t.isArray,e=t.forEach,u=t.extend,it=t.copy,ni=t.toJson,l;t.module("ui.router.util",["ng"]);t.module("ui.router.router",["ui.router.util"]);t.module("ui.router.state",["ui.router.router","ui.router.util"]);t.module("ui.router",["ui.router.state"]);t.module("ui.router.compat",["ui.router"]);ft.$inject=["$q","$injector"];t.module("ui.router.util").service("$resolve",ft);t.module("ui.router.util").provider("$templateFactory",ri);y.prototype.concat=function(n,t){var i={caseInsensitive:l.caseInsensitive(),strict:l.strictMode(),squash:l.defaultSquashPolicy()};return new y(this.sourcePath+n+this.sourceSearch,u(i,t),this)};y.prototype.toString=function(){return this.source};y.prototype.exec=function(n,t){function a(n){function t(n){return n.split("").reverse().join("")}function i(n){return n.replace(/\\-/g,"-")}var r=t(n).split(/-(?!\\)/),u=p(r,t);return p(u,i).reverse()}var h=this.regexp.exec(n),u,i;if(!h)return null;t=t||{};var o,f,e,c=this.parameters(),v=c.length,l=this.segments.length-1,s={};if(l!==h.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(o=0;o<l;o++){for(e=c[o],u=this.params[e],i=h[o+1],f=0;f<u.replace.length;f++)u.replace[f].from===i&&(i=u.replace[f].to);i&&u.array===!0&&(i=a(i));r(i)&&(i=u.type.decode(i));s[e]=u.value(i)}for(;o<v;o++){for(e=c[o],s[e]=this.params[e].value(t[e]),u=this.params[e],i=t[e],f=0;f<u.replace.length;f++)u.replace[f].from===i&&(i=u.replace[f].to);r(i)&&(i=u.type.decode(i));s[e]=u.value(i)}return s};y.prototype.parameters=function(n){return r(n)?this.params[n]||null:this.$$paramNames};y.prototype.validates=function(n){return this.params.$$validates(n)};y.prototype.format=function(n){function d(n){return encodeURIComponent(n).replace(/-/g,function(n){return"%5C%"+n.charCodeAt(0).toString(16).toUpperCase()})}var s,b,k;n=n||{};var h=this.segments,c=this.parameters(),g=this.params;if(!this.validates(n))return null;for(var l=!1,v=h.length-1,nt=c.length,i=h[0],r=0;r<nt;r++){var tt=r<v,o=c[r],u=g[o],y=u.value(n[o]),w=u.isOptional&&u.type.equals(u.value(),y),e=!!w&&u.squash,t=u.type.encode(y);if(tt)s=h[r+1],b=r+1===v,e===!1?(null!=t&&(i+=a(t)?p(t,d).join("-"):encodeURIComponent(t)),i+=s):e===!0?(k=i.match(/\/$/)?/\/?(.*)/:/(.*)/,i+=s.match(k)[1]):f(e)&&(i+=e+s),b&&u.squash===!0&&"/"===i.slice(-1)&&(i=i.slice(0,-1));else{if(null==t||w&&e!==!1)continue;if(a(t)||(t=[t]),0===t.length)continue;t=p(t,encodeURIComponent).join("&"+o+"=");i+=(l?"&":"?")+(o+"="+t);l=!0}}return i};o.prototype.is=function(){return!0};o.prototype.encode=function(n){return n};o.prototype.decode=function(n){return n};o.prototype.equals=function(n,t){return n==t};o.prototype.$subPattern=function(){var n=this.pattern.toString();return n.substr(1,n.length-2)};o.prototype.pattern=/.*/;o.prototype.toString=function(){return"{Type:"+this.name+"}"};o.prototype.$normalize=function(n){return this.is(n)?n:this.decode(n)};o.prototype.$asArray=function(n,t){function u(n,t){function u(n,t){return function(){return n[t].apply(n,arguments)}}function e(n){return a(n)?n:r(n)?[n]:[]}function o(n){switch(n.length){case 0:return i;case 1:return"auto"===t?n[0]:n;default:return n}}function s(n){return!n}function f(n,t){return function(i){if(a(i)&&0===i.length)return i;i=e(i);var r=p(i,n);return t===!0?0===nt(r,s).length:o(r)}}function h(n){return function(t,i){var u=e(t),f=e(i),r;if(u.length!==f.length)return!1;for(r=0;r<u.length;r++)if(!n(u[r],f[r]))return!1;return!0}}this.encode=f(u(n,"encode"));this.decode=f(u(n,"decode"));this.is=f(u(n,"is"),!0);this.equals=h(u(n,"equals"));this.pattern=n.pattern;this.$normalize=f(u(n,"$normalize"));this.name=n.name;this.$arrayMode=t}if(!n)return this;if("auto"===n&&!t)throw new Error("'auto' array mode is for query parameters only");return new u(this,n)};t.module("ui.router.util").provider("$urlMatcherFactory",et);t.module("ui.router.util").run(["$urlMatcherFactory",function(){}]);ot.$inject=["$locationProvider","$urlMatcherFactoryProvider"];t.module("ui.router.router").provider("$urlRouter",ot);st.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"];t.module("ui.router.state").factory("$stateParams",function(){return{}}).constant("$state.runtime",{autoinject:!0}).provider("$state",st).run(["$injector",function(n){n.get("$state.runtime").autoinject&&n.get("$state")}]);ht.$inject=[];t.module("ui.router.state").provider("$view",ht);t.module("ui.router.state").provider("$uiViewScroll",fi);ct.$inject=["$state","$injector","$uiViewScroll","$interpolate","$q"];lt.$inject=["$compile","$controller","$state","$interpolate"];t.module("ui.router.state").directive("uiView",ct);t.module("ui.router.state").directive("uiView",lt);bt.$inject=["$state","$timeout"];kt.$inject=["$state","$timeout"];tt.$inject=["$state","$stateParams","$interpolate"];t.module("ui.router.state").directive("uiSref",bt).directive("uiSrefActive",tt).directive("uiSrefActiveEq",tt).directive("uiState",kt);dt.$inject=["$state"];gt.$inject=["$state"];t.module("ui.router.state").filter("isState",dt).filter("includedByState",gt)}(window,window.angular);angular.module("ui.bootstrap",["ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]);angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(n,t,i,r){var u=r.has("$animateCss")?r.get("$animateCss"):null;return{link:function(r,f,e){function v(){l=!!("horizontal"in e);l?(s={width:""},o={width:"0"}):(s={height:""},o={height:"0"});r.$eval(e.uibCollapse)||f.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(s)}function h(n){return l?{width:n.scrollWidth+"px"}:{height:n.scrollHeight+"px"}}function y(){f.hasClass("collapse")&&f.hasClass("in")||t.resolve(w(r)).then(function(){f.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1);u?u(f,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:h(f[0])}).start()["finally"](a):n.addClass(f,"in",{css:{overflow:"hidden"},to:h(f[0])}).then(a)},angular.noop)}function a(){f.removeClass("collapsing").addClass("collapse").css(s);b(r)}function p(){return f.hasClass("collapse")||f.hasClass("in")?void t.resolve(k(r)).then(function(){f.css(h(f[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0);u?u(f,{removeClass:"in",to:o}).start()["finally"](c):n.removeClass(f,"in",{to:o}).then(c)},angular.noop):c()}function c(){f.css(o);f.removeClass("collapsing").addClass("collapse");d(r)}var w=i(e.expanding),b=i(e.expanded),k=i(e.collapsing),d=i(e.collapsed),l=!1,s={},o={};v();r.$watch(e.uibCollapse,function(n){n?p():y()})}}}]);angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(n,t,i){i.$observe("disabled",function(n){i.$set("tabindex",n?-1:null)})}}});angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(n,t,i){this.groups=[];this.closeOthers=function(r){var u=angular.isDefined(t.closeOthers)?n.$eval(t.closeOthers):i.closeOthers;u&&angular.forEach(this.groups,function(n){n!==r&&(n.isOpen=!1)})};this.addGroup=function(n){var t=this;this.groups.push(n);n.$on("$destroy",function(){t.removeGroup(n)})};this.removeGroup=function(n){var t=this.groups.indexOf(n);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(n,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(n){this.heading=n}},link:function(n,t,i,r){t.addClass("panel");r.addGroup(n);n.openClass=i.openClass||"panel-open";n.panelClass=i.panelClass||"panel-default";n.$watch("isOpen",function(i){t.toggleClass(n.openClass,!!i);i&&r.closeOthers(n)});n.toggleOpen=function(t){n.isDisabled||t&&32!==t.which||(n.isOpen=!n.isOpen)};var u="accordiongroup-"+n.$id+"-"+Math.floor(1e4*Math.random());n.headingId=u+"-tab";n.panelId=u+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(n,t,i,r,u){r.setHeading(u(n,angular.noop))}}}).directive("uibAccordionTransclude",function(){function n(){return"uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"}return{require:"^uibAccordionGroup",link:function(t,i,r,u){t.$watch(function(){return u[r.uibAccordionTransclude]},function(t){if(t){var r=angular.element(i[0].querySelector(n()));r.html("");r.append(t)}})}}});angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(n,t,i,r,u){n.closeable=!!i.close;t.addClass("alert");i.$set("role","alert");n.closeable&&t.addClass("alert-dismissible");var f=angular.isDefined(i.dismissOnTimeout)?r(i.dismissOnTimeout)(n.$parent):null;f&&u(function(){n.close()},parseInt(f,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(n,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}});angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(n){this.activeClass=n.activeClass||"active";this.toggleEvent=n.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(n){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,i,r,u){var e=u[0],f=u[1],o=n(r.uibUncheckable);i.find("input").css({display:"none"});f.$render=function(){i.toggleClass(e.activeClass,angular.equals(f.$modelValue,t.$eval(r.uibBtnRadio)))};i.on(e.toggleEvent,function(){if(!r.disabled){var n=i.hasClass(e.activeClass);n&&!angular.isDefined(r.uncheckable)||t.$apply(function(){f.$setViewValue(n?null:t.$eval(r.uibBtnRadio));f.$render()})}});r.uibUncheckable&&t.$watch(o,function(n){r.$set("uncheckable",n?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,t,i,r){function e(){return o(i.btnCheckboxTrue,!0)}function s(){return o(i.btnCheckboxFalse,!1)}function o(t,i){return angular.isDefined(t)?n.$eval(t):i}var f=r[0],u=r[1];t.find("input").css({display:"none"});u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,e()))};t.on(f.toggleEvent,function(){i.disabled||n.$apply(function(){u.$setViewValue(t.hasClass(f.activeClass)?s():e());u.$render()})})}}});angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(n,t,i,r,u){function s(n){for(var t=0;t<f.length;t++)f[t].slide.active=t===n}function w(i,r,h){if(!p){if(angular.extend(i,{direction:h}),angular.extend(f[o].slide||{},{direction:h}),u.enabled(t)&&!n.$currentTransition&&f[r].element&&e.slides.length>1){f[r].element.data(y,i.direction);var c=e.getCurrentIndex();angular.isNumber(c)&&f[c].element&&f[c].element.data(y,i.direction);n.$currentTransition=!0;u.on("addClass",f[r].element,function(t,i){"close"===i&&(n.$currentTransition=null,u.off("addClass",t))})}n.active=i.index;o=i.index;s(r);v()}}function l(n){for(var t=0;t<f.length;t++)if(f[t].slide===n)return t}function a(){h&&(i.cancel(h),h=null)}function b(t){t.length||(n.$currentTransition=null)}function v(){a();var t=+n.interval;!isNaN(t)&&t>0&&(h=i(k,t))}function k(){var t=+n.interval;c&&!isNaN(t)&&t>0&&f.length?n.next():n.pause()}var h,c,e=this,f=e.slides=n.slides=[],y="uib-slideDirection",o=n.active,p=!1;t.addClass("carousel");e.addSlide=function(t,i){f.push({slide:t,element:i});f.sort(function(n,t){return+n.slide.index-+t.slide.index});(t.index===n.active||1===f.length&&!angular.isNumber(n.active))&&(n.$currentTransition&&(n.$currentTransition=null),o=t.index,n.active=t.index,s(o),e.select(f[l(t)]),1===f.length&&n.play())};e.getCurrentIndex=function(){for(var n=0;n<f.length;n++)if(f[n].slide.index===o)return n};e.next=n.next=function(){var t=(e.getCurrentIndex()+1)%f.length;return 0===t&&n.noWrap()?void n.pause():e.select(f[t],"next")};e.prev=n.prev=function(){var t=e.getCurrentIndex()-1<0?f.length-1:e.getCurrentIndex()-1;return n.noWrap()&&t===f.length-1?void n.pause():e.select(f[t],"prev")};e.removeSlide=function(t){var i=l(t);f.splice(i,1);f.length>0&&o===i?i>=f.length?(o=f.length-1,n.active=o,s(o),e.select(f[f.length-1])):(o=i,n.active=o,s(o),e.select(f[i])):o>i&&(o--,n.active=o);0===f.length&&(o=null,n.active=null)};e.select=n.select=function(t,i){var r=l(t.slide);void 0===i&&(i=r>e.getCurrentIndex()?"next":"prev");t.slide.index===o||n.$currentTransition||w(t.slide,r,i)};n.indexOfSlide=function(n){return+n.slide.index};n.isActive=function(t){return n.active===t.slide.index};n.isPrevDisabled=function(){return 0===n.active&&n.noWrap()};n.isNextDisabled=function(){return n.active===f.length-1&&n.noWrap()};n.pause=function(){n.noPause||(c=!1,a())};n.play=function(){c||(c=!0,v())};t.on("mouseenter",n.pause);t.on("mouseleave",n.play);n.$on("$destroy",function(){p=!0;a()});n.$watch("noTransition",function(n){u.enabled(t,!n)});n.$watch("interval",v);n.$watchCollection("slides",b);n.$watch("active",function(n){var t,i;if(angular.isNumber(n)&&o!==n){for(t=0;t<f.length;t++)if(f[t].slide.index===n){n=t;break}i=f[n];i&&(s(n),e.select(f[n]),o=n)}})}]).directive("uibCarousel",function(){return{transclude:!0,controller:"UibCarouselController",controllerAs:"carousel",restrict:"A",templateUrl:function(n,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",["$animate",function(n){return{require:"^uibCarousel",restrict:"A",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(t,i,r,u){i.addClass("item");u.addSlide(t,i);t.$on("$destroy",function(){u.removeSlide(t)});t.$watch("active",function(t){n[t?"addClass":"removeClass"](i,"active")})}}}]).animation(".item",["$animateCss",function(n){function t(n,t,i){n.removeClass(t);i&&i()}var i="uib-slideDirection";return{beforeAddClass:function(r,u,f){if("active"===u){var s=!1,e=r.data(i),o="next"===e?"left":"right",h=t.bind(this,r,o+" "+e,f);return r.addClass(e),n(r,{addClass:o}).start().done(h),function(){s=!0}}f()},beforeRemoveClass:function(r,u,f){if("active"===u){var o=!1,s=r.data(i),e="next"===s?"left":"right",h=t.bind(this,r,e,f);return n(r,{addClass:e}).start().done(h),function(){o=!0}}f()}}}]);angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter","filterFilter",function(n,t,i,r,u){function s(n){return u(f,{key:n},!0)[0]}function v(n){var e=[],i=n.split(""),o=n.indexOf("'"),u,t;if(o>-1){for(u=!1,n=n.split(""),t=o;t<n.length;t++)u?("'"===n[t]&&(t+1<n.length&&"'"===n[t+1]?(n[t+1]="$",i[t+1]=""):(i[t]="",u=!1)),n[t]="$"):"'"===n[t]&&(n[t]="$",i[t]="",u=!0);n=n.join("")}return angular.forEach(f,function(t){var r=n.indexOf(t.key),u,f;if(r>-1){for(n=n.split(""),i[r]="("+t.regex+")",n[r]="$",u=r+1,f=r+t.key.length;f>u;u++)i[u]="",n[u]="$";n=n.join("");e.push({index:r,key:t.key,apply:t.apply,matcher:t.regex})}}),{regex:new RegExp("^"+i.join("")+"$"),map:r(e,"index")}}function y(n){for(var r,i,u=[],t=0;t<n.length;)if(angular.isNumber(i)){if("'"===n.charAt(t))(t+1>=n.length||"'"!==n.charAt(t+1))&&(u.push(p(n,i,t)),i=null);else if(t===n.length)for(;i<n.length;)r=h(n,i),u.push(r),i=r.endIdx;t++}else"'"!==n.charAt(t)?(r=h(n,t),u.push(r.parser),t=r.endIdx):(i=t,t++);return u}function p(n,t,i){return function(){return n.substr(t+1,i-t-1)}}function h(n,t){for(var u,r=n.substr(t),i=0;i<f.length;i++)if(new RegExp("^"+f[i].key).test(r))return u=f[i],{endIdx:t+u.key.length,parser:u.formatter};return{endIdx:t+1,parser:function(){return r.charAt(0)}}}function w(n,t,i){return 1>i?!1:1===t&&i>28?29===i&&(n%4==0&&n%100!=0||n%400==0):3===t||5===t||8===t||10===t?31>i:!0}function c(n){return parseInt(n,10)}function b(n,t){return n&&t?e(n,t):n}function k(n,t){return n&&t?e(n,t,!0):n}function l(n,t){n=n.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(i)?t:i}function a(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function e(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset(),u=l(t,r);return a(n,i*(u-r))}var o,f,d=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){o=t.id;this.parsers={};this.formatters={};f=[{key:"yyyy",regex:"\\d{4}",apply:function(n){this.year=+n},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(n){n=+n;this.year=69>n?n+2e3:n+1900},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(n){this.year=+n},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){var t=n.getMonth();return/^[0-9]$/.test(t)?i(n,"MM"):i(n,"M")}},{key:"MMMM",regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.MONTH.indexOf(n)},formatter:function(n){return i(n,"MMMM")}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(n)},formatter:function(n){return i(n,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){return i(n,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){return i(n,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){var t=n.getDate();return/^[1-9]$/.test(t)?i(n,"dd"):i(n,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){return i(n,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){return i(n,"d")}},{key:"EEEE",regex:t.DATETIME_FORMATS.DAY.join("|"),formatter:function(n){return i(n,"EEEE")}},{key:"EEE",regex:t.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(n){return i(n,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(n){this.minutes=+n},formatter:function(n){return i(n,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(n){this.minutes=+n},formatter:function(n){return i(n,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(n){this.milliseconds=+n},formatter:function(n){return i(n,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(n){this.seconds=+n},formatter:function(n){return i(n,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(n){this.seconds=+n},formatter:function(n){return i(n,"s")}},{key:"a",regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(n){12===this.hours&&(this.hours=0);"PM"===n&&(this.hours+=12)},formatter:function(n){return i(n,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(n){var t=n.match(/([+-])(\d{2})(\d{2})/),i=t[1],r=t[2],u=t[3];this.hours+=c(i+r);this.minutes+=c(i+u)},formatter:function(n){return i(n,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(n){return i(n,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(n){return i(n,"w")}},{key:"GGGG",regex:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(n){return i(n,"GGGG")}},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"GGG")}},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"GG")}},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"G")}}];angular.version.major>=1&&angular.version.minor>4&&f.push({key:"LLLL",regex:t.DATETIME_FORMATS.STANDALONEMONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.STANDALONEMONTH.indexOf(n)},formatter:function(n){return i(n,"LLLL")}})};this.init();this.getParser=function(n){var t=s(n);return t&&t.apply||null};this.overrideParser=function(n,t){var i=s(n);i&&angular.isFunction(t)&&(this.parsers={},i.apply=t)}.bind(this);this.filter=function(n,i){if(!angular.isDate(n)||isNaN(n)||!i)return"";i=t.DATETIME_FORMATS[i]||i;t.id!==o&&this.init();this.formatters[i]||(this.formatters[i]=y(i));var r=this.formatters[i];return r.reduce(function(t,i){return t+i(n)},"")};this.parse=function(i,r,u){var f,e,s,b,l,a,y;if(!angular.isString(i)||!r)return i;r=t.DATETIME_FORMATS[r]||r;r=r.replace(d,"\\$&");t.id!==o&&this.init();this.parsers[r]||(this.parsers[r]=v(r,"apply"));var p=this.parsers[r],k=p.regex,g=p.map,h=i.match(k),c=!1;if(h&&h.length){for(angular.isDate(u)&&!isNaN(u.getTime())?f={year:u.getFullYear(),month:u.getMonth(),date:u.getDate(),hours:u.getHours(),minutes:u.getMinutes(),seconds:u.getSeconds(),milliseconds:u.getMilliseconds()}:(u&&n.warn("dateparser:","baseDate is not a valid date"),f={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),s=1,b=h.length;b>s;s++)l=g[s-1],"Z"===l.matcher&&(c=!0),l.apply&&l.apply.call(f,h[s]);return a=c?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,y=c?Date.prototype.setUTCHours:Date.prototype.setHours,w(f.year,f.month,f.date)&&(!angular.isDate(u)||isNaN(u.getTime())||c?(e=new Date(0),a.call(e,f.year,f.month,f.date),y.call(e,f.hours||0,f.minutes||0,f.seconds||0,f.milliseconds||0)):(e=new Date(u),a.call(e,f.year,f.month,f.date),y.call(e,f.hours,f.minutes,f.seconds,f.milliseconds))),e}};this.toTimezone=b;this.fromTimezone=k;this.timezoneToOffset=l;this.addDateMinutes=a;this.convertTimezoneToLocal=e}]);angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(n){var t=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,i=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(r,u){function h(n,t){f.push(n);o.push({scope:n,element:t});y.forEach(function(t){c(t,n)});n.$on("$destroy",l)}function c(t,r){var h=t.match(i),c=r.$eval(h[1]),f=h[2],u=e[t],s;u||(s=function(t){var i=null;o.some(function(n){var r=n.scope.$eval(a);if(r===t)return(i=n,!0)});u.lastActivated!==i&&(u.lastActivated&&n.removeClass(u.lastActivated.element,c),i&&n.addClass(i.element,c),u.lastActivated=i)},e[t]=u={lastActivated:null,scope:r,watchFn:s,compareWithExp:f,watcher:r.$watch(f,s)});u.watchFn(r.$eval(f))}function l(n){var i=n.targetScope,r=f.indexOf(i),t;(f.splice(r,1),o.splice(r,1),f.length)?(t=f[0],angular.forEach(e,function(n){n.scope===i&&(n.watcher=t.$watch(n.compareWithExp,n.watchFn),n.scope=t)})):e={}}var f=[],o=[],e={},s=u.uibIsClass.match(t),a=s[2],v=s[1],y=v.split(",");return h}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(n,t,i,r,u,f,e,o,s,h,c,l){function w(t){n.datepickerMode=t;n.datepickerOptions.datepickerMode=t}function k(t){var i,r;return angular.version.minor<6?(i=t.$options||n.datepickerOptions.ngModelOptions||s.ngModelOptions||{},i.getOption=function(n){return i[n]}):(r=t.$options.getOption("timezone")||(n.datepickerOptions.ngModelOptions?n.datepickerOptions.ngModelOptions.timezone:null)||(s.ngModelOptions?s.ngModelOptions.timezone:null),i=t.$options.createChild(s.ngModelOptions).createChild(n.datepickerOptions.ngModelOptions).createChild(t.$options).createChild({timezone:r})),i}var a=this,v={$setViewValue:angular.noop},y={},p=[],b;t.addClass("uib-datepicker");i.$set("role","application");n.datepickerOptions||(n.datepickerOptions={});this.modes=["day","month","year"];["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":n[t]=n.datepickerOptions[t]||angular.noop;break;case"datepickerMode":n.datepickerMode=angular.isDefined(n.datepickerOptions.datepickerMode)?n.datepickerOptions.datepickerMode:s.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":a[t]=angular.isDefined(n.datepickerOptions[t])?u(n.datepickerOptions[t])(n.$parent):s[t];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":a[t]=angular.isDefined(n.datepickerOptions[t])?n.datepickerOptions[t]:s[t];break;case"startingDay":a.startingDay=angular.isDefined(n.datepickerOptions.startingDay)?n.datepickerOptions.startingDay:angular.isNumber(s.startingDay)?s.startingDay:(f.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":n.$watch("datepickerOptions."+t,function(n){n?angular.isDate(n)?a[t]=l.fromTimezone(new Date(n),y.getOption("timezone")):(h&&e.warn("Literal date support has been deprecated, please switch to date object usage"),a[t]=new Date(o(n,"medium"))):a[t]=s[t]?l.fromTimezone(new Date(s[t]),y.getOption("timezone")):null;a.refreshView()});break;case"maxMode":case"minMode":n.datepickerOptions[t]?n.$watch(function(){return n.datepickerOptions[t]},function(i){a[t]=n[t]=angular.isDefined(i)?i:n.datepickerOptions[t];("minMode"===t&&a.modes.indexOf(n.datepickerOptions.datepickerMode)<a.modes.indexOf(a[t])||"maxMode"===t&&a.modes.indexOf(n.datepickerOptions.datepickerMode)>a.modes.indexOf(a[t]))&&(n.datepickerMode=a[t],n.datepickerOptions.datepickerMode=a[t])}):a[t]=n[t]=s[t]||null}});n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(1e4*Math.random());n.disabled=angular.isDefined(i.disabled)||!1;angular.isDefined(i.ngDisabled)&&p.push(n.$parent.$watch(i.ngDisabled,function(t){n.disabled=t;a.refreshView()}));n.isActive=function(t){return 0===a.compare(t.date,a.activeDate)?(n.activeDateId=t.uid,!0):!1};this.init=function(t){v=t;y=k(v);n.datepickerOptions.initDate?(a.activeDate=l.fromTimezone(n.datepickerOptions.initDate,y.getOption("timezone"))||new Date,n.$watch("datepickerOptions.initDate",function(n){n&&(v.$isEmpty(v.$modelValue)||v.$invalid)&&(a.activeDate=l.fromTimezone(n,y.getOption("timezone")),a.refreshView())})):a.activeDate=new Date;var i=v.$modelValue?new Date(v.$modelValue):new Date;this.activeDate=isNaN(i)?l.fromTimezone(new Date,y.getOption("timezone")):l.fromTimezone(i,y.getOption("timezone"));v.$render=function(){a.render()}};this.render=function(){if(v.$viewValue){var n=new Date(v.$viewValue),t=!isNaN(n);t?this.activeDate=l.fromTimezone(n,y.getOption("timezone")):c||e.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()};this.refreshView=function(){if(this.element){n.selectedDt=null;this._refreshView();n.activeDt&&(n.activeDateId=n.activeDt.uid);var t=v.$viewValue?new Date(v.$viewValue):null;t=l.fromTimezone(t,y.getOption("timezone"));v.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}};this.createDateObject=function(t,i){var r=v.$viewValue?new Date(v.$viewValue):null,f,e,u;return r=l.fromTimezone(r,y.getOption("timezone")),f=new Date,f=l.fromTimezone(f,y.getOption("timezone")),e=this.compare(t,f),u={date:t,label:l.filter(t,i),selected:r&&0===this.compare(t,r),disabled:this.isDisabled(t),past:0>e,current:0===e,future:e>0,customClass:this.customClass(t)||null},r&&0===this.compare(t,r)&&(n.selectedDt=u),a.activeDate&&0===this.compare(u.date,a.activeDate)&&(n.activeDt=u),u};this.isDisabled=function(t){return n.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0||n.dateDisabled&&n.dateDisabled({date:t,mode:n.datepickerMode})};this.customClass=function(t){return n.customClass({date:t,mode:n.datepickerMode})};this.split=function(n,t){for(var i=[];n.length>0;)i.push(n.splice(0,t));return i};n.select=function(t){if(n.datepickerMode===a.minMode){var i=v.$viewValue?l.fromTimezone(new Date(v.$viewValue),y.getOption("timezone")):new Date(0,0,0,0,0,0,0);i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());i=l.toTimezone(i,y.getOption("timezone"));v.$setViewValue(i);v.$render()}else a.activeDate=t,w(a.modes[a.modes.indexOf(n.datepickerMode)-1]),n.$emit("uib:datepicker.mode");n.$broadcast("uib:datepicker.focus")};n.move=function(n){var t=a.activeDate.getFullYear()+n*(a.step.years||0),i=a.activeDate.getMonth()+n*(a.step.months||0);a.activeDate.setFullYear(t,i,1);a.refreshView()};n.toggleMode=function(t){t=t||1;n.datepickerMode===a.maxMode&&1===t||n.datepickerMode===a.minMode&&-1===t||(w(a.modes[a.modes.indexOf(n.datepickerMode)+t]),n.$emit("uib:datepicker.mode"))};n.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};b=function(){a.element[0].focus()};n.$on("uib:datepicker.focus",b);n.keydown=function(t){var i=n.keys[t.which];if(i&&!t.shiftKey&&!t.altKey&&!n.disabled)if(t.preventDefault(),a.shortcutPropagation||t.stopPropagation(),"enter"===i||"space"===i){if(a.isDisabled(a.activeDate))return;n.select(a.activeDate)}else!t.ctrlKey||"up"!==i&&"down"!==i?(a.handleKeyDown(i,t),a.refreshView()):n.toggleMode("up"===i?1:-1)};t.on("keydown",function(t){n.$apply(function(){n.keydown(t)})});n.$on("$destroy",function(){for(;p.length;)p.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(n,t,i){function r(n,t){return 1!==t||n%4!=0||n%100==0&&n%400!=0?f[t]:29}function u(n){var t=new Date(n),i;return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1}var f=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1};this.element=t;this.init=function(t){angular.extend(t,this);n.showWeeks=t.showWeeks;t.refreshView()};this.getDates=function(n,t){for(var r,u=new Array(t),i=new Date(n),f=0;t>f;)r=new Date(i),u[f++]=r,i.setDate(i.getDate()+1);return u};this._refreshView=function(){var a=this.activeDate.getFullYear(),h=this.activeDate.getMonth(),e=new Date(this.activeDate),t,r,f;e.setFullYear(a,h,1);var o=this.startingDay-e.getDay(),c=o>0?7-o:-o,l=new Date(e);for(c>0&&l.setDate(-c+1),t=this.getDates(l,42),r=0;42>r;r++)t[r]=angular.extend(this.createDateObject(t[r],this.formatDay),{secondary:t[r].getMonth()!==h,uid:n.uniqueId+"-"+r});for(n.labels=new Array(7),f=0;7>f;f++)n.labels[f]={abbr:i(t[f].date,this.formatDayHeader),full:i(t[f].date,"EEEE")};if(n.title=i(this.activeDate,this.formatDayTitle),n.rows=this.split(t,7),n.showWeeks){n.weekNumbers=[];for(var v=(11-this.startingDay)%7,y=n.rows.length,s=0;y>s;s++)n.weekNumbers.push(u(n.rows[s][v].date))}};this.compare=function(n,t){var i=new Date(n.getFullYear(),n.getMonth(),n.getDate()),r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return i.setFullYear(n.getFullYear()),r.setFullYear(t.getFullYear()),i-r};this.handleKeyDown=function(n){var t=this.activeDate.getDate(),i;"left"===n?t-=1:"up"===n?t-=7:"right"===n?t+=1:"down"===n?t+=7:"pageup"===n||"pagedown"===n?(i=this.activeDate.getMonth()+("pageup"===n?-1:1),this.activeDate.setMonth(i,1),t=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),t)):"home"===n?t=1:"end"===n&&(t=r(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(t)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(n,t,i){this.step={years:1};this.element=t;this.init=function(n){angular.extend(n,this);n.refreshView()};this._refreshView=function(){for(var r,u=new Array(12),f=this.activeDate.getFullYear(),t=0;12>t;t++)r=new Date(this.activeDate),r.setFullYear(f,t,1),u[t]=angular.extend(this.createDateObject(r,this.formatMonth),{uid:n.uniqueId+"-"+t});n.title=i(this.activeDate,this.formatMonthTitle);n.rows=this.split(u,this.monthColumns);n.yearHeaderColspan=this.monthColumns>3?this.monthColumns-2:1};this.compare=function(n,t){var i=new Date(n.getFullYear(),n.getMonth()),r=new Date(t.getFullYear(),t.getMonth());return i.setFullYear(n.getFullYear()),r.setFullYear(t.getFullYear()),i-r};this.handleKeyDown=function(n){var t=this.activeDate.getMonth(),i;"left"===n?t-=1:"up"===n?t-=this.monthColumns:"right"===n?t+=1:"down"===n?t+=this.monthColumns:"pageup"===n||"pagedown"===n?(i=this.activeDate.getFullYear()+("pageup"===n?-1:1),this.activeDate.setFullYear(i)):"home"===n?t=0:"end"===n&&(t=11);this.activeDate.setMonth(t)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(n,t){function u(n){return parseInt((n-1)/i,10)*i+1}var r,i;this.element=t;this.yearpickerInit=function(){r=this.yearColumns;i=this.yearRows*r;this.step={years:i}};this._refreshView=function(){for(var e,f=new Array(i),t=0,o=u(this.activeDate.getFullYear());i>t;t++)e=new Date(this.activeDate),e.setFullYear(o+t,0,1),f[t]=angular.extend(this.createDateObject(e,this.formatYear),{uid:n.uniqueId+"-"+t});n.title=[f[0].label,f[i-1].label].join(" - ");n.rows=this.split(f,r);n.columns=r};this.compare=function(n,t){return n.getFullYear()-t.getFullYear()};this.handleKeyDown=function(n){var t=this.activeDate.getFullYear();"left"===n?t-=1:"up"===n?t-=r:"right"===n?t+=1:"down"===n?t+=r:"pageup"===n||"pagedown"===n?t+=("pageup"===n?-1:1)*i:"home"===n?t=u(this.activeDate.getFullYear()):"end"===n&&(t=u(this.activeDate.getFullYear())+i-1);this.activeDate.setFullYear(t)}}]).directive("uibDatepicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],restrict:"A",controller:"UibDatepickerController",controllerAs:"datepicker",link:function(n,t,i,r){var u=r[0],f=r[1];u.init(f)}}}).directive("uibDaypicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],restrict:"A",controller:"UibDaypickerController",link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibMonthpicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],restrict:"A",controller:"UibMonthpickerController",link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibYearpicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],restrict:"A",controller:"UibYearpickerController",link:function(n,t,i,r){var u=r[0];angular.extend(u,r[1]);u.yearpickerInit();u.refreshView()}}});angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(n,t){var r,u,f={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},i={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},e=/(HTML|BODY)/;return{getRawNode:function(n){return n.nodeName?n:n[0]||n},parseStyle:function(n){return n=parseFloat(n),isFinite(n)?n:0},offsetParent:function(i){function u(n){return"static"===(t.getComputedStyle(n).position||"static")}i=this.getRawNode(i);for(var r=i.offsetParent||n[0].documentElement;r&&r!==n[0].documentElement&&u(r);)r=r.offsetParent;return r||n[0].documentElement},scrollbarWidth:function(i){var e,f;return i?(angular.isUndefined(u)&&(e=n.find("body"),e.addClass("uib-position-body-scrollbar-measure"),u=t.innerWidth-e[0].clientWidth,u=isFinite(u)?u:0,e.removeClass("uib-position-body-scrollbar-measure")),u):(angular.isUndefined(r)&&(f=angular.element('<div class="uib-position-scrollbar-measure"><\/div>'),n.find("body").append(f),r=f[0].offsetWidth-f[0].clientWidth,r=isFinite(r)?r:0,f.remove()),r)},scrollbarPadding:function(n){n=this.getRawNode(n);var u=t.getComputedStyle(n),f=this.parseStyle(u.paddingRight),o=this.parseStyle(u.paddingBottom),i=this.scrollParent(n,!1,!0),r=this.scrollbarWidth(e.test(i.tagName));return{scrollbarWidth:r,widthOverflow:i.scrollWidth>i.clientWidth,right:f+r,originalRight:f,heightOverflow:i.scrollHeight>i.clientHeight,bottom:o+r,originalBottom:o}},isScrollable:function(n,i){n=this.getRawNode(n);var u=i?f.hidden:f.normal,r=t.getComputedStyle(n);return u.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(i,r,u){var c,e,s;i=this.getRawNode(i);var l=r?f.hidden:f.normal,h=n[0].documentElement,o=t.getComputedStyle(i);if(u&&l.test(o.overflow+o.overflowY+o.overflowX))return i;if(c="absolute"===o.position,e=i.parentElement||h,e===h||"fixed"===o.position)return h;for(;e.parentElement&&e!==h;){if(s=t.getComputedStyle(e),c&&"static"!==s.position&&(c=!1),!c&&l.test(s.overflow+s.overflowY+s.overflowX))break;e=e.parentElement}return e},position:function(i,r){var u,o,f,e;return i=this.getRawNode(i),u=this.offset(i),r&&(o=t.getComputedStyle(i),u.top-=this.parseStyle(o.marginTop),u.left-=this.parseStyle(o.marginLeft)),f=this.offsetParent(i),e={top:0,left:0},f!==n[0].documentElement&&(e=this.offset(f),e.top+=f.clientTop-f.scrollTop,e.left+=f.clientLeft-f.scrollLeft),{width:Math.round(angular.isNumber(u.width)?u.width:i.offsetWidth),height:Math.round(angular.isNumber(u.height)?u.height:i.offsetHeight),top:Math.round(u.top-e.top),left:Math.round(u.left-e.left)}},offset:function(i){i=this.getRawNode(i);var r=i.getBoundingClientRect();return{width:Math.round(angular.isNumber(r.width)?r.width:i.offsetWidth),height:Math.round(angular.isNumber(r.height)?r.height:i.offsetHeight),top:Math.round(r.top+(t.pageYOffset||n[0].documentElement.scrollTop)),left:Math.round(r.left+(t.pageXOffset||n[0].documentElement.scrollLeft))}},viewportOffset:function(i,r,u){var o;i=this.getRawNode(i);u=u!==!1;var s=i.getBoundingClientRect(),f={top:0,left:0,bottom:0,right:0},e=r?n[0].documentElement:this.scrollParent(i),h=e.getBoundingClientRect();return(f.top=h.top+e.clientTop,f.left=h.left+e.clientLeft,e===n[0].documentElement&&(f.top+=t.pageYOffset,f.left+=t.pageXOffset),f.bottom=f.top+e.clientHeight,f.right=f.left+e.clientWidth,u)&&(o=t.getComputedStyle(e),f.top+=this.parseStyle(o.paddingTop),f.bottom-=this.parseStyle(o.paddingBottom),f.left+=this.parseStyle(o.paddingLeft),f.right-=this.parseStyle(o.paddingRight)),{top:Math.round(s.top-f.top),bottom:Math.round(f.bottom-s.bottom),left:Math.round(s.left-f.left),right:Math.round(f.right-s.right)}},parsePlacement:function(n){var t=i.auto.test(n);return t&&(n=n.replace(i.auto,"")),n=n.split("-"),n[0]=n[0]||"top",i.primary.test(n[0])||(n[0]="top"),n[1]=n[1]||"center",i.secondary.test(n[1])||(n[1]="center"),n[2]=t?!0:!1,n},positionElements:function(n,r,u,f){var c,l,e,h,v,y;if(n=this.getRawNode(n),r=this.getRawNode(r),c=angular.isDefined(r.offsetWidth)?r.offsetWidth:r.prop("offsetWidth"),l=angular.isDefined(r.offsetHeight)?r.offsetHeight:r.prop("offsetHeight"),u=this.parsePlacement(u),e=f?this.offset(n):this.position(n),h={top:0,left:0,placement:""},u[2]){var o=this.viewportOffset(n,f),a=t.getComputedStyle(r),s={width:c+Math.round(Math.abs(this.parseStyle(a.marginLeft)+this.parseStyle(a.marginRight))),height:l+Math.round(Math.abs(this.parseStyle(a.marginTop)+this.parseStyle(a.marginBottom)))};(u[0]="top"===u[0]&&s.height>o.top&&s.height<=o.bottom?"bottom":"bottom"===u[0]&&s.height>o.bottom&&s.height<=o.top?"top":"left"===u[0]&&s.width>o.left&&s.width<=o.right?"right":"right"===u[0]&&s.width>o.right&&s.width<=o.left?"left":u[0],u[1]="top"===u[1]&&s.height-e.height>o.bottom&&s.height-e.height<=o.top?"bottom":"bottom"===u[1]&&s.height-e.height>o.top&&s.height-e.height<=o.bottom?"top":"left"===u[1]&&s.width-e.width>o.right&&s.width-e.width<=o.left?"right":"right"===u[1]&&s.width-e.width>o.left&&s.width-e.width<=o.right?"left":u[1],"center"===u[1])&&(i.vertical.test(u[0])?(v=e.width/2-c/2,o.left+v<0&&s.width-e.width<=o.right?u[1]="left":o.right+v<0&&s.width-e.width<=o.left&&(u[1]="right")):(y=e.height/2-s.height/2,o.top+y<0&&s.height-e.height<=o.bottom?u[1]="top":o.bottom+y<0&&s.height-e.height<=o.top&&(u[1]="bottom")))}switch(u[0]){case"top":h.top=e.top-l;break;case"bottom":h.top=e.top+e.height;break;case"left":h.left=e.left-c;break;case"right":h.left=e.left+e.width}switch(u[1]){case"top":h.top=e.top;break;case"bottom":h.top=e.top+e.height-l;break;case"left":h.left=e.left;break;case"right":h.left=e.left+e.width-c;break;case"center":i.vertical.test(u[0])?h.left=e.left+e.width/2-c/2:h.top=e.top+e.height/2-l/2}return h.top=Math.round(h.top),h.left=Math.round(h.left),h.placement="center"===u[1]?u[0]:u[0]+"-"+u[1],h},adjustTop:function(n,t,i,r){if(-1!==n.indexOf("top")&&i!==r)return{top:t.top-r+"px"}},positionArrow:function(n,r){var o,f,e,u,c;if(n=this.getRawNode(n),o=n.querySelector(".tooltip-inner, .popover-inner"),o&&(f=angular.element(o).hasClass("tooltip-inner"),e=f?n.querySelector(".tooltip-arrow"):n.querySelector(".arrow"),e)){if(u={top:"",bottom:"",left:"",right:""},r=this.parsePlacement(r),"center"===r[1])return void angular.element(e).css(u);var l="border-"+r[0]+"-width",s=t.getComputedStyle(e)[l],h="border-";h+=i.vertical.test(r[0])?r[0]+"-"+r[1]:r[1]+"-"+r[0];h+="-radius";c=t.getComputedStyle(f?o:n)[h];switch(r[0]){case"top":u.bottom=f?"0":"-"+s;break;case"bottom":u.top=f?"0":"-"+s;break;case"left":u.right=f?"0":"-"+s;break;case"right":u.left=f?"0":"-"+s}u[r[1]]=c;angular.element(e).css(u)}}}}]);angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p){function ut(t){var i=l.parse(t,b,n.date),r;if(isNaN(i))for(r=0;r<ot.length;r++)if(i=l.parse(t,ot[r],n.date),!isNaN(i))return i;return i}function yt(n){if(angular.isNumber(n)&&(n=new Date(n)),!n)return null;if(angular.isDate(n)&&!isNaN(n))return n;if(angular.isString(n)){var t=ut(n);if(!isNaN(t))return l.toTimezone(t,g.getOption("timezone"))}if(g.getOption("allowInvalid"))return n}function pt(n,t){var r=n||t;return i.ngRequired||r?(angular.isNumber(r)&&(r=new Date(r)),r?angular.isDate(r)&&!isNaN(r)?!0:angular.isString(r)?!isNaN(ut(r)):!1:!0):!0}function ft(i){if(n.isOpen||!n.disabled){var r=nt[0],u=t[0].contains(i.target),f=void 0!==r.contains&&r.contains(i.target);!n.isOpen||u||f||n.$apply(function(){n.isOpen=!1})}}function ht(i){27===i.which&&n.isOpen?(i.preventDefault(),i.stopPropagation(),n.$apply(function(){n.isOpen=!1}),t[0].focus()):40!==i.which||n.isOpen||(i.preventDefault(),i.stopPropagation(),n.$apply(function(){n.isOpen=!0}))}function d(){if(n.isOpen){var r=angular.element(nt[0].querySelector(".uib-datepicker-popup")),f=i.popupPlacement?i.popupPlacement:a.placement,u=h.positionElements(t,r,f,it);r.css({top:u.top+"px",left:u.left+"px"});r.hasClass("uib-position-measure")&&r.removeClass("uib-position-measure")}}function wt(n){var t;return angular.version.minor<6?(t=angular.isObject(n.$options)?n.$options:{timezone:null},t.getOption=function(n){return t[n]}):t=n.$options,t}var b,ct,it,lt,at,vt,tt,et,k,w,g,nt,ot,rt=!1,st=[];this.init=function(u){if(w=u,g=wt(w),ct=angular.isDefined(i.closeOnDateSelection)?n.$parent.$eval(i.closeOnDateSelection):a.closeOnDateSelection,it=angular.isDefined(i.datepickerAppendToBody)?n.$parent.$eval(i.datepickerAppendToBody):a.appendToBody,lt=angular.isDefined(i.onOpenFocus)?n.$parent.$eval(i.onOpenFocus):a.onOpenFocus,at=angular.isDefined(i.datepickerPopupTemplateUrl)?i.datepickerPopupTemplateUrl:a.datepickerPopupTemplateUrl,vt=angular.isDefined(i.datepickerTemplateUrl)?i.datepickerTemplateUrl:a.datepickerTemplateUrl,ot=angular.isDefined(i.altInputFormats)?n.$parent.$eval(i.altInputFormats):a.altInputFormats,n.showButtonBar=angular.isDefined(i.showButtonBar)?n.$parent.$eval(i.showButtonBar):a.showButtonBar,a.html5Types[i.type]?(b=a.html5Types[i.type],rt=!0):(b=i.uibDatepickerPopup||a.datepickerPopup,i.$observe("uibDatepickerPopup",function(n){var t=n||a.datepickerPopup;if(t!==b&&(b=t,w.$modelValue=null,!b))throw new Error("uibDatepickerPopup must have a date format specified.");})),!b)throw new Error("uibDatepickerPopup must have a date format specified.");if(rt&&i.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");tt=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker><\/div><\/div>");tt.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":at});et=angular.element(tt.children()[0]);et.attr("template-url",vt);n.datepickerOptions||(n.datepickerOptions={});rt&&"month"===i.type&&(n.datepickerOptions.datepickerMode="month",n.datepickerOptions.minMode="month");et.attr("datepicker-options","datepickerOptions");rt?w.$formatters.push(function(t){return n.date=l.fromTimezone(t,g.getOption("timezone")),t}):(w.$$parserName="date",w.$validators.date=pt,w.$parsers.unshift(yt),w.$formatters.push(function(t){return w.$isEmpty(t)?(n.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),n.date=l.fromTimezone(t,g.getOption("timezone")),l.filter(n.date,b))}));w.$viewChangeListeners.push(function(){n.date=ut(w.$viewValue)});t.on("keydown",ht);nt=r(tt)(n);tt.remove();it?o.find("body").append(nt):t.after(nt);n.$on("$destroy",function(){for(n.isOpen===!0&&(s.$$phase||n.$apply(function(){n.isOpen=!1})),nt.remove(),t.off("keydown",ht),o.off("click",ft),k&&k.off("scroll",d),angular.element(e).off("resize",d);st.length;)st.shift()()})};n.getText=function(t){return n[t+"Text"]||a[t+"Text"]};n.isDisabled=function(t){"today"===t&&(t=l.fromTimezone(new Date,g.getOption("timezone")));var i={};return angular.forEach(["minDate","maxDate"],function(t){n.datepickerOptions[t]?angular.isDate(n.datepickerOptions[t])?i[t]=new Date(n.datepickerOptions[t]):(p&&u.warn("Literal date support has been deprecated, please switch to date object usage"),i[t]=new Date(c(n.datepickerOptions[t],"medium"))):i[t]=null}),n.datepickerOptions&&i.minDate&&n.compare(t,i.minDate)<0||i.maxDate&&n.compare(t,i.maxDate)>0};n.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};n.dateSelection=function(i){n.date=i;var r=n.date?l.filter(n.date,b):null;t.val(r);w.$setViewValue(r);ct&&(n.isOpen=!1,t[0].focus())};n.keydown=function(i){27===i.which&&(i.stopPropagation(),n.isOpen=!1,t[0].focus())};n.select=function(t,i){if(i.stopPropagation(),"today"===t){var r=new Date;angular.isDate(n.date)?(t=new Date(n.date),t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate())):(t=l.fromTimezone(r,g.getOption("timezone")),t.setHours(0,0,0,0))}n.dateSelection(t)};n.close=function(i){i.stopPropagation();n.isOpen=!1;t[0].focus()};n.disabled=angular.isDefined(i.disabled)||!1;i.ngDisabled&&st.push(n.$parent.$watch(f(i.ngDisabled),function(t){n.disabled=t}));n.$watch("isOpen",function(r){r?n.disabled?n.isOpen=!1:v(function(){d();lt&&n.$broadcast("uib:datepicker.focus");o.on("click",ft);var r=i.popupPlacement?i.popupPlacement:a.placement;it||h.parsePlacement(r)[2]?(k=k||angular.element(h.scrollParent(t)),k&&k.on("scroll",d)):k=null;angular.element(e).on("resize",d)},0,!1):(o.off("click",ft),k&&k.off("scroll",d),angular.element(e).off("resize",d))});n.$on("uib:datepicker.mode",function(){v(d,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}});angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(n){return function(t,i){var r;return function(){var u=this,f=Array.prototype.slice.call(arguments);r&&n.cancel(r);r=n(function(){t.apply(u,f)},i)}}}]);angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",function(){return{createNew:function(){var n={};return{entries:function(){return Object.keys(n).map(function(t){return{key:t,value:n[t]}})},get:function(t){return n[t]},hasKey:function(t){return!!n[t]},keys:function(){return Object.keys(n)},put:function(t,i){n[t]||(n[t]=[]);n[t].push(i)},remove:function(t,i){var r=n[t],u;r&&(u=r.indexOf(i),-1!==u&&r.splice(u,1),r.length||delete n[t])}}}}});angular.module("ui.bootstrap.dropdown",["ui.bootstrap.multiMap","ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope","$$multiMap",function(n,t,i){var r=null,u=i.createNew(),f;this.isOnlyOpen=function(n,t){var i=u.get(t),r;return i&&(r=i.reduce(function(t,i){return i.scope===n?i:t},{}),r)?1===i.length:!1};this.open=function(t,i,e){var o,s;(r||n.on("click",f),r&&r!==t&&(r.isOpen=!1),r=t,e)&&(o=u.get(e),o?(s=o.map(function(n){return n.scope}),-1===s.indexOf(t)&&u.put(e,{scope:t})):u.put(e,{scope:t}))};this.close=function(t,i,e){var o,s;(r===t&&(n.off("click",f),n.off("keydown",this.keybindFilter),r=null),e)&&(o=u.get(e),o&&(s=o.reduce(function(n,i){return i.scope===t?i:n},{}),s&&u.remove(e,s)))};f=function(n){var i,u;!r||!r.isOpen||n&&"disabled"===r.getAutoClose()||n&&3===n.which||(i=r.getToggleElement(),n&&i&&i[0].contains(n.target)||(u=r.getDropdownElement(),n&&"outsideClick"===r.getAutoClose()&&u&&u[0].contains(n.target)||(r.focusToggleElement(),r.isOpen=!1,t.$$phase||r.$apply())))};this.keybindFilter=function(n){if(r){var t=r.getDropdownElement(),i=r.getToggleElement(),u=t&&t[0].contains(n.target),e=i&&i[0].contains(n.target);27===n.which?(n.stopPropagation(),r.focusToggleElement(),f()):r.isKeynavEnabled()&&-1!==[38,40].indexOf(n.which)&&r.isOpen&&(u||e)&&(n.preventDefault(),n.stopPropagation(),r.focusDropdownEntry(n.which))}}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(n,t,i,r,u,f,e,o,s,h,c){function p(){t.append(l.dropdownMenu)}var y,w,l=this,a=n.$new(),k=u.appendToOpenClass,d=u.openClass,v=angular.noop,g=i.onToggle?r(i.onToggle):angular.noop,b=!1,nt=s.find("body");t.addClass("dropdown");this.init=function(){i.isOpen&&(w=r(i.isOpen),v=w.assign,n.$watch(w,function(n){a.isOpen=!!n}));b=angular.isDefined(i.keyboardNav)};this.toggle=function(n){return a.isOpen=arguments.length?!!n:!a.isOpen,angular.isFunction(v)&&v(a,a.isOpen),a.isOpen};this.isOpen=function(){return a.isOpen};a.getToggleElement=function(){return l.toggleElement};a.getAutoClose=function(){return i.autoClose||"always"};a.getElement=function(){return t};a.isKeynavEnabled=function(){return b};a.focusDropdownEntry=function(n){var i=l.dropdownMenu?angular.element(l.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(n){case 40:l.selectedOption=angular.isNumber(l.selectedOption)?l.selectedOption===i.length-1?l.selectedOption:l.selectedOption+1:0;break;case 38:l.selectedOption=angular.isNumber(l.selectedOption)?0===l.selectedOption?0:l.selectedOption-1:i.length-1}i[l.selectedOption].focus()};a.getDropdownElement=function(){return l.dropdownMenu};a.focusToggleElement=function(){l.toggleElement&&l.toggleElement[0].focus()};a.$watch("isOpen",function(u,w){var b=null,ft=!1,et,ct,tt,ot,rt,it,st,ut,vt,ht;angular.isDefined(i.dropdownAppendTo)&&(et=r(i.dropdownAppendTo)(a),et&&(b=angular.element(et)));angular.isDefined(i.dropdownAppendToBody)&&(ct=r(i.dropdownAppendToBody)(a),ct!==!1&&(ft=!0));(ft&&!b&&(b=nt),b&&l.dropdownMenu&&(u?(b.append(l.dropdownMenu),t.on("$destroy",p)):(t.off("$destroy",p),p())),b&&l.dropdownMenu)&&(it=o.positionElements(t,l.dropdownMenu,"bottom-left",!0),st=0,(tt={top:it.top+"px",display:u?"block":"none"},ot=l.dropdownMenu.hasClass("dropdown-menu-right"),ot?(tt.left="auto",rt=o.scrollbarPadding(b),rt.heightOverflow&&rt.scrollbarWidth&&(st=rt.scrollbarWidth),tt.right=window.innerWidth-st-(it.left+t.prop("offsetWidth"))+"px"):(tt.left=it.left+"px",tt.right="auto"),ft)||(ut=o.offset(b),tt.top=it.top-ut.top+"px",ot?tt.right=window.innerWidth-(it.left-ut.left+t.prop("offsetWidth"))+"px":tt.left=it.left-ut.left+"px"),l.dropdownMenu.css(tt));var lt=b?b:t,at=b?k:d,yt=lt.hasClass(at),pt=f.isOnlyOpen(n,b);yt===!u&&(vt=b?pt?"removeClass":"addClass":u?"addClass":"removeClass",e[vt](lt,at).then(function(){angular.isDefined(u)&&u!==w&&g(n,{open:!!u})}));u?(l.dropdownMenuTemplateUrl?c(l.dropdownMenuTemplateUrl).then(function(n){y=a.$new();h(n.trim())(y,function(n){var t=n;l.dropdownMenu.replaceWith(t);l.dropdownMenu=t;s.on("keydown",f.keybindFilter)})}):s.on("keydown",f.keybindFilter),a.focusToggleElement(),f.open(a,t,b)):((f.close(a,t,b),l.dropdownMenuTemplateUrl)&&(y&&y.$destroy(),ht=angular.element('<ul class="dropdown-menu"><\/ul>'),l.dropdownMenu.replaceWith(ht),l.dropdownMenu=ht),l.selectedOption=null);angular.isFunction(v)&&v(n,u)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(n,t,i,r){r.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(n,t,i,r){if(r&&!angular.isDefined(i.dropdownNested)){t.addClass("dropdown-menu");var u=i.templateUrl;u&&(r.dropdownMenuTemplateUrl=u);r.dropdownMenu||(r.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(n,t,i,r){if(r){t.addClass("dropdown-toggle");r.toggleElement=t;var u=function(u){u.preventDefault();t.hasClass("disabled")||i.disabled||n.$apply(function(){r.toggle()})};t.on("click",u);t.attr({"aria-haspopup":!0,"aria-expanded":!1});n.$watch(r.isOpen,function(n){t.attr("aria-expanded",!!n)});n.$on("$destroy",function(){t.off("click",u)})}}}});angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var n=[];return{add:function(t,i){n.push({key:t,value:i})},get:function(t){for(var i=0;i<n.length;i++)if(t===n[i].key)return n[i]},keys:function(){for(var i=[],t=0;t<n.length;t++)i.push(n[t].key);return i},top:function(){return n[n.length-1]},remove:function(t){for(var r=-1,i=0;i<n.length;i++)if(t===n[i].key){r=i;break}return n.splice(r,1)[0]},removeTop:function(){return n.pop()},length:function(){return n.length}}}}});angular.module("ui.bootstrap.modal",["ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position"]).provider("$uibResolve",function(){var n=this;this.resolver=null;this.setResolver=function(n){this.resolver=n};this.$get=["$injector","$q",function(t,i){var r=n.resolver?t.get(n.resolver):null;return{resolve:function(n,u,f,e){if(r)return r.resolve(n,u,f,e);var o=[];return angular.forEach(n,function(n){angular.isFunction(n)||angular.isArray(n)?o.push(i.resolve(t.invoke(n))):angular.isString(n)?o.push(i.resolve(t.get(n))):o.push(i.resolve(n))}),i.all(o).then(function(t){var i={},r=0;return angular.forEach(n,function(n,u){i[u]=t[r++]}),i})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(n,t,i){function r(t,r,u){u.modalInClass&&(n.addClass(r,u.modalInClass),t.$on(i.NOW_CLOSING_EVENT,function(i,f){var e=f();t.modalOptions.animation?n.removeClass(r,u.modalInClass).then(e):e()}))}return{restrict:"A",compile:function(n,t){return n.addClass(t.backdropClass),r}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(n,t,i,r){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(u,f,e){f.addClass(e.windowTopClass||"");u.size=e.size;u.close=function(t){var i=n.getTop();i&&i.value.backdrop&&"static"!==i.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))};f.on("click",u.close);u.$isRendered=!0;var o=t.defer();u.$$postDigest(function(){o.resolve()});o.promise.then(function(){var o=null;e.modalInClass&&(o=i(f,{addClass:e.modalInClass}).start(),u.$on(n.NOW_CLOSING_EVENT,function(n,t){var r=t();i(f,{removeClass:e.modalInClass}).start().then(r)}));t.when(o).then(function(){var i=n.getTop(),t;(i&&n.modalRendered(i.key),r[0].activeElement&&f[0].contains(r[0].activeElement))||(t=f[0].querySelector("[autofocus]"),t?t.focus():f[0].focus())})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(n,t){t.modalAnimation&&n.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(n){return{link:function(t,i,r,u,f){f(t.$parent,function(t){i.empty();n.enter(t,i)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(n,t,i,r,u,f,e,o,s){function ft(n){var t="-";return n.replace(ht,function(n,i){return(i?t:"")+n.toLowerCase()})}function et(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}function b(){for(var n=-1,i=c.keys(),t=0;t<i.length;t++)c.get(i[t]).value.backdrop&&(n=t);return n>-1&&y>n&&(n=y),n}function d(n,t){var i=c.get(n).value,r=i.appendTo;c.remove(n);p=c.top();p&&(y=parseInt(p.value.modalDomEl.attr("index"),10));nt(i.modalDomEl,i.modalScope,function(){var t=i.openedClass||ut,u;k.remove(t,n);u=k.hasKey(t);r.toggleClass(t,u);!u&&a&&a.heightOverflow&&a.scrollbarWidth&&(a.originalRight?r.css({paddingRight:a.originalRight+"px"}):r.css({paddingRight:""}),a=null);g(!0)},i.closedDeferred);ot();t&&t.focus?t.focus():r.focus&&r.focus()}function g(n){var t;c.length()>0&&(t=c.top().value,t.modalDomEl.toggleClass(t.windowTopClass||"",n))}function ot(){if(l&&-1===b()){var n=v;nt(l,v,function(){n=null});l=void 0;v=void 0}}function nt(t,i,r,u){function o(){o.done||(o.done=!0,n.leave(t).then(function(){r&&r();t.remove();u&&u.resolve()}),i.$destroy())}var e,s=null,c=function(){return e||(e=f.defer(),s=e.promise),function(){e.resolve()}};return i.$broadcast(h.NOW_CLOSING_EVENT,c),f.when(s).then(o)}function tt(n){var t,i,r;if(n.isDefaultPrevented())return n;if(t=c.top(),t)switch(n.which){case 27:t.value.keyboard&&(n.preventDefault(),u.$apply(function(){h.dismiss(t.key,"escape key press")}));break;case 9:i=h.loadFocusElementList(t);r=!1;n.shiftKey?(h.isFocusInFirstItem(n,i)||h.isModalFocused(n,t))&&(r=h.focusLastFocusableElement(i)):h.isFocusInLastItem(n,i)&&(r=h.focusFirstFocusableElement(i));r&&(n.preventDefault(),n.stopPropagation())}}function it(n,t,i){return!n.value.modalScope.$broadcast("modal.closing",t,i).defaultPrevented}function rt(){Array.prototype.forEach.call(document.querySelectorAll("["+w+"]"),function(n){var i=parseInt(n.getAttribute(w),10),t=i-1;n.setAttribute(w,t);t||(n.removeAttribute(w),n.removeAttribute("aria-hidden"))})}var l,v,a,ut="modal-open",c=o.createNew(),k=e.createNew(),h={NOW_CLOSING_EVENT:"modal.stack.now-closing"},y=0,p=null,w="data-bootstrap-modal-aria-hidden-count",st="a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]",ht=/[A-Z]/g;return u.$watch(b,function(n){v&&(v.index=n)}),i.on("keydown",tt),u.$on("$destroy",function(){i.off("keydown",tt)}),h.open=function(t,f){function nt(n){function t(n){var t=n.parent()?n.parent().children():[];return Array.prototype.filter.call(t,function(t){return t!==n[0]})}if(n&&"BODY"!==n[0].tagName)return t(n).forEach(function(n){var i="true"===n.getAttribute("aria-hidden"),t=parseInt(n.getAttribute(w),10);t||(t=i?1:0);n.setAttribute(w,t+1);n.setAttribute("aria-hidden","true")}),nt(n.parent())}var it=i[0].activeElement,tt=f.openedClass||ut,e,d,h,o;g(!1);p=c.top();c.add(t,{deferred:f.deferred,renderDeferred:f.renderDeferred,closedDeferred:f.closedDeferred,modalScope:f.scope,backdrop:f.backdrop,keyboard:f.keyboard,openedClass:f.openedClass,windowTopClass:f.windowTopClass,animation:f.animation,appendTo:f.appendTo});k.put(tt,t);e=f.appendTo;d=b();d>=0&&!l&&(v=u.$new(!0),v.modalOptions=f,v.index=d,l=angular.element('<div uib-modal-backdrop="modal-backdrop"><\/div>'),l.attr({"class":"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),f.backdropClass&&l.addClass(f.backdropClass),f.animation&&l.attr("modal-animation","true"),r(l)(v),n.enter(l,e),s.isScrollable(e)&&(a=s.scrollbarPadding(e),a.heightOverflow&&a.scrollbarWidth&&e.css({paddingRight:a.right+"px"})));f.component?(h=document.createElement(ft(f.component.name)),h=angular.element(h),h.attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):h=f.content;y=p?parseInt(p.value.modalDomEl.attr("index"),10)+1:0;o=angular.element('<div uib-modal-window="modal-window"><\/div>');o.attr({"class":"modal","template-url":f.windowTemplateUrl,"window-top-class":f.windowTopClass,role:"dialog","aria-labelledby":f.ariaLabelledBy,"aria-describedby":f.ariaDescribedBy,size:f.size,index:y,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(h);f.windowClass&&o.addClass(f.windowClass);f.animation&&o.attr("modal-animation","true");e.addClass(tt);f.scope&&(f.scope.$$topModalIndex=y);n.enter(r(o)(f.scope),e);c.top().value.modalDomEl=o;c.top().value.modalOpener=it;nt(o)},h.close=function(n,t){var i=c.get(n);return rt(),i&&it(i,t,!0)?(i.value.modalScope.$$uibDestructionScheduled=!0,i.value.deferred.resolve(t),d(n,i.value.modalOpener),!0):!i},h.dismiss=function(n,t){var i=c.get(n);return rt(),i&&it(i,t,!1)?(i.value.modalScope.$$uibDestructionScheduled=!0,i.value.deferred.reject(t),d(n,i.value.modalOpener),!0):!i},h.dismissAll=function(n){for(var t=this.getTop();t&&this.dismiss(t.key,n);)t=this.getTop()},h.getTop=function(){return c.top()},h.modalRendered=function(n){var t=c.get(n);t&&t.value.renderDeferred.resolve()},h.focusFirstFocusableElement=function(n){return n.length>0?(n[0].focus(),!0):!1},h.focusLastFocusableElement=function(n){return n.length>0?(n[n.length-1].focus(),!0):!1},h.isModalFocused=function(n,t){if(n&&t){var i=t.value.modalDomEl;if(i&&i.length)return(n.target||n.srcElement)===i[0]}return!1},h.isFocusInFirstItem=function(n,t){return t.length>0?(n.target||n.srcElement)===t[0]:!1},h.isFocusInLastItem=function(n,t){return t.length>0?(n.target||n.srcElement)===t[t.length-1]:!1},h.loadFocusElementList=function(n){var t,i;if(n&&(t=n.value.modalDomEl,t&&t.length))return i=t[0].querySelectorAll(st),i?Array.prototype.filter.call(i,function(n){return et(n)}):i},h}]).provider("$uibModal",function(){var n={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,i,r,u,f,e,o){function c(n){return n.template?i.when(n.template):u(angular.isFunction(n.templateUrl)?n.templateUrl():n.templateUrl)}var h={},s=null;return h.getPromiseChain=function(){return s},h.open=function(u){function v(){return w}var l=i.defer(),a=i.defer(),y=i.defer(),p=i.defer(),h={result:l.promise,opened:a.promise,closed:y.promise,rendered:p.promise,close:function(n){return o.close(h,n)},dismiss:function(n){return o.dismiss(h,n)}},w,b;if(u=angular.extend({},n.options,u),u.resolve=u.resolve||{},u.appendTo=u.appendTo||r.find("body").eq(0),!u.appendTo.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");if(!u.component&&!u.template&&!u.templateUrl)throw new Error("One of component or template or templateUrl options is required.");return w=u.component?i.when(e.resolve(u.resolve,{},null,null)):i.all([c(u),e.resolve(u.resolve,{},null,null)]),b=s=i.all([s]).then(v,v).then(function(n){function w(t,r,u,f){t.$scope=i;t.$scope.$resolve={};u?t.$scope.$uibModalInstance=h:t.$uibModalInstance=h;var e=r?n[1]:n;angular.forEach(e,function(n,i){f&&(t[i]=n);t.$scope.$resolve[i]=n})}var b=u.scope||t,i=b.$new();i.$close=h.close;i.$dismiss=h.dismiss;i.$on("$destroy",function(){i.$$uibDestructionScheduled||i.$dismiss("$uibUnscheduledDestruction")});var r,e,s={scope:i,deferred:l,renderDeferred:p,closedDeferred:y,animation:u.animation,backdrop:u.backdrop,keyboard:u.keyboard,backdropClass:u.backdropClass,windowTopClass:u.windowTopClass,windowClass:u.windowClass,windowTemplateUrl:u.windowTemplateUrl,ariaLabelledBy:u.ariaLabelledBy,ariaDescribedBy:u.ariaDescribedBy,size:u.size,openedClass:u.openedClass,appendTo:u.appendTo},c={},v={};u.component?(w(c,!1,!0,!1),c.name=u.component,s.component=c):u.controller&&(w(v,!0,!1,!0),e=f(u.controller,v,!0,u.controllerAs),u.controllerAs&&u.bindToController&&(r=e.instance,r.$close=i.$close,r.$dismiss=i.$dismiss,angular.extend(r,{$resolve:v.$scope.$resolve},b)),r=e(),angular.isFunction(r.$onInit)&&r.$onInit());u.component||(s.content=n[0]);o.open(h,s);a.resolve(!0)},function(n){a.reject(n);l.reject(n)})["finally"](function(){s===b&&(s=null)}),h},h}]};return n});angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(n){return{create:function(t,i,r){t.setNumPages=r.numPages?n(r.numPages).assign:angular.noop;t.ngModelCtrl={$setViewValue:angular.noop};t._watchers=[];t.init=function(n,u){t.ngModelCtrl=n;t.config=u;n.$render=function(){t.render()};r.itemsPerPage?t._watchers.push(i.$parent.$watch(r.itemsPerPage,function(n){t.itemsPerPage=parseInt(n,10);i.totalPages=t.calculateTotalPages();t.updatePage()})):t.itemsPerPage=u.itemsPerPage;i.$watch("totalItems",function(n,r){(angular.isDefined(n)||n!==r)&&(i.totalPages=t.calculateTotalPages(),t.updatePage())})};t.calculateTotalPages=function(){var n=t.itemsPerPage<1?1:Math.ceil(i.totalItems/t.itemsPerPage);return Math.max(n||0,1)};t.render=function(){i.page=parseInt(t.ngModelCtrl.$viewValue,10)||1};i.selectPage=function(n,r){r&&r.preventDefault();var u=!i.ngDisabled||!r;u&&i.page!==n&&n>0&&n<=i.totalPages&&(r&&r.target&&r.target.blur(),t.ngModelCtrl.$setViewValue(n),t.ngModelCtrl.$render())};i.getText=function(n){return i[n+"Text"]||t.config[n+"Text"]};i.noPrevious=function(){return 1===i.page};i.noNext=function(){return i.page===i.totalPages};t.updatePage=function(){t.setNumPages(i.$parent,i.totalPages);i.page>i.totalPages?i.selectPage(i.totalPages):t.ngModelCtrl.$render()};i.$on("$destroy",function(){for(;t._watchers.length;)t._watchers.shift()()})}}}]);angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(n,t,i,r){n.align=angular.isDefined(t.align)?n.$parent.$eval(t.align):r.align;i.create(this,n,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(n){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(n,t){return t.templateUrl||"uib/template/pager/pager.html"},link:function(t,i,r,u){i.addClass("pager");var e=u[0],f=u[1];f&&e.init(f,n)}}}]);angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(n,t,i,r,u){function e(n,t,i){return{number:n,text:t,active:i}}function l(n,t){var u=[],i=1,r=t,c=angular.isDefined(f)&&t>f,s,l,y,p,w,b,k,d;for(c&&(h?(i=Math.max(n-Math.floor(f/2),1),r=i+f-1,r>t&&(r=t,i=r-f+1)):(i=(Math.ceil(n/f)-1)*f+1,r=Math.min(i+f-1,t))),s=i;r>=s;s++)l=e(s,v(s),s===n),u.push(l);return c&&f>0&&(!h||a||o)&&(i>1&&((!o||i>3)&&(y=e(i-1,"...",!1),u.unshift(y)),o&&(3===i&&(p=e(2,"2",!1),u.unshift(p)),w=e(1,"1",!1),u.unshift(w))),t>r&&((!o||t-2>r)&&(b=e(r+1,"...",!1),u.push(b)),o&&(r===t-2&&(k=e(t-1,t-1,!1),u.push(k)),d=e(t,t,!1),u.push(d)))),u}var s=this,f=angular.isDefined(t.maxSize)?n.$parent.$eval(t.maxSize):u.maxSize,h=angular.isDefined(t.rotate)?n.$parent.$eval(t.rotate):u.rotate,a=angular.isDefined(t.forceEllipses)?n.$parent.$eval(t.forceEllipses):u.forceEllipses,o=angular.isDefined(t.boundaryLinkNumbers)?n.$parent.$eval(t.boundaryLinkNumbers):u.boundaryLinkNumbers,v=angular.isDefined(t.pageLabel)?function(i){return n.$parent.$eval(t.pageLabel,{$page:i})}:angular.identity,c;n.boundaryLinks=angular.isDefined(t.boundaryLinks)?n.$parent.$eval(t.boundaryLinks):u.boundaryLinks;n.directionLinks=angular.isDefined(t.directionLinks)?n.$parent.$eval(t.directionLinks):u.directionLinks;t.$set("role","menu");r.create(this,n,t);t.maxSize&&s._watchers.push(n.$parent.$watch(i(t.maxSize),function(n){f=parseInt(n,10);s.render()}));c=this.render;this.render=function(){c();n.page>0&&n.page<=n.totalPages&&(n.pages=l(n.page,n.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(n,t){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(n,t){return t.templateUrl||"uib/template/pagination/pagination.html"},link:function(n,i,r,u){i.addClass("pagination");var e=u[0],f=u[1];f&&e.init(f,t)}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function i(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var r={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},n={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(u,f,e,o,s,h,c,l,a){function y(n){if(27===n.which){var t=v.top();t&&(t.value.close(),t=null)}}var v=a.createNew();return o.on("keyup",y),c.$on("$destroy",function(){o.off("keyup",y)}),function(u,c,a,y){function p(t){var i=(t||y.trigger||a).split(" "),r=i.map(function(t){return n[t]||t});return{show:i,hide:r}}y=angular.extend({},r,t,y);var k=i(u),w=h.startSymbol(),b=h.endSymbol(),d="<div "+k+'-popup uib-title="'+w+"title"+b+'" '+(y.useContentExp?'content-exp="contentExp()" ':'content="'+w+"content"+b+'" ')+'origin-scope="origScope" class="uib-position-measure '+c+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ><\/div>';return{compile:function(){var n=f(d);return function(t,i,r){function g(){f.isOpen?nt():at()}function at(){oi&&!t.$eval(r[c+"Enable"])||(vt(),ri(),f.popupDelay?it||(it=e(dt,f.popupDelay,!1)):dt())}function nt(){st();f.popupCloseDelay?rt||(rt=e(k,f.popupCloseDelay,!1)):k()}function dt(){return st(),vt(),f.content?(ii(),void f.$evalAsync(function(){f.isOpen=!0;gt(!0);ot()})):angular.noop}function st(){it&&(e.cancel(it),it=null);d&&(e.cancel(d),d=null)}function k(){f&&f.$evalAsync(function(){f&&(f.isOpen=!1,gt(!1),f.animation?tt||(tt=e(yt,150,!1)):yt())})}function vt(){rt&&(e.cancel(rt),rt=null);tt&&(e.cancel(tt),tt=null)}function ii(){h||(b=f.$new(),h=n(b,function(n){ft?o.find("body").append(n):i.after(n)}),v.add(f,{close:k}),ui())}function yt(){st();vt();fi();h&&(h.remove(),h=null,ht&&e.cancel(ht));v.remove(f);b&&(b.$destroy(),b=null)}function ri(){var n,i,e;f.title=r[c+"Title"];f.content=ct?ct(t):r[u];f.popupClass=r[c+"Class"];f.placement=angular.isDefined(r[c+"Placement"])?r[c+"Placement"]:y.placement;n=s.parsePlacement(f.placement);ut=n[1]?n[0]+"-"+n[1]:n[0];i=parseInt(r[c+"PopupDelay"],10);e=parseInt(r[c+"PopupCloseDelay"],10);f.popupDelay=isNaN(i)?y.popupDelay:i;f.popupCloseDelay=isNaN(e)?y.popupCloseDelay:e}function gt(n){et&&angular.isFunction(et.assign)&&et.assign(t,n)}function ui(){a.length=0;ct?(a.push(t.$watch(ct,function(n){f.content=n;!n&&f.isOpen&&k()})),a.push(b.$watch(function(){pt||(pt=!0,b.$$postDigest(function(){pt=!1;f&&f.isOpen&&ot()}))}))):a.push(r.$observe(u,function(n){f.content=n;!n&&f.isOpen?k():ot()}));a.push(r.$observe(c+"Title",function(n){f.title=n;f.isOpen&&ot()}));a.push(r.$observe(c+"Placement",function(n){f.placement=n?n:y.placement;f.isOpen&&ot()}))}function fi(){a.length&&(angular.forEach(a,function(n){n()}),a.length=0)}function ni(n){f&&f.isOpen&&h&&(i[0].contains(n.target)||h[0].contains(n.target)||nt())}function ti(n){27===n.which&&nt()}function ei(){var u=[],f=[],n=t.$eval(r[c+"Trigger"]);wt();angular.isObject(n)?(Object.keys(n).forEach(function(t){u.push(t);f.push(n[t])}),w={show:u,hide:f}):w=p(n);"none"!==w.show&&w.show.forEach(function(n,t){"outsideClick"===n?(i.on("click",g),o.on("click",ni)):n===w.hide[t]?i.on(n,g):n&&(i.on(n,at),i.on(w.hide[t],nt));i.on("keypress",ti)})}var h,b,tt,it,rt,d,ht,ut,ft=angular.isDefined(y.appendToBody)?y.appendToBody:!1,w=p(void 0),oi=angular.isDefined(r[c+"Enable"]),f=t.$new(!0),pt=!1,et=angular.isDefined(r[c+"IsOpen"])?l(r[c+"IsOpen"]):!1,ct=y.useContentExp?l(r[u]):!1,a=[],ot=function(){h&&h.html()&&(d||(d=e(function(){var n=s.positionElements(i,h,f.placement,ft),r=angular.isDefined(h.offsetHeight)?h.offsetHeight:h.prop("offsetHeight"),u=ft?s.offset(i):s.position(i),t;h.css({top:n.top+"px",left:n.left+"px"});t=n.placement.split("-");h.hasClass(t[0])||(h.removeClass(ut.split("-")[0]),h.addClass(t[0]));h.hasClass(y.placementClassPrefix+n.placement)||(h.removeClass(y.placementClassPrefix+ut),h.addClass(y.placementClassPrefix+n.placement));ht=e(function(){var i=angular.isDefined(h.offsetHeight)?h.offsetHeight:h.prop("offsetHeight"),n=s.adjustTop(t,u,r,i);n&&h.css(n);ht=null},0,!1);h.hasClass("uib-position-measure")?(s.positionArrow(h,n.placement),h.removeClass("uib-position-measure")):ut!==n.placement&&s.positionArrow(h,n.placement);ut=n.placement;d=null},0,!1)))},wt,bt,kt,lt;f.origScope=t;f.isOpen=!1;f.contentExp=function(){return f.content};r.$observe("disabled",function(n){n&&st();n&&f.isOpen&&k()});et&&t.$watch(et,function(n){f&&!n===f.isOpen&&g()});wt=function(){w.show.forEach(function(n){"outsideClick"===n?i.off("click",g):(i.off(n,at),i.off(n,g));i.off("keypress",ti)});w.hide.forEach(function(n){"outsideClick"===n?o.off("click",ni):i.off(n,nt)})};ei();bt=t.$eval(r[c+"Animation"]);f.animation=angular.isDefined(bt)?!!bt:y.animation;lt=c+"AppendToBody";kt=lt in r&&void 0===r[lt]?!0:t.$eval(r[lt]);ft=angular.isDefined(kt)?kt:ft;t.$on("$destroy",function(){wt();yt();f=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(n,t,i,r){return{link:function(u,f,e){var o,s,h,a=u.$eval(e.tooltipTemplateTranscludeScope),l=0,c=function(){s&&(s.remove(),s=null);o&&(o.$destroy(),o=null);h&&(n.leave(h).then(function(){s=null}),s=h,h=null)};u.$watch(t.parseAsResourceUrl(e.uibTooltipTemplateTransclude),function(t){var e=++l;t?(r(t,!0).then(function(r){if(e===l){var u=a.$new(),s=r,v=i(s)(u,function(t){c();n.enter(t,f)});o=u;h=v;o.$emit("$includeContentLoaded",t)}},function(){e===l&&(c(),u.$emit("$includeContentError",t))}),u.$emit("$includeContentRequested",t)):c()});u.$on("$destroy",c)}}}]).directive("uibTooltipClasses",["$uibPosition",function(n){return{restrict:"A",link:function(t,i,r){if(t.placement){var u=n.parsePlacement(t.placement);i.addClass(u[0])}t.popupClass&&i.addClass(t.popupClass);t.animation&&i.addClass(r.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(n){return n("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(n){return n("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(n){return n("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(n){return n("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(n){return n("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(n){return n("uibPopover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(n,t,i){function r(){return angular.isDefined(n.maxParam)?n.maxParam:i.max}var u=this,f=angular.isDefined(t.animate)?n.$parent.$eval(t.animate):i.animate;this.bars=[];n.max=r();this.addBar=function(n,t,i){f||t.css({transition:"none"});this.bars.push(n);n.max=r();n.title=i&&angular.isDefined(i.title)?i.title:"progressbar";n.$watch("value",function(){n.recalculatePercentage()});n.recalculatePercentage=function(){var t=u.bars.reduce(function(n,t){return t.percent=+(100*t.value/t.max).toFixed(2),n+t.percent},0);t>100&&(n.percent-=t-100)};n.$on("$destroy",function(){t=null;u.removeBar(n)})};this.removeBar=function(n){this.bars.splice(this.bars.indexOf(n),1);this.bars.forEach(function(n){n.recalculatePercentage()})};n.$watch("maxParam",function(){u.bars.forEach(function(n){n.max=r();n.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(n,t,i,r){r.addBar(n,t,i)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(n,t,i,r){r.addBar(n,angular.element(t.children()[0]),{title:i.title})}}});angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(n,t,i){var r={$setViewValue:angular.noop},u=this;this.init=function(u){var f,e;r=u;r.$render=this.render;r.$formatters.push(function(n){return angular.isNumber(n)&&n<<0!==n&&(n=Math.round(n)),n});this.stateOn=angular.isDefined(t.stateOn)?n.$parent.$eval(t.stateOn):i.stateOn;this.stateOff=angular.isDefined(t.stateOff)?n.$parent.$eval(t.stateOff):i.stateOff;this.enableReset=angular.isDefined(t.enableReset)?n.$parent.$eval(t.enableReset):i.enableReset;f=angular.isDefined(t.titles)?n.$parent.$eval(t.titles):i.titles;this.titles=angular.isArray(f)&&f.length>0?f:i.titles;e=angular.isDefined(t.ratingStates)?n.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max);n.range=this.buildTemplateObjects(e)};this.buildTemplateObjects=function(n){for(var t=0,i=n.length;i>t;t++)n[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},n[t]);return n};this.getTitle=function(n){return n>=this.titles.length?n+1:this.titles[n]};n.rate=function(t){if(!n.readonly&&t>=0&&t<=n.range.length){var i=u.enableReset&&r.$viewValue===t?0:t;r.$setViewValue(i);r.$render()}};n.enter=function(t){n.readonly||(n.value=t);n.onHover({value:t})};n.reset=function(){n.value=r.$viewValue;n.onLeave()};n.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),n.rate(n.value+(38===t.which||39===t.which?1:-1)))};this.render=function(){n.value=r.$viewValue;n.title=u.getTitle(n.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(n,t,i,r){var u=r[0],f=r[1];u.init(f)}}});angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(n){function r(n){for(var i=0;i<t.tabs.length;i++)if(t.tabs[i].index===n)return i}var i,t=this,u;t.tabs=[];t.select=function(n,f){var s,o,e;if(!u){if(s=r(i),o=t.tabs[s],o){if(o.tab.onDeselect({$event:f,$selectedIndex:n}),f&&f.isDefaultPrevented())return;o.tab.active=!1}e=t.tabs[n];e?(e.tab.onSelect({$event:f}),e.tab.active=!0,t.active=e.index,i=e.index):!e&&angular.isDefined(i)&&(t.active=null,i=null)}};t.addTab=function(n){if(t.tabs.push({tab:n,index:n.index}),t.tabs.sort(function(n,t){return n.index>t.index?1:n.index<t.index?-1:0}),n.index===t.active||!angular.isDefined(t.active)&&1===t.tabs.length){var i=r(n.index);t.select(i)}};t.removeTab=function(n){for(var i,u,r=0;r<t.tabs.length;r++)if(t.tabs[r].tab===n){i=r;break}t.tabs[i].index===t.active&&(u=i===t.tabs.length-1?i-1:i+1%t.tabs.length,t.select(u));t.tabs.splice(i,1)};n.$watch("tabset.active",function(n){angular.isDefined(n)&&n!==i&&t.select(r(n))});n.$on("$destroy",function(){u=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(n,t){return t.templateUrl||"uib/template/tabs/tabset.html"},link:function(n,t,i){n.vertical=angular.isDefined(i.vertical)?n.$parent.$eval(i.vertical):!1;n.justified=angular.isDefined(i.justified)?n.$parent.$eval(i.justified):!1}}}).directive("uibTab",["$parse",function(n){return{require:"^uibTabset",replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(t,i,r,u,f){t.disabled=!1;r.disable&&t.$parent.$watch(n(r.disable),function(n){t.disabled=!!n});angular.isUndefined(r.index)&&(t.index=u.tabs&&u.tabs.length?Math.max.apply(null,u.tabs.map(function(n){return n.index}))+1:0);angular.isUndefined(r.classes)&&(t.classes="");t.select=function(n){if(!t.disabled){for(var r,i=0;i<u.tabs.length;i++)if(u.tabs[i].tab===t){r=i;break}u.select(r,n)}};u.addTab(t);t.$on("$destroy",function(){u.removeTab(t)});t.$transcludeFn=f}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}).directive("uibTabContentTransclude",function(){function n(n){return n.tagName&&(n.hasAttribute("uib-tab-heading")||n.hasAttribute("data-uib-tab-heading")||n.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===n.tagName.toLowerCase()||"data-uib-tab-heading"===n.tagName.toLowerCase()||"x-uib-tab-heading"===n.tagName.toLowerCase()||"uib:tab-heading"===n.tagName.toLowerCase())}return{restrict:"A",require:"^uibTabset",link:function(t,i,r){var u=t.$eval(r.uibTabContentTransclude).tab;u.$transcludeFn(u.$parent,function(t){angular.forEach(t,function(t){n(t)?u.headingElement=t:i.append(t)})})}}});angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(n,t,i,r,u,f,e){function ut(){var t=+n.hours,i=n.showMeridian?t>0&&13>t:t>=0&&24>t;if(i&&""!==n.hours)return(n.showMeridian&&(12===t&&(t=0),n.meridian===v[1]&&(t+=12)),t)}function ft(){var t=+n.minutes,i=t>=0&&60>t;if(i&&""!==n.minutes)return t}function ct(){var t=+n.seconds;if(t>=0&&60>t)return t}function p(n,t){return null===n?"":angular.isDefined(n)&&n.toString().length<2&&!t?"0"+n:n.toString()}function g(n){nt();s.$setViewValue(new Date(o));ot(n)}function nt(){tt&&tt.$setValidity("hours",!0);it&&it.$setValidity("minutes",!0);rt&&rt.$setValidity("seconds",!0);s.$setValidity("time",!0);n.invalidHours=!1;n.invalidMinutes=!1;n.invalidSeconds=!1}function ot(t){if(s.$modelValue){var i=o.getHours(),r=o.getMinutes(),u=o.getSeconds();n.showMeridian&&(i=0===i||12===i?12:i%12);n.hours="h"===t?i:p(i,!ht);"m"!==t&&(n.minutes=p(r));n.meridian=o.getHours()<12?v[0]:v[1];"s"!==t&&(n.seconds=p(u));n.meridian=o.getHours()<12?v[0]:v[1]}else n.hours=null,n.minutes=null,n.seconds=null,n.meridian=v[0]}function y(n){o=et(o,n);g()}function w(n,t){return et(n,60*t)}function et(n,t){var i=new Date(n.getTime()+1e3*t),r=new Date(n);return r.setHours(i.getHours(),i.getMinutes(),i.getSeconds()),r}function st(){return(null===n.hours||""===n.hours)&&(null===n.minutes||""===n.minutes)&&(!n.showSeconds||n.showSeconds&&(null===n.seconds||""===n.seconds))}var tt,it,rt,o=new Date,a=[],s={$setViewValue:angular.noop},v=angular.isDefined(i.meridians)?n.$parent.$eval(i.meridians):e.meridians||f.DATETIME_FORMATS.AMPMS,ht=angular.isDefined(i.padHours)?n.$parent.$eval(i.padHours):!0,b,k,c,l,h,d;n.tabindex=angular.isDefined(i.tabindex)?i.tabindex:0;t.removeAttr("tabindex");this.init=function(t,r){var h,c;s=t;s.$render=this.render;s.$formatters.unshift(function(n){return n?new Date(n):null});var u=r.eq(0),f=r.eq(1),o=r.eq(2);tt=u.controller("ngModel");it=f.controller("ngModel");rt=o.controller("ngModel");h=angular.isDefined(i.mousewheel)?n.$parent.$eval(i.mousewheel):e.mousewheel;h&&this.setupMousewheelEvents(u,f,o);c=angular.isDefined(i.arrowkeys)?n.$parent.$eval(i.arrowkeys):e.arrowkeys;c&&this.setupArrowkeyEvents(u,f,o);n.readonlyInput=angular.isDefined(i.readonlyInput)?n.$parent.$eval(i.readonlyInput):e.readonlyInput;this.setupInputEvents(u,f,o)};b=e.hourStep;i.hourStep&&a.push(n.$parent.$watch(r(i.hourStep),function(n){b=+n}));k=e.minuteStep;i.minuteStep&&a.push(n.$parent.$watch(r(i.minuteStep),function(n){k=+n}));a.push(n.$parent.$watch(r(i.min),function(n){var t=new Date(n);c=isNaN(t)?void 0:t}));a.push(n.$parent.$watch(r(i.max),function(n){var t=new Date(n);l=isNaN(t)?void 0:t}));h=!1;i.ngDisabled&&a.push(n.$parent.$watch(r(i.ngDisabled),function(n){h=n}));n.noIncrementHours=function(){var n=w(o,60*b);return h||n>l||o>n&&c>n};n.noDecrementHours=function(){var n=w(o,60*-b);return h||c>n||n>o&&n>l};n.noIncrementMinutes=function(){var n=w(o,k);return h||n>l||o>n&&c>n};n.noDecrementMinutes=function(){var n=w(o,-k);return h||c>n||n>o&&n>l};n.noIncrementSeconds=function(){var n=et(o,d);return h||n>l||o>n&&c>n};n.noDecrementSeconds=function(){var n=et(o,-d);return h||c>n||n>o&&n>l};n.noToggleMeridian=function(){return o.getHours()<12?h||w(o,720)>l:h||w(o,-720)<c};d=e.secondStep;i.secondStep&&a.push(n.$parent.$watch(r(i.secondStep),function(n){d=+n}));n.showSeconds=e.showSeconds;i.showSeconds&&a.push(n.$parent.$watch(r(i.showSeconds),function(t){n.showSeconds=!!t}));n.showMeridian=e.showMeridian;i.showMeridian&&a.push(n.$parent.$watch(r(i.showMeridian),function(t){if(n.showMeridian=!!t,s.$error.time){var i=ut(),r=ft();angular.isDefined(i)&&angular.isDefined(r)&&(o.setHours(i),g())}else ot()}));this.setupMousewheelEvents=function(t,i,r){var u=function(n){n.originalEvent&&(n=n.originalEvent);var t=n.wheelDelta?n.wheelDelta:-n.deltaY;return n.detail||t>0};t.on("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementHours():n.decrementHours());t.preventDefault()});i.on("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementMinutes():n.decrementMinutes());t.preventDefault()});r.on("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementSeconds():n.decrementSeconds());t.preventDefault()})};this.setupArrowkeyEvents=function(t,i,r){t.on("keydown",function(t){h||(38===t.which?(t.preventDefault(),n.incrementHours(),n.$apply()):40===t.which&&(t.preventDefault(),n.decrementHours(),n.$apply()))});i.on("keydown",function(t){h||(38===t.which?(t.preventDefault(),n.incrementMinutes(),n.$apply()):40===t.which&&(t.preventDefault(),n.decrementMinutes(),n.$apply()))});r.on("keydown",function(t){h||(38===t.which?(t.preventDefault(),n.incrementSeconds(),n.$apply()):40===t.which&&(t.preventDefault(),n.decrementSeconds(),n.$apply()))})};this.setupInputEvents=function(t,i,r){if(n.readonlyInput)return n.updateHours=angular.noop,n.updateMinutes=angular.noop,void(n.updateSeconds=angular.noop);var u=function(t,i,r){s.$setViewValue(null);s.$setValidity("time",!1);angular.isDefined(t)&&(n.invalidHours=t,tt&&tt.$setValidity("hours",!1));angular.isDefined(i)&&(n.invalidMinutes=i,it&&it.$setValidity("minutes",!1));angular.isDefined(r)&&(n.invalidSeconds=r,rt&&rt.$setValidity("seconds",!1))};n.updateHours=function(){var n=ut(),t=ft();s.$setDirty();angular.isDefined(n)&&angular.isDefined(t)?(o.setHours(n),o.setMinutes(t),c>o||o>l?u(!0):g("h")):u(!0)};t.on("blur",function(){s.$setTouched();st()?nt():null===n.hours||""===n.hours?u(!0):!n.invalidHours&&n.hours<10&&n.$apply(function(){n.hours=p(n.hours,!ht)})});n.updateMinutes=function(){var n=ft(),t=ut();s.$setDirty();angular.isDefined(n)&&angular.isDefined(t)?(o.setHours(t),o.setMinutes(n),c>o||o>l?u(void 0,!0):g("m")):u(void 0,!0)};i.on("blur",function(){s.$setTouched();st()?nt():null===n.minutes?u(void 0,!0):!n.invalidMinutes&&n.minutes<10&&n.$apply(function(){n.minutes=p(n.minutes)})});n.updateSeconds=function(){var n=ct();s.$setDirty();angular.isDefined(n)?(o.setSeconds(n),g("s")):u(void 0,void 0,!0)};r.on("blur",function(){st()?nt():!n.invalidSeconds&&n.seconds<10&&n.$apply(function(){n.seconds=p(n.seconds)})})};this.render=function(){var t=s.$viewValue;isNaN(t)?(s.$setValidity("time",!1),u.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(o=t),c>o||o>l?(s.$setValidity("time",!1),n.invalidHours=!0,n.invalidMinutes=!0):nt(),ot())};n.showSpinners=angular.isDefined(i.showSpinners)?n.$parent.$eval(i.showSpinners):e.showSpinners;n.incrementHours=function(){n.noIncrementHours()||y(3600*b)};n.decrementHours=function(){n.noDecrementHours()||y(3600*-b)};n.incrementMinutes=function(){n.noIncrementMinutes()||y(60*k)};n.decrementMinutes=function(){n.noDecrementMinutes()||y(60*-k)};n.incrementSeconds=function(){n.noIncrementSeconds()||y(d)};n.decrementSeconds=function(){n.noDecrementSeconds()||y(-d)};n.toggleMeridian=function(){var t=ft(),i=ut();n.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(i)?y(720*(o.getHours()<12?60:-60)):n.meridian=n.meridian===v[0]?v[1]:v[0])};n.blur=function(){s.$setTouched()};n.$on("$destroy",function(){for(;a.length;)a.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(t,i){return i.templateUrl||n.templateUrl},link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u,t.find("input"))}}}]);angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(i){var r=i.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+i+'".');return{itemName:r[3],source:n(r[4]),viewMapper:n(r[2]||r[1]),modelMapper:n(r[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(n,t,i,r,u,f,e,o,s,h,c,l,a){function rt(){v.moveInProgress||(v.moveInProgress=!0,v.$digest());ti()}function bt(){v.position=nt?l.offset(t):l.position(t);v.position.top+=t.prop("offsetHeight")}function ri(n){var t;return angular.version.minor<6?(t=n.$options||{},t.getOption=function(n){return t[n]}):t=n.$options,t}var y,lt,ui=[9,13,27,38,40],d=n.$eval(i.typeaheadMinLength),at,g,ht,tt,p,b,ni,ct,ti,yt,ii,pt,wt,it;d||0===d||(d=1);n.$watch(i.typeaheadMinLength,function(n){d=n||0===n?n:1});at=n.$eval(i.typeaheadWaitMs)||0;g=n.$eval(i.typeaheadEditable)!==!1;n.$watch(i.typeaheadEditable,function(n){g=n!==!1});var ut,ft,et=u(i.typeaheadLoading).assign||angular.noop,fi=i.typeaheadShouldSelect?u(i.typeaheadShouldSelect):function(n,t){var i=t.$event;return 13===i.which||9===i.which},ei=u(i.typeaheadOnSelect),oi=angular.isDefined(i.typeaheadSelectOnBlur)?n.$eval(i.typeaheadSelectOnBlur):!1,ot=u(i.typeaheadNoResults).assign||angular.noop,kt=i.typeaheadInputFormatter?u(i.typeaheadInputFormatter):void 0,nt=i.typeaheadAppendToBody?n.$eval(i.typeaheadAppendToBody):!1,vt=i.typeaheadAppendTo?n.$eval(i.typeaheadAppendTo):null,si=n.$eval(i.typeaheadFocusFirst)!==!1,hi=i.typeaheadSelectOnExact?n.$eval(i.typeaheadSelectOnExact):!1,ci=u(i.typeaheadIsOpen).assign||angular.noop,st=n.$eval(i.typeaheadShowHint)||!1,dt=u(i.ngModel),li=u(i.ngModel+"($$$p)"),ai=function(t,i){return angular.isFunction(dt(n))&&lt.getOption("getterSetter")?li(t,{$$$p:i}):dt.assign(t,i)},w=a.parse(i.uibTypeahead),v=n.$new(),vi=n.$on("$destroy",function(){v.$destroy()});v.$on("$destroy",vi);ht="typeahead-"+v.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":ht});st&&(tt=angular.element("<div><\/div>"),tt.css("position","relative"),t.after(tt),p=t.clone(),p.attr("placeholder",""),p.attr("tabindex","-1"),p.val(""),p.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),t.css({position:"relative","vertical-align":"top","background-color":"transparent"}),p.attr("id")&&p.removeAttr("id"),tt.append(p),p.after(t));b=angular.element("<div uib-typeahead-popup><\/div>");b.attr({id:ht,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"});angular.isDefined(i.typeaheadTemplateUrl)&&b.attr("template-url",i.typeaheadTemplateUrl);angular.isDefined(i.typeaheadPopupTemplateUrl)&&b.attr("popup-template-url",i.typeaheadPopupTemplateUrl);var yi=function(){st&&p.val("")},k=function(){v.matches=[];v.activeIdx=-1;t.attr("aria-expanded",!1);yi()},gt=function(n){return ht+"-option-"+n};v.$watch("activeIdx",function(n){0>n?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",gt(n))});ni=function(n,t){return v.matches.length>t&&n?n.toUpperCase()===v.matches[t].label.toUpperCase():!1};ct=function(i,r){var u={$viewValue:i};et(n,!0);ot(n,!1);f.when(w.source(n,u)).then(function(f){var s=i===y.$viewValue,e,o;if(s&&ut)if(f&&f.length>0){for(v.activeIdx=si?0:-1,ot(n,!1),v.matches.length=0,e=0;e<f.length;e++)u[w.itemName]=f[e],v.matches.push({id:gt(e),label:w.viewMapper(v,u),model:f[e]});(v.query=i,bt(),t.attr("aria-expanded",!0),hi&&1===v.matches.length&&ni(i,0)&&(angular.isNumber(v.debounceUpdate)||angular.isObject(v.debounceUpdate)?c(function(){v.select(0,r)},angular.isNumber(v.debounceUpdate)?v.debounceUpdate:v.debounceUpdate["default"]):v.select(0,r)),st)&&(o=v.matches[0].label,angular.isString(i)&&i.length>0&&o.slice(0,i.length).toUpperCase()===i.toUpperCase()?p.val(i+o.slice(i.length)):p.val(""))}else k(),ot(n,!0);s&&et(n,!1)},function(){k();et(n,!1);ot(n,!0)})};nt&&(angular.element(s).on("resize",rt),o.find("body").on("scroll",rt));ti=c(function(){v.matches.length&&bt();v.moveInProgress=!1},200);v.moveInProgress=!1;v.query=void 0;ii=function(n){yt=e(function(){ct(n)},at)};pt=function(){yt&&e.cancel(yt)};k();v.assignIsOpen=function(t){ci(n,t)};v.select=function(r,u){var f,s,o={};ft=!0;o[w.itemName]=s=v.matches[r].model;f=w.modelMapper(n,o);ai(n,f);y.$setValidity("editable",!0);y.$setValidity("parse",!0);ei(n,{$item:s,$model:f,$label:w.viewMapper(n,o),$event:u});k();v.$eval(i.typeaheadFocusOnSelect)!==!1&&e(function(){t[0].focus()},0,!1)};t.on("keydown",function(t){var r,i;if(0!==v.matches.length&&-1!==ui.indexOf(t.which)){if(r=fi(n,{$event:t}),-1===v.activeIdx&&r||9===t.which&&t.shiftKey)return k(),void v.$digest();t.preventDefault();switch(t.which){case 27:t.stopPropagation();k();n.$digest();break;case 38:v.activeIdx=(v.activeIdx>0?v.activeIdx:v.matches.length)-1;v.$digest();i=b[0].querySelectorAll(".uib-typeahead-match")[v.activeIdx];i.parentNode.scrollTop=i.offsetTop;break;case 40:v.activeIdx=(v.activeIdx+1)%v.matches.length;v.$digest();i=b[0].querySelectorAll(".uib-typeahead-match")[v.activeIdx];i.parentNode.scrollTop=i.offsetTop;break;default:r&&v.$apply(function(){angular.isNumber(v.debounceUpdate)||angular.isObject(v.debounceUpdate)?c(function(){v.select(v.activeIdx,t)},angular.isNumber(v.debounceUpdate)?v.debounceUpdate:v.debounceUpdate["default"]):v.select(v.activeIdx,t)})}}});t.on("focus",function(n){ut=!0;0!==d||y.$viewValue||e(function(){ct(y.$viewValue,n)},0)});t.on("blur",function(n){oi&&v.matches.length&&-1!==v.activeIdx&&!ft&&(ft=!0,v.$apply(function(){angular.isObject(v.debounceUpdate)&&angular.isNumber(v.debounceUpdate.blur)?c(function(){v.select(v.activeIdx,n)},v.debounceUpdate.blur):v.select(v.activeIdx,n)}));!g&&y.$error.editable&&(y.$setViewValue(),v.$apply(function(){y.$setValidity("editable",!0);y.$setValidity("parse",!0)}),t.val(""));ut=!1;ft=!1});wt=function(i){t[0]!==i.target&&3!==i.which&&0!==v.matches.length&&(k(),h.$$phase||n.$digest())};o.on("click",wt);n.$on("$destroy",function(){o.off("click",wt);(nt||vt)&&it.remove();nt&&(angular.element(s).off("resize",rt),o.find("body").off("scroll",rt));b.remove();st&&tt.remove()});it=r(b)(v);nt?o.find("body").append(it):vt?angular.element(vt).eq(0).append(it):t.after(it);this.init=function(t){y=t;lt=ri(y);v.debounceUpdate=u(lt.getOption("debounce"))(n);y.$parsers.unshift(function(t){return ut=!0,0===d||t&&t.length>=d?at>0?(pt(),ii(t)):ct(t):(et(n,!1),pt(),k()),g?t:t?void y.$setValidity("editable",!1):(y.$setValidity("editable",!0),null)});y.$formatters.push(function(t){var r,u,i={};return g||y.$setValidity("editable",!0),kt?(i.$model=t,kt(n,i)):(i[w.itemName]=t,r=w.viewMapper(n,i),i[w.itemName]=void 0,u=w.viewMapper(n,i),r!==u?r:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","uibTypeahead"],link:function(n,t,i,r){r[1].init(r[0])}}}).directive("uibTypeaheadPopup",["$$debounce",function(n){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(n,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(t,i,r){t.templateUrl=r.templateUrl;t.isOpen=function(){var n=t.matches.length>0;return t.assignIsOpen({isOpen:n}),n};t.isActive=function(n){return t.active===n};t.selectActive=function(n){t.active=n};t.selectMatch=function(i,r){var u=t.debounce();angular.isNumber(u)||angular.isObject(u)?n(function(){t.select({activeIdx:i,evt:r})},angular.isNumber(u)?u:u["default"]):t.select({activeIdx:i,evt:r})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(n,t,i){return{scope:{index:"=",match:"=",query:"="},link:function(r,u,f){var e=i(f.templateUrl)(r.$parent)||"uib/template/typeahead/typeahead-match.html";n(e).then(function(n){var i=angular.element(n.trim());u.replaceWith(i);t(i)(r)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,t,i){function u(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function f(n){return/<.*>/g.test(n)}var r;return r=t.has("$sanitize"),function(t,e){return!r&&f(t)&&i.warn("Unsafe use of typeahead please use ngSanitize"),t=e?(""+t).replace(new RegExp(u(e),"gi"),"<strong>$&<\/strong>"):t,r||(t=n.trustAsHtml(t)),t}}]);angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.$$uibCarouselCss||angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}<\/style>');angular.$$uibCarouselCss=!0});angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}<\/style>');angular.$$uibDatepickerCss=!0});angular.module("ui.bootstrap.position").run(function(){angular.$$csp().noInlineStyle||angular.$$uibPositionCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}<\/style>');angular.$$uibPositionCss=!0});angular.module("ui.bootstrap.datepickerPopup").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerpopupCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}<\/style>');angular.$$uibDatepickerpopupCss=!0});angular.module("ui.bootstrap.tooltip").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTooltipCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}<\/style>');angular.$$uibTooltipCss=!0});angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTimepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}<\/style>');angular.$$uibTimepickerCss=!0});angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTypeaheadCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}<\/style>');angular.$$uibTypeaheadCss=!0});angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]);angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]);angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(n,t,i,r){var u=r.has("$animateCss")?r.get("$animateCss"):null;return{link:function(r,f,e){function v(){l=!!("horizontal"in e);l?(s={width:""},o={width:"0"}):(s={height:""},o={height:"0"});r.$eval(e.uibCollapse)||f.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(s)}function h(n){return l?{width:n.scrollWidth+"px"}:{height:n.scrollHeight+"px"}}function y(){f.hasClass("collapse")&&f.hasClass("in")||t.resolve(w(r)).then(function(){f.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1);u?u(f,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:h(f[0])}).start()["finally"](a):n.addClass(f,"in",{css:{overflow:"hidden"},to:h(f[0])}).then(a)},angular.noop)}function a(){f.removeClass("collapsing").addClass("collapse").css(s);b(r)}function p(){return f.hasClass("collapse")||f.hasClass("in")?void t.resolve(k(r)).then(function(){f.css(h(f[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0);u?u(f,{removeClass:"in",to:o}).start()["finally"](c):n.removeClass(f,"in",{to:o}).then(c)},angular.noop):c()}function c(){f.css(o);f.removeClass("collapsing").addClass("collapse");d(r)}var w=i(e.expanding),b=i(e.expanded),k=i(e.collapsing),d=i(e.collapsed),l=!1,s={},o={};v();r.$watch(e.uibCollapse,function(n){n?p():y()})}}}]);angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(n,t,i){i.$observe("disabled",function(n){i.$set("tabindex",n?-1:null)})}}});angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(n,t,i){this.groups=[];this.closeOthers=function(r){var u=angular.isDefined(t.closeOthers)?n.$eval(t.closeOthers):i.closeOthers;u&&angular.forEach(this.groups,function(n){n!==r&&(n.isOpen=!1)})};this.addGroup=function(n){var t=this;this.groups.push(n);n.$on("$destroy",function(){t.removeGroup(n)})};this.removeGroup=function(n){var t=this.groups.indexOf(n);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(n,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(n){this.heading=n}},link:function(n,t,i,r){t.addClass("panel");r.addGroup(n);n.openClass=i.openClass||"panel-open";n.panelClass=i.panelClass||"panel-default";n.$watch("isOpen",function(i){t.toggleClass(n.openClass,!!i);i&&r.closeOthers(n)});n.toggleOpen=function(t){n.isDisabled||t&&32!==t.which||(n.isOpen=!n.isOpen)};var u="accordiongroup-"+n.$id+"-"+Math.floor(1e4*Math.random());n.headingId=u+"-tab";n.panelId=u+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(n,t,i,r,u){r.setHeading(u(n,angular.noop))}}}).directive("uibAccordionTransclude",function(){function n(){return"uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"}return{require:"^uibAccordionGroup",link:function(t,i,r,u){t.$watch(function(){return u[r.uibAccordionTransclude]},function(t){if(t){var r=angular.element(i[0].querySelector(n()));r.html("");r.append(t)}})}}});angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(n,t,i,r,u){n.closeable=!!i.close;t.addClass("alert");i.$set("role","alert");n.closeable&&t.addClass("alert-dismissible");var f=angular.isDefined(i.dismissOnTimeout)?r(i.dismissOnTimeout)(n.$parent):null;f&&u(function(){n.close()},parseInt(f,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(n,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}});angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(n){this.activeClass=n.activeClass||"active";this.toggleEvent=n.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(n){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,i,r,u){var e=u[0],f=u[1],o=n(r.uibUncheckable);i.find("input").css({display:"none"});f.$render=function(){i.toggleClass(e.activeClass,angular.equals(f.$modelValue,t.$eval(r.uibBtnRadio)))};i.on(e.toggleEvent,function(){if(!r.disabled){var n=i.hasClass(e.activeClass);n&&!angular.isDefined(r.uncheckable)||t.$apply(function(){f.$setViewValue(n?null:t.$eval(r.uibBtnRadio));f.$render()})}});r.uibUncheckable&&t.$watch(o,function(n){r.$set("uncheckable",n?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,t,i,r){function e(){return o(i.btnCheckboxTrue,!0)}function s(){return o(i.btnCheckboxFalse,!1)}function o(t,i){return angular.isDefined(t)?n.$eval(t):i}var f=r[0],u=r[1];t.find("input").css({display:"none"});u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,e()))};t.on(f.toggleEvent,function(){i.disabled||n.$apply(function(){u.$setViewValue(t.hasClass(f.activeClass)?s():e());u.$render()})})}}});angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(n,t,i,r,u){function s(n){for(var t=0;t<f.length;t++)f[t].slide.active=t===n}function w(i,r,h){if(!p){if(angular.extend(i,{direction:h}),angular.extend(f[o].slide||{},{direction:h}),u.enabled(t)&&!n.$currentTransition&&f[r].element&&e.slides.length>1){f[r].element.data(y,i.direction);var c=e.getCurrentIndex();angular.isNumber(c)&&f[c].element&&f[c].element.data(y,i.direction);n.$currentTransition=!0;u.on("addClass",f[r].element,function(t,i){"close"===i&&(n.$currentTransition=null,u.off("addClass",t))})}n.active=i.index;o=i.index;s(r);v()}}function l(n){for(var t=0;t<f.length;t++)if(f[t].slide===n)return t}function a(){h&&(i.cancel(h),h=null)}function b(t){t.length||(n.$currentTransition=null)}function v(){a();var t=+n.interval;!isNaN(t)&&t>0&&(h=i(k,t))}function k(){var t=+n.interval;c&&!isNaN(t)&&t>0&&f.length?n.next():n.pause()}var h,c,e=this,f=e.slides=n.slides=[],y="uib-slideDirection",o=n.active,p=!1;t.addClass("carousel");e.addSlide=function(t,i){f.push({slide:t,element:i});f.sort(function(n,t){return+n.slide.index-+t.slide.index});(t.index===n.active||1===f.length&&!angular.isNumber(n.active))&&(n.$currentTransition&&(n.$currentTransition=null),o=t.index,n.active=t.index,s(o),e.select(f[l(t)]),1===f.length&&n.play())};e.getCurrentIndex=function(){for(var n=0;n<f.length;n++)if(f[n].slide.index===o)return n};e.next=n.next=function(){var t=(e.getCurrentIndex()+1)%f.length;return 0===t&&n.noWrap()?void n.pause():e.select(f[t],"next")};e.prev=n.prev=function(){var t=e.getCurrentIndex()-1<0?f.length-1:e.getCurrentIndex()-1;return n.noWrap()&&t===f.length-1?void n.pause():e.select(f[t],"prev")};e.removeSlide=function(t){var i=l(t);f.splice(i,1);f.length>0&&o===i?i>=f.length?(o=f.length-1,n.active=o,s(o),e.select(f[f.length-1])):(o=i,n.active=o,s(o),e.select(f[i])):o>i&&(o--,n.active=o);0===f.length&&(o=null,n.active=null)};e.select=n.select=function(t,i){var r=l(t.slide);void 0===i&&(i=r>e.getCurrentIndex()?"next":"prev");t.slide.index===o||n.$currentTransition||w(t.slide,r,i)};n.indexOfSlide=function(n){return+n.slide.index};n.isActive=function(t){return n.active===t.slide.index};n.isPrevDisabled=function(){return 0===n.active&&n.noWrap()};n.isNextDisabled=function(){return n.active===f.length-1&&n.noWrap()};n.pause=function(){n.noPause||(c=!1,a())};n.play=function(){c||(c=!0,v())};t.on("mouseenter",n.pause);t.on("mouseleave",n.play);n.$on("$destroy",function(){p=!0;a()});n.$watch("noTransition",function(n){u.enabled(t,!n)});n.$watch("interval",v);n.$watchCollection("slides",b);n.$watch("active",function(n){var t,i;if(angular.isNumber(n)&&o!==n){for(t=0;t<f.length;t++)if(f[t].slide.index===n){n=t;break}i=f[n];i&&(s(n),e.select(f[n]),o=n)}})}]).directive("uibCarousel",function(){return{transclude:!0,controller:"UibCarouselController",controllerAs:"carousel",restrict:"A",templateUrl:function(n,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",["$animate",function(n){return{require:"^uibCarousel",restrict:"A",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(t,i,r,u){i.addClass("item");u.addSlide(t,i);t.$on("$destroy",function(){u.removeSlide(t)});t.$watch("active",function(t){n[t?"addClass":"removeClass"](i,"active")})}}}]).animation(".item",["$animateCss",function(n){function t(n,t,i){n.removeClass(t);i&&i()}var i="uib-slideDirection";return{beforeAddClass:function(r,u,f){if("active"===u){var s=!1,e=r.data(i),o="next"===e?"left":"right",h=t.bind(this,r,o+" "+e,f);return r.addClass(e),n(r,{addClass:o}).start().done(h),function(){s=!0}}f()},beforeRemoveClass:function(r,u,f){if("active"===u){var o=!1,s=r.data(i),e="next"===s?"left":"right",h=t.bind(this,r,e,f);return n(r,{addClass:e}).start().done(h),function(){o=!0}}f()}}}]);angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter","filterFilter",function(n,t,i,r,u){function s(n){return u(f,{key:n},!0)[0]}function v(n){var e=[],i=n.split(""),o=n.indexOf("'"),u,t;if(o>-1){for(u=!1,n=n.split(""),t=o;t<n.length;t++)u?("'"===n[t]&&(t+1<n.length&&"'"===n[t+1]?(n[t+1]="$",i[t+1]=""):(i[t]="",u=!1)),n[t]="$"):"'"===n[t]&&(n[t]="$",i[t]="",u=!0);n=n.join("")}return angular.forEach(f,function(t){var r=n.indexOf(t.key),u,f;if(r>-1){for(n=n.split(""),i[r]="("+t.regex+")",n[r]="$",u=r+1,f=r+t.key.length;f>u;u++)i[u]="",n[u]="$";n=n.join("");e.push({index:r,key:t.key,apply:t.apply,matcher:t.regex})}}),{regex:new RegExp("^"+i.join("")+"$"),map:r(e,"index")}}function y(n){for(var r,i,u=[],t=0;t<n.length;)if(angular.isNumber(i)){if("'"===n.charAt(t))(t+1>=n.length||"'"!==n.charAt(t+1))&&(u.push(p(n,i,t)),i=null);else if(t===n.length)for(;i<n.length;)r=h(n,i),u.push(r),i=r.endIdx;t++}else"'"!==n.charAt(t)?(r=h(n,t),u.push(r.parser),t=r.endIdx):(i=t,t++);return u}function p(n,t,i){return function(){return n.substr(t+1,i-t-1)}}function h(n,t){for(var u,r=n.substr(t),i=0;i<f.length;i++)if(new RegExp("^"+f[i].key).test(r))return u=f[i],{endIdx:t+u.key.length,parser:u.formatter};return{endIdx:t+1,parser:function(){return r.charAt(0)}}}function w(n,t,i){return 1>i?!1:1===t&&i>28?29===i&&(n%4==0&&n%100!=0||n%400==0):3===t||5===t||8===t||10===t?31>i:!0}function c(n){return parseInt(n,10)}function b(n,t){return n&&t?e(n,t):n}function k(n,t){return n&&t?e(n,t,!0):n}function l(n,t){n=n.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(i)?t:i}function a(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function e(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset(),u=l(t,r);return a(n,i*(u-r))}var o,f,d=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){o=t.id;this.parsers={};this.formatters={};f=[{key:"yyyy",regex:"\\d{4}",apply:function(n){this.year=+n},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(n){n=+n;this.year=69>n?n+2e3:n+1900},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(n){this.year=+n},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){var t=n.getMonth();return/^[0-9]$/.test(t)?i(n,"MM"):i(n,"M")}},{key:"MMMM",regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.MONTH.indexOf(n)},formatter:function(n){return i(n,"MMMM")}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(n)},formatter:function(n){return i(n,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){return i(n,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){return i(n,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){var t=n.getDate();return/^[1-9]$/.test(t)?i(n,"dd"):i(n,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){return i(n,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){return i(n,"d")}},{key:"EEEE",regex:t.DATETIME_FORMATS.DAY.join("|"),formatter:function(n){return i(n,"EEEE")}},{key:"EEE",regex:t.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(n){return i(n,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(n){this.minutes=+n},formatter:function(n){return i(n,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(n){this.minutes=+n},formatter:function(n){return i(n,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(n){this.milliseconds=+n},formatter:function(n){return i(n,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(n){this.seconds=+n},formatter:function(n){return i(n,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(n){this.seconds=+n},formatter:function(n){return i(n,"s")}},{key:"a",regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(n){12===this.hours&&(this.hours=0);"PM"===n&&(this.hours+=12)},formatter:function(n){return i(n,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(n){var t=n.match(/([+-])(\d{2})(\d{2})/),i=t[1],r=t[2],u=t[3];this.hours+=c(i+r);this.minutes+=c(i+u)},formatter:function(n){return i(n,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(n){return i(n,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(n){return i(n,"w")}},{key:"GGGG",regex:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(n){return i(n,"GGGG")}},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"GGG")}},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"GG")}},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"G")}}];angular.version.major>=1&&angular.version.minor>4&&f.push({key:"LLLL",regex:t.DATETIME_FORMATS.STANDALONEMONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.STANDALONEMONTH.indexOf(n)},formatter:function(n){return i(n,"LLLL")}})};this.init();this.getParser=function(n){var t=s(n);return t&&t.apply||null};this.overrideParser=function(n,t){var i=s(n);i&&angular.isFunction(t)&&(this.parsers={},i.apply=t)}.bind(this);this.filter=function(n,i){if(!angular.isDate(n)||isNaN(n)||!i)return"";i=t.DATETIME_FORMATS[i]||i;t.id!==o&&this.init();this.formatters[i]||(this.formatters[i]=y(i));var r=this.formatters[i];return r.reduce(function(t,i){return t+i(n)},"")};this.parse=function(i,r,u){var f,e,s,b,l,a,y;if(!angular.isString(i)||!r)return i;r=t.DATETIME_FORMATS[r]||r;r=r.replace(d,"\\$&");t.id!==o&&this.init();this.parsers[r]||(this.parsers[r]=v(r,"apply"));var p=this.parsers[r],k=p.regex,g=p.map,h=i.match(k),c=!1;if(h&&h.length){for(angular.isDate(u)&&!isNaN(u.getTime())?f={year:u.getFullYear(),month:u.getMonth(),date:u.getDate(),hours:u.getHours(),minutes:u.getMinutes(),seconds:u.getSeconds(),milliseconds:u.getMilliseconds()}:(u&&n.warn("dateparser:","baseDate is not a valid date"),f={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),s=1,b=h.length;b>s;s++)l=g[s-1],"Z"===l.matcher&&(c=!0),l.apply&&l.apply.call(f,h[s]);return a=c?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,y=c?Date.prototype.setUTCHours:Date.prototype.setHours,w(f.year,f.month,f.date)&&(!angular.isDate(u)||isNaN(u.getTime())||c?(e=new Date(0),a.call(e,f.year,f.month,f.date),y.call(e,f.hours||0,f.minutes||0,f.seconds||0,f.milliseconds||0)):(e=new Date(u),a.call(e,f.year,f.month,f.date),y.call(e,f.hours,f.minutes,f.seconds,f.milliseconds))),e}};this.toTimezone=b;this.fromTimezone=k;this.timezoneToOffset=l;this.addDateMinutes=a;this.convertTimezoneToLocal=e}]);angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(n){var t=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,i=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(r,u){function h(n,t){f.push(n);o.push({scope:n,element:t});y.forEach(function(t){c(t,n)});n.$on("$destroy",l)}function c(t,r){var h=t.match(i),c=r.$eval(h[1]),f=h[2],u=e[t],s;u||(s=function(t){var i=null;o.some(function(n){var r=n.scope.$eval(a);if(r===t)return(i=n,!0)});u.lastActivated!==i&&(u.lastActivated&&n.removeClass(u.lastActivated.element,c),i&&n.addClass(i.element,c),u.lastActivated=i)},e[t]=u={lastActivated:null,scope:r,watchFn:s,compareWithExp:f,watcher:r.$watch(f,s)});u.watchFn(r.$eval(f))}function l(n){var i=n.targetScope,r=f.indexOf(i),t;(f.splice(r,1),o.splice(r,1),f.length)?(t=f[0],angular.forEach(e,function(n){n.scope===i&&(n.watcher=t.$watch(n.compareWithExp,n.watchFn),n.scope=t)})):e={}}var f=[],o=[],e={},s=u.uibIsClass.match(t),a=s[2],v=s[1],y=v.split(",");return h}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(n,t,i,r,u,f,e,o,s,h,c,l){function w(t){n.datepickerMode=t;n.datepickerOptions.datepickerMode=t}function k(t){var i,r;return angular.version.minor<6?(i=t.$options||n.datepickerOptions.ngModelOptions||s.ngModelOptions||{},i.getOption=function(n){return i[n]}):(r=t.$options.getOption("timezone")||(n.datepickerOptions.ngModelOptions?n.datepickerOptions.ngModelOptions.timezone:null)||(s.ngModelOptions?s.ngModelOptions.timezone:null),i=t.$options.createChild(s.ngModelOptions).createChild(n.datepickerOptions.ngModelOptions).createChild(t.$options).createChild({timezone:r})),i}var a=this,v={$setViewValue:angular.noop},y={},p=[],b;t.addClass("uib-datepicker");i.$set("role","application");n.datepickerOptions||(n.datepickerOptions={});this.modes=["day","month","year"];["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":n[t]=n.datepickerOptions[t]||angular.noop;break;case"datepickerMode":n.datepickerMode=angular.isDefined(n.datepickerOptions.datepickerMode)?n.datepickerOptions.datepickerMode:s.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":a[t]=angular.isDefined(n.datepickerOptions[t])?u(n.datepickerOptions[t])(n.$parent):s[t];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":a[t]=angular.isDefined(n.datepickerOptions[t])?n.datepickerOptions[t]:s[t];break;case"startingDay":a.startingDay=angular.isDefined(n.datepickerOptions.startingDay)?n.datepickerOptions.startingDay:angular.isNumber(s.startingDay)?s.startingDay:(f.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":n.$watch("datepickerOptions."+t,function(n){n?angular.isDate(n)?a[t]=l.fromTimezone(new Date(n),y.getOption("timezone")):(h&&e.warn("Literal date support has been deprecated, please switch to date object usage"),a[t]=new Date(o(n,"medium"))):a[t]=s[t]?l.fromTimezone(new Date(s[t]),y.getOption("timezone")):null;a.refreshView()});break;case"maxMode":case"minMode":n.datepickerOptions[t]?n.$watch(function(){return n.datepickerOptions[t]},function(i){a[t]=n[t]=angular.isDefined(i)?i:n.datepickerOptions[t];("minMode"===t&&a.modes.indexOf(n.datepickerOptions.datepickerMode)<a.modes.indexOf(a[t])||"maxMode"===t&&a.modes.indexOf(n.datepickerOptions.datepickerMode)>a.modes.indexOf(a[t]))&&(n.datepickerMode=a[t],n.datepickerOptions.datepickerMode=a[t])}):a[t]=n[t]=s[t]||null}});n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(1e4*Math.random());n.disabled=angular.isDefined(i.disabled)||!1;angular.isDefined(i.ngDisabled)&&p.push(n.$parent.$watch(i.ngDisabled,function(t){n.disabled=t;a.refreshView()}));n.isActive=function(t){return 0===a.compare(t.date,a.activeDate)?(n.activeDateId=t.uid,!0):!1};this.init=function(t){v=t;y=k(v);n.datepickerOptions.initDate?(a.activeDate=l.fromTimezone(n.datepickerOptions.initDate,y.getOption("timezone"))||new Date,n.$watch("datepickerOptions.initDate",function(n){n&&(v.$isEmpty(v.$modelValue)||v.$invalid)&&(a.activeDate=l.fromTimezone(n,y.getOption("timezone")),a.refreshView())})):a.activeDate=new Date;var i=v.$modelValue?new Date(v.$modelValue):new Date;this.activeDate=isNaN(i)?l.fromTimezone(new Date,y.getOption("timezone")):l.fromTimezone(i,y.getOption("timezone"));v.$render=function(){a.render()}};this.render=function(){if(v.$viewValue){var n=new Date(v.$viewValue),t=!isNaN(n);t?this.activeDate=l.fromTimezone(n,y.getOption("timezone")):c||e.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()};this.refreshView=function(){if(this.element){n.selectedDt=null;this._refreshView();n.activeDt&&(n.activeDateId=n.activeDt.uid);var t=v.$viewValue?new Date(v.$viewValue):null;t=l.fromTimezone(t,y.getOption("timezone"));v.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}};this.createDateObject=function(t,i){var r=v.$viewValue?new Date(v.$viewValue):null,f,e,u;return r=l.fromTimezone(r,y.getOption("timezone")),f=new Date,f=l.fromTimezone(f,y.getOption("timezone")),e=this.compare(t,f),u={date:t,label:l.filter(t,i),selected:r&&0===this.compare(t,r),disabled:this.isDisabled(t),past:0>e,current:0===e,future:e>0,customClass:this.customClass(t)||null},r&&0===this.compare(t,r)&&(n.selectedDt=u),a.activeDate&&0===this.compare(u.date,a.activeDate)&&(n.activeDt=u),u};this.isDisabled=function(t){return n.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0||n.dateDisabled&&n.dateDisabled({date:t,mode:n.datepickerMode})};this.customClass=function(t){return n.customClass({date:t,mode:n.datepickerMode})};this.split=function(n,t){for(var i=[];n.length>0;)i.push(n.splice(0,t));return i};n.select=function(t){if(n.datepickerMode===a.minMode){var i=v.$viewValue?l.fromTimezone(new Date(v.$viewValue),y.getOption("timezone")):new Date(0,0,0,0,0,0,0);i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());i=l.toTimezone(i,y.getOption("timezone"));v.$setViewValue(i);v.$render()}else a.activeDate=t,w(a.modes[a.modes.indexOf(n.datepickerMode)-1]),n.$emit("uib:datepicker.mode");n.$broadcast("uib:datepicker.focus")};n.move=function(n){var t=a.activeDate.getFullYear()+n*(a.step.years||0),i=a.activeDate.getMonth()+n*(a.step.months||0);a.activeDate.setFullYear(t,i,1);a.refreshView()};n.toggleMode=function(t){t=t||1;n.datepickerMode===a.maxMode&&1===t||n.datepickerMode===a.minMode&&-1===t||(w(a.modes[a.modes.indexOf(n.datepickerMode)+t]),n.$emit("uib:datepicker.mode"))};n.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};b=function(){a.element[0].focus()};n.$on("uib:datepicker.focus",b);n.keydown=function(t){var i=n.keys[t.which];if(i&&!t.shiftKey&&!t.altKey&&!n.disabled)if(t.preventDefault(),a.shortcutPropagation||t.stopPropagation(),"enter"===i||"space"===i){if(a.isDisabled(a.activeDate))return;n.select(a.activeDate)}else!t.ctrlKey||"up"!==i&&"down"!==i?(a.handleKeyDown(i,t),a.refreshView()):n.toggleMode("up"===i?1:-1)};t.on("keydown",function(t){n.$apply(function(){n.keydown(t)})});n.$on("$destroy",function(){for(;p.length;)p.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(n,t,i){function r(n,t){return 1!==t||n%4!=0||n%100==0&&n%400!=0?f[t]:29}function u(n){var t=new Date(n),i;return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1}var f=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1};this.element=t;this.init=function(t){angular.extend(t,this);n.showWeeks=t.showWeeks;t.refreshView()};this.getDates=function(n,t){for(var r,u=new Array(t),i=new Date(n),f=0;t>f;)r=new Date(i),u[f++]=r,i.setDate(i.getDate()+1);return u};this._refreshView=function(){var a=this.activeDate.getFullYear(),h=this.activeDate.getMonth(),e=new Date(this.activeDate),t,r,f;e.setFullYear(a,h,1);var o=this.startingDay-e.getDay(),c=o>0?7-o:-o,l=new Date(e);for(c>0&&l.setDate(-c+1),t=this.getDates(l,42),r=0;42>r;r++)t[r]=angular.extend(this.createDateObject(t[r],this.formatDay),{secondary:t[r].getMonth()!==h,uid:n.uniqueId+"-"+r});for(n.labels=new Array(7),f=0;7>f;f++)n.labels[f]={abbr:i(t[f].date,this.formatDayHeader),full:i(t[f].date,"EEEE")};if(n.title=i(this.activeDate,this.formatDayTitle),n.rows=this.split(t,7),n.showWeeks){n.weekNumbers=[];for(var v=(11-this.startingDay)%7,y=n.rows.length,s=0;y>s;s++)n.weekNumbers.push(u(n.rows[s][v].date))}};this.compare=function(n,t){var i=new Date(n.getFullYear(),n.getMonth(),n.getDate()),r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return i.setFullYear(n.getFullYear()),r.setFullYear(t.getFullYear()),i-r};this.handleKeyDown=function(n){var t=this.activeDate.getDate(),i;"left"===n?t-=1:"up"===n?t-=7:"right"===n?t+=1:"down"===n?t+=7:"pageup"===n||"pagedown"===n?(i=this.activeDate.getMonth()+("pageup"===n?-1:1),this.activeDate.setMonth(i,1),t=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),t)):"home"===n?t=1:"end"===n&&(t=r(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(t)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(n,t,i){this.step={years:1};this.element=t;this.init=function(n){angular.extend(n,this);n.refreshView()};this._refreshView=function(){for(var r,u=new Array(12),f=this.activeDate.getFullYear(),t=0;12>t;t++)r=new Date(this.activeDate),r.setFullYear(f,t,1),u[t]=angular.extend(this.createDateObject(r,this.formatMonth),{uid:n.uniqueId+"-"+t});n.title=i(this.activeDate,this.formatMonthTitle);n.rows=this.split(u,this.monthColumns);n.yearHeaderColspan=this.monthColumns>3?this.monthColumns-2:1};this.compare=function(n,t){var i=new Date(n.getFullYear(),n.getMonth()),r=new Date(t.getFullYear(),t.getMonth());return i.setFullYear(n.getFullYear()),r.setFullYear(t.getFullYear()),i-r};this.handleKeyDown=function(n){var t=this.activeDate.getMonth(),i;"left"===n?t-=1:"up"===n?t-=this.monthColumns:"right"===n?t+=1:"down"===n?t+=this.monthColumns:"pageup"===n||"pagedown"===n?(i=this.activeDate.getFullYear()+("pageup"===n?-1:1),this.activeDate.setFullYear(i)):"home"===n?t=0:"end"===n&&(t=11);this.activeDate.setMonth(t)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(n,t){function u(n){return parseInt((n-1)/i,10)*i+1}var r,i;this.element=t;this.yearpickerInit=function(){r=this.yearColumns;i=this.yearRows*r;this.step={years:i}};this._refreshView=function(){for(var e,f=new Array(i),t=0,o=u(this.activeDate.getFullYear());i>t;t++)e=new Date(this.activeDate),e.setFullYear(o+t,0,1),f[t]=angular.extend(this.createDateObject(e,this.formatYear),{uid:n.uniqueId+"-"+t});n.title=[f[0].label,f[i-1].label].join(" - ");n.rows=this.split(f,r);n.columns=r};this.compare=function(n,t){return n.getFullYear()-t.getFullYear()};this.handleKeyDown=function(n){var t=this.activeDate.getFullYear();"left"===n?t-=1:"up"===n?t-=r:"right"===n?t+=1:"down"===n?t+=r:"pageup"===n||"pagedown"===n?t+=("pageup"===n?-1:1)*i:"home"===n?t=u(this.activeDate.getFullYear()):"end"===n&&(t=u(this.activeDate.getFullYear())+i-1);this.activeDate.setFullYear(t)}}]).directive("uibDatepicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],restrict:"A",controller:"UibDatepickerController",controllerAs:"datepicker",link:function(n,t,i,r){var u=r[0],f=r[1];u.init(f)}}}).directive("uibDaypicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],restrict:"A",controller:"UibDaypickerController",link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibMonthpicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],restrict:"A",controller:"UibMonthpickerController",link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibYearpicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],restrict:"A",controller:"UibYearpickerController",link:function(n,t,i,r){var u=r[0];angular.extend(u,r[1]);u.yearpickerInit();u.refreshView()}}});angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(n,t){var r,u,f={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},i={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},e=/(HTML|BODY)/;return{getRawNode:function(n){return n.nodeName?n:n[0]||n},parseStyle:function(n){return n=parseFloat(n),isFinite(n)?n:0},offsetParent:function(i){function u(n){return"static"===(t.getComputedStyle(n).position||"static")}i=this.getRawNode(i);for(var r=i.offsetParent||n[0].documentElement;r&&r!==n[0].documentElement&&u(r);)r=r.offsetParent;return r||n[0].documentElement},scrollbarWidth:function(i){var e,f;return i?(angular.isUndefined(u)&&(e=n.find("body"),e.addClass("uib-position-body-scrollbar-measure"),u=t.innerWidth-e[0].clientWidth,u=isFinite(u)?u:0,e.removeClass("uib-position-body-scrollbar-measure")),u):(angular.isUndefined(r)&&(f=angular.element('<div class="uib-position-scrollbar-measure"><\/div>'),n.find("body").append(f),r=f[0].offsetWidth-f[0].clientWidth,r=isFinite(r)?r:0,f.remove()),r)},scrollbarPadding:function(n){n=this.getRawNode(n);var u=t.getComputedStyle(n),f=this.parseStyle(u.paddingRight),o=this.parseStyle(u.paddingBottom),i=this.scrollParent(n,!1,!0),r=this.scrollbarWidth(e.test(i.tagName));return{scrollbarWidth:r,widthOverflow:i.scrollWidth>i.clientWidth,right:f+r,originalRight:f,heightOverflow:i.scrollHeight>i.clientHeight,bottom:o+r,originalBottom:o}},isScrollable:function(n,i){n=this.getRawNode(n);var u=i?f.hidden:f.normal,r=t.getComputedStyle(n);return u.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(i,r,u){var c,e,s;i=this.getRawNode(i);var l=r?f.hidden:f.normal,h=n[0].documentElement,o=t.getComputedStyle(i);if(u&&l.test(o.overflow+o.overflowY+o.overflowX))return i;if(c="absolute"===o.position,e=i.parentElement||h,e===h||"fixed"===o.position)return h;for(;e.parentElement&&e!==h;){if(s=t.getComputedStyle(e),c&&"static"!==s.position&&(c=!1),!c&&l.test(s.overflow+s.overflowY+s.overflowX))break;e=e.parentElement}return e},position:function(i,r){var u,o,f,e;return i=this.getRawNode(i),u=this.offset(i),r&&(o=t.getComputedStyle(i),u.top-=this.parseStyle(o.marginTop),u.left-=this.parseStyle(o.marginLeft)),f=this.offsetParent(i),e={top:0,left:0},f!==n[0].documentElement&&(e=this.offset(f),e.top+=f.clientTop-f.scrollTop,e.left+=f.clientLeft-f.scrollLeft),{width:Math.round(angular.isNumber(u.width)?u.width:i.offsetWidth),height:Math.round(angular.isNumber(u.height)?u.height:i.offsetHeight),top:Math.round(u.top-e.top),left:Math.round(u.left-e.left)}},offset:function(i){i=this.getRawNode(i);var r=i.getBoundingClientRect();return{width:Math.round(angular.isNumber(r.width)?r.width:i.offsetWidth),height:Math.round(angular.isNumber(r.height)?r.height:i.offsetHeight),top:Math.round(r.top+(t.pageYOffset||n[0].documentElement.scrollTop)),left:Math.round(r.left+(t.pageXOffset||n[0].documentElement.scrollLeft))}},viewportOffset:function(i,r,u){var o;i=this.getRawNode(i);u=u!==!1;var s=i.getBoundingClientRect(),f={top:0,left:0,bottom:0,right:0},e=r?n[0].documentElement:this.scrollParent(i),h=e.getBoundingClientRect();return(f.top=h.top+e.clientTop,f.left=h.left+e.clientLeft,e===n[0].documentElement&&(f.top+=t.pageYOffset,f.left+=t.pageXOffset),f.bottom=f.top+e.clientHeight,f.right=f.left+e.clientWidth,u)&&(o=t.getComputedStyle(e),f.top+=this.parseStyle(o.paddingTop),f.bottom-=this.parseStyle(o.paddingBottom),f.left+=this.parseStyle(o.paddingLeft),f.right-=this.parseStyle(o.paddingRight)),{top:Math.round(s.top-f.top),bottom:Math.round(f.bottom-s.bottom),left:Math.round(s.left-f.left),right:Math.round(f.right-s.right)}},parsePlacement:function(n){var t=i.auto.test(n);return t&&(n=n.replace(i.auto,"")),n=n.split("-"),n[0]=n[0]||"top",i.primary.test(n[0])||(n[0]="top"),n[1]=n[1]||"center",i.secondary.test(n[1])||(n[1]="center"),n[2]=t?!0:!1,n},positionElements:function(n,r,u,f){var c,l,e,h,v,y;if(n=this.getRawNode(n),r=this.getRawNode(r),c=angular.isDefined(r.offsetWidth)?r.offsetWidth:r.prop("offsetWidth"),l=angular.isDefined(r.offsetHeight)?r.offsetHeight:r.prop("offsetHeight"),u=this.parsePlacement(u),e=f?this.offset(n):this.position(n),h={top:0,left:0,placement:""},u[2]){var o=this.viewportOffset(n,f),a=t.getComputedStyle(r),s={width:c+Math.round(Math.abs(this.parseStyle(a.marginLeft)+this.parseStyle(a.marginRight))),height:l+Math.round(Math.abs(this.parseStyle(a.marginTop)+this.parseStyle(a.marginBottom)))};(u[0]="top"===u[0]&&s.height>o.top&&s.height<=o.bottom?"bottom":"bottom"===u[0]&&s.height>o.bottom&&s.height<=o.top?"top":"left"===u[0]&&s.width>o.left&&s.width<=o.right?"right":"right"===u[0]&&s.width>o.right&&s.width<=o.left?"left":u[0],u[1]="top"===u[1]&&s.height-e.height>o.bottom&&s.height-e.height<=o.top?"bottom":"bottom"===u[1]&&s.height-e.height>o.top&&s.height-e.height<=o.bottom?"top":"left"===u[1]&&s.width-e.width>o.right&&s.width-e.width<=o.left?"right":"right"===u[1]&&s.width-e.width>o.left&&s.width-e.width<=o.right?"left":u[1],"center"===u[1])&&(i.vertical.test(u[0])?(v=e.width/2-c/2,o.left+v<0&&s.width-e.width<=o.right?u[1]="left":o.right+v<0&&s.width-e.width<=o.left&&(u[1]="right")):(y=e.height/2-s.height/2,o.top+y<0&&s.height-e.height<=o.bottom?u[1]="top":o.bottom+y<0&&s.height-e.height<=o.top&&(u[1]="bottom")))}switch(u[0]){case"top":h.top=e.top-l;break;case"bottom":h.top=e.top+e.height;break;case"left":h.left=e.left-c;break;case"right":h.left=e.left+e.width}switch(u[1]){case"top":h.top=e.top;break;case"bottom":h.top=e.top+e.height-l;break;case"left":h.left=e.left;break;case"right":h.left=e.left+e.width-c;break;case"center":i.vertical.test(u[0])?h.left=e.left+e.width/2-c/2:h.top=e.top+e.height/2-l/2}return h.top=Math.round(h.top),h.left=Math.round(h.left),h.placement="center"===u[1]?u[0]:u[0]+"-"+u[1],h},adjustTop:function(n,t,i,r){if(-1!==n.indexOf("top")&&i!==r)return{top:t.top-r+"px"}},positionArrow:function(n,r){var o,f,e,u,c;if(n=this.getRawNode(n),o=n.querySelector(".tooltip-inner, .popover-inner"),o&&(f=angular.element(o).hasClass("tooltip-inner"),e=f?n.querySelector(".tooltip-arrow"):n.querySelector(".arrow"),e)){if(u={top:"",bottom:"",left:"",right:""},r=this.parsePlacement(r),"center"===r[1])return void angular.element(e).css(u);var l="border-"+r[0]+"-width",s=t.getComputedStyle(e)[l],h="border-";h+=i.vertical.test(r[0])?r[0]+"-"+r[1]:r[1]+"-"+r[0];h+="-radius";c=t.getComputedStyle(f?o:n)[h];switch(r[0]){case"top":u.bottom=f?"0":"-"+s;break;case"bottom":u.top=f?"0":"-"+s;break;case"left":u.right=f?"0":"-"+s;break;case"right":u.left=f?"0":"-"+s}u[r[1]]=c;angular.element(e).css(u)}}}}]);angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p){function ut(t){var i=l.parse(t,b,n.date),r;if(isNaN(i))for(r=0;r<ot.length;r++)if(i=l.parse(t,ot[r],n.date),!isNaN(i))return i;return i}function yt(n){if(angular.isNumber(n)&&(n=new Date(n)),!n)return null;if(angular.isDate(n)&&!isNaN(n))return n;if(angular.isString(n)){var t=ut(n);if(!isNaN(t))return l.toTimezone(t,g.getOption("timezone"))}if(g.getOption("allowInvalid"))return n}function pt(n,t){var r=n||t;return i.ngRequired||r?(angular.isNumber(r)&&(r=new Date(r)),r?angular.isDate(r)&&!isNaN(r)?!0:angular.isString(r)?!isNaN(ut(r)):!1:!0):!0}function ft(i){if(n.isOpen||!n.disabled){var r=nt[0],u=t[0].contains(i.target),f=void 0!==r.contains&&r.contains(i.target);!n.isOpen||u||f||n.$apply(function(){n.isOpen=!1})}}function ht(i){27===i.which&&n.isOpen?(i.preventDefault(),i.stopPropagation(),n.$apply(function(){n.isOpen=!1}),t[0].focus()):40!==i.which||n.isOpen||(i.preventDefault(),i.stopPropagation(),n.$apply(function(){n.isOpen=!0}))}function d(){if(n.isOpen){var r=angular.element(nt[0].querySelector(".uib-datepicker-popup")),f=i.popupPlacement?i.popupPlacement:a.placement,u=h.positionElements(t,r,f,it);r.css({top:u.top+"px",left:u.left+"px"});r.hasClass("uib-position-measure")&&r.removeClass("uib-position-measure")}}function wt(n){var t;return angular.version.minor<6?(t=angular.isObject(n.$options)?n.$options:{timezone:null},t.getOption=function(n){return t[n]}):t=n.$options,t}var b,ct,it,lt,at,vt,tt,et,k,w,g,nt,ot,rt=!1,st=[];this.init=function(u){if(w=u,g=wt(w),ct=angular.isDefined(i.closeOnDateSelection)?n.$parent.$eval(i.closeOnDateSelection):a.closeOnDateSelection,it=angular.isDefined(i.datepickerAppendToBody)?n.$parent.$eval(i.datepickerAppendToBody):a.appendToBody,lt=angular.isDefined(i.onOpenFocus)?n.$parent.$eval(i.onOpenFocus):a.onOpenFocus,at=angular.isDefined(i.datepickerPopupTemplateUrl)?i.datepickerPopupTemplateUrl:a.datepickerPopupTemplateUrl,vt=angular.isDefined(i.datepickerTemplateUrl)?i.datepickerTemplateUrl:a.datepickerTemplateUrl,ot=angular.isDefined(i.altInputFormats)?n.$parent.$eval(i.altInputFormats):a.altInputFormats,n.showButtonBar=angular.isDefined(i.showButtonBar)?n.$parent.$eval(i.showButtonBar):a.showButtonBar,a.html5Types[i.type]?(b=a.html5Types[i.type],rt=!0):(b=i.uibDatepickerPopup||a.datepickerPopup,i.$observe("uibDatepickerPopup",function(n){var t=n||a.datepickerPopup;if(t!==b&&(b=t,w.$modelValue=null,!b))throw new Error("uibDatepickerPopup must have a date format specified.");})),!b)throw new Error("uibDatepickerPopup must have a date format specified.");if(rt&&i.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");tt=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker><\/div><\/div>");tt.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":at});et=angular.element(tt.children()[0]);et.attr("template-url",vt);n.datepickerOptions||(n.datepickerOptions={});rt&&"month"===i.type&&(n.datepickerOptions.datepickerMode="month",n.datepickerOptions.minMode="month");et.attr("datepicker-options","datepickerOptions");rt?w.$formatters.push(function(t){return n.date=l.fromTimezone(t,g.getOption("timezone")),t}):(w.$$parserName="date",w.$validators.date=pt,w.$parsers.unshift(yt),w.$formatters.push(function(t){return w.$isEmpty(t)?(n.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),n.date=l.fromTimezone(t,g.getOption("timezone")),l.filter(n.date,b))}));w.$viewChangeListeners.push(function(){n.date=ut(w.$viewValue)});t.on("keydown",ht);nt=r(tt)(n);tt.remove();it?o.find("body").append(nt):t.after(nt);n.$on("$destroy",function(){for(n.isOpen===!0&&(s.$$phase||n.$apply(function(){n.isOpen=!1})),nt.remove(),t.off("keydown",ht),o.off("click",ft),k&&k.off("scroll",d),angular.element(e).off("resize",d);st.length;)st.shift()()})};n.getText=function(t){return n[t+"Text"]||a[t+"Text"]};n.isDisabled=function(t){"today"===t&&(t=l.fromTimezone(new Date,g.getOption("timezone")));var i={};return angular.forEach(["minDate","maxDate"],function(t){n.datepickerOptions[t]?angular.isDate(n.datepickerOptions[t])?i[t]=new Date(n.datepickerOptions[t]):(p&&u.warn("Literal date support has been deprecated, please switch to date object usage"),i[t]=new Date(c(n.datepickerOptions[t],"medium"))):i[t]=null}),n.datepickerOptions&&i.minDate&&n.compare(t,i.minDate)<0||i.maxDate&&n.compare(t,i.maxDate)>0};n.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};n.dateSelection=function(i){n.date=i;var r=n.date?l.filter(n.date,b):null;t.val(r);w.$setViewValue(r);ct&&(n.isOpen=!1,t[0].focus())};n.keydown=function(i){27===i.which&&(i.stopPropagation(),n.isOpen=!1,t[0].focus())};n.select=function(t,i){if(i.stopPropagation(),"today"===t){var r=new Date;angular.isDate(n.date)?(t=new Date(n.date),t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate())):(t=l.fromTimezone(r,g.getOption("timezone")),t.setHours(0,0,0,0))}n.dateSelection(t)};n.close=function(i){i.stopPropagation();n.isOpen=!1;t[0].focus()};n.disabled=angular.isDefined(i.disabled)||!1;i.ngDisabled&&st.push(n.$parent.$watch(f(i.ngDisabled),function(t){n.disabled=t}));n.$watch("isOpen",function(r){r?n.disabled?n.isOpen=!1:v(function(){d();lt&&n.$broadcast("uib:datepicker.focus");o.on("click",ft);var r=i.popupPlacement?i.popupPlacement:a.placement;it||h.parsePlacement(r)[2]?(k=k||angular.element(h.scrollParent(t)),k&&k.on("scroll",d)):k=null;angular.element(e).on("resize",d)},0,!1):(o.off("click",ft),k&&k.off("scroll",d),angular.element(e).off("resize",d))});n.$on("uib:datepicker.mode",function(){v(d,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}});angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(n){return function(t,i){var r;return function(){var u=this,f=Array.prototype.slice.call(arguments);r&&n.cancel(r);r=n(function(){t.apply(u,f)},i)}}}]);angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",function(){return{createNew:function(){var n={};return{entries:function(){return Object.keys(n).map(function(t){return{key:t,value:n[t]}})},get:function(t){return n[t]},hasKey:function(t){return!!n[t]},keys:function(){return Object.keys(n)},put:function(t,i){n[t]||(n[t]=[]);n[t].push(i)},remove:function(t,i){var r=n[t],u;r&&(u=r.indexOf(i),-1!==u&&r.splice(u,1),r.length||delete n[t])}}}}});angular.module("ui.bootstrap.dropdown",["ui.bootstrap.multiMap","ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope","$$multiMap",function(n,t,i){var r=null,u=i.createNew(),f;this.isOnlyOpen=function(n,t){var i=u.get(t),r;return i&&(r=i.reduce(function(t,i){return i.scope===n?i:t},{}),r)?1===i.length:!1};this.open=function(t,i,e){var o,s;(r||n.on("click",f),r&&r!==t&&(r.isOpen=!1),r=t,e)&&(o=u.get(e),o?(s=o.map(function(n){return n.scope}),-1===s.indexOf(t)&&u.put(e,{scope:t})):u.put(e,{scope:t}))};this.close=function(t,i,e){var o,s;(r===t&&(n.off("click",f),n.off("keydown",this.keybindFilter),r=null),e)&&(o=u.get(e),o&&(s=o.reduce(function(n,i){return i.scope===t?i:n},{}),s&&u.remove(e,s)))};f=function(n){var i,u;!r||!r.isOpen||n&&"disabled"===r.getAutoClose()||n&&3===n.which||(i=r.getToggleElement(),n&&i&&i[0].contains(n.target)||(u=r.getDropdownElement(),n&&"outsideClick"===r.getAutoClose()&&u&&u[0].contains(n.target)||(r.focusToggleElement(),r.isOpen=!1,t.$$phase||r.$apply())))};this.keybindFilter=function(n){if(r){var t=r.getDropdownElement(),i=r.getToggleElement(),u=t&&t[0].contains(n.target),e=i&&i[0].contains(n.target);27===n.which?(n.stopPropagation(),r.focusToggleElement(),f()):r.isKeynavEnabled()&&-1!==[38,40].indexOf(n.which)&&r.isOpen&&(u||e)&&(n.preventDefault(),n.stopPropagation(),r.focusDropdownEntry(n.which))}}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(n,t,i,r,u,f,e,o,s,h,c){function p(){t.append(l.dropdownMenu)}var y,w,l=this,a=n.$new(),k=u.appendToOpenClass,d=u.openClass,v=angular.noop,g=i.onToggle?r(i.onToggle):angular.noop,b=!1,nt=s.find("body");t.addClass("dropdown");this.init=function(){i.isOpen&&(w=r(i.isOpen),v=w.assign,n.$watch(w,function(n){a.isOpen=!!n}));b=angular.isDefined(i.keyboardNav)};this.toggle=function(n){return a.isOpen=arguments.length?!!n:!a.isOpen,angular.isFunction(v)&&v(a,a.isOpen),a.isOpen};this.isOpen=function(){return a.isOpen};a.getToggleElement=function(){return l.toggleElement};a.getAutoClose=function(){return i.autoClose||"always"};a.getElement=function(){return t};a.isKeynavEnabled=function(){return b};a.focusDropdownEntry=function(n){var i=l.dropdownMenu?angular.element(l.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(n){case 40:l.selectedOption=angular.isNumber(l.selectedOption)?l.selectedOption===i.length-1?l.selectedOption:l.selectedOption+1:0;break;case 38:l.selectedOption=angular.isNumber(l.selectedOption)?0===l.selectedOption?0:l.selectedOption-1:i.length-1}i[l.selectedOption].focus()};a.getDropdownElement=function(){return l.dropdownMenu};a.focusToggleElement=function(){l.toggleElement&&l.toggleElement[0].focus()};a.$watch("isOpen",function(u,w){var b=null,ft=!1,et,ct,tt,ot,rt,it,st,ut,vt,ht;angular.isDefined(i.dropdownAppendTo)&&(et=r(i.dropdownAppendTo)(a),et&&(b=angular.element(et)));angular.isDefined(i.dropdownAppendToBody)&&(ct=r(i.dropdownAppendToBody)(a),ct!==!1&&(ft=!0));(ft&&!b&&(b=nt),b&&l.dropdownMenu&&(u?(b.append(l.dropdownMenu),t.on("$destroy",p)):(t.off("$destroy",p),p())),b&&l.dropdownMenu)&&(it=o.positionElements(t,l.dropdownMenu,"bottom-left",!0),st=0,(tt={top:it.top+"px",display:u?"block":"none"},ot=l.dropdownMenu.hasClass("dropdown-menu-right"),ot?(tt.left="auto",rt=o.scrollbarPadding(b),rt.heightOverflow&&rt.scrollbarWidth&&(st=rt.scrollbarWidth),tt.right=window.innerWidth-st-(it.left+t.prop("offsetWidth"))+"px"):(tt.left=it.left+"px",tt.right="auto"),ft)||(ut=o.offset(b),tt.top=it.top-ut.top+"px",ot?tt.right=window.innerWidth-(it.left-ut.left+t.prop("offsetWidth"))+"px":tt.left=it.left-ut.left+"px"),l.dropdownMenu.css(tt));var lt=b?b:t,at=b?k:d,yt=lt.hasClass(at),pt=f.isOnlyOpen(n,b);yt===!u&&(vt=b?pt?"removeClass":"addClass":u?"addClass":"removeClass",e[vt](lt,at).then(function(){angular.isDefined(u)&&u!==w&&g(n,{open:!!u})}));u?(l.dropdownMenuTemplateUrl?c(l.dropdownMenuTemplateUrl).then(function(n){y=a.$new();h(n.trim())(y,function(n){var t=n;l.dropdownMenu.replaceWith(t);l.dropdownMenu=t;s.on("keydown",f.keybindFilter)})}):s.on("keydown",f.keybindFilter),a.focusToggleElement(),f.open(a,t,b)):((f.close(a,t,b),l.dropdownMenuTemplateUrl)&&(y&&y.$destroy(),ht=angular.element('<ul class="dropdown-menu"><\/ul>'),l.dropdownMenu.replaceWith(ht),l.dropdownMenu=ht),l.selectedOption=null);angular.isFunction(v)&&v(n,u)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(n,t,i,r){r.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(n,t,i,r){if(r&&!angular.isDefined(i.dropdownNested)){t.addClass("dropdown-menu");var u=i.templateUrl;u&&(r.dropdownMenuTemplateUrl=u);r.dropdownMenu||(r.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(n,t,i,r){if(r){t.addClass("dropdown-toggle");r.toggleElement=t;var u=function(u){u.preventDefault();t.hasClass("disabled")||i.disabled||n.$apply(function(){r.toggle()})};t.on("click",u);t.attr({"aria-haspopup":!0,"aria-expanded":!1});n.$watch(r.isOpen,function(n){t.attr("aria-expanded",!!n)});n.$on("$destroy",function(){t.off("click",u)})}}}});angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var n=[];return{add:function(t,i){n.push({key:t,value:i})},get:function(t){for(var i=0;i<n.length;i++)if(t===n[i].key)return n[i]},keys:function(){for(var i=[],t=0;t<n.length;t++)i.push(n[t].key);return i},top:function(){return n[n.length-1]},remove:function(t){for(var r=-1,i=0;i<n.length;i++)if(t===n[i].key){r=i;break}return n.splice(r,1)[0]},removeTop:function(){return n.pop()},length:function(){return n.length}}}}});angular.module("ui.bootstrap.modal",["ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position"]).provider("$uibResolve",function(){var n=this;this.resolver=null;this.setResolver=function(n){this.resolver=n};this.$get=["$injector","$q",function(t,i){var r=n.resolver?t.get(n.resolver):null;return{resolve:function(n,u,f,e){if(r)return r.resolve(n,u,f,e);var o=[];return angular.forEach(n,function(n){angular.isFunction(n)||angular.isArray(n)?o.push(i.resolve(t.invoke(n))):angular.isString(n)?o.push(i.resolve(t.get(n))):o.push(i.resolve(n))}),i.all(o).then(function(t){var i={},r=0;return angular.forEach(n,function(n,u){i[u]=t[r++]}),i})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(n,t,i){function r(t,r,u){u.modalInClass&&(n.addClass(r,u.modalInClass),t.$on(i.NOW_CLOSING_EVENT,function(i,f){var e=f();t.modalOptions.animation?n.removeClass(r,u.modalInClass).then(e):e()}))}return{restrict:"A",compile:function(n,t){return n.addClass(t.backdropClass),r}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(n,t,i,r){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(u,f,e){f.addClass(e.windowTopClass||"");u.size=e.size;u.close=function(t){var i=n.getTop();i&&i.value.backdrop&&"static"!==i.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))};f.on("click",u.close);u.$isRendered=!0;var o=t.defer();u.$$postDigest(function(){o.resolve()});o.promise.then(function(){var o=null;e.modalInClass&&(o=i(f,{addClass:e.modalInClass}).start(),u.$on(n.NOW_CLOSING_EVENT,function(n,t){var r=t();i(f,{removeClass:e.modalInClass}).start().then(r)}));t.when(o).then(function(){var i=n.getTop(),t;(i&&n.modalRendered(i.key),r[0].activeElement&&f[0].contains(r[0].activeElement))||(t=f[0].querySelector("[autofocus]"),t?t.focus():f[0].focus())})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(n,t){t.modalAnimation&&n.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(n){return{link:function(t,i,r,u,f){f(t.$parent,function(t){i.empty();n.enter(t,i)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(n,t,i,r,u,f,e,o,s){function ft(n){var t="-";return n.replace(ht,function(n,i){return(i?t:"")+n.toLowerCase()})}function et(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}function b(){for(var n=-1,i=c.keys(),t=0;t<i.length;t++)c.get(i[t]).value.backdrop&&(n=t);return n>-1&&y>n&&(n=y),n}function d(n,t){var i=c.get(n).value,r=i.appendTo;c.remove(n);p=c.top();p&&(y=parseInt(p.value.modalDomEl.attr("index"),10));nt(i.modalDomEl,i.modalScope,function(){var t=i.openedClass||ut,u;k.remove(t,n);u=k.hasKey(t);r.toggleClass(t,u);!u&&a&&a.heightOverflow&&a.scrollbarWidth&&(a.originalRight?r.css({paddingRight:a.originalRight+"px"}):r.css({paddingRight:""}),a=null);g(!0)},i.closedDeferred);ot();t&&t.focus?t.focus():r.focus&&r.focus()}function g(n){var t;c.length()>0&&(t=c.top().value,t.modalDomEl.toggleClass(t.windowTopClass||"",n))}function ot(){if(l&&-1===b()){var n=v;nt(l,v,function(){n=null});l=void 0;v=void 0}}function nt(t,i,r,u){function o(){o.done||(o.done=!0,n.leave(t).then(function(){r&&r();t.remove();u&&u.resolve()}),i.$destroy())}var e,s=null,c=function(){return e||(e=f.defer(),s=e.promise),function(){e.resolve()}};return i.$broadcast(h.NOW_CLOSING_EVENT,c),f.when(s).then(o)}function tt(n){var t,i,r;if(n.isDefaultPrevented())return n;if(t=c.top(),t)switch(n.which){case 27:t.value.keyboard&&(n.preventDefault(),u.$apply(function(){h.dismiss(t.key,"escape key press")}));break;case 9:i=h.loadFocusElementList(t);r=!1;n.shiftKey?(h.isFocusInFirstItem(n,i)||h.isModalFocused(n,t))&&(r=h.focusLastFocusableElement(i)):h.isFocusInLastItem(n,i)&&(r=h.focusFirstFocusableElement(i));r&&(n.preventDefault(),n.stopPropagation())}}function it(n,t,i){return!n.value.modalScope.$broadcast("modal.closing",t,i).defaultPrevented}function rt(){Array.prototype.forEach.call(document.querySelectorAll("["+w+"]"),function(n){var i=parseInt(n.getAttribute(w),10),t=i-1;n.setAttribute(w,t);t||(n.removeAttribute(w),n.removeAttribute("aria-hidden"))})}var l,v,a,ut="modal-open",c=o.createNew(),k=e.createNew(),h={NOW_CLOSING_EVENT:"modal.stack.now-closing"},y=0,p=null,w="data-bootstrap-modal-aria-hidden-count",st="a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]",ht=/[A-Z]/g;return u.$watch(b,function(n){v&&(v.index=n)}),i.on("keydown",tt),u.$on("$destroy",function(){i.off("keydown",tt)}),h.open=function(t,f){function nt(n){function t(n){var t=n.parent()?n.parent().children():[];return Array.prototype.filter.call(t,function(t){return t!==n[0]})}if(n&&"BODY"!==n[0].tagName)return t(n).forEach(function(n){var i="true"===n.getAttribute("aria-hidden"),t=parseInt(n.getAttribute(w),10);t||(t=i?1:0);n.setAttribute(w,t+1);n.setAttribute("aria-hidden","true")}),nt(n.parent())}var it=i[0].activeElement,tt=f.openedClass||ut,e,d,h,o;g(!1);p=c.top();c.add(t,{deferred:f.deferred,renderDeferred:f.renderDeferred,closedDeferred:f.closedDeferred,modalScope:f.scope,backdrop:f.backdrop,keyboard:f.keyboard,openedClass:f.openedClass,windowTopClass:f.windowTopClass,animation:f.animation,appendTo:f.appendTo});k.put(tt,t);e=f.appendTo;d=b();d>=0&&!l&&(v=u.$new(!0),v.modalOptions=f,v.index=d,l=angular.element('<div uib-modal-backdrop="modal-backdrop"><\/div>'),l.attr({"class":"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),f.backdropClass&&l.addClass(f.backdropClass),f.animation&&l.attr("modal-animation","true"),r(l)(v),n.enter(l,e),s.isScrollable(e)&&(a=s.scrollbarPadding(e),a.heightOverflow&&a.scrollbarWidth&&e.css({paddingRight:a.right+"px"})));f.component?(h=document.createElement(ft(f.component.name)),h=angular.element(h),h.attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):h=f.content;y=p?parseInt(p.value.modalDomEl.attr("index"),10)+1:0;o=angular.element('<div uib-modal-window="modal-window"><\/div>');o.attr({"class":"modal","template-url":f.windowTemplateUrl,"window-top-class":f.windowTopClass,role:"dialog","aria-labelledby":f.ariaLabelledBy,"aria-describedby":f.ariaDescribedBy,size:f.size,index:y,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(h);f.windowClass&&o.addClass(f.windowClass);f.animation&&o.attr("modal-animation","true");e.addClass(tt);f.scope&&(f.scope.$$topModalIndex=y);n.enter(r(o)(f.scope),e);c.top().value.modalDomEl=o;c.top().value.modalOpener=it;nt(o)},h.close=function(n,t){var i=c.get(n);return rt(),i&&it(i,t,!0)?(i.value.modalScope.$$uibDestructionScheduled=!0,i.value.deferred.resolve(t),d(n,i.value.modalOpener),!0):!i},h.dismiss=function(n,t){var i=c.get(n);return rt(),i&&it(i,t,!1)?(i.value.modalScope.$$uibDestructionScheduled=!0,i.value.deferred.reject(t),d(n,i.value.modalOpener),!0):!i},h.dismissAll=function(n){for(var t=this.getTop();t&&this.dismiss(t.key,n);)t=this.getTop()},h.getTop=function(){return c.top()},h.modalRendered=function(n){var t=c.get(n);t&&t.value.renderDeferred.resolve()},h.focusFirstFocusableElement=function(n){return n.length>0?(n[0].focus(),!0):!1},h.focusLastFocusableElement=function(n){return n.length>0?(n[n.length-1].focus(),!0):!1},h.isModalFocused=function(n,t){if(n&&t){var i=t.value.modalDomEl;if(i&&i.length)return(n.target||n.srcElement)===i[0]}return!1},h.isFocusInFirstItem=function(n,t){return t.length>0?(n.target||n.srcElement)===t[0]:!1},h.isFocusInLastItem=function(n,t){return t.length>0?(n.target||n.srcElement)===t[t.length-1]:!1},h.loadFocusElementList=function(n){var t,i;if(n&&(t=n.value.modalDomEl,t&&t.length))return i=t[0].querySelectorAll(st),i?Array.prototype.filter.call(i,function(n){return et(n)}):i},h}]).provider("$uibModal",function(){var n={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,i,r,u,f,e,o){function c(n){return n.template?i.when(n.template):u(angular.isFunction(n.templateUrl)?n.templateUrl():n.templateUrl)}var h={},s=null;return h.getPromiseChain=function(){return s},h.open=function(u){function v(){return w}var l=i.defer(),a=i.defer(),y=i.defer(),p=i.defer(),h={result:l.promise,opened:a.promise,closed:y.promise,rendered:p.promise,close:function(n){return o.close(h,n)},dismiss:function(n){return o.dismiss(h,n)}},w,b;if(u=angular.extend({},n.options,u),u.resolve=u.resolve||{},u.appendTo=u.appendTo||r.find("body").eq(0),!u.appendTo.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");if(!u.component&&!u.template&&!u.templateUrl)throw new Error("One of component or template or templateUrl options is required.");return w=u.component?i.when(e.resolve(u.resolve,{},null,null)):i.all([c(u),e.resolve(u.resolve,{},null,null)]),b=s=i.all([s]).then(v,v).then(function(n){function w(t,r,u,f){t.$scope=i;t.$scope.$resolve={};u?t.$scope.$uibModalInstance=h:t.$uibModalInstance=h;var e=r?n[1]:n;angular.forEach(e,function(n,i){f&&(t[i]=n);t.$scope.$resolve[i]=n})}var b=u.scope||t,i=b.$new();i.$close=h.close;i.$dismiss=h.dismiss;i.$on("$destroy",function(){i.$$uibDestructionScheduled||i.$dismiss("$uibUnscheduledDestruction")});var r,e,s={scope:i,deferred:l,renderDeferred:p,closedDeferred:y,animation:u.animation,backdrop:u.backdrop,keyboard:u.keyboard,backdropClass:u.backdropClass,windowTopClass:u.windowTopClass,windowClass:u.windowClass,windowTemplateUrl:u.windowTemplateUrl,ariaLabelledBy:u.ariaLabelledBy,ariaDescribedBy:u.ariaDescribedBy,size:u.size,openedClass:u.openedClass,appendTo:u.appendTo},c={},v={};u.component?(w(c,!1,!0,!1),c.name=u.component,s.component=c):u.controller&&(w(v,!0,!1,!0),e=f(u.controller,v,!0,u.controllerAs),u.controllerAs&&u.bindToController&&(r=e.instance,r.$close=i.$close,r.$dismiss=i.$dismiss,angular.extend(r,{$resolve:v.$scope.$resolve},b)),r=e(),angular.isFunction(r.$onInit)&&r.$onInit());u.component||(s.content=n[0]);o.open(h,s);a.resolve(!0)},function(n){a.reject(n);l.reject(n)})["finally"](function(){s===b&&(s=null)}),h},h}]};return n});angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(n){return{create:function(t,i,r){t.setNumPages=r.numPages?n(r.numPages).assign:angular.noop;t.ngModelCtrl={$setViewValue:angular.noop};t._watchers=[];t.init=function(n,u){t.ngModelCtrl=n;t.config=u;n.$render=function(){t.render()};r.itemsPerPage?t._watchers.push(i.$parent.$watch(r.itemsPerPage,function(n){t.itemsPerPage=parseInt(n,10);i.totalPages=t.calculateTotalPages();t.updatePage()})):t.itemsPerPage=u.itemsPerPage;i.$watch("totalItems",function(n,r){(angular.isDefined(n)||n!==r)&&(i.totalPages=t.calculateTotalPages(),t.updatePage())})};t.calculateTotalPages=function(){var n=t.itemsPerPage<1?1:Math.ceil(i.totalItems/t.itemsPerPage);return Math.max(n||0,1)};t.render=function(){i.page=parseInt(t.ngModelCtrl.$viewValue,10)||1};i.selectPage=function(n,r){r&&r.preventDefault();var u=!i.ngDisabled||!r;u&&i.page!==n&&n>0&&n<=i.totalPages&&(r&&r.target&&r.target.blur(),t.ngModelCtrl.$setViewValue(n),t.ngModelCtrl.$render())};i.getText=function(n){return i[n+"Text"]||t.config[n+"Text"]};i.noPrevious=function(){return 1===i.page};i.noNext=function(){return i.page===i.totalPages};t.updatePage=function(){t.setNumPages(i.$parent,i.totalPages);i.page>i.totalPages?i.selectPage(i.totalPages):t.ngModelCtrl.$render()};i.$on("$destroy",function(){for(;t._watchers.length;)t._watchers.shift()()})}}}]);angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(n,t,i,r){n.align=angular.isDefined(t.align)?n.$parent.$eval(t.align):r.align;i.create(this,n,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(n){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(n,t){return t.templateUrl||"uib/template/pager/pager.html"},link:function(t,i,r,u){i.addClass("pager");var e=u[0],f=u[1];f&&e.init(f,n)}}}]);angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(n,t,i,r,u){function e(n,t,i){return{number:n,text:t,active:i}}function l(n,t){var u=[],i=1,r=t,c=angular.isDefined(f)&&t>f,s,l,y,p,w,b,k,d;for(c&&(h?(i=Math.max(n-Math.floor(f/2),1),r=i+f-1,r>t&&(r=t,i=r-f+1)):(i=(Math.ceil(n/f)-1)*f+1,r=Math.min(i+f-1,t))),s=i;r>=s;s++)l=e(s,v(s),s===n),u.push(l);return c&&f>0&&(!h||a||o)&&(i>1&&((!o||i>3)&&(y=e(i-1,"...",!1),u.unshift(y)),o&&(3===i&&(p=e(2,"2",!1),u.unshift(p)),w=e(1,"1",!1),u.unshift(w))),t>r&&((!o||t-2>r)&&(b=e(r+1,"...",!1),u.push(b)),o&&(r===t-2&&(k=e(t-1,t-1,!1),u.push(k)),d=e(t,t,!1),u.push(d)))),u}var s=this,f=angular.isDefined(t.maxSize)?n.$parent.$eval(t.maxSize):u.maxSize,h=angular.isDefined(t.rotate)?n.$parent.$eval(t.rotate):u.rotate,a=angular.isDefined(t.forceEllipses)?n.$parent.$eval(t.forceEllipses):u.forceEllipses,o=angular.isDefined(t.boundaryLinkNumbers)?n.$parent.$eval(t.boundaryLinkNumbers):u.boundaryLinkNumbers,v=angular.isDefined(t.pageLabel)?function(i){return n.$parent.$eval(t.pageLabel,{$page:i})}:angular.identity,c;n.boundaryLinks=angular.isDefined(t.boundaryLinks)?n.$parent.$eval(t.boundaryLinks):u.boundaryLinks;n.directionLinks=angular.isDefined(t.directionLinks)?n.$parent.$eval(t.directionLinks):u.directionLinks;t.$set("role","menu");r.create(this,n,t);t.maxSize&&s._watchers.push(n.$parent.$watch(i(t.maxSize),function(n){f=parseInt(n,10);s.render()}));c=this.render;this.render=function(){c();n.page>0&&n.page<=n.totalPages&&(n.pages=l(n.page,n.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(n,t){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(n,t){return t.templateUrl||"uib/template/pagination/pagination.html"},link:function(n,i,r,u){i.addClass("pagination");var e=u[0],f=u[1];f&&e.init(f,t)}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function i(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var r={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},n={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(u,f,e,o,s,h,c,l,a){function y(n){if(27===n.which){var t=v.top();t&&(t.value.close(),t=null)}}var v=a.createNew();return o.on("keyup",y),c.$on("$destroy",function(){o.off("keyup",y)}),function(u,c,a,y){function p(t){var i=(t||y.trigger||a).split(" "),r=i.map(function(t){return n[t]||t});return{show:i,hide:r}}y=angular.extend({},r,t,y);var k=i(u),w=h.startSymbol(),b=h.endSymbol(),d="<div "+k+'-popup uib-title="'+w+"title"+b+'" '+(y.useContentExp?'content-exp="contentExp()" ':'content="'+w+"content"+b+'" ')+'origin-scope="origScope" class="uib-position-measure '+c+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ><\/div>';return{compile:function(){var n=f(d);return function(t,i,r){function g(){f.isOpen?nt():at()}function at(){oi&&!t.$eval(r[c+"Enable"])||(vt(),ri(),f.popupDelay?it||(it=e(dt,f.popupDelay,!1)):dt())}function nt(){st();f.popupCloseDelay?rt||(rt=e(k,f.popupCloseDelay,!1)):k()}function dt(){return st(),vt(),f.content?(ii(),void f.$evalAsync(function(){f.isOpen=!0;gt(!0);ot()})):angular.noop}function st(){it&&(e.cancel(it),it=null);d&&(e.cancel(d),d=null)}function k(){f&&f.$evalAsync(function(){f&&(f.isOpen=!1,gt(!1),f.animation?tt||(tt=e(yt,150,!1)):yt())})}function vt(){rt&&(e.cancel(rt),rt=null);tt&&(e.cancel(tt),tt=null)}function ii(){h||(b=f.$new(),h=n(b,function(n){ft?o.find("body").append(n):i.after(n)}),v.add(f,{close:k}),ui())}function yt(){st();vt();fi();h&&(h.remove(),h=null,ht&&e.cancel(ht));v.remove(f);b&&(b.$destroy(),b=null)}function ri(){var n,i,e;f.title=r[c+"Title"];f.content=ct?ct(t):r[u];f.popupClass=r[c+"Class"];f.placement=angular.isDefined(r[c+"Placement"])?r[c+"Placement"]:y.placement;n=s.parsePlacement(f.placement);ut=n[1]?n[0]+"-"+n[1]:n[0];i=parseInt(r[c+"PopupDelay"],10);e=parseInt(r[c+"PopupCloseDelay"],10);f.popupDelay=isNaN(i)?y.popupDelay:i;f.popupCloseDelay=isNaN(e)?y.popupCloseDelay:e}function gt(n){et&&angular.isFunction(et.assign)&&et.assign(t,n)}function ui(){a.length=0;ct?(a.push(t.$watch(ct,function(n){f.content=n;!n&&f.isOpen&&k()})),a.push(b.$watch(function(){pt||(pt=!0,b.$$postDigest(function(){pt=!1;f&&f.isOpen&&ot()}))}))):a.push(r.$observe(u,function(n){f.content=n;!n&&f.isOpen?k():ot()}));a.push(r.$observe(c+"Title",function(n){f.title=n;f.isOpen&&ot()}));a.push(r.$observe(c+"Placement",function(n){f.placement=n?n:y.placement;f.isOpen&&ot()}))}function fi(){a.length&&(angular.forEach(a,function(n){n()}),a.length=0)}function ni(n){f&&f.isOpen&&h&&(i[0].contains(n.target)||h[0].contains(n.target)||nt())}function ti(n){27===n.which&&nt()}function ei(){var u=[],f=[],n=t.$eval(r[c+"Trigger"]);wt();angular.isObject(n)?(Object.keys(n).forEach(function(t){u.push(t);f.push(n[t])}),w={show:u,hide:f}):w=p(n);"none"!==w.show&&w.show.forEach(function(n,t){"outsideClick"===n?(i.on("click",g),o.on("click",ni)):n===w.hide[t]?i.on(n,g):n&&(i.on(n,at),i.on(w.hide[t],nt));i.on("keypress",ti)})}var h,b,tt,it,rt,d,ht,ut,ft=angular.isDefined(y.appendToBody)?y.appendToBody:!1,w=p(void 0),oi=angular.isDefined(r[c+"Enable"]),f=t.$new(!0),pt=!1,et=angular.isDefined(r[c+"IsOpen"])?l(r[c+"IsOpen"]):!1,ct=y.useContentExp?l(r[u]):!1,a=[],ot=function(){h&&h.html()&&(d||(d=e(function(){var n=s.positionElements(i,h,f.placement,ft),r=angular.isDefined(h.offsetHeight)?h.offsetHeight:h.prop("offsetHeight"),u=ft?s.offset(i):s.position(i),t;h.css({top:n.top+"px",left:n.left+"px"});t=n.placement.split("-");h.hasClass(t[0])||(h.removeClass(ut.split("-")[0]),h.addClass(t[0]));h.hasClass(y.placementClassPrefix+n.placement)||(h.removeClass(y.placementClassPrefix+ut),h.addClass(y.placementClassPrefix+n.placement));ht=e(function(){var i=angular.isDefined(h.offsetHeight)?h.offsetHeight:h.prop("offsetHeight"),n=s.adjustTop(t,u,r,i);n&&h.css(n);ht=null},0,!1);h.hasClass("uib-position-measure")?(s.positionArrow(h,n.placement),h.removeClass("uib-position-measure")):ut!==n.placement&&s.positionArrow(h,n.placement);ut=n.placement;d=null},0,!1)))},wt,bt,kt,lt;f.origScope=t;f.isOpen=!1;f.contentExp=function(){return f.content};r.$observe("disabled",function(n){n&&st();n&&f.isOpen&&k()});et&&t.$watch(et,function(n){f&&!n===f.isOpen&&g()});wt=function(){w.show.forEach(function(n){"outsideClick"===n?i.off("click",g):(i.off(n,at),i.off(n,g));i.off("keypress",ti)});w.hide.forEach(function(n){"outsideClick"===n?o.off("click",ni):i.off(n,nt)})};ei();bt=t.$eval(r[c+"Animation"]);f.animation=angular.isDefined(bt)?!!bt:y.animation;lt=c+"AppendToBody";kt=lt in r&&void 0===r[lt]?!0:t.$eval(r[lt]);ft=angular.isDefined(kt)?kt:ft;t.$on("$destroy",function(){wt();yt();f=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(n,t,i,r){return{link:function(u,f,e){var o,s,h,a=u.$eval(e.tooltipTemplateTranscludeScope),l=0,c=function(){s&&(s.remove(),s=null);o&&(o.$destroy(),o=null);h&&(n.leave(h).then(function(){s=null}),s=h,h=null)};u.$watch(t.parseAsResourceUrl(e.uibTooltipTemplateTransclude),function(t){var e=++l;t?(r(t,!0).then(function(r){if(e===l){var u=a.$new(),s=r,v=i(s)(u,function(t){c();n.enter(t,f)});o=u;h=v;o.$emit("$includeContentLoaded",t)}},function(){e===l&&(c(),u.$emit("$includeContentError",t))}),u.$emit("$includeContentRequested",t)):c()});u.$on("$destroy",c)}}}]).directive("uibTooltipClasses",["$uibPosition",function(n){return{restrict:"A",link:function(t,i,r){if(t.placement){var u=n.parsePlacement(t.placement);i.addClass(u[0])}t.popupClass&&i.addClass(t.popupClass);t.animation&&i.addClass(r.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(n){return n("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(n){return n("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(n){return n("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(n){return n("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(n){return n("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(n){return n("uibPopover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(n,t,i){function r(){return angular.isDefined(n.maxParam)?n.maxParam:i.max}var u=this,f=angular.isDefined(t.animate)?n.$parent.$eval(t.animate):i.animate;this.bars=[];n.max=r();this.addBar=function(n,t,i){f||t.css({transition:"none"});this.bars.push(n);n.max=r();n.title=i&&angular.isDefined(i.title)?i.title:"progressbar";n.$watch("value",function(){n.recalculatePercentage()});n.recalculatePercentage=function(){var t=u.bars.reduce(function(n,t){return t.percent=+(100*t.value/t.max).toFixed(2),n+t.percent},0);t>100&&(n.percent-=t-100)};n.$on("$destroy",function(){t=null;u.removeBar(n)})};this.removeBar=function(n){this.bars.splice(this.bars.indexOf(n),1);this.bars.forEach(function(n){n.recalculatePercentage()})};n.$watch("maxParam",function(){u.bars.forEach(function(n){n.max=r();n.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(n,t,i,r){r.addBar(n,t,i)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(n,t,i,r){r.addBar(n,angular.element(t.children()[0]),{title:i.title})}}});angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(n,t,i){var r={$setViewValue:angular.noop},u=this;this.init=function(u){var f,e;r=u;r.$render=this.render;r.$formatters.push(function(n){return angular.isNumber(n)&&n<<0!==n&&(n=Math.round(n)),n});this.stateOn=angular.isDefined(t.stateOn)?n.$parent.$eval(t.stateOn):i.stateOn;this.stateOff=angular.isDefined(t.stateOff)?n.$parent.$eval(t.stateOff):i.stateOff;this.enableReset=angular.isDefined(t.enableReset)?n.$parent.$eval(t.enableReset):i.enableReset;f=angular.isDefined(t.titles)?n.$parent.$eval(t.titles):i.titles;this.titles=angular.isArray(f)&&f.length>0?f:i.titles;e=angular.isDefined(t.ratingStates)?n.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max);n.range=this.buildTemplateObjects(e)};this.buildTemplateObjects=function(n){for(var t=0,i=n.length;i>t;t++)n[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},n[t]);return n};this.getTitle=function(n){return n>=this.titles.length?n+1:this.titles[n]};n.rate=function(t){if(!n.readonly&&t>=0&&t<=n.range.length){var i=u.enableReset&&r.$viewValue===t?0:t;r.$setViewValue(i);r.$render()}};n.enter=function(t){n.readonly||(n.value=t);n.onHover({value:t})};n.reset=function(){n.value=r.$viewValue;n.onLeave()};n.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),n.rate(n.value+(38===t.which||39===t.which?1:-1)))};this.render=function(){n.value=r.$viewValue;n.title=u.getTitle(n.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(n,t,i,r){var u=r[0],f=r[1];u.init(f)}}});angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(n){function r(n){for(var i=0;i<t.tabs.length;i++)if(t.tabs[i].index===n)return i}var i,t=this,u;t.tabs=[];t.select=function(n,f){var s,o,e;if(!u){if(s=r(i),o=t.tabs[s],o){if(o.tab.onDeselect({$event:f,$selectedIndex:n}),f&&f.isDefaultPrevented())return;o.tab.active=!1}e=t.tabs[n];e?(e.tab.onSelect({$event:f}),e.tab.active=!0,t.active=e.index,i=e.index):!e&&angular.isDefined(i)&&(t.active=null,i=null)}};t.addTab=function(n){if(t.tabs.push({tab:n,index:n.index}),t.tabs.sort(function(n,t){return n.index>t.index?1:n.index<t.index?-1:0}),n.index===t.active||!angular.isDefined(t.active)&&1===t.tabs.length){var i=r(n.index);t.select(i)}};t.removeTab=function(n){for(var i,u,r=0;r<t.tabs.length;r++)if(t.tabs[r].tab===n){i=r;break}t.tabs[i].index===t.active&&(u=i===t.tabs.length-1?i-1:i+1%t.tabs.length,t.select(u));t.tabs.splice(i,1)};n.$watch("tabset.active",function(n){angular.isDefined(n)&&n!==i&&t.select(r(n))});n.$on("$destroy",function(){u=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(n,t){return t.templateUrl||"uib/template/tabs/tabset.html"},link:function(n,t,i){n.vertical=angular.isDefined(i.vertical)?n.$parent.$eval(i.vertical):!1;n.justified=angular.isDefined(i.justified)?n.$parent.$eval(i.justified):!1}}}).directive("uibTab",["$parse",function(n){return{require:"^uibTabset",replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(t,i,r,u,f){t.disabled=!1;r.disable&&t.$parent.$watch(n(r.disable),function(n){t.disabled=!!n});angular.isUndefined(r.index)&&(t.index=u.tabs&&u.tabs.length?Math.max.apply(null,u.tabs.map(function(n){return n.index}))+1:0);angular.isUndefined(r.classes)&&(t.classes="");t.select=function(n){if(!t.disabled){for(var r,i=0;i<u.tabs.length;i++)if(u.tabs[i].tab===t){r=i;break}u.select(r,n)}};u.addTab(t);t.$on("$destroy",function(){u.removeTab(t)});t.$transcludeFn=f}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}).directive("uibTabContentTransclude",function(){function n(n){return n.tagName&&(n.hasAttribute("uib-tab-heading")||n.hasAttribute("data-uib-tab-heading")||n.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===n.tagName.toLowerCase()||"data-uib-tab-heading"===n.tagName.toLowerCase()||"x-uib-tab-heading"===n.tagName.toLowerCase()||"uib:tab-heading"===n.tagName.toLowerCase())}return{restrict:"A",require:"^uibTabset",link:function(t,i,r){var u=t.$eval(r.uibTabContentTransclude).tab;u.$transcludeFn(u.$parent,function(t){angular.forEach(t,function(t){n(t)?u.headingElement=t:i.append(t)})})}}});angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(n,t,i,r,u,f,e){function ut(){var t=+n.hours,i=n.showMeridian?t>0&&13>t:t>=0&&24>t;if(i&&""!==n.hours)return(n.showMeridian&&(12===t&&(t=0),n.meridian===v[1]&&(t+=12)),t)}function ft(){var t=+n.minutes,i=t>=0&&60>t;if(i&&""!==n.minutes)return t}function ct(){var t=+n.seconds;if(t>=0&&60>t)return t}function p(n,t){return null===n?"":angular.isDefined(n)&&n.toString().length<2&&!t?"0"+n:n.toString()}function g(n){nt();s.$setViewValue(new Date(o));ot(n)}function nt(){tt&&tt.$setValidity("hours",!0);it&&it.$setValidity("minutes",!0);rt&&rt.$setValidity("seconds",!0);s.$setValidity("time",!0);n.invalidHours=!1;n.invalidMinutes=!1;n.invalidSeconds=!1}function ot(t){if(s.$modelValue){var i=o.getHours(),r=o.getMinutes(),u=o.getSeconds();n.showMeridian&&(i=0===i||12===i?12:i%12);n.hours="h"===t?i:p(i,!ht);"m"!==t&&(n.minutes=p(r));n.meridian=o.getHours()<12?v[0]:v[1];"s"!==t&&(n.seconds=p(u));n.meridian=o.getHours()<12?v[0]:v[1]}else n.hours=null,n.minutes=null,n.seconds=null,n.meridian=v[0]}function y(n){o=et(o,n);g()}function w(n,t){return et(n,60*t)}function et(n,t){var i=new Date(n.getTime()+1e3*t),r=new Date(n);return r.setHours(i.getHours(),i.getMinutes(),i.getSeconds()),r}function st(){return(null===n.hours||""===n.hours)&&(null===n.minutes||""===n.minutes)&&(!n.showSeconds||n.showSeconds&&(null===n.seconds||""===n.seconds))}var tt,it,rt,o=new Date,a=[],s={$setViewValue:angular.noop},v=angular.isDefined(i.meridians)?n.$parent.$eval(i.meridians):e.meridians||f.DATETIME_FORMATS.AMPMS,ht=angular.isDefined(i.padHours)?n.$parent.$eval(i.padHours):!0,b,k,c,l,h,d;n.tabindex=angular.isDefined(i.tabindex)?i.tabindex:0;t.removeAttr("tabindex");this.init=function(t,r){var h,c;s=t;s.$render=this.render;s.$formatters.unshift(function(n){return n?new Date(n):null});var u=r.eq(0),f=r.eq(1),o=r.eq(2);tt=u.controller("ngModel");it=f.controller("ngModel");rt=o.controller("ngModel");h=angular.isDefined(i.mousewheel)?n.$parent.$eval(i.mousewheel):e.mousewheel;h&&this.setupMousewheelEvents(u,f,o);c=angular.isDefined(i.arrowkeys)?n.$parent.$eval(i.arrowkeys):e.arrowkeys;c&&this.setupArrowkeyEvents(u,f,o);n.readonlyInput=angular.isDefined(i.readonlyInput)?n.$parent.$eval(i.readonlyInput):e.readonlyInput;this.setupInputEvents(u,f,o)};b=e.hourStep;i.hourStep&&a.push(n.$parent.$watch(r(i.hourStep),function(n){b=+n}));k=e.minuteStep;i.minuteStep&&a.push(n.$parent.$watch(r(i.minuteStep),function(n){k=+n}));a.push(n.$parent.$watch(r(i.min),function(n){var t=new Date(n);c=isNaN(t)?void 0:t}));a.push(n.$parent.$watch(r(i.max),function(n){var t=new Date(n);l=isNaN(t)?void 0:t}));h=!1;i.ngDisabled&&a.push(n.$parent.$watch(r(i.ngDisabled),function(n){h=n}));n.noIncrementHours=function(){var n=w(o,60*b);return h||n>l||o>n&&c>n};n.noDecrementHours=function(){var n=w(o,60*-b);return h||c>n||n>o&&n>l};n.noIncrementMinutes=function(){var n=w(o,k);return h||n>l||o>n&&c>n};n.noDecrementMinutes=function(){var n=w(o,-k);return h||c>n||n>o&&n>l};n.noIncrementSeconds=function(){var n=et(o,d);return h||n>l||o>n&&c>n};n.noDecrementSeconds=function(){var n=et(o,-d);return h||c>n||n>o&&n>l};n.noToggleMeridian=function(){return o.getHours()<12?h||w(o,720)>l:h||w(o,-720)<c};d=e.secondStep;i.secondStep&&a.push(n.$parent.$watch(r(i.secondStep),function(n){d=+n}));n.showSeconds=e.showSeconds;i.showSeconds&&a.push(n.$parent.$watch(r(i.showSeconds),function(t){n.showSeconds=!!t}));n.showMeridian=e.showMeridian;i.showMeridian&&a.push(n.$parent.$watch(r(i.showMeridian),function(t){if(n.showMeridian=!!t,s.$error.time){var i=ut(),r=ft();angular.isDefined(i)&&angular.isDefined(r)&&(o.setHours(i),g())}else ot()}));this.setupMousewheelEvents=function(t,i,r){var u=function(n){n.originalEvent&&(n=n.originalEvent);var t=n.wheelDelta?n.wheelDelta:-n.deltaY;return n.detail||t>0};t.on("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementHours():n.decrementHours());t.preventDefault()});i.on("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementMinutes():n.decrementMinutes());t.preventDefault()});r.on("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementSeconds():n.decrementSeconds());t.preventDefault()})};this.setupArrowkeyEvents=function(t,i,r){t.on("keydown",function(t){h||(38===t.which?(t.preventDefault(),n.incrementHours(),n.$apply()):40===t.which&&(t.preventDefault(),n.decrementHours(),n.$apply()))});i.on("keydown",function(t){h||(38===t.which?(t.preventDefault(),n.incrementMinutes(),n.$apply()):40===t.which&&(t.preventDefault(),n.decrementMinutes(),n.$apply()))});r.on("keydown",function(t){h||(38===t.which?(t.preventDefault(),n.incrementSeconds(),n.$apply()):40===t.which&&(t.preventDefault(),n.decrementSeconds(),n.$apply()))})};this.setupInputEvents=function(t,i,r){if(n.readonlyInput)return n.updateHours=angular.noop,n.updateMinutes=angular.noop,void(n.updateSeconds=angular.noop);var u=function(t,i,r){s.$setViewValue(null);s.$setValidity("time",!1);angular.isDefined(t)&&(n.invalidHours=t,tt&&tt.$setValidity("hours",!1));angular.isDefined(i)&&(n.invalidMinutes=i,it&&it.$setValidity("minutes",!1));angular.isDefined(r)&&(n.invalidSeconds=r,rt&&rt.$setValidity("seconds",!1))};n.updateHours=function(){var n=ut(),t=ft();s.$setDirty();angular.isDefined(n)&&angular.isDefined(t)?(o.setHours(n),o.setMinutes(t),c>o||o>l?u(!0):g("h")):u(!0)};t.on("blur",function(){s.$setTouched();st()?nt():null===n.hours||""===n.hours?u(!0):!n.invalidHours&&n.hours<10&&n.$apply(function(){n.hours=p(n.hours,!ht)})});n.updateMinutes=function(){var n=ft(),t=ut();s.$setDirty();angular.isDefined(n)&&angular.isDefined(t)?(o.setHours(t),o.setMinutes(n),c>o||o>l?u(void 0,!0):g("m")):u(void 0,!0)};i.on("blur",function(){s.$setTouched();st()?nt():null===n.minutes?u(void 0,!0):!n.invalidMinutes&&n.minutes<10&&n.$apply(function(){n.minutes=p(n.minutes)})});n.updateSeconds=function(){var n=ct();s.$setDirty();angular.isDefined(n)?(o.setSeconds(n),g("s")):u(void 0,void 0,!0)};r.on("blur",function(){st()?nt():!n.invalidSeconds&&n.seconds<10&&n.$apply(function(){n.seconds=p(n.seconds)})})};this.render=function(){var t=s.$viewValue;isNaN(t)?(s.$setValidity("time",!1),u.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(o=t),c>o||o>l?(s.$setValidity("time",!1),n.invalidHours=!0,n.invalidMinutes=!0):nt(),ot())};n.showSpinners=angular.isDefined(i.showSpinners)?n.$parent.$eval(i.showSpinners):e.showSpinners;n.incrementHours=function(){n.noIncrementHours()||y(3600*b)};n.decrementHours=function(){n.noDecrementHours()||y(3600*-b)};n.incrementMinutes=function(){n.noIncrementMinutes()||y(60*k)};n.decrementMinutes=function(){n.noDecrementMinutes()||y(60*-k)};n.incrementSeconds=function(){n.noIncrementSeconds()||y(d)};n.decrementSeconds=function(){n.noDecrementSeconds()||y(-d)};n.toggleMeridian=function(){var t=ft(),i=ut();n.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(i)?y(720*(o.getHours()<12?60:-60)):n.meridian=n.meridian===v[0]?v[1]:v[0])};n.blur=function(){s.$setTouched()};n.$on("$destroy",function(){for(;a.length;)a.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(t,i){return i.templateUrl||n.templateUrl},link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u,t.find("input"))}}}]);angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(i){var r=i.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+i+'".');return{itemName:r[3],source:n(r[4]),viewMapper:n(r[2]||r[1]),modelMapper:n(r[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(n,t,i,r,u,f,e,o,s,h,c,l,a){function rt(){v.moveInProgress||(v.moveInProgress=!0,v.$digest());ti()}function bt(){v.position=nt?l.offset(t):l.position(t);v.position.top+=t.prop("offsetHeight")}function ri(n){var t;return angular.version.minor<6?(t=n.$options||{},t.getOption=function(n){return t[n]}):t=n.$options,t}var y,lt,ui=[9,13,27,38,40],d=n.$eval(i.typeaheadMinLength),at,g,ht,tt,p,b,ni,ct,ti,yt,ii,pt,wt,it;d||0===d||(d=1);n.$watch(i.typeaheadMinLength,function(n){d=n||0===n?n:1});at=n.$eval(i.typeaheadWaitMs)||0;g=n.$eval(i.typeaheadEditable)!==!1;n.$watch(i.typeaheadEditable,function(n){g=n!==!1});var ut,ft,et=u(i.typeaheadLoading).assign||angular.noop,fi=i.typeaheadShouldSelect?u(i.typeaheadShouldSelect):function(n,t){var i=t.$event;return 13===i.which||9===i.which},ei=u(i.typeaheadOnSelect),oi=angular.isDefined(i.typeaheadSelectOnBlur)?n.$eval(i.typeaheadSelectOnBlur):!1,ot=u(i.typeaheadNoResults).assign||angular.noop,kt=i.typeaheadInputFormatter?u(i.typeaheadInputFormatter):void 0,nt=i.typeaheadAppendToBody?n.$eval(i.typeaheadAppendToBody):!1,vt=i.typeaheadAppendTo?n.$eval(i.typeaheadAppendTo):null,si=n.$eval(i.typeaheadFocusFirst)!==!1,hi=i.typeaheadSelectOnExact?n.$eval(i.typeaheadSelectOnExact):!1,ci=u(i.typeaheadIsOpen).assign||angular.noop,st=n.$eval(i.typeaheadShowHint)||!1,dt=u(i.ngModel),li=u(i.ngModel+"($$$p)"),ai=function(t,i){return angular.isFunction(dt(n))&&lt.getOption("getterSetter")?li(t,{$$$p:i}):dt.assign(t,i)},w=a.parse(i.uibTypeahead),v=n.$new(),vi=n.$on("$destroy",function(){v.$destroy()});v.$on("$destroy",vi);ht="typeahead-"+v.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":ht});st&&(tt=angular.element("<div><\/div>"),tt.css("position","relative"),t.after(tt),p=t.clone(),p.attr("placeholder",""),p.attr("tabindex","-1"),p.val(""),p.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),t.css({position:"relative","vertical-align":"top","background-color":"transparent"}),p.attr("id")&&p.removeAttr("id"),tt.append(p),p.after(t));b=angular.element("<div uib-typeahead-popup><\/div>");b.attr({id:ht,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"});angular.isDefined(i.typeaheadTemplateUrl)&&b.attr("template-url",i.typeaheadTemplateUrl);angular.isDefined(i.typeaheadPopupTemplateUrl)&&b.attr("popup-template-url",i.typeaheadPopupTemplateUrl);var yi=function(){st&&p.val("")},k=function(){v.matches=[];v.activeIdx=-1;t.attr("aria-expanded",!1);yi()},gt=function(n){return ht+"-option-"+n};v.$watch("activeIdx",function(n){0>n?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",gt(n))});ni=function(n,t){return v.matches.length>t&&n?n.toUpperCase()===v.matches[t].label.toUpperCase():!1};ct=function(i,r){var u={$viewValue:i};et(n,!0);ot(n,!1);f.when(w.source(n,u)).then(function(f){var s=i===y.$viewValue,e,o;if(s&&ut)if(f&&f.length>0){for(v.activeIdx=si?0:-1,ot(n,!1),v.matches.length=0,e=0;e<f.length;e++)u[w.itemName]=f[e],v.matches.push({id:gt(e),label:w.viewMapper(v,u),model:f[e]});(v.query=i,bt(),t.attr("aria-expanded",!0),hi&&1===v.matches.length&&ni(i,0)&&(angular.isNumber(v.debounceUpdate)||angular.isObject(v.debounceUpdate)?c(function(){v.select(0,r)},angular.isNumber(v.debounceUpdate)?v.debounceUpdate:v.debounceUpdate["default"]):v.select(0,r)),st)&&(o=v.matches[0].label,angular.isString(i)&&i.length>0&&o.slice(0,i.length).toUpperCase()===i.toUpperCase()?p.val(i+o.slice(i.length)):p.val(""))}else k(),ot(n,!0);s&&et(n,!1)},function(){k();et(n,!1);ot(n,!0)})};nt&&(angular.element(s).on("resize",rt),o.find("body").on("scroll",rt));ti=c(function(){v.matches.length&&bt();v.moveInProgress=!1},200);v.moveInProgress=!1;v.query=void 0;ii=function(n){yt=e(function(){ct(n)},at)};pt=function(){yt&&e.cancel(yt)};k();v.assignIsOpen=function(t){ci(n,t)};v.select=function(r,u){var f,s,o={};ft=!0;o[w.itemName]=s=v.matches[r].model;f=w.modelMapper(n,o);ai(n,f);y.$setValidity("editable",!0);y.$setValidity("parse",!0);ei(n,{$item:s,$model:f,$label:w.viewMapper(n,o),$event:u});k();v.$eval(i.typeaheadFocusOnSelect)!==!1&&e(function(){t[0].focus()},0,!1)};t.on("keydown",function(t){var r,i;if(0!==v.matches.length&&-1!==ui.indexOf(t.which)){if(r=fi(n,{$event:t}),-1===v.activeIdx&&r||9===t.which&&t.shiftKey)return k(),void v.$digest();t.preventDefault();switch(t.which){case 27:t.stopPropagation();k();n.$digest();break;case 38:v.activeIdx=(v.activeIdx>0?v.activeIdx:v.matches.length)-1;v.$digest();i=b[0].querySelectorAll(".uib-typeahead-match")[v.activeIdx];i.parentNode.scrollTop=i.offsetTop;break;case 40:v.activeIdx=(v.activeIdx+1)%v.matches.length;v.$digest();i=b[0].querySelectorAll(".uib-typeahead-match")[v.activeIdx];i.parentNode.scrollTop=i.offsetTop;break;default:r&&v.$apply(function(){angular.isNumber(v.debounceUpdate)||angular.isObject(v.debounceUpdate)?c(function(){v.select(v.activeIdx,t)},angular.isNumber(v.debounceUpdate)?v.debounceUpdate:v.debounceUpdate["default"]):v.select(v.activeIdx,t)})}}});t.on("focus",function(n){ut=!0;0!==d||y.$viewValue||e(function(){ct(y.$viewValue,n)},0)});t.on("blur",function(n){oi&&v.matches.length&&-1!==v.activeIdx&&!ft&&(ft=!0,v.$apply(function(){angular.isObject(v.debounceUpdate)&&angular.isNumber(v.debounceUpdate.blur)?c(function(){v.select(v.activeIdx,n)},v.debounceUpdate.blur):v.select(v.activeIdx,n)}));!g&&y.$error.editable&&(y.$setViewValue(),v.$apply(function(){y.$setValidity("editable",!0);y.$setValidity("parse",!0)}),t.val(""));ut=!1;ft=!1});wt=function(i){t[0]!==i.target&&3!==i.which&&0!==v.matches.length&&(k(),h.$$phase||n.$digest())};o.on("click",wt);n.$on("$destroy",function(){o.off("click",wt);(nt||vt)&&it.remove();nt&&(angular.element(s).off("resize",rt),o.find("body").off("scroll",rt));b.remove();st&&tt.remove()});it=r(b)(v);nt?o.find("body").append(it):vt?angular.element(vt).eq(0).append(it):t.after(it);this.init=function(t){y=t;lt=ri(y);v.debounceUpdate=u(lt.getOption("debounce"))(n);y.$parsers.unshift(function(t){return ut=!0,0===d||t&&t.length>=d?at>0?(pt(),ii(t)):ct(t):(et(n,!1),pt(),k()),g?t:t?void y.$setValidity("editable",!1):(y.$setValidity("editable",!0),null)});y.$formatters.push(function(t){var r,u,i={};return g||y.$setValidity("editable",!0),kt?(i.$model=t,kt(n,i)):(i[w.itemName]=t,r=w.viewMapper(n,i),i[w.itemName]=void 0,u=w.viewMapper(n,i),r!==u?r:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","uibTypeahead"],link:function(n,t,i,r){r[1].init(r[0])}}}).directive("uibTypeaheadPopup",["$$debounce",function(n){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(n,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(t,i,r){t.templateUrl=r.templateUrl;t.isOpen=function(){var n=t.matches.length>0;return t.assignIsOpen({isOpen:n}),n};t.isActive=function(n){return t.active===n};t.selectActive=function(n){t.active=n};t.selectMatch=function(i,r){var u=t.debounce();angular.isNumber(u)||angular.isObject(u)?n(function(){t.select({activeIdx:i,evt:r})},angular.isNumber(u)?u:u["default"]):t.select({activeIdx:i,evt:r})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(n,t,i){return{scope:{index:"=",match:"=",query:"="},link:function(r,u,f){var e=i(f.templateUrl)(r.$parent)||"uib/template/typeahead/typeahead-match.html";n(e).then(function(n){var i=angular.element(n.trim());u.replaceWith(i);t(i)(r)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,t,i){function u(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function f(n){return/<.*>/g.test(n)}var r;return r=t.has("$sanitize"),function(t,e){return!r&&f(t)&&i.warn("Unsafe use of typeahead please use ngSanitize"),t=e?(""+t).replace(new RegExp(u(e),"gi"),"<strong>$&<\/strong>"):t,r||(t=n.trustAsHtml(t)),t}}]);angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(n){n.put("uib/template/accordion/accordion-group.html",'<div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n  <h4 class="panel-title">\n    <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading" ng-disabled="isDisabled" uib-tabindex-toggle><span uib-accordion-header ng-class="{\'text-muted\': isDisabled}">{{heading}}<\/span><\/a>\n  <\/h4>\n<\/div>\n<div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n  <div class="panel-body" ng-transclude><\/div>\n<\/div>\n')}]);angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(n){n.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude><\/div>')}]);angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(n){n.put("uib/template/alert/alert.html",'<button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n  <span aria-hidden="true">&times;<\/span>\n  <span class="sr-only">Close<\/span>\n<\/button>\n<div ng-transclude><\/div>\n')}]);angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(n){n.put("uib/template/carousel/carousel.html",'<div class="carousel-inner" ng-transclude><\/div>\n<a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" ng-show="slides.length > 1">\n  <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"><\/span>\n  <span class="sr-only">previous<\/span>\n<\/a>\n<a role="button" href class="right carousel-control" ng-click="next()" ng-class="{ disabled: isNextDisabled() }" ng-show="slides.length > 1">\n  <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"><\/span>\n  <span class="sr-only">next<\/span>\n<\/a>\n<ol class="carousel-indicators" ng-show="slides.length > 1">\n  <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n    <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active<\/span><\/span>\n  <\/li>\n<\/ol>\n')}]);angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(n){n.put("uib/template/carousel/slide.html",'<div class="text-center" ng-transclude><\/div>\n')}]);angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/datepicker.html",'<div ng-switch="datepickerMode">\n  <div uib-daypicker ng-switch-when="day" tabindex="0" class="uib-daypicker"><\/div>\n  <div uib-monthpicker ng-switch-when="month" tabindex="0" class="uib-monthpicker"><\/div>\n  <div uib-yearpicker ng-switch-when="year" tabindex="0" class="uib-yearpicker"><\/div>\n<\/div>\n')}]);angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"><\/i><span class="sr-only">previous<\/span><\/button><\/th>\n      <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"><\/i><span class="sr-only">next<\/span><\/button><\/th>\n    <\/tr>\n    <tr>\n      <th ng-if="showWeeks" class="text-center"><\/th>\n      <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}<\/small><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr class="uib-weeks" ng-repeat="row in rows track by $index" role="row">\n      <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}<\/em><\/td>\n      <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default btn-sm"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"><\/i><span class="sr-only">previous<\/span><\/button><\/th>\n      <th colspan="{{::yearHeaderColspan}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"><\/i><span class="sr-only">next<\/span><\/i><\/button><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr class="uib-months" ng-repeat="row in rows track by $index" role="row">\n      <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"><\/i><span class="sr-only">previous<\/span><\/button><\/th>\n      <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"><\/i><span class="sr-only">next<\/span><\/button><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr class="uib-years" ng-repeat="row in rows track by $index" role="row">\n      <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepickerPopup/popup.html",'<ul role="presentation" class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n  <li ng-transclude><\/li>\n  <li ng-if="showButtonBar" class="uib-button-bar">\n    <span class="btn-group pull-left">\n      <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}<\/button>\n      <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}<\/button>\n    <\/span>\n    <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}<\/button>\n  <\/li>\n<\/ul>\n')}]);angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(n){n.put("uib/template/modal/window.html","<div class=\"modal-dialog {{size ? 'modal-' + size : ''}}\"><div class=\"modal-content\" uib-modal-transclude><\/div><\/div>\n")}]);angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(n){n.put("uib/template/pager/pager.html",'<li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}<\/a><\/li>\n<li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}<\/a><\/li>\n')}]);angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(n){n.put("uib/template/pagination/pagination.html",'<li role="menuitem" ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'first\')}}<\/a><\/li>\n<li role="menuitem" ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}<\/a><\/li>\n<li role="menuitem" ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)" ng-disabled="ngDisabled&&!page.active" uib-tabindex-toggle>{{page.text}}<\/a><\/li>\n<li role="menuitem" ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}<\/a><\/li>\n<li role="menuitem" ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'last\')}}<\/a><\/li>\n')}]);angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip-arrow"><\/div>\n<div class="tooltip-inner" ng-bind-html="contentExp()"><\/div>\n')}]);angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip-arrow"><\/div>\n<div class="tooltip-inner" ng-bind="content"><\/div>\n')}]);angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip-arrow"><\/div>\n<div class="tooltip-inner"\n  uib-tooltip-template-transclude="contentExp()"\n  tooltip-template-transclude-scope="originScope()"><\/div>\n')}]);angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(n){n.put("uib/template/popover/popover-html.html",'<div class="arrow"><\/div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"><\/h3>\n    <div class="popover-content" ng-bind-html="contentExp()"><\/div>\n<\/div>\n')}]);angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(n){n.put("uib/template/popover/popover-template.html",'<div class="arrow"><\/div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"><\/h3>\n    <div class="popover-content"\n      uib-tooltip-template-transclude="contentExp()"\n      tooltip-template-transclude-scope="originScope()"><\/div>\n<\/div>\n')}]);angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(n){n.put("uib/template/popover/popover.html",'<div class="arrow"><\/div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"><\/h3>\n    <div class="popover-content" ng-bind="content"><\/div>\n<\/div>\n')}]);angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(n){n.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude><\/div>\n')}]);angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(n){n.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"><\/div>')}]);angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(n){n.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude><\/div>\n<\/div>\n')}]);angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(n){n.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}" aria-valuetext="{{title}}">\n    <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})<\/span>\n    <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}"><\/i>\n<\/span>\n')}]);angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(n){n.put("uib/template/tabs/tab.html",'<li ng-class="[{active: active, disabled: disabled}, classes]" class="uib-tab nav-item">\n  <a href ng-click="select($event)" class="nav-link" uib-tab-heading-transclude>{{heading}}<\/a>\n<\/li>\n')}]);angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(n){n.put("uib/template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{tabset.type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude><\/ul>\n  <div class="tab-content">\n    <div class="tab-pane"\n         ng-repeat="tab in tabset.tabs"\n         ng-class="{active: tabset.active === tab.index}"\n         uib-tab-content-transclude="tab">\n    <\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(n){n.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n  <tbody>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n      <td>&nbsp;<\/td>\n      <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n      <td ng-show="showSeconds">&nbsp;<\/td>\n      <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n      <td ng-show="showMeridian"><\/td>\n    <\/tr>\n    <tr>\n      <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n        <input type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n      <\/td>\n      <td class="uib-separator">:<\/td>\n      <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n        <input type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n      <\/td>\n      <td ng-show="showSeconds" class="uib-separator">:<\/td>\n      <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n        <input type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n      <\/td>\n      <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}<\/button><\/td>\n    <\/tr>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n      <td>&nbsp;<\/td>\n      <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n      <td ng-show="showSeconds">&nbsp;<\/td>\n      <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n      <td ng-show="showMeridian"><\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(n){n.put("uib/template/typeahead/typeahead-match.html",'<a href\n   tabindex="-1"\n   ng-bind-html="match.label | uibTypeaheadHighlight:query"\n   ng-attr-title="{{match.label}}"><\/a>\n')}]);angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li class="uib-typeahead-match" ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="{{::match.id}}">\n        <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"><\/div>\n    <\/li>\n<\/ul>\n')}]);angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.$$uibCarouselCss||angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}<\/style>');angular.$$uibCarouselCss=!0});angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}<\/style>');angular.$$uibDatepickerCss=!0});angular.module("ui.bootstrap.position").run(function(){angular.$$csp().noInlineStyle||angular.$$uibPositionCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}<\/style>');angular.$$uibPositionCss=!0});angular.module("ui.bootstrap.datepickerPopup").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerpopupCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}<\/style>');angular.$$uibDatepickerpopupCss=!0});angular.module("ui.bootstrap.tooltip").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTooltipCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}<\/style>');angular.$$uibTooltipCss=!0});angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTimepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}<\/style>');angular.$$uibTimepickerCss=!0});angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTypeaheadCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}<\/style>');angular.$$uibTypeaheadCss=!0});angular.module("ui.alias",[]).config(["$compileProvider","uiAliasConfig",function(n,t){"use strict";t=t||{};angular.forEach(t,function(t,i){angular.isString(t)&&(t={replace:!0,template:t});n.directive(i,function(){return t})})}]);angular.module("ui.event",[]).directive("uiEvent",["$parse",function(n){"use strict";return function(t,i,r){var u=t.$eval(r.uiEvent);angular.forEach(u,function(r,u){var f=n(r);i.bind(u,function(n){var i=Array.prototype.slice.call(arguments);i=i.splice(1);f(t,{$event:n,$params:i});t.$$phase||t.$apply()})})}}]);angular.module("ui.format",[]).filter("format",function(){"use strict";return function(n,t){var i=n,r,u;return angular.isString(i)&&void 0!==t&&((angular.isArray(t)||angular.isObject(t)||(t=[t]),angular.isArray(t))?(r=t.length,u=function(n,i){return i=parseInt(i,10),i>=0&&r>i?t[i]:n},i=i.replace(/\$([0-9]+)/g,u)):angular.forEach(t,function(n,t){i=i.split(":"+t).join(n)})),i}});angular.module("ui.highlight",[]).filter("highlight",function(){"use strict";return function(n,t,i){return n&&(t||angular.isNumber(t))?(n=n.toString(),t=t.toString(),i?n.split(t).join('<span class="ui-match">'+t+"<\/span>"):n.replace(new RegExp(t,"gi"),'<span class="ui-match">$&<\/span>')):n}});angular.module("ui.include",[]).directive("uiInclude",["$http","$templateCache","$anchorScroll","$compile",function(n,t,i,r){"use strict";return{restrict:"ECA",terminal:!0,compile:function(u,f){var o=f.uiInclude||f.src,s=f.fragment||"",h=f.onload||"",e=f.autoscroll;return function(u,f){function a(){var a=++l,y=u.$eval(o),p=u.$eval(s);y?n.get(y,{cache:t}).success(function(n){if(a===l){c&&c.$destroy();c=u.$new();var t;t=p?angular.element("<div/>").html(n).find(p):angular.element("<div/>").html(n).contents();f.html(t);r(t)(c);!angular.isDefined(e)||e&&!u.$eval(e)||i();c.$emit("$includeContentLoaded");u.$eval(h)}}).error(function(){a===l&&v()}):v()}var c,l=0,v=function(){c&&(c.$destroy(),c=null);f.html("")};u.$watch(s,a);u.$watch(o,a)}}}}]);angular.module("ui.indeterminate",[]).directive("uiIndeterminate",[function(){"use strict";return{compile:function(n,t){return t.type&&"checkbox"===t.type.toLowerCase()?function(n,t,i){n.$watch(i.uiIndeterminate,function(n){t[0].indeterminate=!!n})}:angular.noop}}}]);angular.module("ui.inflector",[]).filter("inflector",function(){"use strict";function n(n){return n=n.replace(/([A-Z])|([\-|\_])/g,function(n,t){return" "+(t||"")}),n.replace(/\s\s+/g," ").trim().toLowerCase().split(" ")}function t(n){var t=[];return angular.forEach(n,function(n){t.push(n.charAt(0).toUpperCase()+n.substr(1))}),t}var i={humanize:function(i){return t(n(i)).join(" ")},underscore:function(t){return n(t).join("_")},variable:function(i){return i=n(i),i=i[0]+t(i.slice(1)).join("")}};return function(n,t){return t!==!1&&angular.isString(n)?(t=t||"humanize",i[t](n)):n}});angular.module("ui.jq",[]).value("uiJqConfig",{}).directive("uiJq",["uiJqConfig","$timeout",function(n,t){"use strict";return{restrict:"A",compile:function(i,r){if(!angular.isFunction(i[r.uiJq]))throw new Error('ui-jq: The "'+r.uiJq+'" function does not exist');var u=n&&n[r.uiJq];return function(n,i,r){function e(){var t=[];return r.uiOptions?(t=n.$eval("["+r.uiOptions+"]"),angular.isObject(u)&&angular.isObject(t[0])&&(t[0]=angular.extend({},u,t[0]))):u&&(t=[u]),t}function f(){t(function(){i[r.uiJq].apply(i,e())},0,!1)}r.ngModel&&i.is("select,input,textarea")&&i.bind("change",function(){i.trigger("input")});r.uiRefresh&&n.$watch(r.uiRefresh,function(){f()});f()}}}}]);angular.module("ui.keypress",[]).factory("keypressHelper",["$parse",function(n){"use strict";var t={8:"backspace",9:"tab",13:"enter",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"delete"},i=function(n){return n.charAt(0).toUpperCase()+n.slice(1)};return function(r,u,f,e){var o,s=[];o=u.$eval(e["ui"+i(r)]);angular.forEach(o,function(t,i){var r,u;u=n(t);angular.forEach(i.split(" "),function(n){r={expression:u,keys:{}};angular.forEach(n.split("-"),function(n){r.keys[n]=!0});s.push(r)})});f.bind(r,function(n){var e=!(!n.metaKey||n.ctrlKey),o=!!n.altKey,h=!!n.ctrlKey,f=!!n.shiftKey,i=n.keyCode;"keypress"===r&&!f&&i>=97&&122>=i&&(i-=32);angular.forEach(s,function(r){var s=r.keys[t[i]]||r.keys[i.toString()],c=!!r.keys.meta,l=!!r.keys.alt,a=!!r.keys.ctrl,v=!!r.keys.shift;s&&c===e&&l===o&&a===h&&v===f&&u.$apply(function(){r.expression(u,{$event:n})})})})}}]);angular.module("ui.keypress").directive("uiKeydown",["keypressHelper",function(n){"use strict";return{link:function(t,i,r){n("keydown",t,i,r)}}}]);angular.module("ui.keypress").directive("uiKeypress",["keypressHelper",function(n){"use strict";return{link:function(t,i,r){n("keypress",t,i,r)}}}]);angular.module("ui.keypress").directive("uiKeyup",["keypressHelper",function(n){"use strict";return{link:function(t,i,r){n("keyup",t,i,r)}}}]);angular.module("ui.mask",[]).value("uiMaskConfig",{maskDefinitions:{9:/\d/,A:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},clearOnBlur:!0}).directive("uiMask",["uiMaskConfig","$parse",function(n,t){"use strict";return{priority:100,require:"ngModel",restrict:"A",compile:function(){var i=n;return function(n,r,u,f){function vt(n){return angular.isDefined(n)?(ti(n),a?(bt(),kt(),!0):st()):st()}function yt(n){angular.isDefined(n)&&(c=n,a&&l())}function pt(n){return a?(e=v(n||""),s=k(e),f.$setValidity("mask",s),s&&e.length?y(e):void 0):n}function wt(n){return a?(e=v(n||""),s=k(e),f.$viewValue=e.length?y(e):"",f.$setValidity("mask",s),""===e&&u.required&&f.$setValidity("required",!f.$error.required),s?e:void 0):n}function st(){return a=!1,dt(),angular.isDefined(lt)?r.attr("placeholder",lt):r.removeAttr("placeholder"),angular.isDefined(at)?r.attr("maxlength",at):r.removeAttr("maxlength"),r.val(f.$modelValue),f.$viewValue=f.$modelValue,!1}function bt(){e=ft=v(f.$viewValue||"");rt=ut=y(e);s=k(e);var n=s&&e.length?rt:"";u.maxlength&&r.attr("maxlength",2*o[o.length-1]);r.attr("placeholder",c);r.val(n);f.$viewValue=n}function kt(){b||(r.bind("blur",ht),r.bind("mousedown mouseup",p),r.bind("input keyup click focus",l),b=!0)}function dt(){b&&(r.unbind("blur",ht),r.unbind("mousedown",p),r.unbind("mouseup",p),r.unbind("input",l),r.unbind("keyup",l),r.unbind("click",l),r.unbind("focus",l),b=!1)}function k(n){return n.length?n.length>=it:!0}function v(n){var i="",t=tt.slice();return n=n.toString(),angular.forEach(ct,function(t){n=n.replace(t,"")}),angular.forEach(n.split(""),function(n){t.length&&t[0].test(n)&&(i+=n,t.shift())}),i}function y(n){var t="",i=o.slice();return angular.forEach(c.split(""),function(r,u){n.length&&u===i[0]?(t+=n.charAt(0)||"_",n=n.substr(1),i.shift()):t+=r}),t}function gt(n){var t=u.placeholder;return"undefined"!=typeof t&&t[n]?t[n]:"_"}function ni(){return c.replace(/[_]+/g,"_").replace(/([^_]+)([a-zA-Z0-9])([^_])/g,"$1$2_$3").split("_")}function ti(n){var t=0;if(o=[],tt=[],c="","string"==typeof n){it=0;var i=!1,r=0,u=n.split("");angular.forEach(u,function(n,u){h.maskDefinitions[n]?(o.push(t),c+=gt(u-r),tt.push(h.maskDefinitions[n]),t++,i||it++):"?"===n?(i=!0,r++):(c+=n,t++)})}o.push(o.slice().pop()+1);ct=ni();a=o.length>1?!0:!1}function ht(){h.clearOnBlur&&(et=0,w=0,s&&0!==e.length||(rt="",r.val(""),n.$apply(function(){f.$setViewValue("")})))}function p(n){"mousedown"===n.type?r.bind("mouseout",d):r.unbind("mouseout",d)}function d(){w=nt(this);r.unbind("mouseout",d)}function l(t){var u,s,tt;if(t=t||{},u=t.which,s=t.type,16!==u&&91!==u){var b,c=r.val(),p=ut,e=v(c),lt=ft,it=!1,i=ii(this)||0,rt=et||0,ot=i-rt,h=o[0],l=o[e.length]||o.slice().shift(),a=w||0,at=nt(this)>0,st=a>0,ht=c.length>p.length||a&&c.length>p.length-a,k=c.length<p.length||a&&c.length===p.length-a,vt=u>=37&&40>=u&&t.shiftKey,yt=37===u,ct=8===u||"keyup"!==s&&k&&-1===ot,pt=46===u||"keyup"!==s&&k&&0===ot&&!st,d=(yt||ct||"click"===s)&&i>h;if(w=nt(this),!vt&&(!at||"click"!==s&&"keyup"!==s)){if("input"===s&&k&&!st&&e===lt){for(;ct&&i>h&&!g(i);)i--;for(;pt&&l>i&&-1===o.indexOf(i);)i++;tt=o.indexOf(i);e=e.substring(0,tt)+e.substring(tt+1);it=!0}for(b=y(e),ut=b,ft=e,r.val(b),it&&n.$apply(function(){f.$setViewValue(e)}),ht&&h>=i&&(i=h+1),d&&i--,i=i>l?l:h>i?h:i;!g(i)&&i>h&&l>i;)i+=d?-1:1;(d&&l>i||ht&&!g(rt))&&i++;et=i;ri(this,i)}}}function g(n){return o.indexOf(n)>-1}function ii(n){if(!n)return 0;if(void 0!==n.selectionStart)return n.selectionStart;if(document.selection){n.focus();var t=document.selection.createRange();return t.moveStart("character",n.value?-n.value.length:0),t.text.length}return 0}function ri(n,t){if(!n)return 0;if(0!==n.offsetWidth&&0!==n.offsetHeight)if(n.setSelectionRange)n.focus(),n.setSelectionRange(t,t);else if(n.createTextRange){var i=n.createTextRange();i.collapse(!0);i.moveEnd("character",t);i.moveStart("character",t);i.select()}}function nt(n){return n?void 0!==n.selectionStart?n.selectionEnd-n.selectionStart:document.selection?document.selection.createRange().text.length:0:0}var o,tt,c,ct,it,e,rt,s,ut,ft,et,w,a=!1,b=!1,lt=u.placeholder,at=u.maxlength,h={},ot;u.uiOptions?(h=n.$eval("["+u.uiOptions+"]"),angular.isObject(h[0])&&(h=function(n,t){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(void 0===t[i]?t[i]=angular.copy(n[i]):angular.extend(t[i],n[i]));return t}(i,h[0]))):h=i;u.$observe("uiMask",vt);u.$observe("placeholder",yt);ot=!1;u.$observe("modelViewValue",function(n){"true"===n&&(ot=!0)});n.$watch(u.ngModel,function(i){if(ot&&i){var r=t(u.ngModel);r.assign(n,f.$viewValue)}});f.$formatters.push(pt);f.$parsers.push(wt);r.bind("mousedown mouseup",p);Array.prototype.indexOf||(Array.prototype.indexOf=function(n){var u,r,t,i;if(null===this)throw new TypeError;if((u=Object(this),r=u.length>>>0,0===r)||(t=0,arguments.length>1&&(t=Number(arguments[1]),t!==t?t=0:0!==t&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t)))),t>=r))return-1;for(i=t>=0?t:Math.max(r-Math.abs(t),0);r>i;i++)if(i in u&&u[i]===n)return i;return-1})}}}}]);angular.module("ui.reset",[]).value("uiResetConfig",null).directive("uiReset",["uiResetConfig",function(n){"use strict";var t=null;return void 0!==n&&(t=n),{require:"ngModel",link:function(n,i,r,u){var f;f=angular.element('<a class="ui-reset" />');i.wrap('<span class="ui-resetwrap" />').after(f);f.bind("click",function(i){i.preventDefault();n.$apply(function(){u.$setViewValue(r.uiReset?n.$eval(r.uiReset):t);u.$render()})})}}}]);angular.module("ui.route",[]).directive("uiRoute",["$location","$parse",function(n,t){"use strict";return{restrict:"AC",scope:!0,compile:function(i,r){var u;if(r.uiRoute)u="uiRoute";else if(r.ngHref)u="ngHref";else{if(!r.href)throw new Error("uiRoute missing a route or href property on "+i[0]);u="href"}return function(i,r,f){function o(t){var r=t.indexOf("#");r>-1&&(t=t.substr(r+1));(e=function(){h(i,n.path().indexOf(t)>-1)})()}function s(t){var r=t.indexOf("#");r>-1&&(t=t.substr(r+1));(e=function(){var r=new RegExp("^"+t+"$",["i"]);h(i,r.test(n.path()))})()}var h=t(f.ngModel||f.routeModel||"$uiRoute").assign,e=angular.noop;switch(u){case"uiRoute":f.uiRoute?s(f.uiRoute):f.$observe("uiRoute",s);break;case"ngHref":f.ngHref?o(f.ngHref):f.$observe("ngHref",o);break;case"href":o(f.href)}i.$on("$routeChangeSuccess",function(){e()});i.$on("$stateChangeSuccess",function(){e()})}}}}]);angular.module("ui.scroll.jqlite",["ui.scroll"]).service("jqLiteExtras",["$log","$window",function(n,t){"use strict";return{registerFor:function(n){var i,u,s,r,f,e,o;return u=angular.element.prototype.css,n.prototype.css=function(n,t){var i,r;return r=this,i=r[0],i&&3!==i.nodeType&&8!==i.nodeType&&i.style?u.call(r,n,t):void 0},e=function(n){return n&&n.document&&n.location&&n.alert&&n.setInterval},o=function(n,t,i){var r,u,s,o,f;return r=n[0],f={top:["scrollTop","pageYOffset","scrollLeft"],left:["scrollLeft","pageXOffset","scrollTop"]}[t],u=f[0],o=f[1],s=f[2],e(r)?angular.isDefined(i)?r.scrollTo(n[s].call(n),i):o in r?r[o]:r.document.documentElement[u]:angular.isDefined(i)?r[u]=i:r[u]},t.getComputedStyle?(r=function(n){return t.getComputedStyle(n,null)},i=function(n,t){return parseFloat(t)}):(r=function(n){return n.currentStyle},i=function(n,t){var f,e,o,s,i,u,r;return f=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=new RegExp("^("+f+")(?!px)[a-z%]+$","i"),s.test(t)?(r=n.style,e=r.left,i=n.runtimeStyle,u=i&&i.left,i&&(i.left=r.left),r.left=t,o=r.pixelLeft,r.left=e,u&&(i.left=u),o):parseFloat(t)}),s=function(n,t){var f,c,l,a,v,u,o,s,y,p,w,b,h;return e(n)?(f=document.documentElement[{height:"clientHeight",width:"clientWidth"}[t]],{base:f,padding:0,border:0,margin:0}):(h={width:[n.offsetWidth,"Left","Right"],height:[n.offsetHeight,"Top","Bottom"]}[t],f=h[0],o=h[1],s=h[2],u=r(n),w=i(n,u["padding"+o])||0,b=i(n,u["padding"+s])||0,c=i(n,u["border"+o+"Width"])||0,l=i(n,u["border"+s+"Width"])||0,a=u["margin"+o],v=u["margin"+s],y=i(n,a)||0,p=i(n,v)||0,{base:f,padding:w+b,border:c+l,margin:y+p})},f=function(n,t,i){var e,u,f;return u=s(n,t),u.base>0?{base:u.base-u.padding-u.border,outer:u.base,outerfull:u.base+u.margin}[i]:(e=r(n),f=e[t],(0>f||null===f)&&(f=n.style[t]||0),f=parseFloat(f)||0,{base:f-u.padding-u.border,outer:f,outerfull:f+u.padding+u.border+u.margin}[i])},angular.forEach({before:function(n){var t,u,f,e,o,i,r;if(o=this,u=o[0],e=o.parent(),t=e.contents(),t[0]===u)return e.prepend(n);for(f=i=1,r=t.length-1;r>=1?r>=i:i>=r;f=r>=1?++i:--i)if(t[f]===u)return void angular.element(t[f-1]).after(n);throw new Error("invalid DOM structure "+u.outerHTML);},height:function(n){var t;return t=this,angular.isDefined(n)?(angular.isNumber(n)&&(n+="px"),u.call(t,"height",n)):f(this[0],"height","base")},outerHeight:function(n){return f(this[0],"height",n?"outerfull":"outer")},offset:function(n){var r,u,t,i,f,e;if(f=this,arguments.length){if(void 0===n)return f;throw new Error("offset setter method is not implemented");}return r={top:0,left:0},i=f[0],(u=i&&i.ownerDocument)?(t=u.documentElement,null!=i.getBoundingClientRect&&(r=i.getBoundingClientRect()),e=u.defaultView||u.parentWindow,{top:r.top+(e.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(e.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):void 0},scrollTop:function(n){return o(this,"top",n)},scrollLeft:function(n){return o(this,"left",n)}},function(t,i){if(!n.prototype[i])return n.prototype[i]=t})}}}]).run(["$log","$window","jqLiteExtras",function(n,t,i){"use strict";if(!t.jQuery)return i.registerFor(angular.element)}]);angular.module("ui.scroll",[]).directive("uiScrollViewport",["$log",function(){"use strict";return{controller:["$scope","$element",function(n,t){return this.viewport=t,this}]}}]).directive("uiScroll",["$log","$injector","$rootScope","$timeout",function(n,t,i,r){"use strict";return{require:["?^uiScrollViewport"],transclude:"element",priority:1e3,terminal:!0,compile:function(u,f,e){return function(u,f,o,s){var v,ut,b,fi,pt,nt,wt,h,ft,tt,l,ei,oi,y,ct,bt,si,hi,ci,kt,it,lt,dt,et,c,ot,gt,st,ni,rt,ti,pi,at,p,k,li,w,ht,d,ai,g,ii,ri,vi,yi,vt,a,yt,ui;if(pi=n.debug||n.log,at=o.uiScroll.match(/^\s*(\w+)\s+in\s+([\w\.]+)\s*$/),!at)throw new Error("Expected uiScroll in form of '_item_ in _datasource_' but got '"+o.uiScroll+"'");if(rt=at[1],ct=at[2],ot=function(n,t){var i;if(n)return i=t.match(/^([\w]+)\.(.+)$/),i&&3===i.length?ot(n[i[1]],i[2]):n[t]},g=function(n,t,i,r){var u;if(n&&t&&((u=t.match(/^([\w]+)\.(.+)$/))||-1===t.indexOf(".")))return u&&3===u.length?(angular.isObject(n[u[1]])||r||(n[u[1]]={}),g(n[u[1]],u[2],i,r)):n[t]=angular.isObject(n[t])||r?i:i},y=ot(u,ct),ni=function(){return angular.isObject(y)&&"function"==typeof y.get},!ni()&&(y=t.get(ct),!ni()))throw new Error(""+ct+" is not a valid datasource");return tt=Math.max(3,+o.bufferSize||10),ft=function(){return a.outerHeight()*Math.max(.1,+o.padding||.1)},ai=function(n){var t;return null!=(t=n[0].scrollHeight)?t:n[0].document.documentElement.scrollHeight},l=null,e(u.$new(),function(n){var i,o,h,t,r,e;if(t=n[0].localName,"dl"===t)throw new Error("ui-scroll directive does not support <"+n[0].localName+"> as a repeating tag: "+n[0].outerHTML);return"li"!==t&&"tr"!==t&&(t="div"),e=s[0]&&s[0].viewport?s[0].viewport:angular.element(window),e.css({"overflow-y":"auto",display:"block"}),h=function(n){var i,t,r;switch(n){case"tr":return r=angular.element("<table><tr><td><div><\/div><\/td><\/tr><\/table>"),i=r.find("div"),t=r.find("tr"),t.paddingHeight=function(){return i.height.apply(i,arguments)},t;default:return t=angular.element("<"+n+"><\/"+n+">"),t.paddingHeight=t.height,t}},o=function(n,t,i){return t[{top:"before",bottom:"after"}[i]](n),{paddingHeight:function(){return n.paddingHeight.apply(n,arguments)},insert:function(t){return n[{top:"after",bottom:"before"}[i]](t)}}},r=o(h(t),f,"top"),i=o(h(t),f,"bottom"),u.$on("$destroy",n.remove),l={viewport:e,topPadding:r.paddingHeight,bottomPadding:i.paddingHeight,append:i.insert,prepend:r.insert,bottomDataPos:function(){return ai(e)-i.paddingHeight()},topDataPos:function(){return r.paddingHeight()}}}),a=l.viewport,yt=a.scope()||i,yi=function(n){return v.topVisible=n.scope[rt],v.topVisibleElement=n.element,v.topVisibleScope=n.scope,o.topVisible&&g(yt,o.topVisible,v.topVisible),o.topVisibleElement&&g(yt,o.topVisibleElement,v.topVisibleElement),o.topVisibleScope&&g(yt,o.topVisibleScope,v.topVisibleScope),"function"==typeof y.topVisible?y.topVisible(n):void 0},ti=function(n){return v.isLoading=n,o.isLoading&&g(u,o.isLoading,n),"function"==typeof y.loading?y.loading(n):void 0},d=0,c=1,p=1,h=[],k=[],it=!1,nt=!1,w=function(n,t){for(var i,r=i=n;t>=n?t>i:i>t;r=t>=n?++i:--i)h[r].scope.$destroy(),h[r].element.remove();return h.splice(n,t-n)},li=function(){return d++,c=1,p=1,w(0,h.length),l.topPadding(0),l.bottomPadding(0),k=[],it=!1,nt=!1,b(d)},wt=function(){return a.scrollTop()+a.outerHeight()},vt=function(){return a.scrollTop()},ii=function(){return!it&&l.bottomDataPos()<wt()+ft()},ei=function(){var i,u,f,e,o,r,n,c,t,s;for(i=0,n=0,u=t=s=h.length-1;0>=s?0>=t:t>=0;u=0>=s?++t:--t)if(f=h[u],o=f.element.offset().top,r=c!==o,c=o,r&&(e=f.element.outerHeight(!0)),l.bottomDataPos()-i-e>wt()+ft())r&&(i+=e),n++,it=!1;else{if(r)break;n++}if(n>0)return(l.bottomPadding(l.bottomPadding()+i),w(h.length-n,h.length),p-=n)},ri=function(){return!nt&&l.topDataPos()>vt()-ft()},oi=function(){var u,f,e,t,n,o,i,r,s;for(i=0,n=0,r=0,s=h.length;s>r;r++)if(u=h[r],e=u.element.offset().top,t=o!==e,o=e,t&&(f=u.element.outerHeight(!0)),l.topDataPos()+i+f<vt()-ft())t&&(i+=f),n++,nt=!1;else{if(t)break;n++}if(n>0)return(l.topPadding(l.topPadding()+i),w(0,n),c+=n)},kt=function(n,t){return v.isLoading||ti(!0),1===k.push(t)?dt(n):void 0},gt=function(n){return n.displayTemp=n.css("display"),n.css("display","none")},vi=function(n){if(n.hasOwnProperty("displayTemp"))return n.css("display",n.displayTemp)},st=function(n,t){var i,f,r;return i=u.$new(),i[rt]=t,f=n>c,i.$index=n,f&&i.$index--,r={scope:i},e(i,function(t){return r.element=t,f?n===p?(gt(t),l.append(t),h.push(r)):(h[n-c].element.after(t),h.splice(n-c+1,0,r)):(gt(t),l.prepend(t),h.unshift(r))}),{appended:f,wrapper:r}},fi=function(n,t){var i;return n?l.bottomPadding(Math.max(0,l.bottomPadding()-t.element.outerHeight(!0))):(i=l.topPadding()-t.element.outerHeight(!0),i>=0?l.topPadding(i):a.scrollTop(a.scrollTop()+t.element.outerHeight(!0)))},bt=function(n,t){var i,f,e,r,c,o,u,a,s;if(ii()?kt(n,!0):ri()&&kt(n,!1),t&&t(n),0===k.length){for(o=0,s=[],u=0,a=h.length;a>u;u++){if(i=h[u],e=i.element.offset().top,r=c!==e,c=e,r&&(f=i.element.outerHeight(!0)),!(r&&l.topDataPos()+o+f<vt())){r&&yi(i);break}s.push(o+=f)}return s}},b=function(n,t,i){return t&&t.length?r(function(){var o,s,r,h,u,f,e,c,l;for(u=[],f=0,c=t.length;c>f;f++)r=t[f],o=r.wrapper.element,vi(o),s=o.offset().top,h!==s&&(u.push(r),h=s);for(e=0,l=u.length;l>e;e++)r=u[e],fi(r.appended,r.wrapper);return bt(n,i)}):bt(n,i)},et=function(n,t){return b(n,t,function(){return k.shift(),0===k.length?ti(!1):dt(n)})},dt=function(n){var t;return t=k[0],t?h.length&&!ii()?et(n):y.get(p,tt,function(t){var f,r,i,e;if(!(n&&n!==d||u.$$destroyed)){if(r=[],t.length<tt&&(it=!0,l.bottomPadding(0)),t.length>0)for(oi(),i=0,e=t.length;e>i;i++)f=t[i],r.push(st(++p,f));return et(n,r)}}):h.length&&!ri()?et(n):y.get(c-tt,tt,function(t){var r,f,i,e;if(!(n&&n!==d||u.$$destroyed)){if(f=[],t.length<tt&&(nt=!0,l.topPadding(0)),t.length>0)for(h.length&&ei(),r=i=e=t.length-1;0>=e?0>=i:i>=0;r=0>=e?++i:--i)f.unshift(st(--c,t[r]));return et(n,f)}})},ht=function(){if(!i.$$phase&&!v.isLoading)return(b(),u.$apply())},ui=function(n){var t,i;return t=a[0].scrollTop,i=a[0].scrollHeight-a[0].clientHeight,0===t&&!nt||t===i&&!it?n.preventDefault():void 0},a.bind("resize",ht),a.bind("scroll",ht),a.bind("mousewheel",ui),u.$watch(y.revision,li),lt=y.scope?y.scope.$new():u.$new(),u.$on("$destroy",function(){for(var t,n=0,i=h.length;i>n;n++)t=h[n],t.scope.$destroy(),t.element.remove();return a.unbind("resize",ht),a.unbind("scroll",ht),a.unbind("mousewheel",ui)}),v={},v.isLoading=!1,pt=function(n,t){var i,r,u,f,a,e,o,s,l,v,y,b;if(r=[],angular.isArray(t))if(t.length){if(1===t.length&&t[0]===n.scope[rt])return r;for(f=n.scope.$index,e=f>c?f-c:1,i=o=0,v=t.length;v>o;i=++o)a=t[i],r.push(st(f+i,a));for(w(e,e+1),i=s=0,y=h.length;y>s;i=++s)u=h[i],u.scope.$index=c+i}else for(w(n.scope.$index-c,n.scope.$index-c+1),p--,i=l=0,b=h.length;b>l;i=++l)u=h[i],u.scope.$index=c+i;return r},v.applyUpdates=function(n,t){var i,r,u,e,f,o;if(i=[],d++,angular.isFunction(n))for(f=h.slice(0),u=0,e=f.length;e>u;u++)r=f[u],i.concat(i,pt(r,n(r.scope[rt],r.scope,r.element)));else{if(n%1!=0)throw new Error("applyUpdates - "+n+" is not a valid index or outside of range");0<=(o=n-c-1)&&o<h.length&&(i=pt(h[n-c],t))}return b(d,i)},o.adapter&&(ut=ot(u,o.adapter),ut||(g(u,o.adapter,{}),ut=ot(u,o.adapter)),angular.extend(ut,v),v=ut),ci=function(n,t){var r,u,i,f,e;if(angular.isFunction(n))for(u=function(t){return n(t.scope)},i=0,f=h.length;f>i;i++)r=h[i],u(r);else 0<=(e=n-c-1)&&e<h.length&&(h[n-c-1].scope[rt]=t);return null},si=function(n){var t,r,i,o,s,u,f,e,l,a,v,y;if(angular.isFunction(n)){for(i=[],u=0,l=h.length;l>u;u++)r=h[u],i.unshift(r);for(s=function(r){if(n(r.scope))return(w(i.length-1-t,i.length-t),p--)},t=f=0,a=i.length;a>f;t=++f)o=i[t],s(o)}else 0<=(y=n-c-1)&&y<h.length&&(w(n-c-1,n-c),p--);for(t=e=0,v=h.length;v>e;t=++e)r=h[t],r.scope.$index=c+t;return b()},hi=function(n,t){var i,r,u,f,e;if(r=[],angular.isFunction(n))throw new Error("not implemented - Insert with locator function");for(0<=(e=n-c-1)&&e<h.length&&(r.push(st(n,t)),p++),i=u=0,f=h.length;f>u;i=++u)t=h[i],t.scope.$index=c+i;return b(null,r)},lt.$on("insert.item",function(n,t,i){return hi(t,i)}),lt.$on("update.items",function(n,t,i){return ci(t,i)}),lt.$on("delete.items",function(n,t){return si(t)})}}}}]);angular.module("ui.scrollfix",[]).directive("uiScrollfix",["$window",function(n){"use strict";function t(){if(angular.isDefined(n.pageYOffset))return n.pageYOffset;var t=document.compatMode&&"BackCompat"!==document.compatMode?document.documentElement:document.body;return t.scrollTop}return{require:"^?uiScrollfixTarget",link:function(i,r,u,f){function c(){var n=e?u.uiScrollfix:r[0].offsetTop+o,i=f?h[0].scrollTop:t();!r.hasClass("ui-scrollfix")&&i>n?(r.addClass("ui-scrollfix"),s=n):r.hasClass("ui-scrollfix")&&s>i&&r.removeClass("ui-scrollfix")}var s,e=!0,o=0,h=f&&f.$element||angular.element(n);u.uiScrollfix?"string"==typeof u.uiScrollfix&&("-"===u.uiScrollfix.charAt(0)?(e=!1,o=-parseFloat(u.uiScrollfix.substr(1))):"+"===u.uiScrollfix.charAt(0)&&(e=!1,o=parseFloat(u.uiScrollfix.substr(1)))):e=!1;s=e?u.uiScrollfix:r[0].offsetTop+o;h.on("scroll",c);i.$on("$destroy",function(){h.off("scroll",c)})}}}]).directive("uiScrollfixTarget",[function(){"use strict";return{controller:["$element",function(n){this.$element=n}]}}]);angular.module("ui.showhide",[]).directive("uiShow",[function(){"use strict";return function(n,t,i){n.$watch(i.uiShow,function(n){n?t.addClass("ui-show"):t.removeClass("ui-show")})}}]).directive("uiHide",[function(){"use strict";return function(n,t,i){n.$watch(i.uiHide,function(n){n?t.addClass("ui-hide"):t.removeClass("ui-hide")})}}]).directive("uiToggle",[function(){"use strict";return function(n,t,i){n.$watch(i.uiToggle,function(n){n?t.removeClass("ui-hide").addClass("ui-show"):t.removeClass("ui-show").addClass("ui-hide")})}}]);angular.module("ui.unique",[]).filter("unique",["$parse",function(n){"use strict";return function(t,i){if(i===!1)return t;if((i||angular.isUndefined(i))&&angular.isArray(t)){var r=[],f=angular.isString(i)?n(i):function(n){return n},u=function(n){return angular.isObject(n)?f(n):n};angular.forEach(t,function(n){for(var i=!1,t=0;t<r.length;t++)if(angular.equals(u(r[t]),u(n))){i=!0;break}i||r.push(n)});t=r}return t}}]);angular.module("ui.uploader",[]).service("uiUploader",uiUploader);uiUploader.$inject=["$log"];angular.module("ui.validate",[]).directive("uiValidate",function(){"use strict";return{restrict:"A",require:"ngModel",link:function(n,t,i,r){function o(t){return angular.isString(t)?void n.$watch(t,function(){angular.forEach(u,function(n){n(r.$modelValue)})}):angular.isArray(t)?void angular.forEach(t,function(t){n.$watch(t,function(){angular.forEach(u,function(n){n(r.$modelValue)})})}):void(angular.isObject(t)&&angular.forEach(t,function(t,i){angular.isString(t)&&n.$watch(t,function(){u[i](r.$modelValue)});angular.isArray(t)&&angular.forEach(t,function(t){n.$watch(t,function(){u[i](r.$modelValue)})})}))}var e,u={},f=n.$eval(i.uiValidate);f&&(angular.isString(f)&&(f={validator:f}),angular.forEach(f,function(t,i){e=function(u){var f=n.$eval(t,{$value:u});return angular.isObject(f)&&angular.isFunction(f.then)?(f.then(function(){r.$setValidity(i,!0)},function(){r.$setValidity(i,!1)}),u):f?(r.$setValidity(i,!0),u):(r.$setValidity(i,!1),u)};u[i]=e;r.$formatters.push(e);r.$parsers.push(e)}),i.uiValidateWatch&&o(n.$eval(i.uiValidateWatch)))}}});angular.module("ui.utils",["ui.event","ui.format","ui.highlight","ui.include","ui.indeterminate","ui.inflector","ui.jq","ui.keypress","ui.mask","ui.reset","ui.route","ui.scrollfix","ui.scroll","ui.scroll.jqlite","ui.showhide","ui.unique","ui.validate"]);angular.module("ngLocale",[],["$provide",function(n){function i(n){n=n+"";var t=n.indexOf(".");return t==-1?0:n.length-t-1}function r(n,t){var r=t,u,f;return undefined===r&&(r=Math.min(i(n),3)),u=Math.pow(10,r),f=(n*u|0)%u,{v:r,f:f}}var t={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};n.value("$locale",{DATETIME_FORMATS:{AMPMS:["дп","пп"],DAY:["неділя","понеділок","вівторок","середа","четвер","пʼятниця","субота"],ERANAMES:["до нашої ери","нашої ери"],ERAS:["до н. е.","н. е."],FIRSTDAYOFWEEK:0,MONTH:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"],SHORTDAY:["нд","пн","вт","ср","чт","пт","сб"],SHORTMONTH:["січ.","лют.","бер.","квіт.","трав.","черв.","лип.","серп.","вер.","жовт.","лист.","груд."],STANDALONEMONTH:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"],WEEKENDRANGE:[5,6],fullDate:"EEEE, d MMMM y 'р'.",longDate:"d MMMM y 'р'.",medium:"d MMM y 'р'. HH:mm:ss",mediumDate:"d MMM y 'р'.",mediumTime:"HH:mm:ss",short:"dd.MM.yy HH:mm",shortDate:"dd.MM.yy",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"грн.",DECIMAL_SEP:",",GROUP_SEP:" ",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:" ¤",posPre:"",posSuf:" ¤"}]},id:"uk-ua",localeID:"uk_UA",pluralCat:function(n,i){var u=n|0,f=r(n,i);return f.v==0&&u%10==1&&u%100!=11?t.ONE:f.v==0&&u%10>=2&&u%10<=4&&(u%100<12||u%100>14)?t.FEW:f.v==0&&u%10==0||f.v==0&&u%10>=5&&u%10<=9||f.v==0&&u%100>=11&&u%100<=14?t.MANY:t.OTHER}})}]);!function(n,t,i){"use strict";function r(n,i,r,u,f,e){function h(n,i){return angular.element((i||t).querySelectorAll(n))}function o(n){return s[n]?s[n]:s[n]=i.get(n,{cache:e}).then(function(n){return n.data})}this.compile=function(t){t.template&&/\.html$/.test(t.template)&&(console.warn("Deprecated use of `template` option to pass a file. Please use the `templateUrl` option instead."),t.templateUrl=t.template,t.template="");var e=t.templateUrl,s=t.template||"",c=t.controller,l=t.controllerAs,i=angular.copy(t.resolve||{}),a=angular.copy(t.locals||{}),v=t.transformTemplate||angular.identity,y=t.bindToController;if(angular.forEach(i,function(n,t){i[t]=angular.isString(n)?r.get(n):r.invoke(n)}),angular.extend(i,a),s)i.$template=n.when(s);else{if(!e)throw new Error("Missing `template` / `templateUrl` option.");i.$template=o(e)}return t.titleTemplate&&(i.$template=n.all([i.$template,o(t.titleTemplate)]).then(function(n){var t=angular.element(n[0]);return h('[ng-bind="title"]',t[0]).removeAttr("ng-bind").html(n[1]),t[0].outerHTML})),t.contentTemplate&&(i.$template=n.all([i.$template,o(t.contentTemplate)]).then(function(n){var i=angular.element(n[0]),r=h('[ng-bind="content"]',i[0]).removeAttr("ng-bind").html(n[1]);return t.templateUrl||r.next().remove(),i[0].outerHTML})),n.all(i).then(function(n){var r=v(n.$template),i,e;return t.html&&(r=r.replace(/ng-bind="/gi,'ng-bind-html="')),i=angular.element("<div>").html(r.trim()).contents(),e=u(i),{locals:n,element:i,link:function(t){var r,u;return(n.$scope=t,c)&&(r=f(c,n,!0),y&&angular.extend(r.instance,n),u=angular.isObject(r)?r:r(),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u),l&&(t[l]=u)),e.apply(null,arguments)}}})};var s={}}r.$inject=["$q","$http","$injector","$compile","$controller","$templateCache"];angular.module("mgcrea.ngStrap.typeahead",["mgcrea.ngStrap.tooltip","mgcrea.ngStrap.helpers.parseOptions"]).provider("$typeahead",function(){var n=this.defaults={animation:"am-fade",prefixClass:"typeahead",prefixEvent:"$typeahead",placement:"bottom-left",templateUrl:"typeahead/typeahead.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,minLength:1,filter:"bsAsyncFilter",limit:6,autoSelect:!1,comparator:"",trimValue:!0};this.$get=["$window","$rootScope","$tooltip","$$rAF","$timeout",function(t,i,r,u,f){function e(t,i,e){var h={},c=angular.extend({},n,e),l,s,a,v;return h=r(t,c),l=e.scope,s=h.$scope,s.$resetMatches=function(){s.$matches=[];s.$activeIndex=c.autoSelect?0:-1},s.$resetMatches(),s.$activate=function(n){s.$$postDigest(function(){h.activate(n)})},s.$select=function(n){s.$$postDigest(function(){h.select(n)})},s.$isVisible=function(){return h.$isVisible()},h.update=function(n){s.$matches=n;s.$activeIndex>=n.length&&(s.$activeIndex=c.autoSelect?0:-1);o(s);u(h.$applyPlacement)},h.activate=function(n){s.$activeIndex=n},h.select=function(n){if(-1!==n){var t=s.$matches[n].value;i.$setViewValue(t);i.$render();s.$resetMatches();l&&l.$digest();s.$emit(c.prefixEvent+".select",t,n,h);angular.isDefined(c.onSelect)&&angular.isFunction(c.onSelect)&&c.onSelect(t,n,h)}},h.$isVisible=function(){return c.minLength&&i?s.$matches.length&&angular.isString(i.$viewValue)&&i.$viewValue.length>=c.minLength:!!s.$matches.length},h.$getIndex=function(n){for(var t=s.$matches.length;t--&&!angular.equals(s.$matches[t].value,n););return t},h.$onMouseDown=function(n){n.preventDefault();n.stopPropagation()},h.$onKeyDown=function(n){/(38|40|13)/.test(n.keyCode)&&(!h.$isVisible()||13===n.keyCode&&-1===s.$activeIndex||(n.preventDefault(),n.stopPropagation()),13===n.keyCode&&s.$matches.length?h.select(s.$activeIndex):38===n.keyCode&&s.$activeIndex>0?s.$activeIndex--:40===n.keyCode&&s.$activeIndex<s.$matches.length-1?s.$activeIndex++:angular.isUndefined(s.$activeIndex)&&(s.$activeIndex=0),s.$digest())},a=h.show,h.show=function(){a();f(function(){h.$element&&(h.$element.on("mousedown",h.$onMouseDown),c.keyboard&&t&&t.on("keydown",h.$onKeyDown))},0,!1)},v=h.hide,h.hide=function(){h.$element&&h.$element.off("mousedown",h.$onMouseDown);c.keyboard&&t&&t.off("keydown",h.$onKeyDown);c.autoSelect||h.activate(-1);v()},h}function o(n){n.$$phase||n.$root&&n.$root.$$phase||n.$digest()}return e.defaults=n,e}]}).filter("bsAsyncFilter",["$filter",function(n){return function(t,i,r){return t&&angular.isFunction(t.then)?t.then(function(t){return n("filter")(t,i,r)}):n("filter")(t,i,r)}}]).directive("bsTypeahead",["$window","$parse","$q","$typeahead","$parseOptions",function(n,t,i,r,u){var f=r.defaults;return{restrict:"EAC",require:"ngModel",link:function(n,t,i,e){var o,a,h,s,p;t.off("change");o={scope:n};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","filter","limit","minLength","watchOptions","selectMode","autoSelect","comparator","id","prefixEvent","prefixClass"],function(n){angular.isDefined(i[n])&&(o[n]=i[n])});a=/^(false|0|)$/i;angular.forEach(["html","container","trimValue","filter"],function(n){angular.isDefined(i[n])&&a.test(i[n])&&(o[n]=!1)});angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide","onSelect"],function(t){var r="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(i[r])&&(o[t]=n.$eval(i[r]))});t.attr("autocomplete")||t.attr("autocomplete","off");var v=angular.isDefined(o.filter)?o.filter:f.filter,c=o.limit||f.limit,y=o.comparator||f.comparator,l=i.bsOptions;v&&(l+=" | "+v+":$viewValue",y&&(l+=":"+y));c&&(l+=" | limitTo:"+c);h=u(l);s=r(t,e,o);o.watchOptions&&(p=h.$match[7].replace(/\|.+/,"").replace(/\(.*\)/g,"").trim(),n.$watchCollection(p,function(){h.valuesFn(n,e).then(function(n){s.update(n);e.$render()})}));n.$watch(i.ngModel,function(t){n.$modelValue=t;h.valuesFn(n,e).then(function(n){return o.selectMode&&!n.length&&t.length>0?void e.$setViewValue(e.$viewValue.substring(0,e.$viewValue.length-1)):(n.length>c&&(n=n.slice(0,c)),s.update(n),void e.$render())})});e.$formatters.push(function(n){var t=h.displayValue(n);return t?t:angular.isDefined(n)&&"object"!=typeof n?n:""});e.$render=function(){var i,n;if(e.$isEmpty(e.$viewValue))return t.val("");i=s.$getIndex(e.$modelValue);n=-1!==i?s.$scope.$matches[i].label:e.$viewValue;n=angular.isObject(n)?h.displayValue(n):n;var r=n?n.toString().replace(/<(?:.|\n)*?>/gm,""):"",u=t[0].selectionStart,f=t[0].selectionEnd;t.val(o.trimValue===!1?r:r.trim());t[0].setSelectionRange(u,f)};n.$on("$destroy",function(){s&&s.destroy();o=null;s=null})}}}]);angular.module("mgcrea.ngStrap.tab",[]).provider("$tab",function(){var n=this.defaults={animation:"am-fade",template:"tab/tab.tpl.html",navClass:"nav-tabs",activeClass:"active"},t=this.controller=function(t,i,r){var u=this;u.$options=angular.copy(n);angular.forEach(["animation","navClass","activeClass"],function(n){angular.isDefined(r[n])&&(u.$options[n]=r[n])});t.$navClass=u.$options.navClass;t.$activeClass=u.$options.activeClass;u.$panes=t.$panes=[];u.$activePaneChangeListeners=u.$viewChangeListeners=[];u.$push=function(n){angular.isUndefined(u.$panes.$active)&&t.$setActive(n.name||0);u.$panes.push(n)};u.$remove=function(n){var t,i=u.$panes.indexOf(n),r=u.$panes.$active;t=angular.isString(r)?u.$panes.map(function(n){return n.name}).indexOf(r):u.$panes.$active;u.$panes.splice(i,1);t>i?t--:i===t&&t===u.$panes.length&&t--;t>=0&&t<u.$panes.length?u.$setActive(u.$panes[t].name||t):u.$setActive()};u.$setActive=t.$setActive=function(n){u.$panes.$active=n;u.$activePaneChangeListeners.forEach(function(n){n()})};u.$isActive=t.$isActive=function(n,t){return u.$panes.$active===n.name||u.$panes.$active===t}};this.$get=function(){var i={};return i.defaults=n,i.controller=t,i}}).directive("bsTabs",["$window","$animate","$tab","$parse",function(n,t,i,r){var u=i.defaults;return{require:["?ngModel","bsTabs"],transclude:!0,scope:!0,controller:["$scope","$element","$attrs",i.controller],templateUrl:function(n,t){return t.template||u.template},link:function(n,t,i,u){var e=u[0],f=u[1],o;(e&&(f.$activePaneChangeListeners.push(function(){e.$setViewValue(f.$panes.$active)}),e.$formatters.push(function(n){return f.$setActive(n),n})),i.bsActivePane)&&(o=r(i.bsActivePane),f.$activePaneChangeListeners.push(function(){o.assign(n,f.$panes.$active)}),n.$watch(i.bsActivePane,function(n){f.$setActive(n)},!0))}}}]).directive("bsPane",["$window","$animate","$sce",function(n,t,i){return{require:["^?ngModel","^bsTabs"],scope:!0,link:function(n,r,u,f){function o(){var i=e.$panes.indexOf(n);t[e.$isActive(n,i)?"addClass":"removeClass"](r,e.$options.activeClass)}var e=f[1];r.addClass("tab-pane");u.$observe("title",function(t){n.title=i.trustAsHtml(t)});n.name=u.name;e.$options.animation&&r.addClass(e.$options.animation);u.$observe("disabled",function(t){n.disabled=n.$eval(t)});e.$push(n);n.$on("$destroy",function(){e.$remove(n)});e.$activePaneChangeListeners.push(function(){o()});o()}}}]);angular.module("mgcrea.ngStrap.tooltip",["mgcrea.ngStrap.core","mgcrea.ngStrap.helpers.dimensions"]).provider("$tooltip",function(){var n=this.defaults={animation:"am-fade",customClass:"",prefixClass:"tooltip",prefixEvent:"tooltip",container:!1,target:!1,placement:"top",templateUrl:"tooltip/tooltip.tpl.html",template:"",titleTemplate:!1,trigger:"hover focus",keyboard:!1,html:!1,show:!1,title:"",type:"",delay:0,autoClose:!1,bsEnabled:!0,mouseDownPreventDefault:!0,mouseDownStopPropagation:!0,viewport:{selector:"body",padding:0}};this.$get=["$window","$rootScope","$bsCompiler","$q","$templateCache","$http","$animate","$sce","dimensions","$$rAF","$timeout",function(i,r,u,f,e,o,s,h,c,l,a){function b(f,e){function ot(){d.$emit(o.prefixEvent+".show",b);angular.isDefined(o.onShow)&&angular.isFunction(o.onShow)&&o.onShow(b)}function st(){if(d.$emit(o.prefixEvent+".hide",b),angular.isDefined(o.onHide)&&angular.isFunction(o.onHide)&&o.onHide(b),k===pt){if(yt&&"focus"===o.trigger)return f[0].blur();et()}}function wt(){var n=o.trigger.split(" ");angular.forEach(n,function(n){"click"===n||"contextmenu"===n?f.on(n,b.toggle):"manual"!==n&&(f.on("hover"===n?"mouseenter":"focus",b.enter),f.on("hover"===n?"mouseleave":"blur",b.leave),"button"===at&&"hover"!==n&&f.on(p?"touchstart":"mousedown",b.$onFocusElementMouseDown))})}function bt(){for(var n,t=o.trigger.split(" "),i=t.length;i--;)n=t[i],"click"===n||"contextmenu"===n?f.off(n,b.toggle):"manual"!==n&&(f.off("hover"===n?"mouseenter":"focus",b.enter),f.off("hover"===n?"mouseleave":"blur",b.leave),"button"===at&&"hover"!==n&&f.off(p?"touchstart":"mousedown",b.$onFocusElementMouseDown))}function kt(){"focus"!==o.trigger?k.on("keyup",b.$onKeyUp):f.on("keyup",b.$onFocusKeyUp)}function ht(){"focus"!==o.trigger?k.off("keyup",b.$onKeyUp):f.off("keyup",b.$onFocusKeyUp)}function dt(){a(function(){k.on("click",lt);w.on("click",b.hide);ut=!0},0,!1)}function ct(){ut&&(k.off("click",lt),w.off("click",b.hide),ut=!1)}function lt(n){n.stopPropagation()}function ft(n){var h;n=n||o.target||f;var e=n[0],s="BODY"===e.tagName,r=e.getBoundingClientRect(),u={};for(h in r)u[h]=r[h];null===u.width&&(u=angular.extend({},u,{width:r.right-r.left,height:r.bottom-r.top}));var l=s?{top:0,left:0}:c.offset(e),a={scroll:s?t.documentElement.scrollTop||t.body.scrollTop:n.prop("scrollTop")||0},v=s?{width:t.documentElement.clientWidth,height:i.innerHeight}:null;return angular.extend({},u,a,v,l)}function gt(n,t,i,r){var u,f=n.split("-");switch(f[0]){case"right":u={top:t.top+t.height/2-r/2,left:t.left+t.width};break;case"bottom":u={top:t.top+t.height,left:t.left+t.width/2-i/2};break;case"left":u={top:t.top+t.height/2-r/2,left:t.left-i};break;default:u={top:t.top-r,left:t.left+t.width/2-i/2}}if(!f[1])return u;if("top"===f[0]||"bottom"===f[0])switch(f[1]){case"left":u.left=t.left;break;case"right":u.left=t.left+t.width-i}else if("left"===f[0]||"right"===f[0])switch(f[1]){case"top":u.top=t.top-r+t.height;break;case"bottom":u.top=t.top}return u}function ni(n,t){var i=k[0],l=i.offsetWidth,f=i.offsetHeight,e=parseInt(c.css(i,"margin-top"),10),o=parseInt(c.css(i,"margin-left"),10),s,u,r;if(isNaN(e)&&(e=0),isNaN(o)&&(o=0),n.top=n.top+e,n.left=n.left+o,c.setOffset(i,angular.extend({using:function(n){k.css({top:Math.round(n.top)+"px",left:Math.round(n.left)+"px",right:""})}},n),0),s=i.offsetWidth,u=i.offsetHeight,("top"===t&&u!==f&&(n.top=n.top+f-u),!/top-left|top-right|bottom-left|bottom-right/.test(t))&&(r=ti(t,n,s,u),r.left?n.left+=r.left:n.top+=r.top,c.setOffset(i,n),/top|right|bottom|left/.test(t))){var h=/top|bottom/.test(t),a=h?2*r.left-l+s:2*r.top-f+u,v=h?"offsetWidth":"offsetHeight";ii(a,i[v],h)}}function ti(n,t,i,r){var f={top:0,left:0},e,u,s,h,c,l;return b.$viewport?(e=o.viewport&&o.viewport.padding||0,u=ft(b.$viewport),/right|left/.test(n)?(s=t.top-e-u.scroll,h=t.top+e-u.scroll+r,s<u.top?f.top=u.top-s:h>u.top+u.height&&(f.top=u.top+u.height-h)):(c=t.left-e,l=t.left+e+i,c<u.left?f.left=u.left-c:l>u.right&&(f.left=u.left+u.width-l)),f):f}function ii(n,t,i){var r=v(".tooltip-arrow, .arrow",k[0]);r.css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")}function et(){clearTimeout(tt);b.$isShown&&null!==k&&(o.autoClose&&ct(),o.keyboard&&ht());it&&(it.$destroy(),it=null);k&&(k.remove(),k=b.$element=null)}var b={},o=b.$options=angular.extend({},n,e),ri=b.$promise=u.compile(o),d=b.$scope=o.scope&&o.scope.$new()||r.$new(),at=f[0].nodeName.toLowerCase(),nt,tt,rt,vt,k,g,it,yt,pt,ut;return o.delay&&angular.isString(o.delay)&&(nt=o.delay.split(",").map(parseFloat),o.delay=nt.length>1?{show:nt[0],hide:nt[1]}:nt[0]),b.$id=o.id||f.attr("id")||"",o.title&&(d.title=h.trustAsHtml(o.title)),d.$setEnabled=function(n){d.$$postDigest(function(){b.setEnabled(n)})},d.$hide=function(){d.$$postDigest(function(){b.hide()})},d.$show=function(){d.$$postDigest(function(){b.show()})},d.$toggle=function(){d.$$postDigest(function(){b.toggle()})},b.$isShown=d.$isShown=!1,ri.then(function(n){vt=n;b.init()}),b.init=function(){o.delay&&angular.isNumber(o.delay)&&(o.delay={show:o.delay,hide:o.delay});"self"===o.container?g=f:angular.isElement(o.container)?g=o.container:o.container&&(g=v(o.container));wt();o.target&&(o.target=angular.isElement(o.target)?o.target:v(o.target));o.show&&d.$$postDigest(function(){"focus"===o.trigger?f[0].focus():b.show()})},b.destroy=function(){bt();et();d.$destroy()},b.enter=function(){return clearTimeout(tt),rt="in",o.delay&&o.delay.show?void(tt=setTimeout(function(){"in"===rt&&b.show()},o.delay.show)):b.show()},b.show=function(){if(o.bsEnabled&&!b.$isShown){d.$emit(o.prefixEvent+".show.before",b);angular.isDefined(o.onBeforeShow)&&angular.isFunction(o.onBeforeShow)&&o.onBeforeShow(b);var t,n;o.container?(t=g,n=g[0].lastChild?angular.element(g[0].lastChild):null):(t=null,n=f);k&&et();it=b.$scope.$new();k=b.$element=vt.link(it,function(){});k.css({top:"-9999px",left:"-9999px",right:"auto",display:"block",visibility:"hidden"});o.animation&&k.addClass(o.animation);o.type&&k.addClass(o.prefixClass+"-"+o.type);o.customClass&&k.addClass(o.customClass);n?n.after(k):t.prepend(k);b.$isShown=d.$isShown=!0;y(d);b.$applyPlacement();angular.version.minor<=2?s.enter(k,t,n,ot):s.enter(k,t,n).then(ot);y(d);l(function(){k&&k.css({visibility:"visible"});o.keyboard&&("focus"!==o.trigger&&b.focus(),kt())});o.autoClose&&dt()}},b.leave=function(){return clearTimeout(tt),rt="out",o.delay&&o.delay.hide?void(tt=setTimeout(function(){"out"===rt&&b.hide()},o.delay.hide)):b.hide()},b.hide=function(n){b.$isShown&&(d.$emit(o.prefixEvent+".hide.before",b),angular.isDefined(o.onBeforeHide)&&angular.isFunction(o.onBeforeHide)&&o.onBeforeHide(b),yt=n,pt=k,angular.version.minor<=2?s.leave(k,st):s.leave(k).then(st),b.$isShown=d.$isShown=!1,y(d),o.keyboard&&null!==k&&ht(),o.autoClose&&null!==k&&ct())},b.toggle=function(n){n&&n.preventDefault();b.$isShown?b.leave():b.enter()},b.focus=function(){k[0].focus()},b.setEnabled=function(n){o.bsEnabled=n},b.setViewport=function(n){o.viewport=n},b.$applyPlacement=function(){var i,u,c;if(k){var t=o.placement,s=/\s?auto?\s?/i,h=s.test(t);h&&(t=t.replace(s,"")||n.placement);k.addClass(o.placement);var r=ft(),f=k.prop("offsetWidth"),e=k.prop("offsetHeight");(b.$viewport=o.viewport&&v(o.viewport.selector||o.viewport),h)&&(i=t,u=ft(b.$viewport),/bottom/.test(i)&&r.bottom+e>u.bottom?t=i.replace("bottom","top"):/top/.test(i)&&r.top-e<u.top&&(t=i.replace("top","bottom")),/left/.test(i)&&r.left-f<u.left?t=t.replace("left","right"):/right/.test(i)&&r.right+f>u.width&&(t=t.replace("right","left")),k.removeClass(i).addClass(t));c=gt(t,r,f,e);ni(c,t)}},b.$onKeyUp=function(n){27===n.which&&b.$isShown&&(b.hide(),n.stopPropagation())},b.$onFocusKeyUp=function(n){27===n.which&&(f[0].blur(),n.stopPropagation())},b.$onFocusElementMouseDown=function(n){o.mouseDownPreventDefault&&n.preventDefault();o.mouseDownStopPropagation&&n.stopPropagation();b.$isShown?f[0].blur():f[0].focus()},ut=!1,b}function y(n){n.$$phase||n.$root&&n.$root.$$phase||n.$digest()}function v(n,i){return angular.element((i||t).querySelectorAll(n))}var k=/(ip[ao]d|iphone|android)/gi.test(i.navigator.userAgent),p="createTouch"in i.document&&k,w=angular.element(i.document);return b}]}).directive("bsTooltip",["$window","$location","$sce","$parse","$tooltip","$$rAF",function(n,t,i,r,u,f){return{restrict:"EAC",scope:!0,link:function(n,t,r){var e,o={scope:n},h,s;angular.forEach(["template","templateUrl","controller","controllerAs","titleTemplate","placement","container","delay","trigger","html","animation","backdropAnimation","type","customClass","id"],function(n){angular.isDefined(r[n])&&(o[n]=r[n])});h=/^(false|0|)$/i;angular.forEach(["html","container"],function(n){angular.isDefined(r[n])&&h.test(r[n])&&(o[n]=!1)});angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var i="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(r[i])&&(o[t]=n.$eval(r[i]))});s=t.attr("data-target");angular.isDefined(s)&&(o.target=h.test(s)?!1:s);n.hasOwnProperty("title")||(n.title="");r.$observe("title",function(t){if(angular.isDefined(t)||!n.hasOwnProperty("title")){var r=n.title;n.title=i.trustAsHtml(t);angular.isDefined(r)&&f(function(){e&&e.$applyPlacement()})}});r.$observe("disabled",function(n){n&&e.$isShown&&e.hide()});r.bsTooltip&&n.$watch(r.bsTooltip,function(t,i){angular.isObject(t)?angular.extend(n,t):n.title=t;angular.isDefined(i)&&f(function(){e&&e.$applyPlacement()})},!0);r.bsShow&&n.$watch(r.bsShow,function(n){e&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|,?(tooltip),?/i)),n===!0?e.show():e.hide())});r.bsEnabled&&n.$watch(r.bsEnabled,function(n){e&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|1|,?(tooltip),?/i)),n===!1?e.setEnabled(!1):e.setEnabled(!0))});r.viewport&&n.$watch(r.viewport,function(n){e&&angular.isDefined(n)&&e.setViewport(n)});e=u(t,o);n.$on("$destroy",function(){e&&e.destroy();o=null;e=null})}}}]);angular.module("mgcrea.ngStrap.timepicker",["mgcrea.ngStrap.helpers.dateParser","mgcrea.ngStrap.helpers.dateFormatter","mgcrea.ngStrap.tooltip"]).provider("$timepicker",function(){var n=this.defaults={animation:"am-fade",defaultDate:"auto",prefixClass:"timepicker",placement:"bottom-left",templateUrl:"timepicker/timepicker.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,useNative:!0,timeType:"date",timeFormat:"shortTime",timezone:null,modelTimeFormat:null,autoclose:!1,minTime:-(1/0),maxTime:+(1/0),length:5,hourStep:1,minuteStep:5,secondStep:5,roundDisplay:!1,iconUp:"fa fa-chevron-up",iconDown:"fa fa-chevron-down",arrowBehavior:"pager"};this.$get=["$window","$document","$rootScope","$sce","$dateFormatter","$tooltip","$timeout",function(t,i,r,u,f,e,o){function c(t,i,r){function ot(n){var t=6e4*c.minuteStep;return new Date(Math.floor(n.getTime()/t)*t)}function st(n,i){var u=n+i,r;t[0].createTextRange?(r=t[0].createTextRange(),r.collapse(!0),r.moveStart("character",n),r.moveEnd("character",u),r.select()):t[0].setSelectionRange?t[0].setSelectionRange(n,u):angular.isUndefined(t[0].selectionStart)&&(t[0].selectionStart=n,t[0].selectionEnd=u)}function nt(){t[0].focus()}var u=e(t,angular.extend({},n,r)),ht=r.scope,c=u.$options,a=u.$scope,tt=c.lang,y=function(n,t,i){return f.formatDate(n,t,tt,i)},v=0,ct=c.roundDisplay?ot(new Date):new Date,w=i.$dateValue||ct,l={hour:w.getHours(),meridian:w.getHours()<12,minute:w.getMinutes(),second:w.getSeconds(),millisecond:w.getMilliseconds()},b=f.getDatetimeFormat(c.timeFormat,tt),k=f.hoursFormat(b),lt=f.timeSeparator(b),d=f.minutesFormat(b),g=f.secondsFormat(b),p=f.showSeconds(b),it=f.showAM(b),rt,ut,ft,et;return a.$iconUp=c.iconUp,a.$iconDown=c.iconDown,a.$select=function(n,t){u.select(n,t)},a.$moveIndex=function(n,t){u.$moveIndex(n,t)},a.$switchMeridian=function(n){u.switchMeridian(n)},u.update=function(n){angular.isDate(n)&&!isNaN(n.getTime())?(u.$date=n,angular.extend(l,{hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds(),millisecond:n.getMilliseconds()}),u.$build()):u.$isBuilt||u.$build()},u.select=function(n,t,r){(!i.$dateValue||isNaN(i.$dateValue.getTime()))&&(i.$dateValue="today"===c.defaultDate?new Date:new Date(1970,0,1));angular.isDate(n)||(n=new Date(n));0===t?i.$dateValue.setHours(n.getHours()):1===t?i.$dateValue.setMinutes(n.getMinutes()):2===t&&i.$dateValue.setSeconds(n.getSeconds());i.$setViewValue(angular.copy(i.$dateValue));i.$render();c.autoclose&&!r&&o(function(){u.hide(!0)})},u.switchMeridian=function(n){if(i.$dateValue&&!isNaN(i.$dateValue.getTime())){var t=(n||i.$dateValue).getHours();i.$dateValue.setHours(12>t?t+12:t-12);i.$setViewValue(angular.copy(i.$dateValue));i.$render()}},u.$build=function(){for(var t,f=a.midIndex=parseInt(c.length/2,10),e=[],i,o,r,h,s,n=0;n<c.length;n++)t=new Date(1970,0,1,l.hour-(f-n)*c.hourStep),e.push({date:t,label:y(t,k),selected:u.$date&&u.$isSelected(t,0),disabled:u.$isDisabled(t,0)});for(o=[],n=0;n<c.length;n++)i=new Date(1970,0,1,0,l.minute-(f-n)*c.minuteStep),o.push({date:i,label:y(i,d),selected:u.$date&&u.$isSelected(i,1),disabled:u.$isDisabled(i,1)});for(h=[],n=0;n<c.length;n++)r=new Date(1970,0,1,0,0,l.second-(f-n)*c.secondStep),h.push({date:r,label:y(r,g),selected:u.$date&&u.$isSelected(r,2),disabled:u.$isDisabled(r,2)});for(s=[],n=0;n<c.length;n++)p?s.push([e[n],o[n],h[n]]):s.push([e[n],o[n]]);a.rows=s;a.showSeconds=p;a.showAM=it;a.isAM=(u.$date||e[f].date).getHours()<12;a.timeSeparator=lt;u.$isBuilt=!0},u.$isSelected=function(n,t){return u.$date?0===t?n.getHours()===u.$date.getHours():1===t?n.getMinutes()===u.$date.getMinutes():2===t?n.getSeconds()===u.$date.getSeconds():void 0:!1},u.$isDisabled=function(n,t){var i;return 0===t?i=n.getTime()+6e4*l.minute+1e3*l.second:1===t?i=n.getTime()+36e5*l.hour+1e3*l.second:2===t&&(i=n.getTime()+36e5*l.hour+6e4*l.minute),i<1*c.minTime||i>1*c.maxTime},a.$arrowAction=function(n,t){"picker"===c.arrowBehavior?u.$setTimeByStep(n,t):u.$moveIndex(n,t)},u.$setTimeByStep=function(n,t){var i=new Date(u.$date||w),r=i.getHours(),f=i.getMinutes(),e=i.getSeconds();0===t?i.setHours(r-parseInt(c.hourStep,10)*n):1===t?i.setMinutes(f-parseInt(c.minuteStep,10)*n):2===t&&i.setSeconds(e-parseInt(c.secondStep,10)*n);u.select(i,t,!0)},u.$moveIndex=function(n,t){var i;0===t?(i=new Date(1970,0,1,l.hour+n*c.length,l.minute,l.second),angular.extend(l,{hour:i.getHours()})):1===t?(i=new Date(1970,0,1,l.hour,l.minute+n*c.length*c.minuteStep,l.second),angular.extend(l,{minute:i.getMinutes()})):2===t&&(i=new Date(1970,0,1,l.hour,l.minute,l.second+n*c.length*c.secondStep),angular.extend(l,{second:i.getSeconds()}));u.$build()},u.$onMouseDown=function(n){if("input"!==n.target.nodeName.toLowerCase()&&n.preventDefault(),n.stopPropagation(),s){var t=angular.element(n.target);"button"!==t[0].nodeName.toLowerCase()&&(t=t.parent());t.triggerHandler("click")}},u.$onKeyDown=function(n){var i,e,a,w;if(/(38|37|39|40|13)/.test(n.keyCode)&&!n.shiftKey&&!n.altKey){if(n.preventDefault(),n.stopPropagation(),13===n.keyCode)return void u.hide(!0);var t=new Date(u.$date),b=t.getHours(),r=y(t,k).length,nt=t.getMinutes(),o=y(t,d).length,tt=t.getSeconds(),s=y(t,g).length,f=1,h=/(37|39)/.test(n.keyCode),l=2+1*p+1*it;h&&(37===n.keyCode?v=1>v?l-1:v-1:39===n.keyCode&&(v=l-1>v?v+1:0));i=[0,r];e=0;38===n.keyCode&&(e=-1);40===n.keyCode&&(e=1);a=2===v&&p;w=2===v&&!p||3===v&&p;0===v?(t.setHours(b+e*parseInt(c.hourStep,10)),r=y(t,k).length,i=[0,r]):1===v?(t.setMinutes(nt+e*parseInt(c.minuteStep,10)),o=y(t,d).length,i=[r+f,o]):a?(t.setSeconds(tt+e*parseInt(c.secondStep,10)),s=y(t,g).length,i=[r+f+o+f,s]):w&&(h||u.switchMeridian(),i=[r+f+o+f+(s+f)*p,2]);u.select(t,v,!0);st(i[0],i[1]);ht.$digest()}},rt=u.init,u.init=function(){return h&&c.useNative?(t.prop("type","time"),void t.css("-webkit-appearance","textfield")):(s&&(t.prop("type","text"),t.attr("readonly","true"),t.on("click",nt)),void rt())},ut=u.destroy,u.destroy=function(){h&&c.useNative&&t.off("click",nt);ut()},ft=u.show,u.show=function(){!s&&t.attr("readonly")||t.attr("disabled")||(ft(),o(function(){u.$element&&u.$element.on(s?"touchstart":"mousedown",u.$onMouseDown);c.keyboard&&t&&t.on("keydown",u.$onKeyDown)},0,!1))},et=u.hide,u.hide=function(n){u.$isShown&&(u.$element&&u.$element.off(s?"touchstart":"mousedown",u.$onMouseDown),c.keyboard&&t&&t.off("keydown",u.$onKeyDown),et(n))},u}var h=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),s="createTouch"in t.document&&h;return n.lang||(n.lang=f.getDefaultLocale()),c.defaults=n,c}]}).directive("bsTimepicker",["$window","$parse","$q","$dateFormatter","$dateParser","$timepicker",function(n,t,r,u,f,e){var o=e.defaults,s=/(ip[ao]d|iphone|android)/gi.test(n.navigator.userAgent);return{restrict:"EAC",require:"ngModel",link:function(n,t,r,h){function p(n){if(angular.isDate(n)){var t=isNaN(c.minTime)||new Date(n.getTime()).setFullYear(1970,0,1)>=c.minTime,i=isNaN(c.maxTime)||new Date(n.getTime()).setFullYear(1970,0,1)<=c.maxTime,r=t&&i;h.$setValidity("date",r);h.$setValidity("min",t);h.$setValidity("max",i);r&&(h.$dateValue=n)}}function w(){return!h.$dateValue||isNaN(h.$dateValue.getTime())?"":y(h.$dateValue,c.timeFormat)}var c={scope:n},b,l,v,y,a;angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","autoclose","timeType","timeFormat","timezone","modelTimeFormat","useNative","hourStep","minuteStep","secondStep","length","arrowBehavior","iconUp","iconDown","roundDisplay","id","prefixClass","prefixEvent","defaultDate"],function(n){angular.isDefined(r[n])&&(c[n]=r[n])});b=/^(false|0|)$/i;angular.forEach(["html","container","autoclose","useNative","roundDisplay"],function(n){angular.isDefined(r[n])&&b.test(r[n])&&(c[n]=!1)});angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var i="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(r[i])&&(c[t]=n.$eval(r[i]))});s&&(c.useNative||o.useNative)&&(c.timeFormat="HH:mm");l=e(t,h,c);c=l.$options;v=c.lang;y=function(n,t,i){return u.formatDate(n,t,v,i)};r.bsShow&&n.$watch(r.bsShow,function(n){l&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|,?(timepicker),?/i)),n===!0?l.show():l.hide())});a=f({format:c.timeFormat,lang:v});angular.forEach(["minTime","maxTime"],function(n){angular.isDefined(r[n])&&r.$observe(n,function(t){l.$options[n]=a.getTimeForAttribute(n,t);isNaN(l.$options[n])||l.$build();p(h.$dateValue)})});n.$watch(r.ngModel,function(){l.update(h.$dateValue)},!0);h.$parsers.unshift(function(n){var t,r;return n?(r=angular.isDate(n)?n:a.parse(n,h.$dateValue),!r||isNaN(r.getTime())?(h.$setValidity("date",!1),i):(p(r),"string"===c.timeType?(t=a.timezoneOffsetAdjust(r,c.timezone,!0),y(t,c.modelTimeFormat||c.timeFormat)):(t=a.timezoneOffsetAdjust(h.$dateValue,c.timezone,!0),"number"===c.timeType?t.getTime():"unix"===c.timeType?t.getTime()/1e3:"iso"===c.timeType?t.toISOString():new Date(t)))):(h.$setValidity("date",!0),null)});h.$formatters.push(function(n){var t;return t=angular.isUndefined(n)||null===n?NaN:angular.isDate(n)?n:"string"===c.timeType?a.parse(n,null,c.modelTimeFormat):"unix"===c.timeType?new Date(1e3*n):new Date(n),h.$dateValue=a.timezoneOffsetAdjust(t,c.timezone),w()});h.$render=function(){t.val(w())};n.$on("$destroy",function(){l&&l.destroy();c=null;l=null})}}}]);angular.module("mgcrea.ngStrap.scrollspy",["mgcrea.ngStrap.helpers.debounce","mgcrea.ngStrap.helpers.dimensions"]).provider("$scrollspy",function(){var n=this.$$spies={},i=this.defaults={debounce:150,throttle:100,offset:100};this.$get=["$window","$document","$rootScope","dimensions","debounce","throttle",function(r,u,f,e,o,s){function h(n,t){return n[0].nodeName&&n[0].nodeName.toLowerCase()===t.toLowerCase()}function l(u){var p=angular.extend({},i,u);p.element||(p.element=v);var it=h(p.element,"body"),k=it?c:p.element,b=it?"window":p.id;if(n[b])return n[b].$$count++,n[b];var ut,ft,d,g,rt,nt,et,tt,l={},w=l.$trackedElements=[],y=[];return l.init=function(){this.$$count=1;g=o(this.checkPosition,p.debounce);rt=s(this.checkPosition,p.throttle);k.on("click",this.checkPositionWithEventLoop);c.on("resize",g);k.on("scroll",rt);nt=o(this.checkOffsets,p.debounce);ut=f.$on("$viewContentLoaded",nt);ft=f.$on("$includeContentLoaded",nt);nt();b&&(n[b]=l)},l.destroy=function(){this.$$count--;this.$$count>0||(k.off("click",this.checkPositionWithEventLoop),c.off("resize",g),k.off("scroll",rt),ut(),ft(),b&&delete n[b])},l.checkPosition=function(){if(y.length){if(tt=(it?r.pageYOffset:k.prop("scrollTop"))||0,et=Math.max(r.innerHeight,a.prop("clientHeight")),tt<y[0].offsetTop&&d!==y[0].target)return l.$activateElement(y[0]);for(var n=y.length;n--;)if(!angular.isUndefined(y[n].offsetTop)&&null!==y[n].offsetTop&&d!==y[n].target&&!(tt<y[n].offsetTop||y[n+1]&&tt>y[n+1].offsetTop))return l.$activateElement(y[n])}},l.checkPositionWithEventLoop=function(){setTimeout(l.checkPosition,1)},l.$activateElement=function(n){if(d){var t=l.$getTrackedElement(d);t&&(t.source.removeClass("active"),h(t.source,"li")&&h(t.source.parent().parent(),"li")&&t.source.parent().parent().removeClass("active"))}d=n.target;n.source.addClass("active");h(n.source,"li")&&h(n.source.parent().parent(),"li")&&n.source.parent().parent().addClass("active")},l.$getTrackedElement=function(n){return w.filter(function(t){return t.target===n})[0]},l.checkOffsets=function(){angular.forEach(w,function(n){var i=t.querySelector(n.target);n.offsetTop=i?e.offset(i).top:null;p.offset&&null!==n.offsetTop&&(n.offsetTop-=1*p.offset)});y=w.filter(function(n){return null!==n.offsetTop}).sort(function(n,t){return n.offsetTop-t.offsetTop});g()},l.trackElement=function(n,t){w.push({target:n,source:t})},l.untrackElement=function(n,t){for(var r,i=w.length;i--;)if(w[i].target===n&&w[i].source===t){r=i;break}w.splice(r,1)},l.activate=function(n){w[n].addClass("active")},l.init(),l}var c=angular.element(r),a=angular.element(u.prop("documentElement")),v=angular.element(r.document.body);return l}]}).directive("bsScrollspy",["$rootScope","debounce","dimensions","$scrollspy",function(n,t,i,r){return{restrict:"EAC",link:function(n,t,i){var f={scope:n},u;angular.forEach(["offset","target"],function(n){angular.isDefined(i[n])&&(f[n]=i[n])});u=r(f);u.trackElement(f.target,t);n.$on("$destroy",function(){u&&(u.untrackElement(f.target,t),u.destroy());f=null;u=null})}}}]).directive("bsScrollspyList",["$rootScope","debounce","dimensions","$scrollspy",function(){return{restrict:"A",compile:function(n){var t=n[0].querySelectorAll("li > a[href]");angular.forEach(t,function(n){var t=angular.element(n);t.parent().attr("bs-scrollspy","").attr("data-target",t.attr("href"))})}}}]);angular.module("mgcrea.ngStrap.select",["mgcrea.ngStrap.tooltip","mgcrea.ngStrap.helpers.parseOptions"]).provider("$select",function(){var n=this.defaults={animation:"am-fade",prefixClass:"select",prefixEvent:"$select",placement:"bottom-left",templateUrl:"select/select.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,multiple:!1,allNoneButtons:!1,sort:!0,caretHtml:'&nbsp;<span class="caret"><\/span>',placeholder:"Choose among the following...",allText:"All",noneText:"None",maxLength:3,maxLengthHtml:"selected",iconCheckmark:"fa fa-check",toggle:!1};this.$get=["$window","$document","$rootScope","$tooltip","$timeout",function(t,r,u,f,e){function s(u,s,h){var l={},a=angular.extend({},n,h),c,v,y;return l=f(u,a),c=l.$scope,c.$matches=[],c.$activeIndex=a.multiple?[]:-1,c.$isMultiple=a.multiple,c.$showAllNoneButtons=a.allNoneButtons&&a.multiple,c.$iconCheckmark=a.iconCheckmark,c.$allText=a.allText,c.$noneText=a.noneText,c.$activate=function(n){c.$$postDigest(function(){l.activate(n)})},c.$select=function(n){c.$$postDigest(function(){l.select(n)})},c.$isVisible=function(){return l.$isVisible()},c.$isActive=function(n){return l.$isActive(n)},c.$selectAll=function(){for(var n=0;n<c.$matches.length;n++)c.$isActive(n)||c.$select(n)},c.$selectNone=function(){for(var n=0;n<c.$matches.length;n++)c.$isActive(n)&&c.$select(n)},l.update=function(n){c.$matches=n;l.$updateActiveIndex()},l.activate=function(n){return a.multiple?(l.$isActive(n)?c.$activeIndex.splice(c.$activeIndex.indexOf(n),1):c.$activeIndex.push(n),a.sort&&c.$activeIndex.sort(function(n,t){return n-t})):c.$activeIndex=n,c.$activeIndex},l.select=function(n){if(!(angular.isUndefined(n)||0>n||n>=c.$matches.length)){var t=c.$matches[n].value;c.$apply(function(){l.activate(n);a.multiple?s.$setViewValue(c.$activeIndex.map(function(n){return angular.isUndefined(c.$matches[n])?null:c.$matches[n].value})):(a.toggle?s.$setViewValue(t===s.$modelValue?i:t):s.$setViewValue(t),l.hide())});c.$emit(a.prefixEvent+".select",t,n,l);angular.isDefined(a.onSelect)&&angular.isFunction(a.onSelect)&&a.onSelect(t,n,l)}},l.$updateActiveIndex=function(){c.$activeIndex=a.multiple?angular.isArray(s.$modelValue)?s.$modelValue.map(function(n){return l.$getIndex(n)}):[]:angular.isDefined(s.$modelValue)&&c.$matches.length?l.$getIndex(s.$modelValue):-1},l.$isVisible=function(){return a.minLength&&s?c.$matches.length&&s.$viewValue.length>=a.minLength:c.$matches.length},l.$isActive=function(n){return a.multiple?-1!==c.$activeIndex.indexOf(n):c.$activeIndex===n},l.$getIndex=function(n){for(var t=c.$matches.length;t--&&!angular.equals(c.$matches[t].value,n););return t},l.$onMouseDown=function(n){if(n.preventDefault(),n.stopPropagation(),o){var t=angular.element(n.target);t.triggerHandler("click")}},l.$onKeyDown=function(n){if(/(9|13|38|40)/.test(n.keyCode))return(9!==n.keyCode&&(n.preventDefault(),n.stopPropagation()),a.multiple&&9===n.keyCode?l.hide():a.multiple||13!==n.keyCode&&9!==n.keyCode?void(a.multiple||(38===n.keyCode&&c.$activeIndex>0?c.$activeIndex--:38===n.keyCode&&c.$activeIndex<0?c.$activeIndex=c.$matches.length-1:40===n.keyCode&&c.$activeIndex<c.$matches.length-1?c.$activeIndex++:angular.isUndefined(c.$activeIndex)&&(c.$activeIndex=0),c.$digest())):l.select(c.$activeIndex))},l.$isIE=function(){var n=t.navigator.userAgent;return n.indexOf("MSIE ")>0||n.indexOf("Trident/")>0||n.indexOf("Edge/")>0},l.$selectScrollFix=function(n){"UL"===r[0].activeElement.tagName&&(n.preventDefault(),n.stopImmediatePropagation(),n.target.focus())},v=l.show,l.show=function(){v();a.multiple&&l.$element.addClass("select-multiple");e(function(){l.$element.on(o?"touchstart":"mousedown",l.$onMouseDown);a.keyboard&&u.on("keydown",l.$onKeyDown)},0,!1)},y=l.hide,l.hide=function(){!a.multiple&&angular.isUndefined(s.$modelValue)&&(c.$activeIndex=-1);l.$element.off(o?"touchstart":"mousedown",l.$onMouseDown);a.keyboard&&u.off("keydown",l.$onKeyDown);y(!0)},l}var h=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),o="createTouch"in t.document&&h;return s.defaults=n,s}]}).directive("bsSelect",["$window","$parse","$q","$select","$parseOptions",function(n,t,i,r,u){var f=r.defaults;return{restrict:"EAC",require:"ngModel",link:function(n,t,i,e){var o={scope:n,placeholder:f.placeholder},c,h,l,a,s,v;angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","placeholder","allNoneButtons","maxLength","maxLengthHtml","allText","noneText","iconCheckmark","autoClose","id","sort","caretHtml","prefixClass","prefixEvent","toggle"],function(n){angular.isDefined(i[n])&&(o[n]=i[n])});c=/^(false|0|)$/i;angular.forEach(["html","container","allNoneButtons","sort"],function(n){angular.isDefined(i[n])&&c.test(i[n])&&(o[n]=!1)});angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide","onSelect"],function(t){var r="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(i[r])&&(o[t]=n.$eval(i[r]))});h=t.attr("data-multiple");(angular.isDefined(h)&&(o.multiple=c.test(h)?!1:h),"select"===t[0].nodeName.toLowerCase())&&(l=t,l.css("display","none"),t=angular.element('<button type="button" class="btn btn-default"><\/button>'),l.after(t));a=u(i.bsOptions);s=r(t,e,o);s.$isIE()&&t[0].addEventListener("blur",s.$selectScrollFix);v=a.$match[7].replace(/\|.+/,"").trim();n.$watch(v,function(){a.valuesFn(n,e).then(function(n){s.update(n);e.$render()})},!0);n.$watch(i.ngModel,function(){s.$updateActiveIndex();e.$render()},!0);e.$render=function(){var n,i;o.multiple&&angular.isArray(e.$modelValue)?(n=e.$modelValue.map(function(n){return i=s.$getIndex(n),-1!==i?s.$scope.$matches[i].label:!1}).filter(angular.isDefined),n=n.length>(o.maxLength||f.maxLength)?n.length+" "+(o.maxLengthHtml||f.maxLengthHtml):n.join(", ")):(i=s.$getIndex(e.$modelValue),n=-1!==i?s.$scope.$matches[i].label:!1);t.html((n||o.placeholder)+(o.caretHtml||f.caretHtml))};o.multiple&&(e.$isEmpty=function(n){return!n||0===n.length});n.$on("$destroy",function(){s&&s.destroy();o=null;s=null})}}}]);angular.module("mgcrea.ngStrap.popover",["mgcrea.ngStrap.tooltip"]).provider("$popover",function(){var n=this.defaults={animation:"am-fade",customClass:"",container:!1,target:!1,placement:"right",templateUrl:"popover/popover.tpl.html",contentTemplate:!1,trigger:"click",keyboard:!0,html:!1,title:"",content:"",delay:0,autoClose:!1};this.$get=["$tooltip",function(t){function i(i,r){var u=angular.extend({},n,r),f=t(i,u);return u.content&&(f.$scope.content=u.content),f}return i}]}).directive("bsPopover",["$window","$sce","$popover",function(n,t,i){var r=n.requestAnimationFrame||n.setTimeout;return{restrict:"EAC",scope:!0,link:function(n,u,f){var e,o={scope:n},h,s;angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","container","delay","trigger","html","animation","customClass","autoClose","id","prefixClass","prefixEvent"],function(n){angular.isDefined(f[n])&&(o[n]=f[n])});h=/^(false|0|)$/i;angular.forEach(["html","container","autoClose"],function(n){angular.isDefined(f[n])&&h.test(f[n])&&(o[n]=!1)});angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var i="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(f[i])&&(o[t]=n.$eval(f[i]))});s=u.attr("data-target");angular.isDefined(s)&&(o.target=h.test(s)?!1:s);angular.forEach(["title","content"],function(i){f[i]&&f.$observe(i,function(u,f){n[i]=t.trustAsHtml(u);angular.isDefined(f)&&r(function(){e&&e.$applyPlacement()})})});f.bsPopover&&n.$watch(f.bsPopover,function(t,i){angular.isObject(t)?angular.extend(n,t):n.content=t;angular.isDefined(i)&&r(function(){e&&e.$applyPlacement()})},!0);f.bsShow&&n.$watch(f.bsShow,function(n){e&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|,?(popover),?/i)),n===!0?e.show():e.hide())});f.viewport&&n.$watch(f.viewport,function(n){e&&angular.isDefined(n)&&e.setViewport(n)});e=i(u,o);n.$on("$destroy",function(){e&&e.destroy();o=null;e=null})}}}]);angular.module("mgcrea.ngStrap.navbar",[]).provider("$navbar",function(){var n=this.defaults={activeClass:"active",routeAttr:"data-match-route",strict:!1};this.$get=function(){return{defaults:n}}}).directive("bsNavbar",["$window","$location","$navbar",function(n,t,i){var r=i.defaults;return{restrict:"A",link:function(n,i,u){var f=angular.copy(r);angular.forEach(Object.keys(r),function(n){angular.isDefined(u[n])&&(f[n]=u[n])});n.$watch(function(){return t.path()},function(n){var t=i[0].querySelectorAll("li["+f.routeAttr+"]");angular.forEach(t,function(t){var i=angular.element(t),r=i.attr(f.routeAttr).replace("/","\\/"),u;f.strict&&(r="^"+r+"$");u=new RegExp(r,"i");u.test(n)?i.addClass(f.activeClass):i.removeClass(f.activeClass)})})}}}]);angular.module("mgcrea.ngStrap.modal",["mgcrea.ngStrap.core","mgcrea.ngStrap.helpers.dimensions"]).provider("$modal",function(){var n=this.defaults={animation:"am-fade",backdropAnimation:"am-fade",customClass:"",prefixClass:"modal",prefixEvent:"modal",placement:"top",templateUrl:"modal/modal.tpl.html",template:"",contentTemplate:!1,container:!1,element:null,backdrop:!0,keyboard:!0,html:!1,show:!0,size:null};this.$get=["$window","$rootScope","$bsCompiler","$animate","$timeout","$sce","dimensions",function(i,r,u,f,e,o){function v(t){function tt(){k.$emit(i.prefixEvent+".show",e);angular.isDefined(i.onShow)&&angular.isFunction(i.onShow)&&i.onShow(e)}function it(){k.$emit(i.prefixEvent+".hide",e);angular.isDefined(i.onHide)&&angular.isFunction(i.onHide)&&i.onHide(e);s.removeClass(i.prefixClass+"-open");i.animation&&s.removeClass(i.prefixClass+"-with-"+i.animation)}function st(){i.backdrop&&(v.on("click",nt),d.on("click",nt),d.on("wheel",ft))}function rt(){i.backdrop&&(v.off("click",nt),d.off("click",nt),d.off("wheel",ft))}function ht(){i.keyboard&&v.on("keyup",e.$onKeyUp)}function ut(){i.keyboard&&v.off("keyup",e.$onKeyUp)}function nt(n){n.target===n.currentTarget&&("static"===i.backdrop?e.focus():e.hide())}function ft(n){n.preventDefault()}function et(){e.$isShown&&null!==v&&(rt(),ut());g&&(g.$destroy(),g=null);v&&(v.remove(),v=e.$element=null)}var e={},i=e.$options=angular.extend({},n,t),ct=e.$promise=u.compile(i),k=e.$scope=i.scope&&i.scope.$new()||r.$new(),ot,v,g,d;return i.element||i.container||(i.container="body"),e.$id=i.id||i.element&&i.element.attr("id")||"",y(["title","content"],function(n){i[n]&&(k[n]=o.trustAsHtml(i[n]))}),k.$hide=function(){k.$$postDigest(function(){e.hide()})},k.$show=function(){k.$$postDigest(function(){e.show()})},k.$toggle=function(){k.$$postDigest(function(){e.toggle()})},e.$isShown=k.$isShown=!1,d=angular.element('<div class="'+i.prefixClass+'-backdrop"/>'),d.css({position:"fixed",top:"0px",left:"0px",bottom:"0px",right:"0px"}),ct.then(function(n){ot=n;e.init()}),e.init=function(){i.show&&k.$$postDigest(function(){e.show()})},e.destroy=function(){et();d&&(d.remove(),d=null);k.$destroy()},e.show=function(){var n,t,r;e.$isShown||(angular.isElement(i.container)?(n=i.container,t=i.container[0].lastChild?angular.element(i.container[0].lastChild):null):i.container?(n=l(i.container),t=n[0]&&n[0].lastChild?angular.element(n[0].lastChild):null):(n=null,t=i.element),v&&et(),g=e.$scope.$new(),v=e.$element=ot.link(g,function(){}),i.backdrop&&(v.css({"z-index":w+20*h}),d.css({"z-index":b+20*h}),h++),k.$emit(i.prefixEvent+".show.before",e).defaultPrevented)||(angular.isDefined(i.onBeforeShow)&&angular.isFunction(i.onBeforeShow)&&i.onBeforeShow(e),v.css({display:"block"}).addClass(i.placement),i.customClass&&v.addClass(i.customClass),i.size&&a[i.size]&&angular.element(l(".modal-dialog",v[0])).addClass(a[i.size]),i.animation&&(i.backdrop&&d.addClass(i.backdropAnimation),v.addClass(i.animation)),i.backdrop&&f.enter(d,s,null),angular.version.minor<=2?f.enter(v,n,t,tt):f.enter(v,n,t).then(tt),e.$isShown=k.$isShown=!0,c(k),r=v[0],p(function(){r.focus()}),s.addClass(i.prefixClass+"-open"),i.animation&&s.addClass(i.prefixClass+"-with-"+i.animation),st(),ht())},e.hide=function(){e.$isShown&&(k.$emit(i.prefixEvent+".hide.before",e).defaultPrevented||(angular.isDefined(i.onBeforeHide)&&angular.isFunction(i.onBeforeHide)&&i.onBeforeHide(e),angular.version.minor<=2?f.leave(v,it):f.leave(v).then(it),i.backdrop&&(h--,f.leave(d)),e.$isShown=k.$isShown=!1,c(k),rt(),ut()))},e.toggle=function(){e.$isShown?e.hide():e.show()},e.focus=function(){v[0].focus()},e.$onKeyUp=function(n){27===n.which&&e.$isShown&&(e.hide(),n.stopPropagation())},e}function c(n){n.$$phase||n.$root&&n.$root.$$phase||n.$digest()}function l(n,i){return angular.element((i||t).querySelectorAll(n))}var y=angular.forEach,p=i.requestAnimationFrame||i.setTimeout,s=angular.element(i.document.body),h=0,w=1050,b=1040,a={lg:"modal-lg",sm:"modal-sm"};return v}]}).directive("bsModal",["$window","$sce","$parse","$modal",function(n,t,i,r){return{restrict:"EAC",scope:!0,link:function(n,i,u){var f={scope:n,element:i,show:!1},o,e;angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","backdrop","keyboard","html","container","animation","backdropAnimation","id","prefixEvent","prefixClass","customClass","modalClass","size"],function(n){angular.isDefined(u[n])&&(f[n]=u[n])});f.modalClass&&(f.customClass=f.modalClass);o=/^(false|0|)$/i;angular.forEach(["backdrop","keyboard","html","container"],function(n){angular.isDefined(u[n])&&o.test(u[n])&&(f[n]=!1)});angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var i="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(u[i])&&(f[t]=n.$eval(u[i]))});angular.forEach(["title","content"],function(i){u[i]&&u.$observe(i,function(r){n[i]=t.trustAsHtml(r)})});u.bsModal&&n.$watch(u.bsModal,function(t){angular.isObject(t)?angular.extend(n,t):n.content=t},!0);e=r(f);i.on(u.trigger||"click",e.toggle);n.$on("$destroy",function(){e&&e.destroy();f=null;e=null})}}}]);angular.module("mgcrea.ngStrap.dropdown",["mgcrea.ngStrap.tooltip"]).provider("$dropdown",function(){var n=this.defaults={animation:"am-fade",prefixClass:"dropdown",prefixEvent:"dropdown",placement:"bottom-left",templateUrl:"dropdown/dropdown.tpl.html",trigger:"click",container:!1,keyboard:!0,html:!1,delay:0};this.$get=["$window","$rootScope","$tooltip","$timeout",function(t,i,r,u){function o(t,o){function l(n){if(n.target!==t[0])return n.target!==t[0]&&s.hide()}var s={},h=angular.extend({},n,o),c,a,v,y;return s.$scope=h.scope&&h.scope.$new()||i.$new(),s=r(t,h),c=t.parent(),s.$onKeyDown=function(n){var i,t;/(38|40)/.test(n.keyCode)&&(n.preventDefault(),n.stopPropagation(),i=angular.element(s.$element[0].querySelectorAll("li:not(.divider) a")),i.length&&(angular.forEach(i,function(n,i){e&&e.call(n,":focus")&&(t=i)}),38===n.keyCode&&t>0?t--:40===n.keyCode&&t<i.length-1?t++:angular.isUndefined(t)&&(t=0),i.eq(t)[0].focus()))},a=s.show,s.show=function(){a();u(function(){h.keyboard&&s.$element&&s.$element.on("keydown",s.$onKeyDown);f.on("click",l)},0,!1);c.hasClass("dropdown")&&c.addClass("open")},v=s.hide,s.hide=function(){s.$isShown&&(h.keyboard&&s.$element&&s.$element.off("keydown",s.$onKeyDown),f.off("click",l),c.hasClass("dropdown")&&c.removeClass("open"),v())},y=s.destroy,s.destroy=function(){f.off("click",l);y()},s}var f=angular.element(t.document.body),e=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector;return o}]}).directive("bsDropdown",["$window","$sce","$dropdown",function(n,t,r){return{restrict:"EAC",scope:!0,compile:function(n,t){if(!t.bsDropdown){for(var u=n[0].nextSibling;u&&1!==u.nodeType;)u=u.nextSibling;u&&u.className.split(" ").indexOf("dropdown-menu")>=0&&(t.template=u.outerHTML,t.templateUrl=i,u.parentNode.removeChild(u))}return function(n,i,u){var e={scope:n},o,f;angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","id","autoClose"],function(n){angular.isDefined(t[n])&&(e[n]=t[n])});o=/^(false|0|)$/i;angular.forEach(["html","container"],function(n){angular.isDefined(u[n])&&o.test(u[n])&&(e[n]=!1)});angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var i="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(u[i])&&(e[t]=n.$eval(u[i]))});u.bsDropdown&&n.$watch(u.bsDropdown,function(t){n.content=t},!0);f=r(i,e);u.bsShow&&n.$watch(u.bsShow,function(n){f&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|,?(dropdown),?/i)),n===!0?f.show():f.hide())});n.$on("$destroy",function(){f&&f.destroy();e=null;f=null})}}}}]);angular.version.minor<3&&angular.version.dot<14&&angular.module("ng").factory("$$rAF",["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]);angular.module("mgcrea.ngStrap.helpers.parseOptions",[]).provider("$parseOptions",function(){var n=this.defaults={regexp:/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(.*?)(?:\s+track\s+by\s+(.*?))?$/};this.$get=["$parse","$q",function(t,i){function r(r,u){function l(n,t){return n.map(function(n,i){var u,f,r={};return r[o]=n,u=s(t,r),f=h(t,r),{label:u,value:f,index:i}})}var e={},a=angular.extend({},n,u),f,s,o,v,y,h,c;return e.$values=[],e.init=function(){e.$match=f=r.match(a.regexp);s=t(f[2]||f[1]);o=f[4]||f[6];v=f[5];y=t(f[3]||"");h=t(f[2]?f[1]:o);c=t(f[7])},e.valuesFn=function(n,t){return i.when(c(n,t)).then(function(t){return angular.isArray(t)||(t=[]),e.$values=t.length?l(t,n):[],e.$values})},e.displayValue=function(n){var t={};return t[o]=n,s(t)},e.init(),e}return r}]});angular.module("mgcrea.ngStrap.helpers.dimensions",[]).factory("dimensions",function(){function r(n){var u=n.ownerDocument,r=n.offsetParent||u;if(i(r,"#document"))return u.documentElement;for(;r&&!i(r,"html")&&"static"===t.css(r,"position");)r=r.offsetParent;return r||u.documentElement}var t={},i=t.nodeName=function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()};return t.css=function(t,i,r){var u;return u=t.currentStyle?t.currentStyle[i]:n.getComputedStyle?n.getComputedStyle(t)[i]:t.style[i],r===!0?parseFloat(u)||0:u},t.offset=function(t){var i=t.getBoundingClientRect(),r=t.ownerDocument;return{width:i.width||t.offsetWidth,height:i.height||t.offsetHeight,top:i.top+(n.pageYOffset||r.documentElement.scrollTop)-(r.documentElement.clientTop||0),left:i.left+(n.pageXOffset||r.documentElement.scrollLeft)-(r.documentElement.clientLeft||0)}},t.setOffset=function(n,i,r){var e,o,s,h,f,c,a,l=t.css(n,"position"),v=angular.element(n),u={};"static"===l&&(n.style.position="relative");f=t.offset(n);s=t.css(n,"top");c=t.css(n,"left");a=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1;a?(e=t.position(n),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);angular.isFunction(i)&&(i=i.call(n,r,f));null!==i.top&&(u.top=i.top-f.top+h);null!==i.left&&(u.left=i.left-f.left+o);"using"in i?i.using.call(v,u):v.css({top:u.top+"px",left:u.left+"px"})},t.position=function(n){var u,e,f={top:0,left:0};return"fixed"===t.css(n,"position")?e=n.getBoundingClientRect():(u=r(n),e=t.offset(n),i(u,"html")||(f=t.offset(u)),f.top+=t.css(u,"borderTopWidth",!0),f.left+=t.css(u,"borderLeftWidth",!0)),{width:n.offsetWidth,height:n.offsetHeight,top:e.top-f.top-t.css(n,"marginTop",!0),left:e.left-f.left-t.css(n,"marginLeft",!0)}},t.height=function(n,i){var r=n.offsetHeight;return i?r+=t.css(n,"marginTop",!0)+t.css(n,"marginBottom",!0):r-=t.css(n,"paddingTop",!0)+t.css(n,"paddingBottom",!0)+t.css(n,"borderTopWidth",!0)+t.css(n,"borderBottomWidth",!0),r},t.width=function(n,i){var r=n.offsetWidth;return i?r+=t.css(n,"marginLeft",!0)+t.css(n,"marginRight",!0):r-=t.css(n,"paddingLeft",!0)+t.css(n,"paddingRight",!0)+t.css(n,"borderLeftWidth",!0)+t.css(n,"borderRightWidth",!0),r},t});angular.module("mgcrea.ngStrap.helpers.debounce",[]).factory("debounce",["$timeout",function(n){return function(t,i,r){var u=null;return function(){var f=this,e=arguments,o=r&&!u;return u&&n.cancel(u),u=n(function(){u=null;r||t.apply(f,e)},i,!1),o&&t.apply(f,e),u}}}]).factory("throttle",["$timeout",function(n){return function(t,i,r){var u=null;return r||(r={}),function(){var f=this,e=arguments;u||(r.leading!==!1&&t.apply(f,e),u=n(function(){u=null;r.trailing!==!1&&t.apply(f,e)},i,!1))}}}]);angular.module("mgcrea.ngStrap.helpers.dateParser",[]).provider("$dateParser",["$localeProvider",function(){function n(){this.year=1970;this.month=0;this.day=1;this.hours=0;this.minutes=0;this.seconds=0;this.milliseconds=0}function i(){}function r(n){return!isNaN(parseFloat(n))&&isFinite(n)}function u(n,t){for(var r=n.length,u=t.toString().toLowerCase(),i=0;r>i;i++)if(n[i].toLowerCase()===u)return i;return-1}n.prototype.setMilliseconds=function(n){this.milliseconds=n};n.prototype.setSeconds=function(n){this.seconds=n};n.prototype.setMinutes=function(n){this.minutes=n};n.prototype.setHours=function(n){this.hours=n};n.prototype.getHours=function(){return this.hours};n.prototype.setDate=function(n){this.day=n};n.prototype.setMonth=function(n){this.month=n};n.prototype.setFullYear=function(n){this.year=n};n.prototype.fromDate=function(n){return this.year=n.getFullYear(),this.month=n.getMonth(),this.day=n.getDate(),this.hours=n.getHours(),this.minutes=n.getMinutes(),this.seconds=n.getSeconds(),this.milliseconds=n.getMilliseconds(),this};n.prototype.toDate=function(){return new Date(this.year,this.month,this.day,this.hours,this.minutes,this.seconds,this.milliseconds)};var t=n.prototype,f=this.defaults={format:"shortDate",strict:!1};this.$get=["$locale","dateFilter",function(e,o){return function(s){function v(n){var t=y(n);return g(t)}function y(n){var r=b(n),u=r.replace(/''/g,"\\'"),f=u.split(/('(?:\\'|.)*?')/),t=Object.keys(l),i=[];return angular.forEach(f,function(n){if(k(n))n=d(n);else for(var r=0;r<t.length;r++)n=n.split(t[r]).join("${"+r+"}");i.push(n)}),i.join("")}function b(n){return n.replace(/\\/g,"[\\\\]").replace(/-/g,"[-]").replace(/\./g,"[.]").replace(/\*/g,"[*]").replace(/\+/g,"[+]").replace(/\?/g,"[?]").replace(/\$/g,"[$]").replace(/\^/g,"[^]").replace(/\//g,"[/]").replace(/\\s/g,"[\\s]")}function k(n){return/^'.*'$/.test(n)}function d(n){return n.replace(/^'(.*)'$/,"$1")}function g(n){for(var r=Object.keys(l),i=n,t=0;t<r.length;t++)i=i.split("${"+t+"}").join("("+l[r[t]]+")");return new RegExp("^"+i+"$",["i"])}function p(n){var t=y(n);return nt(t)}function nt(n){for(var t,i,r,u,e=Object.keys(l),o=new RegExp("\\${(\\d+)}","g"),f=[];null!==(t=o.exec(n));)i=t[1],r=e[i],u=tt[r],f.push(u);return f}var a,w,c=angular.extend({},f,s),h={},l={sss:"[0-9]{3}",ss:"[0-5][0-9]",s:c.strict?"[1-5]?[0-9]":"[0-9]|[0-5][0-9]",mm:"[0-5][0-9]",m:c.strict?"[1-5]?[0-9]":"[0-9]|[0-5][0-9]",HH:"[01][0-9]|2[0-3]",H:c.strict?"1?[0-9]|2[0-3]":"[01]?[0-9]|2[0-3]",hh:"[0][1-9]|[1][012]",h:c.strict?"[1-9]|1[012]":"0?[1-9]|1[012]",a:"AM|PM",EEEE:e.DATETIME_FORMATS.DAY.join("|"),EEE:e.DATETIME_FORMATS.SHORTDAY.join("|"),dd:"0[1-9]|[12][0-9]|3[01]",d:c.strict?"[1-9]|[1-2][0-9]|3[01]":"0?[1-9]|[1-2][0-9]|3[01]",MMMM:e.DATETIME_FORMATS.MONTH.join("|"),MMM:e.DATETIME_FORMATS.SHORTMONTH.join("|"),MM:"0[1-9]|1[012]",M:c.strict?"[1-9]|1[012]":"0?[1-9]|1[012]",yyyy:"[1]{1}[0-9]{3}|[2]{1}[0-9]{3}",yy:"[0-9]{2}",y:c.strict?"-?(0|[1-9][0-9]{0,3})":"-?0*[0-9]{1,4}"},tt={sss:t.setMilliseconds,ss:t.setSeconds,s:t.setSeconds,mm:t.setMinutes,m:t.setMinutes,HH:t.setHours,H:t.setHours,hh:t.setHours,h:t.setHours,EEEE:i,EEE:i,dd:t.setDate,d:t.setDate,a:function(n){var t=this.getHours()%12;return this.setHours(n.match(/pm/i)?t+12:t)},MMMM:function(n){return this.setMonth(u(e.DATETIME_FORMATS.MONTH,n))},MMM:function(n){return this.setMonth(u(e.DATETIME_FORMATS.SHORTMONTH,n))},MM:function(n){return this.setMonth(1*n-1)},M:function(n){return this.setMonth(1*n-1)},yyyy:t.setFullYear,yy:function(n){return this.setFullYear(2e3+1*n)},y:function(n){return 50>=1*n&&2===n.length?this.setFullYear(2e3+1*n):this.setFullYear(1*n)}};return h.init=function(){h.$format=e.DATETIME_FORMATS[c.format]||c.format;a=v(h.$format);w=p(h.$format)},h.isValid=function(n){return angular.isDate(n)?!isNaN(n.getTime()):a.test(n)},h.parse=function(t,i,r,u){var s,f,l;r&&(r=e.DATETIME_FORMATS[r]||r);angular.isDate(t)&&(t=o(t,r||h.$format,u));var b=r?v(r):a,y=r?p(r):w,c=b.exec(t);if(!c)return!1;for(s=i&&!isNaN(i.getTime())?(new n).fromDate(i):(new n).fromDate(new Date(1970,0,1,0)),f=0;f<c.length-1;f++)y[f]&&y[f].call(s,c[f+1]);return l=s.toDate(),parseInt(s.day,10)!==l.getDate()?!1:l},h.getDateForAttribute=function(n,t){var u,i;return"today"===t?(i=new Date,u=new Date(i.getFullYear(),i.getMonth(),i.getDate()+("maxDate"===n?1:0),0,0,0,"minDate"===n?0:-1)):u=angular.isString(t)&&t.match(/^".+"$/)?new Date(t.substr(1,t.length-2)):r(t)?new Date(parseInt(t,10)):angular.isString(t)&&0===t.length?"minDate"===n?-(1/0):+(1/0):new Date(t),u},h.getTimeForAttribute=function(n,t){return"now"===t?(new Date).setFullYear(1970,0,1):angular.isString(t)&&t.match(/^".+"$/)?new Date(t.substr(1,t.length-2)).setFullYear(1970,0,1):r(t)?new Date(parseInt(t,10)).setFullYear(1970,0,1):angular.isString(t)&&0===t.length?"minTime"===n?-(1/0):+(1/0):h.parse(t,new Date(1970,0,1,0))},h.daylightSavingAdjust=function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},h.timezoneOffsetAdjust=function(n,t,i){return n?(t&&"UTC"===t&&(n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+(i?-1:1)*n.getTimezoneOffset())),n):null},h.init(),h}}]}]);angular.module("mgcrea.ngStrap.helpers.dateFormatter",[]).service("$dateFormatter",["$locale","dateFilter",function(n,t){function i(n){return/(h+)([:\.])?(m+)([:\.])?(s*)[ ]?(a?)/i.exec(n).slice(1)}this.getDefaultLocale=function(){return n.id};this.getDatetimeFormat=function(t){return n.DATETIME_FORMATS[t]||t};this.weekdaysShort=function(){return n.DATETIME_FORMATS.SHORTDAY};this.hoursFormat=function(n){return i(n)[0]};this.minutesFormat=function(n){return i(n)[2]};this.secondsFormat=function(n){return i(n)[4]};this.timeSeparator=function(n){return i(n)[1]};this.showSeconds=function(n){return!!i(n)[4]};this.showAM=function(n){return!!i(n)[5]};this.formatDate=function(n,i,r,u){return t(n,i,u)}}]);angular.module("mgcrea.ngStrap.core",[]).service("$bsCompiler",r);angular.module("mgcrea.ngStrap.datepicker",["mgcrea.ngStrap.helpers.dateParser","mgcrea.ngStrap.helpers.dateFormatter","mgcrea.ngStrap.tooltip"]).provider("$datepicker",function(){var n=this.defaults={animation:"am-fade",prefixClass:"datepicker",placement:"bottom-left",templateUrl:"datepicker/datepicker.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,useNative:!1,dateType:"date",dateFormat:"shortDate",timezone:null,modelDateFormat:null,dayFormat:"dd",monthFormat:"MMM",yearFormat:"yyyy",monthTitleFormat:"MMMM yyyy",yearTitleFormat:"yyyy",strictFormat:!1,autoclose:!1,minDate:-(1/0),maxDate:+(1/0),startView:0,minView:0,startWeek:0,daysOfWeekDisabled:"",hasToday:!1,hasClear:!1,iconLeft:"fa fa-chevron-left",iconRight:"fa fa-chevron-right"};this.$get=["$window","$document","$rootScope","$sce","$dateFormatter","datepickerViews","$tooltip","$timeout",function(t,i,r,u,f,e,o,s){function l(t,i,r){function g(n){n.selected=u.$isSelected(n.date)}function p(){t[0].focus()}var u=o(t,angular.extend({},n,r)),nt=r.scope,l=u.$options,f=u.$scope,y,v,a,w,b,k,d;return l.startView&&(l.startView-=l.minView),y=e(u),u.$views=y.views,v=y.viewDate,f.$mode=l.startView,f.$iconLeft=l.iconLeft,f.$iconRight=l.iconRight,f.$hasToday=l.hasToday,f.$hasClear=l.hasClear,a=u.$views[f.$mode],f.$select=function(n){u.select(n)},f.$selectPane=function(n){u.$selectPane(n)},f.$toggleMode=function(){u.setMode((f.$mode+1)%u.$views.length)},f.$setToday=function(){l.autoclose?(u.setMode(0),u.select(new Date)):u.select(new Date,!0)},f.$clear=function(){l.autoclose?(u.setMode(0),u.select(null)):u.select(null,!0)},u.update=function(n){angular.isDate(n)&&!isNaN(n.getTime())&&(u.$date=n,a.update.call(a,n));u.$build(!0)},u.updateDisabledDates=function(n){l.disabledDateRanges=n;for(var t=0,i=f.rows.length;i>t;t++)angular.forEach(f.rows[t],u.$setDisabledEl)},u.select=function(n,t){angular.isDate(n)?(!angular.isDate(i.$dateValue)||isNaN(i.$dateValue.getTime()))&&(i.$dateValue=new Date(n)):i.$dateValue=null;!f.$mode||t?(i.$setViewValue(angular.copy(n)),i.$render(),l.autoclose&&!t&&s(function(){u.hide(!0)})):(angular.extend(v,{year:n.getFullYear(),month:n.getMonth(),date:n.getDate()}),u.setMode(f.$mode-1),u.$build())},u.setMode=function(n){f.$mode=n;a=u.$views[f.$mode];u.$build()},u.$build=function(n){n===!0&&a.built||(n!==!1||a.built)&&a.build.call(a)},u.$updateSelected=function(){for(var n=0,t=f.rows.length;t>n;n++)angular.forEach(f.rows[n],g)},u.$isSelected=function(n){return a.isSelected(n)},u.$setDisabledEl=function(n){n.disabled=a.isDisabled(n.date)},u.$selectPane=function(n){var i=a.steps,t=new Date(Date.UTC(v.year+(i.year||0)*n,v.month+(i.month||0)*n,1));angular.extend(v,{year:t.getUTCFullYear(),month:t.getUTCMonth(),date:t.getUTCDate()});u.$build()},u.$onMouseDown=function(n){if(n.preventDefault(),n.stopPropagation(),h){var t=angular.element(n.target);"button"!==t[0].nodeName.toLowerCase()&&(t=t.parent());t.triggerHandler("click")}},u.$onKeyDown=function(n){if(/(38|37|39|40|13)/.test(n.keyCode)&&!n.shiftKey&&!n.altKey){if(n.preventDefault(),n.stopPropagation(),13===n.keyCode)return void(f.$mode?f.$apply(function(){u.setMode(f.$mode-1)}):u.hide(!0));a.onKeyDown(n);nt.$digest()}},w=u.init,u.init=function(){return c&&l.useNative?(t.prop("type","date"),void t.css("-webkit-appearance","textfield")):(h&&(t.prop("type","text"),t.attr("readonly","true"),t.on("click",p)),void w())},b=u.destroy,u.destroy=function(){c&&l.useNative&&t.off("click",p);b()},k=u.show,u.show=function(){!h&&t.attr("readonly")||t.attr("disabled")||(k(),s(function(){u.$isShown&&(u.$element.on(h?"touchstart":"mousedown",u.$onMouseDown),l.keyboard&&t.on("keydown",u.$onKeyDown))},0,!1))},d=u.hide,u.hide=function(n){u.$isShown&&(u.$element.off(h?"touchstart":"mousedown",u.$onMouseDown),l.keyboard&&t.off("keydown",u.$onKeyDown),d(n))},u}var c=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),h="createTouch"in t.document&&c;return n.lang||(n.lang=f.getDefaultLocale()),l.defaults=n,l}]}).directive("bsDatepicker",["$window","$parse","$q","$dateFormatter","$dateParser","$datepicker",function(n,t,i,r,u,f){var e=/(ip[ao]d|iphone|android)/gi.test(n.navigator.userAgent);return{restrict:"EAC",require:"ngModel",link:function(n,t,i,o){function l(n){return n&&n.length?n:null}function a(n){if(angular.isDate(n)){var t=isNaN(h.$options.minDate)||n.getTime()>=h.$options.minDate,i=isNaN(h.$options.maxDate)||n.getTime()<=h.$options.maxDate,r=t&&i;o.$setValidity("date",r);o.$setValidity("min",t);o.$setValidity("max",i);r&&(o.$dateValue=n)}}function v(){return!o.$dateValue||isNaN(o.$dateValue.getTime())?"":w(o.$dateValue,s.dateFormat)}var s={scope:n},y,h;angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","html","animation","autoclose","dateType","dateFormat","timezone","modelDateFormat","dayFormat","strictFormat","startWeek","startDate","useNative","lang","startView","minView","iconLeft","iconRight","daysOfWeekDisabled","id","prefixClass","prefixEvent","hasToday","hasClear"],function(n){angular.isDefined(i[n])&&(s[n]=i[n])});y=/^(false|0|)$/i;angular.forEach(["html","container","autoclose","useNative","hasToday","hasClear"],function(n){angular.isDefined(i[n])&&y.test(i[n])&&(s[n]=!1)});angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var r="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(i[r])&&(s[t]=n.$eval(i[r]))});h=f(t,o,s);s=h.$options;e&&s.useNative&&(s.dateFormat="yyyy-MM-dd");var p=s.lang,w=function(n,t){return r.formatDate(n,t,p)},c=u({format:s.dateFormat,lang:p,strict:s.strictFormat});i.bsShow&&n.$watch(i.bsShow,function(n){h&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|,?(datepicker),?/i)),n===!0?h.show():h.hide())});angular.forEach(["minDate","maxDate"],function(n){angular.isDefined(i[n])&&i.$observe(n,function(t){h.$options[n]=c.getDateForAttribute(n,t);isNaN(h.$options[n])||h.$build(!1);a(o.$dateValue)})});angular.isDefined(i.dateFormat)&&i.$observe("dateFormat",function(n){h.$options.dateFormat=n});n.$watch(i.ngModel,function(){h.update(o.$dateValue)},!0);angular.isDefined(i.disabledDates)&&n.$watch(i.disabledDates,function(n,t){n=l(n);t=l(t);n&&h.updateDisabledDates(n)});o.$parsers.unshift(function(n){var t,i;return n?(i=c.parse(n,o.$dateValue),!i||isNaN(i.getTime())?void o.$setValidity("date",!1):(a(i),"string"===s.dateType?(t=c.timezoneOffsetAdjust(i,s.timezone,!0),w(t,s.modelDateFormat||s.dateFormat)):(t=c.timezoneOffsetAdjust(o.$dateValue,s.timezone,!0),"number"===s.dateType?t.getTime():"unix"===s.dateType?t.getTime()/1e3:"iso"===s.dateType?t.toISOString():new Date(t)))):(o.$setValidity("date",!0),null)});o.$formatters.push(function(n){var t;return t=angular.isUndefined(n)||null===n?NaN:angular.isDate(n)?n:"string"===s.dateType?c.parse(n,null,s.modelDateFormat):"unix"===s.dateType?new Date(1e3*n):new Date(n),o.$dateValue=c.timezoneOffsetAdjust(t,s.timezone),v()});o.$render=function(){t.val(v())};n.$on("$destroy",function(){h&&h.destroy();s=null;h=null})}}}]).provider("datepickerViews",function(){function n(n,t){for(var i=[];n.length>0;)i.push(n.splice(0,t));return i}function t(n,t){return(n%t+t)%t}this.$get=["$dateFormatter","$dateParser","$sce",function(i,r,u){return function(f){var s=f.$scope,e=f.$options,c=e.lang,h=function(n,t){return i.formatDate(n,t,c)},l=r({format:e.dateFormat,lang:c,strict:e.strictFormat}),v=i.weekdaysShort(c),p=v.slice(e.startWeek).concat(v.slice(0,e.startWeek)),w=u.trustAsHtml('<th class="dow text-center">'+p.join('<\/th><th class="dow text-center">')+"<\/th>"),a=f.$date||(e.startDate?l.getDateForAttribute("startDate",e.startDate):new Date),o={year:a.getFullYear(),month:a.getMonth(),date:a.getDate()},y=[{format:e.dayFormat,split:7,steps:{month:1},update:function(n,t){!this.built||t||n.getFullYear()!==o.year||n.getMonth()!==o.month?(angular.extend(o,{year:f.$date.getFullYear(),month:f.$date.getMonth(),date:f.$date.getDate()}),f.$build()):(n.getDate()!==o.date||1===n.getDate())&&(o.date=f.$date.getDate(),f.$updateSelected())},build:function(){var u=new Date(o.year,o.month,1),v=u.getTimezoneOffset(),r=new Date(+u-864e5*t(u.getDay()-e.startWeek,7)),y=r.getTimezoneOffset(),p=l.timezoneOffsetAdjust(new Date,e.timezone).toDateString(),i,a,c;for(y!==v&&(r=new Date(+r+6e4*(y-v))),a=[],c=0;42>c;c++)i=l.daylightSavingAdjust(new Date(r.getFullYear(),r.getMonth(),r.getDate()+c)),a.push({date:i,isToday:i.toDateString()===p,label:h(i,this.format),selected:f.$date&&this.isSelected(i),muted:i.getMonth()!==o.month,disabled:this.isDisabled(i)});s.title=h(u,e.monthTitleFormat);s.showLabels=!0;s.labels=w;s.rows=n(a,this.split);s.isTodayDisabled=this.isDisabled(new Date);this.built=!0},isSelected:function(n){return f.$date&&n.getFullYear()===f.$date.getFullYear()&&n.getMonth()===f.$date.getMonth()&&n.getDate()===f.$date.getDate()},isDisabled:function(n){var i=n.getTime(),t;if(i<e.minDate||i>e.maxDate||-1!==e.daysOfWeekDisabled.indexOf(n.getDay()))return!0;if(e.disabledDateRanges)for(t=0;t<e.disabledDateRanges.length;t++)if(i>=e.disabledDateRanges[t].start&&i<=e.disabledDateRanges[t].end)return!0;return!1},onKeyDown:function(n){if(f.$date){var t,i=f.$date.getTime();37===n.keyCode?t=new Date(i-864e5):38===n.keyCode?t=new Date(i-6048e5):39===n.keyCode?t=new Date(i+864e5):40===n.keyCode&&(t=new Date(i+6048e5));this.isDisabled(t)||f.select(t,!0)}}},{name:"month",format:e.monthFormat,split:4,steps:{year:1},update:function(n){this.built&&n.getFullYear()===o.year?n.getMonth()!==o.month&&(angular.extend(o,{month:f.$date.getMonth(),date:f.$date.getDate()}),f.$updateSelected()):(angular.extend(o,{year:f.$date.getFullYear(),month:f.$date.getMonth(),date:f.$date.getDate()}),f.$build())},build:function(){for(var t,r=[],i=0;12>i;i++)t=new Date(o.year,i,1),r.push({date:t,label:h(t,this.format),selected:f.$isSelected(t),disabled:this.isDisabled(t)});s.title=h(t,e.yearTitleFormat);s.showLabels=!1;s.rows=n(r,this.split);this.built=!0},isSelected:function(n){return f.$date&&n.getFullYear()===f.$date.getFullYear()&&n.getMonth()===f.$date.getMonth()},isDisabled:function(n){var t=+new Date(n.getFullYear(),n.getMonth()+1,0);return t<e.minDate||n.getTime()>e.maxDate},onKeyDown:function(n){if(f.$date){var i=f.$date.getMonth(),t=new Date(f.$date);37===n.keyCode?t.setMonth(i-1):38===n.keyCode?t.setMonth(i-4):39===n.keyCode?t.setMonth(i+1):40===n.keyCode&&t.setMonth(i+4);this.isDisabled(t)||f.select(t,!0)}}},{name:"year",format:e.yearFormat,split:4,steps:{year:12},update:function(n,t){!this.built||t||parseInt(n.getFullYear()/20,10)!==parseInt(o.year/20,10)?(angular.extend(o,{year:f.$date.getFullYear(),month:f.$date.getMonth(),date:f.$date.getDate()}),f.$build()):n.getFullYear()!==o.year&&(angular.extend(o,{year:f.$date.getFullYear(),month:f.$date.getMonth(),date:f.$date.getDate()}),f.$updateSelected())},build:function(){for(var t,u=o.year-o.year%(3*this.split),i=[],r=0;12>r;r++)t=new Date(u+r,0,1),i.push({date:t,label:h(t,this.format),selected:f.$isSelected(t),disabled:this.isDisabled(t)});s.title=i[0].label+"-"+i[i.length-1].label;s.showLabels=!1;s.rows=n(i,this.split);this.built=!0},isSelected:function(n){return f.$date&&n.getFullYear()===f.$date.getFullYear()},isDisabled:function(n){var t=+new Date(n.getFullYear()+1,0,0);return t<e.minDate||n.getTime()>e.maxDate},onKeyDown:function(n){if(f.$date){var i=f.$date.getFullYear(),t=new Date(f.$date);37===n.keyCode?t.setYear(i-1):38===n.keyCode?t.setYear(i-4):39===n.keyCode?t.setYear(i+1):40===n.keyCode&&t.setYear(i+4);this.isDisabled(t)||f.select(t,!0)}}}];return{views:e.minView?Array.prototype.slice.call(y,e.minView):y,viewDate:o}}}]});angular.module("mgcrea.ngStrap.button",[]).provider("$button",function(){var n=this.defaults={activeClass:"active",toggleEvent:"click"};this.$get=function(){return{defaults:n}}}).directive("bsCheckboxGroup",function(){return{restrict:"A",require:"ngModel",compile:function(n,t){n.attr("data-toggle","buttons");n.removeAttr("ng-model");var i=n[0].querySelectorAll('input[type="checkbox"]');angular.forEach(i,function(n){var i=angular.element(n);i.attr("bs-checkbox","");i.attr("ng-model",t.ngModel+"."+i.attr("value"))})}}}).directive("bsCheckbox",["$button","$$rAF",function(n,t){var r=n.defaults,i=/^(true|false|\d+)$/;return{restrict:"A",require:"ngModel",link:function(n,u,f,e){var l=r,h="INPUT"===u[0].nodeName,a=h?u.parent():u,o=angular.isDefined(f.trueValue)?f.trueValue:!0,s,c;i.test(f.trueValue)&&(o=n.$eval(f.trueValue));s=angular.isDefined(f.falseValue)?f.falseValue:!1;i.test(f.falseValue)&&(s=n.$eval(f.falseValue));c="boolean"!=typeof o||"boolean"!=typeof s;c&&(e.$parsers.push(function(n){return n?o:s}),e.$formatters.push(function(n){return angular.equals(n,o)}),n.$watch(f.ngModel,function(){e.$render()}));e.$render=function(){var n=angular.equals(e.$modelValue,o);t(function(){h&&(u[0].checked=n);a.toggleClass(l.activeClass,n)})};u.bind(l.toggleEvent,function(){n.$apply(function(){h||e.$setViewValue(!a.hasClass("active"));c||e.$render()})})}}}]).directive("bsRadioGroup",function(){return{restrict:"A",require:"ngModel",compile:function(n,t){n.attr("data-toggle","buttons");n.removeAttr("ng-model");var i=n[0].querySelectorAll('input[type="radio"]');angular.forEach(i,function(n){angular.element(n).attr("bs-radio","");angular.element(n).attr("ng-model",t.ngModel)})}}}).directive("bsRadio",["$button","$$rAF",function(n,t){var i=n.defaults,r=/^(true|false|\d+)$/;return{restrict:"A",require:"ngModel",link:function(n,u,f,e){var o,s=i,h="INPUT"===u[0].nodeName,c=h?u.parent():u;f.$observe("value",function(t){o="boolean"!=typeof t&&r.test(t)?n.$eval(t):t;e.$render()});e.$render=function(){var n=angular.equals(e.$modelValue,o);t(function(){h&&(u[0].checked=n);c.toggleClass(s.activeClass,n)})};u.bind(s.toggleEvent,function(){n.$apply(function(){e.$setViewValue(o);e.$render()})})}}}]);angular.module("mgcrea.ngStrap.collapse",[]).provider("$collapse",function(){var n=this.defaults={animation:"am-collapse",disallowToggle:!1,activeClass:"in",startCollapsed:!1,allowMultiple:!1},t=this.controller=function(t,i,r){function o(n){for(var i=u.$targets.$active,t=0;t<i.length;t++)n<i[t]&&(i[t]=i[t]-1),i[t]===u.$targets.length&&(i[t]=u.$targets.length-1)}function s(n){var t=u.$targets.$active;return-1!==t.indexOf(n)}function f(n){var t=u.$targets.$active.indexOf(n);-1!==t&&u.$targets.$active.splice(t,1)}function h(n){u.$options.allowMultiple||u.$targets.$active.splice(0,1);-1===u.$targets.$active.indexOf(n)&&u.$targets.$active.push(n)}var u=this,e;u.$options=angular.copy(n);angular.forEach(["animation","disallowToggle","activeClass","startCollapsed","allowMultiple"],function(n){angular.isDefined(r[n])&&(u.$options[n]=r[n])});e=/^(false|0|)$/i;angular.forEach(["disallowToggle","startCollapsed","allowMultiple"],function(n){angular.isDefined(r[n])&&e.test(r[n])&&(u.$options[n]=!1)});u.$toggles=[];u.$targets=[];u.$viewChangeListeners=[];u.$registerToggle=function(n){u.$toggles.push(n)};u.$registerTarget=function(n){u.$targets.push(n)};u.$unregisterToggle=function(n){var t=u.$toggles.indexOf(n);u.$toggles.splice(t,1)};u.$unregisterTarget=function(n){var t=u.$targets.indexOf(n);u.$targets.splice(t,1);u.$options.allowMultiple&&f(n);o(t);u.$viewChangeListeners.forEach(function(n){n()})};u.$targets.$active=u.$options.startCollapsed?[]:[0];u.$setActive=t.$setActive=function(n){angular.isArray(n)?u.$targets.$active=n:!u.$options.disallowToggle&&s(n)?f(n):h(n);u.$viewChangeListeners.forEach(function(n){n()})};u.$activeIndexes=function(){return u.$options.allowMultiple?u.$targets.$active:1===u.$targets.$active.length?u.$targets.$active[0]:-1}};this.$get=function(){var i={};return i.defaults=n,i.controller=t,i}}).directive("bsCollapse",["$window","$animate","$collapse",function(n,t,i){return{require:["?ngModel","bsCollapse"],controller:["$scope","$element","$attrs",i.controller],link:function(n,t,i,r){var f=r[0],u=r[1];f&&(u.$viewChangeListeners.push(function(){f.$setViewValue(u.$activeIndexes())}),f.$formatters.push(function(n){if(angular.isArray(n))u.$setActive(n);else{var t=u.$activeIndexes();angular.isArray(t)?-1===t.indexOf(1*n)&&u.$setActive(1*n):t!==1*n&&u.$setActive(1*n)}return n}))}}}]).directive("bsCollapseToggle",function(){return{require:["^?ngModel","^bsCollapse"],link:function(n,t,i,r){var u=r[1];t.attr("data-toggle","collapse");u.$registerToggle(t);n.$on("$destroy",function(){u.$unregisterToggle(t)});t.on("click",function(){if(!i.disabled){var r=i.bsCollapseToggle&&"bs-collapse-toggle"!==i.bsCollapseToggle?i.bsCollapseToggle:u.$toggles.indexOf(t);u.$setActive(1*r);n.$apply()}})}}}).directive("bsCollapseTarget",["$animate",function(n){return{require:["^?ngModel","^bsCollapse"],link:function(t,i,r,u){function e(){var u=f.$targets.indexOf(i),t=f.$activeIndexes(),r="removeClass";angular.isArray(t)?-1!==t.indexOf(u)&&(r="addClass"):u===t&&(r="addClass");n[r](i,f.$options.activeClass)}var f=u[1];i.addClass("collapse");f.$options.animation&&i.addClass(f.$options.animation);f.$registerTarget(i);t.$on("$destroy",function(){f.$unregisterTarget(i)});f.$viewChangeListeners.push(function(){e()});e()}}}]);angular.module("mgcrea.ngStrap.aside",["mgcrea.ngStrap.modal"]).provider("$aside",function(){var n=this.defaults={animation:"am-fade-and-slide-right",prefixClass:"aside",prefixEvent:"aside",placement:"right",templateUrl:"aside/aside.tpl.html",contentTemplate:!1,container:!1,element:null,backdrop:!0,keyboard:!0,html:!1,show:!0};this.$get=["$modal",function(t){function i(i){var r=angular.extend({},n,i);return t(r)}return i}]}).directive("bsAside",["$window","$sce","$aside",function(n,t,i){return{restrict:"EAC",scope:!0,link:function(n,r,u){var f={scope:n,element:r,show:!1},o,e;angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","backdrop","keyboard","html","container","animation"],function(n){angular.isDefined(u[n])&&(f[n]=u[n])});o=/^(false|0|)$/i;angular.forEach(["backdrop","keyboard","html","container"],function(n){angular.isDefined(u[n])&&o.test(u[n])&&(f[n]=!1)});angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var i="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(u[i])&&(f[t]=n.$eval(u[i]))});angular.forEach(["title","content"],function(i){u[i]&&u.$observe(i,function(r){n[i]=t.trustAsHtml(r)})});u.bsAside&&n.$watch(u.bsAside,function(t){angular.isObject(t)?angular.extend(n,t):n.content=t},!0);e=i(f);r.on(u.trigger||"click",e.toggle);n.$on("$destroy",function(){e&&e.destroy();f=null;e=null})}}}]);angular.module("mgcrea.ngStrap.alert",["mgcrea.ngStrap.modal"]).provider("$alert",function(){var n=this.defaults={animation:"am-fade",prefixClass:"alert",prefixEvent:"alert",placement:null,templateUrl:"alert/alert.tpl.html",container:!1,element:null,backdrop:!1,keyboard:!0,show:!0,duration:!1,type:!1,dismissable:!0};this.$get=["$modal","$timeout",function(t,i){function r(r){var u={},f=angular.extend({},n,r),e;return u=t(f),u.$scope.dismissable=!!f.dismissable,f.type&&(u.$scope.type=f.type),e=u.show,f.duration&&(u.show=function(){e();i(function(){u.hide()},1e3*f.duration)}),u}return r}]}).directive("bsAlert",["$window","$sce","$alert",function(n,t,i){return{restrict:"EAC",scope:!0,link:function(n,r,u){var f={scope:n,element:r,show:!1},o,e;angular.forEach(["template","templateUrl","controller","controllerAs","placement","keyboard","html","container","animation","duration","dismissable"],function(n){angular.isDefined(u[n])&&(f[n]=u[n])});o=/^(false|0|)$/i;angular.forEach(["keyboard","html","container","dismissable"],function(n){angular.isDefined(u[n])&&o.test(u[n])&&(f[n]=!1)});angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var i="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(u[i])&&(f[t]=n.$eval(u[i]))});n.hasOwnProperty("title")||(n.title="");angular.forEach(["title","content","type"],function(i){u[i]&&u.$observe(i,function(r){n[i]=t.trustAsHtml(r)})});u.bsAlert&&n.$watch(u.bsAlert,function(t){angular.isObject(t)?angular.extend(n,t):n.content=t},!0);e=i(f);r.on(u.trigger||"click",e.toggle);n.$on("$destroy",function(){e&&e.destroy();f=null;e=null})}}}]);angular.module("mgcrea.ngStrap.affix",["mgcrea.ngStrap.helpers.dimensions","mgcrea.ngStrap.helpers.debounce"]).provider("$affix",function(){var n=this.defaults={offsetTop:"auto",inlineStyles:!0};this.$get=["$window","debounce","dimensions",function(t,i,r){function f(f,o){function tt(n,t,i){var r=k(),u=d();return w>=r?"top":null!==n&&r+n<=t.top?"middle":null!==y&&t.top+i+v>=u-y?"bottom":"middle"}function k(){return c[0]===t?t.pageYOffset:c[0].scrollTop}function d(){return c[0]===t?t.document.body.scrollHeight:c[0].scrollHeight}var h={},s=angular.extend({},n,o),c=s.target,it="affix affix-top affix-bottom",a=!1,v=0,g=0,w=0,y=0,nt=null,p=null,l=f.parent(),b;if(s.offsetParent)if(s.offsetParent.match(/^\d+$/))for(b=0;b<1*s.offsetParent-1;b++)l=l.parent();else l=angular.element(s.offsetParent);return h.init=function(){this.$parseOffsets();g=r.offset(f[0]).top+v;a=!f[0].style.width;c.on("scroll",this.checkPosition);c.on("click",this.checkPositionWithEventLoop);u.on("resize",this.$debouncedOnResize);this.checkPosition();this.checkPositionWithEventLoop()},h.destroy=function(){c.off("scroll",this.checkPosition);c.off("click",this.checkPositionWithEventLoop);u.off("resize",this.$debouncedOnResize)},h.checkPositionWithEventLoop=function(){setTimeout(h.checkPosition,1)},h.checkPosition=function(){var u=k(),t=r.offset(f[0]),i=r.height(f[0]),n=tt(p,t,i);nt!==n&&(nt=n,"top"===n?(p=null,a&&f.css("width",""),s.inlineStyles&&(f.css("position",s.offsetParent?"":"relative"),f.css("top",""))):"bottom"===n?(p=s.offsetUnpin?-(1*s.offsetUnpin):t.top-u,a&&f.css("width",""),s.inlineStyles&&(f.css("position",s.offsetParent?"":"relative"),f.css("top",s.offsetParent?"":e[0].offsetHeight-y-i-g+"px"))):(p=null,a&&f.css("width",f[0].offsetWidth+"px"),s.inlineStyles&&(f.css("position","fixed"),f.css("top",v+"px"))),f.removeClass(it).addClass("affix"+("middle"!==n?"-"+n:"")))},h.$onResize=function(){h.$parseOffsets();h.checkPosition()},h.$debouncedOnResize=i(h.$onResize,50),h.$parseOffsets=function(){var n=f.css("position");s.inlineStyles&&f.css("position",s.offsetParent?"":"relative");s.offsetTop&&("auto"===s.offsetTop&&(s.offsetTop="+0"),s.offsetTop.match(/^[-+]\d+$/)?(v=1*-s.offsetTop,w=s.offsetParent?r.offset(l[0]).top+1*s.offsetTop:r.offset(f[0]).top-r.css(f[0],"marginTop",!0)+1*s.offsetTop):w=1*s.offsetTop);s.offsetBottom&&(y=s.offsetParent&&s.offsetBottom.match(/^[-+]\d+$/)?d()-(r.offset(l[0]).top+r.height(l[0]))+1*s.offsetBottom+1:1*s.offsetBottom);s.inlineStyles&&f.css("position",n)},h.init(),h}var e=angular.element(t.document.body),u=angular.element(t);return f}]}).directive("bsAffix",["$affix","$window",function(n,t){return{restrict:"EAC",require:"^?bsAffixTarget",link:function(i,r,u,f){var o={scope:i,target:f?f.$element:angular.element(t)},e;angular.forEach(["offsetTop","offsetBottom","offsetParent","offsetUnpin","inlineStyles"],function(n){if(angular.isDefined(u[n])){var t=u[n];/true/i.test(t)&&(t=!0);/false/i.test(t)&&(t=!1);o[n]=t}});e=n(r,o);i.$on("$destroy",function(){e&&e.destroy();o=null;e=null})}}}]).directive("bsAffixTarget",function(){return{controller:["$element",function(n){this.$element=n}]}});angular.module("mgcrea.ngStrap",["mgcrea.ngStrap.modal","mgcrea.ngStrap.aside","mgcrea.ngStrap.alert","mgcrea.ngStrap.button","mgcrea.ngStrap.select","mgcrea.ngStrap.datepicker","mgcrea.ngStrap.timepicker","mgcrea.ngStrap.navbar","mgcrea.ngStrap.tooltip","mgcrea.ngStrap.popover","mgcrea.ngStrap.dropdown","mgcrea.ngStrap.typeahead","mgcrea.ngStrap.scrollspy","mgcrea.ngStrap.affix","mgcrea.ngStrap.tab","mgcrea.ngStrap.collapse"])}(window,document);!function(){"use strict";angular.module("mgcrea.ngStrap.alert").run(["$templateCache",function(n){n.put("alert/alert.tpl.html",'<div class="alert" ng-class="[type ? \'alert-\' + type : null]"><button type="button" class="close" ng-if="dismissable" ng-click="$hide()">&times;<\/button> <span ng-if="title"><strong ng-bind="title"><\/strong>&nbsp;<span ng-bind-html="content"><\/span><\/span> <span ng-if="!title" ng-bind-html="content"><\/span><\/div>')}]);angular.module("mgcrea.ngStrap.aside").run(["$templateCache",function(n){n.put("aside/aside.tpl.html",'<div class="aside" tabindex="-1" role="dialog"><div class="aside-dialog"><div class="aside-content"><div class="aside-header" ng-show="title"><button type="button" class="close" ng-click="$hide()">&times;<\/button><h4 class="aside-title" ng-bind="title"><\/h4><\/div><div class="aside-body" ng-bind="content"><\/div><div class="aside-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close<\/button><\/div><\/div><\/div><\/div>')}]);angular.module("mgcrea.ngStrap.datepicker").run(["$templateCache",function(n){n.put("datepicker/datepicker.tpl.html",'<div class="dropdown-menu datepicker" ng-class="\'datepicker-mode-\' + $mode" style="max-width: 320px"><table style="table-layout: fixed; height: 100%; width: 100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$selectPane(-1)"><i class="{{$iconLeft}}"><\/i><\/button><\/th><th colspan="{{ rows[0].length - 2 }}"><button tabindex="-1" type="button" class="btn btn-default btn-block text-strong" ng-click="$toggleMode()"><strong style="text-transform: capitalize" ng-bind="title"><\/strong><\/button><\/th><th><button tabindex="-1" type="button" class="btn btn-default pull-right" ng-click="$selectPane(+1)"><i class="{{$iconRight}}"><\/i><\/button><\/th><\/tr><tr ng-if="showLabels" ng-bind-html="labels"><\/tr><\/thead><tbody><tr ng-repeat="(i, row) in rows" height="{{ 100 / rows.length }}%"><td class="text-center" ng-repeat="(j, el) in row"><button tabindex="-1" type="button" class="btn btn-default" style="width: 100%" ng-class="{\'btn-primary\': el.selected, \'btn-info btn-today\': el.isToday && !el.selected}" ng-click="$select(el.date)" ng-disabled="el.disabled"><span ng-class="{\'text-muted\': el.muted}" ng-bind="el.label"><\/span><\/button><\/td><\/tr><\/tbody><tfoot><tr><td colspan="{{ rows[0].length }}"><div class="btn-group btn-group-justified" role="group"><div class="btn-group" role="group" ng-if="$hasToday"><button type="button" class="btn btn-default today" ng-click="$setToday()" ng-disabled="isTodayDisabled"><strong style="text-transform: capitalize">Today<\/strong><\/button><\/div><div class="btn-group" role="group" ng-if="$hasClear"><button type="button" class="btn btn-default clear" ng-click="$clear()"><strong style="text-transform: capitalize">Clear<\/strong><\/button><\/div><\/div><\/td><\/tr><\/tfoot><\/table><\/div>')}]);angular.module("mgcrea.ngStrap.dropdown").run(["$templateCache",function(n){n.put("dropdown/dropdown.tpl.html",'<ul tabindex="-1" class="dropdown-menu" role="menu" ng-show="content && content.length"><li role="presentation" ng-class="{divider: item.divider, active: item.active}" ng-repeat="item in content"><a role="menuitem" tabindex="-1" ng-href="{{item.href}}" ng-if="!item.divider && item.href" target="{{item.target || \'\'}}" ng-bind="item.text"><\/a> <a role="menuitem" tabindex="-1" href="javascript:void(0)" ng-if="!item.divider && item.click" ng-click="$eval(item.click);$hide()" ng-bind="item.text"><\/a><\/li><\/ul>')}]);angular.module("mgcrea.ngStrap.modal").run(["$templateCache",function(n){n.put("modal/modal.tpl.html",'<div class="modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header" ng-show="title"><button type="button" class="close" aria-label="Close" ng-click="$hide()"><span aria-hidden="true">&times;<\/span><\/button><h4 class="modal-title" ng-bind="title"><\/h4><\/div><div class="modal-body" ng-bind="content"><\/div><div class="modal-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close<\/button><\/div><\/div><\/div><\/div>')}]);angular.module("mgcrea.ngStrap.popover").run(["$templateCache",function(n){n.put("popover/popover.tpl.html",'<div class="popover" tabindex="-1"><div class="arrow"><\/div><h3 class="popover-title" ng-bind="title" ng-show="title"><\/h3><div class="popover-content" ng-bind="content"><\/div><\/div>')}]);angular.module("mgcrea.ngStrap.select").run(["$templateCache",function(n){n.put("select/select.tpl.html",'<ul tabindex="-1" class="select dropdown-menu" ng-show="$isVisible()" role="select"><li ng-if="$showAllNoneButtons"><div class="btn-group" style="margin-bottom: 5px; margin-left: 5px"><button type="button" class="btn btn-default btn-xs" ng-click="$selectAll()">{{$allText}}<\/button> <button type="button" class="btn btn-default btn-xs" ng-click="$selectNone()">{{$noneText}}<\/button><\/div><\/li><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $isActive($index)}"><a style="cursor: default" role="menuitem" tabindex="-1" ng-click="$select($index, $event)"><i class="{{$iconCheckmark}} pull-right" ng-if="$isMultiple && $isActive($index)"><\/i> <span ng-bind="match.label"><\/span><\/a><\/li><\/ul>')}]);angular.module("mgcrea.ngStrap.timepicker").run(["$templateCache",function(n){n.put("timepicker/timepicker.tpl.html",'<div class="dropdown-menu timepicker" style="min-width: 0px;width: auto"><table height="100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 0)"><i class="{{ $iconUp }}"><\/i><\/button><\/th><th>&nbsp;<\/th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 1)"><i class="{{ $iconUp }}"><\/i><\/button><\/th><th ng-if="showSeconds">&nbsp;<\/th><th ng-if="showSeconds"><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 2)"><i class="{{ $iconUp }}"><\/i><\/button><\/th><\/tr><\/thead><tbody><tr ng-repeat="(i, row) in rows"><td class="text-center"><button tabindex="-1" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[0].selected}" ng-click="$select(row[0].date, 0)" ng-disabled="row[0].disabled"><span ng-class="{\'text-muted\': row[0].muted}" ng-bind="row[0].label"><\/span><\/button><\/td><td><span ng-bind="i == midIndex ? timeSeparator : \' \'"><\/span><\/td><td class="text-center"><button tabindex="-1" ng-if="row[1].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[1].selected}" ng-click="$select(row[1].date, 1)" ng-disabled="row[1].disabled"><span ng-class="{\'text-muted\': row[1].muted}" ng-bind="row[1].label"><\/span><\/button><\/td><td ng-if="showSeconds"><span ng-bind="i == midIndex ? timeSeparator : \' \'"><\/span><\/td><td ng-if="showSeconds" class="text-center"><button tabindex="-1" ng-if="row[2].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[2].selected}" ng-click="$select(row[2].date, 2)" ng-disabled="row[2].disabled"><span ng-class="{\'text-muted\': row[2].muted}" ng-bind="row[2].label"><\/span><\/button><\/td><td ng-if="showAM">&nbsp;<\/td><td ng-if="showAM"><button tabindex="-1" ng-show="i == midIndex - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !!isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">AM<\/button> <button tabindex="-1" ng-show="i == midIndex + 1 - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">PM<\/button><\/td><\/tr><\/tbody><tfoot><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 0)"><i class="{{ $iconDown }}"><\/i><\/button><\/th><th>&nbsp;<\/th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 1)"><i class="{{ $iconDown }}"><\/i><\/button><\/th><th ng-if="showSeconds">&nbsp;<\/th><th ng-if="showSeconds"><button ng-if="showSeconds" tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 2)"><i class="{{ $iconDown }}"><\/i><\/button><\/th><\/tr><\/tfoot><\/table><\/div>')}]);angular.module("mgcrea.ngStrap.tooltip").run(["$templateCache",function(n){n.put("tooltip/tooltip.tpl.html",'<div class="tooltip in" ng-show="title"><div class="tooltip-arrow"><\/div><div class="tooltip-inner" ng-bind="title"><\/div><\/div>')}]);angular.module("mgcrea.ngStrap.tab").run(["$templateCache",function(n){n.put("tab/tab.tpl.html",'<ul class="nav" ng-class="$navClass" role="tablist"><li role="presentation" ng-repeat="$pane in $panes track by $index" ng-class="[ $isActive($pane, $index) ? $activeClass : \'\', $pane.disabled ? \'disabled\' : \'\' ]"><a role="tab" data-toggle="tab" ng-click="!$pane.disabled && $setActive($pane.name || $index)" data-index="{{ $index }}" ng-bind-html="$pane.title" aria-controls="$pane.title" href=""><\/a><\/li><\/ul><div ng-transclude class="tab-content"><\/div>')}]);angular.module("mgcrea.ngStrap.typeahead").run(["$templateCache",function(n){n.put("typeahead/typeahead.tpl.html",'<ul tabindex="-1" class="typeahead dropdown-menu" ng-show="$isVisible()" role="select"><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $index == $activeIndex}"><a role="menuitem" tabindex="-1" ng-click="$select($index, $event)" ng-bind="match.label"><\/a><\/li><\/ul>')}])}(window,document);!function(n,t,i){"use strict";function f(n){return u(n)?n:Object.keys(n).map(function(t){return n[t]})}function y(n){return null===n}function c(n,t){var r=Object.keys(n);return-1==r.map(function(r){return t[r]!==i&&t[r]==n[r]}).indexOf(!1)}function l(n,t){if(""===t)return n;var i=n.indexOf(t.charAt(0));return-1===i?!1:l(n.substr(i+1),t.substr(1))}function p(n,t,i){var r=0;return n.filter(function(n){var u=st(i)?t>r&&i(n):t>r;return r=u?r+1:r,u})}function h(n,t,i){return i.round(n*i.pow(10,t))/i.pow(10,t)}function w(n,t,i){t=t||[];var f=Object.keys(n);return f.forEach(function(f){var e,o;r(n[f])&&!u(n[f])?(e=i?i+"."+f:i,w(n[f],t,e||f)):(o=i?i+"."+f:f,t.push(o))}),t}function b(n){return n&&n.$evalAsync&&n.$watch}function k(){return function(n,t){return n>t}}function d(){return function(n,t){return n>=t}}function g(){return function(n,t){return t>n}}function nt(){return function(n,t){return t>=n}}function tt(){return function(n,t){return n==t}}function it(){return function(n,t){return n!=t}}function rt(){return function(n,t){return n===t}}function ut(){return function(n,t){return n!==t}}function ft(n){return function(t,i){return t=r(t)?f(t):t,!u(t)||e(i)?!1:t.some(function(t){return r(t)||ht(i)?n(i)(t):t===i})}}function v(n,t){return t=t||0,t>=n.length?n:u(n[t])?v(n.slice(0,t).concat(n[t],n.slice(t+1)),t):v(n,t+1)}function et(n){return function(t,i){function s(n,t){return e(t)?!1:n.some(function(n){return a(n,t)})}if(t=r(t)?f(t):t,!u(t))return t;var o=[],h=n(i);return e(i)?t.filter(function(n,t,i){return i.indexOf(n)===t}):t.filter(function(n){var t=h(n);return s(o,t)?!1:(o.push(t),!0)})}}function ot(n,t,i){return t?n+i+ot(n,--t,i):n}var st=t.isDefined,e=t.isUndefined,ht=t.isFunction,o=t.isString,s=t.isNumber,r=t.isObject,u=t.isArray,ct=t.forEach,lt=t.extend,at=t.copy,a=t.equals;String.prototype.contains||(String.prototype.contains=function(){return-1!==String.prototype.indexOf.apply(this,arguments)});t.module("a8m.angular",[]).filter("isUndefined",function(){return function(n){return t.isUndefined(n)}}).filter("isDefined",function(){return function(n){return t.isDefined(n)}}).filter("isFunction",function(){return function(n){return t.isFunction(n)}}).filter("isString",function(){return function(n){return t.isString(n)}}).filter("isNumber",function(){return function(n){return t.isNumber(n)}}).filter("isArray",function(){return function(n){return t.isArray(n)}}).filter("isObject",function(){return function(n){return t.isObject(n)}}).filter("isEqual",function(){return function(n,i){return t.equals(n,i)}});t.module("a8m.conditions",[]).filter({isGreaterThan:k,">":k,isGreaterThanOrEqualTo:d,">=":d,isLessThan:g,"<":g,isLessThanOrEqualTo:nt,"<=":nt,isEqualTo:tt,"==":tt,isNotEqualTo:it,"!=":it,isIdenticalTo:rt,"===":rt,isNotIdenticalTo:ut,"!==":ut});t.module("a8m.is-null",[]).filter("isNull",function(){return function(n){return y(n)}});t.module("a8m.after-where",[]).filter("afterWhere",function(){return function(n,t){if(n=r(n)?f(n):n,!u(n)||e(t))return n;var i=n.map(function(n){return c(t,n)}).indexOf(!0);return n.slice(-1===i?0:i)}});t.module("a8m.after",[]).filter("after",function(){return function(n,t){return n=r(n)?f(n):n,u(n)?n.slice(t):n}});t.module("a8m.before-where",[]).filter("beforeWhere",function(){return function(n,t){if(n=r(n)?f(n):n,!u(n)||e(t))return n;var i=n.map(function(n){return c(t,n)}).indexOf(!0);return n.slice(0,-1===i?n.length:++i)}});t.module("a8m.before",[]).filter("before",function(){return function(n,t){return n=r(n)?f(n):n,u(n)?n.slice(0,t?--t:t):n}});t.module("a8m.chunk-by",["a8m.filter-watcher"]).filter("chunkBy",["filterWatcher",function(n){return function(t,i,r){function f(n,t){for(var i=[];n--;)i[n]=t;return i}function o(n,t,i){return u(n)?n.map(function(n,r,u){return r*=t,n=u.slice(r,r+t),!e(i)&&n.length<t?n.concat(f(t-n.length,i)):n}).slice(0,Math.ceil(n.length/t)):n}return n.isMemoized("chunkBy",arguments)||n.memoize("chunkBy",arguments,this,o(t,i,r))}}]);t.module("a8m.concat",[]).filter("concat",[function(){return function(n,t){if(e(t))return n;if(u(n))return r(t)?n.concat(f(t)):n.concat(t);if(r(n)){var i=f(n);return r(t)?i.concat(f(t)):i.concat(t)}return n}}]);t.module("a8m.contains",[]).filter({contains:["$parse",ft],some:["$parse",ft]});t.module("a8m.count-by",[]).filter("countBy",["$parse",function(n){return function(t,i){var o,s={},h=n(i);return t=r(t)?f(t):t,!u(t)||e(i)?t:(t.forEach(function(n){o=h(n);s[o]||(s[o]=0);s[o]++}),s)}}]);t.module("a8m.defaults",[]).filter("defaults",["$parse",function(n){return function(t,i){if(t=r(t)?f(t):t,!u(t)||!r(i))return t;var o=w(i);return t.forEach(function(t){o.forEach(function(r){var u=n(r),f=u.assign;e(u(t))&&f(t,u(i))})}),t}}]);t.module("a8m.every",[]).filter("every",["$parse",function(n){return function(t,i){return t=r(t)?f(t):t,!u(t)||e(i)?!0:t.every(function(t){return r(t)||ht(i)?n(i)(t):t===i})}}]);t.module("a8m.filter-by",[]).filter("filterBy",["$parse",function(n){return function(t,h,c){var l;return c=o(c)||s(c)?String(c).toLowerCase():i,t=r(t)?f(t):t,!u(t)||e(c)?t:t.filter(function(t){return h.some(function(i){if(~i.indexOf("+")){var r=i.replace(new RegExp("\\s","g"),"").split("+");l=r.reduce(function(i,r,u){return 1===u?n(i)(t)+" "+n(r)(t):i+" "+n(r)(t)})}else l=n(i)(t);return o(l)||s(l)?String(l).toLowerCase().contains(c):!1})})}}]);t.module("a8m.first",[]).filter("first",["$parse",function(n){return function(t){var h,o,e;return t=r(t)?f(t):t,u(t)?(e=Array.prototype.slice.call(arguments,1),h=s(e[0])?e[0]:1,o=s(e[0])?s(e[1])?i:e[1]:e[0],e.length?p(t,h,o?n(o):o):t[0]):t}}]);t.module("a8m.flatten",[]).filter("flatten",function(){return function(n,t){return t=t||!1,n=r(n)?f(n):n,u(n)?t?[].concat.apply([],n):v(n,0):n}});t.module("a8m.fuzzy-by",[]).filter("fuzzyBy",["$parse",function(n){return function(t,i,s,h){var c,a,v=h||!1;return t=r(t)?f(t):t,!u(t)||e(i)||e(s)?t:(a=n(i),t.filter(function(n){return c=a(n),o(c)?(c=v?c:c.toLowerCase(),s=v?s:s.toLowerCase(),l(c,s)!==!1):!1}))}}]);t.module("a8m.fuzzy",[]).filter("fuzzy",function(){return function(n,t,i){function h(n,t){var i,r,u=Object.keys(n);return 0<u.filter(function(u){return i=n[u],r?!0:o(i)?(i=s?i:i.toLowerCase(),r=l(i,t)!==!1):!1}).length}var s=i||!1;return n=r(n)?f(n):n,!u(n)||e(t)?n:(t=s?t:t.toLowerCase(),n.filter(function(n){return o(n)?(n=s?n:n.toLowerCase(),l(n,t)!==!1):r(n)?h(n,t):!1}))}});t.module("a8m.group-by",["a8m.filter-watcher"]).filter("groupBy",["$parse","filterWatcher",function(n,t){return function(i,u){function f(n,t){var i,r={};return ct(n,function(n){i=t(n);r[i]||(r[i]=[]);r[i].push(n)}),r}return!r(i)||e(u)?i:t.isMemoized("groupBy",arguments)||t.memoize("groupBy",arguments,this,f(i,n(u)))}}]);t.module("a8m.is-empty",[]).filter("isEmpty",function(){return function(n){return r(n)?!f(n).length:!n.length}});t.module("a8m.join",[]).filter("join",function(){return function(n,t){return e(n)||!u(n)?n:(e(t)&&(t=" "),n.join(t))}});t.module("a8m.last",[]).filter("last",["$parse",function(n){return function(t){var c,h,o,e=at(t);return e=r(e)?f(e):e,u(e)?(o=Array.prototype.slice.call(arguments,1),c=s(o[0])?o[0]:1,h=s(o[0])?s(o[1])?i:o[1]:o[0],o.length?p(e.reverse(),c,h?n(h):h).reverse():e[e.length-1]):e}}]);t.module("a8m.map",[]).filter("map",["$parse",function(n){return function(t,i){return t=r(t)?f(t):t,!u(t)||e(i)?t:t.map(function(t){return n(i)(t)})}}]);t.module("a8m.omit",[]).filter("omit",["$parse",function(n){return function(t,i){return t=r(t)?f(t):t,!u(t)||e(i)?t:t.filter(function(t){return!n(i)(t)})}}]);t.module("a8m.pick",[]).filter("pick",["$parse",function(n){return function(t,i){return t=r(t)?f(t):t,!u(t)||e(i)?t:t.filter(function(t){return n(i)(t)})}}]);t.module("a8m.range",[]).filter("range",function(){return function(n,t){for(var i=0;i<parseInt(t);i++)n.push(i);return n}});t.module("a8m.remove-with",[]).filter("removeWith",function(){return function(n,t){return e(t)?n:(n=r(n)?f(n):n,n.filter(function(n){return!c(t,n)}))}});t.module("a8m.remove",[]).filter("remove",function(){return function(n){n=r(n)?f(n):n;var t=Array.prototype.slice.call(arguments,1);return u(n)?n.filter(function(n){return!t.some(function(t){return a(t,n)})}):n}});t.module("a8m.reverse",[]).filter("reverse",[function(){return function(n){return n=r(n)?f(n):n,o(n)?n.split("").reverse().join(""):u(n)?n.slice().reverse():n}}]);t.module("a8m.search-field",[]).filter("searchField",["$parse",function(n){return function(t){var o,e,i;return t=r(t)?f(t):t,i=Array.prototype.slice.call(arguments,1),u(t)&&i.length?t.map(function(t){return e=i.map(function(i){return(o=n(i))(t)}).join(" "),lt(t,{searchField:e})}):t}}]);t.module("a8m.to-array",[]).filter("toArray",function(){return function(n,t){return r(n)?t?Object.keys(n).map(function(t){return lt(n[t],{$key:t})}):f(n):n}});t.module("a8m.unique",[]).filter({unique:["$parse",et],uniq:["$parse",et]});t.module("a8m.where",[]).filter("where",function(){return function(n,t){return e(t)?n:(n=r(n)?f(n):n,n.filter(function(n){return c(t,n)}))}});t.module("a8m.xor",[]).filter("xor",["$parse",function(n){return function(t,i,e){function o(t,i){var r=n(e);return i.some(function(n){return e?a(r(n),r(t)):a(n,t)})}return e=e||!1,t=r(t)?f(t):t,i=r(i)?f(i):i,u(t)&&u(i)?t.concat(i).filter(function(n){return!(o(n,t)&&o(n,i))}):t}}]);t.module("a8m.math.byteFmt",["a8m.math"]).filter("byteFmt",["$math",function(n){return function(t,i){return s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)?1024>t?h(t,i,n)+" B":1048576>t?h(t/1024,i,n)+" KB":1073741824>t?h(t/1048576,i,n)+" MB":h(t/1073741824,i,n)+" GB":"NaN"}}]);t.module("a8m.math.degrees",["a8m.math"]).filter("degrees",["$math",function(n){return function(t,i){if(s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)){var r=180*t/n.PI;return n.round(r*n.pow(10,i))/n.pow(10,i)}return"NaN"}}]);t.module("a8m.math.kbFmt",["a8m.math"]).filter("kbFmt",["$math",function(n){return function(t,i){return s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)?1024>t?h(t,i,n)+" KB":1048576>t?h(t/1024,i,n)+" MB":h(t/1048576,i,n)+" GB":"NaN"}}]);t.module("a8m.math",[]).factory("$math",["$window",function(n){return n.Math}]);t.module("a8m.math.max",["a8m.math"]).filter("max",["$math","$parse",function(n,t){function i(i,r){var u=i.map(function(n){return t(r)(n)});return u.indexOf(n.max.apply(n,u))}return function(t,r){return u(t)?e(r)?n.max.apply(n,t):t[i(t,r)]:t}}]);t.module("a8m.math.min",["a8m.math"]).filter("min",["$math","$parse",function(n,t){function i(i,r){var u=i.map(function(n){return t(r)(n)});return u.indexOf(n.min.apply(n,u))}return function(t,r){return u(t)?e(r)?n.min.apply(n,t):t[i(t,r)]:t}}]);t.module("a8m.math.percent",["a8m.math"]).filter("percent",["$math","$window",function(n,t){return function(i,r,u){var f=o(i)?t.Number(i):i;return r=r||100,u=u||!1,!s(f)||t.isNaN(f)?i:u?n.round(f/r*100):f/r*100}}]);t.module("a8m.math.radians",["a8m.math"]).filter("radians",["$math",function(n){return function(t,i){if(s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)){var r=3.14159265359*t/180;return n.round(r*n.pow(10,i))/n.pow(10,i)}return"NaN"}}]);t.module("a8m.math.radix",[]).filter("radix",function(){return function(n,t){return s(n)&&/^[2-9]$|^[1-2]\d$|^3[0-6]$/.test(t)?n.toString(t).toUpperCase():n}});t.module("a8m.math.shortFmt",["a8m.math"]).filter("shortFmt",["$math",function(n){return function(t,i){return s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)?1e3>t?t:1e6>t?h(t/1e3,i,n)+" K":1e9>t?h(t/1e6,i,n)+" M":h(t/1e9,i,n)+" B":"NaN"}}]);t.module("a8m.math.sum",[]).filter("sum",function(){return function(n,t){return u(n)?n.reduce(function(n,t){return n+t},t||0):n}});t.module("a8m.ends-with",[]).filter("endsWith",function(){return function(n,t,i){var r,u=i||!1;return!o(n)||e(t)?n:(n=u?n:n.toLowerCase(),r=n.length-t.length,-1!==n.indexOf(u?t:t.toLowerCase(),r))}});t.module("a8m.latinize",[]).filter("latinize",[function(){function f(n){return n.replace(/[^\u0000-\u007E]/g,function(n){return u[n]||n})}for(var r,t,i=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],u={},n=0;n<i.length;n++)for(r=i[n].letters.split(""),t=0;t<r.length;t++)u[r[t]]=i[n].base;return function(n){return o(n)?f(n):n}}]);t.module("a8m.ltrim",[]).filter("ltrim",function(){return function(n,t){var i=t||"\\s";return o(n)?n.replace(new RegExp("^"+i+"+"),""):n}});t.module("a8m.match",[]).filter("match",function(){return function(n,t,i){var r=new RegExp(t,i);return o(n)?n.match(r):null}});t.module("a8m.repeat",[]).filter("repeat",[function(){return function(n,t,i){var r=~~t;return o(n)&&r?ot(n,--t,i||""):n}}]);t.module("a8m.rtrim",[]).filter("rtrim",function(){return function(n,t){var i=t||"\\s";return o(n)?n.replace(new RegExp(i+"+$"),""):n}});t.module("a8m.slugify",[]).filter("slugify",[function(){return function(n,t){var i=e(t)?"-":t;return o(n)?n.toLowerCase().replace(/\s+/g,i):n}}]);t.module("a8m.starts-with",[]).filter("startsWith",function(){return function(n,t,i){var r=i||!1;return!o(n)||e(t)?n:(n=r?n:n.toLowerCase(),!n.indexOf(r?t:t.toLowerCase()))}});t.module("a8m.stringular",[]).filter("stringular",function(){return function(n){var t=Array.prototype.slice.call(arguments,1);return n.replace(/{(\d+)}/g,function(n,i){return e(t[i])?n:t[i]})}});t.module("a8m.strip-tags",[]).filter("stripTags",function(){return function(n){return o(n)?n.replace(/<\S[^><]*>/g,""):n}});t.module("a8m.test",[]).filter("test",function(){return function(n,t,i){var r=new RegExp(t,i);return o(n)?r.test(n):n}});t.module("a8m.trim",[]).filter("trim",function(){return function(n,t){var i=t||"\\s";return o(n)?n.replace(new RegExp("^"+i+"+|"+i+"+$","g"),""):n}});t.module("a8m.truncate",[]).filter("truncate",function(){return function(n,t,i,r){return t=e(t)?n.length:t,r=r||!1,i=i||"",!o(n)||n.length<=t?n:n.substring(0,r?-1===n.indexOf(" ",t)?n.length:n.indexOf(" ",t):t)+i}});t.module("a8m.ucfirst",[]).filter("ucfirst",[function(){return function(n){return o(n)?n.split(" ").map(function(n){return n.charAt(0).toUpperCase()+n.substring(1)}).join(" "):n}}]);t.module("a8m.uri-component-encode",[]).filter("uriComponentEncode",["$window",function(n){return function(t){return o(t)?n.encodeURIComponent(t):t}}]);t.module("a8m.uri-encode",[]).filter("uriEncode",["$window",function(n){return function(t){return o(t)?n.encodeURI(t):t}}]);t.module("a8m.wrap",[]).filter("wrap",function(){return function(n,t,i){return o(n)&&st(t)?[t,n,i||t].join(""):n}});t.module("a8m.filter-watcher",[]).provider("filterWatcher",function(){this.$get=["$window","$rootScope",function(n,t){function f(t,i){function u(){var t=[];return function(i,u){if(r(u)&&!y(u)){if(~t.indexOf(u))return"[Circular]";t.push(u)}return n==u?"$WINDOW":n.document==u?"$DOCUMENT":b(u)?"$SCOPE":u}}return[t,JSON.stringify(i,u())].join("#").replace(/"/g,"")}function o(n){var t=n.targetScope.$id;ct(i[t],function(n){delete u[n]});delete i[t]}function s(){a(function(){t.$$phase||(u={})},2e3)}function h(n,t){var r=n.$id;return e(i[r])&&(n.$on("$destroy",o),i[r]=[]),i[r].push(t)}function c(n,t){var i=f(n,t);return u[i]}function l(n,t,i,r){var e=f(n,t);return u[e]=r,b(i)?h(i,e):s(),r}var u={},i={},a=n.setTimeout;return{isMemoized:c,memoize:l}}]});t.module("angular.filter",["a8m.ucfirst","a8m.uri-encode","a8m.uri-component-encode","a8m.slugify","a8m.latinize","a8m.strip-tags","a8m.stringular","a8m.truncate","a8m.starts-with","a8m.ends-with","a8m.wrap","a8m.trim","a8m.ltrim","a8m.rtrim","a8m.repeat","a8m.test","a8m.match","a8m.to-array","a8m.concat","a8m.contains","a8m.unique","a8m.is-empty","a8m.after","a8m.after-where","a8m.before","a8m.before-where","a8m.defaults","a8m.where","a8m.reverse","a8m.remove","a8m.remove-with","a8m.group-by","a8m.count-by","a8m.chunk-by","a8m.search-field","a8m.fuzzy-by","a8m.fuzzy","a8m.omit","a8m.pick","a8m.every","a8m.filter-by","a8m.xor","a8m.map","a8m.first","a8m.last","a8m.flatten","a8m.join","a8m.range","a8m.math","a8m.math.max","a8m.math.min","a8m.math.percent","a8m.math.radix","a8m.math.sum","a8m.math.degrees","a8m.math.radians","a8m.math.byteFmt","a8m.math.kbFmt","a8m.math.shortFmt","a8m.angular","a8m.conditions","a8m.is-null","a8m.filter-watcher"])}(window,window.angular),function(){function it(t,i){for(var u=k.length,f=typeof t.constructor=="function"?g:l,r;u--;)r=k[u],(r==="constructor"?n.has(t,r):r in t&&t[r]!==f[r]&&!n.contains(i,r))&&i.push(r)}var c=this,et=c._,e=Array.prototype,l=Object.prototype,g=Function.prototype,ot=e.push,i=e.slice,f=l.toString,st=l.hasOwnProperty,ht=Array.isArray,nt=Object.keys,a=g.bind,tt=Object.create,v=function(){},n=function(t){if(t instanceof n)return t;if(!(this instanceof n))return new n(t);this._wrapped=t},r,t,y,p,o,u,w,b,k,s,ft,h;typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=n),exports._=n):c._=n;n.VERSION="1.7.0";r=function(n,t,i){if(t===void 0)return n;switch(i==null?3:i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}};t=function(t,i,u){return t==null?n.identity:n.isFunction(t)?r(t,i,u):n.isObject(t)?n.matches(t):n.property(t)};n.iteratee=function(n,i){return t(n,i,Infinity)};y=function(n){return function(t){var f=arguments.length,i,r,u;if(f<2||t==null)return t;for(i=0;i<f;i++){var e=arguments[i],o=n(e),s=o.length;for(r=0;r<s;r++)u=o[r],t[u]=e[u]}return t}};p=function(t){if(!n.isObject(t))return{};if(tt)return tt(t);v.prototype=t;var i=new v;return v.prototype=null,i};n.each=n.forEach=function(t,i,u){var f,e,o;if(t==null)return t;if(i=r(i,u),e=t.length,e===+e)for(f=0;f<e;f++)i(t[f],f,t);else for(o=n.keys(t),f=0,e=o.length;f<e;f++)i(t[o[f]],o[f],t);return t};n.map=n.collect=function(i,r,u){var f;if(i==null)return[];r=t(r,u);var e=i.length!==+i.length&&n.keys(i),s=(e||i).length,h=Array(s),o;for(f=0;f<s;f++)o=e?e[f]:f,h[f]=r(i[o],o,i);return h};n.reduce=n.foldl=n.inject=function(t,i,u,f){t==null&&(t=[]);i=r(i,f,4);var o=t.length!==+t.length&&n.keys(t),h=(o||t).length,e=0,s;for(arguments.length<3&&(u=t[o?o[e++]:e++]);e<h;e++)s=o?o[e]:e,u=i(u,t[s],s,t);return u};n.reduceRight=n.foldr=function(t,i,u,f){t==null&&(t=[]);i=r(i,f,4);var e=t.length!==+t.length&&n.keys(t),o=(e||t).length,s;for(arguments.length<3&&(u=t[e?e[--o]:--o]);o-->0;)s=e?e[o]:o,u=i(u,t[s],s,t);return u};n.find=n.detect=function(t,i,r){var u;return u=t.length===+t.length?n.findIndex(t,i,r):n.findKey(t,i,r),u!==void 0&&u!==-1?t[u]:void 0};n.filter=n.select=function(i,r,u){var f=[];return i==null?f:(r=t(r,u),n.each(i,function(n,t,i){r(n,t,i)&&f.push(n)}),f)};n.reject=function(i,r,u){return n.filter(i,n.negate(t(r)),u)};n.every=n.all=function(i,r,u){if(i==null)return!0;r=t(r,u);for(var e=i.length!==+i.length&&n.keys(i),s=(e||i).length,o,f=0;f<s;f++)if(o=e?e[f]:f,!r(i[o],o,i))return!1;return!0};n.some=n.any=function(i,r,u){if(i==null)return!1;r=t(r,u);for(var e=i.length!==+i.length&&n.keys(i),s=(e||i).length,o,f=0;f<s;f++)if(o=e?e[f]:f,r(i[o],o,i))return!0;return!1};n.contains=n.includes=n.include=function(t,i,r){return t==null?!1:(t.length!==+t.length&&(t=n.values(t)),n.indexOf(t,i,typeof r=="number"&&r)>=0)};n.invoke=function(t,r){var u=i.call(arguments,2),f=n.isFunction(r);return n.map(t,function(n){return(f?r:n[r]).apply(n,u)})};n.pluck=function(t,i){return n.map(t,n.property(i))};n.where=function(t,i){return n.filter(t,n.matches(i))};n.findWhere=function(t,i){return n.find(t,n.matches(i))};n.max=function(i,r,u){var f=-Infinity,h=-Infinity,s,e,o,c;if(r==null&&i!=null)for(i=i.length===+i.length?i:n.values(i),o=0,c=i.length;o<c;o++)s=i[o],s>f&&(f=s);else r=t(r,u),n.each(i,function(n,t,i){e=r(n,t,i);(e>h||e===-Infinity&&f===-Infinity)&&(f=n,h=e)});return f};n.min=function(i,r,u){var f=Infinity,h=Infinity,s,e,o,c;if(r==null&&i!=null)for(i=i.length===+i.length?i:n.values(i),o=0,c=i.length;o<c;o++)s=i[o],s<f&&(f=s);else r=t(r,u),n.each(i,function(n,t,i){e=r(n,t,i);(e<h||e===Infinity&&f===Infinity)&&(f=n,h=e)});return f};n.shuffle=function(t){for(var f=t&&t.length===+t.length?t:n.values(t),e=f.length,r=Array(e),i=0,u;i<e;i++)u=n.random(0,i),u!==i&&(r[i]=r[u]),r[u]=f[i];return r};n.sample=function(t,i,r){return i==null||r?(t.length!==+t.length&&(t=n.values(t)),t[n.random(t.length-1)]):n.shuffle(t).slice(0,Math.max(0,i))};n.sortBy=function(i,r,u){return r=t(r,u),n.pluck(n.map(i,function(n,t,i){return{value:n,index:t,criteria:r(n,t,i)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;if(i<r||r===void 0)return-1}return n.index-t.index}),"value")};o=function(i){return function(r,u,f){var e={};return u=t(u,f),n.each(r,function(n,t){var f=u(n,t,r);i(e,n,f)}),e}};n.groupBy=o(function(t,i,r){n.has(t,r)?t[r].push(i):t[r]=[i]});n.indexBy=o(function(n,t,i){n[i]=t});n.countBy=o(function(t,i,r){n.has(t,r)?t[r]++:t[r]=1});n.sortedIndex=function(n,i,r,u){var e;r=t(r,u,1);for(var s=r(i),f=0,o=n.length;f<o;)e=Math.floor((f+o)/2),r(n[e])<s?f=e+1:o=e;return f};n.toArray=function(t){return t?n.isArray(t)?i.call(t):t.length===+t.length?n.map(t,n.identity):n.values(t):[]};n.size=function(t){return t==null?0:t.length===+t.length?t.length:n.keys(t).length};n.partition=function(i,r,u){r=t(r,u);var f=[],e=[];return n.each(i,function(n,t,i){(r(n,t,i)?f:e).push(n)}),[f,e]};n.first=n.head=n.take=function(t,i,r){if(t!=null)return i==null||r?t[0]:n.initial(t,t.length-i)};n.initial=function(n,t,r){return i.call(n,0,Math.max(0,n.length-(t==null||r?1:t)))};n.last=function(t,i,r){if(t!=null)return i==null||r?t[t.length-1]:n.rest(t,Math.max(0,t.length-i))};n.rest=n.tail=n.drop=function(n,t,r){return i.call(n,t==null||r?1:t)};n.compact=function(t){return n.filter(t,n.identity)};u=function(t,i,r,f){for(var h,c,o=[],l=0,e,s=f||0,a=t&&t.length;s<a;s++)if(e=t[s],e&&e.length>=0&&(n.isArray(e)||n.isArguments(e)))for(i||(e=u(e,i,r)),h=0,c=e.length,o.length+=c;h<c;)o[l++]=e[h++];else r||(o[l++]=e);return o};n.flatten=function(n,t){return u(n,t,!1)};n.without=function(t){return n.difference(t,i.call(arguments,1))};n.uniq=n.unique=function(i,r,u,f){var o,h,s,l,e,c;if(i==null)return[];for(n.isBoolean(r)||(f=u,u=r,r=!1),u!=null&&(u=t(u,f)),o=[],h=[],s=0,l=i.length;s<l;s++)e=i[s],c=u?u(e,s,i):e,r?(s&&h===c||o.push(e),h=c):u?n.contains(h,c)||(h.push(c),o.push(e)):n.contains(o,e)||o.push(e);return o};n.union=function(){return n.uniq(u(arguments,!0,!0))};n.intersection=function(t){var r,e,u,o,f,i;if(t==null)return[];for(r=[],e=arguments.length,u=0,o=t.length;u<o;u++)if(f=t[u],!n.contains(r,f)){for(i=1;i<e;i++)if(!n.contains(arguments[i],f))break;i===e&&r.push(f)}return r};n.difference=function(t){var i=u(arguments,!0,!0,1);return n.filter(t,function(t){return!n.contains(i,t)})};n.zip=function(t){if(t==null)return[];for(var i=n.max(arguments,"length").length,r=Array(i);i-->0;)r[i]=n.pluck(arguments,i);return r};n.unzip=function(t){return n.zip.apply(null,t)};n.object=function(n,t){var r,i,u;if(n==null)return{};for(r={},i=0,u=n.length;i<u;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r};n.indexOf=function(t,i,r){var u=0,f=t&&t.length;if(typeof r=="number")u=r<0?Math.max(0,f+r):r;else if(r&&f)return u=n.sortedIndex(t,i),t[u]===i?u:-1;for(;u<f;u++)if(t[u]===i)return u;return-1};n.lastIndexOf=function(n,t,i){var r=n?n.length:0;for(typeof i=="number"&&(r=i<0?r+i+1:Math.min(r,i+1));--r>=0;)if(n[r]===t)return r;return-1};n.findIndex=function(n,i,r){var f,u;for(i=t(i,r),f=n!=null?n.length:0,u=0;u<f;u++)if(i(n[u],u,n))return u;return-1};n.range=function(n,t,i){var u,f,r;for(arguments.length<=1&&(t=n||0,n=0),i=i||1,u=Math.max(Math.ceil((t-n)/i),0),f=Array(u),r=0;r<u;r++,n+=i)f[r]=n;return f};w=function(t,i,r,u,f){if(!(u instanceof i))return t.apply(r,f);var e=p(t.prototype),o=t.apply(e,f);return n.isObject(o)?o:e};n.bind=function(t,r){if(a&&t.bind===a)return a.apply(t,i.call(arguments,1));if(!n.isFunction(t))throw new TypeError("Bind must be called on a function");var u=i.call(arguments,2);return function f(){return w(t,f,r,this,u.concat(i.call(arguments)))}};n.partial=function(t){var r=i.call(arguments,1);return function u(){for(var e=0,i=r.slice(),f=0,o=i.length;f<o;f++)i[f]===n&&(i[f]=arguments[e++]);while(e<arguments.length)i.push(arguments[e++]);return w(t,u,this,this,i)}};n.bindAll=function(t){var i,u=arguments.length,r;if(u<=1)throw new Error("bindAll must be passed function names");for(i=1;i<u;i++)r=arguments[i],t[r]=n.bind(t[r],t);return t};n.memoize=function(t,i){var r=function(u){var f=r.cache,e=""+(i?i.apply(this,arguments):u);return n.has(f,e)||(f[e]=t.apply(this,arguments)),f[e]};return r.cache={},r};n.delay=function(n,t){var r=i.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)};n.defer=n.partial(n.delay,n,1);n.throttle=function(t,i,r){var f,e,s,u=null,o=0,h;return r||(r={}),h=function(){o=r.leading===!1?0:n.now();u=null;s=t.apply(f,e);u||(f=e=null)},function(){var l=n.now(),c;return o||r.leading!==!1||(o=l),c=i-(l-o),f=this,e=arguments,c<=0||c>i?(u&&(clearTimeout(u),u=null),o=l,s=t.apply(f,e),u||(f=e=null)):u||r.trailing===!1||(u=setTimeout(h,c)),s}};n.debounce=function(t,i,r){var u,f,e,s,o,h=function(){var c=n.now()-s;c<i&&c>=0?u=setTimeout(h,i-c):(u=null,r||(o=t.apply(e,f),u||(e=f=null)))};return function(){e=this;f=arguments;s=n.now();var c=r&&!u;return u||(u=setTimeout(h,i)),c&&(o=t.apply(e,f),e=f=null),o}};n.wrap=function(t,i){return n.partial(i,t)};n.negate=function(n){return function(){return!n.apply(this,arguments)}};n.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}};n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}};n.before=function(n,t){var i;return function(){return--n>0&&(i=t.apply(this,arguments)),n<=1&&(t=null),i}};n.once=n.partial(n.before,2);b=!{toString:null}.propertyIsEnumerable("toString");k=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];n.keys=function(t){var i,r;if(!n.isObject(t))return[];if(nt)return nt(t);i=[];for(r in t)n.has(t,r)&&i.push(r);return b&&it(t,i),i};n.keysIn=function(t){var i,r;if(!n.isObject(t))return[];i=[];for(r in t)i.push(r);return b&&it(t,i),i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=t[r[i]];return f};n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=[r[i],t[r[i]]];return f};n.invert=function(t){for(var u={},r=n.keys(t),i=0,f=r.length;i<f;i++)u[t[r[i]]]=r[i];return u};n.functions=n.methods=function(t){var i=[];for(var r in t)n.isFunction(t[r])&&i.push(r);return i.sort()};n.extend=y(n.keysIn);n.assign=y(n.keys);n.findKey=function(i,r,u){var o,f,e,s;for(r=t(r,u),o=n.keys(i),e=0,s=o.length;e<s;e++)if(f=o[e],r(i[f],f,i))return f};n.pick=function(t,i,f){var o={},e,h,c,s,l;if(t==null)return o;if(n.isFunction(i)){i=r(i,f);for(e in t)h=t[e],i(h,e,t)&&(o[e]=h)}else for(c=u(arguments,!1,!1,1),t=new Object(t),s=0,l=c.length;s<l;s++)e=c[s],e in t&&(o[e]=t[e]);return o};n.omit=function(t,i,r){if(n.isFunction(i))i=n.negate(i);else{var f=n.map(u(arguments,!1,!1,1),String);i=function(t,i){return!n.contains(f,i)}}return n.pick(t,i,r)};n.defaults=function(t){var i,f,u,r;if(!n.isObject(t))return t;for(i=1,f=arguments.length;i<f;i++){u=arguments[i];for(r in u)t[r]===void 0&&(t[r]=u[r])}return t};n.create=function(t,i){var r=p(t);return i&&n.assign(r,i),r};n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t};n.tap=function(n,t){return t(n),n};s=function(t,i,r,u){var c,a,o,h,e,v,l;if(t===i)return t!==0||1/t==1/i;if(t==null||i==null)return t===i;if(t instanceof n&&(t=t._wrapped),i instanceof n&&(i=i._wrapped),c=f.call(t),c!==f.call(i))return!1;switch(c){case"[object RegExp]":case"[object String]":return""+t==""+i;case"[object Number]":return+t!=+t?+i!=+i:+t==0?1/+t==1/i:+t==+i;case"[object Date]":case"[object Boolean]":return+t==+i}if(a=c==="[object Array]",!a&&(typeof t!="object"||typeof i!="object"||(o=t.constructor,h=i.constructor,o!==h&&!(n.isFunction(o)&&o instanceof o&&n.isFunction(h)&&h instanceof h)&&"constructor"in t&&"constructor"in i)))return!1;for(e=r.length;e--;)if(r[e]===t)return u[e]===i;if(r.push(t),u.push(i),a){if(e=t.length,e!==i.length)return!1;while(e--)if(!s(t[e],i[e],r,u))return!1}else{if(v=n.keys(t),e=v.length,n.keys(i).length!==e)return!1;while(e--)if(l=v[e],!(n.has(i,l)&&s(t[l],i[l],r,u)))return!1}return r.pop(),u.pop(),!0};n.isEqual=function(n,t){return s(n,t,[],[])};n.isEmpty=function(t){if(t==null)return!0;if(n.isArray(t)||n.isString(t)||n.isArguments(t))return t.length===0;for(var i in t)if(n.has(t,i))return!1;return!0};n.isElement=function(n){return!!(n&&n.nodeType===1)};n.isArray=ht||function(n){return f.call(n)==="[object Array]"};n.isObject=function(n){var t=typeof n;return t==="function"||t==="object"&&!!n};n.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){n["is"+t]=function(n){return f.call(n)==="[object "+t+"]"}});n.isArguments(arguments)||(n.isArguments=function(t){return n.has(t,"callee")});typeof/./!="function"&&typeof Int8Array!="object"&&(n.isFunction=function(n){return typeof n=="function"||!1});n.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))};n.isNaN=function(t){return n.isNumber(t)&&t!==+t};n.isBoolean=function(n){return n===!0||n===!1||f.call(n)==="[object Boolean]"};n.isNull=function(n){return n===null};n.isUndefined=function(n){return n===void 0};n.has=function(n,t){return n!=null&&st.call(n,t)};n.noConflict=function(){return c._=et,this};n.identity=function(n){return n};n.constant=function(n){return function(){return n}};n.noop=function(){};n.property=function(n){return function(t){if(t!=null)return t[n]}};n.propertyOf=function(n){return n==null?function(){}:function(t){return n[t]}};n.matches=function(t){var i=n.pairs(t),r=i.length;return function(n){var t,u,f;if(n==null)return!r;for(n=new Object(n),t=0;t<r;t++)if(u=i[t],f=u[0],u[1]!==n[f]||!(f in n))return!1;return!0}};n.times=function(n,t,i){var f=Array(Math.max(0,n)),u;for(t=r(t,i,1),u=0;u<n;u++)f[u]=t(u);return f};n.random=function(n,t){return t==null&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};n.now=Date.now||function(){return(new Date).getTime()};var rt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},ct=n.invert(rt),ut=function(t){var r=function(n){return t[n]},i="(?:"+n.keys(t).join("|")+")",u=RegExp(i),f=RegExp(i,"g");return function(n){return n=n==null?"":""+n,u.test(n)?n.replace(f,r):n}};n.escape=ut(rt);n.unescape=ut(ct);n.result=function(t,i,r){var u=t==null?void 0:t[i];return u===void 0&&(u=r),n.isFunction(u)?u.call(t):u};ft=0;n.uniqueId=function(n){var t=++ft+"";return n?n+t:t};n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var d=/(.)^/,lt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},at=/\\|'|\r|\n|\u2028|\u2029/g,vt=function(n){return"\\"+lt[n]};n.template=function(t,i,r){var o,f,h;!i&&r&&(i=r);i=n.defaults({},i,n.templateSettings);var c=RegExp([(i.escape||d).source,(i.interpolate||d).source,(i.evaluate||d).source].join("|")+"|$","g"),e=0,u="__p+='";t.replace(c,function(n,i,r,f,o){return u+=t.slice(e,o).replace(at,vt),e=o+n.length,i?u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":f&&(u+="';\n"+f+"\n__p+='"),n});u+="';\n";i.variable||(u="with(obj||{}){\n"+u+"}\n");u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{o=new Function(i.variable||"obj","_",u)}catch(s){s.source=u;throw s;}return f=function(t){return o.call(this,t,n)},h=i.variable||"obj",f.source="function("+h+"){\n"+u+"}",f};n.chain=function(t){var i=n(t);return i._chain=!0,i};h=function(t,i){return t._chain?n(i).chain():i};n.mixin=function(t){n.each(n.functions(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return ot.apply(t,arguments),h(this,r.apply(n,t))}})};n.mixin(n);n.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=e[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),(t==="shift"||t==="splice")&&n.length===0&&delete n[0],h(this,n)}});n.each(["concat","join","slice"],function(t){var i=e[t];n.prototype[t]=function(){return h(this,i.apply(this._wrapped,arguments))}});n.prototype.value=function(){return this._wrapped};typeof define=="function"&&define.amd&&define("underscore",[],function(){return n})}.call(this),function(n){var t;n.fn.jqprint=function(i){var e,r,f,u;t=n.extend({},n.fn.jqprint.defaults,i);e=this instanceof jQuery?this:n(this);t.operaSupport&&n.browser.opera?(r=window.open("","jqPrint-preview"),r.document.open(),u=r.document):(f=n("<iframe  />"),t.debug||f.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"}),f.appendTo("body"),u=f[0].contentWindow.document);t.importCSS&&(n("link[media=print]").length>0?n("link[media=print]").each(function(){u.write("<link type='text/css' rel='stylesheet' href='"+n(this).attr("href")+"' media='print' />")}):n("link").each(function(){u.write("<link type='text/css' rel='stylesheet' href='"+n(this).attr("href")+"' />")}));t.printContainer?u.write(e.outer()):e.each(function(){u.write(n(this).html())});u.close();(t.operaSupport&&n.browser.opera?r:f[0].contentWindow).focus();setTimeout(function(){(t.operaSupport&&n.browser.opera?r:f[0].contentWindow).print();r&&r.close()},1e3)};n.fn.jqprint.defaults={debug:!1,importCSS:!0,printContainer:!0,operaSupport:!0};jQuery.fn.outer=function(){return n(n("<div><\/div>").html(this.clone())).html()}}(jQuery),function(n){return n.fn.printSplitter=function(t){var i=this,h=function(){n("body").append('<div id="printSplitDPI" style="width:1in;height:1in;left:-100%;position:absolute;top:-100%;"><\/div>');var t=document.getElementById("printSplitDPI").offsetHeight;return n("#printSplitDPI").remove(),t}(),e,o,s;t=n.extend({paperSize:{width:11.692,height:8.267},threshold:30,portraitMode:!1,margins:{top:.39,left:.39,right:.39,bottom:.39},headerElements:[],callback:function(){}},t);e=t.portraitMode?t.paperSize.width:t.paperSize.height;o=(e-t.margins.bottom-t.margins.top)*h;s=n(i).is("table")?n(i).children("tbody").children("tr"):n(i).children();var r=0,u={},f=0;n.each(s,function(i,e){i===0&&t.headerElements&&n.each(t.headerElements,function(t,i){r+=Math.max(n(i).outerHeight(!0),n(i).offset().top)});var s=n(e).outerHeight(!0);r+s>=o-t.threshold?(r=s,f++):r+=s;u[f]||(u[f]=[]);u[f].push(n(e).clone())});n(i).before('<div class="print-split-cont"><\/div>');n.each(u,function(t,r){var u=n(i).clone().html("");t>0&&u.css("page-break-before","always");n.each(r,function(n,t){u.append(t)});n(".print-split-cont").append(u)});n(i).hide();window.print();setTimeout(function(){n(i).show();n(".print-split-cont").remove();t.callback()},100)},this}(jQuery);HtmlSanitizer=new function(){function e(n,t){for(var i=0;i<t.length;i++)if(n.indexOf(t[i])==0)return!0;return!1}var n={A:!0,ABBR:!0,B:!0,BLOCKQUOTE:!0,BODY:!0,BR:!0,CENTER:!0,CODE:!0,DIV:!0,EM:!0,FONT:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HR:!0,I:!0,IMG:!0,LABEL:!0,LI:!0,OL:!0,P:!0,PRE:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRONG:!0,TABLE:!0,TBODY:!0,TR:!0,TD:!0,TH:!0,THEAD:!0,UL:!0,U:!0,VIDEO:!0},t={FORM:!0},i={align:!0,color:!0,controls:!0,height:!0,href:!0,src:!0,style:!0,target:!0,title:!0,type:!0,width:!0},r={color:!0,"background-color":!0,"font-size":!0,"text-align":!0,"text-decoration":!0,"font-weight":!0},u=["http:","https:","data:","m-files:","file:","ftp:"],f={href:!0,action:!0};this.SanitizeHtml=function(o){function l(o){var v,h,a,y,p;if(o.nodeType==Node.TEXT_NODE)v=o.cloneNode(!0);else if(o.nodeType==Node.ELEMENT_NODE&&(n[o.tagName]||t[o.tagName])){if((o.tagName=="SPAN"||o.tagName=="B"||o.tagName=="I"||o.tagName=="U")&&o.innerHTML.trim()=="")return document.createDocumentFragment();for(v=t[o.tagName]?c.createElement("DIV"):c.createElement(o.tagName),h=0;h<o.attributes.length;h++)if(a=o.attributes[h],i[a.name])if(a.name=="style")for(s=0;s<o.style.length;s++)y=o.style[s],r[y]&&v.style.setProperty(y,o.style.getPropertyValue(y));else{if(f[a.name]&&a.value.indexOf(":")>-1&&!e(a.value,u))continue;v.setAttribute(a.name,a.value)}for(h=0;h<o.childNodes.length;h++)p=l(o.childNodes[h]),v.appendChild(p,!1)}else v=document.createDocumentFragment();return v}var h,c,a;return(o=o.trim(),o=="")?"":o=="<br>"?"":(h=document.createElement("iframe"),h.sandbox===undefined)?(alert("Your browser does not support sandboxed iframes. Please upgrade to a modern browser."),""):(h.sandbox="allow-same-origin",h.style.display="none",document.body.appendChild(h),c=h.contentDocument||h.contentWindow.document,c.body==null&&c.write("<body><\/body>"),c.body.innerHTML=o,a=l(c.body),document.body.removeChild(h),a.innerHTML.replace(/<br[^>]*>(\S)/g,"<br>\n$1").replace(/div><div/g,"div>\n<div"))};this.AllowedTags=n;this.AllowedAttributes=i;this.AllowedCssStyles=r;this.AllowedSchemas=u};!function(){"use strict";function e(n,t,i){"addEventListener"in window?n.addEventListener(t,i,!1):"attachEvent"in window&&n.attachEvent("on"+t,i)}function st(n){return v+"["+y+"] "+n}function n(n){rt&&"object"==typeof console&&console.log(st(n))}function o(n){"object"==typeof console&&console.warn(st(n))}function oi(){n("Initialising iFrame");si();ci();w("background",dt);w("padding",gt);yi();ht();li();wi();vi();a=pi();u("init","Init message from host page")}function si(){function i(n){return"true"===n?!0:!1}var n=ii.substr(ri).split(":");y=n[0];g=void 0!==n[1]?Number(n[1]):g;nt=void 0!==n[2]?i(n[2]):nt;rt=void 0!==n[3]?i(n[3]):rt;f=void 0!==n[4]?Number(n[4]):f;ut=void 0!==n[5]?i(n[5]):ut;d=void 0!==n[6]?i(n[6]):d;s=n[7];t=void 0!==n[8]?n[8]:t;dt=n[9];gt=n[10];et=void 0!==n[11]?Number(n[11]):et;a.enable=void 0!==n[12]?i(n[12]):!1;ft=void 0!==n[13]?n[13]:ft}function hi(n,t){return-1!==t.indexOf("-")&&(o("Negative CSS value ignored for "+n),t=""),t}function w(t,i){void 0!==i&&""!==i&&"null"!==i&&(document.body.style[t]=i,n("Body "+t+' set to "'+i+'"'))}function ci(){void 0===s&&(s=g+"px");hi("margin",s);w("margin",s)}function li(){document.documentElement.style.height="";document.body.style.height="";n('HTML & body height set to "auto"')}function r(t){function i(n){e(window,n,function(){u(t.eventName,t.eventType)})}t.eventNames&&Array.prototype.map?(t.eventName=t.eventNames[0],t.eventNames.map(i)):i(t.eventName);n("Added event listener: "+t.eventType)}function ai(){r({eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]});r({eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]});r({eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]});r({eventType:"Device Orientation Change",eventName:"orientationchange"});r({eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]});r({eventType:"Window Clicked",eventName:"click"});"child"===ft&&r({eventType:"IFrame Resized",eventName:"resize"})}function ht(){it!==t&&(t in ot||(o(t+" is not a valid option for heightCalculationMethod."),t="bodyScroll"),n('Height calculation method set to "'+t+'"'))}function vi(){!0===d?(ai(),ki()):n("Auto Resize disabled")}function yi(){var n=document.createElement("div");n.style.clear="both";n.style.display="block";document.body.appendChild(n)}function pi(){function u(){return{x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop}}function f(n){var t=n.getBoundingClientRect(),i=u();return{x:parseInt(t.left,10)+parseInt(i.x,10),y:parseInt(t.top,10)+parseInt(i.y,10)}}function t(t){function o(t){var u=f(t);n("Moving to in page link (#"+r+") at x: "+u.x+" y: "+u.y);i(u.y,u.x,"scrollToOffset")}var r=t.split("#")[1]||"",u=decodeURIComponent(r),e=document.getElementById(u)||document.getElementsByName(u)[0];e?o(e):(n("In page link (#"+r+") not found in iFrame, so sending to parent"),i(0,0,"inPageLink","#"+r))}function r(){""!==location.hash&&"#"!==location.hash&&t(location.href)}function s(){function n(n){function i(n){n.preventDefault();t(this.getAttribute("href"))}"#"!==n.getAttribute("href")&&e(n,"click",i)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),n)}function h(){e(window,"hashchange",r)}function c(){setTimeout(r,tt)}function l(){Array.prototype.forEach&&document.querySelectorAll?(n("Setting up location.hash handlers"),s(),h(),c()):o("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return a.enable?l():n("In page linking not enabled"),{findTarget:t}}function wi(){ut&&(n("Enable public methods"),window.parentIFrame={close:function(){i(0,0,"close")},getId:function(){return y},moveToAnchor:function(n){a.findTarget(n)},reset:function(){bt("parentIFrame.reset")},scrollTo:function(n,t){i(t,n,"scrollTo")},scrollToOffset:function(n,t){i(t,n,"scrollToOffset")},sendMessage:function(n,t){i(0,0,"message",JSON.stringify(n),t)},setHeightCalculationMethod:function(n){t=n;ht()},setTargetOrigin:function(t){n("Set targetOrigin: "+t);ui=t},size:function(n,t){var i=""+(n?n:"")+(t?","+t:"");k();u("size","parentIFrame.size("+i+")",n,t)}})}function ct(){0!==f&&(n("setInterval: "+f+"ms"),setInterval(function(){u("interval","setInterval: "+f)},Math.abs(f)))}function bi(t){function i(t){(void 0===t.height||void 0===t.width||0===t.height||0===t.width)&&(n("Attach listerner to "+t.src),e(t,"load",function(){u("imageLoad","Image loaded")}))}t.forEach(function(n){if("attributes"===n.type&&"src"===n.attributeName)i(n.target);else if("childList"===n.type){var t=n.target.querySelectorAll("img");Array.prototype.forEach.call(t,function(n){i(n)})}})}function ki(){function i(){var i=document.querySelector("body"),r=new t(function(n){u("mutationObserver","mutationObserver: "+n[0].target+" "+n[0].type);bi(n)});n("Enable MutationObserver");r.observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0})}var t=window.MutationObserver||window.WebKitMutationObserver;t?0>f?ct():i():(o("MutationObserver not supported in this browser!"),ct())}function l(){function n(n){function r(n){var i,r;return/^\d+(px)?$/i.test(n)?parseInt(n,kt):(i=t.style.left,r=t.runtimeStyle.left,t.runtimeStyle.left=t.currentStyle.left,t.style.left=n||0,n=t.style.pixelLeft,t.style.left=i,t.runtimeStyle.left=r,n)}var t=document.body,i=0;return"defaultView"in document&&"getComputedStyle"in document.defaultView?(i=document.defaultView.getComputedStyle(t,null),i=null!==i?i[n]:0):i=r(t.currentStyle[n]),parseInt(i,kt)}return document.body.offsetHeight+n("marginTop")+n("marginBottom")}function lt(){return document.body.scrollHeight}function at(){return document.documentElement.offsetHeight}function b(){return document.documentElement.scrollHeight}function di(){for(var i=document.querySelectorAll("body *"),f=i.length,r=0,u=(new Date).getTime(),t=0;f>t;t++)i[t].getBoundingClientRect().bottom>r&&(r=i[t].getBoundingClientRect().bottom);return u=(new Date).getTime()-u,n("Parsed "+f+" HTML elements"),n("LowestElement bottom position calculated in "+u+"ms"),r}function vt(){return[l(),lt(),at(),b()]}function yt(){return Math.max.apply(null,vt())}function gi(){return Math.min.apply(null,vt())}function nr(){return Math.max(l(),di())}function pt(){return Math.max(document.documentElement.scrollWidth,document.body.scrollWidth)}function u(r,u,f,e){function l(){r in{reset:1,resetPage:1,init:1}||n("Trigger event: "+u)}function a(){h=o;c=s;i(h,c,r)}function v(){return p&&r in ir}function y(){function n(n,t){var i=Math.abs(n-t)<=et;return!i}return o=void 0!==f?f:ot[t](),s=void 0!==e?e:pt(),n(h,o)||nt&&n(c,s)}function w(){return!(r in{init:1,interval:1,size:1})}function b(){return t in rr}function d(){n("No change in size detected")}function g(){w()&&b()?bt(u):r in{interval:1}||(l(),d())}var o,s;v()?n("Trigger event cancelled: "+r):y()||"init"===r?(l(),k(),a()):g()}function k(){p||(p=!0,n("Trigger event lock on"));clearTimeout(ei);ei=setTimeout(function(){p=!1;n("Trigger event lock off");n("--")},tt)}function wt(n){h=ot[t]();c=pt();i(h,c,n)}function bt(i){var r=t;t=it;n("Reset trigger event: "+i);k();wt("reset");t=r}function i(t,i,r,u,f){function e(){void 0===f?f=ui:n("Message targetOrigin: "+f)}function o(){var o=t+":"+i,e=y+":"+o+":"+r+(void 0!==u?":"+u:"");n("Sending message to host page ("+e+")");fi.postMessage(v+e,f)}e();o()}function tr(t){function r(){return v===(""+t.data).substr(0,ri)}function f(){ii=t.data;fi=t.source;oi();ni=!1;setTimeout(function(){ti=!1},tt)}function e(){ti?n("Page reset ignored by init"):(n("Page size reset by host page"),wt("resetPage"))}function s(){u("resizeParent","Parent window resized")}function i(){return t.data.split("]")[1]}function h(){return"iFrameResize"in window}function c(){return t.data.split(":")[2]in{"true":1,"false":1}}if(r())if(!1===ni)switch(i()){case"reset":e();break;case"resize":s();break;default:h()||o("Unexpected message ("+t.data+")")}else c()?f():n('Ignored message of type "'+i()+'". Received before initialization.')}var d=!0,kt=10,dt="",g=0,s="",gt="",nt=!1,ir={resize:1,click:1},tt=128,ni=!0,h=1,it="offset",t=it,ti=!0,ii="",a={},f=32,rt=!1,v="[iFrameSizer]",ri=v.length,y="",ut=!1,rr={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},ft="child",ui="*",fi=window.parent,et=0,p=!1,ei=null,c=1,ot={offset:l,bodyOffset:l,bodyScroll:lt,documentElementOffset:at,scroll:b,documentElementScroll:b,max:yt,min:gi,grow:yt,lowestElement:nr};e(window,"message",tr)}();abp=abp||{},function(){abp.appPath=abp.appPath||"/";abp.pageLoadTime=new Date;abp.toAbsAppPath=function(n){return n.indexOf("/")==0&&(n=n.substring(1)),abp.appPath+n};abp.localization=abp.localization||{};abp.localization.localize=function(n,t){var r,u,i;return(t=t||abp.localization.defaultSourceName,r=abp.localization.values[t],!r)?(abp.log.warn("Could not find localization source: "+t),n):(u=r[n],u==undefined)?n:(i=Array.prototype.slice.call(arguments,0),i.splice(1,1),i[0]=u,abp.utils.formatString.apply(this,i))};abp.localization.getSource=function(n){return function(){var t=Array.prototype.slice.call(arguments,0);return t.splice(1,0,n),abp.localization.localize.apply(this,t)}};abp.localization.isCurrentCulture=function(n){return abp.localization.currentCulture&&abp.localization.currentCulture.name&&abp.localization.currentCulture.name.indexOf(n)==0};abp.localization.defaultSourceName=undefined;abp.localization.abpWeb=abp.localization.getSource("AbpWeb");abp.auth=abp.auth||{};abp.auth.allPermissions=abp.auth.allPermissions||{};abp.auth.grantedPermissions=abp.auth.grantedPermissions||{};abp.auth.hasPermission=function(n){return abp.auth.allPermissions[n]!=undefined&&abp.auth.grantedPermissions[n]!=undefined};abp.auth.hasAnyOfPermissions=function(){if(!arguments||arguments.length<=0)return!0;for(var n=0;n<arguments.length;n++)if(abp.auth.hasPermission(arguments[n]))return!0;return!1};abp.auth.hasAllOfPermissions=function(){if(!arguments||arguments.length<=0)return!0;for(var n=0;n<arguments.length;n++)if(!abp.auth.hasPermission(arguments[n]))return!1;return!0};abp.features=abp.features||{};abp.features.allFeatures=abp.features.allFeatures||{};abp.features.get=function(n){return abp.features.allFeatures[n]};abp.features.getValue=function(n){var t=abp.features.get(n);return t==undefined?undefined:t.value};abp.features.isEnabled=function(n){var t=abp.features.getValue(n);return t=="true"||t=="True"};abp.setting=abp.setting||{};abp.setting.values=abp.setting.values||{};abp.setting.get=function(n){return abp.setting.values[n]};abp.setting.getBoolean=function(n){var t=abp.setting.get(n);return t=="true"||t=="True"};abp.setting.getInt=function(n){return parseInt(abp.setting.values[n])};abp.log=abp.log||{};abp.log.levels={DEBUG:1,INFO:2,WARN:3,ERROR:4,FATAL:5};abp.log.level=abp.log.levels.DEBUG;abp.log.log=function(n,t){window.console&&window.console.log&&(t!=undefined&&t<abp.log.level||console.log(n))};abp.log.debug=function(n){abp.log.log("DEBUG: ",abp.log.levels.DEBUG);abp.log.log(n,abp.log.levels.DEBUG)};abp.log.info=function(n){abp.log.log("INFO: ",abp.log.levels.INFO);abp.log.log(n,abp.log.levels.INFO)};abp.log.warn=function(n){abp.log.log("WARN: ",abp.log.levels.WARN);abp.log.log(n,abp.log.levels.WARN)};abp.log.error=function(n){abp.log.log("ERROR: ",abp.log.levels.ERROR);abp.log.log(n,abp.log.levels.ERROR)};abp.log.fatal=function(n){abp.log.log("FATAL: ",abp.log.levels.FATAL);abp.log.log(n,abp.log.levels.FATAL)};abp.notify=abp.notify||{};abp.notify.success=function(){abp.log.warn("abp.notify.success is not implemented!")};abp.notify.info=function(){abp.log.warn("abp.notify.info is not implemented!")};abp.notify.warn=function(){abp.log.warn("abp.notify.warn is not implemented!")};abp.notify.error=function(){abp.log.warn("abp.notify.error is not implemented!")};abp.message=abp.message||{};var n=function(n,t){return(alert((t||"")+" "+n),!$)?(abp.log.warn("abp.message can not return promise since jQuery is not defined!"),null):$.Deferred(function(n){n.resolve()})};abp.message.info=function(t,i){return abp.log.warn("abp.message.info is not implemented!"),n(t,i)};abp.message.success=function(t,i){return abp.log.warn("abp.message.success is not implemented!"),n(t,i)};abp.message.warn=function(t,i){return abp.log.warn("abp.message.warn is not implemented!"),n(t,i)};abp.message.error=function(t,i){return abp.log.warn("abp.message.error is not implemented!"),n(t,i)};abp.message.confirm=function(n,t,i){abp.log.warn("abp.message.confirm is not implemented!");!t||typeof t=="string"||(i=t);var r=confirm(n);return(i&&i(r),!$)?(abp.log.warn("abp.message can not return promise since jQuery is not defined!"),null):$.Deferred(function(n){n.resolve()})};abp.ui=abp.ui||{};abp.ui.block=function(){abp.log.warn("abp.ui.block is not implemented!")};abp.ui.unblock=function(){abp.log.warn("abp.ui.unblock is not implemented!")};abp.ui.setBusy=function(){abp.log.warn("abp.ui.setBusy is not implemented!")};abp.ui.clearBusy=function(){abp.log.warn("abp.ui.clearBusy is not implemented!")};abp.event=function(){var n={},t=function(t,i){n[t]||(n[t]=[]);n[t].push(i)},i=function(t){var i=n[t],u,r;if(i&&i.length)for(u=Array.prototype.slice.call(arguments,1),r=0;r<i.length;r++)i[r].apply(this,u)};return{on:t,trigger:i}}();abp.utils=abp.utils||{};abp.utils.createNamespace=function(n,t){for(var r=t.split("."),i=0;i<r.length;i++)typeof n[r[i]]=="undefined"&&(n[r[i]]={}),n=n[r[i]];return n};abp.utils.formatString=function(){var t,n,i;if(arguments.length<1)return null;for(t=arguments[0],n=1;n<arguments.length;n++)i="{"+(n-1)+"}",t=t.replace(i,arguments[n]);return t}}();abp=abp||{},function(n){n&&(abp.ajax=function(t){t=t||{};var i=n.extend({},abp.ajax.defaultOpts,t);return i.success=undefined,i.error=undefined,n.Deferred(function(r){n.ajax(i).done(function(n){abp.ajax.handleResponse(n,t,r)}).fail(function(){r.reject.apply(this,arguments)})})},n.extend(abp.ajax,{defaultOpts:{dataType:"json",type:"POST",contentType:"application/json"},defaultError:{message:"Ajax request did not succeed!",details:"Error detail not sent by server."},logError:function(n){abp.log.error(n)},showError:function(n){return n.details?abp.message.error(n.details,n.message):abp.message.error(n.message)},handleTargetUrl:function(n){n?location.href=n:location.reload()},handleUnAuthorizedRequest:function(n,t){n?n.done(function(){localStorage.setItem("siteSettings",JSON.stringify({css:"styleLightShare",currentSiteUrl:window.location.href}));abp.ajax.handleTargetUrl(t)}):(localStorage.setItem("siteSettings",JSON.stringify({css:"styleLightShare",currentSiteUrl:window.location.href})),abp.ajax.handleTargetUrl(t))},handleResponse:function(n,t,i){if(n)if(n.success===!0)i&&i.resolve(n.result,n),t.success&&t.success(n.result,n),t.url==="/Account/Login"&&localStorage.siteSettings&&localStorage.siteSettings.currentSiteUrl?abp.ajax.handleTargetUrl(localStorage.siteSettings.currentSiteUrl):n.targetUrl&&abp.ajax.handleTargetUrl(n.targetUrl);else if(n.success===!1){var r=null;n.error?n.error.message!=="Captcha не валідна"&&(r=abp.ajax.showError(n.error)):n.error=abp.ajax.defaultError;abp.ajax.logError(n.error);i&&i.reject(n.error);t.error&&t.error(n.error);n.unAuthorizedRequest&&abp.ajax.handleUnAuthorizedRequest(r,n.targetUrl)}else i&&i.resolve(n),t.success&&t.success(n);else i&&i.resolve(),t.success&&t.success()},blockUI:function(n){n.blockUI&&(n.blockUI===!0?abp.ui.setBusy():abp.ui.setBusy(n.blockUI))},unblockUI:function(n){n.blockUI&&(n.blockUI===!0?abp.ui.clearBusy():abp.ui.clearBusy(n.blockUI))}}),n.fn.ajaxForm&&(n.fn.abpAjaxForm=function(t){t=t||{};var i=n.extend({},n.fn.abpAjaxForm.defaults,t);return i.beforeSubmit=function(){abp.ajax.blockUI(i);t.beforeSubmit&&t.beforeSubmit.apply(this,arguments)},i.success=function(n){abp.ajax.handleResponse(n,t)},i.complete=function(){abp.ajax.unblockUI(i);t.complete&&t.complete.apply(this,arguments)},this.ajaxForm(i)},n.fn.abpAjaxForm.defaults={method:"POST"}))}(jQuery);abp=abp||{},function(){if(toastr){toastr.options.positionClass="toast-bottom-right";var n=function(n,t,i){toastr[n](t,i)};abp.notify.success=function(t,i){n("success",t,i)};abp.notify.info=function(t,i){n("info",t,i)};abp.notify.warn=function(t,i){n("warning",t,i)};abp.notify.error=function(t,i){n("error",t,i)}}}();abp=abp||{},function(){$.blockUI&&($.extend($.blockUI.defaults,{message:" ",css:{},overlayCSS:{backgroundColor:"#AAA",opacity:.3,cursor:"wait"}}),abp.ui.block=function(n){n?$(n).block():$.blockUI()},abp.ui.unblock=function(n){n?$(n).unblock():$.unblockUI()})}();abp=abp||{},function(){$.fn.spin&&(abp.libs=abp.libs||{},abp.libs.spinjs={spinner_config:{lines:11,length:0,width:10,radius:20,corners:1,trail:60,speed:1.2},spinner_config_inner_busy_indicator:{lines:11,length:0,width:4,radius:7,corners:1,trail:60,speed:1.2}},abp.ui.setBusy=function(n,t){var i,r,u;t=t||{};(t.always||t["finally"])&&(t={promise:t});i=$.extend({},t);n?(r=$(n),u=r.find(".abp-busy-indicator"),u.length?u.spin(abp.libs.spinjs.spinner_config_inner_busy_indicator):(i.blockUI!=!1&&abp.ui.block(n),r.spin(abp.libs.spinjs.spinner_config))):(i.blockUI!=!1&&abp.ui.block(),$("body").spin(abp.libs.spinjs.spinner_config));i.promise&&(i.promise.always?i.promise.always(function(){abp.ui.clearBusy(n)}):i.promise["finally"]&&i.promise["finally"](function(){abp.ui.clearBusy(n)}))},abp.ui.clearBusy=function(n){if(n){var t=$(n),i=t.find(".abp-busy-indicator");i.length?i.spin(!1):(abp.ui.unblock(n),t.spin(!1))}else abp.ui.unblock(),$("body").spin(!1)})}(),function(n,t){function r(n,t){return t.length>n.length?!1:n.indexOf(t,n.length-t.length)!==-1}if(t){n.ng=n.ng||{};n.ng.http={defaultError:{message:"Ajax request did not succeed!",details:"Error detail not sent by server."},logError:function(t){n.log.error(t)},showError:function(t){return t.details?n.message.error(t.details,t.message):n.message.error(t.message)},handleTargetUrl:function(n){location.href=n},handleUnAuthorizedRequest:function(t,i){t?t.done(function(){i?n.ng.http.handleTargetUrl(i):location.reload()}):i?n.ng.http.handleTargetUrl(i):location.reload()},handleResponse:function(t,i){var r=t.data,u;r.success===!0?(t.data=r.result,i.resolve(t),r.targetUrl&&n.ng.http.handleTargetUrl(r.targetUrl)):r.success===!1&&(u=null,r.error?u=n.ng.http.showError(r.error):r.error=defaultError,n.ng.http.logError(r.error),t.data=r.error,i.reject(t),r.unAuthorizedRequest&&n.ng.http.handleUnAuthorizedRequest(u,r.targetUrl))}};var i=t.module("abp",[]);i.config(["$httpProvider",function(t){t.interceptors.push(["$q",function(t){return{request:function(t){return r(t.url,".cshtml")&&(t.url=n.appPath+"AbpAppView/Load?viewUrl="+t.url+"&_t="+n.pageLoadTime.getTime()),t},response:function(i){if(!i.config||!i.config.abp||!i.data)return i;var r=t.defer();return n.ng.http.handleResponse(i,r),r.promise},responseError:function(i){var r={message:i.data,details:i.statusText,responseError:!0};return n.ng.http.showError(r),n.ng.http.logError(r),t.reject(i)}}}])}])}}(abp||(abp={}),angular||undefined),function(n,t){"use strict";if(typeof define=="function"&&define.amd)define(["angular"],function(n){return t(n)});else return t(n)}(angular||null,function(n){"use strict";var t=n.module("ngTable",[]),i;return t.factory("ngTableParams",["$q","$log",function(t,i){var r=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};return function(u,f){var h=this,s=function(){e.debugMode&&i.debug&&i.debug.apply(this,arguments)},o,e;return this.data=[],this.parameters=function(t,i){var u,e,l,f,h,v,a,c;if(i=i||!1,n.isDefined(t)){for(u in t)if(e=t[u],i&&u.indexOf("[")>=0){for(l=u.split(/\[(.*)\]/).reverse(),f="",h=0,v=l.length;h<v;h++)a=l[h],a!==""&&(c=e,e={},e[f=a]=r(c)?parseFloat(c):c);f==="sorting"&&(o[f]={});o[f]=n.extend(o[f]||{},e[f])}else o[u]=r(t[u])?parseFloat(t[u]):t[u];return s("ngTable: set parameters",o),this}return o},this.settings=function(t){return n.isDefined(t)?(n.isArray(t.data)&&(t.total=t.data.length),e=n.extend(e,t),s("ngTable: set settings",e),this):e},this.page=function(t){return n.isDefined(t)?this.parameters({page:t}):o.page},this.total=function(t){return n.isDefined(t)?this.settings({total:t}):e.total},this.count=function(t){return n.isDefined(t)?this.parameters({count:t,page:1}):o.count},this.filter=function(t){return n.isDefined(t)?this.parameters({filter:t}):o.filter},this.sorting=function(t){if(arguments.length==2){var i={};return i[t]=arguments[1],this.parameters({sorting:i}),this}return n.isDefined(t)?this.parameters({sorting:t}):o.sorting},this.isSortBy=function(t,i){return n.isDefined(o.sorting[t])&&o.sorting[t]==i},this.orderBy=function(){var n=[];for(var t in o.sorting)n.push((o.sorting[t]==="asc"?"+":"-")+t);return n},this.getData=function(t,i){n.isArray(this.data)&&n.isObject(i)?t.resolve(this.data.slice((i.page()-1)*i.count(),i.page()*i.count())):t.resolve([])},this.getGroups=function(i,r){var u=t.defer();u.promise.then(function(t){var u={},f,e;n.forEach(t,function(t){var i=n.isFunction(r)?r(t):t[r];u[i]=u[i]||{data:[]};u[i].value=i;u[i].data.push(t)});f=[];for(e in u)f.push(u[e]);s("ngTable: refresh groups",f);i.resolve(f)});this.getData(u,h)},this.generatePagesArray=function(n,t,i){var h,o,s,e,u,f,r;if(h=11,f=[],u=Math.ceil(t/i),u>1){for(f.push({type:"prev",number:Math.max(1,n-1),active:n>1}),f.push({type:"first",number:1,active:n>1}),s=Math.round((h-5)/2),e=Math.max(2,n-s),o=Math.min(u-1,n+s*2-(n-e)),e=Math.max(2,e-(s*2-(o-e))),r=e;r<=o;)r===e&&r!==2||r===o&&r!==u-1?f.push({type:"more",active:!1}):f.push({type:"page",number:r,active:n!==r}),r++;f.push({type:"last",number:u,active:n!==u});f.push({type:"next",number:Math.min(u,n+1),active:n<u})}return f},this.url=function(t){var r,f,i,e,u,s;t=t||!1;r=t?[]:{};for(f in o)if(o.hasOwnProperty(f))if(i=o[f],e=encodeURIComponent(f),typeof i=="object")for(u in i)n.isUndefined(i[u])||i[u]===""||(s=e+"["+encodeURIComponent(u)+"]",t?r.push(s+"="+i[u]):r[s]=i[u]);else n.isFunction(i)||n.isUndefined(i)||i===""||(t?r.push(e+"="+encodeURIComponent(i)):r[e]=encodeURIComponent(i));return r},this.reload=function(){var i=t.defer(),n=this;e.$loading=!0;e.groupBy?e.getGroups(i,e.groupBy,this):e.getData(i,this);s("ngTable: reload data");i.promise.then(function(t){e.$loading=!1;s("ngTable: current scope",e.$scope);n.data=e.groupBy?e.$scope.$groups=t:e.$scope.$data=t;e.$scope.pages=n.generatePagesArray(n.page(),n.total(),n.count());e.$scope.$emit("ngTableAfterReloadData")})},this.reloadPages=function(){var n=this;e.$scope.pages=n.generatePagesArray(n.page(),n.total(),n.count())},o=this.$params={page:1,count:1,filter:{},sorting:{},group:{},groupBy:null},e={$scope:null,$loading:!1,data:null,total:0,defaultSort:"desc",filterDelay:750,counts:[10,25,50,100],getGroups:this.getGroups,getData:this.getData},this.settings(f),this.parameters(u,!0),this}}]),i=["$scope","ngTableParams","$timeout",function(t,i,r){t.$loading=!1;t.params||(t.params=new i);t.params.settings().$scope=t;var u=function(){var n=0;return function(t,i){r.cancel(n);n=r(t,i)}}();t.$watch("params.$params",function(i,r){t.params.settings().$scope=t;n.equals(i.filter,r.filter)?t.params.reload():u(function(){t.params.$params.page=1;t.params.reload()},t.params.settings().filterDelay)},!0);t.params.settings().$scope.scrollToTop=function(){$("html, body").animate({scrollTop:0},"fast")};t.sortBy=function(n,i){var r=t.parse(n.sortable);if(r){var u=t.params.settings().defaultSort,e=u==="asc"?"desc":"asc",o=t.params.sorting()&&t.params.sorting()[r]&&t.params.sorting()[r]===u,f=i.ctrlKey||i.metaKey?t.params.sorting():{};f[r]=o?e:u;t.params.parameters({sorting:f})}}}],t.directive("ngTable",["$compile","$q","$parse",function(t,r,u){return{restrict:"A",priority:1001,scope:!0,controller:i,compile:function(i){var r=[],s=0,f=null,e=!1,o=i.find("thead");if(n.forEach(n.element(i.find("tr")),function(t){t=n.element(t);t.hasClass("ng-table-group")||f||(f=t)}),f)return location.search&&location.search.substr(1,3)!="_ga"&&(e=!0),n.forEach(f.find("td"),function(t){var i=n.element(t);if((!i.attr("ignore-cell")||"true"!==i.attr("ignore-cell"))&&(!i.attr("ng-hide")||!e)){var o=function(n,t){return function(f){return u(i.attr("x-data-"+n)||i.attr("data-"+n)||i.attr(n))(f,{$columns:r})||t}},h=o("title"," "),a=o("header",!1),f=o("filter",!1)(),c=!1,l=!1;f&&f.$$name&&(l=f.$$name,delete f.$$name);f&&f.templateURL&&(c=f.templateURL,delete f.templateURL);i.attr("data-title-text",h());r.push({id:s++,title:h,sortable:o("sortable",!1),"class":i.attr("x-data-header-class")||i.attr("data-header-class")||i.attr("header-class"),filter:f,filterTemplateURL:c,filterName:l,headerTemplateURL:a,filterData:i.attr("filter-data")?i.attr("filter-data"):null,show:i.attr("ng-show")?function(n){return u(i.attr("ng-show"))(n)}:function(){return!0}})}}),function(i,f,e){if(i.$loading=!1,i.$columns=r,i.$watch(e.ngTable,function(t){n.isUndefined(t)||(i.paramsModel=u(e.ngTable),i.params=t)},!0),i.parse=function(t){return n.isDefined(t)?t(i):""},e.showFilter&&i.$parent.$watch(e.showFilter,function(n){i.show_filter=n}),n.forEach(r,function(t){var r;if(t.filterData){if(r=u(t.filterData)(i,{$column:t}),!(n.isObject(r)&&n.isObject(r.promise)))throw new Error("Function "+t.filterData+" must be instance of $q.defer()");return delete t.filterData,r.promise.then(function(i){n.isArray(i)||(i=[]);i.unshift({title:"-",id:""});t.data=i})}}),!f.hasClass("ng-table")){i.templates={header:e.templateHeader?e.templateHeader:"ng-table/header.html",pagination:e.templatePagination?e.templatePagination:"ng-table/pager.html"};var s=o.length>0?o:n.element(document.createElement("thead")).attr("ng-include","templates.header"),h=n.element(document.createElement("div")).attr({"ng-table-pagination":"params","template-url":"templates.pagination"}),c=n.element(document.createElement("div")).attr({"ng-table-pagination":"params","template-url":"templates.pagination"});f.find("thead").remove();f.addClass("ng-table").prepend(s).after(h);f.addClass("ng-table").prepend(s).before(c);t(s)(i);t(h)(i);t(c)(i)}}}}}]),t.directive("ngTablePagination",["$compile",function(t){return{restrict:"A",scope:{params:"=ngTablePagination",templateUrl:"="},replace:!1,link:function(i,r){i.params.settings().$scope.$on("ngTableAfterReloadData",function(){i.pages=i.params.generatePagesArray(i.params.page(),i.params.total(),i.params.count())},!0);i.$watch("templateUrl",function(u){if(!n.isUndefined(u)){var f=n.element(document.createElement("div"));f.attr({"ng-include":"templateUrl"});r.append(f);t(f)(i)}})}}}]),n.module("ngTable").run(["$templateCache",function(n){n.put("ng-table/filters/select-multiple.html",'<select ng-options="data.id as data.title for data in column.data" multiple ng-multiple="true" ng-model="params.filter()[name]" ng-show="filter==\'select-multiple\'" class="filter filter-select-multiple form-control" name="{{column.filterName}}"> <\/select>');n.put("ng-table/filters/select.html",'<select ng-options="data.id as data.title for data in column.data" ng-model="params.filter()[name]" ng-show="filter==\'select\'" class="filter filter-select form-control" name="{{column.filterName}}"> <\/select>');n.put("ng-table/filters/text.html",'<input type="text" name="{{column.filterName}}" ng-model="params.filter()[name]" ng-if="filter==\'text\'" class="input-filter form-control"/>');n.put("ng-table/header.html",'<tr> <th ng-repeat="column in $columns" ng-class="{ \'sortable\': parse(column.sortable), \'sort-asc\': params.sorting()[parse(column.sortable)]==\'asc\', \'sort-desc\': params.sorting()[parse(column.sortable)]==\'desc\' }" ng-click="sortBy(column, $event)" ng-show="column.show(this)" ng-init="template=column.headerTemplateURL(this)" class="header {{column.class}}"> <div ng-if="!template" ng-show="!template" ng-bind="parse(column.title)"><\/div> <div ng-if="template" ng-show="template"><div ng-include="template"><\/div><\/div> <\/th> <\/tr> <tr ng-show="show_filter" class="ng-table-filters"> <th ng-repeat="column in $columns" ng-show="column.show(this)" class="filter"> <div ng-repeat="(name, filter) in column.filter"> <div ng-if="column.filterTemplateURL" ng-show="column.filterTemplateURL"> <div ng-include="column.filterTemplateURL"><\/div> <\/div> <div ng-if="!column.filterTemplateURL" ng-show="!column.filterTemplateURL"> <div ng-include="\'ng-table/filters/\' + filter + \'.html\'"><\/div> <\/div> <\/div> <\/th> <\/tr>');n.put("ng-table/pager.html",'<div class="ng-table-pager"> <div ng-if="params.settings().counts.length" class="ng-table-counts btn-group pull-right"> <button ng-repeat="count in params.settings().counts" type="button" ng-class="{\'active\':params.count()==count}" ng-click="params.count(count)" class="btn btn-default"> <span ng-bind="count"><\/span> <\/button> <\/div> <ul class="pagination ng-table-pagination"> <li ng-class="{\'disabled\': !page.active}" ng-repeat="page in pages" ng-switch="page.type"> <a ng-switch-when="prev" ng-click="params.page(page.number); params.settings().$scope.scrollToTop();" href="">&laquo;<\/a> <a ng-switch-when="first" ng-click="params.page(page.number); params.settings().$scope.scrollToTop();" href=""><span ng-bind="page.number"><\/span><\/a> <a ng-switch-when="page" ng-click="params.page(page.number); params.settings().$scope.scrollToTop();" href=""><span ng-bind="page.number"><\/span><\/a> <a ng-switch-when="more" ng-click="params.page(page.number);" href="">&#8230;<\/a> <a ng-switch-when="last" ng-click="params.page(page.number); params.settings().$scope.scrollToTop();" href=""><span ng-bind="page.number"><\/span><\/a> <a ng-switch-when="next" ng-click="params.page(page.number); params.settings().$scope.scrollToTop();" href="">&raquo;<\/a> <\/li> <\/ul> <\/div> ')}]),t}),function(){function e(n,t){window.XMLHttpRequest.prototype[n]=t(window.XMLHttpRequest.prototype[n])}function o(n,t,i,f,e,o){function h(){return t[0].tagName.toLowerCase()==="input"&&t.attr("type")&&t.attr("type").toLowerCase()==="file"}function l(t){var l,a;if(!s){s=!0;try{var v=t.__files_||t.target&&t.target.files,h=[],y=[];for(l=0;l<v.length;l++)a=v.item(l),u(n,e,i,a,t)?h.push(a):y.push(a);r(e,o,n,f,i,c,h,y,t);h.length==0&&(t.target.value=h)}finally{s=!1}}}function a(r){var f,u;for(i.ngfMultiple&&r.attr("multiple",e(i.ngfMultiple)(n)),e(i.ngfMultiple)(n)||r.attr("multiple",undefined),i.accept&&r.attr("accept",i.accept),i.ngfCapture&&r.attr("capture",e(i.ngfCapture)(n)),i.ngfDisabled&&r.attr("disabled",e(i.ngfDisabled)(n)),f=0;f<t[0].attributes.length;f++)u=t[0].attributes[f],u.name!=="type"&&u.name!=="class"&&u.name!=="id"&&u.name!=="style"&&r.attr(u.name,u.value)}function v(){if(!t.attr("disabled")){var n=angular.element('<input type="file">');return a(n),h()?(t.replaceWith(n),t=n):(n.css("display","none").attr("tabindex","-1").attr("__ngf_gen__",!0),t.__ngf_ref_elem__&&t.__ngf_ref_elem__.remove(),t.__ngf_ref_elem__=n,document.body.appendChild(n[0])),n}}function y(t){r(e,o,n,f,i,c,[],[],t,!0)}function p(n){n.preventDefault();var i=v(n);if(i){i.bind("change",l);y(n);function r(){i[0].click();h()&&(t.bind("click touchend",p),n.preventDefault())}navigator.userAgent.toLowerCase().match(/android/)?setTimeout(function(){r()},0):r()}}var c=i.ngfChange||i.ngfSelect&&i.ngfSelect.indexOf("(")>0,s=!1;window.FileAPI&&window.FileAPI.ngfFixIE?window.FileAPI.ngfFixIE(t,v,a,l,y):t.bind("click touchend",p)}function s(n,t,f,e,o,s,h){function w(n,t,i){var s=!0,e=i.dataTransfer.items,f,r;if(e!=null)for(f=0;f<e.length&&s;f++)s=s&&(e[f].kind=="file"||e[f].kind=="")&&u(n,o,t,e[f],i);return r=o(t.ngfDragOverClass)(n,{$event:i}),r&&(r.delay&&(p=r.delay),r.accept&&(r=s?r.accept:r.reject)),r||t.ngfDragOverClass||"dragover"}function b(t,i,r,e){function y(i){u(n,o,f,i,t)?l.push(i):k.push(i)}function g(n,t,i){var f,e,r,u;t!=null&&(t.isDirectory?(f=(i||"")+t.name,y({name:t.name,type:"directory",path:f}),e=t.createReader(),r=[],a++,u=function(){e.readEntries(function(f){try{if(f.length)r=r.concat(Array.prototype.slice.call(f||[],0)),u();else{for(var e=0;e<r.length;e++)g(n,r[e],(i?i:"")+t.name+"/");a--}}catch(o){a--;console.error(o)}},function(){a--})},u()):(a++,t.file(function(n){try{a--;n.path=(i?i:"")+n.name;y(n)}catch(t){a--;console.error(t)}},function(){a--})))}var l=[],k=[],v=t.dataTransfer.items,a=0,p,b,w,c,d;if(v&&v.length>0&&h.protocol()!="file")for(c=0;c<v.length;c++){if(v[c].webkitGetAsEntry&&v[c].webkitGetAsEntry()&&v[c].webkitGetAsEntry().isDirectory){if(p=v[c].webkitGetAsEntry(),p.isDirectory&&!r)continue;p!=null&&g(l,p)}else b=v[c].getAsFile(),b!=null&&y(b);if(!e&&l.length>0)break}else if(w=t.dataTransfer.files,w!=null)for(c=0;c<w.length;c++)if(y(w.item(c)),!e&&l.length>0)break;d=0,function nt(n){s(function(){if(a)d++*10<2e4&&nt(10);else{if(!e&&l.length>1){for(c=0;l[c].type=="directory";)c++;l=[l[c]]}i(l,k)}},n||0)}()}var a=i();if(f.dropAvailable&&s(function(){n[f.dropAvailable]?n[f.dropAvailable].value=a:n[f.dropAvailable]=a}),!a){o(f.ngfHideOnDropNotAvailable)(n)==!0&&t.css("display","none");return}var y=null,v=o(f.ngfStopPropagation),p=1,k=o(f.ngfAccept),l=o(f.ngfDisabled),c;t[0].addEventListener("dragover",function(i){if(!l(n)){if(i.preventDefault(),v(n)&&i.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var r=i.dataTransfer.effectAllowed;i.dataTransfer.dropEffect="move"===r||"linkMove"===r?"move":"copy"}s.cancel(y);n.actualDragOverClass||(c=w(n,f,i));t.addClass(c)}},!1);t[0].addEventListener("dragenter",function(t){l(n)||(t.preventDefault(),v(n)&&t.stopPropagation())},!1);t[0].addEventListener("dragleave",function(){l(n)||(y=s(function(){t.removeClass(c);c=null},p||1))},!1);t[0].addEventListener("drop",function(i){l(n)||(i.preventDefault(),v(n)&&i.stopPropagation(),t.removeClass(c),c=null,b(i,function(t,u){r(o,s,n,e,f,f.ngfChange||f.ngfDrop&&f.ngfDrop.indexOf("(")>0,t,u,i)},o(f.ngfAllowDir)(n)!=!1,f.multiple||o(f.ngfMultiple)(n)))},!1)}function i(){var n=document.createElement("div");return"draggable"in n&&"ondrop"in n}function r(n,t,i,r,u,f,e,o,s,h){function c(){r&&(n(u.ngModel).assign(i,e),t(function(){r&&r.$setViewValue(e!=null&&e.length==0?null:e)}));u.ngModelRejected&&n(u.ngModelRejected).assign(i,o);f&&n(f)(i,{$files:e,$rejectedFiles:o,$event:s})}h?c():t(function(){c()})}function u(n,t,i,r,u){var c=t(i.ngfAccept),o=t(i.ngfMaxSize)(n)||9007199254740991,l=t(i.ngfMinSize)(n)||-1,e=c(n,{$file:r,$event:u}),h=!1,s;return e!=null&&angular.isString(e)&&(s=new RegExp(f(e),"gi"),h=r.type!=null&&r.type.match(s)||r.name!=null&&r.name.match(s)),window.abp&&r.size>=o&&window.abp.notify.error(abp.localization.values.Shared.FileSizeMustNotExceed+" "+(o/1048576).toFixed(0)+"MB"),(e==null||h)&&(r.size==null||r.size<o&&r.size>l)}function f(n){var i,t,r;if(n.length>2&&n[0]==="/"&&n[n.length-1]==="/")return n.substring(1,n.length-1);if(i=n.split(","),t="",i.length>1)for(r=0;r<i.length;r++)t+="("+f(i[r])+")",r<i.length-1&&(t+="|");else n.indexOf(".")==0&&(n="*"+n),t="^"+n.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$",t=t.replace(/\\\*/g,".*").replace(/\\\?/g,".");return t}var n,t;window.XMLHttpRequest&&!window.XMLHttpRequest.__isFileAPIShim&&e("setRequestHeader",function(n){return function(t,i){if(t==="__setXHR_"){var r=i(this);r instanceof Function&&r(this)}else n.apply(this,arguments)}});t=angular.module("ngFileUpload",[]);t.version="4.0.3";t.service("Upload",["$http","$q","$timeout",function(t,i,r){function u(n){n.method=n.method||"POST";n.headers=n.headers||{};n.transformRequest=n.transformRequest||function(n,i){return window.ArrayBuffer&&n instanceof window.ArrayBuffer?n:t.defaults.transformRequest[0](n,i)};var f=i.defer(),u=f.promise;return n.headers.__setXHR_=function(){return function(t){t&&(n.__XHR=t,n.xhrFn&&n.xhrFn(t),t.upload.addEventListener("progress",function(t){t.config=n;f.notify?f.notify(t):u.progress_fn&&r(function(){u.progress_fn(t)})},!1),t.upload.addEventListener("load",function(t){t.lengthComputable&&(t.config=n,f.notify?f.notify(t):u.progress_fn&&r(function(){u.progress_fn(t)}))},!1))}},t(n).then(function(n){f.resolve(n)},function(n){f.reject(n)},function(n){f.notify(n)}),u.success=function(t){return u.then(function(i){t(i.data,i.status,i.headers,n)}),u},u.error=function(t){return u.then(null,function(i){t(i.data,i.status,i.headers,n)}),u},u.progress=function(n){return u.progress_fn=n,u.then(null,null,function(t){n(t)}),u},u.abort=function(){return n.__XHR&&r(function(){n.__XHR.abort()}),u},u.xhr=function(t){return n.xhrFn=function(n){return function(){n&&n.apply(u,arguments);t.apply(u,arguments)}}(n.xhrFn),u},u}this.upload=function(t){return t.headers=t.headers||{},t.headers["Content-Type"]=undefined,t.transformRequest=t.transformRequest?angular.isArray(t.transformRequest)?t.transformRequest:[t.transformRequest]:[],t.transformRequest.push(function(i){var f=new FormData,u={},r,o,s,e;for(n in t.fields)t.fields.hasOwnProperty(n)&&(u[n]=t.fields[n]);if(i&&(u.data=i),t.formDataAppender)for(n in u)u.hasOwnProperty(n)&&t.formDataAppender(f,n,u[n]);else for(n in u)u.hasOwnProperty(n)&&(r=u[n],r!==undefined&&(angular.isDate(r)&&(r=r.toISOString()),angular.isString(r)?f.append(n,r):t.sendObjectsAsJsonBlob&&angular.isObject(r)?f.append(n,new Blob([r],{type:"application/json"})):f.append(n,JSON.stringify(r))));if(t.file!=null)if(o=t.fileFormDataName||"file",angular.isArray(t.file))for(s=angular.isString(o),e=0;e<t.file.length;e++)f.append(s?o:o[e],t.file[e],t.fileName&&t.fileName[e]||t.file[e].name);else f.append(o,t.file,t.fileName||t.file.name);return f}),u(t)};this.http=function(n){return u(n)}}]);t.directive("ngfSelect",["$parse","$timeout","$compile",function(n,t,i){return{restrict:"AEC",require:"?ngModel",link:function(r,u,f,e){o(r,u,f,e,n,t,i)}}}]);t.directive("ngfDrop",["$parse","$timeout","$location",function(n,t,i){return{restrict:"AEC",require:"?ngModel",link:function(r,u,f,e){s(r,u,f,e,n,t,i)}}}]);t.directive("ngfNoFileDrop",function(){return function(n,t){i()&&t.css("display","none")}});t.directive("ngfDropAvailable",["$parse","$timeout",function(n,t){return function(r,u,f){if(i()){var e=n(f.ngfDropAvailable);t(function(){e(r);e.assign&&e.assign(r,!0)})}}}]);t.directive("ngfThumbnail",["$parse","$timeout",function(n,t){return{restrict:"AE",link:function(n,i,r){window.FileReader&&n.$watch(r.ngfThumbnail,function(n){n&&n.type.indexOf("image")>-1?t(function(){var r=new FileReader;r.readAsDataURL(n);r.onload=function(n){t(function(){i.attr("src",n.target.result)})}}):i.attr("src","")})}}}])}(),function(){function t(n,t){window.XMLHttpRequest.prototype[n]=t(window.XMLHttpRequest.prototype[n])}var i=function(){try{var n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(n)return!0}catch(t){if(navigator.mimeTypes["application/x-shockwave-flash"]!=undefined)return!0}return!1},r;if(window.XMLHttpRequest&&!window.FormData||window.FileAPI&&FileAPI.forceLoad){r=function(n){if(!n.__listeners){n.upload||(n.upload={});n.__listeners=[];var t=n.upload.addEventListener;n.upload.addEventListener=function(i,r){n.__listeners[i]=r;t&&t.apply(this,arguments)}}};t("open",function(n){return function(t,i,u){r(this);this.__url=i;try{n.apply(this,[t,i,u])}catch(f){f.message.indexOf("Access is denied")>-1&&(this.__origError=f,n.apply(this,[t,"_fix_for_ie_crossdomain__",u]))}}});t("getResponseHeader",function(n){return function(t){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(t):n==null?null:n.apply(this,[t])}});t("getAllResponseHeaders",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():n==null?null:n.apply(this)}});t("abort",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():n==null?null:n.apply(this)}});t("setRequestHeader",function(n){return function(t,i){if(t==="__setXHR_"){r(this);var u=i(this);u instanceof Function&&u(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=i,n.apply(this,arguments)}});function n(n,t,i){try{Object.defineProperty(n,t,{get:i})}catch(r){}}t("send",function(t){return function(){var r=this,o,f,e,u;if(arguments[0]&&arguments[0].__isFileAPIShim){for(o=arguments[0],f={url:r.__url,jsonp:!1,cache:!0,complete:function(t,i){r.__completed=!0;!t&&r.__listeners.load&&r.__listeners.load({type:"load",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0});!t&&r.__listeners.loadend&&r.__listeners.loadend({type:"loadend",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0});t==="abort"&&r.__listeners.abort&&r.__listeners.abort({type:"abort",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0});i.status!==undefined&&n(r,"status",function(){return i.status==0&&t&&t!=="abort"?500:i.status});i.statusText!==undefined&&n(r,"statusText",function(){return i.statusText});n(r,"readyState",function(){return 4});i.response!==undefined&&n(r,"response",function(){return i.response});var u=i.responseText||(t&&i.status==0&&t!=="abort"?t:undefined);n(r,"responseText",function(){return u});n(r,"response",function(){return u});t&&n(r,"err",function(){return t});r.__fileApiXHR=i;r.onreadystatechange&&r.onreadystatechange();r.onload&&r.onload()},fileprogress:function(n){if(n.target=r,r.__listeners.progress&&r.__listeners.progress(n),r.__total=n.total,r.__loaded=n.loaded,n.total===n.loaded){var t=this;setTimeout(function(){r.__completed||(r.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))},FileAPI.noContentTimeout||1e4)}},headers:r.__requestHeaders},f.data={},f.files={},e=0;e<o.data.length;e++)u=o.data[e],u.val!=null&&u.val.name!=null&&u.val.size!=null&&u.val.type!=null?f.files[u.key]=u.val:f.data[u.key]=u.val;setTimeout(function(){if(!i())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';r.__fileApiXHR=FileAPI.upload(f)},1)}else{if(this.__origError)throw this.__origError;t.apply(r,arguments)}}});window.XMLHttpRequest.__isFileAPIShim=!0;function u(n){return n[0].tagName.toLowerCase()==="input"&&n.attr("type")&&n.attr("type").toLowerCase()==="file"}window.FormData=FormData=function(){return{append:function(n,t,i){t.__isFileAPIBlobShim&&(t=t.data[0]);this.data.push({key:n,val:t,name:i})},data:[],__isFileAPIShim:!0}};window.Blob=Blob=function(n){return{data:n,__isFileAPIBlobShim:!0}},function(){if(window.FileAPI||(window.FileAPI={}),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var f,n,e=document.createElement("script"),o=document.getElementsByTagName("script"),t,r,u;if(window.FileAPI.jsUrl)f=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)n=window.FileAPI.jsPath;else for(t=0;t<o.length;t++)if(u=o[t].src,r=u.search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/),r>-1){n=u.substring(0,r+1);break}FileAPI.staticPath==null&&(FileAPI.staticPath=n);e.setAttribute("src",f||n+"FileAPI.min.js");document.getElementsByTagName("head")[0].appendChild(e);FileAPI.hasFlash=i()}}();FileAPI.ngfFixIE=function(n,t,r,f){var e,o;if(!i())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';e=function(){function s(n){var t,i;if(t=i=0,n.offsetParent)do t+=n.offsetLeft,i+=n.offsetTop;while(n=n.offsetParent);return{left:t,top:i}}if(n.attr("disabled"))n.__ngf_elem__.removeClass("js-fileapi-wrapper");else{var i=n.__ngf_elem__;i?r(n.__ngf_elem__):(i=n.__ngf_elem__=t(),i.addClass("js-fileapi-wrapper"),!u(n),setTimeout(function(){i.bind("mouseenter",e)},10),i.bind("change",function(n){o.apply(this,[n]);f.apply(this,[n])}));u(n)||i.css("position","absolute").css("top",s(n[0]).top+"px").css("left",s(n[0]).left+"px").css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",n.css("display")).css("overflow","hidden").css("z-index","900000")}};n.bind("mouseenter",e);o=function(n){for(var t=FileAPI.getFiles(n),i=0;i<t.length;i++)t[i].size===undefined&&(t[i].size=0),t[i].name===undefined&&(t[i].name="file"),t[i].type===undefined&&(t[i].type="undefined");n.target||(n.target={});n.target.files=t;n.target.files!=t&&(n.__files_=t);(n.__files_||n.target.files).item=function(t){return(n.__files_||n.target.files)[t]||null}}};FileAPI.disableFileInput=function(n,t){t?n.removeClass("js-fileapi-wrapper"):n.addClass("js-fileapi-wrapper")}}window.FileReader||(window.FileReader=function(){var n=this,r=!1,t,i;this.listeners={};this.addEventListener=function(t,i){n.listeners[t]=n.listeners[t]||[];n.listeners[t].push(i)};this.removeEventListener=function(t,i){n.listeners[t]&&n.listeners[t].splice(n.listeners[t].indexOf(i),1)};this.dispatchEvent=function(t){var r=n.listeners[t.type],i;if(r)for(i=0;i<r.length;i++)r[i].call(n,t)};this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;t=function(t,i){var r={type:t,target:n,loaded:i.loaded,total:i.total,error:i.error};return i.result!=null&&(r.target.result=i.result),r};i=function(i){var u;r||(r=!0,n.onloadstart&&n.onloadstart(t("loadstart",i)));i.type==="load"?(n.onloadend&&n.onloadend(t("loadend",i)),u=t("load",i),n.onload&&n.onload(u),n.dispatchEvent(u)):i.type==="progress"?(u=t("progress",i),n.onprogress&&n.onprogress(u),n.dispatchEvent(u)):(u=t("error",i),n.onerror&&n.onerror(u),n.dispatchEvent(u))};this.readAsArrayBuffer=function(n){FileAPI.readAsBinaryString(n,i)};this.readAsBinaryString=function(n){FileAPI.readAsBinaryString(n,i)};this.readAsDataURL=function(n){FileAPI.readAsDataURL(n,i)};this.readAsText=function(n){FileAPI.readAsText(n,i)}})}(),function(n,t){"use strict";var u=["ng","oc.lazyLoad"],r={},l=[],i=[],a=[],e=[],o=n.noop,s={},c=[],y=n.module("oc.lazyLoad",["ng"]),v,h,f;y.provider("$ocLazyLoad",["$controllerProvider","$provide","$compileProvider","$filterProvider","$injector","$animateProvider",function(v,y,p,w,b,k){function ft(t,i,r){var l,e,h,v,y,p;if(i){for(v=[],l=i.length-1;l>=0;l--)if(e=i[l],n.isString(e)||(e=ht(e)),e&&c.indexOf(e)===-1&&(!d[e]||a.indexOf(e)!==-1)){if(y=u.indexOf(e)===-1,h=f(e),y&&(u.push(e),ft(t,h.requires,r)),h._runBlocks.length>0)for(s[e]=[];h._runBlocks.length>0;)s[e].push(h._runBlocks.shift());n.isDefined(s[e])&&(y||r.rerun)&&(v=v.concat(s[e]));nt(t,h._invokeQueue,e,r.reconfig);nt(t,h._configBlocks,e,r.reconfig);o(y?"ocLazyLoad.moduleLoaded":"ocLazyLoad.moduleReloaded",e);i.pop();c.push(e)}p=t.getInstanceInjector();n.forEach(v,function(n){p.invoke(n)})}}function st(t,i){function c(t,i){var r=!0,u;return i.length&&(u=h(t),n.forEach(i,function(n){r=r&&h(n)!==u})),r}function h(t){return n.isArray(t)?tt(t.toString()):n.isObject(t)?tt(ut(t)):n.isDefined(t)&&t!==null?tt(t.toString()):t}var f=t[2][0],u=t[1],s=!1,e;if(n.isUndefined(r[i])&&(r[i]={}),n.isUndefined(r[i][u])&&(r[i][u]={}),e=function(n,t){r[i][u].hasOwnProperty(n)||(r[i][u][n]=[]);c(t,r[i][u][n])&&(s=!0,r[i][u][n].push(t),o("ocLazyLoad.componentLoaded",[i,u,n]))},n.isString(f))e(f,t[2][1]);else if(n.isObject(f))n.forEach(f,function(t,i){n.isString(t)?e(t,f[1]):e(i,t)});else return!1;return s}function nt(t,i,r,u){var s,c,f,e,a,h,o,v;if(i)for(s=0,c=i.length;s<c;s++)if(f=i[s],n.isArray(f)){if(t!==null)if(t.hasOwnProperty(f[0]))e=t[f[0]];else throw new Error("unsupported provider "+f[0]);if(a=st(f,r),f[1]!=="invoke")a&&n.isDefined(e)&&e[f[1]].apply(e,f[2]);else if(h=function(t){var i=l.indexOf(r+"-"+t);(i===-1||u)&&(i===-1&&l.push(r+"-"+t),n.isDefined(e)&&e[f[1]].apply(e,f[2]))},n.isFunction(f[2][0]))h(f[2][0]);else if(n.isArray(f[2][0]))for(o=0,v=f[2][0].length;o<v;o++)n.isFunction(f[2][0][o])&&h(f[2][0][o])}}function ht(t){var i=null;return n.isString(t)?i=t:n.isObject(t)&&t.hasOwnProperty("name")&&n.isString(t.name)&&(i=t.name),i}function ct(t){if(!n.isString(t))return!1;try{return f(t)}catch(i){if(/No module/.test(i)||i.message.indexOf("$injector:nomod")>-1)return!1}}var d={},et={$controllerProvider:v,$compileProvider:p,$filterProvider:w,$provide:y,$injector:b,$animateProvider:k},it=!1,ot=!0,g=[],rt={},ut,tt;g.push=function(n){this.indexOf(n)===-1&&Array.prototype.push.apply(this,arguments)};this.config=function(t){n.isDefined(t.modules)&&(n.isArray(t.modules)?n.forEach(t.modules,function(n){d[n.name]=n}):d[t.modules.name]=t.modules);n.isDefined(t.debug)&&(it=t.debug);n.isDefined(t.events)&&(ot=t.events)};this._init=function(r){var s;if(i.length===0){var h=[r],o=["ng:app","ng-app","x-ng-app","data-ng-app"],c=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/,f=function(n){return n&&h.push(n)};n.forEach(o,function(t){o[t]=!0;f(document.getElementById(t));t=t.replace(":","\\:");typeof r[0]!="undefined"&&r[0].querySelectorAll&&(n.forEach(r[0].querySelectorAll("."+t),f),n.forEach(r[0].querySelectorAll("."+t+"\\:"),f),n.forEach(r[0].querySelectorAll("["+t+"]"),f))});n.forEach(h,function(t){if(i.length===0){var f=" "+r.className+" ",u=c.exec(f);u?i.push((u[2]||"").replace(/\s+/g,",")):n.forEach(t.attributes,function(n){i.length===0&&o[n.name]&&i.push(n.value)})}})}i.length!==0||(t.jasmine||t.mocha)&&n.isDefined(n.mock)||console.error("No module found during bootstrap, unable to init ocLazyLoad. You should always use the ng-app directive or angular.boostrap when you use ocLazyLoad.");s=function s(t){if(u.indexOf(t)===-1){u.push(t);var i=n.module(t);nt(null,i._invokeQueue,t);nt(null,i._configBlocks,t);n.forEach(i.requires,s)}};n.forEach(i,function(n){s(n)});i=[];e.pop()};ut=function(t){try{return JSON.stringify(t)}catch(r){var i=[];return JSON.stringify(t,function(t,r){if(n.isObject(r)&&r!==null){if(i.indexOf(r)!==-1)return;i.push(r)}return r})}};tt=function(n){var t=0,i,r,u;if(n.length==0)return t;for(i=0,u=n.length;i<u;i++)r=n.charCodeAt(i),t=(t<<5)-t+r|0;return t};this.$get=["$log","$rootElement","$rootScope","$cacheFactory","$q",function(t,s,l,a,v){function p(n){var i=v.defer();return t.error(n.message),i.reject(n),i.promise}var y,w=a("ocLazyLoad");return it||(t={},t.error=n.noop,t.warn=n.noop,t.info=n.noop),et.getInstanceInjector=function(){return y?y:y=s.data("$injector")||n.injector()},o=function(n,i){ot&&l.$broadcast(n,i);it&&t.info(n,i)},{_broadcast:o,_$log:t,_getFilesCache:function(){return w},toggleWatch:function(n){n?e.push(!0):e.pop()},getModuleConfig:function(t){if(!n.isString(t))throw new Error("You need to give the name of the module to get");return d[t]?n.copy(d[t]):null},setModuleConfig:function(t){if(!n.isObject(t))throw new Error("You need to give the module config object to set");return d[t.name]=t,t},getModules:function(){return u},isLoaded:function(t){var f=function(n){var t=u.indexOf(n)>-1;return t||(t=!!ct(n)),t},i,r;if(n.isString(t)&&(t=[t]),n.isArray(t)){for(i=0,r=t.length;i<r;i++)if(!f(t[i]))return!1;return!0}throw new Error("You need to define the module(s) name(s)");},_getModuleName:ht,_getModule:function(n){try{return f(n)}catch(t){(/No module/.test(t)||t.message.indexOf("$injector:nomod")>-1)&&(t.message='The module "'+ut(n)+'" that you are trying to load does not exist. '+t.message);throw t;}},moduleExists:ct,_loadDependencies:function(t,i){var e,o,u,f=[],r=this;if(t=r._getModuleName(t),t===null)return v.when();try{e=r._getModule(t)}catch(s){return p(s)}return o=r.getRequires(e),n.forEach(o,function(e){var s,o;if(n.isString(e)){if(s=r.getModuleConfig(e),s===null){g.push(e);return}e=s;s.name=undefined}if(r.moduleExists(e.name)){if(u=e.files.filter(function(n){return r.getModuleConfig(e.name).files.indexOf(n)<0}),u.length!==0&&r._$log.warn('Module "',t,'" attempted to redefine configuration for dependency. "',e.name,'"\n Additional Files Loaded:',u),n.isDefined(r.filesLoader))f.push(r.filesLoader(e,i).then(function(){return r._loadDependencies(e)}));else return p(new Error("Error: New dependencies need to be loaded from external files ("+e.files+"), but no loader has been defined."));return}if(n.isArray(e)?(o=[],n.forEach(e,function(n){var t=r.getModuleConfig(n);t===null?o.push(n):t.files&&(o=o.concat(t.files))}),o.length>0&&(e={files:o})):n.isObject(e)&&e.hasOwnProperty("name")&&e.name&&(r.setModuleConfig(e),g.push(e.name)),n.isDefined(e.files)&&e.files.length!==0)if(n.isDefined(r.filesLoader))f.push(r.filesLoader(e,i).then(function(){return r._loadDependencies(e)}));else return p(new Error('Error: the module "'+e.name+'" is defined in external files ('+e.files+"), but no loader has been defined."))}),v.all(f)},inject:function(t){var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],s=arguments.length<=2||arguments[2]===undefined?!1:arguments[2],f=this,u=v.defer(),e,h,o;if(n.isDefined(t)&&t!==null){if(n.isArray(t))return e=[],n.forEach(t,function(n){e.push(f.inject(n,r,s))}),v.all(e);f._addToLoadList(f._getModuleName(t),!0,s)}if(i.length>0)h=i.slice(),o=function o(n){g.push(n);rt[n]=u.promise;f._loadDependencies(n,r).then(function(){try{c=[];ft(et,g,r)}catch(n){f._$log.error(n.message);u.reject(n);return}i.length>0?o(i.shift()):u.resolve(h)},function(n){u.reject(n)})},o(i.shift());else{if(r&&r.name&&rt[r.name])return rt[r.name];u.resolve()}return u.promise},getRequires:function(t){var i=[];return n.forEach(t.requires,function(n){u.indexOf(n)===-1&&i.push(n)}),i},_invokeQueue:nt,_registerInvokeList:st,_register:ft,_addToLoadList:h,_unregister:function(t){n.isDefined(t)&&n.isArray(t)&&n.forEach(t,function(n){r[n]=undefined})}}}];this._init(n.element(t.document))}]);v=n.bootstrap;n.bootstrap=function(t,i,r){return n.forEach(i.slice(),function(n){h(n,!0,!0)}),v(t,i,r)};h=function(t,r,u){(e.length>0||r)&&n.isString(t)&&i.indexOf(t)===-1&&(i.push(t),u&&a.push(t))};f=n.module;n.module=function(n,t,i){return h(n,!1,!0),f(n,t,i)};typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports="oc.lazyLoad")}(angular,window),function(n){"use strict";n.module("oc.lazyLoad").directive("ocLazyLoad",["$ocLazyLoad","$compile","$animate","$parse","$timeout",function(t,i,r,u){return{restrict:"A",terminal:!0,priority:1e3,compile:function(f){var e=f[0].innerHTML;return f.html(""),function(f,o,s){var h=u(s.ocLazyLoad);f.$watch(function(){return h(f)||s.ocLazyLoad},function(u){n.isDefined(u)&&t.load(u).then(function(){r.enter(e,o);i(o.contents())(f)})},!0)}}}}])}(angular),function(n){"use strict";n.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q","$window","$interval",function(t,i,r,u){var e=!1,f=!1,o=r.document.getElementsByTagName("head")[0]||r.document.getElementsByTagName("body")[0];return t.buildElement=function(s,h,c){var v=i.defer(),l,d,y=t._getFilesCache(),g=function(n){var t=(new Date).getTime();return n.indexOf("?")>=0?n.substring(0,n.length-1)==="&"?n+"_dc="+t:n+"&_dc="+t:n+"?_dc="+t},p,w,a,b,nt,tt,k,it,rt;n.isUndefined(y.get(h))&&y.put(h,v.promise);switch(s){case"css":l=r.document.createElement("link");l.type="text/css";l.rel="stylesheet";l.href=c.cache===!1?g(h):h;break;case"js":l=r.document.createElement("script");l.src=c.cache===!1?g(h):h;break;default:y.remove(h);v.reject(new Error('Requested type "'+s+'" is not known. Could not inject "'+h+'"'))}return l.onload=l.onreadystatechange=function(){l.readyState&&!/^c|loade/.test(l.readyState)||d||(l.onload=l.onreadystatechange=null,d=1,t._broadcast("ocLazyLoad.fileLoaded",h),v.resolve(l))},l.onerror=function(){y.remove(h);v.reject(new Error("Unable to load "+h))},l.async=c.serie?0:1,p=o.lastChild,c.insertBefore&&(w=n.element(n.isDefined(window.jQuery)?c.insertBefore:document.querySelector(c.insertBefore)),w&&w.length>0&&(p=w[0])),p.parentNode.insertBefore(l,p),s=="css"&&(e||(a=r.navigator.userAgent.toLowerCase(),/iP(hone|od|ad)/.test(r.navigator.platform)?(b=r.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),nt=parseFloat([parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3]||0,10)].join(".")),f=nt<6):a.indexOf("android")>-1?(tt=parseFloat(a.slice(a.indexOf("android")+8)),f=tt<4.4):a.indexOf("safari")>-1&&(k=a.match(/version\/([\.\d]+)/i),f=k&&k[1]&&parseFloat(k[1])<6)),f&&(it=1e3,rt=u(function(){try{l.sheet.cssRules;u.cancel(rt);l.onload()}catch(n){--it<=0&&l.onerror()}},20))),v.promise},t}])}])}(angular),function(n){"use strict";n.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,i){return t.filesLoader=function(r){var u=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],e=[],o=[],s=[],f=[],h=null,w=t._getFilesCache(),v,c,l,a,y,p;return t.toggleWatch(!0),n.extend(u,r),v=function(i){var r=null,c;if(n.isObject(i)&&(r=i.type,i=i.path),h=w.get(i),n.isUndefined(h)||u.cache===!1){if((c=/^(css|less|html|htm|js)?(?=!)/.exec(i))!==null&&(r=c[1],i=i.substr(c[1].length+1,i.length)),!r)if((c=/[.](css|less|html|htm|js)?((\?|#).*)?$/.exec(i))!==null)r=c[1];else if(!t.jsLoader.hasOwnProperty("ocLazyLoadLoader")&&t.jsLoader.hasOwnProperty("requirejs"))r="js";else{t._$log.error("File type could not be determined. "+i);return}(r==="css"||r==="less")&&e.indexOf(i)===-1?e.push(i):(r==="html"||r==="htm")&&o.indexOf(i)===-1?o.push(i):r==="js"||s.indexOf(i)===-1?s.push(i):t._$log.error("File type is not valid. "+i)}else h&&f.push(h)},u.serie?v(u.files.shift()):n.forEach(u.files,function(n){v(n)}),e.length>0&&(c=i.defer(),t.cssLoader(e,function(i){n.isDefined(i)&&t.cssLoader.hasOwnProperty("ocLazyLoadLoader")?(t._$log.error(i),c.reject(i)):c.resolve()},u),f.push(c.promise)),o.length>0&&(l=i.defer(),t.templatesLoader(o,function(i){n.isDefined(i)&&t.templatesLoader.hasOwnProperty("ocLazyLoadLoader")?(t._$log.error(i),l.reject(i)):l.resolve()},u),f.push(l.promise)),s.length>0&&(a=i.defer(),t.jsLoader(s,function(i){n.isDefined(i)&&(t.jsLoader.hasOwnProperty("ocLazyLoadLoader")||t.jsLoader.hasOwnProperty("requirejs"))?(t._$log.error(i),a.reject(i)):a.resolve()},u),f.push(a.promise)),f.length===0?(y=i.defer(),p="Error: no file to load has been found, if you're trying to load an existing module you should use the 'inject' method instead of 'load'.",t._$log.error(p),y.reject(p),y.promise):u.serie&&u.files.length>0?i.all(f).then(function(){return t.filesLoader(r,u)}):i.all(f)["finally"](function(n){return t.toggleWatch(!1),n})},t.load=function(r){var v=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],o=this,u=null,c=[],e=i.defer(),h,f=n.copy(r),l=n.copy(v),a,s;return n.isArray(f)?(n.forEach(f,function(n){c.push(o.load(n,l))}),i.all(c).then(function(n){e.resolve(n)},function(n){e.reject(n)}),e.promise):(n.isString(f)?(u=o.getModuleConfig(f),u||(u={files:[f]})):n.isObject(f)&&(u=n.isDefined(f.path)&&n.isDefined(f.type)?{files:[f]}:o.setModuleConfig(f)),u===null)?(a=o._getModuleName(f),h='Module "'+(a||"unknown")+'" is not configured, cannot load.',t._$log.error(h),e.reject(new Error(h)),e.promise):(n.isDefined(u.template)&&(n.isUndefined(u.files)&&(u.files=[]),n.isString(u.template)?u.files.push(u.template):n.isArray(u.template)&&u.files.concat(u.template)),s=n.extend({},l,u),n.isUndefined(u.files)&&n.isDefined(u.name)&&t.moduleExists(u.name))?t.inject(u.name,s,!0):(t.filesLoader(u,s).then(function(){t.inject(null,s).then(function(n){e.resolve(n)},function(n){e.reject(n)})},function(n){e.reject(n)}),e.promise)},t}])}])}(angular),function(n){"use strict";n.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,i){return t.cssLoader=function(r,u,f){var e=[];n.forEach(r,function(n){e.push(t.buildElement("css",n,f))});i.all(e).then(function(){u()},function(n){u(n)})},t.cssLoader.ocLazyLoadLoader=!0,t}])}])}(angular),function(n){"use strict";n.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,i){return t.jsLoader=function(r,u,f){var e=[];n.forEach(r,function(n){e.push(t.buildElement("js",n,f))});i.all(e).then(function(){u()},function(n){u(n)})},t.jsLoader.ocLazyLoadLoader=!0,t}])}])}(angular),function(n){"use strict";n.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$templateCache","$q","$http",function(t,i,r,u){return t.templatesLoader=function(f,e,o){var s=[],h=t._getFilesCache();return n.forEach(f,function(t){var f=r.defer();s.push(f.promise);u.get(t,o).then(function(r){n.isString(r.data)&&r.data.length>0&&n.forEach(n.element(r.data),function(n){n.nodeName==="SCRIPT"&&n.type==="text/ng-template"&&i.put(n.id,n.innerHTML)});n.isUndefined(h.get(t))&&h.put(t,!0);f.resolve()},function(n){f.reject(new Error('Unable to load template file "'+t+'": '+n.data))})}),r.all(s).then(function(){e()},function(n){e(n)})},t.templatesLoader.ocLazyLoadLoader=!0,t}])}])}(angular);Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){var r,f,u,i;if(this==null)throw new TypeError('"this" is null or not defined');if((f=Object(this),u=f.length>>>0,u===0)||(i=+t||0,Math.abs(i)===Infinity&&(i=0),i>=u))return-1;for(r=Math.max(i>=0?i:u-Math.abs(i),0);r<u;){if(r in f&&f[r]===n)return r;r++}return-1});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).lozad=t()}(this,function(){"use strict";function n(n){n.setAttribute("data-loaded",!0)}function t(n){return"true"===n.getAttribute("data-loaded")}var i="undefined"!=typeof document&&document.documentMode,r={rootMargin:"0px",threshold:0,load:function(n){var u,t,r;if("picture"===n.nodeName.toLowerCase()&&(u=document.createElement("img"),i&&n.getAttribute("data-iesrc")&&(u.src=n.getAttribute("data-iesrc")),n.getAttribute("data-alt")&&(u.alt=n.getAttribute("data-alt")),n.append(u)),"video"===n.nodeName.toLowerCase()&&!n.getAttribute("data-src")&&n.children){for(var e=n.children,o=void 0,f=0;f<=e.length-1;f++)(o=e[f].getAttribute("data-src"))&&(e[f].src=o);n.load()}n.getAttribute("data-src")&&(n.src=n.getAttribute("data-src"));n.getAttribute("data-srcset")&&n.setAttribute("srcset",n.getAttribute("data-srcset"));n.getAttribute("data-background-image")?n.style.backgroundImage="url('"+n.getAttribute("data-background-image").split(",").join("'),url('")+"')":n.getAttribute("data-background-image-set")&&(r=-1===(r=(t=n.getAttribute("data-background-image-set").split(","))[0].substr(0,t[0].indexOf(" "))||t[0]).indexOf("url(")?"url("+r+")":r,1===t.length?n.style.backgroundImage=r:n.setAttribute("style",(n.getAttribute("style")||"")+"background-image: "+r+"; background-image: -webkit-image-set("+t+"); background-image: image-set("+t+")"));n.getAttribute("data-toggle-class")&&n.classList.toggle(n.getAttribute("data-toggle-class"))},loaded:function(){}};return function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(n){var u,i,t,r,e;if(null==n)throw new TypeError("Cannot convert first argument to object");for(u=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],null!=t){t=Object(t);for(var o=Object.keys(Object(t)),f=0,s=o.length;f<s;f++)r=o[f],e=Object.getOwnPropertyDescriptor(t,r),void 0!==e&&e.enumerable&&(u[r]=t[r])}return u}});var o,s,c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=Object.assign({},r,l),h=i.root,a=i.rootMargin,v=i.threshold,f=i.load,e=i.loaded,u=void 0;return"undefined"!=typeof window&&window.IntersectionObserver&&(u=new IntersectionObserver((o=f,s=e,function(i,r){i.forEach(function(i){(0<i.intersectionRatio||i.isIntersecting)&&(r.unobserve(i.target),t(i.target)||(o(i.target),n(i.target),s(i.target)))})}),{root:h,rootMargin:a,threshold:v})),{observe:function(){for(var r=function(n,t){var i=1<arguments.length&&void 0!==t?t:document;return n instanceof Element?[n]:n instanceof NodeList?n:i.querySelectorAll(n)}(c,h),i=0;i<r.length;i++)t(r[i])||(u?u.observe(r[i]):(f(r[i]),n(r[i]),e(r[i])))},triggerLoad:function(i){t(i)||(f(i),n(i),e(i))},observer:u}}});saveAs=saveAs||function(n){"use strict";if(typeof n!="undefined"&&(typeof navigator=="undefined"||!/MSIE [1-9]\./.test(navigator.userAgent))){var s=n.document,r=function(){return n.URL||n.webkitURL||n},i=s.createElementNS("http://www.w3.org/1999/xhtml","a"),h="download"in i,c=function(n){var t=new MouseEvent("click");n.dispatchEvent(t)},l=/constructor/i.test(n.HTMLElement)||n.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent),a=function(t){(n.setImmediate||n.setTimeout)(function(){throw t;},0)},v="application/octet-stream",y=4e4,f=function(n){var t=function(){typeof n=="string"?r().revokeObjectURL(n):n.remove()};setTimeout(t,y)},p=function(n,t,i){var r,u;for(t=[].concat(t),r=t.length;r--;)if(u=n["on"+t[r]],typeof u=="function")try{u.call(n,i||n)}catch(f){a(f)}},e=function(n){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob([String.fromCharCode(65279),n],{type:n.type}):n},o=function(t,o,s){s||(t=e(t));var a=this,k=t.type,b=k===v,y,w=function(){p(a,"writestart progress write writeend".split(" "))},d=function(){var i,e;if((u||b&&l)&&n.FileReader){i=new FileReader;i.onloadend=function(){var t=u?i.result:i.result.replace(/^data:[^;]*;/,"data:attachment/file;"),r=n.open(t,"_blank");r||(n.location.href=t);t=undefined;a.readyState=a.DONE;w()};i.readAsDataURL(t);a.readyState=a.INIT;return}y||(y=r().createObjectURL(t));b?n.location.href=y:(e=n.open(y,"_blank"),e||(n.location.href=y));a.readyState=a.DONE;w();f(y)};if(a.readyState=a.INIT,h){y=r().createObjectURL(t);setTimeout(function(){i.href=y;i.download=o;c(i);w();f(y);a.readyState=a.DONE});return}d()},t=o.prototype,w=function(n,t,i){return new o(n,t||n.name||"download",i)};return typeof navigator!="undefined"&&navigator.msSaveOrOpenBlob?function(n,t,i){return t=t||n.name||"download",i||(n=e(n)),navigator.msSaveOrOpenBlob(n,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,w)}}(typeof self!="undefined"&&self||typeof window!="undefined"&&window||this.content);typeof module!="undefined"&&module.exports?module.exports.saveAs=saveAs:typeof define!="undefined"&&define!==null&&define.amd!==null&&define("FileSaver.js",function(){return saveAs});!function(){"use strict";function n(n){return angular.isUndefined(n)||null===n}function i(){try{return require("moment")}catch(n){throw new Error("Please install moment via npm. Please reference to: https://github.com/urish/angular-moment");}}function t(t,r){if("undefined"==typeof r){if("function"!=typeof require)throw new Error("Moment cannot be found by angular-moment! Please reference to: https://github.com/urish/angular-moment");r=i()}return t.module("angularMoment",[]).constant("angularMomentConfig",{preprocess:null,timezone:null,format:null,statefulFilters:!0}).constant("moment",r).constant("amTimeAgoConfig",{withoutSuffix:!1,serverTime:null,titleFormat:null,fullDateThreshold:null,fullDateFormat:null,fullDateThresholdUnit:"day"}).directive("amTimeAgo",["$window","moment","amMoment","amTimeAgoConfig",function(i,r,u,f){return function(e,o,s){function a(){var n,t,i;return y?n=y:f.serverTime?(t=(new Date).getTime(),i=t-tt+f.serverTime,n=r(i)):n=r(),n}function v(){l&&(i.clearTimeout(l),l=null)}function b(n){var f=a().diff(n,nt),u=w&&f>=w,r,t;(u?o.text(n.format(g)):o.text(n.from(a(),p)),d&&ut&&o.attr("title",n.format(d)),u)||(r=Math.abs(a().diff(n,"minute")),t=3600,r<1?t=1:r<60?t=30:r<180&&(t=300),l=i.setTimeout(function(){b(n)},1e3*t))}function k(n){rt&&o.attr("datetime",n)}function h(){if(v(),c){var n=u.preprocessDate(c);b(n);k(n.toISOString())}}var c,y,l=null,p=f.withoutSuffix,d=f.titleFormat,w=f.fullDateThreshold,g=f.fullDateFormat,nt=f.fullDateThresholdUnit,tt=(new Date).getTime(),it=s.amTimeAgo,rt="TIME"===o[0].nodeName.toUpperCase(),ut=!o.attr("title");e.$watch(it,function(t){return n(t)||""===t?(v(),void(c&&(o.text(""),k(""),c=null))):(c=t,void h())});t.isDefined(s.amFrom)&&e.$watch(s.amFrom,function(t){y=n(t)||""===t?null:r(t);h()});t.isDefined(s.amWithoutSuffix)&&e.$watch(s.amWithoutSuffix,function(n){"boolean"==typeof n?(p=n,h()):p=f.withoutSuffix});s.$observe("amFullDateThreshold",function(n){w=n;h()});s.$observe("amFullDateFormat",function(n){g=n;h()});s.$observe("amFullDateThresholdUnit",function(n){nt=n;h()});e.$on("$destroy",function(){v()});e.$on("amMoment:localeChanged",function(){h()})}}]).service("amMoment",["moment","$rootScope","$log","angularMomentConfig",function(n,i,r,u){var f=null;this.changeLocale=function(r,u){var f=n.locale(r,u);return t.isDefined(r)&&i.$broadcast("amMoment:localeChanged"),f};this.changeTimezone=function(t){n.tz&&n.tz.setDefault?(n.tz.setDefault(t),i.$broadcast("amMoment:timezoneChanged")):r.warn("angular-moment: changeTimezone() works only with moment-timezone.js v0.3.0 or greater.");u.timezone=t;f=t};this.preprocessDate=function(t){return f!==u.timezone&&this.changeTimezone(u.timezone),u.preprocess?u.preprocess(t):n(!isNaN(parseFloat(t))&&isFinite(t)?parseInt(t,10):t)}}]).filter("amParse",["moment",function(n){return function(t,i){return n(t,i)}}]).filter("amFromUnix",["moment",function(n){return function(t){return n.unix(t)}}]).filter("amUtc",["moment",function(n){return function(t){return n.utc(t)}}]).filter("amUtcOffset",["amMoment",function(n){function t(t,i){return n.preprocessDate(t).utcOffset(i)}return t}]).filter("amLocal",["moment",function(n){return function(t){return n.isMoment(t)?t.local():null}}]).filter("amTimezone",["amMoment","angularMomentConfig","$log",function(n,t,i){function r(t,r){var u=n.preprocessDate(t);return r?u.tz?u.tz(r):(i.warn("angular-moment: named timezone specified but moment.tz() is undefined. Did you forget to include moment-timezone.js ?"),u):u}return r}]).filter("amCalendar",["moment","amMoment","angularMomentConfig",function(t,i,r){function u(t,r,u){if(n(t))return"";var f=i.preprocessDate(t);return f.isValid()?f.calendar(r,u):""}return u.$stateful=r.statefulFilters,u}]).filter("amDifference",["moment","amMoment","angularMomentConfig",function(t,i,r){function u(r,u,f,e){if(n(r))return"";var o=i.preprocessDate(r),s=n(u)?t():i.preprocessDate(u);return o.isValid()&&s.isValid()?o.diff(s,f,e):""}return u.$stateful=r.statefulFilters,u}]).filter("amDateFormat",["moment","amMoment","angularMomentConfig",function(t,i,r){function u(t,r){if(n(t))return"";var u=i.preprocessDate(t);return u.isValid()?u.format(r):""}return u.$stateful=r.statefulFilters,u}]).filter("amDurationFormat",["moment","angularMomentConfig",function(t,i){function r(i,r,u){return n(i)?"":t.duration(i,r).humanize(u)}return r.$stateful=i.statefulFilters,r}]).filter("amTimeAgo",["moment","amMoment","angularMomentConfig",function(t,i,r){function u(r,u,f){var e,o;return n(r)?"":(r=i.preprocessDate(r),e=t(r),e.isValid()?(o=t(f),!n(f)&&o.isValid()?e.from(o,u):e.fromNow(u)):"")}return u.$stateful=r.statefulFilters,u}]).filter("amSubtract",["moment","angularMomentConfig",function(t,i){function r(i,r,u){return n(i)?"":t(i).subtract(parseInt(r,10),u)}return r.$stateful=i.statefulFilters,r}]).filter("amAdd",["moment","angularMomentConfig",function(t,i){function r(i,r,u){return n(i)?"":t(i).add(parseInt(r,10),u)}return r.$stateful=i.statefulFilters,r}]).filter("amStartOf",["moment","angularMomentConfig",function(t,i){function r(i,r){return n(i)?"":t(i).startOf(r)}return r.$stateful=i.statefulFilters,r}]).filter("amEndOf",["moment","angularMomentConfig",function(t,i){function r(i,r){return n(i)?"":t(i).endOf(r)}return r.$stateful=i.statefulFilters,r}]),"angularMoment"}var r=window&&window.process&&window.process.type;"function"==typeof define&&define.amd?define(["angular","moment"],t):"undefined"!=typeof module&&module&&module.exports&&"function"==typeof require&&!r?module.exports=t(require("angular"),require("moment")):t(angular,("undefined"!=typeof global?global:window).moment)}();angular.module("angularSimplePagination",[]).directive("simplePagination",SimplePagination);!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Quill=t():n.Quill=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=45)}([function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(17),f=i(18),e=i(19),o=i(48),s=i(49),h=i(50),c=i(51),l=i(52),a=i(11),v=i(29),y=i(30),p=i(28),r=i(1),w={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:u.default,Format:f.default,Leaf:e.default,Embed:c.default,Scroll:o.default,Block:h.default,Inline:s.default,Text:l.default,Attributor:{Attribute:a.default,Class:v.default,Style:y.default,Store:p.default}};t.default=w},function(n,t){"use strict";function l(n,t){var u=o(n),i;if(null==u)throw new r("Unable to create "+n+" blot");return i=u,new i(n instanceof Node||n.nodeType===Node.TEXT_NODE?n:i.create(t),t)}function e(n,i){return void 0===i&&(i=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:i?e(n.parentNode,i):null}function o(n,t){var r,e,o;if(void 0===t&&(t=i.ANY),"string"==typeof n)r=u[n]||h[n];else if(n instanceof Text||n.nodeType===Node.TEXT_NODE)r=u.text;else if("number"==typeof n)n&i.LEVEL&i.BLOCK?r=u.block:n&i.LEVEL&i.INLINE&&(r=u.inline);else if(n instanceof HTMLElement){e=(n.getAttribute("class")||"").split(/\s+/);for(o in e)if(r=c[e[o]])break;r=r||f[n.tagName]}return null==r?null:t&i.LEVEL&r.scope&&t&i.TYPE&r.scope?r:null}function s(){for(var n,e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];if(t.length>1)return t.map(function(n){return s(n)});if(n=t[0],"string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new r("Invalid definition");if("abstract"===n.blotName)throw new r("Cannot register abstract class");return(u[n.blotName||n.attrName]=n,"string"==typeof n.keyName)?h[n.keyName]=n:(null!=n.className&&(c[n.className]=n),null!=n.tagName)&&(n.tagName=Array.isArray(n.tagName)?n.tagName.map(function(n){return n.toUpperCase()}):n.tagName.toUpperCase(),e=Array.isArray(n.tagName)?n.tagName:[n.tagName],e.forEach(function(t){null!=f[t]&&null!=n.className||(f[t]=n)})),n}var a=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,i;Object.defineProperty(t,"__esModule",{value:!0});r=function(n){function t(t){var i=this;return t="[Parchment] "+t,i=n.call(this,t)||this,i.message=t,i.name=i.constructor.name,i}return a(t,n),t}(Error);t.ParchmentError=r;var h={},c={},f={},u={};t.DATA_KEY="__blot";!function(n){n[n.TYPE=3]="TYPE";n[n.LEVEL=12]="LEVEL";n[n.ATTRIBUTE=13]="ATTRIBUTE";n[n.BLOT=14]="BLOT";n[n.INLINE=7]="INLINE";n[n.BLOCK=11]="BLOCK";n[n.BLOCK_BLOT=10]="BLOCK_BLOT";n[n.INLINE_BLOT=6]="INLINE_BLOT";n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";n[n.ANY=15]="ANY"}(i=t.Scope||(t.Scope={}));t.create=l;t.find=e;t.query=o;t.register=s},function(n){"use strict";var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=function(n){return"function"==typeof Array.isArray?Array.isArray(n):"[object Array]"===i.call(n)},u=function(n){var u,f,r;if(!n||"[object Object]"!==i.call(n)||(u=t.call(n,"constructor"),f=n.constructor&&n.constructor.prototype&&t.call(n.constructor.prototype,"isPrototypeOf"),n.constructor&&!u&&!f))return!1;for(r in n);return void 0===r||t.call(n,r)};n.exports=function n(){var s,e,f,i,h,c,t=arguments[0],o=1,a=arguments.length,l=!1;for("boolean"==typeof t&&(l=t,t=arguments[1]||{},o=2),(null==t||"object"!=typeof t&&"function"!=typeof t)&&(t={});o<a;++o)if(null!=(s=arguments[o]))for(e in s)f=t[e],i=s[e],t!==i&&(l&&i&&(u(i)||(h=r(i)))?(h?(h=!1,c=f&&r(f)?f:[]):c=f&&u(f)?f:{},t[e]=n(l,c,i)):void 0!==i&&(t[e]=i));return t}},function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function o(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==n?t:("function"==typeof n.formats&&(t=a.default(t,n.formats())),null==n.parent||"scroll"==n.parent.blotName||n.parent.statics.scope!==n.statics.scope?t:o(n.parent,t))}var f;Object.defineProperty(t,"__esModule",{value:!0});t.default=t.BlockEmbed=t.bubbleFormats=void 0;var l=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),r=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},p=i(2),a=e(p),w=i(4),v=e(w),b=i(0),u=e(b),k=i(14),d=e(k),g=i(5),nt=e(g),tt=i(8),it=e(tt),y=function(n){function t(){return s(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,n),l(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this);this.attributes=new u.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new v.default).insert(this.value(),a.default(this.formats(),this.attributes.values()))}},{key:"format",value:function(n,t){var i=u.default.query(n,u.default.Scope.BLOCK_ATTRIBUTE);null!=i&&this.attributes.attribute(i,t)}},{key:"formatAt",value:function(n,t,i,r){this.format(i,r)}},{key:"insertAt",value:function(n,i,e){if("string"==typeof i&&i.endsWith("\n")){var o=u.default.create(f.blotName);this.parent.insertBefore(o,0===n?this:this.next);o.insertAt(0,i.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,n,i,e)}}]),t}(u.default.Embed);y.scope=u.default.Scope.BLOCK_BLOT;f=function(n){function t(n){s(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return i.cache={},i}return c(t,n),l(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(u.default.Leaf).reduce(function(n,t){return 0===t.length()?n:n.insert(t.value(),o(t))},new v.default).insert("\n",o(this))),this.cache.delta}},{key:"deleteAt",value:function(n,i){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,n,i);this.cache={}}},{key:"formatAt",value:function(n,i,f,e){i<=0||(u.default.query(f,u.default.Scope.BLOCK)?n+i===this.length()&&this.format(f,e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,n,Math.min(i,this.length()-n-1),f,e),this.cache={})}},{key:"insertAt",value:function(n,i,u){var o,f,e;if(null!=u)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,n,i,u);0!==i.length&&(o=i.split("\n"),f=o.shift(),f.length>0&&(n<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(n,this.length()-1),f):this.children.tail.insertAt(this.children.tail.length(),f),this.cache={}),e=this,o.reduce(function(n,t){return e=e.split(n,!0),e.insertAt(0,t),t.length},n+f.length))}},{key:"insertBefore",value:function(n,i){var u=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,n,i);u instanceof d.default&&u.remove();this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(n,i){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,n,i);this.cache={}}},{key:"optimize",value:function(n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,n);this.cache={}}},{key:"path",value:function(n){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,n,!0)}},{key:"removeChild",value:function(n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,n);this.cache={}}},{key:"split",value:function(n){var u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i,f;return u&&(0===n||n>=this.length()-1)?(i=this.clone(),0===n?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)):(f=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,n,u),this.cache={},f)}}]),t}(u.default.Block);f.blotName="block";f.tagName="P";f.defaultChild="break";f.allowedChildren=[nt.default,u.default.Embed,it.default];t.bubbleFormats=o;t.BlockEmbed=y;t.default=f},function(n,t,i){var f=i(54),e=i(12),o=i(2),u=i(20),s=String.fromCharCode(0),r=function(n){this.ops=Array.isArray(n)?n:null!=n&&Array.isArray(n.ops)?n.ops:[]};r.prototype.insert=function(n,t){var i={};return 0===n.length?this:(i.insert=n,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(i.attributes=t),this.push(i))};r.prototype.delete=function(n){return n<=0?this:this.push({"delete":n})};r.prototype.retain=function(n,t){if(n<=0)return this;var i={retain:n};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(i.attributes=t),this.push(i)};r.prototype.push=function(n){var t=this.ops.length,i=this.ops[t-1];if(n=o(!0,{},n),"object"==typeof i){if("number"==typeof n.delete&&"number"==typeof i.delete)return this.ops[t-1]={"delete":i.delete+n.delete},this;if("number"==typeof i.delete&&null!=n.insert&&(t-=1,"object"!=typeof(i=this.ops[t-1])))return this.ops.unshift(n),this;if(e(n.attributes,i.attributes)){if("string"==typeof n.insert&&"string"==typeof i.insert)return this.ops[t-1]={insert:i.insert+n.insert},"object"==typeof n.attributes&&(this.ops[t-1].attributes=n.attributes),this;if("number"==typeof n.retain&&"number"==typeof i.retain)return this.ops[t-1]={retain:i.retain+n.retain},"object"==typeof n.attributes&&(this.ops[t-1].attributes=n.attributes),this}}return t===this.ops.length?this.ops.push(n):this.ops.splice(t,0,n),this};r.prototype.filter=function(n){return this.ops.filter(n)};r.prototype.forEach=function(n){this.ops.forEach(n)};r.prototype.map=function(n){return this.ops.map(n)};r.prototype.partition=function(n){var t=[],i=[];return this.forEach(function(r){(n(r)?t:i).push(r)}),[t,i]};r.prototype.reduce=function(n,t){return this.ops.reduce(n,t)};r.prototype.chop=function(){var n=this.ops[this.ops.length-1];return n&&n.retain&&!n.attributes&&this.ops.pop(),this};r.prototype.length=function(){return this.reduce(function(n,t){return n+u.length(t)},0)};r.prototype.slice=function(n,t){var f;n=n||0;"number"!=typeof t&&(t=1/0);for(var o=[],e=u.iterator(this.ops),i=0;i<t&&e.hasNext();)i<n?f=e.next(n-i):(f=e.next(t-i),o.push(f)),i+=u.length(f);return new r(o)};r.prototype.compose=function(n){for(var o,c,t=u.iterator(this.ops),i=u.iterator(n.ops),f=new r;t.hasNext()||i.hasNext();)if("insert"===i.peekType())f.push(i.next());else if("delete"===t.peekType())f.push(t.next());else{var h=Math.min(t.peekLength(),i.peekLength()),e=t.next(h),s=i.next(h);"number"==typeof s.retain?(o={},"number"==typeof e.retain?o.retain=h:o.insert=e.insert,c=u.attributes.compose(e.attributes,s.attributes,"number"==typeof e.retain),c&&(o.attributes=c),f.push(o)):"number"==typeof s.delete&&"number"==typeof e.retain&&f.push(s)}return f.chop()};r.prototype.concat=function(n){var t=new r(this.ops.slice());return n.ops.length>0&&(t.push(n.ops[0]),t.ops=t.ops.concat(n.ops.slice(1))),t};r.prototype.diff=function(n,t){if(this.ops===n.ops)return new r;var c=[this,n].map(function(t){return t.map(function(i){if(null!=i.insert)return"string"==typeof i.insert?i.insert:s;var r=t===n?"on":"with";throw new Error("diff() called "+r+" non-document");}).join("")}),i=new r,l=f(c[0],c[1],t),o=u.iterator(this.ops),h=u.iterator(n.ops);return l.forEach(function(n){for(var t,c,s,r=n[1].length;r>0;){t=0;switch(n[0]){case f.INSERT:t=Math.min(h.peekLength(),r);i.push(h.next(t));break;case f.DELETE:t=Math.min(r,o.peekLength());o.next(t);i.delete(t);break;case f.EQUAL:t=Math.min(o.peekLength(),h.peekLength(),r);c=o.next(t);s=h.next(t);e(c.insert,s.insert)?i.retain(t,u.attributes.diff(c.attributes,s.attributes)):i.push(s).delete(t)}r-=t}}),i.chop()};r.prototype.eachLine=function(n,t){t=t||"\n";for(var i=u.iterator(this.ops),f=new r,e=0;i.hasNext();){if("insert"!==i.peekType())return;var o=i.peek(),h=u.length(o)-i.peekLength(),s="string"==typeof o.insert?o.insert.indexOf(t,h)-h:-1;if(s<0)f.push(i.next());else if(s>0)f.push(i.next(s));else{if(!1===n(f,i.next(1).attributes||{},e))return;e+=1;f=new r}}f.length()>0&&n(f,{},e)};r.prototype.transform=function(n,t){if(t=!!t,"number"==typeof n)return this.transformPosition(n,t);for(var f=u.iterator(this.ops),i=u.iterator(n.ops),e=new r;f.hasNext()||i.hasNext();)if("insert"===f.peekType()&&(t||"insert"!==i.peekType()))e.retain(u.length(f.next()));else if("insert"===i.peekType())e.push(i.next());else{var o=Math.min(f.peekLength(),i.peekLength()),h=f.next(o),s=i.next(o);if(h.delete)continue;s.delete?e.push(s):e.retain(o,u.attributes.transform(h.attributes,s.attributes,t))}return e.chop()};r.prototype.transformPosition=function(n,t){var i,r,f,e;for(t=!!t,i=u.iterator(this.ops),r=0;i.hasNext()&&r<=n;)f=i.peekLength(),e=i.peekType(),i.next(),"delete"!==e?("insert"===e&&(r<n||!t)&&(n+=f),r+=f):n-=Math.min(f,n-r);return n};n.exports=r},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),e=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},l=i(8),a=f(l),v=i(0),r=f(v),u=function(n){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,n),c(t,[{key:"formatAt",value:function(n,i,u,f){if(t.compare(this.statics.blotName,u)<0&&r.default.query(u,r.default.Scope.BLOT)){var o=this.isolate(n,i);f&&o.wrap(u,f)}else e(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,n,i,u,f)}},{key:"optimize",value:function(n){if(e(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,n),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var i=this.parent.isolate(this.offset(),this.length());this.moveChildren(i);i.wrap(this)}}}],[{key:"compare",value:function(n,i){var r=t.order.indexOf(n),u=t.order.indexOf(i);return r>=0||u>=0?r-u:n===i?0:n<i?-1:1}}]),t}(r.default.Inline);u.allowedChildren=[u,r.default.Embed,a.default];u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"];t.default=u},function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}function y(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function g(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function p(n,t){var i,r,u;if(t=v.default(!0,{container:n,modules:{clipboard:!0,keyboard:!0,history:!0}},t),t.theme&&t.theme!==e.DEFAULTS.theme){if(t.theme=e.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?");}else t.theme=d.default;return i=v.default(!0,{},t.theme.DEFAULTS),[i,t].forEach(function(n){n.modules=n.modules||{};Object.keys(n.modules).forEach(function(t){!0===n.modules[t]&&(n.modules[t]={})})}),r=Object.keys(i.modules).concat(Object.keys(t.modules)),u=r.reduce(function(n,t){var i=e.import("modules/"+t);return null==i?l.error("Cannot load "+t+" module. Are you sure you registered it?"):n[t]=i.DEFAULTS||{},n},{}),null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=v.default(!0,{},e.DEFAULTS,{modules:u},i,t),["bounds","container","scrollingContainer"].forEach(function(n){"string"==typeof t[n]&&(t[n]=document.querySelector(t[n]))}),t.modules=Object.keys(t.modules).reduce(function(n,i){return t.modules[i]&&(n[i]=t.modules[i]),n},{}),t}function u(n,t,i,u){var s,o,c;if(this.options.strict&&!this.isEnabled()&&t===r.default.sources.USER)return new h.default;var f=null==i?null:this.getSelection(),l=this.editor.delta,e=n();return(null!=f&&(!0===i&&(i=f.index),null==u?f=w(f,e,t):0!==u&&(f=w(f,i,u,t)),this.setSelection(f,r.default.sources.SILENT)),e.length()>0)&&(o=[r.default.events.TEXT_CHANGE,e,l,t],((s=this.emitter).emit.apply(s,[r.default.events.EDITOR_CHANGE].concat(o)),t!==r.default.sources.SILENT)&&(c=this.emitter).emit.apply(c,o)),e}function s(n,t,i,u,f){var e={};return"number"==typeof n.index&&"number"==typeof n.length?"number"!=typeof t?(f=u,u=i,i=t,t=n.length,n=n.index):(t=n.length,n=n.index):"number"!=typeof t&&(f=u,u=i,i=t,t=0),"object"===(void 0===i?"undefined":nt(i))?(e=i,f=u):"string"==typeof i&&(null!=u?e[i]=u:f=i),f=f||r.default.sources.API,[n,t,e,f]}function w(n,t,i,u){var e,o,l,s,v,c;return null==n?null:(e=void 0,o=void 0,t instanceof h.default?(l=[n.index,n.index+n.length].map(function(n){return t.transformPosition(n,u!==r.default.sources.USER)}),s=f(l,2),e=s[0],o=s[1]):(v=[n.index,n.index+n.length].map(function(n){return n<t||n===t&&u===r.default.sources.USER?n:i>=0?n+i:Math.max(t,n+i)}),c=f(v,2),e=c[0],o=c[1]),new a.Range(e,o-e))}Object.defineProperty(t,"__esModule",{value:!0});t.default=t.overload=t.expandConfig=void 0;var nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},f=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();i(53);var tt=i(4),h=o(tt),it=i(57),rt=o(it),ut=i(9),r=o(ut),ft=i(7),et=o(ft),ot=i(0),c=o(ot),a=i(22),st=o(a),ht=i(2),v=o(ht),ct=i(10),k=o(ct),lt=i(32),d=o(lt),l=k.default("quill"),e=function(){function n(t){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f,e;if(g(this,n),this.options=p(t,o),this.container=this.options.container,null==this.container)return l.error("Invalid Quill container",t);this.options.debug&&n.debug(this.options.debug);f=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";this.container.__quill=this;this.root=this.addContainer("ql-editor");this.root.classList.add("ql-blank");this.root.setAttribute("data-gramm",!1);this.scrollingContainer=this.options.scrollingContainer||this.root;this.emitter=new r.default;this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new rt.default(this.scroll);this.selection=new st.default(this.scroll,this.emitter);this.theme=new this.options.theme(this,this.options);this.keyboard=this.theme.addModule("keyboard");this.clipboard=this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.theme.init();this.emitter.on(r.default.events.EDITOR_CHANGE,function(n){n===r.default.events.TEXT_CHANGE&&i.root.classList.toggle("ql-blank",i.editor.isBlank())});this.emitter.on(r.default.events.SCROLL_UPDATE,function(n,t){var r=i.selection.lastRange,f=r&&0===r.length?r.index:void 0;u.call(i,function(){return i.editor.update(null,t,f)},n)});e=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+f+"<p><br><\/p><\/div>");this.setContents(e);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);this.options.readOnly&&this.disable()}return b(n,null,[{key:"debug",value:function(n){!0===n&&(n="log");k.default.level(n)}},{key:"find",value:function(n){return n.__quill||c.default.find(n)}},{key:"import",value:function(n){return null==this.imports[n]&&l.error("Cannot import "+n+". Are you sure it was registered?"),this.imports[n]}},{key:"register",value:function(n,t){var r=this,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i;"string"!=typeof n?(i=n.attrName||n.blotName,"string"==typeof i?this.register("formats/"+i,n,t):Object.keys(n).forEach(function(i){r.register(i,n[i],t)})):(null==this.imports[n]||u||l.warn("Overwriting "+n+" with",t),this.imports[n]=t,(n.startsWith("blots/")||n.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):n.startsWith("modules")&&"function"==typeof t.register&&t.register())}}]),b(n,[{key:"addContainer",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t;return"string"==typeof n&&(t=n,n=document.createElement("div"),n.classList.add(t)),this.container.insertBefore(n,i),n}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(n,t,i){var e=this,o=s(n,t,i),r=f(o,4);return n=r[0],t=r[1],i=r[3],u.call(this,function(){return e.editor.deleteText(n,t)},i,n,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(n);this.container.classList.toggle("ql-disabled",!n)}},{key:"focus",value:function(){var n=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=n;this.scrollIntoView()}},{key:"format",value:function(n,t){var i=this,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.default.sources.API;return u.call(this,function(){var u=i.getSelection(!0),f=new h.default;if(null==u)return f;if(c.default.query(n,c.default.Scope.BLOCK))f=i.editor.formatLine(u.index,u.length,y({},n,t));else{if(0===u.length)return i.selection.format(n,t),f;f=i.editor.formatText(u.index,u.length,y({},n,t))}return i.setSelection(u,r.default.sources.SILENT),f},f)}},{key:"formatLine",value:function(n,t,i,r,e){var c=this,h=void 0,l=s(n,t,i,r,e),o=f(l,4);return n=o[0],t=o[1],h=o[2],e=o[3],u.call(this,function(){return c.editor.formatLine(n,t,h)},e,n,0)}},{key:"formatText",value:function(n,t,i,r,e){var c=this,h=void 0,l=s(n,t,i,r,e),o=f(l,4);return n=o[0],t=o[1],h=o[2],e=o[3],u.call(this,function(){return c.editor.formatText(n,t,h)},e,n,0)}},{key:"getBounds",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=void 0,i;return t="number"==typeof n?this.selection.getBounds(n,r):this.selection.getBounds(n.index,n.length),i=this.container.getBoundingClientRect(),{bottom:t.bottom-i.top,height:t.height,left:t.left-i.left,right:t.right-i.left,top:t.top-i.top,width:t.width}}},{key:"getContents",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-n,r=s(n,t),i=f(r,2);return n=i[0],t=i[1],this.editor.getContents(n,t)}},{key:"getFormat",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof n?this.editor.getFormat(n,t):this.editor.getFormat(n.index,n.length)}},{key:"getIndex",value:function(n){return n.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(n){return this.scroll.leaf(n)}},{key:"getLine",value:function(n){return this.scroll.line(n)}},{key:"getLines",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof n?this.scroll.lines(n.index,n.length):this.scroll.lines(n,t)}},{key:"getModule",value:function(n){return this.theme.modules[n]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-n,r=s(n,t),i=f(r,2);return n=i[0],t=i[1],this.editor.getText(n,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,i,r){var f=this,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.sources.API;return u.call(this,function(){return f.editor.insertEmbed(t,i,r)},e,t)}},{key:"insertText",value:function(n,t,i,r,e){var c=this,h=void 0,l=s(n,0,i,r,e),o=f(l,4);return n=o[0],h=o[2],e=o[3],u.call(this,function(){return c.editor.insertText(n,t,h)},e,n,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(n,t,i){this.clipboard.dangerouslyPasteHTML(n,t,i)}},{key:"removeFormat",value:function(n,t,i){var e=this,o=s(n,t,i),r=f(o,4);return n=r[0],t=r[1],i=r[3],u.call(this,function(){return e.editor.removeFormat(n,t)},i,n)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(n){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default.sources.API;return u.call(this,function(){n=new h.default(n);var u=t.getLength(),f=t.editor.deleteText(0,u),i=t.editor.applyDelta(n),r=i.ops[i.ops.length-1];return null!=r&&"string"==typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1)),f.compose(i)},i)}},{key:"setSelection",value:function(t,i,u){if(null==t)this.selection.setRange(null,i||n.sources.API);else{var o=s(t,i,u),e=f(o,4);t=e[0];i=e[1];u=e[3];this.selection.setRange(new a.Range(t,i),u);u!==r.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default.sources.API,i=(new h.default).insert(n);return this.setContents(i,t)}},{key:"update",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.default.sources.USER,t=this.scroll.update(n);return this.selection.update(n),t}},{key:"updateContents",value:function(n){var i=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default.sources.API;return u.call(this,function(){return n=new h.default(n),i.editor.applyDelta(n,t)},t,!0)}}]),n}();e.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};e.events=r.default.events;e.sources=r.default.sources;e.version="1.3.1";e.imports={delta:h.default,parchment:c.default,"core/module":et.default,"core/theme":d.default};t.expandConfig=p;t.overload=s;t.default=e},function(n,t){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(t,"__esModule",{value:!0});var i=function n(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,n);this.quill=t;this.options=i};i.DEFAULTS={};t.default=i},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function f(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var e=i(0),o=function(n){return n&&n.__esModule?n:{"default":n}}(e),s=function(n){function t(){return r(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),t}(o.default.Text);t.default=s},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},l=i(58),a=f(l),v=i(10),y=f(v),u=y.default("quill:events");["selectionchange","mousedown","mouseup"].forEach(function(n){document.addEventListener(n,function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(n){if(n.__quill&&n.__quill.emitter){var t;(t=n.__quill.emitter).handleDOM.apply(t,i)}})})});r=function(n){function t(){e(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.listeners={},n.on("error",u.error),n}return s(t,n),h(t,[{key:"emit",value:function(){u.log.apply(u,arguments);c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;t<i;t++)r[t-1]=arguments[t];(this.listeners[n.type]||[]).forEach(function(t){var i=t.node,u=t.handler;(n.target===i||i.contains(n.target))&&u.apply(void 0,[n].concat(r))})}},{key:"listenDOM",value:function(n,t,i){this.listeners[n]||(this.listeners[n]=[]);this.listeners[n].push({node:t,handler:i})}}]),t}(a.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"};r.sources={API:"api",SILENT:"silent",USER:"user"};t.default=r},function(n,t){"use strict";function r(n){if(i.indexOf(n)<=i.indexOf(f)){for(var u,r=arguments.length,e=Array(r>1?r-1:0),t=1;t<r;t++)e[t-1]=arguments[t];(u=console)[n].apply(u,e)}}function u(n){return i.reduce(function(t,i){return t[i]=r.bind(console,i,n),t},{})}Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],f="warn";r.level=u.level=function(n){f=n};t.default=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=function(){function n(n,t,i){void 0===i&&(i={});this.attrName=n;this.keyName=t;var u=r.Scope.TYPE&r.Scope.ATTRIBUTE;this.scope=null!=i.scope?i.scope&r.Scope.LEVEL|u:r.Scope.ATTRIBUTE;null!=i.whitelist&&(this.whitelist=i.whitelist)}return n.keys=function(n){return[].map.call(n.attributes,function(n){return n.name})},n.prototype.add=function(n,t){return!!this.canAdd(n,t)&&(n.setAttribute(this.keyName,t),!0)},n.prototype.canAdd=function(n,t){return null!=r.query(n,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||this.whitelist.indexOf(t)>-1)},n.prototype.remove=function(n){n.removeAttribute(this.keyName)},n.prototype.value=function(n){var t=n.getAttribute(this.keyName);return this.canAdd(n,t)?t:""},n}();t.default=u},function(n,t,i){function r(n){return null===n||void 0===n}function u(n){return!(!n||"object"!=typeof n||"number"!=typeof n.length)&&"function"==typeof n.copy&&"function"==typeof n.slice&&!(n.length>0&&"number"!=typeof n[0])}function h(n,t,i){var h,a,c,l;if(r(n)||r(t)||n.prototype!==t.prototype)return!1;if(o(n))return!!o(t)&&(n=f.call(n),t=f.call(t),s(n,t,i));if(u(n)){if(!u(t)||n.length!==t.length)return!1;for(h=0;h<n.length;h++)if(n[h]!==t[h])return!1;return!0}try{c=e(n);l=e(t)}catch(n){return!1}if(c.length!=l.length)return!1;for(c.sort(),l.sort(),h=c.length-1;h>=0;h--)if(c[h]!=l[h])return!1;for(h=c.length-1;h>=0;h--)if(a=c[h],!s(n[a],t[a],i))return!1;return typeof n==typeof t}var f=Array.prototype.slice,e=i(55),o=i(56),s=n.exports=function(n,t,i){return i||(i={}),n===t||(n instanceof Date&&t instanceof Date?n.getTime()===t.getTime():!n||!t||"object"!=typeof n&&"object"!=typeof t?i.strict?n===t:n==t:h(n,t,i))}},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f;Object.defineProperty(t,"__esModule",{value:!0});t.default=t.Code=void 0;var l=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),v=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),e=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},y=i(4),p=r(y),w=i(0),u=r(w),b=i(3),k=r(b),d=i(5),g=r(d),nt=i(8),a=r(nt),o=function(n){function t(){return s(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,n),t}(g.default);o.blotName="code";o.tagName="CODE";f=function(n){function t(){return s(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,n),v(t,[{key:"delta",value:function(){var t=this,n=this.domNode.textContent;return n.endsWith("\n")&&(n=n.slice(0,-1)),n.split("\n").reduce(function(n,i){return n.insert(i).insert("\n",t.formats())},new p.default)}},{key:"format",value:function(n,i){if(n!==this.statics.blotName||!i){var u=this.descendant(a.default,this.length()-1),f=l(u,1),r=f[0];null!=r&&r.deleteAt(r.length()-1,1);e(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,n,i)}}},{key:"formatAt",value:function(n,i,r,f){var e;if(0!==i&&null!=u.default.query(r,u.default.Scope.BLOCK)&&(r!==this.statics.blotName||f!==this.statics.formats(this.domNode))&&(e=this.newlineIndex(n),!(e<0||e>=n+i))){var o=this.newlineIndex(n,!0)+1,s=e-o+1,h=this.isolate(o,s),c=h.next;h.format(r,f);c instanceof t&&c.formatAt(0,n-o+i-s,r,f)}}},{key:"insertAt",value:function(n,t,i){if(null==i){var u=this.descendant(a.default,n),r=l(u,2),f=r[0],e=r[1];f.insertAt(e,t)}}},{key:"length",value:function(){var n=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?n:n+1}},{key:"newlineIndex",value:function(n){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,n).lastIndexOf("\n");var t=this.domNode.textContent.slice(n).indexOf("\n");return t>-1?n+t:-1}},{key:"optimize",value:function(n){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n"));e(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,n);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===i.statics.formats(i.domNode)&&(i.optimize(n),i.moveChildren(this),i.remove())}},{key:"replace",value:function(n){e(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,n);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(n){var t=u.default.find(n);null==t?n.parentNode.removeChild(n):t instanceof u.default.Embed?t.remove():t.unwrap()})}}],[{key:"create",value:function(n){var i=e(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return i.setAttribute("spellcheck",!1),i}},{key:"formats",value:function(){return!0}}]),t}(k.default);f.blotName="code-block";f.tagName="PRE";f.TAB="  ";t.Code=o;t.default=f},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),s=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},h=i(0),c=function(n){return n&&n.__esModule?n:{"default":n}}(h),r=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),o(t,[{key:"insertInto",value:function(n,i){0===n.children.length?s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,n,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(c.default.Embed);r.blotName="break";r.tagName="BR";t.default=r},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function u(n,t){var i=document.createElement("a"),r;return i.href=n,r=i.href.slice(0,i.href.indexOf(":")),t.indexOf(r)>-1}Object.defineProperty(t,"__esModule",{value:!0});t.sanitize=t.default=void 0;var h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),f=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},c=i(5),l=function(n){return n&&n.__esModule?n:{"default":n}}(c),r=function(n){function t(){return e(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,n),h(t,[{key:"format",value:function(n,i){if(n!==this.statics.blotName||!i)return f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,n,i);i=this.constructor.sanitize(i);this.domNode.setAttribute("href",i)}}],[{key:"create",value:function(n){var i=f(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return n=this.sanitize(n),i.setAttribute("href",n),i.setAttribute("target","_blank"),i}},{key:"formats",value:function(n){return n.getAttribute("href")}},{key:"sanitize",value:function(n){return u(n,this.PROTOCOL_WHITELIST)?n:this.SANITIZED_URL}}]),t}(l.default);r.blotName="link";r.tagName="A";r.SANITIZED_URL="about:blank";r.PROTOCOL_WHITELIST=["http","https","mailto","tel"];t.default=r;t.sanitize=u},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(t,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),e=i(106),o=function(n){return n&&n.__esModule?n:{"default":n}}(e),s=function(){function n(t){var i=this;r(this,n);this.select=t;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,this.select);this.label.addEventListener("mousedown",function(){i.container.classList.toggle("ql-expanded")});this.select.addEventListener("change",this.update.bind(this))}return f(n,[{key:"buildItem",value:function(n){var i=this,t=document.createElement("span");return t.classList.add("ql-picker-item"),n.hasAttribute("value")&&t.setAttribute("data-value",n.getAttribute("value")),n.textContent&&t.setAttribute("data-label",n.textContent),t.addEventListener("click",function(){i.selectItem(t,!0)}),t}},{key:"buildLabel",value:function(){var n=document.createElement("span");return n.classList.add("ql-picker-label"),n.innerHTML=o.default,this.container.appendChild(n),n}},{key:"buildOptions",value:function(){var t=this,n=document.createElement("span");n.classList.add("ql-picker-options");[].slice.call(this.select.options).forEach(function(i){var r=t.buildItem(i);n.appendChild(r);!0===i.selected&&t.selectItem(r)});this.container.appendChild(n)}},{key:"buildPicker",value:function(){var n=this;[].slice.call(this.select.attributes).forEach(function(t){n.container.setAttribute(t.name,t.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},{key:"close",value:function(){this.container.classList.remove("ql-expanded")}},{key:"selectItem",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=this.container.querySelector(".ql-selected"),i;n!==t&&(null!=t&&t.classList.remove("ql-selected"),null!=n&&(n.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(n.parentNode.children,n),n.hasAttribute("data-value")?this.label.setAttribute("data-value",n.getAttribute("data-value")):this.label.removeAttribute("data-value"),n.hasAttribute("data-label")?this.label.setAttribute("data-label",n.getAttribute("data-label")):this.label.removeAttribute("data-label"),r))&&("function"==typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"==typeof Event?"undefined":u(Event))&&(i=document.createEvent("Event"),i.initEvent("change",!0,!0),this.select.dispatchEvent(i)),this.close())}},{key:"update",value:function(){var n=void 0,t,i;this.select.selectedIndex>-1?(t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex],n=this.select.options[this.select.selectedIndex],this.selectItem(t)):this.selectItem(null);i=null!=n&&n!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",i)}}]),n}();t.default=s},function(n,t,i){"use strict";function u(n){var t=r.find(n);if(null==t)try{t=r.create(n)}catch(i){t=r.create(r.Scope.INLINE);[].slice.call(n.childNodes).forEach(function(n){t.domNode.appendChild(n)});n.parentNode.replaceChild(t.domNode,n);t.attach()}return t}var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var e=i(47),o=i(27),r=i(1),s=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.appendChild=function(n){this.insertBefore(n)},t.prototype.attach=function(){var t=this;n.prototype.attach.call(this);this.children=new e.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(n){try{var i=u(n);t.insertBefore(i,t.children.head)}catch(n){if(n instanceof r.ParchmentError)return;throw n;}})},t.prototype.deleteAt=function(n,t){if(0===n&&t===this.length())return this.remove();this.children.forEachAt(n,t,function(n,t,i){n.deleteAt(t,i)})},t.prototype.descendant=function(n,i){var u=this.children.find(i),r=u[0],f=u[1];return null==n.blotName&&n(r)||null!=n.blotName&&r instanceof n?[r,f]:r instanceof t?r.descendant(n,f):[null,-1]},t.prototype.descendants=function(n,i,r){void 0===i&&(i=0);void 0===r&&(r=Number.MAX_VALUE);var u=[],f=r;return this.children.forEachAt(i,r,function(i,r,e){(null==n.blotName&&n(i)||null!=n.blotName&&i instanceof n)&&u.push(i);i instanceof t&&(u=u.concat(i.descendants(n,r,f)));f-=e}),u},t.prototype.detach=function(){this.children.forEach(function(n){n.detach()});n.prototype.detach.call(this)},t.prototype.formatAt=function(n,t,i,r){this.children.forEachAt(n,t,function(n,t,u){n.formatAt(t,u,i,r)})},t.prototype.insertAt=function(n,t,i){var u=this.children.find(n),f=u[0],o=u[1],e;f?f.insertAt(o,t,i):(e=null==i?r.create("text",t):r.create(t,i),this.appendChild(e))},t.prototype.insertBefore=function(n,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return n instanceof t}))throw new r.ParchmentError("Cannot insert "+n.statics.blotName+" into "+this.statics.blotName);n.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce(function(n,t){return n+t.length()},0)},t.prototype.moveChildren=function(n,t){this.children.forEach(function(i){n.insertBefore(i,t)})},t.prototype.optimize=function(t){if(n.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var i=r.create(this.statics.defaultChild);this.appendChild(i);i.optimize(t)}else this.remove()},t.prototype.path=function(n,i){void 0===i&&(i=!1);var f=this.children.find(n,i),r=f[0],e=f[1],u=[[this,n]];return r instanceof t?u.concat(r.path(e,i)):(null!=r&&u.push([r,e]),u)},t.prototype.removeChild=function(n){this.children.remove(n)},t.prototype.replace=function(i){i instanceof t&&i.moveChildren(this);n.prototype.replace.call(this,i)},t.prototype.split=function(n,t){if(void 0===t&&(t=!1),!t){if(0===n)return this;if(n===this.length())return this.next}var i=this.clone();return this.parent.insertBefore(i,this.next),this.children.forEachAt(n,this.length(),function(n,r){n=n.split(r,t);i.appendChild(n)}),i},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()},t.prototype.update=function(n){var t=this,i=[],f=[];n.forEach(function(n){n.target===t.domNode&&"childList"===n.type&&(i.push.apply(i,n.addedNodes),f.push.apply(f,n.removedNodes))});f.forEach(function(n){if(!(null!=n.parentNode&&"IFRAME"!==n.tagName&&document.body.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var i=r.find(n);null!=i&&(null!=i.domNode.parentNode&&i.domNode.parentNode!==t.domNode||i.detach())}});i.filter(function(n){return n.parentNode==t.domNode}).sort(function(n,t){return n===t?0:n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(n){var f=null,i;null!=n.nextSibling&&(f=r.find(n.nextSibling));i=u(n);i.next==f&&null!=i.next||(null!=i.parent&&i.parent.removeChild(t),t.insertBefore(i,f))})},t}(o.default);t.default=s},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(11),f=i(28),e=i(17),o=i(1),s=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t.formats=function(n){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?n.tagName.toLowerCase():void 0)},t.prototype.attach=function(){n.prototype.attach.call(this);this.attributes=new f.default(this.domNode)},t.prototype.format=function(n,t){var i=o.query(n);i instanceof u.default?this.attributes.attribute(i,t):t&&(null==i||n===this.statics.blotName&&this.formats()[n]===t||this.replaceWith(n,t))},t.prototype.formats=function(){var n=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(n[this.statics.blotName]=t),n},t.prototype.replaceWith=function(t,i){var r=n.prototype.replaceWith.call(this,t,i);return this.attributes.copy(r),r},t.prototype.update=function(t,i){var r=this;n.prototype.update.call(this,t,i);t.some(function(n){return n.target===r.domNode&&"attributes"===n.type})&&this.attributes.build()},t.prototype.wrap=function(i,r){var u=n.prototype.wrap.call(this,i,r);return u instanceof t&&u.statics.scope===this.statics.scope&&this.attributes.move(u),u},t}(e.default);t.default=s},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(27),f=i(1),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t.value=function(){return!0},t.prototype.index=function(n,t){return this.domNode===n||this.domNode.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(n){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return n>0&&(t+=1),[this.parent.domNode,t]},t.prototype.value=function(){return n={},n[this.statics.blotName]=this.statics.value(this.domNode)||!0,n;var n},t.scope=f.Scope.INLINE_BLOT,t}(u.default);t.default=e},function(n,t,i){function r(n){this.ops=n;this.index=0;this.offset=0}var f=i(12),e=i(2),u={attributes:{compose:function(n,t,i){var r,u;"object"!=typeof n&&(n={});"object"!=typeof t&&(t={});r=e(!0,{},t);i||(r=Object.keys(r).reduce(function(n,t){return null!=r[t]&&(n[t]=r[t]),n},{}));for(u in n)void 0!==n[u]&&void 0===t[u]&&(r[u]=n[u]);if(Object.keys(r).length>0)return r},diff:function(n,t){"object"!=typeof n&&(n={});"object"!=typeof t&&(t={});var i=Object.keys(n).concat(Object.keys(t)).reduce(function(i,r){return f(n[r],t[r])||(i[r]=void 0===t[r]?null:t[r]),i},{});if(Object.keys(i).length>0)return i},transform:function(n,t,i){if("object"!=typeof n)return t;if("object"==typeof t){if(!i)return t;var r=Object.keys(t).reduce(function(i,r){return void 0===n[r]&&(i[r]=t[r]),i},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(n){return new r(n)},length:function(n){return"number"==typeof n.delete?n.delete:"number"==typeof n.retain?n.retain:"string"==typeof n.insert?n.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0};r.prototype.next=function(n){var t,r,f,i;return(n||(n=1/0),t=this.ops[this.index],t)?(r=this.offset,f=u.length(t),n>=f-r?(n=f-r,this.index+=1,this.offset=0):this.offset+=n,"number"==typeof t.delete)?{"delete":n}:(i={},t.attributes&&(i.attributes=t.attributes),"number"==typeof t.retain?i.retain=n:i.insert="string"==typeof t.insert?t.insert.substr(r,n):t.insert,i):{retain:1/0}};r.prototype.peek=function(){return this.ops[this.index]};r.prototype.peekLength=function(){return this.ops[this.index]?u.length(this.ops[this.index])-this.offset:1/0};r.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"};n.exports=u},function(n){var t=function(){"use strict";function t(n,t){return null!=t&&n instanceof t}function n(u,o,s,h,c){function l(u,s){var p,k,nt,tt,it,d,rt,w,g,b;if(null===u)return null;if(0===s||"object"!=typeof u)return u;if(t(u,i))p=new i;else if(t(u,r))p=new r;else if(t(u,f))p=new f(function(n,t){u.then(function(t){n(l(t,s-1))},function(n){t(l(n,s-1))})});else if(n.__isArray(u))p=[];else if(n.__isRegExp(u))p=new RegExp(u.source,e(u)),u.lastIndex&&(p.lastIndex=u.lastIndex);else if(n.__isDate(u))p=new Date(u.getTime());else{if(y&&Buffer.isBuffer(u))return p=new Buffer(u.length),u.copy(p),p;t(u,Error)?p=Object.create(u):void 0===h?(k=Object.getPrototypeOf(u),p=Object.create(k)):(p=Object.create(h),k=h)}if(o){if(nt=a.indexOf(u),-1!=nt)return v[nt];a.push(u);v.push(p)}t(u,i)&&u.forEach(function(n,t){var i=l(t,s-1),r=l(n,s-1);p.set(i,r)});t(u,r)&&u.forEach(function(n){var t=l(n,s-1);p.add(t)});for(w in u)k&&(tt=Object.getOwnPropertyDescriptor(k,w)),tt&&null==tt.set||(p[w]=l(u[w],s-1));if(Object.getOwnPropertySymbols)for(it=Object.getOwnPropertySymbols(u),w=0;w<it.length;w++)d=it[w],b=Object.getOwnPropertyDescriptor(u,d),(!b||b.enumerable||c)&&(p[d]=l(u[d],s-1),b.enumerable||Object.defineProperty(p,d,{enumerable:!1}));if(c)for(rt=Object.getOwnPropertyNames(u),w=0;w<rt.length;w++)g=rt[w],b=Object.getOwnPropertyDescriptor(u,g),b&&b.enumerable||(p[g]=l(u[g],s-1),Object.defineProperty(p,g,{enumerable:!1}));return p}"object"==typeof o&&(s=o.depth,h=o.prototype,c=o.includeNonEnumerable,o=o.circular);var a=[],v=[],y="undefined"!=typeof Buffer;return void 0===o&&(o=!0),void 0===s&&(s=1/0),l(u,s)}function u(n){return Object.prototype.toString.call(n)}function o(n){return"object"==typeof n&&"[object Date]"===u(n)}function s(n){return"object"==typeof n&&"[object Array]"===u(n)}function h(n){return"object"==typeof n&&"[object RegExp]"===u(n)}function e(n){var t="";return n.global&&(t+="g"),n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),t}var i,r,f;try{i=Map}catch(t){i=function(){}}try{r=Set}catch(t){r=function(){}}try{f=Promise}catch(t){f=function(){}}return n.clonePrototype=function(n){if(null===n)return null;var t=function(){};return t.prototype=n,new t},n.__objToStr=u,n.__isDate=o,n.__isArray=s,n.__isRegExp=h,n.__getRegExpFlags=e,n}();"object"==typeof n&&n.exports&&(n.exports=t)},function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function s(n){if(Array.isArray(n)){for(var t=0,i=Array(n.length);t<n.length;t++)i[t]=n[t];return i}return Array.from(n)}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function l(n,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),n.contains(t)}Object.defineProperty(t,"__esModule",{value:!0});t.default=t.Range=void 0;var u=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),v=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),y=i(0),f=e(y),p=i(23),w=e(p),b=i(21),a=e(b),k=i(12),d=e(k),g=i(9),r=e(g),nt=i(10),tt=e(nt),h=tt.default("quill:selection"),o=function n(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c(this,n);this.index=t;this.length=i},it=function(){function n(t,i){var u=this,e;c(this,n);this.emitter=i;this.scroll=t;this.composing=!1;this.root=this.scroll.domNode;this.root.addEventListener("compositionstart",function(){u.composing=!0});this.root.addEventListener("compositionend",function(){if(u.composing=!1,u.cursor.parent){var n=u.cursor.restore();if(!n)return;setTimeout(function(){u.setNativeRange(n.startNode,n.startOffset,n.endNode,n.endOffset)},1)}});this.cursor=f.default.create("cursor",this);this.lastRange=this.savedRange=new o(0,0);this.root.addEventListener("click",function(n){var i=f.default.find(n.target,!0),e=document.querySelector(".ql-embed-selected"),s;(e&&e.classList.remove("ql-embed-selected"),i instanceof f.default.Embed)&&(i.domNode.classList.add("ql-embed-selected"),s=new o(i.offset(t),i.length()),u.setRange(s,r.default.sources.USER),n.stopPropagation())});e=0;this.emitter.listenDOM("mousedown",document.body,function(){e+=1});this.emitter.listenDOM("mouseup",document.body,function(){0==(e-=1)&&u.update(r.default.sources.USER)});this.emitter.listenDOM("selectionchange",document,function(){0===e&&setTimeout(u.update.bind(u,r.default.sources.USER),1)});this.emitter.on(r.default.events.EDITOR_CHANGE,function(n,t){n===r.default.events.TEXT_CHANGE&&t.length()>0&&u.update(r.default.sources.SILENT)});this.emitter.on(r.default.events.SCROLL_BEFORE_UPDATE,function(){if(u.hasFocus()){var n=u.getNativeRange();null!=n&&n.start.node!==u.cursor.textNode&&u.emitter.once(r.default.events.SCROLL_UPDATE,function(){try{u.setNativeRange(n.start.node,n.start.offset,n.end.node,n.end.offset)}catch(n){}})}});this.emitter.on(r.default.events.SCROLL_OPTIMIZE,function(n,t){if(t.range){var i=t.range,r=i.startNode,f=i.startOffset,e=i.endNode,o=i.endOffset;u.setNativeRange(r,f,e,o)}});this.update(r.default.sources.SILENT)}return v(n,[{key:"fixInlineEmbed",value:function(n){if(null!=n){var e=[n.start,n.end].map(function(n){var t=f.default.find(n.node,!0),i,r,s,e,h,o;if(t instanceof w.default){if(i=void 0,r=void 0,n.node===t.leftGuard&&1===n.offset)return s=t.position(t.length()),e=u(s,2),i=e[0],r=e[1],{node:i,offset:r};if(n.node===t.rightGuard&&0===n.offset)return h=t.position(0),o=u(h,2),i=o[0],r=o[1],{node:i,offset:r}}return n}),r=u(e,2),t=r[0],i=r[1];n.start===t&&n.end===i||this.setNativeRange(t.node,t.offset,i.node,i.offset)}}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(n,t){var i,r,u;if((null==this.scroll.whitelist||this.scroll.whitelist[n])&&(this.scroll.update(),i=this.getNativeRange(),null!=i&&i.native.collapsed&&!f.default.query(n,f.default.Scope.BLOCK))){if(i.start.node!==this.cursor.textNode){if(r=f.default.find(i.start.node,!1),null==r)return;r instanceof f.default.Leaf?(u=r.split(i.start.offset),r.parent.insertBefore(this.cursor,u)):r.insertBefore(this.cursor,i.start.node);this.cursor.attach()}this.cursor.format(n,t);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}},{key:"getBounds",value:function(n){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=this.scroll.length(),y,h,r,p,c,w,l,o,f;n=Math.min(n,a-1);s=Math.min(n+s,a-1)-n;var i=void 0,b=this.scroll.leaf(n),v=u(b,2),e=v[0],t=v[1];return null==e?null:(y=e.position(t,!0),h=u(y,2),i=h[0],t=h[1],r=document.createRange(),s>0)?(r.setStart(i,t),p=this.scroll.leaf(n+s),c=u(p,2),e=c[0],t=c[1],null==e)?null:(w=e.position(t,!0),l=u(w,2),i=l[0],t=l[1],r.setEnd(i,t),r.getBoundingClientRect()):(o="left",f=void 0,i instanceof Text?(t<i.data.length?(r.setStart(i,t),r.setEnd(i,t+1)):(r.setStart(i,t-1),r.setEnd(i,t),o="right"),f=r.getBoundingClientRect()):(f=e.domNode.getBoundingClientRect(),t>0&&(o="right")),{bottom:f.top+f.height,height:f.height,left:f[o],right:f[o],top:f.top,width:0})}},{key:"getNativeRange",value:function(){var n=document.getSelection(),t,i;return null==n||n.rangeCount<=0?null:(t=n.getRangeAt(0),null==t)?null:(i=this.normalizeNative(t),h.info("getNativeRange",i),i)}},{key:"getRange",value:function(){var n=this.getNativeRange();return null==n?[null,null]:[this.normalizedToRange(n),n]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(n){var h=this,t=[[n.start.node,n.start.offset]];n.native.collapsed||t.push([n.end.node,n.end.offset]);var i=t.map(function(n){var r=u(n,2),e=r[0],o=r[1],t=f.default.find(e,!0),i=t.offset(h.scroll);return 0===o?i:t instanceof f.default.Container?i+t.length():i+t.index(e,o)}),r=Math.min(Math.max.apply(Math,s(i)),this.scroll.length()-1),e=Math.min.apply(Math,[r].concat(s(i)));return new o(e,r-e)}},{key:"normalizeNative",value:function(n){if(!l(this.root,n.startContainer)||!n.collapsed&&!l(this.root,n.endContainer))return null;var t={start:{node:n.startContainer,offset:n.startOffset},end:{node:n.endContainer,offset:n.endOffset},"native":n};return[t.start,t.end].forEach(function(n){for(var t=n.node,i=n.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>i)t=t.childNodes[i],i=0;else{if(t.childNodes.length!==i)break;t=t.lastChild;i=t instanceof Text?t.data.length:t.childNodes.length+1}n.node=t;n.offset=i}),t}},{key:"rangeToNative",value:function(n){var i=this,r=n.collapsed?[n.index]:[n.index,n.index+n.length],t=[],f=this.scroll.length();return r.forEach(function(n,r){n=Math.min(f-1,n);var o=void 0,c=i.scroll.leaf(n),s=u(c,2),l=s[0],e=s[1],a=l.position(e,0!==r),h=u(a,2);o=h[0];e=h[1];t.push(o,e)}),t.length<2&&(t=t.concat(t)),t}},{key:"scrollIntoView",value:function(n){var t=this.lastRange,i,s,r;if(null!=t&&(i=this.getBounds(t.index,t.length),null!=i)){var f=this.scroll.length()-1,h=this.scroll.line(Math.min(t.index,f)),c=u(h,1),e=c[0],o=e;t.length>0&&(s=this.scroll.line(Math.min(t.index+t.length,f)),o=u(s,1)[0]);null!=e&&null!=o&&(r=n.getBoundingClientRect(),i.top<r.top?n.scrollTop-=r.top-i.top:i.bottom>r.bottom&&(n.scrollTop+=i.bottom-r.bottom))}}},{key:"setNativeRange",value:function(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u,r,e;(h.info("setNativeRange",n,t,i,f),null==n||null!=this.root.parentNode&&null!=n.parentNode&&null!=i.parentNode)&&(u=document.getSelection(),null!=u&&(null!=n?(this.hasFocus()||this.root.focus(),r=(this.getNativeRange()||{}).native,(null==r||o||n!==r.startContainer||t!==r.startOffset||i!==r.endContainer||f!==r.endOffset)&&("BR"==n.tagName&&(t=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode),"BR"==i.tagName&&(f=[].indexOf.call(i.parentNode.childNodes,i),i=i.parentNode),e=document.createRange(),e.setStart(n,t),e.setEnd(i,f),u.removeAllRanges(),u.addRange(e))):(u.removeAllRanges(),this.root.blur(),document.body.focus())))}},{key:"setRange",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.default.sources.API,u;("string"==typeof t&&(i=t,t=!1),h.info("setRange",n),null!=n)?(u=this.rangeToNative(n),this.setNativeRange.apply(this,s(u).concat([t]))):this.setNativeRange(null);this.update(i)}},{key:"update",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.default.sources.USER,f=this.lastRange,h=this.getRange(),e=u(h,2),c=e[0],n=e[1],o,t,s;(this.fixInlineEmbed(n),this.lastRange=c,null!=this.lastRange&&(this.savedRange=this.lastRange),d.default(f,this.lastRange))||(!this.composing&&null!=n&&n.native.collapsed&&n.start.node!==this.cursor.textNode&&this.cursor.restore(),t=[r.default.events.SELECTION_CHANGE,a.default(this.lastRange),a.default(f),i],((o=this.emitter).emit.apply(o,[r.default.events.EDITOR_CHANGE].concat(t)),i!==r.default.sources.SILENT)&&(s=this.emitter).emit.apply(s,t))}}]),n}();t.Range=o;t.default=it},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},a=i(0),u=f(a),v=i(8),e=f(v),r="﻿",y=function(n){function t(n){o(this,t);var i=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n)),u=document.createElement("span");return u.setAttribute("contenteditable",!1),[].slice.call(i.domNode.childNodes).forEach(function(n){u.appendChild(n)}),i.leftGuard=document.createTextNode(r),i.rightGuard=document.createTextNode(r),i.domNode.appendChild(i.leftGuard),i.domNode.appendChild(u),i.domNode.appendChild(i.rightGuard),i}return h(t,n),c(t,[{key:"index",value:function(n,i){return n===this.leftGuard?0:n===this.rightGuard?1:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,n,i)}},{key:"restore",value:function(n){var f=void 0,i=void 0,t=n.data.split(r).join(""),o;return n===this.leftGuard?this.prev instanceof e.default?(o=this.prev.length(),this.prev.insertAt(o,t),f={startNode:this.prev.domNode,startOffset:o+t.length}):(i=document.createTextNode(t),this.parent.insertBefore(u.default.create(i),this),f={startNode:i,startOffset:t.length}):n===this.rightGuard&&(this.next instanceof e.default?(this.next.insertAt(0,t),f={startNode:this.next.domNode,startOffset:t.length}):(i=document.createTextNode(t),this.parent.insertBefore(u.default.create(i),this.next),f={startNode:i,startOffset:t.length})),n.data=r,f}},{key:"update",value:function(n,t){var i=this;n.forEach(function(n){if("characterData"===n.type&&(n.target===i.leftGuard||n.target===i.rightGuard)){var r=i.restore(n.target);r&&(t.range=r)}})}}]),t}(u.default.Embed);t.default=y},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var h=i(0),c=u(h),f=i(3),l=u(f),r=function(n){function t(){return e(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,n),t}(c.default.Container);r.allowedChildren=[l.default,f.BlockEmbed,r];t.default=r},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var s=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),h=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},c=i(0),r=function(n){return n&&n.__esModule?n:{"default":n}}(c),u=function(n){function t(){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,n),s(t,[{key:"value",value:function(n){var i=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,n);return i.startsWith("rgb(")?(i=i.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+i.split(",").map(function(n){return("00"+parseInt(n).toString(16)).slice(-2)}).join("")):i}}]),t}(r.default.Attributor.Style),l=new r.default.Attributor.Class("color","ql-color",{scope:r.default.Scope.INLINE}),a=new u("color","color",{scope:r.default.Scope.INLINE});t.ColorAttributor=u;t.ColorClass=l;t.ColorStyle=a},function(n,t,i){"use strict";n.exports={align:{"":i(75),center:i(76),right:i(77),justify:i(78)},background:i(79),blockquote:i(80),bold:i(81),clean:i(82),code:i(40),"code-block":i(40),color:i(83),direction:{"":i(84),rtl:i(85)},float:{center:i(86),full:i(87),left:i(88),right:i(89)},formula:i(90),header:{1:i(91),2:i(92)},italic:i(93),image:i(94),indent:{"+1":i(95),"-1":i(96)},link:i(97),list:{ordered:i(98),bullet:i(99),check:i(100)},script:{sub:i(101),"super":i(102)},strike:i(103),underline:i(104),video:i(105)}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=function(){function n(n){this.domNode=n;this.attach()}return Object.defineProperty(n.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),n.create=function(n){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof n&&(n=n.toUpperCase(),parseInt(n).toString()===n&&(n=parseInt(n))),t="number"==typeof n?document.createElement(this.tagName[n-1]):this.tagName.indexOf(n)>-1?document.createElement(n):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},n.prototype.attach=function(){this.domNode[r.DATA_KEY]={blot:this}},n.prototype.clone=function(){var n=this.domNode.cloneNode(!1);return r.create(n)},n.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[r.DATA_KEY]},n.prototype.deleteAt=function(n,t){this.isolate(n,t).remove()},n.prototype.formatAt=function(n,t,i,u){var e=this.isolate(n,t),f;null!=r.query(i,r.Scope.BLOT)&&u?e.wrap(i,u):null!=r.query(i,r.Scope.ATTRIBUTE)&&(f=r.create(this.statics.scope),e.wrap(f),f.format(i,u))},n.prototype.insertAt=function(n,t,i){var u=null==i?r.create("text",t):r.create(t,i),f=this.split(n);this.parent.insertBefore(u,f)},n.prototype.insertInto=function(n,t){if(null!=this.parent&&this.parent.children.remove(this),n.children.insertBefore(this,t),null!=t)var i=t.domNode;null!=this.next&&this.domNode.nextSibling==i||n.domNode.insertBefore(this.domNode,void 0!==i?i:null);this.parent=n},n.prototype.isolate=function(n,t){var i=this.split(n);return i.split(t),i},n.prototype.length=function(){return 1},n.prototype.offset=function(n){return void 0===n&&(n=this.parent),null==this.parent||this==n?0:this.parent.children.offset(this)+this.parent.offset(n)},n.prototype.optimize=function(){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},n.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()},n.prototype.replace=function(n){null!=n.parent&&(n.parent.insertBefore(this,n.next),n.remove())},n.prototype.replaceWith=function(n,t){var i="string"==typeof n?r.create(n,t):n;return i.replace(this),i},n.prototype.split=function(n){return 0===n?this:this.next},n.prototype.update=function(){},n.prototype.wrap=function(n,t){var i="string"==typeof n?r.create(n,t):n;return null!=this.parent&&this.parent.insertBefore(i,this.next),i.appendChild(this),i},n.blotName="abstract",n}();t.default=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(11),f=i(29),e=i(30),u=i(1),o=function(){function n(n){this.attributes={};this.domNode=n;this.build()}return n.prototype.attribute=function(n,t){t?n.add(this.domNode,t)&&(null!=n.value(this.domNode)?this.attributes[n.attrName]=n:delete this.attributes[n.attrName]):(n.remove(this.domNode),delete this.attributes[n.attrName])},n.prototype.build=function(){var n=this;this.attributes={};var t=r.default.keys(this.domNode),i=f.default.keys(this.domNode),o=e.default.keys(this.domNode);t.concat(i).concat(o).forEach(function(t){var i=u.query(t,u.Scope.ATTRIBUTE);i instanceof r.default&&(n.attributes[i.attrName]=i)})},n.prototype.copy=function(n){var t=this;Object.keys(this.attributes).forEach(function(i){var r=t.attributes[i].value(t.domNode);n.format(i,r)})},n.prototype.move=function(n){var t=this;this.copy(n);Object.keys(this.attributes).forEach(function(n){t.attributes[n].remove(t.domNode)});this.attributes={}},n.prototype.values=function(){var n=this;return Object.keys(this.attributes).reduce(function(t,i){return t[i]=n.attributes[i].value(n.domNode),t},{})},n}();t.default=o},function(n,t,i){"use strict";function r(n,t){return(n.getAttribute("class")||"").split(/\s+/).filter(function(n){return 0===n.indexOf(t+"-")})}var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u,f;Object.defineProperty(t,"__esModule",{value:!0});u=i(11);f=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t.keys=function(n){return(n.getAttribute("class")||"").split(/\s+/).map(function(n){return n.split("-").slice(0,-1).join("-")})},t.prototype.add=function(n,t){return!!this.canAdd(n,t)&&(this.remove(n),n.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(n){r(n,this.keyName).forEach(function(t){n.classList.remove(t)});0===n.classList.length&&n.removeAttribute("class")},t.prototype.value=function(n){var i=r(n,this.keyName)[0]||"",t=i.slice(this.keyName.length+1);return this.canAdd(n,t)?t:""},t}(u.default);t.default=f},function(n,t,i){"use strict";function r(n){var t=n.split("-"),i=t.slice(1).map(function(n){return n[0].toUpperCase()+n.slice(1)}).join("");return t[0]+i}var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u,f;Object.defineProperty(t,"__esModule",{value:!0});u=i(11);f=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t.keys=function(n){return(n.getAttribute("style")||"").split(";").map(function(n){return n.split(":")[0].trim()})},t.prototype.add=function(n,t){return!!this.canAdd(n,t)&&(n.style[r(this.keyName)]=t,!0)},t.prototype.remove=function(n){n.style[r(this.keyName)]="";n.getAttribute("style")||n.removeAttribute("style")},t.prototype.value=function(n){var t=n.style[r(this.keyName)];return this.canAdd(n,t)?t:""},t}(u.default);t.default=f},function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),u=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=i(0),f=e(a),v=i(8),y=e(v),r=function(n){function t(n,i){s(this,t);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.selection=i,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return c(t,n),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(n,i){if(0!==this._length)return u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,n,i);for(var r=this,e=0;null!=r&&r.statics.scope!==f.default.Scope.BLOCK_BLOT;)e+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(e,t.CONTENTS.length,n,i),this._length=0)}},{key:"index",value:function(n,i){return n===this.textNode?0:u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,n,i)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){var e,s,c,h;if(!this.selection.composing&&null!=this.parent){var o=this.textNode,n=this.selection.getNativeRange(),i=void 0,r=void 0,u=void 0;for(null!=n&&n.start.node===o&&n.end.node===o&&(e=[o,n.start.offset,n.end.offset],i=e[0],r=e[1],u=e[2]);null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS&&(s=this.textNode.data.split(t.CONTENTS).join(""),this.next instanceof y.default?(i=this.next.domNode,this.next.insertAt(0,s),this.textNode.data=t.CONTENTS):(this.textNode.data=s,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))),this.remove(),null!=r)return c=[r,u].map(function(n){return Math.max(0,Math.min(i.data.length,n-1))}),h=l(c,2),r=h[0],u=h[1],{startNode:i,startOffset:r,endNode:i,endOffset:u}}}},{key:"update",value:function(n,t){var r=this,i;n.some(function(n){return"characterData"===n.type&&n.target===r.textNode})&&(i=this.restore(),i&&(t.range=i))}},{key:"value",value:function(){return""}}]),t}(f.default.Embed);r.blotName="cursor";r.className="ql-cursor";r.tagName="span";r.CONTENTS="﻿";t.default=r},function(n,t){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),i=function(){function n(t,i){r(this,n);this.quill=t;this.options=i;this.modules={}}return u(n,[{key:"init",value:function(){var n=this;Object.keys(this.options.modules).forEach(function(t){null==n.modules[t]&&n.addModule(t)})}},{key:"addModule",value:function(n){var t=this.quill.constructor.import("modules/"+n);return this.modules[n]=new t(this.quill,this.options.modules[n]||{}),this.modules[n]}}]),n}();i.DEFAULTS={modules:{}};i.themes={"default":i};t.default=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var f=i(0),r=function(n){return n&&n.__esModule?n:{"default":n}}(f),u={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},e=new r.default.Attributor.Attribute("align","align",u),o=new r.default.Attributor.Class("align","ql-align",u),s=new r.default.Attributor.Style("align","text-align",u);t.AlignAttribute=e;t.AlignClass=o;t.AlignStyle=s},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BackgroundStyle=t.BackgroundClass=void 0;var u=i(0),r=function(n){return n&&n.__esModule?n:{"default":n}}(u),f=i(25),e=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),o=new f.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});t.BackgroundClass=e;t.BackgroundStyle=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var f=i(0),r=function(n){return n&&n.__esModule?n:{"default":n}}(f),u={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},e=new r.default.Attributor.Attribute("direction","dir",u),o=new r.default.Attributor.Class("direction","ql-direction",u),s=new r.default.Attributor.Style("direction","direction",u);t.DirectionAttribute=e;t.DirectionClass=o;t.DirectionStyle=s},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});t.FontClass=t.FontStyle=void 0;var s=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),h=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},c=i(0),r=function(n){return n&&n.__esModule?n:{"default":n}}(c),u={scope:r.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new r.default.Attributor.Class("font","ql-font",u),a=function(n){function t(){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,n),s(t,[{key:"value",value:function(n){return h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),t}(r.default.Attributor.Style),v=new a("font","font-family",u);t.FontStyle=v;t.FontClass=l},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SizeStyle=t.SizeClass=void 0;var u=i(0),r=function(n){return n&&n.__esModule?n:{"default":n}}(u),f=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),e=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=f;t.SizeStyle=e},function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function d(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function g(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function nt(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function h(n,t){var o,s,i;if(!(0===n.index||this.quill.getLength()<=1)){var h=this.quill.getLine(n.index),c=f(h,1),l=c[0],u={};if(0===t.offset){var v=this.quill.getLine(n.index-1),y=f(v,1),e=y[0];null!=e&&e.length()>1&&(o=l.formats(),s=this.quill.getFormat(n.index-1,1),u=a.default.attributes.diff(o,s)||{})}i=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(n.index-i,i,r.default.sources.USER);Object.keys(u).length>0&&this.quill.formatLine(n.index-i,i,u,r.default.sources.USER);this.quill.focus()}}function v(n,t){var i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1,h,c;if(!(n.index>=this.quill.getLength()-i)){var u={},e=0,l=this.quill.getLine(n.index),v=f(l,1),o=v[0];if(t.offset>=o.length()-1){var y=this.quill.getLine(n.index+1),p=f(y,1),s=p[0];s&&(h=o.formats(),c=this.quill.getFormat(n.index,1),u=a.default.attributes.diff(h,c)||{},e=s.length())}this.quill.deleteText(n.index,i,r.default.sources.USER);Object.keys(u).length>0&&this.quill.formatLine(n.index+e-1,i,u,r.default.sources.USER)}}function y(n){var t=this.quill.getLines(n),i={},u,f;t.length>1&&(u=t[0].formats(),f=t[t.length-1].formats(),i=a.default.attributes.diff(f,u)||{});this.quill.deleteText(n,r.default.sources.USER);Object.keys(i).length>0&&this.quill.formatLine(n.index,1,i,r.default.sources.USER);this.quill.setSelection(n.index,r.default.sources.SILENT);this.quill.focus()}function tt(n,t){var u=this,i;n.length>0&&this.quill.scroll.deleteAt(n.index,n.length);i=Object.keys(t.format).reduce(function(n,i){return o.default.query(i,o.default.Scope.BLOCK)&&!Array.isArray(t.format[i])&&(n[i]=t.format[i]),n},{});this.quill.insertText(n.index,"\n",i,r.default.sources.USER);this.quill.setSelection(n.index+1,r.default.sources.SILENT);this.quill.focus();Object.keys(t.format).forEach(function(n){null==i[n]&&(Array.isArray(t.format[n])||"link"!==n&&u.quill.format(n,t.format[n],r.default.sources.USER))})}function p(n){return{key:u.keys.TAB,shiftKey:!n,format:{"code-block":!0},handler:function(t){var i=o.default.query("code-block"),s=t.index,h=t.length,a=this.quill.scroll.descendant(i,s),l=f(a,2),e=l[0],u=l[1];if(null!=e){var v=this.quill.getIndex(e),c=e.newlineIndex(u,!0)+1,y=e.newlineIndex(v+u+h),p=e.domNode.textContent.slice(c,y).split("\n");u=0;p.forEach(function(t,r){n?(e.insertAt(c+u,i.TAB),u+=i.TAB.length,0===r?s+=i.TAB.length:h+=i.TAB.length):t.startsWith(i.TAB)&&(e.deleteAt(c+u,i.TAB.length),u-=i.TAB.length,0===r?s-=i.TAB.length:h-=i.TAB.length);u+=t.length+1});this.quill.update(r.default.sources.USER);this.quill.setSelection(s,h,r.default.sources.SILENT)}}}}function c(n){return{key:n[0].toUpperCase(),shortKey:!0,handler:function(t,i){this.quill.format(n,!i.format[n],r.default.sources.USER)}}}function l(n){if("string"==typeof n||"number"==typeof n)return l({key:n});if("object"===(void 0===n?"undefined":w(n))&&(n=rt.default(n,!1)),"string"==typeof n.key)if(null!=u.keys[n.key.toUpperCase()])n.key=u.keys[n.key.toUpperCase()];else{if(1!==n.key.length)return null;n.key=n.key.toUpperCase().charCodeAt(0)}return n.shortKey&&(n[k]=n.shortKey,delete n.shortKey),n}Object.defineProperty(t,"__esModule",{value:!0});t.SHORTKEY=t.default=void 0;var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},f=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),it=i(21),rt=e(it),ut=i(12),ft=e(ut),et=i(2),ot=e(et),st=i(4),s=e(st),ht=i(20),a=e(ht),ct=i(0),o=e(ct),lt=i(6),r=e(lt),at=i(10),vt=e(at),yt=i(7),pt=e(yt),wt=vt.default("quill:keyboard"),k=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",u=function(n){function t(n,i){d(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,i));return r.bindings={},Object.keys(r.options.bindings).forEach(function(t){("list autofill"!==t||null==n.scroll.whitelist||n.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])}),r.addBinding({key:t.keys.ENTER,shiftKey:null},tt),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},h),r.addBinding({key:t.keys.DELETE},{collapsed:!0},v)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},h),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},v)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},y),r.addBinding({key:t.keys.DELETE},{collapsed:!1},y),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},h),r.listen(),r}return nt(t,n),b(t,null,[{key:"match",value:function(n,t){return t=l(t),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(i){return!!t[i]!==n[i]&&null!==t[i]})&&t.key===(n.which||n.keyCode)}}]),b(t,[{key:"addBinding",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=l(n);if(null==t||null==t.key)return wt.warn("Attempted to add invalid keyboard binding",t);"function"==typeof i&&(i={handler:i});"function"==typeof r&&(r={handler:r});t=ot.default(t,i,r);this.bindings[t.key]=this.bindings[t.key]||[];this.bindings[t.key].push(t)}},{key:"listen",value:function(){var n=this;this.quill.root.addEventListener("keydown",function(i){var h,e,r;if(!i.defaultPrevented&&(h=i.which||i.keyCode,e=(n.bindings[h]||[]).filter(function(n){return t.match(i,n)}),0!==e.length&&(r=n.quill.getSelection(),null!=r&&n.quill.hasFocus()))){var p=n.quill.getLine(r.index),c=f(p,2),b=c[0],k=c[1],d=n.quill.getLeaf(r.index),l=f(d,2),s=l[0],a=l[1],g=0===r.length?[s,a]:n.quill.getLeaf(r.index+r.length),v=f(g,2),y=v[0],nt=v[1],tt=s instanceof o.default.Text?s.value().slice(0,a):"",it=y instanceof o.default.Text?y.value().slice(nt):"",u={collapsed:0===r.length,empty:0===r.length&&b.length()<=1,format:n.quill.getFormat(r),offset:k,prefix:tt,suffix:it};e.some(function(t){if(null!=t.collapsed&&t.collapsed!==u.collapsed||null!=t.empty&&t.empty!==u.empty||null!=t.offset&&t.offset!==u.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(n){return null==u.format[n]}))return!1}else if("object"===w(t.format)&&!Object.keys(t.format).every(function(n){return!0===t.format[n]?null!=u.format[n]:!1===t.format[n]?null==u.format[n]:ft.default(t.format[n],u.format[n])}))return!1;return!(null!=t.prefix&&!t.prefix.test(u.prefix))&&!(null!=t.suffix&&!t.suffix.test(u.suffix))&&!0!==t.handler.call(n,r,u)})&&i.preventDefault()}})}}]),t}(pt.default);u.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};u.DEFAULTS={bindings:{bold:c("bold"),italic:c("italic"),underline:c("underline"),indent:{key:u.keys.TAB,format:["blockquote","indent","list"],handler:function(n,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",r.default.sources.USER)}},outdent:{key:u.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(n,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",r.default.sources.USER)}},"outdent backspace":{key:u.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(n,t){null!=t.format.indent?this.quill.format("indent","-1",r.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,r.default.sources.USER)}},"indent code-block":p(!0),"outdent code-block":p(!1),"remove tab":{key:u.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(n){this.quill.deleteText(n.index-1,1,r.default.sources.USER)}},tab:{key:u.keys.TAB,handler:function(n){this.quill.history.cutoff();var t=(new s.default).retain(n.index).delete(n.length).insert("\t");this.quill.updateContents(t,r.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(n.index+1,r.default.sources.SILENT)}},"list empty enter":{key:u.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(n,t){this.quill.format("list",!1,r.default.sources.USER);t.format.indent&&this.quill.format("indent",!1,r.default.sources.USER)}},"checklist enter":{key:u.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(n){var i=this.quill.getLine(n.index),t=f(i,2),u=t[0],e=t[1],o=(new s.default).retain(n.index).insert("\n",{list:"checked"}).retain(u.length()-e-1).retain(1,{list:"unchecked"});this.quill.updateContents(o,r.default.sources.USER);this.quill.setSelection(n.index+1,r.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:u.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(n,t){var u=this.quill.getLine(n.index),i=f(u,2),e=i[0],o=i[1],h=(new s.default).retain(n.index).insert("\n",t.format).retain(e.length()-o-1).retain(1,{header:null});this.quill.updateContents(h,r.default.sources.USER);this.quill.setSelection(n.index+1,r.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(1\.|-|\[ ?\]|\[x\])$/,handler:function(n,t){var u=t.prefix.length,i=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":i="unchecked";break;case"[x]":i="checked";break;case"-":i="bullet";break;default:i="ordered"}this.quill.insertText(n.index," ",r.default.sources.USER);this.quill.history.cutoff();var h=this.quill.getLine(n.index+1),e=f(h,2),c=e[0],o=e[1],l=(new s.default).retain(n.index+1-o).delete(u+1).retain(c.length()-1-o).retain(1,{list:i});this.quill.updateContents(l,r.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(n.index-u,r.default.sources.SILENT)}},"code exit":{key:u.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(n){this.quill.format("code-block",!1,r.default.sources.USER);this.quill.deleteText(n.index-2,1,r.default.sources.USER)}}}};t.default=u;t.SHORTKEY=k},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),u=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},h=i(5),c=function(n){return n&&n.__esModule?n:{"default":n}}(h),r=function(n){function t(){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,n),s(t,[{key:"optimize",value:function(n){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,n);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return u(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(c.default);r.blotName="bold";r.tagName=["STRONG","B"];t.default=r},function(n){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"><\/polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"><\/polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13><\/line> <\/svg>'},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),r=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},s=i(16),h=function(n){return n&&n.__esModule?n:{"default":n}}(s),c=function(n){function t(n,i){u(this,t);var r=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.label.innerHTML=i,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(n){n.classList.add("ql-primary")}),r}return e(t,n),o(t,[{key:"buildItem",value:function(n){var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,n);return i.style.backgroundColor=n.getAttribute("value")||"",i}},{key:"selectItem",value:function(n,i){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,n,i);var u=this.label.querySelector(".ql-color-label"),f=n?n.getAttribute("data-value")||"":"";u&&("line"===u.tagName?u.style.stroke=f:u.style.fill=f)}}]),t}(h.default);t.default=c},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function f(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var e=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),o=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},s=i(16),h=function(n){return n&&n.__esModule?n:{"default":n}}(s),c=function(n){function t(n,i){r(this,t);var f=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return f.container.classList.add("ql-icon-picker"),[].forEach.call(f.container.querySelectorAll(".ql-picker-item"),function(n){n.innerHTML=i[n.getAttribute("data-value")||""]}),f.defaultItem=f.container.querySelector(".ql-selected"),f.selectItem(f.defaultItem),f}return f(t,n),e(t,[{key:"selectItem",value:function(n,i){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,n,i);n=n||this.defaultItem;this.label.innerHTML=n.innerHTML}}]),t}(h.default);t.default=c},function(n,t){"use strict";function i(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),u=function(){function n(t,r){var u=this;i(this,n);this.quill=t;this.boundsContainer=r||document.body;this.root=t.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){u.root.style.marginTop=-1*u.quill.root.scrollTop+"px"});this.hide()}return r(n,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(n){var u=n.left+n.width/2-this.root.offsetWidth/2,f=n.bottom+this.quill.root.scrollTop,e,o;this.root.style.left=u+"px";this.root.style.top=f+"px";this.root.classList.remove("ql-flip");var i=this.boundsContainer.getBoundingClientRect(),t=this.root.getBoundingClientRect(),r=0;return(t.right>i.right&&(r=i.right-t.right,this.root.style.left=u+r+"px"),t.left<i.left&&(r=i.left-t.left,this.root.style.left=u+r+"px"),t.bottom>i.bottom)&&(e=t.bottom-t.top,o=n.bottom-n.top+e,this.root.style.top=f-o+"px",this.root.classList.add("ql-flip")),r}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]),n}();t.default=u},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function y(n){var t=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":n}function f(n,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(function(t){var r=document.createElement("option");t===i?r.setAttribute("selected","selected"):r.setAttribute("value",t);n.appendChild(r)})}var v;Object.defineProperty(t,"__esModule",{value:!0});t.default=t.BaseTooltip=void 0;var h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),p=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},w=i(2),b=r(w),k=i(4),d=r(k),g=i(9),u=r(g),nt=i(38),c=r(nt),tt=i(32),l=r(tt),it=i(41),rt=r(it),ut=i(42),ft=r(ut),et=i(16),ot=r(et),st=i(43),ht=r(st),ct=[!1,"center","right","justify"],lt=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],at=[!1,"serif","monospace"],vt=["1","2","3",!1],yt=["small",!1,"large","huge"],a=function(n){function t(n,i){e(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,i)),u=function t(i){if(!document.body.contains(n.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(i.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide();null!=r.pickers&&r.pickers.forEach(function(n){n.container.contains(i.target)||n.close()})};return document.body.addEventListener("click",u),r}return s(t,n),h(t,[{key:"addModule",value:function(n){var i=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,n);return"toolbar"===n&&this.extendToolbar(i),i}},{key:"buildButtons",value:function(n,t){n.forEach(function(n){(n.getAttribute("class")||"").split(/\s+/).forEach(function(i){if(i.startsWith("ql-")&&(i=i.slice(3),null!=t[i]))if("direction"===i)n.innerHTML=t[i][""]+t[i].rtl;else if("string"==typeof t[i])n.innerHTML=t[i];else{var r=n.value||"";null!=r&&t[i][r]&&(n.innerHTML=t[i][r])}})})}},{key:"buildPickers",value:function(n,t){var r=this,i;this.pickers=n.map(function(n){if(n.classList.contains("ql-align"))return null==n.querySelector("option")&&f(n,ct),new ft.default(n,t.align);if(n.classList.contains("ql-background")||n.classList.contains("ql-color")){var i=n.classList.contains("ql-background")?"background":"color";return null==n.querySelector("option")&&f(n,lt,"background"===i?"#ffffff":"#000000"),new rt.default(n,t[i])}return null==n.querySelector("option")&&(n.classList.contains("ql-font")?f(n,at):n.classList.contains("ql-header")?f(n,vt):n.classList.contains("ql-size")&&f(n,yt)),new ot.default(n)});i=function(){r.pickers.forEach(function(n){n.update()})};this.quill.on(u.default.events.EDITOR_CHANGE,i)}}]),t}(l.default);a.DEFAULTS=b.default(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,n=this.container.querySelector("input.ql-image[type=file]");null==n&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),n.classList.add("ql-image"),n.addEventListener("change",function(){if(null!=n.files&&null!=n.files[0]){var i=new FileReader;i.onload=function(i){var r=t.quill.getSelection(!0);t.quill.updateContents((new d.default).retain(r.index).delete(r.length).insert({image:i.target.result}),u.default.sources.USER);n.value=""};i.readAsDataURL(n.files[0])}}),this.container.appendChild(n));n.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});v=function(n){function t(n,i){e(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,i));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return s(t,n),h(t,[{key:"listen",value:function(){var n=this;this.textbox.addEventListener("keydown",function(t){c.default.match(t,"enter")?(n.save(),t.preventDefault()):c.default.match(t,"escape")&&(n.cancel(),t.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=t?this.textbox.value=t:n!==this.root.getAttribute("data-mode")&&(this.textbox.value="");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+n)||"");this.root.setAttribute("data-mode",n)}},{key:"restoreFocus",value:function(){var n=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=n}},{key:"save",value:function(){var n=this.textbox.value,r,t,i;switch(this.root.getAttribute("data-mode")){case"link":r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,u.default.sources.USER));this.quill.root.scrollTop=r;break;case"video":n=y(n);case"formula":if(!n)break;t=this.quill.getSelection(!0);null!=t&&(i=t.index+t.length,this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",u.default.sources.USER),this.quill.setSelection(i+2,u.default.sources.USER))}this.textbox.value="";this.hide()}}]),t}(ht.default);t.BaseTooltip=v;t.default=a},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}var v=i(46),f=r(v),e=i(33),u=i(35),y=i(62),p=i(63),w=r(p),b=i(64),k=r(b),l=i(65),d=r(l),o=i(34),s=i(25),h=i(36),c=i(37),g=i(39),nt=r(g),tt=i(66),it=r(tt),rt=i(15),ut=r(rt),ft=i(67),et=r(ft),ot=i(68),st=r(ot),ht=i(69),ct=r(ht),lt=i(70),at=r(lt),vt=i(71),yt=r(vt),a=i(13),pt=r(a),wt=i(72),bt=r(wt),kt=i(73),dt=r(kt),gt=i(74),ni=r(gt),ti=i(26),ii=r(ti),ri=i(16),ui=r(ri),fi=i(41),ei=r(fi),oi=i(42),si=r(oi),hi=i(43),ci=r(hi),li=i(107),ai=r(li),vi=i(108),yi=r(vi);f.default.register({"attributors/attribute/direction":u.DirectionAttribute,"attributors/class/align":e.AlignClass,"attributors/class/background":o.BackgroundClass,"attributors/class/color":s.ColorClass,"attributors/class/direction":u.DirectionClass,"attributors/class/font":h.FontClass,"attributors/class/size":c.SizeClass,"attributors/style/align":e.AlignStyle,"attributors/style/background":o.BackgroundStyle,"attributors/style/color":s.ColorStyle,"attributors/style/direction":u.DirectionStyle,"attributors/style/font":h.FontStyle,"attributors/style/size":c.SizeStyle},!0);f.default.register({"formats/align":e.AlignClass,"formats/direction":u.DirectionClass,"formats/indent":y.IndentClass,"formats/background":o.BackgroundStyle,"formats/color":s.ColorStyle,"formats/font":h.FontClass,"formats/size":c.SizeClass,"formats/blockquote":w.default,"formats/code-block":pt.default,"formats/header":k.default,"formats/list":d.default,"formats/bold":nt.default,"formats/code":a.Code,"formats/italic":it.default,"formats/link":ut.default,"formats/script":et.default,"formats/strike":st.default,"formats/underline":ct.default,"formats/image":at.default,"formats/video":yt.default,"formats/list/item":l.ListItem,"modules/formula":bt.default,"modules/syntax":dt.default,"modules/toolbar":ni.default,"themes/bubble":ai.default,"themes/snow":yi.default,"ui/icons":ii.default,"ui/picker":ui.default,"ui/icon-picker":si.default,"ui/color-picker":ei.default,"ui/tooltip":ci.default},!0);n.exports=f.default},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}var a=i(0),v=r(a),y=i(6),u=r(y),f=i(3),e=r(f),p=i(14),o=r(p),w=i(24),b=r(w),k=i(31),s=r(k),d=i(23),g=r(d),nt=i(5),h=r(nt),tt=i(59),c=r(tt),it=i(8),l=r(it),rt=i(60),ut=r(rt),ft=i(61),et=r(ft),ot=i(38),st=r(ot);u.default.register({"blots/block":e.default,"blots/block/embed":f.BlockEmbed,"blots/break":o.default,"blots/container":b.default,"blots/cursor":s.default,"blots/embed":g.default,"blots/inline":h.default,"blots/scroll":c.default,"blots/text":l.default,"modules/clipboard":ut.default,"modules/history":et.default,"modules/keyboard":st.default});v.default.register(e.default,o.default,s.default,h.default,c.default,l.default);n.exports=u.default},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){this.head=this.tail=void 0;this.length=0}return n.prototype.append=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.insertBefore(n[0],void 0);n.length>1&&this.append.apply(this,n.slice(1))},n.prototype.contains=function(n){for(var t,i=this.iterator();t=i();)if(t===n)return!0;return!1},n.prototype.insertBefore=function(n,t){n.next=t;null!=t?(n.prev=t.prev,null!=t.prev&&(t.prev.next=n),t.prev=n,t===this.head&&(this.head=n)):null!=this.tail?(this.tail.next=n,n.prev=this.tail,this.tail=n):(n.prev=void 0,this.head=this.tail=n);this.length+=1},n.prototype.offset=function(n){for(var i=0,t=this.head;null!=t;){if(t===n)return i;i+=t.length();t=t.next}return-1},n.prototype.remove=function(n){this.contains(n)&&(null!=n.prev&&(n.prev.next=n.next),null!=n.next&&(n.next.prev=n.prev),n===this.head&&(this.head=n.next),n===this.tail&&(this.tail=n.prev),this.length-=1)},n.prototype.iterator=function(n){return void 0===n&&(n=this.head),function(){var t=n;return null!=n&&(n=n.next),t}},n.prototype.find=function(n,t){var i,u,r;for(void 0===t&&(t=!1),u=this.iterator();i=u();){if(r=i.length(),n<r||t&&n===r&&(null==i.next||0!==i.next.length()))return[i,n];n-=r}return[null,0]},n.prototype.forEach=function(n){for(var t,i=this.iterator();t=i();)n(t)},n.prototype.forEachAt=function(n,t,i){var f;if(!(t<=0))for(var u,e=this.find(n),o=e[0],s=e[1],r=n-s,h=this.iterator(o);(u=h())&&r<n+t;)f=u.length(),n>r?i(u,n-r,Math.min(t,r+f-n)):i(u,0,Math.min(f,n+t-r)),r+=f},n.prototype.map=function(n){return this.reduce(function(t,i){return t.push(n(i)),t},[])},n.prototype.reduce=function(n,t){for(var i,r=this.iterator();i=r();)t=n(t,i);return t},n}();t.default=i},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(17),r=i(1),e={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},o=function(n){function t(t){var i=n.call(this,t)||this;return i.parent=null,i.observer=new MutationObserver(function(n){i.update(n)}),i.observer.observe(i.domNode,e),i}return f(t,n),t.prototype.detach=function(){n.prototype.detach.call(this);this.observer.disconnect()},t.prototype.deleteAt=function(t,i){this.update();0===t&&i===this.length()?this.children.forEach(function(n){n.remove()}):n.prototype.deleteAt.call(this,t,i)},t.prototype.formatAt=function(t,i,r,u){this.update();n.prototype.formatAt.call(this,t,i,r,u)},t.prototype.insertAt=function(t,i,r){this.update();n.prototype.insertAt.call(this,t,i,r)},t.prototype.optimize=function(t,i){var c=this,f;for(void 0===t&&(t=[]),void 0===i&&(i={}),n.prototype.optimize.call(this,i),f=[].slice.call(this.observer.takeRecords());f.length>0;)t.push(f.pop());for(var e=function(n,t){void 0===t&&(t=!0);null!=n&&n!==c&&null!=n.domNode.parentNode&&(null==n.domNode[r.DATA_KEY].mutations&&(n.domNode[r.DATA_KEY].mutations=[]),t&&e(n.parent))},s=function(n){null!=n.domNode[r.DATA_KEY]&&null!=n.domNode[r.DATA_KEY].mutations&&(n instanceof u.default&&n.children.forEach(s),n.optimize(i))},o=t,h=0;o.length>0;h+=1){if(h>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(o.forEach(function(n){var t=r.find(n.target,!0);null!=t&&(t.domNode===n.target&&("childList"===n.type?(e(r.find(n.previousSibling,!1)),[].forEach.call(n.addedNodes,function(n){var t=r.find(n,!1);e(t,!1);t instanceof u.default&&t.children.forEach(function(n){e(n,!1)})})):"attributes"===n.type&&e(t.prev)),e(t))}),this.children.forEach(s),o=[].slice.call(this.observer.takeRecords()),f=o.slice();f.length>0;)t.push(f.pop())}},t.prototype.update=function(t,i){var u=this;void 0===i&&(i={});t=t||this.observer.takeRecords();t.map(function(n){var t=r.find(n.target,!0);if(null!=t)return null==t.domNode[r.DATA_KEY].mutations?(t.domNode[r.DATA_KEY].mutations=[n],t):(t.domNode[r.DATA_KEY].mutations.push(n),null)}).forEach(function(n){null!=n&&n!==u&&null!=n.domNode[r.DATA_KEY]&&n.update(n.domNode[r.DATA_KEY].mutations||[],i)});null!=this.domNode[r.DATA_KEY].mutations&&n.prototype.update.call(this,this.domNode[r.DATA_KEY].mutations,i);this.optimize(t,i)},t.blotName="scroll",t.defaultChild="block",t.scope=r.Scope.BLOCK_BLOT,t.tagName="DIV",t}(u.default);t.default=o},function(n,t,i){"use strict";function f(n,t){if(Object.keys(n).length!==Object.keys(t).length)return!1;for(var i in n)if(n[i]!==t[i])return!1;return!0}var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(18),r=i(1),o=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t.formats=function(i){if(i.tagName!==t.tagName)return n.formats.call(this,i)},t.prototype.format=function(i,r){var f=this;i!==this.statics.blotName||r?n.prototype.format.call(this,i,r):(this.children.forEach(function(n){n instanceof u.default||(n=n.wrap(t.blotName,!0));f.attributes.copy(n)}),this.unwrap())},t.prototype.formatAt=function(t,i,u,f){null!=this.formats()[u]||r.query(u,r.Scope.ATTRIBUTE)?this.isolate(t,i).format(u,f):n.prototype.formatAt.call(this,t,i,u,f)},t.prototype.optimize=function(i){var u,r;if(n.prototype.optimize.call(this,i),u=this.formats(),0===Object.keys(u).length)return this.unwrap();r=this.next;r instanceof t&&r.prev===this&&f(u,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=r.Scope.INLINE_BLOT,t.tagName="SPAN",t}(u.default);t.default=o},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(18),r=i(1),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u(t,n),t.formats=function(i){var u=r.query(t.blotName).tagName;if(i.tagName!==u)return n.formats.call(this,i)},t.prototype.format=function(i,u){null!=r.query(i,r.Scope.BLOCK)&&(i!==this.statics.blotName||u?n.prototype.format.call(this,i,u):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,i,u,f){null!=r.query(u,r.Scope.BLOCK)?this.format(u,f):n.prototype.formatAt.call(this,t,i,u,f)},t.prototype.insertAt=function(t,i,u){if(null==u||null!=r.query(i,r.Scope.INLINE))n.prototype.insertAt.call(this,t,i,u);else{var f=this.split(t),e=r.create(i,u);f.parent.insertBefore(e,f)}},t.prototype.update=function(t,i){navigator.userAgent.match(/Trident/)?this.attach():n.prototype.update.call(this,t,i)},t.blotName="block",t.scope=r.Scope.BLOCK_BLOT,t.tagName="P",t}(f.default);t.default=e},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(19);u=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.formats=function(){},t.prototype.format=function(t,i){n.prototype.formatAt.call(this,0,this.length(),t,i)},t.prototype.formatAt=function(t,i,r,u){0===t&&i===this.length()?this.format(r,u):n.prototype.formatAt.call(this,t,i,r,u)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(r.default);t.default=u},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(19),r=i(1),e=function(n){function t(t){var i=n.call(this,t)||this;return i.text=i.statics.value(i.domNode),i}return u(t,n),t.create=function(n){return document.createTextNode(n)},t.value=function(n){var t=n.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(n,t){this.domNode.data=this.text=this.text.slice(0,n)+this.text.slice(n+t)},t.prototype.index=function(n,t){return this.domNode===n?t:-1},t.prototype.insertAt=function(t,i,r){null==r?(this.text=this.text.slice(0,t)+i+this.text.slice(t),this.domNode.data=this.text):n.prototype.insertAt.call(this,t,i,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(i){n.prototype.optimize.call(this,i);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(n,t){return void 0===t&&(t=!1),[this.domNode,n]},t.prototype.split=function(n,t){if(void 0===t&&(t=!1),!t){if(0===n)return this;if(n===this.length())return this.next}var i=r.create(this.domNode.splitText(n));return this.parent.insertBefore(i,this.next),this.text=this.statics.value(this.domNode),i},t.prototype.update=function(n){var t=this;n.some(function(n){return"characterData"===n.type&&n.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=r.Scope.INLINE_BLOT,t}(f.default);t.default=e},function(){"use strict";var n=document.createElement("div"),t;(n.classList.toggle("test-class",!1),n.classList.contains("test-class"))&&(t=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(n,i){return arguments.length>1&&!this.contains(n)==!i?i:t.call(this,n)});String.prototype.startsWith||(String.prototype.startsWith=function(n,t){return t=t||0,this.substr(t,n.length)===n});String.prototype.endsWith||(String.prototype.endsWith=function(n,t){var i=this.toString(),r;return("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=n.length,r=i.indexOf(n,t),-1!==r&&r===t});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(n){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof n)throw new TypeError("predicate must be a function");for(var i,r=Object(this),u=r.length>>>0,f=arguments[1],t=0;t<u;t++)if(i=r[t],n.call(f,i,t,r))return i}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(n){function u(n,i,r){var u,s,c,f;return n==i?n?[[t,n]]:[]:((r<0||n.length<r)&&(r=null),u=e(n,i),s=n.substring(0,u),n=n.substring(u),i=i.substring(u),u=o(n,i),c=n.substring(n.length-u),n=n.substring(0,n.length-u),i=i.substring(0,i.length-u),f=l(n,i),s&&f.unshift([t,s]),c&&f.push([t,c]),h(f),null!=r&&(f=p(f,r)),f)}function l(n,f){var o,e;if(!n)return[[r,f]];if(!f)return[[i,n]];var h=n.length>f.length?n:f,s=n.length>f.length?f:n,c=h.indexOf(s);if(-1!=c)return o=[[r,h.substring(0,c)],[t,s],[r,h.substring(c+s.length)]],n.length>f.length&&(o[0][0]=o[2][0]=i),o;if(1==s.length)return[[i,n],[r,f]];if(e=v(n,f),e){var l=e[0],y=e[1],p=e[2],w=e[3],b=e[4],k=u(l,p),d=u(y,w);return k.concat([[t,b]],d)}return a(n,f)}function a(n,t){for(var v,p,e,o,d,f,u,y,c=n.length,w=t.length,nt=Math.ceil((c+w)/2),b=nt,k=2*nt,l=new Array(k),a=new Array(k),g=0;g<k;g++)l[g]=-1,a[g]=-1;l[b+1]=0;a[b+1]=0;for(var tt=c-w,it=tt%2!=0,rt=0,ut=0,ft=0,et=0,h=0;h<nt;h++){for(v=-h+rt;v<=h-ut;v+=2){for(f=b+v,u=v==-h||v!=h&&l[f-1]<l[f+1]?l[f+1]:l[f-1]+1,y=u-v;u<c&&y<w&&n.charAt(u)==t.charAt(y);)u++,y++;if(l[f]=u,u>c)ut+=2;else if(y>w)rt+=2;else if(it&&(o=b+tt-v,o>=0&&o<k&&-1!=a[o]&&(e=c-a[o],u>=e)))return s(n,t,u,y)}for(p=-h+ft;p<=h-et;p+=2){for(o=b+p,e=p==-h||p!=h&&a[o-1]<a[o+1]?a[o+1]:a[o-1]+1,d=e-p;e<c&&d<w&&n.charAt(c-e-1)==t.charAt(w-d-1);)e++,d++;if(a[o]=e,e>c)et+=2;else if(d>w)ft+=2;else if(!it&&(f=b+tt-p,f>=0&&f<k&&-1!=l[f]&&(u=l[f],y=b+u-f,e=c-e,u>=e)))return s(n,t,u,y)}}return[[i,n],[r,t]]}function s(n,t,i,r){var f=n.substring(0,i),e=t.substring(0,r),o=n.substring(i),s=t.substring(r),h=u(f,e),c=u(o,s);return h.concat(c)}function e(n,t){if(!n||!t||n.charAt(0)!=t.charAt(0))return 0;for(var r=0,u=Math.min(n.length,t.length),i=u,f=0;r<i;)n.substring(f,i)==t.substring(f,i)?(r=i,f=r):u=i,i=Math.floor((u-r)/2+r);return i}function o(n,t){if(!n||!t||n.charAt(n.length-1)!=t.charAt(t.length-1))return 0;for(var r=0,u=Math.min(n.length,t.length),i=u,f=0;r<i;)n.substring(n.length-i,n.length-f)==t.substring(t.length-i,t.length-f)?(r=i,f=r):u=i,i=Math.floor((u-r)/2+r);return i}function v(n,t){function v(n,t,i){for(var u,f,h,c,l,a,v=n.substring(i,i+Math.floor(n.length/4)),r=-1,s="";-1!=(r=t.indexOf(v,r+1));)u=e(n.substring(i),t.substring(r)),f=o(n.substring(0,i),t.substring(0,r)),s.length<f+u&&(s=t.substring(r-f,r)+t.substring(r,r+u),h=n.substring(0,i-f),c=n.substring(i+u),l=t.substring(0,r-f),a=t.substring(r+u));return 2*s.length>=n.length?[h,c,l,a,s]:null}var r=n.length>t.length?n:t,s=n.length>t.length?t:n,i,u,f,h,c,l,a;return r.length<4||2*s.length<r.length?null:(u=v(r,s,Math.ceil(r.length/4)),f=v(r,s,Math.ceil(r.length/2)),!u&&!f)?null:(i=f?u&&u[4].length>f[4].length?u:f:u,n.length>t.length?(h=i[0],c=i[1],l=i[2],a=i[3]):(l=i[0],a=i[1],h=i[2],c=i[3]),[h,c,l,a,i[4]])}function h(n){var v;n.push([t,""]);for(var a,u=0,f=0,s=0,l="",c="";u<n.length;)switch(n[u][0]){case r:s++;c+=n[u][1];u++;break;case i:f++;l+=n[u][1];u++;break;case t:f+s>1?(0!==f&&0!==s&&(a=e(c,l),0!==a&&(u-f-s>0&&n[u-f-s-1][0]==t?n[u-f-s-1][1]+=c.substring(0,a):(n.splice(0,0,[t,c.substring(0,a)]),u++),c=c.substring(a),l=l.substring(a)),0!==(a=o(c,l))&&(n[u][1]=c.substring(c.length-a)+n[u][1],c=c.substring(0,c.length-a),l=l.substring(0,l.length-a))),0===f?n.splice(u-s,f+s,[r,c]):0===s?n.splice(u-f,f+s,[i,l]):n.splice(u-f-s,f+s,[i,l],[r,c]),u=u-f-s+(f?1:0)+(s?1:0)+1):0!==u&&n[u-1][0]==t?(n[u-1][1]+=n[u][1],n.splice(u,1)):u++;s=0;f=0;l="";c=""}for(""===n[n.length-1][1]&&n.pop(),v=!1,u=1;u<n.length-1;)n[u-1][0]==t&&n[u+1][0]==t&&(n[u][1].substring(n[u][1].length-n[u-1][1].length)==n[u-1][1]?(n[u][1]=n[u-1][1]+n[u][1].substring(0,n[u][1].length-n[u-1][1].length),n[u+1][1]=n[u-1][1]+n[u+1][1],n.splice(u-1,1),v=!0):n[u][1].substring(0,n[u+1][1].length)==n[u+1][1]&&(n[u-1][1]+=n[u+1][1],n[u][1]=n[u][1].substring(n[u+1][1].length)+n[u+1][1],n.splice(u+1,1),v=!0)),u++;v&&h(n)}function y(n,r){var e,f,u,o;if(0===r)return[t,n];for(e=0,f=0;f<n.length;f++)if(u=n[f],u[0]===i||u[0]===t){if(o=e+u[1].length,r===o)return[f+1,n];if(r<o){n=n.slice();var s=r-e,h=[u[0],u[1].slice(0,s)],c=[u[0],u[1].slice(s)];return n.splice(f,1,h,c),[f+1,n]}e=o}throw new Error("cursor_pos is out of bounds!");}function p(n,i){var s=y(n,i),f=s[1],e=s[0],r=f[e],u=f[e+1],o;return null==r?n:r[0]!==t?n:null!=u&&r[1]+u[1]===u[1]+r[1]?(f.splice(e,2,u,r),c(f,e,2)):null!=u&&0===u[1].indexOf(r[1])?(f.splice(e,2,[u[0],r[1]],[0,r[1]]),o=u[1].slice(r[1].length),o.length>0&&f.splice(e+2,0,[u[0],o]),c(f,e,3)):n}function c(n,t,i){for(var u,f,r=t+i-1;r>=0&&r>=t-1;r--)r+1<n.length&&(u=n[r],f=n[r+1],u[0]===f[1]&&n.splice(r,2,[u[0],u[1]+f[1]]));return n}var i=-1,r=1,t=0,f=u;f.INSERT=r;f.DELETE=i;f.EQUAL=t;n.exports=f},function(n,t){function i(n){var t=[];for(var i in n)t.push(i);return t}t=n.exports="function"==typeof Object.keys?Object.keys:i;t.shim=i},function(n,t){function i(n){return"[object Arguments]"==Object.prototype.toString.call(n)}function r(n){return n&&"object"==typeof n&&"number"==typeof n.length&&Object.prototype.hasOwnProperty.call(n,"callee")&&!Object.prototype.propertyIsEnumerable.call(n,"callee")||!1}var u="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=n.exports=u?i:r;t.supported=i;t.unsupported=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function a(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){return Object.keys(t).reduce(function(i,r){return null==n[r]?i:(t[r]===n[r]?i[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(n[r])<0&&(i[r]=t[r].concat([n[r]])):i[r]=[t[r],n[r]],i)},{})}function p(n){return n.reduce(function(n,t){var i,r;return 1===t.insert?(i=o.default(t.attributes),delete i.image,n.insert({image:t.attributes.image},i)):(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||(t=o.default(t),t.attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert)?(r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),n.insert(r,t.attributes)):n.push(t)},new r.default)}Object.defineProperty(t,"__esModule",{value:!0});var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),k=i(4),r=u(k),d=i(20),g=u(d),nt=i(0),e=u(nt),tt=i(13),l=u(tt),it=i(31),rt=u(it),f=i(3),c=u(f),ut=i(14),ft=u(ut),et=i(21),o=u(et),ot=i(12),st=u(ot),ht=i(2),h=u(ht),ct=/^[ -~]*$/,lt=function(){function n(t){v(this,n);this.scroll=t;this.delta=this.getDelta()}return b(n,[{key:"applyDelta",value:function(n){var t=this,i=!1,r;return this.scroll.update(),r=this.scroll.length(),this.scroll.batchStart(),n=p(n),n.reduce(function(n,u){var v=u.retain||u.delete||u.insert.length||1,l=u.attributes||{},o,a;if(null!=u.insert){if("string"==typeof u.insert){o=u.insert;o.endsWith("\n")&&i&&(i=!1,o=o.slice(0,-1));n>=r&&!o.endsWith("\n")&&(i=!0);t.scroll.insertAt(n,o);var k=t.scroll.line(n),b=s(k,2),y=b[0],d=b[1],p=h.default({},f.bubbleFormats(y));if(y instanceof c.default){var nt=y.descendant(e.default.Leaf,d),tt=s(nt,1),it=tt[0];p=h.default(p,f.bubbleFormats(it))}l=g.default.attributes.diff(p,l)||{}}else if("object"===w(u.insert)){if(a=Object.keys(u.insert)[0],null==a)return n;t.scroll.insertAt(n,a,u.insert[a])}r+=v}return Object.keys(l).forEach(function(i){t.scroll.formatAt(n,v,i,l[i])}),n+v},0),n.reduce(function(n,i){return"number"==typeof i.delete?(t.scroll.deleteAt(n,i.delete),n):n+(i.retain||i.insert.length||1)},0),this.scroll.batchEnd(),this.update(n)}},{key:"deleteText",value:function(n,t){return this.scroll.deleteAt(n,t),this.update((new r.default).retain(n).delete(t))}},{key:"formatLine",value:function(n,t){var i=this,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(u).forEach(function(r){if(null==i.scroll.whitelist||i.scroll.whitelist[r]){var e=i.scroll.lines(n,Math.max(t,1)),f=t;e.forEach(function(t){var s=t.length(),e,o;t instanceof l.default?(e=n-t.offset(i.scroll),o=t.newlineIndex(e+f)-e+1,t.formatAt(e,o,r,u[r])):t.format(r,u[r]);f-=s})}}),this.scroll.optimize(),this.update((new r.default).retain(n).retain(t,o.default(u)))}},{key:"formatText",value:function(n,t){var u=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(i).forEach(function(r){u.scroll.formatAt(n,t,r,i[r])}),this.update((new r.default).retain(n).retain(t,o.default(i)))}},{key:"getContents",value:function(n,t){return this.delta.slice(n,n+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(n,t){return n.concat(t.delta())},new r.default)}},{key:"getFormat",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],r=[],u;return 0===t?this.scroll.path(n).forEach(function(n){var u=s(n,1),t=u[0];t instanceof c.default?i.push(t):t instanceof e.default.Leaf&&r.push(t)}):(i=this.scroll.lines(n,t),r=this.scroll.descendants(e.default.Leaf,n,t)),u=[i,r].map(function(n){var t,i;if(0===n.length)return{};for(t=f.bubbleFormats(n.shift());Object.keys(t).length>0;){if(i=n.shift(),null==i)return t;t=y(f.bubbleFormats(i),t)}return t}),h.default.apply(h.default,u)}},{key:"getText",value:function(n,t){return this.getContents(n,t).filter(function(n){return"string"==typeof n.insert}).map(function(n){return n.insert}).join("")}},{key:"insertEmbed",value:function(n,t,i){return this.scroll.insertAt(n,t,i),this.update((new r.default).retain(n).insert(a({},t,i)))}},{key:"insertText",value:function(n,t){var u=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(n,t),Object.keys(i).forEach(function(r){u.scroll.formatAt(n,t.length,r,i[r])}),this.update((new r.default).retain(n).insert(t,o.default(i)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var n=this.scroll.children.head;return n.statics.blotName===c.default.blotName&&!(n.children.length>1)&&n.children.head instanceof ft.default}},{key:"removeFormat",value:function(n,t){var h=this.getText(n,t),c=this.scroll.line(n+t),e=s(c,2),i=e[0],u=e[1],f=0,o=new r.default;null!=i&&(f=i instanceof l.default?i.newlineIndex(u)-u+1:i.length()-u,o=i.delta().slice(u,u+f-1).insert("\n"));var a=this.getContents(n,t+f),v=a.diff((new r.default).insert(h).concat(o)),y=(new r.default).retain(n).concat(v);return this.applyDelta(y)}},{key:"update",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(ct)&&e.default.find(t[0].target)){var u=e.default.find(t[0].target),s=f.bubbleFormats(u),h=u.offset(this.scroll),c=t[0].oldValue.replace(rt.default.CONTENTS,""),l=(new r.default).insert(c),a=(new r.default).insert(u.value());n=(new r.default).retain(h).concat(l.diff(a,o)).reduce(function(n,t){return t.insert?n.insert(t.insert,s):n.push(t)},new r.default);this.delta=i.compose(n)}else this.delta=this.getDelta(),n&&st.default(i.compose(n),this.delta)||(n=i.diff(this.delta,o));return n}}]),n}();t.default=lt},function(n){"use strict";function r(){}function u(n,t,i){this.fn=n;this.context=t;this.once=i||!1}function t(){this._events=new r;this._eventsCount=0}var f=Object.prototype.hasOwnProperty,i="~";Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1));t.prototype.eventNames=function(){var r,n,t=[];if(0===this._eventsCount)return t;for(n in r=this._events)f.call(r,n)&&t.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};t.prototype.listeners=function(n,t){var o=i?i+n:n,r=this._events[o];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var u=0,f=r.length,e=new Array(f);u<f;u++)e[u]=r[u].fn;return e};t.prototype.emit=function(n,t,r,u,f,e){var a=i?i+n:n,h,s,o,c,l,v;if(!this._events[a])return!1;if(o=this._events[a],c=arguments.length,o.fn){switch(o.once&&this.removeListener(n,o.fn,void 0,!0),c){case 1:return o.fn.call(o.context),!0;case 2:return o.fn.call(o.context,t),!0;case 3:return o.fn.call(o.context,t,r),!0;case 4:return o.fn.call(o.context,t,r,u),!0;case 5:return o.fn.call(o.context,t,r,u,f),!0;case 6:return o.fn.call(o.context,t,r,u,f,e),!0}for(s=1,h=new Array(c-1);s<c;s++)h[s-1]=arguments[s];o.fn.apply(o.context,h)}else for(v=o.length,s=0;s<v;s++)switch(o[s].once&&this.removeListener(n,o[s].fn,void 0,!0),c){case 1:o[s].fn.call(o[s].context);break;case 2:o[s].fn.call(o[s].context,t);break;case 3:o[s].fn.call(o[s].context,t,r);break;case 4:o[s].fn.call(o[s].context,t,r,u);break;default:if(!h)for(l=1,h=new Array(c-1);l<c;l++)h[l-1]=arguments[l];o[s].fn.apply(o[s].context,h)}return!0};t.prototype.on=function(n,t,r){var e=new u(t,r||this),f=i?i+n:n;return this._events[f]?this._events[f].fn?this._events[f]=[this._events[f],e]:this._events[f].push(e):(this._events[f]=e,this._eventsCount++),this};t.prototype.once=function(n,t,r){var e=new u(t,r||this,!0),f=i?i+n:n;return this._events[f]?this._events[f].fn?this._events[f]=[this._events[f],e]:this._events[f].push(e):(this._events[f]=e,this._eventsCount++),this};t.prototype.removeListener=function(n,t,u,f){var o=i?i+n:n,e;if(!this._events[o])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[o],this;if(e=this._events[o],e.fn)e.fn!==t||f&&!e.once||u&&e.context!==u||(0==--this._eventsCount?this._events=new r:delete this._events[o]);else{for(var s=0,h=[],c=e.length;s<c;s++)(e[s].fn!==t||f&&!e[s].once||u&&e[s].context!==u)&&h.push(e[s]);h.length?this._events[o]=1===h.length?h[0]:h:0==--this._eventsCount?this._events=new r:delete this._events[o]}return this};t.prototype.removeAllListeners=function(n){var t;return n?(t=i?i+n:n,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this};t.prototype.off=t.prototype.removeListener;t.prototype.addListener=t.prototype.on;t.prototype.setMaxListeners=function(){return this};t.prefixed=i;t.EventEmitter=t;void 0!==n&&(n.exports=t)},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function y(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function h(n){return n instanceof l.default||n instanceof o.BlockEmbed}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),p=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),u=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},w=i(0),r=f(w),b=i(9),s=f(b),o=i(3),l=f(o),k=i(14),d=f(k),g=i(24),nt=f(g),tt=i(13),it=f(tt),e=function(n){function t(n,i){a(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.emitter=i.emitter,Array.isArray(i.whitelist)&&(r.whitelist=i.whitelist.reduce(function(n,t){return n[t]=!0,n},{})),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),r}return y(t,n),p(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},{key:"deleteAt",value:function(n,i){var h=this.line(n),e=c(h,2),f=e[0],l=e[1],a=this.line(n+i),v=c(a,1),r=v[0],s;(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,n,i),null==r||f===r||!(l>0)||f instanceof o.BlockEmbed||r instanceof o.BlockEmbed)||(r instanceof it.default&&r.deleteAt(r.length()-1,1),s=r.children.head instanceof d.default?null:r.children.head,f.moveChildren(r,s),f.remove());this.optimize()}},{key:"enable",value:function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",n)}},{key:"formatAt",value:function(n,i,r,f){(null==this.whitelist||this.whitelist[r])&&(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,n,i,r,f),this.optimize())}},{key:"insertAt",value:function(n,i,f){var e,o;(null==f||null==this.whitelist||this.whitelist[i])&&(n>=this.length()?null==f||null==r.default.query(i,r.default.Scope.BLOCK)?(e=r.default.create(this.statics.defaultChild),this.appendChild(e),null==f&&i.endsWith("\n")&&(i=i.slice(0,-1)),e.insertAt(0,i,f)):(o=r.default.create(i,f),this.appendChild(o)):u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,n,i,f),this.optimize())}},{key:"insertBefore",value:function(n,i){if(n.statics.scope===r.default.Scope.INLINE_BLOT){var f=r.default.create(this.statics.defaultChild);f.appendChild(n);n=f}u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,n,i)}},{key:"leaf",value:function(n){return this.path(n).pop()||[null,-1]}},{key:"line",value:function(n){return n===this.length()?this.line(n-1):this.descendant(h,n)}},{key:"lines",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function n(t,i,u){var f=[],e=u;return t.children.forEachAt(i,u,function(t,i,u){h(t)?f.push(t):t instanceof r.default.Container&&(f=f.concat(n(t,i,e)));e-=u}),f}(this,n,t)}},{key:"optimize",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,n,i),n.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,n,i))}},{key:"path",value:function(n){return u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,n).slice(1)}},{key:"update",value:function(n){if(!0!==this.batch){var i=s.default.sources.USER;"string"==typeof n&&(i=n);Array.isArray(n)||(n=this.observer.takeRecords());n.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,i,n);u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,n.concat([]));n.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,i,n)}}}]),t}(r.default.Scroll);e.blotName="scroll";e.className="ql-editor";e.tagName="DIV";e.defaultChild="block";e.allowedChildren=[l.default,o.BlockEmbed,nt.default];t.default=e},function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}function rt(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function ut(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ft(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function et(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function s(n,t,i){return"object"===(void 0===t?"undefined":lt(t))?Object.keys(t).reduce(function(n,i){return s(n,i,t[i])},n):n.reduce(function(n,r){return r.attributes&&r.attributes[t]?n.push(r):n.insert(r.insert,yt.default({},rt({},t,i),r.attributes))},new r.default)}function f(n){return n.nodeType!==Node.ELEMENT_NODE?{}:n["__ql-computed-style"]||(n["__ql-computed-style"]=window.getComputedStyle(n))}function h(n,t){for(var u,i="",r=n.ops.length-1;r>=0&&i.length<t.length;--r){if(u=n.ops[r],"string"!=typeof u.insert)break;i=u.insert+i}return i.slice(-1*t.length)===t}function e(n){return 0!==n.childNodes.length&&["block","list-item"].indexOf(f(n).display)>-1}function w(n,t,i){return n.nodeType===n.TEXT_NODE?i.reduce(function(t,i){return i(n,t)},new r.default):n.nodeType===n.ELEMENT_NODE?[].reduce.call(n.childNodes||[],function(r,u){var f=w(u,t,i);return u.nodeType===n.ELEMENT_NODE&&(f=t.reduce(function(n,t){return t(u,n)},f),f=(u[a]||[]).reduce(function(n,t){return t(u,n)},f)),r.concat(f)},new r.default):new r.default}function c(n,t,i){return s(i,n,!0)}function b(n,t){var r=u.default.Attributor.Attribute.keys(n),f=u.default.Attributor.Class.keys(n),e=u.default.Attributor.Style.keys(n),i={};return r.concat(f).concat(e).forEach(function(t){var r=u.default.query(t,u.default.Scope.ATTRIBUTE);null!=r&&(i[r.attrName]=r.value(n),i[r.attrName])||(r=oi[t],null!=r&&r.attrName===t&&(i[r.attrName]=r.value(n)||void 0),null!=(r=tt[t])&&r.attrName===t&&(r=tt[t],i[r.attrName]=r.value(n)||void 0))}),Object.keys(i).length>0&&(t=s(t,i)),t}function k(n,t){var i=u.default.query(n),f,e;return null==i?t:(i.prototype instanceof u.default.Embed?(f={},e=i.value(n),null!=e&&(f[i.blotName]=e,t=(new r.default).insert(f,i.formats(n)))):"function"==typeof i.formats&&(t=s(t,i.blotName,i.formats(n))),t)}function ot(n,t){return h(t,"\n")||t.insert("\n"),t}function st(){return new r.default}function ht(n,t){var e=u.default.query(n),f,i;if(null==e||"list-item"!==e.blotName||!h(t,"\n"))return t;for(f=-1,i=n.parentNode;!i.classList.contains("ql-clipboard");)"list"===(u.default.query(i)||{}).blotName&&(f+=1),i=i.parentNode;return f<=0?t:t.compose((new r.default).retain(t.length()-1).retain(1,{indent:f}))}function v(n,t){return h(t,"\n")||(e(n)||t.length()>0&&n.nextSibling&&e(n.nextSibling))&&t.insert("\n"),t}function y(n,t){if(e(n)&&null!=n.nextElementSibling&&!h(t,"\n\n")){var i=n.offsetHeight+parseFloat(f(n).marginTop)+parseFloat(f(n).marginBottom);n.nextElementSibling.offsetTop>n.offsetTop+1.5*i&&t.insert("\n")}return t}function ct(n,t){var i={},u=n.style||{};return u.fontStyle&&"italic"===f(n).fontStyle&&(i.italic=!0),u.fontWeight&&(f(n).fontWeight.startsWith("bold")||parseInt(f(n).fontWeight)>=700)&&(i.bold=!0),Object.keys(i).length>0&&(t=s(t,i)),parseFloat(u.textIndent||0)>0&&(t=(new r.default).insert("\t").concat(t)),t}function d(n,t){var i=n.data,r;return"O:P"===n.parentNode.tagName?t.insert(i.trim()):0===i.trim().length&&n.parentNode.classList.contains("ql-clipboard")?t:(f(n.parentNode).whiteSpace.startsWith("pre")||(r=function(n,t){return t=t.replace(/[^\u00a0]/g,""),t.length<1&&n?" ":t},i=i.replace(/\r\n/g," ").replace(/\n/g," "),i=i.replace(/\s\s+/g,r.bind(r,!0)),(null==n.previousSibling&&e(n.parentNode)||null!=n.previousSibling&&e(n.previousSibling))&&(i=i.replace(/^\s+/,r.bind(r,!1))),(null==n.nextSibling&&e(n.parentNode)||null!=n.nextSibling&&e(n.nextSibling))&&(i=i.replace(/\s+$/,r.bind(r,!1)))),t.insert(i))}Object.defineProperty(t,"__esModule",{value:!0});t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},p=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),at=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),vt=i(2),yt=o(vt),pt=i(4),r=o(pt),wt=i(0),u=o(wt),bt=i(6),l=o(bt),kt=i(10),dt=o(kt),gt=i(7),ni=o(gt),g=i(33),ti=i(34),ii=i(25),nt=i(35),ri=i(36),ui=i(37),fi=dt.default("quill:clipboard"),a="__ql-matcher",ei=[[Node.TEXT_NODE,d],[Node.TEXT_NODE,v],["br",ot],[Node.ELEMENT_NODE,v],[Node.ELEMENT_NODE,k],[Node.ELEMENT_NODE,y],[Node.ELEMENT_NODE,b],[Node.ELEMENT_NODE,ct],["li",ht],["b",c.bind(c,"bold")],["i",c.bind(c,"italic")],["style",st]],oi=[g.AlignAttribute,nt.DirectionAttribute].reduce(function(n,t){return n[t.keyName]=t,n},{}),tt=[g.AlignStyle,ti.BackgroundStyle,ii.ColorStyle,nt.DirectionStyle,ri.FontStyle,ui.SizeStyle].reduce(function(n,t){return n[t.keyName]=t,n},{}),it=function(n){function t(n,i){ut(this,t);var r=ft(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,i));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],ei.concat(r.options.matchers).forEach(function(n){var t=p(n,2),f=t[0],u=t[1];(i.matchVisual||u!==y)&&r.addMatcher(f,u)}),r}return et(t,n),at(t,[{key:"addMatcher",value:function(n,t){this.matchers.push([n,t])}},{key:"convert",value:function(n){"string"==typeof n&&(this.container.innerHTML=n.replace(/\>\r?\n +\</g,"><"));var u=this.prepareMatching(),i=p(u,2),f=i[0],e=i[1],t=w(this.container,f,e);return h(t,"\n")&&null==t.ops[t.ops.length-1].attributes&&(t=t.compose((new r.default).retain(t.length()-1).delete(1))),fi.log("convert",this.container.innerHTML,t),this.container.innerHTML="",t}},{key:"dangerouslyPasteHTML",value:function(n,t){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API,i;return"string"==typeof n?this.quill.setContents(this.convert(n),t):(i=this.convert(t),this.quill.updateContents((new r.default).retain(n).concat(i),u))}},{key:"onPaste",value:function(n){var t=this;if(!n.defaultPrevented&&this.quill.isEnabled()){var u=this.quill.getSelection(),i=(new r.default).retain(u.index),f=this.quill.scrollingContainer.scrollTop;this.container.focus();this.quill.selection.update(l.default.sources.SILENT);setTimeout(function(){i=i.concat(t.convert()).delete(u.length);t.quill.updateContents(i,l.default.sources.USER);t.quill.setSelection(i.length()-u.length,l.default.sources.SILENT);t.quill.scrollingContainer.scrollTop=f;t.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var i=this,n=[],t=[];return this.matchers.forEach(function(r){var f=p(r,2),e=f[0],u=f[1];switch(e){case Node.TEXT_NODE:t.push(u);break;case Node.ELEMENT_NODE:n.push(u);break;default:[].forEach.call(i.container.querySelectorAll(e),function(n){n[a]=n[a]||[];n[a].push(u)})}}),[n,t]}}]),t}(ni.default);it.DEFAULTS={matchers:[],matchVisual:!0};t.default=it;t.matchAttributor=b;t.matchBlot=k;t.matchNewline=v;t.matchSpacing=y;t.matchText=d},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function l(n){var t=n.ops[n.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(function(n){return null!=e.default.query(n,e.default.Scope.BLOCK)}))}function f(n){var i=n.reduce(function(n,t){return n+(t.delete||0)},0),t=n.length()-i;return l(n)&&(t-=1),t}Object.defineProperty(t,"__esModule",{value:!0});t.getLastChangeIndex=t.default=void 0;var a=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=i(0),e=u(v),y=i(6),r=u(y),p=i(7),w=u(p),o=function(n){function t(n,i){s(this,t);var u=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,i));return u.lastRecorded=0,u.ignoreChange=!1,u.clear(),u.quill.on(r.default.events.EDITOR_CHANGE,function(n,t,i,f){n!==r.default.events.TEXT_CHANGE||u.ignoreChange||(u.options.userOnly&&f!==r.default.sources.USER?u.transform(t):u.record(t,i))}),u.quill.keyboard.addBinding({key:"Z",shortKey:!0},u.undo.bind(u)),u.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},u.redo.bind(u)),/Win/i.test(navigator.platform)&&u.quill.keyboard.addBinding({key:"Y",shortKey:!0},u.redo.bind(u)),u}return c(t,n),a(t,[{key:"change",value:function(n,t){var i,u;0!==this.stack[n].length&&(i=this.stack[n].pop(),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i[n],r.default.sources.USER),this.ignoreChange=!1,u=f(i[n]),this.quill.setSelection(u),this.stack[t].push(i))}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(n,t){var i,r,u;0!==n.ops.length&&(this.stack.redo=[],i=this.quill.getContents().diff(t),r=Date.now(),this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0?(u=this.stack.undo.pop(),i=i.compose(u.undo),n=u.redo.compose(n)):this.lastRecorded=r,this.stack.undo.push({redo:n,undo:i}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(n){this.stack.undo.forEach(function(t){t.undo=n.transform(t.undo,!0);t.redo=n.transform(t.redo,!0)});this.stack.redo.forEach(function(t){t.undo=n.transform(t.undo,!0);t.redo=n.transform(t.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(w.default);o.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};t.default=o;t.getLastChangeIndex=f},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});t.IndentClass=void 0;var s=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),r=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},h=i(0),u=function(n){return n&&n.__esModule?n:{"default":n}}(h),c=function(n){function t(){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,n),s(t,[{key:"add",value:function(n,i){if("+1"===i||"-1"===i){var u=this.value(n)||0;i="+1"===i?u+1:u-1}return 0===i?(this.remove(n),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,n,i)}},{key:"canAdd",value:function(n,i){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,n,i)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,n,parseInt(i))}},{key:"value",value:function(n){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,n))||void 0}}]),t}(u.default.Attributor.Class),l=new c("indent","ql-indent",{scope:u.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=l},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),s=function(n){return n&&n.__esModule?n:{"default":n}}(o),r=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),t}(s.default);r.blotName="blockquote";r.tagName="blockquote";t.default=r},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),s=i(3),h=function(n){return n&&n.__esModule?n:{"default":n}}(s),r=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),o(t,null,[{key:"formats",value:function(n){return this.tagName.indexOf(n.tagName)+1}}]),t}(h.default);r.blotName="header";r.tagName=["H1","H2","H3","H4","H5","H6"];t.default=r},function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}function a(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;Object.defineProperty(t,"__esModule",{value:!0});t.default=t.ListItem=void 0;var s=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),r=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},v=i(0),e=o(v),y=i(3),p=o(y),w=i(24),b=o(w),f=function(n){function t(){return h(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,n),s(t,[{key:"format",value:function(n,i){n!==u.blotName||i?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,n,i):this.replaceWith(e.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(n,i){return this.parent.isolate(this.offset(this.parent),this.length()),n===this.parent.statics.blotName?(this.parent.replaceWith(n,i),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,n,i))}}],[{key:"formats",value:function(n){if(n.tagName!==this.tagName)return r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,n)}}]),t}(p.default);f.blotName="list-item";f.tagName="LI";u=function(n){function t(n){h(this,t);var i=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return n.addEventListener("click",function(t){if(t.target.parentNode===n){var r=i.statics.formats(n),u=e.default.find(t.target);"checked"===r?u.format("list","unchecked"):"unchecked"===r&&u.format("list","checked")}}),i}return l(t,n),s(t,null,[{key:"create",value:function(n){var u="ordered"===n?"OL":"UL",i=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,u);return"checked"!==n&&"unchecked"!==n||i.setAttribute("data-checked","checked"===n),i}},{key:"formats",value:function(n){return"OL"===n.tagName?"ordered":"UL"===n.tagName?n.hasAttribute("data-checked")?"true"===n.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),s(t,[{key:"format",value:function(n,t){this.children.length>0&&this.children.tail.format(n,t)}},{key:"formats",value:function(){return a({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(n,i){if(n instanceof f)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,n,i);else{var e=null==i?this.length():i.offset(this),u=this.split(e);u.parent.insertBefore(n,u)}}},{key:"optimize",value:function(n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,n);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&i.domNode.tagName===this.domNode.tagName&&i.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(i.moveChildren(this),i.remove())}},{key:"replace",value:function(n){if(n.statics.blotName!==this.statics.blotName){var i=e.default.create(this.statics.defaultChild);n.moveChildren(i);this.appendChild(i)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,n)}}]),t}(b.default);u.blotName="list";u.scope=e.default.Scope.BLOCK_BLOT;u.tagName=["OL","UL"];u.defaultChild="list-item";u.allowedChildren=[f];t.ListItem=f;t.default=u},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(39),s=function(n){return n&&n.__esModule?n:{"default":n}}(o),r=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),t}(s.default);r.blotName="italic";r.tagName=["EM","I"];t.default=r},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),s=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},h=i(5),c=function(n){return n&&n.__esModule?n:{"default":n}}(h),r=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),o(t,null,[{key:"create",value:function(n){return"super"===n?document.createElement("sup"):"sub"===n?document.createElement("sub"):s(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n)}},{key:"formats",value:function(n){return"SUB"===n.tagName?"sub":"SUP"===n.tagName?"super":void 0}}]),t}(c.default);r.blotName="script";r.tagName=["SUB","SUP"];t.default=r},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(5),s=function(n){return n&&n.__esModule?n:{"default":n}}(o),r=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),t}(s.default);r.blotName="strike";r.tagName="S";t.default=r},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(5),s=function(n){return n&&n.__esModule?n:{"default":n}}(o),r=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),t}(s.default);r.blotName="underline";r.tagName="U";t.default=r},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),u=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},c=i(0),l=function(n){return n&&n.__esModule?n:{"default":n}}(c),a=i(15),f=["alt","height","width"],r=function(n){function t(){return e(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,n),h(t,[{key:"format",value:function(n,i){f.indexOf(n)>-1?i?this.domNode.setAttribute(n,i):this.domNode.removeAttribute(n):u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,n,i)}}],[{key:"create",value:function(n){var i=u(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"string"==typeof n&&i.setAttribute("src",this.sanitize(n)),i}},{key:"formats",value:function(n){return f.reduce(function(t,i){return n.hasAttribute(i)&&(t[i]=n.getAttribute(i)),t},{})}},{key:"match",value:function(n){return/\.(jpe?g|gif|png)$/.test(n)||/^data:image\/.+;base64/.test(n)}},{key:"sanitize",value:function(n){return a.sanitize(n,["http","https","data"])?n:"//:0"}},{key:"value",value:function(n){return n.getAttribute("src")}}]),t}(l.default.Embed);r.blotName="image";r.tagName="IMG";t.default=r},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),u=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},c=i(3),l=i(15),a=function(n){return n&&n.__esModule?n:{"default":n}}(l),f=["height","width"],r=function(n){function t(){return e(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,n),h(t,[{key:"format",value:function(n,i){f.indexOf(n)>-1?i?this.domNode.setAttribute(n,i):this.domNode.removeAttribute(n):u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,n,i)}}],[{key:"create",value:function(n){var i=u(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return i.setAttribute("frameborder","0"),i.setAttribute("allowfullscreen",!0),i.setAttribute("src",this.sanitize(n)),i}},{key:"formats",value:function(n){return f.reduce(function(t,i){return n.hasAttribute(i)&&(t[i]=n.getAttribute(i)),t},{})}},{key:"sanitize",value:function(n){return a.default.sanitize(n)}},{key:"value",value:function(n){return n.getAttribute("src")}}]),t}(c.BlockEmbed);r.blotName="video";r.className="ql-video";r.tagName="IFRAME";t.default=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var h;Object.defineProperty(t,"__esModule",{value:!0});t.default=t.FormulaBlot=void 0;var s=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},l=i(23),a=u(l),v=i(6),y=u(v),p=i(7),w=u(p),r=function(n){function t(){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,n),s(t,null,[{key:"create",value:function(n){var i=c(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"string"==typeof n&&(window.katex.render(n,i),i.setAttribute("data-value",n)),i}},{key:"value",value:function(n){return n.getAttribute("data-value")}}]),t}(a.default);r.blotName="formula";r.className="ql-formula";r.tagName="SPAN";h=function(n){function t(){f(this,t);var n=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return n}return o(t,n),s(t,null,[{key:"register",value:function(){y.default.register(r,!0)}}]),t}(w.default);t.FormulaBlot=r;t.default=h},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o,s;Object.defineProperty(t,"__esModule",{value:!0});t.default=t.CodeToken=t.CodeBlock=void 0;var e=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},y=i(0),a=u(y),p=i(6),r=u(p),w=i(7),b=u(w),k=i(13),d=u(k),f=function(n){function t(){return h(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,n),e(t,[{key:"replaceWith",value:function(n){this.domNode.textContent=this.domNode.textContent;this.attach();v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,n)}},{key:"highlight",value:function(n){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=n(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(d.default);f.className="ql-syntax";o=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE});s=function(n){function t(n,i){var u,f;if(h(this,t),u=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,i)),"function"!=typeof u.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");return f=null,u.quill.on(r.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(f);f=setTimeout(function(){u.highlight();f=null},u.options.interval)}),u.highlight(),u}return l(t,n),e(t,null,[{key:"register",value:function(){r.default.register(o,!0);r.default.register(f,!0)}}]),e(t,[{key:"highlight",value:function(){var t=this,n;this.quill.selection.composing||(this.quill.update(r.default.sources.USER),n=this.quill.getSelection(),this.quill.scroll.descendants(f).forEach(function(n){n.highlight(t.options.highlight)}),this.quill.update(r.default.sources.SILENT),null!=n&&this.quill.setSelection(n,r.default.sources.SILENT))}}]),t}(b.default);s.DEFAULTS={highlight:function(){return null==window.hljs?null:function(n){return window.hljs.highlightAuto(n).value}}(),interval:1e3};t.CodeBlock=f;t.CodeToken=o;t.default=s},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function a(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function y(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function c(n,t,i){var r=document.createElement("button");r.setAttribute("type","button");r.classList.add("ql-"+t);null!=i&&(r.value=i);n.appendChild(r)}function l(n,t){Array.isArray(t[0])||(t=[t]);t.forEach(function(t){var i=document.createElement("span");i.classList.add("ql-formats");t.forEach(function(n){if("string"==typeof n)c(i,n);else{var t=Object.keys(n)[0],r=n[t];Array.isArray(r)?p(i,t,r):c(i,t,r)}});n.appendChild(i)})}function p(n,t,i){var r=document.createElement("select");r.classList.add("ql-"+t);i.forEach(function(n){var t=document.createElement("option");!1!==n?t.setAttribute("value",n):t.setAttribute("selected","selected");r.appendChild(t)});n.appendChild(r)}Object.defineProperty(t,"__esModule",{value:!0});t.addControls=t.default=void 0;var e=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),w=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),b=i(4),k=u(b),d=i(0),f=u(d),g=i(6),r=u(g),nt=i(10),tt=u(nt),it=i(7),rt=u(it),o=tt.default("quill:toolbar"),s=function(n){function t(n,i){var u,f,s;return(v(this,t),u=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,i)),Array.isArray(u.options.container)?(f=document.createElement("div"),l(f,u.options.container),n.container.parentNode.insertBefore(f,n.container),u.container=f):u.container="string"==typeof u.options.container?document.querySelector(u.options.container):u.options.container,!(u.container instanceof HTMLElement))?(s=o.error("Container required for toolbar",u.options),h(u,s)):(u.container.classList.add("ql-toolbar"),u.controls=[],u.handlers={},Object.keys(u.options.handlers).forEach(function(n){u.addHandler(n,u.options.handlers[n])}),[].forEach.call(u.container.querySelectorAll("button, select"),function(n){u.attach(n)}),u.quill.on(r.default.events.EDITOR_CHANGE,function(n,t){n===r.default.events.SELECTION_CHANGE&&u.update(t)}),u.quill.on(r.default.events.SCROLL_OPTIMIZE,function(){var n=u.quill.selection.getRange(),t=e(n,1),i=t[0];u.update(i)}),u)}return y(t,n),w(t,[{key:"addHandler",value:function(n,t){this.handlers[n]=t}},{key:"attach",value:function(n){var i=this,t=[].find.call(n.classList,function(n){return 0===n.indexOf("ql-")}),u;if(t){if(t=t.slice(3),"BUTTON"===n.tagName&&n.setAttribute("type","button"),null==this.handlers[t]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[t])return void o.warn("ignoring attaching to disabled format",t,n);if(null==f.default.query(t))return void o.warn("ignoring attaching to nonexistent format",t,n)}u="SELECT"===n.tagName?"change":"click";n.addEventListener(u,function(u){var o=void 0,s;if("SELECT"===n.tagName){if(n.selectedIndex<0)return;s=n.options[n.selectedIndex];o=!s.hasAttribute("selected")&&(s.value||!1)}else o=!n.classList.contains("ql-active")&&(n.value||!n.hasAttribute("value")),u.preventDefault();i.quill.focus();var c=i.quill.selection.getRange(),l=e(c,1),h=l[0];if(null!=i.handlers[t])i.handlers[t].call(i,o);else if(f.default.query(t).prototype instanceof f.default.Embed){if(!(o=prompt("Enter "+t)))return;i.quill.updateContents((new k.default).retain(h.index).delete(h.length).insert(a({},t,o)),r.default.sources.USER)}else i.quill.format(t,o,r.default.sources.USER);i.update(h)});this.controls.push([t,n])}}},{key:"update",value:function(n){var t=null==n?{}:this.quill.getFormat(n);this.controls.forEach(function(i){var s=e(i,2),u=s[0],r=s[1],f,o,h;"SELECT"===r.tagName?(f=void 0,null==n?f=null:null==t[u]?f=r.querySelector("option[selected]"):Array.isArray(t[u])||(o=t[u],"string"==typeof o&&(o=o.replace(/\"/g,'\\"')),f=r.querySelector('option[value="'+o+'"]')),null==f?(r.value="",r.selectedIndex=-1):f.selected=!0):null==n?r.classList.remove("ql-active"):r.hasAttribute("value")?(h=t[u]===r.getAttribute("value")||null!=t[u]&&t[u].toString()===r.getAttribute("value")||null==t[u]&&!r.getAttribute("value"),r.classList.toggle("ql-active",h)):r.classList.toggle("ql-active",null!=t[u])})}}]),t}(rt.default);s.DEFAULTS={};s.DEFAULTS={container:null,handlers:{clean:function(){var i=this,n=this.quill.getSelection(),t;null!=n&&(0==n.length?(t=this.quill.getFormat(),Object.keys(t).forEach(function(n){null!=f.default.query(n,f.default.Scope.INLINE)&&i.quill.format(n,!1)})):this.quill.removeFormat(n,r.default.sources.USER))},direction:function(n){var t=this.quill.getFormat().align;"rtl"===n&&null==t?this.quill.format("align","right",r.default.sources.USER):n||"right"!==t||this.quill.format("align",!1,r.default.sources.USER);this.quill.format("direction",n,r.default.sources.USER)},indent:function(n){var u=this.quill.getSelection(),i=this.quill.getFormat(u),f=parseInt(i.indent||0),t;("+1"===n||"-1"===n)&&(t="+1"===n?1:-1,"rtl"===i.direction&&(t*=-1),this.quill.format("indent",f+t,r.default.sources.USER))},link:function(n){!0===n&&(n=prompt("Enter link URL:"));this.quill.format("link",n,r.default.sources.USER)},list:function(n){var i=this.quill.getSelection(),t=this.quill.getFormat(i);"check"===n?"checked"===t.list||"unchecked"===t.list?this.quill.format("list",!1,r.default.sources.USER):this.quill.format("list","unchecked",r.default.sources.USER):this.quill.format("list",n,r.default.sources.USER)}}};t.default=s;t.addControls=l},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9><\/line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14><\/line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4><\/line> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9><\/line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14><\/line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4><\/line> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9><\/line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14><\/line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4><\/line> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9><\/line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14><\/line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4><\/line> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"><\/polygon> <rect height=1 width=1 x=4 y=4><\/rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"><\/polygon> <rect height=1 width=1 x=2 y=6><\/rect> <rect height=1 width=1 x=3 y=5><\/rect> <rect height=1 width=1 x=4 y=7><\/rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"><\/polygon> <rect height=1 width=1 x=2 y=12><\/rect> <rect height=1 width=1 x=2 y=9><\/rect> <rect height=1 width=1 x=2 y=15><\/rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"><\/polygon> <rect height=1 width=1 x=3 y=8><\/rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z><\/path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z><\/path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z><\/path> <rect height=1 width=1 x=12 y=2><\/rect> <rect height=1 width=1 x=11 y=3><\/rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z><\/path> <rect height=1 width=1 x=2 y=3><\/rect> <rect height=1 width=1 x=6 y=2><\/rect> <rect height=1 width=1 x=3 y=2><\/rect> <rect height=1 width=1 x=5 y=3><\/rect> <rect height=1 width=1 x=9 y=2><\/rect> <rect height=1 width=1 x=15 y=14><\/rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"><\/polygon> <rect height=1 width=1 x=13 y=7><\/rect> <rect height=1 width=1 x=15 y=5><\/rect> <rect height=1 width=1 x=14 y=6><\/rect> <rect height=1 width=1 x=15 y=8><\/rect> <rect height=1 width=1 x=14 y=9><\/rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z><\/path> <rect height=1 width=1 x=14 y=3><\/rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"><\/polygon> <rect height=1 width=1 x=15 y=2><\/rect> <rect height=1 width=1 x=12 y=5><\/rect> <rect height=1 width=1 x=13 y=4><\/rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"><\/polygon> <rect height=1 width=1 x=9 y=14><\/rect> <rect height=1 width=1 x=8 y=15><\/rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z><\/path> <rect height=1 width=1 x=5 y=15><\/rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z><\/path> <rect height=1 width=1 x=11 y=15><\/rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z><\/path> <rect height=1 width=1 x=14 y=15><\/rect> <rect height=1 width=1 x=15 y=11><\/rect> <\/g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"><\/polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11><\/line> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5><\/rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5><\/rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5><\/path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5><\/path> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z><\/path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z><\/path> <\/svg>'},function(n){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3><\/line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3><\/line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15><\/line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15><\/line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14><\/rect> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15><\/line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"><\/polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9><\/line> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"><\/polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4><\/line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z><\/path> <rect class=ql-fill height=11 width=1 x=11 y=4><\/rect> <rect class=ql-fill height=11 width=1 x=13 y=4><\/rect> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"><\/polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4><\/line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z><\/path> <rect class=ql-fill height=11 width=1 x=5 y=4><\/rect> <rect class=ql-fill height=11 width=1 x=7 y=4><\/rect> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z><\/path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2><\/rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z><\/path> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=3 y1=4 y2=14><\/line> <line class=ql-stroke x1=11 x2=11 y1=4 y2=14><\/line> <line class=ql-stroke x1=11 x2=3 y1=9 y2=9><\/line> <line class="ql-stroke ql-thin" x1=13.5 x2=15.5 y1=14.5 y2=14.5><\/line> <path class=ql-fill d=M14.5,15a0.5,0.5,0,0,1-.5-0.5V12.085l-0.276.138A0.5,0.5,0,0,1,13.053,12c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,15,11.5v3A0.5,0.5,0,0,1,14.5,15Z><\/path> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=3 y1=4 y2=14><\/line> <line class=ql-stroke x1=11 x2=11 y1=4 y2=14><\/line> <line class=ql-stroke x1=11 x2=3 y1=9 y2=9><\/line> <path class="ql-stroke ql-thin" d=M15.5,14.5h-2c0-.234,1.85-1.076,1.85-2.234a0.959,0.959,0,0,0-1.85-.109><\/path> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4><\/line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14><\/line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4><\/line> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4><\/rect> <circle class=ql-fill cx=6 cy=7 r=1><\/circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"><\/polyline> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14><\/line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4><\/line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9><\/line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"><\/polyline> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14><\/line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4><\/line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9><\/line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"><\/polyline> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11><\/line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z><\/path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z><\/path> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4><\/line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9><\/line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14><\/line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5><\/line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z><\/path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156><\/path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109><\/path> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4><\/line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9><\/line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14><\/line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4><\/line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9><\/line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14><\/line> <\/svg>'},function(n){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4><\/line> <polyline class=ql-stroke points="3 4 4 5 6 3"><\/polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14><\/line> <polyline class=ql-stroke points="3 14 4 15 6 13"><\/polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9><\/line> <polyline class=ql-stroke points="3 9 4 10 6 8"><\/polyline> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5><\/line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z><\/path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z><\/path> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3><\/path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15><\/rect> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3><\/rect> <rect class=ql-fill height=12 width=1 x=5 y=3><\/rect> <rect class=ql-fill height=12 width=1 x=12 y=3><\/rect> <rect class=ql-fill height=2 width=8 x=5 y=8><\/rect> <rect class=ql-fill height=1 width=3 x=3 y=5><\/rect> <rect class=ql-fill height=1 width=3 x=3 y=7><\/rect> <rect class=ql-fill height=1 width=3 x=3 y=10><\/rect> <rect class=ql-fill height=1 width=3 x=3 y=12><\/rect> <rect class=ql-fill height=1 width=3 x=12 y=5><\/rect> <rect class=ql-fill height=1 width=3 x=12 y=7><\/rect> <rect class=ql-fill height=1 width=3 x=12 y=10><\/rect> <rect class=ql-fill height=1 width=3 x=12 y=12><\/rect> <\/svg>'},function(n){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"><\/polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"><\/polygon> <\/svg>'},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f;Object.defineProperty(t,"__esModule",{value:!0});t.default=t.BubbleTooltip=void 0;var h=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),p=i(2),w=r(p),b=i(9),u=r(b),l=i(44),a=r(l),k=i(22),d=i(26),v=r(d),g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],y=function(n){function t(n,i){e(this,t);null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=g);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,i));return r.quill.container.classList.add("ql-bubble"),r}return s(t,n),c(t,[{key:"extendToolbar",value:function(n){this.tooltip=new f(this.quill,this.options.bounds);this.tooltip.root.appendChild(n.container);this.buildButtons([].slice.call(n.container.querySelectorAll("button")),v.default);this.buildPickers([].slice.call(n.container.querySelectorAll("select")),v.default)}}]),t}(a.default);y.DEFAULTS=w.default(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});f=function(n){function t(n,i){e(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,i));return r.quill.on(u.default.events.EDITOR_CHANGE,function(n,t,i,f){var e;if(n===u.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&f===u.default.sources.USER)if(r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px",e=r.quill.getLines(t.index,t.length),1===e.length)r.position(r.quill.getBounds(t));else{var o=e[e.length-1],s=r.quill.getIndex(o),h=Math.min(o.length()-1,t.index+t.length-s),c=r.quill.getBounds(new k.Range(s,h));r.position(c)}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return s(t,n),c(t,[{key:"listen",value:function(){var n=this;h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){n.root.classList.remove("ql-editing")});this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!n.root.classList.contains("ql-hidden")){var t=n.quill.getSelection();null!=t&&n.position(n.quill.getBounds(t))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(n){var i=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,n),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===i)return i;r.style.marginLeft=-1*i-r.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);f.TEMPLATE='<span class="ql-tooltip-arrow"><\/span><div class="ql-tooltip-editor"><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-close"><\/a><\/div>';t.BubbleTooltip=f;t.default=y},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f;Object.defineProperty(t,"__esModule",{value:!0});var w=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),h=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),b=i(2),k=r(b),d=i(9),u=r(d),l=i(44),a=r(l),g=i(15),v=r(g),nt=i(22),tt=i(26),y=r(tt),it=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],p=function(n){function t(n,i){e(this,t);null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=it);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,i));return r.quill.container.classList.add("ql-snow"),r}return s(t,n),c(t,[{key:"extendToolbar",value:function(n){n.container.classList.add("ql-snow");this.buildButtons([].slice.call(n.container.querySelectorAll("button")),y.default);this.buildPickers([].slice.call(n.container.querySelectorAll("select")),y.default);this.tooltip=new f(this.quill,this.options.bounds);n.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(t,i){n.handlers.link.call(n,!i.format.link)})}}]),t}(a.default);p.DEFAULTS=k.default(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(n){var i,t;if(n){if(i=this.quill.getSelection(),null==i||0==i.length)return;t=this.quill.getText(i);/^\S+@\S+\.\S+$/.test(t)&&0!==t.indexOf("mailto:")&&(t="mailto:"+t);this.quill.theme.tooltip.edit("link",t)}else this.quill.format("link",!1)}}}}});f=function(n){function t(n,i){e(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,i));return r.preview=r.root.querySelector("a.ql-preview"),r}return s(t,n),c(t,[{key:"listen",value:function(){var n=this;h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(t){n.root.classList.contains("ql-editing")?n.save():n.edit("link",n.preview.textContent);t.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(t){if(null!=n.linkRange){var i=n.linkRange;n.restoreFocus();n.quill.formatText(i,"link",!1,u.default.sources.USER);delete n.linkRange}t.preventDefault();n.hide()});this.quill.on(u.default.events.SELECTION_CHANGE,function(t,i,r){var e;if(null!=t){if(0===t.length&&r===u.default.sources.USER){var s=n.quill.scroll.descendant(v.default,t.index),o=w(s,2),f=o[0],h=o[1];if(null!=f)return n.linkRange=new nt.Range(t.index-h,f.length()),e=v.default.formats(f.domNode),n.preview.textContent=e,n.preview.setAttribute("href",e),n.show(),void n.position(n.quill.getBounds(n.linkRange))}else delete n.linkRange;n.hide()}})}},{key:"show",value:function(){h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]),t}(l.BaseTooltip);f.TEMPLATE='<a class="ql-preview" target="_blank" href="about:blank"><\/a><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-action"><\/a><a class="ql-remove"><\/a>';t.default=p}])}),function(n,t){typeof define=="function"&&define.amd?define(["quill"],t):typeof module!="undefined"&&typeof exports=="object"?module.exports=t(require("quill")):n.Requester=t(n.Quill)}(this,function(n){"use strict";var t;return t=angular.module("ngQuill",[]),t.provider("ngQuillConfig",function(){var n={modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},theme:"snow",placeholder:"Insert text here ...",readOnly:!1,bounds:document.body};this.set=function(t){t=t||{};t.modules&&(n.modules=t.modules);t.theme&&(n.theme=t.theme);t.placeholder!==null&&t.placeholder!==undefined&&(n.placeholder=t.placeholder.trim());t.bounds&&(n.bounds=t.bounds);t.readOnly&&(n.readOnly=t.readOnly);t.formats&&(n.formats=t.formats)};this.$get=function(){return n}}),t.component("ngQuillEditor",{bindings:{modules:"<modules",theme:"@?",readOnly:"<?",formats:"<?",placeholder:"@?",bounds:"<?",scrollingContainer:"<?",strict:"<?",onEditorCreated:"&?",onContentChanged:"&?",onSelectionChanged:"&?",ngModel:"<",maxLength:"<",minLength:"<",customOptions:"<?",format:"@?"},require:{ngModelCtrl:"ngModel"},transclude:{toolbar:"?ngQuillToolbar"},template:'<div class="ng-hide" ng-show="$ctrl.ready"><ng-transclude ng-transclude-slot="toolbar"><\/ng-transclude><\/div>',controller:["$scope","$element","$timeout","$transclude","ngQuillConfig",function(t,i,r,u,f){var s={},o,p,h="html",c=!1,l=!1,e,y=f.placeholder,a,v;this.validate=function(n){this.maxLength&&(n.length>this.maxLength+1?this.ngModelCtrl.$setValidity("maxlength",!1):this.ngModelCtrl.$setValidity("maxlength",!0));this.minLength>1&&(n.length<=this.minLength&&n.length>1?this.ngModelCtrl.$setValidity("minlength",!1):this.ngModelCtrl.$setValidity("minlength",!0))};this.$onChanges=function(n){n.ngModel&&n.ngModel.currentValue!==n.ngModel.previousValue&&(o=n.ngModel.currentValue,e&&!l&&(c=!0,o?e.setContents(e.clipboard.convert(o)):e.setText("")),l=!1);e&&n.readOnly&&e.enable(!n.readOnly.currentValue)};this.$onInit=function(){this.placeholder!==null&&this.placeholder!==undefined&&(y=this.placeholder.trim());this.format&&["object","html","text"].indexOf(this.format)>-1&&(h=this.format);s={theme:this.theme||f.theme,readOnly:this.readOnly||f.readOnly,modules:this.modules||f.modules,formats:this.formats||f.formats,placeholder:y,bounds:this.bounds||f.bounds,strict:this.strict,scrollingContainer:this.scrollingContainer}};this.$postLink=function(){r(function(){this._initEditor(p)}.bind(this),0)};this.$onDestroy=function(){e=null;a&&a.removeListener("text-change");v&&v.removeListener("selection-change")};this._initEditor=function(r){var f=angular.element("<div><\/div>"),y=i.children();if(r=f[0],s.bounds==="self"&&(s.bounds=r),u.isSlotFilled("toolbar")&&(s.modules.toolbar=y.find("ng-quill-toolbar").children()[0]),y.append(f),this.customOptions&&this.customOptions.forEach(function(t){var i=n.import(t.import);i.whitelist=t.whitelist;t.toRegister&&(i[t.toRegister.key]=t.toRegister.value);n.register(i,!0)}),e=new n(r,s),this.ready=!0,v=e.on("selection-change",function(n,i,r){if(this.onSelectionChanged)this.onSelectionChanged({editor:e,oldRange:i,range:n,source:r});n||t.$applyAsync(function(){this.ngModelCtrl.$setTouched()}.bind(this))}.bind(this)),a=e.on("text-change",function(n,i,u){var s=' style="background-color: rgb(255, 255, 255);"',f=r.children[0].innerHTML;f&&f.length&&f.indexOf(s)>=0&&(f=f.split(s).join(""));var o=e.getText(),a=e.getContents(),v=["<"+e.root.firstChild.localName+">","<\/"+e.root.firstChild.localName+">"];f===v[0]+"<br>"+v[1]&&(f=null);this.validate(o);c||t.$applyAsync(function(){if(l=!0,h==="text"?this.ngModelCtrl.$setViewValue(o):h==="object"?this.ngModelCtrl.$setViewValue(a):this.ngModelCtrl.$setViewValue(f),this.onContentChanged)this.onContentChanged({editor:e,html:f,text:o,content:a,delta:n,oldDelta:i,source:u})}.bind(this));c=!1}.bind(this)),o&&(c=!0,h==="text"?e.setText(o,"silent"):h==="object"?e.setContents(o,"silent"):e.setContents(e.clipboard.convert(o,"silent")),e.history.clear()),this.onEditorCreated)this.onEditorCreated({editor:e})}}]}),t.name}),function(n,t,i){"use strict";t.module("ngIdle",["ngIdle.keepalive","ngIdle.idle","ngIdle.countdown","ngIdle.title","ngIdle.localStorage"]);t.module("ngIdle.keepalive",[]).provider("Keepalive",function(){var n={http:null,interval:600},i;this.http=function(i){if(!i)throw new Error("Argument must be a string containing a URL, or an object containing the HTTP request configuration.");t.isString(i)&&(i={url:i,method:"GET"});i.cache=!1;n.http=i};i=this.interval=function(t){if(t=parseInt(t),isNaN(t)||t<=0)throw new Error("Interval must be expressed in seconds and be greater than 0.");n.interval=t};this.$get=["$rootScope","$log","$interval","$http",function(r,u,f,e){function s(n){r.$broadcast("KeepaliveResponse",n.data,n.status)}function h(){t.isObject(n.http)&&e(n.http).then(s).catch(s)}var o={ping:null};return{_options:function(){return n},setInterval:i,start:function(){return f.cancel(o.ping),o.ping=f(h,n.interval*1e3),o.ping},stop:function(){f.cancel(o.ping)},ping:function(){h()}}}]});t.module("ngIdle.idle",["ngIdle.keepalive","ngIdle.localStorage"]).provider("Idle",function(){var n={idle:1200,timeout:30,autoResume:"idle",interrupt:"mousemove keydown DOMMouseScroll mousewheel mousedown touchstart touchmove scroll",windowInterrupt:null,keepalive:!0},r=this.timeout=function(i){if(i===!1)n.timeout=0;else if(t.isNumber(i)&&i>=0)n.timeout=i;else throw new Error("Timeout must be zero or false to disable the feature, or a positive integer (in seconds) to enable it.");},i;this.interrupt=function(t){n.interrupt=t};this.windowInterrupt=function(t){n.windowInterrupt=t};i=this.idle=function(t){if(t<=0)throw new Error("Idle must be a value in seconds, greater than 0.");n.idle=t};this.autoResume=function(t){n.autoResume=t===!0?"idle":t===!1?"off":t};this.keepalive=function(t){n.keepalive=t===!0};this.$get=["$interval","$log","$rootScope","$document","Keepalive","IdleLocalStorage","$window",function(u,f,e,o,s,h,c){function d(){n.keepalive&&(l.running&&s.ping(),s.start())}function b(){n.keepalive&&s.stop()}function g(){l.idling=!l.idling;var t=l.idling?"IdleStart":"IdleEnd";l.idling?(console.log("SessionTimeOutData:",t),b(),n.timeout&&(l.countdown=n.timeout,nt(),l.timeout=u(nt,1e3,n.timeout,!1))):(d(),e.$broadcast(t));u.cancel(l.idle)}function nt(){if(l.idling){if(l.countdown<=0){tt();return}console.log("SessionTimeOutData IdleWarn:",l.countdown);l.countdown--}}function ut(n){e.$broadcast("IdleInterrupt",n)}function tt(){b();u.cancel(l.idle);u.cancel(l.timeout);l.idling=!0;l.running=!1;l.countdown=0;e.$broadcast("IdleTimeout")}function it(n,t,i){var r=n.running();n.unwatch();t(i);r&&n.watch()}function ft(){var n=h.get("expiry");return n&&n.time?new Date(n.time):null}function rt(n){n?h.set("expiry",{id:k,time:n}):h.remove("expiry")}var l={idle:null,timeout:null,idling:!1,running:!1,countdown:null},k=(new Date).getTime(),w={_options:function(){return n},_getNow:function(){return new Date},getIdle:function(){return n.idle},getTimeout:function(){return n.timeout},setIdle:function(n){it(this,i,n)},setTimeout:function(n){it(this,r,n)},isExpired:function(){var n=ft();return n!==null&&n<=this._getNow()},running:function(){return l.running},idling:function(){return l.idling},watch:function(t){u.cancel(l.idle);u.cancel(l.timeout);var i=n.timeout?n.timeout:0;t||rt(new Date((new Date).getTime()+(n.idle+i)*1e3));l.idling?g():l.running||d();l.running=!0;l.idle=u(g,n.idle*1e3,0,!1)},unwatch:function(){u.cancel(l.idle);u.cancel(l.timeout);l.idling=!1;l.running=!1;rt(null);b()},interrupt:function(t){if(l.running){if(n.timeout&&this.isExpired()){tt();return}ut(t);(t||n.autoResume==="idle"||n.autoResume==="notIdle"&&!l.idling)&&this.watch(t)}}},et={clientX:null,clientY:null,swap:function(n){var t={clientX:this.clientX,clientY:this.clientY};return this.clientX=n.clientX,this.clientY=n.clientY,t},hasMoved:function(n){var t=this.swap(n);return this.clientX===null||n.movementX||n.movementY?!0:t.clientX!=n.clientX||t.clientY!=n.clientY?!0:!1}},v,y,a,p;o.find("html").on(n.interrupt,function(n){n.type==="mousemove"&&n.originalEvent&&n.originalEvent.movementX===0&&n.originalEvent.movementY===0||(n.type!=="mousemove"||et.hasMoved(n))&&w.interrupt()});if(n.windowInterrupt)for(v=n.windowInterrupt.split(" "),y=function(){w.interrupt()},a=0;a<v.length;a++)c.addEventListener?(c.addEventListener(v[a],y,!1),e.$on("$destroy",function(){c.removeEventListener(v[a],y,!1)})):(c.attachEvent(v[a],y),e.$on("$destroy",function(){c.detachEvent(v[a],y)}));return p=function(n){if(n.key==="ngIdle.expiry"&&n.newValue&&n.newValue!==n.oldValue){var i=t.fromJson(n.newValue);if(i.id===k)return;w.interrupt(!0)}},c.addEventListener?(c.addEventListener("storage",p,!1),e.$on("$destroy",function(){c.removeEventListener("storage",p,!1)})):c.attachEvent&&(c.attachEvent("onstorage",p),e.$on("$destroy",function(){c.detachEvent("onstorage",p)})),w}]});t.module("ngIdle.countdown",["ngIdle.idle"]).directive("idleCountdown",["Idle",function(n){return{restrict:"A",scope:{value:"=idleCountdown"},link:function(t){t.value=n.getTimeout();t.$on("IdleWarn",function(n,i){t.$evalAsync(function(){t.value=i})});t.$on("IdleTimeout",function(){t.$evalAsync(function(){t.value=0})})}}}]);t.module("ngIdle.title",[]).provider("Title",function(){function r(n,t,i){return new Array(t-String(n).length+1).join(i||"0")+n}var n={enabled:!0},i=this.enabled=function(t){n.enabled=t===!0};this.$get=["$document","$interpolate",function(u,f){var e={original:null,idle:"{{minutes}}:{{seconds}} until your session times out!",timedout:"Your session has expired."};return{setEnabled:i,isEnabled:function(){return n.enabled},original:function(n){if(t.isUndefined(n))return e.original;e.original=n},store:function(n){(n||!e.original)&&(e.original=this.value())},value:function(n){if(t.isUndefined(n))return u[0].title;u[0].title=n},idleMessage:function(n){if(t.isUndefined(n))return e.idle;e.idle=n},timedOutMessage:function(n){if(t.isUndefined(n))return e.timedout;e.timedout=n},setAsIdle:function(n){this.store();var t={totalSeconds:n};t.minutes=Math.floor(n/60);t.seconds=r(n-t.minutes*60,2);this.value(f(this.idleMessage())(t))},setAsTimedOut:function(){this.store();this.value(this.timedOutMessage())},restore:function(){this.original()&&this.value(this.original())}}}]});t.module("ngIdle.localStorage",[]).service("IdleStorageAccessor",["$window",function(n){return{get:function(){return n.localStorage}}}]).service("IdleLocalStorage",["IdleStorageAccessor",function(n){function u(){var n={};this.setItem=function(t,i){n[t]=i};this.getItem=function(t){return typeof n[t]!="undefined"?n[t]:null};this.removeItem=function(t){n[t]=i}}function f(){try{var t=n.get();return t.setItem("ngIdleStorage",""),t.removeItem("ngIdleStorage"),t}catch(i){return new u}}var r=f();return{set:function(n,i){r.setItem("ngIdle."+n,t.toJson(i))},get:function(n){return t.fromJson(r.getItem("ngIdle."+n))},remove:function(n){r.removeItem("ngIdle."+n)},_wrapped:function(){return r}}}])}(window,window.angular);typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports="checklist-model");angular.module("checklist-model",[]).directive("checklistModel",["$parse","$compile",function(n,t){function i(n,t,i){if(angular.isArray(n))for(var r=n.length;r--;)if(i(n[r],t))return!0;return!1}function r(n,t,r){return n=angular.isArray(n)?n:[],i(n,t,r)||n.push(t),n}function u(n,t,i){if(angular.isArray(n))for(var r=n.length;r--;)if(i(n[r],t)){n.splice(r,1);break}return n}function f(f,e,o){function nt(){k();d();g()}function c(){return o.checklistValue?n(o.checklistValue)(f.$parent):o.value}function w(n,t){var i=s(f.$parent);angular.isFunction(s.assign)&&(t===!0?s.assign(f.$parent,r(i,n,h)):s.assign(f.$parent,u(i,n,h)))}function b(n){if(a&&a(f)===!1){w(c(),v(f));return}v.assign(f,i(n,c(),h))}var l=o.checklistModel,y;o.$set("checklistModel",null);t(e)(f);o.$set("checklistModel",l);var s=n(l),p=n(o.checklistChange),a=n(o.checklistBeforeChange),v=n(o.ngModel),h=angular.equals;o.hasOwnProperty("checklistComparator")&&(o.checklistComparator[0]=="."?(y=o.checklistComparator.substring(1),h=function(n,t){return n[y]===t[y]}):h=n(o.checklistComparator)(f.$parent));var k=f.$watch(o.ngModel,function(n,t){if(n!==t){if(a&&a(f)===!1){v.assign(f,i(s(f.$parent),c(),h));return}w(c(),n);p&&p(f)}}),d=f.$watch(c,function(n,t){if(n!=t&&angular.isDefined(t)&&f[o.ngModel]===!0){var i=s(f.$parent);s.assign(f.$parent,u(i,t,h));s.assign(f.$parent,r(i,n,h))}},!0),g=f.$on("$destroy",nt);angular.isFunction(f.$parent.$watchCollection)?f.$parent.$watchCollection(l,b):f.$parent.$watch(l,b,!0)}return{restrict:"A",priority:1e3,terminal:!0,scope:!0,compile:function(n,t){if(!t.checklistValue&&!t.value)throw"You should provide `value` or `checklist-value`.";return t.ngModel||t.$set("ngModel","checked"),f}}}]);!function(){"use strict";function i(n){return angular.isUndefined(n)||null===n}var n={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",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:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(t){var i=t.which;switch(i){case n.COMMAND:case n.SHIFT:case n.CTRL:case n.ALT:return!0}return!!(t.metaKey||t.ctrlKey||t.altKey)},isFunctionKey:function(n){return n=n.which?n.which:n,n>=112&&n<=123},isVerticalMovement:function(t){return~[n.UP,n.DOWN].indexOf(t)},isHorizontalMovement:function(t){return~[n.LEFT,n.RIGHT,n.BACKSPACE,n.DELETE].indexOf(t)},toSeparator:function(t){var i={ENTER:"\n",TAB:"\t",SPACE:" "}[t];return i?i:n[t]?void 0:t}},r,t;void 0===angular.element.prototype.querySelectorAll&&(angular.element.prototype.querySelectorAll=function(n){return angular.element(this[0].querySelectorAll(n))});void 0===angular.element.prototype.closest&&(angular.element.prototype.closest=function(n){for(var t=this[0],i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(i.bind(t)(n))return t;t=t.parentElement}return!1});r=0;t=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,skipFocusser:!1,dropdownPosition:"auto",removeSelected:!0,resetSearchInput:!0,generateId:function(){return r++},appendToBody:!1,spinnerEnabled:!1,spinnerClass:"glyphicon glyphicon-refresh ui-select-spin",backspaceReset:!0}).service("uiSelectMinErr",function(){var n=angular.$$minErr("ui.select");return function(){var t=n.apply(this,arguments),i=t.message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(i)}}).directive("uisTranscludeAppend",function(){return{link:function(n,t,i,r,u){u(n,function(n){t.append(n)})}}}).filter("highlight",function(){function n(n){return(""+n).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,i){return i&&t?(""+t).replace(new RegExp(n(i),"gi"),'<span class="ui-select-highlight">$&<\/span>'):t}}).factory("uisOffset",["$document","$window",function(n,t){return function(i){var r=i[0].getBoundingClientRect();return{width:r.width||i.prop("offsetWidth"),height:r.height||i.prop("offsetHeight"),top:r.top+(t.pageYOffset||n[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||n[0].documentElement.scrollLeft)}}}]);t.factory("$$uisDebounce",["$timeout",function(n){return function(t,i){var r;return function(){var u=this,f=Array.prototype.slice.call(arguments);r&&n.cancel(r);r=n(function(){t.apply(u,f)},i)}}}]);t.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile","$window",function(n,t,i,r,u){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){t.addClass("ui-select-choices");var i=t.parent().attr("theme")||n.theme;return i+"/choices.tpl.html"},compile:function(r,f){var s,l,h,c,e,o,a;if(!f.repeat)throw i("repeat","Expected 'repeat' expression.");if(s=f.groupBy,l=f.groupFilter,s){if(h=r.querySelectorAll(".ui-select-choices-group"),1!==h.length)throw i("rows","Expected 1 .ui-select-choices-group but got '{0}'.",h.length);h.attr("ng-repeat",t.getGroupNgRepeatExpression())}if(c=t.parse(f.repeat),e=r.querySelectorAll(".ui-select-choices-row"),1!==e.length)throw i("rows","Expected 1 .ui-select-choices-row but got '{0}'.",e.length);if(e.attr("ng-repeat",c.repeatExpression(s)).attr("ng-if","$select.open"),o=r.querySelectorAll(".ui-select-choices-row-inner"),1!==o.length)throw i("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",o.length);return o.attr("uis-transclude-append",""),a=u.document.addEventListener?e:o,a.attr("ng-click","$select.select("+c.itemName+",$select.skipFocusser,$event)"),function(t,i,u,f){f.parseRepeatAttr(u.repeat,s,l);f.disableChoiceExpression=u.uiDisableChoice;f.onHighlightCallback=u.onHighlight;f.minimumInputLength=parseInt(u.minimumInputLength)||0;f.dropdownPosition=u.position?u.position.toLowerCase():n.dropdownPosition;t.$watch("$select.search",function(n){n&&!f.open&&f.multiple&&f.activate(!1,!0);f.activeIndex=f.tagging.isActivated?-1:0;!u.minimumInputLength||f.search.length>=u.minimumInputLength?f.refresh(u.refresh):f.items=[]});u.$observe("refreshDelay",function(){var i=t.$eval(u.refreshDelay);f.refreshDelay=void 0!==i?i:n.refreshDelay});t.$watch("$select.open",function(n){n?(r.attr("role","listbox"),f.refresh(u.refresh)):i.removeAttr("role")})}}}}]);t.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","$$uisDebounce","uisRepeatParser","uiSelectMinErr","uiSelectConfig","$parse","$injector","$window",function(t,r,u,f,e,o,s,h,c,l,a){function rt(n,t,i){if(n.findIndex)return n.findIndex(t,i);for(var f,u=Object(n),e=u.length>>>0,r=0;r<e;r++)if(f=u[r],t.call(i,f,r,u))return r;return-1}function w(){v.resetSearchInput&&(v.search=k,v.selected&&v.items.length&&!v.multiple&&(v.activeIndex=rt(v.items,function(n){return angular.equals(this,n)},v.selected)))}function ut(n,t){for(var i,u=[],r=0;r<t.length;r++)for(i=0;i<n.length;i++)n[i].name==[t[r]]&&u.push(n[i]);return u}function ft(n,t){var i=y.indexOf(n);t&&i===-1&&y.push(n);!t&&i>-1&&y.splice(i,1)}function b(n){return y.indexOf(n)>-1}function et(n){function i(n,i){var r=t.indexOf(n);i&&r===-1&&t.push(n);!i&&r>-1&&t.splice(r,1)}function r(n){return t.indexOf(n)>-1}if(n){var t=[];v.isLocked=function(n,t){var u=!1,f=v.selected[t];return f&&(n?(u=!!n.$eval(v.lockChoiceExpression),i(f,u)):u=r(f)),u}}}function ot(t){var f=!0,i,u,r;switch(t){case n.DOWN:if(!v.open&&v.multiple)v.activate(!1,!0);else if(v.activeIndex<v.items.length-1)for(i=++v.activeIndex;b(v.items[i])&&i<v.items.length;)v.activeIndex=++i;break;case n.UP:if(u=0===v.search.length&&v.tagging.isActivated?-1:0,!v.open&&v.multiple)v.activate(!1,!0);else if(v.activeIndex>u)for(r=--v.activeIndex;b(v.items[r])&&r>u;)v.activeIndex=--r;break;case n.TAB:v.multiple&&!v.open||v.select(v.items[v.activeIndex],!0);break;case n.ENTER:v.open&&(v.tagging.isActivated||v.activeIndex>=0)?v.select(v.items[v.activeIndex],v.skipFocusser):v.activate(!1,!0);break;case n.ESC:v.close();break;default:f=!1}return f}function it(){var n=r.querySelectorAll(".ui-select-choices-content"),u=n.querySelectorAll(".ui-select-choices-row");if(u.length<1)throw s("choices","Expected multiple .ui-select-choices-row but got '{0}'.",u.length);if(!(v.activeIndex<0)){var t=u[v.activeIndex],i=t.offsetTop+t.clientHeight-n[0].scrollTop,f=n[0].offsetHeight;i>f?n[0].scrollTop+=i-f:i<t.clientHeight&&(v.isGrouped&&0===v.activeIndex?n[0].scrollTop=0:n[0].scrollTop-=t.clientHeight-i)}}var v=this,k="",g,nt,y,p,d,tt;if(v.placeholder=h.placeholder,v.searchEnabled=h.searchEnabled,v.sortable=h.sortable,v.refreshDelay=h.refreshDelay,v.paste=h.paste,v.resetSearchInput=h.resetSearchInput,v.refreshing=!1,v.spinnerEnabled=h.spinnerEnabled,v.spinnerClass=h.spinnerClass,v.removeSelected=h.removeSelected,v.closeOnSelect=!0,v.skipFocusser=!1,v.search=k,v.activeIndex=0,v.items=[],v.open=!1,v.focus=!1,v.disabled=!1,v.selected=void 0,v.dropdownPosition="auto",v.focusser=void 0,v.multiple=void 0,v.disableChoiceExpression=void 0,v.tagging={isActivated:!1,fct:void 0},v.taggingTokens={isActivated:!1,tokens:void 0},v.lockChoiceExpression=void 0,v.clickTriggeredSelect=!1,v.$filter=f,v.$element=r,v.$animate=function(){try{return l.get("$animate")}catch(n){return null}}(),v.searchInput=r.querySelectorAll("input.ui-select-search"),1!==v.searchInput.length)throw s("searchInput","Expected 1 input.ui-select-search but got '{0}'.",v.searchInput.length);v.isEmpty=function(){return i(v.selected)||""===v.selected||v.multiple&&0===v.selected.length};v.activate=function(n,i){var e,o,f;v.disabled||v.open?v.open&&!v.searchEnabled&&v.close():(i||w(),t.$broadcast("uis:activate"),v.open=!0,v.activeIndex=v.activeIndex>=v.items.length?0:v.activeIndex,v.activeIndex===-1&&v.taggingLabel!==!1&&(v.activeIndex=0),e=r.querySelectorAll(".ui-select-choices-content"),o=r.querySelectorAll(".ui-select-search"),v.$animate&&v.$animate.on&&v.$animate.enabled(e[0])?(f=function(t,i){"start"===i&&0===v.items.length?(v.$animate.off("removeClass",o[0],f),u(function(){v.focusSearchInput(n)})):"close"===i&&(v.$animate.off("enter",e[0],f),u(function(){v.focusSearchInput(n)}))},v.items.length>0?v.$animate.on("enter",e[0],f):v.$animate.on("removeClass",o[0],f)):u(function(){v.focusSearchInput(n);!v.tagging.isActivated&&v.items.length>1&&it()}))};v.focusSearchInput=function(n){v.search=n||v.search;v.searchInput[0].focus()};v.findGroupByName=function(n){return v.groups&&v.groups.filter(function(t){return t.name===n})[0]};v.parseRepeatAttr=function(n,i,r){function e(n){var f=t.$eval(i),u;(v.groups=[],angular.forEach(n,function(n){var t=angular.isFunction(f)?f(n):n[f],i=v.findGroupByName(t);i?i.items.push(n):v.groups.push({name:t,items:[n]})}),r)&&(u=t.$eval(r),angular.isFunction(u)?v.groups=u(v.groups):angular.isArray(u)&&(v.groups=ut(v.groups,u)));v.items=[];v.groups.forEach(function(n){v.items=v.items.concat(n.items)})}function h(n){v.items=n||[]}v.setItemsFn=i?e:h;v.parserResult=o.parse(n);v.isGrouped=!!i;v.itemProperty=v.parserResult.itemName;var u=v.parserResult.source,f=function(){var n=u(t);t.$uisSource=Object.keys(n).map(function(t){var i={};return i[v.parserResult.keyName]=t,i.value=n[t],i})};v.parserResult.keyName&&(f(),v.parserResult.source=c("$uisSource"+v.parserResult.filters),t.$watch(u,function(n,t){n!==t&&f()},!0));v.refreshItems=function(n){var i,r;n=n||v.parserResult.source(t);i=v.selected;!v.isEmpty()&&(!angular.isArray(i)||i.length)&&v.multiple&&v.removeSelected?void 0!==n&&null!==n&&(r=n.filter(function(n){return angular.isArray(i)?i.every(function(t){return!angular.equals(n,t)}):!angular.equals(n,i)}),v.setItemsFn(r)):v.setItemsFn(n);"auto"!==v.dropdownPosition&&"up"!==v.dropdownPosition||t.calculateDropdownPos();t.$broadcast("uis:refresh")};t.$watchCollection(v.parserResult.source,function(n){if(void 0===n||null===n)v.items=[];else{if(!angular.isArray(n))throw s("items","Expected an array but got '{0}'.",n);v.refreshItems(n);angular.isDefined(v.ngModel.$modelValue)&&(v.ngModel.$modelValue=null)}})};v.refresh=function(n){void 0!==n&&(g&&u.cancel(g),g=u(function(){if(t.$select.search.length>=t.$select.minimumInputLength){var i=t.$eval(n);i&&angular.isFunction(i.then)&&!v.refreshing&&(v.refreshing=!0,i["finally"](function(){v.refreshing=!1}))}},v.refreshDelay))};v.isActive=function(n){if(!v.open)return!1;var i=v.items.indexOf(n[v.itemProperty]),t=i==v.activeIndex;return!(!t||i<0)&&(t&&!angular.isUndefined(v.onHighlightCallback)&&n.$eval(v.onHighlightCallback),t)};nt=function(n){return v.selected&&angular.isArray(v.selected)&&v.selected.filter(function(t){return angular.equals(t,n)}).length>0};y=[];v.isDisabled=function(n){if(v.open){var i=n[v.itemProperty],r=v.items.indexOf(i),t=!1;if(r>=0&&(angular.isDefined(v.disableChoiceExpression)||v.multiple)){if(i.isTag)return!1;v.multiple&&(t=nt(i));!t&&angular.isDefined(v.disableChoiceExpression)&&(t=!!n.$eval(v.disableChoiceExpression));ft(i,t)}return t}};v.select=function(n,r,u){if(i(n)||!b(n)){if(!v.items&&!v.search&&!v.tagging.isActivated)return;if(!n||!b(n)){if(v.clickTriggeredSelect=!1,u&&("click"===u.type||"touchend"===u.type)&&n&&(v.clickTriggeredSelect=!0),v.tagging.isActivated&&v.clickTriggeredSelect===!1){if(v.taggingLabel===!1)if(v.activeIndex<0){if(void 0===n&&(n=void 0!==v.tagging.fct?v.tagging.fct(v.search):v.search),!n||angular.equals(v.items[0],n))return}else n=v.items[v.activeIndex];else if(0===v.activeIndex){if(void 0===n)return;if(void 0!==v.tagging.fct&&"string"==typeof n){if(n=v.tagging.fct(n),!n)return}else"string"==typeof n&&(n=n.replace(v.taggingLabel,"").trim())}if(nt(n))return void v.close(r)}w();t.$broadcast("uis:select",n);v.closeOnSelect&&v.close(r)}}};v.close=function(n){v.open&&(v.ngModel&&v.ngModel.$setTouched&&v.ngModel.$setTouched(),v.open=!1,w(),t.$broadcast("uis:close",n))};v.setFocus=function(){v.focus||v.focusInput[0].focus()};v.clear=function(n){v.select(null);n.stopPropagation();u(function(){v.focusser[0].focus()},0,!1)};v.toggle=function(n){v.open?(v.close(),n.preventDefault(),n.stopPropagation()):v.activate()};v.isLocked=function(){return!1};t.$watch(function(){return angular.isDefined(v.lockChoiceExpression)&&""!==v.lockChoiceExpression},et);p=null;d=!1;v.sizeSearchInput=function(){var n=v.searchInput[0],f=v.$element[0],i=function(){return f.clientWidth*!!n.offsetParent},r=function(t){if(0===t)return!1;var i=t-n.offsetLeft;return i<50&&(i=t),v.searchInput.css("width",i+"px"),!0};v.searchInput.css("width","10px");u(function(){null!==p||r(i())||(p=t.$watch(function(){d||(d=!0,t.$$postDigest(function(){d=!1;r(i())&&(p(),p=null)}))},angular.noop))})};v.searchInput.on("keydown",function(i){var r=i.which;~[n.ENTER,n.ESC].indexOf(r)&&(i.preventDefault(),i.stopPropagation());t.$apply(function(){var f=!1,t;if((v.items.length>0||v.tagging.isActivated)&&(ot(r)||v.searchEnabled||(i.preventDefault(),i.stopPropagation()),v.taggingTokens.isActivated)){for(t=0;t<v.taggingTokens.tokens.length;t++)v.taggingTokens.tokens[t]===n.MAP[i.keyCode]&&v.search.length>0&&(f=!0);f&&u(function(){v.searchInput.triggerHandler("tagged");var t=v.search.replace(n.MAP[i.keyCode],"").trim();v.tagging.fct&&(t=v.tagging.fct(t));t&&v.select(t,!0)})}});n.isVerticalMovement(r)&&v.items.length>0&&it();r!==n.ENTER&&r!==n.ESC||(i.preventDefault(),i.stopPropagation())});v.searchInput.on("paste",function(t){var i,r,u,f,e;if(i=window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):(t.originalEvent||t).clipboardData.getData("text/plain"),i=v.search+i,i&&i.length>0)if(v.taggingTokens.isActivated){for(r=[],u=0;u<v.taggingTokens.tokens.length;u++)if(f=n.toSeparator(v.taggingTokens.tokens[u])||v.taggingTokens.tokens[u],i.indexOf(f)>-1){r=i.split(f);break}0===r.length&&(r=[i]);e=v.search;angular.forEach(r,function(n){var t=v.tagging.fct?v.tagging.fct(n):n;t&&v.select(t,!0)});v.search=e||k;t.preventDefault();t.stopPropagation()}else v.paste&&(v.paste(i),v.search=k,t.preventDefault(),t.stopPropagation())});v.searchInput.on("tagged",function(){u(function(){w()})});tt=e(function(){v.sizeSearchInput()},50);angular.element(a).bind("resize",tt);t.$on("$destroy",function(){v.searchInput.off("keyup keydown tagged blur paste");angular.element(a).off("resize",tt)});t.$watch("$select.activeIndex",function(n){n&&r.find("input").attr("aria-activedescendant","ui-select-choices-row-"+v.generatedId+"-"+n)});t.$watch("$select.open",function(n){n||r.find("input").removeAttr("aria-activedescendant")})}]);t.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(n,t,i,r,u,f,e){return{restrict:"EA",templateUrl:function(n,i){var r=i.theme||t.theme;return r+(angular.isDefined(i.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(u,o){var s=/{(.*)}\s*{(.*)}/.exec(o.ngClass),h;return s&&(h="{"+s[1]+", "+s[2]+"}",o.ngClass=h,u.attr("ng-class",h)),angular.isDefined(o.multiple)?u.append("<ui-select-multiple/>").removeAttr("multiple"):u.append("<ui-select-single/>"),o.inputId&&(u.querySelectorAll("input.ui-select-search")[0].id=o.inputId),function(u,o,s,h,c){function w(n){var i,t,f,r;l.open&&(i=!1,(i=window.jQuery?window.jQuery.contains(o[0],n.target):o[0].contains(n.target),i||l.clickTriggeredSelect)||(l.skipFocusser?t=!0:(f=["input","button","textarea","select"],r=angular.element(n.target).controller("uiSelect"),t=r&&r!==l,t||(t=~f.indexOf(n.target.tagName.toLowerCase()))),l.close(t),u.$digest()),l.clickTriggeredSelect=!1)}function tt(){var t=r(o);v=angular.element('<div class="ui-select-placeholder"><\/div>');v[0].style.width=t.width+"px";v[0].style.height=t.height+"px";o.after(v);k=o[0].style.width;n.find("body").append(o);o[0].style.position="absolute";o[0].style.left=t.left+"px";o[0].style.top=t.top+"px";o[0].style.width=t.width+"px"}function b(){null!==v&&(v.replaceWith(o),v=null,o[0].style.position="",o[0].style.left="",o[0].style.top="",o[0].style.width=k,l.setFocus())}var l=h[0],it=h[1],p;l.generatedId=t.generateId();l.baseTitle=s.title||"Select box";l.focusserTitle=l.baseTitle+" focus";l.focusserId="focusser-"+l.generatedId;l.closeOnSelect=function(){return angular.isDefined(s.closeOnSelect)?f(s.closeOnSelect)():t.closeOnSelect}();u.$watch("skipFocusser",function(){var n=u.$eval(s.skipFocusser);l.skipFocusser=void 0!==n?n:t.skipFocusser});l.onSelectCallback=f(s.onSelect);l.onRemoveCallback=f(s.onRemove);l.ngModel=it;l.choiceGrouped=function(n){return l.isGrouped&&n&&n.name};s.tabindex&&s.$observe("tabindex",function(n){l.focusInput.attr("tabindex",n);o.removeAttr("tabindex")});u.$watch(function(){return u.$eval(s.searchEnabled)},function(n){l.searchEnabled=void 0!==n?n:t.searchEnabled});u.$watch("sortable",function(){var n=u.$eval(s.sortable);l.sortable=void 0!==n?n:t.sortable});s.$observe("backspaceReset",function(){var n=u.$eval(s.backspaceReset);l.backspaceReset=void 0===n||n});s.$observe("limit",function(){l.limit=angular.isDefined(s.limit)?parseInt(s.limit,10):void 0});u.$watch("removeSelected",function(){var n=u.$eval(s.removeSelected);l.removeSelected=void 0!==n?n:t.removeSelected});s.$observe("disabled",function(){l.disabled=void 0!==s.disabled&&s.disabled});s.$observe("resetSearchInput",function(){var n=u.$eval(s.resetSearchInput);l.resetSearchInput=void 0===n||n});s.$observe("paste",function(){l.paste=u.$eval(s.paste)});s.$observe("tagging",function(){if(void 0!==s.tagging){var n=u.$eval(s.tagging);l.tagging={isActivated:!0,fct:n!==!0?n:void 0}}else l.tagging={isActivated:!1,fct:void 0}});s.$observe("taggingLabel",function(){void 0!==s.tagging&&(l.taggingLabel="false"===s.taggingLabel?!1:void 0!==s.taggingLabel?s.taggingLabel:"(new)")});s.$observe("taggingTokens",function(){if(void 0!==s.tagging){var n=void 0!==s.taggingTokens?s.taggingTokens.split("|"):[",","ENTER"];l.taggingTokens={isActivated:!0,tokens:n}}});s.$observe("spinnerEnabled",function(){var n=u.$eval(s.spinnerEnabled);l.spinnerEnabled=void 0!==n?n:t.spinnerEnabled});s.$observe("spinnerClass",function(){var n=s.spinnerClass;l.spinnerClass=void 0!==n?s.spinnerClass:t.spinnerClass});angular.isDefined(s.autofocus)&&e(function(){l.setFocus()});angular.isDefined(s.focusOn)&&u.$on(s.focusOn,function(){e(function(){l.setFocus()})});n.on("click",w);u.$on("$destroy",function(){n.off("click",w)});c(u,function(n){var f=angular.element("<div>").append(n),r=f.querySelectorAll(".ui-select-match"),t,u;if(r.removeAttr("ui-select-match"),r.removeAttr("data-ui-select-match"),1!==r.length)throw i("transcluded","Expected 1 .ui-select-match but got '{0}'.",r.length);if(o.querySelectorAll(".ui-select-match").replaceWith(r),t=f.querySelectorAll(".ui-select-choices"),t.removeAttr("ui-select-choices"),t.removeAttr("data-ui-select-choices"),1!==t.length)throw i("transcluded","Expected 1 .ui-select-choices but got '{0}'.",t.length);o.querySelectorAll(".ui-select-choices").replaceWith(t);u=f.querySelectorAll(".ui-select-no-choice");u.removeAttr("ui-select-no-choice");u.removeAttr("data-ui-select-no-choice");1==u.length&&o.querySelectorAll(".ui-select-no-choice").replaceWith(u)});p=u.$eval(s.appendToBody);(void 0!==p?p:t.appendToBody)&&(u.$watch("$select.open",function(n){n?tt():b()}),u.$on("$destroy",function(){b()}));var v=null,k="",a=null,y="direction-up";u.$watch("$select.open",function(){"auto"!==l.dropdownPosition&&"up"!==l.dropdownPosition||u.calculateDropdownPos()});var d=function(n,t){n=n||r(o);t=t||r(a);a[0].style.position="absolute";a[0].style.top=t.height*-1+"px";o.addClass(y)},rt=function(n,t){o.removeClass(y);n=n||r(o);t=t||r(a);a[0].style.position="";a[0].style.top=""},g=function(){e(function(){if("up"===l.dropdownPosition)d();else{o.removeClass(y);var t=r(o),i=r(a),u=n[0].documentElement.scrollTop||n[0].body.scrollTop;t.top+t.height+i.height>u+n[0].documentElement.clientHeight?d(t,i):rt(t,i)}a[0].style.opacity=1})},nt=!1;u.calculateDropdownPos=function(){if(l.open){if(a=angular.element(o).querySelectorAll(".ui-select-dropdown"),0===a.length)return;if(""!==l.search||nt||(a[0].style.opacity=0,nt=!0),!r(a).height&&l.$animate&&l.$animate.on&&l.$animate.enabled(a)){var n=!0;l.$animate.on("enter",a,function(t,i){"close"===i&&n&&(g(),n=!1)})}else g()}else{if(null===a||0===a.length)return;a[0].style.opacity=0;a[0].style.position="";a[0].style.top="";o.removeClass(y)}}}}}}]);t.directive("uiSelectMatch",["uiSelectConfig",function(n){function t(n,t){return n[0].hasAttribute(t)?n.attr(t):n[0].hasAttribute("data-"+t)?n.attr("data-"+t):n[0].hasAttribute("x-"+t)?n.attr("x-"+t):void 0}return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(i){i.addClass("ui-select-match");var r=i.parent(),u=t(r,"theme")||n.theme,f=angular.isDefined(t(r,"multiple"));return u+(f?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(t,i,r,u){function f(n){u.allowClear=!!angular.isDefined(n)&&(""===n||"true"===n.toLowerCase())}u.lockChoiceExpression=r.uiLockChoice;r.$observe("placeholder",function(t){u.placeholder=void 0!==t?t:n.placeholder});r.$observe("allowClear",f);f(r.allowClear);u.multiple&&u.sizeSearchInput()}}}]);t.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(t,r){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(n,t){var u,r=this,i=n.$select;angular.isUndefined(i.selected)&&(i.selected=[]);n.$evalAsync(function(){u=n.ngModel});r.activeMatchIndex=-1;r.updateModel=function(){u.$setViewValue(Date.now());r.refreshComponent()};r.refreshComponent=function(){i.refreshItems&&i.refreshItems();i.sizeSearchInput&&i.sizeSearchInput()};r.removeChoice=function(u){if(i.isLocked(null,u))return!1;var f=i.selected[u],e={};return e[i.parserResult.itemName]=f,i.selected.splice(u,1),r.activeMatchIndex=-1,i.sizeSearchInput(),t(function(){i.onRemoveCallback(n,{$item:f,$model:i.parserResult.modelMapper(n,e)})}),r.updateModel(),!0};r.getPlaceholder=function(){if(!i.selected||!i.selected.length)return i.placeholder}}],controllerAs:"$selectMultiple",link:function(u,f,e,o){function v(n){return angular.isNumber(n.selectionStart)?n.selectionStart:n.value.length}function y(t){function e(){switch(t){case n.LEFT:return~h.activeMatchIndex?f:r;case n.RIGHT:return~h.activeMatchIndex&&i!==r?l:(s.activate(),!1);case n.BACKSPACE:return~h.activeMatchIndex?h.removeChoice(i)?f:i:r;case n.DELETE:return!!~h.activeMatchIndex&&(h.removeChoice(h.activeMatchIndex),i)}}var o=v(s.searchInput[0]),c=s.selected.length,r=c-1,i=h.activeMatchIndex,l=h.activeMatchIndex+1,f=h.activeMatchIndex-1,u=i;return!(o>0||s.search.length&&t==n.RIGHT)&&(s.close(),u=e(),h.activeMatchIndex=s.selected.length&&u!==!1?Math.min(r,Math.max(0,u)):-1,!0)}function l(n){if(void 0===n||void 0===s.search)return!1;return n.filter(function(n){return void 0!==s.search.toUpperCase()&&void 0!==n&&n.toUpperCase()===s.search.toUpperCase()}).length>0}function a(n,t){var f=-1,r,i,u;if(angular.isArray(n))for(r=angular.copy(n),i=0;i<r.length;i++)void 0===s.tagging.fct?r[i]+" "+s.taggingLabel===t&&(f=i):(u=r[i],angular.isObject(u)&&(u.isTag=!0),angular.equals(u,t)&&(f=i));return f}var s=o[0],c=u.ngModel=o[1],h=u.$selectMultiple;s.multiple=!0;s.focusInput=s.searchInput;c.$isEmpty=function(n){return!n||0===n.length};c.$parsers.unshift(function(){for(var i,n={},r=[],t=s.selected.length-1;t>=0;t--)n={},n[s.parserResult.itemName]=s.selected[t],i=s.parserResult.modelMapper(u,n),r.unshift(i);return r});c.$formatters.unshift(function(n){var r,e=s.parserResult&&s.parserResult.source(u,{$select:{search:""}}),o={},t,f,i;if(!e)return n;if(t=[],f=function(n,i){var f,h,e;if(n&&n.length){for(f=n.length-1;f>=0;f--)if((o[s.parserResult.itemName]=n[f],r=s.parserResult.modelMapper(u,o),s.parserResult.trackByExp)&&(h=/(\w*)\./.exec(s.parserResult.trackByExp),e=/\.([^\s]+)/.exec(s.parserResult.trackByExp),h&&h.length>0&&h[1]==s.parserResult.itemName&&e&&e.length>0&&r[e[1]]==i[e[1]])||angular.equals(r,i))return t.unshift(n[f]),!0;return!1}},!n)return t;for(i=n.length-1;i>=0;i--)f(s.selected,n[i])||f(e,n[i])||t.unshift(n[i]);return t});u.$watchCollection(function(){return c.$modelValue},function(n,t){t!=n&&(angular.isDefined(c.$modelValue)&&(c.$modelValue=null),h.refreshComponent())});c.$render=function(){if(!angular.isArray(c.$viewValue)){if(!i(c.$viewValue))throw t("multiarr","Expected model value to be array but got '{0}'",c.$viewValue);c.$viewValue=[]}s.selected=c.$viewValue;h.refreshComponent();u.$evalAsync()};u.$on("uis:select",function(n,t){if(!(s.selected.length>=s.limit)){s.selected.push(t);var i={};i[s.parserResult.itemName]=t;r(function(){s.onSelectCallback(u,{$item:t,$model:s.parserResult.modelMapper(u,i)})});h.updateModel()}});u.$on("uis:activate",function(){h.activeMatchIndex=-1});u.$watch("$select.disabled",function(n,t){t&&!n&&s.sizeSearchInput()});s.searchInput.on("keydown",function(t){var i=t.which;u.$apply(function(){var r=!1;n.isHorizontalMovement(i)&&(r=y(i));r&&i!=n.TAB&&(t.preventDefault(),t.stopPropagation())})});s.searchInput.on("keyup",function(t){if(n.isVerticalMovement(t.which)||u.$evalAsync(function(){s.activeIndex=s.taggingLabel===!1?-1:0}),s.tagging.isActivated&&s.search.length>0){if(t.which===n.TAB||n.isControl(t)||n.isFunctionKey(t)||t.which===n.ESC||n.isVerticalMovement(t.which))return;if(s.activeIndex=s.taggingLabel===!1?-1:0,s.taggingLabel===!1)return;var r,v,e,h,i=angular.copy(s.items),f=angular.copy(s.items),o=!1,c=-1;if(void 0!==s.tagging.fct){if(e=s.$filter("filter")(i,{isTag:!0}),e.length>0&&(h=e[0]),i.length>0&&h&&(o=!0,i=i.slice(1,i.length),f=f.slice(1,f.length)),r=s.tagging.fct(s.search),f.some(function(n){return angular.equals(n,r)})||s.selected.some(function(n){return angular.equals(n,r)}))return void u.$evalAsync(function(){s.activeIndex=0;s.items=i});r&&(r.isTag=!0)}else{if(e=s.$filter("filter")(i,function(n){return n.match(s.taggingLabel)}),e.length>0&&(h=e[0]),v=i[0],void 0!==v&&i.length>0&&h&&(o=!0,i=i.slice(1,i.length),f=f.slice(1,f.length)),r=s.search+" "+s.taggingLabel,a(s.selected,s.search)>-1)return;if(l(f.concat(s.selected)))return void(o&&(i=f,u.$evalAsync(function(){s.activeIndex=0;s.items=i})));if(l(f))return void(o&&(s.items=f.slice(1,f.length)))}o&&(c=a(s.selected,r));c>-1?i=i.slice(c+1,i.length-1):(i=[],r&&i.push(r),i=i.concat(f));u.$evalAsync(function(){if(s.activeIndex=0,s.items=i,s.isGrouped){var n=r?i.slice(1):i;s.setItemsFn(n);r&&(s.items.unshift(r),s.groups.unshift({name:"",items:[r],tagging:!0}))}})}});s.searchInput.on("blur",function(){r(function(){h.activeMatchIndex=-1})})}}}]);t.directive("uiSelectNoChoice",["uiSelectConfig",function(n){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){t.addClass("ui-select-no-choice");var i=t.parent().attr("theme")||n.theme;return i+"/no-choice.tpl.html"}}}]);t.directive("uiSelectSingle",["$timeout","$compile",function(t,r){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(u,f,e,o){var s=o[0],c=o[1],h;c.$parsers.unshift(function(n){if(i(n))return n;var r,t={};return t[s.parserResult.itemName]=n,r=s.parserResult.modelMapper(u,t)});c.$formatters.unshift(function(n){var o,t,f,e,r;if(i(n))return n;if(t=s.parserResult&&s.parserResult.source(u,{$select:{search:""}}),f={},t){if(e=function(t){return f[s.parserResult.itemName]=t,o=s.parserResult.modelMapper(u,f),o===n},s.selected&&e(s.selected))return s.selected;for(r=t.length-1;r>=0;r--)if(e(t[r]))return t[r]}return n});u.$watch("$select.selected",function(n){c.$viewValue!==n&&c.$setViewValue(n)});c.$render=function(){s.selected=c.$viewValue};u.$on("uis:select",function(n,r){s.selected=r;var f={};f[s.parserResult.itemName]=r;t(function(){s.onSelectCallback(u,{$item:r,$model:i(r)?r:s.parserResult.modelMapper(u,f)})})});u.$on("uis:close",function(n,i){t(function(){s.focusser.prop("disabled",!1);i||s.focusser[0].focus()},0,!1)});u.$on("uis:activate",function(){h.prop("disabled",!0)});h=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");r(h)(u);s.focusser=h;s.focusInput=h;f.parent().append(h);h.bind("focus",function(){u.$evalAsync(function(){s.focus=!0})});h.bind("blur",function(){u.$evalAsync(function(){s.focus=!1})});h.bind("keydown",function(t){return t.which===n.BACKSPACE&&s.backspaceReset!==!1?(t.preventDefault(),t.stopPropagation(),s.select(void 0),void u.$apply()):void(t.which===n.TAB||n.isControl(t)||n.isFunctionKey(t)||t.which===n.ESC||(t.which!=n.DOWN&&t.which!=n.UP&&t.which!=n.ENTER&&t.which!=n.SPACE||(t.preventDefault(),t.stopPropagation(),s.activate()),u.$digest()))});h.bind("keyup input",function(t){t.which===n.TAB||n.isControl(t)||n.isFunctionKey(t)||t.which===n.ESC||t.which==n.ENTER||t.which===n.BACKSPACE||(s.activate(h.val()),h.val(""),u.$digest())})}}}]);t.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(n,t,i){return{require:["^^uiSelect","^ngModel"],link:function(t,r,u,f){if(null===t[u.uiSelectSort])throw i("sort","Expected a list to sort");var a=f[0],w=f[1],b=angular.extend({axis:"horizontal"},t.$eval(u.uiSelectSortOptions)),v=b.axis,h="dragging",c="dropping",o="dropping-before",s="dropping-after";t.$watch(function(){return a.sortable},function(n){n?r.attr("draggable",!0):r.removeAttr("draggable")});r.on("dragstart",function(n){r.addClass(h);(n.dataTransfer||n.originalEvent.dataTransfer).setData("text",t.$index.toString())});r.on("dragend",function(){e(h)});var y,k=function(n,t){this.splice(t,0,this.splice(n,1)[0])},e=function(n){angular.forEach(a.$element.querySelectorAll("."+n),function(t){angular.element(t).removeClass(n)})},p=function(n){n.preventDefault();var t="vertical"===v?n.offsetY||n.layerY||(n.originalEvent?n.originalEvent.offsetY:0):n.offsetX||n.layerX||(n.originalEvent?n.originalEvent.offsetX:0);t<this["vertical"===v?"offsetHeight":"offsetWidth"]/2?(e(s),r.addClass(o)):(e(o),r.addClass(s))},l=function(t){t.preventDefault();var i=parseInt((t.dataTransfer||t.originalEvent.dataTransfer).getData("text"),10);n.cancel(y);y=n(function(){d(i)},20)},d=function(n){var i=t.$eval(u.uiSelectSort),h=i[n],f=null;f=r.hasClass(o)?n<t.$index?t.$index-1:t.$index:n<t.$index?t.$index:t.$index+1;k.apply(i,[n,f]);w.$setViewValue(Date.now());t.$apply(function(){t.$emit("uiSelectSort:change",{array:i,item:h,from:n,to:f})});e(c);e(o);e(s);r.off("drop",l)};r.on("dragenter",function(){r.hasClass(h)||(r.addClass(c),r.on("dragover",p),r.on("drop",l))});r.on("dragleave",function(n){n.target==r&&(e(c),e(o),e(s),r.off("dragover",p),r.off("drop",l))})}}}]);t.directive("uisOpenClose",["$parse","$timeout",function(n,t){return{restrict:"A",require:"uiSelect",link:function(i,r,u,f){f.onOpenCloseCallback=n(u.uisOpenClose);i.$watch("$select.open",function(n,r){n!==r&&t(function(){f.onOpenCloseCallback(i,{isOpen:n})})})}}}]);t.service("uisRepeatParser",["uiSelectMinErr","$parse",function(n,t){var i=this;i.parse=function(i){var r,u,f,e;if(r=i.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(\s*[\s\S]+?)?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),!r)throw n("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",i);return u=r[5],f="",r[3]&&(u=r[5].replace(/(^\()|(\)$)/g,""),e=r[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/),e&&e[1].trim()&&(f=e[1],u=u.replace(f,""))),{itemName:r[4]||r[2],keyName:r[3],source:t(u),filters:f,trackByExp:r[6],modelMapper:t(r[1]||r[4]||r[2]),repeatExpression:function(n){var t=this.itemName+" in "+(n?"$group.items":"$select.items");return this.trackByExp&&(t+=" track by "+this.trackByExp),t}}};i.getGroupNgRepeatExpression=function(){return"$group in $select.groups track by $group.name"}}])}();angular.module("ui.select").run(["$templateCache",function(n){n.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" ng-show="$select.open && $select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"><\/div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"><\/div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><span class="ui-select-choices-row-inner"><\/span><\/div><\/li><\/ul>');n.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected track by $index"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;<\/span> <span uis-transclude-append=""><\/span><\/span><\/span><\/span>');n.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}<\/span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""><\/span> <i class="caret pull-right" ng-click="$select.toggle($event)"><\/i> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="fa fa-times" aria-hidden="true"><\/i><\/a><\/span><\/div>');n.put("bootstrap/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""><\/li><\/ul>');n.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"><\/div><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-expanded="{{$select.open}}" aria-label="{{$select.baseTitle}}" ng-class="{\'spinner\': $select.refreshing}" ondrop="return false;"><\/div><div class="ui-select-choices"><\/div><div class="ui-select-no-choice"><\/div><\/div>');n.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"><\/div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"><\/span> <input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" class="form-control ui-select-search" ng-class="{ \'ui-select-search-hidden\' : !$select.searchEnabled }" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.open"><div class="ui-select-choices"><\/div><div class="ui-select-no-choice"><\/div><\/div>');n.put("select2/choices.tpl.html",'<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"><\/div><ul id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"><\/div><\/li><\/ul><\/li><\/ul>');n.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected track by $index" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""><\/span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"><\/a><\/li><\/span>');n.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}<\/span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""><\/span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"><\/abbr> <span class="select2-arrow ui-select-toggle"><b><\/b><\/span><\/a>');n.put("select2/no-choice.tpl.html",'<div class="ui-select-no-choice dropdown" ng-show="$select.items.length == 0"><div class="dropdown-content"><div data-selectable="" ng-transclude=""><\/div><\/div><\/div>');n.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"><\/span><li class="select2-search-field"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"><\/li><\/ul><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open || $select.items.length === 0}"><div class="ui-select-choices"><\/div><\/div><\/div>');n.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"><\/div><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="search-container" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled, \'select2-search\':$select.searchEnabled}"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" ng-class="{\'select2-active\': $select.refreshing}" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" class="ui-select-search select2-input" ng-model="$select.search"><\/div><div class="ui-select-choices"><\/div><div class="ui-select-no-choice"><\/div><\/div><\/div>');n.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices ui-select-dropdown selectize-dropdown" ng-class="{\'single\': !$select.multiple, \'multi\': $select.multiple}"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"><\/div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""><\/div><\/div><\/div><\/div><\/div>');n.put("selectize/match-multiple.tpl.html",'<div class="ui-select-match" data-value="" ng-repeat="$item in $select.selected track by $index" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'active\':$selectMultiple.activeMatchIndex === $index}" ui-select-sort="$select.selected"><span class="ui-select-match-item" ng-class="{\'select-locked\':$select.isLocked(this, $index)}"><span uis-transclude-append=""><\/span> <span class="remove ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&times;<\/span><\/span><\/div>');n.put("selectize/match.tpl.html",'<div ng-hide="$select.searchEnabled && ($select.open || $select.isEmpty())" class="ui-select-match"><span ng-show="!$select.searchEnabled && ($select.isEmpty() || $select.open)" class="ui-select-placeholder text-muted">{{$select.placeholder}}<\/span> <span ng-hide="$select.isEmpty() || $select.open" ng-transclude=""><\/span><\/div>');n.put("selectize/no-choice.tpl.html",'<div class="ui-select-no-choice selectize-dropdown" ng-show="$select.items.length == 0"><div class="selectize-dropdown-content"><div data-selectable="" ng-transclude=""><\/div><\/div><\/div>');n.put("selectize/select-multiple.tpl.html",'<div class="ui-select-container selectize-control multi plugin-remove_button" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"><\/div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-model="$select.search" ng-disabled="$select.disabled" aria-expanded="{{$select.open}}" aria-label="{{ $select.baseTitle }}" ondrop="return false;"><\/div><div class="ui-select-choices"><\/div><div class="ui-select-no-choice"><\/div><\/div>');n.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"><\/div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.isEmpty() && !$select.open" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"><\/div><div class="ui-select-choices"><\/div><div class="ui-select-no-choice"><\/div><\/div>')}]);!function(n){function t(i,r){return this instanceof t?(n.isPlainObject(i)?r=i:(r=r||{},r.alias=i),this.el=void 0,this.opts=n.extend(!0,{},this.defaults,r),this.noMasksCache=r&&void 0!==r.definitions,this.userOptions=r||{},this.events={},void e(this.opts.alias,r,this.opts)):new t(i,r)}function o(n){var t=document.createElement("input"),i="on"+n,r=i in t;return r||(t.setAttribute(i,"return;"),r="function"==typeof t[i]),t=null,r}function s(t,i){var f=t.getAttribute("type"),u="INPUT"===t.tagName&&-1!==n.inArray(f,i.supportsInputType)||t.isContentEditable||"TEXTAREA"===t.tagName,r;return u||"INPUT"!==t.tagName||(r=document.createElement("input"),r.setAttribute("type",f),u="text"===r.type,r=null),u}function e(t,i,r){var u=r.aliases[t];return u?(u.alias&&e(u.alias,void 0,r),n.extend(!0,r,u),n.extend(!0,r,i),!0):(null===r.mask&&(r.mask=t),!1)}function h(t,i,r){function c(n,i){i=void 0!==i?i:t.getAttribute("data-inputmask-"+n);null!==i&&("string"==typeof i&&(0===n.indexOf("on")?i=window[i]:"false"===i?i=!1:"true"===i&&(i=!0)),r[n]=i)}var h,u,f,o,s=t.getAttribute("data-inputmask");if(s&&""!==s&&(s=s.replace(new RegExp("'","g"),'"'),u=JSON.parse("{"+s+"}")),u){f=void 0;for(o in u)if("alias"===o.toLowerCase()){f=u[o];break}}c("alias",f);r.alias&&e(r.alias,r,i);for(h in i){if(u){f=void 0;for(o in u)if(o.toLowerCase()===h.toLowerCase()){f=u[o];break}}c(h,f)}return n.extend(!0,i,r),i}function r(i,r){function s(t){function h(n,t,i,r){this.matches=[];this.isGroup=n||!1;this.isOptional=t||!1;this.isQuantifier=i||!1;this.isAlternator=r||!1;this.quantifier={min:1,max:1}}function d(t,r,u){var f=i.definitions[r],e;if(u=void 0!==u?u:t.matches.length,e=t.matches[u-1],f&&!y){f.placeholder=n.isFunction(f.placeholder)?f.placeholder(i):f.placeholder;for(var h=f.prevalidator,a=h?h.length:0,o=1;o<f.cardinality;o++){var c=a>=o?h[o-1]:[],s=c.validator,l=c.cardinality;t.matches.splice(u++,0,{fn:s?"string"==typeof s?new RegExp(s):new function(){this.test=s}:new RegExp("."),cardinality:l?l:1,optionality:t.isOptional,newBlockMarker:void 0===e||e.def!==(f.definitionSymbol||r),casing:f.casing,def:f.definitionSymbol||r,placeholder:f.placeholder,mask:r});e=t.matches[u-1]}t.matches.splice(u++,0,{fn:f.validator?"string"==typeof f.validator?new RegExp(f.validator):new function(){this.test=f.validator}:new RegExp("."),cardinality:f.cardinality,optionality:t.isOptional,newBlockMarker:void 0===e||e.def!==(f.definitionSymbol||r),casing:f.casing,def:f.definitionSymbol||r,placeholder:f.placeholder,mask:r})}else t.matches.splice(u++,0,{fn:null,cardinality:0,optionality:t.isOptional,newBlockMarker:void 0===e||e.def!==r,casing:null,def:i.staticDefinitionSymbol||r,placeholder:void 0!==i.staticDefinitionSymbol?r:void 0,mask:r}),y=!1}function g(n,t){n.isGroup&&(n.isGroup=!1,d(n,i.groupmarker.start,0),t!==!0&&d(n,i.groupmarker.end))}function rt(n,t,i,r){t.matches.length>0&&(void 0===r||r)&&(i=t.matches[t.matches.length-1],g(i));d(t,n)}function nt(){if(r.length>0){if(u=r[r.length-1],rt(c,u,s,!u.isAlternator),u.isAlternator){f=r.pop();for(var n=0;n<f.matches.length;n++)f.matches[n].isGroup=!1;r.length>0?(u=r[r.length-1],u.matches.push(f)):e.matches.push(f)}}else rt(c,e,s)}function ut(n){function f(n){return n===i.optionalmarker.start?n=i.optionalmarker.end:n===i.optionalmarker.end?n=i.optionalmarker.start:n===i.groupmarker.start?n=i.groupmarker.end:n===i.groupmarker.end&&(n=i.groupmarker.start),n}var t,r,u;n.matches=n.matches.reverse();for(t in n.matches)r=parseInt(t),n.matches[t].isQuantifier&&n.matches[r+1]&&n.matches[r+1].isGroup&&(u=n.matches[t],n.matches.splice(t,1),n.matches.splice(r+1,0,u)),n.matches[t]=void 0!==n.matches[t].matches?ut(n.matches[t]):f(n.matches[t]);return n}for(var p,w,k,o,c,l,u,f,s,v,ft=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,y=!1,e=new h,r=[],tt=[];o=ft.exec(t);)if(c=o[0],y)nt();else switch(c.charAt(0)){case i.escapeChar:y=!0;break;case i.optionalmarker.end:case i.groupmarker.end:if(l=r.pop(),void 0!==l)if(r.length>0){if(u=r[r.length-1],u.matches.push(l),u.isAlternator){for(f=r.pop(),p=0;p<f.matches.length;p++)f.matches[p].isGroup=!1;r.length>0?(u=r[r.length-1],u.matches.push(f)):e.matches.push(f)}}else e.matches.push(l);else nt();break;case i.optionalmarker.start:r.push(new h(!1,!0));break;case i.groupmarker.start:r.push(new h(!0));break;case i.quantifiermarker.start:w=new h(!1,!1,!0);c=c.replace(/[{}]/g,"");var a=c.split(","),it=isNaN(a[0])?a[0]:parseInt(a[0]),b=1===a.length?it:isNaN(a[1])?a[1]:parseInt(a[1]);(("*"===b||"+"===b)&&(it="*"===b?0:1),w.quantifier={min:it,max:b},r.length>0)?(k=r[r.length-1].matches,o=k.pop(),o.isGroup||(v=new h(!0),v.matches.push(o),o=v),k.push(o),k.push(w)):(o=e.matches.pop(),o.isGroup||(v=new h(!0),v.matches.push(o),o=v),e.matches.push(o),e.matches.push(w));break;case i.alternatormarker:r.length>0?(u=r[r.length-1],s=u.matches.pop()):s=e.matches.pop();s.isAlternator?r.push(s):(f=new h(!1,!1,!1,!0),f.matches.push(s),r.push(f));break;default:nt()}for(;r.length>0;)l=r.pop(),g(l,!0),e.matches.push(l);return e.matches.length>0&&(s=e.matches[e.matches.length-1],g(s),tt.push(e)),i.numericInput&&ut(tt[0]),tt}function f(u,f){var o,e;if(null!==u&&""!==u)return(1===u.length&&i.greedy===!1&&0!==i.repeat&&(i.placeholder=""),i.repeat>0||"*"===i.repeat||"+"===i.repeat)&&(o="*"===i.repeat?0:"+"===i.repeat?1:i.repeat,u=i.groupmarker.start+u+i.groupmarker.end+i.quantifiermarker.start+o+","+i.repeat+i.quantifiermarker.end),void 0===t.prototype.masksCache[u]||r===!0?(e={mask:u,maskToken:s(u),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},metadata:f},r!==!0&&(t.prototype.masksCache[i.numericInput?u.split("").reverse().join(""):u]=e,e=n.extend(!0,{},t.prototype.masksCache[i.numericInput?u.split("").reverse().join(""):u]))):e=n.extend(!0,{},t.prototype.masksCache[i.numericInput?u.split("").reverse().join(""):u]),e}function e(n){return n.toString()}var o,u;if(n.isFunction(i.mask)&&(i.mask=i.mask(i)),n.isArray(i.mask)){if(i.mask.length>1)return i.keepStatic=null===i.keepStatic?!0:i.keepStatic,u="(",n.each(i.numericInput?i.mask.reverse():i.mask,function(t,i){u.length>1&&(u+=")|(");u+=e(void 0===i.mask||n.isFunction(i.mask)?i:i.mask)}),u+=")",f(u,i.mask);i.mask=i.mask.pop()}return i.mask&&(o=void 0===i.mask.mask||n.isFunction(i.mask.mask)?f(e(i.mask),i.mask):f(e(i.mask.mask),i.mask)),o}function i(r,u,e){function hi(n,t,i){var o;t=t||0;var s,u,c,f=[],r=0,l=y();do n===!0&&h().validPositions[r]?(o=h().validPositions[r],u=o.match,s=o.locator.slice(),f.push(i===!0?o.input:tt(r,u))):(c=ut(r,s,r-1),u=c.match,s=c.locator.slice(),(e.jitMasking===!1||l>r||isFinite(e.jitMasking)&&e.jitMasking>r)&&f.push(tt(r,u))),r++;while((void 0===lt||lt>r-1)&&null!==u.fn||null===u.fn&&""!==u.def||t>=r);return""===f[f.length-1]&&f.pop(),f}function h(){return u}function d(n){var t=h();t.buffer=void 0;n!==!0&&(t.tests={},t._buffer=void 0,t.validPositions={},t.p=0)}function y(n,t,i){var u=-1,f=-1,e=i||h().validPositions,o,r;void 0===n&&(n=-1);for(o in e)r=parseInt(o),e[r]&&(t||null!==e[r].match.fn)&&(n>=r&&(u=r),r>=n&&(f=r));return-1!==u&&n-u>1||n>f?u:f}function ci(t,i,r,u){var f,l,b,s,o,k,w;if(u||e.insertMode&&void 0!==h().validPositions[t]&&void 0===r){for(l=n.extend(!0,{},h().validPositions),b=y(),f=t;b>=f;f++)delete h().validPositions[f];h().validPositions[t]=i;var v,a=!0,c=h().validPositions,g=!1;for(f=v=t;b>=f;f++){if(s=l[f],void 0!==s)for(o=v,k=-1;o<at()&&(null==s.match.fn&&c[f]&&(c[f].match.optionalQuantifier===!0||c[f].match.optionality===!0)||null!=s.match.fn);){if(null===s.match.fn||!e.keepStatic&&c[f]&&(void 0!==c[f+1]&&ft(f+1,c[f].locator.slice(),f).length>1||void 0!==c[f].alternation)?o++:o=p(v),g===!1&&l[o]&&l[o].match.def===s.match.def){h().validPositions[o]=n.extend(!0,{},l[o]);h().validPositions[o].input=s.input;v=o;a=!0;break}if(ai(o,s.match.def)){if(w=ot(o,s.input,!0,!0),a=w!==!1,v=w.caret||w.insert?y():o,g=!0,a)break}else{if(a=null==s.match.fn,k===o)break;k=o}}if(!a)break}if(!a)return h().validPositions=n.extend(!0,{},l),d(!0),!1}else h().validPositions[t]=i;return d(!0),!0}function li(t,i,r,u){function v(n){var t=h().validPositions[n],i,r;return void 0!==t&&null===t.match.fn?(i=h().validPositions[n-1],r=h().validPositions[n+1],void 0!==i&&void 0!==r):!1}var f,o=t,c=n.extend(!0,{},h().validPositions),l=!1,a,s;for(h().p=t,f=i-1;f>=o;f--)void 0===h().validPositions[f]||r!==!0&&(v(f)||e.canClearPosition(h(),f,y(),u,e)===!1)||delete h().validPositions[f];for(d(!0),f=o+1;f<=y();){for(;void 0!==h().validPositions[o];)o++;a=h().validPositions[o];(o>f&&(f=o+1),void 0===h().validPositions[f]&&nt(f)||void 0!==a)?f++:(s=ut(f),l===!1&&c[o]&&c[o].match.def===s.match.def?(h().validPositions[o]=n.extend(!0,{},c[o]),h().validPositions[o].input=s.input,delete h().validPositions[f],f++):ai(o,s.match.def)?ot(o,s.input||tt(f),!0)!==!1&&(delete h().validPositions[f],f++,l=!0):nt(f)||(f++,o--),o++)}d(!0)}function ut(n,t,i){var r=h().validPositions[n];if(void 0===r)for(var o=ft(n,t,i),s=y(),u=h().validPositions[s]||ft(0)[0],c=void 0!==u.alternation?u.locator[u.alternation].toString().split(","):[],f=0;f<o.length&&(r=o[f],!(r.match&&(e.greedy&&r.match.optionalQuantifier!==!0||(r.match.optionality===!1||r.match.newBlockMarker===!1)&&r.match.optionalQuantifier!==!0)&&(void 0===u.alternation||u.alternation!==r.alternation||void 0!==r.locator[u.alternation]&&ni(r.locator[u.alternation].toString().split(","),c))));f++);return r}function st(n){return h().validPositions[n]?h().validPositions[n].match:ft(n)[0].match}function ai(n,t){for(var u=!1,r=ft(n),i=0;i<r.length;i++)if(r[i].match&&r[i].match.def===t){u=!0;break}return u}function vi(t,i){var u,r;return(h().tests[t]||h().validPositions[t])&&n.each(h().tests[t]||[h().validPositions[t]],function(n,t){var f=t.alternation?t.locator[t.alternation].toString().indexOf(i):-1;(void 0===r||r>f)&&-1!==f&&(u=t,r=f)}),u}function ft(t,i,r){function a(i,r,e,s){function c(e,s,y){function ct(t,i){var r=0===n.inArray(t,i.matches);return r||n.each(i.matches,function(n,u){if(u.isQuantifier===!0&&(r=ct(t,i.matches[n-1])))return!1}),r}function vt(n,t){var i=vi(n,t);return i?i.locator.slice(i.alternation+1):[]}var lt,ot,ut,ft,tt,p,st,g,it,nt,ht;if(u>1e4)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+h().mask;if(u===t&&void 0===e.matches)return f.push({match:e,locator:s.reverse(),cd:v}),!0;if(void 0!==e.matches){if(e.isGroup&&y!==e){if(e=c(i.matches[n.inArray(e,i.matches)+1],s))return!0}else if(e.isOptional){if(lt=e,e=a(e,r,s,y)){if(o=f[f.length-1].match,!ct(o,lt))return!0;l=!0;u=t}}else if(e.isAlternator){var rt,et=e,d=[],yt=f.slice(),pt=s.length,w=r.length>0?r.shift():-1;if(-1===w||"string"==typeof w){var b,wt=u,at=r.slice(),k=[];if("string"==typeof w)k=w.split(",");else for(b=0;b<et.matches.length;b++)k.push(b);for(ot=0;ot<k.length;ot++){for((b=parseInt(k[ot]),f=[],r=vt(u,b),e=c(et.matches[b]||i.matches[b],[b].concat(s),y)||e,e!==!0&&void 0!==e&&k[k.length-1]<et.matches.length)&&(ut=n.inArray(e,i.matches)+1,i.matches.length>ut&&(e=c(i.matches[ut],[ut].concat(s.slice(1,s.length)),y),e&&(k.push(ut.toString()),n.each(f,function(n,t){t.alternation=s.length-1})))),rt=f.slice(),u=wt,f=[],ft=0;ft<at.length;ft++)r[ft]=at[ft];for(tt=0;tt<rt.length;tt++)for(p=rt[tt],p.alternation=p.alternation||pt,st=0;st<d.length;st++)if(g=d[st],p.match.def===g.match.def&&("string"!=typeof w||-1!==n.inArray(p.locator[p.alternation].toString(),k))){p.match.mask===g.match.mask&&(rt.splice(tt,1),tt--);-1===g.locator[p.alternation].toString().indexOf(p.locator[p.alternation])&&(g.locator[p.alternation]=g.locator[p.alternation]+","+p.locator[p.alternation],g.alternation=p.alternation);break}d=d.concat(rt)}"string"==typeof w&&(d=n.map(d,function(t,i){var e,r,f,u;if(isFinite(i)){for(r=t.alternation,f=t.locator[r].toString().split(","),t.locator[r]=void 0,t.alternation=void 0,u=0;u<f.length;u++)e=-1!==n.inArray(f[u],k),e&&(void 0!==t.locator[r]?(t.locator[r]+=",",t.locator[r]+=f[u]):t.locator[r]=parseInt(f[u]),t.alternation=r);if(void 0!==t.locator[r])return t}}));f=yt.concat(d);u=t;l=f.length>0}else e=c(et.matches[w]||i.matches[w],[w].concat(s),y);if(e)return!0}else if(e.isQuantifier&&y!==i.matches[n.inArray(e,i.matches)-1]){for(it=e,nt=r.length>0?r.shift():0;nt<(isNaN(it.quantifier.max)?nt+1:it.quantifier.max)&&t>=u;nt++)if(ht=i.matches[n.inArray(it,i.matches)-1],e=c(ht,[nt].concat(s),ht)){if(o=f[f.length-1].match,o.optionalQuantifier=nt>it.quantifier.min-1,ct(o,ht)){if(nt>it.quantifier.min-1){l=!0;u=t;break}return!0}return!0}}else if(e=a(e,r,s,y))return!0}else u++}for(var p,y=r.length>0?r.shift():0;y<i.matches.length;y++)if(i.matches[y].isQuantifier!==!0){if(p=c(i.matches[y],[y].concat(e),s),p&&u===t)return p;if(u>t)break}}function b(t){var i=[];return n.isArray(t)||(t=[t]),void 0===t[0].alternation?i=t[0].locator.slice():n.each(t,function(n,t){if(""!==t.def)if(0===i.length)i=t.locator.slice();else for(var r=0;r<i.length;r++)t.locator[r]&&-1===i[r].toString().indexOf(t.locator[r])&&(i[r]+=","+t.locator[r])}),i}var o,p=h().maskToken,u=i?r:0,c=i||[0],f=[],l=!1,v=i?i.join(""):"",y,e,s,w;if(t>-1){if(void 0===i){for(e=t-1;void 0===(y=h().validPositions[e]||h().tests[e])&&e>-1;)e--;void 0!==y&&e>-1&&(c=b(y),v=c.join(""),u=e)}if(h().tests[t]&&h().tests[t][0].cd===v)return h().tests[t];for(s=c.shift();s<p.length;s++)if(w=a(p[s],c,[s]),w&&u===t||u>t)break}return(0===f.length||l)&&f.push({match:{fn:null,cardinality:0,optionality:!0,casing:null,def:""},locator:[]}),h().tests[t]=n.extend(!0,[],f),h().tests[t]}function g(){return void 0===h()._buffer&&(h()._buffer=hi(!1,1)),h()._buffer}function v(n){if(void 0===h().buffer||n===!0){if(n===!0)for(var t in h().tests)void 0===h().validPositions[t]&&delete h().tests[t];h().buffer=hi(!0,y(),!0)}return h().buffer}function bt(n,t,i){var r;if(i=i,n===!0)d(),n=0,t=i.length;else for(r=n;t>r;r++)delete h().validPositions[r],delete h().tests[r];for(r=n;t>r;r++)d(!0),i[r]!==e.skipOptionalPartCharacter&&ot(r,i[r],!0,!0)}function di(n,t){switch(t.casing){case"upper":n=n.toUpperCase();break;case"lower":n=n.toLowerCase()}return n}function ni(t,i){for(var f=e.greedy?i:i.slice(0,1),u=!1,r=0;r<t.length;r++)if(-1!==n.inArray(t[r],f)){u=!0;break}return u}function ot(i,r,u,f){function k(n){return w?n.begin-n.end>1||n.begin-n.end==1&&e.insertMode:n.end-n.begin>1||n.end-n.begin==1&&e.insertMode}function g(t,r,u,f){var o=!1;return n.each(ft(t),function(s,c){for(var p,a,nt,w,l=c.match,tt=r?1:0,b="",g=l.cardinality;g>tt;g--)b+=gi(t-(g-1));if(r&&(b+=r),v(!0),o=null!=l.fn?l.fn.test(b,h(),t,u,e,k(i)):r!==l.def&&r!==e.skipOptionalPartCharacter||""===l.def?!1:{c:l.placeholder||l.def,pos:t},o!==!1){if(p=void 0!==o.c?o.c:r,p=p===e.skipOptionalPartCharacter&&null===l.fn?l.placeholder||l.def:p,a=t,nt=v(),void 0!==o.remove&&(n.isArray(o.remove)||(o.remove=[o.remove]),n.each(o.remove.sort(function(n,t){return t-n}),function(n,t){li(t,t+1,!0)})),void 0!==o.insert&&(n.isArray(o.insert)||(o.insert=[o.insert]),n.each(o.insert.sort(function(n,t){return n-t}),function(n,t){ot(t.pos,t.c,!1,f)})),o.refreshFromBuffer){if(w=o.refreshFromBuffer,u=!0,bt(w===!0?w:w.start,w.end,nt),void 0===o.pos&&void 0===o.c)return o.pos=y(),!1;if(a=void 0!==o.pos?o.pos:t,a!==t)return o=n.extend(o,ot(a,p,!0,f)),!1}else if(o!==!0&&void 0!==o.pos&&o.pos!==t&&(a=o.pos,bt(t,a,v().slice()),a!==t))return o=n.extend(o,ot(a,p,!0)),!1;return o!==!0&&void 0===o.pos&&void 0===o.c?!1:(s>0&&d(!0),ci(a,n.extend({},c,{input:di(p,l)}),f,k(i))||(o=!1),!1)}}),o}function et(t,i,r,u){for(var v,a,k,g,p,ct,s,rt,et,st,l,f,b,c,o,w,lt=n.extend(!0,{},h().validPositions),at=n.extend(!0,{},h().tests),nt=y();nt>=0&&(c=h().validPositions[nt],!c||void 0===c.alternation||(l=nt,f=h().validPositions[l].alternation,ut(l).locator[c.alternation]===c.locator[c.alternation]));nt--);if(void 0!==f){l=parseInt(l);for(v in h().validPositions)if(v=parseInt(v),c=h().validPositions[v],v>=l&&void 0!==c.alternation){for(0===l?(a=[],n.each(h().tests[l],function(n,t){void 0!==t.locator[f]&&(a=a.concat(t.locator[f].toString().split(",")))})):a=h().validPositions[l].locator[f].toString().split(","),k=void 0!==c.locator[f]?c.locator[f]:a[0],k.length>0&&(k=k.split(",")[0]),g=0;g<a.length;g++){var it=[],ht=0,ft=0;if(k<a[g]){for(s=v;s>=0;s--)if(p=h().validPositions[s],void 0!==p){rt=vi(s,a[g]);h().validPositions[s].match.def!==rt.match.def&&(it.push(h().validPositions[s].input),h().validPositions[s]=rt,h().validPositions[s].input=tt(s),null===h().validPositions[s].match.fn&&ft++,p=rt);ct=p.locator[f];p.locator[f]=parseInt(a[g]);break}if(k!==p.locator[f]){for(o=v+1;o<y(void 0,!0)+1;o++)w=h().validPositions[o],w&&null!=w.match.fn?it.push(w.input):t>o&&ht++,delete h().validPositions[o],delete h().tests[o];for(d(!0),e.keepStatic=!e.keepStatic,b=!0;it.length>0;)if(et=it.shift(),et!==e.skipOptionalPartCharacter&&!(b=ot(y(void 0,!0)+1,et,!1,u)))break;if(p.alternation=f,p.locator[f]=ct,b){for(st=y(t)+1,o=v+1;o<y()+1;o++)w=h().validPositions[o],(void 0===w||null==w.match.fn)&&t>o&&ft++;t+=ft-ht;b=ot(t>st?st:t,i,r,u)}if(e.keepStatic=!e.keepStatic,b)return b;d();h().validPositions=n.extend(!0,{},lt);h().tests=n.extend(!0,{},at)}}}break}}return!1}function st(t,i){for(var s=h().validPositions[i],f=s.locator,c=f.length,r=t;i>r;r++)if(void 0===h().validPositions[r]&&!nt(r,!0)){var e=ft(r),u=e[0],o=-1;n.each(e,function(n,t){for(var i=0;c>i&&void 0!==t.locator[i]&&ni(t.locator[i].toString().split(","),f[i].toString().split(","));i++)i>o&&(o=i,u=t)});ci(r,n.extend({},u,{input:u.match.placeholder||u.match.def}),!0)}}var o,l,it,b,a,rt;u=u===!0;o=i;void 0!==i.begin&&(o=w&&!k(i)?i.end:i.begin);for(var s=!1,ht=n.extend(!0,{},h().validPositions),c=o-1;c>-1&&!h().validPositions[c];c--);for(c++;o>c;c++)void 0===h().validPositions[c]&&(e.jitMasking===!1||e.jitMasking>c)&&((l=ut(c)).match.def===e.radixPointDefinitionSymbol||!nt(c,!0)||n.inArray(e.radixPoint,v())<c&&l.match.fn&&l.match.fn.test(tt(c),h(),c,!1,e))&&g(y(c,!0)+1,l.match.placeholder||(null==l.match.fn?l.match.def:""!==tt(c)?tt(c):v()[c]),!0,f);if(k(i)&&(ii(void 0,t.keyCode.DELETE,i),o=h().p),o<at()&&(s=g(o,r,u,f),(!u||f===!0)&&s===!1))if(it=h().validPositions[o],it&&null===it.match.fn&&(it.match.def===r||r===e.skipOptionalPartCharacter))s={caret:p(o)};else if((e.insertMode||void 0===h().validPositions[p(o)])&&!nt(o,!0))for(b=ut(o).match,b=b.placeholder||b.def,g(o,b,u,f),a=o+1,rt=p(o);rt>=a;a++)if(s=g(a,r,u,f),s!==!1){st(o,a);o=a;break}return s===!1&&e.keepStatic&&(s=et(o,r,u,f)),s===!0&&(s={pos:o}),n.isFunction(e.postValidation)&&s!==!1&&!u&&f!==!0&&(s=e.postValidation(v(!0),s,e)?s:!1),void 0===s.pos&&(s.pos=o),s===!1&&(d(!0),h().validPositions=n.extend(!0,{},ht)),s}function nt(n,t){var i,r;return(t?(i=ut(n).match,""===i.def&&(i=st(n))):i=st(n),null!=i.fn)?i.fn:t!==!0&&n>-1&&!e.keepStatic&&void 0===h().validPositions[n]?(r=ft(n),r.length>2):!1}function at(){var i,f;lt=void 0!==a?a.maxLength:void 0;-1===lt&&(lt=void 0);for(var r=y(),n=h().validPositions[r],u=void 0!==n?n.locator.slice():void 0,t=r+1;void 0===n||null!==n.match.fn||null===n.match.fn&&""!==n.match.def;t++)n=ut(t,u,t-1),u=n.locator.slice();return f=st(t-1),i=""!==f.def?t:t-1,void 0===lt||lt>i?i:lt}function p(n,t){var r=at(),i;if(n>=r)return r;for(i=n;++i<r&&(t===!0&&(st(i).newBlockMarker!==!0||!nt(i))||t!==!0&&!nt(i)&&(e.nojumps!==!0||e.nojumpsThreshold>i)););return i}function yt(n,t){var i=n;if(0>=i)return 0;for(;--i>0&&(t===!0&&st(i).newBlockMarker!==!0||t!==!0&&!nt(i)););return i}function gi(n){return void 0===h().validPositions[n]?tt(n):h().validPositions[n].input}function et(t,i,r,u,f){var o,s;u&&n.isFunction(e.onBeforeWrite)&&(o=e.onBeforeWrite(u,i,r,e),o&&(o.refreshFromBuffer&&(s=o.refreshFromBuffer,bt(s===!0?s:s.start,s.end,o.buffer||i),i=v(!0)),void 0!==r&&(r=void 0!==o.caret?o.caret:r)));t.inputmask._valueSet(i.join(""));void 0===r||void 0!==u&&"blur"===u.type||b(t,r);f===!0&&(dt=!0,n(t).trigger("input"))}function tt(n,t){var u,i,f,r;if(t=t||st(n),void 0!==t.placeholder)return t.placeholder;if(null===t.fn){if(n>-1&&!e.keepStatic&&void 0===h().validPositions[n]&&(i=ft(n),f=[],i.length>2))for(r=0;r<i.length;r++)if(i[r].match.optionality!==!0&&i[r].match.optionalQuantifier!==!0&&(null===i[r].match.fn||void 0===u||i[r].match.fn.test(u.match.def,h(),n,!0,e)!==!1)&&(f.push(i[r]),null===i[r].match.fn&&(u=i[r]),f.length>1))return e.placeholder.charAt(n%e.placeholder.length);return t.def}return e.placeholder.charAt(n%e.placeholder.length)}function ht(i,r,u,f){function b(){var t=!1,r=g().slice(s,p(s)).join("").indexOf(a),i,n;if(-1!==r&&!nt(s))for(t=!0,i=g().slice(s,s+r),n=0;n<i.length;n++)if(" "!==i[n]){t=!1;break}return t}var o,l=f.slice(),a="",s=0,w,c;(d(),h().p=p(-1),u)||(e.autoUnmask!==!0?(w=g().slice(0,p(-1)).join(""),c=l.join("").match(new RegExp("^"+t.escapeRegex(w),"g")),c&&c.length>0&&(l.splice(0,c.length*w.length),s=p(s))):s=p(s));n.each(l,function(t,r){var c,p,l;if(void 0!==r){c=new n.Event("keypress");c.which=r.charCodeAt(0);a+=r;var f=y(void 0,!0),w=h().validPositions[f],k=ut(f+1,w?w.locator.slice():void 0,f);!b()||u||e.autoUnmask?(p=u?t:null==k.match.fn&&k.match.optionality&&f+1<h().p?f+1:h().p,o=wt.call(i,c,!0,!1,u,p),s=p+1,a=""):o=wt.call(i,c,!0,!1,!0,f+1);!u&&n.isFunction(e.onBeforeWrite)&&(o=e.onBeforeWrite(c,v(),o.forwardPosition,e),o&&o.refreshFromBuffer)&&(l=o.refreshFromBuffer,bt(l===!0?l:l.start,l.end,o.buffer),d(!0),o.caret&&(h().p=o.caret))}});r&&et(i,v(),document.activeElement===i?p(y(0)):void 0,new n.Event("checkval"))}function yi(t){var r,u,f,i,o;if(t&&void 0===t.inputmask)return t.value;r=[];u=h().validPositions;for(f in u)u[f].match&&null!=u[f].match.fn&&r.push(u[f].input);return i=0===r.length?null:(w?r.reverse():r).join(""),null!==i&&(o=(w?v().slice().reverse():v()).join(""),n.isFunction(e.onUnMask)&&(i=e.onUnMask(o,i,e)||i)),i}function b(n,t,i,r){function f(n){if(r!==!0&&w&&"number"==typeof n&&(!e.greedy||""!==e.placeholder)){var t=v().join("").length;n=t-n}return n}var u,o,h,s;if("number"!=typeof t)return n.setSelectionRange?(t=n.selectionStart,i=n.selectionEnd):window.getSelection?(u=window.getSelection().getRangeAt(0),(u.commonAncestorContainer.parentNode===n||u.commonAncestorContainer===n)&&(t=u.startOffset,i=u.endOffset)):document.selection&&document.selection.createRange&&(u=document.selection.createRange(),t=0-u.duplicate().moveStart("character",-n.inputmask._valueGet().length),i=t+u.text.length),{begin:f(t),end:f(i)};t=f(t);i=f(i);i="number"==typeof i?i:t;o=parseInt(((n.ownerDocument.defaultView||window).getComputedStyle?(n.ownerDocument.defaultView||window).getComputedStyle(n,null):n.currentStyle).fontSize)*i;(n.scrollLeft=o>n.scrollWidth?o:0,c||e.insertMode!==!1||t!==i||i++,n.setSelectionRange)?(n.selectionStart=t,n.selectionEnd=i):window.getSelection?((u=document.createRange(),void 0===n.firstChild||null===n.firstChild)&&(h=document.createTextNode(""),n.appendChild(h)),u.setStart(n.firstChild,t<n.inputmask._valueGet().length?t:n.inputmask._valueGet().length),u.setEnd(n.firstChild,i<n.inputmask._valueGet().length?i:n.inputmask._valueGet().length),u.collapse(!0),s=window.getSelection(),s.removeAllRanges(),s.addRange(u)):n.createTextRange&&(u=n.createTextRange(),u.collapse(!0),u.moveEnd("character",i),u.moveStart("character",t),u.select())}function ti(t){for(var r,s=v(),f=s.length,c=y(),e={},u=h().validPositions[c],l=void 0!==u?u.locator.slice():void 0,o,i=c+1;i<s.length;i++)r=ut(i,l,i-1),l=r.locator.slice(),e[i]=n.extend(!0,{},r);for(o=u&&void 0!==u.alternation?u.locator[u.alternation]:void 0,i=f-1;i>c&&(r=e[i],(r.match.optionality||r.match.optionalQuantifier||o&&(o!==e[i].locator[u.alternation]&&null!=r.match.fn||null===r.match.fn&&r.locator[u.alternation]&&ni(r.locator[u.alternation].toString().split(","),o.toString().split(","))&&""!==ft(i)[0].def))&&s[i]===tt(i,r.match));i--)f--;return t?{l:f,def:e[f]?e[f].match:void 0}:f}function pt(n){for(var i=ti(),t=n.length-1;t>i&&!nt(t);t--);return n.splice(i,t+1-i),n}function ct(t){var i,r;if(n.isFunction(e.isComplete))return e.isComplete(t,e);if("*"!==e.repeat){var f=!1,u=ti(!0),o=yt(u.l);if(void 0===u.def||u.def.newBlockMarker||u.def.optionality||u.def.optionalQuantifier)for(f=!0,i=0;o>=i;i++)if(r=ut(i).match,null!==r.fn&&void 0===h().validPositions[i]&&r.optionality!==!0&&r.optionalQuantifier!==!0||null===r.fn&&t[i]!==tt(i,r)){f=!1;break}return f}}function nr(t){function s(t){if(n.valHooks&&(void 0===n.valHooks[t]||n.valHooks[t].inputmaskpatch!==!0)){var i=n.valHooks[t]&&n.valHooks[t].get?n.valHooks[t].get:function(n){return n.value},r=n.valHooks[t]&&n.valHooks[t].set?n.valHooks[t].set:function(n,t){return n.value=t,n};n.valHooks[t]={get:function(n){if(n.inputmask){if(n.inputmask.opts.autoUnmask)return n.inputmask.unmaskedvalue();var t=i(n);return-1!==y(void 0,void 0,n.inputmask.maskset.validPositions)||e.nullable!==!0?t:""}return i(n)},set:function(t,i){var u,f=n(t);return u=r(t,i),t.inputmask&&f.trigger("setvalue"),u},inputmaskpatch:!0}}}function f(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==y()||e.nullable!==!0?document.activeElement===this&&e.clearMaskOnLostFocus?(w?pt(v().slice()).reverse():pt(v().slice())).join(""):i.call(this):"":i.call(this)}function o(t){r.call(this,t);this.inputmask&&n(this).trigger("setvalue")}function h(t){k.on(t,"mouseenter",function(){var t=n(this),i=this,r=i.inputmask._valueGet();r!==v().join("")&&t.trigger("setvalue")})}var i,r,u;t.inputmask.__valueGet||(Object.getOwnPropertyDescriptor?("function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"test".__proto__?function(n){return n.__proto__}:function(n){return n.constructor.prototype}),u=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):void 0,u&&u.get&&u.set?(i=u.get,r=u.set,Object.defineProperty(t,"value",{get:f,set:o,configurable:!0})):"INPUT"!==t.tagName&&(i=function(){return this.textContent},r=function(n){this.textContent=n},Object.defineProperty(t,"value",{get:f,set:o,configurable:!0}))):document.__lookupGetter__&&t.__lookupGetter__("value")&&(i=t.__lookupGetter__("value"),r=t.__lookupSetter__("value"),t.__defineGetter__("value",f),t.__defineSetter__("value",o)),t.inputmask.__valueGet=i,t.inputmask._valueGet=function(n){return w&&n!==!0?i.call(this.el).split("").reverse().join(""):i.call(this.el)},t.inputmask.__valueSet=r,t.inputmask._valueSet=function(n,t){r.call(this.el,null===n||void 0===n?"":t!==!0&&w?n.split("").reverse().join(""):n)},void 0===i&&(i=function(){return this.value},r=function(n){this.value=n},s(t.type),h(t)))}function ii(i,r,u,f){function c(){var r,u,o,t,f;if(e.keepStatic){for(d(!0),u=[],o=n.extend(!0,{},h().validPositions),r=y();r>=0;r--)if(t=h().validPositions[r],t&&(null!=t.match.fn&&u.push(t.input),delete h().validPositions[r],void 0!==t.alternation&&t.locator[t.alternation]===ut(r).locator[t.alternation]))break;if(r>-1)for(;u.length>0;)h().p=p(y()),f=new n.Event("keypress"),f.which=u.pop().charCodeAt(0),wt.call(i,f,!0,!1,!1,h().p);else h().validPositions=n.extend(!0,{},o)}}var s,o;(e.numericInput||w)&&(r===t.keyCode.BACKSPACE?r=t.keyCode.DELETE:r===t.keyCode.DELETE&&(r=t.keyCode.BACKSPACE),w)&&(s=u.end,u.end=u.begin,u.begin=s);r===t.keyCode.BACKSPACE&&(u.end-u.begin<1||e.insertMode===!1)?(u.begin=yt(u.begin),void 0===h().validPositions[u.begin]||h().validPositions[u.begin].input!==e.groupSeparator&&h().validPositions[u.begin].input!==e.radixPoint||u.begin--):r===t.keyCode.DELETE&&u.begin===u.end&&(u.end=nt(u.end)?u.end+1:p(u.end)+1,void 0===h().validPositions[u.begin]||h().validPositions[u.begin].input!==e.groupSeparator&&h().validPositions[u.begin].input!==e.radixPoint||u.end++);li(u.begin,u.end,!1,f);f!==!0&&c();o=y(u.begin);o<u.begin?(-1===o&&d(),h().p=p(o)):f!==!0&&(h().p=u.begin)}function pi(i){var u=this,c=n(u),f=i.keyCode,r=b(u),s;f===t.keyCode.BACKSPACE||f===t.keyCode.DELETE||l&&f===t.keyCode.BACKSPACE_SAFARI||i.ctrlKey&&f===t.keyCode.X&&!o("cut")?(i.preventDefault(),ii(u,f,r),et(u,v(),h().p,i,rt!==v().join("")),u.inputmask._valueGet()===g().join("")?c.trigger("cleared"):ct(v())===!0&&c.trigger("complete"),e.showTooltip&&(u.title=e.tooltip||h().mask)):f===t.keyCode.END||f===t.keyCode.PAGE_DOWN?(i.preventDefault(),s=p(y()),e.insertMode||s!==at()||i.shiftKey||s--,b(u,i.shiftKey?r.begin:s,s,!0)):f===t.keyCode.HOME&&!i.shiftKey||f===t.keyCode.PAGE_UP?(i.preventDefault(),b(u,0,i.shiftKey?r.begin:0,!0)):(e.undoOnEscape&&f===t.keyCode.ESCAPE||90===f&&i.ctrlKey)&&i.altKey!==!0?(ht(u,!0,!1,rt.split("")),c.trigger("click")):f!==t.keyCode.INSERT||i.shiftKey||i.ctrlKey?e.tabThrough===!0&&f===t.keyCode.TAB?(i.shiftKey===!0?(null===st(r.begin).fn&&(r.begin=p(r.begin)),r.end=yt(r.begin,!0),r.begin=yt(r.end,!0)):(r.begin=p(r.begin,!0),r.end=p(r.begin,!0),r.end<at()&&r.end--),r.begin<at()&&(i.preventDefault(),b(u,r.begin,r.end))):e.insertMode!==!1||i.shiftKey||(f===t.keyCode.RIGHT?setTimeout(function(){var n=b(u);b(u,n.begin)},0):f===t.keyCode.LEFT&&setTimeout(function(){var n=b(u);b(u,w?n.begin+1:n.begin-1)},0)):(e.insertMode=!e.insertMode,b(u,e.insertMode||r.begin!==at()?r.begin:r.begin-1));e.onKeyDown.call(this,i,v(),b(u).begin,e);wi=-1!==n.inArray(f,e.ignorables)}function wt(i,r,u,f,o){var y=this,g=n(y),l=i.which||i.charCode||i.keyCode,a,nt,tt,s,c,w,it,k;return!(r===!0||i.ctrlKey&&i.altKey)&&(i.ctrlKey||i.metaKey||wi)?(l===t.keyCode.ENTER&&rt!==v().join("")&&(rt=v().join(""),setTimeout(function(){g.trigger("change")},0)),!0):l&&(46===l&&i.shiftKey===!1&&","===e.radixPoint&&(l=44),nt=r?{begin:o,end:o}:b(y),tt=String.fromCharCode(l),h().writeOutBuffer=!0,s=ot(nt,tt,f),s!==!1&&(c=s.pos,(d(!0),void 0!==s.caret)?a=s.caret:(w=h().validPositions,a=!e.keepStatic&&(void 0!==w[c+1]&&ft(c+1,w[c].locator.slice(),c).length>1||void 0!==w[c].alternation)?c+1:p(c)),h().p=a),u!==!1&&(it=this,(setTimeout(function(){e.onKeyValidation.call(it,l,s,e)},0),h().writeOutBuffer&&s!==!1)&&(k=v(),et(y,k,e.numericInput&&void 0===s.caret?yt(a):a,i,r!==!0),r!==!0&&setTimeout(function(){ct(k)===!0&&g.trigger("complete")},0))),e.showTooltip&&(y.title=e.tooltip||h().mask),i.preventDefault(),r)?(s.forwardPosition=a,s):void 0}function ri(t){var h,s=this,c=t.originalEvent||t,l=n(s),i=s.inputmask._valueGet(!0),r=b(s),u,f,o;if(w&&(h=r.end,r.end=r.begin,r.begin=h),u=i.substr(0,r.begin),f=i.substr(r.end,i.length),u===(w?g().reverse():g()).slice(0,r.begin).join("")&&(u=""),f===(w?g().reverse():g()).slice(r.end).join("")&&(f=""),w&&(h=u,u=f,f=h),window.clipboardData&&window.clipboardData.getData?i=u+window.clipboardData.getData("Text")+f:c.clipboardData&&c.clipboardData.getData&&(i=u+c.clipboardData.getData("text/plain")+f),o=i,n.isFunction(e.onBeforePaste)){if(o=e.onBeforePaste(i,e),o===!1)return t.preventDefault();o||(o=i)}return ht(s,!1,!1,w?o.split("").reverse():o.toString().split("")),et(s,v(),p(y()),t,!0),ct(v())===!0&&l.trigger("complete"),t.preventDefault()}function tr(i){var e=this,r=e.inputmask._valueGet(),u,s,c,l,o;if(v().join("")!==r){if(u=b(e),(r=r.replace(new RegExp("("+t.escapeRegex(g().join(""))+")*"),""),f)&&(s=r.replace(v().join(""),""),1===s.length))return c=new n.Event("keypress"),c.which=s.charCodeAt(0),wt.call(e,c,!0,!0,!1,h().validPositions[u.begin-1]?u.begin:u.begin-1),!1;if(u.begin>r.length&&(b(e,r.length),u=b(e)),v().length-r.length!=1||r.charAt(u.begin)===v()[u.begin]||r.charAt(u.begin+1)===v()[u.begin]||nt(u.begin)){for(l=y()+1,o=v().slice(l).join("");null===r.match(t.escapeRegex(o)+"$");)o=o.slice(1);r=r.replace(o,"");r=r.split("");ht(e,!0,!1,r);ct(v())===!0&&n(e).trigger("complete")}else i.keyCode=t.keyCode.BACKSPACE,pi.call(e,i);i.preventDefault()}}function ir(){var t=this,i=t.inputmask._valueGet();ht(t,!0,!1,(n.isFunction(e.onBeforeMask)?e.onBeforeMask(i,e)||i:i).split(""));rt=v().join("");(e.clearMaskOnLostFocus||e.clearIncomplete)&&t.inputmask._valueGet()===g().join("")&&t.inputmask._valueSet("")}function rr(){var n=this,t=n.inputmask._valueGet();e.showMaskOnFocus&&(!e.showMaskOnHover||e.showMaskOnHover&&""===t)?n.inputmask._valueGet()!==v().join("")&&et(n,v(),p(y())):fi===!1&&b(n,p(y()));e.positionCaretOnTab===!0&&setTimeout(function(){b(n,p(y()))},0);rt=v().join("")}function ur(){var n=this,t,i;(fi=!1,e.clearMaskOnLostFocus&&document.activeElement!==n)&&(t=v().slice(),i=n.inputmask._valueGet(),i!==n.getAttribute("placeholder")&&""!==i&&(-1===y()&&i===g().join("")?t=[]:pt(t),et(n,t)))}function fr(){function i(t){var i,u,r;if(e.radixFocus&&""!==e.radixPoint&&(i=h().validPositions,void 0===i[t]||i[t].input===tt(t))){if(t<p(-1))return!0;if(u=n.inArray(e.radixPoint,v()),-1!==u){for(r in i)if(r>u&&i[r].input!==tt(r))return!1;return!0}}return!1}var t=this;setTimeout(function(){var f,o;if(document.activeElement===t&&(f=b(t),f.begin===f.end))if(i(f.begin))b(t,e.numericInput?p(n.inArray(e.radixPoint,v())):n.inArray(e.radixPoint,v()));else{var u=f.begin,s=y(u,!0),r=p(s);r>u?b(t,nt(u)||nt(u-1)?u:p(u)):(o=tt(r),(""===o||v()[r]===o)&&(nt(r,!0)||st(r).def!==o)||(r=p(r)),b(t,r))}},0)}function er(){var n=this;setTimeout(function(){b(n,0,p(y()))},0)}function or(i){var r=this,o=n(r),u=b(r),s=i.originalEvent||i,c=window.clipboardData||s.clipboardData,f=w?v().slice(u.end,u.begin):v().slice(u.begin,u.end);c.setData("text",w?f.reverse().join(""):f.join(""));document.execCommand&&document.execCommand("copy");ii(r,t.keyCode.DELETE,u);et(r,v(),h().p,i,rt!==v().join(""));r.inputmask._valueGet()===g().join("")&&o.trigger("cleared");e.showTooltip&&(r.title=e.tooltip||h().mask)}function sr(t){var f=n(this),r=this,u,i;r.inputmask&&(u=r.inputmask._valueGet(),i=v().slice(),rt!==i.join("")&&setTimeout(function(){f.trigger("change");rt=i.join("")},0),""!==u&&(e.clearMaskOnLostFocus&&(-1===y()&&u===g().join("")?i=[]:pt(i)),ct(i)===!1&&(setTimeout(function(){f.trigger("incomplete")},0),e.clearIncomplete&&(d(),i=e.clearMaskOnLostFocus?[]:g().slice())),et(r,i,void 0,t)))}function hr(){var n=this;fi=!0;document.activeElement!==n&&e.showMaskOnHover&&n.inputmask._valueGet()!==v().join("")&&et(n,v())}function cr(){rt!==v().join("")&&kt.trigger("change");e.clearMaskOnLostFocus&&-1===y()&&a.inputmask._valueGet&&a.inputmask._valueGet()===g().join("")&&a.inputmask._valueSet("");e.removeMaskOnSubmit&&(a.inputmask._valueSet(a.inputmask.unmaskedvalue(),!0),setTimeout(function(){et(a,v())},0))}function lr(){setTimeout(function(){kt.trigger("setvalue")},0)}function ar(t){var r,i;(a=t,kt=n(a),e.showTooltip&&(a.title=e.tooltip||h().mask),("rtl"===a.dir||e.rightAlign)&&(a.style.textAlign="right"),("rtl"===a.dir||e.numericInput)&&(a.dir="ltr",a.removeAttribute("dir"),a.inputmask.isRTL=!0,w=!0),k.off(a),nr(a),s(a,e)&&(k.on(a,"submit",cr),k.on(a,"reset",lr),k.on(a,"mouseenter",hr),k.on(a,"blur",sr),k.on(a,"focus",rr),k.on(a,"mouseleave",ur),k.on(a,"click",fr),k.on(a,"dblclick",er),k.on(a,"paste",ri),k.on(a,"dragdrop",ri),k.on(a,"drop",ri),k.on(a,"cut",or),k.on(a,"complete",e.oncomplete),k.on(a,"incomplete",e.onincomplete),k.on(a,"cleared",e.oncleared),k.on(a,"keydown",pi),k.on(a,"keypress",wt),k.on(a,"input",tr)),k.on(a,"setvalue",ir),""!==a.inputmask._valueGet()||e.clearMaskOnLostFocus===!1||document.activeElement===a)&&(r=n.isFunction(e.onBeforeMask)?e.onBeforeMask(a.inputmask._valueGet(),e)||a.inputmask._valueGet():a.inputmask._valueGet(),ht(a,!0,!1,r.split("")),i=v().slice(),rt=i.join(""),ct(i)===!1&&e.clearIncomplete&&d(),e.clearMaskOnLostFocus&&document.activeElement!==a&&(-1===y()?i=[]:pt(i)),et(a,i),document.activeElement===a&&b(a,p(y())))}var rt,a,kt,lt,it,w=!1,ui=!1,dt=!1,wi=!1,fi=!0,k={on:function(i,r,u){var o=function(i){var r,s,o;if(void 0===this.inputmask&&"FORM"!==this.nodeName)r=n.data(this,"_inputmask_opts"),r?new t(r).mask(this):k.off(this);else{if("setvalue"===i.type||!(this.disabled||this.readOnly&&!("keydown"===i.type&&i.ctrlKey&&67===i.keyCode||e.tabThrough===!1&&i.keyCode===t.keyCode.TAB))){switch(i.type){case"input":if(dt===!0)return dt=!1,i.preventDefault();break;case"keydown":ui=!1;dt=!1;break;case"keypress":if(ui===!0)return i.preventDefault();ui=!0;break;case"click":if(f)return s=this,setTimeout(function(){u.apply(s,arguments)},0),!1}return o=u.apply(this,arguments),o===!1&&(i.preventDefault(),i.stopPropagation()),o}i.preventDefault()}};i.inputmask.events[r]=i.inputmask.events[r]||[];i.inputmask.events[r].push(o);-1!==n.inArray(r,["submit","reset"])?null!=i.form&&n(i.form).on(r,o):n(i).on(r,o)},off:function(t,i){if(t.inputmask&&t.inputmask.events){var r;i?(r=[],r[i]=t.inputmask.events[i]):r=t.inputmask.events;n.each(r,function(i,r){for(;r.length>0;){var u=r.pop();-1!==n.inArray(i,["submit","reset"])?null!=t.form&&n(t.form).off(i,u):n(t).off(i,u)}delete t.inputmask.events[i]})}}},bi,si,ki,vt;if(void 0!==r)switch(r.action){case"isComplete":return a=r.el,ct(v());case"unmaskedvalue":return a=r.el,void 0!==a&&void 0!==a.inputmask?(u=a.inputmask.maskset,e=a.inputmask.opts,w=a.inputmask.isRTL):(it=r.value,e.numericInput&&(w=!0),it=(n.isFunction(e.onBeforeMask)?e.onBeforeMask(it,e)||it:it).split(""),ht(void 0,!1,!1,w?it.reverse():it),n.isFunction(e.onBeforeWrite)&&e.onBeforeWrite(void 0,v(),0,e)),yi(a);case"mask":a=r.el;u=a.inputmask.maskset;e=a.inputmask.opts;w=a.inputmask.isRTL;rt=v().join("");ar(a);break;case"format":return e.numericInput&&(w=!0),it=(n.isFunction(e.onBeforeMask)?e.onBeforeMask(r.value,e)||r.value:r.value).split(""),ht(void 0,!1,!1,w?it.reverse():it),n.isFunction(e.onBeforeWrite)&&e.onBeforeWrite(void 0,v(),0,e),r.metadata?{value:w?v().slice().reverse().join(""):v().join(""),metadata:i({action:"getmetadata"},u,e)}:w?v().slice().reverse().join(""):v().join("");case"isValid":e.numericInput&&(w=!0);r.value?(it=r.value.split(""),ht(void 0,!1,!0,w?it.reverse():it)):r.value=v().join("");for(var ei=v(),oi=ti(),gt=ei.length-1;gt>oi&&!nt(gt);gt--);return ei.splice(oi,gt+1-oi),ct(ei)&&r.value===v().join("");case"getemptymask":return g().join("");case"remove":a=r.el;kt=n(a);u=a.inputmask.maskset;e=a.inputmask.opts;a.inputmask._valueSet(yi(a));k.off(a);Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?(bi=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value"),bi&&a.inputmask.__valueGet&&Object.defineProperty(a,"value",{get:a.inputmask.__valueGet,set:a.inputmask.__valueSet,configurable:!0})):document.__lookupGetter__&&a.__lookupGetter__("value")&&a.inputmask.__valueGet&&(a.__defineGetter__("value",a.inputmask.__valueGet),a.__defineSetter__("value",a.inputmask.__valueSet));a.inputmask=void 0;break;case"getmetadata":if(n.isArray(u.metadata)){for(ki=y(void 0,!0),vt=ki;vt>=0;vt--)if(h().validPositions[vt]&&void 0!==h().validPositions[vt].alternation){si=h().validPositions[vt].alternation;break}return void 0!==si?u.metadata[h().validPositions[vt].locator[si]]:[]}return u.metadata}}t.prototype={defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},quantifiermarker:{start:"{",end:"}"},groupmarker:{start:"(",end:")"},alternatormarker:"|",escapeChar:"\\",mask:null,oncomplete:n.noop,onincomplete:n.noop,oncleared:n.noop,repeat:0,greedy:!0,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,aliases:{},alias:null,onKeyDown:n.noop,onBeforeMask:null,onBeforePaste:function(t,i){return n.isFunction(i.onBeforeMask)?i.onBeforeMask(t,i):t},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:n.noop,skipOptionalPartCharacter:" ",showTooltip:!1,tooltip:void 0,numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",radixPointDefinitionSymbol:void 0,groupSeparator:"",radixFocus:!1,nojumps:!1,nojumpsThreshold:0,keepStatic:null,positionCaretOnTab:!1,tabThrough:!1,supportsInputType:["text","tel","password"],definitions:{9:{validator:"[0-9]",cardinality:1,definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,definitionSymbol:"*"},"*":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1}},ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123],isComplete:null,canClearPosition:n.noop,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0},masksCache:{},mask:function(u){var f=this;return"string"==typeof u&&(u=document.getElementById(u)||document.querySelectorAll(u)),u=u.nodeName?[u]:u,n.each(u,function(u,e){var o=n.extend(!0,{},f.opts),s;h(e,o,n.extend(!0,{},f.userOptions));s=r(o,f.noMasksCache);void 0!==s&&(void 0!==e.inputmask&&e.inputmask.remove(),e.inputmask=new t,e.inputmask.opts=o,e.inputmask.noMasksCache=f.noMasksCache,e.inputmask.userOptions=n.extend(!0,{},f.userOptions),e.inputmask.el=e,e.inputmask.maskset=s,e.inputmask.isRTL=!1,n.data(e,"_inputmask_opts",o),i({action:"mask",el:e}))}),u&&u[0]?u[0].inputmask||this:this},option:function(t,i){return"string"==typeof t?this.opts[t]:"object"==typeof t?(n.extend(this.userOptions,t),this.el&&i!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(n){return i({action:"unmaskedvalue",el:this.el,value:n},this.el&&this.el.inputmask?this.el.inputmask.maskset:r(this.opts,this.noMasksCache),this.opts)},remove:function(){if(this.el)return(i({action:"remove",el:this.el}),this.el.inputmask=void 0,this.el)},getemptymask:function(){return i({action:"getemptymask"},this.maskset||r(this.opts,this.noMasksCache),this.opts)},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return i({action:"isComplete",el:this.el},this.maskset||r(this.opts,this.noMasksCache),this.opts)},getmetadata:function(){return i({action:"getmetadata"},this.maskset||r(this.opts,this.noMasksCache),this.opts)},isValid:function(n){return i({action:"isValid",value:n},this.maskset||r(this.opts,this.noMasksCache),this.opts)},format:function(n,t){return i({action:"format",value:n,metadata:t},this.maskset||r(this.opts,this.noMasksCache),this.opts)}};t.extendDefaults=function(i){n.extend(!0,t.prototype.defaults,i)};t.extendDefinitions=function(i){n.extend(!0,t.prototype.defaults.definitions,i)};t.extendAliases=function(i){n.extend(!0,t.prototype.defaults.aliases,i)};t.format=function(n,i,r){return t(i).format(n,r)};t.unmask=function(n,i){return t(i).unmaskedvalue(n)};t.isValid=function(n,i){return t(i).isValid(n)};t.remove=function(t){n.each(t,function(n,t){t.inputmask&&t.inputmask.remove()})};t.escapeRegex=function(n){return n.replace(new RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^)","gim"),"\\$1")};t.keyCode={ALT:18,BACKSPACE:8,BACKSPACE_SAFARI:127,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91,X:88};var u=navigator.userAgent,c=/mobile/i.test(u),f=/iemobile/i.test(u),l=/iphone/i.test(u)&&!f;return/android.*safari.*/i.test(u)&&!f,window.Inputmask=t,t}(jQuery),function(n,t){return void 0===n.fn.inputmask&&(n.fn.inputmask=function(i,r){var f,u=this[0];if(void 0===r&&(r={}),"string"==typeof i)switch(i){case"unmaskedvalue":return u&&u.inputmask?u.inputmask.unmaskedvalue():n(u).val();case"remove":return this.each(function(){this.inputmask&&this.inputmask.remove()});case"getemptymask":return u&&u.inputmask?u.inputmask.getemptymask():"";case"hasMaskedValue":return u&&u.inputmask?u.inputmask.hasMaskedValue():!1;case"isComplete":return u&&u.inputmask?u.inputmask.isComplete():!0;case"getmetadata":return u&&u.inputmask?u.inputmask.getmetadata():void 0;case"setvalue":n(u).val(r);u&&void 0!==u.inputmask&&n(u).triggerHandler("setvalue");break;case"option":if("string"!=typeof r)return this.each(function(){if(void 0!==this.inputmask)return this.inputmask.option(r)});if(u&&void 0!==u.inputmask)return u.inputmask.option(r);break;default:return r.alias=i,f=new t(r),this.each(function(){f.mask(this)})}else{if("object"==typeof i)return f=new t(i),void 0===i.mask&&void 0===i.alias?this.each(function(){return void 0!==this.inputmask?this.inputmask.option(i):void f.mask(this)}):this.each(function(){f.mask(this)});if(void 0===i)return this.each(function(){f=new t(r);f.mask(this)})}}),n.fn.inputmask}(jQuery,Inputmask),function(n,t){return t.extendDefinitions({h:{validator:"[01][0-9]|2[0-3]",cardinality:2,prevalidator:[{validator:"[0-2]",cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:"[0-5]",cardinality:1}]},d:{validator:"0[1-9]|[12][0-9]|3[01]",cardinality:2,prevalidator:[{validator:"[0-3]",cardinality:1}]},m:{validator:"0[1-9]|1[012]",cardinality:2,prevalidator:[{validator:"[01]",cardinality:1}]},y:{validator:"(19|20)\\d{2}",cardinality:4,prevalidator:[{validator:"[12]",cardinality:1},{validator:"(19|20)",cardinality:2},{validator:"(19|20)\\d",cardinality:3}]}}),t.extendAliases({"dd/mm/yyyy":{mask:"1/2/y",placeholder:"dd/mm/yyyy",regex:{val1pre:new RegExp("[0-3]"),val1:new RegExp("0[1-9]|[12][0-9]|3[01]"),val2pre:function(n){var i=t.escapeRegex.call(this,n);return new RegExp("((0[1-9]|[12][0-9]|3[01])"+i+"[01])")},val2:function(n){var i=t.escapeRegex.call(this,n);return new RegExp("((0[1-9]|[12][0-9])"+i+"(0[1-9]|1[012]))|(30"+i+"(0[13-9]|1[012]))|(31"+i+"(0[13578]|1[02]))")}},leapday:"29/02/",separator:"/",yearrange:{minyear:1900,maxyear:2099},isInYearRange:function(n,t,i){if(isNaN(n))return!1;var r=parseInt(n.concat(t.toString().slice(n.length))),u=parseInt(n.concat(i.toString().slice(n.length)));return(isNaN(r)?!1:r>=t&&i>=r)||(isNaN(u)?!1:u>=t&&i>=u)},determinebaseyear:function(n,t,i){var r=(new Date).getFullYear(),u,s,e,f,o;if(n>r)return n;if(r>t){for(u=t.toString().slice(0,2),s=t.toString().slice(2,4);u+i>t;)u--;return e=u+s,n>e?n:e}if(r>=n&&t>=r){for(f=r.toString().slice(0,2);f+i>t;)f--;return o=f+i,n>o?n:o}return r},onKeyDown:function(i){var u=n(this),r;i.ctrlKey&&i.keyCode===t.keyCode.RIGHT&&(r=new Date,u.val(r.getDate().toString()+(r.getMonth()+1).toString()+r.getFullYear().toString()),u.trigger("setvalue"))},getFrontValue:function(n,t,i){for(var f,e=0,r=0,u=0;u<n.length&&"2"!==n.charAt(u);u++)f=i.definitions[n.charAt(u)],f?(e+=r,r=f.cardinality):r++;return t.join("").substr(e,r)},definitions:{1:{validator:function(n,t,i,r,u){var f=u.regex.val1.test(n);return r||f||n.charAt(1)!==u.separator&&-1==="-./".indexOf(n.charAt(1))||!(f=u.regex.val1.test("0"+n.charAt(0)))?f:(t.buffer[i-1]="0",{refreshFromBuffer:{start:i-1,end:i},pos:i,c:n.charAt(0)})},cardinality:2,prevalidator:[{validator:function(n,t,i,r,u){var e=n,f;if(isNaN(t.buffer[i+1])||(e+=t.buffer[i+1]),f=1===e.length?u.regex.val1pre.test(e):u.regex.val1.test(e),!r&&!f){if(f=u.regex.val1.test(n+"0"))return t.buffer[i]=n,t.buffer[++i]="0",{pos:i,c:"0"};if(f=u.regex.val1.test("0"+n))return t.buffer[i]="0",i++,{pos:i}}return f},cardinality:1}]},2:{validator:function(n,t,i,r,u){var e=u.getFrontValue(t.mask,t.buffer,u),f,s,o;return(-1!==e.indexOf(u.placeholder[0])&&(e="01"+u.separator),f=u.regex.val2(u.separator).test(e+n),!r&&!f&&(n.charAt(1)===u.separator||-1!=="-./".indexOf(n.charAt(1)))&&(f=u.regex.val2(u.separator).test(e+"0"+n.charAt(0))))?(t.buffer[i-1]="0",{refreshFromBuffer:{start:i-1,end:i},pos:i,c:n.charAt(0)}):u.mask.indexOf("2")===u.mask.length-1&&f?(s=t.buffer.join("").substr(4,4)+n,s!==u.leapday)?!0:(o=parseInt(t.buffer.join("").substr(0,4),10),o%4==0?o%100==0?o%400==0:!0:!1):f},cardinality:2,prevalidator:[{validator:function(n,t,i,r,u){var f,e;return isNaN(t.buffer[i+1])||(n+=t.buffer[i+1]),f=u.getFrontValue(t.mask,t.buffer,u),-1!==f.indexOf(u.placeholder[0])&&(f="01"+u.separator),e=1===n.length?u.regex.val2pre(u.separator).test(f+n):u.regex.val2(u.separator).test(f+n),r||e||!(e=u.regex.val2(u.separator).test(f+"0"+n))?e:(t.buffer[i]="0",i++,{pos:i})},cardinality:1}]},y:{validator:function(n,t,i,r,u){var e,f;return u.isInYearRange(n,u.yearrange.minyear,u.yearrange.maxyear)?(e=t.buffer.join("").substr(0,6),e!==u.leapday)?!0:(f=parseInt(n,10),f%4==0?f%100==0?f%400==0:!0:!1):!1},cardinality:4,prevalidator:[{validator:function(n,t,i,r,u){var e=u.isInYearRange(n,u.yearrange.minyear,u.yearrange.maxyear),f;if(!r&&!e){if(f=u.determinebaseyear(u.yearrange.minyear,u.yearrange.maxyear,n+"0").toString().slice(0,1),e=u.isInYearRange(f+n,u.yearrange.minyear,u.yearrange.maxyear))return t.buffer[i++]=f.charAt(0),{pos:i};if(f=u.determinebaseyear(u.yearrange.minyear,u.yearrange.maxyear,n+"0").toString().slice(0,2),e=u.isInYearRange(f+n,u.yearrange.minyear,u.yearrange.maxyear))return t.buffer[i++]=f.charAt(0),t.buffer[i++]=f.charAt(1),{pos:i}}return e},cardinality:1},{validator:function(n,t,i,r,u){var f=u.isInYearRange(n,u.yearrange.minyear,u.yearrange.maxyear),e,s,o;if(!r&&!f){if(e=u.determinebaseyear(u.yearrange.minyear,u.yearrange.maxyear,n).toString().slice(0,2),f=u.isInYearRange(n[0]+e[1]+n[1],u.yearrange.minyear,u.yearrange.maxyear))return t.buffer[i++]=e.charAt(1),{pos:i};if((e=u.determinebaseyear(u.yearrange.minyear,u.yearrange.maxyear,n).toString().slice(0,2),u.isInYearRange(e+n,u.yearrange.minyear,u.yearrange.maxyear))?(s=t.buffer.join("").substr(0,6),s!==u.leapday?f=!0:(o=parseInt(n,10),f=o%4==0?o%100==0?o%400==0:!0:!1)):f=!1,f)return t.buffer[i-1]=e.charAt(0),t.buffer[i++]=e.charAt(1),t.buffer[i++]=n.charAt(0),{refreshFromBuffer:{start:i-3,end:i},pos:i}}return f},cardinality:2},{validator:function(n,t,i,r,u){return u.isInYearRange(n,u.yearrange.minyear,u.yearrange.maxyear)},cardinality:3}]}},insertMode:!1,autoUnmask:!1},"mm/dd/yyyy":{placeholder:"mm/dd/yyyy",alias:"dd/mm/yyyy",regex:{val2pre:function(n){var i=t.escapeRegex.call(this,n);return new RegExp("((0[13-9]|1[012])"+i+"[0-3])|(02"+i+"[0-2])")},val2:function(n){var i=t.escapeRegex.call(this,n);return new RegExp("((0[1-9]|1[012])"+i+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+i+"30)|((0[13578]|1[02])"+i+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},leapday:"02/29/",onKeyDown:function(i){var u=n(this),r;i.ctrlKey&&i.keyCode===t.keyCode.RIGHT&&(r=new Date,u.val((r.getMonth()+1).toString()+r.getDate().toString()+r.getFullYear().toString()),u.trigger("setvalue"))}},"yyyy/mm/dd":{mask:"y/1/2",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",leapday:"/02/29",onKeyDown:function(i){var u=n(this),r;i.ctrlKey&&i.keyCode===t.keyCode.RIGHT&&(r=new Date,u.val(r.getFullYear().toString()+(r.getMonth()+1).toString()+r.getDate().toString()),u.trigger("setvalue"))}},"dd.mm.yyyy":{mask:"1.2.y",placeholder:"dd.mm.yyyy",leapday:"29.02.",separator:".",alias:"dd/mm/yyyy"},"dd-mm-yyyy":{mask:"1-2-y",placeholder:"dd-mm-yyyy",leapday:"29-02-",separator:"-",alias:"dd/mm/yyyy"},"mm.dd.yyyy":{mask:"1.2.y",placeholder:"mm.dd.yyyy",leapday:"02.29.",separator:".",alias:"mm/dd/yyyy"},"mm-dd-yyyy":{mask:"1-2-y",placeholder:"mm-dd-yyyy",leapday:"02-29-",separator:"-",alias:"mm/dd/yyyy"},"yyyy.mm.dd":{mask:"y.1.2",placeholder:"yyyy.mm.dd",leapday:".02.29",separator:".",alias:"yyyy/mm/dd"},"yyyy-mm-dd":{mask:"y-1-2",placeholder:"yyyy-mm-dd",leapday:"-02-29",separator:"-",alias:"yyyy/mm/dd"},datetime:{mask:"1/2/y h:s",placeholder:"dd/mm/yyyy hh:mm",alias:"dd/mm/yyyy",regex:{hrspre:new RegExp("[012]"),hrs24:new RegExp("2[0-4]|1[3-9]"),hrs:new RegExp("[01][0-9]|2[0-4]"),ampm:new RegExp("^[a|p|A|P][m|M]"),mspre:new RegExp("[0-5]"),ms:new RegExp("[0-5][0-9]")},timeseparator:":",hourFormat:"24",definitions:{h:{validator:function(n,t,i,r,u){var e,f;return"24"===u.hourFormat&&24===parseInt(n,10)?(t.buffer[i-1]="0",t.buffer[i]="0",{refreshFromBuffer:{start:i-1,end:i},c:"0"}):(e=u.regex.hrs.test(n),!r&&!e&&(n.charAt(1)===u.timeseparator||-1!=="-.:".indexOf(n.charAt(1)))&&(e=u.regex.hrs.test("0"+n.charAt(0))))?(t.buffer[i-1]="0",t.buffer[i]=n.charAt(0),i++,{refreshFromBuffer:{start:i-2,end:i},pos:i,c:u.timeseparator}):e&&"24"!==u.hourFormat&&u.regex.hrs24.test(n)?(f=parseInt(n,10),24===f?(t.buffer[i+5]="a",t.buffer[i+6]="m"):(t.buffer[i+5]="p",t.buffer[i+6]="m"),f-=12,10>f?(t.buffer[i]=f.toString(),t.buffer[i-1]="0"):(t.buffer[i]=f.toString().charAt(1),t.buffer[i-1]=f.toString().charAt(0)),{refreshFromBuffer:{start:i-1,end:i+6},c:t.buffer[i]}):e},cardinality:2,prevalidator:[{validator:function(n,t,i,r,u){var f=u.regex.hrspre.test(n);return r||f||!(f=u.regex.hrs.test("0"+n))?f:(t.buffer[i]="0",i++,{pos:i})},cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:function(n,t,i,r,u){var f=u.regex.mspre.test(n);return r||f||!(f=u.regex.ms.test("0"+n))?f:(t.buffer[i]="0",i++,{pos:i})},cardinality:1}]},t:{validator:function(n,t,i,r,u){return u.regex.ampm.test(n+"m")},casing:"lower",cardinality:1}},insertMode:!1,autoUnmask:!1},datetime12:{mask:"1/2/y h:s t\\m",placeholder:"dd/mm/yyyy hh:mm xm",alias:"datetime",hourFormat:"12"},"mm/dd/yyyy hh:mm xm":{mask:"1/2/y h:s t\\m",placeholder:"mm/dd/yyyy hh:mm xm",alias:"datetime12",regex:{val2pre:function(n){var i=t.escapeRegex.call(this,n);return new RegExp("((0[13-9]|1[012])"+i+"[0-3])|(02"+i+"[0-2])")},val2:function(n){var i=t.escapeRegex.call(this,n);return new RegExp("((0[1-9]|1[012])"+i+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+i+"30)|((0[13578]|1[02])"+i+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},leapday:"02/29/",onKeyDown:function(i){var u=n(this),r;i.ctrlKey&&i.keyCode===t.keyCode.RIGHT&&(r=new Date,u.val((r.getMonth()+1).toString()+r.getDate().toString()+r.getFullYear().toString()),u.trigger("setvalue"))}},"hh:mm t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"h:s t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"hh:mm:ss":{mask:"h:s:s",placeholder:"hh:mm:ss",alias:"datetime",autoUnmask:!1},"hh:mm":{mask:"h:s",placeholder:"hh:mm",alias:"datetime",autoUnmask:!1},date:{alias:"dd/mm/yyyy"},"mm/yyyy":{mask:"1/y",placeholder:"mm/yyyy",leapday:"donotuse",separator:"/",alias:"mm/dd/yyyy"},shamsi:{regex:{val2pre:function(n){var i=t.escapeRegex.call(this,n);return new RegExp("((0[1-9]|1[012])"+i+"[0-3])")},val2:function(n){var i=t.escapeRegex.call(this,n);return new RegExp("((0[1-9]|1[012])"+i+"(0[1-9]|[12][0-9]))|((0[1-9]|1[012])"+i+"30)|((0[1-6])"+i+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},yearrange:{minyear:1300,maxyear:1499},mask:"y/1/2",leapday:"/12/30",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",clearIncomplete:!0}}),t}(jQuery,Inputmask),function(n,t){return t.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"},"#":{validator:"[0-9A-Fa-f]",cardinality:1,casing:"upper"}}),t.extendAliases({url:{definitions:{i:{validator:".",cardinality:1}},mask:"(\\http://)|(\\http\\s://)|(ftp://)|(ftp\\s://)i{+}",insertMode:!1,autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(n,t,i){return i-1>-1&&"."!==t.buffer[i-1]?(n=t.buffer[i-1]+n,n=i-2>-1&&"."!==t.buffer[i-2]?t.buffer[i-2]+n:"0"+n):n="00"+n,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(n)},cardinality:1}},onUnMask:function(n){return n}},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,onBeforePaste:function(n){return n=n.toLowerCase(),n.replace("mailto:","")},definitions:{"*":{validator:"[0-9A-Za-z!#$%&'*+/=?^_`{|}~-]",cardinality:1,casing:"lower"},"-":{validator:"[0-9A-Za-z-]",cardinality:1,casing:"lower"}},onUnMask:function(n){return n}},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",cardinality:1,casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}}),t}(jQuery,Inputmask),function(n,t){return t.extendAliases({numeric:{mask:function(n){function u(t){for(var r="",i=0;i<t.length;i++)r+=n.definitions[t.charAt(i)]||n.optionalmarker.start===t.charAt(i)||n.optionalmarker.end===t.charAt(i)||n.quantifiermarker.start===t.charAt(i)||n.quantifiermarker.end===t.charAt(i)||n.groupmarker.start===t.charAt(i)||n.groupmarker.end===t.charAt(i)||n.alternatormarker===t.charAt(i)?"\\"+t.charAt(i):t.charAt(i);return r}var r,f,i;return(0!==n.repeat&&isNaN(n.integerDigits)&&(n.integerDigits=n.repeat),n.repeat=0,n.groupSeparator===n.radixPoint&&(n.groupSeparator="."===n.radixPoint?",":","===n.radixPoint?".":"")," "===n.groupSeparator&&(n.skipOptionalPartCharacter=void 0),n.autoGroup=n.autoGroup&&""!==n.groupSeparator,n.autoGroup&&("string"==typeof n.groupSize&&isFinite(n.groupSize)&&(n.groupSize=parseInt(n.groupSize)),isFinite(n.integerDigits)))&&(r=Math.floor(n.integerDigits/n.groupSize),f=n.integerDigits%n.groupSize,n.integerDigits=parseInt(n.integerDigits)+(0===f?r-1:r),n.integerDigits<1&&(n.integerDigits="*")),n.placeholder.length>1&&(n.placeholder=n.placeholder.charAt(0)),n.radixFocus=n.radixFocus&&""!==n.placeholder&&n.integerOptional===!0,n.definitions[";"]=n.definitions["~"],n.definitions[";"].definitionSymbol="~",n.numericInput===!0&&(n.radixFocus=!1,n.digitsOptional=!1,isNaN(n.digits)&&(n.digits=2),n.decimalProtect=!1),i=u(n.prefix),i+="[+]",i+=n.integerOptional===!0?"~{1,"+n.integerDigits+"}":"~{"+n.integerDigits+"}",void 0!==n.digits&&(isNaN(n.digits)||parseInt(n.digits)>0)&&(n.decimalProtect&&(n.radixPointDefinitionSymbol=":"),i+=n.digitsOptional?"["+(n.decimalProtect?":":n.radixPoint)+";{1,"+n.digits+"}]":(n.decimalProtect?":":n.radixPoint)+";{"+n.digits+"}"),i+="[-]",i+=u(n.suffix),n.greedy=!1,null!==n.min&&(n.min=n.min.toString().replace(new RegExp(t.escapeRegex(n.groupSeparator),"g"),""),","===n.radixPoint&&(n.min=n.min.replace(n.radixPoint,"."))),null!==n.max&&(n.max=n.max.toString().replace(new RegExp(t.escapeRegex(n.groupSeparator),"g"),""),","===n.radixPoint&&(n.max=n.max.replace(n.radixPoint,"."))),i},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,radixPoint:".",radixFocus:!0,groupSize:3,groupSeparator:"",autoGroup:!1,allowPlus:!0,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,postFormat:function(i,r,u){var o,h,v,f,p,w,a,y,e;u.numericInput===!0&&(i=i.reverse(),isFinite(r)&&(r=i.join("").length-r-1));v=!1;i.length>=u.suffix.length&&i.join("").indexOf(u.suffix)===i.length-u.suffix.length&&(i.length=i.length-u.suffix.length,v=!0);r=r>=i.length?i.length-1:r<u.prefix.length?u.prefix.length:r;var c=!1,s=i[r],l=i.slice();if(s===u.groupSeparator&&(l.splice(r--,1),s=l[r]),s!==u.radixPoint&&s!==u.negationSymbol.front&&s!==u.negationSymbol.back&&(l[r]="?"),f=l.join(""),p=f,f.length>0&&u.autoGroup||-1!==f.indexOf(u.groupSeparator)){if(w=t.escapeRegex(u.groupSeparator),c=0===f.indexOf(u.groupSeparator),f=f.replace(new RegExp(w,"g"),""),a=f.split(u.radixPoint),f=""===u.radixPoint?f:a[0],f!==u.prefix+"?0"&&f.length>=u.groupSize+u.prefix.length)for(y=new RegExp("([-+]?[\\d?]+)([\\d?]{"+u.groupSize+"})");y.test(f)&&""!==u.groupSeparator;)f=f.replace(y,"$1"+u.groupSeparator+"$2"),f=f.replace(u.groupSeparator+u.groupSeparator,u.groupSeparator);""!==u.radixPoint&&a.length>1&&(f+=u.radixPoint+a[1])}for(c=p!==f,i.length=f.length,o=0,h=f.length;h>o;o++)i[o]=f.charAt(o);if(e=n.inArray("?",i),-1===e&&(e=n.inArray(s,i)),i[e]=s,!c&&v)for(o=0,h=u.suffix.length;h>o;o++)i.push(u.suffix.charAt(o));return e=u.numericInput&&isFinite(r)?i.join("").length-e-1:e,u.numericInput&&(i=i.reverse(),n.inArray(u.radixPoint,i)<e&&i.join("").length-u.suffix.length!==e&&(e-=1)),{pos:e,refreshFromBuffer:c,buffer:i}},onBeforeWrite:function(i,r,u,f){var o,a,e,h,c,y,l,v,s;if(i&&("blur"===i.type||"checkval"===i.type||"keydown"===i.type)&&(a=f.numericInput?r.slice().reverse().join(""):r.join(""),e=a.replace(f.prefix,""),e=e.replace(f.suffix,""),e=e.replace(new RegExp(t.escapeRegex(f.groupSeparator),"g"),""),","===f.radixPoint&&(e=e.replace(f.radixPoint,".")),h=e.match(new RegExp("[-"+t.escapeRegex(f.negationSymbol.front)+"]","g")),h=null!==h&&1===h.length,e=e.replace(new RegExp("[-"+t.escapeRegex(f.negationSymbol.front)+"]","g"),""),e=e.replace(new RegExp(t.escapeRegex(f.negationSymbol.back)+"$"),""),isNaN(f.placeholder)&&(e=e.replace(new RegExp(t.escapeRegex(f.placeholder),"g"),"")),e=e===f.negationSymbol.front?e+"0":e,""!==e&&isFinite(e))){if(c=parseFloat(e),y=h?-1*c:c,null!==f.min&&isFinite(f.min)&&y<parseFloat(f.min)?(c=Math.abs(f.min),h=f.min<0,a=void 0):null!==f.max&&isFinite(f.max)&&y>parseFloat(f.max)&&(c=Math.abs(f.max),h=f.max<0,a=void 0),e=c.toString().replace(".",f.radixPoint).split(""),isFinite(f.digits)){for(l=n.inArray(f.radixPoint,e),v=n.inArray(f.radixPoint,a),-1===l&&(e.push(f.radixPoint),l=e.length-1),s=1;s<=f.digits;s++)f.digitsOptional||void 0!==e[l+s]&&e[l+s]!==f.placeholder.charAt(0)?-1!==v&&void 0!==a[v+s]&&(e[l+s]=e[l+s]||a[v+s]):e[l+s]="0";e[e.length-1]===f.radixPoint&&delete e[e.length-1]}if(c.toString()!==e&&c.toString()+"."!==e||h)return!h||0===c&&"blur"===i.type||(e.unshift(f.negationSymbol.front),e.push(f.negationSymbol.back)),e=(f.prefix+e.join("")).split(""),f.numericInput&&(e=e.reverse()),o=f.postFormat(e,f.numericInput?u:u-1,f),o.buffer&&(o.refreshFromBuffer=o.buffer.join("")!==r.join("")),o}if(f.autoGroup)return(o=f.postFormat(r,f.numericInput?u:u-1,f),o.caret=u<=f.prefix.length?o.pos:o.pos+1,o)},regex:{integerPart:function(n){return new RegExp("["+t.escapeRegex(n.negationSymbol.front)+"+]?\\d+")},integerNPart:function(n){return new RegExp("[\\d"+t.escapeRegex(n.groupSeparator)+t.escapeRegex(n.placeholder.charAt(0))+"]+")}},signHandler:function(n,t,i,r,u){if(!r&&u.allowMinus&&"-"===n||u.allowPlus&&"+"===n){var f=t.buffer.join("").match(u.regex.integerPart(u));if(f&&f[0].length>0)return t.buffer[f.index]===("-"===n?"+":u.negationSymbol.front)?"-"===n?""!==u.negationSymbol.back?{pos:f.index,c:u.negationSymbol.front,remove:f.index,caret:i,insert:{pos:t.buffer.length-u.suffix.length-1,c:u.negationSymbol.back}}:{pos:f.index,c:u.negationSymbol.front,remove:f.index,caret:i}:""!==u.negationSymbol.back?{pos:f.index,c:"+",remove:[f.index,t.buffer.length-u.suffix.length-1],caret:i}:{pos:f.index,c:"+",remove:f.index,caret:i}:t.buffer[f.index]===("-"===n?u.negationSymbol.front:"+")?"-"===n&&""!==u.negationSymbol.back?{remove:[f.index,t.buffer.length-u.suffix.length-1],caret:i-1}:{remove:f.index,caret:i-1}:"-"===n?""!==u.negationSymbol.back?{pos:f.index,c:u.negationSymbol.front,caret:i+1,insert:{pos:t.buffer.length-u.suffix.length,c:u.negationSymbol.back}}:{pos:f.index,c:u.negationSymbol.front,caret:i+1}:{pos:f.index,c:n,caret:i+1}}return!1},radixHandler:function(t,i,r,u,f){if(!u&&f.numericInput!==!0&&t===f.radixPoint&&void 0!==f.digits&&(isNaN(f.digits)||parseInt(f.digits)>0)){var o=n.inArray(f.radixPoint,i.buffer),e=i.buffer.join("").match(f.regex.integerPart(f));if(-1!==o&&i.validPositions[o])return i.validPositions[o-1]?{caret:o+1}:{pos:e.index,c:e[0],caret:o+1};if(!e||"0"===e[0]&&e.index+1!==r)return i.buffer[e?e.index:r]="0",{pos:(e?e.index:r)+1,c:f.radixPoint}}return!1},leadingZeroHandler:function(t,i,r,u,f,e){var h,c,s,o,l;if(!u)if(f.numericInput===!0){if(h=i.buffer.slice("").reverse(),c=h[f.prefix.length],"0"===c&&void 0===i.validPositions[r-1])return{pos:r,remove:h.length-f.prefix.length-1}}else if(s=n.inArray(f.radixPoint,i.buffer),o=i.buffer.slice(0,-1!==s?s:void 0).join("").match(f.regex.integerNPart(f)),o&&(-1===s||s>=r)){if(l=-1===s?0:parseInt(i.buffer.slice(s+1).join("")),0===o[0].indexOf(""!==f.placeholder?f.placeholder.charAt(0):"0")&&(o.index+1===r||e!==!0&&0===l))return i.buffer.splice(o.index,1),{pos:o.index,remove:o.index};if("0"===t&&r<=o.index&&o[0]!==f.groupSeparator)return!1}return!0},definitions:{"~":{validator:function(i,r,u,f,e,o){var s=e.signHandler(i,r,u,f,e),h;return s||(s=e.radixHandler(i,r,u,f,e),s||(s=f?new RegExp("[0-9"+t.escapeRegex(e.groupSeparator)+"]").test(i):new RegExp("[0-9]").test(i),s!==!0||(s=e.leadingZeroHandler(i,r,u,f,e,o),s!==!0)))||(h=n.inArray(e.radixPoint,r.buffer),s=-1!==h&&(e.digitsOptional===!1||r.validPositions[u])&&e.numericInput!==!0&&u>h&&!f?{pos:u,remove:u}:{pos:u}),s},cardinality:1},"+":{validator:function(n,t,i,r,u){var f=u.signHandler(n,t,i,r,u);return!f&&(r&&u.allowMinus&&n===u.negationSymbol.front||u.allowMinus&&"-"===n||u.allowPlus&&"+"===n)&&(f=r||"-"!==n?!0:""!==u.negationSymbol.back?{pos:i,c:"-"===n?u.negationSymbol.front:"+",caret:i+1,insert:{pos:t.buffer.length,c:u.negationSymbol.back}}:{pos:i,c:"-"===n?u.negationSymbol.front:"+",caret:i+1}),f},cardinality:1,placeholder:""},"-":{validator:function(n,t,i,r,u){var f=u.signHandler(n,t,i,r,u);return!f&&r&&u.allowMinus&&n===u.negationSymbol.back&&(f=!0),f},cardinality:1,placeholder:""},":":{validator:function(n,i,r,u,f){var e=f.signHandler(n,i,r,u,f),o;return e||(o="["+t.escapeRegex(f.radixPoint)+"]",e=new RegExp(o).test(n),e&&i.validPositions[r]&&i.validPositions[r].match.placeholder===f.radixPoint&&(e={caret:r+1})),e?{c:f.radixPoint}:e},cardinality:1,placeholder:function(n){return n.radixPoint}}},onUnMask:function(n,i,r){var u=n.replace(r.prefix,"");return u=u.replace(r.suffix,""),u=u.replace(new RegExp(t.escapeRegex(r.groupSeparator),"g"),""),r.unmaskAsNumber?(""!==r.radixPoint&&-1!==u.indexOf(r.radixPoint)&&(u=u.replace(t.escapeRegex.call(this,r.radixPoint),".")),Number(u)):u},isComplete:function(n,i){var u=n.join(""),f=n.slice(),r;return(i.postFormat(f,0,i),f.join("")!==u)?!1:(r=u.replace(i.prefix,""),r=r.replace(i.suffix,""),r=r.replace(new RegExp(t.escapeRegex(i.groupSeparator),"g"),""),","===i.radixPoint&&(r=r.replace(t.escapeRegex(i.radixPoint),".")),isFinite(r))},onBeforeMask:function(n,i){var r,u,e,o,f;return""!==i.radixPoint&&isFinite(n)?n=n.toString().replace(".",i.radixPoint):(r=n.match(/,/g),u=n.match(/\./g),u&&r?u.length>r.length?(n=n.replace(/\./g,""),n=n.replace(",",i.radixPoint)):r.length>u.length?(n=n.replace(/,/g,""),n=n.replace(".",i.radixPoint)):n=n.indexOf(".")<n.indexOf(",")?n.replace(/\./g,""):n=n.replace(/,/g,""):n=n.replace(new RegExp(t.escapeRegex(i.groupSeparator),"g"),"")),(0===i.digits&&(-1!==n.indexOf(".")?n=n.substring(0,n.indexOf(".")):-1!==n.indexOf(",")&&(n=n.substring(0,n.indexOf(",")))),""!==i.radixPoint&&isFinite(i.digits)&&-1!==n.indexOf(i.radixPoint))&&(e=n.split(i.radixPoint),o=e[1].match(new RegExp("\\d*"))[0],parseInt(i.digits)<o.toString().length&&(f=Math.pow(10,parseInt(i.digits)),n=n.replace(t.escapeRegex(i.radixPoint),"."),n=Math.round(parseFloat(n)*f)/f,n=n.toString().replace(".",i.radixPoint))),n.toString()},canClearPosition:function(n,t,i,r,u){var f=n.validPositions[t].input;return f!==u.radixPoint||null!==n.validPositions[t].match.fn&&u.decimalProtect===!1||isFinite(f)||t===i||f===u.groupSeparator||f===u.negationSymbol.front||f===u.negationSymbol.back},onKeyDown:function(i,r,u,f){var e=n(this);if(i.ctrlKey)switch(i.keyCode){case t.keyCode.UP:e.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(f.step));e.trigger("setvalue");break;case t.keyCode.DOWN:e.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(f.step));e.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowPlus:!1,allowMinus:!1}}),t}(jQuery,Inputmask),function(n,t){return t.extendAliases({phone:{url:"phone-codes/phone-codes.js",countrycode:"",phoneCodeCache:{},mask:function(t){if(void 0===t.phoneCodeCache[t.url]){var i=[];t.definitions["#"]=t.definitions[9];n.ajax({url:t.url,async:!1,type:"get",dataType:"json",success:function(n){i=n},error:function(n,i,r){alert(r+" - "+t.url)}});t.phoneCodeCache[t.url]=i.sort(function(n,t){return(n.mask||n)<(t.mask||t)?-1:1})}return t.phoneCodeCache[t.url]},keepStatic:!1,nojumps:!0,nojumpsThreshold:1,onBeforeMask:function(n,t){var i=n.replace(/^0{1,2}/,"").replace(/[\s]/g,"");return(i.indexOf(t.countrycode)>1||-1===i.indexOf(t.countrycode))&&(i="+"+t.countrycode+i),i}},phonebe:{alias:"phone",url:"phone-codes/phone-be.js",countrycode:"32",nojumpsThreshold:4}}),t}(jQuery,Inputmask),function(n,t){return t.extendAliases({Regex:{mask:"r",greedy:!1,repeat:"*",regex:null,regexTokens:null,tokenizer:/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,quantifierFilter:/[0-9]+[^,]/,isComplete:function(n,t){return new RegExp(t.regex).test(n.join(""))},definitions:{r:{validator:function(t,i,r,u,f){function h(n,t){this.matches=[];this.isGroup=n||!1;this.isQuantifier=t||!1;this.quantifier={min:1,max:1};this.repeaterPart=void 0}function w(){var n,i,r=new h,t=[],e,s;for(f.regexTokens=[];n=f.tokenizer.exec(f.regex);)switch(i=n[0],i.charAt(0)){case"(":t.push(new h(!0));break;case")":o=t.pop();t.length>0?t[t.length-1].matches.push(o):r.matches.push(o);break;case"{":case"+":case"*":e=new h(!1,!0);i=i.replace(/[{}]/g,"");var u=i.split(","),c=isNaN(u[0])?u[0]:parseInt(u[0]),l=1===u.length?c:isNaN(u[1])?u[1]:parseInt(u[1]);(e.quantifier={min:c,max:l},t.length>0)?(s=t[t.length-1].matches,n=s.pop(),n.isGroup||(o=new h(!0),o.matches.push(n),n=o),s.push(n),s.push(e)):(n=r.matches.pop(),n.isGroup||(o=new h(!0),o.matches.push(n),n=o),r.matches.push(n),r.matches.push(e));break;default:t.length>0?t[t.length-1].matches.push(i):r.matches.push(i)}r.matches.length>0&&f.regexTokens.push(r)}function s(t,i){var u=!1,l,r,w,k,v,f,h,d,o,y;for(i&&(e+="(",c++),l=0;l<t.matches.length;l++){if(r=t.matches[l],r.isGroup===!0)u=s(r,!0);else if(r.isQuantifier===!0){var g=n.inArray(r,t.matches),p=t.matches[g-1],b=e;if(isNaN(r.quantifier.max)){for(;r.repeaterPart&&r.repeaterPart!==e&&r.repeaterPart.length>e.length&&!(u=s(p,!0)););u=u||s(p,!0);u&&(r.repeaterPart=e);e=b+r.quantifier.max}else{for(w=0,k=r.quantifier.max-1;k>w&&!(u=s(p,!0));w++);e=b+"{"+r.quantifier.min+","+r.quantifier.max+"}"}}else if(void 0!==r.matches)for(v=0;v<r.length&&!(u=s(r[v],i));v++);else{if("["==r.charAt(0)){for(f=e,f+=r,o=0;c>o;o++)f+=")";y=new RegExp("^("+f+")$");u=y.test(a)}else for(h=0,d=r.length;d>h;h++)if("\\"!==r.charAt(h)){for(f=e,f+=r.substr(0,h+1),f=f.replace(/\|$/,""),o=0;c>o;o++)f+=")";if(y=new RegExp("^("+f+")$"),u=y.test(a))break}e+=r}if(u)break}return i&&(e+=")",c--),u}var a,o,y=i.buffer.slice(),e="",p=!1,c=0,l,v;for(null===f.regexTokens&&w(),y.splice(r,0,t),a=y.join(""),l=0;l<f.regexTokens.length;l++)if(v=f.regexTokens[l],p=s(v,v.isGroup))break;return p},cardinality:1}}}}),t}(jQuery,Inputmask);jQuery(document).ready(function(){"use strict";function t(){jQuery(".swipe-button").hide(0).delay(150).show(0);jQuery(".user-nav span:last-child, .user-block-right").delay(50).show(0);jQuery("body").removeClass("closed");jQuery("body").addClass("open");jQuery("#sidebar, .content").css({transition:"0.15s ease-in-out"})}function i(){jQuery(".swipe-button").hide(0).delay(150).show(0);jQuery(".user-nav span:last-child, .user-block-right").delay(150).hide(0);jQuery("body").addClass("closed");jQuery("body").removeClass("open");jQuery("#sidebar, .content").css({transition:"0.15s ease-in-out"})}""!==window.location.hash&&jQuery('a[href="'+window.location.hash+'"]').click();jQuery(".upload-link").on("click",function(n){n.preventDefault();jQuery(".upload:hidden").trigger("click")}),function(n){n.fn.clickToggle=function(t,i){var r=[t,i];return this.data("toggleclicked",0),this.click(function(){var t=n(this).data(),i=t.toggleclicked;n.proxy(r[i],this)();t.toggleclicked=(i+1)%2}),this}}(jQuery);jQuery(window).on("load resize ",function(){jQuery(window).width()>1200?(jQuery("body").removeClass("closed"),jQuery("body").addClass("open"),t()):(i(),jQuery("body").addClass("closed"),jQuery("body").removeClass("open"))});/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&jQuery(".table-tender tbody tr .btn-green").css("visibility","visible");jQuery(".table-tender tbody tr").hover(function(){jQuery(this).find(".btn-green").toggleClass("visible")});jQuery(".swipe-button").clickToggle(function(){jQuery("body").hasClass("closed")?t():i()},function(){jQuery("body").hasClass("closed")?t():i()});jQuery(".mob-trigger").click(function(){jQuery(".mobile-header").addClass("open");jQuery(".mob-nav-block").on("scroll touchmove mousewheel",function(n){return n.preventDefault(),n.stopPropagation(),!1});jQuery(".mob-nav").on("scroll touchmove mousewheel",function(n){n.stopPropagation()})});jQuery(".mob-trigger-close").click(function(){jQuery(".mobile-header").removeClass("open")});jQuery(".mob-nav").bind("mousewheel DOMMouseScroll touchmove",function(n){var t=null;"mousewheel"==n.type?t=-1*n.originalEvent.wheelDelta:"DOMMouseScroll"==n.type&&(t=40*n.originalEvent.detail);t&&(n.preventDefault(),$(this).scrollTop(t+$(this).scrollTop()));"touchmove"==n.type?t=-1*n.originalEvent.wheelDelta:"DOMMouseScroll"==n.type&&(t=40*n.originalEvent.detail);t&&(n.preventDefault(),$(this).scrollTop(t+$(this).scrollTop()))});jQuery(".mob-tabs .dropdown-toggle > span:first-child").click(function(){});jQuery(".mob-tabs .dropdown-menu a").click(function(){jQuery(".mob-tabs .dropdown-menu li").removeClass("active current");jQuery(this).parent().addClass("current");jQuery(".mob-tabs .dropdown-toggle > span:first-child").text(jQuery(this).text())});jQuery(".favorite").click(function(){jQuery(this).children(".glyphicon").hasClass("red")?(jQuery(this).children(".glyphicon").removeClass("pulse animated glyphicon-star red"),jQuery(this).children(".glyphicon").addClass("glyphicon-star-empty gray")):(jQuery(this).children(".glyphicon").removeClass("glyphicon-star-empty gray "),jQuery(this).children(".glyphicon").addClass("pulse animated glyphicon-star red"))});var n=200,r="далі";jQuery(".more").each(function(){var t=jQuery(this).html(),i;t.length>n&&(i=t.substr(0,n)+'<span class="moreellipses">...&nbsp;<\/span><span class="morecontent"><span>'+t.substr(n,t.length-n)+'<\/span>&nbsp;&nbsp;<a href="" class="morelink red">'+r+"<\/a><\/span>",jQuery(this).html(i))});jQuery(".morelink").click(function(){return jQuery(this).hasClass("less")?(jQuery(this).removeClass("less"),jQuery(this).html(r)):(jQuery(this).addClass("less"),jQuery(this).html("згорнути")),jQuery(this).parent().prev().toggle(),jQuery(this).prev().toggle(),!1})});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).noUiSlider={})}(this,function(n){"use strict";function o(n){return"object"==typeof n&&"function"==typeof n.to}function p(n){n.parentElement.removeChild(n)}function c(n){return null!=n}function w(n){n.preventDefault()}function u(n){return"number"==typeof n&&!isNaN(n)&&isFinite(n)}function b(n,i,r){0<r&&(t(n,i),setTimeout(function(){h(n,i)},r))}function k(n){return Math.max(Math.min(n,100),0)}function s(n){return Array.isArray(n)?n:[n]}function ut(n){return n=(n=String(n)).split("."),1<n.length?n[1].length:0}function t(n,t){n.classList&&!/\s/.test(t)?n.classList.add(t):n.className+=" "+t}function h(n,t){n.classList&&!/\s/.test(t)?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function d(n){var t=void 0!==window.pageXOffset,i="CSS1Compat"===(n.compatMode||"");return{x:t?window.pageXOffset:(i?n.documentElement:n.body).scrollLeft,y:t?window.pageYOffset:(i?n.documentElement:n.body).scrollTop}}function l(n,t){return 100/(t-n)}function a(n,t,i){return 100*t/(n[i+1]-n[i])}function e(n,t){for(var i=1;n>=t[i];)i+=1;return i}function ft(n,t,i){if(i>=n.slice(-1)[0])return 100;var r=e(i,n),f=n[r-1],u=n[r],n=t[r-1],r=t[r];return n+(i=i,a(u=[f,u],u[0]<0?i+Math.abs(u[0]):i-u[0],0)/l(n,r))}function et(n,t,i,r){if(100===r)return r;var u=e(r,n),f=n[u-1],o=n[u];return i?(o-f)/2<r-f?o:f:t[u-1]?n[u-1]+(n=r-n[u-1],u=t[u-1],Math.round(n/u)*u):r}function r(n,t,i){var r,u;for(this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=t,u=[],Object.keys(n).forEach(function(t){u.push([s(n[t]),t])}),u.sort(function(n,t){return n[0][0]-t[0][0]}),r=0;r<u.length;r++)this.handleEntryPoint(u[r][1],u[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}function ot(n,t){if(!u(t))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=t}function st(n,t){if(!u(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=t}function ht(n,t){if(!u(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=t}function ct(n,t){if(!u(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=t}function lt(n,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");n.spectrum=new v(t,n.snap||!1,n.singleStep)}function at(n,t){if(t=s(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=t.length;n.start=t}function vt(n,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=t}function yt(n,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=t}function pt(n,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=t}function nt(n,t){var r,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(r=1;r<n.handles;r++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==n.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}n.connect=i}function wt(n,t){switch(t){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.");}}function tt(n,t){if(!u(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(n.margin=n.spectrum.getDistance(t))}function bt(n,t){if(!u(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getDistance(t),!n.limit||n.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.");}function kt(n,t){var i,r,t;if(!u(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!u(t[0])&&!u(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),n.padding=[n.spectrum.getDistance(t[0]),n.spectrum.getDistance(t[1])],i=0;i<n.spectrum.xNumSteps.length-1;i++)if(n.padding[0][i]<0||n.padding[1][i]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");if(r=t[0]+t[1],t=n.spectrum.xVal[0],1<r/(n.spectrum.xVal[n.spectrum.xVal.length-1]-t))throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.");}}function dt(n,t){switch(t){case"ltr":n.dir=0;break;case"rtl":n.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.");}}function gt(n,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var e=0<=t.indexOf("tap"),o=0<=t.indexOf("drag"),i=0<=t.indexOf("fixed"),r=0<=t.indexOf("snap"),s=0<=t.indexOf("hover"),u=0<=t.indexOf("unconstrained"),f=0<=t.indexOf("invert-connects"),h=0<=t.indexOf("drag-all"),t=0<=t.indexOf("smooth-steps");if(i){if(2!==n.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");tt(n,n.start[1]-n.start[0])}if(f&&2!==n.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(u&&(n.margin||n.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");n.events={tap:e||r,drag:o,dragAll:h,smoothSteps:t,fixed:i,snap:r,hover:s,unconstrained:u,invertConnects:f}}function ni(n,t){if(!1!==t)if(!0===t||o(t)){n.tooltips=[];for(var i=0;i<n.handles;i++)n.tooltips.push(t)}else{if((t=s(t)).length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(n){if("boolean"!=typeof n&&!o(n))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.");});n.tooltips=t}}function ti(n,t){if(t.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=t}function ii(n,t){if(!o(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=t}function ri(n,t){if(!o(i=t)||"function"!=typeof i.from)throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");var i;n.format=t}function ui(n,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=t}function fi(n,t){n.documentElement=t}function ei(n,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=t}function oi(n,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof n.cssPrefix?(n.cssClasses={},Object.keys(t).forEach(function(i){n.cssClasses[i]=n.cssPrefix+t[i]})):n.cssClasses=t}function it(n){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:g,format:g},i={step:{r:!1,t:ot},keyboardPageMultiplier:{r:!1,t:st},keyboardMultiplier:{r:!1,t:ht},keyboardDefaultStep:{r:!1,t:ct},start:{r:!0,t:at},connect:{r:!0,t:nt},direction:{r:!0,t:dt},snap:{r:!1,t:vt},animate:{r:!1,t:yt},animationDuration:{r:!1,t:pt},range:{r:!0,t:lt},orientation:{r:!1,t:wt},margin:{r:!1,t:tt},limit:{r:!1,t:bt},padding:{r:!1,t:kt},behaviour:{r:!0,t:gt},ariaFormat:{r:!1,t:ii},format:{r:!1,t:ri},tooltips:{r:!1,t:ni},keyboardSupport:{r:!0,t:ui},documentElement:{r:!1,t:fi},cssPrefix:{r:!0,t:ei},cssClasses:{r:!0,t:oi},handleAttributes:{r:!1,t:ti}},u={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:y,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format);Object.keys(i).forEach(function(r){if(c(n[r])||void 0!==u[r])i[r].t(t,(c(n[r])?n:u)[r]);else if(i[r].r)throw new Error("noUiSlider: '"+r+"' is required.");});t.pips=n.pips;var r=document.createElement("div"),f=void 0!==r.style.msTransform,r=void 0!==r.style.transform;return t.transformRule=r?"transform":f?"msTransform":"webkitTransform",t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function si(i,r,u){function rt(n,i){var r=lt.createElement("div");return i&&t(r,i),n.appendChild(r),r}function ur(n,i){var f,n=rt(n,r.cssClasses.origin),u=rt(n,r.cssClasses.handle);return rt(u,r.cssClasses.touchArea),u.setAttribute("data-handle",String(i)),r.keyboardSupport&&(u.setAttribute("tabindex","0"),u.addEventListener("keydown",function(n){return function(n,t){var i;if(ai()||ii(t))return!1;var s=["Left","Right"],o=["Down","Up"],u=["PageDown","PageUp"],h=["Home","End"];r.dir&&!r.ort?s.reverse():r.ort&&!r.dir&&(o.reverse(),u.reverse());var f=n.key.replace("Arrow",""),c=f===u[0],v=f===u[1],u=f===o[0]||f===s[0]||c,o=f===o[1]||f===s[1]||v,s=f===h[0],h=f===h[1];if(!(u||o||s||h))return!0;if(n.preventDefault(),o||u){if(i=u?0:1,i=tr(t)[i],null===i)return!1;!1===i&&(i=e.getDefaultStep(l[t],u,r.keyboardDefaultStep));i*=v||c?r.keyboardPageMultiplier:r.keyboardMultiplier;i=Math.max(i,1e-7);i*=u?-1:1;i=g[t]+i}else i=h?r.spectrum.xVal[r.spectrum.xVal.length-1]:r.spectrum.xVal[0];return ct(t,e.toStepping(i),!0,!0),a("slide",t),a("update",t),a("change",t),a("set",t),!1}(n,i)})),void 0!==r.handleAttributes&&(f=r.handleAttributes[i],Object.keys(f).forEach(function(n){u.setAttribute(n,f[n])})),u.setAttribute("role","slider"),u.setAttribute("aria-orientation",r.ort?"vertical":"horizontal"),0===i?t(u,r.cssClasses.handleLower):i===r.handles-1&&t(u,r.cssClasses.handleUpper),n.handle=u,n}function ti(n,t){return!!t&&rt(n,r.cssClasses.connect)}function fr(n,t){return!(!r.tooltips||!r.tooltips[t])&&rt(n.firstChild,r.cssClasses.tooltip)}function ai(){return v.hasAttribute("disabled")}function ii(n){return o[n].hasAttribute("disabled")}function ri(){et&&(vt("update"+f.tooltips),et.forEach(function(n){n&&p(n)}),et=null)}function vi(){ri();et=o.map(fr);si("update"+f.tooltips,function(n,t,i){et&&r.tooltips&&!1!==et[t]&&(n=n[t],!0!==r.tooltips[t]&&(n=r.tooltips[t].to(i[t])),et[t].innerHTML=n)})}function yi(n,t){return n.map(function(n){return e.fromStepping(t?e.getStep(n):n)})}function er(t){var i=function(t){if(t.mode===n.PipsMode.Range||t.mode===n.PipsMode.Steps)return e.xVal;if(t.mode!==n.PipsMode.Count)return t.mode===n.PipsMode.Positions?yi(t.values,t.stepped):t.mode===n.PipsMode.Values?t.stepped?t.values.map(function(n){return e.fromStepping(e.getStep(e.toStepping(n)))}):t.values:[];if(t.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var i=t.values-1,u=100/i,r=[];i--;)r[i]=i*u;return r.push(100),yi(r,t.stepped)}(t),r={},f=e.xVal[0],o=e.xVal[e.xVal.length-1],s=!1,h=!1,u=0;return(i=i.slice().sort(function(n,t){return n-t}).filter(function(n){return!this[n]&&(this[n]=!0)},{}))[0]!==f&&(i.unshift(f),s=!0),i[i.length-1]!==o&&(i.push(o),h=!0),i.forEach(function(f,o){var c,y,p,w,b,a,k,d,f=f,l=i[o+1],g=t.mode===n.PipsMode.Steps,v=(v=g?e.xNumSteps[o]:v)||l-f;for(void 0===l&&(l=f),v=Math.max(v,1e-7),c=f;c<=l;c=Number((c+v).toFixed(7))){for(a=(w=(p=e.toStepping(c))-u)/(t.density||1),d=w/(k=Math.round(a)),y=1;y<=k;y+=1)r[(b=u+y*d).toFixed(5)]=[e.fromStepping(b),0];a=-1<i.indexOf(c)?n.PipsType.LargeValue:g?n.PipsType.SmallValue:n.PipsType.NoValue;!o&&s&&c!==l&&(a=0);c===l&&h||(r[p.toFixed(5)]=[c,a]);u=p}}),r}function or(i,u,f){function s(n,t){var i=t===r.cssClasses.value;return t+" "+(i?l:a)[r.ort]+" "+(i?h:c)[n]}var e,o=lt.createElement("div"),h=((e={})[n.PipsType.None]="",e[n.PipsType.NoValue]=r.cssClasses.valueNormal,e[n.PipsType.LargeValue]=r.cssClasses.valueLarge,e[n.PipsType.SmallValue]=r.cssClasses.valueSub,e),c=((e={})[n.PipsType.None]="",e[n.PipsType.NoValue]=r.cssClasses.markerNormal,e[n.PipsType.LargeValue]=r.cssClasses.markerLarge,e[n.PipsType.SmallValue]=r.cssClasses.markerSub,e),l=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],a=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];return t(o,r.cssClasses.pips),t(o,0===r.ort?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical),Object.keys(i).forEach(function(t){var c,h,e;h=i[c=t][0];e=i[t][1];(e=u?u(h,e):e)!==n.PipsType.None&&((t=rt(o,!1)).className=s(e,r.cssClasses.marker),t.style[r.style]=c+"%",e>n.PipsType.NoValue&&((t=rt(o,!1)).className=s(e,r.cssClasses.value),t.setAttribute("data-value",String(h)),t.style[r.style]=c+"%",t.innerHTML=String(f.to(h))))}),o}function ui(){pt&&(p(pt),pt=null)}function fi(n){ui();var t=er(n),i=n.filter,n=n.format||{to:function(n){return String(Math.round(n))}};return pt=v.appendChild(or(t,i,n))}function pi(){var n=ut.getBoundingClientRect(),t="offset"+["Width","Height"][r.ort];return 0===r.ort?n.width||ut[t]:n.height||ut[t]}function ht(n,t,i,u){function f(f){var o,e=function(n,t,i){var u=0===n.type.indexOf("touch"),s=0===n.type.indexOf("mouse"),o=0===n.type.indexOf("pointer"),f=0,e=0,r;if(0===n.type.indexOf("MSPointer")&&(o=!0),"mousedown"===n.type&&!n.buttons&&!n.touches)return!1;if(u)if(r=function(t){return t=t.target,t===i||i.contains(t)||n.composed&&n.composedPath().shift()===i},"touchstart"===n.type){if(u=Array.prototype.filter.call(n.touches,r),1<u.length)return!1;f=u[0].pageX;e=u[0].pageY}else{if(r=Array.prototype.find.call(n.changedTouches,r),!r)return!1;f=r.pageX;e=r.pageY}return t=t||d(lt),(s||o)&&(f=n.clientX+t.x,e=n.clientY+t.y),n.pageOffset=t,n.points=[f,e],n.cursor=s||o,n}(f,u.pageOffset,u.target||t);return!!e&&!(ai()&&!u.doNotReject)&&(o=v,f=r.cssClasses.tap,!((o.classList?o.classList.contains(f):new RegExp("\\b"+f+"\\b").test(o.className))&&!u.doNotReject)&&!(n===st.start&&void 0!==e.buttons&&1<e.buttons)&&(!u.hover||!e.buttons)&&(li||e.preventDefault(),e.calcPoint=e.points[r.ort],void i(e,u)))}var e=[];return n.split(" ").forEach(function(n){t.addEventListener(n,f,!!li&&{passive:!0});e.push([n,f])}),e}function wi(n){var u,i,t=k(t=100*(n-(t=ut,u=r.ort,i=t.getBoundingClientRect(),t=(n=t.ownerDocument).documentElement,n=d(n),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(n.x=0),u?i.top+n.y-t.clientTop:i.left+n.x-t.clientLeft))/pi());return r.dir?100-t:t}function sr(n,t){"mouseout"===n.type&&"HTML"===n.target.nodeName&&null===n.relatedTarget&&ei(n,t)}function hr(n,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===n.buttons&&0!==t.buttonsProperty)return ei(n,t);n=(r.dir?-1:1)*(n.calcPoint-t.startCalcPoint);ki(0<n,100*n/t.baseSize,t.locations,t.handleNumbers,t.connect)}function ei(n,t){t.handle&&(h(t.handle,r.cssClasses.active),--ni);t.listeners.forEach(function(n){wt.removeEventListener(n[0],n[1])});0===ni&&(h(v,r.cssClasses.drag),ci(),n.cursor&&(bt.style.cursor="",bt.removeEventListener("selectstart",w)));r.events.smoothSteps&&(t.handleNumbers.forEach(function(n){ct(n,l[n],!0,!0,!1,!1)}),t.handleNumbers.forEach(function(n){a("update",n)}));t.handleNumbers.forEach(function(n){a("change",n);a("set",n);a("end",n)})}function oi(n,i){var f,e,s,u;i.handleNumbers.some(ii)||(1===i.handleNumbers.length&&(u=o[i.handleNumbers[0]].children[0],ni+=1,t(u,r.cssClasses.active)),n.stopPropagation(),e=ht(st.move,wt,hr,{target:n.target,handle:u,connect:i.connect,listeners:f=[],startCalcPoint:n.calcPoint,baseSize:pi(),pageOffset:n.pageOffset,handleNumbers:i.handleNumbers,buttonsProperty:n.buttons,locations:l.slice()}),s=ht(st.end,wt,ei,{target:n.target,handle:u,listeners:f,doNotReject:!0,handleNumbers:i.handleNumbers}),u=ht("mouseout",wt,sr,{target:n.target,handle:u,listeners:f,doNotReject:!0,handleNumbers:i.handleNumbers}),f.push.apply(f,e.concat(s,u)),n.cursor&&(bt.style.cursor=getComputedStyle(n.target).cursor,1<o.length&&t(v,r.cssClasses.drag),bt.addEventListener("selectstart",w,!1)),i.handleNumbers.forEach(function(n){a("start",n)}))}function cr(n){n.stopPropagation();var u,i,f,e=wi(n.calcPoint),t=(u=e,f=!(i=100),o.forEach(function(n,t){var e,r;ii(t)||(e=l[t],((r=Math.abs(e-u))<i||r<=i&&e<u||100===r&&100===i)&&(f=t,i=r))}),f);!1!==t&&(r.events.snap||b(v,r.cssClasses.tap,r.animationDuration),ct(t,e,!0,!0),ci(),a("slide",t,!0),a("update",t,!0),r.events.snap?oi(n,{handleNumbers:[t]}):(a("change",t,!0),a("set",t,!0)))}function lr(n){var n=wi(n.calcPoint),n=e.getStep(n),t=e.fromStepping(n);Object.keys(tt).forEach(function(n){"hover"===n.split(".")[0]&&tt[n].forEach(function(n){n.call(gt,t)})})}function bi(n){n.fixed||o.forEach(function(n,t){ht(st.start,n.children[0],oi,{handleNumbers:[t]})});n.tap&&ht(st.start,ut,cr,{});n.hover&&ht(st.move,ut,lr,{hover:!0});n.drag&&ft.forEach(function(i,u){var e,s,f,h,c;!1!==i&&0!==u&&u!==ft.length-1&&(e=o[u-1],s=o[u],f=[i],h=[e,s],c=[u-1,u],t(i,r.cssClasses.draggable),n.fixed&&(f.push(e.children[0]),f.push(s.children[0])),n.dragAll&&(h=o,c=y),f.forEach(function(n){ht(st.start,n,oi,{handles:h,handleNumbers:c,connect:i})}))})}function si(n,t){tt[n]=tt[n]||[];tt[n].push(t);"update"===n.split(".")[0]&&o.forEach(function(n,t){a("update",t)})}function vt(n){var t=n&&n.split(".")[0],i=t?n.substring(t.length):n;Object.keys(tt).forEach(function(n){var r=n.split(".")[0],u=n.substring(r.length);t&&t!==r||i&&i!==u||((r=u)!==f.aria&&r!==f.tooltips||i===u)&&delete tt[n]})}function a(n,t,i){Object.keys(tt).forEach(function(u){var f=u.split(".")[0];n===f&&tt[u].forEach(function(n){n.call(gt,g.map(r.format.to),t,g.slice(),i||!1,l.slice(),gt)})})}function kt(n,t,i,u,f,s,h){var c;return 1<o.length&&!r.events.unconstrained&&(u&&0<t&&(c=e.getAbsoluteDistance(n[t-1],r.margin,!1),i=Math.max(i,c)),f&&t<o.length-1&&(c=e.getAbsoluteDistance(n[t+1],r.margin,!0),i=Math.min(i,c))),1<o.length&&r.limit&&(u&&0<t&&(c=e.getAbsoluteDistance(n[t-1],r.limit,!1),i=Math.min(i,c)),f&&t<o.length-1&&(c=e.getAbsoluteDistance(n[t+1],r.limit,!0),i=Math.max(i,c))),r.padding&&(0===t&&(c=e.getAbsoluteDistance(0,r.padding[0],!1),i=Math.max(i,c)),t===o.length-1&&(c=e.getAbsoluteDistance(100,r.padding[1],!0),i=Math.min(i,c))),!((i=k(i=h?i:e.getStep(i)))===n[t]&&!s)&&i}function hi(n,t){var i=r.ort;return(i?t:n)+", "+(i?n:t)}function ki(n,t,i,u,f){var e=i.slice(),l=u[0],c=r.events.smoothSteps,s=[!n,n],h=[n,!n],o;u=u.slice();n&&u.reverse();1<u.length?u.forEach(function(n,i){i=kt(e,n,e[n]+t,s[i],h[i],!1,c);!1===i?t=0:(t=i-e[n],e[n]=i)}):s=h=[!0];o=!1;u.forEach(function(n,r){o=ct(n,i[n]+t,s[r],h[r],!1,c)||o});o&&(u.forEach(function(n){a("update",n);a("slide",n)}),null!=f&&a("drag",l))}function di(n,t){return r.dir?100-n-t:n}function ar(n,t){if(l[n]=t,g[n]=e.fromStepping(t),t="translate("+hi(di(t,0)-rr+"%","0")+")",(o[n].style[r.transformRule]=t,r.events.invertConnects&&1<l.length)&&(t=l.every(function(n,t,i){return 0===t||n>=i[t-1]}),at!==!t))return at=!at,nt(r,r.connect.map(function(n){return!n})),void ir();yt(n);yt(n+1);at&&(yt(n-1),yt(n+2))}function ci(){y.forEach(function(n){var t=50<l[n]?-1:1,t=3+(o.length+t*n);o[n].style.zIndex=String(t)})}function ct(n,t,i,r,u,f){return!1!==(t=u?t:kt(l,n,t,i,r,!1,f))&&(ar(n,t),!0)}function yt(n){var u,i,t;ft[n]&&(u=l.slice(),at&&u.sort(function(n,t){return n-t}),t=100,i="translate("+hi(di(i=(i=0)!==n?u[n-1]:i,t=(t=n!==ft.length-1?u[n]:t)-i)+"%","0")+")",t="scale("+hi(t/100,"1")+")",ft[n].style[r.transformRule]=i+" "+t)}function gi(n,t){return null===n||!1===n||void 0===n?l[t]:("number"==typeof n&&(n=String(n)),!1===(n=!1!==(n=r.format.from(n))?e.toStepping(n):n)||isNaN(n)?l[t]:n)}function dt(n,t,i){var f=s(n),n=void 0===l[0],o,u;for(t=void 0===t||t,r.animate&&!n&&b(v,r.cssClasses.tap,r.animationDuration),y.forEach(function(n){ct(n,gi(f[n],n),!0,!1,i)}),u=1===y.length?0:1,n&&e.hasNoSize()&&(i=!0,l[0]=0,1<y.length&&(o=100/(y.length-1),y.forEach(function(n){l[n]=n*o})));u<y.length;++u)y.forEach(function(n){ct(n,l[n],!0,!0,i)});ci();y.forEach(function(n){a("update",n);null!==f[n]&&t&&a("set",n)})}function nr(n){return(n=void 0===n?!1:n)?1===g.length?g[0]:g.slice(0):(n=g.map(r.format.to),1===n.length?n[0]:n)}function tr(n){var u=l[n],t=e.getNearbySteps(u),f=g[n],i=t.thisStep.step,n=null;return r.snap?[f-t.stepBefore.startValue||null,t.stepAfter.startValue-f||null]:(!1!==i&&f+i>t.stepAfter.startValue&&(i=t.stepAfter.startValue-f),n=f>t.thisStep.startValue?t.thisStep.step:!1!==t.stepBefore.step&&f-t.stepBefore.highestStep,100===u?i=null:0===u&&(n=null),u=e.countStepDecimals(),null!==i&&!1!==i&&(i=Number(i.toFixed(u))),[n=null!==n&&!1!==n?Number(n.toFixed(u)):n,i])}function ir(){for(;ot.firstChild;)ot.removeChild(ot.firstChild);for(var n=0;n<=r.handles;n++)ft[n]=ti(ot,r.connect[n]),yt(n);bi({drag:r.events.drag,fixed:!0})}var ut,ot,o,ft,pt,et,st=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},li=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var n=!1,t;try{t=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,t)}catch(n){}return n}(),v=i,e=r.spectrum,g=[],l=[],y=[],ni=0,tt={},at=!1,lt=i.ownerDocument,wt=r.documentElement||lt.documentElement,bt=lt.body,rr="rtl"===lt.dir||1===r.ort?0:100,gt;return t(i=v,r.cssClasses.target),0===r.dir?t(i,r.cssClasses.ltr):t(i,r.cssClasses.rtl),0===r.ort?t(i,r.cssClasses.horizontal):t(i,r.cssClasses.vertical),t(i,"rtl"===getComputedStyle(i).direction?r.cssClasses.textDirectionRtl:r.cssClasses.textDirectionLtr),ut=rt(i,r.cssClasses.base),function(n,t){ot=rt(t,r.cssClasses.connects);o=[];(ft=[]).push(ti(ot,n[0]));for(var i=0;i<r.handles;i++)o.push(ur(t,i)),y[i]=i,ft.push(ti(ot,n[i+1]))}(r.connect,ut),bi(r.events),dt(r.start),r.pips&&fi(r.pips),r.tooltips&&vi(),vt("update"+f.aria),si("update"+f.aria,function(n,t,i,u,f){y.forEach(function(n){var t=o[n],u=kt(l,n,0,!0,!0,!0),s=kt(l,n,100,!0,!0,!0),h=f[n],n=String(r.ariaFormat.to(i[n])),u=e.fromStepping(u).toFixed(1),s=e.fromStepping(s).toFixed(1),h=e.fromStepping(h).toFixed(1);t.children[0].setAttribute("aria-valuemin",u);t.children[0].setAttribute("aria-valuemax",s);t.children[0].setAttribute("aria-valuenow",h);t.children[0].setAttribute("aria-valuetext",n)})}),gt={destroy:function(){for(vt(f.aria),vt(f.tooltips),Object.keys(r.cssClasses).forEach(function(n){h(v,r.cssClasses[n])});v.firstChild;)v.removeChild(v.firstChild);delete v.noUiSlider},steps:function(){return y.map(tr)},on:si,off:vt,get:nr,set:dt,setHandle:function(n,t,i,r){if(!(0<=(n=Number(n))&&n<y.length))throw new Error("noUiSlider: invalid handle number, got: "+n);ct(n,gi(t,n),!0,!0,r);a("update",n);i&&a("set",n)},reset:function(n){dt(r.start,n)},disable:function(n){null!=n?(o[n].setAttribute("disabled",""),o[n].handle.removeAttribute("tabindex")):(v.setAttribute("disabled",""),o.forEach(function(n){n.handle.removeAttribute("tabindex")}))},enable:function(n){null!=n?(o[n].removeAttribute("disabled"),o[n].handle.setAttribute("tabindex","0")):(v.removeAttribute("disabled"),o.forEach(function(n){n.removeAttribute("disabled");n.handle.setAttribute("tabindex","0")}))},__moveHandles:function(n,t,i){ki(n,t,l,i)},options:u,updateOptions:function(n,t){var o=nr(),f=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"],i;f.forEach(function(t){void 0!==n[t]&&(u[t]=n[t])});i=it(u);f.forEach(function(t){void 0!==n[t]&&(r[t]=i[t])});e=i.spectrum;r.margin=i.margin;r.limit=i.limit;r.padding=i.padding;r.pips?fi(r.pips):ui();(r.tooltips?vi:ri)();l=[];dt(c(n.start)?n.start:o,t);n.connect&&ir()},target:v,removePips:ui,removeTooltips:ri,getPositions:function(){return l.slice()},getTooltips:function(){return et},getOrigins:function(){return o},pips:fi}}function rt(n,t){if(!n||!n.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+n);if(n.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");return t=si(n,it(t),t),n.noUiSlider=t}var v,i;n.PipsMode=void 0;(i=n.PipsMode||(n.PipsMode={})).Range="range";i.Steps="steps";i.Positions="positions";i.Count="count";i.Values="values";n.PipsType=void 0;(i=n.PipsType||(n.PipsType={}))[i.None=-1]="None";i[i.NoValue=0]="NoValue";i[i.LargeValue=1]="LargeValue";i[i.SmallValue=2]="SmallValue";v=(r.prototype.getDistance=function(n){for(var i=[],t=0;t<this.xNumSteps.length-1;t++)i[t]=a(this.xVal,n,t);return i},r.prototype.getAbsoluteDistance=function(n,t,i){var r=0;if(n<this.xPct[this.xPct.length-1])for(;n>this.xPct[r+1];)r++;else n===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);i||n!==this.xPct[r+1]||r++;for(var s,f=1,h=(t=null===t?[]:t)[r],e=0,c=0,u=0,o=i?(n-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):(this.xPct[r+1]-n)/(this.xPct[r+1]-this.xPct[r]);0<h;)s=this.xPct[r+1+u]-this.xPct[r+u],100<t[r+u]*f+100-100*o?(e=s*o,f=(h-100*o)/t[r+u],o=1):(e=t[r+u]*s/100*f,f=0),i?(c-=e,1<=this.xPct.length+u&&u--):(c+=e,1<=this.xPct.length-u&&u++),h=t[r+u]*f;return n+c},r.prototype.toStepping=function(n){return ft(this.xVal,this.xPct,n)},r.prototype.fromStepping=function(n){return function(n,t,i){if(100<=i)return n.slice(-1)[0];var r=e(i,t),f=n[r-1],u=n[r],n=t[r-1],r=t[r];return(i-n)*l(n,r)*((u=[f,u])[1]-u[0])/100+u[0]}(this.xVal,this.xPct,n)},r.prototype.getStep=function(n){return et(this.xPct,this.xSteps,this.snap,n)},r.prototype.getDefaultStep=function(n,t,i){var r=e(n,this.xPct);return(100===n||t&&n===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/i},r.prototype.getNearbySteps=function(n){return n=e(n,this.xPct),{stepBefore:{startValue:this.xVal[n-2],step:this.xNumSteps[n-2],highestStep:this.xHighestCompleteStep[n-2]},thisStep:{startValue:this.xVal[n-1],step:this.xNumSteps[n-1],highestStep:this.xHighestCompleteStep[n-1]},stepAfter:{startValue:this.xVal[n],step:this.xNumSteps[n],highestStep:this.xHighestCompleteStep[n]}}},r.prototype.countStepDecimals=function(){var n=this.xNumSteps.map(ut);return Math.max.apply(null,n)},r.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},r.prototype.convert=function(n){return this.getStep(this.toStepping(n))},r.prototype.handleEntryPoint=function(n,t){if(n="min"===n?0:"max"===n?100:parseFloat(n),!u(n)||!u(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n);this.xVal.push(t[0]);t=Number(t[1]);n?this.xSteps.push(!isNaN(t)&&t):isNaN(t)||(this.xSteps[0]=t);this.xHighestCompleteStep.push(0)},r.prototype.handleStepPoint=function(n,t){t&&(this.xVal[n]!==this.xVal[n+1]?(this.xSteps[n]=a([this.xVal[n],this.xVal[n+1]],t,0)/l(this.xPct[n],this.xPct[n+1]),t=(this.xVal[n+1]-this.xVal[n])/this.xNumSteps[n],t=Math.ceil(Number(t.toFixed(3))-1),t=this.xVal[n]+this.xNumSteps[n]*t,this.xHighestCompleteStep[n]=t):this.xSteps[n]=this.xHighestCompleteStep[n]=this.xVal[n])},r);var g={to:function(n){return void 0===n?"":n.toFixed(2)},from:Number},y={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},f={tooltips:".__tooltips",aria:".__aria"};i={__spectrum:v,cssClasses:y,create:rt};n.create=rt;n.cssClasses=y;n.default=i;Object.defineProperty(n,"__esModule",{value:!0})})